!function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exports["app-react"]=e():t["app-react"]=e()}(this,(function(){return function(t){var e={};function n(i){if(e[i])return e[i].exports;var o=e[i]={i:i,l:!1,exports:{}};return t[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=t,n.c=e,n.d=function(t,e,i){n.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:i})},n.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},n.t=function(t,e){if(1&e&&(t=n(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var o in t)n.d(i,o,function(e){return t[e]}.bind(null,o));return i},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=749)}([function(t,e,n){"use strict";t.exports=n(857)},function(t,e,n){"use strict";function i(){return(i=Object.assign||function(t){for(var e=1;eObject(i.b)(t)&&"classes"!==t,s=i.b,a=Object(i.a)({defaultTheme:o.a,rootShouldForwardProp:r});e.a=a},function(t,e,n){"use strict";function i(t){var e,n,o="";if("string"==typeof t||"number"==typeof t)o+=t;else if("object"==typeof t)if(Array.isArray(t))for(e=0;e=0||(o[n]=t[n]);return o}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";var i=n(734);e.a=i.a},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n(1019),o=n(142);function r({props:t,name:e}){return Object(i.a)({props:t,name:e,defaultTheme:o.a})}},,function(t,e,n){t.exports=n(971)()},function(t,e,n){(function(t){t.exports=function(){"use strict";var e,i;function o(){return e.apply(null,arguments)}function r(t){return t instanceof Array||"[object Array]"===Object.prototype.toString.call(t)}function s(t){return null!=t&&"[object Object]"===Object.prototype.toString.call(t)}function a(t,e){return Object.prototype.hasOwnProperty.call(t,e)}function c(t){if(Object.getOwnPropertyNames)return 0===Object.getOwnPropertyNames(t).length;var e;for(e in t)if(a(t,e))return!1;return!0}function l(t){return void 0===t}function u(t){return"number"==typeof t||"[object Number]"===Object.prototype.toString.call(t)}function h(t){return t instanceof Date||"[object Date]"===Object.prototype.toString.call(t)}function d(t,e){var n,i=[],o=t.length;for(n=0;n>>0;for(e=0;e0)for(n=0;n=0?n?"+":"":"-")+Math.pow(10,Math.max(0,o)).toString().substr(1)+i}o.suppressDeprecationWarnings=!1,o.deprecationHandler=null,N=Object.keys?Object.keys:function(t){var e,n=[];for(e in t)a(t,e)&&n.push(e);return n};var A=/(\[[^\[]*\])|(\\)?([Hh]mm(ss)?|Mo|MM?M?M?|Do|DDDo|DD?D?D?|ddd?d?|do?|w[o|w]?|W[o|W]?|Qo?|N{1,5}|YYYYYY|YYYYY|YYYY|YY|y{2,4}|yo?|gg(ggg?)?|GG(GGG?)?|e|E|a|A|hh?|HH?|kk?|mm?|ss?|S{1,9}|x|X|zz?|ZZ?|.)/g,x=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,I={},U={};function D(t,e,n,i){var o=i;"string"==typeof i&&(o=function(){return this[i]()}),t&&(U[t]=o),e&&(U[e[0]]=function(){return R(o.apply(this,arguments),e[1],e[2])}),n&&(U[n]=function(){return this.localeData().ordinal(o.apply(this,arguments),t)})}function P(t,e){return t.isValid()?(e=M(e,t.localeData()),I[e]=I[e]||function(t){var e,n,i,o=t.match(A);for(e=0,n=o.length;e=0&&x.test(t);)t=t.replace(x,i),x.lastIndex=0,n-=1;return t}var k={};function j(t,e){var n=t.toLowerCase();k[n]=k[n+"s"]=k[e]=t}function G(t){return"string"==typeof t?k[t]||k[t.toLowerCase()]:void 0}function q(t){var e,n,i={};for(n in t)a(t,n)&&(e=G(n))&&(i[e]=t[n]);return i}var F={};function B(t,e){F[t]=e}function W(t){return t%4==0&&t%100!=0||t%400==0}function H(t){return t<0?Math.ceil(t)||0:Math.floor(t)}function V(t){var e=+t,n=0;return 0!==e&&isFinite(e)&&(n=H(e)),n}function K(t,e){return function(n){return null!=n?(J(this,t,n),o.updateOffset(this,e),this):X(this,t)}}function X(t,e){return t.isValid()?t._d["get"+(t._isUTC?"UTC":"")+e]():NaN}function J(t,e,n){t.isValid()&&!isNaN(n)&&("FullYear"===e&&W(t.year())&&1===t.month()&&29===t.date()?(n=V(n),t._d["set"+(t._isUTC?"UTC":"")+e](n,t.month(),St(n,t.month()))):t._d["set"+(t._isUTC?"UTC":"")+e](n))}var Y,Q=/\d/,Z=/\d\d/,tt=/\d{3}/,et=/\d{4}/,nt=/[+-]?\d{6}/,it=/\d\d?/,ot=/\d\d\d\d?/,rt=/\d\d\d\d\d\d?/,st=/\d{1,3}/,at=/\d{1,4}/,ct=/[+-]?\d{1,6}/,lt=/\d+/,ut=/[+-]?\d+/,ht=/Z|[+-]\d\d:?\d\d/gi,dt=/Z|[+-]\d\d(?::?\d\d)?/gi,pt=/[0-9]{0,256}['a-z\u00A0-\u05FF\u0700-\uD7FF\uF900-\uFDCF\uFDF0-\uFF07\uFF10-\uFFEF]{1,256}|[\u0600-\u06FF\/]{1,256}(\s*?[\u0600-\u06FF]{1,256}){1,2}/i;function _t(t,e,n){Y[t]=z(e)?e:function(t,i){return t&&n?n:e}}function mt(t,e){return a(Y,t)?Y[t](e._strict,e._locale):new RegExp(ft(t.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,(function(t,e,n,i,o){return e||n||i||o}))))}function ft(t){return t.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}Y={};var gt,$t={};function Et(t,e){var n,i,o=e;for("string"==typeof t&&(t=[t]),u(e)&&(o=function(t,n){n[e]=V(t)}),i=t.length,n=0;n68?1900:2e3)};var xt=K("FullYear",!0);function It(t,e,n,i,o,r,s){var a;return t<100&&t>=0?(a=new Date(t+400,e,n,i,o,r,s),isFinite(a.getFullYear())&&a.setFullYear(t)):a=new Date(t,e,n,i,o,r,s),a}function Ut(t){var e,n;return t<100&&t>=0?((n=Array.prototype.slice.call(arguments))[0]=t+400,e=new Date(Date.UTC.apply(null,n)),isFinite(e.getUTCFullYear())&&e.setUTCFullYear(t)):e=new Date(Date.UTC.apply(null,arguments)),e}function Dt(t,e,n){var i=7+e-n;return-(7+Ut(t,0,i).getUTCDay()-e)%7+i-1}function Pt(t,e,n,i,o){var r,s,a=1+7*(e-1)+(7+n-i)%7+Dt(t,i,o);return a<=0?s=At(r=t-1)+a:a>At(t)?(r=t+1,s=a-At(t)):(r=t,s=a),{year:r,dayOfYear:s}}function Mt(t,e,n){var i,o,r=Dt(t.year(),e,n),s=Math.floor((t.dayOfYear()-r-1)/7)+1;return s<1?i=s+kt(o=t.year()-1,e,n):s>kt(t.year(),e,n)?(i=s-kt(t.year(),e,n),o=t.year()+1):(o=t.year(),i=s),{week:i,year:o}}function kt(t,e,n){var i=Dt(t,e,n),o=Dt(t+1,e,n);return(At(t)-i+o)/7}function jt(t,e){return t.slice(e,7).concat(t.slice(0,e))}D("w",["ww",2],"wo","week"),D("W",["WW",2],"Wo","isoWeek"),j("week","w"),j("isoWeek","W"),B("week",5),B("isoWeek",5),_t("w",it),_t("ww",it,Z),_t("W",it),_t("WW",it,Z),yt(["w","ww","W","WW"],(function(t,e,n,i){e[i.substr(0,1)]=V(t)})),D("d",0,"do","day"),D("dd",0,0,(function(t){return this.localeData().weekdaysMin(this,t)})),D("ddd",0,0,(function(t){return this.localeData().weekdaysShort(this,t)})),D("dddd",0,0,(function(t){return this.localeData().weekdays(this,t)})),D("e",0,0,"weekday"),D("E",0,0,"isoWeekday"),j("day","d"),j("weekday","e"),j("isoWeekday","E"),B("day",11),B("weekday",11),B("isoWeekday",11),_t("d",it),_t("e",it),_t("E",it),_t("dd",(function(t,e){return e.weekdaysMinRegex(t)})),_t("ddd",(function(t,e){return e.weekdaysShortRegex(t)})),_t("dddd",(function(t,e){return e.weekdaysRegex(t)})),yt(["dd","ddd","dddd"],(function(t,e,n,i){var o=n._locale.weekdaysParse(t,i,n._strict);null!=o?e.d=o:m(n).invalidWeekday=t})),yt(["d","e","E"],(function(t,e,n,i){e[i]=V(t)}));var Gt="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),qt="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),Ft="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),Bt=pt,Wt=pt,Ht=pt;function Vt(t,e,n){var i,o,r,s=t.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],i=0;i<7;++i)r=_([2e3,1]).day(i),this._minWeekdaysParse[i]=this.weekdaysMin(r,"").toLocaleLowerCase(),this._shortWeekdaysParse[i]=this.weekdaysShort(r,"").toLocaleLowerCase(),this._weekdaysParse[i]=this.weekdays(r,"").toLocaleLowerCase();return n?"dddd"===e?-1!==(o=gt.call(this._weekdaysParse,s))?o:null:"ddd"===e?-1!==(o=gt.call(this._shortWeekdaysParse,s))?o:null:-1!==(o=gt.call(this._minWeekdaysParse,s))?o:null:"dddd"===e?-1!==(o=gt.call(this._weekdaysParse,s))||-1!==(o=gt.call(this._shortWeekdaysParse,s))||-1!==(o=gt.call(this._minWeekdaysParse,s))?o:null:"ddd"===e?-1!==(o=gt.call(this._shortWeekdaysParse,s))||-1!==(o=gt.call(this._weekdaysParse,s))||-1!==(o=gt.call(this._minWeekdaysParse,s))?o:null:-1!==(o=gt.call(this._minWeekdaysParse,s))||-1!==(o=gt.call(this._weekdaysParse,s))||-1!==(o=gt.call(this._shortWeekdaysParse,s))?o:null}function Kt(){function t(t,e){return e.length-t.length}var e,n,i,o,r,s=[],a=[],c=[],l=[];for(e=0;e<7;e++)n=_([2e3,1]).day(e),i=ft(this.weekdaysMin(n,"")),o=ft(this.weekdaysShort(n,"")),r=ft(this.weekdays(n,"")),s.push(i),a.push(o),c.push(r),l.push(i),l.push(o),l.push(r);s.sort(t),a.sort(t),c.sort(t),l.sort(t),this._weekdaysRegex=new RegExp("^("+l.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+c.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+a.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+s.join("|")+")","i")}function Xt(){return this.hours()%12||12}function Jt(t,e){D(t,0,0,(function(){return this.localeData().meridiem(this.hours(),this.minutes(),e)}))}function Yt(t,e){return e._meridiemParse}D("H",["HH",2],0,"hour"),D("h",["hh",2],0,Xt),D("k",["kk",2],0,(function(){return this.hours()||24})),D("hmm",0,0,(function(){return""+Xt.apply(this)+R(this.minutes(),2)})),D("hmmss",0,0,(function(){return""+Xt.apply(this)+R(this.minutes(),2)+R(this.seconds(),2)})),D("Hmm",0,0,(function(){return""+this.hours()+R(this.minutes(),2)})),D("Hmmss",0,0,(function(){return""+this.hours()+R(this.minutes(),2)+R(this.seconds(),2)})),Jt("a",!0),Jt("A",!1),j("hour","h"),B("hour",13),_t("a",Yt),_t("A",Yt),_t("H",it),_t("h",it),_t("k",it),_t("HH",it,Z),_t("hh",it,Z),_t("kk",it,Z),_t("hmm",ot),_t("hmmss",rt),_t("Hmm",ot),_t("Hmmss",rt),Et(["H","HH"],3),Et(["k","kk"],(function(t,e,n){var i=V(t);e[3]=24===i?0:i})),Et(["a","A"],(function(t,e,n){n._isPm=n._locale.isPM(t),n._meridiem=t})),Et(["h","hh"],(function(t,e,n){e[3]=V(t),m(n).bigHour=!0})),Et("hmm",(function(t,e,n){var i=t.length-2;e[3]=V(t.substr(0,i)),e[4]=V(t.substr(i)),m(n).bigHour=!0})),Et("hmmss",(function(t,e,n){var i=t.length-4,o=t.length-2;e[3]=V(t.substr(0,i)),e[4]=V(t.substr(i,2)),e[5]=V(t.substr(o)),m(n).bigHour=!0})),Et("Hmm",(function(t,e,n){var i=t.length-2;e[3]=V(t.substr(0,i)),e[4]=V(t.substr(i))})),Et("Hmmss",(function(t,e,n){var i=t.length-4,o=t.length-2;e[3]=V(t.substr(0,i)),e[4]=V(t.substr(i,2)),e[5]=V(t.substr(o))}));var Qt,Zt=K("Hours",!0),te={calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},longDateFormat:{LTS:"h:mm:ss A",LT:"h:mm A",L:"MM/DD/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},invalidDate:"Invalid date",ordinal:"%d",dayOfMonthOrdinalParse:/\d{1,2}/,relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",w:"a week",ww:"%d weeks",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},months:vt,monthsShort:Ct,week:{dow:0,doy:6},weekdays:Gt,weekdaysMin:Ft,weekdaysShort:qt,meridiemParse:/[ap]\.?m?\.?/i},ee={},ne={};function ie(t,e){var n,i=Math.min(t.length,e.length);for(n=0;n0;){if(i=re(o.slice(0,e).join("-")))return i;if(n&&n.length>=e&&ie(o,n)>=e-1)break;e--}r++}return Qt}(t)}function le(t){var e,n=t._a;return n&&-2===m(t).overflow&&(e=n[1]<0||n[1]>11?1:n[2]<1||n[2]>St(n[0],n[1])?2:n[3]<0||n[3]>24||24===n[3]&&(0!==n[4]||0!==n[5]||0!==n[6])?3:n[4]<0||n[4]>59?4:n[5]<0||n[5]>59?5:n[6]<0||n[6]>999?6:-1,m(t)._overflowDayOfYear&&(e<0||e>2)&&(e=2),m(t)._overflowWeeks&&-1===e&&(e=7),m(t)._overflowWeekday&&-1===e&&(e=8),m(t).overflow=e),t}var ue=/^\s*((?:[+-]\d{6}|\d{4})-(?:\d\d-\d\d|W\d\d-\d|W\d\d|\d\d\d|\d\d))(?:(T| )(\d\d(?::\d\d(?::\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,he=/^\s*((?:[+-]\d{6}|\d{4})(?:\d\d\d\d|W\d\d\d|W\d\d|\d\d\d|\d\d|))(?:(T| )(\d\d(?:\d\d(?:\d\d(?:[.,]\d+)?)?)?)([+-]\d\d(?::?\d\d)?|\s*Z)?)?$/,de=/Z|[+-]\d\d(?::?\d\d)?/,pe=[["YYYYYY-MM-DD",/[+-]\d{6}-\d\d-\d\d/],["YYYY-MM-DD",/\d{4}-\d\d-\d\d/],["GGGG-[W]WW-E",/\d{4}-W\d\d-\d/],["GGGG-[W]WW",/\d{4}-W\d\d/,!1],["YYYY-DDD",/\d{4}-\d{3}/],["YYYY-MM",/\d{4}-\d\d/,!1],["YYYYYYMMDD",/[+-]\d{10}/],["YYYYMMDD",/\d{8}/],["GGGG[W]WWE",/\d{4}W\d{3}/],["GGGG[W]WW",/\d{4}W\d{2}/,!1],["YYYYDDD",/\d{7}/],["YYYYMM",/\d{6}/,!1],["YYYY",/\d{4}/,!1]],_e=[["HH:mm:ss.SSSS",/\d\d:\d\d:\d\d\.\d+/],["HH:mm:ss,SSSS",/\d\d:\d\d:\d\d,\d+/],["HH:mm:ss",/\d\d:\d\d:\d\d/],["HH:mm",/\d\d:\d\d/],["HHmmss.SSSS",/\d\d\d\d\d\d\.\d+/],["HHmmss,SSSS",/\d\d\d\d\d\d,\d+/],["HHmmss",/\d\d\d\d\d\d/],["HHmm",/\d\d\d\d/],["HH",/\d\d/]],me=/^\/?Date\((-?\d+)/i,fe=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),?\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|([+-]\d{4}))$/,ge={UT:0,GMT:0,EDT:-240,EST:-300,CDT:-300,CST:-360,MDT:-360,MST:-420,PDT:-420,PST:-480};function $e(t){var e,n,i,o,r,s,a=t._i,c=ue.exec(a)||he.exec(a),l=pe.length,u=_e.length;if(c){for(m(t).iso=!0,e=0,n=l;e7)&&(c=!0)):(r=t._locale._week.dow,s=t._locale._week.doy,l=Mt(Te(),r,s),n=be(e.gg,t._a[0],l.year),i=be(e.w,l.week),null!=e.d?((o=e.d)<0||o>6)&&(c=!0):null!=e.e?(o=e.e+r,(e.e<0||e.e>6)&&(c=!0)):o=r),i<1||i>kt(n,r,s)?m(t)._overflowWeeks=!0:null!=c?m(t)._overflowWeekday=!0:(a=Pt(n,i,o,r,s),t._a[0]=a.year,t._dayOfYear=a.dayOfYear)}(t),null!=t._dayOfYear&&(s=be(t._a[0],i[0]),(t._dayOfYear>At(s)||0===t._dayOfYear)&&(m(t)._overflowDayOfYear=!0),n=Ut(s,0,t._dayOfYear),t._a[1]=n.getUTCMonth(),t._a[2]=n.getUTCDate()),e=0;e<3&&null==t._a[e];++e)t._a[e]=a[e]=i[e];for(;e<7;e++)t._a[e]=a[e]=null==t._a[e]?2===e?1:0:t._a[e];24===t._a[3]&&0===t._a[4]&&0===t._a[5]&&0===t._a[6]&&(t._nextDay=!0,t._a[3]=0),t._d=(t._useUTC?Ut:It).apply(null,a),r=t._useUTC?t._d.getUTCDay():t._d.getDay(),null!=t._tzm&&t._d.setUTCMinutes(t._d.getUTCMinutes()-t._tzm),t._nextDay&&(t._a[3]=24),t._w&&void 0!==t._w.d&&t._w.d!==r&&(m(t).weekdayMismatch=!0)}}function ve(t){if(t._f!==o.ISO_8601)if(t._f!==o.RFC_2822){t._a=[],m(t).empty=!0;var e,n,i,r,s,a,c,l=""+t._i,u=l.length,h=0;for(c=(i=M(t._f,t._locale).match(A)||[]).length,e=0;e0&&m(t).unusedInput.push(s),l=l.slice(l.indexOf(n)+n.length),h+=n.length),U[r]?(n?m(t).empty=!1:m(t).unusedTokens.push(r),bt(r,n,t)):t._strict&&!n&&m(t).unusedTokens.push(r);m(t).charsLeftOver=u-h,l.length>0&&m(t).unusedInput.push(l),t._a[3]<=12&&!0===m(t).bigHour&&t._a[3]>0&&(m(t).bigHour=void 0),m(t).parsedDateParts=t._a.slice(0),m(t).meridiem=t._meridiem,t._a[3]=function(t,e,n){var i;return null==n?e:null!=t.meridiemHour?t.meridiemHour(e,n):null!=t.isPM?((i=t.isPM(n))&&e<12&&(e+=12),i||12!==e||(e=0),e):e}(t._locale,t._a[3],t._meridiem),null!==(a=m(t).era)&&(t._a[0]=t._locale.erasConvertYear(a,t._a[0])),Se(t),le(t)}else ye(t);else $e(t)}function Ce(t){var e=t._i,n=t._f;return t._locale=t._locale||ce(t._l),null===e||void 0===n&&""===e?g({nullInput:!0}):("string"==typeof e&&(t._i=e=t._locale.preparse(e)),S(e)?new b(le(e)):(h(e)?t._d=e:r(n)?function(t){var e,n,i,o,r,s,a=!1,c=t._f.length;if(0===c)return m(t).invalidFormat=!0,void(t._d=new Date(NaN));for(o=0;othis?this:t:g()}));function we(t,e){var n,i;if(1===e.length&&r(e[0])&&(e=e[0]),!e.length)return Te();for(n=e[0],i=1;i=0?new Date(t+400,e,n)-126227808e5:new Date(t,e,n).valueOf()}function rn(t,e,n){return t<100&&t>=0?Date.UTC(t+400,e,n)-126227808e5:Date.UTC(t,e,n)}function sn(t,e){return e.erasAbbrRegex(t)}function an(){var t,e,n=[],i=[],o=[],r=[],s=this.eras();for(t=0,e=s.length;t(r=kt(t,i,o))&&(e=r),un.call(this,t,e,n,i,o))}function un(t,e,n,i,o){var r=Pt(t,e,n,i,o),s=Ut(r.year,0,r.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}D("N",0,0,"eraAbbr"),D("NN",0,0,"eraAbbr"),D("NNN",0,0,"eraAbbr"),D("NNNN",0,0,"eraName"),D("NNNNN",0,0,"eraNarrow"),D("y",["y",1],"yo","eraYear"),D("y",["yy",2],0,"eraYear"),D("y",["yyy",3],0,"eraYear"),D("y",["yyyy",4],0,"eraYear"),_t("N",sn),_t("NN",sn),_t("NNN",sn),_t("NNNN",(function(t,e){return e.erasNameRegex(t)})),_t("NNNNN",(function(t,e){return e.erasNarrowRegex(t)})),Et(["N","NN","NNN","NNNN","NNNNN"],(function(t,e,n,i){var o=n._locale.erasParse(t,i,n._strict);o?m(n).era=o:m(n).invalidEra=t})),_t("y",lt),_t("yy",lt),_t("yyy",lt),_t("yyyy",lt),_t("yo",(function(t,e){return e._eraYearOrdinalRegex||lt})),Et(["y","yy","yyy","yyyy"],0),Et(["yo"],(function(t,e,n,i){var o;n._locale._eraYearOrdinalRegex&&(o=t.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?e[0]=n._locale.eraYearOrdinalParse(t,o):e[0]=parseInt(t,10)})),D(0,["gg",2],0,(function(){return this.weekYear()%100})),D(0,["GG",2],0,(function(){return this.isoWeekYear()%100})),cn("gggg","weekYear"),cn("ggggg","weekYear"),cn("GGGG","isoWeekYear"),cn("GGGGG","isoWeekYear"),j("weekYear","gg"),j("isoWeekYear","GG"),B("weekYear",1),B("isoWeekYear",1),_t("G",ut),_t("g",ut),_t("GG",it,Z),_t("gg",it,Z),_t("GGGG",at,et),_t("gggg",at,et),_t("GGGGG",ct,nt),_t("ggggg",ct,nt),yt(["gggg","ggggg","GGGG","GGGGG"],(function(t,e,n,i){e[i.substr(0,2)]=V(t)})),yt(["gg","GG"],(function(t,e,n,i){e[i]=o.parseTwoDigitYear(t)})),D("Q",0,"Qo","quarter"),j("quarter","Q"),B("quarter",7),_t("Q",Q),Et("Q",(function(t,e){e[1]=3*(V(t)-1)})),D("D",["DD",2],"Do","date"),j("date","D"),B("date",9),_t("D",it),_t("DD",it,Z),_t("Do",(function(t,e){return t?e._dayOfMonthOrdinalParse||e._ordinalParse:e._dayOfMonthOrdinalParseLenient})),Et(["D","DD"],2),Et("Do",(function(t,e){e[2]=V(t.match(it)[0])}));var hn=K("Date",!0);D("DDD",["DDDD",3],"DDDo","dayOfYear"),j("dayOfYear","DDD"),B("dayOfYear",4),_t("DDD",st),_t("DDDD",tt),Et(["DDD","DDDD"],(function(t,e,n){n._dayOfYear=V(t)})),D("m",["mm",2],0,"minute"),j("minute","m"),B("minute",14),_t("m",it),_t("mm",it,Z),Et(["m","mm"],4);var dn=K("Minutes",!1);D("s",["ss",2],0,"second"),j("second","s"),B("second",15),_t("s",it),_t("ss",it,Z),Et(["s","ss"],5);var pn,_n,mn=K("Seconds",!1);for(D("S",0,0,(function(){return~~(this.millisecond()/100)})),D(0,["SS",2],0,(function(){return~~(this.millisecond()/10)})),D(0,["SSS",3],0,"millisecond"),D(0,["SSSS",4],0,(function(){return 10*this.millisecond()})),D(0,["SSSSS",5],0,(function(){return 100*this.millisecond()})),D(0,["SSSSSS",6],0,(function(){return 1e3*this.millisecond()})),D(0,["SSSSSSS",7],0,(function(){return 1e4*this.millisecond()})),D(0,["SSSSSSSS",8],0,(function(){return 1e5*this.millisecond()})),D(0,["SSSSSSSSS",9],0,(function(){return 1e6*this.millisecond()})),j("millisecond","ms"),B("millisecond",16),_t("S",st,Q),_t("SS",st,Z),_t("SSS",st,tt),pn="SSSS";pn.length<=9;pn+="S")_t(pn,lt);function fn(t,e){e[6]=V(1e3*("0."+t))}for(pn="S";pn.length<=9;pn+="S")Et(pn,fn);_n=K("Milliseconds",!1),D("z",0,0,"zoneAbbr"),D("zz",0,0,"zoneName");var gn=b.prototype;function $n(t){return t}gn.add=Ve,gn.calendar=function(t,e){1===arguments.length&&(arguments[0]?Je(arguments[0])?(t=arguments[0],e=void 0):Ye(arguments[0])&&(e=arguments[0],t=void 0):(t=void 0,e=void 0));var n=t||Te(),i=Pe(n,this).startOf("day"),r=o.calendarFormat(this,i)||"sameElse",s=e&&(z(e[r])?e[r].call(this,n):e[r]);return this.format(s||this.localeData().calendar(r,this,Te(n)))},gn.clone=function(){return new b(this)},gn.diff=function(t,e,n){var i,o,r;if(!this.isValid())return NaN;if(!(i=Pe(t,this)).isValid())return NaN;switch(o=6e4*(i.utcOffset()-this.utcOffset()),e=G(e)){case"year":r=Qe(this,i)/12;break;case"month":r=Qe(this,i);break;case"quarter":r=Qe(this,i)/3;break;case"second":r=(this-i)/1e3;break;case"minute":r=(this-i)/6e4;break;case"hour":r=(this-i)/36e5;break;case"day":r=(this-i-o)/864e5;break;case"week":r=(this-i-o)/6048e5;break;default:r=this-i}return n?r:H(r)},gn.endOf=function(t){var e,n;if(void 0===(t=G(t))||"millisecond"===t||!this.isValid())return this;switch(n=this._isUTC?rn:on,t){case"year":e=n(this.year()+1,0,1)-1;break;case"quarter":e=n(this.year(),this.month()-this.month()%3+3,1)-1;break;case"month":e=n(this.year(),this.month()+1,1)-1;break;case"week":e=n(this.year(),this.month(),this.date()-this.weekday()+7)-1;break;case"isoWeek":e=n(this.year(),this.month(),this.date()-(this.isoWeekday()-1)+7)-1;break;case"day":case"date":e=n(this.year(),this.month(),this.date()+1)-1;break;case"hour":e=this._d.valueOf(),e+=36e5-nn(e+(this._isUTC?0:6e4*this.utcOffset()),36e5)-1;break;case"minute":e=this._d.valueOf(),e+=6e4-nn(e,6e4)-1;break;case"second":e=this._d.valueOf(),e+=1e3-nn(e,1e3)-1}return this._d.setTime(e),o.updateOffset(this,!0),this},gn.format=function(t){t||(t=this.isUtc()?o.defaultFormatUtc:o.defaultFormat);var e=P(this,t);return this.localeData().postformat(e)},gn.from=function(t,e){return this.isValid()&&(S(t)&&t.isValid()||Te(t).isValid())?qe({to:this,from:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},gn.fromNow=function(t){return this.from(Te(),t)},gn.to=function(t,e){return this.isValid()&&(S(t)&&t.isValid()||Te(t).isValid())?qe({from:this,to:t}).locale(this.locale()).humanize(!e):this.localeData().invalidDate()},gn.toNow=function(t){return this.to(Te(),t)},gn.get=function(t){return z(this[t=G(t)])?this[t]():this},gn.invalidAt=function(){return m(this).overflow},gn.isAfter=function(t,e){var n=S(t)?t:Te(t);return!(!this.isValid()||!n.isValid())&&("millisecond"===(e=G(e)||"millisecond")?this.valueOf()>n.valueOf():n.valueOf()9999?P(n,e?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):z(Date.prototype.toISOString)?e?this.toDate().toISOString():new Date(this.valueOf()+60*this.utcOffset()*1e3).toISOString().replace("Z",P(n,"Z")):P(n,e?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")},gn.inspect=function(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var t,e,n,i="moment",o="";return this.isLocal()||(i=0===this.utcOffset()?"moment.utc":"moment.parseZone",o="Z"),t="["+i+'("]',e=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",n=o+'[")]',this.format(t+e+"-MM-DD[T]HH:mm:ss.SSS"+n)},"undefined"!=typeof Symbol&&null!=Symbol.for&&(gn[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"}),gn.toJSON=function(){return this.isValid()?this.toISOString():null},gn.toString=function(){return this.clone().locale("en").format("ddd MMM DD YYYY HH:mm:ss [GMT]ZZ")},gn.unix=function(){return Math.floor(this.valueOf()/1e3)},gn.valueOf=function(){return this._d.valueOf()-6e4*(this._offset||0)},gn.creationData=function(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}},gn.eraName=function(){var t,e,n,i=this.localeData().eras();for(t=0,e=i.length;tthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()},gn.isLocal=function(){return!!this.isValid()&&!this._isUTC},gn.isUtcOffset=function(){return!!this.isValid()&&this._isUTC},gn.isUtc=ke,gn.isUTC=ke,gn.zoneAbbr=function(){return this._isUTC?"UTC":""},gn.zoneName=function(){return this._isUTC?"Coordinated Universal Time":""},gn.dates=C("dates accessor is deprecated. Use date instead.",hn),gn.months=C("months accessor is deprecated. Use month instead",Ot),gn.years=C("years accessor is deprecated. Use year instead",xt),gn.zone=C("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",(function(t,e){return null!=t?("string"!=typeof t&&(t=-t),this.utcOffset(t,e),this):-this.utcOffset()})),gn.isDSTShifted=C("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",(function(){if(!l(this._isDSTShifted))return this._isDSTShifted;var t,e={};return y(e,this),(e=Ce(e))._a?(t=e._isUTC?_(e._a):Te(e._a),this._isDSTShifted=this.isValid()&&function(t,e,n){var i,o=Math.min(t.length,e.length),r=Math.abs(t.length-e.length),s=0;for(i=0;i0):this._isDSTShifted=!1,this._isDSTShifted}));var En=O.prototype;function yn(t,e,n,i){var o=ce(),r=_().set(i,e);return o[n](r,t)}function bn(t,e,n){if(u(t)&&(e=t,t=void 0),t=t||"",null!=e)return yn(t,e,n,"month");var i,o=[];for(i=0;i<12;i++)o[i]=yn(t,i,n,"month");return o}function Sn(t,e,n,i){"boolean"==typeof t?(u(e)&&(n=e,e=void 0),e=e||""):(n=e=t,t=!1,u(e)&&(n=e,e=void 0),e=e||"");var o,r=ce(),s=t?r._week.dow:0,a=[];if(null!=n)return yn(e,(n+s)%7,i,"day");for(o=0;o<7;o++)a[o]=yn(e,(o+s)%7,i,"day");return a}En.calendar=function(t,e,n){var i=this._calendar[t]||this._calendar.sameElse;return z(i)?i.call(e,n):i},En.longDateFormat=function(t){var e=this._longDateFormat[t],n=this._longDateFormat[t.toUpperCase()];return e||!n?e:(this._longDateFormat[t]=n.match(A).map((function(t){return"MMMM"===t||"MM"===t||"DD"===t||"dddd"===t?t.slice(1):t})).join(""),this._longDateFormat[t])},En.invalidDate=function(){return this._invalidDate},En.ordinal=function(t){return this._ordinal.replace("%d",t)},En.preparse=$n,En.postformat=$n,En.relativeTime=function(t,e,n,i){var o=this._relativeTime[n];return z(o)?o(t,e,n,i):o.replace(/%d/i,t)},En.pastFuture=function(t,e){var n=this._relativeTime[t>0?"future":"past"];return z(n)?n(e):n.replace(/%s/i,e)},En.set=function(t){var e,n;for(n in t)a(t,n)&&(z(e=t[n])?this[n]=e:this["_"+n]=e);this._config=t,this._dayOfMonthOrdinalParseLenient=new RegExp((this._dayOfMonthOrdinalParse.source||this._ordinalParse.source)+"|"+/\d{1,2}/.source)},En.eras=function(t,e){var n,i,r,s=this._eras||ce("en")._eras;for(n=0,i=s.length;n=0)return c[i]},En.erasConvertYear=function(t,e){var n=t.since<=t.until?1:-1;return void 0===e?o(t.since).year():o(t.since).year()+(e-t.offset)*n},En.erasAbbrRegex=function(t){return a(this,"_erasAbbrRegex")||an.call(this),t?this._erasAbbrRegex:this._erasRegex},En.erasNameRegex=function(t){return a(this,"_erasNameRegex")||an.call(this),t?this._erasNameRegex:this._erasRegex},En.erasNarrowRegex=function(t){return a(this,"_erasNarrowRegex")||an.call(this),t?this._erasNarrowRegex:this._erasRegex},En.months=function(t,e){return t?r(this._months)?this._months[t.month()]:this._months[(this._months.isFormat||Nt).test(e)?"format":"standalone"][t.month()]:r(this._months)?this._months:this._months.standalone},En.monthsShort=function(t,e){return t?r(this._monthsShort)?this._monthsShort[t.month()]:this._monthsShort[Nt.test(e)?"format":"standalone"][t.month()]:r(this._monthsShort)?this._monthsShort:this._monthsShort.standalone},En.monthsParse=function(t,e,n){var i,o,r;if(this._monthsParseExact)return zt.call(this,t,e,n);for(this._monthsParse||(this._monthsParse=[],this._longMonthsParse=[],this._shortMonthsParse=[]),i=0;i<12;i++){if(o=_([2e3,i]),n&&!this._longMonthsParse[i]&&(this._longMonthsParse[i]=new RegExp("^"+this.months(o,"").replace(".","")+"$","i"),this._shortMonthsParse[i]=new RegExp("^"+this.monthsShort(o,"").replace(".","")+"$","i")),n||this._monthsParse[i]||(r="^"+this.months(o,"")+"|^"+this.monthsShort(o,""),this._monthsParse[i]=new RegExp(r.replace(".",""),"i")),n&&"MMMM"===e&&this._longMonthsParse[i].test(t))return i;if(n&&"MMM"===e&&this._shortMonthsParse[i].test(t))return i;if(!n&&this._monthsParse[i].test(t))return i}},En.monthsRegex=function(t){return this._monthsParseExact?(a(this,"_monthsRegex")||Rt.call(this),t?this._monthsStrictRegex:this._monthsRegex):(a(this,"_monthsRegex")||(this._monthsRegex=Lt),this._monthsStrictRegex&&t?this._monthsStrictRegex:this._monthsRegex)},En.monthsShortRegex=function(t){return this._monthsParseExact?(a(this,"_monthsRegex")||Rt.call(this),t?this._monthsShortStrictRegex:this._monthsShortRegex):(a(this,"_monthsShortRegex")||(this._monthsShortRegex=Tt),this._monthsShortStrictRegex&&t?this._monthsShortStrictRegex:this._monthsShortRegex)},En.week=function(t){return Mt(t,this._week.dow,this._week.doy).week},En.firstDayOfYear=function(){return this._week.doy},En.firstDayOfWeek=function(){return this._week.dow},En.weekdays=function(t,e){var n=r(this._weekdays)?this._weekdays:this._weekdays[t&&!0!==t&&this._weekdays.isFormat.test(e)?"format":"standalone"];return!0===t?jt(n,this._week.dow):t?n[t.day()]:n},En.weekdaysMin=function(t){return!0===t?jt(this._weekdaysMin,this._week.dow):t?this._weekdaysMin[t.day()]:this._weekdaysMin},En.weekdaysShort=function(t){return!0===t?jt(this._weekdaysShort,this._week.dow):t?this._weekdaysShort[t.day()]:this._weekdaysShort},En.weekdaysParse=function(t,e,n){var i,o,r;if(this._weekdaysParseExact)return Vt.call(this,t,e,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),i=0;i<7;i++){if(o=_([2e3,1]).day(i),n&&!this._fullWeekdaysParse[i]&&(this._fullWeekdaysParse[i]=new RegExp("^"+this.weekdays(o,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[i]=new RegExp("^"+this.weekdaysShort(o,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[i]=new RegExp("^"+this.weekdaysMin(o,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[i]||(r="^"+this.weekdays(o,"")+"|^"+this.weekdaysShort(o,"")+"|^"+this.weekdaysMin(o,""),this._weekdaysParse[i]=new RegExp(r.replace(".",""),"i")),n&&"dddd"===e&&this._fullWeekdaysParse[i].test(t))return i;if(n&&"ddd"===e&&this._shortWeekdaysParse[i].test(t))return i;if(n&&"dd"===e&&this._minWeekdaysParse[i].test(t))return i;if(!n&&this._weekdaysParse[i].test(t))return i}},En.weekdaysRegex=function(t){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Kt.call(this),t?this._weekdaysStrictRegex:this._weekdaysRegex):(a(this,"_weekdaysRegex")||(this._weekdaysRegex=Bt),this._weekdaysStrictRegex&&t?this._weekdaysStrictRegex:this._weekdaysRegex)},En.weekdaysShortRegex=function(t){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Kt.call(this),t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(a(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=Wt),this._weekdaysShortStrictRegex&&t?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)},En.weekdaysMinRegex=function(t){return this._weekdaysParseExact?(a(this,"_weekdaysRegex")||Kt.call(this),t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(a(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=Ht),this._weekdaysMinStrictRegex&&t?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)},En.isPM=function(t){return"p"===(t+"").toLowerCase().charAt(0)},En.meridiem=function(t,e,n){return t>11?n?"pm":"PM":n?"am":"AM"},se("en",{eras:[{since:"0001-01-01",until:1/0,offset:1,name:"Anno Domini",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"Before Christ",narrow:"BC",abbr:"BC"}],dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1===V(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}}),o.lang=C("moment.lang is deprecated. Use moment.locale instead.",se),o.langData=C("moment.langData is deprecated. Use moment.localeData instead.",ce);var vn=Math.abs;function Cn(t,e,n,i){var o=qe(e,n);return t._milliseconds+=i*o._milliseconds,t._days+=i*o._days,t._months+=i*o._months,t._bubble()}function Nn(t){return t<0?Math.floor(t):Math.ceil(t)}function Tn(t){return 4800*t/146097}function Ln(t){return 146097*t/4800}function zn(t){return function(){return this.as(t)}}var wn=zn("ms"),On=zn("s"),Rn=zn("m"),An=zn("h"),xn=zn("d"),In=zn("w"),Un=zn("M"),Dn=zn("Q"),Pn=zn("y");function Mn(t){return function(){return this.isValid()?this._data[t]:NaN}}var kn=Mn("milliseconds"),jn=Mn("seconds"),Gn=Mn("minutes"),qn=Mn("hours"),Fn=Mn("days"),Bn=Mn("months"),Wn=Mn("years"),Hn=Math.round,Vn={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function Kn(t,e,n,i,o){return o.relativeTime(e||1,!!n,t,i)}var Xn=Math.abs;function Jn(t){return(t>0)-(t<0)||+t}function Yn(){if(!this.isValid())return this.localeData().invalidDate();var t,e,n,i,o,r,s,a,c=Xn(this._milliseconds)/1e3,l=Xn(this._days),u=Xn(this._months),h=this.asSeconds();return h?(t=H(c/60),e=H(t/60),c%=60,t%=60,n=H(u/12),u%=12,i=c?c.toFixed(3).replace(/\.?0+$/,""):"",o=h<0?"-":"",r=Jn(this._months)!==Jn(h)?"-":"",s=Jn(this._days)!==Jn(h)?"-":"",a=Jn(this._milliseconds)!==Jn(h)?"-":"",o+"P"+(n?r+n+"Y":"")+(u?r+u+"M":"")+(l?s+l+"D":"")+(e||t||c?"T":"")+(e?a+e+"H":"")+(t?a+t+"M":"")+(c?a+i+"S":"")):"P0D"}var Qn=Re.prototype;return Qn.isValid=function(){return this._isValid},Qn.abs=function(){var t=this._data;return this._milliseconds=vn(this._milliseconds),this._days=vn(this._days),this._months=vn(this._months),t.milliseconds=vn(t.milliseconds),t.seconds=vn(t.seconds),t.minutes=vn(t.minutes),t.hours=vn(t.hours),t.months=vn(t.months),t.years=vn(t.years),this},Qn.add=function(t,e){return Cn(this,t,e,1)},Qn.subtract=function(t,e){return Cn(this,t,e,-1)},Qn.as=function(t){if(!this.isValid())return NaN;var e,n,i=this._milliseconds;if("month"===(t=G(t))||"quarter"===t||"year"===t)switch(e=this._days+i/864e5,n=this._months+Tn(e),t){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(e=this._days+Math.round(Ln(this._months)),t){case"week":return e/7+i/6048e5;case"day":return e+i/864e5;case"hour":return 24*e+i/36e5;case"minute":return 1440*e+i/6e4;case"second":return 86400*e+i/1e3;case"millisecond":return Math.floor(864e5*e)+i;default:throw new Error("Unknown unit "+t)}},Qn.asMilliseconds=wn,Qn.asSeconds=On,Qn.asMinutes=Rn,Qn.asHours=An,Qn.asDays=xn,Qn.asWeeks=In,Qn.asMonths=Un,Qn.asQuarters=Dn,Qn.asYears=Pn,Qn.valueOf=function(){return this.isValid()?this._milliseconds+864e5*this._days+this._months%12*2592e6+31536e6*V(this._months/12):NaN},Qn._bubble=function(){var t,e,n,i,o,r=this._milliseconds,s=this._days,a=this._months,c=this._data;return r>=0&&s>=0&&a>=0||r<=0&&s<=0&&a<=0||(r+=864e5*Nn(Ln(a)+s),s=0,a=0),c.milliseconds=r%1e3,t=H(r/1e3),c.seconds=t%60,e=H(t/60),c.minutes=e%60,n=H(e/60),c.hours=n%24,s+=H(n/24),o=H(Tn(s)),a+=o,s-=Nn(Ln(o)),i=H(a/12),a%=12,c.days=s,c.months=a,c.years=i,this},Qn.clone=function(){return qe(this)},Qn.get=function(t){return t=G(t),this.isValid()?this[t+"s"]():NaN},Qn.milliseconds=kn,Qn.seconds=jn,Qn.minutes=Gn,Qn.hours=qn,Qn.days=Fn,Qn.weeks=function(){return H(this.days()/7)},Qn.months=Bn,Qn.years=Wn,Qn.humanize=function(t,e){if(!this.isValid())return this.localeData().invalidDate();var n,i,o=!1,r=Vn;return"object"==typeof t&&(e=t,t=!1),"boolean"==typeof t&&(o=t),"object"==typeof e&&(r=Object.assign({},Vn,e),null!=e.s&&null==e.ss&&(r.ss=e.s-1)),n=this.localeData(),i=function(t,e,n,i){var o=qe(t).abs(),r=Hn(o.as("s")),s=Hn(o.as("m")),a=Hn(o.as("h")),c=Hn(o.as("d")),l=Hn(o.as("M")),u=Hn(o.as("w")),h=Hn(o.as("y")),d=r<=n.ss&&["s",r]||r0,d[4]=i,Kn.apply(null,d)}(this,!o,r,n),o&&(i=n.pastFuture(+this,i)),n.postformat(i)},Qn.toISOString=Yn,Qn.toString=Yn,Qn.toJSON=Yn,Qn.locale=Ze,Qn.localeData=en,Qn.toIsoString=C("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",Yn),Qn.lang=tn,D("X",0,0,"unix"),D("x",0,0,"valueOf"),_t("x",ut),_t("X",/[+-]?\d+(\.\d{1,3})?/),Et("X",(function(t,e,n){n._d=new Date(1e3*parseFloat(t))})),Et("x",(function(t,e,n){n._d=new Date(V(t))})), //! moment.js o.version="2.29.3",e=Te,o.fn=gn,o.min=function(){var t=[].slice.call(arguments,0);return we("isBefore",t)},o.max=function(){var t=[].slice.call(arguments,0);return we("isAfter",t)},o.now=function(){return Date.now?Date.now():+new Date},o.utc=_,o.unix=function(t){return Te(1e3*t)},o.months=function(t,e){return bn(t,e,"months")},o.isDate=h,o.locale=se,o.invalid=g,o.duration=qe,o.isMoment=S,o.weekdays=function(t,e,n){return Sn(t,e,n,"weekdays")},o.parseZone=function(){return Te.apply(null,arguments).parseZone()},o.localeData=ce,o.isDuration=Ae,o.monthsShort=function(t,e){return bn(t,e,"monthsShort")},o.weekdaysMin=function(t,e,n){return Sn(t,e,n,"weekdaysMin")},o.defineLocale=ae,o.updateLocale=function(t,e){if(null!=e){var n,i,o=te;null!=ee[t]&&null!=ee[t].parentLocale?ee[t].set(w(ee[t]._config,e)):(null!=(i=re(t))&&(o=i._config),e=w(o,e),null==i&&(e.abbr=t),(n=new O(e)).parentLocale=ee[t],ee[t]=n),se(t)}else null!=ee[t]&&(null!=ee[t].parentLocale?(ee[t]=ee[t].parentLocale,t===se()&&se(t)):null!=ee[t]&&delete ee[t]);return ee[t]},o.locales=function(){return N(ee)},o.weekdaysShort=function(t,e,n){return Sn(t,e,n,"weekdaysShort")},o.normalizeUnits=G,o.relativeTimeRounding=function(t){return void 0===t?Hn:"function"==typeof t&&(Hn=t,!0)},o.relativeTimeThreshold=function(t,e){return void 0!==Vn[t]&&(void 0===e?Vn[t]:(Vn[t]=e,"s"===t&&(Vn.ss=e-1),!0))},o.calendarFormat=function(t,e){var n=t.diff(e,"days",!0);return n<-6?"sameElse":n<-1?"lastWeek":n<0?"lastDay":n<1?"sameDay":n<2?"nextDay":n<7?"nextWeek":"sameElse"},o.prototype=gn,o.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"},o}()}).call(this,n(286)(t))},,function(t,e,n){"use strict";function i(){return(i=Object.assign?Object.assign.bind():function(t){for(var e=1;et&&t[e]?t[e]:null,t);if(null!=n)return n}return e.split(".").reduce((t,e)=>t&&null!=t[e]?t[e]:null,t)}function s(t,e,n,i=n){let o;return o="function"==typeof t?t(n):Array.isArray(t)?t[n]||i:r(t,n)||i,e&&(o=e(o)),o}e.a=function(t){const{prop:e,cssProperty:n=t.prop,themeKey:a,transform:c}=t,l=t=>{if(null==t[e])return null;const l=t[e],u=r(t.theme,a)||{};return Object(o.b)(t,l,t=>{let o=s(u,c,t);return t===o&&"string"==typeof t&&(o=s(u,c,`${e}${"default"===t?"":Object(i.a)(t)}`,t)),!1===n?o:{[n]:o}})};return l.propTypes={},l.filterProps=[e],l}},function(t,e,n){"use strict";n.d(e,"c",(function(){return r})),n.d(e,"e",(function(){return s})),n.d(e,"a",(function(){return a})),n.d(e,"b",(function(){return c})),n.d(e,"d",(function(){return l}));var i=n(0),o=n(267);const r=()=>{const t=i.useContext(o.b);if(null===t)throw new Error("MUI: Can not find utils in context. It looks like you forgot to wrap your component in LocalizationProvider, or pass dateAdapter prop directly.");return t},s=()=>r().utils,a=()=>r().defaultDates,c=()=>r().localeText,l=()=>{const t=s();return i.useRef(t.date()).current}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n(1018);const o={active:"active",checked:"checked",completed:"completed",disabled:"disabled",error:"error",expanded:"expanded",focused:"focused",focusVisible:"focusVisible",required:"required",selected:"selected"};function r(t,e,n="Mui"){const r=o[e];return r?`${n}-${r}`:`${i.a.generate(t)}-${e}`}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n(15);function o(t,e,n="Mui"){const o={};return e.forEach(e=>{o[e]=Object(i.a)(t,e,n)}),o}},function(t,e,n){"use strict";n.d(e,"a",(function(){return a}));var i=n(1),o=n(0),r=n(338),s=n(2);function a(t,e){const n=(n,o)=>Object(s.jsx)(r.a,Object(i.a)({"data-testid":e+"Icon",ref:o},n,{children:t}));return n.muiName=r.a.muiName,o.memo(o.forwardRef(n))}},function(t,e,n){"use strict";function i(t,e,n){const i={};return Object.keys(t).forEach(o=>{i[o]=t[o].reduce((t,i)=>(i&&(t.push(e(i)),n&&n[i]&&t.push(n[i])),t),[]).join(" ")}),i}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";n.r(e),n.d(e,"default",(function(){return r}));n(0);var i=n(117),o=n(142);function r(){return Object(i.a)(o.a)}},function(t,e){"function"==typeof Object.create?t.exports=function(t,e){e&&(t.super_=e,t.prototype=Object.create(e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}))}:t.exports=function(t,e){if(e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}}},function(t,e,n){"use strict";var i=n(354);e.a=i.a},,function(t,e,n){"use strict";function i(){return(i=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const{ownerState:n}=t;return[e.root,e[n.orientation],"entered"===n.state&&e.entered,"exited"===n.state&&!n.in&&"0px"===n.collapsedSize&&e.hidden]}})(({theme:t,ownerState:e})=>Object(L.a)({height:0,overflow:"hidden",transition:t.transitions.create("height")},"horizontal"===e.orientation&&{height:"auto",width:0,transition:t.transitions.create("width")},"entered"===e.state&&Object(L.a)({height:"auto",overflow:"visible"},"horizontal"===e.orientation&&{width:"auto"}),"exited"===e.state&&!e.in&&"0px"===e.collapsedSize&&{visibility:"hidden"})),W=Object(R.a)("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(t,e)=>e.wrapper})(({ownerState:t})=>Object(L.a)({display:"flex",width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})),H=Object(R.a)("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(t,e)=>e.wrapperInner})(({ownerState:t})=>Object(L.a)({width:"100%"},"horizontal"===t.orientation&&{width:"auto",height:"100%"})),V=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiCollapse"}),{addEndListener:i,children:o,className:r,collapsedSize:s="0px",component:a,easing:c,in:l,onEnter:u,onEntered:h,onEntering:d,onExit:p,onExited:_,onExiting:m,orientation:f="vertical",style:g,timeout:$=I.b.standard,TransitionComponent:E=x.a}=n,y=Object(T.a)(n,F),b=Object(L.a)({},n,{orientation:f,collapsedSize:s}),S=(t=>{const{orientation:e,classes:n}=t,i={root:["root",""+e],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",""+e],wrapperInner:["wrapperInner",""+e]};return Object(O.a)(i,j,n)})(b),v=Object(D.default)(),C=z.useRef(),N=z.useRef(null),R=z.useRef(),M="number"==typeof s?s+"px":s,k="horizontal"===f,G=k?"width":"height";z.useEffect(()=>()=>{clearTimeout(C.current)},[]);const V=z.useRef(null),K=Object(P.a)(e,V),X=t=>e=>{if(t){const n=V.current;void 0===e?t(n):t(n,e)}},J=()=>N.current?N.current[k?"clientWidth":"clientHeight"]:0,Y=X((t,e)=>{N.current&&k&&(N.current.style.position="absolute"),t.style[G]=M,u&&u(t,e)}),Q=X((t,e)=>{const n=J();N.current&&k&&(N.current.style.position="");const{duration:i,easing:o}=Object(U.a)({style:g,timeout:$,easing:c},{mode:"enter"});if("auto"===$){const e=v.transitions.getAutoHeightDuration(n);t.style.transitionDuration=e+"ms",R.current=e}else t.style.transitionDuration="string"==typeof i?i:i+"ms";t.style[G]=n+"px",t.style.transitionTimingFunction=o,d&&d(t,e)}),Z=X((t,e)=>{t.style[G]="auto",h&&h(t,e)}),tt=X(t=>{t.style[G]=J()+"px",p&&p(t)}),et=X(_),nt=X(t=>{const e=J(),{duration:n,easing:i}=Object(U.a)({style:g,timeout:$,easing:c},{mode:"exit"});if("auto"===$){const n=v.transitions.getAutoHeightDuration(e);t.style.transitionDuration=n+"ms",R.current=n}else t.style.transitionDuration="string"==typeof n?n:n+"ms";t.style[G]=M,t.style.transitionTimingFunction=i,m&&m(t)});return Object(q.jsx)(E,Object(L.a)({in:l,onEnter:Y,onEntered:Z,onEntering:Q,onExit:tt,onExited:et,onExiting:nt,addEndListener:t=>{"auto"===$&&(C.current=setTimeout(t,R.current||0)),i&&i(V.current,t)},nodeRef:V,timeout:"auto"===$?null:$},y,{children:(t,e)=>Object(q.jsx)(B,Object(L.a)({as:a,className:Object(w.a)(S.root,r,{entered:S.entered,exited:!l&&"0px"===M&&S.hidden}[t]),style:Object(L.a)({[k?"minWidth":"minHeight"]:M},g),ownerState:Object(L.a)({},b,{state:t}),ref:K},e,{children:Object(q.jsx)(W,{ownerState:Object(L.a)({},b,{state:t}),className:S.wrapper,ref:N,children:Object(q.jsx)(H,{ownerState:Object(L.a)({},b,{state:t}),className:S.wrapperInner,children:o})})}))}))}));V.muiSupportAuto=!0;var K=V,X=n(100);var J=z.createContext({}),Y=n(65);function Q(t){return Object(M.a)("MuiAccordion",t)}var Z=Object(k.a)("MuiAccordion",["root","rounded","expanded","disabled","gutters","region"]);const tt=["children","className","defaultExpanded","disabled","disableGutters","expanded","onChange","square","TransitionComponent","TransitionProps"],et=Object(R.a)(X.a,{name:"MuiAccordion",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{["& ."+Z.region]:e.region},e.root,!n.square&&e.rounded,!n.disableGutters&&e.gutters]}})(({theme:t})=>{const e={duration:t.transitions.duration.shortest};return{position:"relative",transition:t.transitions.create(["margin"],e),overflowAnchor:"none","&:before":{position:"absolute",left:0,top:-1,right:0,height:1,content:'""',opacity:1,backgroundColor:(t.vars||t).palette.divider,transition:t.transitions.create(["opacity","background-color"],e)},"&:first-of-type":{"&:before":{display:"none"}},["&."+Z.expanded]:{"&:before":{opacity:0},"&:first-of-type":{marginTop:0},"&:last-of-type":{marginBottom:0},"& + &":{"&:before":{display:"none"}}},["&."+Z.disabled]:{backgroundColor:(t.vars||t).palette.action.disabledBackground}}},({theme:t,ownerState:e})=>Object(L.a)({},!e.square&&{borderRadius:0,"&:first-of-type":{borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius},"&:last-of-type":{borderBottomLeftRadius:(t.vars||t).shape.borderRadius,borderBottomRightRadius:(t.vars||t).shape.borderRadius,"@supports (-ms-ime-align: auto)":{borderBottomLeftRadius:0,borderBottomRightRadius:0}}},!e.disableGutters&&{["&."+Z.expanded]:{margin:"16px 0"}}));var nt=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiAccordion"}),{children:i,className:o,defaultExpanded:r=!1,disabled:s=!1,disableGutters:a=!1,expanded:c,onChange:l,square:u=!1,TransitionComponent:h=K,TransitionProps:d}=n,p=Object(T.a)(n,tt),[_,m]=Object(Y.a)({controlled:c,default:r,name:"Accordion",state:"expanded"}),f=z.useCallback(t=>{m(!_),l&&l(t,!_)},[_,l,m]),[g,...$]=z.Children.toArray(i),E=z.useMemo(()=>({expanded:_,disabled:s,disableGutters:a,toggle:f}),[_,s,a,f]),y=Object(L.a)({},n,{square:u,disabled:s,disableGutters:a,expanded:_}),b=(t=>{const{classes:e,square:n,expanded:i,disabled:o,disableGutters:r}=t,s={root:["root",!n&&"rounded",i&&"expanded",o&&"disabled",!r&&"gutters"],region:["region"]};return Object(O.a)(s,Q,e)})(y);return Object(q.jsxs)(et,Object(L.a)({className:Object(w.a)(b.root,o),ref:e,ownerState:y,square:u},p,{children:[Object(q.jsx)(J.Provider,{value:E,children:g}),Object(q.jsx)(h,Object(L.a)({in:_,timeout:"auto"},d,{children:Object(q.jsx)("div",{"aria-labelledby":g.props.id,id:g.props["aria-controls"],role:"region",className:b.region,children:$})}))]}))}));function it(t){return Object(M.a)("MuiAccordionActions",t)}var ot=Object(k.a)("MuiAccordionActions",["root","spacing"]);const rt=["className","disableSpacing"],st=Object(R.a)("div",{name:"MuiAccordionActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disableSpacing&&e.spacing]}})(({ownerState:t})=>Object(L.a)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end"},!t.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}}));var at=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiAccordionActions"}),{className:i,disableSpacing:o=!1}=n,r=Object(T.a)(n,rt),s=Object(L.a)({},n,{disableSpacing:o}),a=(t=>{const{classes:e,disableSpacing:n}=t,i={root:["root",!n&&"spacing"]};return Object(O.a)(i,it,e)})(s);return Object(q.jsx)(st,Object(L.a)({className:Object(w.a)(a.root,i),ref:e,ownerState:s},r))}));function ct(t){return Object(M.a)("MuiAccordionDetails",t)}var lt=Object(k.a)("MuiAccordionDetails",["root"]);const ut=["className"],ht=Object(R.a)("div",{name:"MuiAccordionDetails",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({padding:t.spacing(1,2,2)}));var dt=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiAccordionDetails"}),{className:i}=n,o=Object(T.a)(n,ut),r=n,s=(t=>{const{classes:e}=t;return Object(O.a)({root:["root"]},ct,e)})(r);return Object(q.jsx)(ht,Object(L.a)({className:Object(w.a)(s.root,i),ref:e,ownerState:r},o))})),pt=n(93);function _t(t){return Object(M.a)("MuiAccordionSummary",t)}var mt=Object(k.a)("MuiAccordionSummary",["root","expanded","focusVisible","disabled","gutters","contentGutters","content","expandIconWrapper"]);const ft=["children","className","expandIcon","focusVisibleClassName","onClick"],gt=Object(R.a)(pt.a,{name:"MuiAccordionSummary",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t,ownerState:e})=>{const n={duration:t.transitions.duration.shortest};return Object(L.a)({display:"flex",minHeight:48,padding:t.spacing(0,2),transition:t.transitions.create(["min-height","background-color"],n),["&."+mt.focusVisible]:{backgroundColor:(t.vars||t).palette.action.focus},["&."+mt.disabled]:{opacity:(t.vars||t).palette.action.disabledOpacity},[`&:hover:not(.${mt.disabled})`]:{cursor:"pointer"}},!e.disableGutters&&{["&."+mt.expanded]:{minHeight:64}})}),$t=Object(R.a)("div",{name:"MuiAccordionSummary",slot:"Content",overridesResolver:(t,e)=>e.content})(({theme:t,ownerState:e})=>Object(L.a)({display:"flex",flexGrow:1,margin:"12px 0"},!e.disableGutters&&{transition:t.transitions.create(["margin"],{duration:t.transitions.duration.shortest}),["&."+mt.expanded]:{margin:"20px 0"}})),Et=Object(R.a)("div",{name:"MuiAccordionSummary",slot:"ExpandIconWrapper",overridesResolver:(t,e)=>e.expandIconWrapper})(({theme:t})=>({display:"flex",color:(t.vars||t).palette.action.active,transform:"rotate(0deg)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shortest}),["&."+mt.expanded]:{transform:"rotate(180deg)"}}));var yt=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiAccordionSummary"}),{children:i,className:o,expandIcon:r,focusVisibleClassName:s,onClick:a}=n,c=Object(T.a)(n,ft),{disabled:l=!1,disableGutters:u,expanded:h,toggle:d}=z.useContext(J),p=Object(L.a)({},n,{expanded:h,disabled:l,disableGutters:u}),_=(t=>{const{classes:e,expanded:n,disabled:i,disableGutters:o}=t,r={root:["root",n&&"expanded",i&&"disabled",!o&&"gutters"],focusVisible:["focusVisible"],content:["content",n&&"expanded",!o&&"contentGutters"],expandIconWrapper:["expandIconWrapper",n&&"expanded"]};return Object(O.a)(r,_t,e)})(p);return Object(q.jsxs)(gt,Object(L.a)({focusRipple:!1,disableRipple:!0,disabled:l,component:"div","aria-expanded":h,className:Object(w.a)(_.root,o),focusVisibleClassName:Object(w.a)(_.focusVisible,s),onClick:t=>{d&&d(t),a&&a(t)},ref:e,ownerState:p},c,{children:[Object(q.jsx)($t,{className:_.content,ownerState:p,children:i}),r&&Object(q.jsx)(Et,{className:_.expandIconWrapper,ownerState:p,children:r})]}))})),bt=n(28),St=n(6);function vt(t){return Object(M.a)("MuiAlert",t)}var Ct,Nt=Object(k.a)("MuiAlert",["root","action","icon","message","filled","filledSuccess","filledInfo","filledWarning","filledError","outlined","outlinedSuccess","outlinedInfo","outlinedWarning","outlinedError","standard","standardSuccess","standardInfo","standardWarning","standardError"]),Tt=n(405),Lt=n(17),zt=Object(Lt.a)(Object(q.jsx)("path",{d:"M20,12A8,8 0 0,1 12,20A8,8 0 0,1 4,12A8,8 0 0,1 12,4C12.76,4 13.5,4.11 14.2, 4.31L15.77,2.74C14.61,2.26 13.34,2 12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, 0 22,12M7.91,10.08L6.5,11.5L11,16L21,6L19.59,4.58L11,13.17L7.91,10.08Z"}),"SuccessOutlined"),wt=Object(Lt.a)(Object(q.jsx)("path",{d:"M12 5.99L19.53 19H4.47L12 5.99M12 2L1 21h22L12 2zm1 14h-2v2h2v-2zm0-6h-2v4h2v-4z"}),"ReportProblemOutlined"),Ot=Object(Lt.a)(Object(q.jsx)("path",{d:"M11 15h2v2h-2zm0-8h2v6h-2zm.99-5C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"ErrorOutline"),Rt=Object(Lt.a)(Object(q.jsx)("path",{d:"M11,9H13V7H11M12,20C7.59,20 4,16.41 4,12C4,7.59 7.59,4 12,4C16.41,4 20,7.59 20, 12C20,16.41 16.41,20 12,20M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10, 10 0 0,0 12,2M11,17H13V11H11V17Z"}),"InfoOutlined"),At=Object(Lt.a)(Object(q.jsx)("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");const xt=["action","children","className","closeText","color","icon","iconMapping","onClose","role","severity","variant"],It=Object(R.a)(X.a,{name:"MuiAlert",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`${n.variant}${Object(St.a)(n.color||n.severity)}`]]}})(({theme:t,ownerState:e})=>{const n="light"===t.palette.mode?bt.c:bt.j,i="light"===t.palette.mode?bt.j:bt.c,o=e.color||e.severity;return Object(L.a)({},t.typography.body2,{backgroundColor:"transparent",display:"flex",padding:"6px 16px"},o&&"standard"===e.variant&&{color:t.vars?t.vars.palette.Alert[o+"Color"]:n(t.palette[o].light,.6),backgroundColor:t.vars?t.vars.palette.Alert[o+"StandardBg"]:i(t.palette[o].light,.9),["& ."+Nt.icon]:t.vars?{color:t.vars.palette.Alert[o+"IconColor"]}:{color:"dark"===t.palette.mode?t.palette[o].main:t.palette[o].light}},o&&"outlined"===e.variant&&{color:t.vars?t.vars.palette.Alert[o+"Color"]:n(t.palette[o].light,.6),border:"1px solid "+(t.vars||t).palette[o].light,["& ."+Nt.icon]:t.vars?{color:t.vars.palette.Alert[o+"IconColor"]}:{color:"dark"===t.palette.mode?t.palette[o].main:t.palette[o].light}},o&&"filled"===e.variant&&Object(L.a)({fontWeight:t.typography.fontWeightMedium},t.vars?{color:t.vars.palette.Alert[o+"FilledColor"],backgroundColor:t.vars.palette.Alert[o+"FilledBg"]}:{backgroundColor:"dark"===t.palette.mode?t.palette[o].dark:t.palette[o].main,color:t.palette.getContrastText("dark"===t.palette.mode?t.palette[o].dark:t.palette[o].main)}))}),Ut=Object(R.a)("div",{name:"MuiAlert",slot:"Icon",overridesResolver:(t,e)=>e.icon})({marginRight:12,padding:"7px 0",display:"flex",fontSize:22,opacity:.9}),Dt=Object(R.a)("div",{name:"MuiAlert",slot:"Message",overridesResolver:(t,e)=>e.message})({padding:"8px 0",minWidth:0,overflow:"auto"}),Pt=Object(R.a)("div",{name:"MuiAlert",slot:"Action",overridesResolver:(t,e)=>e.action})({display:"flex",alignItems:"flex-start",padding:"4px 0 0 16px",marginLeft:"auto",marginRight:-8}),Mt={success:Object(q.jsx)(zt,{fontSize:"inherit"}),warning:Object(q.jsx)(wt,{fontSize:"inherit"}),error:Object(q.jsx)(Ot,{fontSize:"inherit"}),info:Object(q.jsx)(Rt,{fontSize:"inherit"})};var kt=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiAlert"}),{action:i,children:o,className:r,closeText:s="Close",color:a,icon:c,iconMapping:l=Mt,onClose:u,role:h="alert",severity:d="success",variant:p="standard"}=n,_=Object(T.a)(n,xt),m=Object(L.a)({},n,{color:a,severity:d,variant:p}),f=(t=>{const{variant:e,color:n,severity:i,classes:o}=t,r={root:["root",`${e}${Object(St.a)(n||i)}`,""+e],icon:["icon"],message:["message"],action:["action"]};return Object(O.a)(r,vt,o)})(m);return Object(q.jsxs)(It,Object(L.a)({role:h,elevation:0,ownerState:m,className:Object(w.a)(f.root,r),ref:e},_,{children:[!1!==c?Object(q.jsx)(Ut,{ownerState:m,className:f.icon,children:c||l[d]||Mt[d]}):null,Object(q.jsx)(Dt,{ownerState:m,className:f.message,children:o}),null!=i?Object(q.jsx)(Pt,{ownerState:m,className:f.action,children:i}):null,null==i&&u?Object(q.jsx)(Pt,{ownerState:m,className:f.action,children:Object(q.jsx)(Tt.a,{size:"small","aria-label":s,title:s,color:"inherit",onClick:u,children:Ct||(Ct=Object(q.jsx)(At,{fontSize:"small"}))})}):null]}))})),jt=n(126);function Gt(t){return Object(M.a)("MuiAlertTitle",t)}var qt=Object(k.a)("MuiAlertTitle",["root"]);const Ft=["className"],Bt=Object(R.a)(jt.a,{name:"MuiAlertTitle",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({fontWeight:t.typography.fontWeightMedium,marginTop:-2}));var Wt=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiAlertTitle"}),{className:i}=n,o=Object(T.a)(n,Ft),r=n,s=(t=>{const{classes:e}=t;return Object(O.a)({root:["root"]},Gt,e)})(r);return Object(q.jsx)(Bt,Object(L.a)({gutterBottom:!0,component:"div",ownerState:r,ref:e,className:Object(w.a)(s.root,i)},o))})),Ht=n(629),Vt=n(292),Kt=n(419),Xt=n(1026),Jt=n(736),Yt=n(352);function Qt(t){return void 0!==t.normalize?t.normalize("NFD").replace(/[\u0300-\u036f]/g,""):t}function Zt(t={}){const{ignoreAccents:e=!0,ignoreCase:n=!0,limit:i,matchFrom:o="any",stringify:r,trim:s=!1}=t;return(t,{inputValue:a,getOptionLabel:c})=>{let l=s?a.trim():a;n&&(l=l.toLowerCase()),e&&(l=Qt(l));const u=t.filter(t=>{let i=(r||c)(t);return n&&(i=i.toLowerCase()),e&&(i=Qt(i)),"start"===o?0===i.indexOf(l):i.indexOf(l)>-1});return"number"==typeof i?u.slice(0,i):u}}function te(t,e){for(let n=0;n{var e;return null!=(e=t.label)?e:t}),groupBy:E,handleHomeEndKeys:y=!t.freeSolo,id:b,includeInputInList:S=!1,inputValue:v,isOptionEqualToValue:C=((t,e)=>t===e),multiple:N=!1,onChange:T,onClose:w,onHighlightChange:O,onInputChange:R,onOpen:A,open:x,openOnFocus:I=!1,options:U,readOnly:D=!1,selectOnFocus:P=!t.freeSolo,value:M}=t,k=Object(Kt.a)(b);let j=$;j=t=>{const e=$(t);return"string"!=typeof e?String(e):e};const G=z.useRef(!1),q=z.useRef(!0),F=z.useRef(null),B=z.useRef(null),[W,H]=z.useState(null),[V,K]=z.useState(-1),X=n?0:-1,J=z.useRef(X),[Y,Q]=Object(Xt.a)({controlled:M,default:c,name:a}),[Z,tt]=Object(Xt.a)({controlled:v,default:"",name:a,state:"inputValue"}),[et,nt]=z.useState(!1),it=z.useCallback((t,e)=>{if(!(N?Y.length{const t=Y!==ot.current;ot.current=Y,et&&!t||f&&!t||it(null,Y)},[Y,it,et,ot,f]);const[rt,st]=Object(Xt.a)({controlled:x,default:!1,name:a,state:"open"}),[at,ct]=z.useState(!0),lt=!N&&null!=Y&&Z===j(Y),ut=rt&&!D,ht=ut?_(U.filter(t=>!m||!(N?Y:[Y]).some(e=>null!==e&&C(t,e))),{inputValue:lt&&at?"":Z,getOptionLabel:j}):[],dt=rt&&ht.length>0&&!D;const pt=Object(Jt.a)(t=>{-1===t?F.current.focus():W.querySelector(`[data-tag-index="${t}"]`).focus()});z.useEffect(()=>{N&&V>Y.length-1&&(K(-1),pt(-1))},[Y,N,V,pt]);const _t=Object(Jt.a)(({event:t,index:e,reason:n="auto"})=>{if(J.current=e,-1===e?F.current.removeAttribute("aria-activedescendant"):F.current.setAttribute("aria-activedescendant",`${k}-option-${e}`),O&&O(t,-1===e?null:ht[e],n),!B.current)return;const i=B.current.querySelector('[role="option"].Mui-focused');i&&(i.classList.remove("Mui-focused"),i.classList.remove("Mui-focusVisible"));const o=B.current.parentElement.querySelector('[role="listbox"]');if(!o)return;if(-1===e)return void(o.scrollTop=0);const r=B.current.querySelector(`[data-option-index="${e}"]`);if(r&&(r.classList.add("Mui-focused"),"keyboard"===n&&r.classList.add("Mui-focusVisible"),o.scrollHeight>o.clientHeight&&"mouse"!==n)){const t=r,e=o.clientHeight+o.scrollTop,n=t.offsetTop+t.offsetHeight;n>e?o.scrollTop=n-o.clientHeight:t.offsetTop-t.offsetHeight*(E?1.3:0){if(!ut)return;const r=function(t,e){if(!B.current||-1===t)return-1;let n=t;for(;;){if("next"===e&&n===ht.length||"previous"===e&&-1===n)return-1;const t=B.current.querySelector(`[data-option-index="${n}"]`),i=!d&&(!t||t.disabled||"true"===t.getAttribute("aria-disabled"));if(!(t&&!t.hasAttribute("tabindex")||i))return n;n+="next"===e?1:-1}}((()=>{const t=ht.length-1;if("reset"===n)return X;if("start"===n)return 0;if("end"===n)return t;const e=J.current+n;return e<0?-1===e&&S?-1:p&&-1!==J.current||Math.abs(n)>1?0:t:e>t?e===t+1&&S?-1:p||Math.abs(n)>1?t:0:e})(),i);if(_t({index:r,reason:o,event:t}),e&&"reset"!==n)if(-1===r)F.current.value=Z;else{const t=j(ht[r]);F.current.value=t;0===t.toLowerCase().indexOf(Z.toLowerCase())&&Z.length>0&&F.current.setSelectionRange(Z.length,t.length)}}),ft=z.useCallback(()=>{if(!ut)return;const t=N?Y[0]:Y;if(0!==ht.length&&null!=t){if(B.current)if(null==t)J.current>=ht.length-1?_t({index:ht.length-1}):_t({index:J.current});else{const e=ht[J.current];if(N&&e&&-1!==te(Y,t=>C(e,t)))return;const n=te(ht,e=>C(e,t));-1===n?mt({diff:"reset"}):_t({index:n})}}else mt({diff:"reset"})},[ht.length,!N&&Y,m,mt,_t,ut,Z,N]),gt=Object(Jt.a)(t=>{Object(Yt.a)(B,t),t&&ft()});z.useEffect(()=>{ft()},[ft]);const $t=t=>{rt||(st(!0),ct(!0),A&&A(t))},Et=(t,e)=>{rt&&(st(!1),w&&w(t,e))},yt=(t,e,n,i)=>{if(N){if(Y.length===e.length&&Y.every((t,n)=>t===e[n]))return}else if(Y===e)return;T&&T(t,e,n,i),Q(e)},bt=z.useRef(!1),St=(t,e,n="selectOption",i="options")=>{let r=n,s=e;if(N){s=Array.isArray(Y)?Y.slice():[];const t=te(s,t=>C(e,t));-1===t?s.push(e):"freeSolo"!==i&&(s.splice(t,1),r="removeOption")}it(t,s),yt(t,s,r,{option:e}),u||t&&(t.ctrlKey||t.metaKey)||Et(t,r),(!0===o||"touch"===o&&bt.current||"mouse"===o&&!bt.current)&&F.current.blur()};const vt=(t,e)=>{if(!N)return;""===Z&&Et(t,"toggleInput");let n=V;-1===V?""===Z&&"previous"===e&&(n=Y.length-1):(n+="next"===e?1:-1,n<0&&(n=0),n===Y.length&&(n=-1)),n=function(t,e){if(-1===t)return-1;let n=t;for(;;){if("next"===e&&n===Y.length||"previous"===e&&-1===n)return-1;const t=W.querySelector(`[data-tag-index="${n}"]`);if(t&&t.hasAttribute("tabindex")&&!t.disabled&&"true"!==t.getAttribute("aria-disabled"))return n;n+="next"===e?1:-1}}(n,e),K(n),pt(n)},Ct=t=>{G.current=!0,tt(""),R&&R(t,"","clear"),yt(t,N?[]:null,"clear")},Nt=t=>n=>{if(t.onKeyDown&&t.onKeyDown(n),!n.defaultMuiPrevented&&(-1!==V&&-1===["ArrowLeft","ArrowRight"].indexOf(n.key)&&(K(-1),pt(-1)),229!==n.which))switch(n.key){case"Home":ut&&y&&(n.preventDefault(),mt({diff:"start",direction:"next",reason:"keyboard",event:n}));break;case"End":ut&&y&&(n.preventDefault(),mt({diff:"end",direction:"previous",reason:"keyboard",event:n}));break;case"PageUp":n.preventDefault(),mt({diff:-5,direction:"previous",reason:"keyboard",event:n}),$t(n);break;case"PageDown":n.preventDefault(),mt({diff:5,direction:"next",reason:"keyboard",event:n}),$t(n);break;case"ArrowDown":n.preventDefault(),mt({diff:1,direction:"next",reason:"keyboard",event:n}),$t(n);break;case"ArrowUp":n.preventDefault(),mt({diff:-1,direction:"previous",reason:"keyboard",event:n}),$t(n);break;case"ArrowLeft":vt(n,"previous");break;case"ArrowRight":vt(n,"next");break;case"Enter":if(-1!==J.current&&ut){const t=ht[J.current],i=!!g&&g(t);if(n.preventDefault(),i)return;St(n,t,"selectOption"),e&&F.current.setSelectionRange(F.current.value.length,F.current.value.length)}else f&&""!==Z&&!1===lt&&(N&&n.preventDefault(),St(n,Z,"createOption","freeSolo"));break;case"Escape":ut?(n.preventDefault(),n.stopPropagation(),Et(n,"escape")):s&&(""!==Z||N&&Y.length>0)&&(n.preventDefault(),n.stopPropagation(),Ct(n));break;case"Backspace":if(N&&!D&&""===Z&&Y.length>0){const t=-1===V?Y.length-1:V,e=Y.slice();e.splice(t,1),yt(n,e,"removeOption",{option:Y[t]})}}},Tt=t=>{nt(!0),I&&!G.current&&$t(t)},Lt=t=>{null!==B.current&&B.current.parentElement.contains(document.activeElement)?F.current.focus():(nt(!1),q.current=!0,G.current=!1,i&&-1!==J.current&&ut?St(t,ht[J.current],"blur"):i&&f&&""!==Z?St(t,Z,"blur","freeSolo"):r&&it(t,Y),Et(t,"blur"))},zt=t=>{const e=t.target.value;Z!==e&&(tt(e),ct(!1),R&&R(t,e,"input")),""===e?l||N||yt(t,null,"clear"):$t(t)},wt=t=>{_t({event:t,index:Number(t.currentTarget.getAttribute("data-option-index")),reason:"mouse"})},Ot=()=>{bt.current=!0},Rt=t=>{const e=Number(t.currentTarget.getAttribute("data-option-index"));St(t,ht[e],"selectOption"),bt.current=!1},At=t=>e=>{const n=Y.slice();n.splice(t,1),yt(e,n,"removeOption",{option:Y[t]})},xt=t=>{rt?Et(t,"toggleInput"):$t(t)},It=t=>{t.target.getAttribute("id")!==k&&t.preventDefault()},Ut=()=>{F.current.focus(),P&&q.current&&F.current.selectionEnd-F.current.selectionStart==0&&F.current.select(),q.current=!1},Dt=t=>{""!==Z&&rt||xt(t)};let Pt=f&&Z.length>0;Pt=Pt||(N?Y.length>0:null!==Y);let Mt=ht;if(E){new Map;Mt=ht.reduce((t,e,n)=>{const i=E(e);return t.length>0&&t[t.length-1].group===i?t[t.length-1].options.push(e):t.push({key:n,index:n,group:i,options:[e]}),t},[])}return h&&et&&Lt(),{getRootProps:(t={})=>Object(L.a)({"aria-owns":dt?k+"-listbox":null},t,{onKeyDown:Nt(t),onMouseDown:It,onClick:Ut}),getInputLabelProps:()=>({id:k+"-label",htmlFor:k}),getInputProps:()=>({id:k,value:Z,onBlur:Lt,onFocus:Tt,onChange:zt,onMouseDown:Dt,"aria-activedescendant":ut?"":null,"aria-autocomplete":e?"both":"list","aria-controls":dt?k+"-listbox":void 0,"aria-expanded":dt,autoComplete:"off",ref:F,autoCapitalize:"none",spellCheck:"false",role:"combobox"}),getClearProps:()=>({tabIndex:-1,onClick:Ct}),getPopupIndicatorProps:()=>({tabIndex:-1,onClick:xt}),getTagProps:({index:t})=>Object(L.a)({key:t,"data-tag-index":t,tabIndex:-1},!D&&{onDelete:At(t)}),getListboxProps:()=>({role:"listbox",id:k+"-listbox","aria-labelledby":k+"-label",ref:gt,onMouseDown:t=>{t.preventDefault()}}),getOptionProps:({index:t,option:e})=>{const n=(N?Y:[Y]).some(t=>null!=t&&C(e,t)),i=!!g&&g(e);return{key:j(e),tabIndex:-1,role:"option",id:`${k}-option-${t}`,onMouseOver:wt,onClick:Rt,onTouchStart:Ot,"data-option-index":t,"aria-disabled":i,"aria-selected":n}},id:k,inputValue:Z,value:Y,dirty:Pt,popupOpen:ut,focused:et||-1!==V,anchorEl:W,setAnchorEl:H,focusedTag:V,groupedOptions:Mt}}var ie=n(354),oe=n(226),re=n(111);function se(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function ae(t){return t instanceof se(t).Element||t instanceof Element}function ce(t){return t instanceof se(t).HTMLElement||t instanceof HTMLElement}function le(t){return"undefined"!=typeof ShadowRoot&&(t instanceof se(t).ShadowRoot||t instanceof ShadowRoot)}var ue=Math.max,he=Math.min,de=Math.round;function pe(){var t=navigator.userAgentData;return null!=t&&t.brands?t.brands.map((function(t){return t.brand+"/"+t.version})).join(" "):navigator.userAgent}function _e(){return!/^((?!chrome|android).)*safari/i.test(pe())}function me(t,e,n){void 0===e&&(e=!1),void 0===n&&(n=!1);var i=t.getBoundingClientRect(),o=1,r=1;e&&ce(t)&&(o=t.offsetWidth>0&&de(i.width)/t.offsetWidth||1,r=t.offsetHeight>0&&de(i.height)/t.offsetHeight||1);var s=(ae(t)?se(t):window).visualViewport,a=!_e()&&n,c=(i.left+(a&&s?s.offsetLeft:0))/o,l=(i.top+(a&&s?s.offsetTop:0))/r,u=i.width/o,h=i.height/r;return{width:u,height:h,top:l,right:c+u,bottom:l+h,left:c,x:c,y:l}}function fe(t){var e=se(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function ge(t){return t?(t.nodeName||"").toLowerCase():null}function $e(t){return((ae(t)?t.ownerDocument:t.document)||window.document).documentElement}function Ee(t){return me($e(t)).left+fe(t).scrollLeft}function ye(t){return se(t).getComputedStyle(t)}function be(t){var e=ye(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function Se(t,e,n){void 0===n&&(n=!1);var i,o,r=ce(e),s=ce(e)&&function(t){var e=t.getBoundingClientRect(),n=de(e.width)/t.offsetWidth||1,i=de(e.height)/t.offsetHeight||1;return 1!==n||1!==i}(e),a=$e(e),c=me(t,s,n),l={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(r||!r&&!n)&&(("body"!==ge(e)||be(a))&&(l=(i=e)!==se(i)&&ce(i)?{scrollLeft:(o=i).scrollLeft,scrollTop:o.scrollTop}:fe(i)),ce(e)?((u=me(e,!0)).x+=e.clientLeft,u.y+=e.clientTop):a&&(u.x=Ee(a))),{x:c.left+l.scrollLeft-u.x,y:c.top+l.scrollTop-u.y,width:c.width,height:c.height}}function ve(t){var e=me(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function Ce(t){return"html"===ge(t)?t:t.assignedSlot||t.parentNode||(le(t)?t.host:null)||$e(t)}function Ne(t,e){var n;void 0===e&&(e=[]);var i=function t(e){return["html","body","#document"].indexOf(ge(e))>=0?e.ownerDocument.body:ce(e)&&be(e)?e:t(Ce(e))}(t),o=i===(null==(n=t.ownerDocument)?void 0:n.body),r=se(i),s=o?[r].concat(r.visualViewport||[],be(i)?i:[]):i,a=e.concat(s);return o?a:a.concat(Ne(Ce(s)))}function Te(t){return["table","td","th"].indexOf(ge(t))>=0}function Le(t){return ce(t)&&"fixed"!==ye(t).position?t.offsetParent:null}function ze(t){for(var e=se(t),n=Le(t);n&&Te(n)&&"static"===ye(n).position;)n=Le(n);return n&&("html"===ge(n)||"body"===ge(n)&&"static"===ye(n).position)?e:n||function(t){var e=/firefox/i.test(pe());if(/Trident/i.test(pe())&&ce(t)&&"fixed"===ye(t).position)return null;var n=Ce(t);for(le(n)&&(n=n.host);ce(n)&&["html","body"].indexOf(ge(n))<0;){var i=ye(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}var we="top",Oe="bottom",Re="right",Ae="left",xe=[we,Oe,Re,Ae],Ie=xe.reduce((function(t,e){return t.concat([e+"-start",e+"-end"])}),[]),Ue=[].concat(xe,["auto"]).reduce((function(t,e){return t.concat([e,e+"-start",e+"-end"])}),[]),De=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function Pe(t){var e=new Map,n=new Set,i=[];return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||function t(o){n.add(o.name),[].concat(o.requires||[],o.requiresIfExists||[]).forEach((function(i){if(!n.has(i)){var o=e.get(i);o&&t(o)}})),i.push(o)}(t)})),i}var Me={placement:"bottom",modifiers:[],strategy:"absolute"};function ke(){for(var t=arguments.length,e=new Array(t),n=0;n=0?"x":"y"}function We(t){var e,n=t.reference,i=t.element,o=t.placement,r=o?qe(o):null,s=o?Fe(o):null,a=n.x+n.width/2-i.width/2,c=n.y+n.height/2-i.height/2;switch(r){case we:e={x:a,y:n.y-i.height};break;case Oe:e={x:a,y:n.y+n.height};break;case Re:e={x:n.x+n.width,y:c};break;case Ae:e={x:n.x-i.width,y:c};break;default:e={x:n.x,y:n.y}}var l=r?Be(r):null;if(null!=l){var u="y"===l?"height":"width";switch(s){case"start":e[l]=e[l]-(n[u]/2-i[u]/2);break;case"end":e[l]=e[l]+(n[u]/2-i[u]/2)}}return e}var He={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Ve(t){var e,n=t.popper,i=t.popperRect,o=t.placement,r=t.variation,s=t.offsets,a=t.position,c=t.gpuAcceleration,l=t.adaptive,u=t.roundOffsets,h=t.isFixed,d=s.x,p=void 0===d?0:d,_=s.y,m=void 0===_?0:_,f="function"==typeof u?u({x:p,y:m}):{x:p,y:m};p=f.x,m=f.y;var g=s.hasOwnProperty("x"),$=s.hasOwnProperty("y"),E=Ae,y=we,b=window;if(l){var S=ze(n),v="clientHeight",C="clientWidth";if(S===se(n)&&"static"!==ye(S=$e(n)).position&&"absolute"===a&&(v="scrollHeight",C="scrollWidth"),S=S,o===we||(o===Ae||o===Re)&&"end"===r)y=Oe,m-=(h&&S===b&&b.visualViewport?b.visualViewport.height:S[v])-i.height,m*=c?1:-1;if(o===Ae||(o===we||o===Oe)&&"end"===r)E=Re,p-=(h&&S===b&&b.visualViewport?b.visualViewport.width:S[C])-i.width,p*=c?1:-1}var N,T=Object.assign({position:a},l&&He),L=!0===u?function(t){var e=t.x,n=t.y,i=window.devicePixelRatio||1;return{x:de(e*i)/i||0,y:de(n*i)/i||0}}({x:p,y:m}):{x:p,y:m};return p=L.x,m=L.y,c?Object.assign({},T,((N={})[y]=$?"0":"",N[E]=g?"0":"",N.transform=(b.devicePixelRatio||1)<=1?"translate("+p+"px, "+m+"px)":"translate3d("+p+"px, "+m+"px, 0)",N)):Object.assign({},T,((e={})[y]=$?m+"px":"",e[E]=g?p+"px":"",e.transform="",e))}var Ke={left:"right",right:"left",bottom:"top",top:"bottom"};function Xe(t){return t.replace(/left|right|bottom|top/g,(function(t){return Ke[t]}))}var Je={start:"end",end:"start"};function Ye(t){return t.replace(/start|end/g,(function(t){return Je[t]}))}function Qe(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&le(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function Ze(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function tn(t,e,n){return"viewport"===e?Ze(function(t,e){var n=se(t),i=$e(t),o=n.visualViewport,r=i.clientWidth,s=i.clientHeight,a=0,c=0;if(o){r=o.width,s=o.height;var l=_e();(l||!l&&"fixed"===e)&&(a=o.offsetLeft,c=o.offsetTop)}return{width:r,height:s,x:a+Ee(t),y:c}}(t,n)):ae(e)?function(t,e){var n=me(t,!1,"fixed"===e);return n.top=n.top+t.clientTop,n.left=n.left+t.clientLeft,n.bottom=n.top+t.clientHeight,n.right=n.left+t.clientWidth,n.width=t.clientWidth,n.height=t.clientHeight,n.x=n.left,n.y=n.top,n}(e,n):Ze(function(t){var e,n=$e(t),i=fe(t),o=null==(e=t.ownerDocument)?void 0:e.body,r=ue(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),s=ue(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),a=-i.scrollLeft+Ee(t),c=-i.scrollTop;return"rtl"===ye(o||n).direction&&(a+=ue(n.clientWidth,o?o.clientWidth:0)-r),{width:r,height:s,x:a,y:c}}($e(t)))}function en(t,e,n,i){var o="clippingParents"===e?function(t){var e=Ne(Ce(t)),n=["absolute","fixed"].indexOf(ye(t).position)>=0&&ce(t)?ze(t):t;return ae(n)?e.filter((function(t){return ae(t)&&Qe(t,n)&&"body"!==ge(t)})):[]}(t):[].concat(e),r=[].concat(o,[n]),s=r[0],a=r.reduce((function(e,n){var o=tn(t,n,i);return e.top=ue(o.top,e.top),e.right=he(o.right,e.right),e.bottom=he(o.bottom,e.bottom),e.left=ue(o.left,e.left),e}),tn(t,s,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function nn(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function on(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}function rn(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=void 0===i?t.placement:i,r=n.strategy,s=void 0===r?t.strategy:r,a=n.boundary,c=void 0===a?"clippingParents":a,l=n.rootBoundary,u=void 0===l?"viewport":l,h=n.elementContext,d=void 0===h?"popper":h,p=n.altBoundary,_=void 0!==p&&p,m=n.padding,f=void 0===m?0:m,g=nn("number"!=typeof f?f:on(f,xe)),$="popper"===d?"reference":"popper",E=t.rects.popper,y=t.elements[_?$:d],b=en(ae(y)?y:y.contextElement||$e(t.elements.popper),c,u,s),S=me(t.elements.reference),v=We({reference:S,element:E,strategy:"absolute",placement:o}),C=Ze(Object.assign({},E,v)),N="popper"===d?C:S,T={top:b.top-N.top+g.top,bottom:N.bottom-b.bottom+g.bottom,left:b.left-N.left+g.left,right:N.right-b.right+g.right},L=t.modifiersData.offset;if("popper"===d&&L){var z=L[o];Object.keys(T).forEach((function(t){var e=[Re,Oe].indexOf(t)>=0?1:-1,n=[we,Oe].indexOf(t)>=0?"y":"x";T[t]+=z[n]*e}))}return T}function sn(t,e,n){return ue(t,he(e,n))}function an(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function cn(t){return[we,Re,Oe,Ae].some((function(e){return t[e]>=0}))}var ln=je({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,i=t.options,o=i.scroll,r=void 0===o||o,s=i.resize,a=void 0===s||s,c=se(e.elements.popper),l=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&l.forEach((function(t){t.addEventListener("scroll",n.update,Ge)})),a&&c.addEventListener("resize",n.update,Ge),function(){r&&l.forEach((function(t){t.removeEventListener("scroll",n.update,Ge)})),a&&c.removeEventListener("resize",n.update,Ge)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=We({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,o=void 0===i||i,r=n.adaptive,s=void 0===r||r,a=n.roundOffsets,c=void 0===a||a,l={placement:qe(e.placement),variation:Fe(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o,isFixed:"fixed"===e.options.strategy};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,Ve(Object.assign({},l,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:s,roundOffsets:c})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,Ve(Object.assign({},l,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},{name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},o=e.elements[t];ce(o)&&ge(o)&&(Object.assign(o.style,n),Object.keys(i).forEach((function(t){var e=i[t];!1===e?o.removeAttribute(t):o.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var i=e.elements[t],o=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});ce(i)&&ge(i)&&(Object.assign(i.style,r),Object.keys(o).forEach((function(t){i.removeAttribute(t)})))}))}},requires:["computeStyles"]},{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,i=t.name,o=n.offset,r=void 0===o?[0,0]:o,s=Ue.reduce((function(t,n){return t[n]=function(t,e,n){var i=qe(t),o=[Ae,we].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},e,{placement:t})):n,s=r[0],a=r[1];return s=s||0,a=(a||0)*o,[Ae,Re].indexOf(i)>=0?{x:a,y:s}:{x:s,y:a}}(n,e.rects,r),t}),{}),a=s[e.placement],c=a.x,l=a.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=l),e.modifiersData[i]=s}},{name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0===s||s,c=n.fallbackPlacements,l=n.padding,u=n.boundary,h=n.rootBoundary,d=n.altBoundary,p=n.flipVariations,_=void 0===p||p,m=n.allowedAutoPlacements,f=e.options.placement,g=qe(f),$=c||(g===f||!_?[Xe(f)]:function(t){if("auto"===qe(t))return[];var e=Xe(t);return[Ye(t),e,Ye(e)]}(f)),E=[f].concat($).reduce((function(t,n){return t.concat("auto"===qe(n)?function(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=n.boundary,r=n.rootBoundary,s=n.padding,a=n.flipVariations,c=n.allowedAutoPlacements,l=void 0===c?Ue:c,u=Fe(i),h=u?a?Ie:Ie.filter((function(t){return Fe(t)===u})):xe,d=h.filter((function(t){return l.indexOf(t)>=0}));0===d.length&&(d=h);var p=d.reduce((function(e,n){return e[n]=rn(t,{placement:n,boundary:o,rootBoundary:r,padding:s})[qe(n)],e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}(e,{placement:n,boundary:u,rootBoundary:h,padding:l,flipVariations:_,allowedAutoPlacements:m}):n)}),[]),y=e.rects.reference,b=e.rects.popper,S=new Map,v=!0,C=E[0],N=0;N=0,O=w?"width":"height",R=rn(e,{placement:T,boundary:u,rootBoundary:h,altBoundary:d,padding:l}),A=w?z?Re:Ae:z?Oe:we;y[O]>b[O]&&(A=Xe(A));var x=Xe(A),I=[];if(r&&I.push(R[L]<=0),a&&I.push(R[A]<=0,R[x]<=0),I.every((function(t){return t}))){C=T,v=!1;break}S.set(T,I)}if(v)for(var U=function(t){var e=E.find((function(e){var n=S.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return C=e,"break"},D=_?3:1;D>0;D--){if("break"===U(D))break}e.placement!==C&&(e.modifiersData[i]._skip=!0,e.placement=C,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name,o=n.mainAxis,r=void 0===o||o,s=n.altAxis,a=void 0!==s&&s,c=n.boundary,l=n.rootBoundary,u=n.altBoundary,h=n.padding,d=n.tether,p=void 0===d||d,_=n.tetherOffset,m=void 0===_?0:_,f=rn(e,{boundary:c,rootBoundary:l,padding:h,altBoundary:u}),g=qe(e.placement),$=Fe(e.placement),E=!$,y=Be(g),b="x"===y?"y":"x",S=e.modifiersData.popperOffsets,v=e.rects.reference,C=e.rects.popper,N="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,T="number"==typeof N?{mainAxis:N,altAxis:N}:Object.assign({mainAxis:0,altAxis:0},N),L=e.modifiersData.offset?e.modifiersData.offset[e.placement]:null,z={x:0,y:0};if(S){if(r){var w,O="y"===y?we:Ae,R="y"===y?Oe:Re,A="y"===y?"height":"width",x=S[y],I=x+f[O],U=x-f[R],D=p?-C[A]/2:0,P="start"===$?v[A]:C[A],M="start"===$?-C[A]:-v[A],k=e.elements.arrow,j=p&&k?ve(k):{width:0,height:0},G=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},q=G[O],F=G[R],B=sn(0,v[A],j[A]),W=E?v[A]/2-D-B-q-T.mainAxis:P-B-q-T.mainAxis,H=E?-v[A]/2+D+B+F+T.mainAxis:M+B+F+T.mainAxis,V=e.elements.arrow&&ze(e.elements.arrow),K=V?"y"===y?V.clientTop||0:V.clientLeft||0:0,X=null!=(w=null==L?void 0:L[y])?w:0,J=x+H-X,Y=sn(p?he(I,x+W-X-K):I,x,p?ue(U,J):U);S[y]=Y,z[y]=Y-x}if(a){var Q,Z="x"===y?we:Ae,tt="x"===y?Oe:Re,et=S[b],nt="y"===b?"height":"width",it=et+f[Z],ot=et-f[tt],rt=-1!==[we,Ae].indexOf(g),st=null!=(Q=null==L?void 0:L[b])?Q:0,at=rt?it:et-v[nt]-C[nt]-st+T.altAxis,ct=rt?et+v[nt]+C[nt]-st-T.altAxis:ot,lt=p&&rt?function(t,e,n){var i=sn(t,e,n);return i>n?n:i}(at,et,ct):sn(p?at:it,et,p?ct:ot);S[b]=lt,z[b]=lt-et}e.modifiersData[i]=z}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,o=t.options,r=n.elements.arrow,s=n.modifiersData.popperOffsets,a=qe(n.placement),c=Be(a),l=[Ae,Re].indexOf(a)>=0?"height":"width";if(r&&s){var u=function(t,e){return nn("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:on(t,xe))}(o.padding,n),h=ve(r),d="y"===c?we:Ae,p="y"===c?Oe:Re,_=n.rects.reference[l]+n.rects.reference[c]-s[c]-n.rects.popper[l],m=s[c]-n.rects.reference[c],f=ze(r),g=f?"y"===c?f.clientHeight||0:f.clientWidth||0:0,$=_/2-m/2,E=u[d],y=g-h[l]-u[p],b=g/2-h[l]/2+$,S=sn(E,b,y),v=c;n.modifiersData[i]=((e={})[v]=S,e.centerOffset=S-b,e)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&Qe(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,o=e.rects.popper,r=e.modifiersData.preventOverflow,s=rn(e,{elementContext:"reference"}),a=rn(e,{altBoundary:!0}),c=an(s,i),l=an(a,o,r),u=cn(c),h=cn(l);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:l,isReferenceHidden:u,hasPopperEscaped:h},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":h})}}]}),un=n(1057);function hn(t){return Object(M.a)("MuiPopperUnstyled",t)}Object(k.a)("MuiPopperUnstyled",["root"]);var dn=n(127);const pn=["anchorEl","children","component","components","componentsProps","direction","disablePortal","modifiers","open","ownerState","placement","popperOptions","popperRef","TransitionProps"],_n=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition"];function mn(t){return"function"==typeof t?t():t}const fn={},gn=z.forwardRef((function(t,e){var n;const{anchorEl:i,children:o,component:r,components:s={},componentsProps:a={},direction:c,disablePortal:l,modifiers:u,open:h,ownerState:d,placement:p,popperOptions:_,popperRef:m,TransitionProps:f}=t,g=Object(T.a)(t,pn),$=z.useRef(null),E=Object(ie.a)($,e),y=z.useRef(null),b=Object(ie.a)(y,m),S=z.useRef(b);Object(oe.a)(()=>{S.current=b},[b]),z.useImperativeHandle(m,()=>y.current,[]);const v=function(t,e){if("ltr"===e)return t;switch(t){case"bottom-end":return"bottom-start";case"bottom-start":return"bottom-end";case"top-end":return"top-start";case"top-start":return"top-end";default:return t}}(p,c),[C,N]=z.useState(v);z.useEffect(()=>{y.current&&y.current.forceUpdate()}),Object(oe.a)(()=>{if(!i||!h)return;mn(i);let t=[{name:"preventOverflow",options:{altBoundary:l}},{name:"flip",options:{altBoundary:l}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:t})=>{N(t.placement)}}];null!=u&&(t=t.concat(u)),_&&null!=_.modifiers&&(t=t.concat(_.modifiers));const e=ln(mn(i),$.current,Object(L.a)({placement:v},_,{modifiers:t}));return S.current(e),()=>{e.destroy(),S.current(null)}},[i,l,u,h,_,v]);const w={placement:C};null!==f&&(w.TransitionProps=f);const R=Object(O.a)({root:["root"]},hn,{}),A=null!=(n=null!=r?r:s.Root)?n:"div",x=Object(dn.a)({elementType:A,externalSlotProps:a.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:E},ownerState:Object(L.a)({},t,d),className:R.root});return Object(q.jsx)(A,Object(L.a)({},x,{children:"function"==typeof o?o(w):o}))}));var $n=z.forwardRef((function(t,e){const{anchorEl:n,children:i,container:o,direction:r="ltr",disablePortal:s=!1,keepMounted:a=!1,modifiers:c,open:l,placement:u="bottom",popperOptions:h=fn,popperRef:d,style:p,transition:_=!1}=t,m=Object(T.a)(t,_n),[f,g]=z.useState(!0);if(!a&&!l&&(!_||f))return null;const $=o||(n?Object(re.a)(mn(n)).body:void 0);return Object(q.jsx)(un.a,{disablePortal:s,container:$,children:Object(q.jsx)(gn,Object(L.a)({anchorEl:n,direction:r,disablePortal:s,modifiers:c,ref:e,open:_?!f:l,placement:u,popperOptions:h,popperRef:d},m,{style:Object(L.a)({position:"fixed",top:0,left:0,display:l||!a||_&&!f?null:"none"},p),TransitionProps:_?{in:l,onEnter:()=>{g(!1)},onExited:()=>{g(!0)}}:null,children:i}))})})),En=n(417);const yn=Object(R.a)($n,{name:"MuiPopper",slot:"Root",overridesResolver:(t,e)=>e.root})({});var bn=z.forwardRef((function(t,e){const n=Object(En.a)(),i=Object(A.a)({props:t,name:"MuiPopper"});return Object(q.jsx)(yn,Object(L.a)({direction:null==n?void 0:n.direction},i,{ref:e}))}));function Sn(t){return Object(M.a)("MuiListSubheader",t)}var vn=Object(k.a)("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const Cn=["className","color","component","disableGutters","disableSticky","inset"],Nn=Object(R.a)("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,"default"!==n.color&&e["color"+Object(St.a)(n.color)],!n.disableGutters&&e.gutters,n.inset&&e.inset,!n.disableSticky&&e.sticky]}})(({theme:t,ownerState:e})=>Object(L.a)({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(t.vars||t).palette.text.secondary,fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(14)},"primary"===e.color&&{color:(t.vars||t).palette.primary.main},"inherit"===e.color&&{color:"inherit"},!e.disableGutters&&{paddingLeft:16,paddingRight:16},e.inset&&{paddingLeft:72},!e.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(t.vars||t).palette.background.paper}));var Tn=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiListSubheader"}),{className:i,color:o="default",component:r="li",disableGutters:s=!1,disableSticky:a=!1,inset:c=!1}=n,l=Object(T.a)(n,Cn),u=Object(L.a)({},n,{color:o,component:r,disableGutters:s,disableSticky:a,inset:c}),h=(t=>{const{classes:e,color:n,disableGutters:i,inset:o,disableSticky:r}=t,s={root:["root","default"!==n&&"color"+Object(St.a)(n),!i&&"gutters",o&&"inset",!r&&"sticky"]};return Object(O.a)(s,Sn,e)})(u);return Object(q.jsx)(Nn,Object(L.a)({as:r,className:Object(w.a)(h.root,i),ref:e,ownerState:u},l))})),Ln=n(716),zn=n(76),wn=n(60),On=n(61),Rn=n(62),An=n(222);function xn(t){return Object(M.a)("MuiAutocomplete",t)}var In,Un,Dn=Object(k.a)("MuiAutocomplete",["root","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);const Pn=["autoComplete","autoHighlight","autoSelect","blurOnSelect","ChipProps","className","clearIcon","clearOnBlur","clearOnEscape","clearText","closeText","componentsProps","defaultValue","disableClearable","disableCloseOnSelect","disabled","disabledItemsFocusable","disableListWrap","disablePortal","filterOptions","filterSelectedOptions","forcePopupIcon","freeSolo","fullWidth","getLimitTagsText","getOptionDisabled","getOptionLabel","isOptionEqualToValue","groupBy","handleHomeEndKeys","id","includeInputInList","inputValue","limitTags","ListboxComponent","ListboxProps","loading","loadingText","multiple","noOptionsText","onChange","onClose","onHighlightChange","onInputChange","onOpen","open","openOnFocus","openText","options","PaperComponent","PopperComponent","popupIcon","readOnly","renderGroup","renderInput","renderOption","renderTags","selectOnFocus","size","value"],Mn=Object(R.a)("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t,{fullWidth:i,hasClearIcon:o,hasPopupIcon:r,inputFocused:s,size:a}=n;return[{["& ."+Dn.tag]:e.tag},{["& ."+Dn.tag]:e["tagSize"+Object(St.a)(a)]},{["& ."+Dn.inputRoot]:e.inputRoot},{["& ."+Dn.input]:e.input},{["& ."+Dn.input]:s&&e.inputFocused},e.root,i&&e.fullWidth,r&&e.hasPopupIcon,o&&e.hasClearIcon]}})(({ownerState:t})=>Object(L.a)({[`&.${Dn.focused} .${Dn.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{["&:hover ."+Dn.clearIndicator]:{visibility:"visible"}}},t.fullWidth&&{width:"100%"},{["& ."+Dn.tag]:Object(L.a)({margin:3,maxWidth:"calc(100% - 6px)"},"small"===t.size&&{margin:2,maxWidth:"calc(100% - 4px)"}),["& ."+Dn.inputRoot]:{flexWrap:"wrap",[`.${Dn.hasPopupIcon}&, .${Dn.hasClearIcon}&`]:{paddingRight:30},[`.${Dn.hasPopupIcon}.${Dn.hasClearIcon}&`]:{paddingRight:56},["& ."+Dn.input]:{width:0,minWidth:30}},["& ."+zn.a.root]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${zn.a.root}.${wn.a.sizeSmall}`]:{["& ."+zn.a.input]:{padding:"2px 4px 3px 0"}},["& ."+On.a.root]:{padding:9,[`.${Dn.hasPopupIcon}&, .${Dn.hasClearIcon}&`]:{paddingRight:39},[`.${Dn.hasPopupIcon}.${Dn.hasClearIcon}&`]:{paddingRight:65},["& ."+Dn.input]:{padding:"7.5px 4px 7.5px 6px"},["& ."+Dn.endAdornment]:{right:9}},[`& .${On.a.root}.${wn.a.sizeSmall}`]:{padding:6,["& ."+Dn.input]:{padding:"2.5px 4px 2.5px 6px"}},["& ."+Rn.a.root]:{paddingTop:19,paddingLeft:8,[`.${Dn.hasPopupIcon}&, .${Dn.hasClearIcon}&`]:{paddingRight:39},[`.${Dn.hasPopupIcon}.${Dn.hasClearIcon}&`]:{paddingRight:65},["& ."+Rn.a.input]:{padding:"7px 4px"},["& ."+Dn.endAdornment]:{right:9}},[`& .${Rn.a.root}.${wn.a.sizeSmall}`]:{paddingBottom:1,["& ."+Rn.a.input]:{padding:"2.5px 4px"}},["& ."+wn.a.hiddenLabel]:{paddingTop:8},["& ."+Dn.input]:Object(L.a)({flexGrow:1,textOverflow:"ellipsis",opacity:0},t.inputFocused&&{opacity:1})})),kn=Object(R.a)("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(t,e)=>e.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),jn=Object(R.a)(Tt.a,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(t,e)=>e.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),Gn=Object(R.a)(Tt.a,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:t},e)=>Object(L.a)({},e.popupIndicator,t.popupOpen&&e.popupIndicatorOpen)})(({ownerState:t})=>Object(L.a)({padding:2,marginRight:-2},t.popupOpen&&{transform:"rotate(180deg)"})),qn=Object(R.a)(bn,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{["& ."+Dn.option]:e.option},e.popper,n.disablePortal&&e.popperDisablePortal]}})(({theme:t,ownerState:e})=>Object(L.a)({zIndex:(t.vars||t).zIndex.modal},e.disablePortal&&{position:"absolute"})),Fn=Object(R.a)(X.a,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(t,e)=>e.paper})(({theme:t})=>Object(L.a)({},t.typography.body1,{overflow:"auto"})),Bn=Object(R.a)("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(t,e)=>e.loading})(({theme:t})=>({color:(t.vars||t).palette.text.secondary,padding:"14px 16px"})),Wn=Object(R.a)("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(t,e)=>e.noOptions})(({theme:t})=>({color:(t.vars||t).palette.text.secondary,padding:"14px 16px"})),Hn=Object(R.a)("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(t,e)=>e.listbox})(({theme:t})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",["& ."+Dn.option]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[t.breakpoints.up("sm")]:{minHeight:"auto"},["&."+Dn.focused]:{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},["&."+Dn.focusVisible]:{backgroundColor:(t.vars||t).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Object(bt.a)(t.palette.primary.main,t.palette.action.selectedOpacity),["&."+Dn.focused]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Object(bt.a)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},["&."+Dn.focusVisible]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Object(bt.a)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}}}})),Vn=Object(R.a)(Tn,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(t,e)=>e.groupLabel})(({theme:t})=>({backgroundColor:(t.vars||t).palette.background.paper,top:-8})),Kn=Object(R.a)("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(t,e)=>e.groupUl})({padding:0,["& ."+Dn.option]:{paddingLeft:24}});var Xn=z.forwardRef((function(t,e){var n,i,o,r;const s=Object(A.a)({props:t,name:"MuiAutocomplete"}),{autoComplete:a=!1,autoHighlight:c=!1,autoSelect:l=!1,blurOnSelect:u=!1,ChipProps:h,className:d,clearIcon:p=In||(In=Object(q.jsx)(At,{fontSize:"small"})),clearOnBlur:_=!s.freeSolo,clearOnEscape:m=!1,clearText:f="Clear",closeText:g="Close",componentsProps:$={},defaultValue:E=(s.multiple?[]:null),disableClearable:y=!1,disableCloseOnSelect:b=!1,disabled:S=!1,disabledItemsFocusable:v=!1,disableListWrap:C=!1,disablePortal:N=!1,filterSelectedOptions:R=!1,forcePopupIcon:x="auto",freeSolo:I=!1,fullWidth:U=!1,getLimitTagsText:D=(t=>"+"+t),getOptionLabel:P=(t=>{var e;return null!=(e=t.label)?e:t}),groupBy:M,handleHomeEndKeys:k=!s.freeSolo,includeInputInList:j=!1,limitTags:G=-1,ListboxComponent:F="ul",ListboxProps:B,loading:W=!1,loadingText:H="Loading…",multiple:V=!1,noOptionsText:K="No options",openOnFocus:J=!1,openText:Y="Open",PaperComponent:Q=X.a,PopperComponent:Z=bn,popupIcon:tt=Un||(Un=Object(q.jsx)(An.a,{})),readOnly:et=!1,renderGroup:nt,renderInput:it,renderOption:ot,renderTags:rt,selectOnFocus:st=!s.freeSolo,size:at="medium"}=s,ct=Object(T.a)(s,Pn),{getRootProps:lt,getInputProps:ut,getInputLabelProps:ht,getPopupIndicatorProps:dt,getClearProps:pt,getTagProps:_t,getListboxProps:mt,getOptionProps:ft,value:gt,dirty:$t,id:Et,popupOpen:yt,focused:bt,focusedTag:vt,anchorEl:Ct,setAnchorEl:Nt,inputValue:Tt,groupedOptions:Lt}=ne(Object(L.a)({},s,{componentName:"Autocomplete"})),zt=!y&&!S&&$t&&!et,wt=(!I||!0===x)&&!1!==x,Ot=Object(L.a)({},s,{disablePortal:N,focused:bt,fullWidth:U,hasClearIcon:zt,hasPopupIcon:wt,inputFocused:-1===vt,popupOpen:yt,size:at}),Rt=(t=>{const{classes:e,disablePortal:n,focused:i,fullWidth:o,hasClearIcon:r,hasPopupIcon:s,inputFocused:a,popupOpen:c,size:l}=t,u={root:["root",i&&"focused",o&&"fullWidth",r&&"hasClearIcon",s&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",a&&"inputFocused"],tag:["tag","tagSize"+Object(St.a)(l)],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",c&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return Object(O.a)(u,xn,e)})(Ot);let xt;if(V&>.length>0){const t=t=>Object(L.a)({className:Rt.tag,disabled:S},_t(t));xt=rt?rt(gt,t,Ot):gt.map((e,n)=>Object(q.jsx)(Ln.a,Object(L.a)({label:P(e),size:at},t({index:n}),h)))}if(G>-1&&Array.isArray(xt)){const t=xt.length-G;!bt&&t>0&&(xt=xt.splice(0,G),xt.push(Object(q.jsx)("span",{className:Rt.tag,children:D(t)},xt.length)))}const It=nt||(t=>Object(q.jsxs)("li",{children:[Object(q.jsx)(Vn,{className:Rt.groupLabel,ownerState:Ot,component:"div",children:t.group}),Object(q.jsx)(Kn,{className:Rt.groupUl,ownerState:Ot,children:t.children})]},t.key)),Ut=ot||((t,e)=>Object(q.jsx)("li",Object(L.a)({},t,{children:P(e)}))),Dt=(t,e)=>{const n=ft({option:t,index:e});return Ut(Object(L.a)({},n,{className:Rt.option}),t,{selected:n["aria-selected"],inputValue:Tt})};return Object(q.jsxs)(z.Fragment,{children:[Object(q.jsx)(Mn,Object(L.a)({ref:e,className:Object(w.a)(Rt.root,d),ownerState:Ot},lt(ct),{children:it({id:Et,disabled:S,fullWidth:!0,size:"small"===at?"small":void 0,InputLabelProps:ht(),InputProps:Object(L.a)({ref:Nt,className:Rt.inputRoot,startAdornment:xt},(zt||wt)&&{endAdornment:Object(q.jsxs)(kn,{className:Rt.endAdornment,ownerState:Ot,children:[zt?Object(q.jsx)(jn,Object(L.a)({},pt(),{"aria-label":f,title:f,ownerState:Ot},$.clearIndicator,{className:Object(w.a)(Rt.clearIndicator,null==(n=$.clearIndicator)?void 0:n.className),children:p})):null,wt?Object(q.jsx)(Gn,Object(L.a)({},dt(),{disabled:S,"aria-label":yt?g:Y,title:yt?g:Y,ownerState:Ot},$.popupIndicator,{className:Object(w.a)(Rt.popupIndicator,null==(i=$.popupIndicator)?void 0:i.className),children:tt})):null]})}),inputProps:Object(L.a)({className:Rt.input,disabled:S,readOnly:et},ut())})})),Ct?Object(q.jsx)(qn,Object(L.a)({as:Z,disablePortal:N,style:{width:Ct?Ct.clientWidth:null},ownerState:Ot,role:"presentation",anchorEl:Ct,open:yt},$.popper,{className:Object(w.a)(Rt.popper,null==(o=$.popper)?void 0:o.className),children:Object(q.jsxs)(Fn,Object(L.a)({ownerState:Ot,as:Q},$.paper,{className:Object(w.a)(Rt.paper,null==(r=$.paper)?void 0:r.className),children:[W&&0===Lt.length?Object(q.jsx)(Bn,{className:Rt.loading,ownerState:Ot,children:H}):null,0!==Lt.length||I||W?null:Object(q.jsx)(Wn,{className:Rt.noOptions,ownerState:Ot,role:"presentation",onMouseDown:t=>{t.preventDefault()},children:K}),Lt.length>0?Object(q.jsx)(Hn,Object(L.a)({as:F,className:Rt.listbox,ownerState:Ot},mt(),B,{children:Lt.map((t,e)=>M?It({key:t.key,group:t.group,children:t.options.map((e,n)=>Dt(e,t.index+n))}):Dt(t,e))})):null]}))})):null]})})),Jn=n(715),Yn=n(237),Qn=n(191);function Zn(t){return Object(M.a)("MuiAvatarGroup",t)}var ti=Object(k.a)("MuiAvatarGroup",["root","avatar"]);const ei=["children","className","componentsProps","max","spacing","total","variant"],ni={small:-16,medium:null},ii=Object(R.a)("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(t,e)=>Object(L.a)({["& ."+ti.avatar]:e.avatar},e.root)})(({theme:t})=>({["& ."+Qn.a.root]:{border:"2px solid "+(t.vars||t).palette.background.default,boxSizing:"content-box",marginLeft:-8,"&:last-child":{marginLeft:0}},display:"flex",flexDirection:"row-reverse"})),oi=Object(R.a)(Jn.a,{name:"MuiAvatarGroup",slot:"Avatar",overridesResolver:(t,e)=>e.avatar})(({theme:t})=>({border:"2px solid "+(t.vars||t).palette.background.default,boxSizing:"content-box",marginLeft:-8,"&:last-child":{marginLeft:0}}));var ri=z.forwardRef((function(t,e){var n,i;const o=Object(A.a)({props:t,name:"MuiAvatarGroup"}),{children:r,className:s,componentsProps:a={},max:c=5,spacing:l="medium",total:u,variant:h="circular"}=o,d=Object(T.a)(o,ei);let p=c<2?2:c;const _=Object(L.a)({},o,{max:c,spacing:l,variant:h}),m=(t=>{const{classes:e}=t;return Object(O.a)({root:["root"],avatar:["avatar"]},Zn,e)})(_),f=z.Children.toArray(r).filter(t=>z.isValidElement(t)),g=u||f.length;g===p&&(p+=1),p=Math.min(g+1,p);const $=Math.min(f.length,p-1),E=Math.max(g-p,g-$,0),y=l&&void 0!==ni[l]?ni[l]:-l;return Object(q.jsxs)(ii,Object(L.a)({ownerState:_,className:Object(w.a)(m.root,s),ref:e},d,{children:[E?Object(q.jsxs)(oi,Object(L.a)({ownerState:_,variant:h},a.additionalAvatar,{className:Object(w.a)(m.avatar,null==(n=a.additionalAvatar)?void 0:n.className),style:Object(L.a)({marginLeft:y},null==(i=a.additionalAvatar)?void 0:i.style),children:["+",E]})):null,f.slice(0,$).reverse().map((t,e)=>z.cloneElement(t,{className:Object(w.a)(t.props.className,m.avatar),style:Object(L.a)({marginLeft:e===$-1?void 0:y},t.props.style),variant:t.props.variant||h}))]}))})),si=n(343),ai=n(259);var ci=t=>{const e=z.useRef({});return z.useEffect(()=>{e.current=t}),e.current};function li(t){return Object(M.a)("BaseBadge",t)}Object(k.a)("BaseBadge",["root","badge","invisible"]);const ui=["badgeContent","component","children","components","componentsProps","invisible","max","showZero"];var hi=z.forwardRef((function(t,e){const{component:n,children:i,components:o={},componentsProps:r={},max:s=99,showZero:a=!1}=t,c=Object(T.a)(t,ui),{badgeContent:l,max:u,displayValue:h,invisible:d}=function(t){const{badgeContent:e,invisible:n=!1,max:i=99,showZero:o=!1}=t,r=ci({badgeContent:e,max:i});let s=n;!1!==n||0!==e||o||(s=!0);const{badgeContent:a,max:c=i}=s?r:t;return{badgeContent:a,invisible:s,max:c,displayValue:a&&Number(a)>c?c+"+":a}}(Object(L.a)({},t,{max:s})),p=Object(L.a)({},t,{badgeContent:l,invisible:d,max:u,showZero:a}),_=(t=>{const{invisible:e}=t,n={root:["root"],badge:["badge",e&&"invisible"]};return Object(O.a)(n,li,void 0)})(p),m=n||o.Root||"span",f=Object(dn.a)({elementType:m,externalSlotProps:r.root,externalForwardedProps:c,additionalProps:{ref:e},ownerState:p,className:_.root}),g=o.Badge||"span",$=Object(dn.a)({elementType:g,externalSlotProps:r.badge,ownerState:p,className:_.badge});return Object(q.jsxs)(m,Object(L.a)({},f,{children:[i,Object(q.jsx)(g,Object(L.a)({},$,{children:h}))]}))})),di=n(101);var pi=t=>!t||!Object(di.a)(t);function _i(t){return Object(M.a)("MuiBadge",t)}var mi=Object(k.a)("MuiBadge",["root","badge","dot","standard","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft","invisible","colorError","colorInfo","colorPrimary","colorSecondary","colorSuccess","colorWarning","overlapRectangular","overlapCircular","anchorOriginTopLeftCircular","anchorOriginTopLeftRectangular","anchorOriginTopRightCircular","anchorOriginTopRightRectangular","anchorOriginBottomLeftCircular","anchorOriginBottomLeftRectangular","anchorOriginBottomRightCircular","anchorOriginBottomRightRectangular"]);const fi=["anchorOrigin","className","component","components","componentsProps","overlap","color","invisible","max","badgeContent","showZero","variant"],gi=Object(R.a)("span",{name:"MuiBadge",slot:"Root",overridesResolver:(t,e)=>e.root})({position:"relative",display:"inline-flex",verticalAlign:"middle",flexShrink:0}),$i=Object(R.a)("span",{name:"MuiBadge",slot:"Badge",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.badge,e[n.variant],e[`anchorOrigin${Object(St.a)(n.anchorOrigin.vertical)}${Object(St.a)(n.anchorOrigin.horizontal)}${Object(St.a)(n.overlap)}`],"default"!==n.color&&e["color"+Object(St.a)(n.color)],n.invisible&&e.invisible]}})(({theme:t,ownerState:e})=>Object(L.a)({display:"flex",flexDirection:"row",flexWrap:"wrap",justifyContent:"center",alignContent:"center",alignItems:"center",position:"absolute",boxSizing:"border-box",fontFamily:t.typography.fontFamily,fontWeight:t.typography.fontWeightMedium,fontSize:t.typography.pxToRem(12),minWidth:20,lineHeight:1,padding:"0 6px",height:20,borderRadius:10,zIndex:1,transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.enteringScreen})},"default"!==e.color&&{backgroundColor:(t.vars||t).palette[e.color].main,color:(t.vars||t).palette[e.color].contrastText},"dot"===e.variant&&{borderRadius:4,height:8,minWidth:8,padding:0},"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap&&{top:0,right:0,transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",["&."+mi.invisible]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap&&{bottom:0,right:0,transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",["&."+mi.invisible]:{transform:"scale(0) translate(50%, 50%)"}},"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap&&{top:0,left:0,transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",["&."+mi.invisible]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"rectangular"===e.overlap&&{bottom:0,left:0,transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",["&."+mi.invisible]:{transform:"scale(0) translate(-50%, 50%)"}},"top"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap&&{top:"14%",right:"14%",transform:"scale(1) translate(50%, -50%)",transformOrigin:"100% 0%",["&."+mi.invisible]:{transform:"scale(0) translate(50%, -50%)"}},"bottom"===e.anchorOrigin.vertical&&"right"===e.anchorOrigin.horizontal&&"circular"===e.overlap&&{bottom:"14%",right:"14%",transform:"scale(1) translate(50%, 50%)",transformOrigin:"100% 100%",["&."+mi.invisible]:{transform:"scale(0) translate(50%, 50%)"}},"top"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap&&{top:"14%",left:"14%",transform:"scale(1) translate(-50%, -50%)",transformOrigin:"0% 0%",["&."+mi.invisible]:{transform:"scale(0) translate(-50%, -50%)"}},"bottom"===e.anchorOrigin.vertical&&"left"===e.anchorOrigin.horizontal&&"circular"===e.overlap&&{bottom:"14%",left:"14%",transform:"scale(1) translate(-50%, 50%)",transformOrigin:"0% 100%",["&."+mi.invisible]:{transform:"scale(0) translate(-50%, 50%)"}},e.invisible&&{transition:t.transitions.create("transform",{easing:t.transitions.easing.easeInOut,duration:t.transitions.duration.leavingScreen})}));var Ei=z.forwardRef((function(t,e){var n,i,o,r;const s=Object(A.a)({props:t,name:"MuiBadge"}),{anchorOrigin:a={vertical:"top",horizontal:"right"},className:c,component:l="span",components:u={},componentsProps:h={},overlap:d="rectangular",color:p="default",invisible:_=!1,max:m,badgeContent:f,showZero:g=!1,variant:$="standard"}=s,E=Object(T.a)(s,fi),y=ci({anchorOrigin:a,color:p,overlap:d,variant:$});let b=_;!1===_&&(0===f&&!g||null==f&&"dot"!==$)&&(b=!0);const{color:S=p,overlap:v=d,anchorOrigin:C=a,variant:N=$}=b?y:s,z=(t=>{const{color:e,anchorOrigin:n,invisible:i,overlap:o,variant:r,classes:s={}}=t,a={root:["root"],badge:["badge",r,i&&"invisible",`anchorOrigin${Object(St.a)(n.vertical)}${Object(St.a)(n.horizontal)}`,`anchorOrigin${Object(St.a)(n.vertical)}${Object(St.a)(n.horizontal)}${Object(St.a)(o)}`,"overlap"+Object(St.a)(o),"default"!==e&&"color"+Object(St.a)(e)]};return Object(O.a)(a,_i,s)})(Object(L.a)({},s,{anchorOrigin:C,invisible:b,color:S,overlap:v,variant:N}));let R;return"dot"!==N&&(R=f&&Number(f)>m?m+"+":f),Object(q.jsx)(hi,Object(L.a)({invisible:_,badgeContent:R,showZero:g,max:m},E,{components:Object(L.a)({Root:gi,Badge:$i},u),className:Object(w.a)(null==(n=h.root)?void 0:n.className,z.root,c),componentsProps:{root:Object(L.a)({},h.root,pi(u.Root)&&{as:l,ownerState:Object(L.a)({},null==(i=h.root)?void 0:i.ownerState,{anchorOrigin:C,color:S,overlap:v,variant:N})}),badge:Object(L.a)({},h.badge,{className:Object(w.a)(z.badge,null==(o=h.badge)?void 0:o.className)},pi(u.Badge)&&{ownerState:Object(L.a)({},null==(r=h.badge)?void 0:r.ownerState,{anchorOrigin:C,color:S,overlap:v,variant:N})})},ref:e}))})),yi=n(631),bi=n(293),Si=n(632),vi=n(294),Ci=n(23),Ni=n(47),Ti=n(168),Li=n(1056),zi=n(1023),wi=n(117);const Oi=["className","component"];var Ri=n(1018),Ai=n(104);var xi=function(t={}){const{defaultTheme:e,defaultClassName:n="MuiBox-root",generateClassName:i,styleFunctionSx:o=Li.a}=t,r=Object(Ti.a)("div",{shouldForwardProp:t=>"theme"!==t&&"sx"!==t&&"as"!==t})(o);return z.forwardRef((function(t,o){const s=Object(wi.a)(e),a=Object(zi.a)(t),{className:c,component:l="div"}=a,u=Object(Ni.a)(a,Oi);return Object(q.jsx)(r,Object(Ci.a)({as:l,ref:o,className:Object(w.a)(c,i?i(n):n),theme:s},u))}))}({defaultTheme:Object(Ai.b)(),defaultClassName:"MuiBox-root",generateClassName:Ri.a.generate}),Ii=Object(Lt.a)(Object(q.jsx)("path",{d:"M6 10c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm12 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2zm-6 0c-1.1 0-2 .9-2 2s.9 2 2 2 2-.9 2-2-.9-2-2-2z"}),"MoreHoriz");const Ui=Object(R.a)(pt.a)(({theme:t})=>Object(L.a)({display:"flex",marginLeft:`calc(${t.spacing(1)} * 0.5)`,marginRight:`calc(${t.spacing(1)} * 0.5)`},"light"===t.palette.mode?{backgroundColor:t.palette.grey[100],color:t.palette.grey[700]}:{backgroundColor:t.palette.grey[700],color:t.palette.grey[100]},{borderRadius:2,"&:hover, &:focus":Object(L.a)({},"light"===t.palette.mode?{backgroundColor:t.palette.grey[200]}:{backgroundColor:t.palette.grey[600]}),"&:active":Object(L.a)({boxShadow:t.shadows[0]},"light"===t.palette.mode?{backgroundColor:Object(bt.e)(t.palette.grey[200],.12)}:{backgroundColor:Object(bt.e)(t.palette.grey[600],.12)})})),Di=Object(R.a)(Ii)({width:24,height:16});var Pi=function(t){const e=t;return Object(q.jsx)("li",{children:Object(q.jsx)(Ui,Object(L.a)({focusRipple:!0},t,{ownerState:e,children:Object(q.jsx)(Di,{ownerState:e})}))})};function Mi(t){return Object(M.a)("MuiBreadcrumbs",t)}var ki=Object(k.a)("MuiBreadcrumbs",["root","ol","li","separator"]);const ji=["children","className","component","expandText","itemsAfterCollapse","itemsBeforeCollapse","maxItems","separator"],Gi=Object(R.a)(jt.a,{name:"MuiBreadcrumbs",slot:"Root",overridesResolver:(t,e)=>[{["& ."+ki.li]:e.li},e.root]})({}),qi=Object(R.a)("ol",{name:"MuiBreadcrumbs",slot:"Ol",overridesResolver:(t,e)=>e.ol})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"}),Fi=Object(R.a)("li",{name:"MuiBreadcrumbs",slot:"Separator",overridesResolver:(t,e)=>e.separator})({display:"flex",userSelect:"none",marginLeft:8,marginRight:8});function Bi(t,e,n,i){return t.reduce((o,r,s)=>(s{const{classes:e}=t;return Object(O.a)({root:["root"],li:["li"],ol:["ol"],separator:["separator"]},Mi,e)})(_),f=z.useRef(null),g=z.Children.toArray(i).filter(t=>z.isValidElement(t)).map((t,e)=>Object(q.jsx)("li",{className:m.li,children:t},"child-"+e));return Object(q.jsx)(Gi,Object(L.a)({ref:e,component:r,color:"text.secondary",className:Object(w.a)(m.root,o),ownerState:_},h,{children:Object(q.jsx)(qi,{className:m.ol,ref:f,ownerState:_,children:Bi(d||l&&g.length<=l?g:(t=>c+a>=t.length?t:[...t.slice(0,c),Object(q.jsx)(Pi,{"aria-label":s,onClick:()=>{p(!0);const t=f.current.querySelector("a[href],button,[tabindex]");t&&t.focus()}},"ellipsis"),...t.slice(t.length-a,t.length)])(g),m.separator,u,_)})}))})),Hi=n(633),Vi=n(155),Ki=n(40),Xi=n(710),Ji=n(324);function Yi(t){return Object(M.a)("MuiCard",t)}var Qi=Object(k.a)("MuiCard",["root"]);const Zi=["className","raised"],to=Object(R.a)(X.a,{name:"MuiCard",slot:"Root",overridesResolver:(t,e)=>e.root})(()=>({overflow:"hidden"}));var eo=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiCard"}),{className:i,raised:o=!1}=n,r=Object(T.a)(n,Zi),s=Object(L.a)({},n,{raised:o}),a=(t=>{const{classes:e}=t;return Object(O.a)({root:["root"]},Yi,e)})(s);return Object(q.jsx)(to,Object(L.a)({className:Object(w.a)(a.root,i),elevation:o?8:void 0,ref:e,ownerState:s},r))}));function no(t){return Object(M.a)("MuiCardActionArea",t)}var io=Object(k.a)("MuiCardActionArea",["root","focusVisible","focusHighlight"]);const oo=["children","className","focusVisibleClassName"],ro=Object(R.a)(pt.a,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({display:"block",textAlign:"inherit",width:"100%",["&:hover ."+io.focusHighlight]:{opacity:(t.vars||t).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${io.focusVisible} .${io.focusHighlight}`]:{opacity:(t.vars||t).palette.action.focusOpacity}})),so=Object(R.a)("span",{name:"MuiCardActionArea",slot:"FocusHighlight",overridesResolver:(t,e)=>e.focusHighlight})(({theme:t})=>({overflow:"hidden",pointerEvents:"none",position:"absolute",top:0,right:0,bottom:0,left:0,borderRadius:"inherit",opacity:0,backgroundColor:"currentcolor",transition:t.transitions.create("opacity",{duration:t.transitions.duration.short})}));var ao=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiCardActionArea"}),{children:i,className:o,focusVisibleClassName:r}=n,s=Object(T.a)(n,oo),a=n,c=(t=>{const{classes:e}=t;return Object(O.a)({root:["root"],focusHighlight:["focusHighlight"]},no,e)})(a);return Object(q.jsxs)(ro,Object(L.a)({className:Object(w.a)(c.root,o),focusVisibleClassName:Object(w.a)(r,c.focusVisible),ref:e,ownerState:a},s,{children:[i,Object(q.jsx)(so,{className:c.focusHighlight,ownerState:a})]}))}));function co(t){return Object(M.a)("MuiCardActions",t)}var lo=Object(k.a)("MuiCardActions",["root","spacing"]);const uo=["disableSpacing","className"],ho=Object(R.a)("div",{name:"MuiCardActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disableSpacing&&e.spacing]}})(({ownerState:t})=>Object(L.a)({display:"flex",alignItems:"center",padding:8},!t.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}}));var po=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiCardActions"}),{disableSpacing:i=!1,className:o}=n,r=Object(T.a)(n,uo),s=Object(L.a)({},n,{disableSpacing:i}),a=(t=>{const{classes:e,disableSpacing:n}=t,i={root:["root",!n&&"spacing"]};return Object(O.a)(i,co,e)})(s);return Object(q.jsx)(ho,Object(L.a)({className:Object(w.a)(a.root,o),ownerState:s,ref:e},r))}));function _o(t){return Object(M.a)("MuiCardContent",t)}var mo=Object(k.a)("MuiCardContent",["root"]);const fo=["className","component"],go=Object(R.a)("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(t,e)=>e.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}}));var $o=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiCardContent"}),{className:i,component:o="div"}=n,r=Object(T.a)(n,fo),s=Object(L.a)({},n,{component:o}),a=(t=>{const{classes:e}=t;return Object(O.a)({root:["root"]},_o,e)})(s);return Object(q.jsx)(go,Object(L.a)({as:o,className:Object(w.a)(a.root,i),ownerState:s,ref:e},r))}));function Eo(t){return Object(M.a)("MuiCardHeader",t)}var yo=Object(k.a)("MuiCardHeader",["root","avatar","action","content","title","subheader"]);const bo=["action","avatar","className","component","disableTypography","subheader","subheaderTypographyProps","title","titleTypographyProps"],So=Object(R.a)("div",{name:"MuiCardHeader",slot:"Root",overridesResolver:(t,e)=>Object(L.a)({["& ."+yo.title]:e.title,["& ."+yo.subheader]:e.subheader},e.root)})({display:"flex",alignItems:"center",padding:16}),vo=Object(R.a)("div",{name:"MuiCardHeader",slot:"Avatar",overridesResolver:(t,e)=>e.avatar})({display:"flex",flex:"0 0 auto",marginRight:16}),Co=Object(R.a)("div",{name:"MuiCardHeader",slot:"Action",overridesResolver:(t,e)=>e.action})({flex:"0 0 auto",alignSelf:"flex-start",marginTop:-4,marginRight:-8,marginBottom:-4}),No=Object(R.a)("div",{name:"MuiCardHeader",slot:"Content",overridesResolver:(t,e)=>e.content})({flex:"1 1 auto"});var To=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiCardHeader"}),{action:i,avatar:o,className:r,component:s="div",disableTypography:a=!1,subheader:c,subheaderTypographyProps:l,title:u,titleTypographyProps:h}=n,d=Object(T.a)(n,bo),p=Object(L.a)({},n,{component:s,disableTypography:a}),_=(t=>{const{classes:e}=t;return Object(O.a)({root:["root"],avatar:["avatar"],action:["action"],content:["content"],title:["title"],subheader:["subheader"]},Eo,e)})(p);let m=u;null==m||m.type===jt.a||a||(m=Object(q.jsx)(jt.a,Object(L.a)({variant:o?"body2":"h5",className:_.title,component:"span",display:"block"},h,{children:m})));let f=c;return null==f||f.type===jt.a||a||(f=Object(q.jsx)(jt.a,Object(L.a)({variant:o?"body2":"body1",className:_.subheader,color:"text.secondary",component:"span",display:"block"},l,{children:f}))),Object(q.jsxs)(So,Object(L.a)({className:Object(w.a)(_.root,r),as:s,ref:e,ownerState:p},d,{children:[o&&Object(q.jsx)(vo,{className:_.avatar,ownerState:p,children:o}),Object(q.jsxs)(No,{className:_.content,ownerState:p,children:[m,f]}),i&&Object(q.jsx)(Co,{className:_.action,ownerState:p,children:i})]}))}));function Lo(t){return Object(M.a)("MuiCardMedia",t)}var zo=Object(k.a)("MuiCardMedia",["root","media","img"]);const wo=["children","className","component","image","src","style"],Oo=Object(R.a)("div",{name:"MuiCardMedia",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t,{isMediaComponent:i,isImageComponent:o}=n;return[e.root,i&&e.media,o&&e.img]}})(({ownerState:t})=>Object(L.a)({display:"block",backgroundSize:"cover",backgroundRepeat:"no-repeat",backgroundPosition:"center"},t.isMediaComponent&&{width:"100%"},t.isImageComponent&&{objectFit:"cover"})),Ro=["video","audio","picture","iframe","img"],Ao=["picture","img"];var xo=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiCardMedia"}),{children:i,className:o,component:r="div",image:s,src:a,style:c}=n,l=Object(T.a)(n,wo),u=-1!==Ro.indexOf(r),h=!u&&s?Object(L.a)({backgroundImage:`url("${s}")`},c):c,d=Object(L.a)({},n,{component:r,isMediaComponent:u,isImageComponent:-1!==Ao.indexOf(r)}),p=(t=>{const{classes:e,isMediaComponent:n,isImageComponent:i}=t,o={root:["root",n&&"media",i&&"img"]};return Object(O.a)(o,Lo,e)})(d);return Object(q.jsx)(Oo,Object(L.a)({className:Object(w.a)(p.root,o),as:r,role:!u&&s?"img":void 0,ref:e,style:h,ownerState:d,src:u?s||a:void 0},l,{children:i}))})),Io=n(223),Uo=Object(Lt.a)(Object(q.jsx)("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"}),"CheckBoxOutlineBlank"),Do=Object(Lt.a)(Object(q.jsx)("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"}),"CheckBox"),Po=Object(Lt.a)(Object(q.jsx)("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}),"IndeterminateCheckBox");function Mo(t){return Object(M.a)("MuiCheckbox",t)}var ko=Object(k.a)("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary"]);const jo=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size"],Go=Object(R.a)(Io.a,{shouldForwardProp:t=>Object(R.b)(t)||"classes"===t,name:"MuiCheckbox",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.indeterminate&&e.indeterminate,"default"!==n.color&&e["color"+Object(St.a)(n.color)]]}})(({theme:t,ownerState:e})=>Object(L.a)({color:(t.vars||t).palette.text.secondary},!e.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${"default"===e.color?t.vars.palette.action.activeChannel:t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Object(bt.a)("default"===e.color?t.palette.action.active:t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==e.color&&{[`&.${ko.checked}, &.${ko.indeterminate}`]:{color:(t.vars||t).palette[e.color].main},["&."+ko.disabled]:{color:(t.vars||t).palette.action.disabled}})),qo=Object(q.jsx)(Do,{}),Fo=Object(q.jsx)(Uo,{}),Bo=Object(q.jsx)(Po,{});var Wo=z.forwardRef((function(t,e){var n,i;const o=Object(A.a)({props:t,name:"MuiCheckbox"}),{checkedIcon:r=qo,color:s="primary",icon:a=Fo,indeterminate:c=!1,indeterminateIcon:l=Bo,inputProps:u,size:h="medium"}=o,d=Object(T.a)(o,jo),p=c?l:a,_=c?l:r,m=Object(L.a)({},o,{color:s,indeterminate:c,size:h}),f=(t=>{const{classes:e,indeterminate:n,color:i}=t,o={root:["root",n&&"indeterminate","color"+Object(St.a)(i)]},r=Object(O.a)(o,Mo,e);return Object(L.a)({},e,r)})(m);return Object(q.jsx)(Go,Object(L.a)({type:"checkbox",inputProps:Object(L.a)({"data-indeterminate":c},u),icon:z.cloneElement(p,{fontSize:null!=(n=p.props.fontSize)?n:h}),checkedIcon:z.cloneElement(_,{fontSize:null!=(i=_.props.fontSize)?i:h}),ownerState:m,ref:e},d,{classes:f}))})),Ho=n(239),Vo=n(654),Ko=n(302),Xo=n(1029),Jo=n(734),Yo=n(1019),Qo=n(275);var Zo=Object(Qo.a)(),tr=n(1030);const er=["className","component","disableGutters","fixed","maxWidth","classes"],nr=Object(tr.a)(),ir=Zo("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e["maxWidth"+Object(Jo.a)(String(n.maxWidth))],n.fixed&&e.fixed,n.disableGutters&&e.disableGutters]}}),or=t=>Object(Yo.a)({props:t,name:"MuiContainer",defaultTheme:nr});var rr=function(t={}){const{createStyledComponent:e=ir,useThemeProps:n=or,componentName:i="MuiContainer"}=t,o=e(({theme:t,ownerState:e})=>Object(Ci.a)({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!e.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}}),({theme:t,ownerState:e})=>e.fixed&&Object.keys(t.breakpoints.values).reduce((e,n)=>{const i=n,o=t.breakpoints.values[i];return 0!==o&&(e[t.breakpoints.up(i)]={maxWidth:`${o}${t.breakpoints.unit}`}),e},{}),({theme:t,ownerState:e})=>Object(Ci.a)({},"xs"===e.maxWidth&&{[t.breakpoints.up("xs")]:{maxWidth:Math.max(t.breakpoints.values.xs,444)}},e.maxWidth&&"xs"!==e.maxWidth&&{[t.breakpoints.up(e.maxWidth)]:{maxWidth:`${t.breakpoints.values[e.maxWidth]}${t.breakpoints.unit}`}}));return z.forwardRef((function(t,e){const r=n(t),{className:s,component:a="div",disableGutters:c=!1,fixed:l=!1,maxWidth:u="lg"}=r,h=Object(Ni.a)(r,er),d=Object(Ci.a)({},r,{component:a,disableGutters:c,fixed:l,maxWidth:u}),p=((t,e)=>{const{classes:n,fixed:i,disableGutters:o,maxWidth:r}=t,s={root:["root",r&&"maxWidth"+Object(Jo.a)(String(r)),i&&"fixed",o&&"disableGutters"]};return Object(O.a)(s,t=>Object(M.a)(e,t),n)})(d,i);return Object(q.jsx)(o,Object(Ci.a)({as:a,ownerState:d,className:Object(w.a)(p.root,s),ref:e},h))}))}({createStyledComponent:Object(R.a)("div",{name:"MuiContainer",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e["maxWidth"+Object(St.a)(String(n.maxWidth))],n.fixed&&e.fixed,n.disableGutters&&e.disableGutters]}}),useThemeProps:t=>Object(A.a)({props:t,name:"MuiContainer"})});function sr(t){return Object(M.a)("MuiContainer",t)}var ar=Object(k.a)("MuiContainer",["root","disableGutters","fixed","maxWidthXs","maxWidthSm","maxWidthMd","maxWidthLg","maxWidthXl"]),cr=n(270);const lr={track:"#2b2b2b",thumb:"#6b6b6b",active:"#959595"};function ur(t=lr){return{scrollbarColor:`${t.thumb} ${t.track}`,"&::-webkit-scrollbar, & *::-webkit-scrollbar":{backgroundColor:t.track},"&::-webkit-scrollbar-thumb, & *::-webkit-scrollbar-thumb":{borderRadius:8,backgroundColor:t.thumb,minHeight:24,border:"3px solid "+t.track},"&::-webkit-scrollbar-thumb:focus, & *::-webkit-scrollbar-thumb:focus":{backgroundColor:t.active},"&::-webkit-scrollbar-thumb:active, & *::-webkit-scrollbar-thumb:active":{backgroundColor:t.active},"&::-webkit-scrollbar-thumb:hover, & *::-webkit-scrollbar-thumb:hover":{backgroundColor:t.active},"&::-webkit-scrollbar-corner, & *::-webkit-scrollbar-corner":{backgroundColor:t.track}}}var hr=n(638),dr=n(240),pr=n(640),_r=n(241),mr=n(639),fr=n(242);function gr(t){return Object(M.a)("MuiDialogContentText",t)}var $r=Object(k.a)("MuiDialogContentText",["root"]);const Er=["children"],yr=Object(R.a)(jt.a,{shouldForwardProp:t=>Object(R.b)(t)||"classes"===t,name:"MuiDialogContentText",slot:"Root",overridesResolver:(t,e)=>e.root})({});var br=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiDialogContentText"}),i=Object(T.a)(n,Er),o=(t=>{const{classes:e}=t,n=Object(O.a)({root:["root"]},gr,e);return Object(L.a)({},e,n)})(i);return Object(q.jsx)(yr,Object(L.a)({component:"p",variant:"body1",color:"text.secondary",ref:e,ownerState:i},n,{classes:o}))})),Sr=n(642),vr=n(296),Cr=n(643),Nr=n(243),Tr=n(80),Lr=n(297),zr=n(644),wr=n(183),Or=n(738),Rr=n(412),Ar=n(260),xr=n(406),Ir=n(184),Ur=n(41);function Dr(t){return Object(M.a)("MuiFormControlLabel",t)}var Pr=Object(k.a)("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error"]),Mr=n(53);const kr=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","value"],jr=Object(R.a)("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{["& ."+Pr.label]:e.label},e.root,e["labelPlacement"+Object(St.a)(n.labelPlacement)]]}})(({theme:t,ownerState:e})=>Object(L.a)({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,["&."+Pr.disabled]:{cursor:"default"}},"start"===e.labelPlacement&&{flexDirection:"row-reverse",marginLeft:16,marginRight:-11},"top"===e.labelPlacement&&{flexDirection:"column-reverse",marginLeft:16},"bottom"===e.labelPlacement&&{flexDirection:"column",marginLeft:16},{["& ."+Pr.label]:{["&."+Pr.disabled]:{color:(t.vars||t).palette.text.disabled}}}));var Gr=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiFormControlLabel"}),{className:i,componentsProps:o={},control:r,disabled:s,disableTypography:a,label:c,labelPlacement:l="end"}=n,u=Object(T.a)(n,kr),h=Object(Ur.a)();let d=s;void 0===d&&void 0!==r.props.disabled&&(d=r.props.disabled),void 0===d&&h&&(d=h.disabled);const p={disabled:d};["checked","name","onChange","value","inputRef"].forEach(t=>{void 0===r.props[t]&&void 0!==n[t]&&(p[t]=n[t])});const _=Object(Mr.a)({props:n,muiFormControl:h,states:["error"]}),m=Object(L.a)({},n,{disabled:d,labelPlacement:l,error:_.error}),f=(t=>{const{classes:e,disabled:n,labelPlacement:i,error:o}=t,r={root:["root",n&&"disabled","labelPlacement"+Object(St.a)(i),o&&"error"],label:["label",n&&"disabled"]};return Object(O.a)(r,Dr,e)})(m);let g=c;return null==g||g.type===jt.a||a||(g=Object(q.jsx)(jt.a,Object(L.a)({component:"span",className:f.label},o.typography,{children:g}))),Object(q.jsxs)(jr,Object(L.a)({className:Object(w.a)(f.root,i),ownerState:m,ref:e},u,{children:[z.cloneElement(r,p),g]}))}));function qr(t){return Object(M.a)("MuiFormGroup",t)}var Fr=Object(k.a)("MuiFormGroup",["root","row","error"]);const Br=["className","row"],Wr=Object(R.a)("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.row&&e.row]}})(({ownerState:t})=>Object(L.a)({display:"flex",flexDirection:"column",flexWrap:"wrap"},t.row&&{flexDirection:"row"}));var Hr=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiFormGroup"}),{className:i,row:o=!1}=n,r=Object(T.a)(n,Br),s=Object(Ur.a)(),a=Object(Mr.a)({props:n,muiFormControl:s,states:["error"]}),c=Object(L.a)({},n,{row:o,error:a.error}),l=(t=>{const{classes:e,row:n,error:i}=t,o={root:["root",n&&"row",i&&"error"]};return Object(O.a)(o,qr,e)})(c);return Object(q.jsx)(Wr,Object(L.a)({className:Object(w.a)(l.root,i),ownerState:c,ref:e},r))})),Vr=n(407),Kr=n(244),Xr=n(265),Jr=n(325),Yr=n(413),Qr=n(185);const Zr=(t,e,n)=>{const i=t.keys[0];if(Array.isArray(e))e.forEach((e,i)=>{n((e,n)=>{i<=t.keys.length-1&&(0===i?Object.assign(e,n):e[t.up(t.keys[i])]=n)},e)});else if(e&&"object"==typeof e){(Object.keys(e).length>t.keys.length?t.keys:Object.keys(e)).forEach(o=>{if(-1!==t.keys.indexOf(o)){const r=e[o];void 0!==r&&n((e,n)=>{i===o?Object.assign(e,n):e[t.up(o)]=n},r)}})}else"number"!=typeof e&&"string"!=typeof e||n((t,e)=>{Object.assign(t,e)},e)},ts=({theme:t,ownerState:e})=>{const n={};return Zr(t.breakpoints,e.gridSize,(t,i)=>{let o={};!0===i&&(o={flexBasis:0,flexGrow:1,maxWidth:"100%"}),"auto"===i&&(o={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"}),"number"==typeof i&&(o={flexGrow:0,flexBasis:"auto",width:`calc(100% * ${i} / var(--Grid-columns)${e.nested&&e.container?" + var(--Grid-columnSpacing)":""})`}),t(n,o)}),n},es=({theme:t,ownerState:e})=>{const n={};return Zr(t.breakpoints,e.gridOffset,(t,e)=>{let i={};"auto"===e&&(i={marginLeft:"auto"}),"number"==typeof e&&(i={marginLeft:0===e?"0px":`calc(100% * ${e} / var(--Grid-columns))`}),t(n,i)}),n},ns=({theme:t,ownerState:e})=>{if(!e.container)return{};const n={"--Grid-columns":12};return Zr(t.breakpoints,e.columns,(t,e)=>{t(n,{"--Grid-columns":e})}),n},is=({theme:t,ownerState:e})=>{if(!e.container)return{};const n={};return Zr(t.breakpoints,e.rowSpacing,(e,i)=>{var o;e(n,{"--Grid-rowSpacing":"string"==typeof i?i:null==(o=t.spacing)?void 0:o.call(t,i)})}),n},os=({theme:t,ownerState:e})=>{if(!e.container)return{};const n={};return Zr(t.breakpoints,e.columnSpacing,(e,i)=>{var o;e(n,{"--Grid-columnSpacing":"string"==typeof i?i:null==(o=t.spacing)?void 0:o.call(t,i)})}),n},rs=({theme:t,ownerState:e})=>{if(!e.container)return{};const n={};return Zr(t.breakpoints,e.direction,(t,e)=>{t(n,{flexDirection:e})}),n},ss=({ownerState:t})=>Object(Ci.a)({minWidth:0,boxSizing:"border-box"},t.container?Object(Ci.a)({display:"flex",flexWrap:"wrap"},t.wrap&&"wrap"!==t.wrap&&{flexWrap:t.wrap},{margin:"calc(var(--Grid-rowSpacing) / -2) calc(var(--Grid-columnSpacing) / -2)"},t.disableEqualOverflow&&{margin:"calc(var(--Grid-rowSpacing) * -1) 0px 0px calc(var(--Grid-columnSpacing) * -1)"},t.nested?Object(Ci.a)({padding:"calc(var(--Grid-nested-rowSpacing) / 2) calc(var(--Grid-nested-columnSpacing) / 2)"},(t.disableEqualOverflow||t.parentDisableEqualOverflow)&&{padding:"calc(var(--Grid-nested-rowSpacing)) 0px 0px calc(var(--Grid-nested-columnSpacing))"}):{"--Grid-nested-rowSpacing":"var(--Grid-rowSpacing)","--Grid-nested-columnSpacing":"var(--Grid-columnSpacing)"}):Object(Ci.a)({padding:"calc(var(--Grid-rowSpacing) / 2) calc(var(--Grid-columnSpacing) / 2)"},t.disableEqualOverflow&&{padding:"calc(var(--Grid-rowSpacing)) 0px 0px calc(var(--Grid-columnSpacing))"})),as=t=>{const e=[];return Object.entries(t).forEach(([t,n])=>{!1!==n&&void 0!==n&&e.push(`grid-${t}-${String(n)}`)}),e},cs=(t,e="xs")=>{function n(t){return void 0!==t&&("string"==typeof t&&!Number.isNaN(Number(t))||"number"==typeof t&&t>0)}if(n(t))return[`spacing-${e}-${String(t)}`];if("object"==typeof t&&!Array.isArray(t)){const e=[];return Object.entries(t).forEach(([t,i])=>{n(i)&&e.push(`spacing-${t}-${String(i)}`)}),e}return[]},ls=t=>void 0===t?[]:"object"==typeof t?Object.entries(t).map(([t,e])=>`direction-${t}-${e}`):["direction-xs-"+String(t)],us=["className","columns","container","component","direction","wrap","spacing","rowSpacing","columnSpacing","disableEqualOverflow"],hs=Object(tr.a)(),ds=Zo("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>e.root});function ps(t){return Object(Yo.a)({props:t,name:"MuiGrid",defaultTheme:hs})}var _s=function(t={}){const{createStyledComponent:e=ds,useThemeProps:n=ps,componentName:i="MuiGrid"}=t,o=z.createContext(!1),r=z.createContext(void 0),s=e(ns,os,is,ts,rs,ss,es);return z.forwardRef((function(t,e){var a,c,l,u,h,d,p,_;const m=Object(wi.a)(),f=n(t),g=Object(zi.a)(f),$=z.useContext(o),E=z.useContext(r),{className:y,columns:b=12,container:S=!1,component:v="div",direction:C="row",wrap:N="wrap",spacing:T=0,rowSpacing:L=T,columnSpacing:R=T,disableEqualOverflow:A}=g,x=Object(Ni.a)(g,us);let I=A;$&&void 0!==A&&(I=t.disableEqualOverflow);const U={},D={},P={};Object.entries(x).forEach(([t,e])=>{void 0!==m.breakpoints.values[t]?U[t]=e:void 0!==m.breakpoints.values[t.replace("Offset","")]?D[t.replace("Offset","")]=e:P[t]=e});const k=null!=(a=t.columns)?a:$?void 0:b,j=null!=(c=t.spacing)?c:$?void 0:T,G=null!=(l=null!=(u=t.rowSpacing)?u:t.spacing)?l:$?void 0:L,F=null!=(h=null!=(d=t.columnSpacing)?d:t.spacing)?h:$?void 0:R,B=Object(Ci.a)({},g,{nested:$,columns:k,container:S,direction:C,wrap:N,spacing:j,rowSpacing:G,columnSpacing:F,gridSize:U,gridOffset:D,disableEqualOverflow:null!=(p=null!=(_=I)?_:E)&&p,parentDisableEqualOverflow:E}),W=((t,e)=>{const{container:n,direction:o,spacing:r,wrap:s,gridSize:a}=t,c={root:["root",n&&"container","wrap"!==s&&"wrap-xs-"+String(s),...ls(o),...as(a),...n?cs(r,e.breakpoints.keys[0]):[]]};return Object(O.a)(c,t=>Object(M.a)(i,t),{})})(B,m);let H=Object(q.jsx)(s,Object(Ci.a)({ref:e,as:v,ownerState:B,className:Object(w.a)(W.root,y)},P));return $||(H=Object(q.jsx)(o.Provider,{value:!0,children:H})),void 0!==I&&I!==(null!=E&&E)&&(H=Object(q.jsx)(r.Provider,{value:I,children:H})),H}))}({createStyledComponent:Object(R.a)("div",{name:"MuiGrid2",overridesResolver:(t,e)=>e.root}),componentName:"MuiGrid2",useThemeProps:t=>Object(A.a)({props:t,name:"MuiGrid2"})});function ms(t){return Object(M.a)("MuiGrid2",t)}const fs=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12];var gs=Object(k.a)("MuiGrid2",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map(t=>"spacing-xs-"+t),...["column-reverse","column","row-reverse","row"].map(t=>"direction-xs-"+t),...["nowrap","wrap-reverse","wrap"].map(t=>"wrap-xs-"+t),...fs.map(t=>"grid-xs-"+t),...fs.map(t=>"grid-sm-"+t),...fs.map(t=>"grid-md-"+t),...fs.map(t=>"grid-lg-"+t),...fs.map(t=>"grid-xl-"+t)]),$s=n(740),Es=n(9),ys=n.n(Es),bs=n(418),Ss=n(52),vs=n(651);const Cs=["initialWidth","width"],Ns=["xs","sm","md","lg","xl"],Ts=(t,e,n=!0)=>n?Ns.indexOf(t)<=Ns.indexOf(e):Ns.indexOf(t)n?Ns.indexOf(e)<=Ns.indexOf(t):Ns.indexOf(e)e=>{const{withTheme:n=!1,noSSR:i=!1,initialWidth:o}=t;return function(t){const r=Object(D.default)(),s=t.theme||r,a=Object(bs.a)({theme:s,name:"MuiWithWidth",props:t}),{initialWidth:c,width:l}=a,u=Object(T.a)(a,Cs),[h,d]=z.useState(!1);Object(Ss.a)(()=>{d(!0)},[]);const p=s.breakpoints.keys.slice().reverse().reduce((t,e)=>{const n=Object(vs.a)(s.breakpoints.up(e));return!t&&n?e:t},null),_=Object(L.a)({width:l||(h||i?p:void 0)||c||o},n?{theme:s}:{},u);return void 0===_.width?null:Object(q.jsx)(e,Object(L.a)({},_))}};function ws(t){const{children:e,only:n,width:i}=t,o=Object(D.default)();let r=!0;if(n)if(Array.isArray(n))for(let t=0;t{const n={display:"none"};return Object(L.a)({},e.breakpoints.map(({breakpoint:e,dir:i})=>"only"===i?{[t.breakpoints.only(e)]:n}:"up"===i?{[t.breakpoints.up(e)]:n}:{[t.breakpoints.down(e)]:n}).reduce((t,e)=>(Object.keys(e).forEach(n=>{t[n]=e[n]}),t),{}))});var Is=function(t){const{children:e,className:n,only:i}=t,o=Object(T.a)(t,As),r=Object(D.default)(),s=[];for(let t=0;t{s.push({breakpoint:t,dir:"only"})})}const a=Object(L.a)({},t,{breakpoints:s}),c=(t=>{const{classes:e,breakpoints:n}=t,i={root:["root",...n.map(({breakpoint:t,dir:e})=>"only"===e?`${e}${Object(St.a)(t)}`:`${t}${Object(St.a)(e)}`)]};return Object(O.a)(i,Rs,e)})(a);return Object(q.jsx)(xs,{className:Object(w.a)(c.root,n),ownerState:a,children:e})};const Us=["implementation","lgDown","lgUp","mdDown","mdUp","smDown","smUp","xlDown","xlUp","xsDown","xsUp"];var Ds=function(t){const{implementation:e="js",lgDown:n=!1,lgUp:i=!1,mdDown:o=!1,mdUp:r=!1,smDown:s=!1,smUp:a=!1,xlDown:c=!1,xlUp:l=!1,xsDown:u=!1,xsUp:h=!1}=t,d=Object(T.a)(t,Us);return"js"===e?Object(q.jsx)(Os,Object(L.a)({lgDown:n,lgUp:i,mdDown:o,mdUp:r,smDown:s,smUp:a,xlDown:c,xlUp:l,xsDown:u,xsUp:h},d)):Object(q.jsx)(Is,Object(L.a)({lgDown:n,lgUp:i,mdDown:o,mdUp:r,smDown:s,smUp:a,xlDown:c,xlUp:l,xsDown:u,xsUp:h},d))},Ps=n(645),Ms=n(298),ks=n(81);function js(t){return Object(M.a)("MuiImageList",t)}var Gs=Object(k.a)("MuiImageList",["root","masonry","quilted","standard","woven"]);var qs=z.createContext({});const Fs=["children","className","cols","component","rowHeight","gap","style","variant"],Bs=Object(R.a)("ul",{name:"MuiImageList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant]]}})(({ownerState:t})=>Object(L.a)({display:"grid",overflowY:"auto",listStyle:"none",padding:0,WebkitOverflowScrolling:"touch"},"masonry"===t.variant&&{display:"block"}));var Ws=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiImageList"}),{children:i,className:o,cols:r=2,component:s="ul",rowHeight:a="auto",gap:c=4,style:l,variant:u="standard"}=n,h=Object(T.a)(n,Fs),d=z.useMemo(()=>({rowHeight:a,gap:c,variant:u}),[a,c,u]);z.useEffect(()=>{0},[]);const p="masonry"===u?Object(L.a)({columnCount:r,columnGap:c},l):Object(L.a)({gridTemplateColumns:`repeat(${r}, 1fr)`,gap:c},l),_=Object(L.a)({},n,{component:s,gap:c,rowHeight:a,variant:u}),m=(t=>{const{classes:e,variant:n}=t,i={root:["root",n]};return Object(O.a)(i,js,e)})(_);return Object(q.jsx)(Bs,Object(L.a)({as:s,className:Object(w.a)(m.root,m[u],o),ref:e,style:p,ownerState:_},h,{children:Object(q.jsx)(qs.Provider,{value:d,children:i})}))})),Hs=n(75);function Vs(t){return Object(M.a)("MuiImageListItem",t)}var Ks=Object(k.a)("MuiImageListItem",["root","img","standard","woven","masonry","quilted"]);const Xs=["children","className","cols","component","rows","style"],Js=Object(R.a)("li",{name:"MuiImageListItem",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{["& ."+Ks.img]:e.img},e.root,e[n.variant]]}})(({ownerState:t})=>Object(L.a)({display:"block",position:"relative"},"standard"===t.variant&&{display:"flex",flexDirection:"column"},"woven"===t.variant&&{height:"100%",alignSelf:"center","&:nth-of-type(even)":{height:"70%"}},{["& ."+Ks.img]:Object(L.a)({objectFit:"cover",width:"100%",height:"100%",display:"block"},"standard"===t.variant&&{height:"auto",flexGrow:1})}));var Ys=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiImageListItem"}),{children:i,className:o,cols:r=1,component:s="li",rows:a=1,style:c}=n,l=Object(T.a)(n,Xs),{rowHeight:u="auto",gap:h,variant:d}=z.useContext(qs);let p="auto";"woven"===d?p=void 0:"auto"!==u&&(p=u*a+h*(a-1));const _=Object(L.a)({},n,{cols:r,component:s,gap:h,rowHeight:u,rows:a,variant:d}),m=(t=>{const{classes:e,variant:n}=t,i={root:["root",n],img:["img"]};return Object(O.a)(i,Vs,e)})(_);return Object(q.jsx)(Js,Object(L.a)({as:s,className:Object(w.a)(m.root,m[d],o),ref:e,style:Object(L.a)({height:p,gridColumnEnd:"masonry"!==d?"span "+r:void 0,gridRowEnd:"masonry"!==d?"span "+a:void 0,marginBottom:"masonry"===d?h:void 0},c),ownerState:_},l,{children:z.Children.map(i,t=>z.isValidElement(t)?"img"===t.type||Object(Hs.a)(t,["Image"])?z.cloneElement(t,{className:Object(w.a)(m.img,t.props.className)}):t:null)}))}));function Qs(t){return Object(M.a)("MuiImageListItemBar",t)}var Zs=Object(k.a)("MuiImageListItemBar",["root","positionBottom","positionTop","positionBelow","titleWrap","titleWrapBottom","titleWrapTop","titleWrapBelow","titleWrapActionPosLeft","titleWrapActionPosRight","title","subtitle","actionIcon","actionIconActionPosLeft","actionIconActionPosRight"]);const ta=["actionIcon","actionPosition","className","subtitle","title","position"],ea=Object(R.a)("div",{name:"MuiImageListItemBar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e["position"+Object(St.a)(n.position)]]}})(({theme:t,ownerState:e})=>Object(L.a)({position:"absolute",left:0,right:0,background:"rgba(0, 0, 0, 0.5)",display:"flex",alignItems:"center",fontFamily:t.typography.fontFamily},"bottom"===e.position&&{bottom:0},"top"===e.position&&{top:0},"below"===e.position&&{position:"relative",background:"transparent",alignItems:"normal"})),na=Object(R.a)("div",{name:"MuiImageListItemBar",slot:"TitleWrap",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.titleWrap,e["titleWrap"+Object(St.a)(n.position)],n.actionIcon&&e["titleWrapActionPos"+Object(St.a)(n.actionPosition)]]}})(({theme:t,ownerState:e})=>Object(L.a)({flexGrow:1,padding:"12px 16px",color:(t.vars||t).palette.common.white,overflow:"hidden"},"below"===e.position&&{padding:"6px 0 12px",color:"inherit"},e.actionIcon&&"left"===e.actionPosition&&{paddingLeft:0},e.actionIcon&&"right"===e.actionPosition&&{paddingRight:0})),ia=Object(R.a)("div",{name:"MuiImageListItemBar",slot:"Title",overridesResolver:(t,e)=>e.title})(({theme:t})=>({fontSize:t.typography.pxToRem(16),lineHeight:"24px",textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),oa=Object(R.a)("div",{name:"MuiImageListItemBar",slot:"Subtitle",overridesResolver:(t,e)=>e.subtitle})(({theme:t})=>({fontSize:t.typography.pxToRem(12),lineHeight:1,textOverflow:"ellipsis",overflow:"hidden",whiteSpace:"nowrap"})),ra=Object(R.a)("div",{name:"MuiImageListItemBar",slot:"ActionIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.actionIcon,e["actionIconActionPos"+Object(St.a)(n.actionPosition)]]}})(({ownerState:t})=>Object(L.a)({},"left"===t.actionPosition&&{order:-1}));var sa=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiImageListItemBar"}),{actionIcon:i,actionPosition:o="right",className:r,subtitle:s,title:a,position:c="bottom"}=n,l=Object(T.a)(n,ta),u=Object(L.a)({},n,{position:c,actionPosition:o}),h=(t=>{const{classes:e,position:n,actionIcon:i,actionPosition:o}=t,r={root:["root","position"+Object(St.a)(n)],titleWrap:["titleWrap","titleWrap"+Object(St.a)(n),i&&"titleWrapActionPos"+Object(St.a)(o)],title:["title"],subtitle:["subtitle"],actionIcon:["actionIcon","actionIconActionPos"+Object(St.a)(o)]};return Object(O.a)(r,Qs,e)})(u);return Object(q.jsxs)(ea,Object(L.a)({ownerState:u,className:Object(w.a)(h.root,r),ref:e},l,{children:[Object(q.jsxs)(na,{ownerState:u,className:h.titleWrap,children:[Object(q.jsx)(ia,{className:h.title,children:a}),s?Object(q.jsx)(oa,{className:h.subtitle,children:s}):null]}),i?Object(q.jsx)(ra,{ownerState:u,className:h.actionIcon,children:i}):null]}))})),aa=n(409),ca=n(156),la=n(641),ua=n(326),ha=n(49),da=n(113),pa=n(408),_a=n(245),ma=n(653),fa=n(251),ga=n(134);function $a(t){return Object(M.a)("MuiLink",t)}var Ea=Object(k.a)("MuiLink",["root","underlineNone","underlineHover","underlineAlways","button","focusVisible"]),ya=n(13);const ba={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"};var Sa=({theme:t,ownerState:e})=>{const n=(t=>ba[t]||t)(e.color),i=Object(ya.b)(t,"palette."+n,!1)||e.color,o=Object(ya.b)(t,`palette.${n}Channel`);return"vars"in t&&o?`rgba(${o} / 0.4)`:Object(bt.a)(i,.4)};const va=["className","color","component","onBlur","onFocus","TypographyClasses","underline","variant","sx"],Ca=Object(R.a)(jt.a,{name:"MuiLink",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e["underline"+Object(St.a)(n.underline)],"button"===n.component&&e.button]}})(({theme:t,ownerState:e})=>Object(L.a)({},"none"===e.underline&&{textDecoration:"none"},"hover"===e.underline&&{textDecoration:"none","&:hover":{textDecoration:"underline"}},"always"===e.underline&&Object(L.a)({textDecoration:"underline"},"inherit"!==e.color&&{textDecorationColor:Sa({theme:t,ownerState:e})},{"&:hover":{textDecorationColor:"inherit"}}),"button"===e.component&&{position:"relative",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none","&::-moz-focus-inner":{borderStyle:"none"},["&."+Ea.focusVisible]:{outline:"auto"}}));var Na=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiLink"}),{className:i,color:o="primary",component:r="a",onBlur:s,onFocus:a,TypographyClasses:c,underline:l="always",variant:u="inherit",sx:h}=n,d=Object(T.a)(n,va),{isFocusVisibleRef:p,onBlur:_,onFocus:m,ref:f}=Object(ga.a)(),[g,$]=z.useState(!1),E=Object(P.a)(e,f),y=Object(L.a)({},n,{color:o,component:r,focusVisible:g,underline:l,variant:u}),b=(t=>{const{classes:e,component:n,focusVisible:i,underline:o}=t,r={root:["root","underline"+Object(St.a)(o),"button"===n&&"button",i&&"focusVisible"]};return Object(O.a)(r,$a,e)})(y);return Object(q.jsx)(Ca,Object(L.a)({color:o,className:Object(w.a)(b.root,i),classes:c,component:r,onBlur:t=>{_(t),!1===p.current&&$(!1),s&&s(t)},onFocus:t=>{m(t),!0===p.current&&$(!0),a&&a(t)},ref:E,ownerState:y,variant:u,sx:[...Object.keys(ba).includes(o)?[]:[{color:o}],...Array.isArray(h)?h:[h]]},d))})),Ta=n(646),La=n(246),za=n(647),wa=n(299),Oa=n(648),Ra=n(300),Aa=n(711),xa=n(327),Ia=n(649),Ua=n(247),Da=n(410),Pa=n(328),Ma=n(650),ka=n(248),ja=n(332),Ga=n(301),qa=n(652),Fa=n(250),Ba=n(1031);function Wa(t){return Object(M.a)("MuiMobileStepper",t)}var Ha=Object(k.a)("MuiMobileStepper",["root","positionBottom","positionTop","positionStatic","dots","dot","dotActive","progress"]);const Va=["activeStep","backButton","className","LinearProgressProps","nextButton","position","steps","variant"],Ka=Object(R.a)(X.a,{name:"MuiMobileStepper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e["position"+Object(St.a)(n.position)]]}})(({theme:t,ownerState:e})=>Object(L.a)({display:"flex",flexDirection:"row",justifyContent:"space-between",alignItems:"center",background:(t.vars||t).palette.background.default,padding:8},"bottom"===e.position&&{position:"fixed",bottom:0,left:0,right:0,zIndex:(t.vars||t).zIndex.mobileStepper},"top"===e.position&&{position:"fixed",top:0,left:0,right:0,zIndex:(t.vars||t).zIndex.mobileStepper})),Xa=Object(R.a)("div",{name:"MuiMobileStepper",slot:"Dots",overridesResolver:(t,e)=>e.dots})(({ownerState:t})=>Object(L.a)({},"dots"===t.variant&&{display:"flex",flexDirection:"row"})),Ja=Object(R.a)("div",{name:"MuiMobileStepper",slot:"Dot",shouldForwardProp:t=>Object(R.c)(t)&&"dotActive"!==t,overridesResolver:(t,e)=>{const{dotActive:n}=t;return[e.dot,n&&e.dotActive]}})(({theme:t,ownerState:e,dotActive:n})=>Object(L.a)({},"dots"===e.variant&&Object(L.a)({transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),backgroundColor:(t.vars||t).palette.action.disabled,borderRadius:"50%",width:8,height:8,margin:"0 2px"},n&&{backgroundColor:(t.vars||t).palette.primary.main}))),Ya=Object(R.a)(ma.a,{name:"MuiMobileStepper",slot:"Progress",overridesResolver:(t,e)=>e.progress})(({ownerState:t})=>Object(L.a)({},"progress"===t.variant&&{width:"50%"}));var Qa=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiMobileStepper"}),{activeStep:i=0,backButton:o,className:r,LinearProgressProps:s,nextButton:a,position:c="bottom",steps:l,variant:u="dots"}=n,h=Object(T.a)(n,Va),d=Object(L.a)({},n,{activeStep:i,position:c,variant:u}),p=(t=>{const{classes:e,position:n}=t,i={root:["root","position"+Object(St.a)(n)],dots:["dots"],dot:["dot"],dotActive:["dotActive"],progress:["progress"]};return Object(O.a)(i,Wa,e)})(d);return Object(q.jsxs)(Ka,Object(L.a)({square:!0,elevation:0,className:Object(w.a)(p.root,r),ref:e,ownerState:d},h,{children:[o,"text"===u&&Object(q.jsxs)(z.Fragment,{children:[i+1," / ",l]}),"dots"===u&&Object(q.jsx)(Xa,{ownerState:d,className:p.dots,children:[...new Array(l)].map((t,e)=>Object(q.jsx)(Ja,{className:Object(w.a)(p.dot,e===i&&p.dotActive),ownerState:d,dotActive:e===i},e))}),"progress"===u&&Object(q.jsx)(Ya,Object(L.a)({ownerState:d,className:p.progress,variant:"determinate",value:Math.ceil(i/(l-1)*100)},s)),a]}))})),Za=n(167),tc=n(187),ec=n(171),nc=n(95);const ic=["className","children","classes","IconComponent","input","inputProps","variant"],oc=["root"],rc=Object(q.jsx)(aa.a,{}),sc=z.forwardRef((function(t,e){const n=Object(A.a)({name:"MuiNativeSelect",props:t}),{className:i,children:o,classes:r={},IconComponent:s=An.a,input:a=rc,inputProps:c}=n,l=Object(T.a)(n,ic),u=Object(Ur.a)(),h=Object(Mr.a)({props:n,muiFormControl:u,states:["variant"]}),d=(t=>{const{classes:e}=t;return Object(O.a)({root:["root"]},nc.b,e)})(Object(L.a)({},n,{classes:r})),p=Object(T.a)(r,oc);return z.cloneElement(a,Object(L.a)({inputComponent:ec.a,inputProps:Object(L.a)({children:o,classes:p,IconComponent:s,variant:h.variant,type:void 0},c,a?a.props.inputProps:{}),ref:e},l,{className:Object(w.a)(d.root,a.props.className,i)}))}));sc.muiName="Select";var ac=sc;var cc=function(t){const{children:e,defer:n=!1,fallback:i=null}=t,[o,r]=z.useState(!1);return Object(oe.a)(()=>{n||r(!0)},[n]),z.useEffect(()=>{n&&r(!0)},[n]),Object(q.jsx)(z.Fragment,{children:o?e:i})},lc=n(414),uc=n(186);function hc(t){return Object(M.a)("MuiPagination",t)}var dc=Object(k.a)("MuiPagination",["root","ul","outlined","text"]);const pc=["boundaryCount","componentName","count","defaultPage","disabled","hideNextButton","hidePrevButton","onChange","page","showFirstButton","showLastButton","siblingCount"];function _c(t={}){const{boundaryCount:e=1,componentName:n="usePagination",count:i=1,defaultPage:o=1,disabled:r=!1,hideNextButton:s=!1,hidePrevButton:a=!1,onChange:c,page:l,showFirstButton:u=!1,showLastButton:h=!1,siblingCount:d=1}=t,p=Object(T.a)(t,pc),[_,m]=Object(Xt.a)({controlled:l,default:o,name:n,state:"page"}),f=(t,e)=>{l||m(e),c&&c(t,e)},g=(t,e)=>{const n=e-t+1;return Array.from({length:n},(e,n)=>t+n)},$=g(1,Math.min(e,i)),E=g(Math.max(i-e+1,e+1),i),y=Math.max(Math.min(_-d,i-e-2*d-1),e+2),b=Math.min(Math.max(_+d,e+2*d+2),E.length>0?E[0]-2:i-1),S=[...u?["first"]:[],...a?[]:["previous"],...$,...y>e+2?["start-ellipsis"]:e+1e?[i-e]:[],...E,...s?[]:["next"],...h?["last"]:[]],v=t=>{switch(t){case"first":return 1;case"previous":return _-1;case"next":return _+1;case"last":return i;default:return null}},C=S.map(t=>"number"==typeof t?{onClick:e=>{f(e,t)},type:"page",page:t,selected:t===_,disabled:r,"aria-current":t===_?"true":void 0}:{onClick:e=>{f(e,v(t))},type:t,page:v(t),selected:!1,disabled:r||-1===t.indexOf("ellipsis")&&("next"===t||"last"===t?_>=i:_<=1)});return Object(L.a)({items:C},p)}function mc(t){return Object(M.a)("MuiPaginationItem",t)}var fc=Object(k.a)("MuiPaginationItem",["root","page","sizeSmall","sizeLarge","text","textPrimary","textSecondary","outlined","outlinedPrimary","outlinedSecondary","rounded","ellipsis","firstLast","previousNext","focusVisible","disabled","selected","icon"]),gc=Object(Lt.a)(Object(q.jsx)("path",{d:"M18.41 16.59L13.82 12l4.59-4.59L17 6l-6 6 6 6zM6 6h2v12H6z"}),"FirstPage"),$c=Object(Lt.a)(Object(q.jsx)("path",{d:"M5.59 7.41L10.18 12l-4.59 4.59L7 18l6-6-6-6zM16 6h2v12h-2z"}),"LastPage"),Ec=Object(Lt.a)(Object(q.jsx)("path",{d:"M15.41 7.41L14 6l-6 6 6 6 1.41-1.41L10.83 12z"}),"NavigateBefore"),yc=Object(Lt.a)(Object(q.jsx)("path",{d:"M10 6L8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"}),"NavigateNext");const bc=["className","color","component","components","disabled","page","selected","shape","size","type","variant"],Sc=(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e["size"+Object(St.a)(n.size)],"text"===n.variant&&e["text"+Object(St.a)(n.color)],"outlined"===n.variant&&e["outlined"+Object(St.a)(n.color)],"rounded"===n.shape&&e.rounded,"page"===n.type&&e.page,("start-ellipsis"===n.type||"end-ellipsis"===n.type)&&e.ellipsis,("previous"===n.type||"next"===n.type)&&e.previousNext,("first"===n.type||"last"===n.type)&&e.firstLast]},vc=Object(R.a)("div",{name:"MuiPaginationItem",slot:"Root",overridesResolver:Sc})(({theme:t,ownerState:e})=>Object(L.a)({},t.typography.body2,{borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,height:"auto",["&."+fc.disabled]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"small"===e.size&&{minWidth:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===e.size&&{minWidth:40,borderRadius:20,padding:"0 10px",fontSize:t.typography.pxToRem(15)})),Cc=Object(R.a)(pt.a,{name:"MuiPaginationItem",slot:"Root",overridesResolver:Sc})(({theme:t,ownerState:e})=>Object(L.a)({},t.typography.body2,{borderRadius:16,textAlign:"center",boxSizing:"border-box",minWidth:32,height:32,padding:"0 6px",margin:"0 3px",color:(t.vars||t).palette.text.primary,["&."+fc.focusVisible]:{backgroundColor:(t.vars||t).palette.action.focus},["&."+fc.disabled]:{opacity:(t.vars||t).palette.action.disabledOpacity},transition:t.transitions.create(["color","background-color"],{duration:t.transitions.duration.short}),"&:hover":{backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&."+fc.selected]:{backgroundColor:(t.vars||t).palette.action.selected,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selected} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Object(bt.a)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(t.vars||t).palette.action.selected}},["&."+fc.focusVisible]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selected} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Object(bt.a)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},["&."+fc.disabled]:{opacity:1,color:(t.vars||t).palette.action.disabled,backgroundColor:(t.vars||t).palette.action.selected}}},"small"===e.size&&{minWidth:26,height:26,borderRadius:13,margin:"0 1px",padding:"0 4px"},"large"===e.size&&{minWidth:40,height:40,borderRadius:20,padding:"0 10px",fontSize:t.typography.pxToRem(15)},"rounded"===e.shape&&{borderRadius:(t.vars||t).shape.borderRadius}),({theme:t,ownerState:e})=>Object(L.a)({},"text"===e.variant&&{["&."+fc.selected]:Object(L.a)({},"standard"!==e.color&&{color:(t.vars||t).palette[e.color].contrastText,backgroundColor:(t.vars||t).palette[e.color].main,"&:hover":{backgroundColor:(t.vars||t).palette[e.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e.color].main}},["&."+fc.focusVisible]:{backgroundColor:(t.vars||t).palette[e.color].dark}},{["&."+fc.disabled]:{color:(t.vars||t).palette.action.disabled}})},"outlined"===e.variant&&{border:t.vars?`1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:"1px solid "+("light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)"),["&."+fc.selected]:Object(L.a)({},"standard"!==e.color&&{color:(t.vars||t).palette[e.color].main,border:"1px solid "+(t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / 0.5)`:Object(bt.a)(t.palette[e.color].main,.5)),backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.activatedOpacity})`:Object(bt.a)(t.palette[e.color].main,t.palette.action.activatedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / calc(${t.vars.palette.action.activatedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Object(bt.a)(t.palette[e.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&."+fc.focusVisible]:{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / calc(${t.vars.palette.action.activatedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Object(bt.a)(t.palette[e.color].main,t.palette.action.activatedOpacity+t.palette.action.focusOpacity)}},{["&."+fc.disabled]:{borderColor:(t.vars||t).palette.action.disabledBackground,color:(t.vars||t).palette.action.disabled}})})),Nc=Object(R.a)("div",{name:"MuiPaginationItem",slot:"Icon",overridesResolver:(t,e)=>e.icon})(({theme:t,ownerState:e})=>Object(L.a)({fontSize:t.typography.pxToRem(20),margin:"0 -8px"},"small"===e.size&&{fontSize:t.typography.pxToRem(18)},"large"===e.size&&{fontSize:t.typography.pxToRem(22)}));var Tc=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiPaginationItem"}),{className:i,color:o="standard",component:r,components:s={first:gc,last:$c,next:yc,previous:Ec},disabled:a=!1,page:c,selected:l=!1,shape:u="circular",size:h="medium",type:d="page",variant:p="text"}=n,_=Object(T.a)(n,bc),m=Object(L.a)({},n,{color:o,disabled:a,selected:l,shape:u,size:h,type:d,variant:p}),f=Object(D.default)(),g=(t=>{const{classes:e,color:n,disabled:i,selected:o,size:r,shape:s,type:a,variant:c}=t,l={root:["root","size"+Object(St.a)(r),c,s,"standard"!==n&&`${c}${Object(St.a)(n)}`,i&&"disabled",o&&"selected",{page:"page",first:"firstLast",last:"firstLast","start-ellipsis":"ellipsis","end-ellipsis":"ellipsis",previous:"previousNext",next:"previousNext"}[a]],icon:["icon"]};return Object(O.a)(l,mc,e)})(m),$=("rtl"===f.direction?{previous:s.next||yc,next:s.previous||Ec,last:s.first||gc,first:s.last||$c}:{previous:s.previous||Ec,next:s.next||yc,first:s.first||gc,last:s.last||$c})[d];return"start-ellipsis"===d||"end-ellipsis"===d?Object(q.jsx)(vc,{ref:e,ownerState:m,className:Object(w.a)(g.root,i),children:"…"}):Object(q.jsxs)(Cc,Object(L.a)({ref:e,ownerState:m,component:r,disabled:a,className:Object(w.a)(g.root,i)},_,{children:["page"===d&&c,$?Object(q.jsx)(Nc,{as:$,ownerState:m,className:g.icon}):null]}))}));const Lc=["boundaryCount","className","color","count","defaultPage","disabled","getItemAriaLabel","hideNextButton","hidePrevButton","onChange","page","renderItem","shape","showFirstButton","showLastButton","siblingCount","size","variant"],zc=Object(R.a)("nav",{name:"MuiPagination",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant]]}})({}),wc=Object(R.a)("ul",{name:"MuiPagination",slot:"Ul",overridesResolver:(t,e)=>e.ul})({display:"flex",flexWrap:"wrap",alignItems:"center",padding:0,margin:0,listStyle:"none"});function Oc(t,e,n){return"page"===t?`${n?"":"Go to "}page ${e}`:`Go to ${t} page`}var Rc=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiPagination"}),{boundaryCount:i=1,className:o,color:r="standard",count:s=1,defaultPage:a=1,disabled:c=!1,getItemAriaLabel:l=Oc,hideNextButton:u=!1,hidePrevButton:h=!1,renderItem:d=(t=>Object(q.jsx)(Tc,Object(L.a)({},t))),shape:p="circular",showFirstButton:_=!1,showLastButton:m=!1,siblingCount:f=1,size:g="medium",variant:$="text"}=n,E=Object(T.a)(n,Lc),{items:y}=_c(Object(L.a)({},n,{componentName:"Pagination"})),b=Object(L.a)({},n,{boundaryCount:i,color:r,count:s,defaultPage:a,disabled:c,getItemAriaLabel:l,hideNextButton:u,hidePrevButton:h,renderItem:d,shape:p,showFirstButton:_,showLastButton:m,siblingCount:f,size:g,variant:$}),S=(t=>{const{classes:e,variant:n}=t,i={root:["root",n],ul:["ul"]};return Object(O.a)(i,hc,e)})(b);return Object(q.jsx)(zc,Object(L.a)({"aria-label":"pagination navigation",className:Object(w.a)(S.root,o),ownerState:b,ref:e},E,{children:Object(q.jsx)(wc,{className:S.ul,ownerState:b,children:y.map((t,e)=>Object(q.jsx)("li",{children:d(Object(L.a)({},t,{color:r,"aria-label":l(t.type,t.page,t.selected),shape:p,size:g,variant:$}))},e))})}))})),Ac=n(64),xc=n(266),Ic=n(261),Uc=Object(Lt.a)(Object(q.jsx)("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm0 18c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),"RadioButtonUnchecked"),Dc=Object(Lt.a)(Object(q.jsx)("path",{d:"M8.465 8.465C9.37 7.56 10.62 7 12 7C14.76 7 17 9.24 17 12C17 13.38 16.44 14.63 15.535 15.535C14.63 16.44 13.38 17 12 17C9.24 17 7 14.76 7 12C7 10.62 7.56 9.37 8.465 8.465Z"}),"RadioButtonChecked");const Pc=Object(R.a)("span")({position:"relative",display:"flex"}),Mc=Object(R.a)(Uc)({transform:"scale(1)"}),kc=Object(R.a)(Dc)(({theme:t,ownerState:e})=>Object(L.a)({left:0,position:"absolute",transform:"scale(0)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeIn,duration:t.transitions.duration.shortest})},e.checked&&{transform:"scale(1)",transition:t.transitions.create("transform",{easing:t.transitions.easing.easeOut,duration:t.transitions.duration.shortest})}));var jc=function(t){const{checked:e=!1,classes:n={},fontSize:i}=t,o=Object(L.a)({},t,{checked:e});return Object(q.jsxs)(Pc,{className:n.root,ownerState:o,children:[Object(q.jsx)(Mc,{fontSize:i,className:n.background,ownerState:o}),Object(q.jsx)(kc,{fontSize:i,className:n.dot,ownerState:o})]})},Gc=n(333);var qc=z.createContext(void 0);function Fc(){return z.useContext(qc)}function Bc(t){return Object(M.a)("MuiRadio",t)}var Wc=Object(k.a)("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary"]);const Hc=["checked","checkedIcon","color","icon","name","onChange","size"],Vc=Object(R.a)(Io.a,{shouldForwardProp:t=>Object(R.b)(t)||"classes"===t,name:"MuiRadio",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e["color"+Object(St.a)(n.color)]]}})(({theme:t,ownerState:e})=>Object(L.a)({color:(t.vars||t).palette.text.secondary,"&:hover":{backgroundColor:t.vars?`rgba(${"default"===e.color?t.vars.palette.action.activeChannel:t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Object(bt.a)("default"===e.color?t.palette.action.active:t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==e.color&&{["&."+Wc.checked]:{color:(t.vars||t).palette[e.color].main}},{["&."+Wc.disabled]:{color:(t.vars||t).palette.action.disabled}}));const Kc=Object(q.jsx)(jc,{checked:!0}),Xc=Object(q.jsx)(jc,{});var Jc=z.forwardRef((function(t,e){var n,i;const o=Object(A.a)({props:t,name:"MuiRadio"}),{checked:r,checkedIcon:s=Kc,color:a="primary",icon:c=Xc,name:l,onChange:u,size:h="medium"}=o,d=Object(T.a)(o,Hc),p=Object(L.a)({},o,{color:a,size:h}),_=(t=>{const{classes:e,color:n}=t,i={root:["root","color"+Object(St.a)(n)]};return Object(L.a)({},e,Object(O.a)(i,Bc,e))})(p),m=Fc();let f=r;const g=Object(Gc.a)(u,m&&m.onChange);let $=l;var E,y;return m&&(void 0===f&&(E=m.value,f="object"==typeof(y=o.value)&&null!==y?E===y:String(E)===String(y)),void 0===$&&($=m.name)),Object(q.jsx)(Vc,Object(L.a)({type:"radio",icon:z.cloneElement(c,{fontSize:null!=(n=Xc.props.fontSize)?n:h}),checkedIcon:z.cloneElement(s,{fontSize:null!=(i=Kc.props.fontSize)?i:h}),ownerState:p,classes:_,name:$,checked:f,onChange:g,ref:e},d))})),Yc=n(115);const Qc=["actions","children","defaultValue","name","onChange","value"];var Zc=z.forwardRef((function(t,e){const{actions:n,children:i,defaultValue:o,name:r,onChange:s,value:a}=t,c=Object(T.a)(t,Qc),l=z.useRef(null),[u,h]=Object(Y.a)({controlled:a,default:o,name:"RadioGroup"});z.useImperativeHandle(n,()=>({focus:()=>{let t=l.current.querySelector("input:not(:disabled):checked");t||(t=l.current.querySelector("input:not(:disabled)")),t&&t.focus()}}),[]);const d=Object(P.a)(e,l),p=Object(Yc.a)(r);return Object(q.jsx)(qc.Provider,{value:{name:p,onChange:t=>{h(t.target.value),s&&s(t,t.target.value)},value:u},children:Object(q.jsx)(Hr,Object(L.a)({role:"radiogroup",ref:d},c,{children:i}))})}));var tl={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},el=Object(Lt.a)(Object(q.jsx)("path",{d:"M12 17.27L18.18 21l-1.64-7.03L22 9.24l-7.19-.61L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21z"}),"Star"),nl=Object(Lt.a)(Object(q.jsx)("path",{d:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}),"StarBorder");function il(t){return Object(M.a)("MuiRating",t)}var ol=Object(k.a)("MuiRating",["root","sizeSmall","sizeMedium","sizeLarge","readOnly","disabled","focusVisible","visuallyHidden","pristine","label","labelEmptyValueActive","icon","iconEmpty","iconFilled","iconHover","iconFocus","iconActive","decimal"]);const rl=["value"],sl=["className","defaultValue","disabled","emptyIcon","emptyLabelText","getLabelText","highlightSelectedOnly","icon","IconContainerComponent","max","name","onChange","onChangeActive","onMouseLeave","onMouseMove","precision","readOnly","size","value"];function al(t,e){if(null==t)return t;const n=Math.round(t/e)*e;return Number(n.toFixed(function(t){const e=t.toString().split(".")[1];return e?e.length:0}(e)))}const cl=Object(R.a)("span",{name:"MuiRating",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{["& ."+ol.visuallyHidden]:e.visuallyHidden},e.root,e["size"+Object(St.a)(n.size)],n.readOnly&&e.readOnly]}})(({theme:t,ownerState:e})=>Object(L.a)({display:"inline-flex",position:"relative",fontSize:t.typography.pxToRem(24),color:"#faaf00",cursor:"pointer",textAlign:"left",WebkitTapHighlightColor:"transparent",["&."+ol.disabled]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${ol.focusVisible} .${ol.iconActive}`]:{outline:"1px solid #999"},["& ."+ol.visuallyHidden]:tl},"small"===e.size&&{fontSize:t.typography.pxToRem(18)},"large"===e.size&&{fontSize:t.typography.pxToRem(30)},e.readOnly&&{pointerEvents:"none"})),ll=Object(R.a)("label",{name:"MuiRating",slot:"Label",overridesResolver:(t,e)=>e.label})(({ownerState:t})=>Object(L.a)({cursor:"inherit"},t.emptyValueFocused&&{top:0,bottom:0,position:"absolute",outline:"1px solid #999",width:"100%"})),ul=Object(R.a)("span",{name:"MuiRating",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,n.iconEmpty&&e.iconEmpty,n.iconFilled&&e.iconFilled,n.iconHover&&e.iconHover,n.iconFocus&&e.iconFocus,n.iconActive&&e.iconActive]}})(({theme:t,ownerState:e})=>Object(L.a)({display:"flex",transition:t.transitions.create("transform",{duration:t.transitions.duration.shortest}),pointerEvents:"none"},e.iconActive&&{transform:"scale(1.2)"},e.iconEmpty&&{color:(t.vars||t).palette.action.disabled})),hl=Object(R.a)("span",{name:"MuiRating",slot:"Decimal",shouldForwardProp:t=>Object(R.c)(t)&&"iconActive"!==t,overridesResolver:(t,e)=>{const{iconActive:n}=t;return[e.decimal,n&&e.iconActive]}})(({iconActive:t})=>Object(L.a)({position:"relative"},t&&{transform:"scale(1.2)"}));function dl(t){const e=Object(T.a)(t,rl);return Object(q.jsx)("span",Object(L.a)({},e))}function pl(t){const{classes:e,disabled:n,emptyIcon:i,focus:o,getLabelText:r,highlightSelectedOnly:s,hover:a,icon:c,IconContainerComponent:l,isActive:u,itemValue:h,labelProps:d,name:p,onBlur:_,onChange:m,onClick:f,onFocus:g,readOnly:$,ownerState:E,ratingValue:y,ratingValueRounded:b}=t,S=s?h===y:h<=y,v=h<=a,C=h<=o,N=h===b,T=Object(Yc.a)(),O=Object(q.jsx)(ul,{as:l,value:h,className:Object(w.a)(e.icon,S?e.iconFilled:e.iconEmpty,v&&e.iconHover,C&&e.iconFocus,u&&e.iconActive),ownerState:Object(L.a)({},E,{iconEmpty:!S,iconFilled:S,iconHover:v,iconFocus:C,iconActive:u}),children:i&&!S?i:c});return $?Object(q.jsx)("span",Object(L.a)({},d,{children:O})):Object(q.jsxs)(z.Fragment,{children:[Object(q.jsxs)(ll,Object(L.a)({ownerState:Object(L.a)({},E,{emptyValueFocused:void 0}),htmlFor:T},d,{children:[O,Object(q.jsx)("span",{className:e.visuallyHidden,children:r(h)})]})),Object(q.jsx)("input",{className:e.visuallyHidden,onFocus:g,onBlur:_,onChange:m,onClick:f,disabled:n,value:h,id:T,type:"radio",name:p,checked:N})]})}const _l=Object(q.jsx)(el,{fontSize:"inherit"}),ml=Object(q.jsx)(nl,{fontSize:"inherit"});function fl(t){return`${t} Star${1!==t?"s":""}`}var gl=z.forwardRef((function(t,e){const n=Object(A.a)({name:"MuiRating",props:t}),{className:i,defaultValue:o=null,disabled:r=!1,emptyIcon:s=ml,emptyLabelText:a="Empty",getLabelText:c=fl,highlightSelectedOnly:l=!1,icon:u=_l,IconContainerComponent:h=dl,max:d=5,name:p,onChange:_,onChangeActive:m,onMouseLeave:f,onMouseMove:g,precision:$=1,readOnly:E=!1,size:y="medium",value:b}=n,S=Object(T.a)(n,sl),v=Object(Yc.a)(p),[C,N]=Object(Y.a)({controlled:b,default:o,name:"Rating"}),R=al(C,$),x=Object(D.default)(),[{hover:I,focus:U},M]=z.useState({hover:-1,focus:-1});let k=R;-1!==I&&(k=I),-1!==U&&(k=U);const{isFocusVisibleRef:j,onBlur:G,onFocus:F,ref:B}=Object(ga.a)(),[W,H]=z.useState(!1),V=z.useRef(),K=Object(P.a)(B,V),X=Object(P.a)(K,e),J=t=>{let e=""===t.target.value?null:parseFloat(t.target.value);-1!==I&&(e=I),N(e),_&&_(t,e)},Q=t=>{0===t.clientX&&0===t.clientY||(M({hover:-1,focus:-1}),N(null),_&&parseFloat(t.target.value)===R&&_(t,null))},Z=t=>{F(t),!0===j.current&&H(!0);const e=parseFloat(t.target.value);M(t=>({hover:t.hover,focus:e}))},tt=t=>{if(-1!==I)return;G(t),!1===j.current&&H(!1);M(t=>({hover:t.hover,focus:-1}))},[et,nt]=z.useState(!1),it=Object(L.a)({},n,{defaultValue:o,disabled:r,emptyIcon:s,emptyLabelText:a,emptyValueFocused:et,focusVisible:W,getLabelText:c,icon:u,IconContainerComponent:h,max:d,precision:$,readOnly:E,size:y}),ot=(t=>{const{classes:e,size:n,readOnly:i,disabled:o,emptyValueFocused:r,focusVisible:s}=t,a={root:["root","size"+Object(St.a)(n),o&&"disabled",s&&"focusVisible",i&&"readyOnly"],label:["label","pristine"],labelEmptyValue:[r&&"labelEmptyValueActive"],icon:["icon"],iconEmpty:["iconEmpty"],iconFilled:["iconFilled"],iconHover:["iconHover"],iconFocus:["iconFocus"],iconActive:["iconActive"],decimal:["decimal"],visuallyHidden:["visuallyHidden"]};return Object(O.a)(a,il,e)})(it);return Object(q.jsxs)(cl,Object(L.a)({ref:X,onMouseMove:t=>{g&&g(t);const e=V.current,{right:n,left:i}=e.getBoundingClientRect(),{width:o}=e.firstChild.getBoundingClientRect();let r;r="rtl"===x.direction?(n-t.clientX)/(o*d):(t.clientX-i)/(o*d);let s=al(d*r+$/2,$);s=function(t,e,n){return tn?n:t}(s,$,d),M(t=>t.hover===s&&t.focus===s?t:{hover:s,focus:s}),H(!1),m&&I!==s&&m(t,s)},onMouseLeave:t=>{f&&f(t);M({hover:-1,focus:-1}),m&&-1!==I&&m(t,-1)},className:Object(w.a)(ot.root,i),ownerState:it,role:E?"img":null,"aria-label":E?c(k):null},S,{children:[Array.from(new Array(d)).map((t,e)=>{const n=e+1,i={classes:ot,disabled:r,emptyIcon:s,focus:U,getLabelText:c,highlightSelectedOnly:l,hover:I,icon:u,IconContainerComponent:h,name:v,onBlur:tt,onChange:J,onClick:Q,onFocus:Z,ratingValue:k,ratingValueRounded:R,readOnly:E,ownerState:it},o=n===Math.ceil(k)&&(-1!==I||-1!==U);if($<1){const t=Array.from(new Array(1/$));return Object(q.jsx)(hl,{className:Object(w.a)(ot.decimal,o&&ot.iconActive),ownerState:it,iconActive:o,children:t.map((e,o)=>{const r=al(n-1+(o+1)*$,$);return Object(q.jsx)(pl,Object(L.a)({},i,{isActive:!1,itemValue:r,labelProps:{style:t.length-1===o?{}:{width:r===k?(o+1)*$*100+"%":"0%",overflow:"hidden",position:"absolute"}}}),r)})},n)}return Object(q.jsx)(pl,Object(L.a)({},i,{isActive:o,itemValue:n}),n)}),!E&&!r&&Object(q.jsxs)(ll,{className:Object(w.a)(ot.label,ot.labelEmptyValue),ownerState:it,children:[Object(q.jsx)("input",{className:ot.visuallyHidden,value:"",id:v+"-empty",type:"radio",name:v,checked:null==R,onFocus:()=>nt(!0),onBlur:()=>nt(!1),onChange:J}),Object(q.jsx)("span",{className:ot.visuallyHidden,children:a})]})]}))}));function $l(t){return Object(M.a)("MuiScopedCssBaseline",t)}var El=Object(k.a)("MuiScopedCssBaseline",["root"]);const yl=["className","component","enableColorScheme"],bl=Object(R.a)("div",{name:"MuiScopedCssBaseline",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t,ownerState:e})=>Object(L.a)({},Object(cr.c)(t,e.enableColorScheme),Object(cr.a)(t),{"& *, & *::before, & *::after":{boxSizing:"inherit"},"& strong, & b":{fontWeight:t.typography.fontWeightBold}}));var Sl=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiScopedCssBaseline"}),{className:i,component:o="div"}=n,r=Object(T.a)(n,yl),s=Object(L.a)({},n,{component:o}),a=(t=>{const{classes:e}=t;return Object(O.a)({root:["root"]},$l,e)})(s);return Object(q.jsx)(bl,Object(L.a)({as:o,className:Object(w.a)(a.root,i),ref:e,ownerState:s},r))})),vl=n(415),Cl=n(262),Nl=n(54),Tl=n(110);function Ll(t){return Object(M.a)("MuiSkeleton",t)}var zl=Object(k.a)("MuiSkeleton",["root","text","rectangular","rounded","circular","pulse","wave","withChildren","fitContent","heightAuto"]);const wl=["animation","className","component","height","style","variant","width"];let Ol,Rl,Al,xl,Il=t=>t;const Ul=Object(Nl.c)(Ol||(Ol=Il` 0% { opacity: 1; } 50% { opacity: 0.4; } 100% { opacity: 1; } `)),Dl=Object(Nl.c)(Rl||(Rl=Il` 0% { transform: translateX(-100%); } 50% { /* +0.5s of delay between each loop */ transform: translateX(100%); } 100% { transform: translateX(100%); } `)),Pl=Object(R.a)("span",{name:"MuiSkeleton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],!1!==n.animation&&e[n.animation],n.hasChildren&&e.withChildren,n.hasChildren&&!n.width&&e.fitContent,n.hasChildren&&!n.height&&e.heightAuto]}})(({theme:t,ownerState:e})=>{const n=Object(Tl.d)(t.shape.borderRadius)||"px",i=Object(Tl.g)(t.shape.borderRadius);return Object(L.a)({display:"block",backgroundColor:t.vars?t.vars.palette.Skeleton.bg:Object(bt.a)(t.palette.text.primary,"light"===t.palette.mode?.11:.13),height:"1.2em"},"text"===e.variant&&{marginTop:0,marginBottom:0,height:"auto",transformOrigin:"0 55%",transform:"scale(1, 0.60)",borderRadius:`${i}${n}/${Math.round(i/.6*10)/10}${n}`,"&:empty:before":{content:'"\\00a0"'}},"circular"===e.variant&&{borderRadius:"50%"},"rounded"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius},e.hasChildren&&{"& > *":{visibility:"hidden"}},e.hasChildren&&!e.width&&{maxWidth:"fit-content"},e.hasChildren&&!e.height&&{height:"auto"})},({ownerState:t})=>"pulse"===t.animation&&Object(Nl.b)(Al||(Al=Il` animation: ${0} 1.5s ease-in-out 0.5s infinite; `),Ul),({ownerState:t,theme:e})=>"wave"===t.animation&&Object(Nl.b)(xl||(xl=Il` position: relative; overflow: hidden; /* Fix bug in Safari https://bugs.webkit.org/show_bug.cgi?id=68196 */ -webkit-mask-image: -webkit-radial-gradient(white, black); &::after { animation: ${0} 1.6s linear 0.5s infinite; background: linear-gradient( 90deg, transparent, ${0}, transparent ); content: ''; position: absolute; transform: translateX(-100%); /* Avoid flash during server-side hydration */ bottom: 0; left: 0; right: 0; top: 0; } `),Dl,(e.vars||e).palette.action.hover));var Ml=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiSkeleton"}),{animation:i="pulse",className:o,component:r="span",height:s,style:a,variant:c="text",width:l}=n,u=Object(T.a)(n,wl),h=Object(L.a)({},n,{animation:i,component:r,variant:c,hasChildren:Boolean(u.children)}),d=(t=>{const{classes:e,variant:n,animation:i,hasChildren:o,width:r,height:s}=t,a={root:["root",n,i,o&&"withChildren",o&&!r&&"fitContent",o&&!s&&"heightAuto"]};return Object(O.a)(a,Ll,e)})(h);return Object(q.jsx)(Pl,Object(L.a)({as:r,ref:e,className:Object(w.a)(d.root,o),ownerState:h},u,{style:Object(L.a)({width:l,height:s},a)}))})),kl=n(1027);function jl(t){return Object(M.a)("MuiSlider",t)}var Gl=Object(k.a)("MuiSlider",["root","active","focusVisible","disabled","dragging","marked","vertical","trackInverted","trackFalse","rail","track","mark","markActive","markLabel","markLabelActive","thumb","valueLabel","valueLabelOpen","valueLabelCircle","valueLabelLabel"]);function ql(t){const{children:e,className:n,value:i,theme:o}=t,r=(t=>{const{open:e}=t;return{offset:Object(w.a)(e&&Gl.valueLabelOpen),circle:Gl.valueLabelCircle,label:Gl.valueLabelLabel}})(t);return z.cloneElement(e,{className:Object(w.a)(e.props.className)},Object(q.jsxs)(z.Fragment,{children:[e.props.children,Object(q.jsx)("span",{className:Object(w.a)(r.offset,n),theme:o,"aria-hidden":!0,children:Object(q.jsx)("span",{className:r.circle,children:Object(q.jsx)("span",{className:r.label,children:i})})})]}))}var Fl=n(1021);function Bl(t,e){return t-e}function Wl(t,e,n){return null==t?e:Math.min(Math.max(e,t),n)}function Hl(t,e){var n;const{index:i}=null!=(n=t.reduce((t,n,i)=>{const o=Math.abs(e-n);return null===t||o({left:t+"%"}),leap:t=>({width:t+"%"})},"horizontal-reverse":{offset:t=>({right:t+"%"}),leap:t=>({width:t+"%"})},vertical:{offset:t=>({bottom:t+"%"}),leap:t=>({height:t+"%"})}},Zl=t=>t;let tu;function eu(){return void 0===tu&&(tu="undefined"==typeof CSS||"function"!=typeof CSS.supports||CSS.supports("touch-action","none")),tu}const nu=["aria-label","aria-valuetext","className","component","classes","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","scale","step","tabIndex","track","value","valueLabelDisplay","valueLabelFormat","isRtl","components","componentsProps"],iu=t=>t,ou=({children:t})=>t;var ru=z.forwardRef((function(t,e){var n,i,o,r,s,a,c;const{"aria-label":l,"aria-valuetext":u,className:h,component:d,classes:p,disableSwap:_=!1,disabled:m=!1,getAriaLabel:f,getAriaValueText:g,marks:$=!1,max:E=100,min:y=0,orientation:b="horizontal",scale:S=iu,step:v=1,track:C="normal",valueLabelDisplay:N="off",valueLabelFormat:R=iu,isRtl:A=!1,components:x={},componentsProps:I={}}=t,U=Object(T.a)(t,nu),D=Object(L.a)({},t,{marks:$,classes:p,disabled:m,isRtl:A,max:E,min:y,orientation:b,scale:S,step:v,track:C,valueLabelDisplay:N,valueLabelFormat:R}),{axisProps:P,getRootProps:M,getHiddenInputProps:k,getThumbProps:j,open:G,active:F,axis:B,range:W,focusedThumbIndex:H,dragging:V,marks:K,values:X,trackOffset:J,trackLeap:Y}=function(t){const{"aria-labelledby":e,defaultValue:n,disabled:i=!1,disableSwap:o=!1,isRtl:r=!1,marks:s=!1,max:a=100,min:c=0,name:l,onChange:u,onChangeCommitted:h,orientation:d="horizontal",ref:p,scale:_=Zl,step:m=1,tabIndex:f,value:g}=t,$=z.useRef(),[E,y]=z.useState(-1),[b,S]=z.useState(-1),[v,C]=z.useState(!1),N=z.useRef(0),[T,w]=Object(Xt.a)({controlled:g,default:null!=n?n:c,name:"Slider"}),O=u&&((t,e,n)=>{const i=t.nativeEvent||t,o=new i.constructor(i.type,i);Object.defineProperty(o,"target",{writable:!0,value:{value:e,name:l}}),u(o,e,n)}),R=Array.isArray(T);let A=R?T.slice().sort(Bl):[T];A=A.map(t=>Wl(t,c,a));const x=!0===s&&null!==m?[...Array(Math.floor((a-c)/m)+1)].map((t,e)=>({value:c+m*e})):s||[],I=x.map(t=>t.value),{isFocusVisibleRef:U,onBlur:D,onFocus:P,ref:M}=Object(Fl.a)(),[k,j]=z.useState(-1),G=z.useRef(),q=Object(ie.a)(M,G),F=Object(ie.a)(p,q),B=t=>e=>{var n;const i=Number(e.currentTarget.getAttribute("data-index"));P(e),!0===U.current&&j(i),S(i),null==t||null==(n=t.onFocus)||n.call(t,e)},W=t=>e=>{var n;D(e),!1===U.current&&j(-1),S(-1),null==t||null==(n=t.onBlur)||n.call(t,e)};Object(oe.a)(()=>{var t;i&&G.current.contains(document.activeElement)&&(null==(t=document.activeElement)||t.blur())},[i]),i&&-1!==E&&y(-1),i&&-1!==k&&j(-1);const H=t=>e=>{var n;null==(n=t.onChange)||n.call(t,e);const i=Number(e.currentTarget.getAttribute("data-index")),r=A[i],s=I.indexOf(r);let l=e.target.valueAsNumber;if(x&&null==m&&(l=l{const{current:i}=G,{width:r,height:s,bottom:l,left:u}=i.getBoundingClientRect();let h,d;if(h=0===K.indexOf("vertical")?(l-t.y)/s:(t.x-u)/r,-1!==K.indexOf("-reverse")&&(h=1-h),d=function(t,e,n){return(n-e)*t+e}(h,c,a),m)d=Xl(d,m,c);else{const t=Hl(I,d);d=I[t]}d=Wl(d,c,a);let p=0;if(R){p=e?V.current:Hl(n,d),o&&(d=Wl(d,n[p-1]||-1/0,n[p+1]||1/0));const t=d;d=Jl({values:n,newValue:d,index:p}),o&&e||(p=d.indexOf(t),V.current=p)}return{newValue:d,activeIndex:p}},J=Object(Jt.a)(t=>{const e=Vl(t,$);if(!e)return;if(N.current+=1,"mousemove"===t.type&&0===t.buttons)return void Y(t);const{newValue:n,activeIndex:i}=X({finger:e,move:!0,values:A});Yl({sliderRef:G,activeIndex:i,setActive:y}),w(n),!v&&N.current>2&&C(!0),O&&O(t,n,i)}),Y=Object(Jt.a)(t=>{const e=Vl(t,$);if(C(!1),!e)return;const{newValue:n}=X({finger:e,move:!0,values:A});y(-1),"touchend"===t.type&&S(-1),h&&h(t,n),$.current=void 0,Z()}),Q=Object(Jt.a)(t=>{if(i)return;eu()||t.preventDefault();const e=t.changedTouches[0];null!=e&&($.current=e.identifier);const n=Vl(t,$);if(!1!==n){const{newValue:e,activeIndex:i}=X({finger:n,values:A});Yl({sliderRef:G,activeIndex:i,setActive:y}),w(e),O&&O(t,e,i)}N.current=0;const o=Object(re.a)(G.current);o.addEventListener("touchmove",J),o.addEventListener("touchend",Y)}),Z=z.useCallback(()=>{const t=Object(re.a)(G.current);t.removeEventListener("mousemove",J),t.removeEventListener("mouseup",Y),t.removeEventListener("touchmove",J),t.removeEventListener("touchend",Y)},[Y,J]);z.useEffect(()=>{const{current:t}=G;return t.addEventListener("touchstart",Q,{passive:eu()}),()=>{t.removeEventListener("touchstart",Q,{passive:eu()}),Z()}},[Z,Q]),z.useEffect(()=>{i&&Z()},[i,Z]);const tt=t=>e=>{var n;if(null==(n=t.onMouseDown)||n.call(t,e),i)return;if(e.defaultPrevented)return;if(0!==e.button)return;e.preventDefault();const o=Vl(e,$);if(!1!==o){const{newValue:t,activeIndex:n}=X({finger:o,values:A});Yl({sliderRef:G,activeIndex:n,setActive:y}),w(t),O&&O(e,t,n)}N.current=0;const r=Object(re.a)(G.current);r.addEventListener("mousemove",J),r.addEventListener("mouseup",Y)},et=Kl(R?A[0]:c,c,a),nt=Kl(A[A.length-1],c,a)-et,it=t=>e=>{var n;null==(n=t.onMouseOver)||n.call(t,e);const i=Number(e.currentTarget.getAttribute("data-index"));S(i)},ot=t=>e=>{var n;null==(n=t.onMouseLeave)||n.call(t,e),S(-1)};return{active:E,axis:K,axisProps:Ql,dragging:v,focusedThumbIndex:k,getHiddenInputProps:(n={})=>{var o;const s={onChange:H(n||{}),onFocus:B(n||{}),onBlur:W(n||{})},u=Object(L.a)({},n,s);return Object(L.a)({tabIndex:f,"aria-labelledby":e,"aria-orientation":d,"aria-valuemax":_(a),"aria-valuemin":_(c),name:l,type:"range",min:t.min,max:t.max,step:null!=(o=t.step)?o:void 0,disabled:i},u,{style:Object(L.a)({},tl,{direction:r?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:(t={})=>{const e={onMouseDown:tt(t||{})},n=Object(L.a)({},t,e);return Object(L.a)({ref:F},n)},getThumbProps:(t={})=>{const e={onMouseOver:it(t||{}),onMouseLeave:ot(t||{})};return Object(L.a)({},t,e)},marks:x,open:b,range:R,trackLeap:nt,trackOffset:et,values:A}}(Object(L.a)({},D,{ref:e}));D.marked=K.length>0&&K.some(t=>t.label),D.dragging=V,D.focusedThumbIndex=H;const Q=(t=>{const{disabled:e,dragging:n,marked:i,orientation:o,track:r,classes:s}=t,a={root:["root",e&&"disabled",n&&"dragging",i&&"marked","vertical"===o&&"vertical","inverted"===r&&"trackInverted",!1===r&&"trackFalse"],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",e&&"disabled"],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Object(O.a)(a,jl,s)})(D),Z=null!=(n=null!=d?d:x.Root)?n:"span",tt=Object(dn.a)({elementType:Z,getSlotProps:M,externalSlotProps:I.root,externalForwardedProps:U,ownerState:D,className:[Q.root,h]}),et=null!=(i=x.Rail)?i:"span",nt=Object(dn.a)({elementType:et,externalSlotProps:I.rail,ownerState:D,className:Q.rail}),it=null!=(o=x.Track)?o:"span",ot=Object(dn.a)({elementType:it,externalSlotProps:I.track,additionalProps:{style:Object(L.a)({},P[B].offset(J),P[B].leap(Y))},ownerState:D,className:Q.track}),rt=null!=(r=x.Thumb)?r:"span",st=Object(dn.a)({elementType:rt,getSlotProps:j,externalSlotProps:I.thumb,ownerState:D}),at=null!=(s=x.ValueLabel)?s:ql,ct=Object(dn.a)({elementType:at,externalSlotProps:I.valueLabel,ownerState:D}),lt=null!=(a=x.Mark)?a:"span",ut=Object(dn.a)({elementType:lt,externalSlotProps:I.mark,ownerState:D,className:Q.mark}),ht=null!=(c=x.MarkLabel)?c:"span",dt=Object(dn.a)({elementType:ht,externalSlotProps:I.markLabel,ownerState:D}),pt=x.Input||"input",_t=Object(dn.a)({elementType:pt,getSlotProps:k,externalSlotProps:I.input,ownerState:D});return Object(q.jsxs)(Z,Object(L.a)({},tt,{children:[Object(q.jsx)(et,Object(L.a)({},nt)),Object(q.jsx)(it,Object(L.a)({},ot)),K.filter(t=>t.value>=y&&t.value<=E).map((t,e)=>{const n=Kl(t.value,y,E),i=P[B].offset(n);let o;return o=!1===C?-1!==X.indexOf(t.value):"normal"===C&&(W?t.value>=X[0]&&t.value<=X[X.length-1]:t.value<=X[0])||"inverted"===C&&(W?t.value<=X[0]||t.value>=X[X.length-1]:t.value>=X[0]),Object(q.jsxs)(z.Fragment,{children:[Object(q.jsx)(lt,Object(L.a)({"data-index":e},ut,!Object(di.a)(lt)&&{markActive:o},{style:Object(L.a)({},i,ut.style),className:Object(w.a)(ut.className,o&&Q.markActive)})),null!=t.label?Object(q.jsx)(ht,Object(L.a)({"aria-hidden":!0,"data-index":e},dt,!Object(di.a)(ht)&&{markLabelActive:o},{style:Object(L.a)({},i,dt.style),className:Object(w.a)(Q.markLabel,dt.className,o&&Q.markLabelActive),children:t.label})):null]},t.value)}),X.map((t,e)=>{const n=Kl(t,y,E),i=P[B].offset(n),o="off"===N?ou:at;return Object(q.jsx)(z.Fragment,{children:Object(q.jsx)(o,Object(L.a)({},!Object(di.a)(o)&&{valueLabelFormat:R,valueLabelDisplay:N,value:"function"==typeof R?R(S(t),e):R,index:e,open:G===e||F===e||"on"===N,disabled:m},ct,{className:Object(w.a)(Q.valueLabel,ct.className),children:Object(q.jsx)(rt,Object(L.a)({"data-index":e,"data-focusvisible":H===e},st,{className:Object(w.a)(Q.thumb,st.className,F===e&&Q.active,H===e&&Q.focusVisible),style:Object(L.a)({},i,{pointerEvents:_&&F!==e?"none":void 0},st.style),children:Object(q.jsx)(pt,Object(L.a)({"data-index":e,"aria-label":f?f(e):l,"aria-valuenow":S(t),"aria-valuetext":g?g(S(t),e):u,value:X[e]},_t))}))}))},e)})]}))}));const su=["component","components","componentsProps","color","size"],au=Object(L.a)({},Gl,Object(k.a)("MuiSlider",["colorPrimary","colorSecondary","thumbColorPrimary","thumbColorSecondary","sizeSmall","thumbSizeSmall"])),cu=Object(R.a)("span",{name:"MuiSlider",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e["color"+Object(St.a)(n.color)],"medium"!==n.size&&e["size"+Object(St.a)(n.size)],n.marked&&e.marked,"vertical"===n.orientation&&e.vertical,"inverted"===n.track&&e.trackInverted,!1===n.track&&e.trackFalse]}})(({theme:t,ownerState:e})=>Object(L.a)({borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",color:(t.vars||t).palette[e.color].main,WebkitTapHighlightColor:"transparent"},"horizontal"===e.orientation&&Object(L.a)({height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}},"small"===e.size&&{height:2},e.marked&&{marginBottom:20}),"vertical"===e.orientation&&Object(L.a)({height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}},"small"===e.size&&{width:2},e.marked&&{marginRight:44}),{"@media print":{colorAdjust:"exact"},["&."+au.disabled]:{pointerEvents:"none",cursor:"default",color:(t.vars||t).palette.grey[400]},["&."+au.dragging]:{[`& .${au.thumb}, & .${au.track}`]:{transition:"none"}}})),lu=Object(R.a)("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(t,e)=>e.rail})(({ownerState:t})=>Object(L.a)({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38},"horizontal"===t.orientation&&{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===t.orientation&&{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"},"inverted"===t.track&&{opacity:1})),uu=Object(R.a)("span",{name:"MuiSlider",slot:"Track",overridesResolver:(t,e)=>e.track})(({theme:t,ownerState:e})=>{const n="light"===t.palette.mode?Object(bt.j)(t.palette[e.color].main,.62):Object(bt.c)(t.palette[e.color].main,.5);return Object(L.a)({display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:t.transitions.create(["left","width","bottom","height"],{duration:t.transitions.duration.shortest})},"small"===e.size&&{border:"none"},"horizontal"===e.orientation&&{height:"inherit",top:"50%",transform:"translateY(-50%)"},"vertical"===e.orientation&&{width:"inherit",left:"50%",transform:"translateX(-50%)"},!1===e.track&&{display:"none"},"inverted"===e.track&&{backgroundColor:t.vars?t.vars.palette.Slider[e.color+"Track"]:n,borderColor:t.vars?t.vars.palette.Slider[e.color+"Track"]:n})}),hu=Object(R.a)("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.thumb,e["thumbColor"+Object(St.a)(n.color)],"medium"!==n.size&&e["thumbSize"+Object(St.a)(n.size)]]}})(({theme:t,ownerState:e})=>Object(L.a)({position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:t.transitions.create(["box-shadow","left","bottom"],{duration:t.transitions.duration.shortest})},"small"===e.size&&{width:12,height:12},"horizontal"===e.orientation&&{top:"50%",transform:"translate(-50%, -50%)"},"vertical"===e.orientation&&{left:"50%",transform:"translate(-50%, 50%)"},{"&:before":Object(L.a)({position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(t.vars||t).shadows[2]},"small"===e.size&&{boxShadow:"none"}),"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},["&:hover, &."+au.focusVisible]:{boxShadow:"0px 0px 0px 8px "+(t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / 0.16)`:Object(bt.a)(t.palette[e.color].main,.16)),"@media (hover: none)":{boxShadow:"none"}},["&."+au.active]:{boxShadow:"0px 0px 0px 14px "+(t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / 0.16)`:Object(bt.a)(t.palette[e.color].main,.16))},["&."+au.disabled]:{"&:hover":{boxShadow:"none"}}})),du=Object(R.a)(ql,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(t,e)=>e.valueLabel})(({theme:t,ownerState:e})=>Object(L.a)({["&."+au.valueLabelOpen]:{transform:"translateY(-100%) scale(1)"},zIndex:1,whiteSpace:"nowrap"},t.typography.body2,{fontWeight:500,transition:t.transitions.create(["transform"],{duration:t.transitions.duration.shortest}),transform:"translateY(-100%) scale(0)",position:"absolute",backgroundColor:(t.vars||t).palette.grey[600],borderRadius:2,color:(t.vars||t).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem"},"horizontal"===e.orientation&&{top:"-10px",transformOrigin:"bottom center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"}},"vertical"===e.orientation&&{right:"30px",top:"24px",transformOrigin:"right center","&:before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",right:"-20%",top:"25%"}},"small"===e.size&&{fontSize:t.typography.pxToRem(12),padding:"0.25rem 0.5rem"})),pu=Object(R.a)("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:t=>Object(R.c)(t)&&"markActive"!==t,overridesResolver:(t,e)=>e.mark})(({theme:t,ownerState:e,markActive:n})=>Object(L.a)({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor"},"horizontal"===e.orientation&&{top:"50%",transform:"translate(-1px, -50%)"},"vertical"===e.orientation&&{left:"50%",transform:"translate(-50%, 1px)"},n&&{backgroundColor:(t.vars||t).palette.background.paper,opacity:.8})),_u=Object(R.a)("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:t=>Object(R.c)(t)&&"markLabelActive"!==t,overridesResolver:(t,e)=>e.markLabel})(({theme:t,ownerState:e,markLabelActive:n})=>Object(L.a)({},t.typography.body2,{color:(t.vars||t).palette.text.secondary,position:"absolute",whiteSpace:"nowrap"},"horizontal"===e.orientation&&{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}},"vertical"===e.orientation&&{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}},n&&{color:(t.vars||t).palette.text.primary}));var mu=z.forwardRef((function(t,e){var n,i,o,r;const s=Object(A.a)({props:t,name:"MuiSlider"}),a="rtl"===Object(D.default)().direction,{component:c="span",components:l={},componentsProps:u={},color:h="primary",size:d="medium"}=s,p=Object(T.a)(s,su),_=(t=>{const{color:e,size:n,classes:i={}}=t;return Object(L.a)({},i,{root:Object(w.a)(i.root,jl("color"+Object(St.a)(e)),i["color"+Object(St.a)(e)],n&&[jl("size"+Object(St.a)(n)),i["size"+Object(St.a)(n)]]),thumb:Object(w.a)(i.thumb,jl("thumbColor"+Object(St.a)(e)),i["thumbColor"+Object(St.a)(e)],n&&[jl("thumbSize"+Object(St.a)(n)),i["thumbSize"+Object(St.a)(n)]])})})(Object(L.a)({},s,{color:h,size:d}));return Object(q.jsx)(ru,Object(L.a)({},p,{isRtl:a,components:Object(L.a)({Root:cu,Rail:lu,Track:uu,Thumb:hu,ValueLabel:du,Mark:pu,MarkLabel:_u},l),componentsProps:Object(L.a)({},u,{root:Object(L.a)({},u.root,pi(l.Root)&&{as:c,ownerState:Object(L.a)({},null==(n=u.root)?void 0:n.ownerState,{color:h,size:d})}),thumb:Object(L.a)({},u.thumb,pi(l.Thumb)&&{ownerState:Object(L.a)({},null==(i=u.thumb)?void 0:i.ownerState,{color:h,size:d})}),track:Object(L.a)({},u.track,pi(l.Track)&&{ownerState:Object(L.a)({},null==(o=u.track)?void 0:o.ownerState,{color:h,size:d})}),valueLabel:Object(L.a)({},u.valueLabel,pi(l.ValueLabel)&&{ownerState:Object(L.a)({},null==(r=u.valueLabel)?void 0:r.ownerState,{color:h,size:d})})}),classes:_,ref:e}))})),fu=n(655),gu=n(303),$u=n(411),Eu=n(329);const yu=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],bu={entering:{transform:"none"},entered:{transform:"none"}};var Su=z.forwardRef((function(t,e){const n=Object(D.default)(),i={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:o,appear:r=!0,children:s,easing:a,in:c,onEnter:l,onEntered:u,onEntering:h,onExit:d,onExited:p,onExiting:_,style:m,timeout:f=i,TransitionComponent:g=x.a}=t,$=Object(T.a)(t,yu),E=z.useRef(null),y=Object(P.a)(s.ref,e),b=Object(P.a)(E,y),S=t=>e=>{if(t){const n=E.current;void 0===e?t(n):t(n,e)}},v=S(h),C=S((t,e)=>{Object(U.b)(t);const i=Object(U.a)({style:m,timeout:f,easing:a},{mode:"enter"});t.style.webkitTransition=n.transitions.create("transform",i),t.style.transition=n.transitions.create("transform",i),l&&l(t,e)}),N=S(u),w=S(_),O=S(t=>{const e=Object(U.a)({style:m,timeout:f,easing:a},{mode:"exit"});t.style.webkitTransition=n.transitions.create("transform",e),t.style.transition=n.transitions.create("transform",e),d&&d(t)}),R=S(p);return Object(q.jsx)(g,Object(L.a)({appear:r,in:c,nodeRef:E,onEnter:C,onEntered:N,onEntering:v,onExit:O,onExited:R,onExiting:w,addEndListener:t=>{o&&o(E.current,t)},timeout:f},$,{children:(t,e)=>z.cloneElement(s,Object(L.a)({style:Object(L.a)({transform:"scale(0)",visibility:"exited"!==t||c?void 0:"hidden"},bu[t],m,s.props.style),ref:b},e))}))}));function vu(t){return Object(M.a)("MuiSpeedDial",t)}var Cu=Object(k.a)("MuiSpeedDial",["root","fab","directionUp","directionDown","directionLeft","directionRight","actions","actionsClosed"]);const Nu=["ref"],Tu=["ariaLabel","FabProps","children","className","direction","hidden","icon","onBlur","onClose","onFocus","onKeyDown","onMouseEnter","onMouseLeave","onOpen","open","openIcon","TransitionComponent","transitionDuration","TransitionProps"],Lu=["ref"];function zu(t){return"up"===t||"down"===t?"vertical":"right"===t||"left"===t?"horizontal":void 0}const wu=Object(R.a)("div",{name:"MuiSpeedDial",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e["direction"+Object(St.a)(n.direction)]]}})(({theme:t,ownerState:e})=>Object(L.a)({zIndex:(t.vars||t).zIndex.speedDial,display:"flex",alignItems:"center",pointerEvents:"none"},"up"===e.direction&&{flexDirection:"column-reverse",["& ."+Cu.actions]:{flexDirection:"column-reverse",marginBottom:-32,paddingBottom:48}},"down"===e.direction&&{flexDirection:"column",["& ."+Cu.actions]:{flexDirection:"column",marginTop:-32,paddingTop:48}},"left"===e.direction&&{flexDirection:"row-reverse",["& ."+Cu.actions]:{flexDirection:"row-reverse",marginRight:-32,paddingRight:48}},"right"===e.direction&&{flexDirection:"row",["& ."+Cu.actions]:{flexDirection:"row",marginLeft:-32,paddingLeft:48}})),Ou=Object(R.a)(zr.a,{name:"MuiSpeedDial",slot:"Fab",overridesResolver:(t,e)=>e.fab})(()=>({pointerEvents:"auto"})),Ru=Object(R.a)("div",{name:"MuiSpeedDial",slot:"Actions",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.actions,!n.open&&e.actionsClosed]}})(({ownerState:t})=>Object(L.a)({display:"flex",pointerEvents:"auto"},!t.open&&{transition:"top 0s linear 0.2s",pointerEvents:"none"}));var Au=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiSpeedDial"}),i=Object(D.default)(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{ariaLabel:r,FabProps:{ref:s}={},children:a,className:c,direction:l="up",hidden:u=!1,icon:h,onBlur:d,onClose:p,onFocus:_,onKeyDown:m,onMouseEnter:f,onMouseLeave:g,onOpen:$,open:E,TransitionComponent:y=Su,transitionDuration:b=o,TransitionProps:S}=n,v=Object(T.a)(n.FabProps,Nu),C=Object(T.a)(n,Tu),[N,R]=Object(Y.a)({controlled:E,default:!1,name:"SpeedDial",state:"open"}),x=Object(L.a)({},n,{open:N,direction:l}),I=(t=>{const{classes:e,open:n,direction:i}=t,o={root:["root","direction"+Object(St.a)(i)],fab:["fab"],actions:["actions",!n&&"actionsClosed"]};return Object(O.a)(o,vu,e)})(x),U=z.useRef();z.useEffect(()=>()=>{clearTimeout(U.current)},[]);const M=z.useRef(0),k=z.useRef(),j=z.useRef([]);j.current=[j.current[0]];const G=z.useCallback(t=>{j.current[0]=t},[]),F=Object(P.a)(s,G),B=(t,e)=>n=>{j.current[t+1]=n,e&&e(n)};z.useEffect(()=>{N||(M.current=0,k.current=void 0)},[N]);const W=t=>{"mouseleave"===t.type&&g&&g(t),"blur"===t.type&&d&&d(t),clearTimeout(U.current),"blur"===t.type?U.current=setTimeout(()=>{R(!1),p&&p(t,"blur")}):(R(!1),p&&p(t,"mouseLeave"))},H=t=>{"mouseenter"===t.type&&f&&f(t),"focus"===t.type&&_&&_(t),clearTimeout(U.current),N||(U.current=setTimeout(()=>{if(R(!0),$){$(t,{focus:"focus",mouseenter:"mouseEnter"}[t.type])}}))},V=r.replace(/^[^a-z]+|[^\w:.-]+/gi,""),K=z.Children.toArray(a).filter(t=>z.isValidElement(t)),X=K.map((t,e)=>{const n=t.props,{FabProps:{ref:i}={},tooltipPlacement:o}=n,r=Object(T.a)(n.FabProps,Lu),s=o||("vertical"===zu(l)?"left":"top");return z.cloneElement(t,{FabProps:Object(L.a)({},r,{ref:B(e,i)}),delay:30*(N?e:K.length-e),open:N,tooltipPlacement:s,id:`${V}-action-${e}`})});return Object(q.jsxs)(wu,Object(L.a)({className:Object(w.a)(I.root,c),ref:e,role:"presentation",onKeyDown:t=>{m&&m(t);const e=t.key.replace("Arrow","").toLowerCase(),{current:n=e}=k;if("Escape"===t.key)return R(!1),j.current[0].focus(),void(p&&p(t,"escapeKeyDown"));if(zu(e)===zu(n)&&void 0!==zu(e)){t.preventDefault();const s=e===n?1:-1,a=(i=M.current+s,o=0,r=j.current.length-1,ir?r:i);j.current[a].focus(),M.current=a,k.current=n}var i,o,r},onBlur:W,onFocus:H,onMouseEnter:H,onMouseLeave:W,ownerState:x},C,{children:[Object(q.jsx)(y,Object(L.a)({in:!u,timeout:b,unmountOnExit:!0},S,{children:Object(q.jsx)(Ou,Object(L.a)({color:"primary","aria-label":r,"aria-haspopup":"true","aria-expanded":N,"aria-controls":V+"-actions"},v,{onClick:t=>{v.onClick&&v.onClick(t),clearTimeout(U.current),N?(R(!1),p&&p(t,"toggle")):(R(!0),$&&$(t,"toggle"))},className:Object(w.a)(I.fab,v.className),ref:F,ownerState:x,children:z.isValidElement(h)&&Object(Hs.a)(h,["SpeedDialIcon"])?z.cloneElement(h,{open:N}):h}))})),Object(q.jsx)(Ru,{id:V+"-actions",role:"menu","aria-orientation":zu(l),className:Object(w.a)(I.actions,!N&&I.actionsClosed),ownerState:x,children:X})]}))})),xu=n(729),Iu=n(43);function Uu(t){return Object(M.a)("MuiTooltip",t)}var Du=Object(k.a)("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]);const Pu=["arrow","children","classes","components","componentsProps","describeChild","disableFocusListener","disableHoverListener","disableInteractive","disableTouchListener","enterDelay","enterNextDelay","enterTouchDelay","followCursor","id","leaveDelay","leaveTouchDelay","onClose","onOpen","open","placement","PopperComponent","PopperProps","title","TransitionComponent","TransitionProps"];const Mu=Object(R.a)(bn,{name:"MuiTooltip",slot:"Popper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.popper,!n.disableInteractive&&e.popperInteractive,n.arrow&&e.popperArrow,!n.open&&e.popperClose]}})(({theme:t,ownerState:e,open:n})=>Object(L.a)({zIndex:(t.vars||t).zIndex.tooltip,pointerEvents:"none"},!e.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},e.arrow&&{['&[data-popper-placement*="bottom"] .'+Du.arrow]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},['&[data-popper-placement*="top"] .'+Du.arrow]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},['&[data-popper-placement*="right"] .'+Du.arrow]:Object(L.a)({},e.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),['&[data-popper-placement*="left"] .'+Du.arrow]:Object(L.a)({},e.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),ku=Object(R.a)("div",{name:"MuiTooltip",slot:"Tooltip",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.tooltip,n.touch&&e.touch,n.arrow&&e.tooltipArrow,e["tooltipPlacement"+Object(St.a)(n.placement.split("-")[0])]]}})(({theme:t,ownerState:e})=>{return Object(L.a)({backgroundColor:t.vars?t.vars.palette.Tooltip.bg:Object(bt.a)(t.palette.grey[700],.92),borderRadius:(t.vars||t).shape.borderRadius,color:(t.vars||t).palette.common.white,fontFamily:t.typography.fontFamily,padding:"4px 8px",fontSize:t.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:t.typography.fontWeightMedium},e.arrow&&{position:"relative",margin:0},e.touch&&{padding:"8px 16px",fontSize:t.typography.pxToRem(14),lineHeight:(n=16/14,Math.round(1e5*n)/1e5)+"em",fontWeight:t.typography.fontWeightRegular},{[`.${Du.popper}[data-popper-placement*="left"] &`]:Object(L.a)({transformOrigin:"right center"},e.isRtl?Object(L.a)({marginLeft:"14px"},e.touch&&{marginLeft:"24px"}):Object(L.a)({marginRight:"14px"},e.touch&&{marginRight:"24px"})),[`.${Du.popper}[data-popper-placement*="right"] &`]:Object(L.a)({transformOrigin:"left center"},e.isRtl?Object(L.a)({marginRight:"14px"},e.touch&&{marginRight:"24px"}):Object(L.a)({marginLeft:"14px"},e.touch&&{marginLeft:"24px"})),[`.${Du.popper}[data-popper-placement*="top"] &`]:Object(L.a)({transformOrigin:"center bottom",marginBottom:"14px"},e.touch&&{marginBottom:"24px"}),[`.${Du.popper}[data-popper-placement*="bottom"] &`]:Object(L.a)({transformOrigin:"center top",marginTop:"14px"},e.touch&&{marginTop:"24px"})});var n}),ju=Object(R.a)("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(t,e)=>e.arrow})(({theme:t})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:t.vars?t.vars.palette.Tooltip.bg:Object(bt.a)(t.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let Gu=!1,qu=null;function Fu(t,e){return n=>{e&&e(n),t(n)}}var Bu=z.forwardRef((function(t,e){var n,i,o,r,s,a;const c=Object(A.a)({props:t,name:"MuiTooltip"}),{arrow:l=!1,children:u,components:h={},componentsProps:d={},describeChild:p=!1,disableFocusListener:_=!1,disableHoverListener:m=!1,disableInteractive:f=!1,disableTouchListener:g=!1,enterDelay:$=100,enterNextDelay:E=0,enterTouchDelay:y=700,followCursor:b=!1,id:S,leaveDelay:v=0,leaveTouchDelay:C=1500,onClose:N,onOpen:R,open:x,placement:I="bottom",PopperComponent:U,PopperProps:M={},title:k,TransitionComponent:j=$s.a,TransitionProps:G}=c,F=Object(T.a)(c,Pu),B=Object(D.default)(),W="rtl"===B.direction,[H,V]=z.useState(),[K,X]=z.useState(null),J=z.useRef(!1),Q=f||b,Z=z.useRef(),tt=z.useRef(),et=z.useRef(),nt=z.useRef(),[it,ot]=Object(Y.a)({controlled:x,default:!1,name:"Tooltip",state:"open"});let rt=it;const st=Object(Yc.a)(S),at=z.useRef(),ct=z.useCallback(()=>{void 0!==at.current&&(document.body.style.WebkitUserSelect=at.current,at.current=void 0),clearTimeout(nt.current)},[]);z.useEffect(()=>()=>{clearTimeout(Z.current),clearTimeout(tt.current),clearTimeout(et.current),ct()},[ct]);const lt=t=>{clearTimeout(qu),Gu=!0,ot(!0),R&&!rt&&R(t)},ut=Object(Iu.a)(t=>{clearTimeout(qu),qu=setTimeout(()=>{Gu=!1},800+v),ot(!1),N&&rt&&N(t),clearTimeout(Z.current),Z.current=setTimeout(()=>{J.current=!1},B.transitions.duration.shortest)}),ht=t=>{J.current&&"touchstart"!==t.type||(H&&H.removeAttribute("title"),clearTimeout(tt.current),clearTimeout(et.current),$||Gu&&E?tt.current=setTimeout(()=>{lt(t)},Gu?E:$):lt(t))},dt=t=>{clearTimeout(tt.current),clearTimeout(et.current),et.current=setTimeout(()=>{ut(t)},v)},{isFocusVisibleRef:pt,onBlur:_t,onFocus:mt,ref:ft}=Object(ga.a)(),[,gt]=z.useState(!1),$t=t=>{_t(t),!1===pt.current&&(gt(!1),dt(t))},Et=t=>{H||V(t.currentTarget),mt(t),!0===pt.current&&(gt(!0),ht(t))},yt=t=>{J.current=!0;const e=u.props;e.onTouchStart&&e.onTouchStart(t)},bt=ht,vt=dt,Ct=t=>{yt(t),clearTimeout(et.current),clearTimeout(Z.current),ct(),at.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",nt.current=setTimeout(()=>{document.body.style.WebkitUserSelect=at.current,ht(t)},y)},Nt=t=>{u.props.onTouchEnd&&u.props.onTouchEnd(t),ct(),clearTimeout(et.current),et.current=setTimeout(()=>{ut(t)},C)};z.useEffect(()=>{if(rt)return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)};function t(t){"Escape"!==t.key&&"Esc"!==t.key||ut(t)}},[ut,rt]);const Tt=Object(P.a)(V,e),Lt=Object(P.a)(ft,Tt),zt=Object(P.a)(u.ref,Lt);""===k&&(rt=!1);const wt=z.useRef({x:0,y:0}),Ot=z.useRef(),Rt={},At="string"==typeof k;p?(Rt.title=rt||!At||m?null:k,Rt["aria-describedby"]=rt?st:null):(Rt["aria-label"]=At?k:null,Rt["aria-labelledby"]=rt&&!At?st:null);const xt=Object(L.a)({},Rt,F,u.props,{className:Object(w.a)(F.className,u.props.className),onTouchStart:yt,ref:zt},b?{onMouseMove:t=>{const e=u.props;e.onMouseMove&&e.onMouseMove(t),wt.current={x:t.clientX,y:t.clientY},Ot.current&&Ot.current.update()}}:{});const It={};g||(xt.onTouchStart=Ct,xt.onTouchEnd=Nt),m||(xt.onMouseOver=Fu(bt,xt.onMouseOver),xt.onMouseLeave=Fu(vt,xt.onMouseLeave),Q||(It.onMouseOver=bt,It.onMouseLeave=vt)),_||(xt.onFocus=Fu(Et,xt.onFocus),xt.onBlur=Fu($t,xt.onBlur),Q||(It.onFocus=Et,It.onBlur=$t));const Ut=z.useMemo(()=>{var t;let e=[{name:"arrow",enabled:Boolean(K),options:{element:K,padding:4}}];return null!=(t=M.popperOptions)&&t.modifiers&&(e=e.concat(M.popperOptions.modifiers)),Object(L.a)({},M.popperOptions,{modifiers:e})},[K,M]),Dt=Object(L.a)({},c,{isRtl:W,arrow:l,disableInteractive:Q,placement:I,PopperComponentProp:U,touch:J.current}),Pt=(t=>{const{classes:e,disableInteractive:n,arrow:i,touch:o,placement:r}=t,s={popper:["popper",!n&&"popperInteractive",i&&"popperArrow"],tooltip:["tooltip",i&&"tooltipArrow",o&&"touch","tooltipPlacement"+Object(St.a)(r.split("-")[0])],arrow:["arrow"]};return Object(O.a)(s,Uu,e)})(Dt),Mt=null!=(n=h.Popper)?n:Mu,kt=null!=(i=null!=(o=h.Transition)?o:j)?i:$s.a,jt=null!=(r=h.Tooltip)?r:ku,Gt=null!=(s=h.Arrow)?s:ju,qt=Object(xu.a)(Mt,Object(L.a)({},M,d.popper),Dt),Ft=Object(xu.a)(kt,Object(L.a)({},G,d.transition),Dt),Bt=Object(xu.a)(jt,Object(L.a)({},d.tooltip),Dt),Wt=Object(xu.a)(Gt,Object(L.a)({},d.arrow),Dt);return Object(q.jsxs)(z.Fragment,{children:[z.cloneElement(u,xt),Object(q.jsx)(Mt,Object(L.a)({as:null!=U?U:bn,placement:I,anchorEl:b?{getBoundingClientRect:()=>({top:wt.current.y,left:wt.current.x,right:wt.current.x,bottom:wt.current.y,width:0,height:0})}:H,popperRef:Ot,open:!!H&&rt,id:st,transition:!0},It,qt,{className:Object(w.a)(Pt.popper,null==M?void 0:M.className,null==(a=d.popper)?void 0:a.className),popperOptions:Ut,children:({TransitionProps:t})=>{var e,n;return Object(q.jsx)(kt,Object(L.a)({timeout:B.transitions.duration.shorter},t,Ft,{children:Object(q.jsxs)(jt,Object(L.a)({},Bt,{className:Object(w.a)(Pt.tooltip,null==(e=d.tooltip)?void 0:e.className),children:[k,l?Object(q.jsx)(Gt,Object(L.a)({},Wt,{className:Object(w.a)(Pt.arrow,null==(n=d.arrow)?void 0:n.className),ref:X})):null]}))}))}}))]})}));function Wu(t){return Object(M.a)("MuiSpeedDialAction",t)}var Hu=Object(k.a)("MuiSpeedDialAction",["fab","fabClosed","staticTooltip","staticTooltipClosed","staticTooltipLabel","tooltipPlacementLeft","tooltipPlacementRight"]);const Vu=["className","delay","FabProps","icon","id","open","TooltipClasses","tooltipOpen","tooltipPlacement","tooltipTitle"],Ku=Object(R.a)(zr.a,{name:"MuiSpeedDialAction",slot:"Fab",skipVariantsResolver:!1,overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.fab,!n.open&&e.fabClosed]}})(({theme:t,ownerState:e})=>Object(L.a)({margin:8,color:(t.vars||t).palette.text.secondary,backgroundColor:(t.vars||t).palette.background.paper,"&:hover":{backgroundColor:t.vars?t.vars.palette.SpeedDialAction.fabHoverBg:Object(bt.e)(t.palette.background.paper,.15)},transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter})+", opacity 0.8s",opacity:1},!e.open&&{opacity:0,transform:"scale(0)"})),Xu=Object(R.a)("span",{name:"MuiSpeedDialAction",slot:"StaticTooltip",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.staticTooltip,!n.open&&e.staticTooltipClosed,e["tooltipPlacement"+Object(St.a)(n.tooltipPlacement)]]}})(({theme:t,ownerState:e})=>({position:"relative",display:"flex",alignItems:"center",["& ."+Hu.staticTooltipLabel]:Object(L.a)({transition:t.transitions.create(["transform","opacity"],{duration:t.transitions.duration.shorter}),opacity:1},!e.open&&{opacity:0,transform:"scale(0.5)"},"left"===e.tooltipPlacement&&{transformOrigin:"100% 50%",right:"100%",marginRight:8},"right"===e.tooltipPlacement&&{transformOrigin:"0% 50%",left:"100%",marginLeft:8})})),Ju=Object(R.a)("span",{name:"MuiSpeedDialAction",slot:"StaticTooltipLabel",overridesResolver:(t,e)=>e.staticTooltipLabel})(({theme:t})=>Object(L.a)({position:"absolute"},t.typography.body1,{backgroundColor:(t.vars||t).palette.background.paper,borderRadius:(t.vars||t).shape.borderRadius,boxShadow:(t.vars||t).shadows[1],color:(t.vars||t).palette.text.secondary,padding:"4px 16px",wordBreak:"keep-all"}));var Yu=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiSpeedDialAction"}),{className:i,delay:o=0,FabProps:r={},icon:s,id:a,open:c,TooltipClasses:l,tooltipOpen:u=!1,tooltipPlacement:h="left",tooltipTitle:d}=n,p=Object(T.a)(n,Vu),_=Object(L.a)({},n,{tooltipPlacement:h}),m=(t=>{const{open:e,tooltipPlacement:n,classes:i}=t,o={fab:["fab",!e&&"fabClosed"],staticTooltip:["staticTooltip","tooltipPlacement"+Object(St.a)(n),!e&&"staticTooltipClosed"],staticTooltipLabel:["staticTooltipLabel"]};return Object(O.a)(o,Wu,i)})(_),[f,g]=z.useState(u),$={transitionDelay:o+"ms"},E=Object(q.jsx)(Ku,Object(L.a)({size:"small",className:Object(w.a)(m.fab,i),tabIndex:-1,role:"menuitem",ownerState:_},r,{style:Object(L.a)({},$,r.style),children:s}));return u?Object(q.jsxs)(Xu,Object(L.a)({id:a,ref:e,className:m.staticTooltip,ownerState:_},p,{children:[Object(q.jsx)(Ju,{style:$,id:a+"-label",className:m.staticTooltipLabel,ownerState:_,children:d}),z.cloneElement(E,{"aria-labelledby":a+"-label"})]})):(!c&&f&&g(!1),Object(q.jsx)(Bu,Object(L.a)({id:a,ref:e,title:d,placement:h,onClose:()=>{g(!1)},onOpen:()=>{g(!0)},open:c&&f,classes:l},p,{children:E})))})),Qu=Object(Lt.a)(Object(q.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6v2z"}),"Add");function Zu(t){return Object(M.a)("MuiSpeedDialIcon",t)}var th=Object(k.a)("MuiSpeedDialIcon",["root","icon","iconOpen","iconWithOpenIconOpen","openIcon","openIconOpen"]);const eh=["className","icon","open","openIcon"],nh=Object(R.a)("span",{name:"MuiSpeedDialIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{["& ."+th.icon]:e.icon},{["& ."+th.icon]:n.open&&e.iconOpen},{["& ."+th.icon]:n.open&&n.openIcon&&e.iconWithOpenIconOpen},{["& ."+th.openIcon]:e.openIcon},{["& ."+th.openIcon]:n.open&&e.openIconOpen},e.root]}})(({theme:t,ownerState:e})=>({height:24,["& ."+th.icon]:Object(L.a)({transition:t.transitions.create(["transform","opacity"],{duration:t.transitions.duration.short})},e.open&&Object(L.a)({transform:"rotate(45deg)"},e.openIcon&&{opacity:0})),["& ."+th.openIcon]:Object(L.a)({position:"absolute",transition:t.transitions.create(["transform","opacity"],{duration:t.transitions.duration.short}),opacity:0,transform:"rotate(-45deg)"},e.open&&{transform:"rotate(0deg)",opacity:1})})),ih=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiSpeedDialIcon"}),{className:i,icon:o,openIcon:r}=n,s=Object(T.a)(n,eh),a=n,c=(t=>{const{classes:e,open:n,openIcon:i}=t,o={root:["root"],icon:["icon",n&&"iconOpen",i&&n&&"iconWithOpenIconOpen"],openIcon:["openIcon",n&&"openIconOpen"]};return Object(O.a)(o,Zu,e)})(a);function l(t,e){return z.isValidElement(t)?z.cloneElement(t,{className:e}):t}return Object(q.jsxs)(nh,Object(L.a)({className:Object(w.a)(c.root,i),ref:e,ownerState:a},s,{children:[r?l(r,c.openIcon):null,o?l(o,c.icon):Object(q.jsx)(Qu,{className:c.icon})]}))}));ih.muiName="SpeedDialIcon";var oh=ih,rh=n(59),sh=n(68),ah=n(227);const ch=["component","direction","spacing","divider","children"];function lh(t,e){const n=z.Children.toArray(t).filter(Boolean);return n.reduce((t,i,o)=>(t.push(i),o[e.root]})(({ownerState:t,theme:e})=>{let n=Object(L.a)({display:"flex",flexDirection:"column"},Object(rh.b)({theme:e},Object(rh.e)({values:t.direction,breakpoints:e.breakpoints.values}),t=>({flexDirection:t})));if(t.spacing){const i=Object(sh.a)(e),o=Object.keys(e.breakpoints.values).reduce((e,n)=>(("object"==typeof t.spacing&&null!=t.spacing[n]||"object"==typeof t.direction&&null!=t.direction[n])&&(e[n]=!0),e),{}),r=Object(rh.e)({values:t.direction,base:o}),s=Object(rh.e)({values:t.spacing,base:o});"object"==typeof r&&Object.keys(r).forEach((t,e,n)=>{if(!r[t]){const i=e>0?r[n[e-1]]:"column";r[t]=i}});const a=(e,n)=>{return{"& > :not(style) + :not(style)":{margin:0,["margin"+(o=n?r[n]:t.direction,{row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"}[o])]:Object(sh.d)(i,e)}};var o};n=Object(ah.a)(n,Object(rh.b)({theme:e},s,a))}return n=Object(rh.c)(e.breakpoints,n),n});var hh=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiStack"}),i=Object(zi.a)(n),{component:o="div",direction:r="column",spacing:s=0,divider:a,children:c}=i,l=Object(T.a)(i,ch),u={direction:r,spacing:s};return Object(q.jsx)(uh,Object(L.a)({as:o,ownerState:u,ref:e},l,{children:a?lh(c,a):c}))}));const dh=z.createContext({});function ph(){return z.useContext(dh)}var _h=dh;const mh=z.createContext({});function fh(){return z.useContext(mh)}var gh=mh;function $h(t){return Object(M.a)("MuiStep",t)}var Eh=Object(k.a)("MuiStep",["root","horizontal","vertical","alternativeLabel","completed"]);const yh=["active","children","className","completed","disabled","expanded","index","last"],bh=Object(R.a)("div",{name:"MuiStep",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.orientation],n.alternativeLabel&&e.alternativeLabel,n.completed&&e.completed]}})(({ownerState:t})=>Object(L.a)({},"horizontal"===t.orientation&&{paddingLeft:8,paddingRight:8},t.alternativeLabel&&{flex:1,position:"relative"}));var Sh=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiStep"}),{active:i,children:o,className:r,completed:s,disabled:a,expanded:c=!1,index:l,last:u}=n,h=Object(T.a)(n,yh),{activeStep:d,connector:p,alternativeLabel:_,orientation:m,nonLinear:f}=z.useContext(_h);let[g=!1,$=!1,E=!1]=[i,s,a];d===l?g=void 0===i||i:!f&&d>l?$=void 0===s||s:!f&&d({index:l,last:u,expanded:c,icon:l+1,active:g,completed:$,disabled:E}),[l,u,c,g,$,E]),b=Object(L.a)({},n,{active:g,orientation:m,alternativeLabel:_,completed:$,disabled:E,expanded:c}),S=(t=>{const{classes:e,orientation:n,alternativeLabel:i,completed:o}=t,r={root:["root",n,i&&"alternativeLabel",o&&"completed"]};return Object(O.a)(r,$h,e)})(b),v=Object(q.jsxs)(bh,Object(L.a)({className:Object(w.a)(S.root,r),ref:e,ownerState:b},h,{children:[p&&_&&0!==l?p:null,o]}));return Object(q.jsx)(gh.Provider,{value:y,children:p&&!_&&0!==l?Object(q.jsxs)(z.Fragment,{children:[p,v]}):v})})),vh=Object(Lt.a)(Object(q.jsx)("path",{d:"M12 0a12 12 0 1 0 0 24 12 12 0 0 0 0-24zm-2 17l-5-5 1.4-1.4 3.6 3.6 7.6-7.6L19 8l-9 9z"}),"CheckCircle"),Ch=Object(Lt.a)(Object(q.jsx)("path",{d:"M1 21h22L12 2 1 21zm12-3h-2v-2h2v2zm0-4h-2v-4h2v4z"}),"Warning"),Nh=n(338);function Th(t){return Object(M.a)("MuiStepIcon",t)}var Lh,zh=Object(k.a)("MuiStepIcon",["root","active","completed","error","text"]);const wh=["active","className","completed","error","icon"],Oh=Object(R.a)(Nh.a,{name:"MuiStepIcon",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({display:"block",transition:t.transitions.create("color",{duration:t.transitions.duration.shortest}),color:(t.vars||t).palette.text.disabled,["&."+zh.completed]:{color:(t.vars||t).palette.primary.main},["&."+zh.active]:{color:(t.vars||t).palette.primary.main},["&."+zh.error]:{color:(t.vars||t).palette.error.main}})),Rh=Object(R.a)("text",{name:"MuiStepIcon",slot:"Text",overridesResolver:(t,e)=>e.text})(({theme:t})=>({fill:(t.vars||t).palette.primary.contrastText,fontSize:t.typography.caption.fontSize,fontFamily:t.typography.fontFamily}));var Ah=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiStepIcon"}),{active:i=!1,className:o,completed:r=!1,error:s=!1,icon:a}=n,c=Object(T.a)(n,wh),l=Object(L.a)({},n,{active:i,completed:r,error:s}),u=(t=>{const{classes:e,active:n,completed:i,error:o}=t,r={root:["root",n&&"active",i&&"completed",o&&"error"],text:["text"]};return Object(O.a)(r,Th,e)})(l);if("number"==typeof a||"string"==typeof a){const t=Object(w.a)(o,u.root);return s?Object(q.jsx)(Oh,Object(L.a)({as:Ch,className:t,ref:e,ownerState:l},c)):r?Object(q.jsx)(Oh,Object(L.a)({as:vh,className:t,ref:e,ownerState:l},c)):Object(q.jsxs)(Oh,Object(L.a)({className:t,ref:e,ownerState:l},c,{children:[Lh||(Lh=Object(q.jsx)("circle",{cx:"12",cy:"12",r:"12"})),Object(q.jsx)(Rh,{className:u.text,x:"12",y:"12",textAnchor:"middle",dominantBaseline:"central",ownerState:l,children:a})]}))}return a}));function xh(t){return Object(M.a)("MuiStepLabel",t)}var Ih=Object(k.a)("MuiStepLabel",["root","horizontal","vertical","label","active","completed","error","disabled","iconContainer","alternativeLabel","labelContainer"]);const Uh=["children","className","componentsProps","error","icon","optional","StepIconComponent","StepIconProps"],Dh=Object(R.a)("span",{name:"MuiStepLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.orientation]]}})(({ownerState:t})=>Object(L.a)({display:"flex",alignItems:"center",["&."+Ih.alternativeLabel]:{flexDirection:"column"},["&."+Ih.disabled]:{cursor:"default"}},"vertical"===t.orientation&&{textAlign:"left",padding:"8px 0"})),Ph=Object(R.a)("span",{name:"MuiStepLabel",slot:"Label",overridesResolver:(t,e)=>e.label})(({theme:t})=>Object(L.a)({},t.typography.body2,{display:"block",transition:t.transitions.create("color",{duration:t.transitions.duration.shortest}),["&."+Ih.active]:{color:(t.vars||t).palette.text.primary,fontWeight:500},["&."+Ih.completed]:{color:(t.vars||t).palette.text.primary,fontWeight:500},["&."+Ih.alternativeLabel]:{textAlign:"center",marginTop:16},["&."+Ih.error]:{color:(t.vars||t).palette.error.main}})),Mh=Object(R.a)("span",{name:"MuiStepLabel",slot:"IconContainer",overridesResolver:(t,e)=>e.iconContainer})(()=>({flexShrink:0,display:"flex",paddingRight:8,["&."+Ih.alternativeLabel]:{paddingRight:0}})),kh=Object(R.a)("span",{name:"MuiStepLabel",slot:"LabelContainer",overridesResolver:(t,e)=>e.labelContainer})(({theme:t})=>({width:"100%",color:(t.vars||t).palette.text.secondary})),jh=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiStepLabel"}),{children:i,className:o,componentsProps:r={},error:s=!1,icon:a,optional:c,StepIconComponent:l,StepIconProps:u}=n,h=Object(T.a)(n,Uh),{alternativeLabel:d,orientation:p}=z.useContext(_h),{active:_,disabled:m,completed:f,icon:g}=z.useContext(gh),$=a||g;let E=l;$&&!E&&(E=Ah);const y=Object(L.a)({},n,{active:_,alternativeLabel:d,completed:f,disabled:m,error:s,orientation:p}),b=(t=>{const{classes:e,orientation:n,active:i,completed:o,error:r,disabled:s,alternativeLabel:a}=t,c={root:["root",n,r&&"error",s&&"disabled",a&&"alternativeLabel"],label:["label",i&&"active",o&&"completed",r&&"error",s&&"disabled",a&&"alternativeLabel"],iconContainer:["iconContainer",i&&"active",o&&"completed",r&&"error",s&&"disabled",a&&"alternativeLabel"],labelContainer:["labelContainer"]};return Object(O.a)(c,xh,e)})(y);return Object(q.jsxs)(Dh,Object(L.a)({className:Object(w.a)(b.root,o),ref:e,ownerState:y},h,{children:[$||E?Object(q.jsx)(Mh,{className:b.iconContainer,ownerState:y,children:Object(q.jsx)(E,Object(L.a)({completed:f,active:_,error:s,icon:$},u))}):null,Object(q.jsxs)(kh,{className:b.labelContainer,ownerState:y,children:[i?Object(q.jsx)(Ph,Object(L.a)({className:b.label,ownerState:y},r.label,{children:i})):null,c]})]}))}));jh.muiName="StepLabel";var Gh=jh;function qh(t){return Object(M.a)("MuiStepButton",t)}var Fh=Object(k.a)("MuiStepButton",["root","horizontal","vertical","touchRipple"]);const Bh=["children","className","icon","optional"],Wh=Object(R.a)(pt.a,{name:"MuiStepButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{["& ."+Fh.touchRipple]:e.touchRipple},e.root,e[n.orientation]]}})(({ownerState:t})=>Object(L.a)({width:"100%",padding:"24px 16px",margin:"-24px -16px",boxSizing:"content-box"},"vertical"===t.orientation&&{justifyContent:"flex-start",padding:"8px",margin:"-8px"},{["& ."+Fh.touchRipple]:{color:"rgba(0, 0, 0, 0.3)"}}));var Hh=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiStepButton"}),{children:i,className:o,icon:r,optional:s}=n,a=Object(T.a)(n,Bh),{disabled:c}=z.useContext(gh),{orientation:l}=z.useContext(_h),u=Object(L.a)({},n,{orientation:l}),h=(t=>{const{classes:e,orientation:n}=t,i={root:["root",n],touchRipple:["touchRipple"]};return Object(O.a)(i,qh,e)})(u),d={icon:r,optional:s},p=Object(Hs.a)(i,["StepLabel"])?z.cloneElement(i,d):Object(q.jsx)(Gh,Object(L.a)({},d,{children:i}));return Object(q.jsx)(Wh,Object(L.a)({focusRipple:!0,disabled:c,TouchRippleProps:{className:h.touchRipple},className:Object(w.a)(h.root,o),ref:e,ownerState:u},a,{children:p}))}));function Vh(t){return Object(M.a)("MuiStepConnector",t)}var Kh=Object(k.a)("MuiStepConnector",["root","horizontal","vertical","alternativeLabel","active","completed","disabled","line","lineHorizontal","lineVertical"]);const Xh=["className"],Jh=Object(R.a)("div",{name:"MuiStepConnector",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.orientation],n.alternativeLabel&&e.alternativeLabel,n.completed&&e.completed]}})(({ownerState:t})=>Object(L.a)({flex:"1 1 auto"},"vertical"===t.orientation&&{marginLeft:12},t.alternativeLabel&&{position:"absolute",top:12,left:"calc(-50% + 20px)",right:"calc(50% + 20px)"})),Yh=Object(R.a)("span",{name:"MuiStepConnector",slot:"Line",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.line,e["line"+Object(St.a)(n.orientation)]]}})(({ownerState:t,theme:e})=>{const n="light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[600];return Object(L.a)({display:"block",borderColor:e.vars?e.vars.palette.StepConnector.border:n},"horizontal"===t.orientation&&{borderTopStyle:"solid",borderTopWidth:1},"vertical"===t.orientation&&{borderLeftStyle:"solid",borderLeftWidth:1,minHeight:24})});var Qh=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiStepConnector"}),{className:i}=n,o=Object(T.a)(n,Xh),{alternativeLabel:r,orientation:s="horizontal"}=z.useContext(_h),{active:a,disabled:c,completed:l}=z.useContext(gh),u=Object(L.a)({},n,{alternativeLabel:r,orientation:s,active:a,completed:l,disabled:c}),h=(t=>{const{classes:e,orientation:n,alternativeLabel:i,active:o,completed:r,disabled:s}=t,a={root:["root",n,i&&"alternativeLabel",o&&"active",r&&"completed",s&&"disabled"],line:["line","line"+Object(St.a)(n)]};return Object(O.a)(a,Vh,e)})(u);return Object(q.jsx)(Jh,Object(L.a)({className:Object(w.a)(h.root,i),ref:e,ownerState:u},o,{children:Object(q.jsx)(Yh,{className:h.line,ownerState:u})}))}));function Zh(t){return Object(M.a)("MuiStepContent",t)}var td=Object(k.a)("MuiStepContent",["root","last","transition"]);const ed=["children","className","TransitionComponent","transitionDuration","TransitionProps"],nd=Object(R.a)("div",{name:"MuiStepContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.last&&e.last]}})(({ownerState:t,theme:e})=>Object(L.a)({marginLeft:12,paddingLeft:20,paddingRight:8,borderLeft:e.vars?"1px solid "+e.vars.palette.StepContent.border:"1px solid "+("light"===e.palette.mode?e.palette.grey[400]:e.palette.grey[600])},t.last&&{borderLeft:"none"})),id=Object(R.a)(K,{name:"MuiStepContent",slot:"Transition",overridesResolver:(t,e)=>e.transition})({});var od=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiStepContent"}),{children:i,className:o,TransitionComponent:r=K,transitionDuration:s="auto",TransitionProps:a}=n,c=Object(T.a)(n,ed),{orientation:l}=z.useContext(_h),{active:u,last:h,expanded:d}=z.useContext(gh),p=Object(L.a)({},n,{last:h}),_=(t=>{const{classes:e,last:n}=t,i={root:["root",n&&"last"],transition:["transition"]};return Object(O.a)(i,Zh,e)})(p);let m=s;return"auto"!==s||r.muiSupportAuto||(m=void 0),Object(q.jsx)(nd,Object(L.a)({className:Object(w.a)(_.root,o),ref:e,ownerState:p},c,{children:Object(q.jsx)(id,Object(L.a)({as:r,in:u||d,className:_.transition,ownerState:p,timeout:m,unmountOnExit:!0},a,{children:i}))}))}));function rd(t){return Object(M.a)("MuiStepper",t)}var sd=Object(k.a)("MuiStepper",["root","horizontal","vertical","alternativeLabel"]);const ad=["activeStep","alternativeLabel","children","className","connector","nonLinear","orientation"],cd=Object(R.a)("div",{name:"MuiStepper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.orientation],n.alternativeLabel&&e.alternativeLabel]}})(({ownerState:t})=>Object(L.a)({display:"flex"},"horizontal"===t.orientation&&{flexDirection:"row",alignItems:"center"},"vertical"===t.orientation&&{flexDirection:"column"},t.alternativeLabel&&{alignItems:"flex-start"})),ld=Object(q.jsx)(Qh,{});var ud=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiStepper"}),{activeStep:i=0,alternativeLabel:o=!1,children:r,className:s,connector:a=ld,nonLinear:c=!1,orientation:l="horizontal"}=n,u=Object(T.a)(n,ad),h=Object(L.a)({},n,{alternativeLabel:o,orientation:l}),d=(t=>{const{orientation:e,alternativeLabel:n,classes:i}=t,o={root:["root",e,n&&"alternativeLabel"]};return Object(O.a)(o,rd,i)})(h),p=z.Children.toArray(r).filter(Boolean),_=p.map((t,e)=>z.cloneElement(t,Object(L.a)({index:e,last:e+1===p.length},t.props))),m=z.useMemo(()=>({activeStep:i,alternativeLabel:o,connector:a,nonLinear:c,orientation:l}),[i,o,a,c,l]);return Object(q.jsx)(_h.Provider,{value:m,children:Object(q.jsx)(cd,Object(L.a)({ownerState:h,className:Object(w.a)(d.root,s),ref:e},u,{children:_}))})})),hd=n(263),dd=n(58),pd=n(78);const _d=["anchor","classes","className","width","style"],md=Object(R.a)("div")(({theme:t,ownerState:e})=>Object(L.a)({position:"fixed",top:0,left:0,bottom:0,zIndex:t.zIndex.drawer-1},"left"===e.anchor&&{right:"auto"},"right"===e.anchor&&{left:"auto",right:0},"top"===e.anchor&&{bottom:"auto",right:0},"bottom"===e.anchor&&{top:"auto",bottom:0,right:0}));var fd=z.forwardRef((function(t,e){const{anchor:n,classes:i={},className:o,width:r,style:s}=t,a=Object(T.a)(t,_d),c=t;return Object(q.jsx)(md,Object(L.a)({className:Object(w.a)("PrivateSwipeArea-root",i.root,i["anchor"+Object(St.a)(n)],o),ref:e,style:Object(L.a)({[Object(Tr.c)(n)?"width":"height"]:r},s),ownerState:c},a))}));const gd=["BackdropProps"],$d=["anchor","disableBackdropTransition","disableDiscovery","disableSwipeToOpen","hideBackdrop","hysteresis","minFlingVelocity","ModalProps","onClose","onOpen","open","PaperProps","SwipeAreaProps","swipeAreaWidth","transitionDuration","variant"];let Ed=null;function yd(t,e,n){return"right"===t?n.body.offsetWidth-e[0].pageX:e[0].pageX}function bd(t,e,n){return"bottom"===t?n.innerHeight-e[0].clientY:e[0].clientY}function Sd(t,e){return t?e.clientWidth:e.clientHeight}function vd(t,e,n,i){return Math.min(Math.max(n?e-t:i+e-t,0),i)}const Cd="undefined"!=typeof navigator&&/iPad|iPhone|iPod/.test(navigator.userAgent);var Nd=z.forwardRef((function(t,e){const n=Object(Yo.a)({name:"MuiSwipeableDrawer",props:t}),i=Object(D.default)(),o={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:r="left",disableBackdropTransition:s=!1,disableDiscovery:a=!1,disableSwipeToOpen:c=Cd,hideBackdrop:l,hysteresis:u=.52,minFlingVelocity:h=450,ModalProps:{BackdropProps:d}={},onClose:p,onOpen:_,open:m,PaperProps:f={},SwipeAreaProps:g,swipeAreaWidth:$=20,transitionDuration:E=o,variant:y="temporary"}=n,b=Object(T.a)(n.ModalProps,gd),S=Object(T.a)(n,$d),[v,C]=z.useState(!1),N=z.useRef({isSwiping:null}),w=z.useRef(),O=z.useRef(),R=z.useRef(),A=z.useRef(!1),x=z.useRef();Object(Ss.a)(()=>{x.current=null},[m]);const I=z.useCallback((t,e={})=>{const{mode:n=null,changeTransition:o=!0}=e,a=Object(Tr.b)(i,r),c=-1!==["right","bottom"].indexOf(a)?1:-1,u=Object(Tr.c)(r),h=u?`translate(${c*t}px, 0)`:`translate(0, ${c*t}px)`,d=R.current.style;d.webkitTransform=h,d.transform=h;let p="";if(n&&(p=i.transitions.create("all",Object(U.a)({easing:void 0,style:void 0,timeout:E},{mode:n}))),o&&(d.webkitTransition=p,d.transition=p),!s&&!l){const e=O.current.style;e.opacity=1-t/Sd(u,R.current),o&&(e.webkitTransition=p,e.transition=p)}},[r,s,l,i,E]),P=Object(Iu.a)(t=>{if(!A.current)return;if(Ed=null,A.current=!1,C(!1),!N.current.isSwiping)return void(N.current.isSwiping=null);N.current.isSwiping=null;const e=Object(Tr.b)(i,r),n=Object(Tr.c)(r);let o;o=n?yd(e,t.changedTouches,Object(dd.a)(t.currentTarget)):bd(e,t.changedTouches,Object(pd.a)(t.currentTarget));const s=n?N.current.startX:N.current.startY,a=Sd(n,R.current),c=vd(o,s,m,a),l=c/a;Math.abs(N.current.velocity)>h&&(x.current=1e3*Math.abs((a-c)/N.current.velocity)),m?N.current.velocity>h||l>u?p():I(0,{mode:"exit"}):N.current.velocity<-h||1-l>u?_():I(Sd(n,R.current),{mode:"enter"})}),M=Object(Iu.a)(t=>{if(!R.current||!A.current)return;if(null!==Ed&&Ed!==N.current)return;const e=Object(Tr.b)(i,r),n=Object(Tr.c)(r),o=yd(e,t.touches,Object(dd.a)(t.currentTarget)),s=bd(e,t.touches,Object(pd.a)(t.currentTarget));if(m&&R.current.contains(t.target)&&null===Ed){if(function({domTreeShapes:t,start:e,current:n,anchor:i}){const o={x:"scrollLeft",y:"scrollTop"},r={x:"scrollWidth",y:"scrollHeight"},s={x:"clientWidth",y:"clientHeight"};return t.some(t=>{let a=n>=e;"top"!==i&&"left"!==i||(a=!a);const c="left"===i||"right"===i?"x":"y",l=Math.round(t[o[c]]),u=l>0,h=l+t[s[c]]0&&t.scrollWidth>t.clientWidth||t.clientHeight>0&&t.scrollHeight>t.clientHeight)&&n.push(t),t=t.parentElement}return n}(t.target,R.current),start:n?N.current.startX:N.current.startY,current:n?o:s,anchor:r}))return void(Ed=!0);Ed=N.current}if(null==N.current.isSwiping){const e=Math.abs(o-N.current.startX),i=Math.abs(s-N.current.startY),r=n?e>i&&e>3:i>e&&i>3;if(r&&t.cancelable&&t.preventDefault(),!0===r||(n?i>3:e>3)){if(N.current.isSwiping=r,!r)return void P(t);N.current.startX=o,N.current.startY=s,a||m||(n?N.current.startX-=20:N.current.startY-=20)}}if(!N.current.isSwiping)return;const c=Sd(n,R.current);let l=n?N.current.startX:N.current.startY;m&&!N.current.paperHit&&(l=Math.min(l,c));const u=vd(n?o:s,l,m,c);if(m)if(N.current.paperHit)0===u&&(N.current.startX=o,N.current.startY=s);else{if(!(n?o{if(t.defaultPrevented)return;if(t.defaultMuiPrevented)return;if(m&&(l||!O.current.contains(t.target))&&!R.current.contains(t.target))return;const e=Object(Tr.b)(i,r),n=Object(Tr.c)(r),o=yd(e,t.touches,Object(dd.a)(t.currentTarget)),s=bd(e,t.touches,Object(pd.a)(t.currentTarget));if(!m){if(c||t.target!==w.current)return;if(n){if(o>$)return}else if(s>$)return}t.defaultMuiPrevented=!0,Ed=null,N.current.startX=o,N.current.startY=s,C(!0),!m&&R.current&&I(Sd(n,R.current)+(a?15:-20),{changeTransition:!1}),N.current.velocity=0,N.current.lastTime=null,N.current.lastTranslate=null,N.current.paperHit=!1,A.current=!0});return z.useEffect(()=>{if("temporary"===y){const t=Object(dd.a)(R.current);return t.addEventListener("touchstart",k),t.addEventListener("touchmove",M,{passive:!m}),t.addEventListener("touchend",P),()=>{t.removeEventListener("touchstart",k),t.removeEventListener("touchmove",M,{passive:!m}),t.removeEventListener("touchend",P)}}},[y,m,k,M,P]),z.useEffect(()=>()=>{Ed===N.current&&(Ed=null)},[]),z.useEffect(()=>{m||C(!1)},[m]),Object(q.jsxs)(z.Fragment,{children:[Object(q.jsx)(Tr.a,Object(L.a)({open:!("temporary"!==y||!v)||m,variant:y,ModalProps:Object(L.a)({BackdropProps:Object(L.a)({},d,{ref:O})},b),hideBackdrop:l,PaperProps:Object(L.a)({},f,{style:Object(L.a)({pointerEvents:"temporary"!==y||m?"":"none"},f.style),ref:R}),anchor:r,transitionDuration:x.current||E,onClose:p,ref:e},S)),!c&&"temporary"===y&&Object(q.jsx)(cc,{children:Object(q.jsx)(fd,Object(L.a)({anchor:r,ref:w,width:$},g))})]})})),Td=n(656),Ld=n(304),zd=n(664),wd=n(311),Od=n(657),Rd=n(305),Ad=n(658),xd=n(306),Id=n(661),Ud=n(252),Dd=n(662),Pd=n(309),Md=n(107);function kd(t){return Object(M.a)("MuiTableFooter",t)}var jd=Object(k.a)("MuiTableFooter",["root"]);const Gd=["className","component"],qd=Object(R.a)("tfoot",{name:"MuiTableFooter",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"table-footer-group"}),Fd={variant:"footer"},Bd="tfoot";var Wd,Hd,Vd,Kd,Xd,Jd,Yd,Qd,Zd=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiTableFooter"}),{className:i,component:o=Bd}=n,r=Object(T.a)(n,Gd),s=Object(L.a)({},n,{component:o}),a=(t=>{const{classes:e}=t;return Object(O.a)({root:["root"]},kd,e)})(s);return Object(q.jsx)(Md.a.Provider,{value:Fd,children:Object(q.jsx)(qd,Object(L.a)({as:o,className:Object(w.a)(a.root,i),ref:e,role:o===Bd?null:"rowgroup",ownerState:s},r))})})),tp=n(659),ep=n(307),np=n(669),ip=n(272),op=n(273);const rp=["backIconButtonProps","count","getItemAriaLabel","nextIconButtonProps","onPageChange","page","rowsPerPage","showFirstButton","showLastButton"];var sp=z.forwardRef((function(t,e){const{backIconButtonProps:n,count:i,getItemAriaLabel:o,nextIconButtonProps:r,onPageChange:s,page:a,rowsPerPage:c,showFirstButton:l,showLastButton:u}=t,h=Object(T.a)(t,rp),d=Object(D.default)();return Object(q.jsxs)("div",Object(L.a)({ref:e},h,{children:[l&&Object(q.jsx)(Tt.a,{onClick:t=>{s(t,0)},disabled:0===a,"aria-label":o("first",a),title:o("first",a),children:"rtl"===d.direction?Wd||(Wd=Object(q.jsx)($c,{})):Hd||(Hd=Object(q.jsx)(gc,{}))}),Object(q.jsx)(Tt.a,Object(L.a)({onClick:t=>{s(t,a-1)},disabled:0===a,color:"inherit","aria-label":o("previous",a),title:o("previous",a)},n,{children:"rtl"===d.direction?Vd||(Vd=Object(q.jsx)(op.a,{})):Kd||(Kd=Object(q.jsx)(ip.a,{}))})),Object(q.jsx)(Tt.a,Object(L.a)({onClick:t=>{s(t,a+1)},disabled:-1!==i&&a>=Math.ceil(i/c)-1,color:"inherit","aria-label":o("next",a),title:o("next",a)},r,{children:"rtl"===d.direction?Xd||(Xd=Object(q.jsx)(ip.a,{})):Jd||(Jd=Object(q.jsx)(op.a,{}))})),u&&Object(q.jsx)(Tt.a,{onClick:t=>{s(t,Math.max(0,Math.ceil(i/c)-1))},disabled:a>=Math.ceil(i/c)-1,"aria-label":o("last",a),title:o("last",a),children:"rtl"===d.direction?Yd||(Yd=Object(q.jsx)(gc,{})):Qd||(Qd=Object(q.jsx)($c,{}))})]}))}));function ap(t){return Object(M.a)("MuiTablePagination",t)}var cp,lp=Object(k.a)("MuiTablePagination",["root","toolbar","spacer","selectLabel","selectRoot","select","selectIcon","input","menuItem","displayedRows","actions"]);const up=["ActionsComponent","backIconButtonProps","className","colSpan","component","count","getItemAriaLabel","labelDisplayedRows","labelRowsPerPage","nextIconButtonProps","onPageChange","onRowsPerPageChange","page","rowsPerPage","rowsPerPageOptions","SelectProps","showFirstButton","showLastButton"],hp=Object(R.a)(Id.a,{name:"MuiTablePagination",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>({overflow:"auto",color:(t.vars||t).palette.text.primary,fontSize:t.typography.pxToRem(14),"&:last-child":{padding:0}})),dp=Object(R.a)(np.a,{name:"MuiTablePagination",slot:"Toolbar",overridesResolver:(t,e)=>Object(L.a)({["& ."+lp.actions]:e.actions},e.toolbar)})(({theme:t})=>({minHeight:52,paddingRight:2,[t.breakpoints.up("xs")+" and (orientation: landscape)"]:{minHeight:52},[t.breakpoints.up("sm")]:{minHeight:52,paddingRight:2},["& ."+lp.actions]:{flexShrink:0,marginLeft:20}})),pp=Object(R.a)("div",{name:"MuiTablePagination",slot:"Spacer",overridesResolver:(t,e)=>e.spacer})({flex:"1 1 100%"}),_p=Object(R.a)("p",{name:"MuiTablePagination",slot:"SelectLabel",overridesResolver:(t,e)=>e.selectLabel})(({theme:t})=>Object(L.a)({},t.typography.body2,{flexShrink:0})),mp=Object(R.a)(vl.a,{name:"MuiTablePagination",slot:"Select",overridesResolver:(t,e)=>Object(L.a)({["& ."+lp.selectIcon]:e.selectIcon,["& ."+lp.select]:e.select},e.input,e.selectRoot)})({color:"inherit",fontSize:"inherit",flexShrink:0,marginRight:32,marginLeft:8,["& ."+lp.select]:{paddingLeft:8,paddingRight:24,textAlign:"right",textAlignLast:"right"}}),fp=Object(R.a)(qa.a,{name:"MuiTablePagination",slot:"MenuItem",overridesResolver:(t,e)=>e.menuItem})({}),gp=Object(R.a)("p",{name:"MuiTablePagination",slot:"DisplayedRows",overridesResolver:(t,e)=>e.displayedRows})(({theme:t})=>Object(L.a)({},t.typography.body2,{flexShrink:0}));function $p({from:t,to:e,count:n}){return`${t}–${e} of ${-1!==n?n:"more than "+e}`}function Ep(t){return`Go to ${t} page`}var yp=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiTablePagination"}),{ActionsComponent:i=sp,backIconButtonProps:o,className:r,colSpan:s,component:a=Id.a,count:c,getItemAriaLabel:l=Ep,labelDisplayedRows:u=$p,labelRowsPerPage:h="Rows per page:",nextIconButtonProps:d,onPageChange:p,onRowsPerPageChange:_,page:m,rowsPerPage:f,rowsPerPageOptions:g=[10,25,50,100],SelectProps:$={},showFirstButton:E=!1,showLastButton:y=!1}=n,b=Object(T.a)(n,up),S=n,v=(t=>{const{classes:e}=t;return Object(O.a)({root:["root"],toolbar:["toolbar"],spacer:["spacer"],selectLabel:["selectLabel"],select:["select"],input:["input"],selectIcon:["selectIcon"],menuItem:["menuItem"],displayedRows:["displayedRows"],actions:["actions"]},ap,e)})(S),C=$.native?"option":fp;let N;a!==Id.a&&"td"!==a||(N=s||1e3);const R=Object(Yc.a)($.id),x=Object(Yc.a)($.labelId);return Object(q.jsx)(hp,Object(L.a)({colSpan:N,ref:e,as:a,ownerState:S,className:Object(w.a)(v.root,r)},b,{children:Object(q.jsxs)(dp,{className:v.toolbar,children:[Object(q.jsx)(pp,{className:v.spacer}),g.length>1&&Object(q.jsx)(_p,{className:v.selectLabel,id:x,children:h}),g.length>1&&Object(q.jsx)(mp,Object(L.a)({variant:"standard",input:cp||(cp=Object(q.jsx)(ha.c,{})),value:f,onChange:_,id:R,labelId:x},$,{classes:Object(L.a)({},$.classes,{root:Object(w.a)(v.input,v.selectRoot,($.classes||{}).root),select:Object(w.a)(v.select,($.classes||{}).select),icon:Object(w.a)(v.selectIcon,($.classes||{}).icon)}),children:g.map(t=>Object(z.createElement)(C,Object(L.a)({},!Object(di.a)(C)&&{ownerState:S},{className:v.menuItem,key:t.label?t.label:t,value:t.value?t.value:t}),t.label?t.label:t))})),Object(q.jsx)(gp,{className:v.displayedRows,children:u({from:0===c?0:m*f+1,to:-1===c?(m+1)*f:-1===f?c:Math.min(c,(m+1)*f),count:-1===c?-1:c,page:m})}),Object(q.jsx)(i,{className:v.actions,backIconButtonProps:o,count:c,nextIconButtonProps:d,onPageChange:p,page:m,rowsPerPage:f,showFirstButton:E,showLastButton:y,getItemAriaLabel:l})]})}))})),bp=n(660),Sp=n(308),vp=Object(Lt.a)(Object(q.jsx)("path",{d:"M20 12l-1.41-1.41L13 16.17V4h-2v12.17l-5.58-5.59L4 12l8 8 8-8z"}),"ArrowDownward");function Cp(t){return Object(M.a)("MuiTableSortLabel",t)}var Np=Object(k.a)("MuiTableSortLabel",["root","active","icon","iconDirectionDesc","iconDirectionAsc"]);const Tp=["active","children","className","direction","hideSortIcon","IconComponent"],Lp=Object(R.a)(pt.a,{name:"MuiTableSortLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.active&&e.active]}})(({theme:t})=>({cursor:"pointer",display:"inline-flex",justifyContent:"flex-start",flexDirection:"inherit",alignItems:"center","&:focus":{color:(t.vars||t).palette.text.secondary},"&:hover":{color:(t.vars||t).palette.text.secondary,["& ."+Np.icon]:{opacity:.5}},["&."+Np.active]:{color:(t.vars||t).palette.text.primary,["& ."+Np.icon]:{opacity:1,color:(t.vars||t).palette.text.secondary}}})),zp=Object(R.a)("span",{name:"MuiTableSortLabel",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,e["iconDirection"+Object(St.a)(n.direction)]]}})(({theme:t,ownerState:e})=>Object(L.a)({fontSize:18,marginRight:4,marginLeft:4,opacity:0,transition:t.transitions.create(["opacity","transform"],{duration:t.transitions.duration.shorter}),userSelect:"none"},"desc"===e.direction&&{transform:"rotate(0deg)"},"asc"===e.direction&&{transform:"rotate(180deg)"}));var wp=z.forwardRef((function(t,e){const n=Object(A.a)({props:t,name:"MuiTableSortLabel"}),{active:i=!1,children:o,className:r,direction:s="asc",hideSortIcon:a=!1,IconComponent:c=vp}=n,l=Object(T.a)(n,Tp),u=Object(L.a)({},n,{active:i,direction:s,hideSortIcon:a,IconComponent:c}),h=(t=>{const{classes:e,direction:n,active:i}=t,o={root:["root",i&&"active"],icon:["icon","iconDirection"+Object(St.a)(n)]};return Object(O.a)(o,Cp,e)})(u);return Object(q.jsxs)(Lp,Object(L.a)({className:Object(w.a)(h.root,r),component:"span",disableRipple:!0,ownerState:u,ref:e},l,{children:[o,a&&!i?null:Object(q.jsx)(zp,{as:c,className:Object(w.a)(h.icon),ownerState:u})]}))})),Op=n(713),Rp=n(310),Ap=n(663),xp=n(330),Ip=n(665),Up=n(253),Dp=n(1028),Pp=n(668),Mp=n(313),kp=n(717),jp=n(312),Gp=n(254),qp=n(46);const Fp=["getTrigger","target"];function Bp(t,e){const{disableHysteresis:n=!1,threshold:i=100,target:o}=e,r=t.current;return o&&(t.current=void 0!==o.pageYOffset?o.pageYOffset:o.scrollTop),!(!n&&void 0!==r&&t.currenti}const Wp="undefined"!=typeof window?window:null;function Hp(t={}){const{getTrigger:e=Bp,target:n=Wp}=t,i=Object(T.a)(t,Fp),o=z.useRef(),[r,s]=z.useState(()=>e(o,i));return z.useEffect(()=>{const t=()=>{s(e(o,Object(L.a)({target:n},i)))};return t(),n.addEventListener("scroll",t,{passive:!0}),()=>{n.removeEventListener("scroll",t,{passive:!0})}},[n,e,JSON.stringify(i)]),r}var Vp=n(737),Kp=n(1059)},function(t,e,n){"use strict";n.d(e,"a",(function(){return D})),n.d(e,"b",(function(){return F})),n.d(e,"c",(function(){return P})),n.d(e,"d",(function(){return M})),n.d(e,"e",(function(){return h})),n.d(e,"f",(function(){return J})),n.d(e,"g",(function(){return R})),n.d(e,"h",(function(){return A})),n.d(e,"i",(function(){return N})),n.d(e,"j",(function(){return Q})),n.d(e,"k",(function(){return Y})),n.d(e,"l",(function(){return K})),n.d(e,"m",(function(){return I})),n.d(e,"n",(function(){return X})),n.d(e,"o",(function(){return U}));var i="-ms-",o="-moz-",r="-webkit-",s="comm",a="rule",c="decl",l="@keyframes",u=Math.abs,h=String.fromCharCode,d=Object.assign;function p(t){return t.trim()}function _(t,e,n){return t.replace(e,n)}function m(t,e){return t.indexOf(e)}function f(t,e){return 0|t.charCodeAt(e)}function g(t,e,n){return t.slice(e,n)}function $(t){return t.length}function E(t){return t.length}function y(t,e){return e.push(t),t}function b(t,e){return t.map(e).join("")}var S=1,v=1,C=0,N=0,T=0,L="";function z(t,e,n,i,o,r,s){return{value:t,root:e,parent:n,type:i,props:o,children:r,line:S,column:v,length:s,return:""}}function w(t,e){return d(z("",null,null,"",null,null,0),t,{length:-t.length},e)}function O(){return T=N>0?f(L,--N):0,v--,10===T&&(v=1,S--),T}function R(){return T=N2||U(T)>3?"":" "}function j(t,e){for(;--e&&R()&&!(T<48||T>102||T>57&&T<65||T>70&&T<97););return I(t,x()+(e<6&&32==A()&&32==R()))}function G(t,e){for(;R()&&t+T!==57&&(t+T!==84||47!==A()););return"/*"+I(e,N-1)+"*"+h(47===t?t:R())}function q(t){for(;!U(A());)R();return I(t,N)}function F(t){return P(function t(e,n,i,o,r,s,a,c,l){var u=0,d=0,p=a,f=0,g=0,E=0,b=1,S=1,v=1,C=0,N="",T=r,L=s,z=o,w=N;for(;S;)switch(E=C,C=R()){case 40:if(108!=E&&58==w.charCodeAt(p-1)){-1!=m(w+=_(M(C),"&","&\f"),"&\f")&&(v=-1);break}case 34:case 39:case 91:w+=M(C);break;case 9:case 10:case 13:case 32:w+=k(E);break;case 92:w+=j(x()-1,7);continue;case 47:switch(A()){case 42:case 47:y(W(G(R(),x()),n,i),l);break;default:w+="/"}break;case 123*b:c[u++]=$(w)*v;case 125*b:case 59:case 0:switch(C){case 0:case 125:S=0;case 59+d:g>0&&$(w)-p&&y(g>32?H(w+";",o,i,p-1):H(_(w," ","")+";",o,i,p-2),l);break;case 59:w+=";";default:if(y(z=B(w,n,i,u,d,r,c,N,T=[],L=[],p),s),123===C)if(0===d)t(w,n,z,z,T,s,p,c,L);else switch(f){case 100:case 109:case 115:t(e,z,z,o&&y(B(e,z,z,0,0,r,c,N,r,T=[],p),L),r,L,p,c,o?T:L);break;default:t(w,z,z,z,[""],L,0,c,L)}}u=d=g=0,b=v=1,N=w="",p=a;break;case 58:p=1+$(w),g=E;default:if(b<1)if(123==C)--b;else if(125==C&&0==b++&&125==O())continue;switch(w+=h(C),C*b){case 38:v=d>0?1:(w+="\f",-1);break;case 44:c[u++]=($(w)-1)*v,v=1;break;case 64:45===A()&&(w+=M(R())),f=A(),d=p=$(N=w+=q(x())),C++;break;case 45:45===E&&2==$(w)&&(b=0)}}return s}("",null,null,null,[""],t=D(t),0,[0],t))}function B(t,e,n,i,o,r,s,c,l,h,d){for(var m=o-1,f=0===o?r:[""],$=E(f),y=0,b=0,S=0;y0?f[v]+" "+C:_(C,/&\f/g,f[v])))&&(l[S++]=N);return z(t,e,n,0===o?a:c,l,h,d)}function W(t,e,n){return z(t,e,n,s,h(T),g(t,2,-2),0)}function H(t,e,n,i){return z(t,e,n,c,g(t,0,i),g(t,i+1,-1),i)}function V(t,e){switch(function(t,e){return(((e<<2^f(t,0))<<2^f(t,1))<<2^f(t,2))<<2^f(t,3)}(t,e)){case 5103:return r+"print-"+t+t;case 5737:case 4201:case 3177:case 3433:case 1641:case 4457:case 2921:case 5572:case 6356:case 5844:case 3191:case 6645:case 3005:case 6391:case 5879:case 5623:case 6135:case 4599:case 4855:case 4215:case 6389:case 5109:case 5365:case 5621:case 3829:return r+t+t;case 5349:case 4246:case 4810:case 6968:case 2756:return r+t+o+t+i+t+t;case 6828:case 4268:return r+t+i+t+t;case 6165:return r+t+i+"flex-"+t+t;case 5187:return r+t+_(t,/(\w+).+(:[^]+)/,r+"box-$1$2"+i+"flex-$1$2")+t;case 5443:return r+t+i+"flex-item-"+_(t,/flex-|-self/,"")+t;case 4675:return r+t+i+"flex-line-pack"+_(t,/align-content|flex-|-self/,"")+t;case 5548:return r+t+i+_(t,"shrink","negative")+t;case 5292:return r+t+i+_(t,"basis","preferred-size")+t;case 6060:return r+"box-"+_(t,"-grow","")+r+t+i+_(t,"grow","positive")+t;case 4554:return r+_(t,/([^-])(transform)/g,"$1"+r+"$2")+t;case 6187:return _(_(_(t,/(zoom-|grab)/,r+"$1"),/(image-set)/,r+"$1"),t,"")+t;case 5495:case 3959:return _(t,/(image-set\([^]*)/,r+"$1$`$1");case 4968:return _(_(t,/(.+:)(flex-)?(.*)/,r+"box-pack:$3"+i+"flex-pack:$3"),/s.+-b[^;]+/,"justify")+r+t+t;case 4095:case 3583:case 4068:case 2532:return _(t,/(.+)-inline(.+)/,r+"$1$2")+t;case 8116:case 7059:case 5753:case 5535:case 5445:case 5701:case 4933:case 4677:case 5533:case 5789:case 5021:case 4765:if($(t)-1-e>6)switch(f(t,e+1)){case 109:if(45!==f(t,e+4))break;case 102:return _(t,/(.+:)(.+)-([^]+)/,"$1"+r+"$2-$3$1"+o+(108==f(t,e+3)?"$3":"$2-$3"))+t;case 115:return~m(t,"stretch")?V(_(t,"stretch","fill-available"),e)+t:t}break;case 4949:if(115!==f(t,e+1))break;case 6444:switch(f(t,$(t)-3-(~m(t,"!important")&&10))){case 107:return _(t,":",":"+r)+t;case 101:return _(t,/(.+:)([^;!]+)(;|!.+)?/,"$1"+r+(45===f(t,14)?"inline-":"")+"box$3$1"+r+"$2$3$1"+i+"$2box$3")+t}break;case 5936:switch(f(t,e+11)){case 114:return r+t+i+_(t,/[svh]\w+-[tblr]{2}/,"tb")+t;case 108:return r+t+i+_(t,/[svh]\w+-[tblr]{2}/,"tb-rl")+t;case 45:return r+t+i+_(t,/[svh]\w+-[tblr]{2}/,"lr")+t}return r+t+i+t+t}return t}function K(t,e){for(var n="",i=E(t),o=0;o-1&&!t.return)switch(t.type){case c:t.return=V(t.value,t.length);break;case l:return K([w(t,{value:_(t.value,"@","@"+r)})],o);case a:if(t.length)return b(t.props,(function(e){switch(function(t,e){return(t=e.exec(t))?t[0]:t}(e,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return K([w(t,{props:[_(e,/:(read-\w+)/,":-moz-$1")]})],o);case"::placeholder":return K([w(t,{props:[_(e,/:(plac\w+)/,":"+r+"input-$1")]}),w(t,{props:[_(e,/:(plac\w+)/,":-moz-$1")]}),w(t,{props:[_(e,/:(plac\w+)/,i+"input-$1")]})],o)}return""}))}}},function(t,e,n){"use strict";n.r(e),n.d(e,"MemoryRouter",(function(){return D})),n.d(e,"Navigate",(function(){return P})),n.d(e,"Outlet",(function(){return M})),n.d(e,"Route",(function(){return k})),n.d(e,"Router",(function(){return j})),n.d(e,"Routes",(function(){return G})),n.d(e,"UNSAFE_LocationContext",(function(){return s})),n.d(e,"UNSAFE_NavigationContext",(function(){return r})),n.d(e,"UNSAFE_RouteContext",(function(){return a})),n.d(e,"createRoutesFromChildren",(function(){return q})),n.d(e,"generatePath",(function(){return l})),n.d(e,"matchPath",(function(){return m})),n.d(e,"matchRoutes",(function(){return u})),n.d(e,"renderMatches",(function(){return F})),n.d(e,"resolvePath",(function(){return f})),n.d(e,"useHref",(function(){return v})),n.d(e,"useInRouterContext",(function(){return C})),n.d(e,"useLocation",(function(){return N})),n.d(e,"useMatch",(function(){return L})),n.d(e,"useNavigate",(function(){return z})),n.d(e,"useNavigationType",(function(){return T})),n.d(e,"useOutlet",(function(){return R})),n.d(e,"useOutletContext",(function(){return O})),n.d(e,"useParams",(function(){return A})),n.d(e,"useResolvedPath",(function(){return x})),n.d(e,"useRoutes",(function(){return I}));var i=n(42);n.d(e,"NavigationType",(function(){return i.a})),n.d(e,"createPath",(function(){return i.e})),n.d(e,"parsePath",(function(){return i.f}));var o=n(0); /** * React Router v6.3.0 * * Copyright (c) Remix Software Inc. * * This source code is licensed under the MIT license found in the * LICENSE.md file in the root directory of this source tree. * * @license MIT */ const r=Object(o.createContext)(null);const s=Object(o.createContext)(null);const a=Object(o.createContext)({outlet:null,matches:[]});function c(t,e){if(!t)throw new Error(e)}function l(t,e){return void 0===e&&(e={}),t.replace(/:(\w+)/g,(t,n)=>(null==e[n]&&c(!1),e[n])).replace(/\/*\*$/,t=>null==e["*"]?"":e["*"].replace(/^\/*/,"/"))}function u(t,e,n){void 0===n&&(n="/");let o=$(("string"==typeof e?Object(i.f)(e):e).pathname||"/",n);if(null==o)return null;let r=function t(e,n,i,o){void 0===n&&(n=[]);void 0===i&&(i=[]);void 0===o&&(o="");return e.forEach((e,r)=>{let s={relativePath:e.path||"",caseSensitive:!0===e.caseSensitive,childrenIndex:r,route:e};s.relativePath.startsWith("/")&&(s.relativePath.startsWith(o)||c(!1),s.relativePath=s.relativePath.slice(o.length));let a=E([o,s.relativePath]),l=i.concat(s);e.children&&e.children.length>0&&(!0===e.index&&c(!1),t(e.children,n,l,a)),(null!=e.path||e.index)&&n.push({path:a,score:p(a,e.index),routesMeta:l})}),n}(t);!function(t){t.sort((t,e)=>t.score!==e.score?e.score-t.score:function(t,e){return t.length===e.length&&t.slice(0,-1).every((t,n)=>t===e[n])?t[t.length-1]-e[e.length-1]:0}(t.routesMeta.map(t=>t.childrenIndex),e.routesMeta.map(t=>t.childrenIndex)))}(r);let s=null;for(let t=0;null==s&&t"*"===t;function p(t,e){let n=t.split("/"),i=n.length;return n.some(d)&&(i+=-2),e&&(i+=2),n.filter(t=>!d(t)).reduce((t,e)=>t+(h.test(e)?3:""===e?1:10),i)}function _(t,e){let{routesMeta:n}=t,i={},o="/",r=[];for(let t=0;t(i.push(e),"([^\\/]+)"));t.endsWith("*")?(i.push("*"),o+="*"===t||"/*"===t?"(.*)$":"(?:\\/(.+)|\\/*)$"):o+=n?"\\/*$":"(?:(?=[.~-]|%[0-9A-F]{2})|\\b|\\/|$)";return[new RegExp(o,e?void 0:"i"),i]}(t.path,t.caseSensitive,t.end),o=e.match(n);if(!o)return null;let r=o[0],s=r.replace(/(.)\/+$/,"$1"),a=o.slice(1);return{params:i.reduce((t,e,n)=>{if("*"===e){let t=a[n]||"";s=r.slice(0,r.length-t.length).replace(/(.)\/+$/,"$1")}return t[e]=function(t,e){try{return decodeURIComponent(t)}catch(e){return t}}(a[n]||""),t},{}),pathname:r,pathnameBase:s,pattern:t}}function f(t,e){void 0===e&&(e="/");let{pathname:n,search:o="",hash:r=""}="string"==typeof t?Object(i.f)(t):t;return{pathname:n?n.startsWith("/")?n:function(t,e){let n=e.replace(/\/+$/,"").split("/");return t.split("/").forEach(t=>{".."===t?n.length>1&&n.pop():"."!==t&&n.push(t)}),n.length>1?n.join("/"):"/"}(n,e):e,search:b(o),hash:S(r)}}function g(t,e,n){let o,r="string"==typeof t?Object(i.f)(t):t,s=""===t||""===r.pathname?"/":r.pathname;if(null==s)o=n;else{let t=e.length-1;if(s.startsWith("..")){let e=s.split("/");for(;".."===e[0];)e.shift(),t-=1;r.pathname=e.join("/")}o=t>=0?e[t]:"/"}let a=f(r,o);return s&&"/"!==s&&s.endsWith("/")&&!a.pathname.endsWith("/")&&(a.pathname+="/"),a}function $(t,e){if("/"===e)return t;if(!t.toLowerCase().startsWith(e.toLowerCase()))return null;let n=t.charAt(e.length);return n&&"/"!==n?null:t.slice(e.length)||"/"}const E=t=>t.join("/").replace(/\/\/+/g,"/"),y=t=>t.replace(/\/+$/,"").replace(/^\/*/,"/"),b=t=>t&&"?"!==t?t.startsWith("?")?t:"?"+t:"",S=t=>t&&"#"!==t?t.startsWith("#")?t:"#"+t:"";function v(t){C()||c(!1);let{basename:e,navigator:n}=Object(o.useContext)(r),{hash:s,pathname:a,search:l}=x(t),u=a;if("/"!==e){let n=function(t){return""===t||""===t.pathname?"/":"string"==typeof t?Object(i.f)(t).pathname:t.pathname}(t),o=null!=n&&n.endsWith("/");u="/"===a?e+(o?"/":""):E([e,a])}return n.createHref({pathname:u,search:l,hash:s})}function C(){return null!=Object(o.useContext)(s)}function N(){return C()||c(!1),Object(o.useContext)(s).location}function T(){return Object(o.useContext)(s).navigationType}function L(t){C()||c(!1);let{pathname:e}=N();return Object(o.useMemo)(()=>m(t,e),[e,t])}function z(){C()||c(!1);let{basename:t,navigator:e}=Object(o.useContext)(r),{matches:n}=Object(o.useContext)(a),{pathname:i}=N(),s=JSON.stringify(n.map(t=>t.pathnameBase)),l=Object(o.useRef)(!1);return Object(o.useEffect)(()=>{l.current=!0}),Object(o.useCallback)((function(n,o){if(void 0===o&&(o={}),!l.current)return;if("number"==typeof n)return void e.go(n);let r=g(n,JSON.parse(s),i);"/"!==t&&(r.pathname=E([t,r.pathname])),(o.replace?e.replace:e.push)(r,o.state)}),[t,e,s,i])}const w=Object(o.createContext)(null);function O(){return Object(o.useContext)(w)}function R(t){let e=Object(o.useContext)(a).outlet;return e?Object(o.createElement)(w.Provider,{value:t},e):e}function A(){let{matches:t}=Object(o.useContext)(a),e=t[t.length-1];return e?e.params:{}}function x(t){let{matches:e}=Object(o.useContext)(a),{pathname:n}=N(),i=JSON.stringify(e.map(t=>t.pathnameBase));return Object(o.useMemo)(()=>g(t,JSON.parse(i),n),[t,i,n])}function I(t,e){C()||c(!1);let{matches:n}=Object(o.useContext)(a),r=n[n.length-1],s=r?r.params:{},l=(r&&r.pathname,r?r.pathnameBase:"/");r&&r.route;let h,d=N();if(e){var p;let t="string"==typeof e?Object(i.f)(e):e;"/"===l||(null==(p=t.pathname)?void 0:p.startsWith(l))||c(!1),h=t}else h=d;let _=h.pathname||"/",m=u(t,{pathname:"/"===l?_:_.slice(l.length)||"/"});return U(m&&m.map(t=>Object.assign({},t,{params:Object.assign({},s,t.params),pathname:E([l,t.pathname]),pathnameBase:"/"===t.pathnameBase?l:E([l,t.pathnameBase])})),n)}function U(t,e){return void 0===e&&(e=[]),null==t?null:t.reduceRight((n,i,r)=>Object(o.createElement)(a.Provider,{children:void 0!==i.route.element?i.route.element:n,value:{outlet:n,matches:e.concat(t.slice(0,r+1))}}),null)}function D(t){let{basename:e,children:n,initialEntries:r,initialIndex:s}=t,a=Object(o.useRef)();null==a.current&&(a.current=Object(i.d)({initialEntries:r,initialIndex:s}));let c=a.current,[l,u]=Object(o.useState)({action:c.action,location:c.location});return Object(o.useLayoutEffect)(()=>c.listen(u),[c]),Object(o.createElement)(j,{basename:e,children:n,location:l.location,navigationType:l.action,navigator:c})}function P(t){let{to:e,replace:n,state:i}=t;C()||c(!1);let r=z();return Object(o.useEffect)(()=>{r(e,{replace:n,state:i})}),null}function M(t){return R(t.context)}function k(t){c(!1)}function j(t){let{basename:e="/",children:n=null,location:a,navigationType:l=i.a.Pop,navigator:u,static:h=!1}=t;C()&&c(!1);let d=y(e),p=Object(o.useMemo)(()=>({basename:d,navigator:u,static:h}),[d,u,h]);"string"==typeof a&&(a=Object(i.f)(a));let{pathname:_="/",search:m="",hash:f="",state:g=null,key:E="default"}=a,b=Object(o.useMemo)(()=>{let t=$(_,d);return null==t?null:{pathname:t,search:m,hash:f,state:g,key:E}},[d,_,m,f,g,E]);return null==b?null:Object(o.createElement)(r.Provider,{value:p},Object(o.createElement)(s.Provider,{children:n,value:{location:b,navigationType:l}}))}function G(t){let{children:e,location:n}=t;return I(q(e),n)}function q(t){let e=[];return o.Children.forEach(t,t=>{if(!Object(o.isValidElement)(t))return;if(t.type===o.Fragment)return void e.push.apply(e,q(t.props.children));t.type!==k&&c(!1);let n={caseSensitive:t.props.caseSensitive,element:t.props.element,index:t.props.index,path:t.props.path};t.props.children&&(n.children=q(t.props.children)),e.push(n)}),e}function F(t){return U(t)}},function(t,e,n){ /*! safe-buffer. MIT License. Feross Aboukhadijeh */ var i=n(50),o=i.Buffer;function r(t,e){for(var n in t)e[n]=t[n]}function s(t,e,n){return o(t,e,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=i:(r(i,e),e.Buffer=s),s.prototype=Object.create(o.prototype),r(o,s),s.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return o(t,e,n)},s.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var i=o(t);return void 0!==e?"string"==typeof n?i.fill(e,n):i.fill(e):i.fill(0),i},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i.SlowBuffer(t)}},function(t,e,n){"use strict";n.d(e,"h",(function(){return r})),n.d(e,"d",(function(){return s})),n.d(e,"b",(function(){return a})),n.d(e,"k",(function(){return c})),n.d(e,"l",(function(){return l})),n.d(e,"i",(function(){return u})),n.d(e,"g",(function(){return h})),n.d(e,"f",(function(){return d})),n.d(e,"a",(function(){return p})),n.d(e,"c",(function(){return _})),n.d(e,"j",(function(){return m})),n.d(e,"e",(function(){return f}));var i=n(274);function o(t,e=0,n=1){return Math.min(Math.max(e,t),n)}function r(t){t=t.slice(1);const e=new RegExp(`.{1,${t.length>=6?2:1}}`,"g");let n=t.match(e);return n&&1===n[0].length&&(n=n.map(t=>t+t)),n?`rgb${4===n.length?"a":""}(${n.map((t,e)=>e<3?parseInt(t,16):Math.round(parseInt(t,16)/255*1e3)/1e3).join(", ")})`:""}function s(t){if(t.type)return t;if("#"===t.charAt(0))return s(r(t));const e=t.indexOf("("),n=t.substring(0,e);if(-1===["rgb","rgba","hsl","hsla","color"].indexOf(n))throw new Error(Object(i.a)(9,t));let o,a=t.substring(e+1,t.length-1);if("color"===n){if(a=a.split(" "),o=a.shift(),4===a.length&&"/"===a[3].charAt(0)&&(a[3]=a[3].slice(1)),-1===["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(o))throw new Error(Object(i.a)(10,o))}else a=a.split(",");return a=a.map(t=>parseFloat(t)),{type:n,values:a,colorSpace:o}}const a=t=>{const e=s(t);return e.values.slice(0,3).map((t,n)=>-1!==e.type.indexOf("hsl")&&0!==n?t+"%":t).join(" ")};function c(t){const{type:e,colorSpace:n}=t;let{values:i}=t;return-1!==e.indexOf("rgb")?i=i.map((t,e)=>e<3?parseInt(t,10):t):-1!==e.indexOf("hsl")&&(i[1]=i[1]+"%",i[2]=i[2]+"%"),i=-1!==e.indexOf("color")?`${n} ${i.join(" ")}`:""+i.join(", "),`${e}(${i})`}function l(t){if(0===t.indexOf("#"))return t;const{values:e}=s(t);return"#"+e.map((t,e)=>function(t){const e=t.toString(16);return 1===e.length?"0"+e:e}(3===e?Math.round(255*t):t)).join("")}function u(t){t=s(t);const{values:e}=t,n=e[0],i=e[1]/100,o=e[2]/100,r=i*Math.min(o,1-o),a=(t,e=(t+n/30)%12)=>o-r*Math.max(Math.min(e-3,9-e,1),-1);let l="rgb";const u=[Math.round(255*a(0)),Math.round(255*a(8)),Math.round(255*a(4))];return"hsla"===t.type&&(l+="a",u.push(e[3])),c({type:l,values:u})}function h(t){let e="hsl"===(t=s(t)).type||"hsla"===t.type?s(u(t)).values:t.values;return e=e.map(e=>("color"!==t.type&&(e/=255),e<=.03928?e/12.92:((e+.055)/1.055)**2.4)),Number((.2126*e[0]+.7152*e[1]+.0722*e[2]).toFixed(3))}function d(t,e){const n=h(t),i=h(e);return(Math.max(n,i)+.05)/(Math.min(n,i)+.05)}function p(t,e){return t=s(t),e=o(e),"rgb"!==t.type&&"hsl"!==t.type||(t.type+="a"),"color"===t.type?t.values[3]="/"+e:t.values[3]=e,c(t)}function _(t,e){if(t=s(t),e=o(e),-1!==t.type.indexOf("hsl"))t.values[2]*=1-e;else if(-1!==t.type.indexOf("rgb")||-1!==t.type.indexOf("color"))for(let n=0;n<3;n+=1)t.values[n]*=1-e;return c(t)}function m(t,e){if(t=s(t),e=o(e),-1!==t.type.indexOf("hsl"))t.values[2]+=(100-t.values[2])*e;else if(-1!==t.type.indexOf("rgb"))for(let n=0;n<3;n+=1)t.values[n]+=(255-t.values[n])*e;else if(-1!==t.type.indexOf("color"))for(let n=0;n<3;n+=1)t.values[n]+=(1-t.values[n])*e;return c(t)}function f(t,e=.15){return h(t)>.5?_(t,e):m(t,e)}},function(t,e,n){"use strict";function i(t,e){if(null==t)return{};var n,i,o={},r=Object.keys(t);for(i=0;i=0||(o[n]=t[n]);return o}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiChip",t)}const s=Object(o.a)("MuiChip",["root","sizeSmall","sizeMedium","colorPrimary","colorSecondary","disabled","clickable","clickableColorPrimary","clickableColorSecondary","deletable","deletableColorPrimary","deletableColorSecondary","outlined","filled","outlinedPrimary","outlinedSecondary","filledPrimary","filledSecondary","avatar","avatarSmall","avatarMedium","avatarColorPrimary","avatarColorSecondary","icon","iconSmall","iconMedium","iconColorPrimary","iconColorSecondary","label","labelSmall","labelMedium","deleteIcon","deleteIconSmall","deleteIconMedium","deleteIconColorPrimary","deleteIconColorSecondary","deleteIconOutlinedColorPrimary","deleteIconOutlinedColorSecondary","deleteIconFilledColorPrimary","deleteIconFilledColorSecondary","focusVisible"]);e.a=s},function(t,e,n){(function(n){var i,o,r;o=[e],void 0===(r="function"==typeof(i=function(t){var e=t;t.isBooleanArray=function(t){return(Array.isArray(t)||t instanceof Int8Array)&&"BooleanArray"===t.$type$},t.isByteArray=function(t){return t instanceof Int8Array&&"BooleanArray"!==t.$type$},t.isShortArray=function(t){return t instanceof Int16Array},t.isCharArray=function(t){return t instanceof Uint16Array&&"CharArray"===t.$type$},t.isIntArray=function(t){return t instanceof Int32Array},t.isFloatArray=function(t){return t instanceof Float32Array},t.isDoubleArray=function(t){return t instanceof Float64Array},t.isLongArray=function(t){return Array.isArray(t)&&"LongArray"===t.$type$},t.isArray=function(t){return Array.isArray(t)&&!t.$type$},t.isArrayish=function(t){return Array.isArray(t)||ArrayBuffer.isView(t)},t.arrayToString=function(e){if(null===e)return"null";var n=t.isCharArray(e)?String.fromCharCode:t.toString;return"["+Array.prototype.map.call(e,(function(t){return n(t)})).join(", ")+"]"},t.arrayEquals=function(e,n){if(e===n)return!0;if(null===e||null===n||!t.isArrayish(n)||e.length!==n.length)return!1;for(var i=0,o=e.length;i>16},t.toByte=function(t){return(255&t)<<24>>24},t.toChar=function(t){return 65535&t},t.numberToInt=function(e){return e instanceof t.Long?e.toInt():t.doubleToInt(e)},t.doubleToInt=function(t){return t>2147483647?2147483647:t<-2147483648?-2147483648:0|t},t.toBoxedChar=function(e){return null==e||e instanceof t.BoxedChar?e:new t.BoxedChar(e)},t.unboxChar=function(e){return null==e?e:t.toChar(e)},t.equals=function(t,e){return null==t?null==e:null!=e&&(t!=t?e!=e:"object"==typeof t&&"function"==typeof t.equals?t.equals(e):"number"==typeof t&&"number"==typeof e?t===e&&(0!==t||1/t==1/e):t===e)},t.hashCode=function(e){if(null==e)return 0;var n=typeof e;return"object"===n?"function"==typeof e.hashCode?e.hashCode():d(e):"function"===n?d(e):"number"===n?t.numberHashCode(e):"boolean"===n?Number(e):function(t){for(var e=0,n=0;n=t.Long.TWO_PWR_63_DBL_?t.Long.MAX_VALUE:e<0?t.Long.fromNumber(-e).negate():new t.Long(e%t.Long.TWO_PWR_32_DBL_|0,e/t.Long.TWO_PWR_32_DBL_|0)},t.Long.fromBits=function(e,n){return new t.Long(e,n)},t.Long.fromString=function(e,n){if(0==e.length)throw Error("number format error: empty string");var i=n||10;if(i<2||36=0)throw Error('number format error: interior "-" character: '+e);for(var o=t.Long.fromNumber(Math.pow(i,8)),r=t.Long.ZERO,s=0;s=0?this.low_:t.Long.TWO_PWR_32_DBL_+this.low_},t.Long.prototype.getNumBitsAbs=function(){if(this.isNegative())return this.equalsLong(t.Long.MIN_VALUE)?64:this.negate().getNumBitsAbs();for(var e=0!=this.high_?this.high_:this.low_,n=31;n>0&&0==(e&1<0},t.Long.prototype.greaterThanOrEqual=function(t){return this.compare(t)>=0},t.Long.prototype.compare=function(t){if(this.equalsLong(t))return 0;var e=this.isNegative(),n=t.isNegative();return e&&!n?-1:!e&&n?1:this.subtract(t).isNegative()?-1:1},t.Long.prototype.negate=function(){return this.equalsLong(t.Long.MIN_VALUE)?t.Long.MIN_VALUE:this.not().add(t.Long.ONE)},t.Long.prototype.add=function(e){var n=this.high_>>>16,i=65535&this.high_,o=this.low_>>>16,r=65535&this.low_,s=e.high_>>>16,a=65535&e.high_,c=e.low_>>>16,l=0,u=0,h=0,d=0;return h+=(d+=r+(65535&e.low_))>>>16,d&=65535,u+=(h+=o+c)>>>16,h&=65535,l+=(u+=i+a)>>>16,u&=65535,l+=n+s,l&=65535,t.Long.fromBits(h<<16|d,l<<16|u)},t.Long.prototype.subtract=function(t){return this.add(t.negate())},t.Long.prototype.multiply=function(e){if(this.isZero())return t.Long.ZERO;if(e.isZero())return t.Long.ZERO;if(this.equalsLong(t.Long.MIN_VALUE))return e.isOdd()?t.Long.MIN_VALUE:t.Long.ZERO;if(e.equalsLong(t.Long.MIN_VALUE))return this.isOdd()?t.Long.MIN_VALUE:t.Long.ZERO;if(this.isNegative())return e.isNegative()?this.negate().multiply(e.negate()):this.negate().multiply(e).negate();if(e.isNegative())return this.multiply(e.negate()).negate();if(this.lessThan(t.Long.TWO_PWR_24_)&&e.lessThan(t.Long.TWO_PWR_24_))return t.Long.fromNumber(this.toNumber()*e.toNumber());var n=this.high_>>>16,i=65535&this.high_,o=this.low_>>>16,r=65535&this.low_,s=e.high_>>>16,a=65535&e.high_,c=e.low_>>>16,l=65535&e.low_,u=0,h=0,d=0,p=0;return d+=(p+=r*l)>>>16,p&=65535,h+=(d+=o*l)>>>16,d&=65535,h+=(d+=r*c)>>>16,d&=65535,u+=(h+=i*l)>>>16,h&=65535,u+=(h+=o*c)>>>16,h&=65535,u+=(h+=r*a)>>>16,h&=65535,u+=n*l+i*c+o*a+r*s,u&=65535,t.Long.fromBits(d<<16|p,u<<16|h)},t.Long.prototype.div=function(e){if(e.isZero())throw Error("division by zero");if(this.isZero())return t.Long.ZERO;if(this.equalsLong(t.Long.MIN_VALUE)){if(e.equalsLong(t.Long.ONE)||e.equalsLong(t.Long.NEG_ONE))return t.Long.MIN_VALUE;if(e.equalsLong(t.Long.MIN_VALUE))return t.Long.ONE;if((o=this.shiftRight(1).div(e).shiftLeft(1)).equalsLong(t.Long.ZERO))return e.isNegative()?t.Long.ONE:t.Long.NEG_ONE;var n=this.subtract(e.multiply(o));return o.add(n.div(e))}if(e.equalsLong(t.Long.MIN_VALUE))return t.Long.ZERO;if(this.isNegative())return e.isNegative()?this.negate().div(e.negate()):this.negate().div(e).negate();if(e.isNegative())return this.div(e.negate()).negate();var i=t.Long.ZERO;for(n=this;n.greaterThanOrEqual(e);){for(var o=Math.max(1,Math.floor(n.toNumber()/e.toNumber())),r=Math.ceil(Math.log(o)/Math.LN2),s=r<=48?1:Math.pow(2,r-48),a=t.Long.fromNumber(o),c=a.multiply(e);c.isNegative()||c.greaterThan(n);)o-=s,c=(a=t.Long.fromNumber(o)).multiply(e);a.isZero()&&(a=t.Long.ONE),i=i.add(a),n=n.subtract(c)}return i},t.Long.prototype.modulo=function(t){return this.subtract(this.div(t).multiply(t))},t.Long.prototype.not=function(){return t.Long.fromBits(~this.low_,~this.high_)},t.Long.prototype.and=function(e){return t.Long.fromBits(this.low_&e.low_,this.high_&e.high_)},t.Long.prototype.or=function(e){return t.Long.fromBits(this.low_|e.low_,this.high_|e.high_)},t.Long.prototype.xor=function(e){return t.Long.fromBits(this.low_^e.low_,this.high_^e.high_)},t.Long.prototype.shiftLeft=function(e){if(0==(e&=63))return this;var n=this.low_;if(e<32){var i=this.high_;return t.Long.fromBits(n<>>32-e)}return t.Long.fromBits(0,n<>>e|n<<32-e,n>>e)}return t.Long.fromBits(n>>e-32,n>=0?0:-1)},t.Long.prototype.shiftRightUnsigned=function(e){if(0==(e&=63))return this;var n=this.high_;if(e<32){var i=this.low_;return t.Long.fromBits(i>>>e|n<<32-e,n>>>e)}return 32==e?t.Long.fromBits(n,0):t.Long.fromBits(n>>>e-32,0)},t.Long.prototype.equals=function(e){return e instanceof t.Long&&this.equalsLong(e)},t.Long.prototype.compareTo_11rb$=t.Long.prototype.compare,t.Long.prototype.inc=function(){return this.add(t.Long.ONE)},t.Long.prototype.dec=function(){return this.add(t.Long.NEG_ONE)},t.Long.prototype.valueOf=function(){return this.toNumber()},t.Long.prototype.unaryPlus=function(){return this},t.Long.prototype.unaryMinus=t.Long.prototype.negate,t.Long.prototype.inv=t.Long.prototype.not,t.Long.prototype.rangeTo=function(e){return new t.kotlin.ranges.LongRange(this,e)},t.defineInlineFunction=function(t,e){return e},t.wrapFunction=function(t){var e=function(){return(e=t()).apply(this,arguments)};return function(){return e.apply(this,arguments)}},t.suspendCall=function(t){return t},t.coroutineResult=function(t){p()},t.coroutineReceiver=function(t){p()},t.setCoroutineResult=function(t,e){p()},t.getReifiedTypeParameterKType=function(t){p()},t.compareTo=function(e,n){var i=typeof e;return"number"===i?"number"==typeof n?t.doubleCompareTo(e,n):t.primitiveCompareTo(e,n):"string"===i||"boolean"===i?t.primitiveCompareTo(e,n):e.compareTo_11rb$(n)},t.primitiveCompareTo=function(t,e){return te?1:0},t.doubleCompareTo=function(t,e){if(te)return 1;if(t===e){if(0!==t)return 0;var n=1/t;return n===1/e?0:n<0?-1:1}return t!=t?e!=e?0:1:-1},t.imul=Math.imul||_,t.imulEmulated=_,i=new ArrayBuffer(8),o=new Float64Array(i),r=new Float32Array(i),s=new Int32Array(i),a=0,c=1,o[0]=-1,0!==s[a]&&(a=1,c=0),t.doubleToRawBits=function(e){return o[0]=e,t.Long.fromBits(s[a],s[c])},t.doubleFromBits=function(t){return s[a]=t.low_,s[c]=t.high_,o[0]},t.floatToRawBits=function(t){return r[0]=t,s[0]},t.floatFromBits=function(t){return s[0]=t,r[0]},t.numberHashCode=function(t){return(0|t)===t?0|t:(o[0]=t,(31*s[c]|0)+s[a]|0)},t.ensureNotNull=function(e){return null!=e?e:t.throwNPE()},void 0===String.prototype.startsWith&&Object.defineProperty(String.prototype,"startsWith",{value:function(t,e){return e=e||0,this.lastIndexOf(t,e)===e}}),void 0===String.prototype.endsWith&&Object.defineProperty(String.prototype,"endsWith",{value:function(t,e){var n=this.toString();(void 0===e||e>n.length)&&(e=n.length),e-=t.length;var i=n.indexOf(t,e);return-1!==i&&i===e}}),void 0===Math.sign&&(Math.sign=function(t){return 0==(t=+t)||isNaN(t)?Number(t):t>0?1:-1}),void 0===Math.trunc&&(Math.trunc=function(t){return isNaN(t)?NaN:t>0?Math.floor(t):Math.ceil(t)}),function(){var t=Math.sqrt(2220446049250313e-31),e=Math.sqrt(t),n=1/t,i=1/e;if(void 0===Math.sinh&&(Math.sinh=function(n){if(Math.abs(n)t&&(i+=n*n*n/6),i}var o=Math.exp(n),r=1/o;return isFinite(o)?isFinite(r)?(o-r)/2:-Math.exp(-n-Math.LN2):Math.exp(n-Math.LN2)}),void 0===Math.cosh&&(Math.cosh=function(t){var e=Math.exp(t),n=1/e;return isFinite(e)&&isFinite(n)?(e+n)/2:Math.exp(Math.abs(t)-Math.LN2)}),void 0===Math.tanh&&(Math.tanh=function(n){if(Math.abs(n)t&&(i-=n*n*n/3),i}var o=Math.exp(+n),r=Math.exp(-n);return o===1/0?1:r===1/0?-1:(o-r)/(o+r)}),void 0===Math.asinh){var o=function(r){if(r>=+e)return r>i?r>n?Math.log(r)+Math.LN2:Math.log(2*r+1/(2*r)):Math.log(r+Math.sqrt(r*r+1));if(r<=-e)return-o(-r);var s=r;return Math.abs(r)>=t&&(s-=r*r*r/6),s};Math.asinh=o}void 0===Math.acosh&&(Math.acosh=function(i){if(i<1)return NaN;if(i-1>=e)return i>n?Math.log(i)+Math.LN2:Math.log(i+Math.sqrt(i*i-1));var o=Math.sqrt(i-1),r=o;return o>=t&&(r-=o*o*o/12),Math.sqrt(2)*r}),void 0===Math.atanh&&(Math.atanh=function(n){if(Math.abs(n)t&&(i+=n*n*n/3),i}return Math.log((1+n)/(1-n))/2}),void 0===Math.log1p&&(Math.log1p=function(t){if(Math.abs(t)>>0;return 0===e?32:31-(l(e)/u|0)|0})),void 0===ArrayBuffer.isView&&(ArrayBuffer.isView=function(t){return null!=t&&null!=t.__proto__&&t.__proto__.__proto__===Int8Array.prototype.__proto__}),void 0===Array.prototype.fill&&Object.defineProperty(Array.prototype,"fill",{value:function(t){if(null==this)throw new TypeError("this is null or not defined");for(var e=Object(this),n=e.length>>>0,i=arguments[1],o=i>>0,r=o<0?Math.max(n+o,0):Math.min(o,n),s=arguments[2],a=void 0===s?n:s>>0,c=a<0?Math.max(n+a,0):Math.min(a,n);re)return 1;if(t===e){if(0!==t)return 0;var n=1/t;return n===1/e?0:n<0?-1:1}return t!=t?e!=e?0:1:-1};for(i=0;i=0}function lt(t,e){return mt(t,e)>=0}function ut(t,e){return ft(t,e)>=0}function ht(t,e){return gt(t,e)>=0}function dt(t,e){return $t(t,e)>=0}function pt(t,e){return Et(t,e)>=0}function _t(t,e){if(null==e){for(var n=0;n!==t.length;++n)if(null==t[n])return n}else for(var i=0;i!==t.length;++i)if(a(e,t[i]))return i;return-1}function mt(t,e){for(var n=0;n!==t.length;++n)if(e===t[n])return n;return-1}function ft(t,e){for(var n=0;n!==t.length;++n)if(e===t[n])return n;return-1}function gt(t,e){for(var n=0;n!==t.length;++n)if(e===t[n])return n;return-1}function $t(t,e){for(var n=0;n!==t.length;++n)if(a(e,t[n]))return n;return-1}function Et(t,e){for(var n=0;n!==t.length;++n)if(e===t[n])return n;return-1}function yt(t,e){var n,i;if(null==e)for(n=ie(St(t)).iterator();n.hasNext();){var o=n.next();if(null==t[o])return o}else for(i=ie(St(t)).iterator();i.hasNext();){var r=i.next();if(a(e,t[r]))return r}return-1}function bt(t){var e;switch(t.length){case 0:throw new Gn("Array is empty.");case 1:e=t[0];break;default:throw wn("Array has more than one element.")}return e}function St(t){return new Ru(0,vt(t))}function vt(t){return t.length-1|0}function Ct(t){return t.length-1|0}function Nt(t,e){var n;for(n=0;n!==t.length;++n){var i=t[n];e.add_11rb$(i)}return e}function Tt(t){return Zi(nc(t))}function Lt(t){var e;switch(t.length){case 0:e=yl();break;case 1:e=Ti(t[0]);break;default:e=Nt(t,jo(t.length))}return e}function zt(t){return Nt(t,jo(t.length))}function wt(t,e,n,i,o,r,s,a){var c;void 0===n&&(n=", "),void 0===i&&(i=""),void 0===o&&(o=""),void 0===r&&(r=-1),void 0===s&&(s="..."),void 0===a&&(a=null),e.append_gw00v9$(i);var l=0;for(c=0;c!==t.length;++c){var u=t[c];if((l=l+1|0)>1&&e.append_gw00v9$(n),!(r<0||l<=r))break;yh(e,u,a)}return r>=0&&l>r&&e.append_gw00v9$(s),e.append_gw00v9$(o),e}function Ot(t,e,n,i,o,r,s,a){var c;void 0===n&&(n=", "),void 0===i&&(i=""),void 0===o&&(o=""),void 0===r&&(r=-1),void 0===s&&(s="..."),void 0===a&&(a=null),e.append_gw00v9$(i);var l=0;for(c=0;c!==t.length;++c){var u=t[c];if((l=l+1|0)>1&&e.append_gw00v9$(n),!(r<0||l<=r))break;null!=a?e.append_gw00v9$(a(u)):e.append_gw00v9$(u.toString())}return r>=0&&l>r&&e.append_gw00v9$(s),e.append_gw00v9$(o),e}function Rt(t){this.closure$iterator=t}function At(e,n){return t.isType(e,Oe)?e.contains_11rb$(n):Ut(e,n)>=0}function xt(e){if(t.isType(e,Ae))return It(e);var n=e.iterator();if(!n.hasNext())throw new Gn("Collection is empty.");return n.next()}function It(t){if(t.isEmpty())throw new Gn("List is empty.");return t.get_za3lpa$(0)}function Ut(e,n){var i;if(t.isType(e,Ae))return e.indexOf_11rb$(n);var o=0;for(i=e.iterator();i.hasNext();){var r=i.next();if(xi(o),a(n,r))return o;o=o+1|0}return-1}function Dt(e){if(t.isType(e,Ae))return Pt(e);var n=e.iterator();if(!n.hasNext())throw new Gn("Collection is empty.");for(var i=n.next();n.hasNext();)i=n.next();return i}function Pt(t){if(t.isEmpty())throw new Gn("List is empty.");return t.get_za3lpa$(cc(t))}function Mt(e){if(t.isType(e,Ae))return kt(e);var n=e.iterator();if(!n.hasNext())throw new Gn("Collection is empty.");var i=n.next();if(n.hasNext())throw wn("Collection has more than one element.");return i}function kt(t){var e;switch(t.size){case 0:throw new Gn("List is empty.");case 1:e=t.get_za3lpa$(0);break;default:throw wn("List has more than one element.")}return e}function jt(t,e){var n;for(n=t.iterator();n.hasNext();){var i=n.next();null!=i&&e.add_11rb$(i)}return e}function Gt(e,n){var i;if(!(n>=0))throw wn(("Requested element count "+n+" is less than zero.").toString());if(0===n)return oc();if(t.isType(e,Oe)){if(n>=e.size)return Wt(e);if(1===n)return Ni(xt(e))}var o=0,r=Qi();for(i=e.iterator();i.hasNext();){var s=i.next();if(r.add_11rb$(s),(o=o+1|0)===n)break}return lc(r)}function qt(t,e){for(var n=cc(t);n>=1;n--){var i=e.nextInt_za3lpa$(n+1|0);t.set_wxm5ur$(i,t.set_wxm5ur$(n,t.get_za3lpa$(i)))}}function Ft(t,e){var n;for(n=t.iterator();n.hasNext();){var i=n.next();e.add_11rb$(i)}return e}function Bt(t){return Ft(t,So(fc(t,12)))}function Wt(e){var n;if(t.isType(e,Oe)){switch(e.size){case 0:n=oc();break;case 1:n=Ni(t.isType(e,Ae)?e.get_za3lpa$(0):e.iterator().next());break;default:n=Vt(e)}return n}return lc(Ht(e))}function Ht(e){return t.isType(e,Oe)?Vt(e):Ft(e,Yi())}function Vt(t){return Zi(t)}function Kt(e){var n;if(t.isType(e,Oe)){switch(e.size){case 0:n=yl();break;case 1:n=Ti(t.isType(e,Ae)?e.get_za3lpa$(0):e.iterator().next());break;default:n=Ft(e,jo(e.size))}return n}return Sl(Ft(e,Po()))}function Xt(e){return t.isType(e,Oe)?Mo(e):Ft(e,Po())}function Jt(e){var n=e.iterator();if(!n.hasNext())return null;for(var i=n.next();n.hasNext();){var o=n.next();t.compareTo(i,o)>0&&(i=o)}return i}function Yt(e,n){if(t.isType(n,Oe)){var i=Qi((e.size,n.size));return i.addAll_brywnq$(e),i.addAll_brywnq$(n),i}var o=Zi(e);return Ic(o,n),o}function Qt(t,e,n,i,o,r,s,a){var c;void 0===n&&(n=", "),void 0===i&&(i=""),void 0===o&&(o=""),void 0===r&&(r=-1),void 0===s&&(s="..."),void 0===a&&(a=null),e.append_gw00v9$(i);var l=0;for(c=t.iterator();c.hasNext();){var u=c.next();if((l=l+1|0)>1&&e.append_gw00v9$(n),!(r<0||l<=r))break;yh(e,u,a)}return r>=0&&l>r&&e.append_gw00v9$(s),e.append_gw00v9$(o),e}function Zt(t,e,n,i,o,r,s){return void 0===e&&(e=", "),void 0===n&&(n=""),void 0===i&&(i=""),void 0===o&&(o=-1),void 0===r&&(r="..."),void 0===s&&(s=null),Qt(t,cs(),e,n,i,o,r,s).toString()}function te(t){return new Rt((e=t,function(){return e.iterator()}));var e}function ee(t){var e=String.fromCharCode(t).toUpperCase();if(e.length>1){var n;if(329===t)n=e;else{var i=e.charCodeAt(0),o=e.substring(1).toLowerCase();n=String.fromCharCode(i)+o}return n}return String.fromCharCode(us(t))}function ne(t,e){return Xu().fromClosedRange_qt1dr2$(t,e,-1)}function ie(t){return Xu().fromClosedRange_qt1dr2$(t.last,t.first,0|-t.step)}function oe(t){return $.lessThanOrEqual(t)&&t.lessThanOrEqual(E)?t.toInt():null}function re(t,e){return e<=-2147483648?Iu().EMPTY:new Ru(t,e-1|0)}function se(t,e){return te?e:t}function ce(t,e,n){if(e>n)throw wn("Cannot coerce value to an empty range: maximum "+n+" is less than minimum "+e+".");return tn?n:t}function le(t,e,n){if(e.compareTo_11rb$(n)>0)throw wn("Cannot coerce value to an empty range: maximum "+n.toString()+" is less than minimum "+e.toString()+".");return t.compareTo_11rb$(e)<0?e:t.compareTo_11rb$(n)>0?n:t}function ue(t,e){if(e.isEmpty())throw wn("Cannot coerce value to an empty range: "+e+".");return e.lessThanOrEquals_n65qkk$(t,e.start)&&!e.lessThanOrEquals_n65qkk$(e.start,t)?e.start:e.lessThanOrEquals_n65qkk$(e.endInclusive,t)&&!e.lessThanOrEquals_n65qkk$(t,e.endInclusive)?e.endInclusive:t}function he(e,n){if(t.isType(n,oh))return ue(e,n);if(n.isEmpty())throw wn("Cannot coerce value to an empty range: "+n+".");return e.compareTo_11rb$(n.start)<0?n.start:e.compareTo_11rb$(n.endInclusive)>0?n.endInclusive:e}function de(t){this.closure$iterator=t}function pe(t,e){return new il(t,!1,e)}function _e(t){return null==t}function me(e){var n;return t.isType(n=pe(e,_e),Vc)?n:Jo()}function fe(e,n){if(!(n>=0))throw wn(("Requested element count "+n+" is less than zero.").toString());return 0===n?Zc():t.isType(e,ll)?e.take_za3lpa$(n):new dl(e,n)}function ge(t,e){var n;for(n=t.iterator();n.hasNext();){var i=n.next();e.add_11rb$(i)}return e}function $e(t){return lc(Ee(t))}function Ee(t){return ge(t,Yi())}function ye(t,e){return new rl(t,e)}function be(t){return new de((e=t,function(){return e.iterator()}));var e}function Se(t){if(0===t.length)throw new Gn("Char sequence is empty.");return t.charCodeAt(Bh(t))}function ve(t,e){if(!(e>=0))throw wn(("Requested character count "+e+" is less than zero.").toString());return t.substring(ae(e,t.length))}function Ce(t,e){if(!(e>=0))throw wn(("Requested character count "+e+" is less than zero.").toString());return Ne(t,se(t.length-e|0,0))}function Ne(t,e){if(!(e>=0))throw wn(("Requested character count "+e+" is less than zero.").toString());return t.substring(0,ae(e,t.length))}function Te(){}function Le(){}function ze(){}function we(){}function Oe(){}function Re(){}function Ae(){}function xe(){}function Ie(){}function Ue(){}function De(){}function Pe(){}function Me(){}function ke(){}function je(){}function Ge(){}function qe(){}function Fe(){}function Be(){We=this}vn.prototype=Object.create(I.prototype),vn.prototype.constructor=vn,Nn.prototype=Object.create(vn.prototype),Nn.prototype.constructor=Nn,Ke.prototype=Object.create(Hc.prototype),Ke.prototype.constructor=Ke,Je.prototype=Object.create(kc.prototype),Je.prototype.constructor=Je,Qe.prototype=Object.create(Gc.prototype),Qe.prototype.constructor=Qe,tn.prototype=Object.create(jc.prototype),tn.prototype.constructor=tn,nn.prototype=Object.create(qc.prototype),nn.prototype.constructor=nn,rn.prototype=Object.create(Bc.prototype),rn.prototype.constructor=rn,an.prototype=Object.create(Wc.prototype),an.prototype.constructor=an,ln.prototype=Object.create(Fc.prototype),ln.prototype.constructor=ln,bn.prototype=Object.create(I.prototype),bn.prototype.constructor=bn,Ln.prototype=Object.create(Nn.prototype),Ln.prototype.constructor=Ln,On.prototype=Object.create(Nn.prototype),On.prototype.constructor=On,An.prototype=Object.create(Nn.prototype),An.prototype.constructor=An,xn.prototype=Object.create(Nn.prototype),xn.prototype.constructor=xn,Dn.prototype=Object.create(Ln.prototype),Dn.prototype.constructor=Dn,Pn.prototype=Object.create(Nn.prototype),Pn.prototype.constructor=Pn,Mn.prototype=Object.create(Nn.prototype),Mn.prototype.constructor=Mn,kn.prototype=Object.create(bn.prototype),kn.prototype.constructor=kn,Gn.prototype=Object.create(Nn.prototype),Gn.prototype.constructor=Gn,Fn.prototype=Object.create(Nn.prototype),Fn.prototype.constructor=Fn,Bn.prototype=Object.create(Nn.prototype),Bn.prototype.constructor=Bn,Hn.prototype=Object.create(Nn.prototype),Hn.prototype.constructor=Hn,Oa.prototype=Object.create(wa.prototype),Oa.prototype.constructor=Oa,Pi.prototype=Object.create(wa.prototype),Pi.prototype.constructor=Pi,ji.prototype=Object.create(ki.prototype),ji.prototype.constructor=ji,Mi.prototype=Object.create(Pi.prototype),Mi.prototype.constructor=Mi,Gi.prototype=Object.create(Mi.prototype),Gi.prototype.constructor=Gi,Xi.prototype=Object.create(Pi.prototype),Xi.prototype.constructor=Xi,Bi.prototype=Object.create(Xi.prototype),Bi.prototype.constructor=Bi,Wi.prototype=Object.create(Xi.prototype),Wi.prototype.constructor=Wi,Vi.prototype=Object.create(Pi.prototype),Vi.prototype.constructor=Vi,qi.prototype=Object.create(Pa.prototype),qi.prototype.constructor=qi,Ji.prototype=Object.create(Mi.prototype),Ji.prototype.constructor=Ji,mo.prototype=Object.create(Bi.prototype),mo.prototype.constructor=mo,_o.prototype=Object.create(qi.prototype),_o.prototype.constructor=_o,yo.prototype=Object.create(Xi.prototype),yo.prototype.constructor=yo,wo.prototype=Object.create(Fi.prototype),wo.prototype.constructor=wo,Oo.prototype=Object.create(Bi.prototype),Oo.prototype.constructor=Oo,zo.prototype=Object.create(_o.prototype),zo.prototype.constructor=zo,Do.prototype=Object.create(yo.prototype),Do.prototype.constructor=Do,Fo.prototype=Object.create(qo.prototype),Fo.prototype.constructor=Fo,Bo.prototype=Object.create(qo.prototype),Bo.prototype.constructor=Bo,Wo.prototype=Object.create(Bo.prototype),Wo.prototype.constructor=Wo,Vo.prototype=Object.create(On.prototype),Vo.prototype.constructor=Vo,Xo.prototype=Object.create(Oa.prototype),Xo.prototype.constructor=Xo,mr.prototype=Object.create(_r.prototype),mr.prototype.constructor=mr,fr.prototype=Object.create(_r.prototype),fr.prototype.constructor=fr,gr.prototype=Object.create(_r.prototype),gr.prototype.constructor=gr,rs.prototype=Object.create(vn.prototype),rs.prototype.constructor=rs,bs.prototype=Object.create(O.prototype),bs.prototype.constructor=bs,Hs.prototype=Object.create(Oa.prototype),Hs.prototype.constructor=Hs,Vs.prototype=Object.create(wa.prototype),Vs.prototype.constructor=Vs,ga.prototype=Object.create(O.prototype),ga.prototype.constructor=ga,Ra.prototype=Object.create(Oa.prototype),Ra.prototype.constructor=Ra,xa.prototype=Object.create(Aa.prototype),xa.prototype.constructor=xa,Wa.prototype=Object.create(wa.prototype),Wa.prototype.constructor=Wa,Ma.prototype=Object.create(Wa.prototype),Ma.prototype.constructor=Ma,ja.prototype=Object.create(wa.prototype),ja.prototype.constructor=ja,Qc.prototype=Object.create(Yc.prototype),Qc.prototype.constructor=Qc,Ql.prototype=Object.create(O.prototype),Ql.prototype.constructor=Ql,hu.prototype=Object.create(uu.prototype),hu.prototype.constructor=hu,vu.prototype=Object.create(uu.prototype),vu.prototype.constructor=vu,Lu.prototype=Object.create(qu.prototype),Lu.prototype.constructor=Lu,Ru.prototype=Object.create(Hu.prototype),Ru.prototype.constructor=Ru,Uu.prototype=Object.create(Ju.prototype),Uu.prototype.constructor=Uu,ku.prototype=Object.create(jc.prototype),ku.prototype.constructor=ku,ju.prototype=Object.create(qc.prototype),ju.prototype.constructor=ju,Gu.prototype=Object.create(Fc.prototype),Gu.prototype.constructor=Gu,mh.prototype=Object.create(O.prototype),mh.prototype.constructor=mh,Gh.prototype=Object.create(jc.prototype),Gh.prototype.constructor=Gh,Kd.prototype=Object.create(Vd.prototype),Kd.prototype.constructor=Kd,Jd.prototype=Object.create(O.prototype),Jd.prototype.constructor=Jd,pp.prototype=Object.create(bn.prototype),pp.prototype.constructor=pp,wp.prototype=Object.create(xp.prototype),wp.prototype.constructor=wp,Bp.prototype=Object.create(Kp.prototype),Bp.prototype.constructor=Bp,Rt.prototype.iterator=function(){return this.closure$iterator()},Rt.$metadata$={kind:o,interfaces:[Vc]},de.prototype.iterator=function(){return this.closure$iterator()},de.$metadata$={kind:o,interfaces:[ze]},Te.$metadata$={kind:z,simpleName:"Annotation",interfaces:[]},Le.$metadata$={kind:z,simpleName:"CharSequence",interfaces:[]},ze.$metadata$={kind:z,simpleName:"Iterable",interfaces:[]},we.$metadata$={kind:z,simpleName:"MutableIterable",interfaces:[ze]},Oe.$metadata$={kind:z,simpleName:"Collection",interfaces:[ze]},Re.$metadata$={kind:z,simpleName:"MutableCollection",interfaces:[we,Oe]},Ae.$metadata$={kind:z,simpleName:"List",interfaces:[Oe]},xe.$metadata$={kind:z,simpleName:"MutableList",interfaces:[Re,Ae]},Ie.$metadata$={kind:z,simpleName:"Set",interfaces:[Oe]},Ue.$metadata$={kind:z,simpleName:"MutableSet",interfaces:[Re,Ie]},De.prototype.getOrDefault_xwzc9p$=function(t,e){throw new pp},Pe.$metadata$={kind:z,simpleName:"Entry",interfaces:[]},De.$metadata$={kind:z,simpleName:"Map",interfaces:[]},Me.prototype.remove_xwzc9p$=function(t,e){return!0},ke.$metadata$={kind:z,simpleName:"MutableEntry",interfaces:[Pe]},Me.$metadata$={kind:z,simpleName:"MutableMap",interfaces:[De]},je.$metadata$={kind:z,simpleName:"Iterator",interfaces:[]},Ge.$metadata$={kind:z,simpleName:"MutableIterator",interfaces:[je]},qe.$metadata$={kind:z,simpleName:"ListIterator",interfaces:[je]},Fe.$metadata$={kind:z,simpleName:"MutableListIterator",interfaces:[Ge,qe]},Be.prototype.toString=function(){return"kotlin.Unit"},Be.$metadata$={kind:w,simpleName:"Unit",interfaces:[]};var We=null;function He(){return null===We&&new Be,We}function Ve(t){this.closure$arr=t,this.index=0}function Ke(t){this.closure$array=t,Hc.call(this),this.index=0}function Xe(t){return new Ke(t)}function Je(t){this.closure$array=t,kc.call(this),this.index=0}function Ye(t){return new Je(t)}function Qe(t){this.closure$array=t,Gc.call(this),this.index=0}function Ze(t){return new Qe(t)}function tn(t){this.closure$array=t,jc.call(this),this.index=0}function en(t){return new tn(t)}function nn(t){this.closure$array=t,qc.call(this),this.index=0}function on(t){return new nn(t)}function rn(t){this.closure$array=t,Bc.call(this),this.index=0}function sn(t){return new rn(t)}function an(t){this.closure$array=t,Wc.call(this),this.index=0}function cn(t){return new an(t)}function ln(t){this.closure$array=t,Fc.call(this),this.index=0}function un(t){return new ln(t)}function hn(t){this.callableName=t}function dn(t){this.c=t}function pn(t){this.resultContinuation_0=t,this.state_0=0,this.exceptionState_0=0,this.result_0=null,this.exception_0=null,this.finallyPath_0=null,this.context_hxcuhl$_0=this.resultContinuation_0.context,this.intercepted__0=null}function _n(){mn=this}Ve.prototype.hasNext=function(){return this.indexr)for(o.length=e;r=0))throw wn(("Invalid new array size: "+e+".").toString());return Kn(t,new Int8Array(e))}function Zn(t,e,n){return Da().checkRangeIndexes_cub51b$(e,n,t.length),t.slice(e,n)}function ti(t){t.length>1&&no(t)}function ei(t,e){t.length>1&&to(t,e)}function ni(t,e,n){var i,o,r=new Int32Array(n),s=0,a=0,c=0;for(i=qh(t);i.hasNext();){var u=e[0|l(i.next())];a|=(31&u)<=0?e:n}function ri(){si=this,this.rangeStart_8be2vx$=new Int32Array([48,1632,1776,1984,2406,2534,2662,2790,2918,3046,3174,3302,3430,3558,3664,3792,3872,4160,4240,6112,6160,6470,6608,6784,6800,6992,7088,7232,7248,42528,43216,43264,43472,43504,43600,44016,65296])}gn.prototype=Object.create(pn.prototype),gn.prototype.constructor=gn,gn.prototype.doResume=function(){var t;if(null!=(t=this.exception_0))throw t;return this.closure$block()},gn.$metadata$={kind:o,interfaces:[pn]},Object.defineProperty(bn.prototype,"message",{get:function(){return this.message_q7r8iu$_0}}),Object.defineProperty(bn.prototype,"cause",{get:function(){return this.cause_us9j0c$_0}}),bn.$metadata$={kind:o,simpleName:"Error",interfaces:[I]},Object.defineProperty(vn.prototype,"message",{get:function(){return this.message_8yp7un$_0}}),Object.defineProperty(vn.prototype,"cause",{get:function(){return this.cause_th0jdv$_0}}),vn.$metadata$={kind:o,simpleName:"Exception",interfaces:[I]},Nn.$metadata$={kind:o,simpleName:"RuntimeException",interfaces:[vn]},Ln.$metadata$={kind:o,simpleName:"IllegalArgumentException",interfaces:[Nn]},On.$metadata$={kind:o,simpleName:"IllegalStateException",interfaces:[Nn]},An.$metadata$={kind:o,simpleName:"IndexOutOfBoundsException",interfaces:[Nn]},xn.$metadata$={kind:o,simpleName:"UnsupportedOperationException",interfaces:[Nn]},Dn.$metadata$={kind:o,simpleName:"NumberFormatException",interfaces:[Ln]},Pn.$metadata$={kind:o,simpleName:"NullPointerException",interfaces:[Nn]},Mn.$metadata$={kind:o,simpleName:"ClassCastException",interfaces:[Nn]},kn.$metadata$={kind:o,simpleName:"AssertionError",interfaces:[bn]},Gn.$metadata$={kind:o,simpleName:"NoSuchElementException",interfaces:[Nn]},Fn.$metadata$={kind:o,simpleName:"ArithmeticException",interfaces:[Nn]},Bn.$metadata$={kind:o,simpleName:"NoWhenBranchMatchedException",interfaces:[Nn]},Hn.$metadata$={kind:o,simpleName:"UninitializedPropertyAccessException",interfaces:[Nn]},ri.$metadata$={kind:w,simpleName:"Digit",interfaces:[]};var si=null;function ai(){return null===si&&new ri,si}function ci(t,e){for(var n=0,i=t.length-1|0,o=-1,r=0;n<=i;)if(e>(r=t[o=(n+i|0)/2|0]))n=o+1|0;else{if(e===r)return o;i=o-1|0}return o-(eo)return 0;var s=3&r;if(0===s){for(var a=2,c=i,l=0;l<=1;l++){if((c=c+(r>>a&127)|0)>e)return 3;if((c=c+(r>>(a=a+7|0)&127)|0)>e)return 0;a=a+7|0}return 3}if(r<=7)return s;var u=e-i|0;return r>>(2*(r<=31?u%2|0:u)|0)&3}(t);return e||(e=$i(0|t)),e}function _i(){fi=this,this.otherLowerStart_8be2vx$=new Int32Array([170,186,688,704,736,837,890,7468,7544,7579,8305,8319,8336,8560,9424,11388,42652,42864,43e3,43868]),this.otherLowerLength_8be2vx$=new Int32Array([1,1,9,2,5,1,1,63,1,37,1,1,13,16,26,2,2,1,2,4])}_i.$metadata$={kind:w,simpleName:"OtherLowercase",interfaces:[]};var mi,fi=null;function gi(){return null===fi&&new _i,fi}function $i(t){var e=ci(gi().otherLowerStart_8be2vx$,t);return e>=0&&t<(gi().otherLowerStart_8be2vx$[e]+gi().otherLowerLength_8be2vx$[e]|0)}function Ei(t){var e=0|t;return 452<=e&&e<=460||497<=e&&e<=499?p(3*((e+1|0)/3|0)|0):4304<=e&&e<=4346||4349<=e&&e<=4351?t:ls(t)}function yi(t){var e=0|t;return 9<=e&&e<=13||28<=e&&e<=32||160===e||e>4096&&(5760===e||8192<=e&&e<=8202||8232===e||8233===e||8239===e||8287===e||12288===e)}function bi(t){this.function$=t}function Si(t){return void 0!==t.toArray?t.toArray():vi(t)}function vi(t){for(var e=[],n=t.iterator();n.hasNext();)e.push(n.next());return e}function Ci(t,e){var n;if(e.length=0;c--)e[n+c|0]=t[i+c|0]}function xi(t){return t<0&&uc(),t}function Ii(t){return t<0&&hc(),t}function Ui(t){return t}function Di(){return!1}function Pi(){wa.call(this)}function Mi(){Pi.call(this),this.modCount=0}function ki(t){this.$outer=t,this.index_0=0,this.last_0=-1}function ji(t,e){this.$outer=t,ki.call(this,this.$outer),Da().checkPositionIndex_6xvm5r$(e,this.$outer.size),this.index_0=e}function Gi(t,e,n){Mi.call(this),this.list_0=t,this.fromIndex_0=e,this._size_0=0,Da().checkRangeIndexes_cub51b$(this.fromIndex_0,n,this.list_0.size),this._size_0=n-this.fromIndex_0|0}function qi(){Pa.call(this),this._keys_qe2m0n$_0=null,this._values_kxdlqh$_0=null}function Fi(t,e){this.key_5xhq3d$_0=t,this._value_0=e}function Bi(){Xi.call(this)}function Wi(t){this.this$AbstractMutableMap=t,Xi.call(this)}function Hi(t){this.closure$entryIterator=t}function Vi(t){this.this$AbstractMutableMap=t,Pi.call(this)}function Ki(t){this.closure$entryIterator=t}function Xi(){Pi.call(this)}function Ji(t){Mi.call(this),this.array_hd7ov6$_0=t,this.isReadOnly_dbt2oh$_0=!1}function Yi(t){return t=t||Object.create(Ji.prototype),Ji.call(t,[]),t}function Qi(t,e){return e=e||Object.create(Ji.prototype),Ji.call(e,[]),e}function Zi(t,e){return e=e||Object.create(Ji.prototype),Ji.call(e,Si(t)),e}function to(t,e){if(oo()){var n=(i=e,function(t,e){return i.compare(t,e)});t.sort(n)}else ro(t,0,vt(t),e);var i}function eo(e,n){return t.compareTo(e,n)}function no(t){if(oo()){var e=eo;t.sort(e)}else ro(t,0,vt(t),vl())}function io(t,e){return(3&t)-(3&e)|0}function oo(){if(null!=mi)return mi;mi=!1;for(var t=[],e=0;e<600;e++)t.push(e);var n=io;t.sort(n);for(var i=1;i=r)return!1}return mi=!0,!0}function ro(e,n,i,o){var r=function t(e,n,i,o,r){if(i===o)return e;for(var s=(i+o|0)/2|0,a=t(e,n,i,s,r),c=t(e,n,s+1|0,o,r),l=a===n?e:n,u=i,h=s+1|0,d=i;d<=o;d++)if(u<=s&&h<=o){var p=a[u],_=c[h];r.compare(p,_)<=0?(l[d]=p,u=u+1|0):(l[d]=_,h=h+1|0)}else u<=s?(l[d]=a[u],u=u+1|0):(l[d]=c[h],h=h+1|0);return l}(e,t.newArray(e.length,null),n,i,o);if(r!==e)for(var s=n;s<=i;s++)e[s]=r[s]}function so(){}function ao(){ho=this}bi.prototype.compare=function(t,e){return this.function$(t,e)},bi.$metadata$={kind:z,simpleName:"Comparator",interfaces:[]},Pi.prototype.remove_11rb$=function(t){this.checkIsMutable();for(var e=this.iterator();e.hasNext();)if(a(e.next(),t))return e.remove(),!0;return!1},Pi.prototype.addAll_brywnq$=function(t){var e;this.checkIsMutable();var n=!1;for(e=t.iterator();e.hasNext();){var i=e.next();this.add_11rb$(i)&&(n=!0)}return n},Pi.prototype.removeAll_brywnq$=function(e){var n;return this.checkIsMutable(),Dc(t.isType(this,we)?this:Jo(),(n=e,function(t){return n.contains_11rb$(t)}))},Pi.prototype.retainAll_brywnq$=function(e){var n;return this.checkIsMutable(),Dc(t.isType(this,we)?this:Jo(),(n=e,function(t){return!n.contains_11rb$(t)}))},Pi.prototype.clear=function(){this.checkIsMutable();for(var t=this.iterator();t.hasNext();)t.next(),t.remove()},Pi.prototype.toJSON=function(){return this.toArray()},Pi.prototype.checkIsMutable=function(){},Pi.$metadata$={kind:o,simpleName:"AbstractMutableCollection",interfaces:[Re,wa]},Mi.prototype.add_11rb$=function(t){return this.checkIsMutable(),this.add_wxm5ur$(this.size,t),!0},Mi.prototype.addAll_u57x28$=function(t,e){var n,i;Da().checkPositionIndex_6xvm5r$(t,this.size),this.checkIsMutable();var o=t,r=!1;for(n=e.iterator();n.hasNext();){var s=n.next();this.add_wxm5ur$((o=(i=o)+1|0,i),s),r=!0}return r},Mi.prototype.clear=function(){this.checkIsMutable(),this.removeRange_vux9f0$(0,this.size)},Mi.prototype.removeAll_brywnq$=function(t){return this.checkIsMutable(),Mc(this,(e=t,function(t){return e.contains_11rb$(t)}));var e},Mi.prototype.retainAll_brywnq$=function(t){return this.checkIsMutable(),Mc(this,(e=t,function(t){return!e.contains_11rb$(t)}));var e},Mi.prototype.iterator=function(){return new ki(this)},Mi.prototype.contains_11rb$=function(t){return this.indexOf_11rb$(t)>=0},Mi.prototype.indexOf_11rb$=function(t){var e;e=cc(this);for(var n=0;n<=e;n++)if(a(this.get_za3lpa$(n),t))return n;return-1},Mi.prototype.lastIndexOf_11rb$=function(t){for(var e=cc(this);e>=0;e--)if(a(this.get_za3lpa$(e),t))return e;return-1},Mi.prototype.listIterator=function(){return this.listIterator_za3lpa$(0)},Mi.prototype.listIterator_za3lpa$=function(t){return new ji(this,t)},Mi.prototype.subList_vux9f0$=function(t,e){return new Gi(this,t,e)},Mi.prototype.removeRange_vux9f0$=function(t,e){for(var n=this.listIterator_za3lpa$(t),i=e-t|0,o=0;o0},ji.prototype.nextIndex=function(){return this.index_0},ji.prototype.previous=function(){if(!this.hasPrevious())throw qn();return this.last_0=(this.index_0=this.index_0-1|0,this.index_0),this.$outer.get_za3lpa$(this.last_0)},ji.prototype.previousIndex=function(){return this.index_0-1|0},ji.prototype.add_11rb$=function(t){this.$outer.add_wxm5ur$(this.index_0,t),this.index_0=this.index_0+1|0,this.last_0=-1},ji.prototype.set_11rb$=function(t){if(-1===this.last_0)throw Rn("Call next() or previous() before updating element value with the iterator.".toString());this.$outer.set_wxm5ur$(this.last_0,t)},ji.$metadata$={kind:o,simpleName:"ListIteratorImpl",interfaces:[Fe,ki]},Gi.prototype.add_wxm5ur$=function(t,e){Da().checkPositionIndex_6xvm5r$(t,this._size_0),this.list_0.add_wxm5ur$(this.fromIndex_0+t|0,e),this._size_0=this._size_0+1|0},Gi.prototype.get_za3lpa$=function(t){return Da().checkElementIndex_6xvm5r$(t,this._size_0),this.list_0.get_za3lpa$(this.fromIndex_0+t|0)},Gi.prototype.removeAt_za3lpa$=function(t){Da().checkElementIndex_6xvm5r$(t,this._size_0);var e=this.list_0.removeAt_za3lpa$(this.fromIndex_0+t|0);return this._size_0=this._size_0-1|0,e},Gi.prototype.set_wxm5ur$=function(t,e){return Da().checkElementIndex_6xvm5r$(t,this._size_0),this.list_0.set_wxm5ur$(this.fromIndex_0+t|0,e)},Object.defineProperty(Gi.prototype,"size",{configurable:!0,get:function(){return this._size_0}}),Gi.prototype.checkIsMutable=function(){this.list_0.checkIsMutable()},Gi.$metadata$={kind:o,simpleName:"SubList",interfaces:[Go,Mi]},Mi.$metadata$={kind:o,simpleName:"AbstractMutableList",interfaces:[xe,Pi]},Object.defineProperty(Fi.prototype,"key",{get:function(){return this.key_5xhq3d$_0}}),Object.defineProperty(Fi.prototype,"value",{configurable:!0,get:function(){return this._value_0}}),Fi.prototype.setValue_11rc$=function(t){var e=this._value_0;return this._value_0=t,e},Fi.prototype.hashCode=function(){return Ba().entryHashCode_9fthdn$(this)},Fi.prototype.toString=function(){return Ba().entryToString_9fthdn$(this)},Fi.prototype.equals=function(t){return Ba().entryEquals_js7fox$(this,t)},Fi.$metadata$={kind:o,simpleName:"SimpleEntry",interfaces:[ke]},Bi.prototype.contains_11rb$=function(t){return this.containsEntry_kw6fkd$(t)},Bi.prototype.remove_11rb$=function(t){return this.removeEntry_kw6fkd$(t)},Bi.$metadata$={kind:o,simpleName:"AbstractEntrySet",interfaces:[Xi]},qi.prototype.clear=function(){this.entries.clear()},Wi.prototype.add_11rb$=function(t){throw Un("Add is not supported on keys")},Wi.prototype.clear=function(){this.this$AbstractMutableMap.clear()},Wi.prototype.contains_11rb$=function(t){return this.this$AbstractMutableMap.containsKey_11rb$(t)},Hi.prototype.hasNext=function(){return this.closure$entryIterator.hasNext()},Hi.prototype.next=function(){return this.closure$entryIterator.next().key},Hi.prototype.remove=function(){this.closure$entryIterator.remove()},Hi.$metadata$={kind:o,interfaces:[Ge]},Wi.prototype.iterator=function(){return new Hi(this.this$AbstractMutableMap.entries.iterator())},Wi.prototype.remove_11rb$=function(t){return this.checkIsMutable(),!!this.this$AbstractMutableMap.containsKey_11rb$(t)&&(this.this$AbstractMutableMap.remove_11rb$(t),!0)},Object.defineProperty(Wi.prototype,"size",{configurable:!0,get:function(){return this.this$AbstractMutableMap.size}}),Wi.prototype.checkIsMutable=function(){this.this$AbstractMutableMap.checkIsMutable()},Wi.$metadata$={kind:o,interfaces:[Xi]},Object.defineProperty(qi.prototype,"keys",{configurable:!0,get:function(){return null==this._keys_qe2m0n$_0&&(this._keys_qe2m0n$_0=new Wi(this)),A(this._keys_qe2m0n$_0)}}),qi.prototype.putAll_a2k3zr$=function(t){var e;for(this.checkIsMutable(),e=t.entries.iterator();e.hasNext();){var n=e.next(),i=n.key,o=n.value;this.put_xwzc9p$(i,o)}},Vi.prototype.add_11rb$=function(t){throw Un("Add is not supported on values")},Vi.prototype.clear=function(){this.this$AbstractMutableMap.clear()},Vi.prototype.contains_11rb$=function(t){return this.this$AbstractMutableMap.containsValue_11rc$(t)},Ki.prototype.hasNext=function(){return this.closure$entryIterator.hasNext()},Ki.prototype.next=function(){return this.closure$entryIterator.next().value},Ki.prototype.remove=function(){this.closure$entryIterator.remove()},Ki.$metadata$={kind:o,interfaces:[Ge]},Vi.prototype.iterator=function(){return new Ki(this.this$AbstractMutableMap.entries.iterator())},Object.defineProperty(Vi.prototype,"size",{configurable:!0,get:function(){return this.this$AbstractMutableMap.size}}),Vi.prototype.checkIsMutable=function(){this.this$AbstractMutableMap.checkIsMutable()},Vi.$metadata$={kind:o,interfaces:[Pi]},Object.defineProperty(qi.prototype,"values",{configurable:!0,get:function(){return null==this._values_kxdlqh$_0&&(this._values_kxdlqh$_0=new Vi(this)),A(this._values_kxdlqh$_0)}}),qi.prototype.remove_11rb$=function(t){this.checkIsMutable();for(var e=this.entries.iterator();e.hasNext();){var n=e.next(),i=n.key;if(a(t,i)){var o=n.value;return e.remove(),o}}return null},qi.prototype.checkIsMutable=function(){},qi.$metadata$={kind:o,simpleName:"AbstractMutableMap",interfaces:[Me,Pa]},Xi.prototype.equals=function(e){return e===this||!!t.isType(e,Ie)&&Ka().setEquals_y8f7en$(this,e)},Xi.prototype.hashCode=function(){return Ka().unorderedHashCode_nykoif$(this)},Xi.$metadata$={kind:o,simpleName:"AbstractMutableSet",interfaces:[Ue,Pi]},Ji.prototype.build=function(){return this.checkIsMutable(),this.isReadOnly_dbt2oh$_0=!0,this},Ji.prototype.trimToSize=function(){},Ji.prototype.ensureCapacity_za3lpa$=function(t){},Object.defineProperty(Ji.prototype,"size",{configurable:!0,get:function(){return this.array_hd7ov6$_0.length}}),Ji.prototype.get_za3lpa$=function(e){var n;return null==(n=this.array_hd7ov6$_0[this.rangeCheck_xcmk5o$_0(e)])||t.isType(n,x)?n:Jo()},Ji.prototype.set_wxm5ur$=function(e,n){var i;this.checkIsMutable(),this.rangeCheck_xcmk5o$_0(e);var o=this.array_hd7ov6$_0[e];return this.array_hd7ov6$_0[e]=n,null==(i=o)||t.isType(i,x)?i:Jo()},Ji.prototype.add_11rb$=function(t){return this.checkIsMutable(),this.array_hd7ov6$_0.push(t),this.modCount=this.modCount+1|0,!0},Ji.prototype.add_wxm5ur$=function(t,e){this.checkIsMutable(),this.array_hd7ov6$_0.splice(this.insertionRangeCheck_xwivfl$_0(t),0,e),this.modCount=this.modCount+1|0},Ji.prototype.addAll_brywnq$=function(t){return this.checkIsMutable(),!t.isEmpty()&&(this.array_hd7ov6$_0=this.array_hd7ov6$_0.concat(Si(t)),this.modCount=this.modCount+1|0,!0)},Ji.prototype.addAll_u57x28$=function(t,e){return this.checkIsMutable(),this.insertionRangeCheck_xwivfl$_0(t),t===this.size?this.addAll_brywnq$(e):!e.isEmpty()&&(t===this.size?this.addAll_brywnq$(e):(this.array_hd7ov6$_0=0===t?Si(e).concat(this.array_hd7ov6$_0):Zn(this.array_hd7ov6$_0,0,t).concat(Si(e),Zn(this.array_hd7ov6$_0,t,this.size)),this.modCount=this.modCount+1|0,!0))},Ji.prototype.removeAt_za3lpa$=function(t){return this.checkIsMutable(),this.rangeCheck_xcmk5o$_0(t),this.modCount=this.modCount+1|0,t===cc(this)?this.array_hd7ov6$_0.pop():this.array_hd7ov6$_0.splice(t,1)[0]},Ji.prototype.remove_11rb$=function(t){var e;this.checkIsMutable(),e=this.array_hd7ov6$_0;for(var n=0;n!==e.length;++n)if(a(this.array_hd7ov6$_0[n],t))return this.array_hd7ov6$_0.splice(n,1),this.modCount=this.modCount+1|0,!0;return!1},Ji.prototype.removeRange_vux9f0$=function(t,e){this.checkIsMutable(),this.modCount=this.modCount+1|0,this.array_hd7ov6$_0.splice(t,e-t|0)},Ji.prototype.clear=function(){this.checkIsMutable(),this.array_hd7ov6$_0=[],this.modCount=this.modCount+1|0},Ji.prototype.indexOf_11rb$=function(t){return _t(this.array_hd7ov6$_0,t)},Ji.prototype.lastIndexOf_11rb$=function(t){return yt(this.array_hd7ov6$_0,t)},Ji.prototype.toString=function(){return U(this.array_hd7ov6$_0)},Ji.prototype.toArray_ro6dgy$=function(e){var n,i;if(e.lengththis.size&&(e[this.size]=null),e},Ji.prototype.toArray=function(){return[].slice.call(this.array_hd7ov6$_0)},Ji.prototype.checkIsMutable=function(){if(this.isReadOnly_dbt2oh$_0)throw In()},Ji.prototype.rangeCheck_xcmk5o$_0=function(t){return Da().checkElementIndex_6xvm5r$(t,this.size),t},Ji.prototype.insertionRangeCheck_xwivfl$_0=function(t){return Da().checkPositionIndex_6xvm5r$(t,this.size),t},Ji.$metadata$={kind:o,simpleName:"ArrayList",interfaces:[Go,Mi,xe]},ao.prototype.equals_oaftn8$=function(t,e){return a(t,e)},ao.prototype.getHashCode_s8jyv4$=function(t){var e;return null!=(e=null!=t?P(t):null)?e:0},ao.$metadata$={kind:w,simpleName:"HashCode",interfaces:[so]};var co,lo,uo,ho=null;function po(){return null===ho&&new ao,ho}function _o(){this.internalMap_uxhen5$_0=null,this.equality_vgh6cm$_0=null,this._entries_7ih87x$_0=null}function mo(t){this.$outer=t,Bi.call(this)}function fo(t,e){return e=e||Object.create(_o.prototype),qi.call(e),_o.call(e),e.internalMap_uxhen5$_0=t,e.equality_vgh6cm$_0=t.equality,e}function go(t){return t=t||Object.create(_o.prototype),fo(new Co(po()),t),t}function $o(t,e,n){if(go(n=n||Object.create(_o.prototype)),!(t>=0))throw wn(("Negative initial capacity: "+t).toString());if(!(e>=0))throw wn(("Non-positive load factor: "+e).toString());return n}function Eo(t,e){return $o(t,0,e=e||Object.create(_o.prototype)),e}function yo(){this.map_8be2vx$=null}function bo(t,e,n){return n=n||Object.create(yo.prototype),Xi.call(n),yo.call(n),n.map_8be2vx$=$o(t,e),n}function So(t,e){return bo(t,0,e=e||Object.create(yo.prototype)),e}function vo(t,e){return e=e||Object.create(yo.prototype),Xi.call(e),yo.call(e),e.map_8be2vx$=t,e}function Co(t){this.equality_mamlu8$_0=t,this.backingMap_0=this.createJsMap(),this.size_x3bm7r$_0=0}function No(t){this.this$InternalHashCodeMap=t,this.state=-1,this.keys=Object.keys(t.backingMap_0),this.keyIndex=-1,this.chainOrEntry=null,this.isChain=!1,this.itemIndex=-1,this.lastEntry=null}function To(){}function Lo(t){this.equality_qma612$_0=t,this.backingMap_0=this.createJsMap(),this.size_6u3ykz$_0=0}function zo(){this.head_1lr44l$_0=null,this.map_97q5dv$_0=null,this.isReadOnly_uhyvn5$_0=!1}function wo(t,e,n){this.$outer=t,Fi.call(this,e,n),this.next_8be2vx$=null,this.prev_8be2vx$=null}function Oo(t){this.$outer=t,Bi.call(this)}function Ro(t){this.$outer=t,this.last_0=null,this.next_0=null,this.next_0=this.$outer.$outer.head_1lr44l$_0}function Ao(t){return go(t=t||Object.create(zo.prototype)),zo.call(t),t.map_97q5dv$_0=go(),t}function xo(t,e,n){return $o(t,e,n=n||Object.create(zo.prototype)),zo.call(n),n.map_97q5dv$_0=go(),n}function Io(t,e){return xo(t,0,e=e||Object.create(zo.prototype)),e}function Uo(t,e){return go(e=e||Object.create(zo.prototype)),zo.call(e),e.map_97q5dv$_0=go(),e.putAll_a2k3zr$(t),e}function Do(){}function Po(t){return t=t||Object.create(Do.prototype),vo(Ao(),t),Do.call(t),t}function Mo(t,e){return e=e||Object.create(Do.prototype),vo(Ao(),e),Do.call(e),e.addAll_brywnq$(t),e}function ko(t,e,n){return n=n||Object.create(Do.prototype),vo(xo(t,e),n),Do.call(n),n}function jo(t,e){return ko(t,0,e=e||Object.create(Do.prototype)),e}function Go(){}function qo(){}function Fo(t){qo.call(this),this.outputStream=t}function Bo(){qo.call(this),this.buffer=""}function Wo(){Bo.call(this)}function Ho(t,e){this.delegate_0=t,this.result_0=e}function Vo(){this.name="CancellationException"}function Ko(t,e){this.closure$context=t,this.closure$resumeWith=e}function Xo(t){this.this$asList=t,Oa.call(this)}function Jo(){throw new Mn("Illegal cast")}function Yo(t){throw Rn(t)}function Qo(){}function Zo(e){if(or(e)||e===u.NEGATIVE_INFINITY)return e;if(0===e)return-u.MIN_VALUE;var n=M(e).add(t.Long.fromInt(e>0?-1:1));return t.doubleFromBits(n)}function tr(t){if(or(t))throw wn("Cannot round NaN value.");return t>2147483647?2147483647:t<-2147483648?-2147483648:g(Math.round(t))}function er(e){if(or(e))throw wn("Cannot round NaN value.");return e>b.toNumber()?b:e0?1:0}function ir(t){return t.toNumber()<0?-1:t.toNumber()>0?1:0}function or(t){return t!=t}function rr(t){return t!=t}function sr(t){return t===u.POSITIVE_INFINITY||t===u.NEGATIVE_INFINITY}function ar(t){return t===k.POSITIVE_INFINITY||t===k.NEGATIVE_INFINITY}function cr(t){return!sr(t)&&!or(t)}function lr(t){return 32-j(~(0|t|-t))|0}function ur(){return fu(Math.random()*Math.pow(2,32)|0)}function hr(t,e){return t*lo+e*uo}function dr(){}function pr(){}function _r(t){this.jClass_1ppatx$_0=t}function mr(t){var e;_r.call(this,t),this.simpleName_m7mxi0$_0=null!=(e=t.$metadata$)?e.simpleName:null}function fr(t,e,n){_r.call(this,t),this.givenSimpleName_0=e,this.isInstanceFunction_0=n}function gr(){$r=this,_r.call(this,Object),this.simpleName_lnzy73$_0="Nothing"}so.$metadata$={kind:z,simpleName:"EqualityComparator",interfaces:[]},mo.prototype.add_11rb$=function(t){throw Un("Add is not supported on entries")},mo.prototype.clear=function(){this.$outer.clear()},mo.prototype.containsEntry_kw6fkd$=function(t){return this.$outer.containsEntry_8hxqw4$(t)},mo.prototype.iterator=function(){return this.$outer.internalMap_uxhen5$_0.iterator()},mo.prototype.removeEntry_kw6fkd$=function(t){return!!At(this,t)&&(this.$outer.remove_11rb$(t.key),!0)},Object.defineProperty(mo.prototype,"size",{configurable:!0,get:function(){return this.$outer.size}}),mo.$metadata$={kind:o,simpleName:"EntrySet",interfaces:[Bi]},_o.prototype.clear=function(){this.internalMap_uxhen5$_0.clear()},_o.prototype.containsKey_11rb$=function(t){return this.internalMap_uxhen5$_0.contains_11rb$(t)},_o.prototype.containsValue_11rc$=function(e){var n,i=this.internalMap_uxhen5$_0;t:do{var o;if(t.isType(i,Oe)&&i.isEmpty()){n=!1;break t}for(o=i.iterator();o.hasNext();){var r=o.next();if(this.equality_vgh6cm$_0.equals_oaftn8$(r.value,e)){n=!0;break t}}n=!1}while(0);return n},Object.defineProperty(_o.prototype,"entries",{configurable:!0,get:function(){return null==this._entries_7ih87x$_0&&(this._entries_7ih87x$_0=this.createEntrySet()),A(this._entries_7ih87x$_0)}}),_o.prototype.createEntrySet=function(){return new mo(this)},_o.prototype.get_11rb$=function(t){return this.internalMap_uxhen5$_0.get_11rb$(t)},_o.prototype.put_xwzc9p$=function(t,e){return this.internalMap_uxhen5$_0.put_xwzc9p$(t,e)},_o.prototype.remove_11rb$=function(t){return this.internalMap_uxhen5$_0.remove_11rb$(t)},Object.defineProperty(_o.prototype,"size",{configurable:!0,get:function(){return this.internalMap_uxhen5$_0.size}}),_o.$metadata$={kind:o,simpleName:"HashMap",interfaces:[qi,Me]},yo.prototype.add_11rb$=function(t){return null==this.map_8be2vx$.put_xwzc9p$(t,this)},yo.prototype.clear=function(){this.map_8be2vx$.clear()},yo.prototype.contains_11rb$=function(t){return this.map_8be2vx$.containsKey_11rb$(t)},yo.prototype.isEmpty=function(){return this.map_8be2vx$.isEmpty()},yo.prototype.iterator=function(){return this.map_8be2vx$.keys.iterator()},yo.prototype.remove_11rb$=function(t){return null!=this.map_8be2vx$.remove_11rb$(t)},Object.defineProperty(yo.prototype,"size",{configurable:!0,get:function(){return this.map_8be2vx$.size}}),yo.$metadata$={kind:o,simpleName:"HashSet",interfaces:[Xi,Ue]},Object.defineProperty(Co.prototype,"equality",{get:function(){return this.equality_mamlu8$_0}}),Object.defineProperty(Co.prototype,"size",{configurable:!0,get:function(){return this.size_x3bm7r$_0},set:function(t){this.size_x3bm7r$_0=t}}),Co.prototype.put_xwzc9p$=function(e,n){var i=this.equality.getHashCode_s8jyv4$(e),o=this.getChainOrEntryOrNull_0(i);if(null==o)this.backingMap_0[i]=new Fi(e,n);else{if(!t.isArray(o)){var r=o;return this.equality.equals_oaftn8$(r.key,e)?r.setValue_11rc$(n):(this.backingMap_0[i]=[r,new Fi(e,n)],this.size=this.size+1|0,null)}var s=o,a=this.findEntryInChain_0(s,e);if(null!=a)return a.setValue_11rc$(n);s.push(new Fi(e,n))}return this.size=this.size+1|0,null},Co.prototype.remove_11rb$=function(e){var n,i=this.equality.getHashCode_s8jyv4$(e);if(null==(n=this.getChainOrEntryOrNull_0(i)))return null;var o=n;if(!t.isArray(o)){var r=o;return this.equality.equals_oaftn8$(r.key,e)?(delete this.backingMap_0[i],this.size=this.size-1|0,r.value):null}for(var s=o,a=0;a!==s.length;++a){var c=s[a];if(this.equality.equals_oaftn8$(e,c.key))return 1===s.length?(s.length=0,delete this.backingMap_0[i]):s.splice(a,1),this.size=this.size-1|0,c.value}return null},Co.prototype.clear=function(){this.backingMap_0=this.createJsMap(),this.size=0},Co.prototype.contains_11rb$=function(t){return null!=this.getEntry_0(t)},Co.prototype.get_11rb$=function(t){var e;return null!=(e=this.getEntry_0(t))?e.value:null},Co.prototype.getEntry_0=function(e){var n;if(null==(n=this.getChainOrEntryOrNull_0(this.equality.getHashCode_s8jyv4$(e))))return null;var i=n;if(t.isArray(i)){var o=i;return this.findEntryInChain_0(o,e)}var r=i;return this.equality.equals_oaftn8$(r.key,e)?r:null},Co.prototype.findEntryInChain_0=function(t,e){var n;t:do{var i;for(i=0;i!==t.length;++i){var o=t[i];if(this.equality.equals_oaftn8$(o.key,e)){n=o;break t}}n=null}while(0);return n},No.prototype.computeNext_0=function(){if(null!=this.chainOrEntry&&this.isChain){var e=this.chainOrEntry.length;if(this.itemIndex=this.itemIndex+1|0,this.itemIndex=0&&(this.buffer=this.buffer+e.substring(0,n),this.flush(),e=e.substring(n+1|0)),this.buffer=this.buffer+e},Wo.prototype.flush=function(){console.log(this.buffer),this.buffer=""},Wo.$metadata$={kind:o,simpleName:"BufferedOutputToConsoleLog",interfaces:[Bo]},Object.defineProperty(Ho.prototype,"context",{configurable:!0,get:function(){return this.delegate_0.context}}),Ho.prototype.resumeWith_tl1gpc$=function(t){var e=this.result_0;if(e===eu())this.result_0=t.value;else{if(e!==Yl())throw Rn("Already resumed");this.result_0=nu(),this.delegate_0.resumeWith_tl1gpc$(t)}},Ho.prototype.getOrThrow=function(){var e;if(this.result_0===eu())return this.result_0=Yl(),Yl();var n=this.result_0;if(n===nu())e=Yl();else{if(t.isType(n,up))throw n.exception;e=n}return e},Ho.$metadata$={kind:o,simpleName:"SafeContinuation",interfaces:[wl]},Vo.$metadata$={kind:o,simpleName:"CancellationException",interfaces:[On]},Object.defineProperty(Ko.prototype,"context",{configurable:!0,get:function(){return this.closure$context}}),Ko.prototype.resumeWith_tl1gpc$=function(t){this.closure$resumeWith(t)},Ko.$metadata$={kind:o,interfaces:[wl]},Object.defineProperty(Xo.prototype,"size",{configurable:!0,get:function(){return this.this$asList.length}}),Xo.prototype.get_za3lpa$=function(t){if(t>=0&&t<=cc(this))return this.this$asList.item(t);throw new An("index "+t+" is not in range [0.."+cc(this)+"]")},Xo.$metadata$={kind:o,interfaces:[Oa]},Qo.$metadata$={kind:z,simpleName:"Serializable",interfaces:[]},dr.$metadata$={kind:z,simpleName:"KCallable",interfaces:[]},pr.$metadata$={kind:z,simpleName:"KClass",interfaces:[sh]},Object.defineProperty(_r.prototype,"jClass",{get:function(){return this.jClass_1ppatx$_0}}),Object.defineProperty(_r.prototype,"qualifiedName",{configurable:!0,get:function(){throw new pp}}),_r.prototype.equals=function(e){return t.isType(e,_r)&&a(this.jClass,e.jClass)},_r.prototype.hashCode=function(){var t,e;return null!=(e=null!=(t=this.simpleName)?P(t):null)?e:0},_r.prototype.toString=function(){return"class "+C(this.simpleName)},_r.$metadata$={kind:o,simpleName:"KClassImpl",interfaces:[pr]},Object.defineProperty(mr.prototype,"simpleName",{configurable:!0,get:function(){return this.simpleName_m7mxi0$_0}}),mr.prototype.isInstance_s8jyv4$=function(e){var n=this.jClass;return t.isType(e,n)},mr.$metadata$={kind:o,simpleName:"SimpleKClassImpl",interfaces:[_r]},fr.prototype.equals=function(e){return!!t.isType(e,fr)&&_r.prototype.equals.call(this,e)&&a(this.givenSimpleName_0,e.givenSimpleName_0)},Object.defineProperty(fr.prototype,"simpleName",{configurable:!0,get:function(){return this.givenSimpleName_0}}),fr.prototype.isInstance_s8jyv4$=function(t){return this.isInstanceFunction_0(t)},fr.$metadata$={kind:o,simpleName:"PrimitiveKClassImpl",interfaces:[_r]},Object.defineProperty(gr.prototype,"simpleName",{configurable:!0,get:function(){return this.simpleName_lnzy73$_0}}),gr.prototype.isInstance_s8jyv4$=function(t){return!1},Object.defineProperty(gr.prototype,"jClass",{configurable:!0,get:function(){throw Un("There's no native JS class for Nothing type")}}),gr.prototype.equals=function(t){return t===this},gr.prototype.hashCode=function(){return 0},gr.$metadata$={kind:w,simpleName:"NothingKClassImpl",interfaces:[_r]};var $r=null;function Er(){return null===$r&&new gr,$r}function yr(){}function br(){}function Sr(){}function vr(){}function Cr(){}function Nr(){}function Tr(){}function Lr(){}function zr(t,e,n){this.classifier_50lv52$_0=t,this.arguments_lev63t$_0=e,this.isMarkedNullable_748rxs$_0=n}function wr(){Qr=this,this.anyClass=new fr(Object,"Any",Or),this.numberClass=new fr(Number,"Number",Rr),this.nothingClass=Er(),this.booleanClass=new fr(Boolean,"Boolean",Ar),this.byteClass=new fr(Number,"Byte",xr),this.shortClass=new fr(Number,"Short",Ir),this.intClass=new fr(Number,"Int",Ur),this.floatClass=new fr(Number,"Float",Dr),this.doubleClass=new fr(Number,"Double",Pr),this.arrayClass=new fr(Array,"Array",Mr),this.stringClass=new fr(String,"String",kr),this.throwableClass=new fr(Error,"Throwable",jr),this.booleanArrayClass=new fr(Array,"BooleanArray",Gr),this.charArrayClass=new fr(Uint16Array,"CharArray",qr),this.byteArrayClass=new fr(Int8Array,"ByteArray",Fr),this.shortArrayClass=new fr(Int16Array,"ShortArray",Br),this.intArrayClass=new fr(Int32Array,"IntArray",Wr),this.longArrayClass=new fr(Array,"LongArray",Hr),this.floatArrayClass=new fr(Float32Array,"FloatArray",Vr),this.doubleArrayClass=new fr(Float64Array,"DoubleArray",Kr)}function Or(e){return t.isType(e,x)}function Rr(e){return t.isNumber(e)}function Ar(t){return"boolean"==typeof t}function xr(t){return"number"==typeof t}function Ir(t){return"number"==typeof t}function Ur(t){return"number"==typeof t}function Dr(t){return"number"==typeof t}function Pr(t){return"number"==typeof t}function Mr(e){return t.isArray(e)}function kr(t){return"string"==typeof t}function jr(e){return t.isType(e,I)}function Gr(e){return t.isBooleanArray(e)}function qr(e){return t.isCharArray(e)}function Fr(e){return t.isByteArray(e)}function Br(e){return t.isShortArray(e)}function Wr(e){return t.isIntArray(e)}function Hr(e){return t.isLongArray(e)}function Vr(e){return t.isFloatArray(e)}function Kr(e){return t.isDoubleArray(e)}Object.defineProperty(yr.prototype,"simpleName",{configurable:!0,get:function(){throw Rn("Unknown simpleName for ErrorKClass".toString())}}),Object.defineProperty(yr.prototype,"qualifiedName",{configurable:!0,get:function(){throw Rn("Unknown qualifiedName for ErrorKClass".toString())}}),yr.prototype.isInstance_s8jyv4$=function(t){throw Rn("Can's check isInstance on ErrorKClass".toString())},yr.prototype.equals=function(t){return t===this},yr.prototype.hashCode=function(){return 0},yr.$metadata$={kind:o,simpleName:"ErrorKClass",interfaces:[pr]},br.$metadata$={kind:z,simpleName:"KProperty",interfaces:[dr]},Sr.$metadata$={kind:z,simpleName:"KMutableProperty",interfaces:[br]},vr.$metadata$={kind:z,simpleName:"KProperty0",interfaces:[br]},Cr.$metadata$={kind:z,simpleName:"KMutableProperty0",interfaces:[Sr,vr]},Nr.$metadata$={kind:z,simpleName:"KProperty1",interfaces:[br]},Tr.$metadata$={kind:z,simpleName:"KMutableProperty1",interfaces:[Sr,Nr]},Lr.$metadata$={kind:z,simpleName:"KType",interfaces:[]},Object.defineProperty(zr.prototype,"classifier",{get:function(){return this.classifier_50lv52$_0}}),Object.defineProperty(zr.prototype,"arguments",{get:function(){return this.arguments_lev63t$_0}}),Object.defineProperty(zr.prototype,"isMarkedNullable",{get:function(){return this.isMarkedNullable_748rxs$_0}}),zr.prototype.equals=function(e){return t.isType(e,zr)&&a(this.classifier,e.classifier)&&a(this.arguments,e.arguments)&&this.isMarkedNullable===e.isMarkedNullable},zr.prototype.hashCode=function(){return(31*((31*P(this.classifier)|0)+P(this.arguments)|0)|0)+P(this.isMarkedNullable)|0},zr.prototype.toString=function(){var e,n=t.isType(e=this.classifier,pr)?e:null;return(null==n?this.classifier.toString():null!=n.simpleName?n.simpleName:"(non-denotable type)")+(this.arguments.isEmpty()?"":Zt(this.arguments,", ","<",">"))+(this.isMarkedNullable?"?":"")},zr.$metadata$={kind:o,simpleName:"KTypeImpl",interfaces:[Lr]},wr.prototype.functionClass=function(t){var e,n,i;if(null!=(e=Xr[t]))n=e;else{var o=new fr(Function,"Function"+t,(i=t,function(t){return"function"==typeof t&&t.length===i}));Xr[t]=o,n=o}return n},wr.$metadata$={kind:w,simpleName:"PrimitiveClasses",interfaces:[]};var Xr,Jr,Yr,Qr=null;function Zr(){return null===Qr&&new wr,Qr}function ts(t){return Array.isArray(t)?es(t):ns(t)}function es(t){switch(t.length){case 1:return ns(t[0]);case 0:return Er();default:return new yr}}function ns(t){var e;if(t===String)return Zr().stringClass;var n=t.$metadata$;if(null!=n)if(null==n.$kClass$){var i=new mr(t);n.$kClass$=i,e=i}else e=n.$kClass$;else e=new mr(t);return e}function is(t){t.lastIndex=0}function os(){}function rs(t){Cn(t,this),this.name="CharacterCodingException"}function ss(t){this.string_0=void 0!==t?t:""}function as(t,e){return cs(e=e||Object.create(ss.prototype)),e}function cs(t){return t=t||Object.create(ss.prototype),ss.call(t,""),t}function ls(t){var e=String.fromCharCode(t).toUpperCase();return e.length>1?t:e.charCodeAt(0)}function us(t){return Ei(t)}function hs(t){return new Lu(G.MIN_HIGH_SURROGATE,G.MAX_HIGH_SURROGATE).contains_mef7kx$(t)}function ds(t){return new Lu(G.MIN_LOW_SURROGATE,G.MAX_LOW_SURROGATE).contains_mef7kx$(t)}function ps(t){return yi(t)}function _s(t){var e;return null!=(e=Rh(t))?e:Uh(t)}function ms(t){var e;return null!=(e=xh(t))?e:Uh(t)}function fs(t){var e=+t;return(or(e)&&!$s(t)||0===e&&oa(t))&&Uh(t),e}function gs(t,e){return t.toString(Es(e))}function $s(t){switch(t.toLowerCase()){case"nan":case"+nan":case"-nan":return!0;default:return!1}}function Es(t){if(!(2<=t&&t<=36))throw wn("radix "+t+" was not in valid range 2..36");return t}function ys(t,e){var n;return(n=t>=48&&t<=57?t-48:t>=65&&t<=90?t-65+10|0:t>=97&&t<=122?t-97+10|0:t<128?-1:t>=65313&&t<=65338?t-65313+10|0:t>=65345&&t<=65370?t-65345+10|0:li(t))>=e?-1:n}function bs(t,e,n){O.call(this),this.value=n,this.name$=t,this.ordinal$=e}function Ss(){Ss=function(){},Jr=new bs("IGNORE_CASE",0,"i"),Yr=new bs("MULTILINE",1,"m")}function vs(){return Ss(),Jr}function Cs(){return Ss(),Yr}function Ns(t){return t.value}function Ts(t,e){return Zt(t,"",e,void 0,void 0,void 0,Ns)}function Ls(t){this.value=t}function zs(e,n){var i,o;if(null==(o=t.isType(i=e,gd)?i:null))throw Un("Retrieving groups by name is not supported on this platform.");return o.get_61zpoe$(n)}function ws(t,e){Fs(),this.pattern=t,this.options=Kt(e),this.nativePattern_0=new RegExp(t,Ts(e,"gu")),this.nativeStickyPattern_0=null,this.nativeMatchesEntirePattern_0=null}function Os(t){return t.next()}function Rs(t,e,n,i,o,r){pn.call(this,r),this.$controller=o,this.exceptionState_0=1,this.local$closure$input=t,this.local$this$Regex=e,this.local$closure$limit=n,this.local$match=void 0,this.local$nextStart=void 0,this.local$splitCount=void 0,this.local$foundMatch=void 0,this.local$$receiver=i}function As(){qs=this,this.patternEscape_0=new RegExp("[\\\\^$*+?.()|[\\]{}]","g"),this.replacementEscape_0=new RegExp("[\\\\$]","g"),this.nativeReplacementEscape_0=new RegExp("\\$","g")}os.$metadata$={kind:z,simpleName:"Appendable",interfaces:[]},rs.$metadata$={kind:o,simpleName:"CharacterCodingException",interfaces:[vn]},Object.defineProperty(ss.prototype,"length",{configurable:!0,get:function(){return this.string_0.length}}),ss.prototype.charCodeAt=function(t){var e=this.string_0;if(!(t>=0&&t<=Bh(e)))throw new An("index: "+t+", length: "+this.length+"}");return e.charCodeAt(t)},ss.prototype.subSequence_vux9f0$=function(t,e){return this.string_0.substring(t,e)},ss.prototype.append_s8itvh$=function(t){return this.string_0+=String.fromCharCode(t),this},ss.prototype.append_gw00v9$=function(t){return this.string_0+=C(t),this},ss.prototype.append_ezbsdh$=function(t,e,n){return this.appendRange_3peag4$(null!=t?t:"null",e,n)},ss.prototype.reverse=function(){for(var t,e,n="",i=this.string_0.length-1|0;i>=0;){var o=this.string_0.charCodeAt((i=(t=i)-1|0,t));if(ds(o)&&i>=0){var r=this.string_0.charCodeAt((i=(e=i)-1|0,e));n=hs(r)?n+String.fromCharCode(c(r))+String.fromCharCode(c(o)):n+String.fromCharCode(c(o))+String.fromCharCode(c(r))}else n+=String.fromCharCode(o)}return this.string_0=n,this},ss.prototype.append_s8jyv4$=function(t){return this.string_0+=C(t),this},ss.prototype.append_6taknv$=function(t){return this.string_0+=t,this},ss.prototype.append_4hbowm$=function(t){return this.string_0+=Qs(t),this},ss.prototype.append_61zpoe$=function(t){return this.append_pdl1vj$(t)},ss.prototype.append_pdl1vj$=function(t){return this.string_0=this.string_0+(null!=t?t:"null"),this},ss.prototype.capacity=function(){return this.length},ss.prototype.ensureCapacity_za3lpa$=function(t){},ss.prototype.indexOf_61zpoe$=function(t){return this.string_0.indexOf(t)},ss.prototype.indexOf_bm4lxs$=function(t,e){return this.string_0.indexOf(t,e)},ss.prototype.lastIndexOf_61zpoe$=function(t){return this.string_0.lastIndexOf(t)},ss.prototype.lastIndexOf_bm4lxs$=function(t,e){return 0===t.length&&e<0?-1:this.string_0.lastIndexOf(t,e)},ss.prototype.insert_fzusl$=function(t,e){return Da().checkPositionIndex_6xvm5r$(t,this.length),this.string_0=this.string_0.substring(0,t)+C(e)+this.string_0.substring(t),this},ss.prototype.insert_6t1mh3$=function(t,e){return Da().checkPositionIndex_6xvm5r$(t,this.length),this.string_0=this.string_0.substring(0,t)+String.fromCharCode(c(e))+this.string_0.substring(t),this},ss.prototype.insert_7u455s$=function(t,e){return Da().checkPositionIndex_6xvm5r$(t,this.length),this.string_0=this.string_0.substring(0,t)+Qs(e)+this.string_0.substring(t),this},ss.prototype.insert_1u9bqd$=function(t,e){return Da().checkPositionIndex_6xvm5r$(t,this.length),this.string_0=this.string_0.substring(0,t)+C(e)+this.string_0.substring(t),this},ss.prototype.insert_6t2rgq$=function(t,e){return Da().checkPositionIndex_6xvm5r$(t,this.length),this.string_0=this.string_0.substring(0,t)+C(e)+this.string_0.substring(t),this},ss.prototype.insert_19mbxw$=function(t,e){return this.insert_vqvrqt$(t,e)},ss.prototype.insert_vqvrqt$=function(t,e){Da().checkPositionIndex_6xvm5r$(t,this.length);var n=null!=e?e:"null";return this.string_0=this.string_0.substring(0,t)+n+this.string_0.substring(t),this},ss.prototype.setLength_za3lpa$=function(t){if(t<0)throw wn("Negative new length: "+t+".");if(t<=this.length)this.string_0=this.string_0.substring(0,t);else for(var e=this.length;en)throw new An("startIndex: "+t+", length: "+n);if(t>e)throw wn("startIndex("+t+") > endIndex("+e+")")},ss.prototype.deleteAt_za3lpa$=function(t){return Da().checkElementIndex_6xvm5r$(t,this.length),this.string_0=this.string_0.substring(0,t)+this.string_0.substring(t+1|0),this},ss.prototype.deleteRange_vux9f0$=function(t,e){return this.checkReplaceRange_0(t,e,this.length),this.string_0=this.string_0.substring(0,t)+this.string_0.substring(e),this},ss.prototype.toCharArray_pqkatk$=function(t,e,n,i){var o;void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=this.length),Da().checkBoundsIndexes_cub51b$(n,i,this.length),Da().checkBoundsIndexes_cub51b$(e,e+i-n|0,t.length);for(var r=e,s=n;st.length)throw new An("index out of bounds: "+e+", input length: "+t.length);var n=this.initStickyPattern_0();return n.lastIndex=e,n.test(t.toString())},ws.prototype.find_905azu$=function(t,e){if(void 0===e&&(e=0),e<0||e>t.length)throw new An("Start index out of bounds: "+e+", input length: "+t.length);return Ks(this.nativePattern_0,t.toString(),e,this.nativePattern_0)},ws.prototype.findAll_905azu$=function(t,e){if(void 0===e&&(e=0),e<0||e>t.length)throw new An("Start index out of bounds: "+e+", input length: "+t.length);return fl((n=t,i=e,o=this,function(){return o.find_905azu$(n,i)}),Os);var n,i,o},ws.prototype.matchEntire_6bul2c$=function(t){return Ks(this.initMatchesEntirePattern_0(),t.toString(),0,this.nativePattern_0)},ws.prototype.matchAt_905azu$=function(t,e){if(e<0||e>t.length)throw new An("index out of bounds: "+e+", input length: "+t.length);return Ks(this.initStickyPattern_0(),t.toString(),e,this.nativePattern_0)},ws.prototype.replace_x2uqeu$=function(t,e){return id(e,92)||id(e,36)?this.replace_20wsma$(t,(n=e,function(t){return Xs(t,n)})):t.toString().replace(this.nativePattern_0,e);var n},ws.prototype.replace_20wsma$=function(t,e){var n=this.find_905azu$(t);if(null==n)return t.toString();var i=0,o=t.length,r=as();do{var s=A(n);r.append_ezbsdh$(t,i,s.range.start),r.append_gw00v9$(e(s)),i=s.range.endInclusive+1|0,n=s.next()}while(i=p.size)throw new An("Group with index "+m+" does not exist");l.append_pdl1vj$(null!=(a=null!=(s=p.get_za3lpa$(m))?s.value:null)?a:""),c=_}}else l.append_s8itvh$(u)}return l.toString()}function Js(t,e){for(var n=e;n=i)return sa(0,n,o);var r=0|t.charCodeAt(n);return 56320<=r&&r<=57343?65536+((1023&e)<<10)|1023&r:sa(0,n,o)}function ca(t,e,n,i,o){if(0==(30&e)||n>=i)return sa(0,n,o);var r=t[n];return 128!=(192&r)?sa(0,n,o):e<<6^r^3968}function la(t,e,n,i,o){if(n>=i)return sa(0,n,o);var r=t[n];if(0==(15&e)){if(160!=(224&r))return sa(0,n,o)}else if(13==(15&e)){if(128!=(224&r))return sa(0,n,o)}else if(128!=(192&r))return sa(0,n,o);if((n+1|0)===i)return sa(1,n,o);var s=t[n+1|0];return 128!=(192&s)?sa(1,n,o):e<<12^r<<6^s^-123008}function ua(t,e,n,i,o){n>=i&&sa(0,n,o);var r=t[n];if(0==(15&e)){if((240&r)<=128)return sa(0,n,o)}else if(4==(15&e)){if(128!=(240&r))return sa(0,n,o)}else{if((15&e)>4)return sa(0,n,o);if(128!=(192&r))return sa(0,n,o)}if((n+1|0)===i)return sa(1,n,o);var s=t[n+1|0];if(128!=(192&s))return sa(1,n,o);if((n+2|0)===i)return sa(2,n,o);var a=t[n+2|0];return 128!=(192&a)?sa(2,n,o):e<<18^r<<12^s<<6^a^3678080}function ha(t,e,n,i){var o,r,s,a,c,l,u,h,d,p,_,f,g,$;if(!(e>=0&&n<=t.length&&e<=n))throw wn("Failed requirement.".toString());for(var E=new Int8Array(3*(n-e|0)|0),y=0,b=e;b>6|192),E[(a=y,y=a+1|0,a)]=m(63&S|128);else if(S<55296||S>=57344)E[(c=y,y=c+1|0,c)]=m(S>>12|224),E[(l=y,y=l+1|0,l)]=m(S>>6&63|128),E[(u=y,y=u+1|0,u)]=m(63&S|128);else{var v=aa(t,S,b,n,i);v<=0?(E[(h=y,y=h+1|0,h)]=xs[0],E[(d=y,y=d+1|0,d)]=xs[1],E[(p=y,y=p+1|0,p)]=xs[2]):(E[(_=y,y=_+1|0,_)]=m(v>>18|240),E[(f=y,y=f+1|0,f)]=m(v>>12&63|128),E[(g=y,y=g+1|0,g)]=m(v>>6&63|128),E[($=y,y=$+1|0,$)]=m(63&v|128),b=b+1|0)}}return E.length===y?E:Qn(E,y)}function da(t,e,n,i){var o;if(!(e>=0&&n<=t.length&&e<=n))throw wn("Failed requirement.".toString());for(var r=e,s=cs();r=0)s.append_s8itvh$(p(a));else if(a>>5==-2){var c=ca(t,a,r,n,i);c<=0?(s.append_s8itvh$(Is),r=r+(0|-c)|0):(s.append_s8itvh$(p(c)),r=r+1|0)}else if(a>>4==-2){var l=la(t,a,r,n,i);l<=0?(s.append_s8itvh$(Is),r=r+(0|-l)|0):(s.append_s8itvh$(p(l)),r=r+2|0)}else if(a>>3==-2){var u=ua(t,a,r,n,i);if(u<=0)s.append_s8itvh$(Is),r=r+(0|-u)|0;else{var h=u-65536>>10|55296,d=1023&u|56320;s.append_s8itvh$(p(h)),s.append_s8itvh$(p(d)),r=r+3|0}}else sa(0,r,i),s.append_s8itvh$(Is)}return s.toString()}function pa(t){return(new ma).buildFor_tcv7n7$(t)}function _a(t){var e,n;return null!=(n=null!=(e=t._suppressed)?e:null)?n:oc()}function ma(){this.target_0=cs(),this.visited_0=[],this.topStack_0="",this.topStackStart_0=0}function fa(t,e){var n,i;if(0===e)n=t;else{var o=d.pow(10,e);n=Math.round(d.abs(t)*o)/o*q(t)}var r=n;if(d.abs(r)<1e21)i=r.toFixed(e);else{var s=d.abs(r),a=s.toPrecision(d.ceil(F(s))+e);i=r<0?"-"+a:a}return i}function ga(t,e,n){O.call(this),this.scale_8be2vx$=n,this.name$=t,this.ordinal$=e}function $a(){$a=function(){},Us=new ga("NANOSECONDS",0,1),Ds=new ga("MICROSECONDS",1,1e3),Ps=new ga("MILLISECONDS",2,1e6),Ms=new ga("SECONDS",3,1e9),ks=new ga("MINUTES",4,6e10),js=new ga("HOURS",5,36e11),Gs=new ga("DAYS",6,864e11)}function Ea(){return $a(),Us}function ya(){return $a(),Ds}function ba(){return $a(),Ps}function Sa(){return $a(),Ms}function va(){return $a(),ks}function Ca(){return $a(),js}function Na(){return $a(),Gs}function Ta(e,n,i){var o=t.compareTo(n.scale_8be2vx$,i.scale_8be2vx$);return o>0?e*(n.scale_8be2vx$/i.scale_8be2vx$):o<0?e/(i.scale_8be2vx$/n.scale_8be2vx$):e}function La(e,n,i){var o=t.compareTo(n.scale_8be2vx$,i.scale_8be2vx$);return o>0?e.multiply(t.Long.fromNumber(n.scale_8be2vx$/i.scale_8be2vx$)):o<0?e.div(t.Long.fromNumber(i.scale_8be2vx$/n.scale_8be2vx$)):e}function za(e,n,i){var o,r=t.compareTo(n.scale_8be2vx$,i.scale_8be2vx$);if(r>0){var s=t.Long.fromNumber(n.scale_8be2vx$/i.scale_8be2vx$),c=e.multiply(s);o=a(c.div(s),e)?c:e.toNumber()>0?b:y}else o=r<0?e.div(t.Long.fromNumber(i.scale_8be2vx$/n.scale_8be2vx$)):e;return o}function wa(){}function Oa(){Da(),wa.call(this)}function Ra(t,e,n){Oa.call(this),this.list_0=t,this.fromIndex_0=e,this._size_0=0,Da().checkRangeIndexes_cub51b$(this.fromIndex_0,n,this.list_0.size),this._size_0=n-this.fromIndex_0|0}function Aa(t){this.$outer=t,this.index_0=0}function xa(t,e){this.$outer=t,Aa.call(this,this.$outer),Da().checkPositionIndex_6xvm5r$(e,this.$outer.size),this.index_0=e}function Ia(){Ua=this}ws.$metadata$={kind:o,simpleName:"Regex",interfaces:[]},Object.defineProperty(Ws.prototype,"range",{configurable:!0,get:function(){return this.range_co6b9w$_0}}),Object.defineProperty(Ws.prototype,"value",{configurable:!0,get:function(){return A(this.closure$match[0])}}),Object.defineProperty(Ws.prototype,"groups",{configurable:!0,get:function(){return this.groups_qcaztb$_0}}),Ws.prototype.hasOwnPrototypeProperty_0=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},Object.defineProperty(Hs.prototype,"size",{configurable:!0,get:function(){return this.closure$match.length}}),Hs.prototype.get_za3lpa$=function(t){var e;return null!=(e=this.closure$match[t])?e:""},Hs.$metadata$={kind:o,interfaces:[Oa]},Object.defineProperty(Ws.prototype,"groupValues",{configurable:!0,get:function(){return null==this.groupValues__0&&(this.groupValues__0=new Hs(this.closure$match)),A(this.groupValues__0)}}),Ws.prototype.next=function(){return Ks(this.closure$nextPattern,this.closure$input,this.closure$range.isEmpty()?this.advanceToNextCharacter_0(this.closure$range.start):this.closure$range.endInclusive+1|0,this.closure$nextPattern)},Ws.prototype.advanceToNextCharacter_0=function(t){if(t0){var h;if(0===u)h=0;else{var d,p=0;for(d=qh(r);d.hasNext();){var _=l(d.next());10===l(c(_))&&(p=p+1|0)}h=1+p|0}var m,f,g=h,$=0;for(m=dd(s).iterator();m.hasNext();){var E=m.next();xi(($=(f=$)+1|0,f))>=g&&this.target_0.append_pdl1vj$(e),this.target_0.append_pdl1vj$(E).append_pdl1vj$("\n")}}else this.target_0.append_pdl1vj$(s).append_pdl1vj$("\n")}else this.target_0.append_pdl1vj$(r).append_pdl1vj$("\n");var y=_a(t);if(!y.isEmpty()){var b=e+" ";for(o=y.iterator();o.hasNext();){var S=o.next();this.dumpFullTrace_0(S,b,"Suppressed: ")}}return!0},ma.prototype.dropCommonFrames_0=function(t,e){var n,i=0,o=0,r=0;n=d.min(this.topStack_0.length-this.topStackStart_0|0,t.length-e|0);for(var s=0;s0&&32===t.charCodeAt(Bh(t)-(r-1)|0);)r=r-1|0;return Ce(t,r)+"... and "+(i-1|0)+" more common stack frames skipped"},ma.$metadata$={kind:o,simpleName:"ExceptionTraceBuilder",interfaces:[]},ga.$metadata$={kind:o,simpleName:"DurationUnit",interfaces:[O]},ga.values=function(){return[Ea(),ya(),ba(),Sa(),va(),Ca(),Na()]},ga.valueOf_61zpoe$=function(t){switch(t){case"NANOSECONDS":return Ea();case"MICROSECONDS":return ya();case"MILLISECONDS":return ba();case"SECONDS":return Sa();case"MINUTES":return va();case"HOURS":return Ca();case"DAYS":return Na();default:Yo("No enum constant kotlin.time.DurationUnit."+t)}},wa.prototype.contains_11rb$=function(e){var n;t:do{var i;if(t.isType(this,Oe)&&this.isEmpty()){n=!1;break t}for(i=this.iterator();i.hasNext();){var o=i.next();if(a(o,e)){n=!0;break t}}n=!1}while(0);return n},wa.prototype.containsAll_brywnq$=function(e){var n;t:do{var i;if(t.isType(e,Oe)&&e.isEmpty()){n=!0;break t}for(i=e.iterator();i.hasNext();){var o=i.next();if(!this.contains_11rb$(o)){n=!1;break t}}n=!0}while(0);return n},wa.prototype.isEmpty=function(){return 0===this.size},wa.prototype.toString=function(){return Zt(this,", ","[","]",void 0,void 0,(t=this,function(e){return e===t?"(this Collection)":C(e)}));var t},wa.prototype.toArray=function(){return vi(this)},wa.prototype.toArray_ro6dgy$=function(t){return Ci(this,t)},wa.$metadata$={kind:o,simpleName:"AbstractCollection",interfaces:[Oe]},Oa.prototype.iterator=function(){return new Aa(this)},Oa.prototype.indexOf_11rb$=function(t){var e;t:do{var n,i=0;for(n=this.iterator();n.hasNext();){var o=n.next();if(a(o,t)){e=i;break t}i=i+1|0}e=-1}while(0);return e},Oa.prototype.lastIndexOf_11rb$=function(t){var e;t:do{for(var n=this.listIterator_za3lpa$(this.size);n.hasPrevious();)if(a(n.previous(),t)){e=n.nextIndex();break t}e=-1}while(0);return e},Oa.prototype.listIterator=function(){return new xa(this,0)},Oa.prototype.listIterator_za3lpa$=function(t){return new xa(this,t)},Oa.prototype.subList_vux9f0$=function(t,e){return new Ra(this,t,e)},Ra.prototype.get_za3lpa$=function(t){return Da().checkElementIndex_6xvm5r$(t,this._size_0),this.list_0.get_za3lpa$(this.fromIndex_0+t|0)},Object.defineProperty(Ra.prototype,"size",{configurable:!0,get:function(){return this._size_0}}),Ra.$metadata$={kind:o,simpleName:"SubList",interfaces:[Go,Oa]},Oa.prototype.equals=function(e){return e===this||!!t.isType(e,Ae)&&Da().orderedEquals_e92ka7$(this,e)},Oa.prototype.hashCode=function(){return Da().orderedHashCode_nykoif$(this)},Aa.prototype.hasNext=function(){return this.index_00},xa.prototype.nextIndex=function(){return this.index_0},xa.prototype.previous=function(){if(!this.hasPrevious())throw qn();return this.$outer.get_za3lpa$((this.index_0=this.index_0-1|0,this.index_0))},xa.prototype.previousIndex=function(){return this.index_0-1|0},xa.$metadata$={kind:o,simpleName:"ListIteratorImpl",interfaces:[qe,Aa]},Ia.prototype.checkElementIndex_6xvm5r$=function(t,e){if(t<0||t>=e)throw new An("index: "+t+", size: "+e)},Ia.prototype.checkPositionIndex_6xvm5r$=function(t,e){if(t<0||t>e)throw new An("index: "+t+", size: "+e)},Ia.prototype.checkRangeIndexes_cub51b$=function(t,e,n){if(t<0||e>n)throw new An("fromIndex: "+t+", toIndex: "+e+", size: "+n);if(t>e)throw wn("fromIndex: "+t+" > toIndex: "+e)},Ia.prototype.checkBoundsIndexes_cub51b$=function(t,e,n){if(t<0||e>n)throw new An("startIndex: "+t+", endIndex: "+e+", size: "+n);if(t>e)throw wn("startIndex: "+t+" > endIndex: "+e)},Ia.prototype.orderedHashCode_nykoif$=function(t){var e,n,i=1;for(e=t.iterator();e.hasNext();){var o=e.next();i=(31*i|0)+(null!=(n=null!=o?P(o):null)?n:0)|0}return i},Ia.prototype.orderedEquals_e92ka7$=function(t,e){var n;if(t.size!==e.size)return!1;var i=e.iterator();for(n=t.iterator();n.hasNext();){var o=n.next(),r=i.next();if(!a(o,r))return!1}return!0},Ia.$metadata$={kind:w,simpleName:"Companion",interfaces:[]};var Ua=null;function Da(){return null===Ua&&new Ia,Ua}function Pa(){Ba(),this._keys_up5z3z$_0=null,this._values_6nw1f1$_0=null}function Ma(t){this.this$AbstractMap=t,Wa.call(this)}function ka(t){this.closure$entryIterator=t}function ja(t){this.this$AbstractMap=t,wa.call(this)}function Ga(t){this.closure$entryIterator=t}function qa(){Fa=this}Oa.$metadata$={kind:o,simpleName:"AbstractList",interfaces:[Ae,wa]},Pa.prototype.containsKey_11rb$=function(t){return null!=this.implFindEntry_8k1i24$_0(t)},Pa.prototype.containsValue_11rc$=function(e){var n,i=this.entries;t:do{var o;if(t.isType(i,Oe)&&i.isEmpty()){n=!1;break t}for(o=i.iterator();o.hasNext();){var r=o.next();if(a(r.value,e)){n=!0;break t}}n=!1}while(0);return n},Pa.prototype.containsEntry_8hxqw4$=function(e){if(!t.isType(e,Pe))return!1;var n=e.key,i=e.value,o=(t.isType(this,De)?this:N()).get_11rb$(n);if(!a(i,o))return!1;var r=null==o;return r&&(r=!(t.isType(this,De)?this:N()).containsKey_11rb$(n)),!r},Pa.prototype.equals=function(e){if(e===this)return!0;if(!t.isType(e,De))return!1;if(this.size!==e.size)return!1;var n,i=e.entries;t:do{var o;if(t.isType(i,Oe)&&i.isEmpty()){n=!0;break t}for(o=i.iterator();o.hasNext();){var r=o.next();if(!this.containsEntry_8hxqw4$(r)){n=!1;break t}}n=!0}while(0);return n},Pa.prototype.get_11rb$=function(t){var e;return null!=(e=this.implFindEntry_8k1i24$_0(t))?e.value:null},Pa.prototype.hashCode=function(){return P(this.entries)},Pa.prototype.isEmpty=function(){return 0===this.size},Object.defineProperty(Pa.prototype,"size",{configurable:!0,get:function(){return this.entries.size}}),Ma.prototype.contains_11rb$=function(t){return this.this$AbstractMap.containsKey_11rb$(t)},ka.prototype.hasNext=function(){return this.closure$entryIterator.hasNext()},ka.prototype.next=function(){return this.closure$entryIterator.next().key},ka.$metadata$={kind:o,interfaces:[je]},Ma.prototype.iterator=function(){return new ka(this.this$AbstractMap.entries.iterator())},Object.defineProperty(Ma.prototype,"size",{configurable:!0,get:function(){return this.this$AbstractMap.size}}),Ma.$metadata$={kind:o,interfaces:[Wa]},Object.defineProperty(Pa.prototype,"keys",{configurable:!0,get:function(){return null==this._keys_up5z3z$_0&&(this._keys_up5z3z$_0=new Ma(this)),A(this._keys_up5z3z$_0)}}),Pa.prototype.toString=function(){return Zt(this.entries,", ","{","}",void 0,void 0,(t=this,function(e){return t.toString_55he67$_0(e)}));var t},Pa.prototype.toString_55he67$_0=function(t){return this.toString_kthv8s$_0(t.key)+"="+this.toString_kthv8s$_0(t.value)},Pa.prototype.toString_kthv8s$_0=function(t){return t===this?"(this Map)":C(t)},ja.prototype.contains_11rb$=function(t){return this.this$AbstractMap.containsValue_11rc$(t)},Ga.prototype.hasNext=function(){return this.closure$entryIterator.hasNext()},Ga.prototype.next=function(){return this.closure$entryIterator.next().value},Ga.$metadata$={kind:o,interfaces:[je]},ja.prototype.iterator=function(){return new Ga(this.this$AbstractMap.entries.iterator())},Object.defineProperty(ja.prototype,"size",{configurable:!0,get:function(){return this.this$AbstractMap.size}}),ja.$metadata$={kind:o,interfaces:[wa]},Object.defineProperty(Pa.prototype,"values",{configurable:!0,get:function(){return null==this._values_6nw1f1$_0&&(this._values_6nw1f1$_0=new ja(this)),A(this._values_6nw1f1$_0)}}),Pa.prototype.implFindEntry_8k1i24$_0=function(t){var e,n=this.entries;t:do{var i;for(i=n.iterator();i.hasNext();){var o=i.next();if(a(o.key,t)){e=o;break t}}e=null}while(0);return e},qa.prototype.entryHashCode_9fthdn$=function(t){var e,n,i,o;return(null!=(n=null!=(e=t.key)?P(e):null)?n:0)^(null!=(o=null!=(i=t.value)?P(i):null)?o:0)},qa.prototype.entryToString_9fthdn$=function(t){return C(t.key)+"="+C(t.value)},qa.prototype.entryEquals_js7fox$=function(e,n){return!!t.isType(n,Pe)&&a(e.key,n.key)&&a(e.value,n.value)},qa.$metadata$={kind:w,simpleName:"Companion",interfaces:[]};var Fa=null;function Ba(){return null===Fa&&new qa,Fa}function Wa(){Ka(),wa.call(this)}function Ha(){Va=this}Pa.$metadata$={kind:o,simpleName:"AbstractMap",interfaces:[De]},Wa.prototype.equals=function(e){return e===this||!!t.isType(e,Ie)&&Ka().setEquals_y8f7en$(this,e)},Wa.prototype.hashCode=function(){return Ka().unorderedHashCode_nykoif$(this)},Ha.prototype.unorderedHashCode_nykoif$=function(t){var e,n=0;for(e=t.iterator();e.hasNext();){var i,o=e.next();n=n+(null!=(i=null!=o?P(o):null)?i:0)|0}return n},Ha.prototype.setEquals_y8f7en$=function(t,e){return t.size===e.size&&t.containsAll_brywnq$(e)},Ha.$metadata$={kind:w,simpleName:"Companion",interfaces:[]};var Va=null;function Ka(){return null===Va&&new Ha,Va}function Xa(e,n){return t.isType(e,Ie)?e:t.isType(e,Oe)?(t.isType(n,Oe)&&n.size,e):Wt(e)}function Ja(){Ya=this}Wa.$metadata$={kind:o,simpleName:"AbstractSet",interfaces:[Ie,wa]},Ja.prototype.hasNext=function(){return!1},Ja.prototype.hasPrevious=function(){return!1},Ja.prototype.nextIndex=function(){return 0},Ja.prototype.previousIndex=function(){return-1},Ja.prototype.next=function(){throw qn()},Ja.prototype.previous=function(){throw qn()},Ja.$metadata$={kind:w,simpleName:"EmptyIterator",interfaces:[qe]};var Ya=null;function Qa(){return null===Ya&&new Ja,Ya}function Za(){tc=this,this.serialVersionUID_0=B}Za.prototype.equals=function(e){return t.isType(e,Ae)&&e.isEmpty()},Za.prototype.hashCode=function(){return 1},Za.prototype.toString=function(){return"[]"},Object.defineProperty(Za.prototype,"size",{configurable:!0,get:function(){return 0}}),Za.prototype.isEmpty=function(){return!0},Za.prototype.contains_11rb$=function(t){return!1},Za.prototype.containsAll_brywnq$=function(t){return t.isEmpty()},Za.prototype.get_za3lpa$=function(t){throw new An("Empty list doesn't contain element at index "+t+".")},Za.prototype.indexOf_11rb$=function(t){return-1},Za.prototype.lastIndexOf_11rb$=function(t){return-1},Za.prototype.iterator=function(){return Qa()},Za.prototype.listIterator=function(){return Qa()},Za.prototype.listIterator_za3lpa$=function(t){if(0!==t)throw new An("Index: "+t);return Qa()},Za.prototype.subList_vux9f0$=function(t,e){if(0===t&&0===e)return this;throw new An("fromIndex: "+t+", toIndex: "+e)},Za.prototype.readResolve_0=function(){return ec()},Za.$metadata$={kind:w,simpleName:"EmptyList",interfaces:[Go,Qo,Ae]};var tc=null;function ec(){return null===tc&&new Za,tc}function nc(t){return new ic(t,!1)}function ic(t,e){this.values=t,this.isVarargs=e}function oc(){return ec()}function rc(t){return 0===t.length?Yi():Zi(new ic(t,!0))}function sc(t){return 0===t.length?Yi():Zi(new ic(t,!0))}function ac(t){return new Ru(0,t.size-1|0)}function cc(t){return t.size-1|0}function lc(t){switch(t.size){case 0:return oc();case 1:return Ni(t.get_za3lpa$(0));default:return t}}function uc(){throw new Fn("Index overflow has happened.")}function hc(){throw new Fn("Count overflow has happened.")}function dc(){}function pc(t,e){this.index=t,this.value=e}function _c(t){this.iteratorFactory_0=t}function mc(e){return t.isType(e,Oe)?e.size:null}function fc(e,n){return t.isType(e,Oe)?e.size:n}function gc(t){this.iterator_0=t,this.index_0=0}function $c(e,n){if(t.isType(e,Ec))return e.getOrImplicitDefault_11rb$(n);var i,o=e.get_11rb$(n);if(null==o&&!e.containsKey_11rb$(n))throw new Gn("Key "+n+" is missing in the map.");return null==(i=o)||t.isType(i,x)?i:N()}function Ec(){}function yc(){}function bc(t,e){this.map_a09uzx$_0=t,this.default_0=e}function Sc(){vc=this,this.serialVersionUID_0=W}Object.defineProperty(ic.prototype,"size",{configurable:!0,get:function(){return this.values.length}}),ic.prototype.isEmpty=function(){return 0===this.values.length},ic.prototype.contains_11rb$=function(t){return ct(this.values,t)},ic.prototype.containsAll_brywnq$=function(e){var n;t:do{var i;if(t.isType(e,Oe)&&e.isEmpty()){n=!0;break t}for(i=e.iterator();i.hasNext();){var o=i.next();if(!this.contains_11rb$(o)){n=!1;break t}}n=!0}while(0);return n},ic.prototype.iterator=function(){return t.arrayIterator(this.values)},ic.prototype.toArray=function(){var t=this.values;return this.isVarargs?t:t.slice()},ic.$metadata$={kind:o,simpleName:"ArrayAsCollection",interfaces:[Oe]},dc.$metadata$={kind:z,simpleName:"Grouping",interfaces:[]},pc.$metadata$={kind:o,simpleName:"IndexedValue",interfaces:[]},pc.prototype.component1=function(){return this.index},pc.prototype.component2=function(){return this.value},pc.prototype.copy_wxm5ur$=function(t,e){return new pc(void 0===t?this.index:t,void 0===e?this.value:e)},pc.prototype.toString=function(){return"IndexedValue(index="+t.toString(this.index)+", value="+t.toString(this.value)+")"},pc.prototype.hashCode=function(){var e=0;return e=31*(e=31*e+t.hashCode(this.index)|0)+t.hashCode(this.value)|0},pc.prototype.equals=function(e){return this===e||null!==e&&"object"==typeof e&&Object.getPrototypeOf(this)===Object.getPrototypeOf(e)&&t.equals(this.index,e.index)&&t.equals(this.value,e.value)},_c.prototype.iterator=function(){return new gc(this.iteratorFactory_0())},_c.$metadata$={kind:o,simpleName:"IndexingIterable",interfaces:[ze]},gc.prototype.hasNext=function(){return this.iterator_0.hasNext()},gc.prototype.next=function(){var t;return new pc(xi((t=this.index_0,this.index_0=t+1|0,t)),this.iterator_0.next())},gc.$metadata$={kind:o,simpleName:"IndexingIterator",interfaces:[je]},Ec.$metadata$={kind:z,simpleName:"MapWithDefault",interfaces:[De]},Sc.prototype.equals=function(e){return t.isType(e,De)&&e.isEmpty()},Sc.prototype.hashCode=function(){return 0},Sc.prototype.toString=function(){return"{}"},Object.defineProperty(Sc.prototype,"size",{configurable:!0,get:function(){return 0}}),Sc.prototype.isEmpty=function(){return!0},Sc.prototype.containsKey_11rb$=function(t){return!1},Sc.prototype.containsValue_11rc$=function(t){return!1},Sc.prototype.get_11rb$=function(t){return null},Object.defineProperty(Sc.prototype,"entries",{configurable:!0,get:function(){return El()}}),Object.defineProperty(Sc.prototype,"keys",{configurable:!0,get:function(){return El()}}),Object.defineProperty(Sc.prototype,"values",{configurable:!0,get:function(){return ec()}}),Sc.prototype.readResolve_0=function(){return Cc()},Sc.$metadata$={kind:w,simpleName:"EmptyMap",interfaces:[Qo,De]};var vc=null;function Cc(){return null===vc&&new Sc,vc}function Nc(){var e;return t.isType(e=Cc(),De)?e:Jo()}function Tc(t){var e=Eo(t.length);return Lc(e,t),e}function Lc(t,e){var n;for(n=0;n!==e.length;++n){var i=e[n],o=i.component1(),r=i.component2();t.put_xwzc9p$(o,r)}}function zc(t,e){var n;for(n=e.iterator();n.hasNext();){var i=n.next(),o=i.component1(),r=i.component2();t.put_xwzc9p$(o,r)}}function wc(e){var n;if(t.isType(e,Oe)){switch(e.size){case 0:n=Nc();break;case 1:n=Li(t.isType(e,Ae)?e.get_za3lpa$(0):e.iterator().next());break;default:n=Oc(e,Io(e.size))}return n}return xc(Oc(e,Ao()))}function Oc(t,e){return zc(e,t),e}function Rc(t,e){return Lc(e,t),e}function Ac(t){return Uo(t)}function xc(t){switch(t.size){case 0:return Nc();case 1:default:return t}}function Ic(e,n){var i;if(t.isType(n,Oe))return e.addAll_brywnq$(n);var o=!1;for(i=n.iterator();i.hasNext();){var r=i.next();e.add_11rb$(r)&&(o=!0)}return o}function Uc(t,e){return t.addAll_brywnq$(Yn(e))}function Dc(t,e){return Pc(t,e,!0)}function Pc(t,e,n){for(var i={v:!1},o=t.iterator();o.hasNext();)e(o.next())===n&&(o.remove(),i.v=!0);return i.v}function Mc(e,n){return function(e,n,i){var o,r,s,a;if(!t.isType(e,Go))return Pc(t.isType(o=e,we)?o:Jo(),n,i);var c=0;r=cc(e);for(var l=0;l<=r;l++){var u=e.get_za3lpa$(l);n(u)!==i&&(c!==l&&e.set_wxm5ur$(c,u),c=c+1|0)}if(c=a;h--)e.removeAt_za3lpa$(h);return!0}return!1}(e,n,!0)}function kc(){}function jc(){}function Gc(){}function qc(){}function Fc(){}function Bc(){}function Wc(){}function Hc(){}function Vc(){}function Kc(t){this.closure$iterator=t}function Xc(t){return new Kc((e=t,function(){return Jc(e)}));var e}function Jc(t){var e=new Qc;return e.nextStep=En(t,e,e),e}function Yc(){}function Qc(){Yc.call(this),this.state_0=0,this.nextValue_0=null,this.nextIterator_0=null,this.nextStep=null}function Zc(){return nl()}function tl(){el=this}kc.prototype.next=function(){return this.nextByte()},kc.$metadata$={kind:o,simpleName:"ByteIterator",interfaces:[je]},jc.prototype.next=function(){return c(this.nextChar())},jc.$metadata$={kind:o,simpleName:"CharIterator",interfaces:[je]},Gc.prototype.next=function(){return this.nextShort()},Gc.$metadata$={kind:o,simpleName:"ShortIterator",interfaces:[je]},qc.prototype.next=function(){return this.nextInt()},qc.$metadata$={kind:o,simpleName:"IntIterator",interfaces:[je]},Fc.prototype.next=function(){return this.nextLong()},Fc.$metadata$={kind:o,simpleName:"LongIterator",interfaces:[je]},Bc.prototype.next=function(){return this.nextFloat()},Bc.$metadata$={kind:o,simpleName:"FloatIterator",interfaces:[je]},Wc.prototype.next=function(){return this.nextDouble()},Wc.$metadata$={kind:o,simpleName:"DoubleIterator",interfaces:[je]},Hc.prototype.next=function(){return this.nextBoolean()},Hc.$metadata$={kind:o,simpleName:"BooleanIterator",interfaces:[je]},Vc.$metadata$={kind:z,simpleName:"Sequence",interfaces:[]},Kc.prototype.iterator=function(){return this.closure$iterator()},Kc.$metadata$={kind:o,interfaces:[Vc]},Yc.prototype.yieldAll_p1ys8y$=function(e,n){if(!t.isType(e,Oe)||!e.isEmpty())return this.yieldAll_1phuh2$(e.iterator(),n)},Yc.prototype.yieldAll_swo9gw$=function(t,e){return this.yieldAll_1phuh2$(t.iterator(),e)},Yc.$metadata$={kind:o,simpleName:"SequenceScope",interfaces:[]},Qc.prototype.hasNext=function(){for(;;){switch(this.state_0){case 0:break;case 1:if(A(this.nextIterator_0).hasNext())return this.state_0=2,!0;this.nextIterator_0=null;break;case 4:return!1;case 3:case 2:return!0;default:throw this.exceptionalState_0()}this.state_0=5;var t=A(this.nextStep);this.nextStep=null,t.resumeWith_tl1gpc$(new sp(He()))}},Qc.prototype.next=function(){var e;switch(this.state_0){case 0:case 1:return this.nextNotReady_0();case 2:return this.state_0=1,A(this.nextIterator_0).next();case 3:this.state_0=0;var n=null==(e=this.nextValue_0)||t.isType(e,x)?e:Jo();return this.nextValue_0=null,n;default:throw this.exceptionalState_0()}},Qc.prototype.nextNotReady_0=function(){if(this.hasNext())return this.next();throw qn()},Qc.prototype.exceptionalState_0=function(){switch(this.state_0){case 4:return qn();case 5:return Rn("Iterator has failed.");default:return Rn("Unexpected state of the iterator: "+this.state_0)}},Qc.prototype.yield_11rb$=function(t,e){return this.nextValue_0=t,this.state_0=3,(n=this,function(t){return n.nextStep=t,Yl()})(e);var n},Qc.prototype.yieldAll_1phuh2$=function(t,e){var n;if(t.hasNext())return this.nextIterator_0=t,this.state_0=2,(n=this,function(t){return n.nextStep=t,Yl()})(e)},Qc.prototype.resumeWith_tl1gpc$=function(e){var n;dp(e),null==(n=e.value)||t.isType(n,x)||N(),this.state_0=4},Object.defineProperty(Qc.prototype,"context",{configurable:!0,get:function(){return ql()}}),Qc.$metadata$={kind:o,simpleName:"SequenceBuilderIterator",interfaces:[wl,je,Yc]},tl.prototype.iterator=function(){return Qa()},tl.prototype.drop_za3lpa$=function(t){return nl()},tl.prototype.take_za3lpa$=function(t){return nl()},tl.$metadata$={kind:w,simpleName:"EmptySequence",interfaces:[ll,Vc]};var el=null;function nl(){return null===el&&new tl,el}function il(t,e,n){void 0===e&&(e=!0),this.sequence_0=t,this.sendWhen_0=e,this.predicate_0=n}function ol(t){this.this$FilteringSequence=t,this.iterator=t.sequence_0.iterator(),this.nextState=-1,this.nextItem=null}function rl(t,e){this.sequence_0=t,this.transformer_0=e}function sl(t){this.this$TransformingSequence=t,this.iterator=t.sequence_0.iterator()}function al(t,e,n){this.sequence_0=t,this.transformer_0=e,this.iterator_0=n}function cl(t){this.this$FlatteningSequence=t,this.iterator=t.sequence_0.iterator(),this.itemIterator=null}function ll(){}function ul(t,e,n){if(this.sequence_0=t,this.startIndex_0=e,this.endIndex_0=n,!(this.startIndex_0>=0))throw wn(("startIndex should be non-negative, but is "+this.startIndex_0).toString());if(!(this.endIndex_0>=0))throw wn(("endIndex should be non-negative, but is "+this.endIndex_0).toString());if(!(this.endIndex_0>=this.startIndex_0))throw wn(("endIndex should be not less than startIndex, but was "+this.endIndex_0+" < "+this.startIndex_0).toString())}function hl(t){this.this$SubSequence=t,this.iterator=t.sequence_0.iterator(),this.position=0}function dl(t,e){if(this.sequence_0=t,this.count_0=e,!(this.count_0>=0))throw wn(("count must be non-negative, but was "+this.count_0+".").toString())}function pl(t){this.left=t.count_0,this.iterator=t.sequence_0.iterator()}function _l(t,e){this.getInitialValue_0=t,this.getNextValue_0=e}function ml(t){this.this$GeneratorSequence=t,this.nextItem=null,this.nextState=-2}function fl(t,e){return new _l(t,e)}function gl(){$l=this,this.serialVersionUID_0=H}ol.prototype.calcNext_0=function(){for(;this.iterator.hasNext();){var t=this.iterator.next();if(this.this$FilteringSequence.predicate_0(t)===this.this$FilteringSequence.sendWhen_0)return this.nextItem=t,void(this.nextState=1)}this.nextState=0},ol.prototype.next=function(){var e;if(-1===this.nextState&&this.calcNext_0(),0===this.nextState)throw qn();var n=this.nextItem;return this.nextItem=null,this.nextState=-1,null==(e=n)||t.isType(e,x)?e:Jo()},ol.prototype.hasNext=function(){return-1===this.nextState&&this.calcNext_0(),1===this.nextState},ol.$metadata$={kind:o,interfaces:[je]},il.prototype.iterator=function(){return new ol(this)},il.$metadata$={kind:o,simpleName:"FilteringSequence",interfaces:[Vc]},sl.prototype.next=function(){return this.this$TransformingSequence.transformer_0(this.iterator.next())},sl.prototype.hasNext=function(){return this.iterator.hasNext()},sl.$metadata$={kind:o,interfaces:[je]},rl.prototype.iterator=function(){return new sl(this)},rl.prototype.flatten_1tglza$=function(t){return new al(this.sequence_0,this.transformer_0,t)},rl.$metadata$={kind:o,simpleName:"TransformingSequence",interfaces:[Vc]},cl.prototype.next=function(){if(!this.ensureItemIterator_0())throw qn();return A(this.itemIterator).next()},cl.prototype.hasNext=function(){return this.ensureItemIterator_0()},cl.prototype.ensureItemIterator_0=function(){var t;for(!1===(null!=(t=this.itemIterator)?t.hasNext():null)&&(this.itemIterator=null);null==this.itemIterator;){if(!this.iterator.hasNext())return!1;var e=this.iterator.next(),n=this.this$FlatteningSequence.iterator_0(this.this$FlatteningSequence.transformer_0(e));if(n.hasNext())return this.itemIterator=n,!0}return!0},cl.$metadata$={kind:o,interfaces:[je]},al.prototype.iterator=function(){return new cl(this)},al.$metadata$={kind:o,simpleName:"FlatteningSequence",interfaces:[Vc]},ll.$metadata$={kind:z,simpleName:"DropTakeSequence",interfaces:[Vc]},Object.defineProperty(ul.prototype,"count_0",{configurable:!0,get:function(){return this.endIndex_0-this.startIndex_0|0}}),ul.prototype.drop_za3lpa$=function(t){return t>=this.count_0?Zc():new ul(this.sequence_0,this.startIndex_0+t|0,this.endIndex_0)},ul.prototype.take_za3lpa$=function(t){return t>=this.count_0?this:new ul(this.sequence_0,this.startIndex_0,this.startIndex_0+t|0)},hl.prototype.drop_0=function(){for(;this.position=this.this$SubSequence.endIndex_0)throw qn();return this.position=this.position+1|0,this.iterator.next()},hl.$metadata$={kind:o,interfaces:[je]},ul.prototype.iterator=function(){return new hl(this)},ul.$metadata$={kind:o,simpleName:"SubSequence",interfaces:[ll,Vc]},dl.prototype.drop_za3lpa$=function(t){return t>=this.count_0?Zc():new ul(this.sequence_0,t,this.count_0)},dl.prototype.take_za3lpa$=function(t){return t>=this.count_0?this:new dl(this.sequence_0,t)},pl.prototype.next=function(){if(0===this.left)throw qn();return this.left=this.left-1|0,this.iterator.next()},pl.prototype.hasNext=function(){return this.left>0&&this.iterator.hasNext()},pl.$metadata$={kind:o,interfaces:[je]},dl.prototype.iterator=function(){return new pl(this)},dl.$metadata$={kind:o,simpleName:"TakeSequence",interfaces:[ll,Vc]},ml.prototype.calcNext_0=function(){this.nextItem=-2===this.nextState?this.this$GeneratorSequence.getInitialValue_0():this.this$GeneratorSequence.getNextValue_0(A(this.nextItem)),this.nextState=null==this.nextItem?0:1},ml.prototype.next=function(){var e;if(this.nextState<0&&this.calcNext_0(),0===this.nextState)throw qn();var n=t.isType(e=this.nextItem,x)?e:Jo();return this.nextState=-1,n},ml.prototype.hasNext=function(){return this.nextState<0&&this.calcNext_0(),1===this.nextState},ml.$metadata$={kind:o,interfaces:[je]},_l.prototype.iterator=function(){return new ml(this)},_l.$metadata$={kind:o,simpleName:"GeneratorSequence",interfaces:[Vc]},gl.prototype.equals=function(e){return t.isType(e,Ie)&&e.isEmpty()},gl.prototype.hashCode=function(){return 0},gl.prototype.toString=function(){return"[]"},Object.defineProperty(gl.prototype,"size",{configurable:!0,get:function(){return 0}}),gl.prototype.isEmpty=function(){return!0},gl.prototype.contains_11rb$=function(t){return!1},gl.prototype.containsAll_brywnq$=function(t){return t.isEmpty()},gl.prototype.iterator=function(){return Qa()},gl.prototype.readResolve_0=function(){return El()},gl.$metadata$={kind:w,simpleName:"EmptySet",interfaces:[Qo,Ie]};var $l=null;function El(){return null===$l&&new gl,$l}function yl(){return El()}function bl(t){return Nt(t,So(t.length))}function Sl(t){switch(t.size){case 0:return yl();case 1:return Ti(t.iterator().next());default:return t}}function vl(){var e;return t.isType(e=Tl(),bi)?e:Jo()}function Cl(){Nl=this}Cl.prototype.compare=function(e,n){return t.compareTo(e,n)},Cl.prototype.reversed=function(){return null===zl&&new Ll,zl},Cl.$metadata$={kind:w,simpleName:"NaturalOrderComparator",interfaces:[bi]};var Nl=null;function Tl(){return null===Nl&&new Cl,Nl}function Ll(){zl=this}Ll.prototype.compare=function(e,n){return t.compareTo(n,e)},Ll.prototype.reversed=function(){return Tl()},Ll.$metadata$={kind:w,simpleName:"ReverseOrderComparator",interfaces:[bi]};var zl=null;function wl(){}function Ol(){xl()}function Rl(){Al=this}wl.$metadata$={kind:z,simpleName:"Continuation",interfaces:[]},r("kotlin.kotlin.coroutines.suspendCoroutine_922awp$",s((function(){var n=e.kotlin.coroutines.intrinsics.intercepted_f9mg25$,i=e.kotlin.coroutines.SafeContinuation_init_wj8d80$;return function(e,o){var r;return t.suspendCall((r=e,function(t){var e=i(n(t));return r(e),e.getOrThrow()})(t.coroutineReceiver())),t.coroutineResult(t.coroutineReceiver())}}))),Rl.$metadata$={kind:w,simpleName:"Key",interfaces:[Dl]};var Al=null;function xl(){return null===Al&&new Rl,Al}function Il(){}function Ul(t,e){var n=t.minusKey_yeqjby$(e.key);if(n===ql())return e;var i=n.get_j3r2sn$(xl());if(null==i)return new Fl(n,e);var o=n.minusKey_yeqjby$(xl());return o===ql()?new Fl(e,i):new Fl(new Fl(o,e),i)}function Dl(){}function Pl(){}function Ml(t){this.key_no4tas$_0=t}function kl(e,n){this.safeCast_9rw4bk$_0=n,this.topmostKey_3x72pn$_0=t.isType(e,kl)?e.topmostKey_3x72pn$_0:e}function jl(){Gl=this,this.serialVersionUID_0=h}Ol.prototype.releaseInterceptedContinuation_k98bjh$=function(t){},Ol.prototype.get_j3r2sn$=function(e){var n;return t.isType(e,kl)?e.isSubKey_i2ksv9$(this.key)&&t.isType(n=e.tryCast_m1180o$(this),Pl)?n:null:xl()===e?t.isType(this,Pl)?this:Jo():null},Ol.prototype.minusKey_yeqjby$=function(e){return t.isType(e,kl)?e.isSubKey_i2ksv9$(this.key)&&null!=e.tryCast_m1180o$(this)?ql():this:xl()===e?ql():this},Ol.$metadata$={kind:z,simpleName:"ContinuationInterceptor",interfaces:[Pl]},Il.prototype.plus_1fupul$=function(t){return t===ql()?this:t.fold_3cc69b$(this,Ul)},Dl.$metadata$={kind:z,simpleName:"Key",interfaces:[]},Pl.prototype.get_j3r2sn$=function(e){return a(this.key,e)?t.isType(this,Pl)?this:Jo():null},Pl.prototype.fold_3cc69b$=function(t,e){return e(t,this)},Pl.prototype.minusKey_yeqjby$=function(t){return a(this.key,t)?ql():this},Pl.$metadata$={kind:z,simpleName:"Element",interfaces:[Il]},Il.$metadata$={kind:z,simpleName:"CoroutineContext",interfaces:[]},Object.defineProperty(Ml.prototype,"key",{get:function(){return this.key_no4tas$_0}}),Ml.$metadata$={kind:o,simpleName:"AbstractCoroutineContextElement",interfaces:[Pl]},kl.prototype.tryCast_m1180o$=function(t){return this.safeCast_9rw4bk$_0(t)},kl.prototype.isSubKey_i2ksv9$=function(t){return t===this||this.topmostKey_3x72pn$_0===t},kl.$metadata$={kind:o,simpleName:"AbstractCoroutineContextKey",interfaces:[Dl]},jl.prototype.readResolve_0=function(){return ql()},jl.prototype.get_j3r2sn$=function(t){return null},jl.prototype.fold_3cc69b$=function(t,e){return t},jl.prototype.plus_1fupul$=function(t){return t},jl.prototype.minusKey_yeqjby$=function(t){return this},jl.prototype.hashCode=function(){return 0},jl.prototype.toString=function(){return"EmptyCoroutineContext"},jl.$metadata$={kind:w,simpleName:"EmptyCoroutineContext",interfaces:[Qo,Il]};var Gl=null;function ql(){return null===Gl&&new jl,Gl}function Fl(t,e){this.left_0=t,this.element_0=e}function Bl(t,e){return 0===t.length?e.toString():t+", "+e}function Wl(t){null===Jl&&new Hl,this.elements=t}function Hl(){Jl=this,this.serialVersionUID_0=h}Fl.prototype.get_j3r2sn$=function(e){for(var n,i=this;;){if(null!=(n=i.element_0.get_j3r2sn$(e)))return n;var o=i.left_0;if(!t.isType(o,Fl))return o.get_j3r2sn$(e);i=o}},Fl.prototype.fold_3cc69b$=function(t,e){return e(this.left_0.fold_3cc69b$(t,e),this.element_0)},Fl.prototype.minusKey_yeqjby$=function(t){if(null!=this.element_0.get_j3r2sn$(t))return this.left_0;var e=this.left_0.minusKey_yeqjby$(t);return e===this.left_0?this:e===ql()?this.element_0:new Fl(e,this.element_0)},Fl.prototype.size_0=function(){for(var e,n,i=this,o=2;;){if(null==(n=t.isType(e=i.left_0,Fl)?e:null))return o;i=n,o=o+1|0}},Fl.prototype.contains_0=function(t){return a(this.get_j3r2sn$(t.key),t)},Fl.prototype.containsAll_0=function(e){for(var n,i=e;;){if(!this.contains_0(i.element_0))return!1;var o=i.left_0;if(!t.isType(o,Fl))return this.contains_0(t.isType(n=o,Pl)?n:Jo());i=o}},Fl.prototype.equals=function(e){return this===e||t.isType(e,Fl)&&e.size_0()===this.size_0()&&e.containsAll_0(this)},Fl.prototype.hashCode=function(){return P(this.left_0)+P(this.element_0)|0},Fl.prototype.toString=function(){return"["+this.fold_3cc69b$("",Bl)+"]"},Fl.prototype.writeReplace_0=function(){var e,n,i,o=this.size_0(),r=t.newArray(o,null),s={v:0};if(this.fold_3cc69b$(He(),(n=r,i=s,function(t,e){var o;return n[(o=i.v,i.v=o+1|0,o)]=e,Be})),s.v!==o)throw Rn("Check failed.".toString());return new Wl(t.isArray(e=r)?e:Jo())},Hl.$metadata$={kind:w,simpleName:"Companion",interfaces:[]};var Vl,Kl,Xl,Jl=null;function Yl(){return tu()}function Ql(t,e){O.call(this),this.name$=t,this.ordinal$=e}function Zl(){Zl=function(){},Vl=new Ql("COROUTINE_SUSPENDED",0),Kl=new Ql("UNDECIDED",1),Xl=new Ql("RESUMED",2)}function tu(){return Zl(),Vl}function eu(){return Zl(),Kl}function nu(){return Zl(),Xl}function iu(t,e){var n=t%e|0;return n>=0?n:n+e|0}function ou(t,e){var n=t.modulo(e);return n.toNumber()>=0?n:n.add(e)}function ru(t,e,n){return iu(iu(t,n)-iu(e,n)|0,n)}function su(t,e,n){return ou(ou(t,n).subtract(ou(e,n)),n)}function au(t,e,n){if(n>0)return t>=e?e:e-ru(e,t,n)|0;if(n<0)return t<=e?e:e+ru(t,e,0|-n)|0;throw wn("Step is zero.")}function cu(t,e,n){if(n.toNumber()>0)return t.compareTo_11rb$(e)>=0?e:e.subtract(su(e,t,n));if(n.toNumber()<0)return t.compareTo_11rb$(e)<=0?e:e.add(su(t,e,n.unaryMinus()));throw wn("Step is zero.")}function lu(t){this.function$=t}function uu(){mu()}function hu(){_u=this,uu.call(this),this.defaultRandom_0=ur()}function du(){pu=this,this.serialVersionUID_0=h}Wl.prototype.readResolve_0=function(){var t,e=this.elements,n=ql();for(t=0;t!==e.length;++t){var i=e[t];n=n.plus_1fupul$(i)}return n},Wl.$metadata$={kind:o,simpleName:"Serialized",interfaces:[Qo]},Fl.$metadata$={kind:o,simpleName:"CombinedContext",interfaces:[Qo,Il]},r("kotlin.kotlin.coroutines.intrinsics.suspendCoroutineUninterceptedOrReturn_zb0pmy$",s((function(){var t=e.kotlin.NotImplementedError;return function(e,n){throw new t("Implementation of suspendCoroutineUninterceptedOrReturn is intrinsic")}}))),Ql.$metadata$={kind:o,simpleName:"CoroutineSingletons",interfaces:[O]},Ql.values=function(){return[tu(),eu(),nu()]},Ql.valueOf_61zpoe$=function(t){switch(t){case"COROUTINE_SUSPENDED":return tu();case"UNDECIDED":return eu();case"RESUMED":return nu();default:Yo("No enum constant kotlin.coroutines.intrinsics.CoroutineSingletons."+t)}},lu.prototype.getValue_lrcp0p$=function(t,e){return this.function$(t,e)},lu.$metadata$={kind:z,simpleName:"ReadOnlyProperty",interfaces:[]},uu.prototype.nextInt=function(){return this.nextBits_za3lpa$(32)},uu.prototype.nextInt_za3lpa$=function(t){return this.nextInt_vux9f0$(0,t)},uu.prototype.nextInt_vux9f0$=function(t,e){var n;Eu(t,e);var i=e-t|0;if(i>0||-2147483648===i){if((i&(0|-i))===i){var o=gu(i);n=this.nextBits_za3lpa$(o)}else{var r;do{var s=this.nextInt()>>>1;r=s%i|0}while((s-r+(i-1)|0)<0);n=r}return t+n|0}for(;;){var a=this.nextInt();if(t<=a&&a0){var r;if(a(o.and(o.unaryMinus()),o)){var s=o.toInt(),c=o.shiftRightUnsigned(32).toInt();if(0!==s){var l=gu(s);i=t.Long.fromInt(this.nextBits_za3lpa$(l)).and(L)}else if(1===c)i=t.Long.fromInt(this.nextInt()).and(L);else{var u=gu(c);i=t.Long.fromInt(this.nextBits_za3lpa$(u)).shiftLeft(32).add(t.Long.fromInt(this.nextInt()).and(L))}r=i}else{var h;do{var d=this.nextLong().shiftRightUnsigned(1);h=d.modulo(o)}while(d.subtract(h).add(o.subtract(t.Long.fromInt(1))).toNumber()<0);r=h}return e.add(r)}for(;;){var p=this.nextLong();if(e.lessThanOrEqual(p)&&p.lessThan(n))return p}},uu.prototype.nextBoolean=function(){return 0!==this.nextBits_za3lpa$(1)},uu.prototype.nextDouble=function(){return hr(this.nextBits_za3lpa$(26),this.nextBits_za3lpa$(27))},uu.prototype.nextDouble_14dthe$=function(t){return this.nextDouble_lu1900$(0,t)},uu.prototype.nextDouble_lu1900$=function(t,e){var n;bu(t,e);var i=e-t;if(sr(i)&&cr(t)&&cr(e)){var o=this.nextDouble()*(e/2-t/2);n=t+o+o}else n=t+this.nextDouble()*i;var r=n;return r>=e?Zo(e):r},uu.prototype.nextFloat=function(){return this.nextBits_za3lpa$(24)/16777216},uu.prototype.nextBytes_mj6st8$$default=function(t,e,n){var i,o,r;if(!(0<=e&&e<=t.length&&0<=n&&n<=t.length))throw wn((i=e,o=n,r=t,function(){return"fromIndex ("+i+") or toIndex ("+o+") are out of range: 0.."+r.length+"."})().toString());if(!(e<=n))throw wn(("fromIndex ("+e+") must be not greater than toIndex ("+n+").").toString());for(var s=(n-e|0)/4|0,a={v:e},c=0;c>>8),t[a.v+2|0]=m(l>>>16),t[a.v+3|0]=m(l>>>24),a.v=a.v+4|0}for(var u=n-a.v|0,h=this.nextBits_za3lpa$(8*u|0),d=0;d>>(8*d|0));return t},uu.prototype.nextBytes_mj6st8$=function(t,e,n,i){return void 0===e&&(e=0),void 0===n&&(n=t.length),i?i(t,e,n):this.nextBytes_mj6st8$$default(t,e,n)},uu.prototype.nextBytes_fqrh44$=function(t){return this.nextBytes_mj6st8$(t,0,t.length)},uu.prototype.nextBytes_za3lpa$=function(t){return this.nextBytes_fqrh44$(new Int8Array(t))},du.prototype.readResolve_0=function(){return mu()},du.$metadata$={kind:w,simpleName:"Serialized",interfaces:[Qo]};var pu=null;hu.prototype.writeReplace_0=function(){return null===pu&&new du,pu},hu.prototype.nextBits_za3lpa$=function(t){return this.defaultRandom_0.nextBits_za3lpa$(t)},hu.prototype.nextInt=function(){return this.defaultRandom_0.nextInt()},hu.prototype.nextInt_za3lpa$=function(t){return this.defaultRandom_0.nextInt_za3lpa$(t)},hu.prototype.nextInt_vux9f0$=function(t,e){return this.defaultRandom_0.nextInt_vux9f0$(t,e)},hu.prototype.nextLong=function(){return this.defaultRandom_0.nextLong()},hu.prototype.nextLong_s8cxhz$=function(t){return this.defaultRandom_0.nextLong_s8cxhz$(t)},hu.prototype.nextLong_3pjtqy$=function(t,e){return this.defaultRandom_0.nextLong_3pjtqy$(t,e)},hu.prototype.nextBoolean=function(){return this.defaultRandom_0.nextBoolean()},hu.prototype.nextDouble=function(){return this.defaultRandom_0.nextDouble()},hu.prototype.nextDouble_14dthe$=function(t){return this.defaultRandom_0.nextDouble_14dthe$(t)},hu.prototype.nextDouble_lu1900$=function(t,e){return this.defaultRandom_0.nextDouble_lu1900$(t,e)},hu.prototype.nextFloat=function(){return this.defaultRandom_0.nextFloat()},hu.prototype.nextBytes_fqrh44$=function(t){return this.defaultRandom_0.nextBytes_fqrh44$(t)},hu.prototype.nextBytes_za3lpa$=function(t){return this.defaultRandom_0.nextBytes_za3lpa$(t)},hu.prototype.nextBytes_mj6st8$$default=function(t,e,n){return this.defaultRandom_0.nextBytes_mj6st8$(t,e,n)},hu.$metadata$={kind:w,simpleName:"Default",interfaces:[Qo,uu]};var _u=null;function mu(){return null===_u&&new hu,_u}function fu(t){return Tu(t,t>>31)}function gu(t){return 31-j(t)|0}function $u(t,e){return t>>>32-e&(0|-e)>>31}function Eu(t,e){if(!(e>t))throw wn(Su(t,e).toString())}function yu(t,e){if(!(e.compareTo_11rb$(t)>0))throw wn(Su(t,e).toString())}function bu(t,e){if(!(e>t))throw wn(Su(t,e).toString())}function Su(t,e){return"Random range is empty: ["+t.toString()+", "+e.toString()+")."}function vu(t,e,n,i,o,r){if(null===Nu&&new Cu,uu.call(this),this.x_0=t,this.y_0=e,this.z_0=n,this.w_0=i,this.v_0=o,this.addend_0=r,0==(this.x_0|this.y_0|this.z_0|this.w_0|this.v_0))throw wn("Initial state must have at least one non-zero element.".toString());for(var s=0;s<64;s++)this.nextInt()}function Cu(){Nu=this,this.serialVersionUID_0=h}uu.$metadata$={kind:o,simpleName:"Random",interfaces:[]},vu.prototype.nextInt=function(){var t=this.x_0;t^=t>>>2,this.x_0=this.y_0,this.y_0=this.z_0,this.z_0=this.w_0;var e=this.v_0;return this.w_0=e,t=t^t<<1^e^e<<4,this.v_0=t,this.addend_0=this.addend_0+362437|0,t+this.addend_0|0},vu.prototype.nextBits_za3lpa$=function(t){return $u(this.nextInt(),t)},Cu.$metadata$={kind:w,simpleName:"Companion",interfaces:[]};var Nu=null;function Tu(t,e,n){return n=n||Object.create(vu.prototype),vu.call(n,t,e,0,0,~t,t<<10^e>>>4),n}function Lu(t,e){Ou(),qu.call(this,t,e,1)}function zu(){wu=this,this.EMPTY=new Lu(p(1),p(0))}vu.$metadata$={kind:o,simpleName:"XorWowRandom",interfaces:[Qo,uu]},Object.defineProperty(Lu.prototype,"start",{configurable:!0,get:function(){return c(this.first)}}),Object.defineProperty(Lu.prototype,"endInclusive",{configurable:!0,get:function(){return c(this.last)}}),Object.defineProperty(Lu.prototype,"endExclusive",{configurable:!0,get:function(){if(this.last===G.MAX_VALUE)throw Rn("Cannot return the exclusive upper bound of a range that includes MAX_VALUE.".toString());return c(p(this.last+1))}}),Lu.prototype.contains_mef7kx$=function(t){return this.first<=t&&t<=this.last},Lu.prototype.isEmpty=function(){return this.first>this.last},Lu.prototype.equals=function(e){return t.isType(e,Lu)&&(this.isEmpty()&&e.isEmpty()||this.first===e.first&&this.last===e.last)},Lu.prototype.hashCode=function(){return this.isEmpty()?-1:(31*(0|this.first)|0)+(0|this.last)|0},Lu.prototype.toString=function(){return String.fromCharCode(this.first)+".."+String.fromCharCode(this.last)},zu.$metadata$={kind:w,simpleName:"Companion",interfaces:[]};var wu=null;function Ou(){return null===wu&&new zu,wu}function Ru(t,e){Iu(),Hu.call(this,t,e,1)}function Au(){xu=this,this.EMPTY=new Ru(1,0)}Lu.$metadata$={kind:o,simpleName:"CharRange",interfaces:[eh,th,qu]},Object.defineProperty(Ru.prototype,"start",{configurable:!0,get:function(){return this.first}}),Object.defineProperty(Ru.prototype,"endInclusive",{configurable:!0,get:function(){return this.last}}),Object.defineProperty(Ru.prototype,"endExclusive",{configurable:!0,get:function(){if(2147483647===this.last)throw Rn("Cannot return the exclusive upper bound of a range that includes MAX_VALUE.".toString());return this.last+1|0}}),Ru.prototype.contains_mef7kx$=function(t){return this.first<=t&&t<=this.last},Ru.prototype.isEmpty=function(){return this.first>this.last},Ru.prototype.equals=function(e){return t.isType(e,Ru)&&(this.isEmpty()&&e.isEmpty()||this.first===e.first&&this.last===e.last)},Ru.prototype.hashCode=function(){return this.isEmpty()?-1:(31*this.first|0)+this.last|0},Ru.prototype.toString=function(){return this.first.toString()+".."+this.last},Au.$metadata$={kind:w,simpleName:"Companion",interfaces:[]};var xu=null;function Iu(){return null===xu&&new Au,xu}function Uu(t,e){Mu(),Ju.call(this,t,e,V)}function Du(){Pu=this,this.EMPTY=new Uu(V,h)}Ru.$metadata$={kind:o,simpleName:"IntRange",interfaces:[eh,th,Hu]},Object.defineProperty(Uu.prototype,"start",{configurable:!0,get:function(){return this.first}}),Object.defineProperty(Uu.prototype,"endInclusive",{configurable:!0,get:function(){return this.last}}),Object.defineProperty(Uu.prototype,"endExclusive",{configurable:!0,get:function(){if(a(this.last,b))throw Rn("Cannot return the exclusive upper bound of a range that includes MAX_VALUE.".toString());return this.last.add(t.Long.fromInt(1))}}),Uu.prototype.contains_mef7kx$=function(t){return this.first.compareTo_11rb$(t)<=0&&t.compareTo_11rb$(this.last)<=0},Uu.prototype.isEmpty=function(){return this.first.compareTo_11rb$(this.last)>0},Uu.prototype.equals=function(e){return t.isType(e,Uu)&&(this.isEmpty()&&e.isEmpty()||a(this.first,e.first)&&a(this.last,e.last))},Uu.prototype.hashCode=function(){return this.isEmpty()?-1:t.Long.fromInt(31).multiply(this.first.xor(this.first.shiftRightUnsigned(32))).add(this.last.xor(this.last.shiftRightUnsigned(32))).toInt()},Uu.prototype.toString=function(){return this.first.toString()+".."+this.last.toString()},Du.$metadata$={kind:w,simpleName:"Companion",interfaces:[]};var Pu=null;function Mu(){return null===Pu&&new Du,Pu}function ku(t,e,n){jc.call(this),this.step=n,this.finalElement_0=0|e,this.hasNext_0=this.step>0?t<=e:t>=e,this.next_0=this.hasNext_0?0|t:this.finalElement_0}function ju(t,e,n){qc.call(this),this.step=n,this.finalElement_0=e,this.hasNext_0=this.step>0?t<=e:t>=e,this.next_0=this.hasNext_0?t:this.finalElement_0}function Gu(t,e,n){Fc.call(this),this.step=n,this.finalElement_0=e,this.hasNext_0=this.step.toNumber()>0?t.compareTo_11rb$(e)<=0:t.compareTo_11rb$(e)>=0,this.next_0=this.hasNext_0?t:this.finalElement_0}function qu(t,e,n){if(Wu(),0===n)throw wn("Step must be non-zero.");if(-2147483648===n)throw wn("Step must be greater than Int.MIN_VALUE to avoid overflow on negation.");this.first=t,this.last=p(au(0|t,0|e,n)),this.step=n}function Fu(){Bu=this}Uu.$metadata$={kind:o,simpleName:"LongRange",interfaces:[eh,th,Ju]},ku.prototype.hasNext=function(){return this.hasNext_0},ku.prototype.nextChar=function(){var t=this.next_0;if(t===this.finalElement_0){if(!this.hasNext_0)throw qn();this.hasNext_0=!1}else this.next_0=this.next_0+this.step|0;return p(t)},ku.$metadata$={kind:o,simpleName:"CharProgressionIterator",interfaces:[jc]},ju.prototype.hasNext=function(){return this.hasNext_0},ju.prototype.nextInt=function(){var t=this.next_0;if(t===this.finalElement_0){if(!this.hasNext_0)throw qn();this.hasNext_0=!1}else this.next_0=this.next_0+this.step|0;return t},ju.$metadata$={kind:o,simpleName:"IntProgressionIterator",interfaces:[qc]},Gu.prototype.hasNext=function(){return this.hasNext_0},Gu.prototype.nextLong=function(){var t=this.next_0;if(a(t,this.finalElement_0)){if(!this.hasNext_0)throw qn();this.hasNext_0=!1}else this.next_0=this.next_0.add(this.step);return t},Gu.$metadata$={kind:o,simpleName:"LongProgressionIterator",interfaces:[Fc]},qu.prototype.iterator=function(){return new ku(this.first,this.last,this.step)},qu.prototype.isEmpty=function(){return this.step>0?this.first>this.last:this.first0?String.fromCharCode(this.first)+".."+String.fromCharCode(this.last)+" step "+this.step:String.fromCharCode(this.first)+" downTo "+String.fromCharCode(this.last)+" step "+(0|-this.step)},Fu.prototype.fromClosedRange_ayra44$=function(t,e,n){return new qu(t,e,n)},Fu.$metadata$={kind:w,simpleName:"Companion",interfaces:[]};var Bu=null;function Wu(){return null===Bu&&new Fu,Bu}function Hu(t,e,n){if(Xu(),0===n)throw wn("Step must be non-zero.");if(-2147483648===n)throw wn("Step must be greater than Int.MIN_VALUE to avoid overflow on negation.");this.first=t,this.last=au(t,e,n),this.step=n}function Vu(){Ku=this}qu.$metadata$={kind:o,simpleName:"CharProgression",interfaces:[ze]},Hu.prototype.iterator=function(){return new ju(this.first,this.last,this.step)},Hu.prototype.isEmpty=function(){return this.step>0?this.first>this.last:this.first0?this.first.toString()+".."+this.last+" step "+this.step:this.first.toString()+" downTo "+this.last+" step "+(0|-this.step)},Vu.prototype.fromClosedRange_qt1dr2$=function(t,e,n){return new Hu(t,e,n)},Vu.$metadata$={kind:w,simpleName:"Companion",interfaces:[]};var Ku=null;function Xu(){return null===Ku&&new Vu,Ku}function Ju(t,e,n){if(Zu(),a(n,h))throw wn("Step must be non-zero.");if(a(n,y))throw wn("Step must be greater than Long.MIN_VALUE to avoid overflow on negation.");this.first=t,this.last=cu(t,e,n),this.step=n}function Yu(){Qu=this}Hu.$metadata$={kind:o,simpleName:"IntProgression",interfaces:[ze]},Ju.prototype.iterator=function(){return new Gu(this.first,this.last,this.step)},Ju.prototype.isEmpty=function(){return this.step.toNumber()>0?this.first.compareTo_11rb$(this.last)>0:this.first.compareTo_11rb$(this.last)<0},Ju.prototype.equals=function(e){return t.isType(e,Ju)&&(this.isEmpty()&&e.isEmpty()||a(this.first,e.first)&&a(this.last,e.last)&&a(this.step,e.step))},Ju.prototype.hashCode=function(){return this.isEmpty()?-1:t.Long.fromInt(31).multiply(t.Long.fromInt(31).multiply(this.first.xor(this.first.shiftRightUnsigned(32))).add(this.last.xor(this.last.shiftRightUnsigned(32)))).add(this.step.xor(this.step.shiftRightUnsigned(32))).toInt()},Ju.prototype.toString=function(){return this.step.toNumber()>0?this.first.toString()+".."+this.last.toString()+" step "+this.step.toString():this.first.toString()+" downTo "+this.last.toString()+" step "+this.step.unaryMinus().toString()},Yu.prototype.fromClosedRange_b9bd0d$=function(t,e,n){return new Ju(t,e,n)},Yu.$metadata$={kind:w,simpleName:"Companion",interfaces:[]};var Qu=null;function Zu(){return null===Qu&&new Yu,Qu}function th(){}function eh(){}function nh(t,e){this.start_p1gsmm$_0=t,this.endInclusive_jj4lf7$_0=e}function ih(t,e){this.start_ndr8iz$_0=t,this.endExclusive_cyyf3u$_0=e}function oh(){}function rh(t,e){this._start_0=t,this._endInclusive_0=e}function sh(){}function ah(){}function ch(t,e){if(_h(),this.variance=t,this.type=e,null==this.variance!=(null==this.type))throw wn((null==this.variance?"Star projection must have no type specified.":"The projection variance "+C(this.variance)+" requires type to be specified.").toString())}function lh(){ph=this,this.star=new ch(null,null)}Ju.$metadata$={kind:o,simpleName:"LongProgression",interfaces:[ze]},th.prototype.contains_mef7kx$=function(e){return t.compareTo(e,this.start)>=0&&t.compareTo(e,this.endInclusive)<=0},th.prototype.isEmpty=function(){return t.compareTo(this.start,this.endInclusive)>0},th.$metadata$={kind:z,simpleName:"ClosedRange",interfaces:[]},eh.prototype.contains_mef7kx$=function(e){return t.compareTo(e,this.start)>=0&&t.compareTo(e,this.endExclusive)<0},eh.prototype.isEmpty=function(){return t.compareTo(this.start,this.endExclusive)>=0},eh.$metadata$={kind:z,simpleName:"OpenEndRange",interfaces:[]},oh.prototype.contains_mef7kx$=function(t){return this.lessThanOrEquals_n65qkk$(this.start,t)&&this.lessThanOrEquals_n65qkk$(t,this.endInclusive)},oh.prototype.isEmpty=function(){return!this.lessThanOrEquals_n65qkk$(this.start,this.endInclusive)},oh.$metadata$={kind:z,simpleName:"ClosedFloatingPointRange",interfaces:[th]},Object.defineProperty(rh.prototype,"start",{configurable:!0,get:function(){return this._start_0}}),Object.defineProperty(rh.prototype,"endInclusive",{configurable:!0,get:function(){return this._endInclusive_0}}),rh.prototype.lessThanOrEquals_n65qkk$=function(t,e){return t<=e},rh.prototype.contains_mef7kx$=function(t){return t>=this._start_0&&t<=this._endInclusive_0},rh.prototype.isEmpty=function(){return!(this._start_0<=this._endInclusive_0)},rh.prototype.equals=function(e){return t.isType(e,rh)&&(this.isEmpty()&&e.isEmpty()||this._start_0===e._start_0&&this._endInclusive_0===e._endInclusive_0)},rh.prototype.hashCode=function(){return this.isEmpty()?-1:(31*P(this._start_0)|0)+P(this._endInclusive_0)|0},rh.prototype.toString=function(){return this._start_0.toString()+".."+this._endInclusive_0},rh.$metadata$={kind:o,simpleName:"ClosedDoubleRange",interfaces:[oh]},sh.$metadata$={kind:z,simpleName:"KClassifier",interfaces:[]},ah.$metadata$={kind:z,simpleName:"KTypeParameter",interfaces:[sh]},ch.prototype.toString=function(){var e;return null==(e=this.variance)?"*":a(e,gh())?C(this.type):a(e,$h())?"in "+C(this.type):a(e,Eh())?"out "+C(this.type):t.noWhenBranchMatched()},Object.defineProperty(lh.prototype,"STAR",{configurable:!0,get:function(){return this.star}}),lh.prototype.invariant_saj79j$=function(t){return new ch(gh(),t)},lh.prototype.contravariant_saj79j$=function(t){return new ch($h(),t)},lh.prototype.covariant_saj79j$=function(t){return new ch(Eh(),t)},lh.$metadata$={kind:w,simpleName:"Companion",interfaces:[]};var uh,hh,dh,ph=null;function _h(){return null===ph&&new lh,ph}function mh(t,e){O.call(this),this.name$=t,this.ordinal$=e}function fh(){fh=function(){},uh=new mh("INVARIANT",0),hh=new mh("IN",1),dh=new mh("OUT",2)}function gh(){return fh(),uh}function $h(){return fh(),hh}function Eh(){return fh(),dh}function yh(e,n,i){null!=i?e.append_gw00v9$(i(n)):null==n||t.isCharSequence(n)?e.append_gw00v9$(n):t.isChar(n)?e.append_s8itvh$(l(n)):e.append_gw00v9$(C(n))}function bh(t,e,n){if(void 0===n&&(n=!1),t===e)return!0;if(!n)return!1;var i=ls(t),o=ls(e),r=i===o;return r||(r=String.fromCharCode(i).toLowerCase().charCodeAt(0)===String.fromCharCode(o).toLowerCase().charCodeAt(0)),r}function Sh(e,n,i){if(void 0===n&&(n=""),void 0===i&&(i="|"),oa(i))throw wn("marginPrefix must be non-blank string.".toString());var o,r,s=pd(e),a=(e.length,t.imul(n.length,s.size),Th(n)),u=cc(s),h=Yi(),d=0;for(o=s.iterator();o.hasNext();){var p,_,m,f,g=o.next(),$=xi((d=(r=d)+1|0,r));if(0!==$&&$!==u||!oa(g)){var E;t:do{var y,b,S,v;b=(y=Fh(g)).first,S=y.last,v=y.step;for(var C=b;C<=S;C+=v)if(!ps(l(c(g.charCodeAt(C))))){E=C;break t}E=-1}while(0);var N=E;f=null!=(m=null!=(_=-1===N?null:na(g,i,N)?g.substring(N+i.length|0):null)?a(_):null)?m:g}else f=null;null!=(p=f)&&h.add_11rb$(p)}return Qt(h,as(),"\n").toString()}function vh(e,n){var i;void 0===n&&(n="");var o,r=pd(e),s=Yi();for(o=r.iterator();o.hasNext();){var a=o.next();oa(a)||s.add_11rb$(a)}var c,l=s,u=Qi(fc(l,10));for(c=l.iterator();c.hasNext();){var h=c.next();u.add_11rb$(Ch(h))}var d,p,_=null!=(i=Jt(u))?i:0,m=(e.length,t.imul(n.length,r.size),Th(n)),f=cc(r),g=Yi(),$=0;for(d=r.iterator();d.hasNext();){var E,y,b,S=d.next(),v=xi(($=(p=$)+1|0,p));null!=(E=0!==v&&v!==f||!oa(S)?null!=(b=null!=(y=ve(S,_))?m(y):null)?b:S:null)&&g.add_11rb$(E)}return Qt(g,as(),"\n").toString()}function Ch(t){var e;t:do{var n,i,o,r;i=(n=Fh(t)).first,o=n.last,r=n.step;for(var s=i;s<=o;s+=r)if(!ps(l(c(t.charCodeAt(s))))){e=s;break t}e=-1}while(0);var a=e;return-1===a?t.length:a}function Nh(t){return t}function Th(t){return 0===t.length?Nh:(e=t,function(t){return e+t});var e}function Lh(t){return zh(t,10)}function zh(t,e){var n;if(null==(n=Ah(t,e)))return null;var i=n;return if.MAX_VALUE?null:m(i)}function wh(t){return Oh(t,10)}function Oh(t,e){var n;if(null==(n=Ah(t,e)))return null;var i=n;return iv.MAX_VALUE?null:S(i)}function Rh(t){return Ah(t,10)}function Ah(e,n){Es(n);var i,o,r,s=e.length;if(0===s)return null;var a=e.charCodeAt(0);if(a<48){if(1===s)return null;if(i=1,45===a)o=!0,r=-2147483648;else{if(43!==a)return null;o=!1,r=-2147483647}}else i=0,o=!1,r=-2147483647;for(var c=-59652323,l=0,u=i;u(t.length-o|0)||i>(n.length-o|0))return!1;for(var s=0;s0&&bh(t.charCodeAt(0),e,n)}function Kh(t,e,n){return void 0===n&&(n=!1),t.length>0&&bh(t.charCodeAt(Bh(t)),e,n)}function Xh(t,e,n){return void 0===n&&(n=!1),n||"string"!=typeof t||"string"!=typeof e?Hh(t,0,e,0,e.length,n):ea(t,e)}function Jh(t,e,n){return void 0===n&&(n=!1),n||"string"!=typeof t||"string"!=typeof e?Hh(t,t.length-e.length|0,e,0,e.length,n):ia(t,e)}function Yh(t,e,n,i){var o,r;if(void 0===n&&(n=0),void 0===i&&(i=!1),!i&&1===e.length&&"string"==typeof t){var s=bt(e);return t.indexOf(String.fromCharCode(s),n)}o=se(n,0),r=Bh(t);for(var a=o;a<=r;a++){var u,h=t.charCodeAt(a);t:do{var d;for(d=0;d!==e.length;++d){var p=l(e[d]);if(bh(l(c(p)),h,i)){u=!0;break t}}u=!1}while(0);if(u)return a}return-1}function Qh(t,e,n,i){if(void 0===n&&(n=Bh(t)),void 0===i&&(i=!1),!i&&1===e.length&&"string"==typeof t){var o=bt(e);return t.lastIndexOf(String.fromCharCode(o),n)}for(var r=ae(n,Bh(t));r>=0;r--){var s,a=t.charCodeAt(r);t:do{var u;for(u=0;u!==e.length;++u){var h=l(e[u]);if(bh(l(c(h)),a,i)){s=!0;break t}}s=!1}while(0);if(s)return r}return-1}function Zh(t,e,n,i,o,r){var s,a;void 0===r&&(r=!1);var c=r?ne(ae(n,Bh(t)),se(i,0)):new Ru(se(n,0),ae(i,t.length));if("string"==typeof t&&"string"==typeof e)for(s=c.iterator();s.hasNext();){var l=s.next();if(ra(e,0,t,l,e.length,o))return l}else for(a=c.iterator();a.hasNext();){var u=a.next();if(Hh(e,0,t,u,e.length,o))return u}return-1}function td(e,n,i,o){return void 0===i&&(i=0),void 0===o&&(o=!1),o||"string"!=typeof e?Yh(e,t.charArrayOf(n),i,o):e.indexOf(String.fromCharCode(n),i)}function ed(t,e,n,i){return void 0===n&&(n=0),void 0===i&&(i=!1),i||"string"!=typeof t?Zh(t,e,n,t.length,i):t.indexOf(e,n)}function nd(t,e,n,i){return void 0===n&&(n=Bh(t)),void 0===i&&(i=!1),i||"string"!=typeof t?Zh(t,e,n,0,i,!0):t.lastIndexOf(e,n)}function id(t,e,n){return void 0===n&&(n=!1),td(t,e,void 0,n)>=0}function od(t,e,n,i){this.input_0=t,this.startIndex_0=e,this.limit_0=n,this.getNextMatch_0=i}function rd(t){this.this$DelimitedRangesSequence=t,this.nextState=-1,this.currentStartIndex=ce(t.startIndex_0,0,t.input_0.length),this.nextSearchIndex=this.currentStartIndex,this.nextItem=null,this.counter=0}function sd(t,e,n,i,o){return void 0===n&&(n=0),void 0===i&&(i=!1),void 0===o&&(o=0),ld(o),new od(t,n,o,(r=e,s=i,function(t,e){var n=Yh(t,r,e,s);return n<0?null:mp(n,1)}));var r,s}function ad(t,e){return function(n,i){var o;return null!=(o=function(t,e,n,i,o){var r,s;if(!i&&1===e.size){var a=Mt(e),c=o?nd(t,a,n):ed(t,a,n);return c<0?null:mp(c,a)}var l=o?ne(ae(n,Bh(t)),0):new Ru(se(n,0),t.length);if("string"==typeof t)for(r=l.iterator();r.hasNext();){var u,h=r.next();t:do{var d;for(d=e.iterator();d.hasNext();){var p=d.next();if(ra(p,0,t,h,p.length,i)){u=p;break t}}u=null}while(0);if(null!=u)return mp(h,u)}else for(s=l.iterator();s.hasNext();){var _,m=s.next();t:do{var f;for(f=e.iterator();f.hasNext();){var g=f.next();if(Hh(g,0,t,m,g.length,i)){_=g;break t}}_=null}while(0);if(null!=_)return mp(m,_)}return null}(n,t,i,e,!1))?mp(o.first,o.second.length):null}}function cd(t,e,n,i,o){return void 0===n&&(n=0),void 0===i&&(i=!1),void 0===o&&(o=0),ld(o),new od(t,n,o,ad(Yn(e),i))}function ld(t){if(!(t>=0))throw wn(("Limit must be non-negative, but was "+t).toString())}function ud(t,e,n,i){return void 0===n&&(n=!1),void 0===i&&(i=0),ye(cd(t,e,void 0,n,i),(o=t,function(t){return Wh(o,t)}));var o}function hd(e,n,i,o){ld(o);var r=0,s=ed(e,n,r,i);if(-1===s||1===o)return Ni(e.toString());var a=o>0,c=Qi(a&&ae(o,10));do{if(c.add_11rb$(t.subSequence(e,r,s).toString()),r=s+n.length|0,a&&c.size===(o-1|0))break;s=ed(e,n,r,i)}while(-1!==s);return c.add_11rb$(t.subSequence(e,r,e.length).toString()),c}function dd(t){return ud(t,["\r\n","\n","\r"])}function pd(t){return $e(dd(t))}function _d(){md=this,this.quote=c(34),this.dollar=c(36),this.amp=c(38),this.less=c(60),this.greater=c(62),this.nbsp=c(160),this.times=c(215),this.cent=c(162),this.pound=c(163),this.section=c(167),this.copyright=c(169),this.leftGuillemet=c(171),this.rightGuillemet=c(187),this.registered=c(174),this.degree=c(176),this.plusMinus=c(177),this.paragraph=c(182),this.middleDot=c(183),this.half=c(189),this.ndash=c(8211),this.mdash=c(8212),this.leftSingleQuote=c(8216),this.rightSingleQuote=c(8217),this.lowSingleQuote=c(8218),this.leftDoubleQuote=c(8220),this.rightDoubleQuote=c(8221),this.lowDoubleQuote=c(8222),this.dagger=c(8224),this.doubleDagger=c(8225),this.bullet=c(8226),this.ellipsis=c(8230),this.prime=c(8242),this.doublePrime=c(8243),this.euro=c(8364),this.tm=c(8482),this.almostEqual=c(8776),this.notEqual=c(8800),this.lessOrEqual=c(8804),this.greaterOrEqual=c(8805),this.leftGuillemete=c(171),this.rightGuillemete=c(187)}ch.$metadata$={kind:o,simpleName:"KTypeProjection",interfaces:[]},ch.prototype.component1=function(){return this.variance},ch.prototype.component2=function(){return this.type},ch.prototype.copy_wulwk3$=function(t,e){return new ch(void 0===t?this.variance:t,void 0===e?this.type:e)},ch.prototype.hashCode=function(){var e=0;return e=31*(e=31*e+t.hashCode(this.variance)|0)+t.hashCode(this.type)|0},ch.prototype.equals=function(e){return this===e||null!==e&&"object"==typeof e&&Object.getPrototypeOf(this)===Object.getPrototypeOf(e)&&t.equals(this.variance,e.variance)&&t.equals(this.type,e.type)},mh.$metadata$={kind:o,simpleName:"KVariance",interfaces:[O]},mh.values=function(){return[gh(),$h(),Eh()]},mh.valueOf_61zpoe$=function(t){switch(t){case"INVARIANT":return gh();case"IN":return $h();case"OUT":return Eh();default:Yo("No enum constant kotlin.reflect.KVariance."+t)}},Gh.prototype.nextChar=function(){var t,e;return t=this.index_0,this.index_0=t+1|0,e=t,this.this$iterator.charCodeAt(e)},Gh.prototype.hasNext=function(){return this.index_00&&(this.counter=this.counter+1|0,this.counter>=this.this$DelimitedRangesSequence.limit_0)||this.nextSearchIndex>this.this$DelimitedRangesSequence.input_0.length)this.nextItem=new Ru(this.currentStartIndex,Bh(this.this$DelimitedRangesSequence.input_0)),this.nextSearchIndex=-1;else{var t=this.this$DelimitedRangesSequence.getNextMatch_0(this.this$DelimitedRangesSequence.input_0,this.nextSearchIndex);if(null==t)this.nextItem=new Ru(this.currentStartIndex,Bh(this.this$DelimitedRangesSequence.input_0)),this.nextSearchIndex=-1;else{var e=t.component1(),n=t.component2();this.nextItem=re(this.currentStartIndex,e),this.currentStartIndex=e+n|0,this.nextSearchIndex=this.currentStartIndex+(0===n?1:0)|0}}this.nextState=1}},rd.prototype.next=function(){var e;if(-1===this.nextState&&this.calcNext_0(),0===this.nextState)throw qn();var n=t.isType(e=this.nextItem,Ru)?e:Jo();return this.nextItem=null,this.nextState=-1,n},rd.prototype.hasNext=function(){return-1===this.nextState&&this.calcNext_0(),1===this.nextState},rd.$metadata$={kind:o,interfaces:[je]},od.prototype.iterator=function(){return new rd(this)},od.$metadata$={kind:o,simpleName:"DelimitedRangesSequence",interfaces:[Vc]},_d.$metadata$={kind:w,simpleName:"Typography",interfaces:[]};var md=null;function fd(){}function gd(){}function $d(){}function Ed(t){this.match=t}function yd(t){var e,n,i;if(Od(),this.rawValue_0=t,this.isInNanos_0()){if(e=this.value_0,!nt.lessThanOrEqual(e)||!e.lessThanOrEqual(Sd))throw jn(this.value_0.toString()+" ns is out of nanoseconds range")}else{if(n=this.value_0,!J.lessThanOrEqual(n)||!n.lessThanOrEqual(vd))throw jn(this.value_0.toString()+" ms is out of milliseconds range");if(i=this.value_0,Y.lessThanOrEqual(i)&&i.lessThanOrEqual(Cd))throw jn(this.value_0.toString()+" ms is denormalized")}}function bd(){wd=this,this.ZERO=new yd(h),this.INFINITE=kd(vd),this.NEG_INFINITE_8be2vx$=kd(J)}fd.$metadata$={kind:z,simpleName:"MatchGroupCollection",interfaces:[Oe]},gd.$metadata$={kind:z,simpleName:"MatchNamedGroupCollection",interfaces:[fd]},Object.defineProperty($d.prototype,"destructured",{configurable:!0,get:function(){return new Ed(this)}}),Ed.prototype.component1=r("kotlin.kotlin.text.MatchResult.Destructured.component1",(function(){return this.match.groupValues.get_za3lpa$(1)})),Ed.prototype.component2=r("kotlin.kotlin.text.MatchResult.Destructured.component2",(function(){return this.match.groupValues.get_za3lpa$(2)})),Ed.prototype.component3=r("kotlin.kotlin.text.MatchResult.Destructured.component3",(function(){return this.match.groupValues.get_za3lpa$(3)})),Ed.prototype.component4=r("kotlin.kotlin.text.MatchResult.Destructured.component4",(function(){return this.match.groupValues.get_za3lpa$(4)})),Ed.prototype.component5=r("kotlin.kotlin.text.MatchResult.Destructured.component5",(function(){return this.match.groupValues.get_za3lpa$(5)})),Ed.prototype.component6=r("kotlin.kotlin.text.MatchResult.Destructured.component6",(function(){return this.match.groupValues.get_za3lpa$(6)})),Ed.prototype.component7=r("kotlin.kotlin.text.MatchResult.Destructured.component7",(function(){return this.match.groupValues.get_za3lpa$(7)})),Ed.prototype.component8=r("kotlin.kotlin.text.MatchResult.Destructured.component8",(function(){return this.match.groupValues.get_za3lpa$(8)})),Ed.prototype.component9=r("kotlin.kotlin.text.MatchResult.Destructured.component9",(function(){return this.match.groupValues.get_za3lpa$(9)})),Ed.prototype.component10=r("kotlin.kotlin.text.MatchResult.Destructured.component10",(function(){return this.match.groupValues.get_za3lpa$(10)})),Ed.prototype.toList=function(){return this.match.groupValues.subList_vux9f0$(1,this.match.groupValues.size)},Ed.$metadata$={kind:o,simpleName:"Destructured",interfaces:[]},$d.$metadata$={kind:z,simpleName:"MatchResult",interfaces:[]},Object.defineProperty(yd.prototype,"value_0",{configurable:!0,get:function(){return this.rawValue_0.shiftRight(1)}}),Object.defineProperty(yd.prototype,"unitDiscriminator_0",{configurable:!0,get:function(){return 1&this.rawValue_0.toInt()}}),yd.prototype.isInNanos_0=function(){return 0==(1&this.rawValue_0.toInt())},yd.prototype.isInMillis_0=function(){return 1==(1&this.rawValue_0.toInt())},Object.defineProperty(yd.prototype,"storageUnit_0",{configurable:!0,get:function(){return this.isInNanos_0()?Ea():ba()}}),bd.prototype.convert_d8pp1e$=function(t,e,n){return Ta(t,e,n)},bd.prototype.get_nanoseconds_s8ev3n$=r("kotlin.kotlin.time.Duration.Companion.get_nanoseconds_s8ev3n$",s((function(){var t=e.kotlin.time.DurationUnit,n=e.kotlin.time.toDuration_14orw9$;return function(e){return n(e,t.NANOSECONDS)}}))),bd.prototype.get_nanoseconds_mts6qi$=r("kotlin.kotlin.time.Duration.Companion.get_nanoseconds_mts6qi$",s((function(){var t=e.kotlin.time.DurationUnit,n=e.kotlin.time.toDuration_rrkdm6$;return function(e){return n(e,t.NANOSECONDS)}}))),bd.prototype.get_nanoseconds_yrwdxr$=r("kotlin.kotlin.time.Duration.Companion.get_nanoseconds_yrwdxr$",s((function(){var t=e.kotlin.time.DurationUnit,n=e.kotlin.time.toDuration_n769wd$;return function(e){return n(e,t.NANOSECONDS)}}))),bd.prototype.get_microseconds_s8ev3n$=r("kotlin.kotlin.time.Duration.Companion.get_microseconds_s8ev3n$",s((function(){var t=e.kotlin.time.DurationUnit,n=e.kotlin.time.toDuration_14orw9$;return function(e){return n(e,t.MICROSECONDS)}}))),bd.prototype.get_microseconds_mts6qi$=r("kotlin.kotlin.time.Duration.Companion.get_microseconds_mts6qi$",s((function(){var t=e.kotlin.time.DurationUnit,n=e.kotlin.time.toDuration_rrkdm6$;return function(e){return n(e,t.MICROSECONDS)}}))),bd.prototype.get_microseconds_yrwdxr$=r("kotlin.kotlin.time.Duration.Companion.get_microseconds_yrwdxr$",s((function(){var t=e.kotlin.time.DurationUnit,n=e.kotlin.time.toDuration_n769wd$;return function(e){return n(e,t.MICROSECONDS)}}))),bd.prototype.get_milliseconds_s8ev3n$=r("kotlin.kotlin.time.Duration.Companion.get_milliseconds_s8ev3n$",s((function(){var t=e.kotlin.time.DurationUnit,n=e.kotlin.time.toDuration_14orw9$;return function(e){return n(e,t.MILLISECONDS)}}))),bd.prototype.get_milliseconds_mts6qi$=r("kotlin.kotlin.time.Duration.Companion.get_milliseconds_mts6qi$",s((function(){var t=e.kotlin.time.DurationUnit,n=e.kotlin.time.toDuration_rrkdm6$;return function(e){return n(e,t.MILLISECONDS)}}))),bd.prototype.get_milliseconds_yrwdxr$=r("kotlin.kotlin.time.Duration.Companion.get_milliseconds_yrwdxr$",s((function(){var t=e.kotlin.time.DurationUnit,n=e.kotlin.time.toDuration_n769wd$;return function(e){return n(e,t.MILLISECONDS)}}))),bd.prototype.get_seconds_s8ev3n$=r("kotlin.kotlin.time.Duration.Companion.get_seconds_s8ev3n$",s((function(){var t=e.kotlin.time.DurationUnit,n=e.kotlin.time.toDuration_14orw9$;return function(e){return n(e,t.SECONDS)}}))),bd.prototype.get_seconds_mts6qi$=r("kotlin.kotlin.time.Duration.Companion.get_seconds_mts6qi$",s((function(){var t=e.kotlin.time.DurationUnit,n=e.kotlin.time.toDuration_rrkdm6$;return function(e){return n(e,t.SECONDS)}}))),bd.prototype.get_seconds_yrwdxr$=r("kotlin.kotlin.time.Duration.Companion.get_seconds_yrwdxr$",s((function(){var t=e.kotlin.time.DurationUnit,n=e.kotlin.time.toDuration_n769wd$;return function(e){return n(e,t.SECONDS)}}))),bd.prototype.get_minutes_s8ev3n$=r("kotlin.kotlin.time.Duration.Companion.get_minutes_s8ev3n$",s((function(){var t=e.kotlin.time.DurationUnit,n=e.kotlin.time.toDuration_14orw9$;return function(e){return n(e,t.MINUTES)}}))),bd.prototype.get_minutes_mts6qi$=r("kotlin.kotlin.time.Duration.Companion.get_minutes_mts6qi$",s((function(){var t=e.kotlin.time.DurationUnit,n=e.kotlin.time.toDuration_rrkdm6$;return function(e){return n(e,t.MINUTES)}}))),bd.prototype.get_minutes_yrwdxr$=r("kotlin.kotlin.time.Duration.Companion.get_minutes_yrwdxr$",s((function(){var t=e.kotlin.time.DurationUnit,n=e.kotlin.time.toDuration_n769wd$;return function(e){return n(e,t.MINUTES)}}))),bd.prototype.get_hours_s8ev3n$=r("kotlin.kotlin.time.Duration.Companion.get_hours_s8ev3n$",s((function(){var t=e.kotlin.time.DurationUnit,n=e.kotlin.time.toDuration_14orw9$;return function(e){return n(e,t.HOURS)}}))),bd.prototype.get_hours_mts6qi$=r("kotlin.kotlin.time.Duration.Companion.get_hours_mts6qi$",s((function(){var t=e.kotlin.time.DurationUnit,n=e.kotlin.time.toDuration_rrkdm6$;return function(e){return n(e,t.HOURS)}}))),bd.prototype.get_hours_yrwdxr$=r("kotlin.kotlin.time.Duration.Companion.get_hours_yrwdxr$",s((function(){var t=e.kotlin.time.DurationUnit,n=e.kotlin.time.toDuration_n769wd$;return function(e){return n(e,t.HOURS)}}))),bd.prototype.get_days_s8ev3n$=r("kotlin.kotlin.time.Duration.Companion.get_days_s8ev3n$",s((function(){var t=e.kotlin.time.DurationUnit,n=e.kotlin.time.toDuration_14orw9$;return function(e){return n(e,t.DAYS)}}))),bd.prototype.get_days_mts6qi$=r("kotlin.kotlin.time.Duration.Companion.get_days_mts6qi$",s((function(){var t=e.kotlin.time.DurationUnit,n=e.kotlin.time.toDuration_rrkdm6$;return function(e){return n(e,t.DAYS)}}))),bd.prototype.get_days_yrwdxr$=r("kotlin.kotlin.time.Duration.Companion.get_days_yrwdxr$",s((function(){var t=e.kotlin.time.DurationUnit,n=e.kotlin.time.toDuration_n769wd$;return function(e){return n(e,t.DAYS)}}))),bd.prototype.nanoseconds_za3lpa$=function(t){return Rd(t,Ea())},bd.prototype.nanoseconds_s8cxhz$=function(t){return Ad(t,Ea())},bd.prototype.nanoseconds_14dthe$=function(t){return xd(t,Ea())},bd.prototype.microseconds_za3lpa$=function(t){return Rd(t,ya())},bd.prototype.microseconds_s8cxhz$=function(t){return Ad(t,ya())},bd.prototype.microseconds_14dthe$=function(t){return xd(t,ya())},bd.prototype.milliseconds_za3lpa$=function(t){return Rd(t,ba())},bd.prototype.milliseconds_s8cxhz$=function(t){return Ad(t,ba())},bd.prototype.milliseconds_14dthe$=function(t){return xd(t,ba())},bd.prototype.seconds_za3lpa$=function(t){return Rd(t,Sa())},bd.prototype.seconds_s8cxhz$=function(t){return Ad(t,Sa())},bd.prototype.seconds_14dthe$=function(t){return xd(t,Sa())},bd.prototype.minutes_za3lpa$=function(t){return Rd(t,va())},bd.prototype.minutes_s8cxhz$=function(t){return Ad(t,va())},bd.prototype.minutes_14dthe$=function(t){return xd(t,va())},bd.prototype.hours_za3lpa$=function(t){return Rd(t,Ca())},bd.prototype.hours_s8cxhz$=function(t){return Ad(t,Ca())},bd.prototype.hours_14dthe$=function(t){return xd(t,Ca())},bd.prototype.days_za3lpa$=function(t){return Rd(t,Na())},bd.prototype.days_s8cxhz$=function(t){return Ad(t,Na())},bd.prototype.days_14dthe$=function(t){return xd(t,Na())},bd.prototype.parse_61zpoe$=function(e){try{return Id(e,!1)}catch(n){throw t.isType(n,Ln)?new Ln("Invalid duration string format: '"+e+"'.",n):n}},bd.prototype.parseIsoString_61zpoe$=function(e){try{return Id(e,!0)}catch(n){throw t.isType(n,Ln)?new Ln("Invalid ISO duration string format: '"+e+"'.",n):n}},bd.prototype.parseOrNull_61zpoe$=function(e){try{return Id(e,!1)}catch(e){if(t.isType(e,Ln))return null;throw e}},bd.prototype.parseIsoStringOrNull_61zpoe$=function(e){try{return Id(e,!0)}catch(e){if(t.isType(e,Ln))return null;throw e}},bd.$metadata$={kind:w,simpleName:"Companion",interfaces:[]};var Sd,vd,Cd,Nd,Td,Ld,zd,wd=null;function Od(){return null===wd&&new bd,wd}function Rd(e,n){return n.compareTo_11rb$(Sa())<=0?Md(La(t.Long.fromInt(e),n,Ea())):Ad(t.Long.fromInt(e),n)}function Ad(t,e){var n=La(Sd,Ea(),e);return n.unaryMinus().lessThanOrEqual(t)&&t.lessThanOrEqual(n)?Md(La(t,e,Ea())):kd(le(za(t,e,ba()),J,vd))}function xd(t,e){var n=Ta(t,e,Ea());if(or(n))throw wn("Duration value cannot be NaN.".toString());var i=er(n);return nt.lessThanOrEqual(i)&&i.lessThanOrEqual(Sd)?Md(i):Gd(er(Ta(t,e,ba())))}function Id(t,e){var n=t.length;if(0===n)throw wn("The string is empty");var i=0,o=Od().ZERO;switch(t.charCodeAt(i)){case 43:case 45:i=i+1|0}var r=i>0,s=r&&Vh(t,45);if(n<=i)throw wn("No components");if(80===t.charCodeAt(i)){if((i=i+1|0)===n)throw zn();for(var a=!1,u=null;i=0&&g<=Bh(t)))throw wn("Missing unit for value "+f);i=i+1|0;var $=Bd(t.charCodeAt(g),a);if(null!=u&&u.compareTo_11rb$($)<=0)throw wn("Unexpected order of duration components");u=$;var E=td(f,46);if($===Sa()&&E>0){var y=f.substring(0,E);o=(o=o.plus_cgako$(Ad(Ud(y),$))).plus_cgako$(xd(fs(f.substring(E)),$))}else o=o.plus_cgako$(Ad(Ud(f),$))}else{if(a||(i=i+1|0)===n)throw zn();a=!0}}else{if(e)throw zn();if(ra(t,i,"Infinity",0,d.max(n-i|0,"Infinity".length),!0))o=Od().INFINITE;else{var b=null,S=!1,v=!r;if(r&&40===t.charCodeAt(i)&&41===Se(t)&&(v=!0,(i=i+1|0)==(n=n-1|0)))throw wn("No components");for(;i0){var M=O.substring(0,P);if(o=(o=o.plus_cgako$(Ad(ms(M),D))).plus_cgako$(xd(fs(O.substring(P)),D)),i0&&id("+-",e.charCodeAt(0))&&(i=i+1|0);var o=(n-i|0)>16;if(o){var r,s=new Ru(i,Bh(e));t:do{var a;if(t.isType(s,Oe)&&s.isEmpty()){r=!0;break t}for(a=s.iterator();a.hasNext();){var c=a.next();if(!new Lu(48,57).contains_mef7kx$(e.charCodeAt(c))){r=!1;break t}}r=!0}while(0);o=r}return o?45===e.charCodeAt(0)?y:b:ea(e,"+")?ms(ve(e,1)):ms(e)}function Dd(e){return e.div(t.Long.fromInt(1e6))}function Pd(e){return e.multiply(t.Long.fromInt(1e6))}function Md(t){return new yd(t.shiftLeft(1))}function kd(e){return new yd(e.shiftLeft(1).add(t.Long.fromInt(1)))}function jd(t){return nt.lessThanOrEqual(t)&&t.lessThanOrEqual(Sd)?Md(t):kd(Dd(t))}function Gd(t){return Y.lessThanOrEqual(t)&&t.lessThanOrEqual(Cd)?Md(Pd(t)):kd(le(t,J,vd))}function qd(t){switch(t.name){case"NANOSECONDS":return"ns";case"MICROSECONDS":return"us";case"MILLISECONDS":return"ms";case"SECONDS":return"s";case"MINUTES":return"m";case"HOURS":return"h";case"DAYS":return"d";default:throw Rn(("Unknown unit: "+t).toString())}}function Fd(t){switch(t){case"ns":return Ea();case"us":return ya();case"ms":return ba();case"s":return Sa();case"m":return va();case"h":return Ca();case"d":return Na();default:throw wn("Unknown duration unit short name: "+t)}}function Bd(t,e){if(!e){if(68===t)return Na();throw wn("Invalid or unsupported duration ISO non-time unit: "+String.fromCharCode(t))}switch(t){case 72:return Ca();case 77:return va();case 83:return Sa();default:throw wn("Invalid duration ISO time unit: "+String.fromCharCode(t))}}function Wd(t,e){this.closure$context=t,this.closure$resumeWith=e}function Hd(t){this.block_8be2vx$=t}function Vd(){}function Kd(e,n){var i;Vd.call(this),this.function_0=t.isType(i=e,st)?i:Jo(),this.value_0=n,this.cont_0=t.isType(this,wl)?this:Jo(),this.result_0=Nd}function Xd(){}function Jd(t,e){O.call(this),this.name$=t,this.ordinal$=e}function Yd(){Yd=function(){},Td=new Jd("SYNCHRONIZED",0),Ld=new Jd("PUBLICATION",1),zd=new Jd("NONE",2)}function Qd(){return Yd(),Td}function Zd(){return Yd(),Ld}function tp(){return Yd(),zd}function ep(){np=this}yd.prototype.unaryMinus=function(){return e=this.value_0.unaryMinus(),n=1&this.rawValue_0.toInt(),new yd(e.shiftLeft(1).add(t.Long.fromInt(n)));var e,n},yd.prototype.plus_cgako$=function(t){var e;if(this.isInfinite()){if(t.isFinite()||this.rawValue_0.xor(t.rawValue_0).toNumber()>=0)return this;throw wn("Summing infinite durations of different signs yields an undefined result.")}if(t.isInfinite())return t;if((1&this.rawValue_0.toInt())==(1&t.rawValue_0.toInt())){var n=this.value_0.add(t.value_0);e=this.isInNanos_0()?jd(n):Gd(n)}else e=this.isInMillis_0()?this.addValuesMixedRanges_0(this.value_0,t.value_0):this.addValuesMixedRanges_0(t.value_0,this.value_0);return e},yd.prototype.addValuesMixedRanges_0=function(t,e){var n,i=Dd(e),o=t.add(i);if(Y.lessThanOrEqual(o)&&o.lessThanOrEqual(Cd)){var r=e.subtract(Pd(i));n=Md(Pd(o).add(r))}else n=kd(le(o,J,vd));return n},yd.prototype.minus_cgako$=function(t){return this.plus_cgako$(t.unaryMinus())},yd.prototype.times_za3lpa$=function(e){var n;if(this.isInfinite()){if(0===e)throw wn("Multiplying infinite duration by zero yields an undefined result.");return e>0?this:this.unaryMinus()}if(0===e)return Od().ZERO;var i=this.value_0,o=i.multiply(t.Long.fromInt(e));if(this.isInNanos_0())if(Q.lessThanOrEqual(i)&&i.lessThanOrEqual(E))n=Md(o);else if(a(o.div(t.Long.fromInt(e)),i))n=jd(o);else{var r=Dd(i),s=i.subtract(Pd(r)),c=r.multiply(t.Long.fromInt(e)),l=c.add(Dd(s.multiply(t.Long.fromInt(e))));n=a(c.div(t.Long.fromInt(e)),r)&&l.xor(c).toNumber()>=0?kd(he(l,J.rangeTo(vd))):t.imul(ir(i),nr(e))>0?Od().INFINITE:Od().NEG_INFINITE_8be2vx$}else n=a(o.div(t.Long.fromInt(e)),i)?kd(he(o,J.rangeTo(vd))):t.imul(ir(i),nr(e))>0?Od().INFINITE:Od().NEG_INFINITE_8be2vx$;return n},yd.prototype.times_14dthe$=function(t){var e=tr(t);if(e===t)return this.times_za3lpa$(e);var n=this.storageUnit_0;return xd(this.toDouble_p6uejw$(n)*t,n)},yd.prototype.div_za3lpa$=function(e){var n;if(0===e){if(this.isPositive())n=Od().INFINITE;else{if(!this.isNegative())throw wn("Dividing zero duration by zero yields an undefined result.");n=Od().NEG_INFINITE_8be2vx$}return n}if(this.isInNanos_0())return Md(this.value_0.div(t.Long.fromInt(e)));if(this.isInfinite())return this.times_za3lpa$(nr(e));var i=this.value_0.div(t.Long.fromInt(e));if(Y.lessThanOrEqual(i)&&i.lessThanOrEqual(Cd)){var o=Pd(this.value_0.subtract(i.multiply(t.Long.fromInt(e)))).div(t.Long.fromInt(e));return Md(Pd(i).add(o))}return kd(i)},yd.prototype.div_14dthe$=function(t){var e=tr(t);if(e===t&&0!==e)return this.div_za3lpa$(e);var n=this.storageUnit_0;return xd(this.toDouble_p6uejw$(n)/t,n)},yd.prototype.div_cgako$=function(t){var e=oi(this.storageUnit_0,t.storageUnit_0);return this.toDouble_p6uejw$(e)/t.toDouble_p6uejw$(e)},yd.prototype.isNegative=function(){return this.rawValue_0.toNumber()<0},yd.prototype.isPositive=function(){return this.rawValue_0.toNumber()>0},yd.prototype.isInfinite=function(){return a(this.rawValue_0,Od().INFINITE.rawValue_0)||a(this.rawValue_0,Od().NEG_INFINITE_8be2vx$.rawValue_0)},yd.prototype.isFinite=function(){return!this.isInfinite()},Object.defineProperty(yd.prototype,"absoluteValue",{configurable:!0,get:function(){return this.isNegative()?this.unaryMinus():this}}),yd.prototype.compareTo_11rb$=function(t){var e=this.rawValue_0.xor(t.rawValue_0);if(e.toNumber()<0||0==(1&e.toInt()))return this.rawValue_0.compareTo_11rb$(t.rawValue_0);var n=(1&this.rawValue_0.toInt())-(1&t.rawValue_0.toInt())|0;return this.isNegative()?0|-n:n},yd.prototype.toComponents_hve5lh$=r("kotlin.kotlin.time.Duration.toComponents_hve5lh$",(function(t){return t(this.inWholeDays,this.hoursComponent,this.minutesComponent,this.secondsComponent,this.nanosecondsComponent)})),yd.prototype.toComponents_s6np4d$=r("kotlin.kotlin.time.Duration.toComponents_s6np4d$",(function(t){return t(this.inWholeHours,this.minutesComponent,this.secondsComponent,this.nanosecondsComponent)})),yd.prototype.toComponents_vtr74h$=r("kotlin.kotlin.time.Duration.toComponents_vtr74h$",(function(t){return t(this.inWholeMinutes,this.secondsComponent,this.nanosecondsComponent)})),yd.prototype.toComponents_obfv9r$=r("kotlin.kotlin.time.Duration.toComponents_obfv9r$",(function(t){return t(this.inWholeSeconds,this.nanosecondsComponent)})),Object.defineProperty(yd.prototype,"hoursComponent",{configurable:!0,get:function(){return this.isInfinite()?0:this.inWholeHours.modulo(t.Long.fromInt(24)).toInt()}}),Object.defineProperty(yd.prototype,"minutesComponent",{configurable:!0,get:function(){return this.isInfinite()?0:this.inWholeMinutes.modulo(t.Long.fromInt(60)).toInt()}}),Object.defineProperty(yd.prototype,"secondsComponent",{configurable:!0,get:function(){return this.isInfinite()?0:this.inWholeSeconds.modulo(t.Long.fromInt(60)).toInt()}}),Object.defineProperty(yd.prototype,"nanosecondsComponent",{configurable:!0,get:function(){return this.isInfinite()?0:this.isInMillis_0()?Pd(this.value_0.modulo(t.Long.fromInt(1e3))).toInt():this.value_0.modulo(t.Long.fromInt(1e9)).toInt()}}),yd.prototype.toDouble_p6uejw$=function(t){var e;return e=this.rawValue_0,a(e,Od().INFINITE.rawValue_0)?u.POSITIVE_INFINITY:a(e,Od().NEG_INFINITE_8be2vx$.rawValue_0)?u.NEGATIVE_INFINITY:Ta(this.value_0.toNumber(),this.storageUnit_0,t)},yd.prototype.toLong_p6uejw$=function(t){var e;return e=this.rawValue_0,a(e,Od().INFINITE.rawValue_0)?b:a(e,Od().NEG_INFINITE_8be2vx$.rawValue_0)?y:za(this.value_0,this.storageUnit_0,t)},yd.prototype.toInt_p6uejw$=function(t){return le(this.toLong_p6uejw$(t),$,E).toInt()},Object.defineProperty(yd.prototype,"inDays",{configurable:!0,get:function(){return this.toDouble_p6uejw$(Na())}}),Object.defineProperty(yd.prototype,"inHours",{configurable:!0,get:function(){return this.toDouble_p6uejw$(Ca())}}),Object.defineProperty(yd.prototype,"inMinutes",{configurable:!0,get:function(){return this.toDouble_p6uejw$(va())}}),Object.defineProperty(yd.prototype,"inSeconds",{configurable:!0,get:function(){return this.toDouble_p6uejw$(Sa())}}),Object.defineProperty(yd.prototype,"inMilliseconds",{configurable:!0,get:function(){return this.toDouble_p6uejw$(ba())}}),Object.defineProperty(yd.prototype,"inMicroseconds",{configurable:!0,get:function(){return this.toDouble_p6uejw$(ya())}}),Object.defineProperty(yd.prototype,"inNanoseconds",{configurable:!0,get:function(){return this.toDouble_p6uejw$(Ea())}}),Object.defineProperty(yd.prototype,"inWholeDays",{configurable:!0,get:function(){return this.toLong_p6uejw$(Na())}}),Object.defineProperty(yd.prototype,"inWholeHours",{configurable:!0,get:function(){return this.toLong_p6uejw$(Ca())}}),Object.defineProperty(yd.prototype,"inWholeMinutes",{configurable:!0,get:function(){return this.toLong_p6uejw$(va())}}),Object.defineProperty(yd.prototype,"inWholeSeconds",{configurable:!0,get:function(){return this.toLong_p6uejw$(Sa())}}),Object.defineProperty(yd.prototype,"inWholeMilliseconds",{configurable:!0,get:function(){return this.isInMillis_0()&&this.isFinite()?this.value_0:this.toLong_p6uejw$(ba())}}),Object.defineProperty(yd.prototype,"inWholeMicroseconds",{configurable:!0,get:function(){return this.toLong_p6uejw$(ya())}}),Object.defineProperty(yd.prototype,"inWholeNanoseconds",{configurable:!0,get:function(){var t=this.value_0;return this.isInNanos_0()?t:t.compareTo_11rb$(Z)>0?b:t.compareTo_11rb$(tt)<0?y:Pd(t)}}),yd.prototype.toLongNanoseconds=function(){return this.inWholeNanoseconds},yd.prototype.toLongMilliseconds=function(){return this.inWholeMilliseconds},yd.prototype.toString=function(){var t;if(t=this.rawValue_0,a(t,h))return"0s";if(a(t,Od().INFINITE.rawValue_0))return"Infinity";if(a(t,Od().NEG_INFINITE_8be2vx$.rawValue_0))return"-Infinity";var e=this.isNegative(),n=cs();e&&n.append_s8itvh$(45);var i,o,r,s=this.absoluteValue,c=s.inWholeDays,l=s.hoursComponent,u=s.minutesComponent,d=s.secondsComponent,p=s.nanosecondsComponent,_=!a(c,h),m=0!==l,f=0!==u,g=0!==d||0!==p,$=0;return _&&(n.append_s8jyv4$(c).append_s8itvh$(100),$=$+1|0),(m||_&&(f||g))&&($=(i=$)+1|0,i>0&&n.append_s8itvh$(32),n.append_s8jyv4$(l).append_s8itvh$(104)),(f||g&&(m||_))&&($=(o=$)+1|0,o>0&&n.append_s8itvh$(32),n.append_s8jyv4$(u).append_s8itvh$(109)),g&&($=(r=$)+1|0,r>0&&n.append_s8itvh$(32),0!==d||_||m||f?this.appendFractional_0(n,d,p,9,"s",!1):p>=1e6?this.appendFractional_0(n,p/1e6|0,p%1e6|0,6,"ms",!1):p>=1e3?this.appendFractional_0(n,p/1e3|0,p%1e3|0,3,"us",!1):n.append_s8jyv4$(p).append_pdl1vj$("ns")),e&&$>1&&n.insert_6t1mh3$(1,40).append_s8itvh$(41),n.toString()},yd.prototype.appendFractional_0=function(t,e,n,i,o,r){if(t.append_s8jyv4$(e),0!==n){t.append_s8itvh$(46);var s,a=kh(n.toString(),i,48);t:do{var u;for(u=ie(Fh(a)).iterator();u.hasNext();){var h=u.next();if(48!==l(c(a.charCodeAt(h)))){s=h;break t}}s=-1}while(0);var d=s+1|0;!r&&d<3?t.appendRange_3peag4$(a,0,d):t.appendRange_3peag4$(a,0,3*((d+2|0)/3|0)|0)}t.append_pdl1vj$(o)},yd.prototype.toString_mha1pa$=function(t,e){if(void 0===e&&(e=0),!(e>=0))throw wn(("decimals must be not negative, but was "+e).toString());var n=this.toDouble_p6uejw$(t);return sr(n)?n.toString():fa(n,ae(e,12))+qd(t)},yd.prototype.toIsoString=function(){var t=cs();this.isNegative()&&t.append_s8itvh$(45),t.append_pdl1vj$("PT");var e=this.absoluteValue,n=e.inWholeHours,i=e.minutesComponent,o=e.secondsComponent,r=e.nanosecondsComponent,s=n;this.isInfinite()&&(s=et);var c=!a(s,h),l=0!==o||0!==r,u=0!==i||l&&c;return c&&t.append_s8jyv4$(s).append_s8itvh$(72),u&&t.append_s8jyv4$(i).append_s8itvh$(77),(l||!c&&!u)&&this.appendFractional_0(t,o,r,9,"S",!0),t.toString()},yd.$metadata$={kind:o,simpleName:"Duration",interfaces:[R]},yd.prototype.unbox=function(){return this.rawValue_0},yd.prototype.hashCode=function(){var e=0;return e=31*e+t.hashCode(this.rawValue_0)|0},yd.prototype.equals=function(e){return this===e||null!==e&&"object"==typeof e&&Object.getPrototypeOf(this)===Object.getPrototypeOf(e)&&t.equals(this.rawValue_0,e.rawValue_0)},Object.defineProperty(Wd.prototype,"context",{configurable:!0,get:function(){return this.closure$context}}),Wd.prototype.resumeWith_tl1gpc$=function(t){this.closure$resumeWith(t)},Wd.$metadata$={kind:o,interfaces:[wl]},Hd.$metadata$={kind:o,simpleName:"DeepRecursiveFunction",interfaces:[]},Vd.prototype.invoke_baqje6$=function(t,e){throw Un("Should not be called from DeepRecursiveScope")},Vd.$metadata$={kind:o,simpleName:"DeepRecursiveScope",interfaces:[]},Object.defineProperty(Kd.prototype,"context",{configurable:!0,get:function(){return ql()}}),Kd.prototype.resumeWith_tl1gpc$=function(t){this.cont_0=null,this.result_0=t},Kd.prototype.callRecursive_11rb$=function(e,n){return(i=this,o=e,function(e){var n;return i.cont_0=t.isType(n=e,wl)?n:Jo(),i.value_0=o,Yl()})(n);var i,o},Kd.prototype.callRecursive_ifme6c$=function(e,n,i){return(o=e,r=this,s=n,function(e){var n,i,a,c=t.isType(n=o.block_8be2vx$,st)?n:Jo(),l=s,u=r,h=u.function_0;return c!==h?(u.function_0=c,u.cont_0=u.crossFunctionCompletion_0(h,t.isType(i=e,wl)?i:Jo())):u.cont_0=t.isType(a=e,wl)?a:Jo(),u.value_0=l,Yl()})(i);var o,r,s},Kd.prototype.crossFunctionCompletion_0=function(t,e){return new Wd(ql(),(n=t,i=this,o=e,function(t){return i.function_0=n,i.cont_0=o,i.result_0=t,Be}));var n,i,o},Kd.prototype.runCallLoop=function(){for(var e,n,i,o;;){var r=this.result_0;if(null==(n=this.cont_0)){var s,a=t.isType(e=r,sp)?e:Jo();return dp(a),null==(s=a.value)||t.isType(s,x)?s:N()}var c=n;if(null!=Nd&&Nd.equals(r)){try{i=this.function_0(this,this.value_0,c,!1)}catch(e){if(t.isType(e,I)){c.resumeWith_tl1gpc$(new sp(hp(e)));continue}throw e}var l=i;l!==Yl()&&c.resumeWith_tl1gpc$(new sp(null==(o=l)||t.isType(o,x)?o:Jo()))}else this.result_0=Nd,c.resumeWith_tl1gpc$(r)}},Kd.$metadata$={kind:o,simpleName:"DeepRecursiveScopeImpl",interfaces:[wl,Vd]},Xd.$metadata$={kind:z,simpleName:"Lazy",interfaces:[]},Jd.$metadata$={kind:o,simpleName:"LazyThreadSafetyMode",interfaces:[O]},Jd.values=function(){return[Qd(),Zd(),tp()]},Jd.valueOf_61zpoe$=function(t){switch(t){case"SYNCHRONIZED":return Qd();case"PUBLICATION":return Zd();case"NONE":return tp();default:Yo("No enum constant kotlin.LazyThreadSafetyMode."+t)}},ep.$metadata$={kind:w,simpleName:"UNINITIALIZED_VALUE",interfaces:[]};var np=null;function ip(){return null===np&&new ep,np}function op(t){this.initializer_0=t,this._value_0=ip()}function rp(t){this.value_7taq70$_0=t}function sp(t){lp(),this.value=t}function ap(){cp=this}Object.defineProperty(op.prototype,"value",{configurable:!0,get:function(){var e;return this._value_0===ip()&&(this._value_0=A(this.initializer_0)(),this.initializer_0=null),null==(e=this._value_0)||t.isType(e,x)?e:Jo()}}),op.prototype.isInitialized=function(){return this._value_0!==ip()},op.prototype.toString=function(){return this.isInitialized()?C(this.value):"Lazy value not initialized yet."},op.prototype.writeReplace_0=function(){return new rp(this.value)},op.$metadata$={kind:o,simpleName:"UnsafeLazyImpl",interfaces:[Qo,Xd]},Object.defineProperty(rp.prototype,"value",{get:function(){return this.value_7taq70$_0}}),rp.prototype.isInitialized=function(){return!0},rp.prototype.toString=function(){return C(this.value)},rp.$metadata$={kind:o,simpleName:"InitializedLazyImpl",interfaces:[Qo,Xd]},Object.defineProperty(sp.prototype,"isSuccess",{configurable:!0,get:function(){return!t.isType(this.value,up)}}),Object.defineProperty(sp.prototype,"isFailure",{configurable:!0,get:function(){return t.isType(this.value,up)}}),sp.prototype.getOrNull=r("kotlin.kotlin.Result.getOrNull",s((function(){var e=Object,n=t.throwCCE;return function(){var i;return this.isFailure?null:null==(i=this.value)||t.isType(i,e)?i:n()}}))),sp.prototype.exceptionOrNull=function(){return t.isType(this.value,up)?this.value.exception:null},sp.prototype.toString=function(){return t.isType(this.value,up)?this.value.toString():"Success("+C(this.value)+")"},ap.prototype.success_mh5how$=r("kotlin.kotlin.Result.Companion.success_mh5how$",s((function(){var t=e.kotlin.Result;return function(e){return new t(e)}}))),ap.prototype.failure_lsqlk3$=r("kotlin.kotlin.Result.Companion.failure_lsqlk3$",s((function(){var t=e.kotlin.createFailure_tcv7n7$,n=e.kotlin.Result;return function(e){return new n(t(e))}}))),ap.$metadata$={kind:w,simpleName:"Companion",interfaces:[]};var cp=null;function lp(){return null===cp&&new ap,cp}function up(t){this.exception=t}function hp(t){return new up(t)}function dp(e){if(t.isType(e.value,up))throw e.value.exception}function pp(t){void 0===t&&(t="An operation is not implemented."),Sn(t,this),this.name="NotImplementedError"}function _p(t,e){this.first=t,this.second=e}function mp(t,e){return new _p(t,e)}function fp(t,e,n){this.first=t,this.second=e,this.third=n}function gp(t){yp(),this.data=t}function $p(){Ep=this,this.MIN_VALUE=new gp(0),this.MAX_VALUE=new gp(-1),this.SIZE_BYTES=1,this.SIZE_BITS=8}up.prototype.equals=function(e){return t.isType(e,up)&&a(this.exception,e.exception)},up.prototype.hashCode=function(){return P(this.exception)},up.prototype.toString=function(){return"Failure("+this.exception+")"},up.$metadata$={kind:o,simpleName:"Failure",interfaces:[Qo]},sp.$metadata$={kind:o,simpleName:"Result",interfaces:[Qo]},sp.prototype.unbox=function(){return this.value},sp.prototype.hashCode=function(){var e=0;return e=31*e+t.hashCode(this.value)|0},sp.prototype.equals=function(e){return this===e||null!==e&&"object"==typeof e&&Object.getPrototypeOf(this)===Object.getPrototypeOf(e)&&t.equals(this.value,e.value)},pp.$metadata$={kind:o,simpleName:"NotImplementedError",interfaces:[bn]},_p.prototype.toString=function(){return"("+this.first+", "+this.second+")"},_p.$metadata$={kind:o,simpleName:"Pair",interfaces:[Qo]},_p.prototype.component1=function(){return this.first},_p.prototype.component2=function(){return this.second},_p.prototype.copy_xwzc9p$=function(t,e){return new _p(void 0===t?this.first:t,void 0===e?this.second:e)},_p.prototype.hashCode=function(){var e=0;return e=31*(e=31*e+t.hashCode(this.first)|0)+t.hashCode(this.second)|0},_p.prototype.equals=function(e){return this===e||null!==e&&"object"==typeof e&&Object.getPrototypeOf(this)===Object.getPrototypeOf(e)&&t.equals(this.first,e.first)&&t.equals(this.second,e.second)},fp.prototype.toString=function(){return"("+this.first+", "+this.second+", "+this.third+")"},fp.$metadata$={kind:o,simpleName:"Triple",interfaces:[Qo]},fp.prototype.component1=function(){return this.first},fp.prototype.component2=function(){return this.second},fp.prototype.component3=function(){return this.third},fp.prototype.copy_1llc0w$=function(t,e,n){return new fp(void 0===t?this.first:t,void 0===e?this.second:e,void 0===n?this.third:n)},fp.prototype.hashCode=function(){var e=0;return e=31*(e=31*(e=31*e+t.hashCode(this.first)|0)+t.hashCode(this.second)|0)+t.hashCode(this.third)|0},fp.prototype.equals=function(e){return this===e||null!==e&&"object"==typeof e&&Object.getPrototypeOf(this)===Object.getPrototypeOf(e)&&t.equals(this.first,e.first)&&t.equals(this.second,e.second)&&t.equals(this.third,e.third)},$p.$metadata$={kind:w,simpleName:"Companion",interfaces:[]};var Ep=null;function yp(){return null===Ep&&new $p,Ep}function bp(t){this.storage=t}function Sp(t){this.array_0=t,this.index_0=0}function vp(t){Tp(),this.data=t}function Cp(){Np=this,this.MIN_VALUE=new vp(0),this.MAX_VALUE=new vp(-1),this.SIZE_BYTES=4,this.SIZE_BITS=32}gp.prototype.compareTo_11rb$=r("kotlin.kotlin.UByte.compareTo_11rb$",(function(e){return t.primitiveCompareTo(255&this.data,255&e.data)})),gp.prototype.compareTo_6hrhkk$=r("kotlin.kotlin.UByte.compareTo_6hrhkk$",(function(e){return t.primitiveCompareTo(255&this.data,65535&e.data)})),gp.prototype.compareTo_s87ys9$=r("kotlin.kotlin.UByte.compareTo_s87ys9$",s((function(){var t=e.kotlin.UInt,n=e.kotlin.uintCompare_vux9f0$;return function(e){return n(new t(255&this.data).data,e.data)}}))),gp.prototype.compareTo_mpgczg$=r("kotlin.kotlin.UByte.compareTo_mpgczg$",s((function(){var n=t.Long.fromInt(255),i=e.kotlin.ULong,o=e.kotlin.ulongCompare_3pjtqy$;return function(e){return o(new i(t.Long.fromInt(this.data).and(n)).data,e.data)}}))),gp.prototype.plus_mpmjao$=r("kotlin.kotlin.UByte.plus_mpmjao$",s((function(){var t=e.kotlin.UInt;return function(e){return new t(new t(255&this.data).data+new t(255&e.data).data|0)}}))),gp.prototype.plus_6hrhkk$=r("kotlin.kotlin.UByte.plus_6hrhkk$",s((function(){var t=e.kotlin.UInt;return function(e){return new t(new t(255&this.data).data+new t(65535&e.data).data|0)}}))),gp.prototype.plus_s87ys9$=r("kotlin.kotlin.UByte.plus_s87ys9$",s((function(){var t=e.kotlin.UInt;return function(e){return new t(new t(255&this.data).data+e.data|0)}}))),gp.prototype.plus_mpgczg$=r("kotlin.kotlin.UByte.plus_mpgczg$",s((function(){var n=t.Long.fromInt(255),i=e.kotlin.ULong;return function(e){return new i(new i(t.Long.fromInt(this.data).and(n)).data.add(e.data))}}))),gp.prototype.minus_mpmjao$=r("kotlin.kotlin.UByte.minus_mpmjao$",s((function(){var t=e.kotlin.UInt;return function(e){return new t(new t(255&this.data).data-new t(255&e.data).data|0)}}))),gp.prototype.minus_6hrhkk$=r("kotlin.kotlin.UByte.minus_6hrhkk$",s((function(){var t=e.kotlin.UInt;return function(e){return new t(new t(255&this.data).data-new t(65535&e.data).data|0)}}))),gp.prototype.minus_s87ys9$=r("kotlin.kotlin.UByte.minus_s87ys9$",s((function(){var t=e.kotlin.UInt;return function(e){return new t(new t(255&this.data).data-e.data|0)}}))),gp.prototype.minus_mpgczg$=r("kotlin.kotlin.UByte.minus_mpgczg$",s((function(){var n=t.Long.fromInt(255),i=e.kotlin.ULong;return function(e){return new i(new i(t.Long.fromInt(this.data).and(n)).data.subtract(e.data))}}))),gp.prototype.times_mpmjao$=r("kotlin.kotlin.UByte.times_mpmjao$",s((function(){var n=e.kotlin.UInt;return function(e){return new n(t.imul(new n(255&this.data).data,new n(255&e.data).data))}}))),gp.prototype.times_6hrhkk$=r("kotlin.kotlin.UByte.times_6hrhkk$",s((function(){var n=e.kotlin.UInt;return function(e){return new n(t.imul(new n(255&this.data).data,new n(65535&e.data).data))}}))),gp.prototype.times_s87ys9$=r("kotlin.kotlin.UByte.times_s87ys9$",s((function(){var n=e.kotlin.UInt;return function(e){return new n(t.imul(new n(255&this.data).data,e.data))}}))),gp.prototype.times_mpgczg$=r("kotlin.kotlin.UByte.times_mpgczg$",s((function(){var n=t.Long.fromInt(255),i=e.kotlin.ULong;return function(e){return new i(new i(t.Long.fromInt(this.data).and(n)).data.multiply(e.data))}}))),gp.prototype.div_mpmjao$=r("kotlin.kotlin.UByte.div_mpmjao$",s((function(){var t=e.kotlin.UInt,n=e.kotlin.uintDivide_oqfnby$;return function(e){return n(new t(255&this.data),new t(255&e.data))}}))),gp.prototype.div_6hrhkk$=r("kotlin.kotlin.UByte.div_6hrhkk$",s((function(){var t=e.kotlin.UInt,n=e.kotlin.uintDivide_oqfnby$;return function(e){return n(new t(255&this.data),new t(65535&e.data))}}))),gp.prototype.div_s87ys9$=r("kotlin.kotlin.UByte.div_s87ys9$",s((function(){var t=e.kotlin.UInt,n=e.kotlin.uintDivide_oqfnby$;return function(e){return n(new t(255&this.data),e)}}))),gp.prototype.div_mpgczg$=r("kotlin.kotlin.UByte.div_mpgczg$",s((function(){var n=t.Long.fromInt(255),i=e.kotlin.ULong,o=e.kotlin.ulongDivide_jpm79w$;return function(e){return o(new i(t.Long.fromInt(this.data).and(n)),e)}}))),gp.prototype.rem_mpmjao$=r("kotlin.kotlin.UByte.rem_mpmjao$",s((function(){var t=e.kotlin.UInt,n=e.kotlin.uintRemainder_oqfnby$;return function(e){return n(new t(255&this.data),new t(255&e.data))}}))),gp.prototype.rem_6hrhkk$=r("kotlin.kotlin.UByte.rem_6hrhkk$",s((function(){var t=e.kotlin.UInt,n=e.kotlin.uintRemainder_oqfnby$;return function(e){return n(new t(255&this.data),new t(65535&e.data))}}))),gp.prototype.rem_s87ys9$=r("kotlin.kotlin.UByte.rem_s87ys9$",s((function(){var t=e.kotlin.UInt,n=e.kotlin.uintRemainder_oqfnby$;return function(e){return n(new t(255&this.data),e)}}))),gp.prototype.rem_mpgczg$=r("kotlin.kotlin.UByte.rem_mpgczg$",s((function(){var n=t.Long.fromInt(255),i=e.kotlin.ULong,o=e.kotlin.ulongRemainder_jpm79w$;return function(e){return o(new i(t.Long.fromInt(this.data).and(n)),e)}}))),gp.prototype.floorDiv_mpmjao$=r("kotlin.kotlin.UByte.floorDiv_mpmjao$",s((function(){var t=e.kotlin.UInt,n=e.kotlin.uintDivide_oqfnby$;return function(e){return n(new t(255&this.data),new t(255&e.data))}}))),gp.prototype.floorDiv_6hrhkk$=r("kotlin.kotlin.UByte.floorDiv_6hrhkk$",s((function(){var t=e.kotlin.UInt,n=e.kotlin.uintDivide_oqfnby$;return function(e){return n(new t(255&this.data),new t(65535&e.data))}}))),gp.prototype.floorDiv_s87ys9$=r("kotlin.kotlin.UByte.floorDiv_s87ys9$",s((function(){var t=e.kotlin.UInt,n=e.kotlin.uintDivide_oqfnby$;return function(e){return n(new t(255&this.data),e)}}))),gp.prototype.floorDiv_mpgczg$=r("kotlin.kotlin.UByte.floorDiv_mpgczg$",s((function(){var n=t.Long.fromInt(255),i=e.kotlin.ULong,o=e.kotlin.ulongDivide_jpm79w$;return function(e){return o(new i(t.Long.fromInt(this.data).and(n)),e)}}))),gp.prototype.mod_mpmjao$=r("kotlin.kotlin.UByte.mod_mpmjao$",s((function(){var n=e.kotlin.UInt,i=e.kotlin.uintRemainder_oqfnby$,o=t.toByte,r=e.kotlin.UByte;return function(t){return new r(o(i(new n(255&this.data),new n(255&t.data)).data))}}))),gp.prototype.mod_6hrhkk$=r("kotlin.kotlin.UByte.mod_6hrhkk$",s((function(){var n=e.kotlin.UInt,i=e.kotlin.uintRemainder_oqfnby$,o=t.toShort,r=e.kotlin.UShort;return function(t){return new r(o(i(new n(255&this.data),new n(65535&t.data)).data))}}))),gp.prototype.mod_s87ys9$=r("kotlin.kotlin.UByte.mod_s87ys9$",s((function(){var t=e.kotlin.UInt,n=e.kotlin.uintRemainder_oqfnby$;return function(e){return n(new t(255&this.data),e)}}))),gp.prototype.mod_mpgczg$=r("kotlin.kotlin.UByte.mod_mpgczg$",s((function(){var n=t.Long.fromInt(255),i=e.kotlin.ULong,o=e.kotlin.ulongRemainder_jpm79w$;return function(e){return o(new i(t.Long.fromInt(this.data).and(n)),e)}}))),gp.prototype.inc=r("kotlin.kotlin.UByte.inc",s((function(){var n=t.toByte,i=e.kotlin.UByte;return function(){return new i(n(this.data+1))}}))),gp.prototype.dec=r("kotlin.kotlin.UByte.dec",s((function(){var n=t.toByte,i=e.kotlin.UByte;return function(){return new i(n(this.data-1))}}))),gp.prototype.rangeTo_mpmjao$=r("kotlin.kotlin.UByte.rangeTo_mpmjao$",s((function(){var t=e.kotlin.ranges.UIntRange,n=e.kotlin.UInt;return function(e){return new t(new n(255&this.data),new n(255&e.data))}}))),gp.prototype.and_mpmjao$=r("kotlin.kotlin.UByte.and_mpmjao$",s((function(){var n=e.kotlin.UByte,i=t.toByte;return function(t){return new n(i(this.data&t.data))}}))),gp.prototype.or_mpmjao$=r("kotlin.kotlin.UByte.or_mpmjao$",s((function(){var n=e.kotlin.UByte,i=t.toByte;return function(t){return new n(i(this.data|t.data))}}))),gp.prototype.xor_mpmjao$=r("kotlin.kotlin.UByte.xor_mpmjao$",s((function(){var n=e.kotlin.UByte,i=t.toByte;return function(t){return new n(i(this.data^t.data))}}))),gp.prototype.inv=r("kotlin.kotlin.UByte.inv",s((function(){var n=e.kotlin.UByte,i=t.toByte;return function(){return new n(i(~this.data))}}))),gp.prototype.toByte=r("kotlin.kotlin.UByte.toByte",(function(){return this.data})),gp.prototype.toShort=r("kotlin.kotlin.UByte.toShort",s((function(){var e=t.toShort;return function(){return e(255&this.data)}}))),gp.prototype.toInt=r("kotlin.kotlin.UByte.toInt",(function(){return 255&this.data})),gp.prototype.toLong=r("kotlin.kotlin.UByte.toLong",s((function(){var e=t.Long.fromInt(255);return function(){return t.Long.fromInt(this.data).and(e)}}))),gp.prototype.toUByte=r("kotlin.kotlin.UByte.toUByte",(function(){return this})),gp.prototype.toUShort=r("kotlin.kotlin.UByte.toUShort",s((function(){var n=e.kotlin.UShort,i=t.toShort;return function(){return new n(i(255&this.data))}}))),gp.prototype.toUInt=r("kotlin.kotlin.UByte.toUInt",s((function(){var t=e.kotlin.UInt;return function(){return new t(255&this.data)}}))),gp.prototype.toULong=r("kotlin.kotlin.UByte.toULong",s((function(){var n=t.Long.fromInt(255),i=e.kotlin.ULong;return function(){return new i(t.Long.fromInt(this.data).and(n))}}))),gp.prototype.toFloat=r("kotlin.kotlin.UByte.toFloat",(function(){return 255&this.data})),gp.prototype.toDouble=r("kotlin.kotlin.UByte.toDouble",(function(){return 255&this.data})),gp.prototype.toString=function(){return(255&this.data).toString()},gp.$metadata$={kind:o,simpleName:"UByte",interfaces:[R]},gp.prototype.unbox=function(){return this.data},gp.prototype.hashCode=function(){var e=0;return e=31*e+t.hashCode(this.data)|0},gp.prototype.equals=function(e){return this===e||null!==e&&"object"==typeof e&&Object.getPrototypeOf(this)===Object.getPrototypeOf(e)&&t.equals(this.data,e.data)},bp.prototype.get_za3lpa$=function(t){return new gp(this.storage[t])},bp.prototype.set_2c6cbe$=function(t,e){this.storage[t]=e.data},Object.defineProperty(bp.prototype,"size",{configurable:!0,get:function(){return this.storage.length}}),bp.prototype.iterator=function(){return new Sp(this.storage)},Sp.prototype.hasNext=function(){return this.index_0>>e)}}))),vp.prototype.and_s87ys9$=r("kotlin.kotlin.UInt.and_s87ys9$",s((function(){var t=e.kotlin.UInt;return function(e){return new t(this.data&e.data)}}))),vp.prototype.or_s87ys9$=r("kotlin.kotlin.UInt.or_s87ys9$",s((function(){var t=e.kotlin.UInt;return function(e){return new t(this.data|e.data)}}))),vp.prototype.xor_s87ys9$=r("kotlin.kotlin.UInt.xor_s87ys9$",s((function(){var t=e.kotlin.UInt;return function(e){return new t(this.data^e.data)}}))),vp.prototype.inv=r("kotlin.kotlin.UInt.inv",s((function(){var t=e.kotlin.UInt;return function(){return new t(~this.data)}}))),vp.prototype.toByte=r("kotlin.kotlin.UInt.toByte",s((function(){var e=t.toByte;return function(){return e(this.data)}}))),vp.prototype.toShort=r("kotlin.kotlin.UInt.toShort",s((function(){var e=t.toShort;return function(){return e(this.data)}}))),vp.prototype.toInt=r("kotlin.kotlin.UInt.toInt",(function(){return this.data})),vp.prototype.toLong=r("kotlin.kotlin.UInt.toLong",s((function(){var e=new t.Long(-1,0);return function(){return t.Long.fromInt(this.data).and(e)}}))),vp.prototype.toUByte=r("kotlin.kotlin.UInt.toUByte",s((function(){var n=t.toByte,i=e.kotlin.UByte;return function(){return new i(n(this.data))}}))),vp.prototype.toUShort=r("kotlin.kotlin.UInt.toUShort",s((function(){var n=t.toShort,i=e.kotlin.UShort;return function(){return new i(n(this.data))}}))),vp.prototype.toUInt=r("kotlin.kotlin.UInt.toUInt",(function(){return this})),vp.prototype.toULong=r("kotlin.kotlin.UInt.toULong",s((function(){var n=new t.Long(-1,0),i=e.kotlin.ULong;return function(){return new i(t.Long.fromInt(this.data).and(n))}}))),vp.prototype.toFloat=r("kotlin.kotlin.UInt.toFloat",s((function(){var t=e.kotlin.uintToDouble_za3lpa$;return function(){return t(this.data)}}))),vp.prototype.toDouble=r("kotlin.kotlin.UInt.toDouble",s((function(){var t=e.kotlin.uintToDouble_za3lpa$;return function(){return t(this.data)}}))),vp.prototype.toString=function(){return t.Long.fromInt(this.data).and(L).toString()},vp.$metadata$={kind:o,simpleName:"UInt",interfaces:[R]},vp.prototype.unbox=function(){return this.data},vp.prototype.hashCode=function(){var e=0;return e=31*e+t.hashCode(this.data)|0},vp.prototype.equals=function(e){return this===e||null!==e&&"object"==typeof e&&Object.getPrototypeOf(this)===Object.getPrototypeOf(e)&&t.equals(this.data,e.data)},Lp.prototype.get_za3lpa$=function(t){return new vp(this.storage[t])},Lp.prototype.set_6sqrdv$=function(t,e){this.storage[t]=e.data},Object.defineProperty(Lp.prototype,"size",{configurable:!0,get:function(){return this.storage.length}}),Lp.prototype.iterator=function(){return new zp(this.storage)},zp.prototype.hasNext=function(){return this.index_00},wp.prototype.equals=function(e){var n,i;return t.isType(e,wp)&&(this.isEmpty()&&e.isEmpty()||(null!=(n=this.first)?n.equals(e.first):null)&&(null!=(i=this.last)?i.equals(e.last):null))},wp.prototype.hashCode=function(){return this.isEmpty()?-1:(31*this.first.data|0)+this.last.data|0},wp.prototype.toString=function(){return this.first.toString()+".."+this.last},Op.$metadata$={kind:w,simpleName:"Companion",interfaces:[]};var Rp=null;function Ap(){return null===Rp&&new Op,Rp}function xp(t,e,n){if(Dp(),0===n)throw wn("Step must be non-zero.");if(-2147483648===n)throw wn("Step must be greater than Int.MIN_VALUE to avoid overflow on negation.");this.first=t,this.last=e_(t,e,n),this.step=n}function Ip(){Up=this}wp.$metadata$={kind:o,simpleName:"UIntRange",interfaces:[eh,th,xp]},xp.prototype.iterator=function(){return new Pp(this.first,this.last,this.step)},xp.prototype.isEmpty=function(){return this.step>0?g_(this.first.data,this.last.data)>0:g_(this.first.data,this.last.data)<0},xp.prototype.equals=function(e){var n,i;return t.isType(e,xp)&&(this.isEmpty()&&e.isEmpty()||(null!=(n=this.first)?n.equals(e.first):null)&&(null!=(i=this.last)?i.equals(e.last):null)&&this.step===e.step)},xp.prototype.hashCode=function(){return this.isEmpty()?-1:(31*((31*this.first.data|0)+this.last.data|0)|0)+this.step|0},xp.prototype.toString=function(){return this.step>0?this.first.toString()+".."+this.last+" step "+this.step:this.first.toString()+" downTo "+this.last+" step "+(0|-this.step)},Ip.prototype.fromClosedRange_fjk8us$=function(t,e,n){return new xp(t,e,n)},Ip.$metadata$={kind:w,simpleName:"Companion",interfaces:[]};var Up=null;function Dp(){return null===Up&&new Ip,Up}function Pp(t,e,n){this.finalElement_0=e,this.hasNext_0=n>0?g_(t.data,e.data)<=0:g_(t.data,e.data)>=0,this.step_0=new vp(n),this.next_0=this.hasNext_0?t:this.finalElement_0}function Mp(t){Gp(),this.data=t}function kp(){jp=this,this.MIN_VALUE=new Mp(h),this.MAX_VALUE=new Mp(_),this.SIZE_BYTES=8,this.SIZE_BITS=64}xp.$metadata$={kind:o,simpleName:"UIntProgression",interfaces:[ze]},Pp.prototype.hasNext=function(){return this.hasNext_0},Pp.prototype.next=function(){var t=this.next_0;if(null!=t&&t.equals(this.finalElement_0)){if(!this.hasNext_0)throw qn();this.hasNext_0=!1}else this.next_0=new vp(this.next_0.data+this.step_0.data|0);return t},Pp.$metadata$={kind:o,simpleName:"UIntProgressionIterator",interfaces:[je]},kp.$metadata$={kind:w,simpleName:"Companion",interfaces:[]};var jp=null;function Gp(){return null===jp&&new kp,jp}function qp(t){this.storage=t}function Fp(t){this.array_0=t,this.index_0=0}function Bp(t,e){Vp(),Kp.call(this,t,e,V)}function Wp(){Hp=this,this.EMPTY=new Bp(Gp().MAX_VALUE,Gp().MIN_VALUE)}Mp.prototype.compareTo_mpmjao$=r("kotlin.kotlin.ULong.compareTo_mpmjao$",s((function(){var n=t.Long.fromInt(255),i=e.kotlin.ULong,o=e.kotlin.ulongCompare_3pjtqy$;return function(e){return o(this.data,new i(t.Long.fromInt(e.data).and(n)).data)}}))),Mp.prototype.compareTo_6hrhkk$=r("kotlin.kotlin.ULong.compareTo_6hrhkk$",s((function(){var n=t.Long.fromInt(65535),i=e.kotlin.ULong,o=e.kotlin.ulongCompare_3pjtqy$;return function(e){return o(this.data,new i(t.Long.fromInt(e.data).and(n)).data)}}))),Mp.prototype.compareTo_s87ys9$=r("kotlin.kotlin.ULong.compareTo_s87ys9$",s((function(){var n=new t.Long(-1,0),i=e.kotlin.ULong,o=e.kotlin.ulongCompare_3pjtqy$;return function(e){return o(this.data,new i(t.Long.fromInt(e.data).and(n)).data)}}))),Mp.prototype.compareTo_11rb$=r("kotlin.kotlin.ULong.compareTo_11rb$",s((function(){var t=e.kotlin.ulongCompare_3pjtqy$;return function(e){return t(this.data,e.data)}}))),Mp.prototype.plus_mpmjao$=r("kotlin.kotlin.ULong.plus_mpmjao$",s((function(){var n=t.Long.fromInt(255),i=e.kotlin.ULong;return function(e){return new i(this.data.add(new i(t.Long.fromInt(e.data).and(n)).data))}}))),Mp.prototype.plus_6hrhkk$=r("kotlin.kotlin.ULong.plus_6hrhkk$",s((function(){var n=t.Long.fromInt(65535),i=e.kotlin.ULong;return function(e){return new i(this.data.add(new i(t.Long.fromInt(e.data).and(n)).data))}}))),Mp.prototype.plus_s87ys9$=r("kotlin.kotlin.ULong.plus_s87ys9$",s((function(){var n=new t.Long(-1,0),i=e.kotlin.ULong;return function(e){return new i(this.data.add(new i(t.Long.fromInt(e.data).and(n)).data))}}))),Mp.prototype.plus_mpgczg$=r("kotlin.kotlin.ULong.plus_mpgczg$",s((function(){var t=e.kotlin.ULong;return function(e){return new t(this.data.add(e.data))}}))),Mp.prototype.minus_mpmjao$=r("kotlin.kotlin.ULong.minus_mpmjao$",s((function(){var n=t.Long.fromInt(255),i=e.kotlin.ULong;return function(e){return new i(this.data.subtract(new i(t.Long.fromInt(e.data).and(n)).data))}}))),Mp.prototype.minus_6hrhkk$=r("kotlin.kotlin.ULong.minus_6hrhkk$",s((function(){var n=t.Long.fromInt(65535),i=e.kotlin.ULong;return function(e){return new i(this.data.subtract(new i(t.Long.fromInt(e.data).and(n)).data))}}))),Mp.prototype.minus_s87ys9$=r("kotlin.kotlin.ULong.minus_s87ys9$",s((function(){var n=new t.Long(-1,0),i=e.kotlin.ULong;return function(e){return new i(this.data.subtract(new i(t.Long.fromInt(e.data).and(n)).data))}}))),Mp.prototype.minus_mpgczg$=r("kotlin.kotlin.ULong.minus_mpgczg$",s((function(){var t=e.kotlin.ULong;return function(e){return new t(this.data.subtract(e.data))}}))),Mp.prototype.times_mpmjao$=r("kotlin.kotlin.ULong.times_mpmjao$",s((function(){var n=t.Long.fromInt(255),i=e.kotlin.ULong;return function(e){return new i(this.data.multiply(new i(t.Long.fromInt(e.data).and(n)).data))}}))),Mp.prototype.times_6hrhkk$=r("kotlin.kotlin.ULong.times_6hrhkk$",s((function(){var n=t.Long.fromInt(65535),i=e.kotlin.ULong;return function(e){return new i(this.data.multiply(new i(t.Long.fromInt(e.data).and(n)).data))}}))),Mp.prototype.times_s87ys9$=r("kotlin.kotlin.ULong.times_s87ys9$",s((function(){var n=new t.Long(-1,0),i=e.kotlin.ULong;return function(e){return new i(this.data.multiply(new i(t.Long.fromInt(e.data).and(n)).data))}}))),Mp.prototype.times_mpgczg$=r("kotlin.kotlin.ULong.times_mpgczg$",s((function(){var t=e.kotlin.ULong;return function(e){return new t(this.data.multiply(e.data))}}))),Mp.prototype.div_mpmjao$=r("kotlin.kotlin.ULong.div_mpmjao$",s((function(){var n=t.Long.fromInt(255),i=e.kotlin.ULong,o=e.kotlin.ulongDivide_jpm79w$;return function(e){return o(this,new i(t.Long.fromInt(e.data).and(n)))}}))),Mp.prototype.div_6hrhkk$=r("kotlin.kotlin.ULong.div_6hrhkk$",s((function(){var n=t.Long.fromInt(65535),i=e.kotlin.ULong,o=e.kotlin.ulongDivide_jpm79w$;return function(e){return o(this,new i(t.Long.fromInt(e.data).and(n)))}}))),Mp.prototype.div_s87ys9$=r("kotlin.kotlin.ULong.div_s87ys9$",s((function(){var n=new t.Long(-1,0),i=e.kotlin.ULong,o=e.kotlin.ulongDivide_jpm79w$;return function(e){return o(this,new i(t.Long.fromInt(e.data).and(n)))}}))),Mp.prototype.div_mpgczg$=r("kotlin.kotlin.ULong.div_mpgczg$",s((function(){var t=e.kotlin.ulongDivide_jpm79w$;return function(e){return t(this,e)}}))),Mp.prototype.rem_mpmjao$=r("kotlin.kotlin.ULong.rem_mpmjao$",s((function(){var n=t.Long.fromInt(255),i=e.kotlin.ULong,o=e.kotlin.ulongRemainder_jpm79w$;return function(e){return o(this,new i(t.Long.fromInt(e.data).and(n)))}}))),Mp.prototype.rem_6hrhkk$=r("kotlin.kotlin.ULong.rem_6hrhkk$",s((function(){var n=t.Long.fromInt(65535),i=e.kotlin.ULong,o=e.kotlin.ulongRemainder_jpm79w$;return function(e){return o(this,new i(t.Long.fromInt(e.data).and(n)))}}))),Mp.prototype.rem_s87ys9$=r("kotlin.kotlin.ULong.rem_s87ys9$",s((function(){var n=new t.Long(-1,0),i=e.kotlin.ULong,o=e.kotlin.ulongRemainder_jpm79w$;return function(e){return o(this,new i(t.Long.fromInt(e.data).and(n)))}}))),Mp.prototype.rem_mpgczg$=r("kotlin.kotlin.ULong.rem_mpgczg$",s((function(){var t=e.kotlin.ulongRemainder_jpm79w$;return function(e){return t(this,e)}}))),Mp.prototype.floorDiv_mpmjao$=r("kotlin.kotlin.ULong.floorDiv_mpmjao$",s((function(){var n=t.Long.fromInt(255),i=e.kotlin.ULong,o=e.kotlin.ulongDivide_jpm79w$;return function(e){return o(this,new i(t.Long.fromInt(e.data).and(n)))}}))),Mp.prototype.floorDiv_6hrhkk$=r("kotlin.kotlin.ULong.floorDiv_6hrhkk$",s((function(){var n=t.Long.fromInt(65535),i=e.kotlin.ULong,o=e.kotlin.ulongDivide_jpm79w$;return function(e){return o(this,new i(t.Long.fromInt(e.data).and(n)))}}))),Mp.prototype.floorDiv_s87ys9$=r("kotlin.kotlin.ULong.floorDiv_s87ys9$",s((function(){var n=new t.Long(-1,0),i=e.kotlin.ULong,o=e.kotlin.ulongDivide_jpm79w$;return function(e){return o(this,new i(t.Long.fromInt(e.data).and(n)))}}))),Mp.prototype.floorDiv_mpgczg$=r("kotlin.kotlin.ULong.floorDiv_mpgczg$",s((function(){var t=e.kotlin.ulongDivide_jpm79w$;return function(e){return t(this,e)}}))),Mp.prototype.mod_mpmjao$=r("kotlin.kotlin.ULong.mod_mpmjao$",s((function(){var n=t.Long.fromInt(255),i=e.kotlin.ULong,o=e.kotlin.ulongRemainder_jpm79w$,r=t.toByte,s=e.kotlin.UByte;return function(e){return new s(r(o(this,new i(t.Long.fromInt(e.data).and(n))).data.toInt()))}}))),Mp.prototype.mod_6hrhkk$=r("kotlin.kotlin.ULong.mod_6hrhkk$",s((function(){var n=t.Long.fromInt(65535),i=e.kotlin.ULong,o=e.kotlin.ulongRemainder_jpm79w$,r=t.toShort,s=e.kotlin.UShort;return function(e){return new s(r(o(this,new i(t.Long.fromInt(e.data).and(n))).data.toInt()))}}))),Mp.prototype.mod_s87ys9$=r("kotlin.kotlin.ULong.mod_s87ys9$",s((function(){var n=new t.Long(-1,0),i=e.kotlin.ULong,o=e.kotlin.ulongRemainder_jpm79w$,r=e.kotlin.UInt;return function(e){return new r(o(this,new i(t.Long.fromInt(e.data).and(n))).data.toInt())}}))),Mp.prototype.mod_mpgczg$=r("kotlin.kotlin.ULong.mod_mpgczg$",s((function(){var t=e.kotlin.ulongRemainder_jpm79w$;return function(e){return t(this,e)}}))),Mp.prototype.inc=r("kotlin.kotlin.ULong.inc",s((function(){var t=e.kotlin.ULong;return function(){return new t(this.data.inc())}}))),Mp.prototype.dec=r("kotlin.kotlin.ULong.dec",s((function(){var t=e.kotlin.ULong;return function(){return new t(this.data.dec())}}))),Mp.prototype.rangeTo_mpgczg$=r("kotlin.kotlin.ULong.rangeTo_mpgczg$",s((function(){var t=e.kotlin.ranges.ULongRange;return function(e){return new t(this,e)}}))),Mp.prototype.shl_za3lpa$=r("kotlin.kotlin.ULong.shl_za3lpa$",s((function(){var t=e.kotlin.ULong;return function(e){return new t(this.data.shiftLeft(e))}}))),Mp.prototype.shr_za3lpa$=r("kotlin.kotlin.ULong.shr_za3lpa$",s((function(){var t=e.kotlin.ULong;return function(e){return new t(this.data.shiftRightUnsigned(e))}}))),Mp.prototype.and_mpgczg$=r("kotlin.kotlin.ULong.and_mpgczg$",s((function(){var t=e.kotlin.ULong;return function(e){return new t(this.data.and(e.data))}}))),Mp.prototype.or_mpgczg$=r("kotlin.kotlin.ULong.or_mpgczg$",s((function(){var t=e.kotlin.ULong;return function(e){return new t(this.data.or(e.data))}}))),Mp.prototype.xor_mpgczg$=r("kotlin.kotlin.ULong.xor_mpgczg$",s((function(){var t=e.kotlin.ULong;return function(e){return new t(this.data.xor(e.data))}}))),Mp.prototype.inv=r("kotlin.kotlin.ULong.inv",s((function(){var t=e.kotlin.ULong;return function(){return new t(this.data.inv())}}))),Mp.prototype.toByte=r("kotlin.kotlin.ULong.toByte",s((function(){var e=t.toByte;return function(){return e(this.data.toInt())}}))),Mp.prototype.toShort=r("kotlin.kotlin.ULong.toShort",s((function(){var e=t.toShort;return function(){return e(this.data.toInt())}}))),Mp.prototype.toInt=r("kotlin.kotlin.ULong.toInt",(function(){return this.data.toInt()})),Mp.prototype.toLong=r("kotlin.kotlin.ULong.toLong",(function(){return this.data})),Mp.prototype.toUByte=r("kotlin.kotlin.ULong.toUByte",s((function(){var n=t.toByte,i=e.kotlin.UByte;return function(){return new i(n(this.data.toInt()))}}))),Mp.prototype.toUShort=r("kotlin.kotlin.ULong.toUShort",s((function(){var n=t.toShort,i=e.kotlin.UShort;return function(){return new i(n(this.data.toInt()))}}))),Mp.prototype.toUInt=r("kotlin.kotlin.ULong.toUInt",s((function(){var t=e.kotlin.UInt;return function(){return new t(this.data.toInt())}}))),Mp.prototype.toULong=r("kotlin.kotlin.ULong.toULong",(function(){return this})),Mp.prototype.toFloat=r("kotlin.kotlin.ULong.toFloat",s((function(){var t=e.kotlin.ulongToDouble_s8cxhz$;return function(){return t(this.data)}}))),Mp.prototype.toDouble=r("kotlin.kotlin.ULong.toDouble",s((function(){var t=e.kotlin.ulongToDouble_s8cxhz$;return function(){return t(this.data)}}))),Mp.prototype.toString=function(){return v_(this.data)},Mp.$metadata$={kind:o,simpleName:"ULong",interfaces:[R]},Mp.prototype.unbox=function(){return this.data},Mp.prototype.hashCode=function(){var e=0;return e=31*e+t.hashCode(this.data)|0},Mp.prototype.equals=function(e){return this===e||null!==e&&"object"==typeof e&&Object.getPrototypeOf(this)===Object.getPrototypeOf(e)&&t.equals(this.data,e.data)},qp.prototype.get_za3lpa$=function(t){return new Mp(this.storage[t])},qp.prototype.set_2ccimm$=function(t,e){this.storage[t]=e.data},Object.defineProperty(qp.prototype,"size",{configurable:!0,get:function(){return this.storage.length}}),qp.prototype.iterator=function(){return new Fp(this.storage)},Fp.prototype.hasNext=function(){return this.index_00},Bp.prototype.equals=function(e){var n,i;return t.isType(e,Bp)&&(this.isEmpty()&&e.isEmpty()||(null!=(n=this.first)?n.equals(e.first):null)&&(null!=(i=this.last)?i.equals(e.last):null))},Bp.prototype.hashCode=function(){return this.isEmpty()?-1:(31*new Mp(this.first.data.xor(new Mp(this.first.data.shiftRightUnsigned(32)).data)).data.toInt()|0)+new Mp(this.last.data.xor(new Mp(this.last.data.shiftRightUnsigned(32)).data)).data.toInt()|0},Bp.prototype.toString=function(){return this.first.toString()+".."+this.last},Wp.$metadata$={kind:w,simpleName:"Companion",interfaces:[]};var Hp=null;function Vp(){return null===Hp&&new Wp,Hp}function Kp(t,e,n){if(Yp(),a(n,h))throw wn("Step must be non-zero.");if(a(n,y))throw wn("Step must be greater than Long.MIN_VALUE to avoid overflow on negation.");this.first=t,this.last=n_(t,e,n),this.step=n}function Xp(){Jp=this}Bp.$metadata$={kind:o,simpleName:"ULongRange",interfaces:[eh,th,Kp]},Kp.prototype.iterator=function(){return new Qp(this.first,this.last,this.step)},Kp.prototype.isEmpty=function(){return this.step.toNumber()>0?$_(this.first.data,this.last.data)>0:$_(this.first.data,this.last.data)<0},Kp.prototype.equals=function(e){var n,i;return t.isType(e,Kp)&&(this.isEmpty()&&e.isEmpty()||(null!=(n=this.first)?n.equals(e.first):null)&&(null!=(i=this.last)?i.equals(e.last):null)&&a(this.step,e.step))},Kp.prototype.hashCode=function(){return this.isEmpty()?-1:(31*((31*new Mp(this.first.data.xor(new Mp(this.first.data.shiftRightUnsigned(32)).data)).data.toInt()|0)+new Mp(this.last.data.xor(new Mp(this.last.data.shiftRightUnsigned(32)).data)).data.toInt()|0)|0)+this.step.xor(this.step.shiftRightUnsigned(32)).toInt()|0},Kp.prototype.toString=function(){return this.step.toNumber()>0?this.first.toString()+".."+this.last+" step "+this.step.toString():this.first.toString()+" downTo "+this.last+" step "+this.step.unaryMinus().toString()},Xp.prototype.fromClosedRange_15zasp$=function(t,e,n){return new Kp(t,e,n)},Xp.$metadata$={kind:w,simpleName:"Companion",interfaces:[]};var Jp=null;function Yp(){return null===Jp&&new Xp,Jp}function Qp(t,e,n){this.finalElement_0=e,this.hasNext_0=n.toNumber()>0?$_(t.data,e.data)<=0:$_(t.data,e.data)>=0,this.step_0=new Mp(n),this.next_0=this.hasNext_0?t:this.finalElement_0}function Zp(t,e,n){var i=y_(t,n),o=y_(e,n);return g_(i.data,o.data)>=0?new vp(i.data-o.data|0):new vp(new vp(i.data-o.data|0).data+n.data|0)}function t_(t,e,n){var i=S_(t,n),o=S_(e,n);return $_(i.data,o.data)>=0?new Mp(i.data.subtract(o.data)):new Mp(new Mp(i.data.subtract(o.data)).data.add(n.data))}function e_(t,e,n){if(n>0)return g_(t.data,e.data)>=0?e:new vp(e.data-Zp(e,t,new vp(n)).data|0);if(n<0)return g_(t.data,e.data)<=0?e:new vp(e.data+Zp(t,e,new vp(0|-n)).data|0);throw wn("Step is zero.")}function n_(t,e,n){if(n.toNumber()>0)return $_(t.data,e.data)>=0?e:new Mp(e.data.subtract(t_(e,t,new Mp(n)).data));if(n.toNumber()<0)return $_(t.data,e.data)<=0?e:new Mp(e.data.add(t_(t,e,new Mp(n.unaryMinus())).data));throw wn("Step is zero.")}function i_(t){s_(),this.data=t}function o_(){r_=this,this.MIN_VALUE=new i_(0),this.MAX_VALUE=new i_(-1),this.SIZE_BYTES=2,this.SIZE_BITS=16}Kp.$metadata$={kind:o,simpleName:"ULongProgression",interfaces:[ze]},Qp.prototype.hasNext=function(){return this.hasNext_0},Qp.prototype.next=function(){var t=this.next_0;if(null!=t&&t.equals(this.finalElement_0)){if(!this.hasNext_0)throw qn();this.hasNext_0=!1}else this.next_0=new Mp(this.next_0.data.add(this.step_0.data));return t},Qp.$metadata$={kind:o,simpleName:"ULongProgressionIterator",interfaces:[je]},o_.$metadata$={kind:w,simpleName:"Companion",interfaces:[]};var r_=null;function s_(){return null===r_&&new o_,r_}function a_(t){this.storage=t}function c_(t){this.array_0=t,this.index_0=0}function l_(t){return u_(t,10)}function u_(t,e){var n;if(null==(n=__(t,e)))return null;var i=n;return g_(i.data,new vp(255&yp().MAX_VALUE.data).data)>0?null:new gp(m(i.data))}function h_(t){return d_(t,10)}function d_(t,e){var n;if(null==(n=__(t,e)))return null;var i=n;return g_(i.data,new vp(65535&s_().MAX_VALUE.data).data)>0?null:new i_(S(i.data))}function p_(t){return __(t,10)}function __(e,n){Es(n);var i=e.length;if(0===i)return null;var o,r=Tp().MAX_VALUE,s=e.charCodeAt(0);if(s<48){if(1===i||43!==s)return null;o=1}else o=0;for(var a=new vp(119304647),c=a,l=new vp(n),u=new vp(0),h=o;h0){if(null==c||!c.equals(a))return null;if(c=E_(r,l),g_(u.data,c.data)>0)return null}var p=u=new vp(t.imul(u.data,l.data));if(g_((u=new vp(u.data+new vp(d).data|0)).data,p.data)<0)return null}return u}function m_(t){return f_(t,10)}function f_(e,n){Es(n);var i=e.length;if(0===i)return null;var o,r=Gp().MAX_VALUE,s=e.charCodeAt(0);if(s<48){if(1===i||43!==s)return null;o=1}else o=0;for(var a=new Mp(new t.Long(477218588,119304647)),c=a,l=new Mp(t.Long.fromInt(n)),u=new Mp(t.Long.ZERO),h=o;h0){if(null==c||!c.equals(a))return null;if(c=b_(r,l),$_(u.data,c.data)>0)return null}var p=u=new Mp(u.data.multiply(l.data));if($_((u=new Mp(u.data.add(new Mp(t.Long.fromInt(new vp(d).data).and(L)).data))).data,p.data)<0)return null}return u}function g_(e,n){return t.primitiveCompareTo(-2147483648^e,-2147483648^n)}function $_(t,e){return t.xor(y).compareTo_11rb$(e.xor(y))}function E_(e,n){return new vp(t.Long.fromInt(e.data).and(L).div(t.Long.fromInt(n.data).and(L)).toInt())}function y_(e,n){return new vp(t.Long.fromInt(e.data).and(L).modulo(t.Long.fromInt(n.data).and(L)).toInt())}function b_(e,n){var i=e.data,o=n.data;if(o.toNumber()<0)return $_(e.data,n.data)<0?new Mp(h):new Mp(V);if(i.toNumber()>=0)return new Mp(i.div(o));var r=i.shiftRightUnsigned(1).div(o).shiftLeft(1),s=i.subtract(r.multiply(o));return new Mp(r.add(t.Long.fromInt($_(new Mp(s).data,new Mp(o).data)>=0?1:0)))}function S_(t,e){var n=t.data,i=e.data;if(i.toNumber()<0)return $_(t.data,e.data)<0?t:new Mp(t.data.subtract(e.data));if(n.toNumber()>=0)return new Mp(n.modulo(i));var o=n.shiftRightUnsigned(1).div(i).shiftLeft(1),r=n.subtract(o.multiply(i));return new Mp(r.subtract($_(new Mp(r).data,new Mp(i).data)>=0?i:h))}function v_(t){return C_(t,10)}function C_(e,n){if(e.toNumber()>=0)return Jn(e,n);var i=e.shiftRightUnsigned(1).div(t.Long.fromInt(n)).shiftLeft(1),o=e.subtract(i.multiply(t.Long.fromInt(n)));return o.toNumber()>=n&&(o=o.subtract(t.Long.fromInt(n)),i=i.add(t.Long.fromInt(1))),Jn(i,n)+Jn(o,n)}i_.prototype.compareTo_mpmjao$=r("kotlin.kotlin.UShort.compareTo_mpmjao$",(function(e){return t.primitiveCompareTo(65535&this.data,255&e.data)})),i_.prototype.compareTo_11rb$=r("kotlin.kotlin.UShort.compareTo_11rb$",(function(e){return t.primitiveCompareTo(65535&this.data,65535&e.data)})),i_.prototype.compareTo_s87ys9$=r("kotlin.kotlin.UShort.compareTo_s87ys9$",s((function(){var t=e.kotlin.UInt,n=e.kotlin.uintCompare_vux9f0$;return function(e){return n(new t(65535&this.data).data,e.data)}}))),i_.prototype.compareTo_mpgczg$=r("kotlin.kotlin.UShort.compareTo_mpgczg$",s((function(){var n=t.Long.fromInt(65535),i=e.kotlin.ULong,o=e.kotlin.ulongCompare_3pjtqy$;return function(e){return o(new i(t.Long.fromInt(this.data).and(n)).data,e.data)}}))),i_.prototype.plus_mpmjao$=r("kotlin.kotlin.UShort.plus_mpmjao$",s((function(){var t=e.kotlin.UInt;return function(e){return new t(new t(65535&this.data).data+new t(255&e.data).data|0)}}))),i_.prototype.plus_6hrhkk$=r("kotlin.kotlin.UShort.plus_6hrhkk$",s((function(){var t=e.kotlin.UInt;return function(e){return new t(new t(65535&this.data).data+new t(65535&e.data).data|0)}}))),i_.prototype.plus_s87ys9$=r("kotlin.kotlin.UShort.plus_s87ys9$",s((function(){var t=e.kotlin.UInt;return function(e){return new t(new t(65535&this.data).data+e.data|0)}}))),i_.prototype.plus_mpgczg$=r("kotlin.kotlin.UShort.plus_mpgczg$",s((function(){var n=t.Long.fromInt(65535),i=e.kotlin.ULong;return function(e){return new i(new i(t.Long.fromInt(this.data).and(n)).data.add(e.data))}}))),i_.prototype.minus_mpmjao$=r("kotlin.kotlin.UShort.minus_mpmjao$",s((function(){var t=e.kotlin.UInt;return function(e){return new t(new t(65535&this.data).data-new t(255&e.data).data|0)}}))),i_.prototype.minus_6hrhkk$=r("kotlin.kotlin.UShort.minus_6hrhkk$",s((function(){var t=e.kotlin.UInt;return function(e){return new t(new t(65535&this.data).data-new t(65535&e.data).data|0)}}))),i_.prototype.minus_s87ys9$=r("kotlin.kotlin.UShort.minus_s87ys9$",s((function(){var t=e.kotlin.UInt;return function(e){return new t(new t(65535&this.data).data-e.data|0)}}))),i_.prototype.minus_mpgczg$=r("kotlin.kotlin.UShort.minus_mpgczg$",s((function(){var n=t.Long.fromInt(65535),i=e.kotlin.ULong;return function(e){return new i(new i(t.Long.fromInt(this.data).and(n)).data.subtract(e.data))}}))),i_.prototype.times_mpmjao$=r("kotlin.kotlin.UShort.times_mpmjao$",s((function(){var n=e.kotlin.UInt;return function(e){return new n(t.imul(new n(65535&this.data).data,new n(255&e.data).data))}}))),i_.prototype.times_6hrhkk$=r("kotlin.kotlin.UShort.times_6hrhkk$",s((function(){var n=e.kotlin.UInt;return function(e){return new n(t.imul(new n(65535&this.data).data,new n(65535&e.data).data))}}))),i_.prototype.times_s87ys9$=r("kotlin.kotlin.UShort.times_s87ys9$",s((function(){var n=e.kotlin.UInt;return function(e){return new n(t.imul(new n(65535&this.data).data,e.data))}}))),i_.prototype.times_mpgczg$=r("kotlin.kotlin.UShort.times_mpgczg$",s((function(){var n=t.Long.fromInt(65535),i=e.kotlin.ULong;return function(e){return new i(new i(t.Long.fromInt(this.data).and(n)).data.multiply(e.data))}}))),i_.prototype.div_mpmjao$=r("kotlin.kotlin.UShort.div_mpmjao$",s((function(){var t=e.kotlin.UInt,n=e.kotlin.uintDivide_oqfnby$;return function(e){return n(new t(65535&this.data),new t(255&e.data))}}))),i_.prototype.div_6hrhkk$=r("kotlin.kotlin.UShort.div_6hrhkk$",s((function(){var t=e.kotlin.UInt,n=e.kotlin.uintDivide_oqfnby$;return function(e){return n(new t(65535&this.data),new t(65535&e.data))}}))),i_.prototype.div_s87ys9$=r("kotlin.kotlin.UShort.div_s87ys9$",s((function(){var t=e.kotlin.UInt,n=e.kotlin.uintDivide_oqfnby$;return function(e){return n(new t(65535&this.data),e)}}))),i_.prototype.div_mpgczg$=r("kotlin.kotlin.UShort.div_mpgczg$",s((function(){var n=t.Long.fromInt(65535),i=e.kotlin.ULong,o=e.kotlin.ulongDivide_jpm79w$;return function(e){return o(new i(t.Long.fromInt(this.data).and(n)),e)}}))),i_.prototype.rem_mpmjao$=r("kotlin.kotlin.UShort.rem_mpmjao$",s((function(){var t=e.kotlin.UInt,n=e.kotlin.uintRemainder_oqfnby$;return function(e){return n(new t(65535&this.data),new t(255&e.data))}}))),i_.prototype.rem_6hrhkk$=r("kotlin.kotlin.UShort.rem_6hrhkk$",s((function(){var t=e.kotlin.UInt,n=e.kotlin.uintRemainder_oqfnby$;return function(e){return n(new t(65535&this.data),new t(65535&e.data))}}))),i_.prototype.rem_s87ys9$=r("kotlin.kotlin.UShort.rem_s87ys9$",s((function(){var t=e.kotlin.UInt,n=e.kotlin.uintRemainder_oqfnby$;return function(e){return n(new t(65535&this.data),e)}}))),i_.prototype.rem_mpgczg$=r("kotlin.kotlin.UShort.rem_mpgczg$",s((function(){var n=t.Long.fromInt(65535),i=e.kotlin.ULong,o=e.kotlin.ulongRemainder_jpm79w$;return function(e){return o(new i(t.Long.fromInt(this.data).and(n)),e)}}))),i_.prototype.floorDiv_mpmjao$=r("kotlin.kotlin.UShort.floorDiv_mpmjao$",s((function(){var t=e.kotlin.UInt,n=e.kotlin.uintDivide_oqfnby$;return function(e){return n(new t(65535&this.data),new t(255&e.data))}}))),i_.prototype.floorDiv_6hrhkk$=r("kotlin.kotlin.UShort.floorDiv_6hrhkk$",s((function(){var t=e.kotlin.UInt,n=e.kotlin.uintDivide_oqfnby$;return function(e){return n(new t(65535&this.data),new t(65535&e.data))}}))),i_.prototype.floorDiv_s87ys9$=r("kotlin.kotlin.UShort.floorDiv_s87ys9$",s((function(){var t=e.kotlin.UInt,n=e.kotlin.uintDivide_oqfnby$;return function(e){return n(new t(65535&this.data),e)}}))),i_.prototype.floorDiv_mpgczg$=r("kotlin.kotlin.UShort.floorDiv_mpgczg$",s((function(){var n=t.Long.fromInt(65535),i=e.kotlin.ULong,o=e.kotlin.ulongDivide_jpm79w$;return function(e){return o(new i(t.Long.fromInt(this.data).and(n)),e)}}))),i_.prototype.mod_mpmjao$=r("kotlin.kotlin.UShort.mod_mpmjao$",s((function(){var n=e.kotlin.UInt,i=e.kotlin.uintRemainder_oqfnby$,o=t.toByte,r=e.kotlin.UByte;return function(t){return new r(o(i(new n(65535&this.data),new n(255&t.data)).data))}}))),i_.prototype.mod_6hrhkk$=r("kotlin.kotlin.UShort.mod_6hrhkk$",s((function(){var n=e.kotlin.UInt,i=e.kotlin.uintRemainder_oqfnby$,o=t.toShort,r=e.kotlin.UShort;return function(t){return new r(o(i(new n(65535&this.data),new n(65535&t.data)).data))}}))),i_.prototype.mod_s87ys9$=r("kotlin.kotlin.UShort.mod_s87ys9$",s((function(){var t=e.kotlin.UInt,n=e.kotlin.uintRemainder_oqfnby$;return function(e){return n(new t(65535&this.data),e)}}))),i_.prototype.mod_mpgczg$=r("kotlin.kotlin.UShort.mod_mpgczg$",s((function(){var n=t.Long.fromInt(65535),i=e.kotlin.ULong,o=e.kotlin.ulongRemainder_jpm79w$;return function(e){return o(new i(t.Long.fromInt(this.data).and(n)),e)}}))),i_.prototype.inc=r("kotlin.kotlin.UShort.inc",s((function(){var n=t.toShort,i=e.kotlin.UShort;return function(){return new i(n(this.data+1))}}))),i_.prototype.dec=r("kotlin.kotlin.UShort.dec",s((function(){var n=t.toShort,i=e.kotlin.UShort;return function(){return new i(n(this.data-1))}}))),i_.prototype.rangeTo_6hrhkk$=r("kotlin.kotlin.UShort.rangeTo_6hrhkk$",s((function(){var t=e.kotlin.ranges.UIntRange,n=e.kotlin.UInt;return function(e){return new t(new n(65535&this.data),new n(65535&e.data))}}))),i_.prototype.and_6hrhkk$=r("kotlin.kotlin.UShort.and_6hrhkk$",s((function(){var n=e.kotlin.UShort,i=t.toShort;return function(t){return new n(i(this.data&t.data))}}))),i_.prototype.or_6hrhkk$=r("kotlin.kotlin.UShort.or_6hrhkk$",s((function(){var n=e.kotlin.UShort,i=t.toShort;return function(t){return new n(i(this.data|t.data))}}))),i_.prototype.xor_6hrhkk$=r("kotlin.kotlin.UShort.xor_6hrhkk$",s((function(){var n=e.kotlin.UShort,i=t.toShort;return function(t){return new n(i(this.data^t.data))}}))),i_.prototype.inv=r("kotlin.kotlin.UShort.inv",s((function(){var n=e.kotlin.UShort,i=t.toShort;return function(){return new n(i(~this.data))}}))),i_.prototype.toByte=r("kotlin.kotlin.UShort.toByte",s((function(){var e=t.toByte;return function(){return e(this.data)}}))),i_.prototype.toShort=r("kotlin.kotlin.UShort.toShort",(function(){return this.data})),i_.prototype.toInt=r("kotlin.kotlin.UShort.toInt",(function(){return 65535&this.data})),i_.prototype.toLong=r("kotlin.kotlin.UShort.toLong",s((function(){var e=t.Long.fromInt(65535);return function(){return t.Long.fromInt(this.data).and(e)}}))),i_.prototype.toUByte=r("kotlin.kotlin.UShort.toUByte",s((function(){var n=t.toByte,i=e.kotlin.UByte;return function(){return new i(n(this.data))}}))),i_.prototype.toUShort=r("kotlin.kotlin.UShort.toUShort",(function(){return this})),i_.prototype.toUInt=r("kotlin.kotlin.UShort.toUInt",s((function(){var t=e.kotlin.UInt;return function(){return new t(65535&this.data)}}))),i_.prototype.toULong=r("kotlin.kotlin.UShort.toULong",s((function(){var n=t.Long.fromInt(65535),i=e.kotlin.ULong;return function(){return new i(t.Long.fromInt(this.data).and(n))}}))),i_.prototype.toFloat=r("kotlin.kotlin.UShort.toFloat",(function(){return 65535&this.data})),i_.prototype.toDouble=r("kotlin.kotlin.UShort.toDouble",(function(){return 65535&this.data})),i_.prototype.toString=function(){return(65535&this.data).toString()},i_.$metadata$={kind:o,simpleName:"UShort",interfaces:[R]},i_.prototype.unbox=function(){return this.data},i_.prototype.hashCode=function(){var e=0;return e=31*e+t.hashCode(this.data)|0},i_.prototype.equals=function(e){return this===e||null!==e&&"object"==typeof e&&Object.getPrototypeOf(this)===Object.getPrototypeOf(e)&&t.equals(this.data,e.data)},a_.prototype.get_za3lpa$=function(t){return new i_(this.storage[t])},a_.prototype.set_1pe3u2$=function(t,e){this.storage[t]=e.data},Object.defineProperty(a_.prototype,"size",{configurable:!0,get:function(){return this.storage.length}}),a_.prototype.iterator=function(){return new c_(this.storage)},c_.prototype.hasNext=function(){return this.index_0=0&&e<=cc(t)?t.get_za3lpa$(e):null},L_.first_7wnvza$=xt,L_.first_2p1efm$=It,L_.firstOrNull_2p1efm$=function(t){return t.isEmpty()?null:t.get_za3lpa$(0)},L_.indexOf_2ws7j4$=Ut,L_.indexOf_bv23uc$=function(t,e){return t.indexOf_11rb$(e)},L_.checkIndexOverflow_za3lpa$=xi,L_.last_7wnvza$=Dt,L_.last_2p1efm$=Pt,L_.lastOrNull_2p1efm$=function(t){return t.isEmpty()?null:t.get_za3lpa$(t.size-1|0)},L_.single_7wnvza$=Mt,L_.single_2p1efm$=kt,L_.singleOrNull_2p1efm$=function(t){return 1===t.size?t.get_za3lpa$(0):null},L_.drop_ba2ldo$=function(e,n){var i,o,r,s;if(!(n>=0))throw wn(("Requested element count "+n+" is less than zero.").toString());if(0===n)return Wt(e);if(t.isType(e,Oe)){var a=e.size-n|0;if(a<=0)return oc();if(1===a)return Ni(Dt(e));if(s=Qi(),t.isType(e,Ae)){if(t.isType(e,Go)){i=e.size;for(var c=n;c=n?s.add_11rb$(h):u=u+1|0}return lc(s)},L_.dropLast_yzln2o$=function(t,e){if(!(e>=0))throw wn(("Requested element count "+e+" is less than zero.").toString());return Gt(t,se(t.size-e|0,0))},L_.take_ba2ldo$=Gt,L_.filterNotNull_m3lr2h$=function(t){return jt(t,Yi())},L_.filterNotNullTo_u9kwcl$=jt,L_.slice_6bjbi1$=function(t,e){return e.isEmpty()?oc():Wt(t.subList_vux9f0$(e.start,e.endInclusive+1|0))},L_.toList_7wnvza$=Wt,L_.reversed_7wnvza$=function(e){if(t.isType(e,Oe)&&e.size<=1)return Wt(e);var n=Ht(e);return ii(n),n},L_.shuffle_9jeydg$=qt,L_.sortWith_nqfjgj$=Oi,L_.sorted_exjks8$=function(e){var n;if(t.isType(e,Oe)){if(e.size<=1)return Wt(e);var i=t.isArray(n=Si(e))?n:Jo();return ti(i),Yn(i)}var o=Ht(e);return wi(o),o},L_.sortedWith_eknfly$=function(e,n){var i;if(t.isType(e,Oe)){if(e.size<=1)return Wt(e);var o=t.isArray(i=Si(e))?i:Jo();return ei(o,n),Yn(o)}var r=Ht(e);return Oi(r,n),r},L_.toBooleanArray_xmyvgf$=function(e){var n,i,o=t.booleanArray(e.size),r=0;for(n=e.iterator();n.hasNext();){var s=n.next();o[(i=r,r=i+1|0,i)]=s}return o},L_.toCollection_5cfyqp$=Ft,L_.toHashSet_7wnvza$=Bt,L_.toMutableList_7wnvza$=Ht,L_.toMutableList_4c7yge$=Vt,L_.toSet_7wnvza$=Kt,L_.distinct_7wnvza$=function(t){return Wt(Xt(t))},L_.toMutableSet_7wnvza$=Xt,L_.Collection=Oe,L_.checkCountOverflow_za3lpa$=Ii,L_.maxOrNull_exjks8$=function(e){var n=e.iterator();if(!n.hasNext())return null;for(var i=n.next();n.hasNext();){var o=n.next();t.compareTo(i,o)<0&&(i=o)}return i},L_.minOrNull_exjks8$=Jt,L_.minus_q4559j$=function(t,e){var n=Xa(e,t);if(n.isEmpty())return Wt(t);var i,o=Yi();for(i=t.iterator();i.hasNext();){var r=i.next();n.contains_11rb$(r)||o.add_11rb$(r)}return o},L_.plus_qloxvw$=function(t,e){var n=Qi(t.size);return n.addAll_brywnq$(t),n.add_11rb$(e),n},L_.plus_drqvgf$=function(t,e){var n=Qi((t.size,e.length));return n.addAll_brywnq$(t),Uc(n,e),n},L_.plus_q4559j$=function(e,n){if(t.isType(e,Oe))return Yt(e,n);var i=Yi();return Ic(i,e),Ic(i,n),i},L_.plus_mydzjv$=Yt,L_.zip_45mdf7$=function(t,e){for(var n=t.iterator(),i=e.iterator(),o=Qi(d.min(fc(t,10),fc(e,10)));n.hasNext()&&i.hasNext();)o.add_11rb$(mp(n.next(),i.next()));return o},L_.joinTo_gcc71v$=Qt,L_.joinToString_fmv235$=Zt,L_.asSequence_7wnvza$=te;var O_=N_.comparisons||(N_.comparisons={});L_.toList_abgq59$=function(t){if(0===t.size)return oc();var e=t.entries.iterator();if(!e.hasNext())return oc();var n=e.next();if(!e.hasNext())return Ni(new _p(n.key,n.value));var i=Qi(t.size);i.add_11rb$(new _p(n.key,n.value));do{var o=e.next();i.add_11rb$(new _p(o.key,o.value))}while(e.hasNext());return i},L_.asSequence_abgq59$=function(t){return te(t.entries)};var R_=N_.text||(N_.text={});R_.titlecaseImpl_nupfqh$=ee,z_.ClosedRange=th,z_.contains_u6rtyw$=function(t,e){return t.contains_mef7kx$(e)},z_.contains_8sy4e8$=function(t,e){var n=oe(e);return null!=n&&t.contains_mef7kx$(n)},z_.downTo_dqglrj$=ne,z_.until_dqglrj$=re,z_.toIntExactOrNull_nzsbcz$=oe,z_.coerceAtMost_2p08ub$=function(t,e){return t.compareTo_11rb$(e)>0?e:t},z_.coerceIn_e4yvb3$=ce,z_.coerceIn_ekzx8g$=le,z_.coerceIn_nig4hr$=function(t,e,n){if(e>n)throw wn("Cannot coerce value to an empty range: maximum "+n+" is less than minimum "+e+".");return tn?n:t},z_.coerceIn_52zmhz$=ue,z_.coerceIn_k7ygy9$=he;var A_=N_.sequences||(N_.sequences={});A_.filter_euau3h$=function(t,e){return new il(t,!0,e)},A_.Sequence=Vc,A_.filterNot_euau3h$=pe,A_.filterNotNull_q2m9h7$=me,A_.take_wuwhe2$=fe,A_.toCollection_gtszxp$=ge,A_.toList_veqyi0$=$e,A_.toMutableList_veqyi0$=Ee,A_.flatMap_49vfel$=function(t,e){return new al(t,e,T("iterator",(function(t){return t.iterator()})))},A_.map_z5avom$=ye,A_.mapNotNull_qpz9h9$=function(t,e){return me(new rl(t,e))},A_.count_veqyi0$=function(t){var e,n=0;for(e=t.iterator();e.hasNext();)e.next(),Ii(n=n+1|0);return n},A_.asIterable_veqyi0$=be,L_.minus_khz7k3$=function(e,n){var i=Xa(n,e);if(i.isEmpty())return Kt(e);if(t.isType(i,Ie)){var o,r=Po();for(o=e.iterator();o.hasNext();){var s=o.next();i.contains_11rb$(s)||r.add_11rb$(s)}return r}var a=Mo(e);return a.removeAll_brywnq$(i),a},L_.plus_khz7k3$=function(t,e){var n,i,o=jo(null!=(i=null!=(n=mc(e))?t.size+n|0:null)?i:2*t.size|0);return o.addAll_brywnq$(t),Ic(o,e),o},R_.get_lastIndex_gw00vp$=Bh,R_.first_gw00vp$=function(t){if(0===t.length)throw new Gn("Char sequence is empty.");return t.charCodeAt(0)},R_.iterator_gw00vp$=qh,R_.get_indices_gw00vp$=Fh,R_.last_gw00vp$=Se,R_.single_gw00vp$=function(t){var e;switch(t.length){case 0:throw new Gn("Char sequence is empty.");case 1:e=t.charCodeAt(0);break;default:throw wn("Char sequence has more than one element.")}return e},R_.drop_6ic1pp$=ve,R_.dropLast_6ic1pp$=Ce,R_.StringBuilder_init=cs,R_.take_6ic1pp$=Ne,N_.UInt=vp,N_.ULong=Mp,N_.UByte=gp,N_.UShort=i_,L_.copyOf_c03ot6$=function(t,e){if(!(e>=0))throw wn(("Invalid new array size: "+e+".").toString());return Kn(t,new Int32Array(e))},L_.copyOf_3aefkx$=function(t,e){if(!(e>=0))throw wn(("Invalid new array size: "+e+".").toString());var n=Xn(t,e,h);return n.$type$="LongArray",n},L_.copyOf_mrm5p$=Qn,L_.copyOf_m2jy6x$=function(t,e){if(!(e>=0))throw wn(("Invalid new array size: "+e+".").toString());return Kn(t,new Int16Array(e))};var x_=N_.js||(N_.js={}),I_=N_.math||(N_.math={});Object.defineProperty(I_,"PI",{get:function(){return i}});var U_=N_.io||(N_.io={});N_.Annotation=Te,N_.CharSequence=Le,L_.Iterable=ze,L_.MutableIterable=we,L_.MutableCollection=Re,L_.List=Ae,L_.MutableList=xe,L_.Set=Ie,L_.MutableSet=Ue,De.Entry=Pe,L_.Map=De,Me.MutableEntry=ke,L_.MutableMap=Me,L_.Iterator=je,L_.MutableIterator=Ge,L_.ListIterator=qe,L_.MutableListIterator=Fe,Object.defineProperty(N_,"Unit",{get:He}),e.arrayIterator=function(t,e){if(null==e)return new Ve(t);switch(e){case"BooleanArray":return Xe(t);case"ByteArray":return Ye(t);case"ShortArray":return Ze(t);case"CharArray":return en(t);case"IntArray":return on(t);case"LongArray":return un(t);case"FloatArray":return sn(t);case"DoubleArray":return cn(t);default:throw Rn("Unsupported type argument for arrayIterator: "+C(e))}},e.booleanArrayIterator=Xe,e.byteArrayIterator=Ye,e.shortArrayIterator=Ze,e.charArrayIterator=en,e.intArrayIterator=on,e.floatArrayIterator=sn,e.doubleArrayIterator=cn,e.longArrayIterator=un,e.PropertyMetadata=hn,e.noWhenBranchMatched=function(){throw Wn()},e.subSequence=function(t,e,n){return"string"==typeof t?t.substring(e,n):t.subSequence_vux9f0$(e,n)},e.captureStack=function(t,e){Error.captureStackTrace?Error.captureStackTrace(e):e.stack=(new Error).stack},e.newThrowable=function(t,e){var n,i=new Error;return n=a(typeof t,"undefined")?null!=e?e.toString():null:t,i.message=n,i.cause=e,i.name="Throwable",i},e.BoxedChar=dn,e.charArrayOf=function(){var t="CharArray",e=new Uint16Array(arguments);return e.$type$=t,e};var D_=N_.coroutines||(N_.coroutines={});D_.CoroutineImpl=pn,Object.defineProperty(D_,"CompletedContinuation",{get:fn});var P_=D_.intrinsics||(D_.intrinsics={});P_.createCoroutineUnintercepted_x18nsh$=$n,P_.createCoroutineUnintercepted_3a617i$=En,P_.intercepted_f9mg25$=yn,N_.Error_init_pdl1vj$=Sn,N_.Error=bn,N_.Exception_init=function(t){return t=t||Object.create(vn.prototype),vn.call(t,null,null),t},N_.Exception_init_pdl1vj$=Cn,N_.Exception=vn,N_.RuntimeException_init_pdl1vj$=Tn,N_.RuntimeException=Nn,N_.IllegalArgumentException_init=zn,N_.IllegalArgumentException=Ln,N_.IllegalStateException_init=function(t){return t=t||Object.create(On.prototype),On.call(t,null,null),t},N_.IllegalStateException_init_pdl1vj$=Rn,N_.IllegalStateException=On,N_.IndexOutOfBoundsException_init=function(t){return t=t||Object.create(An.prototype),An.call(t,null),t},N_.IndexOutOfBoundsException=An,N_.UnsupportedOperationException_init=In,N_.UnsupportedOperationException=xn,N_.NumberFormatException=Dn,N_.NullPointerException=Pn,N_.ClassCastException=Mn,N_.AssertionError_init_pdl1vj$=jn,N_.AssertionError=kn,N_.NoSuchElementException=Gn,N_.ArithmeticException=Fn,N_.NoWhenBranchMatchedException_init=Wn,N_.NoWhenBranchMatchedException=Bn,N_.UninitializedPropertyAccessException_init_pdl1vj$=Vn,N_.UninitializedPropertyAccessException=Hn,N_.lazy_klfg04$=function(t){return new op(t)},N_.lazy_kls4a0$=function(t,e){return new op(e)},N_.fillFrom_dgzutr$=Kn,N_.arrayCopyResize_xao4iu$=Xn,e.findAssociatedObject_yjf3nl$=function(t,e){return null},R_.toString_if0zpk$=Jn,L_.asList_us0mfu$=Yn,L_.arrayCopy=Ai,L_.copyOf_rblqex$=function(t,e){if(!(e>=0))throw wn(("Invalid new array size: "+e+".").toString());return Kn(t,new Float32Array(e))},L_.copyOf_xgrzbe$=function(t,e){if(!(e>=0))throw wn(("Invalid new array size: "+e+".").toString());return Kn(t,new Float64Array(e))},L_.copyOf_1qu12l$=function(t,e){if(!(e>=0))throw wn(("Invalid new array size: "+e+".").toString());var n=Xn(t,e,!1);return n.$type$="BooleanArray",n},L_.copyOf_gtcw5h$=function(e,n){if(!(n>=0))throw wn(("Invalid new array size: "+n+".").toString());var i=Kn(e,t.charArray(n));return i.$type$="CharArray",i},L_.copyOf_8ujjk8$=function(t,e){if(!(e>=0))throw wn(("Invalid new array size: "+e+".").toString());return Xn(t,e,null)},L_.copyOfRange_5f8l3u$=Zn,L_.fill_jfbbbd$=function(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=t.length),Da().checkRangeIndexes_cub51b$(n,i,t.length),t.fill(e,n,i)},L_.fill_6mk3ue$=function(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=t.length),Da().checkRangeIndexes_cub51b$(n,i,t.length),t.fill(e,n,i)},L_.fill_tpuxuu$=function(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=t.length),Da().checkRangeIndexes_cub51b$(n,i,t.length),t.fill(e,n,i)},L_.sort_pbinho$=ti,L_.toTypedArray_964n91$=function(t){return[].slice.call(t)},R_.decodeVarLenBase64_nwhqle$=ni,L_.reverse_vvxzk3$=ii,O_.maxOf_sdesaw$=oi,R_.binarySearchRange_wmnbas$=ci,R_.digitToIntImpl_nupfqh$=li,R_.isLowerCaseImpl_nupfqh$=pi,R_.isOtherLowercase_8e50z4$=$i,R_.titlecaseCharImpl_nupfqh$=Ei,R_.isWhitespaceImpl_nupfqh$=yi,N_.Comparator=bi,L_.copyToArray=Si,L_.copyToArrayImpl=vi,L_.copyToExistingArrayImpl=Ci,L_.setOf_mh5how$=Ti,L_.LinkedHashSet_init_287e2$=Po,L_.LinkedHashSet_init_ww73n8$=jo,L_.mapOf_x2b85n$=Li,L_.shuffle_vvxzk3$=zi,L_.shuffled_7wnvza$=function(t){var e=Ht(t);return zi(e),e},L_.sort_4wi501$=wi,L_.toMutableMap_abgq59$=Ac,L_.brittleContainsOptimizationEnabled_8be2vx$=Di,L_.AbstractMutableCollection=Pi,L_.AbstractMutableList=Mi,qi.SimpleEntry_init_trwmqg$=function(t,e){return e=e||Object.create(Fi.prototype),Fi.call(e,t.key,t.value),e},qi.SimpleEntry=Fi,qi.AbstractEntrySet=Bi,L_.AbstractMutableMap=qi,L_.AbstractMutableSet=Xi,L_.ArrayList_init_mqih57$=Zi,L_.ArrayList=Ji,L_.sortArrayWith_6xblhi$=to,L_.sortArray_5zbtrs$=no,Object.defineProperty(so,"HashCode",{get:po}),L_.EqualityComparator=so,L_.HashMap_init_va96d4$=fo,L_.HashMap_init_q3lmfv$=go,L_.HashMap_init_xf5xz2$=$o,L_.HashMap_init_bwtc7$=Eo,L_.HashMap_init_73mtqc$=function(t,e){return go(e=e||Object.create(_o.prototype)),e.putAll_a2k3zr$(t),e},L_.HashMap=_o,L_.HashSet_init_mqih57$=function(t,e){return e=e||Object.create(yo.prototype),Xi.call(e),yo.call(e),e.map_8be2vx$=Eo(t.size),e.addAll_brywnq$(t),e},L_.HashSet_init_2wofer$=bo,L_.HashSet_init_ww73n8$=So,L_.HashSet_init_nn01ho$=vo,L_.HashSet=yo,L_.InternalHashCodeMap=Co,L_.InternalMap=To,L_.InternalStringMap=Lo,L_.LinkedHashMap_init_xf5xz2$=xo,L_.LinkedHashMap_init_73mtqc$=Uo,L_.LinkedHashMap=zo,L_.LinkedHashSet_init_mqih57$=Mo,L_.LinkedHashSet_init_2wofer$=ko,L_.LinkedHashSet=Do,L_.RandomAccess=Go,U_.BaseOutput=qo,U_.NodeJsOutput=Fo,U_.BufferedOutput=Bo,U_.BufferedOutputToConsoleLog=Wo,U_.println=function(){co.println()},U_.println_s8jyv4$=function(t){co.println_s8jyv4$(t)},D_.SafeContinuation_init_wj8d80$=function(t,e){return e=e||Object.create(Ho.prototype),Ho.call(e,t,eu()),e},D_.SafeContinuation=Ho;var M_=D_.cancellation||(D_.cancellation={});M_.CancellationException_init_pdl1vj$=function(t,e){return Rn(t,e=e||Object.create(Vo.prototype)),Vo.call(e),e},M_.CancellationException_init_wspj0f$=function(t,e,n){return n=n||Object.create(Vo.prototype),On.call(n,t,e),Vo.call(n),n},M_.CancellationException=Vo;var k_=e.org||(e.org={}),j_=k_.w3c||(k_.w3c={});(j_.dom||(j_.dom={})).asList_kt9thq$=function(t){return new Xo(t)},e.throwNPE=function(t){throw new Pn(t)},e.throwCCE=Jo,e.throwISE=Yo,e.throwUPAE=function(t){throw Vn("lateinit property "+t+" has not been initialized")},U_.Serializable=Qo,x_.json_pyyo18$=function(t){var e,n={};for(e=0;e!==t.length;++e){var i=t[e],o=i.component1(),r=i.component2();n[o]=r}return n},I_.round_14dthe$=function(t){if(t%.5!=0)return Math.round(t);var e=d.floor(t);return e%2==0?e:d.ceil(t)},I_.nextDown_yrwdxr$=Zo,I_.roundToInt_yrwdxr$=tr,I_.roundToLong_yrwdxr$=er,I_.abs_za3lpa$=function(t){return t<0?0|-t:t},I_.get_sign_s8ev3n$=nr,I_.get_sign_mts6qi$=ir,N_.isNaN_yrwdxr$=or,N_.isNaN_81szk$=rr,N_.isInfinite_yrwdxr$=sr,N_.isInfinite_81szk$=ar,N_.isFinite_yrwdxr$=cr,N_.isFinite_81szk$=function(t){return!ar(t)&&!rr(t)},N_.countTrailingZeroBits_s8ev3n$=lr,N_.countTrailingZeroBits_mts6qi$=function(t){var e=t.getLowBits();return 0===e?32+lr(t.getHighBits())|0:lr(e)},w_.defaultPlatformRandom_8be2vx$=ur,w_.doubleFromParts_6xvm5r$=hr;var G_=N_.reflect||(N_.reflect={});x_.get_js_1yb8b7$=function(e){var n;return(t.isType(n=e,_r)?n:Jo()).jClass},G_.KCallable=dr,G_.KClass=pr;var q_=G_.js||(G_.js={}),F_=q_.internal||(q_.internal={});F_.KClassImpl=_r,F_.SimpleKClassImpl=mr,F_.PrimitiveKClassImpl=fr,Object.defineProperty(F_,"NothingKClassImpl",{get:Er}),F_.ErrorKClass=yr,G_.KProperty=br,G_.KMutableProperty=Sr,G_.KProperty0=vr,G_.KMutableProperty0=Cr,G_.KProperty1=Nr,G_.KMutableProperty1=Tr,G_.KType=Lr,e.createKType=function(t,e,n){return new zr(t,Yn(e),n)},e.markKTypeNullable=function(t){return new zr(A(t.classifier),t.arguments,!0)},F_.KTypeImpl=zr,Object.defineProperty(F_,"PrimitiveClasses",{get:Zr}),e.getKClass=ts,e.getKClassM=es,e.getKClassFromExpression=function(e){var n;switch(typeof e){case"string":n=Zr().stringClass;break;case"number":n=(0|e)===e?Zr().intClass:Zr().doubleClass;break;case"boolean":n=Zr().booleanClass;break;case"function":n=Zr().functionClass(e.length);break;default:if(t.isBooleanArray(e))n=Zr().booleanArrayClass;else if(t.isCharArray(e))n=Zr().charArrayClass;else if(t.isByteArray(e))n=Zr().byteArrayClass;else if(t.isShortArray(e))n=Zr().shortArrayClass;else if(t.isIntArray(e))n=Zr().intArrayClass;else if(t.isLongArray(e))n=Zr().longArrayClass;else if(t.isFloatArray(e))n=Zr().floatArrayClass;else if(t.isDoubleArray(e))n=Zr().doubleArrayClass;else if(t.isType(e,pr))n=ts(pr);else if(t.isArray(e))n=Zr().arrayClass;else{var i=Object.getPrototypeOf(e).constructor;n=i===Object?Zr().anyClass:i===Error?Zr().throwableClass:ns(i)}}return n},e.getKClass1=ns,x_.reset_xjqeni$=is,R_.Appendable=os,R_.CharacterCodingException=rs,R_.StringBuilder_init_za3lpa$=as,R_.StringBuilder=ss,R_.uppercaseChar_myv2d0$=ls,R_.titlecaseChar_myv2d0$=us,R_.isHighSurrogate_myv2d0$=hs,R_.isLowSurrogate_myv2d0$=ds,R_.isLowerCase_myv2d0$=function(t){return!!new Lu(97,122).contains_mef7kx$(t)||!(t<128)&&pi(t)},R_.isWhitespace_myv2d0$=ps,R_.toBoolean_5cw0du$=function(t){var e=null!=t;return e&&(e=a(t.toLowerCase(),"true")),e},R_.toByte_pdl1vz$=function(t){var e;return null!=(e=Lh(t))?e:Uh(t)},R_.toShort_pdl1vz$=function(t){var e;return null!=(e=wh(t))?e:Uh(t)},R_.toInt_pdl1vz$=_s,R_.toInt_6ic1pp$=function(t,e){var n;return null!=(n=Ah(t,e))?n:Uh(t)},R_.toLong_pdl1vz$=ms,R_.toDouble_pdl1vz$=fs,R_.toDoubleOrNull_pdl1vz$=function(t){var e=+t;return or(e)&&!$s(t)||0===e&&oa(t)?null:e},R_.toString_dqglrj$=gs,R_.checkRadix_za3lpa$=Es,R_.digitOf_xvg9q0$=ys,Object.defineProperty(bs,"IGNORE_CASE",{get:vs}),Object.defineProperty(bs,"MULTILINE",{get:Cs}),R_.RegexOption=bs,R_.MatchGroup=Ls,R_.get_bnt56j$=zs,Object.defineProperty(ws,"Companion",{get:Fs}),R_.Regex_init_sb3q2$=function(t,e,n){return n=n||Object.create(ws.prototype),ws.call(n,t,Ti(e)),n},R_.Regex_init_61zpoe$=Bs,R_.Regex=ws,R_.concatToString_355ntz$=Qs,R_.concatToString_wlitf7$=Zs,R_.decodeToString_964n91$=function(t){return da(t,0,t.length,!1)},R_.encodeToByteArray_pdl1vz$=function(t){return ha(t,0,t.length,!1)},R_.compareTo_7epoxm$=ta,R_.startsWith_7epoxm$=ea,R_.startsWith_3azpy2$=na,R_.endsWith_7epoxm$=ia,R_.isBlank_gw00vp$=oa,R_.equals_igcy3c$=function(t,e,n){var i;if(void 0===n&&(n=!1),null==t)return null==e;if(null==e)return!1;if(!n)return a(t,e);if(t.length!==e.length)return!1;i=t.length;for(var o=0;o=0))throw wn(("Count 'n' must be non-negative, but was "+e+".").toString());switch(e){case 0:n="";break;case 1:n=t.toString();break;default:var i="";if(0!==t.length)for(var o=t.toString(),r=e;1==(1&r)&&(i+=o),0!=(r>>>=1);)o+=o;return i}return n},R_.replace_680rmw$=function(t,e,n,i){return void 0===i&&(i=!1),t.replace(new RegExp(Fs().escape_61zpoe$(e),i?"gui":"gu"),Fs().nativeEscapeReplacement_y4putb$(n))},R_.replace_r2fvfm$=function(t,e,n,i){return void 0===i&&(i=!1),t.replace(new RegExp(Fs().escape_61zpoe$(String.fromCharCode(e)),i?"gui":"gu"),String.fromCharCode(n))},R_.encodeUtf8_eq9l2e$=ha,R_.decodeUtf8_bndkiu$=da,N_.stackTraceToString_dbl4o4$=pa,N_.printStackTrace_dbl4o4$=function(t){console.error(pa(t))},N_.addSuppressed_oh0dqn$=function(t,e){if(t!==e){var n=t._suppressed;null==n?t._suppressed=rc([e]):n.add_11rb$(e)}},N_.get_suppressedExceptions_dbl4o4$=_a;var B_=N_.time||(N_.time={});B_.formatToExactDecimals_coldnx$=fa,Object.defineProperty(ga,"NANOSECONDS",{get:Ea}),Object.defineProperty(ga,"MICROSECONDS",{get:ya}),Object.defineProperty(ga,"MILLISECONDS",{get:ba}),Object.defineProperty(ga,"SECONDS",{get:Sa}),Object.defineProperty(ga,"MINUTES",{get:va}),Object.defineProperty(ga,"HOURS",{get:Ca}),Object.defineProperty(ga,"DAYS",{get:Na}),B_.DurationUnit=ga,B_.convertDurationUnit_sgln0f$=Ta,B_.convertDurationUnitOverflow_qayl78$=La,B_.convertDurationUnit_qayl78$=za,L_.AbstractCollection=wa,Object.defineProperty(Oa,"Companion",{get:Da}),L_.AbstractList=Oa,Object.defineProperty(Pa,"Companion",{get:Ba}),L_.AbstractMap=Pa,Object.defineProperty(Wa,"Companion",{get:Ka}),L_.AbstractSet=Wa,L_.convertToSetForSetOperationWith_wo44v8$=Xa,Object.defineProperty(L_,"EmptyIterator",{get:Qa}),Object.defineProperty(L_,"EmptyList",{get:ec}),L_.asCollection_vj43ah$=nc,L_.listOf_i5x0yv$=function(t){return t.length>0?Yn(t):oc()},L_.mutableListOf_i5x0yv$=rc,L_.arrayListOf_i5x0yv$=sc,L_.get_indices_gzk92b$=ac,L_.optimizeReadOnlyList_qzupvv$=lc,O_.compareValues_s00gnj$=function(e,n){var i;return e===n?0:null==e?-1:null==n?1:t.compareTo(t.isComparable(i=e)?i:Jo(),n)},L_.throwIndexOverflow=uc,L_.throwCountOverflow=hc,L_.IndexedValue=pc,L_.IndexingIterable=_c,L_.collectionSizeOrNull_7wnvza$=mc,L_.flatten_u0ad8z$=function(t){var e,n=Yi();for(e=t.iterator();e.hasNext();)Ic(n,e.next());return n},L_.IndexingIterator=gc,L_.getOrImplicitDefault_t9ocha$=$c,L_.emptyMap_q3lmfv$=Nc,L_.mapOf_qfcya0$=function(t){return t.length>0?Rc(t,Io(t.length)):Nc()},L_.mutableMapOf_qfcya0$=function(t){var e=Io(t.length);return Lc(e,t),e},L_.hashMapOf_qfcya0$=Tc,L_.getValue_t9ocha$=function(t,e){return $c(t,e)},L_.putAll_5gv49o$=Lc,L_.putAll_cweazw$=zc,L_.toMap_6hr0sd$=wc,L_.toMap_jbpz7q$=Oc,L_.toMap_v2dak7$=function(t){switch(t.length){case 0:return Nc();case 1:return Li(t[0]);default:return Rc(t,Io(t.length))}},L_.toMap_ujwnei$=Rc,L_.toMap_abgq59$=function(t){switch(t.size){case 0:return Nc();case 1:default:return Ac(t)}},L_.plus_e8164j$=function(t,e){var n;if(t.isEmpty())n=Li(e);else{var i=Uo(t);i.put_xwzc9p$(e.first,e.second),n=i}return n},L_.plus_cm8adq$=function(t,e){var n;if(t.isEmpty())n=wc(e);else{var i=Uo(t);zc(i,e),n=i}return n},L_.plus_iwxh38$=function(t,e){var n=Uo(t);return n.putAll_a2k3zr$(e),n},L_.optimizeReadOnlyMap_1vp4qn$=xc,L_.addAll_ye1y7v$=Uc,L_.removeAll_uhyeqt$=Dc,L_.removeLast_vvxzk3$=function(t){if(t.isEmpty())throw new Gn("List is empty.");return t.removeAt_za3lpa$(cc(t))},L_.removeLastOrNull_vvxzk3$=function(t){return t.isEmpty()?null:t.removeAt_za3lpa$(cc(t))},L_.removeAll_qafx1e$=Mc,L_.ByteIterator=kc,L_.CharIterator=jc,L_.ShortIterator=Gc,L_.IntIterator=qc,L_.LongIterator=Fc,L_.FloatIterator=Bc,L_.DoubleIterator=Wc,L_.BooleanIterator=Hc,A_.sequence_o0x0bg$=Xc,A_.iterator_o0x0bg$=Jc,A_.SequenceScope=Yc,A_.emptySequence_287e2$=Zc,A_.FilteringSequence=il,A_.TransformingSequence=rl,A_.FlatteningSequence=al,A_.DropTakeSequence=ll,A_.SubSequence=ul,A_.TakeSequence=dl,A_.generateSequence_c6s9hp$=fl,Object.defineProperty(L_,"EmptySet",{get:El}),L_.emptySet_287e2$=yl,L_.setOf_i5x0yv$=function(t){return t.length>0?Lt(t):yl()},L_.hashSetOf_i5x0yv$=bl,L_.optimizeReadOnlySet_94kdbt$=Sl,O_.naturalOrder_dahdeg$=vl,D_.Continuation=wl,N_.Result=sp,D_.startCoroutine_x18nsh$=function(t,e){yn($n(t,e)).resumeWith_tl1gpc$(new sp(He()))},D_.startCoroutine_3a617i$=function(t,e,n){yn(En(t,e,n)).resumeWith_tl1gpc$(new sp(He()))},P_.get_COROUTINE_SUSPENDED=Yl,Object.defineProperty(Ol,"Key",{get:xl}),D_.ContinuationInterceptor=Ol,Il.Key=Dl,Il.Element=Pl,D_.CoroutineContext=Il,D_.AbstractCoroutineContextElement=Ml,D_.AbstractCoroutineContextKey=kl,Object.defineProperty(D_,"EmptyCoroutineContext",{get:ql}),D_.CombinedContext=Fl,Object.defineProperty(P_,"COROUTINE_SUSPENDED",{get:Yl}),Object.defineProperty(Ql,"COROUTINE_SUSPENDED",{get:tu}),Object.defineProperty(Ql,"UNDECIDED",{get:eu}),Object.defineProperty(Ql,"RESUMED",{get:nu}),P_.CoroutineSingletons=Ql,T_.getProgressionLastElement_qt1dr2$=au,T_.getProgressionLastElement_b9bd0d$=cu,(N_.properties||(N_.properties={})).ReadOnlyProperty=lu,Object.defineProperty(uu,"Default",{get:mu}),w_.Random_za3lpa$=fu,w_.Random_s8cxhz$=function(t){return Tu(t.toInt(),t.shiftRight(32).toInt())},w_.fastLog2_kcn2v3$=gu,w_.takeUpperBits_b6l1hq$=$u,w_.checkRangeBounds_6xvm5r$=Eu,w_.checkRangeBounds_cfj5zr$=yu,w_.checkRangeBounds_sdh6z7$=bu,w_.boundsErrorMessage_dgzutr$=Su,w_.XorWowRandom_init_6xvm5r$=Tu,w_.XorWowRandom=vu,Object.defineProperty(Lu,"Companion",{get:Ou}),z_.CharRange=Lu,Object.defineProperty(Ru,"Companion",{get:Iu}),z_.IntRange=Ru,Object.defineProperty(Uu,"Companion",{get:Mu}),z_.LongRange=Uu,z_.CharProgressionIterator=ku,z_.IntProgressionIterator=ju,z_.LongProgressionIterator=Gu,Object.defineProperty(qu,"Companion",{get:Wu}),z_.CharProgression=qu,Object.defineProperty(Hu,"Companion",{get:Xu}),z_.IntProgression=Hu,Object.defineProperty(Ju,"Companion",{get:Zu}),z_.LongProgression=Ju,z_.OpenEndRange=eh,z_.ClosedFloatingPointRange=oh,z_.rangeTo_38ydlf$=function(t,e){return new rh(t,e)},G_.KClassifier=sh,G_.KTypeParameter=ah,Object.defineProperty(ch,"Companion",{get:_h}),G_.KTypeProjection=ch,Object.defineProperty(mh,"INVARIANT",{get:gh}),Object.defineProperty(mh,"IN",{get:$h}),Object.defineProperty(mh,"OUT",{get:Eh}),G_.KVariance=mh,R_.appendElement_k2zgzt$=yh,R_.titlecase_myv2d0$=function(t){return ee(t)},R_.equals_4lte5s$=bh,R_.isSurrogate_myv2d0$=function(t){return new Lu(G.MIN_SURROGATE,G.MAX_SURROGATE).contains_mef7kx$(t)},R_.trimMargin_rjktp$=function(t,e){return void 0===e&&(e="|"),Sh(t,"",e)},R_.replaceIndentByMargin_j4ogox$=Sh,R_.trimIndent_pdl1vz$=function(t){return vh(t,"")},R_.replaceIndent_rjktp$=vh,R_.toByteOrNull_pdl1vz$=Lh,R_.toByteOrNull_6ic1pp$=zh,R_.toShortOrNull_pdl1vz$=wh,R_.toShortOrNull_6ic1pp$=Oh,R_.toIntOrNull_pdl1vz$=Rh,R_.toIntOrNull_6ic1pp$=Ah,R_.toLongOrNull_pdl1vz$=xh,R_.toLongOrNull_6ic1pp$=Ih,R_.numberFormatError_y4putb$=Uh,R_.trimStart_wqw3xr$=Dh,R_.trimEnd_wqw3xr$=Ph,R_.trim_gw00vp$=function(e){for(var n=0,i=e.length-1|0,o=!1;n<=i;){var r=o?i:n,s=ps(l(c(e.charCodeAt(r))));if(o){if(!s)break;i=i-1|0}else s?n=n+1|0:o=!0}return t.subSequence(e,n,i+1|0)},R_.padStart_yk9sg4$=Mh,R_.padStart_vrc1nu$=kh,R_.padEnd_yk9sg4$=jh,R_.padEnd_vrc1nu$=function(e,n,i){var o;return void 0===i&&(i=32),jh(t.isCharSequence(o=e)?o:Jo(),n,i).toString()},R_.substring_fc3b62$=function(t,e){return t.substring(e.start,e.endInclusive+1|0)},R_.substring_i511yc$=Wh,R_.substringBefore_8cymmc$=function(t,e,n){void 0===n&&(n=t);var i=td(t,e);return-1===i?n:t.substring(0,i)},R_.substringBefore_j4ogox$=function(t,e,n){void 0===n&&(n=t);var i=ed(t,e);return-1===i?n:t.substring(0,i)},R_.substringAfter_j4ogox$=function(t,e,n){void 0===n&&(n=t);var i=ed(t,e);return-1===i?n:t.substring(i+e.length|0,t.length)},R_.substringBeforeLast_j4ogox$=function(t,e,n){void 0===n&&(n=t);var i=nd(t,e);return-1===i?n:t.substring(0,i)},R_.substringAfterLast_j4ogox$=function(t,e,n){void 0===n&&(n=t);var i=nd(t,e);return-1===i?n:t.substring(i+e.length|0,t.length)},R_.removePrefix_gsj5wt$=function(t,e){return Xh(t,e)?t.substring(e.length):t},R_.removeSuffix_gsj5wt$=function(t,e){return Jh(t,e)?t.substring(0,t.length-e.length|0):t},R_.regionMatchesImpl_4c7s8r$=Hh,R_.startsWith_sgbm27$=Vh,R_.endsWith_sgbm27$=Kh,R_.startsWith_li3zpu$=Xh,R_.endsWith_li3zpu$=Jh,R_.indexOfAny_junqau$=Yh,R_.lastIndexOfAny_junqau$=Qh,R_.indexOf_8eortd$=td,R_.indexOf_l5u8uk$=ed,R_.lastIndexOf_8eortd$=function(e,n,i,o){return void 0===i&&(i=Bh(e)),void 0===o&&(o=!1),o||"string"!=typeof e?Qh(e,t.charArrayOf(n),i,o):e.lastIndexOf(String.fromCharCode(n),i)},R_.lastIndexOf_l5u8uk$=nd,R_.contains_li3zpu$=function(t,e,n){return void 0===n&&(n=!1),"string"==typeof e?ed(t,e,void 0,n)>=0:Zh(t,e,0,t.length,n)>=0},R_.contains_sgbm27$=id,R_.requireNonNegativeLimit_kcn2v3$=ld,R_.splitToSequence_ip8yn$=ud,R_.split_ip8yn$=function(t,e,n,i){if(void 0===n&&(n=!1),void 0===i&&(i=0),1===e.length){var o=e[0];if(0!==o.length)return hd(t,o,n,i)}var r,s=be(cd(t,e,void 0,n,i)),a=Qi(fc(s,10));for(r=s.iterator();r.hasNext();){var c=r.next();a.add_11rb$(Wh(t,c))}return a},R_.split_o64adg$=function(t,e,n,i){if(void 0===n&&(n=!1),void 0===i&&(i=0),1===e.length)return hd(t,String.fromCharCode(e[0]),n,i);var o,r=be(sd(t,e,void 0,n,i)),s=Qi(fc(r,10));for(o=r.iterator();o.hasNext();){var a=o.next();s.add_11rb$(Wh(t,a))}return s},R_.lineSequence_gw00vp$=dd,R_.lines_gw00vp$=pd,Object.defineProperty(R_,"Typography",{get:function(){return null===md&&new _d,md}}),R_.MatchGroupCollection=fd,R_.MatchNamedGroupCollection=gd,$d.Destructured=Ed,R_.MatchResult=$d,B_.toDuration_14orw9$=Rd,B_.toDuration_rrkdm6$=Ad,B_.toDuration_n769wd$=xd,Object.defineProperty(yd,"Companion",{get:Od}),B_.Duration=yd,B_.shortName_d5gje$=qd,B_.durationUnitByShortName_y4putb$=Fd,B_.durationUnitByIsoChar_4b3kw1$=Bd,N_.DeepRecursiveFunction=Hd,N_.invoke_ifme6c$=function(t,e){return new Kd(t.block_8be2vx$,e).runCallLoop()},N_.DeepRecursiveScope=Vd,N_.Lazy=Xd,Object.defineProperty(Jd,"SYNCHRONIZED",{get:Qd}),Object.defineProperty(Jd,"PUBLICATION",{get:Zd}),Object.defineProperty(Jd,"NONE",{get:tp}),N_.LazyThreadSafetyMode=Jd,Object.defineProperty(N_,"UNINITIALIZED_VALUE",{get:ip}),N_.UnsafeLazyImpl=op,N_.InitializedLazyImpl=rp,N_.createFailure_tcv7n7$=hp,Object.defineProperty(sp,"Companion",{get:lp}),sp.Failure=up,N_.throwOnFailure_iacion$=dp,N_.NotImplementedError=pp,N_.Pair=_p,N_.to_ujzrz7$=mp,N_.Triple=fp,Object.defineProperty(gp,"Companion",{get:yp}),N_.UByteArray_init_za3lpa$=function(t,e){return e=e||Object.create(bp.prototype),bp.call(e,new Int8Array(t)),e},N_.UByteArray=bp,Object.defineProperty(vp,"Companion",{get:Tp}),N_.uintCompare_vux9f0$=g_,N_.uintDivide_oqfnby$=E_,N_.uintRemainder_oqfnby$=y_,N_.uintToDouble_za3lpa$=function(t){return(2147483647&t)+2*(t>>>31<<30)},N_.UIntArray_init_za3lpa$=function(t,e){return e=e||Object.create(Lp.prototype),Lp.call(e,new Int32Array(t)),e},N_.UIntArray=Lp,Object.defineProperty(wp,"Companion",{get:Ap}),z_.UIntRange=wp,Object.defineProperty(xp,"Companion",{get:Dp}),z_.UIntProgression=xp,Object.defineProperty(Mp,"Companion",{get:Gp}),N_.ulongCompare_3pjtqy$=$_,N_.ulongDivide_jpm79w$=b_,N_.ulongRemainder_jpm79w$=S_,N_.ulongToDouble_s8cxhz$=function(t){return 2048*t.shiftRightUnsigned(11).toNumber()+t.and(at).toNumber()},N_.ULongArray_init_za3lpa$=function(e,n){return n=n||Object.create(qp.prototype),qp.call(n,t.longArray(e)),n},N_.ULongArray=qp,Object.defineProperty(Bp,"Companion",{get:Vp}),z_.ULongRange=Bp,Object.defineProperty(Kp,"Companion",{get:Yp}),z_.ULongProgression=Kp,T_.getProgressionLastElement_fjk8us$=e_,T_.getProgressionLastElement_15zasp$=n_,Object.defineProperty(i_,"Companion",{get:s_}),N_.UShortArray_init_za3lpa$=function(t,e){return e=e||Object.create(a_.prototype),a_.call(e,new Int16Array(t)),e},N_.UShortArray=a_,R_.toString_aogav3$=function(t,e){return gs(255&t.data,e)},R_.toUByte_pdl1vz$=function(t){var e;return null!=(e=l_(t))?e:Uh(t)},R_.toUShort_pdl1vz$=function(t){var e;return null!=(e=h_(t))?e:Uh(t)},R_.toUInt_pdl1vz$=function(t){var e;return null!=(e=p_(t))?e:Uh(t)},R_.toULong_pdl1vz$=function(t){var e;return null!=(e=m_(t))?e:Uh(t)},R_.toUByteOrNull_pdl1vz$=l_,R_.toUByteOrNull_6ic1pp$=u_,R_.toUShortOrNull_pdl1vz$=h_,R_.toUShortOrNull_6ic1pp$=d_,R_.toUIntOrNull_pdl1vz$=p_,R_.toUIntOrNull_6ic1pp$=__,R_.toULongOrNull_pdl1vz$=m_,R_.toULongOrNull_6ic1pp$=f_,N_.ulongToString_8e33dg$=v_,N_.ulongToString_plstum$=C_,Me.prototype.getOrDefault_xwzc9p$=De.prototype.getOrDefault_xwzc9p$,Pa.prototype.getOrDefault_xwzc9p$=De.prototype.getOrDefault_xwzc9p$,qi.prototype.remove_xwzc9p$=Me.prototype.remove_xwzc9p$,Co.prototype.createJsMap=To.prototype.createJsMap,Lo.prototype.createJsMap=To.prototype.createJsMap,Object.defineProperty(Ws.prototype,"destructured",Object.getOwnPropertyDescriptor($d.prototype,"destructured")),Ec.prototype.getOrDefault_xwzc9p$=De.prototype.getOrDefault_xwzc9p$,yc.prototype.remove_xwzc9p$=Me.prototype.remove_xwzc9p$,yc.prototype.getOrDefault_xwzc9p$=Me.prototype.getOrDefault_xwzc9p$,Ec.prototype.getOrDefault_xwzc9p$,bc.prototype.remove_xwzc9p$=yc.prototype.remove_xwzc9p$,bc.prototype.getOrDefault_xwzc9p$=yc.prototype.getOrDefault_xwzc9p$,Sc.prototype.getOrDefault_xwzc9p$=De.prototype.getOrDefault_xwzc9p$,Pl.prototype.plus_1fupul$=Il.prototype.plus_1fupul$,Ol.prototype.fold_3cc69b$=Pl.prototype.fold_3cc69b$,Ol.prototype.plus_1fupul$=Pl.prototype.plus_1fupul$,Ml.prototype.get_j3r2sn$=Pl.prototype.get_j3r2sn$,Ml.prototype.fold_3cc69b$=Pl.prototype.fold_3cc69b$,Ml.prototype.minusKey_yeqjby$=Pl.prototype.minusKey_yeqjby$,Ml.prototype.plus_1fupul$=Pl.prototype.plus_1fupul$,Fl.prototype.plus_1fupul$=Il.prototype.plus_1fupul$,nh.prototype.contains_mef7kx$=th.prototype.contains_mef7kx$,nh.prototype.isEmpty=th.prototype.isEmpty,ih.prototype.contains_mef7kx$=eh.prototype.contains_mef7kx$,ih.prototype.isEmpty=eh.prototype.isEmpty,i=3.141592653589793,mi=null;var W_=void 0!==n&&n.versions&&!!n.versions.node;co=W_?new Fo(n.stdout):new Wo,new Ko(ql(),(function(e){var n;return dp(e),null==(n=e.value)||t.isType(n,x)||N(),Be})),lo=d.pow(2,-26),uo=d.pow(2,-53),Xr=t.newArray(0,null),new bi((function(t,e){return ta(t,e,!0)})),xs=new Int8Array([m(239),m(191),m(189)]),Is=65533,Sd=it,vd=ot,Cd=rt,Nd=new sp(Yl())}()})?i.apply(e,o):i)||(t.exports=r)}).call(this,n(37))},function(t,e,n){"use strict";n.r(e),n.d(e,"adaptV4Theme",(function(){return l})),n.d(e,"hexToRgb",(function(){return u.h})),n.d(e,"rgbToHex",(function(){return u.l})),n.d(e,"hslToRgb",(function(){return u.i})),n.d(e,"decomposeColor",(function(){return u.d})),n.d(e,"recomposeColor",(function(){return u.k})),n.d(e,"getContrastRatio",(function(){return u.f})),n.d(e,"getLuminance",(function(){return u.g})),n.d(e,"emphasize",(function(){return u.e})),n.d(e,"alpha",(function(){return u.a})),n.d(e,"darken",(function(){return u.c})),n.d(e,"lighten",(function(){return u.j})),n.d(e,"css",(function(){return h.b})),n.d(e,"keyframes",(function(){return h.c})),n.d(e,"experimental_sx",(function(){return p})),n.d(e,"createTheme",(function(){return _.b})),n.d(e,"createMuiTheme",(function(){return _.a})),n.d(e,"unstable_createMuiStrictModeTheme",(function(){return f})),n.d(e,"createStyles",(function(){return $})),n.d(e,"unstable_getUnit",(function(){return E.d})),n.d(e,"unstable_toUnitless",(function(){return E.g})),n.d(e,"responsiveFontSizes",(function(){return b})),n.d(e,"duration",(function(){return S.b})),n.d(e,"easing",(function(){return S.c})),n.d(e,"useTheme",(function(){return v.default})),n.d(e,"useThemeProps",(function(){return C.a})),n.d(e,"styled",(function(){return N.a})),n.d(e,"experimentalStyled",(function(){return N.a})),n.d(e,"ThemeProvider",(function(){return T.a})),n.d(e,"StyledEngineProvider",(function(){return L.a})),n.d(e,"makeStyles",(function(){return z})),n.d(e,"withStyles",(function(){return w})),n.d(e,"withTheme",(function(){return O})),n.d(e,"useColorScheme",(function(){return ot})),n.d(e,"getInitColorSchemeScript",(function(){return rt})),n.d(e,"shouldSkipGeneratingVar",(function(){return et})),n.d(e,"Experimental_CssVarsProvider",(function(){return it})),n.d(e,"experimental_extendTheme",(function(){return Z}));var i=n(1),o=n(5),r=n(719),s=n(718);const a=["defaultProps","mixins","overrides","palette","props","styleOverrides"],c=["type","mode"];function l(t){const{defaultProps:e={},mixins:n={},overrides:l={},palette:u={},props:h={},styleOverrides:d={}}=t,p=Object(o.a)(t,a),_=Object(i.a)({},p,{components:{}});Object.keys(e).forEach(t=>{const n=_.components[t]||{};n.defaultProps=e[t],_.components[t]=n}),Object.keys(h).forEach(t=>{const e=_.components[t]||{};e.defaultProps=h[t],_.components[t]=e}),Object.keys(d).forEach(t=>{const e=_.components[t]||{};e.styleOverrides=d[t],_.components[t]=e}),Object.keys(l).forEach(t=>{const e=_.components[t]||{};e.styleOverrides=l[t],_.components[t]=e}),_.spacing=Object(r.a)(t.spacing);const m=Object(s.a)(t.breakpoints||{}),f=_.spacing;_.mixins=Object(i.a)({gutters:(t={})=>Object(i.a)({paddingLeft:f(2),paddingRight:f(2)},t,{[m.up("sm")]:Object(i.a)({paddingLeft:f(3),paddingRight:f(3)},t[m.up("sm")])})},n);const{type:g,mode:$}=u,E=Object(o.a)(u,c),y=$||g||"light";return _.palette=Object(i.a)({text:{hint:"dark"===y?"rgba(255, 255, 255, 0.5)":"rgba(0, 0, 0, 0.38)"},mode:y,type:y},E),_}var u=n(28),h=n(54),d=n(1056);var p=function(t){return({theme:e})=>Object(d.a)({sx:t,theme:e})},_=n(104),m=n(227);function f(t,...e){return Object(_.b)(Object(m.a)({unstable_strictMode:!0},t),...e)}let g=!1;function $(t){return g||(console.warn(["MUI: createStyles from @mui/material/styles is deprecated.","Please use @mui/styles/createStyles"].join("\n")),g=!0),t}var E=n(110),y=n(274);function b(t,e={}){const{breakpoints:n=["sm","md","lg"],disableAlign:o=!1,factor:r=2,variants:s=["h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","caption","button","overline"]}=e,a=Object(i.a)({},t);a.typography=Object(i.a)({},a.typography);const c=a.typography,l=Object(E.b)(c.htmlFontSize),u=n.map(t=>a.breakpoints.values[t]);return s.forEach(t=>{const e=c[t],n=parseFloat(l(e.fontSize,"rem"));if(n<=1)return;const s=n,a=1+(s-1)/r;let{lineHeight:h}=e;if(!Object(E.e)(h)&&!o)throw new Error(Object(y.a)(6));Object(E.e)(h)||(h=parseFloat(l(h,"rem"))/parseFloat(n));let d=null;o||(d=t=>Object(E.a)({size:t,grid:Object(E.c)({pixels:4,lineHeight:h,htmlFontSize:c.htmlFontSize})})),c[t]=Object(i.a)({},e,Object(E.f)({cssProperty:"fontSize",min:a,max:s,unit:"rem",breakpoints:u,transform:d}))}),a}var S=n(162),v=n(19),C=n(7),N=n(3),T=n(667),L=n(1059);function z(){throw new Error(Object(y.a)(14))}function w(){throw new Error(Object(y.a)(15))}function O(){throw new Error(Object(y.a)(16))}var R=n(23),A=n(47),x=n(0),I=n(1022);const U=(t,e,n,i=[])=>{let o=t;e.forEach((t,r)=>{r===e.length-1?Array.isArray(o)?o[Number(t)]=n:o&&"object"==typeof o&&(o[t]=n):o&&"object"==typeof o&&(o[t]||(o[t]=i.includes(t)?[]:{}),o=o[t])})},D=(t,e)=>{if("number"==typeof e){if(["lineHeight","fontWeight","opacity","zIndex"].some(e=>t.includes(e)))return e;return t[t.length-1].toLowerCase().indexOf("opacity")>=0?e:e+"px"}return e};function P(t,e){const{prefix:n,shouldSkipGeneratingVar:i}=e||{},o={},r={},s={};var a,c;return a=(t,e,a)=>{if(("string"==typeof e||"number"==typeof e)&&(!i||i&&!i(t,e))){const i=`--${n?n+"-":""}${t.join("-")}`;Object.assign(o,{[i]:D(t,e)}),U(r,t,`var(${i})`,a)}U(s,t,e,a)},c=t=>"vars"===t[0],function t(e,n=[],i=[]){Object.entries(e).forEach(([e,o])=>{(!c||c&&!c([...n,e]))&&null!=o&&("object"==typeof o&&Object.keys(o).length>0?t(o,[...n,e],Array.isArray(o)?[...i,e]:i):a([...n,e],o,i))})}(t),{css:o,vars:r,parsedTheme:s}}var M=n(2);const k="mode",j="color-scheme",G="data-color-scheme";function q(t){if("undefined"!=typeof window&&"system"===t){return window.matchMedia("(prefers-color-scheme: dark)").matches?"dark":"light"}}function F(t,e){return"light"===t.mode||"system"===t.mode&&"light"===t.systemMode?e("light"):"dark"===t.mode||"system"===t.mode&&"dark"===t.systemMode?e("dark"):void 0}function B(t,e){if("undefined"==typeof window)return;let n;try{n=localStorage.getItem(t)||void 0,n||localStorage.setItem(t,e)}catch(t){}return n||e}function W(t){const{defaultMode:e="light",defaultLightColorScheme:n,defaultDarkColorScheme:i,supportedColorSchemes:o=[],modeStorageKey:r=k,colorSchemeStorageKey:s=j,storageWindow:a=("undefined"==typeof window?void 0:window)}=t,c=o.join(","),[l,u]=x.useState(()=>{const t=B(r,e),o=B(s+"-light",n),a=B(s+"-dark",i);return{mode:t,systemMode:q(t),lightColorScheme:o,darkColorScheme:a}}),h=function(t){return F(t,e=>"light"===e?t.lightColorScheme:"dark"===e?t.darkColorScheme:void 0)}(l),d=x.useCallback(t=>{u(n=>{if(t===n.mode)return n;const i=t||e;try{localStorage.setItem(r,i)}catch(t){}return Object(R.a)({},n,{mode:i,systemMode:q(i)})})},[r,e]),p=x.useCallback(t=>{t?"string"==typeof t?t&&!c.includes(t)?console.error(`\`${t}\` does not exist in \`theme.colorSchemes\`.`):u(e=>{const n=Object(R.a)({},e);return F(e,e=>{try{localStorage.setItem(`${s}-${e}`,t)}catch(t){}"light"===e&&(n.lightColorScheme=t),"dark"===e&&(n.darkColorScheme=t)}),n}):u(e=>{const o=Object(R.a)({},e),r=null===t.light?n:t.light,a=null===t.dark?i:t.dark;if(r)if(c.includes(r)){o.lightColorScheme=r;try{localStorage.setItem(s+"-light",r)}catch(t){}}else console.error(`\`${r}\` does not exist in \`theme.colorSchemes\`.`);if(a)if(c.includes(a)){o.darkColorScheme=a;try{localStorage.setItem(s+"-dark",a)}catch(t){}}else console.error(`\`${a}\` does not exist in \`theme.colorSchemes\`.`);return o}):u(t=>{try{localStorage.setItem(s+"-light",n),localStorage.setItem(s+"-dark",i)}catch(t){}return Object(R.a)({},t,{lightColorScheme:n,darkColorScheme:i})})},[c,s,n,i]),_=x.useCallback(t=>{"system"===l.mode&&u(e=>Object(R.a)({},e,{systemMode:null!=t&&t.matches?"dark":"light"}))},[l.mode]),m=x.useRef(_);return m.current=_,x.useEffect(()=>{const t=(...t)=>m.current(...t),e=window.matchMedia("(prefers-color-scheme: dark)");return e.addListener(t),t(e),()=>e.removeListener(t)},[]),x.useEffect(()=>{const t=t=>{const n=t.newValue;"string"!=typeof t.key||!t.key.startsWith(s)||n&&!c.match(n)||(t.key.endsWith("light")&&p({light:n}),t.key.endsWith("dark")&&p({dark:n})),t.key!==r||n&&!["light","dark","system"].includes(n)||d(n||e)};if(a)return a.addEventListener("storage",t),()=>a.removeEventListener("storage",t)},[p,d,r,s,c,e,a]),Object(R.a)({},l,{colorScheme:h,setMode:d,setColorScheme:p})}const H=["colorSchemes","components","cssVarPrefix"];function V(t=""){return(e,...n)=>`var(--${t?t+"-":""}${e}${function e(...n){if(!n.length)return"";const i=n[0];return"string"!=typeof i||i.match(/(#|\(|\)|(-?(\d*\.)?\d+)(px|em|%|ex|ch|rem|vw|vh|vmin|vmax|cm|mm|in|pt|pc))/)?", "+i:`, var(--${t?t+"-":""}${i}${e(...n.slice(1))})`}(...n)})`}var K=n(100);const X=["colorSchemes","cssVarPrefix"],J=["palette"],Y=[...Array(25)].map((t,e)=>{if(0===e)return;const n=Object(K.b)(e);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function Q(t,e,n){t[e]=t[e]||n}function Z(t={},...e){var n,r,s,a,c,l;const{colorSchemes:h={},cssVarPrefix:d="mui"}=t,p=Object(o.a)(t,X),f=((t="mui")=>V(t))(d),g=Object(_.b)(Object(i.a)({},p,h.light&&{palette:null==(n=h.light)?void 0:n.palette})),{palette:$}=g,E=Object(o.a)(g,J),{palette:y}=Object(_.b)({palette:Object(i.a)({mode:"dark"},null==(r=h.dark)?void 0:r.palette)});let b=Object(i.a)({},E,{cssVarPrefix:d,getCssVar:f,colorSchemes:Object(i.a)({},h,{light:Object(i.a)({},h.light,{palette:$,opacity:Object(i.a)({inputPlaceholder:.42,inputUnderline:.42,switchTrackDisabled:.12,switchTrack:.38},null==(s=h.light)?void 0:s.opacity),overlays:(null==(a=h.light)?void 0:a.overlays)||[]}),dark:Object(i.a)({},h.dark,{palette:y,opacity:Object(i.a)({inputPlaceholder:.5,inputUnderline:.7,switchTrackDisabled:.2,switchTrack:.3},null==(c=h.dark)?void 0:c.opacity),overlays:(null==(l=h.dark)?void 0:l.overlays)||Y})})});return Object.keys(b.colorSchemes).forEach(t=>{const e=b.colorSchemes[t].palette;var n;if("light"===t?(Q(e.common,"background","#fff"),Q(e.common,"onBackground","#000")):(Q(e.common,"background","#000"),Q(e.common,"onBackground","#fff")),n=e,["Alert","AppBar","Avatar","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"].forEach(t=>{n[t]||(n[t]={})}),"light"===t){Q(e.Alert,"errorColor",Object(u.c)(e.error.light,.6)),Q(e.Alert,"infoColor",Object(u.c)(e.info.light,.6)),Q(e.Alert,"successColor",Object(u.c)(e.success.light,.6)),Q(e.Alert,"warningColor",Object(u.c)(e.warning.light,.6)),Q(e.Alert,"errorFilledBg",f("palette-error-main")),Q(e.Alert,"infoFilledBg",f("palette-info-main")),Q(e.Alert,"successFilledBg",f("palette-success-main")),Q(e.Alert,"warningFilledBg",f("palette-warning-main")),Q(e.Alert,"errorFilledColor",$.getContrastText(e.error.main)),Q(e.Alert,"infoFilledColor",$.getContrastText(e.info.main)),Q(e.Alert,"successFilledColor",$.getContrastText(e.success.main)),Q(e.Alert,"warningFilledColor",$.getContrastText(e.warning.main)),Q(e.Alert,"errorStandardBg",Object(u.j)(e.error.light,.9)),Q(e.Alert,"infoStandardBg",Object(u.j)(e.info.light,.9)),Q(e.Alert,"successStandardBg",Object(u.j)(e.success.light,.9)),Q(e.Alert,"warningStandardBg",Object(u.j)(e.warning.light,.9)),Q(e.Alert,"errorIconColor",f("palette-error-light")),Q(e.Alert,"infoIconColor",f("palette-info-light")),Q(e.Alert,"successIconColor",f("palette-success-light")),Q(e.Alert,"warningIconColor",f("palette-warning-light")),Q(e.AppBar,"defaultBg",f("palette-grey-100")),Q(e.Avatar,"defaultBg",f("palette-grey-400")),Q(e.Chip,"defaultBorder",f("palette-grey-400")),Q(e.Chip,"defaultAvatarColor",f("palette-grey-700")),Q(e.Chip,"defaultIconColor",f("palette-grey-700")),Q(e.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),Q(e.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),Q(e.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),Q(e.LinearProgress,"primaryBg",Object(u.j)(e.primary.main,.62)),Q(e.LinearProgress,"secondaryBg",Object(u.j)(e.secondary.main,.62)),Q(e.LinearProgress,"errorBg",Object(u.j)(e.error.main,.62)),Q(e.LinearProgress,"infoBg",Object(u.j)(e.info.main,.62)),Q(e.LinearProgress,"successBg",Object(u.j)(e.success.main,.62)),Q(e.LinearProgress,"warningBg",Object(u.j)(e.warning.main,.62)),Q(e.Skeleton,"bg",`rgba(${f("palette-text-primaryChannel")} / 0.11)`),Q(e.Slider,"primaryTrack",Object(u.j)(e.primary.main,.62)),Q(e.Slider,"secondaryTrack",Object(u.j)(e.secondary.main,.62)),Q(e.Slider,"errorTrack",Object(u.j)(e.error.main,.62)),Q(e.Slider,"infoTrack",Object(u.j)(e.info.main,.62)),Q(e.Slider,"successTrack",Object(u.j)(e.success.main,.62)),Q(e.Slider,"warningTrack",Object(u.j)(e.warning.main,.62));const t=Object(u.e)(e.background.default,.8);Q(e.SnackbarContent,"bg",t),Q(e.SnackbarContent,"color",$.getContrastText(t)),Q(e.SpeedDialAction,"fabHoverBg",Object(u.e)(e.background.paper,.15)),Q(e.StepConnector,"border",f("palette-grey-400")),Q(e.StepContent,"border",f("palette-grey-400")),Q(e.Switch,"defaultColor",f("palette-common-white")),Q(e.Switch,"defaultDisabledColor",f("palette-grey-100")),Q(e.Switch,"primaryDisabledColor",Object(u.j)(e.primary.main,.62)),Q(e.Switch,"secondaryDisabledColor",Object(u.j)(e.secondary.main,.62)),Q(e.Switch,"errorDisabledColor",Object(u.j)(e.error.main,.62)),Q(e.Switch,"infoDisabledColor",Object(u.j)(e.info.main,.62)),Q(e.Switch,"successDisabledColor",Object(u.j)(e.success.main,.62)),Q(e.Switch,"warningDisabledColor",Object(u.j)(e.warning.main,.62)),Q(e.TableCell,"border",Object(u.j)(Object(u.a)(e.divider,1),.88)),Q(e.Tooltip,"bg",Object(u.a)(e.grey[700],.92))}else{Q(e.Alert,"errorColor",Object(u.j)(e.error.light,.6)),Q(e.Alert,"infoColor",Object(u.j)(e.info.light,.6)),Q(e.Alert,"successColor",Object(u.j)(e.success.light,.6)),Q(e.Alert,"warningColor",Object(u.j)(e.warning.light,.6)),Q(e.Alert,"errorFilledBg",f("palette-error-dark")),Q(e.Alert,"infoFilledBg",f("palette-info-dark")),Q(e.Alert,"successFilledBg",f("palette-success-dark")),Q(e.Alert,"warningFilledBg",f("palette-warning-dark")),Q(e.Alert,"errorFilledColor",y.getContrastText(e.error.dark)),Q(e.Alert,"infoFilledColor",y.getContrastText(e.info.dark)),Q(e.Alert,"successFilledColor",y.getContrastText(e.success.dark)),Q(e.Alert,"warningFilledColor",y.getContrastText(e.warning.dark)),Q(e.Alert,"errorStandardBg",Object(u.c)(e.error.light,.9)),Q(e.Alert,"infoStandardBg",Object(u.c)(e.info.light,.9)),Q(e.Alert,"successStandardBg",Object(u.c)(e.success.light,.9)),Q(e.Alert,"warningStandardBg",Object(u.c)(e.warning.light,.9)),Q(e.Alert,"errorIconColor",f("palette-error-main")),Q(e.Alert,"infoIconColor",f("palette-info-main")),Q(e.Alert,"successIconColor",f("palette-success-main")),Q(e.Alert,"warningIconColor",f("palette-warning-main")),Q(e.AppBar,"defaultBg",f("palette-grey-900")),Q(e.AppBar,"darkBg",f("palette-background-paper")),Q(e.AppBar,"darkColor",f("palette-text-primary")),Q(e.Avatar,"defaultBg",f("palette-grey-600")),Q(e.Chip,"defaultBorder",f("palette-grey-700")),Q(e.Chip,"defaultAvatarColor",f("palette-grey-300")),Q(e.Chip,"defaultIconColor",f("palette-grey-300")),Q(e.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),Q(e.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),Q(e.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),Q(e.LinearProgress,"primaryBg",Object(u.c)(e.primary.main,.5)),Q(e.LinearProgress,"secondaryBg",Object(u.c)(e.secondary.main,.5)),Q(e.LinearProgress,"errorBg",Object(u.c)(e.error.main,.5)),Q(e.LinearProgress,"infoBg",Object(u.c)(e.info.main,.5)),Q(e.LinearProgress,"successBg",Object(u.c)(e.success.main,.5)),Q(e.LinearProgress,"warningBg",Object(u.c)(e.warning.main,.5)),Q(e.Skeleton,"bg",`rgba(${f("palette-text-primaryChannel")} / 0.13)`),Q(e.Slider,"primaryTrack",Object(u.c)(e.primary.main,.5)),Q(e.Slider,"secondaryTrack",Object(u.c)(e.secondary.main,.5)),Q(e.Slider,"errorTrack",Object(u.c)(e.error.main,.5)),Q(e.Slider,"infoTrack",Object(u.c)(e.info.main,.5)),Q(e.Slider,"successTrack",Object(u.c)(e.success.main,.5)),Q(e.Slider,"warningTrack",Object(u.c)(e.warning.main,.5));const t=Object(u.e)(e.background.default,.98);Q(e.SnackbarContent,"bg",t),Q(e.SnackbarContent,"color",y.getContrastText(t)),Q(e.SpeedDialAction,"fabHoverBg",Object(u.e)(e.background.paper,.15)),Q(e.StepConnector,"border",f("palette-grey-600")),Q(e.StepContent,"border",f("palette-grey-600")),Q(e.Switch,"defaultColor",f("palette-grey-300")),Q(e.Switch,"defaultDisabledColor",f("palette-grey-600")),Q(e.Switch,"primaryDisabledColor",Object(u.c)(e.primary.main,.55)),Q(e.Switch,"secondaryDisabledColor",Object(u.c)(e.secondary.main,.55)),Q(e.Switch,"errorDisabledColor",Object(u.c)(e.error.main,.55)),Q(e.Switch,"infoDisabledColor",Object(u.c)(e.info.main,.55)),Q(e.Switch,"successDisabledColor",Object(u.c)(e.success.main,.55)),Q(e.Switch,"warningDisabledColor",Object(u.c)(e.warning.main,.55)),Q(e.TableCell,"border",Object(u.c)(Object(u.a)(e.divider,1),.68)),Q(e.Tooltip,"bg",Object(u.a)(e.grey[700],.92))}e.common.backgroundChannel=Object(u.b)(e.common.background),e.common.onBackgroundChannel=Object(u.b)(e.common.onBackground),e.dividerChannel=Object(u.b)(e.divider),Object.keys(e).forEach(t=>{const n=e[t];n.main&&(e[t].mainChannel=Object(u.b)(n.main)),n.light&&(e[t].lightChannel=Object(u.b)(n.light)),n.dark&&(e[t].darkChannel=Object(u.b)(n.dark)),n.contrastText&&(e[t].contrastTextChannel=Object(u.b)(n.contrastText)),n.primary&&(e[t].primaryChannel=Object(u.b)(n.primary)),n.secondary&&(e[t].secondaryChannel=Object(u.b)(n.secondary)),n.active&&(e[t].activeChannel=Object(u.b)(n.active)),n.selected&&(e[t].selectedChannel=Object(u.b)(n.selected))})}),b=e.reduce((t,e)=>Object(m.a)(t,e),b),b}var tt=n(336);const et=t=>{var e;return!!t[0].match(/(typography|mixins|breakpoints|direction|transitions)/)||"palette"===t[0]&&!(null==(e=t[1])||!e.match(/(mode|contrastThreshold|tonalOffset)/))},nt=Z(),{CssVarsProvider:it,useColorScheme:ot,getInitColorSchemeScript:rt}=function(t){const{theme:e={},attribute:n=G,modeStorageKey:i=k,colorSchemeStorageKey:o=j,defaultMode:r="light",defaultColorScheme:s,disableTransitionOnChange:a=!1,shouldSkipGeneratingVar:c,resolveTheme:l,excludeVariablesFromRoot:u}=t;(!e.colorSchemes||"string"==typeof s&&!e.colorSchemes[s]||"object"==typeof s&&!e.colorSchemes[null==s?void 0:s.light]||"object"==typeof s&&!e.colorSchemes[null==s?void 0:s.dark])&&console.error(`MUI: \`${s}\` does not exist in \`theme.colorSchemes\`.`);const h=x.createContext(void 0),d="string"==typeof s?s:s.light,p="string"==typeof s?s:s.dark;return{CssVarsProvider:function({children:t,theme:d=e,modeStorageKey:p=i,colorSchemeStorageKey:_=o,attribute:f=n,defaultMode:g=r,defaultColorScheme:$=s,disableTransitionOnChange:E=a,storageWindow:y=("undefined"==typeof window?void 0:window),documentNode:b=("undefined"==typeof document?void 0:document),colorSchemeNode:S=("undefined"==typeof document?void 0:document.documentElement),colorSchemeSelector:v=":root",shouldSkipGeneratingVar:C=c}){const N=x.useRef(!1),{colorSchemes:L={},components:z={},cssVarPrefix:w}=d,O=Object(A.a)(d,H),U=Object.keys(L),D="string"==typeof $?$:$.light,k="string"==typeof $?$:$.dark,{mode:j,setMode:G,systemMode:q,lightColorScheme:F,darkColorScheme:B,colorScheme:V,setColorScheme:K}=W({supportedColorSchemes:U,defaultLightColorScheme:D,defaultDarkColorScheme:k,modeStorageKey:p,colorSchemeStorageKey:_,defaultMode:g,storageWindow:y}),X=V||("dark"===(j||("system"===g?r:g))?k:D),{css:J,vars:Y,parsedTheme:Q}=P(O,{prefix:w,shouldSkipGeneratingVar:C});let Z=Object(R.a)({},Q,{components:z,colorSchemes:L,cssVarPrefix:w,vars:Y,getColorSchemeSelector:t=>`[${f}="${t}"] &`});const tt={},et={};return Object.entries(L).forEach(([t,e])=>{const{css:n,vars:i,parsedTheme:o}=P(e,{prefix:w,shouldSkipGeneratingVar:C});Z.vars=Object(m.a)(Z.vars,i),t===X&&(Z=Object(R.a)({},Z,o),Z.palette&&(Z.palette.colorScheme=t));if(t===("string"==typeof $?$:"dark"===g?$.dark:$.light)){if(u){const e={};u(w).forEach(t=>{e[t]=n[t],delete n[t]}),tt[`[${f}="${t}"]`]=e}tt[`${v}, [${f}="${t}"]`]=n}else et[`${":root"===v?"":v}[${f}="${t}"]`]=n}),x.useEffect(()=>{V&&S&&S.setAttribute(f,V)},[V,f,S]),x.useEffect(()=>{let t;if(E&&N.current&&b){const e=b.createElement("style");e.appendChild(b.createTextNode("*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}")),b.head.appendChild(e),window.getComputedStyle(b.body),t=setTimeout(()=>{b.head.removeChild(e)},1)}return()=>{clearTimeout(t)}},[V,E,b]),x.useEffect(()=>(N.current=!0,()=>{N.current=!1}),[]),Object(M.jsxs)(h.Provider,{value:{mode:j,systemMode:q,setMode:G,lightColorScheme:F,darkColorScheme:B,colorScheme:V,setColorScheme:K,allColorSchemes:U},children:[Object(M.jsx)(I.a,{styles:{[v]:J}}),Object(M.jsx)(I.a,{styles:tt}),Object(M.jsx)(I.a,{styles:et}),Object(M.jsx)(T.a,{theme:l?l(Z):Z,children:t})]})},useColorScheme:()=>{const t=x.useContext(h);if(!t)throw new Error(Object(y.a)(19));return t},getInitColorSchemeScript:t=>function(t){const{defaultMode:e="light",defaultLightColorScheme:n="light",defaultDarkColorScheme:i="dark",modeStorageKey:o=k,colorSchemeStorageKey:r=j,attribute:s=G,colorSchemeNode:a="document.documentElement"}=t||{};return Object(M.jsx)("script",{dangerouslySetInnerHTML:{__html:`(function() { try {\n var mode = localStorage.getItem('${o}') || '${e}';\n var cssColorScheme = mode;\n var colorScheme = '';\n if (mode === 'system') {\n // handle system mode\n var mql = window.matchMedia('(prefers-color-scheme: dark)');\n if (mql.matches) {\n cssColorScheme = 'dark';\n colorScheme = localStorage.getItem('${r}-dark') || '${i}';\n } else {\n cssColorScheme = 'light';\n colorScheme = localStorage.getItem('${r}-light') || '${n}';\n }\n }\n if (mode === 'light') {\n colorScheme = localStorage.getItem('${r}-light') || '${n}';\n }\n if (mode === 'dark') {\n colorScheme = localStorage.getItem('${r}-dark') || '${i}';\n }\n if (colorScheme) {\n ${a}.setAttribute('${s}', colorScheme);\n }\n } catch (e) {} })();`}})}(Object(R.a)({attribute:n,colorSchemeStorageKey:o,defaultMode:r,defaultLightColorScheme:d,defaultDarkColorScheme:p,modeStorageKey:i},t))}}({theme:nt,attribute:"data-mui-color-scheme",modeStorageKey:"mui-mode",colorSchemeStorageKey:"mui-color-scheme",defaultColorScheme:{light:"light",dark:"dark"},resolveTheme:t=>Object(i.a)({},t,{typography:Object(tt.a)(t.palette,t.typography)}),shouldSkipGeneratingVar:et})},function(t,e,n){t.exports=function(){"use strict";var t=Array.prototype.slice;function e(t,e){e&&(t.prototype=Object.create(e.prototype)),t.prototype.constructor=t}function n(t){return s(t)?t:q(t)}function i(t){return a(t)?t:F(t)}function o(t){return c(t)?t:B(t)}function r(t){return s(t)&&!l(t)?t:W(t)}function s(t){return!(!t||!t[h])}function a(t){return!(!t||!t[d])}function c(t){return!(!t||!t[p])}function l(t){return a(t)||c(t)}function u(t){return!(!t||!t[_])}e(i,n),e(o,n),e(r,n),n.isIterable=s,n.isKeyed=a,n.isIndexed=c,n.isAssociative=l,n.isOrdered=u,n.Keyed=i,n.Indexed=o,n.Set=r;var h="@@__IMMUTABLE_ITERABLE__@@",d="@@__IMMUTABLE_KEYED__@@",p="@@__IMMUTABLE_INDEXED__@@",_="@@__IMMUTABLE_ORDERED__@@",m={},f={value:!1},g={value:!1};function $(t){return t.value=!1,t}function E(t){t&&(t.value=!0)}function y(){}function b(t,e){e=e||0;for(var n=Math.max(0,t.length-e),i=new Array(n),o=0;o>>0;if(""+n!==e||4294967295===n)return NaN;e=n}return e<0?S(t)+e:e}function C(){return!0}function N(t,e,n){return(0===t||void 0!==n&&t<=-n)&&(void 0===e||void 0!==n&&e>=n)}function T(t,e){return z(t,e,0)}function L(t,e){return z(t,e,e)}function z(t,e,n){return void 0===t?n:t<0?Math.max(0,e+t):void 0===e?t:Math.min(e,t)}var w,O,R,A="function"==typeof Symbol&&Symbol.iterator,x=A||"@@iterator";function I(t){this.next=t}function U(t,e,n,i){var o=0===t?e:1===t?n:[e,n];return i?i.value=o:i={value:o,done:!1},i}function D(){return{value:void 0,done:!0}}function P(t){return!!j(t)}function M(t){return t&&"function"==typeof t.next}function k(t){var e=j(t);return e&&e.call(t)}function j(t){var e=t&&(A&&t[A]||t["@@iterator"]);if("function"==typeof e)return e}function G(t){return t&&"number"==typeof t.length}function q(t){return null==t?Y():s(t)?t.toSeq():function(t){var e=tt(t)||"object"==typeof t&&new V(t);if(!e)throw new TypeError("Expected Array or iterable object of values, or keyed object: "+t);return e}(t)}function F(t){return null==t?Y().toKeyedSeq():s(t)?a(t)?t.toSeq():t.fromEntrySeq():Q(t)}function B(t){return null==t?Y():s(t)?a(t)?t.entrySeq():t.toIndexedSeq():Z(t)}function W(t){return(null==t?Y():s(t)?a(t)?t.entrySeq():t:Z(t)).toSetSeq()}function H(t){this._array=t,this.size=t.length}function V(t){var e=Object.keys(t);this._object=t,this._keys=e,this.size=e.length}function K(t){this._iterable=t,this.size=t.length||t.size}function X(t){this._iterator=t,this._iteratorCache=[]}function J(t){return!(!t||!t["@@__IMMUTABLE_SEQ__@@"])}function Y(){return w||(w=new H([]))}function Q(t){var e=Array.isArray(t)?new H(t).fromEntrySeq():M(t)?new X(t).fromEntrySeq():P(t)?new K(t).fromEntrySeq():"object"==typeof t?new V(t):void 0;if(!e)throw new TypeError("Expected Array or iterable object of [k, v] entries, or keyed object: "+t);return e}function Z(t){var e=tt(t);if(!e)throw new TypeError("Expected Array or iterable object of values: "+t);return e}function tt(t){return G(t)?new H(t):M(t)?new X(t):P(t)?new K(t):void 0}function et(t,e,n,i){var o=t._cache;if(o){for(var r=o.length-1,s=0;s<=r;s++){var a=o[n?r-s:s];if(!1===e(a[1],i?a[0]:s,t))return s+1}return s}return t.__iterateUncached(e,n)}function nt(t,e,n,i){var o=t._cache;if(o){var r=o.length-1,s=0;return new I((function(){var t=o[n?r-s:s];return s++>r?{value:void 0,done:!0}:U(e,i?t[0]:s-1,t[1])}))}return t.__iteratorUncached(e,n)}function it(t,e){return e?function t(e,n,i,o){return Array.isArray(n)?e.call(o,i,B(n).map((function(i,o){return t(e,i,o,n)}))):rt(n)?e.call(o,i,F(n).map((function(i,o){return t(e,i,o,n)}))):n}(e,t,"",{"":t}):ot(t)}function ot(t){return Array.isArray(t)?B(t).map(ot).toList():rt(t)?F(t).map(ot).toMap():t}function rt(t){return t&&(t.constructor===Object||void 0===t.constructor)}function st(t,e){if(t===e||t!=t&&e!=e)return!0;if(!t||!e)return!1;if("function"==typeof t.valueOf&&"function"==typeof e.valueOf){if((t=t.valueOf())===(e=e.valueOf())||t!=t&&e!=e)return!0;if(!t||!e)return!1}return!("function"!=typeof t.equals||"function"!=typeof e.equals||!t.equals(e))}function at(t,e){if(t===e)return!0;if(!s(e)||void 0!==t.size&&void 0!==e.size&&t.size!==e.size||void 0!==t.__hash&&void 0!==e.__hash&&t.__hash!==e.__hash||a(t)!==a(e)||c(t)!==c(e)||u(t)!==u(e))return!1;if(0===t.size&&0===e.size)return!0;var n=!l(t);if(u(t)){var i=t.entries();return e.every((function(t,e){var o=i.next().value;return o&&st(o[1],t)&&(n||st(o[0],e))}))&&i.next().done}var o=!1;if(void 0===t.size)if(void 0===e.size)"function"==typeof t.cacheResult&&t.cacheResult();else{o=!0;var r=t;t=e,e=r}var h=!0,d=e.__iterate((function(e,i){if(n?!t.has(e):o?!st(e,t.get(i,m)):!st(t.get(i,m),e))return h=!1,!1}));return h&&t.size===d}function ct(t,e){if(!(this instanceof ct))return new ct(t,e);if(this._value=t,this.size=void 0===e?1/0:Math.max(0,e),0===this.size){if(O)return O;O=this}}function lt(t,e){if(!t)throw new Error(e)}function ut(t,e,n){if(!(this instanceof ut))return new ut(t,e,n);if(lt(0!==n,"Cannot step a Range by 0"),t=t||0,void 0===e&&(e=1/0),n=void 0===n?1:Math.abs(n),ei?{value:void 0,done:!0}:U(t,o,n[e?i-o++:o++])}))},e(V,F),V.prototype.get=function(t,e){return void 0===e||this.has(t)?this._object[t]:e},V.prototype.has=function(t){return this._object.hasOwnProperty(t)},V.prototype.__iterate=function(t,e){for(var n=this._object,i=this._keys,o=i.length-1,r=0;r<=o;r++){var s=i[e?o-r:r];if(!1===t(n[s],s,this))return r+1}return r},V.prototype.__iterator=function(t,e){var n=this._object,i=this._keys,o=i.length-1,r=0;return new I((function(){var s=i[e?o-r:r];return r++>o?{value:void 0,done:!0}:U(t,s,n[s])}))},V.prototype[_]=!0,e(K,B),K.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);var n=k(this._iterable),i=0;if(M(n))for(var o;!(o=n.next()).done&&!1!==t(o.value,i++,this););return i},K.prototype.__iteratorUncached=function(t,e){if(e)return this.cacheResult().__iterator(t,e);var n=k(this._iterable);if(!M(n))return new I(D);var i=0;return new I((function(){var e=n.next();return e.done?e:U(t,i++,e.value)}))},e(X,B),X.prototype.__iterateUncached=function(t,e){if(e)return this.cacheResult().__iterate(t,e);for(var n,i=this._iterator,o=this._iteratorCache,r=0;r=i.length){var e=n.next();if(e.done)return e;i[o]=e.value}return U(t,o,i[o++])}))},e(ct,B),ct.prototype.toString=function(){return 0===this.size?"Repeat []":"Repeat [ "+this._value+" "+this.size+" times ]"},ct.prototype.get=function(t,e){return this.has(t)?this._value:e},ct.prototype.includes=function(t){return st(this._value,t)},ct.prototype.slice=function(t,e){var n=this.size;return N(t,e,n)?this:new ct(this._value,L(e,n)-T(t,n))},ct.prototype.reverse=function(){return this},ct.prototype.indexOf=function(t){return st(this._value,t)?0:-1},ct.prototype.lastIndexOf=function(t){return st(this._value,t)?this.size:-1},ct.prototype.__iterate=function(t,e){for(var n=0;n1?" by "+this._step:"")+" ]"},ut.prototype.get=function(t,e){return this.has(t)?this._start+v(this,t)*this._step:e},ut.prototype.includes=function(t){var e=(t-this._start)/this._step;return e>=0&&e=0&&nn?{value:void 0,done:!0}:U(t,r++,s)}))},ut.prototype.equals=function(t){return t instanceof ut?this._start===t._start&&this._end===t._end&&this._step===t._step:at(this,t)},e(ht,n),e(dt,ht),e(pt,ht),e(_t,ht),ht.Keyed=dt,ht.Indexed=pt,ht.Set=_t;var mt="function"==typeof Math.imul&&-2===Math.imul(4294967295,2)?Math.imul:function(t,e){var n=65535&(t|=0),i=65535&(e|=0);return n*i+((t>>>16)*i+n*(e>>>16)<<16>>>0)|0};function ft(t){return t>>>1&1073741824|3221225471&t}function gt(t){if(!1===t||null==t)return 0;if("function"==typeof t.valueOf&&(!1===(t=t.valueOf())||null==t))return 0;if(!0===t)return 1;var e=typeof t;if("number"===e){var n=0|t;for(n!==t&&(n^=4294967295*t);t>4294967295;)n^=t/=4294967295;return ft(n)}if("string"===e)return t.length>Nt?function(t){var e=zt[t];return void 0===e&&(e=$t(t),Lt===Tt&&(Lt=0,zt={}),Lt++,zt[t]=e),e}(t):$t(t);if("function"==typeof t.hashCode)return t.hashCode();if("object"===e)return function(t){var e;if(St&&void 0!==(e=Et.get(t)))return e;if(void 0!==(e=t[Ct]))return e;if(!bt){if(void 0!==(e=t.propertyIsEnumerable&&t.propertyIsEnumerable[Ct]))return e;if(void 0!==(e=function(t){if(t&&t.nodeType>0)switch(t.nodeType){case 1:return t.uniqueID;case 9:return t.documentElement&&t.documentElement.uniqueID}}(t)))return e}if(e=++vt,1073741824&vt&&(vt=0),St)Et.set(t,e);else{if(void 0!==yt&&!1===yt(t))throw new Error("Non-extensible objects are not allowed as keys.");if(bt)Object.defineProperty(t,Ct,{enumerable:!1,configurable:!1,writable:!1,value:e});else if(void 0!==t.propertyIsEnumerable&&t.propertyIsEnumerable===t.constructor.prototype.propertyIsEnumerable)t.propertyIsEnumerable=function(){return this.constructor.prototype.propertyIsEnumerable.apply(this,arguments)},t.propertyIsEnumerable[Ct]=e;else{if(void 0===t.nodeType)throw new Error("Unable to set a non-enumerable property on object.");t[Ct]=e}}return e}(t);if("function"==typeof t.toString)return $t(t.toString());throw new Error("Value type "+e+" cannot be hashed.")}function $t(t){for(var e=0,n=0;n>>n),a=31&(0===n?i:i>>>n);return new Dt(e,1<>1&1431655765))+(t>>2&858993459))+(t>>4)&252645135,t+=t>>8,127&(t+=t>>16)}function te(t,e,n,i){var o=i?t:b(t);return o[e]=n,o}It[xt]=!0,It.delete=It.remove,It.removeIn=It.deleteIn,Ut.prototype.get=function(t,e,n,i){for(var o=this.entries,r=0,s=o.length;r=ee)return function(t,e,n,i){t||(t=new y);for(var o=new kt(t,gt(n),[n,i]),r=0;r>>t)),r=this.bitmap;return 0==(r&o)?i:this.nodes[Zt(r&o-1)].get(t+5,e,n,i)},Dt.prototype.update=function(t,e,n,i,o,r,s){void 0===n&&(n=gt(i));var a=31&(0===e?n:n>>>e),c=1<=ne)return function(t,e,n,i,o){for(var r=0,s=new Array(32),a=0;0!==n;a++,n>>>=1)s[a]=1&n?e[r++]:void 0;return s[i]=o,new Pt(t,r+1,s)}(t,d,l,a,_);if(u&&!_&&2===d.length&&Vt(d[1^h]))return d[1^h];if(u&&_&&1===d.length&&Vt(_))return _;var f=t&&t===this.ownerID,g=u?_?l:l^c:l|c,$=u?_?te(d,h,_,f):function(t,e,n){var i=t.length-1;if(n&&e===i)return t.pop(),t;for(var o=new Array(i),r=0,s=0;s>>t),r=this.nodes[o];return r?r.get(t+5,e,n,i):i},Pt.prototype.update=function(t,e,n,i,o,r,s){void 0===n&&(n=gt(i));var a=31&(0===e?n:n>>>e),c=o===m,l=this.nodes,u=l[a];if(c&&!u)return this;var h=Ht(u,t,e+5,n,i,o,r,s);if(h===u)return this;var d=this.count;if(u){if(!h&&--d0&&i<32?pe(0,i,5,null,new ce(n.toArray())):e.withMutations((function(t){t.setSize(i),n.forEach((function(e,n){return t.set(n,e)}))})))}function re(t){return!(!t||!t[se])}e(oe,pt),oe.of=function(){return this(arguments)},oe.prototype.toString=function(){return this.__toString("List [","]")},oe.prototype.get=function(t,e){if((t=v(this,t))>=0&&t=t.size||e<0)return t.withMutations((function(t){e<0?$e(t,e).set(0,n):$e(t,0,e+1).set(e,n)}));e+=t._origin;var i=t._tail,o=t._root,r=$(g);return e>=ye(t._capacity)?i=me(i,t.__ownerID,0,e,n,r):o=me(o,t.__ownerID,t._level,e,n,r),r.value?t.__ownerID?(t._root=o,t._tail=i,t.__hash=void 0,t.__altered=!0,t):pe(t._origin,t._capacity,t._level,o,i):t}(this,t,e)},oe.prototype.remove=function(t){return this.has(t)?0===t?this.shift():t===this.size-1?this.pop():this.splice(t,1):this},oe.prototype.insert=function(t,e){return this.splice(t,0,e)},oe.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=this._origin=this._capacity=0,this._level=5,this._root=this._tail=null,this.__hash=void 0,this.__altered=!0,this):_e()},oe.prototype.push=function(){var t=arguments,e=this.size;return this.withMutations((function(n){$e(n,0,e+t.length);for(var i=0;i>>e&31;if(i>=this.array.length)return new ce([],t);var o,r=0===i;if(e>0){var s=this.array[i];if((o=s&&s.removeBefore(t,e-5,n))===s&&r)return this}if(r&&!o)return this;var a=fe(this,t);if(!r)for(var c=0;c>>e&31;if(o>=this.array.length)return this;if(e>0){var r=this.array[o];if((i=r&&r.removeAfter(t,e-5,n))===r&&o===this.array.length-1)return this}var s=fe(this,t);return s.array.splice(o+1),i&&(s.array[o]=i),s};var le,ue,he={};function de(t,e){var n=t._origin,i=t._capacity,o=ye(i),r=t._tail;return s(t._root,t._level,0);function s(t,a,c){return 0===a?function(t,s){var a=s===o?r&&r.array:t&&t.array,c=s>n?0:n-s,l=i-s;return l>32&&(l=32),function(){if(c===l)return he;var t=e?--l:c++;return a&&a[t]}}(t,c):function(t,o,r){var a,c=t&&t.array,l=r>n?0:n-r>>o,u=1+(i-r>>o);return u>32&&(u=32),function(){for(;;){if(a){var t=a();if(t!==he)return t;a=null}if(l===u)return he;var n=e?--u:l++;a=s(c&&c[n],o-5,r+(n<>>n&31,c=t&&a0){var l=t&&t.array[a],u=me(l,e,n-5,i,o,r);return u===l?t:((s=fe(t,e)).array[a]=u,s)}return c&&t.array[a]===o?t:(E(r),s=fe(t,e),void 0===o&&a===s.array.length-1?s.array.pop():s.array[a]=o,s)}function fe(t,e){return e&&t&&e===t.ownerID?t:new ce(t?t.array.slice():[],e)}function ge(t,e){if(e>=ye(t._capacity))return t._tail;if(e<1<0;)n=n.array[e>>>i&31],i-=5;return n}}function $e(t,e,n){void 0!==e&&(e|=0),void 0!==n&&(n|=0);var i=t.__ownerID||new y,o=t._origin,r=t._capacity,s=o+e,a=void 0===n?r:n<0?r+n:o+n;if(s===o&&a===r)return t;if(s>=a)return t.clear();for(var c=t._level,l=t._root,u=0;s+u<0;)l=new ce(l&&l.array.length?[void 0,l]:[],i),u+=1<<(c+=5);u&&(s+=u,o+=u,a+=u,r+=u);for(var h=ye(r),d=ye(a);d>=1<h?new ce([],i):p;if(p&&d>h&&s5;f-=5){var g=h>>>f&31;m=m.array[g]=fe(m.array[g],i)}m.array[h>>>5&31]=p}if(a=d)s-=d,a-=d,c=5,l=null,_=_&&_.removeBefore(i,0,s);else if(s>o||d>>c&31;if($!==d>>>c&31)break;$&&(u+=(1<o&&(l=l.removeBefore(i,c,s-u)),l&&dr&&(r=l.size),s(c)||(l=l.map((function(t){return it(t)}))),i.push(l)}return r>t.size&&(t=t.setSize(r)),Qt(t,e,i)}function ye(t){return t<32?0:t-1>>>5<<5}function be(t){return null==t?Ce():Se(t)?t:Ce().withMutations((function(e){var n=i(t);wt(n.size),n.forEach((function(t,n){return e.set(n,t)}))}))}function Se(t){return Rt(t)&&u(t)}function ve(t,e,n,i){var o=Object.create(be.prototype);return o.size=t?t.size:0,o._map=t,o._list=e,o.__ownerID=n,o.__hash=i,o}function Ce(){return ue||(ue=ve(Bt(),_e()))}function Ne(t,e,n){var i,o,r=t._map,s=t._list,a=r.get(e),c=void 0!==a;if(n===m){if(!c)return t;s.size>=32&&s.size>=2*r.size?(i=(o=s.filter((function(t,e){return void 0!==t&&a!==e}))).toKeyedSeq().map((function(t){return t[0]})).flip().toMap(),t.__ownerID&&(i.__ownerID=o.__ownerID=t.__ownerID)):(i=r.remove(e),o=a===s.size-1?s.pop():s.set(a,void 0))}else if(c){if(n===s.get(a)[1])return t;i=r,o=s.set(a,[e,n])}else i=r.set(e,s.size),o=s.set(s.size,[e,n]);return t.__ownerID?(t.size=i.size,t._map=i,t._list=o,t.__hash=void 0,t):ve(i,o)}function Te(t,e){this._iter=t,this._useKeys=e,this.size=t.size}function Le(t){this._iter=t,this.size=t.size}function ze(t){this._iter=t,this.size=t.size}function we(t){this._iter=t,this.size=t.size}function Oe(t){var e=He(t);return e._iter=t,e.size=t.size,e.flip=function(){return t},e.reverse=function(){var e=t.reverse.apply(this);return e.flip=function(){return t.reverse()},e},e.has=function(e){return t.includes(e)},e.includes=function(e){return t.has(e)},e.cacheResult=Ve,e.__iterateUncached=function(e,n){var i=this;return t.__iterate((function(t,n){return!1!==e(n,t,i)}),n)},e.__iteratorUncached=function(e,n){if(2===e){var i=t.__iterator(e,n);return new I((function(){var t=i.next();if(!t.done){var e=t.value[0];t.value[0]=t.value[1],t.value[1]=e}return t}))}return t.__iterator(1===e?0:1,n)},e}function Re(t,e,n){var i=He(t);return i.size=t.size,i.has=function(e){return t.has(e)},i.get=function(i,o){var r=t.get(i,m);return r===m?o:e.call(n,r,i,t)},i.__iterateUncached=function(i,o){var r=this;return t.__iterate((function(t,o,s){return!1!==i(e.call(n,t,o,s),o,r)}),o)},i.__iteratorUncached=function(i,o){var r=t.__iterator(2,o);return new I((function(){var o=r.next();if(o.done)return o;var s=o.value,a=s[0];return U(i,a,e.call(n,s[1],a,t),o)}))},i}function Ae(t,e){var n=He(t);return n._iter=t,n.size=t.size,n.reverse=function(){return t},t.flip&&(n.flip=function(){var e=Oe(t);return e.reverse=function(){return t.flip()},e}),n.get=function(n,i){return t.get(e?n:-1-n,i)},n.has=function(n){return t.has(e?n:-1-n)},n.includes=function(e){return t.includes(e)},n.cacheResult=Ve,n.__iterate=function(e,n){var i=this;return t.__iterate((function(t,n){return e(t,n,i)}),!n)},n.__iterator=function(e,n){return t.__iterator(e,!n)},n}function xe(t,e,n,i){var o=He(t);return i&&(o.has=function(i){var o=t.get(i,m);return o!==m&&!!e.call(n,o,i,t)},o.get=function(i,o){var r=t.get(i,m);return r!==m&&e.call(n,r,i,t)?r:o}),o.__iterateUncached=function(o,r){var s=this,a=0;return t.__iterate((function(t,r,c){if(e.call(n,t,r,c))return a++,o(t,i?r:a-1,s)}),r),a},o.__iteratorUncached=function(o,r){var s=t.__iterator(2,r),a=0;return new I((function(){for(;;){var r=s.next();if(r.done)return r;var c=r.value,l=c[0],u=c[1];if(e.call(n,u,l,t))return U(o,i?l:a++,u,r)}}))},o}function Ie(t,e,n,i){var o=t.size;if(void 0!==e&&(e|=0),void 0!==n&&(n|=0),N(e,n,o))return t;var r=T(e,o),s=L(n,o);if(r!=r||s!=s)return Ie(t.toSeq().cacheResult(),e,n,i);var a,c=s-r;c==c&&(a=c<0?0:c);var l=He(t);return l.size=0===a?a:t.size&&a||void 0,!i&&J(t)&&a>=0&&(l.get=function(e,n){return(e=v(this,e))>=0&&ea)return{value:void 0,done:!0};var t=o.next();return i||1===e?t:U(e,c-1,0===e?void 0:t.value[1],t)}))},l}function Ue(t,e,n,i){var o=He(t);return o.__iterateUncached=function(o,r){var s=this;if(r)return this.cacheResult().__iterate(o,r);var a=!0,c=0;return t.__iterate((function(t,r,l){if(!a||!(a=e.call(n,t,r,l)))return c++,o(t,i?r:c-1,s)})),c},o.__iteratorUncached=function(o,r){var s=this;if(r)return this.cacheResult().__iterator(o,r);var a=t.__iterator(2,r),c=!0,l=0;return new I((function(){var t,r,u;do{if((t=a.next()).done)return i||1===o?t:U(o,l++,0===o?void 0:t.value[1],t);var h=t.value;r=h[0],u=h[1],c&&(c=e.call(n,u,r,s))}while(c);return 2===o?t:U(o,r,u,t)}))},o}function De(t,e){var n=a(t),o=[t].concat(e).map((function(t){return s(t)?n&&(t=i(t)):t=n?Q(t):Z(Array.isArray(t)?t:[t]),t})).filter((function(t){return 0!==t.size}));if(0===o.length)return t;if(1===o.length){var r=o[0];if(r===t||n&&a(r)||c(t)&&c(r))return r}var l=new H(o);return n?l=l.toKeyedSeq():c(t)||(l=l.toSetSeq()),(l=l.flatten(!0)).size=o.reduce((function(t,e){if(void 0!==t){var n=e.size;if(void 0!==n)return t+n}}),0),l}function Pe(t,e,n){var i=He(t);return i.__iterateUncached=function(i,o){var r=0,a=!1;return function t(c,l){var u=this;c.__iterate((function(o,c){return(!e||l0}function Ge(t,e,i){var o=He(t);return o.size=new H(i).map((function(t){return t.size})).min(),o.__iterate=function(t,e){for(var n,i=this.__iterator(1,e),o=0;!(n=i.next()).done&&!1!==t(n.value,o++,this););return o},o.__iteratorUncached=function(t,o){var r=i.map((function(t){return t=n(t),k(o?t.reverse():t)})),s=0,a=!1;return new I((function(){var n;return a||(n=r.map((function(t){return t.next()})),a=n.some((function(t){return t.done}))),a?{value:void 0,done:!0}:U(t,s++,e.apply(null,n.map((function(t){return t.value}))))}))},o}function qe(t,e){return J(t)?e:t.constructor(e)}function Fe(t){if(t!==Object(t))throw new TypeError("Expected [K, V] tuple: "+t)}function Be(t){return wt(t.size),S(t)}function We(t){return a(t)?i:c(t)?o:r}function He(t){return Object.create((a(t)?F:c(t)?B:W).prototype)}function Ve(){return this._iter.cacheResult?(this._iter.cacheResult(),this.size=this._iter.size,this):q.prototype.cacheResult.call(this)}function Ke(t,e){return t>e?1:t=0;n--)e={value:arguments[n],next:e};return this.__ownerID?(this.size=t,this._head=e,this.__hash=void 0,this.__altered=!0,this):bn(t,e)},fn.prototype.pushAll=function(t){if(0===(t=o(t)).size)return this;wt(t.size);var e=this.size,n=this._head;return t.reverse().forEach((function(t){e++,n={value:t,next:n}})),this.__ownerID?(this.size=e,this._head=n,this.__hash=void 0,this.__altered=!0,this):bn(e,n)},fn.prototype.pop=function(){return this.slice(1)},fn.prototype.unshift=function(){return this.push.apply(this,arguments)},fn.prototype.unshiftAll=function(t){return this.pushAll(t)},fn.prototype.shift=function(){return this.pop.apply(this,arguments)},fn.prototype.clear=function(){return 0===this.size?this:this.__ownerID?(this.size=0,this._head=void 0,this.__hash=void 0,this.__altered=!0,this):Sn()},fn.prototype.slice=function(t,e){if(N(t,e,this.size))return this;var n=T(t,this.size);if(L(e,this.size)!==this.size)return pt.prototype.slice.call(this,t,e);for(var i=this.size-n,o=this._head;n--;)o=o.next;return this.__ownerID?(this.size=i,this._head=o,this.__hash=void 0,this.__altered=!0,this):bn(i,o)},fn.prototype.__ensureOwner=function(t){return t===this.__ownerID?this:t?bn(this.size,this._head,t,this.__hash):(this.__ownerID=t,this.__altered=!1,this)},fn.prototype.__iterate=function(t,e){if(e)return this.reverse().__iterate(t);for(var n=0,i=this._head;i&&!1!==t(i.value,n++,this);)i=i.next;return n},fn.prototype.__iterator=function(t,e){if(e)return this.reverse().__iterator(t);var n=0,i=this._head;return new I((function(){if(i){var e=i.value;return i=i.next,U(t,n++,e)}return{value:void 0,done:!0}}))},fn.isStack=gn;var $n,En="@@__IMMUTABLE_STACK__@@",yn=fn.prototype;function bn(t,e,n,i){var o=Object.create(yn);return o.size=t,o._head=e,o.__ownerID=n,o.__hash=i,o.__altered=!1,o}function Sn(){return $n||($n=bn(0))}function vn(t,e){var n=function(n){t.prototype[n]=e[n]};return Object.keys(e).forEach(n),Object.getOwnPropertySymbols&&Object.getOwnPropertySymbols(e).forEach(n),t}yn[En]=!0,yn.withMutations=It.withMutations,yn.asMutable=It.asMutable,yn.asImmutable=It.asImmutable,yn.wasAltered=It.wasAltered,n.Iterator=I,vn(n,{toArray:function(){wt(this.size);var t=new Array(this.size||0);return this.valueSeq().__iterate((function(e,n){t[n]=e})),t},toIndexedSeq:function(){return new Le(this)},toJS:function(){return this.toSeq().map((function(t){return t&&"function"==typeof t.toJS?t.toJS():t})).__toJS()},toJSON:function(){return this.toSeq().map((function(t){return t&&"function"==typeof t.toJSON?t.toJSON():t})).__toJS()},toKeyedSeq:function(){return new Te(this,!0)},toMap:function(){return Ot(this.toKeyedSeq())},toObject:function(){wt(this.size);var t={};return this.__iterate((function(e,n){t[n]=e})),t},toOrderedMap:function(){return be(this.toKeyedSeq())},toOrderedSet:function(){return un(a(this)?this.valueSeq():this)},toSet:function(){return en(a(this)?this.valueSeq():this)},toSetSeq:function(){return new ze(this)},toSeq:function(){return c(this)?this.toIndexedSeq():a(this)?this.toKeyedSeq():this.toSetSeq()},toStack:function(){return fn(a(this)?this.valueSeq():this)},toList:function(){return oe(a(this)?this.valueSeq():this)},toString:function(){return"[Iterable]"},__toString:function(t,e){return 0===this.size?t+e:t+" "+this.toSeq().map(this.__toStringMapper).join(", ")+" "+e},concat:function(){var e=t.call(arguments,0);return qe(this,De(this,e))},includes:function(t){return this.some((function(e){return st(e,t)}))},entries:function(){return this.__iterator(2)},every:function(t,e){wt(this.size);var n=!0;return this.__iterate((function(i,o,r){if(!t.call(e,i,o,r))return n=!1,!1})),n},filter:function(t,e){return qe(this,xe(this,t,e,!0))},find:function(t,e,n){var i=this.findEntry(t,e);return i?i[1]:n},findEntry:function(t,e){var n;return this.__iterate((function(i,o,r){if(t.call(e,i,o,r))return n=[o,i],!1})),n},findLastEntry:function(t,e){return this.toSeq().reverse().findEntry(t,e)},forEach:function(t,e){return wt(this.size),this.__iterate(e?t.bind(e):t)},join:function(t){wt(this.size),t=void 0!==t?""+t:",";var e="",n=!0;return this.__iterate((function(i){n?n=!1:e+=t,e+=null!=i?i.toString():""})),e},keys:function(){return this.__iterator(0)},map:function(t,e){return qe(this,Re(this,t,e))},reduce:function(t,e,n){var i,o;return wt(this.size),arguments.length<2?o=!0:i=e,this.__iterate((function(e,r,s){o?(o=!1,i=e):i=t.call(n,i,e,r,s)})),i},reduceRight:function(t,e,n){var i=this.toKeyedSeq().reverse();return i.reduce.apply(i,arguments)},reverse:function(){return qe(this,Ae(this,!0))},slice:function(t,e){return qe(this,Ie(this,t,e,!0))},some:function(t,e){return!this.every(zn(t),e)},sort:function(t){return qe(this,Me(this,t))},values:function(){return this.__iterator(1)},butLast:function(){return this.slice(0,-1)},isEmpty:function(){return void 0!==this.size?0===this.size:!this.some((function(){return!0}))},count:function(t,e){return S(t?this.toSeq().filter(t,e):this)},countBy:function(t,e){return function(t,e,n){var i=Ot().asMutable();return t.__iterate((function(o,r){i.update(e.call(n,o,r,t),0,(function(t){return t+1}))})),i.asImmutable()}(this,t,e)},equals:function(t){return at(this,t)},entrySeq:function(){var t=this;if(t._cache)return new H(t._cache);var e=t.toSeq().map(Ln).toIndexedSeq();return e.fromEntrySeq=function(){return t.toSeq()},e},filterNot:function(t,e){return this.filter(zn(t),e)},findLast:function(t,e,n){return this.toKeyedSeq().reverse().find(t,e,n)},first:function(){return this.find(C)},flatMap:function(t,e){return qe(this,function(t,e,n){var i=We(t);return t.toSeq().map((function(o,r){return i(e.call(n,o,r,t))})).flatten(!0)}(this,t,e))},flatten:function(t){return qe(this,Pe(this,t,!0))},fromEntrySeq:function(){return new we(this)},get:function(t,e){return this.find((function(e,n){return st(n,t)}),void 0,e)},getIn:function(t,e){for(var n,i=this,o=Xe(t);!(n=o.next()).done;){var r=n.value;if((i=i&&i.get?i.get(r,m):m)===m)return e}return i},groupBy:function(t,e){return function(t,e,n){var i=a(t),o=(u(t)?be():Ot()).asMutable();t.__iterate((function(r,s){o.update(e.call(n,r,s,t),(function(t){return(t=t||[]).push(i?[s,r]:r),t}))}));var r=We(t);return o.map((function(e){return qe(t,r(e))}))}(this,t,e)},has:function(t){return this.get(t,m)!==m},hasIn:function(t){return this.getIn(t,m)!==m},isSubset:function(t){return t="function"==typeof t.includes?t:n(t),this.every((function(e){return t.includes(e)}))},isSuperset:function(t){return(t="function"==typeof t.isSubset?t:n(t)).isSubset(this)},keySeq:function(){return this.toSeq().map(Tn).toIndexedSeq()},last:function(){return this.toSeq().reverse().first()},max:function(t){return ke(this,t)},maxBy:function(t,e){return ke(this,e,t)},min:function(t){return ke(this,t?wn(t):An)},minBy:function(t,e){return ke(this,e?wn(e):An,t)},rest:function(){return this.slice(1)},skip:function(t){return this.slice(Math.max(0,t))},skipLast:function(t){return qe(this,this.toSeq().reverse().skip(t).reverse())},skipWhile:function(t,e){return qe(this,Ue(this,t,e,!0))},skipUntil:function(t,e){return this.skipWhile(zn(t),e)},sortBy:function(t,e){return qe(this,Me(this,e,t))},take:function(t){return this.slice(0,Math.max(0,t))},takeLast:function(t){return qe(this,this.toSeq().reverse().take(t).reverse())},takeWhile:function(t,e){return qe(this,function(t,e,n){var i=He(t);return i.__iterateUncached=function(i,o){var r=this;if(o)return this.cacheResult().__iterate(i,o);var s=0;return t.__iterate((function(t,o,a){return e.call(n,t,o,a)&&++s&&i(t,o,r)})),s},i.__iteratorUncached=function(i,o){var r=this;if(o)return this.cacheResult().__iterator(i,o);var s=t.__iterator(2,o),a=!0;return new I((function(){if(!a)return{value:void 0,done:!0};var t=s.next();if(t.done)return t;var o=t.value,c=o[0],l=o[1];return e.call(n,l,c,r)?2===i?t:U(i,c,l,t):(a=!1,{value:void 0,done:!0})}))},i}(this,t,e))},takeUntil:function(t,e){return this.takeWhile(zn(t),e)},valueSeq:function(){return this.toIndexedSeq()},hashCode:function(){return this.__hash||(this.__hash=function(t){if(t.size===1/0)return 0;var e=u(t),n=a(t),i=e?1:0;return function(t,e){return e=mt(e,3432918353),e=mt(e<<15|e>>>-15,461845907),e=mt(e<<13|e>>>-13,5),e=mt((e=(e+3864292196|0)^t)^e>>>16,2246822507),e=ft((e=mt(e^e>>>13,3266489909))^e>>>16)}(t.__iterate(n?e?function(t,e){i=31*i+xn(gt(t),gt(e))|0}:function(t,e){i=i+xn(gt(t),gt(e))|0}:e?function(t){i=31*i+gt(t)|0}:function(t){i=i+gt(t)|0}),i)}(this))}});var Cn=n.prototype;Cn[h]=!0,Cn[x]=Cn.values,Cn.__toJS=Cn.toArray,Cn.__toStringMapper=On,Cn.inspect=Cn.toSource=function(){return this.toString()},Cn.chain=Cn.flatMap,Cn.contains=Cn.includes,function(){try{Object.defineProperty(Cn,"length",{get:function(){if(!n.noLengthWarning){var t;try{throw new Error}catch(e){t=e.stack}if(-1===t.indexOf("_wrapObject"))return console&&console.warn&&console.warn("iterable.length has been deprecated, use iterable.size or iterable.count(). This warning will become a silent error in a future version. "+t),this.size}}})}catch(t){}}(),vn(i,{flip:function(){return qe(this,Oe(this))},findKey:function(t,e){var n=this.findEntry(t,e);return n&&n[0]},findLastKey:function(t,e){return this.toSeq().reverse().findKey(t,e)},keyOf:function(t){return this.findKey((function(e){return st(e,t)}))},lastKeyOf:function(t){return this.findLastKey((function(e){return st(e,t)}))},mapEntries:function(t,e){var n=this,i=0;return qe(this,this.toSeq().map((function(o,r){return t.call(e,[r,o],i++,n)})).fromEntrySeq())},mapKeys:function(t,e){var n=this;return qe(this,this.toSeq().flip().map((function(i,o){return t.call(e,i,o,n)})).flip())}});var Nn=i.prototype;function Tn(t,e){return e}function Ln(t,e){return[e,t]}function zn(t){return function(){return!t.apply(this,arguments)}}function wn(t){return function(){return-t.apply(this,arguments)}}function On(t){return"string"==typeof t?JSON.stringify(t):t}function Rn(){return b(arguments)}function An(t,e){return te?-1:0}function xn(t,e){return t^e+2654435769+(t<<6)+(t>>2)|0}return Nn[d]=!0,Nn[x]=Cn.entries,Nn.__toJS=Cn.toObject,Nn.__toStringMapper=function(t,e){return JSON.stringify(e)+": "+On(t)},vn(o,{toKeyedSeq:function(){return new Te(this,!1)},filter:function(t,e){return qe(this,xe(this,t,e,!1))},findIndex:function(t,e){var n=this.findEntry(t,e);return n?n[0]:-1},indexOf:function(t){var e=this.toKeyedSeq().keyOf(t);return void 0===e?-1:e},lastIndexOf:function(t){var e=this.toKeyedSeq().reverse().keyOf(t);return void 0===e?-1:e},reverse:function(){return qe(this,Ae(this,!1))},slice:function(t,e){return qe(this,Ie(this,t,e,!1))},splice:function(t,e){var n=arguments.length;if(e=Math.max(0|e,0),0===n||2===n&&!e)return this;t=T(t,t<0?this.count():this.size);var i=this.slice(0,t);return qe(this,1===n?i:i.concat(b(arguments,2),this.slice(t+e)))},findLastIndex:function(t,e){var n=this.toKeyedSeq().findLastKey(t,e);return void 0===n?-1:n},first:function(){return this.get(0)},flatten:function(t){return qe(this,Pe(this,t,!1))},get:function(t,e){return(t=v(this,t))<0||this.size===1/0||void 0!==this.size&&t>this.size?e:this.find((function(e,n){return n===t}),void 0,e)},has:function(t){return(t=v(this,t))>=0&&(void 0!==this.size?this.size===1/0||t2?n-2:0),r=2;r0)return o.getInlineStyleAt(i-1);if(o.getLength())return o.getInlineStyleAt(0);return y(t,n)}(e,n):function(t,e){var n=e.getStartKey(),i=e.getStartOffset(),o=t.getBlockForKey(n);if(i0)return o.getInlineStyleAt(i-1);return y(t,n)}(e,n)},t.getBlockTree=function(t){return this.getImmutable().getIn(["treeMap",t])},t.isSelectionAtStartOfContent=function(){var t=this.getCurrentContent().getBlockMap().first().getKey();return this.getSelection().hasEdgeWithin(t,0,0)},t.isSelectionAtEndOfContent=function(){var t=this.getCurrentContent().getBlockMap().last(),e=t.getLength();return this.getSelection().hasEdgeWithin(t.getKey(),e,e)},t.getDirectionMap=function(){return this.getImmutable().get("directionMap")},e.acceptSelection=function(t,e){return g(t,e,!1)},e.forceSelection=function(t,e){return e.getHasFocus()||(e=e.set("hasFocus",!0)),g(t,e,!0)},e.moveSelectionToEnd=function(t){var n=t.getCurrentContent().getLastBlock(),i=n.getKey(),o=n.getLength();return e.acceptSelection(t,new c({anchorKey:i,anchorOffset:o,focusKey:i,focusOffset:o,isBackward:!1}))},e.moveFocusToEnd=function(t){var n=e.moveSelectionToEnd(t);return e.forceSelection(n,n.getSelection())},e.push=function(t,n,i){var o=!(arguments.length>3&&void 0!==arguments[3])||arguments[3];if(t.getCurrentContent()===n)return t;var r=a.getDirectionMap(n,t.getDirectionMap());if(!t.getAllowUndo())return e.set(t,{currentContent:n,directionMap:r,lastChangeType:i,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:null});var s=t.getSelection(),c=t.getCurrentContent(),l=t.getUndoStack(),u=n;s!==c.getSelectionAfter()||E(t,i)?(l=l.push(c),u=u.set("selectionBefore",s)):"insert-characters"!==i&&"backspace-character"!==i&&"delete-character"!==i||(u=u.set("selectionBefore",c.getSelectionBefore()));var h=t.getInlineStyleOverride(),p=["adjust-depth","change-block-type","split-block"];-1===p.indexOf(i)&&(h=null);var _={currentContent:u,directionMap:r,undoStack:l,redoStack:d(),lastChangeType:i,selection:n.getSelectionAfter(),forceSelection:o,inlineStyleOverride:h};return e.set(t,_)},e.undo=function(t){if(!t.getAllowUndo())return t;var n=t.getUndoStack(),i=n.peek();if(!i)return t;var o=t.getCurrentContent(),r=a.getDirectionMap(i,t.getDirectionMap());return e.set(t,{currentContent:i,directionMap:r,undoStack:n.shift(),redoStack:t.getRedoStack().push(o),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"undo",nativelyRenderedContent:null,selection:o.getSelectionBefore()})},e.redo=function(t){if(!t.getAllowUndo())return t;var n=t.getRedoStack(),i=n.peek();if(!i)return t;var o=t.getCurrentContent(),r=a.getDirectionMap(i,t.getDirectionMap());return e.set(t,{currentContent:i,directionMap:r,undoStack:t.getUndoStack().push(o),redoStack:n.shift(),forceSelection:!0,inlineStyleOverride:null,lastChangeType:"redo",nativelyRenderedContent:null,selection:i.getSelectionAfter()})},t.getImmutable=function(){return this._immutable},e}();function g(t,e,n){return f.set(t,{selection:e,forceSelection:n,nativelyRenderedContent:null,inlineStyleOverride:null})}function $(t,e){return t.getBlockMap().map((function(n){return r.generate(t,n,e)})).toOrderedMap()}function E(t,e){return e!==t.getLastChangeType()||"insert-characters"!==e&&"backspace-character"!==e&&"delete-character"!==e}function y(t,e){var n=t.getBlockMap().reverse().skipUntil((function(t,n){return n===e})).skip(1).skipUntil((function(t,e){return t.getLength()})).first();return n?n.getInlineStyleAt(n.getLength()-1):u()}t.exports=f},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"b",(function(){return r}));const i=({date:t,disableFuture:e,disablePast:n,maxDate:i,minDate:o,isDateDisabled:r,utils:s})=>{const a=s.startOfDay(s.date());n&&s.isBefore(o,a)&&(o=a),e&&s.isAfter(i,a)&&(i=a);let c=t,l=t;for(s.isBefore(t,o)&&(c=s.date(o),l=null),s.isAfter(t,i)&&(l&&(l=s.date(i)),c=null);c||l;){if(c&&s.isAfter(c,i)&&(c=null),l&&s.isBefore(l,o)&&(l=null),c){if(!r(c))return c;c=s.addDays(c,1)}if(l){if(!r(l))return l;l=s.addDays(l,-1)}}return null},o=(t,e)=>{const n=t.date(e);return t.isValid(n)?n:null},r=(t,e,n)=>{if(null==e)return n;const i=t.date(e);return t.isValid(i)?i:n}},function(t,e){var n,i,o=t.exports={};function r(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function a(t){if(n===setTimeout)return setTimeout(t,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(t,0);try{return n(t,0)}catch(e){try{return n.call(null,t,0)}catch(e){return n.call(this,t,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r}catch(t){n=r}try{i="function"==typeof clearTimeout?clearTimeout:s}catch(t){i=s}}();var c,l=[],u=!1,h=-1;function d(){u&&c&&(u=!1,c.length?l=c.concat(l):h=-1,l.length&&p())}function p(){if(!u){var t=a(d);u=!0;for(var e=l.length;e;){for(c=l,l=[];++h1)for(var n=1;n=0&&(e.hash=t.substr(n),t=t.substr(0,n));var i=t.indexOf("?");i>=0&&(e.search=t.substr(i),t=t.substr(0,i)),t&&(e.pathname=t)}return e}},function(t,e,n){"use strict";var i=n(736);e.a=i.a},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o}));const i=t=>t.scrollTop;function o(t,e){var n,i;const{timeout:o,easing:r,style:s={}}=t;return{duration:null!=(n=s.transitionDuration)?n:"number"==typeof o?o:o[e.mode]||0,easing:null!=(i=s.transitionTimingFunction)?i:"object"==typeof r?r[e.mode]:r,delay:s.transitionDelay}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiSwitch",t)}const s=Object(o.a)("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]);e.a=s},function(t,e,n){"use strict";n.r(e);var i=n(126);n.d(e,"default",(function(){return i.a}));var o=n(194);n.d(e,"typographyClasses",(function(){return o.a})),n.d(e,"getTypographyUtilityClass",(function(){return o.b}))},function(t,e,n){"use strict";function i(t,e){if(null==t)return{};var n,i,o={},r=Object.keys(t);for(i=0;i=0||(o[n]=t[n]);return o}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";var i=n(0);const o=i.createContext({});e.a=o},function(t,e,n){"use strict";n.d(e,"e",(function(){return C})),n.d(e,"d",(function(){return N})),n.d(e,"b",(function(){return T})),n.d(e,"a",(function(){return L}));var i=n(5),o=n(1),r=n(274),s=n(0),a=n(4),c=n(18),l=n(1028),u=n(101),h=n(53),d=n(143),p=n(41),_=n(3),m=n(7),f=n(6),g=n(21),$=n(52),E=n(737),y=n(170),b=n(60),S=n(2);const v=["aria-describedby","autoComplete","autoFocus","className","color","components","componentsProps","defaultValue","disabled","disableInjectingGlobalStyles","endAdornment","error","fullWidth","id","inputComponent","inputProps","inputRef","margin","maxRows","minRows","multiline","name","onBlur","onChange","onClick","onFocus","onKeyDown","onKeyUp","placeholder","readOnly","renderSuffix","rows","size","startAdornment","type","value"],C=(t,e)=>{const{ownerState:n}=t;return[e.root,n.formControl&&e.formControl,n.startAdornment&&e.adornedStart,n.endAdornment&&e.adornedEnd,n.error&&e.error,"small"===n.size&&e.sizeSmall,n.multiline&&e.multiline,n.color&&e["color"+Object(f.a)(n.color)],n.fullWidth&&e.fullWidth,n.hiddenLabel&&e.hiddenLabel]},N=(t,e)=>{const{ownerState:n}=t;return[e.input,"small"===n.size&&e.inputSizeSmall,n.multiline&&e.inputMultiline,"search"===n.type&&e.inputTypeSearch,n.startAdornment&&e.inputAdornedStart,n.endAdornment&&e.inputAdornedEnd,n.hiddenLabel&&e.inputHiddenLabel]},T=Object(_.a)("div",{name:"MuiInputBase",slot:"Root",overridesResolver:C})(({theme:t,ownerState:e})=>Object(o.a)({},t.typography.body1,{color:(t.vars||t).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",["&."+b.a.disabled]:{color:(t.vars||t).palette.text.disabled,cursor:"default"}},e.multiline&&Object(o.a)({padding:"4px 0 5px"},"small"===e.size&&{paddingTop:1}),e.fullWidth&&{width:"100%"})),L=Object(_.a)("input",{name:"MuiInputBase",slot:"Input",overridesResolver:N})(({theme:t,ownerState:e})=>{const n="light"===t.palette.mode,i=Object(o.a)({color:"currentColor"},t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:t.transitions.create("opacity",{duration:t.transitions.duration.shorter})}),r={opacity:"0 !important"},s=t.vars?{opacity:t.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Object(o.a)({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${b.a.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":s,"&:focus::-moz-placeholder":s,"&:focus:-ms-input-placeholder":s,"&:focus::-ms-input-placeholder":s},["&."+b.a.disabled]:{opacity:1,WebkitTextFillColor:(t.vars||t).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},"small"===e.size&&{paddingTop:1},e.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},"search"===e.type&&{MozAppearance:"textfield"})}),z=Object(S.jsx)(E.a,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),w=s.forwardRef((function(t,e){const n=Object(m.a)({props:t,name:"MuiInputBase"}),{"aria-describedby":_,autoComplete:E,autoFocus:C,className:N,components:w={},componentsProps:O={},defaultValue:R,disabled:A,disableInjectingGlobalStyles:x,endAdornment:I,fullWidth:U=!1,id:D,inputComponent:P="input",inputProps:M={},inputRef:k,maxRows:j,minRows:G,multiline:q=!1,name:F,onBlur:B,onChange:W,onClick:H,onFocus:V,onKeyDown:K,onKeyUp:X,placeholder:J,readOnly:Y,renderSuffix:Q,rows:Z,startAdornment:tt,type:et="text",value:nt}=n,it=Object(i.a)(n,v),ot=null!=M.value?M.value:nt,{current:rt}=s.useRef(null!=ot),st=s.useRef(),at=s.useCallback(t=>{0},[]),ct=Object(g.a)(M.ref,at),lt=Object(g.a)(k,ct),ut=Object(g.a)(st,lt),[ht,dt]=s.useState(!1),pt=Object(p.a)();const _t=Object(h.a)({props:n,muiFormControl:pt,states:["color","disabled","error","hiddenLabel","size","required","filled"]});_t.focused=pt?pt.focused:ht,s.useEffect(()=>{!pt&&A&&ht&&(dt(!1),B&&B())},[pt,A,ht,B]);const mt=pt&&pt.onFilled,ft=pt&&pt.onEmpty,gt=s.useCallback(t=>{Object(y.b)(t)?mt&&mt():ft&&ft()},[mt,ft]);Object($.a)(()=>{rt&>({value:ot})},[ot,gt,rt]);s.useEffect(()=>{gt(st.current)},[]);let $t=P,Et=M;q&&"input"===$t&&(Et=Z?Object(o.a)({type:void 0,minRows:Z,maxRows:Z},Et):Object(o.a)({type:void 0,maxRows:j,minRows:G},Et),$t=l.a);s.useEffect(()=>{pt&&pt.setAdornedStart(Boolean(tt))},[pt,tt]);const yt=Object(o.a)({},n,{color:_t.color||"primary",disabled:_t.disabled,endAdornment:I,error:_t.error,focused:_t.focused,formControl:pt,fullWidth:U,hiddenLabel:_t.hiddenLabel,multiline:q,size:_t.size,startAdornment:tt,type:et}),bt=(t=>{const{classes:e,color:n,disabled:i,error:o,endAdornment:r,focused:s,formControl:a,fullWidth:l,hiddenLabel:u,multiline:h,readOnly:d,size:p,startAdornment:_,type:m}=t,g={root:["root","color"+Object(f.a)(n),i&&"disabled",o&&"error",l&&"fullWidth",s&&"focused",a&&"formControl","small"===p&&"sizeSmall",h&&"multiline",_&&"adornedStart",r&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",i&&"disabled","search"===m&&"inputTypeSearch",h&&"inputMultiline","small"===p&&"inputSizeSmall",u&&"inputHiddenLabel",_&&"inputAdornedStart",r&&"inputAdornedEnd",d&&"readOnly"]};return Object(c.a)(g,b.b,e)})(yt),St=w.Root||T,vt=O.root||{},Ct=w.Input||L;return Et=Object(o.a)({},Et,O.input),Object(S.jsxs)(s.Fragment,{children:[!x&&z,Object(S.jsxs)(St,Object(o.a)({},vt,!Object(u.a)(St)&&{ownerState:Object(o.a)({},yt,vt.ownerState)},{ref:e,onClick:t=>{st.current&&t.currentTarget===t.target&&st.current.focus(),H&&H(t)}},it,{className:Object(a.a)(bt.root,vt.className,N),children:[tt,Object(S.jsx)(d.a.Provider,{value:null,children:Object(S.jsx)(Ct,Object(o.a)({ownerState:yt,"aria-invalid":_t.error,"aria-describedby":_,autoComplete:E,autoFocus:C,defaultValue:R,disabled:_t.disabled,id:D,onAnimationStart:t=>{gt("mui-auto-fill-cancel"===t.animationName?st.current:{value:"x"})},name:F,placeholder:J,readOnly:Y,required:_t.required,rows:Z,value:ot,onKeyDown:K,onKeyUp:X,type:et},Et,!Object(u.a)(Ct)&&{as:$t,ownerState:Object(o.a)({},yt,Et.ownerState)},{ref:ut,className:Object(a.a)(bt.input,Et.className),onBlur:t=>{B&&B(t),M.onBlur&&M.onBlur(t),pt&&pt.onBlur?pt.onBlur(t):dt(!1)},onChange:(t,...e)=>{if(!rt){const e=t.target||st.current;if(null==e)throw new Error(Object(r.a)(1));gt({value:e.value})}M.onChange&&M.onChange(t,...e),W&&W(t,...e)},onFocus:t=>{_t.disabled?t.stopPropagation():(V&&V(t),M.onFocus&&M.onFocus(t),pt&&pt.onFocus?pt.onFocus(t):dt(!0))}}))}),I,Q?Q(Object(o.a)({},_t,{startAdornment:tt})):null]}))]})}));e.c=w},function(t,e,n){"use strict";(function(t){ /*! * The buffer module from node.js, for the browser. * * @author Feross Aboukhadijeh * @license MIT */ var i=n(753),o=n(754),r=n(437);function s(){return c.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function a(t,e){if(s()=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|t}function _(t,e){if(c.isBuffer(t))return t.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&(ArrayBuffer.isView(t)||t instanceof ArrayBuffer))return t.byteLength;"string"!=typeof t&&(t=""+t);var n=t.length;if(0===n)return 0;for(var i=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return j(t).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return G(t).length;default:if(i)return j(t).length;e=(""+e).toLowerCase(),i=!0}}function m(t,e,n){var i=!1;if((void 0===e||e<0)&&(e=0),e>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(e>>>=0))return"";for(t||(t="utf8");;)switch(t){case"hex":return w(this,e,n);case"utf8":case"utf-8":return T(this,e,n);case"ascii":return L(this,e,n);case"latin1":case"binary":return z(this,e,n);case"base64":return N(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return O(this,e,n);default:if(i)throw new TypeError("Unknown encoding: "+t);t=(t+"").toLowerCase(),i=!0}}function f(t,e,n){var i=t[e];t[e]=t[n],t[n]=i}function g(t,e,n,i,o){if(0===t.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=o?0:t.length-1),n<0&&(n=t.length+n),n>=t.length){if(o)return-1;n=t.length-1}else if(n<0){if(!o)return-1;n=0}if("string"==typeof e&&(e=c.from(e,i)),c.isBuffer(e))return 0===e.length?-1:$(t,e,n,i,o);if("number"==typeof e)return e&=255,c.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?o?Uint8Array.prototype.indexOf.call(t,e,n):Uint8Array.prototype.lastIndexOf.call(t,e,n):$(t,[e],n,i,o);throw new TypeError("val must be string, number or Buffer")}function $(t,e,n,i,o){var r,s=1,a=t.length,c=e.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(t.length<2||e.length<2)return-1;s=2,a/=2,c/=2,n/=2}function l(t,e){return 1===s?t[e]:t.readUInt16BE(e*s)}if(o){var u=-1;for(r=n;ra&&(n=a-c),r=n;r>=0;r--){for(var h=!0,d=0;do&&(i=o):i=o;var r=e.length;if(r%2!=0)throw new TypeError("Invalid hex string");i>r/2&&(i=r/2);for(var s=0;s>8,o=n%256,r.push(o),r.push(i);return r}(e,t.length-n),t,n,i)}function N(t,e,n){return 0===e&&n===t.length?i.fromByteArray(t):i.fromByteArray(t.slice(e,n))}function T(t,e,n){n=Math.min(t.length,n);for(var i=[],o=e;o239?4:l>223?3:l>191?2:1;if(o+h<=n)switch(h){case 1:l<128&&(u=l);break;case 2:128==(192&(r=t[o+1]))&&(c=(31&l)<<6|63&r)>127&&(u=c);break;case 3:r=t[o+1],s=t[o+2],128==(192&r)&&128==(192&s)&&(c=(15&l)<<12|(63&r)<<6|63&s)>2047&&(c<55296||c>57343)&&(u=c);break;case 4:r=t[o+1],s=t[o+2],a=t[o+3],128==(192&r)&&128==(192&s)&&128==(192&a)&&(c=(15&l)<<18|(63&r)<<12|(63&s)<<6|63&a)>65535&&c<1114112&&(u=c)}null===u?(u=65533,h=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),o+=h}return function(t){var e=t.length;if(e<=4096)return String.fromCharCode.apply(String,t);var n="",i=0;for(;i0&&(t=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(t+=" ... ")),""},c.prototype.compare=function(t,e,n,i,o){if(!c.isBuffer(t))throw new TypeError("Argument must be a Buffer");if(void 0===e&&(e=0),void 0===n&&(n=t?t.length:0),void 0===i&&(i=0),void 0===o&&(o=this.length),e<0||n>t.length||i<0||o>this.length)throw new RangeError("out of range index");if(i>=o&&e>=n)return 0;if(i>=o)return-1;if(e>=n)return 1;if(this===t)return 0;for(var r=(o>>>=0)-(i>>>=0),s=(n>>>=0)-(e>>>=0),a=Math.min(r,s),l=this.slice(i,o),u=t.slice(e,n),h=0;ho)&&(n=o),t.length>0&&(n<0||e<0)||e>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var r=!1;;)switch(i){case"hex":return E(this,t,e,n);case"utf8":case"utf-8":return y(this,t,e,n);case"ascii":return b(this,t,e,n);case"latin1":case"binary":return S(this,t,e,n);case"base64":return v(this,t,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return C(this,t,e,n);default:if(r)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),r=!0}},c.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function L(t,e,n){var i="";n=Math.min(t.length,n);for(var o=e;oi)&&(n=i);for(var o="",r=e;rn)throw new RangeError("Trying to access beyond buffer length")}function A(t,e,n,i,o,r){if(!c.isBuffer(t))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>o||et.length)throw new RangeError("Index out of range")}function x(t,e,n,i){e<0&&(e=65535+e+1);for(var o=0,r=Math.min(t.length-n,2);o>>8*(i?o:1-o)}function I(t,e,n,i){e<0&&(e=4294967295+e+1);for(var o=0,r=Math.min(t.length-n,4);o>>8*(i?o:3-o)&255}function U(t,e,n,i,o,r){if(n+i>t.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function D(t,e,n,i,r){return r||U(t,0,n,4),o.write(t,e,n,i,23,4),n+4}function P(t,e,n,i,r){return r||U(t,0,n,8),o.write(t,e,n,i,52,8),n+8}c.prototype.slice=function(t,e){var n,i=this.length;if((t=~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),(e=void 0===e?i:~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),e0&&(o*=256);)i+=this[t+--e]*o;return i},c.prototype.readUInt8=function(t,e){return e||R(t,1,this.length),this[t]},c.prototype.readUInt16LE=function(t,e){return e||R(t,2,this.length),this[t]|this[t+1]<<8},c.prototype.readUInt16BE=function(t,e){return e||R(t,2,this.length),this[t]<<8|this[t+1]},c.prototype.readUInt32LE=function(t,e){return e||R(t,4,this.length),(this[t]|this[t+1]<<8|this[t+2]<<16)+16777216*this[t+3]},c.prototype.readUInt32BE=function(t,e){return e||R(t,4,this.length),16777216*this[t]+(this[t+1]<<16|this[t+2]<<8|this[t+3])},c.prototype.readIntLE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var i=this[t],o=1,r=0;++r=(o*=128)&&(i-=Math.pow(2,8*e)),i},c.prototype.readIntBE=function(t,e,n){t|=0,e|=0,n||R(t,e,this.length);for(var i=e,o=1,r=this[t+--i];i>0&&(o*=256);)r+=this[t+--i]*o;return r>=(o*=128)&&(r-=Math.pow(2,8*e)),r},c.prototype.readInt8=function(t,e){return e||R(t,1,this.length),128&this[t]?-1*(255-this[t]+1):this[t]},c.prototype.readInt16LE=function(t,e){e||R(t,2,this.length);var n=this[t]|this[t+1]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt16BE=function(t,e){e||R(t,2,this.length);var n=this[t+1]|this[t]<<8;return 32768&n?4294901760|n:n},c.prototype.readInt32LE=function(t,e){return e||R(t,4,this.length),this[t]|this[t+1]<<8|this[t+2]<<16|this[t+3]<<24},c.prototype.readInt32BE=function(t,e){return e||R(t,4,this.length),this[t]<<24|this[t+1]<<16|this[t+2]<<8|this[t+3]},c.prototype.readFloatLE=function(t,e){return e||R(t,4,this.length),o.read(this,t,!0,23,4)},c.prototype.readFloatBE=function(t,e){return e||R(t,4,this.length),o.read(this,t,!1,23,4)},c.prototype.readDoubleLE=function(t,e){return e||R(t,8,this.length),o.read(this,t,!0,52,8)},c.prototype.readDoubleBE=function(t,e){return e||R(t,8,this.length),o.read(this,t,!1,52,8)},c.prototype.writeUIntLE=function(t,e,n,i){(t=+t,e|=0,n|=0,i)||A(this,t,e,n,Math.pow(2,8*n)-1,0);var o=1,r=0;for(this[e]=255&t;++r=0&&(r*=256);)this[e+o]=t/r&255;return e+n},c.prototype.writeUInt8=function(t,e,n){return t=+t,e|=0,n||A(this,t,e,1,255,0),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),this[e]=255&t,e+1},c.prototype.writeUInt16LE=function(t,e,n){return t=+t,e|=0,n||A(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):x(this,t,e,!0),e+2},c.prototype.writeUInt16BE=function(t,e,n){return t=+t,e|=0,n||A(this,t,e,2,65535,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):x(this,t,e,!1),e+2},c.prototype.writeUInt32LE=function(t,e,n){return t=+t,e|=0,n||A(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e+3]=t>>>24,this[e+2]=t>>>16,this[e+1]=t>>>8,this[e]=255&t):I(this,t,e,!0),e+4},c.prototype.writeUInt32BE=function(t,e,n){return t=+t,e|=0,n||A(this,t,e,4,4294967295,0),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):I(this,t,e,!1),e+4},c.prototype.writeIntLE=function(t,e,n,i){if(t=+t,e|=0,!i){var o=Math.pow(2,8*n-1);A(this,t,e,n,o-1,-o)}var r=0,s=1,a=0;for(this[e]=255&t;++r>0)-a&255;return e+n},c.prototype.writeIntBE=function(t,e,n,i){if(t=+t,e|=0,!i){var o=Math.pow(2,8*n-1);A(this,t,e,n,o-1,-o)}var r=n-1,s=1,a=0;for(this[e+r]=255&t;--r>=0&&(s*=256);)t<0&&0===a&&0!==this[e+r+1]&&(a=1),this[e+r]=(t/s>>0)-a&255;return e+n},c.prototype.writeInt8=function(t,e,n){return t=+t,e|=0,n||A(this,t,e,1,127,-128),c.TYPED_ARRAY_SUPPORT||(t=Math.floor(t)),t<0&&(t=255+t+1),this[e]=255&t,e+1},c.prototype.writeInt16LE=function(t,e,n){return t=+t,e|=0,n||A(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8):x(this,t,e,!0),e+2},c.prototype.writeInt16BE=function(t,e,n){return t=+t,e|=0,n||A(this,t,e,2,32767,-32768),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>8,this[e+1]=255&t):x(this,t,e,!1),e+2},c.prototype.writeInt32LE=function(t,e,n){return t=+t,e|=0,n||A(this,t,e,4,2147483647,-2147483648),c.TYPED_ARRAY_SUPPORT?(this[e]=255&t,this[e+1]=t>>>8,this[e+2]=t>>>16,this[e+3]=t>>>24):I(this,t,e,!0),e+4},c.prototype.writeInt32BE=function(t,e,n){return t=+t,e|=0,n||A(this,t,e,4,2147483647,-2147483648),t<0&&(t=4294967295+t+1),c.TYPED_ARRAY_SUPPORT?(this[e]=t>>>24,this[e+1]=t>>>16,this[e+2]=t>>>8,this[e+3]=255&t):I(this,t,e,!1),e+4},c.prototype.writeFloatLE=function(t,e,n){return D(this,t,e,!0,n)},c.prototype.writeFloatBE=function(t,e,n){return D(this,t,e,!1,n)},c.prototype.writeDoubleLE=function(t,e,n){return P(this,t,e,!0,n)},c.prototype.writeDoubleBE=function(t,e,n){return P(this,t,e,!1,n)},c.prototype.copy=function(t,e,n,i){if(n||(n=0),i||0===i||(i=this.length),e>=t.length&&(e=t.length),e||(e=0),i>0&&i=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),t.length-e=0;--o)t[o+e]=this[o+n];else if(r<1e3||!c.TYPED_ARRAY_SUPPORT)for(o=0;o>>=0,n=void 0===n?this.length:n>>>0,t||(t=0),"number"==typeof t)for(r=e;r55295&&n<57344){if(!o){if(n>56319){(e-=3)>-1&&r.push(239,191,189);continue}if(s+1===i){(e-=3)>-1&&r.push(239,191,189);continue}o=n;continue}if(n<56320){(e-=3)>-1&&r.push(239,191,189),o=n;continue}n=65536+(o-55296<<10|n-56320)}else o&&(e-=3)>-1&&r.push(239,191,189);if(o=null,n<128){if((e-=1)<0)break;r.push(n)}else if(n<2048){if((e-=2)<0)break;r.push(n>>6|192,63&n|128)}else if(n<65536){if((e-=3)<0)break;r.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((e-=4)<0)break;r.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return r}function G(t){return i.toByteArray(function(t){if((t=function(t){return t.trim?t.trim():t.replace(/^\s+|\s+$/g,"")}(t).replace(M,"")).length<2)return"";for(;t.length%4!=0;)t+="=";return t}(t))}function q(t,e,n,i){for(var o=0;o=e.length||o>=t.length);++o)e[o+n]=t[o];return o}}).call(this,n(55))},function(t,e,n){(function(t){!function(t,e){"use strict";function i(t,e){if(!t)throw new Error(e||"Assertion failed")}function o(t,e){t.super_=e;var n=function(){};n.prototype=e.prototype,t.prototype=new n,t.prototype.constructor=t}function r(t,e,n){if(r.isBN(t))return t;this.negative=0,this.words=null,this.length=0,this.red=null,null!==t&&("le"!==e&&"be"!==e||(n=e,e=10),this._init(t||0,e||10,n||"be"))}var s;"object"==typeof t?t.exports=r:e.BN=r,r.BN=r,r.wordSize=26;try{s="undefined"!=typeof window&&void 0!==window.Buffer?window.Buffer:n(804).Buffer}catch(t){}function a(t,e){var n=t.charCodeAt(e);return n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:n-48&15}function c(t,e,n){var i=a(t,n);return n-1>=e&&(i|=a(t,n-1)<<4),i}function l(t,e,n,i){for(var o=0,r=Math.min(t.length,n),s=e;s=49?a-49+10:a>=17?a-17+10:a}return o}r.isBN=function(t){return t instanceof r||null!==t&&"object"==typeof t&&t.constructor.wordSize===r.wordSize&&Array.isArray(t.words)},r.max=function(t,e){return t.cmp(e)>0?t:e},r.min=function(t,e){return t.cmp(e)<0?t:e},r.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),i(e===(0|e)&&e>=2&&e<=36);var o=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(o++,this.negative=1),o=0;o-=3)s=t[o]|t[o-1]<<8|t[o-2]<<16,this.words[r]|=s<>>26-a&67108863,(a+=24)>=26&&(a-=26,r++);else if("le"===n)for(o=0,r=0;o>>26-a&67108863,(a+=24)>=26&&(a-=26,r++);return this.strip()},r.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i=e;i-=2)o=c(t,e,i)<=18?(r-=18,s+=1,this.words[s]|=o>>>26):r+=8;else for(i=(t.length-e)%2==0?e+1:e;i=18?(r-=18,s+=1,this.words[s]|=o>>>26):r+=8;this.strip()},r.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var i=0,o=1;o<=67108863;o*=e)i++;i--,o=o/e|0;for(var r=t.length-n,s=r%i,a=Math.min(r,r-s)+n,c=0,u=n;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},r.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},r.prototype.inspect=function(){return(this.red?""};var u=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],h=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],d=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];function p(t,e,n){n.negative=e.negative^t.negative;var i=t.length+e.length|0;n.length=i,i=i-1|0;var o=0|t.words[0],r=0|e.words[0],s=o*r,a=67108863&s,c=s/67108864|0;n.words[0]=a;for(var l=1;l>>26,h=67108863&c,d=Math.min(l,e.length-1),p=Math.max(0,l-t.length+1);p<=d;p++){var _=l-p|0;u+=(s=(o=0|t.words[_])*(r=0|e.words[p])+h)/67108864|0,h=67108863&s}n.words[l]=0|h,c=0|u}return 0!==c?n.words[l]=0|c:n.length--,n.strip()}r.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var o=0,r=0,s=0;s>>24-o&16777215)||s!==this.length-1?u[6-c.length]+c+n:c+n,(o+=2)>=26&&(o-=26,s--)}for(0!==r&&(n=r.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var l=h[t],p=d[t];n="";var _=this.clone();for(_.negative=0;!_.isZero();){var m=_.modn(p).toString(t);n=(_=_.idivn(p)).isZero()?m+n:u[l-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!1,"Base should be between 2 and 36")},r.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},r.prototype.toJSON=function(){return this.toString(16)},r.prototype.toBuffer=function(t,e){return i(void 0!==s),this.toArrayLike(s,t,e)},r.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)},r.prototype.toArrayLike=function(t,e,n){var o=this.byteLength(),r=n||Math.max(1,o);i(o<=r,"byte array longer than desired length"),i(r>0,"Requested array length <= 0"),this.strip();var s,a,c="le"===e,l=new t(r),u=this.clone();if(c){for(a=0;!u.isZero();a++)s=u.andln(255),u.iushrn(8),l[a]=s;for(;a=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},r.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},r.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},r.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},r.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},r.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},r.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},r.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var i=0;it.length?this.clone().ixor(t):t.clone().ixor(this)},r.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},r.prototype.inotn=function(t){i("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var o=0;o0&&(this.words[o]=~this.words[o]&67108863>>26-n),this.strip()},r.prototype.notn=function(t){return this.clone().inotn(t)},r.prototype.setn=function(t,e){i("number"==typeof t&&t>=0);var n=t/26|0,o=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(n=this,i=t):(n=t,i=this);for(var o=0,r=0;r>>26;for(;0!==o&&r>>26;if(this.length=n.length,0!==o)this.words[this.length]=o,this.length++;else if(n!==this)for(;rt.length?this.clone().iadd(t):t.clone().iadd(this)},r.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,i,o=this.cmp(t);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(n=this,i=t):(n=t,i=this);for(var r=0,s=0;s>26,this.words[s]=67108863&e;for(;0!==r&&s>26,this.words[s]=67108863&e;if(0===r&&s>>13,p=0|s[1],_=8191&p,m=p>>>13,f=0|s[2],g=8191&f,$=f>>>13,E=0|s[3],y=8191&E,b=E>>>13,S=0|s[4],v=8191&S,C=S>>>13,N=0|s[5],T=8191&N,L=N>>>13,z=0|s[6],w=8191&z,O=z>>>13,R=0|s[7],A=8191&R,x=R>>>13,I=0|s[8],U=8191&I,D=I>>>13,P=0|s[9],M=8191&P,k=P>>>13,j=0|a[0],G=8191&j,q=j>>>13,F=0|a[1],B=8191&F,W=F>>>13,H=0|a[2],V=8191&H,K=H>>>13,X=0|a[3],J=8191&X,Y=X>>>13,Q=0|a[4],Z=8191&Q,tt=Q>>>13,et=0|a[5],nt=8191&et,it=et>>>13,ot=0|a[6],rt=8191&ot,st=ot>>>13,at=0|a[7],ct=8191&at,lt=at>>>13,ut=0|a[8],ht=8191&ut,dt=ut>>>13,pt=0|a[9],_t=8191&pt,mt=pt>>>13;n.negative=t.negative^e.negative,n.length=19;var ft=(l+(i=Math.imul(h,G))|0)+((8191&(o=(o=Math.imul(h,q))+Math.imul(d,G)|0))<<13)|0;l=((r=Math.imul(d,q))+(o>>>13)|0)+(ft>>>26)|0,ft&=67108863,i=Math.imul(_,G),o=(o=Math.imul(_,q))+Math.imul(m,G)|0,r=Math.imul(m,q);var gt=(l+(i=i+Math.imul(h,B)|0)|0)+((8191&(o=(o=o+Math.imul(h,W)|0)+Math.imul(d,B)|0))<<13)|0;l=((r=r+Math.imul(d,W)|0)+(o>>>13)|0)+(gt>>>26)|0,gt&=67108863,i=Math.imul(g,G),o=(o=Math.imul(g,q))+Math.imul($,G)|0,r=Math.imul($,q),i=i+Math.imul(_,B)|0,o=(o=o+Math.imul(_,W)|0)+Math.imul(m,B)|0,r=r+Math.imul(m,W)|0;var $t=(l+(i=i+Math.imul(h,V)|0)|0)+((8191&(o=(o=o+Math.imul(h,K)|0)+Math.imul(d,V)|0))<<13)|0;l=((r=r+Math.imul(d,K)|0)+(o>>>13)|0)+($t>>>26)|0,$t&=67108863,i=Math.imul(y,G),o=(o=Math.imul(y,q))+Math.imul(b,G)|0,r=Math.imul(b,q),i=i+Math.imul(g,B)|0,o=(o=o+Math.imul(g,W)|0)+Math.imul($,B)|0,r=r+Math.imul($,W)|0,i=i+Math.imul(_,V)|0,o=(o=o+Math.imul(_,K)|0)+Math.imul(m,V)|0,r=r+Math.imul(m,K)|0;var Et=(l+(i=i+Math.imul(h,J)|0)|0)+((8191&(o=(o=o+Math.imul(h,Y)|0)+Math.imul(d,J)|0))<<13)|0;l=((r=r+Math.imul(d,Y)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,i=Math.imul(v,G),o=(o=Math.imul(v,q))+Math.imul(C,G)|0,r=Math.imul(C,q),i=i+Math.imul(y,B)|0,o=(o=o+Math.imul(y,W)|0)+Math.imul(b,B)|0,r=r+Math.imul(b,W)|0,i=i+Math.imul(g,V)|0,o=(o=o+Math.imul(g,K)|0)+Math.imul($,V)|0,r=r+Math.imul($,K)|0,i=i+Math.imul(_,J)|0,o=(o=o+Math.imul(_,Y)|0)+Math.imul(m,J)|0,r=r+Math.imul(m,Y)|0;var yt=(l+(i=i+Math.imul(h,Z)|0)|0)+((8191&(o=(o=o+Math.imul(h,tt)|0)+Math.imul(d,Z)|0))<<13)|0;l=((r=r+Math.imul(d,tt)|0)+(o>>>13)|0)+(yt>>>26)|0,yt&=67108863,i=Math.imul(T,G),o=(o=Math.imul(T,q))+Math.imul(L,G)|0,r=Math.imul(L,q),i=i+Math.imul(v,B)|0,o=(o=o+Math.imul(v,W)|0)+Math.imul(C,B)|0,r=r+Math.imul(C,W)|0,i=i+Math.imul(y,V)|0,o=(o=o+Math.imul(y,K)|0)+Math.imul(b,V)|0,r=r+Math.imul(b,K)|0,i=i+Math.imul(g,J)|0,o=(o=o+Math.imul(g,Y)|0)+Math.imul($,J)|0,r=r+Math.imul($,Y)|0,i=i+Math.imul(_,Z)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(m,Z)|0,r=r+Math.imul(m,tt)|0;var bt=(l+(i=i+Math.imul(h,nt)|0)|0)+((8191&(o=(o=o+Math.imul(h,it)|0)+Math.imul(d,nt)|0))<<13)|0;l=((r=r+Math.imul(d,it)|0)+(o>>>13)|0)+(bt>>>26)|0,bt&=67108863,i=Math.imul(w,G),o=(o=Math.imul(w,q))+Math.imul(O,G)|0,r=Math.imul(O,q),i=i+Math.imul(T,B)|0,o=(o=o+Math.imul(T,W)|0)+Math.imul(L,B)|0,r=r+Math.imul(L,W)|0,i=i+Math.imul(v,V)|0,o=(o=o+Math.imul(v,K)|0)+Math.imul(C,V)|0,r=r+Math.imul(C,K)|0,i=i+Math.imul(y,J)|0,o=(o=o+Math.imul(y,Y)|0)+Math.imul(b,J)|0,r=r+Math.imul(b,Y)|0,i=i+Math.imul(g,Z)|0,o=(o=o+Math.imul(g,tt)|0)+Math.imul($,Z)|0,r=r+Math.imul($,tt)|0,i=i+Math.imul(_,nt)|0,o=(o=o+Math.imul(_,it)|0)+Math.imul(m,nt)|0,r=r+Math.imul(m,it)|0;var St=(l+(i=i+Math.imul(h,rt)|0)|0)+((8191&(o=(o=o+Math.imul(h,st)|0)+Math.imul(d,rt)|0))<<13)|0;l=((r=r+Math.imul(d,st)|0)+(o>>>13)|0)+(St>>>26)|0,St&=67108863,i=Math.imul(A,G),o=(o=Math.imul(A,q))+Math.imul(x,G)|0,r=Math.imul(x,q),i=i+Math.imul(w,B)|0,o=(o=o+Math.imul(w,W)|0)+Math.imul(O,B)|0,r=r+Math.imul(O,W)|0,i=i+Math.imul(T,V)|0,o=(o=o+Math.imul(T,K)|0)+Math.imul(L,V)|0,r=r+Math.imul(L,K)|0,i=i+Math.imul(v,J)|0,o=(o=o+Math.imul(v,Y)|0)+Math.imul(C,J)|0,r=r+Math.imul(C,Y)|0,i=i+Math.imul(y,Z)|0,o=(o=o+Math.imul(y,tt)|0)+Math.imul(b,Z)|0,r=r+Math.imul(b,tt)|0,i=i+Math.imul(g,nt)|0,o=(o=o+Math.imul(g,it)|0)+Math.imul($,nt)|0,r=r+Math.imul($,it)|0,i=i+Math.imul(_,rt)|0,o=(o=o+Math.imul(_,st)|0)+Math.imul(m,rt)|0,r=r+Math.imul(m,st)|0;var vt=(l+(i=i+Math.imul(h,ct)|0)|0)+((8191&(o=(o=o+Math.imul(h,lt)|0)+Math.imul(d,ct)|0))<<13)|0;l=((r=r+Math.imul(d,lt)|0)+(o>>>13)|0)+(vt>>>26)|0,vt&=67108863,i=Math.imul(U,G),o=(o=Math.imul(U,q))+Math.imul(D,G)|0,r=Math.imul(D,q),i=i+Math.imul(A,B)|0,o=(o=o+Math.imul(A,W)|0)+Math.imul(x,B)|0,r=r+Math.imul(x,W)|0,i=i+Math.imul(w,V)|0,o=(o=o+Math.imul(w,K)|0)+Math.imul(O,V)|0,r=r+Math.imul(O,K)|0,i=i+Math.imul(T,J)|0,o=(o=o+Math.imul(T,Y)|0)+Math.imul(L,J)|0,r=r+Math.imul(L,Y)|0,i=i+Math.imul(v,Z)|0,o=(o=o+Math.imul(v,tt)|0)+Math.imul(C,Z)|0,r=r+Math.imul(C,tt)|0,i=i+Math.imul(y,nt)|0,o=(o=o+Math.imul(y,it)|0)+Math.imul(b,nt)|0,r=r+Math.imul(b,it)|0,i=i+Math.imul(g,rt)|0,o=(o=o+Math.imul(g,st)|0)+Math.imul($,rt)|0,r=r+Math.imul($,st)|0,i=i+Math.imul(_,ct)|0,o=(o=o+Math.imul(_,lt)|0)+Math.imul(m,ct)|0,r=r+Math.imul(m,lt)|0;var Ct=(l+(i=i+Math.imul(h,ht)|0)|0)+((8191&(o=(o=o+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;l=((r=r+Math.imul(d,dt)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,i=Math.imul(M,G),o=(o=Math.imul(M,q))+Math.imul(k,G)|0,r=Math.imul(k,q),i=i+Math.imul(U,B)|0,o=(o=o+Math.imul(U,W)|0)+Math.imul(D,B)|0,r=r+Math.imul(D,W)|0,i=i+Math.imul(A,V)|0,o=(o=o+Math.imul(A,K)|0)+Math.imul(x,V)|0,r=r+Math.imul(x,K)|0,i=i+Math.imul(w,J)|0,o=(o=o+Math.imul(w,Y)|0)+Math.imul(O,J)|0,r=r+Math.imul(O,Y)|0,i=i+Math.imul(T,Z)|0,o=(o=o+Math.imul(T,tt)|0)+Math.imul(L,Z)|0,r=r+Math.imul(L,tt)|0,i=i+Math.imul(v,nt)|0,o=(o=o+Math.imul(v,it)|0)+Math.imul(C,nt)|0,r=r+Math.imul(C,it)|0,i=i+Math.imul(y,rt)|0,o=(o=o+Math.imul(y,st)|0)+Math.imul(b,rt)|0,r=r+Math.imul(b,st)|0,i=i+Math.imul(g,ct)|0,o=(o=o+Math.imul(g,lt)|0)+Math.imul($,ct)|0,r=r+Math.imul($,lt)|0,i=i+Math.imul(_,ht)|0,o=(o=o+Math.imul(_,dt)|0)+Math.imul(m,ht)|0,r=r+Math.imul(m,dt)|0;var Nt=(l+(i=i+Math.imul(h,_t)|0)|0)+((8191&(o=(o=o+Math.imul(h,mt)|0)+Math.imul(d,_t)|0))<<13)|0;l=((r=r+Math.imul(d,mt)|0)+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,i=Math.imul(M,B),o=(o=Math.imul(M,W))+Math.imul(k,B)|0,r=Math.imul(k,W),i=i+Math.imul(U,V)|0,o=(o=o+Math.imul(U,K)|0)+Math.imul(D,V)|0,r=r+Math.imul(D,K)|0,i=i+Math.imul(A,J)|0,o=(o=o+Math.imul(A,Y)|0)+Math.imul(x,J)|0,r=r+Math.imul(x,Y)|0,i=i+Math.imul(w,Z)|0,o=(o=o+Math.imul(w,tt)|0)+Math.imul(O,Z)|0,r=r+Math.imul(O,tt)|0,i=i+Math.imul(T,nt)|0,o=(o=o+Math.imul(T,it)|0)+Math.imul(L,nt)|0,r=r+Math.imul(L,it)|0,i=i+Math.imul(v,rt)|0,o=(o=o+Math.imul(v,st)|0)+Math.imul(C,rt)|0,r=r+Math.imul(C,st)|0,i=i+Math.imul(y,ct)|0,o=(o=o+Math.imul(y,lt)|0)+Math.imul(b,ct)|0,r=r+Math.imul(b,lt)|0,i=i+Math.imul(g,ht)|0,o=(o=o+Math.imul(g,dt)|0)+Math.imul($,ht)|0,r=r+Math.imul($,dt)|0;var Tt=(l+(i=i+Math.imul(_,_t)|0)|0)+((8191&(o=(o=o+Math.imul(_,mt)|0)+Math.imul(m,_t)|0))<<13)|0;l=((r=r+Math.imul(m,mt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,i=Math.imul(M,V),o=(o=Math.imul(M,K))+Math.imul(k,V)|0,r=Math.imul(k,K),i=i+Math.imul(U,J)|0,o=(o=o+Math.imul(U,Y)|0)+Math.imul(D,J)|0,r=r+Math.imul(D,Y)|0,i=i+Math.imul(A,Z)|0,o=(o=o+Math.imul(A,tt)|0)+Math.imul(x,Z)|0,r=r+Math.imul(x,tt)|0,i=i+Math.imul(w,nt)|0,o=(o=o+Math.imul(w,it)|0)+Math.imul(O,nt)|0,r=r+Math.imul(O,it)|0,i=i+Math.imul(T,rt)|0,o=(o=o+Math.imul(T,st)|0)+Math.imul(L,rt)|0,r=r+Math.imul(L,st)|0,i=i+Math.imul(v,ct)|0,o=(o=o+Math.imul(v,lt)|0)+Math.imul(C,ct)|0,r=r+Math.imul(C,lt)|0,i=i+Math.imul(y,ht)|0,o=(o=o+Math.imul(y,dt)|0)+Math.imul(b,ht)|0,r=r+Math.imul(b,dt)|0;var Lt=(l+(i=i+Math.imul(g,_t)|0)|0)+((8191&(o=(o=o+Math.imul(g,mt)|0)+Math.imul($,_t)|0))<<13)|0;l=((r=r+Math.imul($,mt)|0)+(o>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,i=Math.imul(M,J),o=(o=Math.imul(M,Y))+Math.imul(k,J)|0,r=Math.imul(k,Y),i=i+Math.imul(U,Z)|0,o=(o=o+Math.imul(U,tt)|0)+Math.imul(D,Z)|0,r=r+Math.imul(D,tt)|0,i=i+Math.imul(A,nt)|0,o=(o=o+Math.imul(A,it)|0)+Math.imul(x,nt)|0,r=r+Math.imul(x,it)|0,i=i+Math.imul(w,rt)|0,o=(o=o+Math.imul(w,st)|0)+Math.imul(O,rt)|0,r=r+Math.imul(O,st)|0,i=i+Math.imul(T,ct)|0,o=(o=o+Math.imul(T,lt)|0)+Math.imul(L,ct)|0,r=r+Math.imul(L,lt)|0,i=i+Math.imul(v,ht)|0,o=(o=o+Math.imul(v,dt)|0)+Math.imul(C,ht)|0,r=r+Math.imul(C,dt)|0;var zt=(l+(i=i+Math.imul(y,_t)|0)|0)+((8191&(o=(o=o+Math.imul(y,mt)|0)+Math.imul(b,_t)|0))<<13)|0;l=((r=r+Math.imul(b,mt)|0)+(o>>>13)|0)+(zt>>>26)|0,zt&=67108863,i=Math.imul(M,Z),o=(o=Math.imul(M,tt))+Math.imul(k,Z)|0,r=Math.imul(k,tt),i=i+Math.imul(U,nt)|0,o=(o=o+Math.imul(U,it)|0)+Math.imul(D,nt)|0,r=r+Math.imul(D,it)|0,i=i+Math.imul(A,rt)|0,o=(o=o+Math.imul(A,st)|0)+Math.imul(x,rt)|0,r=r+Math.imul(x,st)|0,i=i+Math.imul(w,ct)|0,o=(o=o+Math.imul(w,lt)|0)+Math.imul(O,ct)|0,r=r+Math.imul(O,lt)|0,i=i+Math.imul(T,ht)|0,o=(o=o+Math.imul(T,dt)|0)+Math.imul(L,ht)|0,r=r+Math.imul(L,dt)|0;var wt=(l+(i=i+Math.imul(v,_t)|0)|0)+((8191&(o=(o=o+Math.imul(v,mt)|0)+Math.imul(C,_t)|0))<<13)|0;l=((r=r+Math.imul(C,mt)|0)+(o>>>13)|0)+(wt>>>26)|0,wt&=67108863,i=Math.imul(M,nt),o=(o=Math.imul(M,it))+Math.imul(k,nt)|0,r=Math.imul(k,it),i=i+Math.imul(U,rt)|0,o=(o=o+Math.imul(U,st)|0)+Math.imul(D,rt)|0,r=r+Math.imul(D,st)|0,i=i+Math.imul(A,ct)|0,o=(o=o+Math.imul(A,lt)|0)+Math.imul(x,ct)|0,r=r+Math.imul(x,lt)|0,i=i+Math.imul(w,ht)|0,o=(o=o+Math.imul(w,dt)|0)+Math.imul(O,ht)|0,r=r+Math.imul(O,dt)|0;var Ot=(l+(i=i+Math.imul(T,_t)|0)|0)+((8191&(o=(o=o+Math.imul(T,mt)|0)+Math.imul(L,_t)|0))<<13)|0;l=((r=r+Math.imul(L,mt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,i=Math.imul(M,rt),o=(o=Math.imul(M,st))+Math.imul(k,rt)|0,r=Math.imul(k,st),i=i+Math.imul(U,ct)|0,o=(o=o+Math.imul(U,lt)|0)+Math.imul(D,ct)|0,r=r+Math.imul(D,lt)|0,i=i+Math.imul(A,ht)|0,o=(o=o+Math.imul(A,dt)|0)+Math.imul(x,ht)|0,r=r+Math.imul(x,dt)|0;var Rt=(l+(i=i+Math.imul(w,_t)|0)|0)+((8191&(o=(o=o+Math.imul(w,mt)|0)+Math.imul(O,_t)|0))<<13)|0;l=((r=r+Math.imul(O,mt)|0)+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,i=Math.imul(M,ct),o=(o=Math.imul(M,lt))+Math.imul(k,ct)|0,r=Math.imul(k,lt),i=i+Math.imul(U,ht)|0,o=(o=o+Math.imul(U,dt)|0)+Math.imul(D,ht)|0,r=r+Math.imul(D,dt)|0;var At=(l+(i=i+Math.imul(A,_t)|0)|0)+((8191&(o=(o=o+Math.imul(A,mt)|0)+Math.imul(x,_t)|0))<<13)|0;l=((r=r+Math.imul(x,mt)|0)+(o>>>13)|0)+(At>>>26)|0,At&=67108863,i=Math.imul(M,ht),o=(o=Math.imul(M,dt))+Math.imul(k,ht)|0,r=Math.imul(k,dt);var xt=(l+(i=i+Math.imul(U,_t)|0)|0)+((8191&(o=(o=o+Math.imul(U,mt)|0)+Math.imul(D,_t)|0))<<13)|0;l=((r=r+Math.imul(D,mt)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863;var It=(l+(i=Math.imul(M,_t))|0)+((8191&(o=(o=Math.imul(M,mt))+Math.imul(k,_t)|0))<<13)|0;return l=((r=Math.imul(k,mt))+(o>>>13)|0)+(It>>>26)|0,It&=67108863,c[0]=ft,c[1]=gt,c[2]=$t,c[3]=Et,c[4]=yt,c[5]=bt,c[6]=St,c[7]=vt,c[8]=Ct,c[9]=Nt,c[10]=Tt,c[11]=Lt,c[12]=zt,c[13]=wt,c[14]=Ot,c[15]=Rt,c[16]=At,c[17]=xt,c[18]=It,0!==l&&(c[19]=l,n.length++),n};function m(t,e,n){return(new f).mulp(t,e,n)}function f(t,e){this.x=t,this.y=e}Math.imul||(_=p),r.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?_(this,t,e):n<63?p(this,t,e):n<1024?function(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var i=0,o=0,r=0;r>>26)|0)>>>26,s&=67108863}n.words[r]=a,i=s,s=o}return 0!==i?n.words[r]=i:n.length--,n.strip()}(this,t,e):m(this,t,e)},f.prototype.makeRBT=function(t){for(var e=new Array(t),n=r.prototype._countBits(t)-1,i=0;i>=1;return i},f.prototype.permute=function(t,e,n,i,o,r){for(var s=0;s>>=1)o++;return 1<>>=13,n[2*s+1]=8191&r,r>>>=13;for(s=2*e;s>=26,e+=o/67108864|0,e+=r>>>26,this.words[n]=67108863&r}return 0!==e&&(this.words[n]=e,this.length++),this},r.prototype.muln=function(t){return this.clone().imuln(t)},r.prototype.sqr=function(){return this.mul(this)},r.prototype.isqr=function(){return this.imul(this.clone())},r.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n>>o}return e}(t);if(0===e.length)return new r(1);for(var n=this,i=0;i=0);var e,n=t%26,o=(t-n)/26,r=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(e=0;e>>26-n}s&&(this.words[e]=s,this.length++)}if(0!==o){for(e=this.length-1;e>=0;e--)this.words[e+o]=this.words[e];for(e=0;e=0),o=e?(e-e%26)/26:0;var r=t%26,s=Math.min((t-r)/26,this.length),a=67108863^67108863>>>r<s)for(this.length-=s,l=0;l=0&&(0!==u||l>=o);l--){var h=0|this.words[l];this.words[l]=u<<26-r|h>>>r,u=h&a}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this.strip()},r.prototype.ishrn=function(t,e,n){return i(0===this.negative),this.iushrn(t,e,n)},r.prototype.shln=function(t){return this.clone().ishln(t)},r.prototype.ushln=function(t){return this.clone().iushln(t)},r.prototype.shrn=function(t){return this.clone().ishrn(t)},r.prototype.ushrn=function(t){return this.clone().iushrn(t)},r.prototype.testn=function(t){i("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,o=1<=0);var e=t%26,n=(t-e)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var o=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},r.prototype.isubn=function(t){if(i("number"==typeof t),i(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(c/67108864|0),this.words[o+n]=67108863&r}for(;o>26,this.words[o+n]=67108863&r;if(0===a)return this.strip();for(i(-1===a),a=0,o=0;o>26,this.words[o]=67108863&r;return this.negative=1,this.strip()},r.prototype._wordDiv=function(t,e){var n=(this.length,t.length),i=this.clone(),o=t,s=0|o.words[o.length-1];0!==(n=26-this._countBits(s))&&(o=o.ushln(n),i.iushln(n),s=0|o.words[o.length-1]);var a,c=i.length-o.length;if("mod"!==e){(a=new r(null)).length=c+1,a.words=new Array(a.length);for(var l=0;l=0;h--){var d=67108864*(0|i.words[o.length+h])+(0|i.words[o.length+h-1]);for(d=Math.min(d/s|0,67108863),i._ishlnsubmul(o,d,h);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(o,1,h),i.isZero()||(i.negative^=1);a&&(a.words[h]=d)}return a&&a.strip(),i.strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:a||null,mod:i}},r.prototype.divmod=function(t,e,n){return i(!t.isZero()),this.isZero()?{div:new r(0),mod:new r(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(o=a.div.neg()),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.iadd(t)),{div:o,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(o=a.div.neg()),{div:o,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new r(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new r(this.modn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new r(this.modn(t.words[0]))}:this._wordDiv(t,e);var o,s,a},r.prototype.div=function(t){return this.divmod(t,"div",!1).div},r.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},r.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},r.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,i=t.ushrn(1),o=t.andln(1),r=n.cmp(i);return r<0||1===o&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},r.prototype.modn=function(t){i(t<=67108863);for(var e=(1<<26)%t,n=0,o=this.length-1;o>=0;o--)n=(e*n+(0|this.words[o]))%t;return n},r.prototype.idivn=function(t){i(t<=67108863);for(var e=0,n=this.length-1;n>=0;n--){var o=(0|this.words[n])+67108864*e;this.words[n]=o/t|0,e=o%t}return this.strip()},r.prototype.divn=function(t){return this.clone().idivn(t)},r.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new r(1),s=new r(0),a=new r(0),c=new r(1),l=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++l;for(var u=n.clone(),h=e.clone();!e.isZero();){for(var d=0,p=1;0==(e.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(u),s.isub(h)),o.iushrn(1),s.iushrn(1);for(var _=0,m=1;0==(n.words[0]&m)&&_<26;++_,m<<=1);if(_>0)for(n.iushrn(_);_-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(u),c.isub(h)),a.iushrn(1),c.iushrn(1);e.cmp(n)>=0?(e.isub(n),o.isub(a),s.isub(c)):(n.isub(e),a.isub(o),c.isub(s))}return{a:a,b:c,gcd:n.iushln(l)}},r.prototype._invmp=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,s=new r(1),a=new r(0),c=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,u=1;0==(e.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(e.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var h=0,d=1;0==(n.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(n.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);e.cmp(n)>=0?(e.isub(n),s.isub(a)):(n.isub(e),a.isub(s))}return(o=0===e.cmpn(1)?s:a).cmpn(0)<0&&o.iadd(t),o},r.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var i=0;e.isEven()&&n.isEven();i++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=e.cmp(n);if(o<0){var r=e;e=n,n=r}else if(0===o||0===n.cmpn(1))break;e.isub(n)}return n.iushln(i)},r.prototype.invm=function(t){return this.egcd(t).a.umod(t)},r.prototype.isEven=function(){return 0==(1&this.words[0])},r.prototype.isOdd=function(){return 1==(1&this.words[0])},r.prototype.andln=function(t){return this.words[0]&t},r.prototype.bincn=function(t){i("number"==typeof t);var e=t%26,n=(t-e)/26,o=1<>>26,a&=67108863,this.words[s]=a}return 0!==r&&(this.words[s]=r,this.length++),this},r.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},r.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this.strip(),this.length>1)e=1;else{n&&(t=-t),i(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:ot.length)return 1;if(this.length=0;n--){var i=0|this.words[n],o=0|t.words[n];if(i!==o){io&&(e=1);break}}return e},r.prototype.gtn=function(t){return 1===this.cmpn(t)},r.prototype.gt=function(t){return 1===this.cmp(t)},r.prototype.gten=function(t){return this.cmpn(t)>=0},r.prototype.gte=function(t){return this.cmp(t)>=0},r.prototype.ltn=function(t){return-1===this.cmpn(t)},r.prototype.lt=function(t){return-1===this.cmp(t)},r.prototype.lten=function(t){return this.cmpn(t)<=0},r.prototype.lte=function(t){return this.cmp(t)<=0},r.prototype.eqn=function(t){return 0===this.cmpn(t)},r.prototype.eq=function(t){return 0===this.cmp(t)},r.red=function(t){return new v(t)},r.prototype.toRed=function(t){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},r.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},r.prototype._forceRed=function(t){return this.red=t,this},r.prototype.forceRed=function(t){return i(!this.red,"Already a number in reduction context"),this._forceRed(t)},r.prototype.redAdd=function(t){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},r.prototype.redIAdd=function(t){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},r.prototype.redSub=function(t){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},r.prototype.redISub=function(t){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},r.prototype.redShl=function(t){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},r.prototype.redMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},r.prototype.redIMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},r.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},r.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},r.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},r.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},r.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},r.prototype.redPow=function(t){return i(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var g={k256:null,p224:null,p192:null,p25519:null};function $(t,e){this.name=t,this.p=new r(e,16),this.n=this.p.bitLength(),this.k=new r(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function E(){$.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function y(){$.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function b(){$.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function S(){$.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function v(t){if("string"==typeof t){var e=r._prime(t);this.m=e.p,this.prime=e}else i(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function C(t){v.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new r(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}$.prototype._tmp=function(){var t=new r(null);return t.words=new Array(Math.ceil(this.n/13)),t},$.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var i=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},$.prototype.split=function(t,e){t.iushrn(this.n,0,e)},$.prototype.imulK=function(t){return t.imul(this.k)},o(E,$),E.prototype.split=function(t,e){for(var n=Math.min(t.length,9),i=0;i>>22,o=r}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},E.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=o,e=i}return 0!==e&&(t.words[t.length++]=e),t},r._prime=function(t){if(g[t])return g[t];var e;if("k256"===t)e=new E;else if("p224"===t)e=new y;else if("p192"===t)e=new b;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new S}return g[t]=e,e},v.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},v.prototype._verify2=function(t,e){i(0==(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},v.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):t.umod(this.m)._forceRed(this)},v.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},v.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},v.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},v.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},v.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},v.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},v.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},v.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},v.prototype.isqr=function(t){return this.imul(t,t.clone())},v.prototype.sqr=function(t){return this.mul(t,t)},v.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2==1),3===e){var n=this.m.add(new r(1)).iushrn(2);return this.pow(t,n)}for(var o=this.m.subn(1),s=0;!o.isZero()&&0===o.andln(1);)s++,o.iushrn(1);i(!o.isZero());var a=new r(1).toRed(this),c=a.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new r(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var h=this.pow(u,o),d=this.pow(t,o.addn(1).iushrn(1)),p=this.pow(t,o),_=s;0!==p.cmp(a);){for(var m=p,f=0;0!==m.cmp(a);f++)m=m.redSqr();i(f<_);var g=this.pow(h,new r(1).iushln(_-f-1));d=d.redMul(g),h=g.redSqr(),p=p.redMul(h),_=f}return d},v.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},v.prototype.pow=function(t,e){if(e.isZero())return new r(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new r(1).toRed(this),n[1]=t;for(var i=2;i=0;i--){for(var l=e.words[i],u=c-1;u>=0;u--){var h=l>>u&1;o!==n[0]&&(o=this.sqr(o)),0!==h||0!==s?(s<<=1,s|=h,(4===++a||0===i&&0===u)&&(o=this.mul(o,n[s]),a=0,s=0)):a=0}c=26}return o},v.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},v.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},r.mont=function(t){return new C(t)},o(C,v),C.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},C.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},C.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(i).iushrn(this.shift),r=o;return o.cmp(this.m)>=0?r=o.isub(this.m):o.cmpn(0)<0&&(r=o.iadd(this.m)),r._forceRed(this)},C.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new r(0)._forceRed(this);var n=t.mul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(i).iushrn(this.shift),s=o;return o.cmp(this.m)>=0?s=o.isub(this.m):o.cmpn(0)<0&&(s=o.iadd(this.m)),s._forceRed(this)},C.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(286)(t))},function(t,e,n){"use strict";var i=n(226);e.a=i.a},function(t,e,n){"use strict";function i({props:t,states:e,muiFormControl:n}){return e.reduce((e,i)=>(e[i]=t[i],n&&void 0===t[i]&&(e[i]=n[i]),e),{})}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return c})),n.d(e,"b",(function(){return l})),n.d(e,"c",(function(){return u}));var i=n(0),o=(n(402),n(57)),r=(n(630),n(269),n(66),n(99)),s=n(119),a=n(335),c=Object(o.f)((function(t,e){var n=t.styles,c=Object(s.a)([n],void 0,Object(i.useContext)(o.c)),l=Object(i.useRef)();return Object(i.useLayoutEffect)((function(){var t=e.key+"-global",n=new a.a({key:t,nonce:e.sheet.nonce,container:e.sheet.container,speedy:e.sheet.isSpeedy}),i=!1,o=document.querySelector('style[data-emotion="'+t+" "+c.name+'"]');return e.sheet.tags.length&&(n.before=e.sheet.tags[0]),null!==o&&(i=!0,o.setAttribute("data-emotion",t),n.hydrate([o])),l.current=[n,i],function(){n.flush()}}),[e]),Object(i.useLayoutEffect)((function(){var t=l.current,n=t[0];if(t[1])t[1]=!1;else{if(void 0!==c.next&&Object(r.b)(e,c.next,!0),n.tags.length){var i=n.tags[n.tags.length-1].nextElementSibling;n.before=i,n.flush()}e.insert("",c,n,!1)}}),[e,c.name]),null}));function l(){for(var t=arguments.length,e=new Array(t),n=0;nnull},l=n(75),u=n(58),h=n(78),d=n(401),p=n(352).a,_=n(52),m=n(115),f=n(264),g=n(65),$=n(43),E=n(21),y=n(134);const b={configure:t=>{console.warn(["MUI: `ClassNameGenerator` import from `@mui/material/utils` is outdated and might cause unexpected issues.","","You should use `import { unstable_ClassNameGenerator } from '@mui/material/className'` instead","","The detail of the issue: https://github.com/mui/material-ui/issues/30011#issuecomment-1024993401","","The updated documentation: https://mui.com/guides/classname-generator/"].join("\n")),i.a.configure(t)}}},function(t,e,n){"use strict";n.d(e,"a",(function(){return l})),n.d(e,"b",(function(){return m})),n.d(e,"c",(function(){return h})),n.d(e,"d",(function(){return p})),n.d(e,"e",(function(){return a})),n.d(e,"f",(function(){return u}));var i=n(0),o=n(402),r=(n(1),n(269),n(403),n(99)),s=n(119),a={}.hasOwnProperty,c=Object(i.createContext)("undefined"!=typeof HTMLElement?Object(o.a)({key:"css"}):null);var l=c.Provider,u=function(t){return Object(i.forwardRef)((function(e,n){var o=Object(i.useContext)(c);return t(e,o,n)}))},h=Object(i.createContext)({});var d="__EMOTION_TYPE_PLEASE_DO_NOT_USE__",p=function(t,e){var n={};for(var i in e)a.call(e,i)&&(n[i]=e[i]);return n[d]=t,n},_=function(){return null},m=u((function(t,e,n){var o=t.css;"string"==typeof o&&void 0!==e.registered[o]&&(o=e.registered[o]);var c=t[d],l=[o],u="";"string"==typeof t.className?u=Object(r.a)(e.registered,l,t.className):null!=t.className&&(u=t.className+" ");var p=Object(s.a)(l,void 0,Object(i.useContext)(h));Object(r.b)(e,p,"string"==typeof c);u+=e.key+"-"+p.name;var m={};for(var f in t)a.call(t,f)&&"css"!==f&&f!==d&&(m[f]=t[f]);m.ref=n,m.className=u;var g=Object(i.createElement)(c,m),$=Object(i.createElement)(_,null);return Object(i.createElement)(i.Fragment,null,$,g)}))},function(t,e,n){"use strict";var i=n(111);e.a=i.a},function(t,e,n){"use strict";n.d(e,"f",(function(){return o})),n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return a})),n.d(e,"d",(function(){return c})),n.d(e,"c",(function(){return l})),n.d(e,"e",(function(){return u}));n(23);var i=n(227);n(109);const o={xs:0,sm:600,md:900,lg:1200,xl:1536},r={keys:["xs","sm","md","lg","xl"],up:t=>`@media (min-width:${o[t]}px)`};function s(t,e,n){const i=t.theme||{};if(Array.isArray(e)){const t=i.breakpoints||r;return e.reduce((i,o,r)=>(i[t.up(t.keys[r])]=n(e[r]),i),{})}if("object"==typeof e){const t=i.breakpoints||r;return Object.keys(e).reduce((i,r)=>{if(-1!==Object.keys(t.values||o).indexOf(r)){i[t.up(r)]=n(e[r],r)}else{const t=r;i[t]=e[t]}return i},{})}return n(e)}function a(t={}){var e;return(null==(e=t.keys)?void 0:e.reduce((e,n)=>(e[t.up(n)]={},e),{}))||{}}function c(t,e){return t.reduce((t,e)=>{const n=t[e];return(!n||0===Object.keys(n).length)&&delete t[e],t},e)}function l(t,...e){const n=a(t),o=[n,...e].reduce((t,e)=>Object(i.a)(t,e),{});return c(Object.keys(n),o)}function u({values:t,breakpoints:e,base:n}){const i=n||function(t,e){if("object"!=typeof t)return{};const n={},i=Object.keys(e);return Array.isArray(t)?i.forEach((e,i)=>{i{null!=t[e]&&(n[e]=!0)}),n}(t,e),o=Object.keys(i);if(0===o.length)return t;let r;return o.reduce((e,n,i)=>(Array.isArray(t)?(e[n]=null!=t[i]?t[i]:t[r],r=i):"object"==typeof t?(e[n]=null!=t[n]?t[n]:t[r],r=n):e[n]=t,e),{})}},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiInputBase",t)}const s=Object(o.a)("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return a}));var i=n(1),o=n(15),r=n(16),s=n(60);function a(t){return Object(o.a)("MuiOutlinedInput",t)}const c=Object(i.a)({},s.a,Object(r.a)("MuiOutlinedInput",["root","notchedOutline","input"]));e.a=c},function(t,e,n){"use strict";n.d(e,"b",(function(){return a}));var i=n(1),o=n(15),r=n(16),s=n(60);function a(t){return Object(o.a)("MuiFilledInput",t)}const c=Object(i.a)({},s.a,Object(r.a)("MuiFilledInput",["root","underline","input"]));e.a=c},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiTouchRipple",t)}const s=Object(o.a)("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]);e.a=s},function(t,e,n){"use strict";n.r(e);var i=n(100);n.d(e,"default",(function(){return i.a}));var o=n(190);n.d(e,"paperClasses",(function(){return o.a})),n.d(e,"getPaperUtilityClass",(function(){return o.b}))},function(t,e,n){"use strict";var i=n(1026);e.a=i.a},function(t,e,n){"use strict";var i=n(859),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},r={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},s={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},a={};function c(t){return i.isMemo(t)?s:a[t.$$typeof]||o}a[i.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},a[i.Memo]=s;var l=Object.defineProperty,u=Object.getOwnPropertyNames,h=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,p=Object.getPrototypeOf,_=Object.prototype;t.exports=function t(e,n,i){if("string"!=typeof n){if(_){var o=p(n);o&&o!==_&&t(e,o,i)}var s=u(n);h&&(s=s.concat(h(n)));for(var a=c(e),m=c(n),f=0;f(void 0===e[n]&&(e[n]=t(n)),e[n])}(t=>{if(t.length>2){if(!c[t])return[t];t=c[t]}const[e,n]=t.split(""),i=s[e],o=a[n]||"";return Array.isArray(o)?o.map(t=>i+t):[i+o]}),u=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],h=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"],d=[...u,...h];function p(t,e,n,i){var r;const s=null!=(r=Object(o.b)(t,e,!1))?r:n;return"number"==typeof s?t=>"string"==typeof t?t:s*t:Array.isArray(s)?t=>"string"==typeof t?t:s[t]:"function"==typeof s?s:()=>{}}function _(t){return p(t,"spacing",8)}function m(t,e){if("string"==typeof e||null==e)return e;const n=t(Math.abs(e));return e>=0?n:"number"==typeof n?-n:"-"+n}function f(t,e,n,o){if(-1===e.indexOf(n))return null;const r=function(t,e){return n=>t.reduce((t,i)=>(t[i]=m(e,n),t),{})}(l(n),o),s=t[n];return Object(i.b)(t,s,r)}function g(t,e){const n=_(t.theme);return Object.keys(t).map(i=>f(t,e,i,n)).reduce(r.a,{})}function $(t){return g(t,u)}function E(t){return g(t,h)}function y(t){return g(t,d)}$.propTypes={},$.filterProps=u,E.propTypes={},E.filterProps=h,y.propTypes={},y.filterProps=d;e.c=y},function(t,e,n){"use strict";var i=n(88),o=n(874),r=n(875),s=n(877),a=n(314),c=n(33),l=n(880),u=n(881),h=n(34),d=n(673),p=n(671),_=n(882),m=n(883),f=c.OrderedSet,g={replaceText:function(t,e,n,o,r){var s=p(t,e),a=_(s,e),c=i.create({style:o||f(),entity:r||null});return u(a,a.getSelectionAfter(),n,c)},insertText:function(t,e,n,i,o){return e.isCollapsed()||h(!1),g.replaceText(t,e,n,i,o)},moveText:function(t,e,n){var i=a(t,e),o=g.removeRange(t,e,"backward");return g.replaceWithFragment(o,n,i)},replaceWithFragment:function(t,e,n){var i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"REPLACE_WITH_NEW_DATA",o=p(t,e),r=_(o,e);return l(r,r.getSelectionAfter(),n,i)},removeRange:function(t,e,n){var i,o,r,a;e.getIsBackward()&&(e=e.merge({anchorKey:e.getFocusKey(),anchorOffset:e.getFocusOffset(),focusKey:e.getAnchorKey(),focusOffset:e.getAnchorOffset(),isBackward:!1})),i=e.getAnchorKey(),o=e.getFocusKey(),r=t.getBlockForKey(i),a=t.getBlockForKey(o);var c=e.getStartOffset(),l=e.getEndOffset(),u=r.getEntityAt(c),h=a.getEntityAt(l-1);if(i===o&&u&&u===h){var d=s(t.getEntityMap(),r,a,e,n);return _(t,d)}var m=p(t,e);return _(m,e)},splitBlock:function(t,e){var n=p(t,e),i=_(n,e);return m(i,i.getSelectionAfter())},applyInlineStyle:function(t,e,n){return o.add(t,e,n)},removeInlineStyle:function(t,e,n){return o.remove(t,e,n)},setBlockType:function(t,e,n){return d(t,e,(function(t){return t.merge({type:n,depth:0})}))},setBlockData:function(t,e,n){return d(t,e,(function(t){return t.merge({data:n})}))},mergeBlockData:function(t,e,n){return d(t,e,(function(t){return t.merge({data:t.getData().merge(n)})}))},applyEntity:function(t,e,n){var i=p(t,e);return r(i,e,n)}};t.exports=g},function(t,e,n){"use strict";t.exports=function(t){if(null!=t)return t;throw new Error("Got unexpected null or undefined")}},function(t,e,n){"use strict";var i=n(893),o=n(896),r=n(897),s=n(898);function a(t,e,n,i){if(t===n)return!0;if(!n.startsWith(t))return!1;var r=n.slice(t.length);return!!e&&(r=i?i(r):r,o.contains(r,e))}function c(t){return"Windows"===i.platformName?t.replace(/^\s*NT/,""):t}var l={isBrowser:function(t){return a(i.browserName,i.browserFullVersion,t)},isBrowserArchitecture:function(t){return a(i.browserArchitecture,null,t)},isDevice:function(t){return a(i.deviceName,null,t)},isEngine:function(t){return a(i.engineName,i.engineVersion,t)},isPlatform:function(t){return a(i.platformName,i.platformFullVersion,t,c)},isPlatformArchitecture:function(t){return a(i.platformArchitecture,null,t)}};t.exports=r(l,s)},function(t,e,n){"use strict";t.exports=n(861)},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return"string"==typeof t&&i.test(t)};var i=/-webkit-|-moz-|-ms-/;t.exports=e.default},function(t,e,n){"use strict";!function t(){if("undefined"!=typeof __REACT_DEVTOOLS_GLOBAL_HOOK__&&"function"==typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE){0;try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(t)}catch(t){console.error(t)}}}(),t.exports=n(863)},function(t,e,n){"use strict";var i=n(0);e.a=function(t,e){return i.isValidElement(t)&&-1!==e.indexOf(t.type.muiName)}},function(t,e,n){"use strict";n.d(e,"b",(function(){return a}));var i=n(1),o=n(15),r=n(16),s=n(60);function a(t){return Object(o.a)("MuiInput",t)}const c=Object(i.a)({},s.a,Object(r.a)("MuiInput",["root","underline","input"]));e.a=c},function(t,e,n){"use strict";function i(t,e){return Array.isArray(e)?e.every(e=>-1!==t.indexOf(e)):-1!==t.indexOf(e)}n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));const o=(t,e)=>n=>{"Enter"!==n.key&&" "!==n.key||(t(),n.preventDefault(),n.stopPropagation()),e&&e(n)}},function(t,e,n){"use strict";var i=n(228);e.a=i.a},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiButtonGroup",t)}const s=Object(o.a)("MuiButtonGroup",["root","contained","outlined","text","disableElevation","disabled","fullWidth","vertical","grouped","groupedHorizontal","groupedVertical","groupedText","groupedTextHorizontal","groupedTextVertical","groupedTextPrimary","groupedTextSecondary","groupedOutlined","groupedOutlinedHorizontal","groupedOutlinedVertical","groupedOutlinedPrimary","groupedOutlinedSecondary","groupedContained","groupedContainedHorizontal","groupedContainedVertical","groupedContainedPrimary","groupedContainedSecondary"]);e.a=s},function(t,e,n){"use strict";n.d(e,"c",(function(){return C})),n.d(e,"b",(function(){return N}));var i=n(5),o=n(1),r=n(0),s=n(4),a=n(18),c=n(167),l=n(1027),u=n(100),h=n(6),d=n(19),p=n(7),_=n(3),m=n(198),f=n(2);const g=["BackdropProps"],$=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],E=(t,e)=>{const{ownerState:n}=t;return[e.root,("permanent"===n.variant||"persistent"===n.variant)&&e.docked,e.modal]},y=Object(_.a)(c.a,{name:"MuiDrawer",slot:"Root",overridesResolver:E})(({theme:t})=>({zIndex:(t.vars||t).zIndex.drawer})),b=Object(_.a)("div",{shouldForwardProp:_.b,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:E})({flex:"0 0 auto"}),S=Object(_.a)(u.a,{name:"MuiDrawer",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.paper,e["paperAnchor"+Object(h.a)(n.anchor)],"temporary"!==n.variant&&e["paperAnchorDocked"+Object(h.a)(n.anchor)]]}})(({theme:t,ownerState:e})=>Object(o.a)({overflowY:"auto",display:"flex",flexDirection:"column",height:"100%",flex:"1 0 auto",zIndex:(t.vars||t).zIndex.drawer,WebkitOverflowScrolling:"touch",position:"fixed",top:0,outline:0},"left"===e.anchor&&{left:0},"top"===e.anchor&&{top:0,left:0,right:0,height:"auto",maxHeight:"100%"},"right"===e.anchor&&{right:0},"bottom"===e.anchor&&{top:"auto",left:0,bottom:0,right:0,height:"auto",maxHeight:"100%"},"left"===e.anchor&&"temporary"!==e.variant&&{borderRight:"1px solid "+(t.vars||t).palette.divider},"top"===e.anchor&&"temporary"!==e.variant&&{borderBottom:"1px solid "+(t.vars||t).palette.divider},"right"===e.anchor&&"temporary"!==e.variant&&{borderLeft:"1px solid "+(t.vars||t).palette.divider},"bottom"===e.anchor&&"temporary"!==e.variant&&{borderTop:"1px solid "+(t.vars||t).palette.divider})),v={left:"right",right:"left",top:"down",bottom:"up"};function C(t){return-1!==["left","right"].indexOf(t)}function N(t,e){return"rtl"===t.direction&&C(e)?v[e]:e}const T=r.forwardRef((function(t,e){const n=Object(p.a)({props:t,name:"MuiDrawer"}),c=Object(d.default)(),u={enter:c.transitions.duration.enteringScreen,exit:c.transitions.duration.leavingScreen},{anchor:_="left",BackdropProps:E,children:C,className:T,elevation:L=16,hideBackdrop:z=!1,ModalProps:{BackdropProps:w}={},onClose:O,open:R=!1,PaperProps:A={},SlideProps:x,TransitionComponent:I=l.a,transitionDuration:U=u,variant:D="temporary"}=n,P=Object(i.a)(n.ModalProps,g),M=Object(i.a)(n,$),k=r.useRef(!1);r.useEffect(()=>{k.current=!0},[]);const j=N(c,_),G=_,q=Object(o.a)({},n,{anchor:G,elevation:L,open:R,variant:D},M),F=(t=>{const{classes:e,anchor:n,variant:i}=t,o={root:["root"],docked:[("permanent"===i||"persistent"===i)&&"docked"],modal:["modal"],paper:["paper","paperAnchor"+Object(h.a)(n),"temporary"!==i&&"paperAnchorDocked"+Object(h.a)(n)]};return Object(a.a)(o,m.b,e)})(q),B=Object(f.jsx)(S,Object(o.a)({elevation:"temporary"===D?L:0,square:!0},A,{className:Object(s.a)(F.paper,A.className),ownerState:q,children:C}));if("permanent"===D)return Object(f.jsx)(b,Object(o.a)({className:Object(s.a)(F.root,F.docked,T),ownerState:q,ref:e},M,{children:B}));const W=Object(f.jsx)(I,Object(o.a)({in:R,direction:v[j],timeout:U,appear:k.current},x,{children:B}));return"persistent"===D?Object(f.jsx)(b,Object(o.a)({className:Object(s.a)(F.root,F.docked,T),ownerState:q,ref:e},M,{children:W})):Object(f.jsx)(y,Object(o.a)({BackdropProps:Object(o.a)({},E,w,{transitionDuration:U}),className:Object(s.a)(F.root,F.modal,T),open:R,ownerState:q,onClose:O,hideBackdrop:z,ref:e},M,P,{children:W}))}));e.a=T},function(t,e,n){"use strict";n.r(e);var i=n(405);n.d(e,"default",(function(){return i.a}));var o=n(164);n.d(e,"iconButtonClasses",(function(){return o.a})),n.d(e,"getIconButtonUtilityClass",(function(){return o.b}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"d",(function(){return l})),n.d(e,"e",(function(){return u})),n.d(e,"f",(function(){return h}));var i=n(17),o=n(0),r=n(2);const s=Object(i.a)(Object(r.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),a=Object(i.a)(Object(r.jsx)("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),c=Object(i.a)(Object(r.jsx)("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),l=Object(i.a)(Object(r.jsx)("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}),"Calendar"),u=Object(i.a)(Object(r.jsxs)(o.Fragment,{children:[Object(r.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),Object(r.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),h=(Object(i.a)(Object(r.jsx)("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}),"DateRange"),Object(i.a)(Object(r.jsx)("path",{d:"M3 17.25V21h3.75L17.81 9.94l-3.75-3.75L3 17.25zM20.71 7.04c.39-.39.39-1.02 0-1.41l-2.34-2.34a.9959.9959 0 00-1.41 0l-1.83 1.83 3.75 3.75 1.83-1.83z"}),"Pen"));Object(i.a)(Object(r.jsxs)(o.Fragment,{children:[Object(r.jsx)("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),Object(r.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time")},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiTab",t)}const s=Object(o.a)("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"a",(function(){return o})),n.d(e,"c",(function(){return r})),n.d(e,"d",(function(){return s}));const i=36,o=2,r=320,s=358},function(t,e,n){(function(i){var o,r,s;r=[e,n(31),n(128)],void 0===(s="function"==typeof(o=function(t,e,n){"use strict";var o,r=t.$$importsForInline$$||(t.$$importsForInline$$={}),s=Object,a=e.throwCCE,c=e.Kind.CLASS,l=e.kotlin.coroutines.Continuation,u=(e.kotlin.Annotation,e.kotlin.coroutines.intrinsics.COROUTINE_SUSPENDED),h=e.kotlin.coroutines.CoroutineImpl,d=(e.kotlin.collections.emptyList_287e2$,e.kotlin.Unit),p=e.throwUPAE,_=n.kotlinx.atomicfu.atomic$ref$1,m=n.kotlinx.atomicfu.atomic$int$1,f=(e.kotlin.collections.copyToArray,e.kotlin.coroutines.intrinsics.intercepted_f9mg25$),g=e.kotlin.collections.ArrayList_init_ww73n8$,$=e.kotlin.Result,E=e.kotlin.coroutines,y=e.kotlin.coroutines.intrinsics.createCoroutineUnintercepted_3a617i$,b=e.kotlin.coroutines.ContinuationInterceptor,S=e.equals,v=e.defineInlineFunction,C=e.wrapFunction,N=e.kotlin.IllegalStateException_init_pdl1vj$,T=e.Kind.INTERFACE,L=Error,z=e.toString,w=e.Kind.OBJECT,O=n.kotlinx.atomicfu.atomic$boolean$1,R=e.kotlin.coroutines.cancellation.CancellationException_init_pdl1vj$,A=e.kotlin.createFailure_tcv7n7$,x=e.kotlin.coroutines.AbstractCoroutineContextKey,I=e.kotlin.coroutines.AbstractCoroutineContextElement,U=e.kotlin.RuntimeException,D=e.kotlin.coroutines.CoroutineContext.Key,P=e.kotlin.coroutines.CoroutineContext.Element,M=e.kotlin.coroutines.cancellation.CancellationException_init_wspj0f$,k=e.kotlin.coroutines.startCoroutine_x18nsh$,j=e.kotlin.coroutines.startCoroutine_3a617i$,G=e.kotlin.Enum,q=e.throwISE,F=e.Long.MAX_VALUE,B=(e.kotlin.time.Duration,e.Long.ONE),W=e.Long.ZERO,H=new e.Long(0,1),V=(e.Long.fromInt(1e6),new e.Long(2077252342,2147),new e.Long(-1,1073741823),e.ensureNotNull),K=(e.kotlin.Comparable,e.kotlin.IllegalArgumentException_init_pdl1vj$),X=e.kotlin.Error,J=e.kotlin.coroutines.cancellation.CancellationException,Y=e.kotlin.IllegalStateException,Q=e.kotlin.sequences.sequence_o0x0bg$,Z=e.kotlin.collections.ArrayList,tt=e.kotlin.text.StringBuilder_init,et=e.kotlin.UnsupportedOperationException,nt=e.kotlin.UnsupportedOperationException_init_pdl1vj$,it=(e.kotlin.sequences.emptySequence_287e2$,e.kotlin.addSuppressed_oh0dqn$),ot=Function,rt=(e.kotlin.ranges.coerceAtMost_2p08ub$,n.kotlinx.atomicfu.atomic$long$1),st=e.kotlin.collections.fill_jfbbbd$,at=Math,ct=e.kotlin.NoSuchElementException,lt=e.hashCode,ut=e.kotlin.collections.ArrayList_init_287e2$,ht=(e.kotlin.collections.indexOf_mjy6jw$,e.kotlin.collections.arrayCopy),dt=(e.kotlin.IndexOutOfBoundsException,e.kotlin.collections.LinkedHashMap_init_q3lmfv$,e.kotlin.collections.IndexedValue,e.kotlin.collections.HashSet_init_287e2$,e.kotlin.collections.LinkedHashSet_init_287e2$),pt=(e.kotlin.to_ujzrz7$,e.kotlin.text.trimIndent_pdl1vz$,e.Long.NEG_ONE,e.kotlin.collections.copyOf_8ujjk8$,e.kotlin.collections.joinToString_fmv235$,e.kotlin.collections.listOf_mh5how$,e.toByte,e.kotlin.ranges.coerceAtLeast_dqglrj$,e.kotlin.ArithmeticException,new e.Long(0,805306368)),_t=e.Long.fromInt(1073741823),mt=new e.Long(-1073741824,268435455),ft=new e.Long(0,268435456),gt=new e.Long(0,536870912),$t=n.kotlinx.atomicfu.atomicfu$AtomicRefArray$ofNulls,Et=(e.kotlin.text.toBoolean_5cw0du$,e.kotlin.text.toLongOrNull_pdl1vz$,e.kotlin.coroutines.intrinsics.createCoroutineUnintercepted_x18nsh$),yt=e.kotlin.collections.shuffle_vvxzk3$,bt=e.Long.fromInt(2147483647),St=e.kotlin.ranges.coerceIn_ekzx8g$,vt=e.kotlin.collections.HashSet_init_ww73n8$,Ct=(e.kotlin.collections.get_lastIndex_55thoc$,e.kotlin.NoSuchElementException_init,e.kotlin.collections.MutableIterator,e.kotlin.collections.AbstractMutableList,e.kotlin.UnsupportedOperationException_init);function Nt(t,e,n){pn.call(this,n),e&&this.initParentJob_5dx9e$(t.get_j3r2sn$(Ve())),this.context_p8rm81$_0=t.plus_1fupul$(this)}function Tt(t,e){Nt.call(this,t,!0,e)}function Lt(t,e){h.call(this,e),this.exceptionState_0=1,this.$this=t}function zt(t,e){Tt.call(this,t,!1),this.continuation_0=y(e,this,this)}function wt(t,e){Nt.call(this,t,!0,e)}function Ot(t,e){wt.call(this,t,!1),this.continuation_0=y(e,this,this)}function Rt(t,e){Tr.call(this,t,e),this._decision_0=m(0)}function At(){}function xt(t){var n,i;return e.isType(t,Ho)?null==(i=null!=(n=t.claimReusableCancellableContinuation())&&n.resetStateReusable_8be2vx$()?n:null)?new Mt(t,2):i:new Mt(t,1)}function It(t,e){t.invokeOnCancellation_f05bi3$(new Dt(e))}function Ut(t,e){t.invokeOnCancellation_f05bi3$(new Pt(e))}function Dt(t){Bt.call(this),this.node_0=t}function Pt(t){Ft.call(this),this.handle_0=t}function Mt(t,e){Jo.call(this,e),this.delegate_dhbmku$_0=t,this.context_xycjfy$_0=this.delegate.context,this._decision_0=m(0),this._state_0=_(qt()),this.parentHandle_0=null}function kt(){}function jt(){Gt=this}Nt.prototype=Object.create(pn.prototype),Nt.prototype.constructor=Nt,Ft.prototype=Object.create(ps.prototype),Ft.prototype.constructor=Ft,ds.prototype=Object.create(na.prototype),ds.prototype.constructor=ds,Nn.prototype=Object.create(ds.prototype),Nn.prototype.constructor=Nn,Tt.prototype=Object.create(Nt.prototype),Tt.prototype.constructor=Tt,zt.prototype=Object.create(Tt.prototype),zt.prototype.constructor=zt,wt.prototype=Object.create(Nt.prototype),wt.prototype.constructor=wt,Ot.prototype=Object.create(wt.prototype),Ot.prototype.constructor=Ot,Tr.prototype=Object.create(Nt.prototype),Tr.prototype.constructor=Tr,Rt.prototype=Object.create(Tr.prototype),Rt.prototype.constructor=Rt,Bt.prototype=Object.create(Ft.prototype),Bt.prototype.constructor=Bt,Dt.prototype=Object.create(Bt.prototype),Dt.prototype.constructor=Dt,Pt.prototype=Object.create(Ft.prototype),Pt.prototype.constructor=Pt,Jo.prototype=Object.create(Js.prototype),Jo.prototype.constructor=Jo,Mt.prototype=Object.create(Jo.prototype),Mt.prototype.constructor=Mt,Wt.prototype=Object.create(Ft.prototype),Wt.prototype.constructor=Wt,Kt.prototype=Object.create(pn.prototype),Kt.prototype.constructor=Kt,ne.prototype=Object.create(ee.prototype),ne.prototype.constructor=ne,oe.prototype=Object.create(x.prototype),oe.prototype.constructor=oe,ie.prototype=Object.create(I.prototype),ie.prototype.constructor=ie,_e.prototype=Object.create(I.prototype),_e.prototype.constructor=_e,Te.prototype=Object.create(G.prototype),Te.prototype.constructor=Te,Pe.prototype=Object.create(ie.prototype),Pe.prototype.constructor=Pe,As.prototype=Object.create(Pe.prototype),As.prototype.constructor=As,Ge.prototype=Object.create(As.prototype),qe.prototype=Object.create(U.prototype),qe.prototype.constructor=qe,Fe.prototype=Object.create(X.prototype),Fe.prototype.constructor=Fe,gn.prototype=Object.create(Nn.prototype),gn.prototype.constructor=gn,$n.prototype=Object.create(Mt.prototype),$n.prototype.constructor=$n,vn.prototype=Object.create(pn.prototype),vn.prototype.constructor=vn,aa.prototype=Object.create(na.prototype),aa.prototype.constructor=aa,Tn.prototype=Object.create(aa.prototype),Tn.prototype.constructor=Tn,zn.prototype=Object.create(Nn.prototype),zn.prototype.constructor=zn,wn.prototype=Object.create(Nn.prototype),wn.prototype.constructor=wn,On.prototype=Object.create(Nn.prototype),On.prototype.constructor=On,Rn.prototype=Object.create(Nn.prototype),Rn.prototype.constructor=Rn,An.prototype=Object.create(Nn.prototype),An.prototype.constructor=An,xn.prototype=Object.create(Nn.prototype),xn.prototype.constructor=xn,In.prototype=Object.create(Nn.prototype),In.prototype.constructor=In,Un.prototype=Object.create(In.prototype),Un.prototype.constructor=Un,Dn.prototype=Object.create(In.prototype),Dn.prototype.constructor=Dn,Pn.prototype=Object.create(In.prototype),Pn.prototype.constructor=Pn,Mn.prototype=Object.create(ie.prototype),Mn.prototype.constructor=Mn,kn.prototype=Object.create(I.prototype),jn.prototype=Object.create(vn.prototype),jn.prototype.constructor=jn,Bn.prototype=Object.create(Tr.prototype),Bn.prototype.constructor=Bn,Wn.prototype=Object.create(J.prototype),Wn.prototype.constructor=Wn,Kn.prototype=Object.create(ie.prototype),Kn.prototype.constructor=Kn,ra.prototype=Object.create(Wo.prototype),ra.prototype.constructor=ra,ia.prototype=Object.create(ra.prototype),ia.prototype.constructor=ia,di.prototype=Object.create(ia.prototype),di.prototype.constructor=di,oa.prototype=Object.create(ra.prototype),oa.prototype.constructor=oa,_i.prototype=Object.create(oa.prototype),_i.prototype.constructor=_i,wi.prototype=Object.create(na.prototype),wi.prototype.constructor=wi,fi.prototype=Object.create(wi.prototype),fi.prototype.constructor=fi,gi.prototype=Object.create(wi.prototype),gi.prototype.constructor=gi,yi.prototype=Object.create(oa.prototype),yi.prototype.constructor=yi,vi.prototype=Object.create(Bt.prototype),vi.prototype.constructor=vi,Ii.prototype=Object.create(na.prototype),Ii.prototype.constructor=Ii,Ni.prototype=Object.create(Ii.prototype),Ni.prototype.constructor=Ni,Ti.prototype=Object.create(Ni.prototype),Ti.prototype.constructor=Ti,Li.prototype=Object.create(Ii.prototype),Li.prototype.constructor=Li,zi.prototype=Object.create(Ii.prototype),zi.prototype.constructor=zi,$i.prototype=Object.create(hi.prototype),$i.prototype.constructor=$i,Ri.prototype=Object.create(wi.prototype),Ri.prototype.constructor=Ri,Ai.prototype=Object.create(Ri.prototype),Ai.prototype.constructor=Ai,xi.prototype=Object.create(wi.prototype),xi.prototype.constructor=xi,Ui.prototype=Object.create($i.prototype),Ui.prototype.constructor=Ui,Di.prototype=Object.create(Nt.prototype),Mi.prototype=Object.create(G.prototype),Mi.prototype.constructor=Mi,Ji.prototype=Object.create(Xi.prototype),Ji.prototype.constructor=Ji,_o.prototype=Object.create(Y.prototype),_o.prototype.constructor=_o,mo.prototype=Object.create(ct.prototype),mo.prototype.constructor=mo,fo.prototype=Object.create(Nt.prototype),fo.prototype.constructor=fo,$o.prototype=Object.create($i.prototype),$o.prototype.constructor=$o,Eo.prototype=Object.create($i.prototype),Eo.prototype.constructor=Eo,So.prototype=Object.create(fo.prototype),So.prototype.constructor=So,vo.prototype=Object.create($i.prototype),vo.prototype.constructor=vo,Bo.prototype=Object.create(Fo.prototype),Bo.prototype.constructor=Bo,Ho.prototype=Object.create(Jo.prototype),Ho.prototype.constructor=Ho,tr.prototype=Object.create(ie.prototype),tr.prototype.constructor=tr,Nr.prototype=Object.create(U.prototype),Nr.prototype.constructor=Nr,Xr.prototype=Object.create(In.prototype),Xr.prototype.constructor=Xr,Jr.prototype=Object.create(Fo.prototype),Jr.prototype.constructor=Jr,Yr.prototype=Object.create(Bo.prototype),Yr.prototype.constructor=Yr,Qr.prototype=Object.create(na.prototype),Qr.prototype.constructor=Qr,Kr.prototype=Object.create(aa.prototype),Kr.prototype.constructor=Kr,rs.prototype=Object.create(Fo.prototype),rs.prototype.constructor=rs,os.prototype=Object.create(Wo.prototype),os.prototype.constructor=os,ss.prototype=Object.create(aa.prototype),ss.prototype.constructor=ss,as.prototype=Object.create(na.prototype),as.prototype.constructor=as,cs.prototype=Object.create(as.prototype),cs.prototype.constructor=cs,ls.prototype=Object.create(as.prototype),ls.prototype.constructor=ls,us.prototype=Object.create(Bo.prototype),us.prototype.constructor=us,hs.prototype=Object.create(ie.prototype),hs.prototype.constructor=hs,bs.prototype=Object.create(Tr.prototype),bs.prototype.constructor=bs,ws.prototype=Object.create(Mn.prototype),ws.prototype.constructor=ws,Rs.prototype=Object.create(Pe.prototype),Rs.prototype.constructor=Rs,Is.prototype=Object.create(J.prototype),Is.prototype.constructor=Is,Ks.prototype=Object.create(qo.prototype),Ks.prototype.constructor=Ks,Ps.prototype=Object.create(Ks.prototype),Ps.prototype.constructor=Ps,Ds.prototype=Object.create(ie.prototype),Ds.prototype.constructor=Ds,Ms.prototype=Object.create(Ds.prototype),Ms.prototype.constructor=Ms,Gs.prototype=Object.create(Ds.prototype),Gs.prototype.constructor=Gs,Bs.prototype=Object.create(Ft.prototype),Bs.prototype.constructor=Bs,Ws.prototype=Object.create(ie.prototype),Ws.prototype.constructor=Ws,Vs.prototype=Object.create(Ks.prototype),Vs.prototype.constructor=Vs,Zs.prototype=Object.create(J.prototype),Zs.prototype.constructor=Zs,sa.prototype=Object.create(Fo.prototype),sa.prototype.constructor=sa,Object.defineProperty(Nt.prototype,"context",{configurable:!0,get:function(){return this.context_p8rm81$_0}}),Object.defineProperty(Nt.prototype,"coroutineContext",{configurable:!0,get:function(){return this.context}}),Object.defineProperty(Nt.prototype,"isActive",{configurable:!0,get:function(){return e.callGetter(this,pn.prototype,"isActive")}}),Nt.prototype.onCompleted_11rb$=function(t){},Nt.prototype.onCancelled_z1nxw$=function(t,e){},Nt.prototype.cancellationExceptionMessage=function(){return Cs(this)+" was cancelled"},Nt.prototype.onCompletionInternal_s8jyv4$=function(t){var n;e.isType(t,ee)?this.onCancelled_z1nxw$(t.cause,t.handled):this.onCompleted_11rb$(null==(n=t)||e.isType(n,s)?n:a())},Nt.prototype.resumeWith_tl1gpc$=function(t){var e=this.makeCompletingOnce_8ea4ql$(Yt(t));e!==rn&&this.afterResume_s8jyv4$(e)},Nt.prototype.afterResume_s8jyv4$=function(t){this.afterCompletion_s8jyv4$(t)},Nt.prototype.handleOnCompletionException_tcv7n7$=function(t){ce(this.context,t)},Nt.prototype.nameString=function(){var t;return this.context,null==(t=null)?pn.prototype.nameString.call(this):'"'+t+'":'+pn.prototype.nameString.call(this)},Nt.prototype.start_b5ul0p$=function(t,e,n){t.invoke_3o0yor$(n,e,this)},Nt.$metadata$={kind:c,simpleName:"AbstractCoroutine",interfaces:[$e,l,pn,Be]},Tt.prototype.getCompleted=function(){var t;return null==(t=this.getCompletedInternal_8be2vx$())||e.isType(t,s)?t:a()},Lt.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[h]},Lt.prototype=Object.create(h.prototype),Lt.prototype.constructor=Lt,Lt.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(this.state_0=2,this.result_0=this.$this.awaitInternal_8be2vx$(this),this.result_0===u)return u;continue;case 1:throw this.exception_0;case 2:return null==(t=this.result_0)||e.isType(t,s)?t:a();default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Tt.prototype.await=function(t,e){var n=new Lt(this,t);return e?n:n.doResume(null)},Object.defineProperty(Tt.prototype,"onAwait",{configurable:!0,get:function(){return this}}),Tt.prototype.registerSelectClause1_o3xas4$=function(t,e){this.registerSelectClause1Internal_u6kgbh$(t,e)},Tt.$metadata$={kind:c,simpleName:"DeferredCoroutine",interfaces:[Br,xe,Nt]},zt.prototype.onStart=function(){xr(this.continuation_0,this)},zt.$metadata$={kind:c,simpleName:"LazyDeferredCoroutine",interfaces:[Tt]},v("kotlinx-coroutines-core.kotlinx.coroutines.invoke_5xrhu2$",C((function(){var n=t.kotlinx.coroutines.withContext_i5cbzn$;return function(t,i,o){return e.suspendCall(n(t,i,e.coroutineReceiver())),e.coroutineResult(e.coroutineReceiver())}}))),wt.prototype.handleJobException_tcv7n7$=function(t){return ce(this.context,t),!0},wt.$metadata$={kind:c,simpleName:"StandaloneCoroutine",interfaces:[Nt]},Ot.prototype.onStart=function(){xr(this.continuation_0,this)},Ot.$metadata$={kind:c,simpleName:"LazyStandaloneCoroutine",interfaces:[wt]},Rt.prototype.trySuspend_0=function(){for(var t=this._decision_0;;)switch(t.kotlinx$atomicfu$value){case 0:if(this._decision_0.atomicfu$compareAndSet(0,1))return!0;break;case 2:return!1;default:throw N("Already suspended".toString())}},Rt.prototype.tryResume_0=function(){for(var t=this._decision_0;;)switch(t.kotlinx$atomicfu$value){case 0:if(this._decision_0.atomicfu$compareAndSet(0,2))return!0;break;case 1:return!1;default:throw N("Already resumed".toString())}},Rt.prototype.afterCompletion_s8jyv4$=function(t){this.afterResume_s8jyv4$(t)},Rt.prototype.afterResume_s8jyv4$=function(t){this.tryResume_0()||Vo(f(this.uCont),Zt(t,this.uCont))},Rt.prototype.getResult=function(){var t;if(this.trySuspend_0())return u;var n=bn(this.state_8be2vx$);if(e.isType(n,ee))throw n.cause;return null==(t=n)||e.isType(t,s)?t:a()},Rt.$metadata$={kind:c,simpleName:"DispatchedCoroutine",interfaces:[Tr]},At.prototype.tryResume_19pj23$=function(t,e,n){return void 0===e&&(e=null),n?n(t,e):this.tryResume_19pj23$$default(t,e)},At.prototype.cancel_dbl4no$=function(t,e){return void 0===t&&(t=null),e?e(t):this.cancel_dbl4no$$default(t)},At.$metadata$={kind:T,simpleName:"CancellableContinuation",interfaces:[l]},v("kotlinx-coroutines-core.kotlinx.coroutines.suspendCancellableCoroutine_o6sdx9$",C((function(){var n=e.kotlin.coroutines.intrinsics.intercepted_f9mg25$,i=t.kotlinx.coroutines.CancellableContinuationImpl;return function(t,o){var r;return e.suspendCall((r=t,function(t){var e=new i(n(t),1);return e.initCancellability(),r(e),e.getResult()})(e.coroutineReceiver())),e.coroutineResult(e.coroutineReceiver())}}))),v("kotlinx-coroutines-core.kotlinx.coroutines.suspendCancellableCoroutineReusable_mkkzkw$",C((function(){var n=e.kotlin.coroutines.intrinsics.intercepted_f9mg25$,i=t.kotlinx.coroutines.getOrCreateCancellableContinuation_3j0xf1$;return function(t,o){var r;return e.suspendCall((r=t,function(t){var e=i(n(t));return r(e),e.getResult()})(e.coroutineReceiver())),e.coroutineResult(e.coroutineReceiver())}}))),Dt.prototype.invoke=function(t){this.node_0.remove()},Dt.prototype.toString=function(){return"RemoveOnCancel["+this.node_0+"]"},Dt.$metadata$={kind:c,simpleName:"RemoveOnCancel",interfaces:[Bt]},Pt.prototype.invoke=function(t){this.handle_0.dispose()},Pt.prototype.toString=function(){return"DisposeOnCancel["+this.handle_0+"]"},Pt.$metadata$={kind:c,simpleName:"DisposeOnCancel",interfaces:[Ft]},Object.defineProperty(Mt.prototype,"delegate",{get:function(){return this.delegate_dhbmku$_0}}),Object.defineProperty(Mt.prototype,"context",{configurable:!0,get:function(){return this.context_xycjfy$_0}}),Object.defineProperty(Mt.prototype,"state_8be2vx$",{configurable:!0,get:function(){return this._state_0.kotlinx$atomicfu$value}}),Object.defineProperty(Mt.prototype,"isActive",{configurable:!0,get:function(){return e.isType(this.state_8be2vx$,kt)}}),Object.defineProperty(Mt.prototype,"isCompleted",{configurable:!0,get:function(){return!e.isType(this.state_8be2vx$,kt)}}),Object.defineProperty(Mt.prototype,"isCancelled",{configurable:!0,get:function(){return e.isType(this.state_8be2vx$,ne)}}),Object.defineProperty(Mt.prototype,"stateDebugRepresentation_0",{configurable:!0,get:function(){var t;return t=this.state_8be2vx$,e.isType(t,kt)?"Active":e.isType(t,ne)?"Cancelled":"Completed"}}),Mt.prototype.initCancellability=function(){var t;if(null!=(t=this.installParentHandle_0())){var e=t;this.isCompleted&&(e.dispose(),this.parentHandle_0=dn())}},Mt.prototype.isReusable_0=function(){var t;return Xo(this.resumeMode)&&(e.isType(t=this.delegate,Ho)?t:a()).isReusable()},Mt.prototype.resetStateReusable_8be2vx$=function(){var t=this._state_0.kotlinx$atomicfu$value;return e.isType(t,Ht)&&null!=t.idempotentResume?(this.detachChild_8be2vx$(),!1):(this._decision_0.kotlinx$atomicfu$value=0,this._state_0.kotlinx$atomicfu$value=qt(),!0)},Object.defineProperty(Mt.prototype,"callerFrame",{configurable:!0,get:function(){var t;return e.isType(t=this.delegate,ha)?t:null}}),Mt.prototype.getStackTraceElement=function(){return null},Mt.prototype.takeState=function(){return this.state_8be2vx$},Mt.prototype.cancelCompletedResult_83a7kv$=function(t,n){for(var i=this._state_0;;){var o=i.kotlinx$atomicfu$value;if(e.isType(o,kt))throw N("Not completed".toString());if(e.isType(o,ee))return;if(e.isType(o,Ht)){if(o.cancelled)throw N("Must be called at most once".toString());var r=o.copy_pkdjca$(void 0,void 0,void 0,void 0,n);if(this._state_0.atomicfu$compareAndSet(o,r))return void o.invokeHandlers_gygfbe$(this,n)}else if(this._state_0.atomicfu$compareAndSet(o,new Ht(o,void 0,void 0,void 0,n)))return}},Mt.prototype.cancelLater_0=function(t){var n;return!!this.isReusable_0()&&(e.isType(n=this.delegate,Ho)?n:a()).postponeCancellation_tcv7n7$(t)},Mt.prototype.cancel_dbl4no$$default=function(t){for(var n=this._state_0;;){var i=n.kotlinx$atomicfu$value;t:do{var o,r;if(!e.isType(i,kt))return!1;var s=new ne(this,t,e.isType(i,Ft));if(!this._state_0.atomicfu$compareAndSet(i,s))break t;return null!=(r=e.isType(o=i,Ft)?o:null)&&this.callCancelHandler_gluymk$(r,t),this.detachChildIfNonResuable_0(),this.dispatchResume_0(this.resumeMode),!0}while(0)}},Mt.prototype.parentCancelled_8o0b5c$=function(t){this.cancelLater_0(t)||(this.cancel_dbl4no$(t),this.detachChildIfNonResuable_0())},Mt.prototype.callCancelHandlerSafely_0=function(t){try{t()}catch(t){if(!e.isType(t,L))throw t;ce(this.context,new qe("Exception in invokeOnCancellation handler for "+this,t))}},Mt.prototype.callCancelHandler_0=function(t,n){try{_s(t,n)}catch(t){if(!e.isType(t,L))throw t;ce(this.context,new qe("Exception in invokeOnCancellation handler for "+this,t))}},Mt.prototype.callCancelHandler_gluymk$=function(t,n){try{t.invoke(n)}catch(t){if(!e.isType(t,L))throw t;ce(this.context,new qe("Exception in invokeOnCancellation handler for "+this,t))}},Mt.prototype.callOnCancellation_e590hv$=function(t,n){try{t(n)}catch(t){if(!e.isType(t,L))throw t;ce(this.context,new qe("Exception in resume onCancellation handler for "+this,t))}},Mt.prototype.getContinuationCancellationCause_dqr1mp$=function(t){return t.getCancellationException()},Mt.prototype.trySuspend_0=function(){for(var t=this._decision_0;;)switch(t.kotlinx$atomicfu$value){case 0:if(this._decision_0.atomicfu$compareAndSet(0,1))return!0;break;case 2:return!1;default:throw N("Already suspended".toString())}},Mt.prototype.tryResume_0=function(){for(var t=this._decision_0;;)switch(t.kotlinx$atomicfu$value){case 0:if(this._decision_0.atomicfu$compareAndSet(0,2))return!0;break;case 1:return!1;default:throw N("Already resumed".toString())}},Mt.prototype.getResult=function(){var t=this.isReusable_0();if(this.trySuspend_0())return null==this.parentHandle_0&&this.installParentHandle_0(),t&&this.releaseClaimedReusableContinuation_0(),u;t&&this.releaseClaimedReusableContinuation_0();var n=this.state_8be2vx$;if(e.isType(n,ee))throw ca(n.cause);if(Ko(this.resumeMode)){var i=this.context.get_j3r2sn$(Ve());if(null!=i&&!i.isActive){var o=i.getCancellationException();throw this.cancelCompletedResult_83a7kv$(n,o),ca(o)}}return this.getSuccessfulResult_tpy1pm$(n)},Mt.prototype.installParentHandle_0=function(){var t;if(null==(t=this.context.get_j3r2sn$(Ve())))return null;var e=t.invokeOnCompletion_ct2b2z$(!0,void 0,new Pn(this));return this.parentHandle_0=e,e},Mt.prototype.releaseClaimedReusableContinuation_0=function(){var t,n,i;if(null!=(i=null!=(n=e.isType(t=this.delegate,Ho)?t:null)?n.tryReleaseClaimedContinuation_jp3215$(this):null)){var o=i;this.detachChild_8be2vx$(),this.cancel_dbl4no$(o)}},Mt.prototype.resumeWith_tl1gpc$=function(t){this.resumeImpl_0(Qt(t,this),this.resumeMode)},Mt.prototype.resume_q1ktlu$=function(t,e){this.resumeImpl_0(t,this.resumeMode,e)},Mt.prototype.invokeOnCancellation_f05bi3$=function(t){for(var n=this.makeCancelHandler_0(t),i=this._state_0;;){var o,r,s=i.kotlinx$atomicfu$value;if(e.isType(s,jt)){if(this._state_0.atomicfu$compareAndSet(s,n))return}else if(e.isType(s,Ft))this.multipleHandlersError_0(t,s);else{if(e.isType(s,ee))return s.makeHandled()||this.multipleHandlersError_0(t,s),void(e.isType(s,ne)&&this.callCancelHandler_0(t,null!=(r=e.isType(o=s,ee)?o:null)?r.cause:null));if(e.isType(s,Ht)){if(null!=s.cancelHandler&&this.multipleHandlersError_0(t,s),e.isType(n,Bt))return;if(s.cancelled)return void this.callCancelHandler_0(t,s.cancelCause);var a=s.copy_pkdjca$(void 0,n);if(this._state_0.atomicfu$compareAndSet(s,a))return}else{if(e.isType(n,Bt))return;var c=new Ht(s,n);if(this._state_0.atomicfu$compareAndSet(s,c))return}}}},Mt.prototype.multipleHandlersError_0=function(t,e){throw N(("It's prohibited to register multiple handlers, tried to register "+t+", already has "+z(e)).toString())},Mt.prototype.makeCancelHandler_0=function(t){return e.isType(t,Ft)?t:new Wt(t)},Mt.prototype.dispatchResume_0=function(t){this.tryResume_0()||Yo(this,t)},Mt.prototype.resumedState_0=function(t,n,i,o,r){var s;return e.isType(n,ee)||!Ko(i)&&null==r||null==o&&(!e.isType(t,Ft)||e.isType(t,Bt))&&null==r?n:new Ht(n,e.isType(s=t,Ft)?s:null,o,r)},Mt.prototype.resumeImpl_0=function(t,n,i){void 0===i&&(i=null);for(var o=this._state_0;;){var r=o.kotlinx$atomicfu$value;t:do{if(e.isType(r,kt)){var s=this.resumedState_0(r,t,n,i,null);if(!this._state_0.atomicfu$compareAndSet(r,s))break t;return this.detachChildIfNonResuable_0(),void this.dispatchResume_0(n)}if(e.isType(r,ne)&&r.makeResumed())return void(null!=i&&this.callOnCancellation_e590hv$(i,r.cause));this.alreadyResumedError_0(t)}while(0)}},Mt.prototype.tryResumeImpl_0=function(t,n,i){for(var r=this._state_0;;){var s=r.kotlinx$atomicfu$value;t:do{if(e.isType(s,kt)){var a=this.resumedState_0(s,t,this.resumeMode,i,n);if(!this._state_0.atomicfu$compareAndSet(s,a))break t;return this.detachChildIfNonResuable_0(),o}return e.isType(s,Ht)&&null!=n&&s.idempotentResume===n?o:null}while(0)}},Mt.prototype.alreadyResumedError_0=function(t){throw N(("Already resumed, but proposed with update "+z(t)).toString())},Mt.prototype.detachChildIfNonResuable_0=function(){this.isReusable_0()||this.detachChild_8be2vx$()},Mt.prototype.detachChild_8be2vx$=function(){var t;null!=(t=this.parentHandle_0)&&(t.dispose(),this.parentHandle_0=dn())},Mt.prototype.tryResume_19pj23$$default=function(t,e){return this.tryResumeImpl_0(t,e,null)},Mt.prototype.tryResume_i8qury$=function(t,e,n){return this.tryResumeImpl_0(t,e,n)},Mt.prototype.tryResumeWithException_tcv7n7$=function(t){return this.tryResumeImpl_0(new ee(t),null,null)},Mt.prototype.completeResume_za3rmp$=function(t){this.dispatchResume_0(this.resumeMode)},Mt.prototype.resumeUndispatched_hyuxa3$=function(t,n){var i,o=e.isType(i=this.delegate,Ho)?i:null;this.resumeImpl_0(n,(null!=o?o.dispatcher:null)===t?4:this.resumeMode)},Mt.prototype.resumeUndispatchedWithException_gd0rtt$=function(t,n){var i,o=e.isType(i=this.delegate,Ho)?i:null;this.resumeImpl_0(new ee(n),(null!=o?o.dispatcher:null)===t?4:this.resumeMode)},Mt.prototype.getSuccessfulResult_tpy1pm$=function(t){var n,i;return e.isType(t,Ht)?null==(n=t.result)||e.isType(n,s)?n:a():null==(i=t)||e.isType(i,s)?i:a()},Mt.prototype.getExceptionalResult_s8jyv4$=function(t){var e;return null!=(e=Jo.prototype.getExceptionalResult_s8jyv4$.call(this,t))?ca(e,this.delegate):null},Mt.prototype.toString=function(){return this.nameString()+"("+Es(this.delegate)+"){"+this.stateDebugRepresentation_0+"}@"+vs(this)},Mt.prototype.nameString=function(){return"CancellableContinuation"},Mt.$metadata$={kind:c,simpleName:"CancellableContinuationImpl",interfaces:[ha,At,Jo]},kt.$metadata$={kind:T,simpleName:"NotCompleted",interfaces:[]},jt.prototype.toString=function(){return"Active"},jt.$metadata$={kind:w,simpleName:"Active",interfaces:[kt]};var Gt=null;function qt(){return null===Gt&&new jt,Gt}function Ft(){ps.call(this)}function Bt(){Ft.call(this)}function Wt(t){Ft.call(this),this.handler_0=t}function Ht(t,e,n,i,o){void 0===e&&(e=null),void 0===n&&(n=null),void 0===i&&(i=null),void 0===o&&(o=null),this.result=t,this.cancelHandler=e,this.onCancellation=n,this.idempotentResume=i,this.cancelCause=o}function Vt(){}function Kt(t){pn.call(this,!0),this.initParentJob_5dx9e$(t)}function Xt(t,e){h.call(this,e),this.exceptionState_0=1,this.$this=t}function Jt(){}function Yt(t,n){var i,o;void 0===n&&(n=null);var r=t.exceptionOrNull();if(null==r){var c=null==(i=t.value)||e.isType(i,s)?i:a();o=null!=n?new te(c,n):c}else o=new ee(r);return o}function Qt(t,n){var i,o=t.exceptionOrNull();return null==o?null==(i=t.value)||e.isType(i,s)?i:a():new ee(ca(o))}function Zt(t,n){var i;return e.isType(t,ee)?new $(A(ca(t.cause))):($.Companion,new $(null==(i=t)||e.isType(i,s)?i:a()))}function te(t,e){this.result=t,this.onCancellation=e}function ee(t,e){void 0===e&&(e=!1),this.cause=t,this._handled_0=O(e)}function ne(t,e,n){ee.call(this,null!=e?e:R("Continuation "+t+" was cancelled normally"),n),this._resumed_0=O(!1)}function ie(){ae(),I.call(this,b.Key)}function oe(){se=this,x.call(this,b.Key,re)}function re(t){var n;return e.isType(n=t,ie)?n:null}Ft.$metadata$={kind:c,simpleName:"CancelHandler",interfaces:[kt,ps]},Bt.$metadata$={kind:c,simpleName:"BeforeResumeCancelHandler",interfaces:[Ft]},Wt.prototype.invoke=function(t){this.handler_0(t)},Wt.prototype.toString=function(){return"InvokeOnCancel["+Cs(this.handler_0)+"@"+vs(this)+"]"},Wt.$metadata$={kind:c,simpleName:"InvokeOnCancel",interfaces:[Ft]},Object.defineProperty(Ht.prototype,"cancelled",{configurable:!0,get:function(){return null!=this.cancelCause}}),Ht.prototype.invokeHandlers_gygfbe$=function(t,e){var n,i;null!=(n=this.cancelHandler)&&t.callCancelHandler_gluymk$(n,e),null!=(i=this.onCancellation)&&t.callOnCancellation_e590hv$(i,e)},Ht.$metadata$={kind:c,simpleName:"CompletedContinuation",interfaces:[]},Ht.prototype.component1=function(){return this.result},Ht.prototype.component2=function(){return this.cancelHandler},Ht.prototype.component3=function(){return this.onCancellation},Ht.prototype.component4=function(){return this.idempotentResume},Ht.prototype.component5=function(){return this.cancelCause},Ht.prototype.copy_pkdjca$=function(t,e,n,i,o){return new Ht(void 0===t?this.result:t,void 0===e?this.cancelHandler:e,void 0===n?this.onCancellation:n,void 0===i?this.idempotentResume:i,void 0===o?this.cancelCause:o)},Ht.prototype.toString=function(){return"CompletedContinuation(result="+e.toString(this.result)+", cancelHandler="+e.toString(this.cancelHandler)+", onCancellation="+e.toString(this.onCancellation)+", idempotentResume="+e.toString(this.idempotentResume)+", cancelCause="+e.toString(this.cancelCause)+")"},Ht.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*(t=31*(t=31*t+e.hashCode(this.result)|0)+e.hashCode(this.cancelHandler)|0)+e.hashCode(this.onCancellation)|0)+e.hashCode(this.idempotentResume)|0)+e.hashCode(this.cancelCause)|0},Ht.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.result,t.result)&&e.equals(this.cancelHandler,t.cancelHandler)&&e.equals(this.onCancellation,t.onCancellation)&&e.equals(this.idempotentResume,t.idempotentResume)&&e.equals(this.cancelCause,t.cancelCause)},Vt.$metadata$={kind:T,simpleName:"CompletableDeferred",interfaces:[xe]},Object.defineProperty(Kt.prototype,"onCancelComplete",{configurable:!0,get:function(){return!0}}),Kt.prototype.getCompleted=function(){var t;return null==(t=this.getCompletedInternal_8be2vx$())||e.isType(t,s)?t:a()},Xt.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[h]},Xt.prototype=Object.create(h.prototype),Xt.prototype.constructor=Xt,Xt.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(this.state_0=2,this.result_0=this.$this.awaitInternal_8be2vx$(this),this.result_0===u)return u;continue;case 1:throw this.exception_0;case 2:return null==(t=this.result_0)||e.isType(t,s)?t:a();default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Kt.prototype.await=function(t,e){var n=new Xt(this,t);return e?n:n.doResume(null)},Object.defineProperty(Kt.prototype,"onAwait",{configurable:!0,get:function(){return this}}),Kt.prototype.registerSelectClause1_o3xas4$=function(t,e){this.registerSelectClause1Internal_u6kgbh$(t,e)},Kt.prototype.complete_11rb$=function(t){return this.makeCompleting_8ea4ql$(t)},Kt.prototype.completeExceptionally_tcv7n7$=function(t){return this.makeCompleting_8ea4ql$(new ee(t))},Kt.$metadata$={kind:c,simpleName:"CompletableDeferredImpl",interfaces:[Br,Vt,pn]},Jt.$metadata$={kind:T,simpleName:"CompletableJob",interfaces:[Be]},te.$metadata$={kind:c,simpleName:"CompletedWithCancellation",interfaces:[]},te.prototype.component1=function(){return this.result},te.prototype.component2=function(){return this.onCancellation},te.prototype.copy_pe4fyg$=function(t,e){return new te(void 0===t?this.result:t,void 0===e?this.onCancellation:e)},te.prototype.toString=function(){return"CompletedWithCancellation(result="+e.toString(this.result)+", onCancellation="+e.toString(this.onCancellation)+")"},te.prototype.hashCode=function(){var t=0;return t=31*(t=31*t+e.hashCode(this.result)|0)+e.hashCode(this.onCancellation)|0},te.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.result,t.result)&&e.equals(this.onCancellation,t.onCancellation)},Object.defineProperty(ee.prototype,"handled",{configurable:!0,get:function(){return this._handled_0.kotlinx$atomicfu$value}}),ee.prototype.makeHandled=function(){return this._handled_0.atomicfu$compareAndSet(!1,!0)},ee.prototype.toString=function(){return Cs(this)+"["+this.cause+"]"},ee.$metadata$={kind:c,simpleName:"CompletedExceptionally",interfaces:[]},ne.prototype.makeResumed=function(){return this._resumed_0.atomicfu$compareAndSet(!1,!0)},ne.$metadata$={kind:c,simpleName:"CancelledContinuation",interfaces:[ee]},oe.$metadata$={kind:w,simpleName:"Key",interfaces:[x]};var se=null;function ae(){return null===se&&new oe,se}function ce(t,n){var i;try{if(null!=(i=t.get_j3r2sn$(pe())))return void i.handleException_1ur55u$(t,n)}catch(t){if(e.isType(t,L))return void Ss(0,le(n,t));throw t}Ss(0,n)}function le(t,e){return t===e?t:new U("Exception while trying to handle coroutine exception",e)}function ue(){pe()}function he(){de=this}ie.prototype.isDispatchNeeded_1fupul$=function(t){return!0},ie.prototype.limitedParallelism_za3lpa$=function(t){return er(t),new tr(this,t)},ie.prototype.dispatchYield_5bn72i$=function(t,e){this.dispatch_5bn72i$(t,e)},ie.prototype.interceptContinuation_wj8d80$=function(t){return new Ho(this,t)},ie.prototype.releaseInterceptedContinuation_k98bjh$=function(t){var n;(e.isType(n=t,Ho)?n:a()).release()},ie.prototype.plus_9wrrq5$=function(t){return t},ie.prototype.toString=function(){return Cs(this)+"@"+vs(this)},ie.$metadata$={kind:c,simpleName:"CoroutineDispatcher",interfaces:[b,I]},he.$metadata$={kind:w,simpleName:"Key",interfaces:[D]};var de=null;function pe(){return null===de&&new he,de}function _e(t){ge(),I.call(this,ge()),this.name=t}function me(){fe=this}ue.$metadata$={kind:T,simpleName:"CoroutineExceptionHandler",interfaces:[P]},me.$metadata$={kind:w,simpleName:"Key",interfaces:[D]};var fe=null;function ge(){return null===fe&&new me,fe}function $e(){}function Ee(){Ce=this}_e.prototype.toString=function(){return"CoroutineName("+this.name+")"},_e.$metadata$={kind:c,simpleName:"CoroutineName",interfaces:[I]},_e.prototype.component1=function(){return this.name},_e.prototype.copy_61zpoe$=function(t){return new _e(void 0===t?this.name:t)},_e.prototype.hashCode=function(){var t=0;return t=31*t+e.hashCode(this.name)|0},_e.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.name,t.name)},$e.$metadata$={kind:T,simpleName:"CoroutineScope",interfaces:[]},Object.defineProperty(Ee.prototype,"coroutineContext",{configurable:!0,get:function(){return E.EmptyCoroutineContext}}),Ee.$metadata$={kind:w,simpleName:"GlobalScope",interfaces:[$e]};var ye,be,Se,ve,Ce=null;function Ne(t,e){var n;if(void 0===e&&(e=null),null==(n=t.coroutineContext.get_j3r2sn$(Ve())))throw N(("Scope cannot be cancelled because it does not have a job: "+t).toString());n.cancel_x5z25k$(e)}function Te(t,e){G.call(this),this.name$=t,this.ordinal$=e}function Le(){Le=function(){},ye=new Te("DEFAULT",0),be=new Te("LAZY",1),Se=new Te("ATOMIC",2),ve=new Te("UNDISPATCHED",3)}function ze(){return Le(),ye}function we(){return Le(),be}function Oe(){return Le(),Se}function Re(){return Le(),ve}function Ae(){}function xe(){}function Ie(t){return function(e){var n=new Mt(f(e),1);return n.initCancellability(),t(n),n.getResult()}}function Ue(){}function De(t){var n,i;return null!=(i=e.isType(n=t.get_j3r2sn$(b.Key),Ue)?n:null)?i:fs()}function Pe(){ie.call(this),this.useCount_0=W,this.shared_0=!1,this.unconfinedQueue_0=null}function Me(){ke=this,this.ref_0=new ma}v("kotlinx-coroutines-core.kotlinx.coroutines.currentCoroutineContext",(function(t){return e.coroutineReceiver().context})),Te.prototype.invoke_810yno$=function(t,n){switch(this.name){case"DEFAULT":Rr(t,n);break;case"ATOMIC":k(t,n);break;case"UNDISPATCHED":Pr(t,n);break;case"LAZY":break;default:e.noWhenBranchMatched()}},Te.prototype.invoke_3o0yor$=function(t,n,i){switch(this.name){case"DEFAULT":Ar(t,n,i);break;case"ATOMIC":j(t,n,i);break;case"UNDISPATCHED":Mr(t,n,i);break;case"LAZY":break;default:e.noWhenBranchMatched()}},Object.defineProperty(Te.prototype,"isLazy",{configurable:!0,get:function(){return this===we()}}),Te.$metadata$={kind:c,simpleName:"CoroutineStart",interfaces:[G]},Te.values=function(){return[ze(),we(),Oe(),Re()]},Te.valueOf_61zpoe$=function(t){switch(t){case"DEFAULT":return ze();case"LAZY":return we();case"ATOMIC":return Oe();case"UNDISPATCHED":return Re();default:q("No enum constant kotlinx.coroutines.CoroutineStart."+t)}},Ae.$metadata$={kind:T,simpleName:"CopyableThrowable",interfaces:[]},xe.$metadata$={kind:T,simpleName:"Deferred",interfaces:[Be]},Ue.prototype.delay_s8cxhz$=function(t,e){var n,i;if(!(t.toNumber()<=0))return Ie((n=t,i=this,function(t){return i.scheduleResumeAfterDelay_egqmvs$(n,t),d}))(e)},Ue.prototype.invokeOnTimeout_oczv3n$=function(t,e,n){return fs().invokeOnTimeout_oczv3n$(t,e,n)},Ue.$metadata$={kind:T,simpleName:"Delay",interfaces:[]},Pe.prototype.processNextEvent=function(){return this.processUnconfinedEvent()?W:F},Object.defineProperty(Pe.prototype,"isEmpty",{configurable:!0,get:function(){return this.isUnconfinedQueueEmpty}}),Object.defineProperty(Pe.prototype,"nextTime",{configurable:!0,get:function(){var t;return null==(t=this.unconfinedQueue_0)||t.isEmpty?F:W}}),Pe.prototype.processUnconfinedEvent=function(){var t,e;return null!=(t=this.unconfinedQueue_0)&&null!=(e=t.removeFirstOrNull())&&(e.run(),!0)},Pe.prototype.shouldBeProcessedFromContext=function(){return!1},Pe.prototype.dispatchUnconfined_4avnfa$=function(t){var e,n;if(null!=(e=this.unconfinedQueue_0))n=e;else{var i=new qo;this.unconfinedQueue_0=i,n=i}n.addLast_trkh7z$(t)},Object.defineProperty(Pe.prototype,"isActive",{configurable:!0,get:function(){return this.useCount_0.toNumber()>0}}),Object.defineProperty(Pe.prototype,"isUnconfinedLoopActive",{configurable:!0,get:function(){return this.useCount_0.compareTo_11rb$(this.delta_0(!0))>=0}}),Object.defineProperty(Pe.prototype,"isUnconfinedQueueEmpty",{configurable:!0,get:function(){var t,e;return null==(e=null!=(t=this.unconfinedQueue_0)?t.isEmpty:null)||e}}),Pe.prototype.delta_0=function(t){return t?H:B},Pe.prototype.incrementUseCount_6taknv$=function(t){void 0===t&&(t=!1),this.useCount_0=this.useCount_0.add(this.delta_0(t)),t||(this.shared_0=!0)},Pe.prototype.decrementUseCount_6taknv$=function(t){void 0===t&&(t=!1),this.useCount_0=this.useCount_0.subtract(this.delta_0(t)),this.useCount_0.toNumber()>0||this.shared_0&&this.shutdown()},Pe.prototype.limitedParallelism_za3lpa$=function(t){return er(t),this},Pe.prototype.shutdown=function(){},Pe.$metadata$={kind:c,simpleName:"EventLoop",interfaces:[ie]},Object.defineProperty(Me.prototype,"eventLoop_8be2vx$",{configurable:!0,get:function(){var t,e;if(null!=(t=this.ref_0.get()))e=t;else{var n=Os();this.ref_0.set_11rb$(n),e=n}return e}}),Me.prototype.currentOrNull_8be2vx$=function(){return this.ref_0.get()},Me.prototype.resetEventLoop_8be2vx$=function(){this.ref_0.set_11rb$(null)},Me.prototype.setEventLoop_13etkv$=function(t){this.ref_0.set_11rb$(t)},Me.$metadata$={kind:w,simpleName:"ThreadLocalEventLoop",interfaces:[]};var ke=null;function je(){return null===ke&&new Me,ke}function Ge(){As.call(this),this._queue_0=_(null),this._delayed_0=_(null),this._isCompleted_0=O(!1)}function qe(t,e){U.call(this,t,e),this.name="CompletionHandlerException"}function Fe(t,e){X.call(this,t,e),this.name="CoroutinesInternalError"}function Be(){Ve()}function We(){He=this}qe.$metadata$={kind:c,simpleName:"CompletionHandlerException",interfaces:[U]},Fe.$metadata$={kind:c,simpleName:"CoroutinesInternalError",interfaces:[X]},We.$metadata$={kind:w,simpleName:"Key",interfaces:[D]};var He=null;function Ve(){return null===He&&new We,He}function Ke(t){return void 0===t&&(t=null),new vn(t)}function Xe(t){this.function$=t}function Je(){}function Ye(){}function Qe(){}function Ze(t,e){return t.invokeOnCompletion_f05bi3$(new Rn(e))}function tn(t){if(!t.isActive)throw t.getCancellationException()}function en(t){var e;null!=(e=t.get_j3r2sn$(Ve()))&&tn(e)}function nn(){hn=this}Be.prototype.cancel_x5z25k$=function(t,e){void 0===t&&(t=null),e?e(t):this.cancel_x5z25k$$default(t)},Be.prototype.cancel=function(){this.cancel_x5z25k$(null)},Be.prototype.cancel_dbl4no$=function(t,e){return void 0===t&&(t=null),e?e(t):this.cancel_dbl4no$$default(t)},Be.prototype.invokeOnCompletion_ct2b2z$=function(t,e,n,i){return void 0===t&&(t=!1),void 0===e&&(e=!0),i?i(t,e,n):this.invokeOnCompletion_ct2b2z$$default(t,e,n)},Be.prototype.plus_dqr1mp$=function(t){return t},Be.$metadata$={kind:T,simpleName:"Job",interfaces:[P]},Xe.prototype.dispose=function(){return this.function$()},Xe.$metadata$={kind:T,simpleName:"DisposableHandle",interfaces:[]},Je.$metadata$={kind:T,simpleName:"ChildJob",interfaces:[Be]},Ye.$metadata$={kind:T,simpleName:"ParentJob",interfaces:[Be]},Qe.$metadata$={kind:T,simpleName:"ChildHandle",interfaces:[Xe]},Object.defineProperty(nn.prototype,"parent",{configurable:!0,get:function(){return null}}),nn.prototype.dispose=function(){},nn.prototype.childCancelled_tcv7n7$=function(t){return!1},nn.prototype.toString=function(){return"NonDisposableHandle"},nn.$metadata$={kind:w,simpleName:"NonDisposableHandle",interfaces:[Qe,Xe]};var on,rn,sn,an,cn,ln,un,hn=null;function dn(){return null===hn&&new nn,hn}function pn(t){this._state_v70vig$_0=_(t?un:ln),this._parentHandle_acgcx5$_0=_(null)}function _n(t,e){return function(){return t.state_8be2vx$===e}}function mn(t,e,n,i){h.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$JobSupport=t,this.local$tmp$=void 0,this.local$tmp$_0=void 0,this.local$cur=void 0,this.local$$receiver=e}function fn(t,e,n){this.list_m9wkmb$_0=t,this._isCompleting_0=O(e),this._rootCause_0=_(n),this._exceptionsHolder_0=_(null)}function gn(t,e,n,i){Nn.call(this),this.parent_0=t,this.state_0=e,this.child_0=n,this.proposedUpdate_0=i}function $n(t,e){Mt.call(this,t,1),this.job_0=e}function En(t){this.state=t}function yn(t){return e.isType(t,Cn)?new En(t):t}function bn(t){var n,i,o;return null!=(o=null!=(i=e.isType(n=t,En)?n:null)?i.state:null)?o:t}function Sn(t){this.isActive_hyoax9$_0=t}function vn(t){pn.call(this,!0),this.initParentJob_5dx9e$(t),this.handlesException_fejgjb$_0=this.handlesExceptionF()}function Cn(){}function Nn(){ds.call(this),this.job_ndnibc$_0=this.job_ndnibc$_0}function Tn(){aa.call(this)}function Ln(t){this.list_afai45$_0=t}function zn(t){Nn.call(this),this.handler_0=t}function wn(t){Nn.call(this),this.continuation_0=t}function On(t){Nn.call(this),this.continuation_0=t}function Rn(t){Nn.call(this),this.handle_0=t}function An(t,e){Nn.call(this),this.select_0=t,this.block_0=e}function xn(t,e){Nn.call(this),this.select_0=t,this.block_0=e}function In(){Nn.call(this)}function Un(t){In.call(this),this.handler_0=t,this._invoked_0=m(0)}function Dn(t){In.call(this),this.childJob=t}function Pn(t){In.call(this),this.child=t}function Mn(){ie.call(this)}function kn(){I.call(this,Ve()),this.message_0="NonCancellable can be used only as an argument for 'withContext', direct usages of its API are prohibited"}function jn(t){vn.call(this,t)}function Gn(t,e,n){return function(i){var o=new Bn(t,i);return e.v=o,Fn(o,n)}}function qn(t,e,n){h.call(this,n),this.exceptionState_0=7,this.local$coroutine=void 0,this.local$e=void 0,this.local$timeMillis=t,this.local$block=e}function Fn(t,e){return Ze(t,De(t.uCont.context).invokeOnTimeout_oczv3n$(t.time,t,t.context)),jr(t,t,e)}function Bn(t,e){Tr.call(this,e.context,e),this.time=t}function Wn(t,e){R(t,this),this.coroutine_8be2vx$=e,this.name="TimeoutCancellationException"}function Hn(t,e){return e=e||Object.create(Wn.prototype),Wn.call(e,t,null),e}function Vn(t,e){return new Wn("Timed out waiting for "+t.toString()+" ms",e)}function Kn(){Xn=this,ie.call(this)}Object.defineProperty(pn.prototype,"key",{configurable:!0,get:function(){return Ve()}}),Object.defineProperty(pn.prototype,"parentHandle_8be2vx$",{configurable:!0,get:function(){return this._parentHandle_acgcx5$_0.kotlinx$atomicfu$value},set:function(t){this._parentHandle_acgcx5$_0.kotlinx$atomicfu$value=t}}),pn.prototype.initParentJob_5dx9e$=function(t){if(null!=t){t.start();var e=t.attachChild_kx8v25$(this);this.parentHandle_8be2vx$=e,this.isCompleted&&(e.dispose(),this.parentHandle_8be2vx$=dn())}else this.parentHandle_8be2vx$=dn()},Object.defineProperty(pn.prototype,"state_8be2vx$",{configurable:!0,get:function(){for(var t=this._state_v70vig$_0;;){var n=t.kotlinx$atomicfu$value;if(!e.isType(n,Fo))return n;n.perform_s8jyv4$(this)}}}),pn.prototype.loopOnState_46ivxf$_0=function(t){for(;;)t(this.state_8be2vx$)},Object.defineProperty(pn.prototype,"isActive",{configurable:!0,get:function(){var t=this.state_8be2vx$;return e.isType(t,Cn)&&t.isActive}}),Object.defineProperty(pn.prototype,"isCompleted",{configurable:!0,get:function(){return!e.isType(this.state_8be2vx$,Cn)}}),Object.defineProperty(pn.prototype,"isCancelled",{configurable:!0,get:function(){var t=this.state_8be2vx$;return e.isType(t,ee)||e.isType(t,fn)&&t.isCancelling}}),pn.prototype.finalizeFinishingState_10mr1z$_0=function(t,n){var i,o,r,s=null!=(o=e.isType(i=n,ee)?i:null)?o.cause:null,c={v:!1};c.v=t.isCancelling;var l=t.sealLocked_dbl4no$(s),u=this.getFinalRootCause_3zkch4$_0(t,l);null!=u&&this.addSuppressedExceptions_85dgeo$_0(u,l);var h=u,d=null==h||h===s?n:new ee(h);return null!=h&&(this.cancelParent_7dutpz$_0(h)||this.handleJobException_tcv7n7$(h))&&(e.isType(r=d,ee)?r:a()).makeHandled(),c.v||this.onCancelling_dbl4no$(h),this.onCompletionInternal_s8jyv4$(d),this._state_v70vig$_0.atomicfu$compareAndSet(t,yn(d)),this.completeStateFinalization_a4ilmi$_0(t,d),d},pn.prototype.getFinalRootCause_3zkch4$_0=function(t,n){if(n.isEmpty())return t.isCancelling?new Is(this.cancellationExceptionMessage(),null,this):null;var i;t:do{var o;for(o=n.iterator();o.hasNext();){var r=o.next();if(!e.isType(r,J)){i=r;break t}}i=null}while(0);if(null!=i)return i;var s=n.get_za3lpa$(0);if(e.isType(s,Wn)){var a;t:do{var c;for(c=n.iterator();c.hasNext();){var l=c.next();if(l!==s&&e.isType(l,Wn)){a=l;break t}}a=null}while(0);if(null!=a)return a}return s},pn.prototype.addSuppressedExceptions_85dgeo$_0=function(t,n){var i;if(!(n.size<=1)){var o=ea(n.size),r=t;for(i=n.iterator();i.hasNext();){var s=i.next();s!==t&&s!==r&&!e.isType(s,J)&&o.add_11rb$(s)}}},pn.prototype.tryFinalizeSimpleState_5emg4m$_0=function(t,e){return!!this._state_v70vig$_0.atomicfu$compareAndSet(t,yn(e))&&(this.onCancelling_dbl4no$(null),this.onCompletionInternal_s8jyv4$(e),this.completeStateFinalization_a4ilmi$_0(t,e),!0)},pn.prototype.completeStateFinalization_a4ilmi$_0=function(t,n){var i,o,r,s;null!=(i=this.parentHandle_8be2vx$)&&(i.dispose(),this.parentHandle_8be2vx$=dn());var a=null!=(r=e.isType(o=n,ee)?o:null)?r.cause:null;if(e.isType(t,Nn))try{t.invoke(a)}catch(n){if(!e.isType(n,L))throw n;this.handleOnCompletionException_tcv7n7$(new qe("Exception in completion handler "+t+" for "+this,n))}else null!=(s=t.list)&&this.notifyCompletion_mgxta4$_0(s,a)},pn.prototype.notifyCancelling_xkpzb8$_0=function(t,n){var i;this.onCancelling_dbl4no$(n);for(var o={v:null},r=t._next;!S(r,t);){if(e.isType(r,In)){var s,a=r;try{a.invoke(n)}catch(t){if(!e.isType(t,L))throw t;null==(null!=(s=o.v)?s:null)&&(o.v=new qe("Exception in completion handler "+a+" for "+this,t))}}r=r._next}null!=(i=o.v)&&this.handleOnCompletionException_tcv7n7$(i),this.cancelParent_7dutpz$_0(n)},pn.prototype.cancelParent_7dutpz$_0=function(t){if(this.isScopedCoroutine)return!0;var n=e.isType(t,J),i=this.parentHandle_8be2vx$;return null===i||i===dn()?n:i.childCancelled_tcv7n7$(t)||n},pn.prototype.notifyCompletion_mgxta4$_0=function(t,n){for(var i,o={v:null},r=t._next;!S(r,t);){if(e.isType(r,Nn)){var s,a=r;try{a.invoke(n)}catch(t){if(!e.isType(t,L))throw t;null==(null!=(s=o.v)?s:null)&&(o.v=new qe("Exception in completion handler "+a+" for "+this,t))}}r=r._next}null!=(i=o.v)&&this.handleOnCompletionException_tcv7n7$(i)},pn.prototype.notifyHandlers_8g4jwh$_0=C((function(){var t=e.equals;return function(n,i,o,r){for(var s,a={v:null},c=o._next;!t(c,o);){if(i(c)){var l,u=c;try{u.invoke(r)}catch(t){if(!e.isType(t,L))throw t;null==(null!=(l=a.v)?l:null)&&(a.v=new qe("Exception in completion handler "+u+" for "+this,t))}}c=c._next}null!=(s=a.v)&&this.handleOnCompletionException_tcv7n7$(s)}})),pn.prototype.start=function(){for(;;)switch(this.startInternal_tp1bqd$_0(this.state_8be2vx$)){case 0:return!1;case 1:return!0}},pn.prototype.startInternal_tp1bqd$_0=function(t){return e.isType(t,Sn)?t.isActive?0:this._state_v70vig$_0.atomicfu$compareAndSet(t,un)?(this.onStart(),1):-1:e.isType(t,Ln)?this._state_v70vig$_0.atomicfu$compareAndSet(t,t.list)?(this.onStart(),1):-1:0},pn.prototype.onStart=function(){},pn.prototype.getCancellationException=function(){var t,n,i=this.state_8be2vx$;if(e.isType(i,fn)){if(null==(n=null!=(t=i.rootCause)?this.toCancellationException_rg9tb7$(t,Cs(this)+" is cancelling"):null))throw N(("Job is still new or active: "+this).toString());return n}if(e.isType(i,Cn))throw N(("Job is still new or active: "+this).toString());return e.isType(i,ee)?this.toCancellationException_rg9tb7$(i.cause):new Is(Cs(this)+" has completed normally",null,this)},pn.prototype.toCancellationException_rg9tb7$=function(t,n){var i,o;return void 0===n&&(n=null),null!=(o=e.isType(i=t,J)?i:null)?o:new Is(null!=n?n:this.cancellationExceptionMessage(),t,this)},Object.defineProperty(pn.prototype,"completionCause",{configurable:!0,get:function(){var t,n=this.state_8be2vx$;if(e.isType(n,fn)){if(null==(t=n.rootCause))throw N(("Job is still new or active: "+this).toString());return t}if(e.isType(n,Cn))throw N(("Job is still new or active: "+this).toString());return e.isType(n,ee)?n.cause:null}}),Object.defineProperty(pn.prototype,"completionCauseHandled",{configurable:!0,get:function(){var t=this.state_8be2vx$;return e.isType(t,ee)&&t.handled}}),pn.prototype.invokeOnCompletion_f05bi3$=function(t){return this.invokeOnCompletion_ct2b2z$(!1,!0,t)},pn.prototype.invokeOnCompletion_ct2b2z$$default=function(t,n,i){for(var o=this.makeNode_9qhc1i$_0(i,t);;){var r=this.state_8be2vx$;t:do{var s,c,l;if(e.isType(r,Sn))if(r.isActive){if(this._state_v70vig$_0.atomicfu$compareAndSet(r,o))return o}else this.promoteEmptyToNodeList_lchanx$_0(r);else{if(!e.isType(r,Cn))return n&&_s(i,null!=(l=e.isType(c=r,ee)?c:null)?l.cause:null),dn();var u=r.list;if(null==u)this.promoteSingleToNodeList_l9deey$_0(e.isType(s=r,Nn)?s:a());else{var h={v:null},d={v:dn()};if(t&&e.isType(r,fn)){h.v=r.rootCause;var p=null==h.v;if(p||(p=e.isType(i,Dn)&&!r.isCompleting),p){if(!this.addLastAtomic_ct8uo8$_0(r,u,o))break t;if(null==h.v)return o;d.v=o}}if(null!=h.v)return n&&_s(i,h.v),d.v;if(this.addLastAtomic_ct8uo8$_0(r,u,o))return o}}}while(0)}},pn.prototype.makeNode_9qhc1i$_0=function(t,n){var i,o,r,s,a,c=n?null!=(o=e.isType(i=t,In)?i:null)?o:new Un(t):null!=(a=null!=(s=e.isType(r=t,Nn)?r:null)?s:null)?a:new zn(t);return c.job=this,c},pn.prototype.addLastAtomic_ct8uo8$_0=function(t,e,n){var i;t:do{if(!_n(this,t)()){i=!1;break t}e.addLast_l2j9rm$(n),i=!0}while(0);return i},pn.prototype.promoteEmptyToNodeList_lchanx$_0=function(t){var e=new Tn,n=t.isActive?e:new Ln(e);this._state_v70vig$_0.atomicfu$compareAndSet(t,n)},pn.prototype.promoteSingleToNodeList_l9deey$_0=function(t){t.addOneIfEmpty_l2j9rm$(new Tn);var e=t._next;this._state_v70vig$_0.atomicfu$compareAndSet(t,e)},pn.prototype.join=function(t){if(this.joinInternal_ta6o25$_0())return this.joinSuspend_kfh5g8$_0(t);en(t.context)},pn.prototype.joinInternal_ta6o25$_0=function(){for(;;){var t=this.state_8be2vx$;if(!e.isType(t,Cn))return!1;if(this.startInternal_tp1bqd$_0(t)>=0)return!0}},pn.prototype.joinSuspend_kfh5g8$_0=function(t){return(n=this,e=function(t){return Ut(t,n.invokeOnCompletion_f05bi3$(new wn(t))),d},function(t){var n=new Mt(f(t),1);return n.initCancellability(),e(n),n.getResult()})(t);var e,n},Object.defineProperty(pn.prototype,"onJoin",{configurable:!0,get:function(){return this}}),pn.prototype.registerSelectClause0_s9h9qd$=function(t,n){for(;;){var i=this.state_8be2vx$;if(t.isSelected)return;if(!e.isType(i,Cn))return void(t.trySelect()&&Ur(n,t.completion));if(0===this.startInternal_tp1bqd$_0(i))return void t.disposeOnSelect_rvfg84$(this.invokeOnCompletion_f05bi3$(new An(t,n)))}},pn.prototype.removeNode_jr34ao$=function(t){for(;;){var n=this.state_8be2vx$;if(!e.isType(n,Nn))return e.isType(n,Cn)?void(null!=n.list&&t.remove()):void 0;if(n!==t)return;if(this._state_v70vig$_0.atomicfu$compareAndSet(n,un))return}},Object.defineProperty(pn.prototype,"onCancelComplete",{configurable:!0,get:function(){return!1}}),pn.prototype.cancel_x5z25k$$default=function(t){this.cancelInternal_tcv7n7$(null!=t?t:new Is(this.cancellationExceptionMessage(),null,this))},pn.prototype.cancellationExceptionMessage=function(){return"Job was cancelled"},pn.prototype.cancel_dbl4no$$default=function(t){var e;return this.cancelInternal_tcv7n7$(null!=(e=null!=t?this.toCancellationException_rg9tb7$(t):null)?e:new Is(this.cancellationExceptionMessage(),null,this)),!0},pn.prototype.cancelInternal_tcv7n7$=function(t){this.cancelImpl_8ea4ql$(t)},pn.prototype.parentCancelled_pv1t6x$=function(t){this.cancelImpl_8ea4ql$(t)},pn.prototype.childCancelled_tcv7n7$=function(t){return!!e.isType(t,J)||this.cancelImpl_8ea4ql$(t)&&this.handlesException},pn.prototype.cancelCoroutine_dbl4no$=function(t){return this.cancelImpl_8ea4ql$(t)},pn.prototype.cancelImpl_8ea4ql$=function(t){var e,n=on;return!(!this.onCancelComplete||(n=this.cancelMakeCompleting_z3ww04$_0(t))!==rn)||(n===on&&(n=this.makeCancelling_xjon1g$_0(t)),n===on||n===rn?e=!0:n===an?e=!1:(this.afterCompletion_s8jyv4$(n),e=!0),e)},pn.prototype.cancelMakeCompleting_z3ww04$_0=function(t){for(;;){var n=this.state_8be2vx$;if(!e.isType(n,Cn)||e.isType(n,fn)&&n.isCompleting)return on;var i=new ee(this.createCauseException_kfrsk8$_0(t)),o=this.tryMakeCompleting_w5s53t$_0(n,i);if(o!==sn)return o}},pn.prototype.defaultCancellationException_6umzry$=v("kotlinx-coroutines-core.kotlinx.coroutines.JobSupport.defaultCancellationException_6umzry$",C((function(){var e=t.kotlinx.coroutines.JobCancellationException;return function(t,n){return void 0===t&&(t=null),void 0===n&&(n=null),new e(null!=t?t:this.cancellationExceptionMessage(),n,this)}}))),pn.prototype.getChildJobCancellationCause=function(){var t,n,i,o=this.state_8be2vx$;if(e.isType(o,fn))t=o.rootCause;else if(e.isType(o,ee))t=o.cause;else{if(e.isType(o,Cn))throw N(("Cannot be cancelling child in this state: "+z(o)).toString());t=null}var r=t;return null!=(i=e.isType(n=r,J)?n:null)?i:new Is("Parent job is "+this.stateString_u2sjqg$_0(o),r,this)},pn.prototype.createCauseException_kfrsk8$_0=function(t){var n;return null==t||e.isType(t,L)?null!=t?t:new Is(this.cancellationExceptionMessage(),null,this):(e.isType(n=t,Ye)?n:a()).getChildJobCancellationCause()},pn.prototype.makeCancelling_xjon1g$_0=function(t){for(var n={v:null};;){var i,o,r=this.state_8be2vx$;if(e.isType(r,fn)){var s;if(r.isSealed)return an;var a=r.isCancelling;if(null!=t||!a){var c;if(null!=(s=n.v))c=s;else{var l=this.createCauseException_kfrsk8$_0(t);n.v=l,c=l}var u=c;r.addExceptionLocked_tcv7n7$(u)}var h=r.rootCause,d=a?null:h;return null!=d&&this.notifyCancelling_xkpzb8$_0(r.list,d),on}if(!e.isType(r,Cn))return an;if(null!=(i=n.v))o=i;else{var p=this.createCauseException_kfrsk8$_0(t);n.v=p,o=p}var _=o;if(r.isActive){if(this.tryMakeCancelling_v0qvyy$_0(r,_))return on}else{var m=this.tryMakeCompleting_w5s53t$_0(r,new ee(_));if(m===on)throw N(("Cannot happen in "+z(r)).toString());if(m!==sn)return m}}},pn.prototype.getOrPromoteCancellingList_dmij2j$_0=function(t){var n,i;if(null==(i=t.list)){if(e.isType(t,Sn))n=new Tn;else{if(!e.isType(t,Nn))throw N(("State should have list: "+t).toString());this.promoteSingleToNodeList_l9deey$_0(t),n=null}i=n}return i},pn.prototype.tryMakeCancelling_v0qvyy$_0=function(t,e){var n;if(null==(n=this.getOrPromoteCancellingList_dmij2j$_0(t)))return!1;var i=n,o=new fn(i,!1,e);return!!this._state_v70vig$_0.atomicfu$compareAndSet(t,o)&&(this.notifyCancelling_xkpzb8$_0(i,e),!0)},pn.prototype.makeCompleting_8ea4ql$=function(t){for(;;){var e=this.tryMakeCompleting_w5s53t$_0(this.state_8be2vx$,t);if(e===on)return!1;if(e===rn)return!0;if(e!==sn)return this.afterCompletion_s8jyv4$(e),!0}},pn.prototype.makeCompletingOnce_8ea4ql$=function(t){for(;;){var e=this.tryMakeCompleting_w5s53t$_0(this.state_8be2vx$,t);if(e===on)throw new Y("Job "+this+" is already complete or completing, but is being completed with "+z(t),this.get_exceptionOrNull_ejijbb$_0(t));if(e!==sn)return e}},pn.prototype.tryMakeCompleting_w5s53t$_0=function(t,n){return e.isType(t,Cn)?!e.isType(t,Sn)&&!e.isType(t,Nn)||e.isType(t,Dn)||e.isType(n,ee)?this.tryMakeCompletingSlowPath_uh1ctj$_0(t,n):this.tryFinalizeSimpleState_5emg4m$_0(t,n)?n:sn:on},pn.prototype.tryMakeCompletingSlowPath_uh1ctj$_0=function(t,n){var i,o,r,s;if(null==(i=this.getOrPromoteCancellingList_dmij2j$_0(t)))return sn;var a,c,l=i,u=null!=(r=e.isType(o=t,fn)?o:null)?r:new fn(l,!1,null),h={v:null};if(u.isCompleting)return on;if(u.isCompleting=!0,u!==t&&!this._state_v70vig$_0.atomicfu$compareAndSet(t,u))return sn;var d=u.isCancelling;null!=(c=e.isType(a=n,ee)?a:null)&&u.addExceptionLocked_tcv7n7$(c.cause);var p=u.rootCause;h.v=d?null:p,null!=(s=h.v)&&this.notifyCancelling_xkpzb8$_0(l,s);var _=this.firstChild_15hr5g$_0(t);return null!=_&&this.tryWaitForChild_dzo3im$_0(u,_,n)?rn:this.finalizeFinishingState_10mr1z$_0(u,n)},pn.prototype.get_exceptionOrNull_ejijbb$_0=function(t){var n,i;return null!=(i=e.isType(n=t,ee)?n:null)?i.cause:null},pn.prototype.firstChild_15hr5g$_0=function(t){var n,i,o;return null!=(o=e.isType(n=t,Dn)?n:null)?o:null!=(i=t.list)?this.nextChild_n2no7k$_0(i):null},pn.prototype.tryWaitForChild_dzo3im$_0=function(t,e,n){var i;if(e.childJob.invokeOnCompletion_ct2b2z$(void 0,!1,new gn(this,t,e,n))!==dn())return!0;if(null==(i=this.nextChild_n2no7k$_0(e)))return!1;var o=i;return this.tryWaitForChild_dzo3im$_0(t,o,n)},pn.prototype.continueCompleting_vth2d4$_0=function(t,e,n){var i=this.nextChild_n2no7k$_0(e);if(null==i||!this.tryWaitForChild_dzo3im$_0(t,i,n)){var o=this.finalizeFinishingState_10mr1z$_0(t,n);this.afterCompletion_s8jyv4$(o)}},pn.prototype.nextChild_n2no7k$_0=function(t){for(var n=t;n._removed;)n=n._prev;for(;;)if(!(n=n._next)._removed){if(e.isType(n,Dn))return n;if(e.isType(n,Tn))return null}},mn.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[h]},mn.prototype=Object.create(h.prototype),mn.prototype.constructor=mn,mn.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=this.local$this$JobSupport.state_8be2vx$;if(e.isType(t,Dn)){if(this.state_0=8,this.result_0=this.local$$receiver.yield_11rb$(t.childJob,this),this.result_0===u)return u;continue}if(e.isType(t,Cn)){if(null!=(this.local$tmp$=t.list)){this.local$cur=this.local$tmp$._next,this.state_0=2;continue}this.local$tmp$_0=null,this.state_0=6;continue}this.state_0=7;continue;case 1:throw this.exception_0;case 2:if(S(this.local$cur,this.local$tmp$)){this.state_0=5;continue}if(e.isType(this.local$cur,Dn)){if(this.state_0=3,this.result_0=this.local$$receiver.yield_11rb$(this.local$cur.childJob,this),this.result_0===u)return u;continue}this.state_0=4;continue;case 3:this.state_0=4;continue;case 4:this.local$cur=this.local$cur._next,this.state_0=2;continue;case 5:this.local$tmp$_0=d,this.state_0=6;continue;case 6:return this.local$tmp$_0;case 7:this.state_0=9;continue;case 8:return this.result_0;case 9:return d;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Object.defineProperty(pn.prototype,"children",{configurable:!0,get:function(){return Q((t=this,function(e,n,i){var o=new mn(t,e,this,n);return i?o:o.doResume(null)}));var t}}),pn.prototype.attachChild_kx8v25$=function(t){var n;return e.isType(n=this.invokeOnCompletion_ct2b2z$(!0,void 0,new Dn(t)),Qe)?n:a()},pn.prototype.handleOnCompletionException_tcv7n7$=function(t){throw t},pn.prototype.onCancelling_dbl4no$=function(t){},Object.defineProperty(pn.prototype,"isScopedCoroutine",{configurable:!0,get:function(){return!1}}),Object.defineProperty(pn.prototype,"handlesException",{configurable:!0,get:function(){return!0}}),pn.prototype.handleJobException_tcv7n7$=function(t){return!1},pn.prototype.onCompletionInternal_s8jyv4$=function(t){},pn.prototype.afterCompletion_s8jyv4$=function(t){},pn.prototype.toString=function(){return this.toDebugString()+"@"+vs(this)},pn.prototype.toDebugString=function(){return this.nameString()+"{"+this.stateString_u2sjqg$_0(this.state_8be2vx$)+"}"},pn.prototype.nameString=function(){return Cs(this)},pn.prototype.stateString_u2sjqg$_0=function(t){return e.isType(t,fn)?t.isCancelling?"Cancelling":t.isCompleting?"Completing":"Active":e.isType(t,Cn)?t.isActive?"Active":"New":e.isType(t,ee)?"Cancelled":"Completed"},Object.defineProperty(fn.prototype,"list",{get:function(){return this.list_m9wkmb$_0}}),Object.defineProperty(fn.prototype,"isCompleting",{configurable:!0,get:function(){return this._isCompleting_0.kotlinx$atomicfu$value},set:function(t){this._isCompleting_0.kotlinx$atomicfu$value=t}}),Object.defineProperty(fn.prototype,"rootCause",{configurable:!0,get:function(){return this._rootCause_0.kotlinx$atomicfu$value},set:function(t){this._rootCause_0.kotlinx$atomicfu$value=t}}),Object.defineProperty(fn.prototype,"exceptionsHolder_0",{configurable:!0,get:function(){return this._exceptionsHolder_0.kotlinx$atomicfu$value},set:function(t){this._exceptionsHolder_0.kotlinx$atomicfu$value=t}}),Object.defineProperty(fn.prototype,"isSealed",{configurable:!0,get:function(){return this.exceptionsHolder_0===cn}}),Object.defineProperty(fn.prototype,"isCancelling",{configurable:!0,get:function(){return null!=this.rootCause}}),Object.defineProperty(fn.prototype,"isActive",{configurable:!0,get:function(){return null==this.rootCause}}),fn.prototype.sealLocked_dbl4no$=function(t){var n,i,o=this.exceptionsHolder_0;if(null==o)i=this.allocateList_0();else if(e.isType(o,L)){var r=this.allocateList_0();r.add_11rb$(o),i=r}else{if(!e.isType(o,Z))throw N(("State is "+z(o)).toString());i=e.isType(n=o,Z)?n:a()}var s=i,c=this.rootCause;return null!=c&&s.add_wxm5ur$(0,c),null==t||S(t,c)||s.add_11rb$(t),this.exceptionsHolder_0=cn,s},fn.prototype.addExceptionLocked_tcv7n7$=function(t){var n,i=this.rootCause;if(null!=i){if(t!==i){var o=this.exceptionsHolder_0;if(null==o)this.exceptionsHolder_0=t;else if(e.isType(o,L)){if(t===o)return;var r=this.allocateList_0();r.add_11rb$(o),r.add_11rb$(t),this.exceptionsHolder_0=r}else{if(!e.isType(o,Z))throw N(("State is "+z(o)).toString());(e.isType(n=o,Z)?n:a()).add_11rb$(t)}}}else this.rootCause=t},fn.prototype.allocateList_0=function(){return g(4)},fn.prototype.toString=function(){return"Finishing[cancelling="+this.isCancelling+", completing="+this.isCompleting+", rootCause="+z(this.rootCause)+", exceptions="+z(this.exceptionsHolder_0)+", list="+this.list+"]"},fn.$metadata$={kind:c,simpleName:"Finishing",interfaces:[Cn]},pn.prototype.get_isCancelling_dpdoz8$_0=function(t){return e.isType(t,fn)&&t.isCancelling},gn.prototype.invoke=function(t){this.parent_0.continueCompleting_vth2d4$_0(this.state_0,this.child_0,this.proposedUpdate_0)},gn.$metadata$={kind:c,simpleName:"ChildCompletion",interfaces:[Nn]},$n.prototype.getContinuationCancellationCause_dqr1mp$=function(t){var n,i=this.job_0.state_8be2vx$;return e.isType(i,fn)&&null!=(n=i.rootCause)?n:e.isType(i,ee)?i.cause:t.getCancellationException()},$n.prototype.nameString=function(){return"AwaitContinuation"},$n.$metadata$={kind:c,simpleName:"AwaitContinuation",interfaces:[Mt]},Object.defineProperty(pn.prototype,"isCompletedExceptionally",{configurable:!0,get:function(){return e.isType(this.state_8be2vx$,ee)}}),pn.prototype.getCompletionExceptionOrNull=function(){var t=this.state_8be2vx$;if(e.isType(t,Cn))throw N("This job has not completed yet".toString());return this.get_exceptionOrNull_ejijbb$_0(t)},pn.prototype.getCompletedInternal_8be2vx$=function(){var t=this.state_8be2vx$;if(e.isType(t,Cn))throw N("This job has not completed yet".toString());if(e.isType(t,ee))throw t.cause;return bn(t)},pn.prototype.awaitInternal_8be2vx$=function(t){for(;;){var n=this.state_8be2vx$;if(!e.isType(n,Cn)){if(e.isType(n,ee))throw n.cause;return bn(n)}if(this.startInternal_tp1bqd$_0(n)>=0)break}return this.awaitSuspend_ixl9xw$_0(t)},pn.prototype.awaitSuspend_ixl9xw$_0=function(t){return(e=this,function(t){var n=new $n(f(t),e);return n.initCancellability(),Ut(n,e.invokeOnCompletion_f05bi3$(new On(n))),n.getResult()})(t);var e},pn.prototype.registerSelectClause1Internal_u6kgbh$=function(t,n){for(;;){var i,o=this.state_8be2vx$;if(t.isSelected)return;if(!e.isType(o,Cn))return void(t.trySelect()&&(e.isType(o,ee)?t.resumeSelectWithException_tcv7n7$(o.cause):Dr(n,null==(i=bn(o))||e.isType(i,s)?i:a(),t.completion)));if(0===this.startInternal_tp1bqd$_0(o))return void t.disposeOnSelect_rvfg84$(this.invokeOnCompletion_f05bi3$(new xn(t,n)))}},pn.prototype.selectAwaitCompletion_u6kgbh$=function(t,n){var i,o=this.state_8be2vx$;e.isType(o,ee)?t.resumeSelectWithException_tcv7n7$(o.cause):Ar(n,null==(i=bn(o))||e.isType(i,s)?i:a(),t.completion)},pn.$metadata$={kind:c,simpleName:"JobSupport",interfaces:[Fr,Ye,Je,Be]},En.$metadata$={kind:c,simpleName:"IncompleteStateBox",interfaces:[]},Object.defineProperty(Sn.prototype,"isActive",{get:function(){return this.isActive_hyoax9$_0}}),Object.defineProperty(Sn.prototype,"list",{configurable:!0,get:function(){return null}}),Sn.prototype.toString=function(){return"Empty{"+(this.isActive?"Active":"New")+"}"},Sn.$metadata$={kind:c,simpleName:"Empty",interfaces:[Cn]},Object.defineProperty(vn.prototype,"onCancelComplete",{configurable:!0,get:function(){return!0}}),Object.defineProperty(vn.prototype,"handlesException",{configurable:!0,get:function(){return this.handlesException_fejgjb$_0}}),vn.prototype.complete=function(){return this.makeCompleting_8ea4ql$(d)},vn.prototype.completeExceptionally_tcv7n7$=function(t){return this.makeCompleting_8ea4ql$(new ee(t))},vn.prototype.handlesExceptionF=function(){var t,n,i,o,r,s;if(null==(i=null!=(n=e.isType(t=this.parentHandle_8be2vx$,Dn)?t:null)?n.job:null))return!1;for(var a=i;;){if(a.handlesException)return!0;if(null==(s=null!=(r=e.isType(o=a.parentHandle_8be2vx$,Dn)?o:null)?r.job:null))return!1;a=s}},vn.$metadata$={kind:c,simpleName:"JobImpl",interfaces:[Jt,pn]},Cn.$metadata$={kind:T,simpleName:"Incomplete",interfaces:[]},Object.defineProperty(Nn.prototype,"job",{configurable:!0,get:function(){return null==this.job_ndnibc$_0?p("job"):this.job_ndnibc$_0},set:function(t){this.job_ndnibc$_0=t}}),Object.defineProperty(Nn.prototype,"isActive",{configurable:!0,get:function(){return!0}}),Object.defineProperty(Nn.prototype,"list",{configurable:!0,get:function(){return null}}),Nn.prototype.dispose=function(){this.job.removeNode_jr34ao$(this)},Nn.prototype.toString=function(){return Cs(this)+"@"+vs(this)+"[job@"+vs(this.job)+"]"},Nn.$metadata$={kind:c,simpleName:"JobNode",interfaces:[Cn,Xe,ds]},Object.defineProperty(Tn.prototype,"isActive",{configurable:!0,get:function(){return!0}}),Object.defineProperty(Tn.prototype,"list",{configurable:!0,get:function(){return this}}),Tn.prototype.getString_61zpoe$=function(t){var n=tt();n.append_pdl1vj$("List{"),n.append_pdl1vj$(t),n.append_pdl1vj$("}[");for(var i={v:!0},o=this._next;!S(o,this);){if(e.isType(o,Nn)){var r=o;i.v?i.v=!1:n.append_pdl1vj$(", "),n.append_s8jyv4$(r)}o=o._next}return n.append_pdl1vj$("]"),n.toString()},Tn.prototype.toString=function(){return Er?this.getString_61zpoe$("Active"):aa.prototype.toString.call(this)},Tn.$metadata$={kind:c,simpleName:"NodeList",interfaces:[Cn,aa]},Object.defineProperty(Ln.prototype,"list",{get:function(){return this.list_afai45$_0}}),Object.defineProperty(Ln.prototype,"isActive",{configurable:!0,get:function(){return!1}}),Ln.prototype.toString=function(){return Er?this.list.getString_61zpoe$("New"):s.prototype.toString.call(this)},Ln.$metadata$={kind:c,simpleName:"InactiveNodeList",interfaces:[Cn]},zn.prototype.invoke=function(t){this.handler_0(t)},zn.$metadata$={kind:c,simpleName:"InvokeOnCompletion",interfaces:[Nn]},wn.prototype.invoke=function(t){this.continuation_0.resumeWith_tl1gpc$(new $(d))},wn.$metadata$={kind:c,simpleName:"ResumeOnCompletion",interfaces:[Nn]},On.prototype.invoke=function(t){var n,i,o=this.job.state_8be2vx$;if(e.isType(o,ee)){var r=this.continuation_0,c=o.cause;r.resumeWith_tl1gpc$(new $(A(c)))}else{i=this.continuation_0;var l=null==(n=bn(o))||e.isType(n,s)?n:a();i.resumeWith_tl1gpc$(new $(l))}},On.$metadata$={kind:c,simpleName:"ResumeAwaitOnCompletion",interfaces:[Nn]},Rn.prototype.invoke=function(t){this.handle_0.dispose()},Rn.$metadata$={kind:c,simpleName:"DisposeOnCompletion",interfaces:[Nn]},An.prototype.invoke=function(t){this.select_0.trySelect()&&Rr(this.block_0,this.select_0.completion)},An.$metadata$={kind:c,simpleName:"SelectJoinOnCompletion",interfaces:[Nn]},xn.prototype.invoke=function(t){this.select_0.trySelect()&&this.job.selectAwaitCompletion_u6kgbh$(this.select_0,this.block_0)},xn.$metadata$={kind:c,simpleName:"SelectAwaitOnCompletion",interfaces:[Nn]},In.$metadata$={kind:c,simpleName:"JobCancellingNode",interfaces:[Nn]},Un.prototype.invoke=function(t){this._invoked_0.atomicfu$compareAndSet(0,1)&&this.handler_0(t)},Un.$metadata$={kind:c,simpleName:"InvokeOnCancelling",interfaces:[In]},Object.defineProperty(Dn.prototype,"parent",{configurable:!0,get:function(){return this.job}}),Dn.prototype.invoke=function(t){this.childJob.parentCancelled_pv1t6x$(this.job)},Dn.prototype.childCancelled_tcv7n7$=function(t){return this.job.childCancelled_tcv7n7$(t)},Dn.$metadata$={kind:c,simpleName:"ChildHandleNode",interfaces:[Qe,In]},Pn.prototype.invoke=function(t){this.child.parentCancelled_8o0b5c$(this.child.getContinuationCancellationCause_dqr1mp$(this.job))},Pn.$metadata$={kind:c,simpleName:"ChildContinuation",interfaces:[In]},Mn.prototype.toString=function(){var t;return null!=(t=this.toStringInternalImpl())?t:Cs(this)+"@"+vs(this)},Mn.prototype.limitedParallelism_za3lpa$=function(t){return er(t),this},Mn.prototype.toStringInternalImpl=function(){var t,n=zs().Main;if(this===n)return"Dispatchers.Main";try{t=n.immediate}catch(n){if(!e.isType(n,et))throw n;t=null}return this===t?"Dispatchers.Main.immediate":null},Mn.$metadata$={kind:c,simpleName:"MainCoroutineDispatcher",interfaces:[ie]},jn.prototype.childCancelled_tcv7n7$=function(t){return!1},jn.$metadata$={kind:c,simpleName:"SupervisorJobImpl",interfaces:[vn]},qn.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[h]},qn.prototype=Object.create(h.prototype),qn.prototype.constructor=qn,qn.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$timeMillis.compareTo_11rb$(W)<=0)return null;this.state_0=1;continue;case 1:if(this.local$coroutine={v:null},this.exceptionState_0=3,this.state_0=2,this.result_0=Gn(this.local$timeMillis,this.local$coroutine,this.local$block)(this),this.result_0===u)return u;continue;case 2:return this.result_0;case 3:if(this.exceptionState_0=7,this.local$e=this.exception_0,e.isType(this.local$e,Wn)){if(this.local$e.coroutine_8be2vx$===this.local$coroutine.v)return null;this.state_0=4;continue}throw this.local$e;case 4:throw this.local$e;case 5:this.state_0=6;continue;case 6:return;case 7:throw this.exception_0;default:throw this.state_0=7,new Error("State Machine Unreachable execution")}}catch(t){if(7===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Bn.prototype.run=function(){this.cancelCoroutine_dbl4no$(Vn(this.time,this))},Bn.prototype.nameString=function(){return Tr.prototype.nameString.call(this)+"(timeMillis="+this.time.toString()+")"},Bn.$metadata$={kind:c,simpleName:"TimeoutCoroutine",interfaces:[Xs,Tr]},Wn.prototype.createCopy=function(){var t,e=new Wn(null!=(t=this.message)?t:"",this.coroutine_8be2vx$);return e},Wn.$metadata$={kind:c,simpleName:"TimeoutCancellationException",interfaces:[Ae,J]},Kn.prototype.limitedParallelism_za3lpa$=function(t){throw nt("limitedParallelism is not supported for Dispatchers.Unconfined")},Kn.prototype.isDispatchNeeded_1fupul$=function(t){return!1},Kn.prototype.dispatch_5bn72i$=function(t,e){var n=t.get_j3r2sn$(li());if(null==n)throw nt("Dispatchers.Unconfined.dispatch function can only be used by the yield function. If you wrap Unconfined dispatcher in your code, make sure you properly delegate isDispatchNeeded and dispatch calls.");n.dispatcherWasUnconfined=!0},Kn.prototype.toString=function(){return"Dispatchers.Unconfined"},Kn.$metadata$={kind:w,simpleName:"Unconfined",interfaces:[ie]};var Xn=null;function Jn(){return null===Xn&&new Kn,Xn}function Yn(){li(),I.call(this,li()),this.dispatcherWasUnconfined=!1}function Qn(){ci=this}Qn.$metadata$={kind:w,simpleName:"Key",interfaces:[D]};var Zn,ti,ei,ni,ii,oi,ri,si,ai,ci=null;function li(){return null===ci&&new Qn,ci}function ui(t){return function(e){var n=xt(f(e));return t(n),n.getResult()}}function hi(t){this.onUndeliveredElement_0=t,this.queue_0=new aa,this.onCloseHandler_0=_(null)}function di(t,e){ia.call(this,t,new gi(e))}function pi(t){return function(){return t.isBufferFull}}function _i(t,e){oa.call(this,e),this.element=t}function mi(t){this.this$AbstractSendChannel=t}function fi(t,e,n,i){wi.call(this),this.pollResult_m5nr4l$_0=t,this.channel=e,this.select=n,this.block=i}function gi(t){wi.call(this),this.element=t}function $i(t){hi.call(this,t)}function Ei(t){return function(){return t.isBufferEmpty}}function yi(t){oa.call(this,t)}function bi(t){this.this$AbstractChannel=t}function Si(t){this.this$AbstractChannel=t}function vi(t,e){this.$outer=t,Bt.call(this),this.receive_0=e}function Ci(t){this.channel=t,this.result=ni}function Ni(t,e){Ii.call(this),this.cont=t,this.receiveMode=e}function Ti(t,e,n){Ni.call(this,t,e),this.onUndeliveredElement=n}function Li(t,e){Ii.call(this),this.iterator=t,this.cont=e}function zi(t,e,n,i){Ii.call(this),this.channel=t,this.select=e,this.block=n,this.receiveMode=i}function wi(){na.call(this)}function Oi(){}function Ri(t,e){wi.call(this),this.pollResult_vo6xxe$_0=t,this.cont=e}function Ai(t,e,n){Ri.call(this,t,e),this.onUndeliveredElement=n}function xi(t){wi.call(this),this.closeCause=t}function Ii(){na.call(this)}function Ui(t,n,i){if($i.call(this,i),this.capacity_0=t,this.onBufferOverflow_0=n,!(this.capacity_0>=1)){var o="ArrayChannel capacity must be at least 1, but "+this.capacity_0+" was specified";throw K(o.toString())}this.lock_0=new ta;var r=this.capacity_0,s=e.newArray(at.min(r,8),null);st(s,Zn),this.buffer_0=s,this.head_0=0,this.size_0=m(0)}function Di(t,e,n){Nt.call(this,t,!1,n),this._channel_0=e,this.initParentJob_5dx9e$(t.get_j3r2sn$(Ve()))}function Pi(){}function Mi(t,e){G.call(this),this.name$=t,this.ordinal$=e}function ki(){ki=function(){},ri=new Mi("SUSPEND",0),si=new Mi("DROP_OLDEST",1),ai=new Mi("DROP_LATEST",2)}function ji(){return ki(),ri}function Gi(){return ki(),si}function qi(){return ki(),ai}function Fi(){}function Bi(){}function Wi(t,e){h.call(this,e),this.exceptionState_0=1,this.$this=t}function Hi(t){this.this$ReceiveChannel=t}function Vi(t,e,n){h.call(this,n),this.exceptionState_0=1,this.local$closure$block=t,this.local$it=e}function Ki(t){Zi(),this.holder=t}function Xi(){}function Ji(t){Xi.call(this),this.cause=t}function Yi(){Qi=this,this.failed_0=new Xi}hi.prototype.offerInternal_11rb$=function(t){for(var e;;){if(null==(e=this.takeFirstReceiveOrPeekClosed()))return ei;var n=e;if(null!=n.tryResumeReceive_j43gjz$(t,null))return n.completeResumeReceive_11rb$(t),n.offerResult}},hi.prototype.offerSelectInternal_ys5ufj$=function(t,e){var n=this.describeTryOffer_0(t),i=e.performAtomicTrySelect_6q0pxr$(n);if(null!=i)return i;var o=n.result;return o.completeResumeReceive_11rb$(t),o.offerResult},Object.defineProperty(hi.prototype,"closedForSend_0",{configurable:!0,get:function(){var t,n,i;return null!=(n=e.isType(t=this.queue_0._prev,xi)?t:null)?(this.helpClose_0(n),i=n):i=null,i}}),Object.defineProperty(hi.prototype,"closedForReceive_0",{configurable:!0,get:function(){var t,n,i;return null!=(n=e.isType(t=this.queue_0._next,xi)?t:null)?(this.helpClose_0(n),i=n):i=null,i}}),hi.prototype.takeFirstSendOrPeekClosed_0=function(){var t,n=this.queue_0;t:do{var i=n._next;if(i===n){t=null;break t}if(!e.isType(i,wi)){t=null;break t}if(e.isType(i,xi)){t=i;break t}if(!i.removeImpl())throw N("Should remove".toString());t=i}while(0);return t},hi.prototype.sendBuffered_0=function(t){var n=this.queue_0,i=new gi(t),o=n._prev;return e.isType(o,Oi)?o:(n.addLast_l2j9rm$(i),null)},hi.prototype.describeSendBuffered_0=function(t){return new di(this.queue_0,t)},di.prototype.failure_l2j9rm$=function(t){return e.isType(t,xi)?t:e.isType(t,Oi)?ei:null},di.$metadata$={kind:c,simpleName:"SendBufferedDesc",interfaces:[ia]},Object.defineProperty(hi.prototype,"isClosedForSend",{configurable:!0,get:function(){return null!=this.closedForSend_0}}),Object.defineProperty(hi.prototype,"isFullImpl_0",{configurable:!0,get:function(){return!e.isType(this.queue_0._next,Oi)&&this.isBufferFull}}),hi.prototype.send_11rb$=function(t,e){if(this.offerInternal_11rb$(t)!==ti)return this.sendSuspend_0(t,e)},hi.prototype.offer_11rb$=function(t){var n,i;try{return Fi.prototype.offer_11rb$.call(this,t)}catch(o){if(e.isType(o,L)){if(null!=(i=null!=(n=this.onUndeliveredElement_0)?Sr(n,t):null))throw it(i,o),i;throw o}throw o}},hi.prototype.trySend_11rb$=function(t){var n,i,o=this.offerInternal_11rb$(t);if(o===ti)i=Zi().success_mh5how$(d);else if(o===ei){if(null==(n=this.closedForSend_0))return Zi().failure_287e2$();var r=n;i=Zi().closed_xo0v4m$(this.helpCloseAndGetSendException_0(r))}else{if(!e.isType(o,xi))throw N(("trySend returned "+o.toString()).toString());i=Zi().closed_xo0v4m$(this.helpCloseAndGetSendException_0(o))}return i},hi.prototype.helpCloseAndGetSendException_0=function(t){return this.helpClose_0(t),t.sendException},hi.prototype.helpCloseAndGetSendException_1=function(t,e){var n,i;if(this.helpClose_0(e),null!=(i=null!=(n=this.onUndeliveredElement_0)?Sr(n,t):null))throw it(i,e.sendException),i;return e.sendException},hi.prototype.sendSuspend_0=function(t,n){return ui((i=this,o=t,function(t){for(;;){if(i.isFullImpl_0){var n=null==i.onUndeliveredElement_0?new Ri(o,t):new Ai(o,t,i.onUndeliveredElement_0),r=i.enqueueSend_vs6846$(n);if(null==r)return void It(t,n);if(e.isType(r,xi))return void i.helpCloseAndResumeWithSendException_0(t,o,r);if(r!==ii&&!e.isType(r,Ii))throw N(("enqueueSend returned "+z(r)).toString())}var s=i.offerInternal_11rb$(o);if(s===ti)return void t.resumeWith_tl1gpc$(new $(d));if(s!==ei){if(e.isType(s,xi))return void i.helpCloseAndResumeWithSendException_0(t,o,s);throw N(("offerInternal returned "+s.toString()).toString())}}}))(n);var i,o},hi.prototype.helpCloseAndResumeWithSendException_0=function(t,e,n){var i,o;this.helpClose_0(n);var r=n.sendException;if(null!=(o=null!=(i=this.onUndeliveredElement_0)?Sr(i,e):null))return it(o,r),void t.resumeWith_tl1gpc$(new $(A(o)));t.resumeWith_tl1gpc$(new $(A(r)))},hi.prototype.enqueueSend_vs6846$=function(t){if(this.isBufferAlwaysFull){var n=this.queue_0,i=n._prev;if(e.isType(i,Oi))return i;n.addLast_l2j9rm$(t)}else{var o,r=this.queue_0;t:do{var s=r._prev;if(e.isType(s,Oi))return s;if(!pi(this)()){o=!1;break t}r.addLast_l2j9rm$(t),o=!0}while(0);if(!o)return ii}return null},hi.prototype.close_dbl4no$$default=function(t){var n,i,o=new xi(t),r=this.queue_0;t:do{if(e.isType(r._prev,xi)){i=!1;break t}r.addLast_l2j9rm$(o),i=!0}while(0);var s=i,c=s?o:e.isType(n=this.queue_0._prev,xi)?n:a();return this.helpClose_0(c),s&&this.invokeOnCloseHandler_0(t),s},hi.prototype.invokeOnCloseHandler_0=function(t){var e,n=this.onCloseHandler_0.kotlinx$atomicfu$value;null!==n&&n!==oi&&this.onCloseHandler_0.atomicfu$compareAndSet(n,oi)&&("function"==typeof(e=n)?e:a())(t)},hi.prototype.invokeOnClose_f05bi3$=function(t){if(!this.onCloseHandler_0.atomicfu$compareAndSet(null,t)){var e=this.onCloseHandler_0.kotlinx$atomicfu$value;if(e===oi)throw N("Another handler was already registered and successfully invoked");throw N("Another handler was already registered: "+z(e))}var n=this.closedForSend_0;null!=n&&this.onCloseHandler_0.atomicfu$compareAndSet(t,oi)&&t(n.closeCause)},hi.prototype.helpClose_0=function(t){for(var n,i,o=new Zo;null!=(i=e.isType(n=t._prev,Ii)?n:null);){var r=i;r.remove()?o=o.plus_11rb$(r):r.helpRemove()}var c,l,u,h=o;if(null!=(c=h.holder_0))if(e.isType(c,Z))for(var d=e.isType(u=h.holder_0,Z)?u:a(),p=d.size-1|0;p>=0;p--)d.get_za3lpa$(p).resumeReceiveClosed_1zqbm$(t);else(null==(l=h.holder_0)||e.isType(l,s)?l:a()).resumeReceiveClosed_1zqbm$(t);this.onClosedIdempotent_l2j9rm$(t)},hi.prototype.onClosedIdempotent_l2j9rm$=function(t){},hi.prototype.takeFirstReceiveOrPeekClosed=function(){var t,n=this.queue_0;t:do{var i=n._next;if(i===n){t=null;break t}if(!e.isType(i,Oi)){t=null;break t}if(e.isType(i,xi)){t=i;break t}if(!i.removeImpl())throw N("Should remove".toString());t=i}while(0);return t},hi.prototype.describeTryOffer_0=function(t){return new _i(t,this.queue_0)},_i.prototype.failure_l2j9rm$=function(t){return e.isType(t,xi)?t:e.isType(t,Oi)?null:ei},_i.prototype.onPrepare_xe32vn$=function(t){var n,i;return null==(i=(e.isType(n=t.affected,Oi)?n:a()).tryResumeReceive_j43gjz$(this.element,t))?lo:i===so?so:null},_i.$metadata$={kind:c,simpleName:"TryOfferDesc",interfaces:[oa]},mi.prototype.registerSelectClause2_rol3se$=function(t,e,n){this.this$AbstractSendChannel.registerSelectSend_0(t,e,n)},mi.$metadata$={kind:c,interfaces:[Wr]},Object.defineProperty(hi.prototype,"onSend",{configurable:!0,get:function(){return new mi(this)}}),hi.prototype.registerSelectSend_0=function(t,n,i){for(;;){if(t.isSelected)return;if(this.isFullImpl_0){var o=new fi(n,this,t,i),r=this.enqueueSend_vs6846$(o);if(null==r)return void t.disposeOnSelect_rvfg84$(o);if(e.isType(r,xi))throw this.helpCloseAndGetSendException_1(n,r);if(r!==ii&&!e.isType(r,Ii))throw N(("enqueueSend returned "+z(r)+" ").toString())}var s=this.offerSelectInternal_ys5ufj$(n,t);if(s===ar)return;if(s!==ei&&s!==so){if(s===ti)return void Dr(i,this,t.completion);throw e.isType(s,xi)?this.helpCloseAndGetSendException_1(n,s):N(("offerSelectInternal returned "+s.toString()).toString())}}},hi.prototype.toString=function(){return Cs(this)+"@"+vs(this)+"{"+this.queueDebugStateString_0+"}"+this.bufferDebugString},Object.defineProperty(hi.prototype,"queueDebugStateString_0",{configurable:!0,get:function(){var t=this.queue_0._next;if(t===this.queue_0)return"EmptyQueue";var n=e.isType(t,xi)?t.toString():e.isType(t,Ii)?"ReceiveQueued":e.isType(t,wi)?"SendQueued":"UNEXPECTED:"+t,i=this.queue_0._prev;return i!==t&&(n+=",queueSize="+this.countQueueSize_0(),e.isType(i,xi)&&(n+=",closedForSend="+i)),n}}),hi.prototype.countQueueSize_0=function(){for(var t={v:0},n=this.queue_0,i=n._next;!S(i,n);)e.isType(i,na)&&(t.v=t.v+1|0),i=i._next;return t.v},Object.defineProperty(hi.prototype,"bufferDebugString",{configurable:!0,get:function(){return""}}),Object.defineProperty(fi.prototype,"pollResult",{get:function(){return this.pollResult_m5nr4l$_0}}),fi.prototype.tryResumeSend_uc1cc4$=function(t){var n;return null==(n=this.select.trySelectOther_uc1cc4$(t))||e.isType(n,zr)?n:a()},fi.prototype.completeResumeSend=function(){Ar(this.block,this.channel,this.select.completion)},fi.prototype.dispose=function(){this.remove()&&this.undeliveredElement()},fi.prototype.resumeSendClosed_1zqbm$=function(t){this.select.trySelect()&&this.select.resumeSelectWithException_tcv7n7$(t.sendException)},fi.prototype.undeliveredElement=function(){var t;null!=(t=this.channel.onUndeliveredElement_0)&&vr(t,this.pollResult,this.select.completion.context)},fi.prototype.toString=function(){return"SendSelect@"+vs(this)+"("+this.pollResult+")["+this.channel+", "+this.select+"]"},fi.$metadata$={kind:c,simpleName:"SendSelect",interfaces:[Xe,wi]},Object.defineProperty(gi.prototype,"pollResult",{configurable:!0,get:function(){return this.element}}),gi.prototype.tryResumeSend_uc1cc4$=function(t){return null!=t&&t.finishPrepare(),o},gi.prototype.completeResumeSend=function(){},gi.prototype.resumeSendClosed_1zqbm$=function(t){},gi.prototype.toString=function(){return"SendBuffered@"+vs(this)+"("+this.element+")"},gi.$metadata$={kind:c,simpleName:"SendBuffered",interfaces:[wi]},hi.$metadata$={kind:c,simpleName:"AbstractSendChannel",interfaces:[Fi]},$i.prototype.pollInternal=function(){for(var t;;){if(null==(t=this.takeFirstSendOrPeekClosed_0()))return ni;var e=t;if(null!=e.tryResumeSend_uc1cc4$(null))return e.completeResumeSend(),e.pollResult;e.undeliveredElement()}},$i.prototype.pollSelectInternal_y5yyj0$=function(t){var e=this.describeTryPoll_0(),n=t.performAtomicTrySelect_6q0pxr$(e);return null!=n?n:(e.result.completeResumeSend(),e.result.pollResult)},Object.defineProperty($i.prototype,"hasReceiveOrClosed_0",{configurable:!0,get:function(){return e.isType(this.queue_0._next,Oi)}}),Object.defineProperty($i.prototype,"isClosedForReceive",{configurable:!0,get:function(){return null!=this.closedForReceive_0&&this.isBufferEmpty}}),Object.defineProperty($i.prototype,"isEmpty",{configurable:!0,get:function(){return this.isEmptyImpl_0}}),Object.defineProperty($i.prototype,"isEmptyImpl_0",{configurable:!0,get:function(){return!e.isType(this.queue_0._next,wi)&&this.isBufferEmpty}}),$i.prototype.receive=function(t){var n,i=this.pollInternal();return i===ni||e.isType(i,xi)?this.receiveSuspend_0(0,t):null==(n=i)||e.isType(n,s)?n:a()},$i.prototype.receiveSuspend_0=function(t,n){return ui((i=this,o=t,function(t){var n,r,c,l,u,h,p;null==i.onUndeliveredElement_0?u=new Ni(e.isType(n=t,At)?n:a(),o):(c=e.isType(r=t,At)?r:a(),l=i.onUndeliveredElement_0,u=new Ti(c,o,l));for(var _=u;;){if(i.enqueueReceive_0(_))return void i.removeReceiveOnCancel_0(t,_);var m=i.pollInternal();if(e.isType(m,xi))return void _.resumeReceiveClosed_1zqbm$(m);if(m!==ni)return void t.resume_q1ktlu$(_.resumeValue_11rb$(null==(h=m)||e.isType(h,s)?h:a()),_.resumeOnCancellationFun_11rb$(null==(p=m)||e.isType(p,s)?p:a()))}return d}))(n);var i,o},$i.prototype.enqueueReceiveInternal_i292ax$=function(t){var n;if(this.isBufferAlwaysEmpty){var i,o=this.queue_0;t:do{if(e.isType(o._prev,wi)){i=!1;break t}o.addLast_l2j9rm$(t),i=!0}while(0);n=i}else{var r,s=this.queue_0;t:do{if(e.isType(s._prev,wi)){r=!1;break t}if(!Ei(this)()){r=!1;break t}s.addLast_l2j9rm$(t),r=!0}while(0);n=r}return n},$i.prototype.enqueueReceive_0=function(t){var e=this.enqueueReceiveInternal_i292ax$(t);return e&&this.onReceiveEnqueued(),e},$i.prototype.receiveCatching=function(t){var n,i=this.pollInternal();return i!==ni?e.isType(i,xi)?Zi().closed_xo0v4m$(i.closeCause):Zi().success_mh5how$(null==(n=i)||e.isType(n,s)?n:a()):this.receiveSuspend_0(1,t)},$i.prototype.tryReceive=function(){var t,n=this.pollInternal();return n===ni?Zi().failure_287e2$():e.isType(n,xi)?Zi().closed_xo0v4m$(n.closeCause):Zi().success_mh5how$(null==(t=n)||e.isType(t,s)?t:a())},$i.prototype.cancel_dbl4no$$default=function(t){return this.cancelInternal_fg6mcv$(t)},$i.prototype.cancel_x5z25k$$default=function(t){this.isClosedForReceive||this.cancelInternal_fg6mcv$(null!=t?t:R(Cs(this)+" was cancelled"))},$i.prototype.cancelInternal_fg6mcv$=function(t){var e=this.close_dbl4no$(t);return this.onCancelIdempotent_6taknv$(e),e},$i.prototype.onCancelIdempotent_6taknv$=function(t){var n;if(null==(n=this.closedForSend_0))throw N("Cannot happen".toString());for(var i=n,o=new Zo;;){var r,s=i._prev;if(e.isType(s,aa))break;s.remove()?o=o.plus_11rb$(e.isType(r=s,wi)?r:a()):s.helpRemove()}this.onCancelIdempotentList_kji3ae$(o,i)},$i.prototype.onCancelIdempotentList_kji3ae$=function(t,n){var i,o,r;if(null!=(i=t.holder_0))if(e.isType(i,Z))for(var c=e.isType(r=t.holder_0,Z)?r:a(),l=c.size-1|0;l>=0;l--)c.get_za3lpa$(l).resumeSendClosed_1zqbm$(n);else(null==(o=t.holder_0)||e.isType(o,s)?o:a()).resumeSendClosed_1zqbm$(n)},$i.prototype.iterator=function(){return new Ci(this)},$i.prototype.describeTryPoll_0=function(){return new yi(this.queue_0)},yi.prototype.failure_l2j9rm$=function(t){return e.isType(t,xi)?t:e.isType(t,wi)?null:ni},yi.prototype.onPrepare_xe32vn$=function(t){var n,i;return null==(i=(e.isType(n=t.affected,wi)?n:a()).tryResumeSend_uc1cc4$(t))?lo:i===so?so:null},yi.prototype.onRemoved_l2j9rm$=function(t){var n;(e.isType(n=t,wi)?n:a()).undeliveredElement()},yi.$metadata$={kind:c,simpleName:"TryPollDesc",interfaces:[oa]},bi.prototype.registerSelectClause1_o3xas4$=function(t,n){var i,o;o=e.isType(i=n,ot)?i:a(),this.this$AbstractChannel.registerSelectReceiveMode_0(t,0,o)},bi.$metadata$={kind:c,interfaces:[Br]},Object.defineProperty($i.prototype,"onReceive",{configurable:!0,get:function(){return new bi(this)}}),Si.prototype.registerSelectClause1_o3xas4$=function(t,n){var i,o;o=e.isType(i=n,ot)?i:a(),this.this$AbstractChannel.registerSelectReceiveMode_0(t,1,o)},Si.$metadata$={kind:c,interfaces:[Br]},Object.defineProperty($i.prototype,"onReceiveCatching",{configurable:!0,get:function(){return new Si(this)}}),$i.prototype.registerSelectReceiveMode_0=function(t,e,n){for(;;){if(t.isSelected)return;if(this.isEmptyImpl_0){if(this.enqueueReceiveSelect_0(t,n,e))return}else{var i=this.pollSelectInternal_y5yyj0$(t);if(i===ar)return;i!==ni&&i!==so&&this.tryStartBlockUnintercepted_0(n,t,e,i)}}},$i.prototype.tryStartBlockUnintercepted_0=function(t,n,i,o){var r;if(e.isType(o,xi))switch(i){case 0:throw o.receiveException;case 1:if(!n.trySelect())return;Dr(t,Zi().closed_xo0v4m$(o.closeCause),n.completion)}else Dr(t,1===i?e.isType(o,xi)?Zi().closed_xo0v4m$(o.closeCause):Zi().success_mh5how$(null==(r=o)||e.isType(r,s)?r:a()):o,n.completion)},$i.prototype.enqueueReceiveSelect_0=function(t,e,n){var i=new zi(this,t,e,n),o=this.enqueueReceive_0(i);return o&&t.disposeOnSelect_rvfg84$(i),o},$i.prototype.takeFirstReceiveOrPeekClosed=function(){var t=hi.prototype.takeFirstReceiveOrPeekClosed.call(this);return null==t||e.isType(t,xi)||this.onReceiveDequeued(),t},$i.prototype.onReceiveEnqueued=function(){},$i.prototype.onReceiveDequeued=function(){},$i.prototype.removeReceiveOnCancel_0=function(t,e){t.invokeOnCancellation_f05bi3$(new vi(this,e))},vi.prototype.invoke=function(t){this.receive_0.remove()&&this.$outer.onReceiveDequeued()},vi.prototype.toString=function(){return"RemoveReceiveOnCancel["+this.receive_0+"]"},vi.$metadata$={kind:c,simpleName:"RemoveReceiveOnCancel",interfaces:[Bt]},Ci.prototype.hasNext=function(t){return this.result!==ni?this.hasNextResult_0(this.result):(this.result=this.channel.pollInternal(),this.result!==ni?this.hasNextResult_0(this.result):this.hasNextSuspend_0(t))},Ci.prototype.hasNextResult_0=function(t){if(e.isType(t,xi)){if(null!=t.closeCause)throw t.receiveException;return!1}return!0},Ci.prototype.hasNextSuspend_0=function(t){return ui((n=this,function(t){for(var i,o,r,c,l=new Li(n,t);;){if(n.channel.enqueueReceive_0(l))return void n.channel.removeReceiveOnCancel_0(t,l);var u=n.channel.pollInternal();if(n.result=u,e.isType(u,xi)){if(null==u.closeCause)t.resumeWith_tl1gpc$(new $(!1));else{var h=u.receiveException;t.resumeWith_tl1gpc$(new $(A(h)))}return}if(u!==ni)return c=n.channel.onUndeliveredElement_0,o=null==(i=u)||e.isType(i,s)?i:a(),r=t.context,void t.resume_q1ktlu$(!0,null!=c?Cr(c,o,r):null)}return d}))(t);var n},Ci.prototype.next=function(){var t,n=this.result;if(e.isType(n,xi))throw n.receiveException;if(n!==ni)return this.result=ni,null==(t=n)||e.isType(t,s)?t:a();throw N("'hasNext' should be called prior to 'next' invocation")},Ci.$metadata$={kind:c,simpleName:"Itr",interfaces:[to]},Ni.prototype.resumeValue_11rb$=function(t){return 1===this.receiveMode?Zi().success_mh5how$(t):t},Ni.prototype.tryResumeReceive_j43gjz$=function(t,e){return null==this.cont.tryResume_i8qury$(this.resumeValue_11rb$(t),null!=e?e.desc:null,this.resumeOnCancellationFun_11rb$(t))?null:(null!=e&&e.finishPrepare(),o)},Ni.prototype.completeResumeReceive_11rb$=function(t){this.cont.completeResume_za3rmp$(o)},Ni.prototype.resumeReceiveClosed_1zqbm$=function(t){if(1===this.receiveMode){var e=this.cont,n=Zi().closed_xo0v4m$(t.closeCause);e.resumeWith_tl1gpc$(new $(n))}else{var i=this.cont,o=t.receiveException;i.resumeWith_tl1gpc$(new $(A(o)))}},Ni.prototype.toString=function(){return"ReceiveElement@"+vs(this)+"[receiveMode="+this.receiveMode+"]"},Ni.$metadata$={kind:c,simpleName:"ReceiveElement",interfaces:[Ii]},Ti.prototype.resumeOnCancellationFun_11rb$=function(t){return Cr(this.onUndeliveredElement,t,this.cont.context)},Ti.$metadata$={kind:c,simpleName:"ReceiveElementWithUndeliveredHandler",interfaces:[Ni]},Li.prototype.tryResumeReceive_j43gjz$=function(t,e){return null==this.cont.tryResume_i8qury$(!0,null!=e?e.desc:null,this.resumeOnCancellationFun_11rb$(t))?null:(null!=e&&e.finishPrepare(),o)},Li.prototype.completeResumeReceive_11rb$=function(t){this.iterator.result=t,this.cont.completeResume_za3rmp$(o)},Li.prototype.resumeReceiveClosed_1zqbm$=function(t){var e=null==t.closeCause?this.cont.tryResume_19pj23$(!1):this.cont.tryResumeWithException_tcv7n7$(t.receiveException);null!=e&&(this.iterator.result=t,this.cont.completeResume_za3rmp$(e))},Li.prototype.resumeOnCancellationFun_11rb$=function(t){var e;return null!=(e=this.iterator.channel.onUndeliveredElement_0)?Cr(e,t,this.cont.context):null},Li.prototype.toString=function(){return"ReceiveHasNext@"+vs(this)},Li.$metadata$={kind:c,simpleName:"ReceiveHasNext",interfaces:[Ii]},zi.prototype.tryResumeReceive_j43gjz$=function(t,n){var i;return null==(i=this.select.trySelectOther_uc1cc4$(n))||e.isType(i,zr)?i:a()},zi.prototype.completeResumeReceive_11rb$=function(t){Ar(this.block,1===this.receiveMode?Zi().success_mh5how$(t):t,this.select.completion,this.resumeOnCancellationFun_11rb$(t))},zi.prototype.resumeReceiveClosed_1zqbm$=function(t){if(this.select.trySelect())switch(this.receiveMode){case 0:this.select.resumeSelectWithException_tcv7n7$(t.receiveException);break;case 1:Ar(this.block,Zi().closed_xo0v4m$(t.closeCause),this.select.completion)}},zi.prototype.dispose=function(){this.remove()&&this.channel.onReceiveDequeued()},zi.prototype.resumeOnCancellationFun_11rb$=function(t){var e;return null!=(e=this.channel.onUndeliveredElement_0)?Cr(e,t,this.select.completion.context):null},zi.prototype.toString=function(){return"ReceiveSelect@"+vs(this)+"["+this.select+",receiveMode="+this.receiveMode+"]"},zi.$metadata$={kind:c,simpleName:"ReceiveSelect",interfaces:[Xe,Ii]},$i.$metadata$={kind:c,simpleName:"AbstractChannel",interfaces:[no,hi]},wi.prototype.undeliveredElement=function(){},wi.$metadata$={kind:c,simpleName:"Send",interfaces:[na]},Oi.$metadata$={kind:T,simpleName:"ReceiveOrClosed",interfaces:[]},Object.defineProperty(Ri.prototype,"pollResult",{get:function(){return this.pollResult_vo6xxe$_0}}),Ri.prototype.tryResumeSend_uc1cc4$=function(t){return null==this.cont.tryResume_19pj23$(d,null!=t?t.desc:null)?null:(null!=t&&t.finishPrepare(),o)},Ri.prototype.completeResumeSend=function(){this.cont.completeResume_za3rmp$(o)},Ri.prototype.resumeSendClosed_1zqbm$=function(t){var e=this.cont,n=t.sendException;e.resumeWith_tl1gpc$(new $(A(n)))},Ri.prototype.toString=function(){return Cs(this)+"@"+vs(this)+"("+this.pollResult+")"},Ri.$metadata$={kind:c,simpleName:"SendElement",interfaces:[wi]},Ai.prototype.remove=function(){return!!Ri.prototype.remove.call(this)&&(this.undeliveredElement(),!0)},Ai.prototype.undeliveredElement=function(){vr(this.onUndeliveredElement,this.pollResult,this.cont.context)},Ai.$metadata$={kind:c,simpleName:"SendElementWithUndeliveredHandler",interfaces:[Ri]},Object.defineProperty(xi.prototype,"sendException",{configurable:!0,get:function(){var t;return null!=(t=this.closeCause)?t:new _o(oo)}}),Object.defineProperty(xi.prototype,"receiveException",{configurable:!0,get:function(){var t;return null!=(t=this.closeCause)?t:new mo(oo)}}),Object.defineProperty(xi.prototype,"offerResult",{configurable:!0,get:function(){return this}}),Object.defineProperty(xi.prototype,"pollResult",{configurable:!0,get:function(){return this}}),xi.prototype.tryResumeSend_uc1cc4$=function(t){return null!=t&&t.finishPrepare(),o},xi.prototype.completeResumeSend=function(){},xi.prototype.tryResumeReceive_j43gjz$=function(t,e){return null!=e&&e.finishPrepare(),o},xi.prototype.completeResumeReceive_11rb$=function(t){},xi.prototype.resumeSendClosed_1zqbm$=function(t){},xi.prototype.toString=function(){return"Closed@"+vs(this)+"["+z(this.closeCause)+"]"},xi.$metadata$={kind:c,simpleName:"Closed",interfaces:[Oi,wi]},Object.defineProperty(Ii.prototype,"offerResult",{configurable:!0,get:function(){return ti}}),Ii.prototype.resumeOnCancellationFun_11rb$=function(t){return null},Ii.$metadata$={kind:c,simpleName:"Receive",interfaces:[Oi,na]},Object.defineProperty(Ui.prototype,"isBufferAlwaysEmpty",{configurable:!0,get:function(){return!1}}),Object.defineProperty(Ui.prototype,"isBufferEmpty",{configurable:!0,get:function(){return 0===this.size_0.kotlinx$atomicfu$value}}),Object.defineProperty(Ui.prototype,"isBufferAlwaysFull",{configurable:!0,get:function(){return!1}}),Object.defineProperty(Ui.prototype,"isBufferFull",{configurable:!0,get:function(){return this.size_0.kotlinx$atomicfu$value===this.capacity_0&&this.onBufferOverflow_0===ji()}}),Object.defineProperty(Ui.prototype,"isEmpty",{configurable:!0,get:function(){return this.isEmptyImpl_0}}),Object.defineProperty(Ui.prototype,"isClosedForReceive",{configurable:!0,get:function(){return e.callGetter(this,$i.prototype,"isClosedForReceive")}}),Ui.prototype.offerInternal_11rb$=function(t){var n={v:null};t:do{var i,o,r,s=this.size_0.kotlinx$atomicfu$value;if(null!=(i=this.closedForSend_0))return i;if(null!=(o=this.updateBufferSize_0(s)))return o;if(0===s)for(;null!=(r=this.takeFirstReceiveOrPeekClosed());){if(n.v=r,e.isType(n.v,xi))return this.size_0.kotlinx$atomicfu$value=s,V(n.v);if(null!=V(n.v).tryResumeReceive_j43gjz$(t,null)){this.size_0.kotlinx$atomicfu$value=s;break t}}return this.enqueueElement_0(s,t),ti}while(0);return V(n.v).completeResumeReceive_11rb$(t),V(n.v).offerResult},Ui.prototype.offerSelectInternal_ys5ufj$=function(t,n){var i={v:null};t:do{var o,r,s=this.size_0.kotlinx$atomicfu$value;if(null!=(o=this.closedForSend_0))return o;if(null!=(r=this.updateBufferSize_0(s)))return r;if(0===s)e:for(;;){var a=this.describeTryOffer_0(t),c=n.performAtomicTrySelect_6q0pxr$(a);if(null==c){this.size_0.kotlinx$atomicfu$value=s,i.v=a.result;break t}if(c===ei)break e;if(c!==so){if(c===ar||e.isType(c,xi))return this.size_0.kotlinx$atomicfu$value=s,c;throw N(("performAtomicTrySelect(describeTryOffer) returned "+z(c)).toString())}}return n.trySelect()?(this.enqueueElement_0(s,t),ti):(this.size_0.kotlinx$atomicfu$value=s,ar)}while(0);return V(i.v).completeResumeReceive_11rb$(t),V(i.v).offerResult},Ui.prototype.enqueueSend_vs6846$=function(t){return $i.prototype.enqueueSend_vs6846$.call(this,t)},Ui.prototype.updateBufferSize_0=function(t){var n;if(t=this.buffer_0.length){for(var n=2*this.buffer_0.length|0,i=this.capacity_0,o=at.min(n,i),r=e.newArray(o,null),s=0;s=1))throw K(("Expected positive parallelism level, but got "+t).toString())}function nr(t){this._cur_0=_(new ir(8,t))}function ir(t,e){if(br(),this.capacity_0=t,this.singleConsumer_0=e,this.mask_0=this.capacity_0-1|0,this._next_0=_(null),this._state_0=rt(W),this.array_0=$t(this.capacity_0),!(this.mask_0<=1073741823))throw N("Check failed.".toString());if(0!=(this.capacity_0&this.mask_0))throw N("Check failed.".toString())}function or(t){this.index=t}function rr(){yr=this,this.INITIAL_CAPACITY=8,this.CAPACITY_BITS=30,this.MAX_CAPACITY_MASK=1073741823,this.HEAD_SHIFT=0,this.HEAD_MASK=_t,this.TAIL_SHIFT=30,this.TAIL_MASK=mt,this.FROZEN_SHIFT=60,this.FROZEN_MASK=ft,this.CLOSED_SHIFT=61,this.CLOSED_MASK=gt,this.MIN_ADD_SPIN_CAPACITY=1024,this.REMOVE_FROZEN=new zr("REMOVE_FROZEN"),this.ADD_SUCCESS=0,this.ADD_FROZEN=1,this.ADD_CLOSED=2}no.$metadata$={kind:T,simpleName:"Channel",interfaces:[Bi,Fi]},_o.$metadata$={kind:c,simpleName:"ClosedSendChannelException",interfaces:[Y]},mo.$metadata$={kind:c,simpleName:"ClosedReceiveChannelException",interfaces:[ct]},Object.defineProperty(fo.prototype,"channel",{configurable:!0,get:function(){return this}}),fo.prototype.cancel=function(){this.cancelInternal_tcv7n7$(new Is(this.cancellationExceptionMessage(),null,this))},fo.prototype.cancel_dbl4no$$default=function(t){return this.cancelInternal_tcv7n7$(new Is(this.cancellationExceptionMessage(),null,this)),!0},fo.prototype.cancel_x5z25k$$default=function(t){this.isCancelled||this.cancelInternal_tcv7n7$(null!=t?t:new Is(this.cancellationExceptionMessage(),null,this))},fo.prototype.cancelInternal_tcv7n7$=function(t){var e=this.toCancellationException_rg9tb7$(t);this._channel_0.cancel_x5z25k$(e),this.cancelCoroutine_dbl4no$(e)},Object.defineProperty(fo.prototype,"isClosedForReceive",{configurable:!0,get:function(){return this._channel_0.isClosedForReceive}}),Object.defineProperty(fo.prototype,"isClosedForSend",{configurable:!0,get:function(){return this._channel_0.isClosedForSend}}),Object.defineProperty(fo.prototype,"isEmpty",{configurable:!0,get:function(){return this._channel_0.isEmpty}}),Object.defineProperty(fo.prototype,"onReceive",{configurable:!0,get:function(){return this._channel_0.onReceive}}),Object.defineProperty(fo.prototype,"onReceiveCatching",{configurable:!0,get:function(){return this._channel_0.onReceiveCatching}}),Object.defineProperty(fo.prototype,"onReceiveOrNull",{configurable:!0,get:function(){return this._channel_0.onReceiveOrNull}}),Object.defineProperty(fo.prototype,"onSend",{configurable:!0,get:function(){return this._channel_0.onSend}}),fo.prototype.close_dbl4no$$default=function(t){return this._channel_0.close_dbl4no$$default(t)},fo.prototype.invokeOnClose_f05bi3$=function(t){return this._channel_0.invokeOnClose_f05bi3$(t)},fo.prototype.iterator=function(){return this._channel_0.iterator()},fo.prototype.offer_11rb$=function(t){return this._channel_0.offer_11rb$(t)},fo.prototype.poll=function(){return this._channel_0.poll()},fo.prototype.receive=function(t){return this._channel_0.receive(t)},fo.prototype.receiveCatching=function(t){return this._channel_0.receiveCatching(t)},fo.prototype.receiveOrNull=function(t){return this._channel_0.receiveOrNull(t)},fo.prototype.send_11rb$=function(t,e){return this._channel_0.send_11rb$(t,e)},fo.prototype.tryReceive=function(){return this._channel_0.tryReceive()},fo.prototype.trySend_11rb$=function(t){return this._channel_0.trySend_11rb$(t)},fo.$metadata$={kind:c,simpleName:"ChannelCoroutine",interfaces:[no,Nt]},v("kotlinx-coroutines-core.kotlinx.coroutines.channels.consumeEach_fsi0yh$",C((function(){var n=e.kotlin.Unit,i=Error,o=t.kotlinx.coroutines.channels.cancelConsumed_v57n85$;return function(t,r,s){var a=null;try{var c;for(c=t.iterator();e.suspendCall(c.hasNext(e.coroutineReceiver())),e.coroutineResult(e.coroutineReceiver());)r(c.next())}catch(t){throw e.isType(t,i)?(a=t,t):t}finally{o(t,a)}return n}}))),v("kotlinx-coroutines-core.kotlinx.coroutines.channels.consumeEach_ur1qrk$",C((function(){var t=e.kotlin.Unit;return function(n,i,o){var r=n.openSubscription();try{var s;for(s=r.iterator();e.suspendCall(s.hasNext(e.coroutineReceiver())),e.coroutineResult(e.coroutineReceiver());)i(s.next())}finally{r.cancel_x5z25k$()}return t}}))),Object.defineProperty($o.prototype,"isBufferAlwaysEmpty",{configurable:!0,get:function(){return!1}}),Object.defineProperty($o.prototype,"isBufferEmpty",{configurable:!0,get:function(){return this.value_0===Zn}}),Object.defineProperty($o.prototype,"isBufferAlwaysFull",{configurable:!0,get:function(){return!1}}),Object.defineProperty($o.prototype,"isBufferFull",{configurable:!0,get:function(){return!1}}),Object.defineProperty($o.prototype,"isEmpty",{configurable:!0,get:function(){return this.isEmptyImpl_0}}),$o.prototype.offerInternal_11rb$=function(t){var n={v:null};t:do{var i,o,r;if(null!=(i=this.closedForSend_0))return i;if(this.value_0===Zn)for(;null!=(o=this.takeFirstReceiveOrPeekClosed());){if(n.v=o,e.isType(n.v,xi))return V(n.v);if(null!=V(n.v).tryResumeReceive_j43gjz$(t,null))break t}if(null!=(r=this.updateValueLocked_0(t)))throw r;return ti}while(0);return V(n.v).completeResumeReceive_11rb$(t),V(n.v).offerResult},$o.prototype.offerSelectInternal_ys5ufj$=function(t,n){var i={v:null};t:do{var o,r;if(null!=(o=this.closedForSend_0))return o;if(this.value_0===Zn)e:for(;;){var s=this.describeTryOffer_0(t),a=n.performAtomicTrySelect_6q0pxr$(s);if(null==a){i.v=s.result;break t}if(a===ei)break e;if(a!==so){if(a===ar||e.isType(a,xi))return a;throw N(("performAtomicTrySelect(describeTryOffer) returned "+z(a)).toString())}}if(!n.trySelect())return ar;if(null!=(r=this.updateValueLocked_0(t)))throw r;return ti}while(0);return V(i.v).completeResumeReceive_11rb$(t),V(i.v).offerResult},$o.prototype.pollInternal=function(){var t,e={v:null};return this.value_0===Zn?null!=(t=this.closedForSend_0)?t:ni:(e.v=this.value_0,this.value_0=Zn,e.v)},$o.prototype.pollSelectInternal_y5yyj0$=function(t){var e,n={v:null};return this.value_0===Zn?null!=(e=this.closedForSend_0)?e:ni:t.trySelect()?(n.v=this.value_0,this.value_0=Zn,n.v):ar},$o.prototype.onCancelIdempotent_6taknv$=function(t){var e,n={v:null};if(n.v=this.updateValueLocked_0(Zn),$i.prototype.onCancelIdempotent_6taknv$.call(this,t),null!=(e=n.v))throw e},$o.prototype.updateValueLocked_0=function(t){var n,i,o,r,c=this.value_0;c===Zn?r=null:(o=this.onUndeliveredElement_0,i=null==(n=c)||e.isType(n,s)?n:a(),r=null!=o?Sr(o,i):null);var l=r;return this.value_0=t,l},$o.prototype.enqueueReceiveInternal_i292ax$=function(t){return $i.prototype.enqueueReceiveInternal_i292ax$.call(this,t)},Object.defineProperty($o.prototype,"bufferDebugString",{configurable:!0,get:function(){return"(value="+z(this.value_0)+")"}}),$o.$metadata$={kind:c,simpleName:"ConflatedChannel",interfaces:[$i]},Object.defineProperty(Eo.prototype,"isBufferAlwaysEmpty",{configurable:!0,get:function(){return!0}}),Object.defineProperty(Eo.prototype,"isBufferEmpty",{configurable:!0,get:function(){return!0}}),Object.defineProperty(Eo.prototype,"isBufferAlwaysFull",{configurable:!0,get:function(){return!1}}),Object.defineProperty(Eo.prototype,"isBufferFull",{configurable:!0,get:function(){return!1}}),Eo.prototype.offerInternal_11rb$=function(t){for(;;){var n=$i.prototype.offerInternal_11rb$.call(this,t);if(n===ti)return ti;if(n!==ei){if(e.isType(n,xi))return n;throw N(("Invalid offerInternal result "+n.toString()).toString())}var i=this.sendBuffered_0(t);if(null==i)return ti;if(e.isType(i,xi))return i}},Eo.prototype.offerSelectInternal_ys5ufj$=function(t,n){for(var i;;){var o=this.hasReceiveOrClosed_0?$i.prototype.offerSelectInternal_ys5ufj$.call(this,t,n):null!=(i=n.performAtomicTrySelect_6q0pxr$(this.describeSendBuffered_0(t)))?i:ti;if(o===ar)return ar;if(o===ti)return ti;if(o!==ei&&o!==so){if(e.isType(o,xi))return o;throw N(("Invalid result "+o.toString()).toString())}}},Eo.prototype.onCancelIdempotentList_kji3ae$=function(t,n){var i,o,r,c,l={v:null};if(null!=(o=t.holder_0))if(e.isType(o,Z))for(var u=e.isType(c=t.holder_0,Z)?c:a(),h=u.size-1|0;h>=0;h--){var d,p,_,m,f=u.get_za3lpa$(h);e.isType(f,gi)?(m=this.onUndeliveredElement_0,p=null==(d=f.element)||e.isType(d,s)?d:a(),_=l.v,l.v=null!=m?Sr(m,p,_):null):f.resumeSendClosed_1zqbm$(n)}else{var g,$,E,y,b=null==(r=t.holder_0)||e.isType(r,s)?r:a();e.isType(b,gi)?(y=this.onUndeliveredElement_0,$=null==(g=b.element)||e.isType(g,s)?g:a(),E=l.v,l.v=null!=y?Sr(y,$,E):null):b.resumeSendClosed_1zqbm$(n)}if(null!=(i=l.v))throw i},Eo.$metadata$={kind:c,simpleName:"LinkedListChannel",interfaces:[$i]},yo.$metadata$={kind:T,simpleName:"ProducerScope",interfaces:[Fi,$e]},Object.defineProperty(So.prototype,"isActive",{configurable:!0,get:function(){return e.callGetter(this,fo.prototype,"isActive")}}),So.prototype.onCompleted_11rb$=function(t){this._channel_0.close_dbl4no$()},So.prototype.onCancelled_z1nxw$=function(t,e){this._channel_0.close_dbl4no$(t)||e||ce(this.context,t)},So.$metadata$={kind:c,simpleName:"ProducerCoroutine",interfaces:[yo,fo]},Object.defineProperty(vo.prototype,"isBufferAlwaysEmpty",{configurable:!0,get:function(){return!0}}),Object.defineProperty(vo.prototype,"isBufferEmpty",{configurable:!0,get:function(){return!0}}),Object.defineProperty(vo.prototype,"isBufferAlwaysFull",{configurable:!0,get:function(){return!0}}),Object.defineProperty(vo.prototype,"isBufferFull",{configurable:!0,get:function(){return!0}}),vo.$metadata$={kind:c,simpleName:"RendezvousChannel",interfaces:[$i]},No.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[h]},No.prototype=Object.create(h.prototype),No.prototype.constructor=No,No.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this.closure$block(this.local$collector,this),this.result_0===u)return u;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Co.prototype.collect_42ocv1$=function(t,e,n){var i=new No(this,t,e);return n?i:i.doResume(null)},Co.$metadata$={kind:c,interfaces:[Lo]},To.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[h]},To.prototype=Object.create(h.prototype),To.prototype.constructor=To,To.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$tmp$=this.local$this$asFlow.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$tmp$.hasNext()){this.state_0=4;continue}var t=this.local$tmp$.next();if(this.state_0=3,this.result_0=this.local$$receiver.emit_11rb$(t,this),this.result_0===u)return u;continue;case 3:this.state_0=2;continue;case 4:return d;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Lo.$metadata$={kind:T,simpleName:"Flow",interfaces:[]},zo.prototype.emit_11rb$=function(t,e){return this.function$(t,e)},zo.$metadata$={kind:T,simpleName:"FlowCollector",interfaces:[]},v("kotlinx-coroutines-core.kotlinx.coroutines.flow.collectWhile_rysrwq$",C((function(){var n=e.kotlin.coroutines.intrinsics.COROUTINE_SUSPENDED,i=e.kotlin.coroutines.CoroutineImpl,o=t.kotlinx.coroutines.flow.internal.AbortFlowException,r=e.Kind.CLASS,s=t.kotlinx.coroutines.flow.FlowCollector,a=t.kotlinx.coroutines.flow.internal.checkOwnership_ygf9h9$;function c(t){this.closure$predicate=t}function l(t,e,n){i.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$value=e}return l.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[i]},l.prototype=Object.create(i.prototype),l.prototype.constructor=l,l.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this.closure$predicate(this.local$value,this),this.result_0===n)return n;continue;case 1:throw this.exception_0;case 2:if(!this.result_0)throw new o(this.$this);return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},c.prototype.emit_11rb$=function(t,e,n){var i=new l(this,t,e);return n?i:i.doResume(null)},c.$metadata$={kind:r,interfaces:[s]},function(t,n,i){var r=new c(n);try{e.suspendCall(t.collect_42ocv1$(r,e.coroutineReceiver()))}catch(t){if(!e.isType(t,o))throw t;a(t,r)}}}))),v("kotlinx-coroutines-core.kotlinx.coroutines.flow.toList_qzmi91$",C((function(){var n=t.kotlinx.coroutines.flow.Flow,i=e.throwCCE,o=t.kotlinx.coroutines.flow.toList_7a0s5y$;return function(t,r){var s;return e.suspendCall(o(e.isType(s=t,n)?s:i(),void 0,e.coroutineReceiver())),e.coroutineResult(e.coroutineReceiver())}}))),v("kotlinx-coroutines-core.kotlinx.coroutines.flow.toSet_qzmi91$",C((function(){var n=t.kotlinx.coroutines.flow.Flow,i=e.throwCCE,o=t.kotlinx.coroutines.flow.toSet_a3q90u$;return function(t,r){var s;return e.suspendCall(o(e.isType(s=t,n)?s:i(),void 0,e.coroutineReceiver())),e.coroutineResult(e.coroutineReceiver())}}))),v("kotlinx-coroutines-core.kotlinx.coroutines.flow.count_qzmi91$",C((function(){var n=t.kotlinx.coroutines.flow.Flow,i=e.throwCCE,o=t.kotlinx.coroutines.flow.count_x2ftfk$;return function(t,r){var s;return e.suspendCall(o(e.isType(s=t,n)?s:i(),e.coroutineReceiver())),e.coroutineResult(e.coroutineReceiver())}}))),v("kotlinx-coroutines-core.kotlinx.coroutines.flow.collectIndexed_57beod$",C((function(){var n=e.Kind.CLASS,i=t.kotlinx.coroutines.flow.FlowCollector,o=e.kotlin.ArithmeticException;function r(t){this.closure$action=t,this.index_0=0}return r.prototype.emit_11rb$=function(t,e){var n,i;i=this.closure$action;var r=(n=this.index_0,this.index_0=n+1|0,n);if(r<0)throw new o("Index overflow has happened");return i(r,t,e)},r.$metadata$={kind:n,interfaces:[i]},function(t,n,i){return e.suspendCall(t.collect_42ocv1$(new r(n),e.coroutineReceiver())),e.coroutineResult(e.coroutineReceiver())}}))),v("kotlinx-coroutines-core.kotlinx.coroutines.flow.collect_706ovd$",C((function(){var n=e.Kind.CLASS,i=t.kotlinx.coroutines.flow.FlowCollector;function o(t){this.closure$action=t}return o.prototype.emit_11rb$=function(t,e){return this.closure$action(t,e)},o.$metadata$={kind:n,interfaces:[i]},function(t,n,i){return e.suspendCall(t.collect_42ocv1$(new o(n),e.coroutineReceiver())),e.coroutineResult(e.coroutineReceiver())}}))),Oo.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[h]},Oo.prototype=Object.create(h.prototype),Oo.prototype.constructor=Oo,Oo.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:return this.local$closure$destination.add_11rb$(this.local$value);case 1:throw this.exception_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ao.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[h]},Ao.prototype=Object.create(h.prototype),Ao.prototype.constructor=Ao,Ao.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.collect_42ocv1$(new zo(Ro(this.local$destination)),this),this.result_0===u)return u;continue;case 1:throw this.exception_0;case 2:return this.local$destination;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Io.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[h]},Io.prototype=Object.create(h.prototype),Io.prototype.constructor=Io,Io.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:return this.local$closure$i.v=this.local$closure$i.v+1|0,this.local$closure$i.v;case 1:throw this.exception_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Do.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[h]},Do.prototype=Object.create(h.prototype),Do.prototype.constructor=Do,Do.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$i={v:0},this.state_0=2,this.result_0=this.local$$receiver.collect_42ocv1$(new zo(Uo(this.local$i)),this),this.result_0===u)return u;continue;case 1:throw this.exception_0;case 2:return this.local$i.v;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Mo.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[h]},Mo.prototype=Object.create(h.prototype),Mo.prototype.constructor=Mo,Mo.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this.closure$predicate(this.local$value,this),this.result_0===u)return u;continue;case 1:throw this.exception_0;case 2:if(!this.result_0)throw new Zs(this.$this);return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Po.prototype.emit_11rb$=function(t,e,n){var i=new Mo(this,t,e);return n?i:i.doResume(null)},Po.$metadata$={kind:c,interfaces:[zo]},v("kotlinx-coroutines-core.kotlinx.coroutines.flow.fold_usjyvu$",C((function(){var n=e.kotlin.coroutines.intrinsics.COROUTINE_SUSPENDED,i=e.kotlin.coroutines.CoroutineImpl,o=e.kotlin.Unit,r=t.kotlinx.coroutines.flow.FlowCollector;function s(t,e,n,o){i.call(this,o),this.exceptionState_0=1,this.local$closure$operation=t,this.local$closure$accumulator=e,this.local$value=n}return s.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[i]},s.prototype=Object.create(i.prototype),s.prototype.constructor=s,s.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$closure$operation(this.local$closure$accumulator.v,this.local$value,this),this.result_0===n)return n;continue;case 1:throw this.exception_0;case 2:return this.local$closure$accumulator.v=this.result_0,o;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},function(t,n,i,o){var a,c,l={v:n};return e.suspendCall(t.collect_42ocv1$(new r((a=i,c=l,function(t,e,n){var i=new s(a,c,t,e);return n?i:i.doResume(null)})),e.coroutineReceiver())),l.v}}))),ko.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[h]},ko.prototype=Object.create(h.prototype),ko.prototype.constructor=ko,ko.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$closure$predicate(this.local$it,this),this.result_0===u)return u;continue;case 1:throw this.exception_0;case 2:return!this.result_0||(this.local$closure$result.v=this.local$it,!1);case 3:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Go.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[h]},Go.prototype=Object.create(h.prototype),Go.prototype.constructor=Go,Go.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$result={v:null},this.local$collector=new Po(jo(this.local$predicate,this.local$result)),this.exceptionState_0=2,this.state_0=1,this.result_0=this.local$$receiver.collect_42ocv1$(this.local$collector,this),this.result_0===u)return u;continue;case 1:this.exceptionState_0=4,this.state_0=3;continue;case 2:this.exceptionState_0=4;var t=this.exception_0;if(!e.isType(t,Zs))throw t;wo(t,this.local$collector),this.state_0=3;continue;case 3:return this.local$result.v;case 4:throw this.exception_0;default:throw this.state_0=4,new Error("State Machine Unreachable execution")}}catch(t){if(4===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Object.defineProperty(qo.prototype,"isEmpty",{configurable:!0,get:function(){return this.head_0===this.tail_0}}),qo.prototype.addLast_trkh7z$=function(t){this.elements_0[this.tail_0]=t,this.tail_0=this.tail_0+1&this.elements_0.length-1,this.tail_0===this.head_0&&this.ensureCapacity_0()},qo.prototype.removeFirstOrNull=function(){var t;if(this.head_0===this.tail_0)return null;var n=this.elements_0[this.head_0];return this.elements_0[this.head_0]=null,this.head_0=this.head_0+1&this.elements_0.length-1,e.isType(t=n,s)?t:a()},qo.prototype.clear=function(){this.head_0=0,this.tail_0=0,this.elements_0=e.newArray(this.elements_0.length,null)},qo.prototype.ensureCapacity_0=function(){var t=this.elements_0.length,n=t<<1,i=e.newArray(n,null),o=this.elements_0;ht(o,i,0,this.head_0,o.length),ht(this.elements_0,i,this.elements_0.length-this.head_0|0,0,this.head_0),this.elements_0=i,this.head_0=0,this.tail_0=t},qo.$metadata$={kind:c,simpleName:"ArrayQueue",interfaces:[]},Fo.prototype.toString=function(){return Cs(this)+"@"+vs(this)},Fo.prototype.isEarlierThan_bfmzsr$=function(t){var e,n;if(null==(e=this.atomicOp))return!1;var i=e;if(null==(n=t.atomicOp))return!1;var o=n;return i.opSequence.compareTo_11rb$(o.opSequence)<0},Fo.$metadata$={kind:c,simpleName:"OpDescriptor",interfaces:[]},Object.defineProperty(Bo.prototype,"consensus",{configurable:!0,get:function(){return this._consensus_c6dvpx$_0.kotlinx$atomicfu$value}}),Object.defineProperty(Bo.prototype,"isDecided",{configurable:!0,get:function(){return this._consensus_c6dvpx$_0.kotlinx$atomicfu$value!==ro}}),Object.defineProperty(Bo.prototype,"opSequence",{configurable:!0,get:function(){return W}}),Object.defineProperty(Bo.prototype,"atomicOp",{configurable:!0,get:function(){return this}}),Bo.prototype.decide_s8jyv4$=function(t){var e=this._consensus_c6dvpx$_0.kotlinx$atomicfu$value;return e!==ro?e:this._consensus_c6dvpx$_0.atomicfu$compareAndSet(ro,t)?t:this._consensus_c6dvpx$_0.kotlinx$atomicfu$value},Bo.prototype.perform_s8jyv4$=function(t){var n,i,o=this._consensus_c6dvpx$_0.kotlinx$atomicfu$value;return o===ro&&(o=this.decide_s8jyv4$(this.prepare_11rb$(null==(n=t)||e.isType(n,s)?n:a()))),this.complete_19pj23$(null==(i=t)||e.isType(i,s)?i:a(),o),o},Bo.$metadata$={kind:c,simpleName:"AtomicOp",interfaces:[Fo]},Object.defineProperty(Wo.prototype,"atomicOp",{configurable:!0,get:function(){return null==this.atomicOp_ss7ttb$_0?p("atomicOp"):this.atomicOp_ss7ttb$_0},set:function(t){this.atomicOp_ss7ttb$_0=t}}),Wo.$metadata$={kind:c,simpleName:"AtomicDesc",interfaces:[]},Object.defineProperty(Ho.prototype,"callerFrame",{configurable:!0,get:function(){var t;return e.isType(t=this.continuation,ha)?t:null}}),Ho.prototype.getStackTraceElement=function(){return null},Object.defineProperty(Ho.prototype,"reusableCancellableContinuation_0",{configurable:!0,get:function(){var t;return e.isType(t=this._reusableCancellableContinuation_0.kotlinx$atomicfu$value,Mt)?t:null}}),Ho.prototype.isReusable=function(){return null!=this._reusableCancellableContinuation_0.kotlinx$atomicfu$value},Ho.prototype.awaitReusability=function(){for(var t=this._reusableCancellableContinuation_0;;)if(t.kotlinx$atomicfu$value!==co)return},Ho.prototype.release=function(){var t;this.awaitReusability(),null!=(t=this.reusableCancellableContinuation_0)&&t.detachChild_8be2vx$()},Ho.prototype.claimReusableCancellableContinuation=function(){for(var t=this._reusableCancellableContinuation_0;;){var n,i=t.kotlinx$atomicfu$value;if(null===i)return this._reusableCancellableContinuation_0.kotlinx$atomicfu$value=co,null;if(e.isType(i,Mt)){if(this._reusableCancellableContinuation_0.atomicfu$compareAndSet(i,co))return e.isType(n=i,Mt)?n:a()}else if(i!==co&&!e.isType(i,L))throw N(("Inconsistent state "+z(i)).toString())}},Ho.prototype.tryReleaseClaimedContinuation_jp3215$=function(t){for(var n=this._reusableCancellableContinuation_0;;){var i=n.kotlinx$atomicfu$value;if(i!==co){if(e.isType(i,L)){if(!this._reusableCancellableContinuation_0.atomicfu$compareAndSet(i,null))throw K("Failed requirement.".toString());return i}throw N(("Inconsistent state "+z(i)).toString())}if(this._reusableCancellableContinuation_0.atomicfu$compareAndSet(co,t))return null}},Ho.prototype.postponeCancellation_tcv7n7$=function(t){for(var n=this._reusableCancellableContinuation_0;;){var i=n.kotlinx$atomicfu$value;if(S(i,co)){if(this._reusableCancellableContinuation_0.atomicfu$compareAndSet(co,t))return!0}else{if(e.isType(i,L))return!0;if(this._reusableCancellableContinuation_0.atomicfu$compareAndSet(i,null))return!1}}},Ho.prototype.takeState=function(){var t=this._state_8be2vx$;return this._state_8be2vx$=ao,t},Object.defineProperty(Ho.prototype,"delegate",{configurable:!0,get:function(){return this}}),Ho.prototype.resumeWith_tl1gpc$=function(t){var n=this.continuation.context,i=Yt(t);if(this.dispatcher.isDispatchNeeded_1fupul$(n))this._state_8be2vx$=i,this.resumeMode=0,this.dispatcher.dispatch_5bn72i$(n,this);else{var o=je().eventLoop_8be2vx$;if(o.isUnconfinedLoopActive)this._state_8be2vx$=i,this.resumeMode=0,o.dispatchUnconfined_4avnfa$(this);else{o.incrementUseCount_6taknv$(!0);try{for(this.context,this.continuation.resumeWith_tl1gpc$(t);o.processUnconfinedEvent(););}catch(t){if(!e.isType(t,L))throw t;this.handleFatalException_pr7uss$(t,null)}finally{o.decrementUseCount_6taknv$(!0)}}}},Ho.prototype.resumeCancellableWith_rdpv6h$=v("kotlinx-coroutines-core.kotlinx.coroutines.internal.DispatchedContinuation.resumeCancellableWith_rdpv6h$",C((function(){var n=t.kotlinx.coroutines.toState_fbj1ua$,i=e.kotlin.Unit,o=e.wrapFunction,r=Error,s=t.kotlinx.coroutines.Job,a=e.kotlin.Result,c=e.kotlin.createFailure_tcv7n7$;return o((function(){var n=t.kotlinx.coroutines.Job,o=e.kotlin.Result,r=e.kotlin.createFailure_tcv7n7$;return function(t,e,s){return function(){var a,c=e,l=t;t:do{var u=c.context.get_j3r2sn$(n.Key);if(null!=u&&!u.isActive){var h=u.getCancellationException();c.cancelCompletedResult_83a7kv$(l,h),c.resumeWith_tl1gpc$(new o(r(h))),a=!0;break t}a=!1}while(0);return a||e.continuation.resumeWith_tl1gpc$(s),i}}})),function(t,i){var o=n(t,i);if(this.dispatcher.isDispatchNeeded_1fupul$(this.context))this._state_8be2vx$=o,this.resumeMode=1,this.dispatcher.dispatch_5bn72i$(this.context,this);else{var l=je().eventLoop_8be2vx$;if(l.isUnconfinedLoopActive)this._state_8be2vx$=o,this.resumeMode=1,l.dispatchUnconfined_4avnfa$(this);else{l.incrementUseCount_6taknv$(!0);try{var u;t:do{var h=this.context.get_j3r2sn$(s.Key);if(null!=h&&!h.isActive){var d=h.getCancellationException();this.cancelCompletedResult_83a7kv$(o,d),this.resumeWith_tl1gpc$(new a(c(d))),u=!0;break t}u=!1}while(0);for(u||this.continuation.resumeWith_tl1gpc$(t);l.processUnconfinedEvent(););}catch(t){if(!e.isType(t,r))throw t;this.handleFatalException_pr7uss$(t,null)}finally{l.decrementUseCount_6taknv$(!0)}}}}}))),Ho.prototype.cancelCompletedResult_83a7kv$=function(t,n){e.isType(t,te)&&t.onCancellation(n)},Ho.prototype.resumeCancelled_s8jyv4$=v("kotlinx-coroutines-core.kotlinx.coroutines.internal.DispatchedContinuation.resumeCancelled_s8jyv4$",C((function(){var n=t.kotlinx.coroutines.Job,i=e.kotlin.Result,o=e.kotlin.createFailure_tcv7n7$;return function(t){var e=this.context.get_j3r2sn$(n.Key);if(null!=e&&!e.isActive){var r=e.getCancellationException();return this.cancelCompletedResult_83a7kv$(t,r),this.resumeWith_tl1gpc$(new i(o(r))),!0}return!1}}))),Ho.prototype.resumeUndispatchedWith_tl1gpc$=v("kotlinx-coroutines-core.kotlinx.coroutines.internal.DispatchedContinuation.resumeUndispatchedWith_tl1gpc$",(function(t){this.continuation.resumeWith_tl1gpc$(t)})),Ho.prototype.dispatchYield_6v298r$=function(t,e){this._state_8be2vx$=e,this.resumeMode=1,this.dispatcher.dispatchYield_5bn72i$(t,this)},Ho.prototype.toString=function(){return"DispatchedContinuation["+this.dispatcher+", "+Es(this.continuation)+"]"},Object.defineProperty(Ho.prototype,"context",{configurable:!0,get:function(){return this.continuation.context}}),Ho.$metadata$={kind:c,simpleName:"DispatchedContinuation",interfaces:[l,ha,Jo]},Jo.prototype.cancelCompletedResult_83a7kv$=function(t,e){},Jo.prototype.getSuccessfulResult_tpy1pm$=function(t){var n;return null==(n=t)||e.isType(n,s)?n:a()},Jo.prototype.getExceptionalResult_s8jyv4$=function(t){var n,i;return null!=(i=e.isType(n=t,ee)?n:null)?i.cause:null},Jo.prototype.run=function(){var t,n=null;try{var i=(e.isType(t=this.delegate,Ho)?t:a()).continuation,o=i.context,r=this.takeState(),s=this.getExceptionalResult_s8jyv4$(r),c=null==s&&Ko(this.resumeMode)?o.get_j3r2sn$(Ve()):null;if(null==c||c.isActive)if(null!=s)i.resumeWith_tl1gpc$(new $(A(s)));else{var l=this.getSuccessfulResult_tpy1pm$(r);i.resumeWith_tl1gpc$(new $(l))}else{var u=c.getCancellationException();this.cancelCompletedResult_83a7kv$(r,u),i.resumeWith_tl1gpc$(new $(A(ca(u))))}}catch(t){if(!e.isType(t,L))throw t;n=t}finally{var h;try{h=new $(d)}catch(t){if(!e.isType(t,L))throw t;h=new $(A(t))}var p=h;this.handleFatalException_pr7uss$(n,p.exceptionOrNull())}},Jo.prototype.handleFatalException_pr7uss$=function(t,e){if(null!==t||null!==e){var n=new Fe("Fatal exception in coroutines machinery for "+this+". Please read KDoc to 'handleFatalException' method and report this incident to maintainers",V(null!=t?t:e));ce(this.delegate.context,n)}},Jo.$metadata$={kind:c,simpleName:"DispatchedTask",interfaces:[Js]},Zo.prototype.plus_11rb$=function(t){var n,i,o,r;if(null==(n=this.holder_0))r=new Zo(t);else if(e.isType(n,Z))(e.isType(i=this.holder_0,Z)?i:a()).add_11rb$(t),r=new Zo(this.holder_0);else{var c=g(4);c.add_11rb$(null==(o=this.holder_0)||e.isType(o,s)?o:a()),c.add_11rb$(t),r=new Zo(c)}return r},Zo.prototype.forEachReversed_qlkmfe$=v("kotlinx-coroutines-core.kotlinx.coroutines.internal.InlineList.forEachReversed_qlkmfe$",C((function(){var t=Object,n=e.throwCCE,i=e.kotlin.collections.ArrayList;return function(o){var r,s,a;if(null!=(r=this.holder_0))if(e.isType(r,i))for(var c=e.isType(a=this.holder_0,i)?a:n(),l=c.size-1|0;l>=0;l--)o(c.get_za3lpa$(l));else o(null==(s=this.holder_0)||e.isType(s,t)?s:n())}}))),Zo.$metadata$={kind:c,simpleName:"InlineList",interfaces:[]},Zo.prototype.unbox=function(){return this.holder_0},Zo.prototype.toString=function(){return"InlineList(holder="+e.toString(this.holder_0)+")"},Zo.prototype.hashCode=function(){var t=0;return t=31*t+e.hashCode(this.holder_0)|0},Zo.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.holder_0,t.holder_0)},tr.prototype.limitedParallelism_za3lpa$=function(t){return er(t),t>=this.parallelism_0?this:ie.prototype.limitedParallelism_za3lpa$.call(this,t)},tr.prototype.run=function(){for(var t={v:0};;){var n=this.queue_0.removeFirstOrNull();if(null==n){if(this.runningWorkers_0=this.runningWorkers_0-1|0,0===this.queue_0.size)return;this.runningWorkers_0=this.runningWorkers_0+1|0,t.v=0}else{try{n.run()}catch(t){if(!e.isType(t,L))throw t;ce(E.EmptyCoroutineContext,t)}if(t.v=t.v+1|0,t.v>=16&&this.dispatcher_0.isDispatchNeeded_1fupul$(this))return void this.dispatcher_0.dispatch_5bn72i$(this,this)}}},tr.prototype.dispatch_5bn72i$=function(t,e){t:do{if(this.addAndTryDispatching_0(e))break t;if(!this.tryAllocateWorker_0())break t;this.dispatcher_0.dispatch_5bn72i$(this,this)}while(0)},tr.prototype.dispatchYield_5bn72i$=function(t,e){t:do{if(this.addAndTryDispatching_0(e))break t;if(!this.tryAllocateWorker_0())break t;this.dispatcher_0.dispatchYield_5bn72i$(this,this)}while(0)},tr.prototype.dispatchInternal_0=function(t,e){this.addAndTryDispatching_0(t)||this.tryAllocateWorker_0()&&e()},tr.prototype.tryAllocateWorker_0=function(){return!(this.runningWorkers_0>=this.parallelism_0||(this.runningWorkers_0=this.runningWorkers_0+1|0,0))},tr.prototype.addAndTryDispatching_0=function(t){return this.queue_0.addLast_trkh7z$(t),this.runningWorkers_0>=this.parallelism_0},tr.prototype.delay_s8cxhz$=function(t,e){return this.$delegate_ay9hik$_0.delay_s8cxhz$(t,e)},tr.prototype.invokeOnTimeout_oczv3n$=function(t,e,n){return this.$delegate_ay9hik$_0.invokeOnTimeout_oczv3n$(t,e,n)},tr.prototype.scheduleResumeAfterDelay_egqmvs$=function(t,e){return this.$delegate_ay9hik$_0.scheduleResumeAfterDelay_egqmvs$(t,e)},tr.$metadata$={kind:c,simpleName:"LimitedDispatcher",interfaces:[Ue,Xs,ie]},Object.defineProperty(nr.prototype,"isEmpty",{configurable:!0,get:function(){return this._cur_0.kotlinx$atomicfu$value.isEmpty}}),Object.defineProperty(nr.prototype,"size",{configurable:!0,get:function(){return this._cur_0.kotlinx$atomicfu$value.size}}),nr.prototype.close=function(){for(var t=this._cur_0;;){var e=t.kotlinx$atomicfu$value;if(e.close())return;this._cur_0.atomicfu$compareAndSet(e,e.next())}},nr.prototype.addLast_trkh7z$=function(t){for(var e=this._cur_0;;){var n=e.kotlinx$atomicfu$value;switch(n.addLast_trkh7z$(t)){case 0:return!0;case 2:return!1;case 1:this._cur_0.atomicfu$compareAndSet(n,n.next())}}},nr.prototype.removeFirstOrNull=function(){for(var t=this._cur_0;;){var n,i=t.kotlinx$atomicfu$value,o=i.removeFirstOrNull();if(o!==br().REMOVE_FROZEN)return null==(n=o)||e.isType(n,s)?n:a();this._cur_0.atomicfu$compareAndSet(i,i.next())}},nr.prototype.map_m8mn37$=function(t){return this._cur_0.kotlinx$atomicfu$value.map_m8mn37$(t)},nr.prototype.isClosed=function(){return this._cur_0.kotlinx$atomicfu$value.isClosed()},nr.$metadata$={kind:c,simpleName:"LockFreeTaskQueue",interfaces:[]},Object.defineProperty(ir.prototype,"isEmpty",{configurable:!0,get:function(){var t=this._state_0.kotlinx$atomicfu$value;return t.and(LockFreeTaskQueueCore$Companion$HEAD_MASK).shiftRight(0).toInt()===t.and(LockFreeTaskQueueCore$Companion$TAIL_MASK).shiftRight(30).toInt()}}),Object.defineProperty(ir.prototype,"size",{configurable:!0,get:function(){var t=this._state_0.kotlinx$atomicfu$value,e=t.and(LockFreeTaskQueueCore$Companion$HEAD_MASK).shiftRight(0).toInt();return t.and(LockFreeTaskQueueCore$Companion$TAIL_MASK).shiftRight(30).toInt()-e&1073741823}}),ir.prototype.close=function(){var t=this._state_0;t:do{for(;;){var e=t.kotlinx$atomicfu$value;if(!S(e.and(br().CLOSED_MASK),W))return!0;if(!S(e.and(br().FROZEN_MASK),W))return!1;var n=e.or(br().CLOSED_MASK);if(t.atomicfu$compareAndSet(e,n))break t}}while(0);return!0},ir.prototype.addLast_trkh7z$=function(t){for(var e=this._state_0;;){var n=e.kotlinx$atomicfu$value;t:do{if(!S(n.and(pt),W))return br().addFailReason_mts6qi$(n);var i,o=n.and(LockFreeTaskQueueCore$Companion$HEAD_MASK).shiftRight(0).toInt(),r=n.and(LockFreeTaskQueueCore$Companion$TAIL_MASK).shiftRight(30).toInt(),s=this.mask_0;if((r+2&s)==(o&s))return 1;if(!this.singleConsumer_0&&null!=this.array_0.atomicfu$get(r&s).kotlinx$atomicfu$value){if(this.capacity_0<1024||(r-o&1073741823)>this.capacity_0>>1)return 1;break t}var a=r+1&1073741823;if(this._state_0.atomicfu$compareAndSet(n,br().updateTail_if0zpk$(n,a))){this.array_0.atomicfu$get(r&s).kotlinx$atomicfu$value=t;for(var c=this;!S(c._state_0.kotlinx$atomicfu$value.and(br().FROZEN_MASK),W)&&null!=(i=c.next().fillPlaceholder_0(r,t));)c=i;return 0}}while(0)}},ir.prototype.fillPlaceholder_0=function(t,n){var i=this.array_0.atomicfu$get(t&this.mask_0).kotlinx$atomicfu$value;return e.isType(i,or)&&i.index===t?(this.array_0.atomicfu$get(t&this.mask_0).kotlinx$atomicfu$value=n,this):null},ir.prototype.removeFirstOrNull=function(){for(var t=this._state_0;;){var n=t.kotlinx$atomicfu$value;t:do{if(!S(n.and(br().FROZEN_MASK),W))return br().REMOVE_FROZEN;var i,o=n.and(LockFreeTaskQueueCore$Companion$HEAD_MASK).shiftRight(0).toInt();if((n.and(LockFreeTaskQueueCore$Companion$TAIL_MASK).shiftRight(30).toInt()&this.mask_0)==(o&this.mask_0))return null;var r=this.array_0.atomicfu$get(o&this.mask_0).kotlinx$atomicfu$value;if(null==r){if(this.singleConsumer_0)return null;break t}if(e.isType(r,or))return null;var s=o+1&1073741823;if(this._state_0.atomicfu$compareAndSet(n,br().updateHead_if0zpk$(n,s)))return this.array_0.atomicfu$get(o&this.mask_0).kotlinx$atomicfu$value=null,r;if(!this.singleConsumer_0)break t;for(var a=this;;){if(null==(i=a.removeSlowPath_0(o,s)))return r;a=i}}while(0)}},ir.prototype.removeSlowPath_0=function(t,e){for(var n=this._state_0;;){var i=n.kotlinx$atomicfu$value,o=i.and(LockFreeTaskQueueCore$Companion$HEAD_MASK).shiftRight(0).toInt();if(i.and(LockFreeTaskQueueCore$Companion$TAIL_MASK).shiftRight(30).toInt(),!S(i.and(br().FROZEN_MASK),W))return this.next();if(this._state_0.atomicfu$compareAndSet(i,br().updateHead_if0zpk$(i,e)))return this.array_0.atomicfu$get(o&this.mask_0).kotlinx$atomicfu$value=null,null}},ir.prototype.next=function(){return this.allocateOrGetNextCopy_0(this.markFrozen_0())},ir.prototype.markFrozen_0=function(){var t,e=this._state_0;t:do{for(;;){var n=e.kotlinx$atomicfu$value;if(!S(n.and(br().FROZEN_MASK),W))return n;var i=n.or(br().FROZEN_MASK);if(e.atomicfu$compareAndSet(n,i)){t=i;break t}}}while(0);return t},ir.prototype.allocateOrGetNextCopy_0=function(t){for(var e=this._next_0;;){var n=e.kotlinx$atomicfu$value;if(null!=n)return n;this._next_0.atomicfu$compareAndSet(null,this.allocateNextCopy_0(t))}},ir.prototype.allocateNextCopy_0=function(t){for(var e,n=new ir(2*this.capacity_0|0,this.singleConsumer_0),i=t.and(LockFreeTaskQueueCore$Companion$HEAD_MASK).shiftRight(0).toInt(),o=t.and(LockFreeTaskQueueCore$Companion$TAIL_MASK).shiftRight(30).toInt(),r=i;(r&this.mask_0)!=(o&this.mask_0);){var s=null!=(e=this.array_0.atomicfu$get(r&this.mask_0).kotlinx$atomicfu$value)?e:new or(r);n.array_0.atomicfu$get(r&n.mask_0).kotlinx$atomicfu$value=s,r=r+1|0}return n._state_0.kotlinx$atomicfu$value=br().wo_2p08ub$(t,br().FROZEN_MASK),n},ir.prototype.map_m8mn37$=function(t){for(var n,i=g(this.capacity_0),o=this._state_0.kotlinx$atomicfu$value,r=o.and(LockFreeTaskQueueCore$Companion$HEAD_MASK).shiftRight(0).toInt(),c=o.and(LockFreeTaskQueueCore$Companion$TAIL_MASK).shiftRight(30).toInt(),l=r;(l&this.mask_0)!=(c&this.mask_0);){var u=this.array_0.atomicfu$get(l&this.mask_0).kotlinx$atomicfu$value;null==u||e.isType(u,or)||i.add_11rb$(t(e.isType(n=u,s)?n:a())),l=l+1|0}return i},ir.prototype.isClosed=function(){return!S(this._state_0.kotlinx$atomicfu$value.and(br().CLOSED_MASK),W)},or.$metadata$={kind:c,simpleName:"Placeholder",interfaces:[]},rr.prototype.wo_2p08ub$=function(t,e){return t.and(e.inv())},rr.prototype.updateHead_if0zpk$=function(t,n){return this.wo_2p08ub$(t,this.HEAD_MASK).or(e.Long.fromInt(n).shiftLeft(0))},rr.prototype.updateTail_if0zpk$=function(t,n){return this.wo_2p08ub$(t,this.TAIL_MASK).or(e.Long.fromInt(n).shiftLeft(30))},rr.prototype.withState_d0ock6$=v("kotlinx-coroutines-core.kotlinx.coroutines.internal.LockFreeTaskQueueCore.Companion.withState_d0ock6$",C((function(){var t=e.Long.fromInt(1073741823),n=new e.Long(-1073741824,268435455);return function(e,i){return i(e.and(t).shiftRight(0).toInt(),e.and(n).shiftRight(30).toInt())}}))),rr.prototype.addFailReason_mts6qi$=function(t){return S(t.and(this.CLOSED_MASK),W)?1:2},rr.$metadata$={kind:w,simpleName:"Companion",interfaces:[]};var sr,ar,cr,lr,ur,hr,dr,pr,_r,mr,fr,gr,$r,Er,yr=null;function br(){return null===yr&&new rr,yr}function Sr(t,n,i){void 0===i&&(i=null);try{t(n)}catch(t){if(!e.isType(t,L))throw t;if(null==i||i.cause===t)return new Nr("Exception in undelivered element handler for "+n,t)}return i}function vr(t,e,n){var i;null!=(i=Sr(t,e,null))&&ce(n,i)}function Cr(t,e,n){return i=e,o=n,r=t,function(t){return vr(r,i,o),d};var i,o,r}function Nr(t,e){U.call(this,t,e),this.name="UndeliveredElementException"}function Tr(t,e){Nt.call(this,t,!0,!0),this.uCont=e}function Lr(t){this.coroutineContext_glfhxt$_0=t}function zr(t){this.symbol=t}function wr(t,n,i,o){return void 0===i&&(i=1),void 0===o&&(o=2147483647),Or(0,e.Long.fromInt(n),e.Long.fromInt(i),e.Long.fromInt(o)).toInt()}function Or(t,e,n,i){return void 0===n&&(n=B),void 0===i&&(i=F),e}function Rr(t,n){try{Vo(f(Et(t,n)),new $(d))}catch(t){if(!e.isType(t,L))throw t;Ir(n,t)}}function Ar(t,n,i,o){void 0===o&&(o=null);try{Vo(f(y(t,n,i)),new $(d),o)}catch(t){if(!e.isType(t,L))throw t;Ir(i,t)}}function xr(t,n){try{Vo(f(t),new $(d))}catch(t){if(!e.isType(t,L))throw t;Ir(n,t)}}function Ir(t,e){throw t.resumeWith_tl1gpc$(new $(A(e))),e}function Ur(t,n){t:do{var i,o,r=n;try{i=t(r,!1)}catch(t){if(e.isType(t,L)){var c=t;r.resumeWith_tl1gpc$(new $(A(c)));break t}throw t}if(i!==u){var l=null==(o=i)||e.isType(o,s)?o:a();r.resumeWith_tl1gpc$(new $(l))}}while(0)}function Dr(t,n,i){t:do{var o,r,c=i;try{o=t(n,c,!1)}catch(t){if(e.isType(t,L)){var l=t;c.resumeWith_tl1gpc$(new $(A(l)));break t}throw t}if(o!==u){var h=null==(r=o)||e.isType(r,s)?r:a();c.resumeWith_tl1gpc$(new $(h))}}while(0)}function Pr(t,n){t:do{var i,o,r=n;try{n.context,i=t(r,!1)}catch(t){if(e.isType(t,L)){var c=t;r.resumeWith_tl1gpc$(new $(A(c)));break t}throw t}if(i!==u){var l=null==(o=i)||e.isType(o,s)?o:a();r.resumeWith_tl1gpc$(new $(l))}}while(0)}function Mr(t,n,i){t:do{var o,r,c=i;try{i.context,o=t(n,c,!1)}catch(t){if(e.isType(t,L)){var l=t;c.resumeWith_tl1gpc$(new $(A(l)));break t}throw t}if(o!==u){var h=null==(r=o)||e.isType(r,s)?r:a();c.resumeWith_tl1gpc$(new $(h))}}while(0)}function kr(t,n,i){var o;t:do{var r;try{r=i(n,t,!1)}catch(t){if(!e.isType(t,L))throw t;r=new ee(t)}var s=r;if(s===u){o=u;break t}var a=t.makeCompletingOnce_8ea4ql$(s);if(a===rn){o=u;break t}if(e.isType(a,ee))throw ca(a.cause,t.uCont);o=bn(a)}while(0);return o}function jr(t,n,i){var o;t:do{var r,s;try{r=i(n,t,!1)}catch(t){if(!e.isType(t,L))throw t;r=new ee(t)}var a=r;if(a===u){o=u;break t}var c=t.makeCompletingOnce_8ea4ql$(a);if(c===rn){o=u;break t}if(e.isType(c,ee)){var l=c.cause;if(!e.isType(l,Wn)||l.coroutine_8be2vx$!==t)throw ca(c.cause,t.uCont);if(e.isType(a,ee))throw ca(a.cause,t.uCont);s=a}else s=bn(c);o=s}while(0);return o}function Gr(t){this.closure$block=t}function qr(){}function Fr(){}function Br(){}function Wr(){}function Hr(){}function Vr(){this.number_0=rt(B)}function Kr(t){aa.call(this),this.uCont_0=t,this._state_0=_(sr),this._result_0=_(cr),this._parentHandle_0=_(null)}function Xr(t){this.$outer=t,In.call(this)}function Jr(t){Fo.call(this),this.otherOp=t}function Yr(t,e){Bo.call(this),this.impl=t,this.desc=e,this.opSequence_oe6pw4$_0=ur.next(),this.desc.atomicOp=this}function Qr(t){na.call(this),this.handle=t}function Zr(t){this.instance=new Kr(t),this.clauses=ut()}function ts(){}function es(t){this.locked=t}function ns(t){this._state_0=_(t?mr:fr)}function is(t,e){return function(n){return e.unlock_s8jyv4$(t),d}}function os(t,e){Wo.call(this),this.mutex=t,this.owner=e}function rs(t,e){this.$outer=t,Fo.call(this),this.atomicOp_o4bkb9$_0=e}function ss(t){aa.call(this),this.owner=t}function as(t,e){this.$outer=t,na.call(this),this.owner=e,this.isTaken_0=O(!1)}function cs(t,e,n){this.$outer=t,as.call(this,this.$outer,e),this.cont_0=n}function ls(t,e,n,i){this.$outer=t,as.call(this,this.$outer,e),this.select=n,this.block=i}function us(t){Bo.call(this),this.queue=t}function hs(){ie.call(this)}function ds(){na.call(this)}function ps(){}function _s(t,e){S(typeof t,"function")?t(e):t.invoke(e)}function ms(){if(function(){var t=!S(typeof navigator,gr)&&null!=navigator&&null!=navigator.userAgent;t&&(t=!S(typeof navigator.userAgent,gr));var e=t;return e&&(e=!S(typeof navigator.userAgent.match,gr)),e&&navigator.userAgent.match("\\bjsdom\\b")}())return js();var t=!S(typeof window,gr)&&null!=window;if(t&&(t=!S(typeof window.addEventListener,gr)),t)return Qs(window);var e=S(typeof i,gr);return e||(e=S(typeof i.nextTick,gr)),e?Fs():js()}function fs(){var t;return e.isType(t=zs().Default,Ue)?t:a()}function gs(t,e){var n=t.coroutineContext.plus_1fupul$(e);return n!==zs().Default&&null==n.get_j3r2sn$(b.Key)?n.plus_1fupul$(zs().Default):n}function $s(t,e){return t.plus_1fupul$(e)}function Es(t){return t.toString()}function ys(t){return null}function bs(t,e){Tr.call(this,t,e)}function Ss(t,e){console.error(e)}function vs(t){var e,n=t.__debug_counter;return"number"!=typeof n&&(n=$r=$r+1|0,t.__debug_counter=n),("number"==typeof(e=n)?e:a()).toString()}function Cs(t){var n;return null!=(n=e.getKClassFromExpression(t).simpleName)?n:"Unknown"}function Ns(){Ls=this,this.Default=ms(),this.Unconfined=Jn(),this.mainDispatcher_0=new ws(this.Default,!1),this.injectedMainDispatcher_0=null}ir.$metadata$={kind:c,simpleName:"LockFreeTaskQueueCore",interfaces:[]},Nr.$metadata$={kind:c,simpleName:"UndeliveredElementException",interfaces:[U]},Object.defineProperty(Tr.prototype,"callerFrame",{configurable:!0,get:function(){var t;return e.isType(t=this.uCont,ha)?t:null}}),Tr.prototype.getStackTraceElement=function(){return null},Object.defineProperty(Tr.prototype,"isScopedCoroutine",{configurable:!0,get:function(){return!0}}),Object.defineProperty(Tr.prototype,"parent_8be2vx$",{configurable:!0,get:function(){var t;return null!=(t=this.parentHandle_8be2vx$)?t.parent:null}}),Tr.prototype.afterCompletion_s8jyv4$=function(t){Vo(f(this.uCont),Zt(t,this.uCont))},Tr.prototype.afterResume_s8jyv4$=function(t){this.uCont.resumeWith_tl1gpc$(Zt(t,this.uCont))},Tr.$metadata$={kind:c,simpleName:"ScopeCoroutine",interfaces:[ha,Nt]},Object.defineProperty(Lr.prototype,"coroutineContext",{configurable:!0,get:function(){return this.coroutineContext_glfhxt$_0}}),Lr.prototype.toString=function(){return"CoroutineScope(coroutineContext="+this.coroutineContext+")"},Lr.$metadata$={kind:c,simpleName:"ContextScope",interfaces:[$e]},zr.prototype.toString=function(){return"<"+this.symbol+">"},zr.prototype.unbox_tpy1pm$=v("kotlinx-coroutines-core.kotlinx.coroutines.internal.Symbol.unbox_tpy1pm$",C((function(){var t=Object,n=e.throwCCE;return function(i){var o;return i===this?null:null==(o=i)||e.isType(o,t)?o:n()}}))),zr.$metadata$={kind:c,simpleName:"Symbol",interfaces:[]},Gr.prototype.run=function(){this.closure$block()},Gr.$metadata$={kind:c,interfaces:[Xs]},qr.prototype.invoke_en0wgx$=function(t,e){this.invoke_ha2bmj$(t,null,e)},qr.$metadata$={kind:T,simpleName:"SelectBuilder",interfaces:[]},Fr.$metadata$={kind:T,simpleName:"SelectClause0",interfaces:[]},Br.$metadata$={kind:T,simpleName:"SelectClause1",interfaces:[]},Wr.$metadata$={kind:T,simpleName:"SelectClause2",interfaces:[]},Hr.$metadata$={kind:T,simpleName:"SelectInstance",interfaces:[]},v("kotlinx-coroutines-core.kotlinx.coroutines.selects.select_wd2ujs$",C((function(){var n=t.kotlinx.coroutines.selects.SelectBuilderImpl,i=Error;return function(t,o){var r;return e.suspendCall((r=t,function(t){var o=new n(t);try{r(o)}catch(t){if(!e.isType(t,i))throw t;o.handleBuilderException_tcv7n7$(t)}return o.getResult()})(e.coroutineReceiver())),e.coroutineResult(e.coroutineReceiver())}}))),Vr.prototype.next=function(){return this.number_0.atomicfu$incrementAndGet$long()},Vr.$metadata$={kind:c,simpleName:"SeqNumber",interfaces:[]},Object.defineProperty(Kr.prototype,"callerFrame",{configurable:!0,get:function(){var t;return e.isType(t=this.uCont_0,ha)?t:null}}),Kr.prototype.getStackTraceElement=function(){return null},Object.defineProperty(Kr.prototype,"parentHandle_0",{configurable:!0,get:function(){return this._parentHandle_0.kotlinx$atomicfu$value},set:function(t){this._parentHandle_0.kotlinx$atomicfu$value=t}}),Object.defineProperty(Kr.prototype,"context",{configurable:!0,get:function(){return this.uCont_0.context}}),Object.defineProperty(Kr.prototype,"completion",{configurable:!0,get:function(){return this}}),Kr.prototype.doResume_0=function(t,e){for(var n=this._result_0;;){var i=n.kotlinx$atomicfu$value;if(i===cr){var o=t();if(this._result_0.atomicfu$compareAndSet(cr,o))return}else{if(i!==u)throw N("Already resumed");if(this._result_0.atomicfu$compareAndSet(u,lr))return void e()}}},Kr.prototype.resumeWith_tl1gpc$=function(t){t:do{for(var e=this._result_0;;){var n=e.kotlinx$atomicfu$value;if(n===cr){var i=Yt(t);if(this._result_0.atomicfu$compareAndSet(cr,i))break t}else{if(n!==u)throw N("Already resumed");if(this._result_0.atomicfu$compareAndSet(u,lr)){if(t.isFailure){var o=this.uCont_0;o.resumeWith_tl1gpc$(new $(A(ca(V(t.exceptionOrNull())))))}else this.uCont_0.resumeWith_tl1gpc$(t);break t}}}}while(0)},Kr.prototype.resumeSelectWithException_tcv7n7$=function(t){t:do{for(var e=this._result_0;;){var n=e.kotlinx$atomicfu$value;if(n===cr){var i=new ee(ca(t,this.uCont_0));if(this._result_0.atomicfu$compareAndSet(cr,i))break t}else{if(n!==u)throw N("Already resumed");if(this._result_0.atomicfu$compareAndSet(u,lr)){f(this.uCont_0).resumeWith_tl1gpc$(new $(A(t)));break t}}}}while(0)},Kr.prototype.getResult=function(){this.isSelected||this.initCancellability_0();var t=this._result_0.kotlinx$atomicfu$value;if(t===cr){if(this._result_0.atomicfu$compareAndSet(cr,u))return u;t=this._result_0.kotlinx$atomicfu$value}if(t===lr)throw N("Already resumed");if(e.isType(t,ee))throw t.cause;return t},Kr.prototype.initCancellability_0=function(){var t;if(null!=(t=this.context.get_j3r2sn$(Ve()))){var e=t.invokeOnCompletion_ct2b2z$(!0,void 0,new Xr(this));this.parentHandle_0=e,this.isSelected&&e.dispose()}},Xr.prototype.invoke=function(t){this.$outer.trySelect()&&this.$outer.resumeSelectWithException_tcv7n7$(this.job.getCancellationException())},Xr.$metadata$={kind:c,simpleName:"SelectOnCancelling",interfaces:[In]},Kr.prototype.handleBuilderException_tcv7n7$=function(t){if(this.trySelect())this.resumeWith_tl1gpc$(new $(A(t)));else if(!e.isType(t,J)){var n=this.getResult();e.isType(n,ee)&&n.cause===t||ce(this.context,t)}},Object.defineProperty(Kr.prototype,"isSelected",{configurable:!0,get:function(){for(var t=this._state_0;;){var n=t.kotlinx$atomicfu$value;if(n===sr)return!1;if(!e.isType(n,Fo))return!0;n.perform_s8jyv4$(this)}}}),Kr.prototype.disposeOnSelect_rvfg84$=function(t){var e=new Qr(t);(this.isSelected||(this.addLast_l2j9rm$(e),this.isSelected))&&t.dispose()},Kr.prototype.doAfterSelect_0=function(){var t;null!=(t=this.parentHandle_0)&&t.dispose();for(var n=this._next;!S(n,this);)e.isType(n,Qr)&&n.handle.dispose(),n=n._next},Kr.prototype.trySelect=function(){var t,e=this.trySelectOther_uc1cc4$(null);if(e===o)t=!0;else{if(null!=e)throw N(("Unexpected trySelectIdempotent result "+z(e)).toString());t=!1}return t},Kr.prototype.trySelectOther_uc1cc4$=function(t){for(var n=this._state_0;;){var i=n.kotlinx$atomicfu$value;t:do{if(i===sr){if(null==t){if(!this._state_0.atomicfu$compareAndSet(sr,null))break t}else{var r=new Jr(t);if(!this._state_0.atomicfu$compareAndSet(sr,r))break t;var s=r.perform_s8jyv4$(this);if(null!==s)return s}return this.doAfterSelect_0(),o}if(!e.isType(i,Fo))return null==t?null:i===t.desc?o:null;if(null!=t){var a=t.atomicOp;if(e.isType(a,Yr)&&a.impl===this)throw N("Cannot use matching select clauses on the same object".toString());if(a.isEarlierThan_bfmzsr$(i))return so}i.perform_s8jyv4$(this)}while(0)}},Jr.prototype.perform_s8jyv4$=function(t){var n,i=e.isType(n=t,Kr)?n:a();this.otherOp.finishPrepare();var o=this.otherOp.atomicOp.decide_s8jyv4$(null),r=null==o?this.otherOp.desc:sr;return i._state_0.atomicfu$compareAndSet(this,r),o},Object.defineProperty(Jr.prototype,"atomicOp",{configurable:!0,get:function(){return this.otherOp.atomicOp}}),Jr.$metadata$={kind:c,simpleName:"PairSelectOp",interfaces:[Fo]},Kr.prototype.performAtomicTrySelect_6q0pxr$=function(t){return new Yr(this,t).perform_s8jyv4$(null)},Kr.prototype.toString=function(){return"SelectInstance(state="+z(this._state_0.kotlinx$atomicfu$value)+", result="+z(this._result_0.kotlinx$atomicfu$value)+")"},Object.defineProperty(Yr.prototype,"opSequence",{configurable:!0,get:function(){return this.opSequence_oe6pw4$_0}}),Yr.prototype.prepare_11rb$=function(t){var n;if(null==t&&null!=(n=this.prepareSelectOp_0()))return n;try{return this.desc.prepare_4uxf5b$(this)}catch(n){throw e.isType(n,L)?(null==t&&this.undoPrepare_0(),n):n}},Yr.prototype.complete_19pj23$=function(t,e){this.completeSelect_0(e),this.desc.complete_ayrq83$(this,e)},Yr.prototype.prepareSelectOp_0=function(){for(var t=this.impl._state_0;;){var n=t.kotlinx$atomicfu$value;if(n===this)return null;if(e.isType(n,Fo))n.perform_s8jyv4$(this.impl);else{if(n!==sr)return ar;if(this.impl._state_0.atomicfu$compareAndSet(sr,this))return null}}},Yr.prototype.undoPrepare_0=function(){this.impl._state_0.atomicfu$compareAndSet(this,sr)},Yr.prototype.completeSelect_0=function(t){var e=null==t,n=e?null:sr;this.impl._state_0.atomicfu$compareAndSet(this,n)&&e&&this.impl.doAfterSelect_0()},Yr.prototype.toString=function(){return"AtomicSelectOp(sequence="+this.opSequence.toString()+")"},Yr.$metadata$={kind:c,simpleName:"AtomicSelectOp",interfaces:[Bo]},Kr.prototype.invoke_nd4vgy$=function(t,e){t.registerSelectClause0_s9h9qd$(this,e)},Kr.prototype.invoke_veq140$=function(t,e){t.registerSelectClause1_o3xas4$(this,e)},Kr.prototype.invoke_ha2bmj$=function(t,e,n){t.registerSelectClause2_rol3se$(this,e,n)},Kr.prototype.onTimeout_7xvrws$=function(t,e){if(t.compareTo_11rb$(W)<=0)this.trySelect()&&Ur(e,this.completion);else{var n,i,o=new Gr((n=this,i=e,function(){return n.trySelect()&&Rr(i,n.completion),d}));this.disposeOnSelect_rvfg84$(De(this.context).invokeOnTimeout_oczv3n$(t,o,this.context))}},Qr.$metadata$={kind:c,simpleName:"DisposeNode",interfaces:[na]},Kr.$metadata$={kind:c,simpleName:"SelectBuilderImpl",interfaces:[ha,l,Hr,qr,aa]},v("kotlinx-coroutines-core.kotlinx.coroutines.selects.selectUnbiased_wd2ujs$",C((function(){var n=t.kotlinx.coroutines.selects.UnbiasedSelectBuilderImpl,i=Error;return function(t,o){var r;return e.suspendCall((r=t,function(t){var o=new n(t);try{r(o)}catch(t){if(!e.isType(t,i))throw t;o.handleBuilderException_tcv7n7$(t)}return o.initSelectResult()})(e.coroutineReceiver())),e.coroutineResult(e.coroutineReceiver())}}))),Zr.prototype.handleBuilderException_tcv7n7$=function(t){this.instance.handleBuilderException_tcv7n7$(t)},Zr.prototype.initSelectResult=function(){if(!this.instance.isSelected)try{var t;for(yt(this.clauses),t=this.clauses.iterator();t.hasNext();)t.next()()}catch(t){if(!e.isType(t,L))throw t;this.instance.handleBuilderException_tcv7n7$(t)}return this.instance.getResult()},Zr.prototype.invoke_nd4vgy$=function(t,e){var n,i,o;this.clauses.add_11rb$((n=this,i=e,o=t,function(){return o.registerSelectClause0_s9h9qd$(n.instance,i),d}))},Zr.prototype.invoke_veq140$=function(t,e){var n,i,o;this.clauses.add_11rb$((n=this,i=e,o=t,function(){return o.registerSelectClause1_o3xas4$(n.instance,i),d}))},Zr.prototype.invoke_ha2bmj$=function(t,e,n){var i,o,r,s;this.clauses.add_11rb$((i=this,o=e,r=n,s=t,function(){return s.registerSelectClause2_rol3se$(i.instance,o,r),d}))},Zr.prototype.onTimeout_7xvrws$=function(t,e){var n,i,o;this.clauses.add_11rb$((n=this,i=t,o=e,function(){return n.instance.onTimeout_7xvrws$(i,o),d}))},Zr.$metadata$={kind:c,simpleName:"UnbiasedSelectBuilderImpl",interfaces:[qr]},v("kotlinx-coroutines-core.kotlinx.coroutines.selects.whileSelect_vmyjlh$",C((function(){var n=t.kotlinx.coroutines.selects.SelectBuilderImpl,i=Error;function o(t){return function(o){var r=new n(o);try{t(r)}catch(t){if(!e.isType(t,i))throw t;r.handleBuilderException_tcv7n7$(t)}return r.getResult()}}return function(t,n){for(;e.suspendCall(o(t)(e.coroutineReceiver())),e.coroutineResult(e.coroutineReceiver()););}}))),ts.prototype.tryLock_s8jyv4$=function(t,e){return void 0===t&&(t=null),e?e(t):this.tryLock_s8jyv4$$default(t)},ts.prototype.lock_s8jyv4$=function(t,e,n){return void 0===t&&(t=null),n?n(t,e):this.lock_s8jyv4$$default(t,e)},ts.prototype.unlock_s8jyv4$=function(t,e){void 0===t&&(t=null),e?e(t):this.unlock_s8jyv4$$default(t)},ts.$metadata$={kind:T,simpleName:"Mutex",interfaces:[]},v("kotlinx-coroutines-core.kotlinx.coroutines.sync.withLock_8701tb$",(function(t,n,i,o){void 0===n&&(n=null),e.suspendCall(t.lock_s8jyv4$(n,e.coroutineReceiver()));try{return i()}finally{t.unlock_s8jyv4$(n)}})),es.prototype.toString=function(){return"Empty["+this.locked.toString()+"]"},es.$metadata$={kind:c,simpleName:"Empty",interfaces:[]},Object.defineProperty(ns.prototype,"isLocked",{configurable:!0,get:function(){for(var t=this._state_0;;){var n=t.kotlinx$atomicfu$value;if(e.isType(n,es))return n.locked!==_r;if(e.isType(n,ss))return!0;if(!e.isType(n,Fo))throw N(("Illegal state "+z(n)).toString());n.perform_s8jyv4$(this)}}}),Object.defineProperty(ns.prototype,"isLockedEmptyQueueState_8be2vx$",{configurable:!0,get:function(){var t=this._state_0.kotlinx$atomicfu$value;return e.isType(t,ss)&&t.isEmpty}}),ns.prototype.tryLock_s8jyv4$$default=function(t){for(var n=this._state_0;;){var i=n.kotlinx$atomicfu$value;if(e.isType(i,es)){if(i.locked!==_r)return!1;var o=null==t?mr:new es(t);if(this._state_0.atomicfu$compareAndSet(i,o))return!0}else{if(e.isType(i,ss)){if(i.owner===t){var r="Already locked by "+z(t);throw N(r.toString())}return!1}if(!e.isType(i,Fo))throw N(("Illegal state "+z(i)).toString());i.perform_s8jyv4$(this)}}},ns.prototype.lock_s8jyv4$$default=function(t,e){if(!this.tryLock_s8jyv4$(t))return this.lockSuspend_0(t,e)},ns.prototype.lockSuspend_0=function(t,n){return(o=t,r=this,i=function(t){for(var n={v:new cs(r,o,t)},i=r._state_0;;){var s=r,a=o,c=i.kotlinx$atomicfu$value;if(e.isType(c,es))if(c.locked!==_r)s._state_0.atomicfu$compareAndSet(c,new ss(c.locked));else{var l=null==a?mr:new es(a);if(s._state_0.atomicfu$compareAndSet(c,l))return void t.resume_q1ktlu$(d,is(a,s))}else if(e.isType(c,ss)){if(c.owner===a){var u="Already locked by "+z(a);throw N(u.toString())}if(c.addLast_l2j9rm$(n.v),s._state_0.kotlinx$atomicfu$value===c||!n.v.take())return void It(t,n.v);n.v=new cs(s,a,t)}else{if(!e.isType(c,Fo))throw N(("Illegal state "+z(c)).toString());c.perform_s8jyv4$(s)}}return d},function(t){var e=xt(f(t));return i(e),e.getResult()})(n);var i,o,r},Object.defineProperty(ns.prototype,"onLock",{configurable:!0,get:function(){return this}}),ns.prototype.registerSelectClause2_rol3se$=function(t,n,i){for(;;){if(t.isSelected)return;var o=this._state_0.kotlinx$atomicfu$value;if(e.isType(o,es))if(o.locked!==_r)this._state_0.atomicfu$compareAndSet(o,new ss(o.locked));else{var r=t.performAtomicTrySelect_6q0pxr$(new os(this,n));if(null==r)return void Dr(i,this,t.completion);if(r===ar)return;if(r!==hr&&r!==so)throw N(("performAtomicTrySelect(TryLockDesc) returned "+z(r)).toString())}else if(e.isType(o,ss)){if(o.owner===n){var s="Already locked by "+z(n);throw N(s.toString())}var a=new ls(this,n,t,i);if(o.addLast_l2j9rm$(a),this._state_0.kotlinx$atomicfu$value===o||!a.take())return void t.disposeOnSelect_rvfg84$(a)}else{if(!e.isType(o,Fo))throw N(("Illegal state "+z(o)).toString());o.perform_s8jyv4$(this)}}},Object.defineProperty(rs.prototype,"atomicOp",{get:function(){return this.atomicOp_o4bkb9$_0}}),rs.prototype.perform_s8jyv4$=function(t){var n,i=this.atomicOp.isDecided?fr:this.atomicOp;return(e.isType(n=t,ns)?n:a())._state_0.atomicfu$compareAndSet(this,i),null},rs.$metadata$={kind:c,simpleName:"PrepareOp",interfaces:[Fo]},os.prototype.prepare_4uxf5b$=function(t){var e=new rs(this,t);return this.mutex._state_0.atomicfu$compareAndSet(fr,e)?e.perform_s8jyv4$(this.mutex):hr},os.prototype.complete_ayrq83$=function(t,e){var n=null!=e?fr:null==this.owner?mr:new es(this.owner);this.mutex._state_0.atomicfu$compareAndSet(t,n)},os.$metadata$={kind:c,simpleName:"TryLockDesc",interfaces:[Wo]},ns.prototype.holdsLock_za3rmp$=function(t){var n=this._state_0.kotlinx$atomicfu$value;return e.isType(n,es)?n.locked===t:!!e.isType(n,ss)&&n.owner===t},ns.prototype.unlock_s8jyv4$$default=function(t){for(var n=this._state_0;;){var i,o,r=n.kotlinx$atomicfu$value;if(e.isType(r,es)){if(null==t){if(r.locked===_r)throw N("Mutex is not locked".toString())}else if(r.locked!==t){var s="Mutex is locked by "+r.locked.toString()+" but expected "+z(t);throw N(s.toString())}if(this._state_0.atomicfu$compareAndSet(r,fr))return}else if(e.isType(r,Fo))r.perform_s8jyv4$(this);else{if(!e.isType(r,ss))throw N(("Illegal state "+z(r)).toString());if(null!=t&&r.owner!==t){var c="Mutex is locked by "+r.owner.toString()+" but expected "+z(t);throw N(c.toString())}var l=r.removeFirstOrNull();if(null==l){var u=new us(r);if(this._state_0.atomicfu$compareAndSet(r,u)&&null==u.perform_s8jyv4$(this))return}else if((e.isType(i=l,as)?i:a()).tryResumeLockWaiter())return r.owner=null!=(o=l.owner)?o:pr,void l.completeResumeLockWaiter()}}},ns.prototype.toString=function(){for(var t=this._state_0;;){var n=t.kotlinx$atomicfu$value;if(e.isType(n,es))return"Mutex["+n.locked.toString()+"]";if(!e.isType(n,Fo)){if(e.isType(n,ss))return"Mutex["+n.owner.toString()+"]";throw N(("Illegal state "+z(n)).toString())}n.perform_s8jyv4$(this)}},ss.prototype.toString=function(){return"LockedQueue["+this.owner.toString()+"]"},ss.$metadata$={kind:c,simpleName:"LockedQueue",interfaces:[aa]},as.prototype.take=function(){return this.isTaken_0.atomicfu$compareAndSet(!1,!0)},as.prototype.dispose=function(){this.remove()},as.$metadata$={kind:c,simpleName:"LockWaiter",interfaces:[Xe,na]},cs.prototype.tryResumeLockWaiter=function(){return!!this.take()&&null!=this.cont_0.tryResume_i8qury$(d,null,(t=this,e=this.$outer,function(n){return e.unlock_s8jyv4$(t.owner),d}));var t,e},cs.prototype.completeResumeLockWaiter=function(){this.cont_0.completeResume_za3rmp$(o)},cs.prototype.toString=function(){return"LockCont["+z(this.owner)+", "+this.cont_0+"] for "+this.$outer},cs.$metadata$={kind:c,simpleName:"LockCont",interfaces:[as]},ls.prototype.tryResumeLockWaiter=function(){return this.take()&&this.select.trySelect()},ls.prototype.completeResumeLockWaiter=function(){var t,e;Ar(this.block,this.$outer,this.select.completion,(t=this,e=this.$outer,function(n){return e.unlock_s8jyv4$(t.owner),d}))},ls.prototype.toString=function(){return"LockSelect["+z(this.owner)+", "+this.select+"] for "+this.$outer},ls.$metadata$={kind:c,simpleName:"LockSelect",interfaces:[as]},us.prototype.prepare_11rb$=function(t){return this.queue.isEmpty?null:dr},us.prototype.complete_19pj23$=function(t,e){var n=null==e?fr:this.queue;t._state_0.atomicfu$compareAndSet(this,n)},us.$metadata$={kind:c,simpleName:"UnlockOp",interfaces:[Bo]},ns.$metadata$={kind:c,simpleName:"MutexImpl",interfaces:[Wr,ts]},v("kotlinx-coroutines-core.kotlinx.coroutines.sync.withPermit_103m5a$",(function(t,n,i){e.suspendCall(t.acquire(e.coroutineReceiver()));try{return n()}finally{t.release()}})),hs.$metadata$={kind:c,simpleName:"CloseableCoroutineDispatcher",interfaces:[ie]},ds.$metadata$={kind:c,simpleName:"CompletionHandlerBase",interfaces:[na]},ps.$metadata$={kind:c,simpleName:"CancelHandlerBase",interfaces:[]},bs.prototype.afterResume_s8jyv4$=function(t){this.uCont.resumeWith_tl1gpc$(Zt(t,this.uCont))},bs.$metadata$={kind:c,simpleName:"UndispatchedCoroutine",interfaces:[Tr]},Object.defineProperty(Ns.prototype,"Main",{configurable:!0,get:function(){var t;return null!=(t=this.injectedMainDispatcher_0)?t:this.mainDispatcher_0}}),Ns.prototype.injectMain_ox7ct2$=function(t){this.injectedMainDispatcher_0=t},Ns.prototype.resetInjectedMain=function(){this.injectedMainDispatcher_0=null},Ns.$metadata$={kind:w,simpleName:"Dispatchers",interfaces:[]};var Ts,Ls=null;function zs(){return null===Ls&&new Ns,Ls}function ws(t,e){Mn.call(this),this.delegate=t,this.invokeImmediately_0=e,this.immediate_iydbla$_0=this.invokeImmediately_0?this:new ws(this.delegate,!0)}function Os(){return new Rs}function Rs(){Pe.call(this)}function As(){Pe.call(this)}function xs(){throw nt("runBlocking event loop is not supported")}function Is(t,e,n){M(t,e,this),this.job_8be2vx$=n,this.name="JobCancellationException"}function Us(t){return St(t,W,Ts).toInt()}function Ds(){ie.call(this),this.messageQueue_8be2vx$=new Ps(this)}function Ps(t){var e;this.$outer=t,Ks.call(this),this.processQueue_8be2vx$=(e=this,function(){return e.process(),d})}function Ms(){ks=this,Ds.call(this)}Object.defineProperty(ws.prototype,"immediate",{configurable:!0,get:function(){return this.immediate_iydbla$_0}}),ws.prototype.isDispatchNeeded_1fupul$=function(t){return!this.invokeImmediately_0},ws.prototype.dispatch_5bn72i$=function(t,e){this.delegate.dispatch_5bn72i$(t,e)},ws.prototype.dispatchYield_5bn72i$=function(t,e){this.delegate.dispatchYield_5bn72i$(t,e)},ws.prototype.toString=function(){var t;return null!=(t=this.toStringInternalImpl())?t:this.delegate.toString()},ws.$metadata$={kind:c,simpleName:"JsMainDispatcher",interfaces:[Mn]},Rs.prototype.dispatch_5bn72i$=function(t,e){xs()},Rs.$metadata$={kind:c,simpleName:"UnconfinedEventLoop",interfaces:[Pe]},As.prototype.unpark_0=function(){xs()},As.prototype.reschedule_0=function(t,e){xs()},As.$metadata$={kind:c,simpleName:"EventLoopImplPlatform",interfaces:[Pe]},Is.prototype.toString=function(){return J.prototype.toString.call(this)+"; job="+this.job_8be2vx$},Is.prototype.equals=function(t){return t===this||e.isType(t,Is)&&S(t.message,this.message)&&S(t.job_8be2vx$,this.job_8be2vx$)&&S(t.cause,this.cause)},Is.prototype.hashCode=function(){var t,e;return(31*((31*lt(V(this.message))|0)+lt(this.job_8be2vx$)|0)|0)+(null!=(e=null!=(t=this.cause)?lt(t):null)?e:0)|0},Is.$metadata$={kind:c,simpleName:"JobCancellationException",interfaces:[J]},Ps.prototype.schedule=function(){this.$outer.scheduleQueueProcessing()},Ps.prototype.reschedule=function(){setTimeout(this.processQueue_8be2vx$,0)},Ps.$metadata$={kind:c,simpleName:"ScheduledMessageQueue",interfaces:[Ks]},Ds.prototype.limitedParallelism_za3lpa$=function(t){return er(t),this},Ds.prototype.dispatch_5bn72i$=function(t,e){this.messageQueue_8be2vx$.enqueue_771g0p$(e)},Ds.prototype.invokeOnTimeout_oczv3n$=function(t,e,n){var i;return new Bs(setTimeout((i=e,function(){return i.run(),d}),Us(t)))},Ds.prototype.scheduleResumeAfterDelay_egqmvs$=function(t,e){var n,i,o=setTimeout((n=e,i=this,function(){return n.resumeUndispatched_hyuxa3$(i,d),d}),Us(t));e.invokeOnCancellation_f05bi3$(new Bs(o))},Ds.$metadata$={kind:c,simpleName:"SetTimeoutBasedDispatcher",interfaces:[Ue,ie]},Ms.prototype.scheduleQueueProcessing=function(){i.nextTick(this.messageQueue_8be2vx$.processQueue_8be2vx$)},Ms.$metadata$={kind:w,simpleName:"NodeDispatcher",interfaces:[Ds]};var ks=null;function js(){return null===ks&&new Ms,ks}function Gs(){qs=this,Ds.call(this)}Gs.prototype.scheduleQueueProcessing=function(){setTimeout(this.messageQueue_8be2vx$.processQueue_8be2vx$,0)},Gs.$metadata$={kind:w,simpleName:"SetTimeoutDispatcher",interfaces:[Ds]};var qs=null;function Fs(){return null===qs&&new Gs,qs}function Bs(t){Ft.call(this),this.handle_0=t}function Ws(t){ie.call(this),this.window_0=t,this.queue_0=new Vs(this.window_0)}function Hs(t,e){this.this$WindowDispatcher=t,this.closure$handle=e}function Vs(t){var e;Ks.call(this),this.window_0=t,this.messageName_0="dispatchCoroutine",this.window_0.addEventListener("message",(e=this,function(t){return t.source==e.window_0&&t.data==e.messageName_0&&(t.stopPropagation(),e.process()),d}),!0)}function Ks(){qo.call(this),this.yieldEvery=16,this.scheduled_0=!1}function Xs(){}function Js(){}function Ys(t){}function Qs(t){var e,n;if(null!=(e=t.coroutineDispatcher))n=e;else{var i=new Ws(t);t.coroutineDispatcher=i,n=i}return n}function Zs(t){R("Flow was aborted, no more elements needed",this),this.owner=t,this.name="AbortFlowException"}function ta(){}function ea(t){return vt(t)}function na(){this._next=this,this._prev=this,this._removed=!1}function ia(t,e){ra.call(this),this.queue=t,this.node=e}function oa(t){ra.call(this),this.queue=t,this.affectedNode_rjf1fm$_0=this.queue._next}function ra(){Wo.call(this)}function sa(t,e,n){Fo.call(this),this.affected=t,this.desc=e,this.atomicOp_khy6pf$_0=n}function aa(){na.call(this)}function ca(t,e){return t}function la(t){return t}function ua(t){return t}function ha(){}function da(t,e){}function pa(t){return null}function _a(t){return 0}function ma(){this.value_0=null}Bs.prototype.dispose=function(){clearTimeout(this.handle_0)},Bs.prototype.invoke=function(t){this.dispose()},Bs.prototype.toString=function(){return"ClearTimeout["+this.handle_0+"]"},Bs.$metadata$={kind:c,simpleName:"ClearTimeout",interfaces:[Xe,Ft]},Ws.prototype.dispatch_5bn72i$=function(t,e){this.queue_0.enqueue_771g0p$(e)},Ws.prototype.scheduleResumeAfterDelay_egqmvs$=function(t,e){var n,i;this.window_0.setTimeout((n=e,i=this,function(){return n.resumeUndispatched_hyuxa3$(i,d),d}),Us(t))},Hs.prototype.dispose=function(){this.this$WindowDispatcher.window_0.clearTimeout(this.closure$handle)},Hs.$metadata$={kind:c,interfaces:[Xe]},Ws.prototype.invokeOnTimeout_oczv3n$=function(t,e,n){var i;return new Hs(this,this.window_0.setTimeout((i=e,function(){return i.run(),d}),Us(t)))},Ws.$metadata$={kind:c,simpleName:"WindowDispatcher",interfaces:[Ue,ie]},Vs.prototype.schedule=function(){var t;Promise.resolve(d).then((t=this,function(e){return t.process(),d}))},Vs.prototype.reschedule=function(){this.window_0.postMessage(this.messageName_0,"*")},Vs.$metadata$={kind:c,simpleName:"WindowMessageQueue",interfaces:[Ks]},Ks.prototype.enqueue_771g0p$=function(t){this.addLast_trkh7z$(t),this.scheduled_0||(this.scheduled_0=!0,this.schedule())},Ks.prototype.process=function(){try{for(var t=this.yieldEvery,e=0;e(o>>1)-1?(o>>1)-c:c,r.isubn(a)):a=0,i[s]=a,r.iushrn(1)}return i},i.getJSF=function(t,e){var n=[[],[]];t=t.clone(),e=e.clone();for(var i,o=0,r=0;t.cmpn(-o)>0||e.cmpn(-r)>0;){var s,a,c=t.andln(3)+o&3,l=e.andln(3)+r&3;3===c&&(c=-1),3===l&&(l=-1),s=0==(1&c)?0:3!==(i=t.andln(7)+o&7)&&5!==i||2!==l?c:-c,n[0].push(s),a=0==(1&l)?0:3!==(i=e.andln(7)+r&7)&&5!==i||2!==c?l:-l,n[1].push(a),2*o===s+1&&(o=1-o),2*r===a+1&&(r=1-r),t.iushrn(1),e.iushrn(1)}return n},i.cachedProperty=function(t,e,n){var i="_"+e;t.prototype[e]=function(){return void 0!==this[i]?this[i]:this[i]=n.call(this)}},i.parseBytes=function(t){return"string"==typeof t?i.toArray(t,"hex"):t},i.intFromLE=function(t){return new o(t,"hex","le")}},function(t,e,n){"use strict";var i=n(33),o=i.Map,r=i.OrderedSet,s=i.Record,a=r(),c={style:a,entity:null},l=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var s=i.prototype;return s.getStyle=function(){return this.get("style")},s.getEntity=function(){return this.get("entity")},s.hasStyle=function(t){return this.getStyle().includes(t)},i.applyStyle=function(t,e){var n=t.set("style",t.getStyle().add(e));return i.create(n)},i.removeStyle=function(t,e){var n=t.set("style",t.getStyle().remove(e));return i.create(n)},i.applyEntity=function(t,e){var n=t.getEntity()===e?t:t.set("entity",e);return i.create(n)},i.create=function(t){if(!t)return u;var e=o({style:a,entity:null}).merge(t),n=h.get(e);if(n)return n;var r=new i(e);return h=h.set(e,r),r},i.fromJS=function(t){var e=t.style,n=t.entity;return new i({style:Array.isArray(e)?r(e):e,entity:Array.isArray(n)?r(n):n})},i}(s(c)),u=new l,h=o([[o(c),u]]);l.EMPTY=u,t.exports=l},function(t,e,n){"use strict";var i=n(88),o=n(256),r=n(33),s=r.List,a=r.Map,c=r.OrderedSet,l=r.Record,u=r.Repeat,h=c(),d={parent:null,characterList:s(),data:a(),depth:0,key:"",text:"",type:"unstyled",children:s(),prevSibling:null,nextSibling:null},p=function(t,e){return t.getStyle()===e.getStyle()},_=function(t,e){return t.getEntity()===e.getEntity()},m=function(t){if(!t)return t;var e=t.characterList,n=t.text;return n&&!e&&(t.characterList=s(u(i.EMPTY,n.length))),t},f=function(t){var e,n;function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:d;return t.call(this,m(e))||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var r=i.prototype;return r.getKey=function(){return this.get("key")},r.getType=function(){return this.get("type")},r.getText=function(){return this.get("text")},r.getCharacterList=function(){return this.get("characterList")},r.getLength=function(){return this.getText().length},r.getDepth=function(){return this.get("depth")},r.getData=function(){return this.get("data")},r.getInlineStyleAt=function(t){var e=this.getCharacterList().get(t);return e?e.getStyle():h},r.getEntityAt=function(t){var e=this.getCharacterList().get(t);return e?e.getEntity():null},r.getChildKeys=function(){return this.get("children")},r.getParentKey=function(){return this.get("parent")},r.getPrevSiblingKey=function(){return this.get("prevSibling")},r.getNextSiblingKey=function(){return this.get("nextSibling")},r.findStyleRanges=function(t,e){o(this.getCharacterList(),p,t,e)},r.findEntityRanges=function(t,e){o(this.getCharacterList(),_,t,e)},i}(l(d));t.exports=f},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n(0);const o=i.createContext(null)},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiListItem",t)}const s=Object(o.a)("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiListItemButton",t)}const s=Object(o.a)("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);e.a=s},function(t,e,n){"use strict";var i=n(1),o=n(5),r=n(0),s=n(4),a=n(18),c=n(3),l=n(7),u=n(21),h=n(43),d=n(134),p=n(1060),_=n(54),m=n(2);var f=function(t){const{className:e,classes:n,pulsate:i=!1,rippleX:o,rippleY:a,rippleSize:c,in:l,onExited:u,timeout:h}=t,[d,p]=r.useState(!1),_=Object(s.a)(e,n.ripple,n.rippleVisible,i&&n.ripplePulsate),f={width:c,height:c,top:-c/2+a,left:-c/2+o},g=Object(s.a)(n.child,d&&n.childLeaving,i&&n.childPulsate);return l||d||p(!0),r.useEffect(()=>{if(!l&&null!=u){const t=setTimeout(u,h);return()=>{clearTimeout(t)}}},[u,l,h]),Object(m.jsx)("span",{className:_,style:f,children:Object(m.jsx)("span",{className:g})})},g=n(63);const $=["center","classes","className"];let E,y,b,S,v=t=>t;const C=Object(_.c)(E||(E=v` 0% { transform: scale(0); opacity: 0.1; } 100% { transform: scale(1); opacity: 0.3; } `)),N=Object(_.c)(y||(y=v` 0% { opacity: 1; } 100% { opacity: 0; } `)),T=Object(_.c)(b||(b=v` 0% { transform: scale(1); } 50% { transform: scale(0.92); } 100% { transform: scale(1); } `)),L=Object(c.a)("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),z=Object(c.a)(f,{name:"MuiTouchRipple",slot:"Ripple"})(S||(S=v` opacity: 0; position: absolute; &.${0} { opacity: 0.3; transform: scale(1); animation-name: ${0}; animation-duration: ${0}ms; animation-timing-function: ${0}; } &.${0} { animation-duration: ${0}ms; } & .${0} { opacity: 1; display: block; width: 100%; height: 100%; border-radius: 50%; background-color: currentColor; } & .${0} { opacity: 0; animation-name: ${0}; animation-duration: ${0}ms; animation-timing-function: ${0}; } & .${0} { position: absolute; /* @noflip */ left: 0px; top: 0; animation-name: ${0}; animation-duration: 2500ms; animation-timing-function: ${0}; animation-iteration-count: infinite; animation-delay: 200ms; } `),g.a.rippleVisible,C,550,({theme:t})=>t.transitions.easing.easeInOut,g.a.ripplePulsate,({theme:t})=>t.transitions.duration.shorter,g.a.child,g.a.childLeaving,N,550,({theme:t})=>t.transitions.easing.easeInOut,g.a.childPulsate,T,({theme:t})=>t.transitions.easing.easeInOut);var w=r.forwardRef((function(t,e){const n=Object(l.a)({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:c={},className:u}=n,h=Object(o.a)(n,$),[d,_]=r.useState([]),f=r.useRef(0),E=r.useRef(null);r.useEffect(()=>{E.current&&(E.current(),E.current=null)},[d]);const y=r.useRef(!1),b=r.useRef(null),S=r.useRef(null),v=r.useRef(null);r.useEffect(()=>()=>{clearTimeout(b.current)},[]);const C=r.useCallback(t=>{const{pulsate:e,rippleX:n,rippleY:i,rippleSize:o,cb:r}=t;_(t=>[...t,Object(m.jsx)(z,{classes:{ripple:Object(s.a)(c.ripple,g.a.ripple),rippleVisible:Object(s.a)(c.rippleVisible,g.a.rippleVisible),ripplePulsate:Object(s.a)(c.ripplePulsate,g.a.ripplePulsate),child:Object(s.a)(c.child,g.a.child),childLeaving:Object(s.a)(c.childLeaving,g.a.childLeaving),childPulsate:Object(s.a)(c.childPulsate,g.a.childPulsate)},timeout:550,pulsate:e,rippleX:n,rippleY:i,rippleSize:o},f.current)]),f.current+=1,E.current=r},[c]),N=r.useCallback((t={},e={},n)=>{const{pulsate:i=!1,center:o=a||e.pulsate,fakeElement:r=!1}=e;if("mousedown"===(null==t?void 0:t.type)&&y.current)return void(y.current=!1);"touchstart"===(null==t?void 0:t.type)&&(y.current=!0);const s=r?null:v.current,c=s?s.getBoundingClientRect():{width:0,height:0,left:0,top:0};let l,u,h;if(o||void 0===t||0===t.clientX&&0===t.clientY||!t.clientX&&!t.touches)l=Math.round(c.width/2),u=Math.round(c.height/2);else{const{clientX:e,clientY:n}=t.touches&&t.touches.length>0?t.touches[0]:t;l=Math.round(e-c.left),u=Math.round(n-c.top)}if(o)h=Math.sqrt((2*c.width**2+c.height**2)/3),h%2==0&&(h+=1);else{const t=2*Math.max(Math.abs((s?s.clientWidth:0)-l),l)+2,e=2*Math.max(Math.abs((s?s.clientHeight:0)-u),u)+2;h=Math.sqrt(t**2+e**2)}null!=t&&t.touches?null===S.current&&(S.current=()=>{C({pulsate:i,rippleX:l,rippleY:u,rippleSize:h,cb:n})},b.current=setTimeout(()=>{S.current&&(S.current(),S.current=null)},80)):C({pulsate:i,rippleX:l,rippleY:u,rippleSize:h,cb:n})},[a,C]),T=r.useCallback(()=>{N({},{pulsate:!0})},[N]),w=r.useCallback((t,e)=>{if(clearTimeout(b.current),"touchend"===(null==t?void 0:t.type)&&S.current)return S.current(),S.current=null,void(b.current=setTimeout(()=>{w(t,e)}));S.current=null,_(t=>t.length>0?t.slice(1):t),E.current=e},[]);return r.useImperativeHandle(e,()=>({pulsate:T,start:N,stop:w}),[T,N,w]),Object(m.jsx)(L,Object(i.a)({className:Object(s.a)(g.a.root,c.root,u),ref:v},h,{children:Object(m.jsx)(p.a,{component:null,exit:!0,children:d})}))})),O=n(163);const R=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],A=Object(c.a)("button",{name:"MuiButtonBase",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"inline-flex",alignItems:"center",justifyContent:"center",position:"relative",boxSizing:"border-box",WebkitTapHighlightColor:"transparent",backgroundColor:"transparent",outline:0,border:0,margin:0,borderRadius:0,padding:0,cursor:"pointer",userSelect:"none",verticalAlign:"middle",MozAppearance:"none",WebkitAppearance:"none",textDecoration:"none",color:"inherit","&::-moz-focus-inner":{borderStyle:"none"},["&."+O.a.disabled]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),x=r.forwardRef((function(t,e){const n=Object(l.a)({props:t,name:"MuiButtonBase"}),{action:c,centerRipple:p=!1,children:_,className:f,component:g="button",disabled:$=!1,disableRipple:E=!1,disableTouchRipple:y=!1,focusRipple:b=!1,LinkComponent:S="a",onBlur:v,onClick:C,onContextMenu:N,onDragLeave:T,onFocus:L,onFocusVisible:z,onKeyDown:x,onKeyUp:I,onMouseDown:U,onMouseLeave:D,onMouseUp:P,onTouchEnd:M,onTouchMove:k,onTouchStart:j,tabIndex:G=0,TouchRippleProps:q,touchRippleRef:F,type:B}=n,W=Object(o.a)(n,R),H=r.useRef(null),V=r.useRef(null),K=Object(u.a)(V,F),{isFocusVisibleRef:X,onFocus:J,onBlur:Y,ref:Q}=Object(d.a)(),[Z,tt]=r.useState(!1);$&&Z&&tt(!1),r.useImperativeHandle(c,()=>({focusVisible:()=>{tt(!0),H.current.focus()}}),[]);const[et,nt]=r.useState(!1);r.useEffect(()=>{nt(!0)},[]);const it=et&&!E&&!$;function ot(t,e,n=y){return Object(h.a)(i=>{e&&e(i);return!n&&V.current&&V.current[t](i),!0})}r.useEffect(()=>{Z&&b&&!E&&et&&V.current.pulsate()},[E,b,Z,et]);const rt=ot("start",U),st=ot("stop",N),at=ot("stop",T),ct=ot("stop",P),lt=ot("stop",t=>{Z&&t.preventDefault(),D&&D(t)}),ut=ot("start",j),ht=ot("stop",M),dt=ot("stop",k),pt=ot("stop",t=>{Y(t),!1===X.current&&tt(!1),v&&v(t)},!1),_t=Object(h.a)(t=>{H.current||(H.current=t.currentTarget),J(t),!0===X.current&&(tt(!0),z&&z(t)),L&&L(t)}),mt=()=>{const t=H.current;return g&&"button"!==g&&!("A"===t.tagName&&t.href)},ft=r.useRef(!1),gt=Object(h.a)(t=>{b&&!ft.current&&Z&&V.current&&" "===t.key&&(ft.current=!0,V.current.stop(t,()=>{V.current.start(t)})),t.target===t.currentTarget&&mt()&&" "===t.key&&t.preventDefault(),x&&x(t),t.target===t.currentTarget&&mt()&&"Enter"===t.key&&!$&&(t.preventDefault(),C&&C(t))}),$t=Object(h.a)(t=>{b&&" "===t.key&&V.current&&Z&&!t.defaultPrevented&&(ft.current=!1,V.current.stop(t,()=>{V.current.pulsate(t)})),I&&I(t),C&&t.target===t.currentTarget&&mt()&&" "===t.key&&!t.defaultPrevented&&C(t)});let Et=g;"button"===Et&&(W.href||W.to)&&(Et=S);const yt={};"button"===Et?(yt.type=void 0===B?"button":B,yt.disabled=$):(W.href||W.to||(yt.role="button"),$&&(yt["aria-disabled"]=$));const bt=Object(u.a)(Q,H),St=Object(u.a)(e,bt);const vt=Object(i.a)({},n,{centerRipple:p,component:g,disabled:$,disableRipple:E,disableTouchRipple:y,focusRipple:b,tabIndex:G,focusVisible:Z}),Ct=(t=>{const{disabled:e,focusVisible:n,focusVisibleClassName:i,classes:o}=t,r={root:["root",e&&"disabled",n&&"focusVisible"]},s=Object(a.a)(r,O.b,o);return n&&i&&(s.root+=" "+i),s})(vt);return Object(m.jsxs)(A,Object(i.a)({as:Et,className:Object(s.a)(Ct.root,f),ownerState:vt,onBlur:pt,onClick:C,onContextMenu:st,onFocus:_t,onKeyDown:gt,onKeyUp:$t,onMouseDown:rt,onMouseLeave:lt,onMouseUp:ct,onDragLeave:at,onTouchEnd:ht,onTouchMove:dt,onTouchStart:ut,ref:St,tabIndex:$?-1:G,type:B},yt,W,{children:[_,it?Object(m.jsx)(w,Object(i.a)({ref:K,center:p},q)):null]}))}));e.a=x},function(t,e,n){"use strict";var i=n(739);e.a=i.a},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiNativeSelect",t)}const s=Object(o.a)("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiGrid",t)}const s=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],a=Object(o.a)("MuiGrid",["root","container","item","zeroMinWidth",...[0,1,2,3,4,5,6,7,8,9,10].map(t=>"spacing-xs-"+t),...["column-reverse","column","row-reverse","row"].map(t=>"direction-xs-"+t),...["nowrap","wrap-reverse","wrap"].map(t=>"wrap-xs-"+t),...s.map(t=>"grid-xs-"+t),...s.map(t=>"grid-sm-"+t),...s.map(t=>"grid-md-"+t),...s.map(t=>"grid-lg-"+t),...s.map(t=>"grid-xl-"+t)]);e.a=a},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiFormLabel",t)}const s=Object(o.a)("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiMenuItem",t)}const s=Object(o.a)("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]);e.a=s},function(t,e,n){"use strict";n.d(e,"a",(function(){return i})),n.d(e,"b",(function(){return o}));function i(t,e,n){var i="";return n.split(" ").forEach((function(n){void 0!==t[n]?e.push(t[n]+";"):i+=n+" "})),i}var o=function(t,e,n){!function(t,e,n){var i=t.key+"-"+e.name;!1===n&&void 0===t.registered[i]&&(t.registered[i]=e.styles)}(t,e,n);var i=t.key+"-"+e.name;if(void 0===t.inserted[e.name]){var o=e;do{t.insert(e===o?"."+i:"",o,t.sheet,!0);o=o.next}while(void 0!==o)}}},function(t,e,n){"use strict";n.d(e,"b",(function(){return _}));var i=n(5),o=n(1),r=n(0),s=n(4),a=n(18),c=n(28),l=n(3),u=n(7),h=n(190),d=n(2);const p=["className","component","elevation","square","variant"],_=t=>{let e;return e=t<1?5.11916*t**2:4.5*Math.log(t+1)+2,(e/100).toFixed(2)},m=Object(l.a)("div",{name:"MuiPaper",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],!n.square&&e.rounded,"elevation"===n.variant&&e["elevation"+n.elevation]]}})(({theme:t,ownerState:e})=>{var n;return Object(o.a)({backgroundColor:(t.vars||t).palette.background.paper,color:(t.vars||t).palette.text.primary,transition:t.transitions.create("box-shadow")},!e.square&&{borderRadius:t.shape.borderRadius},"outlined"===e.variant&&{border:"1px solid "+(t.vars||t).palette.divider},"elevation"===e.variant&&Object(o.a)({boxShadow:(t.vars||t).shadows[e.elevation]},!t.vars&&"dark"===t.palette.mode&&{backgroundImage:`linear-gradient(${Object(c.a)("#fff",_(e.elevation))}, ${Object(c.a)("#fff",_(e.elevation))})`},t.vars&&{backgroundImage:null==(n=t.vars.overlays)?void 0:n[e.elevation]}))}),f=r.forwardRef((function(t,e){const n=Object(u.a)({props:t,name:"MuiPaper"}),{className:r,component:c="div",elevation:l=1,square:_=!1,variant:f="elevation"}=n,g=Object(i.a)(n,p),$=Object(o.a)({},n,{component:c,elevation:l,square:_,variant:f}),E=(t=>{const{square:e,elevation:n,variant:i,classes:o}=t,r={root:["root",i,!e&&"rounded","elevation"===i&&"elevation"+n]};return Object(a.a)(r,h.b,o)})($);return Object(d.jsx)(m,Object(o.a)({as:c,ownerState:$,className:Object(s.a)(E.root,r),ref:e},g))}));e.a=f},function(t,e,n){"use strict";e.a=function(t){return"string"==typeof t}},function(t,e,n){"use strict";var i=n(86),o=n(20);function r(t,e){return 55296==(64512&t.charCodeAt(e))&&(!(e<0||e+1>=t.length)&&56320==(64512&t.charCodeAt(e+1)))}function s(t){return(t>>>24|t>>>8&65280|t<<8&16711680|(255&t)<<24)>>>0}function a(t){return 1===t.length?"0"+t:t}function c(t){return 7===t.length?"0"+t:6===t.length?"00"+t:5===t.length?"000"+t:4===t.length?"0000"+t:3===t.length?"00000"+t:2===t.length?"000000"+t:1===t.length?"0000000"+t:t}e.inherits=o,e.toArray=function(t,e){if(Array.isArray(t))return t.slice();if(!t)return[];var n=[];if("string"==typeof t)if(e){if("hex"===e)for((t=t.replace(/[^a-z0-9]+/gi,"")).length%2!=0&&(t="0"+t),o=0;o>6|192,n[i++]=63&s|128):r(t,o)?(s=65536+((1023&s)<<10)+(1023&t.charCodeAt(++o)),n[i++]=s>>18|240,n[i++]=s>>12&63|128,n[i++]=s>>6&63|128,n[i++]=63&s|128):(n[i++]=s>>12|224,n[i++]=s>>6&63|128,n[i++]=63&s|128)}else for(o=0;o>>0}return s},e.split32=function(t,e){for(var n=new Array(4*t.length),i=0,o=0;i>>24,n[o+1]=r>>>16&255,n[o+2]=r>>>8&255,n[o+3]=255&r):(n[o+3]=r>>>24,n[o+2]=r>>>16&255,n[o+1]=r>>>8&255,n[o]=255&r)}return n},e.rotr32=function(t,e){return t>>>e|t<<32-e},e.rotl32=function(t,e){return t<>>32-e},e.sum32=function(t,e){return t+e>>>0},e.sum32_3=function(t,e,n){return t+e+n>>>0},e.sum32_4=function(t,e,n,i){return t+e+n+i>>>0},e.sum32_5=function(t,e,n,i,o){return t+e+n+i+o>>>0},e.sum64=function(t,e,n,i){var o=t[e],r=i+t[e+1]>>>0,s=(r>>0,t[e+1]=r},e.sum64_hi=function(t,e,n,i){return(e+i>>>0>>0},e.sum64_lo=function(t,e,n,i){return e+i>>>0},e.sum64_4_hi=function(t,e,n,i,o,r,s,a){var c=0,l=e;return c+=(l=l+i>>>0)>>0)>>0)>>0},e.sum64_4_lo=function(t,e,n,i,o,r,s,a){return e+i+r+a>>>0},e.sum64_5_hi=function(t,e,n,i,o,r,s,a,c,l){var u=0,h=e;return u+=(h=h+i>>>0)>>0)>>0)>>0)>>0},e.sum64_5_lo=function(t,e,n,i,o,r,s,a,c,l){return e+i+r+a+l>>>0},e.rotr64_hi=function(t,e,n){return(e<<32-n|t>>>n)>>>0},e.rotr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0},e.shr64_hi=function(t,e,n){return t>>>n},e.shr64_lo=function(t,e,n){return(t<<32-n|e>>>n)>>>0}},function(t,e,n){"use strict";var i={},o=Math.pow(2,24);t.exports=function(){for(var t;void 0===t||i.hasOwnProperty(t)||!isNaN(+t);)t=Math.floor(Math.random()*o).toString(32);return i[t]=!0,t}},function(t,e,n){"use strict";n.d(e,"a",(function(){return w}));var i=n(1),o=n(5),r=n(274),s=n(227),a=n(1030);var c=n(28),l=n(144),u=n(331),h=n(121),d=n(122),p=n(145),_=n(120),m=n(123),f=n(124);const g=["mode","contrastThreshold","tonalOffset"],$={text:{primary:"rgba(0, 0, 0, 0.87)",secondary:"rgba(0, 0, 0, 0.6)",disabled:"rgba(0, 0, 0, 0.38)"},divider:"rgba(0, 0, 0, 0.12)",background:{paper:l.a.white,default:l.a.white},action:{active:"rgba(0, 0, 0, 0.54)",hover:"rgba(0, 0, 0, 0.04)",hoverOpacity:.04,selected:"rgba(0, 0, 0, 0.08)",selectedOpacity:.08,disabled:"rgba(0, 0, 0, 0.26)",disabledBackground:"rgba(0, 0, 0, 0.12)",disabledOpacity:.38,focus:"rgba(0, 0, 0, 0.12)",focusOpacity:.12,activatedOpacity:.12}},E={text:{primary:l.a.white,secondary:"rgba(255, 255, 255, 0.7)",disabled:"rgba(255, 255, 255, 0.5)",icon:"rgba(255, 255, 255, 0.5)"},divider:"rgba(255, 255, 255, 0.12)",background:{paper:"#121212",default:"#121212"},action:{active:l.a.white,hover:"rgba(255, 255, 255, 0.08)",hoverOpacity:.08,selected:"rgba(255, 255, 255, 0.16)",selectedOpacity:.16,disabled:"rgba(255, 255, 255, 0.3)",disabledBackground:"rgba(255, 255, 255, 0.12)",disabledOpacity:.38,focus:"rgba(255, 255, 255, 0.12)",focusOpacity:.12,activatedOpacity:.24}};function y(t,e,n,i){const o=i.light||i,r=i.dark||1.5*i;t[e]||(t.hasOwnProperty(n)?t[e]=t[n]:"light"===e?t.light=Object(c.j)(t.main,o):"dark"===e&&(t.dark=Object(c.c)(t.main,r)))}function b(t){const{mode:e="light",contrastThreshold:n=3,tonalOffset:a=.2}=t,b=Object(o.a)(t,g),S=t.primary||function(t="light"){return"dark"===t?{main:_.a[200],light:_.a[50],dark:_.a[400]}:{main:_.a[700],light:_.a[400],dark:_.a[800]}}(e),v=t.secondary||function(t="light"){return"dark"===t?{main:h.a[200],light:h.a[50],dark:h.a[400]}:{main:h.a[500],light:h.a[300],dark:h.a[700]}}(e),C=t.error||function(t="light"){return"dark"===t?{main:d.a[500],light:d.a[300],dark:d.a[700]}:{main:d.a[700],light:d.a[400],dark:d.a[800]}}(e),N=t.info||function(t="light"){return"dark"===t?{main:m.a[400],light:m.a[300],dark:m.a[700]}:{main:m.a[700],light:m.a[500],dark:m.a[900]}}(e),T=t.success||function(t="light"){return"dark"===t?{main:f.a[400],light:f.a[300],dark:f.a[700]}:{main:f.a[800],light:f.a[500],dark:f.a[900]}}(e),L=t.warning||function(t="light"){return"dark"===t?{main:p.a[400],light:p.a[300],dark:p.a[700]}:{main:"#ed6c02",light:p.a[500],dark:p.a[900]}}(e);function z(t){return Object(c.f)(t,E.text.primary)>=n?E.text.primary:$.text.primary}const w=({color:t,name:e,mainShade:n=500,lightShade:o=300,darkShade:s=700})=>{if(!(t=Object(i.a)({},t)).main&&t[n]&&(t.main=t[n]),!t.hasOwnProperty("main"))throw new Error(Object(r.a)(11,e?` (${e})`:"",n));if("string"!=typeof t.main)throw new Error(Object(r.a)(12,e?` (${e})`:"",JSON.stringify(t.main)));return y(t,"light",o,a),y(t,"dark",s,a),t.contrastText||(t.contrastText=z(t.main)),t},O={dark:E,light:$};return Object(s.a)(Object(i.a)({common:Object(i.a)({},l.a),mode:e,primary:w({color:S,name:"primary"}),secondary:w({color:v,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:w({color:C,name:"error"}),warning:w({color:L,name:"warning"}),info:w({color:N,name:"info"}),success:w({color:T,name:"success"}),grey:u.a,contrastThreshold:n,getContrastText:z,augmentColor:w,tonalOffset:a},O[e]),b)}var S=n(336);function v(...t){return[`${t[0]}px ${t[1]}px ${t[2]}px ${t[3]}px rgba(0,0,0,0.2)`,`${t[4]}px ${t[5]}px ${t[6]}px ${t[7]}px rgba(0,0,0,0.14)`,`${t[8]}px ${t[9]}px ${t[10]}px ${t[11]}px rgba(0,0,0,0.12)`].join(",")}var C=["none",v(0,2,1,-1,0,1,1,0,0,1,3,0),v(0,3,1,-2,0,2,2,0,0,1,5,0),v(0,3,3,-2,0,3,4,0,0,1,8,0),v(0,2,4,-1,0,4,5,0,0,1,10,0),v(0,3,5,-1,0,5,8,0,0,1,14,0),v(0,3,5,-1,0,6,10,0,0,1,18,0),v(0,4,5,-2,0,7,10,1,0,2,16,1),v(0,5,5,-3,0,8,10,1,0,3,14,2),v(0,5,6,-3,0,9,12,1,0,3,16,2),v(0,6,6,-3,0,10,14,1,0,4,18,3),v(0,6,7,-4,0,11,15,1,0,4,20,3),v(0,7,8,-4,0,12,17,2,0,5,22,4),v(0,7,8,-4,0,13,19,2,0,5,24,4),v(0,7,9,-4,0,14,21,2,0,5,26,4),v(0,8,9,-5,0,15,22,2,0,6,28,5),v(0,8,10,-5,0,16,24,2,0,6,30,5),v(0,8,11,-5,0,17,26,2,0,6,32,5),v(0,9,11,-5,0,18,28,2,0,7,34,6),v(0,9,12,-6,0,19,29,2,0,7,36,6),v(0,10,13,-6,0,20,31,3,0,8,38,7),v(0,10,13,-6,0,21,33,3,0,8,40,7),v(0,10,14,-6,0,22,35,3,0,8,42,7),v(0,11,14,-7,0,23,36,3,0,9,44,8),v(0,11,15,-7,0,24,38,3,0,9,46,8)],N=n(162);var T={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};const L=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function z(t={},...e){const{mixins:n={},palette:c={},transitions:l={},typography:u={}}=t,h=Object(o.a)(t,L);if(t.vars)throw new Error(Object(r.a)(18));const d=b(c),p=Object(a.a)(t);let _=Object(s.a)(p,{mixins:(m=p.breakpoints,f=n,Object(i.a)({toolbar:{minHeight:56,[m.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[m.up("sm")]:{minHeight:64}}},f)),palette:d,shadows:C.slice(),typography:Object(S.a)(d,u),transitions:Object(N.a)(l),zIndex:Object(i.a)({},T)});var m,f;return _=Object(s.a)(_,h),_=e.reduce((t,e)=>Object(s.a)(t,e),_),_}function w(...t){return z(...t)}e.b=z},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiButton",t)}const s=Object(o.a)("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiListItemText",t)}const s=Object(o.a)("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);e.a=s},function(t,e,n){"use strict";var i=n(0);const o=i.createContext();e.a=o},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiSelect",t)}const s=Object(o.a)("MuiSelect",["select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput"]);e.a=s},function(t,e,n){"use strict";var i=n(227);e.a=function(t,e){return e?Object(i.a)(t,e,{clone:!1}):t}},function(t,e,n){"use strict";function i(t){return String(parseFloat(t)).length===String(t).length}function o(t){return String(t).match(/[\d.\-+]*\s*(.*)/)[1]||""}function r(t){return parseFloat(t)}function s(t){return(e,n)=>{const i=o(e);if(i===n)return e;let s=r(e);"px"!==i&&("em"===i||"rem"===i)&&(s=r(e)*r(t));let a=s;if("px"!==n)if("em"===n)a=s/r(t);else{if("rem"!==n)return e;a=s/r(t)}return parseFloat(a.toFixed(5))+n}}function a({size:t,grid:e}){const n=t-t%e,i=n+e;return t-n{let o=e+a*n;null!==r&&(o=r(o)),s[`@media (min-width:${n}px)`]={[t]:`${Math.round(1e4*o)/1e4}${i}`}}),s}n.d(e,"e",(function(){return i})),n.d(e,"d",(function(){return o})),n.d(e,"g",(function(){return r})),n.d(e,"b",(function(){return s})),n.d(e,"a",(function(){return a})),n.d(e,"c",(function(){return c})),n.d(e,"f",(function(){return l}))},function(t,e,n){"use strict";function i(t){return t&&t.ownerDocument||document}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";var i={encode:function(t,e,n){return t+"-"+e+"-"+n},decode:function(t){var e=t.split("-").reverse(),n=e[0],i=e[1];return{blockKey:e.slice(2).reverse().join("-"),decoratorKey:parseInt(i,10),leafKey:parseInt(n,10)}}};t.exports=i},function(t,e,n){"use strict";var i=n(60);n.d(e,"b",(function(){return i.a})),n.d(e,"a",(function(){return i.b}))},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiDialog",t)}const s=Object(o.a)("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]);e.a=s},function(t,e,n){"use strict";var i=n(419);e.a=i.a},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiTabs",t)}const s=Object(o.a)("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]);e.a=s},function(t,e,n){"use strict";var i=n(1030),o=n(417);const r=Object(i.a)();e.a=function(t=r){return Object(o.a)(t)}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r})),n.d(e,"b",(function(){return s}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiPickersToolbar",t)}const s=Object(o.a)("MuiPickersToolbar",["root","content","penIconButton","penIconButtonLandscape"])},function(t,e,n){"use strict";n.d(e,"a",(function(){return m}));var i=function(t){for(var e,n=0,i=0,o=t.length;o>=4;++i,o-=4)e=1540483477*(65535&(e=255&t.charCodeAt(i)|(255&t.charCodeAt(++i))<<8|(255&t.charCodeAt(++i))<<16|(255&t.charCodeAt(++i))<<24))+(59797*(e>>>16)<<16),n=1540483477*(65535&(e^=e>>>24))+(59797*(e>>>16)<<16)^1540483477*(65535&n)+(59797*(n>>>16)<<16);switch(o){case 3:n^=(255&t.charCodeAt(i+2))<<16;case 2:n^=(255&t.charCodeAt(i+1))<<8;case 1:n=1540483477*(65535&(n^=255&t.charCodeAt(i)))+(59797*(n>>>16)<<16)}return(((n=1540483477*(65535&(n^=n>>>13))+(59797*(n>>>16)<<16))^n>>>15)>>>0).toString(36)},o=n(334),r=n(268),s=/[A-Z]|^ms/g,a=/_EMO_([^_]+?)_([^]*?)_EMO_/g,c=function(t){return 45===t.charCodeAt(1)},l=function(t){return null!=t&&"boolean"!=typeof t},u=Object(r.a)((function(t){return c(t)?t:t.replace(s,"-$&").toLowerCase()})),h=function(t,e){switch(t){case"animation":case"animationName":if("string"==typeof e)return e.replace(a,(function(t,e,n){return p={name:e,styles:n,next:p},e}))}return 1===o.a[t]||c(t)||"number"!=typeof e||0===e?e:e+"px"};function d(t,e,n){if(null==n)return"";if(void 0!==n.__emotion_styles)return n;switch(typeof n){case"boolean":return"";case"object":if(1===n.anim)return p={name:n.name,styles:n.styles,next:p},n.name;if(void 0!==n.styles){var i=n.next;if(void 0!==i)for(;void 0!==i;)p={name:i.name,styles:i.styles,next:p},i=i.next;return n.styles+";"}return function(t,e,n){var i="";if(Array.isArray(n))for(var o=0;ot?e.getHours(t)>=12?"pm":"am":null,o=(t,e,n)=>{if(n){if((t>=12?"pm":"am")!==e)return"am"===e?t-12:t+12}return t},r=(t,e,n,i)=>{const r=o(i.getHours(t),e,n);return i.setHours(t,r)},s=(t,e)=>3600*e.getHours(t)+60*e.getMinutes(t)+e.getSeconds(t),a=(t=!1,e)=>(n,i)=>t?e.isAfter(n,i):s(n,e)>s(i,e)},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(4),a=n(1023),c=n(18),l=n(3),u=n(7),h=n(6),d=n(194),p=n(2);const _=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],m=Object(l.a)("span",{name:"MuiTypography",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.variant&&e[n.variant],"inherit"!==n.align&&e["align"+Object(h.a)(n.align)],n.noWrap&&e.noWrap,n.gutterBottom&&e.gutterBottom,n.paragraph&&e.paragraph]}})(({theme:t,ownerState:e})=>Object(o.a)({margin:0},e.variant&&t.typography[e.variant],"inherit"!==e.align&&{textAlign:e.align},e.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},e.gutterBottom&&{marginBottom:"0.35em"},e.paragraph&&{marginBottom:16})),f={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},g={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},$=r.forwardRef((function(t,e){const n=Object(u.a)({props:t,name:"MuiTypography"}),r=(t=>g[t]||t)(n.color),l=Object(a.a)(Object(o.a)({},n,{color:r})),{align:$="inherit",className:E,component:y,gutterBottom:b=!1,noWrap:S=!1,paragraph:v=!1,variant:C="body1",variantMapping:N=f}=l,T=Object(i.a)(l,_),L=Object(o.a)({},l,{align:$,color:r,className:E,component:y,gutterBottom:b,noWrap:S,paragraph:v,variant:C,variantMapping:N}),z=y||(v?"p":N[C]||f[C])||"span",w=(t=>{const{align:e,gutterBottom:n,noWrap:i,paragraph:o,variant:r,classes:s}=t,a={root:["root",r,"inherit"!==t.align&&"align"+Object(h.a)(e),n&&"gutterBottom",i&&"noWrap",o&&"paragraph"]};return Object(c.a)(a,d.b,s)})(L);return Object(p.jsx)(m,Object(o.a)({as:z,ref:e,ownerState:L,className:Object(s.a)(w.root,E)},T))}));e.a=$},function(t,e,n){"use strict";n.d(e,"a",(function(){return d}));var i=n(1),o=n(5),r=n(354),s=n(729),a=n(4);function c(t){if(void 0===t)return{};const e={};return Object.keys(t).filter(e=>!(e.match(/^on[A-Z]/)&&"function"==typeof t[e])).forEach(n=>{e[n]=t[n]}),e}function l(t){const{getSlotProps:e,additionalProps:n,externalSlotProps:o,externalForwardedProps:r,className:s}=t;if(!e){const t=Object(a.a)(null==r?void 0:r.className,null==o?void 0:o.className,s,null==n?void 0:n.className),e=Object(i.a)({},null==n?void 0:n.style,null==r?void 0:r.style,null==o?void 0:o.style),c=Object(i.a)({},n,r,o);return t.length>0&&(c.className=t),Object.keys(e).length>0&&(c.style=e),{props:c,internalRef:void 0}}const l=function(t,e=[]){if(void 0===t)return{};const n={};return Object.keys(t).filter(n=>n.match(/^on[A-Z]/)&&"function"==typeof t[n]&&!e.includes(n)).forEach(e=>{n[e]=t[e]}),n}(Object(i.a)({},r,o)),u=c(o),h=c(r),d=e(l),p=Object(a.a)(null==d?void 0:d.className,null==n?void 0:n.className,s,null==r?void 0:r.className,null==o?void 0:o.className),_=Object(i.a)({},null==d?void 0:d.style,null==n?void 0:n.style,null==r?void 0:r.style,null==o?void 0:o.style),m=Object(i.a)({},d,n,h,u);return p.length>0&&(m.className=p),Object.keys(_).length>0&&(m.style=_),{props:m,internalRef:d.ref}}var u=n(353);const h=["elementType","externalSlotProps","ownerState"];function d(t){var e;const{elementType:n,externalSlotProps:a,ownerState:c}=t,d=Object(o.a)(t,h),p=Object(u.a)(a,c),{props:_,internalRef:m}=l(Object(i.a)({},d,{externalSlotProps:p})),f=Object(r.a)(m,Object(r.a)(null==p?void 0:p.ref,null==(e=t.additionalProps)?void 0:e.ref));return Object(s.a)(n,Object(i.a)({},_,{ref:f}),c)}},function(t,e,n){var i,o,r;o=[e,n(31)],void 0===(r="function"==typeof(i=function(t,e){"use strict";var n=e.defineInlineFunction,i=e.Kind.CLASS,o=(e.Long.ZERO,Array),r=e.Kind.OBJECT,s=(e.wrapFunction,e.toString),a=e.equals;function c(t){var e,n=o(t);e=n.length-1|0;for(var i=0;i<=e;i++)n[i]=m(null);this.array_0=n}function l(){}function u(){h=this,l.call(this)}u.prototype=Object.create(l.prototype),u.prototype.constructor=u,Object.defineProperty(c.prototype,"atomicfu$size",{configurable:!0,get:function(){return this.array_0.length}}),c.prototype.atomicfu$get=function(t){return this.array_0[t]},c.$metadata$={kind:i,simpleName:"AtomicArray",interfaces:[]},l.prototype.atomicfu$Trace$append$1=function(t){},l.prototype.atomicfu$Trace$append$2=function(t,e){},l.prototype.atomicfu$Trace$append$3=function(t,e,n){},l.prototype.atomicfu$Trace$append$4=function(t,e,n,i){},l.prototype.invoke_t0s8mz$=n("kotlinx-atomicfu.kotlinx.atomicfu.TraceBase.invoke_t0s8mz$",(function(t){this.atomicfu$Trace$append$1(t())})),u.$metadata$={kind:r,simpleName:"None",interfaces:[l]};var h=null;function d(){return null===h&&new u,h}function p(){}function _(t,e){return void 0===e&&(e=d()),new E(t)}function m(t){return _(t,d())}function f(t,e){return void 0===e&&(e=d()),new b(t)}function g(t,e){return void 0===e&&(e=d()),new S(t)}function $(t,e){return void 0===e&&(e=d()),new y(t)}function E(t){this.kotlinx$atomicfu$value=t}function y(t){this.kotlinx$atomicfu$value=t}function b(t){this.kotlinx$atomicfu$value=t}function S(t){this.kotlinx$atomicfu$value=t}function v(){}l.$metadata$={kind:i,simpleName:"TraceBase",interfaces:[]},p.prototype.atomicfu$TraceFormat$format=function(t,e){return t.toString()+": "+e.toString()},p.$metadata$={kind:i,simpleName:"TraceFormat",interfaces:[]},E.prototype.getValue_n5byny$=n("kotlinx-atomicfu.kotlinx.atomicfu.AtomicRef.getValue_n5byny$",(function(t,e){return this.kotlinx$atomicfu$value})),E.prototype.setValue_sq4zib$=n("kotlinx-atomicfu.kotlinx.atomicfu.AtomicRef.setValue_sq4zib$",(function(t,e,n){this.kotlinx$atomicfu$value=n})),E.prototype.lazySet_11rb$=n("kotlinx-atomicfu.kotlinx.atomicfu.AtomicRef.lazySet_11rb$",(function(t){this.kotlinx$atomicfu$value=t})),E.prototype.atomicfu$compareAndSet=function(t,e){return this.kotlinx$atomicfu$value===t&&(this.kotlinx$atomicfu$value=e,!0)},E.prototype.atomicfu$getAndSet=function(t){var e=this.kotlinx$atomicfu$value;return this.kotlinx$atomicfu$value=t,e},E.prototype.toString=function(){return s(this.kotlinx$atomicfu$value)},E.$metadata$={kind:i,simpleName:"AtomicRef",interfaces:[]},y.prototype.getValue_n5byny$=n("kotlinx-atomicfu.kotlinx.atomicfu.AtomicBoolean.getValue_n5byny$",(function(t,e){return this.kotlinx$atomicfu$value})),y.prototype.setValue_t08ssb$=n("kotlinx-atomicfu.kotlinx.atomicfu.AtomicBoolean.setValue_t08ssb$",(function(t,e,n){this.kotlinx$atomicfu$value=n})),y.prototype.lazySet_6taknv$=n("kotlinx-atomicfu.kotlinx.atomicfu.AtomicBoolean.lazySet_6taknv$",(function(t){this.kotlinx$atomicfu$value=t})),y.prototype.atomicfu$compareAndSet=function(t,e){return this.kotlinx$atomicfu$value===t&&(this.kotlinx$atomicfu$value=e,!0)},y.prototype.atomicfu$getAndSet=function(t){var e=this.kotlinx$atomicfu$value;return this.kotlinx$atomicfu$value=t,e},y.prototype.toString=function(){return this.kotlinx$atomicfu$value.toString()},y.$metadata$={kind:i,simpleName:"AtomicBoolean",interfaces:[]},b.prototype.getValue_n5byny$=n("kotlinx-atomicfu.kotlinx.atomicfu.AtomicInt.getValue_n5byny$",(function(t,e){return this.kotlinx$atomicfu$value})),b.prototype.setValue_4vfhis$=n("kotlinx-atomicfu.kotlinx.atomicfu.AtomicInt.setValue_4vfhis$",(function(t,e,n){this.kotlinx$atomicfu$value=n})),b.prototype.lazySet_za3lpa$=n("kotlinx-atomicfu.kotlinx.atomicfu.AtomicInt.lazySet_za3lpa$",(function(t){this.kotlinx$atomicfu$value=t})),b.prototype.atomicfu$compareAndSet=function(t,e){return this.kotlinx$atomicfu$value===t&&(this.kotlinx$atomicfu$value=e,!0)},b.prototype.atomicfu$getAndSet=function(t){var e=this.kotlinx$atomicfu$value;return this.kotlinx$atomicfu$value=t,e},b.prototype.atomicfu$getAndIncrement=function(){var t;return t=this.kotlinx$atomicfu$value,this.kotlinx$atomicfu$value=t+1|0,t},b.prototype.atomicfu$getAndDecrement=function(){var t;return t=this.kotlinx$atomicfu$value,this.kotlinx$atomicfu$value=t-1|0,t},b.prototype.atomicfu$getAndAdd=function(t){var e=this.kotlinx$atomicfu$value;return this.kotlinx$atomicfu$value=this.kotlinx$atomicfu$value+t|0,e},b.prototype.atomicfu$addAndGet=function(t){return this.kotlinx$atomicfu$value=this.kotlinx$atomicfu$value+t|0,this.kotlinx$atomicfu$value},b.prototype.atomicfu$incrementAndGet=function(){return this.kotlinx$atomicfu$value=this.kotlinx$atomicfu$value+1|0,this.kotlinx$atomicfu$value},b.prototype.atomicfu$decrementAndGet=function(){return this.kotlinx$atomicfu$value=this.kotlinx$atomicfu$value-1|0,this.kotlinx$atomicfu$value},b.prototype.plusAssign_za3lpa$=n("kotlinx-atomicfu.kotlinx.atomicfu.AtomicInt.plusAssign_za3lpa$",(function(t){this.atomicfu$getAndAdd(t)})),b.prototype.minusAssign_za3lpa$=n("kotlinx-atomicfu.kotlinx.atomicfu.AtomicInt.minusAssign_za3lpa$",(function(t){this.atomicfu$getAndAdd(0|-t)})),b.prototype.toString=function(){return this.kotlinx$atomicfu$value.toString()},b.$metadata$={kind:i,simpleName:"AtomicInt",interfaces:[]},S.prototype.getValue_n5byny$=n("kotlinx-atomicfu.kotlinx.atomicfu.AtomicLong.getValue_n5byny$",(function(t,e){return this.kotlinx$atomicfu$value})),S.prototype.setValue_9021kx$=n("kotlinx-atomicfu.kotlinx.atomicfu.AtomicLong.setValue_9021kx$",(function(t,e,n){this.kotlinx$atomicfu$value=n})),S.prototype.lazySet_s8cxhz$=n("kotlinx-atomicfu.kotlinx.atomicfu.AtomicLong.lazySet_s8cxhz$",(function(t){this.kotlinx$atomicfu$value=t})),S.prototype.atomicfu$compareAndSet=function(t,e){return!!a(this.kotlinx$atomicfu$value,t)&&(this.kotlinx$atomicfu$value=e,!0)},S.prototype.atomicfu$getAndSet=function(t){var e=this.kotlinx$atomicfu$value;return this.kotlinx$atomicfu$value=t,e},S.prototype.atomicfu$getAndIncrement$long=function(){var t;return t=this.kotlinx$atomicfu$value,this.kotlinx$atomicfu$value=t.inc(),t},S.prototype.atomicfu$getAndDecrement$long=function(){var t;return t=this.kotlinx$atomicfu$value,this.kotlinx$atomicfu$value=t.dec(),t},S.prototype.atomicfu$getAndAdd$long=function(t){var e=this.kotlinx$atomicfu$value;return this.kotlinx$atomicfu$value=this.kotlinx$atomicfu$value.add(t),e},S.prototype.atomicfu$addAndGet$long=function(t){return this.kotlinx$atomicfu$value=this.kotlinx$atomicfu$value.add(t),this.kotlinx$atomicfu$value},S.prototype.atomicfu$incrementAndGet$long=function(){return this.kotlinx$atomicfu$value=this.kotlinx$atomicfu$value.inc(),this.kotlinx$atomicfu$value},S.prototype.atomicfu$decrementAndGet$long=function(){return this.kotlinx$atomicfu$value=this.kotlinx$atomicfu$value.dec(),this.kotlinx$atomicfu$value},S.prototype.plusAssign_s8cxhz$=n("kotlinx-atomicfu.kotlinx.atomicfu.AtomicLong.plusAssign_s8cxhz$",(function(t){this.atomicfu$getAndAdd$long(t)})),S.prototype.minusAssign_s8cxhz$=n("kotlinx-atomicfu.kotlinx.atomicfu.AtomicLong.minusAssign_s8cxhz$",(function(t){this.atomicfu$getAndAdd$long(t.unaryMinus())})),S.prototype.toString=function(){return this.kotlinx$atomicfu$value.toString()},S.$metadata$={kind:i,simpleName:"AtomicLong",interfaces:[]},v.prototype.lock=n("kotlinx-atomicfu.kotlinx.atomicfu.locks.ReentrantLock.lock",(function(){})),v.prototype.tryLock=n("kotlinx-atomicfu.kotlinx.atomicfu.locks.ReentrantLock.tryLock",(function(){return!0})),v.prototype.unlock=n("kotlinx-atomicfu.kotlinx.atomicfu.locks.ReentrantLock.unlock",(function(){})),v.$metadata$={kind:i,simpleName:"ReentrantLock",interfaces:[]};var C=t.kotlinx||(t.kotlinx={}),N=C.atomicfu||(C.atomicfu={});return N.atomicfu$AtomicRefArray$ofNulls=function(t){return new c(t)},N.atomicfu$AtomicRefArray$ref=c,Object.defineProperty(l,"None",{get:d}),N.atomicfu$TraceBase=l,N.atomicfu$TraceFormat=p,N.atomic$ref$=_,N.atomic$ref$1=m,N.atomic$int$=f,N.atomic$int$1=function(t){return f(t,d())},N.atomic$long$=g,N.atomic$long$1=function(t){return g(t,d())},N.atomic$boolean$=$,N.atomic$boolean$1=function(t){return $(t,d())},N.AtomicRef=E,N.AtomicBoolean=y,N.AtomicInt=b,N.AtomicLong=S,(N.locks||(N.locks={})).ReentrantLock=v,new p,new v,t})?i.apply(e,o):i)||(t.exports=r)},function(t,e,n){var i,o,r;o=[e,n(31),n(128),n(85)],void 0===(r="function"==typeof(i=function(t,e,n,i){"use strict";var o,r,s=t.$$importsForInline$$||(t.$$importsForInline$$={}),a=e.Kind.INTERFACE,c=(e.kotlin.text.encodeToByteArray_pdl1vz$,e.Long.fromInt(4088)),l=e.kotlin.coroutines.intrinsics.COROUTINE_SUSPENDED,u=e.kotlin.coroutines.CoroutineImpl,h=e.ensureNotNull,d=e.Kind.CLASS,p=e.kotlin.Unit,_=e.Long.ZERO,m=e.equals,f=e.throwCCE,g=e.toByte,$=e.kotlin.text.StringBuilder_init,E=e.kotlin.coroutines.cancellation.CancellationException_init_pdl1vj$,y=e.kotlin.ranges.coerceAtMost_2p08ub$,b=n.kotlinx.atomicfu.atomic$ref$1,S=n.kotlinx.atomicfu.atomic$long$1,v=n.kotlinx.atomicfu.atomic$int$1,C=Object,N=e.kotlin.IllegalStateException_init_pdl1vj$,T=Math,L=e.kotlin.IllegalArgumentException_init_pdl1vj$,z=e.Long.MAX_VALUE,w=e.defineInlineFunction,O=e.wrapFunction,R=e.toShort,A=e.kotlin.coroutines.cancellation.CancellationException,x=Error,I=i.kotlinx.coroutines.Job,U=i.kotlinx.coroutines.CoroutineScope,D=e.kotlin.coroutines,P=i.kotlinx.coroutines,M=(i.kotlinx.coroutines.newCoroutineContext_7n4184$,i.kotlinx.coroutines.CoroutineScope_1fupul$,i.kotlinx.coroutines.CoroutineDispatcher),k=i.kotlinx.coroutines.launch_s496o7$,j=e.kotlin.ranges.coerceAtMost_dqglrj$,G=e.kotlin.UnsupportedOperationException_init_pdl1vj$,q=e.kotlin.UShort,F=(e.kotlin.UInt,e.kotlin.ULong,e.Long.fromInt(16)),B=e.kotlin.text.StringBuilder_init_za3lpa$,W=e.Kind.OBJECT,H=e.kotlin.Exception_init_pdl1vj$,V=e.kotlin.Exception,K=(e.kotlin.UByte,new e.Long(-1,0)),X=e.Long.ONE,J=e.kotlin.UnsupportedOperationException_init,Y=e.kotlin.text.Appendable,Q=e.kotlin.ranges.coerceAtLeast_dqglrj$,Z=e.unboxChar,tt=e.toChar,et=e.toBoxedChar,nt=e.Long.NEG_ONE,it=e.floatToRawBits,ot=e.doubleToRawBits,rt=(e.kotlin.text.contains_sgbm27$,e.kotlin.collections.copyOf_mrm5p$,e.Long.fromInt(2147483647)),st=e.kotlin.IndexOutOfBoundsException,at=e.kotlin.CharSequence,ct=e.kotlin.text.isLowSurrogate_myv2d0$,lt=e.kotlin.text.isHighSurrogate_myv2d0$,ut=(e.kotlin.Annotation,i.kotlinx.coroutines.Job_5dx9e$),ht=n.kotlinx.atomicfu.atomic$boolean$1,dt=e.toString,pt=e.hashCode,_t=e.kotlin.lazy_klfg04$,mt=(e.kotlin.io.println_s8jyv4$,e.kotlin.js.get_js_1yb8b7$),ft=e.kotlin.text.replace_r2fvfm$,gt=Int8Array,$t=e.kotlin.Enum,Et=e.throwISE,yt=e.kotlin.IndexOutOfBoundsException_init,bt=e.kotlin.collections.setOf_i5x0yv$,St=e.kotlin.text.decodeToString_964n91$,vt=e.kotlin.text.trim_gw00vp$;function Ct(){}function Nt(t,e,n){void 0===n&&(n=Bi().Pool),this.autoFlush_tqevpj$_0=e,this._lastReadView_api77i$_0=b(Bi().Empty),this._totalBytesRead_mx8dwu$_0=S(_),this._totalBytesWritten_s86f3f$_0=S(_),this._availableForRead_c8qrsp$_0=v(0),this.channelSize_gcvxze$_0=v(0),this._closed_l8h0oz$_0=b(null),this.writable=new Vn(n),this.readable=Qn(t,n),this.lastReadAvailable_1j890x$_fakn2m$_0=v(0),this.lastReadView_92ta1h$_nlevyr$_0=b(Bi().Empty),this.slot_2l2jew$_0=new po,this.flushMutex_pw64cr$_0=new C,this.flushBuffer_1r7aq2$_0=new Vn;var i=Hn(t).toInt();this.afterWrite_za3lpa$(i),this._availableForRead_c8qrsp$_0.atomicfu$addAndGet(i)}function Tt(t,e){return function(){return t.availableForWrite=i)){var s=ho(o,1,null);try{for(var a;;){var c=an(t,e,r.v,i,s);if(!(c>=0))throw N("Check failed.".toString());if(r.v=r.v+c|0,(a=r.v>=i?0:0===c?8:1)<=0)break;s=ho(o,a,s)}}finally{o.afterHeadWrite()}un(0,o)}}function rn(t,n,i){void 0===i&&(i=2147483647);var o=e.Long.fromInt(i),r=ln(n),s=B((o.compareTo_11rb$(r)<=0?o:r).toInt());return hr(t,n,s,i),s.toString()}function sn(t){yr.call(this,t),this.name="TooLongLineException"}function an(t,e,n,i,o){var r=i-n|0;return rr(t,new Ii(e,n,r),0,r,o)}function cn(t,n,i,o){void 0===i&&(i=0),void 0===o&&(o=n.length);var r={v:i};if(r.v>=o)return Gi;var s=Bi().Pool.borrow();try{var a,c=rr(t,n,r.v,o,s);if(r.v=r.v+c|0,r.v===o){var l,u,h=new Int8Array(s.writePosition-s.readPosition|0);return l=h.length-0|0,kn(e.isType(u=s,dn)?u:f(),h,0,l),h}var d=new Vn;try{d.appendSingleChunk_pvnryh$(s.duplicate()),hn(t,d,n,r.v,o),a=d.build()}catch(t){throw e.isType(t,x)?(d.release(),t):t}return zi(a)}finally{s.release_2bs5fo$(Bi().Pool)}}function ln(t){if(e.isType(t,Kn))return t.remaining;var n=t.remaining,i=F;return n.compareTo_11rb$(i)>=0?n:i}function un(t,e){var n={v:1},i={v:0},o=ho(e,1,null);try{for(;;){var r=o,s=r.limit-r.writePosition|0;if(n.v=0,i.v=i.v+(s-(r.limit-r.writePosition|0))|0,!(n.v>0))break;o=ho(e,1,o)}}finally{e.afterHeadWrite()}return i.v}function hn(t,e,n,i,o){var r={v:i};if(r.v>=o)return 0;var s={v:0},a=ho(e,1,null);try{for(var c;;){var l=a,u=l.limit-l.writePosition|0,h=rr(t,n,r.v,o,l);if(!(h>=0))throw N("Check failed.".toString());if(r.v=r.v+h|0,s.v=s.v+(u-(l.limit-l.writePosition|0))|0,(c=r.v>=o?0:0===h?8:1)<=0)break;a=ho(e,c,a)}}finally{e.afterHeadWrite()}return s.v=s.v+un(0,e)|0,s.v}function dn(t){fn(),this.memory=t,this.readPosition_osecaz$_0=0,this.writePosition_oj9ite$_0=0,this.startGap_cakrhy$_0=0,this.limit_uf38zz$_0=this.memory.view.byteLength,this.capacity=this.memory.view.byteLength}function pn(){mn=this,this.ReservedSize=8}Ae.prototype=Object.create(A.prototype),Ae.prototype.constructor=Ae,yr.prototype=Object.create(x.prototype),yr.prototype.constructor=yr,sn.prototype=Object.create(yr.prototype),sn.prototype.constructor=sn,Tn.prototype=Object.create(V.prototype),Tn.prototype.constructor=Tn,On.prototype=Object.create(ts.prototype),On.prototype.constructor=On,Vn.prototype=Object.create(fi.prototype),Vn.prototype.constructor=Vn,Kn.prototype=Object.create(Zn.prototype),Kn.prototype.constructor=Kn,ki.prototype=Object.create(bo.prototype),ki.prototype.constructor=ki,ji.prototype=Object.create(bo.prototype),ji.prototype.constructor=ji,Ui.prototype=Object.create(dn.prototype),Ui.prototype.constructor=Ui,so.prototype=Object.create(V.prototype),so.prototype.constructor=so,Eo.prototype=Object.create(ts.prototype),Eo.prototype.constructor=Eo,To.prototype=Object.create(Nt.prototype),To.prototype.constructor=To,nr.prototype=Object.create(er.prototype),nr.prototype.constructor=nr,lr.prototype=Object.create(cr.prototype),lr.prototype.constructor=lr,Er.prototype=Object.create(Jo.prototype),Er.prototype.constructor=Er,zr.prototype=Object.create($t.prototype),zr.prototype.constructor=zr,Br.prototype=Object.create(V.prototype),Br.prototype.constructor=Br,Hr.prototype=Object.create(Br.prototype),Hr.prototype.constructor=Hr,Ct.$metadata$={kind:a,simpleName:"ByteChannel",interfaces:[Uo,Oo]},Object.defineProperty(Nt.prototype,"autoFlush",{get:function(){return this.autoFlush_tqevpj$_0}}),Object.defineProperty(Nt.prototype,"isCancelled_e0fq87$_0",{configurable:!0,get:function(){var t;return null!=(null!=(t=this._closed_l8h0oz$_0.kotlinx$atomicfu$value)?t.cause:null)}}),Object.defineProperty(Nt.prototype,"closed",{configurable:!0,get:function(){return null!=this._closed_l8h0oz$_0.kotlinx$atomicfu$value},set:function(t){throw N("Setting is not allowed for closed".toString())}}),Object.defineProperty(Nt.prototype,"lastReadAvailable_1j890x$_0",{configurable:!0,get:function(){return this.lastReadAvailable_1j890x$_fakn2m$_0.kotlinx$atomicfu$value},set:function(t){this.lastReadAvailable_1j890x$_fakn2m$_0.kotlinx$atomicfu$value=t}}),Object.defineProperty(Nt.prototype,"lastReadView_92ta1h$_0",{configurable:!0,get:function(){return this.lastReadView_92ta1h$_nlevyr$_0.kotlinx$atomicfu$value},set:function(t){this.lastReadView_92ta1h$_nlevyr$_0.kotlinx$atomicfu$value=t}}),Object.defineProperty(Nt.prototype,"availableForRead",{configurable:!0,get:function(){return this._availableForRead_c8qrsp$_0.kotlinx$atomicfu$value}}),Object.defineProperty(Nt.prototype,"availableForWrite",{configurable:!0,get:function(){var t=4088-this.channelSize_gcvxze$_0.kotlinx$atomicfu$value|0;return T.max(0,t)}}),Object.defineProperty(Nt.prototype,"isClosedForRead",{configurable:!0,get:function(){return this.isCancelled_e0fq87$_0||this.closed&&0===this.channelSize_gcvxze$_0.kotlinx$atomicfu$value}}),Object.defineProperty(Nt.prototype,"isClosedForWrite",{configurable:!0,get:function(){return this.closed}}),Object.defineProperty(Nt.prototype,"totalBytesRead",{configurable:!0,get:function(){return this._totalBytesRead_mx8dwu$_0.kotlinx$atomicfu$value}}),Object.defineProperty(Nt.prototype,"totalBytesWritten",{configurable:!0,get:function(){return this._totalBytesWritten_s86f3f$_0.kotlinx$atomicfu$value}}),Object.defineProperty(Nt.prototype,"closedCause",{configurable:!0,get:function(){var t;return null!=(t=this._closed_l8h0oz$_0.kotlinx$atomicfu$value)?t.cause:null},set:function(t){throw N("Closed cause shouldn't be changed directly".toString())}}),Lt.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},Lt.prototype=Object.create(u.prototype),Lt.prototype.constructor=Lt,Lt.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(this.$this.availableForWrite>=this.local$count||this.$this.closed){this.state_0=5;continue}if(this.$this.flushImpl_t0lzva$_0()){this.state_0=4;continue}if(this.state_0=3,this.result_0=this.$this.slot_2l2jew$_0.sleep_u332lz$(Tt(this.$this,this.local$count),this),this.result_0===l)return l;continue;case 3:this.state_0=4;continue;case 4:this.state_0=2;continue;case 5:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.awaitAtLeastNBytesAvailableForWrite_kcn2v3$=function(t,e,n){var i=new Lt(this,t,e);return n?i:i.doResume(null)},wt.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},wt.prototype=Object.create(u.prototype),wt.prototype.constructor=wt,wt.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(this.$this.availableForRead>=this.local$count||this.$this.isClosedForRead){this.state_0=4;continue}if(this.state_0=3,this.result_0=this.$this.slot_2l2jew$_0.sleep_u332lz$(zt(this.$this,this.local$count),this),this.result_0===l)return l;continue;case 3:this.state_0=2;continue;case 4:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.awaitAtLeastNBytesAvailableForRead_kcn2v3$=function(t,e,n){var i=new wt(this,t,e);return n?i:i.doResume(null)},Nt.prototype.flush=function(){this.flushImpl_t0lzva$_0()},Nt.prototype.flushImpl_t0lzva$_0=function(){return this.writable.isEmpty?(this.slot_2l2jew$_0.resume(),!1):(this.flushWrittenBytes_2bgxqi$_0(),this.slot_2l2jew$_0.resume(),!0)},Nt.prototype.flushWrittenBytes_2bgxqi$_0=function(){var t=this.writable.size,e=h(this.writable.stealAll_8be2vx$());this.flushBuffer_1r7aq2$_0.writeChunkBuffer_pvnryh$(e),this._availableForRead_c8qrsp$_0.atomicfu$addAndGet(t)},Nt.prototype.prepareFlushedBytes=function(){ao(this.readable,this.flushBuffer_1r7aq2$_0)},Nt.prototype.ensureNotClosed_ozgwi5$_0=function(){var t;if(this.closed)throw null!=(t=this.closedCause)?t:new Ae("Channel "+this+" is already closed")},Nt.prototype.ensureNotFailed_7bddlw$_0=function(){var t;if(null!=(t=this.closedCause))throw t},Nt.prototype.ensureNotFailed_2bmfsh$_0=function(t){var e;if(null!=(e=this.closedCause))throw t.release(),e},Ot.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},Ot.prototype=Object.create(u.prototype),Ot.prototype.constructor=Ot,Ot.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this.awaitAtLeastNBytesAvailableForWrite_kcn2v3$(1,this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:return this.$this.writable.writeByte_s8j3t7$(this.local$b),void this.$this.afterWrite_za3lpa$(1);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.writeByte_s8j3t7$=function(t,e,n){var i=new Ot(this,t,e);return n?i:i.doResume(null)},Rt.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},Rt.prototype=Object.create(u.prototype),Rt.prototype.constructor=Rt,Rt.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this.awaitAtLeastNBytesAvailableForWrite_kcn2v3$(2,this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:return bi(this.$this.writable,this.local$s),void this.$this.afterWrite_za3lpa$(2);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.writeShort_mq22fl$=function(t,e,n){var i=new Rt(this,t,e);return n?i:i.doResume(null)},At.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},At.prototype=Object.create(u.prototype),At.prototype.constructor=At,At.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this.awaitAtLeastNBytesAvailableForWrite_kcn2v3$(4,this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:return Si(this.$this.writable,this.local$i),void this.$this.afterWrite_za3lpa$(4);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.writeInt_za3lpa$=function(t,e,n){var i=new At(this,t,e);return n?i:i.doResume(null)},xt.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},xt.prototype=Object.create(u.prototype),xt.prototype.constructor=xt,xt.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this.awaitAtLeastNBytesAvailableForWrite_kcn2v3$(8,this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:return Ci(this.$this.writable,this.local$l),void this.$this.afterWrite_za3lpa$(8);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.writeLong_s8cxhz$=function(t,e,n){var i=new xt(this,t,e);return n?i:i.doResume(null)},It.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},It.prototype=Object.create(u.prototype),It.prototype.constructor=It,It.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this.awaitAtLeastNBytesAvailableForWrite_kcn2v3$(4,this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:return Ti(this.$this.writable,this.local$f),void this.$this.afterWrite_za3lpa$(4);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.writeFloat_mx4ult$=function(t,e,n){var i=new It(this,t,e);return n?i:i.doResume(null)},Ut.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},Ut.prototype=Object.create(u.prototype),Ut.prototype.constructor=Ut,Ut.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this.awaitAtLeastNBytesAvailableForWrite_kcn2v3$(8,this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:return Li(this.$this.writable,this.local$d),void this.$this.afterWrite_za3lpa$(8);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.writeDouble_14dthe$=function(t,e,n){var i=new Ut(this,t,e);return n?i:i.doResume(null)},Dt.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},Dt.prototype=Object.create(u.prototype),Dt.prototype.constructor=Dt,Dt.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this.awaitAtLeastNBytesAvailableForWrite_kcn2v3$(1,this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:var t=this.local$packet.remaining.toInt();return this.$this.writable.writePacket_3uq2w4$(this.local$packet),void this.$this.afterWrite_za3lpa$(t);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.writePacket_3uq2w4$=function(t,e,n){var i=new Dt(this,t,e);return n?i:i.doResume(null)},Pt.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},Pt.prototype=Object.create(u.prototype),Pt.prototype.constructor=Pt,Pt.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this.awaitAtLeastNBytesAvailableForWrite_kcn2v3$(1,this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:var t=this.local$src.writePosition-this.local$src.readPosition|0;return $i(this.$this.writable,this.local$src),void this.$this.afterWrite_za3lpa$(t);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.writeFully_b4g5fm$=function(t,e,n){var i=new Pt(this,t,e);return n?i:i.doResume(null)},Mt.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},Mt.prototype=Object.create(u.prototype),Mt.prototype.constructor=Mt,Mt.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$currentIndex=this.local$offset,this.local$endIndex=this.local$offset+this.local$length|0,this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(this.local$currentIndex>=this.local$endIndex){this.state_0=4;continue}if(this.state_0=3,this.result_0=this.$this.awaitAtLeastNBytesAvailableForWrite_kcn2v3$(1,this),this.result_0===l)return l;continue;case 3:var t=this.$this.availableForWrite,e=this.local$endIndex-this.local$currentIndex|0,n=T.min(t,e);gi(this.$this.writable,this.local$src,this.local$currentIndex,n),this.local$currentIndex=this.local$currentIndex+n|0,this.$this.afterWrite_za3lpa$(n),this.state_0=2;continue;case 4:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.writeFully_mj6st8$=function(t,e,n,i,o){var r=new Mt(this,t,e,n,i);return o?r:r.doResume(null)},kt.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},kt.prototype=Object.create(u.prototype),kt.prototype.constructor=kt,kt.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$currentIndex=this.local$startIndex,this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(this.local$currentIndex>=this.local$endIndex){this.state_0=4;continue}if(this.state_0=3,this.result_0=this.$this.awaitAtLeastNBytesAvailableForWrite_kcn2v3$(1,this),this.result_0===l)return l;continue;case 3:var t=this.$this.availableForWrite,e=this.local$endIndex-this.local$currentIndex|0,n=T.min(t,e);Ei(this.$this.writable,this.local$memory,this.local$currentIndex,n),this.local$currentIndex=this.local$currentIndex+n|0,this.$this.afterWrite_za3lpa$(n),this.state_0=2;continue;case 4:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.writeFully_9etqdk$=function(t,e,n,i,o){var r=new kt(this,t,e,n,i);return o?r:r.doResume(null)},jt.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},jt.prototype=Object.create(u.prototype),jt.prototype.constructor=jt,jt.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$srcRemaining=this.local$src.writePosition-this.local$src.readPosition|0,0===this.local$srcRemaining)return 0;this.state_0=2;continue;case 1:throw this.exception_0;case 2:var t=this.$this.availableForWrite,e=T.min(this.local$srcRemaining,t);if(0===e){if(this.state_0=3,this.result_0=this.$this.writeAvailableSuspend_2ppiy2$_0(this.local$src,this),this.result_0===l)return l;continue}$i(this.$this.writable,this.local$src,e),this.$this.afterWrite_za3lpa$(e),this.local$tmp$=e,this.state_0=4;continue;case 3:this.local$tmp$=this.result_0,this.state_0=4;continue;case 4:return this.local$tmp$;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.writeAvailable_j2u0py$=function(t,e,n){var i=new jt(this,t,e);return n?i:i.doResume(null)},Gt.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},Gt.prototype=Object.create(u.prototype),Gt.prototype.constructor=Gt,Gt.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(0===this.local$length)return 0;this.state_0=2;continue;case 1:throw this.exception_0;case 2:var t=this.$this.availableForWrite,e=T.min(this.local$length,t);if(0===e){if(this.state_0=3,this.result_0=this.$this.writeAvailableSuspend_1zn44g$_0(this.local$src,this.local$offset,this.local$length,this),this.result_0===l)return l;continue}gi(this.$this.writable,this.local$src,this.local$offset,e),this.$this.afterWrite_za3lpa$(e),this.local$tmp$=e,this.state_0=4;continue;case 3:this.local$tmp$=this.result_0,this.state_0=4;continue;case 4:return this.local$tmp$;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.writeAvailable_mj6st8$=function(t,e,n,i,o){var r=new Gt(this,t,e,n,i);return o?r:r.doResume(null)},qt.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},qt.prototype=Object.create(u.prototype),qt.prototype.constructor=qt,qt.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=this.$this.beginWriteSession();if(this.state_0=2,this.result_0=this.local$visitor(t,this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.writeSuspendSession_8dv01$=function(t,e,n){var i=new qt(this,t,e);return n?i:i.doResume(null)},Ft.prototype.request_za3lpa$=function(t){return 0===this.this$ByteChannelSequentialBase.availableForWrite?null:this.this$ByteChannelSequentialBase.writable.prepareWriteHead_za3lpa$(t)},Ft.prototype.written_za3lpa$=function(t){this.this$ByteChannelSequentialBase.writable.afterHeadWrite(),this.this$ByteChannelSequentialBase.afterWrite_za3lpa$(t)},Ft.prototype.flush=function(){this.this$ByteChannelSequentialBase.flush()},Bt.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},Bt.prototype=Object.create(u.prototype),Bt.prototype.constructor=Bt,Bt.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.$this.this$ByteChannelSequentialBase.availableForWrite=this.local$limit.toNumber()){this.state_0=5;continue}var t=this.local$limit.subtract(e.Long.fromInt(this.local$builder.size)),n=this.$this.readable.remaining,i=t.compareTo_11rb$(n)<=0?t:n;if(this.local$builder.writePacket_pi0yjl$(this.$this.readable,i),this.$this.afterRead_za3lpa$(i.toInt()),this.$this.ensureNotFailed_2bmfsh$_0(this.local$builder),this.$this.isClosedForRead||this.local$builder.size===this.local$limit.toInt()){this.state_0=5;continue}this.state_0=3;continue;case 3:if(this.state_0=4,this.result_0=this.$this.awaitSuspend_za3lpa$(1,this),this.result_0===l)return l;continue;case 4:this.state_0=2;continue;case 5:return this.$this.ensureNotFailed_2bmfsh$_0(this.local$builder),this.local$builder.build();default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.readRemainingSuspend_gfhva8$_0=function(t,e,n,i){var o=new oe(this,t,e,n);return i?o:o.doResume(null)},re.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},re.prototype=Object.create(u.prototype),re.prototype.constructor=re,re.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.$this.checkClosed_e67qpq$_0(this.local$size);var t=new Vn,n=this.local$size,i=e.Long.fromInt(n),o=this.$this.readable.remaining,r=(i.compareTo_11rb$(o)<=0?i:o).toInt();if(n=n-r|0,t.writePacket_f7stg6$(this.$this.readable,r),this.$this.afterRead_za3lpa$(r),this.$this.checkClosed_e67qpq$_0(n,t),n>0){if(this.state_0=2,this.result_0=this.$this.readPacketSuspend_2ns5o1$_0(t,n,this),this.result_0===l)return l;continue}this.local$tmp$=t.build(),this.state_0=3;continue;case 1:throw this.exception_0;case 2:this.local$tmp$=this.result_0,this.state_0=3;continue;case 3:return this.local$tmp$;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.readPacket_za3lpa$=function(t,e,n){var i=new re(this,t,e);return n?i:i.doResume(null)},se.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},se.prototype=Object.create(u.prototype),se.prototype.constructor=se,se.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$remaining=this.local$size,this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(this.local$remaining<=0){this.state_0=5;continue}var t=e.Long.fromInt(this.local$remaining),n=this.$this.readable.remaining,i=(t.compareTo_11rb$(n)<=0?t:n).toInt();if(this.local$remaining=this.local$remaining-i|0,this.local$builder.writePacket_f7stg6$(this.$this.readable,i),this.$this.afterRead_za3lpa$(i),this.$this.checkClosed_e67qpq$_0(this.local$remaining,this.local$builder),this.local$remaining>0){if(this.state_0=3,this.result_0=this.$this.awaitSuspend_za3lpa$(1,this),this.result_0===l)return l;continue}this.state_0=4;continue;case 3:this.state_0=4;continue;case 4:this.state_0=2;continue;case 5:return this.$this.checkClosed_e67qpq$_0(this.local$remaining,this.local$builder),this.local$builder.build();default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.readPacketSuspend_2ns5o1$_0=function(t,e,n,i){var o=new se(this,t,e,n);return i?o:o.doResume(null)},Nt.prototype.readAvailableClosed=function(){var t;if(null!=(t=this.closedCause))throw t;return this.availableForRead>0&&this.prepareFlushedBytes(),-1},Nt.prototype.readAvailable_j2u0py$=function(t,n){var i;return this.readAvailable_lh221x$(e.isType(i=t,dn)?i:f(),n)},ae.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},ae.prototype=Object.create(u.prototype),ae.prototype.constructor=ae,ae.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(null!=(t=this.$this.closedCause))throw t;if(this.$this.closed&&0===this.$this.availableForRead)return-1;this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(0==(this.local$dst.limit-this.local$dst.writePosition|0))return 0;this.state_0=3;continue;case 3:if(0===this.$this.availableForRead){if(this.state_0=4,this.result_0=this.$this.awaitSuspend_za3lpa$(1,this),this.result_0===l)return l;continue}this.state_0=5;continue;case 4:this.state_0=5;continue;case 5:this.$this.readable.canRead()||this.$this.prepareFlushedBytes();var n=e.Long.fromInt(this.local$dst.limit-this.local$dst.writePosition|0),i=this.$this.readable.remaining,o=(n.compareTo_11rb$(i)<=0?n:i).toInt();return ri(this.$this.readable,this.local$dst,o),this.$this.afterRead_za3lpa$(o),o;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.readAvailable_lh221x$=function(t,e,n){var i=new ae(this,t,e);return n?i:i.doResume(null)},ce.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},ce.prototype=Object.create(u.prototype),ce.prototype.constructor=ce,ce.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(this.state_0=2,this.result_0=this.$this.readFully_bkznnu$_0(e.isType(t=this.local$dst,dn)?t:f(),this.local$n,this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.readFully_a396d0$=function(t,e,n,i){var o=new ce(this,t,e,n);return i?o:o.doResume(null)},le.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},le.prototype=Object.create(u.prototype),le.prototype.constructor=le,le.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(!(this.local$n<=(this.local$dst.limit-this.local$dst.writePosition|0))){var t="Not enough space in the destination buffer to write "+this.local$n+" bytes";throw L(t.toString())}if(!(this.local$n>=0))throw L("n shouldn't be negative".toString());if(null!=this.$this.closedCause)throw h(this.$this.closedCause);if(this.$this.readable.remaining.toNumber()>=this.local$n){var e=(ri(this.$this.readable,this.local$dst,this.local$n),p);this.$this.afterRead_za3lpa$(this.local$n),this.local$tmp$=e,this.state_0=4;continue}if(this.$this.closed)throw new Hr("Channel is closed and not enough bytes available: required "+this.local$n+" but "+this.$this.availableForRead+" available");if(this.state_0=2,this.result_0=this.$this.readFullySuspend_8xotw2$_0(this.local$dst,this.local$n,this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:this.local$tmp$=this.result_0,this.state_0=3;continue;case 3:this.state_0=4;continue;case 4:this.state_0=5;continue;case 5:return this.local$tmp$;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.readFully_bkznnu$_0=function(t,e,n,i){var o=new le(this,t,e,n);return i?o:o.doResume(null)},ue.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},ue.prototype=Object.create(u.prototype),ue.prototype.constructor=ue,ue.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this.awaitSuspend_za3lpa$(this.local$n,this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=this.$this.readFully_bkznnu$_0(this.local$dst,this.local$n,this),this.result_0===l)return l;continue;case 3:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.readFullySuspend_8xotw2$_0=function(t,e,n,i){var o=new ue(this,t,e,n);return i?o:o.doResume(null)},he.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},he.prototype=Object.create(u.prototype),he.prototype.constructor=he,he.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(null!=(t=this.$this.closedCause))throw t;if(this.$this.closed&&0===this.$this.availableForRead)return-1;this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(0===this.local$length)return 0;this.state_0=3;continue;case 3:if(0===this.$this.availableForRead){if(this.state_0=4,this.result_0=this.$this.awaitSuspend_za3lpa$(1,this),this.result_0===l)return l;continue}this.state_0=5;continue;case 4:this.state_0=5;continue;case 5:this.$this.readable.canRead()||this.$this.prepareFlushedBytes();var n=e.Long.fromInt(this.local$length),i=this.$this.readable.remaining,o=(n.compareTo_11rb$(i)<=0?n:i).toInt();return oi(this.$this.readable,this.local$dst,this.local$offset,o),this.$this.afterRead_za3lpa$(o),o;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.readAvailable_mj6st8$=function(t,e,n,i,o){var r=new he(this,t,e,n,i);return o?r:r.doResume(null)},de.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},de.prototype=Object.create(u.prototype),de.prototype.constructor=de,de.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this.readAvailable_mj6st8$(this.local$dst,this.local$offset,this.local$length,this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:if(this.local$rc=this.result_0,this.local$rc===this.local$length)return;this.state_0=3;continue;case 3:if(-1===this.local$rc)throw new Hr("Unexpected end of stream");if(this.state_0=4,this.result_0=this.$this.readFullySuspend_ayq7by$_0(this.local$dst,this.local$offset+this.local$rc|0,this.local$length-this.local$rc|0,this),this.result_0===l)return l;continue;case 4:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.readFully_mj6st8$=function(t,e,n,i,o){var r=new de(this,t,e,n,i);return o?r:r.doResume(null)},pe.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},pe.prototype=Object.create(u.prototype),pe.prototype.constructor=pe,pe.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$written=0,this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(this.local$written>=this.local$length){this.state_0=4;continue}if(this.state_0=3,this.result_0=this.$this.readAvailable_mj6st8$(this.local$dst,this.local$offset+this.local$written|0,this.local$length-this.local$written|0,this),this.result_0===l)return l;continue;case 3:var t=this.result_0;if(-1===t)throw new Hr("Unexpected end of stream");this.local$written=this.local$written+t|0,this.state_0=2;continue;case 4:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.readFullySuspend_ayq7by$_0=function(t,e,n,i,o){var r=new pe(this,t,e,n,i);return o?r:r.doResume(null)},_e.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},_e.prototype=Object.create(u.prototype),_e.prototype.constructor=_e,_e.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.$this.readable.canRead()){var t=this.$this.readable.readByte()===g(1);this.$this.afterRead_za3lpa$(1),this.local$tmp$=t,this.state_0=3;continue}if(this.state_0=2,this.result_0=this.$this.readBooleanSlow_cbbszf$_0(this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:this.local$tmp$=this.result_0,this.state_0=3;continue;case 3:return this.local$tmp$;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.readBoolean=function(t,e){var n=new _e(this,t);return e?n:n.doResume(null)},me.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},me.prototype=Object.create(u.prototype),me.prototype.constructor=me,me.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this.awaitSuspend_za3lpa$(1,this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:if(this.$this.checkClosed_e67qpq$_0(1),this.state_0=3,this.result_0=this.$this.readBoolean(this),this.result_0===l)return l;continue;case 3:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.readBooleanSlow_cbbszf$_0=function(t,e){var n=new me(this,t);return e?n:n.doResume(null)},Nt.prototype.completeReading_um9rnf$_0=function(){var t=this.lastReadView_92ta1h$_0,e=t.writePosition-t.readPosition|0,n=this.lastReadAvailable_1j890x$_0-e|0;this.lastReadView_92ta1h$_0!==fn().Empty&&lo(this.readable,this.lastReadView_92ta1h$_0),n>0&&this.afterRead_za3lpa$(n),this.lastReadAvailable_1j890x$_0=0,this.lastReadView_92ta1h$_0=Bi().Empty},Nt.prototype.await_za3lpa$$default=function(t,e){if(!(t>=0))throw L(("atLeast parameter shouldn't be negative: "+t).toString());if(!(t<=o.toNumber())){var n="atLeast parameter shouldn't be larger than max buffer size of "+o.toString()+": "+t;throw L(n.toString())}return this.completeReading_um9rnf$_0(),0===t?!this.isClosedForRead:this.readable.remaining.toNumber()>=t||this.awaitSuspend_za3lpa$(t,e)},fe.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},fe.prototype=Object.create(u.prototype),fe.prototype.constructor=fe,fe.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.$this.readable.endOfInput){if(this.state_0=2,this.result_0=this.$this.awaitSuspend_za3lpa$(1,this),this.result_0===l)return l;continue}return!0;case 1:throw this.exception_0;case 2:return this.result_0;case 3:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.awaitInternalAtLeast1_8be2vx$=function(t,e){var n=new fe(this,t);return e?n:n.doResume(null)},ge.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},ge.prototype=Object.create(u.prototype),ge.prototype.constructor=ge,ge.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(!(this.local$atLeast>=0))throw L("Failed requirement.".toString());if(this.state_0=2,this.result_0=this.$this.awaitAtLeastNBytesAvailableForRead_kcn2v3$(this.local$atLeast,this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:if(this.$this.prepareFlushedBytes(),null!=(t=this.$this.closedCause))throw t;return!this.$this.isClosedForRead&&this.$this.availableForRead>=this.local$atLeast;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.awaitSuspend_za3lpa$=function(t,e,n){var i=new ge(this,t,e);return n?i:i.doResume(null)},Nt.prototype.discard_za3lpa$=function(t){var e;if(null!=(e=this.closedCause))throw e;if(0===t)return 0;var n=this.readable.discard_za3lpa$(t);return this.afterRead_za3lpa$(t),this.requestNextView_id8q5z$_0(1),n},Nt.prototype.request_za3lpa$$default=function(t){var e;if(null!=(e=this.closedCause))throw e;return this.completeReading_um9rnf$_0(),this.requestNextView_id8q5z$_0(t)},Nt.prototype.requestNextView_id8q5z$_0=function(t){this.readable.endOfInput&&this.prepareFlushedBytes();var e=this.readable.prepareReadHead_kcn2v3$(t);return null==e?(this.lastReadView_92ta1h$_0=Bi().Empty,this.lastReadAvailable_1j890x$_0=0):(this.lastReadView_92ta1h$_0=e,this.lastReadAvailable_1j890x$_0=e.writePosition-e.readPosition|0),e},$e.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},$e.prototype=Object.create(u.prototype),$e.prototype.constructor=$e,$e.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=this.$this.readable.discard_s8cxhz$(this.local$max);if(this.$this.afterRead_za3lpa$(t.toInt()),m(t,this.local$max)||this.$this.isClosedForRead)return this.$this.ensureNotFailed_7bddlw$_0(),t;if(this.state_0=2,this.result_0=this.$this.discardSuspend_7c0j1e$_0(this.local$max,t,this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:this.local$tmp$=this.result_0,this.state_0=3;continue;case 3:return this.local$tmp$;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.discard_s8cxhz$=function(t,e,n){var i=new $e(this,t,e);return n?i:i.doResume(null)},Ee.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},Ee.prototype=Object.create(u.prototype),Ee.prototype.constructor=Ee,Ee.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$discarded=this.local$discarded0,this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=this.$this.await_za3lpa$(1,this),this.result_0===l)return l;continue;case 3:if(this.result_0){this.state_0=4;continue}this.state_0=5;continue;case 4:var t=this.$this.readable.discard_s8cxhz$(this.local$max.subtract(this.local$discarded));if(this.$this.afterRead_za3lpa$(t.toInt()),this.local$discarded=this.local$discarded.add(t),this.local$discarded.compareTo_11rb$(this.local$max)>=0||this.$this.isClosedForRead){this.state_0=5;continue}this.state_0=2;continue;case 5:return this.$this.ensureNotFailed_7bddlw$_0(),this.local$discarded;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.discardSuspend_7c0j1e$_0=function(t,e,n,i){var o=new Ee(this,t,e,n);return i?o:o.doResume(null)},Nt.prototype.readSession_m70re0$=function(t){try{t(this)}finally{this.completeReading_um9rnf$_0()}},Nt.prototype.startReadSession=function(){return this},Nt.prototype.endReadSession=function(){this.completeReading_um9rnf$_0()},ye.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},ye.prototype=Object.create(u.prototype),ye.prototype.constructor=ye,ye.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.exceptionState_0=3,this.state_0=1,this.result_0=this.local$consumer(this.$this,this),this.result_0===l)return l;continue;case 1:this.exceptionState_0=5,this.finallyPath_0=[2],this.state_0=4;continue;case 2:return;case 3:this.finallyPath_0=[5],this.state_0=4;continue;case 4:this.exceptionState_0=5,this.$this.completeReading_um9rnf$_0(),this.state_0=this.finallyPath_0.shift();continue;case 5:throw this.exception_0;default:throw this.state_0=5,new Error("State Machine Unreachable execution")}}catch(t){if(5===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.readSuspendableSession_kiqllg$=function(t,e,n){var i=new ye(this,t,e);return n?i:i.doResume(null)},be.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},be.prototype=Object.create(u.prototype),be.prototype.constructor=be,be.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$ByteChannelSequentialBase.await_za3lpa$(this.local$size,this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:return this.result_0?this.local$this$ByteChannelSequentialBase.readable:null;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.readUTF8LineTo_yhx0yw$=function(t,e,n){if(this.isClosedForRead){var i=this.closedCause;if(null!=i)throw i;return!1}return Ji(t,e,(r=this,function(t,e,n){var i=new be(r,t,e);return n?i:i.doResume(null)}),(o=this,function(t){return o.afterRead_za3lpa$(t),p}),n);var o,r},Se.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},Se.prototype=Object.create(u.prototype),Se.prototype.constructor=Se,Se.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$builder=$(),this.state_0=2,this.result_0=this.$this.readUTF8LineTo_yhx0yw$(this.local$builder,this.local$limit,this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:if(this.result_0){this.state_0=3;continue}return null;case 3:return this.local$builder.toString();default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.readUTF8Line_za3lpa$=function(t,e,n){var i=new Se(this,t,e);return n?i:i.doResume(null)},Nt.prototype.cancel_dbl4no$=function(t){return null==this.closedCause&&!this.closed&&this.close_dbl4no$(null!=t?t:E("Channel cancelled"))},Nt.prototype.close_dbl4no$=function(t){var e=null==t?r:new xe(t);return!!this._closed_l8h0oz$_0.atomicfu$compareAndSet(null,e)&&(null!=t?(this.readable.release(),this.writable.release(),this.flushBuffer_1r7aq2$_0.release()):this.flush(),this.slot_2l2jew$_0.cancel_dbl4no$(t),!0)},Nt.prototype.transferTo_pxvbjg$=function(t,e){var n,i=this.readable.remaining;return i.compareTo_11rb$(e)<=0?(t.writable.writePacket_3uq2w4$(this.readable),t.afterWrite_za3lpa$(i.toInt()),this.afterRead_za3lpa$(i.toInt()),n=i):n=_,n},ve.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},ve.prototype=Object.create(u.prototype),ve.prototype.constructor=ve,ve.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this.awaitAtLeastNBytesAvailableForWrite_kcn2v3$(1,this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=this.$this.writeAvailable_j2u0py$(this.local$src,this),this.result_0===l)return l;continue;case 3:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.writeAvailableSuspend_2ppiy2$_0=function(t,e,n){var i=new ve(this,t,e);return n?i:i.doResume(null)},Ce.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},Ce.prototype=Object.create(u.prototype),Ce.prototype.constructor=Ce,Ce.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this.awaitAtLeastNBytesAvailableForWrite_kcn2v3$(1,this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=this.$this.writeAvailable_mj6st8$(this.local$src,this.local$offset,this.local$length,this),this.result_0===l)return l;continue;case 3:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.writeAvailableSuspend_1zn44g$_0=function(t,e,n,i,o){var r=new Ce(this,t,e,n,i);return o?r:r.doResume(null)},Nt.prototype.afterWrite_za3lpa$=function(t){this.addBytesWritten_9dtw3h$_0(t),this.closed&&(this.writable.release(),this.ensureNotClosed_ozgwi5$_0()),(this.autoFlush||0===this.availableForWrite)&&this.flush()},Ne.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},Ne.prototype=Object.create(u.prototype),Ne.prototype.constructor=Ne,Ne.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.$this.flush(),this.state_0=2,this.result_0=this.$this.awaitAtLeastNBytesAvailableForWrite_kcn2v3$(1,this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:return void this.$this.ensureNotClosed_ozgwi5$_0();default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.awaitFreeSpace=function(t,e){var n=new Ne(this,t);return e?n:n.doResume(null)},Te.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},Te.prototype=Object.create(u.prototype),Te.prototype.constructor=Te,Te.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this.await_za3lpa$(1,this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.awaitContent=function(t,e){var n=new Te(this,t);return e?n:n.doResume(null)},Le.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},Le.prototype=Object.create(u.prototype),Le.prototype.constructor=Le,Le.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n=y(this.local$closure$min.add(this.local$closure$offset),o).toInt();if(this.state_0=2,this.result_0=this.local$$receiver.await_za3lpa$(n,this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:var i=null!=(t=this.local$$receiver.request_za3lpa$(1))?t:Bi().Empty;if((i.writePosition-i.readPosition|0)>this.local$closure$offset.toNumber()){var r=this.local$closure$bytesCopied,s=e.Long.fromInt(i.writePosition-i.readPosition|0).subtract(this.local$closure$offset),a=this.local$closure$max,c=e.Long.fromInt(this.local$closure$destination.view.byteLength).subtract(this.local$closure$destinationOffset),u=a.compareTo_11rb$(c)<=0?a:c;return r.v=s.compareTo_11rb$(u)<=0?s:u,i.memory.copyTo_q2ka7j$(this.local$closure$destination,this.local$closure$offset,this.local$closure$bytesCopied.v,this.local$closure$destinationOffset),p}this.state_0=3;continue;case 3:return p;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},we.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},we.prototype=Object.create(u.prototype),we.prototype.constructor=we,we.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$bytesCopied={v:_},this.state_0=2,this.result_0=this.$this.readSuspendableSession_kiqllg$(ze(this.local$min,this.local$offset,this.local$max,this.local$destination,this.local$destinationOffset,this.local$bytesCopied),this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:return this.local$bytesCopied.v;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nt.prototype.peekTo_afjyek$$default=function(t,e,n,i,o,r,s){var a=new we(this,t,e,n,i,o,r);return s?a:a.doResume(null)},Nt.prototype.addBytesRead_w6zh0o$_0=function(t){if(!(t>=0))throw L(("Can't read negative amount of bytes: "+t).toString());if(this.channelSize_gcvxze$_0.atomicfu$getAndAdd(0|-t),this._totalBytesRead_mx8dwu$_0.atomicfu$addAndGet$long(e.Long.fromInt(t)),this._availableForRead_c8qrsp$_0.atomicfu$getAndAdd(0|-t),!(this.channelSize_gcvxze$_0.kotlinx$atomicfu$value>=0)){var n="Readable bytes count is negative: "+this.availableForRead+", "+t+" in "+this;throw N(n.toString())}if(!(this.availableForRead>=0)){var i="Readable bytes count is negative: "+this.availableForRead+", "+t+" in "+this;throw N(i.toString())}},Nt.prototype.addBytesWritten_9dtw3h$_0=function(t){if(!(t>=0))throw L(("Can't write negative amount of bytes: "+t).toString());if(this.channelSize_gcvxze$_0.atomicfu$getAndAdd(t),this._totalBytesWritten_s86f3f$_0.atomicfu$addAndGet$long(e.Long.fromInt(t)),!(this.channelSize_gcvxze$_0.kotlinx$atomicfu$value>=0)){var n="Readable bytes count is negative: "+this.channelSize_gcvxze$_0.kotlinx$atomicfu$value+", "+t+" in "+this;throw N(n.toString())}},Nt.$metadata$={kind:d,simpleName:"ByteChannelSequentialBase",interfaces:[Qe,Xe,Fe,Ct,Uo,Oo]},w("ktor-ktor-io-js-legacy.io.ktor.utils.io.discardExact_b56lbm$",O((function(){var n=e.equals,i=t.io.ktor.utils.io.errors.EOFException;return function(t,o,r){if(e.suspendCall(t.discard_s8cxhz$(o,e.coroutineReceiver())),!n(e.coroutineResult(e.coroutineReceiver()),o))throw new i("Unable to discard "+o.toString()+" bytes")}}))),Oe.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},Oe.prototype=Object.create(u.prototype),Oe.prototype.constructor=Oe,Oe.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(void 0===this.local$limit&&(this.local$limit=z),this.state_0=2,this.result_0=No(this.local$$receiver,this.local$dst,this.local$limit,this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:var t=this.result_0;return Re(this.local$dst),t;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},w("ktor-ktor-io-js-legacy.io.ktor.utils.io.writePacket_4qjh7u$",O((function(){var n=t.io.ktor.utils.io.core.BytePacketBuilder,i=Error;return function(t,o,r){var s,a=new n;try{o(a),s=a.build()}catch(t){throw e.isType(t,i)?(a.release(),t):t}return e.suspendCall(t.writePacket_3uq2w4$(s,e.coroutineReceiver())),e.coroutineResult(e.coroutineReceiver())}}))),Ae.$metadata$={kind:d,simpleName:"ClosedWriteChannelException",interfaces:[A]},w("ktor-ktor-io-js-legacy.io.ktor.utils.io.readShort_e2pdtf$",O((function(){var n=t.io.ktor.utils.io.bits.reverseByteOrder_5vcgdc$,i=t.io.ktor.utils.io.core.ByteOrder,o=e.equals;return function(t,r,s){e.suspendCall(t.readShort(e.coroutineReceiver()));var a=e.coroutineResult(e.coroutineReceiver());return o(r,i.BIG_ENDIAN)?a:n(a)}}))),w("ktor-ktor-io-js-legacy.io.ktor.utils.io.readInt_e2pdtf$",O((function(){var n=t.io.ktor.utils.io.bits.reverseByteOrder_s8ev3n$,i=t.io.ktor.utils.io.core.ByteOrder,o=e.equals;return function(t,r,s){e.suspendCall(t.readInt(e.coroutineReceiver()));var a=e.coroutineResult(e.coroutineReceiver());return o(r,i.BIG_ENDIAN)?a:n(a)}}))),w("ktor-ktor-io-js-legacy.io.ktor.utils.io.readLong_e2pdtf$",O((function(){var n=t.io.ktor.utils.io.bits.reverseByteOrder_mts6qi$,i=t.io.ktor.utils.io.core.ByteOrder,o=e.equals;return function(t,r,s){e.suspendCall(t.readLong(e.coroutineReceiver()));var a=e.coroutineResult(e.coroutineReceiver());return o(r,i.BIG_ENDIAN)?a:n(a)}}))),w("ktor-ktor-io-js-legacy.io.ktor.utils.io.readFloat_e2pdtf$",O((function(){var n=t.io.ktor.utils.io.bits.reverseByteOrder_81szk$,i=t.io.ktor.utils.io.core.ByteOrder,o=e.equals;return function(t,r,s){e.suspendCall(t.readFloat(e.coroutineReceiver()));var a=e.coroutineResult(e.coroutineReceiver());return o(r,i.BIG_ENDIAN)?a:n(a)}}))),w("ktor-ktor-io-js-legacy.io.ktor.utils.io.readDouble_e2pdtf$",O((function(){var n=t.io.ktor.utils.io.bits.reverseByteOrder_yrwdxr$,i=t.io.ktor.utils.io.core.ByteOrder,o=e.equals;return function(t,r,s){e.suspendCall(t.readDouble(e.coroutineReceiver()));var a=e.coroutineResult(e.coroutineReceiver());return o(r,i.BIG_ENDIAN)?a:n(a)}}))),w("ktor-ktor-io-js-legacy.io.ktor.utils.io.readShortLittleEndian_3dmw3p$",O((function(){var n=t.io.ktor.utils.io.bits.reverseByteOrder_5vcgdc$;return function(t,i){return e.suspendCall(t.readShort(e.coroutineReceiver())),n(e.coroutineResult(e.coroutineReceiver()))}}))),w("ktor-ktor-io-js-legacy.io.ktor.utils.io.readIntLittleEndian_3dmw3p$",O((function(){var n=t.io.ktor.utils.io.bits.reverseByteOrder_s8ev3n$;return function(t,i){return e.suspendCall(t.readInt(e.coroutineReceiver())),n(e.coroutineResult(e.coroutineReceiver()))}}))),w("ktor-ktor-io-js-legacy.io.ktor.utils.io.readLongLittleEndian_3dmw3p$",O((function(){var n=t.io.ktor.utils.io.bits.reverseByteOrder_mts6qi$;return function(t,i){return e.suspendCall(t.readLong(e.coroutineReceiver())),n(e.coroutineResult(e.coroutineReceiver()))}}))),w("ktor-ktor-io-js-legacy.io.ktor.utils.io.readFloatLittleEndian_3dmw3p$",O((function(){var n=t.io.ktor.utils.io.bits.reverseByteOrder_81szk$;return function(t,i){return e.suspendCall(t.readFloat(e.coroutineReceiver())),n(e.coroutineResult(e.coroutineReceiver()))}}))),w("ktor-ktor-io-js-legacy.io.ktor.utils.io.readDoubleLittleEndian_3dmw3p$",O((function(){var n=t.io.ktor.utils.io.bits.reverseByteOrder_yrwdxr$;return function(t,i){return e.suspendCall(t.readDouble(e.coroutineReceiver())),n(e.coroutineResult(e.coroutineReceiver()))}}))),xe.$metadata$={kind:d,simpleName:"CloseElement",interfaces:[]},Ie.$metadata$={kind:a,simpleName:"ReaderJob",interfaces:[I]},Ue.$metadata$={kind:a,simpleName:"WriterJob",interfaces:[I]},De.$metadata$={kind:a,simpleName:"ReaderScope",interfaces:[U]},Pe.$metadata$={kind:a,simpleName:"WriterScope",interfaces:[U]},Me.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},Me.prototype=Object.create(u.prototype),Me.prototype.constructor=Me,Me.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;this.local$closure$attachJob&&this.local$closure$channel.attachJob_dqr1mp$(h(this.local$$receiver.coroutineContext.get_j3r2sn$(I.Key)));var n=e.isType(t=new ke(this.local$$receiver,this.local$closure$channel),U)?t:f();if(this.exceptionState_0=2,this.state_0=1,this.result_0=this.local$closure$block(n,this),this.result_0===l)return l;continue;case 1:return this.result_0;case 2:this.exceptionState_0=5;var i=this.exception_0;if(e.isType(i,x)){if(!m(this.local$closure$dispatcher,P.Dispatchers.Unconfined)&&null!=this.local$closure$dispatcher)throw i;return this.local$closure$channel.cancel_dbl4no$(i)}throw i;case 3:this.state_0=4;continue;case 4:return;case 5:throw this.exception_0;default:throw this.state_0=5,new Error("State Machine Unreachable execution")}}catch(t){if(5===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Object.defineProperty(ke.prototype,"channel",{get:function(){return this.channel_79cwt9$_0}}),Object.defineProperty(ke.prototype,"coroutineContext",{configurable:!0,get:function(){return this.$delegate_h3p63m$_0.coroutineContext}}),ke.$metadata$={kind:d,simpleName:"ChannelScope",interfaces:[Pe,De,U]},Object.defineProperty(je.prototype,"channel",{get:function(){return this.channel_zg1n2y$_0}}),je.prototype.toString=function(){return"ChannelJob["+this.delegate_0+"]"},Object.defineProperty(je.prototype,"children",{configurable:!0,get:function(){return this.delegate_0.children}}),Object.defineProperty(je.prototype,"isActive",{configurable:!0,get:function(){return this.delegate_0.isActive}}),Object.defineProperty(je.prototype,"isCancelled",{configurable:!0,get:function(){return this.delegate_0.isCancelled}}),Object.defineProperty(je.prototype,"isCompleted",{configurable:!0,get:function(){return this.delegate_0.isCompleted}}),Object.defineProperty(je.prototype,"key",{configurable:!0,get:function(){return this.delegate_0.key}}),Object.defineProperty(je.prototype,"onJoin",{configurable:!0,get:function(){return this.delegate_0.onJoin}}),je.prototype.attachChild_kx8v25$=function(t){return this.delegate_0.attachChild_kx8v25$(t)},je.prototype.cancel=function(){return this.delegate_0.cancel()},je.prototype.cancel_dbl4no$$default=function(t){return this.delegate_0.cancel_dbl4no$$default(t)},je.prototype.cancel_x5z25k$$default=function(t){return this.delegate_0.cancel_x5z25k$$default(t)},je.prototype.fold_3cc69b$=function(t,e){return this.delegate_0.fold_3cc69b$(t,e)},je.prototype.get_j3r2sn$=function(t){return this.delegate_0.get_j3r2sn$(t)},je.prototype.getCancellationException=function(){return this.delegate_0.getCancellationException()},je.prototype.invokeOnCompletion_ct2b2z$$default=function(t,e,n){return this.delegate_0.invokeOnCompletion_ct2b2z$$default(t,e,n)},je.prototype.invokeOnCompletion_f05bi3$=function(t){return this.delegate_0.invokeOnCompletion_f05bi3$(t)},je.prototype.join=function(t){return this.delegate_0.join(t)},je.prototype.minusKey_yeqjby$=function(t){return this.delegate_0.minusKey_yeqjby$(t)},je.prototype.plus_1fupul$=function(t){return this.delegate_0.plus_1fupul$(t)},je.prototype.plus_dqr1mp$=function(t){return this.delegate_0.plus_dqr1mp$(t)},je.prototype.start=function(){return this.delegate_0.start()},je.$metadata$={kind:d,simpleName:"ChannelJob",interfaces:[Ue,Ie,I]},w("ktor-ktor-io-js-legacy.io.ktor.utils.io.read_ons6h$",O((function(){var n=t.io.ktor.utils.io.requestBuffer_78elpf$,i=t.io.ktor.utils.io.core.Buffer,o=t.io.ktor.utils.io.completeReadingFromBuffer_6msh3s$,r=Error;return function(t,s,a,c){var l;void 0===s&&(s=1),e.suspendCall(n(t,s,e.coroutineReceiver()));var u=null!=(l=e.coroutineResult(e.coroutineReceiver()))?l:i.Companion.Empty;try{var h=a(u.memory,e.Long.fromInt(u.readPosition),e.Long.fromInt(u.writePosition));return e.suspendCall(o(t,u,h,e.coroutineReceiver())),h}catch(n){throw e.isType(n,r)?(e.suspendCall(o(t,u,0,e.coroutineReceiver())),n):n}}}))),qe.prototype.request_za3lpa$=function(t,e){return void 0===t&&(t=1),e?e(t):this.request_za3lpa$$default(t)},qe.$metadata$={kind:a,simpleName:"ReadSession",interfaces:[]},Fe.prototype.await_za3lpa$=function(t,e,n){return void 0===t&&(t=1),n?n(t,e):this.await_za3lpa$$default(t,e)},Fe.$metadata$={kind:a,simpleName:"SuspendableReadSession",interfaces:[qe]},Be.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},Be.prototype=Object.create(u.prototype),Be.prototype.constructor=Be,Be.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(t=e.isType(this.local$$receiver,Fe)?this.local$$receiver:e.isType(this.local$$receiver,Xe)?this.local$$receiver.startReadSession():null,this.local$readSession=t,null!=this.local$readSession){var n=this.local$readSession.request_za3lpa$(j(this.local$desiredSize,8));if(null!=n)return n;this.state_0=2;continue}this.state_0=4;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=(i=this.local$readSession,o=this.local$desiredSize,r=void 0,s=void 0,s=new He(i,o,this),r?s:s.doResume(null)),this.result_0===l)return l;continue;case 3:return this.result_0;case 4:if(this.state_0=5,this.result_0=Ke(this.local$$receiver,this.local$desiredSize,this),this.result_0===l)return l;continue;case 5:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}var i,o,r,s},We.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},We.prototype=Object.create(u.prototype),We.prototype.constructor=We,We.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(!(this.local$bytesRead>=0)){var t="bytesRead shouldn't be negative: "+this.local$bytesRead;throw N(t.toString())}var n;if(null!=(n=e.isType(this.local$$receiver,Xe)?this.local$$receiver.startReadSession():null))return n.discard_za3lpa$(this.local$bytesRead),void(e.isType(this.local$$receiver,Xe)&&this.local$$receiver.endReadSession());this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(e.isType(this.local$buffer,Ui)&&this.local$buffer!==Bi().Empty){if(this.local$buffer.release_2bs5fo$(Bi().Pool),this.state_0=3,this.result_0=this.local$$receiver.discard_s8cxhz$(e.Long.fromInt(this.local$bytesRead),this),this.result_0===l)return l;continue}this.state_0=4;continue;case 3:this.state_0=4;continue;case 4:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},He.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},He.prototype=Object.create(u.prototype),He.prototype.constructor=He,He.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.await_za3lpa$(this.local$desiredSize,this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:return this.local$$receiver.request_za3lpa$(1);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ve.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},Ve.prototype=Object.create(u.prototype),Ve.prototype.constructor=Ve,Ve.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$chunk=Bi().Pool.borrow(),this.state_0=2,this.result_0=this.local$$receiver.peekTo_afjyek$(this.local$chunk.memory,e.Long.fromInt(this.local$chunk.writePosition),_,e.Long.fromInt(this.local$desiredSize),e.Long.fromInt(this.local$chunk.limit-this.local$chunk.writePosition|0),this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:var t=this.result_0;return this.local$chunk.commitWritten_za3lpa$(t.toInt()),this.local$chunk;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Xe.$metadata$={kind:a,simpleName:"HasReadSession",interfaces:[]},w("ktor-ktor-io-js-legacy.io.ktor.utils.io.write_k0oolq$",O((function(){var n=t.io.ktor.utils.io.requestWriteBuffer_9tm6dw$,i=t.io.ktor.utils.io.core.Buffer,o=t.io.ktor.utils.io.completeWriting_oczduq$;return function(t,r,s,a){var c;void 0===r&&(r=1),e.suspendCall(n(t,r,e.coroutineReceiver()));var l=null!=(c=e.coroutineResult(e.coroutineReceiver()))?c:i.Companion.Empty,u=0;try{return u=s(l.memory,e.Long.fromInt(l.writePosition),e.Long.fromInt(l.limit)),l.commitWritten_za3lpa$(u),u}finally{e.suspendCall(o(t,l,u,e.coroutineReceiver()))}}}))),Je.$metadata$={kind:a,simpleName:"WriterSession",interfaces:[]},Ye.$metadata$={kind:a,simpleName:"WriterSuspendSession",interfaces:[Je]},Qe.$metadata$={kind:a,simpleName:"HasWriteSession",interfaces:[]},Ze.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},Ze.prototype=Object.create(u.prototype),Ze.prototype.constructor=Ze,Ze.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(t=e.isType(this.local$$receiver,Qe)?this.local$$receiver.beginWriteSession():null,this.local$session=t,null!=this.local$session){var n=this.local$session.request_za3lpa$(this.local$desiredSpace);if(null!=n)return n;this.state_0=2;continue}this.state_0=4;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=(o=this.local$session,r=this.local$desiredSpace,s=void 0,a=void 0,a=new en(o,r,this),s?a:a.doResume(null)),this.result_0===l)return l;continue;case 3:return this.result_0;case 4:return i=void 0,(i=Bi().Pool.borrow()).resetForWrite(),i.reserveEndGap_za3lpa$(8),i;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}var i,o,r,s,a},tn.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},tn.prototype=Object.create(u.prototype),tn.prototype.constructor=tn,tn.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(e.isType(this.local$buffer,Ui)){if(this.state_0=2,this.result_0=this.local$$receiver.writeFully_b4g5fm$(this.local$buffer,this),this.result_0===l)return l;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:return void this.local$buffer.release_2bs5fo$(Bi().Pool);case 3:throw G("Only ChunkBuffer instance is supported.");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},en.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},en.prototype=Object.create(u.prototype),en.prototype.constructor=en,en.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(this.state_0=2,this.result_0=this.local$session.tryAwait_za3lpa$(this.local$desiredSpace,this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:return null!=(t=this.local$session.request_za3lpa$(this.local$desiredSpace))?t:this.local$session.request_za3lpa$(1);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},nn.$metadata$={kind:a,simpleName:"Allocator",interfaces:[]},sn.$metadata$={kind:d,simpleName:"TooLongLineException",interfaces:[yr]},Object.defineProperty(dn.prototype,"readPosition",{configurable:!0,get:function(){return this.readPosition_osecaz$_0},set:function(t){this.readPosition_osecaz$_0=t}}),Object.defineProperty(dn.prototype,"writePosition",{configurable:!0,get:function(){return this.writePosition_oj9ite$_0},set:function(t){this.writePosition_oj9ite$_0=t}}),Object.defineProperty(dn.prototype,"startGap",{configurable:!0,get:function(){return this.startGap_cakrhy$_0},set:function(t){this.startGap_cakrhy$_0=t}}),Object.defineProperty(dn.prototype,"limit",{configurable:!0,get:function(){return this.limit_uf38zz$_0},set:function(t){this.limit_uf38zz$_0=t}}),Object.defineProperty(dn.prototype,"endGap",{configurable:!0,get:w("ktor-ktor-io-js-legacy.io.ktor.utils.io.core.Buffer.get_endGap",(function(){return this.capacity-this.limit|0}))}),Object.defineProperty(dn.prototype,"readRemaining",{configurable:!0,get:w("ktor-ktor-io-js-legacy.io.ktor.utils.io.core.Buffer.get_readRemaining",(function(){return this.writePosition-this.readPosition|0}))}),Object.defineProperty(dn.prototype,"writeRemaining",{configurable:!0,get:w("ktor-ktor-io-js-legacy.io.ktor.utils.io.core.Buffer.get_writeRemaining",(function(){return this.limit-this.writePosition|0}))}),dn.prototype.discardExact_za3lpa$=function(t){if(void 0===t&&(t=this.writePosition-this.readPosition|0),0!==t){var e=this.readPosition+t|0;(t<0||e>this.writePosition)&&gn(t,this.writePosition-this.readPosition|0),this.readPosition=e}},dn.prototype.commitWritten_za3lpa$=function(t){var e=this.writePosition+t|0;(t<0||e>this.limit)&&$n(t,this.limit-this.writePosition|0),this.writePosition=e},dn.prototype.commitWrittenUntilIndex_za3lpa$=function(t){var e=this.limit;if(t=e){if(t===e)return this.writePosition=t,!1;$n(t-this.writePosition|0,this.limit-this.writePosition|0)}return this.writePosition=t,!0},dn.prototype.discardUntilIndex_kcn2v3$=function(t){(t<0||t>this.writePosition)&&gn(t-this.readPosition|0,this.writePosition-this.readPosition|0),this.readPosition!==t&&(this.readPosition=t)},dn.prototype.rewind_za3lpa$=function(t){void 0===t&&(t=this.readPosition-this.startGap|0);var e=this.readPosition-t|0;e=0))throw L(("startGap shouldn't be negative: "+t).toString());if(!(this.readPosition>=t))return this.readPosition===this.writePosition?(t>this.limit&&yn(this,t),this.writePosition=t,this.readPosition=t,void(this.startGap=t)):void bn(this,t);this.startGap=t},dn.prototype.reserveEndGap_za3lpa$=function(t){if(!(t>=0))throw L(("endGap shouldn't be negative: "+t).toString());var e=this.capacity-t|0;if(e>=this.writePosition)this.limit=e;else{if(e<0&&Sn(this,t),e=0))throw L(("newReadPosition shouldn't be negative: "+t).toString());if(!(t<=this.readPosition)){var e="newReadPosition shouldn't be ahead of the read position: "+t+" > "+this.readPosition;throw L(e.toString())}this.readPosition=t,this.startGap>t&&(this.startGap=t)},dn.prototype.duplicateTo_b4g5fm$=function(t){t.limit=this.limit,t.startGap=this.startGap,t.readPosition=this.readPosition,t.writePosition=this.writePosition},dn.prototype.duplicate=function(){var t=new dn(this.memory);return t.duplicateTo_b4g5fm$(t),t},dn.prototype.tryPeekByte=function(){var t=this.readPosition;return t===this.writePosition?-1:255&this.memory.view.getInt8(t)},dn.prototype.tryReadByte=function(){var t=this.readPosition;return t===this.writePosition?-1:(this.readPosition=t+1|0,255&this.memory.view.getInt8(t))},dn.prototype.readByte=function(){var t=this.readPosition;if(t===this.writePosition)throw new Hr("No readable bytes available.");return this.readPosition=t+1|0,this.memory.view.getInt8(t)},dn.prototype.writeByte_s8j3t7$=function(t){var e=this.writePosition;if(e===this.limit)throw new Tn("No free space in the buffer to write a byte");this.memory.view.setInt8(e,t),this.writePosition=e+1|0},dn.prototype.reset=function(){this.releaseGaps_8be2vx$(),this.resetForWrite()},dn.prototype.toString=function(){return"Buffer("+(this.writePosition-this.readPosition|0)+" used, "+(this.limit-this.writePosition|0)+" free, "+(this.startGap+(this.capacity-this.limit|0)|0)+" reserved of "+this.capacity+")"},Object.defineProperty(pn.prototype,"Empty",{configurable:!0,get:function(){return Bi().Empty}}),pn.$metadata$={kind:W,simpleName:"Companion",interfaces:[]};var _n,mn=null;function fn(){return null===mn&&new pn,mn}function gn(t,e){throw new Hr("Unable to discard "+t+" bytes: only "+e+" available for reading")}function $n(t,e){throw new Hr("Unable to discard "+t+" bytes: only "+e+" available for writing")}function En(t,e){throw L("Unable to rewind "+t+" bytes: only "+e+" could be rewinded")}function yn(t,e){if(e>t.capacity)throw L("Start gap "+e+" is bigger than the capacity "+t.capacity);throw N("Unable to reserve "+e+" start gap: there are already "+(t.capacity-t.limit|0)+" bytes reserved in the end")}function bn(t,e){throw N("Unable to reserve "+e+" start gap: there are already "+(t.writePosition-t.readPosition|0)+" content bytes starting at offset "+t.readPosition)}function Sn(t,e){throw L("End gap "+e+" is too big: capacity is "+t.capacity)}function vn(t,e){throw L("End gap "+e+" is too big: there are already "+t.startGap+" bytes reserved in the beginning")}function Cn(t,e){throw L("Unable to reserve end gap "+e+": there are already "+(t.writePosition-t.readPosition|0)+" content bytes at offset "+t.readPosition)}function Nn(t,e){t.releaseStartGap_kcn2v3$(t.readPosition-e|0)}function Tn(t){void 0===t&&(t="Not enough free space"),H(t,this),this.name="InsufficientSpaceException"}function Ln(t,e,n,i){return i=i||Object.create(Tn.prototype),Tn.call(i,"Not enough free space to write "+t+" of "+e+" bytes, available "+n+" bytes."),i}function zn(t,e,n){var i=e.writePosition-e.readPosition|0,o=T.min(i,n);(t.limit-t.writePosition|0)<=o&&function(t,e){if(((t.limit-t.writePosition|0)+(t.capacity-t.limit|0)|0)0&&t.releaseEndGap_8be2vx$()}(t,o),e.memory.copyTo_ubllm2$(t.memory,e.readPosition,o,t.writePosition);var r=o;e.discardExact_za3lpa$(r);var s=r;return t.commitWritten_za3lpa$(s),s}function wn(t,e){var n=e.writePosition-e.readPosition|0,i=t.readPosition;if(i=0))throw L("Failed requirement.".toString());if(!(n<=(e.limit-e.writePosition|0)))throw L("Failed requirement.".toString());var i={v:null},o=t.memory,r=t.readPosition;if((t.writePosition-r|0)=0))throw L(("length shouldn't be negative: "+n).toString());if(!(n<=(e.writePosition-e.readPosition|0))){var i="length shouldn't be greater than the source read remaining: "+n+" > "+(e.writePosition-e.readPosition|0);throw L(i.toString())}if(!(n<=(t.limit-t.writePosition|0))){var o="length shouldn't be greater than the destination write remaining space: "+n+" > "+(t.limit-t.writePosition|0);throw L(o.toString())}var r=t.memory,s=t.writePosition,a=t.limit-s|0;if(a0}}),Object.defineProperty(Vn.prototype,"_pool",{configurable:!0,get:function(){return this.pool}}),Vn.prototype.closeDestination=function(){},Vn.prototype.flush_9etqdk$=function(t,e,n){},Vn.prototype.append_s8itvh$=function(t){var n;return e.isType(n=fi.prototype.append_s8itvh$.call(this,t),Vn)?n:f()},Vn.prototype.append_gw00v9$=function(t){var n;return e.isType(n=fi.prototype.append_gw00v9$.call(this,t),Vn)?n:f()},Vn.prototype.append_ezbsdh$=function(t,n,i){var o;return e.isType(o=fi.prototype.append_ezbsdh$.call(this,t,n,i),Vn)?o:f()},Vn.prototype.build=function(){var t=this.size,n=this.stealAll_8be2vx$();return null==n?Yn().Empty:new Kn(n,e.Long.fromInt(t),this.pool)},Vn.prototype.toString=function(){return"BytePacketBuilder("+this.size+" bytes written)"},Vn.$metadata$={kind:d,simpleName:"BytePacketBuilder",interfaces:[fi]},Kn.prototype.copy=function(){return new Kn(Bn(this.head),this.remaining,this.pool)},Kn.prototype.fill=function(){return null},Kn.prototype.fill_9etqdk$=function(t,e,n){return 0},Kn.prototype.closeSource=function(){},Kn.prototype.toString=function(){return"ByteReadPacket("+this.remaining.toString()+" bytes remaining)"},Xn.$metadata$={kind:W,simpleName:"Companion",interfaces:[]};var Jn=null;function Yn(){return null===Jn&&new Xn,Jn}function Qn(t,e,n){return n=n||Object.create(Kn.prototype),Kn.call(n,t,Hn(t),e),n}function Zn(t,n,i){ii(),void 0===t&&(t=Bi().Empty),void 0===n&&(n=Hn(t)),void 0===i&&(i=Bi().Pool),this.pool=i,this._head_g6i1fh$_vyxu5r$_0=t,this.headMemory=t.memory,this.headPosition=t.readPosition,this.headEndExclusive=t.writePosition,this.tailRemaining_kvq7my$_0=n.subtract(e.Long.fromInt(this.headEndExclusive-this.headPosition|0)),this.noMoreChunksAvailable_qul5an$_0=!1}function ti(t,e){this.closure$destination=t,this.idx_0=e}function ei(){ni=this}Kn.$metadata$={kind:d,simpleName:"ByteReadPacket",interfaces:[Zn]},Object.defineProperty(Zn.prototype,"endOfInput",{configurable:!0,get:function(){return 0==(this.headEndExclusive-this.headPosition|0)&&m(this.tailRemaining,_)&&(this.noMoreChunksAvailable_qul5an$_0||null==this.doFill_9l192i$_0())}}),Object.defineProperty(Zn.prototype,"_head_g6i1fh$_0",{configurable:!0,get:function(){return this._head_g6i1fh$_vyxu5r$_0},set:function(t){this._head_g6i1fh$_vyxu5r$_0=t,this.headMemory=t.memory,this.headPosition=t.readPosition,this.headEndExclusive=t.writePosition}}),Object.defineProperty(Zn.prototype,"head",{configurable:!0,get:function(){var t=this._head_g6i1fh$_0;return t.discardUntilIndex_kcn2v3$(this.headPosition),t}}),Object.defineProperty(Zn.prototype,"tailRemaining",{configurable:!0,get:function(){return this.tailRemaining_kvq7my$_0},set:function(t){if(!(t.toNumber()>=0)){var e="tailRemaining shouldn't be negative: "+t.toString();throw L(e.toString())}this.tailRemaining_kvq7my$_0=t}}),Object.defineProperty(Zn.prototype,"headRemaining",{configurable:!0,get:w("ktor-ktor-io-js-legacy.io.ktor.utils.io.core.Input.get_headRemaining",(function(){return this.headEndExclusive-this.headPosition|0}))}),Zn.prototype.prefetch_8e33dg$=function(t){if(t.toNumber()<=0)return!0;var n=this.headEndExclusive-this.headPosition|0;return n>=t.toNumber()||e.Long.fromInt(n).add(this.tailRemaining).compareTo_11rb$(t)>=0||this.doPrefetch_pddalv$_0(t)},Zn.prototype.peekTo_afjyek$=function(t,n,i,o,r){var s;void 0===i&&(i=_),void 0===o&&(o=X),void 0===r&&(r=z),this.prefetch_8e33dg$(o.add(i));for(var a=this.head,c=_,l=i,u=n,h=e.Long.fromInt(t.view.byteLength).subtract(n),d=r.compareTo_11rb$(h)<=0?r:h;c.compareTo_11rb$(o)<0&&c.compareTo_11rb$(d)<0;){var p=a,m=p.writePosition-p.readPosition|0;if(m>l.toNumber()){var f=e.Long.fromInt(m).subtract(l),g=d.subtract(c),$=f.compareTo_11rb$(g)<=0?f:g;a.memory.copyTo_q2ka7j$(t,e.Long.fromInt(a.readPosition).add(l),$,u),l=_,c=c.add($),u=u.add($)}else l=l.subtract(e.Long.fromInt(m));if(null==(s=a.next))break;a=s}return c},Zn.prototype.doPrefetch_pddalv$_0=function(t){var n=Wn(this._head_g6i1fh$_0),i=e.Long.fromInt(this.headEndExclusive-this.headPosition|0).add(this.tailRemaining);do{var o=this.fill();if(null==o)return this.noMoreChunksAvailable_qul5an$_0=!0,!1;var r=o.writePosition-o.readPosition|0;n===Bi().Empty?(this._head_g6i1fh$_0=o,n=o):(n.next=o,this.tailRemaining=this.tailRemaining.add(e.Long.fromInt(r))),i=i.add(e.Long.fromInt(r))}while(i.compareTo_11rb$(t)<0);return!0},Object.defineProperty(Zn.prototype,"remaining",{configurable:!0,get:function(){return e.Long.fromInt(this.headEndExclusive-this.headPosition|0).add(this.tailRemaining)}}),Zn.prototype.canRead=function(){return this.headPosition!==this.headEndExclusive||!m(this.tailRemaining,_)},Zn.prototype.hasBytes_za3lpa$=function(t){return e.Long.fromInt(this.headEndExclusive-this.headPosition|0).add(this.tailRemaining).toNumber()>=t},Zn.prototype.release=function(){var t=this.head,e=Bi().Empty;t!==e&&(this._head_g6i1fh$_0=e,this.tailRemaining=_,Fn(t,this.pool))},Zn.prototype.close=function(){this.release(),this.noMoreChunksAvailable_qul5an$_0||(this.noMoreChunksAvailable_qul5an$_0=!0),this.closeSource()},Zn.prototype.stealAll_8be2vx$=function(){var t=this.head,e=Bi().Empty;return t===e?null:(this._head_g6i1fh$_0=e,this.tailRemaining=_,t)},Zn.prototype.steal_8be2vx$=function(){var t=this.head,n=t.next,i=Bi().Empty;return t===i?null:(null==n?(this._head_g6i1fh$_0=i,this.tailRemaining=_):(this._head_g6i1fh$_0=n,this.tailRemaining=this.tailRemaining.subtract(e.Long.fromInt(n.writePosition-n.readPosition|0))),t.next=null,t)},Zn.prototype.append_pvnryh$=function(t){if(t!==Bi().Empty){var n=Hn(t);this._head_g6i1fh$_0===Bi().Empty?(this._head_g6i1fh$_0=t,this.tailRemaining=n.subtract(e.Long.fromInt(this.headEndExclusive-this.headPosition|0))):(Wn(this._head_g6i1fh$_0).next=t,this.tailRemaining=this.tailRemaining.add(n))}},Zn.prototype.tryWriteAppend_pvnryh$=function(t){var n=Wn(this.head),i=t.writePosition-t.readPosition|0,o=0===i;return o||(o=(n.limit-n.writePosition|0)=0))throw L(("Negative discard is not allowed: "+t).toString());return this.discardAsMuchAsPossible_ulotxs$_0(t,0)},Zn.prototype.discardExact_za3lpa$=function(t){if(this.discard_za3lpa$(t)!==t)throw new Hr("Unable to discard "+t+" bytes due to end of packet")},Zn.prototype.tryPeek=function(){var t,e,n=this.head;return(this.headEndExclusive-this.headPosition|0)>0?n.tryPeekByte():m(this.tailRemaining,_)&&this.noMoreChunksAvailable_qul5an$_0?-1:null!=(e=null!=(t=this.prepareReadLoop_yg4yvd$_0(1,n))?t.tryPeekByte():null)?e:-1},Zn.prototype.peekTo_j2u0py$=function(t){var n,i;if(null==(n=this.prepareReadHead_kcn2v3$(1)))return-1;var o=n,r=t.limit-t.writePosition|0,s=o.writePosition-o.readPosition|0,a=T.min(r,s);return qn(e.isType(i=t,dn)?i:f(),o,a),a},Zn.prototype.discard_s8cxhz$=function(t){return t.toNumber()<=0?_:this.discardAsMuchAsPossible_3oo2wm$_0(t,_)},ti.prototype.append_s8itvh$=function(t){var e;return this.closure$destination[(e=this.idx_0,this.idx_0=e+1|0,e)]=t,this},ti.prototype.append_gw00v9$=function(t){var e,n;if("string"==typeof t)Fr(t,this.closure$destination,this.idx_0),this.idx_0=this.idx_0+t.length|0;else if(null!=t){e=t.length;for(var i=0;i=0){var o=wi(this,this.remaining.toInt());return t.append_gw00v9$(o),o.length}return this.readASCII_lsba8n$_0(t,n,i)},Zn.prototype.readTextExact_a5kscm$=function(t,e){this.readText_5dvtqg$(t,e,e)},Zn.prototype.readText_vux9f0$=function(t,n){if(void 0===t&&(t=0),void 0===n&&(n=2147483647),0===t&&(0===n||this.endOfInput))return"";var i=this.remaining;if(i.toNumber()>0&&e.Long.fromInt(n).compareTo_11rb$(i)>=0)return wi(this,i.toInt());var o=B(j(Q(t,16),n));return this.readASCII_lsba8n$_0(o,t,n),o.toString()},Zn.prototype.readTextExact_za3lpa$=function(t){return this.readText_vux9f0$(t,t)},Zn.prototype.readASCII_lsba8n$_0=function(t,e,n){if(0===n&&0===e)return 0;if(this.endOfInput){if(0===e)return 0;this.atLeastMinCharactersRequire_wmluvz$_0(e)}else n=c)try{var d,p=a;n:do{for(var _={v:0},m={v:0},f={v:0},g=p.memory,$=p.readPosition,E=p.writePosition,y=$;y>=1,_.v=_.v+1|0;if(f.v=_.v,_.v=_.v-1|0,f.v>(E-y|0)){p.discardExact_za3lpa$(y-$|0),d=f.v;break n}}else if(m.v=m.v<<6|127&b,_.v=_.v-1|0,0===_.v){if(eo(m.v)){var T,L=et(tt(m.v));if(i.v===n?T=!1:(t.append_s8itvh$(Z(L)),i.v=i.v+1|0,T=!0),!T){p.discardExact_za3lpa$(y-$-f.v+1|0),d=-1;break n}}else if(no(m.v)){var z,w=et(tt(oo(m.v)));i.v===n?z=!1:(t.append_s8itvh$(Z(w)),i.v=i.v+1|0,z=!0);var O=!z;if(!O){var R,A=et(tt(io(m.v)));i.v===n?R=!1:(t.append_s8itvh$(Z(A)),i.v=i.v+1|0,R=!0),O=!R}if(O){p.discardExact_za3lpa$(y-$-f.v+1|0),d=-1;break n}}else to(m.v);m.v=0}}var x=E-$|0;p.discardExact_za3lpa$(x),d=0}while(0);c=0===d?1:d>0?d:0}finally{var I=a;l=I.writePosition-I.readPosition|0}else l=h;if(s=!1,0===l)r=uo(this,a);else{var U=l0)}finally{s&&lo(this,a)}}while(0);return i.vs?(t.releaseEndGap_8be2vx$(),this.headEndExclusive=t.writePosition,this.tailRemaining=this.tailRemaining.add(e.Long.fromInt(s))):(this._head_g6i1fh$_0=i,this.tailRemaining=this.tailRemaining.subtract(e.Long.fromInt((i.writePosition-i.readPosition|0)-s|0)),t.cleanNext(),t.release_2bs5fo$(this.pool))},Zn.prototype.fixGapAfterReadFallback_dfsyd9$_0=function(t){if(this.noMoreChunksAvailable_qul5an$_0&&null==t.next)return this.headPosition=t.readPosition,this.headEndExclusive=t.writePosition,void(this.tailRemaining=_);var e=t.writePosition-t.readPosition|0,n=8-(t.capacity-t.limit|0)|0,i=T.min(e,n);if(e>i)this.fixGapAfterReadFallbackUnreserved_cwr1c2$_0(t,e,i);else{var o=this.pool.borrow();o.reserveEndGap_za3lpa$(8),o.next=t.cleanNext(),zn(o,t,e),this._head_g6i1fh$_0=o}t.release_2bs5fo$(this.pool)},Zn.prototype.fixGapAfterReadFallbackUnreserved_cwr1c2$_0=function(t,e,n){var i=this.pool.borrow(),o=this.pool.borrow();i.reserveEndGap_za3lpa$(8),o.reserveEndGap_za3lpa$(8),i.next=o,o.next=t.cleanNext(),zn(i,t,e-n|0),zn(o,t,n),this._head_g6i1fh$_0=i,this.tailRemaining=Hn(o)},Zn.prototype.ensureNext_1iqd97$_0=function(t,n){var i;if(t===n)return this.doFill_9l192i$_0();var o=t.cleanNext();return t.release_2bs5fo$(this.pool),null==o?(this._head_g6i1fh$_0=n,this.tailRemaining=_,i=this.ensureNext_1iqd97$_0(n,n)):o.writePosition>o.readPosition?(this._head_g6i1fh$_0=o,this.tailRemaining=this.tailRemaining.subtract(e.Long.fromInt(o.writePosition-o.readPosition|0)),i=o):i=this.ensureNext_1iqd97$_0(o,n),i},Zn.prototype.fill=function(){var t=this.pool.borrow();try{t.reserveEndGap_za3lpa$(8);var n=this.fill_9etqdk$(t.memory,t.writePosition,t.limit-t.writePosition|0);return 0!==n||(this.noMoreChunksAvailable_qul5an$_0=!0,t.writePosition>t.readPosition)?(t.commitWritten_za3lpa$(n),t):(t.release_2bs5fo$(this.pool),null)}catch(n){throw e.isType(n,x)?(t.release_2bs5fo$(this.pool),n):n}},Zn.prototype.markNoMoreChunksAvailable=function(){this.noMoreChunksAvailable_qul5an$_0||(this.noMoreChunksAvailable_qul5an$_0=!0)},Zn.prototype.doFill_9l192i$_0=function(){if(this.noMoreChunksAvailable_qul5an$_0)return null;var t=this.fill();return null==t?(this.noMoreChunksAvailable_qul5an$_0=!0,null):(this.appendView_eeywmr$_0(t),t)},Zn.prototype.appendView_eeywmr$_0=function(t){var e,n,i=Wn(this._head_g6i1fh$_0);if(i===Bi().Empty){if(this._head_g6i1fh$_0=t,!m(this.tailRemaining,_))throw N("It should be no tail remaining bytes if current tail is EmptyBuffer");this.tailRemaining=null!=(n=null!=(e=t.next)?Hn(e):null)?n:_}else i.next=t,this.tailRemaining=this.tailRemaining.add(Hn(t))},Zn.prototype.prepareRead_za3lpa$=function(t){var e=this.head;return(this.headEndExclusive-this.headPosition|0)>=t?e:this.prepareReadLoop_yg4yvd$_0(t,e)},Zn.prototype.prepareRead_cvuqs$=function(t,e){return(this.headEndExclusive-this.headPosition|0)>=t?e:this.prepareReadLoop_yg4yvd$_0(t,e)},Zn.prototype.prepareReadLoop_yg4yvd$_0=function(t,n){var i,o,r=this.headEndExclusive-this.headPosition|0;if(r>=t)return n;if(null==(o=null!=(i=n.next)?i:this.doFill_9l192i$_0()))return null;var s=o;if(0===r)return n!==Bi().Empty&&this.releaseHead_pvnryh$(n),this.prepareReadLoop_yg4yvd$_0(t,s);var a=zn(n,s,t-r|0);return this.headEndExclusive=n.writePosition,this.tailRemaining=this.tailRemaining.subtract(e.Long.fromInt(a)),s.writePosition>s.readPosition?s.reserveStartGap_za3lpa$(a):(n.next=null,n.next=s.cleanNext(),s.release_2bs5fo$(this.pool)),(n.writePosition-n.readPosition|0)>=t?n:(t>8&&this.minSizeIsTooBig_w2md11$_0(t),this.prepareReadLoop_yg4yvd$_0(t,n))},Zn.prototype.minSizeIsTooBig_w2md11$_0=function(t){throw N("minSize of "+t+" is too big (should be less than 8)")},Zn.prototype.afterRead_ssg6l8$_0=function(t){0==(t.writePosition-t.readPosition|0)&&this.releaseHead_pvnryh$(t)},Zn.prototype.releaseHead_pvnryh$=function(t){var n,i=null!=(n=t.cleanNext())?n:Bi().Empty;return this._head_g6i1fh$_0=i,this.tailRemaining=this.tailRemaining.subtract(e.Long.fromInt(i.writePosition-i.readPosition|0)),t.release_2bs5fo$(this.pool),i},ei.$metadata$={kind:W,simpleName:"Companion",interfaces:[]};var ni=null;function ii(){return null===ni&&new ei,ni}function oi(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=e.length-n|0);var o={v:i},r={v:n};t:do{var s,a,c=!0;if(null==(s=co(t,1)))break t;var l=s;try{for(;;){var u=l,h=o.v,d=u.writePosition-u.readPosition|0,p=T.min(h,d);if(kn(u,e,r.v,p),o.v=o.v-p|0,r.v=r.v+p|0,!(o.v>0))break;if(c=!1,null==(a=uo(t,l)))break;l=a,c=!0}}finally{c&&lo(t,l)}}while(0);var _=o.v;_>0&&xi(_)}function ri(t,e,n){void 0===n&&(n=e.limit-e.writePosition|0);var i={v:n},o={v:0};t:do{var r,s,a=!0;if(null==(r=co(t,1)))break t;var c=r;try{for(;;){var l=c,u=i.v,h=l.writePosition-l.readPosition|0,d=T.min(u,h);if(Gn(l,e,d),i.v=i.v-d|0,o.v=o.v+d|0,!(i.v>0))break;if(a=!1,null==(s=uo(t,c)))break;c=s,a=!0}}finally{a&&lo(t,c)}}while(0);var p=i.v;p>0&&xi(p)}function si(t){var e;t:do{if((t.headEndExclusive-t.headPosition|0)>2){var n=t.headPosition;t.headPosition=n+2|0,e=t.headMemory.view.getInt16(n,!1);break t}e=ai(t)}while(0);return e}function ai(t){var e,n=null!=(e=co(t,2))?e:xi(2),i=Rn(n);return lo(t,n),i}function ci(t){var e;t:do{if((t.headEndExclusive-t.headPosition|0)>4){var n=t.headPosition;t.headPosition=n+4|0,e=t.headMemory.view.getInt32(n,!1);break t}e=li(t)}while(0);return e}function li(t){var e,n=null!=(e=co(t,4))?e:xi(4),i=An(n);return lo(t,n),i}function ui(t){var n;t:do{if((t.headEndExclusive-t.headPosition|0)>8){var i=t.headPosition;t.headPosition=i+8|0;var o=t.headMemory;n=e.Long.fromInt(o.view.getUint32(i,!1)).shiftLeft(32).or(e.Long.fromInt(o.view.getUint32(i+4|0,!1)));break t}n=hi(t)}while(0);return n}function hi(t){var e,n=null!=(e=co(t,8))?e:xi(8),i=xn(n);return lo(t,n),i}function di(t){var e;t:do{if((t.headEndExclusive-t.headPosition|0)>4){var n=t.headPosition;t.headPosition=n+4|0,e=t.headMemory.view.getFloat32(n,!1);break t}e=pi(t)}while(0);return e}function pi(t){var e,n=null!=(e=co(t,4))?e:xi(4),i=In(n);return lo(t,n),i}function _i(t){var e;t:do{if((t.headEndExclusive-t.headPosition|0)>8){var n=t.headPosition;t.headPosition=n+8|0,e=t.headMemory.view.getFloat64(n,!1);break t}e=mi(t)}while(0);return e}function mi(t){var e,n=null!=(e=co(t,8))?e:xi(8),i=Un(n);return lo(t,n),i}function fi(t){this.pool=t,this._head_fdtp0q$_0=null,this._tail_fkcube$_0=null,this.tailMemory_8be2vx$=Wo().Empty,this.tailPosition_8be2vx$=0,this.tailEndExclusive_8be2vx$=0,this.tailInitialPosition_9teb5g$_0=0,this.chainedSize_k37a08$_0=0}function gi(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=e.length-n|0);var o={v:n},r={v:i},s=ho(t,1,null);try{for(;;){var a=s,c=r.v,l=a.limit-a.writePosition|0,u=T.min(c,l);if(jn(a,e,o.v,u),o.v=o.v+u|0,r.v=r.v-u|0,!(r.v>0))break;s=ho(t,1,s)}}finally{t.afterHeadWrite()}}function $i(t,e,n){void 0===n&&(n=e.writePosition-e.readPosition|0);var i={v:0},o={v:n},r=ho(t,1,null);try{for(;;){var s=r,a=o.v,c=s.limit-s.writePosition|0,l=T.min(a,c);if(qn(s,e,l),i.v=i.v+l|0,o.v=o.v-l|0,!(o.v>0))break;r=ho(t,1,r)}}finally{t.afterHeadWrite()}}function Ei(t,n,i,o){yi(t,n,e.Long.fromInt(i),e.Long.fromInt(o))}function yi(t,n,i,o){var r={v:i},s={v:o},a=ho(t,1,null);try{for(;;){var c=a,l=s.v,u=e.Long.fromInt(c.limit-c.writePosition|0),h=l.compareTo_11rb$(u)<=0?l:u;if(n.copyTo_q2ka7j$(c.memory,r.v,h,e.Long.fromInt(c.writePosition)),c.commitWritten_za3lpa$(h.toInt()),r.v=r.v.add(h),s.v=s.v.subtract(h),!(s.v.toNumber()>0))break;a=ho(t,1,a)}}finally{t.afterHeadWrite()}}function bi(t,e){var n;t:do{var i=t.tailPosition_8be2vx$;if((t.tailEndExclusive_8be2vx$-i|0)>2){t.tailPosition_8be2vx$=i+2|0,t.tailMemory_8be2vx$.view.setInt16(i,e,!1),n=!0;break t}n=!1}while(0);n||function(t,e){Dn(t.prepareWriteHead_za3lpa$(2),e),t.afterHeadWrite()}(t,e)}function Si(t,e){var n;t:do{var i=t.tailPosition_8be2vx$;if((t.tailEndExclusive_8be2vx$-i|0)>4){t.tailPosition_8be2vx$=i+4|0,t.tailMemory_8be2vx$.view.setInt32(i,e,!1),n=!0;break t}n=!1}while(0);n||vi(t,e)}function vi(t,e){Pn(t.prepareWriteHead_za3lpa$(4),e),t.afterHeadWrite()}function Ci(t,e){var n;t:do{var i=t.tailPosition_8be2vx$;if((t.tailEndExclusive_8be2vx$-i|0)>8){t.tailPosition_8be2vx$=i+8|0;var o=t.tailMemory_8be2vx$;o.view.setInt32(i,e.shiftRight(32).toInt(),!1),o.view.setInt32(i+4|0,e.and(K).toInt(),!1),n=!0;break t}n=!1}while(0);n||Ni(t,e)}function Ni(t,e){Mn(t.prepareWriteHead_za3lpa$(8),e),t.afterHeadWrite()}function Ti(t,e){var n;t:do{var i=t.tailPosition_8be2vx$;if((t.tailEndExclusive_8be2vx$-i|0)>4){t.tailPosition_8be2vx$=i+4|0,t.tailMemory_8be2vx$.view.setFloat32(i,e,!1),n=!0;break t}n=!1}while(0);n||vi(t,it(e))}function Li(t,e){var n;t:do{var i=t.tailPosition_8be2vx$;if((t.tailEndExclusive_8be2vx$-i|0)>8){t.tailPosition_8be2vx$=i+8|0,t.tailMemory_8be2vx$.view.setFloat64(i,e,!1),n=!0;break t}n=!1}while(0);n||Ni(t,ot(e))}function zi(t,e){if(void 0===e){var n=t.remaining;if(n.compareTo_11rb$(rt)>0)throw L("Unable to convert to a ByteArray: packet is too big");e=n.toInt()}if(0!==e){var i=new Int8Array(e);return oi(t,i,0,e),i}return Gi}function wi(t,e,n){return void 0===n&&(n=$r().UTF_8),dr(n.newDecoder(),t,e)}function Oi(t,e,n,i,o){if(void 0===n&&(n=0),void 0===i&&(i=e.length),void 0===o&&(o=$r().UTF_8),o===$r().UTF_8)return Ai(t,e,n,i);hn(o.newEncoder(),t,e,n,i)}function Ri(t,e,n,i,o){if(void 0===n&&(n=0),void 0===i&&(i=e.length),void 0===o&&(o=$r().UTF_8),o===$r().UTF_8)return Ai(t,new Ii(e,0,e.length),n,i);on(o.newEncoder(),e,n,i,t)}function Ai(t,e,n,i){var o={v:n},r=ho(t,1,null);try{for(var s;;){var a=r,c=a.memory,l=a.writePosition,u=a.limit,h=Qi(c,e,o.v,i,l,u),d=h.component1(),p=h.component2();if(o.v=o.v+(65535&d.data)|0,a.commitWritten_za3lpa$(65535&p.data),(s=0==(65535&d.data)&&o.v=2147483647&&Ki(i,"total size increase");var o=i.toInt();this.appendChainImpl_wtmh6s$_0(t,n,o)},fi.prototype.appendNewChunk_bwe9h8$_0=function(){var t=this.pool.borrow();return t.reserveEndGap_za3lpa$(8),this.appendSingleChunk_pvnryh$(t),t},fi.prototype.appendChainImpl_wtmh6s$_0=function(t,e,n){var i=this._tail_fkcube$_0;if(null==i)this._head_fdtp0q$_0=t,this.chainedSize_k37a08$_0=0;else{i.next=t;var o=this.tailPosition_8be2vx$;i.commitWrittenUntilIndex_za3lpa$(o),this.chainedSize_k37a08$_0=this.chainedSize_k37a08$_0+(o-this.tailInitialPosition_9teb5g$_0)|0}this._tail_fkcube$_0=e,this.chainedSize_k37a08$_0=this.chainedSize_k37a08$_0+n|0,this.tailMemory_8be2vx$=e.memory,this.tailPosition_8be2vx$=e.writePosition,this.tailInitialPosition_9teb5g$_0=e.readPosition,this.tailEndExclusive_8be2vx$=e.limit},fi.prototype.writeByte_s8j3t7$=function(t){var e=this.tailPosition_8be2vx$;return e=3){var n,i=this.tailMemory_8be2vx$,o=0|t;o>=0&&o<=127?(i.view.setInt8(e,g(o)),n=1):o>=128&&o<=2047?(i.view.setInt8(e,g(192|o>>6&31)),i.view.setInt8(e+1|0,g(128|63&o)),n=2):o>=2048&&o<=65535?(i.view.setInt8(e,g(224|o>>12&15)),i.view.setInt8(e+1|0,g(128|o>>6&63)),i.view.setInt8(e+2|0,g(128|63&o)),n=3):o>=65536&&o<=1114111?(i.view.setInt8(e,g(240|o>>18&7)),i.view.setInt8(e+1|0,g(128|o>>12&63)),i.view.setInt8(e+2|0,g(128|o>>6&63)),i.view.setInt8(e+3|0,g(128|63&o)),n=4):n=to(o);var r=n;return this.tailPosition_8be2vx$=e+r|0,this}return this.appendCharFallback_wm9vyu$_0(t),this},fi.prototype.appendCharFallback_wm9vyu$_0=function(t){var e=this.prepareWriteHead_za3lpa$(3);try{var n,i=e.memory,o=e.writePosition,r=0|t;r>=0&&r<=127?(i.view.setInt8(o,g(r)),n=1):r>=128&&r<=2047?(i.view.setInt8(o,g(192|r>>6&31)),i.view.setInt8(o+1|0,g(128|63&r)),n=2):r>=2048&&r<=65535?(i.view.setInt8(o,g(224|r>>12&15)),i.view.setInt8(o+1|0,g(128|r>>6&63)),i.view.setInt8(o+2|0,g(128|63&r)),n=3):r>=65536&&r<=1114111?(i.view.setInt8(o,g(240|r>>18&7)),i.view.setInt8(o+1|0,g(128|r>>12&63)),i.view.setInt8(o+2|0,g(128|r>>6&63)),i.view.setInt8(o+3|0,g(128|63&r)),n=4):n=to(r);var s=n;if(e.commitWritten_za3lpa$(s),!(s>=0))throw N("The returned value shouldn't be negative".toString())}finally{this.afterHeadWrite()}},fi.prototype.append_gw00v9$=function(t){return null==t?this.append_ezbsdh$("null",0,4):this.append_ezbsdh$(t,0,t.length),this},fi.prototype.append_ezbsdh$=function(t,e,n){return null==t?this.append_ezbsdh$("null",e,n):(Oi(this,t,e,n,$r().UTF_8),this)},fi.prototype.writePacket_3uq2w4$=function(t){var e=t.stealAll_8be2vx$();if(null!=e){var n=this._tail_fkcube$_0;null!=n?this.writePacketMerging_3vyrdt$_0(n,e,t.pool):this.appendChain_pvnryh$(e)}else t.release()},fi.prototype.writeChunkBuffer_pvnryh$=function(t){var e=this._tail_fkcube$_0;null!=e?this.writePacketMerging_3vyrdt$_0(e,t,this.pool):this.appendChain_pvnryh$(t)},fi.prototype.writePacketMerging_3vyrdt$_0=function(t,e,n){var i;t.commitWrittenUntilIndex_za3lpa$(this.tailPosition_8be2vx$);var o=t.writePosition-t.readPosition|0,r=e.writePosition-e.readPosition|0,s=xr,a=r0;){var o=t.headEndExclusive-t.headPosition|0;if(!(o<=i.v)){var r,s=null!=(r=t.prepareRead_za3lpa$(1))?r:xi(1),a=s.readPosition;try{$i(this,s,i.v)}finally{var c=s.readPosition;if(c0;){var r=e.Long.fromInt(t.headEndExclusive-t.headPosition|0);if(!(r.compareTo_11rb$(o.v)<=0)){var s,a=null!=(s=t.prepareRead_za3lpa$(1))?s:xi(1),c=a.readPosition;try{$i(this,a,o.v.toInt())}finally{var l=a.readPosition;if(l=t&&null!=(e=this._tail_fkcube$_0)?(e.commitWrittenUntilIndex_za3lpa$(this.tailPosition_8be2vx$),e):this.appendNewChunk_bwe9h8$_0()},fi.prototype.afterHeadWrite=function(){var t;null!=(t=this._tail_fkcube$_0)&&(this.tailPosition_8be2vx$=t.writePosition)},fi.prototype.write_rtdvbs$=w("ktor-ktor-io-js-legacy.io.ktor.utils.io.core.Output.write_rtdvbs$",O((function(){var t=e.kotlin.IllegalStateException_init_pdl1vj$;return function(e,n){var i=this.prepareWriteHead_za3lpa$(e);try{var o=n(i);if(!(o>=0))throw t("The returned value shouldn't be negative".toString());return o}finally{this.afterHeadWrite()}}}))),fi.prototype.last_j2u0py$=function(t){this.appendSingleChunk_pvnryh$(t)},fi.prototype.afterBytesStolen_8be2vx$=function(){var t=this.head_8be2vx$;if(t!==Bi().Empty){if(null!=t.next)throw N("Check failed.".toString());t.resetForWrite(),t.reserveEndGap_za3lpa$(8),this.tailPosition_8be2vx$=t.writePosition,this.tailInitialPosition_9teb5g$_0=this.tailPosition_8be2vx$,this.tailEndExclusive_8be2vx$=t.limit}},fi.$metadata$={kind:d,simpleName:"Output",interfaces:[kr,Y]},Object.defineProperty(Ii.prototype,"length",{get:function(){return this.length_xy9hzd$_0}}),Ii.prototype.charCodeAt=function(t){return t>=this.length&&this.indexOutOfBounds_0(t),this.array_0[t+this.offset_0|0]},Ii.prototype.subSequence_vux9f0$=function(t,e){if(!(t>=0))throw L(("startIndex shouldn't be negative: "+t).toString());if(!(t<=this.length)){var n="startIndex is too large: "+t+" > "+this.length;throw L(n.toString())}if(!((t+e|0)<=this.length)){var i="endIndex is too large: "+e+" > "+this.length;throw L(i.toString())}if(!(e>=t))throw L(("endIndex should be greater or equal to startIndex: "+t+" > "+e).toString());return new Ii(this.array_0,this.offset_0+t|0,e-t|0)},Ii.prototype.indexOutOfBounds_0=function(t){throw new st("String index out of bounds: "+t+" > "+this.length)},Ii.$metadata$={kind:d,simpleName:"CharArraySequence",interfaces:[at]},Object.defineProperty(Ui.prototype,"origin",{configurable:!0,get:function(){return this.origin_dlah8g$_0},set:function(t){this.origin_dlah8g$_0=t}}),Object.defineProperty(Ui.prototype,"next",{configurable:!0,get:function(){return this.nextRef_43oo9e$_0.kotlinx$atomicfu$value},set:function(t){null==t?this.cleanNext():this.appendNext_v1qrlf$_0(t)}}),Object.defineProperty(Ui.prototype,"referenceCount",{configurable:!0,get:function(){return this.refCount_yk3bl6$_0.kotlinx$atomicfu$value}}),Ui.prototype.appendNext_v1qrlf$_0=function(t){if(!this.nextRef_43oo9e$_0.atomicfu$compareAndSet(null,t))throw N("This chunk has already a next chunk.")},Ui.prototype.cleanNext=function(){return this.nextRef_43oo9e$_0.atomicfu$getAndSet(null)},Ui.prototype.duplicate=function(){var t,e=null!=(t=this.origin)?t:this;e.acquire_8be2vx$();var n=new Ui(this.memory,e,this.parentPool_8be2vx$);return this.duplicateTo_b4g5fm$(n),n},Ui.prototype.release_2bs5fo$=function(t){var e;if(this.release_8be2vx$()){var n=this.origin;null!=n?(this.unlink_8be2vx$(),n.release_2bs5fo$(t)):(null!=(e=this.parentPool_8be2vx$)?e:t).recycle_trkh7z$(this)}},Ui.prototype.unlink_8be2vx$=function(){if(!this.refCount_yk3bl6$_0.atomicfu$compareAndSet(0,-1))throw N("Unable to unlink: buffer is in use.");this.cleanNext(),this.origin=null},Ui.prototype.acquire_8be2vx$=function(){var t=this.refCount_yk3bl6$_0;t:do{for(;;){var e=t.kotlinx$atomicfu$value;if(e<=0)throw N("Unable to acquire chunk: it is already released.");var n=e+1|0;if(t.atomicfu$compareAndSet(e,n))break t}}while(0)},Ui.prototype.unpark_8be2vx$=function(){var t=this.refCount_yk3bl6$_0;t:do{for(;;){var e=t.kotlinx$atomicfu$value;if(e<0)throw N("This instance is already disposed and couldn't be borrowed.");if(e>0)throw N("This instance is already in use but somehow appeared in the pool.");if(t.atomicfu$compareAndSet(e,1))break t}}while(0)},Ui.prototype.release_8be2vx$=function(){var t,e=this.refCount_yk3bl6$_0;t:do{for(;;){var n=e.kotlinx$atomicfu$value;if(n<=0)throw N("Unable to release: it is already released.");var i=n-1|0;if(e.atomicfu$compareAndSet(n,i)){t=i;break t}}}while(0);return 0===t},Ui.prototype.reset=function(){if(null!=this.origin)throw L("Unable to reset buffer with origin".toString());dn.prototype.reset.call(this),this.nextRef_43oo9e$_0.kotlinx$atomicfu$value=null},Object.defineProperty(Pi.prototype,"capacity",{configurable:!0,get:function(){return _n.capacity}}),Pi.prototype.borrow=function(){return _n.borrow()},Pi.prototype.recycle_trkh7z$=function(t){_n.recycle_trkh7z$(t)},Pi.prototype.dispose=function(){_n.dispose()},Pi.$metadata$={kind:d,interfaces:[yo]},Object.defineProperty(Mi.prototype,"capacity",{configurable:!0,get:function(){return 1}}),Mi.prototype.borrow=function(){return Bi().Empty},Mi.prototype.recycle_trkh7z$=function(t){if(t!==Bi().Empty)throw L("Only ChunkBuffer.Empty instance could be recycled.".toString())},Mi.prototype.dispose=function(){},Mi.$metadata$={kind:d,interfaces:[yo]},ki.prototype.borrow=function(){return new Ui(Go().alloc_za3lpa$(4096),null,this)},ki.prototype.recycle_trkh7z$=function(t){Go().free_vn6nzs$(t.memory)},ki.$metadata$={kind:d,interfaces:[bo]},ji.prototype.borrow=function(){throw G("This pool doesn't support borrow")},ji.prototype.recycle_trkh7z$=function(t){},ji.$metadata$={kind:d,interfaces:[bo]},Di.$metadata$={kind:W,simpleName:"Companion",interfaces:[]};var Gi,qi,Fi=null;function Bi(){return null===Fi&&new Di,Fi}function Wi(t){return 1===t.referenceCount}function Hi(t){this.value=t}function Vi(t,e,n){return n=n||Object.create(Hi.prototype),Hi.call(n,(65535&t.data)<<16|65535&e.data),n}function Ki(t,e){throw L("Long value "+t.toString()+" of "+e+" doesn't fit into 32-bit integer")}function Xi(t,e,n,i,o){u.call(this,o),this.exceptionState_0=1,this.local$tmp$=void 0,this.local$decoded=void 0,this.local$size=void 0,this.local$cr=void 0,this.local$end=void 0,this.local$out=t,this.local$limit=e,this.local$nextChunk=n,this.local$afterRead=i}function Ji(t,e,n,i,o,r){var s=new Xi(t,e,n,i,o);return r?s:s.doResume(null)}function Yi(t){throw new Hr("Premature end of stream: expected "+t+" bytes to decode UTF-8 char")}function Qi(t,e,n,i,o,r){for(var s,a,c=n+(65535&q.Companion.MAX_VALUE.data)|0,l=T.min(i,c),u=j(r,65535&q.Companion.MAX_VALUE.data),h=o,d=n;;){if(h>=u||d>=l)return Vi(new q(R(d-n|0)),new q(R(h-o|0)));var p=65535&(0|e.charCodeAt((d=(s=d)+1|0,s)));if(0!=(65408&p))break;t.view.setInt8((h=(a=h)+1|0,a),g(p))}return function(t,e,n,i,o,r,s,a){for(var c,l,u=n,h=r,d=s-3|0;!((d-h|0)<=0||u>=i);){var p,_=e.charCodeAt((u=(c=u)+1|0,c)),m=lt(_)?u!==i&&ct(e.charCodeAt(u))?ro(_,e.charCodeAt((u=(l=u)+1|0,l))):63:0|_,f=h;m>=0&&m<=127?(t.view.setInt8(f,g(m)),p=1):m>=128&&m<=2047?(t.view.setInt8(f,g(192|m>>6&31)),t.view.setInt8(f+1|0,g(128|63&m)),p=2):m>=2048&&m<=65535?(t.view.setInt8(f,g(224|m>>12&15)),t.view.setInt8(f+1|0,g(128|m>>6&63)),t.view.setInt8(f+2|0,g(128|63&m)),p=3):m>=65536&&m<=1114111?(t.view.setInt8(f,g(240|m>>18&7)),t.view.setInt8(f+1|0,g(128|m>>12&63)),t.view.setInt8(f+2|0,g(128|m>>6&63)),t.view.setInt8(f+3|0,g(128|63&m)),p=4):p=to(m),h=h+p|0}return h===d?function(t,e,n,i,o,r,s,a){for(var c,l,u=n,h=r;;){var d=s-h|0;if(d<=0||u>=i)break;var p=e.charCodeAt((u=(c=u)+1|0,c)),_=lt(p)?u!==i&&ct(e.charCodeAt(u))?ro(p,e.charCodeAt((u=(l=u)+1|0,l))):63:0|p;if((_>=1&&_<=127?1:_>=128&&_<=2047?2:_>=2048&&_<=65535?3:_>=65536&&_<=1114111?4:to(_))>d){u=u-1|0;break}var m,f=h;_>=0&&_<=127?(t.view.setInt8(f,g(_)),m=1):_>=128&&_<=2047?(t.view.setInt8(f,g(192|_>>6&31)),t.view.setInt8(f+1|0,g(128|63&_)),m=2):_>=2048&&_<=65535?(t.view.setInt8(f,g(224|_>>12&15)),t.view.setInt8(f+1|0,g(128|_>>6&63)),t.view.setInt8(f+2|0,g(128|63&_)),m=3):_>=65536&&_<=1114111?(t.view.setInt8(f,g(240|_>>18&7)),t.view.setInt8(f+1|0,g(128|_>>12&63)),t.view.setInt8(f+2|0,g(128|_>>6&63)),t.view.setInt8(f+3|0,g(128|63&_)),m=4):m=to(_),h=h+m|0}return Vi(new q(R(u-o|0)),new q(R(h-a|0)))}(t,e,u,i,o,h,s,a):Vi(new q(R(u-o|0)),new q(R(h-a|0)))}(t,e,d=d-1|0,l,n,h,u,o)}function Zi(t){throw new so("Expected "+t+" more character bytes")}function to(t){throw L("Malformed code-point "+t+" found")}function eo(t){return t>>>16==0}function no(t){return t<=1114111}function io(t){return 56320+(1023&t)|0}function oo(t){return 55232+(t>>>10)|0}function ro(t,e){return((0|t)-55232|0)<<10|(0|e)-56320|0}function so(t){H(t,this),this.name="MalformedUTF8InputException"}function ao(t,e){var n,i=e.size;if(null==(n=e.stealAll_8be2vx$()))return 0;var o=n;return i<=xr&&null==o.next&&t.tryWriteAppend_pvnryh$(o)?(e.afterBytesStolen_8be2vx$(),i):(t.append_pvnryh$(o),i)}function co(t,e){return t.prepareReadHead_kcn2v3$(e)}function lo(t,e){e!==t&&(e.writePosition>e.readPosition?(e.capacity-e.limit|0)<8?t.fixGapAfterRead_pvnryh$(e):t.headPosition=e.readPosition:t.ensureNext_j2u0py$(e))}function uo(t,e){return e===t?t.canRead()?t:null:t.ensureNextHead_pvnryh$(e)}function ho(t,e,n){return null!=n&&t.afterHeadWrite(),t.prepareWriteHead_za3lpa$(e)}function po(){this.suspension_0=b(null)}function _o(t,e,n){u.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$sleepCondition=e}function mo(t,e,n){u.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$suspended=void 0,this.local$sleepCondition=e}function fo(t,e,n,i){u.call(this,i),this.exceptionState_0=1,this.local$tmp$=void 0,this.local$remainingLimit=void 0,this.local$transferred=void 0,this.local$tail=void 0,this.local$$receiver=t,this.local$dst=e,this.local$limit=n}function go(t,e,n,i,o){var r=new fo(t,e,n,i);return o?r:r.doResume(null)}function $o(t,e,n,i){u.call(this,i),this.exceptionState_0=9,this.local$lastPiece=void 0,this.local$rc=void 0,this.local$$receiver=t,this.local$dst=e,this.local$limit=n}function Eo(t){ts.call(this,t)}function yo(){}function bo(){}function So(){this.borrowed_m1d2y6$_0=v(0),this.disposed_rxrbhb$_0=ht(!1),this.instance_vlsx8v$_0=b(null)}function vo(t){return void 0===t&&(t=!1),new To(Bi().Empty,t)}function Co(t,n,i){var o;if(0===t.length)return Io().Empty;for(var r=Bi().Pool.borrow(),s=r,a=n,c=a+i|0;;){s.reserveEndGap_za3lpa$(8);var l=c-a|0,u=s,h=u.limit-u.writePosition|0,d=T.min(l,h);if(jn(e.isType(o=s,dn)?o:f(),t,a,d),(a=a+d|0)===c)break;var p=s;s=Bi().Pool.borrow(),p.next=s}var _=new To(r,!1);return Re(_),_}function No(t,n,i,o){var r,s;return go(e.isType(r=t,Nt)?r:f(),e.isType(s=n,Nt)?s:f(),i,o)}function To(t,e){Nt.call(this,t,e),this.attachedJob_0=null}function Lo(t,e,n,i,o){u.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$dst=e,this.local$offset=n,this.local$length=i}function zo(t,e,n,i,o){u.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$dst=e,this.local$offset=n,this.local$length=i}function wo(t,e,n,i,o){u.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$start=void 0,this.local$end=void 0,this.local$remaining=void 0,this.local$dst=e,this.local$offset=n,this.local$length=i}function Oo(){Io()}function Ro(){xo=this,this.Empty_wsx8uv$_0=_t(Ao)}function Ao(){var t=new To(Bi().Empty,!1);return t.close_dbl4no$(null),t}Ui.$metadata$={kind:d,simpleName:"ChunkBuffer",interfaces:[dn]},Object.defineProperty(Hi.prototype,"characters",{configurable:!0,get:function(){return new q(R(this.value>>>16))}}),Object.defineProperty(Hi.prototype,"bytes",{configurable:!0,get:function(){return new q(R(65535&this.value))}}),Hi.prototype.component1=function(){return this.characters},Hi.prototype.component2=function(){return this.bytes},Hi.$metadata$={kind:d,simpleName:"EncodeResult",interfaces:[]},Hi.prototype.unbox=function(){return this.value},Hi.prototype.toString=function(){return"EncodeResult(value="+e.toString(this.value)+")"},Hi.prototype.hashCode=function(){var t=0;return t=31*t+e.hashCode(this.value)|0},Hi.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.value,t.value)},Xi.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},Xi.prototype=Object.create(u.prototype),Xi.prototype.constructor=Xi,Xi.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$decoded={v:0},this.local$size={v:1},this.local$cr={v:!1},this.local$end={v:!1},this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(this.local$end.v||0===this.local$size.v){this.state_0=5;continue}if(this.state_0=3,this.result_0=this.local$nextChunk(this.local$size.v,this),this.result_0===l)return l;continue;case 3:if(this.local$tmp$=this.result_0,null==this.local$tmp$){this.state_0=5;continue}this.state_0=4;continue;case 4:var t=this.local$tmp$,e=t.remaining;t:do{var n,i,o=!0;if(null==(n=co(t,1)))break t;var r=n,s=1;try{e:do{var a,c=r,u=c.writePosition-c.readPosition|0;if(u>=s)try{var h,d=r,p={v:0};n:do{for(var _={v:0},m={v:0},f={v:0},g=d.memory,$=d.readPosition,E=d.writePosition,y=$;y>=1,_.v=_.v+1|0;if(f.v=_.v,_.v=_.v-1|0,f.v>(E-y|0)){d.discardExact_za3lpa$(y-$|0),h=f.v;break n}}else if(m.v=m.v<<6|127&b,_.v=_.v-1|0,0===_.v){if(eo(m.v)){var T,L=et(tt(m.v));i:do{switch(Z(L)){case 13:if(this.local$cr.v){this.local$end.v=!0,T=!1;break i}this.local$cr.v=!0,T=!0;break i;case 10:this.local$end.v=!0,p.v=1,T=!1;break i;default:if(this.local$cr.v){this.local$end.v=!0,T=!1;break i}if(this.local$decoded.v===this.local$limit)throw new sn("Too many characters in line: limit "+this.local$limit+" exceeded");this.local$decoded.v=this.local$decoded.v+1|0,this.local$out.append_s8itvh$(Z(L)),T=!0;break i}}while(0);if(!T){d.discardExact_za3lpa$(y-$-f.v+1|0),h=-1;break n}}else if(no(m.v)){var z,w=et(tt(oo(m.v)));i:do{switch(Z(w)){case 13:if(this.local$cr.v){this.local$end.v=!0,z=!1;break i}this.local$cr.v=!0,z=!0;break i;case 10:this.local$end.v=!0,p.v=1,z=!1;break i;default:if(this.local$cr.v){this.local$end.v=!0,z=!1;break i}if(this.local$decoded.v===this.local$limit)throw new sn("Too many characters in line: limit "+this.local$limit+" exceeded");this.local$decoded.v=this.local$decoded.v+1|0,this.local$out.append_s8itvh$(Z(w)),z=!0;break i}}while(0);var O=!z;if(!O){var R,A=et(tt(io(m.v)));i:do{switch(Z(A)){case 13:if(this.local$cr.v){this.local$end.v=!0,R=!1;break i}this.local$cr.v=!0,R=!0;break i;case 10:this.local$end.v=!0,p.v=1,R=!1;break i;default:if(this.local$cr.v){this.local$end.v=!0,R=!1;break i}if(this.local$decoded.v===this.local$limit)throw new sn("Too many characters in line: limit "+this.local$limit+" exceeded");this.local$decoded.v=this.local$decoded.v+1|0,this.local$out.append_s8itvh$(Z(A)),R=!0;break i}}while(0);O=!R}if(O){d.discardExact_za3lpa$(y-$-f.v+1|0),h=-1;break n}}else to(m.v);m.v=0}}var x=E-$|0;d.discardExact_za3lpa$(x),h=0}while(0);this.local$size.v=h,p.v>0&&d.discardExact_za3lpa$(p.v),this.local$size.v=this.local$end.v?0:Q(this.local$size.v,1),s=this.local$size.v}finally{var I=r;a=I.writePosition-I.readPosition|0}else a=u;if(o=!1,0===a)i=uo(t,r);else{var U=a0)}finally{o&&lo(t,r)}}while(0);this.local$afterRead(e.subtract(t.remaining).toInt()),this.state_0=2;continue;case 5:return this.local$size.v>1&&Yi(this.local$size.v),this.local$cr.v&&(this.local$end.v=!0),this.local$decoded.v>0||this.local$end.v;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},so.$metadata$={kind:d,simpleName:"MalformedUTF8InputException",interfaces:[V]},_o.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},_o.prototype=Object.create(u.prototype),_o.prototype.constructor=_o,_o.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this.trySuspend_0(this.local$sleepCondition,this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:if(this.result_0)return;this.state_0=3;continue;case 3:return void this.$this.resume();default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},po.prototype.sleep_u332lz$=function(t,e,n){var i=new _o(this,t,e);return n?i:i.doResume(null)},po.prototype.resume=function(){var t;null!=(t=this.suspension_0.atomicfu$getAndSet(null))&&t.complete()},po.prototype.cancel_dbl4no$=function(t){var e;if(null!=(e=this.suspension_0.atomicfu$getAndSet(null))){var n=e;null!=t?n.completeExceptionally_tcv7n7$(t):n.complete()}},mo.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},mo.prototype=Object.create(u.prototype),mo.prototype.constructor=mo,mo.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$suspended=!1;var t=ut();if(this.$this.suspension_0.atomicfu$compareAndSet(null,t)&&this.local$sleepCondition()){if(this.local$suspended=!0,this.state_0=2,this.result_0=t.join(this),this.result_0===l)return l;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:this.state_0=3;continue;case 3:return this.local$suspended;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},po.prototype.trySuspend_0=function(t,e,n){var i=new mo(this,t,e);return n?i:i.doResume(null)},po.$metadata$={kind:d,simpleName:"AwaitingSlot",interfaces:[]},fo.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},fo.prototype=Object.create(u.prototype),fo.prototype.constructor=fo,fo.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$$receiver===this.local$dst)throw L("Failed requirement.".toString());if(null!=this.local$$receiver.closedCause)return this.local$dst.close_dbl4no$(this.local$$receiver.closedCause),_;this.state_0=2;continue;case 1:throw this.exception_0;case 2:this.local$remainingLimit=this.local$limit,this.state_0=3;continue;case 3:if(this.local$remainingLimit.toNumber()<=0){this.state_0=11;continue}if(this.state_0=4,this.result_0=this.local$$receiver.awaitInternalAtLeast1_8be2vx$(this),this.result_0===l)return l;continue;case 4:if(this.result_0){this.state_0=5;continue}this.state_0=11;continue;case 5:if(this.local$transferred=this.local$$receiver.transferTo_pxvbjg$(this.local$dst,this.local$remainingLimit),m(this.local$transferred,_)){if(this.state_0=8,this.result_0=(e=this.local$$receiver,n=this.local$dst,i=this.local$remainingLimit,o=void 0,r=void 0,r=new $o(e,n,i,this),o?r:r.doResume(null)),this.result_0===l)return l;continue}if(0===this.local$dst.availableForWrite){if(this.state_0=6,this.result_0=this.local$dst.awaitAtLeastNBytesAvailableForWrite_kcn2v3$(1,this),this.result_0===l)return l;continue}this.state_0=7;continue;case 6:this.state_0=7;continue;case 7:this.local$tmp$=this.local$transferred,this.state_0=10;continue;case 8:if(this.local$tail=this.result_0,m(this.local$tail,_)){this.state_0=11;continue}this.state_0=9;continue;case 9:this.local$tmp$=this.local$tail,this.state_0=10;continue;case 10:var t=this.local$tmp$;this.local$remainingLimit=this.local$remainingLimit.subtract(t),t.toNumber()>0&&this.local$dst.flush(),this.state_0=3;continue;case 11:return this.local$limit.subtract(this.local$remainingLimit);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}var e,n,i,o,r},$o.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},$o.prototype=Object.create(u.prototype),$o.prototype.constructor=$o,$o.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$lastPiece=Bi().Pool.borrow(),this.exceptionState_0=7,this.local$lastPiece.resetForWrite_za3lpa$(y(this.local$limit,e.Long.fromInt(this.local$lastPiece.capacity)).toInt()),this.state_0=1,this.result_0=this.local$$receiver.readAvailable_j2u0py$(this.local$lastPiece,this),this.result_0===l)return l;continue;case 1:if(this.local$rc=this.result_0,-1===this.local$rc){this.local$lastPiece.release_2bs5fo$(Bi().Pool),this.exceptionState_0=9,this.finallyPath_0=[2],this.state_0=8,this.$returnValue=_;continue}this.state_0=3;continue;case 2:return this.$returnValue;case 3:if(this.state_0=4,this.result_0=this.local$dst.writeFully_b4g5fm$(this.local$lastPiece,this),this.result_0===l)return l;continue;case 4:this.exceptionState_0=9,this.finallyPath_0=[5],this.state_0=8,this.$returnValue=e.Long.fromInt(this.local$rc);continue;case 5:return this.$returnValue;case 6:return;case 7:this.finallyPath_0=[9],this.state_0=8;continue;case 8:this.exceptionState_0=9,this.local$lastPiece.release_2bs5fo$(Bi().Pool),this.state_0=this.finallyPath_0.shift();continue;case 9:throw this.exception_0;default:throw this.state_0=9,new Error("State Machine Unreachable execution")}}catch(t){if(9===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Eo.prototype.produceInstance=function(){return new Int8Array(4096)},Eo.$metadata$={kind:d,interfaces:[ts]},yo.prototype.close=function(){this.dispose()},yo.$metadata$={kind:a,simpleName:"ObjectPool",interfaces:[kr]},Object.defineProperty(bo.prototype,"capacity",{configurable:!0,get:function(){return 0}}),bo.prototype.recycle_trkh7z$=function(t){},bo.prototype.dispose=function(){},bo.$metadata$={kind:d,simpleName:"NoPoolImpl",interfaces:[yo]},To.prototype.attachJob_dqr1mp$=function(t){var e,n;null!=(e=this.attachedJob_0)&&e.cancel_x5z25k$(),this.attachedJob_0=t,t.invokeOnCompletion_ct2b2z$(!0,void 0,(n=this,function(t){return n.attachedJob_0=null,null!=t&&n.cancel_dbl4no$(Ge(t)),p}))},Lo.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},Lo.prototype=Object.create(u.prototype),Lo.prototype.constructor=Lo,Lo.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(this.$this.readable.endOfInput){if(this.state_0=2,this.result_0=this.$this.readAvailableSuspend_0(this.local$dst,this.local$offset,this.local$length,this),this.result_0===l)return l;continue}if(null!=(t=this.$this.closedCause))throw t;var e=Gr(this.$this.readable,this.local$dst,this.local$offset,this.local$length);return this.$this.afterRead_za3lpa$(e),e;case 1:throw this.exception_0;case 2:return this.result_0;case 3:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},To.prototype.readAvailable_qmgm5g$=function(t,e,n,i,o){var r=new Lo(this,t,e,n,i);return o?r:r.doResume(null)},zo.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},zo.prototype=Object.create(u.prototype),zo.prototype.constructor=zo,zo.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this.await_za3lpa$(1,this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:if(this.result_0){this.state_0=3;continue}return-1;case 3:if(this.state_0=4,this.result_0=this.$this.readAvailable_qmgm5g$(this.local$dst,this.local$offset,this.local$length,this),this.result_0===l)return l;continue;case 4:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},To.prototype.readAvailableSuspend_0=function(t,e,n,i,o){var r=new zo(this,t,e,n,i);return o?r:r.doResume(null)},To.prototype.readFully_qmgm5g$=function(t,e,n,i){var o;if(this.availableForRead>=n){if(null!=(o=this.closedCause))throw o;return jr(this.readable,t,e,n),void this.afterRead_za3lpa$(n-e|0)}return this.readFullySuspend_0(t,e,n,i)},wo.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},wo.prototype=Object.create(u.prototype),wo.prototype.constructor=wo,wo.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$start=this.local$offset,this.local$end=this.local$offset+this.local$length|0,this.local$remaining=this.local$length,this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(this.local$start>=this.local$end){this.state_0=4;continue}if(this.state_0=3,this.result_0=this.$this.readAvailable_qmgm5g$(this.local$dst,this.local$start,this.local$remaining,this),this.result_0===l)return l;continue;case 3:var t=this.result_0;if(-1===t)throw new Hr("Premature end of stream: required "+this.local$remaining+" more bytes");this.local$start=this.local$start+t|0,this.local$remaining=this.local$remaining-t|0,this.state_0=2;continue;case 4:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},To.prototype.readFullySuspend_0=function(t,e,n,i,o){var r=new wo(this,t,e,n,i);return o?r:r.doResume(null)},To.prototype.toString=function(){return"ByteChannel["+dt(this.attachedJob_0)+", "+pt(this)+"]"},To.$metadata$={kind:d,simpleName:"ByteChannelJS",interfaces:[Nt]},Oo.prototype.readRemaining_s8cxhz$=function(t,e,n){return void 0===t&&(t=z),n?n(t,e):this.readRemaining_s8cxhz$$default(t,e)},Oo.prototype.peekTo_afjyek$=function(t,e,n,i,o,r,s){return void 0===n&&(n=_),void 0===i&&(i=X),void 0===o&&(o=z),s?s(t,e,n,i,o,r):this.peekTo_afjyek$$default(t,e,n,i,o,r)},Object.defineProperty(Ro.prototype,"Empty",{configurable:!0,get:function(){return this.Empty_wsx8uv$_0.value}}),Ro.$metadata$={kind:W,simpleName:"Companion",interfaces:[]};var xo=null;function Io(){return null===xo&&new Ro,xo}function Uo(){}function Do(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=e.length-n|0);var o=e;return Mo(Wo(),o,n,i)}function Po(t,e,n,i){return void 0===n&&(n=0),void 0===i&&(i=e.byteLength-n|0),new qo(new DataView(e,n,i))}function Mo(t,e,n,i){return void 0===n&&(n=0),void 0===i&&(i=e.byteLength),Po(Wo(),e.buffer,e.byteOffset+n|0,i)}function ko(){jo=this}Oo.$metadata$={kind:a,simpleName:"ByteReadChannel",interfaces:[]},Uo.$metadata$={kind:a,simpleName:"ByteWriteChannel",interfaces:[]},ko.prototype.alloc_za3lpa$=function(t){return new qo(new DataView(new ArrayBuffer(t)))},ko.prototype.alloc_s8cxhz$=function(t){return t.toNumber()>=2147483647&&Ki(t,"size"),new qo(new DataView(new ArrayBuffer(t.toInt())))},ko.prototype.free_vn6nzs$=function(t){},ko.$metadata$={kind:W,simpleName:"DefaultAllocator",interfaces:[nn]};var jo=null;function Go(){return null===jo&&new ko,jo}function qo(t){Wo(),this.view=t}function Fo(){Bo=this,this.Empty=new qo(new DataView(new ArrayBuffer(0)))}Object.defineProperty(qo.prototype,"size",{configurable:!0,get:w("ktor-ktor-io-js-legacy.io.ktor.utils.io.bits.Memory.get_size",(function(){return e.Long.fromInt(this.view.byteLength)}))}),Object.defineProperty(qo.prototype,"size32",{configurable:!0,get:w("ktor-ktor-io-js-legacy.io.ktor.utils.io.bits.Memory.get_size32",(function(){return this.view.byteLength}))}),qo.prototype.loadAt_za3lpa$=w("ktor-ktor-io-js-legacy.io.ktor.utils.io.bits.Memory.loadAt_za3lpa$",(function(t){return this.view.getInt8(t)})),qo.prototype.loadAt_s8cxhz$=w("ktor-ktor-io-js-legacy.io.ktor.utils.io.bits.Memory.loadAt_s8cxhz$",O((function(){var e=t.io.ktor.utils.io.core.internal.failLongToIntConversion_a4hdmt$;return function(t){var n=this.view;return t.toNumber()>=2147483647&&e(t,"index"),n.getInt8(t.toInt())}}))),qo.prototype.storeAt_6t1wet$=w("ktor-ktor-io-js-legacy.io.ktor.utils.io.bits.Memory.storeAt_6t1wet$",(function(t,e){this.view.setInt8(t,e)})),qo.prototype.storeAt_3pq026$=w("ktor-ktor-io-js-legacy.io.ktor.utils.io.bits.Memory.storeAt_3pq026$",O((function(){var e=t.io.ktor.utils.io.core.internal.failLongToIntConversion_a4hdmt$;return function(t,n){var i=this.view;t.toNumber()>=2147483647&&e(t,"index"),i.setInt8(t.toInt(),n)}}))),qo.prototype.slice_vux9f0$=function(t,n){if(!(t>=0))throw L(("offset shouldn't be negative: "+t).toString());if(!(n>=0))throw L(("length shouldn't be negative: "+n).toString());if((t+n|0)>e.Long.fromInt(this.view.byteLength).toNumber())throw new st("offset + length > size: "+t+" + "+n+" > "+e.Long.fromInt(this.view.byteLength).toString());return new qo(new DataView(this.view.buffer,this.view.byteOffset+t|0,n))},qo.prototype.slice_3pjtqy$=function(t,e){t.toNumber()>=2147483647&&Ki(t,"offset");var n=t.toInt();return e.toNumber()>=2147483647&&Ki(e,"length"),this.slice_vux9f0$(n,e.toInt())},qo.prototype.copyTo_ubllm2$=function(t,e,n,i){var o=new Int8Array(this.view.buffer,this.view.byteOffset+e|0,n);new Int8Array(t.view.buffer,t.view.byteOffset+i|0,n).set(o)},qo.prototype.copyTo_q2ka7j$=function(t,e,n,i){e.toNumber()>=2147483647&&Ki(e,"offset");var o=e.toInt();n.toNumber()>=2147483647&&Ki(n,"length");var r=n.toInt();i.toNumber()>=2147483647&&Ki(i,"destinationOffset"),this.copyTo_ubllm2$(t,o,r,i.toInt())},Fo.$metadata$={kind:W,simpleName:"Companion",interfaces:[]};var Bo=null;function Wo(){return null===Bo&&new Fo,Bo}function Ho(t,e,n,i,o){var r=e,s=new Int8Array(t.view.buffer,t.view.byteOffset+n|0,i);r.set(s,o)}function Vo(t,e,n,i,o){var r=new Int8Array(e,o,i),s=new Int8Array(t.view.buffer,t.view.byteOffset+n|0,i);r.set(s,0)}function Ko(t,e,n,i,o){var r=new Int8Array(t,n,i);new Int8Array(e.view.buffer,e.view.byteOffset+o|0,i).set(r,0)}function Xo(t,e,n,i,o){Ko(t.buffer,e,n+t.byteOffset|0,i,o)}function Jo(t){Zo(),this._name_8be2vx$=t}function Yo(){Qo=this}qo.$metadata$={kind:d,simpleName:"Memory",interfaces:[]},Jo.prototype.equals=function(t){return this===t||!(null==t||!m(mt(e.getKClassFromExpression(this)),mt(e.getKClassFromExpression(t))))&&(e.isType(t,Jo)||f(),!!m(this._name_8be2vx$,t._name_8be2vx$))},Jo.prototype.hashCode=function(){return pt(this._name_8be2vx$)},Jo.prototype.toString=function(){return this._name_8be2vx$},Yo.prototype.forName_61zpoe$=function(t){if(m(t,"UTF-8")||m(t,"utf-8")||m(t,"UTF8")||m(t,"utf8"))return $r().UTF_8;var e=m(t,"ISO-8859-1")||m(t,"iso-8859-1");if(!e){var n=ft(t,95,45),i=m(n,"iso-8859-1");i||(i=m(n.toLowerCase(),"iso-8859-1")),e=i}if(e||m(t,"latin1")||m(t,"Latin1"))return $r().ISO_8859_1;throw L("Charset "+t+" is not supported")},Yo.prototype.isSupported_61zpoe$=function(t){if(m(t,"UTF-8")||m(t,"utf-8")||m(t,"UTF8")||m(t,"utf8"))return!0;var e=m(t,"ISO-8859-1")||m(t,"iso-8859-1");if(!e){var n=ft(t,95,45),i=m(n,"iso-8859-1");i||(i=m(n.toLowerCase(),"iso-8859-1")),e=i}return!(!e&&!m(t,"latin1"))},Yo.$metadata$={kind:W,simpleName:"Companion",interfaces:[]};var Qo=null;function Zo(){return null===Qo&&new Yo,Qo}function tr(t){return t._name_8be2vx$}function er(t){this._charset_8be2vx$=t}function nr(t){er.call(this,t),this.charset_0=t}function ir(t){return t._charset_8be2vx$}function or(t,e,n,i){return void 0===n&&(n=0),void 0===i&&(i=e.length),cn(t,e,n,i)}function rr(t,n,i,o,r){var s;if(!(i<=o))throw L("Failed requirement.".toString());if(null!=(s=ir(t))&&s.equals($r().ISO_8859_1))return vr(n,i,o,r);if(ir(t)!==$r().UTF_8)throw L("Only UTF-8 encoding is supported in JS".toString());for(var a=new TextEncoder,c=i,l=r.limit-r.writePosition|0;c0;){var u=o-c|0,h=l/6|0,d=Q(T.min(u,h),1),p=lt(n.charCodeAt(c+d-1|0)),_=p&&1===d?c+2|0:p?c+d-1|0:c+d|0,m=c,f=a.encode(e.subSequence(n,m,_).toString());if(f.length>l)break;Lr(r,f),c=_,l=l-f.length|0}return c-i|0}function sr(t,e,n){if(ir(t)!==$r().UTF_8)throw L("Failed requirement.".toString());n.writePacket_3uq2w4$(e)}function ar(t,e){return!0}function cr(t){this._charset_8be2vx$=t}function lr(t){cr.call(this,t),this.charset_0=t}function ur(t){return t._charset_8be2vx$}function hr(t,n,i,o){var r=Vr(tr(ur(t)),!0),s={v:0};t:do{var a,c,l=!0;if(null==(a=co(n,1)))break t;var u=a,h=1;try{e:do{var d,p=u,_=p.writePosition-p.readPosition|0;if(_>=h)try{var m,f=u;n:do{var g,$=o-s.v|0,E=f.writePosition-f.readPosition|0;if($0&&f.rewind_za3lpa$(E),m=0}else m=s.v0)}finally{l&&lo(n,u)}}while(0);if(s.v=M)try{var q=P,F=q.memory,B=q.readPosition,W=q.writePosition,H=Sr(new gt(F.view.buffer,F.view.byteOffset+B|0,W-B|0),r,o-s.v|0);i.append_gw00v9$(H.charactersDecoded),s.v=s.v+H.charactersDecoded.length|0;var V=H.bytesConsumed;q.discardExact_za3lpa$(V),V>0?A.v=1:8===A.v?A.v=0:A.v=A.v+1|0,M=A.v}finally{var K=P;k=K.writePosition-K.readPosition|0}else k=G;if(D=!1,0===k)U=uo(n,P);else{var X=k0)}finally{D&&lo(n,P)}}while(0)}return s.v}function dr(t,n,i){if(0===i)return"";if((n.headEndExclusive-n.headPosition|0)>=i){var o,r,s=Vr(ur(t)._name_8be2vx$,!0),a=n.head,c=n.headMemory.view;try{var l=0===a.readPosition&&i===c.byteLength?c:new DataView(c.buffer,c.byteOffset+a.readPosition|0,i);o=s.decode_c2mund$(l)}catch(t){throw e.isType(t,x)?new yr("Failed to decode bytes: "+(null!=(r=t.message)?r:"no cause provided")):t}var u=o;return n.discardExact_za3lpa$(i),u}return function(t,n,i){var o,r=Vr(tr(ur(t)),!0),s={v:i},a=B(i);try{t:do{var c,l,u=!0;if(null==(c=co(n,6)))break t;var h=c,d=6;try{do{var p,_=h,m=_.writePosition-_.readPosition|0;if(m>=d)try{var f,g=h,$=g.writePosition-g.readPosition|0,E=s.v,y=T.min($,E);if(0===g.readPosition&&g.memory.view.byteLength===y){var b,S,v=g.memory.view;try{b=r.decode_g2l45e$(v,Xr(!0))}catch(t){throw e.isType(t,x)?new yr("Failed to decode bytes: "+(null!=(S=t.message)?S:"no cause provided")):t}f=b}else{var C,N,L=new Int8Array(g.memory.view.buffer,g.memory.view.byteOffset+g.readPosition|0,y);try{C=r.decode_g2l45e$(L,Xr(!0))}catch(t){throw e.isType(t,x)?new yr("Failed to decode bytes: "+(null!=(N=t.message)?N:"no cause provided")):t}f=C}var z=f;a.append_pdl1vj$(z),g.discardExact_za3lpa$(y),s.v=s.v-y|0,d=s.v>0?6:0}finally{var w=h;p=w.writePosition-w.readPosition|0}else p=m;if(u=!1,0===p)l=uo(n,h);else{var O=p0)}finally{u&&lo(n,h)}}while(0);if(s.v>0)t:do{var A,I,U=!0;if(null==(A=co(n,1)))break t;var D=A;try{for(;;){var P,M=D,k=M.writePosition-M.readPosition|0,j=s.v,G=T.min(k,j);if(0===M.readPosition&&M.memory.view.byteLength===G)P=r.decode_c2mund$(M.memory.view);else{var q,F,W=new Int8Array(M.memory.view.buffer,M.memory.view.byteOffset+M.readPosition|0,G);try{q=r.decode_g2l45e$(W,Xr(!0))}catch(t){throw e.isType(t,x)?new yr("Failed to decode bytes: "+(null!=(F=t.message)?F:"no cause provided")):t}P=q}var H=P;if(a.append_pdl1vj$(H),M.discardExact_za3lpa$(G),s.v=s.v-G|0,U=!1,null==(I=uo(n,D)))break;D=I,U=!0}}finally{U&&lo(n,D)}}while(0);a.append_pdl1vj$(r.decode())}catch(t){throw e.isType(t,x)?new yr("Failed to decode bytes: "+(null!=(o=t.message)?o:"no cause provided")):t}if(s.v>0)throw new Hr("Not enough bytes available: had only "+(i-s.v|0)+" instead of "+i);return a.toString()}(t,n,i)}function pr(){gr=this,this.UTF_8=new Er("UTF-8"),this.ISO_8859_1=new Er("ISO-8859-1")}Jo.$metadata$={kind:d,simpleName:"Charset",interfaces:[]},er.$metadata$={kind:d,simpleName:"CharsetEncoder",interfaces:[]},nr.$metadata$={kind:d,simpleName:"CharsetEncoderImpl",interfaces:[er]},nr.prototype.component1_0=function(){return this.charset_0},nr.prototype.copy_6ypavq$=function(t){return new nr(void 0===t?this.charset_0:t)},nr.prototype.toString=function(){return"CharsetEncoderImpl(charset="+e.toString(this.charset_0)+")"},nr.prototype.hashCode=function(){var t=0;return t=31*t+e.hashCode(this.charset_0)|0},nr.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.charset_0,t.charset_0)},cr.$metadata$={kind:d,simpleName:"CharsetDecoder",interfaces:[]},lr.$metadata$={kind:d,simpleName:"CharsetDecoderImpl",interfaces:[cr]},lr.prototype.component1_0=function(){return this.charset_0},lr.prototype.copy_6ypavq$=function(t){return new lr(void 0===t?this.charset_0:t)},lr.prototype.toString=function(){return"CharsetDecoderImpl(charset="+e.toString(this.charset_0)+")"},lr.prototype.hashCode=function(){var t=0;return t=31*t+e.hashCode(this.charset_0)|0},lr.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.charset_0,t.charset_0)},pr.$metadata$={kind:W,simpleName:"Charsets",interfaces:[]};var _r,mr,fr,gr=null;function $r(){return null===gr&&new pr,gr}function Er(t){Jo.call(this,t),this.name=t}function yr(t){x.call(this),this.message_dl21pz$_0=t,this.cause_5de4tn$_0=null,e.captureStack(x,this),this.name="MalformedInputException"}function br(t,e){this.charactersDecoded=t,this.bytesConsumed=e}function Sr(t,n,i){if(0===i)return new br("",0);try{var o=j(i,t.byteLength),r=n.decode_c2mund$(t.subarray(0,o));if(r.length<=i)return new br(r,o)}catch(t){}return function(t,n,i){for(var o,r=j(i>=268435455?2147483647:8*i|0,t.byteLength);r>8;){try{var s=n.decode_c2mund$(t.subarray(0,r));if(s.length<=i)return new br(s,r)}catch(t){}r=r/2|0}for(r=8;r>0;){try{var a=n.decode_c2mund$(t.subarray(0,r));if(a.length<=i)return new br(a,r)}catch(t){}r=r-1|0}try{n.decode_c2mund$(t)}catch(t){throw e.isType(t,x)?new yr("Failed to decode bytes: "+(null!=(o=t.message)?o:"no cause provided")):t}throw new yr("Unable to decode buffer")}(t,n,i)}function vr(t,e,n,i){if(e>=n)return 0;for(var o,r=i.writePosition,s=i.memory.slice_vux9f0$(r,i.limit-r|0).view,a=new Int8Array(s.buffer,s.byteOffset,s.byteLength),c=0,l=e;l255&&Cr(u),a[(o=c,c=o+1|0,o)]=g(u)}var h=c;return i.commitWritten_za3lpa$(h),n-e|0}function Cr(t){throw new yr("The character with unicode point "+t+" couldn't be mapped to ISO-8859-1 character")}function Nr(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=e.byteLength-n|0);var o=t.memory,r=t.readPosition;if((t.writePosition-r|0)t.readPosition))return-1;var o=t.writePosition-t.readPosition|0,r=T.min(i,o);return Nr(t,e,n,r),r}function Lr(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=e.byteLength-n|0);var o=t.memory,r=t.writePosition;if((t.limit-r|0)0&&(o.v=o.v+l|0),!(o.v=0))throw new st("offset ("+t+") shouldn't be negative");if(!(e>=0))throw new st("length ("+e+") shouldn't be negative");if(!((t+e|0)<=n.length))throw new st("offset ("+t+") + length ("+e+") > bytes.size ("+n.length+")");throw yt()}function Fr(t,e,n){var i,o=t.length;if(!((n+o|0)<=e.length))throw L("Failed requirement.".toString());for(var r=n,s=0;s255&&o.writeByte_s8j3t7$(g(u>>8)),o.writeByte_s8j3t7$(g(255&u))}n=o.build()}catch(t){throw e.isType(t,x)?(o.release(),t):t}return St(zi(n))},Zr.prototype.decode_g2l45e$=function(t,e){return this.decode_c2mund$(t)},Zr.$metadata$={kind:d,simpleName:"TextDecoderFallback",interfaces:[Kr]},Object.defineProperty(ts.prototype,"capacity",{get:function(){return this.capacity_7nvyry$_0}}),ts.prototype.disposeInstance_trkh7z$=function(t){},ts.prototype.clearInstance_trkh7z$=function(t){return t},ts.prototype.validateInstance_trkh7z$=function(t){},ts.prototype.borrow=function(){var t;if(0===this.size_p9jgx3$_0)return this.produceInstance();var n=(this.size_p9jgx3$_0=this.size_p9jgx3$_0-1|0,this.size_p9jgx3$_0),i=e.isType(t=this.instances_j5hzgy$_0[n],C)?t:f();return this.instances_j5hzgy$_0[n]=null,this.clearInstance_trkh7z$(i)},ts.prototype.recycle_trkh7z$=function(t){var e;this.validateInstance_trkh7z$(t),this.size_p9jgx3$_0===this.capacity?this.disposeInstance_trkh7z$(t):this.instances_j5hzgy$_0[(e=this.size_p9jgx3$_0,this.size_p9jgx3$_0=e+1|0,e)]=t},ts.prototype.dispose=function(){var t,n;t=this.size_p9jgx3$_0;for(var i=0;i>>8)},ss.reverseByteOrder_s8ev3n$=function(t){var e=R(65535&t),n=R((255&e)<<8|(65535&e)>>>8)<<16,i=R(t>>>16);return n|65535&R((255&i)<<8|(65535&i)>>>8)},ss.reverseByteOrder_mts6qi$=function(t){var n=t.and(K).toInt(),i=R(65535&n),o=R((255&i)<<8|(65535&i)>>>8)<<16,r=R(n>>>16),s=e.Long.fromInt(o|65535&R((255&r)<<8|(65535&r)>>>8)).shiftLeft(32),a=t.shiftRightUnsigned(32).toInt(),c=R(65535&a),l=R((255&c)<<8|(65535&c)>>>8)<<16,u=R(a>>>16);return s.or(e.Long.fromInt(l|65535&R((255&u)<<8|(65535&u)>>>8)).and(K))},ss.reverseByteOrder_81szk$=function(t){var n=it(t),i=R(65535&n),o=R((255&i)<<8|(65535&i)>>>8)<<16,r=R(n>>>16),s=o|65535&R((255&r)<<8|(65535&r)>>>8);return e.floatFromBits(s)},ss.reverseByteOrder_yrwdxr$=function(t){var n=ot(t),i=n.and(K).toInt(),o=R(65535&i),r=R((255&o)<<8|(65535&o)>>>8)<<16,s=R(i>>>16),a=e.Long.fromInt(r|65535&R((255&s)<<8|(65535&s)>>>8)).shiftLeft(32),c=n.shiftRightUnsigned(32).toInt(),l=R(65535&c),u=R((255&l)<<8|(65535&l)>>>8)<<16,h=R(c>>>16),d=a.or(e.Long.fromInt(u|65535&R((255&h)<<8|(65535&h)>>>8)).and(K));return e.doubleFromBits(d)},rs.ByteOrder=zr,os.CloseElement=xe,os.ReaderJob=Ie,os.WriterJob=Ue,os.ReaderScope=De,os.WriterScope=Pe,os.writer_x9a1ni$=function(t,e,n,i){return void 0===e&&(e=D.EmptyCoroutineContext),void 0===n&&(n=!1),function(t,e,n,i,o){var r,s,a,c,l,u=t.coroutineContext.get_j3r2sn$(M.Key),h=k(t,e,void 0,(r=i,s=n,a=o,c=u,function(t,e,n){var i=new Me(r,s,a,c,t,this,e);return n?i:i.doResume(null)}));return h.invokeOnCompletion_f05bi3$((l=n,function(t){return l.close_dbl4no$(t),p})),new je(h,n)}(t,e,vo(n),!0,i)},os.unwrapCancellationException_fg6mcf$=Ge,os.requestBuffer_78elpf$=function(t,e,n,i){var o=new Be(t,e,n);return i?o:o.doResume(null)},rs.Buffer=dn,os.completeReadingFromBuffer_6msh3s$=function(t,e,n,i,o){var r=new We(t,e,n,i);return o?r:r.doResume(null)},os.ReadSession=qe,os.SuspendableReadSession=Fe,os.HasReadSession=Xe,os.requestWriteBuffer_9tm6dw$=function(t,e,n,i){var o=new Ze(t,e,n);return i?o:o.doResume(null)},os.completeWriting_oczduq$=function(t,n,i,o){var r,s;if(!e.isType(t,Qe))return s=new tn(t,n,o),r?s:s.doResume(null);t.endWriteSession_za3lpa$(i)},os.WriterSession=Je,os.WriterSuspendSession=Ye,os.HasWriteSession=Qe,ss.Allocator=nn,ss.copyTo_tiw1kd$=Ho;var as=os.charsets||(os.charsets={});as.encode_6xuvjk$=function(t,e,n,i,o){hn(t,o,e,n,i)},as.encodeToByteArrayImpl_fj4osb$=function(t,e,n,i){return void 0===n&&(n=0),void 0===i&&(i=e.length),or(t,e,n,i)},as.encode_fj4osb$=function(t,n,i,o){var r;void 0===i&&(i=0),void 0===o&&(o=n.length);var s=new Vn;try{hn(t,s,n,i,o),r=s.build()}catch(t){throw e.isType(t,x)?(s.release(),t):t}return r},as.encodeUTF8_45773h$=function(t,n){var i,o=new Vn;try{sr(t,n,o),i=o.build()}catch(t){throw e.isType(t,x)?(o.release(),t):t}return i},as.encode_ufq2gc$=on,as.decode_lb8wo3$=rn,as.TooLongLineException=sn,as.encodeArrayImpl_bptnt4$=an,as.encodeToByteArrayImpl1_5lnu54$=cn,as.sizeEstimate_i9ek5c$=ln,as.encodeToImpl_nctdml$=hn,Object.defineProperty(dn,"Companion",{get:fn}),rs.discardFailed_6xvm5r$=gn,rs.commitWrittenFailed_6xvm5r$=$n,rs.rewindFailed_6xvm5r$=En,rs.startGapReservationFailedDueToLimit_g087h2$=yn,rs.startGapReservationFailed_g087h2$=bn,rs.endGapReservationFailedDueToCapacity_g087h2$=Sn,rs.endGapReservationFailedDueToStartGap_g087h2$=vn,rs.endGapReservationFailedDueToContent_g087h2$=Cn,rs.restoreStartGap_g087h2$=Nn,rs.InsufficientSpaceException_init_3m52m6$=Ln,rs.InsufficientSpaceException=Tn,rs.writeBufferAppend_eajdjw$=zn,rs.writeBufferPrepend_tfs7w2$=wn,rs.DefaultBufferPool=On,rs.readShort_abnlgx$=Rn,rs.readInt_abnlgx$=An,rs.readLong_abnlgx$=xn,rs.readFloat_abnlgx$=In,rs.readDouble_abnlgx$=Un,rs.writeShort_cx5lgg$=Dn,rs.writeInt_cni1rh$=Pn,rs.writeLong_xy6qu0$=Mn,rs.readFully_7ntqvp$=kn,rs.writeFully_7ntqvp$=jn,rs.readFully_i3yunz$=Gn,rs.writeFully_i3yunz$=qn,rs.releaseAll_dgux4l$=Fn,rs.copyAll_kx8gx4$=Bn,rs.findTail_kx8gx4$=Wn,rs.remainingAll_kx8gx4$=Hn,rs.BytePacketBuilder=Vn,Object.defineProperty(Kn,"Companion",{get:Yn}),rs.ByteReadPacket_init_mfe2hi$=Qn,rs.ByteReadPacket=Kn,rs.addSuppressedInternal_oh0dqn$=function(t,e){},Object.defineProperty(Zn,"Companion",{get:ii}),rs.Input=Zn,rs.discard_7wsnj1$=function(t){return t.discard_s8cxhz$(z)};var cs=rs.internal||(rs.internal={});cs.prepareReadFirstHead_j319xh$=co,cs.prepareReadNextHead_x2nit9$=uo,cs.completeReadHead_x2nit9$=lo,rs.readFully_ja303r$=oi,rs.readFully_n4diq5$=ri,rs.readAvailable_czhrh1$=function(t,n,i,o){var r={v:o},s={v:i};t:do{var a,c,l=!0;if(null==(a=co(t,1)))break t;var u=a;try{for(;;){var h=u,d=r.v,p=e.Long.fromInt(h.writePosition-h.readPosition|0),f=(d.compareTo_11rb$(p)<=0?d:p).toInt(),g=h.memory,$=e.Long.fromInt(h.readPosition),E=s.v;if(g.copyTo_q2ka7j$(n,$,e.Long.fromInt(f),E),h.discardExact_za3lpa$(f),r.v=r.v.subtract(e.Long.fromInt(f)),s.v=s.v.add(e.Long.fromInt(f)),!(r.v.toNumber()>0))break;if(l=!1,null==(c=uo(t,u)))break;u=c,l=!0}}finally{l&&lo(t,u)}}while(0);var y=r.v,b=o.subtract(y);return m(b,_)&&t.endOfInput?nt:b},rs.readShort_7wsnj1$=si,rs.readInt_7wsnj1$=ci,rs.readLong_7wsnj1$=ui,rs.readFloat_7wsnj1$=di,rs.readFloatFallback_7wsnj1$=pi,rs.readDouble_7wsnj1$=_i,rs.readDoubleFallback_7wsnj1$=mi,rs.Output=fi,rs.writeFully_i6snlg$=gi,rs.writeFully_apj91c$=$i,rs.writeFully_35rta0$=Ei,rs.writeFully_bch96q$=yi,cs.prepareWriteHead_uoax3m$=ho,rs.writeShort_9kfkzl$=bi,rs.writeInt_qu9kum$=Si,rs.writeLong_kb5mzd$=Ci,rs.writeFloat_9rid5t$=Ti,rs.writeDouble_jgp4k2$=Li,rs.prematureEndOfStream_za3lpa$=xi,as.encodeToByteArray_fj4osb$=or,rs.readBytes_xc9h3n$=zi,rs.readText_1lnizf$=function(t,e,n){return void 0===e&&(e=$r().UTF_8),void 0===n&&(n=2147483647),rn(e.newDecoder(),t,n)},rs.readTextExactBytes_yqne27$=wi,rs.writeText_t153jy$=Oi,rs.writeText_t7k8z4$=Ri,cs.CharArraySequence=Ii,Object.defineProperty(Ui,"Companion",{get:Bi}),cs.ChunkBuffer=Ui,cs.isExclusivelyOwned_kx8gx4$=Wi,cs.EncodeResult_init_2ahd1g$=Vi,cs.EncodeResult=Hi,cs.failLongToIntConversion_a4hdmt$=Ki,cs.decodeUTF8LineLoopSuspend_dsomrf$=Ji,cs.malformedByteCount_za3lpa$=Zi,cs.isBmpCodePoint_za3lpa$=eo,cs.isValidCodePoint_za3lpa$=no,cs.malformedCodePoint_za3lpa$=to,cs.highSurrogate_za3lpa$=oo,cs.lowSurrogate_za3lpa$=io,cs.encodeUTF8_yjoz4m$=Qi,cs.codePoint_fdkhi5$=ro,cs.MalformedUTF8InputException=so,cs.unsafeAppend_z83jwh$=ao;var ls=os.internal||(os.internal={});ls.AwaitingSlot=po,ls.copyToSequentialImpl_6ii227$=go;var us=os.pool||(os.pool={});Object.defineProperty(us,"ByteArrayPool",{get:function(){return qi}}),us.ObjectPool=yo,us.NoPoolImpl=bo,us.SingleInstancePool=So,os.ByteChannel_6taknv$=vo,os.ByteReadChannel_mj6st8$=Co,os.copyTo_47ygvz$=No,os.ByteChannelJS=To,Object.defineProperty(Oo,"Companion",{get:Io}),os.ByteReadChannel=Oo,os.ByteWriteChannel=Uo,ss.Memory=qo,ss.of_2z595v$=Do,ss.of_3qjk6t$=Po,ss.of_d2rc7k$=Mo,Object.defineProperty(ss,"DefaultAllocator",{get:Go}),Object.defineProperty(qo,"Companion",{get:Wo}),ss.copyTo_1uvjz5$=Vo,ss.copyTo_3wm8wl$=Ko,ss.copyTo_vnj7g0$=Xo,Object.defineProperty(Jo,"Companion",{get:Zo}),as.Charset=Jo,as.get_name_2sg7fd$=tr,as.CharsetEncoder=er,as.get_charset_x4isqx$=ir,as.encodeImpl_edsj0y$=rr,as.encodeUTF8_sbvn4u$=sr,as.encodeComplete_5txte2$=ar,as.CharsetDecoder=cr,as.get_charset_e9jvmp$=ur,as.decodeBuffer_eccjnr$=function(t,e,n,i,o){if(void 0===o&&(o=2147483647),0===o)return 0;var r=Vr(tr(ur(t))),s={v:null},a=e.memory,c=e.readPosition,l=e.writePosition,u=Sr(new gt(a.view.buffer,a.view.byteOffset+c|0,l-c|0),r,o);n.append_gw00v9$(u.charactersDecoded),s.v=u.bytesConsumed;var h=u.bytesConsumed;return e.discardExact_za3lpa$(h),s.v},as.decode_eyhcpn$=hr,as.decodeExactBytes_lb8wo3$=dr,Object.defineProperty(as,"Charsets",{get:$r}),as.MalformedInputException=yr,Object.defineProperty(as,"MAX_CHARACTERS_SIZE_IN_BYTES_8be2vx$",{get:function(){return _r}}),as.DecodeBufferResult=br,as.decodeBufferImpl_g8dwr5$=Sr,as.encodeISO88591_4e1bz1$=vr,rs.readFully_xbe0h9$=Nr,rs.readAvailable_xbe0h9$=Tr,rs.writeFully_agdgmg$=Lr,Object.defineProperty(zr,"BIG_ENDIAN",{get:Or}),Object.defineProperty(zr,"LITTLE_ENDIAN",{get:Rr}),Object.defineProperty(zr,"Companion",{get:Mr}),rs.Closeable=kr,rs.readFully_7dohgh$=jr,rs.readAvailable_7dohgh$=Gr,rs.String_xge8xe$=function(t,e,n,i){void 0===e&&(e=0),void 0===n&&(n=t.length),void 0===i&&(i=$r().UTF_8),(e<0||n<0||(e+n|0)>t.length)&&qr(e,n,t);var o=t,r=o.byteOffset+e|0,s=o.buffer.slice(r,r+n|0),a=new Ui(Po(Wo(),s),null,Bi().NoPool_8be2vx$);a.resetForRead();var c=Qn(a,Bi().NoPoolManuallyManaged_8be2vx$);return rn(i.newDecoder(),c,2147483647)},rs.checkIndices_khgzz8$=qr,rs.getCharsInternal_8t7fl6$=Fr;var hs=os.errors||(os.errors={});hs.IOException_init_61zpoe$=Wr,hs.IOException=Br,hs.EOFException=Hr;var ds=os.js||(os.js={});return ds.Decoder_t8jjq2$=Vr,ds.Decoder=Kr,ds.decodeOptions_vft4zs$=Xr,ds.toKtor_y2kull$=Yr,ds.textDecoderOptions_vft4zs$=Qr,ds.TextDecoderFallback=Zr,us.DefaultPool=ts,Ct.prototype.readRemaining_s8cxhz$=Oo.prototype.readRemaining_s8cxhz$,Ct.prototype.peekTo_afjyek$=Oo.prototype.peekTo_afjyek$,Fe.prototype.request_za3lpa$=qe.prototype.request_za3lpa$,Nt.prototype.readRemaining_s8cxhz$=Ct.prototype.readRemaining_s8cxhz$,Nt.prototype.await_za3lpa$=Fe.prototype.await_za3lpa$,Nt.prototype.request_za3lpa$=Fe.prototype.request_za3lpa$,Nt.prototype.peekTo_afjyek$=Ct.prototype.peekTo_afjyek$,Ie.prototype.cancel=I.prototype.cancel,Ie.prototype.fold_3cc69b$=I.prototype.fold_3cc69b$,Ie.prototype.get_j3r2sn$=I.prototype.get_j3r2sn$,Ie.prototype.minusKey_yeqjby$=I.prototype.minusKey_yeqjby$,Ie.prototype.plus_dqr1mp$=I.prototype.plus_dqr1mp$,Ie.prototype.plus_1fupul$=I.prototype.plus_1fupul$,Ie.prototype.cancel_dbl4no$=I.prototype.cancel_dbl4no$,Ie.prototype.cancel_x5z25k$=I.prototype.cancel_x5z25k$,Ie.prototype.invokeOnCompletion_ct2b2z$=I.prototype.invokeOnCompletion_ct2b2z$,Ue.prototype.cancel=I.prototype.cancel,Ue.prototype.fold_3cc69b$=I.prototype.fold_3cc69b$,Ue.prototype.get_j3r2sn$=I.prototype.get_j3r2sn$,Ue.prototype.minusKey_yeqjby$=I.prototype.minusKey_yeqjby$,Ue.prototype.plus_dqr1mp$=I.prototype.plus_dqr1mp$,Ue.prototype.plus_1fupul$=I.prototype.plus_1fupul$,Ue.prototype.cancel_dbl4no$=I.prototype.cancel_dbl4no$,Ue.prototype.cancel_x5z25k$=I.prototype.cancel_x5z25k$,Ue.prototype.invokeOnCompletion_ct2b2z$=I.prototype.invokeOnCompletion_ct2b2z$,je.prototype.cancel_dbl4no$=Ie.prototype.cancel_dbl4no$,je.prototype.cancel_x5z25k$=Ie.prototype.cancel_x5z25k$,je.prototype.invokeOnCompletion_ct2b2z$=Ie.prototype.invokeOnCompletion_ct2b2z$,ts.prototype.close=yo.prototype.close,Pi.prototype.close=yo.prototype.close,Mi.prototype.close=yo.prototype.close,bo.prototype.close=yo.prototype.close,So.prototype.close=yo.prototype.close,o=c,r=new xe(null),_n=new On,Gi=new Int8Array(0),qi=new Eo(128),Mr().nativeOrder(),Rr(),_r=8,xr=200,Ir=bt(["ansi_x3.4-1968","ascii","cp1252","cp819","csisolatin1","ibm819","iso-8859-1","iso-ir-100","iso8859-1","iso88591","iso_8859-1","iso_8859-1:1987","l1","latin1","us-ascii","windows-1252","x-cp1252"]),Ur=new Int8Array([g(239),g(191),g(189)]),Dr=new Int32Array([8364,-1,8218,402,8222,8230,8224,8225,710,8240,352,8249,338,-1,381,-1,-1,8216,8217,8220,8221,8226,8211,8212,732,8482,353,8250,339,-1,382,376,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]),t})?i.apply(e,o):i)||(t.exports=r)},function(t,e,n){var i=n(27).Buffer,o=n(776).Transform,r=n(153).StringDecoder;function s(t){o.call(this),this.hashMode="string"==typeof t,this.hashMode?this[t]=this._finalOrDigest:this.final=this._finalOrDigest,this._final&&(this.__final=this._final,this._final=null),this._decoder=null,this._encoding=null}n(20)(s,o),s.prototype.update=function(t,e,n){"string"==typeof t&&(t=i.from(t,e));var o=this._update(t);return this.hashMode?this:(n&&(o=this._toString(o,n)),o)},s.prototype.setAutoPadding=function(){},s.prototype.getAuthTag=function(){throw new Error("trying to get auth tag in unsupported state")},s.prototype.setAuthTag=function(){throw new Error("trying to set auth tag in unsupported state")},s.prototype.setAAD=function(){throw new Error("trying to set aad in unsupported state")},s.prototype._transform=function(t,e,n){var i;try{this.hashMode?this._update(t):this.push(this._update(t))}catch(t){i=t}finally{n(i)}},s.prototype._flush=function(t){var e;try{this.push(this.__final())}catch(t){e=t}t(e)},s.prototype._finalOrDigest=function(t){var e=this.__final()||i.alloc(0);return t&&(e=this._toString(e,t,!0)),e},s.prototype._toString=function(t,e,n){if(this._decoder||(this._decoder=new r(e),this._encoding=e),this._encoding!==e)throw new Error("can't switch encodings");var i=this._decoder.write(t);return n&&(i+=this._decoder.end()),i},t.exports=s},function(t,e,n){"use strict";t.exports=function(t){return!("undefined"==typeof window||!window.__DRAFT_GKX)&&!!window.__DRAFT_GKX[t]}},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiDialogTitle",t)}const s=Object(o.a)("MuiDialogTitle",["root"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiBottomNavigationAction",t)}const s=Object(o.a)("MuiBottomNavigationAction",["root","iconOnly","selected","label"]);e.a=s},function(t,e,n){"use strict";var i=n(1021);e.a=i.a},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiInputAdornment",t)}const s=Object(o.a)("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiDivider",t)}const s=Object(o.a)("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiFab",t)}const s=Object(o.a)("MuiFab",["root","primary","secondary","extended","circular","focusVisible","disabled","colorInherit","sizeSmall","sizeMedium","sizeLarge","info","error","warning","success"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiFormHelperText",t)}const s=Object(o.a)("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiListItemIcon",t)}const s=Object(o.a)("MuiListItemIcon",["root","alignItemsFlexStart"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiTableRow",t)}const s=Object(o.a)("MuiTableRow",["root","selected","hover","head","footer"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiToggleButton",t)}const s=Object(o.a)("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge"]);e.a=s},function(t,e,n){"use strict";var i=n(104);const o=Object(i.b)();e.a=o},function(t,e,n){"use strict";var i=n(0);const o=i.createContext();e.a=o},function(t,e,n){"use strict";e.a={black:"#000",white:"#fff"}},function(t,e,n){"use strict";e.a={50:"#fff3e0",100:"#ffe0b2",200:"#ffcc80",300:"#ffb74d",400:"#ffa726",500:"#ff9800",600:"#fb8c00",700:"#f57c00",800:"#ef6c00",900:"#e65100",A100:"#ffd180",A200:"#ffab40",A400:"#ff9100",A700:"#ff6d00"}},function(t,e,n){"use strict";n.d(e,"b",(function(){return i})),n.d(e,"c",(function(){return o})),n.d(e,"a",(function(){return r})),n.d(e,"d",(function(){return s}));const i=(t,e,n)=>{const i=t.date(e);return null===e?"":t.isValid(i)?t.formatByString(i,n):""};function o(t,e,n,i){if(t)return t;const o=i.formatByString(i.date("2019-01-01T09:00:00.000"),e).replace(n,"_");return o===i.formatByString(i.date("2019-11-21T22:30:00.000"),e).replace(n,"_")?o:""}function r(t,e,n,i){if(!t)return!1;const o=i.formatByString(i.date("2019-01-01T09:00:00.000"),e).replace(n,"_"),r=i.formatByString(i.date("2019-11-21T22:30:00.000"),e).replace(n,"_"),s=r===o&&t===r;return!s&&i.lib,s}const s=(t,e)=>n=>{let i=0;return n.split("").map((o,r)=>{if(e.lastIndex=0,i>t.length-1)return"";const s=t[i],a=t[i+1],c=e.test(o)?o:"",l="_"===s?c:s+c;i+=l.length;return r===n.length-1&&a&&"_"!==a?l?l+a:"":l}).join("")}},,,function(t,e,n){var i,o,r;o=[e,n(31)],void 0===(r="function"==typeof(i=function(t,e){"use strict";var n,i,o,r,s=e.getKClass,a=e.Kind.CLASS,c=e.kotlin.Annotation,l=(e.kotlin.Enum,e.throwISE,e.kotlin.collections.asList_us0mfu$),u=e.kotlin.Unit,h=e.kotlin.collections.emptyList_287e2$,d=e.Kind.INTERFACE,p=e.kotlin.LazyThreadSafetyMode,_=(e.kotlin.js.internal.StringCompanionObject,e.toString),m=e.kotlin.lazy_kls4a0$,f=e.kotlin.collections.distinct_us0mfu$,g=e.kotlin.IllegalArgumentException_init_pdl1vj$,$=e.kotlin.collections.zip_r9t3v7$,E=e.kotlin.collections.toMap_6hr0sd$,y=e.kotlin.collections.Grouping,b=e.kotlin.collections.LinkedHashMap_init_q3lmfv$,S=e.kotlin.IllegalStateException_init_pdl1vj$,v=e.kotlin.collections.mapCapacity_za3lpa$,C=e.kotlin.collections.LinkedHashMap_init_bwtc7$,N=e.kotlin.collections.Map,T=e.throwCCE,L=(e.defineInlineFunction,e.wrapFunction,e.kotlin.IllegalArgumentException),z=(e.kotlin.IllegalArgumentException_init,e.kotlin.collections.listOf_mh5how$),w=e.kotlin.collections.Collection,O=e.equals,R=e.kotlin.collections.List,A=e.kotlin.collections.MutableList,x=e.kotlin.collections.ArrayList,I=e.kotlin.collections.HashSet,U=e.kotlin.collections.Set,D=e.kotlin.collections.MutableSet,P=e.kotlin.collections.LinkedHashSet,M=e.kotlin.collections.HashMap,k=e.kotlin.collections.MutableMap,j=e.kotlin.collections.LinkedHashMap,G=e.kotlin.collections.Map.Entry,q=e.kotlin.Pair,F=e.kotlin.Triple,B=e.kotlin.reflect.KClass,W=e.kotlin.collections.collectionSizeOrDefault_ba2ldo$,H=e.kotlin.collections.ArrayList_init_ww73n8$,V=Object,K=e.kotlin.collections.copyToArray,X=e.ensureNotNull,J=e.kotlin.Result,Y=(e.kotlin.text.toLong_pdl1vz$,e.Kind.OBJECT),Q=e.hashCode,Z=e.kotlin.collections.Iterator,tt=e.kotlin.collections.Iterable,et=e.kotlin.collections.toList_us0mfu$,nt=e.kotlin.collections.ArrayList_init_287e2$,it=e.kotlin.collections.HashSet_init_287e2$,ot=e.arrayEquals,rt=e.kotlin.ranges.until_dqglrj$,st=e.kotlin.collections.joinToString_fmv235$,at=e.kotlin.collections.toHashSet_7wnvza$,ct=e.kotlin.collections.toBooleanArray_xmyvgf$,lt=e.kotlin.collections.withIndex_us0mfu$,ut=e.kotlin.to_ujzrz7$,ht=e.kotlin.lazy_klfg04$,dt=e.kotlin.text.isBlank_gw00vp$,pt=e.toBoxedChar,_t=e.kotlin.time.Duration,mt=e.kotlin.text.toIntOrNull_pdl1vz$,ft=e.kotlin.collections.getValue_t9ocha$,gt=e.kotlin.collections.ArrayList_init_mqih57$,$t=e.kotlin.collections.LinkedHashSet_init_mqih57$,Et=e.kotlin.collections.HashSet_init_mqih57$,yt=e.kotlin.collections.LinkedHashMap_init_73mtqc$,bt=e.kotlin.collections.HashMap_init_q3lmfv$,St=e.kotlin.collections.HashMap_init_73mtqc$,vt=e.kotlin.collections.LinkedHashSet_init_287e2$,Ct=e.Long.ONE,Nt=e.Long.NEG_ONE,Tt=e.kotlin.countTrailingZeroBits_mts6qi$,Lt=e.kotlin.collections.get_lastIndex_se6h4x$,zt=e.Long.ZERO,wt=(e.kotlin.collections.indexOf_mjy6jw$,e.arrayToString,e.kotlin.collections.get_indices_m7z4lg$),Ot=Array,Rt=(e.toByte,e.kotlin.ranges.CharRange,e.kotlin.text.StringBuilder_init_za3lpa$,e.kotlin.text.trimStart_wqw3xr$,e.kotlin.collections.HashSet_init_ww73n8$),At=e.kotlin.reflect.KTypeParameter,xt=e.kotlin.collections.emptyMap_q3lmfv$,It=e.arrayHashCode,Ut=(e.kotlin.js.internal.ByteCompanionObject,e.kotlin.ranges.coerceAtLeast_dqglrj$),Dt=e.kotlin.collections.copyOf_mrm5p$,Pt=(e.kotlin.js.internal.ShortCompanionObject,e.kotlin.collections.copyOf_m2jy6x$),Mt=(e.kotlin.js.internal.IntCompanionObject,e.kotlin.collections.copyOf_c03ot6$),kt=(e.kotlin.js.internal.LongCompanionObject,e.kotlin.collections.copyOf_3aefkx$),jt=(e.kotlin.js.internal.FloatCompanionObject,e.kotlin.collections.copyOf_rblqex$),Gt=(e.kotlin.js.internal.DoubleCompanionObject,e.kotlin.collections.copyOf_xgrzbe$),qt=e.unboxChar,Ft=(e.kotlin.js.internal.CharCompanionObject,e.kotlin.collections.copyOf_gtcw5h$),Bt=(e.kotlin.js.internal.BooleanCompanionObject,e.kotlin.collections.copyOf_1qu12l$),Wt=e.kotlin.UByteArray_init_za3lpa$,Ht=e.kotlin.UByte,Vt=e.kotlin.UShortArray_init_za3lpa$,Kt=e.kotlin.UShort,Xt=e.kotlin.UIntArray_init_za3lpa$,Jt=e.kotlin.UInt,Yt=e.kotlin.ULongArray_init_za3lpa$,Qt=e.kotlin.ULong,Zt=e.kotlin.UByteArray,te=e.kotlin.UShortArray,ee=e.kotlin.UIntArray,ne=e.kotlin.ULongArray,ie=e.kotlin.reflect.js.internal.PrimitiveClasses.stringClass,oe=e.BoxedChar,re=e.kotlin.reflect.js.internal.PrimitiveClasses.charArrayClass,se=e.kotlin.reflect.js.internal.PrimitiveClasses.doubleClass,ae=e.kotlin.reflect.js.internal.PrimitiveClasses.doubleArrayClass,ce=e.kotlin.reflect.js.internal.PrimitiveClasses.floatClass,le=e.kotlin.reflect.js.internal.PrimitiveClasses.floatArrayClass,ue=e.Long,he=e.kotlin.reflect.js.internal.PrimitiveClasses.longArrayClass,de=e.kotlin.reflect.js.internal.PrimitiveClasses.intClass,pe=e.kotlin.reflect.js.internal.PrimitiveClasses.intArrayClass,_e=e.kotlin.reflect.js.internal.PrimitiveClasses.shortClass,me=e.kotlin.reflect.js.internal.PrimitiveClasses.shortArrayClass,fe=e.kotlin.reflect.js.internal.PrimitiveClasses.byteClass,ge=e.kotlin.reflect.js.internal.PrimitiveClasses.byteArrayClass,$e=e.kotlin.reflect.js.internal.PrimitiveClasses.booleanClass,Ee=e.kotlin.reflect.js.internal.PrimitiveClasses.booleanArrayClass,ye=e.kotlin,be=e.kotlin.collections.mapOf_qfcya0$,Se=e.kotlin.text.equals_igcy3c$,ve=e.kotlin.text.trimIndent_pdl1vz$,Ce=e.kotlin.text.isLowerCase_myv2d0$,Ne=e.kotlin.text.titlecase_myv2d0$,Te=e.kotlin.collections.last_2p1efm$,Le=e.kotlin.collections.lastOrNull_2p1efm$,ze=e.kotlin.collections.get_lastIndex_55thoc$,we=(e.kotlin.collections.asSequence_abgq59$,e.kotlin.IndexOutOfBoundsException),Oe=e.kotlin.collections.get_indices_l1lu5t$,Re=e.kotlin.js.get_js_1yb8b7$,Ae=e.kotlin.reflect.js.internal.PrimitiveClasses.arrayClass,xe=Error,Ie=e.kotlin.createFailure_tcv7n7$,Ue=e.findAssociatedObject_yjf3nl$;function De(){}function Pe(){}function Me(){}function ke(t){var e;co.call(this),this.baseClass_x5jvam$_0=t,this._annotations_0=h(),this.descriptor_nog3ww$_0=m(p.PUBLICATION,(e=this,function(){return Gn(Jn("kotlinx.serialization.Polymorphic",Qi(),[],function(t){return function(e){return e.element_vxrguq$("type",xn().descriptor),e.element_vxrguq$("value",Jn("kotlinx.serialization.Polymorphic<"+_(t.baseClass.simpleName)+">",oi(),[])),e.annotations=t._annotations_0,u}}(e)),e.baseClass)}))}function je(t,e,n){var i;return null!=(i=t.findPolymorphicSerializerOrNull_ca6uye$(e,n))?i:lo(n,t.baseClass)}function Ge(t,n,i){var o;return null!=(o=t.findPolymorphicSerializerOrNull_kjsxpj$(n,i))?o:uo(e.getKClassFromExpression(i),t.baseClass)}function qe(t,e){this.this$groupingBy=t,this.closure$keySelector=e}function Fe(t,e,n,i){var o,r,s;if(co.call(this),this.baseClass_a0a98o$_0=e,this._annotations_0=h(),this.descriptor_gganzq$_0=m(p.PUBLICATION,(o=t,r=this,s=i,function(){return Jn(o,Xi(),[],function(t,e){return function(n){n.element_vxrguq$("type",xn().descriptor);var i=Jn("kotlinx.serialization.Sealed<"+_(t.baseClass.simpleName)+">",oi(),[],function(t){return function(e){var n;for(n=f(t).iterator();n.hasNext();){var i=n.next().descriptor;e.element_vxrguq$(i.serialName,i)}return u}}(e));return n.element_vxrguq$("value",i),n.annotations=t._annotations_0,u}}(r,s))})),this.class2Serializer_0=null,this.serialName2Serializer_0=null,n.length!==i.length)throw g("All subclasses of sealed class "+_(this.baseClass.simpleName)+" should be marked @Serializable");this.class2Serializer_0=E($(n,i));var a,c=new qe(this.class2Serializer_0.entries,Be),l=b();for(a=c.sourceIterator();a.hasNext();){var d=a.next(),y=c.keyOf_11rb$(d),N=l.get_11rb$(y),T=l.put_xwzc9p$;if(null==N&&l.containsKey_11rb$(y),null!=N)throw S(("Multiple sealed subclasses of '"+this.baseClass+"' have the same serial name '"+y+"': '"+N.key+"', '"+d.key+"'").toString());T.call(l,y,d)}var L,z=C(v(l.size));for(L=l.entries.iterator();L.hasNext();){var w=L.next();z.put_xwzc9p$(w.key,w.value.value)}this.serialName2Serializer_0=z}function Be(t){return t.value.descriptor.serialName}function We(){}function He(){}function Ve(){}function Ke(){this.name="SerializationException"}function Xe(t,e){return e=e||Object.create(Ke.prototype),g(t,e),Ke.call(e),e}function Je(t,e,n){return n=n||Object.create(Ke.prototype),L.call(n,t,e),Ke.call(n),n}function Ye(t,e,n){Je(e,n,this),this.name="MissingFieldException",this.missingFields=t}function Qe(t){Xe(t,this),this.name="UnknownFieldException"}function Ze(t,e){var n;return null!=(n=en(t,e,!0))?n:Oa(ar(e))}function tn(t,e){return en(t,e,!1)}function en(t,n,i){var o,r,s,a,c,l,u=ar(n),h=n.isMarkedNullable,d=n.arguments,p=H(W(d,10));for(l=d.iterator();l.hasNext();){var _,m=l.next(),f=p.add_11rb$,$=m.type;if(null==$)throw g(("Star projections in type arguments are not allowed, but had "+n).toString());_=$,f.call(p,_)}var E=p;if(E.isEmpty())o=sn(u,h);else{var y=an(u,E,h);if(i){var b;o=y.isFailure?null:null==(b=y.value)||e.isType(b,V)?b:T()}else{var S;if(null!=y.exceptionOrNull())return null;o=null==(S=y.value)||e.isType(S,V)?S:T()}}if(null!=o)return o;if(E.isEmpty())a=t.getContextual_2n2k9f$(u);else{if(null==(r=nn(t,E,i)))return null;var v=r;a=null!=(s=rn(u,E,v))?s:t.getContextual_2n2k9f$(u,v)}var C,N,L=a;return C=null!=L?e.isType(N=L,De)?N:T():null,null!=(c=C)?function(t,n){var i;return n?cn(t):e.isType(i=t,De)?i:T()}(c,h):null}function nn(t,e,n){var i;if(n){var o,r=H(W(e,10));for(o=e.iterator();o.hasNext();){var s=o.next();r.add_11rb$(Ze(t,s))}i=r}else{var a,c=H(W(e,10));for(a=e.iterator();a.hasNext();){var l,u=a.next(),h=c.add_11rb$;if(null==(l=tn(t,u)))return null;h.call(c,l)}i=c}return i}function on(t){var e;return null!=(e=va(t))?e:ds(t)}function rn(t,n,i){var o;return null!=(o=function(t,n,i){var o;return O(t,s(w))||O(t,s(R))||O(t,s(A))||O(t,s(x))?new Mo(i.get_za3lpa$(0)):O(t,s(I))?new jo(i.get_za3lpa$(0)):O(t,s(U))||O(t,s(D))||O(t,s(P))?new ko(i.get_za3lpa$(0)):O(t,s(M))?new qo(i.get_za3lpa$(0),i.get_za3lpa$(1)):O(t,s(N))||O(t,s(k))||O(t,s(j))?new Go(i.get_za3lpa$(0),i.get_za3lpa$(1)):O(t,s(G))?un(i.get_za3lpa$(0),i.get_za3lpa$(1)):O(t,s(q))?ln(i.get_za3lpa$(0),i.get_za3lpa$(1)):O(t,s(F))?hn(i.get_za3lpa$(0),i.get_za3lpa$(1),i.get_za3lpa$(2)):Aa(t)?In(e.isType(o=n.get_za3lpa$(0).classifier,B)?o:T(),i.get_za3lpa$(0)):null}(t,n,i))?o:function(t,e){return Ra(t,K(e).slice())}(t,i)}function sn(t,o){var r,s,a,c;o?s=i.get_suhcqa$(t):(a=null!=(r=n.get_suhcqa$(t))?e.isType(c=r,De)?c:T():null,s=a);return s}function an(t,n,i){var s;return i?r.get_rhihk2$(t,n):e.isType(s=o.get_rhihk2$(t,n),J)?s:T()}function cn(t){var n;return t.descriptor.isNullable?e.isType(n=t,De)?n:T():new er(t)}function ln(t,e){return new Ys(t,e)}function un(t,e){return new Xs(t,e)}function hn(t,e,n){return new Qs(t,e,n)}function dn(t){return ks()}function pn(){return jr()}function _n(t){return bs()}function mn(){return fr()}function fn(){return Kr()}function gn(t){return Cs()}function $n(){return yr()}function En(){return Qr()}function yn(t){return Ls()}function bn(){return Cr()}function Sn(){return ns()}function vn(t){return Os()}function Cn(){return zr()}function Nn(){return as()}function Tn(t){return xs()}function Ln(){return Ar()}function zn(t){return Ds()}function wn(){return Dr()}function On(t){return $s()}function Rn(){return Br()}function An(t){return ms()}function xn(t){return Fs()}function In(t,e){return new Do(t,e)}function Un(t){return ea()}function Dn(t){return oa()}function Pn(t){return aa()}function Mn(t){return ha()}function kn(t){return yo()}function jn(t){return e.isType(t,qn)?t.kClass:e.isType(t,nr)?jn(t.original_8be2vx$):null}function Gn(t,e){return new qn(t,e)}function qn(t,e){this.original_0=t,this.kClass=e,this.serialName_nfhor0$_0=this.original_0.serialName+"<"+_(this.kClass.simpleName)+">"}function Fn(t){this.closure$iterator=t}function Bn(){}function Wn(t){this.this$elementDescriptors=t,this.elementsLeft_0=t.elementsCount}function Hn(t){return new Fn((e=t,function(){return new Wn(e)}));var e}function Vn(t){return u}function Kn(t,e,n){if(void 0===n&&(n=Vn),dt(t))throw g("Blank serial names are prohibited".toString());var i=new Yn(t);return n(i),new Qn(t,Di(),i.elementNames_8be2vx$.size,et(e),i)}function Xn(t){return u}function Jn(t,e,n,i){if(void 0===i&&(i=Xn),dt(t))throw g("Blank serial names are prohibited".toString());if(O(e,Di()))throw g("For StructureKind.CLASS please use 'buildClassSerialDescriptor' instead".toString());var o=new Yn(t);return i(o),new Qn(t,e,o.elementNames_8be2vx$.size,et(n),o)}function Yn(t){this.serialName=t,this.isNullable=!1,this.annotations=h(),this.elementNames_8be2vx$=nt(),this.uniqueNames_0=it(),this.elementDescriptors_8be2vx$=nt(),this.elementAnnotations_8be2vx$=nt(),this.elementOptionality_8be2vx$=nt()}function Qn(t,e,n,i,o){this.serialName_btmdyn$_0=t,this.kind_589tly$_0=e,this.elementsCount_wewqc2$_0=n,this.annotations_efqcf6$_0=o.annotations,this.serialNames_bcpscy$_0=at(o.elementNames_8be2vx$),this.elementNames_0=K(o.elementNames_8be2vx$),this.elementDescriptors_0=rr(o.elementDescriptors_8be2vx$),this.elementAnnotations_0=K(o.elementAnnotations_8be2vx$),this.elementOptionality_0=ct(o.elementOptionality_8be2vx$);var r,s,a=lt(this.elementNames_0),c=H(W(a,10));for(r=a.iterator();r.hasNext();){var l=r.next();c.add_11rb$(ut(l.value,l.index))}this.name2Index_0=E(c),this.typeParametersDescriptors_0=rr(i),this._hashCode_6e2cwc$_0=ht((s=this,function(){return hr(s,s.typeParametersDescriptors_0)}))}function Zn(){}function ti(){ei=this,Zn.call(this)}ke.prototype=Object.create(co.prototype),ke.prototype.constructor=ke,Fe.prototype=Object.create(co.prototype),Fe.prototype.constructor=Fe,Ke.prototype=Object.create(L.prototype),Ke.prototype.constructor=Ke,Ye.prototype=Object.create(Ke.prototype),Ye.prototype.constructor=Ye,Qe.prototype=Object.create(Ke.prototype),Qe.prototype.constructor=Qe,ti.prototype=Object.create(Zn.prototype),ti.prototype.constructor=ti,ni.prototype=Object.create(Zn.prototype),ni.prototype.constructor=ni,ri.prototype=Object.create(Zn.prototype),ri.prototype.constructor=ri,si.prototype=Object.create(ri.prototype),si.prototype.constructor=si,li.prototype=Object.create(ri.prototype),li.prototype.constructor=li,di.prototype=Object.create(ri.prototype),di.prototype.constructor=di,mi.prototype=Object.create(ri.prototype),mi.prototype.constructor=mi,$i.prototype=Object.create(ri.prototype),$i.prototype.constructor=$i,bi.prototype=Object.create(ri.prototype),bi.prototype.constructor=bi,Ci.prototype=Object.create(ri.prototype),Ci.prototype.constructor=Ci,Li.prototype=Object.create(ri.prototype),Li.prototype.constructor=Li,Oi.prototype=Object.create(ri.prototype),Oi.prototype.constructor=Oi,xi.prototype=Object.create(Zn.prototype),xi.prototype.constructor=xi,Ii.prototype=Object.create(xi.prototype),Ii.prototype.constructor=Ii,Pi.prototype=Object.create(xi.prototype),Pi.prototype.constructor=Pi,ji.prototype=Object.create(xi.prototype),ji.prototype.constructor=ji,Fi.prototype=Object.create(xi.prototype),Fi.prototype.constructor=Fi,Hi.prototype=Object.create(Zn.prototype),Hi.prototype.constructor=Hi,Vi.prototype=Object.create(Hi.prototype),Vi.prototype.constructor=Vi,Ji.prototype=Object.create(Hi.prototype),Ji.prototype.constructor=Ji,Co.prototype=Object.create(So.prototype),Co.prototype.constructor=Co,No.prototype=Object.create(So.prototype),No.prototype.constructor=No,To.prototype=Object.create(So.prototype),To.prototype.constructor=To,Lo.prototype=Object.create(So.prototype),Lo.prototype.constructor=Lo,zo.prototype=Object.create(So.prototype),zo.prototype.constructor=zo,wo.prototype=Object.create(vo.prototype),wo.prototype.constructor=wo,Oo.prototype=Object.create(vo.prototype),Oo.prototype.constructor=Oo,Ao.prototype=Object.create(Ro.prototype),Ao.prototype.constructor=Ao,xo.prototype=Object.create(Ro.prototype),xo.prototype.constructor=xo,Uo.prototype=Object.create(Ao.prototype),Uo.prototype.constructor=Uo,Do.prototype=Object.create(Ao.prototype),Do.prototype.constructor=Do,Po.prototype=Object.create(Ao.prototype),Po.prototype.constructor=Po,Mo.prototype=Object.create(Po.prototype),Mo.prototype.constructor=Mo,ko.prototype=Object.create(Po.prototype),ko.prototype.constructor=ko,jo.prototype=Object.create(Po.prototype),jo.prototype.constructor=jo,Go.prototype=Object.create(xo.prototype),Go.prototype.constructor=Go,qo.prototype=Object.create(xo.prototype),qo.prototype.constructor=qo,Vo.prototype=Object.create(ur.prototype),Vo.prototype.constructor=Vo,Jo.prototype=Object.create(to.prototype),Jo.prototype.constructor=Jo,_r.prototype=Object.create(Uo.prototype),_r.prototype.constructor=_r,gr.prototype=Object.create(Io.prototype),gr.prototype.constructor=gr,$r.prototype=Object.create(Uo.prototype),$r.prototype.constructor=$r,br.prototype=Object.create(Io.prototype),br.prototype.constructor=br,Sr.prototype=Object.create(Uo.prototype),Sr.prototype.constructor=Sr,Nr.prototype=Object.create(Io.prototype),Nr.prototype.constructor=Nr,Tr.prototype=Object.create(Uo.prototype),Tr.prototype.constructor=Tr,wr.prototype=Object.create(Io.prototype),wr.prototype.constructor=wr,Or.prototype=Object.create(Uo.prototype),Or.prototype.constructor=Or,xr.prototype=Object.create(Io.prototype),xr.prototype.constructor=xr,Ir.prototype=Object.create(Uo.prototype),Ir.prototype.constructor=Ir,Pr.prototype=Object.create(Io.prototype),Pr.prototype.constructor=Pr,Mr.prototype=Object.create(Uo.prototype),Mr.prototype.constructor=Mr,Gr.prototype=Object.create(Io.prototype),Gr.prototype.constructor=Gr,qr.prototype=Object.create(Uo.prototype),qr.prototype.constructor=qr,Wr.prototype=Object.create(Io.prototype),Wr.prototype.constructor=Wr,Hr.prototype=Object.create(Uo.prototype),Hr.prototype.constructor=Hr,Xr.prototype=Object.create(Io.prototype),Xr.prototype.constructor=Xr,Jr.prototype=Object.create(Uo.prototype),Jr.prototype.constructor=Jr,Zr.prototype=Object.create(Io.prototype),Zr.prototype.constructor=Zr,ts.prototype=Object.create(Uo.prototype),ts.prototype.constructor=ts,is.prototype=Object.create(Io.prototype),is.prototype.constructor=is,os.prototype=Object.create(Uo.prototype),os.prototype.constructor=os,cs.prototype=Object.create(Io.prototype),cs.prototype.constructor=cs,Ws.prototype=Object.create(Bs.prototype),Ws.prototype.constructor=Ws,Vs.prototype=Object.create(Hs.prototype),Vs.prototype.constructor=Vs,Xs.prototype=Object.create(Ks.prototype),Xs.prototype.constructor=Xs,Ys.prototype=Object.create(Ks.prototype),Ys.prototype.constructor=Ys,pa.prototype=Object.create(da.prototype),pa.prototype.constructor=pa,ma.prototype=Object.create(_a.prototype),ma.prototype.constructor=ma,fa.prototype=Object.create(_a.prototype),fa.prototype.constructor=fa,De.$metadata$={kind:d,simpleName:"KSerializer",interfaces:[Me,Pe]},Pe.$metadata$={kind:d,simpleName:"SerializationStrategy",interfaces:[]},Me.$metadata$={kind:d,simpleName:"DeserializationStrategy",interfaces:[]},Object.defineProperty(ke.prototype,"baseClass",{get:function(){return this.baseClass_x5jvam$_0}}),Object.defineProperty(ke.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_nog3ww$_0.value}}),ke.prototype.toString=function(){return"kotlinx.serialization.PolymorphicSerializer(baseClass: "+this.baseClass+")"},ke.$metadata$={kind:a,simpleName:"PolymorphicSerializer",interfaces:[co]},qe.prototype.sourceIterator=function(){return this.this$groupingBy.iterator()},qe.prototype.keyOf_11rb$=function(t){return this.closure$keySelector(t)},qe.$metadata$={kind:a,interfaces:[y]},Object.defineProperty(Fe.prototype,"baseClass",{get:function(){return this.baseClass_a0a98o$_0}}),Object.defineProperty(Fe.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_gganzq$_0.value}}),Fe.prototype.findPolymorphicSerializerOrNull_ca6uye$=function(t,n){var i,o,r=this.serialName2Serializer_0;return null!=(i=(e.isType(o=r,N)?o:T()).get_11rb$(n))?i:co.prototype.findPolymorphicSerializerOrNull_ca6uye$.call(this,t,n)},Fe.prototype.findPolymorphicSerializerOrNull_kjsxpj$=function(t,n){var i,o,r;return null!=(o=null!=(i=this.class2Serializer_0.get_11rb$(e.getKClassFromExpression(n)))?i:co.prototype.findPolymorphicSerializerOrNull_kjsxpj$.call(this,t,n))?e.isType(r=o,Pe)?r:T():null},Fe.$metadata$={kind:a,simpleName:"SealedClassSerializer",interfaces:[co]},We.$metadata$={kind:d,simpleName:"SerialFormat",interfaces:[]},He.$metadata$={kind:d,simpleName:"BinaryFormat",interfaces:[We]},Ve.$metadata$={kind:d,simpleName:"StringFormat",interfaces:[We]},Ke.$metadata$={kind:a,simpleName:"SerializationException",interfaces:[L]},Ye.$metadata$={kind:a,simpleName:"MissingFieldException",interfaces:[Ke]},Qe.$metadata$={kind:a,simpleName:"UnknownFieldException",interfaces:[Ke]},Object.defineProperty(qn.prototype,"serialName",{configurable:!0,get:function(){return this.serialName_nfhor0$_0}}),qn.prototype.equals=function(t){var n,i,o;if(null==(i=e.isType(n=t,qn)?n:null))return!1;var r=i;return O(this.original_0,r.original_0)&&(null!=(o=r.kClass)?o.equals(this.kClass):null)},qn.prototype.hashCode=function(){var t=this.kClass.hashCode();return t=(31*t|0)+Q(this.serialName)|0},qn.prototype.toString=function(){return"ContextDescriptor(kClass: "+this.kClass+", original: "+this.original_0+")"},Object.defineProperty(qn.prototype,"annotations",{configurable:!0,get:function(){return this.original_0.annotations}}),Object.defineProperty(qn.prototype,"elementsCount",{configurable:!0,get:function(){return this.original_0.elementsCount}}),Object.defineProperty(qn.prototype,"isInline",{configurable:!0,get:function(){return this.original_0.isInline}}),Object.defineProperty(qn.prototype,"isNullable",{configurable:!0,get:function(){return this.original_0.isNullable}}),Object.defineProperty(qn.prototype,"kind",{configurable:!0,get:function(){return this.original_0.kind}}),qn.prototype.getElementAnnotations_za3lpa$=function(t){return this.original_0.getElementAnnotations_za3lpa$(t)},qn.prototype.getElementDescriptor_za3lpa$=function(t){return this.original_0.getElementDescriptor_za3lpa$(t)},qn.prototype.getElementIndex_61zpoe$=function(t){return this.original_0.getElementIndex_61zpoe$(t)},qn.prototype.getElementName_za3lpa$=function(t){return this.original_0.getElementName_za3lpa$(t)},qn.prototype.isElementOptional_za3lpa$=function(t){return this.original_0.isElementOptional_za3lpa$(t)},qn.$metadata$={kind:a,simpleName:"ContextDescriptor",interfaces:[Bn]},Fn.prototype.iterator=function(){return this.closure$iterator()},Fn.$metadata$={kind:a,interfaces:[tt]},Object.defineProperty(Bn.prototype,"isNullable",{configurable:!0,get:function(){return!1}}),Object.defineProperty(Bn.prototype,"isInline",{configurable:!0,get:function(){return!1}}),Object.defineProperty(Bn.prototype,"annotations",{configurable:!0,get:function(){return h()}}),Bn.$metadata$={kind:d,simpleName:"SerialDescriptor",interfaces:[]},Wn.prototype.hasNext=function(){return this.elementsLeft_0>0},Wn.prototype.next=function(){var t,e,n;return n=this.this$elementDescriptors.elementsCount,t=this.elementsLeft_0,this.elementsLeft_0=t-1|0,e=t,this.this$elementDescriptors.getElementDescriptor_za3lpa$(n-e|0)},Wn.$metadata$={kind:a,interfaces:[Z]},Yn.prototype.element_vxrguq$=function(t,e,n,i){if(void 0===n&&(n=h()),void 0===i&&(i=!1),!this.uniqueNames_0.add_11rb$(t))throw g(("Element with name '"+t+"' is already registered").toString());this.elementNames_8be2vx$.add_11rb$(t),this.elementDescriptors_8be2vx$.add_11rb$(e),this.elementAnnotations_8be2vx$.add_11rb$(n),this.elementOptionality_8be2vx$.add_11rb$(i)},Yn.$metadata$={kind:a,simpleName:"ClassSerialDescriptorBuilder",interfaces:[]},Object.defineProperty(Qn.prototype,"serialName",{get:function(){return this.serialName_btmdyn$_0}}),Object.defineProperty(Qn.prototype,"kind",{get:function(){return this.kind_589tly$_0}}),Object.defineProperty(Qn.prototype,"elementsCount",{get:function(){return this.elementsCount_wewqc2$_0}}),Object.defineProperty(Qn.prototype,"annotations",{configurable:!0,get:function(){return this.annotations_efqcf6$_0}}),Object.defineProperty(Qn.prototype,"serialNames",{configurable:!0,get:function(){return this.serialNames_bcpscy$_0}}),Object.defineProperty(Qn.prototype,"_hashCode_0",{configurable:!0,get:function(){return this._hashCode_6e2cwc$_0.value}}),Qn.prototype.getElementName_za3lpa$=function(t){return ba(this.elementNames_0,t)},Qn.prototype.getElementIndex_61zpoe$=function(t){var e;return null!=(e=this.name2Index_0.get_11rb$(t))?e:-3},Qn.prototype.getElementAnnotations_za3lpa$=function(t){return ba(this.elementAnnotations_0,t)},Qn.prototype.getElementDescriptor_za3lpa$=function(t){return ba(this.elementDescriptors_0,t)},Qn.prototype.isElementOptional_za3lpa$=function(t){return Sa(this.elementOptionality_0,t)},Qn.prototype.equals=function(t){var n;t:do{var i;if(this===t){n=!0;break t}if(!e.isType(t,Qn)){n=!1;break t}if(!O(this.serialName,t.serialName)){n=!1;break t}if(!ot(this.typeParametersDescriptors_0,t.typeParametersDescriptors_0)){n=!1;break t}if(this.elementsCount!==t.elementsCount){n=!1;break t}i=this.elementsCount;for(var o=0;o=0)){var e="Illegal index "+t+", "+this.serialName+" expects only non-negative indices";throw g(e.toString())}return!1},So.prototype.getElementAnnotations_za3lpa$=function(t){if(!(t>=0)){var e="Illegal index "+t+", "+this.serialName+" expects only non-negative indices";throw g(e.toString())}return h()},So.prototype.getElementDescriptor_za3lpa$=function(t){if(!(t>=0)){var e="Illegal index "+t+", "+this.serialName+" expects only non-negative indices";throw g(e.toString())}return this.elementDescriptor},So.prototype.equals=function(t){return this===t||!!e.isType(t,So)&&!(!O(this.elementDescriptor,t.elementDescriptor)||!O(this.serialName,t.serialName))},So.prototype.hashCode=function(){return(31*Q(this.elementDescriptor)|0)+Q(this.serialName)|0},So.prototype.toString=function(){return this.serialName+"("+this.elementDescriptor+")"},So.$metadata$={kind:a,simpleName:"ListLikeDescriptor",interfaces:[Bn]},Object.defineProperty(vo.prototype,"serialName",{get:function(){return this.serialName_ra35nx$_0}}),Object.defineProperty(vo.prototype,"kind",{configurable:!0,get:function(){return qi()}}),Object.defineProperty(vo.prototype,"elementsCount",{configurable:!0,get:function(){return this.elementsCount_qp2ocq$_0}}),vo.prototype.getElementName_za3lpa$=function(t){return t.toString()},vo.prototype.getElementIndex_61zpoe$=function(t){var e;if(null==(e=mt(t)))throw g(t+" is not a valid map index");return e},vo.prototype.isElementOptional_za3lpa$=function(t){if(!(t>=0)){var e="Illegal index "+t+", "+this.serialName+" expects only non-negative indices";throw g(e.toString())}return!1},vo.prototype.getElementAnnotations_za3lpa$=function(t){if(!(t>=0)){var e="Illegal index "+t+", "+this.serialName+" expects only non-negative indices";throw g(e.toString())}return h()},vo.prototype.getElementDescriptor_za3lpa$=function(t){var e;if(!(t>=0)){var n="Illegal index "+t+", "+this.serialName+" expects only non-negative indices";throw g(n.toString())}switch(t%2|0){case 0:e=this.keyDescriptor;break;case 1:e=this.valueDescriptor;break;default:throw S("Unreached".toString())}return e},vo.prototype.equals=function(t){return this===t||!!e.isType(t,vo)&&!!O(this.serialName,t.serialName)&&!!O(this.keyDescriptor,t.keyDescriptor)&&!!O(this.valueDescriptor,t.valueDescriptor)},vo.prototype.hashCode=function(){var t=Q(this.serialName);return t=(31*(t=(31*t|0)+Q(this.keyDescriptor)|0)|0)+Q(this.valueDescriptor)|0},vo.prototype.toString=function(){return this.serialName+"("+this.keyDescriptor+", "+this.valueDescriptor+")"},vo.$metadata$={kind:a,simpleName:"MapLikeDescriptor",interfaces:[Bn]},Object.defineProperty(Co.prototype,"serialName",{configurable:!0,get:function(){return this.serialName_reprdi$_0}}),Co.$metadata$={kind:a,simpleName:"PrimitiveArrayDescriptor",interfaces:[So]},Object.defineProperty(No.prototype,"serialName",{configurable:!0,get:function(){return po}}),No.$metadata$={kind:a,simpleName:"ArrayClassDesc",interfaces:[So]},Object.defineProperty(To.prototype,"serialName",{configurable:!0,get:function(){return _o}}),To.$metadata$={kind:a,simpleName:"ArrayListClassDesc",interfaces:[So]},Object.defineProperty(Lo.prototype,"serialName",{configurable:!0,get:function(){return mo}}),Lo.$metadata$={kind:a,simpleName:"LinkedHashSetClassDesc",interfaces:[So]},Object.defineProperty(zo.prototype,"serialName",{configurable:!0,get:function(){return fo}}),zo.$metadata$={kind:a,simpleName:"HashSetClassDesc",interfaces:[So]},wo.$metadata$={kind:a,simpleName:"LinkedHashMapClassDesc",interfaces:[vo]},Oo.$metadata$={kind:a,simpleName:"HashMapClassDesc",interfaces:[vo]},Ro.prototype.merge_h7kg3q$=function(t,e){var n,i=null!=(n=null!=e?this.toBuilder_wikn$(e):null)?n:this.builder(),o=this.builderSize_wili$(i),r=t.beginStructure_24f42q$(this.descriptor);if(r.decodeSequentially())this.readAll_8oyp34$(r,i,o,this.readSize_bl0yv7$_0(r,i));else for(;;){var s=r.decodeElementIndex_24f42q$(this.descriptor);if(-1===s)break;this.readElement_8pvye7$(r,o+s|0,i)}return r.endStructure_24f42q$(this.descriptor),this.toResult_wili$(i)},Ro.prototype.deserialize_bq71mq$=function(t){return this.merge_h7kg3q$(t,null)},Ro.prototype.readSize_bl0yv7$_0=function(t,e){var n=t.decodeCollectionSize_24f42q$(this.descriptor);return this.checkCapacity_rk7bw8$(e,n),n},Ro.prototype.readElement_8pvye7$=function(t,e,n,i,o){void 0===i&&(i=!0),o?o(t,e,n,i):this.readElement_8pvye7$$default(t,e,n,i)},Ro.$metadata$={kind:a,simpleName:"AbstractCollectionSerializer",interfaces:[De]},Ao.prototype.serialize_55azsf$=function(t,e){var n,i,o,r=this.collectionSize_wikn$(e),s=this.descriptor,a=t.beginCollection_szpzho$(s,r);(n=e,i=this,o=r,function(t){var e,r=i.collectionIterator_wikn$(n);e=o;for(var s=0;s=0))throw g("Size must be known in advance when using READ_ALL".toString());for(var o=0;o=0))throw g("Size must be known in advance when using READ_ALL".toString());o=2*i|0;for(var r=0;r64?this.nextUnmarkedHighIndex_0():-1},Fo.prototype.prepareHighMarksArray_0=function(t){var n=t-1>>>6,i=63&t,o=e.longArray(n);return 0!==i&&(o[Lt(o)]=Nt.shiftLeft(t)),o},Fo.prototype.markHigh_0=function(t){var e=(t>>>6)-1|0,n=63&t;this.highMarksArray_0[e]=this.highMarksArray_0[e].or(Ct.shiftLeft(n))},Fo.prototype.nextUnmarkedHighIndex_0=function(){var t;t=this.highMarksArray_0;for(var e=0;e!==t.length;++e){for(var n=64*(e+1|0)|0,i=this.highMarksArray_0[e];!O(i,Nt);){var o=Tt(i.inv());i=i.or(Ct.shiftLeft(o));var r=n+o|0;if(this.readIfAbsent_0(this.descriptor_0,r))return this.highMarksArray_0[e]=i,r}this.highMarksArray_0[e]=i}return-1},Fo.$metadata$={kind:a,simpleName:"ElementMarker",interfaces:[]},Object.defineProperty(Vo.prototype,"isInline",{configurable:!0,get:function(){return this.isInline_4xqniz$_0}}),Vo.prototype.hashCode=function(){return 31*ur.prototype.hashCode.call(this)|0},Vo.prototype.equals=function(t){var n;t:do{var i;if(this===t){n=!0;break t}if(!e.isType(t,Vo)){n=!1;break t}if(!O(this.serialName,t.serialName)){n=!1;break t}if(!t.isInline||!ot(this.typeParameterDescriptors_8be2vx$,t.typeParameterDescriptors_8be2vx$)){n=!1;break t}if(this.elementsCount!==t.elementsCount){n=!1;break t}i=this.elementsCount;for(var o=0;o0){var n=pt(t.charCodeAt(0));e=(Ce(qt(n))?Ne(qt(n)):String.fromCharCode(qt(n))).toString()+t.substring(1)}else e=t;return e}function ds(t){var n;return null==(n=rs.get_11rb$(t))||e.isType(n,De)?n:T()}function ps(){_s=this,this.$delegate_t0wm8i$_0=new ir("kotlin.Unit",u)}Object.defineProperty(cs.prototype,"position",{configurable:!0,get:function(){return this.position_rkqpui$_0},set:function(t){this.position_rkqpui$_0=t}}),cs.prototype.ensureCapacity_za3lpa$$default=function(t){if(this.buffer_0.size>4),p[(a=_,_=a+1|0,a)]=Qe(15&g)}}return D(p)}function Be(t){return qe(t,!0)}function We(t,e,n,i,o){return void 0===e&&(e=0),void 0===n&&(n=t.length),void 0===i&&(i=!1),void 0===o&&(o=R.Charsets.UTF_8),Ve(t,e,n,i,o)}function He(t,e,n,i){return void 0===e&&(e=0),void 0===n&&(n=t.length),void 0===i&&(i=R.Charsets.UTF_8),Ve(t,e,n,!1,i)}function Ve(t,e,n,i,o){for(var r=e;r255?c/3|0:c);o>n&&l.append_ezbsdh$(t,n,o);for(var u=o,h=null;u=i){var _,m=u;throw _=t.length,new Xe("Incomplete trailing HEX escape: "+e.subSequence(t,m,_).toString()+", in "+t+" at "+u)}var f=Ye(t.charCodeAt(u+1|0)),g=Ye(t.charCodeAt(u+2|0));if(-1===f||-1===g)throw new Xe("Wrong HEX escape: %"+String.fromCharCode(t.charCodeAt(u+1|0))+String.fromCharCode(t.charCodeAt(u+2|0))+", in "+t+", at "+u);h[(a=p,p=a+1|0,a)]=N((16*f|0)+g|0),u=u+3|0}l.append_pdl1vj$(M(h,0,p,s))}else l.append_s8itvh$(d),u=u+1|0}return l.toString()}function Xe(t){k(t,this),this.name="URLDecodeException"}function Je(t){var n=255&t,i=e.charArray(3);return i[0]=37,i[1]=Qe(n>>4),i[2]=Qe(15&n),D(i)}function Ye(t){return new b(48,57).contains_mef7kx$(t)?t-48:new b(65,70).contains_mef7kx$(t)?t-65+10|0:new b(97,102).contains_mef7kx$(t)?t-97+10|0:-1}function Qe(t){return x(t>=0&&t<=9?48+t:x(65+t)-10)}function Ze(t,e){t:do{var n,i,o=!0;if(null==(n=F(t,1)))break t;var r=n;try{for(;;){for(var s=r;s.writePosition>s.readPosition;)e(s.readByte());if(o=!1,null==(i=B(t,r)))break;r=i,o=!0}}finally{o&&W(t,r)}}while(0)}function tn(t,e){on(),void 0===e&&(e=X()),Mn.call(this,t,e)}function en(){nn=this,this.File=new tn("file"),this.Mixed=new tn("mixed"),this.Attachment=new tn("attachment"),this.Inline=new tn("inline")}Xe.prototype=Object.create(j.prototype),Xe.prototype.constructor=Xe,tn.prototype=Object.create(Mn.prototype),tn.prototype.constructor=tn,ln.prototype=Object.create(Mn.prototype),ln.prototype.constructor=ln,On.prototype=Object.create(j.prototype),On.prototype.constructor=On,Kn.prototype=Object.create(Ft.prototype),Kn.prototype.constructor=Kn,Qn.prototype=Object.create(Vt.prototype),Qn.prototype.constructor=Qn,gi.prototype=Object.create(rt.prototype),gi.prototype.constructor=gi,$i.prototype=Object.create(rt.prototype),$i.prototype.constructor=$i,Ei.prototype=Object.create(rt.prototype),Ei.prototype.constructor=Ei,Qi.prototype=Object.create(Ft.prototype),Qi.prototype.constructor=Qi,Zi.prototype=Object.create(Vt.prototype),Zi.prototype.constructor=Zi,$o.prototype=Object.create(Lt.prototype),$o.prototype.constructor=$o,_r.prototype=Object.create(lr.prototype),_r.prototype.constructor=_r,qo.prototype=Object.create(_r.prototype),qo.prototype.constructor=qo,pr.prototype=Object.create(lr.prototype),pr.prototype.constructor=pr,Bo.prototype=Object.create(pr.prototype),Bo.prototype.constructor=Bo,Vo.prototype=Object.create(Ho.prototype),Vo.prototype.constructor=Vo,Ko.prototype=Object.create(Ho.prototype),Ko.prototype.constructor=Ko,Xo.prototype=Object.create(Ho.prototype),Xo.prototype.constructor=Xo,Jo.prototype=Object.create(Ho.prototype),Jo.prototype.constructor=Jo,ur.prototype=Object.create(lr.prototype),ur.prototype.constructor=ur,hr.prototype=Object.create(lr.prototype),hr.prototype.constructor=hr,mr.prototype=Object.create(lr.prototype),mr.prototype.constructor=mr,fr.prototype=Object.create(_r.prototype),fr.prototype.constructor=fr,$r.prototype=Object.create(p.prototype),$r.prototype.constructor=$r,Ir.prototype=Object.create(Rr.prototype),Ir.prototype.constructor=Ir,Ur.prototype=Object.create(Rr.prototype),Ur.prototype.constructor=Ur,Dr.prototype=Object.create(Rr.prototype),Dr.prototype.constructor=Dr,Pr.prototype=Object.create(Rr.prototype),Pr.prototype.constructor=Pr,Mr.prototype=Object.create(Rr.prototype),Mr.prototype.constructor=Mr,kr.prototype=Object.create(Rr.prototype),kr.prototype.constructor=kr,jr.prototype=Object.create(Rr.prototype),jr.prototype.constructor=jr,Gr.prototype=Object.create(Rr.prototype),Gr.prototype.constructor=Gr,qr.prototype=Object.create(Rr.prototype),qr.prototype.constructor=qr,Fr.prototype=Object.create(Rr.prototype),Fr.prototype.constructor=Fr,Xe.$metadata$={kind:_,simpleName:"URLDecodeException",interfaces:[j]},Object.defineProperty(tn.prototype,"disposition",{configurable:!0,get:function(){return this.content}}),Object.defineProperty(tn.prototype,"name",{configurable:!0,get:function(){return this.parameter_61zpoe$(an().Name)}}),tn.prototype.withParameter_qz9155$=function(t,e,n){void 0===n&&(n=!0);var i=n?function(t,e){if(!f(t,an().FileNameAsterisk))return e;if(J(e,"utf-8''",!0))return e;var n;t:do{var i;for(i=q(e);i.hasNext();){var o=C(i.next());if(!u.contains_11rb$(L(o))){n=!1;break t}}n=!0}while(0);return n?e:"utf-8''"+Fe(e,u)}(t,e):e;return new tn(this.disposition,V(this.parameters,ei(t,i)))},tn.prototype.withParameters_1wyvw$=function(t){return new tn(this.disposition,v(this.parameters,t))},tn.prototype.equals=function(t){return e.isType(t,tn)&&f(this.disposition,t.disposition)&&f(this.parameters,t.parameters)},tn.prototype.hashCode=function(){return(31*y(this.disposition)|0)+y(this.parameters)|0},en.prototype.parse_61zpoe$=function(t){var e=Y(oi(t));return new tn(e.value,e.params)},en.$metadata$={kind:K,simpleName:"Companion",interfaces:[]};var nn=null;function on(){return null===nn&&new en,nn}function rn(){sn=this,this.FileName="filename",this.FileNameAsterisk="filename*",this.Name="name",this.CreationDate="creation-date",this.ModificationDate="modification-date",this.ReadDate="read-date",this.Size="size",this.Handling="handling"}rn.$metadata$={kind:K,simpleName:"Parameters",interfaces:[]};var sn=null;function an(){return null===sn&&new rn,sn}function cn(){}function ln(t,e,n,i){dn(),void 0===i&&(i=X()),Mn.call(this,n,i),this.contentType=t,this.contentSubtype=e}function un(){hn=this,this.Any=wn("*","*")}tn.$metadata$={kind:_,simpleName:"ContentDisposition",interfaces:[Mn]},cn.$metadata$={kind:Q,simpleName:"ContentTypeMatcher",interfaces:[]},ln.prototype.withParameter_puj7f4$=function(t,e){return this.hasParameter_0(t,e)?this:new ln(this.contentType,this.contentSubtype,this.content,V(this.parameters,ei(t,e)))},ln.prototype.hasParameter_0=function(t,n){switch(this.parameters.size){case 0:return!1;case 1:var i=this.parameters.get_za3lpa$(0);return Z(i.name,t,!0)&&Z(i.value,n,!0);default:var o,r=this.parameters;t:do{var s;if(e.isType(r,st)&&r.isEmpty()){o=!1;break t}for(s=r.iterator();s.hasNext();){var a=s.next();if(Z(a.name,t,!0)&&Z(a.value,n,!0)){o=!0;break t}}o=!1}while(0);return o}},ln.prototype.withoutParameters=function(){return this.parameters.isEmpty()?this:wn(this.contentType,this.contentSubtype)},ln.prototype.match_9v5yzd$=function(t){var n,i;if(!f(t.contentType,"*")&&!Z(t.contentType,this.contentType,!0))return!1;if(!f(t.contentSubtype,"*")&&!Z(t.contentSubtype,this.contentSubtype,!0))return!1;for(n=t.parameters.iterator();n.hasNext();){var o=n.next(),r=o.component1(),s=o.component2();if(f(r,"*"))if(f(s,"*"))i=!0;else{var a,c=this.parameters;t:do{var l;if(e.isType(c,st)&&c.isEmpty()){a=!1;break t}for(l=c.iterator();l.hasNext();){var u=l.next();if(Z(u.value,s,!0)){a=!0;break t}}a=!1}while(0);i=a}else{var h=this.parameter_61zpoe$(r);i=f(s,"*")?null!=h:Z(h,s,!0)}if(!i)return!1}return!0},ln.prototype.match_61zpoe$=function(t){return this.match_9v5yzd$(dn().parse_61zpoe$(t))},ln.prototype.equals=function(t){return e.isType(t,ln)&&Z(this.contentType,t.contentType,!0)&&Z(this.contentSubtype,t.contentSubtype,!0)&&f(this.parameters,t.parameters)},ln.prototype.hashCode=function(){var t=y(this.contentType.toLowerCase());return t=(t=t+((31*t|0)+y(this.contentSubtype.toLowerCase()))|0)+(31*y(this.parameters)|0)|0},un.prototype.parse_61zpoe$=function(t){if(tt(t))return this.Any;var n=Y(oi(t)),i=n.value,o=n.params,r=et(i,47);if(-1===r){var s;if(f(ct(e.isCharSequence(s=i)?s:at()).toString(),"*"))return this.Any;throw new On(t)}var a,c=i.substring(0,r),l=ct(e.isCharSequence(a=c)?a:at()).toString();if(0===l.length)throw new On(t);var u,h=r+1|0,d=i.substring(h),p=ct(e.isCharSequence(u=d)?u:at()).toString();if(nt(l,32)||nt(p,32))throw new On(t);if(0===p.length||nt(p,47))throw new On(t);return wn(l,p,o)},un.$metadata$={kind:K,simpleName:"Companion",interfaces:[]};var hn=null;function dn(){return null===hn&&new un,hn}function pn(){_n=this,this.Any=wn("application","*"),this.Atom=wn("application","atom+xml"),this.Cbor=wn("application","cbor"),this.Json=wn("application","json"),this.HalJson=wn("application","hal+json"),this.JavaScript=wn("application","javascript"),this.OctetStream=wn("application","octet-stream"),this.FontWoff=wn("application","font-woff"),this.Rss=wn("application","rss+xml"),this.Xml=wn("application","xml"),this.Xml_Dtd=wn("application","xml-dtd"),this.Zip=wn("application","zip"),this.GZip=wn("application","gzip"),this.FormUrlEncoded=wn("application","x-www-form-urlencoded"),this.Pdf=wn("application","pdf"),this.Xlsx=wn("application","vnd.openxmlformats-officedocument.spreadsheetml.sheet"),this.Docx=wn("application","vnd.openxmlformats-officedocument.wordprocessingml.document"),this.Pptx=wn("application","vnd.openxmlformats-officedocument.presentationml.presentation"),this.ProtoBuf=wn("application","protobuf"),this.Wasm=wn("application","wasm"),this.ProblemJson=wn("application","problem+json"),this.ProblemXml=wn("application","problem+xml")}pn.$metadata$={kind:K,simpleName:"Application",interfaces:[]};var _n=null;function mn(){fn=this,this.Any=wn("audio","*"),this.MP4=wn("audio","mp4"),this.MPEG=wn("audio","mpeg"),this.OGG=wn("audio","ogg")}mn.$metadata$={kind:K,simpleName:"Audio",interfaces:[]};var fn=null;function gn(){$n=this,this.Any=wn("image","*"),this.GIF=wn("image","gif"),this.JPEG=wn("image","jpeg"),this.PNG=wn("image","png"),this.SVG=wn("image","svg+xml"),this.XIcon=wn("image","x-icon")}gn.$metadata$={kind:K,simpleName:"Image",interfaces:[]};var $n=null;function En(){yn=this,this.Any=wn("message","*"),this.Http=wn("message","http")}En.$metadata$={kind:K,simpleName:"Message",interfaces:[]};var yn=null;function bn(){Sn=this,this.Any=wn("multipart","*"),this.Mixed=wn("multipart","mixed"),this.Alternative=wn("multipart","alternative"),this.Related=wn("multipart","related"),this.FormData=wn("multipart","form-data"),this.Signed=wn("multipart","signed"),this.Encrypted=wn("multipart","encrypted"),this.ByteRanges=wn("multipart","byteranges")}bn.$metadata$={kind:K,simpleName:"MultiPart",interfaces:[]};var Sn=null;function vn(){Cn=this,this.Any=wn("text","*"),this.Plain=wn("text","plain"),this.CSS=wn("text","css"),this.CSV=wn("text","csv"),this.Html=wn("text","html"),this.JavaScript=wn("text","javascript"),this.VCard=wn("text","vcard"),this.Xml=wn("text","xml"),this.EventStream=wn("text","event-stream")}vn.$metadata$={kind:K,simpleName:"Text",interfaces:[]};var Cn=null;function Nn(){zn=this,this.Any=wn("video","*"),this.MPEG=wn("video","mpeg"),this.MP4=wn("video","mp4"),this.OGG=wn("video","ogg"),this.QuickTime=wn("video","quicktime")}Nn.$metadata$={kind:K,simpleName:"Video",interfaces:[]};var Tn,Ln,zn=null;function wn(t,e,n,i){return void 0===n&&(n=X()),i=i||Object.create(ln.prototype),ln.call(i,t,e,t+"/"+e,n),i}function On(t){k("Bad Content-Type format: "+t,this),this.name="BadContentTypeFormatException"}function Rn(t){var n,i;if(null!=(n=t.parameter_61zpoe$("charset"))){var o;t:do{try{o=ot.Companion.forName_61zpoe$(n)}catch(t){if(e.isType(t,rt)){o=null;break t}throw t}}while(0);i=o}else i=null;return i}function An(t){var n,i,o=ct(e.isCharSequence(n=t)?n:at()).toString();for(i=Tn.iterator();i.hasNext();){var r=i.next();try{return new zt(r).parse_61zpoe$(t)}catch(t){if(!e.isType(t,wt))throw t}}throw Tt(("Failed to parse date: "+o).toString())}function xn(t){var e=G();return e.append_pdl1vj$(t.dayOfWeek.value+", "),e.append_pdl1vj$(In(t.dayOfMonth,2)+" "),e.append_pdl1vj$(t.month.value+" "),e.append_pdl1vj$(In(t.year,4)),e.append_pdl1vj$(" "+In(t.hours,2)+":"+In(t.minutes,2)+":"+In(t.seconds,2)+" "),e.append_pdl1vj$("GMT"),e.toString()}function In(t,e){return Ot(t.toString(),e,48)}function Un(t){var e=t.component1(),n=t.component2();return ht(n,e)}function Dn(t){var e,n=Et();for(e=t.iterator();e.hasNext();){var i,o=e.next(),r=o.first,s=n.get_11rb$(r);if(null==s){var a=yt();n.put_xwzc9p$(r,a),i=a}else i=s;i.add_11rb$(o)}var c,l=gt(ft(n.size));for(c=n.entries.iterator();c.hasNext();){var u,h=c.next(),d=l.put_xwzc9p$,p=h.key,_=h.value,m=g(H(_,10));for(u=_.iterator();u.hasNext();){var f=u.next();m.add_11rb$(f.second)}d.call(l,p,m)}return l}function Pn(t){try{return dn().parse_61zpoe$(t)}catch(n){throw e.isType(n,Pt)?new rt("Failed to parse "+t,n):n}}function Mn(t,e){Gn(),void 0===e&&(e=X()),this.content=t,this.parameters=e}function kn(){jn=this}ln.$metadata$={kind:_,simpleName:"ContentType",interfaces:[Mn]},On.$metadata$={kind:_,simpleName:"BadContentTypeFormatException",interfaces:[j]},Mn.prototype.parameter_61zpoe$=function(t){var e;e=Mt(this.parameters);for(var n=0;n<=e;n++){var i=this.parameters.get_za3lpa$(n);if(Z(i.name,t,!0))return i.value}return null},Mn.prototype.toString=function(){if(this.parameters.isEmpty())return this.content;var t,e=this.content.length,n=0;for(t=this.parameters.iterator();t.hasNext();){var i=t.next();n=n+(i.name.length+i.value.length+3|0)|0}var o,r=P(e+n|0);r.append_pdl1vj$(this.content),o=Mt(this.parameters);for(var s=0;s<=o;s++){var a=this.parameters.get_za3lpa$(s);r.append_pdl1vj$("; "),r.append_pdl1vj$(a.name),r.append_pdl1vj$("=");var c=a.value;qn(c)?r.append_pdl1vj$(Fn(c)):r.append_pdl1vj$(c)}return r.toString()},kn.prototype.parse_g5gu5m$=St("ktor-ktor-http-js-legacy.io.ktor.http.HeaderValueWithParameters.Companion.parse_g5gu5m$",vt((function(){var n=t.io.ktor.http.parseHeaderValue_pdl1vj$,i=e.kotlin.collections.last_2p1efm$;return function(t,e){var o=i(n(t));return e(o.value,o.params)}}))),kn.$metadata$={kind:K,simpleName:"Companion",interfaces:[]};var jn=null;function Gn(){return null===jn&&new kn,jn}function qn(t){var e;if(0===t.length)return!0;if(function(t){if(t.length<2)return!1;if(34!==kt(t)||34!==jt(t))return!1;var e=1;do{var n=et(t,34,e);if(n===Gt(t))break;for(var i=0,o=n-1|0;92===t.charCodeAt(o);)i=i+1|0,o=o-1|0;if(i%2==0)return!1;e=n+1|0}while(e?@[\\]{}',t)}function bi(){}function Si(){}function vi(t){var e;return null!=(e=t.headers.get_61zpoe$(fi().ContentType))?dn().parse_61zpoe$(e):null}function Ci(t){Li(),this.value=t}function Ni(){Ti=this,this.Get=new Ci("GET"),this.Post=new Ci("POST"),this.Put=new Ci("PUT"),this.Patch=new Ci("PATCH"),this.Delete=new Ci("DELETE"),this.Head=new Ci("HEAD"),this.Options=new Ci("OPTIONS"),this.DefaultMethods=O([this.Get,this.Post,this.Put,this.Patch,this.Delete,this.Head,this.Options])}gi.$metadata$={kind:_,simpleName:"UnsafeHeaderException",interfaces:[rt]},$i.$metadata$={kind:_,simpleName:"IllegalHeaderNameException",interfaces:[rt]},Ei.$metadata$={kind:_,simpleName:"IllegalHeaderValueException",interfaces:[rt]},bi.$metadata$={kind:Q,simpleName:"HttpMessage",interfaces:[]},Si.$metadata$={kind:Q,simpleName:"HttpMessageBuilder",interfaces:[]},Ni.prototype.parse_61zpoe$=function(t){return f(t,this.Get.value)?this.Get:f(t,this.Post.value)?this.Post:f(t,this.Put.value)?this.Put:f(t,this.Patch.value)?this.Patch:f(t,this.Delete.value)?this.Delete:f(t,this.Head.value)?this.Head:f(t,this.Options.value)?this.Options:new Ci(t)},Ni.$metadata$={kind:K,simpleName:"Companion",interfaces:[]};var Ti=null;function Li(){return null===Ti&&new Ni,Ti}function zi(t,e,n){Ri(),this.name=t,this.major=e,this.minor=n}function wi(){Oi=this,this.HTTP_2_0=new zi("HTTP",2,0),this.HTTP_1_1=new zi("HTTP",1,1),this.HTTP_1_0=new zi("HTTP",1,0),this.SPDY_3=new zi("SPDY",3,0),this.QUIC=new zi("QUIC",1,0)}Ci.$metadata$={kind:_,simpleName:"HttpMethod",interfaces:[]},Ci.prototype.component1=function(){return this.value},Ci.prototype.copy_61zpoe$=function(t){return new Ci(void 0===t?this.value:t)},Ci.prototype.toString=function(){return"HttpMethod(value="+e.toString(this.value)+")"},Ci.prototype.hashCode=function(){var t=0;return t=31*t+e.hashCode(this.value)|0},Ci.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.value,t.value)},wi.prototype.fromValue_3m52m6$=function(t,e,n){return f(t,"HTTP")&&1===e&&1===n?this.HTTP_1_1:f(t,"HTTP")&&2===e&&0===n?this.HTTP_2_0:new zi(t,e,n)},wi.prototype.parse_6bul2c$=function(t){var e=te(t,["/","."]);if(3!==e.size)throw Tt(("Failed to parse HttpProtocolVersion. Expected format: protocol/major.minor, but actual: "+t).toString());var n=e.get_za3lpa$(0),i=e.get_za3lpa$(1),o=e.get_za3lpa$(2);return this.fromValue_3m52m6$(n,Ct(i),Ct(o))},wi.$metadata$={kind:K,simpleName:"Companion",interfaces:[]};var Oi=null;function Ri(){return null===Oi&&new wi,Oi}function Ai(t,e){Mi(),this.value=t,this.description=e}function xi(){Pi=this,this.Continue=new Ai(100,"Continue"),this.SwitchingProtocols=new Ai(101,"Switching Protocols"),this.Processing=new Ai(102,"Processing"),this.OK=new Ai(200,"OK"),this.Created=new Ai(201,"Created"),this.Accepted=new Ai(202,"Accepted"),this.NonAuthoritativeInformation=new Ai(203,"Non-Authoritative Information"),this.NoContent=new Ai(204,"No Content"),this.ResetContent=new Ai(205,"Reset Content"),this.PartialContent=new Ai(206,"Partial Content"),this.MultiStatus=new Ai(207,"Multi-Status"),this.MultipleChoices=new Ai(300,"Multiple Choices"),this.MovedPermanently=new Ai(301,"Moved Permanently"),this.Found=new Ai(302,"Found"),this.SeeOther=new Ai(303,"See Other"),this.NotModified=new Ai(304,"Not Modified"),this.UseProxy=new Ai(305,"Use Proxy"),this.SwitchProxy=new Ai(306,"Switch Proxy"),this.TemporaryRedirect=new Ai(307,"Temporary Redirect"),this.PermanentRedirect=new Ai(308,"Permanent Redirect"),this.BadRequest=new Ai(400,"Bad Request"),this.Unauthorized=new Ai(401,"Unauthorized"),this.PaymentRequired=new Ai(402,"Payment Required"),this.Forbidden=new Ai(403,"Forbidden"),this.NotFound=new Ai(404,"Not Found"),this.MethodNotAllowed=new Ai(405,"Method Not Allowed"),this.NotAcceptable=new Ai(406,"Not Acceptable"),this.ProxyAuthenticationRequired=new Ai(407,"Proxy Authentication Required"),this.RequestTimeout=new Ai(408,"Request Timeout"),this.Conflict=new Ai(409,"Conflict"),this.Gone=new Ai(410,"Gone"),this.LengthRequired=new Ai(411,"Length Required"),this.PreconditionFailed=new Ai(412,"Precondition Failed"),this.PayloadTooLarge=new Ai(413,"Payload Too Large"),this.RequestURITooLong=new Ai(414,"Request-URI Too Long"),this.UnsupportedMediaType=new Ai(415,"Unsupported Media Type"),this.RequestedRangeNotSatisfiable=new Ai(416,"Requested Range Not Satisfiable"),this.ExpectationFailed=new Ai(417,"Expectation Failed"),this.UnprocessableEntity=new Ai(422,"Unprocessable Entity"),this.Locked=new Ai(423,"Locked"),this.FailedDependency=new Ai(424,"Failed Dependency"),this.UpgradeRequired=new Ai(426,"Upgrade Required"),this.TooManyRequests=new Ai(429,"Too Many Requests"),this.RequestHeaderFieldTooLarge=new Ai(431,"Request Header Fields Too Large"),this.InternalServerError=new Ai(500,"Internal Server Error"),this.NotImplemented=new Ai(501,"Not Implemented"),this.BadGateway=new Ai(502,"Bad Gateway"),this.ServiceUnavailable=new Ai(503,"Service Unavailable"),this.GatewayTimeout=new Ai(504,"Gateway Timeout"),this.VersionNotSupported=new Ai(505,"HTTP Version Not Supported"),this.VariantAlsoNegotiates=new Ai(506,"Variant Also Negotiates"),this.InsufficientStorage=new Ai(507,"Insufficient Storage"),this.allStatusCodes=ki();var t,e=this.allStatusCodes,n=ne(ft(H(e,10)),16),i=gt(n);for(t=e.iterator();t.hasNext();){var o=t.next();i.put_xwzc9p$(o.value,o)}this.statusCodesMap_0=i}zi.prototype.toString=function(){return this.name+"/"+this.major+"."+this.minor},zi.$metadata$={kind:_,simpleName:"HttpProtocolVersion",interfaces:[]},zi.prototype.component1=function(){return this.name},zi.prototype.component2=function(){return this.major},zi.prototype.component3=function(){return this.minor},zi.prototype.copy_3m52m6$=function(t,e,n){return new zi(void 0===t?this.name:t,void 0===e?this.major:e,void 0===n?this.minor:n)},zi.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*t+e.hashCode(this.name)|0)+e.hashCode(this.major)|0)+e.hashCode(this.minor)|0},zi.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.name,t.name)&&e.equals(this.major,t.major)&&e.equals(this.minor,t.minor)},Ai.prototype.toString=function(){return this.value.toString()+" "+this.description},Ai.prototype.equals=function(t){return e.isType(t,Ai)&&t.value===this.value},Ai.prototype.hashCode=function(){return y(this.value)},Ai.prototype.description_61zpoe$=function(t){return this.copy_19mbxw$(void 0,t)},xi.prototype.fromValue_za3lpa$=function(t){var e;return null!=(e=this.statusCodesMap_0.get_11rb$(t))?e:new Ai(t,"Unknown Status Code")},xi.$metadata$={kind:K,simpleName:"Companion",interfaces:[]};var Ii,Ui,Di,Pi=null;function Mi(){return null===Pi&&new xi,Pi}function ki(){return O([Mi().Continue,Mi().SwitchingProtocols,Mi().Processing,Mi().OK,Mi().Created,Mi().Accepted,Mi().NonAuthoritativeInformation,Mi().NoContent,Mi().ResetContent,Mi().PartialContent,Mi().MultiStatus,Mi().MultipleChoices,Mi().MovedPermanently,Mi().Found,Mi().SeeOther,Mi().NotModified,Mi().UseProxy,Mi().SwitchProxy,Mi().TemporaryRedirect,Mi().PermanentRedirect,Mi().BadRequest,Mi().Unauthorized,Mi().PaymentRequired,Mi().Forbidden,Mi().NotFound,Mi().MethodNotAllowed,Mi().NotAcceptable,Mi().ProxyAuthenticationRequired,Mi().RequestTimeout,Mi().Conflict,Mi().Gone,Mi().LengthRequired,Mi().PreconditionFailed,Mi().PayloadTooLarge,Mi().RequestURITooLong,Mi().UnsupportedMediaType,Mi().RequestedRangeNotSatisfiable,Mi().ExpectationFailed,Mi().UnprocessableEntity,Mi().Locked,Mi().FailedDependency,Mi().UpgradeRequired,Mi().TooManyRequests,Mi().RequestHeaderFieldTooLarge,Mi().InternalServerError,Mi().NotImplemented,Mi().BadGateway,Mi().ServiceUnavailable,Mi().GatewayTimeout,Mi().VersionNotSupported,Mi().VariantAlsoNegotiates,Mi().InsufficientStorage])}function ji(t){var e=G();return qi(t,e),e.toString()}function Gi(t){var e=qe(t.first,!0);return null==t.second?e:e+"="+Be($(t.second))}function qi(t,e){ie(t,e,"&",void 0,void 0,void 0,void 0,Gi)}function Fi(t){var n,i=ct(e.isCharSequence(n=t)?n:at()).toString();if(0===i.length)return null;var o=et(i,44),r=i.substring(0,o),s=o+1|0,a=i.substring(s);return ht(ut(At(r,".")),Pn(a))}function Bi(){return se(re(oe("\n.123,application/vnd.lotus-1-2-3\n.3dmf,x-world/x-3dmf\n.3dml,text/vnd.in3d.3dml\n.3dm,x-world/x-3dmf\n.3g2,video/3gpp2\n.3gp,video/3gpp\n.7z,application/x-7z-compressed\n.aab,application/x-authorware-bin\n.aac,audio/aac\n.aam,application/x-authorware-map\n.a,application/octet-stream\n.aas,application/x-authorware-seg\n.abc,text/vnd.abc\n.abw,application/x-abiword\n.ac,application/pkix-attr-cert\n.acc,application/vnd.americandynamics.acc\n.ace,application/x-ace-compressed\n.acgi,text/html\n.acu,application/vnd.acucobol\n.adp,audio/adpcm\n.aep,application/vnd.audiograph\n.afl,video/animaflex\n.afp,application/vnd.ibm.modcap\n.ahead,application/vnd.ahead.space\n.ai,application/postscript\n.aif,audio/aiff\n.aifc,audio/aiff\n.aiff,audio/aiff\n.aim,application/x-aim\n.aip,text/x-audiosoft-intra\n.air,application/vnd.adobe.air-application-installer-package+zip\n.ait,application/vnd.dvb.ait\n.ami,application/vnd.amiga.ami\n.ani,application/x-navi-animation\n.aos,application/x-nokia-9000-communicator-add-on-software\n.apk,application/vnd.android.package-archive\n.application,application/x-ms-application\n,application/pgp-encrypted\n.apr,application/vnd.lotus-approach\n.aps,application/mime\n.arc,application/octet-stream\n.arj,application/arj\n.arj,application/octet-stream\n.art,image/x-jg\n.asf,video/x-ms-asf\n.asm,text/x-asm\n.aso,application/vnd.accpac.simply.aso\n.asp,text/asp\n.asx,application/x-mplayer2\n.asx,video/x-ms-asf\n.asx,video/x-ms-asf-plugin\n.atc,application/vnd.acucorp\n.atomcat,application/atomcat+xml\n.atomsvc,application/atomsvc+xml\n.atom,application/atom+xml\n.atx,application/vnd.antix.game-component\n.au,audio/basic\n.au,audio/x-au\n.avi,video/avi\n.avi,video/msvideo\n.avi,video/x-msvideo\n.avs,video/avs-video\n.aw,application/applixware\n.azf,application/vnd.airzip.filesecure.azf\n.azs,application/vnd.airzip.filesecure.azs\n.azw,application/vnd.amazon.ebook\n.bcpio,application/x-bcpio\n.bdf,application/x-font-bdf\n.bdm,application/vnd.syncml.dm+wbxml\n.bed,application/vnd.realvnc.bed\n.bh2,application/vnd.fujitsu.oasysprs\n.bin,application/macbinary\n.bin,application/mac-binary\n.bin,application/octet-stream\n.bin,application/x-binary\n.bin,application/x-macbinary\n.bmi,application/vnd.bmi\n.bm,image/bmp\n.bmp,image/bmp\n.bmp,image/x-windows-bmp\n.boo,application/book\n.book,application/book\n.box,application/vnd.previewsystems.box\n.boz,application/x-bzip2\n.bsh,application/x-bsh\n.btif,image/prs.btif\n.bz2,application/x-bzip2\n.bz,application/x-bzip\n.c11amc,application/vnd.cluetrust.cartomobile-config\n.c11amz,application/vnd.cluetrust.cartomobile-config-pkg\n.c4g,application/vnd.clonk.c4group\n.cab,application/vnd.ms-cab-compressed\n.car,application/vnd.curl.car\n.cat,application/vnd.ms-pki.seccat\n.ccad,application/clariscad\n.cco,application/x-cocoa\n.cc,text/plain\n.cc,text/x-c\n.ccxml,application/ccxml+xml,\n.cdbcmsg,application/vnd.contact.cmsg\n.cdf,application/cdf\n.cdf,application/x-cdf\n.cdf,application/x-netcdf\n.cdkey,application/vnd.mediastation.cdkey\n.cdmia,application/cdmi-capability\n.cdmic,application/cdmi-container\n.cdmid,application/cdmi-domain\n.cdmio,application/cdmi-object\n.cdmiq,application/cdmi-queue\n.cdx,chemical/x-cdx\n.cdxml,application/vnd.chemdraw+xml\n.cdy,application/vnd.cinderella\n.cer,application/pkix-cert\n.cgm,image/cgm\n.cha,application/x-chat\n.chat,application/x-chat\n.chm,application/vnd.ms-htmlhelp\n.chrt,application/vnd.kde.kchart\n.cif,chemical/x-cif\n.cii,application/vnd.anser-web-certificate-issue-initiation\n.cil,application/vnd.ms-artgalry\n.cla,application/vnd.claymore\n.class,application/java\n.class,application/java-byte-code\n.class,application/java-vm\n.class,application/x-java-class\n.clkk,application/vnd.crick.clicker.keyboard\n.clkp,application/vnd.crick.clicker.palette\n.clkt,application/vnd.crick.clicker.template\n.clkw,application/vnd.crick.clicker.wordbank\n.clkx,application/vnd.crick.clicker\n.clp,application/x-msclip\n.cmc,application/vnd.cosmocaller\n.cmdf,chemical/x-cmdf\n.cml,chemical/x-cml\n.cmp,application/vnd.yellowriver-custom-menu\n.cmx,image/x-cmx\n.cod,application/vnd.rim.cod\n.com,application/octet-stream\n.com,text/plain\n.conf,text/plain\n.cpio,application/x-cpio\n.cpp,text/x-c\n.cpt,application/mac-compactpro\n.cpt,application/x-compactpro\n.cpt,application/x-cpt\n.crd,application/x-mscardfile\n.crl,application/pkcs-crl\n.crl,application/pkix-crl\n.crt,application/pkix-cert\n.crt,application/x-x509-ca-cert\n.crt,application/x-x509-user-cert\n.cryptonote,application/vnd.rig.cryptonote\n.csh,application/x-csh\n.csh,text/x-script.csh\n.csml,chemical/x-csml\n.csp,application/vnd.commonspace\n.css,text/css\n.csv,text/csv\n.c,text/plain\n.c++,text/plain\n.c,text/x-c\n.cu,application/cu-seeme\n.curl,text/vnd.curl\n.cww,application/prs.cww\n.cxx,text/plain\n.dat,binary/octet-stream\n.dae,model/vnd.collada+xml\n.daf,application/vnd.mobius.daf\n.davmount,application/davmount+xml\n.dcr,application/x-director\n.dcurl,text/vnd.curl.dcurl\n.dd2,application/vnd.oma.dd2+xml\n.ddd,application/vnd.fujixerox.ddd\n.deb,application/x-debian-package\n.deepv,application/x-deepv\n.def,text/plain\n.der,application/x-x509-ca-cert\n.dfac,application/vnd.dreamfactory\n.dif,video/x-dv\n.dir,application/x-director\n.dis,application/vnd.mobius.dis\n.djvu,image/vnd.djvu\n.dl,video/dl\n.dl,video/x-dl\n.dna,application/vnd.dna\n.doc,application/msword\n.docm,application/vnd.ms-word.document.macroenabled.12\n.docx,application/vnd.openxmlformats-officedocument.wordprocessingml.document\n.dot,application/msword\n.dotm,application/vnd.ms-word.template.macroenabled.12\n.dotx,application/vnd.openxmlformats-officedocument.wordprocessingml.template\n.dp,application/commonground\n.dp,application/vnd.osgi.dp\n.dpg,application/vnd.dpgraph\n.dra,audio/vnd.dra\n.drw,application/drafting\n.dsc,text/prs.lines.tag\n.dssc,application/dssc+der\n.dtb,application/x-dtbook+xml\n.dtd,application/xml-dtd\n.dts,audio/vnd.dts\n.dtshd,audio/vnd.dts.hd\n.dump,application/octet-stream\n.dvi,application/x-dvi\n.dv,video/x-dv\n.dwf,model/vnd.dwf\n.dwg,application/acad\n.dwg,image/vnd.dwg\n.dwg,image/x-dwg\n.dxf,application/dxf\n.dxf,image/vnd.dwg\n.dxf,image/vnd.dxf\n.dxf,image/x-dwg\n.dxp,application/vnd.spotfire.dxp\n.dxr,application/x-director\n.ecelp4800,audio/vnd.nuera.ecelp4800\n.ecelp7470,audio/vnd.nuera.ecelp7470\n.ecelp9600,audio/vnd.nuera.ecelp9600\n.edm,application/vnd.novadigm.edm\n.edx,application/vnd.novadigm.edx\n.efif,application/vnd.picsel\n.ei6,application/vnd.pg.osasli\n.elc,application/x-elc\n.el,text/x-script.elisp\n.eml,message/rfc822\n.emma,application/emma+xml\n.env,application/x-envoy\n.eol,audio/vnd.digital-winds\n.eot,application/vnd.ms-fontobject\n.eps,application/postscript\n.epub,application/epub+zip\n.es3,application/vnd.eszigno3+xml\n.es,application/ecmascript\n.es,application/x-esrehber\n.esf,application/vnd.epson.esf\n.etx,text/x-setext\n.evy,application/envoy\n.evy,application/x-envoy\n.exe,application/octet-stream\n.exe,application/x-msdownload\n.exi,application/exi\n.ext,application/vnd.novadigm.ext\n.ez2,application/vnd.ezpix-album\n.ez3,application/vnd.ezpix-package\n.f4v,video/x-f4v\n.f77,text/x-fortran\n.f90,text/plain\n.f90,text/x-fortran\n.fbs,image/vnd.fastbidsheet\n.fcs,application/vnd.isac.fcs\n.fdf,application/vnd.fdf\n.fe_launch,application/vnd.denovo.fcselayout-link\n.fg5,application/vnd.fujitsu.oasysgp\n.fh,image/x-freehand\n.fif,application/fractals\n.fif,image/fif\n.fig,application/x-xfig\n.fli,video/fli\n.fli,video/x-fli\n.flo,application/vnd.micrografx.flo\n.flo,image/florian\n.flv,video/x-flv\n.flw,application/vnd.kde.kivio\n.flx,text/vnd.fmi.flexstor\n.fly,text/vnd.fly\n.fm,application/vnd.framemaker\n.fmf,video/x-atomic3d-feature\n.fnc,application/vnd.frogans.fnc\n.for,text/plain\n.for,text/x-fortran\n.fpx,image/vnd.fpx\n.fpx,image/vnd.net-fpx\n.frl,application/freeloader\n.fsc,application/vnd.fsc.weblaunch\n.fst,image/vnd.fst\n.ftc,application/vnd.fluxtime.clip\n.f,text/plain\n.f,text/x-fortran\n.fti,application/vnd.anser-web-funds-transfer-initiation\n.funk,audio/make\n.fvt,video/vnd.fvt\n.fxp,application/vnd.adobe.fxp\n.fzs,application/vnd.fuzzysheet\n.g2w,application/vnd.geoplan\n.g3,image/g3fax\n.g3w,application/vnd.geospace\n.gac,application/vnd.groove-account\n.gdl,model/vnd.gdl\n.geo,application/vnd.dynageo\n.gex,application/vnd.geometry-explorer\n.ggb,application/vnd.geogebra.file\n.ggt,application/vnd.geogebra.tool\n.ghf,application/vnd.groove-help\n.gif,image/gif\n.gim,application/vnd.groove-identity-message\n.gl,video/gl\n.gl,video/x-gl\n.gmx,application/vnd.gmx\n.gnumeric,application/x-gnumeric\n.gph,application/vnd.flographit\n.gqf,application/vnd.grafeq\n.gram,application/srgs\n.grv,application/vnd.groove-injector\n.grxml,application/srgs+xml\n.gsd,audio/x-gsm\n.gsf,application/x-font-ghostscript\n.gsm,audio/x-gsm\n.gsp,application/x-gsp\n.gss,application/x-gss\n.gtar,application/x-gtar\n.g,text/plain\n.gtm,application/vnd.groove-tool-message\n.gtw,model/vnd.gtw\n.gv,text/vnd.graphviz\n.gxt,application/vnd.geonext\n.gz,application/x-compressed\n.gz,application/x-gzip\n.gzip,application/x-gzip\n.gzip,multipart/x-gzip\n.h261,video/h261\n.h263,video/h263\n.h264,video/h264\n.hal,application/vnd.hal+xml\n.hbci,application/vnd.hbci\n.hdf,application/x-hdf\n.help,application/x-helpfile\n.hgl,application/vnd.hp-hpgl\n.hh,text/plain\n.hh,text/x-h\n.hlb,text/x-script\n.hlp,application/hlp\n.hlp,application/winhlp\n.hlp,application/x-helpfile\n.hlp,application/x-winhelp\n.hpg,application/vnd.hp-hpgl\n.hpgl,application/vnd.hp-hpgl\n.hpid,application/vnd.hp-hpid\n.hps,application/vnd.hp-hps\n.hqx,application/binhex\n.hqx,application/binhex4\n.hqx,application/mac-binhex\n.hqx,application/mac-binhex40\n.hqx,application/x-binhex40\n.hqx,application/x-mac-binhex40\n.hta,application/hta\n.htc,text/x-component\n.h,text/plain\n.h,text/x-h\n.htke,application/vnd.kenameaapp\n.htmls,text/html\n.html,text/html\n.htm,text/html\n.htt,text/webviewhtml\n.htx,text/html\n.hvd,application/vnd.yamaha.hv-dic\n.hvp,application/vnd.yamaha.hv-voice\n.hvs,application/vnd.yamaha.hv-script\n.i2g,application/vnd.intergeo\n.icc,application/vnd.iccprofile\n.ice,x-conference/x-cooltalk\n.ico,image/x-icon\n.ics,text/calendar\n.idc,text/plain\n.ief,image/ief\n.iefs,image/ief\n.iff,application/iff\n.ifm,application/vnd.shana.informed.formdata\n.iges,application/iges\n.iges,model/iges\n.igl,application/vnd.igloader\n.igm,application/vnd.insors.igm\n.igs,application/iges\n.igs,model/iges\n.igx,application/vnd.micrografx.igx\n.iif,application/vnd.shana.informed.interchange\n.ima,application/x-ima\n.imap,application/x-httpd-imap\n.imp,application/vnd.accpac.simply.imp\n.ims,application/vnd.ms-ims\n.inf,application/inf\n.ins,application/x-internett-signup\n.ip,application/x-ip2\n.ipfix,application/ipfix\n.ipk,application/vnd.shana.informed.package\n.irm,application/vnd.ibm.rights-management\n.irp,application/vnd.irepository.package+xml\n.isu,video/x-isvideo\n.it,audio/it\n.itp,application/vnd.shana.informed.formtemplate\n.iv,application/x-inventor\n.ivp,application/vnd.immervision-ivp\n.ivr,i-world/i-vrml\n.ivu,application/vnd.immervision-ivu\n.ivy,application/x-livescreen\n.jad,text/vnd.sun.j2me.app-descriptor\n.jam,application/vnd.jam\n.jam,audio/x-jam\n.jar,application/java-archive\n.java,text/plain\n.java,text/x-java-source\n.jav,text/plain\n.jav,text/x-java-source\n.jcm,application/x-java-commerce\n.jfif,image/jpeg\n.jfif,image/pjpeg\n.jfif-tbnl,image/jpeg\n.jisp,application/vnd.jisp\n.jlt,application/vnd.hp-jlyt\n.jnlp,application/x-java-jnlp-file\n.joda,application/vnd.joost.joda-archive\n.jpeg,image/jpeg\n.jpe,image/jpeg\n.jpg,image/jpeg\n.jpgv,video/jpeg\n.jpm,video/jpm\n.jps,image/x-jps\n.js,application/javascript\n.json,application/json\n.jut,image/jutvision\n.kar,audio/midi\n.karbon,application/vnd.kde.karbon\n.kar,music/x-karaoke\n.key,application/pgp-keys\n.keychain,application/octet-stream\n.kfo,application/vnd.kde.kformula\n.kia,application/vnd.kidspiration\n.kml,application/vnd.google-earth.kml+xml\n.kmz,application/vnd.google-earth.kmz\n.kne,application/vnd.kinar\n.kon,application/vnd.kde.kontour\n.kpr,application/vnd.kde.kpresenter\n.ksh,application/x-ksh\n.ksh,text/x-script.ksh\n.ksp,application/vnd.kde.kspread\n.ktx,image/ktx\n.ktz,application/vnd.kahootz\n.kwd,application/vnd.kde.kword\n.la,audio/nspaudio\n.la,audio/x-nspaudio\n.lam,audio/x-liveaudio\n.lasxml,application/vnd.las.las+xml\n.latex,application/x-latex\n.lbd,application/vnd.llamagraphics.life-balance.desktop\n.lbe,application/vnd.llamagraphics.life-balance.exchange+xml\n.les,application/vnd.hhe.lesson-player\n.lha,application/lha\n.lha,application/x-lha\n.link66,application/vnd.route66.link66+xml\n.list,text/plain\n.lma,audio/nspaudio\n.lma,audio/x-nspaudio\n.log,text/plain\n.lrm,application/vnd.ms-lrm\n.lsp,application/x-lisp\n.lsp,text/x-script.lisp\n.lst,text/plain\n.lsx,text/x-la-asf\n.ltf,application/vnd.frogans.ltf\n.ltx,application/x-latex\n.lvp,audio/vnd.lucent.voice\n.lwp,application/vnd.lotus-wordpro\n.lzh,application/octet-stream\n.lzh,application/x-lzh\n.lzx,application/lzx\n.lzx,application/octet-stream\n.lzx,application/x-lzx\n.m1v,video/mpeg\n.m21,application/mp21\n.m2a,audio/mpeg\n.m2v,video/mpeg\n.m3u8,application/vnd.apple.mpegurl\n.m3u,audio/x-mpegurl\n.m4a,audio/mp4\n.m4v,video/mp4\n.ma,application/mathematica\n.mads,application/mads+xml\n.mag,application/vnd.ecowin.chart\n.man,application/x-troff-man\n.map,application/x-navimap\n.mar,text/plain\n.mathml,application/mathml+xml\n.mbd,application/mbedlet\n.mbk,application/vnd.mobius.mbk\n.mbox,application/mbox\n.mc1,application/vnd.medcalcdata\n.mc$,application/x-magic-cap-package-1.0\n.mcd,application/mcad\n.mcd,application/vnd.mcd\n.mcd,application/x-mathcad\n.mcf,image/vasa\n.mcf,text/mcf\n.mcp,application/netmc\n.mcurl,text/vnd.curl.mcurl\n.mdb,application/x-msaccess\n.mdi,image/vnd.ms-modi\n.me,application/x-troff-me\n.meta4,application/metalink4+xml\n.mets,application/mets+xml\n.mfm,application/vnd.mfmp\n.mgp,application/vnd.osgeo.mapguide.package\n.mgz,application/vnd.proteus.magazine\n.mht,message/rfc822\n.mhtml,message/rfc822\n.mid,application/x-midi\n.mid,audio/midi\n.mid,audio/x-mid\n.midi,application/x-midi\n.midi,audio/midi\n.midi,audio/x-mid\n.midi,audio/x-midi\n.midi,music/crescendo\n.midi,x-music/x-midi\n.mid,music/crescendo\n.mid,x-music/x-midi\n.mif,application/vnd.mif\n.mif,application/x-frame\n.mif,application/x-mif\n.mime,message/rfc822\n.mime,www/mime\n.mj2,video/mj2\n.mjf,audio/x-vnd.audioexplosion.mjuicemediafile\n.mjpg,video/x-motion-jpeg\n.mkv,video/x-matroska\n.mkv,audio/x-matroska\n.mlp,application/vnd.dolby.mlp\n.mm,application/base64\n.mm,application/x-meme\n.mmd,application/vnd.chipnuts.karaoke-mmd\n.mme,application/base64\n.mmf,application/vnd.smaf\n.mmr,image/vnd.fujixerox.edmics-mmr\n.mny,application/x-msmoney\n.mod,audio/mod\n.mod,audio/x-mod\n.mods,application/mods+xml\n.moov,video/quicktime\n.movie,video/x-sgi-movie\n.mov,video/quicktime\n.mp2,audio/mpeg\n.mp2,audio/x-mpeg\n.mp2,video/mpeg\n.mp2,video/x-mpeg\n.mp2,video/x-mpeq2a\n.mp3,audio/mpeg\n.mp3,audio/mpeg3\n.mp4a,audio/mp4\n.mp4,video/mp4\n.mp4,application/mp4\n.mpa,audio/mpeg\n.mpc,application/vnd.mophun.certificate\n.mpc,application/x-project\n.mpeg,video/mpeg\n.mpe,video/mpeg\n.mpga,audio/mpeg\n.mpg,video/mpeg\n.mpg,audio/mpeg\n.mpkg,application/vnd.apple.installer+xml\n.mpm,application/vnd.blueice.multipass\n.mpn,application/vnd.mophun.application\n.mpp,application/vnd.ms-project\n.mpt,application/x-project\n.mpv,application/x-project\n.mpx,application/x-project\n.mpy,application/vnd.ibm.minipay\n.mqy,application/vnd.mobius.mqy\n.mrc,application/marc\n.mrcx,application/marcxml+xml\n.ms,application/x-troff-ms\n.mscml,application/mediaservercontrol+xml\n.mseq,application/vnd.mseq\n.msf,application/vnd.epson.msf\n.msg,application/vnd.ms-outlook\n.msh,model/mesh\n.msl,application/vnd.mobius.msl\n.msty,application/vnd.muvee.style\n.m,text/plain\n.m,text/x-m\n.mts,model/vnd.mts\n.mus,application/vnd.musician\n.musicxml,application/vnd.recordare.musicxml+xml\n.mvb,application/x-msmediaview\n.mv,video/x-sgi-movie\n.mwf,application/vnd.mfer\n.mxf,application/mxf\n.mxl,application/vnd.recordare.musicxml\n.mxml,application/xv+xml\n.mxs,application/vnd.triscape.mxs\n.mxu,video/vnd.mpegurl\n.my,audio/make\n.mzz,application/x-vnd.audioexplosion.mzz\n.n3,text/n3\nN/A,application/andrew-inset\n.nap,image/naplps\n.naplps,image/naplps\n.nbp,application/vnd.wolfram.player\n.nc,application/x-netcdf\n.ncm,application/vnd.nokia.configuration-message\n.ncx,application/x-dtbncx+xml\n.n-gage,application/vnd.nokia.n-gage.symbian.install\n.ngdat,application/vnd.nokia.n-gage.data\n.niff,image/x-niff\n.nif,image/x-niff\n.nix,application/x-mix-transfer\n.nlu,application/vnd.neurolanguage.nlu\n.nml,application/vnd.enliven\n.nnd,application/vnd.noblenet-directory\n.nns,application/vnd.noblenet-sealer\n.nnw,application/vnd.noblenet-web\n.npx,image/vnd.net-fpx\n.nsc,application/x-conference\n.nsf,application/vnd.lotus-notes\n.nvd,application/x-navidoc\n.oa2,application/vnd.fujitsu.oasys2\n.oa3,application/vnd.fujitsu.oasys3\n.o,application/octet-stream\n.oas,application/vnd.fujitsu.oasys\n.obd,application/x-msbinder\n.oda,application/oda\n.odb,application/vnd.oasis.opendocument.database\n.odc,application/vnd.oasis.opendocument.chart\n.odf,application/vnd.oasis.opendocument.formula\n.odft,application/vnd.oasis.opendocument.formula-template\n.odg,application/vnd.oasis.opendocument.graphics\n.odi,application/vnd.oasis.opendocument.image\n.odm,application/vnd.oasis.opendocument.text-master\n.odp,application/vnd.oasis.opendocument.presentation\n.ods,application/vnd.oasis.opendocument.spreadsheet\n.odt,application/vnd.oasis.opendocument.text\n.oga,audio/ogg\n.ogg,audio/ogg\n.ogv,video/ogg\n.ogx,application/ogg\n.omc,application/x-omc\n.omcd,application/x-omcdatamaker\n.omcr,application/x-omcregerator\n.onetoc,application/onenote\n.opf,application/oebps-package+xml\n.org,application/vnd.lotus-organizer\n.osf,application/vnd.yamaha.openscoreformat\n.osfpvg,application/vnd.yamaha.openscoreformat.osfpvg+xml\n.otc,application/vnd.oasis.opendocument.chart-template\n.otf,application/x-font-otf\n.otg,application/vnd.oasis.opendocument.graphics-template\n.oth,application/vnd.oasis.opendocument.text-web\n.oti,application/vnd.oasis.opendocument.image-template\n.otp,application/vnd.oasis.opendocument.presentation-template\n.ots,application/vnd.oasis.opendocument.spreadsheet-template\n.ott,application/vnd.oasis.opendocument.text-template\n.oxt,application/vnd.openofficeorg.extension\n.p10,application/pkcs10\n.p12,application/pkcs-12\n.p7a,application/x-pkcs7-signature\n.p7b,application/x-pkcs7-certificates\n.p7c,application/pkcs7-mime\n.p7m,application/pkcs7-mime\n.p7r,application/x-pkcs7-certreqresp\n.p7s,application/pkcs7-signature\n.p8,application/pkcs8\n.pages,application/vnd.apple.pages\n.part,application/pro_eng\n.par,text/plain-bas\n.pas,text/pascal\n.paw,application/vnd.pawaafile\n.pbd,application/vnd.powerbuilder6\n.pbm,image/x-portable-bitmap\n.pcf,application/x-font-pcf\n.pcl,application/vnd.hp-pcl\n.pcl,application/x-pcl\n.pclxl,application/vnd.hp-pclxl\n.pct,image/x-pict\n.pcurl,application/vnd.curl.pcurl\n.pcx,image/x-pcx\n.pdb,application/vnd.palm\n.pdb,chemical/x-pdb\n.pdf,application/pdf\n.pem,application/x-pem-file\n.pfa,application/x-font-type1\n.pfr,application/font-tdpfr\n.pfunk,audio/make\n.pfunk,audio/make.my.funk\n.pfx,application/x-pkcs12\n.pgm,image/x-portable-graymap\n.pgn,application/x-chess-pgn\n.pgp,application/pgp-signature\n.pic,image/pict\n.pict,image/pict\n.pkg,application/x-newton-compatible-pkg\n.pki,application/pkixcmp\n.pkipath,application/pkix-pkipath\n.pko,application/vnd.ms-pki.pko\n.plb,application/vnd.3gpp.pic-bw-large\n.plc,application/vnd.mobius.plc\n.plf,application/vnd.pocketlearn\n.pls,application/pls+xml\n.pl,text/plain\n.pl,text/x-script.perl\n.plx,application/x-pixclscript\n.pm4,application/x-pagemaker\n.pm5,application/x-pagemaker\n.pm,image/x-xpixmap\n.pml,application/vnd.ctc-posml\n.pm,text/x-script.perl-module\n.png,image/png\n.pnm,application/x-portable-anymap\n.pnm,image/x-portable-anymap\n.portpkg,application/vnd.macports.portpkg\n.pot,application/mspowerpoint\n.pot,application/vnd.ms-powerpoint\n.potm,application/vnd.ms-powerpoint.template.macroenabled.12\n.potx,application/vnd.openxmlformats-officedocument.presentationml.template\n.pov,model/x-pov\n.ppa,application/vnd.ms-powerpoint\n.ppam,application/vnd.ms-powerpoint.addin.macroenabled.12\n.ppd,application/vnd.cups-ppd\n.ppm,image/x-portable-pixmap\n.pps,application/mspowerpoint\n.pps,application/vnd.ms-powerpoint\n.ppsm,application/vnd.ms-powerpoint.slideshow.macroenabled.12\n.ppsx,application/vnd.openxmlformats-officedocument.presentationml.slideshow\n.ppt,application/mspowerpoint\n.ppt,application/powerpoint\n.ppt,application/vnd.ms-powerpoint\n.ppt,application/x-mspowerpoint\n.pptm,application/vnd.ms-powerpoint.presentation.macroenabled.12\n.pptx,application/vnd.openxmlformats-officedocument.presentationml.presentation\n.ppz,application/mspowerpoint\n.prc,application/x-mobipocket-ebook\n.pre,application/vnd.lotus-freelance\n.pre,application/x-freelance\n.prf,application/pics-rules\n.prt,application/pro_eng\n.ps,application/postscript\n.psb,application/vnd.3gpp.pic-bw-small\n.psd,application/octet-stream\n.psd,image/vnd.adobe.photoshop\n.psf,application/x-font-linux-psf\n.pskcxml,application/pskc+xml\n.p,text/x-pascal\n.ptid,application/vnd.pvi.ptid1\n.pub,application/x-mspublisher\n.pvb,application/vnd.3gpp.pic-bw-var\n.pvu,paleovu/x-pv\n.pwn,application/vnd.3m.post-it-notes\n.pwz,application/vnd.ms-powerpoint\n.pya,audio/vnd.ms-playready.media.pya\n.pyc,application/x-bytecode.python\n.py,text/x-script.python\n.pyv,video/vnd.ms-playready.media.pyv\n.qam,application/vnd.epson.quickanime\n.qbo,application/vnd.intu.qbo\n.qcp,audio/vnd.qcelp\n.qd3d,x-world/x-3dmf\n.qd3,x-world/x-3dmf\n.qfx,application/vnd.intu.qfx\n.qif,image/x-quicktime\n.qps,application/vnd.publishare-delta-tree\n.qtc,video/x-qtc\n.qtif,image/x-quicktime\n.qti,image/x-quicktime\n.qt,video/quicktime\n.qxd,application/vnd.quark.quarkxpress\n.ra,audio/x-pn-realaudio\n.ra,audio/x-pn-realaudio-plugin\n.ra,audio/x-realaudio\n.ram,audio/x-pn-realaudio\n.rar,application/x-rar-compressed\n.ras,application/x-cmu-raster\n.ras,image/cmu-raster\n.ras,image/x-cmu-raster\n.rast,image/cmu-raster\n.rcprofile,application/vnd.ipunplugged.rcprofile\n.rdf,application/rdf+xml\n.rdz,application/vnd.data-vision.rdz\n.rep,application/vnd.businessobjects\n.res,application/x-dtbresource+xml\n.rexx,text/x-script.rexx\n.rf,image/vnd.rn-realflash\n.rgb,image/x-rgb\n.rif,application/reginfo+xml\n.rip,audio/vnd.rip\n.rl,application/resource-lists+xml\n.rlc,image/vnd.fujixerox.edmics-rlc\n.rld,application/resource-lists-diff+xml\n.rm,application/vnd.rn-realmedia\n.rm,audio/x-pn-realaudio\n.rmi,audio/mid\n.rmm,audio/x-pn-realaudio\n.rmp,audio/x-pn-realaudio\n.rmp,audio/x-pn-realaudio-plugin\n.rms,application/vnd.jcp.javame.midlet-rms\n.rnc,application/relax-ng-compact-syntax\n.rng,application/ringing-tones\n.rng,application/vnd.nokia.ringing-tone\n.rnx,application/vnd.rn-realplayer\n.roff,application/x-troff\n.rp9,application/vnd.cloanto.rp9\n.rp,image/vnd.rn-realpix\n.rpm,audio/x-pn-realaudio-plugin\n.rpm,application/x-rpm\n.rpss,application/vnd.nokia.radio-presets\n.rpst,application/vnd.nokia.radio-preset\n.rq,application/sparql-query\n.rs,application/rls-services+xml\n.rsd,application/rsd+xml\n.rss,application/rss+xml\n.rtf,application/rtf\n.rtf,text/rtf\n.rt,text/richtext\n.rt,text/vnd.rn-realtext\n.rtx,application/rtf\n.rtx,text/richtext\n.rv,video/vnd.rn-realvideo\n.s3m,audio/s3m\n.saf,application/vnd.yamaha.smaf-audio\n.saveme,application/octet-stream\n.sbk,application/x-tbook\n.sbml,application/sbml+xml\n.sc,application/vnd.ibm.secure-container\n.scd,application/x-msschedule\n.scm,application/vnd.lotus-screencam\n.scm,application/x-lotusscreencam\n.scm,text/x-script.guile\n.scm,text/x-script.scheme\n.scm,video/x-scm\n.scq,application/scvp-cv-request\n.scs,application/scvp-cv-response\n.scurl,text/vnd.curl.scurl\n.sda,application/vnd.stardivision.draw\n.sdc,application/vnd.stardivision.calc\n.sdd,application/vnd.stardivision.impress\n.sdf,application/octet-stream\n.sdkm,application/vnd.solent.sdkm+xml\n.sdml,text/plain\n.sdp,application/sdp\n.sdp,application/x-sdp\n.sdr,application/sounder\n.sdw,application/vnd.stardivision.writer\n.sea,application/sea\n.sea,application/x-sea\n.see,application/vnd.seemail\n.seed,application/vnd.fdsn.seed\n.sema,application/vnd.sema\n.semd,application/vnd.semd\n.semf,application/vnd.semf\n.ser,application/java-serialized-object\n.set,application/set\n.setpay,application/set-payment-initiation\n.setreg,application/set-registration-initiation\n.sfd-hdstx,application/vnd.hydrostatix.sof-data\n.sfs,application/vnd.spotfire.sfs\n.sgl,application/vnd.stardivision.writer-global\n.sgml,text/sgml\n.sgml,text/x-sgml\n.sgm,text/sgml\n.sgm,text/x-sgml\n.sh,application/x-bsh\n.sh,application/x-sh\n.sh,application/x-shar\n.shar,application/x-bsh\n.shar,application/x-shar\n.shf,application/shf+xml\n.sh,text/x-script.sh\n.shtml,text/html\n.shtml,text/x-server-parsed-html\n.sid,audio/x-psid\n.sis,application/vnd.symbian.install\n.sit,application/x-sit\n.sit,application/x-stuffit\n.sitx,application/x-stuffitx\n.skd,application/x-koan\n.skm,application/x-koan\n.skp,application/vnd.koan\n.skp,application/x-koan\n.skt,application/x-koan\n.sl,application/x-seelogo\n.sldm,application/vnd.ms-powerpoint.slide.macroenabled.12\n.sldx,application/vnd.openxmlformats-officedocument.presentationml.slide\n.slt,application/vnd.epson.salt\n.sm,application/vnd.stepmania.stepchart\n.smf,application/vnd.stardivision.math\n.smi,application/smil\n.smi,application/smil+xml\n.smil,application/smil\n.snd,audio/basic\n.snd,audio/x-adpcm\n.snf,application/x-font-snf\n.sol,application/solids\n.spc,application/x-pkcs7-certificates\n.spc,text/x-speech\n.spf,application/vnd.yamaha.smaf-phrase\n.spl,application/futuresplash\n.spl,application/x-futuresplash\n.spot,text/vnd.in3d.spot\n.spp,application/scvp-vp-response\n.spq,application/scvp-vp-request\n.spr,application/x-sprite\n.sprite,application/x-sprite\n.src,application/x-wais-source\n.srt,text/srt\n.sru,application/sru+xml\n.srx,application/sparql-results+xml\n.sse,application/vnd.kodak-descriptor\n.ssf,application/vnd.epson.ssf\n.ssi,text/x-server-parsed-html\n.ssm,application/streamingmedia\n.ssml,application/ssml+xml\n.sst,application/vnd.ms-pki.certstore\n.st,application/vnd.sailingtracker.track\n.stc,application/vnd.sun.xml.calc.template\n.std,application/vnd.sun.xml.draw.template\n.step,application/step\n.s,text/x-asm\n.stf,application/vnd.wt.stf\n.sti,application/vnd.sun.xml.impress.template\n.stk,application/hyperstudio\n.stl,application/sla\n.stl,application/vnd.ms-pki.stl\n.stl,application/x-navistyle\n.stp,application/step\n.str,application/vnd.pg.format\n.stw,application/vnd.sun.xml.writer.template\n.sub,image/vnd.dvb.subtitle\n.sus,application/vnd.sus-calendar\n.sv4cpio,application/x-sv4cpio\n.sv4crc,application/x-sv4crc\n.svc,application/vnd.dvb.service\n.svd,application/vnd.svd\n.svf,image/vnd.dwg\n.svf,image/x-dwg\n.svg,image/svg+xml\n.svr,application/x-world\n.svr,x-world/x-svr\n.swf,application/x-shockwave-flash\n.swi,application/vnd.aristanetworks.swi\n.sxc,application/vnd.sun.xml.calc\n.sxd,application/vnd.sun.xml.draw\n.sxg,application/vnd.sun.xml.writer.global\n.sxi,application/vnd.sun.xml.impress\n.sxm,application/vnd.sun.xml.math\n.sxw,application/vnd.sun.xml.writer\n.talk,text/x-speech\n.tao,application/vnd.tao.intent-module-archive\n.t,application/x-troff\n.tar,application/x-tar\n.tbk,application/toolbook\n.tbk,application/x-tbook\n.tcap,application/vnd.3gpp2.tcap\n.tcl,application/x-tcl\n.tcl,text/x-script.tcl\n.tcsh,text/x-script.tcsh\n.teacher,application/vnd.smart.teacher\n.tei,application/tei+xml\n.tex,application/x-tex\n.texi,application/x-texinfo\n.texinfo,application/x-texinfo\n.text,text/plain\n.tfi,application/thraud+xml\n.tfm,application/x-tex-tfm\n.tgz,application/gnutar\n.tgz,application/x-compressed\n.thmx,application/vnd.ms-officetheme\n.tiff,image/tiff\n.tif,image/tiff\n.tmo,application/vnd.tmobile-livetv\n.torrent,application/x-bittorrent\n.tpl,application/vnd.groove-tool-template\n.tpt,application/vnd.trid.tpt\n.tra,application/vnd.trueapp\n.tr,application/x-troff\n.trm,application/x-msterminal\n.tsd,application/timestamped-data\n.tsi,audio/tsp-audio\n.tsp,application/dsptype\n.tsp,audio/tsplayer\n.tsv,text/tab-separated-values\n.t,text/troff\n.ttf,application/x-font-ttf\n.ttl,text/turtle\n.turbot,image/florian\n.twd,application/vnd.simtech-mindmapper\n.txd,application/vnd.genomatix.tuxedo\n.txf,application/vnd.mobius.txf\n.txt,text/plain\n.ufd,application/vnd.ufdl\n.uil,text/x-uil\n.umj,application/vnd.umajin\n.unis,text/uri-list\n.uni,text/uri-list\n.unityweb,application/vnd.unity\n.unv,application/i-deas\n.uoml,application/vnd.uoml+xml\n.uris,text/uri-list\n.uri,text/uri-list\n.ustar,application/x-ustar\n.ustar,multipart/x-ustar\n.utz,application/vnd.uiq.theme\n.uu,application/octet-stream\n.uue,text/x-uuencode\n.uu,text/x-uuencode\n.uva,audio/vnd.dece.audio\n.uvh,video/vnd.dece.hd\n.uvi,image/vnd.dece.graphic\n.uvm,video/vnd.dece.mobile\n.uvp,video/vnd.dece.pd\n.uvs,video/vnd.dece.sd\n.uvu,video/vnd.uvvu.mp4\n.uvv,video/vnd.dece.video\n.vcd,application/x-cdlink\n.vcf,text/x-vcard\n.vcg,application/vnd.groove-vcard\n.vcs,text/x-vcalendar\n.vcx,application/vnd.vcx\n.vda,application/vda\n.vdo,video/vdo\n.vew,application/groupwise\n.vis,application/vnd.visionary\n.vivo,video/vivo\n.vivo,video/vnd.vivo\n.viv,video/vivo\n.viv,video/vnd.vivo\n.vmd,application/vocaltec-media-desc\n.vmf,application/vocaltec-media-file\n.vob,video/dvd\n.voc,audio/voc\n.voc,audio/x-voc\n.vos,video/vosaic\n.vox,audio/voxware\n.vqe,audio/x-twinvq-plugin\n.vqf,audio/x-twinvq\n.vql,audio/x-twinvq-plugin\n.vrml,application/x-vrml\n.vrml,model/vrml\n.vrml,x-world/x-vrml\n.vrt,x-world/x-vrt\n.vsd,application/vnd.visio\n.vsd,application/x-visio\n.vsf,application/vnd.vsf\n.vst,application/x-visio\n.vsw,application/x-visio\n.vtt,text/vtt\n.vtu,model/vnd.vtu\n.vxml,application/voicexml+xml\n.w60,application/wordperfect6.0\n.w61,application/wordperfect6.1\n.w6w,application/msword\n.wad,application/x-doom\n.war,application/zip\n.wasm,application/wasm\n.wav,audio/wav\n.wax,audio/x-ms-wax\n.wb1,application/x-qpro\n.wbmp,image/vnd.wap.wbmp\n.wbs,application/vnd.criticaltools.wbs+xml\n.wbxml,application/vnd.wap.wbxml\n.weba,audio/webm\n.web,application/vnd.xara\n.webm,video/webm\n.webp,image/webp\n.wg,application/vnd.pmi.widget\n.wgt,application/widget\n.wiz,application/msword\n.wk1,application/x-123\n.wma,audio/x-ms-wma\n.wmd,application/x-ms-wmd\n.wmf,application/x-msmetafile\n.wmf,windows/metafile\n.wmlc,application/vnd.wap.wmlc\n.wmlsc,application/vnd.wap.wmlscriptc\n.wmls,text/vnd.wap.wmlscript\n.wml,text/vnd.wap.wml\n.wm,video/x-ms-wm\n.wmv,video/x-ms-wmv\n.wmx,video/x-ms-wmx\n.wmz,application/x-ms-wmz\n.woff,application/x-font-woff\n.word,application/msword\n.wp5,application/wordperfect\n.wp5,application/wordperfect6.0\n.wp6,application/wordperfect\n.wp,application/wordperfect\n.wpd,application/vnd.wordperfect\n.wpd,application/wordperfect\n.wpd,application/x-wpwin\n.wpl,application/vnd.ms-wpl\n.wps,application/vnd.ms-works\n.wq1,application/x-lotus\n.wqd,application/vnd.wqd\n.wri,application/mswrite\n.wri,application/x-mswrite\n.wri,application/x-wri\n.wrl,application/x-world\n.wrl,model/vrml\n.wrl,x-world/x-vrml\n.wrz,model/vrml\n.wrz,x-world/x-vrml\n.wsc,text/scriplet\n.wsdl,application/wsdl+xml\n.wspolicy,application/wspolicy+xml\n.wsrc,application/x-wais-source\n.wtb,application/vnd.webturbo\n.wtk,application/x-wintalk\n.wvx,video/x-ms-wvx\n.x3d,application/vnd.hzn-3d-crossword\n.xap,application/x-silverlight-app\n.xar,application/vnd.xara\n.xbap,application/x-ms-xbap\n.xbd,application/vnd.fujixerox.docuworks.binder\n.xbm,image/xbm\n.xbm,image/x-xbitmap\n.xbm,image/x-xbm\n.xdf,application/xcap-diff+xml\n.xdm,application/vnd.syncml.dm+xml\n.xdp,application/vnd.adobe.xdp+xml\n.xdr,video/x-amt-demorun\n.xdssc,application/dssc+xml\n.xdw,application/vnd.fujixerox.docuworks\n.xenc,application/xenc+xml\n.xer,application/patch-ops-error+xml\n.xfdf,application/vnd.adobe.xfdf\n.xfdl,application/vnd.xfdl\n.xgz,xgl/drawing\n.xhtml,application/xhtml+xml\n.xif,image/vnd.xiff\n.xla,application/excel\n.xla,application/x-excel\n.xla,application/x-msexcel\n.xlam,application/vnd.ms-excel.addin.macroenabled.12\n.xl,application/excel\n.xlb,application/excel\n.xlb,application/vnd.ms-excel\n.xlb,application/x-excel\n.xlc,application/excel\n.xlc,application/vnd.ms-excel\n.xlc,application/x-excel\n.xld,application/excel\n.xld,application/x-excel\n.xlk,application/excel\n.xlk,application/x-excel\n.xll,application/excel\n.xll,application/vnd.ms-excel\n.xll,application/x-excel\n.xlm,application/excel\n.xlm,application/vnd.ms-excel\n.xlm,application/x-excel\n.xls,application/excel\n.xls,application/vnd.ms-excel\n.xls,application/x-excel\n.xls,application/x-msexcel\n.xlsb,application/vnd.ms-excel.sheet.binary.macroenabled.12\n.xlsm,application/vnd.ms-excel.sheet.macroenabled.12\n.xlsx,application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\n.xlt,application/excel\n.xlt,application/x-excel\n.xltm,application/vnd.ms-excel.template.macroenabled.12\n.xltx,application/vnd.openxmlformats-officedocument.spreadsheetml.template\n.xlv,application/excel\n.xlv,application/x-excel\n.xlw,application/excel\n.xlw,application/vnd.ms-excel\n.xlw,application/x-excel\n.xlw,application/x-msexcel\n.xm,audio/xm\n.xml,application/xml\n.xml,text/xml\n.xmz,xgl/movie\n.xo,application/vnd.olpc-sugar\n.xop,application/xop+xml\n.xpi,application/x-xpinstall\n.xpix,application/x-vnd.ls-xpix\n.xpm,image/xpm\n.xpm,image/x-xpixmap\n.x-png,image/png\n.xpr,application/vnd.is-xpr\n.xps,application/vnd.ms-xpsdocument\n.xpw,application/vnd.intercon.formnet\n.xslt,application/xslt+xml\n.xsm,application/vnd.syncml+xml\n.xspf,application/xspf+xml\n.xsr,video/x-amt-showrun\n.xul,application/vnd.mozilla.xul+xml\n.xwd,image/x-xwd\n.xwd,image/x-xwindowdump\n.xyz,chemical/x-pdb\n.xyz,chemical/x-xyz\n.xz,application/x-xz\n.yaml,text/yaml\n.yang,application/yang\n.yin,application/yin+xml\n.z,application/x-compress\n.z,application/x-compressed\n.zaz,application/vnd.zzazz.deck+xml\n.zip,application/zip\n.zip,application/x-compressed\n.zip,application/x-zip-compressed\n.zip,multipart/x-zip\n.zir,application/vnd.zul\n.zmm,application/vnd.handheld-entertainment+xml\n.zoo,application/octet-stream\n.zsh,text/x-script.zsh\n"),Fi))}function Wi(){return Di.value}function Hi(){Xi()}function Vi(){Ki=this,this.Empty=no()}Ai.$metadata$={kind:_,simpleName:"HttpStatusCode",interfaces:[]},Ai.prototype.component1=function(){return this.value},Ai.prototype.component2=function(){return this.description},Ai.prototype.copy_19mbxw$=function(t,e){return new Ai(void 0===t?this.value:t,void 0===e?this.description:e)},Vi.prototype.build_itqcaa$=St("ktor-ktor-http-js-legacy.io.ktor.http.Parameters.Companion.build_itqcaa$",vt((function(){var e=t.io.ktor.http.ParametersBuilder_za3lpa$;return function(t){var n=e();return t(n),n.build()}}))),Vi.$metadata$={kind:K,simpleName:"Companion",interfaces:[]};var Ki=null;function Xi(){return null===Ki&&new Vi,Ki}function Ji(){}function Yi(t){return void 0===t&&(t=8),new Qi(t)}function Qi(t){void 0===t&&(t=8),Ft.call(this,!0,t)}function Zi(t){void 0===t&&(t=lt()),Vt.call(this,!0,t)}function to(){eo=this}Hi.$metadata$={kind:Q,simpleName:"Parameters",interfaces:[qt]},Ji.$metadata$={kind:Q,simpleName:"ParametersBuilder",interfaces:[ae]},Qi.prototype.build=function(){return new Zi(this.values)},Qi.$metadata$={kind:_,simpleName:"ParametersBuilderImpl",interfaces:[Ji,Ft]},Zi.prototype.toString=function(){return"Parameters "+this.entries()},Zi.$metadata$={kind:_,simpleName:"ParametersImpl",interfaces:[Vt,Hi]},Object.defineProperty(to.prototype,"caseInsensitiveName",{configurable:!0,get:function(){return!0}}),to.prototype.getAll_61zpoe$=function(t){return null},to.prototype.names=function(){return Bt()},to.prototype.entries=function(){return Bt()},to.prototype.isEmpty=function(){return!0},to.prototype.toString=function(){return"Parameters "+this.entries()},to.prototype.equals=function(t){return e.isType(t,Hi)&&t.isEmpty()},to.$metadata$={kind:K,simpleName:"EmptyParameters",interfaces:[Hi]};var eo=null;function no(){return null===eo&&new to,eo}function io(t,e,n,i){var o;if(void 0===e&&(e=0),void 0===n&&(n=1e3),void 0===i&&(i=!0),e>Gt(t))o=Xi().Empty;else{var r=Yi();!function(t,e,n,i,o){var r,s=0,a=n,c=-1;r=Gt(e);for(var l=n;l<=r;l++){if(s===i)return;switch(e.charCodeAt(l)){case 38:oo(t,e,a,c,l,o),a=l+1|0,c=-1,s=s+1|0;break;case 61:-1===c&&(c=l)}}s!==i&&oo(t,e,a,c,e.length,o)}(r,t,e,n,i),o=r.build()}return o}function oo(t,e,n,i,o,r){if(-1!==i){var s=so(n,i,e),a=ro(s,i,e);if(a>s){var c=r?We(e,s,a):e.substring(s,a),l=so(i+1|0,o,e),u=ro(l,o,e),h=r?We(e,l,u,!0):e.substring(l,u);t.append_puj7f4$(c,h)}}else{var d=so(n,o,e),p=ro(d,o,e);if(p>d){var _=r?We(e,d,p):e.substring(d,p);t.appendAll_poujtz$(_,X())}}}function ro(t,e,n){for(var i=e;i>t&&_t(n.charCodeAt(i-1|0));)i=i-1|0;return i}function so(t,e,n){for(var i=t;i0&&(e.append_s8itvh$(35),e.append_gw00v9$(t.encodedFragment)),e}(this,P(256)).toString()},ao.prototype.build=function(){return this.applyOrigin_0(),new Ao(this.protocol,this.host,this.port,this.pathSegments,this.parameters.build(),this.fragment,this.user,this.password,this.trailingQuery,this.buildString())},ao.prototype.applyOrigin_0=function(){var t;this.host.length>0||f(this.protocol.name,"file")||(this.host=ho().originUrl_0.host,null!=(t=this.protocol)&&t.equals(No().HTTP)&&(this.protocol=ho().originUrl_0.protocol),0===this.port&&(this.port=ho().originUrl_0.specifiedPort))},co.$metadata$={kind:K,simpleName:"Companion",interfaces:[]};var lo,uo=null;function ho(){return null===uo&&new co,uo}function po(t){var e=G();return Ro(e,t.encodedUser,t.encodedPassword),e.toString()}function _o(t){var e=G();return e.append_pdl1vj$(po(t)),e.append_pdl1vj$(t.host),0!==t.port&&t.port!==t.protocol.defaultPort&&(e.append_pdl1vj$(":"),e.append_pdl1vj$(t.port.toString())),e.toString()}function mo(t){return function(t){return t.isEmpty()?"":1===t.size?0===he(t).length?"/":he(t):E(t,"/")}(t.encodedPathSegments)}function fo(t,n){var i;i=tt(n)?X():f(n,"/")?lo:pe(ce(n,e.charArrayOf(47))),t.encodedPathSegments=i}function go(t,n){var i;if(tt(n))return t;try{i=Eo(t,n)}catch(t){throw e.isType(t,Pt)?new $o(n,t):t}return i}function $o(t,e){Lt.call(this,"Fail to parse url: "+t,e),this.name="URLParserException"}function Eo(t,n){var i,o,r,s,a;t:do{var c,l,u,h;l=(c=me(n)).first,u=c.last,h=c.step;for(var d=l;d<=u;d+=h)if(!_t(C(L(n.charCodeAt(d))))){a=d;break t}a=-1}while(0);var p,_=a;t:do{var m;for(m=fe(me(n)).iterator();m.hasNext();){var g=m.next();if(!_t(C(L(n.charCodeAt(g))))){p=g;break t}}p=-1}while(0);var $=p+1|0,E=function(t,e,n){var i=e,o=-1,r=t.charCodeAt(i);for(new b(97,122).contains_mef7kx$(r)||new b(65,90).contains_mef7kx$(r)||(o=i);i0){var y=_,S=_+E|0,N=n.substring(y,S);t.protocol=No().createOrDefault_61zpoe$(N),_=_+(E+1)|0}var T=function(t,e,n,i){for(var o=0;(e+o|0)=2)t:for(;;){var z=_e(n,Rt("@/\\?#"),_),w=null!=(i=z>0?z:null)?i:$;if(!(w<$&&64===n.charCodeAt(w))){yo(t,n,_,w),_=w;break t}var O=bo(n,_,w);if(-1!==O){var R=_;t.encodedUser=n.substring(R,O);var A=O+1|0;t.encodedPassword=n.substring(A,w)}else{var x=_;t.encodedUser=n.substring(x,w)}_=w+1|0}if(_>=$)return t.encodedPathSegments=47===n.charCodeAt($-1|0)?lo:X(),t;o=0===T?de(t.encodedPathSegments,1):X(),t.encodedPathSegments=o;var U=_e(n,Rt("?#"),_),D=null!=(r=U>0?U:null)?r:$;if(D>_){var P=_,M=n.substring(P,D),k=1===t.encodedPathSegments.size;k&&(k=0===he(t.encodedPathSegments).length);var j=k?X():t.encodedPathSegments,G=f(M,"/")?lo:ce(M,e.charArrayOf(47));s=1===T?lo:X();var q=v(s,G);t.encodedPathSegments=v(j,q),_=D}return _<$&&63===n.charCodeAt(_)&&(_=function(t,e,n,i){var o;if((n+1|0)===i)return t.trailingQuery=!0,i;var r,s=et(e,35,n+1|0),a=null!=(o=s>0?s:null)?o:i,c=n+1|0;return io(e.substring(c,a),void 0,void 0,!1).forEach_ubvtmq$((r=t,function(t,e){return r.encodedParameters.appendAll_poujtz$(t,e),I})),a}(t,n,_,$)),function(t,e,n,i){if(n0?r:null)?o:i;if(t.host=e.substring(n,s),(s+1|0)0){n=!0;break t}}n=!1}while(0);return n},vr.prototype.ifUnmodifiedSince_iwdcyr$=function(t){var n;t:do{var i;if(e.isType(t,st)&&t.isEmpty()){n=!0;break t}for(i=t.iterator();i.hasNext();){var o=i.next();if(!(this.truncatedModificationDate_0.compareTo_11rb$(o)<=0)){n=!1;break t}}n=!0}while(0);return n},vr.prototype.appendHeadersTo_ewccyn$=function(t){t.set_puj7f4$(fi().LastModified,xn(this.lastModified))},vr.prototype.parseDates_0=function(t){var n,i=yt();for(n=t.iterator();n.hasNext();){var o=n.next();tt(o)||i.add_11rb$(o)}var r,s=yt();for(r=i.iterator();r.hasNext();){var a,c,l=r.next();t:do{try{c=An(l)}catch(t){if(e.isType(t,Pt)){c=null;break t}throw t}}while(0);null!=(a=c)&&s.add_11rb$(a)}return s.isEmpty()?null:s},vr.$metadata$={kind:_,simpleName:"LastModifiedVersion",interfaces:[gr]},vr.prototype.component1=function(){return this.lastModified},vr.prototype.copy_ou65wy$=function(t){return new vr(void 0===t?this.lastModified:t)},vr.prototype.toString=function(){return"LastModifiedVersion(lastModified="+e.toString(this.lastModified)+")"},vr.prototype.hashCode=function(){var t=0;return t=31*t+e.hashCode(this.lastModified)|0},vr.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.lastModified,t.lastModified)},Cr.prototype.check_fkh4uy$=function(t){var e,n,i,o;if(null!=(n=null!=(e=t.get_61zpoe$(fi().IfNoneMatch))?zr().parse_61zpoe$(e):null)){var r=this.noneMatch_qetvw1$(n);if(r!==yr())return r}if(null!=(o=null!=(i=t.get_61zpoe$(fi().IfMatch))?zr().parse_61zpoe$(i):null)){var s=this.match_qetvw1$(o);if(s!==yr())return s}return yr()},Cr.prototype.match_4cvlr2$=function(t){return!!(null!=this&&this.equals(zr().STAR)||null!=t&&t.equals(zr().STAR))||f(this.normalized_0,t.normalized_0)},Cr.prototype.noneMatch_qetvw1$=function(t){if(t.contains_11rb$(zr().STAR))return yr();var n;t:do{var i;if(e.isType(t,st)&&t.isEmpty()){n=!1;break t}for(i=t.iterator();i.hasNext();){var o=i.next();if(this.match_4cvlr2$(o)){n=!0;break t}}n=!1}while(0);return n?br():yr()},Cr.prototype.match_qetvw1$=function(t){var e;if(t.isEmpty())return yr();if(t.contains_11rb$(zr().STAR))return yr();for(e=t.iterator();e.hasNext();){var n=e.next();if(this.match_4cvlr2$(n))return yr()}return Sr()},Cr.prototype.appendHeadersTo_ewccyn$=function(t){Pe(t,this.normalized_0)},Nr.prototype.parse_61zpoe$=function(t){var e,n=oi(t),i=g(H(n,10));for(e=n.iterator();e.hasNext();){var o=e.next(),r=i.add_11rb$;if(1!==o.quality){var s="entity-tag quality parameter is not allowed: "+o.quality+".";throw Tt(s.toString())}if(!o.params.isEmpty()){var a="entity-tag parameters are not allowed: "+o.params+".";throw Tt(a.toString())}r.call(i,this.parseSingle_61zpoe$(o.value))}return i},Nr.prototype.parseSingle_61zpoe$=function(t){var e,n;return f(t,"*")?this.STAR:(J(t,"W/")?(e=!0,n=Ae(t,2)):(e=!1,n=t),new Cr(J(n,'"')?n:Fn(n),e))},Nr.$metadata$={kind:K,simpleName:"Companion",interfaces:[]};var Tr,Lr=null;function zr(){return null===Lr&&new Nr,Lr}function wr(){}function Or(t){this.mapping_0=t}function Rr(){}function Ar(){}function xr(){}function Ir(t){Rr.call(this),this.value=t}function Ur(t){Rr.call(this),this.value=t}function Dr(t,e){Rr.call(this),this.from=L(t),this.to=L(e)}function Pr(t){Rr.call(this),this.value=t}function Mr(t,e){Rr.call(this),this.name=t,this.grammar=e}function kr(t){Rr.call(this),this.grammar_j1kz5k$_0=t}function jr(t){Rr.call(this),this.grammar_misagz$_0=t}function Gr(t){Rr.call(this),this.grammar_8xmxwn$_0=t}function qr(t){Rr.call(this);var n,i=yt();for(n=t.iterator();n.hasNext();){var o=n.next();e.isType(o,qr)?ee(i,o.grammars):i.add_11rb$(o)}this.grammars_78ca78$_0=i}function Fr(t){Rr.call(this);var n,i=yt();for(n=t.iterator();n.hasNext();){var o=n.next();e.isType(o,Fr)?ee(i,o.grammars):i.add_11rb$(o)}this.grammars_nbkzju$_0=i}function Br(t,e){return Wr(new Ir(t),e)}function Wr(t,e){return new qr(O([t,e]))}function Hr(t,e){return Wr(t,new Ir(e))}function Vr(t,e){return new Fr(O([t,e]))}function Kr(t,e){return Vr(t,new Ir(e))}function Xr(t){return new Gr(t)}function Jr(t,e){return new Dr(t,e)}function Yr(){return new Pr("\\d")}function Qr(){return Vr(Vr(Yr(),Jr(65,70)),Jr(97,102))}function Zr(){return Xr(Yr())}function ts(t,e){this.expression_0=t,this.indexes_0=e}function es(t){var n=Et(),i=function t(n,i,o,r){var s;if(void 0===o&&(o=1),void 0===r&&(r=!1),e.isType(n,Ir))return new ns(xe.Companion.escape_61zpoe$(n.value));if(e.isType(n,Pr))return new ns(n.value);if(e.isType(n,Mr)){var a=t(n.grammar,i,o+1|0);return function(t,n,i){var o;if(!(e.isType(o=t,$t)?o:at()).containsKey_11rb$(n)){var r=yt();t.put_xwzc9p$(n,r)}Nt(t.get_11rb$(n)).add_11rb$(i)}(i,n.name,o),new ns(a.regex,a.groupsCount,!0)}if(e.isType(n,Ar)){var c,l,u=G(),h={v:r?o+1|0:o},d=0;for(c=n.grammars.iterator();c.hasNext();){var p=c.next(),_=Ie((d=(l=d)+1|0,l)),m=t(p,i,h.v,!0);0!==_&&e.isType(n,Fr)&&u.append_pdl1vj$("|"),u.append_pdl1vj$(m.regex),h.v=h.v+m.groupsCount|0}var f=r?h.v-o-1|0:h.v-o|0;return new ns(u.toString(),f,r)}if(e.isType(n,xr)){if(e.isType(n,kr))s=63;else if(e.isType(n,jr))s=42;else{if(!e.isType(n,Gr))throw Tt(("Unsupported simple grammar element: "+n).toString());s=43}var g=s,$=t(n.grammar,i,o,!0);return new ns($.regex+String.fromCharCode(g),$.groupsCount)}if(e.isType(n,Ur))return new ns("["+xe.Companion.escape_61zpoe$(n.value)+"]");if(e.isType(n,Dr))return new ns("["+String.fromCharCode(C(n.from))+"-"+String.fromCharCode(C(n.to))+"]");throw Tt(("Unsupported grammar element: "+n).toString())}(t,n).regex;return new ts(bt(i),n)}function ns(t,e,n){void 0===e&&(e=0),void 0===n&&(n=!1),this.regex=n?"("+t+")":t,this.groupsCount=n?e+1|0:e}function is(t){var e,n;return Ee.PlatformUtils.IS_BROWSER?("boolean"==typeof(e="undefined"!=typeof window)?e:at())?window.location.origin:"string"==typeof(n=self.location.origin)?n:at():"http://localhost"}Cr.$metadata$={kind:_,simpleName:"EntityTagVersion",interfaces:[gr]},Cr.prototype.component1=function(){return this.etag},Cr.prototype.component2=function(){return this.weak},Cr.prototype.copy_ivxn3r$=function(t,e){return new Cr(void 0===t?this.etag:t,void 0===e?this.weak:e)},Cr.prototype.toString=function(){return"EntityTagVersion(etag="+e.toString(this.etag)+", weak="+e.toString(this.weak)+")"},Cr.prototype.hashCode=function(){var t=0;return t=31*(t=31*t+e.hashCode(this.etag)|0)+e.hashCode(this.weak)|0},Cr.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.etag,t.etag)&&e.equals(this.weak,t.weak)},wr.$metadata$={kind:Q,simpleName:"Parser",interfaces:[]},Or.prototype.get_61zpoe$=function(t){var e;return null!=(e=this.mapping_0.get_11rb$(t))?Dt(e):null},Or.prototype.getAll_61zpoe$=function(t){var e;return null!=(e=this.mapping_0.get_11rb$(t))?e:X()},Or.prototype.contains_61zpoe$=function(t){var n,i=this.mapping_0;return(e.isType(n=i,$t)?n:at()).containsKey_11rb$(t)},Or.$metadata$={kind:_,simpleName:"ParseResult",interfaces:[]},Rr.$metadata$={kind:_,simpleName:"Grammar",interfaces:[]},Ar.$metadata$={kind:Q,simpleName:"ComplexGrammar",interfaces:[]},xr.$metadata$={kind:Q,simpleName:"SimpleGrammar",interfaces:[]},Ir.$metadata$={kind:_,simpleName:"StringGrammar",interfaces:[Rr]},Ur.$metadata$={kind:_,simpleName:"AnyOfGrammar",interfaces:[Rr]},Dr.$metadata$={kind:_,simpleName:"RangeGrammar",interfaces:[Rr]},Pr.$metadata$={kind:_,simpleName:"RawGrammar",interfaces:[Rr]},Mr.$metadata$={kind:_,simpleName:"NamedGrammar",interfaces:[Rr]},Object.defineProperty(kr.prototype,"grammar",{get:function(){return this.grammar_j1kz5k$_0}}),kr.$metadata$={kind:_,simpleName:"MaybeGrammar",interfaces:[xr,Rr]},Object.defineProperty(jr.prototype,"grammar",{get:function(){return this.grammar_misagz$_0}}),jr.$metadata$={kind:_,simpleName:"ManyGrammar",interfaces:[xr,Rr]},Object.defineProperty(Gr.prototype,"grammar",{get:function(){return this.grammar_8xmxwn$_0}}),Gr.$metadata$={kind:_,simpleName:"AtLeastOne",interfaces:[xr,Rr]},Object.defineProperty(qr.prototype,"grammars",{configurable:!0,get:function(){return this.grammars_78ca78$_0}}),qr.$metadata$={kind:_,simpleName:"SequenceGrammar",interfaces:[Ar,Rr]},Object.defineProperty(Fr.prototype,"grammars",{configurable:!0,get:function(){return this.grammars_nbkzju$_0}}),Fr.$metadata$={kind:_,simpleName:"OrGrammar",interfaces:[Ar,Rr]},ts.prototype.parse_61zpoe$=function(t){var e=this.expression_0.matchEntire_6bul2c$(t);if(null==e||e.value.length!==t.length)return null;var n,i=Et();for(n=this.indexes_0.entries.iterator();n.hasNext();){var o,r=n.next(),s=r.key;for(o=r.value.iterator();o.hasNext();){var a,c=o.next(),l=yt();if(null!=(a=e.groups.get_za3lpa$(c))){var u=a.value;l.add_11rb$(u)}l.isEmpty()||i.put_xwzc9p$(s,l)}}return new Or(i)},ts.prototype.match_61zpoe$=function(t){return this.expression_0.matches_6bul2c$(t)},ts.$metadata$={kind:_,simpleName:"RegexParser",interfaces:[wr]},ns.$metadata$={kind:_,simpleName:"GrammarRegex",interfaces:[]};var os=t.io||(t.io={}),rs=os.ktor||(os.ktor={}),ss=rs.http||(rs.http={});ss.etag_srqufk$=Pe,ss.encodeURLQueryComponent_x6vyl7$=Me,ss.encodeURLPathPart_pdl1vz$=ke,ss.encodeURLPath_pgzefr$=Ge,ss.encodeURLParameter_f4dhtg$=qe,ss.percentEncode_8bc624$=Fe,ss.encodeURLParameterValue_7efafi$=Be,ss.decodeURLQueryComponent_5bhe4q$=We,ss.decodeURLPart_99zovv$=He,ss.URLDecodeException=Xe,d["ktor-ktor-io-js-legacy"]=n,Object.defineProperty(tn,"Companion",{get:on}),Object.defineProperty(tn,"Parameters",{get:an}),ss.ContentDisposition=tn,ss.ContentTypeMatcher=cn,Object.defineProperty(ln,"Companion",{get:dn}),Object.defineProperty(ln,"Application",{get:function(){return null===_n&&new pn,_n}}),Object.defineProperty(ln,"Audio",{get:function(){return null===fn&&new mn,fn}}),Object.defineProperty(ln,"Image",{get:function(){return null===$n&&new gn,$n}}),Object.defineProperty(ln,"Message",{get:function(){return null===yn&&new En,yn}}),Object.defineProperty(ln,"MultiPart",{get:function(){return null===Sn&&new bn,Sn}}),Object.defineProperty(ln,"Text",{get:function(){return null===Cn&&new vn,Cn}}),Object.defineProperty(ln,"Video",{get:function(){return null===zn&&new Nn,zn}}),ss.ContentType_init_bo4f5s$=wn,ss.ContentType=ln,ss.BadContentTypeFormatException=On,ss.withCharset_73qf4i$=function(t,e){return t.withParameter_puj7f4$("charset",it(e))},ss.withCharsetIfNeeded_73qf4i$=function(t,e){var n=f(t.contentType.toLowerCase(),"application");return n&&(n=f(t.contentSubtype.toLowerCase(),"json")),n?t:t.withParameter_puj7f4$("charset",it(e))},ss.charset_10ldo9$=Rn,d["ktor-ktor-utils-js-legacy"]=i,ss.fromHttpToGmtDate_pdl1vz$=An,ss.toHttpDate_bcxie9$=xn,ss.groupByPairs_oo4ux4$=Dn,ss.toContentType_7efafi$=Pn,ss.parseHeaderValue_pdl1vj$=oi,Object.defineProperty(Mn,"Companion",{get:Gn}),ss.HeaderValueWithParameters=Mn,ss.quote_pdl1vz$=Fn,Object.defineProperty(Bn,"Companion",{get:Vn}),ss.Headers=Bn,ss.HeadersBuilder=Kn,Object.defineProperty(ss,"EmptyHeaders",{get:Yn}),ss.HeadersImpl=Qn,ss.HeaderValueParam_init_puj7f4$=ei,ss.HeaderValueParam=ti,ss.HeaderValue=ni,ss.parseAndSortHeader_pdl1vj$=function(t){return Jt(oi(t),new Zt(Zn(ii)))},ss.parseHeaderValue_4mavae$=si,Object.defineProperty(ss,"HttpHeaders",{get:fi}),ss.UnsafeHeaderException=gi,ss.IllegalHeaderNameException=$i,ss.IllegalHeaderValueException=Ei,ss.HttpMessage=bi,ss.HttpMessageBuilder=Si,ss.contentType_41kwpe$=function(t,e){t.headers.set_puj7f4$(fi().ContentType,e.toString())},ss.contentType_jzzg3d$=function(t){var e;return null!=(e=t.headers.get_61zpoe$(fi().ContentType))?dn().parse_61zpoe$(e):null},ss.contentType_v1wgmc$=vi,ss.charset_v1wgmc$=function(t){var e;return null!=(e=vi(t))?Rn(e):null},ss.contentLength_v1wgmc$=function(t){var e;return null!=(e=t.headers.get_61zpoe$(fi().ContentLength))?mt(e):null},Object.defineProperty(Ci,"Companion",{get:Li}),ss.HttpMethod=Ci,Object.defineProperty(zi,"Companion",{get:Ri}),ss.HttpProtocolVersion=zi,Object.defineProperty(Ai,"Companion",{get:Mi}),ss.HttpStatusCode=Ai,ss.allStatusCodes_8be2vx$=ki,ss.formUrlEncode_nyru4$=ji,ss.formUrlEncodeTo_oiqysc$=qi,ss.formUrlEncode_invt95$=function(t){var e,n=t.entries(),i=yt();for(e=n.iterator();e.hasNext();){var o,r=e.next(),s=r.value,a=g(H(s,10));for(o=s.iterator();o.hasNext();){var c=o.next();a.add_11rb$(ht(r.key,c))}ee(i,a)}return ji(i)},ss.loadMimes_8be2vx$=Bi,Object.defineProperty(ss,"mimes_8be2vx$",{get:Wi}),ss.ParametersBuilder_za3lpa$=Yi,Object.defineProperty(Hi,"Companion",{get:Xi}),ss.Parameters=Hi,ss.ParametersBuilder=Ji,ss.ParametersBuilderImpl=Qi,ss.ParametersImpl=Zi,Object.defineProperty(ss,"EmptyParameters",{get:no}),ss.parseQueryString_yib5kn$=io,Object.defineProperty(ao,"Companion",{get:ho}),ss.URLBuilder=ao,ss.get_encodedUserAndPassword_a0yvw4$=po,ss.get_authority_3q1sfd$=_o,ss.get_encodedPath_3q1sfd$=mo,ss.set_encodedPath_jl1sg7$=fo,ss.takeFrom_jl1sg7$=go,ss.URLParserException=$o,ss.takeFromUnsafe_9pkbii$=Eo,Object.defineProperty(So,"Companion",{get:No}),ss.URLProtocol=So,ss.isWebsocket_v5fpbg$=function(t){return f(t.name,"ws")||f(t.name,"wss")},ss.isSecure_v5fpbg$=function(t){return f(t.name,"https")||f(t.name,"wss")},ss.Url_61zpoe$=To,ss.URLBuilder_61zpoe$=Lo,ss.takeFrom_rs9g2p$=function(t,e){t.protocol=e.protocol,t.host=e.host,t.port=e.port,t.encodedPathSegments=e.encodedPathSegments,t.encodedUser=e.encodedUser,t.encodedPassword=e.encodedPassword;var n=Yi();return $e(n,e.encodedParameters),t.encodedParameters=n,t.encodedFragment=e.encodedFragment,t.trailingQuery=e.trailingQuery,t},ss.takeFrom_wol2ee$=function(t,e){t.protocol=e.protocol,t.host=e.host,t.port=e.port,fo(t,e.encodedPath),t.encodedUser=e.encodedUser,t.encodedPassword=e.encodedPassword;var n=Yi();return n.appendAll_hb0ubp$(io(e.encodedQuery,void 0,void 0,!1)),t.encodedParameters=n,t.encodedFragment=e.encodedFragment,t.trailingQuery=e.trailingQuery,t},ss.get_hostWithPort_5y8s0c$=zo,ss.appendUrlFullPath_jjjp4j$=Oo,ss.appendUserAndPassword_g1wfna$=Ro,Object.defineProperty(Ao,"Companion",{get:Do}),ss.Url=Ao,ss.get_authority_5y8s0c$=function(t){var e=G();return e.append_pdl1vj$(Po(t)),0===t.specifiedPort||t.specifiedPort===t.protocol.defaultPort?e.append_pdl1vj$(t.host):e.append_pdl1vj$(zo(t)),e.toString()},ss.get_encodedUserAndPassword_yq0j0v$=Po,ss.UrlDecodedParametersBuilder=Mo,ss.decodeParameters_7g7dkj$=ko,ss.encodeParameters_hdxgco$=jo;var as=ss.content||(ss.content={});as.ByteArrayContent=qo,as.CachingOptions=Fo,Object.defineProperty(as,"CachingProperty",{get:function(){return Io}}),as.get_caching_eu3mal$=function(t){return t.getProperty_yzaw86$(Io)},as.set_caching_sc47we$=function(t,e){t.setProperty_uuntuo$(Io,e)},as.ChannelWriterContent=Bo,Ho.FormItem=Vo,Ho.FileItem=Ko,Ho.BinaryItem=Xo,Ho.BinaryChannelItem=Jo,as.PartData=Ho,Object.defineProperty(Qo,"Empty",{get:function(){return null===tr&&new Zo,tr}}),as.MultiPartData=Qo,as.forEachPart_la3alz$=function(t,e,n,i){var o=new er(t,e,n);return i?o:o.doResume(null)},as.readAllParts_4xn7mu$=function(t,e,n){var i=new nr(t,e);return n?i:i.doResume(null)},Object.defineProperty(as,"NullBody",{get:function(){return null===cr&&new ir,cr}}),lr.NoContent=ur,lr.ReadChannelContent=hr,lr.WriteChannelContent=pr,lr.ByteArrayContent=_r,lr.ProtocolUpgrade=mr,as.OutgoingContent=lr,as.TextContent=fr,Object.defineProperty(as,"VersionListProperty",{get:function(){return or}}),as.get_versions_eu3mal$=function(t){var e;return null!=(e=t.getProperty_yzaw86$(or))?e:X()},as.set_versions_fbvemh$=function(t,e){t.setProperty_uuntuo$(or,e)},as.Version=gr,Object.defineProperty($r,"OK",{get:yr}),Object.defineProperty($r,"NOT_MODIFIED",{get:br}),Object.defineProperty($r,"PRECONDITION_FAILED",{get:Sr}),as.VersionCheckResult=$r,as.LastModifiedVersion=vr,as.EntityTagVersion_61zpoe$=function(t){return zr().parseSingle_61zpoe$(t)},Object.defineProperty(Cr,"Companion",{get:zr}),as.EntityTagVersion=Cr;var cs=ss.parsing||(ss.parsing={});cs.Parser=wr,cs.ParseResult=Or,cs.Grammar=Rr,cs.ComplexGrammar=Ar,cs.SimpleGrammar=xr,cs.StringGrammar=Ir,cs.AnyOfGrammar=Ur,cs.RangeGrammar=Dr,cs.RawGrammar=Pr,cs.NamedGrammar=Mr,cs.MaybeGrammar=kr,cs.ManyGrammar=jr,cs.AtLeastOne=Gr,cs.SequenceGrammar=qr,cs.OrGrammar=Fr,cs.then_um0xbp$=Br,cs.then_f2q84u$=Wr,cs.then_98g7gp$=Hr,cs.or_f2q84u$=Vr,cs.or_98g7gp$=Kr,cs.atLeastOne_aknn8a$=Xr,cs.to_ls4k3e$=Jr,Object.defineProperty(cs,"digit_8be2vx$",{get:Yr}),Object.defineProperty(cs,"hex_8be2vx$",{get:Qr}),Object.defineProperty(cs,"digits_8be2vx$",{get:Zr});var ls=cs.regex||(cs.regex={});ls.RegexParser=ts,ls.buildRegexParser_rd79pn$=es,(ss.websocket||(ss.websocket={})).websocketServerAccept_61zpoe$=function(t){var n,i,o=ct(e.isCharSequence(n=t)?n:at()).toString()+Tr,r=R.Charsets.ISO_8859_1;t:do{if(null!=r&&r.equals(R.Charsets.UTF_8)){i=we(o);break t}i=Oe(r.newEncoder(),o,0,o.length)}while(0);return De(Ue(i))},ss.get_origin_i4hgrd$=is,Bn.prototype.contains_61zpoe$=qt.prototype.contains_61zpoe$,Bn.prototype.contains_puj7f4$=qt.prototype.contains_puj7f4$,Bn.prototype.forEach_ubvtmq$=qt.prototype.forEach_ubvtmq$,Bn.prototype.get_61zpoe$=qt.prototype.get_61zpoe$,Xn.prototype.contains_61zpoe$=Bn.prototype.contains_61zpoe$,Xn.prototype.contains_puj7f4$=Bn.prototype.contains_puj7f4$,Xn.prototype.forEach_ubvtmq$=Bn.prototype.forEach_ubvtmq$,Xn.prototype.get_61zpoe$=Bn.prototype.get_61zpoe$,Hi.prototype.contains_61zpoe$=qt.prototype.contains_61zpoe$,Hi.prototype.contains_puj7f4$=qt.prototype.contains_puj7f4$,Hi.prototype.forEach_ubvtmq$=qt.prototype.forEach_ubvtmq$,Hi.prototype.get_61zpoe$=qt.prototype.get_61zpoe$,to.prototype.contains_61zpoe$=Hi.prototype.contains_61zpoe$,to.prototype.contains_puj7f4$=Hi.prototype.contains_puj7f4$,to.prototype.forEach_ubvtmq$=Hi.prototype.forEach_ubvtmq$,to.prototype.get_61zpoe$=Hi.prototype.get_61zpoe$;var us,hs=v(S(new b(97,122),new b(65,90)),new b(48,57)),ds=g(H(hs,10));for(us=hs.iterator();us.hasNext();){var ps=us.next();ds.add_11rb$(N(0|C(ps)))}r=T(ds),s=T(v(S(new b(97,122),new b(65,90)),new b(48,57))),a=T(v(S(new b(97,102),new b(65,70)),new b(48,57)));var _s,ms=z([L(58),L(47),L(63),L(35),L(91),L(93),L(64),L(33),L(36),L(38),L(39),L(40),L(41),L(42),L(44),L(59),L(61),L(45),L(46),L(95),L(126),L(43)]),fs=g(H(ms,10));for(_s=ms.iterator();_s.hasNext();){var gs=_s.next();fs.add_11rb$(N(0|C(gs)))}c=fs,l=z([L(58),L(64),L(33),L(36),L(38),L(39),L(40),L(41),L(42),L(43),L(44),L(59),L(61),L(45),L(46),L(95),L(126)]),u=w(s,z([L(33),L(35),L(36),L(38),L(43),L(45),L(46),L(94),L(95),L(96),L(124),L(126)]));var $s,Es=O([L(45),L(46),L(95),L(126)]),ys=g(H(Es,10));for($s=Es.iterator();$s.hasNext();){var bs=$s.next();ys.add_11rb$(N(0|C(bs)))}return h=ys,z(["max-age","expires","domain","path","secure","httponly","$x-enc"]),bt('(^|;)\\s*([^;=\\{\\}\\s]+)\\s*(=\\s*("[^"]*"|[^;]*))?'),z([L(59),L(44),L(34)]),Tn=O(["***, dd MMM YYYY hh:mm:ss zzz","****, dd-MMM-YYYY hh:mm:ss zzz","*** MMM d hh:mm:ss YYYY","***, dd-MMM-YYYY hh:mm:ss zzz","***, dd-MMM-YYYY hh-mm-ss zzz","***, dd MMM YYYY hh:mm:ss zzz","*** dd-MMM-YYYY hh:mm:ss zzz","*** dd MMM YYYY hh:mm:ss zzz","*** dd-MMM-YYYY hh-mm-ss zzz","***,dd-MMM-YYYY hh:mm:ss zzz","*** MMM d YYYY hh:mm:ss zzz"]),Ut((function(){var t=xt();return t.putAll_a2k3zr$(Dn(It(Wi()))),t})),Ut((function(){return Dn(dt(It(Wi()),Un))})),Ln=z([L(40),L(41),L(60),L(62),L(64),L(44),L(59),L(58),L(92),L(34),L(47),L(91),L(93),L(63),L(61),L(123),L(125),L(32),L(9),L(10),L(13)]),Ii=Wr(Hr(Wr(Hr(Wr(Hr(Zr(),"."),Zr()),"."),Zr()),"."),Zr()),Ui=Hr(Br("[",Xr(Kr(Qr(),":"))),"]"),es(Vr(Ii,Ui)),Di=Ut((function(){return Bi()})),lo=Wt(""),z([L(33),L(35),L(36),L(37),L(38),L(39),L(42),L(43),L(45),L(46),L(94),L(95),L(96),L(124),L(126)]),z([L(45),L(46),L(95),L(126),L(43),L(47)]),bt("[a-zA-Z0-9\\-._~+/]+=*"),bt("\\\\."),Io=new ye("Caching"),or=new ye("VersionList"),Tr="258EAFA5-E914-47DA-95CA-C5AB0DC85B11",t})?i.apply(e,o):i)||(t.exports=r)},function(module,exports,__webpack_require__){(function(process){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,factory;factory=function(_,Kotlin,$module$ktor_ktor_io_js_legacy,$module$kotlinx_coroutines_core,$module$kotlinx_atomicfu){"use strict";var $$importsForInline$$=_.$$importsForInline$$||(_.$$importsForInline$$={}),Kind_CLASS=Kotlin.Kind.CLASS,Annotation=Kotlin.kotlin.Annotation,throwCCE=Kotlin.throwCCE,equals=Kotlin.equals,hashCode=Kotlin.hashCode,IllegalStateException_init=Kotlin.kotlin.IllegalStateException_init_pdl1vj$,Kind_INTERFACE=Kotlin.Kind.INTERFACE,toChar=Kotlin.toChar,indexOf=Kotlin.kotlin.text.indexOf_8eortd$,writeText=$module$ktor_ktor_io_js_legacy.io.ktor.utils.io.core.writeText_t153jy$,concatToString=Kotlin.kotlin.text.concatToString_wlitf7$,readBytes=$module$ktor_ktor_io_js_legacy.io.ktor.utils.io.core.readBytes_xc9h3n$,charsets=$module$ktor_ktor_io_js_legacy.io.ktor.utils.io.charsets,String_0=$module$ktor_ktor_io_js_legacy.io.ktor.utils.io.core.String_xge8xe$,unboxChar=Kotlin.unboxChar,toByte=Kotlin.toByte,defineInlineFunction=Kotlin.defineInlineFunction,wrapFunction=Kotlin.wrapFunction,BytePacketBuilder_init=$module$ktor_ktor_io_js_legacy.io.ktor.utils.io.core.BytePacketBuilder,Throwable=Error,get_lastIndex=Kotlin.kotlin.text.get_lastIndex_gw00vp$,toBoxedChar=Kotlin.toBoxedChar,L4096=Kotlin.Long.fromInt(4096),ByteChannel=$module$ktor_ktor_io_js_legacy.io.ktor.utils.io.ByteChannel_6taknv$,Unit=Kotlin.kotlin.Unit,COROUTINE_SUSPENDED=Kotlin.kotlin.coroutines.intrinsics.COROUTINE_SUSPENDED,CoroutineImpl=Kotlin.kotlin.coroutines.CoroutineImpl,async=$module$kotlinx_coroutines_core.kotlinx.coroutines.async_pda6u4$,listOf=Kotlin.kotlin.collections.listOf_i5x0yv$,close=$module$ktor_ktor_io_js_legacy.io.ktor.utils.io.close_x5qia6$,launch=$module$kotlinx_coroutines_core.kotlinx.coroutines.launch_s496o7$,to=Kotlin.kotlin.to_ujzrz7$,coroutines=$module$kotlinx_coroutines_core.kotlinx.coroutines,ByteChannel_0=$module$ktor_ktor_io_js_legacy.io.ktor.utils.io.ByteChannel,addSuppressedInternal=$module$ktor_ktor_io_js_legacy.io.ktor.utils.io.core.addSuppressedInternal_oh0dqn$,toShort=Kotlin.toShort,MutableMap=Kotlin.kotlin.collections.MutableMap,ensureNotNull=Kotlin.ensureNotNull,Map$Entry=Kotlin.kotlin.collections.Map.Entry,MutableMap$MutableEntry=Kotlin.kotlin.collections.MutableMap.MutableEntry,LinkedHashMap_init=Kotlin.kotlin.collections.LinkedHashMap_init_q3lmfv$,MutableSet=Kotlin.kotlin.collections.MutableSet,addAll=Kotlin.kotlin.collections.addAll_ipc267$,Map=Kotlin.kotlin.collections.Map,charArray=Kotlin.charArray,repeat=Kotlin.kotlin.text.repeat_94bcnn$,toString=Kotlin.toString,println=Kotlin.kotlin.io.println_s8jyv4$,println_0=Kotlin.kotlin.io.println,SupervisorJob=$module$kotlinx_coroutines_core.kotlinx.coroutines.SupervisorJob_5dx9e$,AbstractCoroutineContextElement=Kotlin.kotlin.coroutines.AbstractCoroutineContextElement,CoroutineExceptionHandler=$module$kotlinx_coroutines_core.kotlinx.coroutines.CoroutineExceptionHandler,concatToString_0=Kotlin.kotlin.text.concatToString_355ntz$,toInt=Kotlin.kotlin.text.toInt_6ic1pp$,encodeToByteArray=Kotlin.kotlin.text.encodeToByteArray_pdl1vz$,encodeToByteArray_0=$module$ktor_ktor_io_js_legacy.io.ktor.utils.io.charsets.encodeToByteArray_fj4osb$,MutableIterator=Kotlin.kotlin.collections.MutableIterator,Set=Kotlin.kotlin.collections.Set,collectionSizeOrDefault=Kotlin.kotlin.collections.collectionSizeOrDefault_ba2ldo$,ArrayList_init=Kotlin.kotlin.collections.ArrayList_init_ww73n8$,Kind_OBJECT=Kotlin.Kind.OBJECT,toList=Kotlin.kotlin.collections.toList_us0mfu$,fill=Kotlin.kotlin.collections.fill_6mk3ue$,L0=Kotlin.Long.ZERO,fill_0=Kotlin.kotlin.collections.fill_tpuxuu$,arrayCopy=Kotlin.kotlin.collections.arrayCopy,UnsupportedOperationException_init=Kotlin.kotlin.UnsupportedOperationException_init_pdl1vj$,firstOrNull=Kotlin.kotlin.collections.firstOrNull_2p1efm$,equals_0=Kotlin.kotlin.text.equals_igcy3c$,setOf=Kotlin.kotlin.collections.setOf_mh5how$,emptyMap=Kotlin.kotlin.collections.emptyMap_q3lmfv$,toSet=Kotlin.kotlin.collections.toSet_7wnvza$,emptySet=Kotlin.kotlin.collections.emptySet_287e2$,LinkedHashMap_init_0=Kotlin.kotlin.collections.LinkedHashMap_init_bwtc7$,asList=Kotlin.kotlin.collections.asList_us0mfu$,toMap=Kotlin.kotlin.collections.toMap_6hr0sd$,listOf_0=Kotlin.kotlin.collections.listOf_mh5how$,single=Kotlin.kotlin.collections.single_7wnvza$,toList_0=Kotlin.kotlin.collections.toList_7wnvza$,ArrayList_init_0=Kotlin.kotlin.collections.ArrayList_init_287e2$,CharRange=Kotlin.kotlin.ranges.CharRange,StringBuilder_init=Kotlin.kotlin.text.StringBuilder_init_za3lpa$,get_indices=Kotlin.kotlin.text.get_indices_gw00vp$,IOException=$module$ktor_ktor_io_js_legacy.io.ktor.utils.io.errors.IOException,mutableListOf=Kotlin.kotlin.collections.mutableListOf_i5x0yv$,Collection=Kotlin.kotlin.collections.Collection,LinkedHashSet_init=Kotlin.kotlin.collections.LinkedHashSet_init_287e2$,HashMap_init=Kotlin.kotlin.collections.HashMap_init_73mtqc$,atomic=$module$kotlinx_atomicfu.kotlinx.atomicfu.atomic$ref$1,emptyList=Kotlin.kotlin.collections.emptyList_287e2$,Iterable=Kotlin.kotlin.collections.Iterable,PrimitiveClasses$intClass=Kotlin.kotlin.reflect.js.internal.PrimitiveClasses.intClass,PrimitiveClasses$floatClass=Kotlin.kotlin.reflect.js.internal.PrimitiveClasses.floatClass,PrimitiveClasses$doubleClass=Kotlin.kotlin.reflect.js.internal.PrimitiveClasses.doubleClass,getKClass=Kotlin.getKClass,Long=Kotlin.Long,PrimitiveClasses$shortClass=Kotlin.kotlin.reflect.js.internal.PrimitiveClasses.shortClass,Char=Kotlin.BoxedChar,PrimitiveClasses$booleanClass=Kotlin.kotlin.reflect.js.internal.PrimitiveClasses.booleanClass,PrimitiveClasses$stringClass=Kotlin.kotlin.reflect.js.internal.PrimitiveClasses.stringClass,List=Kotlin.kotlin.collections.List,MutableList=Kotlin.kotlin.collections.MutableList,single_0=Kotlin.kotlin.collections.single_2p1efm$,KClass=Kotlin.kotlin.reflect.KClass,toInt_0=Kotlin.kotlin.text.toInt_pdl1vz$,toDouble=Kotlin.kotlin.text.toDouble_pdl1vz$,toLong=Kotlin.kotlin.text.toLong_pdl1vz$,toShort_0=Kotlin.kotlin.text.toShort_pdl1vz$,single_1=Kotlin.kotlin.text.single_gw00vp$,toBoolean=Kotlin.kotlin.text.toBoolean_5cw0du$,Exception_init=Kotlin.kotlin.Exception_init_pdl1vj$,Exception=Kotlin.kotlin.Exception,toMap_0=Kotlin.kotlin.collections.toMap_abgq59$,Enum=Kotlin.kotlin.Enum,throwISE=Kotlin.throwISE,Comparable=Kotlin.kotlin.Comparable,throwUPAE=Kotlin.throwUPAE,IllegalStateException=Kotlin.kotlin.IllegalStateException,iterator=Kotlin.kotlin.text.iterator_gw00vp$,withContext=$module$kotlinx_coroutines_core.kotlinx.coroutines.withContext_i5cbzn$,CoroutineContext$Key=Kotlin.kotlin.coroutines.CoroutineContext.Key,joinToString=Kotlin.kotlin.collections.joinToString_fmv235$,Any=Object,UnsupportedOperationException_init_0=Kotlin.kotlin.UnsupportedOperationException_init,SuspendFunction2=Function,ArrayList=Kotlin.kotlin.collections.ArrayList,get_lastIndex_0=Kotlin.kotlin.collections.get_lastIndex_55thoc$,toMutableList=Kotlin.kotlin.collections.toMutableList_4c7yge$,last=Kotlin.kotlin.collections.last_2p1efm$,CoroutineScope=$module$kotlinx_coroutines_core.kotlinx.coroutines.CoroutineScope,recoverStackTrace=$module$kotlinx_coroutines_core.kotlinx.coroutines.internal.recoverStackTrace_ak2v6d$,getCallableRef=Kotlin.getCallableRef,coroutines_0=Kotlin.kotlin.coroutines,Continuation=Kotlin.kotlin.coroutines.Continuation,Result=Kotlin.kotlin.Result,createFailure=Kotlin.kotlin.createFailure_tcv7n7$,lazy=Kotlin.kotlin.lazy_klfg04$,isNaN_0=Kotlin.kotlin.isNaN_yrwdxr$,IllegalArgumentException_init=Kotlin.kotlin.IllegalArgumentException_init,IllegalArgumentException=Kotlin.kotlin.IllegalArgumentException,BASE64_ALPHABET,BASE64_MASK,BASE64_MASK_INT,BASE64_PAD,BASE64_INVERSE_ALPHABET,CHUNK_BUFFER_SIZE,digits,NONCE_SIZE_IN_BYTES;function AttributeKey(t){if(this.name=t,0===this.name.length)throw IllegalStateException_init("Name can't be blank")}function Attributes(){}function putAll(t,e){var n;for(n=e.allKeys.iterator();n.hasNext();){var i,o=n.next();t.put_uuntuo$(Kotlin.isType(i=o,AttributeKey)?i:throwCCE(),e.get_yzaw86$(o))}}function encodeBase64_0(t){for(var e,n,i=t,o=0,r={v:0},s=Kotlin.charArray(3+((8*t.length|0)/6|0)|0);(o+3|0)<=i.length;){var a=i[o],c=i[o+1|0],l=i[o+2|0];o=o+3|0;for(var u=(255&a)<<16|(255&c)<<8|255&l,h=3;h>=0;h--){var d=u>>(6*h|0)&63;s[(e=r.v,r.v=e+1|0,e)]=BASE64_ALPHABET.charCodeAt(d)}}var p=i.length-o|0;if(0===p)return concatToString(s,0,r.v);for(var _=1===p?0|(255&i[o])<<16:(255&i[o])<<16|(255&i[o+1|0])<<8|0,m=(8*(3-p|0)|0)/6|0,f=3;f>=m;f--){var g=_>>(6*f|0)&63;s[(n=r.v,r.v=n+1|0,n)]=BASE64_ALPHABET.charCodeAt(g)}for(var $=0;$>4],i[(n=o,o=n+1|0,n)]=r[15&a]}return concatToString_0(i)}function generateNonce(t){var e,n=new BytePacketBuilder_init;try{for(;n.size>>32-e}function Sha1(){this.messageLength_0=L0,this.unprocessed_0=new Int8Array(64),this.unprocessedLimit_0=0,this.words_0=new Int32Array(80),this.h0_0=1732584193,this.h1_0=-271733879,this.h2_0=-1732584194,this.h3_0=271733878,this.h4_0=-1009589776}HashFunction.prototype.update_mj6st8$=function(t,e,n,i){void 0===e&&(e=0),void 0===n&&(n=t.length),i?i(t,e,n):this.update_mj6st8$$default(t,e,n)},HashFunction.$metadata$={kind:Kind_INTERFACE,simpleName:"HashFunction",interfaces:[]},Sha1.prototype.update_mj6st8$$default=function(t,e,n){this.messageLength_0=this.messageLength_0.add(Kotlin.Long.fromInt(n));var i=e,o=i+n|0,r=this.unprocessed_0,s=this.unprocessedLimit_0;if(s>0){if((s+n|0)<64)return arrayCopy(t,r,s,i,o),void(this.unprocessedLimit_0=s+n|0);var a=64-s|0;arrayCopy(t,r,s,i,i+a|0),this.processChunk_0(r,0),this.unprocessedLimit_0=0,i=i+a|0}for(;io)return arrayCopy(t,r,0,i,o),void(this.unprocessedLimit_0=o-i|0);this.processChunk_0(t,i),i=c}},Sha1.prototype.processChunk_0=function(t,e){for(var n,i,o,r,s,a=this.words_0,c=e,l=0;l<16;l++)a[l]=(255&t[(n=c,c=n+1|0,n)])<<24|(255&t[(i=c,c=i+1|0,i)])<<16|(255&t[(o=c,c=o+1|0,o)])<<8|255&t[(r=c,c=r+1|0,r)];for(var u=16;u<80;u++)a[u]=leftRotate(a[u-3|0]^a[u-8|0]^a[u-14|0]^a[u-16|0],1);for(var h=this.h0_0,d=this.h1_0,p=this.h2_0,_=this.h3_0,m=this.h4_0,f=0;f<80;f++){if(f<20){var g=_^d&(p^_);s=leftRotate(h,5)+g+m+1518500249+a[f]|0}else if(f<40){var $=d^p^_;s=leftRotate(h,5)+$+m+1859775393+a[f]|0}else if(f<60){var E=d&p|d&_|p&_;s=leftRotate(h,5)+E+m+-1894007588+a[f]|0}else{var y=d^p^_;s=leftRotate(h,5)+y+m+-899497514+a[f]|0}var b=s;m=_,_=p,p=leftRotate(d,30),d=h,h=b}this.h0_0=this.h0_0+h|0,this.h1_0=this.h1_0+d|0,this.h2_0=this.h2_0+p|0,this.h3_0=this.h3_0+_|0,this.h4_0=this.h4_0+m|0},Sha1.prototype.digest=function(){var t,e=this.unprocessed_0,n=this.unprocessedLimit_0,i=this.messageLength_0.multiply(Kotlin.Long.fromInt(8));e[(t=n,n=t+1|0,t)]=toByte(128),n>56?(fill(e,0,n,64),this.processChunk_0(e,0),fill(e,0,0,n)):fill(e,0,n,56),e[56]=toByte(i.shiftRightUnsigned(56).toInt()),e[57]=toByte(i.shiftRightUnsigned(48).toInt()),e[58]=toByte(i.shiftRightUnsigned(40).toInt()),e[59]=toByte(i.shiftRightUnsigned(32).toInt()),e[60]=toByte(i.shiftRightUnsigned(24).toInt()),e[61]=toByte(i.shiftRightUnsigned(16).toInt()),e[62]=toByte(i.shiftRightUnsigned(8).toInt()),e[63]=toByte(i.toInt()),this.processChunk_0(e,0);var o=this.h0_0,r=this.h1_0,s=this.h2_0,a=this.h3_0,c=this.h4_0;return this.reset_0(),new Int8Array([toByte(o>>24),toByte(o>>16),toByte(o>>8),toByte(o),toByte(r>>24),toByte(r>>16),toByte(r>>8),toByte(r),toByte(s>>24),toByte(s>>16),toByte(s>>8),toByte(s),toByte(a>>24),toByte(a>>16),toByte(a>>8),toByte(a),toByte(c>>24),toByte(c>>16),toByte(c>>8),toByte(c)])},Sha1.prototype.reset_0=function(){this.messageLength_0=L0,fill(this.unprocessed_0,0),this.unprocessedLimit_0=0,fill_0(this.words_0,0),this.h0_0=1732584193,this.h1_0=-271733879,this.h2_0=-1732584194,this.h3_0=271733878,this.h4_0=-1009589776},Sha1.$metadata$={kind:Kind_CLASS,simpleName:"Sha1",interfaces:[HashFunction]};var GenerateOnlyNonceManager_instance=null,AlwaysFailNonceManager_instance=null;function StringValues(){StringValues$Companion_getInstance()}function StringValues$Companion(){StringValues$Companion_instance=this,this.Empty=new StringValuesImpl}StringValues$Companion.prototype.build_o7hlrk$=defineInlineFunction("ktor-ktor-utils-js-legacy.io.ktor.util.StringValues.Companion.build_o7hlrk$",wrapFunction((function(){var t=_.io.ktor.util.StringValuesBuilderImpl;return function(e,n){void 0===e&&(e=!1);var i=new t(e);return n(i),i.build()}}))),StringValues$Companion.$metadata$={kind:Kind_OBJECT,simpleName:"Companion",interfaces:[]};var StringValues$Companion_instance=null,INITIAL_CAPACITY;function StringValues$Companion_getInstance(){return null===StringValues$Companion_instance&&new StringValues$Companion,StringValues$Companion_instance}function StringValuesBuilder(){}function StringValuesImpl(t,e){void 0===t&&(t=!1),void 0===e&&(e=emptyMap()),this.caseInsensitiveName_w2tiaf$_0=t,this.values=null;var n,i=this.caseInsensitiveName?caseInsensitiveMap():LinkedHashMap_init();for(n=e.entries.iterator();n.hasNext();){for(var o=n.next(),r=o.key,s=o.value,a=s.size,c=ArrayList_init(a),l=0;l0))throw IllegalStateException_init("Date parser pattern shouldn't be empty.".toString())}function GMTDateParser$Companion(){GMTDateParser$Companion_instance=this,this.SECONDS=toBoxedChar(115),this.MINUTES=toBoxedChar(109),this.HOURS=toBoxedChar(104),this.DAY_OF_MONTH=toBoxedChar(100),this.MONTH=toBoxedChar(77),this.YEAR=toBoxedChar(89),this.ZONE=toBoxedChar(122),this.ANY=toBoxedChar(42)}GMTDate.$metadata$={kind:Kind_CLASS,simpleName:"GMTDate",interfaces:[Comparable]},GMTDate.prototype.component1=function(){return this.seconds},GMTDate.prototype.component2=function(){return this.minutes},GMTDate.prototype.component3=function(){return this.hours},GMTDate.prototype.component4=function(){return this.dayOfWeek},GMTDate.prototype.component5=function(){return this.dayOfMonth},GMTDate.prototype.component6=function(){return this.dayOfYear},GMTDate.prototype.component7=function(){return this.month},GMTDate.prototype.component8=function(){return this.year},GMTDate.prototype.component9=function(){return this.timestamp},GMTDate.prototype.copy_j9f46j$=function(t,e,n,i,o,r,s,a,c){return new GMTDate(void 0===t?this.seconds:t,void 0===e?this.minutes:e,void 0===n?this.hours:n,void 0===i?this.dayOfWeek:i,void 0===o?this.dayOfMonth:o,void 0===r?this.dayOfYear:r,void 0===s?this.month:s,void 0===a?this.year:a,void 0===c?this.timestamp:c)},GMTDate.prototype.toString=function(){return"GMTDate(seconds="+Kotlin.toString(this.seconds)+", minutes="+Kotlin.toString(this.minutes)+", hours="+Kotlin.toString(this.hours)+", dayOfWeek="+Kotlin.toString(this.dayOfWeek)+", dayOfMonth="+Kotlin.toString(this.dayOfMonth)+", dayOfYear="+Kotlin.toString(this.dayOfYear)+", month="+Kotlin.toString(this.month)+", year="+Kotlin.toString(this.year)+", timestamp="+Kotlin.toString(this.timestamp)+")"},GMTDate.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*(t=31*(t=31*(t=31*(t=31*(t=31*(t=31*t+Kotlin.hashCode(this.seconds)|0)+Kotlin.hashCode(this.minutes)|0)+Kotlin.hashCode(this.hours)|0)+Kotlin.hashCode(this.dayOfWeek)|0)+Kotlin.hashCode(this.dayOfMonth)|0)+Kotlin.hashCode(this.dayOfYear)|0)+Kotlin.hashCode(this.month)|0)+Kotlin.hashCode(this.year)|0)+Kotlin.hashCode(this.timestamp)|0},GMTDate.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&Kotlin.equals(this.seconds,t.seconds)&&Kotlin.equals(this.minutes,t.minutes)&&Kotlin.equals(this.hours,t.hours)&&Kotlin.equals(this.dayOfWeek,t.dayOfWeek)&&Kotlin.equals(this.dayOfMonth,t.dayOfMonth)&&Kotlin.equals(this.dayOfYear,t.dayOfYear)&&Kotlin.equals(this.month,t.month)&&Kotlin.equals(this.year,t.year)&&Kotlin.equals(this.timestamp,t.timestamp)},GMTDateParser.prototype.parse_61zpoe$=function(t){var e=new GMTDateBuilder,n=0,i=this.pattern_0.charCodeAt(n),o=0,r=1;try{for(;r=this.interceptors_0.size?(this.finish(),this.subject):this.proceedLoop_0(t)},DebugPipelineContext.prototype.execute_trkh7z$=function(t,e){return this.index_0=0,this.subject=t,this.proceed(e)},Coroutine$proceedLoop_0.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$proceedLoop_0.prototype=Object.create(CoroutineImpl.prototype),Coroutine$proceedLoop_0.prototype.constructor=Coroutine$proceedLoop_0,Coroutine$proceedLoop_0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(this.local$index=this.$this.index_0,-1===this.local$index){this.state_0=6;continue}this.state_0=3;continue;case 3:if(this.local$interceptors=this.$this.interceptors_0,this.local$index>=this.local$interceptors.size){this.$this.finish(),this.state_0=6;continue}this.state_0=4;continue;case 4:var e=this.local$interceptors.get_za3lpa$(this.local$index);if(this.$this.index_0=this.local$index+1|0,this.state_0=5,this.result_0=(Kotlin.isType(t=e,SuspendFunction2)?t:throwCCE())(this.$this,this.$this.subject,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 5:this.state_0=2;continue;case 6:return this.$this.subject;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},DebugPipelineContext.prototype.proceedLoop_0=function(t,e){var n=new Coroutine$proceedLoop_0(this,t);return e?n:n.doResume(null)},DebugPipelineContext.$metadata$={kind:Kind_CLASS,simpleName:"DebugPipelineContext",interfaces:[PipelineContext]},Object.defineProperty(PhaseContent.prototype,"isEmpty",{configurable:!0,get:function(){return this.interceptors_0.isEmpty()}}),Object.defineProperty(PhaseContent.prototype,"size",{configurable:!0,get:function(){return this.interceptors_0.size}}),PhaseContent.prototype.addInterceptor_g7ktxf$=function(t){this.shared&&this.copyInterceptors_0(),this.interceptors_0.add_11rb$(t)},PhaseContent.prototype.addTo_nenlhb$=function(t){var e,n=this.interceptors_0;Kotlin.isType(t,ArrayList)&&t.ensureCapacity_za3lpa$(t.size+n.size|0),e=n.size;for(var i=0;i=0)throw IllegalStateException_init("Already started");return this.proceed(e)},SuspendFunctionGun.prototype.loop_0=function(t){for(;;){var e=this.index_0;if(e===this.blocks_0.size)return!!t||(this.resumeRootWith_0(new Result(this.subject)),!1);this.index_0=e+1|0;var n=this.blocks_0.get_za3lpa$(e);try{if(n(this,this.subject,this.continuation_0)===COROUTINE_SUSPENDED)return!1}catch(t){if(Kotlin.isType(t,Throwable))return this.resumeRootWith_0(new Result(createFailure(t))),!1;throw t}}},SuspendFunctionGun.prototype.resumeRootWith_0=function(t){var e;if(this.lastSuspensionIndex_0<0)throw IllegalStateException_init("No more continuations to resume".toString());var n=ensureNotNull(this.suspensions_0[this.lastSuspensionIndex_0]);if(this.suspensions_0[(e=this.lastSuspensionIndex_0,this.lastSuspensionIndex_0=e-1|0,e)]=null,t.isFailure){var i=recoverStackTraceBridge(ensureNotNull(t.exceptionOrNull()),n);n.resumeWith_tl1gpc$(new Result(createFailure(i)))}else n.resumeWith_tl1gpc$(t)},SuspendFunctionGun.prototype.discardLastRootContinuation_0=function(){var t;if(this.lastSuspensionIndex_0<0)throw IllegalStateException_init("No more continuations to resume");this.suspensions_0[(t=this.lastSuspensionIndex_0,this.lastSuspensionIndex_0=t-1|0,t)]=null},SuspendFunctionGun.prototype.addContinuation_0=function(t){this.suspensions_0[(this.lastSuspensionIndex_0=this.lastSuspensionIndex_0+1|0,this.lastSuspensionIndex_0)]=t},Object.defineProperty(SuspendFunctionGun$continuation$ObjectLiteral.prototype,"callerFrame",{configurable:!0,get:function(){var t;return Kotlin.isType(t=this.peekContinuation_0(),CoroutineStackFrame)?t:null}}),SuspendFunctionGun$continuation$ObjectLiteral.prototype.getStackTraceElement=function(){return null},SuspendFunctionGun$continuation$ObjectLiteral.prototype.peekContinuation_0=function(){var t;if(-2147483648===this.currentIndex&&(this.currentIndex=this.this$SuspendFunctionGun.lastSuspensionIndex_0),this.currentIndex<0)return this.currentIndex=-2147483648,null;try{if(null==(t=this.this$SuspendFunctionGun.suspensions_0[this.currentIndex]))return StackWalkingFailedFrame_getInstance();var e=t;return this.currentIndex=this.currentIndex-1|0,e}catch(t){if(Kotlin.isType(t,Throwable))return StackWalkingFailedFrame_getInstance();throw t}},Object.defineProperty(SuspendFunctionGun$continuation$ObjectLiteral.prototype,"context",{configurable:!0,get:function(){var t,e;if(null==(e=null!=(t=this.this$SuspendFunctionGun.suspensions_0[this.this$SuspendFunctionGun.lastSuspensionIndex_0])?t.context:null))throw IllegalStateException_init("Not started".toString());return e}}),SuspendFunctionGun$continuation$ObjectLiteral.prototype.resumeWith_tl1gpc$=function(t){t.isFailure?this.this$SuspendFunctionGun.resumeRootWith_0(new Result(createFailure(ensureNotNull(t.exceptionOrNull())))):this.this$SuspendFunctionGun.loop_0(!1)},SuspendFunctionGun$continuation$ObjectLiteral.$metadata$={kind:Kind_CLASS,interfaces:[CoroutineStackFrame,Continuation]},SuspendFunctionGun.$metadata$={kind:Kind_CLASS,simpleName:"SuspendFunctionGun",interfaces:[PipelineContext]},TypeInfo.$metadata$={kind:Kind_CLASS,simpleName:"TypeInfo",interfaces:[]},TypeInfo.prototype.component1=function(){return this.type},TypeInfo.prototype.component2=function(){return this.reifiedType},TypeInfo.prototype.component3=function(){return this.kotlinType},TypeInfo.prototype.copy_yupgpq$=function(t,e,n){return new TypeInfo(void 0===t?this.type:t,void 0===e?this.reifiedType:e,void 0===n?this.kotlinType:n)},TypeInfo.prototype.toString=function(){return"TypeInfo(type="+Kotlin.toString(this.type)+", reifiedType="+Kotlin.toString(this.reifiedType)+", kotlinType="+Kotlin.toString(this.kotlinType)+")"},TypeInfo.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*t+Kotlin.hashCode(this.type)|0)+Kotlin.hashCode(this.reifiedType)|0)+Kotlin.hashCode(this.kotlinType)|0},TypeInfo.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&Kotlin.equals(this.type,t.type)&&Kotlin.equals(this.reifiedType,t.reifiedType)&&Kotlin.equals(this.kotlinType,t.kotlinType)},AttributesJs.prototype.getOrNull_yzaw86$=function(t){var e;return null==(e=this.map_0.get_11rb$(t))||Kotlin.isType(e,Any)?e:throwCCE()},AttributesJs.prototype.contains_w48dwb$=function(t){return this.map_0.containsKey_11rb$(t)},AttributesJs.prototype.put_uuntuo$=function(t,e){this.map_0.put_xwzc9p$(t,e)},AttributesJs.prototype.remove_yzaw86$=function(t){this.map_0.remove_11rb$(t)},AttributesJs.prototype.computeIfAbsent_u4q9l2$=function(t,e){var n,i;if(null!=(n=this.map_0.get_11rb$(t)))return Kotlin.isType(i=n,Any)?i:throwCCE();var o=e();return this.map_0.put_xwzc9p$(t,o),o},Object.defineProperty(AttributesJs.prototype,"allKeys",{configurable:!0,get:function(){return toList_0(this.map_0.keys)}}),AttributesJs.$metadata$={kind:Kind_CLASS,simpleName:"AttributesJs",interfaces:[Attributes]},PlatformUtils.$metadata$={kind:Kind_OBJECT,simpleName:"PlatformUtils",interfaces:[]};var PlatformUtils_instance=null;function PlatformUtils_getInstance(){return null===PlatformUtils_instance&&new PlatformUtils,PlatformUtils_instance}function CoroutineStackFrame(){}function createStackTraceElement(t,e,n,i){return new Any}function GMTDate_0(t){var e,n;void 0===t&&(t=null);var i=null!=(n=null!=(e=null!=t?t.toNumber():null)?new Date(e):null)?n:new Date;if(isNaN_0(i.getTime()))throw new InvalidTimestampException(ensureNotNull(t));var o=WeekDay$Companion_getInstance().from_za3lpa$((i.getUTCDay()+6|0)%7),r=Month$Companion_getInstance().from_za3lpa$(i.getUTCMonth());return new GMTDate(i.getUTCSeconds(),i.getUTCMinutes(),i.getUTCHours(),o,i.getUTCDate(),i.getUTCFullYear(),r,i.getUTCFullYear(),Kotlin.Long.fromNumber(i.getTime()))}function GMTDate_1(t,e,n,i,o,r){return GMTDate_0(Kotlin.Long.fromNumber(Date.UTC(r,o.ordinal,i,n,e,t)))}function InvalidTimestampException(t){IllegalStateException_init("Invalid date timestamp exception: "+t.toString(),this),this.name="InvalidTimestampException"}function getTimeMillis(){return Kotlin.Long.fromNumber((new Date).getTime())}function IntellijIdeaDebugDetector(){IntellijIdeaDebugDetector_instance=this,this.isDebuggerConnected=!1}CoroutineStackFrame.$metadata$={kind:Kind_INTERFACE,simpleName:"CoroutineStackFrame",interfaces:[]},InvalidTimestampException.$metadata$={kind:Kind_CLASS,simpleName:"InvalidTimestampException",interfaces:[IllegalStateException]},IntellijIdeaDebugDetector.$metadata$={kind:Kind_OBJECT,simpleName:"IntellijIdeaDebugDetector",interfaces:[]};var IntellijIdeaDebugDetector_instance=null;function IntellijIdeaDebugDetector_getInstance(){return null===IntellijIdeaDebugDetector_instance&&new IntellijIdeaDebugDetector,IntellijIdeaDebugDetector_instance}function initCauseBridge(t,e){}function withCause(t,e){return t}function Type(){}function JsType(){JsType_instance=this}Type.$metadata$={kind:Kind_INTERFACE,simpleName:"Type",interfaces:[]},JsType.$metadata$={kind:Kind_OBJECT,simpleName:"JsType",interfaces:[Type]};var JsType_instance=null;function JsType_getInstance(){return null===JsType_instance&&new JsType,JsType_instance}function typeInfoImpl(t,e,n){return new TypeInfo(e,t,n)}function instanceOf(t,e){return e.isInstance_s8jyv4$(t)}function get_platformType(t){return JsType_getInstance()}var package$io=_.io||(_.io={}),package$ktor=package$io.ktor||(package$io.ktor={}),package$util=package$ktor.util||(package$ktor.util={});package$util.AttributeKey=AttributeKey,package$util.Attributes=Attributes,package$util.putAll_orn3b7$=putAll,$$importsForInline$$["ktor-ktor-io-js-legacy"]=$module$ktor_ktor_io_js_legacy,package$util.encodeBase64_964n91$=encodeBase64_0,package$util.toByteArray_3dmw3p$=toByteArray,package$util.CaseInsensitiveMap=CaseInsensitiveMap,package$util.isLowerCase_myv2d0$=isLowerCase,package$util.toCharArray_pdl1vz$=toCharArray,package$util.caseInsensitiveMap_30y1fr$=caseInsensitiveMap,$$importsForInline$$["kotlinx-coroutines-core"]=$module$kotlinx_coroutines_core,package$util.SilentSupervisor_5dx9e$=SilentSupervisor,package$util.hex_fqrh44$=hex,package$util.generateNonce_za3lpa$=generateNonce,package$util.DelegatingMutableSet=DelegatingMutableSet,package$util.HashFunction=HashFunction,package$util.digest_7uhtiw$=digest,package$util.Sha1=Sha1,Object.defineProperty(StringValues,"Companion",{get:StringValues$Companion_getInstance}),package$util.StringValues=StringValues,package$util.StringValuesBuilder=StringValuesBuilder,package$util.StringValuesImpl=StringValuesImpl,package$util.StringValuesBuilderImpl=StringValuesBuilderImpl,package$util.flattenEntries_vr6bp2$=flattenEntries,package$util.appendAll_k10e8h$=appendAll,package$util.toLowerCasePreservingASCIIRules_pdl1vz$=toLowerCasePreservingASCIIRules,package$util.caseInsensitive_7efafi$=caseInsensitive,package$util.CaseInsensitiveString=CaseInsensitiveString;var package$cio=package$util.cio||(package$util.cio={});package$cio.ChannelIOException=ChannelIOException;var package$collections=package$util.collections||(package$util.collections={});package$collections.CopyOnWriteHashMap=CopyOnWriteHashMap,Object.defineProperty(WeekDay,"MONDAY",{get:WeekDay$MONDAY_getInstance}),Object.defineProperty(WeekDay,"TUESDAY",{get:WeekDay$TUESDAY_getInstance}),Object.defineProperty(WeekDay,"WEDNESDAY",{get:WeekDay$WEDNESDAY_getInstance}),Object.defineProperty(WeekDay,"THURSDAY",{get:WeekDay$THURSDAY_getInstance}),Object.defineProperty(WeekDay,"FRIDAY",{get:WeekDay$FRIDAY_getInstance}),Object.defineProperty(WeekDay,"SATURDAY",{get:WeekDay$SATURDAY_getInstance}),Object.defineProperty(WeekDay,"SUNDAY",{get:WeekDay$SUNDAY_getInstance}),Object.defineProperty(WeekDay,"Companion",{get:WeekDay$Companion_getInstance});var package$date=package$util.date||(package$util.date={});package$date.WeekDay=WeekDay,Object.defineProperty(Month,"JANUARY",{get:Month$JANUARY_getInstance}),Object.defineProperty(Month,"FEBRUARY",{get:Month$FEBRUARY_getInstance}),Object.defineProperty(Month,"MARCH",{get:Month$MARCH_getInstance}),Object.defineProperty(Month,"APRIL",{get:Month$APRIL_getInstance}),Object.defineProperty(Month,"MAY",{get:Month$MAY_getInstance}),Object.defineProperty(Month,"JUNE",{get:Month$JUNE_getInstance}),Object.defineProperty(Month,"JULY",{get:Month$JULY_getInstance}),Object.defineProperty(Month,"AUGUST",{get:Month$AUGUST_getInstance}),Object.defineProperty(Month,"SEPTEMBER",{get:Month$SEPTEMBER_getInstance}),Object.defineProperty(Month,"OCTOBER",{get:Month$OCTOBER_getInstance}),Object.defineProperty(Month,"NOVEMBER",{get:Month$NOVEMBER_getInstance}),Object.defineProperty(Month,"DECEMBER",{get:Month$DECEMBER_getInstance}),Object.defineProperty(Month,"Companion",{get:Month$Companion_getInstance}),package$date.Month=Month,Object.defineProperty(GMTDate,"Companion",{get:GMTDate$Companion_getInstance}),package$date.GMTDate=GMTDate,package$date.truncateToSeconds_bcxie9$=truncateToSeconds,Object.defineProperty(GMTDateParser,"Companion",{get:GMTDateParser$Companion_getInstance}),package$date.GMTDateParser=GMTDateParser,package$date.GMTDateBuilder=GMTDateBuilder,package$date.InvalidDateStringException=InvalidDateStringException;var package$debug=package$util.debug||(package$util.debug={});package$debug.initContextInDebugMode_lnyleu$=initContextInDebugMode;var package$plugins=package$debug.plugins||(package$debug.plugins={});Object.defineProperty(PluginsTrace,"Key",{get:PluginsTrace$Key_getInstance}),package$plugins.PluginsTrace=PluginsTrace;var package$internal=package$util.internal||(package$util.internal={});$$importsForInline$$["kotlinx-atomicfu"]=$module$kotlinx_atomicfu;var package$pipeline=package$util.pipeline||(package$util.pipeline={});package$pipeline.DebugPipelineContext=DebugPipelineContext,Object.defineProperty(PhaseContent,"Companion",{get:PhaseContent$Companion_getInstance}),package$pipeline.PhaseContent_init_ctf2er$=PhaseContent_init,package$pipeline.PhaseContent=PhaseContent,package$pipeline.Pipeline=Pipeline,package$pipeline.PipelineContext=PipelineContext,package$pipeline.pipelineContextFor_djf7bn$=pipelineContextFor,package$pipeline.PipelinePhase=PipelinePhase,package$pipeline.InvalidPhaseException=InvalidPhaseException,PipelinePhaseRelation.After=PipelinePhaseRelation$After,PipelinePhaseRelation.Before=PipelinePhaseRelation$Before,Object.defineProperty(PipelinePhaseRelation,"Last",{get:PipelinePhaseRelation$Last_getInstance}),package$pipeline.PipelinePhaseRelation=PipelinePhaseRelation,package$pipeline.recoverStackTraceBridge_5yr8tz$=recoverStackTraceBridge,Object.defineProperty(package$pipeline,"StackWalkingFailed",{get:StackWalkingFailed_getInstance}),Object.defineProperty(package$pipeline,"StackWalkingFailedFrame",{get:StackWalkingFailedFrame_getInstance}),package$pipeline.SuspendFunctionGun=SuspendFunctionGun;var package$reflect=package$util.reflect||(package$util.reflect={});package$reflect.TypeInfo=TypeInfo,package$util.AttributesJsFn=Attributes_0,package$util.AttributesJs=AttributesJs,package$util.unmodifiable_cgavii$=unmodifiable,package$util.generateNonce=generateNonce_0,package$util.sha1_fqrh44$=sha1,Object.defineProperty(package$util,"PlatformUtils",{get:PlatformUtils_getInstance}),package$util.CoroutineStackFrame=CoroutineStackFrame,package$util.createStackTraceElement_svyzhk$=createStackTraceElement,package$date.GMTDate_mts6q2$=GMTDate_0,package$date.GMTDate_qlqxlw$=GMTDate_1,package$date.InvalidTimestampException=InvalidTimestampException,package$date.getTimeMillis=getTimeMillis,Object.defineProperty(package$debug,"IntellijIdeaDebugDetector",{get:IntellijIdeaDebugDetector_getInstance}),package$internal.initCauseBridge_oh0dqn$=initCauseBridge,package$pipeline.withCause_6zzckt$=withCause,package$reflect.Type=Type,Object.defineProperty(package$reflect,"JsType",{get:JsType_getInstance}),package$reflect.typeInfoImpl_1lvkm8$=typeInfoImpl,package$reflect.instanceOf_lgjw4r$=instanceOf,package$reflect.get_platformType_op6ljc$=get_platformType,Sha1.prototype.update_mj6st8$=HashFunction.prototype.update_mj6st8$,AttributesJs.prototype.get_yzaw86$=Attributes.prototype.get_yzaw86$,AttributesJs.prototype.take_yzaw86$=Attributes.prototype.take_yzaw86$,AttributesJs.prototype.takeOrNull_yzaw86$=Attributes.prototype.takeOrNull_yzaw86$,BASE64_ALPHABET="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",BASE64_MASK=63,BASE64_MASK_INT=63,BASE64_PAD=61;var array=new Int32Array(256),tmp$;tmp$=array.length-1|0;for(var i=0;i<=tmp$;i++)array[i]=indexOf(BASE64_ALPHABET,toChar(i));return BASE64_INVERSE_ALPHABET=array,digits=toCharArray("0123456789abcdef"),NONCE_SIZE_IN_BYTES=16,INITIAL_CAPACITY=32,UNDECIDED=0,SUCCESS=1,FAILURE=2,CONDITION_FALSE=new Symbol("CONDITION_FALSE"),ALREADY_REMOVED=new Symbol("ALREADY_REMOVED"),LIST_EMPTY=new Symbol("LIST_EMPTY"),REMOVE_PREPARED=new Symbol("REMOVE_PREPARED"),NO_DECISION=new Symbol("NO_DECISION"),_crypto=lazy(_crypto$lambda),_},__WEBPACK_AMD_DEFINE_ARRAY__=[exports,__webpack_require__(31),__webpack_require__(129),__webpack_require__(85),__webpack_require__(128)],void 0===(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof(__WEBPACK_AMD_DEFINE_FACTORY__=factory)?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__)||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)}).call(this,__webpack_require__(37))},function(t,e,n){"use strict";var i,o="object"==typeof Reflect?Reflect:null,r=o&&"function"==typeof o.apply?o.apply:function(t,e,n){return Function.prototype.apply.call(t,e,n)};i=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(t){return Object.getOwnPropertyNames(t).concat(Object.getOwnPropertySymbols(t))}:function(t){return Object.getOwnPropertyNames(t)};var s=Number.isNaN||function(t){return t!=t};function a(){a.init.call(this)}t.exports=a,t.exports.once=function(t,e){return new Promise((function(n,i){function o(n){t.removeListener(e,r),i(n)}function r(){"function"==typeof t.removeListener&&t.removeListener("error",o),n([].slice.call(arguments))}g(t,e,r,{once:!0}),"error"!==e&&function(t,e,n){"function"==typeof t.on&&g(t,"error",e,n)}(t,o,{once:!0})}))},a.EventEmitter=a,a.prototype._events=void 0,a.prototype._eventsCount=0,a.prototype._maxListeners=void 0;var c=10;function l(t){if("function"!=typeof t)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof t)}function u(t){return void 0===t._maxListeners?a.defaultMaxListeners:t._maxListeners}function h(t,e,n,i){var o,r,s,a;if(l(n),void 0===(r=t._events)?(r=t._events=Object.create(null),t._eventsCount=0):(void 0!==r.newListener&&(t.emit("newListener",e,n.listener?n.listener:n),r=t._events),s=r[e]),void 0===s)s=r[e]=n,++t._eventsCount;else if("function"==typeof s?s=r[e]=i?[n,s]:[s,n]:i?s.unshift(n):s.push(n),(o=u(t))>0&&s.length>o&&!s.warned){s.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+s.length+" "+String(e)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=t,c.type=e,c.count=s.length,a=c,console&&console.warn&&console.warn(a)}return t}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function p(t,e,n){var i={fired:!1,wrapFn:void 0,target:t,type:e,listener:n},o=d.bind(i);return o.listener=n,i.wrapFn=o,o}function _(t,e,n){var i=t._events;if(void 0===i)return[];var o=i[e];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(t){for(var e=new Array(t.length),n=0;n0&&(s=e[0]),s instanceof Error)throw s;var a=new Error("Unhandled error."+(s?" ("+s.message+")":""));throw a.context=s,a}var c=o[t];if(void 0===c)return!1;if("function"==typeof c)r(c,this,e);else{var l=c.length,u=f(c,l);for(n=0;n=0;r--)if(n[r]===e||n[r].listener===e){s=n[r].listener,o=r;break}if(o<0)return this;0===o?n.shift():function(t,e){for(;e+1=0;i--)this.removeListener(t,e[i]);return this},a.prototype.listeners=function(t){return _(this,t,!0)},a.prototype.rawListeners=function(t){return _(this,t,!1)},a.listenerCount=function(t,e){return"function"==typeof t.listenerCount?t.listenerCount(e):m.call(t,e)},a.prototype.listenerCount=m,a.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(t,e,n){"use strict";var i=n(27).Buffer,o=i.isEncoding||function(t){switch((t=""+t)&&t.toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":case"raw":return!0;default:return!1}};function r(t){var e;switch(this.encoding=function(t){var e=function(t){if(!t)return"utf8";for(var e;;)switch(t){case"utf8":case"utf-8":return"utf8";case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return"utf16le";case"latin1":case"binary":return"latin1";case"base64":case"ascii":case"hex":return t;default:if(e)return;t=(""+t).toLowerCase(),e=!0}}(t);if("string"!=typeof e&&(i.isEncoding===o||!o(t)))throw new Error("Unknown encoding: "+t);return e||t}(t),this.encoding){case"utf16le":this.text=c,this.end=l,e=4;break;case"utf8":this.fillLast=a,e=4;break;case"base64":this.text=u,this.end=h,e=3;break;default:return this.write=d,void(this.end=p)}this.lastNeed=0,this.lastTotal=0,this.lastChar=i.allocUnsafe(e)}function s(t){return t<=127?0:t>>5==6?2:t>>4==14?3:t>>3==30?4:t>>6==2?-1:-2}function a(t){var e=this.lastTotal-this.lastNeed,n=function(t,e,n){if(128!=(192&e[0]))return t.lastNeed=0,"�";if(t.lastNeed>1&&e.length>1){if(128!=(192&e[1]))return t.lastNeed=1,"�";if(t.lastNeed>2&&e.length>2&&128!=(192&e[2]))return t.lastNeed=2,"�"}}(this,t);return void 0!==n?n:this.lastNeed<=t.length?(t.copy(this.lastChar,e,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal)):(t.copy(this.lastChar,e,0,t.length),void(this.lastNeed-=t.length))}function c(t,e){if((t.length-e)%2==0){var n=t.toString("utf16le",e);if(n){var i=n.charCodeAt(n.length-1);if(i>=55296&&i<=56319)return this.lastNeed=2,this.lastTotal=4,this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1],n.slice(0,-1)}return n}return this.lastNeed=1,this.lastTotal=2,this.lastChar[0]=t[t.length-1],t.toString("utf16le",e,t.length-1)}function l(t){var e=t&&t.length?this.write(t):"";if(this.lastNeed){var n=this.lastTotal-this.lastNeed;return e+this.lastChar.toString("utf16le",0,n)}return e}function u(t,e){var n=(t.length-e)%3;return 0===n?t.toString("base64",e):(this.lastNeed=3-n,this.lastTotal=3,1===n?this.lastChar[0]=t[t.length-1]:(this.lastChar[0]=t[t.length-2],this.lastChar[1]=t[t.length-1]),t.toString("base64",e,t.length-n))}function h(t){var e=t&&t.length?this.write(t):"";return this.lastNeed?e+this.lastChar.toString("base64",0,3-this.lastNeed):e}function d(t){return t.toString(this.encoding)}function p(t){return t&&t.length?this.write(t):""}e.StringDecoder=r,r.prototype.write=function(t){if(0===t.length)return"";var e,n;if(this.lastNeed){if(void 0===(e=this.fillLast(t)))return"";n=this.lastNeed,this.lastNeed=0}else n=0;return n=0)return o>0&&(t.lastNeed=o-1),o;if(--i=0)return o>0&&(t.lastNeed=o-2),o;if(--i=0)return o>0&&(2===o?o=0:t.lastNeed=o-3),o;return 0}(this,t,e);if(!this.lastNeed)return t.toString("utf8",e);this.lastTotal=n;var i=t.length-(n-this.lastNeed);return t.copy(this.lastChar,0,i),t.toString("utf8",e,i)},r.prototype.fillLast=function(t){if(this.lastNeed<=t.length)return t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,this.lastNeed),this.lastChar.toString(this.encoding,0,this.lastTotal);t.copy(this.lastChar,this.lastTotal-this.lastNeed,0,t.length),this.lastNeed-=t.length}},function(t,e,n){"use strict";var i=n(287),o=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=h;var r=Object.create(n(233));r.inherits=n(20);var s=n(585),a=n(375);r.inherits(h,s);for(var c=o(a.prototype),l=0;li||n<=0)return"";var o=0;if(e>0){for(;e>0&&o=i)return""}else if(e<0){for(o=i;e<0&&00&&r{const{duration:s=n.standard,easing:a=e.easeInOut,delay:l=0}=o;Object(i.a)(o,r);return(Array.isArray(t)?t:[t]).map(t=>`${t} ${"string"==typeof s?s:c(s)} ${a} ${"string"==typeof l?l:c(l)}`).join(",")}},t,{easing:e,duration:n})}},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiButtonBase",t)}const s=Object(o.a)("MuiButtonBase",["root","disabled","focusVisible"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiIconButton",t)}const s=Object(o.a)("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiTableCell",t)}const s=Object(o.a)("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiTabScrollButton",t)}const s=Object(o.a)("MuiTabScrollButton",["root","vertical","horizontal","disabled"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return m}));var i=n(5),o=n(1),r=n(0),s=n(217),a=n(416),c=n(353),l=n(101),u=n(3),h=n(7),d=n(343),p=n(2);const _=["BackdropComponent","BackdropProps","closeAfterTransition","children","component","components","componentsProps","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","theme"],m=s.a,f=Object(u.a)("div",{name:"MuiModal",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.open&&n.exited&&e.hidden]}})(({theme:t,ownerState:e})=>Object(o.a)({position:"fixed",zIndex:(t.vars||t).zIndex.modal,right:0,bottom:0,top:0,left:0},!e.open&&e.exited&&{visibility:"hidden"})),g=Object(u.a)(d.a,{name:"MuiModal",slot:"Backdrop",overridesResolver:(t,e)=>e.backdrop})({zIndex:-1}),$=r.forwardRef((function(t,e){var n,s;const u=Object(h.a)({name:"MuiModal",props:t}),{BackdropComponent:d=g,BackdropProps:m,closeAfterTransition:$=!1,children:E,component:y,components:b={},componentsProps:S={},disableAutoFocus:v=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:N=!1,disablePortal:T=!1,disableRestoreFocus:L=!1,disableScrollLock:z=!1,hideBackdrop:w=!1,keepMounted:O=!1,theme:R}=u,A=Object(i.a)(u,_),[x,I]=r.useState(!0),U={closeAfterTransition:$,disableAutoFocus:v,disableEnforceFocus:C,disableEscapeKeyDown:N,disablePortal:T,disableRestoreFocus:L,disableScrollLock:z,hideBackdrop:w,keepMounted:O},D=Object(o.a)({},u,U,{exited:x}),P=(t=>t.classes)(D),M=null!=(n=null!=(s=b.Root)?s:y)?n:f;return Object(p.jsx)(a.a,Object(o.a)({components:Object(o.a)({Root:M,Backdrop:d},b),componentsProps:{root:()=>Object(o.a)({},Object(c.a)(S.root,D),!Object(l.a)(M)&&{as:y,theme:R}),backdrop:()=>Object(o.a)({},m,Object(c.a)(S.backdrop,D))},onTransitionEnter:()=>I(!1),onTransitionExited:()=>I(!0),ref:e},A,{classes:P},U,{children:E}))}));e.a=$},function(t,e,n){"use strict";n.d(e,"a",(function(){return f})),n.d(e,"b",(function(){return g}));n(630);var i=n(0),o=n(220),r=n(1),s=n(57),a=n(99),c=n(119),l=o.a,u=function(t){return"theme"!==t},h=function(t){return"string"==typeof t&&t.charCodeAt(0)>96?l:u},d=function(t,e,n){var i;if(e){var o=e.shouldForwardProp;i=t.__emotion_forwardProp&&o?function(e){return t.__emotion_forwardProp(e)&&o(e)}:o}return"function"!=typeof i&&n&&(i=t.__emotion_forwardProp),i},p=function(){return null},_=function t(e,n){var o,l,u=e.__emotion_real===e,_=u&&e.__emotion_base||e;void 0!==n&&(o=n.label,l=n.target);var m=d(e,n,u),f=m||h(_),g=!f("as");return function(){var $=arguments,E=u&&void 0!==e.__emotion_styles?e.__emotion_styles.slice(0):[];if(void 0!==o&&E.push("label:"+o+";"),null==$[0]||void 0===$[0].raw)E.push.apply(E,$);else{0,E.push($[0][0]);for(var y=$.length,b=1;b{Array.isArray(t.__emotion_styles)&&(t.__emotion_styles=e(t.__emotion_styles))}},function(t,e,n){"use strict";n.d(e,"b",(function(){return s})),n.d(e,"c",(function(){return a})),n.d(e,"a",(function(){return c}));var i=n(0),o=n(14),r=n(125);function s(t,{disableFuture:e,maxDate:n}){const r=Object(o.e)();return i.useMemo(()=>{const i=r.date(),o=r.startOfMonth(e&&r.isBefore(i,n)?i:n);return!r.isAfter(o,t)},[e,n,t,r])}function a(t,{disablePast:e,minDate:n}){const r=Object(o.e)();return i.useMemo(()=>{const i=r.date(),o=r.startOfMonth(e&&r.isAfter(i,n)?i:n);return!r.isBefore(o,t)},[e,n,t,r])}function c(t,e,n){const s=Object(o.e)();return{meridiemMode:Object(r.d)(t,s),handleMeridiemChange:i.useCallback(i=>{const o=null==t?null:Object(r.a)(t,i,Boolean(e),s);n(o,"partial")},[e,t,n,s])}}},function(t,e,n){"use strict";function i(t){return null!=t&&!(Array.isArray(t)&&0===t.length)}function o(t,e=!1){return t&&(i(t.value)&&""!==t.value||e&&i(t.defaultValue)&&""!==t.defaultValue)}function r(t){return t.startAdornment}n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return r}))},function(t,e,n){"use strict";n.d(e,"c",(function(){return p})),n.d(e,"b",(function(){return m}));var i=n(5),o=n(1),r=n(0),s=n(4),a=n(18),c=n(6),l=n(95),u=n(3),h=n(2);const d=["className","disabled","IconComponent","inputRef","variant"],p=({ownerState:t,theme:e})=>Object(o.a)({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{backgroundColor:"light"===e.palette.mode?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)",borderRadius:0},"&::-ms-expand":{display:"none"},["&."+l.a.disabled]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:e.palette.background.paper},"&&&":{paddingRight:24,minWidth:16}},"filled"===t.variant&&{"&&&":{paddingRight:32}},"outlined"===t.variant&&{borderRadius:e.shape.borderRadius,"&:focus":{borderRadius:e.shape.borderRadius},"&&&":{paddingRight:32}}),_=Object(u.a)("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:u.b,overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.select,e[n.variant],{["&."+l.a.multiple]:e.multiple}]}})(p),m=({ownerState:t,theme:e})=>Object(o.a)({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:e.palette.action.active,["&."+l.a.disabled]:{color:e.palette.action.disabled}},t.open&&{transform:"rotate(180deg)"},"filled"===t.variant&&{right:7},"outlined"===t.variant&&{right:7}),f=Object(u.a)("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,n.variant&&e["icon"+Object(c.a)(n.variant)],n.open&&e.iconOpen]}})(m),g=r.forwardRef((function(t,e){const{className:n,disabled:u,IconComponent:p,inputRef:m,variant:g="standard"}=t,$=Object(i.a)(t,d),E=Object(o.a)({},t,{disabled:u,variant:g}),y=(t=>{const{classes:e,variant:n,disabled:i,multiple:o,open:r}=t,s={select:["select",n,i&&"disabled",o&&"multiple"],icon:["icon","icon"+Object(c.a)(n),r&&"iconOpen",i&&"disabled"]};return Object(a.a)(s,l.b,e)})(E);return Object(h.jsxs)(r.Fragment,{children:[Object(h.jsx)(_,Object(o.a)({ownerState:E,className:Object(s.a)(y.select,n),disabled:u,ref:m||e},$)),t.multiple?null:Object(h.jsx)(f,{as:p,ownerState:E,className:y.icon})]})}));e.a=g},,,,function(t,e,n){"use strict";(function(e,i){var o=n(27).Buffer,r=e.crypto||e.msCrypto;r&&r.getRandomValues?t.exports=function(t,e){if(t>4294967295)throw new RangeError("requested too many random bytes");var n=o.allocUnsafe(t);if(t>0)if(t>65536)for(var s=0;s2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}o("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(t,e,n){var i,o,s,a;if("string"==typeof e&&(o="not ",e.substr(!s||s<0?0:+s,o.length)===o)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}(t," argument"))a="The ".concat(t," ").concat(i," ").concat(r(e,"type"));else{var c=function(t,e,n){return"number"!=typeof n&&(n=0),!(n+e.length>t.length)&&-1!==t.indexOf(e,n)}(t,".")?"property":"argument";a='The "'.concat(t,'" ').concat(c," ").concat(i," ").concat(r(e,"type"))}return a+=". Received type ".concat(typeof n)}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=i},function(t,e,n){"use strict";(function(e){var i=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=l;var o=n(577),r=n(581);n(20)(l,o);for(var s=i(r.prototype),a=0;a=this._finalSize&&(this._update(this._block),this._block.fill(0));var n=8*this._len;if(n<=4294967295)this._block.writeUInt32BE(n,this._blockSize-4);else{var i=(4294967295&n)>>>0,o=(n-i)/4294967296;this._block.writeUInt32BE(o,this._blockSize-8),this._block.writeUInt32BE(i,this._blockSize-4)}this._update(this._block);var r=this._hash();return t?r.toString(t):r},o.prototype._update=function(){throw new Error("_update must be implemented by subclass")},t.exports=o},function(t,e,n){"use strict";var i={};function o(t,e,n){n||(n=Error);var o=function(t){var n,i;function o(n,i,o){return t.call(this,function(t,n,i){return"string"==typeof e?e:e(t,n,i)}(n,i,o))||this}return i=t,(n=o).prototype=Object.create(i.prototype),n.prototype.constructor=n,n.__proto__=i,o}(n);o.prototype.name=n.name,o.prototype.code=t,i[t]=o}function r(t,e){if(Array.isArray(t)){var n=t.length;return t=t.map((function(t){return String(t)})),n>2?"one of ".concat(e," ").concat(t.slice(0,n-1).join(", "),", or ")+t[n-1]:2===n?"one of ".concat(e," ").concat(t[0]," or ").concat(t[1]):"of ".concat(e," ").concat(t[0])}return"of ".concat(e," ").concat(String(t))}o("ERR_INVALID_OPT_VALUE",(function(t,e){return'The value "'+e+'" is invalid for option "'+t+'"'}),TypeError),o("ERR_INVALID_ARG_TYPE",(function(t,e,n){var i,o,s,a;if("string"==typeof e&&(o="not ",e.substr(!s||s<0?0:+s,o.length)===o)?(i="must not be",e=e.replace(/^not /,"")):i="must be",function(t,e,n){return(void 0===n||n>t.length)&&(n=t.length),t.substring(n-e.length,n)===e}(t," argument"))a="The ".concat(t," ").concat(i," ").concat(r(e,"type"));else{var c=function(t,e,n){return"number"!=typeof n&&(n=0),!(n+e.length>t.length)&&-1!==t.indexOf(e,n)}(t,".")?"property":"argument";a='The "'.concat(t,'" ').concat(c," ").concat(i," ").concat(r(e,"type"))}return a+=". Received type ".concat(typeof n)}),TypeError),o("ERR_STREAM_PUSH_AFTER_EOF","stream.push() after EOF"),o("ERR_METHOD_NOT_IMPLEMENTED",(function(t){return"The "+t+" method is not implemented"})),o("ERR_STREAM_PREMATURE_CLOSE","Premature close"),o("ERR_STREAM_DESTROYED",(function(t){return"Cannot call "+t+" after a stream was destroyed"})),o("ERR_MULTIPLE_CALLBACK","Callback called multiple times"),o("ERR_STREAM_CANNOT_PIPE","Cannot pipe, not readable"),o("ERR_STREAM_WRITE_AFTER_END","write after end"),o("ERR_STREAM_NULL_VALUES","May not write null values to stream",TypeError),o("ERR_UNKNOWN_ENCODING",(function(t){return"Unknown encoding: "+t}),TypeError),o("ERR_STREAM_UNSHIFT_AFTER_END_EVENT","stream.unshift() after end event"),t.exports.codes=i},function(t,e,n){"use strict";(function(e){var i=Object.keys||function(t){var e=[];for(var n in t)e.push(n);return e};t.exports=l;var o=n(608),r=n(612);n(20)(l,o);for(var s=i(r.prototype),a=0;a(a+=1,a);return(t,a)=>{const l=a.options.name;if(l&&0===l.indexOf("Mui")&&!a.options.link&&!e){if(-1!==o.indexOf(t.key))return"Mui-"+t.key;const e=`${s}${l}-${t.key}`;return a.options.theme[i.a]&&""===r?`${e}-${c()}`:e}return`${s}${n}${c()}`}}function s(t){return t}var a=n(1);function c(t){const{theme:e,name:n,props:i}=t;if(!(e&&e.components&&e.components[n]&&e.components[n].defaultProps))return i;const o=Object(a.a)({},i),r=e.components[n].defaultProps;let s;for(s in r)void 0===o[s]&&(o[s]=r[s]);return o}function l(){return(l=Object.assign?Object.assign.bind():function(t){for(var e=1;e<+~=|^:(),"'`\s])/g,T="undefined"!=typeof CSS&&CSS.escape,L=function(t){return T?T(t):t.replace(N,"\\$1")},z=function(){function t(t,e,n){this.type="style",this.isProcessed=!1;var i=n.sheet,o=n.Renderer;this.key=t,this.options=n,this.style=e,i?this.renderer=i.renderer:o&&(this.renderer=new o)}return t.prototype.prop=function(t,e,n){if(void 0===e)return this.style[t];var i=!!n&&n.force;if(!i&&this.style[t]===e)return this;var o=e;n&&!1===n.process||(o=this.options.jss.plugins.onChangeValue(e,t,this));var r=null==o||!1===o,s=t in this.style;if(r&&!s&&!i)return this;var a=r&&s;if(a?delete this.style[t]:this.style[t]=o,this.renderable&&this.renderer)return a?this.renderer.removeProperty(this.renderable,t):this.renderer.setProperty(this.renderable,t,o),this;var c=this.options.sheet;return c&&c.attached,this},t}(),w=function(t){function e(e,n,i){var o;o=t.call(this,e,n,i)||this;var r=i.selector,s=i.scoped,a=i.sheet,c=i.generateId;return r?o.selectorText=r:!1!==s&&(o.id=c(f(f(o)),a),o.selectorText="."+L(o.id)),o}m(e,t);var n=e.prototype;return n.applyTo=function(t){var e=this.renderer;if(e){var n=this.toJSON();for(var i in n)e.setProperty(t,i,n[i])}return this},n.toJSON=function(){var t={};for(var e in this.style){var n=this.style[e];"object"!=typeof n?t[e]=n:Array.isArray(n)&&(t[e]=b(n))}return t},n.toString=function(t){var e=this.options.sheet,n=!!e&&e.options.link?l({},t,{allowEmpty:!0}):t;return C(this.selectorText,this.style,n)},p(e,[{key:"selector",set:function(t){if(t!==this.selectorText){this.selectorText=t;var e=this.renderer,n=this.renderable;if(n&&e)e.setSelector(n,t)||e.replaceRule(n,this)}},get:function(){return this.selectorText}}]),e}(z),O={onCreateRule:function(t,e,n){return"@"===t[0]||n.parent&&"keyframes"===n.parent.type?null:new w(t,e,n)}},R={indent:1,children:!0},A=/@([\w-]+)/,x=function(){function t(t,e,n){this.type="conditional",this.isProcessed=!1,this.key=t;var i=t.match(A);for(var o in this.at=i?i[1]:"unknown",this.query=n.name||"@"+this.at,this.options=n,this.rules=new nt(l({},n,{parent:this})),e)this.rules.add(o,e[o]);this.rules.process()}var e=t.prototype;return e.getRule=function(t){return this.rules.get(t)},e.indexOf=function(t){return this.rules.indexOf(t)},e.addRule=function(t,e,n){var i=this.rules.add(t,e,n);return i?(this.options.jss.plugins.onProcessRule(i),i):null},e.replaceRule=function(t,e,n){var i=this.rules.replace(t,e,n);return i&&this.options.jss.plugins.onProcessRule(i),i},e.toString=function(t){void 0===t&&(t=R);var e=S(t).linebreak;if(null==t.indent&&(t.indent=R.indent),null==t.children&&(t.children=R.children),!1===t.children)return this.query+" {}";var n=this.rules.toString(t);return n?this.query+" {"+e+n+e+"}":""},t}(),I=/@media|@supports\s+/,U={onCreateRule:function(t,e,n){return I.test(t)?new x(t,e,n):null}},D={indent:1,children:!0},P=/@keyframes\s+([\w-]+)/,M=function(){function t(t,e,n){this.type="keyframes",this.at="@keyframes",this.isProcessed=!1;var i=t.match(P);i&&i[1]?this.name=i[1]:this.name="noname",this.key=this.type+"-"+this.name,this.options=n;var o=n.scoped,r=n.sheet,s=n.generateId;for(var a in this.id=!1===o?this.name:L(s(this,r)),this.rules=new nt(l({},n,{parent:this})),e)this.rules.add(a,e[a],l({},n,{parent:this}));this.rules.process()}return t.prototype.toString=function(t){void 0===t&&(t=D);var e=S(t).linebreak;if(null==t.indent&&(t.indent=D.indent),null==t.children&&(t.children=D.children),!1===t.children)return this.at+" "+this.id+" {}";var n=this.rules.toString(t);return n&&(n=""+e+n+e),this.at+" "+this.id+" {"+n+"}"},t}(),k=/@keyframes\s+/,j=/\$([\w-]+)/g,G=function(t,e){return"string"==typeof t?t.replace(j,(function(t,n){return n in e?e[n]:t})):t},q=function(t,e,n){var i=t[e],o=G(i,n);o!==i&&(t[e]=o)},F={onCreateRule:function(t,e,n){return"string"==typeof t&&k.test(t)?new M(t,e,n):null},onProcessStyle:function(t,e,n){return"style"===e.type&&n?("animation-name"in t&&q(t,"animation-name",n.keyframes),"animation"in t&&q(t,"animation",n.keyframes),t):t},onChangeValue:function(t,e,n){var i=n.options.sheet;if(!i)return t;switch(e){case"animation":case"animation-name":return G(t,i.keyframes);default:return t}}},B=function(t){function e(){return t.apply(this,arguments)||this}return m(e,t),e.prototype.toString=function(t){var e=this.options.sheet,n=!!e&&e.options.link?l({},t,{allowEmpty:!0}):t;return C(this.key,this.style,n)},e}(z),W={onCreateRule:function(t,e,n){return n.parent&&"keyframes"===n.parent.type?new B(t,e,n):null}},H=function(){function t(t,e,n){this.type="font-face",this.at="@font-face",this.isProcessed=!1,this.key=t,this.style=e,this.options=n}return t.prototype.toString=function(t){var e=S(t).linebreak;if(Array.isArray(this.style)){for(var n="",i=0;i=this.index)e.push(t);else for(var i=0;in)return void e.splice(i,0,t)},e.reset=function(){this.registry=[]},e.remove=function(t){var e=this.registry.indexOf(t);this.registry.splice(e,1)},e.toString=function(t){for(var e=void 0===t?{}:t,n=e.attached,i=function(t,e){if(null==t)return{};var n,i,o={},r=Object.keys(t);for(i=0;i=0||(o[n]=t[n]);return o}(e,["attached"]),o=S(i).linebreak,r="",s=0;s-1?i.substr(0,o-1):i;t.style.setProperty(e,r,o>-1?"important":"")}}catch(t){return!1}return!0},_t=function(t,e){try{t.attributeStyleMap?t.attributeStyleMap.delete(e):t.style.removeProperty(e)}catch(t){}},mt=function(t,e){return t.selectorText=e,t.selectorText===e},ft=ht((function(){return document.querySelector("head")}));function gt(t){var e=st.registry;if(e.length>0){var n=function(t,e){for(var n=0;ne.index&&i.options.insertionPoint===e.insertionPoint)return i}return null}(e,t);if(n&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element};if((n=function(t,e){for(var n=t.length-1;n>=0;n--){var i=t[n];if(i.attached&&i.options.insertionPoint===e.insertionPoint)return i}return null}(e,t))&&n.renderer)return{parent:n.renderer.element.parentNode,node:n.renderer.element.nextSibling}}var i=t.insertionPoint;if(i&&"string"==typeof i){var o=function(t){for(var e=ft(),n=0;nn?n:e},bt=function(){function t(t){this.getPropertyValue=dt,this.setProperty=pt,this.removeProperty=_t,this.setSelector=mt,this.hasInsertedRules=!1,this.cssRules=[],t&&st.add(t),this.sheet=t;var e=this.sheet?this.sheet.options:{},n=e.media,i=e.meta,o=e.element;this.element=o||function(){var t=document.createElement("style");return t.textContent="\n",t}(),this.element.setAttribute("data-jss",""),n&&this.element.setAttribute("media",n),i&&this.element.setAttribute("data-meta",i);var r=$t();r&&this.element.setAttribute("nonce",r)}var e=t.prototype;return e.attach=function(){if(!this.element.parentNode&&this.sheet){!function(t,e){var n=e.insertionPoint,i=gt(e);if(!1!==i&&i.parent)i.parent.insertBefore(t,i.node);else if(n&&"number"==typeof n.nodeType){var o=n,r=o.parentNode;r&&r.insertBefore(t,o.nextSibling)}else ft().appendChild(t)}(this.element,this.sheet.options);var t=Boolean(this.sheet&&this.sheet.deployed);this.hasInsertedRules&&t&&(this.hasInsertedRules=!1,this.deploy())}},e.detach=function(){if(this.sheet){var t=this.element.parentNode;t&&t.removeChild(this.element),this.sheet.options.link&&(this.cssRules=[],this.element.textContent="\n")}},e.deploy=function(){var t=this.sheet;t&&(t.options.link?this.insertRules(t.rules):this.element.textContent="\n"+t.toString()+"\n")},e.insertRules=function(t,e){for(var n=0;nt.length)&&(e=t.length);for(var n=0,i=new Array(e);n-1){var o=Ie[t];if(!Array.isArray(o))return ce+$e(o)in e&&le+o;if(!i)return!1;for(var r=0;re?1:-1:t.length-e.length};return{onProcessStyle:function(e,n){if("style"!==n.type)return e;for(var i={},o=Object.keys(e).sort(t),r=0;r{n[t]&&(o[t]=`${e[t]} ${n[t]}`)}),o}var nn={set:(t,e,n,i)=>{let o=t.get(e);o||(o=new Map,t.set(e,o)),o.set(n,i)},get:(t,e,n)=>{const i=t.get(e);return i?i.get(n):void 0},delete:(t,e,n)=>{t.get(e).delete(n)}},on=n(1020),rn=n(2);const sn=["children","injectFirst","disableGeneration"],an=Ct(Qe()),cn=r(),ln=new Map,un={disableGeneration:!1,generateClassName:cn,jss:an,sheetsCache:null,sheetsManager:ln,sheetsRegistry:null},hn=tn.createContext(un);let dn;function pn(t){const{children:e,injectFirst:n=!1,disableGeneration:i=!1}=t,o=Object(Ze.a)(t,sn),r=tn.useContext(hn),s=Object(a.a)({},r,{disableGeneration:i},o);if(!s.jss.options.insertionPoint&&n&&"undefined"!=typeof window){if(!dn){const t=document.head;dn=document.createComment("mui-inject-first"),t.insertBefore(dn,t.firstChild)}s.jss=Ct({plugins:Qe().plugins,insertionPoint:dn})}return Object(rn.jsx)(hn.Provider,{value:s,children:e})}let _n=-1e9;var mn=n(227),fn=n(734);const gn=["variant"];function $n(t){return 0===t.length}function En(t){const{variant:e}=t,n=Object(Ze.a)(t,gn);let i=e||"";return Object.keys(n).sort().forEach(e=>{i+="color"===e?$n(i)?t[e]:Object(fn.a)(t[e]):`${$n(i)?e:Object(fn.a)(e)}${Object(fn.a)(t[e].toString())}`}),i}var yn={};const bn=["name","classNamePrefix","Component","defaultTheme"];function Sn({state:t,theme:e,stylesOptions:n,stylesCreator:i,name:o},r){if(n.disableGeneration)return;let s=nn.get(n.sheetsManager,i,e);s||(s={refs:0,staticSheet:null,dynamicStyles:null},nn.set(n.sheetsManager,i,e,s));const c=Object(a.a)({},i.options,n,{theme:e,flip:"boolean"==typeof n.flip?n.flip:"rtl"===e.direction});c.generateId=c.serverGenerateClassName||c.generateClassName;const l=n.sheetsRegistry;if(0===s.refs){let t;n.sheetsCache&&(t=nn.get(n.sheetsCache,i,e));const r=i.create(e,o);t||(t=n.jss.createStyleSheet(r,Object(a.a)({link:!1},c)),t.attach(),n.sheetsCache&&nn.set(n.sheetsCache,i,e,t)),l&&l.add(t),s.staticSheet=t,s.dynamicStyles=function t(e){var n=null;for(var i in e){var o=e[i],r=typeof o;if("function"===r)n||(n={}),n[i]=o;else if("object"===r&&null!==o&&!Array.isArray(o)){var s=t(o);s&&(n||(n={}),n[i]=s)}}return n}(r)}if(s.dynamicStyles){const e=n.jss.createStyleSheet(s.dynamicStyles,Object(a.a)({link:!0},c));e.update(r),e.attach(),t.dynamicSheet=e,t.classes=en({baseClasses:s.staticSheet.classes,newClasses:e.classes}),l&&l.add(e)}else t.classes=s.staticSheet.classes;s.refs+=1}function vn(t,e={}){const{name:n,classNamePrefix:i,Component:o,defaultTheme:r=yn}=e,s=Object(Ze.a)(e,bn),c=function(t){const e="function"==typeof t;return{create:(n,i)=>{let o;try{o=e?t(n):t}catch(t){throw t}if(!i||!n.components||!n.components[i]||!n.components[i].styleOverrides&&!n.components[i].variants)return o;const r=n.components[i].styleOverrides||{},s=n.components[i].variants||[],c=Object(a.a)({},o);return Object.keys(r).forEach(t=>{c[t]=Object(mn.a)(c[t]||{},r[t])}),s.forEach(t=>{const e=En(t.props);c[e]=Object(mn.a)(c[e]||{},t.style)}),c},options:{}}}(t),l=n||i||"makeStyles";c.options={index:(_n+=1,_n),name:n,meta:l,classNamePrefix:l};return(t={})=>{const e=Object(on.a)()||r,i=Object(a.a)({},tn.useContext(hn),s),l=tn.useRef(),u=tn.useRef();!function(t,e){const n=tn.useRef([]);let i;const o=tn.useMemo(()=>({}),e);n.current!==o&&(n.current=o,i=t()),tn.useEffect(()=>()=>{i&&i()},[o])}(()=>{const o={name:n,state:{},stylesCreator:c,stylesOptions:i,theme:e};return Sn(o,t),u.current=!1,l.current=o,()=>{!function({state:t,theme:e,stylesOptions:n,stylesCreator:i}){if(n.disableGeneration)return;const o=nn.get(n.sheetsManager,i,e);o.refs-=1;const r=n.sheetsRegistry;0===o.refs&&(nn.delete(n.sheetsManager,i,e),n.jss.removeStyleSheet(o.staticSheet),r&&r.remove(o.staticSheet)),t.dynamicSheet&&(n.jss.removeStyleSheet(t.dynamicSheet),r&&r.remove(t.dynamicSheet))}(o)}},[e,c]),tn.useEffect(()=>{u.current&&function({state:t},e){t.dynamicSheet&&t.dynamicSheet.update(e)}(l.current,t),u.current=!0});return function({state:t,stylesOptions:e},n,i){if(e.disableGeneration)return n||{};t.cacheClasses||(t.cacheClasses={value:null,lastProp:null,lastJSS:{}});let o=!1;return t.classes!==t.cacheClasses.lastJSS&&(t.cacheClasses.lastJSS=t.classes,o=!0),n!==t.cacheClasses.lastProp&&(t.cacheClasses.lastProp=n,o=!0),o&&(t.cacheClasses.value=en({baseClasses:t.cacheClasses.lastJSS,newClasses:n,Component:i})),t.cacheClasses.value}(l.current,t.classes,o)}}class Cn{constructor(t={}){this.options=t}collect(t){const e=new Map;this.sheetsRegistry=new rt;const n=r();return Object(rn.jsx)(pn,Object(a.a)({sheetsManager:e,serverGenerateClassName:n,sheetsRegistry:this.sheetsRegistry},this.options,{children:t}))}toString(){return this.sheetsRegistry?this.sheetsRegistry.toString():""}getStyleElement(t){return tn.createElement("style",Object(a.a)({id:"jss-server-side",key:"jss-server-side",dangerouslySetInnerHTML:{__html:this.toString()}},t))}}var Nn=n(4),Tn=n(66),Ln=n.n(Tn);const zn=["name"],wn=["children","className","clone","component"];function On(t){return(e,n={})=>{const{name:i}=n,o=Object(Ze.a)(n,zn);let r=i;const s=vn("function"==typeof e?t=>({root:n=>e(Object(a.a)({theme:t},n))}):{root:e},Object(a.a)({Component:t,name:i||t.displayName,classNamePrefix:r},o));let c,l={};e.filterProps&&(c=e.filterProps,delete e.filterProps),e.propTypes&&(l=e.propTypes,delete e.propTypes);const u=tn.forwardRef((function(e,n){const{children:i,className:o,clone:r,component:l}=e,u=Object(Ze.a)(e,wn),h=s(e),d=Object(Nn.a)(h.root,o);let p=u;if(c&&(p=function(t,e){const n={};return Object.keys(t).forEach(i=>{-1===e.indexOf(i)&&(n[i]=t[i])}),n}(p,c)),r)return tn.cloneElement(i,Object(a.a)({className:Object(Nn.a)(i.props.className,d)},p));if("function"==typeof i)return i(Object(a.a)({className:d},p));const _=l||t;return Object(rn.jsx)(_,Object(a.a)({ref:n,className:d},p,{children:i}))}));return Ln()(u,t),u}}var Rn=n(1032);var An=(t,e)=>{const{classes:n={}}=t,i=Object(on.a)();let o="";if(i&&i.components&&i.components[e]&&i.components[e].variants){i.components[e].variants.forEach(e=>{let i=!0;Object.keys(e.props).forEach(n=>{t[n]!==e.props[n]&&(i=!1)}),i&&(o=`${o}${n[En(e.props)]} `)})}return o};const xn=["defaultTheme","withTheme","name"],In=["classes"];var Un=(t,e={})=>n=>{const{defaultTheme:i,withTheme:o=!1,name:r}=e,s=Object(Ze.a)(e,xn);let l=r;const u=vn(t,Object(a.a)({defaultTheme:i,Component:n,name:r||n.displayName,classNamePrefix:l},s)),h=tn.forwardRef((function(t,e){const s=Object(Ze.a)(t,In),l=u(Object(a.a)({},n.defaultProps,t));let h,d=s;return("string"==typeof r||o)&&(h=Object(on.a)()||i,r&&(d=c({theme:h,name:r,props:s})),o&&!d.theme&&(d.theme=h)),Object(rn.jsx)(n,Object(a.a)({ref:e,classes:l},d))}));return Ln()(h,n),h};function Dn(t={}){const{defaultTheme:e}=t;return t=>{const n=tn.forwardRef((function(n,i){const o=Object(on.a)()||e;return Object(rn.jsx)(t,Object(a.a)({theme:o,ref:i},n))}));return Ln()(n,t),n}}var Pn=Dn(); /** @license MUI v5.10.2 * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiAppBar",t)}const s=Object(o.a)("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiPaper",t)}const s=Object(o.a)("MuiPaper",["root","rounded","outlined","elevation","elevation0","elevation1","elevation2","elevation3","elevation4","elevation5","elevation6","elevation7","elevation8","elevation9","elevation10","elevation11","elevation12","elevation13","elevation14","elevation15","elevation16","elevation17","elevation18","elevation19","elevation20","elevation21","elevation22","elevation23","elevation24"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiAvatar",t)}const s=Object(o.a)("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiSvgIcon",t)}const s=Object(o.a)("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiBottomNavigation",t)}const s=Object(o.a)("MuiBottomNavigation",["root"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiTypography",t)}const s=Object(o.a)("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiBackdrop",t)}const s=Object(o.a)("MuiBackdrop",["root","invisible"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiDialogContent",t)}const s=Object(o.a)("MuiDialogContent",["root","dividers"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiDialogActions",t)}const s=Object(o.a)("MuiDialogActions",["root","spacing"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiDrawer",t)}const s=Object(o.a)("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiFormControl",t)}const s=Object(o.a)("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiIcon",t)}const s=Object(o.a)("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiInputLabel",t)}const s=Object(o.a)("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiList",t)}const s=Object(o.a)("MuiList",["root","padding","dense","subheader"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiListItemSecondaryAction",t)}const s=Object(o.a)("MuiListItemSecondaryAction",["root","disableGutters"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiListItemAvatar",t)}const s=Object(o.a)("MuiListItemAvatar",["root","alignItemsFlexStart"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiMenu",t)}const s=Object(o.a)("MuiMenu",["root","paper","list"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiPopover",t)}const s=Object(o.a)("MuiPopover",["root","paper"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiLinearProgress",t)}const s=Object(o.a)("MuiLinearProgress",["root","colorPrimary","colorSecondary","determinate","indeterminate","buffer","query","dashed","dashedColorPrimary","dashedColorSecondary","bar","barColorPrimary","barColorSecondary","bar1Indeterminate","bar1Determinate","bar1Buffer","bar2Indeterminate","bar2Buffer"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiCircularProgress",t)}const s=Object(o.a)("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiSnackbar",t)}const s=Object(o.a)("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiSnackbarContent",t)}const s=Object(o.a)("MuiSnackbarContent",["root","message","action"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiTable",t)}const s=Object(o.a)("MuiTable",["root","stickyHeader"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiTableBody",t)}const s=Object(o.a)("MuiTableBody",["root"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiTableHead",t)}const s=Object(o.a)("MuiTableHead",["root"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiTableContainer",t)}const s=Object(o.a)("MuiTableContainer",["root"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiTextField",t)}const s=Object(o.a)("MuiTextField",["root"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(15),o=n(16);function r(t){return Object(i.a)("MuiToolbar",t)}const s=Object(o.a)("MuiToolbar",["root","gutters","regular","dense"]);e.a=s},function(t,e,n){"use strict";n.d(e,"b",(function(){return r}));var i=n(16),o=n(15);function r(t){return Object(o.a)("MuiModal",t)}const s=Object(i.a)("MuiModal",["root","hidden"]);e.a=s},function(t,e,n){"use strict";var i=n(873),o=n(255),r=n(88),s=n(889),a=n(157),c=n(391),l=n(393),u=n(678),h=n(890),d=n(694),p=n(315),_=n(69),m=n(676),f=n(35),g=n(399),$=n(955),E=n(705),y=n(316),b=n(956),S=n(959),v=n(103),C=n(706),N=n(965),T={Editor:h,EditorBlock:d,EditorState:f,CompositeDecorator:s,Entity:p,EntityInstance:m,BlockMapBuilder:o,CharacterMetadata:r,ContentBlock:a,ContentState:c,RawDraftContentState:$,SelectionState:y,AtomicBlockUtils:i,KeyBindingUtil:g,Modifier:_,RichUtils:E,DefaultDraftBlockRenderMap:l,DefaultDraftInlineStyle:u,convertFromHTML:n(703),convertFromRaw:S,convertToRaw:b,genKey:v,getDefaultKeyBinding:C,getVisibleSelectionRect:N};t.exports=T},function(t,e,n){"use strict";function i(){return(i=Object.assign?Object.assign.bind():function(t){for(var e=1;e{const i=n.utils.date(),o=n.utils.date(e),r=Object(s.b)(n.utils,t.minDate,n.defaultDates.minDate),a=Object(s.b)(n.utils,t.maxDate,n.defaultDates.maxDate);if(null===o)return null;switch(!0){case!n.utils.isValid(e):return"invalidDate";case Boolean(t.shouldDisableDate&&t.shouldDisableDate(o)):return"shouldDisableDate";case Boolean(t.disableFuture&&n.utils.isAfterDay(o,i)):return"disableFuture";case Boolean(t.disablePast&&n.utils.isBeforeDay(o,i)):return"disablePast";case Boolean(r&&n.utils.isBeforeDay(o,r)):return"minDate";case Boolean(a&&n.utils.isAfterDay(o,a)):return"maxDate";default:return null}},c=({shouldDisableDate:t,minDate:e,maxDate:n,disableFuture:o,disablePast:s})=>{const c=Object(r.c)();return i.useCallback(i=>null!==a({adapter:c,value:i,props:{shouldDisableDate:t,minDate:e,maxDate:n,disableFuture:o,disablePast:s}}),[c,t,e,n,o,s])},l=(t,e)=>t===e,u=t=>Object(o.a)(t,a,l)},function(t,e,n){"use strict";n(0);var i=n(17),o=n(2);e.a=Object(i.a)(Object(o.jsx)("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown")},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(4),a=n(18),c=n(6),l=n(3),u=n(65),h=n(41),d=n(93),p=n(15),_=n(16);function m(t){return Object(p.a)("PrivateSwitchBase",t)}Object(_.a)("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);var f=n(2);const g=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],$=Object(l.a)(d.a)(({ownerState:t})=>Object(o.a)({padding:9,borderRadius:"50%"},"start"===t.edge&&{marginLeft:"small"===t.size?-3:-12},"end"===t.edge&&{marginRight:"small"===t.size?-3:-12})),E=Object(l.a)("input")({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),y=r.forwardRef((function(t,e){const{autoFocus:n,checked:r,checkedIcon:l,className:d,defaultChecked:p,disabled:_,disableFocusRipple:y=!1,edge:b=!1,icon:S,id:v,inputProps:C,inputRef:N,name:T,onBlur:L,onChange:z,onFocus:w,readOnly:O,required:R,tabIndex:A,type:x,value:I}=t,U=Object(i.a)(t,g),[D,P]=Object(u.a)({controlled:r,default:Boolean(p),name:"SwitchBase",state:"checked"}),M=Object(h.a)();let k=_;M&&void 0===k&&(k=M.disabled);const j="checkbox"===x||"radio"===x,G=Object(o.a)({},t,{checked:D,disabled:k,disableFocusRipple:y,edge:b}),q=(t=>{const{classes:e,checked:n,disabled:i,edge:o}=t,r={root:["root",n&&"checked",i&&"disabled",o&&"edge"+Object(c.a)(o)],input:["input"]};return Object(a.a)(r,m,e)})(G);return Object(f.jsxs)($,Object(o.a)({component:"span",className:Object(s.a)(q.root,d),centerRipple:!0,focusRipple:!y,disabled:k,tabIndex:null,role:void 0,onFocus:t=>{w&&w(t),M&&M.onFocus&&M.onFocus(t)},onBlur:t=>{L&&L(t),M&&M.onBlur&&M.onBlur(t)},ownerState:G,ref:e},U,{children:[Object(f.jsx)(E,Object(o.a)({autoFocus:n,checked:r,defaultChecked:p,className:q.input,disabled:k,id:j&&v,name:T,onChange:t=>{if(t.nativeEvent.defaultPrevented)return;const e=t.target.checked;P(e),z&&z(t,e)},readOnly:O,ref:N,required:R,ownerState:G,tabIndex:A,type:x},"checkbox"===x&&void 0===I?{}:{value:I},C)),D?l:S]}))}));e.a=y},function(t,e,n){"use strict";function i(t,e){return(i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t})(t,e)}function o(t,e){t.prototype=Object.create(e.prototype),t.prototype.constructor=t,i(t,e)}n.d(e,"a",(function(){return o}))},function(t,e,n){"use strict";var i=n(0),o=n.n(i);e.a=o.a.createContext(null)},function(t,e,n){"use strict";var i=n(0);const o="undefined"!=typeof window?i.useLayoutEffect:i.useEffect;e.a=o},function(t,e,n){"use strict";n.d(e,"b",(function(){return o})),n.d(e,"a",(function(){return r}));var i=n(219);function o(t){return null!==t&&"object"==typeof t&&t.constructor===Object}function r(t,e,n={clone:!0}){const s=n.clone?Object(i.a)({},t):t;return o(t)&&o(e)&&Object.keys(e).forEach(i=>{"__proto__"!==i&&(o(e[i])&&i in t&&o(t[i])?s[i]=r(t[i],e[i],n):s[i]=e[i])}),s}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n(111);function o(t){return Object(i.a)(t).defaultView||window}},,,function(t,e,n){var i,o,r;o=[e,n(31),n(149)],void 0===(r="function"==typeof(i=function(t,e,n){"use strict";var i=t.$$importsForInline$$||(t.$$importsForInline$$={}),o=n.kotlinx.serialization.modules.EmptySerializersModule,r=e.Kind.OBJECT,s=e.Kind.CLASS,a=n.kotlinx.serialization.StringFormat,c=e.kotlin.Enum,l=e.throwISE,u=e.defineInlineFunction,h=e.wrapFunction,d=e.equals,p=e.unboxChar,_=e.kotlin.IllegalArgumentException_init_pdl1vj$,m=e.kotlin.text.iterator_gw00vp$,f=e.toBoxedChar,g=e.kotlin.Annotation,$=(n.kotlinx.serialization.serializerOrNull_1yb8b7$,n.kotlinx.serialization.KSerializer),E=e.throwCCE,y=e.toString,b=n.kotlinx.serialization.SerializationException_init_pdl1vj$,S=n.kotlinx.serialization.descriptors.PolymorphicKind,v=n.kotlinx.serialization.descriptors.buildSerialDescriptor_2yu4m$,C=e.Kind.INTERFACE,N=n.kotlinx.serialization.encoding.Decoder,T=n.kotlinx.serialization.encoding.CompositeDecoder,L=e.hashCode,z=n.kotlinx.serialization.internal.SerializerFactory,w=e.kotlin.collections.joinToString_fmv235$,O=e.kotlin.collections.Map,R=e.kotlin.collections.List,A=e.kotlin.text.toInt_pdl1vz$,x=e.kotlin.text.toIntOrNull_pdl1vz$,I=e.kotlin.text.toLong_pdl1vz$,U=e.kotlin.text.toLongOrNull_pdl1vz$,D=e.kotlin.text.toDouble_pdl1vz$,P=e.kotlin.text.toDoubleOrNull_pdl1vz$,M=e.kotlin.IllegalStateException_init_pdl1vj$,k=e.kotlin.text.StringBuilder_init,j=e.kotlin.collections.LinkedHashMap_init_q3lmfv$,G=e.kotlin.collections.ArrayList_init_287e2$,q=e.kotlin.Unit,F=n.kotlinx.serialization.descriptors.PrimitiveKind,B=n.kotlinx.serialization.descriptors.SerialKind,W=e.kotlin.text.toULongOrNull_pdl1vz$,H=e.kotlin.ULong,V=n.kotlinx.serialization.builtins.serializer_de2ylp$,K=n.kotlinx.serialization.descriptors.PrimitiveSerialDescriptor_xytc2a$,X=e.kotlin.js.internal.StringCompanionObject,J=n.kotlinx.serialization.builtins.serializer_6eet4j$,Y=n.kotlinx.serialization.builtins.MapSerializer_2yqygg$,Q=n.kotlinx.serialization.descriptors.SerialDescriptor,Z=n.kotlinx.serialization.builtins.ListSerializer_swdriu$,tt=e.kotlin.lazy_klfg04$,et=n.kotlinx.serialization.encoding.Encoder,nt=n.kotlinx.serialization.encoding.CompositeEncoder,it=e.kotlin.UInt,ot=e.kotlin.UByte,rt=e.kotlin.UShort,st=e.getCallableRef,at=n.kotlinx.serialization.internal.ElementMarker,ct=n.kotlinx.serialization.SerializationException,lt=e.kotlin.ranges.coerceAtLeast_dqglrj$,ut=e.kotlin.ranges.coerceAtMost_dqglrj$,ht=(e.kotlin.collections.Iterator,e.kotlin.collections.getValue_t9ocha$),dt=e.kotlin.collections.singleOrNull_2p1efm$,pt=e.ensureNotNull,_t=e.kotlin.collections.emptyMap_q3lmfv$,mt=n.kotlinx.serialization.descriptors.StructureKind,ft=e.kotlin.collections.copyOf_8ujjk8$,gt=e.kotlin.collections.copyOf_c03ot6$,$t=(e.kotlin.sequences.Sequence,e.kotlin.coroutines.intrinsics.COROUTINE_SUSPENDED),Et=e.kotlin.coroutines.CoroutineImpl,yt=e.kotlin.DeepRecursiveFunction,bt=e.kotlin.invoke_ifme6c$,St=n.kotlinx.serialization.internal.AbstractPolymorphicSerializer,vt=n.kotlinx.serialization.SealedClassSerializer,Ct=n.kotlinx.serialization.internal.jsonCachedSerialNames_583jlf$,Nt=e.getKClass,Tt=n.kotlinx.serialization.DeserializationStrategy,Lt=n.kotlinx.serialization.modules.SerializersModuleCollector,zt=Object,wt=n.kotlinx.serialization.MissingFieldException,Ot=n.kotlinx.serialization.encoding.AbstractDecoder,Rt=e.toByte,At=e.toShort,xt=e.kotlin.isFinite_81szk$,It=e.kotlin.isFinite_yrwdxr$,Ut=e.kotlin.text.toUInt_pdl1vz$,Dt=e.kotlin.text.toULong_pdl1vz$,Pt=e.kotlin.text.toUByte_pdl1vz$,Mt=e.kotlin.text.toUShort_pdl1vz$,kt=e.kotlin.IllegalArgumentException,jt=n.kotlinx.serialization.builtins.serializer_wxu9yi$,Gt=n.kotlinx.serialization.builtins.serializer_28ajz5$,qt=n.kotlinx.serialization.builtins.serializer_wdte4j$,Ft=e.kotlin.collections.setOf_i5x0yv$,Bt=n.kotlinx.serialization.encoding.AbstractEncoder,Wt=n.kotlinx.serialization.findPolymorphicSerializer_dz33bw$,Ht=e.toChar,Vt=e.kotlin.text.get_indices_gw00vp$,Kt=e.kotlin.text.equals_igcy3c$,Xt=e.kotlin.IllegalArgumentException_init,Jt=e.kotlin.js.internal.ByteCompanionObject,Yt=e.kotlin.ranges.IntRange,Qt=e.kotlin.js.internal.ShortCompanionObject,Zt=e.kotlin.text.single_gw00vp$,te=n.kotlinx.serialization.internal.NamedValueDecoder,ee=e.kotlin.collections.plus_khz7k3$,ne=e.kotlin.collections.toList_7wnvza$,ie=e.kotlin.collections.emptySet_287e2$,oe=e.throwUPAE,re=n.kotlinx.serialization.internal.NamedValueEncoder,se=n.kotlinx.serialization.descriptors.getContextualDescriptor_6wk734$,ae=e.kotlin.text.indexOf_8eortd$,ce=e.kotlin.ranges.CharRange,le=e.kotlin.collections.last_2p1efm$,ue=e.kotlin.collections.removeLast_vvxzk3$,he=e.kotlin.text.lastIndexOf_l5u8uk$,de=e.Long.ZERO,pe=e.Long.MIN_VALUE,_e=(e.kotlin.text.concatToString_wlitf7$,e.kotlin.CharSequence,Math,e.kotlin.collections.arrayCopy,new e.Long(-1,2097151)),me=(e.kotlin.text.toByteOrNull_pdl1vz$,e.kotlin.text.toShortOrNull_pdl1vz$,e.kotlin.text.toBoolean_5cw0du$,e.kotlin.text.StringBuilder_init_za3lpa$),fe=e.kotlin.collections.HashMap_init_bwtc7$;function ge(t,e){Se(),this.configuration=t,this.serializersModule_vis8y$_0=e,this._schemaCache_8be2vx$=new uo}function $e(){be=this,ge.call(this,new Le,o())}$e.prototype=Object.create(ge.prototype),$e.prototype.constructor=$e,Ce.prototype=Object.create(ge.prototype),Ce.prototype.constructor=Ce,xe.prototype=Object.create(we.prototype),xe.prototype.constructor=xe,je.prototype=Object.create(xe.prototype),je.prototype.constructor=je,Ge.prototype=Object.create(xe.prototype),Ge.prototype.constructor=Ge,Be.prototype=Object.create(we.prototype),Be.prototype.constructor=Be,Xe.prototype=Object.create(we.prototype),Xe.prototype.constructor=Xe,Xn.prototype=Object.create(Kn.prototype),Xn.prototype.constructor=Xn,Jn.prototype=Object.create(Kn.prototype),Jn.prototype.constructor=Jn,Qn.prototype=Object.create(ct.prototype),Qn.prototype.constructor=Qn,Zn.prototype=Object.create(Qn.prototype),Zn.prototype.constructor=Zn,ei.prototype=Object.create(Qn.prototype),ei.prototype.constructor=ei,po.prototype=Object.create(Ot.prototype),po.prototype.constructor=po,mo.prototype=Object.create(Ot.prototype),mo.prototype.constructor=mo,go.prototype=Object.create(Bt.prototype),go.prototype.constructor=go,Co.prototype=Object.create(te.prototype),Co.prototype.constructor=Co,No.prototype=Object.create(Co.prototype),No.prototype.constructor=No,To.prototype=Object.create(Co.prototype),To.prototype.constructor=To,Lo.prototype=Object.create(To.prototype),Lo.prototype.constructor=Lo,zo.prototype=Object.create(Co.prototype),zo.prototype.constructor=zo,Ro.prototype=Object.create(Bt.prototype),Ro.prototype.constructor=Ro,Oo.prototype=Object.create(re.prototype),Oo.prototype.constructor=Oo,Ao.prototype=Object.create(Oo.prototype),Ao.prototype.constructor=Ao,xo.prototype=Object.create(Oo.prototype),xo.prototype.constructor=xo,Io.prototype=Object.create(xo.prototype),Io.prototype.constructor=Io,Uo.prototype=Object.create(Oo.prototype),Uo.prototype.constructor=Uo,Do.prototype=Object.create(c.prototype),Do.prototype.constructor=Do,Yo.prototype=Object.create(Jo.prototype),Yo.prototype.constructor=Yo,Object.defineProperty(ge.prototype,"serializersModule",{get:function(){return this.serializersModule_vis8y$_0}}),$e.$metadata$={kind:r,simpleName:"Default",interfaces:[ge]};var Ee,ye,be=null;function Se(){return null===be&&new $e,be}function ve(t){this.encodeDefaults=t.configuration.encodeDefaults,this.explicitNulls=t.configuration.explicitNulls,this.ignoreUnknownKeys=t.configuration.ignoreUnknownKeys,this.isLenient=t.configuration.isLenient,this.allowStructuredMapKeys=t.configuration.allowStructuredMapKeys,this.prettyPrint=t.configuration.prettyPrint,this.prettyPrintIndent=t.configuration.prettyPrintIndent,this.coerceInputValues=t.configuration.coerceInputValues,this.useArrayPolymorphism=t.configuration.useArrayPolymorphism,this.classDiscriminator=t.configuration.classDiscriminator,this.allowSpecialFloatingPointValues=t.configuration.allowSpecialFloatingPointValues,this.useAlternativeNames=t.configuration.useAlternativeNames,this.serializersModule=t.serializersModule}function Ce(t,e){ge.call(this,t,e),this.validateConfiguration_0()}function Ne(t){this.names=t}function Te(t){this.discriminator=t}function Le(t,e,n,i,o,r,s,a,c,l,u,h){void 0===t&&(t=!1),void 0===e&&(e=!1),void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===o&&(o=!1),void 0===r&&(r=!0),void 0===s&&(s=" "),void 0===a&&(a=!1),void 0===c&&(c=!1),void 0===l&&(l="type"),void 0===u&&(u=!1),void 0===h&&(h=!0),this.encodeDefaults=t,this.ignoreUnknownKeys=e,this.isLenient=n,this.allowStructuredMapKeys=i,this.prettyPrint=o,this.explicitNulls=r,this.prettyPrintIndent=s,this.coerceInputValues=a,this.useArrayPolymorphism=c,this.classDiscriminator=l,this.allowSpecialFloatingPointValues=u,this.useAlternativeNames=h}function ze(){}function we(){Ae()}function Oe(){Re=this}ge.prototype.encodeToString_tf03ej$=function(t,e){var n=new Zo;try{return to(this,n,t,e),n.toString()}finally{n.release()}},ge.prototype.decodeFromString_awif5v$=function(t,e){var n=new Yo(e),i=new po(this,Mo(),n,t.descriptor,null).decodeSerializableValue_w63s0f$(t);return n.expectEof(),i},ge.prototype.encodeToJsonElement_tf03ej$=function(t,e){return wo(this,e,t)},ge.prototype.decodeFromJsonElement_htt2tq$=function(t,e){return So(this,e,t)},ge.prototype.parseToJsonElement_61zpoe$=function(t){return this.decodeFromString_awif5v$(En(),t)},ge.$metadata$={kind:s,simpleName:"Json",interfaces:[a]},ve.prototype.build_8be2vx$=function(){if(this.useArrayPolymorphism&&!d(this.classDiscriminator,ye))throw _("Class discriminator should not be specified when array polymorphism is specified".toString());if(this.prettyPrint){if(!d(this.prettyPrintIndent,Ee)){var t,e=this.prettyPrintIndent;t:do{var n;for(n=m(e);n.hasNext();){var i=p(n.next()),o=f(i);if(32!==p(o)&&9!==p(o)&&13!==p(o)&&10!==p(o)){t=!1;break t}}t=!0}while(0);if(!t){var r="Only whitespace, tab, newline and carriage return are allowed as pretty print symbols. Had "+this.prettyPrintIndent;throw _(r.toString())}}}else if(!d(this.prettyPrintIndent,Ee))throw _("Indent should not be specified when default printing mode is used".toString());return new Le(this.encodeDefaults,this.ignoreUnknownKeys,this.isLenient,this.allowStructuredMapKeys,this.prettyPrint,this.explicitNulls,this.prettyPrintIndent,this.coerceInputValues,this.useArrayPolymorphism,this.classDiscriminator,this.allowSpecialFloatingPointValues,this.useAlternativeNames)},ve.$metadata$={kind:s,simpleName:"JsonBuilder",interfaces:[]},Ce.prototype.validateConfiguration_0=function(){if(!d(this.serializersModule,o())){var t=new lo(this.configuration.useArrayPolymorphism,this.configuration.classDiscriminator);this.serializersModule.dumpTo_ukvgvw$(t)}},Ce.$metadata$={kind:s,simpleName:"JsonImpl",interfaces:[ge]},Ne.$metadata$={kind:s,simpleName:"JsonNames",interfaces:[g]},Te.$metadata$={kind:s,simpleName:"JsonClassDiscriminator",interfaces:[g]},Le.prototype.toString=function(){return"JsonConfiguration(encodeDefaults="+this.encodeDefaults+", ignoreUnknownKeys="+this.ignoreUnknownKeys+", isLenient="+this.isLenient+", allowStructuredMapKeys="+this.allowStructuredMapKeys+", prettyPrint="+this.prettyPrint+", explicitNulls="+this.explicitNulls+", prettyPrintIndent='"+this.prettyPrintIndent+"', coerceInputValues="+this.coerceInputValues+", useArrayPolymorphism="+this.useArrayPolymorphism+", classDiscriminator='"+this.classDiscriminator+"', allowSpecialFloatingPointValues="+this.allowSpecialFloatingPointValues+")"},Le.$metadata$={kind:s,simpleName:"JsonConfiguration",interfaces:[]},ze.$metadata$={kind:C,simpleName:"JsonDecoder",interfaces:[T,N]},Oe.prototype.serializer=function(){return En()},Oe.$metadata$={kind:r,simpleName:"Companion",interfaces:[]};var Re=null;function Ae(){return null===Re&&new Oe,Re}function xe(){De(),we.call(this)}function Ie(){Ue=this}we.$metadata$={kind:s,simpleName:"JsonElement",interfaces:[]},xe.prototype.toString=function(){return this.content},Ie.prototype.serializer=function(){return Sn()},Ie.$metadata$={kind:r,simpleName:"Companion",interfaces:[]};var Ue=null;function De(){return null===Ue&&new Ie,Ue}function Pe(t){return null==t?Fe():new je(t,!1)}function Me(t){return null==t?Fe():new je(t,!1)}function ke(t){return null==t?Fe():new je(t,!0)}function je(t,e){xe.call(this),this.isString_jhh1on$_0=e,this.content_prrjtz$_0=t.toString()}function Ge(){qe=this,xe.call(this),this.content_w1vkof$_0="null"}xe.$metadata$={kind:s,simpleName:"JsonPrimitive",interfaces:[we]},Object.defineProperty(je.prototype,"isString",{get:function(){return this.isString_jhh1on$_0}}),Object.defineProperty(je.prototype,"content",{configurable:!0,get:function(){return this.content_prrjtz$_0}}),je.prototype.toString=function(){var t;if(this.isString){var e=k();yo(e,this.content),t=e.toString()}else t=this.content;return t},je.prototype.equals=function(t){var n;return this===t||!(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))&&(e.isType(t,je)||E(),this.isString===t.isString&&!!d(this.content,t.content))},je.prototype.hashCode=function(){var t=L(this.isString);return t=(31*t|0)+L(this.content)|0},je.$metadata$={kind:s,simpleName:"JsonLiteral",interfaces:[xe]},Object.defineProperty(Ge.prototype,"isString",{configurable:!0,get:function(){return!1}}),Object.defineProperty(Ge.prototype,"content",{configurable:!0,get:function(){return this.content_w1vkof$_0}}),Ge.prototype.serializer=function(){return Nn()},Ge.$metadata$={kind:r,simpleName:"JsonNull",interfaces:[z,xe]};var qe=null;function Fe(){return null===qe&&new Ge,qe}function Be(t){Ke(),we.call(this),this.content_0=t}function We(t){var e=t.key,n=t.value,i=k();return yo(i,e),i.append_s8itvh$(58),i.append_s8jyv4$(n),i.toString()}function He(){Ve=this}Be.prototype.equals=function(t){return d(this.content_0,t)},Be.prototype.hashCode=function(){return L(this.content_0)},Be.prototype.toString=function(){return w(this.content_0.entries,",","{","}",void 0,void 0,We)},He.prototype.serializer=function(){return xn()},He.$metadata$={kind:r,simpleName:"Companion",interfaces:[]};var Ve=null;function Ke(){return null===Ve&&new He,Ve}function Xe(t){Qe(),we.call(this),this.content_0=t}function Je(){Ye=this}Object.defineProperty(Be.prototype,"entries",{configurable:!0,get:function(){return this.content_0.entries}}),Object.defineProperty(Be.prototype,"keys",{configurable:!0,get:function(){return this.content_0.keys}}),Object.defineProperty(Be.prototype,"size",{configurable:!0,get:function(){return this.content_0.size}}),Object.defineProperty(Be.prototype,"values",{configurable:!0,get:function(){return this.content_0.values}}),Be.prototype.containsKey_11rb$=function(t){return this.content_0.containsKey_11rb$(t)},Be.prototype.containsValue_11rc$=function(t){return this.content_0.containsValue_11rc$(t)},Be.prototype.get_11rb$=function(t){return this.content_0.get_11rb$(t)},Be.prototype.isEmpty=function(){return this.content_0.isEmpty()},Be.$metadata$={kind:s,simpleName:"JsonObject",interfaces:[O,we]},Xe.prototype.equals=function(t){return d(this.content_0,t)},Xe.prototype.hashCode=function(){return L(this.content_0)},Xe.prototype.toString=function(){return w(this.content_0,",","[","]")},Je.prototype.serializer=function(){return kn()},Je.$metadata$={kind:r,simpleName:"Companion",interfaces:[]};var Ye=null;function Qe(){return null===Ye&&new Je,Ye}function Ze(t){var n,i;return null!=(i=e.isType(n=t,xe)?n:null)?i:ln(t,"JsonPrimitive")}function tn(t){return A(t.content)}function en(t){return I(t.content)}function nn(t){return U(t.content)}function on(t){return D(t.content)}function rn(t){return P(t.content)}function sn(t){return D(t.content)}function an(t){return bo(t.content)}function cn(t){return e.isType(t,Ge)?null:t.content}function ln(t,n){throw _("Element "+e.getKClassFromExpression(t)+" is not a "+n)}function un(){this.content_0=j()}function hn(){$n=this,this.descriptor_u8kpse$_0=v("kotlinx.serialization.json.JsonElement",S.SEALED,[],gn)}function dn(){return Sn().descriptor}function pn(){return Nn().descriptor}function _n(){return zn().descriptor}function mn(){return xn().descriptor}function fn(){return kn().descriptor}function gn(t){return t.element_vxrguq$("JsonPrimitive",Wn(dn)),t.element_vxrguq$("JsonNull",Wn(pn)),t.element_vxrguq$("JsonLiteral",Wn(_n)),t.element_vxrguq$("JsonObject",Wn(mn)),t.element_vxrguq$("JsonArray",Wn(fn)),q}Object.defineProperty(Xe.prototype,"size",{configurable:!0,get:function(){return this.content_0.size}}),Xe.prototype.contains_11rb$=function(t){return this.content_0.contains_11rb$(t)},Xe.prototype.containsAll_brywnq$=function(t){return this.content_0.containsAll_brywnq$(t)},Xe.prototype.get_za3lpa$=function(t){return this.content_0.get_za3lpa$(t)},Xe.prototype.indexOf_11rb$=function(t){return this.content_0.indexOf_11rb$(t)},Xe.prototype.isEmpty=function(){return this.content_0.isEmpty()},Xe.prototype.iterator=function(){return this.content_0.iterator()},Xe.prototype.lastIndexOf_11rb$=function(t){return this.content_0.lastIndexOf_11rb$(t)},Xe.prototype.listIterator=function(){return this.content_0.listIterator()},Xe.prototype.listIterator_za3lpa$=function(t){return this.content_0.listIterator_za3lpa$(t)},Xe.prototype.subList_vux9f0$=function(t,e){return this.content_0.subList_vux9f0$(t,e)},Xe.$metadata$={kind:s,simpleName:"JsonArray",interfaces:[R,we]},un.prototype.put_zafu29$=function(t,e){return this.content_0.put_xwzc9p$(t,e)},un.prototype.build=function(){return new Be(this.content_0)},un.$metadata$={kind:s,simpleName:"JsonObjectBuilder",interfaces:[]},Object.defineProperty(hn.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_u8kpse$_0}}),hn.prototype.serialize_55azsf$=function(t,n){jn(t),e.isType(n,xe)?t.encodeSerializableValue_tf03ej$(Sn(),n):e.isType(n,Be)?t.encodeSerializableValue_tf03ej$(xn(),n):e.isType(n,Xe)&&t.encodeSerializableValue_tf03ej$(kn(),n)},hn.prototype.deserialize_bq71mq$=function(t){return qn(t).decodeJsonElement()},hn.$metadata$={kind:r,simpleName:"JsonElementSerializer",interfaces:[$]};var $n=null;function En(){return null===$n&&new hn,$n}function yn(){bn=this,this.descriptor_1d7xi5$_0=v("kotlinx.serialization.json.JsonPrimitive",F.STRING,[])}Object.defineProperty(yn.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_1d7xi5$_0}}),yn.prototype.serialize_55azsf$=function(t,n){var i;return jn(t),e.isType(n,Ge)?t.encodeSerializableValue_tf03ej$(Nn(),Fe()):t.encodeSerializableValue_tf03ej$(zn(),e.isType(i=n,je)?i:E())},yn.prototype.deserialize_bq71mq$=function(t){var n=qn(t).decodeJsonElement();if(!e.isType(n,xe))throw ni(-1,"Unexpected JSON element, expected JsonPrimitive, had "+e.getKClassFromExpression(n),n.toString());return n},yn.$metadata$={kind:r,simpleName:"JsonPrimitiveSerializer",interfaces:[$]};var bn=null;function Sn(){return null===bn&&new yn,bn}function vn(){Cn=this,this.descriptor_kuqqdr$_0=v("kotlinx.serialization.json.JsonNull",B.ENUM,[])}Object.defineProperty(vn.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_kuqqdr$_0}}),vn.prototype.serialize_55azsf$=function(t,e){jn(t),t.encodeNull()},vn.prototype.deserialize_bq71mq$=function(t){if(Gn(t),t.decodeNotNullMark())throw new Zn("Expected 'null' literal");return t.decodeNull(),Fe()},vn.$metadata$={kind:r,simpleName:"JsonNullSerializer",interfaces:[$]};var Cn=null;function Nn(){return null===Cn&&new vn,Cn}function Tn(){Ln=this,this.descriptor_fnzu3f$_0=K("kotlinx.serialization.json.JsonLiteral",F.STRING)}Object.defineProperty(Tn.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_fnzu3f$_0}}),Tn.prototype.serialize_55azsf$=function(t,e){var n,i,o,r;return jn(t),e.isString?t.encodeString_61zpoe$(e.content):null!=(n=nn(e))?t.encodeLong_s8cxhz$(n):null==(i=W(e.content))?null!=(o=rn(e))?t.encodeDouble_14dthe$(o):null!=(r=an(e))?t.encodeBoolean_6taknv$(r):void t.encodeString_61zpoe$(e.content):void t.encodeInline_24f42q$(V(H.Companion).descriptor).encodeLong_s8cxhz$(i.data)},Tn.prototype.deserialize_bq71mq$=function(t){var n=qn(t).decodeJsonElement();if(!e.isType(n,je))throw ni(-1,"Unexpected JSON element, expected JsonLiteral, had "+e.getKClassFromExpression(n),n.toString());return n},Tn.$metadata$={kind:r,simpleName:"JsonLiteralSerializer",interfaces:[$]};var Ln=null;function zn(){return null===Ln&&new Tn,Ln}function wn(){An=this,this.descriptor_a992tj$_0=(null===Rn&&new On,Rn)}function On(){Rn=this,this.$delegate_p32uvu$_0=Y(J(X),En()).descriptor,this.serialName_yjsqqv$_0="kotlinx.serialization.json.JsonObject"}Object.defineProperty(On.prototype,"serialName",{configurable:!0,get:function(){return this.serialName_yjsqqv$_0}}),Object.defineProperty(On.prototype,"annotations",{configurable:!0,get:function(){return this.$delegate_p32uvu$_0.annotations}}),Object.defineProperty(On.prototype,"elementsCount",{configurable:!0,get:function(){return this.$delegate_p32uvu$_0.elementsCount}}),Object.defineProperty(On.prototype,"isInline",{configurable:!0,get:function(){return this.$delegate_p32uvu$_0.isInline}}),Object.defineProperty(On.prototype,"isNullable",{configurable:!0,get:function(){return this.$delegate_p32uvu$_0.isNullable}}),Object.defineProperty(On.prototype,"kind",{configurable:!0,get:function(){return this.$delegate_p32uvu$_0.kind}}),On.prototype.getElementAnnotations_za3lpa$=function(t){return this.$delegate_p32uvu$_0.getElementAnnotations_za3lpa$(t)},On.prototype.getElementDescriptor_za3lpa$=function(t){return this.$delegate_p32uvu$_0.getElementDescriptor_za3lpa$(t)},On.prototype.getElementIndex_61zpoe$=function(t){return this.$delegate_p32uvu$_0.getElementIndex_61zpoe$(t)},On.prototype.getElementName_za3lpa$=function(t){return this.$delegate_p32uvu$_0.getElementName_za3lpa$(t)},On.prototype.isElementOptional_za3lpa$=function(t){return this.$delegate_p32uvu$_0.isElementOptional_za3lpa$(t)},On.$metadata$={kind:r,simpleName:"JsonObjectDescriptor",interfaces:[Q]};var Rn=null;Object.defineProperty(wn.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_a992tj$_0}}),wn.prototype.serialize_55azsf$=function(t,e){jn(t),Y(J(X),En()).serialize_55azsf$(t,e)},wn.prototype.deserialize_bq71mq$=function(t){return Gn(t),new Be(Y(J(X),En()).deserialize_bq71mq$(t))},wn.$metadata$={kind:r,simpleName:"JsonObjectSerializer",interfaces:[$]};var An=null;function xn(){return null===An&&new wn,An}function In(){Mn=this,this.descriptor_935ivj$_0=(null===Dn&&new Un,Dn)}function Un(){Dn=this,this.$delegate_az4ckk$_0=Z(En()).descriptor,this.serialName_bqe1pt$_0="kotlinx.serialization.json.JsonArray"}Object.defineProperty(Un.prototype,"serialName",{configurable:!0,get:function(){return this.serialName_bqe1pt$_0}}),Object.defineProperty(Un.prototype,"annotations",{configurable:!0,get:function(){return this.$delegate_az4ckk$_0.annotations}}),Object.defineProperty(Un.prototype,"elementsCount",{configurable:!0,get:function(){return this.$delegate_az4ckk$_0.elementsCount}}),Object.defineProperty(Un.prototype,"isInline",{configurable:!0,get:function(){return this.$delegate_az4ckk$_0.isInline}}),Object.defineProperty(Un.prototype,"isNullable",{configurable:!0,get:function(){return this.$delegate_az4ckk$_0.isNullable}}),Object.defineProperty(Un.prototype,"kind",{configurable:!0,get:function(){return this.$delegate_az4ckk$_0.kind}}),Un.prototype.getElementAnnotations_za3lpa$=function(t){return this.$delegate_az4ckk$_0.getElementAnnotations_za3lpa$(t)},Un.prototype.getElementDescriptor_za3lpa$=function(t){return this.$delegate_az4ckk$_0.getElementDescriptor_za3lpa$(t)},Un.prototype.getElementIndex_61zpoe$=function(t){return this.$delegate_az4ckk$_0.getElementIndex_61zpoe$(t)},Un.prototype.getElementName_za3lpa$=function(t){return this.$delegate_az4ckk$_0.getElementName_za3lpa$(t)},Un.prototype.isElementOptional_za3lpa$=function(t){return this.$delegate_az4ckk$_0.isElementOptional_za3lpa$(t)},Un.$metadata$={kind:r,simpleName:"JsonArrayDescriptor",interfaces:[Q]};var Dn=null;Object.defineProperty(In.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_935ivj$_0}}),In.prototype.serialize_55azsf$=function(t,e){jn(t),Z(En()).serialize_55azsf$(t,e)},In.prototype.deserialize_bq71mq$=function(t){return Gn(t),new Xe(Z(En()).deserialize_bq71mq$(t))},In.$metadata$={kind:r,simpleName:"JsonArraySerializer",interfaces:[$]};var Pn,Mn=null;function kn(){return null===Mn&&new In,Mn}function jn(t){Fn(t)}function Gn(t){qn(t)}function qn(t){var n,i;if(null==(i=e.isType(n=t,ze)?n:null))throw M("This serializer can be used only with Json format.Expected Decoder to be JsonDecoder, got "+e.getKClassFromExpression(t));return i}function Fn(t){var n,i;if(null==(i=e.isType(n=t,Hn)?n:null))throw M("This serializer can be used only with Json format.Expected Encoder to be JsonEncoder, got "+e.getKClassFromExpression(t));return i}function Bn(t){this.original_yfx7kf$_0=tt(t)}function Wn(t){return new Bn(t)}function Hn(){}function Vn(t,e){return e.configuration.prettyPrint?new Jn(t,e):new Kn(t)}function Kn(t){this.writer_8be2vx$=t,this.writingFirst_rjxylk$_0=!0}function Xn(t,e){Kn.call(this,t),this.forceQuoting_0=e}function Jn(t,e){Kn.call(this,t),this.json_0=e,this.level_0=0}function Yn(t){this.origin_0=new at(t,st("readIfAbsent",function(t,e,n){return t.readIfAbsent_0(e,n)}.bind(null,this))),this.isUnmarkedNull_8be2vx$_j9fndk$_0=!1}function Qn(t){b(t,this),this.name="JsonException"}function Zn(t){Qn.call(this,t),this.name="JsonDecodingException"}function ti(t,e){return new Zn(t>=0?"Unexpected JSON token at offset "+t+": "+e:e)}function ei(t){Qn.call(this,t),this.name="JsonEncodingException"}function ni(t,e,n){return ti(t,e+"\nJSON input: "+ui(n,t))}function ii(t,e){return new ei("Unexpected special floating-point value "+t.toString()+". By default, non-finite floating point values are prohibited because they do not conform JSON specification. It is possible to deserialize them using 'JsonBuilder.allowSpecialFloatingPointValues = true'\nCurrent output: "+ui(e))}function oi(t,e){t.fail_h6sd2a$("Unexpected special floating-point value "+e.toString()+". By default, non-finite floating point values are prohibited because they do not conform JSON specification",void 0,Ni)}function ri(t){return new ei("Value of type '"+t.serialName+"' can't be used in JSON as a key in the map. It should have either primitive or enum kind, but its kind is '"+t.kind+"'.\n"+Li)}function si(t,e,n){return new ei(ci(t,e,n))}function ai(t,e,n){return ti(-1,ci(t,e,n))}function ci(t,e,n){return"Unexpected special floating-point value "+t.toString()+" with key "+e+". By default, non-finite floating point values are prohibited because they do not conform JSON specification. It is possible to deserialize them using 'JsonBuilder.allowSpecialFloatingPointValues = true'\nCurrent output: "+ui(n)}function li(t,e){return ti(-1,"Encountered unknown key '"+t+"'.\nUse 'ignoreUnknownKeys = true' in 'Json {}' builder to ignore unknown keys.\nCurrent input: "+ui(e))}function ui(t,n){if(void 0===n&&(n=-1),t.length<200)return t;if(-1===n){var i,o=t.length-60|0;return o<=0?t:(i=t.length,"....."+e.subSequence(t,o,i).toString())}var r=n-30|0,s=n+30|0,a=r<=0?"":".....",c=s>=t.length?"":".....",l=lt(r,0),u=ut(s,t.length);return a+e.subSequence(t,l,u).toString()+c}function hi(t){var n,i,o,r,s,a=(s=t,function(t,n,i){var o;if((e.isType(o=t,O)?o:E()).containsKey_11rb$(n))throw new Qn("The suggested name '"+n+"' for property "+s.getElementName_za3lpa$(i)+" is already one of the names for property "+s.getElementName_za3lpa$(ht(t,n))+" in "+s);t.put_xwzc9p$(n,i)}),c={v:null};n=t.elementsCount;for(var l=0;l=0&&(t.append_pdl1vj$("."),t.append_pdl1vj$(o.getElementName_za3lpa$(r)))}else o!==Qi()&&(t.append_pdl1vj$("["),t.append_pdl1vj$("'"),t.append_s8jyv4$(o),t.append_pdl1vj$("'"),t.append_pdl1vj$("]"))}return t.toString()},_i.prototype.prettyString_0=function(t){var n,i,o;return null!=(o=null!=(i=e.isType(n=t,Q)?n:null)?i.serialName:null)?o:y(t)},_i.prototype.resize_0=function(){var t=2*this.currentDepth_0|0;this.currentObjectPath_0=ft(this.currentObjectPath_0,t),this.indicies_0=gt(this.indicies_0,t)},_i.prototype.toString=function(){return this.getPath()},_i.$metadata$={kind:s,simpleName:"JsonPath",interfaces:[]},Zi.$metadata$={kind:C,simpleName:"JsonWriter",interfaces:[]},eo.prototype.readObject_0=function(){var t=this.lexer_0.consumeNextToken_s8j3t7$(Wi);this.lexer_0.peekNextToken()===Fi&&this.lexer_0.fail_h6sd2a$("Unexpected leading comma");for(var e=j();this.lexer_0.canConsumeValue();){var n=this.isLenient_0?this.lexer_0.consumeStringLenient():this.lexer_0.consumeString();this.lexer_0.consumeNextToken_s8j3t7$(Bi);var i=this.read();switch(e.put_xwzc9p$(n,i),t=this.lexer_0.consumeNextToken()){case 4:case 7:break;default:this.lexer_0.fail_h6sd2a$("Expected end of the object or comma")}}return t===Wi?this.lexer_0.consumeNextToken_s8j3t7$(Hi):t===Fi&&this.lexer_0.fail_h6sd2a$("Unexpected trailing comma"),new Be(e)},no.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[Et]},no.prototype=Object.create(Et.prototype),no.prototype.constructor=no,no.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$lastToken=this.$this.lexer_0.consumeNextToken_s8j3t7$(Wi),this.$this.lexer_0.peekNextToken()===Fi&&this.$this.lexer_0.fail_h6sd2a$("Unexpected leading comma"),this.local$result=j(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.$this.lexer_0.canConsumeValue()){this.state_0=4;continue}if(this.local$key=this.$this.isLenient_0?this.$this.lexer_0.consumeStringLenient():this.$this.lexer_0.consumeString(),this.$this.lexer_0.consumeNextToken_s8j3t7$(Bi),this.state_0=3,this.result_0=this.local$$receiver.callRecursive_11rb$(q,this),this.result_0===$t)return $t;continue;case 3:var t=this.result_0;switch(this.local$result.put_xwzc9p$(this.local$key,t),this.local$lastToken=this.$this.lexer_0.consumeNextToken(),this.local$lastToken){case 4:case 7:break;default:this.$this.lexer_0.fail_h6sd2a$("Expected end of the object or comma")}this.state_0=2;continue;case 4:return this.local$lastToken===Wi?this.$this.lexer_0.consumeNextToken_s8j3t7$(Hi):this.local$lastToken===Fi&&this.$this.lexer_0.fail_h6sd2a$("Unexpected trailing comma"),new Be(this.local$result);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},eo.prototype.readObject_1=function(t,e,n){var i=new no(this,t,e);return n?i:i.doResume(null)},eo.prototype.readObjectImpl_0=h((function(){var t=e.kotlin.collections.LinkedHashMap_init_q3lmfv$;return function(e){var n=this.lexer_0.consumeNextToken_s8j3t7$(Wi);this.lexer_0.peekNextToken()===Fi&&this.lexer_0.fail_h6sd2a$("Unexpected leading comma");for(var i=t();this.lexer_0.canConsumeValue();){var o=this.isLenient_0?this.lexer_0.consumeStringLenient():this.lexer_0.consumeString();this.lexer_0.consumeNextToken_s8j3t7$(Bi);var r=e();switch(i.put_xwzc9p$(o,r),n=this.lexer_0.consumeNextToken()){case 4:case 7:break;default:this.lexer_0.fail_h6sd2a$("Expected end of the object or comma")}}return n===Wi?this.lexer_0.consumeNextToken_s8j3t7$(Hi):n===Fi&&this.lexer_0.fail_h6sd2a$("Unexpected trailing comma"),new Be(i)}})),eo.prototype.readArray_0=function(){var t=this.lexer_0.consumeNextToken();this.lexer_0.peekNextToken()===Fi&&this.lexer_0.fail_h6sd2a$("Unexpected leading comma");for(var e=G();this.lexer_0.canConsumeValue();){var n=this.read();if(e.add_11rb$(n),(t=this.lexer_0.consumeNextToken())!==Fi){var i,o=this.lexer_0,r=t===Ki;i=o.currentPosition_0,r||o.fail_h6sd2a$("Expected end of the array or comma",i)}}return t===Vi?this.lexer_0.consumeNextToken_s8j3t7$(Ki):t===Fi&&this.lexer_0.fail_h6sd2a$("Unexpected trailing comma"),new Xe(e)},eo.prototype.readValue_0=function(t){var e=this.isLenient_0||!t?this.lexer_0.consumeStringLenient():this.lexer_0.consumeString();return!t&&d(e,zi)?Fe():new je(e,t)},eo.prototype.read=function(){var t,e=this.lexer_0.peekNextToken();switch(e){case 1:t=this.readValue_0(!0);break;case 0:t=this.readValue_0(!1);break;case 6:var n=200===(this.stackDepth_0=this.stackDepth_0+1|0,this.stackDepth_0)?this.readDeepRecursive_0():this.readObject_0();this.stackDepth_0=this.stackDepth_0-1|0,t=n;break;case 8:t=this.readArray_0();break;default:t=this.lexer_0.fail_h6sd2a$("Cannot begin reading element, unexpected token: "+e)}return t},io.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[Et]},io.prototype=Object.create(Et.prototype),io.prototype.constructor=io,io.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:switch(this.local$this$JsonTreeReader.lexer_0.peekNextToken()){case 1:return this.local$this$JsonTreeReader.readValue_0(!0);case 0:return this.local$this$JsonTreeReader.readValue_0(!1);case 6:if(this.state_0=2,this.result_0=this.local$this$JsonTreeReader.readObject_1(this.local$$receiver,this),this.result_0===$t)return $t;continue;case 8:return this.local$this$JsonTreeReader.readArray_0();default:return this.local$this$JsonTreeReader.lexer_0.fail_h6sd2a$("Can't begin reading element, unexpected token")}case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},eo.prototype.readDeepRecursive_0=function(){return bt(new yt((t=this,function(e,n,i,o){var r=new io(t,e,n,this,i);return o?r:r.doResume(null)})),q);var t},eo.$metadata$={kind:s,simpleName:"JsonTreeReader",interfaces:[]},lo.prototype.contextual_vhoqnv$=function(t,e){},lo.prototype.polymorphic_kfyidi$=function(t,e,n){var i=n.descriptor;this.checkKind_0(i,e),this.useArrayPolymorphism_0||this.checkDiscriminatorCollisions_0(i,e)},lo.prototype.checkKind_0=function(t,n){var i=t.kind;if(e.isType(i,S)||d(i,B.CONTEXTUAL))throw _("Serializer for "+y(n.simpleName)+" can't be registered as a subclass for polymorphic serialization because its kind "+i+" is not concrete. To work with multiple hierarchies, register it as a base class.");if(!this.useArrayPolymorphism_0&&(d(i,mt.LIST)||d(i,mt.MAP)||e.isType(i,F)||e.isType(i,Object.getPrototypeOf(B.ENUM).constructor)))throw _("Serializer for "+y(n.simpleName)+" of kind "+i+" cannot be serialized polymorphically with class discriminator.")},lo.prototype.checkDiscriminatorCollisions_0=function(t,e){var n;n=t.elementsCount;for(var i=0;i=0&&t===Ui&&d(this.consumeStringLenient(),zi)&&this.fail_h6sd2a$("Expected string literal but 'null' literal was found",this.currentPosition_0-4|0,Ci),this.fail_8e99oo$(Ko(t))},Jo.prototype.fail_8e99oo$=function(t){var e;switch(t){case 1:e="quotation mark '\"'";break;case 4:e="comma ','";break;case 5:e="colon ':'";break;case 6:e="start of the object '{'";break;case 7:e="end of the object '}'";break;case 8:e="start of the array '['";break;case 9:e="end of the array ']'";break;default:e="valid token"}var n=e,i=this.currentPosition_0===this.source.length||this.currentPosition_0<=0?"EOF":String.fromCharCode(this.source.charCodeAt(this.currentPosition_0-1|0));this.fail_h6sd2a$("Expected "+n+", but had '"+i+"' instead",this.currentPosition_0-1|0)},Jo.prototype.peekNextToken=function(){for(var t=this.source,e=this.currentPosition_0;-1!==(e=this.prefetchOrEof_za3lpa$(e));){var n=t.charCodeAt(e);if(32!==n&&10!==n&&13!==n&&9!==n)return this.currentPosition_0=e,Ko(n);e=e+1|0}return this.currentPosition_0=e,Xi},Jo.prototype.tryConsumeNotNull=function(){var t=this.skipWhitespaces();t=this.prefetchOrEof_za3lpa$(t);var e=this.source.length-t|0;if(e<4||-1===t)return!0;for(var n=0;n<=3;n++)if(zi.charCodeAt(n)!==this.source.charCodeAt(t+n|0))return!0;return e>4&&Ko(this.source.charCodeAt(t+4|0))===ki||(this.currentPosition_0=t+4|0,!1)},Jo.prototype.skipWhitespaces=function(){for(var t=this.currentPosition_0;-1!==(t=this.prefetchOrEof_za3lpa$(t));){var e=this.source.charCodeAt(t);if(32!==e&&10!==e&&13!==e&&9!==e)break;t=t+1|0}return this.currentPosition_0=t,t},Jo.prototype.peekString_6taknv$=function(t){var e,n=this.peekNextToken();if(t){if(n!==ji&&n!==ki)return null;e=this.consumeStringLenient()}else{if(n!==ji)return null;e=this.consumeString()}var i=e;return this.peekedString_0=i,i},Jo.prototype.indexOf_s9u7hn$=function(t,e){return ae(this.source,t,e)},Jo.prototype.substring_vux9f0$=function(t,n){var i=this.source;return e.subSequence(i,t,n).toString()},Jo.prototype.consumeString=function(){return null!=this.peekedString_0?this.takePeeked_0():this.consumeKeyString()},Jo.prototype.consumeString2=function(t,e,n){for(var i=n,o=e,r=t.charCodeAt(i),s=!1;r!==Ui;)r===Di?(s=!0,-1===(i=this.prefetchOrEof_za3lpa$(this.appendEscape_0(o,i)))&&this.fail_h6sd2a$("EOF",i),o=i):(i=i+1|0)>=t.length&&(s=!0,this.appendRange_vux9f0$(o,i),-1===(i=this.prefetchOrEof_za3lpa$(i))&&this.fail_h6sd2a$("EOF",i),o=i),r=t.charCodeAt(i);var a=s?this.decodedString_0(o,i):this.substring_vux9f0$(o,i);return this.currentPosition_0=i+1|0,a},Jo.prototype.appendEscape_0=function(t,e){return this.appendRange_vux9f0$(t,e),this.appendEsc_0(e+1|0)},Jo.prototype.decodedString_0=function(t,e){this.appendRange_vux9f0$(t,e);var n=this.escapedString_0.toString();return this.escapedString_0.setLength_za3lpa$(0),n},Jo.prototype.takePeeked_0=function(){var t=pt(this.peekedString_0);return this.peekedString_0=null,t},Jo.prototype.consumeStringLenientNotNull=function(){var t=this.consumeStringLenient();return d(t,zi)&&this.wasUnquotedString_0()&&this.fail_h6sd2a$("Unexpected 'null' value instead of string literal"),t},Jo.prototype.wasUnquotedString_0=function(){return this.source.charCodeAt(this.currentPosition_0-1|0)!==Ui},Jo.prototype.consumeStringLenient=function(){if(null!=this.peekedString_0)return this.takePeeked_0();var t=this.skipWhitespaces();(t>=this.source.length||-1===t)&&this.fail_h6sd2a$("EOF",t);var e=Ko(this.source.charCodeAt(t));if(e===ji)return this.consumeString();e!==ki&&this.fail_h6sd2a$("Expected beginning of the string, but got "+String.fromCharCode(this.source.charCodeAt(t)));for(var n=!1;Ko(this.source.charCodeAt(t))===ki;)if((t=t+1|0)>=this.source.length){n=!0,this.appendRange_vux9f0$(this.currentPosition_0,t);var i=this.prefetchOrEof_za3lpa$(t);if(-1===i)return this.currentPosition_0=t,this.decodedString_0(0,0);t=i}var o=n?this.decodedString_0(this.currentPosition_0,t):this.substring_vux9f0$(this.currentPosition_0,t);return this.currentPosition_0=t,o},Jo.prototype.appendRange_vux9f0$=function(t,e){this.escapedString_0.append_ezbsdh$(this.source,t,e)},Jo.prototype.appendEsc_0=function(t){var e,n=t;-1===(n=this.prefetchOrEof_za3lpa$(n))&&this.fail_h6sd2a$("Expected escape sequence to continue, got EOF");var i=this.source.charCodeAt((n=(e=n)+1|0,e));if(i===Mi)return this.appendHex_0(this.source,n);var o=Xo(0|i);return o===Pi&&this.fail_h6sd2a$("Invalid escaped char '"+String.fromCharCode(i)+"'"),this.escapedString_0.append_s8itvh$(o),n},Jo.prototype.appendHex_0=function(t,e){return(e+4|0)>=t.length?(this.currentPosition_0=e,this.ensureHaveChars(),(this.currentPosition_0+4|0)>=t.length&&this.fail_h6sd2a$("Unexpected EOF during unicode escape"),this.appendHex_0(t,this.currentPosition_0)):(this.escapedString_0.append_s8itvh$(Ht((this.fromHexChar_0(t,e)<<12)+(this.fromHexChar_0(t,e+1|0)<<8)+(this.fromHexChar_0(t,e+2|0)<<4)+this.fromHexChar_0(t,e+3|0)|0)),e+4|0)},Jo.prototype.require_wqn2ds$=u("kotlinx-serialization-kotlinx-serialization-json-js-legacy.kotlinx.serialization.json.internal.AbstractJsonLexer.require_wqn2ds$",(function(t,e,n){void 0===e&&(e=this.currentPosition_0),t||this.fail_h6sd2a$(n(),e)})),Jo.prototype.fromHexChar_0=function(t,e){var n=t.charCodeAt(e);return new ce(48,57).contains_mef7kx$(n)?(0|n)-48|0:new ce(97,102).contains_mef7kx$(n)?(0|n)-97+10|0:new ce(65,70).contains_mef7kx$(n)?(0|n)-65+10|0:this.fail_h6sd2a$("Invalid toHexChar char '"+String.fromCharCode(n)+"' in unicode escape")},Jo.prototype.skipElement_6taknv$=function(t){var e=G(),n=this.peekNextToken();if(n===Vi||n===Wi)for(;;)if((n=this.peekNextToken())!==ji){switch(n){case 8:case 6:e.add_11rb$(n);break;case 9:if(le(e)!==Vi)throw ni(this.currentPosition_0,"found ] instead of } at path: "+this.path,this.source);ue(e);break;case 7:if(le(e)!==Wi)throw ni(this.currentPosition_0,"found } instead of ] at path: "+this.path,this.source);ue(e);break;case 10:this.fail_h6sd2a$("Unexpected end of input due to malformed JSON during ignoring unknown keys")}if(this.consumeNextToken(),0===e.size)return}else t?this.consumeStringLenient():this.consumeKeyString();else this.consumeStringLenient()},Jo.prototype.toString=function(){return"JsonReader(source='"+this.source+"', currentPosition="+this.currentPosition_0+")"},Jo.prototype.failOnUnknownKey_61zpoe$=function(t){var e=this.substring_vux9f0$(0,this.currentPosition_0),n=he(e,t);this.fail_h6sd2a$("Encountered an unknown key '"+t+"'",n,Ti)},Jo.prototype.fail_h6sd2a$=function(t,e,n){void 0===e&&(e=this.currentPosition_0),void 0===n&&(n="");var i=0===n.length?"":"\n"+n;throw ni(e,t+" at path: "+this.path.getPath()+i,this.source)},Jo.prototype.consumeNumericLiteral=function(){var t,n=this.skipWhitespaces();((n=this.prefetchOrEof_za3lpa$(n))>=this.source.length||-1===n)&&this.fail_h6sd2a$("EOF"),this.source.charCodeAt(n)===Ui?((n=n+1|0)===this.source.length&&this.fail_h6sd2a$("EOF"),t=!0):t=!1;for(var i=t,o=de,r=!1,s=n,a=!0;a;){var c=this.source.charCodeAt(n);if(45!==c){if(Ko(c)!==ki)break;a=(n=n+1|0)!==this.source.length;var l=c-48;0<=l&&l<=9||this.fail_h6sd2a$("Unexpected symbol '"+String.fromCharCode(c)+"' in numeric literal"),(o=o.multiply(e.Long.fromInt(10)).subtract(e.Long.fromInt(l))).toNumber()>0&&this.fail_h6sd2a$("Numeric value overflow")}else n!==s&&this.fail_h6sd2a$("Unexpected symbol '-' in numeric literal"),r=!0,n=n+1|0}return(s===n||r&&s===(n-1|0))&&this.fail_h6sd2a$("Expected numeric literal"),i&&(a||this.fail_h6sd2a$("EOF"),this.source.charCodeAt(n)!==Ui&&this.fail_h6sd2a$("Expected closing quotation mark"),n=n+1|0),this.currentPosition_0=n,r?o:d(o,pe)?this.fail_h6sd2a$("Numeric value overflow"):o.unaryMinus()},Jo.prototype.consumeBoolean=function(){return this.consumeBoolean2(this.skipWhitespaces())},Jo.prototype.consumeBooleanLenient=function(){var t,e=this.skipWhitespaces();e===this.source.length&&this.fail_h6sd2a$("EOF"),this.source.charCodeAt(e)===Ui?(e=e+1|0,t=!0):t=!1;var n=t,i=this.consumeBoolean2(e);return n&&(this.currentPosition_0===this.source.length&&this.fail_h6sd2a$("EOF"),this.source.charCodeAt(this.currentPosition_0)!==Ui&&this.fail_h6sd2a$("Expected closing quotation mark"),this.currentPosition_0=this.currentPosition_0+1|0),i},Jo.prototype.consumeBoolean2=function(t){var e,n,i=this.prefetchOrEof_za3lpa$(t);switch((i>=this.source.length||-1===i)&&this.fail_h6sd2a$("EOF"),32|this.source.charCodeAt((i=(e=i)+1|0,e))){case 116:this.consumeBooleanLiteral_0("rue",i),n=!0;break;case 102:this.consumeBooleanLiteral_0("alse",i),n=!1;break;default:n=this.fail_h6sd2a$("Expected valid boolean literal prefix, but had '"+this.consumeStringLenient()+"'")}return n},Jo.prototype.consumeBooleanLiteral_0=function(t,e){var n,i,o,r;(this.source.length-e|0)>12),cr=Eo(sr>>8),lr=Eo(sr>>4),ur=Eo(sr);rr[sr]="\\u"+String.fromCharCode(ar)+String.fromCharCode(cr)+String.fromCharCode(lr)+String.fromCharCode(ur)}rr[34]='\\"',rr[92]="\\\\",rr[9]="\\t",rr[8]="\\b",rr[10]="\\n",rr[13]="\\r",rr[12]="\\f",gi=rr;for(var hr=new Int8Array(93),dr=0;dr<=31;dr++)hr[dr]=Rt(1);return hr[34]=Rt(34),hr[92]=Rt(92),hr[9]=Rt(116),hr[8]=Rt(98),hr[10]=Rt(110),hr[13]=Rt(114),hr[12]=Rt(102),$i="primitive",vi="Use 'isLenient = true' in 'Json {}` builder to accept non-compliant JSON.",Ci="Use 'coerceInputValues = true' in 'Json {}` builder to coerce nulls to default values.",Ni="It is possible to deserialize them using 'JsonBuilder.allowSpecialFloatingPointValues = true'",Ti="Use 'ignoreUnknownKeys = true' in 'Json {}' builder to ignore unknown keys.",Li="Use 'allowStructuredMapKeys = true' in 'Json {}' builder to convert such maps to [key1, value1, key2, value2,...] arrays.",zi="null",wi=44,Oi=58,Ri=123,Ai=125,xi=91,Ii=93,Ui=34,Di=92,Pi=Ht(0),Mi=117,ki=0,ji=1,Gi=2,qi=3,Fi=4,Bi=5,Wi=6,Hi=7,Vi=8,Ki=9,Xi=10,Ji=Jt.MAX_VALUE,_e.toNumber(),t})?i.apply(e,o):i)||(t.exports=r)},function(t,e,n){"use strict";var i=n(20),o=n(368),r=n(371),s=n(372),a=n(130);function c(t){a.call(this,"digest"),this._hash=t}i(c,a),c.prototype._update=function(t){this._hash.update(t)},c.prototype._final=function(){return this._hash.digest()},t.exports=function(t){return"md5"===(t=t.toLowerCase())?new o:"rmd160"===t||"ripemd160"===t?new r:new c(s(t))}},function(t,e,n){function i(t){return Object.prototype.toString.call(t)}e.isArray=function(t){return Array.isArray?Array.isArray(t):"[object Array]"===i(t)},e.isBoolean=function(t){return"boolean"==typeof t},e.isNull=function(t){return null===t},e.isNullOrUndefined=function(t){return null==t},e.isNumber=function(t){return"number"==typeof t},e.isString=function(t){return"string"==typeof t},e.isSymbol=function(t){return"symbol"==typeof t},e.isUndefined=function(t){return void 0===t},e.isRegExp=function(t){return"[object RegExp]"===i(t)},e.isObject=function(t){return"object"==typeof t&&null!==t},e.isDate=function(t){return"[object Date]"===i(t)},e.isError=function(t){return"[object Error]"===i(t)||t instanceof Error},e.isFunction=function(t){return"function"==typeof t},e.isPrimitive=function(t){return null===t||"boolean"==typeof t||"number"==typeof t||"string"==typeof t||"symbol"==typeof t||void 0===t},e.isBuffer=n(50).Buffer.isBuffer},function(t,e,n){(function(e){t.exports=function(t,n){for(var i=Math.min(t.length,n.length),o=new e(i),r=0;r=this._delta8){var n=(t=this.pending).length%this._delta8;this.pending=t.slice(t.length-n,t.length),0===this.pending.length&&(this.pending=null),t=i.join32(t,0,t.length-n,this.endian);for(var o=0;o>>24&255,i[o++]=t>>>16&255,i[o++]=t>>>8&255,i[o++]=255&t}else for(i[o++]=255&t,i[o++]=t>>>8&255,i[o++]=t>>>16&255,i[o++]=t>>>24&255,i[o++]=0,i[o++]=0,i[o++]=0,i[o++]=0,r=8;rObject(o.a)({},e.root,"secondary"===t.color&&e.colorSecondary,t.filled&&e.filled)})(({theme:t,ownerState:e})=>Object(o.a)({color:(t.vars||t).palette.text.secondary},t.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",["&."+p.a.focused]:{color:(t.vars||t).palette[e.color].main},["&."+p.a.disabled]:{color:(t.vars||t).palette.text.disabled},["&."+p.a.error]:{color:(t.vars||t).palette.error.main}})),g=Object(d.a)("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(t,e)=>e.asterisk})(({theme:t})=>({["&."+p.a.error]:{color:(t.vars||t).palette.error.main}})),$=r.forwardRef((function(t,e){const n=Object(h.a)({props:t,name:"MuiFormLabel"}),{children:r,className:d,component:$="label"}=n,E=Object(i.a)(n,m),y=Object(l.a)(),b=Object(c.a)({props:n,muiFormControl:y,states:["color","required","focused","disabled","error","filled"]}),S=Object(o.a)({},n,{color:b.color||"primary",component:$,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required}),v=(t=>{const{classes:e,color:n,focused:i,disabled:o,error:r,filled:s,required:c}=t,l={root:["root","color"+Object(u.a)(n),o&&"disabled",r&&"error",s&&"filled",i&&"focused",c&&"required"],asterisk:["asterisk",r&&"error"]};return Object(a.a)(l,p.b,e)})(S);return Object(_.jsxs)(f,Object(o.a)({as:$,ownerState:S,className:Object(s.a)(v.root,d),ref:e},E,{children:[r,b.required&&Object(_.jsxs)(g,{ownerState:S,"aria-hidden":!0,className:v.asterisk,children:[" ","*"]})]}))}));e.b=$},function(t,e,n){"use strict";n.d(e,"c",(function(){return b})),n.d(e,"b",(function(){return S}));var i=n(1),o=n(5),r=n(0),s=n(4),a=n(18),c=n(3),l=n(7),u=n(94),h=n(58),d=n(78),p=n(21),_=n(740),m=n(167),f=n(100),g=n(206),$=n(2);const E=["onEntering"],y=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps"];function b(t,e){let n=0;return"number"==typeof e?n=e:"center"===e?n=t.height/2:"bottom"===e&&(n=t.height),n}function S(t,e){let n=0;return"number"==typeof e?n=e:"center"===e?n=t.width/2:"right"===e&&(n=t.width),n}function v(t){return[t.horizontal,t.vertical].map(t=>"number"==typeof t?t+"px":t).join(" ")}function C(t){return"function"==typeof t?t():t}const N=Object(c.a)(m.a,{name:"MuiPopover",slot:"Root",overridesResolver:(t,e)=>e.root})({}),T=Object(c.a)(f.a,{name:"MuiPopover",slot:"Paper",overridesResolver:(t,e)=>e.paper})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),L=r.forwardRef((function(t,e){const n=Object(l.a)({props:t,name:"MuiPopover"}),{action:c,anchorEl:m,anchorOrigin:f={vertical:"top",horizontal:"left"},anchorPosition:L,anchorReference:z="anchorEl",children:w,className:O,container:R,elevation:A=8,marginThreshold:x=16,open:I,PaperProps:U={},transformOrigin:D={vertical:"top",horizontal:"left"},TransitionComponent:P=_.a,transitionDuration:M="auto",TransitionProps:{onEntering:k}={}}=n,j=Object(o.a)(n.TransitionProps,E),G=Object(o.a)(n,y),q=r.useRef(),F=Object(p.a)(q,U.ref),B=Object(i.a)({},n,{anchorOrigin:f,anchorReference:z,elevation:A,marginThreshold:x,PaperProps:U,transformOrigin:D,TransitionComponent:P,transitionDuration:M,TransitionProps:j}),W=(t=>{const{classes:e}=t;return Object(a.a)({root:["root"],paper:["paper"]},g.b,e)})(B),H=r.useCallback(()=>{if("anchorPosition"===z)return L;const t=C(m),e=(t&&1===t.nodeType?t:Object(h.a)(q.current).body).getBoundingClientRect();return{top:e.top+b(e,f.vertical),left:e.left+S(e,f.horizontal)}},[m,f.horizontal,f.vertical,L,z]),V=r.useCallback(t=>({vertical:b(t,D.vertical),horizontal:S(t,D.horizontal)}),[D.horizontal,D.vertical]),K=r.useCallback(t=>{const e={width:t.offsetWidth,height:t.offsetHeight},n=V(e);if("none"===z)return{top:null,left:null,transformOrigin:v(n)};const i=H();let o=i.top-n.vertical,r=i.left-n.horizontal;const s=o+e.height,a=r+e.width,c=Object(d.a)(C(m)),l=c.innerHeight-x,u=c.innerWidth-x;if(ol){const t=s-l;o-=t,n.vertical+=t}if(ru){const t=a-u;r-=t,n.horizontal+=t}return{top:Math.round(o)+"px",left:Math.round(r)+"px",transformOrigin:v(n)}},[m,z,H,V,x]),X=r.useCallback(()=>{const t=q.current;if(!t)return;const e=K(t);null!==e.top&&(t.style.top=e.top),null!==e.left&&(t.style.left=e.left),t.style.transformOrigin=e.transformOrigin},[K]);r.useEffect(()=>{I&&X()}),r.useImperativeHandle(c,()=>I?{updatePosition:()=>{X()}}:null,[I,X]),r.useEffect(()=>{if(!I)return;const t=Object(u.a)(()=>{X()}),e=Object(d.a)(m);return e.addEventListener("resize",t),()=>{t.clear(),e.removeEventListener("resize",t)}},[m,I,X]);let J=M;"auto"!==M||P.muiSupportAuto||(J=void 0);const Y=R||(m?Object(h.a)(C(m)).body:void 0);return Object($.jsx)(N,Object(i.a)({BackdropProps:{invisible:!0},className:Object(s.a)(W.root,O),container:Y,open:I,ref:e,ownerState:B},G,{children:Object($.jsx)(P,Object(i.a)({appear:!0,in:I,onEntering:(t,e)=>{k&&k(t,e),X()},timeout:J},j,{children:Object($.jsx)(T,Object(i.a)({elevation:A},U,{ref:F,className:Object(s.a)(W.paper,U.className),children:w}))}))}))}));e.a=L},function(t,e,n){"use strict";n.d(e,"b",(function(){return u})),n.d(e,"a",(function(){return h}));var i=n(12),o=n(0),r=n(7);const s={previousMonth:"Previous month",nextMonth:"Next month",openPreviousView:"open previous view",openNextView:"open next view",calendarViewSwitchingButtonAriaLabel:t=>"year"===t?"year view is open, switch to calendar view":"calendar view is open, switch to year view",inputModeToggleButtonAriaLabel:(t,e)=>t?`text input view is open, go to ${e} view`:e+" view is open, go to text input view",start:"Start",end:"End",cancelButtonLabel:"Cancel",clearButtonLabel:"Clear",okButtonLabel:"OK",todayButtonLabel:"Today",datePickerDefaultToolbarTitle:"Select date",dateTimePickerDefaultToolbarTitle:"Select date & time",timePickerDefaultToolbarTitle:"Select time",dateRangePickerDefaultToolbarTitle:"Select date range",clockLabelText:(t,e,n)=>`Select ${t}. ${null===e?"No time selected":"Selected time is "+n.format(e,"fullTime")}`,hoursClockNumberText:t=>t+" hours",minutesClockNumberText:t=>t+" minutes",secondsClockNumberText:t=>t+" seconds",openDatePickerDialogue:(t,e)=>t&&e.isValid(e.date(t))?"Choose date, selected date is "+e.format(e.date(t),"fullDate"):"Choose date",openTimePickerDialogue:(t,e)=>t&&e.isValid(e.date(t))?"Choose time, selected time is "+e.format(e.date(t),"fullTime"):"Choose time",timeTableLabel:"pick time",dateTableLabel:"pick date"},a=s;c=s,Object(i.a)({},c);var c,l=n(2);const u=o.createContext(null);function h(t){const e=Object(r.a)({props:t,name:"MuiLocalizationProvider"}),{children:n,dateAdapter:s,dateFormats:c,dateLibInstance:h,locale:d,adapterLocale:p,localeText:_}=e;const m=o.useMemo(()=>new s({locale:null!=p?p:d,formats:c,instance:h}),[s,d,p,c,h]),f=o.useMemo(()=>({minDate:m.date("1900-01-01T00:00:00.000"),maxDate:m.date("2099-12-31T00:00:00.000")}),[m]),g=o.useMemo(()=>({utils:m,defaultDates:f,localeText:Object(i.a)({},a,null!=_?_:{})}),[f,m,_]);return Object(l.jsx)(u.Provider,{value:g,children:n})}},function(t,e,n){"use strict";e.a=function(t){var e=Object.create(null);return function(n){return void 0===e[n]&&(e[n]=t(n)),e[n]}}},function(t,e,n){"use strict";e.a=function(t){var e=new WeakMap;return function(n){if(e.has(n))return e.get(n);var i=t(n);return e.set(n,i),i}}},function(t,e,n){"use strict";n.d(e,"c",(function(){return c})),n.d(e,"a",(function(){return l}));var i=n(1),o=n(0),r=n(7),s=n(737),a=n(2);const c=(t,e)=>Object(i.a)({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},e&&{colorScheme:t.palette.mode}),l=t=>Object(i.a)({color:(t.vars||t).palette.text.primary},t.typography.body1,{backgroundColor:(t.vars||t).palette.background.default,"@media print":{backgroundColor:(t.vars||t).palette.common.white}});e.b=function(t){const e=Object(r.a)({props:t,name:"MuiCssBaseline"}),{children:n,enableColorScheme:u=!1}=e;return Object(a.jsxs)(o.Fragment,{children:[Object(a.jsx)(s.a,{styles:t=>((t,e=!1)=>{var n,o;let r={html:c(t,e),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:t.typography.fontWeightBold},body:Object(i.a)({margin:0},l(t),{"&::backdrop":{backgroundColor:(t.vars||t).palette.background.default}})};const s=null==(n=t.components)||null==(o=n.MuiCssBaseline)?void 0:o.styleOverrides;return s&&(r=[r,s]),r})(t,u)}),n]})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s})),n.d(e,"b",(function(){return h}));var i=n(111),o=n(228),r=n(1024);function s(t,e){e?t.setAttribute("aria-hidden","true"):t.removeAttribute("aria-hidden")}function a(t){return parseInt(Object(o.a)(t).getComputedStyle(t).paddingRight,10)||0}function c(t,e,n,i=[],o){const r=[e,n,...i];[].forEach.call(t.children,t=>{const e=-1===r.indexOf(t),n=!function(t){const e=-1!==["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].indexOf(t.tagName),n="INPUT"===t.tagName&&"hidden"===t.getAttribute("type");return e||n}(t);e&&n&&s(t,o)})}function l(t,e){let n=-1;return t.some((t,i)=>!!e(t)&&(n=i,!0)),n}function u(t,e){const n=[],s=t.container;if(!e.disableScrollLock){if(function(t){const e=Object(i.a)(t);return e.body===t?Object(o.a)(t).innerWidth>e.documentElement.clientWidth:t.scrollHeight>t.clientHeight}(s)){const t=Object(r.a)(Object(i.a)(s));n.push({value:s.style.paddingRight,property:"padding-right",el:s}),s.style.paddingRight=a(s)+t+"px";const e=Object(i.a)(s).querySelectorAll(".mui-fixed");[].forEach.call(e,e=>{n.push({value:e.style.paddingRight,property:"padding-right",el:e}),e.style.paddingRight=a(e)+t+"px"})}let t;if(s.parentNode instanceof DocumentFragment)t=Object(i.a)(s).body;else{const e=s.parentElement,n=Object(o.a)(s);t="HTML"===(null==e?void 0:e.nodeName)&&"scroll"===n.getComputedStyle(e).overflowY?e:s}n.push({value:t.style.overflow,property:"overflow",el:t},{value:t.style.overflowX,property:"overflow-x",el:t},{value:t.style.overflowY,property:"overflow-y",el:t}),t.style.overflow="hidden"}return()=>{n.forEach(({value:t,el:e,property:n})=>{t?e.style.setProperty(n,t):e.style.removeProperty(n)})}}class h{constructor(){this.containers=void 0,this.modals=void 0,this.modals=[],this.containers=[]}add(t,e){let n=this.modals.indexOf(t);if(-1!==n)return n;n=this.modals.length,this.modals.push(t),t.modalRef&&s(t.modalRef,!1);const i=function(t){const e=[];return[].forEach.call(t.children,t=>{"true"===t.getAttribute("aria-hidden")&&e.push(t)}),e}(e);c(e,t.mount,t.modalRef,i,!0);const o=l(this.containers,t=>t.container===e);return-1!==o?(this.containers[o].modals.push(t),n):(this.containers.push({modals:[t],container:e,restore:null,hiddenSiblings:i}),n)}mount(t,e){const n=l(this.containers,e=>-1!==e.modals.indexOf(t)),i=this.containers[n];i.restore||(i.restore=u(i,e))}remove(t,e=!0){const n=this.modals.indexOf(t);if(-1===n)return n;const i=l(this.containers,e=>-1!==e.modals.indexOf(t)),o=this.containers[i];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(n,1),0===o.modals.length)o.restore&&o.restore(),t.modalRef&&s(t.modalRef,e),c(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(i,1);else{const t=o.modals[o.modals.length-1];t.modalRef&&s(t.modalRef,!1)}return n}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}},function(t,e,n){"use strict";n(0);var i=n(17),o=n(2);e.a=Object(i.a)(Object(o.jsx)("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft")},function(t,e,n){"use strict";n(0);var i=n(17),o=n(2);e.a=Object(i.a)(Object(o.jsx)("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight")},function(t,e,n){"use strict";function i(t){let e="https://mui.com/production-error/?code="+t;for(let t=1;t{o+="color"===e?l(o)?t[e]:Object(a.a)(t[e]):`${l(o)?e:Object(a.a)(e)}${Object(a.a)(t[e].toString())}`}),o}var h=n(1056);const d=["name","slot","skipVariantsResolver","skipSx","overridesResolver"],p=["theme"],_=["theme"];function m(t){return 0===Object.keys(t).length}function f(t){return"ownerState"!==t&&"theme"!==t&&"sx"!==t&&"as"!==t}const g=Object(s.a)();function $(t={}){const{defaultTheme:e=g,rootShouldForwardProp:n=f,slotShouldForwardProp:s=f,styleFunctionSx:a=h.a}=t,c=t=>{const n=m(t.theme)?e:t.theme;return a(Object(o.a)({},t,{theme:n}))};return c.__mui_systemSx=!0,(t,a={})=>{Object(r.b)(t,t=>t.filter(t=>!(null!=t&&t.__mui_systemSx)));const{name:l,slot:h,skipVariantsResolver:g,skipSx:$,overridesResolver:E}=a,y=Object(i.a)(a,d),b=void 0!==g?g:h&&"Root"!==h||!1,S=$||!1;let v=f;"Root"===h?v=n:h?v=s:function(t){return"string"==typeof t&&t.charCodeAt(0)>96}(t)&&(v=void 0);const C=Object(r.a)(t,Object(o.a)({shouldForwardProp:v,label:void 0},y)),N=(t,...n)=>{const r=n?n.map(t=>"function"==typeof t&&t.__emotion_real!==t?n=>{let{theme:r}=n,s=Object(i.a)(n,p);return t(Object(o.a)({theme:m(r)?e:r},s))}:t):[];let s=t;l&&E&&r.push(t=>{const n=m(t.theme)?e:t.theme,i=((t,e)=>e.components&&e.components[t]&&e.components[t].styleOverrides?e.components[t].styleOverrides:null)(l,n);if(i){const e={};return Object.entries(i).forEach(([i,r])=>{e[i]="function"==typeof r?r(Object(o.a)({},t,{theme:n})):r}),E(t,e)}return null}),l&&!b&&r.push(t=>{const n=m(t.theme)?e:t.theme;return((t,e,n,i)=>{var o,r;const{ownerState:s={}}=t,a=[],c=null==n||null==(o=n.components)||null==(r=o[i])?void 0:r.variants;return c&&c.forEach(n=>{let i=!0;Object.keys(n.props).forEach(e=>{s[e]!==n.props[e]&&t[e]!==n.props[e]&&(i=!1)}),i&&a.push(e[u(n.props)])}),a})(t,((t,e)=>{let n=[];e&&e.components&&e.components[t]&&e.components[t].variants&&(n=e.components[t].variants);const i={};return n.forEach(t=>{const e=u(t.props);i[e]=t.style}),i})(l,n),n,l)}),S||r.push(c);const a=r.length-n.length;if(Array.isArray(t)&&a>0){const e=new Array(a).fill("");s=[...t,...e],s.raw=[...t.raw,...e]}else"function"==typeof t&&t.__emotion_real!==t&&(s=n=>{let{theme:r}=n,s=Object(i.a)(n,_);return t(Object(o.a)({theme:m(r)?e:r},s))});return C(s,...r)};return C.withConfig&&(N.withConfig=C.withConfig),N}}},function(t,e,n){"use strict";var i=n(5),o=n(224),r=n(0),s=n.n(r),a=n(74),c=n.n(a),l=!1,u=n(225),h=n(344),d=function(t){function e(e,n){var i;i=t.call(this,e,n)||this;var o,r=n&&!n.isMounting?e.enter:e.appear;return i.appearStatus=null,e.in?r?(o="exited",i.appearStatus="entering"):o="entered":o=e.unmountOnExit||e.mountOnEnter?"unmounted":"exited",i.state={status:o},i.nextCallback=null,i}Object(o.a)(e,t),e.getDerivedStateFromProps=function(t,e){return t.in&&"unmounted"===e.status?{status:"exited"}:null};var n=e.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(t){var e=null;if(t!==this.props){var n=this.state.status;this.props.in?"entering"!==n&&"entered"!==n&&(e="entering"):"entering"!==n&&"entered"!==n||(e="exiting")}this.updateStatus(!1,e)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var t,e,n,i=this.props.timeout;return t=e=n=i,null!=i&&"number"!=typeof i&&(t=i.exit,e=i.enter,n=void 0!==i.appear?i.appear:e),{exit:t,enter:e,appear:n}},n.updateStatus=function(t,e){if(void 0===t&&(t=!1),null!==e)if(this.cancelNextCallback(),"entering"===e){if(this.props.unmountOnExit||this.props.mountOnEnter){var n=this.props.nodeRef?this.props.nodeRef.current:c.a.findDOMNode(this);n&&Object(h.a)(n)}this.performEnter(t)}else this.performExit();else this.props.unmountOnExit&&"exited"===this.state.status&&this.setState({status:"unmounted"})},n.performEnter=function(t){var e=this,n=this.props.enter,i=this.context?this.context.isMounting:t,o=this.props.nodeRef?[i]:[c.a.findDOMNode(this),i],r=o[0],s=o[1],a=this.getTimeouts(),u=i?a.appear:a.enter;!t&&!n||l?this.safeSetState({status:"entered"},(function(){e.props.onEntered(r)})):(this.props.onEnter(r,s),this.safeSetState({status:"entering"},(function(){e.props.onEntering(r,s),e.onTransitionEnd(u,(function(){e.safeSetState({status:"entered"},(function(){e.props.onEntered(r,s)}))}))})))},n.performExit=function(){var t=this,e=this.props.exit,n=this.getTimeouts(),i=this.props.nodeRef?void 0:c.a.findDOMNode(this);e&&!l?(this.props.onExit(i),this.safeSetState({status:"exiting"},(function(){t.props.onExiting(i),t.onTransitionEnd(n.exit,(function(){t.safeSetState({status:"exited"},(function(){t.props.onExited(i)}))}))}))):this.safeSetState({status:"exited"},(function(){t.props.onExited(i)}))},n.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(t,e){e=this.setNextCallback(e),this.setState(t,e)},n.setNextCallback=function(t){var e=this,n=!0;return this.nextCallback=function(i){n&&(n=!1,e.nextCallback=null,t(i))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},n.onTransitionEnd=function(t,e){this.setNextCallback(e);var n=this.props.nodeRef?this.props.nodeRef.current:c.a.findDOMNode(this),i=null==t&&!this.props.addEndListener;if(n&&!i){if(this.props.addEndListener){var o=this.props.nodeRef?[this.nextCallback]:[n,this.nextCallback],r=o[0],s=o[1];this.props.addEndListener(r,s)}null!=t&&setTimeout(this.nextCallback,t)}else setTimeout(this.nextCallback,0)},n.render=function(){var t=this.state.status;if("unmounted"===t)return null;var e=this.props,n=e.children,o=(e.in,e.mountOnEnter,e.unmountOnExit,e.appear,e.enter,e.exit,e.timeout,e.addEndListener,e.onEnter,e.onEntering,e.onEntered,e.onExit,e.onExiting,e.onExited,e.nodeRef,Object(i.a)(e,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]));return s.a.createElement(u.a.Provider,{value:null},"function"==typeof n?n(t,o):s.a.cloneElement(s.a.Children.only(n),o))},e}(s.a.Component);function p(){}d.contextType=u.a,d.propTypes={},d.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:p,onEntering:p,onEntered:p,onExit:p,onExiting:p,onExited:p},d.UNMOUNTED="unmounted",d.EXITED="exited",d.ENTERING="entering",d.ENTERED="entered",d.EXITING="exiting";e.a=d},,,,,,function(module,exports,__webpack_require__){var __WEBPACK_AMD_DEFINE_FACTORY__,__WEBPACK_AMD_DEFINE_ARRAY__,__WEBPACK_AMD_DEFINE_RESULT__,factory;factory=function(_,Kotlin,$module$kotlinx_coroutines_core,$module$Napier_napier_js_legacy,$module$kotlinx_atomicfu,$module$kotlinx_serialization_kotlinx_serialization_core_js_legacy,$module$kotlinx_serialization_kotlinx_serialization_json_js_legacy,$module$ktor_ktor_http_js_legacy,$module$ktor_ktor_client_core_js_legacy,$module$spark_md5,$module$ktor_ktor_io_js_legacy){"use strict";var $$importsForInline$$=_.$$importsForInline$$||(_.$$importsForInline$$={}),coroutines=$module$kotlinx_coroutines_core.kotlinx.coroutines,Unit=Kotlin.kotlin.Unit,COROUTINE_SUSPENDED=Kotlin.kotlin.coroutines.intrinsics.COROUTINE_SUSPENDED,CoroutineImpl=Kotlin.kotlin.coroutines.CoroutineImpl,launch=$module$kotlinx_coroutines_core.kotlinx.coroutines.launch_s496o7$,Kind_CLASS=Kotlin.Kind.CLASS,copyToArray=Kotlin.kotlin.collections.copyToArray,Kind_INTERFACE=Kotlin.Kind.INTERFACE,Exception=Kotlin.kotlin.Exception,throwCCE=Kotlin.throwCCE,L0=Kotlin.Long.ZERO,toList=Kotlin.kotlin.collections.toList_7wnvza$,ArrayList_init=Kotlin.kotlin.collections.ArrayList_init_287e2$,indexOf=Kotlin.kotlin.text.indexOf_8eortd$,IllegalStateException_init=Kotlin.kotlin.IllegalStateException_init_pdl1vj$,StringBuilder_init=Kotlin.kotlin.text.StringBuilder_init_za3lpa$,Kind_OBJECT=Kotlin.Kind.OBJECT,LinkedHashMap_init=Kotlin.kotlin.collections.LinkedHashMap_init_q3lmfv$,JsMath=Math,List=Kotlin.kotlin.collections.List,first=Kotlin.kotlin.collections.first_2p1efm$,first_0=Kotlin.kotlin.collections.first_us0mfu$,IllegalArgumentException_init=Kotlin.kotlin.IllegalArgumentException_init_pdl1vj$,getKClass=Kotlin.getKClass,Long=Kotlin.Long,to=Kotlin.kotlin.to_ujzrz7$,PrimitiveClasses$intClass=Kotlin.kotlin.reflect.js.internal.PrimitiveClasses.intClass,PrimitiveClasses$shortClass=Kotlin.kotlin.reflect.js.internal.PrimitiveClasses.shortClass,PrimitiveClasses$booleanClass=Kotlin.kotlin.reflect.js.internal.PrimitiveClasses.booleanClass,PrimitiveClasses$floatClass=Kotlin.kotlin.reflect.js.internal.PrimitiveClasses.floatClass,PrimitiveClasses$doubleClass=Kotlin.kotlin.reflect.js.internal.PrimitiveClasses.doubleClass,PrimitiveClasses$stringClass=Kotlin.kotlin.reflect.js.internal.PrimitiveClasses.stringClass,mapOf=Kotlin.kotlin.collections.mapOf_qfcya0$,NotImplementedError_init=Kotlin.kotlin.NotImplementedError,Map=Kotlin.kotlin.collections.Map,napier=$module$Napier_napier_js_legacy.io.github.aakira.napier,asList=Kotlin.kotlin.collections.asList_us0mfu$,Collection=Kotlin.kotlin.collections.Collection,Array_0=Array,Pair=Kotlin.kotlin.Pair,atomic=$module$kotlinx_atomicfu.kotlinx.atomicfu.atomic$ref$1,listOf=Kotlin.kotlin.collections.listOf_mh5how$,listOf_0=Kotlin.kotlin.collections.listOf_i5x0yv$,plus=Kotlin.kotlin.collections.plus_mydzjv$,flatten=Kotlin.kotlin.collections.flatten_u0ad8z$,toList_0=Kotlin.kotlin.collections.toList_us0mfu$,collectionSizeOrDefault=Kotlin.kotlin.collections.collectionSizeOrDefault_ba2ldo$,ArrayList_init_0=Kotlin.kotlin.collections.ArrayList_init_ww73n8$,checkIndexOverflow=Kotlin.kotlin.collections.checkIndexOverflow_za3lpa$,CoroutineContext$Element=Kotlin.kotlin.coroutines.CoroutineContext.Element,withContext=$module$kotlinx_coroutines_core.kotlinx.coroutines.withContext_i5cbzn$,toSet=Kotlin.kotlin.collections.toSet_7wnvza$,joinToString=Kotlin.kotlin.collections.joinToString_fmv235$,Throwable=Error,withTimeout=$module$kotlinx_coroutines_core.kotlinx.coroutines.withTimeout_ms3uf5$,CoroutineContext$Key=Kotlin.kotlin.coroutines.CoroutineContext.Key,atomic_0=$module$kotlinx_atomicfu.kotlinx.atomicfu.atomic$int$1,Mutex=$module$kotlinx_coroutines_core.kotlinx.coroutines.sync.Mutex_6taknv$,toMap=Kotlin.kotlin.collections.toMap_6hr0sd$,L2147483647=Kotlin.Long.fromInt(2147483647),delay=$module$kotlinx_coroutines_core.kotlinx.coroutines.delay_s8cxhz$,atomic_1=$module$kotlinx_atomicfu.kotlinx.atomicfu.atomic$long$1,ensureNotNull=Kotlin.ensureNotNull,numberToInt=Kotlin.numberToInt,LazyThreadSafetyMode=Kotlin.kotlin.LazyThreadSafetyMode,lazy=Kotlin.kotlin.lazy_kls4a0$,RuntimeException=Kotlin.kotlin.RuntimeException,println=Kotlin.kotlin.io.println_s8jyv4$,CompletableDeferred=$module$kotlinx_coroutines_core.kotlinx.coroutines.CompletableDeferred_xptg6w$,Exception_init=Kotlin.kotlin.Exception_init_pdl1vj$,atomic_2=$module$kotlinx_atomicfu.kotlinx.atomicfu.atomic$boolean$1,PluginGeneratedSerialDescriptor=$module$kotlinx_serialization_kotlinx_serialization_core_js_legacy.kotlinx.serialization.internal.PluginGeneratedSerialDescriptor,equals=Kotlin.equals,UnknownFieldException=$module$kotlinx_serialization_kotlinx_serialization_core_js_legacy.kotlinx.serialization.UnknownFieldException,internal=$module$kotlinx_serialization_kotlinx_serialization_core_js_legacy.kotlinx.serialization.internal,GeneratedSerializer=$module$kotlinx_serialization_kotlinx_serialization_core_js_legacy.kotlinx.serialization.internal.GeneratedSerializer,emptyList=Kotlin.kotlin.collections.emptyList_287e2$,Annotation=Kotlin.kotlin.Annotation,Enum=Kotlin.kotlin.Enum,throwISE=Kotlin.throwISE,toString=Kotlin.toString,get_jsonPrimitive=$module$kotlinx_serialization_kotlinx_serialization_json_js_legacy.kotlinx.serialization.json.get_jsonPrimitive_u3sd3g$,get_intOrNull=$module$kotlinx_serialization_kotlinx_serialization_json_js_legacy.kotlinx.serialization.json.get_intOrNull_59esu7$,toString_0=Kotlin.kotlin.text.toString_aogav3$,padStart=Kotlin.kotlin.text.padStart_vrc1nu$,joinToString_0=Kotlin.kotlin.collections.joinToString_s78119$,UByte_init=Kotlin.kotlin.UByte,TimeoutCancellationException=$module$kotlinx_coroutines_core.kotlinx.coroutines.TimeoutCancellationException,NoSuchElementException_init=Kotlin.kotlin.NoSuchElementException,HttpStatusCode=$module$ktor_ktor_http_js_legacy.io.ktor.http.HttpStatusCode,defineInlineFunction=Kotlin.defineInlineFunction,wrapFunction=Kotlin.wrapFunction,getReifiedTypeParameterKType=Kotlin.getReifiedTypeParameterKType,markKTypeNullable=Kotlin.markKTypeNullable,reflect=$module$ktor_ktor_client_core_js_legacy.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect,typeInfoImpl=$module$ktor_ktor_client_core_js_legacy.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect.typeInfoImpl_1lvkm8$,HttpRequestBuilder_init=$module$ktor_ktor_client_core_js_legacy.io.ktor.client.request.HttpRequestBuilder,HttpMethod=$module$ktor_ktor_client_core_js_legacy.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,HttpStatement_init=$module$ktor_ktor_client_core_js_legacy.io.ktor.client.statement.HttpStatement,header=$module$ktor_ktor_client_core_js_legacy.io.ktor.client.request.header_rpxout$,json=$module$kotlinx_serialization_kotlinx_serialization_json_js_legacy.kotlinx.serialization.json,JsonPrimitive=$module$kotlinx_serialization_kotlinx_serialization_json_js_legacy.kotlinx.serialization.json.JsonPrimitive_pdl1vj$,JsonPrimitive_0=$module$kotlinx_serialization_kotlinx_serialization_json_js_legacy.kotlinx.serialization.json.JsonPrimitive_1v8dbw$,JsonPrimitive_1=$module$kotlinx_serialization_kotlinx_serialization_json_js_legacy.kotlinx.serialization.json.JsonPrimitive_rcaewn$,get_int=$module$kotlinx_serialization_kotlinx_serialization_json_js_legacy.kotlinx.serialization.json.get_int_59esu7$,toShort=Kotlin.toShort,get_long=$module$kotlinx_serialization_kotlinx_serialization_json_js_legacy.kotlinx.serialization.json.get_long_59esu7$,get_float=$module$kotlinx_serialization_kotlinx_serialization_json_js_legacy.kotlinx.serialization.json.get_float_59esu7$,get_double=$module$kotlinx_serialization_kotlinx_serialization_json_js_legacy.kotlinx.serialization.json.get_double_59esu7$,get_boolean=$module$kotlinx_serialization_kotlinx_serialization_json_js_legacy.kotlinx.serialization.json.get_boolean_59esu7$,JsonArray=$module$kotlinx_serialization_kotlinx_serialization_json_js_legacy.kotlinx.serialization.json.JsonArray,JsonObject=$module$kotlinx_serialization_kotlinx_serialization_json_js_legacy.kotlinx.serialization.json.JsonObject,IntRange=Kotlin.kotlin.ranges.IntRange,toInt=Kotlin.kotlin.text.toInt_6ic1pp$,toByte=Kotlin.toByte,Regex_init=Kotlin.kotlin.text.Regex_init_61zpoe$,removePrefix=Kotlin.kotlin.text.removePrefix_gsj5wt$,RegexOption=Kotlin.kotlin.text.RegexOption,Regex_init_0=Kotlin.kotlin.text.Regex_init_sb3q2$,getCallableRef=Kotlin.getCallableRef,NullPointerException=Kotlin.kotlin.NullPointerException,JsonPrimitive_2=$module$kotlinx_serialization_kotlinx_serialization_json_js_legacy.kotlinx.serialization.json.JsonPrimitive,firstOrNull=Kotlin.kotlin.collections.firstOrNull_2p1efm$,takeFrom=$module$ktor_ktor_http_js_legacy.io.ktor.http.takeFrom_jl1sg7$,get_encodedPath=$module$ktor_ktor_http_js_legacy.io.ktor.http.get_encodedPath_3q1sfd$,set_encodedPath=$module$ktor_ktor_http_js_legacy.io.ktor.http.set_encodedPath_jl1sg7$,parameter=$module$ktor_ktor_client_core_js_legacy.io.ktor.client.request.parameter_xadl6p$,ContentType=$module$ktor_ktor_http_js_legacy.io.ktor.http.ContentType,TextContent=$module$ktor_ktor_http_js_legacy.io.ktor.http.content.TextContent,createKType=Kotlin.createKType,get_jsonObject=$module$kotlinx_serialization_kotlinx_serialization_json_js_legacy.kotlinx.serialization.json.get_jsonObject_u3sd3g$,content=$module$ktor_ktor_client_core_js_legacy.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.content,OutgoingContent=$module$ktor_ktor_client_core_js_legacy.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.content.OutgoingContent,plus_0=Kotlin.kotlin.collections.plus_cm8adq$,until=Kotlin.kotlin.ranges.until_dqglrj$,L200=Kotlin.Long.fromInt(200),lazy_0=Kotlin.kotlin.lazy_klfg04$,get_isActive_0=$module$kotlinx_coroutines_core.kotlinx.coroutines.get_isActive_qdnslq$,produce=$module$kotlinx_coroutines_core.kotlinx.coroutines.channels.produce_f6xzli$,L1000=Kotlin.Long.fromInt(1e3),toLong=Kotlin.kotlin.text.toLong_pdl1vz$,split=Kotlin.kotlin.text.split_ip8yn$,toIntOrNull=Kotlin.kotlin.text.toIntOrNull_pdl1vz$,printStackTrace=Kotlin.kotlin.printStackTrace_dbl4o4$,Channel=$module$kotlinx_coroutines_core.kotlinx.coroutines.channels.Channel_lsve6m$,trim=Kotlin.kotlin.text.trim_gw00vp$,split_0=Kotlin.kotlin.text.split_o64adg$,trimIndent=Kotlin.kotlin.text.trimIndent_pdl1vz$,trimMargin=Kotlin.kotlin.text.trimMargin_rjktp$,startsWith=Kotlin.kotlin.text.startsWith_7epoxm$,substringAfter=Kotlin.kotlin.text.substringAfter_j4ogox$,get_js=Kotlin.kotlin.js.get_js_1yb8b7$,joinToString_1=Kotlin.kotlin.collections.joinToString_cgipc5$,addAll=Kotlin.kotlin.collections.addAll_ye1y7v$,substringAfterLast=Kotlin.kotlin.text.substringAfterLast_j4ogox$,Json=$module$kotlinx_serialization_kotlinx_serialization_json_js_legacy.kotlinx.serialization.json.Json_x26noe$,await_0=$module$kotlinx_coroutines_core.kotlinx.coroutines.await_t11jrl$,json_0=Kotlin.kotlin.js.json_pyyo18$,plus_1=Kotlin.kotlin.collections.plus_drqvgf$,putAll=Kotlin.kotlin.collections.putAll_5gv49o$,Regex=Kotlin.kotlin.text.Regex,toInt_0=Kotlin.kotlin.text.toInt_pdl1vz$,ClosedRange=Kotlin.kotlin.ranges.ClosedRange,contains=Kotlin.kotlin.ranges.contains_8sy4e8$,toByte_0=Kotlin.kotlin.text.toByte_pdl1vz$,toShort_0=Kotlin.kotlin.text.toShort_pdl1vz$,toDouble=Kotlin.kotlin.text.toDouble_pdl1vz$,indexOf_0=Kotlin.kotlin.collections.indexOf_mjy6jw$,charsets=$module$ktor_ktor_io_js_legacy.io.ktor.utils.io.charsets,encodeToByteArray=Kotlin.kotlin.text.encodeToByteArray_pdl1vz$,encodeToByteArray_0=$module$ktor_ktor_io_js_legacy.io.ktor.utils.io.charsets.encodeToByteArray_fj4osb$,Random=Kotlin.kotlin.random.Random;function LiveDataImpl(t,e,n){LiveData_init(this),this.db=t,this.tableNames=e,this.fetchFn=n,this.observer_0=new LiveDataImpl$observer$ObjectLiteral(this,copyToArray(this.tableNames))}function Coroutine$LiveDataImpl$update$lambda(t,e,n,i){CoroutineImpl.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$LiveDataImpl=t}function LiveDataImpl$update$lambda(t){return function(e,n,i){var o=new Coroutine$LiveDataImpl$update$lambda(t,e,this,n);return i?o:o.doResume(null)}}function LiveDataImpl$observer$ObjectLiteral(t,e){this.this$LiveDataImpl=t,InvalidationTrackerObserver.call(this,e)}function doorMainDispatcher(){return coroutines.Dispatchers.Default}function DoorQuery(){}function DoorSqlDatabase(){}function DoorSqlDatabaseConnectionImpl(t,e){this.connection_v02lev$_0=t,this.dbTypeInt_9uasqg$_0=e}function EntityInsertionAdapter(t){this.db=t,this.dbType=dbType_0(this.db)}function EntityInsertionAdapter$insert$lambda(t,e){return function(n){return e.bindPreparedStmtToEntity_wfgq1m$(n,t),n.executeUpdate()}}function Coroutine$EntityInsertionAdapter$insertAsync$lambda(t,e,n,i){CoroutineImpl.call(this,i),this.exceptionState_0=1,this.local$closure$entity=t,this.local$this$EntityInsertionAdapter=e,this.local$stmt=n}function EntityInsertionAdapter$insertAsync$lambda(t,e){return function(n,i,o){var r=new Coroutine$EntityInsertionAdapter$insertAsync$lambda(t,e,n,i);return o?r:r.doResume(null)}}function Coroutine$insertAsync_11rb$(t,e,n){CoroutineImpl.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function EntityInsertionAdapter$insertAndReturnId$lambda(t,e){return function(n){return e.bindPreparedStmtToEntity_wfgq1m$(n,t),n.executeUpdate(),e.getGeneratedKey_mtpq9v$_0(n)}}function Coroutine$EntityInsertionAdapter$insertAndReturnIdAsync$lambda(t,e,n,i){CoroutineImpl.call(this,i),this.exceptionState_0=1,this.local$closure$entity=t,this.local$this$EntityInsertionAdapter=e,this.local$stmt=n}function EntityInsertionAdapter$insertAndReturnIdAsync$lambda(t,e){return function(n,i,o){var r=new Coroutine$EntityInsertionAdapter$insertAndReturnIdAsync$lambda(t,e,n,i);return o?r:r.doResume(null)}}function EntityInsertionAdapter$insertListAndReturnIds$lambda(t,e,n){return function(i){var o;for(i.getConnection().setAutoCommit_6taknv$(!1),o=t.iterator();o.hasNext();){var r=o.next(),s=e,a=n;s.bindPreparedStmtToEntity_wfgq1m$(i,r),i.executeUpdate();var c=s.getGeneratedKey_mtpq9v$_0(i);a.add_11rb$(c)}return i.getConnection().commit(),Unit}}function Coroutine$EntityInsertionAdapter$insertListAndReturnIdsAsync$lambda(t,e,n,i,o){CoroutineImpl.call(this,o),this.exceptionState_0=1,this.local$closure$entities=t,this.local$this$EntityInsertionAdapter=e,this.local$closure$generatedKeys=n,this.local$tmp$=void 0,this.local$this$EntityInsertionAdapter_0=void 0,this.local$closure$generatedKeys_0=void 0,this.local$stmt=i}function EntityInsertionAdapter$insertListAndReturnIdsAsync$lambda(t,e,n){return function(i,o,r){var s=new Coroutine$EntityInsertionAdapter$insertListAndReturnIdsAsync$lambda(t,e,n,i,o);return r?s:s.doResume(null)}}function Coroutine$insertListAndReturnIdsAsync_4ezy5m$(t,e,n){CoroutineImpl.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$generatedKeys=void 0,this.local$entities=e}function EntityInsertionAdapter$insertList$lambda(t,e){return function(n){var i;for(n.getConnection().setAutoCommit_6taknv$(!1),i=t.iterator();i.hasNext();){var o=i.next();e.bindPreparedStmtToEntity_wfgq1m$(n,o),n.executeUpdate()}return n.getConnection().commit(),Unit}}function Coroutine$EntityInsertionAdapter$insertListAsync$lambda(t,e,n,i){CoroutineImpl.call(this,i),this.exceptionState_0=1,this.local$closure$entities=t,this.local$this$EntityInsertionAdapter=e,this.local$tmp$=void 0,this.local$stmt=n}function EntityInsertionAdapter$insertListAsync$lambda(t,e){return function(n,i,o){var r=new Coroutine$EntityInsertionAdapter$insertListAsync$lambda(t,e,n,i);return o?r:r.doResume(null)}}function Coroutine$insertListAsync_4ezy5m$(t,e,n){CoroutineImpl.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entities=e}function PreparedStatementArrayProxyCommon(t,e){PreparedStatementArrayProxyCommon$Companion_getInstance(),this.query=t,this.connectionInternal=e,this.queryParams_7cwmw8$_0=LinkedHashMap_init(),this.queryTypes_djiuxf$_0=LinkedHashMap_init(),this.nullSqlTypes_ftn0z0$_0=LinkedHashMap_init(),this.stmtQueryTimeout=-1}function PreparedStatementArrayProxyCommon$Companion(){PreparedStatementArrayProxyCommon$Companion_instance=this,this.ARR_PROXY_SET_OBJECT=-5e3,this.PROXY_SET_NULL=-5001}LiveDataImpl$observer$ObjectLiteral.prototype=Object.create(InvalidationTrackerObserver.prototype),LiveDataImpl$observer$ObjectLiteral.prototype.constructor=LiveDataImpl$observer$ObjectLiteral,LiveDataImpl.prototype=Object.create(LiveData.prototype),LiveDataImpl.prototype.constructor=LiveDataImpl,MutableLiveData.prototype=Object.create(LiveData.prototype),MutableLiveData.prototype.constructor=MutableLiveData,DoorMediatorLiveData.prototype=Object.create(MutableLiveData.prototype),DoorMediatorLiveData.prototype.constructor=DoorMediatorLiveData,NotSupportedException.prototype=Object.create(RuntimeException.prototype),NotSupportedException.prototype.constructor=NotSupportedException,DoorState.prototype=Object.create(Enum.prototype),DoorState.prototype.constructor=DoorState,DoorMigrationAsync.prototype=Object.create(DoorMigration.prototype),DoorMigrationAsync.prototype.constructor=DoorMigrationAsync,DoorMigrationStatementList.prototype=Object.create(DoorMigration.prototype),DoorMigrationStatementList.prototype.constructor=DoorMigrationStatementList,DoorMigrationSync.prototype=Object.create(DoorMigration.prototype),DoorMigrationSync.prototype.constructor=DoorMigrationSync,ReplicationNotificationDispatcher.prototype=Object.create(InvalidationTrackerObserver.prototype),ReplicationNotificationDispatcher.prototype.constructor=ReplicationNotificationDispatcher,ReplicationSubscriptionMode.prototype=Object.create(Enum.prototype),ReplicationSubscriptionMode.prototype.constructor=ReplicationSubscriptionMode,TransactionMode.prototype=Object.create(Enum.prototype),TransactionMode.prototype.constructor=TransactionMode,DeleteZombieAttachmentsListener$invalidationObserver$ObjectLiteral.prototype=Object.create(InvalidationTrackerObserver.prototype),DeleteZombieAttachmentsListener$invalidationObserver$ObjectLiteral.prototype.constructor=DeleteZombieAttachmentsListener$invalidationObserver$ObjectLiteral,JdbcArrayProxy.prototype=Object.create(JdbcArrayProxyCommon.prototype),JdbcArrayProxy.prototype.constructor=JdbcArrayProxy,PreparedStatementArrayProxy.prototype=Object.create(PreparedStatementArrayProxyCommon.prototype),PreparedStatementArrayProxy.prototype.constructor=PreparedStatementArrayProxy,SaveToIndexedDbChangeListener_init$ObjectLiteral.prototype=Object.create(InvalidationTrackerObserver.prototype),SaveToIndexedDbChangeListener_init$ObjectLiteral.prototype.constructor=SaveToIndexedDbChangeListener_init$ObjectLiteral,SQLException.prototype=Object.create(Exception.prototype),SQLException.prototype.constructor=SQLException,RoomDatabaseJdbcImplHelper.prototype=Object.create(RoomDatabaseJdbcImplHelperCommon.prototype),RoomDatabaseJdbcImplHelper.prototype.constructor=RoomDatabaseJdbcImplHelper,SQLitePreparedStatementJs.prototype=Object.create(SQLiteStatementJs.prototype),SQLitePreparedStatementJs.prototype.constructor=SQLitePreparedStatementJs,LiveDataImpl.prototype.onActive=function(){LiveData.prototype.onActive.call(this),this.db.getInvalidationTracker().addObserver_iaeuyr$(this.observer_0),this.update_8be2vx$()},LiveDataImpl.prototype.onInactive=function(){LiveData.prototype.onInactive.call(this),this.db.getInvalidationTracker().removeObserver_iaeuyr$(this.observer_0)},Coroutine$LiveDataImpl$update$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$LiveDataImpl$update$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$LiveDataImpl$update$lambda.prototype.constructor=Coroutine$LiveDataImpl$update$lambda,Coroutine$LiveDataImpl$update$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$LiveDataImpl.fetchFn(this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:var t=this.result_0;return this.local$this$LiveDataImpl.postValue_11rb$(t),Unit;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},LiveDataImpl.prototype.update_8be2vx$=function(){launch(coroutines.GlobalScope,void 0,void 0,LiveDataImpl$update$lambda(this))},LiveDataImpl$observer$ObjectLiteral.prototype.onInvalidated_ywdfdh$=function(t){this.this$LiveDataImpl.update_8be2vx$()},LiveDataImpl$observer$ObjectLiteral.$metadata$={kind:Kind_CLASS,interfaces:[InvalidationTrackerObserver]},LiveDataImpl.$metadata$={kind:Kind_CLASS,simpleName:"LiveDataImpl",interfaces:[LiveData]},DoorQuery.$metadata$={kind:Kind_INTERFACE,simpleName:"DoorQuery",interfaces:[]},DoorSqlDatabase.$metadata$={kind:Kind_INTERFACE,simpleName:"DoorSqlDatabase",interfaces:[]},Object.defineProperty(DoorSqlDatabaseConnectionImpl.prototype,"connection",{get:function(){return this.connection_v02lev$_0}}),Object.defineProperty(DoorSqlDatabaseConnectionImpl.prototype,"dbTypeInt",{get:function(){return this.dbTypeInt_9uasqg$_0}}),DoorSqlDatabaseConnectionImpl.prototype.execSQL_61zpoe$=function(t){var e=this.connection.createStatement();try{e.executeUpdate_61zpoe$(t)}catch(t){throw Kotlin.isType(t,Exception),t}finally{e.close()}},DoorSqlDatabaseConnectionImpl.prototype.execSQLBatch_kand9s$=function(t){var e=this.connection.createStatement();try{var n;for(this.connection.setAutoCommit_6taknv$(!1),n=0;n!==t.length;++n){var i=t[n];e.executeUpdate_61zpoe$(i)}this.connection.commit()}catch(t){throw Kotlin.isType(t,Exception),t}finally{e.close()}},DoorSqlDatabaseConnectionImpl.$metadata$={kind:Kind_CLASS,simpleName:"DoorSqlDatabaseConnectionImpl",interfaces:[DoorSqlDatabase]},EntityInsertionAdapter.prototype.insert_11rb$=function(t){prepareAndUseStatement_0(this.db,this.makeSql_6taknv$(!1),EntityInsertionAdapter$insert$lambda(t,this))},Coroutine$EntityInsertionAdapter$insertAsync$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$EntityInsertionAdapter$insertAsync$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$EntityInsertionAdapter$insertAsync$lambda.prototype.constructor=Coroutine$EntityInsertionAdapter$insertAsync$lambda,Coroutine$EntityInsertionAdapter$insertAsync$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$this$EntityInsertionAdapter.bindPreparedStmtToEntity_wfgq1m$(this.local$stmt,this.local$closure$entity),this.state_0=2,this.result_0=executeUpdateAsyncKmp(this.local$stmt,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$insertAsync_11rb$.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$insertAsync_11rb$.prototype=Object.create(CoroutineImpl.prototype),Coroutine$insertAsync_11rb$.prototype.constructor=Coroutine$insertAsync_11rb$,Coroutine$insertAsync_11rb$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=prepareAndUseStatementAsync_0(this.$this.db,this.$this.makeSql_6taknv$(!1),EntityInsertionAdapter$insertAsync$lambda(this.local$entity,this.$this),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},EntityInsertionAdapter.prototype.insertAsync_11rb$=function(t,e,n){var i=new Coroutine$insertAsync_11rb$(this,t,e);return n?i:i.doResume(null)},EntityInsertionAdapter.prototype.getGeneratedKey_mtpq9v$_0=function(t){var e=null,n=L0;try{(e=t.getGeneratedKeys()).next()&&(n=e.getLong_za3lpa$(1))}finally{null!=e&&e.close()}return n},EntityInsertionAdapter.prototype.insertAndReturnId_11rb$=function(t){var e=new PreparedStatementConfig(this.makeSql_6taknv$(!0),void 0,StatementConstantsKmp_getInstance().RETURN_GENERATED_KEYS);return prepareAndUseStatement(this.db,e,EntityInsertionAdapter$insertAndReturnId$lambda(t,this))},Coroutine$EntityInsertionAdapter$insertAndReturnIdAsync$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$EntityInsertionAdapter$insertAndReturnIdAsync$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$EntityInsertionAdapter$insertAndReturnIdAsync$lambda.prototype.constructor=Coroutine$EntityInsertionAdapter$insertAndReturnIdAsync$lambda,Coroutine$EntityInsertionAdapter$insertAndReturnIdAsync$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$this$EntityInsertionAdapter.bindPreparedStmtToEntity_wfgq1m$(this.local$stmt,this.local$closure$entity),this.state_0=2,this.result_0=executeUpdateAsyncKmp(this.local$stmt,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:return this.local$this$EntityInsertionAdapter.getGeneratedKey_mtpq9v$_0(this.local$stmt);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},EntityInsertionAdapter.prototype.insertAndReturnIdAsync_11rb$=function(t,e){var n=new PreparedStatementConfig(this.makeSql_6taknv$(!0),void 0,StatementConstantsKmp_getInstance().RETURN_GENERATED_KEYS);return prepareAndUseStatementAsync(this.db,n,EntityInsertionAdapter$insertAndReturnIdAsync$lambda(t,this),e)},EntityInsertionAdapter.prototype.insertListAndReturnIds_4ezy5m$=function(t){var e=new PreparedStatementConfig(this.makeSql_6taknv$(!0),void 0,StatementConstantsKmp_getInstance().RETURN_GENERATED_KEYS),n=ArrayList_init();return prepareAndUseStatement(this.db,e,EntityInsertionAdapter$insertListAndReturnIds$lambda(t,this,n)),toList(n)},Coroutine$EntityInsertionAdapter$insertListAndReturnIdsAsync$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$EntityInsertionAdapter$insertListAndReturnIdsAsync$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$EntityInsertionAdapter$insertListAndReturnIdsAsync$lambda.prototype.constructor=Coroutine$EntityInsertionAdapter$insertListAndReturnIdsAsync$lambda,Coroutine$EntityInsertionAdapter$insertListAndReturnIdsAsync$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$stmt.getConnection().setAutoCommit_6taknv$(!1),this.local$tmp$=this.local$closure$entities.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$tmp$.hasNext()){this.state_0=4;continue}var t=this.local$tmp$.next();if(this.local$this$EntityInsertionAdapter_0=this.local$this$EntityInsertionAdapter,this.local$closure$generatedKeys_0=this.local$closure$generatedKeys,this.local$this$EntityInsertionAdapter_0.bindPreparedStmtToEntity_wfgq1m$(this.local$stmt,t),this.state_0=3,this.result_0=executeUpdateAsyncKmp(this.local$stmt,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 3:var e=this.local$this$EntityInsertionAdapter_0.getGeneratedKey_mtpq9v$_0(this.local$stmt);this.local$closure$generatedKeys_0.add_11rb$(e),this.state_0=2;continue;case 4:return this.local$stmt.getConnection().commit(),Unit;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$insertListAndReturnIdsAsync_4ezy5m$.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$insertListAndReturnIdsAsync_4ezy5m$.prototype=Object.create(CoroutineImpl.prototype),Coroutine$insertListAndReturnIdsAsync_4ezy5m$.prototype.constructor=Coroutine$insertListAndReturnIdsAsync_4ezy5m$,Coroutine$insertListAndReturnIdsAsync_4ezy5m$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=new PreparedStatementConfig(this.$this.makeSql_6taknv$(!0),void 0,StatementConstantsKmp_getInstance().RETURN_GENERATED_KEYS);if(this.local$generatedKeys=ArrayList_init(),this.state_0=2,this.result_0=prepareAndUseStatementAsync(this.$this.db,t,EntityInsertionAdapter$insertListAndReturnIdsAsync$lambda(this.local$entities,this.$this,this.local$generatedKeys),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:return toList(this.local$generatedKeys);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},EntityInsertionAdapter.prototype.insertListAndReturnIdsAsync_4ezy5m$=function(t,e,n){var i=new Coroutine$insertListAndReturnIdsAsync_4ezy5m$(this,t,e);return n?i:i.doResume(null)},EntityInsertionAdapter.prototype.insertList_4ezy5m$=function(t){prepareAndUseStatement_0(this.db,this.makeSql_6taknv$(!1),EntityInsertionAdapter$insertList$lambda(t,this))},Coroutine$EntityInsertionAdapter$insertListAsync$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$EntityInsertionAdapter$insertListAsync$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$EntityInsertionAdapter$insertListAsync$lambda.prototype.constructor=Coroutine$EntityInsertionAdapter$insertListAsync$lambda,Coroutine$EntityInsertionAdapter$insertListAsync$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$stmt.getConnection().setAutoCommit_6taknv$(!1),this.local$tmp$=this.local$closure$entities.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$tmp$.hasNext()){this.state_0=4;continue}var t=this.local$tmp$.next();if(this.local$this$EntityInsertionAdapter.bindPreparedStmtToEntity_wfgq1m$(this.local$stmt,t),this.state_0=3,this.result_0=executeUpdateAsyncKmp(this.local$stmt,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 3:this.state_0=2;continue;case 4:return this.local$stmt.getConnection().commit(),Unit;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$insertListAsync_4ezy5m$.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$insertListAsync_4ezy5m$.prototype=Object.create(CoroutineImpl.prototype),Coroutine$insertListAsync_4ezy5m$.prototype.constructor=Coroutine$insertListAsync_4ezy5m$,Coroutine$insertListAsync_4ezy5m$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=prepareAndUseStatementAsync_0(this.$this.db,this.$this.makeSql_6taknv$(!1),EntityInsertionAdapter$insertListAsync$lambda(this.local$entities,this.$this),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},EntityInsertionAdapter.prototype.insertListAsync_4ezy5m$=function(t,e,n){var i=new Coroutine$insertListAsync_4ezy5m$(this,t,e);return n?i:i.doResume(null)},EntityInsertionAdapter.$metadata$={kind:Kind_CLASS,simpleName:"EntityInsertionAdapter",interfaces:[]},PreparedStatementArrayProxyCommon.prototype.getNthIndexOf_9gxrf$_0=function(t,e,n){for(var i,o=0,r=0;o=(i=o)+1|0,i0?O:null)&&i.setQueryTimeout_za3lpa$(this.stmtQueryTimeout),o=p.keys.iterator();o.hasNext();){var R=o.next(),A=p.get_11rb$(R);switch(null!=(r=_.get_11rb$(R))?r:0){case-5001:w.setNull_vux9f0$(R,null!=(s=this.nullSqlTypes_ftn0z0$_0.get_11rb$(R))?s:0);break;case 4:w.setInt_vux9f0$(R,"number"==typeof(a=A)?a:throwCCE());break;case 16:w.setBoolean_fzusl$(R,"boolean"==typeof(c=A)?c:throwCCE());break;case 12:case-1:w.setString_vqvrqt$(R,null==(l=A)||"string"==typeof l?l:throwCCE());break;case-5:w.setLong_6svq3l$(R,Kotlin.isType(u=A,Kotlin.Long)?u:throwCCE());break;case 6:w.setFloat_24o109$(R,"number"==typeof(h=A)?h:throwCCE());break;case-5e3:w.setObject_6t2rgq$(R,A)}}}catch(t){throw Kotlin.isType(t,SQLException)?(null!=w&&w.close(),t):t}return w},PreparedStatementArrayProxyCommon.prototype.makeArrayPlaceholders_ckuhrn$_0=function(t){for(var e=(2*t|0)-1|0,n=StringBuilder_init(JsMath.max(0,e)),i=0;i1e3&&napier.Napier.w_82mfvz$("WARNING "+s+" query "+c.sql+" took "+h.toString()+"ms"),u}catch(t){throw Kotlin.isType(t,Exception),t}finally{o.close()}}}function prepareAndUseStatement(t,e,n){var i;try{return(Kotlin.isType(i=get_rootDatabase(t),RoomJdbcImpl)?i:throwCCE()).jdbcImplHelper.useConnection_3xhhan$(prepareAndUseStatement$lambda(t,e,n))}catch(n){throw Kotlin.isType(n,Exception)?(napier.Napier.e_82mfvz$("prepareAndUseStatement: Exception running SQL: '"+e.sqlToUse_za3lpa$(dbType_0(t))+"' on DB "+t,n,DoorTag$Companion_getInstance().LOG_TAG),n):n}}function get_sourceDatabase(t){var e;if(Kotlin.isType(t,DoorDatabaseJdbc))e=null;else if(Kotlin.isType(t,DoorDatabaseRepository))e=t.db;else{if(!Kotlin.isType(t,DoorDatabaseReplicateWrapper))throw IllegalStateException_init("SourceDatabase : Not a recognized implementation: "+Kotlin.getKClassFromExpression(t));e=t.realDatabase}return e}function get_doorPrimaryKeyManager(t){var e;return(Kotlin.isType(e=get_rootDatabase(t),DoorDatabaseJdbc)?e:throwCCE()).realPrimaryKeyManager}function get_replicationNotificationDispatcher(t){return Kotlin.isType(t,DoorDatabaseJdbc)?t.realReplicationNotificationDispatcher:get_replicationNotificationDispatcher(get_rootDatabase(t))}function get_nodeIdAuthCache(t){return Kotlin.isType(t,DoorDatabaseJdbc)?t.realNodeIdAuthCache:get_nodeIdAuthCache(get_rootDatabase(t))}function addIncomingReplicationListener(t,e){var n;(Kotlin.isType(n=get_rootDatabase(t),DoorDatabaseJdbc)?n:throwCCE()).realIncomingReplicationListenerHelper.addIncomingReplicationListener_1jp1ja$(e)}function removeIncomingReplicationListener(t,e){var n;(Kotlin.isType(n=get_rootDatabase(t),DoorDatabaseJdbc)?n:throwCCE()).realIncomingReplicationListenerHelper.removeIncomingReplicationListener_1jp1ja$(e)}function get_incomingReplicationListenerHelper(t){var e;return(Kotlin.isType(e=get_rootDatabase(t),DoorDatabaseJdbc)?e:throwCCE()).realIncomingReplicationListenerHelper}function isArray(t){return Kotlin.isArray(t)||Kotlin.isByteArray(t)||Kotlin.isShortArray(t)||Kotlin.isIntArray(t)||Kotlin.isLongArray(t)||Kotlin.isFloatArray(t)||Kotlin.isDoubleArray(t)}function hasListOrArrayParams(t){var e,n,i,o;if(null!=(n=null!=(e=t.values)?asList(e):null)){var r;t:do{var s;if(Kotlin.isType(n,Collection)&&n.isEmpty()){r=!1;break t}for(s=n.iterator();s.hasNext();){var a,c=s.next();if(Kotlin.isType(c,List)||null!=(a=null!=c?isArray(c):null)&&a){r=!0;break t}}r=!1}while(0);o=r}else o=null;return null!=(i=o)&&i}function get_currentDoorState(t){return t.realCurrentDoorState}function copyWithExtraParams(t,e,n){var i,o,r;if(void 0===e&&(e=t.getSql()),void 0===n&&(n=[]),null==(r=null!=(o=Kotlin.isType(i=t,SimpleDoorQuery)?i:null)?o.values:null))throw IllegalArgumentException_init("copyWithExtraParmas: must be simpledoorquery");var s,a=r,c=Array_0(a.length+n.length|0);s=c.length-1|0;for(var l=0;l<=s;l++)c[l]=l1e3&&napier.Napier.w_82mfvz$("WARNING "+this.local$this$prepareAndUseStatementAsync_0+" query "+this.local$closure$stmtConfig_0.sql+" took "+i.toString()+"ms"),this.exceptionState_0=6,this.finallyPath_0=[2],this.state_0=4,this.$returnValue=n;continue;case 2:return this.$returnValue;case 3:this.finallyPath_0=[6],this.exceptionState_0=4;var o=this.exception_0;throw Kotlin.isType(o,Exception),o;case 4:this.exceptionState_0=6,this.local$$receiver.close(),this.state_0=this.finallyPath_0.shift();continue;case 5:return;case 6:throw this.exception_0;default:throw this.state_0=6,new Error("State Machine Unreachable execution")}}catch(t){if(6===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$prepareAndUseStatementAsync.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$prepareAndUseStatementAsync.prototype=Object.create(CoroutineImpl.prototype),Coroutine$prepareAndUseStatementAsync.prototype.constructor=Coroutine$prepareAndUseStatementAsync,Coroutine$prepareAndUseStatementAsync.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(this.exceptionState_0=2,this.state_0=1,this.result_0=(Kotlin.isType(t=get_rootDatabase(this.local$$receiver),RoomJdbcImpl)?t:throwCCE()).jdbcImplHelper.useConnectionAsync_urz6qb$(prepareAndUseStatementAsync$lambda(this.local$$receiver,this.local$stmtConfig,this.local$block),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:return this.result_0;case 2:this.exceptionState_0=4;var e=this.exception_0;throw Kotlin.isType(e,Exception)?(napier.Napier.e_82mfvz$("prepareAndUseStatement: Exception running SQL: '"+this.local$stmtConfig.sqlToUse_za3lpa$(dbType_0(this.local$$receiver))+"' on DB "+this.local$$receiver,e,DoorTag$Companion_getInstance().LOG_TAG),e):e;case 3:return;case 4:throw this.exception_0;default:throw this.state_0=4,new Error("State Machine Unreachable execution")}}catch(e){if(4===this.state_0)throw this.exceptionState_0=this.state_0,e;this.state_0=this.exceptionState_0,this.exception_0=e}},DefaultLifecycleObserver.prototype.onCreate_6298mr$=function(t){},DefaultLifecycleObserver.prototype.onStart_6298mr$=function(t){},DefaultLifecycleObserver.prototype.onResume_6298mr$=function(t){},DefaultLifecycleObserver.prototype.onPause_6298mr$=function(t){},DefaultLifecycleObserver.prototype.onStop_6298mr$=function(t){},DefaultLifecycleObserver.prototype.onDestroy_6298mr$=function(t){},DefaultLifecycleObserver.$metadata$={kind:Kind_INTERFACE,simpleName:"DefaultLifecycleObserver",interfaces:[LifecycleObserver]},Lifecycle.$metadata$={kind:Kind_CLASS,simpleName:"Lifecycle",interfaces:[]},LifecycleObserver.$metadata$={kind:Kind_INTERFACE,simpleName:"LifecycleObserver",interfaces:[]},LifecycleOwner.$metadata$={kind:Kind_INTERFACE,simpleName:"LifecycleOwner",interfaces:[]},LiveData$InnerLifecycleObserver.prototype.onStart_6298mr$=function(t){this.$outer.addActiveObserver_k5xms1$_0(this.observer)},LiveData$InnerLifecycleObserver.prototype.onStop_6298mr$=function(t){this.$outer.removeActiveObserver_8x1bac$_0(this.observer)},LiveData$InnerLifecycleObserver.$metadata$={kind:Kind_CLASS,simpleName:"InnerLifecycleObserver",interfaces:[DefaultLifecycleObserver]},LiveData.prototype.addActiveObserver_k5xms1$_0=function(t){var e,n;this.activeObservers_a4cf93$_0.add_11rb$(t),this.active_my8o68$_0||(this.active_my8o68$_0=!0,this.onActive()),this.initialValueLoaded_gvm12s$_0&&(this.initialValueLoaded_gvm12s$_0&&null==this.value_sax8ub$_0.kotlinx$atomicfu$value?(Kotlin.isType(e=t,Observer)?e:throwCCE()).onChanged_11rb$(null):null!=(n=this.value_sax8ub$_0.kotlinx$atomicfu$value)&&t.onChanged_11rb$(n))},LiveData.prototype.removeActiveObserver_8x1bac$_0=function(t){this.activeObservers_a4cf93$_0.remove_11rb$(t)&&this.activeObservers_a4cf93$_0.isEmpty()&&this.onInactive()},LiveData.prototype.observe_bi6zy5$=function(t,e){get_currentDoorState(t.getLifecycle()).isAtLeast_qiuhep$(DoorState$STARTED_getInstance())&&this.addActiveObserver_k5xms1$_0(e);var n=new LiveData$InnerLifecycleObserver(this,e),i=this.lifecycleObservers_yol6a5$_0,o=new Pair(t,n);i.put_xwzc9p$(e,o),t.getLifecycle().addObserver_3lbrus$(n)},LiveData.prototype.observeForever_fujmse$=function(t){this.addActiveObserver_k5xms1$_0(t)},LiveData.prototype.removeObserver_fujmse$=function(t){var e,n;this.removeActiveObserver_8x1bac$_0(t);var i=this.lifecycleObservers_yol6a5$_0.get_11rb$(t);null!=(n=null!=(e=null!=i?i.first:null)?e.getLifecycle():null)&&n.removeObserver_3lbrus$(i.second)},LiveData.prototype.getValue=function(){return this.value_sax8ub$_0.kotlinx$atomicfu$value},LiveData.prototype.onActive=function(){},LiveData.prototype.onInactive=function(){},LiveData.prototype.postValue_11rb$=function(t){var e;for(this.value_sax8ub$_0.kotlinx$atomicfu$value=t,this.initialValueLoaded_gvm12s$_0=!0,e=this.activeObservers_a4cf93$_0.iterator();e.hasNext();)e.next().onChanged_11rb$(t)},LiveData.prototype.setValue_11rb$=function(t){var e;for(this.value_sax8ub$_0.kotlinx$atomicfu$value=t,this.initialValueLoaded_gvm12s$_0=!0,e=this.activeObservers_a4cf93$_0.iterator();e.hasNext();)e.next().onChanged_11rb$(t)},LiveData.prototype.hasActiveObservers=function(){return!this.activeObservers_a4cf93$_0.isEmpty()},LiveData.$metadata$={kind:Kind_CLASS,simpleName:"LiveData",interfaces:[]},MutableLiveData.prototype.postValue_11rb$=function(t){LiveData.prototype.postValue_11rb$.call(this,t)},MutableLiveData.prototype.setValue_11rb$=function(t){this.postValue_11rb$(t)},MutableLiveData.$metadata$={kind:Kind_CLASS,simpleName:"MutableLiveData",interfaces:[LiveData]},Observer.prototype.onChanged_11rb$=function(t){return this.function$(t)},Observer.$metadata$={kind:Kind_INTERFACE,simpleName:"Observer",interfaces:[]},DataSourceFactory.$metadata$={kind:Kind_CLASS,simpleName:"DataSourceFactory",interfaces:[]},InvalidationTracker.prototype.addObserver_iaeuyr$=function(t){this.observers_nu1bek$_0.add_11rb$(t)},InvalidationTracker.prototype.removeObserver_iaeuyr$=function(t){this.observers_nu1bek$_0.remove_11rb$(t)},InvalidationTracker.prototype.onTablesInvalidated_ywdfdh$=function(t){this.fireChanges_xutz33$_0(t)},InvalidationTracker.prototype.fireChanges_xutz33$_0=function(t){var e,n,i=this.observers_nu1bek$_0,o=ArrayList_init();for(e=i.iterator();e.hasNext();){var r,s=e.next(),a=s.tables;t:do{var c;for(c=0;c!==a.length;++c){var l=a[c];if(t.contains_11rb$(l)){r=!0;break t}}r=!1}while(0);r&&o.add_11rb$(s)}for(n=o.iterator();n.hasNext();)n.next().onInvalidated_ywdfdh$(t)},InvalidationTracker.prototype.setupSqliteTriggers_hjhbxr$=function(t){var e=t.createStatement();try{var n;for(n=InvalidationTracker$Companion_getInstance().generateCreateTriggersSql_xcnoek$(this.tableNames_sxulon$_0).iterator();n.hasNext();){var i=n.next();e.executeUpdate_61zpoe$(i)}}catch(t){throw Kotlin.isType(t,Exception),t}finally{e.close()}},Coroutine$setupSqliteTriggersAsync_hjhbxr$.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$setupSqliteTriggersAsync_hjhbxr$.prototype=Object.create(CoroutineImpl.prototype),Coroutine$setupSqliteTriggersAsync_hjhbxr$.prototype.constructor=Coroutine$setupSqliteTriggersAsync_hjhbxr$,Coroutine$setupSqliteTriggersAsync_hjhbxr$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$$receiver=this.local$connection.createStatement(),this.exceptionState_0=4,this.local$tmp$=InvalidationTracker$Companion_getInstance().generateCreateTriggersSql_xcnoek$(this.$this.tableNames_sxulon$_0).iterator(),this.state_0=1;continue;case 1:if(!this.local$tmp$.hasNext()){this.state_0=3;continue}var t=this.local$tmp$.next();if(this.state_0=2,this.result_0=executeUpdateAsync(this.local$$receiver,t,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 2:this.state_0=1;continue;case 3:this.result_0=Unit,this.exceptionState_0=7,this.finallyPath_0=[6],this.state_0=5;continue;case 4:this.finallyPath_0=[7],this.exceptionState_0=5;var e=this.exception_0;throw Kotlin.isType(e,Exception),e;case 5:this.exceptionState_0=7,this.local$$receiver.close(),this.state_0=this.finallyPath_0.shift();continue;case 6:return;case 7:throw this.exception_0;default:throw this.state_0=7,new Error("State Machine Unreachable execution")}}catch(t){if(7===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},InvalidationTracker.prototype.setupSqliteTriggersAsync_hjhbxr$=function(t,e,n){var i=new Coroutine$setupSqliteTriggersAsync_hjhbxr$(this,t,e);return n?i:i.doResume(null)},InvalidationTracker.prototype.findChangedTablesOnConnection_hjhbxr$=function(t){var e,n=t.prepareStatement_61zpoe$(InvalidationTracker$Companion_getInstance().FIND_CHANGED_TABLES_SQL);try{e=useResults(n.executeQuery(),InvalidationTracker$findChangedTablesOnConnection$lambda$lambda(this))}catch(t){throw Kotlin.isType(t,Exception),t}finally{n.close()}var i=e,o=t.prepareStatement_61zpoe$(InvalidationTracker$Companion_getInstance().RESET_CHANGED_TABLES_SQL);try{o.executeUpdate()}catch(t){throw Kotlin.isType(t,Exception),t}finally{o.close()}return i},Coroutine$findChangedTablesOnConnectionAsync_hjhbxr$.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$findChangedTablesOnConnectionAsync_hjhbxr$.prototype=Object.create(CoroutineImpl.prototype),Coroutine$findChangedTablesOnConnectionAsync_hjhbxr$.prototype.constructor=Coroutine$findChangedTablesOnConnectionAsync_hjhbxr$,Coroutine$findChangedTablesOnConnectionAsync_hjhbxr$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$$receiver=this.local$connection.prepareStatement_61zpoe$(InvalidationTracker$Companion_getInstance().FIND_CHANGED_TABLES_SQL),this.exceptionState_0=2,this.state_0=1,this.result_0=executeQueryAsyncKmp(this.local$$receiver,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:this.result_0=useResults(this.result_0,InvalidationTracker$findChangedTablesOnConnectionAsync$lambda$lambda(this.$this)),this.exceptionState_0=9,this.finallyPath_0=[4],this.state_0=3;continue;case 2:this.finallyPath_0=[9],this.exceptionState_0=3;var t=this.exception_0;throw Kotlin.isType(t,Exception),t;case 3:this.exceptionState_0=9,this.local$$receiver.close(),this.state_0=this.finallyPath_0.shift();continue;case 4:if(this.local$changedTables=this.result_0,this.local$$receiver_0=this.local$connection.prepareStatement_61zpoe$(InvalidationTracker$Companion_getInstance().RESET_CHANGED_TABLES_SQL),this.exceptionState_0=6,this.state_0=5,this.result_0=executeUpdateAsyncKmp(this.local$$receiver_0,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 5:this.exceptionState_0=9,this.finallyPath_0=[8],this.state_0=7;continue;case 6:this.finallyPath_0=[9],this.exceptionState_0=7;var e=this.exception_0;throw Kotlin.isType(e,Exception),e;case 7:this.exceptionState_0=9,this.local$$receiver_0.close(),this.state_0=this.finallyPath_0.shift();continue;case 8:return this.local$changedTables;case 9:throw this.exception_0;default:throw this.state_0=9,new Error("State Machine Unreachable execution")}}catch(t){if(9===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},InvalidationTracker.prototype.findChangedTablesOnConnectionAsync_hjhbxr$=function(t,e,n){var i=new Coroutine$findChangedTablesOnConnectionAsync_hjhbxr$(this,t,e);return n?i:i.doResume(null)},InvalidationTracker$Companion.prototype.generateCreateTriggersSql_xcnoek$=function(t,e){void 0===e&&(e=!0);var n,i,o=e?"TEMP":"",r=e?this.CREATE_TEMP_TABLE_SQL:this.CREATE_TABLE_SQL,s=listOf(r),a=ArrayList_init_0(collectionSizeOrDefault(t,10)),c=0;for(n=t.iterator();n.hasNext();){var l,u=n.next(),h=a.add_11rb$,d=checkIndexOverflow((c=(i=c)+1|0,i)),p=listOf("INSERT OR IGNORE INTO door_update_mods (tableId, invalidated) VALUES ("+d+", 0)"),_=listOf_0(["UPDATE","INSERT","DELETE"]),m=ArrayList_init_0(collectionSizeOrDefault(_,10));for(l=_.iterator();l.hasNext();){var f=l.next();m.add_11rb$("CREATE "+o+" TRIGGER IF NOT EXISTS door_mod_trigger_"+u+"_"+f+" \n AFTER "+f+"\n ON "+u+" \n BEGIN \n UPDATE "+this.UPDATE_TABLE_NAME+"\n SET "+this.TABLE_INVALIDATED_COLNAME+" = 1 \n WHERE "+this.TABLE_ID_COLNAME+" = "+d+"\n AND "+this.TABLE_INVALIDATED_COLNAME+" = 0;\n END \n ")}h.call(a,plus(p,m))}return plus(s,flatten(a))},InvalidationTracker$Companion.$metadata$={kind:Kind_OBJECT,simpleName:"Companion",interfaces:[]};var InvalidationTracker$Companion_instance=null;function InvalidationTracker$Companion_getInstance(){return null===InvalidationTracker$Companion_instance&&new InvalidationTracker$Companion,InvalidationTracker$Companion_instance}function InvalidationTrackerObserver(t){this.tables=t}function RoomDatabaseJdbcImplHelperCommon(t,e,n,i,o){RoomDatabaseJdbcImplHelperCommon$Key_getInstance(),void 0===o&&(o=1),this.dataSource=t,this.db=e,this.tableNames_oqfu6p$_0=n,this.invalidationTracker=i,this.dbType=o,this.transactionIdAtomic_cspjfd$_0=atomic_0(0),this.openTransactions_s0q1ue$_0=concurrentSafeMapOf([]),this.sqliteMutex=Mutex()}function RoomDatabaseJdbcImplHelperCommon$TransactionElement(t,e,n){void 0===n&&(n=0),this.key_rlbeu2$_0=t,this.connection=e,this.transactionId=n}function Coroutine$RoomDatabaseJdbcImplHelperCommon$useNewConnectionAsyncInternal$lambda(t,e,n,i,o){CoroutineImpl.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$block=t,this.local$closure$transactionElement=e}function RoomDatabaseJdbcImplHelperCommon$useNewConnectionAsyncInternal$lambda(t,e){return function(n,i,o){var r=new Coroutine$RoomDatabaseJdbcImplHelperCommon$useNewConnectionAsyncInternal$lambda(t,e,n,this,i);return o?r:r.doResume(null)}}function Coroutine$useNewConnectionAsyncInternal_db2s4t$_0(t,e,n,i){CoroutineImpl.call(this,i),this.exceptionState_0=9,this.$this=t,this.local$connection=void 0,this.local$transactionId=void 0,this.local$transactionStartTime=void 0,this.local$changedTables=void 0,this.local$result=void 0,this.local$block=n}function Coroutine$RoomDatabaseJdbcImplHelperCommon$useConnectionAsync$lambda(t,e,n,i,o){CoroutineImpl.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$block=t,this.local$closure$transactionContext=e}function RoomDatabaseJdbcImplHelperCommon$useConnectionAsync$lambda(t,e){return function(n,i,o){var r=new Coroutine$RoomDatabaseJdbcImplHelperCommon$useConnectionAsync$lambda(t,e,n,this,i);return o?r:r.doResume(null)}}function Coroutine$RoomDatabaseJdbcImplHelperCommon$useConnectionAsync$lambda_0(t,e,n,i,o,r){CoroutineImpl.call(this,r),this.$controller=o,this.exceptionState_0=6,this.local$this$RoomDatabaseJdbcImplHelperCommon=t,this.local$closure$transactionMode=e,this.local$closure$block=n,this.local$$receiver=void 0}function RoomDatabaseJdbcImplHelperCommon$useConnectionAsync$lambda_0(t,e,n){return function(i,o,r){var s=new Coroutine$RoomDatabaseJdbcImplHelperCommon$useConnectionAsync$lambda_0(t,e,n,i,this,o);return r?s:s.doResume(null)}}function Coroutine$RoomDatabaseJdbcImplHelperCommon$useConnectionAsync$lambda_1(t,e,n,i,o,r){CoroutineImpl.call(this,r),this.$controller=o,this.exceptionState_0=1,this.local$closure$transactionMode=t,this.local$closure$block=e,this.local$this$RoomDatabaseJdbcImplHelperCommon=n}function RoomDatabaseJdbcImplHelperCommon$useConnectionAsync$lambda_1(t,e,n){return function(i,o,r){var s=new Coroutine$RoomDatabaseJdbcImplHelperCommon$useConnectionAsync$lambda_1(t,e,n,i,this,o);return r?s:s.doResume(null)}}function Coroutine$useConnectionAsync_ret4ly$(t,e,n,i){CoroutineImpl.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$tmp$_0=void 0,this.local$transactionMode=e,this.local$block=n}function RoomDatabaseJdbcImplHelperCommon$Key(){RoomDatabaseJdbcImplHelperCommon$Key_instance=this}InvalidationTracker.$metadata$={kind:Kind_CLASS,simpleName:"InvalidationTracker",interfaces:[]},InvalidationTrackerObserver.$metadata$={kind:Kind_CLASS,simpleName:"InvalidationTrackerObserver",interfaces:[]},Object.defineProperty(RoomDatabaseJdbcImplHelperCommon$TransactionElement.prototype,"key",{get:function(){return this.key_rlbeu2$_0}}),RoomDatabaseJdbcImplHelperCommon$TransactionElement.$metadata$={kind:Kind_CLASS,simpleName:"TransactionElement",interfaces:[CoroutineContext$Element]},Coroutine$RoomDatabaseJdbcImplHelperCommon$useNewConnectionAsyncInternal$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$RoomDatabaseJdbcImplHelperCommon$useNewConnectionAsyncInternal$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$RoomDatabaseJdbcImplHelperCommon$useNewConnectionAsyncInternal$lambda.prototype.constructor=Coroutine$RoomDatabaseJdbcImplHelperCommon$useNewConnectionAsyncInternal$lambda,Coroutine$RoomDatabaseJdbcImplHelperCommon$useNewConnectionAsyncInternal$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$closure$block(this.local$closure$transactionElement.connection,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$useNewConnectionAsyncInternal_db2s4t$_0.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$useNewConnectionAsyncInternal_db2s4t$_0.prototype=Object.create(CoroutineImpl.prototype),Coroutine$useNewConnectionAsyncInternal_db2s4t$_0.prototype.constructor=Coroutine$useNewConnectionAsyncInternal_db2s4t$_0,Coroutine$useNewConnectionAsyncInternal_db2s4t$_0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(this.local$connection=this.$this.dataSource.getConnection(),this.local$connection.setAutoCommit_6taknv$(!1),this.local$transactionId=this.$this.transactionIdAtomic_cspjfd$_0.atomicfu$incrementAndGet(),this.local$transactionStartTime=systemTimeInMillis(),this.local$changedTables=mutableLinkedListOf_0([]),this.exceptionState_0=6,1===this.$this.dbType){if(this.state_0=1,this.result_0=this.$this.setupSqliteTriggersAsync_ogz5ry$(this.local$connection,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue}this.state_0=2;continue;case 1:this.state_0=2;continue;case 2:var e=new RoomDatabaseJdbcImplHelperCommon$TransactionElement(RoomDatabaseJdbcImplHelperCommon$Key_getInstance(),this.local$connection,this.local$transactionId);if(this.$this.openTransactions_s0q1ue$_0.put_xwzc9p$(this.local$transactionId,e),this.state_0=3,this.result_0=withContext(e,RoomDatabaseJdbcImplHelperCommon$useNewConnectionAsyncInternal$lambda(this.local$block,e),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 3:if(this.local$result=this.result_0,1===this.$this.dbType){if(this.state_0=4,this.result_0=this.$this.invalidationTracker.findChangedTablesOnConnectionAsync_hjhbxr$(this.local$connection,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue}this.state_0=5;continue;case 4:this.local$changedTables.addAll_brywnq$(this.result_0),this.state_0=5;continue;case 5:this.local$connection.commit();var n=this.$this.invalidationTracker;null!=(t=this.local$changedTables.isEmpty()?null:n)&&t.onTablesInvalidated_ywdfdh$(toSet(this.local$changedTables)),this.exceptionState_0=9,this.finallyPath_0=[8],this.state_0=7;continue;case 6:this.finallyPath_0=[9],this.exceptionState_0=7;var i=this.exception_0;throw Kotlin.isType(i,Throwable)?(napier.Napier.e_82mfvz$("useConnectionAsync: transaction ERROR: useConnectionAsync (transaction #"+this.local$transactionId+": Transactions ["+joinToString(this.$this.openTransactions_s0q1ue$_0.keys)+"] are still openException",i),this.local$connection.getAutoCommit()||this.local$connection.rollback(),i):i;case 7:this.exceptionState_0=9,this.local$connection.close(),this.$this.openTransactions_s0q1ue$_0.remove_11rb$(this.local$transactionId),this.$this.openTransactions_s0q1ue$_0.isEmpty()||napier.Napier.w_82mfvz$("useConnectionAsync: close transaction "+this.local$transactionId+" (took "+systemTimeInMillis().subtract(this.local$transactionStartTime).toString()+"ms).There are Transactions ["+joinToString(this.$this.openTransactions_s0q1ue$_0.keys)+"] pending async transactions still open."),this.state_0=this.finallyPath_0.shift();continue;case 8:return this.local$result;case 9:throw this.exception_0;default:throw this.state_0=9,new Error("State Machine Unreachable execution")}}catch(t){if(9===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},RoomDatabaseJdbcImplHelperCommon.prototype.useNewConnectionAsyncInternal_db2s4t$_0=function(t,e,n,i){var o=new Coroutine$useNewConnectionAsyncInternal_db2s4t$_0(this,t,e,n);return i?o:o.doResume(null)},Coroutine$RoomDatabaseJdbcImplHelperCommon$useConnectionAsync$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$RoomDatabaseJdbcImplHelperCommon$useConnectionAsync$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$RoomDatabaseJdbcImplHelperCommon$useConnectionAsync$lambda.prototype.constructor=Coroutine$RoomDatabaseJdbcImplHelperCommon$useConnectionAsync$lambda,Coroutine$RoomDatabaseJdbcImplHelperCommon$useConnectionAsync$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$closure$block(this.local$closure$transactionContext.connection,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$RoomDatabaseJdbcImplHelperCommon$useConnectionAsync$lambda_0.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$RoomDatabaseJdbcImplHelperCommon$useConnectionAsync$lambda_0.prototype=Object.create(CoroutineImpl.prototype),Coroutine$RoomDatabaseJdbcImplHelperCommon$useConnectionAsync$lambda_0.prototype.constructor=Coroutine$RoomDatabaseJdbcImplHelperCommon$useConnectionAsync$lambda_0,Coroutine$RoomDatabaseJdbcImplHelperCommon$useConnectionAsync$lambda_0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$$receiver=this.local$this$RoomDatabaseJdbcImplHelperCommon.sqliteMutex,this.state_0=1,this.result_0=this.local$$receiver.lock_s8jyv4$(null,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:this.exceptionState_0=4;var t=this.local$closure$transactionMode,e=this.local$closure$block;if(this.state_0=2,this.result_0=this.local$this$RoomDatabaseJdbcImplHelperCommon.useNewConnectionAsyncInternal_db2s4t$_0(t,e,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 2:this.result_0=this.result_0,this.exceptionState_0=6,this.finallyPath_0=[3],this.state_0=5;continue;case 3:return this.result_0;case 4:this.finallyPath_0=[6],this.state_0=5;continue;case 5:this.exceptionState_0=6,this.local$$receiver.unlock_s8jyv4$(null),this.state_0=this.finallyPath_0.shift();continue;case 6:throw this.exception_0;default:throw this.state_0=6,new Error("State Machine Unreachable execution")}}catch(t){if(6===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$RoomDatabaseJdbcImplHelperCommon$useConnectionAsync$lambda_1.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$RoomDatabaseJdbcImplHelperCommon$useConnectionAsync$lambda_1.prototype=Object.create(CoroutineImpl.prototype),Coroutine$RoomDatabaseJdbcImplHelperCommon$useConnectionAsync$lambda_1.prototype.constructor=Coroutine$RoomDatabaseJdbcImplHelperCommon$useConnectionAsync$lambda_1,Coroutine$RoomDatabaseJdbcImplHelperCommon$useConnectionAsync$lambda_1.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$RoomDatabaseJdbcImplHelperCommon.useNewConnectionAsyncInternal_db2s4t$_0(this.local$closure$transactionMode,this.local$closure$block,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$useConnectionAsync_ret4ly$.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$useConnectionAsync_ret4ly$.prototype=Object.create(CoroutineImpl.prototype),Coroutine$useConnectionAsync_ret4ly$.prototype.constructor=Coroutine$useConnectionAsync_ret4ly$,Coroutine$useConnectionAsync_ret4ly$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e=this.context.get_j3r2sn$(RoomDatabaseJdbcImplHelperCommon$Key_getInstance()),n=Kotlin.Long.fromInt(1e3*(Kotlin.isType(t=get_rootDatabase(this.$this.db),DoorDatabaseJdbc)?t:throwCCE()).jdbcQueryTimeout|0);if(null!=e){if(this.state_0=5,this.result_0=withContext(e,RoomDatabaseJdbcImplHelperCommon$useConnectionAsync$lambda(this.local$block,e),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue}if(1===this.$this.dbType){if(this.state_0=3,this.result_0=withTimeout(n,RoomDatabaseJdbcImplHelperCommon$useConnectionAsync$lambda_0(this.$this,this.local$transactionMode,this.local$block),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue}if(this.state_0=2,this.result_0=withTimeout(n,RoomDatabaseJdbcImplHelperCommon$useConnectionAsync$lambda_1(this.local$transactionMode,this.local$block,this.$this),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:case 3:this.local$tmp$_0=this.result_0,this.state_0=4;continue;case 4:this.state_0=6;continue;case 5:this.local$tmp$_0=this.result_0,this.state_0=6;continue;case 6:return this.local$tmp$_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},RoomDatabaseJdbcImplHelperCommon.prototype.useConnectionAsync_ret4ly$=function(t,e,n,i){var o=new Coroutine$useConnectionAsync_ret4ly$(this,t,e,n);return i?o:o.doResume(null)},RoomDatabaseJdbcImplHelperCommon.prototype.useConnectionAsync_urz6qb$=function(t,e){return this.useConnectionAsync_ret4ly$(TransactionMode$READ_WRITE_getInstance(),t,e)},RoomDatabaseJdbcImplHelperCommon$Key.$metadata$={kind:Kind_OBJECT,simpleName:"Key",interfaces:[CoroutineContext$Key]};var RoomDatabaseJdbcImplHelperCommon$Key_instance=null;function RoomDatabaseJdbcImplHelperCommon$Key_getInstance(){return null===RoomDatabaseJdbcImplHelperCommon$Key_instance&&new RoomDatabaseJdbcImplHelperCommon$Key,RoomDatabaseJdbcImplHelperCommon$Key_instance}function RoomJdbcImpl(){}function DoorConstants(){DoorConstants_instance=this,this.MIME_TYPE_PLAIN="text/plain",this.MIME_TYPE_JSON="application/json",this.HEADER_DBVERSION="door-dbversion",this.HEADER_NODE="door-node",this.DBINFO_TABLENAME="_doorwayinfo"}RoomDatabaseJdbcImplHelperCommon.$metadata$={kind:Kind_CLASS,simpleName:"RoomDatabaseJdbcImplHelperCommon",interfaces:[]},RoomJdbcImpl.$metadata$={kind:Kind_INTERFACE,simpleName:"RoomJdbcImpl",interfaces:[]},DoorConstants.$metadata$={kind:Kind_OBJECT,simpleName:"DoorConstants",interfaces:[]};var DoorConstants_instance=null;function DoorConstants_getInstance(){return null===DoorConstants_instance&&new DoorConstants,DoorConstants_instance}function DoorDatabaseCallback(){}function DoorDatabaseCallbackStatementList(){}function DoorDatabaseCallbackSync(){}function DoorDatabaseJdbc(){}function DoorDatabaseReplicateWrapper(){DoorDatabaseReplicateWrapper$Companion_getInstance()}function DoorDatabaseReplicateWrapper$Companion(){DoorDatabaseReplicateWrapper$Companion_instance=this,this.SUFFIX="_ReplicateWrapper"}DoorDatabaseCallback.$metadata$={kind:Kind_INTERFACE,simpleName:"DoorDatabaseCallback",interfaces:[]},DoorDatabaseCallbackStatementList.$metadata$={kind:Kind_INTERFACE,simpleName:"DoorDatabaseCallbackStatementList",interfaces:[DoorDatabaseCallback]},DoorDatabaseCallbackSync.$metadata$={kind:Kind_INTERFACE,simpleName:"DoorDatabaseCallbackSync",interfaces:[DoorDatabaseCallback]},DoorDatabaseJdbc.$metadata$={kind:Kind_INTERFACE,simpleName:"DoorDatabaseJdbc",interfaces:[]},DoorDatabaseReplicateWrapper$Companion.$metadata$={kind:Kind_OBJECT,simpleName:"Companion",interfaces:[]};var DoorDatabaseReplicateWrapper$Companion_instance=null;function DoorDatabaseReplicateWrapper$Companion_getInstance(){return null===DoorDatabaseReplicateWrapper$Companion_instance&&new DoorDatabaseReplicateWrapper$Companion,DoorDatabaseReplicateWrapper$Companion_instance}function DoorDatabaseRepository(){DoorDatabaseRepository$Companion_getInstance()}function DoorDatabaseRepository$Companion(){DoorDatabaseRepository$Companion_instance=this,this.STATUS_CONNECTED=1,this.STATUS_DISCONNECTED=2,this.DOOR_ATTACHMENT_URI_SCHEME="door-attachment",this.DOOR_ATTACHMENT_URI_PREFIX="door-attachment://",this.PATH_REPLICATION="replication",this.ENDPOINT_SUBSCRIBE_SSE="subscribe",this.ENDPOINT_CHECK_PENDING_REPLICATION_TRACKERS="checkPendingReplicationTrackers",this.ENDPOINT_RECEIVE_ENTITIES="receive",this.ENDPOINT_CHECK_FOR_ENTITIES_ALREADY_RECEIVED="checkForEntitiesAlreadyReceived",this.ENDPOINT_FIND_PENDING_REPLICATION_TRACKERS="findPendingReplicationTrackers",this.ENDPOINT_FIND_PENDING_REPLICATIONS="findPendingReplication",this.ENDPOINT_MARK_REPLICATE_TRACKERS_AS_PROCESSED="markReplicateTrackersAsProcessed"}DoorDatabaseReplicateWrapper.$metadata$={kind:Kind_INTERFACE,simpleName:"DoorDatabaseReplicateWrapper",interfaces:[]},DoorDatabaseRepository$Companion.$metadata$={kind:Kind_OBJECT,simpleName:"Companion",interfaces:[]};var DoorDatabaseRepository$Companion_instance=null;function DoorDatabaseRepository$Companion_getInstance(){return null===DoorDatabaseRepository$Companion_instance&&new DoorDatabaseRepository$Companion,DoorDatabaseRepository$Companion_instance}function DoorDbType(){DoorDbType$Companion_getInstance()}function DoorDbType$Companion(){DoorDbType$Companion_instance=this,this.SQLITE=1,this.POSTGRES=2,this.SUPPORTED_TYPES=listOf_0([1,2]),this.PRODUCT_NAME_MAP=mapOf([to("PostgreSQL",2),to("SQLite",1)]);var t,e=this.PRODUCT_NAME_MAP.keys,n=ArrayList_init_0(collectionSizeOrDefault(e,10));for(t=e.iterator();t.hasNext();){var i=t.next();n.add_11rb$(to(this.PRODUCT_NAME_MAP.get_11rb$(i),i))}this.PRODUCT_INT_TO_NAME_MAP=toMap(n)}DoorDatabaseRepository.$metadata$={kind:Kind_INTERFACE,simpleName:"DoorDatabaseRepository",interfaces:[]},DoorDbType$Companion.prototype.typeIntFromProductName_61zpoe$=function(t){var e;return null!=(e=this.PRODUCT_NAME_MAP.get_11rb$(t))?e:-1},DoorDbType$Companion.prototype.productNameForDbType_za3lpa$=function(t){var e;switch(t){case 1:e="SQLite";break;case 2:e="Postgres";break;default:e="UNKNOWN"}return e},DoorDbType$Companion.$metadata$={kind:Kind_OBJECT,simpleName:"Companion",interfaces:[]};var DoorDbType$Companion_instance=null;function DoorDbType$Companion_getInstance(){return null===DoorDbType$Companion_instance&&new DoorDbType$Companion,DoorDbType$Companion_instance}function DoorMediatorLiveData(){MutableLiveData_init_0(this),this.sources_wkipbb$_0=concurrentSafeMapOf([])}function DoorMediatorLiveData$Source(t,e){this.liveData_0=t,this.mObserver_0=e}function DoorPrimaryKeyManager(t){var e;for(DoorPrimaryKeyManager$Companion_getInstance(),this.tableKeyManagers_0=threadSafeMapOf([]),this.nodeId_kv3hpt$_0=lazy(LazyThreadSafetyMode.NONE,DoorPrimaryKeyManager$nodeId$lambda),e=t.iterator();e.hasNext();){var n=e.next(),i=this.tableKeyManagers_0,o=new DoorPrimaryKeyManager$TablePrimaryKeyManager(this);i.put_xwzc9p$(n,o)}}function DoorPrimaryKeyManager$TablePrimaryKeyManager(t){this.$outer=t,this.atomicWrapper_0=atomic_1(L0)}function Coroutine$nextIdAsync(t,e){CoroutineImpl.call(this,e),this.exceptionState_0=1,this.$this=t}function DoorPrimaryKeyManager$Companion(){DoorPrimaryKeyManager$Companion_instance=this,this.UNUSED_BITS=1,this.EPOCH_BITS=31,this.NODE_ID_BITS=20,this.SEQUENCE_BITS=12,this.MAX_NODE_ID=numberToInt(JsMath.pow(2,20)),this.MAX_SEQUENCE=numberToInt(JsMath.pow(2,12)),this.CUSTOM_EPOCH=1577836800}DoorMediatorLiveData$Source.prototype.onChanged_11rb$=function(t){this.mObserver_0.onChanged_11rb$(t)},DoorMediatorLiveData$Source.prototype.plug=function(){this.liveData_0.observeForever_fujmse$(this)},DoorMediatorLiveData$Source.prototype.unplug=function(){this.liveData_0.removeObserver_fujmse$(this)},DoorMediatorLiveData$Source.$metadata$={kind:Kind_CLASS,simpleName:"Source",interfaces:[Observer]},DoorMediatorLiveData.prototype.addSource_mmltu2$=function(t,e){var n;null!=(n=this.sources_wkipbb$_0.get_11rb$(t))&&n.unplug();var i=new DoorMediatorLiveData$Source(t,e);this.sources_wkipbb$_0.put_xwzc9p$(t,i),this.hasActiveObservers()&&i.plug()},DoorMediatorLiveData.prototype.removeSource_pn7x1m$=function(t){var e;null!=(e=this.sources_wkipbb$_0.remove_11rb$(t))&&e.unplug()},DoorMediatorLiveData.prototype.onActive=function(){var t;for(MutableLiveData.prototype.onActive.call(this),t=this.sources_wkipbb$_0.entries.iterator();t.hasNext();)t.next().value.plug()},DoorMediatorLiveData.prototype.onInactive=function(){var t;for(MutableLiveData.prototype.onInactive.call(this),t=this.sources_wkipbb$_0.entries.iterator();t.hasNext();)t.next().value.unplug()},DoorMediatorLiveData.$metadata$={kind:Kind_CLASS,simpleName:"DoorMediatorLiveData",interfaces:[MutableLiveData]},Object.defineProperty(DoorPrimaryKeyManager.prototype,"timestamp_0",{configurable:!0,get:function(){return systemTimeInMillis().div(Kotlin.Long.fromInt(1e3)).subtract(Kotlin.Long.fromInt(1577836800))}}),Object.defineProperty(DoorPrimaryKeyManager.prototype,"nodeId",{configurable:!0,get:function(){return this.nodeId_kv3hpt$_0.value}}),DoorPrimaryKeyManager$TablePrimaryKeyManager.prototype.nextWrappedTimeAndSeqNum_0=function(t){var e;this.$outer;t:do{for(;;){var n=t.kotlinx$atomicfu$value;this.$outer;var i=n.shiftRight(32),o=n.and(L2147483647),r=systemTimeInMillis().div(Kotlin.Long.fromInt(1e3)).subtract(Kotlin.Long.fromInt(1577836800)),s=r.compareTo_11rb$(i)>0?L0:o.add(Kotlin.Long.fromInt(1)),a=r.shiftLeft(32).or(s);if(t.atomicfu$compareAndSet(n,a)){e=a;break t}}}while(0);return e},DoorPrimaryKeyManager$TablePrimaryKeyManager.prototype.unwrapTime_0=function(t){return t.shiftRight(32)},DoorPrimaryKeyManager$TablePrimaryKeyManager.prototype.unwrapSeqNum_0=function(t){return t.and(L2147483647)},DoorPrimaryKeyManager$TablePrimaryKeyManager.prototype.generateId_0=function(t,e,n){return t.shiftLeft(32).or(e.shiftLeft(12)).or(n)},DoorPrimaryKeyManager$TablePrimaryKeyManager.prototype.nextId=function(){var t,e=this.atomicWrapper_0;this.$outer;t:do{for(;;){var n=e.kotlinx$atomicfu$value;this.$outer;var i=n.shiftRight(32),o=n.and(L2147483647),r=systemTimeInMillis().div(Kotlin.Long.fromInt(1e3)).subtract(Kotlin.Long.fromInt(1577836800)),s=r.compareTo_11rb$(i)>0?L0:o.add(Kotlin.Long.fromInt(1)),a=r.shiftLeft(32).or(s);if(e.atomicfu$compareAndSet(n,a)){t=a;break t}}}while(0);var c=t,l=this.unwrapSeqNum_0(c);return l.toNumber()0?L0:o.add(Kotlin.Long.fromInt(1)),a=r.shiftLeft(32).or(s);if(e.atomicfu$compareAndSet(n,a)){t=a;break t}}}while(0);var c=t,l=this.$this.unwrapSeqNum_0(c);if(l.toNumber()=0},DoorState.$metadata$={kind:Kind_CLASS,simpleName:"DoorState",interfaces:[Enum]},DoorState.values=DoorState$values,DoorState.valueOf_61zpoe$=DoorState$valueOf,DoorMigration.$metadata$={kind:Kind_CLASS,simpleName:"DoorMigration",interfaces:[]},Object.defineProperty(DoorMigrationAsync.prototype,"startVersion",{get:function(){return this.startVersion_c6t2oi$_0}}),Object.defineProperty(DoorMigrationAsync.prototype,"endVersion",{get:function(){return this.endVersion_uk81xn$_0}}),DoorMigrationAsync.$metadata$={kind:Kind_CLASS,simpleName:"DoorMigrationAsync",interfaces:[DoorMigration]},Object.defineProperty(DoorMigrationStatementList.prototype,"startVersion",{get:function(){return this.startVersion_s1nxoj$_0}}),Object.defineProperty(DoorMigrationStatementList.prototype,"endVersion",{get:function(){return this.endVersion_vre3y4$_0}}),DoorMigrationStatementList.$metadata$={kind:Kind_CLASS,simpleName:"DoorMigrationStatementList",interfaces:[DoorMigration]},Object.defineProperty(DoorMigrationSync.prototype,"startVersion",{get:function(){return this.startVersion_9cyntb$_0}}),Object.defineProperty(DoorMigrationSync.prototype,"endVersion",{get:function(){return this.endVersion_lo3yju$_0}}),DoorMigrationSync.$metadata$={kind:Kind_CLASS,simpleName:"DoorMigrationSync",interfaces:[DoorMigration]},Coroutine$findPendingReplicationTrackers$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$findPendingReplicationTrackers$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$findPendingReplicationTrackers$lambda.prototype.constructor=Coroutine$findPendingReplicationTrackers$lambda,Coroutine$findPendingReplicationTrackers$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$stmt.setLong_6svq3l$(1,this.local$closure$remoteNodeId),this.local$stmt.setInt_vux9f0$(2,this.local$closure$offset),this.state_0=2,this.result_0=executeQueryAsyncKmp(this.local$stmt,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:return useResults(this.result_0,findPendingReplicationTrackers$lambda$lambda(this.local$closure$repEntityMetaData));default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$checkPendingReplicationTrackers$lambda$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$checkPendingReplicationTrackers$lambda$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$checkPendingReplicationTrackers$lambda$lambda.prototype.constructor=Coroutine$checkPendingReplicationTrackers$lambda$lambda,Coroutine$checkPendingReplicationTrackers$lambda$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$tmp$=this.local$closure$pendingReplicationObjects.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$tmp$.hasNext()){this.state_0=4;continue}var t,e,n=this.local$tmp$.next();if(this.local$closure$repEntityMetaData_0=this.local$closure$repEntityMetaData,this.local$closure$alreadyUpdatedEntities_0=this.local$closure$alreadyUpdatedEntities,setJsonPrimitive(this.local$stmt,1,this.local$closure$repEntityMetaData_0.entityPrimaryKeyFieldType,Kotlin.isType(t=n.get_11rb$(ReplicationEntityMetaData$Companion_getInstance().KEY_PRIMARY_KEY),JsonPrimitive_2)?t:throwCCE()),setJsonPrimitive(this.local$stmt,2,this.local$closure$repEntityMetaData_0.versionIdFieldType,Kotlin.isType(e=n.get_11rb$(ReplicationEntityMetaData$Companion_getInstance().KEY_VERSION_ID),JsonPrimitive_2)?e:throwCCE()),this.state_0=3,this.result_0=executeQueryAsyncKmp(this.local$stmt,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 3:useResults(this.result_0,checkPendingReplicationTrackers$lambda$lambda$lambda$lambda(this.local$closure$alreadyUpdatedEntities_0,this.local$closure$repEntityMetaData_0)),this.state_0=2;continue;case 4:return Unit;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$checkPendingReplicationTrackers$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$checkPendingReplicationTrackers$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$checkPendingReplicationTrackers$lambda.prototype.constructor=Coroutine$checkPendingReplicationTrackers$lambda,Coroutine$checkPendingReplicationTrackers$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=prepareAndUseStatementAsync_0(this.local$transactionDb,this.local$closure$repEntityMetaData.findAlreadyUpToDateEntitiesSql,checkPendingReplicationTrackers$lambda$lambda(this.local$closure$pendingReplicationObjects,this.local$closure$repEntityMetaData,this.local$closure$alreadyUpdatedEntities),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$checkPendingReplicationTrackers.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$checkPendingReplicationTrackers.prototype=Object.create(CoroutineImpl.prototype),Coroutine$checkPendingReplicationTrackers.prototype.constructor=Coroutine$checkPendingReplicationTrackers,Coroutine$checkPendingReplicationTrackers.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(null==(t=this.local$dbMetaData.replicateEntities.get_11rb$(this.local$tableId)))throw IllegalArgumentException_init("No such table: "+this.local$tableId);var e,n=t,i=ArrayList_init_0(collectionSizeOrDefault(this.local$pendingReplications,10));for(e=this.local$pendingReplications.iterator();e.hasNext();){var o,r=e.next();i.add_11rb$(Kotlin.isType(o=r,JsonObject)?o:throwCCE())}var s=i;if(this.local$alreadyUpdatedEntities=mutableLinkedListOf([]),this.state_0=2,this.result_0=withDoorTransactionAsync(this.local$$receiver,void 0,checkPendingReplicationTrackers$lambda(n,s,this.local$alreadyUpdatedEntities),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:return new JsonArray(this.local$alreadyUpdatedEntities);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$markReplicateTrackersAsProcessed$lambda$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$markReplicateTrackersAsProcessed$lambda$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$markReplicateTrackersAsProcessed$lambda$lambda.prototype.constructor=Coroutine$markReplicateTrackersAsProcessed$lambda$lambda,Coroutine$markReplicateTrackersAsProcessed$lambda$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$tmp$=this.local$closure$processedReplicateTrackersObjects.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$tmp$.hasNext()){this.state_0=4;continue}var t,e,n,i,o=this.local$tmp$.next(),r=this.local$closure$repEntityMetaData,s=this.local$closure$remoteNodeId;if(setJsonPrimitive(this.local$stmt,1,r.entityPrimaryKeyFieldType,Kotlin.isType(t=o.get_11rb$(ReplicationEntityMetaData$Companion_getInstance().KEY_PRIMARY_KEY),JsonPrimitive_2)?t:throwCCE()),setJsonPrimitive(this.local$stmt,2,r.versionIdFieldType,Kotlin.isType(e=o.get_11rb$(ReplicationEntityMetaData$Companion_getInstance().KEY_VERSION_ID),JsonPrimitive_2)?e:throwCCE()),setJsonPrimitive(this.local$stmt,3,r.versionIdFieldType,Kotlin.isType(n=o.get_11rb$(ReplicationEntityMetaData$Companion_getInstance().KEY_VERSION_ID),JsonPrimitive_2)?n:throwCCE()),setJsonPrimitive(this.local$stmt,4,r.entityPrimaryKeyFieldType,Kotlin.isType(i=o.get_11rb$(ReplicationEntityMetaData$Companion_getInstance().KEY_PRIMARY_KEY),JsonPrimitive_2)?i:throwCCE()),this.local$stmt.setLong_6svq3l$(5,s),this.state_0=3,this.result_0=executeUpdateAsyncKmp(this.local$stmt,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 3:this.state_0=2;continue;case 4:return Unit;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$markReplicateTrackersAsProcessed$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$markReplicateTrackersAsProcessed$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$markReplicateTrackersAsProcessed$lambda.prototype.constructor=Coroutine$markReplicateTrackersAsProcessed$lambda,Coroutine$markReplicateTrackersAsProcessed$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=prepareAndUseStatementAsync_0(this.local$transactionDb,this.local$closure$repEntityMetaData.updateSetTrackerProcessedSql_za3lpa$(dbType_0(this.local$transactionDb)),markReplicateTrackersAsProcessed$lambda$lambda(this.local$closure$processedReplicateTrackersObjects,this.local$closure$repEntityMetaData,this.local$closure$remoteNodeId),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$markReplicateTrackersAsProcessed.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$markReplicateTrackersAsProcessed.prototype=Object.create(CoroutineImpl.prototype),Coroutine$markReplicateTrackersAsProcessed.prototype.constructor=Coroutine$markReplicateTrackersAsProcessed,Coroutine$markReplicateTrackersAsProcessed.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(null==(t=this.local$dbMetaData.replicateEntities.get_11rb$(this.local$tableId)))throw IllegalArgumentException_init("No such table: "+this.local$tableId);var e,n=t,i=ArrayList_init_0(collectionSizeOrDefault(this.local$processedReplicateTrackers,10));for(e=this.local$processedReplicateTrackers.iterator();e.hasNext();){var o,r=e.next();i.add_11rb$(Kotlin.isType(o=r,JsonObject)?o:throwCCE())}var s=i;if(this.state_0=2,this.result_0=withDoorTransactionAsync(this.local$$receiver,void 0,markReplicateTrackersAsProcessed$lambda(n,s,this.local$remoteNodeId),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$findPendingReplications$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$findPendingReplications$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$findPendingReplications$lambda.prototype.constructor=Coroutine$findPendingReplications$lambda,Coroutine$findPendingReplications$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$stmt.setLong_6svq3l$(1,this.local$closure$remoteNodeId),this.state_0=2,this.result_0=executeQueryAsyncKmp(this.local$stmt,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:return useResults(this.result_0,findPendingReplications$lambda$lambda(this.local$closure$repEntityMetaData));default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$insertReplicationsIntoReceiveView$lambda$lambda$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$insertReplicationsIntoReceiveView$lambda$lambda$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$insertReplicationsIntoReceiveView$lambda$lambda$lambda.prototype.constructor=Coroutine$insertReplicationsIntoReceiveView$lambda$lambda$lambda,Coroutine$insertReplicationsIntoReceiveView$lambda$lambda$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$tmp$=this.local$closure$receivedObjects.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$tmp$.hasNext()){this.state_0=5;continue}this.local$element=this.local$tmp$.next(),this.local$closure$repEntityMetaData_0=this.local$closure$repEntityMetaData;var t,e,n,i,o,r,s=this.local$closure$insertStmt;this.local$closure$remoteNodeId_0=this.local$closure$remoteNodeId,t=this.local$closure$repEntityMetaData_0.insertIntoReceiveViewTypesList_8be2vx$.size;for(var a=0;a lastFetchReplicationCompleteTime)\n OR (lastLocalChangeTime > lastSendReplicationCompleteTime))\n AND nodeId = ? \n AND priority = (\n SELECT COALESCE((\n SELECT MIN(RepStatusInternal.priority)\n FROM ReplicationStatus RepStatusInternal\n WHERE ((RepStatusInternal.lastRemoteChangeTime > RepStatusInternal.lastFetchReplicationCompleteTime)\n OR (RepStatusInternal.lastLocalChangeTime > RepStatusInternal.lastSendReplicationCompleteTime))\n AND RepStatusInternal.nodeId = ?), 50000)\n ) \n LIMIT ? \n ",ReplicationSubscriptionManager$findTablesToReplicate$lambda(this),t)},Coroutine$ReplicationSubscriptionManager$produceJobs$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$ReplicationSubscriptionManager$produceJobs$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$ReplicationSubscriptionManager$produceJobs$lambda.prototype.constructor=Coroutine$ReplicationSubscriptionManager$produceJobs$lambda,Coroutine$ReplicationSubscriptionManager$produceJobs$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(napier.Napier.d_82mfvz$(this.local$this$ReplicationSubscriptionManager.logPrefix+" checking queue",void 0,DoorTag$Companion_getInstance().LOG_TAG),this.state_0=3,this.result_0=this.local$this$ReplicationSubscriptionManager.checkQueueSignal_0.receive(this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 3:if(this.local$this$ReplicationSubscriptionManager.enabled){if(this.local$numProcessorsAvailable=this.local$this$ReplicationSubscriptionManager.numProcessors_0-this.local$this$ReplicationSubscriptionManager.activeTables_0.size|0,this.local$numProcessorsAvailable>0){if(this.state_0=4,this.result_0=this.local$this$ReplicationSubscriptionManager.findTablesToReplicate_0(this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue}this.state_0=9;continue}this.state_0=10;continue;case 4:var t,e=this.result_0,n=ArrayList_init();for(t=e.iterator();t.hasNext();){var i=t.next();this.local$this$ReplicationSubscriptionManager.activeTables_0.contains_11rb$(i.tableId)||n.add_11rb$(i)}this.local$tablesToReplicate=n,napier.Napier.d_82mfvz$(this.local$this$ReplicationSubscriptionManager.logPrefix+": produceJobs need to replicate table ids #"+joinToString(this.local$tablesToReplicate,void 0,void 0,void 0,void 0,void 0,ReplicationSubscriptionManager$produceJobs$lambda$lambda),void 0,DoorTag$Companion_getInstance().LOG_TAG);var o=this.local$tablesToReplicate.size;this.local$numTablesToSend=JsMath.min(this.local$numProcessorsAvailable,o),this.local$i=0,this.state_0=5;continue;case 5:if(this.local$i>=this.local$numTablesToSend){this.state_0=8;continue}var r=this.local$this$ReplicationSubscriptionManager.activeTables_0,s=this.local$tablesToReplicate.get_za3lpa$(this.local$i).tableId;if(r.add_11rb$(s),this.state_0=6,this.result_0=this.local$$receiver.send_11rb$(this.local$tablesToReplicate.get_za3lpa$(this.local$i),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 6:this.state_0=7;continue;case 7:this.local$i++,this.state_0=5;continue;case 8:this.state_0=9;continue;case 9:this.state_0=10;continue;case 10:if(!get_isActive_0(this.local$$receiver.coroutineContext)){this.state_0=11;continue}this.state_0=2;continue;case 11:return Unit;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ReplicationSubscriptionManager.prototype.produceJobs_0=function(t){return produce(t,void 0,void 0,ReplicationSubscriptionManager$produceJobs$lambda(this))},Coroutine$ReplicationSubscriptionManager$initReplicationStatus$lambda$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$ReplicationSubscriptionManager$initReplicationStatus$lambda$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$ReplicationSubscriptionManager$initReplicationStatus$lambda$lambda.prototype.constructor=Coroutine$ReplicationSubscriptionManager$initReplicationStatus$lambda$lambda,Coroutine$ReplicationSubscriptionManager$initReplicationStatus$lambda$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$tmp$=this.local$this$ReplicationSubscriptionManager.dbMetadata_0.replicateEntities.values.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$tmp$.hasNext()){this.state_0=4;continue}var t=this.local$tmp$.next(),e=this.local$closure$remoteNodeIdVal;if(this.local$stmt.setInt_vux9f0$(1,t.tableId),this.local$stmt.setInt_vux9f0$(2,t.priority),this.local$stmt.setLong_6svq3l$(3,e),this.local$stmt.setLong_6svq3l$(4,L0),this.local$stmt.setLong_6svq3l$(5,L0),this.local$stmt.setLong_6svq3l$(6,L0),this.local$stmt.setLong_6svq3l$(7,L0),this.local$stmt.setInt_vux9f0$(8,t.tableId),this.local$stmt.setLong_6svq3l$(9,e),this.state_0=3,this.result_0=executeUpdateAsyncKmp(this.local$stmt,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 3:this.state_0=2;continue;case 4:return Unit;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$ReplicationSubscriptionManager$initReplicationStatus$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$ReplicationSubscriptionManager$initReplicationStatus$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$ReplicationSubscriptionManager$initReplicationStatus$lambda.prototype.constructor=Coroutine$ReplicationSubscriptionManager$initReplicationStatus$lambda,Coroutine$ReplicationSubscriptionManager$initReplicationStatus$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=prepareAndUseStatementAsync_0(this.local$transactionDb,"\n INSERT INTO ReplicationStatus (tableId, priority, nodeId, lastRemoteChangeTime, lastFetchReplicationCompleteTime, lastLocalChangeTime, lastSendReplicationCompleteTime)\n SELECT ? AS tableId, ? as priority, ? AS nodeId, ? AS lastRemoteChangeTime, ? AS lastFetchReplicationCompleteTime, ? AS lastLocalChangeTime, ? AS lastSendReplicationCompleteTime\n WHERE NOT EXISTS(\n SELECT RepStatusInternal.tableId \n FROM ReplicationStatus RepStatusInternal\n WHERE RepStatusInternal.tableId = ? \n AND RepStatusInternal.nodeId = ?)\n ",ReplicationSubscriptionManager$initReplicationStatus$lambda$lambda(this.local$this$ReplicationSubscriptionManager,this.local$closure$remoteNodeIdVal),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$initReplicationStatus_0.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$initReplicationStatus_0.prototype=Object.create(CoroutineImpl.prototype),Coroutine$initReplicationStatus_0.prototype.constructor=Coroutine$initReplicationStatus_0,Coroutine$initReplicationStatus_0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=this.$this.remoteNodeId_0.kotlinx$atomicfu$value;if(this.state_0=2,this.result_0=withDoorTransactionAsync(this.$this.repository_0.db,void 0,ReplicationSubscriptionManager$initReplicationStatus$lambda(this.$this,t),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ReplicationSubscriptionManager.prototype.initReplicationStatus_0=function(t,e){var n=new Coroutine$initReplicationStatus_0(this,t);return e?n:n.doResume(null)},Coroutine$ReplicationSubscriptionManager$launchProcessor$lambda$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$ReplicationSubscriptionManager$launchProcessor$lambda$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$ReplicationSubscriptionManager$launchProcessor$lambda$lambda.prototype.constructor=Coroutine$ReplicationSubscriptionManager$launchProcessor$lambda$lambda,Coroutine$ReplicationSubscriptionManager$launchProcessor$lambda$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$stmt.setLong_6svq3l$(1,this.local$closure$timeNow),this.local$stmt.setInt_vux9f0$(2,this.local$closure$item.tableId),this.local$stmt.setLong_6svq3l$(3,this.local$this$ReplicationSubscriptionManager.remoteNodeId_0.kotlinx$atomicfu$value),this.state_0=2,this.result_0=executeUpdateAsyncKmp(this.local$stmt,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$ReplicationSubscriptionManager$launchProcessor$lambda$lambda_0.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$ReplicationSubscriptionManager$launchProcessor$lambda$lambda_0.prototype=Object.create(CoroutineImpl.prototype),Coroutine$ReplicationSubscriptionManager$launchProcessor$lambda$lambda_0.prototype.constructor=Coroutine$ReplicationSubscriptionManager$launchProcessor$lambda$lambda_0,Coroutine$ReplicationSubscriptionManager$launchProcessor$lambda$lambda_0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$stmt.setLong_6svq3l$(1,this.local$closure$timeNow),this.local$stmt.setInt_vux9f0$(2,this.local$closure$item.tableId),this.local$stmt.setLong_6svq3l$(3,this.local$this$ReplicationSubscriptionManager.remoteNodeId_0.kotlinx$atomicfu$value),this.state_0=2,this.result_0=executeUpdateAsyncKmp(this.local$stmt,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$ReplicationSubscriptionManager$launchProcessor$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$ReplicationSubscriptionManager$launchProcessor$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$ReplicationSubscriptionManager$launchProcessor$lambda.prototype.constructor=Coroutine$ReplicationSubscriptionManager$launchProcessor$lambda,Coroutine$ReplicationSubscriptionManager$launchProcessor$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$tmp$=this.local$closure$channel.iterator(),this.state_0=1;continue;case 1:if(this.state_0=2,this.result_0=this.local$tmp$.hasNext(this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 2:if(this.result_0){this.state_0=3;continue}this.state_0=20;continue;case 3:if(this.local$item=this.local$tmp$.next(),napier.Napier.d_82mfvz$(this.local$this$ReplicationSubscriptionManager.logPrefix+" processor "+this.local$closure$id+": Processing "+this.local$item.tableId,void 0,DoorTag$Companion_getInstance().LOG_TAG),this.local$item.lastLocalChangeTime.compareTo_11rb$(this.local$item.lastSendReplicationCompleteTime)>0){if(napier.Napier.d_82mfvz$(this.local$this$ReplicationSubscriptionManager.logPrefix+" processor "+this.local$closure$id+" table "+this.local$item.tableId+" has replications to send",void 0,DoorTag$Companion_getInstance().LOG_TAG),this.local$timeNow=systemTimeInMillis(),this.exceptionState_0=6,this.state_0=4,this.result_0=this.local$this$ReplicationSubscriptionManager.sendReplicationRunner_0.replicate_v4mrx4$(this.local$this$ReplicationSubscriptionManager.repository_0,this.local$item.tableId,this.local$item.nodeId,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue}this.state_0=10;continue;case 4:if(napier.Napier.d_82mfvz$(this.local$this$ReplicationSubscriptionManager.logPrefix+" processor "+this.local$closure$id+" table "+this.local$item.tableId+" replications sent",void 0,DoorTag$Companion_getInstance().LOG_TAG),this.state_0=5,this.result_0=prepareAndUseStatementAsync_0(this.local$this$ReplicationSubscriptionManager.repository_0.db,"UPDATE ReplicationStatus SET lastSendReplicationCompleteTime = ? WHERE tableId = ? AND nodeId = ?",ReplicationSubscriptionManager$launchProcessor$lambda$lambda(this.local$timeNow,this.local$item,this.local$this$ReplicationSubscriptionManager),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 5:this.exceptionState_0=19,this.state_0=9;continue;case 6:this.exceptionState_0=19;var t=this.exception_0;if(Kotlin.isType(t,Exception)){if(napier.Napier.e_82mfvz$(this.local$this$ReplicationSubscriptionManager.logPrefix+" processor "+this.local$closure$id+" table "+this.local$item.tableId+" EXCEPTION sending replication",t,DoorTag$Companion_getInstance().LOG_TAG),this.state_0=7,this.result_0=delay(L1000,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue}throw t;case 7:this.state_0=8;continue;case 8:this.state_0=9;continue;case 9:this.state_0=10;continue;case 10:if(this.local$item.lastRemoteChangeTime.compareTo_11rb$(this.local$item.lastFetchReplicationCompleteTime)>0){if(this.exceptionState_0=13,napier.Napier.d_82mfvz$(this.local$this$ReplicationSubscriptionManager.logPrefix+" processor "+this.local$closure$id+" table "+this.local$item.tableId+" has replications to fetch",void 0,DoorTag$Companion_getInstance().LOG_TAG),this.local$timeNow_0=systemTimeInMillis(),this.state_0=11,this.result_0=this.local$this$ReplicationSubscriptionManager.fetchReplicationRunner_0.replicate_v4mrx4$(this.local$this$ReplicationSubscriptionManager.repository_0,this.local$item.tableId,this.local$item.nodeId,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue}this.state_0=17;continue;case 11:if(napier.Napier.d_82mfvz$(this.local$this$ReplicationSubscriptionManager.logPrefix+" processor "+this.local$closure$id+" table "+this.local$item.tableId+" replications fetch complete",void 0,DoorTag$Companion_getInstance().LOG_TAG),this.state_0=12,this.result_0=prepareAndUseStatementAsync_0(this.local$this$ReplicationSubscriptionManager.repository_0.db,"UPDATE ReplicationStatus SET lastFetchReplicationCompleteTime = ? WHERE tableId = ? AND nodeId = ?",ReplicationSubscriptionManager$launchProcessor$lambda$lambda_0(this.local$timeNow_0,this.local$item,this.local$this$ReplicationSubscriptionManager),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 12:this.exceptionState_0=19,this.state_0=16;continue;case 13:if(this.exceptionState_0=19,t=this.exception_0,Kotlin.isType(t,Exception)){if(napier.Napier.e_82mfvz$(this.local$this$ReplicationSubscriptionManager.logPrefix+" processor "+this.local$closure$id+" table "+this.local$item.tableId+" EXCEPTION fetching replication",t,DoorTag$Companion_getInstance().LOG_TAG),this.state_0=14,this.result_0=delay(L1000,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue}throw t;case 14:this.state_0=15;continue;case 15:this.state_0=16;continue;case 16:this.state_0=17;continue;case 17:var e=this.local$this$ReplicationSubscriptionManager.activeTables_0,n=this.local$item.tableId;if(e.remove_11rb$(n),this.state_0=18,this.result_0=this.local$this$ReplicationSubscriptionManager.checkQueueSignal_0.send_11rb$(!0,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 18:this.state_0=1;continue;case 19:throw this.exception_0;case 20:return Unit;default:throw this.state_0=19,new Error("State Machine Unreachable execution")}}catch(t){if(19===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ReplicationSubscriptionManager.prototype.launchProcessor_0=function(t,e,n){return launch(t,void 0,void 0,ReplicationSubscriptionManager$launchProcessor$lambda(n,this,e))},Coroutine$ReplicationSubscriptionManager$onMessage$lambda$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$ReplicationSubscriptionManager$onMessage$lambda$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$ReplicationSubscriptionManager$onMessage$lambda$lambda.prototype.constructor=Coroutine$ReplicationSubscriptionManager$onMessage$lambda$lambda,Coroutine$ReplicationSubscriptionManager$onMessage$lambda$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=selectDoorNodeExists(this.local$transactDb,this.local$closure$remoteNodeIdLong,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:if(this.result_0){this.state_0=4;continue}this.local$closure$newNode.v=!0;var t=new DoorNode,e=this.local$closure$remoteNodeIdLong;if(t.rel=1,t.nodeId=e,t.auth=null,this.state_0=3,this.result_0=insertNewDoorNode(this.local$transactDb,t,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 3:case 4:return Unit;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$ReplicationSubscriptionManager$onMessage$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$ReplicationSubscriptionManager$onMessage$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$ReplicationSubscriptionManager$onMessage$lambda.prototype.constructor=Coroutine$ReplicationSubscriptionManager$onMessage$lambda,Coroutine$ReplicationSubscriptionManager$onMessage$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e;if(this.local$remoteNodeIdLong=toLong(this.local$closure$message.data),this.local$this$ReplicationSubscriptionManager.remoteNodeId_0.kotlinx$atomicfu$value=this.local$remoteNodeIdLong,this.state_0=2,this.result_0=this.local$this$ReplicationSubscriptionManager.initReplicationStatus_0(this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:if(null!=(t=this.local$this$ReplicationSubscriptionManager.onSubscriptionInitialized)){if(this.state_0=3,this.result_0=t.onSubscriptionInitialized_v2eoxc$(this.local$this$ReplicationSubscriptionManager.repository_0,this.local$remoteNodeIdLong,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue}this.result_0=null,this.state_0=4;continue;case 3:this.result_0=Unit,this.state_0=4;continue;case 4:if(this.local$newNode={v:!1},this.state_0=5,this.result_0=withDoorTransactionAsync(this.local$this$ReplicationSubscriptionManager.repository_0.db,void 0,ReplicationSubscriptionManager$onMessage$lambda$lambda(this.local$remoteNodeIdLong,this.local$newNode),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 5:var n=this.local$this$ReplicationSubscriptionManager.dbNotificationDispatcher_0;if(null!=(e=this.local$newNode.v?n:null)&&e.onNewDoorNode_a4hdmt$(this.local$remoteNodeIdLong,""),this.local$this$ReplicationSubscriptionManager.initCompletable_0.complete_11rb$(!0),this.state_0=6,this.result_0=this.local$this$ReplicationSubscriptionManager.dbNotificationDispatcher_0.addReplicationPendingEventListener_k8dlq6$(this.local$this$ReplicationSubscriptionManager.remoteNodeId_0.kotlinx$atomicfu$value,this.local$this$ReplicationSubscriptionManager,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 6:var i=this.local$this$ReplicationSubscriptionManager.produceJobs_0(this.local$$receiver);this.local$this$ReplicationSubscriptionManager.queueProcessor_0.kotlinx$atomicfu$value=i;for(var o=i,r=this.local$this$ReplicationSubscriptionManager.numProcessors_0,s=0;s=this.local$dbImpl.dbVersion){this.state_0=20;continue}var a,c,l=this.$this.migrationList_0,u=ArrayList_init();for(a=l.iterator();a.hasNext();){var h=a.next();h.startVersion!==this.local$currentDbVersion.v||Kotlin.isType(h,DoorMigrationSync)||u.add_11rb$(h)}t:do{var d=u.iterator();if(!d.hasNext()){c=null;break t}var p=d.next();if(!d.hasNext()){c=p;break t}var _=p.endVersion;do{var m=d.next(),f=m.endVersion;Kotlin.compareTo(_,f)<0&&(p=m,_=f)}while(d.hasNext());c=p}while(0);if(this.local$nextMigration=c,null!=this.local$nextMigration){if(napier.Napier.d_82mfvz$("DatabaseBuilderJs: Attempting to upgrade from "+this.local$nextMigration.startVersion+" to "+this.local$nextMigration.endVersion.toString()+"\n",void 0,DoorTag$Companion_getInstance().LOG_TAG),Kotlin.isType(this.local$nextMigration,DoorMigrationAsync)){if(this.state_0=16,this.result_0=this.local$nextMigration.migrateFn(this.local$sqlDatabase,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue}if(Kotlin.isType(this.local$nextMigration,DoorMigrationStatementList)){if(this.state_0=14,this.result_0=this.local$execSqlAsync(this.local$connection,copyToArray(this.local$nextMigration.migrateStmts(this.local$sqlDatabase)).slice(),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue}throw IllegalArgumentException_init("Cannot use DataMigrationSync on JS")}throw IllegalStateException_init("Need to migrate to version "+this.local$dbImpl.dbVersion.toString()+" from "+this.local$currentDbVersion.v+" - could not find next migration");case 14:this.state_0=15;continue;case 15:case 16:this.state_0=17;continue;case 17:if(this.local$currentDbVersion.v=this.local$nextMigration.endVersion,this.state_0=18,this.result_0=this.local$execSqlAsync(this.local$connection,["UPDATE _doorwayinfo SET dbVersion = "+this.local$currentDbVersion.v],this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 18:napier.Napier.d_82mfvz$("DatabaseBuilderJs: migrated up to "+this.local$currentDbVersion.v,void 0,DoorTag$Companion_getInstance().LOG_TAG),this.state_0=19;continue;case 19:this.state_0=13;continue;case 20:this.state_0=21;continue;case 21:napier.Napier.d_82mfvz$("DatabaseBuilderJs: Running onOpen callbacks...\n",void 0,DoorTag$Companion_getInstance().LOG_TAG),this.local$tmp$_0=this.$this.callbacks_0.iterator(),this.state_0=22;continue;case 22:if(!this.local$tmp$_0.hasNext()){this.state_0=25;continue}var g=this.local$tmp$_0.next();if(Kotlin.isType(g,DoorDatabaseCallbackStatementList)){if(this.state_0=23,this.result_0=this.local$execSqlAsync(this.local$connection,copyToArray(g.onOpen_j4i37p$(this.local$sqlDatabase)).slice(),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue}throw IllegalArgumentException_init("Cannot use sync callback on JS");case 23:this.state_0=24;continue;case 24:this.state_0=22;continue;case 25:if(napier.Napier.d_82mfvz$("DatabaseBuilderJs: Setting up trigger SQL\n",void 0,DoorTag$Companion_getInstance().LOG_TAG),this.local$dbMetaData=DatabaseBuilder$Companion_getInstance().lookupImplementations_azn0ti$(this.$this.builderOptions_0.dbClass).metadata,this.state_0=26,this.result_0=this.local$execSqlAsync(this.local$connection,copyToArray(InvalidationTracker$Companion_getInstance().generateCreateTriggersSql_xcnoek$(this.local$dbMetaData.allTables,!1)).slice(),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 26:napier.Napier.d_82mfvz$("DatabaseBuilderJs: Setting up change listener\n",void 0,DoorTag$Companion_getInstance().LOG_TAG),new SaveToIndexedDbChangeListener(this.local$dbImpl,this.local$dataSource,this.local$dbMetaData.replicateTableNames,this.$this.builderOptions_0.saveToIndexedDbDelayTime),this.local$connection.close();var $=this.local$dbMetaData.hasReadOnlyWrapper?wrap(this.local$dbImpl,this.$this.builderOptions_0.dbClass):this.local$dbImpl;return napier.Napier.i_82mfvz$("Built database for: "+this.$this.builderOptions_0.dbUrl+"\n",void 0,DoorTag$Companion_getInstance().LOG_TAG),$;case 27:throw this.exception_0;default:throw this.state_0=27,new Error("State Machine Unreachable execution")}}catch(t){if(27===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},DatabaseBuilder.prototype.build=function(t,e){var n=new Coroutine$build(this,t);return e?n:n.doResume(null)},DatabaseBuilder.prototype.addMigrations_q7ft3$=function(t){return addAll(this.migrationList_0,t),this},DatabaseBuilder.prototype.addCallback_zdc9ji$=function(t){return napier.Napier.d_82mfvz$("DatabaseBuilderJs: Add Callback: "+toString(Kotlin.getKClassFromExpression(t).simpleName),void 0,DoorTag$Companion_getInstance().LOG_TAG),this.callbacks_0.add_11rb$(t),this},DatabaseBuilder.prototype.queryTimeout_za3lpa$=function(t){this.builderOptions_0.jdbcQueryTimeout=t},DatabaseBuilder$Companion.prototype.databaseBuilder_un4bw9$=function(t){return new DatabaseBuilder(t)},DatabaseBuilder$Companion.prototype.lookupImplementations_azn0ti$=function(t){var e,n;if(null==(n=Kotlin.isType(e=this.implementationMap_0.get_11rb$(t),DoorJsImplClasses)?e:null))throw IllegalArgumentException_init(toString(t.simpleName)+" is not registered through DatabaseBuilder.register");return n},DatabaseBuilder$Companion.prototype.register_t0nf0q$=function(t){var e,n,i=this.implementationMap_0,o=t.dbKClass;i.put_xwzc9p$(o,t);var r=this.implementationMap_0,s=t.dbImplKClass;r.put_xwzc9p$(s,t),null!=(e=t.repositoryImplClass)&&this.implementationMap_0.put_xwzc9p$(e,t),null!=(n=t.replicateWrapperImplClass)&&this.implementationMap_0.put_xwzc9p$(n,t)},DatabaseBuilder$Companion.$metadata$={kind:Kind_OBJECT,simpleName:"Companion",interfaces:[]};var DatabaseBuilder$Companion_instance=null;function DatabaseBuilder$Companion_getInstance(){return null===DatabaseBuilder$Companion_instance&&new DatabaseBuilder$Companion,DatabaseBuilder$Companion_instance}function DatabaseBuilderOptions(t,e,n,i,o,r){void 0===n&&(n="indexeddb:"+ensureNotNull(t.simpleName)),void 0===o&&(o=L200),void 0===r&&(r=10),this.dbClass=t,this.dbImplClasses=e,this.dbUrl=n,this.webWorkerPath=i,this.saveToIndexedDbDelayTime=o,this.jdbcQueryTimeout=r}function DoorUri(t){DoorUri$Companion_getInstance(),this.uri=t}function DoorUri$DoorUriProps(t,e,n){this.uri=t,this.fileName=e,this.mimeType=n}function DoorUri$Companion(){DoorUri$Companion_instance=this,this.doorUriInfo_0=LinkedHashMap_init()}DatabaseBuilder.$metadata$={kind:Kind_CLASS,simpleName:"DatabaseBuilder",interfaces:[]},DatabaseBuilderOptions.$metadata$={kind:Kind_CLASS,simpleName:"DatabaseBuilderOptions",interfaces:[]},DatabaseBuilderOptions.prototype.component1=function(){return this.dbClass},DatabaseBuilderOptions.prototype.component2=function(){return this.dbImplClasses},DatabaseBuilderOptions.prototype.component3=function(){return this.dbUrl},DatabaseBuilderOptions.prototype.component4=function(){return this.webWorkerPath},DatabaseBuilderOptions.prototype.component5=function(){return this.saveToIndexedDbDelayTime},DatabaseBuilderOptions.prototype.component6=function(){return this.jdbcQueryTimeout},DatabaseBuilderOptions.prototype.copy_iryo51$=function(t,e,n,i,o,r){return new DatabaseBuilderOptions(void 0===t?this.dbClass:t,void 0===e?this.dbImplClasses:e,void 0===n?this.dbUrl:n,void 0===i?this.webWorkerPath:i,void 0===o?this.saveToIndexedDbDelayTime:o,void 0===r?this.jdbcQueryTimeout:r)},DatabaseBuilderOptions.prototype.toString=function(){return"DatabaseBuilderOptions(dbClass="+Kotlin.toString(this.dbClass)+", dbImplClasses="+Kotlin.toString(this.dbImplClasses)+", dbUrl="+Kotlin.toString(this.dbUrl)+", webWorkerPath="+Kotlin.toString(this.webWorkerPath)+", saveToIndexedDbDelayTime="+Kotlin.toString(this.saveToIndexedDbDelayTime)+", jdbcQueryTimeout="+Kotlin.toString(this.jdbcQueryTimeout)+")"},DatabaseBuilderOptions.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*(t=31*(t=31*(t=31*t+Kotlin.hashCode(this.dbClass)|0)+Kotlin.hashCode(this.dbImplClasses)|0)+Kotlin.hashCode(this.dbUrl)|0)+Kotlin.hashCode(this.webWorkerPath)|0)+Kotlin.hashCode(this.saveToIndexedDbDelayTime)|0)+Kotlin.hashCode(this.jdbcQueryTimeout)|0},DatabaseBuilderOptions.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&Kotlin.equals(this.dbClass,t.dbClass)&&Kotlin.equals(this.dbImplClasses,t.dbImplClasses)&&Kotlin.equals(this.dbUrl,t.dbUrl)&&Kotlin.equals(this.webWorkerPath,t.webWorkerPath)&&Kotlin.equals(this.saveToIndexedDbDelayTime,t.saveToIndexedDbDelayTime)&&Kotlin.equals(this.jdbcQueryTimeout,t.jdbcQueryTimeout)},DoorUri$DoorUriProps.$metadata$={kind:Kind_CLASS,simpleName:"DoorUriProps",interfaces:[]},DoorUri$DoorUriProps.prototype.component1=function(){return this.uri},DoorUri$DoorUriProps.prototype.component2=function(){return this.fileName},DoorUri$DoorUriProps.prototype.component3=function(){return this.mimeType},DoorUri$DoorUriProps.prototype.copy_5p2dge$=function(t,e,n){return new DoorUri$DoorUriProps(void 0===t?this.uri:t,void 0===e?this.fileName:e,void 0===n?this.mimeType:n)},DoorUri$DoorUriProps.prototype.toString=function(){return"DoorUriProps(uri="+Kotlin.toString(this.uri)+", fileName="+Kotlin.toString(this.fileName)+", mimeType="+Kotlin.toString(this.mimeType)+")"},DoorUri$DoorUriProps.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*t+Kotlin.hashCode(this.uri)|0)+Kotlin.hashCode(this.fileName)|0)+Kotlin.hashCode(this.mimeType)|0},DoorUri$DoorUriProps.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&Kotlin.equals(this.uri,t.uri)&&Kotlin.equals(this.fileName,t.fileName)&&Kotlin.equals(this.mimeType,t.mimeType)},DoorUri.prototype.getFileName_za3rmp$=function(t,e){var n,i;return null!=(i=null!=(n=DoorUri$Companion_getInstance().doorUriInfo_0.get_11rb$(this.uri.toString()))?n.fileName:null)?i:substringAfterLast(this.uri.pathname,"/")},DoorUri.prototype.toString=function(){return this.uri.toString()},DoorUri$Companion.prototype.parse_61zpoe$=function(t){return new DoorUri(new URL(t))},DoorUri$Companion.prototype.createLocalUri_epenl6$=function(t,e,n){void 0===n&&(n=null);var i=URL.createObjectURL(t),o=this.doorUriInfo_0,r=new DoorUri$DoorUriProps(i,e,n);return o.put_xwzc9p$(i,r),new DoorUri(new URL(i))},DoorUri$Companion.prototype.getDoorUriProps_61zpoe$=function(t){return this.doorUriInfo_0.get_11rb$(t)},DoorUri$Companion.prototype.revokeLocalUri_lhlr26$=function(t){URL.revokeObjectURL(t.toString()),this.doorUriInfo_0.remove_11rb$(t.toString())},DoorUri$Companion.$metadata$={kind:Kind_OBJECT,simpleName:"Companion",interfaces:[]};var DoorUri$Companion_instance=null;function DoorUri$Companion_getInstance(){return null===DoorUri$Companion_instance&&new DoorUri$Companion,DoorUri$Companion_instance}function JdbcArrayProxy(t,e){JdbcArrayProxyCommon.call(this,t,e)}function PreparedStatementArrayProxy(t,e){PreparedStatementArrayProxyCommon.call(this,t,e),this.closed_0=!1}function RepositoryConfig(t,e,n,i,o,r,s,a,c){RepositoryConfig$Companion_getInstance(),this.context=t,this.endpoint=e,this.auth=n,this.nodeId=i,this.httpClient=o,this.json=r,this.useReplicationSubscription=s,this.replicationSubscriptionMode=a,this.replicationSubscriptionInitListener=c}function RepositoryConfig$Companion(){RepositoryConfig$Companion_instance=this}function RepositoryConfig$Companion$Builder(t,e,n,i,o,r){this.context=t,this.endpoint=e,this.auth=n,this.nodeId=i,this.httpClient=o,this.json=r,this.useReplicationSubscription=!0,this.attachmentFilters=ArrayList_init(),this.replicationSubscriptionInitListener=null,this.replicationSubscriptionMode=ReplicationSubscriptionMode$AUTO_getInstance()}function RepositoryConfig$Companion$repositoryConfig$lambda(t){return t.encodeDefaults=!0,Unit}function RepositoryConfig$Companion$repositoryConfig$lambda_0(t){return Unit}DoorUri.$metadata$={kind:Kind_CLASS,simpleName:"DoorUri",interfaces:[]},JdbcArrayProxy.prototype.free=function(){},JdbcArrayProxy.$metadata$={kind:Kind_CLASS,simpleName:"JdbcArrayProxy",interfaces:[JdbcArrayProxyCommon]},PreparedStatementArrayProxy.prototype.executeUpdate_61zpoe$=function(t){return this.prepareStatement_8be2vx$().executeUpdate()},PreparedStatementArrayProxy.prototype.executeUpdateAsync=function(t){return this.prepareStatement_8be2vx$().executeUpdateAsync(t)},PreparedStatementArrayProxy.prototype.executeUpdateAsyncJs_61zpoe$=function(t,e){return this.prepareStatement_8be2vx$().executeUpdateAsyncJs_61zpoe$(t,e)},PreparedStatementArrayProxy.prototype.executeQueryAsyncInt=function(t){return this.prepareStatement_8be2vx$().executeQueryAsyncInt(t)},PreparedStatementArrayProxy.prototype.getGeneratedKeys=function(){throw new SQLException("PreparedStatementArrayProxy does not support getting generated keys")},PreparedStatementArrayProxy.prototype.close=function(){this.closed_0=!0},PreparedStatementArrayProxy.prototype.isClosed=function(){return this.closed_0},PreparedStatementArrayProxy.prototype.getConnection=function(){return this.connectionInternal},PreparedStatementArrayProxy.$metadata$={kind:Kind_CLASS,simpleName:"PreparedStatementArrayProxy",interfaces:[PreparedStatementArrayProxyCommon]},RepositoryConfig$Companion$Builder.prototype.build=function(){return new RepositoryConfig(this.context,this.endpoint,this.auth,this.nodeId,this.httpClient,this.json,this.useReplicationSubscription,this.replicationSubscriptionMode,this.replicationSubscriptionInitListener)},RepositoryConfig$Companion$Builder.$metadata$={kind:Kind_CLASS,simpleName:"Builder",interfaces:[]},RepositoryConfig$Companion.prototype.repositoryConfig_z3dmi1$=function(t,e,n,i,o,r,s){void 0===r&&(r=Json(void 0,RepositoryConfig$Companion$repositoryConfig$lambda)),void 0===s&&(s=RepositoryConfig$Companion$repositoryConfig$lambda_0);var a=new RepositoryConfig$Companion$Builder(t,e,n,i,o,r);return s(a),a.build()},RepositoryConfig$Companion.$metadata$={kind:Kind_OBJECT,simpleName:"Companion",interfaces:[]};var RepositoryConfig$Companion_instance=null;function RepositoryConfig$Companion_getInstance(){return null===RepositoryConfig$Companion_instance&&new RepositoryConfig$Companion,RepositoryConfig$Companion_instance}function SaveToIndexedDbChangeListener(t,e,n,i){this.datasource_0=e,this.changeListenerRequest_0=null,this.eventCollator_0=new DoorEventCollator(i,coroutines.GlobalScope,SaveToIndexedDbChangeListener$eventCollator$lambda(t,this)),this.changeListenerRequest_0=new SaveToIndexedDbChangeListener_init$ObjectLiteral(this,copyToArray(n)),t.getInvalidationTracker().addObserver_iaeuyr$(this.changeListenerRequest_0)}function Coroutine$SaveToIndexedDbChangeListener$eventCollator$lambda(t,e,n,i){CoroutineImpl.call(this,i),this.exceptionState_0=1,this.local$closure$database=t,this.local$this$SaveToIndexedDbChangeListener=e}function SaveToIndexedDbChangeListener$eventCollator$lambda(t,e){return function(n,i,o){var r=new Coroutine$SaveToIndexedDbChangeListener$eventCollator$lambda(t,e,n,i);return o?r:r.doResume(null)}}function SaveToIndexedDbChangeListener_init$ObjectLiteral(t,e){this.this$SaveToIndexedDbChangeListener=t,InvalidationTrackerObserver.call(this,e)}function Coroutine$storeAttachment(t,e,n){CoroutineImpl.call(this,n),this.exceptionState_0=1,this.local$attachmentUri=void 0,this.local$blob=void 0,this.local$$receiver=t,this.local$entityWithAttachment=e}function storeAttachment(t,e,n,i){var o=new Coroutine$storeAttachment(t,e,n);return i?o:o.doResume(null)}function Coroutine$retrieveAttachment(t,e,n){CoroutineImpl.call(this,n),this.exceptionState_0=1,this.local$$receiver=t,this.local$attachmentUri=e}function retrieveAttachment(t,e,n,i){var o=new Coroutine$retrieveAttachment(t,e,n);return i?o:o.doResume(null)}function deleteZombieAttachments(t,e){}function uploadAttachment$lambda(t){return function(){return"Exception uploading attachment "+t}}function Coroutine$uploadAttachment(t,e,n){CoroutineImpl.call(this,n),this.exceptionState_0=5,this.local$attachmentUri=void 0,this.local$attachmentMd5=void 0,this.local$$receiver=t,this.local$entityWithAttachment=e}function uploadAttachment(t,e,n,i){var o=new Coroutine$uploadAttachment(t,e,n);return i?o:o.doResume(null)}function downloadAttachments$lambda(t){return function(){return"Exception downloading attachment "+toString(t.v)}}function Coroutine$downloadAttachments(t,e,n){CoroutineImpl.call(this,n),this.exceptionState_0=9,this.local$currentAttachmentUri=void 0,this.local$headers=void 0,this.local$dbName=void 0,this.local$entitiesWithAttachmentData=void 0,this.local$tmp$=void 0,this.local$element=void 0,this.local$$receiver=t,this.local$entityList=e}function downloadAttachments(t,e,n,i){var o=new Coroutine$downloadAttachments(t,e,n);return i?o:o.doResume(null)}function Coroutine$md5(t,e){CoroutineImpl.call(this,e),this.exceptionState_0=1,this.local$$receiver=t}function md5(t,e,n){var i=new Coroutine$md5(t,e);return n?i:i.doResume(null)}function prepareStatement_0(t,e,n){return n.hasListParams?new PreparedStatementArrayProxy(n.sql,t):t.prepareStatement_bm4lxs$(n.sql,n.generatedKeys)}function dbType_0(t){return 1}function dbSchemaVersion(t){return t.dbVersion}function Coroutine$withDoorTransactionAsync$lambda(t,e,n,i){CoroutineImpl.call(this,i),this.exceptionState_0=1,this.local$closure$block=t,this.local$this$withDoorTransactionAsync=e}function withDoorTransactionAsync$lambda(t,e){return function(n,i,o){var r=new Coroutine$withDoorTransactionAsync$lambda(t,e,n,i);return o?r:r.doResume(null)}}function withDoorTransactionAsync(t,e,n,i){var o;return void 0===e&&(e=TransactionMode$READ_WRITE_getInstance()),(Kotlin.isType(o=get_rootDatabase(t),RoomJdbcImpl)?o:throwCCE()).jdbcImplHelper.useConnectionAsync_urz6qb$(withDoorTransactionAsync$lambda(n,t),i)}function dbType_1(t){return 1}function doorDatabaseMetadata(t){return DatabaseBuilder$Companion_getInstance().lookupImplementations_azn0ti$(t).metadata}function wrap(t,e){var n,i,o=DatabaseBuilder$Companion_getInstance().lookupImplementations_azn0ti$(e),r=get_rootDatabase(t);if(null==(n=o.replicateWrapperImplClass))throw IllegalArgumentException_init(t.toString()+" has no replicate wrapper");var s=createInstance(get_js(n),[r]);return Kotlin.isType(i=s,RoomDatabase)?i:throwCCE()}function unwrap(t,e){var n,i,o,r;if(null==(r=Kotlin.isType(o=null!=(i=Kotlin.isType(n=t,DoorDatabaseReplicateWrapper)?n:null)?i.realDatabase:null,RoomDatabase)?o:null))throw IllegalArgumentException_init(t.toString()+" is not a replicate wrapper!");return r}function execSqlBatch_0(t,e){t.execSQLBatch_kand9s$(e)}function toDoorUri(t){return DoorUri$Companion_getInstance().createLocalUri_epenl6$(t,t.name,t.type)}function createInstance(t,e){var n=t,i=copyToArray(plus_1(listOf(null),e));return new(Function.prototype.bind.apply(n,i))}function concurrentSafeListOf(t){var e=ArrayList_init();return addAll(e,t),e}function mutableLinkedListOf(t){var e=ArrayList_init();return addAll(e,t),e}function concurrentSafeMapOf(t){var e=LinkedHashMap_init();return putAll(e,t),e}function urlEncode(t){return encodeURIComponent(t)}function Array_1(){}function Connection(){}function DataSource(){}function DatabaseMetadata(){}function PreparedStatement(){}function ResultSet(){}function ResultSetMetaData(){}function SQLException(t,e){void 0===t&&(t=null),void 0===e&&(e=null),Exception.call(this,t,e),this.name="SQLException"}function Statement(){}function mutableLinkedListOf_0(t){return ArrayList_init()}function executeUpdateAsync(t,e,n){return t.executeUpdateAsyncJs_61zpoe$(e,n)}function executeQueryAsyncKmp(t,e){return t.executeQueryAsyncInt(e)}function executeUpdateAsyncKmp(t,e){return t.executeUpdateAsync(e)}function ReplicationSubscriptionSupervisor(t,e){t.enabled=!0}function RoomDatabase(){}function Coroutine$RoomDatabase$execSQLBatchAsyncJs$lambda(t,e,n){CoroutineImpl.call(this,n),this.exceptionState_0=5,this.local$closure$sqlStatements=t,this.local$$receiver=void 0,this.local$connection=e}function RoomDatabase$execSQLBatchAsyncJs$lambda(t){return function(e,n,i){var o=new Coroutine$RoomDatabase$execSQLBatchAsyncJs$lambda(t,e,n);return i?o:o.doResume(null)}}function Coroutine$execSQLBatchAsyncJs_vqirvp$(t,e,n){CoroutineImpl.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$sqlStatements=e}function RoomDatabaseJdbcImplHelper(t,e,n,i,o){RoomDatabaseJdbcImplHelperCommon.call(this,t,e,n,i,o)}function IndexedDb(){IndexedDb_instance=this,this.indexedDb=window.indexedDB||window.mozIndexedDB||window.webkitIndexedDB||window.msIndexedDB,this.DB_STORE_NAME="um_db_store",this.ATTACHMENT_STORE_NAME="door_attachments",this.DB_STORE_KEY="um_db_key",this.DATABASE_VERSION=2}function IndexedDb$onUpgradeNeededThenCreateStores$lambda(t){return function(e){var n=e.target.result;return n.objectStoreNames.contains(t.DB_STORE_NAME)||n.createObjectStore(t.DB_STORE_NAME),n.objectStoreNames.contains(t.ATTACHMENT_STORE_NAME)||n.createObjectStore(t.ATTACHMENT_STORE_NAME),Unit}}function IndexedDb$checkIfExists$lambda(t){return function(){return t.completeExceptionally_tcv7n7$(Kotlin.newThrowable("Error when opening database"))}}function IndexedDb$checkIfExists$lambda$lambda(t){return function(e){return t.complete_11rb$(null!=e.target.result)}}function IndexedDb$checkIfExists$lambda$lambda_0(t){return function(){return t.completeExceptionally_tcv7n7$(Kotlin.newThrowable("Error when querying for database from um_db_store"))}}function IndexedDb$checkIfExists$lambda_0(t,e){return function(n){var i=n.target.result.transaction(t.DB_STORE_NAME,"readwrite").objectStore(t.DB_STORE_NAME).get(t.DB_STORE_KEY);return i.onsuccess=IndexedDb$checkIfExists$lambda$lambda(e),i.onerror=IndexedDb$checkIfExists$lambda$lambda_0(e),Unit}}function IndexedDb$storeBlob$lambda$lambda$lambda(){return"Saved blob to db"}function IndexedDb$storeBlob$lambda$lambda(t){return function(){return napier.Napier.d_9h2hdn$(void 0,DoorTag$Companion_getInstance().LOG_TAG,IndexedDb$storeBlob$lambda$lambda$lambda),t.complete_11rb$(!0)}}function IndexedDb$storeBlob$lambda$lambda$lambda_0(){return"Failed to save blob"}function IndexedDb$storeBlob$lambda$lambda_0(t){return function(){return napier.Napier.e_9h2hdn$(void 0,DoorTag$Companion_getInstance().LOG_TAG,IndexedDb$storeBlob$lambda$lambda$lambda_0),t.completeExceptionally_tcv7n7$(Exception_init("storeAttachment exception"))}}function IndexedDb$storeBlob$lambda(t,e,n,i){return function(o){var r=o.target.result.transaction(t,"readwrite");return r.oncomplete=IndexedDb$storeBlob$lambda$lambda(e),r.onerror=IndexedDb$storeBlob$lambda$lambda_0(e),r.objectStore(t).put(n,i)}}function Coroutine$storeBlob_b5ouhd$(t,e,n,i,o,r){CoroutineImpl.call(this,r),this.exceptionState_0=1,this.$this=t,this.local$dbName=e,this.local$storeName=n,this.local$key=i,this.local$blob=o}function IndexedDb$retrieveBlob$lambda$lambda(t){return function(e){return t.complete_11rb$(e.target.result)}}function IndexedDb$retrieveBlob$lambda$lambda_0(t,e,n,i){return function(){var o="Exception attempting to retrieve blob: db="+t+"/store="+e+"/key="+n;return napier.Napier.e_82mfvz$(o,void 0,DoorTag$Companion_getInstance().LOG_TAG),i.completeExceptionally_tcv7n7$(Exception_init(o))}}function IndexedDb$retrieveBlob$lambda(t,e,n,i){return function(o){var r=o.target.result.transaction(t,"readwrite").objectStore(t).get(e);return r.onsuccess=IndexedDb$retrieveBlob$lambda$lambda(n),r.onerror=IndexedDb$retrieveBlob$lambda$lambda_0(i,t,e,n),Unit}}RepositoryConfig.$metadata$={kind:Kind_CLASS,simpleName:"RepositoryConfig",interfaces:[]},Coroutine$SaveToIndexedDbChangeListener$eventCollator$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$SaveToIndexedDbChangeListener$eventCollator$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$SaveToIndexedDbChangeListener$eventCollator$lambda.prototype.constructor=Coroutine$SaveToIndexedDbChangeListener$eventCollator$lambda,Coroutine$SaveToIndexedDbChangeListener$eventCollator$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(napier.Napier.d_82mfvz$("Save database "+this.local$closure$database+" to indexedDb",void 0,DoorTag$Companion_getInstance().LOG_TAG),this.state_0=2,this.result_0=this.local$this$SaveToIndexedDbChangeListener.datasource_0.saveDatabaseToIndexedDb(this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},SaveToIndexedDbChangeListener_init$ObjectLiteral.prototype.onInvalidated_ywdfdh$=function(t){this.this$SaveToIndexedDbChangeListener.eventCollator_0.receiveEvent_11rb$(toList(t))},SaveToIndexedDbChangeListener_init$ObjectLiteral.$metadata$={kind:Kind_CLASS,interfaces:[InvalidationTrackerObserver]},SaveToIndexedDbChangeListener.$metadata$={kind:Kind_CLASS,simpleName:"SaveToIndexedDbChangeListener",interfaces:[]},Coroutine$storeAttachment.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$storeAttachment.prototype=Object.create(CoroutineImpl.prototype),Coroutine$storeAttachment.prototype.constructor=Coroutine$storeAttachment,Coroutine$storeAttachment.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(this.local$attachmentUri=this.local$entityWithAttachment.attachmentUri,null==this.local$attachmentUri||startsWith(this.local$attachmentUri,DoorDatabaseRepository$Companion_getInstance().DOOR_ATTACHMENT_URI_PREFIX))return;this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=await_0(window.fetch(this.local$entityWithAttachment.attachmentUri),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 3:if(this.state_0=4,this.result_0=await_0(this.result_0.blob(),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 4:if(this.local$blob=this.result_0,this.state_0=5,this.result_0=md5(this.local$blob,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 5:var e=this.result_0;this.local$entityWithAttachment.attachmentMd5=e,this.local$entityWithAttachment.attachmentSize=numberToInt(this.local$blob.size);var n=(Kotlin.isType(t=get_rootDatabase(this.local$$receiver),DoorDatabaseJdbc)?t:throwCCE()).dbName;if(this.state_0=6,this.result_0=IndexedDb_getInstance().storeBlob_b5ouhd$(n,IndexedDb_getInstance().ATTACHMENT_STORE_NAME,get_tableNameAndMd5Path(this.local$entityWithAttachment),this.local$blob,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 6:return this.local$entityWithAttachment.attachmentUri=makeAttachmentUriFromTableNameAndMd5(this.local$entityWithAttachment),void URL.revokeObjectURL(this.local$attachmentUri);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$retrieveAttachment.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$retrieveAttachment.prototype=Object.create(CoroutineImpl.prototype),Coroutine$retrieveAttachment.prototype.constructor=Coroutine$retrieveAttachment,Coroutine$retrieveAttachment.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n=substringAfter(this.local$attachmentUri,DoorDatabaseRepository$Companion_getInstance().DOOR_ATTACHMENT_URI_PREFIX),i=(Kotlin.isType(t=get_rootDatabase(this.local$$receiver),DoorDatabaseJdbc)?t:throwCCE()).dbName;if(this.state_0=2,this.result_0=IndexedDb_getInstance().retrieveBlob_6hosri$(i,IndexedDb_getInstance().ATTACHMENT_STORE_NAME,n,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:var o=this.result_0;if(null==(e=null!=o?URL.createObjectURL(o):null))throw IllegalArgumentException_init("Attachment "+this.local$attachmentUri+" not found in db!");return new DoorUri(new URL(e));default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$uploadAttachment.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$uploadAttachment.prototype=Object.create(CoroutineImpl.prototype),Coroutine$uploadAttachment.prototype.constructor=Coroutine$uploadAttachment,Coroutine$uploadAttachment.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n,i,o;if(null==(t=this.local$entityWithAttachment.attachmentUri))throw IllegalArgumentException_init("uploadAttachment: Entity with attachment uri must not be null");if(this.local$attachmentUri=t,null==(e=this.local$entityWithAttachment.attachmentMd5))throw IllegalArgumentException_init("uploadAttachment: Entity attachment must not be null");this.local$attachmentMd5=e;var r=substringAfter(this.local$attachmentUri,DoorDatabaseRepository$Companion_getInstance().DOOR_ATTACHMENT_URI_PREFIX),s=(Kotlin.isType(i=get_rootDatabase(Kotlin.isType(n=this.local$$receiver,RoomDatabase)?n:throwCCE()),DoorDatabaseJdbc)?i:throwCCE()).dbName;if(this.state_0=1,this.result_0=IndexedDb_getInstance().retrieveBlob_6hosri$(s,IndexedDb_getInstance().ATTACHMENT_STORE_NAME,r,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:if(null==(o=this.result_0))throw IllegalStateException_init("No blob found for "+this.local$attachmentUri);var a=o,c="md5="+encodeURIComponent(this.local$attachmentMd5)+"&uri="+encodeURIComponent(this.local$attachmentUri);this.exceptionState_0=3;var l=json_0([to(DoorConstants_getInstance().HEADER_DBVERSION,dbSchemaVersion(this.local$$receiver.db).toString()),to(DoorConstants_getInstance().HEADER_NODE,this.local$$receiver.config.nodeId.toString()+"/"+this.local$$receiver.config.auth)]),u=window,h=this.local$$receiver.config.endpoint+"attachments/upload?"+c,d={method:"POST"};if(d.headers=l,d.body=a,d.referrer=void 0,d.referrerPolicy=void 0,d.mode=void 0,d.credentials=void 0,d.cache=void 0,d.redirect=void 0,d.integrity=void 0,d.keepalive=void 0,d.window=void 0,this.state_0=2,this.result_0=await_0(u.fetch(h,d),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 2:this.exceptionState_0=5,this.state_0=4;continue;case 3:this.exceptionState_0=5;var p=this.exception_0;throw Kotlin.isType(p,Exception)?(napier.Napier.e_9h2hdn$(p,DoorTag$Companion_getInstance().LOG_TAG,uploadAttachment$lambda(this.local$attachmentUri)),p):p;case 4:return;case 5:throw this.exception_0;default:throw this.state_0=5,new Error("State Machine Unreachable execution")}}catch(p){if(5===this.state_0)throw this.exceptionState_0=this.state_0,p;this.state_0=this.exceptionState_0,this.exception_0=p}},Coroutine$downloadAttachments.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$downloadAttachments.prototype=Object.create(CoroutineImpl.prototype),Coroutine$downloadAttachments.prototype.constructor=Coroutine$downloadAttachments,Coroutine$downloadAttachments.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e;this.local$currentAttachmentUri={v:null},this.exceptionState_0=7,this.local$headers=json_0([to(DoorConstants_getInstance().HEADER_DBVERSION,dbSchemaVersion(this.local$$receiver.db).toString()),to(DoorConstants_getInstance().HEADER_NODE,this.local$$receiver.config.nodeId.toString()+"/"+this.local$$receiver.config.auth)]),this.local$dbName=(Kotlin.isType(e=get_rootDatabase(Kotlin.isType(t=this.local$$receiver,RoomDatabase)?t:throwCCE()),DoorDatabaseJdbc)?e:throwCCE()).dbName;var n,i=ArrayList_init();for(n=this.local$entityList.iterator();n.hasNext();){var o;null!=(o=n.next().attachmentUri)&&i.add_11rb$(o)}if(this.local$entitiesWithAttachmentData=i,this.local$entitiesWithAttachmentData.isEmpty())return;this.state_0=1;continue;case 1:this.local$tmp$=this.local$entitiesWithAttachmentData.iterator(),this.state_0=2;continue;case 2:if(!this.local$tmp$.hasNext()){this.state_0=6;continue}this.local$element=this.local$tmp$.next(),this.local$currentAttachmentUri.v=this.local$element;var r=this.local$$receiver.config.endpoint+"attachments/download?uri="+encodeURIComponent(this.local$element),s=window,a={method:"GET"};if(a.headers=this.local$headers,a.body=void 0,a.referrer=void 0,a.referrerPolicy=void 0,a.mode=void 0,a.credentials=void 0,a.cache=void 0,a.redirect=void 0,a.integrity=void 0,a.keepalive=void 0,a.window=void 0,this.state_0=3,this.result_0=await_0(s.fetch(r,a),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 3:var c=this.result_0;if(this.state_0=4,this.result_0=await_0(c.blob(),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 4:var l=this.result_0,u=substringAfter(this.local$element,DoorDatabaseRepository$Companion_getInstance().DOOR_ATTACHMENT_URI_PREFIX);if(this.state_0=5,this.result_0=IndexedDb_getInstance().storeBlob_b5ouhd$(this.local$dbName,IndexedDb_getInstance().ATTACHMENT_STORE_NAME,u,l,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 5:this.state_0=2;continue;case 6:this.exceptionState_0=9,this.state_0=8;continue;case 7:this.exceptionState_0=9;var h=this.exception_0;if(!Kotlin.isType(h,Exception))throw h;napier.Napier.e_9h2hdn$(h,DoorTag$Companion_getInstance().LOG_TAG,downloadAttachments$lambda(this.local$currentAttachmentUri)),this.state_0=8;continue;case 8:return;case 9:throw this.exception_0;default:throw this.state_0=9,new Error("State Machine Unreachable execution")}}catch(h){if(9===this.state_0)throw this.exceptionState_0=this.state_0,h;this.state_0=this.exceptionState_0,this.exception_0=h}},Coroutine$md5.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$md5.prototype=Object.create(CoroutineImpl.prototype),Coroutine$md5.prototype.constructor=Coroutine$md5,Coroutine$md5.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=this.local$$receiver.arrayBuffer();if(this.state_0=2,this.result_0=await_0(t,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;return $module$spark_md5.ArrayBuffer.hash(e);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$withDoorTransactionAsync$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$withDoorTransactionAsync$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$withDoorTransactionAsync$lambda.prototype.constructor=Coroutine$withDoorTransactionAsync$lambda,Coroutine$withDoorTransactionAsync$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$closure$block(this.local$this$withDoorTransactionAsync,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Array_1.$metadata$={kind:Kind_INTERFACE,simpleName:"Array",interfaces:[]},Connection.$metadata$={kind:Kind_INTERFACE,simpleName:"Connection",interfaces:[]},DataSource.$metadata$={kind:Kind_INTERFACE,simpleName:"DataSource",interfaces:[]},DatabaseMetadata.$metadata$={kind:Kind_INTERFACE,simpleName:"DatabaseMetadata",interfaces:[]},PreparedStatement.$metadata$={kind:Kind_INTERFACE,simpleName:"PreparedStatement",interfaces:[Statement]},ResultSet.$metadata$={kind:Kind_INTERFACE,simpleName:"ResultSet",interfaces:[]},ResultSetMetaData.$metadata$={kind:Kind_INTERFACE,simpleName:"ResultSetMetaData",interfaces:[]},SQLException.$metadata$={kind:Kind_CLASS,simpleName:"SQLException",interfaces:[Exception]},Statement.$metadata$={kind:Kind_INTERFACE,simpleName:"Statement",interfaces:[]},ReplicationSubscriptionSupervisor.$metadata$={kind:Kind_CLASS,simpleName:"ReplicationSubscriptionSupervisor",interfaces:[]},RoomDatabase.prototype.getInvalidationTracker=function(){throw new NotImplementedError_init("An operation is not implemented: getInvalidationTracker: maybe override this in the generated version")},RoomDatabase.prototype.runInTransaction_771g0p$=function(t){t.run()},Coroutine$RoomDatabase$execSQLBatchAsyncJs$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$RoomDatabase$execSQLBatchAsyncJs$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$RoomDatabase$execSQLBatchAsyncJs$lambda.prototype.constructor=Coroutine$RoomDatabase$execSQLBatchAsyncJs$lambda,Coroutine$RoomDatabase$execSQLBatchAsyncJs$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$$receiver=this.local$connection.createStatement(),this.exceptionState_0=2,this.state_0=1,this.result_0=this.local$$receiver.executeUpdateAsyncJs_61zpoe$(joinToString_1(this.local$closure$sqlStatements,";"),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:this.exceptionState_0=5,this.finallyPath_0=[4],this.state_0=3;continue;case 2:this.finallyPath_0=[5],this.exceptionState_0=3;var t=this.exception_0;throw Kotlin.isType(t,Exception),t;case 3:this.exceptionState_0=5,this.local$$receiver.close(),this.state_0=this.finallyPath_0.shift();continue;case 4:return this.result_0;case 5:throw this.exception_0;default:throw this.state_0=5,new Error("State Machine Unreachable execution")}}catch(t){if(5===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$execSQLBatchAsyncJs_vqirvp$.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$execSQLBatchAsyncJs_vqirvp$.prototype=Object.create(CoroutineImpl.prototype),Coroutine$execSQLBatchAsyncJs_vqirvp$.prototype.constructor=Coroutine$execSQLBatchAsyncJs_vqirvp$,Coroutine$execSQLBatchAsyncJs_vqirvp$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(this.state_0=2,this.result_0=(Kotlin.isType(t=this.$this,RoomJdbcImpl)?t:throwCCE()).jdbcImplHelper.useConnectionAsync_urz6qb$(RoomDatabase$execSQLBatchAsyncJs$lambda(this.local$sqlStatements),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},RoomDatabase.prototype.execSQLBatchAsyncJs_vqirvp$=function(t,e,n){var i=new Coroutine$execSQLBatchAsyncJs_vqirvp$(this,t,e);return n?i:i.doResume(null)},RoomDatabase.$metadata$={kind:Kind_CLASS,simpleName:"RoomDatabase",interfaces:[]},RoomDatabaseJdbcImplHelper.prototype.setupSqliteTriggersAsync_ogz5ry$=function(t,e){},RoomDatabaseJdbcImplHelper.prototype.useConnection_bcmd16$=function(t,e){throw IllegalStateException_init("useConnection synchronous not supported on JS")},RoomDatabaseJdbcImplHelper.prototype.useConnection_3xhhan$=function(t){throw IllegalStateException_init("useConnection synchronous not supported on JS")},RoomDatabaseJdbcImplHelper.$metadata$={kind:Kind_CLASS,simpleName:"RoomDatabaseJdbcImplHelper",interfaces:[RoomDatabaseJdbcImplHelperCommon]},IndexedDb.prototype.onUpgradeNeededThenCreateStores_0=function(t){t.onupgradeneeded=IndexedDb$onUpgradeNeededThenCreateStores$lambda(this)},IndexedDb.prototype.checkIfExists_61zpoe$=function(t,e){var n=CompletableDeferred(),i=this.indexedDb.open(t,2);return this.onUpgradeNeededThenCreateStores_0(i),i.onerror=IndexedDb$checkIfExists$lambda(n),i.onsuccess=IndexedDb$checkIfExists$lambda_0(this,n),n.await(e)},Coroutine$storeBlob_b5ouhd$.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$storeBlob_b5ouhd$.prototype=Object.create(CoroutineImpl.prototype),Coroutine$storeBlob_b5ouhd$.prototype.constructor=Coroutine$storeBlob_b5ouhd$,Coroutine$storeBlob_b5ouhd$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=this.$this.indexedDb.open(this.local$dbName,2),e=CompletableDeferred();if(this.$this.onUpgradeNeededThenCreateStores_0(t),t.onsuccess=IndexedDb$storeBlob$lambda(this.local$storeName,e,this.local$blob,this.local$key),this.state_0=2,this.result_0=e.await(this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},IndexedDb.prototype.storeBlob_b5ouhd$=function(t,e,n,i,o,r){var s=new Coroutine$storeBlob_b5ouhd$(this,t,e,n,i,o);return r?s:s.doResume(null)},IndexedDb.prototype.retrieveBlob_6hosri$=function(t,e,n,i){var o=CompletableDeferred(),r=this.indexedDb.open(t,2);return this.onUpgradeNeededThenCreateStores_0(r),r.onsuccess=IndexedDb$retrieveBlob$lambda(e,n,o,t),o.await(i)},IndexedDb.$metadata$={kind:Kind_OBJECT,simpleName:"IndexedDb",interfaces:[]};var IndexedDb_instance=null;function IndexedDb_getInstance(){return null===IndexedDb_instance&&new IndexedDb,IndexedDb_instance}function SQLiteConnectionJs(t){this.datasource=t,this.closed_0=!1,this.mAutoCommit_0=!0}function SQLiteDatabaseMetadataJs(t){this.datasource=t}function SQLiteDatasourceJs(t,e){SQLiteDatasourceJs$Companion_getInstance(),this.dbName_0=t,this.worker_0=e,this.pendingMessages_0=LinkedHashMap_init(),this.executedSqlQueries_0=LinkedHashMap_init(),this.transactionMutex_0=Mutex(),this.logPrefix_0="SQLiteDataSourceJs ["+this.dbName_0+"]",this.transactionIdCounter_0=0,this.worker_0.onmessage=SQLiteDatasourceJs_init$lambda(this)}function Coroutine$SQLiteDatasourceJs$withTransactionLock$lambda$lambda(t,e,n,i,o,r,s){CoroutineImpl.call(this,s),this.$controller=r,this.exceptionState_0=15,this.local$this$SQLiteDatasourceJs=t,this.local$closure$transactionMode=e,this.local$closure$block=n,this.local$this$=i,this.local$$receiver=void 0,this.local$this$SQLiteDatasourceJs_0=void 0,this.local$closure$transactionMode_0=void 0,this.local$closure$block_0=void 0,this.local$transactionId=void 0,this.local$transactionSuccessful=void 0,this.local$$receiver_0=void 0}function SQLiteDatasourceJs$withTransactionLock$lambda$lambda(t,e,n,i){return function(o,r,s){var a=new Coroutine$SQLiteDatasourceJs$withTransactionLock$lambda$lambda(t,e,n,i,o,this,r);return s?a:a.doResume(null)}}function Coroutine$withTransactionLock_f2wow6$(t,e,n,i){CoroutineImpl.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$$receiver=void 0,this.local$key=void 0,this.local$transactionMode=e,this.local$block=n}function Coroutine$SQLiteDatasourceJs$sendMessage$lambda(t,e,n){CoroutineImpl.call(this,n),this.exceptionState_0=1,this.local$this$SQLiteDatasourceJs=t,this.local$closure$message=e,this.local$actionId=void 0}function SQLiteDatasourceJs$sendMessage$lambda(t,e){return function(n,i){var o=new Coroutine$SQLiteDatasourceJs$sendMessage$lambda(t,e,n);return i?o:o.doResume(null)}}function Coroutine$SQLiteDatasourceJs$sendQuery$lambda(t,e,n,i){CoroutineImpl.call(this,i),this.exceptionState_0=1,this.local$this$SQLiteDatasourceJs=t,this.local$closure$sql=e,this.local$closure$params=n}function SQLiteDatasourceJs$sendQuery$lambda(t,e,n){return function(i,o){var r=new Coroutine$SQLiteDatasourceJs$sendQuery$lambda(t,e,n,i);return o?r:r.doResume(null)}}function Coroutine$SQLiteDatasourceJs$sendUpdate$lambda(t,e,n,i,o){CoroutineImpl.call(this,o),this.exceptionState_0=1,this.local$this$SQLiteDatasourceJs=t,this.local$closure$sql=e,this.local$closure$params=n,this.local$closure$returnGeneratedKey=i,this.local$tmp$_0=void 0}function SQLiteDatasourceJs$sendUpdate$lambda(t,e,n,i){return function(o,r){var s=new Coroutine$SQLiteDatasourceJs$sendUpdate$lambda(t,e,n,i,o);return r?s:s.doResume(null)}}function Coroutine$SQLiteDatasourceJs$loadDbFromIndexedDb$lambda$lambda$lambda(t,e,n,i,o,r){CoroutineImpl.call(this,r),this.$controller=o,this.exceptionState_0=1,this.local$closure$data=t,this.local$this$SQLiteDatasourceJs=e,this.local$closure$exportCompletable=n}function SQLiteDatasourceJs$loadDbFromIndexedDb$lambda$lambda$lambda(t,e,n){return function(i,o,r){var s=new Coroutine$SQLiteDatasourceJs$loadDbFromIndexedDb$lambda$lambda$lambda(t,e,n,i,this,o);return r?s:s.doResume(null)}}function SQLiteDatasourceJs$loadDbFromIndexedDb$lambda$lambda(t,e){return function(n){return launch(coroutines.GlobalScope,void 0,void 0,SQLiteDatasourceJs$loadDbFromIndexedDb$lambda$lambda$lambda(n,t,e))}}function SQLiteDatasourceJs$loadDbFromIndexedDb$lambda$lambda_0(t){return function(){return t.completeExceptionally_tcv7n7$(Kotlin.newThrowable("Error when executing store data fetch"))}}function SQLiteDatasourceJs$loadDbFromIndexedDb$lambda(t,e){return function(n){var i=n.target.result.transaction(IndexedDb_getInstance().DB_STORE_NAME,"readwrite").objectStore(IndexedDb_getInstance().DB_STORE_NAME).get(IndexedDb_getInstance().DB_STORE_KEY);return i.onsuccess=SQLiteDatasourceJs$loadDbFromIndexedDb$lambda$lambda(t,e),i.onerror=SQLiteDatasourceJs$loadDbFromIndexedDb$lambda$lambda_0(e),Unit}}function SQLiteDatasourceJs$loadDbFromIndexedDb$lambda_0(t){return function(){return t.completeExceptionally_tcv7n7$(Kotlin.newThrowable("Error when importing database from IndexedDb to SQLite DB"))}}function Coroutine$exportDatabaseToFile(t,e){CoroutineImpl.call(this,e),this.exceptionState_0=6,this.$this=t,this.local$$receiver=void 0}function SQLiteDatasourceJs$saveDatabaseToIndexedDb$lambda$lambda$lambda(t,e){return function(){return napier.Napier.i_82mfvz$("Saved to IndexedDb: "+t.dbName_0,void 0,DoorTag$Companion_getInstance().LOG_TAG),e.complete_11rb$(!0)}}function SQLiteDatasourceJs$saveDatabaseToIndexedDb$lambda$lambda$lambda_0(t){return function(){return t.completeExceptionally_tcv7n7$(Kotlin.newThrowable("Error when importing SQLJs database to IndexedDb"))}}function SQLiteDatasourceJs$saveDatabaseToIndexedDb$lambda$lambda(t,e,n){return function(i){var o=i.target.result.transaction(IndexedDb_getInstance().DB_STORE_NAME,"readwrite");return o.oncomplete=SQLiteDatasourceJs$saveDatabaseToIndexedDb$lambda$lambda$lambda(t,e),o.onerror=SQLiteDatasourceJs$saveDatabaseToIndexedDb$lambda$lambda$lambda_0(e),o.objectStore(IndexedDb_getInstance().DB_STORE_NAME).put(n.buffer,IndexedDb_getInstance().DB_STORE_KEY)}}function Coroutine$saveDatabaseToIndexedDb(t,e){CoroutineImpl.call(this,e),this.exceptionState_0=7,this.$this=t,this.local$exportCompletable=void 0,this.local$result=void 0,this.local$$receiver=void 0}function SQLiteDatasourceJs$Companion(){SQLiteDatasourceJs$Companion_instance=this,this.idCounter=0,this.PROTOCOL_SQLITE_PREFIX="sqlite:"}SQLiteConnectionJs.prototype.setAutoCommit_6taknv$=function(t){this.mAutoCommit_0=t},SQLiteConnectionJs.prototype.getAutoCommit=function(){return this.mAutoCommit_0},SQLiteConnectionJs.prototype.prepareStatement_61zpoe$=function(t){return new SQLitePreparedStatementJs(this,t)},SQLiteConnectionJs.prototype.prepareStatement_bm4lxs$=function(t,e){return new SQLitePreparedStatementJs(this,t,e)},SQLiteConnectionJs.prototype.createStatement=function(){return new SQLiteStatementJs(this)},SQLiteConnectionJs.prototype.commit=function(){},SQLiteConnectionJs.prototype.rollback=function(){},SQLiteConnectionJs.prototype.close=function(){this.closed_0=!0},SQLiteConnectionJs.prototype.isClosed=function(){return this.closed_0},SQLiteConnectionJs.prototype.createArrayOf_ykr607$=function(t,e){throw new SQLException("Array not supported on SQLite")},SQLiteConnectionJs.prototype.getMetaData=function(){return new SQLiteDatabaseMetadataJs(this.datasource)},SQLiteConnectionJs.$metadata$={kind:Kind_CLASS,simpleName:"SQLiteConnectionJs",interfaces:[Connection]},SQLiteDatabaseMetadataJs.prototype.getTables_9t7st6$=function(t,e,n,i){throw Exception_init("getTables: This can not be used on JS, only for JVM. Call getTablesAsync instead")},SQLiteDatabaseMetadataJs.prototype.getDatabaseProductName=function(){return"SQLite"},SQLiteDatabaseMetadataJs.prototype.getTablesAsync_9t7st6$=function(t,e,n,i,o){var r=null==n||equals("",n)?"%":Regex.Companion.escape_61zpoe$(n),s=trimIndent("\n SELECT NULL AS TABLE_CAT,\n NULL AS TABLE_SCHEM,\n NAME AS TABLE_NAME,\n TYPE AS TABLE_TYPE,\n NULL AS REMARKS,\n NULL AS TYPE_CAT,\n NULL AS TYPE_SCHEM,\n NULL AS TYPE_NAME,\n NULL AS SELF_REFERENCING_COL_NAME,\n NULL AS REF_GENERATION \n FROM \n (SELECT NAME,\n UPPER(TYPE) AS TYPE \n FROM sqlite_master\n WHERE NAME NOT LIKE 'sqlite\\_%' ESCAPE '\\'\n AND UPPER(TYPE) IN ('TABLE', 'VIEW') \n UNION ALL\n SELECT NAME, 'GLOBAL TEMPORARY' AS TYPE\n FROM sqlite_temp_master\n UNION ALL \n SELECT NAME,'SYSTEM TABLE' AS TYPE\n FROM sqlite_master\n WHERE NAME LIKE 'sqlite\\_%' ESCAPE '\\') \n WHERE TABLE_NAME LIKE '"+r+"' AND TABLE_TYPE IN (\n ");if(0===i.length)s+="'TABLE','VIEW'";else{s+="'"+i[0].toUpperCase()+"'";for(var a=1;a "+n+"\n |with response from "+get_request(t).url+":\n |status: "+t.status+"\n |response headers: \n |"+joinToString(flattenEntries(t.headers),void 0,void 0,void 0,void 0,void 0,NoTransformationFoundException$message$lambda)+"\n ")}function NoTransformationFoundException$message$lambda(t){return t.component1()+": "+t.component2()+"\n"}function SavedHttpCall(t,e,n,i){HttpClientCall.call(this,t),this.responseBody_0=i,this.request=new SavedHttpRequest(this,e),this.response=new SavedHttpResponse(this,this.responseBody_0,n),this.allowDoubleReceive_je4pft$_0=!0}function SavedHttpRequest(t,e){this.call_k7cxor$_0=t,this.$delegate_k8mkjd$_0=e}function SavedHttpResponse(t,e,n){HttpResponse.call(this),this.call_tbj7t5$_0=t,this.context_0=Job_0(),this.status_i2dvkt$_0=n.status,this.version_ol3l9j$_0=n.version,this.requestTime_3msfjx$_0=n.requestTime,this.responseTime_xhbsdj$_0=n.responseTime,this.headers_w25qx3$_0=n.headers,this.coroutineContext_pwmz9e$_0=n.coroutineContext.plus_1fupul$(this.context_0),this.content_mzxkbe$_0=ByteReadChannel_0(e)}function Coroutine$save(t,e){CoroutineImpl.call(this,e),this.exceptionState_0=1,this.local$$receiver=t}function save(t,e,n){var i=new Coroutine$save(t,e);return n?i:i.doResume(null)}function UnsupportedContentTypeException(t){IllegalStateException_init("Failed to write body: "+Kotlin.getKClassFromExpression(t),this),this.name="UnsupportedContentTypeException"}function ObservableContent(t,e,n){var i;if(OutgoingContent$ReadChannelContent.call(this),this.callContext_0=e,this.listener_0=n,Kotlin.isType(t,OutgoingContent$ByteArrayContent))i=ByteReadChannel_0(t.bytes());else{if(Kotlin.isType(t,OutgoingContent$ProtocolUpgrade))throw new UnsupportedContentTypeException(t);i=Kotlin.isType(t,OutgoingContent$NoContent)?ByteReadChannel.Companion.Empty:Kotlin.isType(t,OutgoingContent$ReadChannelContent)?t.readFrom():Kotlin.isType(t,OutgoingContent$WriteChannelContent)?writer(coroutines.GlobalScope,this.callContext_0,!0,ObservableContent$content$lambda(t)).channel:Kotlin.noWhenBranchMatched()}this.content_0=i,this.delegate_0=t}function Coroutine$ObservableContent$content$lambda(t,e,n,i){CoroutineImpl.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$closure$delegate=t,this.local$$receiver=e}function ObservableContent$content$lambda(t){return function(e,n,i){var o=new Coroutine$ObservableContent$content$lambda(t,e,this,n);return i?o:o.doResume(null)}}function attachToUserJob$lambda(t){return function(e){if(null!=e)return t.cancel_x5z25k$(CancellationException_init(e.message)),Unit}}function attachToUserJob$lambda_0(t){return function(e){return t.dispose(),Unit}}function HttpClientEngine(){}function HttpClientEngine$install$lambda$lambda(t,e){return function(n){return null!=n&&t.monitor.raise_asioqi$(HttpResponseCancelled,e),Unit}}function Coroutine$HttpClientEngine$install$lambda(t,e,n,i,o,r){CoroutineImpl.call(this,r),this.$controller=o,this.exceptionState_0=1,this.local$closure$client=t,this.local$this$HttpClientEngine=e,this.local$requestData=void 0,this.local$$receiver=n,this.local$content=i}function HttpClientEngine$install$lambda(t,e){return function(n,i,o,r){var s=new Coroutine$HttpClientEngine$install$lambda(t,e,n,i,this,o);return r?s:s.doResume(null)}}function Coroutine$HttpClientEngine$executeWithinCallContext$lambda(t,e,n,i,o){CoroutineImpl.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$this$HttpClientEngine=t,this.local$closure$requestData=e}function HttpClientEngine$executeWithinCallContext$lambda(t,e){return function(n,i,o){var r=new Coroutine$HttpClientEngine$executeWithinCallContext$lambda(t,e,n,this,i);return o?r:r.doResume(null)}}function Coroutine$executeWithinCallContext_2kaaho$_0(t,e,n){CoroutineImpl.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$requestData=e}function HttpClientEngineFactory(){}function HttpClientEngineFactory$create$lambda(t){return Unit}function config$ObjectLiteral(t,e){this.closure$parent=t,this.closure$nested=e}function createCallContext(t,e,n){var i=Job_0(e),o=t.coroutineContext.plus_1fupul$(i).plus_1fupul$(CALL_COROUTINE);t:do{var r;if(null==(r=n.context.get_j3r2sn$(Job.Key)))break t;var s=r.invokeOnCompletion_ct2b2z$(!0,void 0,attachToUserJob$lambda(i));i.invokeOnCompletion_f05bi3$(attachToUserJob$lambda_0(s))}while(0);return o}function validateHeaders(t){var e,n=t.headers.names(),i=ArrayList_init();for(e=n.iterator();e.hasNext();){var o=e.next();http.HttpHeaders.UnsafeHeadersList.contains_11rb$(o)&&i.add_11rb$(o)}var r=i;if(!r.isEmpty())throw new UnsafeHeaderException(r.toString())}function HttpClientEngineBase(t){this.engineName_n0bloo$_0=t,this.closed_je8r6f$_0=atomic(!1),this.coroutineContext_huxu0y$_0=lazy(HttpClientEngineBase$coroutineContext$lambda(this))}function HttpClientEngineBase$close$lambda(t){return function(e){return close_1(t.dispatcher),Unit}}function HttpClientEngineBase$coroutineContext$lambda(t){return function(){return SilentSupervisor().plus_1fupul$(t.dispatcher).plus_1fupul$(new CoroutineName(t.engineName_n0bloo$_0+"-context"))}}function ClientEngineClosedException(t){void 0===t&&(t=null),IllegalStateException_init("Client already closed",this),this.cause_om4vf0$_0=t,this.name="ClientEngineClosedException"}function close_1(t){try{(Kotlin.isType(t,CloseableCoroutineDispatcher)||Kotlin.isType(t,Closeable))&&t.close()}catch(t){if(!Kotlin.isType(t,Throwable))throw t}}function HttpClientEngineCapability(){}function HttpClientEngineConfig(){this.threadsCount=4,this.pipelining=!1,this.proxy=null}function mergeHeaders$lambda(t,e){return function(n){return n.appendAll_hb0ubp$(t),n.appendAll_hb0ubp$(e.headers),Unit}}function mergeHeaders$lambda_0(t){return function(e,n){if(!equals(http.HttpHeaders.ContentLength,e)&&!equals(http.HttpHeaders.ContentType,e)){var i;if(DATE_HEADERS.contains_11rb$(e))for(i=n.iterator();i.hasNext();){var o=i.next();t(e,o)}else t(e,joinToString(n,","));return Unit}}}function mergeHeaders(t,e,n){var i,o,r,s,a,c;buildHeaders(mergeHeaders$lambda(t,e)).forEach_ubvtmq$(mergeHeaders$lambda_0(n)),null==t.get_61zpoe$(http.HttpHeaders.UserAgent)&&null==e.headers.get_61zpoe$(http.HttpHeaders.UserAgent)&&needUserAgent()&&n(http.HttpHeaders.UserAgent,KTOR_DEFAULT_USER_AGENT);var l=null!=(r=null!=(o=null!=(i=e.contentType)?i.toString():null)?o:e.headers.get_61zpoe$(http.HttpHeaders.ContentType))?r:t.get_61zpoe$(http.HttpHeaders.ContentType),u=null!=(c=null!=(a=null!=(s=e.contentLength)?s.toString():null)?a:e.headers.get_61zpoe$(http.HttpHeaders.ContentLength))?c:t.get_61zpoe$(http.HttpHeaders.ContentLength);null!=l&&n(http.HttpHeaders.ContentType,l),null!=u&&n(http.HttpHeaders.ContentLength,u)}function callContext(t){return ensureNotNull(t.context.get_j3r2sn$(KtorCallContextElement$Companion_getInstance())).callContext}function KtorCallContextElement(t){KtorCallContextElement$Companion_getInstance(),this.callContext=t}function KtorCallContextElement$Companion(){KtorCallContextElement$Companion_instance=this}HttpClientCall.$metadata$={kind:Kind_CLASS,simpleName:"HttpClientCall",interfaces:[CoroutineScope]},defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.call.body_8ov3cv$",wrapFunction((function(){var t=Kotlin.getReifiedTypeParameterKType,e=Kotlin.throwCCE,n=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect,i=Kotlin.getKClass,o=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect.typeInfoImpl_1lvkm8$,r=Error;return function(s,a,c,l){var u,h,d=n.JsType,p=i(s);t:do{try{h=t(s)}catch(t){if(Kotlin.isType(t,r)){h=null;break t}throw t}}while(0);return Kotlin.suspendCall(c.bodyNullable_qi9ur9$(o(d,p,h),Kotlin.coroutineReceiver())),a(u=Kotlin.coroutineResult(Kotlin.coroutineReceiver()))?u:e()}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.call.body_5sqbag$",wrapFunction((function(){var t=Kotlin.getReifiedTypeParameterKType,e=Kotlin.throwCCE,n=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect,i=Kotlin.getKClass,o=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect.typeInfoImpl_1lvkm8$,r=Error;return function(s,a,c,l){var u,h,d=c.call,p=n.JsType,_=i(s);t:do{try{h=t(s)}catch(t){if(Kotlin.isType(t,r)){h=null;break t}throw t}}while(0);return Kotlin.suspendCall(d.bodyNullable_qi9ur9$(o(p,_,h),Kotlin.coroutineReceiver())),a(u=Kotlin.coroutineResult(Kotlin.coroutineReceiver()))?u:e()}}))),Object.defineProperty(DoubleReceiveException.prototype,"message",{configurable:!0,get:function(){return this.message_eo7lbx$_0}}),DoubleReceiveException.$metadata$={kind:Kind_CLASS,simpleName:"DoubleReceiveException",interfaces:[IllegalStateException]},Object.defineProperty(NoTransformationFoundException.prototype,"message",{configurable:!0,get:function(){return this.message_gd84kd$_0}}),NoTransformationFoundException.$metadata$={kind:Kind_CLASS,simpleName:"NoTransformationFoundException",interfaces:[UnsupportedOperationException]},SavedHttpCall.prototype.getResponseContent=function(t){return ByteReadChannel_0(this.responseBody_0)},Object.defineProperty(SavedHttpCall.prototype,"allowDoubleReceive",{configurable:!0,get:function(){return this.allowDoubleReceive_je4pft$_0}}),SavedHttpCall.$metadata$={kind:Kind_CLASS,simpleName:"SavedHttpCall",interfaces:[HttpClientCall]},Object.defineProperty(SavedHttpRequest.prototype,"call",{get:function(){return this.call_k7cxor$_0}}),Object.defineProperty(SavedHttpRequest.prototype,"attributes",{configurable:!0,get:function(){return this.$delegate_k8mkjd$_0.attributes}}),Object.defineProperty(SavedHttpRequest.prototype,"content",{configurable:!0,get:function(){return this.$delegate_k8mkjd$_0.content}}),Object.defineProperty(SavedHttpRequest.prototype,"coroutineContext",{configurable:!0,get:function(){return this.$delegate_k8mkjd$_0.coroutineContext}}),Object.defineProperty(SavedHttpRequest.prototype,"headers",{configurable:!0,get:function(){return this.$delegate_k8mkjd$_0.headers}}),Object.defineProperty(SavedHttpRequest.prototype,"method",{configurable:!0,get:function(){return this.$delegate_k8mkjd$_0.method}}),Object.defineProperty(SavedHttpRequest.prototype,"url",{configurable:!0,get:function(){return this.$delegate_k8mkjd$_0.url}}),SavedHttpRequest.$metadata$={kind:Kind_CLASS,simpleName:"SavedHttpRequest",interfaces:[HttpRequest_0]},Object.defineProperty(SavedHttpResponse.prototype,"call",{get:function(){return this.call_tbj7t5$_0}}),Object.defineProperty(SavedHttpResponse.prototype,"status",{configurable:!0,get:function(){return this.status_i2dvkt$_0}}),Object.defineProperty(SavedHttpResponse.prototype,"version",{configurable:!0,get:function(){return this.version_ol3l9j$_0}}),Object.defineProperty(SavedHttpResponse.prototype,"requestTime",{configurable:!0,get:function(){return this.requestTime_3msfjx$_0}}),Object.defineProperty(SavedHttpResponse.prototype,"responseTime",{configurable:!0,get:function(){return this.responseTime_xhbsdj$_0}}),Object.defineProperty(SavedHttpResponse.prototype,"headers",{configurable:!0,get:function(){return this.headers_w25qx3$_0}}),Object.defineProperty(SavedHttpResponse.prototype,"coroutineContext",{configurable:!0,get:function(){return this.coroutineContext_pwmz9e$_0}}),Object.defineProperty(SavedHttpResponse.prototype,"content",{configurable:!0,get:function(){return this.content_mzxkbe$_0}}),SavedHttpResponse.$metadata$={kind:Kind_CLASS,simpleName:"SavedHttpResponse",interfaces:[HttpResponse]},Coroutine$save.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$save.prototype=Object.create(CoroutineImpl.prototype),Coroutine$save.prototype.constructor=Coroutine$save,Coroutine$save.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.response.content.readRemaining_s8cxhz$(void 0,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:var t=readBytes(this.result_0);return new SavedHttpCall(this.local$$receiver.client,this.local$$receiver.request,this.local$$receiver.response,t);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},UnsupportedContentTypeException.$metadata$={kind:Kind_CLASS,simpleName:"UnsupportedContentTypeException",interfaces:[IllegalStateException]},Object.defineProperty(ObservableContent.prototype,"contentType",{configurable:!0,get:function(){return this.delegate_0.contentType}}),Object.defineProperty(ObservableContent.prototype,"contentLength",{configurable:!0,get:function(){return this.delegate_0.contentLength}}),Object.defineProperty(ObservableContent.prototype,"status",{configurable:!0,get:function(){return this.delegate_0.status}}),Object.defineProperty(ObservableContent.prototype,"headers",{configurable:!0,get:function(){return this.delegate_0.headers}}),ObservableContent.prototype.getProperty_yzaw86$=function(t){return this.delegate_0.getProperty_yzaw86$(t)},ObservableContent.prototype.setProperty_uuntuo$=function(t,e){this.delegate_0.setProperty_uuntuo$(t,e)},ObservableContent.prototype.readFrom=function(){return observable(this.content_0,this.callContext_0,this.contentLength,this.listener_0)},Coroutine$ObservableContent$content$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$ObservableContent$content$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$ObservableContent$content$lambda.prototype.constructor=Coroutine$ObservableContent$content$lambda,Coroutine$ObservableContent$content$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$closure$delegate.writeTo_h3x4ir$(this.local$$receiver.channel,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ObservableContent.$metadata$={kind:Kind_CLASS,simpleName:"ObservableContent",interfaces:[OutgoingContent$ReadChannelContent]},Object.defineProperty(HttpClientEngine.prototype,"supportedCapabilities",{configurable:!0,get:function(){return emptySet()}}),Object.defineProperty(HttpClientEngine.prototype,"closed_yj5g8o$_0",{configurable:!0,get:function(){var t,e;return!(null!=(e=null!=(t=this.coroutineContext.get_j3r2sn$(Job.Key))?t.isActive:null)&&e)}}),Coroutine$HttpClientEngine$install$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$HttpClientEngine$install$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$HttpClientEngine$install$lambda.prototype.constructor=Coroutine$HttpClientEngine$install$lambda,Coroutine$HttpClientEngine$install$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=new HttpRequestBuilder;if(t.takeFromWithExecutionContext_s9rlw$(this.local$$receiver.context),null==this.local$content){t.body=content.NullBody;var e,n=reflect.JsType,i=PrimitiveClasses$anyClass;t:do{try{e=createKType(PrimitiveClasses$anyClass,[],!1)}catch(t){if(Kotlin.isType(t,Throwable)){e=null;break t}throw t}}while(0);t.bodyType=typeInfoImpl(n,i,e)}else if(Kotlin.isType(this.local$content,OutgoingContent))t.body=this.local$content,t.bodyType=null;else{t.body=this.local$content;var o,r=reflect.JsType,s=PrimitiveClasses$anyClass;t:do{try{o=createKType(PrimitiveClasses$anyClass,[],!1)}catch(t){if(Kotlin.isType(t,Throwable)){o=null;break t}throw t}}while(0);t.bodyType=typeInfoImpl(r,s,o)}var a=t;this.local$closure$client.monitor.raise_asioqi$(HttpRequestIsReadyForSending,a);var c=a.build();if(c.attributes.put_uuntuo$(CLIENT_CONFIG,this.local$closure$client.config_8be2vx$),this.local$requestData=c,validateHeaders(this.local$requestData),this.local$this$HttpClientEngine.checkExtensions_1320zn$_0(this.local$requestData),this.state_0=2,this.result_0=this.local$this$HttpClientEngine.executeWithinCallContext_2kaaho$_0(this.local$requestData,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:var l=this.result_0,u=HttpClientCall_init(this.local$closure$client,this.local$requestData,l),h=u.response;if(this.local$closure$client.monitor.raise_asioqi$(HttpResponseReceived,h),get_job(h.coroutineContext).invokeOnCompletion_f05bi3$(HttpClientEngine$install$lambda$lambda(this.local$closure$client,h)),this.state_0=3,this.result_0=this.local$$receiver.proceedWith_trkh7z$(u,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 3:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HttpClientEngine.prototype.install_k5i6f8$=function(t){t.sendPipeline.intercept_h71y74$(HttpSendPipeline$Phases_getInstance().Engine,HttpClientEngine$install$lambda(t,this))},Coroutine$HttpClientEngine$executeWithinCallContext$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$HttpClientEngine$executeWithinCallContext$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$HttpClientEngine$executeWithinCallContext$lambda.prototype.constructor=Coroutine$HttpClientEngine$executeWithinCallContext$lambda,Coroutine$HttpClientEngine$executeWithinCallContext$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$this$HttpClientEngine.closed_yj5g8o$_0)throw new ClientEngineClosedException;if(this.state_0=2,this.result_0=this.local$this$HttpClientEngine.execute_dkgphz$(this.local$closure$requestData,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$executeWithinCallContext_2kaaho$_0.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$executeWithinCallContext_2kaaho$_0.prototype=Object.create(CoroutineImpl.prototype),Coroutine$executeWithinCallContext_2kaaho$_0.prototype.constructor=Coroutine$executeWithinCallContext_2kaaho$_0,Coroutine$executeWithinCallContext_2kaaho$_0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=createCallContext(this.$this,this.local$requestData.executionContext,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:var t=this.result_0,e=t.plus_1fupul$(new KtorCallContextElement(t));if(this.state_0=3,this.result_0=async(this.$this,e,void 0,HttpClientEngine$executeWithinCallContext$lambda(this.$this,this.local$requestData)).await(this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 3:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HttpClientEngine.prototype.executeWithinCallContext_2kaaho$_0=function(t,e,n){var i=new Coroutine$executeWithinCallContext_2kaaho$_0(this,t,e);return n?i:i.doResume(null)},HttpClientEngine.prototype.checkExtensions_1320zn$_0=function(t){var e;for(e=t.requiredCapabilities_8be2vx$.iterator();e.hasNext();){var n=e.next();if(!this.supportedCapabilities.contains_11rb$(n))throw IllegalArgumentException_init(("Engine doesn't support "+n).toString())}},HttpClientEngine.$metadata$={kind:Kind_INTERFACE,simpleName:"HttpClientEngine",interfaces:[Closeable,CoroutineScope]},HttpClientEngineFactory.prototype.create_dxyxif$=function(t,e){return void 0===t&&(t=HttpClientEngineFactory$create$lambda),e?e(t):this.create_dxyxif$$default(t)},HttpClientEngineFactory.$metadata$={kind:Kind_INTERFACE,simpleName:"HttpClientEngineFactory",interfaces:[]},Object.defineProperty(HttpClientEngineBase.prototype,"coroutineContext",{configurable:!0,get:function(){return this.coroutineContext_huxu0y$_0.value}}),HttpClientEngineBase.prototype.close=function(){var t,e;if(this.closed_je8r6f$_0.atomicfu$compareAndSet(!1,!0)&&null!=(e=Kotlin.isType(t=this.coroutineContext.get_j3r2sn$(Job.Key),CompletableJob)?t:null)){var n=e;n.complete(),n.invokeOnCompletion_f05bi3$(HttpClientEngineBase$close$lambda(this))}},HttpClientEngineBase.$metadata$={kind:Kind_CLASS,simpleName:"HttpClientEngineBase",interfaces:[HttpClientEngine]},Object.defineProperty(ClientEngineClosedException.prototype,"cause",{get:function(){return this.cause_om4vf0$_0}}),ClientEngineClosedException.$metadata$={kind:Kind_CLASS,simpleName:"ClientEngineClosedException",interfaces:[IllegalStateException]},HttpClientEngineCapability.$metadata$={kind:Kind_INTERFACE,simpleName:"HttpClientEngineCapability",interfaces:[]},HttpClientEngineConfig.$metadata$={kind:Kind_CLASS,simpleName:"HttpClientEngineConfig",interfaces:[]},Object.defineProperty(KtorCallContextElement.prototype,"key",{configurable:!0,get:function(){return KtorCallContextElement$Companion_getInstance()}}),KtorCallContextElement$Companion.$metadata$={kind:Kind_OBJECT,simpleName:"Companion",interfaces:[CoroutineContext$Key]};var KtorCallContextElement$Companion_instance=null,UploadProgressListenerAttributeKey,DownloadProgressListenerAttributeKey;function KtorCallContextElement$Companion_getInstance(){return null===KtorCallContextElement$Companion_instance&&new KtorCallContextElement$Companion,KtorCallContextElement$Companion_instance}function needUserAgent(){return!util.PlatformUtils.IS_BROWSER}function BodyProgress(){BodyProgress$Plugin_getInstance()}function Coroutine$BodyProgress$handle$lambda(t,e,n,i){CoroutineImpl.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$tmp$=void 0,this.local$$receiver=t,this.local$content=e}function BodyProgress$handle$lambda(t,e,n,i){var o=new Coroutine$BodyProgress$handle$lambda(t,e,this,n);return i?o:o.doResume(null)}function Coroutine$BodyProgress$handle$lambda_0(t,e,n,i){CoroutineImpl.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$tmp$=void 0,this.local$$receiver=t,this.local$response=e}function BodyProgress$handle$lambda_0(t,e,n,i){var o=new Coroutine$BodyProgress$handle$lambda_0(t,e,this,n);return i?o:o.doResume(null)}function BodyProgress$Plugin(){BodyProgress$Plugin_instance=this,this.key_xac8mq$_0=new AttributeKey("BodyProgress")}KtorCallContextElement.$metadata$={kind:Kind_CLASS,simpleName:"KtorCallContextElement",interfaces:[CoroutineContext$Element]},defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.engine.attachToUserJob_mmkme6$",wrapFunction((function(){var t=_.$$importsForInline$$["kotlinx-coroutines-core"].kotlinx.coroutines.Job,e=Kotlin.kotlin.coroutines.cancellation.CancellationException_init_pdl1vj$,n=Kotlin.kotlin.Unit;return function(i,o){var r;if(null!=(r=Kotlin.coroutineReceiver().context.get_j3r2sn$(t.Key))){var s,a,c=r.invokeOnCompletion_ct2b2z$(!0,void 0,(s=i,function(t){if(null!=t)return s.cancel_x5z25k$(e(t.message)),n}));i.invokeOnCompletion_f05bi3$((a=c,function(t){return a.dispose(),n}))}}}))),Coroutine$BodyProgress$handle$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$BodyProgress$handle$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$BodyProgress$handle$lambda.prototype.constructor=Coroutine$BodyProgress$handle$lambda,Coroutine$BodyProgress$handle$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(this.local$tmp$=this.local$$receiver.context.attributes.getOrNull_yzaw86$(UploadProgressListenerAttributeKey),null==this.local$tmp$)return;this.state_0=2;continue;case 1:throw this.exception_0;case 2:var e=this.local$tmp$,n=new ObservableContent(Kotlin.isType(t=this.local$content,OutgoingContent)?t:throwCCE(),this.local$$receiver.context.executionContext,e);if(this.state_0=3,this.result_0=this.local$$receiver.proceedWith_trkh7z$(n,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 3:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$BodyProgress$handle$lambda_0.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$BodyProgress$handle$lambda_0.prototype=Object.create(CoroutineImpl.prototype),Coroutine$BodyProgress$handle$lambda_0.prototype.constructor=Coroutine$BodyProgress$handle$lambda_0,Coroutine$BodyProgress$handle$lambda_0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$tmp$=this.local$response.call.request.attributes.getOrNull_yzaw86$(DownloadProgressListenerAttributeKey),null==this.local$tmp$)return;this.state_0=2;continue;case 1:throw this.exception_0;case 2:var t=this.local$tmp$,e=withObservableDownload(this.local$response,t);if(this.state_0=3,this.result_0=this.local$$receiver.proceedWith_trkh7z$(e,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 3:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},BodyProgress.prototype.handle_0=function(t){var e=new PipelinePhase("ObservableContent");t.requestPipeline.insertPhaseAfter_b9zzbm$(HttpRequestPipeline$Phases_getInstance().Render,e),t.requestPipeline.intercept_h71y74$(e,BodyProgress$handle$lambda),t.receivePipeline.intercept_h71y74$(HttpReceivePipeline$Phases_getInstance().After,BodyProgress$handle$lambda_0)},Object.defineProperty(BodyProgress$Plugin.prototype,"key",{configurable:!0,get:function(){return this.key_xac8mq$_0}}),BodyProgress$Plugin.prototype.prepare_oh3mgy$$default=function(t){return new BodyProgress},BodyProgress$Plugin.prototype.install_wojrb5$=function(t,e){t.handle_0(e)},BodyProgress$Plugin.$metadata$={kind:Kind_OBJECT,simpleName:"Plugin",interfaces:[HttpClientPlugin]};var BodyProgress$Plugin_instance=null;function BodyProgress$Plugin_getInstance(){return null===BodyProgress$Plugin_instance&&new BodyProgress$Plugin,BodyProgress$Plugin_instance}function withObservableDownload(t,e){return wrapWithContent_1(t,observable(t.content,t.coroutineContext,contentLength(t),e))}function DataConversion_0(){DataConversion_instance=this,this.key_93ftbi$_0=new AttributeKey("DataConversion")}BodyProgress.$metadata$={kind:Kind_CLASS,simpleName:"BodyProgress",interfaces:[]};var DataConversion_instance=null;function DefaultRequest$Plugin(){DefaultRequest$Plugin_instance=this,this.key_5a3dpp$_0=new AttributeKey("DefaultRequest")}var DefaultRequest$Plugin_instance=null,ValidateMark,NO_RESPONSE_TEXT,BODY_FAILED_DECODING,DEPRECATED_EXCEPTION_CTOR;function Coroutine$addDefaultResponseValidation$lambda$lambda(t,e){CoroutineImpl.call(this,e),this.exceptionState_0=7,this.local$tmp$=void 0,this.local$statusCode=void 0,this.local$originCall=void 0,this.local$exceptionResponse=void 0,this.local$response=t}function addDefaultResponseValidation$lambda$lambda(t,e,n){var i=new Coroutine$addDefaultResponseValidation$lambda$lambda(t,e);return n?i:i.doResume(null)}function addDefaultResponseValidation$lambda(t){return function(e){return e.expectSuccess=t.expectSuccess,e.validateResponse_d4bkoy$(addDefaultResponseValidation$lambda$lambda),Unit}}function addDefaultResponseValidation(t){HttpResponseValidator(t,addDefaultResponseValidation$lambda(t))}function ResponseException(t,e){IllegalStateException_init("Bad response: "+t+'. Text: "'+e+'"',this),this.name="ResponseException",this.response=t}function RedirectResponseException(t,e){ResponseException.call(this,t,e),this.name="RedirectResponseException",this.message_8bpi86$_0="Unhandled redirect: "+t.call.request.method.value+" "+t.call.request.url+". Status: "+t.status+'. Text: "'+e+'"'}function ServerResponseException(t,e){ResponseException.call(this,t,e),this.name="ServerResponseException",this.message_2wntoz$_0="Server error("+t.call.request.method.value+" "+t.call.request.url+": "+t.status.toString()+'. Text: "'+e+'"'}function ClientRequestException(t,e){ResponseException.call(this,t,e),this.name="ClientRequestException",this.message_pce58h$_0="Client request("+t.call.request.method.value+" "+t.call.request.url+") invalid: "+t.status+'. Text: "'+e+'"'}function defaultTransformers$lambda$ObjectLiteral(t,e){this.closure$body=t,OutgoingContent$ByteArrayContent.call(this),this.contentType_qbp83j$_0=null!=e?e:ContentType.Application.OctetStream,this.contentLength_3supn9$_0=Kotlin.Long.fromInt(t.length)}function defaultTransformers$lambda$ObjectLiteral_0(t,e,n){var i;this.closure$body=t,OutgoingContent$ReadChannelContent.call(this),this.contentLength_3supn9$_0=null!=(i=e.context.headers.get_61zpoe$(http.HttpHeaders.ContentLength))?toLong(i):null,this.contentType_qbp83j$_0=null!=n?n:ContentType.Application.OctetStream}function Coroutine$defaultTransformers$lambda(t,e,n,i){CoroutineImpl.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$$receiver=t,this.local$body=e}function defaultTransformers$lambda(t,e,n,i){var o=new Coroutine$defaultTransformers$lambda(t,e,this,n);return i?o:o.doResume(null)}function Coroutine$defaultTransformers$lambda$lambda(t,e,n,i,o){CoroutineImpl.call(this,o),this.$controller=i,this.exceptionState_0=6,this.local$closure$body=t,this.local$closure$response=e,this.local$$receiver=n}function defaultTransformers$lambda$lambda(t,e){return function(n,i,o){var r=new Coroutine$defaultTransformers$lambda$lambda(t,e,n,this,i);return o?r:r.doResume(null)}}function defaultTransformers$lambda$lambda$lambda(t){return function(e){return t.complete(),Unit}}function Coroutine$defaultTransformers$lambda_0(t,e,n,i){CoroutineImpl.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$info=void 0,this.local$body=void 0,this.local$response=void 0,this.local$$receiver=t,this.local$f=e}function defaultTransformers$lambda_0(t,e,n,i){var o=new Coroutine$defaultTransformers$lambda_0(t,e,this,n);return i?o:o.doResume(null)}function defaultTransformers(t){t.requestPipeline.intercept_h71y74$(HttpRequestPipeline$Phases_getInstance().Render,defaultTransformers$lambda),t.responsePipeline.intercept_h71y74$(HttpResponsePipeline$Phases_getInstance().Parse,defaultTransformers$lambda_0),platformResponseDefaultTransformers(t)}function HttpCallValidator(t,e,n){HttpCallValidator$Companion_getInstance(),this.responseValidators_0=t,this.callExceptionHandlers_0=e,this.expectSuccess_0=n}function Coroutine$validateResponse_0(t,e,n){CoroutineImpl.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$tmp$=void 0,this.local$response=e}function Coroutine$processException_0(t,e,n,i){CoroutineImpl.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$tmp$=void 0,this.local$cause=e,this.local$request=n}function HttpCallValidator$Config(){this.responseValidators_8be2vx$=ArrayList_init(),this.responseExceptionHandlers_8be2vx$=ArrayList_init(),this.expectSuccess=!0}function HttpCallValidator$Companion(){HttpCallValidator$Companion_instance=this,this.key_vbv7yu$_0=new AttributeKey("HttpResponseValidator")}function HttpCallValidator$Companion$install$lambda$lambda(t){return function(){return t.expectSuccess_0}}function Coroutine$HttpCallValidator$Companion$install$lambda(t,e,n,i,o){CoroutineImpl.call(this,o),this.$controller=i,this.exceptionState_0=6,this.local$closure$plugin=t,this.local$unwrappedCause=void 0,this.local$$receiver=e,this.local$it=n}function HttpCallValidator$Companion$install$lambda(t){return function(e,n,i,o){var r=new Coroutine$HttpCallValidator$Companion$install$lambda(t,e,n,this,i);return o?r:r.doResume(null)}}function Coroutine$HttpCallValidator$Companion$install$lambda_0(t,e,n,i,o){CoroutineImpl.call(this,o),this.$controller=i,this.exceptionState_0=6,this.local$closure$plugin=t,this.local$unwrappedCause=void 0,this.local$$receiver=e,this.local$container=n}function HttpCallValidator$Companion$install$lambda_0(t){return function(e,n,i,o){var r=new Coroutine$HttpCallValidator$Companion$install$lambda_0(t,e,n,this,i);return o?r:r.doResume(null)}}function Coroutine$HttpCallValidator$Companion$install$lambda_1(t,e,n,i,o){CoroutineImpl.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$plugin=t,this.local$call=void 0,this.local$$receiver=e,this.local$request=n}function HttpCallValidator$Companion$install$lambda_1(t){return function(e,n,i,o){var r=new Coroutine$HttpCallValidator$Companion$install$lambda_1(t,e,n,this,i);return o?r:r.doResume(null)}}Coroutine$addDefaultResponseValidation$lambda$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$addDefaultResponseValidation$lambda$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$addDefaultResponseValidation$lambda$lambda.prototype.constructor=Coroutine$addDefaultResponseValidation$lambda$lambda,Coroutine$addDefaultResponseValidation$lambda$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$response.call.attributes.get_yzaw86$(ExpectSuccessAttributeKey)){this.state_0=1;continue}return;case 1:if(this.local$statusCode=this.local$response.status.value,this.local$originCall=this.local$response.call,this.local$statusCode<300||this.local$originCall.attributes.contains_w48dwb$(ValidateMark))return;this.state_0=2;continue;case 2:if(this.state_0=3,this.result_0=save(this.local$originCall,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 3:var t=this.result_0;t.attributes.put_uuntuo$(ValidateMark,Unit);var e=t;if(this.local$exceptionResponse=e.response,this.exceptionState_0=5,this.state_0=4,this.result_0=bodyAsText(this.local$exceptionResponse,void 0,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 4:this.local$tmp$=this.result_0,this.exceptionState_0=7,this.state_0=6;continue;case 5:this.exceptionState_0=7;var n=this.exception_0;if(!Kotlin.isType(n,MalformedInputException))throw n;this.local$tmp$=BODY_FAILED_DECODING,this.state_0=6;continue;case 6:var i=this.local$tmp$;throw this.local$statusCode>=300&&this.local$statusCode<=399?new RedirectResponseException(this.local$exceptionResponse,i):this.local$statusCode>=400&&this.local$statusCode<=499?new ClientRequestException(this.local$exceptionResponse,i):this.local$statusCode>=500&&this.local$statusCode<=599?new ServerResponseException(this.local$exceptionResponse,i):new ResponseException(this.local$exceptionResponse,i);case 7:throw this.exception_0;default:throw this.state_0=7,new Error("State Machine Unreachable execution")}}catch(t){if(7===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ResponseException.$metadata$={kind:Kind_CLASS,simpleName:"ResponseException",interfaces:[IllegalStateException]},Object.defineProperty(RedirectResponseException.prototype,"message",{configurable:!0,get:function(){return this.message_8bpi86$_0}}),RedirectResponseException.$metadata$={kind:Kind_CLASS,simpleName:"RedirectResponseException",interfaces:[ResponseException]},Object.defineProperty(ServerResponseException.prototype,"message",{configurable:!0,get:function(){return this.message_2wntoz$_0}}),ServerResponseException.$metadata$={kind:Kind_CLASS,simpleName:"ServerResponseException",interfaces:[ResponseException]},Object.defineProperty(ClientRequestException.prototype,"message",{configurable:!0,get:function(){return this.message_pce58h$_0}}),ClientRequestException.$metadata$={kind:Kind_CLASS,simpleName:"ClientRequestException",interfaces:[ResponseException]},Object.defineProperty(defaultTransformers$lambda$ObjectLiteral.prototype,"contentType",{configurable:!0,get:function(){return this.contentType_qbp83j$_0}}),Object.defineProperty(defaultTransformers$lambda$ObjectLiteral.prototype,"contentLength",{configurable:!0,get:function(){return this.contentLength_3supn9$_0}}),defaultTransformers$lambda$ObjectLiteral.prototype.bytes=function(){return this.closure$body},defaultTransformers$lambda$ObjectLiteral.$metadata$={kind:Kind_CLASS,interfaces:[OutgoingContent$ByteArrayContent]},Object.defineProperty(defaultTransformers$lambda$ObjectLiteral_0.prototype,"contentLength",{configurable:!0,get:function(){return this.contentLength_3supn9$_0}}),Object.defineProperty(defaultTransformers$lambda$ObjectLiteral_0.prototype,"contentType",{configurable:!0,get:function(){return this.contentType_qbp83j$_0}}),defaultTransformers$lambda$ObjectLiteral_0.prototype.readFrom=function(){return this.closure$body},defaultTransformers$lambda$ObjectLiteral_0.$metadata$={kind:Kind_CLASS,interfaces:[OutgoingContent$ReadChannelContent]},Coroutine$defaultTransformers$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$defaultTransformers$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$defaultTransformers$lambda.prototype.constructor=Coroutine$defaultTransformers$lambda,Coroutine$defaultTransformers$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:null==this.local$$receiver.context.headers.get_61zpoe$(http.HttpHeaders.Accept)&&this.local$$receiver.context.headers.append_puj7f4$(http.HttpHeaders.Accept,"*/*");var t=contentType(this.local$$receiver.context),e="string"==typeof this.local$body?new TextContent(this.local$body,null!=t?t:ContentType.Text.Plain):Kotlin.isByteArray(this.local$body)?new defaultTransformers$lambda$ObjectLiteral(this.local$body,t):Kotlin.isType(this.local$body,ByteReadChannel)?new defaultTransformers$lambda$ObjectLiteral_0(this.local$body,this.local$$receiver,t):Kotlin.isType(this.local$body,OutgoingContent)?this.local$body:platformRequestDefaultTransform(t,this.local$$receiver.context,this.local$body);if(null!=(null!=e?e.contentType:null)){if(this.local$$receiver.context.headers.remove_61zpoe$(http.HttpHeaders.ContentType),this.state_0=2,this.result_0=this.local$$receiver.proceedWith_trkh7z$(e,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:case 3:return Unit;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$defaultTransformers$lambda$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$defaultTransformers$lambda$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$defaultTransformers$lambda$lambda.prototype.constructor=Coroutine$defaultTransformers$lambda$lambda,Coroutine$defaultTransformers$lambda$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.exceptionState_0=3,this.state_0=1,this.result_0=copyTo(this.local$closure$body,this.local$$receiver.channel,Long$Companion$MAX_VALUE,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:this.exceptionState_0=6,this.finallyPath_0=[2],this.state_0=4,this.$returnValue=this.result_0;continue;case 2:return this.$returnValue;case 3:this.finallyPath_0=[6],this.exceptionState_0=4;var t=this.exception_0;throw Kotlin.isType(t,CancellationException)?(cancel(this.local$closure$response,t),t):Kotlin.isType(t,Throwable)?(cancel_0(this.local$closure$response,"Receive failed",t),t):t;case 4:this.exceptionState_0=6,complete(this.local$closure$response),this.state_0=this.finallyPath_0.shift();continue;case 5:return;case 6:throw this.exception_0;default:throw this.state_0=6,new Error("State Machine Unreachable execution")}}catch(t){if(6===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$defaultTransformers$lambda_0.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$defaultTransformers$lambda_0.prototype=Object.create(CoroutineImpl.prototype),Coroutine$defaultTransformers$lambda_0.prototype.constructor=Coroutine$defaultTransformers$lambda_0,Coroutine$defaultTransformers$lambda_0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(this.local$info=this.local$f.component1(),this.local$body=this.local$f.component2(),Kotlin.isType(this.local$body,ByteReadChannel)){this.state_0=2;continue}return;case 1:throw this.exception_0;case 2:if(this.local$response=this.local$$receiver.context.response,t=this.local$info.type,equals(t,getKClass(Object.getPrototypeOf(kotlin.Unit).constructor))){if(cancel_1(this.local$body),this.state_0=16,this.result_0=this.local$$receiver.proceedWith_trkh7z$(new HttpResponseContainer(this.local$info,Unit),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue}if(equals(t,PrimitiveClasses$intClass)){if(this.state_0=13,this.result_0=this.local$body.readRemaining_s8cxhz$(void 0,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue}if(equals(t,getKClass(ByteReadPacket))||equals(t,getKClass(Input))){if(this.state_0=10,this.result_0=this.local$body.readRemaining_s8cxhz$(void 0,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue}if(equals(t,PrimitiveClasses$byteArrayClass)){if(this.state_0=7,this.result_0=toByteArray(this.local$body,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue}if(equals(t,getKClass(ByteReadChannel))){var e=Job_0(this.local$response.coroutineContext.get_j3r2sn$(Job.Key)),n=writer(this.local$$receiver,this.local$response.coroutineContext,void 0,defaultTransformers$lambda$lambda(this.local$body,this.local$response));n.invokeOnCompletion_f05bi3$(defaultTransformers$lambda$lambda$lambda(e));var i=n.channel;if(this.state_0=5,this.result_0=this.local$$receiver.proceedWith_trkh7z$(new HttpResponseContainer(this.local$info,i),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue}if(equals(t,getKClass(HttpStatusCode))){if(cancel_1(this.local$body),this.state_0=3,this.result_0=this.local$$receiver.proceedWith_trkh7z$(new HttpResponseContainer(this.local$info,this.local$response.status),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue}this.state_0=4;continue;case 3:return this.result_0;case 4:this.state_0=6;continue;case 5:return this.result_0;case 6:this.state_0=9;continue;case 7:var o=this.result_0,r=contentLength(this.local$response);if(null==this.local$response.headers.get_61zpoe$(http.HttpHeaders.ContentEncoding)&&null!=r&&r.toNumber()>0&&o.length!==r.toInt()){var s="Expected "+toString(r)+", actual "+o.length;throw IllegalStateException_init(s.toString())}if(this.state_0=8,this.result_0=this.local$$receiver.proceedWith_trkh7z$(new HttpResponseContainer(this.local$info,o),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 8:return this.result_0;case 9:this.state_0=12;continue;case 10:if(this.state_0=11,this.result_0=this.local$$receiver.proceedWith_trkh7z$(new HttpResponseContainer(this.local$info,this.result_0),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 11:return this.result_0;case 12:this.state_0=15;continue;case 13:if(this.state_0=14,this.result_0=this.local$$receiver.proceedWith_trkh7z$(new HttpResponseContainer(this.local$info,toInt(this.result_0.readText_vux9f0$())),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 14:return this.result_0;case 15:this.state_0=17;continue;case 16:return this.result_0;case 17:return Unit;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$validateResponse_0.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$validateResponse_0.prototype=Object.create(CoroutineImpl.prototype),Coroutine$validateResponse_0.prototype.constructor=Coroutine$validateResponse_0,Coroutine$validateResponse_0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$tmp$=this.$this.responseValidators_0.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$tmp$.hasNext()){this.state_0=4;continue}var t=this.local$tmp$.next();if(this.state_0=3,this.result_0=t(this.local$response,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 3:this.state_0=2;continue;case 4:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HttpCallValidator.prototype.validateResponse_0=function(t,e,n){var i=new Coroutine$validateResponse_0(this,t,e);return n?i:i.doResume(null)},Coroutine$processException_0.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$processException_0.prototype=Object.create(CoroutineImpl.prototype),Coroutine$processException_0.prototype.constructor=Coroutine$processException_0,Coroutine$processException_0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$tmp$=this.$this.callExceptionHandlers_0.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$tmp$.hasNext()){this.state_0=7;continue}var t=this.local$tmp$.next();if(Kotlin.isType(t,ExceptionHandlerWrapper)){if(this.state_0=5,this.result_0=t.handler(this.local$cause,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue}if(Kotlin.isType(t,RequestExceptionHandlerWrapper)){if(this.state_0=3,this.result_0=t.handler(this.local$cause,this.local$request,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue}this.state_0=4;continue;case 3:this.state_0=4;continue;case 4:case 5:this.state_0=6;continue;case 6:this.state_0=2;continue;case 7:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HttpCallValidator.prototype.processException_0=function(t,e,n,i){var o=new Coroutine$processException_0(this,t,e,n);return i?o:o.doResume(null)},HttpCallValidator$Config.prototype.handleResponseException_9rdja$=function(t){var e=this.responseExceptionHandlers_8be2vx$,n=new ExceptionHandlerWrapper(t);e.add_11rb$(n)},HttpCallValidator$Config.prototype.handleResponseExceptionWithRequest_yc597p$=function(t){var e=this.responseExceptionHandlers_8be2vx$,n=new RequestExceptionHandlerWrapper(t);e.add_11rb$(n)},HttpCallValidator$Config.prototype.validateResponse_d4bkoy$=function(t){this.responseValidators_8be2vx$.add_11rb$(t)},HttpCallValidator$Config.$metadata$={kind:Kind_CLASS,simpleName:"Config",interfaces:[]},Object.defineProperty(HttpCallValidator$Companion.prototype,"key",{configurable:!0,get:function(){return this.key_vbv7yu$_0}}),HttpCallValidator$Companion.prototype.prepare_oh3mgy$$default=function(t){var e=new HttpCallValidator$Config;t(e);var n=e;return new HttpCallValidator(reversed(n.responseValidators_8be2vx$),reversed(n.responseExceptionHandlers_8be2vx$),n.expectSuccess)},Coroutine$HttpCallValidator$Companion$install$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$HttpCallValidator$Companion$install$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$HttpCallValidator$Companion$install$lambda.prototype.constructor=Coroutine$HttpCallValidator$Companion$install$lambda,Coroutine$HttpCallValidator$Companion$install$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.exceptionState_0=2,this.local$$receiver.context.attributes.computeIfAbsent_u4q9l2$(ExpectSuccessAttributeKey,HttpCallValidator$Companion$install$lambda$lambda(this.local$closure$plugin)),this.state_0=1,this.result_0=this.local$$receiver.proceedWith_trkh7z$(this.local$it,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:return this.result_0;case 2:this.exceptionState_0=6;var t=this.exception_0;if(Kotlin.isType(t,Throwable)){if(this.local$unwrappedCause=unwrapCancellationException(t),this.state_0=3,this.result_0=this.local$closure$plugin.processException_0(this.local$unwrappedCause,HttpRequest(this.local$$receiver.context),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue}throw t;case 3:throw this.local$unwrappedCause;case 4:this.state_0=5;continue;case 5:return;case 6:throw this.exception_0;default:throw this.state_0=6,new Error("State Machine Unreachable execution")}}catch(t){if(6===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$HttpCallValidator$Companion$install$lambda_0.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$HttpCallValidator$Companion$install$lambda_0.prototype=Object.create(CoroutineImpl.prototype),Coroutine$HttpCallValidator$Companion$install$lambda_0.prototype.constructor=Coroutine$HttpCallValidator$Companion$install$lambda_0,Coroutine$HttpCallValidator$Companion$install$lambda_0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.exceptionState_0=2,this.state_0=1,this.result_0=this.local$$receiver.proceedWith_trkh7z$(this.local$container,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:return this.result_0;case 2:this.exceptionState_0=6;var t=this.exception_0;if(Kotlin.isType(t,Throwable)){if(this.local$unwrappedCause=unwrapCancellationException(t),this.state_0=3,this.result_0=this.local$closure$plugin.processException_0(this.local$unwrappedCause,this.local$$receiver.context.request,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue}throw t;case 3:throw this.local$unwrappedCause;case 4:this.state_0=5;continue;case 5:return;case 6:throw this.exception_0;default:throw this.state_0=6,new Error("State Machine Unreachable execution")}}catch(t){if(6===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$HttpCallValidator$Companion$install$lambda_1.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$HttpCallValidator$Companion$install$lambda_1.prototype=Object.create(CoroutineImpl.prototype),Coroutine$HttpCallValidator$Companion$install$lambda_1.prototype.constructor=Coroutine$HttpCallValidator$Companion$install$lambda_1,Coroutine$HttpCallValidator$Companion$install$lambda_1.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.execute_s9rlw$(this.local$request,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:if(this.local$call=this.result_0,this.state_0=3,this.result_0=this.local$closure$plugin.validateResponse_0(this.local$call.response,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 3:return this.local$call;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HttpCallValidator$Companion.prototype.install_wojrb5$=function(t,e){e.requestPipeline.intercept_h71y74$(HttpRequestPipeline$Phases_getInstance().Before,HttpCallValidator$Companion$install$lambda(t));var n=new PipelinePhase("BeforeReceive");e.responsePipeline.insertPhaseBefore_b9zzbm$(HttpResponsePipeline$Phases_getInstance().Receive,n),e.responsePipeline.intercept_h71y74$(n,HttpCallValidator$Companion$install$lambda_0(t)),plugin(e,HttpSend$Plugin_getInstance()).intercept_aa8w70$(HttpCallValidator$Companion$install$lambda_1(t))},HttpCallValidator$Companion.$metadata$={kind:Kind_OBJECT,simpleName:"Companion",interfaces:[HttpClientPlugin]};var HttpCallValidator$Companion_instance=null,ExpectSuccessAttributeKey,PLUGIN_INSTALLED_LIST;function HttpCallValidator$Companion_getInstance(){return null===HttpCallValidator$Companion_instance&&new HttpCallValidator$Companion,HttpCallValidator$Companion_instance}function HttpRequest$ObjectLiteral(t){this.closure$builder=t,this.method_wo5b7y$_0=t.method,this.url_okq4sy$_0=t.url.build(),this.attributes_qewzi4$_0=t.attributes,this.headers_th47hh$_0=t.headers.build()}function HttpRequest(t){return new HttpRequest$ObjectLiteral(t)}function HttpResponseValidator(t,e){t.install_dq2y33$(HttpCallValidator$Companion_getInstance(),e)}function set_expectSuccess(t,e){t.attributes.put_uuntuo$(ExpectSuccessAttributeKey,e)}function HandlerWrapper(){}function ExceptionHandlerWrapper(t){this.handler=t}function RequestExceptionHandlerWrapper(t){this.handler=t}function HttpClientPlugin(){}function HttpClientPlugin$prepare$lambda(t){return Unit}function pluginOrNull(t,e){var n;return null!=(n=t.attributes.getOrNull_yzaw86$(PLUGIN_INSTALLED_LIST))?n.getOrNull_yzaw86$(e.key):null}function plugin(t,e){var n;if(null==(n=pluginOrNull(t,e)))throw IllegalStateException_init("Plugin "+e+" is not installed. Consider using `install("+e.key+")` in client config first.");return n}HttpCallValidator.$metadata$={kind:Kind_CLASS,simpleName:"HttpCallValidator",interfaces:[]},Object.defineProperty(HttpRequest$ObjectLiteral.prototype,"call",{configurable:!0,get:function(){throw IllegalStateException_init("Call is not initialized".toString())}}),Object.defineProperty(HttpRequest$ObjectLiteral.prototype,"method",{configurable:!0,get:function(){return this.method_wo5b7y$_0}}),Object.defineProperty(HttpRequest$ObjectLiteral.prototype,"url",{configurable:!0,get:function(){return this.url_okq4sy$_0}}),Object.defineProperty(HttpRequest$ObjectLiteral.prototype,"attributes",{configurable:!0,get:function(){return this.attributes_qewzi4$_0}}),Object.defineProperty(HttpRequest$ObjectLiteral.prototype,"headers",{configurable:!0,get:function(){return this.headers_th47hh$_0}}),Object.defineProperty(HttpRequest$ObjectLiteral.prototype,"content",{configurable:!0,get:function(){var t,e;if(null==(e=Kotlin.isType(t=this.closure$builder.body,OutgoingContent)?t:null))throw IllegalStateException_init(("Content was not transformed to OutgoingContent yet. Current body is "+this.closure$builder.body.toString()).toString());return e}}),HttpRequest$ObjectLiteral.$metadata$={kind:Kind_CLASS,interfaces:[HttpRequest_0]},HandlerWrapper.$metadata$={kind:Kind_INTERFACE,simpleName:"HandlerWrapper",interfaces:[]},ExceptionHandlerWrapper.$metadata$={kind:Kind_CLASS,simpleName:"ExceptionHandlerWrapper",interfaces:[HandlerWrapper]},RequestExceptionHandlerWrapper.$metadata$={kind:Kind_CLASS,simpleName:"RequestExceptionHandlerWrapper",interfaces:[HandlerWrapper]},HttpClientPlugin.prototype.prepare_oh3mgy$=function(t,e){return void 0===t&&(t=HttpClientPlugin$prepare$lambda),e?e(t):this.prepare_oh3mgy$$default(t)},HttpClientPlugin.$metadata$={kind:Kind_INTERFACE,simpleName:"HttpClientPlugin",interfaces:[]};var compareByDescending$lambda=wrapFunction((function(){var t=Kotlin.kotlin.comparisons.compareValues_s00gnj$;return function(e){return function(n,i){var o=e;return t(o(i),o(n))}}})),compareBy$lambda=wrapFunction((function(){var t=Kotlin.kotlin.comparisons.compareValues_s00gnj$;return function(e){return function(n,i){var o=e;return t(o(n),o(i))}}}));function HttpPlainText(t,e,n,i){var o,r,s;HttpPlainText$Plugin_getInstance(),this.responseCharsetFallback_0=i,this.requestCharset_0=null,this.acceptCharsetHeader_0=null;var a,c=sortedWith(toList(e),new Comparator(compareByDescending$lambda(HttpPlainText_init$lambda))),l=ArrayList_init();for(a=t.iterator();a.hasNext();){var u=a.next();e.containsKey_11rb$(u)||l.add_11rb$(u)}var h,d,p=sortedWith(l,new Comparator(compareBy$lambda(HttpPlainText_init$lambda_0))),_=StringBuilder_init();for(h=p.iterator();h.hasNext();){var m=h.next();_.length>0&&_.append_pdl1vj$(","),_.append_pdl1vj$(get_name(m))}for(d=c.iterator();d.hasNext();){var f=d.next(),g=f.component1(),$=f.component2();if(_.length>0&&_.append_pdl1vj$(","),!contains(rangeTo(0,1),$))throw IllegalStateException_init("Check failed.".toString());var E=roundToInt(100*$)/100;_.append_pdl1vj$(get_name(g)+";q="+E)}0===_.length&&_.append_pdl1vj$(get_name(this.responseCharsetFallback_0)),this.acceptCharsetHeader_0=_.toString(),this.requestCharset_0=null!=(s=null!=(r=null!=n?n:firstOrNull(p))?r:null!=(o=firstOrNull(c))?o.first:null)?s:charsets.Charsets.UTF_8}function HttpPlainText$Config(){this.charsets_8be2vx$=LinkedHashSet_init(),this.charsetQuality_8be2vx$=LinkedHashMap_init(),this.sendCharset=null,this.responseCharsetFallback=charsets.Charsets.UTF_8}function HttpPlainText$Plugin(){HttpPlainText$Plugin_instance=this,this.key_y9ebr4$_0=new AttributeKey("HttpPlainText")}function Coroutine$HttpPlainText$Plugin$install$lambda(t,e,n,i,o){CoroutineImpl.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$plugin=t,this.local$contentType=void 0,this.local$$receiver=e,this.local$content=n}function HttpPlainText$Plugin$install$lambda(t){return function(e,n,i,o){var r=new Coroutine$HttpPlainText$Plugin$install$lambda(t,e,n,this,i);return o?r:r.doResume(null)}}function Coroutine$HttpPlainText$Plugin$install$lambda_0(t,e,n,i,o){CoroutineImpl.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$plugin=t,this.local$info=void 0,this.local$body=void 0,this.local$$receiver=e,this.local$f=n}function HttpPlainText$Plugin$install$lambda_0(t){return function(e,n,i,o){var r=new Coroutine$HttpPlainText$Plugin$install$lambda_0(t,e,n,this,i);return o?r:r.doResume(null)}}HttpPlainText$Config.prototype.register_qv516$=function(t,e){if(void 0===e&&(e=null),null!=e&&!contains(rangeTo(0,1),e))throw IllegalStateException_init("Check failed.".toString());this.charsets_8be2vx$.add_11rb$(t),null==e?this.charsetQuality_8be2vx$.remove_11rb$(t):this.charsetQuality_8be2vx$.put_xwzc9p$(t,e)},HttpPlainText$Config.$metadata$={kind:Kind_CLASS,simpleName:"Config",interfaces:[]},Object.defineProperty(HttpPlainText$Plugin.prototype,"key",{configurable:!0,get:function(){return this.key_y9ebr4$_0}}),HttpPlainText$Plugin.prototype.prepare_oh3mgy$$default=function(t){var e=new HttpPlainText$Config;t(e);var n=e;return new HttpPlainText(n.charsets_8be2vx$,n.charsetQuality_8be2vx$,n.sendCharset,n.responseCharsetFallback)},Coroutine$HttpPlainText$Plugin$install$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$HttpPlainText$Plugin$install$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$HttpPlainText$Plugin$install$lambda.prototype.constructor=Coroutine$HttpPlainText$Plugin$install$lambda,Coroutine$HttpPlainText$Plugin$install$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$closure$plugin.addCharsetHeaders_jc2hdt$(this.local$$receiver.context),"string"!=typeof this.local$content)return;this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(this.local$contentType=contentType(this.local$$receiver.context),null==this.local$contentType||equals(this.local$contentType.contentType,ContentType.Text.Plain.contentType)){this.state_0=3;continue}return;case 3:if(this.state_0=4,this.result_0=this.local$$receiver.proceedWith_trkh7z$(this.local$closure$plugin.wrapContent_0(this.local$content,this.local$contentType),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 4:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$HttpPlainText$Plugin$install$lambda_0.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$HttpPlainText$Plugin$install$lambda_0.prototype=Object.create(CoroutineImpl.prototype),Coroutine$HttpPlainText$Plugin$install$lambda_0.prototype.constructor=Coroutine$HttpPlainText$Plugin$install$lambda_0,Coroutine$HttpPlainText$Plugin$install$lambda_0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(this.local$info=this.local$f.component1(),this.local$body=this.local$f.component2(),null!=(t=this.local$info.type)&&t.equals(PrimitiveClasses$stringClass)&&Kotlin.isType(this.local$body,ByteReadChannel)){this.state_0=2;continue}return;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=this.local$body.readRemaining_s8cxhz$(void 0,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 3:var e=this.result_0,n=this.local$closure$plugin.read_r18uy3$(this.local$$receiver.context,e);if(this.state_0=4,this.result_0=this.local$$receiver.proceedWith_trkh7z$(new HttpResponseContainer(this.local$info,n),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 4:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HttpPlainText$Plugin.prototype.install_wojrb5$=function(t,e){e.requestPipeline.intercept_h71y74$(HttpRequestPipeline$Phases_getInstance().Render,HttpPlainText$Plugin$install$lambda(t)),e.responsePipeline.intercept_h71y74$(HttpResponsePipeline$Phases_getInstance().Transform,HttpPlainText$Plugin$install$lambda_0(t))},HttpPlainText$Plugin.$metadata$={kind:Kind_OBJECT,simpleName:"Plugin",interfaces:[HttpClientPlugin]};var HttpPlainText$Plugin_instance=null,ALLOWED_FOR_REDIRECT;function HttpPlainText$Plugin_getInstance(){return null===HttpPlainText$Plugin_instance&&new HttpPlainText$Plugin,HttpPlainText$Plugin_instance}function HttpPlainText_init$lambda(t){return t.second}function HttpPlainText_init$lambda_0(t){return get_name(t)}function HttpRedirect(t,e){HttpRedirect$Plugin_getInstance(),this.checkHttpMethod_0=t,this.allowHttpsDowngrade_0=e}function HttpRedirect$Config(){this.checkHttpMethod=!0,this.allowHttpsDowngrade=!1}function HttpRedirect$Plugin(){HttpRedirect$Plugin_instance=this,this.key_fcr0bn$_0=new AttributeKey("HttpRedirect"),this.HttpResponseRedirect=new EventDefinition}function Coroutine$HttpRedirect$Plugin$install$lambda(t,e,n,i,o,r,s){CoroutineImpl.call(this,s),this.$controller=r,this.exceptionState_0=1,this.local$closure$plugin=t,this.local$closure$scope=e,this.local$this$HttpRedirect$=n,this.local$origin=void 0,this.local$$receiver=i,this.local$context=o}function HttpRedirect$Plugin$install$lambda(t,e,n){return function(i,o,r,s){var a=new Coroutine$HttpRedirect$Plugin$install$lambda(t,e,n,i,o,this,r);return s?a:a.doResume(null)}}function Coroutine$handleCall_0(t,e,n,i,o,r,s){CoroutineImpl.call(this,s),this.exceptionState_0=1,this.$this=t,this.local$call=void 0,this.local$requestBuilder=void 0,this.local$originProtocol=void 0,this.local$originAuthority=void 0,this.local$$receiver=void 0,this.local$$receiver_0=e,this.local$context=n,this.local$origin=i,this.local$allowHttpsDowngrade=o,this.local$client=r}HttpPlainText.prototype.wrapContent_0=function(t,e){var n,i=null!=e?e:ContentType.Text.Plain,o=null!=(n=null!=e?charset(e):null)?n:this.requestCharset_0;return new TextContent(t,withCharset(i,o))},HttpPlainText.prototype.read_r18uy3$=function(t,e){var n,i=null!=(n=charset_0(t.response))?n:this.responseCharsetFallback_0;return readText(e,i)},HttpPlainText.prototype.addCharsetHeaders_jc2hdt$=function(t){null==t.headers.get_61zpoe$(http.HttpHeaders.AcceptCharset)&&t.headers.set_puj7f4$(http.HttpHeaders.AcceptCharset,this.acceptCharsetHeader_0)},HttpPlainText.$metadata$={kind:Kind_CLASS,simpleName:"HttpPlainText",interfaces:[]},HttpRedirect$Config.$metadata$={kind:Kind_CLASS,simpleName:"Config",interfaces:[]},Object.defineProperty(HttpRedirect$Plugin.prototype,"key",{configurable:!0,get:function(){return this.key_fcr0bn$_0}}),HttpRedirect$Plugin.prototype.prepare_oh3mgy$$default=function(t){var e=new HttpRedirect$Config;t(e);var n=e;return new HttpRedirect(n.checkHttpMethod,n.allowHttpsDowngrade)},Coroutine$HttpRedirect$Plugin$install$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$HttpRedirect$Plugin$install$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$HttpRedirect$Plugin$install$lambda.prototype.constructor=Coroutine$HttpRedirect$Plugin$install$lambda,Coroutine$HttpRedirect$Plugin$install$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.execute_s9rlw$(this.local$context,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:if(this.local$origin=this.result_0,this.local$closure$plugin.checkHttpMethod_0&&!ALLOWED_FOR_REDIRECT.contains_11rb$(this.local$origin.request.method))return this.local$origin;this.state_0=3;continue;case 3:if(this.state_0=4,this.result_0=this.local$this$HttpRedirect$.handleCall_0(this.local$$receiver,this.local$context,this.local$origin,this.local$closure$plugin.allowHttpsDowngrade_0,this.local$closure$scope,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 4:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HttpRedirect$Plugin.prototype.install_wojrb5$=function(t,e){plugin(e,HttpSend$Plugin_getInstance()).intercept_aa8w70$(HttpRedirect$Plugin$install$lambda(t,e,this))},Coroutine$handleCall_0.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$handleCall_0.prototype=Object.create(CoroutineImpl.prototype),Coroutine$handleCall_0.prototype.constructor=Coroutine$handleCall_0,Coroutine$handleCall_0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(isRedirect(this.local$origin.response.status)){this.state_0=2;continue}return this.local$origin;case 1:throw this.exception_0;case 2:this.local$call={v:this.local$origin},this.local$requestBuilder={v:this.local$context},this.local$originProtocol=this.local$origin.request.url.protocol,this.local$originAuthority=get_authority(this.local$origin.request.url),this.state_0=3;continue;case 3:this.local$client.monitor.raise_asioqi$(this.$this.HttpResponseRedirect,this.local$call.v.response);var t=this.local$call.v.response.headers.get_61zpoe$(http.HttpHeaders.Location);if(this.local$$receiver=new HttpRequestBuilder,this.local$$receiver.takeFromWithExecutionContext_s9rlw$(this.local$requestBuilder.v),this.local$$receiver.url.parameters.clear(),null!=t&&takeFrom_0(this.local$$receiver.url,t),this.local$allowHttpsDowngrade||!isSecure(this.local$originProtocol)||isSecure(this.local$$receiver.url.protocol)){this.state_0=4;continue}return this.local$call.v;case 4:if(equals(this.local$originAuthority,get_authority_0(this.local$$receiver.url))||this.local$$receiver.headers.remove_61zpoe$(http.HttpHeaders.Authorization),this.local$requestBuilder.v=this.local$$receiver,this.state_0=5,this.result_0=this.local$$receiver_0.execute_s9rlw$(this.local$requestBuilder.v,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 5:if(this.local$call.v=this.result_0,isRedirect(this.local$call.v.response.status)){this.state_0=6;continue}return this.local$call.v;case 6:this.state_0=3;continue;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HttpRedirect$Plugin.prototype.handleCall_0=function(t,e,n,i,o,r,s){var a=new Coroutine$handleCall_0(this,t,e,n,i,o,r);return s?a:a.doResume(null)},HttpRedirect$Plugin.$metadata$={kind:Kind_OBJECT,simpleName:"Plugin",interfaces:[HttpClientPlugin]};var HttpRedirect$Plugin_instance=null;function HttpRedirect$Plugin_getInstance(){return null===HttpRedirect$Plugin_instance&&new HttpRedirect$Plugin,HttpRedirect$Plugin_instance}function isRedirect(t){var e;return(e=t.value)===HttpStatusCode.Companion.MovedPermanently.value||e===HttpStatusCode.Companion.Found.value||e===HttpStatusCode.Companion.TemporaryRedirect.value||e===HttpStatusCode.Companion.PermanentRedirect.value||e===HttpStatusCode.Companion.SeeOther.value}function HttpRequestLifecycle(){HttpRequestLifecycle$Plugin_getInstance()}function HttpRequestLifecycle$Plugin(){HttpRequestLifecycle$Plugin_instance=this,this.key_hfnmn2$_0=new AttributeKey("RequestLifecycle")}function Coroutine$HttpRequestLifecycle$Plugin$install$lambda(t,e,n,i,o){CoroutineImpl.call(this,o),this.$controller=i,this.exceptionState_0=6,this.local$closure$scope=t,this.local$executionContext=void 0,this.local$$receiver=e}function HttpRequestLifecycle$Plugin$install$lambda(t){return function(e,n,i,o){var r=new Coroutine$HttpRequestLifecycle$Plugin$install$lambda(t,e,n,this,i);return o?r:r.doResume(null)}}HttpRedirect.$metadata$={kind:Kind_CLASS,simpleName:"HttpRedirect",interfaces:[]},Object.defineProperty(HttpRequestLifecycle$Plugin.prototype,"key",{configurable:!0,get:function(){return this.key_hfnmn2$_0}}),HttpRequestLifecycle$Plugin.prototype.prepare_oh3mgy$$default=function(t){return new HttpRequestLifecycle},Coroutine$HttpRequestLifecycle$Plugin$install$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$HttpRequestLifecycle$Plugin$install$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$HttpRequestLifecycle$Plugin$install$lambda.prototype.constructor=Coroutine$HttpRequestLifecycle$Plugin$install$lambda,Coroutine$HttpRequestLifecycle$Plugin$install$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$executionContext=Job_0(this.local$$receiver.context.executionContext),attachToClientEngineJob(this.local$executionContext,ensureNotNull(this.local$closure$scope.coroutineContext.get_j3r2sn$(Job.Key))),this.exceptionState_0=3,this.local$$receiver.context.executionContext=this.local$executionContext,this.state_0=1,this.result_0=this.local$$receiver.proceed(this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:this.exceptionState_0=6,this.finallyPath_0=[2],this.state_0=4,this.$returnValue=this.result_0;continue;case 2:return this.$returnValue;case 3:this.finallyPath_0=[6],this.exceptionState_0=4;var t=this.exception_0;throw Kotlin.isType(t,Throwable)?(this.local$executionContext.completeExceptionally_tcv7n7$(t),t):t;case 4:this.exceptionState_0=6,this.local$executionContext.complete(),this.state_0=this.finallyPath_0.shift();continue;case 5:return;case 6:throw this.exception_0;default:throw this.state_0=6,new Error("State Machine Unreachable execution")}}catch(t){if(6===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HttpRequestLifecycle$Plugin.prototype.install_wojrb5$=function(t,e){e.requestPipeline.intercept_h71y74$(HttpRequestPipeline$Phases_getInstance().Before,HttpRequestLifecycle$Plugin$install$lambda(e))},HttpRequestLifecycle$Plugin.$metadata$={kind:Kind_OBJECT,simpleName:"Plugin",interfaces:[HttpClientPlugin]};var HttpRequestLifecycle$Plugin_instance=null;function HttpRequestLifecycle$Plugin_getInstance(){return null===HttpRequestLifecycle$Plugin_instance&&new HttpRequestLifecycle$Plugin,HttpRequestLifecycle$Plugin_instance}function attachToClientEngineJob$lambda(t){return function(e){return null!=e?cancel_2(t,"Engine failed",e):t.complete(),Unit}}function attachToClientEngineJob$lambda_0(t){return function(e){return t.dispose(),Unit}}function attachToClientEngineJob(t,e){var n=e.invokeOnCompletion_f05bi3$(attachToClientEngineJob$lambda(t));t.invokeOnCompletion_f05bi3$(attachToClientEngineJob$lambda_0(n))}function HttpRequestRetry$Plugin(){HttpRequestRetry$Plugin_instance=this,this.key_y2bw0w$_0=new AttributeKey("RetryFeature"),this.HttpRequestRetryEvent=new EventDefinition}HttpRequestLifecycle.$metadata$={kind:Kind_CLASS,simpleName:"HttpRequestLifecycle",interfaces:[]};var HttpRequestRetry$Plugin_instance=null,MaxRetriesPerRequestAttributeKey,ShouldRetryPerRequestAttributeKey,ShouldRetryOnExceptionPerRequestAttributeKey,ModifyRequestPerRequestAttributeKey,RetryDelayPerRequestAttributeKey;function Sender(){}function HttpSend(t){HttpSend$Plugin_getInstance(),void 0===t&&(t=20),this.maxSendCount_0=t,this.interceptors_0=ArrayList_init()}function HttpSend$Config(){this.maxSendCount=20}function HttpSend$Plugin(){HttpSend$Plugin_instance=this,this.key_uv5xfz$_0=new AttributeKey("HttpSend")}function Coroutine$HttpSend$Plugin$install$lambda(t,e,n,i,o,r){CoroutineImpl.call(this,r),this.$controller=o,this.exceptionState_0=1,this.local$closure$plugin=t,this.local$closure$scope=e,this.local$$receiver=n,this.local$content=i}function HttpSend$Plugin$install$lambda(t,e){return function(n,i,o,r){var s=new Coroutine$HttpSend$Plugin$install$lambda(t,e,n,i,this,o);return r?s:s.doResume(null)}}Sender.$metadata$={kind:Kind_INTERFACE,simpleName:"Sender",interfaces:[]},HttpSend$Config.$metadata$={kind:Kind_CLASS,simpleName:"Config",interfaces:[]},HttpSend.prototype.intercept_w12cfo$=function(t){throw IllegalStateException_init("This interceptors do not allow to intercept original call. Please use another overload and call `this.execute(request)` manually".toString())},HttpSend.prototype.intercept_aa8w70$=function(t){this.interceptors_0.add_11rb$(t)},Object.defineProperty(HttpSend$Plugin.prototype,"key",{configurable:!0,get:function(){return this.key_uv5xfz$_0}}),HttpSend$Plugin.prototype.prepare_oh3mgy$$default=function(t){var e=new HttpSend$Config;return t(e),new HttpSend(e.maxSendCount)},Coroutine$HttpSend$Plugin$install$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$HttpSend$Plugin$install$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$HttpSend$Plugin$install$lambda.prototype.constructor=Coroutine$HttpSend$Plugin$install$lambda,Coroutine$HttpSend$Plugin$install$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(!Kotlin.isType(this.local$content,OutgoingContent)){var t=trimMargin("\n|Fail to prepare request body for sending. \n|The body type is: "+Kotlin.getKClassFromExpression(this.local$content)+", with Content-Type: "+toString(contentType(this.local$$receiver.context))+".\n|\n|If you expect serialized body, please check that you have installed the corresponding plugin(like `ContentNegotiation`) and set `Content-Type` header.");throw IllegalStateException_init(t.toString())}var e=this.local$$receiver.context;if(null==this.local$content){e.body=content.NullBody;var n,i=reflect.JsType,o=getKClass(OutgoingContent);t:do{try{n=createKType(getKClass(OutgoingContent),[],!1)}catch(t){if(Kotlin.isType(t,Throwable)){n=null;break t}throw t}}while(0);e.bodyType=typeInfoImpl(i,o,n)}else if(Kotlin.isType(this.local$content,OutgoingContent))e.body=this.local$content,e.bodyType=null;else{e.body=this.local$content;var r,s=reflect.JsType,a=getKClass(OutgoingContent);t:do{try{r=createKType(getKClass(OutgoingContent),[],!1)}catch(t){if(Kotlin.isType(t,Throwable)){r=null;break t}throw t}}while(0);e.bodyType=typeInfoImpl(s,a,r)}var c,l={v:new HttpSend$DefaultSender(this.local$closure$plugin.maxSendCount_0,this.local$closure$scope)};for(c=downTo(get_lastIndex(this.local$closure$plugin.interceptors_0),0).iterator();c.hasNext();){var u=c.next(),h=this.local$closure$plugin.interceptors_0.get_za3lpa$(u);l.v=new HttpSend$InterceptedSender(h,l.v)}if(this.state_0=2,this.result_0=l.v.execute_s9rlw$(this.local$$receiver.context,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:var d=this.result_0;if(this.state_0=3,this.result_0=this.local$$receiver.proceedWith_trkh7z$(d,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 3:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HttpSend$Plugin.prototype.install_wojrb5$=function(t,e){e.requestPipeline.intercept_h71y74$(HttpRequestPipeline$Phases_getInstance().Send,HttpSend$Plugin$install$lambda(t,e))},HttpSend$Plugin.$metadata$={kind:Kind_OBJECT,simpleName:"Plugin",interfaces:[HttpClientPlugin]};var HttpSend$Plugin_instance=null;function HttpSend$Plugin_getInstance(){return null===HttpSend$Plugin_instance&&new HttpSend$Plugin,HttpSend$Plugin_instance}function HttpSend$InterceptedSender(t,e){this.interceptor_0=t,this.nextSender_0=e}function HttpSend$DefaultSender(t,e){this.maxSendCount_0=t,this.client_0=e,this.sentCount_0=0,this.currentCall_0=null}function Coroutine$execute_s9rlw$(t,e,n){CoroutineImpl.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$requestBuilder=e}function SendCountExceedException(t){IllegalStateException_init(t,this),this.name="SendCountExceedException"}function HttpTimeout(t,e,n){HttpTimeout$Plugin_getInstance(),this.requestTimeoutMillis_0=t,this.connectTimeoutMillis_0=e,this.socketTimeoutMillis_0=n}function HttpTimeout$HttpTimeoutCapabilityConfiguration(){HttpTimeout$HttpTimeoutCapabilityConfiguration$Companion_getInstance(),this._requestTimeoutMillis_0=L0,this._connectTimeoutMillis_0=L0,this._socketTimeoutMillis_0=L0}function HttpTimeout$HttpTimeoutCapabilityConfiguration$Companion(){HttpTimeout$HttpTimeoutCapabilityConfiguration$Companion_instance=this,this.key=new AttributeKey("TimeoutConfiguration")}HttpSend$InterceptedSender.prototype.execute_s9rlw$=function(t,e){return this.interceptor_0(this.nextSender_0,t,e)},HttpSend$InterceptedSender.$metadata$={kind:Kind_CLASS,simpleName:"InterceptedSender",interfaces:[Sender]},Coroutine$execute_s9rlw$.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$execute_s9rlw$.prototype=Object.create(CoroutineImpl.prototype),Coroutine$execute_s9rlw$.prototype.constructor=Coroutine$execute_s9rlw$,Coroutine$execute_s9rlw$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n;if(null!=(t=this.$this.currentCall_0)&&cancel(t),this.$this.sentCount_0>=this.$this.maxSendCount_0)throw new SendCountExceedException("Max send count "+this.$this.maxSendCount_0+" exceeded. Consider increasing the property maxSendCount if more is required.");if(this.$this.sentCount_0=this.$this.sentCount_0+1|0,this.state_0=2,this.result_0=this.$this.client_0.sendPipeline.execute_8pmvt0$(this.local$requestBuilder,this.local$requestBuilder.body,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:var i=this.result_0;if(null==(n=Kotlin.isType(e=i,HttpClientCall)?e:null))throw IllegalStateException_init(("Failed to execute send pipeline. Expected [HttpClientCall], but received "+i.toString()).toString());var o=n;return this.$this.currentCall_0=o,o;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HttpSend$DefaultSender.prototype.execute_s9rlw$=function(t,e,n){var i=new Coroutine$execute_s9rlw$(this,t,e);return n?i:i.doResume(null)},HttpSend$DefaultSender.$metadata$={kind:Kind_CLASS,simpleName:"DefaultSender",interfaces:[Sender]},HttpSend.$metadata$={kind:Kind_CLASS,simpleName:"HttpSend",interfaces:[]},SendCountExceedException.$metadata$={kind:Kind_CLASS,simpleName:"SendCountExceedException",interfaces:[IllegalStateException]},Object.defineProperty(HttpTimeout$HttpTimeoutCapabilityConfiguration.prototype,"requestTimeoutMillis",{configurable:!0,get:function(){return this._requestTimeoutMillis_0},set:function(t){this._requestTimeoutMillis_0=this.checkTimeoutValue_0(t)}}),Object.defineProperty(HttpTimeout$HttpTimeoutCapabilityConfiguration.prototype,"connectTimeoutMillis",{configurable:!0,get:function(){return this._connectTimeoutMillis_0},set:function(t){this._connectTimeoutMillis_0=this.checkTimeoutValue_0(t)}}),Object.defineProperty(HttpTimeout$HttpTimeoutCapabilityConfiguration.prototype,"socketTimeoutMillis",{configurable:!0,get:function(){return this._socketTimeoutMillis_0},set:function(t){this._socketTimeoutMillis_0=this.checkTimeoutValue_0(t)}}),HttpTimeout$HttpTimeoutCapabilityConfiguration.prototype.build_8be2vx$=function(){return new HttpTimeout(this.requestTimeoutMillis,this.connectTimeoutMillis,this.socketTimeoutMillis)},HttpTimeout$HttpTimeoutCapabilityConfiguration.prototype.checkTimeoutValue_0=function(t){if(!(null==t||t.toNumber()>0))throw IllegalArgumentException_init("Only positive timeout values are allowed, for infinite timeout use HttpTimeout.INFINITE_TIMEOUT_MS".toString());return t},HttpTimeout$HttpTimeoutCapabilityConfiguration.prototype.equals=function(t){var e;return!!(this===t||null!=t&&null!=(e=Kotlin.getKClassFromExpression(this))&&e.equals(Kotlin.getKClassFromExpression(t))&&(Kotlin.isType(t,HttpTimeout$HttpTimeoutCapabilityConfiguration)||throwCCE(),equals(this._requestTimeoutMillis_0,t._requestTimeoutMillis_0)&&equals(this._connectTimeoutMillis_0,t._connectTimeoutMillis_0)&&equals(this._socketTimeoutMillis_0,t._socketTimeoutMillis_0)))},HttpTimeout$HttpTimeoutCapabilityConfiguration.prototype.hashCode=function(){var t,e,n,i,o,r,s=null!=(e=null!=(t=this._requestTimeoutMillis_0)?hashCode(t):null)?e:0;return s=(31*(s=(31*s|0)+(null!=(i=null!=(n=this._connectTimeoutMillis_0)?hashCode(n):null)?i:0)|0)|0)+(null!=(r=null!=(o=this._socketTimeoutMillis_0)?hashCode(o):null)?r:0)|0},HttpTimeout$HttpTimeoutCapabilityConfiguration$Companion.$metadata$={kind:Kind_OBJECT,simpleName:"Companion",interfaces:[]};var HttpTimeout$HttpTimeoutCapabilityConfiguration$Companion_instance=null;function HttpTimeout$HttpTimeoutCapabilityConfiguration$Companion_getInstance(){return null===HttpTimeout$HttpTimeoutCapabilityConfiguration$Companion_instance&&new HttpTimeout$HttpTimeoutCapabilityConfiguration$Companion,HttpTimeout$HttpTimeoutCapabilityConfiguration$Companion_instance}function HttpTimeout$HttpTimeout$HttpTimeoutCapabilityConfiguration_init(t,e,n,i){return void 0===t&&(t=null),void 0===e&&(e=null),void 0===n&&(n=null),i=i||Object.create(HttpTimeout$HttpTimeoutCapabilityConfiguration.prototype),HttpTimeout$HttpTimeoutCapabilityConfiguration.call(i),i.requestTimeoutMillis=t,i.connectTimeoutMillis=e,i.socketTimeoutMillis=n,i}function HttpTimeout$Plugin(){HttpTimeout$Plugin_instance=this,this.key_9he6wm$_0=new AttributeKey("TimeoutPlugin"),this.INFINITE_TIMEOUT_MS=Long$Companion$MAX_VALUE}function Coroutine$HttpTimeout$Plugin$install$lambda$lambda$lambda(t,e,n,i,o,r){CoroutineImpl.call(this,r),this.$controller=o,this.exceptionState_0=1,this.local$closure$requestTimeout=t,this.local$closure$context=e,this.local$closure$executionContext=n}function HttpTimeout$Plugin$install$lambda$lambda$lambda(t,e,n){return function(i,o,r){var s=new Coroutine$HttpTimeout$Plugin$install$lambda$lambda$lambda(t,e,n,i,this,o);return r?s:s.doResume(null)}}function HttpTimeout$Plugin$install$lambda$lambda$lambda_0(t){return function(e){return t.cancel_x5z25k$(),Unit}}function Coroutine$HttpTimeout$Plugin$install$lambda(t,e,n,i,o,r,s){CoroutineImpl.call(this,s),this.$controller=r,this.exceptionState_0=1,this.local$closure$plugin=t,this.local$this$HttpTimeout$=e,this.local$closure$scope=n,this.local$$receiver=i}function HttpTimeout$Plugin$install$lambda(t,e,n){return function(i,o,r,s){var a=new Coroutine$HttpTimeout$Plugin$install$lambda(t,e,n,i,o,this,r);return s?a:a.doResume(null)}}HttpTimeout$HttpTimeoutCapabilityConfiguration.$metadata$={kind:Kind_CLASS,simpleName:"HttpTimeoutCapabilityConfiguration",interfaces:[]},HttpTimeout.prototype.hasNotNullTimeouts_0=function(){return null!=this.requestTimeoutMillis_0||null!=this.connectTimeoutMillis_0||null!=this.socketTimeoutMillis_0},Object.defineProperty(HttpTimeout$Plugin.prototype,"key",{configurable:!0,get:function(){return this.key_9he6wm$_0}}),HttpTimeout$Plugin.prototype.prepare_oh3mgy$$default=function(t){var e=HttpTimeout$HttpTimeout$HttpTimeoutCapabilityConfiguration_init();return t(e),e.build_8be2vx$()},Coroutine$HttpTimeout$Plugin$install$lambda$lambda$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$HttpTimeout$Plugin$install$lambda$lambda$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$HttpTimeout$Plugin$install$lambda$lambda$lambda.prototype.constructor=Coroutine$HttpTimeout$Plugin$install$lambda$lambda$lambda,Coroutine$HttpTimeout$Plugin$install$lambda$lambda$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=delay(this.local$closure$requestTimeout,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:var t=HttpRequestTimeoutException_init(this.local$closure$context);return cancel_2(this.local$closure$executionContext,ensureNotNull(t.message),t),Unit;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$HttpTimeout$Plugin$install$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$HttpTimeout$Plugin$install$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$HttpTimeout$Plugin$install$lambda.prototype.constructor=Coroutine$HttpTimeout$Plugin$install$lambda,Coroutine$HttpTimeout$Plugin$install$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(isWebsocket(this.local$$receiver.context.url.protocol)||Kotlin.isType(this.local$$receiver.context.body,ClientUpgradeContent))return;var t,e=this.local$$receiver.context.getCapabilityOrNull_i25mbv$(HttpTimeout$Plugin_getInstance());if(null==e&&this.local$closure$plugin.hasNotNullTimeouts_0()&&(e=HttpTimeout$HttpTimeout$HttpTimeoutCapabilityConfiguration_init(),this.local$$receiver.context.setCapability_wfl2px$(HttpTimeout$Plugin_getInstance(),e)),null!=e){var n=e,i=this.local$closure$plugin,o=this.local$this$HttpTimeout$,r=this.local$closure$scope;t:do{var s,a,c,l,u=this.local$$receiver.context;n.connectTimeoutMillis=null!=(s=n.connectTimeoutMillis)?s:i.connectTimeoutMillis_0,n.socketTimeoutMillis=null!=(a=n.socketTimeoutMillis)?a:i.socketTimeoutMillis_0,n.requestTimeoutMillis=null!=(c=n.requestTimeoutMillis)?c:i.requestTimeoutMillis_0;var h=null!=(l=n.requestTimeoutMillis)?l:i.requestTimeoutMillis_0;if(null==h||equals(h,o.INFINITE_TIMEOUT_MS))break t;var d=u.executionContext,p=launch(r,void 0,void 0,HttpTimeout$Plugin$install$lambda$lambda$lambda(h,u,d));u.executionContext.invokeOnCompletion_f05bi3$(HttpTimeout$Plugin$install$lambda$lambda$lambda_0(p))}while(0);t=n}else t=null;return t;case 1:throw this.exception_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HttpTimeout$Plugin.prototype.install_wojrb5$=function(t,e){e.requestPipeline.intercept_h71y74$(HttpRequestPipeline$Phases_getInstance().Before,HttpTimeout$Plugin$install$lambda(t,this,e))},HttpTimeout$Plugin.$metadata$={kind:Kind_OBJECT,simpleName:"Plugin",interfaces:[HttpClientEngineCapability,HttpClientPlugin]};var HttpTimeout$Plugin_instance=null;function HttpTimeout$Plugin_getInstance(){return null===HttpTimeout$Plugin_instance&&new HttpTimeout$Plugin,HttpTimeout$Plugin_instance}function timeout(t,e){var n=HttpTimeout$Plugin_getInstance(),i=HttpTimeout$HttpTimeout$HttpTimeoutCapabilityConfiguration_init();e(i),t.setCapability_wfl2px$(n,i)}function HttpRequestTimeoutException(t,e){IOException_init("Request timeout has expired [url="+t+", request_timeout="+(null!=e?e:"unknown").toString()+" ms]",this),this.name="HttpRequestTimeoutException"}function HttpRequestTimeoutException_init(t,e){var n;return e=e||Object.create(HttpRequestTimeoutException.prototype),HttpRequestTimeoutException.call(e,t.url.buildString(),null!=(n=t.getCapabilityOrNull_i25mbv$(HttpTimeout$Plugin_getInstance()))?n.requestTimeoutMillis:null),e}function UserAgent$Plugin(){UserAgent$Plugin_instance=this,this.key_vlyr9n$_0=new AttributeKey("UserAgent")}HttpTimeout.$metadata$={kind:Kind_CLASS,simpleName:"HttpTimeout",interfaces:[]},HttpRequestTimeoutException.$metadata$={kind:Kind_CLASS,simpleName:"HttpRequestTimeoutException",interfaces:[IOException]};var UserAgent$Plugin_instance=null,CacheControl_instance=null;function HttpCache$Companion(){HttpCache$Companion_instance=this,this.key_p083cc$_0=new AttributeKey("HttpCache"),this.HttpResponseFromCache=new EventDefinition}var HttpCache$Companion_instance=null,ValidateStatus$ShouldValidate_instance,ValidateStatus$ShouldNotValidate_instance,ValidateStatus$ShouldWarn_instance,DisabledCacheStorage_instance=null,HttpCacheStorage$Companion_instance=null;function HttpCookies$Companion(){HttpCookies$Companion_instance=this,this.key_6q2kl6$_0=new AttributeKey("HttpCookies")}var HttpCookies$Companion_instance=null;function wrapWithContent_1(t,e){return new DelegatedResponse(t.call,e,t)}function DelegatedResponse(t,e,n){HttpResponse.call(this),this.call_bpc16b$_0=t,this.content_if43bk$_0=e,this.origin_0=n,this.coroutineContext_jo80q4$_0=this.origin_0.coroutineContext}function ResponseObserver$Plugin(){ResponseObserver$Plugin_instance=this,this.key_8ecns0$_0=new AttributeKey("BodyInterceptor")}Object.defineProperty(DelegatedResponse.prototype,"call",{get:function(){return this.call_bpc16b$_0}}),Object.defineProperty(DelegatedResponse.prototype,"content",{get:function(){return this.content_if43bk$_0}}),Object.defineProperty(DelegatedResponse.prototype,"coroutineContext",{configurable:!0,get:function(){return this.coroutineContext_jo80q4$_0}}),Object.defineProperty(DelegatedResponse.prototype,"status",{configurable:!0,get:function(){return this.origin_0.status}}),Object.defineProperty(DelegatedResponse.prototype,"version",{configurable:!0,get:function(){return this.origin_0.version}}),Object.defineProperty(DelegatedResponse.prototype,"requestTime",{configurable:!0,get:function(){return this.origin_0.requestTime}}),Object.defineProperty(DelegatedResponse.prototype,"responseTime",{configurable:!0,get:function(){return this.origin_0.responseTime}}),Object.defineProperty(DelegatedResponse.prototype,"headers",{configurable:!0,get:function(){return this.origin_0.headers}}),DelegatedResponse.$metadata$={kind:Kind_CLASS,simpleName:"DelegatedResponse",interfaces:[HttpResponse]};var ResponseObserver$Plugin_instance=null,WEBSOCKET_VERSION,NONCE_SIZE,REQUEST_EXTENSIONS_KEY;function ClientWebSocketSession(){}function DefaultClientWebSocketSession(t,e){this.call_isp37v$_0=t,this.$delegate_qgt999$_0=e}function DelegatingClientWebSocketSession(t,e){this.call_763etk$_0=t,this.$delegate_m50m56$_0=e}function get_converter(t){var e;return null!=(e=pluginOrNull(t.call.client,WebSockets$Plugin_getInstance()))?e.contentConverter:null}function WebSocketContent(){ClientUpgradeContent.call(this);var t=StringBuilder_init(),e=generateNonce(16);t.append_pdl1vj$(encodeBase64(e)),this.nonce_0=t.toString();var n=new HeadersBuilder;n.append_puj7f4$(http.HttpHeaders.Upgrade,"websocket"),n.append_puj7f4$(http.HttpHeaders.Connection,"upgrade"),n.append_puj7f4$(http.HttpHeaders.SecWebSocketKey,this.nonce_0),n.append_puj7f4$(http.HttpHeaders.SecWebSocketVersion,WEBSOCKET_VERSION),this.headers_81bwsu$_0=n.build()}function WebSocketCapability(){WebSocketCapability_instance=this}ClientWebSocketSession.$metadata$={kind:Kind_INTERFACE,simpleName:"ClientWebSocketSession",interfaces:[WebSocketSession]},Object.defineProperty(DefaultClientWebSocketSession.prototype,"call",{get:function(){return this.call_isp37v$_0}}),Object.defineProperty(DefaultClientWebSocketSession.prototype,"closeReason",{configurable:!0,get:function(){return this.$delegate_qgt999$_0.closeReason}}),Object.defineProperty(DefaultClientWebSocketSession.prototype,"coroutineContext",{configurable:!0,get:function(){return this.$delegate_qgt999$_0.coroutineContext}}),Object.defineProperty(DefaultClientWebSocketSession.prototype,"extensions",{configurable:!0,get:function(){return this.$delegate_qgt999$_0.extensions}}),Object.defineProperty(DefaultClientWebSocketSession.prototype,"incoming",{configurable:!0,get:function(){return this.$delegate_qgt999$_0.incoming}}),Object.defineProperty(DefaultClientWebSocketSession.prototype,"masking",{configurable:!0,get:function(){return this.$delegate_qgt999$_0.masking},set:function(t){this.$delegate_qgt999$_0.masking=t}}),Object.defineProperty(DefaultClientWebSocketSession.prototype,"maxFrameSize",{configurable:!0,get:function(){return this.$delegate_qgt999$_0.maxFrameSize},set:function(t){this.$delegate_qgt999$_0.maxFrameSize=t}}),Object.defineProperty(DefaultClientWebSocketSession.prototype,"outgoing",{configurable:!0,get:function(){return this.$delegate_qgt999$_0.outgoing}}),Object.defineProperty(DefaultClientWebSocketSession.prototype,"pingIntervalMillis",{configurable:!0,get:function(){return this.$delegate_qgt999$_0.pingIntervalMillis},set:function(t){this.$delegate_qgt999$_0.pingIntervalMillis=t}}),Object.defineProperty(DefaultClientWebSocketSession.prototype,"timeoutMillis",{configurable:!0,get:function(){return this.$delegate_qgt999$_0.timeoutMillis},set:function(t){this.$delegate_qgt999$_0.timeoutMillis=t}}),DefaultClientWebSocketSession.prototype.flush=function(t){return this.$delegate_qgt999$_0.flush(t)},DefaultClientWebSocketSession.prototype.send_q1ubw4$=function(t,e){return this.$delegate_qgt999$_0.send_q1ubw4$(t,e)},DefaultClientWebSocketSession.prototype.start_wwqcjq$$default=function(t){return this.$delegate_qgt999$_0.start_wwqcjq$$default(t)},DefaultClientWebSocketSession.prototype.terminate=function(){return this.$delegate_qgt999$_0.terminate()},DefaultClientWebSocketSession.$metadata$={kind:Kind_CLASS,simpleName:"DefaultClientWebSocketSession",interfaces:[DefaultWebSocketSession,ClientWebSocketSession]},Object.defineProperty(DelegatingClientWebSocketSession.prototype,"call",{get:function(){return this.call_763etk$_0}}),Object.defineProperty(DelegatingClientWebSocketSession.prototype,"coroutineContext",{configurable:!0,get:function(){return this.$delegate_m50m56$_0.coroutineContext}}),Object.defineProperty(DelegatingClientWebSocketSession.prototype,"extensions",{configurable:!0,get:function(){return this.$delegate_m50m56$_0.extensions}}),Object.defineProperty(DelegatingClientWebSocketSession.prototype,"incoming",{configurable:!0,get:function(){return this.$delegate_m50m56$_0.incoming}}),Object.defineProperty(DelegatingClientWebSocketSession.prototype,"masking",{configurable:!0,get:function(){return this.$delegate_m50m56$_0.masking},set:function(t){this.$delegate_m50m56$_0.masking=t}}),Object.defineProperty(DelegatingClientWebSocketSession.prototype,"maxFrameSize",{configurable:!0,get:function(){return this.$delegate_m50m56$_0.maxFrameSize},set:function(t){this.$delegate_m50m56$_0.maxFrameSize=t}}),Object.defineProperty(DelegatingClientWebSocketSession.prototype,"outgoing",{configurable:!0,get:function(){return this.$delegate_m50m56$_0.outgoing}}),DelegatingClientWebSocketSession.prototype.flush=function(t){return this.$delegate_m50m56$_0.flush(t)},DelegatingClientWebSocketSession.prototype.send_q1ubw4$=function(t,e){return this.$delegate_m50m56$_0.send_q1ubw4$(t,e)},DelegatingClientWebSocketSession.prototype.terminate=function(){return this.$delegate_m50m56$_0.terminate()},DelegatingClientWebSocketSession.$metadata$={kind:Kind_CLASS,simpleName:"DelegatingClientWebSocketSession",interfaces:[ClientWebSocketSession,WebSocketSession]},defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.plugins.websocket.sendSerialized_6ltcma$",wrapFunction((function(){var t=_.io.ktor.client.plugins.websocket.get_converter_vw5opa$,e=_.$$importsForInline$$["ktor-ktor-serialization-js-legacy"].io.ktor.serialization.WebsocketConverterNotFoundException,n=_.$$importsForInline$$["ktor-ktor-serialization-js-legacy"].io.ktor.serialization.suitableCharset_4q0pk1$,i=Kotlin.getReifiedTypeParameterKType,o=_.$$importsForInline$$["ktor-ktor-websocket-serialization-js-legacy"].$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect,r=Kotlin.getKClass,s=_.$$importsForInline$$["ktor-ktor-websocket-serialization-js-legacy"].$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect.typeInfoImpl_1lvkm8$,a=Error;return function(c,l,u,h,d){var p;if(null==(p=t(u)))throw new e("No converter was found for websocket");var _,m=p,f=n(u.call.request.headers),g=o.JsType,$=r(c);t:do{try{_=i(c)}catch(t){if(Kotlin.isType(t,a)){_=null;break t}throw t}}while(0);Kotlin.suspendCall(m.serializeNullable_rh40qx$(f,s(g,$,_),h,Kotlin.coroutineReceiver()));var E=Kotlin.coroutineResult(Kotlin.coroutineReceiver());Kotlin.suspendCall(u.outgoing.send_11rb$(E,Kotlin.coroutineReceiver()))}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.plugins.websocket.receiveDeserialized_8j5n8k$",wrapFunction((function(){var t=_.io.ktor.client.plugins.websocket.get_converter_vw5opa$,e=_.$$importsForInline$$["ktor-ktor-serialization-js-legacy"].io.ktor.serialization.WebsocketConverterNotFoundException,n=_.$$importsForInline$$["ktor-ktor-serialization-js-legacy"].io.ktor.serialization.suitableCharset_4q0pk1$,i=Kotlin.getReifiedTypeParameterKType,o=Kotlin.throwCCE,r=_.$$importsForInline$$["ktor-ktor-websocket-serialization-js-legacy"].$$importsForInline$$["ktor-ktor-serialization-js-legacy"].io.ktor.serialization.WebsocketDeserializeException,s=Kotlin.getKClass,a=Kotlin.toString,c=_.$$importsForInline$$["ktor-ktor-websocket-serialization-js-legacy"].$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect,l=_.$$importsForInline$$["ktor-ktor-websocket-serialization-js-legacy"].$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect.typeInfoImpl_1lvkm8$,u=Error;return function(h,d,p,_){var m,f;if(null==(m=t(p)))throw new e("No converter was found for websocket");var g=m,$=n(p.call.request.headers);t:do{var E;Kotlin.suspendCall(p.incoming.receive(Kotlin.coroutineReceiver()));var y=Kotlin.coroutineResult(Kotlin.coroutineReceiver());if(!g.isApplicable_q1ubw4$(y))throw new r("Converter doesn't support frame type "+y.frameType.name,void 0,y);var b,S=c.JsType,v=s(h);e:do{try{b=i(h)}catch(t){if(Kotlin.isType(t,u)){b=null;break e}throw t}}while(0);var C=l(S,v,b);Kotlin.suspendCall(g.deserialize_v0czzf$($,C,y,Kotlin.coroutineReceiver()));var N=Kotlin.coroutineResult(Kotlin.coroutineReceiver());if(d(N)){Kotlin.setCoroutineResult(N,Kotlin.coroutineReceiver());break t}if(null==N){if(!0===(null!=(E=C.kotlinType)?E.isMarkedNullable:null)){Kotlin.setCoroutineResult(null,Kotlin.coroutineReceiver());break t}throw new r("Frame has null content",void 0,y)}throw new r("Can't deserialize value : expected value of type "+a(s(h).simpleName)+", got "+a(Kotlin.getKClassFromExpression(N).simpleName),void 0,y)}while(0);return d(f=Kotlin.coroutineResult(Kotlin.coroutineReceiver()))?f:o()}}))),Object.defineProperty(WebSocketContent.prototype,"headers",{configurable:!0,get:function(){return this.headers_81bwsu$_0}}),WebSocketContent.prototype.verify_fkh4uy$=function(t){var e;if(null==(e=t.get_61zpoe$(http.HttpHeaders.SecWebSocketAccept)))throw IllegalStateException_init("Server should specify header Sec-WebSocket-Accept".toString());var n=e,i=websocketServerAccept(this.nonce_0);if(!equals(i,n))throw IllegalStateException_init(("Failed to verify server accept header. Expected: "+i+", received: "+n).toString())},WebSocketContent.prototype.toString=function(){return"WebSocketContent"},WebSocketContent.$metadata$={kind:Kind_CLASS,simpleName:"WebSocketContent",interfaces:[ClientUpgradeContent]},WebSocketCapability.prototype.toString=function(){return"WebSocketCapability"},WebSocketCapability.$metadata$={kind:Kind_OBJECT,simpleName:"WebSocketCapability",interfaces:[HttpClientEngineCapability]};var WebSocketCapability_instance=null;function WebSocketCapability_getInstance(){return null===WebSocketCapability_instance&&new WebSocketCapability,WebSocketCapability_instance}function WebSocketExtensionsCapability(){WebSocketExtensionsCapability_instance=this}WebSocketExtensionsCapability.prototype.toString=function(){return"WebSocketExtensionsCapability"},WebSocketExtensionsCapability.$metadata$={kind:Kind_OBJECT,simpleName:"WebSocketExtensionsCapability",interfaces:[HttpClientEngineCapability]};var WebSocketExtensionsCapability_instance=null;function WebSocketExtensionsCapability_getInstance(){return null===WebSocketExtensionsCapability_instance&&new WebSocketExtensionsCapability,WebSocketExtensionsCapability_instance}function WebSockets(t,e,n,i){WebSockets$Plugin_getInstance(),void 0===i&&(i=null),this.pingInterval=t,this.maxFrameSize=e,this.extensionsConfig_0=n,this.contentConverter=i}function WebSockets$Config(){this.extensionsConfig_8be2vx$=new WebSocketExtensionsConfig,this.pingInterval=L_1,this.maxFrameSize=L2147483647,this.contentConverter=null}function WebSockets$Plugin(){WebSockets$Plugin_instance=this,this.key_duloku$_0=new AttributeKey("Websocket")}function Coroutine$WebSockets$Plugin$install$lambda(t,e,n,i,o,r){CoroutineImpl.call(this,r),this.$controller=o,this.exceptionState_0=1,this.local$closure$extensionsSupported=t,this.local$closure$plugin=e,this.local$$receiver=n}function WebSockets$Plugin$install$lambda(t,e){return function(n,i,o,r){var s=new Coroutine$WebSockets$Plugin$install$lambda(t,e,n,i,this,o);return r?s:s.doResume(null)}}function Coroutine$WebSockets$Plugin$install$lambda_0(t,e,n,i,o,r){CoroutineImpl.call(this,r),this.$controller=o,this.exceptionState_0=1,this.local$closure$plugin=t,this.local$closure$extensionsSupported=e,this.local$info=void 0,this.local$session=void 0,this.local$$receiver=n,this.local$f=i}function WebSockets$Plugin$install$lambda_0(t,e){return function(n,i,o,r){var s=new Coroutine$WebSockets$Plugin$install$lambda_0(t,e,n,i,this,o);return r?s:s.doResume(null)}}WebSockets.prototype.installExtensions_0=function(t){var e=this.extensionsConfig_0.build();t.attributes.put_uuntuo$(REQUEST_EXTENSIONS_KEY,e);var n,i=ArrayList_init();for(n=e.iterator();n.hasNext();){var o=n.next().protocols;addAll(i,o)}var r=i;this.addNegotiatedProtocols_0(t,r)},WebSockets.prototype.completeNegotiation_0=function(t){var e,n,i,o=null!=(n=null!=(e=t.response.headers.get_61zpoe$(http.HttpHeaders.SecWebSocketExtensions))?parseWebSocketExtensions(e):null)?n:emptyList(),r=t.attributes.get_yzaw86$(REQUEST_EXTENSIONS_KEY),s=ArrayList_init();for(i=r.iterator();i.hasNext();){var a=i.next();a.clientNegotiation_wklug5$(o)&&s.add_11rb$(a)}return s},WebSockets.prototype.addNegotiatedProtocols_0=function(t,e){if(!e.isEmpty()){var n=joinToString(e,";");header(t,http.HttpHeaders.SecWebSocketExtensions,n)}},WebSockets.prototype.convertSessionToDefault_7ikcz7$=function(t){if(Kotlin.isType(t,DefaultWebSocketSession))return t;var e=DefaultWebSocketSession_0(t,this.pingInterval,this.pingInterval.multiply(Kotlin.Long.fromInt(2)));return e.maxFrameSize=this.maxFrameSize,e},WebSockets$Config.prototype.extensions_rm8exh$=function(t){t(this.extensionsConfig_8be2vx$)},WebSockets$Config.$metadata$={kind:Kind_CLASS,simpleName:"Config",interfaces:[]},Object.defineProperty(WebSockets$Plugin.prototype,"key",{configurable:!0,get:function(){return this.key_duloku$_0}}),WebSockets$Plugin.prototype.prepare_oh3mgy$$default=function(t){var e=new WebSockets$Config;t(e);var n=e;return new WebSockets(n.pingInterval,n.maxFrameSize,n.extensionsConfig_8be2vx$,n.contentConverter)},Coroutine$WebSockets$Plugin$install$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$WebSockets$Plugin$install$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$WebSockets$Plugin$install$lambda.prototype.constructor=Coroutine$WebSockets$Plugin$install$lambda,Coroutine$WebSockets$Plugin$install$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(isWebsocket(this.local$$receiver.context.url.protocol)){this.state_0=2;continue}return;case 1:throw this.exception_0;case 2:if(this.local$$receiver.context.setCapability_wfl2px$(WebSocketCapability_getInstance(),Unit),this.local$closure$extensionsSupported&&this.local$closure$plugin.installExtensions_0(this.local$$receiver.context),this.state_0=3,this.result_0=this.local$$receiver.proceedWith_trkh7z$(new WebSocketContent,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 3:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$WebSockets$Plugin$install$lambda_0.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$WebSockets$Plugin$install$lambda_0.prototype=Object.create(CoroutineImpl.prototype),Coroutine$WebSockets$Plugin$install$lambda_0.prototype.constructor=Coroutine$WebSockets$Plugin$install$lambda_0,Coroutine$WebSockets$Plugin$install$lambda_0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(this.local$info=this.local$f.component1(),this.local$session=this.local$f.component2(),Kotlin.isType(this.local$session,WebSocketSession)){this.state_0=2;continue}return;case 1:throw this.exception_0;case 2:if(equals(this.local$info.type,getKClass(DefaultClientWebSocketSession))){var e=this.local$closure$plugin.convertSessionToDefault_7ikcz7$(this.local$session),n=new DefaultClientWebSocketSession(this.local$$receiver.context,e),i=this.local$closure$extensionsSupported?this.local$closure$plugin.completeNegotiation_0(this.local$$receiver.context):emptyList();n.start_wwqcjq$(i),t=n}else t=new DelegatingClientWebSocketSession(this.local$$receiver.context,this.local$session);var o=t,r=new HttpResponseContainer(this.local$info,o);if(this.state_0=3,this.result_0=this.local$$receiver.proceedWith_trkh7z$(r,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 3:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},WebSockets$Plugin.prototype.install_wojrb5$=function(t,e){var n=e.engine.supportedCapabilities.contains_11rb$(WebSocketExtensionsCapability_getInstance());e.requestPipeline.intercept_h71y74$(HttpRequestPipeline$Phases_getInstance().Render,WebSockets$Plugin$install$lambda(n,t)),e.responsePipeline.intercept_h71y74$(HttpResponsePipeline$Phases_getInstance().Transform,WebSockets$Plugin$install$lambda_0(t,n))},WebSockets$Plugin.$metadata$={kind:Kind_OBJECT,simpleName:"Plugin",interfaces:[HttpClientPlugin]};var WebSockets$Plugin_instance=null;function WebSockets$Plugin_getInstance(){return null===WebSockets$Plugin_instance&&new WebSockets$Plugin,WebSockets$Plugin_instance}function WebSocketException(t){IllegalStateException_init(t,this),this.name="WebSocketException"}function ClientUpgradeContent(){OutgoingContent$NoContent.call(this),this.content_1mwwgv$_xt2h6t$_0=lazy(ClientUpgradeContent$content$lambda)}function Coroutine$pipeTo_h3x4ir$(t,e,n){CoroutineImpl.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$output=e}function ClientUpgradeContent$content$lambda(){return ByteChannel()}function DefaultHttpRequest(t,e){this.call_bo7spw$_0=t,this.method_c5x7eh$_0=e.method,this.url_9j6cnp$_0=e.url,this.content_jw4yw1$_0=e.body,this.headers_atwsac$_0=e.headers,this.attributes_el41s3$_0=e.attributes}function HttpRequest_0(){}function HttpRequestBuilder(){HttpRequestBuilder$Companion_getInstance(),this.url=new URLBuilder_0,this.method=HttpMethod.Companion.Get,this.headers_nor9ye$_0=new HeadersBuilder,this.body_ts5xt2$_0=EmptyContent_getInstance(),this.executionContext_h6ms6p$_0=SupervisorJob(),this.attributes=Attributes(!0)}function HttpRequestBuilder$setCapability$lambda(){return LinkedHashMap_init()}function HttpRequestBuilder$Companion(){HttpRequestBuilder$Companion_instance=this}WebSockets.$metadata$={kind:Kind_CLASS,simpleName:"WebSockets",interfaces:[]},WebSocketException.$metadata$={kind:Kind_CLASS,simpleName:"WebSocketException",interfaces:[IllegalStateException]},Object.defineProperty(ClientUpgradeContent.prototype,"content_1mwwgv$_0",{configurable:!0,get:function(){return this.content_1mwwgv$_xt2h6t$_0.value}}),Object.defineProperty(ClientUpgradeContent.prototype,"output",{configurable:!0,get:function(){return this.content_1mwwgv$_0}}),Coroutine$pipeTo_h3x4ir$.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$pipeTo_h3x4ir$.prototype=Object.create(CoroutineImpl.prototype),Coroutine$pipeTo_h3x4ir$.prototype.constructor=Coroutine$pipeTo_h3x4ir$,Coroutine$pipeTo_h3x4ir$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=copyAndClose(this.$this.content_1mwwgv$_0,this.local$output,void 0,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ClientUpgradeContent.prototype.pipeTo_h3x4ir$=function(t,e,n){var i=new Coroutine$pipeTo_h3x4ir$(this,t,e);return n?i:i.doResume(null)},ClientUpgradeContent.$metadata$={kind:Kind_CLASS,simpleName:"ClientUpgradeContent",interfaces:[OutgoingContent$NoContent]},Object.defineProperty(DefaultHttpRequest.prototype,"call",{get:function(){return this.call_bo7spw$_0}}),Object.defineProperty(DefaultHttpRequest.prototype,"coroutineContext",{configurable:!0,get:function(){return this.call.coroutineContext}}),Object.defineProperty(DefaultHttpRequest.prototype,"method",{configurable:!0,get:function(){return this.method_c5x7eh$_0}}),Object.defineProperty(DefaultHttpRequest.prototype,"url",{configurable:!0,get:function(){return this.url_9j6cnp$_0}}),Object.defineProperty(DefaultHttpRequest.prototype,"content",{configurable:!0,get:function(){return this.content_jw4yw1$_0}}),Object.defineProperty(DefaultHttpRequest.prototype,"headers",{configurable:!0,get:function(){return this.headers_atwsac$_0}}),Object.defineProperty(DefaultHttpRequest.prototype,"attributes",{configurable:!0,get:function(){return this.attributes_el41s3$_0}}),DefaultHttpRequest.$metadata$={kind:Kind_CLASS,simpleName:"DefaultHttpRequest",interfaces:[HttpRequest_0]},Object.defineProperty(HttpRequest_0.prototype,"coroutineContext",{configurable:!0,get:function(){return this.call.coroutineContext}}),HttpRequest_0.$metadata$={kind:Kind_INTERFACE,simpleName:"HttpRequest",interfaces:[CoroutineScope,HttpMessage]},Object.defineProperty(HttpRequestBuilder.prototype,"headers",{configurable:!0,get:function(){return this.headers_nor9ye$_0}}),Object.defineProperty(HttpRequestBuilder.prototype,"body",{configurable:!0,get:function(){return this.body_ts5xt2$_0},set:function(t){this.body_ts5xt2$_0=t}}),Object.defineProperty(HttpRequestBuilder.prototype,"bodyType",{configurable:!0,get:function(){return this.attributes.getOrNull_yzaw86$(BodyTypeAttributeKey)},set:function(t){null!=t?this.attributes.put_uuntuo$(BodyTypeAttributeKey,t):this.attributes.remove_yzaw86$(BodyTypeAttributeKey)}}),Object.defineProperty(HttpRequestBuilder.prototype,"executionContext",{configurable:!0,get:function(){return this.executionContext_h6ms6p$_0},set:function(t){this.executionContext_h6ms6p$_0=t}}),HttpRequestBuilder.prototype.url_6yzzjr$=function(t){t(this.url,this.url)},HttpRequestBuilder.prototype.build=function(){var t,e,n,i,o;if(t=this.url.build(),e=this.method,n=this.headers.build(),null==(o=Kotlin.isType(i=this.body,OutgoingContent)?i:null))throw IllegalStateException_init(("No request transformation found: "+this.body.toString()).toString());return new HttpRequestData(t,e,n,o,this.executionContext,this.attributes)},HttpRequestBuilder.prototype.setAttributes_yhh5ns$=function(t){t(this.attributes)},HttpRequestBuilder.prototype.takeFromWithExecutionContext_s9rlw$=function(t){return this.executionContext=t.executionContext,this.takeFrom_s9rlw$(t)},HttpRequestBuilder.prototype.takeFrom_s9rlw$=function(t){return this.method=t.method,this.body=t.body,this.bodyType=t.bodyType,takeFrom(this.url,t.url),this.url.encodedPathSegments=this.url.encodedPathSegments,appendAll(this.headers,t.headers),putAll(this.attributes,t.attributes),this},HttpRequestBuilder.prototype.setCapability_wfl2px$=function(t,e){this.attributes.computeIfAbsent_u4q9l2$(ENGINE_CAPABILITIES_KEY,HttpRequestBuilder$setCapability$lambda).put_xwzc9p$(t,e)},HttpRequestBuilder.prototype.getCapabilityOrNull_i25mbv$=function(t){var e,n;return null==(n=null!=(e=this.attributes.getOrNull_yzaw86$(ENGINE_CAPABILITIES_KEY))?e.get_11rb$(t):null)||Kotlin.isType(n,Any)?n:throwCCE()},HttpRequestBuilder$Companion.$metadata$={kind:Kind_OBJECT,simpleName:"Companion",interfaces:[]};var HttpRequestBuilder$Companion_instance=null;function HttpRequestBuilder$Companion_getInstance(){return null===HttpRequestBuilder$Companion_instance&&new HttpRequestBuilder$Companion,HttpRequestBuilder$Companion_instance}function HttpRequestData(t,e,n,i,o,r){var s,a;this.url=t,this.method=e,this.headers=n,this.body=i,this.executionContext=o,this.attributes=r,this.requiredCapabilities_8be2vx$=null!=(a=null!=(s=this.attributes.getOrNull_yzaw86$(ENGINE_CAPABILITIES_KEY))?s.keys:null)?a:emptySet()}function HttpResponseData(t,e,n,i,o,r){this.statusCode=t,this.requestTime=e,this.headers=n,this.version=i,this.body=o,this.callContext=r,this.responseTime=GMTDate()}function url_1(t,e){takeFrom_0(t.url,e)}function isUpgradeRequest(t){return Kotlin.isType(t.body,ClientUpgradeContent)}function HttpRequestPipeline(t){HttpRequestPipeline$Phases_getInstance(),void 0===t&&(t=!1),Pipeline.call(this,[HttpRequestPipeline$Phases_getInstance().Before,HttpRequestPipeline$Phases_getInstance().State,HttpRequestPipeline$Phases_getInstance().Transform,HttpRequestPipeline$Phases_getInstance().Render,HttpRequestPipeline$Phases_getInstance().Send]),this.developmentMode_dglch5$_0=t}function HttpRequestPipeline$Phases(){HttpRequestPipeline$Phases_instance=this,this.Before=new PipelinePhase("Before"),this.State=new PipelinePhase("State"),this.Transform=new PipelinePhase("Transform"),this.Render=new PipelinePhase("Render"),this.Send=new PipelinePhase("Send")}HttpRequestBuilder.$metadata$={kind:Kind_CLASS,simpleName:"HttpRequestBuilder",interfaces:[HttpMessageBuilder]},HttpRequestData.prototype.getCapabilityOrNull_1sr7de$=function(t){var e,n;return null==(n=null!=(e=this.attributes.getOrNull_yzaw86$(ENGINE_CAPABILITIES_KEY))?e.get_11rb$(t):null)||Kotlin.isType(n,Any)?n:throwCCE()},HttpRequestData.prototype.toString=function(){return"HttpRequestData(url="+this.url+", method="+this.method+")"},HttpRequestData.$metadata$={kind:Kind_CLASS,simpleName:"HttpRequestData",interfaces:[]},HttpResponseData.prototype.toString=function(){return"HttpResponseData=(statusCode="+this.statusCode+")"},HttpResponseData.$metadata$={kind:Kind_CLASS,simpleName:"HttpResponseData",interfaces:[]},Object.defineProperty(HttpRequestPipeline.prototype,"developmentMode",{get:function(){return this.developmentMode_dglch5$_0}}),HttpRequestPipeline$Phases.$metadata$={kind:Kind_OBJECT,simpleName:"Phases",interfaces:[]};var HttpRequestPipeline$Phases_instance=null;function HttpRequestPipeline$Phases_getInstance(){return null===HttpRequestPipeline$Phases_instance&&new HttpRequestPipeline$Phases,HttpRequestPipeline$Phases_instance}function HttpSendPipeline(t){HttpSendPipeline$Phases_getInstance(),void 0===t&&(t=!1),Pipeline.call(this,[HttpSendPipeline$Phases_getInstance().Before,HttpSendPipeline$Phases_getInstance().State,HttpSendPipeline$Phases_getInstance().Monitoring,HttpSendPipeline$Phases_getInstance().Engine,HttpSendPipeline$Phases_getInstance().Receive]),this.developmentMode_7517lc$_0=t}function HttpSendPipeline$Phases(){HttpSendPipeline$Phases_instance=this,this.Before=new PipelinePhase("Before"),this.State=new PipelinePhase("State"),this.Monitoring=new PipelinePhase("Monitoring"),this.Engine=new PipelinePhase("Engine"),this.Receive=new PipelinePhase("Receive")}HttpRequestPipeline.$metadata$={kind:Kind_CLASS,simpleName:"HttpRequestPipeline",interfaces:[Pipeline]},Object.defineProperty(HttpSendPipeline.prototype,"developmentMode",{get:function(){return this.developmentMode_7517lc$_0}}),HttpSendPipeline$Phases.$metadata$={kind:Kind_OBJECT,simpleName:"Phases",interfaces:[]};var HttpSendPipeline$Phases_instance=null,BodyTypeAttributeKey,RN_BYTES;function HttpSendPipeline$Phases_getInstance(){return null===HttpSendPipeline$Phases_instance&&new HttpSendPipeline$Phases,HttpSendPipeline$Phases_instance}function url_2(t,e){takeFrom_1(t.url,e)}function FormDataContent(t){OutgoingContent$ByteArrayContent.call(this),this.formData=t;var e,n,i=formUrlEncode(this.formData);t:do{if(null!=(e=charsets.Charsets.UTF_8)&&e.equals(charsets.Charsets.UTF_8)){n=encodeToByteArray(i);break t}n=encodeToByteArray_0(e.newEncoder(),i,0,i.length)}while(0);this.content_0=n,this.contentLength_f2tvnf$_0=Kotlin.Long.fromInt(this.content_0.length),this.contentType_gyve29$_0=withCharset(ContentType.Application.FormUrlEncoded,charsets.Charsets.UTF_8)}function MultiPartFormDataContent(t,e,n){void 0===e&&(e=generateBoundary()),void 0===n&&(n=ContentType.MultiPart.FormData.withParameter_puj7f4$("boundary",e)),OutgoingContent$WriteChannelContent.call(this),this.boundary=e,this.contentType_azd2en$_0=n;var i,o,r="--"+this.boundary+"\r\n";t:do{if(null!=(i=charsets.Charsets.UTF_8)&&i.equals(charsets.Charsets.UTF_8)){o=encodeToByteArray(r);break t}o=encodeToByteArray_0(i.newEncoder(),r,0,r.length)}while(0);this.BOUNDARY_BYTES_0=o;var s,a,c="--"+this.boundary+"--\r\n";t:do{if(null!=(s=charsets.Charsets.UTF_8)&&s.equals(charsets.Charsets.UTF_8)){a=encodeToByteArray(c);break t}a=encodeToByteArray_0(s.newEncoder(),c,0,c.length)}while(0);this.LAST_BOUNDARY_BYTES_0=a,this.BODY_OVERHEAD_SIZE_0=this.LAST_BOUNDARY_BYTES_0.length,this.PART_OVERHEAD_SIZE_0=(2*RN_BYTES.length|0)+this.BOUNDARY_BYTES_0.length|0;var l,u,h=ArrayList_init_0(collectionSizeOrDefault(t,10));for(l=t.iterator();l.hasNext();){var d,p,_,m,f,g,$=l.next(),E=h.add_11rb$,y=new BytePacketBuilder;for(p=$.headers.entries().iterator();p.hasNext();){var b=p.next(),S=b.key,v=b.value;writeText(y,S+": "+joinToString(v,"; ")),writeFully_0(y,RN_BYTES)}var C=null!=(_=$.headers.get_61zpoe$(http.HttpHeaders.ContentLength))?toLong(_):null;if(Kotlin.isType($,PartData$FileItem)){var N=readBytes(y.build()),T=null!=(m=null!=C?C.add(Kotlin.Long.fromInt(this.PART_OVERHEAD_SIZE_0)):null)?m.add(Kotlin.Long.fromInt(N.length)):null;d=new PreparedPart$InputPart(N,$.provider,T)}else if(Kotlin.isType($,PartData$BinaryItem)){var L=readBytes(y.build()),z=null!=(f=null!=C?C.add(Kotlin.Long.fromInt(this.PART_OVERHEAD_SIZE_0)):null)?f.add(Kotlin.Long.fromInt(L.length)):null;d=new PreparedPart$InputPart(L,$.provider,z)}else if(Kotlin.isType($,PartData$FormItem)){var w,O=new BytePacketBuilder;try{writeText(O,$.value),w=O.build()}catch(t){throw Kotlin.isType(t,Throwable)?(O.release(),t):t}var R=readBytes(w),A=MultiPartFormDataContent$rawParts$lambda$lambda(R);null==C&&(writeText(y,http.HttpHeaders.ContentLength+": "+R.length),writeFully_0(y,RN_BYTES));var x=readBytes(y.build()),I=R.length+this.PART_OVERHEAD_SIZE_0+x.length|0;d=new PreparedPart$InputPart(x,A,Kotlin.Long.fromInt(I))}else if(Kotlin.isType($,PartData$BinaryChannelItem)){var U=readBytes(y.build()),D=null!=(g=null!=C?C.add(Kotlin.Long.fromInt(this.PART_OVERHEAD_SIZE_0)):null)?g.add(Kotlin.Long.fromInt(U.length)):null;d=new PreparedPart$ChannelPart(U,$.provider,D)}else d=Kotlin.noWhenBranchMatched();E.call(h,d)}this.rawParts_0=h,this.contentLength_egukxp$_0=null;var P=L0;for(u=this.rawParts_0.iterator();u.hasNext();){var M=u.next().size;if(null==M){P=null;break}P=null!=P?P.add(M):null}null!=P&&(P=P.add(Kotlin.Long.fromInt(this.BODY_OVERHEAD_SIZE_0))),this.contentLength_egukxp$_0=P}function Coroutine$writeTo_h3x4ir$(t,e,n){CoroutineImpl.call(this,n),this.exceptionState_0=18,this.$this=t,this.local$tmp$=void 0,this.local$part=void 0,this.local$$receiver=void 0,this.local$closed=void 0,this.local$channel=e}function MultiPartFormDataContent$rawParts$lambda$lambda(t){return function(){var e,n=new BytePacketBuilder;try{writeFully_0(n,t),e=n.build()}catch(t){throw Kotlin.isType(t,Throwable)?(n.release(),t):t}return e}}function generateBoundary(){for(var t=StringBuilder_init(),e=0;e<32;e++)t.append_pdl1vj$(toString_0(Random.Default.nextInt(),16));return take(t.toString(),70)}function PreparedPart(t,e){this.headers=t,this.size=e}function PreparedPart$InputPart(t,e,n){PreparedPart.call(this,t,n),this.provider=e}function PreparedPart$ChannelPart(t,e,n){PreparedPart.call(this,t,n),this.provider=e}function Coroutine$copyTo(t,e,n){CoroutineImpl.call(this,n),this.exceptionState_0=8,this.local$buffer=void 0,this.local$bytesWritten=void 0,this.local$$receiver=t,this.local$channel=e}function copyTo_1(t,e,n,i){var o=new Coroutine$copyTo(t,e,n);return i?o:o.doResume(null)}function header(t,e,n){null!=n&&t.headers.append_puj7f4$(e,n.toString())}function parameter(t,e,n){null!=n&&t.url.parameters.append_puj7f4$(e,n.toString())}function accept(t,e){t.headers.append_puj7f4$(http.HttpHeaders.Accept,e.toString())}function DefaultHttpResponse(t,e){var n,i;HttpResponse.call(this),this.call_9p3cfk$_0=t,this.coroutineContext_5l7f2v$_0=e.callContext,this.status_gsg6kc$_0=e.statusCode,this.version_vctfwy$_0=e.version,this.requestTime_34y64q$_0=e.requestTime,this.responseTime_u9wao0$_0=e.responseTime,this.content_7wqjir$_0=null!=(i=Kotlin.isType(n=e.body,ByteReadChannel)?n:null)?i:ByteReadChannel.Companion.Empty,this.headers_gyyq4g$_0=e.headers}function HttpResponse(){}function get_request(t){return t.call.request}function complete(t){var e;(Kotlin.isType(e=ensureNotNull(t.coroutineContext.get_j3r2sn$(Job.Key)),CompletableJob)?e:throwCCE()).complete()}function Coroutine$bodyAsText(t,e,n){CoroutineImpl.call(this,n),this.exceptionState_0=1,this.local$decoder=void 0,this.local$$receiver=t,this.local$fallbackCharset=e}function bodyAsText(t,e,n,i){var o=new Coroutine$bodyAsText(t,e,n);return i?o:o.doResume(null)}function HttpResponsePipeline(t){HttpResponsePipeline$Phases_getInstance(),void 0===t&&(t=!1),Pipeline.call(this,[HttpResponsePipeline$Phases_getInstance().Receive,HttpResponsePipeline$Phases_getInstance().Parse,HttpResponsePipeline$Phases_getInstance().Transform,HttpResponsePipeline$Phases_getInstance().State,HttpResponsePipeline$Phases_getInstance().After]),this.developmentMode_368lah$_0=t}function HttpResponsePipeline$Phases(){HttpResponsePipeline$Phases_instance=this,this.Receive=new PipelinePhase("Receive"),this.Parse=new PipelinePhase("Parse"),this.Transform=new PipelinePhase("Transform"),this.State=new PipelinePhase("State"),this.After=new PipelinePhase("After")}HttpSendPipeline.$metadata$={kind:Kind_CLASS,simpleName:"HttpSendPipeline",interfaces:[Pipeline]},defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.request_30bfl5$",wrapFunction((function(){var t=_.io.ktor.client.request.HttpRequestBuilder,e=_.io.ktor.client.statement.HttpStatement;return function(n,i,o){return void 0===i&&(i=new t),Kotlin.suspendCall(new e(i,n).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.prepareRequest_30bfl5$",wrapFunction((function(){var t=_.io.ktor.client.request.HttpRequestBuilder,e=_.io.ktor.client.statement.HttpStatement;return function(n,i,o){return void 0===i&&(i=new t),new e(i,n)}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.request_uxii9k$",wrapFunction((function(){var t=_.io.ktor.client.request.HttpRequestBuilder,e=_.io.ktor.client.statement.HttpStatement;return function(n,i,o){var r=new t;return i(r),Kotlin.suspendCall(new e(r,n).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.prepareRequest_uxii9k$",wrapFunction((function(){var t=_.io.ktor.client.request.HttpRequestBuilder,e=_.io.ktor.client.statement.HttpStatement;return function(n,i,o){var r=new t;return i(r),Kotlin.setCoroutineResult(new e(r,n),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.request_7cz7zq$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=_.io.ktor.client.request.url_g8iu3v$,n=_.io.ktor.client.request.HttpRequestBuilder,i=_.io.ktor.client.statement.HttpStatement;function o(e){return t}return function(t,r,s,a){void 0===s&&(s=o);var c=new n;return e(c,r),s(c),Kotlin.suspendCall(new i(c,t).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.prepareRequest_7cz7zq$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=_.io.ktor.client.request.url_g8iu3v$,n=_.io.ktor.client.request.HttpRequestBuilder,i=_.io.ktor.client.statement.HttpStatement;function o(e){return t}return function(t,r,s,a){void 0===s&&(s=o);var c=new n;return e(c,r),s(c),Kotlin.setCoroutineResult(new i(c,t),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.request_9weqol$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=_.io.ktor.client.request.url_qpqkqe$,n=_.io.ktor.client.request.HttpRequestBuilder,i=_.io.ktor.client.statement.HttpStatement;function o(e){return t}return function(t,r,s,a){void 0===s&&(s=o);var c=new n;return e(c,r),s(c),Kotlin.suspendCall(new i(c,t).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.prepareRequest_9weqol$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=_.io.ktor.client.request.url_qpqkqe$,n=_.io.ktor.client.request.HttpRequestBuilder,i=_.io.ktor.client.statement.HttpStatement;function o(e){return t}return function(t,r,s,a){void 0===s&&(s=o);var c=new n;return e(c,r),s(c),Kotlin.setCoroutineResult(new i(c,t),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.get_30bfl5$",wrapFunction((function(){var t=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,e=_.io.ktor.client.statement.HttpStatement;return function(n,i,o){return i.method=t.Companion.Get,Kotlin.suspendCall(new e(i,n).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.post_30bfl5$",wrapFunction((function(){var t=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,e=_.io.ktor.client.statement.HttpStatement;return function(n,i,o){return i.method=t.Companion.Post,Kotlin.suspendCall(new e(i,n).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.put_30bfl5$",wrapFunction((function(){var t=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,e=_.io.ktor.client.statement.HttpStatement;return function(n,i,o){return i.method=t.Companion.Put,Kotlin.suspendCall(new e(i,n).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.delete_30bfl5$",wrapFunction((function(){var t=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,e=_.io.ktor.client.statement.HttpStatement;return function(n,i,o){return i.method=t.Companion.Delete,Kotlin.suspendCall(new e(i,n).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.options_30bfl5$",wrapFunction((function(){var t=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,e=_.io.ktor.client.statement.HttpStatement;return function(n,i,o){return i.method=t.Companion.Options,Kotlin.suspendCall(new e(i,n).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.patch_30bfl5$",wrapFunction((function(){var t=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,e=_.io.ktor.client.statement.HttpStatement;return function(n,i,o){return i.method=t.Companion.Patch,Kotlin.suspendCall(new e(i,n).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.head_30bfl5$",wrapFunction((function(){var t=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,e=_.io.ktor.client.statement.HttpStatement;return function(n,i,o){return i.method=t.Companion.Head,Kotlin.suspendCall(new e(i,n).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.prepareGet_30bfl5$",wrapFunction((function(){var t=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,e=_.io.ktor.client.statement.HttpStatement;return function(n,i,o){return i.method=t.Companion.Get,Kotlin.setCoroutineResult(new e(i,n),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.preparePost_30bfl5$",wrapFunction((function(){var t=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,e=_.io.ktor.client.statement.HttpStatement;return function(n,i,o){return i.method=t.Companion.Post,Kotlin.setCoroutineResult(new e(i,n),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.preparePut_30bfl5$",wrapFunction((function(){var t=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,e=_.io.ktor.client.statement.HttpStatement;return function(n,i,o){return i.method=t.Companion.Put,Kotlin.setCoroutineResult(new e(i,n),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.prepareDelete_30bfl5$",wrapFunction((function(){var t=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,e=_.io.ktor.client.statement.HttpStatement;return function(n,i,o){return i.method=t.Companion.Delete,Kotlin.setCoroutineResult(new e(i,n),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.prepareOptions_30bfl5$",wrapFunction((function(){var t=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,e=_.io.ktor.client.statement.HttpStatement;return function(n,i,o){return i.method=t.Companion.Options,Kotlin.setCoroutineResult(new e(i,n),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.preparePatch_30bfl5$",wrapFunction((function(){var t=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,e=_.io.ktor.client.statement.HttpStatement;return function(n,i,o){return i.method=t.Companion.Patch,Kotlin.setCoroutineResult(new e(i,n),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.prepareHead_30bfl5$",wrapFunction((function(){var t=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,e=_.io.ktor.client.statement.HttpStatement;return function(n,i,o){return i.method=t.Companion.Head,Kotlin.setCoroutineResult(new e(i,n),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.get_uxii9k$",wrapFunction((function(){var t=_.io.ktor.client.request.HttpRequestBuilder,e=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,n=_.io.ktor.client.statement.HttpStatement;return function(i,o,r){var s=new t;return o(s),s.method=e.Companion.Get,Kotlin.suspendCall(new n(s,i).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.post_uxii9k$",wrapFunction((function(){var t=_.io.ktor.client.request.HttpRequestBuilder,e=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,n=_.io.ktor.client.statement.HttpStatement;return function(i,o,r){var s=new t;return o(s),s.method=e.Companion.Post,Kotlin.suspendCall(new n(s,i).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.put_uxii9k$",wrapFunction((function(){var t=_.io.ktor.client.request.HttpRequestBuilder,e=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,n=_.io.ktor.client.statement.HttpStatement;return function(i,o,r){var s=new t;return o(s),s.method=e.Companion.Put,Kotlin.suspendCall(new n(s,i).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.delete_uxii9k$",wrapFunction((function(){var t=_.io.ktor.client.request.HttpRequestBuilder,e=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,n=_.io.ktor.client.statement.HttpStatement;return function(i,o,r){var s=new t;return o(s),s.method=e.Companion.Delete,Kotlin.suspendCall(new n(s,i).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.options_uxii9k$",wrapFunction((function(){var t=_.io.ktor.client.request.HttpRequestBuilder,e=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,n=_.io.ktor.client.statement.HttpStatement;return function(i,o,r){var s=new t;return o(s),s.method=e.Companion.Options,Kotlin.suspendCall(new n(s,i).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.patch_uxii9k$",wrapFunction((function(){var t=_.io.ktor.client.request.HttpRequestBuilder,e=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,n=_.io.ktor.client.statement.HttpStatement;return function(i,o,r){var s=new t;return o(s),s.method=e.Companion.Patch,Kotlin.suspendCall(new n(s,i).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.head_uxii9k$",wrapFunction((function(){var t=_.io.ktor.client.request.HttpRequestBuilder,e=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,n=_.io.ktor.client.statement.HttpStatement;return function(i,o,r){var s=new t;return o(s),s.method=e.Companion.Head,Kotlin.suspendCall(new n(s,i).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.prepareGet_uxii9k$",wrapFunction((function(){var t=_.io.ktor.client.request.HttpRequestBuilder,e=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,n=_.io.ktor.client.statement.HttpStatement;return function(i,o,r){var s=new t;return o(s),s.method=e.Companion.Get,Kotlin.setCoroutineResult(new n(s,i),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.preparePost_uxii9k$",wrapFunction((function(){var t=_.io.ktor.client.request.HttpRequestBuilder,e=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,n=_.io.ktor.client.statement.HttpStatement;return function(i,o,r){var s=new t;return o(s),s.method=e.Companion.Post,Kotlin.setCoroutineResult(new n(s,i),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.preparePut_uxii9k$",wrapFunction((function(){var t=_.io.ktor.client.request.HttpRequestBuilder,e=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,n=_.io.ktor.client.statement.HttpStatement;return function(i,o,r){var s=new t;return o(s),s.method=e.Companion.Put,Kotlin.setCoroutineResult(new n(s,i),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.prepareDelete_uxii9k$",wrapFunction((function(){var t=_.io.ktor.client.request.HttpRequestBuilder,e=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,n=_.io.ktor.client.statement.HttpStatement;return function(i,o,r){var s=new t;return o(s),s.method=e.Companion.Delete,Kotlin.setCoroutineResult(new n(s,i),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.prepareOptions_uxii9k$",wrapFunction((function(){var t=_.io.ktor.client.request.HttpRequestBuilder,e=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,n=_.io.ktor.client.statement.HttpStatement;return function(i,o,r){var s=new t;return o(s),s.method=e.Companion.Options,Kotlin.setCoroutineResult(new n(s,i),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.preparePatch_uxii9k$",wrapFunction((function(){var t=_.io.ktor.client.request.HttpRequestBuilder,e=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,n=_.io.ktor.client.statement.HttpStatement;return function(i,o,r){var s=new t;return o(s),s.method=e.Companion.Patch,Kotlin.setCoroutineResult(new n(s,i),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.prepareHead_uxii9k$",wrapFunction((function(){var t=_.io.ktor.client.request.HttpRequestBuilder,e=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,n=_.io.ktor.client.statement.HttpStatement;return function(i,o,r){var s=new t;return o(s),s.method=e.Companion.Head,Kotlin.setCoroutineResult(new n(s,i),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.get_7cz7zq$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=_.io.ktor.client.request.url_g8iu3v$,n=_.io.ktor.client.request.HttpRequestBuilder,i=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,o=_.io.ktor.client.statement.HttpStatement;function r(e){return t}return function(t,s,a,c){void 0===a&&(a=r);var l=new n;return e(l,s),a(l),l.method=i.Companion.Get,Kotlin.suspendCall(new o(l,t).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.post_7cz7zq$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=_.io.ktor.client.request.url_g8iu3v$,n=_.io.ktor.client.request.HttpRequestBuilder,i=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,o=_.io.ktor.client.statement.HttpStatement;function r(e){return t}return function(t,s,a,c){void 0===a&&(a=r);var l=new n;return e(l,s),a(l),l.method=i.Companion.Post,Kotlin.suspendCall(new o(l,t).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.put_7cz7zq$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=_.io.ktor.client.request.url_g8iu3v$,n=_.io.ktor.client.request.HttpRequestBuilder,i=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,o=_.io.ktor.client.statement.HttpStatement;function r(e){return t}return function(t,s,a,c){void 0===a&&(a=r);var l=new n;return e(l,s),a(l),l.method=i.Companion.Put,Kotlin.suspendCall(new o(l,t).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.delete_7cz7zq$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=_.io.ktor.client.request.url_g8iu3v$,n=_.io.ktor.client.request.HttpRequestBuilder,i=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,o=_.io.ktor.client.statement.HttpStatement;function r(e){return t}return function(t,s,a,c){void 0===a&&(a=r);var l=new n;return e(l,s),a(l),l.method=i.Companion.Delete,Kotlin.suspendCall(new o(l,t).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.options_7cz7zq$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=_.io.ktor.client.request.url_g8iu3v$,n=_.io.ktor.client.request.HttpRequestBuilder,i=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,o=_.io.ktor.client.statement.HttpStatement;function r(e){return t}return function(t,s,a,c){void 0===a&&(a=r);var l=new n;return e(l,s),a(l),l.method=i.Companion.Options,Kotlin.suspendCall(new o(l,t).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.patch_7cz7zq$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=_.io.ktor.client.request.url_g8iu3v$,n=_.io.ktor.client.request.HttpRequestBuilder,i=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,o=_.io.ktor.client.statement.HttpStatement;function r(e){return t}return function(t,s,a,c){void 0===a&&(a=r);var l=new n;return e(l,s),a(l),l.method=i.Companion.Patch,Kotlin.suspendCall(new o(l,t).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.head_7cz7zq$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=_.io.ktor.client.request.url_g8iu3v$,n=_.io.ktor.client.request.HttpRequestBuilder,i=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,o=_.io.ktor.client.statement.HttpStatement;function r(e){return t}return function(t,s,a,c){void 0===a&&(a=r);var l=new n;return e(l,s),a(l),l.method=i.Companion.Head,Kotlin.suspendCall(new o(l,t).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.prepareGet_7cz7zq$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=_.io.ktor.client.request.url_g8iu3v$,n=_.io.ktor.client.request.HttpRequestBuilder,i=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,o=_.io.ktor.client.statement.HttpStatement;function r(e){return t}return function(t,s,a,c){void 0===a&&(a=r);var l=new n;return e(l,s),a(l),l.method=i.Companion.Get,Kotlin.setCoroutineResult(new o(l,t),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.preparePost_7cz7zq$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=_.io.ktor.client.request.url_g8iu3v$,n=_.io.ktor.client.request.HttpRequestBuilder,i=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,o=_.io.ktor.client.statement.HttpStatement;function r(e){return t}return function(t,s,a,c){void 0===a&&(a=r);var l=new n;return e(l,s),a(l),l.method=i.Companion.Post,Kotlin.setCoroutineResult(new o(l,t),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.preparePut_7cz7zq$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=_.io.ktor.client.request.url_g8iu3v$,n=_.io.ktor.client.request.HttpRequestBuilder,i=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,o=_.io.ktor.client.statement.HttpStatement;function r(e){return t}return function(t,s,a,c){void 0===a&&(a=r);var l=new n;return e(l,s),a(l),l.method=i.Companion.Put,Kotlin.setCoroutineResult(new o(l,t),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.prepareDelete_7cz7zq$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=_.io.ktor.client.request.url_g8iu3v$,n=_.io.ktor.client.request.HttpRequestBuilder,i=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,o=_.io.ktor.client.statement.HttpStatement;function r(e){return t}return function(t,s,a,c){void 0===a&&(a=r);var l=new n;return e(l,s),a(l),l.method=i.Companion.Delete,Kotlin.setCoroutineResult(new o(l,t),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.prepareOptions_7cz7zq$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=_.io.ktor.client.request.url_g8iu3v$,n=_.io.ktor.client.request.HttpRequestBuilder,i=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,o=_.io.ktor.client.statement.HttpStatement;function r(e){return t}return function(t,s,a,c){void 0===a&&(a=r);var l=new n;return e(l,s),a(l),l.method=i.Companion.Options,Kotlin.setCoroutineResult(new o(l,t),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.preparePatch_7cz7zq$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=_.io.ktor.client.request.url_g8iu3v$,n=_.io.ktor.client.request.HttpRequestBuilder,i=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,o=_.io.ktor.client.statement.HttpStatement;function r(e){return t}return function(t,s,a,c){void 0===a&&(a=r);var l=new n;return e(l,s),a(l),l.method=i.Companion.Patch,Kotlin.setCoroutineResult(new o(l,t),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.prepareHead_7cz7zq$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=_.io.ktor.client.request.url_g8iu3v$,n=_.io.ktor.client.request.HttpRequestBuilder,i=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,o=_.io.ktor.client.statement.HttpStatement;function r(e){return t}return function(t,s,a,c){void 0===a&&(a=r);var l=new n;return e(l,s),a(l),l.method=i.Companion.Head,Kotlin.setCoroutineResult(new o(l,t),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.get_9weqol$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.takeFrom_wol2ee$,n=_.io.ktor.client.request.HttpRequestBuilder,i=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,o=_.io.ktor.client.statement.HttpStatement;function r(e){return t}return function(t,s,a,c){void 0===a&&(a=r);var l=new n;return e(l.url,s),a(l),l.method=i.Companion.Get,Kotlin.suspendCall(new o(l,t).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.prepareGet_9weqol$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.takeFrom_wol2ee$,n=_.io.ktor.client.request.HttpRequestBuilder,i=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,o=_.io.ktor.client.statement.HttpStatement;function r(e){return t}return function(t,s,a,c){void 0===a&&(a=r);var l=new n;return e(l.url,s),a(l),l.method=i.Companion.Get,Kotlin.setCoroutineResult(new o(l,t),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.post_9weqol$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.takeFrom_wol2ee$,n=_.io.ktor.client.request.HttpRequestBuilder,i=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,o=_.io.ktor.client.statement.HttpStatement;function r(e){return t}return function(t,s,a,c){void 0===a&&(a=r);var l=new n;return e(l.url,s),a(l),l.method=i.Companion.Post,Kotlin.suspendCall(new o(l,t).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.preparePost_9weqol$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.takeFrom_wol2ee$,n=_.io.ktor.client.request.HttpRequestBuilder,i=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,o=_.io.ktor.client.statement.HttpStatement;function r(e){return t}return function(t,s,a,c){void 0===a&&(a=r);var l=new n;return e(l.url,s),a(l),l.method=i.Companion.Post,Kotlin.setCoroutineResult(new o(l,t),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.put_9weqol$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.takeFrom_wol2ee$,n=_.io.ktor.client.request.HttpRequestBuilder,i=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,o=_.io.ktor.client.statement.HttpStatement;function r(e){return t}return function(t,s,a,c){void 0===a&&(a=r);var l=new n;return e(l.url,s),a(l),l.method=i.Companion.Put,Kotlin.suspendCall(new o(l,t).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.preparePut_9weqol$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.takeFrom_wol2ee$,n=_.io.ktor.client.request.HttpRequestBuilder,i=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,o=_.io.ktor.client.statement.HttpStatement;function r(e){return t}return function(t,s,a,c){void 0===a&&(a=r);var l=new n;return e(l.url,s),a(l),l.method=i.Companion.Put,Kotlin.setCoroutineResult(new o(l,t),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.patch_9weqol$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.takeFrom_wol2ee$,n=_.io.ktor.client.request.HttpRequestBuilder,i=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,o=_.io.ktor.client.statement.HttpStatement;function r(e){return t}return function(t,s,a,c){void 0===a&&(a=r);var l=new n;return e(l.url,s),a(l),l.method=i.Companion.Patch,Kotlin.suspendCall(new o(l,t).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.preparePatch_9weqol$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.takeFrom_wol2ee$,n=_.io.ktor.client.request.HttpRequestBuilder,i=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,o=_.io.ktor.client.statement.HttpStatement;function r(e){return t}return function(t,s,a,c){void 0===a&&(a=r);var l=new n;return e(l.url,s),a(l),l.method=i.Companion.Patch,Kotlin.setCoroutineResult(new o(l,t),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.options_9weqol$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.takeFrom_wol2ee$,n=_.io.ktor.client.request.HttpRequestBuilder,i=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,o=_.io.ktor.client.statement.HttpStatement;function r(e){return t}return function(t,s,a,c){void 0===a&&(a=r);var l=new n;return e(l.url,s),a(l),l.method=i.Companion.Options,Kotlin.suspendCall(new o(l,t).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.prepareOptions_9weqol$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.takeFrom_wol2ee$,n=_.io.ktor.client.request.HttpRequestBuilder,i=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,o=_.io.ktor.client.statement.HttpStatement;function r(e){return t}return function(t,s,a,c){void 0===a&&(a=r);var l=new n;return e(l.url,s),a(l),l.method=i.Companion.Options,Kotlin.setCoroutineResult(new o(l,t),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.head_9weqol$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.takeFrom_wol2ee$,n=_.io.ktor.client.request.HttpRequestBuilder,i=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,o=_.io.ktor.client.statement.HttpStatement;function r(e){return t}return function(t,s,a,c){void 0===a&&(a=r);var l=new n;return e(l.url,s),a(l),l.method=i.Companion.Head,Kotlin.suspendCall(new o(l,t).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.prepareHead_9weqol$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.takeFrom_wol2ee$,n=_.io.ktor.client.request.HttpRequestBuilder,i=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,o=_.io.ktor.client.statement.HttpStatement;function r(e){return t}return function(t,s,a,c){void 0===a&&(a=r);var l=new n;return e(l.url,s),a(l),l.method=i.Companion.Head,Kotlin.setCoroutineResult(new o(l,t),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.delete_9weqol$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.takeFrom_wol2ee$,n=_.io.ktor.client.request.HttpRequestBuilder,i=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,o=_.io.ktor.client.statement.HttpStatement;function r(e){return t}return function(t,s,a,c){void 0===a&&(a=r);var l=new n;return e(l.url,s),a(l),l.method=i.Companion.Delete,Kotlin.suspendCall(new o(l,t).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.prepareDelete_9weqol$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.takeFrom_wol2ee$,n=_.io.ktor.client.request.HttpRequestBuilder,i=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,o=_.io.ktor.client.statement.HttpStatement;function r(e){return t}return function(t,s,a,c){void 0===a&&(a=r);var l=new n;return e(l.url,s),a(l),l.method=i.Companion.Delete,Kotlin.setCoroutineResult(new o(l,t),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),Object.defineProperty(FormDataContent.prototype,"contentLength",{configurable:!0,get:function(){return this.contentLength_f2tvnf$_0}}),Object.defineProperty(FormDataContent.prototype,"contentType",{configurable:!0,get:function(){return this.contentType_gyve29$_0}}),FormDataContent.prototype.bytes=function(){return this.content_0},FormDataContent.$metadata$={kind:Kind_CLASS,simpleName:"FormDataContent",interfaces:[OutgoingContent$ByteArrayContent]},Object.defineProperty(MultiPartFormDataContent.prototype,"contentType",{get:function(){return this.contentType_azd2en$_0}}),Object.defineProperty(MultiPartFormDataContent.prototype,"contentLength",{configurable:!0,get:function(){return this.contentLength_egukxp$_0}}),Coroutine$writeTo_h3x4ir$.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$writeTo_h3x4ir$.prototype=Object.create(CoroutineImpl.prototype),Coroutine$writeTo_h3x4ir$.prototype.constructor=Coroutine$writeTo_h3x4ir$,Coroutine$writeTo_h3x4ir$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.exceptionState_0=15,this.local$tmp$=this.$this.rawParts_0.iterator(),this.state_0=1;continue;case 1:if(!this.local$tmp$.hasNext()){this.state_0=13;continue}if(this.local$part=this.local$tmp$.next(),this.state_0=2,this.result_0=writeFully(this.local$channel,this.$this.BOUNDARY_BYTES_0,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 2:if(this.state_0=3,this.result_0=writeFully(this.local$channel,this.local$part.headers,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 3:if(this.state_0=4,this.result_0=writeFully(this.local$channel,RN_BYTES,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 4:if(Kotlin.isType(this.local$part,PreparedPart$InputPart)){if(this.local$$receiver=this.local$part.provider(),this.local$closed=!1,this.exceptionState_0=8,this.state_0=7,this.result_0=copyTo_1(this.local$$receiver,this.local$channel,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue}if(Kotlin.isType(this.local$part,PreparedPart$ChannelPart)){if(this.state_0=5,this.result_0=copyTo_0(this.local$part.provider(),this.local$channel,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue}Kotlin.noWhenBranchMatched(),this.state_0=6;continue;case 5:this.state_0=6;continue;case 6:this.state_0=11;continue;case 7:this.exceptionState_0=15,this.finallyPath_0=[10],this.state_0=9;continue;case 8:this.finallyPath_0=[15],this.exceptionState_0=9;var t=this.exception_0;if(Kotlin.isType(t,Throwable)){try{this.local$closed=!0,this.local$$receiver.close()}catch(e){if(!Kotlin.isType(e,Throwable))throw e;addSuppressedInternal(t,e)}throw t}throw t;case 9:this.exceptionState_0=15,this.local$closed||this.local$$receiver.close(),this.state_0=this.finallyPath_0.shift();continue;case 10:this.state_0=11;continue;case 11:if(this.state_0=12,this.result_0=writeFully(this.local$channel,RN_BYTES,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 12:this.state_0=1;continue;case 13:if(this.state_0=14,this.result_0=writeFully(this.local$channel,this.$this.LAST_BOUNDARY_BYTES_0,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 14:this.exceptionState_0=18,this.finallyPath_0=[17],this.state_0=16;continue;case 15:this.finallyPath_0=[18],this.exceptionState_0=16;var e=this.exception_0;if(!Kotlin.isType(e,Throwable))throw e;this.local$channel.close_dbl4no$(e),this.finallyPath_0=[17],this.state_0=16;continue;case 16:this.exceptionState_0=18,close_0(this.local$channel),this.state_0=this.finallyPath_0.shift();continue;case 17:return;case 18:throw this.exception_0;default:throw this.state_0=18,new Error("State Machine Unreachable execution")}}catch(t){if(18===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},MultiPartFormDataContent.prototype.writeTo_h3x4ir$=function(t,e,n){var i=new Coroutine$writeTo_h3x4ir$(this,t,e);return n?i:i.doResume(null)},MultiPartFormDataContent.$metadata$={kind:Kind_CLASS,simpleName:"MultiPartFormDataContent",interfaces:[OutgoingContent$WriteChannelContent]},PreparedPart$InputPart.$metadata$={kind:Kind_CLASS,simpleName:"InputPart",interfaces:[PreparedPart]},PreparedPart$ChannelPart.$metadata$={kind:Kind_CLASS,simpleName:"ChannelPart",interfaces:[PreparedPart]},PreparedPart.$metadata$={kind:Kind_CLASS,simpleName:"PreparedPart",interfaces:[]},Coroutine$copyTo.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$copyTo.prototype=Object.create(CoroutineImpl.prototype),Coroutine$copyTo.prototype.constructor=Coroutine$copyTo,Coroutine$copyTo.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(Kotlin.isType(this.local$$receiver,ByteReadPacket)){if(this.state_0=1,this.result_0=this.local$channel.writePacket_3uq2w4$(this.local$$receiver,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue}this.state_0=2;continue;case 1:return;case 2:this.state_0=3;continue;case 3:if(this.local$$receiver.endOfInput){this.state_0=10;continue}var t;if(this.state_0=4,this.result_0=requestWriteBuffer(this.local$channel,1,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 4:this.local$buffer=null!=(t=this.result_0)?t:Buffer.Companion.Empty,this.local$bytesWritten=0,this.exceptionState_0=5;var e=this.local$buffer.memory,n=Kotlin.Long.fromInt(this.local$buffer.writePosition);this.local$bytesWritten=readAvailable(this.local$$receiver,e,n,Kotlin.Long.fromInt(this.local$buffer.limit).subtract(n)).toInt(),this.local$buffer.commitWritten_za3lpa$(this.local$bytesWritten),this.result_0=this.local$bytesWritten,this.exceptionState_0=8,this.finallyPath_0=[9],this.state_0=6;continue;case 5:this.finallyPath_0=[8],this.state_0=6;continue;case 6:if(this.exceptionState_0=8,this.state_0=7,this.result_0=completeWriting(this.local$channel,this.local$buffer,this.local$bytesWritten,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 7:this.state_0=this.finallyPath_0.shift();continue;case 8:throw this.exception_0;case 9:this.state_0=3;continue;case 10:return;default:throw this.state_0=8,new Error("State Machine Unreachable execution")}}catch(t){if(8===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.forms.submitForm_9i20zh$",wrapFunction((function(){var t=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.Parameters,e=Kotlin.kotlin.Unit,n=Kotlin.wrapFunction,i=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,o=_.io.ktor.client.request.forms.FormDataContent,r=Kotlin.getKClass,s=Kotlin.createKType,a=_.io.ktor.client.request.HttpRequestBuilder,c=_.io.ktor.client.statement.HttpStatement,l=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.content,u=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.content.OutgoingContent,h=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect,d=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect.typeInfoImpl_1lvkm8$,p=Error;function m(t){return e}return n((function(){var t=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.content,n=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.content.OutgoingContent,a=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect,c=Kotlin.getKClass,l=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect.typeInfoImpl_1lvkm8$,u=Error;return function(h,d,p){return function(_){if(h)_.method=i.Companion.Get,_.url.parameters.appendAll_hb0ubp$(d);else{_.method=i.Companion.Post;var m=new o(d);if(null==m){_.body=t.NullBody;var f,g=a.JsType,$=c(o);t:do{try{f=s(r(o),[],!1)}catch(t){if(Kotlin.isType(t,u)){f=null;break t}throw t}}while(0);_.bodyType=l(g,$,f)}else if(Kotlin.isType(m,n))_.body=m,_.bodyType=null;else{_.body=m;var E,y=a.JsType,b=c(o);t:do{try{E=s(r(o),[],!1)}catch(t){if(Kotlin.isType(t,u)){E=null;break t}throw t}}while(0);_.bodyType=l(y,b,E)}}return p(_),e}}})),function(e,n,_,f,g){void 0===n&&(n=t.Companion.Empty),void 0===_&&(_=!1),void 0===f&&(f=m);var $=new a;if(_)$.method=i.Companion.Get,$.url.parameters.appendAll_hb0ubp$(n);else{$.method=i.Companion.Post;var E=new o(n);if(null==E){$.body=l.NullBody;var y,b=h.JsType,S=r(o);t:do{try{y=s(r(o),[],!1)}catch(t){if(Kotlin.isType(t,p)){y=null;break t}throw t}}while(0);$.bodyType=d(b,S,y)}else if(Kotlin.isType(E,u))$.body=E,$.bodyType=null;else{$.body=E;var v,C=h.JsType,N=r(o);t:do{try{v=s(r(o),[],!1)}catch(t){if(Kotlin.isType(t,p)){v=null;break t}throw t}}while(0);$.bodyType=d(C,N,v)}}return f($),Kotlin.suspendCall(new c($,e).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.forms.submitFormWithBinaryData_ln1qgv$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=Kotlin.wrapFunction,n=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,i=_.io.ktor.client.request.forms.MultiPartFormDataContent,o=Kotlin.getKClass,r=Kotlin.createKType,s=_.io.ktor.client.request.HttpRequestBuilder,a=_.io.ktor.client.statement.HttpStatement,c=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.content,l=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.content.OutgoingContent,u=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect,h=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect.typeInfoImpl_1lvkm8$,d=Error;function p(e){return t}return e((function(){var e=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.content,s=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.content.OutgoingContent,a=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect,c=Kotlin.getKClass,l=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect.typeInfoImpl_1lvkm8$,u=Error;return function(h,d){return function(p){p.method=n.Companion.Post;var _=new i(h);if(null==_){p.body=e.NullBody;var m,f=a.JsType,g=c(i);t:do{try{m=r(o(i),[],!1)}catch(t){if(Kotlin.isType(t,u)){m=null;break t}throw t}}while(0);p.bodyType=l(f,g,m)}else if(Kotlin.isType(_,s))p.body=_,p.bodyType=null;else{p.body=_;var $,E=a.JsType,y=c(i);t:do{try{$=r(o(i),[],!1)}catch(t){if(Kotlin.isType(t,u)){$=null;break t}throw t}}while(0);p.bodyType=l(E,y,$)}return d(p),t}}})),function(t,e,_,m){void 0===_&&(_=p);var f=new s;f.method=n.Companion.Post;var g=new i(e);if(null==g){f.body=c.NullBody;var $,E=u.JsType,y=o(i);t:do{try{$=r(o(i),[],!1)}catch(t){if(Kotlin.isType(t,d)){$=null;break t}throw t}}while(0);f.bodyType=h(E,y,$)}else if(Kotlin.isType(g,l))f.body=g,f.bodyType=null;else{f.body=g;var b,S=u.JsType,v=o(i);t:do{try{b=r(o(i),[],!1)}catch(t){if(Kotlin.isType(t,d)){b=null;break t}throw t}}while(0);f.bodyType=h(S,v,b)}return _(f),Kotlin.suspendCall(new a(f,t).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.forms.submitFormWithBinaryData_rrwb9t$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=Kotlin.wrapFunction,n=_.io.ktor.client.request.url_g8iu3v$,i=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,o=_.io.ktor.client.request.forms.MultiPartFormDataContent,r=Kotlin.getKClass,s=Kotlin.createKType,a=_.io.ktor.client.request.HttpRequestBuilder,c=_.io.ktor.client.statement.HttpStatement,l=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.content,u=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.content.OutgoingContent,h=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect,d=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect.typeInfoImpl_1lvkm8$,p=Error;function m(e){return t}return e((function(){var e=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.content,n=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.content.OutgoingContent,a=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect,c=Kotlin.getKClass,l=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect.typeInfoImpl_1lvkm8$,u=Error;return function(h,d){return function(p){p.method=i.Companion.Post;var _=new o(h);if(null==_){p.body=e.NullBody;var m,f=a.JsType,g=c(o);t:do{try{m=s(r(o),[],!1)}catch(t){if(Kotlin.isType(t,u)){m=null;break t}throw t}}while(0);p.bodyType=l(f,g,m)}else if(Kotlin.isType(_,n))p.body=_,p.bodyType=null;else{p.body=_;var $,E=a.JsType,y=c(o);t:do{try{$=s(r(o),[],!1)}catch(t){if(Kotlin.isType(t,u)){$=null;break t}throw t}}while(0);p.bodyType=l(E,y,$)}return d(p),t}}})),function(t,e,_,f,g){void 0===f&&(f=m);var $=new a;$.method=i.Companion.Post;var E=new o(_);if(null==E){$.body=l.NullBody;var y,b=h.JsType,S=r(o);t:do{try{y=s(r(o),[],!1)}catch(t){if(Kotlin.isType(t,p)){y=null;break t}throw t}}while(0);$.bodyType=d(b,S,y)}else if(Kotlin.isType(E,u))$.body=E,$.bodyType=null;else{$.body=E;var v,C=h.JsType,N=r(o);t:do{try{v=s(r(o),[],!1)}catch(t){if(Kotlin.isType(t,p)){v=null;break t}throw t}}while(0);$.bodyType=d(C,N,v)}return n($,e),f($),Kotlin.suspendCall(new c($,t).execute(Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.forms.prepareForm_9i20zh$",wrapFunction((function(){var t=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.Parameters,e=Kotlin.kotlin.Unit,n=Kotlin.wrapFunction,i=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,o=_.io.ktor.client.request.forms.FormDataContent,r=Kotlin.getKClass,s=Kotlin.createKType,a=_.io.ktor.client.request.HttpRequestBuilder,c=_.io.ktor.client.statement.HttpStatement,l=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.content,u=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.content.OutgoingContent,h=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect,d=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect.typeInfoImpl_1lvkm8$,p=Error;function m(t){return e}return n((function(){var t=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.content,n=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.content.OutgoingContent,a=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect,c=Kotlin.getKClass,l=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect.typeInfoImpl_1lvkm8$,u=Error;return function(h,d,p){return function(_){if(h)_.method=i.Companion.Get,_.url.parameters.appendAll_hb0ubp$(d);else{_.method=i.Companion.Post;var m=new o(d);if(null==m){_.body=t.NullBody;var f,g=a.JsType,$=c(o);t:do{try{f=s(r(o),[],!1)}catch(t){if(Kotlin.isType(t,u)){f=null;break t}throw t}}while(0);_.bodyType=l(g,$,f)}else if(Kotlin.isType(m,n))_.body=m,_.bodyType=null;else{_.body=m;var E,y=a.JsType,b=c(o);t:do{try{E=s(r(o),[],!1)}catch(t){if(Kotlin.isType(t,u)){E=null;break t}throw t}}while(0);_.bodyType=l(y,b,E)}}return p(_),e}}})),function(e,n,_,f,g){void 0===n&&(n=t.Companion.Empty),void 0===_&&(_=!1),void 0===f&&(f=m);var $=new a;if(_)$.method=i.Companion.Get,$.url.parameters.appendAll_hb0ubp$(n);else{$.method=i.Companion.Post;var E=new o(n);if(null==E){$.body=l.NullBody;var y,b=h.JsType,S=r(o);t:do{try{y=s(r(o),[],!1)}catch(t){if(Kotlin.isType(t,p)){y=null;break t}throw t}}while(0);$.bodyType=d(b,S,y)}else if(Kotlin.isType(E,u))$.body=E,$.bodyType=null;else{$.body=E;var v,C=h.JsType,N=r(o);t:do{try{v=s(r(o),[],!1)}catch(t){if(Kotlin.isType(t,p)){v=null;break t}throw t}}while(0);$.bodyType=d(C,N,v)}}return f($),Kotlin.setCoroutineResult(new c($,e),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.forms.prepareFormWithBinaryData_ln1qgv$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=Kotlin.wrapFunction,n=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,i=_.io.ktor.client.request.forms.MultiPartFormDataContent,o=Kotlin.getKClass,r=Kotlin.createKType,s=_.io.ktor.client.request.HttpRequestBuilder,a=_.io.ktor.client.statement.HttpStatement,c=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.content,l=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.content.OutgoingContent,u=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect,h=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect.typeInfoImpl_1lvkm8$,d=Error;function p(e){return t}return e((function(){var e=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.content,s=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.content.OutgoingContent,a=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect,c=Kotlin.getKClass,l=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect.typeInfoImpl_1lvkm8$,u=Error;return function(h,d){return function(p){p.method=n.Companion.Post;var _=new i(h);if(null==_){p.body=e.NullBody;var m,f=a.JsType,g=c(i);t:do{try{m=r(o(i),[],!1)}catch(t){if(Kotlin.isType(t,u)){m=null;break t}throw t}}while(0);p.bodyType=l(f,g,m)}else if(Kotlin.isType(_,s))p.body=_,p.bodyType=null;else{p.body=_;var $,E=a.JsType,y=c(i);t:do{try{$=r(o(i),[],!1)}catch(t){if(Kotlin.isType(t,u)){$=null;break t}throw t}}while(0);p.bodyType=l(E,y,$)}return d(p),t}}})),function(t,e,_,m){void 0===_&&(_=p);var f=new s;f.method=n.Companion.Post;var g=new i(e);if(null==g){f.body=c.NullBody;var $,E=u.JsType,y=o(i);t:do{try{$=r(o(i),[],!1)}catch(t){if(Kotlin.isType(t,d)){$=null;break t}throw t}}while(0);f.bodyType=h(E,y,$)}else if(Kotlin.isType(g,l))f.body=g,f.bodyType=null;else{f.body=g;var b,S=u.JsType,v=o(i);t:do{try{b=r(o(i),[],!1)}catch(t){if(Kotlin.isType(t,d)){b=null;break t}throw t}}while(0);f.bodyType=h(S,v,b)}return _(f),Kotlin.setCoroutineResult(new a(f,t),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.request.forms.prepareFormWithBinaryData_rrwb9t$",wrapFunction((function(){var t=Kotlin.kotlin.Unit,e=Kotlin.wrapFunction,n=_.io.ktor.client.request.url_g8iu3v$,i=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,o=_.io.ktor.client.request.forms.MultiPartFormDataContent,r=Kotlin.getKClass,s=Kotlin.createKType,a=_.io.ktor.client.request.HttpRequestBuilder,c=_.io.ktor.client.statement.HttpStatement,l=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.content,u=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.content.OutgoingContent,h=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect,d=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect.typeInfoImpl_1lvkm8$,p=Error;function m(e){return t}function f(e,i){return function(o){return n(o,e),i(o),t}}return e((function(){var e=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.content,n=_.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.content.OutgoingContent,a=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect,c=Kotlin.getKClass,l=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect.typeInfoImpl_1lvkm8$,u=Error;return function(h,d){return function(p){p.method=i.Companion.Post;var _=new o(h);if(null==_){p.body=e.NullBody;var m,f=a.JsType,g=c(o);t:do{try{m=s(r(o),[],!1)}catch(t){if(Kotlin.isType(t,u)){m=null;break t}throw t}}while(0);p.bodyType=l(f,g,m)}else if(Kotlin.isType(_,n))p.body=_,p.bodyType=null;else{p.body=_;var $,E=a.JsType,y=c(o);t:do{try{$=s(r(o),[],!1)}catch(t){if(Kotlin.isType(t,u)){$=null;break t}throw t}}while(0);p.bodyType=l(E,y,$)}return d(p),t}}})),function(t,e,n,_,g){void 0===_&&(_=m);var $=new a;$.method=i.Companion.Post;var E=new o(n);if(null==E){$.body=l.NullBody;var y,b=h.JsType,S=r(o);t:do{try{y=s(r(o),[],!1)}catch(t){if(Kotlin.isType(t,p)){y=null;break t}throw t}}while(0);$.bodyType=d(b,S,y)}else if(Kotlin.isType(E,u))$.body=E,$.bodyType=null;else{$.body=E;var v,C=h.JsType,N=r(o);t:do{try{v=s(r(o),[],!1)}catch(t){if(Kotlin.isType(t,p)){v=null;break t}throw t}}while(0);$.bodyType=d(C,N,v)}return f(e,_)($),Kotlin.setCoroutineResult(new c($,t),Kotlin.coroutineReceiver()),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.statement.receive_n40086$",wrapFunction((function(){var t=Kotlin.kotlin.IllegalStateException_init_pdl1vj$;return function(e,n,i,o){throw t("Use `body` method instead".toString())}}))),defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.statement.receive_wkua8a$",wrapFunction((function(){var t=Kotlin.kotlin.IllegalStateException_init_pdl1vj$;return function(e,n,i,o,r){throw t("Use `body` method instead".toString())}}))),Object.defineProperty(DefaultHttpResponse.prototype,"call",{get:function(){return this.call_9p3cfk$_0}}),Object.defineProperty(DefaultHttpResponse.prototype,"coroutineContext",{configurable:!0,get:function(){return this.coroutineContext_5l7f2v$_0}}),Object.defineProperty(DefaultHttpResponse.prototype,"status",{configurable:!0,get:function(){return this.status_gsg6kc$_0}}),Object.defineProperty(DefaultHttpResponse.prototype,"version",{configurable:!0,get:function(){return this.version_vctfwy$_0}}),Object.defineProperty(DefaultHttpResponse.prototype,"requestTime",{configurable:!0,get:function(){return this.requestTime_34y64q$_0}}),Object.defineProperty(DefaultHttpResponse.prototype,"responseTime",{configurable:!0,get:function(){return this.responseTime_u9wao0$_0}}),Object.defineProperty(DefaultHttpResponse.prototype,"content",{configurable:!0,get:function(){return this.content_7wqjir$_0}}),Object.defineProperty(DefaultHttpResponse.prototype,"headers",{configurable:!0,get:function(){return this.headers_gyyq4g$_0}}),DefaultHttpResponse.$metadata$={kind:Kind_CLASS,simpleName:"DefaultHttpResponse",interfaces:[HttpResponse]},HttpResponse.prototype.toString=function(){return"HttpResponse["+get_request(this).url+", "+this.status+"]"},HttpResponse.$metadata$={kind:Kind_CLASS,simpleName:"HttpResponse",interfaces:[CoroutineScope,HttpMessage]},Coroutine$bodyAsText.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$bodyAsText.prototype=Object.create(CoroutineImpl.prototype),Coroutine$bodyAsText.prototype.constructor=Coroutine$bodyAsText,Coroutine$bodyAsText.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;void 0===this.local$fallbackCharset&&(this.local$fallbackCharset=charsets.Charsets.UTF_8);var e,n=null!=(t=charset_0(this.local$$receiver))?t:this.local$fallbackCharset;this.local$decoder=n.newDecoder();var i,o=this.local$$receiver.call,r=reflect.JsType,s=getKClass(Input);t:do{try{i=createKType(getKClass(Input),[],!1)}catch(t){if(Kotlin.isType(t,Throwable)){i=null;break t}throw t}}while(0);if(this.state_0=2,this.result_0=o.bodyNullable_qi9ur9$(typeInfoImpl(r,s,i),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:this.result_0=Kotlin.isType(e=this.result_0,Input)?e:throwCCE();var a=this.result_0;return decode(this.local$decoder,a);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Object.defineProperty(HttpResponsePipeline.prototype,"developmentMode",{get:function(){return this.developmentMode_368lah$_0}}),HttpResponsePipeline$Phases.$metadata$={kind:Kind_OBJECT,simpleName:"Phases",interfaces:[]};var HttpResponsePipeline$Phases_instance=null;function HttpResponsePipeline$Phases_getInstance(){return null===HttpResponsePipeline$Phases_instance&&new HttpResponsePipeline$Phases,HttpResponsePipeline$Phases_instance}function HttpReceivePipeline(t){HttpReceivePipeline$Phases_getInstance(),void 0===t&&(t=!1),Pipeline.call(this,[HttpReceivePipeline$Phases_getInstance().Before,HttpReceivePipeline$Phases_getInstance().State,HttpReceivePipeline$Phases_getInstance().After]),this.developmentMode_wr860l$_0=t}function HttpReceivePipeline$Phases(){HttpReceivePipeline$Phases_instance=this,this.Before=new PipelinePhase("Before"),this.State=new PipelinePhase("State"),this.After=new PipelinePhase("After")}HttpResponsePipeline.$metadata$={kind:Kind_CLASS,simpleName:"HttpResponsePipeline",interfaces:[Pipeline]},Object.defineProperty(HttpReceivePipeline.prototype,"developmentMode",{get:function(){return this.developmentMode_wr860l$_0}}),HttpReceivePipeline$Phases.$metadata$={kind:Kind_OBJECT,simpleName:"Phases",interfaces:[]};var HttpReceivePipeline$Phases_instance=null,DEFAULT_HTTP_POOL_SIZE,DEFAULT_HTTP_BUFFER_SIZE;function HttpReceivePipeline$Phases_getInstance(){return null===HttpReceivePipeline$Phases_instance&&new HttpReceivePipeline$Phases,HttpReceivePipeline$Phases_instance}function HttpResponseContainer(t,e){this.expectedType=t,this.response=e}function HttpStatement(t,e){this.builder_0=t,this.client=e,this.checkCapabilities_0()}function Coroutine$execute_2rh6on$(t,e,n){CoroutineImpl.call(this,n),this.exceptionState_0=10,this.$this=t,this.local$response=void 0,this.local$block=e}function Coroutine$HttpStatement$execute$lambda(t,e){CoroutineImpl.call(this,e),this.exceptionState_0=1,this.local$it=t}function HttpStatement$execute$lambda(t,e,n){var i=new Coroutine$HttpStatement$execute$lambda(t,e);return n?i:i.doResume(null)}function Coroutine$body_287e2$(t,e,n,i){CoroutineImpl.call(this,i),this.exceptionState_0=8,this.$this=t,this.local$tmp$=void 0,this.local$response=void 0,this.local$T_0=e,this.local$isT=n}function Coroutine$body_yswr0a$(t,e,n,i,o){CoroutineImpl.call(this,o),this.exceptionState_0=11,this.$this=t,this.local$response=void 0,this.local$T_0=e,this.local$isT=n,this.local$block=i}function Coroutine$executeUnsafe(t,e){CoroutineImpl.call(this,e),this.exceptionState_0=4,this.$this=t}function Coroutine$cleanup_abn2de$(t,e,n){CoroutineImpl.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Coroutine$observable$lambda(t,e,n,i,o,r){CoroutineImpl.call(this,r),this.$controller=o,this.exceptionState_0=11,this.local$closure$contentLength=t,this.local$this$observable=e,this.local$closure$listener=n,this.local$$receiver=void 0,this.local$instance=void 0,this.local$this$observable_0=void 0,this.local$closure$listener_0=void 0,this.local$total=void 0,this.local$bytesSend=void 0,this.local$read=void 0,this.local$$receiver_0=i}function observable$lambda(t,e,n){return function(i,o,r){var s=new Coroutine$observable$lambda(t,e,n,i,this,o);return r?s:s.doResume(null)}}function observable(t,e,n,i){return writer(coroutines.GlobalScope,e,!0,observable$lambda(n,t,i)).channel}HttpReceivePipeline.$metadata$={kind:Kind_CLASS,simpleName:"HttpReceivePipeline",interfaces:[Pipeline]},HttpResponseContainer.$metadata$={kind:Kind_CLASS,simpleName:"HttpResponseContainer",interfaces:[]},HttpResponseContainer.prototype.component1=function(){return this.expectedType},HttpResponseContainer.prototype.component2=function(){return this.response},HttpResponseContainer.prototype.copy_487ue8$=function(t,e){return new HttpResponseContainer(void 0===t?this.expectedType:t,void 0===e?this.response:e)},HttpResponseContainer.prototype.toString=function(){return"HttpResponseContainer(expectedType="+Kotlin.toString(this.expectedType)+", response="+Kotlin.toString(this.response)+")"},HttpResponseContainer.prototype.hashCode=function(){var t=0;return t=31*(t=31*t+Kotlin.hashCode(this.expectedType)|0)+Kotlin.hashCode(this.response)|0},HttpResponseContainer.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&Kotlin.equals(this.expectedType,t.expectedType)&&Kotlin.equals(this.response,t.response)},Coroutine$execute_2rh6on$.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$execute_2rh6on$.prototype=Object.create(CoroutineImpl.prototype),Coroutine$execute_2rh6on$.prototype.constructor=Coroutine$execute_2rh6on$,Coroutine$execute_2rh6on$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.exceptionState_0=8,this.state_0=1,this.result_0=this.$this.executeUnsafe(this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:if(this.local$response=this.result_0,this.exceptionState_0=5,this.state_0=2,this.result_0=this.local$block(this.local$response,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 2:this.exceptionState_0=10,this.finallyPath_0=[3],this.state_0=6,this.$returnValue=this.result_0;continue;case 3:return this.$returnValue;case 4:this.exceptionState_0=10,this.state_0=9;continue;case 5:this.finallyPath_0=[8],this.state_0=6;continue;case 6:if(this.exceptionState_0=8,this.state_0=7,this.result_0=this.$this.cleanup_abn2de$(this.local$response,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 7:this.state_0=this.finallyPath_0.shift();continue;case 8:this.exceptionState_0=10;var t=this.exception_0;throw Kotlin.isType(t,CancellationException)?unwrapCancellationException(t):t;case 9:return;case 10:throw this.exception_0;default:throw this.state_0=10,new Error("State Machine Unreachable execution")}}catch(t){if(10===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HttpStatement.prototype.execute_2rh6on$=function(t,e,n){var i=new Coroutine$execute_2rh6on$(this,t,e);return n?i:i.doResume(null)},Coroutine$HttpStatement$execute$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$HttpStatement$execute$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$HttpStatement$execute$lambda.prototype.constructor=Coroutine$HttpStatement$execute$lambda,Coroutine$HttpStatement$execute$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=save(this.local$it.call,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:return this.result_0.response;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HttpStatement.prototype.execute=function(t){return this.execute_2rh6on$(HttpStatement$execute$lambda,t)},Coroutine$body_287e2$.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$body_287e2$.prototype=Object.create(CoroutineImpl.prototype),Coroutine$body_287e2$.prototype.constructor=Coroutine$body_287e2$,Coroutine$body_287e2$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.exceptionState_0=6,this.state_0=1,this.result_0=this.$this.executeUnsafe(this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:var t;this.local$response=this.result_0,this.exceptionState_0=4;var e,n=this.local$response.call,i=reflect.JsType,o=getKClass(this.local$T_0);t:do{try{e=getReifiedTypeParameterKType(this.local$T_0)}catch(t){if(Kotlin.isType(t,Throwable)){e=null;break t}throw t}}while(0);if(this.state_0=2,this.result_0=n.bodyNullable_qi9ur9$(typeInfoImpl(i,o,e),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 2:this.result_0=this.local$isT(t=this.result_0)?t:throwCCE(),this.local$tmp$=this.result_0,this.exceptionState_0=6,this.finallyPath_0=[3],this.state_0=5;continue;case 3:return this.local$tmp$;case 4:this.finallyPath_0=[6],this.state_0=5;continue;case 5:this.exceptionState_0=6,complete(this.local$response),this.state_0=this.finallyPath_0.shift();continue;case 6:this.exceptionState_0=8;var r=this.exception_0;throw Kotlin.isType(r,CancellationException)?unwrapCancellationException(r):r;case 7:return;case 8:throw this.exception_0;default:throw this.state_0=8,new Error("State Machine Unreachable execution")}}catch(t){if(8===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HttpStatement.prototype.body_287e2$=function(t,e,n,i){var o=new Coroutine$body_287e2$(this,t,e,n);return i?o:o.doResume(null)},defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.statement.HttpStatement.body_287e2$",wrapFunction((function(){var t=Kotlin.getReifiedTypeParameterKType,e=_.io.ktor.client.statement.complete_abn2de$,n=Kotlin.wrapFunction,i=_.io.ktor.client.utils.unwrapCancellationException_dbl4o4$,o=Kotlin.kotlin.coroutines.cancellation.CancellationException,r=Kotlin.throwCCE,s=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect,a=Kotlin.getKClass,c=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect.typeInfoImpl_1lvkm8$,l=Error;return n((function(){var n=Kotlin.throwCCE,i=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect,o=Kotlin.getKClass,r=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect.typeInfoImpl_1lvkm8$,s=Error;return function(a,c,l,u){return function(){var h;c.executeUnsafe(a);var d=a.$$coroutineResult$$;try{var p,_,m=l,f=u,g=d.call,$=i.JsType,E=o(m);t:do{try{_=t(l)}catch(t){if(Kotlin.isType(t,s)){_=null;break t}throw t}}while(0);g.bodyNullable_qi9ur9$(r($,E,_),$this$),$this$.$$coroutineResult$$=f(p=$this$.$$coroutineResult$$)?p:n(),h=a.$$coroutineResult$$}finally{e(d)}return h}}})),function(n,u,h){try{var d;Kotlin.suspendCall(this.executeUnsafe(Kotlin.coroutineReceiver()));var p=Kotlin.coroutineResult(Kotlin.coroutineReceiver());try{var _,m,f=p.call,g=s.JsType,$=a(n);t:do{try{m=t(n)}catch(t){if(Kotlin.isType(t,l)){m=null;break t}throw t}}while(0);Kotlin.suspendCall(f.bodyNullable_qi9ur9$(c(g,$,m),Kotlin.coroutineReceiver())),Kotlin.setCoroutineResult(u(_=Kotlin.coroutineResult(Kotlin.coroutineReceiver()))?_:r(),Kotlin.coroutineReceiver()),d=Kotlin.coroutineResult(Kotlin.coroutineReceiver())}finally{e(p)}return d}catch(t){throw Kotlin.isType(t,o)?i(t):t}}}))),Coroutine$body_yswr0a$.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$body_yswr0a$.prototype=Object.create(CoroutineImpl.prototype),Coroutine$body_yswr0a$.prototype.constructor=Coroutine$body_yswr0a$,Coroutine$body_yswr0a$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.exceptionState_0=9,this.state_0=1,this.result_0=this.$this.executeUnsafe(this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:var t;this.local$response=this.result_0,this.exceptionState_0=6;var e,n=this.local$response.call,i=reflect.JsType,o=getKClass(this.local$T_0);t:do{try{e=getReifiedTypeParameterKType(this.local$T_0)}catch(t){if(Kotlin.isType(t,Throwable)){e=null;break t}throw t}}while(0);if(this.state_0=2,this.result_0=n.bodyNullable_qi9ur9$(typeInfoImpl(i,o,e),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 2:this.result_0=this.local$isT(t=this.result_0)?t:throwCCE();var r=this.result_0;if(this.state_0=3,this.result_0=this.local$block(r,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 3:this.exceptionState_0=11,this.finallyPath_0=[4],this.state_0=7,this.$returnValue=this.result_0;continue;case 4:return this.$returnValue;case 5:this.exceptionState_0=11,this.state_0=10;continue;case 6:this.finallyPath_0=[9],this.state_0=7;continue;case 7:if(this.exceptionState_0=9,this.state_0=8,this.result_0=this.$this.cleanup_abn2de$(this.local$response,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 8:this.state_0=this.finallyPath_0.shift();continue;case 9:this.exceptionState_0=11;var s=this.exception_0;throw Kotlin.isType(s,CancellationException)?unwrapCancellationException(s):s;case 10:return;case 11:throw this.exception_0;default:throw this.state_0=11,new Error("State Machine Unreachable execution")}}catch(t){if(11===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HttpStatement.prototype.body_yswr0a$=function(t,e,n,i,o){var r=new Coroutine$body_yswr0a$(this,t,e,n,i);return o?r:r.doResume(null)},defineInlineFunction("ktor-ktor-client-core-js-legacy.io.ktor.client.statement.HttpStatement.body_yswr0a$",wrapFunction((function(){var t=Kotlin.getReifiedTypeParameterKType,e=Kotlin.wrapFunction,n=_.io.ktor.client.utils.unwrapCancellationException_dbl4o4$,i=Kotlin.kotlin.coroutines.cancellation.CancellationException,o=Kotlin.throwCCE,r=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect,s=Kotlin.getKClass,a=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect.typeInfoImpl_1lvkm8$,c=Error;return e((function(){var e=Kotlin.throwCCE,n=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect,i=Kotlin.getKClass,o=_.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect.typeInfoImpl_1lvkm8$,r=Error;return function(s,a,c,l,u){return function(){a.executeUnsafe(s);var h=s.$$coroutineResult$$;try{var d,p,_=c,m=l,f=h.call,g=n.JsType,$=i(_);t:do{try{p=t(c)}catch(t){if(Kotlin.isType(t,r)){p=null;break t}throw t}}while(0);f.bodyNullable_qi9ur9$(o(g,$,p),$this$),$this$.$$coroutineResult$$=m(d=$this$.$$coroutineResult$$)?d:e();var E=s.$$coroutineResult$$;return u(E,s),s.$$coroutineResult$$}finally{a.cleanup_abn2de$(h,s)}}}})),function(e,l,u,h){try{Kotlin.suspendCall(this.executeUnsafe(Kotlin.coroutineReceiver()));var d=Kotlin.coroutineResult(Kotlin.coroutineReceiver());try{var p,_,m=d.call,f=r.JsType,g=s(e);t:do{try{_=t(e)}catch(t){if(Kotlin.isType(t,c)){_=null;break t}throw t}}while(0);Kotlin.suspendCall(m.bodyNullable_qi9ur9$(a(f,g,_),Kotlin.coroutineReceiver())),Kotlin.setCoroutineResult(l(p=Kotlin.coroutineResult(Kotlin.coroutineReceiver()))?p:o(),Kotlin.coroutineReceiver());var $=Kotlin.coroutineResult(Kotlin.coroutineReceiver());return Kotlin.suspendCall(u($,Kotlin.coroutineReceiver())),Kotlin.coroutineResult(Kotlin.coroutineReceiver())}finally{Kotlin.suspendCall(this.cleanup_abn2de$(d,Kotlin.coroutineReceiver()))}}catch(t){throw Kotlin.isType(t,i)?n(t):t}}}))),Coroutine$executeUnsafe.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$executeUnsafe.prototype=Object.create(CoroutineImpl.prototype),Coroutine$executeUnsafe.prototype.constructor=Coroutine$executeUnsafe,Coroutine$executeUnsafe.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.exceptionState_0=2;var t=(new HttpRequestBuilder).takeFromWithExecutionContext_s9rlw$(this.$this.builder_0);if(this.state_0=1,this.result_0=this.$this.client.execute_jc2hdt$(t,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:return this.result_0.response;case 2:this.exceptionState_0=4;var e=this.exception_0;throw Kotlin.isType(e,CancellationException)?unwrapCancellationException(e):e;case 3:return;case 4:throw this.exception_0;default:throw this.state_0=4,new Error("State Machine Unreachable execution")}}catch(t){if(4===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HttpStatement.prototype.executeUnsafe=function(t,e){var n=new Coroutine$executeUnsafe(this,t);return e?n:n.doResume(null)},Coroutine$cleanup_abn2de$.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$cleanup_abn2de$.prototype=Object.create(CoroutineImpl.prototype),Coroutine$cleanup_abn2de$.prototype.constructor=Coroutine$cleanup_abn2de$,Coroutine$cleanup_abn2de$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e=Kotlin.isType(t=ensureNotNull(this.local$$receiver.coroutineContext.get_j3r2sn$(Job.Key)),CompletableJob)?t:throwCCE();e.complete();try{cancel_1(this.local$$receiver.content)}catch(t){if(!Kotlin.isType(t,Throwable))throw t}if(this.state_0=2,this.result_0=e.join(this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HttpStatement.prototype.cleanup_abn2de$=function(t,e,n){var i=new Coroutine$cleanup_abn2de$(this,t,e);return n?i:i.doResume(null)},HttpStatement.prototype.checkCapabilities_0=function(){var t,e,n,i,o;if(null!=(e=null!=(t=this.builder_0.attributes.getOrNull_yzaw86$(ENGINE_CAPABILITIES_KEY))?t.keys:null)){var r,s=ArrayList_init();for(r=e.iterator();r.hasNext();){var a=r.next();Kotlin.isType(a,HttpClientPlugin)&&s.add_11rb$(a)}i=s}else i=null;if(null!=(n=i))for(o=n.iterator();o.hasNext();){var c=o.next();if(null==pluginOrNull(this.client,c))throw IllegalArgumentException_init(("Consider installing "+c+" plugin because the request requires it to be installed").toString())}},HttpStatement.prototype.toString=function(){return"HttpStatement["+this.builder_0.url.buildString()+"]"},HttpStatement.$metadata$={kind:Kind_CLASS,simpleName:"HttpStatement",interfaces:[]},Coroutine$observable$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$observable$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$observable$lambda.prototype.constructor=Coroutine$observable$lambda,Coroutine$observable$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$$receiver=pool.ByteArrayPool,this.local$instance=this.local$$receiver.borrow(),this.exceptionState_0=9;var t=this.local$closure$contentLength;this.local$this$observable_0=this.local$this$observable,this.local$closure$listener_0=this.local$closure$listener,this.local$total=null!=t?t:L_1,this.local$bytesSend=L0,this.state_0=1;continue;case 1:if(this.local$this$observable_0.isClosedForRead){this.state_0=5;continue}if(this.state_0=2,this.result_0=readAvailable_0(this.local$this$observable_0,this.local$instance,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 2:if(this.local$read=this.result_0,this.state_0=3,this.result_0=this.local$$receiver_0.channel.writeFully_mj6st8$(this.local$instance,0,this.local$read,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 3:if(this.local$bytesSend=this.local$bytesSend.add(Kotlin.Long.fromInt(this.local$read)),this.state_0=4,this.result_0=this.local$closure$listener_0(this.local$bytesSend,this.local$total,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 4:this.state_0=1;continue;case 5:var e=this.local$this$observable_0.closedCause;if(this.local$$receiver_0.channel.close_dbl4no$(e),null==e&&equals(this.local$bytesSend,L0)){if(this.state_0=6,this.result_0=this.local$closure$listener_0(this.local$bytesSend,this.local$total,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue}this.state_0=7;continue;case 6:this.state_0=7;continue;case 7:this.exceptionState_0=11,this.finallyPath_0=[8],this.state_0=10;continue;case 8:return Unit;case 9:this.finallyPath_0=[11],this.state_0=10;continue;case 10:this.exceptionState_0=11,this.local$$receiver.recycle_trkh7z$(this.local$instance),this.state_0=this.finallyPath_0.shift();continue;case 11:throw this.exception_0;default:throw this.state_0=11,new Error("State Machine Unreachable execution")}}catch(t){if(11===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}};var CacheControl_instance_0=null,HttpRequestCreated,HttpRequestIsReadyForSending,HttpResponseReceived,HttpResponseReceiveFailed,HttpResponseCancelled;function HttpResponseReceiveFail(t,e){this.response=t,this.cause=e}function EmptyContent(){EmptyContent_instance=this,OutgoingContent$NoContent.call(this),this.contentLength_89rfwp$_0=L0}HttpResponseReceiveFail.$metadata$={kind:Kind_CLASS,simpleName:"HttpResponseReceiveFail",interfaces:[]},Object.defineProperty(EmptyContent.prototype,"contentLength",{configurable:!0,get:function(){return this.contentLength_89rfwp$_0}}),EmptyContent.prototype.toString=function(){return"EmptyContent"},EmptyContent.$metadata$={kind:Kind_OBJECT,simpleName:"EmptyContent",interfaces:[OutgoingContent$NoContent]};var EmptyContent_instance=null;function EmptyContent_getInstance(){return null===EmptyContent_instance&&new EmptyContent,EmptyContent_instance}function buildHeaders$lambda(t){return Unit}function buildHeaders(t){void 0===t&&(t=buildHeaders$lambda);var e=new HeadersBuilder;return t(e),e.build()}var ProxyBuilder_instance=null;function Js(){Js_instance=this}Js.prototype.create_dxyxif$$default=function(t){var e=new HttpClientEngineConfig;return t(e),new JsClientEngine(e)},Js.$metadata$={kind:Kind_OBJECT,simpleName:"Js",interfaces:[HttpClientEngineFactory]};var Js_instance=null;function Js_getInstance(){return null===Js_instance&&new Js,Js_instance}function suspendCancellableCoroutine$lambda(t){return function(e){var n=new CancellableContinuationImpl_init(intercepted(e),1);return n.initCancellability(),t(n),n.getResult()}}function JsClientEngine(t){if(HttpClientEngineBase.call(this,"ktor-js"),this.config_2md4la$_0=t,this.dispatcher_j9yf5v$_0=coroutines.Dispatchers.Default,this.supportedCapabilities_380cpg$_0=setOf_0([HttpTimeout$Plugin_getInstance(),WebSocketCapability_getInstance()]),null!=this.config.proxy)throw IllegalStateException_init("Proxy unsupported in Js engine.".toString())}function Coroutine$execute_dkgphz$(t,e,n){CoroutineImpl.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$callContext=void 0,this.local$clientConfig=void 0,this.local$requestTime=void 0,this.local$data=e}function JsClientEngine$createWebSocket$ObjectLiteral(){}function JsClientEngine$createWebSocket$lambda(t){return function(e,n){return t[e]=joinToString(n,","),Unit}}function Coroutine$executeWebSocketRequest_0(t,e,n,i){CoroutineImpl.call(this,i),this.exceptionState_0=4,this.$this=t,this.local$requestTime=void 0,this.local$urlString=void 0,this.local$socket=void 0,this.local$request=e,this.local$callContext=n}function awaitConnection$lambda$lambda(t,e){return function(n){switch(n.type){case"open":var i=e;t.resumeWith_tl1gpc$(new Result(i));break;case"error":var o=t,r=new WebSocketException(asString(n));o.resumeWith_tl1gpc$(new Result(createFailure(r)))}return Unit}}function awaitConnection$lambda$lambda_0(t,e){return function(n){return e.removeEventListener("open",t),e.removeEventListener("error",t),null!=n&&e.close(),Unit}}function awaitConnection$lambda(t){return function(e){if(!e.isCancelled){var n=awaitConnection$lambda$lambda(e,t);return t.addEventListener("open",n),t.addEventListener("error",n),e.invokeOnCancellation_f05bi3$(awaitConnection$lambda$lambda_0(n,t)),Unit}}}function Coroutine$awaitConnection(t,e){CoroutineImpl.call(this,e),this.exceptionState_0=1,this.local$$receiver=t}function awaitConnection(t,e,n){var i=new Coroutine$awaitConnection(t,e);return n?i:i.doResume(null)}function asString(t){var e=StringBuilder_init();return e.append_pdl1vj$(JSON.stringify(t,["message","target","type","isTrusted"])),e.toString()}function mapToKtor$lambda$lambda(t){return function(e,n){return t.append_puj7f4$(n,e),Unit}}function mapToKtor$lambda(t){return function(e){return t.forEach(mapToKtor$lambda$lambda(e)),Unit}}function mapToKtor(t){return buildHeaders(mapToKtor$lambda(t))}function JsError(t){Throwable.call(this),this.message_9vnttw$_0="Error from javascript["+t.toString()+"].",this.cause_kdow7y$_0=null,this.origin=t,Kotlin.captureStack(Throwable,this),this.name="JsError"}function toRaw$lambda(t){return function(e,n){return t[e]=n,Unit}}function Coroutine$toRaw$lambda(t,e,n,i){CoroutineImpl.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$closure$content=t,this.local$$receiver=e}function toRaw$lambda_0(t){return function(e,n,i){var o=new Coroutine$toRaw$lambda(t,e,this,n);return i?o:o.doResume(null)}}function toRaw$lambda_1(t,e,n,i){return function(o){return o.method=t.method.value,o.headers=e,o.redirect=n.followRedirects?"follow":"manual",null!=i&&(o.body=new Uint8Array(toTypedArray(i))),Unit}}function Coroutine$toRaw(t,e,n,i){CoroutineImpl.call(this,i),this.exceptionState_0=1,this.local$tmp$=void 0,this.local$jsHeaders=void 0,this.local$$receiver=t,this.local$clientConfig=e,this.local$callContext=n}function toRaw(t,e,n,i,o){var r=new Coroutine$toRaw(t,e,n,i);return o?r:r.doResume(null)}function buildObject(t){var e,n=null==(e={})||Kotlin.isType(e,Any)?e:throwCCE();return t(n),n}function asByteArray(t){return new Int8Array(t.buffer,t.byteOffset,t.length)}function suspendCancellableCoroutine$lambda_0(t){return function(e){var n=new CancellableContinuationImpl_init(intercepted(e),1);return n.initCancellability(),t(n),n.getResult()}}function readBodyBrowser(t,e){var n;return null==(n=e.body)?ByteReadChannel.Companion.Empty:channelFromStream(t,n)}function Coroutine$channelFromStream$lambda(t,e,n,i){CoroutineImpl.call(this,i),this.$controller=n,this.exceptionState_0=8,this.local$closure$stream=t,this.local$tmp$=void 0,this.local$reader=void 0,this.local$$receiver=e}function channelFromStream$lambda(t){return function(e,n,i){var o=new Coroutine$channelFromStream$lambda(t,e,this,n);return i?o:o.doResume(null)}}function channelFromStream(t,e){return writer(t,void 0,void 0,channelFromStream$lambda(e)).channel}function readChunk$lambda$lambda(t){return function(e){var n=e.value,i=e.done||null==n?null:n;return t.resumeWith_tl1gpc$(new Result(i)),Unit}}function readChunk$lambda$lambda_0(t){return function(e){return t.resumeWith_tl1gpc$(new Result(createFailure(e))),Unit}}function readChunk$lambda(t){return function(e){return t.read().then(readChunk$lambda$lambda(e)).catch(readChunk$lambda$lambda_0(e)),Unit}}function Coroutine$readChunk(t,e){CoroutineImpl.call(this,e),this.exceptionState_0=1,this.local$$receiver=t}function readChunk(t,e,n){var i=new Coroutine$readChunk(t,e);return n?i:i.doResume(null)}function suspendCancellableCoroutine$lambda_1(t){return function(e){var n=new CancellableContinuationImpl_init(intercepted(e),1);return n.initCancellability(),t(n),n.getResult()}}function commonFetch$lambda$lambda(t){return function(e){return t.abort(),Unit}}function commonFetch$lambda$lambda_0(t){return function(e){return t.resumeWith_tl1gpc$(new Result(e)),Unit}}function commonFetch$lambda$lambda_1(t){return function(e){return t.resumeWith_tl1gpc$(new Result(createFailure(new Error_0("Fail to fetch",e)))),Unit}}function commonFetch$lambda(t,e){return function(n){var i=AbortController_0();return t.signal=i.signal,n.invokeOnCancellation_f05bi3$(commonFetch$lambda$lambda(i)),(util.PlatformUtils.IS_BROWSER?fetch(e,t):jsRequireNodeFetch()(e,t)).then(commonFetch$lambda$lambda_0(n),commonFetch$lambda$lambda_1(n)),Unit}}function Coroutine$commonFetch(t,e,n){CoroutineImpl.call(this,n),this.exceptionState_0=1,this.local$input=t,this.local$init=e}function commonFetch(t,e,n,i){var o=new Coroutine$commonFetch(t,e,n);return i?o:o.doResume(null)}function AbortController_0(){var tmp$;if(util.PlatformUtils.IS_BROWSER)tmp$=new AbortController;else{var controller=eval("require")("abort-controller");tmp$=new controller}return tmp$}function readBody(t,e){return util.PlatformUtils.IS_BROWSER?readBodyBrowser(t,e):readBodyNode(t,e)}function jsRequireNodeFetch(){try{return eval("require")("node-fetch")}catch(t){throw Error_init("Error loading module 'node-fetch': "+t.toString())}}function readBodyNode$lambda$lambda(t,e){return function(n){return t.trySend_11rb$(asByteArray(new Uint8Array(n))).isSuccess,e.pause()}}function readBodyNode$lambda$lambda_0(t,e){return function(n){var i=new JsError(n);return t.close_dbl4no$(i),e.channel.close_dbl4no$(i)}}function readBodyNode$lambda$lambda_1(t){return function(){return t.close_dbl4no$()}}function Coroutine$readBodyNode$lambda(t,e,n,i){CoroutineImpl.call(this,i),this.$controller=n,this.exceptionState_0=8,this.local$closure$response=t,this.local$tmp$_0=void 0,this.local$body=void 0,this.local$$receiver=e}function readBodyNode$lambda(t){return function(e,n,i){var o=new Coroutine$readBodyNode$lambda(t,e,this,n);return i?o:o.doResume(null)}}function readBodyNode(t,e){return writer(t,void 0,void 0,readBodyNode$lambda(e)).channel}function platformRequestDefaultTransform(t,e,n){return null}function platformResponseDefaultTransformers(t){}function JsWebSocketSession(t,e){var n;this.coroutineContext_rv3h91$_0=t,this.websocket_0=e,this._closeReason_0=CompletableDeferred(),this._incoming_0=Channel(2147483647),this._outgoing_0=Channel(2147483647),this.incoming_z0xtng$_0=this._incoming_0,this.outgoing_j2o89i$_0=this._outgoing_0,this.closeReason_qo69t6$_0=this._closeReason_0,this.websocket_0.binaryType="arraybuffer",this.websocket_0.addEventListener("message",JsWebSocketSession_init$lambda(this)),this.websocket_0.addEventListener("error",JsWebSocketSession_init$lambda_0(this)),this.websocket_0.addEventListener("close",JsWebSocketSession_init$lambda_1(this)),launch(this,void 0,void 0,JsWebSocketSession_init$lambda_2(this)),null!=(n=this.coroutineContext.get_j3r2sn$(Job.Key))&&n.invokeOnCompletion_f05bi3$(JsWebSocketSession_init$lambda_3(this))}function JsWebSocketSession_init$lambda(t){return function(e){var n,i=e,o=i.data;if(Kotlin.isType(o,ArrayBuffer))n=Frame$Frame$Binary_init(!1,new Int8Array(o));else{if("string"!=typeof o){var r=IllegalStateException_init("Unknown frame type: "+i.type);throw t._closeReason_0.completeExceptionally_tcv7n7$(r),r}n=Frame$Frame$Text_init(o)}var s=n;return t._incoming_0.trySend_11rb$(s),Unit}}function JsWebSocketSession_init$lambda_0(t){return function(e){var n=new WebSocketException(e.toString());return t._closeReason_0.completeExceptionally_tcv7n7$(n),t._incoming_0.close_dbl4no$(n),t._outgoing_0.cancel_x5z25k$(),Unit}}function JsWebSocketSession_init$lambda_1(t){return function(e){var n,i,o=new CloseReason("number"==typeof(n=e.code)?n:throwCCE(),"string"==typeof(i=e.reason)?i:throwCCE());return t._closeReason_0.complete_11rb$(o),t._incoming_0.trySend_11rb$(Frame$Frame$Close_init(o)),t._incoming_0.close_dbl4no$(),t._outgoing_0.cancel_x5z25k$(),Unit}}function Coroutine$JsWebSocketSession_init$lambda(t,e,n,i){CoroutineImpl.call(this,i),this.$controller=n,this.exceptionState_0=8,this.local$this$JsWebSocketSession=t,this.local$$receiver=void 0,this.local$cause=void 0,this.local$tmp$=void 0}function JsWebSocketSession_init$lambda_2(t){return function(e,n,i){var o=new Coroutine$JsWebSocketSession_init$lambda(t,e,this,n);return i?o:o.doResume(null)}}function JsWebSocketSession_init$lambda_3(t){return function(e){return null==e?t.websocket_0.close():t.websocket_0.close(CloseReason$Codes.INTERNAL_ERROR.code,"Client failed"),Unit}}function unwrapCancellationException(t){return t}Object.defineProperty(JsClientEngine.prototype,"config",{get:function(){return this.config_2md4la$_0}}),Object.defineProperty(JsClientEngine.prototype,"dispatcher",{configurable:!0,get:function(){return this.dispatcher_j9yf5v$_0}}),Object.defineProperty(JsClientEngine.prototype,"supportedCapabilities",{configurable:!0,get:function(){return this.supportedCapabilities_380cpg$_0}}),Coroutine$execute_dkgphz$.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$execute_dkgphz$.prototype=Object.create(CoroutineImpl.prototype),Coroutine$execute_dkgphz$.prototype.constructor=Coroutine$execute_dkgphz$,Coroutine$execute_dkgphz$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=callContext(this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:if(this.local$callContext=this.result_0,this.local$clientConfig=this.local$data.attributes.get_yzaw86$(CLIENT_CONFIG),isUpgradeRequest(this.local$data)){if(this.state_0=3,this.result_0=this.$this.executeWebSocketRequest_0(this.local$data,this.local$callContext,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue}this.state_0=4;continue;case 3:return this.result_0;case 4:if(this.local$requestTime=GMTDate(),this.state_0=5,this.result_0=toRaw(this.local$data,this.local$clientConfig,this.local$callContext,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 5:var t=this.result_0;if(this.state_0=6,this.result_0=commonFetch(this.local$data.url.toString(),t,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 6:var e=this.result_0,n=new HttpStatusCode(e.status,e.statusText),i=mapToKtor(e.headers),o=HttpProtocolVersion.Companion.HTTP_1_1,r=readBody(CoroutineScope_0(this.local$callContext),e);return new HttpResponseData(n,this.local$requestTime,i,o,r,this.local$callContext);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},JsClientEngine.prototype.execute_dkgphz$=function(t,e,n){var i=new Coroutine$execute_dkgphz$(this,t,e);return n?i:i.doResume(null)},JsClientEngine$createWebSocket$ObjectLiteral.$metadata$={kind:Kind_CLASS,interfaces:[]},JsClientEngine.prototype.createWebSocket_0=function(urlString_capturingHack,headers){if(util.PlatformUtils.IS_NODE){var ws_capturingHack=eval("require")("ws"),headers_capturingHack=new JsClientEngine$createWebSocket$ObjectLiteral;return headers.forEach_ubvtmq$(JsClientEngine$createWebSocket$lambda(headers_capturingHack)),new ws_capturingHack(urlString_capturingHack,{headers:headers_capturingHack})}return new WebSocket(urlString_capturingHack)},Coroutine$executeWebSocketRequest_0.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$executeWebSocketRequest_0.prototype=Object.create(CoroutineImpl.prototype),Coroutine$executeWebSocketRequest_0.prototype.constructor=Coroutine$executeWebSocketRequest_0,Coroutine$executeWebSocketRequest_0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$requestTime=GMTDate(),this.local$urlString=this.local$request.url.toString(),this.local$socket=this.$this.createWebSocket_0(this.local$urlString,this.local$request.headers),this.exceptionState_0=2,this.state_0=1,this.result_0=awaitConnection(this.local$socket,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:this.exceptionState_0=4,this.state_0=3;continue;case 2:this.exceptionState_0=4;var t=this.exception_0;throw Kotlin.isType(t,Throwable)?(cancel_3(this.local$callContext,CancellationException_init_0("Failed to connect to "+this.local$urlString,t)),t):t;case 3:var e=new JsWebSocketSession(this.local$callContext,this.local$socket);return new HttpResponseData(HttpStatusCode.Companion.OK,this.local$requestTime,Headers.Companion.Empty,HttpProtocolVersion.Companion.HTTP_1_1,e,this.local$callContext);case 4:throw this.exception_0;default:throw this.state_0=4,new Error("State Machine Unreachable execution")}}catch(t){if(4===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},JsClientEngine.prototype.executeWebSocketRequest_0=function(t,e,n,i){var o=new Coroutine$executeWebSocketRequest_0(this,t,e,n);return i?o:o.doResume(null)},JsClientEngine.$metadata$={kind:Kind_CLASS,simpleName:"JsClientEngine",interfaces:[HttpClientEngineBase]},Coroutine$awaitConnection.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$awaitConnection.prototype=Object.create(CoroutineImpl.prototype),Coroutine$awaitConnection.prototype.constructor=Coroutine$awaitConnection,Coroutine$awaitConnection.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=suspendCancellableCoroutine$lambda(awaitConnection$lambda(this.local$$receiver))(this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:return this.result_0,this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Object.defineProperty(JsError.prototype,"message",{get:function(){return this.message_9vnttw$_0}}),Object.defineProperty(JsError.prototype,"cause",{get:function(){return this.cause_kdow7y$_0}}),JsError.$metadata$={kind:Kind_CLASS,simpleName:"JsError",interfaces:[Throwable]},Coroutine$toRaw$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$toRaw$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$toRaw$lambda.prototype.constructor=Coroutine$toRaw$lambda,Coroutine$toRaw$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$closure$content.writeTo_h3x4ir$(this.local$$receiver.channel,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$toRaw.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$toRaw.prototype=Object.create(CoroutineImpl.prototype),Coroutine$toRaw.prototype.constructor=Coroutine$toRaw,Coroutine$toRaw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$jsHeaders={},mergeHeaders(this.local$$receiver.headers,this.local$$receiver.body,toRaw$lambda(this.local$jsHeaders));var t=this.local$$receiver.body;if(Kotlin.isType(t,OutgoingContent$ByteArrayContent)){this.local$tmp$=t.bytes(),this.state_0=6;continue}if(Kotlin.isType(t,OutgoingContent$ReadChannelContent)){if(this.state_0=4,this.result_0=t.readFrom().readRemaining_s8cxhz$(void 0,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue}if(Kotlin.isType(t,OutgoingContent$WriteChannelContent)){if(this.state_0=2,this.result_0=writer(coroutines.GlobalScope,this.local$callContext,void 0,toRaw$lambda_0(t)).channel.readRemaining_s8cxhz$(void 0,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue}this.local$tmp$=null,this.state_0=3;continue;case 1:throw this.exception_0;case 2:this.local$tmp$=readBytes(this.result_0),this.state_0=3;continue;case 3:this.state_0=5;continue;case 4:this.local$tmp$=readBytes(this.result_0),this.state_0=5;continue;case 5:this.state_0=6;continue;case 6:var e=this.local$tmp$;return buildObject(toRaw$lambda_1(this.local$$receiver,this.local$jsHeaders,this.local$clientConfig,e));default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$channelFromStream$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$channelFromStream$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$channelFromStream$lambda.prototype.constructor=Coroutine$channelFromStream$lambda,Coroutine$channelFromStream$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$reader=this.local$closure$stream.getReader(),this.state_0=1;continue;case 1:if(this.exceptionState_0=6,this.state_0=2,this.result_0=readChunk(this.local$reader,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 2:if(this.local$tmp$=this.result_0,null==this.local$tmp$){this.exceptionState_0=6,this.state_0=5;continue}this.state_0=3;continue;case 3:var t=this.local$tmp$;if(this.state_0=4,this.result_0=writeFully(this.local$$receiver.channel,asByteArray(t),this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 4:this.exceptionState_0=8,this.state_0=7;continue;case 5:return Unit;case 6:this.exceptionState_0=8;var e=this.exception_0;throw Kotlin.isType(e,Throwable)?(this.local$reader.cancel(e),e):e;case 7:this.state_0=1;continue;case 8:throw this.exception_0;default:throw this.state_0=8,new Error("State Machine Unreachable execution")}}catch(t){if(8===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$readChunk.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$readChunk.prototype=Object.create(CoroutineImpl.prototype),Coroutine$readChunk.prototype.constructor=Coroutine$readChunk,Coroutine$readChunk.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=suspendCancellableCoroutine$lambda_0(readChunk$lambda(this.local$$receiver))(this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:return this.result_0,this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$commonFetch.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$commonFetch.prototype=Object.create(CoroutineImpl.prototype),Coroutine$commonFetch.prototype.constructor=Coroutine$commonFetch,Coroutine$commonFetch.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=suspendCancellableCoroutine$lambda_1(commonFetch$lambda(this.local$init,this.local$input))(this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 1:throw this.exception_0;case 2:return this.result_0,this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Coroutine$readBodyNode$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$readBodyNode$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$readBodyNode$lambda.prototype.constructor=Coroutine$readBodyNode$lambda,Coroutine$readBodyNode$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e;if(null==(t=this.local$closure$response.body))throw IllegalStateException_init("Fail to get body".toString());e=t,this.local$body=e;var n=Channel(1);this.local$body.on("data",readBodyNode$lambda$lambda(n,this.local$body)),this.local$body.on("error",readBodyNode$lambda$lambda_0(n,this.local$$receiver)),this.local$body.on("end",readBodyNode$lambda$lambda_1(n)),this.exceptionState_0=6,this.local$tmp$_0=n.iterator(),this.state_0=1;continue;case 1:if(this.state_0=2,this.result_0=this.local$tmp$_0.hasNext(this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 2:if(this.result_0){this.state_0=3;continue}this.state_0=5;continue;case 3:var i=this.local$tmp$_0.next();if(this.state_0=4,this.result_0=writeFully(this.local$$receiver.channel,i,this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 4:this.local$body.resume(),this.state_0=1;continue;case 5:this.exceptionState_0=8,this.state_0=7;continue;case 6:this.exceptionState_0=8;var o=this.exception_0;throw Kotlin.isType(o,Throwable)?(this.local$body.destroy(o),o):o;case 7:return Unit;case 8:throw this.exception_0;default:throw this.state_0=8,new Error("State Machine Unreachable execution")}}catch(t){if(8===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Object.defineProperty(JsWebSocketSession.prototype,"coroutineContext",{get:function(){return this.coroutineContext_rv3h91$_0}}),Object.defineProperty(JsWebSocketSession.prototype,"incoming",{configurable:!0,get:function(){return this.incoming_z0xtng$_0}}),Object.defineProperty(JsWebSocketSession.prototype,"outgoing",{configurable:!0,get:function(){return this.outgoing_j2o89i$_0}}),Object.defineProperty(JsWebSocketSession.prototype,"extensions",{configurable:!0,get:function(){return emptyList()}}),Object.defineProperty(JsWebSocketSession.prototype,"closeReason",{configurable:!0,get:function(){return this.closeReason_qo69t6$_0}}),Object.defineProperty(JsWebSocketSession.prototype,"pingIntervalMillis",{configurable:!0,get:function(){throw new WebSocketException("Websocket ping-pong is not supported in JS engine.")},set:function(t){throw new WebSocketException("Websocket ping-pong is not supported in JS engine.")}}),Object.defineProperty(JsWebSocketSession.prototype,"timeoutMillis",{configurable:!0,get:function(){throw new WebSocketException("Websocket timeout is not supported in JS engine.")},set:function(t){throw new WebSocketException("Websocket timeout is not supported in JS engine.")}}),Object.defineProperty(JsWebSocketSession.prototype,"masking",{configurable:!0,get:function(){return!0},set:function(t){throw new WebSocketException("Masking switch is not supported in JS engine.")}}),Object.defineProperty(JsWebSocketSession.prototype,"maxFrameSize",{configurable:!0,get:function(){return Long$Companion$MAX_VALUE},set:function(t){throw new WebSocketException("Max frame size switch is not supported in Js engine.")}}),JsWebSocketSession.prototype.start_wwqcjq$$default=function(t){if(!t.isEmpty())throw IllegalArgumentException_init("Extensions are not supported.".toString())},JsWebSocketSession.prototype.flush=function(t){},JsWebSocketSession.prototype.terminate=function(){this._incoming_0.cancel_x5z25k$(),this._outgoing_0.cancel_x5z25k$(),cancel_2(this._closeReason_0,"WebSocket terminated"),this.websocket_0.close()},JsWebSocketSession.prototype.isReservedStatusCode_0=function(t){var e=CloseReason$Codes.Companion.byCode_mq22fl$(t);return null==e||equals(e,CloseReason$Codes.CLOSED_ABNORMALLY)},Coroutine$JsWebSocketSession_init$lambda.$metadata$={kind:Kotlin.Kind.CLASS,simpleName:null,interfaces:[CoroutineImpl]},Coroutine$JsWebSocketSession_init$lambda.prototype=Object.create(CoroutineImpl.prototype),Coroutine$JsWebSocketSession_init$lambda.prototype.constructor=Coroutine$JsWebSocketSession_init$lambda,Coroutine$JsWebSocketSession_init$lambda.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$$receiver=this.local$this$JsWebSocketSession._outgoing_0,this.local$cause=null,this.exceptionState_0=5,this.local$tmp$=this.local$$receiver.iterator(),this.state_0=1;continue;case 1:if(this.state_0=2,this.result_0=this.local$tmp$.hasNext(this),this.result_0===COROUTINE_SUSPENDED)return COROUTINE_SUSPENDED;continue;case 2:if(this.result_0){this.state_0=3;continue}this.state_0=4;continue;case 3:var t,e=this.local$tmp$.next(),n=this.local$this$JsWebSocketSession;switch(e.frameType.name){case"TEXT":var i=e.data;n.websocket_0.send(String_0(i));break;case"BINARY":var o=Kotlin.isType(t=e.data,Int8Array)?t:throwCCE(),r=o.buffer.slice(o.byteOffset,o.byteOffset+o.byteLength|0);n.websocket_0.send(r);break;case"CLOSE":var s,a=new BytePacketBuilder;try{writeFully_0(a,e.data),s=a.build()}catch(t){throw Kotlin.isType(t,Throwable)?(a.release(),t):t}var c=s,l=readShort(c),u=c.readText_vux9f0$();n._closeReason_0.complete_11rb$(new CloseReason(l,u)),n.isReservedStatusCode_0(l)?n.websocket_0.close():n.websocket_0.close(l,u)}this.state_0=1;continue;case 4:this.exceptionState_0=8,this.finallyPath_0=[7],this.state_0=6;continue;case 5:this.finallyPath_0=[8],this.exceptionState_0=6;var h=this.exception_0;throw Kotlin.isType(h,Throwable)?(this.local$cause=h,h):h;case 6:this.exceptionState_0=8,cancelConsumed(this.local$$receiver,this.local$cause),this.state_0=this.finallyPath_0.shift();continue;case 7:return this.result_0=Unit,this.result_0;case 8:throw this.exception_0;default:throw this.state_0=8,new Error("State Machine Unreachable execution")}}catch(t){if(8===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},JsWebSocketSession.$metadata$={kind:Kind_CLASS,simpleName:"JsWebSocketSession",interfaces:[DefaultWebSocketSession]};var package$io=_.io||(_.io={}),package$ktor=package$io.ktor||(package$io.ktor={}),package$client=package$ktor.client||(package$ktor.client={});package$client.HttpClient_744i18$=HttpClient,package$client.HttpClient_init_qii15z$=HttpClient_init,package$client.HttpClient=HttpClient_1,package$client.HttpClientConfig=HttpClientConfig;var package$call=package$client.call||(package$client.call={});Object.defineProperty(HttpClientCall,"Companion",{get:HttpClientCall$Companion_getInstance}),package$call.HttpClientCall_init_nfutnc$=HttpClientCall_init,package$call.HttpClientCall=HttpClientCall,$$importsForInline$$["ktor-ktor-utils-js-legacy"]=$module$ktor_ktor_utils_js_legacy,package$call.DoubleReceiveException=DoubleReceiveException,package$call.NoTransformationFoundException=NoTransformationFoundException,package$call.SavedHttpCall=SavedHttpCall,package$call.SavedHttpRequest=SavedHttpRequest,package$call.SavedHttpResponse=SavedHttpResponse,package$call.save_iicrl5$=save,package$call.UnsupportedContentTypeException=UnsupportedContentTypeException;var package$content=package$client.content||(package$client.content={});package$content.ObservableContent=ObservableContent;var package$engine=package$client.engine||(package$client.engine={});package$engine.HttpClientEngine=HttpClientEngine,package$engine.HttpClientEngineFactory=HttpClientEngineFactory,package$engine.createCallContext_antxd1$=createCallContext,package$engine.HttpClientEngineBase=HttpClientEngineBase,package$engine.ClientEngineClosedException=ClientEngineClosedException,package$engine.HttpClientEngineCapability=HttpClientEngineCapability,package$engine.HttpClientEngineConfig=HttpClientEngineConfig,package$engine.mergeHeaders_kqv6tz$=mergeHeaders,package$engine.callContext=callContext,Object.defineProperty(KtorCallContextElement,"Companion",{get:KtorCallContextElement$Companion_getInstance}),package$engine.KtorCallContextElement=KtorCallContextElement,$$importsForInline$$["kotlinx-coroutines-core"]=$module$kotlinx_coroutines_core,Object.defineProperty(BodyProgress,"Plugin",{get:BodyProgress$Plugin_getInstance});var package$plugins=package$client.plugins||(package$client.plugins={});package$plugins.BodyProgress=BodyProgress,package$plugins.withObservableDownload_qnpnm4$=withObservableDownload,package$plugins.addDefaultResponseValidation_bbdm9p$=addDefaultResponseValidation,package$plugins.ResponseException=ResponseException,package$plugins.RedirectResponseException=RedirectResponseException,package$plugins.ServerResponseException=ServerResponseException,package$plugins.ClientRequestException=ClientRequestException,package$plugins.defaultTransformers_ejcypf$=defaultTransformers,HttpCallValidator.Config=HttpCallValidator$Config,Object.defineProperty(HttpCallValidator,"Companion",{get:HttpCallValidator$Companion_getInstance}),package$plugins.HttpCallValidator=HttpCallValidator,package$plugins.HttpResponseValidator_44ieoj$=HttpResponseValidator,package$plugins.set_expectSuccess_wpsvw2$=set_expectSuccess,package$plugins.HandlerWrapper=HandlerWrapper,package$plugins.ExceptionHandlerWrapper=ExceptionHandlerWrapper,package$plugins.RequestExceptionHandlerWrapper=RequestExceptionHandlerWrapper,package$plugins.HttpClientPlugin=HttpClientPlugin,package$plugins.pluginOrNull_dd3wyz$=pluginOrNull,package$plugins.plugin_dd3wyz$=plugin,HttpPlainText.Config=HttpPlainText$Config,Object.defineProperty(HttpPlainText,"Plugin",{get:HttpPlainText$Plugin_getInstance}),package$plugins.HttpPlainText=HttpPlainText,HttpRedirect.Config=HttpRedirect$Config,Object.defineProperty(HttpRedirect,"Plugin",{get:HttpRedirect$Plugin_getInstance}),package$plugins.HttpRedirect=HttpRedirect,Object.defineProperty(HttpRequestLifecycle,"Plugin",{get:HttpRequestLifecycle$Plugin_getInstance}),package$plugins.HttpRequestLifecycle=HttpRequestLifecycle,package$plugins.Sender=Sender,HttpSend.Config=HttpSend$Config,Object.defineProperty(HttpSend,"Plugin",{get:HttpSend$Plugin_getInstance}),package$plugins.HttpSend=HttpSend,package$plugins.SendCountExceedException=SendCountExceedException,Object.defineProperty(HttpTimeout$HttpTimeoutCapabilityConfiguration,"Companion",{get:HttpTimeout$HttpTimeoutCapabilityConfiguration$Companion_getInstance}),HttpTimeout.HttpTimeoutCapabilityConfiguration_init_oq4a4q$=HttpTimeout$HttpTimeout$HttpTimeoutCapabilityConfiguration_init,HttpTimeout.HttpTimeoutCapabilityConfiguration=HttpTimeout$HttpTimeoutCapabilityConfiguration,Object.defineProperty(HttpTimeout,"Plugin",{get:HttpTimeout$Plugin_getInstance}),package$plugins.HttpTimeout=HttpTimeout,package$plugins.timeout_xuctv$=timeout,package$plugins.HttpRequestTimeoutException_init_s9rlw$=HttpRequestTimeoutException_init,package$plugins.HttpRequestTimeoutException=HttpRequestTimeoutException;var package$utils=package$client.utils||(package$client.utils={});package$utils.unwrapCancellationException_dbl4o4$=unwrapCancellationException,$$importsForInline$$["ktor-ktor-http-js-legacy"]=$module$ktor_ktor_http_js_legacy;var package$observer=package$plugins.observer||(package$plugins.observer={});package$observer.wrapWithContent_hinyhb$=wrapWithContent_1,package$observer.DelegatedResponse=DelegatedResponse;var package$websocket=package$plugins.websocket||(package$plugins.websocket={});package$websocket.ClientWebSocketSession=ClientWebSocketSession,package$websocket.DefaultClientWebSocketSession=DefaultClientWebSocketSession,package$websocket.DelegatingClientWebSocketSession=DelegatingClientWebSocketSession,package$websocket.get_converter_vw5opa$=get_converter,$$importsForInline$$["ktor-ktor-serialization-js-legacy"]=$module$ktor_ktor_serialization_js_legacy,$$importsForInline$$["ktor-ktor-websocket-serialization-js-legacy"]=$module$ktor_ktor_websocket_serialization_js_legacy,package$websocket.WebSocketContent=WebSocketContent,Object.defineProperty(package$websocket,"WebSocketCapability",{get:WebSocketCapability_getInstance}),Object.defineProperty(package$websocket,"WebSocketExtensionsCapability",{get:WebSocketExtensionsCapability_getInstance}),WebSockets.Config=WebSockets$Config,Object.defineProperty(WebSockets,"Plugin",{get:WebSockets$Plugin_getInstance}),package$websocket.WebSockets=WebSockets,package$websocket.WebSocketException=WebSocketException;var package$request=package$client.request||(package$client.request={});package$request.ClientUpgradeContent=ClientUpgradeContent,package$request.DefaultHttpRequest=DefaultHttpRequest,package$request.HttpRequest=HttpRequest_0,Object.defineProperty(HttpRequestBuilder,"Companion",{get:HttpRequestBuilder$Companion_getInstance}),package$request.HttpRequestBuilder=HttpRequestBuilder,package$request.HttpRequestData=HttpRequestData,package$request.HttpResponseData=HttpResponseData,package$request.url_g8iu3v$=url_1,package$request.isUpgradeRequest_5kadeu$=isUpgradeRequest,Object.defineProperty(HttpRequestPipeline,"Phases",{get:HttpRequestPipeline$Phases_getInstance}),package$request.HttpRequestPipeline=HttpRequestPipeline,Object.defineProperty(HttpSendPipeline,"Phases",{get:HttpSendPipeline$Phases_getInstance}),package$request.HttpSendPipeline=HttpSendPipeline,package$request.url_qpqkqe$=url_2,$$importsForInline$$["ktor-ktor-io-js-legacy"]=$module$ktor_ktor_io_js_legacy;var package$forms=package$request.forms||(package$request.forms={});package$forms.FormDataContent=FormDataContent,package$forms.MultiPartFormDataContent=MultiPartFormDataContent,package$request.header_rpxout$=header,package$request.parameter_xadl6p$=parameter,package$request.accept_41kwpe$=accept;var package$statement=package$client.statement||(package$client.statement={});package$statement.DefaultHttpResponse=DefaultHttpResponse,package$statement.HttpResponse=HttpResponse,package$statement.get_request_abn2de$=get_request,package$statement.complete_abn2de$=complete,package$statement.bodyAsText_89yka0$=bodyAsText,Object.defineProperty(HttpResponsePipeline,"Phases",{get:HttpResponsePipeline$Phases_getInstance}),package$statement.HttpResponsePipeline=HttpResponsePipeline,Object.defineProperty(HttpReceivePipeline,"Phases",{get:HttpReceivePipeline$Phases_getInstance}),package$statement.HttpReceivePipeline=HttpReceivePipeline,package$statement.HttpResponseContainer=HttpResponseContainer,package$statement.HttpStatement=HttpStatement,package$utils.observable_joo1j6$=observable,package$utils.HttpResponseReceiveFail=HttpResponseReceiveFail,Object.defineProperty(package$utils,"EmptyContent",{get:EmptyContent_getInstance}),package$utils.buildHeaders_g6xk4w$=buildHeaders;var package$js=package$engine.js||(package$engine.js={});Object.defineProperty(package$js,"Js",{get:Js_getInstance}),package$js.JsClientEngine=JsClientEngine,package$js.JsError=JsError,package$js.toRaw_kenwlq$=toRaw,package$js.buildObject_ymnom6$=buildObject,package$js.asByteArray_es0py6$=asByteArray;var package$browser=package$js.browser||(package$js.browser={});package$browser.readBodyBrowser_qitd22$=readBodyBrowser,package$browser.channelFromStream_qgv9rp$=channelFromStream,package$browser.readChunk_blugp5$=readChunk;var package$compatibility=package$js.compatibility||(package$js.compatibility={});package$compatibility.commonFetch_gzh8gj$=commonFetch,package$compatibility.AbortController_8be2vx$=AbortController_0,package$compatibility.readBody_qitd22$=readBody;var package$node=package$js.node||(package$js.node={}),charset_1,toByteArray$result;package$node.readBodyNode_qitd22$=readBodyNode,package$plugins.platformRequestDefaultTransform_mb9ulc$=platformRequestDefaultTransform,package$plugins.platformResponseDefaultTransformers_h1fxjk$=platformResponseDefaultTransformers,package$websocket.JsWebSocketSession=JsWebSocketSession,config$ObjectLiteral.prototype.create_dxyxif$=HttpClientEngineFactory.prototype.create_dxyxif$,Object.defineProperty(HttpClientEngineBase.prototype,"supportedCapabilities",Object.getOwnPropertyDescriptor(HttpClientEngine.prototype,"supportedCapabilities")),HttpClientEngineBase.prototype.install_k5i6f8$=HttpClientEngine.prototype.install_k5i6f8$,HttpClientEngineBase.prototype.executeWithinCallContext_2kaaho$_0=HttpClientEngine.prototype.executeWithinCallContext_2kaaho$_0,HttpClientEngineBase.prototype.checkExtensions_1320zn$_0=HttpClientEngine.prototype.checkExtensions_1320zn$_0,KtorCallContextElement.prototype.fold_3cc69b$=CoroutineContext$Element.prototype.fold_3cc69b$,KtorCallContextElement.prototype.get_j3r2sn$=CoroutineContext$Element.prototype.get_j3r2sn$,KtorCallContextElement.prototype.minusKey_yeqjby$=CoroutineContext$Element.prototype.minusKey_yeqjby$,KtorCallContextElement.prototype.plus_1fupul$=CoroutineContext$Element.prototype.plus_1fupul$,BodyProgress$Plugin.prototype.prepare_oh3mgy$=HttpClientPlugin.prototype.prepare_oh3mgy$,DataConversion_0.prototype.prepare_oh3mgy$=HttpClientPlugin.prototype.prepare_oh3mgy$,DefaultRequest$Plugin.prototype.prepare_oh3mgy$=HttpClientPlugin.prototype.prepare_oh3mgy$,HttpCallValidator$Companion.prototype.prepare_oh3mgy$=HttpClientPlugin.prototype.prepare_oh3mgy$,Object.defineProperty(HttpRequest$ObjectLiteral.prototype,"coroutineContext",Object.getOwnPropertyDescriptor(HttpRequest_0.prototype,"coroutineContext")),HttpPlainText$Plugin.prototype.prepare_oh3mgy$=HttpClientPlugin.prototype.prepare_oh3mgy$,HttpRedirect$Plugin.prototype.prepare_oh3mgy$=HttpClientPlugin.prototype.prepare_oh3mgy$,HttpRequestLifecycle$Plugin.prototype.prepare_oh3mgy$=HttpClientPlugin.prototype.prepare_oh3mgy$,HttpRequestRetry$Plugin.prototype.prepare_oh3mgy$=HttpClientPlugin.prototype.prepare_oh3mgy$,HttpSend$Plugin.prototype.prepare_oh3mgy$=HttpClientPlugin.prototype.prepare_oh3mgy$,HttpTimeout$Plugin.prototype.prepare_oh3mgy$=HttpClientPlugin.prototype.prepare_oh3mgy$,UserAgent$Plugin.prototype.prepare_oh3mgy$=HttpClientPlugin.prototype.prepare_oh3mgy$,HttpCache$Companion.prototype.prepare_oh3mgy$=HttpClientPlugin.prototype.prepare_oh3mgy$,HttpCookies$Companion.prototype.prepare_oh3mgy$=HttpClientPlugin.prototype.prepare_oh3mgy$,ResponseObserver$Plugin.prototype.prepare_oh3mgy$=HttpClientPlugin.prototype.prepare_oh3mgy$,ClientWebSocketSession.prototype.send_q1ubw4$=WebSocketSession.prototype.send_q1ubw4$,DefaultClientWebSocketSession.prototype.start_wwqcjq$=DefaultWebSocketSession.prototype.start_wwqcjq$,WebSockets$Plugin.prototype.prepare_oh3mgy$=HttpClientPlugin.prototype.prepare_oh3mgy$,Js.prototype.create_dxyxif$=HttpClientEngineFactory.prototype.create_dxyxif$,JsClientEngine.prototype.executeWithinCallContext_2kaaho$_0=HttpClientEngine.prototype.executeWithinCallContext_2kaaho$_0,JsClientEngine.prototype.checkExtensions_1320zn$_0=HttpClientEngine.prototype.checkExtensions_1320zn$_0,JsWebSocketSession.prototype.send_q1ubw4$=DefaultWebSocketSession.prototype.send_q1ubw4$,JsWebSocketSession.prototype.start_wwqcjq$=DefaultWebSocketSession.prototype.start_wwqcjq$,CALL_COROUTINE=new CoroutineName("call-context"),CLIENT_CONFIG=new AttributeKey("client-config"),ENGINE_CAPABILITIES_KEY=new AttributeKey("EngineCapabilities"),DEFAULT_CAPABILITIES=setOf(HttpTimeout$Plugin_getInstance()),KTOR_DEFAULT_USER_AGENT="Ktor client",DATE_HEADERS=setOf_0([http.HttpHeaders.Date,http.HttpHeaders.Expires,http.HttpHeaders.LastModified,http.HttpHeaders.IfModifiedSince,http.HttpHeaders.IfUnmodifiedSince]),UploadProgressListenerAttributeKey=new AttributeKey("UploadProgressListenerAttributeKey"),DownloadProgressListenerAttributeKey=new AttributeKey("DownloadProgressListenerAttributeKey"),ValidateMark=new AttributeKey("ValidateMark"),NO_RESPONSE_TEXT="",BODY_FAILED_DECODING="",DEPRECATED_EXCEPTION_CTOR="Please, provide response text in constructor",ExpectSuccessAttributeKey=new AttributeKey("ExpectSuccessAttributeKey"),PLUGIN_INSTALLED_LIST=new AttributeKey("ApplicationPluginRegistry"),ALLOWED_FOR_REDIRECT=setOf_0([HttpMethod.Companion.Get,HttpMethod.Companion.Head]),MaxRetriesPerRequestAttributeKey=new AttributeKey("MaxRetriesPerRequestAttributeKey"),ShouldRetryPerRequestAttributeKey=new AttributeKey("ShouldRetryPerRequestAttributeKey"),ShouldRetryOnExceptionPerRequestAttributeKey=new AttributeKey("ShouldRetryOnExceptionPerRequestAttributeKey"),ModifyRequestPerRequestAttributeKey=new AttributeKey("ModifyRequestPerRequestAttributeKey"),RetryDelayPerRequestAttributeKey=new AttributeKey("RetryDelayPerRequestAttributeKey"),WEBSOCKET_VERSION="13",NONCE_SIZE=16,REQUEST_EXTENSIONS_KEY=new AttributeKey("Websocket extensions"),BodyTypeAttributeKey=new AttributeKey("BodyTypeAttributeKey");t:do{if(charset_1=charsets.Charsets.UTF_8,null!=charset_1&&charset_1.equals(charsets.Charsets.UTF_8)){toByteArray$result=encodeToByteArray("\r\n");break t}toByteArray$result=encodeToByteArray_0(charset_1.newEncoder(),"\r\n",0,"\r\n".length)}while(0);return RN_BYTES=toByteArray$result,DEFAULT_HTTP_POOL_SIZE=1e3,DEFAULT_HTTP_BUFFER_SIZE=4096,HttpRequestCreated=new EventDefinition,HttpRequestIsReadyForSending=new EventDefinition,HttpResponseReceived=new EventDefinition,HttpResponseReceiveFailed=new EventDefinition,HttpResponseCancelled=new EventDefinition,_},__WEBPACK_AMD_DEFINE_ARRAY__=[exports,__webpack_require__(31),__webpack_require__(85),__webpack_require__(151),__webpack_require__(129),__webpack_require__(128),__webpack_require__(755),__webpack_require__(150),__webpack_require__(439),__webpack_require__(285),__webpack_require__(756)],void 0===(__WEBPACK_AMD_DEFINE_RESULT__="function"==typeof(__WEBPACK_AMD_DEFINE_FACTORY__=factory)?__WEBPACK_AMD_DEFINE_FACTORY__.apply(exports,__WEBPACK_AMD_DEFINE_ARRAY__):__WEBPACK_AMD_DEFINE_FACTORY__)||(module.exports=__WEBPACK_AMD_DEFINE_RESULT__)},function(t,e,n){var i,o,r;o=[e,n(31),n(129),n(150),n(85),n(151)],void 0===(r="function"==typeof(i=function(t,e,n,i,o,r){"use strict";var s=t.$$importsForInline$$||(t.$$importsForInline$$={}),a=e.kotlin.Exception,c=e.Kind.CLASS,l=e.kotlin.coroutines.intrinsics.COROUTINE_SUSPENDED,u=e.kotlin.coroutines.CoroutineImpl,h=e.ensureNotNull,d=e.Kind.INTERFACE,p=n.io.ktor.utils.io.charsets,_=i.io.ktor.http,m=i.io.ktor.http.parseAndSortHeader_pdl1vj$,f=e.equals,g=n.io.ktor.utils.io.charsets.Charset,$=e.kotlin.Unit,E=o.kotlinx.coroutines.flow.asFlow_7wnvza$,y=o.kotlinx.coroutines.flow.firstOrNull_iskllf$,b=i.io.ktor.http.content,S=o.kotlinx.coroutines.flow.FlowCollector,v=o.kotlinx.coroutines.flow.Flow,C=e.defineInlineFunction,N=e.wrapFunction;function T(t,e){void 0===e&&(e=null),a.call(this,t,e),this.name="ContentConvertException"}function L(t,e){void 0===e&&(e=null),T.call(this,t,e),this.name="JsonConvertException"}function z(t,e){void 0===e&&(e=null),T.call(this,t,e),this.name="WebsocketContentConvertException"}function w(t,e){void 0===e&&(e=null),z.call(this,t,e),this.name="WebsocketConverterNotFoundException"}function O(t,e,n){void 0===e&&(e=null),z.call(this,t,e),this.frame=n,this.name="WebsocketDeserializeException"}function R(t){this.closure$block=t}function A(t,e,n){u.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$collector=e}function x(t,e,n,i){u.call(this,i),this.exceptionState_0=1,this.local$closure$transform=t,this.local$this$=e,this.local$value=n}function I(t,e){return function(n,i,o){var r=new x(t,e,n,i);return o?r:r.doResume(null)}}function U(t,e,n,i,o){u.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$transform=t,this.local$this$unsafeTransform=e,this.local$$receiver=n}function D(t,e){return function(n,i,o){var r=new U(t,e,n,this,i);return o?r:r.doResume(null)}}function P(t,e,n,i,o){u.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$transform=t,this.local$$receiver=e,this.local$value=n}function M(t){return function(e,n,i,o){var r=new P(t,e,n,this,i);return o?r:r.doResume(null)}}function k(){}function j(t,e){var n;for(void 0===e&&(e=p.Charsets.UTF_8),n=m(t.get_61zpoe$(_.HttpHeaders.AcceptCharset)).iterator();n.hasNext();){var i=n.next().component1();if(f(i,"*"))return e;if(g.Companion.isSupported_61zpoe$(i))return g.Companion.forName_61zpoe$(i)}return null}function G(){}function q(t){return $}function F(t,e,n,i,o){u.call(this,o),this.exceptionState_0=1,this.local$closure$charset=t,this.local$closure$typeInfo=e,this.local$closure$body=n,this.local$converter=i}function B(t,e,n){return function(i,o,r){var s=new F(t,e,n,i,o);return r?s:s.doResume(null)}}function W(t,e,n){u.call(this,n),this.exceptionState_0=1,this.local$closure$body=t,this.local$it=e}function H(t){return function(e,n,i){var o=new W(t,e,n);return i?o:o.doResume(null)}}function V(t,e,n,i,o){u.call(this,o),this.exceptionState_0=1,this.local$$receiver=t,this.local$body=e,this.local$typeInfo=n,this.local$charset=i}e.getReifiedTypeParameterKType,r.io.ktor.util.reflect,e.getKClass,r.io.ktor.util.reflect.typeInfoImpl_1lvkm8$,Error,e.throwCCE,T.prototype=Object.create(a.prototype),T.prototype.constructor=T,L.prototype=Object.create(T.prototype),L.prototype.constructor=L,z.prototype=Object.create(T.prototype),z.prototype.constructor=z,w.prototype=Object.create(z.prototype),w.prototype.constructor=w,O.prototype=Object.create(z.prototype),O.prototype.constructor=O,T.$metadata$={kind:c,simpleName:"ContentConvertException",interfaces:[a]},L.$metadata$={kind:c,simpleName:"JsonConvertException",interfaces:[T]},z.$metadata$={kind:c,simpleName:"WebsocketContentConvertException",interfaces:[T]},w.$metadata$={kind:c,simpleName:"WebsocketConverterNotFoundException",interfaces:[z]},O.$metadata$={kind:c,simpleName:"WebsocketDeserializeException",interfaces:[z]},A.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},A.prototype=Object.create(u.prototype),A.prototype.constructor=A,A.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this.closure$block(this.local$collector,this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},R.prototype.collect_42ocv1$=function(t,e,n){var i=new A(this,t,e);return n?i:i.doResume(null)},R.$metadata$={kind:c,interfaces:[v]},x.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},x.prototype=Object.create(u.prototype),x.prototype.constructor=x,x.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$closure$transform(this.local$this$,this.local$value,this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:return $;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},U.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},U.prototype=Object.create(u.prototype),U.prototype.constructor=U,U.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$unsafeTransform.collect_42ocv1$(new S(I(this.local$closure$transform,this.local$$receiver)),this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},P.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},P.prototype=Object.create(u.prototype),P.prototype.constructor=P,P.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$closure$transform(this.local$value,this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=this.local$$receiver.emit_11rb$(this.result_0,this),this.result_0===l)return l;continue;case 3:return $;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},k.prototype.serialize_4ln4px$=function(t,e,n,i,o){return this.serializeNullable_koybg$(t,e,n,i,o)},k.prototype.serializeNullable_koybg$=function(t,e,n,i,o){return this.serialize_4ln4px$(t,e,n,h(i),o)},k.$metadata$={kind:d,simpleName:"ContentConverter",interfaces:[]},G.prototype.register_6d0rjl$=function(t,e,n,i){void 0===n&&(n=q),i?i(t,e,n):this.register_6d0rjl$$default(t,e,n)},G.$metadata$={kind:d,simpleName:"Configuration",interfaces:[]},F.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},F.prototype=Object.create(u.prototype),F.prototype.constructor=F,F.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$converter.deserialize_obau6j$(this.local$closure$charset,this.local$closure$typeInfo,this.local$closure$body,this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},W.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},W.prototype=Object.create(u.prototype),W.prototype.constructor=W,W.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:return null!=this.local$it||this.local$closure$body.isClosedForRead;case 1:throw this.exception_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},V.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[u]},V.prototype=Object.create(u.prototype),V.prototype.constructor=V,V.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e=E(this.local$$receiver);if(this.state_0=2,this.result_0=y(new R(D(M(B(this.local$charset,this.local$typeInfo,this.local$body)),e)),H(this.local$body),this),this.result_0===l)return l;continue;case 1:throw this.exception_0;case 2:var n=this.result_0;if(null!=n)t=n;else if(this.local$body.isClosedForRead){var i;if(!0!==(null!=(i=this.local$typeInfo.kotlinType)?i.isMarkedNullable:null))throw new T("No suitable converter found for "+this.local$typeInfo);t=b.NullBody}else t=this.local$body;return t;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},C("ktor-ktor-serialization-js-legacy.io.ktor.serialization.serialize_du9chr$",N((function(){var n=t.$$importsForInline$$["ktor-ktor-io-js-legacy"].io.ktor.utils.io.charsets,i=e.getReifiedTypeParameterKType,o=t.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect,r=e.getKClass,s=t.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect.typeInfoImpl_1lvkm8$,a=Error;return function(t,c,l,u,h,d){void 0===h&&(h=n.Charsets.UTF_8);var p,_=o.JsType,m=r(t);t:do{try{p=i(t)}catch(t){if(e.isType(t,a)){p=null;break t}throw t}}while(0);return e.suspendCall(l.serializeNullable_rh40qx$(h,s(_,m,p),u,e.coroutineReceiver())),e.coroutineResult(e.coroutineReceiver())}}))),C("ktor-ktor-serialization-js-legacy.io.ktor.serialization.deserialize_v41121$",N((function(){var n=t.$$importsForInline$$["ktor-ktor-io-js-legacy"].io.ktor.utils.io.charsets,i=e.getReifiedTypeParameterKType,o=e.throwCCE,r=t.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect,s=e.getKClass,a=t.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect.typeInfoImpl_1lvkm8$,c=Error;return function(t,l,u,h,d,p){var _;void 0===d&&(d=n.Charsets.UTF_8);var m,f=r.JsType,g=s(t);t:do{try{m=i(t)}catch(t){if(e.isType(t,c)){m=null;break t}throw t}}while(0);return e.suspendCall(u.deserialize_v0czzf$(d,a(f,g,m),h,e.coroutineReceiver())),l(_=e.coroutineResult(e.coroutineReceiver()))?_:o()}})));var K=t.io||(t.io={}),X=K.ktor||(K.ktor={}),J=X.serialization||(X.serialization={});return J.ContentConvertException=T,J.JsonConvertException=L,J.WebsocketContentConvertException=z,J.WebsocketConverterNotFoundException=w,J.WebsocketDeserializeException=O,J.ContentConverter=k,J.suitableCharset_4q0pk1$=function(t,e){var n;return void 0===e&&(e=p.Charsets.UTF_8),null!=(n=j(t,e))?n:e},J.suitableCharsetOrNull_4q0pk1$=j,J.Configuration=G,s["kotlinx-coroutines-core"]=o,J.deserialize_2dn85c$=function(t,e,n,i,o,r){var s=new V(t,e,n,i,o);return r?s:s.doResume(null)},s["ktor-ktor-io-js-legacy"]=n,s["ktor-ktor-utils-js-legacy"]=r,t})?i.apply(e,o):i)||(t.exports=r)},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){"use strict";(function(e){void 0===e||!e.version||0===e.version.indexOf("v0.")||0===e.version.indexOf("v1.")&&0!==e.version.indexOf("v1.8.")?t.exports={nextTick:function(t,n,i,o){if("function"!=typeof t)throw new TypeError('"callback" argument must be a function');var r,s,a=arguments.length;switch(a){case 0:case 1:return e.nextTick(t);case 2:return e.nextTick((function(){t.call(null,n)}));case 3:return e.nextTick((function(){t.call(null,n,i)}));case 4:return e.nextTick((function(){t.call(null,n,i,o)}));default:for(r=new Array(a-1),s=0;s>>24]^u[_>>>16&255]^h[m>>>8&255]^d[255&f]^e[g++],s=l[_>>>24]^u[m>>>16&255]^h[f>>>8&255]^d[255&p]^e[g++],a=l[m>>>24]^u[f>>>16&255]^h[p>>>8&255]^d[255&_]^e[g++],c=l[f>>>24]^u[p>>>16&255]^h[_>>>8&255]^d[255&m]^e[g++],p=r,_=s,m=a,f=c;return r=(i[p>>>24]<<24|i[_>>>16&255]<<16|i[m>>>8&255]<<8|i[255&f])^e[g++],s=(i[_>>>24]<<24|i[m>>>16&255]<<16|i[f>>>8&255]<<8|i[255&p])^e[g++],a=(i[m>>>24]<<24|i[f>>>16&255]<<16|i[p>>>8&255]<<8|i[255&_])^e[g++],c=(i[f>>>24]<<24|i[p>>>16&255]<<16|i[_>>>8&255]<<8|i[255&m])^e[g++],[r>>>=0,s>>>=0,a>>>=0,c>>>=0]}var a=[0,1,2,4,8,16,32,64,128,27,54],c=function(){for(var t=new Array(256),e=0;e<256;e++)t[e]=e<128?e<<1:e<<1^283;for(var n=[],i=[],o=[[],[],[],[]],r=[[],[],[],[]],s=0,a=0,c=0;c<256;++c){var l=a^a<<1^a<<2^a<<3^a<<4;l=l>>>8^255&l^99,n[s]=l,i[l]=s;var u=t[s],h=t[u],d=t[h],p=257*t[l]^16843008*l;o[0][s]=p<<24|p>>>8,o[1][s]=p<<16|p>>>16,o[2][s]=p<<8|p>>>24,o[3][s]=p,p=16843009*d^65537*h^257*u^16843008*s,r[0][l]=p<<24|p>>>8,r[1][l]=p<<16|p>>>16,r[2][l]=p<<8|p>>>24,r[3][l]=p,0===s?s=a=1:(s=u^t[t[t[d^u]]],a^=t[t[a]])}return{SBOX:n,INV_SBOX:i,SUB_MIX:o,INV_SUB_MIX:r}}();function l(t){this._key=o(t),this._reset()}l.blockSize=16,l.keySize=32,l.prototype.blockSize=l.blockSize,l.prototype.keySize=l.keySize,l.prototype._reset=function(){for(var t=this._key,e=t.length,n=e+6,i=4*(n+1),o=[],r=0;r>>24,s=c.SBOX[s>>>24]<<24|c.SBOX[s>>>16&255]<<16|c.SBOX[s>>>8&255]<<8|c.SBOX[255&s],s^=a[r/e|0]<<24):e>6&&r%e==4&&(s=c.SBOX[s>>>24]<<24|c.SBOX[s>>>16&255]<<16|c.SBOX[s>>>8&255]<<8|c.SBOX[255&s]),o[r]=o[r-e]^s}for(var l=[],u=0;u>>24]]^c.INV_SUB_MIX[1][c.SBOX[d>>>16&255]]^c.INV_SUB_MIX[2][c.SBOX[d>>>8&255]]^c.INV_SUB_MIX[3][c.SBOX[255&d]]}this._nRounds=n,this._keySchedule=o,this._invKeySchedule=l},l.prototype.encryptBlockRaw=function(t){return s(t=o(t),this._keySchedule,c.SUB_MIX,c.SBOX,this._nRounds)},l.prototype.encryptBlock=function(t){var e=this.encryptBlockRaw(t),n=i.allocUnsafe(16);return n.writeUInt32BE(e[0],0),n.writeUInt32BE(e[1],4),n.writeUInt32BE(e[2],8),n.writeUInt32BE(e[3],12),n},l.prototype.decryptBlock=function(t){var e=(t=o(t))[1];t[1]=t[3],t[3]=e;var n=s(t,this._invKeySchedule,c.INV_SUB_MIX,c.INV_SBOX,this._nRounds),r=i.allocUnsafe(16);return r.writeUInt32BE(n[0],0),r.writeUInt32BE(n[3],4),r.writeUInt32BE(n[2],8),r.writeUInt32BE(n[1],12),r},l.prototype.scrub=function(){r(this._keySchedule),r(this._invKeySchedule),r(this._key)},t.exports.AES=l},function(t,e,n){var i=n(27).Buffer,o=n(368);t.exports=function(t,e,n,r){if(i.isBuffer(t)||(t=i.from(t,"binary")),e&&(i.isBuffer(e)||(e=i.from(e,"binary")),8!==e.length))throw new RangeError("salt should be Buffer with 8 byte length");for(var s=n/8,a=i.alloc(s),c=i.alloc(r||0),l=i.alloc(0);s>0||r>0;){var u=new o;u.update(l),u.update(t),e&&u.update(e),l=u.digest();var h=0;if(s>0){var d=a.length-s;h=Math.min(s,l.length),l.copy(a,d,0,h),s-=h}if(h0){var p=c.length-r,_=Math.min(r,l.length-h);l.copy(c,p,h,h+_),r-=_}}return l.fill(0),{key:a,iv:c}}},function(t,e,n){"use strict";var i=n(51),o=n(87),r=o.getNAF,s=o.getJSF,a=o.assert;function c(t,e){this.type=t,this.p=new i(e.p,16),this.red=e.prime?i.red(e.prime):i.mont(this.p),this.zero=new i(0).toRed(this.red),this.one=new i(1).toRed(this.red),this.two=new i(2).toRed(this.red),this.n=e.n&&new i(e.n,16),this.g=e.g&&this.pointFromJSON(e.g,e.gRed),this._wnafT1=new Array(4),this._wnafT2=new Array(4),this._wnafT3=new Array(4),this._wnafT4=new Array(4),this._bitLength=this.n?this.n.bitLength():0;var n=this.n&&this.p.div(this.n);!n||n.cmpn(100)>0?this.redN=null:(this._maxwellTrick=!0,this.redN=this.n.toRed(this.red))}function l(t,e){this.curve=t,this.type=e,this.precomputed=null}t.exports=c,c.prototype.point=function(){throw new Error("Not implemented")},c.prototype.validate=function(){throw new Error("Not implemented")},c.prototype._fixedNafMul=function(t,e){a(t.precomputed);var n=t._getDoubles(),i=r(e,1,this._bitLength),o=(1<=s;u--)c=(c<<1)+i[u];l.push(c)}for(var h=this.jpoint(null,null,null),d=this.jpoint(null,null,null),p=o;p>0;p--){for(s=0;s=0;l--){for(var u=0;l>=0&&0===s[l];l--)u++;if(l>=0&&u++,c=c.dblp(u),l<0)break;var h=s[l];a(0!==h),c="affine"===t.type?h>0?c.mixedAdd(o[h-1>>1]):c.mixedAdd(o[-h-1>>1].neg()):h>0?c.add(o[h-1>>1]):c.add(o[-h-1>>1].neg())}return"affine"===t.type?c.toP():c},c.prototype._wnafMulAdd=function(t,e,n,i,o){var a,c,l,u=this._wnafT1,h=this._wnafT2,d=this._wnafT3,p=0;for(a=0;a=1;a-=2){var m=a-1,f=a;if(1===u[m]&&1===u[f]){var g=[e[m],null,null,e[f]];0===e[m].y.cmp(e[f].y)?(g[1]=e[m].add(e[f]),g[2]=e[m].toJ().mixedAdd(e[f].neg())):0===e[m].y.cmp(e[f].y.redNeg())?(g[1]=e[m].toJ().mixedAdd(e[f]),g[2]=e[m].add(e[f].neg())):(g[1]=e[m].toJ().mixedAdd(e[f]),g[2]=e[m].toJ().mixedAdd(e[f].neg()));var $=[-3,-1,-5,-7,0,7,5,1,3],E=s(n[m],n[f]);for(p=Math.max(E[0].length,p),d[m]=new Array(p),d[f]=new Array(p),c=0;c=0;a--){for(var C=0;a>=0;){var N=!0;for(c=0;c=0&&C++,S=S.dblp(C),a<0)break;for(c=0;c0?l=h[c][T-1>>1]:T<0&&(l=h[c][-T-1>>1].neg()),S="affine"===l.type?S.mixedAdd(l):S.add(l))}}for(a=0;a=Math.ceil((t.bitLength()+1)/e.step)},l.prototype._getDoubles=function(t,e){if(this.precomputed&&this.precomputed.doubles)return this.precomputed.doubles;for(var n=[this],i=this,o=0;o=a},o.isCollapsed=function(){return this.getAnchorKey()===this.getFocusKey()&&this.getAnchorOffset()===this.getFocusOffset()},o.getStartKey=function(){return this.getIsBackward()?this.getFocusKey():this.getAnchorKey()},o.getStartOffset=function(){return this.getIsBackward()?this.getFocusOffset():this.getAnchorOffset()},o.getEndKey=function(){return this.getIsBackward()?this.getAnchorKey():this.getFocusKey()},o.getEndOffset=function(){return this.getIsBackward()?this.getAnchorOffset():this.getFocusOffset()},i.createEmpty=function(t){return new i({anchorKey:t,anchorOffset:0,focusKey:t,focusOffset:0,isBackward:!1,hasFocus:!1})},i}((0,n(33).Record)({anchorKey:"",anchorOffset:0,focusKey:"",focusOffset:0,isBackward:!1,hasFocus:!1}));t.exports=i},function(t,e,n){"use strict";var i=n(34),o=null;function r(t){return"LTR"===t||"RTL"===t}function s(t){return r(t)||i(!1),"LTR"===t?"ltr":"rtl"}function a(t){o=t}var c={NEUTRAL:"NEUTRAL",LTR:"LTR",RTL:"RTL",isStrong:r,getHTMLDir:s,getHTMLDirIfDifferent:function(t,e){return r(t)||i(!1),r(e)||i(!1),t===e?null:s(t)},setGlobalDir:a,initGlobalDir:function(){a("LTR")},getGlobalDir:function(){return o||this.initGlobalDir(),o||i(!1),o}};t.exports=c},function(t,e,n){"use strict";var i=n(319),o=n(679);t.exports=function(t){for(var e=t;e&&e!==i(t).documentElement;){var n=o(e);if(null!=n)return n;e=e.parentNode}return null}},function(t,e,n){"use strict";t.exports=function(t){return t&&t.ownerDocument?t.ownerDocument:document}},function(t,e,n){"use strict";t.exports={BACKSPACE:8,TAB:9,RETURN:13,ALT:18,ESC:27,SPACE:32,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46,COMMA:188,PERIOD:190,A:65,Z:90,ZERO:48,NUMPAD_0:96,NUMPAD_9:105}},function(t,e,n){"use strict";function i(t,e){var n=o.get(t,e);return"auto"===n||"scroll"===n}var o={get:n(908),getScrollParent:function(t){if(!t)return null;for(var e=t.ownerDocument;t&&t!==e.body;){if(i(t,"overflow")||i(t,"overflowY")||i(t,"overflowX"))return t;t=t.parentNode}return e.defaultView||e.parentWindow}};t.exports=o},function(t,e,n){"use strict";var i=n(912),o=n(913);t.exports=function(t){var e=i(t.ownerDocument||t.document);t.Window&&t instanceof t.Window&&(t=e);var n=o(t),r=t===e?t.ownerDocument.documentElement:t,s=t.scrollWidth-r.clientWidth,a=t.scrollHeight-r.clientHeight;return n.x=Math.max(0,Math.min(n.x,s)),n.y=Math.max(0,Math.min(n.y,a)),n}},function(t,e,n){"use strict";t.exports=function(t){return"handled"===t||!0===t}},function(t,e,n){"use strict";n.r(e);var i=n(710);n.d(e,"default",(function(){return i.a}));var o=n(79);n.d(e,"buttonGroupClasses",(function(){return o.a})),n.d(e,"getButtonGroupUtilityClass",(function(){return o.b}))},function(t,e,n){"use strict";var i=n(265);n.d(e,"a",(function(){return i.a}));var o=n(97);n.d(e,"b",(function(){return o.a})),n.d(e,"c",(function(){return o.b}))},function(t,e,n){"use strict";var i=n(135);n.d(e,"b",(function(){return i.a})),n.d(e,"a",(function(){return i.b}))},function(t,e,n){"use strict";var i=n(92);n.d(e,"b",(function(){return i.a})),n.d(e,"a",(function(){return i.b}))},function(t,e,n){"use strict";var i=n(203);n.d(e,"b",(function(){return i.a})),n.d(e,"a",(function(){return i.b}))},function(t,e,n){"use strict";var i=n(210);n.d(e,"b",(function(){return i.a})),n.d(e,"a",(function(){return i.b}))},function(t,e,n){"use strict";var i=n(166);n.d(e,"b",(function(){return i.a})),n.d(e,"a",(function(){return i.b}))},function(t,e,n){"use strict";e.a={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"}},function(t,e,n){"use strict";var i=n(1),o=n(5),r=n(0),s=(n(72),n(4)),a=n(18),c=n(1031),l=n(100),u=n(266),h=n(3),d=n(19),p=n(7),_=n(205),m=n(2);const f=["onEntering"],g=["autoFocus","children","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant"],$={vertical:"top",horizontal:"right"},E={vertical:"top",horizontal:"left"},y=Object(h.a)(u.a,{shouldForwardProp:t=>Object(h.b)(t)||"classes"===t,name:"MuiMenu",slot:"Root",overridesResolver:(t,e)=>e.root})({}),b=Object(h.a)(l.a,{name:"MuiMenu",slot:"Paper",overridesResolver:(t,e)=>e.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),S=Object(h.a)(c.a,{name:"MuiMenu",slot:"List",overridesResolver:(t,e)=>e.list})({outline:0}),v=r.forwardRef((function(t,e){const n=Object(p.a)({props:t,name:"MuiMenu"}),{autoFocus:c=!0,children:l,disableAutoFocusItem:u=!1,MenuListProps:h={},onClose:v,open:C,PaperProps:N={},PopoverClasses:T,transitionDuration:L="auto",TransitionProps:{onEntering:z}={},variant:w="selectedMenu"}=n,O=Object(o.a)(n.TransitionProps,f),R=Object(o.a)(n,g),A=Object(d.default)(),x="rtl"===A.direction,I=Object(i.a)({},n,{autoFocus:c,disableAutoFocusItem:u,MenuListProps:h,onEntering:z,PaperProps:N,transitionDuration:L,TransitionProps:O,variant:w}),U=(t=>{const{classes:e}=t;return Object(a.a)({root:["root"],paper:["paper"],list:["list"]},_.b,e)})(I),D=c&&!u&&C,P=r.useRef(null);let M=-1;return r.Children.map(l,(t,e)=>{r.isValidElement(t)&&(t.props.disabled||("selectedMenu"===w&&t.props.selected||-1===M)&&(M=e))}),Object(m.jsx)(y,Object(i.a)({classes:T,onClose:v,anchorOrigin:{vertical:"bottom",horizontal:x?"right":"left"},transformOrigin:x?$:E,PaperProps:Object(i.a)({component:b},N,{classes:Object(i.a)({},N.classes,{root:U.paper})}),className:U.root,open:C,ref:e,transitionDuration:L,TransitionProps:Object(i.a)({onEntering:(t,e)=>{P.current&&P.current.adjustStyleForScrollbar(t,A),z&&z(t,e)}},O),ownerState:I},R,{children:Object(m.jsx)(S,Object(i.a)({onKeyDown:t=>{"Tab"===t.key&&(t.preventDefault(),v&&v(t,"tabKeyDown"))},actions:P,autoFocus:c&&(-1===M||u),autoFocusItem:D,variant:w},h,{className:Object(s.a)(U.list,h.className),children:l}))}))}));e.a=v},function(t,e,n){"use strict";var i=n(1025);e.a=i.a},function(t,e,n){"use strict";e.a={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1}},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i=function(){function t(t){var e=this;this._insertTag=function(t){var n;n=0===e.tags.length?e.insertionPoint?e.insertionPoint.nextSibling:e.prepend?e.container.firstChild:e.before:e.tags[e.tags.length-1].nextSibling,e.container.insertBefore(t,n),e.tags.push(t)},this.isSpeedy=void 0===t.speedy||t.speedy,this.tags=[],this.ctr=0,this.nonce=t.nonce,this.key=t.key,this.container=t.container,this.prepend=t.prepend,this.insertionPoint=t.insertionPoint,this.before=null}var e=t.prototype;return e.hydrate=function(t){t.forEach(this._insertTag)},e.insert=function(t){this.ctr%(this.isSpeedy?65e3:1)==0&&this._insertTag(function(t){var e=document.createElement("style");return e.setAttribute("data-emotion",t.key),void 0!==t.nonce&&e.setAttribute("nonce",t.nonce),e.appendChild(document.createTextNode("")),e.setAttribute("data-s",""),e}(this));var e=this.tags[this.tags.length-1];if(this.isSpeedy){var n=function(t){if(t.sheet)return t.sheet;for(var e=0;et/m*E+"rem"),b=(t,e,n,o,r)=>{return Object(i.a)({fontFamily:l,fontWeight:t,fontSize:y(e),lineHeight:n},l===c?{letterSpacing:(s=o/e,Math.round(1e5*s)/1e5)+"em"}:{},r,f);var s},S={h1:b(h,96,1.167,-1.5),h2:b(h,60,1.2,-.5),h3:b(d,48,1.167,0),h4:b(d,34,1.235,.25),h5:b(d,24,1.334,0),h6:b(p,20,1.6,.15),subtitle1:b(d,16,1.75,.15),subtitle2:b(p,14,1.57,.1),body1:b(d,16,1.5,.15),body2:b(d,14,1.43,.15),button:b(p,14,1.75,.4,a),caption:b(d,12,1.66,.4),overline:b(d,12,2.66,1,a)};return Object(r.a)(Object(i.a)({htmlFontSize:m,pxToRem:y,fontFamily:l,fontSize:u,fontWeightLight:h,fontWeightRegular:d,fontWeightMedium:p,fontWeightBold:_},S),$,{clone:!1})}},function(t,e,n){"use strict";var i=n(0);const o=i.createContext(null);e.a=o},function(t,e,n){"use strict";var i=n(1),o=n(5),r=n(0),s=n(4),a=n(18),c=n(6),l=n(7),u=n(3),h=n(192),d=n(2);const p=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],_=Object(u.a)("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,"inherit"!==n.color&&e["color"+Object(c.a)(n.color)],e["fontSize"+Object(c.a)(n.fontSize)]]}})(({theme:t,ownerState:e})=>{var n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:"currentColor",flexShrink:0,transition:null==(n=t.transitions)||null==(i=n.create)?void 0:i.call(n,"fill",{duration:null==(o=t.transitions)||null==(r=o.duration)?void 0:r.shorter}),fontSize:{inherit:"inherit",small:(null==(s=t.typography)||null==(a=s.pxToRem)?void 0:a.call(s,20))||"1.25rem",medium:(null==(c=t.typography)||null==(l=c.pxToRem)?void 0:l.call(c,24))||"1.5rem",large:(null==(u=t.typography)||null==(h=u.pxToRem)?void 0:h.call(u,35))||"2.1875"}[e.fontSize],color:null!=(d=null==(p=(t.vars||t).palette)||null==(_=p[e.color])?void 0:_.main)?d:{action:null==(m=(t.vars||t).palette)||null==(f=m.action)?void 0:f.active,disabled:null==(g=(t.vars||t).palette)||null==($=g.action)?void 0:$.disabled,inherit:void 0}[e.color]}}),m=r.forwardRef((function(t,e){const n=Object(l.a)({props:t,name:"MuiSvgIcon"}),{children:r,className:u,color:m="inherit",component:f="svg",fontSize:g="medium",htmlColor:$,inheritViewBox:E=!1,titleAccess:y,viewBox:b="0 0 24 24"}=n,S=Object(o.a)(n,p),v=Object(i.a)({},n,{color:m,component:f,fontSize:g,instanceFontSize:t.fontSize,inheritViewBox:E,viewBox:b}),C={};E||(C.viewBox=b);const N=(t=>{const{color:e,fontSize:n,classes:i}=t,o={root:["root","inherit"!==e&&"color"+Object(c.a)(e),"fontSize"+Object(c.a)(n)]};return Object(a.a)(o,h.b,i)})(v);return Object(d.jsxs)(_,Object(i.a)({as:f,className:Object(s.a)(N.root,u),ownerState:v,focusable:"false",color:$,"aria-hidden":!y||void 0,role:y?"img":void 0,ref:e},C,S,{children:[r,y?Object(d.jsx)("title",{children:y}):null]}))}));m.muiName="SvgIcon",e.a=m},function(t,e,n){"use strict";var i=n(0);const o=i.createContext({});e.a=o},function(t,e,n){"use strict";n.r(e);var i=/[A-Z]/g,o=/^ms-/,r={};function s(t){return"-"+t.toLowerCase()}e.default=function(t){if(r.hasOwnProperty(t))return r[t];var e=t.replace(i,s);return r[t]=o.test(e)?"-"+e:e}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n(0),o=n(14);function r(t,e,n){const{value:r,onError:s}=t,a=Object(o.c)(),c=i.useRef(null),l=e({adapter:a,value:r,props:t});return i.useEffect(()=>{s&&!n(l,c.current)&&s(l,r),c.current=l},[n,s,c,l,r]),l}},function(t,e,n){"use strict";n.d(e,"a",(function(){return y}));var i=n(12),o=n(0),r=n(4),s=n(413),a=n(126),c=n(405),l=n(3),u=n(7),h=n(18),d=n(82),p=n(14),_=n(118),m=n(2);const f=Object(l.a)("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t,ownerState:e})=>Object(i.a)({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:t.spacing(2,3)},e.isLandscape&&{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"})),g=Object(l.a)(s.a,{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(t,e)=>e.content})({flex:1}),$=Object(l.a)(c.a,{name:"MuiPickersToolbar",slot:"PenIconButton",overridesResolver:(t,e)=>[{["&."+_.b.penIconButtonLandscape]:e.penIconButtonLandscape},e.penIconButton]})({}),E=t=>"clock"===t?Object(m.jsx)(d.e,{color:"inherit"}):Object(m.jsx)(d.d,{color:"inherit"}),y=o.forwardRef((function(t,e){const n=Object(u.a)({props:t,name:"MuiPickersToolbar"}),{children:i,className:o,getMobileKeyboardInputViewButtonText:s,isLandscape:c,isMobileKeyboardViewOpen:l,landscapeDirection:y="column",toggleMobileKeyboardView:b,toolbarTitle:S,viewType:v="calendar"}=n,C=n,N=Object(p.b)(),T=(t=>{const{classes:e,isLandscape:n}=t,i={root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]};return Object(h.a)(i,_.a,e)})(C);return Object(m.jsxs)(f,{ref:e,className:Object(r.a)(T.root,o),ownerState:C,children:[Object(m.jsx)(a.a,{color:"text.secondary",variant:"overline",children:S}),Object(m.jsxs)(g,{container:!0,justifyContent:"space-between",className:T.content,ownerState:C,direction:c?y:"row",alignItems:c?"flex-start":"flex-end",children:[i,Object(m.jsx)($,{onClick:b,className:T.penIconButton,ownerState:C,color:"inherit","aria-label":s?s(l,v):N.inputModeToggleButtonAriaLabel(l,v),children:l?E(v):Object(m.jsx)(d.f,{color:"inherit"})})]})]})}))},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(4),a=n(18),c=n(3),l=n(7),u=n(738),h=n(195),d=n(2);const p=["children","component","components","componentsProps","className","invisible","open","transitionDuration","TransitionComponent"],_=Object(c.a)("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.invisible&&e.invisible]}})(({ownerState:t})=>Object(o.a)({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},t.invisible&&{backgroundColor:"transparent"})),m=r.forwardRef((function(t,e){var n,r;const c=Object(l.a)({props:t,name:"MuiBackdrop"}),{children:m,component:f="div",components:g={},componentsProps:$={},className:E,invisible:y=!1,open:b,transitionDuration:S,TransitionComponent:v=u.a}=c,C=Object(i.a)(c,p),N=Object(o.a)({},c,{component:f,invisible:y}),T=(t=>{const{classes:e,invisible:n}=t,i={root:["root",n&&"invisible"]};return Object(a.a)(i,h.b,e)})(N);return Object(d.jsx)(v,Object(o.a)({in:b,timeout:S},C,{children:Object(d.jsx)(_,{"aria-hidden":!0,as:null!=(n=g.Root)?n:f,className:Object(s.a)(T.root,E),ownerState:Object(o.a)({},N,null==(r=$.root)?void 0:r.ownerState),classes:T,ref:e,children:m})}))}));e.a=m},function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));var i=function(t){return t.scrollTop}},function(t,e,n){"use strict";var i=n(0);const o=Object(i.createContext)({});e.a=o},function(t,e,n){"use strict";n.d(e,"a",(function(){return l}));var i=n(12),o=n(0),r=n(43),s=n(77),a=n(14),c=n(146);const l=o.forwardRef((function(t,e){const{disabled:n,getOpenDialogAriaText:l,inputFormat:u,InputProps:h,inputRef:d,label:p,openPicker:_,rawValue:m,renderInput:f,TextFieldProps:g={},validationError:$,className:E}=t,y=Object(a.b)(),b=null!=l?l:y.openDatePickerDialogue,S=Object(a.e)(),v=o.useMemo(()=>Object(i.a)({},h,{readOnly:!0}),[h]),C=Object(c.b)(S,m,u),N=Object(r.a)(t=>{t.stopPropagation(),_()});return f(Object(i.a)({label:p,disabled:n,ref:e,inputRef:d,error:$,InputProps:v,className:E},!t.readOnly&&!t.disabled&&{onClick:N},{inputProps:Object(i.a)({disabled:n,readOnly:!0,"aria-readonly":!0,"aria-label":b(m,S),value:C},!t.readOnly&&{onClick:N},{onKeyDown:Object(s.b)(_)})},g))}))},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var i=function(t,e){switch(t){case"P":return e.date({width:"short"});case"PP":return e.date({width:"medium"});case"PPP":return e.date({width:"long"});case"PPPP":default:return e.date({width:"full"})}},o=function(t,e){switch(t){case"p":return e.time({width:"short"});case"pp":return e.time({width:"medium"});case"ppp":return e.time({width:"long"});case"pppp":default:return e.time({width:"full"})}},r={p:o,P:function(t,e){var n,r=t.match(/(P+)(p+)?/)||[],s=r[1],a=r[2];if(!a)return i(t,e);switch(s){case"P":n=e.dateTime({width:"short"});break;case"PP":n=e.dateTime({width:"medium"});break;case"PPP":n=e.dateTime({width:"long"});break;case"PPPP":default:n=e.dateTime({width:"full"})}return n.replace("{{date}}",i(s,e)).replace("{{time}}",o(a,e))}};e.default=r,t.exports=e.default},function(t,e,n){"use strict";var i=n(0);const o=i.createContext();e.a=o},function(t,e,n){"use strict";n.d(e,"b",(function(){return K})),n.d(e,"a",(function(){return X}));var i=n(13),o=n(109);var r=function(...t){const e=t.reduce((t,e)=>(e.filterProps.forEach(n=>{t[n]=e}),t),{}),n=t=>Object.keys(t).reduce((n,i)=>e[i]?Object(o.a)(n,e[i](t)):n,{});return n.propTypes={},n.filterProps=t.reduce((t,e)=>t.concat(e.filterProps),[]),n},s=n(68),a=n(59);function c(t){return"number"!=typeof t?t:t+"px solid"}const l=Object(i.a)({prop:"border",themeKey:"borders",transform:c}),u=Object(i.a)({prop:"borderTop",themeKey:"borders",transform:c}),h=Object(i.a)({prop:"borderRight",themeKey:"borders",transform:c}),d=Object(i.a)({prop:"borderBottom",themeKey:"borders",transform:c}),p=Object(i.a)({prop:"borderLeft",themeKey:"borders",transform:c}),_=Object(i.a)({prop:"borderColor",themeKey:"palette"}),m=Object(i.a)({prop:"borderTopColor",themeKey:"palette"}),f=Object(i.a)({prop:"borderRightColor",themeKey:"palette"}),g=Object(i.a)({prop:"borderBottomColor",themeKey:"palette"}),$=Object(i.a)({prop:"borderLeftColor",themeKey:"palette"}),E=t=>{if(void 0!==t.borderRadius&&null!==t.borderRadius){const e=Object(s.b)(t.theme,"shape.borderRadius",4,"borderRadius"),n=t=>({borderRadius:Object(s.d)(e,t)});return Object(a.b)(t,t.borderRadius,n)}return null};E.propTypes={},E.filterProps=["borderRadius"];var y=r(l,u,h,d,p,_,m,f,g,$,E);var b=r(Object(i.a)({prop:"displayPrint",cssProperty:!1,transform:t=>({"@media print":{display:t}})}),Object(i.a)({prop:"display"}),Object(i.a)({prop:"overflow"}),Object(i.a)({prop:"textOverflow"}),Object(i.a)({prop:"visibility"}),Object(i.a)({prop:"whiteSpace"}));var S=r(Object(i.a)({prop:"flexBasis"}),Object(i.a)({prop:"flexDirection"}),Object(i.a)({prop:"flexWrap"}),Object(i.a)({prop:"justifyContent"}),Object(i.a)({prop:"alignItems"}),Object(i.a)({prop:"alignContent"}),Object(i.a)({prop:"order"}),Object(i.a)({prop:"flex"}),Object(i.a)({prop:"flexGrow"}),Object(i.a)({prop:"flexShrink"}),Object(i.a)({prop:"alignSelf"}),Object(i.a)({prop:"justifyItems"}),Object(i.a)({prop:"justifySelf"}));const v=t=>{if(void 0!==t.gap&&null!==t.gap){const e=Object(s.b)(t.theme,"spacing",8,"gap"),n=t=>({gap:Object(s.d)(e,t)});return Object(a.b)(t,t.gap,n)}return null};v.propTypes={},v.filterProps=["gap"];const C=t=>{if(void 0!==t.columnGap&&null!==t.columnGap){const e=Object(s.b)(t.theme,"spacing",8,"columnGap"),n=t=>({columnGap:Object(s.d)(e,t)});return Object(a.b)(t,t.columnGap,n)}return null};C.propTypes={},C.filterProps=["columnGap"];const N=t=>{if(void 0!==t.rowGap&&null!==t.rowGap){const e=Object(s.b)(t.theme,"spacing",8,"rowGap"),n=t=>({rowGap:Object(s.d)(e,t)});return Object(a.b)(t,t.rowGap,n)}return null};N.propTypes={},N.filterProps=["rowGap"];var T=r(v,C,N,Object(i.a)({prop:"gridColumn"}),Object(i.a)({prop:"gridRow"}),Object(i.a)({prop:"gridAutoFlow"}),Object(i.a)({prop:"gridAutoColumns"}),Object(i.a)({prop:"gridAutoRows"}),Object(i.a)({prop:"gridTemplateColumns"}),Object(i.a)({prop:"gridTemplateRows"}),Object(i.a)({prop:"gridTemplateAreas"}),Object(i.a)({prop:"gridArea"}));var L=r(Object(i.a)({prop:"position"}),Object(i.a)({prop:"zIndex",themeKey:"zIndex"}),Object(i.a)({prop:"top"}),Object(i.a)({prop:"right"}),Object(i.a)({prop:"bottom"}),Object(i.a)({prop:"left"}));var z=r(Object(i.a)({prop:"color",themeKey:"palette"}),Object(i.a)({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette"}),Object(i.a)({prop:"backgroundColor",themeKey:"palette"}));var w=Object(i.a)({prop:"boxShadow",themeKey:"shadows"});function O(t){return t<=1&&0!==t?100*t+"%":t}const R=Object(i.a)({prop:"width",transform:O}),A=t=>{if(void 0!==t.maxWidth&&null!==t.maxWidth){const e=e=>{var n,i,o;return{maxWidth:(null==(n=t.theme)||null==(i=n.breakpoints)||null==(o=i.values)?void 0:o[e])||a.f[e]||O(e)}};return Object(a.b)(t,t.maxWidth,e)}return null};A.filterProps=["maxWidth"];const x=Object(i.a)({prop:"minWidth",transform:O}),I=Object(i.a)({prop:"height",transform:O}),U=Object(i.a)({prop:"maxHeight",transform:O}),D=Object(i.a)({prop:"minHeight",transform:O});Object(i.a)({prop:"size",cssProperty:"width",transform:O}),Object(i.a)({prop:"size",cssProperty:"height",transform:O});var P=r(R,A,x,I,U,D,Object(i.a)({prop:"boxSizing"}));const M=Object(i.a)({prop:"fontFamily",themeKey:"typography"}),k=Object(i.a)({prop:"fontSize",themeKey:"typography"}),j=Object(i.a)({prop:"fontStyle",themeKey:"typography"}),G=Object(i.a)({prop:"fontWeight",themeKey:"typography"}),q=Object(i.a)({prop:"letterSpacing"}),F=Object(i.a)({prop:"textTransform"}),B=Object(i.a)({prop:"lineHeight"}),W=Object(i.a)({prop:"textAlign"});var H=r(Object(i.a)({prop:"typography",cssProperty:!1,themeKey:"typography"}),M,k,j,G,q,B,W,F);const V={borders:y.filterProps,display:b.filterProps,flexbox:S.filterProps,grid:T.filterProps,positions:L.filterProps,palette:z.filterProps,shadows:w.filterProps,sizing:P.filterProps,spacing:s.c.filterProps,typography:H.filterProps},K={borders:y,display:b,flexbox:S,grid:T,positions:L,palette:z,shadows:w,sizing:P,spacing:s.c,typography:H},X=Object.keys(V).reduce((t,e)=>(V[e].forEach(n=>{t[n]=K[e]}),t),{})},function(t,e,n){"use strict";n.d(e,"a",(function(){return S}));var i=n(12),o=n(29),r=n(0),s=n(90),a=n(639),c=n(638),l=n(114),u=n(3),h=n(84),d=n(633),p=n(640),_=n(14),m=n(2);const f=["onAccept","onClear","onCancel","onSetToday","actions"],g=t=>{const{onAccept:e,onClear:n,onCancel:a,onSetToday:c,actions:l}=t,u=Object(o.a)(t,f),h=r.useContext(s.a),g=Object(_.b)(),$="function"==typeof l?l(h):l;if(null==$||0===$.length)return null;const E=null==$?void 0:$.map(t=>{switch(t){case"clear":return Object(m.jsx)(d.a,{onClick:n,children:g.clearButtonLabel},t);case"cancel":return Object(m.jsx)(d.a,{onClick:a,children:g.cancelButtonLabel},t);case"accept":return Object(m.jsx)(d.a,{onClick:e,children:g.okButtonLabel},t);case"today":return Object(m.jsx)(d.a,{onClick:c,children:g.todayButtonLabel},t);default:return null}});return Object(m.jsx)(p.a,Object(i.a)({},u,{children:E}))},$=Object(u.a)(c.a)({["& ."+l.a.container]:{outline:0},["& ."+l.a.paper]:{outline:0,minWidth:h.c}}),E=Object(u.a)(a.a)({"&:first-of-type":{padding:0}}),y=t=>{var e;const{children:n,DialogProps:o={},onAccept:r,onClear:s,onDismiss:a,onCancel:c,onSetToday:l,open:u,components:h,componentsProps:d}=t,p=null!=(e=null==h?void 0:h.ActionBar)?e:g;return Object(m.jsxs)($,Object(i.a)({open:u,onClose:a},o,{children:[Object(m.jsx)(E,{children:n}),Object(m.jsx)(p,Object(i.a)({onAccept:r,onClear:s,onCancel:c,onSetToday:l,actions:["cancel","accept"]},null==d?void 0:d.actionBar))]}))},b=["children","DateInputProps","DialogProps","onAccept","onClear","onDismiss","onCancel","onSetToday","open","PureDateInputComponent","components","componentsProps"];function S(t){const{children:e,DateInputProps:n,DialogProps:r,onAccept:a,onClear:c,onDismiss:l,onCancel:u,onSetToday:h,open:d,PureDateInputComponent:p,components:_,componentsProps:f}=t,g=Object(o.a)(t,b);return Object(m.jsxs)(s.a.Provider,{value:"mobile",children:[Object(m.jsx)(p,Object(i.a)({components:_},g,n)),Object(m.jsx)(y,{DialogProps:r,onAccept:a,onClear:c,onDismiss:l,onCancel:u,onSetToday:h,open:d,components:_,componentsProps:f,children:e})]})}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n(12),o=n(0);var r=n(14);const s=(t,e)=>{const{onAccept:n,onChange:s,value:a,closeOnSelect:c}=t,l=Object(r.e)(),{isOpen:u,setIsOpen:h}=(({open:t,onOpen:e,onClose:n})=>{const i=o.useRef("boolean"==typeof t).current,[r,s]=o.useState(!1);o.useEffect(()=>{if(i){if("boolean"!=typeof t)throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");s(t)}},[i,t]);return{isOpen:r,setIsOpen:o.useCallback(t=>{i||s(t),t&&e&&e(),!t&&n&&n()},[i,e,n])}})(t),d=o.useMemo(()=>e.parseInput(l,a),[e,l,a]),[p,_]=o.useState(d),[m,f]=o.useState(()=>({committed:d,draft:d,resetFallback:d})),g=o.useCallback(t=>{f(e=>{switch(t.action){case"setAll":case"acceptAndClose":return{draft:t.value,committed:t.value,resetFallback:t.value};case"setCommitted":return Object(i.a)({},e,{draft:t.value,committed:t.value});case"setDraft":return Object(i.a)({},e,{draft:t.value});default:return e}}),(t.forceOnChangeCall||!t.skipOnChangeCall&&!e.areValuesEqual(l,m.committed,t.value))&&s(t.value),"acceptAndClose"===t.action&&(h(!1),n&&!e.areValuesEqual(l,m.resetFallback,t.value)&&n(t.value))},[n,s,h,m,l,e]);o.useEffect(()=>{l.isValid(d)&&_(d)},[l,d]),o.useEffect(()=>{u&&g({action:"setAll",value:d,skipOnChangeCall:!0})},[u]),e.areValuesEqual(l,m.committed,d)||g({action:"setCommitted",value:d,skipOnChangeCall:!0});const $=o.useMemo(()=>({open:u,onClear:()=>{g({value:e.emptyValue,action:"acceptAndClose",forceOnChangeCall:!e.areValuesEqual(l,a,e.emptyValue)})},onAccept:()=>{g({value:m.draft,action:"acceptAndClose",forceOnChangeCall:!e.areValuesEqual(l,a,d)})},onDismiss:()=>{g({value:m.committed,action:"acceptAndClose"})},onCancel:()=>{g({value:m.resetFallback,action:"acceptAndClose"})},onSetToday:()=>{g({value:e.getTodayValue(l),action:"acceptAndClose"})}}),[g,u,l,m,e,a,d]),[E,y]=o.useState(!1),b=o.useMemo(()=>({parsedValue:m.draft,isMobileKeyboardViewOpen:E,toggleMobileKeyboardView:()=>y(!E),onDateChange:(t,e,n="partial")=>{switch(n){case"shallow":return g({action:"setDraft",value:t,skipOnChangeCall:!0});case"partial":return g({action:"setDraft",value:t});case"finish":return g((null!=c?c:"desktop"===e)?{value:t,action:"acceptAndClose"}:{value:t,action:"setCommitted"});default:throw new Error("MUI: Invalid selectionState passed to `onDateChange`")}}}),[g,E,m.draft,c]),S=o.useCallback((t,n)=>{const i=e.valueReducer?e.valueReducer(l,p,t):t;s(i,n)},[s,e,p,l]),v={pickerProps:b,inputProps:o.useMemo(()=>({onChange:S,open:u,rawValue:a,openPicker:()=>h(!0)}),[S,u,a,h]),wrapperProps:$};return o.useDebugValue(v,()=>({MuiPickerState:{dateState:m,other:v}})),v}},function(t,e,n){"use strict";function i(t,e){"function"==typeof t?t(e):t&&(t.current=e)}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";function i(t,e){return"function"==typeof t?t(e):t}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n(0),o=n(352);function r(...t){return i.useMemo(()=>t.every(t=>null==t)?null:e=>{t.forEach(t=>{Object(o.a)(t,e)})},t)}},,,,,,,,,,,,function(t,e,n){var i,o,r;o=[e,n(31),n(85),n(282),n(367)],void 0===(r="function"==typeof(i=function(t,e,n,i,o){"use strict";e.kotlin.coroutines.intrinsics.COROUTINE_SUSPENDED,e.kotlin.coroutines.CoroutineImpl,n.kotlinx.coroutines.channels.Channel_lsve6m$,e.kotlin.Unit,i.com.ustadmobile.door.lifecycle.Observer,n.kotlinx.coroutines.withTimeoutOrNull_ms3uf5$,e.Long.fromInt(5e3),n.kotlinx.coroutines.CompletableDeferred_xptg6w$;var r=e.Kind.INTERFACE,s=(e.Kind.CLASS,e.Kind.OBJECT),a=(e.kotlin.text.split_ip8yn$,e.kotlin.text.substringBefore_8cymmc$,e.kotlin.text.substringAfter_j4ogox$,e.kotlin.to_ujzrz7$,e.kotlin.collections.toMap_6hr0sd$,e.throwCCE),c=(e.kotlin.text.trim_gw00vp$,e.kotlin.text.toDouble_pdl1vz$,e.kotlin.collections.collectionSizeOrDefault_ba2ldo$),l=e.kotlin.collections.ArrayList_init_ww73n8$,u=(e.defineInlineFunction,e.wrapFunction,e.kotlin.ranges.IntRange),h=e.kotlin.random.Random,d=e.toBoxedChar,p=e.kotlin.collections.joinToString_fmv235$,_=(e.Long.NEG_ONE,e.kotlin.collections.emptyMap_q3lmfv$,e.Long.ZERO,e.kotlin.text.indexOf_8eortd$,e.kotlin.text.toLong_pdl1vz$,e.equals,e.kotlin.collections.mapOf_qfcya0$,e.kotlin.Exception,e.kotlin.collections.ArrayList_init_287e2$,e.kotlin.text.Regex_init_61zpoe$),m=e.kotlin.text.removePrefix_gsj5wt$,f=(o.com.ustadmobile.xmlpullparserkmp,e.toString,e.kotlin.collections.contains_mjy6jw$,e.kotlin.NotImplementedError),g=e.kotlin.collections.mutableListOf_i5x0yv$;function $(){v()}function E(){S=this,this.STATUS_CREATED=1,this.STATUS_STARTED=2,this.STATUS_RESUMED=3,this.STATUS_PAUSED=4,this.STATUS_STOPPED=5,this.STATUS_DESTROYED=6}e.kotlin.collections.mutableMapOf_qfcya0$,E.$metadata$={kind:s,simpleName:"Companion",interfaces:[]};var y,b,S=null;function v(){return null===S&&new E,S}$.$metadata$={kind:r,simpleName:"UmLifecycleOwner",interfaces:[]};var C=t.com||(t.com={}),N=C.ustadmobile||(C.ustadmobile={}),T=N.core||(N.core={}),L=T.impl||(T.impl={});Object.defineProperty($,"Companion",{get:v}),L.UmLifecycleOwner=$;var z=N.lib||(N.lib={}),w=z.util||(z.util={});w.randomString_19mbxw$=function(t,e){void 0===e&&(e=y);var n,i=new u(1,t),o=l(c(i,10));for(n=i.iterator();n.hasNext();)n.next(),o.add_11rb$(d(e.charCodeAt(h.Default.nextInt_vux9f0$(0,e.length))));return p(o,"")},w.sanitizeDbNameFromUrl_61zpoe$=function(t){var e=m(m(t,"https://"),"http://");return b.replace_x2uqeu$(e,"_")};var O=w.ext||(w.ext={});return w.authenticateEncryptedPassword_puj7f4$=function(t,e){throw new f("An operation is not implemented: not implemented")},w.encryptPassword_61zpoe$=function(t){throw new f("An operation is not implemented: not implemented")},w.getSystemTimeInMillis=function(){return e.Long.fromNumber((new Date).getTime())},w.getDefaultTimeZoneId=function(){var t;return"string"==typeof(t=Intl.DateTimeFormat().resolvedOptions().timeZone)?t:a()},w.copyOnWriteListOf_i5x0yv$=function(t){return g(t.slice())},O.fixTincan_omobsc$=function(t){},y="abcdefghikjmnpqrstuvxwyz23456789",b=_("\\W"),t})?i.apply(e,o):i)||(t.exports=r)},function(t,e,n){var i,o,r;o=[e,n(31)],void 0===(r="function"==typeof(i=function(t,e){"use strict";var n=e.Kind.OBJECT,i=e.Kind.CLASS,o=e.Kind.INTERFACE,r=e.kotlin.Exception_init_pdl1vj$,s=e.kotlin.Exception,a=e.kotlin.IllegalStateException_init_pdl1vj$,c=e.kotlin.collections.LinkedHashMap_init_q3lmfv$,l=e.throwUPAE,u=e.kotlin.text.startsWith_7epoxm$,h=e.equals,d=e.kotlin.collections.last_2p1efm$,p=e.kotlin.collections.removeLastOrNull_vvxzk3$,_=e.kotlin.collections.indexOf_bv23uc$,m=e.kotlin.collections.reverse_vvxzk3$,f=e.org.w3c.dom.asList_kt9thq$,g=e.kotlin.IndexOutOfBoundsException_init,$=e.kotlin.text.contains_li3zpu$,E=e.kotlin.text.isBlank_gw00vp$,y=e.kotlin.collections.ArrayList_init_287e2$,b=e.kotlin.collections.emptyList_287e2$,S=e.kotlin.collections.LinkedHashSet_init_287e2$;function v(){C=this,this.START_DOCUMENT=0,this.END_DOCUMENT=1,this.START_TAG=2,this.END_TAG=3,this.TEXT=4,this.CDSECT=5,this.DOCDECL=10,this.ENTITY_REF=6,this.FEATURE_PROCESS_NAMESPACES="http://xmlpull.org/v1/doc/features.html#process-namespaces",this.PROPERTY_STANDALONE="http://xmlpull.org/v1/doc/properties.html#xmldecl-standalone",this.PROPERTY_VERSION="http://xmlpull.org/v1/doc/properties.html#xmldecl-version"}z.prototype=Object.create(s.prototype),z.prototype.constructor=z,v.$metadata$={kind:n,simpleName:"XmlPullParserConstants",interfaces:[]};var C=null;function N(){return null===C&&new v,C}function T(){this.eventNode=null,this.eventNodeDepth=-1,this.eventType=-1}function L(){}function z(t){r(t,this),this.name="XmlPullParserException"}function w(){A(),this.features_naxo9$_0=c()}function O(){R=this,this.FEATURE_VALIDATING="http://xmlpull.org/v1/doc/features.html#validation",this.FEATURE_NAMESPACE="http://xmlpull.org/v1/doc/features.html#process-namespaces"}T.$metadata$={kind:i,simpleName:"ParserEvent",interfaces:[]},L.$metadata$={kind:o,simpleName:"XmlPullParser",interfaces:[]},z.$metadata$={kind:i,simpleName:"XmlPullParserException",interfaces:[s]},w.prototype.setFeature_ivxn3r$=function(t,e){this.features_naxo9$_0.put_xwzc9p$(t,e)},w.prototype.getFeature_61zpoe$=function(t){var e;return null!=(e=this.features_naxo9$_0.get_11rb$(t))&&e},w.prototype.setNamespaceAware_6taknv$=function(t){this.setFeature_ivxn3r$(A().FEATURE_NAMESPACE,t)},w.prototype.isNamespaceAware=function(){return this.getFeature_61zpoe$(A().FEATURE_NAMESPACE)},w.prototype.setValidating_6taknv$=function(t){this.setFeature_ivxn3r$(A().FEATURE_VALIDATING,t)},w.prototype.isValidating=function(){return this.getFeature_61zpoe$(A().FEATURE_VALIDATING)},w.prototype.newPullParser=function(){var t,e=new x;for(t=this.features_naxo9$_0.entries.iterator();t.hasNext();){var n=t.next();e.setFeature_ivxn3r$(n.key,n.value)}return e},w.prototype.newSerializer=function(){throw a("Not available on Javascript yet")},O.prototype.newInstance=function(){return new w},O.$metadata$={kind:n,simpleName:"Companion",interfaces:[]};var R=null;function A(){return null===R&&new O,R}function x(){this.treeWalker_pdgf4x$_0=this.treeWalker_pdgf4x$_0,this.document_yfpuna$_0=this.document_yfpuna$_0,this.eventsStack_0=y(),this.parentNodesStack_0=y(),this.nextNode_0=null,this.currentEvent_0=null,this.lastParentNode_0=null,this.processNsp_0=!1,this.relaxed_0=!0}function I(t){return NodeFilter.FILTER_ACCEPT}function U(t){return function(){return t.nextNode_0=t.treeWalker_0.nextNode(),t.nextNode_0}}function D(t){return function(){return t.lastParentNode_0=p(t.parentNodesStack_0),t.lastParentNode_0}}function P(){}w.$metadata$={kind:i,simpleName:"XmlPullParserFactory",interfaces:[]},Object.defineProperty(x.prototype,"treeWalker_0",{configurable:!0,get:function(){return null==this.treeWalker_pdgf4x$_0?l("treeWalker"):this.treeWalker_pdgf4x$_0},set:function(t){this.treeWalker_pdgf4x$_0=t}}),Object.defineProperty(x.prototype,"document_0",{configurable:!0,get:function(){return null==this.document_yfpuna$_0?l("document"):this.document_yfpuna$_0},set:function(t){this.document_yfpuna$_0=t}}),x.prototype.setInput_61zpoe$=function(t){this.document_0=(new DOMParser).parseFromString(t,"text/"+(u(t,">>32-e}function l(t,e,n,i,o,r,s){return c(t+(e&n|~e&i)+o+r|0,s)+e|0}function u(t,e,n,i,o,r,s){return c(t+(e&i|n&~i)+o+r|0,s)+e|0}function h(t,e,n,i,o,r,s){return c(t+(e^n^i)+o+r|0,s)+e|0}function d(t,e,n,i,o,r,s){return c(t+(n^(e|~i))+o+r|0,s)+e|0}i(a,o),a.prototype._update=function(){for(var t=s,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);var n=this._a,i=this._b,o=this._c,r=this._d;n=l(n,i,o,r,t[0],3614090360,7),r=l(r,n,i,o,t[1],3905402710,12),o=l(o,r,n,i,t[2],606105819,17),i=l(i,o,r,n,t[3],3250441966,22),n=l(n,i,o,r,t[4],4118548399,7),r=l(r,n,i,o,t[5],1200080426,12),o=l(o,r,n,i,t[6],2821735955,17),i=l(i,o,r,n,t[7],4249261313,22),n=l(n,i,o,r,t[8],1770035416,7),r=l(r,n,i,o,t[9],2336552879,12),o=l(o,r,n,i,t[10],4294925233,17),i=l(i,o,r,n,t[11],2304563134,22),n=l(n,i,o,r,t[12],1804603682,7),r=l(r,n,i,o,t[13],4254626195,12),o=l(o,r,n,i,t[14],2792965006,17),n=u(n,i=l(i,o,r,n,t[15],1236535329,22),o,r,t[1],4129170786,5),r=u(r,n,i,o,t[6],3225465664,9),o=u(o,r,n,i,t[11],643717713,14),i=u(i,o,r,n,t[0],3921069994,20),n=u(n,i,o,r,t[5],3593408605,5),r=u(r,n,i,o,t[10],38016083,9),o=u(o,r,n,i,t[15],3634488961,14),i=u(i,o,r,n,t[4],3889429448,20),n=u(n,i,o,r,t[9],568446438,5),r=u(r,n,i,o,t[14],3275163606,9),o=u(o,r,n,i,t[3],4107603335,14),i=u(i,o,r,n,t[8],1163531501,20),n=u(n,i,o,r,t[13],2850285829,5),r=u(r,n,i,o,t[2],4243563512,9),o=u(o,r,n,i,t[7],1735328473,14),n=h(n,i=u(i,o,r,n,t[12],2368359562,20),o,r,t[5],4294588738,4),r=h(r,n,i,o,t[8],2272392833,11),o=h(o,r,n,i,t[11],1839030562,16),i=h(i,o,r,n,t[14],4259657740,23),n=h(n,i,o,r,t[1],2763975236,4),r=h(r,n,i,o,t[4],1272893353,11),o=h(o,r,n,i,t[7],4139469664,16),i=h(i,o,r,n,t[10],3200236656,23),n=h(n,i,o,r,t[13],681279174,4),r=h(r,n,i,o,t[0],3936430074,11),o=h(o,r,n,i,t[3],3572445317,16),i=h(i,o,r,n,t[6],76029189,23),n=h(n,i,o,r,t[9],3654602809,4),r=h(r,n,i,o,t[12],3873151461,11),o=h(o,r,n,i,t[15],530742520,16),n=d(n,i=h(i,o,r,n,t[2],3299628645,23),o,r,t[0],4096336452,6),r=d(r,n,i,o,t[7],1126891415,10),o=d(o,r,n,i,t[14],2878612391,15),i=d(i,o,r,n,t[5],4237533241,21),n=d(n,i,o,r,t[12],1700485571,6),r=d(r,n,i,o,t[3],2399980690,10),o=d(o,r,n,i,t[10],4293915773,15),i=d(i,o,r,n,t[1],2240044497,21),n=d(n,i,o,r,t[8],1873313359,6),r=d(r,n,i,o,t[15],4264355552,10),o=d(o,r,n,i,t[6],2734768916,15),i=d(i,o,r,n,t[13],1309151649,21),n=d(n,i,o,r,t[4],4149444226,6),r=d(r,n,i,o,t[11],3174756917,10),o=d(o,r,n,i,t[2],718787259,15),i=d(i,o,r,n,t[9],3951481745,21),this._a=this._a+n|0,this._b=this._b+i|0,this._c=this._c+o|0,this._d=this._d+r|0},a.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=r.allocUnsafe(16);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t},t.exports=a},function(t,e,n){(function(e){function n(t){try{if(!e.localStorage)return!1}catch(t){return!1}var n=e.localStorage[t];return null!=n&&"true"===String(n).toLowerCase()}t.exports=function(t,e){if(n("noDeprecation"))return t;var i=!1;return function(){if(!i){if(n("throwDeprecation"))throw new Error(e);n("traceDeprecation")?console.trace(e):console.warn(e),i=!0}return t.apply(this,arguments)}}}).call(this,n(55))},function(t,e,n){"use strict";var i=n(176).codes.ERR_STREAM_PREMATURE_CLOSE;function o(){}t.exports=function t(e,n,r){if("function"==typeof n)return t(e,null,n);n||(n={}),r=function(t){var e=!1;return function(){if(!e){e=!0;for(var n=arguments.length,i=new Array(n),o=0;o>>32-e}function m(t,e,n,i,o,r,s,a){return _(t+(e^n^i)+r+s|0,a)+o|0}function f(t,e,n,i,o,r,s,a){return _(t+(e&n|~e&i)+r+s|0,a)+o|0}function g(t,e,n,i,o,r,s,a){return _(t+((e|~n)^i)+r+s|0,a)+o|0}function $(t,e,n,i,o,r,s,a){return _(t+(e&i|n&~i)+r+s|0,a)+o|0}function E(t,e,n,i,o,r,s,a){return _(t+(e^(n|~i))+r+s|0,a)+o|0}o(p,r),p.prototype._update=function(){for(var t=s,e=0;e<16;++e)t[e]=this._block.readInt32LE(4*e);for(var n=0|this._a,i=0|this._b,o=0|this._c,r=0|this._d,p=0|this._e,y=0|this._a,b=0|this._b,S=0|this._c,v=0|this._d,C=0|this._e,N=0;N<80;N+=1){var T,L;N<16?(T=m(n,i,o,r,p,t[a[N]],h[0],l[N]),L=E(y,b,S,v,C,t[c[N]],d[0],u[N])):N<32?(T=f(n,i,o,r,p,t[a[N]],h[1],l[N]),L=$(y,b,S,v,C,t[c[N]],d[1],u[N])):N<48?(T=g(n,i,o,r,p,t[a[N]],h[2],l[N]),L=g(y,b,S,v,C,t[c[N]],d[2],u[N])):N<64?(T=$(n,i,o,r,p,t[a[N]],h[3],l[N]),L=f(y,b,S,v,C,t[c[N]],d[3],u[N])):(T=E(n,i,o,r,p,t[a[N]],h[4],l[N]),L=m(y,b,S,v,C,t[c[N]],d[4],u[N])),n=p,p=r,r=_(o,10),o=i,i=T,y=C,C=v,v=_(S,10),S=b,b=L}var z=this._b+o+v|0;this._b=this._c+r+C|0,this._c=this._d+p+y|0,this._d=this._e+n+b|0,this._e=this._a+i+S|0,this._a=z},p.prototype._digest=function(){this._block[this._blockOffset++]=128,this._blockOffset>56&&(this._block.fill(0,this._blockOffset,64),this._update(),this._blockOffset=0),this._block.fill(0,this._blockOffset,56),this._block.writeUInt32LE(this._length[0],56),this._block.writeUInt32LE(this._length[1],60),this._update();var t=i.alloc?i.alloc(20):new i(20);return t.writeInt32LE(this._a,0),t.writeInt32LE(this._b,4),t.writeInt32LE(this._c,8),t.writeInt32LE(this._d,12),t.writeInt32LE(this._e,16),t},t.exports=p},function(t,e,n){(e=t.exports=function(t){t=t.toLowerCase();var n=e[t];if(!n)throw new Error(t+" is not supported (we accept pull requests)");return new n}).sha=n(772),e.sha1=n(773),e.sha224=n(774),e.sha256=n(583),e.sha384=n(775),e.sha512=n(584)},function(t,e,n){(e=t.exports=n(585)).Stream=e,e.Readable=e,e.Writable=n(375),e.Duplex=n(154),e.Transform=n(590),e.PassThrough=n(780)},function(t,e,n){var i=n(50),o=i.Buffer;function r(t,e){for(var n in t)e[n]=t[n]}function s(t,e,n){return o(t,e,n)}o.from&&o.alloc&&o.allocUnsafe&&o.allocUnsafeSlow?t.exports=i:(r(i,e),e.Buffer=s),r(o,s),s.from=function(t,e,n){if("number"==typeof t)throw new TypeError("Argument must not be a number");return o(t,e,n)},s.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError("Argument must be a number");var i=o(t);return void 0!==e?"string"==typeof n?i.fill(e,n):i.fill(e):i.fill(0),i},s.allocUnsafe=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return o(t)},s.allocUnsafeSlow=function(t){if("number"!=typeof t)throw new TypeError("Argument must be a number");return i.SlowBuffer(t)}},function(t,e,n){"use strict";(function(e,i,o){var r=n(287);function s(t){var e=this;this.next=null,this.entry=null,this.finish=function(){!function(t,e,n){var i=t.entry;t.entry=null;for(;i;){var o=i.callback;e.pendingcb--,o(n),i=i.next}e.corkedRequestsFree?e.corkedRequestsFree.next=t:e.corkedRequestsFree=t}(e,t)}}t.exports=$;var a,c=!e.browser&&["v0.10","v0.9."].indexOf(e.version.slice(0,5))>-1?i:r.nextTick;$.WritableState=g;var l=Object.create(n(233));l.inherits=n(20);var u={deprecate:n(369)},h=n(586),d=n(374).Buffer,p=o.Uint8Array||function(){};var _,m=n(587);function f(){}function g(t,e){a=a||n(154),t=t||{};var i=e instanceof a;this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.writableObjectMode);var o=t.highWaterMark,l=t.writableHighWaterMark,u=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:i&&(l||0===l)?l:u,this.highWaterMark=Math.floor(this.highWaterMark),this.finalCalled=!1,this.needDrain=!1,this.ending=!1,this.ended=!1,this.finished=!1,this.destroyed=!1;var h=!1===t.decodeStrings;this.decodeStrings=!h,this.defaultEncoding=t.defaultEncoding||"utf8",this.length=0,this.writing=!1,this.corked=0,this.sync=!0,this.bufferProcessing=!1,this.onwrite=function(t){!function(t,e){var n=t._writableState,i=n.sync,o=n.writecb;if(function(t){t.writing=!1,t.writecb=null,t.length-=t.writelen,t.writelen=0}(n),e)!function(t,e,n,i,o){--e.pendingcb,n?(r.nextTick(o,i),r.nextTick(C,t,e),t._writableState.errorEmitted=!0,t.emit("error",i)):(o(i),t._writableState.errorEmitted=!0,t.emit("error",i),C(t,e))}(t,n,i,e,o);else{var s=S(n);s||n.corked||n.bufferProcessing||!n.bufferedRequest||b(t,n),i?c(y,t,n,s,o):y(t,n,s,o)}}(e,t)},this.writecb=null,this.writelen=0,this.bufferedRequest=null,this.lastBufferedRequest=null,this.pendingcb=0,this.prefinished=!1,this.errorEmitted=!1,this.bufferedRequestCount=0,this.corkedRequestsFree=new s(this)}function $(t){if(a=a||n(154),!(_.call($,this)||this instanceof a))return new $(t);this._writableState=new g(t,this),this.writable=!0,t&&("function"==typeof t.write&&(this._write=t.write),"function"==typeof t.writev&&(this._writev=t.writev),"function"==typeof t.destroy&&(this._destroy=t.destroy),"function"==typeof t.final&&(this._final=t.final)),h.call(this)}function E(t,e,n,i,o,r,s){e.writelen=i,e.writecb=s,e.writing=!0,e.sync=!0,n?t._writev(o,e.onwrite):t._write(o,r,e.onwrite),e.sync=!1}function y(t,e,n,i){n||function(t,e){0===e.length&&e.needDrain&&(e.needDrain=!1,t.emit("drain"))}(t,e),e.pendingcb--,i(),C(t,e)}function b(t,e){e.bufferProcessing=!0;var n=e.bufferedRequest;if(t._writev&&n&&n.next){var i=e.bufferedRequestCount,o=new Array(i),r=e.corkedRequestsFree;r.entry=n;for(var a=0,c=!0;n;)o[a]=n,n.isBuf||(c=!1),n=n.next,a+=1;o.allBuffers=c,E(t,e,!0,e.length,o,"",r.finish),e.pendingcb++,e.lastBufferedRequest=null,r.next?(e.corkedRequestsFree=r.next,r.next=null):e.corkedRequestsFree=new s(e),e.bufferedRequestCount=0}else{for(;n;){var l=n.chunk,u=n.encoding,h=n.callback;if(E(t,e,!1,e.objectMode?1:l.length,l,u,h),n=n.next,e.bufferedRequestCount--,e.writing)break}null===n&&(e.lastBufferedRequest=null)}e.bufferedRequest=n,e.bufferProcessing=!1}function S(t){return t.ending&&0===t.length&&null===t.bufferedRequest&&!t.finished&&!t.writing}function v(t,e){t._final((function(n){e.pendingcb--,n&&t.emit("error",n),e.prefinished=!0,t.emit("prefinish"),C(t,e)}))}function C(t,e){var n=S(e);return n&&(!function(t,e){e.prefinished||e.finalCalled||("function"==typeof t._final?(e.pendingcb++,e.finalCalled=!0,r.nextTick(v,t,e)):(e.prefinished=!0,t.emit("prefinish")))}(t,e),0===e.pendingcb&&(e.finished=!0,t.emit("finish"))),n}l.inherits($,h),g.prototype.getBuffer=function(){for(var t=this.bufferedRequest,e=[];t;)e.push(t),t=t.next;return e},function(){try{Object.defineProperty(g.prototype,"buffer",{get:u.deprecate((function(){return this.getBuffer()}),"_writableState.buffer is deprecated. Use _writableState.getBuffer instead.","DEP0003")})}catch(t){}}(),"function"==typeof Symbol&&Symbol.hasInstance&&"function"==typeof Function.prototype[Symbol.hasInstance]?(_=Function.prototype[Symbol.hasInstance],Object.defineProperty($,Symbol.hasInstance,{value:function(t){return!!_.call(this,t)||this===$&&(t&&t._writableState instanceof g)}})):_=function(t){return t instanceof this},$.prototype.pipe=function(){this.emit("error",new Error("Cannot pipe, not readable"))},$.prototype.write=function(t,e,n){var i,o=this._writableState,s=!1,a=!o.objectMode&&(i=t,d.isBuffer(i)||i instanceof p);return a&&!d.isBuffer(t)&&(t=function(t){return d.from(t)}(t)),"function"==typeof e&&(n=e,e=null),a?e="buffer":e||(e=o.defaultEncoding),"function"!=typeof n&&(n=f),o.ended?function(t,e){var n=new Error("write after end");t.emit("error",n),r.nextTick(e,n)}(this,n):(a||function(t,e,n,i){var o=!0,s=!1;return null===n?s=new TypeError("May not write null values to stream"):"string"==typeof n||void 0===n||e.objectMode||(s=new TypeError("Invalid non-string/buffer chunk")),s&&(t.emit("error",s),r.nextTick(i,s),o=!1),o}(this,o,t,n))&&(o.pendingcb++,s=function(t,e,n,i,o,r){if(!n){var s=function(t,e,n){t.objectMode||!1===t.decodeStrings||"string"!=typeof e||(e=d.from(e,n));return e}(e,i,o);i!==s&&(n=!0,o="buffer",i=s)}var a=e.objectMode?1:i.length;e.length+=a;var c=e.length-1))throw new TypeError("Unknown encoding: "+t);return this._writableState.defaultEncoding=t,this},Object.defineProperty($.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),$.prototype._write=function(t,e,n){n(new Error("_write() is not implemented"))},$.prototype._writev=null,$.prototype.end=function(t,e,n){var i=this._writableState;"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),i.corked&&(i.corked=1,this.uncork()),i.ending||i.finished||function(t,e,n){e.ending=!0,C(t,e),n&&(e.finished?r.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,i,n)},Object.defineProperty($.prototype,"destroyed",{get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),$.prototype.destroy=m.destroy,$.prototype._undestroy=m.undestroy,$.prototype._destroy=function(t,e){this.end(),e(t)}}).call(this,n(37),n(588).setImmediate,n(55))},function(t,e,n){"use strict";var i=n(86);function o(t){this.options=t,this.type=this.options.type,this.blockSize=8,this._init(),this.buffer=new Array(this.blockSize),this.bufferOff=0}t.exports=o,o.prototype._init=function(){},o.prototype.update=function(t){return 0===t.length?[]:"decrypt"===this.type?this._updateDecrypt(t):this._updateEncrypt(t)},o.prototype._buffer=function(t,e){for(var n=Math.min(this.buffer.length-this.bufferOff,t.length-e),i=0;i0;i--)e+=this._buffer(t,e),n+=this._flushBuffer(o,n);return e+=this._buffer(t,e),o},o.prototype.final=function(t){var e,n;return t&&(e=this.update(t)),n="encrypt"===this.type?this._finalEncrypt():this._finalDecrypt(),e?e.concat(n):n},o.prototype._pad=function(t,e){if(0===e)return!1;for(;e=0||!e.umod(t.prime1)||!e.umod(t.prime2));return e}function s(t,n){var o=function(t){var e=r(t);return{blinder:e.toRed(i.mont(t.modulus)).redPow(new i(t.publicExponent)).fromRed(),unblinder:e.invm(t.modulus)}}(n),s=n.modulus.byteLength(),a=new i(t).mul(o.blinder).umod(n.modulus),c=a.toRed(i.mont(n.prime1)),l=a.toRed(i.mont(n.prime2)),u=n.coefficient,h=n.prime1,d=n.prime2,p=c.redPow(n.exponent1).fromRed(),_=l.redPow(n.exponent2).fromRed(),m=p.isub(_).imul(u).umod(h).imul(d);return _.iadd(m).imul(o.unblinder).umod(n.modulus).toArrayLike(e,"be",s)}s.getr=r,t.exports=s}).call(this,n(50).Buffer)},function(t,e,n){"use strict";var i=e;i.version=n(820).version,i.utils=n(87),i.rand=n(379),i.curve=n(615),i.curves=n(383),i.ec=n(831),i.eddsa=n(835)},function(t,e,n){"use strict";var i,o=e,r=n(384),s=n(615),a=n(87).assert;function c(t){"short"===t.type?this.curve=new s.short(t):"edwards"===t.type?this.curve=new s.edwards(t):this.curve=new s.mont(t),this.g=this.curve.g,this.n=this.curve.n,this.hash=t.hash,a(this.g.validate(),"Invalid curve"),a(this.g.mul(this.n).isInfinity(),"Invalid curve, G*N != O")}function l(t,e){Object.defineProperty(o,t,{configurable:!0,enumerable:!0,get:function(){var n=new c(e);return Object.defineProperty(o,t,{configurable:!0,enumerable:!0,value:n}),n}})}o.PresetCurve=c,l("p192",{type:"short",prime:"p192",p:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff",a:"ffffffff ffffffff ffffffff fffffffe ffffffff fffffffc",b:"64210519 e59c80e7 0fa7e9ab 72243049 feb8deec c146b9b1",n:"ffffffff ffffffff ffffffff 99def836 146bc9b1 b4d22831",hash:r.sha256,gRed:!1,g:["188da80e b03090f6 7cbf20eb 43a18800 f4ff0afd 82ff1012","07192b95 ffc8da78 631011ed 6b24cdd5 73f977a1 1e794811"]}),l("p224",{type:"short",prime:"p224",p:"ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001",a:"ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff fffffffe",b:"b4050a85 0c04b3ab f5413256 5044b0b7 d7bfd8ba 270b3943 2355ffb4",n:"ffffffff ffffffff ffffffff ffff16a2 e0b8f03e 13dd2945 5c5c2a3d",hash:r.sha256,gRed:!1,g:["b70e0cbd 6bb4bf7f 321390b9 4a03c1d3 56c21122 343280d6 115c1d21","bd376388 b5f723fb 4c22dfe6 cd4375a0 5a074764 44d58199 85007e34"]}),l("p256",{type:"short",prime:null,p:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff ffffffff",a:"ffffffff 00000001 00000000 00000000 00000000 ffffffff ffffffff fffffffc",b:"5ac635d8 aa3a93e7 b3ebbd55 769886bc 651d06b0 cc53b0f6 3bce3c3e 27d2604b",n:"ffffffff 00000000 ffffffff ffffffff bce6faad a7179e84 f3b9cac2 fc632551",hash:r.sha256,gRed:!1,g:["6b17d1f2 e12c4247 f8bce6e5 63a440f2 77037d81 2deb33a0 f4a13945 d898c296","4fe342e2 fe1a7f9b 8ee7eb4a 7c0f9e16 2bce3357 6b315ece cbb64068 37bf51f5"]}),l("p384",{type:"short",prime:null,p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 ffffffff",a:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe ffffffff 00000000 00000000 fffffffc",b:"b3312fa7 e23ee7e4 988e056b e3f82d19 181d9c6e fe814112 0314088f 5013875a c656398d 8a2ed19d 2a85c8ed d3ec2aef",n:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff c7634d81 f4372ddf 581a0db2 48b0a77a ecec196a ccc52973",hash:r.sha384,gRed:!1,g:["aa87ca22 be8b0537 8eb1c71e f320ad74 6e1d3b62 8ba79b98 59f741e0 82542a38 5502f25d bf55296c 3a545e38 72760ab7","3617de4a 96262c6f 5d9e98bf 9292dc29 f8f41dbd 289a147c e9da3113 b5f0b8c0 0a60b1ce 1d7e819d 7a431d7c 90ea0e5f"]}),l("p521",{type:"short",prime:null,p:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff",a:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffc",b:"00000051 953eb961 8e1c9a1f 929a21a0 b68540ee a2da725b 99b315f3 b8b48991 8ef109e1 56193951 ec7e937b 1652c0bd 3bb1bf07 3573df88 3d2c34f1 ef451fd4 6b503f00",n:"000001ff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffa 51868783 bf2f966b 7fcc0148 f709a5d0 3bb5c9b8 899c47ae bb6fb71e 91386409",hash:r.sha512,gRed:!1,g:["000000c6 858e06b7 0404e9cd 9e3ecb66 2395b442 9c648139 053fb521 f828af60 6b4d3dba a14b5e77 efe75928 fe1dc127 a2ffa8de 3348b3c1 856a429b f97e7e31 c2e5bd66","00000118 39296a78 9a3bc004 5c8a5fb4 2c7d1bd9 98f54449 579b4468 17afbd17 273e662c 97ee7299 5ef42640 c550b901 3fad0761 353c7086 a272c240 88be9476 9fd16650"]}),l("curve25519",{type:"mont",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"76d06",b:"1",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["9"]}),l("ed25519",{type:"edwards",prime:"p25519",p:"7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed",a:"-1",c:"1",d:"52036cee2b6ffe73 8cc740797779e898 00700a4d4141d8ab 75eb4dca135978a3",n:"1000000000000000 0000000000000000 14def9dea2f79cd6 5812631a5cf5d3ed",hash:r.sha256,gRed:!1,g:["216936d3cd6e53fec0a4e231fdd6dc5c692cc7609525a7b2c9562d608f25d51a","6666666666666666666666666666666666666666666666666666666666666658"]});try{i=n(830)}catch(t){i=void 0}l("secp256k1",{type:"short",prime:"k256",p:"ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f",a:"0",b:"7",n:"ffffffff ffffffff ffffffff fffffffe baaedce6 af48a03b bfd25e8c d0364141",h:"1",hash:r.sha256,beta:"7ae96a2b657c07106e64479eac3434e99cf0497512f58995c1396c28719501ee",lambda:"5363ad4cc05c30e0a5261c028812645a122e22ea20816678df02967c1b23bd72",basis:[{a:"3086d221a7d46bcde86c90e49284eb15",b:"-e4437ed6010e88286f547fa90abfe4c3"},{a:"114ca50f7a8e2f3f657c1108d9d44cfd8",b:"3086d221a7d46bcde86c90e49284eb15"}],gRed:!1,g:["79be667ef9dcbbac55a06295ce870b07029bfcdb2dce28d959f2815b16f81798","483ada7726a3c4655da4fbfc0e1108a8fd17b448a68554199c47d08ffb10d4b8",i]})},function(t,e,n){var i=e;i.utils=n(102),i.common=n(235),i.sha=n(824),i.ripemd=n(828),i.hmac=n(829),i.sha1=i.sha.sha1,i.sha256=i.sha.sha256,i.sha224=i.sha.sha224,i.sha384=i.sha.sha384,i.sha512=i.sha.sha512,i.ripemd160=i.ripemd.ripemd160},function(t,e,n){"use strict";(function(e){var i,o=n(50),r=o.Buffer,s={};for(i in o)o.hasOwnProperty(i)&&"SlowBuffer"!==i&&"Buffer"!==i&&(s[i]=o[i]);var a=s.Buffer={};for(i in r)r.hasOwnProperty(i)&&"allocUnsafe"!==i&&"allocUnsafeSlow"!==i&&(a[i]=r[i]);if(s.Buffer.prototype=r.prototype,a.from&&a.from!==Uint8Array.from||(a.from=function(t,e,n){if("number"==typeof t)throw new TypeError('The "value" argument must not be of type number. Received type '+typeof t);if(t&&void 0===t.length)throw new TypeError("The first argument must be one of type string, Buffer, ArrayBuffer, Array, or Array-like Object. Received type "+typeof t);return r(t,e,n)}),a.alloc||(a.alloc=function(t,e,n){if("number"!=typeof t)throw new TypeError('The "size" argument must be of type number. Received type '+typeof t);if(t<0||t>=2*(1<<30))throw new RangeError('The value "'+t+'" is invalid for option "size"');var i=r(t);return e&&0!==e.length?"string"==typeof n?i.fill(e,n):i.fill(e):i.fill(0),i}),!s.kStringMaxLength)try{s.kStringMaxLength=e.binding("buffer").kStringMaxLength}catch(t){}s.constants||(s.constants={MAX_LENGTH:s.kMaxLength},s.kStringMaxLength&&(s.constants.MAX_STRING_LENGTH=s.kStringMaxLength)),t.exports=s}).call(this,n(37))},function(t,e,n){"use strict";const i=n(387).Reporter,o=n(236).EncoderBuffer,r=n(236).DecoderBuffer,s=n(86),a=["seq","seqof","set","setof","objid","bool","gentime","utctime","null_","enum","int","objDesc","bitstr","bmpstr","charstr","genstr","graphstr","ia5str","iso646str","numstr","octstr","printstr","t61str","unistr","utf8str","videostr"],c=["key","obj","use","optional","explicit","implicit","def","choice","any","contains"].concat(a);function l(t,e,n){const i={};this._baseState=i,i.name=n,i.enc=t,i.parent=e||null,i.children=null,i.tag=null,i.args=null,i.reverseArgs=null,i.choice=null,i.optional=!1,i.any=!1,i.obj=!1,i.use=null,i.useDecoder=null,i.key=null,i.default=null,i.explicit=null,i.implicit=null,i.contains=null,i.parent||(i.children=[],this._wrap())}t.exports=l;const u=["enc","parent","children","tag","args","reverseArgs","choice","optional","any","obj","use","alteredUse","key","default","explicit","implicit","contains"];l.prototype.clone=function(){const t=this._baseState,e={};u.forEach((function(n){e[n]=t[n]}));const n=new this.constructor(e.parent);return n._baseState=e,n},l.prototype._wrap=function(){const t=this._baseState;c.forEach((function(e){this[e]=function(){const n=new this.constructor(this);return t.children.push(n),n[e].apply(n,arguments)}}),this)},l.prototype._init=function(t){const e=this._baseState;s(null===e.parent),t.call(this),e.children=e.children.filter((function(t){return t._baseState.parent===this}),this),s.equal(e.children.length,1,"Root node can have only one child")},l.prototype._useArgs=function(t){const e=this._baseState,n=t.filter((function(t){return t instanceof this.constructor}),this);t=t.filter((function(t){return!(t instanceof this.constructor)}),this),0!==n.length&&(s(null===e.children),e.children=n,n.forEach((function(t){t._baseState.parent=this}),this)),0!==t.length&&(s(null===e.args),e.args=t,e.reverseArgs=t.map((function(t){if("object"!=typeof t||t.constructor!==Object)return t;const e={};return Object.keys(t).forEach((function(n){n==(0|n)&&(n|=0);const i=t[n];e[i]=n})),e})))},["_peekTag","_decodeTag","_use","_decodeStr","_decodeObjid","_decodeTime","_decodeNull","_decodeInt","_decodeBool","_decodeList","_encodeComposite","_encodeStr","_encodeObjid","_encodeTime","_encodeNull","_encodeInt","_encodeBool"].forEach((function(t){l.prototype[t]=function(){const e=this._baseState;throw new Error(t+" not implemented for encoding: "+e.enc)}})),a.forEach((function(t){l.prototype[t]=function(){const e=this._baseState,n=Array.prototype.slice.call(arguments);return s(null===e.tag),e.tag=t,this._useArgs(n),this}})),l.prototype.use=function(t){s(t);const e=this._baseState;return s(null===e.use),e.use=t,this},l.prototype.optional=function(){return this._baseState.optional=!0,this},l.prototype.def=function(t){const e=this._baseState;return s(null===e.default),e.default=t,e.optional=!0,this},l.prototype.explicit=function(t){const e=this._baseState;return s(null===e.explicit&&null===e.implicit),e.explicit=t,this},l.prototype.implicit=function(t){const e=this._baseState;return s(null===e.explicit&&null===e.implicit),e.implicit=t,this},l.prototype.obj=function(){const t=this._baseState,e=Array.prototype.slice.call(arguments);return t.obj=!0,0!==e.length&&this._useArgs(e),this},l.prototype.key=function(t){const e=this._baseState;return s(null===e.key),e.key=t,this},l.prototype.any=function(){return this._baseState.any=!0,this},l.prototype.choice=function(t){const e=this._baseState;return s(null===e.choice),e.choice=t,this._useArgs(Object.keys(t).map((function(e){return t[e]}))),this},l.prototype.contains=function(t){const e=this._baseState;return s(null===e.use),e.contains=t,this},l.prototype._decode=function(t,e){const n=this._baseState;if(null===n.parent)return t.wrapResult(n.children[0]._decode(t,e));let i,o=n.default,s=!0,a=null;if(null!==n.key&&(a=t.enterKey(n.key)),n.optional){let i=null;if(null!==n.explicit?i=n.explicit:null!==n.implicit?i=n.implicit:null!==n.tag&&(i=n.tag),null!==i||n.any){if(s=this._peekTag(t,i,n.any),t.isError(s))return s}else{const i=t.save();try{null===n.choice?this._decodeGeneric(n.tag,t,e):this._decodeChoice(t,e),s=!0}catch(t){s=!1}t.restore(i)}}if(n.obj&&s&&(i=t.enterObject()),s){if(null!==n.explicit){const e=this._decodeTag(t,n.explicit);if(t.isError(e))return e;t=e}const i=t.offset;if(null===n.use&&null===n.choice){let e;n.any&&(e=t.save());const i=this._decodeTag(t,null!==n.implicit?n.implicit:n.tag,n.any);if(t.isError(i))return i;n.any?o=t.raw(e):t=i}if(e&&e.track&&null!==n.tag&&e.track(t.path(),i,t.length,"tagged"),e&&e.track&&null!==n.tag&&e.track(t.path(),t.offset,t.length,"content"),n.any||(o=null===n.choice?this._decodeGeneric(n.tag,t,e):this._decodeChoice(t,e)),t.isError(o))return o;if(n.any||null!==n.choice||null===n.children||n.children.forEach((function(n){n._decode(t,e)})),n.contains&&("octstr"===n.tag||"bitstr"===n.tag)){const i=new r(o);o=this._getUse(n.contains,t._reporterState.obj)._decode(i,e)}}return n.obj&&s&&(o=t.leaveObject(i)),null===n.key||null===o&&!0!==s?null!==a&&t.exitKey(a):t.leaveKey(a,n.key,o),o},l.prototype._decodeGeneric=function(t,e,n){const i=this._baseState;return"seq"===t||"set"===t?null:"seqof"===t||"setof"===t?this._decodeList(e,t,i.args[0],n):/str$/.test(t)?this._decodeStr(e,t,n):"objid"===t&&i.args?this._decodeObjid(e,i.args[0],i.args[1],n):"objid"===t?this._decodeObjid(e,null,null,n):"gentime"===t||"utctime"===t?this._decodeTime(e,t,n):"null_"===t?this._decodeNull(e,n):"bool"===t?this._decodeBool(e,n):"objDesc"===t?this._decodeStr(e,t,n):"int"===t||"enum"===t?this._decodeInt(e,i.args&&i.args[0],n):null!==i.use?this._getUse(i.use,e._reporterState.obj)._decode(e,n):e.error("unknown tag: "+t)},l.prototype._getUse=function(t,e){const n=this._baseState;return n.useDecoder=this._use(t,e),s(null===n.useDecoder._baseState.parent),n.useDecoder=n.useDecoder._baseState.children[0],n.implicit!==n.useDecoder._baseState.implicit&&(n.useDecoder=n.useDecoder.clone(),n.useDecoder._baseState.implicit=n.implicit),n.useDecoder},l.prototype._decodeChoice=function(t,e){const n=this._baseState;let i=null,o=!1;return Object.keys(n.choice).some((function(r){const s=t.save(),a=n.choice[r];try{const n=a._decode(t,e);if(t.isError(n))return!1;i={type:r,value:n},o=!0}catch(e){return t.restore(s),!1}return!0}),this),o?i:t.error("Choice not matched")},l.prototype._createEncoderBuffer=function(t){return new o(t,this.reporter)},l.prototype._encode=function(t,e,n){const i=this._baseState;if(null!==i.default&&i.default===t)return;const o=this._encodeValue(t,e,n);return void 0===o||this._skipDefault(o,e,n)?void 0:o},l.prototype._encodeValue=function(t,e,n){const o=this._baseState;if(null===o.parent)return o.children[0]._encode(t,e||new i);let r=null;if(this.reporter=e,o.optional&&void 0===t){if(null===o.default)return;t=o.default}let s=null,a=!1;if(o.any)r=this._createEncoderBuffer(t);else if(o.choice)r=this._encodeChoice(t,e);else if(o.contains)s=this._getUse(o.contains,n)._encode(t,e),a=!0;else if(o.children)s=o.children.map((function(n){if("null_"===n._baseState.tag)return n._encode(null,e,t);if(null===n._baseState.key)return e.error("Child should have a key");const i=e.enterKey(n._baseState.key);if("object"!=typeof t)return e.error("Child expected, but input is not object");const o=n._encode(t[n._baseState.key],e,t);return e.leaveKey(i),o}),this).filter((function(t){return t})),s=this._createEncoderBuffer(s);else if("seqof"===o.tag||"setof"===o.tag){if(!o.args||1!==o.args.length)return e.error("Too many args for : "+o.tag);if(!Array.isArray(t))return e.error("seqof/setof, but data is not Array");const n=this.clone();n._baseState.implicit=null,s=this._createEncoderBuffer(t.map((function(n){const i=this._baseState;return this._getUse(i.args[0],t)._encode(n,e)}),n))}else null!==o.use?r=this._getUse(o.use,n)._encode(t,e):(s=this._encodePrimitive(o.tag,t),a=!0);if(!o.any&&null===o.choice){const t=null!==o.implicit?o.implicit:o.tag,n=null===o.implicit?"universal":"context";null===t?null===o.use&&e.error("Tag could be omitted only for .use()"):null===o.use&&(r=this._encodeComposite(t,a,n,s))}return null!==o.explicit&&(r=this._encodeComposite(o.explicit,!1,"context",r)),r},l.prototype._encodeChoice=function(t,e){const n=this._baseState,i=n.choice[t.type];return i||s(!1,t.type+" not found in "+JSON.stringify(Object.keys(n.choice))),i._encode(t.value,e)},l.prototype._encodePrimitive=function(t,e){const n=this._baseState;if(/str$/.test(t))return this._encodeStr(e,t);if("objid"===t&&n.args)return this._encodeObjid(e,n.reverseArgs[0],n.args[1]);if("objid"===t)return this._encodeObjid(e,null,null);if("gentime"===t||"utctime"===t)return this._encodeTime(e,t);if("null_"===t)return this._encodeNull();if("int"===t||"enum"===t)return this._encodeInt(e,n.args&&n.reverseArgs[0]);if("bool"===t)return this._encodeBool(e);if("objDesc"===t)return this._encodeStr(e,t);throw new Error("Unsupported tag: "+t)},l.prototype._isNumstr=function(t){return/^[0-9 ]*$/.test(t)},l.prototype._isPrintstr=function(t){return/^[A-Za-z0-9 '()+,-./:=?]*$/.test(t)}},function(t,e,n){"use strict";const i=n(20);function o(t){this._reporterState={obj:null,path:[],options:t||{},errors:[]}}function r(t,e){this.path=t,this.rethrow(e)}e.Reporter=o,o.prototype.isError=function(t){return t instanceof r},o.prototype.save=function(){const t=this._reporterState;return{obj:t.obj,pathLen:t.path.length}},o.prototype.restore=function(t){const e=this._reporterState;e.obj=t.obj,e.path=e.path.slice(0,t.pathLen)},o.prototype.enterKey=function(t){return this._reporterState.path.push(t)},o.prototype.exitKey=function(t){const e=this._reporterState;e.path=e.path.slice(0,t-1)},o.prototype.leaveKey=function(t,e,n){const i=this._reporterState;this.exitKey(t),null!==i.obj&&(i.obj[e]=n)},o.prototype.path=function(){return this._reporterState.path.join("/")},o.prototype.enterObject=function(){const t=this._reporterState,e=t.obj;return t.obj={},e},o.prototype.leaveObject=function(t){const e=this._reporterState,n=e.obj;return e.obj=t,n},o.prototype.error=function(t){let e;const n=this._reporterState,i=t instanceof r;if(e=i?t:new r(n.path.map((function(t){return"["+JSON.stringify(t)+"]"})).join(""),t.message||t,t.stack),!n.options.partial)throw e;return i||n.errors.push(e),e},o.prototype.wrapResult=function(t){const e=this._reporterState;return e.options.partial?{result:this.isError(t)?null:t,errors:e.errors}:t},i(r,Error),r.prototype.rethrow=function(t){if(this.message=t+" at: "+(this.path||"(shallow)"),Error.captureStackTrace&&Error.captureStackTrace(this,r),!this.stack)try{throw new Error(this.message)}catch(t){this.stack=t.stack}return this}},function(t,e,n){"use strict";function i(t){const e={};return Object.keys(t).forEach((function(n){(0|n)==n&&(n|=0);const i=t[n];e[i]=n})),e}e.tagClass={0:"universal",1:"application",2:"context",3:"private"},e.tagClassByName=i(e.tagClass),e.tag={0:"end",1:"bool",2:"int",3:"bitstr",4:"octstr",5:"null_",6:"objid",7:"objDesc",8:"external",9:"real",10:"enum",11:"embed",12:"utf8str",13:"relativeOid",16:"seq",17:"set",18:"numstr",19:"printstr",20:"t61str",21:"videostr",22:"ia5str",23:"utctime",24:"gentime",25:"graphstr",26:"iso646str",27:"genstr",28:"unistr",29:"charstr",30:"bmpstr"},e.tagByName=i(e.tag)},function(t,e,n){var i,o,r;o=[e,n(31),n(181),n(238),n(0),n(182)],void 0===(r="function"==typeof(i=function(t,e,n,i,o,r){"use strict";var s=t.$$importsForInline$$||(t.$$importsForInline$$={}),a=e.Kind.CLASS,c=n.kotlinext.js.clone_issdgt$,l=e.kotlin.Unit,u=(e.defineInlineFunction,e.wrapFunction,o.createElement),h=i.react.get_react_2wnr96$,d=o.Children,p=e.kotlin.collections.addAll_ye1y7v$,_=e.Kind.INTERFACE,m=e.kotlin.collections.first_2p1efm$,f=e.kotlin.collections.copyToArray,g=e.kotlin.collections.ArrayList_init_287e2$,$=e.kotlin.IllegalStateException_init_pdl1vj$,E=o.Component,y=o.isValidElement;function b(){}function S(t){return function(e){return w(function(t,e){return function(n){return t(n,e),l}}(t,e))}}function v(){return new C}function C(){this.childList_z394dm$_0=g()}function N(){}function T(t){return new L(t)}function L(t){C.call(this),this.attrs_rox8qs$_0=t}function z(){}function w(t){var e=v();t(e);var n=e.childList;return 0===n.size?null:1===n.size&&y(m(n))?m(n):u.apply(null,[o.Fragment,void 0].concat(f(n)))}L.prototype=Object.create(C.prototype),L.prototype.constructor=L,z.prototype=Object.create(E.prototype),z.prototype.constructor=z,b.prototype.child_30b5ua$=function(t){this.childList.add_11rb$(t)},b.prototype.unaryPlus_m8hz4t$=function(t){this.child_30b5ua$(t)},b.prototype.unaryPlus_pdl1vz$=function(t){this.child_30b5ua$(t)},b.prototype.child_1mw94g$$default=function(t,e,n){if(null!=n){var i=T(e);n(i);var o=f(i.childList);this.child_30b5ua$(u.apply(null,[t,e].concat(o)))}else this.child_30b5ua$(u(t,e))},b.prototype.child_1mw94g$=function(t,e,n,i){void 0===e&&(e={}),void 0===n&&(n=null),i?i(t,e,n):this.child_1mw94g$$default(t,e,n)},b.prototype.invoke_r7bapy$=function(t){this.child_30b5ua$(u(t))},b.prototype.invoke_qk0v40$=function(t,e){this.child_1mw94g$(t,void 0,e)},b.prototype.invoke_snhqu5$=function(t,e,n){var i,o;this.child_1mw94g$(t,void 0,(i=e,o=n,function(t){return t.attrs.value=i,o(t),l}))},b.prototype.invoke_c0v1gl$=function(t,e){var n;this.child_1mw94g$(t,void 0,(n=e,function(t){return t.attrs.children=S(n),l}))},b.prototype.child_up9nw1$=function(t,e){this.invoke_qk0v40$(h(t),e)},b.prototype.children_w8hwhj$=function(t){p(this.childList,d.toArray(t.children))},b.$metadata$={kind:_,simpleName:"RBuilder",interfaces:[]},Object.defineProperty(C.prototype,"childList",{configurable:!0,get:function(){return this.childList_z394dm$_0}}),C.$metadata$={kind:a,simpleName:"RBuilderImpl",interfaces:[b]},N.prototype.attrs_37755u$=function(t){t(this.attrs)},Object.defineProperty(N.prototype,"key",{configurable:!0,get:function(){throw $("".toString())},set:function(t){this.attrs.key=t}}),Object.defineProperty(N.prototype,"ref",{configurable:!0,get:function(){throw $("".toString())},set:function(t){this.attrs.ref=t}}),N.$metadata$={kind:_,simpleName:"RElementBuilder",interfaces:[b]},Object.defineProperty(L.prototype,"attrs",{get:function(){return this.attrs_rox8qs$_0}}),L.$metadata$={kind:a,simpleName:"RElementBuilderImpl",interfaces:[C,N]},z.prototype.init_b4e81d$=function(t){},z.prototype.init_xibzyo$=function(t,e){},z.prototype.render=function(){return w((t=this,function(e){return t.render_ss14n$(e),l}));var t},z.$metadata$={kind:a,simpleName:"RComponent",interfaces:[]};var O=t.react||(t.react={});return s["kotlin-extensions"]=n,O.setState_nm1tvw$=function(t,e){var n;t.setState((n=e,function(t){var e=n,i=c(t);return e(i),i}))},O.fc_4mavxa$=function(t){return e=t,function(t){return w(function(t,e){return function(n){return t(n,e),l}}(e,t))};var e},s["kotlin-react-core"]=i,O.RBuilder=b,O.createBuilder=v,O.RBuilderImpl=C,O.RElementBuilder=N,O.RElementBuilder_4vdyb1$=T,O.RElementBuilderImpl=L,O.RComponent_init_5xgh2u$=function(t,e){e=e||Object.create(z.prototype),E.call(e,t),z.call(e);var n={};return e.init_xibzyo$(n,t),e.state=n,e},O.RComponent=z,O.createElement_38u3nc$=w,s.react=o,C.prototype.child_30b5ua$=b.prototype.child_30b5ua$,C.prototype.child_1mw94g$$default=b.prototype.child_1mw94g$$default,C.prototype.child_up9nw1$=b.prototype.child_up9nw1$,C.prototype.unaryPlus_m8hz4t$=b.prototype.unaryPlus_m8hz4t$,C.prototype.unaryPlus_pdl1vz$=b.prototype.unaryPlus_pdl1vz$,C.prototype.invoke_r7bapy$=b.prototype.invoke_r7bapy$,C.prototype.invoke_qk0v40$=b.prototype.invoke_qk0v40$,C.prototype.invoke_snhqu5$=b.prototype.invoke_snhqu5$,C.prototype.invoke_c0v1gl$=b.prototype.invoke_c0v1gl$,C.prototype.children_w8hwhj$=b.prototype.children_w8hwhj$,C.prototype.child_1mw94g$=b.prototype.child_1mw94g$,N.prototype.child_30b5ua$=b.prototype.child_30b5ua$,N.prototype.child_1mw94g$$default=b.prototype.child_1mw94g$$default,N.prototype.child_up9nw1$=b.prototype.child_up9nw1$,N.prototype.unaryPlus_m8hz4t$=b.prototype.unaryPlus_m8hz4t$,N.prototype.unaryPlus_pdl1vz$=b.prototype.unaryPlus_pdl1vz$,N.prototype.invoke_r7bapy$=b.prototype.invoke_r7bapy$,N.prototype.invoke_qk0v40$=b.prototype.invoke_qk0v40$,N.prototype.invoke_snhqu5$=b.prototype.invoke_snhqu5$,N.prototype.invoke_c0v1gl$=b.prototype.invoke_c0v1gl$,N.prototype.children_w8hwhj$=b.prototype.children_w8hwhj$,N.prototype.child_1mw94g$=b.prototype.child_1mw94g$,L.prototype.attrs_37755u$=N.prototype.attrs_37755u$,Object.defineProperty(L.prototype,"key",Object.getOwnPropertyDescriptor(N.prototype,"key")),Object.defineProperty(L.prototype,"ref",Object.getOwnPropertyDescriptor(N.prototype,"ref")),L.prototype.child_30b5ua$=N.prototype.child_30b5ua$,L.prototype.child_1mw94g$$default=N.prototype.child_1mw94g$$default,L.prototype.child_up9nw1$=N.prototype.child_up9nw1$,L.prototype.unaryPlus_m8hz4t$=N.prototype.unaryPlus_m8hz4t$,L.prototype.unaryPlus_pdl1vz$=N.prototype.unaryPlus_pdl1vz$,L.prototype.invoke_r7bapy$=N.prototype.invoke_r7bapy$,L.prototype.invoke_qk0v40$=N.prototype.invoke_qk0v40$,L.prototype.invoke_snhqu5$=N.prototype.invoke_snhqu5$,L.prototype.invoke_c0v1gl$=N.prototype.invoke_c0v1gl$,L.prototype.children_w8hwhj$=N.prototype.children_w8hwhj$,L.prototype.child_1mw94g$=N.prototype.child_1mw94g$,t})?i.apply(e,o):i)||(t.exports=r)},function(t,e,n){var i,o,r;o=[e,n(31)],void 0===(r="function"==typeof(i=function(t,e){"use strict";var n,i=e.Kind.INTERFACE,o=(e.defineInlineFunction,e.wrapFunction,e.kotlin.collections.emptyMap_q3lmfv$),r=e.kotlin.text.StringBuilder_init,s=e.Kind.CLASS,a=(e.kotlin.Annotation,e.kotlin.collections.setOf_mh5how$),c=e.kotlin.collections.listOf_mh5how$,l=e.equals,u=e.kotlin.collections.Map,h=e.kotlin.collections.Map.Entry,d=e.kotlin.collections.LinkedHashMap_init_q3lmfv$,p=e.kotlin.IllegalStateException_init_pdl1vj$,_=e.Kind.OBJECT,m=e.kotlin.IllegalArgumentException_init_pdl1vj$,f=e.kotlin.collections.toSet_7wnvza$,g=e.kotlin.collections.joinToString_fmv235$,$=e.ensureNotNull,E=e.kotlin.collections.emptySet_287e2$,y=e.kotlin.text.Regex_init_61zpoe$,b=e.kotlin.collections.ArrayList_init_287e2$,S=(e.kotlin.Unit,Error,e.kotlin.collections.LinkedHashMap_init_73mtqc$),v=e.kotlin.collections.MutableMap,C=e.throwCCE,N=e.kotlin.Enum,T=e.throwISE,L=(e.kotlin.UnsupportedOperationException_init_pdl1vj$,e.kotlin.collections.HashSet_init_287e2$,e.kotlin.collections.listOf_i5x0yv$,e.kotlin.collections.mapCapacity_za3lpa$),z=e.kotlin.ranges.coerceAtLeast_dqglrj$,w=e.kotlin.collections.LinkedHashMap_init_bwtc7$,O=(e.kotlin.text.StringBuilder_init_za3lpa$,e.toBoxedChar),R=e.kotlin.to_ujzrz7$,A=e.kotlin.collections.mapOf_qfcya0$,x=e.unboxChar,I=e.kotlin.collections.maxOrNull_exjks8$,U=e.toChar,D=e.kotlin.ranges.CharRange,P=(e.kotlin.text.contains_sgbm27$,e.kotlin.text.indexOf_l5u8uk$,e.kotlin.collections.checkIndexOverflow_za3lpa$,e.kotlin.collections.collectionSizeOrDefault_ba2ldo$),M=e.kotlin.collections.ArrayList_init_ww73n8$,k=Array;function j(){}function G(){}function q(){}function F(){}function B(t,e){return new H(t,e)}function W(){this.sb_0=r()}function H(t,e){this.key_fdtcub$_0=t,this.value_484qs5$_0=e}function V(){}function K(t){this.encoder=t}function X(){J=this}e.kotlin.text.iterator_gw00vp$,e.kotlin.collections.get_lastIndex_55thoc$,e.toString,e.kotlin.collections.last_2p1efm$,e.org.w3c.dom.asList_kt9thq$,e.kotlin.collections.first_2p1efm$,e.kotlin.collections.emptyList_287e2$,e.kotlin.collections.addAll_ipc267$,Q.prototype=Object.create(K.prototype),Q.prototype.constructor=Q,tt.prototype=Object.create(K.prototype),tt.prototype.constructor=tt,rt.prototype=Object.create(K.prototype),rt.prototype.constructor=rt,at.prototype=Object.create(K.prototype),at.prototype.constructor=at,tn.prototype=Object.create(K.prototype),tn.prototype.constructor=tn,an.prototype=Object.create(N.prototype),an.prototype.constructor=an,dn.prototype=Object.create(N.prototype),dn.prototype.constructor=dn,$n.prototype=Object.create(N.prototype),$n.prototype.constructor=$n,Sn.prototype=Object.create(N.prototype),Sn.prototype.constructor=Sn,wn.prototype=Object.create(N.prototype),wn.prototype.constructor=wn,Un.prototype=Object.create(N.prototype),Un.prototype.constructor=Un,Fn.prototype=Object.create(N.prototype),Fn.prototype.constructor=Fn,Xn.prototype=Object.create(N.prototype),Xn.prototype.constructor=Xn,ei.prototype=Object.create(N.prototype),ei.prototype.constructor=ei,ai.prototype=Object.create(N.prototype),ai.prototype.constructor=ai,mi.prototype=Object.create(N.prototype),mi.prototype.constructor=mi,bi.prototype=Object.create(N.prototype),bi.prototype.constructor=bi,Vi.prototype=Object.create(N.prototype),Vi.prototype.constructor=Vi,Zi.prototype=Object.create(N.prototype),Zi.prototype.constructor=Zi,ao.prototype=Object.create(N.prototype),ao.prototype.constructor=ao,ho.prototype=Object.create(N.prototype),ho.prototype.constructor=ho,go.prototype=Object.create(N.prototype),go.prototype.constructor=go,tr.prototype=Object.create(ar.prototype),tr.prototype.constructor=tr,er.prototype=Object.create(ar.prototype),er.prototype.constructor=er,nr.prototype=Object.create(ar.prototype),nr.prototype.constructor=nr,ir.prototype=Object.create(ar.prototype),ir.prototype.constructor=ir,or.prototype=Object.create(ar.prototype),or.prototype.constructor=or,rr.prototype=Object.create(ar.prototype),rr.prototype.constructor=rr,sr.prototype=Object.create(ar.prototype),sr.prototype.constructor=sr,j.prototype.onTagError_cjwpn3$=function(t,e){throw e},j.$metadata$={kind:i,simpleName:"TagConsumer",interfaces:[]},G.prototype.unaryPlus_lvwjq6$=function(t){this.entity_ws8or7$(t)},G.prototype.unaryPlus_pdl1vz$=function(t){this.text_61zpoe$(t)},G.prototype.text_61zpoe$=function(t){this.consumer.onTagContent_6bul2c$(t)},G.prototype.text_3p81yu$=function(t){this.text_61zpoe$(t.toString())},G.prototype.entity_ws8or7$=function(t){this.consumer.onTagContentEntity_ws8or7$(t)},G.prototype.comment_61zpoe$=function(t){this.consumer.onTagComment_6bul2c$(t)},G.$metadata$={kind:i,simpleName:"Tag",interfaces:[]},q.prototype.unaryPlus_lvwjq6$=function(t){this.unaryPlus_pdl1vz$(t.text)},q.prototype.raw_61zpoe$=function(t){this.unaryPlus_pdl1vz$(t)},q.prototype.raw_ws8or7$=function(t){this.unaryPlus_lvwjq6$(t)},q.prototype.raw_3p81yu$=function(t){this.unaryPlus_pdl1vz$(t.toString())},q.$metadata$={kind:i,simpleName:"Unsafe",interfaces:[]},F.$metadata$={kind:i,simpleName:"AttributeEnum",interfaces:[]},Object.defineProperty(H.prototype,"key",{get:function(){return this.key_fdtcub$_0}}),Object.defineProperty(H.prototype,"value",{get:function(){return this.value_484qs5$_0}}),Object.defineProperty(H.prototype,"entries",{configurable:!0,get:function(){return a(this)}}),Object.defineProperty(H.prototype,"keys",{configurable:!0,get:function(){return a(this.key)}}),Object.defineProperty(H.prototype,"size",{configurable:!0,get:function(){return 1}}),Object.defineProperty(H.prototype,"values",{configurable:!0,get:function(){return c(this.value)}}),H.prototype.containsKey_11rb$=function(t){return l(t,this.key)},H.prototype.containsValue_11rc$=function(t){return l(t,this.value)},H.prototype.get_11rb$=function(t){return l(t,this.key)?this.value:null},H.prototype.isEmpty=function(){return!1},H.$metadata$={kind:s,simpleName:"SingletonStringMap",interfaces:[h,u]},H.prototype.component1=function(){return this.key},H.prototype.component2=function(){return this.value},H.prototype.copy_puj7f4$=function(t,e){return new H(void 0===t?this.key:t,void 0===e?this.value:e)},H.prototype.toString=function(){return"SingletonStringMap(key="+e.toString(this.key)+", value="+e.toString(this.value)+")"},H.prototype.hashCode=function(){var t=0;return t=31*(t=31*t+e.hashCode(this.key)|0)+e.hashCode(this.value)|0},H.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.key,t.key)&&e.equals(this.value,t.value)},V.prototype.empty_l5rr1g$=function(t,e){throw p("Attribute "+t+" is not yet defined for tag "+e.tagName)},V.$metadata$={kind:i,simpleName:"AttributeEncoder",interfaces:[]},K.prototype.get_txhc1s$=function(t,e){var n,i;return null!=(i=null!=(n=t.attributes.get_11rb$(e))?this.encoder.decode_puj7f4$(e,n):null)?i:this.encoder.empty_l5rr1g$(e,t)},K.prototype.set_fid0sb$=function(t,e,n){t.attributes.put_xwzc9p$(e,this.encoder.encode_yuqcw7$(e,n))},K.$metadata$={kind:s,simpleName:"Attribute",interfaces:[]},X.prototype.encode_yuqcw7$=function(t,e){return e},X.prototype.decode_puj7f4$=function(t,e){return e},X.$metadata$={kind:_,simpleName:"StringEncoder",interfaces:[V]};var J=null;function Y(){return null===J&&new X,J}function Q(){K.call(this,Y())}function Z(t,e){void 0===t&&(t="true"),void 0===e&&(e="false"),this.trueValue=t,this.falseValue=e}function tt(t,e){void 0===t&&(t="true"),void 0===e&&(e="false"),K.call(this,new Z(t,e))}function et(t,e){return t?e:""}function nt(){it=this}Q.$metadata$={kind:s,simpleName:"StringAttribute",interfaces:[K]},Z.prototype.encode_yuqcw7$=function(t,e){return e?this.trueValue:this.falseValue},Z.prototype.decode_puj7f4$=function(t,e){if(l(e,this.trueValue))return!0;if(l(e,this.falseValue))return!1;throw m("Unknown value "+e+" for "+t)},Z.$metadata$={kind:s,simpleName:"BooleanEncoder",interfaces:[V]},tt.$metadata$={kind:s,simpleName:"BooleanAttribute",interfaces:[K]},nt.prototype.encode_yuqcw7$=function(t,e){return et(e,t)},nt.prototype.decode_puj7f4$=function(t,e){return l(e,t)},nt.$metadata$={kind:_,simpleName:"TickerEncoder",interfaces:[V]};var it=null;function ot(){return null===it&&new nt,it}function rt(){K.call(this,ot())}function st(t){this.valuesMap=t}function at(t){K.call(this,new st(t)),this.values=t}function ct(t){var e,n,i;if(null!=(e=null!=t?y("\\s+").split_905azu$(t,0):null)){var o,r=b();for(o=e.iterator();o.hasNext();){var s=o.next();0!==s.length&&r.add_11rb$(s)}i=r}else i=null;return null!=(n=i)?f(n):null}function lt(){Qe=this}rt.prototype.set_fid0sb$=function(t,e,n){n?t.attributes.put_xwzc9p$(e,e):t.attributes.remove_11rb$(e)},rt.$metadata$={kind:s,simpleName:"TickerAttribute",interfaces:[K]},st.prototype.encode_yuqcw7$=function(t,e){return e.realValue},st.prototype.decode_puj7f4$=function(t,e){var n;if(null==(n=this.valuesMap.get_11rb$(e)))throw m("Unknown value "+e+" for "+t);return n},st.$metadata$={kind:s,simpleName:"EnumEncoder",interfaces:[V]},at.$metadata$={kind:s,simpleName:"EnumAttribute",interfaces:[K]},lt.prototype.encode_yuqcw7$=function(t,e){return g(e," ")},lt.prototype.decode_puj7f4$=function(t,e){return $(ct(e))},lt.prototype.empty_l5rr1g$=function(t,e){return E()},lt.$metadata$={kind:_,simpleName:"StringSetEncoder",interfaces:[V]};var ut,ht,dt,pt,_t,mt,ft,gt,$t,Et,yt,bt,St,vt,Ct,Nt,Tt,Lt,zt,wt,Ot,Rt,At,xt,It,Ut,Dt,Pt,Mt,kt,jt,Gt,qt,Ft,Bt,Wt,Ht,Vt,Kt,Xt,Jt,Yt,Qt,Zt,te,ee,ne,ie,oe,re,se,ae,ce,le,ue,he,de,pe,_e,me,fe,ge,$e,Ee,ye,be,Se,ve,Ce,Ne,Te,Le,ze,we,Oe,Re,Ae,xe,Ie,Ue,De,Pe,Me,ke,je,Ge,qe,Fe,Be,We,He,Ve,Ke,Xe,Je,Ye,Qe=null;function Ze(){return null===Qe&&new lt,Qe}function tn(){K.call(this,Ze())}function en(t,e,n){this.tag_0=e,this.consumer_0=n,this.backing_0=t,this.backingMutable_0=!1}function nn(){}function on(){}function rn(){}function sn(){}function an(t,e,n){N.call(this),this.realValue_v17tv0$_0=n,this.name$=t,this.ordinal$=e}function cn(){cn=function(){},gt=new an("ltr",0,"ltr"),$t=new an("rtl",1,"rtl")}function ln(){return cn(),gt}function un(){return cn(),$t}function hn(){return[ln(),un()]}function dn(t,e,n){N.call(this),this.realValue_dqbe24$_0=n,this.name$=t,this.ordinal$=e}function pn(){pn=function(){},yt=new dn("htmlTrue",0,"true"),bt=new dn("htmlFalse",1,"false"),St=new dn("auto",2,"auto")}function _n(){return pn(),yt}function mn(){return pn(),bt}function fn(){return pn(),St}function gn(){return[_n(),mn(),fn()]}function $n(t,e,n){N.call(this),this.realValue_ms5t7h$_0=n,this.name$=t,this.ordinal$=e}function En(){En=function(){},Ct=new $n("server",0,"server")}function yn(){return En(),Ct}function bn(){return[yn()]}function Sn(t,e,n){N.call(this),this.realValue_3evemr$_0=n,this.name$=t,this.ordinal$=e}function vn(){vn=function(){},Tt=new Sn("rect",0,"rect"),Lt=new Sn("circle",1,"circle"),zt=new Sn("poly",2,"poly"),wt=new Sn("default",3,"default")}function Cn(){return vn(),Tt}function Nn(){return vn(),Lt}function Tn(){return vn(),zt}function Ln(){return vn(),wt}function zn(){return[Cn(),Nn(),Tn(),Ln()]}function wn(t,e,n){N.call(this),this.realValue_jbimyr$_0=n,this.name$=t,this.ordinal$=e}function On(){On=function(){},Ot=new wn("multipartFormData",0,"multipart/form-data"),Rt=new wn("applicationXWwwFormUrlEncoded",1,"application/x-www-form-urlencoded"),At=new wn("textPlain",2,"text/plain")}function Rn(){return On(),Ot}function An(){return On(),Rt}function xn(){return On(),At}function In(){return[Rn(),An(),xn()]}function Un(t,e,n){N.call(this),this.realValue_d5r8tu$_0=n,this.name$=t,this.ordinal$=e}function Dn(){Dn=function(){},It=new Un("get",0,"get"),Ut=new Un("post",1,"post"),Dt=new Un("put",2,"put"),Pt=new Un("delete",3,"delete"),Mt=new Un("patch",4,"patch")}function Pn(){return Dn(),It}function Mn(){return Dn(),Ut}function kn(){return Dn(),Dt}function jn(){return Dn(),Pt}function Gn(){return Dn(),Mt}function qn(){return[Pn(),Mn(),kn(),jn(),Gn()]}function Fn(t,e,n){N.call(this),this.realValue_y6hxzx$_0=n,this.name$=t,this.ordinal$=e}function Bn(){Bn=function(){},jt=new Fn("button",0,"button"),Gt=new Fn("reset",1,"reset"),qt=new Fn("submit",2,"submit")}function Wn(){return Bn(),jt}function Hn(){return Bn(),Gt}function Vn(){return Bn(),qt}function Kn(){return[Wn(),Hn(),Vn()]}function Xn(t,e,n){N.call(this),this.realValue_udtcw4$_0=n,this.name$=t,this.ordinal$=e}function Jn(){Jn=function(){},Bt=new Xn("command",0,"command"),Wt=new Xn("checkBox",1,"checkbox"),Ht=new Xn("radio",2,"radio")}function Yn(){return Jn(),Bt}function Qn(){return Jn(),Wt}function Zn(){return Jn(),Ht}function ti(){return[Yn(),Qn(),Zn()]}function ei(t,e,n){N.call(this),this.realValue_kq4nox$_0=n,this.name$=t,this.ordinal$=e}function ni(){ni=function(){},Kt=new ei("multipartFormData",0,"multipart/form-data"),Xt=new ei("applicationXWwwFormUrlEncoded",1,"application/x-www-form-urlencoded"),Jt=new ei("textPlain",2,"text/plain")}function ii(){return ni(),Kt}function oi(){return ni(),Xt}function ri(){return ni(),Jt}function si(){return[ii(),oi(),ri()]}function ai(t,e,n){N.call(this),this.realValue_7ezxj0$_0=n,this.name$=t,this.ordinal$=e}function ci(){ci=function(){},Qt=new ai("get",0,"get"),Zt=new ai("post",1,"post"),te=new ai("put",2,"put"),ee=new ai("delete",3,"delete"),ne=new ai("patch",4,"patch")}function li(){return ci(),Qt}function ui(){return ci(),Zt}function hi(){return ci(),te}function di(){return ci(),ee}function pi(){return ci(),ne}function _i(){return[li(),ui(),hi(),di(),pi()]}function mi(t,e,n){N.call(this),this.realValue_81nrfm$_0=n,this.name$=t,this.ordinal$=e}function fi(){fi=function(){},oe=new mi("allowSameOrigin",0,"allow-same-origin"),re=new mi("allowFormS",1,"allow-forms"),se=new mi("allowScripts",2,"allow-scripts")}function gi(){return fi(),oe}function $i(){return fi(),re}function Ei(){return fi(),se}function yi(){return[gi(),$i(),Ei()]}function bi(t,e,n){N.call(this),this.realValue_310543$_0=n,this.name$=t,this.ordinal$=e}function Si(){Si=function(){},ce=new bi("button",0,"button"),le=new bi("checkBox",1,"checkbox"),ue=new bi("color",2,"color"),he=new bi("date",3,"date"),de=new bi("dateTime",4,"datetime"),pe=new bi("dateTimeLocal",5,"datetime-local"),_e=new bi("email",6,"email"),me=new bi("file",7,"file"),fe=new bi("hidden",8,"hidden"),ge=new bi("image",9,"image"),$e=new bi("month",10,"month"),Ee=new bi("number",11,"number"),ye=new bi("password",12,"password"),be=new bi("radio",13,"radio"),Se=new bi("range",14,"range"),ve=new bi("reset",15,"reset"),Ce=new bi("search",16,"search"),Ne=new bi("submit",17,"submit"),Te=new bi("text",18,"text"),Le=new bi("tel",19,"tel"),ze=new bi("time",20,"time"),we=new bi("url",21,"url"),Oe=new bi("week",22,"week")}function vi(){return Si(),ce}function Ci(){return Si(),le}function Ni(){return Si(),ue}function Ti(){return Si(),he}function Li(){return Si(),de}function zi(){return Si(),pe}function wi(){return Si(),_e}function Oi(){return Si(),me}function Ri(){return Si(),fe}function Ai(){return Si(),ge}function xi(){return Si(),$e}function Ii(){return Si(),Ee}function Ui(){return Si(),ye}function Di(){return Si(),be}function Pi(){return Si(),Se}function Mi(){return Si(),ve}function ki(){return Si(),Ce}function ji(){return Si(),Ne}function Gi(){return Si(),Te}function qi(){return Si(),Le}function Fi(){return Si(),ze}function Bi(){return Si(),we}function Wi(){return Si(),Oe}function Hi(){return[vi(),Ci(),Ni(),Ti(),Li(),zi(),wi(),Oi(),Ri(),Ai(),xi(),Ii(),Ui(),Di(),Pi(),Mi(),ki(),ji(),Gi(),qi(),Fi(),Bi(),Wi()]}function Vi(t,e,n){N.call(this),this.realValue_tkfxfn$_0=n,this.name$=t,this.ordinal$=e}function Ki(){Ki=function(){},Ae=new Vi("multipartFormData",0,"multipart/form-data"),xe=new Vi("applicationXWwwFormUrlEncoded",1,"application/x-www-form-urlencoded"),Ie=new Vi("textPlain",2,"text/plain")}function Xi(){return Ki(),Ae}function Ji(){return Ki(),xe}function Yi(){return Ki(),Ie}function Qi(){return[Xi(),Ji(),Yi()]}function Zi(t,e,n){N.call(this),this.realValue_tj2iwi$_0=n,this.name$=t,this.ordinal$=e}function to(){to=function(){},De=new Zi("get",0,"get"),Pe=new Zi("post",1,"post"),Me=new Zi("put",2,"put"),ke=new Zi("delete",3,"delete"),je=new Zi("patch",4,"patch")}function eo(){return to(),De}function no(){return to(),Pe}function io(){return to(),Me}function oo(){return to(),ke}function ro(){return to(),je}function so(){return[eo(),no(),io(),oo(),ro()]}function ao(t,e,n){N.call(this),this.realValue_dxnvt3$_0=n,this.name$=t,this.ordinal$=e}function co(){co=function(){},qe=new ao("rsa",0,"rsa")}function lo(){return co(),qe}function uo(){return[lo()]}function ho(t,e,n){N.call(this),this.realValue_mbbrvf$_0=n,this.name$=t,this.ordinal$=e}function po(){po=function(){},Be=new ho("hard",0,"hard"),We=new ho("soft",1,"soft")}function _o(){return po(),Be}function mo(){return po(),We}function fo(){return[_o(),mo()]}function go(t,e,n){N.call(this),this.realValue_dlfslb$_0=n,this.name$=t,this.ordinal$=e}function $o(){$o=function(){},Ve=new go("col",0,"col"),Ke=new go("colGroup",1,"colgroup"),Xe=new go("row",2,"row"),Je=new go("rowGroup",3,"rowgroup")}function Eo(){return $o(),Ve}function yo(){return $o(),Ke}function bo(){return $o(),Xe}function So(){return $o(),Je}function vo(){return[Eo(),yo(),bo(),So()]}function Co(){}function No(){}function To(){}function Lo(){}function zo(){}function wo(){}function Oo(){}function Ro(){}function Ao(){}function xo(){}function Io(){}function Uo(){}function Do(){}function Po(){}function Mo(){}function ko(){}function jo(){}function Go(){}function qo(){}function Fo(){}function Bo(){}function Wo(){}function Ho(){}function Vo(){}function Ko(){}function Xo(){}function Jo(){}function Yo(){}function Qo(){}function Zo(){}function tr(t,e){ar.call(this,"div",e,t,null,!1,!1),this.consumer_q3hbv$_0=e}function er(t,e){ar.call(this,"header",e,t,null,!1,!1),this.consumer_8dl8b5$_0=e}function nr(t,e){ar.call(this,"iframe",e,t,null,!0,!1),this.consumer_6ckxm$_0=e}function ir(t,e){ar.call(this,"img",e,t,null,!0,!0),this.consumer_4la90t$_0=e}function or(t,e){ar.call(this,"input",e,t,null,!0,!0),this.consumer_t1a1kk$_0=e}function rr(t,e){ar.call(this,"span",e,t,null,!0,!1),this.consumer_7vq504$_0=e}function sr(t,e){ar.call(this,"video",e,t,null,!1,!1),this.consumer_mixp7$_0=e}function ar(t,e,n,i,o,r){var s;void 0===i&&(i=null),this.tagName_m96u80$_0=t,this.consumer_hf9n5l$_0=e,this.namespace_mmy2s6$_0=i,this.inlineTag_chds58$_0=o,this.emptyTag_wi0qq$_0=r,this.attributes_9nkhs8$_0=new en(n,this,(s=this,function(){return s.consumer}))}function cr(t,e,n){this.out=t,this.prettyPrint=e,this.xhtmlCompatible=n,this.level_0=0,this.ln_0=!0,this.UnsafeImpl=new lr(this)}function lr(t){this.this$HTMLStreamBuilder=t}function ur(t){this.document=t,this.path_0=b(),this.lastLeaved_0=null}tn.$metadata$={kind:s,simpleName:"StringSetAttribute",interfaces:[K]},Object.defineProperty(en.prototype,"size",{configurable:!0,get:function(){return this.backing_0.size}}),en.prototype.isEmpty=function(){return this.backing_0.isEmpty()},en.prototype.containsKey_11rb$=function(t){return this.backing_0.containsKey_11rb$(t)},en.prototype.containsValue_11rc$=function(t){return this.backing_0.containsValue_11rc$(t)},en.prototype.get_11rb$=function(t){return this.backing_0.get_11rb$(t)},en.prototype.put_xwzc9p$=function(t,e){var n=this.switchToMutable_0().put_xwzc9p$(t,e);return l(n,e)||this.consumer_0().onTagAttributeChange_5n2z71$(this.tag_0,t,e),n},en.prototype.remove_11rb$=function(t){var e,n;return null!=(e=this.switchToMutable_0().remove_11rb$(t))?(this.consumer_0().onTagAttributeChange_5n2z71$(this.tag_0,t,null),n=e):n=null,n},en.prototype.putAll_a2k3zr$=function(t){if(!t.isEmpty()){var e,n=this.consumer_0(),i=this.switchToMutable_0();for(e=t.entries.iterator();e.hasNext();){var o=e.next();l(i.put_xwzc9p$(o.key,o.value),o.value)||n.onTagAttributeChange_5n2z71$(this.tag_0,o.key,o.value)}}},en.prototype.clear=function(){var t;for(t=this.backing_0.entries.iterator();t.hasNext();){var e=t.next();this.consumer_0().onTagAttributeChange_5n2z71$(this.tag_0,e.key,null)}this.backing_0=o(),this.backingMutable_0=!1},Object.defineProperty(en.prototype,"immutableEntries",{configurable:!0,get:function(){return this.backing_0.entries}}),en.prototype.switchToMutable_0=function(){var t,n;return this.backingMutable_0||(this.backingMutable_0=!0,this.backing_0=S(this.backing_0)),t=this.backing_0,e.isType(n=t,v)?n:C()},Object.defineProperty(en.prototype,"keys",{configurable:!0,get:function(){return this.switchToMutable_0().keys}}),Object.defineProperty(en.prototype,"values",{configurable:!0,get:function(){return this.switchToMutable_0().values}}),Object.defineProperty(en.prototype,"entries",{configurable:!0,get:function(){return this.switchToMutable_0().entries}}),en.$metadata$={kind:s,simpleName:"DelegatingMap",interfaces:[v]},nn.$metadata$={kind:i,simpleName:"CommonAttributeGroupFacade",interfaces:[G]},Object.defineProperty(an.prototype,"realValue",{get:function(){return this.realValue_v17tv0$_0}}),an.$metadata$={kind:s,simpleName:"Dir",interfaces:[F,N]},an.values=hn,an.valueOf_61zpoe$=function(t){switch(t){case"ltr":return ln();case"rtl":return un();default:T("No enum constant kotlinx.html.Dir."+t)}},Object.defineProperty(dn.prototype,"realValue",{get:function(){return this.realValue_dqbe24$_0}}),dn.$metadata$={kind:s,simpleName:"Draggable",interfaces:[F,N]},dn.values=gn,dn.valueOf_61zpoe$=function(t){switch(t){case"htmlTrue":return _n();case"htmlFalse":return mn();case"auto":return fn();default:T("No enum constant kotlinx.html.Draggable."+t)}},Object.defineProperty($n.prototype,"realValue",{get:function(){return this.realValue_ms5t7h$_0}}),$n.$metadata$={kind:s,simpleName:"RunAt",interfaces:[F,N]},$n.values=bn,$n.valueOf_61zpoe$=function(t){switch(t){case"server":return yn();default:T("No enum constant kotlinx.html.RunAt."+t)}},Object.defineProperty(Sn.prototype,"realValue",{get:function(){return this.realValue_3evemr$_0}}),Sn.$metadata$={kind:s,simpleName:"AreaShape",interfaces:[F,N]},Sn.values=zn,Sn.valueOf_61zpoe$=function(t){switch(t){case"rect":return Cn();case"circle":return Nn();case"poly":return Tn();case"default":return Ln();default:T("No enum constant kotlinx.html.AreaShape."+t)}},Object.defineProperty(wn.prototype,"realValue",{get:function(){return this.realValue_jbimyr$_0}}),wn.$metadata$={kind:s,simpleName:"ButtonFormEncType",interfaces:[F,N]},wn.values=In,wn.valueOf_61zpoe$=function(t){switch(t){case"multipartFormData":return Rn();case"applicationXWwwFormUrlEncoded":return An();case"textPlain":return xn();default:T("No enum constant kotlinx.html.ButtonFormEncType."+t)}},Object.defineProperty(Un.prototype,"realValue",{get:function(){return this.realValue_d5r8tu$_0}}),Un.$metadata$={kind:s,simpleName:"ButtonFormMethod",interfaces:[F,N]},Un.values=qn,Un.valueOf_61zpoe$=function(t){switch(t){case"get":return Pn();case"post":return Mn();case"put":return kn();case"delete":return jn();case"patch":return Gn();default:T("No enum constant kotlinx.html.ButtonFormMethod."+t)}},Object.defineProperty(Fn.prototype,"realValue",{get:function(){return this.realValue_y6hxzx$_0}}),Fn.$metadata$={kind:s,simpleName:"ButtonType",interfaces:[F,N]},Fn.values=Kn,Fn.valueOf_61zpoe$=function(t){switch(t){case"button":return Wn();case"reset":return Hn();case"submit":return Vn();default:T("No enum constant kotlinx.html.ButtonType."+t)}},Object.defineProperty(Xn.prototype,"realValue",{get:function(){return this.realValue_udtcw4$_0}}),Xn.$metadata$={kind:s,simpleName:"CommandType",interfaces:[F,N]},Xn.values=ti,Xn.valueOf_61zpoe$=function(t){switch(t){case"command":return Yn();case"checkBox":return Qn();case"radio":return Zn();default:T("No enum constant kotlinx.html.CommandType."+t)}},Object.defineProperty(ei.prototype,"realValue",{get:function(){return this.realValue_kq4nox$_0}}),ei.$metadata$={kind:s,simpleName:"FormEncType",interfaces:[F,N]},ei.values=si,ei.valueOf_61zpoe$=function(t){switch(t){case"multipartFormData":return ii();case"applicationXWwwFormUrlEncoded":return oi();case"textPlain":return ri();default:T("No enum constant kotlinx.html.FormEncType."+t)}},Object.defineProperty(ai.prototype,"realValue",{get:function(){return this.realValue_7ezxj0$_0}}),ai.$metadata$={kind:s,simpleName:"FormMethod",interfaces:[F,N]},ai.values=_i,ai.valueOf_61zpoe$=function(t){switch(t){case"get":return li();case"post":return ui();case"put":return hi();case"delete":return di();case"patch":return pi();default:T("No enum constant kotlinx.html.FormMethod."+t)}},Object.defineProperty(mi.prototype,"realValue",{get:function(){return this.realValue_81nrfm$_0}}),mi.$metadata$={kind:s,simpleName:"IframeSandbox",interfaces:[F,N]},mi.values=yi,mi.valueOf_61zpoe$=function(t){switch(t){case"allowSameOrigin":return gi();case"allowFormS":return $i();case"allowScripts":return Ei();default:T("No enum constant kotlinx.html.IframeSandbox."+t)}},Object.defineProperty(bi.prototype,"realValue",{get:function(){return this.realValue_310543$_0}}),bi.$metadata$={kind:s,simpleName:"InputType",interfaces:[F,N]},bi.values=Hi,bi.valueOf_61zpoe$=function(t){switch(t){case"button":return vi();case"checkBox":return Ci();case"color":return Ni();case"date":return Ti();case"dateTime":return Li();case"dateTimeLocal":return zi();case"email":return wi();case"file":return Oi();case"hidden":return Ri();case"image":return Ai();case"month":return xi();case"number":return Ii();case"password":return Ui();case"radio":return Di();case"range":return Pi();case"reset":return Mi();case"search":return ki();case"submit":return ji();case"text":return Gi();case"tel":return qi();case"time":return Fi();case"url":return Bi();case"week":return Wi();default:T("No enum constant kotlinx.html.InputType."+t)}},Object.defineProperty(Vi.prototype,"realValue",{get:function(){return this.realValue_tkfxfn$_0}}),Vi.$metadata$={kind:s,simpleName:"InputFormEncType",interfaces:[F,N]},Vi.values=Qi,Vi.valueOf_61zpoe$=function(t){switch(t){case"multipartFormData":return Xi();case"applicationXWwwFormUrlEncoded":return Ji();case"textPlain":return Yi();default:T("No enum constant kotlinx.html.InputFormEncType."+t)}},Object.defineProperty(Zi.prototype,"realValue",{get:function(){return this.realValue_tj2iwi$_0}}),Zi.$metadata$={kind:s,simpleName:"InputFormMethod",interfaces:[F,N]},Zi.values=so,Zi.valueOf_61zpoe$=function(t){switch(t){case"get":return eo();case"post":return no();case"put":return io();case"delete":return oo();case"patch":return ro();default:T("No enum constant kotlinx.html.InputFormMethod."+t)}},Object.defineProperty(ao.prototype,"realValue",{get:function(){return this.realValue_dxnvt3$_0}}),ao.$metadata$={kind:s,simpleName:"KeyGenKeyType",interfaces:[F,N]},ao.values=uo,ao.valueOf_61zpoe$=function(t){switch(t){case"rsa":return lo();default:T("No enum constant kotlinx.html.KeyGenKeyType."+t)}},Object.defineProperty(ho.prototype,"realValue",{get:function(){return this.realValue_mbbrvf$_0}}),ho.$metadata$={kind:s,simpleName:"TextAreaWrap",interfaces:[F,N]},ho.values=fo,ho.valueOf_61zpoe$=function(t){switch(t){case"hard":return _o();case"soft":return mo();default:T("No enum constant kotlinx.html.TextAreaWrap."+t)}},Object.defineProperty(go.prototype,"realValue",{get:function(){return this.realValue_dlfslb$_0}}),go.$metadata$={kind:s,simpleName:"ThScope",interfaces:[F,N]},go.values=vo,go.valueOf_61zpoe$=function(t){switch(t){case"col":return Eo();case"colGroup":return yo();case"row":return bo();case"rowGroup":return So();default:T("No enum constant kotlinx.html.ThScope."+t)}},To.$metadata$={kind:i,simpleName:"CommonAttributeGroupFacadeFlowInteractiveContent",interfaces:[Mo,xo,nn]},Lo.$metadata$={kind:i,simpleName:"CommonAttributeGroupFacadeFlowInteractivePhrasingContent",interfaces:[Oo,jo,Io,Po,To,Mo,xo,nn]},Oo.$metadata$={kind:i,simpleName:"HtmlBlockInlineTag",interfaces:[jo,Mo,Po,nn]},xo.$metadata$={kind:i,simpleName:"FlowInteractiveContent",interfaces:[Fo,Go]},Io.$metadata$={kind:i,simpleName:"FlowInteractivePhrasingContent",interfaces:[Po,xo]},Po.$metadata$={kind:i,simpleName:"FlowPhrasingContent",interfaces:[Wo,Go]},Mo.$metadata$={kind:i,simpleName:"HtmlBlockTag",interfaces:[Go,nn]},jo.$metadata$={kind:i,simpleName:"HtmlInlineTag",interfaces:[Wo,nn]},Go.$metadata$={kind:i,simpleName:"FlowContent",interfaces:[Qo,Yo,Jo,Zo,Xo,Ko,Vo,G]},Fo.$metadata$={kind:i,simpleName:"InteractiveContent",interfaces:[Jo,Zo,G]},Wo.$metadata$={kind:i,simpleName:"PhrasingContent",interfaces:[Yo,Zo,Vo,G]},Vo.$metadata$={kind:i,simpleName:"FlowOrMetaDataOrPhrasingContent",interfaces:[G]},Ko.$metadata$={kind:i,simpleName:"FlowOrHeadingContent",interfaces:[G]},Xo.$metadata$={kind:i,simpleName:"FlowOrMetaDataContent",interfaces:[Vo,G]},Jo.$metadata$={kind:i,simpleName:"FlowOrInteractiveContent",interfaces:[Zo,G]},Yo.$metadata$={kind:i,simpleName:"FlowOrPhrasingContent",interfaces:[Vo,Zo,G]},Qo.$metadata$={kind:i,simpleName:"SectioningOrFlowContent",interfaces:[G]},Zo.$metadata$={kind:i,simpleName:"FlowOrInteractiveOrPhrasingContent",interfaces:[G]},Object.defineProperty(tr.prototype,"consumer",{get:function(){return this.consumer_q3hbv$_0}}),tr.$metadata$={kind:s,simpleName:"DIV",interfaces:[Mo,ar]},Object.defineProperty(er.prototype,"consumer",{get:function(){return this.consumer_8dl8b5$_0}}),er.$metadata$={kind:s,simpleName:"HEADER",interfaces:[Mo,ar]},Object.defineProperty(nr.prototype,"consumer",{get:function(){return this.consumer_6ckxm$_0}}),Object.defineProperty(nr.prototype,"name",{configurable:!0,get:function(){return ut.get_txhc1s$(this,"name")},set:function(t){ut.set_fid0sb$(this,"name",t)}}),Object.defineProperty(nr.prototype,"src",{configurable:!0,get:function(){return ut.get_txhc1s$(this,"src")},set:function(t){ut.set_fid0sb$(this,"src",t)}}),Object.defineProperty(nr.prototype,"height",{configurable:!0,get:function(){return ut.get_txhc1s$(this,"height")},set:function(t){ut.set_fid0sb$(this,"height",t)}}),Object.defineProperty(nr.prototype,"width",{configurable:!0,get:function(){return ut.get_txhc1s$(this,"width")},set:function(t){ut.set_fid0sb$(this,"width",t)}}),Object.defineProperty(nr.prototype,"sandbox",{configurable:!0,get:function(){return pt.get_txhc1s$(this,"sandbox")},set:function(t){pt.set_fid0sb$(this,"sandbox",t)}}),Object.defineProperty(nr.prototype,"seamless",{configurable:!0,get:function(){return dt.get_txhc1s$(this,"seamless")},set:function(t){dt.set_fid0sb$(this,"seamless",t)}}),nr.$metadata$={kind:s,simpleName:"IFRAME",interfaces:[Lo,ar]},Object.defineProperty(ir.prototype,"consumer",{get:function(){return this.consumer_4la90t$_0}}),Object.defineProperty(ir.prototype,"alt",{configurable:!0,get:function(){return ut.get_txhc1s$(this,"alt")},set:function(t){ut.set_fid0sb$(this,"alt",t)}}),Object.defineProperty(ir.prototype,"src",{configurable:!0,get:function(){return ut.get_txhc1s$(this,"src")},set:function(t){ut.set_fid0sb$(this,"src",t)}}),Object.defineProperty(ir.prototype,"height",{configurable:!0,get:function(){return ut.get_txhc1s$(this,"height")},set:function(t){ut.set_fid0sb$(this,"height",t)}}),Object.defineProperty(ir.prototype,"width",{configurable:!0,get:function(){return ut.get_txhc1s$(this,"width")},set:function(t){ut.set_fid0sb$(this,"width",t)}}),Object.defineProperty(ir.prototype,"usemap",{configurable:!0,get:function(){return ut.get_txhc1s$(this,"usemap")},set:function(t){ut.set_fid0sb$(this,"usemap",t)}}),Object.defineProperty(ir.prototype,"ismap",{configurable:!0,get:function(){return dt.get_txhc1s$(this,"ismap")},set:function(t){dt.set_fid0sb$(this,"ismap",t)}}),ir.$metadata$={kind:s,simpleName:"IMG",interfaces:[Lo,ar]},Object.defineProperty(or.prototype,"consumer",{get:function(){return this.consumer_t1a1kk$_0}}),Object.defineProperty(or.prototype,"type",{configurable:!0,get:function(){return ft.get_txhc1s$(this,"type")},set:function(t){ft.set_fid0sb$(this,"type",t)}}),Object.defineProperty(or.prototype,"accept",{configurable:!0,get:function(){return ut.get_txhc1s$(this,"accept")},set:function(t){ut.set_fid0sb$(this,"accept",t)}}),Object.defineProperty(or.prototype,"alt",{configurable:!0,get:function(){return ut.get_txhc1s$(this,"alt")},set:function(t){ut.set_fid0sb$(this,"alt",t)}}),Object.defineProperty(or.prototype,"autoFocus",{configurable:!0,get:function(){return dt.get_txhc1s$(this,"autofocus")},set:function(t){dt.set_fid0sb$(this,"autofocus",t)}}),Object.defineProperty(or.prototype,"autoComplete",{configurable:!0,get:function(){return ht.get_txhc1s$(this,"autocomplete")},set:function(t){ht.set_fid0sb$(this,"autocomplete",t)}}),Object.defineProperty(or.prototype,"checked",{configurable:!0,get:function(){return dt.get_txhc1s$(this,"checked")},set:function(t){dt.set_fid0sb$(this,"checked",t)}}),Object.defineProperty(or.prototype,"disabled",{configurable:!0,get:function(){return dt.get_txhc1s$(this,"disabled")},set:function(t){dt.set_fid0sb$(this,"disabled",t)}}),Object.defineProperty(or.prototype,"form",{configurable:!0,get:function(){return ut.get_txhc1s$(this,"form")},set:function(t){ut.set_fid0sb$(this,"form",t)}}),Object.defineProperty(or.prototype,"formAction",{configurable:!0,get:function(){return ut.get_txhc1s$(this,"formaction")},set:function(t){ut.set_fid0sb$(this,"formaction",t)}}),Object.defineProperty(or.prototype,"formEncType",{configurable:!0,get:function(){return _t.get_txhc1s$(this,"formenctype")},set:function(t){_t.set_fid0sb$(this,"formenctype",t)}}),Object.defineProperty(or.prototype,"formMethod",{configurable:!0,get:function(){return mt.get_txhc1s$(this,"formmethod")},set:function(t){mt.set_fid0sb$(this,"formmethod",t)}}),Object.defineProperty(or.prototype,"formNovalidate",{configurable:!0,get:function(){return dt.get_txhc1s$(this,"formnovalidate")},set:function(t){dt.set_fid0sb$(this,"formnovalidate",t)}}),Object.defineProperty(or.prototype,"formTarget",{configurable:!0,get:function(){return ut.get_txhc1s$(this,"formtarget")},set:function(t){ut.set_fid0sb$(this,"formtarget",t)}}),Object.defineProperty(or.prototype,"height",{configurable:!0,get:function(){return ut.get_txhc1s$(this,"height")},set:function(t){ut.set_fid0sb$(this,"height",t)}}),Object.defineProperty(or.prototype,"list",{configurable:!0,get:function(){return ut.get_txhc1s$(this,"list")},set:function(t){ut.set_fid0sb$(this,"list",t)}}),Object.defineProperty(or.prototype,"max",{configurable:!0,get:function(){return ut.get_txhc1s$(this,"max")},set:function(t){ut.set_fid0sb$(this,"max",t)}}),Object.defineProperty(or.prototype,"maxLength",{configurable:!0,get:function(){return ut.get_txhc1s$(this,"maxlength")},set:function(t){ut.set_fid0sb$(this,"maxlength",t)}}),Object.defineProperty(or.prototype,"minLength",{configurable:!0,get:function(){return ut.get_txhc1s$(this,"minlength")},set:function(t){ut.set_fid0sb$(this,"minlength",t)}}),Object.defineProperty(or.prototype,"min",{configurable:!0,get:function(){return ut.get_txhc1s$(this,"min")},set:function(t){ut.set_fid0sb$(this,"min",t)}}),Object.defineProperty(or.prototype,"multiple",{configurable:!0,get:function(){return dt.get_txhc1s$(this,"multiple")},set:function(t){dt.set_fid0sb$(this,"multiple",t)}}),Object.defineProperty(or.prototype,"pattern",{configurable:!0,get:function(){return ut.get_txhc1s$(this,"pattern")},set:function(t){ut.set_fid0sb$(this,"pattern",t)}}),Object.defineProperty(or.prototype,"placeholder",{configurable:!0,get:function(){return ut.get_txhc1s$(this,"placeholder")},set:function(t){ut.set_fid0sb$(this,"placeholder",t)}}),Object.defineProperty(or.prototype,"readonly",{configurable:!0,get:function(){return dt.get_txhc1s$(this,"readonly")},set:function(t){dt.set_fid0sb$(this,"readonly",t)}}),Object.defineProperty(or.prototype,"required",{configurable:!0,get:function(){return dt.get_txhc1s$(this,"required")},set:function(t){dt.set_fid0sb$(this,"required",t)}}),Object.defineProperty(or.prototype,"size",{configurable:!0,get:function(){return ut.get_txhc1s$(this,"size")},set:function(t){ut.set_fid0sb$(this,"size",t)}}),Object.defineProperty(or.prototype,"src",{configurable:!0,get:function(){return ut.get_txhc1s$(this,"src")},set:function(t){ut.set_fid0sb$(this,"src",t)}}),Object.defineProperty(or.prototype,"step",{configurable:!0,get:function(){return ut.get_txhc1s$(this,"step")},set:function(t){ut.set_fid0sb$(this,"step",t)}}),Object.defineProperty(or.prototype,"width",{configurable:!0,get:function(){return ut.get_txhc1s$(this,"width")},set:function(t){ut.set_fid0sb$(this,"width",t)}}),Object.defineProperty(or.prototype,"files",{configurable:!0,get:function(){return ut.get_txhc1s$(this,"files")},set:function(t){ut.set_fid0sb$(this,"files",t)}}),Object.defineProperty(or.prototype,"value",{configurable:!0,get:function(){return ut.get_txhc1s$(this,"value")},set:function(t){ut.set_fid0sb$(this,"value",t)}}),Object.defineProperty(or.prototype,"name",{configurable:!0,get:function(){return ut.get_txhc1s$(this,"name")},set:function(t){ut.set_fid0sb$(this,"name",t)}}),or.$metadata$={kind:s,simpleName:"INPUT",interfaces:[Lo,ar]},Object.defineProperty(rr.prototype,"consumer",{get:function(){return this.consumer_7vq504$_0}}),rr.$metadata$={kind:s,simpleName:"SPAN",interfaces:[Oo,ar]},Object.defineProperty(sr.prototype,"consumer",{get:function(){return this.consumer_mixp7$_0}}),Object.defineProperty(sr.prototype,"src",{configurable:!0,get:function(){return ut.get_txhc1s$(this,"src")},set:function(t){ut.set_fid0sb$(this,"src",t)}}),Object.defineProperty(sr.prototype,"autoBuffer",{configurable:!0,get:function(){return dt.get_txhc1s$(this,"autobuffer")},set:function(t){dt.set_fid0sb$(this,"autobuffer",t)}}),Object.defineProperty(sr.prototype,"autoPlay",{configurable:!0,get:function(){return dt.get_txhc1s$(this,"autoplay")},set:function(t){dt.set_fid0sb$(this,"autoplay",t)}}),Object.defineProperty(sr.prototype,"loop",{configurable:!0,get:function(){return dt.get_txhc1s$(this,"loop")},set:function(t){dt.set_fid0sb$(this,"loop",t)}}),Object.defineProperty(sr.prototype,"controls",{configurable:!0,get:function(){return dt.get_txhc1s$(this,"controls")},set:function(t){dt.set_fid0sb$(this,"controls",t)}}),Object.defineProperty(sr.prototype,"width",{configurable:!0,get:function(){return ut.get_txhc1s$(this,"width")},set:function(t){ut.set_fid0sb$(this,"width",t)}}),Object.defineProperty(sr.prototype,"height",{configurable:!0,get:function(){return ut.get_txhc1s$(this,"height")},set:function(t){ut.set_fid0sb$(this,"height",t)}}),Object.defineProperty(sr.prototype,"poster",{configurable:!0,get:function(){return ut.get_txhc1s$(this,"poster")},set:function(t){ut.set_fid0sb$(this,"poster",t)}}),sr.$metadata$={kind:s,simpleName:"VIDEO",interfaces:[Lo,ar]},Object.defineProperty(ar.prototype,"tagName",{get:function(){return this.tagName_m96u80$_0}}),Object.defineProperty(ar.prototype,"consumer",{get:function(){return this.consumer_hf9n5l$_0}}),Object.defineProperty(ar.prototype,"namespace",{get:function(){return this.namespace_mmy2s6$_0}}),Object.defineProperty(ar.prototype,"inlineTag",{get:function(){return this.inlineTag_chds58$_0}}),Object.defineProperty(ar.prototype,"emptyTag",{get:function(){return this.emptyTag_wi0qq$_0}}),Object.defineProperty(ar.prototype,"attributes",{configurable:!0,get:function(){return this.attributes_9nkhs8$_0}}),Object.defineProperty(ar.prototype,"attributesEntries",{configurable:!0,get:function(){return this.attributes.immutableEntries}}),ar.$metadata$={kind:s,simpleName:"HTMLTag",interfaces:[G]};var hr=t.kotlinx||(t.kotlinx={}),dr=hr.html||(hr.html={});dr.TagConsumer=j,dr.Tag=G,dr.Unsafe=q,dr.AttributeEnum=F,dr.attributesMapOf_jyasbz$=function(t,e){return null==e?n:B(t,e)},dr.attributesMapOf_alerag$=function(t){var e,i=null;e=t.length-1|0;for(var o=0;o<=e;o+=2){var r=t[o],s=t[o+1|0];null!=r&&null!=s&&(null==i&&(i=d()),i.put_xwzc9p$(r,s))}return null!=i?i:n},dr.singletonMapOf_puj7f4$=B,Object.defineProperty(dr,"emptyMap",{get:function(){return n}}),dr.DefaultUnsafe=W;var pr=dr.attributes||(dr.attributes={});pr.AttributeEncoder=V,pr.Attribute=K,Object.defineProperty(pr,"StringEncoder",{get:Y}),pr.StringAttribute=Q,pr.BooleanEncoder=Z,pr.BooleanAttribute=tt,pr.tickerEncode_gigfna$=et,Object.defineProperty(pr,"TickerEncoder",{get:ot}),pr.TickerAttribute=rt,pr.EnumEncoder=st,pr.enumEncode_m4whry$=function(t){return t.realValue},pr.EnumAttribute=at,pr.stringSetDecode_pdl1vj$=ct,Object.defineProperty(pr,"StringSetEncoder",{get:Ze}),pr.StringSetAttribute=tn,dr.Draggable=dn,(dr.impl||(dr.impl={})).DelegatingMap=en,dr.CommonAttributeGroupFacade=nn,dr.set_id_ueiko3$=function(t,e){ut.set_fid0sb$(t,"id",e)},dr.FormServerAttributeGroupFacade=on,dr.InputServerAttributeGroupFacade=rn,dr.SelectServerAttributeGroupFacade=sn,Object.defineProperty(an,"ltr",{get:ln}),Object.defineProperty(an,"rtl",{get:un}),dr.Dir=an,Object.defineProperty(dn,"htmlTrue",{get:_n}),Object.defineProperty(dn,"htmlFalse",{get:mn}),Object.defineProperty(dn,"auto",{get:fn}),Object.defineProperty($n,"server",{get:yn}),dr.RunAt=$n,Object.defineProperty(Sn,"rect",{get:Cn}),Object.defineProperty(Sn,"circle",{get:Nn}),Object.defineProperty(Sn,"poly",{get:Tn}),Object.defineProperty(Sn,"default",{get:Ln}),dr.AreaShape=Sn,Object.defineProperty(wn,"multipartFormData",{get:Rn}),Object.defineProperty(wn,"applicationXWwwFormUrlEncoded",{get:An}),Object.defineProperty(wn,"textPlain",{get:xn}),dr.ButtonFormEncType=wn,Object.defineProperty(Un,"get",{get:Pn}),Object.defineProperty(Un,"post",{get:Mn}),Object.defineProperty(Un,"put",{get:kn}),Object.defineProperty(Un,"delete",{get:jn}),Object.defineProperty(Un,"patch",{get:Gn}),dr.ButtonFormMethod=Un,Object.defineProperty(Fn,"button",{get:Wn}),Object.defineProperty(Fn,"reset",{get:Hn}),Object.defineProperty(Fn,"submit",{get:Vn}),dr.ButtonType=Fn,Object.defineProperty(Xn,"command",{get:Yn}),Object.defineProperty(Xn,"checkBox",{get:Qn}),Object.defineProperty(Xn,"radio",{get:Zn}),dr.CommandType=Xn,Object.defineProperty(ei,"multipartFormData",{get:ii}),Object.defineProperty(ei,"applicationXWwwFormUrlEncoded",{get:oi}),Object.defineProperty(ei,"textPlain",{get:ri}),dr.FormEncType=ei,Object.defineProperty(ai,"get",{get:li}),Object.defineProperty(ai,"post",{get:ui}),Object.defineProperty(ai,"put",{get:hi}),Object.defineProperty(ai,"delete",{get:di}),Object.defineProperty(ai,"patch",{get:pi}),dr.FormMethod=ai,Object.defineProperty(mi,"allowSameOrigin",{get:gi}),Object.defineProperty(mi,"allowFormS",{get:$i}),Object.defineProperty(mi,"allowScripts",{get:Ei}),dr.IframeSandbox=mi,Object.defineProperty(bi,"button",{get:vi}),Object.defineProperty(bi,"checkBox",{get:Ci}),Object.defineProperty(bi,"color",{get:Ni}),Object.defineProperty(bi,"date",{get:Ti}),Object.defineProperty(bi,"dateTime",{get:Li}),Object.defineProperty(bi,"dateTimeLocal",{get:zi}),Object.defineProperty(bi,"email",{get:wi}),Object.defineProperty(bi,"file",{get:Oi}),Object.defineProperty(bi,"hidden",{get:Ri}),Object.defineProperty(bi,"image",{get:Ai}),Object.defineProperty(bi,"month",{get:xi}),Object.defineProperty(bi,"number",{get:Ii}),Object.defineProperty(bi,"password",{get:Ui}),Object.defineProperty(bi,"radio",{get:Di}),Object.defineProperty(bi,"range",{get:Pi}),Object.defineProperty(bi,"reset",{get:Mi}),Object.defineProperty(bi,"search",{get:ki}),Object.defineProperty(bi,"submit",{get:ji}),Object.defineProperty(bi,"text",{get:Gi}),Object.defineProperty(bi,"tel",{get:qi}),Object.defineProperty(bi,"time",{get:Fi}),Object.defineProperty(bi,"url",{get:Bi}),Object.defineProperty(bi,"week",{get:Wi}),dr.InputType=bi,Object.defineProperty(Vi,"multipartFormData",{get:Xi}),Object.defineProperty(Vi,"applicationXWwwFormUrlEncoded",{get:Ji}),Object.defineProperty(Vi,"textPlain",{get:Yi}),dr.InputFormEncType=Vi,Object.defineProperty(Zi,"get",{get:eo}),Object.defineProperty(Zi,"post",{get:no}),Object.defineProperty(Zi,"put",{get:io}),Object.defineProperty(Zi,"delete",{get:oo}),Object.defineProperty(Zi,"patch",{get:ro}),dr.InputFormMethod=Zi,Object.defineProperty(ao,"rsa",{get:lo}),dr.KeyGenKeyType=ao,Object.defineProperty(ho,"hard",{get:_o}),Object.defineProperty(ho,"soft",{get:mo}),dr.TextAreaWrap=ho,Object.defineProperty(go,"col",{get:Eo}),Object.defineProperty(go,"colGroup",{get:yo}),Object.defineProperty(go,"row",{get:bo}),Object.defineProperty(go,"rowGroup",{get:So}),dr.ThScope=go,dr.CommonAttributeGroupFacadeFlowHeadingContent=Co,dr.CommonAttributeGroupFacadeFlowHeadingPhrasingContent=No,dr.CommonAttributeGroupFacadeFlowInteractiveContent=To,dr.CommonAttributeGroupFacadeFlowInteractivePhrasingContent=Lo,dr.CommonAttributeGroupFacadeFlowMetaDataContent=zo,dr.CommonAttributeGroupFacadeFlowMetaDataPhrasingContent=wo,dr.HtmlBlockInlineTag=Oo,dr.CommonAttributeGroupFacadeFlowPhrasingSectioningContent=Ro,dr.CommonAttributeGroupFacadeFlowSectioningContent=Ao,dr.FlowInteractiveContent=xo,dr.FlowInteractivePhrasingContent=Io,dr.FlowMetaDataContent=Uo,dr.FlowMetaDataPhrasingContent=Do,dr.FlowPhrasingContent=Po,dr.HtmlBlockTag=Mo,dr.HtmlHeadTag=ko,dr.HtmlInlineTag=jo,dr.FlowContent=Go,dr.HeadingContent=qo,dr.InteractiveContent=Fo,dr.MetaDataContent=Bo,dr.PhrasingContent=Wo,dr.SectioningContent=Ho,dr.FlowOrMetaDataOrPhrasingContent=Vo,dr.FlowOrHeadingContent=Ko,dr.FlowOrMetaDataContent=Xo,dr.FlowOrInteractiveContent=Jo,dr.FlowOrPhrasingContent=Yo,dr.SectioningOrFlowContent=Qo,dr.FlowOrInteractiveOrPhrasingContent=Zo,dr.DIV=tr,dr.HEADER=er,dr.IFRAME=nr,dr.IMG=ir,dr.INPUT=or,dr.SPAN=rr,dr.VIDEO=sr,dr.HTMLTag=ar,(dr.stream||(dr.stream={})).HTMLStreamBuilder=cr;var _r=dr.js||(dr.js={});(dr.dom||(dr.dom={})).JSDOMBuilder=ur,_r.set_onClickFunction_7odi1u$=function(t,e){t.consumer.onTagEvent_j30qsv$(t,"onclick",e)},_r.set_onLoadFunction_7odi1u$=function(t,e){t.consumer.onTagEvent_j30qsv$(t,"onload",e)},W.prototype.unaryPlus_lvwjq6$=q.prototype.unaryPlus_lvwjq6$,W.prototype.raw_61zpoe$=q.prototype.raw_61zpoe$,W.prototype.raw_ws8or7$=q.prototype.raw_ws8or7$,W.prototype.raw_3p81yu$=q.prototype.raw_3p81yu$,X.prototype.empty_l5rr1g$=V.prototype.empty_l5rr1g$,Z.prototype.empty_l5rr1g$=V.prototype.empty_l5rr1g$,nt.prototype.empty_l5rr1g$=V.prototype.empty_l5rr1g$,st.prototype.empty_l5rr1g$=V.prototype.empty_l5rr1g$,nn.prototype.unaryPlus_lvwjq6$=G.prototype.unaryPlus_lvwjq6$,nn.prototype.unaryPlus_pdl1vz$=G.prototype.unaryPlus_pdl1vz$,nn.prototype.text_61zpoe$=G.prototype.text_61zpoe$,nn.prototype.text_3p81yu$=G.prototype.text_3p81yu$,nn.prototype.entity_ws8or7$=G.prototype.entity_ws8or7$,nn.prototype.comment_61zpoe$=G.prototype.comment_61zpoe$,on.prototype.unaryPlus_lvwjq6$=G.prototype.unaryPlus_lvwjq6$,on.prototype.unaryPlus_pdl1vz$=G.prototype.unaryPlus_pdl1vz$,on.prototype.text_61zpoe$=G.prototype.text_61zpoe$,on.prototype.text_3p81yu$=G.prototype.text_3p81yu$,on.prototype.entity_ws8or7$=G.prototype.entity_ws8or7$,on.prototype.comment_61zpoe$=G.prototype.comment_61zpoe$,rn.prototype.unaryPlus_lvwjq6$=G.prototype.unaryPlus_lvwjq6$,rn.prototype.unaryPlus_pdl1vz$=G.prototype.unaryPlus_pdl1vz$,rn.prototype.text_61zpoe$=G.prototype.text_61zpoe$,rn.prototype.text_3p81yu$=G.prototype.text_3p81yu$,rn.prototype.entity_ws8or7$=G.prototype.entity_ws8or7$,rn.prototype.comment_61zpoe$=G.prototype.comment_61zpoe$,sn.prototype.unaryPlus_lvwjq6$=G.prototype.unaryPlus_lvwjq6$,sn.prototype.unaryPlus_pdl1vz$=G.prototype.unaryPlus_pdl1vz$,sn.prototype.text_61zpoe$=G.prototype.text_61zpoe$,sn.prototype.text_3p81yu$=G.prototype.text_3p81yu$,sn.prototype.entity_ws8or7$=G.prototype.entity_ws8or7$,sn.prototype.comment_61zpoe$=G.prototype.comment_61zpoe$,Ko.prototype.unaryPlus_lvwjq6$=G.prototype.unaryPlus_lvwjq6$,Ko.prototype.unaryPlus_pdl1vz$=G.prototype.unaryPlus_pdl1vz$,Ko.prototype.text_61zpoe$=G.prototype.text_61zpoe$,Ko.prototype.text_3p81yu$=G.prototype.text_3p81yu$,Ko.prototype.entity_ws8or7$=G.prototype.entity_ws8or7$,Ko.prototype.comment_61zpoe$=G.prototype.comment_61zpoe$,qo.prototype.unaryPlus_lvwjq6$=Ko.prototype.unaryPlus_lvwjq6$,qo.prototype.unaryPlus_pdl1vz$=Ko.prototype.unaryPlus_pdl1vz$,qo.prototype.text_61zpoe$=Ko.prototype.text_61zpoe$,qo.prototype.text_3p81yu$=Ko.prototype.text_3p81yu$,qo.prototype.entity_ws8or7$=Ko.prototype.entity_ws8or7$,qo.prototype.comment_61zpoe$=Ko.prototype.comment_61zpoe$,Vo.prototype.unaryPlus_lvwjq6$=G.prototype.unaryPlus_lvwjq6$,Vo.prototype.unaryPlus_pdl1vz$=G.prototype.unaryPlus_pdl1vz$,Vo.prototype.text_61zpoe$=G.prototype.text_61zpoe$,Vo.prototype.text_3p81yu$=G.prototype.text_3p81yu$,Vo.prototype.entity_ws8or7$=G.prototype.entity_ws8or7$,Vo.prototype.comment_61zpoe$=G.prototype.comment_61zpoe$,Xo.prototype.unaryPlus_lvwjq6$=Vo.prototype.unaryPlus_lvwjq6$,Xo.prototype.unaryPlus_pdl1vz$=Vo.prototype.unaryPlus_pdl1vz$,Xo.prototype.text_61zpoe$=Vo.prototype.text_61zpoe$,Xo.prototype.text_3p81yu$=Vo.prototype.text_3p81yu$,Xo.prototype.entity_ws8or7$=Vo.prototype.entity_ws8or7$,Xo.prototype.comment_61zpoe$=Vo.prototype.comment_61zpoe$,Zo.prototype.unaryPlus_lvwjq6$=G.prototype.unaryPlus_lvwjq6$,Zo.prototype.unaryPlus_pdl1vz$=G.prototype.unaryPlus_pdl1vz$,Zo.prototype.text_61zpoe$=G.prototype.text_61zpoe$,Zo.prototype.text_3p81yu$=G.prototype.text_3p81yu$,Zo.prototype.entity_ws8or7$=G.prototype.entity_ws8or7$,Zo.prototype.comment_61zpoe$=G.prototype.comment_61zpoe$,Jo.prototype.unaryPlus_lvwjq6$=Zo.prototype.unaryPlus_lvwjq6$,Jo.prototype.unaryPlus_pdl1vz$=Zo.prototype.unaryPlus_pdl1vz$,Jo.prototype.text_61zpoe$=Zo.prototype.text_61zpoe$,Jo.prototype.text_3p81yu$=Zo.prototype.text_3p81yu$,Jo.prototype.entity_ws8or7$=Zo.prototype.entity_ws8or7$,Jo.prototype.comment_61zpoe$=Zo.prototype.comment_61zpoe$,Yo.prototype.unaryPlus_lvwjq6$=Zo.prototype.unaryPlus_lvwjq6$,Yo.prototype.unaryPlus_pdl1vz$=Zo.prototype.unaryPlus_pdl1vz$,Yo.prototype.text_61zpoe$=Zo.prototype.text_61zpoe$,Yo.prototype.text_3p81yu$=Zo.prototype.text_3p81yu$,Yo.prototype.entity_ws8or7$=Zo.prototype.entity_ws8or7$,Yo.prototype.comment_61zpoe$=Zo.prototype.comment_61zpoe$,Qo.prototype.unaryPlus_lvwjq6$=G.prototype.unaryPlus_lvwjq6$,Qo.prototype.unaryPlus_pdl1vz$=G.prototype.unaryPlus_pdl1vz$,Qo.prototype.text_61zpoe$=G.prototype.text_61zpoe$,Qo.prototype.text_3p81yu$=G.prototype.text_3p81yu$,Qo.prototype.entity_ws8or7$=G.prototype.entity_ws8or7$,Qo.prototype.comment_61zpoe$=G.prototype.comment_61zpoe$,Go.prototype.unaryPlus_lvwjq6$=Vo.prototype.unaryPlus_lvwjq6$,Go.prototype.unaryPlus_pdl1vz$=Vo.prototype.unaryPlus_pdl1vz$,Go.prototype.text_61zpoe$=Vo.prototype.text_61zpoe$,Go.prototype.text_3p81yu$=Vo.prototype.text_3p81yu$,Go.prototype.entity_ws8or7$=Vo.prototype.entity_ws8or7$,Go.prototype.comment_61zpoe$=Vo.prototype.comment_61zpoe$,Mo.prototype.unaryPlus_lvwjq6$=nn.prototype.unaryPlus_lvwjq6$,Mo.prototype.unaryPlus_pdl1vz$=nn.prototype.unaryPlus_pdl1vz$,Mo.prototype.text_61zpoe$=nn.prototype.text_61zpoe$,Mo.prototype.text_3p81yu$=nn.prototype.text_3p81yu$,Mo.prototype.entity_ws8or7$=nn.prototype.entity_ws8or7$,Mo.prototype.comment_61zpoe$=nn.prototype.comment_61zpoe$,Co.prototype.unaryPlus_lvwjq6$=nn.prototype.unaryPlus_lvwjq6$,Co.prototype.unaryPlus_pdl1vz$=nn.prototype.unaryPlus_pdl1vz$,Co.prototype.text_61zpoe$=nn.prototype.text_61zpoe$,Co.prototype.text_3p81yu$=nn.prototype.text_3p81yu$,Co.prototype.entity_ws8or7$=nn.prototype.entity_ws8or7$,Co.prototype.comment_61zpoe$=nn.prototype.comment_61zpoe$,Wo.prototype.unaryPlus_lvwjq6$=Vo.prototype.unaryPlus_lvwjq6$,Wo.prototype.unaryPlus_pdl1vz$=Vo.prototype.unaryPlus_pdl1vz$,Wo.prototype.text_61zpoe$=Vo.prototype.text_61zpoe$,Wo.prototype.text_3p81yu$=Vo.prototype.text_3p81yu$,Wo.prototype.entity_ws8or7$=Vo.prototype.entity_ws8or7$,Wo.prototype.comment_61zpoe$=Vo.prototype.comment_61zpoe$,Po.prototype.unaryPlus_lvwjq6$=Go.prototype.unaryPlus_lvwjq6$,Po.prototype.unaryPlus_pdl1vz$=Go.prototype.unaryPlus_pdl1vz$,Po.prototype.text_61zpoe$=Go.prototype.text_61zpoe$,Po.prototype.text_3p81yu$=Go.prototype.text_3p81yu$,Po.prototype.entity_ws8or7$=Go.prototype.entity_ws8or7$,Po.prototype.comment_61zpoe$=Go.prototype.comment_61zpoe$,jo.prototype.unaryPlus_lvwjq6$=nn.prototype.unaryPlus_lvwjq6$,jo.prototype.unaryPlus_pdl1vz$=nn.prototype.unaryPlus_pdl1vz$,jo.prototype.text_61zpoe$=nn.prototype.text_61zpoe$,jo.prototype.text_3p81yu$=nn.prototype.text_3p81yu$,jo.prototype.entity_ws8or7$=nn.prototype.entity_ws8or7$,jo.prototype.comment_61zpoe$=nn.prototype.comment_61zpoe$,Oo.prototype.unaryPlus_lvwjq6$=nn.prototype.unaryPlus_lvwjq6$,Oo.prototype.unaryPlus_pdl1vz$=nn.prototype.unaryPlus_pdl1vz$,Oo.prototype.text_61zpoe$=nn.prototype.text_61zpoe$,Oo.prototype.text_3p81yu$=nn.prototype.text_3p81yu$,Oo.prototype.entity_ws8or7$=nn.prototype.entity_ws8or7$,Oo.prototype.comment_61zpoe$=nn.prototype.comment_61zpoe$,No.prototype.unaryPlus_lvwjq6$=nn.prototype.unaryPlus_lvwjq6$,No.prototype.unaryPlus_pdl1vz$=nn.prototype.unaryPlus_pdl1vz$,No.prototype.text_61zpoe$=nn.prototype.text_61zpoe$,No.prototype.text_3p81yu$=nn.prototype.text_3p81yu$,No.prototype.entity_ws8or7$=nn.prototype.entity_ws8or7$,No.prototype.comment_61zpoe$=nn.prototype.comment_61zpoe$,Fo.prototype.unaryPlus_lvwjq6$=Jo.prototype.unaryPlus_lvwjq6$,Fo.prototype.unaryPlus_pdl1vz$=Jo.prototype.unaryPlus_pdl1vz$,Fo.prototype.text_61zpoe$=Jo.prototype.text_61zpoe$,Fo.prototype.text_3p81yu$=Jo.prototype.text_3p81yu$,Fo.prototype.entity_ws8or7$=Jo.prototype.entity_ws8or7$,Fo.prototype.comment_61zpoe$=Jo.prototype.comment_61zpoe$,xo.prototype.unaryPlus_lvwjq6$=Go.prototype.unaryPlus_lvwjq6$,xo.prototype.unaryPlus_pdl1vz$=Go.prototype.unaryPlus_pdl1vz$,xo.prototype.text_61zpoe$=Go.prototype.text_61zpoe$,xo.prototype.text_3p81yu$=Go.prototype.text_3p81yu$,xo.prototype.entity_ws8or7$=Go.prototype.entity_ws8or7$,xo.prototype.comment_61zpoe$=Go.prototype.comment_61zpoe$,To.prototype.unaryPlus_lvwjq6$=nn.prototype.unaryPlus_lvwjq6$,To.prototype.unaryPlus_pdl1vz$=nn.prototype.unaryPlus_pdl1vz$,To.prototype.text_61zpoe$=nn.prototype.text_61zpoe$,To.prototype.text_3p81yu$=nn.prototype.text_3p81yu$,To.prototype.entity_ws8or7$=nn.prototype.entity_ws8or7$,To.prototype.comment_61zpoe$=nn.prototype.comment_61zpoe$,Io.prototype.unaryPlus_lvwjq6$=xo.prototype.unaryPlus_lvwjq6$,Io.prototype.unaryPlus_pdl1vz$=xo.prototype.unaryPlus_pdl1vz$,Io.prototype.text_61zpoe$=xo.prototype.text_61zpoe$,Io.prototype.text_3p81yu$=xo.prototype.text_3p81yu$,Io.prototype.entity_ws8or7$=xo.prototype.entity_ws8or7$,Io.prototype.comment_61zpoe$=xo.prototype.comment_61zpoe$,Lo.prototype.unaryPlus_lvwjq6$=nn.prototype.unaryPlus_lvwjq6$,Lo.prototype.unaryPlus_pdl1vz$=nn.prototype.unaryPlus_pdl1vz$,Lo.prototype.text_61zpoe$=nn.prototype.text_61zpoe$,Lo.prototype.text_3p81yu$=nn.prototype.text_3p81yu$,Lo.prototype.entity_ws8or7$=nn.prototype.entity_ws8or7$,Lo.prototype.comment_61zpoe$=nn.prototype.comment_61zpoe$,Bo.prototype.unaryPlus_lvwjq6$=Vo.prototype.unaryPlus_lvwjq6$,Bo.prototype.unaryPlus_pdl1vz$=Vo.prototype.unaryPlus_pdl1vz$,Bo.prototype.text_61zpoe$=Vo.prototype.text_61zpoe$,Bo.prototype.text_3p81yu$=Vo.prototype.text_3p81yu$,Bo.prototype.entity_ws8or7$=Vo.prototype.entity_ws8or7$,Bo.prototype.comment_61zpoe$=Vo.prototype.comment_61zpoe$,Uo.prototype.unaryPlus_lvwjq6$=Go.prototype.unaryPlus_lvwjq6$,Uo.prototype.unaryPlus_pdl1vz$=Go.prototype.unaryPlus_pdl1vz$,Uo.prototype.text_61zpoe$=Go.prototype.text_61zpoe$,Uo.prototype.text_3p81yu$=Go.prototype.text_3p81yu$,Uo.prototype.entity_ws8or7$=Go.prototype.entity_ws8or7$,Uo.prototype.comment_61zpoe$=Go.prototype.comment_61zpoe$,ko.prototype.unaryPlus_lvwjq6$=nn.prototype.unaryPlus_lvwjq6$,ko.prototype.unaryPlus_pdl1vz$=nn.prototype.unaryPlus_pdl1vz$,ko.prototype.text_61zpoe$=nn.prototype.text_61zpoe$,ko.prototype.text_3p81yu$=nn.prototype.text_3p81yu$,ko.prototype.entity_ws8or7$=nn.prototype.entity_ws8or7$,ko.prototype.comment_61zpoe$=nn.prototype.comment_61zpoe$,zo.prototype.unaryPlus_lvwjq6$=nn.prototype.unaryPlus_lvwjq6$,zo.prototype.unaryPlus_pdl1vz$=nn.prototype.unaryPlus_pdl1vz$,zo.prototype.text_61zpoe$=nn.prototype.text_61zpoe$,zo.prototype.text_3p81yu$=nn.prototype.text_3p81yu$,zo.prototype.entity_ws8or7$=nn.prototype.entity_ws8or7$,zo.prototype.comment_61zpoe$=nn.prototype.comment_61zpoe$,Do.prototype.unaryPlus_lvwjq6$=Uo.prototype.unaryPlus_lvwjq6$,Do.prototype.unaryPlus_pdl1vz$=Uo.prototype.unaryPlus_pdl1vz$,Do.prototype.text_61zpoe$=Uo.prototype.text_61zpoe$,Do.prototype.text_3p81yu$=Uo.prototype.text_3p81yu$,Do.prototype.entity_ws8or7$=Uo.prototype.entity_ws8or7$,Do.prototype.comment_61zpoe$=Uo.prototype.comment_61zpoe$,wo.prototype.unaryPlus_lvwjq6$=nn.prototype.unaryPlus_lvwjq6$,wo.prototype.unaryPlus_pdl1vz$=nn.prototype.unaryPlus_pdl1vz$,wo.prototype.text_61zpoe$=nn.prototype.text_61zpoe$,wo.prototype.text_3p81yu$=nn.prototype.text_3p81yu$,wo.prototype.entity_ws8or7$=nn.prototype.entity_ws8or7$,wo.prototype.comment_61zpoe$=nn.prototype.comment_61zpoe$,Ho.prototype.unaryPlus_lvwjq6$=Qo.prototype.unaryPlus_lvwjq6$,Ho.prototype.unaryPlus_pdl1vz$=Qo.prototype.unaryPlus_pdl1vz$,Ho.prototype.text_61zpoe$=Qo.prototype.text_61zpoe$,Ho.prototype.text_3p81yu$=Qo.prototype.text_3p81yu$,Ho.prototype.entity_ws8or7$=Qo.prototype.entity_ws8or7$,Ho.prototype.comment_61zpoe$=Qo.prototype.comment_61zpoe$,Ao.prototype.unaryPlus_lvwjq6$=nn.prototype.unaryPlus_lvwjq6$,Ao.prototype.unaryPlus_pdl1vz$=nn.prototype.unaryPlus_pdl1vz$,Ao.prototype.text_61zpoe$=nn.prototype.text_61zpoe$,Ao.prototype.text_3p81yu$=nn.prototype.text_3p81yu$,Ao.prototype.entity_ws8or7$=nn.prototype.entity_ws8or7$,Ao.prototype.comment_61zpoe$=nn.prototype.comment_61zpoe$,Ro.prototype.unaryPlus_lvwjq6$=nn.prototype.unaryPlus_lvwjq6$,Ro.prototype.unaryPlus_pdl1vz$=nn.prototype.unaryPlus_pdl1vz$,Ro.prototype.text_61zpoe$=nn.prototype.text_61zpoe$,Ro.prototype.text_3p81yu$=nn.prototype.text_3p81yu$,Ro.prototype.entity_ws8or7$=nn.prototype.entity_ws8or7$,Ro.prototype.comment_61zpoe$=nn.prototype.comment_61zpoe$,ar.prototype.unaryPlus_lvwjq6$=G.prototype.unaryPlus_lvwjq6$,ar.prototype.unaryPlus_pdl1vz$=G.prototype.unaryPlus_pdl1vz$,ar.prototype.text_61zpoe$=G.prototype.text_61zpoe$,ar.prototype.text_3p81yu$=G.prototype.text_3p81yu$,ar.prototype.entity_ws8or7$=G.prototype.entity_ws8or7$,ar.prototype.comment_61zpoe$=G.prototype.comment_61zpoe$,lr.prototype.unaryPlus_lvwjq6$=q.prototype.unaryPlus_lvwjq6$,lr.prototype.raw_61zpoe$=q.prototype.raw_61zpoe$,lr.prototype.raw_ws8or7$=q.prototype.raw_ws8or7$,lr.prototype.raw_3p81yu$=q.prototype.raw_3p81yu$,cr.prototype.onTagError_cjwpn3$=j.prototype.onTagError_cjwpn3$,ur.prototype.onTagError_cjwpn3$=j.prototype.onTagError_cjwpn3$,n=o(),ut=new Q,new tn,new tt,ht=new tt("on","off"),dt=new rt,new at(xt),new at(kt),new at(Ft),new at(Vt),new at(Et),new at(vt),new at(Yt),new at(ie),pt=new at(ae),_t=new at(Ue),mt=new at(Ge),ft=new at(Re),new at(Fe),new at(Nt),new at(He),new at(Ye);var mr,fr=hn(),gr=z(L(fr.length),16),$r=w(gr);for(mr=0;mr!==fr.length;++mr){var Er=fr[mr];$r.put_xwzc9p$(Er.realValue,Er)}Et=$r;var yr,br=gn(),Sr=z(L(br.length),16),vr=w(Sr);for(yr=0;yr!==br.length;++yr){var Cr=br[yr];vr.put_xwzc9p$(Cr.realValue,Cr)}vt=vr;var Nr,Tr=bn(),Lr=z(L(Tr.length),16),zr=w(Lr);for(Nr=0;Nr!==Tr.length;++Nr){var wr=Tr[Nr];zr.put_xwzc9p$(wr.realValue,wr)}Nt=zr;var Or,Rr=zn(),Ar=z(L(Rr.length),16),xr=w(Ar);for(Or=0;Or!==Rr.length;++Or){var Ir=Rr[Or];xr.put_xwzc9p$(Ir.realValue,Ir)}var Ur,Dr=In(),Pr=z(L(Dr.length),16),Mr=w(Pr);for(Ur=0;Ur!==Dr.length;++Ur){var kr=Dr[Ur];Mr.put_xwzc9p$(kr.realValue,kr)}xt=Mr;var jr,Gr=qn(),qr=z(L(Gr.length),16),Fr=w(qr);for(jr=0;jr!==Gr.length;++jr){var Br=Gr[jr];Fr.put_xwzc9p$(Br.realValue,Br)}kt=Fr;var Wr,Hr=Kn(),Vr=z(L(Hr.length),16),Kr=w(Vr);for(Wr=0;Wr!==Hr.length;++Wr){var Xr=Hr[Wr];Kr.put_xwzc9p$(Xr.realValue,Xr)}Ft=Kr;var Jr,Yr=ti(),Qr=z(L(Yr.length),16),Zr=w(Qr);for(Jr=0;Jr!==Yr.length;++Jr){var ts=Yr[Jr];Zr.put_xwzc9p$(ts.realValue,ts)}Vt=Zr;var es,ns=si(),is=z(L(ns.length),16),os=w(is);for(es=0;es!==ns.length;++es){var rs=ns[es];os.put_xwzc9p$(rs.realValue,rs)}Yt=os;var ss,as=_i(),cs=z(L(as.length),16),ls=w(cs);for(ss=0;ss!==as.length;++ss){var us=as[ss];ls.put_xwzc9p$(us.realValue,us)}ie=ls;var hs,ds=yi(),ps=z(L(ds.length),16),_s=w(ps);for(hs=0;hs!==ds.length;++hs){var ms=ds[hs];_s.put_xwzc9p$(ms.realValue,ms)}ae=_s;var fs,gs=Hi(),$s=z(L(gs.length),16),Es=w($s);for(fs=0;fs!==gs.length;++fs){var ys=gs[fs];Es.put_xwzc9p$(ys.realValue,ys)}Re=Es;var bs,Ss=Qi(),vs=z(L(Ss.length),16),Cs=w(vs);for(bs=0;bs!==Ss.length;++bs){var Ns=Ss[bs];Cs.put_xwzc9p$(Ns.realValue,Ns)}Ue=Cs;var Ts,Ls=so(),zs=z(L(Ls.length),16),ws=w(zs);for(Ts=0;Ts!==Ls.length;++Ts){var Os=Ls[Ts];ws.put_xwzc9p$(Os.realValue,Os)}Ge=ws;var Rs,As=uo(),xs=z(L(As.length),16),Is=w(xs);for(Rs=0;Rs!==As.length;++Rs){var Us=As[Rs];Is.put_xwzc9p$(Us.realValue,Us)}Fe=Is;var Ds,Ps=fo(),Ms=z(L(Ps.length),16),ks=w(Ms);for(Ds=0;Ds!==Ps.length;++Ds){var js=Ps[Ds];ks.put_xwzc9p$(js.realValue,js)}He=ks;var Gs,qs=vo(),Fs=z(L(qs.length),16),Bs=w(Fs);for(Gs=0;Gs!==qs.length;++Gs){var Ws=qs[Gs];Bs.put_xwzc9p$(Ws.realValue,Ws)}Ye=Bs;var Hs,Vs,Ks=A([R(O(60),"<"),R(O(62),">"),R(O(38),"&"),R(O(34),""")]),Xs=Ks.keys,Js=M(P(Xs,10));for(Vs=Xs.iterator();Vs.hasNext();){var Ys=Vs.next();Js.add_11rb$(0|x(Ys))}var Qs,Zs=null!=(Hs=I(Js))?Hs:-1,ta=k(Zs+1|0);Qs=ta.length-1|0;for(var ea=0;ea<=Qs;ea++)ta[ea]=Ks.get_11rb$(O(U(ea)));return new D(97,122),new D(65,90),new D(48,57),t})?i.apply(e,o):i)||(t.exports=r)},function(t,e,n){"use strict";function i(t){for(var e=1;e1||escape(t.first().getText()).replace(/%u200B/g,"").length>0},a.createEntity=function(t,e,n){return l.__create(t,e,n),this},a.mergeEntityData=function(t,e){return l.__mergeData(t,e),this},a.replaceEntityData=function(t,e){return l.__replaceData(t,e),this},a.addEntity=function(t){return l.__add(t),this},a.getEntity=function(t){return l.__get(t)},a.getAllEntities=function(){return l.__getAll()},a.loadWithEntities=function(t){return l.__loadWithEntities(t)},o.createFromBlockArray=function(t,e){var n=Array.isArray(t)?t:t.contentBlocks,i=r.createFromArray(n),s=i.isEmpty()?new u:u.createEmpty(i.first().getKey());return new o({blockMap:i,entityMap:e||l,selectionBefore:s,selectionAfter:s})},o.createFromText=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:/\r\n?|\n/g,n=t.split(e),i=n.map((function(t){return t=m(t),new S({key:h(),text:t,type:"unstyled",characterList:f($(s.EMPTY,t.length))})}));return o.createFromBlockArray(i)},o.fromJS=function(t){return new o(i({},t,{blockMap:y(t.blockMap).map(o.createContentBlockFromJS),selectionBefore:new u(t.selectionBefore),selectionAfter:new u(t.selectionAfter)}))},o.createContentBlockFromJS=function(t){var e=t.characterList;return new S(i({},t,{data:E(t.data),characterList:null!=e?f((Array.isArray(e)?e:d(e)).map((function(t){return s.fromJS(t)}))):void 0}))},o}(b);t.exports=v},function(t,e,n){"use strict";var i=n(317),o=n(34),r="֐־׀׃׆׈-׏א-ת׫-ׯװ-ײ׳-״׵-׿߀-߉ߊ-ߪߴ-ߵߺ߻-߿ࠀ-ࠕࠚࠤࠨ࠮-࠯࠰-࠾࠿ࡀ-ࡘ࡜-࡝࡞࡟-࢟‏יִײַ-ﬨשׁ-זּ﬷טּ-לּ﬽מּ﬿נּ-סּ﭂ףּ-פּ﭅צּ-ﭏ",s="؈؋؍؛؜؝؞-؟ؠ-ؿـف-ي٭ٮ-ٯٱ-ۓ۔ەۥ-ۦۮ-ۯۺ-ۼ۽-۾ۿ܀-܍܎܏ܐܒ-ܯ݋-݌ݍ-ޥޱ޲-޿ࢠ-ࢲࢳ-ࣣﭐ-ﮱ﮲-﯁﯂-﯒ﯓ-ﴽ﵀-﵏ﵐ-ﶏ﶐-﶑ﶒ-ﷇ﷈-﷏ﷰ-ﷻ﷼﷾-﷿ﹰ-ﹴ﹵ﹶ-ﻼ﻽-﻾",a=new RegExp("["+"A-Za-zªµºÀ-ÖØ-öø-ƺƻƼ-ƿǀ-ǃDŽ-ʓʔʕ-ʯʰ-ʸʻ-ˁː-ˑˠ-ˤˮͰ-ͳͶ-ͷͺͻ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁ҂Ҋ-ԯԱ-Ֆՙ՚-՟ա-և։ःऄ-हऻऽा-ीॉ-ौॎ-ॏॐक़-ॡ।-॥०-९॰ॱॲ-ঀং-ঃঅ-ঌএ-ঐও-নপ-রলশ-হঽা-ীে-ৈো-ৌৎৗড়-ঢ়য়-ৡ০-৯ৰ-ৱ৴-৹৺ਃਅ-ਊਏ-ਐਓ-ਨਪ-ਰਲ-ਲ਼ਵ-ਸ਼ਸ-ਹਾ-ੀਖ਼-ੜਫ਼੦-੯ੲ-ੴઃઅ-ઍએ-ઑઓ-નપ-રલ-ળવ-હઽા-ીૉો-ૌૐૠ-ૡ૦-૯૰ଂ-ଃଅ-ଌଏ-ଐଓ-ନପ-ରଲ-ଳଵ-ହଽାୀେ-ୈୋ-ୌୗଡ଼-ଢ଼ୟ-ୡ୦-୯୰ୱ୲-୷ஃஅ-ஊஎ-ஐஒ-கங-சஜஞ-டண-தந-பம-ஹா-ிு-ூெ-ைொ-ௌௐௗ௦-௯௰-௲ఁ-ఃఅ-ఌఎ-ఐఒ-నప-హఽు-ౄౘ-ౙౠ-ౡ౦-౯౿ಂ-ಃಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽಾಿೀ-ೄೆೇ-ೈೊ-ೋೕ-ೖೞೠ-ೡ೦-೯ೱ-ೲം-ഃഅ-ഌഎ-ഐഒ-ഺഽാ-ീെ-ൈൊ-ൌൎൗൠ-ൡ൦-൯൰-൵൹ൺ-ൿං-ඃඅ-ඖක-නඳ-රලව-ෆා-ෑෘ-ෟ෦-෯ෲ-ෳ෴ก-ะา-ำเ-ๅๆ๏๐-๙๚-๛ກ-ຂຄງ-ຈຊຍດ-ທນ-ຟມ-ຣລວສ-ຫອ-ະາ-ຳຽເ-ໄໆ໐-໙ໜ-ໟༀ༁-༃༄-༒༓༔༕-༗༚-༟༠-༩༪-༳༴༶༸༾-༿ཀ-ཇཉ-ཬཿ྅ྈ-ྌ྾-࿅࿇-࿌࿎-࿏࿐-࿔࿕-࿘࿙-࿚က-ဪါ-ာေးျ-ြဿ၀-၉၊-၏ၐ-ၕၖ-ၗၚ-ၝၡၢ-ၤၥ-ၦၧ-ၭၮ-ၰၵ-ႁႃ-ႄႇ-ႌႎႏ႐-႙ႚ-ႜ႞-႟Ⴀ-ჅჇჍა-ჺ჻ჼჽ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚ፠-፨፩-፼ᎀ-ᎏᎠ-Ᏼᐁ-ᙬ᙭-᙮ᙯ-ᙿᚁ-ᚚᚠ-ᛪ᛫-᛭ᛮ-ᛰᛱ-ᛸᜀ-ᜌᜎ-ᜑᜠ-ᜱ᜵-᜶ᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳាើ-ៅះ-ៈ។-៖ៗ៘-៚ៜ០-៩᠐-᠙ᠠ-ᡂᡃᡄ-ᡷᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᤣ-ᤦᤩ-ᤫᤰ-ᤱᤳ-ᤸ᥆-᥏ᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧀᧁ-ᧇᧈ-ᧉ᧐-᧙᧚ᨀ-ᨖᨙ-ᨚ᨞-᨟ᨠ-ᩔᩕᩗᩡᩣ-ᩤᩭ-ᩲ᪀-᪉᪐-᪙᪠-᪦ᪧ᪨-᪭ᬄᬅ-ᬳᬵᬻᬽ-ᭁᭃ-᭄ᭅ-ᭋ᭐-᭙᭚-᭠᭡-᭪᭴-᭼ᮂᮃ-ᮠᮡᮦ-ᮧ᮪ᮮ-ᮯ᮰-᮹ᮺ-ᯥᯧᯪ-ᯬᯮ᯲-᯳᯼-᯿ᰀ-ᰣᰤ-ᰫᰴ-ᰵ᰻-᰿᱀-᱉ᱍ-ᱏ᱐-᱙ᱚ-ᱷᱸ-ᱽ᱾-᱿᳀-᳇᳓᳡ᳩ-ᳬᳮ-ᳱᳲ-ᳳᳵ-ᳶᴀ-ᴫᴬ-ᵪᵫ-ᵷᵸᵹ-ᶚᶛ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼ‎ⁱⁿₐ-ₜℂℇℊ-ℓℕℙ-ℝℤΩℨK-ℭℯ-ℴℵ-ℸℹℼ-ℿⅅ-ⅉⅎ⅏Ⅰ-ↂↃ-ↄↅ-ↈ⌶-⍺⎕⒜-ⓩ⚬⠀-⣿Ⰰ-Ⱞⰰ-ⱞⱠ-ⱻⱼ-ⱽⱾ-ⳤⳫ-ⳮⳲ-ⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯ⵰ⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々〆〇〡-〩〮-〯〱-〵〸-〺〻〼ぁ-ゖゝ-ゞゟァ-ヺー-ヾヿㄅ-ㄭㄱ-ㆎ㆐-㆑㆒-㆕㆖-㆟ㆠ-ㆺㇰ-ㇿ㈀-㈜㈠-㈩㈪-㉇㉈-㉏㉠-㉻㉿㊀-㊉㊊-㊰㋀-㋋㋐-㋾㌀-㍶㍻-㏝㏠-㏾㐀-䶵一-鿌ꀀ-ꀔꀕꀖ-ꒌꓐ-ꓷꓸ-ꓽ꓾-꓿ꔀ-ꘋꘌꘐ-ꘟ꘠-꘩ꘪ-ꘫꙀ-ꙭꙮꚀ-ꚛꚜ-ꚝꚠ-ꛥꛦ-ꛯ꛲-꛷Ꜣ-ꝯꝰꝱ-ꞇ꞉-꞊Ꞌ-ꞎꞐ-ꞭꞰ-Ʇꟷꟸ-ꟹꟺꟻ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꠣ-ꠤꠧ꠰-꠵꠶-꠷ꡀ-ꡳꢀ-ꢁꢂ-ꢳꢴ-ꣃ꣎-꣏꣐-꣙ꣲ-ꣷ꣸-꣺ꣻ꤀-꤉ꤊ-ꤥ꤮-꤯ꤰ-ꥆꥒ-꥓꥟ꥠ-ꥼꦃꦄ-ꦲꦴ-ꦵꦺ-ꦻꦽ-꧀꧁-꧍ꧏ꧐-꧙꧞-꧟ꧠ-ꧤꧦꧧ-ꧯ꧰-꧹ꧺ-ꧾꨀ-ꨨꨯ-ꨰꨳ-ꨴꩀ-ꩂꩄ-ꩋꩍ꩐-꩙꩜-꩟ꩠ-ꩯꩰꩱ-ꩶ꩷-꩹ꩺꩻꩽꩾ-ꪯꪱꪵ-ꪶꪹ-ꪽꫀꫂꫛ-ꫜꫝ꫞-꫟ꫠ-ꫪꫫꫮ-ꫯ꫰-꫱ꫲꫳ-ꫴꫵꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚ꭛ꭜ-ꭟꭤ-ꭥꯀ-ꯢꯣ-ꯤꯦ-ꯧꯩ-ꯪ꯫꯬꯰-꯹가-힣ힰ-ퟆퟋ-ퟻ-豈-舘並-龎ff-stﬓ-ﬗA-Za-zヲ-ッーア-ン゙-゚ᅠ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ"+r+s+"]"),c=new RegExp("["+r+s+"]");function l(t){var e=a.exec(t);return null==e?null:e[0]}function u(t){var e=l(t);return null==e?i.NEUTRAL:c.exec(e)?i.RTL:i.LTR}function h(t,e){if(e=e||i.NEUTRAL,!t.length)return e;var n=u(t);return n===i.NEUTRAL?e:n}function d(t,e){return e||(e=i.getGlobalDir()),i.isStrong(e)||o(!1),h(t,e)}var p={firstStrongChar:l,firstStrongCharDir:u,resolveBlockDir:h,getDirection:d,isDirectionLTR:function(t,e){return d(t,e)===i.LTR},isDirectionRTL:function(t,e){return d(t,e)===i.RTL}};t.exports=p},function(t,e,n){"use strict";var i=n(0),o=n(158),r=(0,n(33).Map)({"header-one":{element:"h1"},"header-two":{element:"h2"},"header-three":{element:"h3"},"header-four":{element:"h4"},"header-five":{element:"h5"},"header-six":{element:"h6"},section:{element:"section"},article:{element:"article"},"unordered-list-item":{element:"li",wrapper:i.createElement("ul",{className:o("public/DraftStyleDefault/ul")})},"ordered-list-item":{element:"li",wrapper:i.createElement("ol",{className:o("public/DraftStyleDefault/ol")})},blockquote:{element:"blockquote"},atomic:{element:"figure"},"code-block":{element:"pre",wrapper:i.createElement("pre",{className:o("public/DraftStyleDefault/pre")})},unstyled:{element:"div",aliasedElements:["p"]}});t.exports=r},function(t,e,n){"use strict";var i=n(687).notEmptyKey;function o(t,e){return i(e)&&"MUTABLE"===t.__get(e).getMutability()?e:null}t.exports=function(t,e){var n;if(e.isCollapsed()){var i=e.getAnchorKey(),r=e.getAnchorOffset();return r>0?(n=t.getBlockForKey(i).getEntityAt(r-1))!==t.getBlockForKey(i).getEntityAt(r)?null:o(t.getEntityMap(),n):null}var s=e.getStartKey(),a=e.getStartOffset(),c=t.getBlockForKey(s);return n=a===c.getLength()?null:c.getEntityAt(a),o(t.getEntityMap(),n)}},function(t,e,n){"use strict";var i=n(906);t.exports=function t(e,n){return!(!e||!n)&&(e===n||!i(e)&&(i(n)?t(e,n.parentNode):"contains"in e?e.contains(n):!!e.compareDocumentPosition&&!!(16&e.compareDocumentPosition(n))))}},function(t,e,n){"use strict";function i(t,e){return!!e&&(t===e.documentElement||t===e.body)}var o={getTop:function(t){var e=t.ownerDocument;return i(t,e)?e.body.scrollTop||e.documentElement.scrollTop:t.scrollTop},setTop:function(t,e){var n=t.ownerDocument;i(t,n)?n.body.scrollTop=n.documentElement.scrollTop=e:t.scrollTop=e},getLeft:function(t){var e=t.ownerDocument;return i(t,e)?e.body.scrollLeft||e.documentElement.scrollLeft:t.scrollLeft},setLeft:function(t,e){var n=t.ownerDocument;i(t,n)?n.body.scrollLeft=n.documentElement.scrollLeft=e:t.scrollLeft=e}};t.exports=o},function(t,e,n){"use strict";n(398);t.exports=function(t,e){var n=t.getSelection(),i=t.getCurrentContent(),o=n.getStartKey(),r=n.getStartOffset(),s=o,a=0;if(e>r){var c=i.getKeyBefore(o);if(null==c)s=o;else s=c,a=i.getBlockForKey(c).getText().length}else a=r-e;return n.merge({focusKey:s,focusOffset:a,isBackward:!0})}},function(t,e,n){"use strict";var i=n(696);t.exports=i},function(t,e,n){"use strict";var i=n(71),o=n(933),r=i.isPlatform("Mac OS X"),s={isCtrlKeyCommand:function(t){return!!t.ctrlKey&&!t.altKey},isOptionKeyCommand:function(t){return r&&t.altKey},usesMacOSHeuristics:function(){return r},hasCommandModifier:function(t){return r?!!t.metaKey&&!t.altKey:s.isCtrlKeyCommand(t)},isSoftNewlineEvent:o};t.exports=s},function(t,e,n){"use strict";var i=n(271);n.d(e,"a",(function(){return i.b}));var o=n(217);n.d(e,"c",(function(){return o.a})),n.d(e,"b",(function(){return o.b}))},function(t,e,n){"use strict";n(219);e.a=function(t,e){return()=>null}},function(t,e,n){"use strict";var i=n(335),o=n(25),r=(n(269),n(268),function(t,e,n){for(var i=0,r=0;i=r,r=Object(o.h)(),38===i&&12===r&&(e[n]=1),!Object(o.o)(r);)Object(o.g)();return Object(o.m)(t,o.i)}),s=function(t,e){return Object(o.c)(function(t,e){var n=-1,i=44;do{switch(Object(o.o)(i)){case 0:38===i&&12===Object(o.h)()&&(e[n]=1),t[n]+=r(o.i-1,e,n);break;case 2:t[n]+=Object(o.d)(i);break;case 4:if(44===i){t[++n]=58===Object(o.h)()?"&\f":"",e[n]=t[n].length;break}default:t[n]+=Object(o.e)(i)}}while(i=Object(o.g)());return t}(Object(o.a)(t),e))},a=new WeakMap,c=function(t){if("rule"===t.type&&t.parent&&!(t.length<1)){for(var e=t.value,n=t.parent,i=t.column===n.column&&t.line===n.line;"rule"!==n.type;)if(!(n=n.parent))return;if((1!==t.props.length||58===e.charCodeAt(0)||a.get(n))&&!i){a.set(t,!0);for(var o=[],r=s(e,o),c=n.props,l=0,u=0;l{const{ownerState:n}=t;return[e.root,"default"!==n.color&&e["color"+Object(d.a)(n.color)],n.edge&&e["edge"+Object(d.a)(n.edge)],e["size"+Object(d.a)(n.size)]]}})(({theme:t,ownerState:e})=>Object(o.a)({textAlign:"center",flex:"0 0 auto",fontSize:t.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(t.vars||t).palette.action.active,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest})},!e.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Object(c.a)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"start"===e.edge&&{marginLeft:"small"===e.size?-3:-12},"end"===e.edge&&{marginRight:"small"===e.size?-3:-12}),({theme:t,ownerState:e})=>Object(o.a)({},"inherit"===e.color&&{color:"inherit"},"inherit"!==e.color&&"default"!==e.color&&Object(o.a)({color:(t.vars||t).palette[e.color].main},!e.disableRipple&&{"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Object(c.a)(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}}),"small"===e.size&&{padding:5,fontSize:t.typography.pxToRem(18)},"large"===e.size&&{padding:12,fontSize:t.typography.pxToRem(28)},{["&."+p.a.disabled]:{backgroundColor:"transparent",color:(t.vars||t).palette.action.disabled}})),g=r.forwardRef((function(t,e){const n=Object(u.a)({props:t,name:"MuiIconButton"}),{edge:r=!1,children:c,className:l,color:h="default",disabled:g=!1,disableFocusRipple:$=!1,size:E="medium"}=n,y=Object(i.a)(n,m),b=Object(o.a)({},n,{edge:r,color:h,disabled:g,disableFocusRipple:$,size:E}),S=(t=>{const{classes:e,disabled:n,color:i,edge:o,size:r}=t,s={root:["root",n&&"disabled","default"!==i&&"color"+Object(d.a)(i),o&&"edge"+Object(d.a)(o),"size"+Object(d.a)(r)]};return Object(a.a)(s,p.b,e)})(b);return Object(_.jsx)(f,Object(o.a)({className:Object(s.a)(S.root,l),centerRipple:!0,focusRipple:!$,disabled:g,ref:e,ownerState:b},y,{children:c}))}));e.a=g},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(4),a=n(18),c=n(7),l=n(3),u=n(170),h=n(6),d=n(75),p=n(143),_=n(199),m=n(2);const f=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],g=Object(l.a)("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:t},e)=>Object(o.a)({},e.root,e["margin"+Object(h.a)(t.margin)],t.fullWidth&&e.fullWidth)})(({ownerState:t})=>Object(o.a)({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},"normal"===t.margin&&{marginTop:16,marginBottom:8},"dense"===t.margin&&{marginTop:8,marginBottom:4},t.fullWidth&&{width:"100%"})),$=r.forwardRef((function(t,e){const n=Object(c.a)({props:t,name:"MuiFormControl"}),{children:l,className:$,color:E="primary",component:y="div",disabled:b=!1,error:S=!1,focused:v,fullWidth:C=!1,hiddenLabel:N=!1,margin:T="none",required:L=!1,size:z="medium",variant:w="outlined"}=n,O=Object(i.a)(n,f),R=Object(o.a)({},n,{color:E,component:y,disabled:b,error:S,fullWidth:C,hiddenLabel:N,margin:T,required:L,size:z,variant:w}),A=(t=>{const{classes:e,margin:n,fullWidth:i}=t,o={root:["root","none"!==n&&"margin"+Object(h.a)(n),i&&"fullWidth"]};return Object(a.a)(o,_.b,e)})(R),[x,I]=r.useState(()=>{let t=!1;return l&&r.Children.forEach(l,e=>{if(!Object(d.a)(e,["Input","Select"]))return;const n=Object(d.a)(e,["Select"])?e.props.input:e;n&&Object(u.a)(n.props)&&(t=!0)}),t}),[U,D]=r.useState(()=>{let t=!1;return l&&r.Children.forEach(l,e=>{Object(d.a)(e,["Input","Select"])&&Object(u.b)(e.props,!0)&&(t=!0)}),t}),[P,M]=r.useState(!1);b&&P&&M(!1);const k=void 0===v||b?P:v;const j=r.useCallback(()=>{D(!0)},[]),G={adornedStart:x,setAdornedStart:I,color:E,disabled:b,error:S,filled:U,focused:k,fullWidth:C,hiddenLabel:N,size:z,onBlur:()=>{M(!1)},onEmpty:r.useCallback(()=>{D(!1)},[]),onFilled:j,onFocus:()=>{M(!0)},registerEffect:void 0,required:L,variant:w};return Object(m.jsx)(p.a.Provider,{value:G,children:Object(m.jsx)(g,Object(o.a)({as:y,ownerState:R,className:Object(s.a)(A.root,$),ref:e},O,{children:l}))})}));e.a=$},function(t,e,n){"use strict";var i,o=n(5),r=n(1),s=n(0),a=n(4),c=n(18),l=n(53),u=n(41),h=n(3),d=n(6),p=n(138),_=n(7),m=n(2);const f=["children","className","component","disabled","error","filled","focused","margin","required","variant"],g=Object(h.a)("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.size&&e["size"+Object(d.a)(n.size)],n.contained&&e.contained,n.filled&&e.filled]}})(({theme:t,ownerState:e})=>Object(r.a)({color:(t.vars||t).palette.text.secondary},t.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,["&."+p.a.disabled]:{color:(t.vars||t).palette.text.disabled},["&."+p.a.error]:{color:(t.vars||t).palette.error.main}},"small"===e.size&&{marginTop:4},e.contained&&{marginLeft:14,marginRight:14})),$=s.forwardRef((function(t,e){const n=Object(_.a)({props:t,name:"MuiFormHelperText"}),{children:s,className:h,component:$="p"}=n,E=Object(o.a)(n,f),y=Object(u.a)(),b=Object(l.a)({props:n,muiFormControl:y,states:["variant","size","disabled","error","filled","focused","required"]}),S=Object(r.a)({},n,{component:$,contained:"filled"===b.variant||"outlined"===b.variant,variant:b.variant,size:b.size,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required}),v=(t=>{const{classes:e,contained:n,size:i,disabled:o,error:r,filled:s,focused:a,required:l}=t,u={root:["root",o&&"disabled",r&&"error",i&&"size"+Object(d.a)(i),n&&"contained",a&&"focused",s&&"filled",l&&"required"]};return Object(c.a)(u,p.b,e)})(S);return Object(m.jsx)(g,Object(r.a)({as:$,ownerState:S,className:Object(a.a)(v.root,h),ref:e},E,{children:" "===s?i||(i=Object(m.jsx)("span",{className:"notranslate",children:"​"})):s}))}));e.a=$},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(18),a=n(53),c=n(41),l=n(265),u=n(97),h=n(7),d=n(3),p=n(201),_=n(2);const m=["disableAnimation","margin","shrink","variant"],f=Object(d.a)(l.b,{shouldForwardProp:t=>Object(d.b)(t)||"classes"===t,name:"MuiInputLabel",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{["& ."+u.a.asterisk]:e.asterisk},e.root,n.formControl&&e.formControl,"small"===n.size&&e.sizeSmall,n.shrink&&e.shrink,!n.disableAnimation&&e.animated,e[n.variant]]}})(({theme:t,ownerState:e})=>Object(o.a)({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},e.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},"small"===e.size&&{transform:"translate(0, 17px) scale(1)"},e.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!e.disableAnimation&&{transition:t.transitions.create(["color","transform","max-width"],{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut})},"filled"===e.variant&&Object(o.a)({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===e.size&&{transform:"translate(12px, 13px) scale(1)"},e.shrink&&Object(o.a)({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},"small"===e.size&&{transform:"translate(12px, 4px) scale(0.75)"})),"outlined"===e.variant&&Object(o.a)({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},"small"===e.size&&{transform:"translate(14px, 9px) scale(1)"},e.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 24px)",transform:"translate(14px, -9px) scale(0.75)"}))),g=r.forwardRef((function(t,e){const n=Object(h.a)({name:"MuiInputLabel",props:t}),{disableAnimation:r=!1,shrink:l}=n,u=Object(i.a)(n,m),d=Object(c.a)();let g=l;void 0===g&&d&&(g=d.filled||d.focused||d.adornedStart);const $=Object(a.a)({props:n,muiFormControl:d,states:["size","variant","required"]}),E=Object(o.a)({},n,{disableAnimation:r,formControl:d,shrink:g,size:$.size,variant:$.variant,required:$.required}),y=(t=>{const{classes:e,formControl:n,size:i,shrink:r,disableAnimation:a,variant:c,required:l}=t,u={root:["root",n&&"formControl",!a&&"animated",r&&"shrink","small"===i&&"sizeSmall",c],asterisk:[l&&"asterisk"]},h=Object(s.a)(u,p.b,e);return Object(o.a)({},e,h)})(E);return Object(_.jsx)(f,Object(o.a)({"data-shrink":g,ownerState:E,ref:e},u,{classes:y}))}));e.a=g},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(18),a=n(227),c=n(49),l=n(3),u=n(7),h=n(76),d=n(2);const p=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","type"],_=Object(l.a)(c.b,{shouldForwardProp:t=>Object(l.b)(t)||"classes"===t,name:"MuiInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[...Object(c.e)(t,e),!n.disableUnderline&&e.underline]}})(({theme:t,ownerState:e})=>{let n="light"===t.palette.mode?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return t.vars&&(n=`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`),Object(o.a)({position:"relative"},e.formControl&&{"label + &":{marginTop:16}},!e.disableUnderline&&{"&:after":{borderBottom:"2px solid "+(t.vars||t).palette[e.color].main,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${h.a.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${h.a.error}:after`]:{borderBottomColor:(t.vars||t).palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid "+n,left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${h.a.disabled}):before`]:{borderBottom:"2px solid "+(t.vars||t).palette.text.primary,"@media (hover: none)":{borderBottom:"1px solid "+n}},[`&.${h.a.disabled}:before`]:{borderBottomStyle:"dotted"}})}),m=Object(l.a)(c.a,{name:"MuiInput",slot:"Input",overridesResolver:c.d})({}),f=r.forwardRef((function(t,e){const n=Object(u.a)({props:t,name:"MuiInput"}),{disableUnderline:r,components:l={},componentsProps:f,fullWidth:g=!1,inputComponent:$="input",multiline:E=!1,type:y="text"}=n,b=Object(i.a)(n,p),S=(t=>{const{classes:e,disableUnderline:n}=t,i={root:["root",!n&&"underline"],input:["input"]},r=Object(s.a)(i,h.b,e);return Object(o.a)({},e,r)})(n),v={root:{ownerState:{disableUnderline:r}}},C=f?Object(a.a)(f,v):v;return Object(d.jsx)(c.c,Object(o.a)({components:Object(o.a)({Root:_,Input:m},l),componentsProps:C,fullWidth:g,inputComponent:$,multiline:E,ref:e,type:y},b,{classes:S}))}));f.muiName="Input",e.a=f},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(4),a=n(18),c=n(3),l=n(7),u=n(48),h=n(203),d=n(2);const p=["className"],_=Object(c.a)("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.disableGutters&&e.disableGutters]}})(({ownerState:t})=>Object(o.a)({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},t.disableGutters&&{right:0})),m=r.forwardRef((function(t,e){const n=Object(l.a)({props:t,name:"MuiListItemSecondaryAction"}),{className:c}=n,m=Object(i.a)(n,p),f=r.useContext(u.a),g=Object(o.a)({},n,{disableGutters:f.disableGutters}),$=(t=>{const{disableGutters:e,classes:n}=t,i={root:["root",e&&"disableGutters"]};return Object(a.a)(i,h.b,n)})(g);return Object(d.jsx)(_,Object(o.a)({className:Object(s.a)($.root,c),ownerState:g,ref:e},m))}));m.muiName="ListItemSecondaryAction",e.a=m},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(4),a=n(18),c=n(28),l=n(3),u=n(7),h=n(100),d=n(210),p=n(2);const _=["action","className","message","role"],m=Object(l.a)(h.a,{name:"MuiSnackbarContent",slot:"Root",overridesResolver:(t,e)=>e.root})(({theme:t})=>{const e="light"===t.palette.mode?.8:.98,n=Object(c.e)(t.palette.background.default,e);return Object(o.a)({},t.typography.body2,{color:t.vars?t.vars.palette.SnackbarContent.color:t.palette.getContrastText(n),backgroundColor:t.vars?t.vars.palette.SnackbarContent.bg:n,display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,flexGrow:1,[t.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}})}),f=Object(l.a)("div",{name:"MuiSnackbarContent",slot:"Message",overridesResolver:(t,e)=>e.message})({padding:"8px 0"}),g=Object(l.a)("div",{name:"MuiSnackbarContent",slot:"Action",overridesResolver:(t,e)=>e.action})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),$=r.forwardRef((function(t,e){const n=Object(u.a)({props:t,name:"MuiSnackbarContent"}),{action:r,className:c,message:l,role:h="alert"}=n,$=Object(i.a)(n,_),E=n,y=(t=>{const{classes:e}=t;return Object(a.a)({root:["root"],action:["action"],message:["message"]},d.b,e)})(E);return Object(p.jsxs)(m,Object(o.a)({role:h,square:!0,elevation:6,className:Object(s.a)(y.root,c),ownerState:E,ref:e},$,{children:[Object(p.jsx)(f,{className:y.message,ownerState:E,children:l}),r?Object(p.jsx)(g,{className:y.action,ownerState:E,children:r}):null]}))}));e.a=$},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(227),a=n(18),c=n(49),l=n(3),u=n(7),h=n(62),d=n(2);const p=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","type"],_=Object(l.a)(c.b,{shouldForwardProp:t=>Object(l.b)(t)||"classes"===t,name:"MuiFilledInput",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[...Object(c.e)(t,e),!n.disableUnderline&&e.underline]}})(({theme:t,ownerState:e})=>{var n;const i="light"===t.palette.mode,r=i?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",s=i?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=i?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",c=i?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Object(o.a)({position:"relative",backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s,borderTopLeftRadius:(t.vars||t).shape.borderRadius,borderTopRightRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),"&:hover":{backgroundColor:t.vars?t.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s}},["&."+h.a.focused]:{backgroundColor:t.vars?t.vars.palette.FilledInput.bg:s},["&."+h.a.disabled]:{backgroundColor:t.vars?t.vars.palette.FilledInput.disabledBg:c}},!e.disableUnderline&&{"&:after":{borderBottom:"2px solid "+(null==(n=(t.vars||t).palette[e.color||"primary"])?void 0:n.main),left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:t.transitions.create("transform",{duration:t.transitions.duration.shorter,easing:t.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${h.a.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${h.a.error}:after`]:{borderBottomColor:(t.vars||t).palette.error.main,transform:"scaleX(1)"},"&:before":{borderBottom:"1px solid "+(t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / ${t.vars.opacity.inputUnderline})`:r),left:0,bottom:0,content:'"\\00a0"',position:"absolute",right:0,transition:t.transitions.create("border-bottom-color",{duration:t.transitions.duration.shorter}),pointerEvents:"none"},[`&:hover:not(.${h.a.disabled}):before`]:{borderBottom:"1px solid "+(t.vars||t).palette.text.primary},[`&.${h.a.disabled}:before`]:{borderBottomStyle:"dotted"}},e.startAdornment&&{paddingLeft:12},e.endAdornment&&{paddingRight:12},e.multiline&&Object(o.a)({padding:"25px 12px 8px"},"small"===e.size&&{paddingTop:21,paddingBottom:4},e.hiddenLabel&&{paddingTop:16,paddingBottom:17}))}),m=Object(l.a)(c.a,{name:"MuiFilledInput",slot:"Input",overridesResolver:c.d})(({theme:t,ownerState:e})=>Object(o.a)({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===e.size&&{paddingTop:21,paddingBottom:4},e.hiddenLabel&&{paddingTop:16,paddingBottom:17},e.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0},e.startAdornment&&{paddingLeft:0},e.endAdornment&&{paddingRight:0},e.hiddenLabel&&"small"===e.size&&{paddingTop:8,paddingBottom:9})),f=r.forwardRef((function(t,e){const n=Object(u.a)({props:t,name:"MuiFilledInput"}),{components:r={},componentsProps:l,fullWidth:f=!1,inputComponent:g="input",multiline:$=!1,type:E="text"}=n,y=Object(i.a)(n,p),b=Object(o.a)({},n,{fullWidth:f,inputComponent:g,multiline:$,type:E}),S=(t=>{const{classes:e,disableUnderline:n}=t,i={root:["root",!n&&"underline"],input:["input"]},r=Object(a.a)(i,h.b,e);return Object(o.a)({},e,r)})(n),v={root:{ownerState:b},input:{ownerState:b}},C=l?Object(s.a)(l,v):v;return Object(d.jsx)(c.c,Object(o.a)({components:Object(o.a)({Root:_,Input:m},r),componentsProps:C,fullWidth:f,inputComponent:g,multiline:$,ref:e,type:E},y,{classes:S}))}));f.muiName="Input",e.a=f},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(4),a=n(59),c=n(1023),l=n(18),u=n(3),h=n(7),d=n(19);var p=r.createContext(),_=n(96),m=n(2);const f=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function g(t){const e=parseFloat(t);return`${e}${String(t).replace(String(e),"")||"px"}`}function $({breakpoints:t,values:e}){let n="";Object.keys(e).forEach(t=>{""===n&&0!==e[t]&&(n=t)});const i=Object.keys(t).sort((e,n)=>t[e]-t[n]);return i.slice(0,i.indexOf(n))}const E=Object(u.a)("div",{name:"MuiGrid",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t,{container:i,direction:o,item:r,spacing:s,wrap:a,zeroMinWidth:c,breakpoints:l}=n;let u=[];i&&(u=function(t,e,n={}){if(!t||t<=0)return[];if("string"==typeof t&&!Number.isNaN(Number(t))||"number"==typeof t)return[n["spacing-xs-"+String(t)]];const i=[];return e.forEach(e=>{const o=t[e];Number(o)>0&&i.push(n[`spacing-${e}-${String(o)}`])}),i}(s,l,e));const h=[];return l.forEach(t=>{const i=n[t];i&&h.push(e[`grid-${t}-${String(i)}`])}),[e.root,i&&e.container,r&&e.item,c&&e.zeroMinWidth,...u,"row"!==o&&e["direction-xs-"+String(o)],"wrap"!==a&&e["wrap-xs-"+String(a)],...h]}})(({ownerState:t})=>Object(o.a)({boxSizing:"border-box"},t.container&&{display:"flex",flexWrap:"wrap",width:"100%"},t.item&&{margin:0},t.zeroMinWidth&&{minWidth:0},"wrap"!==t.wrap&&{flexWrap:t.wrap}),(function({theme:t,ownerState:e}){const n=Object(a.e)({values:e.direction,breakpoints:t.breakpoints.values});return Object(a.b)({theme:t},n,t=>{const e={flexDirection:t};return 0===t.indexOf("column")&&(e["& > ."+_.a.item]={maxWidth:"none"}),e})}),(function({theme:t,ownerState:e}){const{container:n,rowSpacing:i}=e;let o={};if(n&&0!==i){const e=Object(a.e)({values:i,breakpoints:t.breakpoints.values});let n;"object"==typeof e&&(n=$({breakpoints:t.breakpoints.values,values:e})),o=Object(a.b)({theme:t},e,(e,i)=>{var o;const r=t.spacing(e);return"0px"!==r?{marginTop:"-"+g(r),["& > ."+_.a.item]:{paddingTop:g(r)}}:null!=(o=n)&&o.includes(i)?{}:{marginTop:0,["& > ."+_.a.item]:{paddingTop:0}}})}return o}),(function({theme:t,ownerState:e}){const{container:n,columnSpacing:i}=e;let o={};if(n&&0!==i){const e=Object(a.e)({values:i,breakpoints:t.breakpoints.values});let n;"object"==typeof e&&(n=$({breakpoints:t.breakpoints.values,values:e})),o=Object(a.b)({theme:t},e,(e,i)=>{var o;const r=t.spacing(e);return"0px"!==r?{width:`calc(100% + ${g(r)})`,marginLeft:"-"+g(r),["& > ."+_.a.item]:{paddingLeft:g(r)}}:null!=(o=n)&&o.includes(i)?{}:{width:"100%",marginLeft:0,["& > ."+_.a.item]:{paddingLeft:0}}})}return o}),(function({theme:t,ownerState:e}){let n;return t.breakpoints.keys.reduce((i,r)=>{let s={};if(e[r]&&(n=e[r]),!n)return i;if(!0===n)s={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if("auto"===n)s={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const c=Object(a.e)({values:e.columns,breakpoints:t.breakpoints.values}),l="object"==typeof c?c[r]:c;if(null==l)return i;const u=Math.round(n/l*1e8)/1e6+"%";let h={};if(e.container&&e.item&&0!==e.columnSpacing){const n=t.spacing(e.columnSpacing);if("0px"!==n){const t=`calc(${u} + ${g(n)})`;h={flexBasis:t,maxWidth:t}}}s=Object(o.a)({flexBasis:u,flexGrow:0,maxWidth:u},h)}return 0===t.breakpoints.values[r]?Object.assign(i,s):i[t.breakpoints.up(r)]=s,i},{})}));const y=t=>{const{classes:e,container:n,direction:i,item:o,spacing:r,wrap:s,zeroMinWidth:a,breakpoints:c}=t;let u=[];n&&(u=function(t,e){if(!t||t<=0)return[];if("string"==typeof t&&!Number.isNaN(Number(t))||"number"==typeof t)return["spacing-xs-"+String(t)];const n=[];return e.forEach(e=>{const i=t[e];if(Number(i)>0){const t=`spacing-${e}-${String(i)}`;n.push(t)}}),n}(r,c));const h=[];c.forEach(e=>{const n=t[e];n&&h.push(`grid-${e}-${String(n)}`)});const d={root:["root",n&&"container",o&&"item",a&&"zeroMinWidth",...u,"row"!==i&&"direction-xs-"+String(i),"wrap"!==s&&"wrap-xs-"+String(s),...h]};return Object(l.a)(d,_.b,e)},b=r.forwardRef((function(t,e){const n=Object(h.a)({props:t,name:"MuiGrid"}),{breakpoints:a}=Object(d.default)(),l=Object(c.a)(n),{className:u,columns:_,columnSpacing:g,component:$="div",container:b=!1,direction:S="row",item:v=!1,rowSpacing:C,spacing:N=0,wrap:T="wrap",zeroMinWidth:L=!1}=l,z=Object(i.a)(l,f),w=C||N,O=g||N,R=r.useContext(p),A=b?_||12:R,x={},I=Object(o.a)({},z);a.keys.forEach(t=>{null!=z[t]&&(x[t]=z[t],delete I[t])});const U=Object(o.a)({},l,{columns:A,container:b,direction:S,item:v,rowSpacing:w,columnSpacing:O,wrap:T,zeroMinWidth:L,spacing:N},x,{breakpoints:a.keys}),D=y(U);return Object(m.jsx)(p.Provider,{value:A,children:Object(m.jsx)(E,Object(o.a)({ownerState:U,className:Object(s.a)(D.root,u),as:$,ref:e},I))})}));e.a=b},function(t,e,n){"use strict";var i,o=n(5),r=n(1),s=n(0),a=n(18),c=n(3),l=n(2);const u=["children","classes","className","label","notched"],h=Object(c.a)("fieldset")({textAlign:"left",position:"absolute",bottom:0,right:0,top:-5,left:0,margin:0,padding:"0 8px",pointerEvents:"none",borderRadius:"inherit",borderStyle:"solid",borderWidth:1,overflow:"hidden",minWidth:"0%"}),d=Object(c.a)("legend")(({ownerState:t,theme:e})=>Object(r.a)({float:"unset",overflow:"hidden"},!t.withLabel&&{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})},t.withLabel&&Object(r.a)({display:"block",width:"auto",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},t.notched&&{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})})));var p=n(41),_=n(53),m=n(61),f=n(49),g=n(7);const $=["components","fullWidth","inputComponent","label","multiline","notched","type"],E=Object(c.a)(f.b,{shouldForwardProp:t=>Object(c.b)(t)||"classes"===t,name:"MuiOutlinedInput",slot:"Root",overridesResolver:f.e})(({theme:t,ownerState:e})=>{const n="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Object(r.a)({position:"relative",borderRadius:(t.vars||t).shape.borderRadius,["&:hover ."+m.a.notchedOutline]:{borderColor:(t.vars||t).palette.text.primary},"@media (hover: none)":{["&:hover ."+m.a.notchedOutline]:{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${m.a.focused} .${m.a.notchedOutline}`]:{borderColor:(t.vars||t).palette[e.color].main,borderWidth:2},[`&.${m.a.error} .${m.a.notchedOutline}`]:{borderColor:(t.vars||t).palette.error.main},[`&.${m.a.disabled} .${m.a.notchedOutline}`]:{borderColor:(t.vars||t).palette.action.disabled}},e.startAdornment&&{paddingLeft:14},e.endAdornment&&{paddingRight:14},e.multiline&&Object(r.a)({padding:"16.5px 14px"},"small"===e.size&&{padding:"8.5px 14px"}))}),y=Object(c.a)((function(t){const{className:e,label:n,notched:s}=t,a=Object(o.a)(t,u),c=null!=n&&""!==n,p=Object(r.a)({},t,{notched:s,withLabel:c});return Object(l.jsx)(h,Object(r.a)({"aria-hidden":!0,className:e,ownerState:p},a,{children:Object(l.jsx)(d,{ownerState:p,children:c?Object(l.jsx)("span",{children:n}):i||(i=Object(l.jsx)("span",{className:"notranslate",children:"​"}))})}))}),{name:"MuiOutlinedInput",slot:"NotchedOutline",overridesResolver:(t,e)=>e.notchedOutline})(({theme:t})=>{const e="light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:t.vars?`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:e}}),b=Object(c.a)(f.a,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:f.d})(({theme:t,ownerState:e})=>Object(r.a)({padding:"16.5px 14px"},!t.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:"light"===t.palette.mode?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:"light"===t.palette.mode?null:"#fff",caretColor:"light"===t.palette.mode?null:"#fff",borderRadius:"inherit"}},t.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[t.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},"small"===e.size&&{padding:"8.5px 14px"},e.multiline&&{padding:0},e.startAdornment&&{paddingLeft:0},e.endAdornment&&{paddingRight:0})),S=s.forwardRef((function(t,e){var n;const i=Object(g.a)({props:t,name:"MuiOutlinedInput"}),{components:c={},fullWidth:u=!1,inputComponent:h="input",label:d,multiline:S=!1,notched:v,type:C="text"}=i,N=Object(o.a)(i,$),T=(t=>{const{classes:e}=t,n=Object(a.a)({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},m.b,e);return Object(r.a)({},e,n)})(i),L=Object(p.a)(),z=Object(_.a)({props:i,muiFormControl:L,states:["required"]}),w=Object(r.a)({},i,{color:z.color||"primary",disabled:z.disabled,error:z.error,focused:z.focused,formControl:L,fullWidth:u,hiddenLabel:z.hiddenLabel,multiline:S,size:z.size,type:C});return Object(l.jsx)(f.c,Object(r.a)({components:Object(r.a)({Root:E,Input:b},c),renderSuffix:t=>Object(l.jsx)(y,{ownerState:w,className:T.notchedOutline,label:null!=d&&""!==d&&z.required?n||(n=Object(l.jsxs)(s.Fragment,{children:[d," ","*"]})):d,notched:void 0!==v?v:Boolean(t.startAdornment||t.filled||t.focused)}),fullWidth:u,inputComponent:h,multiline:S,ref:e,type:C},N,{classes:Object(r.a)({},T,{notchedOutline:null})}))}));S.muiName="Input";e.a=S},function(t,e,n){"use strict";var i,o=n(1),r=n(5),s=n(0),a=n(4),c=n(227),l=n(274),u=(n(72),n(18)),h=n(58),d=n(6),p=n(332),_=n(171),m=n(170),f=n(3),g=n(21),$=n(65),E=n(108),y=n(2);const b=["aria-describedby","aria-label","autoFocus","autoWidth","children","className","defaultOpen","defaultValue","disabled","displayEmpty","IconComponent","inputRef","labelId","MenuProps","multiple","name","onBlur","onChange","onClose","onFocus","onOpen","open","readOnly","renderValue","SelectDisplayProps","tabIndex","type","value","variant"],S=Object(f.a)("div",{name:"MuiSelect",slot:"Select",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{["&."+E.a.select]:e.select},{["&."+E.a.select]:e[n.variant]},{["&."+E.a.multiple]:e.multiple}]}})(_.c,{["&."+E.a.select]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),v=Object(f.a)("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.icon,n.variant&&e["icon"+Object(d.a)(n.variant)],n.open&&e.iconOpen]}})(_.b),C=Object(f.a)("input",{shouldForwardProp:t=>Object(f.c)(t)&&"classes"!==t,name:"MuiSelect",slot:"NativeInput",overridesResolver:(t,e)=>e.nativeInput})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function N(t,e){return"object"==typeof e&&null!==e?t===e:String(t)===String(e)}function T(t){return null==t||"string"==typeof t&&!t.trim()}var L,z,w=s.forwardRef((function(t,e){const{"aria-describedby":n,"aria-label":c,autoFocus:_,autoWidth:f,children:L,className:z,defaultOpen:w,defaultValue:O,disabled:R,displayEmpty:A,IconComponent:x,inputRef:I,labelId:U,MenuProps:D={},multiple:P,name:M,onBlur:k,onChange:j,onClose:G,onFocus:q,onOpen:F,open:B,readOnly:W,renderValue:H,SelectDisplayProps:V={},tabIndex:K,value:X,variant:J="standard"}=t,Y=Object(r.a)(t,b),[Q,Z]=Object($.a)({controlled:X,default:O,name:"Select"}),[tt,et]=Object($.a)({controlled:B,default:w,name:"Select"}),nt=s.useRef(null),it=s.useRef(null),[ot,rt]=s.useState(null),{current:st}=s.useRef(null!=B),[at,ct]=s.useState(),lt=Object(g.a)(e,I),ut=s.useCallback(t=>{it.current=t,t&&rt(t)},[]);s.useImperativeHandle(lt,()=>({focus:()=>{it.current.focus()},node:nt.current,value:Q}),[Q]),s.useEffect(()=>{w&&tt&&ot&&!st&&(ct(f?null:ot.clientWidth),it.current.focus())},[ot,f]),s.useEffect(()=>{_&&it.current.focus()},[_]),s.useEffect(()=>{if(!U)return;const t=Object(h.a)(it.current).getElementById(U);if(t){const e=()=>{getSelection().isCollapsed&&it.current.focus()};return t.addEventListener("click",e),()=>{t.removeEventListener("click",e)}}},[U]);const ht=(t,e)=>{t?F&&F(e):G&&G(e),st||(ct(f?null:ot.clientWidth),et(t))},dt=s.Children.toArray(L),pt=t=>e=>{let n;if(e.currentTarget.hasAttribute("tabindex")){if(P){n=Array.isArray(Q)?Q.slice():[];const e=Q.indexOf(t.props.value);-1===e?n.push(t.props.value):n.splice(e,1)}else n=t.props.value;if(t.props.onClick&&t.props.onClick(e),Q!==n&&(Z(n),j)){const i=e.nativeEvent||e,o=new i.constructor(i.type,i);Object.defineProperty(o,"target",{writable:!0,value:{value:n,name:M}}),j(o,t)}P||ht(!1,e)}},_t=null!==ot&&tt;let mt,ft;delete Y["aria-invalid"];const gt=[];let $t=!1,Et=!1;(Object(m.b)({value:Q})||A)&&(H?mt=H(Q):$t=!0);const yt=dt.map((t,e,n)=>{if(!s.isValidElement(t))return null;let i;if(P){if(!Array.isArray(Q))throw new Error(Object(l.a)(2));i=Q.some(e=>N(e,t.props.value)),i&&$t&>.push(t.props.children)}else i=N(Q,t.props.value),i&&$t&&(ft=t.props.children);if(i&&(Et=!0),void 0===t.props.value)return s.cloneElement(t,{"aria-readonly":!0,role:"option"});return s.cloneElement(t,{"aria-selected":i?"true":"false",onClick:pt(t),onKeyUp:e=>{" "===e.key&&e.preventDefault(),t.props.onKeyUp&&t.props.onKeyUp(e)},role:"option",selected:void 0===n[0].props.value||!0===n[0].props.disabled?(()=>{if(Q)return i;const e=n.find(t=>void 0!==t.props.value&&!0!==t.props.disabled);return t===e||i})():i,value:void 0,"data-value":t.props.value})});$t&&(mt=P?0===gt.length?null:gt.reduce((t,e,n)=>(t.push(e),n{const{classes:e,variant:n,disabled:i,multiple:o,open:r}=t,s={select:["select",n,i&&"disabled",o&&"multiple"],icon:["icon","icon"+Object(d.a)(n),r&&"iconOpen",i&&"disabled"],nativeInput:["nativeInput"]};return Object(u.a)(s,E.b,e)})(Ct);return Object(y.jsxs)(s.Fragment,{children:[Object(y.jsx)(S,Object(o.a)({ref:ut,tabIndex:bt,role:"button","aria-disabled":R?"true":void 0,"aria-expanded":_t?"true":"false","aria-haspopup":"listbox","aria-label":c,"aria-labelledby":[U,vt].filter(Boolean).join(" ")||void 0,"aria-describedby":n,onKeyDown:t=>{if(!W){-1!==[" ","ArrowUp","ArrowDown","Enter"].indexOf(t.key)&&(t.preventDefault(),ht(!0,t))}},onMouseDown:R||W?null:t=>{0===t.button&&(t.preventDefault(),it.current.focus(),ht(!0,t))},onBlur:t=>{!_t&&k&&(Object.defineProperty(t,"target",{writable:!0,value:{value:Q,name:M}}),k(t))},onFocus:q},V,{ownerState:Ct,className:Object(a.a)(V.className,Nt.select,z),id:vt,children:T(mt)?i||(i=Object(y.jsx)("span",{className:"notranslate",children:"​"})):mt})),Object(y.jsx)(C,Object(o.a)({value:Array.isArray(Q)?Q.join(","):Q,name:M,ref:nt,"aria-hidden":!0,onChange:t=>{const e=dt.map(t=>t.props.value).indexOf(t.target.value);if(-1===e)return;const n=dt[e];Z(n.props.value),j&&j(t,n)},tabIndex:-1,disabled:R,className:Nt.nativeInput,autoFocus:_,ownerState:Ct},Y)),Object(y.jsx)(v,{as:x,className:Nt.icon,ownerState:Ct}),Object(y.jsx)(p.a,Object(o.a)({id:"menu-"+(M||""),anchorEl:ot,open:_t,onClose:t=>{ht(!1,t)},anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"}},D,{MenuListProps:Object(o.a)({"aria-labelledby":U,role:"listbox",disableListWrap:!0},D.MenuListProps),PaperProps:Object(o.a)({},D.PaperProps,{style:Object(o.a)({minWidth:St},null!=D.PaperProps?D.PaperProps.style:null)}),children:yt}))]})})),O=n(53),R=n(41),A=n(222),x=n(409),I=n(412),U=n(414),D=n(7);const P=["autoWidth","children","classes","className","defaultOpen","displayEmpty","IconComponent","id","input","inputProps","label","labelId","MenuProps","multiple","native","onClose","onOpen","open","renderValue","SelectDisplayProps","variant"],M={name:"MuiSelect",overridesResolver:(t,e)=>e.root,shouldForwardProp:t=>Object(f.b)(t)&&"variant"!==t,slot:"Root"},k=Object(f.a)(x.a,M)(""),j=Object(f.a)(U.a,M)(""),G=Object(f.a)(I.a,M)(""),q=s.forwardRef((function(t,e){const n=Object(D.a)({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:l,classes:u={},className:h,defaultOpen:d=!1,displayEmpty:p=!1,IconComponent:m=A.a,id:f,input:$,inputProps:E,label:b,labelId:S,MenuProps:v,multiple:C=!1,native:N=!1,onClose:T,onOpen:x,open:I,renderValue:U,SelectDisplayProps:M,variant:q="outlined"}=n,F=Object(r.a)(n,P),B=N?_.a:w,W=Object(R.a)(),H=Object(O.a)({props:n,muiFormControl:W,states:["variant"]}).variant||q,V=$||{standard:L||(L=Object(y.jsx)(k,{})),outlined:Object(y.jsx)(j,{label:b}),filled:z||(z=Object(y.jsx)(G,{}))}[H],K=(t=>{const{classes:e}=t;return e})(Object(o.a)({},n,{variant:H,classes:u})),X=Object(g.a)(e,V.ref);return s.cloneElement(V,Object(o.a)({inputComponent:B,inputProps:Object(o.a)({children:l,IconComponent:m,variant:H,type:void 0,multiple:C},N?{id:f}:{autoWidth:i,defaultOpen:d,displayEmpty:p,labelId:S,MenuProps:v,onClose:T,onOpen:x,open:I,renderValue:U,SelectDisplayProps:Object(o.a)({id:f},M)},E,{classes:E?Object(c.a)(K,E.classes):K},$?$.props.inputProps:{})},C&&N&&"outlined"===H?{notched:!0}:{},{ref:X,className:Object(a.a)(V.props.className,h),variant:H},F))}));q.muiName="Select";e.a=q},function(t,e,n){"use strict";var i=n(1),o=n(5),r=n(0),s=n(354),a=n(111),c=n(736),l=n(1025),u=n(18),h=n(1057),d=n(271),p=n(2);const _=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function m(t){const e=[],n=[];return Array.from(t.querySelectorAll(_)).forEach((t,i)=>{const o=function(t){const e=parseInt(t.getAttribute("tabindex"),10);return Number.isNaN(e)?"true"===t.contentEditable||("AUDIO"===t.nodeName||"VIDEO"===t.nodeName||"DETAILS"===t.nodeName)&&null===t.getAttribute("tabindex")?0:t.tabIndex:e}(t);-1!==o&&function(t){return!(t.disabled||"INPUT"===t.tagName&&"hidden"===t.type||function(t){if("INPUT"!==t.tagName||"radio"!==t.type)return!1;if(!t.name)return!1;const e=e=>t.ownerDocument.querySelector('input[type="radio"]'+e);let n=e(`[name="${t.name}"]:checked`);return n||(n=e(`[name="${t.name}"]`)),n!==t}(t))}(t)&&(0===o?e.push(t):n.push({documentOrder:i,tabIndex:o,node:t}))}),n.sort((t,e)=>t.tabIndex===e.tabIndex?t.documentOrder-e.documentOrder:t.tabIndex-e.tabIndex).map(t=>t.node).concat(e)}function f(){return!0}var g=function(t){const{children:e,disableAutoFocus:n=!1,disableEnforceFocus:i=!1,disableRestoreFocus:o=!1,getTabbable:c=m,isEnabled:l=f,open:u}=t,h=r.useRef(),d=r.useRef(null),_=r.useRef(null),g=r.useRef(null),$=r.useRef(null),E=r.useRef(!1),y=r.useRef(null),b=Object(s.a)(e.ref,y),S=r.useRef(null);r.useEffect(()=>{u&&y.current&&(E.current=!n)},[n,u]),r.useEffect(()=>{if(!u||!y.current)return;const t=Object(a.a)(y.current);return y.current.contains(t.activeElement)||(y.current.hasAttribute("tabIndex")||y.current.setAttribute("tabIndex",-1),E.current&&y.current.focus()),()=>{o||(g.current&&g.current.focus&&(h.current=!0,g.current.focus()),g.current=null)}},[u]),r.useEffect(()=>{if(!u||!y.current)return;const t=Object(a.a)(y.current),e=e=>{const{current:n}=y;if(null!==n)if(t.hasFocus()&&!i&&l()&&!h.current){if(!n.contains(t.activeElement)){if(e&&$.current!==e.target||t.activeElement!==$.current)$.current=null;else if(null!==$.current)return;if(!E.current)return;let i=[];if(t.activeElement!==d.current&&t.activeElement!==_.current||(i=c(y.current)),i.length>0){var o,r;const t=Boolean((null==(o=S.current)?void 0:o.shiftKey)&&"Tab"===(null==(r=S.current)?void 0:r.key)),e=i[0],n=i[i.length-1];t?n.focus():e.focus()}else n.focus()}}else h.current=!1},n=e=>{S.current=e,!i&&l()&&"Tab"===e.key&&t.activeElement===y.current&&e.shiftKey&&(h.current=!0,_.current.focus())};t.addEventListener("focusin",e),t.addEventListener("keydown",n,!0);const o=setInterval(()=>{"BODY"===t.activeElement.tagName&&e()},50);return()=>{clearInterval(o),t.removeEventListener("focusin",e),t.removeEventListener("keydown",n,!0)}},[n,i,o,l,u,c]);const v=t=>{null===g.current&&(g.current=t.relatedTarget),E.current=!0};return Object(p.jsxs)(r.Fragment,{children:[Object(p.jsx)("div",{tabIndex:u?0:-1,onFocus:v,ref:d,"data-testid":"sentinelStart"}),r.cloneElement(e,{ref:b,onFocus:t=>{null===g.current&&(g.current=t.relatedTarget),E.current=!0,$.current=t.target;const n=e.props.onFocus;n&&n(t)}}),Object(p.jsx)("div",{tabIndex:u?0:-1,onFocus:v,ref:_,"data-testid":"sentinelEnd"})]})},$=n(217),E=n(127);const y=["children","classes","closeAfterTransition","component","components","componentsProps","container","disableAutoFocus","disableEnforceFocus","disableEscapeKeyDown","disablePortal","disableRestoreFocus","disableScrollLock","hideBackdrop","keepMounted","manager","onBackdropClick","onClose","onKeyDown","open","onTransitionEnter","onTransitionExited"];const b=new d.b,S=r.forwardRef((function(t,e){var n;const{children:_,classes:m,closeAfterTransition:f=!1,component:S="div",components:v={},componentsProps:C={},container:N,disableAutoFocus:T=!1,disableEnforceFocus:L=!1,disableEscapeKeyDown:z=!1,disablePortal:w=!1,disableRestoreFocus:O=!1,disableScrollLock:R=!1,hideBackdrop:A=!1,keepMounted:x=!1,manager:I=b,onBackdropClick:U,onClose:D,onKeyDown:P,open:M,onTransitionEnter:k,onTransitionExited:j}=t,G=Object(o.a)(t,y),[q,F]=r.useState(!0),B=r.useRef({}),W=r.useRef(null),H=r.useRef(null),V=Object(s.a)(H,e),K=function(t){return!!t.children&&t.children.props.hasOwnProperty("in")}(t),X=null==(n=t["aria-hidden"])||n,J=()=>(B.current.modalRef=H.current,B.current.mountNode=W.current,B.current),Y=()=>{I.mount(J(),{disableScrollLock:R}),H.current.scrollTop=0},Q=Object(c.a)(()=>{const t=function(t){return"function"==typeof t?t():t}(N)||Object(a.a)(W.current).body;I.add(J(),t),H.current&&Y()}),Z=r.useCallback(()=>I.isTopModal(J()),[I]),tt=Object(c.a)(t=>{W.current=t,t&&(M&&Z()?Y():Object(d.a)(H.current,X))}),et=r.useCallback(()=>{I.remove(J(),X)},[I,X]);r.useEffect(()=>()=>{et()},[et]),r.useEffect(()=>{M?Q():K&&f||et()},[M,et,K,f,Q]);const nt=Object(i.a)({},t,{classes:m,closeAfterTransition:f,disableAutoFocus:T,disableEnforceFocus:L,disableEscapeKeyDown:z,disablePortal:w,disableRestoreFocus:O,disableScrollLock:R,exited:q,hideBackdrop:A,keepMounted:x}),it=(t=>{const{open:e,exited:n,classes:i}=t,o={root:["root",!e&&n&&"hidden"]};return Object(u.a)(o,$.b,i)})(nt),ot=()=>{F(!1),k&&k()},rt=()=>{F(!0),j&&j(),f&&et()},st={};void 0===_.props.tabIndex&&(st.tabIndex="-1"),K&&(st.onEnter=Object(l.a)(ot,_.props.onEnter),st.onExited=Object(l.a)(rt,_.props.onExited));const at=v.Root||S,ct=Object(E.a)({elementType:at,externalSlotProps:C.root,externalForwardedProps:G,additionalProps:{ref:V,role:"presentation",onKeyDown:t=>{P&&P(t),"Escape"===t.key&&Z()&&(z||(t.stopPropagation(),D&&D(t,"escapeKeyDown")))}},className:it.root,ownerState:nt}),lt=v.Backdrop,ut=Object(E.a)({elementType:lt,externalSlotProps:C.backdrop,additionalProps:{"aria-hidden":!0,onClick:t=>{t.target===t.currentTarget&&(U&&U(t),D&&D(t,"backdropClick"))},open:M},ownerState:nt});return x||M||K&&!q?Object(p.jsx)(h.a,{ref:tt,container:N,disablePortal:w,children:Object(p.jsxs)(at,Object(i.a)({},ct,{children:[!A&<?Object(p.jsx)(lt,Object(i.a)({},ut)):null,Object(p.jsx)(g,{disableEnforceFocus:L,disableAutoFocus:T,disableRestoreFocus:O,isEnabled:Z,open:M,children:r.cloneElement(_,st)})]}))}):null}));e.a=S},function(t,e,n){"use strict";var i=n(1020);e.a=function(t=null){const e=Object(i.a)();return e&&(n=e,0!==Object.keys(n).length)?e:t;var n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return o}));var i=n(735);function o(t){const{theme:e,name:n,props:o}=t;return e&&e.components&&e.components[n]&&e.components[n].defaultProps?Object(i.a)(e.components[n].defaultProps,o):o}},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n(0);let o=0;const r=i.useId;function s(t){if(void 0!==r){const e=r();return null!=t?t:e}return function(t){const[e,n]=i.useState(t),r=t||e;return i.useEffect(()=>{null==e&&(o+=1,n("mui-"+o))},[e]),r}(t)}},,,,,,,,,,,,,,,,,function(t,e,n){var i,o,r;o=[e,n(31),n(751)],void 0===(r="function"==typeof(i=function(t,e,n){"use strict";var i=t.$$importsForInline$$||(t.$$importsForInline$$={}),o=e.Kind.CLASS,r=e.kotlin.text.repeat_94bcnn$,s=e.kotlin.collections.first_2p1efm$,a=e.kotlin.collections.filterNotNull_m3lr2h$,c=e.kotlin.collections.sorted_exjks8$,l=e.ensureNotNull,u=e.getPropertyCallableRef,h=e.kotlin.collections.LinkedHashMap_init_q3lmfv$,d=e.kotlin.collections.ArrayList_init_287e2$,p=e.kotlin.text.StringBuilder_init,_=e.Kind.OBJECT,m=e.kotlin.collections.emptySet_287e2$,f=e.kotlin.to_ujzrz7$,g=e.kotlin.collections.minus_q4559j$,$=e.kotlin.collections.toSet_7wnvza$,E=e.kotlin.collections.minus_khz7k3$,y=e.Kind.INTERFACE,b=e.kotlin.collections.collectionSizeOrDefault_ba2ldo$,S=e.kotlin.collections.mapCapacity_za3lpa$,v=e.kotlin.ranges.coerceAtLeast_dqglrj$,C=e.kotlin.collections.LinkedHashMap_init_bwtc7$,N=e.kotlin.collections.ArrayList_init_ww73n8$,T=e.kotlin.collections.addAll_ipc267$,L=e.kotlin.RuntimeException_init_pdl1vj$,z=e.kotlin.RuntimeException,w=e.hashCode,O=e.toString,R=n.org.kodein.type.TypeToken,A=e.equals,x=e.kotlin.Unit,I=e.getCallableRef,U=e.kotlin.Annotation,D=e.defineInlineFunction,P=e.wrapFunction,M=e.kotlin.IllegalStateException_init_pdl1vj$,k=e.kotlin.lazy_klfg04$,j=Object,G=e.throwCCE,q=e.kotlin.collections.joinToString_fmv235$,F=n.org.kodein.type.erasedOf_issdgt$,B=e.kotlin.collections.toList_7wnvza$,W=e.kotlin.collections.listOf_mh5how$,H=e.kotlin.collections.emptyList_287e2$,V=e.kotlin.Pair,K=(e.kotlin.collections.asSequence_7wnvza$,e.kotlin.sequences.map_z5avom$),X=e.kotlin.collections.LinkedHashSet_init_287e2$,J=e.kotlin.collections.MutableSet,Y=e.getKClass,Q=e.kotlin.collections.Set,Z=n.org.kodein.type.erasedComp_6wtypk$,tt=e.kotlin.collections.HashSet_init_287e2$,et=e.kotlin.collections.HashMap_init_q3lmfv$,nt=e.kotlin.Enum,it=e.throwISE,ot=e.kotlin.collections.Map,rt=e.kotlin.collections.plus_qloxvw$,st=e.kotlin.collections.plus_mydzjv$,at=e.kotlin.collections.checkIndexOverflow_za3lpa$,ct=e.kotlin.collections.asSequence_abgq59$,lt=e.kotlin.sequences.filter_euau3h$,ut=e.kotlin.Triple,ht=e.kotlin.sequences.flatMap_49vfel$,dt=e.kotlin.sequences.mapNotNull_qpz9h9$,pt=e.kotlin.sequences.toList_veqyi0$,_t=e.kotlin.collections.getOrNull_yzln2o$,mt=e.kotlin.collections.ArrayList_init_mqih57$,ft=e.kotlin.collections.HashMap_init_73mtqc$,gt=e.kotlin.collections.Collection;function $t(t,e){this.binding=t,this.fromModule=e}function Et(t,e,n){$t.call(this,t,e),this.tree=n}function yt(t,e,n,i,o){var u,_,m,f,g=(u=i,_=o,m=e,function(t,e,n){var i;for(i=n.iterator();i.hasNext();){var o=i.next(),a=_,c=m,l=u(o.key);if(t.append_pdl1vj$(r(" ",e)+l+" { "+a(s(o.value).binding)+" }"),c){var h,d=l.length-4|0;for(h=o.value.subList_vux9f0$(1,o.value.size).iterator();h.hasNext();){var p=h.next();t.append_pdl1vj$(r(" ",d)+"overrides "+a(p.binding))}}t.append_pdl1vj$("\n")}}),$=t.entries,E=h();for(f=$.iterator();f.hasNext();){var y,b=f.next(),S=s(b.value).fromModule,v=E.get_11rb$(S);if(null==v){var C=d();E.put_xwzc9p$(S,C),y=C}else y=v;y.add_11rb$(b)}var N,T,L=E,z=c(a(L.keys)),w=p();for(null!=(N=L.get_11rb$(null))&&g(w,n,N),T=z.iterator();T.hasNext();){var O=T.next();w.append_pdl1vj$(r(" ",n)+"module "+O+" {\n"),g(w,n+4|0,l(L.get_11rb$(O))),w.append_pdl1vj$(r(" ",n)+"}\n")}return w.toString()}function bt(t,e,n){return void 0===e&&(e=!1),void 0===n&&(n=8),yt(t,e,n,u("bindDescription",1,(function(t){return t.bindDescription})),u("description",1,(function(t){return t.description})))}function St(t,e,n){return void 0===e&&(e=!1),void 0===n&&(n=8),yt(t,e,n,u("bindFullDescription",1,(function(t){return t.bindFullDescription})),u("fullDescription",1,(function(t){return t.fullDescription})))}function vt(t){ze.call(this),this.all=t}function Ct(){It()}function Nt(){Tt=this}e.throwUPAE,Et.prototype=Object.create($t.prototype),Et.prototype.constructor=Et,vt.prototype=Object.create(ze.prototype),vt.prototype.constructor=vt,Ut.prototype=Object.create(Ae.prototype),Ut.prototype.constructor=Ut,Pt.prototype=Object.create(Ut.prototype),Pt.prototype.constructor=Pt,Mt.prototype=Object.create(Ut.prototype),Mt.prototype.constructor=Mt,jt.prototype=Object.create(z.prototype),jt.prototype.constructor=jt,Gt.prototype=Object.create(z.prototype),Gt.prototype.constructor=Gt,qt.prototype=Object.create(z.prototype),qt.prototype.constructor=qt,Ft.prototype=Object.create(z.prototype),Ft.prototype.constructor=Ft,hn.prototype=Object.create(un.prototype),hn.prototype.constructor=hn,yn.prototype=Object.create($n.prototype),Rn.prototype=Object.create(Qt.prototype),Rn.prototype.constructor=Rn,In.prototype=Object.create(wn.prototype),In.prototype.constructor=In,Dn.prototype=Object.create(nt.prototype),Dn.prototype.constructor=Dn,Mn.prototype=Object.create(Dn.prototype),Mn.prototype.constructor=Mn,Gn.prototype=Object.create(Dn.prototype),Gn.prototype.constructor=Gn,Bn.prototype=Object.create(Dn.prototype),Bn.prototype.constructor=Bn,li.prototype=Object.create(ci.prototype),li.prototype.constructor=li,ui.prototype=Object.create(ci.prototype),ui.prototype.constructor=ui,Ni.prototype=Object.create(Ei.prototype),Ni.prototype.constructor=Ni,$t.$metadata$={kind:o,simpleName:"DIDefining",interfaces:[]},Et.$metadata$={kind:o,simpleName:"DIDefinition",interfaces:[$t]},vt.$metadata$={kind:o,simpleName:"CopySpecs",interfaces:[ze]},Nt.prototype.keySet_l66p72$=function(t){return t.bindings.keys},Nt.$metadata$={kind:_,simpleName:"All",interfaces:[Ct]};var Tt=null;function Lt(){zt=this}Lt.prototype.keySet_l66p72$=function(t){return m()},Lt.$metadata$={kind:_,simpleName:"None",interfaces:[Ct]};var zt=null;function wt(){Ot=this}wt.prototype.keySet_l66p72$=function(t){var e,n=t.bindings,i=h();for(e=n.entries.iterator();e.hasNext();){var o=e.next();null==s(o.value).binding.copier&&i.put_xwzc9p$(o.key,o.value)}return i.keys},wt.$metadata$={kind:_,simpleName:"NonCached",interfaces:[Ct]};var Ot=null;function Rt(){return null===Ot&&new wt,Ot}function At(){xt=this}At.prototype.invoke_agefms$=function(t){var e=new Pt;return t(e),e},At.prototype.allBut_g0iejo$=function(t){var e=new Mt;return t(e),e},At.prototype.specsToKeys_yeckkp$=function(t,e){var n=t.find_f45sx$(e);if(n.isEmpty())throw new qt(e,"No binding found that match this search: "+e);if(!e.all&&n.size>1){var i,o="There were "+n.size+" matches for this search: "+e+"\n",r=v(S(b(n,10)),16),s=C(r);for(i=n.iterator();i.hasNext();){var a=i.next(),c=f(a.first,a.second);s.put_xwzc9p$(c.first,c.second)}throw new qt(e,o+bt(s,!1))}var l,u=N(b(n,10));for(l=n.iterator();l.hasNext();){var h=l.next();u.add_11rb$(h.first)}return u},At.$metadata$={kind:_,simpleName:"Companion",interfaces:[]};var xt=null;function It(){return null===xt&&new At,xt}function Ut(){Ae.call(this),this.copySpecs_8be2vx$=d(),this.ignoreSpecs_8be2vx$=d(),this.copy=new Dt(this.copySpecs_8be2vx$),this.ignore=new Dt(this.ignoreSpecs_8be2vx$)}function Dt(t){this.specs_0=t}function Pt(){Ut.call(this)}function Mt(){Ut.call(this)}function kt(){re()}function jt(t){L(t,this),this.name="DI$DependencyLoopException"}function Gt(t,e){L(e,this),this.key=t,this.name="DI$NotFoundException"}function qt(t,e){L(e,this),this.search=t,this.name="DI$NoResultException"}function Ft(t){L(t,this),this.name="DI$OverridingException"}function Bt(t,e,n,i){this.contextType=t,this.argType=e,this.type=n,this.tag=i,this._hashCode_0=0}function Wt(){}function Ht(){}function Vt(t){this.contextType_sf68tc$_0=t}function Kt(){}function Xt(t,e){this.contextType_5c2o2j$_0=t,this.scope_p22geo$_0=e}function Jt(){}function Yt(){}function Qt(){}function Zt(){}function te(){}function ee(){}function ne(t,e,n){void 0===t&&(t=!1),void 0===e&&(e=""),this.allowSilentOverride=t,this.prefix=e,this.init=n,this._name_0=null}function ie(){oe=this,this.defaultFullDescriptionOnError=!1,this.defaultFullContainerTreeOnError=!1}Dt.prototype.the_nj1dmr$=function(t){var e=new vt(!1);return t.apply_f45sx$(e),this.specs_0.add_11rb$(e),e},Dt.prototype.all_b5lpbx$=function(t){var e=new vt(!0);return t.apply_f45sx$(e),this.specs_0.add_11rb$(e),e},Dt.$metadata$={kind:o,simpleName:"Sentence",interfaces:[]},Ut.$metadata$={kind:o,simpleName:"BaseDSL",interfaces:[Ct,Ae]},Pt.prototype.keySet_l66p72$=function(t){var e,n=this.ignoreSpecs_8be2vx$,i=d();for(e=n.iterator();e.hasNext();){var o=e.next(),r=It().specsToKeys_yeckkp$(t,o);T(i,r)}var s,a=i,c=this.copySpecs_8be2vx$,l=d();for(s=c.iterator();s.hasNext();){var u=s.next(),h=It().specsToKeys_yeckkp$(t,u);T(l,h)}return $(g(l,a))},Pt.$metadata$={kind:o,simpleName:"DSL",interfaces:[Ut]},Mt.prototype.keySet_l66p72$=function(t){var e,n=this.copySpecs_8be2vx$,i=d();for(e=n.iterator();e.hasNext();){var o=e.next(),r=It().specsToKeys_yeckkp$(t,o);T(i,r)}var s,a=i,c=this.ignoreSpecs_8be2vx$,l=d();for(s=c.iterator();s.hasNext();){var u=s.next(),h=It().specsToKeys_yeckkp$(t,u);T(l,h)}var p=g(l,a);return E(t.bindings.keys,p)},Mt.$metadata$={kind:o,simpleName:"AllButDSL",interfaces:[Ut]},Ct.$metadata$={kind:y,simpleName:"Copy",interfaces:[]},jt.$metadata$={kind:o,simpleName:"DependencyLoopException",interfaces:[z]},Gt.$metadata$={kind:o,simpleName:"NotFoundException",interfaces:[z]},qt.$metadata$={kind:o,simpleName:"NoResultException",interfaces:[z]},Ft.$metadata$={kind:o,simpleName:"OverridingException",interfaces:[z]},Object.defineProperty(kt.prototype,"di",{configurable:!0,get:function(){return this}}),Bt.prototype.hashCode=function(){var t,e;return 0===this._hashCode_0&&(this._hashCode_0=w(this.contextType),this._hashCode_0=(31*this._hashCode_0|0)+w(this.argType)|0,this._hashCode_0=29*w(this.type)|0,this._hashCode_0=(23*this._hashCode_0|0)+(null!=(e=null!=(t=this.tag)?w(t):null)?e:0)|0),this._hashCode_0},Bt.prototype.toString=function(){return this.description},Bt.prototype.appendDescription_0=function(t,e){null!=this.tag&&t.append_pdl1vj$(' tagged "'+O(this.tag)+'"'),A(this.contextType,R.Companion.Any)||t.append_pdl1vj$(" on context "+e(this.contextType)),A(this.argType,R.Companion.Unit)||t.append_pdl1vj$(", with argument "+e(this.argType))},Object.defineProperty(Bt.prototype,"bindDescription",{configurable:!0,get:function(){var t=p();return t.append_pdl1vj$("bind<"+this.type.simpleDispString()+">"),null!=this.tag&&t.append_pdl1vj$('(tag = "'+O(this.tag)+'")'),t.toString()}}),Object.defineProperty(Bt.prototype,"bindFullDescription",{configurable:!0,get:function(){var t=p();return t.append_pdl1vj$("bind<"+this.type.qualifiedDispString()+">"),null!=this.tag&&t.append_pdl1vj$('(tag = "'+O(this.tag)+'")'),t.toString()}}),Object.defineProperty(Bt.prototype,"description",{configurable:!0,get:function(){var t=p();return t.append_pdl1vj$(this.type.simpleDispString()),this.appendDescription_0(t,I("simpleDispString",(function(t){return t.simpleDispString()}))),t.toString()}}),Object.defineProperty(Bt.prototype,"internalDescription",{configurable:!0,get:function(){return"(context: "+this.contextType.simpleDispString()+", arg: "+this.argType.simpleDispString()+", type: "+this.type.simpleDispString()+", tag: "+O(this.tag)+")"}}),Object.defineProperty(Bt.prototype,"fullDescription",{configurable:!0,get:function(){var t=p();return t.append_pdl1vj$(this.type.qualifiedDispString()),this.appendDescription_0(t,I("qualifiedDispString",(function(t){return t.qualifiedDispString()}))),t.toString()}}),Bt.$metadata$={kind:o,simpleName:"Key",interfaces:[]},Bt.prototype.component1=function(){return this.contextType},Bt.prototype.component2=function(){return this.argType},Bt.prototype.component3=function(){return this.type},Bt.prototype.component4=function(){return this.tag},Bt.prototype.copy_x92200$=function(t,e,n,i){return new Bt(void 0===t?this.contextType:t,void 0===e?this.argType:e,void 0===n?this.type:n,void 0===i?this.tag:i)},Bt.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.contextType,t.contextType)&&e.equals(this.argType,t.argType)&&e.equals(this.type,t.type)&&e.equals(this.tag,t.tag)},Wt.$metadata$={kind:o,simpleName:"DIDsl",interfaces:[U]},Object.defineProperty(Vt.prototype,"contextType",{get:function(){return this.contextType_sf68tc$_0}}),Object.defineProperty(Vt.prototype,"explicitContext",{configurable:!0,get:function(){return!0}}),Vt.$metadata$={kind:o,simpleName:"ImplWithContext",interfaces:[Ht]},Kt.$metadata$={kind:y,simpleName:"WithScope",interfaces:[Ht]},Object.defineProperty(Xt.prototype,"contextType",{get:function(){return this.contextType_5c2o2j$_0}}),Object.defineProperty(Xt.prototype,"scope",{get:function(){return this.scope_p22geo$_0}}),Object.defineProperty(Xt.prototype,"explicitContext",{configurable:!0,get:function(){return!0}}),Xt.$metadata$={kind:o,simpleName:"ImplWithScope",interfaces:[Kt]},Ht.$metadata$={kind:y,simpleName:"BindBuilder",interfaces:[]},Yt.$metadata$={kind:y,simpleName:"TypeBinder",interfaces:[]},Qt.prototype.to_89agyf$=D("Kodein-kodein-di.org.kodein.di.DI.Builder.DelegateBinder.to_89agyf$",P((function(){var n=e.getReifiedTypeParameterKType,i=t.$$importsForInline$$["Kaverit-kaverit"].org.kodein.type.typeToken_saj79j$,o=t.$$importsForInline$$["Kaverit-kaverit"].org.kodein.type.TypeToken,r=e.throwCCE;return function(t,s,a){var c;void 0===a&&(a=null),this.To_3qgx04$(e.isType(c=i(n(t)),o)?c:r(),a)}}))),Qt.$metadata$={kind:o,simpleName:"DelegateBinder",interfaces:[]},Zt.$metadata$={kind:y,simpleName:"DirectBinder",interfaces:[]},te.$metadata$={kind:y,simpleName:"ConstantBinder",interfaces:[]},Jt.prototype.Bind_m0ro4c$=function(t,e,n,i){void 0===t&&(t=null),void 0===e&&(e=null),i?i(t,e,n):this.Bind_m0ro4c$$default(t,e,n)},Jt.prototype.BindSet_m0ro4c$=function(t,e,n,i){void 0===t&&(t=null),void 0===e&&(e=null),i?i(t,e,n):this.BindSet_m0ro4c$$default(t,e,n)},Jt.prototype.Bind_exja01$=function(t,e,n,i){return void 0===e&&(e=null),void 0===n&&(n=null),i?i(t,e,n):this.Bind_exja01$$default(t,e,n)},Jt.prototype.Bind_b6zv6g$=function(t,e,n){return void 0===t&&(t=null),void 0===e&&(e=null),n?n(t,e):this.Bind_b6zv6g$$default(t,e)},Jt.prototype.constant_obdoaf$=function(t,e,n){return void 0===e&&(e=null),n?n(t,e):this.constant_obdoaf$$default(t,e)},Jt.prototype.Delegate_exja01$=function(t,e,n,i){return void 0===e&&(e=null),void 0===n&&(n=null),i?i(t,e,n):this.Delegate_exja01$$default(t,e,n)},Jt.prototype.import_dwjwn5$=function(t,e,n){void 0===e&&(e=!1),n?n(t,e):this.import_dwjwn5$$default(t,e)},Jt.prototype.importAll_lbhl2u$=function(t,e,n){void 0===e&&(e=!1),n?n(t,e):this.importAll_lbhl2u$$default(t,e)},Jt.prototype.importAll_k7it48$=function(t,e,n){void 0===e&&(e=!1),n?n(t,e):this.importAll_k7it48$$default(t,e)},Jt.prototype.importOnce_dwjwn5$=function(t,e,n){void 0===e&&(e=!1),n?n(t,e):this.importOnce_dwjwn5$$default(t,e)},Jt.$metadata$={kind:y,simpleName:"Builder",interfaces:[Kt,Ht]},ee.prototype.extend_nltjgj$=function(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=Rt()),i?i(t,e,n):this.extend_nltjgj$$default(t,e,n)},ee.prototype.extend_lto1om$=function(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=Rt()),i?i(t,e,n):this.extend_lto1om$$default(t,e,n)},ee.$metadata$={kind:y,simpleName:"MainBuilder",interfaces:[Jt]},Object.defineProperty(ne.prototype,"name",{configurable:!0,get:function(){var t;if(null==(t=this._name_0))throw M("module must have a name.");return t}}),ne.prototype.getValue_n5byny$=function(t,e){var n=this._name_0;return null!=n&&0!==n.length||(this._name_0=e.callableName),this},ne.$metadata$={kind:o,simpleName:"Module",interfaces:[]},ne.prototype.component1=function(){return this.allowSilentOverride},ne.prototype.component2=function(){return this.prefix},ne.prototype.component3=function(){return this.init},ne.prototype.copy_im9gxj$=function(t,e,n){return new ne(void 0===t?this.allowSilentOverride:t,void 0===e?this.prefix:e,void 0===n?this.init:n)},ne.prototype.toString=function(){return"Module(allowSilentOverride="+e.toString(this.allowSilentOverride)+", prefix="+e.toString(this.prefix)+", init="+e.toString(this.init)+")"},ne.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*t+e.hashCode(this.allowSilentOverride)|0)+e.hashCode(this.prefix)|0)+e.hashCode(this.init)|0},ne.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.allowSilentOverride,t.allowSilentOverride)&&e.equals(this.prefix,t.prefix)&&e.equals(this.init,t.init)},ie.prototype.invoke_ys71a$=function(t,e){return void 0===t&&(t=!1),si(t,e)},ie.prototype.lazy_ys71a$=function(t,e){return void 0===t&&(t=!1),new bi((n=t,i=e,function(){return si(n,i)}));var n,i},ie.prototype.direct_ys71a$=function(t,e){return void 0===t&&(t=!1),fe(si(t,e))},ie.prototype.withDelayedCallbacks_ys71a$=function(t,e){return void 0===t&&(t=!1),oi().withDelayedCallbacks_ys71a$(t,e)},ie.prototype.from_gozf9$=function(t){return re().invoke_ys71a$(void 0,(e=t,function(t){var n;for(n=e.iterator();n.hasNext();){var i=n.next();t.import_dwjwn5$(i)}return x}));var e},ie.$metadata$={kind:_,simpleName:"Companion",interfaces:[]};var oe=null;function re(){return null===oe&&new ie,oe}function se(){he()}function ae(t,e){this.type_880btc$_0=t,this.value_snc23r$_0=e}function ce(t,e){this.type_brgjfd$_0=t,this.getValue=e,this.value_a2ifw0$_0=k(this.getValue)}function le(){ue=this}kt.$metadata$={kind:y,simpleName:"DI",interfaces:[me]},Object.defineProperty(ae.prototype,"type",{get:function(){return this.type_880btc$_0}}),Object.defineProperty(ae.prototype,"value",{get:function(){return this.value_snc23r$_0}}),ae.$metadata$={kind:o,simpleName:"Value",interfaces:[se]},ae.prototype.component1=function(){return this.type},ae.prototype.component2=function(){return this.value},ae.prototype.copy_du960g$=function(t,e){return new ae(void 0===t?this.type:t,void 0===e?this.value:e)},ae.prototype.toString=function(){return"Value(type="+e.toString(this.type)+", value="+e.toString(this.value)+")"},ae.prototype.hashCode=function(){var t=0;return t=31*(t=31*t+e.hashCode(this.type)|0)+e.hashCode(this.value)|0},ae.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.type,t.type)&&e.equals(this.value,t.value)},Object.defineProperty(ce.prototype,"type",{get:function(){return this.type_brgjfd$_0}}),Object.defineProperty(ce.prototype,"value",{configurable:!0,get:function(){return this.value_a2ifw0$_0.value}}),ce.$metadata$={kind:o,simpleName:"Lazy",interfaces:[se]},le.prototype.invoke_np530x$=function(t,e){return new ae(t,e)},le.prototype.invoke_ided5j$=function(t,e){return new ce(t,e)},le.$metadata$={kind:_,simpleName:"Companion",interfaces:[]};var ue=null;function he(){return null===ue&&new le,ue}function de(){pe=this,this.AnyDIContext=he().invoke_np530x$(R.Companion.Any,new j)}se.$metadata$={kind:y,simpleName:"DIContext",interfaces:[]},de.$metadata$={kind:_,simpleName:"Contexes",interfaces:[]};var pe=null;function _e(){return(null===pe&&new de,pe).AnyDIContext}function me(){}function fe(t){return new Ni(t.di.container,t.diContext)}function ge(t,e,n){void 0===n&&(n=null),this._base_0=t,this.diContext_97jwkf$_0=e,this.diTrigger_rkw6dm$_0=n}function $e(t,e,n){return void 0===e&&(e=t.diContext),void 0===n&&(n=t.diTrigger),function(t,e,n,i){return void 0===e&&(e=t.diContext),void 0===n&&(n=t.diTrigger),i=i||Object.create(ge.prototype),ge.call(i,t.di,e,n),i}(t,e,n)}function Ee(t,e){return function(){return e(t())}}function ye(){}function be(){return x}function Se(){return x}function ve(){return x}function Ce(){}function Ne(){}function Te(){}function Le(){}function ze(t,e,n,i){void 0===t&&(t=null),void 0===e&&(e=null),void 0===n&&(n=null),void 0===i&&(i=Re()),this.contextType=t,this.argType=e,this.type=n,this.tag=i}function we(){Oe=this}Object.defineProperty(me.prototype,"diContext",{configurable:!0,get:function(){return _e()}}),Object.defineProperty(me.prototype,"diTrigger",{configurable:!0,get:function(){return null}}),me.$metadata$={kind:y,simpleName:"DIAware",interfaces:[]},Object.defineProperty(ge.prototype,"diContext",{get:function(){return this.diContext_97jwkf$_0}}),Object.defineProperty(ge.prototype,"diTrigger",{get:function(){return this.diTrigger_rkw6dm$_0}}),Object.defineProperty(ge.prototype,"di",{configurable:!0,get:function(){return this}}),Object.defineProperty(ge.prototype,"container",{configurable:!0,get:function(){return this._base_0.container}}),ge.$metadata$={kind:o,simpleName:"DIWrapper",interfaces:[kt]},ye.prototype.factory_dht9zw$=function(t,e,n,i){return void 0===n&&(n=0),i?i(t,e,n):this.factory_dht9zw$$default(t,e,n)},ye.prototype.factoryOrNull_dht9zw$=function(t,e,n,i){return void 0===n&&(n=0),i?i(t,e,n):this.factoryOrNull_dht9zw$$default(t,e,n)},ye.prototype.allFactories_dht9zw$=function(t,e,n,i){return void 0===n&&(n=0),i?i(t,e,n):this.allFactories_dht9zw$$default(t,e,n)},ye.prototype.provider_ag9259$$default=function(t,e,n){return Ee(be,this.factory_dht9zw$(t,e))},ye.prototype.provider_ag9259$=function(t,e,n,i){return void 0===n&&(n=0),i?i(t,e,n):this.provider_ag9259$$default(t,e,n)},ye.prototype.providerOrNull_ag9259$$default=function(t,e,n){var i;return null!=(i=this.factoryOrNull_dht9zw$(t,e))?Ee(Se,i):null},ye.prototype.providerOrNull_ag9259$=function(t,e,n,i){return void 0===n&&(n=0),i?i(t,e,n):this.providerOrNull_ag9259$$default(t,e,n)},ye.prototype.allProviders_ag9259$$default=function(t,e,n){var i,o=this.allFactories_dht9zw$(t,e),r=N(b(o,10));for(i=o.iterator();i.hasNext();){var s=i.next();r.add_11rb$(Ee(ve,s))}return r},ye.prototype.allProviders_ag9259$=function(t,e,n,i){return void 0===n&&(n=0),i?i(t,e,n):this.allProviders_ag9259$$default(t,e,n)},Ce.prototype.bind_qpmgza$=function(t,e,n,i,o){void 0===n&&(n=null),void 0===i&&(i=null),o?o(t,e,n,i):this.bind_qpmgza$$default(t,e,n,i)},Ce.prototype.extend_5tbdl8$=function(t,e,n,i){void 0===e&&(e=!1),void 0===n&&(n=m()),i?i(t,e,n):this.extend_5tbdl8$$default(t,e,n)},Ce.prototype.subBuilder_dqye30$=function(t,e,n){return void 0===t&&(t=!1),void 0===e&&(e=!1),n?n(t,e):this.subBuilder_dqye30$$default(t,e)},Ce.$metadata$={kind:y,simpleName:"Builder",interfaces:[]},ye.$metadata$={kind:y,simpleName:"DIContainer",interfaces:[]},Ne.prototype.find_9mbcap$=function(t,e,n,i){return void 0===e&&(e=0),void 0===n&&(n=!1),i?i(t,e,n):this.find_9mbcap$$default(t,e,n)},Ne.$metadata$={kind:y,simpleName:"DITree",interfaces:[]},Te.$metadata$={kind:y,simpleName:"DirectDIAware",interfaces:[]},Object.defineProperty(Le.prototype,"di",{configurable:!0,get:function(){return this.lazy}}),Le.prototype.Factory_61z0e$=function(t,e,n,i){return void 0===n&&(n=null),i?i(t,e,n):this.Factory_61z0e$$default(t,e,n)},Le.prototype.FactoryOrNull_61z0e$=function(t,e,n,i){return void 0===n&&(n=null),i?i(t,e,n):this.FactoryOrNull_61z0e$$default(t,e,n)},Le.prototype.Provider_ohrpre$=function(t,e,n){return void 0===e&&(e=null),n?n(t,e):this.Provider_ohrpre$$default(t,e)},Le.prototype.Provider_aqo1vk$=function(t,e,n,i,o){return void 0===n&&(n=null),o?o(t,e,n,i):this.Provider_aqo1vk$$default(t,e,n,i)},Le.prototype.ProviderOrNull_ohrpre$=function(t,e,n){return void 0===e&&(e=null),n?n(t,e):this.ProviderOrNull_ohrpre$$default(t,e)},Le.prototype.ProviderOrNull_aqo1vk$=function(t,e,n,i,o){return void 0===n&&(n=null),o?o(t,e,n,i):this.ProviderOrNull_aqo1vk$$default(t,e,n,i)},Le.prototype.Instance_ohrpre$=function(t,e,n){return void 0===e&&(e=null),n?n(t,e):this.Instance_ohrpre$$default(t,e)},Le.prototype.Instance_331fb8$=function(t,e,n,i,o){return void 0===n&&(n=null),o?o(t,e,n,i):this.Instance_331fb8$$default(t,e,n,i)},Le.prototype.InstanceOrNull_ohrpre$=function(t,e,n){return void 0===e&&(e=null),n?n(t,e):this.InstanceOrNull_ohrpre$$default(t,e)},Le.prototype.InstanceOrNull_331fb8$=function(t,e,n,i,o){return void 0===n&&(n=null),o?o(t,e,n,i):this.InstanceOrNull_331fb8$$default(t,e,n,i)},Le.$metadata$={kind:y,simpleName:"DirectDIBase",interfaces:[Te]},we.$metadata$={kind:_,simpleName:"NoDefinedTag",interfaces:[]};var Oe=null;function Re(){return null===Oe&&new we,Oe}function Ae(){}function xe(){Pe()}function Ie(){De=this}function Ue(t){this.closure$f=t}ze.prototype.toString=function(){var t=d();if(null!=this.contextType){var e,n="contextType="+O(null!=(e=this.contextType)?e.simpleDispString():null);t.add_11rb$(n)}if(null!=this.argType){var i,o="argType="+O(null!=(i=this.argType)?i.simpleDispString():null);t.add_11rb$(o)}if(null!=this.type){var r,s="type="+O(null!=(r=this.type)?r.simpleDispString():null);t.add_11rb$(s)}if(!A(this.tag,Re())){var a="tag="+O(this.tag);t.add_11rb$(a)}return"["+q(t,", ")+"]"},ze.$metadata$={kind:o,simpleName:"SearchSpecs",interfaces:[]},Ue.prototype.apply_f45sx$=function(t){this.closure$f(t)},Ue.$metadata$={kind:o,interfaces:[xe]},Ie.prototype.invoke_vlu7bh$=function(t){return new Ue(t)},Ie.$metadata$={kind:_,simpleName:"Companion",interfaces:[]};var De=null;function Pe(){return null===De&&new Ie,De}function Me(t,e){void 0===e&&(e=null),this.type=t,this.tag=e}function ke(t,e){return function(){return e(t())}}function je(){}function Ge(){}function qe(){Fe=this}xe.$metadata$={kind:y,simpleName:"Spec",interfaces:[]},Me.prototype.apply_f45sx$=function(t){t.type=this.type,null!=this.tag&&(t.tag=this.tag)},Me.$metadata$={kind:o,simpleName:"Binding",interfaces:[xe]},Ae.prototype.with_hqw29d$=function(t,e){return e.apply_f45sx$(t),t},Ae.prototype.and_hqw29d$=function(t,e){return e.apply_f45sx$(t),t},Ae.prototype.Context_q3o5v9$=function(t){return Pe().invoke_vlu7bh$((e=t,function(t){return t.contextType=e,x}));var e},Ae.prototype.Argument_q3o5v9$=function(t){return Pe().invoke_vlu7bh$((e=t,function(t){return t.argType=e,x}));var e},Ae.prototype.tag_s8jyv4$=function(t){return Pe().invoke_vlu7bh$((e=t,function(t){return t.tag=e,x}));var e},Ae.$metadata$={kind:o,simpleName:"SearchDSL",interfaces:[]},je.$metadata$={kind:y,simpleName:"WithContext",interfaces:[]},Ge.$metadata$={kind:y,simpleName:"BindingDI",interfaces:[je,Ci]},Object.defineProperty(qe.prototype,"type",{configurable:!0,get:function(){return R.Companion.Any}}),Object.defineProperty(qe.prototype,"value",{configurable:!0,get:function(){return Be()}}),qe.$metadata$={kind:_,simpleName:"ErasedContext",interfaces:[se]};var Fe=null;function Be(){return null===Fe&&new qe,Fe}function We(){}function He(t){this._di_0=t}function Ve(){return x}function Ke(){return x}function Xe(){}function Je(){}function Ye(){en()}function Qe(){tn=this}function Ze(t){this.closure$f=t}We.$metadata$={kind:y,simpleName:"NoArgBindingDI",interfaces:[je,Ci]},He.prototype.overriddenProvider=function(){return ke(Ve,this._di_0.overriddenFactory())},He.prototype.overriddenProviderOrNull=function(){var t;return null!=(t=this._di_0.overriddenFactoryOrNull())?ke(Ke,t):null},He.prototype.overriddenInstance=function(){return this.overriddenProvider()()},He.prototype.overriddenInstanceOrNull=function(){var t;return null!=(t=this.overriddenProviderOrNull())?t():null},Object.defineProperty(He.prototype,"container",{configurable:!0,get:function(){return this._di_0.container}}),Object.defineProperty(He.prototype,"di",{configurable:!0,get:function(){return this._di_0.di}}),Object.defineProperty(He.prototype,"directDI",{configurable:!0,get:function(){return this._di_0.directDI}}),Object.defineProperty(He.prototype,"lazy",{configurable:!0,get:function(){return this._di_0.lazy}}),He.prototype.Factory_61z0e$$default=function(t,e,n){return this._di_0.Factory_61z0e$$default(t,e,n)},He.prototype.FactoryOrNull_61z0e$$default=function(t,e,n){return this._di_0.FactoryOrNull_61z0e$$default(t,e,n)},He.prototype.Instance_ohrpre$$default=function(t,e){return this._di_0.Instance_ohrpre$$default(t,e)},He.prototype.Instance_331fb8$$default=function(t,e,n,i){return this._di_0.Instance_331fb8$$default(t,e,n,i)},He.prototype.InstanceOrNull_ohrpre$$default=function(t,e){return this._di_0.InstanceOrNull_ohrpre$$default(t,e)},He.prototype.InstanceOrNull_331fb8$$default=function(t,e,n,i){return this._di_0.InstanceOrNull_331fb8$$default(t,e,n,i)},He.prototype.On_agur4l$=function(t){return this._di_0.On_agur4l$(t)},He.prototype.Provider_ohrpre$$default=function(t,e){return this._di_0.Provider_ohrpre$$default(t,e)},He.prototype.Provider_aqo1vk$$default=function(t,e,n,i){return this._di_0.Provider_aqo1vk$$default(t,e,n,i)},He.prototype.ProviderOrNull_ohrpre$$default=function(t,e){return this._di_0.ProviderOrNull_ohrpre$$default(t,e)},He.prototype.ProviderOrNull_aqo1vk$$default=function(t,e,n,i){return this._di_0.ProviderOrNull_aqo1vk$$default(t,e,n,i)},Object.defineProperty(He.prototype,"context",{configurable:!0,get:function(){return this._di_0.context}}),He.$metadata$={kind:o,simpleName:"NoArgBindingDIWrap",interfaces:[We,je,Ci]},Xe.$metadata$={kind:y,simpleName:"Binding",interfaces:[]},Je.prototype.factoryFullName=function(){return this.factoryName()},Object.defineProperty(Je.prototype,"scope",{configurable:!0,get:function(){return null}}),Object.defineProperty(Je.prototype,"description",{configurable:!0,get:function(){var t,n=A(this.argType,R.Companion.Unit)?"":this.argType.simpleDispString()+" -> ",i=e.isType(this.scope,gn)?null:this.scope;return(null!=(t=null!=i?"scoped("+F(i).simpleDispString()+").":null)?t:A(this.contextType,R.Companion.Any)?"":"contexted<"+this.contextType.simpleDispString()+">().")+this.factoryName()+" { "+n+this.createdType.simpleDispString()+" }"}}),Object.defineProperty(Je.prototype,"fullDescription",{configurable:!0,get:function(){var t,n=A(this.argType,R.Companion.Unit)?"":this.argType.qualifiedDispString()+" -> ",i=e.isType(this.scope,gn)?null:this.scope;return(null!=(t=null!=i?"scoped("+F(i).qualifiedDispString()+").":null)?t:A(this.contextType,R.Companion.Any)?"":"contexted<"+this.contextType.qualifiedDispString()+">().")+this.factoryFullName()+" { "+n+this.createdType.qualifiedDispString()+" }"}}),Ze.prototype.copy_kp8gfu$=function(t){return this.closure$f(t)},Ze.$metadata$={kind:o,interfaces:[Ye]},Qe.prototype.invoke_dxwymx$=function(t){return new Ze(t)},Qe.$metadata$={kind:_,simpleName:"Companion",interfaces:[]};var tn=null;function en(){return null===tn&&new Qe,tn}function nn(){}function on(t,e){this.current=t,this.next=e}function rn(){}function sn(){an=this}Ye.$metadata$={kind:y,simpleName:"Copier",interfaces:[]},Object.defineProperty(Je.prototype,"copier",{configurable:!0,get:function(){return null}}),Object.defineProperty(Je.prototype,"supportSubTypes",{configurable:!0,get:function(){return!1}}),Je.$metadata$={kind:y,simpleName:"DIBinding",interfaces:[Xe]},Object.defineProperty(nn.prototype,"argType",{configurable:!0,get:function(){return R.Companion.Unit}}),nn.$metadata$={kind:y,simpleName:"NoArgDIBinding",interfaces:[Je]},on.$metadata$={kind:o,simpleName:"Reference",interfaces:[]},on.prototype.component1=function(){return this.current},on.prototype.component2=function(){return this.next},on.prototype.copy_wamhsy$=function(t,e){return new on(void 0===t?this.current:t,void 0===e?this.next:e)},on.prototype.toString=function(){return"Reference(current="+e.toString(this.current)+", next="+e.toString(this.next)+")"},on.prototype.hashCode=function(){var t=0;return t=31*(t=31*t+e.hashCode(this.current)|0)+e.hashCode(this.next)|0},on.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.current,t.current)&&e.equals(this.next,t.next)},rn.$metadata$={kind:y,simpleName:"RefMaker",interfaces:[]},sn.prototype.make_9ce4rd$=function(t){var e,n=t();return new on(n,(e=n,function(){return e}))},sn.$metadata$={kind:_,simpleName:"SingletonReference",interfaces:[rn]};var an=null;function cn(){return null===an&&new sn,an}function ln(){}function un(){}function hn(){un.call(this),this._cache_0=Ti(),this._lock_0=new j}function dn(){}function pn(t,e,n){this.contextType_7ycxqf$_0=t,this.scopeType_w1u01g$_0=e,this.t_0=n}function _n(t,e,n){var i;return null!=(i=t.translate_hxpgzk$(e,n))?he().invoke_np530x$(t.scopeType,i):null}function mn(t,e){this.src=t,this.dst=e}function fn(){}function gn(){this._registry_0=new hn}function $n(){}function En(t){this._base_0=t}function yn(t,e,n){$n.call(this),this.contextType_oye6mj$_0=t,this._elementType_0=e,this.createdType_vf379q$_0=n,this.set_84his2$_0=X(),this.copier_lj1aum$_0=en().invoke_dxwymx$(SetBinding$copier$lambda(this))}function bn(t,e,n,i){this.contextType_alikkm$_0=t,this.argType_1bz55r$_0=e,this.createdType_p958nh$_0=n,this.creator_0=i}function Sn(t,e){this.scopeId=t,this.arg=e}function vn(t,e,n,i,o,r,s,a){void 0===r&&(r=null),void 0===s&&(s=!0),this.scope_bsg5s9$_0=t,this.contextType_hs4ak4$_0=e,this.explicitContext_0=n,this.argType_hsadnx$_0=i,this.createdType_wfqymz$_0=o,this.sync=s,this.creator_0=a,this._refMaker_0=null!=r?r:cn(),this._scopeId_0=new j,this.copier_5poue3$_0=en().invoke_dxwymx$(Multiton$copier$lambda(this))}function Cn(t,e,n){this.contextType_vxra1v$_0=t,this.createdType_ha4lz0$_0=e,this.creator=n}function Nn(t,e,n,i,o,r,s){var a;void 0===o&&(o=null),void 0===r&&(r=!0),this.scope_ssd95m$_0=t,this.contextType_rdxkor$_0=e,this.explicitContext_0=n,this.createdType_cqawlw$_0=i,this.sync=r,this.creator=s,this._refMaker_0=null!=o?o:cn(),this._scopeKey_0=new Sn(new j,x),this.copier_o00oac$_0=en().invoke_dxwymx$((a=this,function(t){return new Nn(a.scope,a.contextType,a.explicitContext_0,a.createdType,a._refMaker_0,a.sync,a.creator)}))}function Tn(t,e){return function(){return t._refMaker_0.make_9ce4rd$(function(t,e){return function(){return e.creator(new He(t))}}(e,t))}}function Ln(t,e,n){this.createdType_qwu2v6$_0=e,this.creator=n,this.contextType_c97esb$_0=R.Companion.Any,this._instance_0=null,this._lock_0=new j;var i=new Bt(R.Companion.Any,R.Companion.Unit,this.createdType,null);t.onReady_qoc8km$(EagerSingleton_init$lambda(i,this)),this.copier_bupcim$_0=en().invoke_dxwymx$(EagerSingleton$copier$lambda(this))}function zn(t,e){this.createdType_nqy6ah$_0=t,this.instance=e,this.contextType_wmj7ls$_0=R.Companion.Any}function wn(t,e,n,i){this.moduleName_0=t,this.prefix_0=e,this.importedModules_8be2vx$=n,this.containerBuilder_6qo8ee$_0=i,this.contextType_gw7d91$_0=R.Companion.Any}function On(t,e,n,i){this.$outer=t,this.type=e,this.tag=n,this.overrides=i}function Rn(t,e,n,i,o){this.$outer=t,void 0===i&&(i=null),void 0===o&&(o=null),Qt.call(this),this.builder_0=e,this.bindType_0=n,this.bindTag_0=i,this.overrides_0=o}function An(t,e,n){this.$outer=t,this._tag_0=e,this._overrides_0=n}function xn(t,e,n){this.$outer=t,this._tag_0=e,this._overrides_0=n}function In(t){wn.call(this,null,"",tt(),new Un(!0,t,et(),d(),d())),this.externalSources_rzg50g$_0=d(),this.fullDescriptionOnError_z7lv2t$_0=re().defaultFullDescriptionOnError,this.fullContainerTreeOnError_23tv82$_0=re().defaultFullContainerTreeOnError}function Un(t,e,n,i,o){this.bindingsMap_8be2vx$=n,this.callbacks_8be2vx$=i,this.translators_8be2vx$=o,this._overrideMode_0=Xn().get_dqye30$(t,e)}function Dn(t,e){nt.call(this),this.name$=t,this.ordinal$=e}function Pn(){Pn=function(){},new Mn,new Gn,new Bn,Xn()}function Mn(){kn=this,Dn.call(this,"ALLOW_SILENT",0)}ln.$metadata$={kind:y,simpleName:"ScopeCloseable",interfaces:[]},un.prototype.getOrCreate_l6dfx6$=function(t,e,n,i){return void 0===e&&(e=!0),i?i(t,e,n):this.getOrCreate_l6dfx6$$default(t,e,n)},un.prototype.close=function(){this.clear()},un.$metadata$={kind:o,simpleName:"ScopeRegistry",interfaces:[ln]},hn.prototype.getOrCreate_l6dfx6$$default=function(t,e,n){var i;t:do{var o,r,s;if(null!=(o=null!=(r=this._cache_0.get_11rb$(t))?r():null)){i=o;break t}e:do{var a,c;if(null!=(a=null!=(c=this._cache_0.get_11rb$(t))?c():null)){s=a;break e}var l=n(),u=l.component1(),h=l.component2();this._cache_0.put_xwzc9p$(t,h),i=u;break t}while(0);i=s}while(0);return i},hn.prototype.getOrNull_za3rmp$=function(t){return this._cache_0.get_11rb$(t)},hn.prototype.values=function(){var t,e=this._cache_0,n=N(e.size);for(t=e.entries.iterator();t.hasNext();){var i=t.next();n.add_11rb$(new V(i.key,i.value))}return n},hn.prototype.remove_za3rmp$=function(t){var n,i,o;null!=(o=e.isType(i=null!=(n=this._cache_0.remove_11rb$(t))?n():null,ln)?i:null)&&o.close()},hn.prototype.clear=function(){var t,n=B(this._cache_0.values);for(this._cache_0.clear(),t=n.iterator();t.hasNext();){var i,o,r=t.next();null!=(o=e.isType(i=r(),ln)?i:null)&&o.close()}},Object.defineProperty(hn.prototype,"size",{configurable:!0,get:function(){return this._cache_0.size}}),hn.prototype.isEmpty=function(){return this._cache_0.isEmpty()},hn.$metadata$={kind:o,simpleName:"StandardScopeRegistry",interfaces:[un]},dn.$metadata$={kind:y,simpleName:"ContextTranslator",interfaces:[]},Object.defineProperty(pn.prototype,"contextType",{get:function(){return this.contextType_7ycxqf$_0}}),Object.defineProperty(pn.prototype,"scopeType",{get:function(){return this.scopeType_w1u01g$_0}}),pn.prototype.translate_hxpgzk$=function(t,e){return this.t_0(t,e)},pn.prototype.toString=function(){return"()"},pn.$metadata$={kind:o,simpleName:"SimpleContextTranslator",interfaces:[dn]},Object.defineProperty(mn.prototype,"contextType",{configurable:!0,get:function(){return this.src.contextType}}),Object.defineProperty(mn.prototype,"scopeType",{configurable:!0,get:function(){return this.dst.scopeType}}),mn.prototype.translate_hxpgzk$=function(t,e){var n;return null!=(n=this.src.translate_hxpgzk$(t,e))?this.dst.translate_hxpgzk$(t,n):null},mn.prototype.toString=function(){return"("+this.src+" -> "+this.dst+")"},mn.$metadata$={kind:o,simpleName:"CompositeContextTranslator",interfaces:[dn]},fn.$metadata$={kind:y,simpleName:"Scope",interfaces:[]},gn.prototype.getRegistry_11rb$=function(t){return this._registry_0},gn.$metadata$={kind:o,simpleName:"NoScope",interfaces:[fn]},$n.prototype.factoryName=function(){return"bindingSet"},$n.$metadata$={kind:o,simpleName:"BaseMultiBinding",interfaces:[Je]},Sn.$metadata$={kind:o,simpleName:"ScopeKey",interfaces:[]},Sn.prototype.component1=function(){return this.scopeId},Sn.prototype.component2=function(){return this.arg},Sn.prototype.copy_87tcpy$=function(t,e){return new Sn(void 0===t?this.scopeId:t,void 0===e?this.arg:e)},Sn.prototype.toString=function(){return"ScopeKey(scopeId="+e.toString(this.scopeId)+", arg="+e.toString(this.arg)+")"},Sn.prototype.hashCode=function(){var t=0;return t=31*(t=31*t+e.hashCode(this.scopeId)|0)+e.hashCode(this.arg)|0},Sn.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.scopeId,t.scopeId)&&e.equals(this.arg,t.arg)},Object.defineProperty(Cn.prototype,"contextType",{get:function(){return this.contextType_vxra1v$_0}}),Object.defineProperty(Cn.prototype,"createdType",{get:function(){return this.createdType_ha4lz0$_0}}),Cn.prototype.factoryName=function(){return"provider"},Cn.prototype.getFactory_igiair$=function(t,e){return n=e,i=this,function(t){return i.creator(new He(n))};var n,i},Cn.$metadata$={kind:o,simpleName:"Provider",interfaces:[nn]},Object.defineProperty(Nn.prototype,"scope",{get:function(){return this.scope_ssd95m$_0}}),Object.defineProperty(Nn.prototype,"contextType",{get:function(){return this.contextType_rdxkor$_0}}),Object.defineProperty(Nn.prototype,"createdType",{get:function(){return this.createdType_cqawlw$_0}}),Nn.prototype.factoryName_0=function(t){var e=p();return e.append_pdl1vj$("singleton"),t.isEmpty()||e.append_pdl1vj$(q(t,", ","(",")")),e.toString()},Nn.prototype.factoryName=function(){var t=N(2);return A(this._refMaker_0,cn())||t.add_11rb$("ref = "+F(this._refMaker_0).simpleDispString()),this.factoryName_0(t)},Nn.prototype.factoryFullName=function(){var t=N(2);return A(this._refMaker_0,cn())||t.add_11rb$("ref = "+F(this._refMaker_0).qualifiedDispString()),this.factoryName_0(t)},Nn.prototype.getFactory_igiair$=function(t,n){var i,o,r,s=this.explicitContext_0?n:n.onErasedContext();return i={v:null},o=this,r=s,function(t){var n,s,a;if(null!=(n=i.v))a=n;else{var c=o.scope.getRegistry_11rb$(r.context);i.v=c,a=c}var l=a;return e.isType(s=l.getOrCreate_l6dfx6$(o._scopeKey_0,o.sync,Tn(o,r)),j)?s:G()}},Object.defineProperty(Nn.prototype,"copier",{configurable:!0,get:function(){return this.copier_o00oac$_0}}),Nn.$metadata$={kind:o,simpleName:"Singleton",interfaces:[nn]},Object.defineProperty(zn.prototype,"createdType",{get:function(){return this.createdType_nqy6ah$_0}}),zn.prototype.factoryName=function(){return"instance"},Object.defineProperty(zn.prototype,"contextType",{configurable:!0,get:function(){return this.contextType_wmj7ls$_0}}),zn.prototype.getFactory_igiair$=function(t,e){return n=this,function(t){return n.instance};var n},Object.defineProperty(zn.prototype,"description",{configurable:!0,get:function(){return this.factoryName()+" ( "+this.createdType.simpleDispString()+" )"}}),Object.defineProperty(zn.prototype,"fullDescription",{configurable:!0,get:function(){return this.factoryFullName()+" ( "+this.createdType.qualifiedDispString()+" )"}}),zn.$metadata$={kind:o,simpleName:"InstanceBinding",interfaces:[nn]},Object.defineProperty(wn.prototype,"containerBuilder",{get:function(){return this.containerBuilder_6qo8ee$_0}}),Object.defineProperty(wn.prototype,"contextType",{configurable:!0,get:function(){return this.contextType_gw7d91$_0}}),Object.defineProperty(wn.prototype,"scope",{configurable:!0,get:function(){return new gn}}),Object.defineProperty(wn.prototype,"explicitContext",{configurable:!0,get:function(){return!1}}),Object.defineProperty(On.prototype,"containerBuilder_8be2vx$",{configurable:!0,get:function(){return this.$outer.containerBuilder}}),On.prototype.with_4xqrlc$=function(t){this.containerBuilder_8be2vx$.bind_qpmgza$(new Bt(t.contextType,t.argType,this.type,this.tag),t,this.$outer.moduleName_0,this.overrides)},On.$metadata$={kind:o,simpleName:"TypeBinder",interfaces:[Yt]},Rn.prototype.To_3qgx04$=function(t,e){var n,i;this.builder_0.Bind_m0ro4c$(this.bindTag_0,this.overrides_0,new Cn(this.builder_0.contextType,this.bindType_0,(n=t,i=e,function(t){return t.Instance_ohrpre$(n,i)})))},Rn.$metadata$={kind:o,simpleName:"DelegateBinder",interfaces:[Qt]},An.$metadata$={kind:o,simpleName:"DirectBinder",interfaces:[Zt]},xn.prototype.With_q0tj0z$=function(t,e){this.$outer.Bind_m0ro4c$(this._tag_0,this._overrides_0,new zn(t,e))},xn.$metadata$={kind:o,simpleName:"ConstantBinder",interfaces:[te]},wn.prototype.Bind_exja01$$default=function(t,e,n){return new On(this,t,e,n)},wn.prototype.Bind_m0ro4c$$default=function(t,e,n){this.containerBuilder.bind_qpmgza$(new Bt(n.contextType,n.argType,n.createdType,t),n,this.moduleName_0,e)},wn.prototype.BindSet_m0ro4c$$default=function(t,n,i){var o,r,a,c,l,u=e.isType(o=Z(Y(Q),[i.createdType]),R)?o:G(),h=new Bt(i.contextType,i.argType,u,t);if(null==(a=null!=(r=this.containerBuilder.bindingsMap_8be2vx$.get_11rb$(h))?s(r):null))throw M("No set binding to "+h);var d=a;if(null==(e.isType(c=d.binding,$n)?c:null))throw M(h.toString()+" is associated to a "+d.binding.factoryName()+" while it should be associated with bindingSet");(e.isType(l=d.binding.set,J)?l:G()).add_11rb$(i)},wn.prototype.Bind_b6zv6g$$default=function(t,e){return new An(this,t,e)},wn.prototype.constant_obdoaf$$default=function(t,e){return new xn(this,t,e)},wn.prototype.Delegate_exja01$$default=function(t,e,n){return new Rn(this,this,t,e,n)},wn.prototype.import_dwjwn5$$default=function(t,e){var n=this.prefix_0+t.name;if(n.length>0&&this.importedModules_8be2vx$.contains_11rb$(n))throw M('Module "'+n+'" has already been imported!');this.importedModules_8be2vx$.add_11rb$(n),t.init(new wn(n,this.prefix_0+t.prefix,this.importedModules_8be2vx$,this.containerBuilder.subBuilder_dqye30$(e,t.allowSilentOverride)))},wn.prototype.importAll_k7it48$$default=function(t,e){var n;for(n=t.iterator();n.hasNext();){var i=n.next();this.import_dwjwn5$(i,e)}},wn.prototype.importAll_lbhl2u$$default=function(t,e){var n;for(n=0;n!==t.length;++n){var i=t[n];this.import_dwjwn5$(i,e)}},wn.prototype.importOnce_dwjwn5$$default=function(t,e){if(0===t.name.length)throw M("importOnce must be given a named module.");this.importedModules_8be2vx$.contains_11rb$(t.name)||this.import_dwjwn5$(t,e)},wn.prototype.onReady_qoc8km$=function(t){this.containerBuilder.onReady_qoc8km$(t)},wn.prototype.RegisterContextTranslator_5jq22i$=function(t){this.containerBuilder.registerContextTranslator_5jq22i$(t)},wn.$metadata$={kind:o,simpleName:"DIBuilderImpl",interfaces:[Jt]},Object.defineProperty(In.prototype,"externalSources",{configurable:!0,get:function(){return this.externalSources_rzg50g$_0}}),Object.defineProperty(In.prototype,"fullDescriptionOnError",{configurable:!0,get:function(){return this.fullDescriptionOnError_z7lv2t$_0},set:function(t){this.fullDescriptionOnError_z7lv2t$_0=t}}),Object.defineProperty(In.prototype,"fullContainerTreeOnError",{configurable:!0,get:function(){return this.fullContainerTreeOnError_23tv82$_0},set:function(t){this.fullContainerTreeOnError_23tv82$_0=t}}),In.prototype.extend_nltjgj$$default=function(t,e,n){var i=n.keySet_l66p72$(t.container.tree);this.containerBuilder.extend_5tbdl8$(t.container,e,i),T(this.externalSources,t.container.tree.externalSources);var o,r=this.importedModules_8be2vx$,s=this.containerBuilder.bindingsMap_8be2vx$,c=d();for(o=s.entries.iterator();o.hasNext();){var l,u=o.next().value,h=N(b(u,10));for(l=u.iterator();l.hasNext();){var p=l.next();h.add_11rb$(p.fromModule)}T(c,h)}r.addAll_brywnq$(a(c))},In.prototype.extend_lto1om$$default=function(t,e,n){var i=n.keySet_l66p72$(t.container.tree);this.containerBuilder.extend_5tbdl8$(t.container,e,i),T(this.externalSources,t.container.tree.externalSources);var o,r=this.importedModules_8be2vx$,s=this.containerBuilder.bindingsMap_8be2vx$,c=d();for(o=s.entries.iterator();o.hasNext();){var l,u=o.next().value,h=N(b(u,10));for(l=u.iterator();l.hasNext();){var p=l.next();h.add_11rb$(p.fromModule)}T(c,h)}r.addAll_brywnq$(a(c))},In.$metadata$={kind:o,simpleName:"DIMainBuilderImpl",interfaces:[ee,wn]},Object.defineProperty(Mn.prototype,"isAllowed",{configurable:!0,get:function(){return!0}}),Mn.prototype.must_1v8dbw$=function(t){return t},Mn.$metadata$={kind:o,simpleName:"ALLOW_SILENT",interfaces:[Dn]};var kn=null;function jn(){return Pn(),kn}function Gn(){qn=this,Dn.call(this,"ALLOW_EXPLICIT",1)}Object.defineProperty(Gn.prototype,"isAllowed",{configurable:!0,get:function(){return!0}}),Gn.prototype.must_1v8dbw$=function(t){return null!=t&&t},Gn.$metadata$={kind:o,simpleName:"ALLOW_EXPLICIT",interfaces:[Dn]};var qn=null;function Fn(){return Pn(),qn}function Bn(){Wn=this,Dn.call(this,"FORBID",2)}Object.defineProperty(Bn.prototype,"isAllowed",{configurable:!0,get:function(){return!1}}),Bn.prototype.must_1v8dbw$=function(t){if(null!=t&&t)throw new Ft("Overriding has been forbidden");return!1},Bn.$metadata$={kind:o,simpleName:"FORBID",interfaces:[Dn]};var Wn=null;function Hn(){return Pn(),Wn}function Vn(){Kn=this}Vn.prototype.get_dqye30$=function(t,e){return t?e?jn():Fn():Hn()},Vn.$metadata$={kind:_,simpleName:"Companion",interfaces:[]};var Kn=null;function Xn(){return Pn(),null===Kn&&new Vn,Kn}function Jn(t,e,n,i){this.tree_81m3ko$_0=t,this.node_0=e,this.fullDescriptionOnError_0=n,this.fullContainerTreeOnError_0=i,this.initCallbacks_hsz2gg$_0=null}function Yn(t,e,n,i){this.key_0=t,this.overrideLevel_0=e,this.parent_0=n,this.fullDescriptionOnError_0=i}function Qn(t,e){return St(t,e)}function Zn(t,e){return bt(t,e)}function ti(t,e,n,i,o,r){r=r||Object.create(Jn.prototype),Jn.call(r,new hi(t.bindingsMap_8be2vx$,e,t.translators_8be2vx$),null,n,i);var s,a,c=(s=r,a=t,function(){var t,e=new Ni(s,_e());for(t=a.callbacks_8be2vx$.iterator();t.hasNext();)t.next()(e);return x});return o?c():(new j,r.initCallbacks=function(t,e,n){return function(){var t=u("initCallbacks",0,function(t){return t.initCallbacks}.bind(null,e),function(t,e){t.initCallbacks=e}.bind(null,e));t:do{if(null==t())break t;e:do{if(null==t())break e;var i=n;e.initCallbacks=null,i()}while(0)}while(0);return x}}(0,r,c)),r}function ei(t){var e;oi(),this._container_0=t,this.container_2b5i5c$_0=k((e=this,function(){if(null!=e._container_0.initCallbacks)throw M("DI has not been initialized");return e._container_0}))}function ni(){ii=this}Dn.$metadata$={kind:o,simpleName:"OverrideMode",interfaces:[nt]},Dn.values=function(){return[jn(),Fn(),Hn()]},Dn.valueOf_61zpoe$=function(t){switch(t){case"ALLOW_SILENT":return jn();case"ALLOW_EXPLICIT":return Fn();case"FORBID":return Hn();default:it("No enum constant org.kodein.di.internal.DIContainerBuilderImpl.OverrideMode."+t)}},Un.prototype.checkOverrides_0=function(t,n){var i=this._overrideMode_0.must_1v8dbw$(n);if(null!=i){var o=i;if(o){var r,s=this.bindingsMap_8be2vx$;o=!(e.isType(r=s,ot)?r:G()).containsKey_11rb$(t)}if(o)throw new Ft("Binding "+t+" must override an existing binding.");var a=!i;if(a){var c,l=this.bindingsMap_8be2vx$;a=(e.isType(c=l,ot)?c:G()).containsKey_11rb$(t)}if(a)throw new Ft("Binding "+t+" must not override an existing binding.")}},Un.prototype.bind_qpmgza$$default=function(t,n,i,o){var r;this.checkOverrides_0(t,o);var s,a=this.bindingsMap_8be2vx$,c=a.get_11rb$(t);if(null==c){var l=Li();a.put_xwzc9p$(t,l),s=l}else s=c;s.add_wxm5ur$(0,new $t(e.isType(r=n,Je)?r:G(),i))},Un.prototype.checkMatch_0=function(t){if(!this._overrideMode_0.isAllowed&&t)throw new Ft("Overriding has been forbidden")},Un.prototype.extend_5tbdl8$$default=function(t,e,n){var i;for(this.checkMatch_0(e),i=t.tree.bindings.entries.iterator();i.hasNext();){var o,r=i.next(),s=r.key,a=r.value;if(e||this.checkOverrides_0(s,null),n.contains_11rb$(s)){var c,l=Li();for(c=a.iterator();c.hasNext();){var u,h,d=c.next();l.add_11rb$(new $t(null!=(h=null!=(u=d.binding.copier)?u.copy_kp8gfu$(this):null)?h:d.binding,d.fromModule))}o=l}else o=zi(a);var p=o;this.bindingsMap_8be2vx$.put_xwzc9p$(s,p)}T(this.translators_8be2vx$,t.tree.registeredTranslators)},Un.prototype.subBuilder_dqye30$$default=function(t,e){return this.checkMatch_0(t),new Un(t,e,this.bindingsMap_8be2vx$,this.callbacks_8be2vx$,this.translators_8be2vx$)},Un.prototype.onReady_qoc8km$=function(t){this.callbacks_8be2vx$.add_11rb$(t)},Un.prototype.registerContextTranslator_5jq22i$=function(t){this.translators_8be2vx$.add_11rb$(t)},Un.$metadata$={kind:o,simpleName:"DIContainerBuilderImpl",interfaces:[Ce]},Object.defineProperty(Jn.prototype,"tree",{get:function(){return this.tree_81m3ko$_0}}),Object.defineProperty(Jn.prototype,"initCallbacks",{configurable:!0,get:function(){return this.initCallbacks_hsz2gg$_0},set:function(t){this.initCallbacks_hsz2gg$_0=t}}),Yn.prototype.check_4ow4is$=function(t,e){if(!this.recursiveCheck_0(this,t,e)){var n,i,o=rt(this.recursiveLoop_0(this,t,e,H()),this.displayString_0(t,this.overrideLevel_0)),s=p(),a=0;for(n=o.iterator();n.hasNext();){var c=n.next(),l=at((a=(i=a)+1|0,i));switch(s.append_pdl1vj$(" "),l){case 0:s.append_pdl1vj$(" ");break;case 1:s.append_pdl1vj$(" ╔╩>");break;default:s.append_pdl1vj$(" ║"),s.append_pdl1vj$(r(" ",l-1|0)),s.append_pdl1vj$("╚>")}s.append_pdl1vj$(c),s.append_pdl1vj$("\n")}throw s.append_pdl1vj$(" ╚"),s.append_pdl1vj$(r("══",o.size-1|0)),s.append_pdl1vj$("╝"),new jt("Dependency recursion:\n"+s)}},Yn.prototype.displayString_0=function(t,e){var n=this.fullDescriptionOnError_0?u("bindFullDescription",0,function(t){return t.bindFullDescription}.bind(null,t)):u("bindDescription",0,function(t){return t.bindDescription}.bind(null,t));return 0!==e?"overridden "+n.get():n.get()},Yn.prototype.recursiveLoop_0=function(t,e,n,i){return null==t.parent_0||null!=e&&e.equals(t.key_0)&&n===t.overrideLevel_0?st(W(this.displayString_0(t.key_0,t.overrideLevel_0)),i):this.recursiveLoop_0(t.parent_0,e,n,st(W(this.displayString_0(t.key_0,t.overrideLevel_0)),i))},Yn.prototype.recursiveCheck_0=function(t,e,n){var i;return(null==(i=t.key_0)||!i.equals(e)||t.overrideLevel_0!==n)&&(null==t.parent_0||this.recursiveCheck_0(t.parent_0,e,n))},Yn.$metadata$={kind:o,simpleName:"Node",interfaces:[]},Jn.prototype.bindingDI_0=function(t,e,n,i){return new ai(new Ni(new Jn(n,new Yn(t,i,this.node_0,this.fullDescriptionOnError_0),this.fullDescriptionOnError_0,this.fullContainerTreeOnError_0),e),t,i)},Jn.prototype.factoryOrNull_dht9zw$$default=function(t,n,i){var o,r,s,a=this.tree.find_9mbcap$(t,0);if(1===a.size){var c=a.get_za3lpa$(0),l=c.component2(),u=c.component3();null!=(o=this.node_0)&&o.check_4ow4is$(t,0);var h=e.isType(r=he().invoke_np530x$(t.contextType,n),se)?r:G(),d=null!=(s=null!=u?_n(u,new Ni(this,h),n):null)?s:h;e.isType(t,Bt)||G();var p=this.bindingDI_0(t,d,l.tree,i);return l.binding.getFactory_igiair$(t,p)}var _,m=this.bindingDI_0(t,he().invoke_np530x$(t.contextType,n),this.tree,i);for(_=this.tree.externalSources.iterator();_.hasNext();){var f,g,$;if(null!=(f=_.next().getFactory_p8xnp6$(m,t)))return null!=(g=this.node_0)&&g.check_4ow4is$(t,0),"function"==typeof($=f)?$:G()}return null},Jn.prototype.factory_dht9zw$$default=function(t,n,i){var o,r,s,a=this.tree.find_9mbcap$(t,i);if(1===a.size){var c=a.get_za3lpa$(0),d=c.component2(),_=c.component3();null!=(o=this.node_0)&&o.check_4ow4is$(t,i);var m=e.isType(r=he().invoke_np530x$(t.contextType,n),se)?r:G(),g=null!=(s=null!=_?_n(_,new Ni(this,m),n):null)?s:m;e.isType(t,Bt)||G();var $=this.bindingDI_0(t,g,d.tree,i);return d.binding.getFactory_igiair$(t,$)}var E,y=this.bindingDI_0(t,he().invoke_np530x$(t.contextType,n),this.tree,i);for(E=this.tree.externalSources.iterator();E.hasNext();){var N,T,L;if(null!=(N=E.next().getFactory_p8xnp6$(y,t)))return null!=(T=this.node_0)&&T.check_4ow4is$(t,i),"function"==typeof(L=N)?L:G()}var z=0!==i,w=this.fullDescriptionOnError_0?u("fullDescription",0,function(t){return t.fullDescription}.bind(null,t)):u("description",0,function(t){return t.description}.bind(null,t)),O=this.fullDescriptionOnError_0?Qn:Zn;if(a.isEmpty()){var R=p();if(R.append_pdl1vj$("No binding found for "+w.get()),this.fullContainerTreeOnError_0){R.append_s8itvh$(10);var A=this.tree.find_f45sx$(new ze(void 0,void 0,t.type));if(!A.isEmpty()){var x,I=v(S(b(A,10)),16),U=C(I);for(x=A.iterator();x.hasNext();){var D=x.next(),P=f(D.first,D.second);U.put_xwzc9p$(P.first,P.second)}R.append_pdl1vj$("Available bindings for this type:\n"+O(U,z))}R.append_pdl1vj$("Registered in this DI container:\n"+O(this.tree.bindings,z))}throw new Gt(t,R.toString())}var M,k=v(S(b(a,10)),16),j=C(k);for(M=a.iterator();M.hasNext();){var q=M.next(),F=f(q.first,l(this.tree.get_6okvgm$(q.first)).second);j.put_xwzc9p$(F.first,F.second)}var B,W=j,H=this.tree.bindings,V=h();for(B=H.entries.iterator();B.hasNext();){var K=B.next(),X=K.key;W.keys.contains_11rb$(X)||V.put_xwzc9p$(K.key,K.value)}var J=V;throw new Gt(t,W.size.toString()+" bindings found that match "+t+":\n"+O(W,z)+"Other bindings registered in DI:\n"+O(J,z))},Jn.prototype.allFactories_dht9zw$$default=function(t,n,i){var o,r=this.tree.find_9mbcap$(t,i,!0),s=N(b(r,10));for(o=r.iterator();o.hasNext();){var a,c,l,u=o.next(),h=s.add_11rb$,d=u.component2(),p=u.component3();null!=(a=this.node_0)&&a.check_4ow4is$(t,i);var _=e.isType(c=he().invoke_np530x$(t.contextType,n),se)?c:G(),m=null!=(l=null!=p?_n(p,new Ni(this,_),n):null)?l:_;e.isType(t,Bt)||G();var f=this.bindingDI_0(t,m,d.tree,i);h.call(s,d.binding.getFactory_igiair$(t,f))}return s},Jn.$metadata$={kind:o,simpleName:"DIContainerImpl",interfaces:[ye]},ni.prototype.newBuilder_0=function(t,e){void 0===t&&(t=!1);var n=new In(t);return e(n),n},ni.prototype.withDelayedCallbacks_ys71a$=function(t,e){void 0===t&&(t=!1);var n,i=ri(this.newBuilder_0(t,e),!1);return f(i,(n=i,function(){var t;return null!=(t=n._container_0.initCallbacks)&&t(),x}))},ni.$metadata$={kind:_,simpleName:"Companion",interfaces:[]};var ii=null;function oi(){return null===ii&&new ni,ii}function ri(t,e,n){return n=n||Object.create(ei.prototype),ei.call(n,ti(t.containerBuilder,t.externalSources,t.fullDescriptionOnError,t.fullContainerTreeOnError,e)),n}function si(t,e,n){return void 0===t&&(t=!1),n=n||Object.create(ei.prototype),ri(oi().newBuilder_0(t,e),!0,n),n}function ai(t,e,n){this.directDI_km598m$_0=t,this.key_0=e,this.overrideLevel_0=n}function ci(){}function li(t){ci.call(this),this.type_j6ks2f$_0=t,this.isAny=A(this.type,R.Companion.Any)}function ui(t){ci.call(this),this.type_mdb90i$_0=t}function hi(t,n,i){var o,r,a;for(this.externalSources_f7ouoa$_0=n,this.registeredTranslators_q51es4$_0=i,this._cache_0=Ti(),this._typeTree_0=et(),this.bindings_74h871$_0=null,this.translators_0=mt(this.registeredTranslators),a=t.entries.iterator();a.hasNext();){var c,l=a.next(),u=l.key,h=l.value,p=N(b(h,10));for(c=h.iterator();c.hasNext();){var _,m=c.next(),f=p.add_11rb$;_=e.isType(m,Et)?m:new Et(m.binding,m.fromModule,this),f.call(p,_)}var g=p,$=this._cache_0,E=new ut(u,g,null);$.put_xwzc9p$(u,E);var y,v=s(h).binding.supportSubTypes?new li(u.type):new ui(u.type),L=this._typeTree_0,z=L.get_11rb$(v);if(null==z){var w=et();L.put_xwzc9p$(v,w),y=w}else y=z;var O,R=y,x=new li(u.contextType),I=R.get_11rb$(x);if(null==I){var U=et();R.put_xwzc9p$(x,U),O=U}else O=I;var D,P=O,M=new li(u.argType),k=P.get_11rb$(M);if(null==k){var j=et();P.put_xwzc9p$(M,j),D=j}else D=k;var q=D,F=u.tag;q.put_xwzc9p$(F,u)}var B,W=this._cache_0,H=C(S(W.size));for(B=W.entries.iterator();B.hasNext();){var V=B.next();H.put_xwzc9p$(V.key,V.value.second)}for(this.bindings_74h871$_0=ft(H);;){var K=d();for(o=this.translators_0.iterator();o.hasNext();){var X=o.next();for(r=this.translators_0.iterator();r.hasNext();){var J=r.next();if(J.contextType.isAssignableFrom_q3o5v9$(X.scopeType)&&!A(X.contextType,J.scopeType)){var Y,Q=this.translators_0;t:do{var Z;if(e.isType(Q,gt)&&Q.isEmpty()){Y=!0;break t}for(Z=Q.iterator();Z.hasNext();){var tt=Z.next();if(A(tt.contextType,X.contextType)&&A(tt.scopeType,J.scopeType)){Y=!1;break t}}Y=!0}while(0);if(Y){var nt,it,ot=new mn(e.isType(nt=X,dn)?nt:G(),e.isType(it=J,dn)?it:G());K.add_11rb$(ot)}}}}if(T(this.translators_0,K),K.isEmpty())break}}function di(t){return new ut(t.key,t.value,null)}function pi(t){var e=t.value;return K(ct(e),di)}function _i(t){var e,n=t.component2(),i=t.component3();return K(ct(n),(e=i,function(t){return new ut(t.key,t.value,e)}))}function mi(t){var e,n=t.component2(),i=t.component3();return K(ct(n),(e=i,function(t){return new ut(t.key,t.value,e)}))}function fi(t){var e=t.component2(),n=t.component3();return f(e,n)}function gi(t){return t.internalDescription}function $i(t,e){return function(){return e(t())}}function Ei(t,e){this.container_ek7exy$_0=t,this.context=e}function yi(){this._baseDI_7zn6nd$_0=this._baseDI_7zn6nd$_0}function bi(t){this.baseDI_vnnl4y$_0=k(t)}function Si(){}function vi(t,e,n){this.trigger_8be2vx$=t,this.originalContext=e,this.get_0=n}function Ci(){}function Ni(t,e){Ei.call(this,t,e)}function Ti(){return et()}function Li(){return d()}function zi(t){return mt(t)}Object.defineProperty(ei.prototype,"container",{configurable:!0,get:function(){return this.container_2b5i5c$_0.value}}),ei.$metadata$={kind:o,simpleName:"DIImpl",interfaces:[kt]},Object.defineProperty(ai.prototype,"directDI",{get:function(){return this.directDI_km598m$_0}}),ai.prototype.overriddenFactory=function(){var t;return"function"==typeof(t=this.container.factory_dht9zw$(this.key_0,this.context,this.overrideLevel_0+1|0))?t:G()},ai.prototype.overriddenFactoryOrNull=function(){var t;return null==(t=this.container.factoryOrNull_dht9zw$(this.key_0,this.context,this.overrideLevel_0+1|0))||"function"==typeof t?t:G()},Object.defineProperty(ai.prototype,"context",{configurable:!0,get:function(){var t;return e.isType(t=this.directDI.di.diContext.value,j)?t:G()}}),ai.prototype.onErasedContext=function(){return new ai(this.directDI.On_agur4l$(Be()),this.key_0,this.overrideLevel_0)},Object.defineProperty(ai.prototype,"container",{configurable:!0,get:function(){return this.directDI.container}}),Object.defineProperty(ai.prototype,"di",{configurable:!0,get:function(){return this.directDI.di}}),Object.defineProperty(ai.prototype,"lazy",{configurable:!0,get:function(){return this.directDI.lazy}}),ai.prototype.Factory_61z0e$$default=function(t,e,n){return this.directDI.Factory_61z0e$$default(t,e,n)},ai.prototype.FactoryOrNull_61z0e$$default=function(t,e,n){return this.directDI.FactoryOrNull_61z0e$$default(t,e,n)},ai.prototype.Instance_ohrpre$$default=function(t,e){return this.directDI.Instance_ohrpre$$default(t,e)},ai.prototype.Instance_331fb8$$default=function(t,e,n,i){return this.directDI.Instance_331fb8$$default(t,e,n,i)},ai.prototype.InstanceOrNull_ohrpre$$default=function(t,e){return this.directDI.InstanceOrNull_ohrpre$$default(t,e)},ai.prototype.InstanceOrNull_331fb8$$default=function(t,e,n,i){return this.directDI.InstanceOrNull_331fb8$$default(t,e,n,i)},ai.prototype.On_agur4l$=function(t){return this.directDI.On_agur4l$(t)},ai.prototype.Provider_ohrpre$$default=function(t,e){return this.directDI.Provider_ohrpre$$default(t,e)},ai.prototype.Provider_aqo1vk$$default=function(t,e,n,i){return this.directDI.Provider_aqo1vk$$default(t,e,n,i)},ai.prototype.ProviderOrNull_ohrpre$$default=function(t,e){return this.directDI.ProviderOrNull_ohrpre$$default(t,e)},ai.prototype.ProviderOrNull_aqo1vk$$default=function(t,e,n,i){return this.directDI.ProviderOrNull_aqo1vk$$default(t,e,n,i)},ai.$metadata$={kind:o,simpleName:"BindingDIImpl",interfaces:[Ge,Ci]},Object.defineProperty(li.prototype,"type",{get:function(){return this.type_j6ks2f$_0}}),li.prototype.check_q3o5v9$=function(t){return this.isAny||this.type.isAssignableFrom_q3o5v9$(t)},li.$metadata$={kind:o,simpleName:"Down",interfaces:[ci]},li.prototype.component1=function(){return this.type},li.prototype.copy_q3o5v9$=function(t){return new li(void 0===t?this.type:t)},li.prototype.toString=function(){return"Down(type="+e.toString(this.type)+")"},li.prototype.hashCode=function(){var t=0;return t=31*t+e.hashCode(this.type)|0},li.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.type,t.type)},Object.defineProperty(ui.prototype,"type",{get:function(){return this.type_mdb90i$_0}}),ui.prototype.check_q3o5v9$=function(t){return A(t,R.Companion.Any)||t.isAssignableFrom_q3o5v9$(this.type)},ui.$metadata$={kind:o,simpleName:"Up",interfaces:[ci]},ui.prototype.component1=function(){return this.type},ui.prototype.copy_q3o5v9$=function(t){return new ui(void 0===t?this.type:t)},ui.prototype.toString=function(){return"Up(type="+e.toString(this.type)+")"},ui.prototype.hashCode=function(){var t=0;return t=31*t+e.hashCode(this.type)|0},ui.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.type,t.type)},ci.$metadata$={kind:o,simpleName:"TypeChecker",interfaces:[]},Object.defineProperty(hi.prototype,"externalSources",{get:function(){return this.externalSources_f7ouoa$_0}}),Object.defineProperty(hi.prototype,"registeredTranslators",{get:function(){return this.registeredTranslators_q51es4$_0}}),Object.defineProperty(hi.prototype,"bindings",{configurable:!0,get:function(){return this.bindings_74h871$_0}}),hi.prototype.findBySpecs_0=function(t){var e,n=ct(this._typeTree_0),i=t.type;null==i||A(i,R.Companion.Any)||(n=lt(n,(e=i,function(t){return t.key.check_q3o5v9$(e)})));var o,r,s=ht(n,pi),a=t.contextType;null!=a&&(s=dt(s,(o=a,r=this,function(t){var e=t.component1();if(e.check_q3o5v9$(o))return t;var n,i=r.translators_0;t:do{var s;for(s=i.iterator();s.hasNext();){var a=s.next(),c=o;if(a.contextType.isAssignableFrom_q3o5v9$(c)&&e.check_q3o5v9$(a.scopeType)){n=a;break t}}n=null}while(0);var l=n;return null!=l?t.copy_1llc0w$(void 0,void 0,l):null})));var c,l=ht(s,_i),u=t.argType;null!=u&&(l=lt(l,(c=u,function(t){return t.component1().check_q3o5v9$(c)})));var h,d=ht(l,mi),p=t.tag;A(p,Re())||(d=lt(d,(h=p,function(t){var e=t.component1();return A(e,h)})));var _=K(d,fi);return pt(_)},hi.prototype.find_9mbcap$$default=function(t,n,i){var o,r,a,c,l,u,h;if(!i){if(null!=(o=this._cache_0.get_11rb$(t))){var p,_,m,f,g=o.component1(),$=o.component2(),E=o.component3();if(null==(p=_t($,n)))return H();var y=p;return W(new ut(e.isType(_=g,Bt)?_:G(),e.isType(m=y,Et)?m:G(),null==(f=E)||e.isType(f,dn)?f:G()))}if(!A(t.contextType,R.Companion.Any)){var b=t.copy_x92200$(R.Companion.Any);if(null!=(r=this._cache_0.get_11rb$(b)))t:do{var S,v,C,N,T=r.component1(),L=r.component2(),z=r.component3();if(null!=z&&!A(z.contextType,t.contextType))break t;if(this._cache_0.put_xwzc9p$(t,r),null==(S=_t(L,n)))return H();var w=S;return W(new ut(e.isType(v=T,Bt)?v:G(),e.isType(C=w,Et)?C:G(),null==(N=z)||e.isType(N,dn)?N:G()))}while(0)}var O,x=this.translators_0,I=d();for(O=x.iterator();O.hasNext();){var U=O.next();A(U.contextType,t.contextType)&&I.add_11rb$(U)}var D,P=this.translators_0,M=d();for(D=P.iterator();D.hasNext();){var k=D.next();A(k.contextType,R.Companion.Any)&&M.add_11rb$(k)}for(a=st(I,M).iterator();a.hasNext();){var j=a.next(),q=new Bt(j.scopeType,t.argType,t.type,t.tag);if(null!=(l=null!=(c=this._cache_0.get_11rb$(q))&&null==c.third?c:null))t:do{var F,B,V,K;if(null!=l.third)break t;var X=this._cache_0,J=l.copy_1llc0w$(void 0,void 0,j);X.put_xwzc9p$(t,J);var Y=l.component1(),Q=l.component2();if(null==(F=_t(Q,n)))return H();var Z=F;return W(new ut(e.isType(B=Y,Bt)?B:G(),e.isType(V=Z,Et)?V:G(),null==(K=j)||e.isType(K,dn)?K:G()))}while(0)}}var tt=this.findBySpecs_0(new ze(t.contextType,t.argType,t.type,t.tag));if(1===tt.size){var et=s(tt),nt=et.component1(),it=et.component2();if(null==(h=null!=(u=this._cache_0.get_11rb$(nt))?u.copy_1llc0w$(void 0,void 0,it):null))throw this.notInMap_0(nt,t);this._cache_0.put_xwzc9p$(t,h)}var ot,rt=d();for(ot=tt.iterator();ot.hasNext();){var at,ct,lt=ot.next();t:do{var ht,dt,pt,mt,ft,gt=lt.component1(),$t=lt.component2();if(null==(ht=this._cache_0.get_11rb$(gt)))throw this.notInMap_0(gt,t);var yt=ht.component2();if(null==(dt=_t(yt,n))){ct=null;break t}var bt=dt;ct=new ut(e.isType(pt=gt,Bt)?pt:G(),e.isType(mt=bt,Et)?mt:G(),null==(ft=$t)||e.isType(ft,dn)?ft:G())}while(0);null!=(at=ct)&&rt.add_11rb$(at)}return rt},hi.prototype.notInMap_0=function(t,e){return M("Tree returned key "+t.internalDescription+" that is not in cache when searching for "+e.internalDescription+".\nKeys in cache:\n"+q(this._cache_0.keys,"\n",void 0,void 0,void 0,void 0,gi))},hi.prototype.find_f45sx$=function(t){var e,n=this.findBySpecs_0(t),i=N(b(n,10));for(e=n.iterator();e.hasNext();){var o=e.next(),r=i.add_11rb$,s=o.component1(),a=o.component2();r.call(i,new ut(s,l(this._cache_0.get_11rb$(s)).second,a))}return i},hi.prototype.get_6okvgm$=function(t){var n;return null==(n=this._cache_0.get_11rb$(t))||e.isType(n,ut)?n:G()},hi.$metadata$={kind:o,simpleName:"DITreeImpl",interfaces:[Ne]},Object.defineProperty(Ei.prototype,"container",{get:function(){return this.container_ek7exy$_0}}),Object.defineProperty(Ei.prototype,"directDI",{configurable:!0,get:function(){return this}}),Object.defineProperty(Ei.prototype,"lazy",{configurable:!0,get:function(){var t;return $e(new ei(e.isType(t=this.container,Jn)?t:G()),this.context)}}),Ei.prototype.On_agur4l$=function(t){return new Ni(this.container,t)},Ei.prototype.Factory_61z0e$$default=function(t,n,i){var o;return this.container.factory_dht9zw$(new Bt(e.isType(o=this.context.type,R)?o:G(),t,n,i),this.context.value)},Ei.prototype.FactoryOrNull_61z0e$$default=function(t,n,i){var o;return this.container.factoryOrNull_dht9zw$(new Bt(e.isType(o=this.context.type,R)?o:G(),t,n,i),this.context.value)},Ei.prototype.Provider_ohrpre$$default=function(t,n){var i;return this.container.provider_ag9259$(new Bt(e.isType(i=this.context.type,R)?i:G(),R.Companion.Unit,t,n),this.context.value)},Ei.prototype.Provider_aqo1vk$$default=function(t,n,i,o){var r;return $i(o,this.container.factory_dht9zw$(new Bt(e.isType(r=this.context.type,R)?r:G(),t,n,i),this.context.value))},Ei.prototype.ProviderOrNull_ohrpre$$default=function(t,n){var i;return this.container.providerOrNull_ag9259$(new Bt(e.isType(i=this.context.type,R)?i:G(),R.Companion.Unit,t,n),this.context.value)},Ei.prototype.ProviderOrNull_aqo1vk$$default=function(t,n,i,o){var r,s;return null!=(r=this.container.factoryOrNull_dht9zw$(new Bt(e.isType(s=this.context.type,R)?s:G(),t,n,i),this.context.value))?$i(o,r):null},Ei.prototype.Instance_ohrpre$$default=function(t,n){var i;return this.container.provider_ag9259$(new Bt(e.isType(i=this.context.type,R)?i:G(),R.Companion.Unit,t,n),this.context.value)()},Ei.prototype.Instance_331fb8$$default=function(t,n,i,o){var r;return this.container.factory_dht9zw$(new Bt(e.isType(r=this.context.type,R)?r:G(),t,n,i),this.context.value)(o)},Ei.prototype.InstanceOrNull_ohrpre$$default=function(t,n){var i,o;return null!=(i=this.container.providerOrNull_ag9259$(new Bt(e.isType(o=this.context.type,R)?o:G(),R.Companion.Unit,t,n),this.context.value))?i():null},Ei.prototype.InstanceOrNull_331fb8$$default=function(t,n,i,o){var r,s;return null!=(r=this.container.factoryOrNull_dht9zw$(new Bt(e.isType(s=this.context.type,R)?s:G(),t,n,i),this.context.value))?r(o):null},Ei.$metadata$={kind:o,simpleName:"DirectDIBaseImpl",interfaces:[Ci]},Object.defineProperty(bi.prototype,"baseDI",{configurable:!0,get:function(){return this.baseDI_vnnl4y$_0.value}}),Object.defineProperty(bi.prototype,"container",{configurable:!0,get:function(){return this.baseDI.container}}),bi.prototype.getValue_n5byny$=function(t,e){return this},bi.$metadata$={kind:o,simpleName:"LazyDI",interfaces:[kt]},Si.$metadata$={kind:y,simpleName:"LazyDelegate",interfaces:[]},vi.prototype.provideDelegate_tpuvb9$=function(t,n){var i,o,r,s,a,c=k((i=t,o=this,r=n,function(){var t,n=null!=i&&o.originalContext===_e()?he().invoke_np530x$(e.isType(t=F(i),R)?t:G(),i):o.originalContext;return o.get_0(n,r.callableName)}));return null!=(a=null!=(s=this.trigger_8be2vx$)?s.properties:null)&&a.add_11rb$(c),c},vi.$metadata$={kind:o,simpleName:"DIProperty",interfaces:[Si]},Ci.$metadata$={kind:y,simpleName:"DirectDI",interfaces:[Le]},Ni.$metadata$={kind:o,simpleName:"DirectDIImpl",interfaces:[Ei,Ci]};var wi=t.org||(t.org={}),Oi=wi.kodein||(wi.kodein={}),Ri=Oi.di||(Oi.di={});Ri.DIDefining=$t,Ri.DIDefinition=Et,Ri.description_ltdpd2$=bt,Ri.fullDescription_ltdpd2$=St,Ri.CopySpecs=vt,Object.defineProperty(Ct,"All",{get:function(){return null===Tt&&new Nt,Tt}}),Object.defineProperty(Ct,"None",{get:function(){return null===zt&&new Lt,zt}}),Object.defineProperty(Ct,"NonCached",{get:Rt}),Object.defineProperty(Ct,"Companion",{get:It}),Ut.Sentence=Dt,Ct.BaseDSL=Ut,Ct.DSL=Pt,Ct.AllButDSL=Mt,Ri.Copy=Ct,kt.DependencyLoopException=jt,kt.NotFoundException=Gt,kt.NoResultException=qt,kt.OverridingException=Ft,kt.Key=Bt,kt.DIDsl=Wt,Ht.ImplWithContext=Vt,Ht.WithScope=Kt,Ht.ImplWithScope=Xt,kt.BindBuilder=Ht,Jt.TypeBinder=Yt,i["Kaverit-kaverit"]=n,Jt.DelegateBinder=Qt,Jt.DirectBinder=Zt,Jt.ConstantBinder=te,kt.Builder=Jt,kt.MainBuilder=ee,kt.Module_init_380h3v$=function(t,e,n,i,o){return void 0===e&&(e=!1),void 0===n&&(n=""),o=o||Object.create(ne.prototype),ne.call(o,e,n,i),o._name_0=t,o},kt.Module=ne,Object.defineProperty(kt,"Companion",{get:re}),Ri.DI=kt,se.Value=ae,se.Lazy=ce,Object.defineProperty(se,"Companion",{get:he}),Ri.DIContext=se,Object.defineProperty(Ri,"AnyDIContext_8be2vx$",{get:_e}),Ri.DIAware=me,Ri.Instance_l95o76$=function(t,n,i){return void 0===i&&(i=null),new vi(t.diTrigger,t.diContext,(o=t,r=n,s=i,function(t,n){var i;return o.di.container.provider_ag9259$(new Bt(e.isType(i=t.type,R)?i:G(),R.Companion.Unit,r,s),t.value)()}));var o,r,s},Ri.InstanceOrNull_l95o76$=function(t,n,i){return void 0===i&&(i=null),new vi(t.diTrigger,t.diContext,(o=t,r=n,s=i,function(t,n){var i,a;return null!=(i=o.di.container.providerOrNull_ag9259$(new Bt(e.isType(a=t.type,R)?a:G(),R.Companion.Unit,r,s),t.value))?i():null}));var o,r,s},Ri.get_direct_utb36t$=fe,Ri.On_e2mfxv$=$e,Ri.SearchDSL=Ae,ye.Builder=Ce,Ri.DIContainer=ye,Ri.DITree=Ne,Ri.DirectDIAware=Te,Ri.DirectDIBase=Le,Object.defineProperty(ze,"NoDefinedTag",{get:Re}),Ri.SearchSpecs=ze,Object.defineProperty(xe,"Companion",{get:Pe}),Ae.Spec=xe,Ae.Binding=Me;var Ai=Ri.bindings||(Ri.bindings={});Ai.WithContext=je,Ai.BindingDI=Ge,Object.defineProperty(Ai,"ErasedContext",{get:Be}),Ai.NoArgBindingDI=We,Ai.NoArgBindingDIWrap=He,Ai.Binding=Xe,Object.defineProperty(Ye,"Companion",{get:en}),Je.Copier=Ye,Ai.DIBinding=Je,Ai.NoArgDIBinding=nn,Ai.Reference=on,Ai.RefMaker=rn,Object.defineProperty(Ai,"SingletonReference",{get:cn}),Ai.ScopeCloseable=ln,Ai.ScopeRegistry=un,Ai.StandardScopeRegistry=hn,Ai.ContextTranslator=dn,Ai.SimpleContextTranslator=pn,Ai.toKContext_7e143j$=_n,Ai.CompositeContextTranslator=mn,Ai.Scope=fn,Ai.NoScope=gn,Ai.BaseMultiBinding=$n,Ai.SetBinding=yn,Ai.Factory=bn,Ai.Multiton=vn,Ai.Provider=Cn,Ai.Singleton=Nn,Ai.EagerSingleton=Ln,Ai.InstanceBinding=zn,wn.TypeBinder=On,wn.DelegateBinder=Rn,wn.DirectBinder=An,wn.ConstantBinder=xn;var xi=Ri.internal||(Ri.internal={});return xi.DIBuilderImpl=wn,xi.DIMainBuilderImpl=In,xi.DIContainerBuilderImpl=Un,xi.DIContainerImpl_init_esntqj$=ti,xi.DIContainerImpl=Jn,Object.defineProperty(ei,"Companion",{get:oi}),xi.DIImpl_init_ys71a$=si,xi.DIImpl=ei,xi.BindingDIImpl=ai,xi.DITreeImpl=hi,xi.DirectDIBaseImpl=Ei,Ri.LateInitDI=yi,Ri.LazyDI=bi,Ri.LazyDelegate=Si,Ri.DIProperty=vi,Ri.DirectDI=Ci,xi.DirectDIImpl=Ni,xi.newConcurrentMap_3w54xu$=Ti,xi.newLinkedList_tnbmyv$=Li,xi.newLinkedList_5x7s3c$=zi,ee.prototype.Bind_m0ro4c$=Jt.prototype.Bind_m0ro4c$,ee.prototype.Bind_exja01$=Jt.prototype.Bind_exja01$,ee.prototype.Bind_b6zv6g$=Jt.prototype.Bind_b6zv6g$,ee.prototype.BindSet_m0ro4c$=Jt.prototype.BindSet_m0ro4c$,ee.prototype.constant_obdoaf$=Jt.prototype.constant_obdoaf$,ee.prototype.Delegate_exja01$=Jt.prototype.Delegate_exja01$,ee.prototype.import_dwjwn5$=Jt.prototype.import_dwjwn5$,ee.prototype.importAll_lbhl2u$=Jt.prototype.importAll_lbhl2u$,ee.prototype.importAll_k7it48$=Jt.prototype.importAll_k7it48$,ee.prototype.importOnce_dwjwn5$=Jt.prototype.importOnce_dwjwn5$,Object.defineProperty(kt.prototype,"diContext",Object.getOwnPropertyDescriptor(me.prototype,"diContext")),Object.defineProperty(kt.prototype,"diTrigger",Object.getOwnPropertyDescriptor(me.prototype,"diTrigger")),Object.defineProperty(Ci.prototype,"di",Object.getOwnPropertyDescriptor(Le.prototype,"di")),Ci.prototype.Factory_61z0e$=Le.prototype.Factory_61z0e$,Ci.prototype.FactoryOrNull_61z0e$=Le.prototype.FactoryOrNull_61z0e$,Ci.prototype.Provider_ohrpre$=Le.prototype.Provider_ohrpre$,Ci.prototype.Provider_aqo1vk$=Le.prototype.Provider_aqo1vk$,Ci.prototype.ProviderOrNull_ohrpre$=Le.prototype.ProviderOrNull_ohrpre$,Ci.prototype.ProviderOrNull_aqo1vk$=Le.prototype.ProviderOrNull_aqo1vk$,Ci.prototype.Instance_ohrpre$=Le.prototype.Instance_ohrpre$,Ci.prototype.Instance_331fb8$=Le.prototype.Instance_331fb8$,Ci.prototype.InstanceOrNull_ohrpre$=Le.prototype.InstanceOrNull_ohrpre$,Ci.prototype.InstanceOrNull_331fb8$=Le.prototype.InstanceOrNull_331fb8$,Object.defineProperty(Ge.prototype,"di",Object.getOwnPropertyDescriptor(Ci.prototype,"di")),Ge.prototype.Factory_61z0e$=Ci.prototype.Factory_61z0e$,Ge.prototype.FactoryOrNull_61z0e$=Ci.prototype.FactoryOrNull_61z0e$,Ge.prototype.Provider_ohrpre$=Ci.prototype.Provider_ohrpre$,Ge.prototype.Provider_aqo1vk$=Ci.prototype.Provider_aqo1vk$,Ge.prototype.ProviderOrNull_ohrpre$=Ci.prototype.ProviderOrNull_ohrpre$,Ge.prototype.ProviderOrNull_aqo1vk$=Ci.prototype.ProviderOrNull_aqo1vk$,Ge.prototype.Instance_ohrpre$=Ci.prototype.Instance_ohrpre$,Ge.prototype.Instance_331fb8$=Ci.prototype.Instance_331fb8$,Ge.prototype.InstanceOrNull_ohrpre$=Ci.prototype.InstanceOrNull_ohrpre$,Ge.prototype.InstanceOrNull_331fb8$=Ci.prototype.InstanceOrNull_331fb8$,Object.defineProperty(We.prototype,"di",Object.getOwnPropertyDescriptor(Ci.prototype,"di")),We.prototype.Factory_61z0e$=Ci.prototype.Factory_61z0e$,We.prototype.FactoryOrNull_61z0e$=Ci.prototype.FactoryOrNull_61z0e$,We.prototype.Provider_ohrpre$=Ci.prototype.Provider_ohrpre$,We.prototype.Provider_aqo1vk$=Ci.prototype.Provider_aqo1vk$,We.prototype.ProviderOrNull_ohrpre$=Ci.prototype.ProviderOrNull_ohrpre$,We.prototype.ProviderOrNull_aqo1vk$=Ci.prototype.ProviderOrNull_aqo1vk$,We.prototype.Instance_ohrpre$=Ci.prototype.Instance_ohrpre$,We.prototype.Instance_331fb8$=Ci.prototype.Instance_331fb8$,We.prototype.InstanceOrNull_ohrpre$=Ci.prototype.InstanceOrNull_ohrpre$,We.prototype.InstanceOrNull_331fb8$=Ci.prototype.InstanceOrNull_331fb8$,He.prototype.Factory_61z0e$=We.prototype.Factory_61z0e$,He.prototype.FactoryOrNull_61z0e$=We.prototype.FactoryOrNull_61z0e$,He.prototype.Provider_ohrpre$=We.prototype.Provider_ohrpre$,He.prototype.Provider_aqo1vk$=We.prototype.Provider_aqo1vk$,He.prototype.ProviderOrNull_aqo1vk$=We.prototype.ProviderOrNull_aqo1vk$,He.prototype.ProviderOrNull_ohrpre$=We.prototype.ProviderOrNull_ohrpre$,He.prototype.Instance_ohrpre$=We.prototype.Instance_ohrpre$,He.prototype.Instance_331fb8$=We.prototype.Instance_331fb8$,He.prototype.InstanceOrNull_331fb8$=We.prototype.InstanceOrNull_331fb8$,He.prototype.InstanceOrNull_ohrpre$=We.prototype.InstanceOrNull_ohrpre$,nn.prototype.factoryFullName=Je.prototype.factoryFullName,Object.defineProperty(nn.prototype,"scope",Object.getOwnPropertyDescriptor(Je.prototype,"scope")),Object.defineProperty(nn.prototype,"description",Object.getOwnPropertyDescriptor(Je.prototype,"description")),Object.defineProperty(nn.prototype,"fullDescription",Object.getOwnPropertyDescriptor(Je.prototype,"fullDescription")),Object.defineProperty(nn.prototype,"copier",Object.getOwnPropertyDescriptor(Je.prototype,"copier")),Object.defineProperty(nn.prototype,"supportSubTypes",Object.getOwnPropertyDescriptor(Je.prototype,"supportSubTypes")),$n.prototype.factoryFullName=Je.prototype.factoryFullName,Object.defineProperty($n.prototype,"scope",Object.getOwnPropertyDescriptor(Je.prototype,"scope")),Object.defineProperty($n.prototype,"description",Object.getOwnPropertyDescriptor(Je.prototype,"description")),Object.defineProperty($n.prototype,"fullDescription",Object.getOwnPropertyDescriptor(Je.prototype,"fullDescription")),Object.defineProperty($n.prototype,"copier",Object.getOwnPropertyDescriptor(Je.prototype,"copier")),Object.defineProperty($n.prototype,"supportSubTypes",Object.getOwnPropertyDescriptor(Je.prototype,"supportSubTypes")),En.prototype.Factory_61z0e$=Ge.prototype.Factory_61z0e$,En.prototype.FactoryOrNull_61z0e$=Ge.prototype.FactoryOrNull_61z0e$,En.prototype.Provider_ohrpre$=Ge.prototype.Provider_ohrpre$,En.prototype.Provider_aqo1vk$=Ge.prototype.Provider_aqo1vk$,En.prototype.ProviderOrNull_ohrpre$=Ge.prototype.ProviderOrNull_ohrpre$,En.prototype.ProviderOrNull_aqo1vk$=Ge.prototype.ProviderOrNull_aqo1vk$,En.prototype.Instance_ohrpre$=Ge.prototype.Instance_ohrpre$,En.prototype.Instance_331fb8$=Ge.prototype.Instance_331fb8$,En.prototype.InstanceOrNull_ohrpre$=Ge.prototype.InstanceOrNull_ohrpre$,En.prototype.InstanceOrNull_331fb8$=Ge.prototype.InstanceOrNull_331fb8$,Object.defineProperty(yn.prototype,"argType",Object.getOwnPropertyDescriptor(nn.prototype,"argType")),yn.prototype.factoryFullName=nn.prototype.factoryFullName,Object.defineProperty(yn.prototype,"scope",Object.getOwnPropertyDescriptor(nn.prototype,"scope")),Object.defineProperty(yn.prototype,"description",Object.getOwnPropertyDescriptor(nn.prototype,"description")),Object.defineProperty(yn.prototype,"fullDescription",Object.getOwnPropertyDescriptor(nn.prototype,"fullDescription")),Object.defineProperty(yn.prototype,"supportSubTypes",Object.getOwnPropertyDescriptor(nn.prototype,"supportSubTypes")),bn.prototype.factoryFullName=Je.prototype.factoryFullName,Object.defineProperty(bn.prototype,"scope",Object.getOwnPropertyDescriptor(Je.prototype,"scope")),Object.defineProperty(bn.prototype,"description",Object.getOwnPropertyDescriptor(Je.prototype,"description")),Object.defineProperty(bn.prototype,"fullDescription",Object.getOwnPropertyDescriptor(Je.prototype,"fullDescription")),Object.defineProperty(bn.prototype,"copier",Object.getOwnPropertyDescriptor(Je.prototype,"copier")),Object.defineProperty(bn.prototype,"supportSubTypes",Object.getOwnPropertyDescriptor(Je.prototype,"supportSubTypes")),Object.defineProperty(vn.prototype,"description",Object.getOwnPropertyDescriptor(Je.prototype,"description")),Object.defineProperty(vn.prototype,"fullDescription",Object.getOwnPropertyDescriptor(Je.prototype,"fullDescription")),Object.defineProperty(vn.prototype,"supportSubTypes",Object.getOwnPropertyDescriptor(Je.prototype,"supportSubTypes")),Object.defineProperty(Cn.prototype,"argType",Object.getOwnPropertyDescriptor(nn.prototype,"argType")),Cn.prototype.factoryFullName=nn.prototype.factoryFullName,Object.defineProperty(Cn.prototype,"scope",Object.getOwnPropertyDescriptor(nn.prototype,"scope")),Object.defineProperty(Cn.prototype,"description",Object.getOwnPropertyDescriptor(nn.prototype,"description")),Object.defineProperty(Cn.prototype,"fullDescription",Object.getOwnPropertyDescriptor(nn.prototype,"fullDescription")),Object.defineProperty(Cn.prototype,"copier",Object.getOwnPropertyDescriptor(nn.prototype,"copier")),Object.defineProperty(Cn.prototype,"supportSubTypes",Object.getOwnPropertyDescriptor(nn.prototype,"supportSubTypes")),Object.defineProperty(Nn.prototype,"argType",Object.getOwnPropertyDescriptor(nn.prototype,"argType")),Object.defineProperty(Nn.prototype,"description",Object.getOwnPropertyDescriptor(nn.prototype,"description")),Object.defineProperty(Nn.prototype,"fullDescription",Object.getOwnPropertyDescriptor(nn.prototype,"fullDescription")),Object.defineProperty(Nn.prototype,"supportSubTypes",Object.getOwnPropertyDescriptor(nn.prototype,"supportSubTypes")),Object.defineProperty(Ln.prototype,"argType",Object.getOwnPropertyDescriptor(nn.prototype,"argType")),Ln.prototype.factoryFullName=nn.prototype.factoryFullName,Object.defineProperty(Ln.prototype,"scope",Object.getOwnPropertyDescriptor(nn.prototype,"scope")),Object.defineProperty(Ln.prototype,"description",Object.getOwnPropertyDescriptor(nn.prototype,"description")),Object.defineProperty(Ln.prototype,"fullDescription",Object.getOwnPropertyDescriptor(nn.prototype,"fullDescription")),Object.defineProperty(Ln.prototype,"supportSubTypes",Object.getOwnPropertyDescriptor(nn.prototype,"supportSubTypes")),Object.defineProperty(zn.prototype,"argType",Object.getOwnPropertyDescriptor(nn.prototype,"argType")),zn.prototype.factoryFullName=nn.prototype.factoryFullName,Object.defineProperty(zn.prototype,"scope",Object.getOwnPropertyDescriptor(nn.prototype,"scope")),Object.defineProperty(zn.prototype,"copier",Object.getOwnPropertyDescriptor(nn.prototype,"copier")),Object.defineProperty(zn.prototype,"supportSubTypes",Object.getOwnPropertyDescriptor(nn.prototype,"supportSubTypes")),wn.prototype.Bind_exja01$=Jt.prototype.Bind_exja01$,wn.prototype.Bind_m0ro4c$=Jt.prototype.Bind_m0ro4c$,wn.prototype.Bind_b6zv6g$=Jt.prototype.Bind_b6zv6g$,wn.prototype.BindSet_m0ro4c$=Jt.prototype.BindSet_m0ro4c$,wn.prototype.constant_obdoaf$=Jt.prototype.constant_obdoaf$,wn.prototype.Delegate_exja01$=Jt.prototype.Delegate_exja01$,wn.prototype.import_dwjwn5$=Jt.prototype.import_dwjwn5$,wn.prototype.importAll_k7it48$=Jt.prototype.importAll_k7it48$,wn.prototype.importAll_lbhl2u$=Jt.prototype.importAll_lbhl2u$,wn.prototype.importOnce_dwjwn5$=Jt.prototype.importOnce_dwjwn5$,In.prototype.extend_nltjgj$=ee.prototype.extend_nltjgj$,In.prototype.extend_lto1om$=ee.prototype.extend_lto1om$,Un.prototype.bind_qpmgza$=Ce.prototype.bind_qpmgza$,Un.prototype.extend_5tbdl8$=Ce.prototype.extend_5tbdl8$,Un.prototype.subBuilder_dqye30$=Ce.prototype.subBuilder_dqye30$,Jn.prototype.provider_ag9259$$default=ye.prototype.provider_ag9259$$default,Jn.prototype.providerOrNull_ag9259$$default=ye.prototype.providerOrNull_ag9259$$default,Jn.prototype.allProviders_ag9259$$default=ye.prototype.allProviders_ag9259$$default,Jn.prototype.factoryOrNull_dht9zw$=ye.prototype.factoryOrNull_dht9zw$,Jn.prototype.factory_dht9zw$=ye.prototype.factory_dht9zw$,Jn.prototype.allFactories_dht9zw$=ye.prototype.allFactories_dht9zw$,Jn.prototype.provider_ag9259$=ye.prototype.provider_ag9259$,Jn.prototype.providerOrNull_ag9259$=ye.prototype.providerOrNull_ag9259$,Jn.prototype.allProviders_ag9259$=ye.prototype.allProviders_ag9259$,Object.defineProperty(ei.prototype,"di",Object.getOwnPropertyDescriptor(kt.prototype,"di")),Object.defineProperty(ei.prototype,"diContext",Object.getOwnPropertyDescriptor(kt.prototype,"diContext")),Object.defineProperty(ei.prototype,"diTrigger",Object.getOwnPropertyDescriptor(kt.prototype,"diTrigger")),ai.prototype.Factory_61z0e$=Ci.prototype.Factory_61z0e$,ai.prototype.FactoryOrNull_61z0e$=Ci.prototype.FactoryOrNull_61z0e$,ai.prototype.Provider_ohrpre$=Ci.prototype.Provider_ohrpre$,ai.prototype.Provider_aqo1vk$=Ci.prototype.Provider_aqo1vk$,ai.prototype.ProviderOrNull_ohrpre$=Ci.prototype.ProviderOrNull_ohrpre$,ai.prototype.ProviderOrNull_aqo1vk$=Ci.prototype.ProviderOrNull_aqo1vk$,ai.prototype.Instance_ohrpre$=Ci.prototype.Instance_ohrpre$,ai.prototype.Instance_331fb8$=Ci.prototype.Instance_331fb8$,ai.prototype.InstanceOrNull_331fb8$=Ci.prototype.InstanceOrNull_331fb8$,ai.prototype.InstanceOrNull_ohrpre$=Ci.prototype.InstanceOrNull_ohrpre$,hi.prototype.find_9mbcap$=Ne.prototype.find_9mbcap$,Object.defineProperty(Ei.prototype,"di",Object.getOwnPropertyDescriptor(Ci.prototype,"di")),Ei.prototype.Factory_61z0e$=Ci.prototype.Factory_61z0e$,Ei.prototype.FactoryOrNull_61z0e$=Ci.prototype.FactoryOrNull_61z0e$,Ei.prototype.Provider_ohrpre$=Ci.prototype.Provider_ohrpre$,Ei.prototype.Provider_aqo1vk$=Ci.prototype.Provider_aqo1vk$,Ei.prototype.ProviderOrNull_ohrpre$=Ci.prototype.ProviderOrNull_ohrpre$,Ei.prototype.ProviderOrNull_aqo1vk$=Ci.prototype.ProviderOrNull_aqo1vk$,Ei.prototype.Instance_ohrpre$=Ci.prototype.Instance_ohrpre$,Ei.prototype.Instance_331fb8$=Ci.prototype.Instance_331fb8$,Ei.prototype.InstanceOrNull_ohrpre$=Ci.prototype.InstanceOrNull_ohrpre$,Ei.prototype.InstanceOrNull_331fb8$=Ci.prototype.InstanceOrNull_331fb8$,Object.defineProperty(yi.prototype,"di",Object.getOwnPropertyDescriptor(kt.prototype,"di")),Object.defineProperty(yi.prototype,"diContext",Object.getOwnPropertyDescriptor(kt.prototype,"diContext")),Object.defineProperty(yi.prototype,"diTrigger",Object.getOwnPropertyDescriptor(kt.prototype,"diTrigger")),Object.defineProperty(bi.prototype,"di",Object.getOwnPropertyDescriptor(kt.prototype,"di")),Object.defineProperty(bi.prototype,"diContext",Object.getOwnPropertyDescriptor(kt.prototype,"diContext")),Object.defineProperty(bi.prototype,"diTrigger",Object.getOwnPropertyDescriptor(kt.prototype,"diTrigger")),t})?i.apply(e,o):i)||(t.exports=r)},function(t,e){var n={}.toString;t.exports=Array.isArray||function(t){return"[object Array]"==n.call(t)}},function(t,e,n){var i,o,r;o=[e,n(31),n(282),n(85),n(283),n(366),n(149)],void 0===(r="function"==typeof(i=function(t,e,n,i,o,r,s){"use strict";var a=n.com.ustadmobile.door.room.RoomDatabase,c=e.Kind.CLASS,l=n.com.ustadmobile.door.util.DoorJsImplClasses,u=e.getKClass,h=e.Kind.OBJECT,d=n.com.ustadmobile.door.ext.DoorDatabaseMetadata,p=e.kotlin.collections.listOf_i5x0yv$,_=e.kotlin.LazyThreadSafetyMode,m=n.com.ustadmobile.door.replication.ReplicationFieldMetaData,f=n.com.ustadmobile.door.replication.ReplicationEntityMetaData,g=e.kotlin.to_ujzrz7$,$=e.kotlin.collections.mapOf_qfcya0$,E=e.kotlin.lazy_kls4a0$,y=e.kotlin.collections.emptyMap_q3lmfv$,b=n.com.ustadmobile.door.ext.mutableLinkedListOf_i5x0yv$,S=e.kotlin.text.trimMargin_rjktp$,v=e.kotlin.IllegalStateException_init_pdl1vj$,C=e.kotlin.coroutines.intrinsics.COROUTINE_SUSPENDED,N=e.kotlin.coroutines.CoroutineImpl,T=n.com.ustadmobile.door.ext.doorDatabaseMetadata_wddka1$,L=n.com.ustadmobile.door.room.InvalidationTracker,z=n.com.ustadmobile.door.room.RoomDatabaseJdbcImplHelper,w=n.com.ustadmobile.door.ext.get_rootDatabase_jv9r7q$,O=e.equals,R=i.kotlinx.coroutines,A=n.com.ustadmobile.door.replication.ReplicationNotificationDispatcher,x=n.com.ustadmobile.door.ext.get_replicationNotificationDispatcher_jv9r7q$,I=e.kotlin.lazy_klfg04$,U=n.com.ustadmobile.door.util.DeleteZombieAttachmentsListener,D=n.com.ustadmobile.door.IncomingReplicationListenerHelper,P=n.com.ustadmobile.door.util.NodeIdAuthCache,M=n.com.ustadmobile.door.ext.get_nodeIdAuthCache_jv9r7q$,k=n.com.ustadmobile.door.DoorPrimaryKeyManager,j=n.com.ustadmobile.door.DoorDatabaseJdbc,G=n.com.ustadmobile.door.room.RoomJdbcImpl,q=e.kotlin.collections.copyToArray,F=e.kotlin.collections.ArrayList_init_287e2$,B=n.com.ustadmobile.door.DoorDatabaseReplicateWrapper,W=n.com.ustadmobile.door.ext.deleteFromChangeLog_gv7c8$,H=e.kotlin.collections.setOf_mh5how$,V=e.kotlin.Unit,K=n.com.ustadmobile.door.ext.withDoorTransactionAsync_743ax9$,X=e.Long.ZERO,J=n.com.ustadmobile.door.util.systemTimeInMillis,Y=o.io.github.aakira.napier,Q=e.toString,Z=e.kotlin.collections.setOf_i5x0yv$,tt=n.com.ustadmobile.door.replication.ReplicationRunOnChangeRunner,et=e.kotlin.collections.LinkedHashSet_init_287e2$,nt=n.com.ustadmobile.door.replication.makeNewSubscriptionManager_34ban0$,it=n.com.ustadmobile.door.RepositoryHelper,ot=n.com.ustadmobile.door.DoorDatabaseRepository,rt=n.com.ustadmobile.door.ext.prepareAndUseStatement_m8en3l$,st=n.com.ustadmobile.door.PreparedStatementConfig,at=n.com.ustadmobile.door.jdbc.ext.executeUpdateAsyncKmp_o9f2ds$,ct=n.com.ustadmobile.door.ext.prepareAndUseStatementAsync_2py00n$,lt=n.com.ustadmobile.door.jdbc.ext.mapNextRow_mkwwgd$,ut=n.com.ustadmobile.door.jdbc.ext.useResults_vtdvuh$,ht=n.com.ustadmobile.door.ext.prepareAndUseStatement_kor20f$,dt=n.com.ustadmobile.door.jdbc.ext.executeQueryAsyncKmp_o9f2ds$,pt=n.com.ustadmobile.door.EntityInsertionAdapter,_t=n.com.ustadmobile.door.ext.get_doorPrimaryKeyManager_jv9r7q$,mt=n.com.ustadmobile.door.jdbc.ext.mapRows_vtdvuh$,ft=n.com.ustadmobile.door.LiveDataImpl,gt=n.com.ustadmobile.door.paging.DataSourceFactory,$t=n.com.ustadmobile.door.ext.prepareAndUseStatementAsync_1gpljt$,Et=e.kotlin.collections.listOf_mh5how$,yt=n.com.ustadmobile.door.ext.createArrayOrProxyArrayOf_ewkpb9$,bt=n.com.ustadmobile.door.attachments.storeAttachment_jk99zw$,St=n.com.ustadmobile.door.ext.hasListOrArrayParams_oflprf$,vt=n.com.ustadmobile.door.ext.copyWithExtraParams_ab1y0s$,Ct=n.com.ustadmobile.door.ext.copy_bzgsjb$,Nt=n.com.ustadmobile.door.attachments.EntityWithAttachment,Tt=(e.defineInlineFunction,e.wrapFunction,n.com.ustadmobile.door.ext.dbType_omobsc$),Lt=e.kotlin.collections.toList_us0mfu$,zt=e.kotlin.io.println_s8jyv4$,wt=n.com.ustadmobile.door.ext.minifySql_pdl1vz$,Ot=e.kotlin.collections.joinToString_cgipc5$,Rt=n.com.ustadmobile.door.DoorDatabaseCallbackStatementList,At=e.kotlin.collections.emptyList_287e2$,xt=n.com.ustadmobile.door.ext.execSqlBatch_3112hw$,It=n.com.ustadmobile.door.migration.DoorMigrationSync,Ut=e.Kind.INTERFACE,Dt=(i.kotlinx.coroutines.launch_s496o7$,n.com.ustadmobile.door.lifecycle.Observer),Pt=(n.com.ustadmobile.door.doorMainDispatcher,e.getCallableRef,e.kotlin.collections.toList_7wnvza$,e.kotlin.collections.collectionSizeOrDefault_ba2ldo$),Mt=e.kotlin.collections.ArrayList_init_ww73n8$,kt=(e.kotlin.collections.addAll_ipc267$,e.kotlin.collections.LinkedHashMap_init_q3lmfv$,r.com.ustadmobile.lib.util.encryptPassword_61zpoe$),jt=(new e.Long(-1875767296,0),n.com.ustadmobile.door.SimpleDoorQuery),Gt=n.com.ustadmobile.door.migration.DoorMigrationStatementList,qt=r.com.ustadmobile.lib.util.ext.fixTincan_omobsc$,Ft=e.kotlin.collections.plus_mydzjv$,Bt=s.kotlinx.serialization.internal.NullableSerializer,Wt=s.kotlinx.serialization.internal.PluginGeneratedSerialDescriptor,Ht=s.kotlinx.serialization.internal,Vt=s.kotlinx.serialization.UnknownFieldException,Kt=s.kotlinx.serialization.internal.GeneratedSerializer,Xt=e.Long.MAX_VALUE,Jt=e.throwCCE,Yt=e.hashCode,Qt=e.Long.ONE,Zt=e.Long.fromInt(4),te=e.Long.fromInt(8),ee=e.Long.fromInt(25966),ne=(e.Long.fromInt(13),s.kotlinx.serialization.internal.ArrayListSerializer),ie=s.kotlinx.serialization.MissingFieldException_init_61zpoe$,oe=(s.kotlinx.serialization.internal.LinkedHashMapSerializer,e.ensureNotNull),re=e.Long.fromInt(1e4),se=e.Long.fromInt(10001),ae=e.Long.fromInt(10002),ce=e.Long.fromInt(10003),le=e.Long.fromInt(10004),ue=e.Long.fromInt(10005),he=e.Long.fromInt(10006),de=e.Long.fromInt(10007),pe=e.Long.fromInt(10008),_e=e.Long.fromInt(10009),me=e.Long.fromInt(1e5),fe=e.Long.fromInt(100001),ge=e.Long.fromInt(100002),$e=e.Long.fromInt(100003),Ee=e.Long.fromInt(100004),ye=e.Long.fromInt(100005),be=e.kotlin.text.trimIndent_pdl1vz$,Se=e.Long.fromInt(2),ve=e.Long.fromInt(16),Ce=e.Long.fromInt(32),Ne=e.Long.fromInt(64),Te=e.Long.fromInt(128),Le=e.Long.fromInt(256),ze=e.Long.fromInt(512),we=e.Long.fromInt(1024),Oe=e.Long.fromInt(2048),Re=e.Long.fromInt(4096),Ae=e.Long.fromInt(8192),xe=e.Long.fromInt(16384),Ie=e.Long.fromInt(32768),Ue=e.Long.fromInt(65536),De=e.Long.fromInt(131072),Pe=e.Long.fromInt(262144),Me=e.Long.fromInt(524288),ke=e.Long.fromInt(1048576),je=e.Long.fromInt(2097152),Ge=e.Long.fromInt(4194304),qe=e.Long.fromInt(8388608),Fe=e.Long.fromInt(16777216),Be=e.Long.fromInt(33554432),We=e.Long.fromInt(67108864),He=e.Long.fromInt(134217728),Ve=e.Long.fromInt(268435456),Ke=e.Long.fromInt(536870912),Xe=e.Long.fromInt(1073741824),Je=new e.Long(-2147483648,0),Ye=new e.Long(0,1),Qe=new e.Long(0,2),Ze=new e.Long(0,4),tn=new e.Long(0,8),en=new e.Long(0,16),nn=new e.Long(0,32),on=new e.Long(0,64),rn=new e.Long(0,128),sn=new e.Long(0,256),an=new e.Long(0,512),cn=new e.Long(0,1024),ln=new e.Long(0,2048),un=new e.Long(0,4096),hn=new e.Long(0,8192),dn=new e.Long(0,16384),pn=new e.Long(0,32768),_n=new e.Long(0,65536),mn=new e.Long(0,131072),fn=new e.Long(0,262144),gn=new e.Long(25198046,3970),$n=new e.Long(8388674,1026),En=new e.Long(545279430,66),yn=new e.Long(-33554434,127),bn=new e.Long(1048640,20624),Sn=new e.Long(8388674,2),vn=e.Long.fromInt(-2),Cn=e.toByte,Nn=n.com.ustadmobile.door.SyncNodeIdCallback,Tn=i.kotlinx.coroutines.CompletableDeferred_xptg6w$;function Ln(){a.call(this)}function zn(){wn=this,l.call(this),this.dbKClass_1or59m$_0=u(Ln),this.dbImplKClass_mtoxqu$_0=u(Un),this.replicateWrapperImplClass_gokwcl$_0=u(Mn),this.repositoryImplClass_cqcl2d$_0=u(eo),this.metadata_5fnphu$_0=new On}Ln.prototype=Object.create(a.prototype),Ln.prototype.constructor=Ln,zn.prototype=Object.create(l.prototype),zn.prototype.constructor=zn,On.prototype=Object.create(d.prototype),On.prototype.constructor=On,Un.prototype=Object.create(Ln.prototype),Un.prototype.constructor=Un,Mn.prototype=Object.create(Ln.prototype),Mn.prototype.constructor=Mn,eo.prototype=Object.create(Ln.prototype),eo.prototype.constructor=eo,$o.prototype=Object.create(pt.prototype),$o.prototype.constructor=$o,so.prototype=Object.create(ro.prototype),so.prototype.constructor=so,Eo.prototype=Object.create(ro.prototype),Eo.prototype.constructor=Eo,vo.prototype=Object.create(ro.prototype),vo.prototype.constructor=vo,Po.prototype=Object.create(gt.prototype),Po.prototype.constructor=Po,Jo.prototype=Object.create(pt.prototype),Jo.prototype.constructor=Jo,wo.prototype=Object.create(zo.prototype),wo.prototype.constructor=wo,Yo.prototype=Object.create(zo.prototype),Yo.prototype.constructor=Yo,er.prototype=Object.create(zo.prototype),er.prototype.constructor=er,fr.prototype=Object.create(pt.prototype),fr.prototype.constructor=fr,cr.prototype=Object.create(ar.prototype),cr.prototype.constructor=cr,gr.prototype=Object.create(ar.prototype),gr.prototype.constructor=gr,br.prototype=Object.create(ar.prototype),br.prototype.constructor=br,Dr.prototype=Object.create(gt.prototype),Dr.prototype.constructor=Dr,Wr.prototype=Object.create(pt.prototype),Wr.prototype.constructor=Wr,Tr.prototype=Object.create(Nr.prototype),Tr.prototype.constructor=Tr,Hr.prototype=Object.create(Nr.prototype),Hr.prototype.constructor=Hr,Jr.prototype=Object.create(Nr.prototype),Jr.prototype.constructor=Jr,Ts.prototype=Object.create(gt.prototype),Ts.prototype.constructor=Ts,Xs.prototype=Object.create(pt.prototype),Xs.prototype.constructor=Xs,ns.prototype=Object.create(es.prototype),ns.prototype.constructor=ns,Js.prototype=Object.create(es.prototype),Js.prototype.constructor=Js,oa.prototype=Object.create(es.prototype),oa.prototype.constructor=oa,Aa.prototype=Object.create(pt.prototype),Aa.prototype.constructor=Aa,$a.prototype=Object.create(ga.prototype),$a.prototype.constructor=$a,xa.prototype=Object.create(ga.prototype),xa.prototype.constructor=xa,Za.prototype=Object.create(pt.prototype),Za.prototype.constructor=Za,ja.prototype=Object.create(ka.prototype),ja.prototype.constructor=ja,tc.prototype=Object.create(ka.prototype),tc.prototype.constructor=tc,rc.prototype=Object.create(ka.prototype),rc.prototype.constructor=rc,Bc.prototype=Object.create(gt.prototype),Bc.prototype.constructor=Bc,Zc.prototype=Object.create(gt.prototype),Zc.prototype.constructor=Zc,Nl.prototype=Object.create(pt.prototype),Nl.prototype.constructor=Nl,dc.prototype=Object.create(hc.prototype),dc.prototype.constructor=dc,Tl.prototype=Object.create(hc.prototype),Tl.prototype.constructor=Tl,Rl.prototype=Object.create(hc.prototype),Rl.prototype.constructor=Rl,ru.prototype=Object.create(gt.prototype),ru.prototype.constructor=ru,Eu.prototype=Object.create(gt.prototype),Eu.prototype.constructor=Eu,Gu.prototype=Object.create(gt.prototype),Gu.prototype.constructor=Gu,Yu.prototype=Object.create(pt.prototype),Yu.prototype.constructor=Yu,Hl.prototype=Object.create(Wl.prototype),Hl.prototype.constructor=Hl,Qu.prototype=Object.create(Wl.prototype),Qu.prototype.constructor=Qu,ih.prototype=Object.create(Wl.prototype),ih.prototype.constructor=ih,xh.prototype=Object.create(pt.prototype),xh.prototype.constructor=xh,$h.prototype=Object.create(gh.prototype),$h.prototype.constructor=$h,Ih.prototype=Object.create(gh.prototype),Ih.prototype.constructor=Ih,jh.prototype=Object.create(gh.prototype),jh.prototype.constructor=jh,dd.prototype=Object.create(gt.prototype),dd.prototype.constructor=dd,Id.prototype=Object.create(pt.prototype),Id.prototype.constructor=Id,Ud.prototype=Object.create(pt.prototype),Ud.prototype.constructor=Ud,Kh.prototype=Object.create(Vh.prototype),Kh.prototype.constructor=Kh,Dd.prototype=Object.create(Vh.prototype),Dd.prototype.constructor=Dd,Gd.prototype=Object.create(Vh.prototype),Gd.prototype.constructor=Gd,lp.prototype=Object.create(gt.prototype),lp.prototype.constructor=lp,$p.prototype=Object.create(gt.prototype),$p.prototype.constructor=$p,Lp.prototype=Object.create(gt.prototype),Lp.prototype.constructor=Lp,Dp.prototype=Object.create(gt.prototype),Dp.prototype.constructor=Dp,Wp.prototype=Object.create(gt.prototype),Wp.prototype.constructor=Wp,o_.prototype=Object.create(pt.prototype),o_.prototype.constructor=o_,Jd.prototype=Object.create(Xd.prototype),Jd.prototype.constructor=Jd,r_.prototype=Object.create(Xd.prototype),r_.prototype.constructor=r_,d_.prototype=Object.create(Xd.prototype),d_.prototype.constructor=d_,I_.prototype=Object.create(pt.prototype),I_.prototype.constructor=I_,y_.prototype=Object.create(E_.prototype),y_.prototype.constructor=y_,Tm.prototype=Object.create(pt.prototype),Tm.prototype.constructor=Tm,Lm.prototype=Object.create(pt.prototype),Lm.prototype.constructor=Lm,D_.prototype=Object.create(U_.prototype),D_.prototype.constructor=D_,zm.prototype=Object.create(U_.prototype),zm.prototype.constructor=zm,Im.prototype=Object.create(U_.prototype),Im.prototype.constructor=Im,tf.prototype=Object.create(pt.prototype),tf.prototype.constructor=tf,Ym.prototype=Object.create(Jm.prototype),Ym.prototype.constructor=Ym,gf.prototype=Object.create(pt.prototype),gf.prototype.constructor=gf,nf.prototype=Object.create(ef.prototype),nf.prototype.constructor=nf,qf.prototype=Object.create(pt.prototype),qf.prototype.constructor=qf,Ef.prototype=Object.create($f.prototype),Ef.prototype.constructor=Ef,ug.prototype=Object.create(pt.prototype),ug.prototype.constructor=ug,Bf.prototype=Object.create(Ff.prototype),Bf.prototype.constructor=Bf,vg.prototype=Object.create(pt.prototype),vg.prototype.constructor=vg,dg.prototype=Object.create(hg.prototype),dg.prototype.constructor=dg,Cg.prototype=Object.create(hg.prototype),Cg.prototype.constructor=Cg,zg.prototype=Object.create(hg.prototype),zg.prototype.constructor=zg,Bg.prototype=Object.create(pt.prototype),Bg.prototype.constructor=Bg,xg.prototype=Object.create(Ag.prototype),xg.prototype.constructor=xg,Wg.prototype=Object.create(Ag.prototype),Wg.prototype.constructor=Wg,Xg.prototype=Object.create(Ag.prototype),Xg.prototype.constructor=Xg,h$.prototype=Object.create(pt.prototype),h$.prototype.constructor=h$,t$.prototype=Object.create(Zg.prototype),t$.prototype.constructor=t$,d$.prototype=Object.create(Zg.prototype),d$.prototype.constructor=d$,f$.prototype=Object.create(Zg.prototype),f$.prototype.constructor=f$,H$.prototype=Object.create(gt.prototype),H$.prototype.constructor=H$,OE.prototype=Object.create(gt.prototype),OE.prototype.constructor=OE,kE.prototype=Object.create(gt.prototype),kE.prototype.constructor=kE,KE.prototype=Object.create(gt.prototype),KE.prototype.constructor=KE,dy.prototype=Object.create(gt.prototype),dy.prototype.constructor=dy,Wy.prototype=Object.create(pt.prototype),Wy.prototype.constructor=Wy,Hy.prototype=Object.create(pt.prototype),Hy.prototype.constructor=Hy,b$.prototype=Object.create(y$.prototype),b$.prototype.constructor=b$,Vy.prototype=Object.create(y$.prototype),Vy.prototype.constructor=Vy,tb.prototype=Object.create(y$.prototype),tb.prototype.constructor=tb,Qb.prototype=Object.create(pt.prototype),Qb.prototype.constructor=Qb,Zb.prototype=Object.create(pt.prototype),Zb.prototype.constructor=Zb,wb.prototype=Object.create(zb.prototype),wb.prototype.constructor=wb,tS.prototype=Object.create(zb.prototype),tS.prototype.constructor=tS,sS.prototype=Object.create(zb.prototype),sS.prototype.constructor=sS,RS.prototype=Object.create(pt.prototype),RS.prototype.constructor=RS,_S.prototype=Object.create(pS.prototype),_S.prototype.constructor=_S,AS.prototype=Object.create(pS.prototype),AS.prototype.constructor=AS,PS.prototype=Object.create(pS.prototype),PS.prototype.constructor=PS,iv.prototype=Object.create(gt.prototype),iv.prototype.constructor=iv,dv.prototype=Object.create(pt.prototype),dv.prototype.constructor=dv,BS.prototype=Object.create(FS.prototype),BS.prototype.constructor=BS,pv.prototype=Object.create(FS.prototype),pv.prototype.constructor=pv,gv.prototype=Object.create(FS.prototype),gv.prototype.constructor=gv,Bv.prototype=Object.create(pt.prototype),Bv.prototype.constructor=Bv,vv.prototype=Object.create(Sv.prototype),vv.prototype.constructor=vv,YC.prototype=Object.create(pt.prototype),YC.prototype.constructor=YC,Hv.prototype=Object.create(Wv.prototype),Hv.prototype.constructor=Hv,cN.prototype=Object.create(pt.prototype),cN.prototype.constructor=cN,ZC.prototype=Object.create(QC.prototype),ZC.prototype.constructor=ZC,lN.prototype=Object.create(QC.prototype),lN.prototype.constructor=lN,pN.prototype=Object.create(QC.prototype),pN.prototype.constructor=pN,xN.prototype=Object.create(pt.prototype),xN.prototype.constructor=xN,$N.prototype=Object.create(gN.prototype),$N.prototype.constructor=$N,IN.prototype=Object.create(gN.prototype),IN.prototype.constructor=IN,MN.prototype=Object.create(gN.prototype),MN.prototype.constructor=MN,ZN.prototype=Object.create(pt.prototype),ZN.prototype.constructor=ZN,BN.prototype=Object.create(FN.prototype),BN.prototype.constructor=BN,tT.prototype=Object.create(FN.prototype),tT.prototype.constructor=tT,rT.prototype=Object.create(FN.prototype),rT.prototype.constructor=rT,yT.prototype=Object.create(gt.prototype),yT.prototype.constructor=yT,FT.prototype=Object.create(pt.prototype),FT.prototype.constructor=FT,hT.prototype=Object.create(uT.prototype),hT.prototype.constructor=hT,BT.prototype=Object.create(uT.prototype),BT.prototype.constructor=BT,XT.prototype=Object.create(uT.prototype),XT.prototype.constructor=XT,CL.prototype=Object.create(gt.prototype),CL.prototype.constructor=CL,DL.prototype=Object.create(pt.prototype),DL.prototype.constructor=DL,PL.prototype=Object.create(pt.prototype),PL.prototype.constructor=PL,oL.prototype=Object.create(iL.prototype),oL.prototype.constructor=oL,ML.prototype=Object.create(iL.prototype),ML.prototype.constructor=ML,HL.prototype=Object.create(iL.prototype),HL.prototype.constructor=HL,Cz.prototype=Object.create(pt.prototype),Cz.prototype.constructor=Cz,Nz.prototype=Object.create(pt.prototype),Nz.prototype.constructor=Nz,oz.prototype=Object.create(iz.prototype),oz.prototype.constructor=oz,Tz.prototype=Object.create(iz.prototype),Tz.prototype.constructor=Tz,Iz.prototype=Object.create(iz.prototype),Iz.prototype.constructor=Iz,aw.prototype=Object.create(pt.prototype),aw.prototype.constructor=aw,Fz.prototype=Object.create(qz.prototype),Fz.prototype.constructor=Fz,cw.prototype=Object.create(qz.prototype),cw.prototype.constructor=cw,_w.prototype=Object.create(qz.prototype),_w.prototype.constructor=_w,Uw.prototype=Object.create(gt.prototype),Uw.prototype.constructor=Uw,Vw.prototype=Object.create(pt.prototype),Vw.prototype.constructor=Vw,Cw.prototype=Object.create(vw.prototype),Cw.prototype.constructor=Cw,Kw.prototype=Object.create(vw.prototype),Kw.prototype.constructor=Kw,Qw.prototype=Object.create(vw.prototype),Qw.prototype.constructor=Qw,SO.prototype=Object.create(pt.prototype),SO.prototype.constructor=SO,rO.prototype=Object.create(oO.prototype),rO.prototype.constructor=rO,vO.prototype=Object.create(oO.prototype),vO.prototype.constructor=vO,zO.prototype=Object.create(oO.prototype),zO.prototype.constructor=zO,HO.prototype=Object.create(gt.prototype),HO.prototype.constructor=HO,aR.prototype=Object.create(pt.prototype),aR.prototype.constructor=aR,UO.prototype=Object.create(IO.prototype),UO.prototype.constructor=UO,cR.prototype=Object.create(IO.prototype),cR.prototype.constructor=cR,dR.prototype=Object.create(IO.prototype),dR.prototype.constructor=dR,RR.prototype=Object.create(gt.prototype),RR.prototype.constructor=RR,JR.prototype=Object.create(pt.prototype),JR.prototype.constructor=JR,yR.prototype=Object.create(ER.prototype),yR.prototype.constructor=yR,YR.prototype=Object.create(ER.prototype),YR.prototype.constructor=YR,eA.prototype=Object.create(ER.prototype),eA.prototype.constructor=eA,vA.prototype=Object.create(gt.prototype),vA.prototype.constructor=vA,GA.prototype=Object.create(pt.prototype),GA.prototype.constructor=GA,qA.prototype=Object.create(pt.prototype),qA.prototype.constructor=qA,uA.prototype=Object.create(lA.prototype),uA.prototype.constructor=uA,FA.prototype=Object.create(lA.prototype),FA.prototype.constructor=FA,YA.prototype=Object.create(lA.prototype),YA.prototype.constructor=YA,fx.prototype=Object.create(gt.prototype),fx.prototype.constructor=fx,xx.prototype=Object.create(pt.prototype),xx.prototype.constructor=xx,ax.prototype=Object.create(sx.prototype),ax.prototype.constructor=ax,Ix.prototype=Object.create(sx.prototype),Ix.prototype.constructor=Ix,Yx.prototype=Object.create(pt.prototype),Yx.prototype.constructor=Yx,qx.prototype=Object.create(Gx.prototype),qx.prototype.constructor=qx,Qx.prototype=Object.create(Gx.prototype),Qx.prototype.constructor=Qx,eI.prototype=Object.create(Gx.prototype),eI.prototype.constructor=eI,mI.prototype=Object.create(pt.prototype),mI.prototype.constructor=mI,aI.prototype=Object.create(sI.prototype),aI.prototype.constructor=aI,fI.prototype=Object.create(sI.prototype),fI.prototype.constructor=fI,yI.prototype=Object.create(sI.prototype),yI.prototype.constructor=yI,DI.prototype=Object.create(gt.prototype),DI.prototype.constructor=DI,iU.prototype=Object.create(pt.prototype),iU.prototype.constructor=iU,oU.prototype=Object.create(pt.prototype),oU.prototype.constructor=oU,NI.prototype=Object.create(CI.prototype),NI.prototype.constructor=NI,rU.prototype=Object.create(CI.prototype),rU.prototype.constructor=rU,lU.prototype=Object.create(CI.prototype),lU.prototype.constructor=lU,xU.prototype=Object.create(pt.prototype),xU.prototype.constructor=xU,gU.prototype=Object.create(fU.prototype),gU.prototype.constructor=gU,IU.prototype=Object.create(fU.prototype),IU.prototype.constructor=IU,GU.prototype=Object.create(fU.prototype),GU.prototype.constructor=GU,cD.prototype=Object.create(gt.prototype),cD.prototype.constructor=cD,PD.prototype=Object.create(pt.prototype),PD.prototype.constructor=PD,MD.prototype=Object.create(pt.prototype),MD.prototype.constructor=MD,JU.prototype=Object.create(XU.prototype),JU.prototype.constructor=JU,kD.prototype=Object.create(XU.prototype),kD.prototype.constructor=kD,WD.prototype=Object.create(XU.prototype),WD.prototype.constructor=WD,uP.prototype=Object.create(pt.prototype),uP.prototype.constructor=uP,eP.prototype=Object.create(tP.prototype),eP.prototype.constructor=eP,hP.prototype=Object.create(tP.prototype),hP.prototype.constructor=hP,mP.prototype=Object.create(tP.prototype),mP.prototype.constructor=mP,zP.prototype=Object.create(gt.prototype),zP.prototype.constructor=zP,MP.prototype=Object.create(pt.prototype),MP.prototype.constructor=MP,yP.prototype=Object.create(EP.prototype),yP.prototype.constructor=yP,kP.prototype=Object.create(EP.prototype),kP.prototype.constructor=kP,FP.prototype=Object.create(EP.prototype),FP.prototype.constructor=FP,nM.prototype=Object.create(gt.prototype),nM.prototype.constructor=nM,pM.prototype=Object.create(pt.prototype),pM.prototype.constructor=pM,KP.prototype=Object.create(VP.prototype),KP.prototype.constructor=KP,_M.prototype=Object.create(VP.prototype),_M.prototype.constructor=_M,$M.prototype=Object.create(VP.prototype),$M.prototype.constructor=$M,DM.prototype=Object.create(gt.prototype),DM.prototype.constructor=DM,ik.prototype=Object.create(pt.prototype),ik.prototype.constructor=ik,ok.prototype=Object.create(pt.prototype),ok.prototype.constructor=ok,CM.prototype=Object.create(vM.prototype),CM.prototype.constructor=CM,rk.prototype=Object.create(vM.prototype),rk.prototype.constructor=rk,uk.prototype=Object.create(vM.prototype),uk.prototype.constructor=uk,Tk.prototype=Object.create(pt.prototype),Tk.prototype.constructor=Tk,yk.prototype=Object.create(Ek.prototype),yk.prototype.constructor=yk,qk.prototype=Object.create(gt.prototype),qk.prototype.constructor=qk,Yk.prototype=Object.create(pt.prototype),Yk.prototype.constructor=Yk,zk.prototype=Object.create(Lk.prototype),zk.prototype.constructor=zk,Qk.prototype=Object.create(Lk.prototype),Qk.prototype.constructor=Qk,oj.prototype=Object.create(Lk.prototype),oj.prototype.constructor=oj,Ej.prototype=Object.create(pt.prototype),Ej.prototype.constructor=Ej,hj.prototype=Object.create(uj.prototype),hj.prototype.constructor=hj,yj.prototype=Object.create(uj.prototype),yj.prototype.constructor=yj,Cj.prototype=Object.create(uj.prototype),Cj.prototype.constructor=Cj,Hj.prototype=Object.create(pt.prototype),Hj.prototype.constructor=Hj,wj.prototype=Object.create(zj.prototype),wj.prototype.constructor=wj,aG.prototype=Object.create(pt.prototype),aG.prototype.constructor=aG,cG.prototype=Object.create(pt.prototype),cG.prototype.constructor=cG,Kj.prototype=Object.create(Vj.prototype),Kj.prototype.constructor=Kj,lG.prototype=Object.create(Vj.prototype),lG.prototype.constructor=lG,pG.prototype=Object.create(Vj.prototype),pG.prototype.constructor=pG,AG.prototype=Object.create(pt.prototype),AG.prototype.constructor=AG,xG.prototype=Object.create(pt.prototype),xG.prototype.constructor=xG,bG.prototype=Object.create(yG.prototype),bG.prototype.constructor=bG,Eq.prototype=Object.create(gt.prototype),Eq.prototype.constructor=Eq,Uq.prototype=Object.create(pt.prototype),Uq.prototype.constructor=Uq,Dq.prototype=Object.create(pt.prototype),Dq.prototype.constructor=Dq,Pq.prototype=Object.create(pt.prototype),Pq.prototype.constructor=Pq,Mq.prototype=Object.create(pt.prototype),Mq.prototype.constructor=Mq,kq.prototype=Object.create(pt.prototype),kq.prototype.constructor=kq,jq.prototype=Object.create(pt.prototype),jq.prototype.constructor=jq,Gq.prototype=Object.create(pt.prototype),Gq.prototype.constructor=Gq,UG.prototype=Object.create(IG.prototype),UG.prototype.constructor=UG,qq.prototype=Object.create(IG.prototype),qq.prototype.constructor=qq,Jq.prototype=Object.create(IG.prototype),Jq.prototype.constructor=Jq,QF.prototype=Object.create(pt.prototype),QF.prototype.constructor=QF,_F.prototype=Object.create(pF.prototype),_F.prototype.constructor=_F,ZF.prototype=Object.create(pF.prototype),ZF.prototype.constructor=ZF,lB.prototype=Object.create(pF.prototype),lB.prototype.constructor=lB,ZB.prototype=Object.create(pt.prototype),ZB.prototype.constructor=ZB,vB.prototype=Object.create(SB.prototype),vB.prototype.constructor=vB,tW.prototype=Object.create(SB.prototype),tW.prototype.constructor=tW,lW.prototype=Object.create(SB.prototype),lW.prototype.constructor=lW,HW.prototype=Object.create(pt.prototype),HW.prototype.constructor=HW,vW.prototype=Object.create(SW.prototype),vW.prototype.constructor=vW,VW.prototype=Object.create(SW.prototype),VW.prototype.constructor=VW,QW.prototype=Object.create(SW.prototype),QW.prototype.constructor=QW,TH.prototype=Object.create(pt.prototype),TH.prototype.constructor=TH,lH.prototype=Object.create(cH.prototype),lH.prototype.constructor=lH,LH.prototype=Object.create(cH.prototype),LH.prototype.constructor=LH,AH.prototype=Object.create(cH.prototype),AH.prototype.constructor=AH,YH.prototype=Object.create(gt.prototype),YH.prototype.constructor=YH,bV.prototype=Object.create(pt.prototype),bV.prototype.constructor=bV,SV.prototype=Object.create(pt.prototype),SV.prototype.constructor=SV,kH.prototype=Object.create(MH.prototype),kH.prototype.constructor=kH,vV.prototype=Object.create(MH.prototype),vV.prototype.constructor=vV,wV.prototype=Object.create(MH.prototype),wV.prototype.constructor=wV,oK.prototype=Object.create(gt.prototype),oK.prototype.constructor=oK,yK.prototype=Object.create(pt.prototype),yK.prototype.constructor=yK,PV.prototype=Object.create(DV.prototype),PV.prototype.constructor=PV,bK.prototype=Object.create(DV.prototype),bK.prototype.constructor=bK,zK.prototype=Object.create(DV.prototype),zK.prototype.constructor=zK,sX.prototype=Object.create(gt.prototype),sX.prototype.constructor=sX,mX.prototype=Object.create(pt.prototype),mX.prototype.constructor=mX,kK.prototype=Object.create(MK.prototype),kK.prototype.constructor=kK,fX.prototype=Object.create(MK.prototype),fX.prototype.constructor=fX,yX.prototype=Object.create(MK.prototype),yX.prototype.constructor=yX,BX.prototype=Object.create(gt.prototype),BX.prototype.constructor=BX,eJ.prototype=Object.create(pt.prototype),eJ.prototype.constructor=eJ,OX.prototype=Object.create(wX.prototype),OX.prototype.constructor=OX,nJ.prototype=Object.create(wX.prototype),nJ.prototype.constructor=nJ,sJ.prototype=Object.create(wX.prototype),sJ.prototype.constructor=sJ,XJ.prototype=Object.create(gt.prototype),XJ.prototype.constructor=XJ,hY.prototype=Object.create(pt.prototype),hY.prototype.constructor=hY,_J.prototype=Object.create(pJ.prototype),_J.prototype.constructor=_J,dY.prototype=Object.create(pJ.prototype),dY.prototype.constructor=dY,NY.prototype=Object.create(pJ.prototype),NY.prototype.constructor=NY,JY.prototype=Object.create(pt.prototype),JY.prototype.constructor=JY,GY.prototype=Object.create(jY.prototype),GY.prototype.constructor=GY,gQ.prototype=Object.create(pt.prototype),gQ.prototype.constructor=gQ,$Q.prototype=Object.create(pt.prototype),$Q.prototype.constructor=$Q,QY.prototype=Object.create(YY.prototype),QY.prototype.constructor=QY,EQ.prototype=Object.create(YY.prototype),EQ.prototype.constructor=EQ,CQ.prototype=Object.create(YY.prototype),CQ.prototype.constructor=CQ,KQ.prototype=Object.create(gt.prototype),KQ.prototype.constructor=KQ,lZ.prototype=Object.create(pt.prototype),lZ.prototype.constructor=lZ,AQ.prototype=Object.create(RQ.prototype),AQ.prototype.constructor=AQ,uZ.prototype=Object.create(RQ.prototype),uZ.prototype.constructor=uZ,gZ.prototype=Object.create(RQ.prototype),gZ.prototype.constructor=gZ,MZ.prototype=Object.create(pt.prototype),MZ.prototype.constructor=MZ,zZ.prototype=Object.create(LZ.prototype),zZ.prototype.constructor=zZ,kZ.prototype=Object.create(LZ.prototype),kZ.prototype.constructor=kZ,FZ.prototype=Object.create(LZ.prototype),FZ.prototype.constructor=FZ,o0.prototype=Object.create(pt.prototype),o0.prototype.constructor=o0,KZ.prototype=Object.create(VZ.prototype),KZ.prototype.constructor=KZ,r0.prototype=Object.create(VZ.prototype),r0.prototype.constructor=r0,l0.prototype=Object.create(VZ.prototype),l0.prototype.constructor=l0,R0.prototype=Object.create(gt.prototype),R0.prototype.constructor=R0,B0.prototype=Object.create(gt.prototype),B0.prototype.constructor=B0,s1.prototype=Object.create(gt.prototype),s1.prototype.constructor=s1,m1.prototype=Object.create(gt.prototype),m1.prototype.constructor=m1,O1.prototype=Object.create(pt.prototype),O1.prototype.constructor=O1,_0.prototype=Object.create(p0.prototype),_0.prototype.constructor=_0,R1.prototype=Object.create(p0.prototype),R1.prototype.constructor=R1,D1.prototype=Object.create(p0.prototype),D1.prototype.constructor=D1,Z1.prototype=Object.create(pt.prototype),Z1.prototype.constructor=Z1,X1.prototype=Object.create(K1.prototype),X1.prototype.constructor=X1,M2.prototype=Object.create(pt.prototype),M2.prototype.constructor=M2,e2.prototype=Object.create(t2.prototype),e2.prototype.constructor=e2,k2.prototype=Object.create(t2.prototype),k2.prototype.constructor=k2,W2.prototype=Object.create(t2.prototype),W2.prototype.constructor=W2,$3.prototype=Object.create(gt.prototype),$3.prototype.constructor=$3,L3.prototype=Object.create(gt.prototype),L3.prototype.constructor=L3,D3.prototype=Object.create(pt.prototype),D3.prototype.constructor=D3,P3.prototype=Object.create(pt.prototype),P3.prototype.constructor=P3,r3.prototype=Object.create(o3.prototype),r3.prototype.constructor=r3,M3.prototype=Object.create(o3.prototype),M3.prototype.constructor=M3,F3.prototype=Object.create(o3.prototype),F3.prototype.constructor=F3,c6.prototype=Object.create(pt.prototype),c6.prototype.constructor=c6,J3.prototype=Object.create(X3.prototype),J3.prototype.constructor=J3,l6.prototype=Object.create(X3.prototype),l6.prototype.constructor=l6,p6.prototype=Object.create(X3.prototype),p6.prototype.constructor=p6,w6.prototype=Object.create(pt.prototype),w6.prototype.constructor=w6,E6.prototype=Object.create($6.prototype),E6.prototype.constructor=E6,O6.prototype=Object.create($6.prototype),O6.prototype.constructor=O6,I6.prototype=Object.create($6.prototype),I6.prototype.constructor=I6,Q4.prototype=Object.create(D4.prototype),Q4.prototype.constructor=Q4,S5.prototype=Object.create(_5.prototype),S5.prototype.constructor=S5,O5.prototype=Object.create(_5.prototype),O5.prototype.constructor=O5,H5.prototype=Object.create(M5.prototype),H5.prototype.constructor=H5,t8.prototype=Object.create(H5.prototype),t8.prototype.constructor=t8,c8.prototype=Object.create(M5.prototype),c8.prototype.constructor=c8,f8.prototype=Object.create(M5.prototype),f8.prototype.constructor=f8,j8.prototype=Object.create(A8.prototype),j8.prototype.constructor=j8,K8.prototype=Object.create(s5.prototype),K8.prototype.constructor=K8,n9.prototype=Object.create(s5.prototype),n9.prototype.constructor=n9,u9.prototype=Object.create(s5.prototype),u9.prototype.constructor=u9,$9.prototype=Object.create(s5.prototype),$9.prototype.constructor=$9,I9.prototype=Object.create(T9.prototype),I9.prototype.constructor=I9,z7.prototype=Object.create(o7.prototype),z7.prototype.constructor=z7,D7.prototype=Object.create(o7.prototype),D7.prototype.constructor=D7,stt.prototype=Object.create(J9.prototype),stt.prototype.constructor=stt,Iet.prototype=Object.create($et.prototype),Iet.prototype.constructor=Iet,Jet.prototype=Object.create(Ott.prototype),Jet.prototype.constructor=Jet,ont.prototype=Object.create(Ott.prototype),ont.prototype.constructor=ont,dnt.prototype=Object.create(Ott.prototype),dnt.prototype.constructor=dnt,ynt.prototype=Object.create(Ott.prototype),ynt.prototype.constructor=ynt,znt.prototype=Object.create(Ott.prototype),znt.prototype.constructor=znt,Eit.prototype=Object.create(iit.prototype),Eit.prototype.constructor=Eit,Uit.prototype=Object.create(Lit.prototype),Uit.prototype.constructor=Uit,Bit.prototype=Object.create(Lit.prototype),Bit.prototype.constructor=Bit,Dit.prototype=Object.create(Bit.prototype),Dit.prototype.constructor=Dit,_ot.prototype=Object.create(zct.prototype),_ot.prototype.constructor=_ot,trt.prototype=Object.create(Hot.prototype),trt.prototype.constructor=trt,frt.prototype=Object.create(crt.prototype),frt.prototype.constructor=frt,Grt.prototype=Object.create(xrt.prototype),Grt.prototype.constructor=Grt,vst.prototype=Object.create(mst.prototype),vst.prototype.constructor=vst,gat.prototype=Object.create(lat.prototype),gat.prototype.constructor=gat,Xat.prototype=Object.create(xat.prototype),Xat.prototype.constructor=Xat,Elt.prototype=Object.create(hlt.prototype),Elt.prototype.constructor=Elt,Dlt.prototype=Object.create(zct.prototype),Dlt.prototype.constructor=Dlt,Qlt.prototype=Object.create(zct.prototype),Qlt.prototype.constructor=Qlt,sut.prototype=Object.create(zct.prototype),sut.prototype.constructor=sut,_ut.prototype=Object.create(zct.prototype),_ut.prototype.constructor=_ut,tht.prototype=Object.create(Out.prototype),tht.prototype.constructor=tht,Ght.prototype=Object.create(Aht.prototype),Ght.prototype.constructor=Ght,Xht.prototype=Object.create(Cht.prototype),Xht.prototype.constructor=Xht,idt.prototype=Object.create(Cht.prototype),idt.prototype.constructor=idt,Ldt.prototype=Object.create(hdt.prototype),Ldt.prototype.constructor=Ldt,Fdt.prototype=Object.create(Udt.prototype),Fdt.prototype.constructor=Fdt,bpt.prototype=Object.create(ppt.prototype),bpt.prototype.constructor=bpt,t_t.prototype=Object.create(Hpt.prototype),t_t.prototype.constructor=t_t,f_t.prototype=Object.create(Hpt.prototype),f_t.prototype.constructor=f_t,Ln.$metadata$={kind:c,simpleName:"UmAppDatabase",interfaces:[a]},Object.defineProperty(zn.prototype,"dbKClass",{configurable:!0,get:function(){return this.dbKClass_1or59m$_0}}),Object.defineProperty(zn.prototype,"dbImplKClass",{configurable:!0,get:function(){return this.dbImplKClass_mtoxqu$_0}}),Object.defineProperty(zn.prototype,"replicateWrapperImplClass",{configurable:!0,get:function(){return this.replicateWrapperImplClass_gokwcl$_0}});Object.defineProperty(zn.prototype,"repositoryImplClass",{configurable:!0,get:function(){return this.repositoryImplClass_cqcl2d$_0}}),Object.defineProperty(zn.prototype,"metadata",{configurable:!0,get:function(){return this.metadata_5fnphu$_0}}),zn.$metadata$={kind:h,simpleName:"UmAppDatabaseJsImplementations",interfaces:[l]};var wn=null;function On(){xn(),d.call(this),this.allTables_gkz47r$_0=p(["NetworkNode","ClazzLog","ClazzLogAttendanceRecord","Schedule","DateRange","HolidayCalendar","Holiday","ScheduledCheck","AuditLog","CustomField","CustomFieldValue","CustomFieldValueOption","Person","Clazz","ClazzEnrolment","LeavingReason","ContentEntry","ContentEntryContentCategoryJoin","ContentEntryParentChildJoin","ContentEntryRelatedEntryJoin","ContentCategorySchema","ContentCategory","Language","LanguageVariant","AccessToken","PersonAuth","Role","EntityRole","PersonGroup","PersonGroupMember","PersonPicture","ScrapeQueueItem","ScrapeRun","ConnectivityStatus","Container","ContainerEntry","ContainerEntryFile","VerbEntity","XObjectEntity","StatementEntity","ContextXObjectStatementJoin","AgentEntity","StateEntity","StateContentEntity","XLangMapEntry","SyncNode","LocallyAvailableContainer","ContainerETag","School","SchoolMember","Comments","Report","Site","ContainerImportJob","LearnerGroup","LearnerGroupMember","GroupLearningSession","SiteTerms","ClazzContentJoin","PersonParentJoin","ScopedGrant","ErrorReport","ClazzAssignment","ClazzAssignmentContentJoin","CourseAssignmentSubmission","CourseAssignmentSubmissionAttachment","CourseAssignmentMark","ClazzAssignmentRollUp","PersonAuth2","UserSession","ContentJob","ContentJobItem","CourseBlock","CourseTerminology","CourseGroupSet","CourseGroupMember","ChangeLog","ZombieAttachmentData","DoorNode","ReplicationStatus","ClazzLogReplicate","ClazzLogAttendanceRecordReplicate","CourseAssignmentSubmissionReplicate","CourseAssignmentSubmissionAttachmentReplicate","CourseAssignmentMarkReplicate","CourseBlockReplicate","CourseTerminologyReplicate","CourseGroupSetReplicate","CourseGroupMemberReplicate","ScheduleReplicate","HolidayCalendarReplicate","HolidayReplicate","PersonReplicate","ClazzReplicate","ClazzEnrolmentReplicate","LeavingReasonReplicate","ContentEntryReplicate","ContentEntryContentCategoryJoinReplicate","ContentEntryParentChildJoinReplicate","ContentEntryRelatedEntryJoinReplicate","ContentCategorySchemaReplicate","ContentCategoryReplicate","LanguageReplicate","LanguageVariantReplicate","PersonGroupReplicate","PersonGroupMemberReplicate","PersonPictureReplicate","ContainerReplicate","VerbEntityReplicate","XObjectEntityReplicate","StatementEntityReplicate","ContextXObjectStatementJoinReplicate","AgentEntityReplicate","StateEntityReplicate","StateContentEntityReplicate","XLangMapEntryReplicate","SchoolReplicate","SchoolMemberReplicate","CommentsReplicate","ReportReplicate","SiteReplicate","LearnerGroupReplicate","LearnerGroupMemberReplicate","GroupLearningSessionReplicate","SiteTermsReplicate","ClazzContentJoinReplicate","PersonParentJoinReplicate","ScopedGrantReplicate","ErrorReportReplicate","ClazzAssignmentReplicate","ClazzAssignmentContentJoinReplicate","PersonAuth2Replicate","UserSessionReplicate","CoursePicture","CoursePictureReplicate","ContentEntryPicture","ContentEntryPictureReplicate","Chat","ChatMember","Message","MessageReplicate","ChatReplicate","ChatMemberReplicate","MessageRead","MessageReadReplicate","CourseDiscussion","CourseDiscussionReplicate","DiscussionTopic","DiscussionTopicReplicate","DiscussionPost","DiscussionPostReplicate"]),this.replicateEntities_i11jcr$_0=E(_.NONE,In)}function Rn(){An=this,this.TABLE_ID_MAP=y()}Object.defineProperty(On.prototype,"dbClass",{configurable:!0,get:function(){return u(Ln)}}),Object.defineProperty(On.prototype,"hasReadOnlyWrapper",{configurable:!0,get:function(){return!0}}),Object.defineProperty(On.prototype,"hasAttachments",{configurable:!0,get:function(){return!0}}),Object.defineProperty(On.prototype,"syncableTableIdMap",{configurable:!0,get:function(){return xn().TABLE_ID_MAP}}),Object.defineProperty(On.prototype,"version",{configurable:!0,get:function(){return 107}}),Object.defineProperty(On.prototype,"allTables",{configurable:!0,get:function(){return this.allTables_gkz47r$_0}}),Object.defineProperty(On.prototype,"replicateEntities",{configurable:!0,get:function(){return this.replicateEntities_i11jcr$_0.value}}),Rn.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var An=null;function xn(){return null===An&&new Rn,An}function In(){return $([g(14,new f(14,100,"ClazzLog","ClazzLogReplicate","ClazzLog_ReceiveView","clazzLogUid","clazzLogLastChangedTime","clPk","clDestination","clVersionId","clPending",p([new m("clazzLogClazzUid",-5),new m("logDate",-5),new m("timeRecorded",-5),new m("clazzLogDone",16),new m("cancellationNote",-1),new m("clazzLogCancelled",16),new m("clazzLogNumPresent",4),new m("clazzLogNumAbsent",4),new m("clazzLogNumPartial",4),new m("clazzLogScheduleUid",-5),new m("clazzLogStatusFlag",4),new m("clazzLogMSQN",-5),new m("clazzLogLCSN",-5),new m("clazzLogLCB",4),new m("clazzLogLastChangedTime",-5),new m("clazzLogUid",-5)]),p([new m("clPk",-5),new m("clVersionId",-5),new m("clDestination",-5),new m("clPending",16)]),null,null,null,1e3)),g(15,new f(15,100,"ClazzLogAttendanceRecord","ClazzLogAttendanceRecordReplicate","ClazzLogAttendanceRecord_ReceiveView","clazzLogAttendanceRecordUid","clazzLogAttendanceRecordLastChangedTime","clarPk","clarDestination","clarVersionId","clarPending",p([new m("clazzLogAttendanceRecordClazzLogUid",-5),new m("clazzLogAttendanceRecordPersonUid",-5),new m("attendanceStatus",4),new m("clazzLogAttendanceRecordMasterChangeSeqNum",-5),new m("clazzLogAttendanceRecordLocalChangeSeqNum",-5),new m("clazzLogAttendanceRecordLastChangedBy",4),new m("clazzLogAttendanceRecordLastChangedTime",-5),new m("clazzLogAttendanceRecordUid",-5)]),p([new m("clarPk",-5),new m("clarVersionId",-5),new m("clarDestination",-5),new m("clarPending",16)]),null,null,null,1e3)),g(21,new f(21,100,"Schedule","ScheduleReplicate","Schedule_ReceiveView","scheduleUid","scheduleLastChangedTime","schedulePk","scheduleDestination","scheduleVersionId","schedulePending",p([new m("sceduleStartTime",-5),new m("scheduleEndTime",-5),new m("scheduleDay",4),new m("scheduleMonth",4),new m("scheduleFrequency",4),new m("umCalendarUid",-5),new m("scheduleClazzUid",-5),new m("scheduleMasterChangeSeqNum",-5),new m("scheduleLocalChangeSeqNum",-5),new m("scheduleLastChangedBy",4),new m("scheduleLastChangedTime",-5),new m("scheduleActive",16),new m("scheduleUid",-5)]),p([new m("schedulePk",-5),new m("scheduleVersionId",-5),new m("scheduleDestination",-5),new m("schedulePending",16)]),null,null,null,1e3)),g(28,new f(28,100,"HolidayCalendar","HolidayCalendarReplicate","HolidayCalendar_ReceiveView","umCalendarUid","umCalendarLct","hcPk","hcDestination","hcVersionId","hcPending",p([new m("umCalendarName",-1),new m("umCalendarCategory",4),new m("umCalendarActive",16),new m("umCalendarMasterChangeSeqNum",-5),new m("umCalendarLocalChangeSeqNum",-5),new m("umCalendarLastChangedBy",4),new m("umCalendarLct",-5),new m("umCalendarUid",-5)]),p([new m("hcPk",-5),new m("hcVersionId",-5),new m("hcDestination",-5),new m("hcPending",16)]),null,null,null,1e3)),g(99,new f(99,100,"Holiday","HolidayReplicate","Holiday_ReceiveView","holUid","holLct","holidayPk","holidayDestination","holidayVersionId","holidayPending",p([new m("holMasterCsn",-5),new m("holLocalCsn",-5),new m("holLastModBy",4),new m("holLct",-5),new m("holActive",16),new m("holHolidayCalendarUid",-5),new m("holStartTime",-5),new m("holEndTime",-5),new m("holName",-1),new m("holUid",-5)]),p([new m("holidayPk",-5),new m("holidayVersionId",-5),new m("holidayDestination",-5),new m("holidayPending",16)]),null,null,null,1e3)),g(9,new f(9,100,"Person","PersonReplicate","Person_ReceiveView","personUid","personLct","personPk","personDestination","personVersionId","personPending",p([new m("username",-1),new m("firstNames",-1),new m("lastName",-1),new m("emailAddr",-1),new m("phoneNum",-1),new m("gender",4),new m("active",16),new m("admin",16),new m("personNotes",-1),new m("fatherName",-1),new m("fatherNumber",-1),new m("motherName",-1),new m("motherNum",-1),new m("dateOfBirth",-5),new m("personAddress",-1),new m("personOrgId",-1),new m("personGroupUid",-5),new m("personMasterChangeSeqNum",-5),new m("personLocalChangeSeqNum",-5),new m("personLastChangedBy",4),new m("personLct",-5),new m("personCountry",-1),new m("personType",4),new m("personUid",-5)]),p([new m("personPk",-5),new m("personVersionId",-5),new m("personDestination",-5),new m("personPending",16)]),null,null,null,1e3)),g(6,new f(6,0,"Clazz","ClazzReplicate","Clazz_ReceiveView","clazzUid","clazzLct","clazzPk","clazzDestination","clazzVersionId","clazzPending",p([new m("clazzName",-1),new m("clazzDesc",-1),new m("attendanceAverage",6),new m("clazzHolidayUMCalendarUid",-5),new m("clazzScheuleUMCalendarUid",-5),new m("isClazzActive",16),new m("clazzLocationUid",-5),new m("clazzStartTime",-5),new m("clazzEndTime",-5),new m("clazzFeatures",-5),new m("clazzSchoolUid",-5),new m("clazzEnrolmentPolicy",4),new m("clazzTerminologyUid",-5),new m("clazzMasterChangeSeqNum",-5),new m("clazzLocalChangeSeqNum",-5),new m("clazzLastChangedBy",4),new m("clazzLct",-5),new m("clazzTimeZone",-1),new m("clazzStudentsPersonGroupUid",-5),new m("clazzTeachersPersonGroupUid",-5),new m("clazzPendingStudentsPersonGroupUid",-5),new m("clazzParentsPersonGroupUid",-5),new m("clazzCode",-1),new m("clazzUid",-5)]),p([new m("clazzPk",-5),new m("clazzVersionId",-5),new m("clazzDestination",-5),new m("clazzPending",16)]),null,null,null,1e3)),g(65,new f(65,1,"ClazzEnrolment","ClazzEnrolmentReplicate","ClazzEnrolment_ReceiveView","clazzEnrolmentUid","clazzEnrolmentLct","cePk","ceDestination","ceVersionId","cePending",p([new m("clazzEnrolmentPersonUid",-5),new m("clazzEnrolmentClazzUid",-5),new m("clazzEnrolmentDateJoined",-5),new m("clazzEnrolmentDateLeft",-5),new m("clazzEnrolmentRole",4),new m("clazzEnrolmentAttendancePercentage",6),new m("clazzEnrolmentActive",16),new m("clazzEnrolmentLeavingReasonUid",-5),new m("clazzEnrolmentOutcome",4),new m("clazzEnrolmentLocalChangeSeqNum",-5),new m("clazzEnrolmentMasterChangeSeqNum",-5),new m("clazzEnrolmentLastChangedBy",4),new m("clazzEnrolmentLct",-5),new m("clazzEnrolmentUid",-5)]),p([new m("cePk",-5),new m("ceVersionId",-5),new m("ceDestination",-5),new m("cePending",16)]),null,null,null,1e3)),g(410,new f(410,100,"LeavingReason","LeavingReasonReplicate","LeavingReason_ReceiveView","leavingReasonUid","leavingReasonLct","lrPk","lrDestination","lrVersionId","lrPending",p([new m("leavingReasonTitle",-1),new m("leavingReasonMCSN",-5),new m("leavingReasonCSN",-5),new m("leavingReasonLCB",4),new m("leavingReasonLct",-5),new m("leavingReasonUid",-5)]),p([new m("lrPk",-5),new m("lrVersionId",-5),new m("lrDestination",-5),new m("lrPending",16)]),null,null,null,1e3)),g(42,new f(42,100,"ContentEntry","ContentEntryReplicate","ContentEntry_ReceiveView","contentEntryUid","contentEntryLct","cePk","ceDestination","ceVersionId","cePending",p([new m("title",-1),new m("description",-1),new m("entryId",-1),new m("author",-1),new m("publisher",-1),new m("licenseType",4),new m("licenseName",-1),new m("licenseUrl",-1),new m("sourceUrl",-1),new m("thumbnailUrl",-1),new m("lastModified",-5),new m("primaryLanguageUid",-5),new m("languageVariantUid",-5),new m("contentFlags",4),new m("leaf",16),new m("publik",16),new m("ceInactive",16),new m("completionCriteria",4),new m("minScore",4),new m("contentTypeFlag",4),new m("contentOwner",-5),new m("contentEntryLocalChangeSeqNum",-5),new m("contentEntryMasterChangeSeqNum",-5),new m("contentEntryLastChangedBy",4),new m("contentEntryLct",-5),new m("contentEntryUid",-5)]),p([new m("cePk",-5),new m("ceVersionId",-5),new m("ceDestination",-5),new m("cePending",16)]),null,null,null,1e3)),g(3,new f(3,100,"ContentEntryContentCategoryJoin","ContentEntryContentCategoryJoinReplicate","ContentEntryContentCategoryJoin_ReceiveView","ceccjUid","ceccjLct","ceccjPk","ceccjDestination","ceccjVersionId","ceccjPending",p([new m("ceccjContentEntryUid",-5),new m("ceccjContentCategoryUid",-5),new m("ceccjLocalChangeSeqNum",-5),new m("ceccjMasterChangeSeqNum",-5),new m("ceccjLastChangedBy",4),new m("ceccjLct",-5),new m("ceccjUid",-5)]),p([new m("ceccjPk",-5),new m("ceccjVersionId",-5),new m("ceccjDestination",-5),new m("ceccjPending",16)]),null,null,null,1e3)),g(7,new f(7,100,"ContentEntryParentChildJoin","ContentEntryParentChildJoinReplicate","ContentEntryParentChildJoin_ReceiveView","cepcjUid","cepcjLct","cepcjPk","cepcjDestination","cepcjVersionId","cepcjPending",p([new m("cepcjLocalChangeSeqNum",-5),new m("cepcjMasterChangeSeqNum",-5),new m("cepcjLastChangedBy",4),new m("cepcjLct",-5),new m("cepcjParentContentEntryUid",-5),new m("cepcjChildContentEntryUid",-5),new m("childIndex",4),new m("cepcjUid",-5)]),p([new m("cepcjPk",-5),new m("cepcjVersionId",-5),new m("cepcjDestination",-5),new m("cepcjPending",16)]),null,null,null,1e3)),g(8,new f(8,100,"ContentEntryRelatedEntryJoin","ContentEntryRelatedEntryJoinReplicate","ContentEntryRelatedEntryJoin_ReceiveView","cerejUid","cerejLct","cerejPk","cerejDestination","cerejVersionId","cerejPending",p([new m("cerejContentEntryUid",-5),new m("cerejRelatedEntryUid",-5),new m("cerejLastChangedBy",4),new m("relType",4),new m("comment",-1),new m("cerejRelLanguageUid",-5),new m("cerejLocalChangeSeqNum",-5),new m("cerejMasterChangeSeqNum",-5),new m("cerejLct",-5),new m("cerejUid",-5)]),p([new m("cerejPk",-5),new m("cerejVersionId",-5),new m("cerejDestination",-5),new m("cerejPending",16)]),null,null,null,1e3)),g(2,new f(2,100,"ContentCategorySchema","ContentCategorySchemaReplicate","ContentCategorySchema_ReceiveView","contentCategorySchemaUid","contentCategorySchemaLct","ccsPk","ccsDestination","ccsVersionId","ccsPending",p([new m("schemaName",-1),new m("schemaUrl",-1),new m("contentCategorySchemaLocalChangeSeqNum",-5),new m("contentCategorySchemaMasterChangeSeqNum",-5),new m("contentCategorySchemaLastChangedBy",4),new m("contentCategorySchemaLct",-5),new m("contentCategorySchemaUid",-5)]),p([new m("ccsPk",-5),new m("ccsVersionId",-5),new m("ccsDestination",-5),new m("ccsPending",16)]),null,null,null,1e3)),g(1,new f(1,100,"ContentCategory","ContentCategoryReplicate","ContentCategory_ReceiveView","contentCategoryUid","contentCategoryLct","ccPk","ccDestination","ccVersionId","ccPending",p([new m("ctnCatContentCategorySchemaUid",-5),new m("name",-1),new m("contentCategoryLocalChangeSeqNum",-5),new m("contentCategoryMasterChangeSeqNum",-5),new m("contentCategoryLastChangedBy",4),new m("contentCategoryLct",-5),new m("contentCategoryUid",-5)]),p([new m("ccPk",-5),new m("ccVersionId",-5),new m("ccDestination",-5),new m("ccPending",16)]),null,null,null,1e3)),g(13,new f(13,100,"Language","LanguageReplicate","Language_ReceiveView","langUid","langLct","languagePk","languageDestination","languageVersionId","languagePending",p([new m("name",-1),new m("iso_639_1_standard",-1),new m("iso_639_2_standard",-1),new m("iso_639_3_standard",-1),new m("Language_Type",-1),new m("languageActive",16),new m("langLocalChangeSeqNum",-5),new m("langMasterChangeSeqNum",-5),new m("langLastChangedBy",4),new m("langLct",-5),new m("langUid",-5)]),p([new m("languagePk",-5),new m("languageVersionId",-5),new m("languageDestination",-5),new m("languagePending",16)]),null,null,null,1e3)),g(10,new f(10,100,"LanguageVariant","LanguageVariantReplicate","LanguageVariant_ReceiveView","langVariantUid","langVariantLct","lvPk","lvDestination","lvVersionId","lvPending",p([new m("langUid",-5),new m("countryCode",-1),new m("name",-1),new m("langVariantLocalChangeSeqNum",-5),new m("langVariantMasterChangeSeqNum",-5),new m("langVariantLastChangedBy",4),new m("langVariantLct",-5),new m("langVariantUid",-5)]),p([new m("lvPk",-5),new m("lvVersionId",-5),new m("lvDestination",-5),new m("lvPending",16)]),null,null,null,1e3)),g(43,new f(43,100,"PersonGroup","PersonGroupReplicate","PersonGroup_ReceiveView","groupUid","groupLct","pgPk","pgDestination","pgVersionId","pgPending",p([new m("groupMasterCsn",-5),new m("groupLocalCsn",-5),new m("groupLastChangedBy",4),new m("groupLct",-5),new m("groupName",-1),new m("groupActive",16),new m("personGroupFlag",4),new m("groupUid",-5)]),p([new m("pgPk",-5),new m("pgVersionId",-5),new m("pgDestination",-5),new m("pgPending",16)]),null,null,null,1e3)),g(44,new f(44,0,"PersonGroupMember","PersonGroupMemberReplicate","PersonGroupMember_ReceiveView","groupMemberUid","groupMemberLct","pgmPk","pgmDestination","pgmVersionId","pgmPending",p([new m("groupMemberActive",16),new m("groupMemberPersonUid",-5),new m("groupMemberGroupUid",-5),new m("groupMemberMasterCsn",-5),new m("groupMemberLocalCsn",-5),new m("groupMemberLastChangedBy",4),new m("groupMemberLct",-5),new m("groupMemberUid",-5)]),p([new m("pgmPk",-5),new m("pgmVersionId",-5),new m("pgmDestination",-5),new m("pgmPending",16)]),null,null,null,1e3)),g(50,new f(50,100,"PersonPicture","PersonPictureReplicate","PersonPicture_ReceiveView","personPictureUid","personPictureLct","ppPk","ppDestination","ppVersionId","ppPending",p([new m("personPicturePersonUid",-5),new m("personPictureMasterCsn",-5),new m("personPictureLocalCsn",-5),new m("personPictureLastChangedBy",4),new m("personPictureLct",-5),new m("personPictureUri",-1),new m("personPictureMd5",-1),new m("fileSize",4),new m("picTimestamp",-5),new m("mimeType",-1),new m("personPictureActive",16),new m("personPictureUid",-5)]),p([new m("ppPk",-5),new m("ppVersionId",-5),new m("ppDestination",-5),new m("ppPending",16)]),"personPictureUri","personPictureMd5","fileSize",1e3)),g(51,new f(51,100,"Container","ContainerReplicate","Container_ReceiveView","containerUid","cntLct","containerPk","containerDestination","containerVersionId","containerPending",p([new m("cntLocalCsn",-5),new m("cntMasterCsn",-5),new m("cntLastModBy",4),new m("cntLct",-5),new m("fileSize",-5),new m("containerContentEntryUid",-5),new m("cntLastModified",-5),new m("mimeType",-1),new m("remarks",-1),new m("mobileOptimized",16),new m("cntNumEntries",4),new m("containerUid",-5)]),p([new m("containerPk",-5),new m("containerVersionId",-5),new m("containerDestination",-5),new m("containerPending",16)]),null,null,null,1e3)),g(62,new f(62,100,"VerbEntity","VerbEntityReplicate","VerbEntity_ReceiveView","verbUid","verbLct","vePk","veDestination","veVersionId","vePending",p([new m("urlId",-1),new m("verbInActive",16),new m("verbMasterChangeSeqNum",-5),new m("verbLocalChangeSeqNum",-5),new m("verbLastChangedBy",4),new m("verbLct",-5),new m("verbUid",-5)]),p([new m("vePk",-5),new m("veVersionId",-5),new m("veDestination",-5),new m("vePending",16)]),null,null,null,1e3)),g(64,new f(64,100,"XObjectEntity","XObjectEntityReplicate","XObjectEntity_ReceiveView","xObjectUid","xObjectLct","xoePk","xoeDestination","xoeVersionId","xoePending",p([new m("objectType",-1),new m("objectId",-1),new m("definitionType",-1),new m("interactionType",-1),new m("correctResponsePattern",-1),new m("objectContentEntryUid",-5),new m("objectStatementRefUid",-5),new m("xObjectMasterChangeSeqNum",-5),new m("xObjectocalChangeSeqNum",-5),new m("xObjectLastChangedBy",4),new m("xObjectLct",-5),new m("xObjectUid",-5)]),p([new m("xoePk",-5),new m("xoeVersionId",-5),new m("xoeDestination",-5),new m("xoePending",16)]),null,null,null,1e3)),g(60,new f(60,1,"StatementEntity","StatementEntityReplicate","StatementEntity_ReceiveView","statementUid","statementLct","sePk","seDestination","seVersionId","sePending",p([new m("statementId",-1),new m("statementPersonUid",-5),new m("statementVerbUid",-5),new m("xObjectUid",-5),new m("subStatementActorUid",-5),new m("substatementVerbUid",-5),new m("subStatementObjectUid",-5),new m("agentUid",-5),new m("instructorUid",-5),new m("authorityUid",-5),new m("teamUid",-5),new m("resultCompletion",16),new m("resultSuccess",5),new m("resultScoreScaled",6),new m("resultScoreRaw",-5),new m("resultScoreMin",-5),new m("resultScoreMax",-5),new m("resultDuration",-5),new m("resultResponse",-1),new m("timestamp",-5),new m("stored",-5),new m("contextRegistration",-1),new m("contextPlatform",-1),new m("contextStatementId",-1),new m("fullStatement",-1),new m("statementMasterChangeSeqNum",-5),new m("statementLocalChangeSeqNum",-5),new m("statementLastChangedBy",4),new m("statementLct",-5),new m("extensionProgress",4),new m("contentEntryRoot",16),new m("statementContentEntryUid",-5),new m("statementLearnerGroupUid",-5),new m("statementClazzUid",-5),new m("statementUid",-5)]),p([new m("sePk",-5),new m("seVersionId",-5),new m("seDestination",-5),new m("sePending",16)]),null,null,null,1e3)),g(66,new f(66,100,"ContextXObjectStatementJoin","ContextXObjectStatementJoinReplicate","ContextXObjectStatementJoin_ReceiveView","contextXObjectStatementJoinUid","contextXObjectLct","cxosjPk","cxosjDestination","cxosjVersionId","cxosjPending",p([new m("contextActivityFlag",4),new m("contextStatementUid",-5),new m("contextXObjectUid",-5),new m("verbMasterChangeSeqNum",-5),new m("verbLocalChangeSeqNum",-5),new m("verbLastChangedBy",4),new m("contextXObjectLct",-5),new m("contextXObjectStatementJoinUid",-5)]),p([new m("cxosjPk",-5),new m("cxosjVersionId",-5),new m("cxosjDestination",-5),new m("cxosjPending",16)]),null,null,null,1e3)),g(68,new f(68,100,"AgentEntity","AgentEntityReplicate","AgentEntity_ReceiveView","agentUid","agentLct","aePk","aeDestination","aeVersionId","aePending",p([new m("agentMbox",-1),new m("agentMbox_sha1sum",-1),new m("agentOpenid",-1),new m("agentAccountName",-1),new m("agentHomePage",-1),new m("agentPersonUid",-5),new m("statementMasterChangeSeqNum",-5),new m("statementLocalChangeSeqNum",-5),new m("statementLastChangedBy",4),new m("agentLct",-5),new m("agentUid",-5)]),p([new m("aePk",-5),new m("aeVersionId",-5),new m("aeDestination",-5),new m("aePending",16)]),null,null,null,1e3)),g(70,new f(70,100,"StateEntity","StateEntityReplicate","StateEntity_ReceiveView","stateUid","stateLct","sePk","seDestination","seVersionId","sePending",p([new m("stateId",-1),new m("agentUid",-5),new m("activityId",-1),new m("registration",-1),new m("isIsactive",16),new m("timestamp",-5),new m("stateMasterChangeSeqNum",-5),new m("stateLocalChangeSeqNum",-5),new m("stateLastChangedBy",4),new m("stateLct",-5),new m("stateUid",-5)]),p([new m("sePk",-5),new m("seVersionId",-5),new m("seDestination",-5),new m("sePending",16)]),null,null,null,1e3)),g(72,new f(72,100,"StateContentEntity","StateContentEntityReplicate","StateContentEntity_ReceiveView","stateContentUid","stateContentLct","scePk","sceDestination","sceVersionId","scePending",p([new m("stateContentStateUid",-5),new m("stateContentKey",-1),new m("stateContentValue",-1),new m("isIsactive",16),new m("stateContentMasterChangeSeqNum",-5),new m("stateContentLocalChangeSeqNum",-5),new m("stateContentLastChangedBy",4),new m("stateContentLct",-5),new m("stateContentUid",-5)]),p([new m("scePk",-5),new m("sceVersionId",-5),new m("sceDestination",-5),new m("scePending",16)]),null,null,null,1e3)),g(74,new f(74,100,"XLangMapEntry","XLangMapEntryReplicate","XLangMapEntry_ReceiveView","statementLangMapUid","statementLangMapLct","xlmePk","xlmeDestination","xlmeVersionId","xlmePending",p([new m("verbLangMapUid",-5),new m("objectLangMapUid",-5),new m("languageLangMapUid",-5),new m("languageVariantLangMapUid",-5),new m("valueLangMap",-1),new m("statementLangMapMasterCsn",4),new m("statementLangMapLocalCsn",4),new m("statementLangMapLcb",4),new m("statementLangMapLct",-5),new m("statementLangMapUid",-5)]),p([new m("xlmePk",-5),new m("xlmeVersionId",-5),new m("xlmeDestination",-5),new m("xlmePending",16)]),null,null,null,1e3)),g(164,new f(164,100,"School","SchoolReplicate","School_ReceiveView","schoolUid","schoolLct","schoolPk","schoolDestination","schoolVersionId","schoolPending",p([new m("schoolName",-1),new m("schoolDesc",-1),new m("schoolAddress",-1),new m("schoolActive",16),new m("schoolPhoneNumber",-1),new m("schoolGender",4),new m("schoolHolidayCalendarUid",-5),new m("schoolFeatures",-5),new m("schoolLocationLong",8),new m("schoolLocationLatt",8),new m("schoolEmailAddress",-1),new m("schoolTeachersPersonGroupUid",-5),new m("schoolStudentsPersonGroupUid",-5),new m("schoolPendingStudentsPersonGroupUid",-5),new m("schoolCode",-1),new m("schoolMasterChangeSeqNum",-5),new m("schoolLocalChangeSeqNum",-5),new m("schoolLastChangedBy",4),new m("schoolLct",-5),new m("schoolTimeZone",-1),new m("schoolUid",-5)]),p([new m("schoolPk",-5),new m("schoolVersionId",-5),new m("schoolDestination",-5),new m("schoolPending",16)]),null,null,null,1e3)),g(200,new f(200,1,"SchoolMember","SchoolMemberReplicate","SchoolMember_ReceiveView","schoolMemberUid","schoolMemberLct","smPk","smDestination","smVersionId","smPending",p([new m("schoolMemberPersonUid",-5),new m("schoolMemberSchoolUid",-5),new m("schoolMemberJoinDate",-5),new m("schoolMemberLeftDate",-5),new m("schoolMemberRole",4),new m("schoolMemberActive",16),new m("schoolMemberLocalChangeSeqNum",-5),new m("schoolMemberMasterChangeSeqNum",-5),new m("schoolMemberLastChangedBy",4),new m("schoolMemberLct",-5),new m("schoolMemberUid",-5)]),p([new m("smPk",-5),new m("smVersionId",-5),new m("smDestination",-5),new m("smPending",16)]),null,null,null,1e3)),g(208,new f(208,100,"Comments","CommentsReplicate","Comments_ReceiveView","commentsUid","commentsLct","commentsPk","commentsDestination","commentsVersionId","commentsPending",p([new m("commentsText",-1),new m("commentsEntityType",4),new m("commentsEntityUid",-5),new m("commentsPublic",16),new m("commentsStatus",4),new m("commentsPersonUid",-5),new m("commentsToPersonUid",-5),new m("commentSubmitterUid",-5),new m("commentsFlagged",16),new m("commentsInActive",16),new m("commentsDateTimeAdded",-5),new m("commentsDateTimeUpdated",-5),new m("commentsMCSN",-5),new m("commentsLCSN",-5),new m("commentsLCB",4),new m("commentsLct",-5),new m("commentsUid",-5)]),p([new m("commentsPk",-5),new m("commentsVersionId",-5),new m("commentsDestination",-5),new m("commentsPending",16)]),null,null,null,1e3)),g(101,new f(101,100,"Report","ReportReplicate","Report_ReceiveView","reportUid","reportLct","reportPk","reportDestination","reportVersionId","reportPending",p([new m("reportOwnerUid",-5),new m("xAxis",4),new m("reportDateRangeSelection",4),new m("fromDate",-5),new m("fromRelTo",4),new m("fromRelOffSet",4),new m("fromRelUnit",4),new m("toDate",-5),new m("toRelTo",4),new m("toRelOffSet",4),new m("toRelUnit",4),new m("reportTitle",-1),new m("reportDescription",-1),new m("reportSeries",-1),new m("reportInactive",16),new m("isTemplate",16),new m("priority",4),new m("reportTitleId",4),new m("reportDescId",4),new m("reportMasterChangeSeqNum",-5),new m("reportLocalChangeSeqNum",-5),new m("reportLastChangedBy",4),new m("reportLct",-5),new m("reportUid",-5)]),p([new m("reportPk",-5),new m("reportVersionId",-5),new m("reportDestination",-5),new m("reportPending",16)]),null,null,null,1e3)),g(189,new f(189,100,"Site","SiteReplicate","Site_ReceiveView","siteUid","siteLct","sitePk","siteDestination","siteVersionId","sitePending",p([new m("sitePcsn",-5),new m("siteLcsn",-5),new m("siteLcb",4),new m("siteLct",-5),new m("siteName",-1),new m("guestLogin",16),new m("registrationAllowed",16),new m("authSalt",-1),new m("siteUid",-5)]),p([new m("sitePk",-5),new m("siteVersionId",-5),new m("siteDestination",-5),new m("sitePending",16)]),null,null,null,1e3)),g(301,new f(301,100,"LearnerGroup","LearnerGroupReplicate","LearnerGroup_ReceiveView","learnerGroupUid","learnerGroupLct","lgPk","lgDestination","lgVersionId","lgPending",p([new m("learnerGroupName",-1),new m("learnerGroupDescription",-1),new m("learnerGroupActive",16),new m("learnerGroupMCSN",-5),new m("learnerGroupCSN",-5),new m("learnerGroupLCB",4),new m("learnerGroupLct",-5),new m("learnerGroupUid",-5)]),p([new m("lgPk",-5),new m("lgVersionId",-5),new m("lgDestination",-5),new m("lgPending",16)]),null,null,null,1e3)),g(300,new f(300,100,"LearnerGroupMember","LearnerGroupMemberReplicate","LearnerGroupMember_ReceiveView","learnerGroupMemberUid","learnerGroupMemberLct","lgmPk","lgmDestination","lgmVersionId","lgmPending",p([new m("learnerGroupMemberPersonUid",-5),new m("learnerGroupMemberLgUid",-5),new m("learnerGroupMemberRole",4),new m("learnerGroupMemberActive",16),new m("learnerGroupMemberMCSN",-5),new m("learnerGroupMemberCSN",-5),new m("learnerGroupMemberLCB",4),new m("learnerGroupMemberLct",-5),new m("learnerGroupMemberUid",-5)]),p([new m("lgmPk",-5),new m("lgmVersionId",-5),new m("lgmDestination",-5),new m("lgmPending",16)]),null,null,null,1e3)),g(302,new f(302,100,"GroupLearningSession","GroupLearningSessionReplicate","GroupLearningSession_ReceiveView","groupLearningSessionUid","groupLearningSessionLct","glsPk","glsDestination","glsVersionId","glsPending",p([new m("groupLearningSessionContentUid",-5),new m("groupLearningSessionLearnerGroupUid",-5),new m("groupLearningSessionInactive",16),new m("groupLearningSessionMCSN",-5),new m("groupLearningSessionCSN",-5),new m("groupLearningSessionLCB",4),new m("groupLearningSessionLct",-5),new m("groupLearningSessionUid",-5)]),p([new m("glsPk",-5),new m("glsVersionId",-5),new m("glsDestination",-5),new m("glsPending",16)]),null,null,null,1e3)),g(272,new f(272,100,"SiteTerms","SiteTermsReplicate","SiteTerms_ReceiveView","sTermsUid","sTermsLct","stPk","stDestination","stVersionId","stPending",p([new m("termsHtml",-1),new m("sTermsLang",-1),new m("sTermsLangUid",-5),new m("sTermsActive",16),new m("sTermsLastChangedBy",4),new m("sTermsPrimaryCsn",-5),new m("sTermsLocalCsn",-5),new m("sTermsLct",-5),new m("sTermsUid",-5)]),p([new m("stPk",-5),new m("stVersionId",-5),new m("stDestination",-5),new m("stPending",16)]),null,null,null,1e3)),g(134,new f(134,100,"ClazzContentJoin","ClazzContentJoinReplicate","ClazzContentJoin_ReceiveView","ccjUid","ccjLct","ccjPk","ccjDestination","ccjVersionId","ccjPending",p([new m("ccjContentEntryUid",-5),new m("ccjClazzUid",-5),new m("ccjActive",16),new m("ccjLocalChangeSeqNum",-5),new m("ccjMasterChangeSeqNum",-5),new m("ccjLastChangedBy",4),new m("ccjLct",-5),new m("ccjUid",-5)]),p([new m("ccjPk",-5),new m("ccjVersionId",-5),new m("ccjDestination",-5),new m("ccjPending",16)]),null,null,null,1e3)),g(512,new f(512,100,"PersonParentJoin","PersonParentJoinReplicate","PersonParentJoin_ReceiveView","ppjUid","ppjLct","ppjPk","ppjDestination","ppjVersionId","ppjPending",p([new m("ppjPcsn",-5),new m("ppjLcsn",-5),new m("ppjLcb",4),new m("ppjLct",-5),new m("ppjParentPersonUid",-5),new m("ppjMinorPersonUid",-5),new m("ppjRelationship",4),new m("ppjEmail",-1),new m("ppjPhone",-1),new m("ppjInactive",16),new m("ppjStatus",4),new m("ppjApprovalTiemstamp",-5),new m("ppjApprovalIpAddr",-1),new m("ppjUid",-5)]),p([new m("ppjPk",-5),new m("ppjVersionId",-5),new m("ppjDestination",-5),new m("ppjPending",16)]),null,null,null,1e3)),g(48,new f(48,0,"ScopedGrant","ScopedGrantReplicate","ScopedGrant_ReceiveView","sgUid","sgLct","sgPk","sgDestination","sgVersionId","sgPending",p([new m("sgPcsn",-5),new m("sgLcsn",-5),new m("sgLcb",4),new m("sgLct",-5),new m("sgTableId",4),new m("sgEntityUid",-5),new m("sgPermissions",-5),new m("sgGroupUid",-5),new m("sgIndex",4),new m("sgFlags",4),new m("sgUid",-5)]),p([new m("sgPk",-5),new m("sgVersionId",-5),new m("sgDestination",-5),new m("sgPending",16)]),null,null,null,1e3)),g(419,new f(419,100,"ErrorReport","ErrorReportReplicate","ErrorReport_ReceiveView","errUid","errLct","erPk","erDestination","erVersionId","erPending",p([new m("errPcsn",-5),new m("errLcsn",-5),new m("errLcb",4),new m("errLct",-5),new m("severity",4),new m("timestamp",-5),new m("presenterUri",-1),new m("appVersion",-1),new m("versionCode",4),new m("errorCode",4),new m("operatingSys",-1),new m("osVersion",-1),new m("stackTrace",-1),new m("message",-1),new m("errUid",-5)]),p([new m("erPk",-5),new m("erVersionId",-5),new m("erDestination",-5),new m("erPending",16)]),null,null,null,1e3)),g(520,new f(520,100,"ClazzAssignment","ClazzAssignmentReplicate","ClazzAssignment_ReceiveView","caUid","caLct","caPk","caDestination","caVersionId","caPending",p([new m("caTitle",-1),new m("caDescription",-1),new m("caGroupUid",-5),new m("caActive",16),new m("caClassCommentEnabled",16),new m("caPrivateCommentsEnabled",16),new m("caCompletionCriteria",4),new m("caRequireFileSubmission",16),new m("caFileType",4),new m("caSizeLimit",4),new m("caNumberOfFiles",4),new m("caSubmissionPolicy",4),new m("caMarkingType",4),new m("caRequireTextSubmission",16),new m("caTextLimitType",4),new m("caTextLimit",4),new m("caXObjectUid",-5),new m("caClazzUid",-5),new m("caLocalChangeSeqNum",-5),new m("caMasterChangeSeqNum",-5),new m("caLastChangedBy",4),new m("caLct",-5),new m("caUid",-5)]),p([new m("caPk",-5),new m("caVersionId",-5),new m("caDestination",-5),new m("caPending",16)]),null,null,null,1e3)),g(521,new f(521,100,"ClazzAssignmentContentJoin","ClazzAssignmentContentJoinReplicate","ClazzAssignmentContentJoin_ReceiveView","cacjUid","cacjLct","cacjPk","cacjDestination","cacjVersionId","cacjPending",p([new m("cacjContentUid",-5),new m("cacjAssignmentUid",-5),new m("cacjActive",16),new m("cacjWeight",4),new m("cacjMCSN",-5),new m("cacjLCSN",-5),new m("cacjLCB",4),new m("cacjLct",-5),new m("cacjUid",-5)]),p([new m("cacjPk",-5),new m("cacjVersionId",-5),new m("cacjDestination",-5),new m("cacjPending",16)]),null,null,null,1e3)),g(522,new f(522,100,"CourseAssignmentSubmission","CourseAssignmentSubmissionReplicate","CourseAssignmentSubmission_ReceiveView","casUid","casTimestamp","casPk","casDestination","casVersionId","casPending",p([new m("casAssignmentUid",-5),new m("casSubmitterUid",-5),new m("casSubmitterPersonUid",-5),new m("casText",-1),new m("casType",4),new m("casTimestamp",-5),new m("casUid",-5)]),p([new m("casPk",-5),new m("casVersionId",-5),new m("casDestination",-5),new m("casPending",16)]),null,null,null,1e3)),g(90,new f(90,100,"CourseAssignmentSubmissionAttachment","CourseAssignmentSubmissionAttachmentReplicate","CourseAssignmentSubmissionAttachment_ReceiveView","casaUid","casaTimestamp","casaPk","casaDestination","casaVersionId","casaPending",p([new m("casaSubmissionUid",-5),new m("casaMimeType",-1),new m("casaFileName",-1),new m("casaUri",-1),new m("casaMd5",-1),new m("casaSize",4),new m("casaTimestamp",-5),new m("casaUid",-5)]),p([new m("casaPk",-5),new m("casaVersionId",-5),new m("casaDestination",-5),new m("casaPending",16)]),"casaUri","casaMd5","casaSize",1e3)),g(523,new f(523,100,"CourseAssignmentMark","CourseAssignmentMarkReplicate","CourseAssignmentMark_ReceiveView","camUid","camLct","camPk","camDestination","camVersionId","camPending",p([new m("camAssignmentUid",-5),new m("camSubmitterUid",-5),new m("camMark",6),new m("camPenalty",4),new m("camLct",-5),new m("camUid",-5)]),p([new m("camPk",-5),new m("camVersionId",-5),new m("camDestination",-5),new m("camPending",16)]),null,null,null,1e3)),g(678,new f(678,100,"PersonAuth2","PersonAuth2Replicate","PersonAuth2_ReceiveView","pauthUid","pauthLct","paPk","paDestination","paVersionId","paPending",p([new m("pauthUid",-5),new m("pauthMechanism",-1),new m("pauthAuth",-1),new m("pauthLcsn",-5),new m("pauthPcsn",-5),new m("pauthLcb",-5),new m("pauthLct",-5)]),p([new m("paPk",-5),new m("paVersionId",-5),new m("paDestination",-5),new m("paPending",16)]),null,null,null,1e3)),g(679,new f(679,0,"UserSession","UserSessionReplicate","UserSession_ReceiveView","usUid","usLct","usPk","usDestination","usVersionId","usPending",p([new m("usPcsn",-5),new m("usLcsn",-5),new m("usLcb",4),new m("usLct",-5),new m("usPersonUid",-5),new m("usClientNodeId",-5),new m("usStartTime",-5),new m("usEndTime",-5),new m("usStatus",4),new m("usReason",4),new m("usAuth",-1),new m("usSessionType",4),new m("usUid",-5)]),p([new m("usPk",-5),new m("usVersionId",-5),new m("usDestination",-5),new m("usPending",16)]),null,null,null,1e3)),g(124,new f(124,100,"CourseBlock","CourseBlockReplicate","CourseBlock_ReceiveView","cbUid","cbLct","cbPk","cbDestination","cbVersionId","cbPending",p([new m("cbType",4),new m("cbIndentLevel",4),new m("cbModuleParentBlockUid",-5),new m("cbTitle",-1),new m("cbDescription",-1),new m("cbCompletionCriteria",4),new m("cbHideUntilDate",-5),new m("cbDeadlineDate",-5),new m("cbLateSubmissionPenalty",4),new m("cbGracePeriodDate",-5),new m("cbMaxPoints",4),new m("cbMinPoints",4),new m("cbIndex",4),new m("cbClazzUid",-5),new m("cbActive",16),new m("cbHidden",16),new m("cbEntityUid",-5),new m("cbLct",-5),new m("cbUid",-5)]),p([new m("cbPk",-5),new m("cbVersionId",-5),new m("cbDestination",-5),new m("cbPending",16)]),null,null,null,1e3)),g(450,new f(450,100,"CourseTerminology","CourseTerminologyReplicate","CourseTerminology_ReceiveView","ctUid","ctLct","ctPk","ctDestination","ctVersionId","ctPending",p([new m("ctTitle",-1),new m("ctTerminology",-1),new m("ctLct",-5),new m("ctUid",-5)]),p([new m("ctPk",-5),new m("ctVersionId",-5),new m("ctDestination",-5),new m("ctPending",16)]),null,null,null,1e3)),g(242,new f(242,100,"CourseGroupSet","CourseGroupSetReplicate","CourseGroupSet_ReceiveView","cgsUid","cgsLct","cgsPk","cgsDestination","cgsVersionId","cgsPending",p([new m("cgsName",-1),new m("cgsTotalGroups",4),new m("cgsActive",16),new m("cgsClazzUid",-5),new m("cgsLct",-5),new m("cgsUid",-5)]),p([new m("cgsPk",-5),new m("cgsVersionId",-5),new m("cgsDestination",-5),new m("cgsPending",16)]),null,null,null,1e3)),g(243,new f(243,100,"CourseGroupMember","CourseGroupMemberReplicate","CourseGroupMember_ReceiveView","cgmUid","cgmLct","cgmPk","cgmDestination","cgmVersionId","cgmPending",p([new m("cgmSetUid",-5),new m("cgmGroupNumber",4),new m("cgmPersonUid",-5),new m("cgmLct",-5),new m("cgmUid",-5)]),p([new m("cgmPk",-5),new m("cgmVersionId",-5),new m("cgmDestination",-5),new m("cgmPending",16)]),null,null,null,1e3)),g(125,new f(125,100,"CoursePicture","CoursePictureReplicate","CoursePicture_ReceiveView","coursePictureUid","coursePictureLct","cpPk","cpDestination","cpVersionId","cpPending",p([new m("coursePictureClazzUid",-5),new m("coursePictureMasterCsn",-5),new m("coursePictureLocalCsn",-5),new m("coursePictureLastChangedBy",4),new m("coursePictureLct",-5),new m("coursePictureUri",-1),new m("coursePictureMd5",-1),new m("coursePictureFileSize",4),new m("coursePictureTimestamp",-5),new m("coursePictureMimeType",-1),new m("coursePictureActive",16),new m("coursePictureUid",-5)]),p([new m("cpPk",-5),new m("cpVersionId",-5),new m("cpDestination",-5),new m("cpPending",16)]),"coursePictureUri","coursePictureMd5","coursePictureFileSize",1e3)),g(138,new f(138,100,"ContentEntryPicture","ContentEntryPictureReplicate","ContentEntryPicture_ReceiveView","cepUid","cepTimestamp","cepPk","cepDestination","cepVersionId","cepPending",p([new m("cepContentEntryUid",-5),new m("cepUri",-1),new m("cepMd5",-1),new m("cepFileSize",4),new m("cepTimestamp",-5),new m("cepMimeType",-1),new m("cepActive",16),new m("cepUid",-5)]),p([new m("cepPk",-5),new m("cepVersionId",-5),new m("cepDestination",-5),new m("cepPending",16)]),"cepUri","cepMd5","cepFileSize",1e3)),g(127,new f(127,0,"Chat","ChatReplicate","Chat_ReceiveView","chatUid","chatLct","chatPk","chatDestination","chatVersionId","chatPending",p([new m("chatStartDate",-5),new m("chatTitle",-1),new m("chatGroup",16),new m("chatLct",-5),new m("chatUid",-5)]),p([new m("chatPk",-5),new m("chatVersionId",-5),new m("chatDestination",-5),new m("chatPending",16)]),null,null,null,1e3)),g(128,new f(128,0,"ChatMember","ChatMemberReplicate","ChatMember_ReceiveView","chatMemberUid","chatMemberLct","chatMemberPk","chatMemberDestination","chatMemberVersionId","chatMemberPending",p([new m("chatMemberChatUid",-5),new m("chatMemberPersonUid",-5),new m("chatMemberJoinedDate",-5),new m("chatMemberLeftDate",-5),new m("chatMemberLct",-5),new m("chatMemberUid",-5)]),p([new m("chatMemberPk",-5),new m("chatMemberVersionId",-5),new m("chatMemberDestination",-5),new m("chatMemberPending",16)]),null,null,null,1e3)),g(126,new f(126,100,"Message","MessageReplicate","Message_ReceiveView","messageUid","messageLct","messagePk","messageDestination","messageVersionId","messagePending",p([new m("messageSenderPersonUid",-5),new m("messageTableId",4),new m("messageEntityUid",-5),new m("messageText",-1),new m("messageTimestamp",-5),new m("messageClazzUid",-5),new m("messageLct",-5),new m("messageUid",-5)]),p([new m("messagePk",-5),new m("messageVersionId",-5),new m("messageDestination",-5),new m("messagePending",16)]),null,null,null,1e3)),g(129,new f(129,100,"MessageRead","MessageReadReplicate","MessageRead_ReceiveView","messageReadUid","messageReadLct","messageReadPk","messageReadDestination","messageReadVersionId","messageReadPending",p([new m("messageReadPersonUid",-5),new m("messageReadMessageUid",-5),new m("messageReadEntityUid",-5),new m("messageReadLct",-5),new m("messageReadUid",-5)]),p([new m("messageReadPk",-5),new m("messageReadVersionId",-5),new m("messageReadDestination",-5),new m("messageReadPending",16)]),null,null,null,1e3)),g(130,new f(130,100,"CourseDiscussion","CourseDiscussionReplicate","CourseDiscussion_ReceiveView","courseDiscussionUid","courseDiscussionLct","courseDiscussionPk","courseDiscussionDestination","courseDiscussionVersionId","courseDiscussionPending",p([new m("courseDiscussionTitle",-1),new m("courseDiscussionDesc",-1),new m("courseDiscussionClazzUid",-5),new m("courseDiscussionActive",16),new m("courseDiscussionLct",-5),new m("courseDiscussionUid",-5)]),p([new m("courseDiscussionPk",-5),new m("courseDiscussionVersionId",-5),new m("courseDiscussionDestination",-5),new m("courseDiscussionPending",16)]),null,null,null,1e3)),g(131,new f(131,100,"DiscussionTopic","DiscussionTopicReplicate","DiscussionTopic_ReceiveView","discussionTopicUid","discussionTopicLct","discussionTopicPk","discussionTopicDestination","discussionTopicVersionId","discussionTopicPending",p([new m("discussionTopicTitle",-1),new m("discussionTopicDesc",-1),new m("discussionTopicStartDate",-5),new m("discussionTopicCourseDiscussionUid",-5),new m("discussionTopicVisible",16),new m("discussionTopicArchive",16),new m("discussionTopicIndex",4),new m("discussionTopicClazzUid",-5),new m("discussionTopicLct",-5),new m("discussionTopicUid",-5)]),p([new m("discussionTopicPk",-5),new m("discussionTopicVersionId",-5),new m("discussionTopicDestination",-5),new m("discussionTopicPending",16)]),null,null,null,1e3)),g(132,new f(132,100,"DiscussionPost","DiscussionPostReplicate","DiscussionPost_ReceiveView","discussionPostUid","discussionPostLct","discussionPostPk","discussionPostDestination","discussionPostVersionId","discussionPostPending",p([new m("discussionPostTitle",-1),new m("discussionPostMessage",-1),new m("discussionPostStartDate",-5),new m("discussionPostDiscussionTopicUid",-5),new m("discussionPostVisible",16),new m("discussionPostArchive",16),new m("discussionPostStartedPersonUid",-5),new m("discussionPostClazzUid",-5),new m("discussionPostLct",-5),new m("discussionPostUid",-5)]),p([new m("discussionPostPk",-5),new m("discussionPostVersionId",-5),new m("discussionPostDestination",-5),new m("discussionPostPending",16)]),null,null,null,1e3))])}function Un(t,n,i,o,r,s){var a,c;Ln.call(this),this.doorJdbcSourceDatabase_bt2m6l$_0=t,this.dataSource_sv708p$_0=n,this.dbName_gan2df$_0=i,this.realAttachmentFilters_2an2a6$_0=o,this.jdbcQueryTimeout_8tsw54$_0=r,this.jdbcImplHelper_hbcd5v$_0=new z(this.dataSource,this,T(e.getKClassFromExpression(this)).allTables,new L(q(T(e.getKClassFromExpression(this)).allTables).slice()),s),this.realAttachmentStorageUri_9ktfae$_0=null,this.realReplicationNotificationDispatcher_205h14$_0=I((a=this,function(){return O(a,w(a))?new A(a,new jn(a),R.GlobalScope):x(w(a))})),c=O(this,w(this))?new U(this):null,this._deleteZombieAttachmentsListener_0=c,this.realIncomingReplicationListenerHelper_iyxd1e$_0=new D,this.realNodeIdAuthCache_xrrr9l$_0=I(function(t){return function(){if(O(t,w(t))){var e=new P(t);return e.addNewNodeListener_jgigus$(t.realReplicationNotificationDispatcher),e}return M(w(t))}}(this)),this.realPrimaryKeyManager_iue8ui$_0=I(Pn),this._NetworkNodeDao_3oxnq1$_0=I(function(t){return function(){return new wj(t)}}(this)),this._PersonDao_k7x8oe$_0=I(function(t){return function(){return new UG(t)}}(this)),this._ClazzDao_3jk0dr$_0=I(function(t){return function(){return new dc(t)}}(this)),this._CourseBlockDao_2gjouh$_0=I(function(t){return function(){return new oL(t)}}(this)),this._CourseTerminologyDao_45h00h$_0=I(function(t){return function(){return new UO(t)}}(this)),this._CourseGroupSetDao_d461hl$_0=I(function(t){return function(){return new Cw(t)}}(this)),this._CourseGroupMemberDao_f2mrkb$_0=I(function(t){return function(){return new Fz(t)}}(this)),this._ClazzEnrolmentDao_4bba63$_0=I(function(t){return function(){return new Hl(t)}}(this)),this._LeavingReasonDao_dar3v5$_0=I(function(t){return function(){return new CM(t)}}(this)),this._ContentEntryDao_9nbtke$_0=I(function(t){return function(){return new b$(t)}}(this)),this._ContentEntryContentCategoryJoinDao_2aqtq9$_0=I(function(t){return function(){return new t$(t)}}(this)),this._ContentEntryParentChildJoinDao_tr06be$_0=I(function(t){return function(){return new wb(t)}}(this)),this._ContentEntryRelatedEntryJoinDao_hyl14z$_0=I(function(t){return function(){return new BS(t)}}(this)),this._ClazzContentJoinDao_tcg5t0$_0=I(function(t){return function(){return new ja(t)}}(this)),this._ContentCategorySchemaDao_a6b1ap$_0=I(function(t){return function(){return new xg(t)}}(this)),this._ContentCategoryDao_605o8e$_0=I(function(t){return function(){return new dg(t)}}(this)),this._LanguageDao_nmss4x$_0=I(function(t){return function(){return new JU(t)}}(this)),this._LanguageVariantDao_44u5pg$_0=I(function(t){return function(){return new eP(t)}}(this)),this._ScrapeQueueItemDao_7pv1vr$_0=I(function(t){return function(){return new GY(t)}}(this)),this._PersonAuthDao_7soik6$_0=I(function(t){return function(){return new bG(t)}}(this)),this._PersonGroupDao_jo1o5b$_0=I(function(t){return function(){return new _F(t)}}(this)),this._PersonGroupMemberDao_swianv$_0=I(function(t){return function(){return new vB(t)}}(this)),this._EntityRoleDao_flwn1q$_0=I(function(t){return function(){return new ax(t)}}(this)),this._PersonPictureDao_wwh6o0$_0=I(function(t){return function(){return new lH(t)}}(this)),this._ConnectivityStatusDao_kxoa8y$_0=I(function(t){return function(){return new y_(t)}}(this)),this._ContainerDao_8y171k$_0=I(function(t){return function(){return new D_(t)}}(this)),this._ContainerEntryDao_2k8qly$_0=I(function(t){return function(){return new nf(t)}}(this)),this._ContainerEntryFileDao_j7lyp2$_0=I(function(t){return function(){return new Ef(t)}}(this)),this._ContainerETagDao_aj6yxf$_0=I(function(t){return function(){return new Ym(t)}}(this)),this._VerbDao_ut1ars$_0=I(function(t){return function(){return new r3(t)}}(this)),this._XObjectDao_uyivji$_0=I(function(t){return function(){return new E6(t)}}(this)),this._ReportDao_u3d377$_0=I(function(t){return function(){return new kH(t)}}(this)),this._ContainerImportJobDao_87ws0$_0=I(function(t){return function(){return new Bf(t)}}(this)),this._StatementDao_yqx14q$_0=I(function(t){return function(){return new _0(t)}}(this)),this._ContextXObjectStatementJoinDao_mwkbi0$_0=I(function(t){return function(){return new ZC(t)}}(this)),this._StateDao_y7psns$_0=I(function(t){return function(){return new KZ(t)}}(this)),this._StateContentDao_y2yl6n$_0=I(function(t){return function(){return new zZ(t)}}(this)),this._AgentDao_ruleqs$_0=I(function(t){return function(){return new so(t)}}(this)),this._LearnerGroupDao_b0g40p$_0=I(function(t){return function(){return new yP(t)}}(this)),this._LearnerGroupMemberDao_mag2e9$_0=I(function(t){return function(){return new KP(t)}}(this)),this._GroupLearningSessionDao_m33w7i$_0=I(function(t){return function(){return new aI(t)}}(this)),this._ClazzLogAttendanceRecordDao_ap5hnj$_0=I(function(t){return function(){return new $h(t)}}(this)),this._ClazzLogDao_e1mhp7$_0=I(function(t){return function(){return new Kh(t)}}(this)),this._ScheduleDao_6f1hrk$_0=I(function(t){return function(){return new PV(t)}}(this)),this._HolidayCalendarDao_uwm5jh$_0=I(function(t){return function(){return new NI(t)}}(this)),this._HolidayDao_bvaw29$_0=I(function(t){return function(){return new gU(t)}}(this)),this._SchoolDao_7eo53h$_0=I(function(t){return function(){return new kK(t)}}(this)),this._XLangMapEntryDao_h0gfv1$_0=I(function(t){return function(){return new J3(t)}}(this)),this._LocallyAvailableContainerDao_7wf02v$_0=I(function(t){return function(){return new yk(t)}}(this)),this._SchoolMemberDao_2tq407$_0=I(function(t){return function(){return new OX(t)}}(this)),this._ClazzAssignmentDao_3ggsx0$_0=I(function(t){return function(){return new ns(t)}}(this)),this._ClazzAssignmentContentJoinDao_u85dhz$_0=I(function(t){return function(){return new Tr(t)}}(this)),this._ClazzAssignmentRollUpDao_idjn7w$_0=I(function(t){return function(){return new $a(t)}}(this)),this._CourseAssignmentSubmissionDao_lzd959$_0=I(function(t){return function(){return new hT(t)}}(this)),this._CourseAssignmentSubmissionAttachmentDao_kk6as0$_0=I(function(t){return function(){return new BN(t)}}(this)),this._CourseAssignmentMarkDao_bcqoqa$_0=I(function(t){return function(){return new $N(t)}}(this)),this._CommentsDao_n8pvx$_0=I(function(t){return function(){return new Jd(t)}}(this)),this._SyncNodeDao_gj1sd2$_0=I(function(t){return function(){return new X1(t)}}(this)),this._SiteDao_dgj3hc$_0=I(function(t){return function(){return new QY(t)}}(this)),this._SiteTermsDao_z71e95$_0=I(function(t){return function(){return new AQ(t)}}(this)),this._PersonParentJoinDao_jpqxfm$_0=I(function(t){return function(){return new vW(t)}}(this)),this._ScopedGrantDao_c5bgvx$_0=I(function(t){return function(){return new _J(t)}}(this)),this._ErrorReportDao_fhjgp9$_0=I(function(t){return function(){return new qx(t)}}(this)),this._PersonAuth2Dao_sbcr2k$_0=I(function(t){return function(){return new Kj(t)}}(this)),this._UserSessionDao_u3lyxu$_0=I(function(t){return function(){return new e2(t)}}(this)),this._ContentJobItemDao_wk14ls$_0=I(function(t){return function(){return new Hv(t)}}(this)),this._ContentJobDao_otp6eb$_0=I(function(t){return function(){return new vv(t)}}(this)),this._CoursePictureDao_8lofba$_0=I(function(t){return function(){return new rO(t)}}(this)),this._ContentEntryPictureDao_h75b18$_0=I(function(t){return function(){return new _S(t)}}(this)),this._ChatDao_q2bpip$_0=I(function(t){return function(){return new wo(t)}}(this)),this._ChatMemberDao_msanf9$_0=I(function(t){return function(){return new cr(t)}}(this)),this._MessageDao_jfy3z6$_0=I(function(t){return function(){return new zk(t)}}(this)),this._MessageReadDao_2blgx8$_0=I(function(t){return function(){return new hj(t)}}(this)),this._CourseDiscussionDao_cb20xo$_0=I(function(t){return function(){return new oz(t)}}(this)),this._DiscussionTopicDao_5a2pfi$_0=I(function(t){return function(){return new uA(t)}}(this)),this._DiscussionPostDao_siiczl$_0=I(function(t){return function(){return new yR(t)}}(this))}function Dn(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function Pn(){return new k(T(u(Ln)).replicateEntities.keys)}function Mn(t){var e;Ln.call(this),this._db_0=t,this._PersonDao_z4p9xw$_0=I((e=this,function(){return new qq(e._db_0,e._db_0.personDao)})),this._ClazzDao_yxezhz$_0=I(function(t){return function(){return new Tl(t._db_0,t._db_0.clazzDao)}}(this)),this._CourseBlockDao_i86l99$_0=I(function(t){return function(){return new ML(t._db_0,t._db_0.courseBlockDao)}}(this)),this._CourseTerminologyDao_f5vdrr$_0=I(function(t){return function(){return new cR(t._db_0,t._db_0.courseTerminologyDao)}}(this)),this._CourseGroupSetDao_xqwtyb$_0=I(function(t){return function(){return new Kw(t._db_0,t._db_0.courseGroupSetDao)}}(this)),this._CourseGroupMemberDao_q315bl$_0=I(function(t){return function(){return new cw(t._db_0,t._db_0.courseGroupMemberDao)}}(this)),this._ClazzEnrolmentDao_oy22mt$_0=I(function(t){return function(){return new Qu(t._db_0,t._db_0.clazzEnrolmentDao)}}(this)),this._LeavingReasonDao_4srg53$_0=I(function(t){return function(){return new rk(t._db_0,t._db_0.leavingReasonDao)}}(this)),this._ContentEntryDao_bny0zs$_0=I(function(t){return function(){return new Vy(t._db_0,t._db_0.contentEntryDao)}}(this)),this._ContentEntryContentCategoryJoinDao_xqhj8n$_0=I(function(t){return function(){return new d$(t._db_0,t._db_0.contentEntryContentCategoryJoinDao)}}(this)),this._ContentEntryParentChildJoinDao_z4w8fg$_0=I(function(t){return function(){return new tS(t._db_0,t._db_0.contentEntryParentChildJoinDao)}}(this)),this._ContentEntryRelatedEntryJoinDao_4n64nr$_0=I(function(t){return function(){return new pv(t._db_0,t._db_0.contentEntryRelatedEntryJoinDao)}}(this)),this._ClazzContentJoinDao_jtpmiy$_0=I(function(t){return function(){return new tc(t._db_0,t._db_0.clazzContentJoinDao)}}(this)),this._ContentCategorySchemaDao_7v6m4p$_0=I(function(t){return function(){return new Wg(t._db_0,t._db_0.contentCategorySchemaDao)}}(this)),this._ContentCategoryDao_5p3nm0$_0=I(function(t){return function(){return new Cg(t._db_0,t._db_0.contentCategoryDao)}}(this)),this._LanguageDao_4effpz$_0=I(function(t){return function(){return new kD(t._db_0,t._db_0.languageDao)}}(this)),this._LanguageVariantDao_3ts532$_0=I(function(t){return function(){return new hP(t._db_0,t._db_0.languageVariantDao)}}(this)),this._PersonGroupDao_uoc3q3$_0=I(function(t){return function(){return new ZF(t._db_0,t._db_0.personGroupDao)}}(this)),this._PersonGroupMemberDao_hw3wwl$_0=I(function(t){return function(){return new tW(t._db_0,t._db_0.personGroupMemberDao)}}(this)),this._PersonPictureDao_oehixy$_0=I(function(t){return function(){return new LH(t._db_0,t._db_0.personPictureDao)}}(this)),this._ContainerDao_y4hlv6$_0=I(function(t){return function(){return new zm(t._db_0,t._db_0.containerDao)}}(this)),this._VerbDao_p6904i$_0=I(function(t){return function(){return new M3(t._db_0,t._db_0.verbDao)}}(this)),this._XObjectDao_414f3s$_0=I(function(t){return function(){return new O6(t._db_0,t._db_0.xObjectDao)}}(this)),this._ReportDao_f6l1xp$_0=I(function(t){return function(){return new vV(t._db_0,t._db_0.reportDao)}}(this)),this._StatementDao_8blrs0$_0=I(function(t){return function(){return new R1(t._db_0,t._db_0.statementDao)}}(this)),this._ContextXObjectStatementJoinDao_grco9q$_0=I(function(t){return function(){return new lN(t._db_0,t._db_0.contextXObjectStatementJoinDao)}}(this)),this._StateDao_1nkqke$_0=I(function(t){return function(){return new r0(t._db_0,t._db_0.stateDao)}}(this)),this._StateContentDao_yxj9d3$_0=I(function(t){return function(){return new kZ(t._db_0,t._db_0.stateContentDao)}}(this)),this._AgentDao_4pjncm$_0=I(function(t){return function(){return new Eo(t._db_0,t._db_0.agentDao)}}(this)),this._LearnerGroupDao_d12bg3$_0=I(function(t){return function(){return new kP(t._db_0,t._db_0.learnerGroupDao)}}(this)),this._LearnerGroupMemberDao_yxhk6x$_0=I(function(t){return function(){return new _M(t._db_0,t._db_0.learnerGroupMemberDao)}}(this)),this._GroupLearningSessionDao_wyleco$_0=I(function(t){return function(){return new fI(t._db_0,t._db_0.groupLearningSessionDao)}}(this)),this._ClazzLogAttendanceRecordDao_8wntrv$_0=I(function(t){return function(){return new Ih(t._db_0,t._db_0.clazzLogAttendanceRecordDao)}}(this)),this._ClazzLogDao_x9zu45$_0=I(function(t){return function(){return new Dd(t._db_0,t._db_0.clazzLogDao)}}(this)),this._ScheduleDao_ctbune$_0=I(function(t){return function(){return new bK(t._db_0,t._db_0.scheduleDao)}}(this)),this._HolidayCalendarDao_ulk4x3$_0=I(function(t){return function(){return new rU(t._db_0,t._db_0.holidayCalendarDao)}}(this)),this._HolidayDao_o65v9l$_0=I(function(t){return function(){return new IU(t._db_0,t._db_0.holidayDao)}}(this)),this._SchoolDao_mbg6cz$_0=I(function(t){return function(){return new fX(t._db_0,t._db_0.schoolDao)}}(this)),this._XLangMapEntryDao_8igs4z$_0=I(function(t){return function(){return new l6(t._db_0,t._db_0.xLangMapEntryDao)}}(this)),this._SchoolMemberDao_t3wkt$_0=I(function(t){return function(){return new nJ(t._db_0,t._db_0.schoolMemberDao)}}(this)),this._ClazzAssignmentDao_3ritje$_0=I(function(t){return function(){return new Js(t._db_0,t._db_0.clazzAssignmentDao)}}(this)),this._ClazzAssignmentContentJoinDao_c3dv5p$_0=I(function(t){return function(){return new Hr(t._db_0,t._db_0.clazzAssignmentContentJoinDao)}}(this)),this._CourseAssignmentSubmissionDao_3ulqsz$_0=I(function(t){return function(){return new BT(t._db_0,t._db_0.courseAssignmentSubmissionDao)}}(this)),this._CourseAssignmentSubmissionAttachmentDao_ib6fwq$_0=I(function(t){return function(){return new tT(t._db_0,t._db_0.courseAssignmentSubmissionAttachmentDao)}}(this)),this._CourseAssignmentMarkDao_m886vg$_0=I(function(t){return function(){return new IN(t._db_0,t._db_0.courseAssignmentMarkDao)}}(this)),this._CommentsDao_il4mj1$_0=I(function(t){return function(){return new r_(t._db_0,t._db_0.commentsDao)}}(this)),this._SiteDao_j3be4m$_0=I(function(t){return function(){return new EQ(t._db_0,t._db_0.siteDao)}}(this)),this._SiteTermsDao_7vhenl$_0=I(function(t){return function(){return new uZ(t._db_0,t._db_0.siteTermsDao)}}(this)),this._PersonParentJoinDao_a70e5k$_0=I(function(t){return function(){return new VW(t._db_0,t._db_0.personParentJoinDao)}}(this)),this._ScopedGrantDao_wu1qzn$_0=I(function(t){return function(){return new dY(t._db_0,t._db_0.scopedGrantDao)}}(this)),this._ErrorReportDao_yuub65$_0=I(function(t){return function(){return new Qx(t._db_0,t._db_0.errorReportDao)}}(this)),this._PersonAuth2Dao_7mmgyu$_0=I(function(t){return function(){return new lG(t._db_0,t._db_0.personAuth2Dao)}}(this)),this._UserSessionDao_9evou4$_0=I(function(t){return function(){return new k2(t._db_0,t._db_0.userSessionDao)}}(this)),this._CoursePictureDao_3orl8$_0=I(function(t){return function(){return new vO(t._db_0,t._db_0.coursePictureDao)}}(this)),this._ContentEntryPictureDao_j5086u$_0=I(function(t){return function(){return new AS(t._db_0,t._db_0.contentEntryPictureDao)}}(this)),this._ChatDao_vp405z$_0=I(function(t){return function(){return new Yo(t._db_0,t._db_0.chatDao)}}(this)),this._ChatMemberDao_xtv975$_0=I(function(t){return function(){return new gr(t._db_0,t._db_0.chatMemberDao)}}(this)),this._MessageDao_glinco$_0=I(function(t){return function(){return new Qk(t._db_0,t._db_0.messageDao)}}(this)),this._MessageReadDao_n0br0y$_0=I(function(t){return function(){return new yj(t._db_0,t._db_0.messageReadDao)}}(this)),this._CourseDiscussionDao_2sbhnm$_0=I(function(t){return function(){return new Tz(t._db_0,t._db_0.courseDiscussionDao)}}(this)),this._DiscussionTopicDao_4z0ot4$_0=I(function(t){return function(){return new FA(t._db_0,t._db_0.discussionTopicDao)}}(this)),this._DiscussionPostDao_7vrkiv$_0=I(function(t){return function(){return new YR(t._db_0,t._db_0.discussionPostDao)}}(this))}function kn(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function jn(t){this._db_0=t}function Gn(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function qn(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Fn(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Bn(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Wn(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Hn(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Vn(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Kn(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Xn(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Jn(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Yn(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Qn(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Zn(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function ti(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function ei(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function ni(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function ii(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function oi(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function ri(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function si(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function ai(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function ci(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function li(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function ui(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function hi(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function di(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function pi(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function _i(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function mi(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function fi(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function gi(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function $i(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Ei(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function yi(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function bi(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Si(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function vi(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Ci(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Ni(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Ti(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Li(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function zi(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function wi(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Oi(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Ri(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Ai(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function xi(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Ii(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Ui(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Di(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Pi(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Mi(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function ki(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function ji(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Gi(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function qi(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Fi(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Bi(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Wi(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Hi(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Vi(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Ki(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}function Xi(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$tableNames=t,this.local$closure$_checkPendingNotifications=e,this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner=n,this.local$_transactionDb=i}function Ji(t,e,n){return function(i,o,r){var s=new Xi(t,e,n,i,o);return r?s:s.doResume(null)}}function Yi(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_checkPendingNotifications=void 0,this.local$tableNames=e}function Qi(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$fnTimeCounter=void 0,this.local$_transactionDb=e}function Zi(t){return function(e,n,i){var o=new Qi(t,e,n);return i?o:o.doResume(null)}}function to(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function eo(t,e,n,i){var o,r;oo(),void 0===i&&(i=!1),Ln.call(this),this.db_dckk3g$_0=t,this.config_awa45k$_0=n,this.isRootRepository_z663x8$_0=i,this._db_0=e,o=this.isRootRepository&&this.config.useReplicationSubscription?nt(this):null,this.replicationSubscriptionManager_j1bst2$_0=o,this._repositoryHelper=new it,this._PersonDao_ujubz8$_0=I((r=this,function(){return new Jq(r.db,r,r.db.personDao,r._httpClient,r.clientId,r._endpoint_0)})),this._ClazzDao_e4tenz$_0=I(function(t){return function(){return new Rl(t.db,t,t.db.clazzDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._CourseBlockDao_ei3yxn$_0=I(function(t){return function(){return new HL(t.db,t,t.db.courseBlockDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._CourseTerminologyDao_jhtq7$_0=I(function(t){return function(){return new dR(t.db,t,t.db.courseTerminologyDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._CourseGroupSetDao_4in49n$_0=I(function(t){return function(){return new Qw(t.db,t,t.db.courseGroupSetDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._CourseGroupMemberDao_bgnla1$_0=I(function(t){return function(){return new _w(t.db,t,t.db.courseGroupMemberDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._ClazzEnrolmentDao_4a7n1v$_0=I(function(t){return function(){return new ih(t.db,t,t.db.clazzEnrolmentDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._LeavingReasonDao_hlqrb3$_0=I(function(t){return function(){return new uk(t.db,t,t.db.leavingReasonDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._ContentEntryDao_8jkla8$_0=I(function(t){return function(){return new tb(t.db,t,t.db.contentEntryDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._ContentEntryContentCategoryJoinDao_rca9kf$_0=I(function(t){return function(){return new f$(t.db,t,t.db.contentEntryContentCategoryJoinDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._ContentEntryParentChildJoinDao_p9lgj8$_0=I(function(t){return function(){return new sS(t.db,t,t.db.contentEntryParentChildJoinDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._ContentEntryRelatedEntryJoinDao_h6no6p$_0=I(function(t){return function(){return new gv(t.db,t,t.db.contentEntryRelatedEntryJoinDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._ClazzContentJoinDao_inlg8e$_0=I(function(t){return function(){return new rc(t.db,t,t.db.clazzContentJoinDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._ContentCategorySchemaDao_5s0bb5$_0=I(function(t){return function(){return new Xg(t.db,t,t.db.contentCategorySchemaDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._ContentCategoryDao_bkzxts$_0=I(function(t){return function(){return new zg(t.db,t,t.db.contentCategoryDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._LanguageDao_uo42vz$_0=I(function(t){return function(){return new WD(t.db,t,t.db.languageDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._LanguageVariantDao_dgbgcq$_0=I(function(t){return function(){return new mP(t.db,t,t.db.languageVariantDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._PersonGroupDao_7mhe25$_0=I(function(t){return function(){return new lB(t.db,t,t.db.personGroupDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._PersonGroupMemberDao_wihgy5$_0=I(function(t){return function(){return new lW(t.db,t,t.db.personGroupMemberDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._EntityRoleDao_1gzugw$_0=I(function(t){return function(){return new Ix(t.db,t,t.db.entityRoleDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._PersonPictureDao_xtn7v6$_0=I(function(t){return function(){return new AH(t.db,t,t.db.personPictureDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._ContainerDao_3wn3o6$_0=I(function(t){return function(){return new Im(t.db,t,t.db.containerDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._VerbDao_nm4w2u$_0=I(function(t){return function(){return new F3(t.db,t,t.db.verbDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._XObjectDao_jq9ao0$_0=I(function(t){return function(){return new I6(t.db,t,t.db.xObjectDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._ReportDao_9u0lvp$_0=I(function(t){return function(){return new wV(t.db,t,t.db.reportDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._StatementDao_tpixrc$_0=I(function(t){return function(){return new D1(t.db,t,t.db.statementDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._ContextXObjectStatementJoinDao_6w1wdi$_0=I(function(t){return function(){return new pN(t.db,t,t.db.contextXObjectStatementJoinDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._StateDao_j50u9m$_0=I(function(t){return function(){return new l0(t.db,t,t.db.stateDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._StateContentDao_fw26c1$_0=I(function(t){return function(){return new FZ(t.db,t,t.db.stateContentDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._AgentDao_pi586m$_0=I(function(t){return function(){return new vo(t.db,t,t.db.agentDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._LearnerGroupDao_76gatx$_0=I(function(t){return function(){return new FP(t.db,t,t.db.learnerGroupDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._LearnerGroupMemberDao_7uhmpd$_0=I(function(t){return function(){return new $M(t.db,t,t.db.learnerGroupMemberDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._GroupLearningSessionDao_38ojog$_0=I(function(t){return function(){return new yI(t.db,t,t.db.groupLearningSessionDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._ClazzLogAttendanceRecordDao_4r3kjx$_0=I(function(t){return function(){return new jh(t.db,t,t.db.clazzLogAttendanceRecordDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._ClazzLogDao_70b6y5$_0=I(function(t){return function(){return new Gd(t.db,t,t.db.clazzLogDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._ScheduleDao_dgcsim$_0=I(function(t){return function(){return new zK(t.db,t,t.db.scheduleDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._HolidayCalendarDao_dbgjhb$_0=I(function(t){return function(){return new lU(t.db,t,t.db.holidayCalendarDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._HolidayDao_n3kgxr$_0=I(function(t){return function(){return new GU(t.db,t,t.db.holidayDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._SchoolDao_ro0mez$_0=I(function(t){return function(){return new yX(t.db,t,t.db.schoolDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._XLangMapEntryDao_lbg3az$_0=I(function(t){return function(){return new p6(t.db,t,t.db.xLangMapEntryDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._SchoolMemberDao_l0miut$_0=I(function(t){return function(){return new sJ(t.db,t,t.db.schoolMemberDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._ClazzAssignmentDao_l1mez6$_0=I(function(t){return function(){return new oa(t.db,t,t.db.clazzAssignmentDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._ClazzAssignmentContentJoinDao_1c2tvf$_0=I(function(t){return function(){return new Jr(t.db,t,t.db.clazzAssignmentContentJoinDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._ClazzAssignmentRollUpDao_2f8am2$_0=I(function(t){return function(){return new xa(t.db,t,t.db.clazzAssignmentRollUpDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._CourseAssignmentSubmissionDao_9kuy85$_0=I(function(t){return function(){return new XT(t.db,t,t.db.courseAssignmentSubmissionDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._CourseAssignmentSubmissionAttachmentDao_68jpoi$_0=I(function(t){return function(){return new rT(t.db,t,t.db.courseAssignmentSubmissionAttachmentDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._CourseAssignmentMarkDao_7honss$_0=I(function(t){return function(){return new MN(t.db,t,t.db.courseAssignmentMarkDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._CommentsDao_7ok0mz$_0=I(function(t){return function(){return new d_(t.db,t,t.db.commentsDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._SiteDao_35ern6$_0=I(function(t){return function(){return new CQ(t.db,t,t.db.siteDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._SiteTermsDao_u5navr$_0=I(function(t){return function(){return new gZ(t.db,t,t.db.siteTermsDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._PersonParentJoinDao_saaols$_0=I(function(t){return function(){return new QW(t.db,t,t.db.personParentJoinDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._ScopedGrantDao_3r6sr$_0=I(function(t){return function(){return new NY(t.db,t,t.db.scopedGrantDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._ErrorReportDao_3fz6m3$_0=I(function(t){return function(){return new eI(t.db,t,t.db.errorReportDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._PersonAuth2Dao_uo70te$_0=I(function(t){return function(){return new pG(t.db,t,t.db.personAuth2Dao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._UserSessionDao_svxsy4$_0=I(function(t){return function(){return new W2(t.db,t,t.db.userSessionDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._CoursePictureDao_cwo2r8$_0=I(function(t){return function(){return new zO(t.db,t,t.db.coursePictureDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._ContentEntryPictureDao_6clelq$_0=I(function(t){return function(){return new PS(t.db,t,t.db.contentEntryPictureDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._ChatDao_9gdue7$_0=I(function(t){return function(){return new er(t.db,t,t.db.chatDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._ChatMemberDao_8nduuf$_0=I(function(t){return function(){return new br(t.db,t,t.db.chatMemberDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._MessageDao_uo7ouo$_0=I(function(t){return function(){return new oj(t.db,t,t.db.messageDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._MessageReadDao_9pyt5y$_0=I(function(t){return function(){return new Cj(t.db,t,t.db.messageReadDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._CourseDiscussionDao_zc4gve$_0=I(function(t){return function(){return new Iz(t.db,t,t.db.courseDiscussionDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._DiscussionTopicDao_cb2wmo$_0=I(function(t){return function(){return new YA(t.db,t,t.db.discussionTopicDao,t._httpClient,t.clientId,t._endpoint_0)}}(this)),this._DiscussionPostDao_xx2rrl$_0=I(function(t){return function(){return new eA(t.db,t,t.db.discussionPostDao,t._httpClient,t.clientId,t._endpoint_0)}}(this))}function no(){io=this,this._DB_NAME="UmAppDatabase"}On.$metadata$={kind:c,simpleName:"UmAppDatabase_DoorMetadata",interfaces:[d]},Object.defineProperty(Un.prototype,"doorJdbcSourceDatabase",{get:function(){return this.doorJdbcSourceDatabase_bt2m6l$_0}}),Object.defineProperty(Un.prototype,"dataSource",{get:function(){return this.dataSource_sv708p$_0}}),Object.defineProperty(Un.prototype,"dbName",{get:function(){return this.dbName_gan2df$_0}}),Object.defineProperty(Un.prototype,"realAttachmentFilters",{get:function(){return this.realAttachmentFilters_2an2a6$_0}}),Object.defineProperty(Un.prototype,"jdbcQueryTimeout",{get:function(){return this.jdbcQueryTimeout_8tsw54$_0}}),Object.defineProperty(Un.prototype,"dbVersion",{configurable:!0,get:function(){return 107}}),Object.defineProperty(Un.prototype,"jdbcImplHelper",{configurable:!0,get:function(){return this.jdbcImplHelper_hbcd5v$_0}}),Object.defineProperty(Un.prototype,"realAttachmentStorageUri",{configurable:!0,get:function(){return this.realAttachmentStorageUri_9ktfae$_0}}),Object.defineProperty(Un.prototype,"realReplicationNotificationDispatcher",{configurable:!0,get:function(){return this.realReplicationNotificationDispatcher_205h14$_0.value}}),Object.defineProperty(Un.prototype,"realIncomingReplicationListenerHelper",{configurable:!0,get:function(){return this.realIncomingReplicationListenerHelper_iyxd1e$_0}}),Object.defineProperty(Un.prototype,"realNodeIdAuthCache",{configurable:!0,get:function(){return this.realNodeIdAuthCache_xrrr9l$_0.value}}),Object.defineProperty(Un.prototype,"realPrimaryKeyManager",{configurable:!0,get:function(){return this.realPrimaryKeyManager_iue8ui$_0.value}}),Object.defineProperty(Un.prototype,"_NetworkNodeDao",{configurable:!0,get:function(){return this._NetworkNodeDao_3oxnq1$_0.value}}),Object.defineProperty(Un.prototype,"networkNodeDao",{configurable:!0,get:function(){return this._NetworkNodeDao}}),Object.defineProperty(Un.prototype,"_PersonDao",{configurable:!0,get:function(){return this._PersonDao_k7x8oe$_0.value}}),Object.defineProperty(Un.prototype,"personDao",{configurable:!0,get:function(){return this._PersonDao}}),Object.defineProperty(Un.prototype,"_ClazzDao",{configurable:!0,get:function(){return this._ClazzDao_3jk0dr$_0.value}}),Object.defineProperty(Un.prototype,"clazzDao",{configurable:!0,get:function(){return this._ClazzDao}}),Object.defineProperty(Un.prototype,"_CourseBlockDao",{configurable:!0,get:function(){return this._CourseBlockDao_2gjouh$_0.value}}),Object.defineProperty(Un.prototype,"courseBlockDao",{configurable:!0,get:function(){return this._CourseBlockDao}}),Object.defineProperty(Un.prototype,"_CourseTerminologyDao",{configurable:!0,get:function(){return this._CourseTerminologyDao_45h00h$_0.value}}),Object.defineProperty(Un.prototype,"courseTerminologyDao",{configurable:!0,get:function(){return this._CourseTerminologyDao}}),Object.defineProperty(Un.prototype,"_CourseGroupSetDao",{configurable:!0,get:function(){return this._CourseGroupSetDao_d461hl$_0.value}}),Object.defineProperty(Un.prototype,"courseGroupSetDao",{configurable:!0,get:function(){return this._CourseGroupSetDao}}),Object.defineProperty(Un.prototype,"_CourseGroupMemberDao",{configurable:!0,get:function(){return this._CourseGroupMemberDao_f2mrkb$_0.value}}),Object.defineProperty(Un.prototype,"courseGroupMemberDao",{configurable:!0,get:function(){return this._CourseGroupMemberDao}}),Object.defineProperty(Un.prototype,"_ClazzEnrolmentDao",{configurable:!0,get:function(){return this._ClazzEnrolmentDao_4bba63$_0.value}}),Object.defineProperty(Un.prototype,"clazzEnrolmentDao",{configurable:!0,get:function(){return this._ClazzEnrolmentDao}}),Object.defineProperty(Un.prototype,"_LeavingReasonDao",{configurable:!0,get:function(){return this._LeavingReasonDao_dar3v5$_0.value}}),Object.defineProperty(Un.prototype,"leavingReasonDao",{configurable:!0,get:function(){return this._LeavingReasonDao}}),Object.defineProperty(Un.prototype,"_ContentEntryDao",{configurable:!0,get:function(){return this._ContentEntryDao_9nbtke$_0.value}}),Object.defineProperty(Un.prototype,"contentEntryDao",{configurable:!0,get:function(){return this._ContentEntryDao}}),Object.defineProperty(Un.prototype,"_ContentEntryContentCategoryJoinDao",{configurable:!0,get:function(){return this._ContentEntryContentCategoryJoinDao_2aqtq9$_0.value}}),Object.defineProperty(Un.prototype,"contentEntryContentCategoryJoinDao",{configurable:!0,get:function(){return this._ContentEntryContentCategoryJoinDao}}),Object.defineProperty(Un.prototype,"_ContentEntryParentChildJoinDao",{configurable:!0,get:function(){return this._ContentEntryParentChildJoinDao_tr06be$_0.value}}),Object.defineProperty(Un.prototype,"contentEntryParentChildJoinDao",{configurable:!0,get:function(){return this._ContentEntryParentChildJoinDao}}),Object.defineProperty(Un.prototype,"_ContentEntryRelatedEntryJoinDao",{configurable:!0,get:function(){return this._ContentEntryRelatedEntryJoinDao_hyl14z$_0.value}}),Object.defineProperty(Un.prototype,"contentEntryRelatedEntryJoinDao",{configurable:!0,get:function(){return this._ContentEntryRelatedEntryJoinDao}}),Object.defineProperty(Un.prototype,"_ClazzContentJoinDao",{configurable:!0,get:function(){return this._ClazzContentJoinDao_tcg5t0$_0.value}}),Object.defineProperty(Un.prototype,"clazzContentJoinDao",{configurable:!0,get:function(){return this._ClazzContentJoinDao}}),Object.defineProperty(Un.prototype,"_ContentCategorySchemaDao",{configurable:!0,get:function(){return this._ContentCategorySchemaDao_a6b1ap$_0.value}}),Object.defineProperty(Un.prototype,"contentCategorySchemaDao",{configurable:!0,get:function(){return this._ContentCategorySchemaDao}}),Object.defineProperty(Un.prototype,"_ContentCategoryDao",{configurable:!0,get:function(){return this._ContentCategoryDao_605o8e$_0.value}}),Object.defineProperty(Un.prototype,"contentCategoryDao",{configurable:!0,get:function(){return this._ContentCategoryDao}}),Object.defineProperty(Un.prototype,"_LanguageDao",{configurable:!0,get:function(){return this._LanguageDao_nmss4x$_0.value}}),Object.defineProperty(Un.prototype,"languageDao",{configurable:!0,get:function(){return this._LanguageDao}}),Object.defineProperty(Un.prototype,"_LanguageVariantDao",{configurable:!0,get:function(){return this._LanguageVariantDao_44u5pg$_0.value}}),Object.defineProperty(Un.prototype,"languageVariantDao",{configurable:!0,get:function(){return this._LanguageVariantDao}}),Object.defineProperty(Un.prototype,"_ScrapeQueueItemDao",{configurable:!0,get:function(){return this._ScrapeQueueItemDao_7pv1vr$_0.value}}),Object.defineProperty(Un.prototype,"scrapeQueueItemDao",{configurable:!0,get:function(){return this._ScrapeQueueItemDao}}),Object.defineProperty(Un.prototype,"_PersonAuthDao",{configurable:!0,get:function(){return this._PersonAuthDao_7soik6$_0.value}}),Object.defineProperty(Un.prototype,"personAuthDao",{configurable:!0,get:function(){return this._PersonAuthDao}}),Object.defineProperty(Un.prototype,"_PersonGroupDao",{configurable:!0,get:function(){return this._PersonGroupDao_jo1o5b$_0.value}}),Object.defineProperty(Un.prototype,"personGroupDao",{configurable:!0,get:function(){return this._PersonGroupDao}}),Object.defineProperty(Un.prototype,"_PersonGroupMemberDao",{configurable:!0,get:function(){return this._PersonGroupMemberDao_swianv$_0.value}}),Object.defineProperty(Un.prototype,"personGroupMemberDao",{configurable:!0,get:function(){return this._PersonGroupMemberDao}}),Object.defineProperty(Un.prototype,"_EntityRoleDao",{configurable:!0,get:function(){return this._EntityRoleDao_flwn1q$_0.value}}),Object.defineProperty(Un.prototype,"entityRoleDao",{configurable:!0,get:function(){return this._EntityRoleDao}}),Object.defineProperty(Un.prototype,"_PersonPictureDao",{configurable:!0,get:function(){return this._PersonPictureDao_wwh6o0$_0.value}}),Object.defineProperty(Un.prototype,"personPictureDao",{configurable:!0,get:function(){return this._PersonPictureDao}}),Object.defineProperty(Un.prototype,"_ConnectivityStatusDao",{configurable:!0,get:function(){return this._ConnectivityStatusDao_kxoa8y$_0.value}}),Object.defineProperty(Un.prototype,"connectivityStatusDao",{configurable:!0,get:function(){return this._ConnectivityStatusDao}}),Object.defineProperty(Un.prototype,"_ContainerDao",{configurable:!0,get:function(){return this._ContainerDao_8y171k$_0.value}}),Object.defineProperty(Un.prototype,"containerDao",{configurable:!0,get:function(){return this._ContainerDao}}),Object.defineProperty(Un.prototype,"_ContainerEntryDao",{configurable:!0,get:function(){return this._ContainerEntryDao_2k8qly$_0.value}}),Object.defineProperty(Un.prototype,"containerEntryDao",{configurable:!0,get:function(){return this._ContainerEntryDao}}),Object.defineProperty(Un.prototype,"_ContainerEntryFileDao",{configurable:!0,get:function(){return this._ContainerEntryFileDao_j7lyp2$_0.value}}),Object.defineProperty(Un.prototype,"containerEntryFileDao",{configurable:!0,get:function(){return this._ContainerEntryFileDao}}),Object.defineProperty(Un.prototype,"_ContainerETagDao",{configurable:!0,get:function(){return this._ContainerETagDao_aj6yxf$_0.value}}),Object.defineProperty(Un.prototype,"containerETagDao",{configurable:!0,get:function(){return this._ContainerETagDao}}),Object.defineProperty(Un.prototype,"_VerbDao",{configurable:!0,get:function(){return this._VerbDao_ut1ars$_0.value}}),Object.defineProperty(Un.prototype,"verbDao",{configurable:!0,get:function(){return this._VerbDao}}),Object.defineProperty(Un.prototype,"_XObjectDao",{configurable:!0,get:function(){return this._XObjectDao_uyivji$_0.value}}),Object.defineProperty(Un.prototype,"xObjectDao",{configurable:!0,get:function(){return this._XObjectDao}}),Object.defineProperty(Un.prototype,"_ReportDao",{configurable:!0,get:function(){return this._ReportDao_u3d377$_0.value}}),Object.defineProperty(Un.prototype,"reportDao",{configurable:!0,get:function(){return this._ReportDao}}),Object.defineProperty(Un.prototype,"_ContainerImportJobDao",{configurable:!0,get:function(){return this._ContainerImportJobDao_87ws0$_0.value}}),Object.defineProperty(Un.prototype,"containerImportJobDao",{configurable:!0,get:function(){return this._ContainerImportJobDao}}),Object.defineProperty(Un.prototype,"_StatementDao",{configurable:!0,get:function(){return this._StatementDao_yqx14q$_0.value}}),Object.defineProperty(Un.prototype,"statementDao",{configurable:!0,get:function(){return this._StatementDao}}),Object.defineProperty(Un.prototype,"_ContextXObjectStatementJoinDao",{configurable:!0,get:function(){return this._ContextXObjectStatementJoinDao_mwkbi0$_0.value}}),Object.defineProperty(Un.prototype,"contextXObjectStatementJoinDao",{configurable:!0,get:function(){return this._ContextXObjectStatementJoinDao}}),Object.defineProperty(Un.prototype,"_StateDao",{configurable:!0,get:function(){return this._StateDao_y7psns$_0.value}}),Object.defineProperty(Un.prototype,"stateDao",{configurable:!0,get:function(){return this._StateDao}}),Object.defineProperty(Un.prototype,"_StateContentDao",{configurable:!0,get:function(){return this._StateContentDao_y2yl6n$_0.value}}),Object.defineProperty(Un.prototype,"stateContentDao",{configurable:!0,get:function(){return this._StateContentDao}}),Object.defineProperty(Un.prototype,"_AgentDao",{configurable:!0,get:function(){return this._AgentDao_ruleqs$_0.value}}),Object.defineProperty(Un.prototype,"agentDao",{configurable:!0,get:function(){return this._AgentDao}}),Object.defineProperty(Un.prototype,"_LearnerGroupDao",{configurable:!0,get:function(){return this._LearnerGroupDao_b0g40p$_0.value}}),Object.defineProperty(Un.prototype,"learnerGroupDao",{configurable:!0,get:function(){return this._LearnerGroupDao}}),Object.defineProperty(Un.prototype,"_LearnerGroupMemberDao",{configurable:!0,get:function(){return this._LearnerGroupMemberDao_mag2e9$_0.value}}),Object.defineProperty(Un.prototype,"learnerGroupMemberDao",{configurable:!0,get:function(){return this._LearnerGroupMemberDao}}),Object.defineProperty(Un.prototype,"_GroupLearningSessionDao",{configurable:!0,get:function(){return this._GroupLearningSessionDao_m33w7i$_0.value}}),Object.defineProperty(Un.prototype,"groupLearningSessionDao",{configurable:!0,get:function(){return this._GroupLearningSessionDao}}),Object.defineProperty(Un.prototype,"_ClazzLogAttendanceRecordDao",{configurable:!0,get:function(){return this._ClazzLogAttendanceRecordDao_ap5hnj$_0.value}}),Object.defineProperty(Un.prototype,"clazzLogAttendanceRecordDao",{configurable:!0,get:function(){return this._ClazzLogAttendanceRecordDao}}),Object.defineProperty(Un.prototype,"_ClazzLogDao",{configurable:!0,get:function(){return this._ClazzLogDao_e1mhp7$_0.value}}),Object.defineProperty(Un.prototype,"clazzLogDao",{configurable:!0,get:function(){return this._ClazzLogDao}}),Object.defineProperty(Un.prototype,"_ScheduleDao",{configurable:!0,get:function(){return this._ScheduleDao_6f1hrk$_0.value}}),Object.defineProperty(Un.prototype,"scheduleDao",{configurable:!0,get:function(){return this._ScheduleDao}}),Object.defineProperty(Un.prototype,"_HolidayCalendarDao",{configurable:!0,get:function(){return this._HolidayCalendarDao_uwm5jh$_0.value}}),Object.defineProperty(Un.prototype,"holidayCalendarDao",{configurable:!0,get:function(){return this._HolidayCalendarDao}}),Object.defineProperty(Un.prototype,"_HolidayDao",{configurable:!0,get:function(){return this._HolidayDao_bvaw29$_0.value}}),Object.defineProperty(Un.prototype,"holidayDao",{configurable:!0,get:function(){return this._HolidayDao}}),Object.defineProperty(Un.prototype,"_SchoolDao",{configurable:!0,get:function(){return this._SchoolDao_7eo53h$_0.value}}),Object.defineProperty(Un.prototype,"schoolDao",{configurable:!0,get:function(){return this._SchoolDao}}),Object.defineProperty(Un.prototype,"_XLangMapEntryDao",{configurable:!0,get:function(){return this._XLangMapEntryDao_h0gfv1$_0.value}}),Object.defineProperty(Un.prototype,"xLangMapEntryDao",{configurable:!0,get:function(){return this._XLangMapEntryDao}}),Object.defineProperty(Un.prototype,"_LocallyAvailableContainerDao",{configurable:!0,get:function(){return this._LocallyAvailableContainerDao_7wf02v$_0.value}}),Object.defineProperty(Un.prototype,"locallyAvailableContainerDao",{configurable:!0,get:function(){return this._LocallyAvailableContainerDao}}),Object.defineProperty(Un.prototype,"_SchoolMemberDao",{configurable:!0,get:function(){return this._SchoolMemberDao_2tq407$_0.value}}),Object.defineProperty(Un.prototype,"schoolMemberDao",{configurable:!0,get:function(){return this._SchoolMemberDao}}),Object.defineProperty(Un.prototype,"_ClazzAssignmentDao",{configurable:!0,get:function(){return this._ClazzAssignmentDao_3ggsx0$_0.value}}),Object.defineProperty(Un.prototype,"clazzAssignmentDao",{configurable:!0,get:function(){return this._ClazzAssignmentDao}}),Object.defineProperty(Un.prototype,"_ClazzAssignmentContentJoinDao",{configurable:!0,get:function(){return this._ClazzAssignmentContentJoinDao_u85dhz$_0.value}}),Object.defineProperty(Un.prototype,"clazzAssignmentContentJoinDao",{configurable:!0,get:function(){return this._ClazzAssignmentContentJoinDao}}),Object.defineProperty(Un.prototype,"_ClazzAssignmentRollUpDao",{configurable:!0,get:function(){return this._ClazzAssignmentRollUpDao_idjn7w$_0.value}}),Object.defineProperty(Un.prototype,"clazzAssignmentRollUpDao",{configurable:!0,get:function(){return this._ClazzAssignmentRollUpDao}}),Object.defineProperty(Un.prototype,"_CourseAssignmentSubmissionDao",{configurable:!0,get:function(){return this._CourseAssignmentSubmissionDao_lzd959$_0.value}}),Object.defineProperty(Un.prototype,"courseAssignmentSubmissionDao",{configurable:!0,get:function(){return this._CourseAssignmentSubmissionDao}}),Object.defineProperty(Un.prototype,"_CourseAssignmentSubmissionAttachmentDao",{configurable:!0,get:function(){return this._CourseAssignmentSubmissionAttachmentDao_kk6as0$_0.value}}),Object.defineProperty(Un.prototype,"courseAssignmentSubmissionAttachmentDao",{configurable:!0,get:function(){return this._CourseAssignmentSubmissionAttachmentDao}}),Object.defineProperty(Un.prototype,"_CourseAssignmentMarkDao",{configurable:!0,get:function(){return this._CourseAssignmentMarkDao_bcqoqa$_0.value}}),Object.defineProperty(Un.prototype,"courseAssignmentMarkDao",{configurable:!0,get:function(){return this._CourseAssignmentMarkDao}}),Object.defineProperty(Un.prototype,"_CommentsDao",{configurable:!0,get:function(){return this._CommentsDao_n8pvx$_0.value}}),Object.defineProperty(Un.prototype,"commentsDao",{configurable:!0,get:function(){return this._CommentsDao}}),Object.defineProperty(Un.prototype,"_SyncNodeDao",{configurable:!0,get:function(){return this._SyncNodeDao_gj1sd2$_0.value}}),Object.defineProperty(Un.prototype,"syncNodeDao",{configurable:!0,get:function(){return this._SyncNodeDao}}),Object.defineProperty(Un.prototype,"_SiteDao",{configurable:!0,get:function(){return this._SiteDao_dgj3hc$_0.value}}),Object.defineProperty(Un.prototype,"siteDao",{configurable:!0,get:function(){return this._SiteDao}}),Object.defineProperty(Un.prototype,"_SiteTermsDao",{configurable:!0,get:function(){return this._SiteTermsDao_z71e95$_0.value}}),Object.defineProperty(Un.prototype,"siteTermsDao",{configurable:!0,get:function(){return this._SiteTermsDao}}),Object.defineProperty(Un.prototype,"_PersonParentJoinDao",{configurable:!0,get:function(){return this._PersonParentJoinDao_jpqxfm$_0.value}}),Object.defineProperty(Un.prototype,"personParentJoinDao",{configurable:!0,get:function(){return this._PersonParentJoinDao}}),Object.defineProperty(Un.prototype,"_ScopedGrantDao",{configurable:!0,get:function(){return this._ScopedGrantDao_c5bgvx$_0.value}}),Object.defineProperty(Un.prototype,"scopedGrantDao",{configurable:!0,get:function(){return this._ScopedGrantDao}}),Object.defineProperty(Un.prototype,"_ErrorReportDao",{configurable:!0,get:function(){return this._ErrorReportDao_fhjgp9$_0.value}}),Object.defineProperty(Un.prototype,"errorReportDao",{configurable:!0,get:function(){return this._ErrorReportDao}}),Object.defineProperty(Un.prototype,"_PersonAuth2Dao",{configurable:!0,get:function(){return this._PersonAuth2Dao_sbcr2k$_0.value}}),Object.defineProperty(Un.prototype,"personAuth2Dao",{configurable:!0,get:function(){return this._PersonAuth2Dao}}),Object.defineProperty(Un.prototype,"_UserSessionDao",{configurable:!0,get:function(){return this._UserSessionDao_u3lyxu$_0.value}}),Object.defineProperty(Un.prototype,"userSessionDao",{configurable:!0,get:function(){return this._UserSessionDao}}),Object.defineProperty(Un.prototype,"_ContentJobItemDao",{configurable:!0,get:function(){return this._ContentJobItemDao_wk14ls$_0.value}}),Object.defineProperty(Un.prototype,"contentJobItemDao",{configurable:!0,get:function(){return this._ContentJobItemDao}}),Object.defineProperty(Un.prototype,"_ContentJobDao",{configurable:!0,get:function(){return this._ContentJobDao_otp6eb$_0.value}}),Object.defineProperty(Un.prototype,"contentJobDao",{configurable:!0,get:function(){return this._ContentJobDao}}),Object.defineProperty(Un.prototype,"_CoursePictureDao",{configurable:!0,get:function(){return this._CoursePictureDao_8lofba$_0.value}}),Object.defineProperty(Un.prototype,"coursePictureDao",{configurable:!0,get:function(){return this._CoursePictureDao}}),Object.defineProperty(Un.prototype,"_ContentEntryPictureDao",{configurable:!0,get:function(){return this._ContentEntryPictureDao_h75b18$_0.value}}),Object.defineProperty(Un.prototype,"contentEntryPictureDao",{configurable:!0,get:function(){return this._ContentEntryPictureDao}}),Object.defineProperty(Un.prototype,"_ChatDao",{configurable:!0,get:function(){return this._ChatDao_q2bpip$_0.value}}),Object.defineProperty(Un.prototype,"chatDao",{configurable:!0,get:function(){return this._ChatDao}}),Object.defineProperty(Un.prototype,"_ChatMemberDao",{configurable:!0,get:function(){return this._ChatMemberDao_msanf9$_0.value}}),Object.defineProperty(Un.prototype,"chatMemberDao",{configurable:!0,get:function(){return this._ChatMemberDao}}),Object.defineProperty(Un.prototype,"_MessageDao",{configurable:!0,get:function(){return this._MessageDao_jfy3z6$_0.value}}),Object.defineProperty(Un.prototype,"messageDao",{configurable:!0,get:function(){return this._MessageDao}}),Object.defineProperty(Un.prototype,"_MessageReadDao",{configurable:!0,get:function(){return this._MessageReadDao_2blgx8$_0.value}}),Object.defineProperty(Un.prototype,"messageReadDao",{configurable:!0,get:function(){return this._MessageReadDao}}),Object.defineProperty(Un.prototype,"_CourseDiscussionDao",{configurable:!0,get:function(){return this._CourseDiscussionDao_cb20xo$_0.value}}),Object.defineProperty(Un.prototype,"courseDiscussionDao",{configurable:!0,get:function(){return this._CourseDiscussionDao}}),Object.defineProperty(Un.prototype,"_DiscussionTopicDao",{configurable:!0,get:function(){return this._DiscussionTopicDao_5a2pfi$_0.value}}),Object.defineProperty(Un.prototype,"discussionTopicDao",{configurable:!0,get:function(){return this._DiscussionTopicDao}}),Object.defineProperty(Un.prototype,"_DiscussionPostDao",{configurable:!0,get:function(){return this._DiscussionPostDao_siiczl$_0.value}}),Object.defineProperty(Un.prototype,"discussionPostDao",{configurable:!0,get:function(){return this._DiscussionPostDao}}),Un.prototype.createAllTables=function(){var t=b([]);switch(this.jdbcImplHelper.dbType){case 1:t.add_11rb$("CREATE TABLE IF NOT EXISTS _doorwayinfo (dbVersion int primary key, dbHash varchar(255))"),t.add_11rb$("INSERT INTO _doorwayinfo VALUES (107, '')"),t.add_11rb$("CREATE TABLE IF NOT EXISTS NetworkNode ( bluetoothMacAddress TEXT , ipAddress TEXT , wifiDirectMacAddress TEXT , deviceWifiDirectName TEXT , endpointUrl TEXT , lastUpdateTimeStamp INTEGER NOT NULL , networkServiceLastUpdated INTEGER NOT NULL , nsdServiceName TEXT , port INTEGER NOT NULL , numFailureCount INTEGER NOT NULL , wifiDirectDeviceStatus INTEGER NOT NULL , groupSsid TEXT , nodeId INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzLog ( clazzLogClazzUid INTEGER NOT NULL , logDate INTEGER NOT NULL , timeRecorded INTEGER NOT NULL , clazzLogDone INTEGER NOT NULL , cancellationNote TEXT , clazzLogCancelled INTEGER NOT NULL , clazzLogNumPresent INTEGER NOT NULL , clazzLogNumAbsent INTEGER NOT NULL , clazzLogNumPartial INTEGER NOT NULL , clazzLogScheduleUid INTEGER NOT NULL , clazzLogStatusFlag INTEGER NOT NULL , clazzLogMSQN INTEGER NOT NULL , clazzLogLCSN INTEGER NOT NULL , clazzLogLCB INTEGER NOT NULL , clazzLogLastChangedTime INTEGER NOT NULL , clazzLogUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzLogAttendanceRecord ( clazzLogAttendanceRecordClazzLogUid INTEGER NOT NULL , clazzLogAttendanceRecordPersonUid INTEGER NOT NULL , attendanceStatus INTEGER NOT NULL , clazzLogAttendanceRecordMasterChangeSeqNum INTEGER NOT NULL , clazzLogAttendanceRecordLocalChangeSeqNum INTEGER NOT NULL , clazzLogAttendanceRecordLastChangedBy INTEGER NOT NULL , clazzLogAttendanceRecordLastChangedTime INTEGER NOT NULL , clazzLogAttendanceRecordUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS Schedule ( sceduleStartTime INTEGER NOT NULL , scheduleEndTime INTEGER NOT NULL , scheduleDay INTEGER NOT NULL , scheduleMonth INTEGER NOT NULL , scheduleFrequency INTEGER NOT NULL , umCalendarUid INTEGER NOT NULL , scheduleClazzUid INTEGER NOT NULL , scheduleMasterChangeSeqNum INTEGER NOT NULL , scheduleLocalChangeSeqNum INTEGER NOT NULL , scheduleLastChangedBy INTEGER NOT NULL , scheduleLastChangedTime INTEGER NOT NULL , scheduleActive INTEGER NOT NULL , scheduleUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS DateRange ( dateRangeLocalChangeSeqNum INTEGER NOT NULL , dateRangeMasterChangeSeqNum INTEGER NOT NULL , dateRangLastChangedBy INTEGER NOT NULL , dateRangeLct INTEGER NOT NULL , dateRangeFromDate INTEGER NOT NULL , dateRangeToDate INTEGER NOT NULL , dateRangeUMCalendarUid INTEGER NOT NULL , dateRangeName TEXT , dateRangeDesc TEXT , dateRangeActive INTEGER NOT NULL , dateRangeUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS HolidayCalendar ( umCalendarName TEXT , umCalendarCategory INTEGER NOT NULL , umCalendarActive INTEGER NOT NULL , umCalendarMasterChangeSeqNum INTEGER NOT NULL , umCalendarLocalChangeSeqNum INTEGER NOT NULL , umCalendarLastChangedBy INTEGER NOT NULL , umCalendarLct INTEGER NOT NULL , umCalendarUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS Holiday ( holMasterCsn INTEGER NOT NULL , holLocalCsn INTEGER NOT NULL , holLastModBy INTEGER NOT NULL , holLct INTEGER NOT NULL , holActive INTEGER NOT NULL , holHolidayCalendarUid INTEGER NOT NULL , holStartTime INTEGER NOT NULL , holEndTime INTEGER NOT NULL , holName TEXT , holUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ScheduledCheck ( checkTime INTEGER NOT NULL , checkType INTEGER NOT NULL , checkUuid TEXT , checkParameters TEXT , scClazzLogUid INTEGER NOT NULL , scheduledCheckMasterCsn INTEGER NOT NULL , scheduledCheckLocalCsn INTEGER NOT NULL , scheduledCheckLastChangedBy INTEGER NOT NULL , scheduledCheckLct INTEGER NOT NULL , scheduledCheckUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS AuditLog ( auditLogMasterChangeSeqNum INTEGER NOT NULL , auditLogLocalChangeSeqNum INTEGER NOT NULL , auditLogLastChangedBy INTEGER NOT NULL , auditLogLct INTEGER NOT NULL , auditLogActorPersonUid INTEGER NOT NULL , auditLogTableUid INTEGER NOT NULL , auditLogEntityUid INTEGER NOT NULL , auditLogDate INTEGER NOT NULL , notes TEXT , auditLogUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CustomField ( customFieldName TEXT , customFieldNameAlt TEXT , customFieldLabelMessageID INTEGER NOT NULL , customFieldIcon TEXT , customFieldIconId INTEGER NOT NULL , actionOnClick TEXT , customFieldType INTEGER NOT NULL , customFieldEntityType INTEGER NOT NULL , customFieldActive INTEGER NOT NULL , customFieldDefaultValue TEXT , customFieldMCSN INTEGER NOT NULL , customFieldLCSN INTEGER NOT NULL , customFieldLCB INTEGER NOT NULL , customFieldLct INTEGER NOT NULL , customFieldInputType INTEGER NOT NULL , customFieldUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CustomFieldValue ( customFieldValueFieldUid INTEGER NOT NULL , customFieldValueEntityUid INTEGER NOT NULL , customFieldValueValue TEXT , customFieldValueCustomFieldValueOptionUid INTEGER NOT NULL , customFieldValueMCSN INTEGER NOT NULL , customFieldValueLCSN INTEGER NOT NULL , customFieldValueLCB INTEGER NOT NULL , customFieldLct INTEGER NOT NULL , customFieldValueUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CustomFieldValueOption ( customFieldValueOptionName TEXT , customFieldValueOptionFieldUid INTEGER NOT NULL , customFieldValueOptionIcon TEXT , customFieldValueOptionMessageId INTEGER NOT NULL , customFieldValueOptionActive INTEGER NOT NULL , customFieldValueOptionMCSN INTEGER NOT NULL , customFieldValueOptionLCSN INTEGER NOT NULL , customFieldValueOptionLCB INTEGER NOT NULL , customFieldValueLct INTEGER NOT NULL , customFieldValueOptionUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS Person ( username TEXT , firstNames TEXT , lastName TEXT , emailAddr TEXT , phoneNum TEXT , gender INTEGER NOT NULL , active INTEGER NOT NULL , admin INTEGER NOT NULL , personNotes TEXT , fatherName TEXT , fatherNumber TEXT , motherName TEXT , motherNum TEXT , dateOfBirth INTEGER NOT NULL , personAddress TEXT , personOrgId TEXT , personGroupUid INTEGER NOT NULL , personMasterChangeSeqNum INTEGER NOT NULL , personLocalChangeSeqNum INTEGER NOT NULL , personLastChangedBy INTEGER NOT NULL , personLct INTEGER NOT NULL , personCountry TEXT , personType INTEGER NOT NULL DEFAULT 0 , personUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS Clazz ( clazzName TEXT , clazzDesc TEXT , attendanceAverage REAl NOT NULL , clazzHolidayUMCalendarUid INTEGER NOT NULL , clazzScheuleUMCalendarUid INTEGER NOT NULL , isClazzActive INTEGER NOT NULL , clazzLocationUid INTEGER NOT NULL , clazzStartTime INTEGER NOT NULL , clazzEndTime INTEGER NOT NULL , clazzFeatures INTEGER NOT NULL , clazzSchoolUid INTEGER NOT NULL , clazzEnrolmentPolicy INTEGER NOT NULL DEFAULT 102 , clazzTerminologyUid INTEGER NOT NULL DEFAULT 25966 , clazzMasterChangeSeqNum INTEGER NOT NULL , clazzLocalChangeSeqNum INTEGER NOT NULL , clazzLastChangedBy INTEGER NOT NULL , clazzLct INTEGER NOT NULL , clazzTimeZone TEXT , clazzStudentsPersonGroupUid INTEGER NOT NULL , clazzTeachersPersonGroupUid INTEGER NOT NULL , clazzPendingStudentsPersonGroupUid INTEGER NOT NULL , clazzParentsPersonGroupUid INTEGER NOT NULL , clazzCode TEXT , clazzUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzEnrolment ( clazzEnrolmentPersonUid INTEGER NOT NULL , clazzEnrolmentClazzUid INTEGER NOT NULL , clazzEnrolmentDateJoined INTEGER NOT NULL , clazzEnrolmentDateLeft INTEGER NOT NULL , clazzEnrolmentRole INTEGER NOT NULL , clazzEnrolmentAttendancePercentage REAl NOT NULL , clazzEnrolmentActive INTEGER NOT NULL , clazzEnrolmentLeavingReasonUid INTEGER NOT NULL , clazzEnrolmentOutcome INTEGER NOT NULL , clazzEnrolmentLocalChangeSeqNum INTEGER NOT NULL , clazzEnrolmentMasterChangeSeqNum INTEGER NOT NULL , clazzEnrolmentLastChangedBy INTEGER NOT NULL , clazzEnrolmentLct INTEGER NOT NULL , clazzEnrolmentUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE INDEX index_ClazzEnrolment_clazzEnrolmentPersonUid_clazzEnrolmentClazzUid ON ClazzEnrolment (clazzEnrolmentPersonUid, clazzEnrolmentClazzUid)"),t.add_11rb$("CREATE INDEX index_ClazzEnrolment_clazzEnrolmentClazzUid_clazzEnrolmentPersonUid ON ClazzEnrolment (clazzEnrolmentClazzUid, clazzEnrolmentPersonUid)"),t.add_11rb$("CREATE INDEX index_ClazzEnrolment_clazzEnrolmentClazzUid_clazzEnrolmentRole ON ClazzEnrolment (clazzEnrolmentClazzUid, clazzEnrolmentRole)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS LeavingReason ( leavingReasonTitle TEXT , leavingReasonMCSN INTEGER NOT NULL , leavingReasonCSN INTEGER NOT NULL , leavingReasonLCB INTEGER NOT NULL , leavingReasonLct INTEGER NOT NULL , leavingReasonUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContentEntry ( title TEXT , description TEXT , entryId TEXT , author TEXT , publisher TEXT , licenseType INTEGER NOT NULL , licenseName TEXT , licenseUrl TEXT , sourceUrl TEXT , thumbnailUrl TEXT , lastModified INTEGER NOT NULL , primaryLanguageUid INTEGER NOT NULL , languageVariantUid INTEGER NOT NULL , contentFlags INTEGER NOT NULL , leaf INTEGER NOT NULL , publik INTEGER NOT NULL , ceInactive INTEGER NOT NULL , completionCriteria INTEGER NOT NULL , minScore INTEGER NOT NULL , contentTypeFlag INTEGER NOT NULL , contentOwner INTEGER NOT NULL , contentEntryLocalChangeSeqNum INTEGER NOT NULL , contentEntryMasterChangeSeqNum INTEGER NOT NULL , contentEntryLastChangedBy INTEGER NOT NULL , contentEntryLct INTEGER NOT NULL , contentEntryUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContentEntryContentCategoryJoin ( ceccjContentEntryUid INTEGER NOT NULL , ceccjContentCategoryUid INTEGER NOT NULL , ceccjLocalChangeSeqNum INTEGER NOT NULL , ceccjMasterChangeSeqNum INTEGER NOT NULL , ceccjLastChangedBy INTEGER NOT NULL , ceccjLct INTEGER NOT NULL , ceccjUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContentEntryParentChildJoin ( cepcjLocalChangeSeqNum INTEGER NOT NULL , cepcjMasterChangeSeqNum INTEGER NOT NULL , cepcjLastChangedBy INTEGER NOT NULL , cepcjLct INTEGER NOT NULL , cepcjParentContentEntryUid INTEGER NOT NULL , cepcjChildContentEntryUid INTEGER NOT NULL , childIndex INTEGER NOT NULL , cepcjUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE INDEX parent_child ON ContentEntryParentChildJoin (cepcjChildContentEntryUid, cepcjParentContentEntryUid)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContentEntryRelatedEntryJoin ( cerejContentEntryUid INTEGER NOT NULL , cerejRelatedEntryUid INTEGER NOT NULL , cerejLastChangedBy INTEGER NOT NULL , relType INTEGER NOT NULL , comment TEXT , cerejRelLanguageUid INTEGER NOT NULL , cerejLocalChangeSeqNum INTEGER NOT NULL , cerejMasterChangeSeqNum INTEGER NOT NULL , cerejLct INTEGER NOT NULL , cerejUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContentCategorySchema ( schemaName TEXT , schemaUrl TEXT , contentCategorySchemaLocalChangeSeqNum INTEGER NOT NULL , contentCategorySchemaMasterChangeSeqNum INTEGER NOT NULL , contentCategorySchemaLastChangedBy INTEGER NOT NULL , contentCategorySchemaLct INTEGER NOT NULL , contentCategorySchemaUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContentCategory ( ctnCatContentCategorySchemaUid INTEGER NOT NULL , name TEXT , contentCategoryLocalChangeSeqNum INTEGER NOT NULL , contentCategoryMasterChangeSeqNum INTEGER NOT NULL , contentCategoryLastChangedBy INTEGER NOT NULL , contentCategoryLct INTEGER NOT NULL , contentCategoryUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS Language ( name TEXT , iso_639_1_standard TEXT , iso_639_2_standard TEXT , iso_639_3_standard TEXT , Language_Type TEXT , languageActive INTEGER NOT NULL , langLocalChangeSeqNum INTEGER NOT NULL , langMasterChangeSeqNum INTEGER NOT NULL , langLastChangedBy INTEGER NOT NULL , langLct INTEGER NOT NULL , langUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS LanguageVariant ( langUid INTEGER NOT NULL , countryCode TEXT , name TEXT , langVariantLocalChangeSeqNum INTEGER NOT NULL , langVariantMasterChangeSeqNum INTEGER NOT NULL , langVariantLastChangedBy INTEGER NOT NULL , langVariantLct INTEGER NOT NULL , langVariantUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS AccessToken ( token TEXT PRIMARY KEY NOT NULL , accessTokenPersonUid INTEGER NOT NULL , expires INTEGER NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS PersonAuth ( passwordHash TEXT , personAuthStatus INTEGER NOT NULL , personAuthUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS Role ( roleName TEXT , roleActive INTEGER NOT NULL , roleMasterCsn INTEGER NOT NULL , roleLocalCsn INTEGER NOT NULL , roleLastChangedBy INTEGER NOT NULL , roleLct INTEGER NOT NULL , rolePermissions INTEGER NOT NULL , roleUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE INDEX index_Role_rolePermissions ON Role (rolePermissions)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS EntityRole ( erMasterCsn INTEGER NOT NULL , erLocalCsn INTEGER NOT NULL , erLastChangedBy INTEGER NOT NULL , erLct INTEGER NOT NULL , erTableId INTEGER NOT NULL , erEntityUid INTEGER NOT NULL , erGroupUid INTEGER NOT NULL , erRoleUid INTEGER NOT NULL , erActive INTEGER NOT NULL , erUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE INDEX index_EntityRole_erGroupUid_erRoleUid_erTableId ON EntityRole (erGroupUid, erRoleUid, erTableId)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS PersonGroup ( groupMasterCsn INTEGER NOT NULL , groupLocalCsn INTEGER NOT NULL , groupLastChangedBy INTEGER NOT NULL , groupLct INTEGER NOT NULL , groupName TEXT , groupActive INTEGER NOT NULL , personGroupFlag INTEGER NOT NULL , groupUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS PersonGroupMember ( groupMemberActive INTEGER NOT NULL , groupMemberPersonUid INTEGER NOT NULL , groupMemberGroupUid INTEGER NOT NULL , groupMemberMasterCsn INTEGER NOT NULL , groupMemberLocalCsn INTEGER NOT NULL , groupMemberLastChangedBy INTEGER NOT NULL , groupMemberLct INTEGER NOT NULL , groupMemberUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS PersonPicture ( personPicturePersonUid INTEGER NOT NULL , personPictureMasterCsn INTEGER NOT NULL , personPictureLocalCsn INTEGER NOT NULL , personPictureLastChangedBy INTEGER NOT NULL , personPictureLct INTEGER NOT NULL , personPictureUri TEXT , personPictureMd5 TEXT , fileSize INTEGER NOT NULL , picTimestamp INTEGER NOT NULL , mimeType TEXT , personPictureActive INTEGER NOT NULL , personPictureUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ScrapeQueueItem ( sqiContentEntryParentUid INTEGER NOT NULL , sqiContentEntryUid INTEGER NOT NULL , destDir TEXT , scrapeUrl TEXT , status INTEGER NOT NULL , runId INTEGER NOT NULL , itemType INTEGER NOT NULL , errorCode INTEGER NOT NULL , contentType TEXT , timeAdded INTEGER NOT NULL , timeStarted INTEGER NOT NULL , timeFinished INTEGER NOT NULL , priority INTEGER NOT NULL , overrideEntry INTEGER NOT NULL , sqiUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE INDEX index_ScrapeQueueItem_status_itemType ON ScrapeQueueItem (status, itemType)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ScrapeRun ( scrapeType TEXT , scrapeRunStatus INTEGER NOT NULL , conversionParams TEXT , scrapeRunUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ConnectivityStatus ( csUid INTEGER PRIMARY KEY NOT NULL , connectivityState INTEGER NOT NULL , wifiSsid TEXT , connectedOrConnecting INTEGER NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS Container ( cntLocalCsn INTEGER NOT NULL , cntMasterCsn INTEGER NOT NULL , cntLastModBy INTEGER NOT NULL , cntLct INTEGER NOT NULL , fileSize INTEGER NOT NULL , containerContentEntryUid INTEGER NOT NULL , cntLastModified INTEGER NOT NULL , mimeType TEXT , remarks TEXT , mobileOptimized INTEGER NOT NULL , cntNumEntries INTEGER NOT NULL , containerUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE INDEX cnt_uid_to_most_recent ON Container (containerContentEntryUid, cntLastModified)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContainerEntry ( ceContainerUid INTEGER NOT NULL , cePath TEXT , ceCefUid INTEGER NOT NULL , ceUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContainerEntryFile ( cefMd5 TEXT , cefPath TEXT , ceTotalSize INTEGER NOT NULL , ceCompressedSize INTEGER NOT NULL , compression INTEGER NOT NULL , lastModified INTEGER NOT NULL , cefUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS VerbEntity ( urlId TEXT , verbInActive INTEGER NOT NULL , verbMasterChangeSeqNum INTEGER NOT NULL , verbLocalChangeSeqNum INTEGER NOT NULL , verbLastChangedBy INTEGER NOT NULL , verbLct INTEGER NOT NULL , verbUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS XObjectEntity ( objectType TEXT , objectId TEXT , definitionType TEXT , interactionType TEXT , correctResponsePattern TEXT , objectContentEntryUid INTEGER NOT NULL , objectStatementRefUid INTEGER NOT NULL DEFAULT 0 , xObjectMasterChangeSeqNum INTEGER NOT NULL , xObjectocalChangeSeqNum INTEGER NOT NULL , xObjectLastChangedBy INTEGER NOT NULL , xObjectLct INTEGER NOT NULL , xObjectUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS StatementEntity ( statementId TEXT , statementPersonUid INTEGER NOT NULL , statementVerbUid INTEGER NOT NULL , xObjectUid INTEGER NOT NULL , subStatementActorUid INTEGER NOT NULL , substatementVerbUid INTEGER NOT NULL , subStatementObjectUid INTEGER NOT NULL , agentUid INTEGER NOT NULL , instructorUid INTEGER NOT NULL , authorityUid INTEGER NOT NULL , teamUid INTEGER NOT NULL , resultCompletion INTEGER NOT NULL , resultSuccess INTEGER NOT NULL , resultScoreScaled REAl NOT NULL , resultScoreRaw INTEGER NOT NULL , resultScoreMin INTEGER NOT NULL , resultScoreMax INTEGER NOT NULL , resultDuration INTEGER NOT NULL , resultResponse TEXT , timestamp INTEGER NOT NULL , stored INTEGER NOT NULL , contextRegistration TEXT , contextPlatform TEXT , contextStatementId TEXT , fullStatement TEXT , statementMasterChangeSeqNum INTEGER NOT NULL , statementLocalChangeSeqNum INTEGER NOT NULL , statementLastChangedBy INTEGER NOT NULL , statementLct INTEGER NOT NULL , extensionProgress INTEGER NOT NULL , contentEntryRoot INTEGER NOT NULL , statementContentEntryUid INTEGER NOT NULL , statementLearnerGroupUid INTEGER NOT NULL , statementClazzUid INTEGER NOT NULL , statementUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE INDEX index_StatementEntity_statementContentEntryUid_statementPersonUid_contentEntryRoot_timestamp_statementLocalChangeSeqNum ON StatementEntity (statementContentEntryUid, statementPersonUid, contentEntryRoot, timestamp, statementLocalChangeSeqNum)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContextXObjectStatementJoin ( contextActivityFlag INTEGER NOT NULL , contextStatementUid INTEGER NOT NULL , contextXObjectUid INTEGER NOT NULL , verbMasterChangeSeqNum INTEGER NOT NULL , verbLocalChangeSeqNum INTEGER NOT NULL , verbLastChangedBy INTEGER NOT NULL , contextXObjectLct INTEGER NOT NULL , contextXObjectStatementJoinUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS AgentEntity ( agentMbox TEXT , agentMbox_sha1sum TEXT , agentOpenid TEXT , agentAccountName TEXT , agentHomePage TEXT , agentPersonUid INTEGER NOT NULL , statementMasterChangeSeqNum INTEGER NOT NULL , statementLocalChangeSeqNum INTEGER NOT NULL , statementLastChangedBy INTEGER NOT NULL , agentLct INTEGER NOT NULL , agentUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS StateEntity ( stateId TEXT , agentUid INTEGER NOT NULL , activityId TEXT , registration TEXT , isIsactive INTEGER NOT NULL , timestamp INTEGER NOT NULL , stateMasterChangeSeqNum INTEGER NOT NULL , stateLocalChangeSeqNum INTEGER NOT NULL , stateLastChangedBy INTEGER NOT NULL , stateLct INTEGER NOT NULL , stateUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS StateContentEntity ( stateContentStateUid INTEGER NOT NULL , stateContentKey TEXT , stateContentValue TEXT , isIsactive INTEGER NOT NULL , stateContentMasterChangeSeqNum INTEGER NOT NULL , stateContentLocalChangeSeqNum INTEGER NOT NULL , stateContentLastChangedBy INTEGER NOT NULL , stateContentLct INTEGER NOT NULL , stateContentUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS XLangMapEntry ( verbLangMapUid INTEGER NOT NULL , objectLangMapUid INTEGER NOT NULL , languageLangMapUid INTEGER NOT NULL , languageVariantLangMapUid INTEGER NOT NULL , valueLangMap TEXT , statementLangMapMasterCsn INTEGER NOT NULL , statementLangMapLocalCsn INTEGER NOT NULL , statementLangMapLcb INTEGER NOT NULL , statementLangMapLct INTEGER NOT NULL , statementLangMapUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS SyncNode ( nodeClientId INTEGER NOT NULL , PRIMARY KEY (nodeClientId) )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS LocallyAvailableContainer ( laContainerUid INTEGER PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContainerETag ( ceContainerUid INTEGER PRIMARY KEY NOT NULL , cetag TEXT )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS School ( schoolName TEXT , schoolDesc TEXT , schoolAddress TEXT , schoolActive INTEGER NOT NULL , schoolPhoneNumber TEXT , schoolGender INTEGER NOT NULL , schoolHolidayCalendarUid INTEGER NOT NULL , schoolFeatures INTEGER NOT NULL , schoolLocationLong REAl NOT NULL , schoolLocationLatt REAl NOT NULL , schoolEmailAddress TEXT , schoolTeachersPersonGroupUid INTEGER NOT NULL , schoolStudentsPersonGroupUid INTEGER NOT NULL , schoolPendingStudentsPersonGroupUid INTEGER NOT NULL , schoolCode TEXT , schoolMasterChangeSeqNum INTEGER NOT NULL , schoolLocalChangeSeqNum INTEGER NOT NULL , schoolLastChangedBy INTEGER NOT NULL , schoolLct INTEGER NOT NULL , schoolTimeZone TEXT , schoolUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS SchoolMember ( schoolMemberPersonUid INTEGER NOT NULL , schoolMemberSchoolUid INTEGER NOT NULL , schoolMemberJoinDate INTEGER NOT NULL , schoolMemberLeftDate INTEGER NOT NULL , schoolMemberRole INTEGER NOT NULL , schoolMemberActive INTEGER NOT NULL , schoolMemberLocalChangeSeqNum INTEGER NOT NULL , schoolMemberMasterChangeSeqNum INTEGER NOT NULL , schoolMemberLastChangedBy INTEGER NOT NULL , schoolMemberLct INTEGER NOT NULL , schoolMemberUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE INDEX index_SchoolMember_schoolMemberSchoolUid_schoolMemberActive_schoolMemberRole ON SchoolMember (schoolMemberSchoolUid, schoolMemberActive, schoolMemberRole)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS Comments ( commentsText TEXT , commentsEntityType INTEGER NOT NULL , commentsEntityUid INTEGER NOT NULL , commentsPublic INTEGER NOT NULL , commentsStatus INTEGER NOT NULL , commentsPersonUid INTEGER NOT NULL , commentsToPersonUid INTEGER NOT NULL , commentSubmitterUid INTEGER NOT NULL , commentsFlagged INTEGER NOT NULL , commentsInActive INTEGER NOT NULL , commentsDateTimeAdded INTEGER NOT NULL , commentsDateTimeUpdated INTEGER NOT NULL , commentsMCSN INTEGER NOT NULL , commentsLCSN INTEGER NOT NULL , commentsLCB INTEGER NOT NULL , commentsLct INTEGER NOT NULL , commentsUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS Report ( reportOwnerUid INTEGER NOT NULL , xAxis INTEGER NOT NULL , reportDateRangeSelection INTEGER NOT NULL , fromDate INTEGER NOT NULL , fromRelTo INTEGER NOT NULL , fromRelOffSet INTEGER NOT NULL , fromRelUnit INTEGER NOT NULL , toDate INTEGER NOT NULL , toRelTo INTEGER NOT NULL , toRelOffSet INTEGER NOT NULL , toRelUnit INTEGER NOT NULL , reportTitle TEXT , reportDescription TEXT , reportSeries TEXT , reportInactive INTEGER NOT NULL , isTemplate INTEGER NOT NULL , priority INTEGER NOT NULL , reportTitleId INTEGER NOT NULL , reportDescId INTEGER NOT NULL , reportMasterChangeSeqNum INTEGER NOT NULL , reportLocalChangeSeqNum INTEGER NOT NULL , reportLastChangedBy INTEGER NOT NULL , reportLct INTEGER NOT NULL , reportUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS Site ( sitePcsn INTEGER NOT NULL , siteLcsn INTEGER NOT NULL , siteLcb INTEGER NOT NULL , siteLct INTEGER NOT NULL , siteName TEXT , guestLogin INTEGER NOT NULL , registrationAllowed INTEGER NOT NULL , authSalt TEXT , siteUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContainerImportJob ( cijContainerUid INTEGER NOT NULL , cijUri TEXT , cijImportMode INTEGER NOT NULL , cijContainerBaseDir TEXT , cijContentEntryUid INTEGER NOT NULL , cijMimeType TEXT , cijSessionId TEXT , cijJobStatus INTEGER NOT NULL , cijBytesSoFar INTEGER NOT NULL , cijImportCompleted INTEGER NOT NULL , cijContentLength INTEGER NOT NULL , cijContainerEntryFileUids TEXT , cijConversionParams TEXT , cijUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS LearnerGroup ( learnerGroupName TEXT , learnerGroupDescription TEXT , learnerGroupActive INTEGER NOT NULL , learnerGroupMCSN INTEGER NOT NULL , learnerGroupCSN INTEGER NOT NULL , learnerGroupLCB INTEGER NOT NULL , learnerGroupLct INTEGER NOT NULL , learnerGroupUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS LearnerGroupMember ( learnerGroupMemberPersonUid INTEGER NOT NULL , learnerGroupMemberLgUid INTEGER NOT NULL , learnerGroupMemberRole INTEGER NOT NULL , learnerGroupMemberActive INTEGER NOT NULL , learnerGroupMemberMCSN INTEGER NOT NULL , learnerGroupMemberCSN INTEGER NOT NULL , learnerGroupMemberLCB INTEGER NOT NULL , learnerGroupMemberLct INTEGER NOT NULL , learnerGroupMemberUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS GroupLearningSession ( groupLearningSessionContentUid INTEGER NOT NULL , groupLearningSessionLearnerGroupUid INTEGER NOT NULL , groupLearningSessionInactive INTEGER NOT NULL , groupLearningSessionMCSN INTEGER NOT NULL , groupLearningSessionCSN INTEGER NOT NULL , groupLearningSessionLCB INTEGER NOT NULL , groupLearningSessionLct INTEGER NOT NULL , groupLearningSessionUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS SiteTerms ( termsHtml TEXT , sTermsLang TEXT , sTermsLangUid INTEGER NOT NULL , sTermsActive INTEGER NOT NULL , sTermsLastChangedBy INTEGER NOT NULL , sTermsPrimaryCsn INTEGER NOT NULL , sTermsLocalCsn INTEGER NOT NULL , sTermsLct INTEGER NOT NULL , sTermsUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzContentJoin ( ccjContentEntryUid INTEGER NOT NULL , ccjClazzUid INTEGER NOT NULL , ccjActive INTEGER NOT NULL , ccjLocalChangeSeqNum INTEGER NOT NULL , ccjMasterChangeSeqNum INTEGER NOT NULL , ccjLastChangedBy INTEGER NOT NULL , ccjLct INTEGER NOT NULL , ccjUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS PersonParentJoin ( ppjPcsn INTEGER NOT NULL , ppjLcsn INTEGER NOT NULL , ppjLcb INTEGER NOT NULL , ppjLct INTEGER NOT NULL , ppjParentPersonUid INTEGER NOT NULL , ppjMinorPersonUid INTEGER NOT NULL , ppjRelationship INTEGER NOT NULL , ppjEmail TEXT , ppjPhone TEXT , ppjInactive INTEGER NOT NULL , ppjStatus INTEGER NOT NULL , ppjApprovalTiemstamp INTEGER NOT NULL , ppjApprovalIpAddr TEXT , ppjUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ScopedGrant ( sgPcsn INTEGER NOT NULL , sgLcsn INTEGER NOT NULL , sgLcb INTEGER NOT NULL , sgLct INTEGER NOT NULL , sgTableId INTEGER NOT NULL , sgEntityUid INTEGER NOT NULL , sgPermissions INTEGER NOT NULL , sgGroupUid INTEGER NOT NULL , sgIndex INTEGER NOT NULL , sgFlags INTEGER NOT NULL , sgUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE INDEX idx_group_to_entity ON ScopedGrant (sgGroupUid, sgPermissions, sgTableId, sgEntityUid)"),t.add_11rb$("CREATE INDEX idx_entity_to_group ON ScopedGrant (sgTableId, sgEntityUid, sgPermissions, sgGroupUid)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ErrorReport ( errPcsn INTEGER NOT NULL , errLcsn INTEGER NOT NULL , errLcb INTEGER NOT NULL , errLct INTEGER NOT NULL , severity INTEGER NOT NULL , timestamp INTEGER NOT NULL , presenterUri TEXT , appVersion TEXT , versionCode INTEGER NOT NULL , errorCode INTEGER NOT NULL , operatingSys TEXT , osVersion TEXT , stackTrace TEXT , message TEXT , errUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzAssignment ( caTitle TEXT , caDescription TEXT , caGroupUid INTEGER NOT NULL DEFAULT 0 , caActive INTEGER NOT NULL , caClassCommentEnabled INTEGER NOT NULL , caPrivateCommentsEnabled INTEGER NOT NULL DEFAULT 1 , caCompletionCriteria INTEGER NOT NULL DEFAULT 100 , caRequireFileSubmission INTEGER NOT NULL DEFAULT 1 , caFileType INTEGER NOT NULL DEFAULT 0 , caSizeLimit INTEGER NOT NULL DEFAULT 50 , caNumberOfFiles INTEGER NOT NULL DEFAULT 1 , caSubmissionPolicy INTEGER NOT NULL DEFAULT 1 , caMarkingType INTEGER NOT NULL DEFAULT 1 , caRequireTextSubmission INTEGER NOT NULL DEFAULT 1 , caTextLimitType INTEGER NOT NULL DEFAULT 1 , caTextLimit INTEGER NOT NULL DEFAULT 500 , caXObjectUid INTEGER NOT NULL DEFAULT 0 , caClazzUid INTEGER NOT NULL , caLocalChangeSeqNum INTEGER NOT NULL , caMasterChangeSeqNum INTEGER NOT NULL , caLastChangedBy INTEGER NOT NULL , caLct INTEGER NOT NULL , caUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzAssignmentContentJoin ( cacjContentUid INTEGER NOT NULL , cacjAssignmentUid INTEGER NOT NULL , cacjActive INTEGER NOT NULL , cacjWeight INTEGER NOT NULL DEFAULT 0 , cacjMCSN INTEGER NOT NULL , cacjLCSN INTEGER NOT NULL , cacjLCB INTEGER NOT NULL , cacjLct INTEGER NOT NULL , cacjUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CourseAssignmentSubmission ( casAssignmentUid INTEGER NOT NULL , casSubmitterUid INTEGER NOT NULL , casSubmitterPersonUid INTEGER NOT NULL , casText TEXT , casType INTEGER NOT NULL , casTimestamp INTEGER NOT NULL , casUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CourseAssignmentSubmissionAttachment ( casaSubmissionUid INTEGER NOT NULL , casaMimeType TEXT , casaFileName TEXT , casaUri TEXT , casaMd5 TEXT , casaSize INTEGER NOT NULL , casaTimestamp INTEGER NOT NULL , casaUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CourseAssignmentMark ( camAssignmentUid INTEGER NOT NULL , camSubmitterUid INTEGER NOT NULL , camMark REAl NOT NULL , camPenalty INTEGER NOT NULL , camLct INTEGER NOT NULL , camUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzAssignmentRollUp ( cachePersonUid INTEGER NOT NULL , cacheContentEntryUid INTEGER NOT NULL , cacheClazzAssignmentUid INTEGER NOT NULL , cacheStudentScore INTEGER NOT NULL , cacheMaxScore INTEGER NOT NULL , cacheFinalWeightScoreWithPenalty REAl NOT NULL DEFAULT 0 , cacheWeight INTEGER NOT NULL DEFAULT 0 , cacheProgress INTEGER NOT NULL , cacheContentComplete INTEGER NOT NULL , cacheSuccess INTEGER NOT NULL , cachePenalty INTEGER NOT NULL , lastCsnChecked INTEGER NOT NULL , cacheUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE UNIQUE INDEX index_ClazzAssignmentRollUp_cachePersonUid_cacheContentEntryUid_cacheClazzAssignmentUid ON ClazzAssignmentRollUp (cachePersonUid, cacheContentEntryUid, cacheClazzAssignmentUid)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS PersonAuth2 ( pauthUid INTEGER PRIMARY KEY NOT NULL , pauthMechanism TEXT , pauthAuth TEXT , pauthLcsn INTEGER NOT NULL , pauthPcsn INTEGER NOT NULL , pauthLcb INTEGER NOT NULL , pauthLct INTEGER NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS UserSession ( usPcsn INTEGER NOT NULL , usLcsn INTEGER NOT NULL , usLcb INTEGER NOT NULL , usLct INTEGER NOT NULL , usPersonUid INTEGER NOT NULL , usClientNodeId INTEGER NOT NULL , usStartTime INTEGER NOT NULL , usEndTime INTEGER NOT NULL , usStatus INTEGER NOT NULL , usReason INTEGER NOT NULL , usAuth TEXT , usSessionType INTEGER NOT NULL , usUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE INDEX person_status_node_idx ON UserSession (usPersonUid, usStatus, usClientNodeId)"),t.add_11rb$("CREATE INDEX node_status_person_idx ON UserSession (usClientNodeId, usStatus, usPersonUid)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContentJob ( toUri TEXT , cjProgress INTEGER NOT NULL , cjTotal INTEGER NOT NULL , cjNotificationTitle TEXT , cjIsMeteredAllowed INTEGER NOT NULL , params TEXT , cjUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContentJobItem ( cjiJobUid INTEGER NOT NULL , sourceUri TEXT , cjiIsLeaf INTEGER NOT NULL , cjiContentEntryUid INTEGER NOT NULL , cjiParentContentEntryUid INTEGER NOT NULL , cjiContainerUid INTEGER NOT NULL , cjiItemProgress INTEGER NOT NULL , cjiItemTotal INTEGER NOT NULL , cjiRecursiveProgress INTEGER NOT NULL , cjiRecursiveTotal INTEGER NOT NULL , cjiStatus INTEGER NOT NULL , cjiRecursiveStatus INTEGER NOT NULL , cjiConnectivityNeeded INTEGER NOT NULL , cjiPluginId INTEGER NOT NULL , cjiAttemptCount INTEGER NOT NULL , cjiParentCjiUid INTEGER NOT NULL , cjiServerJobId INTEGER NOT NULL , cjiStartTime INTEGER NOT NULL , cjiFinishTime INTEGER NOT NULL , cjiUploadSessionUid TEXT , cjiContentDeletedOnCancellation INTEGER NOT NULL , cjiContainerProcessed INTEGER NOT NULL , cjiUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE INDEX index_ContentJobItem_cjiContentEntryUid_cjiFinishTime ON ContentJobItem (cjiContentEntryUid, cjiFinishTime)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CourseBlock ( cbType INTEGER NOT NULL , cbIndentLevel INTEGER NOT NULL , cbModuleParentBlockUid INTEGER NOT NULL , cbTitle TEXT , cbDescription TEXT , cbCompletionCriteria INTEGER NOT NULL , cbHideUntilDate INTEGER NOT NULL , cbDeadlineDate INTEGER NOT NULL , cbLateSubmissionPenalty INTEGER NOT NULL , cbGracePeriodDate INTEGER NOT NULL , cbMaxPoints INTEGER NOT NULL , cbMinPoints INTEGER NOT NULL , cbIndex INTEGER NOT NULL , cbClazzUid INTEGER NOT NULL , cbActive INTEGER NOT NULL , cbHidden INTEGER NOT NULL , cbEntityUid INTEGER NOT NULL , cbLct INTEGER NOT NULL , cbUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CourseTerminology ( ctTitle TEXT , ctTerminology TEXT , ctLct INTEGER NOT NULL , ctUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CourseGroupSet ( cgsName TEXT , cgsTotalGroups INTEGER NOT NULL , cgsActive INTEGER NOT NULL , cgsClazzUid INTEGER NOT NULL , cgsLct INTEGER NOT NULL , cgsUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CourseGroupMember ( cgmSetUid INTEGER NOT NULL , cgmGroupNumber INTEGER NOT NULL , cgmPersonUid INTEGER NOT NULL , cgmLct INTEGER NOT NULL , cgmUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ChangeLog ( chEntityPk INTEGER NOT NULL , chTableId INTEGER NOT NULL , chType INTEGER NOT NULL , PRIMARY KEY (chTableId, chEntityPk) )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ZombieAttachmentData ( zaUri TEXT , zaUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS DoorNode ( auth TEXT , nodeId INTEGER NOT NULL , rel INTEGER NOT NULL , PRIMARY KEY (nodeId) )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ReplicationStatus ( lastFetchReplicationCompleteTime INTEGER NOT NULL , lastLocalChangeTime INTEGER NOT NULL , lastRemoteChangeTime INTEGER NOT NULL , lastSendReplicationCompleteTime INTEGER NOT NULL , nodeId INTEGER NOT NULL , priority INTEGER NOT NULL , tableId INTEGER NOT NULL , repStatusId INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE UNIQUE INDEX table_node_idx ON ReplicationStatus (tableId, nodeId)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzLogReplicate ( clPk INTEGER NOT NULL , clVersionId INTEGER NOT NULL DEFAULT 0 , clDestination INTEGER NOT NULL , clPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (clPk, clDestination) )"),t.add_11rb$("CREATE INDEX index_ClazzLogReplicate_clPk_clDestination_clVersionId ON ClazzLogReplicate (clPk, clDestination, clVersionId)"),t.add_11rb$("CREATE INDEX index_ClazzLogReplicate_clDestination_clPending ON ClazzLogReplicate (clDestination, clPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzLogAttendanceRecordReplicate ( clarPk INTEGER NOT NULL , clarVersionId INTEGER NOT NULL DEFAULT 0 , clarDestination INTEGER NOT NULL , clarPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (clarPk, clarDestination) )"),t.add_11rb$("CREATE INDEX index_ClazzLogAttendanceRecordReplicate_clarPk_clarDestination_clarVersionId ON ClazzLogAttendanceRecordReplicate (clarPk, clarDestination, clarVersionId)"),t.add_11rb$("CREATE INDEX index_ClazzLogAttendanceRecordReplicate_clarDestination_clarPending ON ClazzLogAttendanceRecordReplicate (clarDestination, clarPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CourseAssignmentSubmissionReplicate ( casPk INTEGER NOT NULL , casVersionId INTEGER NOT NULL DEFAULT 0 , casDestination INTEGER NOT NULL , casPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (casPk, casDestination) )"),t.add_11rb$("CREATE INDEX index_CourseAssignmentSubmissionReplicate_casPk_casDestination_casVersionId ON CourseAssignmentSubmissionReplicate (casPk, casDestination, casVersionId)"),t.add_11rb$("CREATE INDEX index_CourseAssignmentSubmissionReplicate_casDestination_casPending ON CourseAssignmentSubmissionReplicate (casDestination, casPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CourseAssignmentSubmissionAttachmentReplicate ( casaPk INTEGER NOT NULL , casaVersionId INTEGER NOT NULL DEFAULT 0 , casaDestination INTEGER NOT NULL , casaPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (casaPk, casaDestination) )"),t.add_11rb$("CREATE INDEX index_CourseAssignmentSubmissionAttachmentReplicate_casaPk_casaDestination_casaVersionId ON CourseAssignmentSubmissionAttachmentReplicate (casaPk, casaDestination, casaVersionId)"),t.add_11rb$("CREATE INDEX index_CourseAssignmentSubmissionAttachmentReplicate_casaDestination_casaPending ON CourseAssignmentSubmissionAttachmentReplicate (casaDestination, casaPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CourseAssignmentMarkReplicate ( camPk INTEGER NOT NULL , camVersionId INTEGER NOT NULL DEFAULT 0 , camDestination INTEGER NOT NULL , camPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (camPk, camDestination) )"),t.add_11rb$("CREATE INDEX index_CourseAssignmentMarkReplicate_camPk_camDestination_camVersionId ON CourseAssignmentMarkReplicate (camPk, camDestination, camVersionId)"),t.add_11rb$("CREATE INDEX index_CourseAssignmentMarkReplicate_camDestination_camPending ON CourseAssignmentMarkReplicate (camDestination, camPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CourseBlockReplicate ( cbPk INTEGER NOT NULL , cbVersionId INTEGER NOT NULL DEFAULT 0 , cbDestination INTEGER NOT NULL , cbPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (cbPk, cbDestination) )"),t.add_11rb$("CREATE INDEX index_CourseBlockReplicate_cbPk_cbDestination_cbVersionId ON CourseBlockReplicate (cbPk, cbDestination, cbVersionId)"),t.add_11rb$("CREATE INDEX index_CourseBlockReplicate_cbDestination_cbPending ON CourseBlockReplicate (cbDestination, cbPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CourseTerminologyReplicate ( ctPk INTEGER NOT NULL , ctVersionId INTEGER NOT NULL DEFAULT 0 , ctDestination INTEGER NOT NULL , ctPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (ctPk, ctDestination) )"),t.add_11rb$("CREATE INDEX index_CourseTerminologyReplicate_ctPk_ctDestination_ctVersionId ON CourseTerminologyReplicate (ctPk, ctDestination, ctVersionId)"),t.add_11rb$("CREATE INDEX index_CourseTerminologyReplicate_ctDestination_ctPending ON CourseTerminologyReplicate (ctDestination, ctPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CourseGroupSetReplicate ( cgsPk INTEGER NOT NULL , cgsVersionId INTEGER NOT NULL DEFAULT 0 , cgsDestination INTEGER NOT NULL , cgsPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (cgsPk, cgsDestination) )"),t.add_11rb$("CREATE INDEX index_CourseGroupSetReplicate_cgsPk_cgsDestination_cgsVersionId ON CourseGroupSetReplicate (cgsPk, cgsDestination, cgsVersionId)"),t.add_11rb$("CREATE INDEX index_CourseGroupSetReplicate_cgsDestination_cgsPending ON CourseGroupSetReplicate (cgsDestination, cgsPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CourseGroupMemberReplicate ( cgmPk INTEGER NOT NULL , cgmVersionId INTEGER NOT NULL DEFAULT 0 , cgmDestination INTEGER NOT NULL , cgmPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (cgmPk, cgmDestination) )"),t.add_11rb$("CREATE INDEX index_CourseGroupMemberReplicate_cgmPk_cgmDestination_cgmVersionId ON CourseGroupMemberReplicate (cgmPk, cgmDestination, cgmVersionId)"),t.add_11rb$("CREATE INDEX index_CourseGroupMemberReplicate_cgmDestination_cgmPending ON CourseGroupMemberReplicate (cgmDestination, cgmPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ScheduleReplicate ( schedulePk INTEGER NOT NULL , scheduleVersionId INTEGER NOT NULL DEFAULT 0 , scheduleDestination INTEGER NOT NULL , schedulePending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (schedulePk, scheduleDestination) )"),t.add_11rb$("CREATE INDEX index_ScheduleReplicate_schedulePk_scheduleDestination_scheduleVersionId ON ScheduleReplicate (schedulePk, scheduleDestination, scheduleVersionId)"),t.add_11rb$("CREATE INDEX index_ScheduleReplicate_scheduleDestination_schedulePending ON ScheduleReplicate (scheduleDestination, schedulePending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS HolidayCalendarReplicate ( hcPk INTEGER NOT NULL , hcVersionId INTEGER NOT NULL DEFAULT 0 , hcDestination INTEGER NOT NULL , hcPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (hcPk, hcDestination) )"),t.add_11rb$("CREATE INDEX index_HolidayCalendarReplicate_hcPk_hcDestination_hcVersionId ON HolidayCalendarReplicate (hcPk, hcDestination, hcVersionId)"),t.add_11rb$("CREATE INDEX index_HolidayCalendarReplicate_hcDestination_hcPending ON HolidayCalendarReplicate (hcDestination, hcPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS HolidayReplicate ( holidayPk INTEGER NOT NULL , holidayVersionId INTEGER NOT NULL DEFAULT 0 , holidayDestination INTEGER NOT NULL , holidayPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (holidayPk, holidayDestination) )"),t.add_11rb$("CREATE INDEX index_HolidayReplicate_holidayPk_holidayDestination_holidayVersionId ON HolidayReplicate (holidayPk, holidayDestination, holidayVersionId)"),t.add_11rb$("CREATE INDEX index_HolidayReplicate_holidayDestination_holidayPending ON HolidayReplicate (holidayDestination, holidayPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS PersonReplicate ( personPk INTEGER NOT NULL , personVersionId INTEGER NOT NULL DEFAULT 0 , personDestination INTEGER NOT NULL , personPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (personPk, personDestination) )"),t.add_11rb$("CREATE INDEX index_PersonReplicate_personPk_personDestination_personVersionId ON PersonReplicate (personPk, personDestination, personVersionId)"),t.add_11rb$("CREATE INDEX index_PersonReplicate_personDestination_personPending ON PersonReplicate (personDestination, personPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzReplicate ( clazzPk INTEGER NOT NULL , clazzVersionId INTEGER NOT NULL DEFAULT 0 , clazzDestination INTEGER NOT NULL , clazzPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (clazzPk, clazzDestination) )"),t.add_11rb$("CREATE INDEX index_ClazzReplicate_clazzPk_clazzDestination_clazzVersionId ON ClazzReplicate (clazzPk, clazzDestination, clazzVersionId)"),t.add_11rb$("CREATE INDEX index_ClazzReplicate_clazzDestination_clazzPending ON ClazzReplicate (clazzDestination, clazzPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzEnrolmentReplicate ( cePk INTEGER NOT NULL , ceVersionId INTEGER NOT NULL DEFAULT 0 , ceDestination INTEGER NOT NULL , cePending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (cePk, ceDestination) )"),t.add_11rb$("CREATE INDEX index_ClazzEnrolmentReplicate_cePk_ceDestination_ceVersionId ON ClazzEnrolmentReplicate (cePk, ceDestination, ceVersionId)"),t.add_11rb$("CREATE INDEX index_ClazzEnrolmentReplicate_ceDestination_cePending ON ClazzEnrolmentReplicate (ceDestination, cePending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS LeavingReasonReplicate ( lrPk INTEGER NOT NULL , lrVersionId INTEGER NOT NULL DEFAULT 0 , lrDestination INTEGER NOT NULL , lrPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (lrPk, lrDestination) )"),t.add_11rb$("CREATE INDEX index_LeavingReasonReplicate_lrPk_lrDestination_lrVersionId ON LeavingReasonReplicate (lrPk, lrDestination, lrVersionId)"),t.add_11rb$("CREATE INDEX index_LeavingReasonReplicate_lrDestination_lrPending ON LeavingReasonReplicate (lrDestination, lrPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContentEntryReplicate ( cePk INTEGER NOT NULL , ceVersionId INTEGER NOT NULL DEFAULT 0 , ceDestination INTEGER NOT NULL , cePending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (cePk, ceDestination) )"),t.add_11rb$("CREATE INDEX index_ContentEntryReplicate_cePk_ceDestination_ceVersionId ON ContentEntryReplicate (cePk, ceDestination, ceVersionId)"),t.add_11rb$("CREATE INDEX index_ContentEntryReplicate_ceDestination_cePending ON ContentEntryReplicate (ceDestination, cePending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContentEntryContentCategoryJoinReplicate ( ceccjPk INTEGER NOT NULL , ceccjVersionId INTEGER NOT NULL DEFAULT 0 , ceccjDestination INTEGER NOT NULL , ceccjPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (ceccjPk, ceccjDestination) )"),t.add_11rb$("CREATE INDEX index_ContentEntryContentCategoryJoinReplicate_ceccjPk_ceccjDestination_ceccjVersionId ON ContentEntryContentCategoryJoinReplicate (ceccjPk, ceccjDestination, ceccjVersionId)"),t.add_11rb$("CREATE INDEX index_ContentEntryContentCategoryJoinReplicate_ceccjDestination_ceccjPending ON ContentEntryContentCategoryJoinReplicate (ceccjDestination, ceccjPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContentEntryParentChildJoinReplicate ( cepcjPk INTEGER NOT NULL , cepcjVersionId INTEGER NOT NULL DEFAULT 0 , cepcjDestination INTEGER NOT NULL , cepcjPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (cepcjPk, cepcjDestination) )"),t.add_11rb$("CREATE INDEX index_ContentEntryParentChildJoinReplicate_cepcjPk_cepcjDestination_cepcjVersionId ON ContentEntryParentChildJoinReplicate (cepcjPk, cepcjDestination, cepcjVersionId)"),t.add_11rb$("CREATE INDEX index_ContentEntryParentChildJoinReplicate_cepcjDestination_cepcjPending ON ContentEntryParentChildJoinReplicate (cepcjDestination, cepcjPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContentEntryRelatedEntryJoinReplicate ( cerejPk INTEGER NOT NULL , cerejVersionId INTEGER NOT NULL DEFAULT 0 , cerejDestination INTEGER NOT NULL , cerejPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (cerejPk, cerejDestination) )"),t.add_11rb$("CREATE INDEX index_ContentEntryRelatedEntryJoinReplicate_cerejPk_cerejDestination_cerejVersionId ON ContentEntryRelatedEntryJoinReplicate (cerejPk, cerejDestination, cerejVersionId)"),t.add_11rb$("CREATE INDEX index_ContentEntryRelatedEntryJoinReplicate_cerejDestination_cerejPending ON ContentEntryRelatedEntryJoinReplicate (cerejDestination, cerejPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContentCategorySchemaReplicate ( ccsPk INTEGER NOT NULL , ccsVersionId INTEGER NOT NULL DEFAULT 0 , ccsDestination INTEGER NOT NULL , ccsPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (ccsPk, ccsDestination) )"),t.add_11rb$("CREATE INDEX index_ContentCategorySchemaReplicate_ccsPk_ccsDestination_ccsVersionId ON ContentCategorySchemaReplicate (ccsPk, ccsDestination, ccsVersionId)"),t.add_11rb$("CREATE INDEX index_ContentCategorySchemaReplicate_ccsDestination_ccsPending ON ContentCategorySchemaReplicate (ccsDestination, ccsPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContentCategoryReplicate ( ccPk INTEGER NOT NULL , ccVersionId INTEGER NOT NULL DEFAULT 0 , ccDestination INTEGER NOT NULL , ccPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (ccPk, ccDestination) )"),t.add_11rb$("CREATE INDEX index_ContentCategoryReplicate_ccPk_ccDestination_ccVersionId ON ContentCategoryReplicate (ccPk, ccDestination, ccVersionId)"),t.add_11rb$("CREATE INDEX index_ContentCategoryReplicate_ccDestination_ccPending ON ContentCategoryReplicate (ccDestination, ccPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS LanguageReplicate ( languagePk INTEGER NOT NULL , languageVersionId INTEGER NOT NULL DEFAULT 0 , languageDestination INTEGER NOT NULL , languagePending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (languagePk, languageDestination) )"),t.add_11rb$("CREATE INDEX index_LanguageReplicate_languagePk_languageDestination_languageVersionId ON LanguageReplicate (languagePk, languageDestination, languageVersionId)"),t.add_11rb$("CREATE INDEX index_LanguageReplicate_languageDestination_languagePending ON LanguageReplicate (languageDestination, languagePending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS LanguageVariantReplicate ( lvPk INTEGER NOT NULL , lvVersionId INTEGER NOT NULL DEFAULT 0 , lvDestination INTEGER NOT NULL , lvPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (lvPk, lvDestination) )"),t.add_11rb$("CREATE INDEX index_LanguageVariantReplicate_lvPk_lvDestination_lvVersionId ON LanguageVariantReplicate (lvPk, lvDestination, lvVersionId)"),t.add_11rb$("CREATE INDEX index_LanguageVariantReplicate_lvDestination_lvPending ON LanguageVariantReplicate (lvDestination, lvPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS PersonGroupReplicate ( pgPk INTEGER NOT NULL , pgVersionId INTEGER NOT NULL DEFAULT 0 , pgDestination INTEGER NOT NULL , pgPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (pgPk, pgDestination) )"),t.add_11rb$("CREATE INDEX index_PersonGroupReplicate_pgPk_pgDestination_pgVersionId ON PersonGroupReplicate (pgPk, pgDestination, pgVersionId)"),t.add_11rb$("CREATE INDEX index_PersonGroupReplicate_pgDestination_pgPending ON PersonGroupReplicate (pgDestination, pgPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS PersonGroupMemberReplicate ( pgmPk INTEGER NOT NULL , pgmVersionId INTEGER NOT NULL DEFAULT 0 , pgmDestination INTEGER NOT NULL , pgmPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (pgmPk, pgmDestination) )"),t.add_11rb$("CREATE INDEX index_PersonGroupMemberReplicate_pgmPk_pgmDestination_pgmVersionId ON PersonGroupMemberReplicate (pgmPk, pgmDestination, pgmVersionId)"),t.add_11rb$("CREATE INDEX index_PersonGroupMemberReplicate_pgmDestination_pgmPending ON PersonGroupMemberReplicate (pgmDestination, pgmPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS PersonPictureReplicate ( ppPk INTEGER NOT NULL , ppVersionId INTEGER NOT NULL DEFAULT 0 , ppDestination INTEGER NOT NULL , ppPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (ppPk, ppDestination) )"),t.add_11rb$("CREATE INDEX index_PersonPictureReplicate_ppPk_ppDestination_ppVersionId ON PersonPictureReplicate (ppPk, ppDestination, ppVersionId)"),t.add_11rb$("CREATE INDEX index_PersonPictureReplicate_ppDestination_ppPending ON PersonPictureReplicate (ppDestination, ppPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContainerReplicate ( containerPk INTEGER NOT NULL , containerVersionId INTEGER NOT NULL DEFAULT 0 , containerDestination INTEGER NOT NULL , containerPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (containerPk, containerDestination) )"),t.add_11rb$("CREATE INDEX index_ContainerReplicate_containerPk_containerDestination_containerVersionId ON ContainerReplicate (containerPk, containerDestination, containerVersionId)"),t.add_11rb$("CREATE INDEX index_ContainerReplicate_containerDestination_containerPending ON ContainerReplicate (containerDestination, containerPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS VerbEntityReplicate ( vePk INTEGER NOT NULL , veVersionId INTEGER NOT NULL DEFAULT 0 , veDestination INTEGER NOT NULL , vePending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (vePk, veDestination) )"),t.add_11rb$("CREATE INDEX index_VerbEntityReplicate_vePk_veDestination_veVersionId ON VerbEntityReplicate (vePk, veDestination, veVersionId)"),t.add_11rb$("CREATE INDEX index_VerbEntityReplicate_veDestination_vePending ON VerbEntityReplicate (veDestination, vePending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS XObjectEntityReplicate ( xoePk INTEGER NOT NULL , xoeVersionId INTEGER NOT NULL DEFAULT 0 , xoeDestination INTEGER NOT NULL , xoePending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (xoePk, xoeDestination) )"),t.add_11rb$("CREATE INDEX index_XObjectEntityReplicate_xoePk_xoeDestination_xoeVersionId ON XObjectEntityReplicate (xoePk, xoeDestination, xoeVersionId)"),t.add_11rb$("CREATE INDEX index_XObjectEntityReplicate_xoeDestination_xoePending ON XObjectEntityReplicate (xoeDestination, xoePending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS StatementEntityReplicate ( sePk INTEGER NOT NULL , seVersionId INTEGER NOT NULL DEFAULT 0 , seDestination INTEGER NOT NULL , sePending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (sePk, seDestination) )"),t.add_11rb$("CREATE INDEX index_StatementEntityReplicate_sePk_seDestination_seVersionId ON StatementEntityReplicate (sePk, seDestination, seVersionId)"),t.add_11rb$("CREATE INDEX index_StatementEntityReplicate_seDestination_sePending ON StatementEntityReplicate (seDestination, sePending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContextXObjectStatementJoinReplicate ( cxosjPk INTEGER NOT NULL , cxosjVersionId INTEGER NOT NULL DEFAULT 0 , cxosjDestination INTEGER NOT NULL , cxosjPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (cxosjPk, cxosjDestination) )"),t.add_11rb$("CREATE INDEX index_ContextXObjectStatementJoinReplicate_cxosjPk_cxosjDestination_cxosjVersionId ON ContextXObjectStatementJoinReplicate (cxosjPk, cxosjDestination, cxosjVersionId)"),t.add_11rb$("CREATE INDEX index_ContextXObjectStatementJoinReplicate_cxosjDestination_cxosjPending ON ContextXObjectStatementJoinReplicate (cxosjDestination, cxosjPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS AgentEntityReplicate ( aePk INTEGER NOT NULL , aeVersionId INTEGER NOT NULL DEFAULT 0 , aeDestination INTEGER NOT NULL , aePending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (aePk, aeDestination) )"),t.add_11rb$("CREATE INDEX index_AgentEntityReplicate_aePk_aeDestination_aeVersionId ON AgentEntityReplicate (aePk, aeDestination, aeVersionId)"),t.add_11rb$("CREATE INDEX index_AgentEntityReplicate_aeDestination_aePending ON AgentEntityReplicate (aeDestination, aePending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS StateEntityReplicate ( sePk INTEGER NOT NULL , seVersionId INTEGER NOT NULL DEFAULT 0 , seDestination INTEGER NOT NULL , sePending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (sePk, seDestination) )"),t.add_11rb$("CREATE INDEX index_StateEntityReplicate_sePk_seDestination_seVersionId ON StateEntityReplicate (sePk, seDestination, seVersionId)"),t.add_11rb$("CREATE INDEX index_StateEntityReplicate_seDestination_sePending ON StateEntityReplicate (seDestination, sePending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS StateContentEntityReplicate ( scePk INTEGER NOT NULL , sceVersionId INTEGER NOT NULL DEFAULT 0 , sceDestination INTEGER NOT NULL , scePending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (scePk, sceDestination) )"),t.add_11rb$("CREATE INDEX index_StateContentEntityReplicate_scePk_sceDestination_sceVersionId ON StateContentEntityReplicate (scePk, sceDestination, sceVersionId)"),t.add_11rb$("CREATE INDEX index_StateContentEntityReplicate_sceDestination_scePending ON StateContentEntityReplicate (sceDestination, scePending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS XLangMapEntryReplicate ( xlmePk INTEGER NOT NULL , xlmeVersionId INTEGER NOT NULL DEFAULT 0 , xlmeDestination INTEGER NOT NULL , xlmePending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (xlmePk, xlmeDestination) )"),t.add_11rb$("CREATE INDEX index_XLangMapEntryReplicate_xlmePk_xlmeDestination_xlmeVersionId ON XLangMapEntryReplicate (xlmePk, xlmeDestination, xlmeVersionId)"),t.add_11rb$("CREATE INDEX index_XLangMapEntryReplicate_xlmeDestination_xlmePending ON XLangMapEntryReplicate (xlmeDestination, xlmePending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS SchoolReplicate ( schoolPk INTEGER NOT NULL , schoolVersionId INTEGER NOT NULL DEFAULT 0 , schoolDestination INTEGER NOT NULL , schoolPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (schoolPk, schoolDestination) )"),t.add_11rb$("CREATE INDEX index_SchoolReplicate_schoolPk_schoolDestination_schoolVersionId ON SchoolReplicate (schoolPk, schoolDestination, schoolVersionId)"),t.add_11rb$("CREATE INDEX index_SchoolReplicate_schoolDestination_schoolPending ON SchoolReplicate (schoolDestination, schoolPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS SchoolMemberReplicate ( smPk INTEGER NOT NULL , smVersionId INTEGER NOT NULL DEFAULT 0 , smDestination INTEGER NOT NULL , smPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (smPk, smDestination) )"),t.add_11rb$("CREATE INDEX index_SchoolMemberReplicate_smPk_smDestination_smVersionId ON SchoolMemberReplicate (smPk, smDestination, smVersionId)"),t.add_11rb$("CREATE INDEX index_SchoolMemberReplicate_smDestination_smPending ON SchoolMemberReplicate (smDestination, smPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CommentsReplicate ( commentsPk INTEGER NOT NULL , commentsVersionId INTEGER NOT NULL DEFAULT 0 , commentsDestination INTEGER NOT NULL , commentsPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (commentsPk, commentsDestination) )"),t.add_11rb$("CREATE INDEX index_CommentsReplicate_commentsPk_commentsDestination_commentsVersionId ON CommentsReplicate (commentsPk, commentsDestination, commentsVersionId)"),t.add_11rb$("CREATE INDEX index_CommentsReplicate_commentsDestination_commentsPending ON CommentsReplicate (commentsDestination, commentsPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ReportReplicate ( reportPk INTEGER NOT NULL , reportVersionId INTEGER NOT NULL DEFAULT 0 , reportDestination INTEGER NOT NULL , reportPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (reportPk, reportDestination) )"),t.add_11rb$("CREATE INDEX index_ReportReplicate_reportPk_reportDestination_reportVersionId ON ReportReplicate (reportPk, reportDestination, reportVersionId)"),t.add_11rb$("CREATE INDEX index_ReportReplicate_reportDestination_reportPending ON ReportReplicate (reportDestination, reportPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS SiteReplicate ( sitePk INTEGER NOT NULL , siteVersionId INTEGER NOT NULL DEFAULT 0 , siteDestination INTEGER NOT NULL , sitePending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (sitePk, siteDestination) )"),t.add_11rb$("CREATE INDEX index_SiteReplicate_sitePk_siteDestination_siteVersionId ON SiteReplicate (sitePk, siteDestination, siteVersionId)"),t.add_11rb$("CREATE INDEX index_SiteReplicate_siteDestination_sitePending ON SiteReplicate (siteDestination, sitePending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS LearnerGroupReplicate ( lgPk INTEGER NOT NULL , lgVersionId INTEGER NOT NULL DEFAULT 0 , lgDestination INTEGER NOT NULL , lgPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (lgPk, lgDestination) )"),t.add_11rb$("CREATE INDEX index_LearnerGroupReplicate_lgPk_lgDestination_lgVersionId ON LearnerGroupReplicate (lgPk, lgDestination, lgVersionId)"),t.add_11rb$("CREATE INDEX index_LearnerGroupReplicate_lgDestination_lgPending ON LearnerGroupReplicate (lgDestination, lgPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS LearnerGroupMemberReplicate ( lgmPk INTEGER NOT NULL , lgmVersionId INTEGER NOT NULL DEFAULT 0 , lgmDestination INTEGER NOT NULL , lgmPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (lgmPk, lgmDestination) )"),t.add_11rb$("CREATE INDEX index_LearnerGroupMemberReplicate_lgmPk_lgmDestination_lgmVersionId ON LearnerGroupMemberReplicate (lgmPk, lgmDestination, lgmVersionId)"),t.add_11rb$("CREATE INDEX index_LearnerGroupMemberReplicate_lgmDestination_lgmPending ON LearnerGroupMemberReplicate (lgmDestination, lgmPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS GroupLearningSessionReplicate ( glsPk INTEGER NOT NULL , glsVersionId INTEGER NOT NULL DEFAULT 0 , glsDestination INTEGER NOT NULL , glsPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (glsPk, glsDestination) )"),t.add_11rb$("CREATE INDEX index_GroupLearningSessionReplicate_glsPk_glsDestination_glsVersionId ON GroupLearningSessionReplicate (glsPk, glsDestination, glsVersionId)"),t.add_11rb$("CREATE INDEX index_GroupLearningSessionReplicate_glsDestination_glsPending ON GroupLearningSessionReplicate (glsDestination, glsPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS SiteTermsReplicate ( stPk INTEGER NOT NULL , stVersionId INTEGER NOT NULL DEFAULT 0 , stDestination INTEGER NOT NULL , stPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (stPk, stDestination) )"),t.add_11rb$("CREATE INDEX index_SiteTermsReplicate_stPk_stDestination_stVersionId ON SiteTermsReplicate (stPk, stDestination, stVersionId)"),t.add_11rb$("CREATE INDEX index_SiteTermsReplicate_stDestination_stPending ON SiteTermsReplicate (stDestination, stPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzContentJoinReplicate ( ccjPk INTEGER NOT NULL , ccjVersionId INTEGER NOT NULL DEFAULT 0 , ccjDestination INTEGER NOT NULL , ccjPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (ccjPk, ccjDestination) )"),t.add_11rb$("CREATE INDEX index_ClazzContentJoinReplicate_ccjPk_ccjDestination_ccjVersionId ON ClazzContentJoinReplicate (ccjPk, ccjDestination, ccjVersionId)"),t.add_11rb$("CREATE INDEX index_ClazzContentJoinReplicate_ccjDestination_ccjPending ON ClazzContentJoinReplicate (ccjDestination, ccjPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS PersonParentJoinReplicate ( ppjPk INTEGER NOT NULL , ppjVersionId INTEGER NOT NULL DEFAULT 0 , ppjDestination INTEGER NOT NULL , ppjPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (ppjPk, ppjDestination) )"),t.add_11rb$("CREATE INDEX index_PersonParentJoinReplicate_ppjPk_ppjDestination_ppjVersionId ON PersonParentJoinReplicate (ppjPk, ppjDestination, ppjVersionId)"),t.add_11rb$("CREATE INDEX index_PersonParentJoinReplicate_ppjDestination_ppjPending ON PersonParentJoinReplicate (ppjDestination, ppjPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ScopedGrantReplicate ( sgPk INTEGER NOT NULL , sgVersionId INTEGER NOT NULL DEFAULT 0 , sgDestination INTEGER NOT NULL , sgPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (sgPk, sgDestination) )"),t.add_11rb$("CREATE INDEX index_ScopedGrantReplicate_sgPk_sgDestination_sgVersionId ON ScopedGrantReplicate (sgPk, sgDestination, sgVersionId)"),t.add_11rb$("CREATE INDEX index_ScopedGrantReplicate_sgDestination_sgPending ON ScopedGrantReplicate (sgDestination, sgPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ErrorReportReplicate ( erPk INTEGER NOT NULL , erVersionId INTEGER NOT NULL DEFAULT 0 , erDestination INTEGER NOT NULL , erPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (erPk, erDestination) )"),t.add_11rb$("CREATE INDEX index_ErrorReportReplicate_erPk_erDestination_erVersionId ON ErrorReportReplicate (erPk, erDestination, erVersionId)"),t.add_11rb$("CREATE INDEX index_ErrorReportReplicate_erDestination_erPending ON ErrorReportReplicate (erDestination, erPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzAssignmentReplicate ( caPk INTEGER NOT NULL , caVersionId INTEGER NOT NULL DEFAULT 0 , caDestination INTEGER NOT NULL , caPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (caPk, caDestination) )"),t.add_11rb$("CREATE INDEX index_ClazzAssignmentReplicate_caPk_caDestination_caVersionId ON ClazzAssignmentReplicate (caPk, caDestination, caVersionId)"),t.add_11rb$("CREATE INDEX index_ClazzAssignmentReplicate_caDestination_caPending ON ClazzAssignmentReplicate (caDestination, caPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzAssignmentContentJoinReplicate ( cacjPk INTEGER NOT NULL , cacjVersionId INTEGER NOT NULL DEFAULT 0 , cacjDestination INTEGER NOT NULL , cacjPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (cacjPk, cacjDestination) )"),t.add_11rb$("CREATE INDEX index_ClazzAssignmentContentJoinReplicate_cacjPk_cacjDestination_cacjVersionId ON ClazzAssignmentContentJoinReplicate (cacjPk, cacjDestination, cacjVersionId)"),t.add_11rb$("CREATE INDEX index_ClazzAssignmentContentJoinReplicate_cacjDestination_cacjPending ON ClazzAssignmentContentJoinReplicate (cacjDestination, cacjPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS PersonAuth2Replicate ( paPk INTEGER NOT NULL , paVersionId INTEGER NOT NULL DEFAULT 0 , paDestination INTEGER NOT NULL , paPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (paPk, paDestination) )"),t.add_11rb$("CREATE INDEX index_PersonAuth2Replicate_paPk_paDestination_paVersionId ON PersonAuth2Replicate (paPk, paDestination, paVersionId)"),t.add_11rb$("CREATE INDEX index_PersonAuth2Replicate_paDestination_paPending ON PersonAuth2Replicate (paDestination, paPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS UserSessionReplicate ( usPk INTEGER NOT NULL , usVersionId INTEGER NOT NULL DEFAULT 0 , usDestination INTEGER NOT NULL , usPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (usPk, usDestination) )"),t.add_11rb$("CREATE INDEX index_UserSessionReplicate_usPk_usDestination_usVersionId ON UserSessionReplicate (usPk, usDestination, usVersionId)"),t.add_11rb$("CREATE INDEX index_UserSessionReplicate_usDestination_usPending ON UserSessionReplicate (usDestination, usPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CoursePicture ( coursePictureClazzUid INTEGER NOT NULL , coursePictureMasterCsn INTEGER NOT NULL , coursePictureLocalCsn INTEGER NOT NULL , coursePictureLastChangedBy INTEGER NOT NULL , coursePictureLct INTEGER NOT NULL , coursePictureUri TEXT , coursePictureMd5 TEXT , coursePictureFileSize INTEGER NOT NULL , coursePictureTimestamp INTEGER NOT NULL , coursePictureMimeType TEXT , coursePictureActive INTEGER NOT NULL , coursePictureUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CoursePictureReplicate ( cpPk INTEGER NOT NULL , cpVersionId INTEGER NOT NULL DEFAULT 0 , cpDestination INTEGER NOT NULL , cpPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (cpPk, cpDestination) )"),t.add_11rb$("CREATE INDEX index_CoursePictureReplicate_cpPk_cpDestination_cpVersionId ON CoursePictureReplicate (cpPk, cpDestination, cpVersionId)"),t.add_11rb$("CREATE INDEX index_CoursePictureReplicate_cpDestination_cpPending ON CoursePictureReplicate (cpDestination, cpPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContentEntryPicture ( cepContentEntryUid INTEGER NOT NULL , cepUri TEXT , cepMd5 TEXT , cepFileSize INTEGER NOT NULL , cepTimestamp INTEGER NOT NULL , cepMimeType TEXT , cepActive INTEGER NOT NULL , cepUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContentEntryPictureReplicate ( cepPk INTEGER NOT NULL , cepVersionId INTEGER NOT NULL DEFAULT 0 , cepDestination INTEGER NOT NULL , cepPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (cepPk, cepDestination) )"),t.add_11rb$("CREATE INDEX index_ContentEntryPictureReplicate_cepPk_cepDestination_cepVersionId ON ContentEntryPictureReplicate (cepPk, cepDestination, cepVersionId)"),t.add_11rb$("CREATE INDEX index_ContentEntryPictureReplicate_cepDestination_cepPending ON ContentEntryPictureReplicate (cepDestination, cepPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS Chat ( chatStartDate INTEGER NOT NULL , chatTitle TEXT , chatGroup INTEGER NOT NULL , chatLct INTEGER NOT NULL , chatUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ChatMember ( chatMemberChatUid INTEGER NOT NULL , chatMemberPersonUid INTEGER NOT NULL , chatMemberJoinedDate INTEGER NOT NULL , chatMemberLeftDate INTEGER NOT NULL , chatMemberLct INTEGER NOT NULL , chatMemberUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS Message ( messageSenderPersonUid INTEGER NOT NULL , messageTableId INTEGER NOT NULL , messageEntityUid INTEGER NOT NULL , messageText TEXT , messageTimestamp INTEGER NOT NULL , messageClazzUid INTEGER NOT NULL , messageLct INTEGER NOT NULL , messageUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS MessageReplicate ( messagePk INTEGER NOT NULL , messageVersionId INTEGER NOT NULL DEFAULT 0 , messageDestination INTEGER NOT NULL , messagePending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (messagePk, messageDestination) )"),t.add_11rb$("CREATE INDEX index_MessageReplicate_messagePk_messageDestination_messageVersionId ON MessageReplicate (messagePk, messageDestination, messageVersionId)"),t.add_11rb$("CREATE INDEX index_MessageReplicate_messageDestination_messagePending ON MessageReplicate (messageDestination, messagePending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ChatReplicate ( chatPk INTEGER NOT NULL , chatVersionId INTEGER NOT NULL DEFAULT 0 , chatDestination INTEGER NOT NULL , chatPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (chatPk, chatDestination) )"),t.add_11rb$("CREATE INDEX index_ChatReplicate_chatPk_chatDestination_chatVersionId ON ChatReplicate (chatPk, chatDestination, chatVersionId)"),t.add_11rb$("CREATE INDEX index_ChatReplicate_chatDestination_chatPending ON ChatReplicate (chatDestination, chatPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ChatMemberReplicate ( chatMemberPk INTEGER NOT NULL , chatMemberVersionId INTEGER NOT NULL DEFAULT 0 , chatMemberDestination INTEGER NOT NULL , chatMemberPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (chatMemberPk, chatMemberDestination) )"),t.add_11rb$("CREATE INDEX index_ChatMemberReplicate_chatMemberPk_chatMemberDestination_chatMemberVersionId ON ChatMemberReplicate (chatMemberPk, chatMemberDestination, chatMemberVersionId)"),t.add_11rb$("CREATE INDEX index_ChatMemberReplicate_chatMemberDestination_chatMemberPending ON ChatMemberReplicate (chatMemberDestination, chatMemberPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS MessageRead ( messageReadPersonUid INTEGER NOT NULL , messageReadMessageUid INTEGER NOT NULL , messageReadEntityUid INTEGER NOT NULL , messageReadLct INTEGER NOT NULL , messageReadUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS MessageReadReplicate ( messageReadPk INTEGER NOT NULL , messageReadVersionId INTEGER NOT NULL DEFAULT 0 , messageReadDestination INTEGER NOT NULL , messageReadPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (messageReadPk, messageReadDestination) )"),t.add_11rb$("CREATE INDEX index_MessageReadReplicate_messageReadPk_messageReadDestination_messageReadVersionId ON MessageReadReplicate (messageReadPk, messageReadDestination, messageReadVersionId)"),t.add_11rb$("CREATE INDEX index_MessageReadReplicate_messageReadDestination_messageReadPending ON MessageReadReplicate (messageReadDestination, messageReadPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CourseDiscussion ( courseDiscussionTitle TEXT , courseDiscussionDesc TEXT , courseDiscussionClazzUid INTEGER NOT NULL , courseDiscussionActive INTEGER NOT NULL , courseDiscussionLct INTEGER NOT NULL , courseDiscussionUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CourseDiscussionReplicate ( courseDiscussionPk INTEGER NOT NULL , courseDiscussionVersionId INTEGER NOT NULL DEFAULT 0 , courseDiscussionDestination INTEGER NOT NULL , courseDiscussionPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (courseDiscussionPk, courseDiscussionDestination) )"),t.add_11rb$("CREATE INDEX index_CourseDiscussionReplicate_courseDiscussionPk_courseDiscussionDestination_courseDiscussionVersionId ON CourseDiscussionReplicate (courseDiscussionPk, courseDiscussionDestination, courseDiscussionVersionId)"),t.add_11rb$("CREATE INDEX index_CourseDiscussionReplicate_courseDiscussionDestination_courseDiscussionPending ON CourseDiscussionReplicate (courseDiscussionDestination, courseDiscussionPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS DiscussionTopic ( discussionTopicTitle TEXT , discussionTopicDesc TEXT , discussionTopicStartDate INTEGER NOT NULL , discussionTopicCourseDiscussionUid INTEGER NOT NULL , discussionTopicVisible INTEGER NOT NULL , discussionTopicArchive INTEGER NOT NULL , discussionTopicIndex INTEGER NOT NULL , discussionTopicClazzUid INTEGER NOT NULL , discussionTopicLct INTEGER NOT NULL , discussionTopicUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS DiscussionTopicReplicate ( discussionTopicPk INTEGER NOT NULL , discussionTopicVersionId INTEGER NOT NULL DEFAULT 0 , discussionTopicDestination INTEGER NOT NULL , discussionTopicPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (discussionTopicPk, discussionTopicDestination) )"),t.add_11rb$("CREATE INDEX index_DiscussionTopicReplicate_discussionTopicPk_discussionTopicDestination_discussionTopicVersionId ON DiscussionTopicReplicate (discussionTopicPk, discussionTopicDestination, discussionTopicVersionId)"),t.add_11rb$("CREATE INDEX index_DiscussionTopicReplicate_discussionTopicDestination_discussionTopicPending ON DiscussionTopicReplicate (discussionTopicDestination, discussionTopicPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS DiscussionPost ( discussionPostTitle TEXT , discussionPostMessage TEXT , discussionPostStartDate INTEGER NOT NULL , discussionPostDiscussionTopicUid INTEGER NOT NULL , discussionPostVisible INTEGER NOT NULL , discussionPostArchive INTEGER NOT NULL , discussionPostStartedPersonUid INTEGER NOT NULL , discussionPostClazzUid INTEGER NOT NULL , discussionPostLct INTEGER NOT NULL , discussionPostUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS DiscussionPostReplicate ( discussionPostPk INTEGER NOT NULL , discussionPostVersionId INTEGER NOT NULL DEFAULT 0 , discussionPostDestination INTEGER NOT NULL , discussionPostPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (discussionPostPk, discussionPostDestination) )"),t.add_11rb$("CREATE INDEX index_DiscussionPostReplicate_discussionPostPk_discussionPostDestination_discussionPostVersionId ON DiscussionPostReplicate (discussionPostPk, discussionPostDestination, discussionPostVersionId)"),t.add_11rb$("CREATE INDEX index_DiscussionPostReplicate_discussionPostDestination_discussionPostPending ON DiscussionPostReplicate (discussionPostDestination, discussionPostPending)"),t.add_11rb$(" CREATE TRIGGER ch_ins_14 AFTER INSERT ON ClazzLog BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 14 AS chTableId, NEW.clazzLogUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 14 AND chEntityPk = NEW.clazzLogUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_14 AFTER UPDATE ON ClazzLog BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 14 AS chTableId, NEW.clazzLogUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 14 AND chEntityPk = NEW.clazzLogUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_14 AFTER DELETE ON ClazzLog BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 14 AS chTableId, OLD.clazzLogUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 14 AND chEntityPk = OLD.clazzLogUid); END "),t.add_11rb$("CREATE VIEW ClazzLog_ReceiveView AS SELECT ClazzLog.*, ClazzLogReplicate.* FROM ClazzLog LEFT JOIN ClazzLogReplicate ON ClazzLogReplicate.clPk = ClazzLog.clazzLogUid "),t.add_11rb$(" CREATE TRIGGER clazzlog_remote_insert_ins INSTEAD OF INSERT ON ClazzLog_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ClazzLog(clazzLogUid, clazzLogClazzUid, logDate, timeRecorded, clazzLogDone, cancellationNote, clazzLogCancelled, clazzLogNumPresent, clazzLogNumAbsent, clazzLogNumPartial, clazzLogScheduleUid, clazzLogStatusFlag, clazzLogMSQN, clazzLogLCSN, clazzLogLCB, clazzLogLastChangedTime) VALUES (NEW.clazzLogUid, NEW.clazzLogClazzUid, NEW.logDate, NEW.timeRecorded, NEW.clazzLogDone, NEW.cancellationNote, NEW.clazzLogCancelled, NEW.clazzLogNumPresent, NEW.clazzLogNumAbsent, NEW.clazzLogNumPartial, NEW.clazzLogScheduleUid, NEW.clazzLogStatusFlag, NEW.clazzLogMSQN, NEW.clazzLogLCSN, NEW.clazzLogLCB, NEW.clazzLogLastChangedTime) /*psql ON CONFLICT (clazzLogUid) DO UPDATE SET clazzLogClazzUid = EXCLUDED.clazzLogClazzUid, logDate = EXCLUDED.logDate, timeRecorded = EXCLUDED.timeRecorded, clazzLogDone = EXCLUDED.clazzLogDone, cancellationNote = EXCLUDED.cancellationNote, clazzLogCancelled = EXCLUDED.clazzLogCancelled, clazzLogNumPresent = EXCLUDED.clazzLogNumPresent, clazzLogNumAbsent = EXCLUDED.clazzLogNumAbsent, clazzLogNumPartial = EXCLUDED.clazzLogNumPartial, clazzLogScheduleUid = EXCLUDED.clazzLogScheduleUid, clazzLogStatusFlag = EXCLUDED.clazzLogStatusFlag, clazzLogMSQN = EXCLUDED.clazzLogMSQN, clazzLogLCSN = EXCLUDED.clazzLogLCSN, clazzLogLCB = EXCLUDED.clazzLogLCB, clazzLogLastChangedTime = EXCLUDED.clazzLogLastChangedTime */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_15 AFTER INSERT ON ClazzLogAttendanceRecord BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 15 AS chTableId, NEW.clazzLogAttendanceRecordUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 15 AND chEntityPk = NEW.clazzLogAttendanceRecordUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_15 AFTER UPDATE ON ClazzLogAttendanceRecord BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 15 AS chTableId, NEW.clazzLogAttendanceRecordUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 15 AND chEntityPk = NEW.clazzLogAttendanceRecordUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_15 AFTER DELETE ON ClazzLogAttendanceRecord BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 15 AS chTableId, OLD.clazzLogAttendanceRecordUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 15 AND chEntityPk = OLD.clazzLogAttendanceRecordUid); END "),t.add_11rb$("CREATE VIEW ClazzLogAttendanceRecord_ReceiveView AS SELECT ClazzLogAttendanceRecord.*, ClazzLogAttendanceRecordReplicate.* FROM ClazzLogAttendanceRecord LEFT JOIN ClazzLogAttendanceRecordReplicate ON ClazzLogAttendanceRecordReplicate.clarPk = ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid "),t.add_11rb$(" CREATE TRIGGER clazzlogattendancerecord_remote_insert_ins INSTEAD OF INSERT ON ClazzLogAttendanceRecord_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ClazzLogAttendanceRecord(clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime) VALUES (NEW.clazzLogAttendanceRecordUid, NEW.clazzLogAttendanceRecordClazzLogUid, NEW.clazzLogAttendanceRecordPersonUid, NEW.attendanceStatus, NEW.clazzLogAttendanceRecordMasterChangeSeqNum, NEW.clazzLogAttendanceRecordLocalChangeSeqNum, NEW.clazzLogAttendanceRecordLastChangedBy, NEW.clazzLogAttendanceRecordLastChangedTime) /*psql ON CONFLICT (clazzLogAttendanceRecordUid) DO UPDATE SET clazzLogAttendanceRecordClazzLogUid = EXCLUDED.clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid = EXCLUDED.clazzLogAttendanceRecordPersonUid, attendanceStatus = EXCLUDED.attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum = EXCLUDED.clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum = EXCLUDED.clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy = EXCLUDED.clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime = EXCLUDED.clazzLogAttendanceRecordLastChangedTime */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_21 AFTER INSERT ON Schedule BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 21 AS chTableId, NEW.scheduleUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 21 AND chEntityPk = NEW.scheduleUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_21 AFTER UPDATE ON Schedule BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 21 AS chTableId, NEW.scheduleUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 21 AND chEntityPk = NEW.scheduleUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_21 AFTER DELETE ON Schedule BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 21 AS chTableId, OLD.scheduleUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 21 AND chEntityPk = OLD.scheduleUid); END "),t.add_11rb$("CREATE VIEW Schedule_ReceiveView AS SELECT Schedule.*, ScheduleReplicate.* FROM Schedule LEFT JOIN ScheduleReplicate ON ScheduleReplicate.schedulePk = Schedule.scheduleUid "),t.add_11rb$(" CREATE TRIGGER schedule_remote_insert_ins INSTEAD OF INSERT ON Schedule_ReceiveView FOR EACH ROW BEGIN REPLACE INTO Schedule(scheduleUid, sceduleStartTime, scheduleEndTime, scheduleDay, scheduleMonth, scheduleFrequency, umCalendarUid, scheduleClazzUid, scheduleMasterChangeSeqNum, scheduleLocalChangeSeqNum, scheduleLastChangedBy, scheduleLastChangedTime, scheduleActive) VALUES (NEW.scheduleUid, NEW.sceduleStartTime, NEW.scheduleEndTime, NEW.scheduleDay, NEW.scheduleMonth, NEW.scheduleFrequency, NEW.umCalendarUid, NEW.scheduleClazzUid, NEW.scheduleMasterChangeSeqNum, NEW.scheduleLocalChangeSeqNum, NEW.scheduleLastChangedBy, NEW.scheduleLastChangedTime, NEW.scheduleActive) /*psql ON CONFLICT (scheduleUid) DO UPDATE SET sceduleStartTime = EXCLUDED.sceduleStartTime, scheduleEndTime = EXCLUDED.scheduleEndTime, scheduleDay = EXCLUDED.scheduleDay, scheduleMonth = EXCLUDED.scheduleMonth, scheduleFrequency = EXCLUDED.scheduleFrequency, umCalendarUid = EXCLUDED.umCalendarUid, scheduleClazzUid = EXCLUDED.scheduleClazzUid, scheduleMasterChangeSeqNum = EXCLUDED.scheduleMasterChangeSeqNum, scheduleLocalChangeSeqNum = EXCLUDED.scheduleLocalChangeSeqNum, scheduleLastChangedBy = EXCLUDED.scheduleLastChangedBy, scheduleLastChangedTime = EXCLUDED.scheduleLastChangedTime, scheduleActive = EXCLUDED.scheduleActive */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_28 AFTER INSERT ON HolidayCalendar BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 28 AS chTableId, NEW.umCalendarUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 28 AND chEntityPk = NEW.umCalendarUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_28 AFTER UPDATE ON HolidayCalendar BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 28 AS chTableId, NEW.umCalendarUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 28 AND chEntityPk = NEW.umCalendarUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_28 AFTER DELETE ON HolidayCalendar BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 28 AS chTableId, OLD.umCalendarUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 28 AND chEntityPk = OLD.umCalendarUid); END "),t.add_11rb$("CREATE VIEW HolidayCalendar_ReceiveView AS SELECT HolidayCalendar.*, HolidayCalendarReplicate.* FROM HolidayCalendar LEFT JOIN HolidayCalendarReplicate ON HolidayCalendarReplicate.hcPk = HolidayCalendar.umCalendarUid "),t.add_11rb$(" CREATE TRIGGER holidaycalendar_remote_insert_ins INSTEAD OF INSERT ON HolidayCalendar_ReceiveView FOR EACH ROW BEGIN REPLACE INTO HolidayCalendar(umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct) VALUES (NEW.umCalendarUid, NEW.umCalendarName, NEW.umCalendarCategory, NEW.umCalendarActive, NEW.umCalendarMasterChangeSeqNum, NEW.umCalendarLocalChangeSeqNum, NEW.umCalendarLastChangedBy, NEW.umCalendarLct) /*psql ON CONFLICT (umCalendarUid) DO UPDATE SET umCalendarName = EXCLUDED.umCalendarName, umCalendarCategory = EXCLUDED.umCalendarCategory, umCalendarActive = EXCLUDED.umCalendarActive, umCalendarMasterChangeSeqNum = EXCLUDED.umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum = EXCLUDED.umCalendarLocalChangeSeqNum, umCalendarLastChangedBy = EXCLUDED.umCalendarLastChangedBy, umCalendarLct = EXCLUDED.umCalendarLct */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_99 AFTER INSERT ON Holiday BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 99 AS chTableId, NEW.holUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 99 AND chEntityPk = NEW.holUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_99 AFTER UPDATE ON Holiday BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 99 AS chTableId, NEW.holUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 99 AND chEntityPk = NEW.holUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_99 AFTER DELETE ON Holiday BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 99 AS chTableId, OLD.holUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 99 AND chEntityPk = OLD.holUid); END "),t.add_11rb$("CREATE VIEW Holiday_ReceiveView AS SELECT Holiday.*, HolidayReplicate.* FROM Holiday LEFT JOIN HolidayReplicate ON HolidayReplicate.holidayPk = Holiday.holUid "),t.add_11rb$(" CREATE TRIGGER holiday_remote_insert_ins INSTEAD OF INSERT ON Holiday_ReceiveView FOR EACH ROW BEGIN REPLACE INTO Holiday(holUid, holMasterCsn, holLocalCsn, holLastModBy, holLct, holActive, holHolidayCalendarUid, holStartTime, holEndTime, holName) VALUES (NEW.holUid, NEW.holMasterCsn, NEW.holLocalCsn, NEW.holLastModBy, NEW.holLct, NEW.holActive, NEW.holHolidayCalendarUid, NEW.holStartTime, NEW.holEndTime, NEW.holName) /*psql ON CONFLICT (holUid) DO UPDATE SET holMasterCsn = EXCLUDED.holMasterCsn, holLocalCsn = EXCLUDED.holLocalCsn, holLastModBy = EXCLUDED.holLastModBy, holLct = EXCLUDED.holLct, holActive = EXCLUDED.holActive, holHolidayCalendarUid = EXCLUDED.holHolidayCalendarUid, holStartTime = EXCLUDED.holStartTime, holEndTime = EXCLUDED.holEndTime, holName = EXCLUDED.holName */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_9 AFTER INSERT ON Person BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 9 AS chTableId, NEW.personUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 9 AND chEntityPk = NEW.personUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_9 AFTER UPDATE ON Person BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 9 AS chTableId, NEW.personUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 9 AND chEntityPk = NEW.personUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_9 AFTER DELETE ON Person BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 9 AS chTableId, OLD.personUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 9 AND chEntityPk = OLD.personUid); END "),t.add_11rb$("CREATE VIEW Person_ReceiveView AS SELECT Person.*, PersonReplicate.* FROM Person LEFT JOIN PersonReplicate ON PersonReplicate.personPk = Person.personUid "),t.add_11rb$(" CREATE TRIGGER person_remote_insert_ins INSTEAD OF INSERT ON Person_ReceiveView FOR EACH ROW BEGIN REPLACE INTO Person(personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, admin, personNotes, fatherName, fatherNumber, motherName, motherNum, dateOfBirth, personAddress, personOrgId, personGroupUid, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, personLct, personCountry, personType) VALUES (NEW.personUid, NEW.username, NEW.firstNames, NEW.lastName, NEW.emailAddr, NEW.phoneNum, NEW.gender, NEW.active, NEW.admin, NEW.personNotes, NEW.fatherName, NEW.fatherNumber, NEW.motherName, NEW.motherNum, NEW.dateOfBirth, NEW.personAddress, NEW.personOrgId, NEW.personGroupUid, NEW.personMasterChangeSeqNum, NEW.personLocalChangeSeqNum, NEW.personLastChangedBy, NEW.personLct, NEW.personCountry, NEW.personType) /*psql ON CONFLICT (personUid) DO UPDATE SET username = EXCLUDED.username, firstNames = EXCLUDED.firstNames, lastName = EXCLUDED.lastName, emailAddr = EXCLUDED.emailAddr, phoneNum = EXCLUDED.phoneNum, gender = EXCLUDED.gender, active = EXCLUDED.active, admin = EXCLUDED.admin, personNotes = EXCLUDED.personNotes, fatherName = EXCLUDED.fatherName, fatherNumber = EXCLUDED.fatherNumber, motherName = EXCLUDED.motherName, motherNum = EXCLUDED.motherNum, dateOfBirth = EXCLUDED.dateOfBirth, personAddress = EXCLUDED.personAddress, personOrgId = EXCLUDED.personOrgId, personGroupUid = EXCLUDED.personGroupUid, personMasterChangeSeqNum = EXCLUDED.personMasterChangeSeqNum, personLocalChangeSeqNum = EXCLUDED.personLocalChangeSeqNum, personLastChangedBy = EXCLUDED.personLastChangedBy, personLct = EXCLUDED.personLct, personCountry = EXCLUDED.personCountry, personType = EXCLUDED.personType */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_6 AFTER INSERT ON Clazz BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 6 AS chTableId, NEW.clazzUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 6 AND chEntityPk = NEW.clazzUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_6 AFTER UPDATE ON Clazz BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 6 AS chTableId, NEW.clazzUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 6 AND chEntityPk = NEW.clazzUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_6 AFTER DELETE ON Clazz BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 6 AS chTableId, OLD.clazzUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 6 AND chEntityPk = OLD.clazzUid); END "),t.add_11rb$("CREATE VIEW Clazz_ReceiveView AS SELECT Clazz.*, ClazzReplicate.* FROM Clazz LEFT JOIN ClazzReplicate ON ClazzReplicate.clazzPk = Clazz.clazzUid "),t.add_11rb$(" CREATE TRIGGER clazz_remote_insert_ins INSTEAD OF INSERT ON Clazz_ReceiveView FOR EACH ROW BEGIN REPLACE INTO Clazz(clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode) VALUES (NEW.clazzUid, NEW.clazzName, NEW.clazzDesc, NEW.attendanceAverage, NEW.clazzHolidayUMCalendarUid, NEW.clazzScheuleUMCalendarUid, NEW.isClazzActive, NEW.clazzLocationUid, NEW.clazzStartTime, NEW.clazzEndTime, NEW.clazzFeatures, NEW.clazzSchoolUid, NEW.clazzEnrolmentPolicy, NEW.clazzTerminologyUid, NEW.clazzMasterChangeSeqNum, NEW.clazzLocalChangeSeqNum, NEW.clazzLastChangedBy, NEW.clazzLct, NEW.clazzTimeZone, NEW.clazzStudentsPersonGroupUid, NEW.clazzTeachersPersonGroupUid, NEW.clazzPendingStudentsPersonGroupUid, NEW.clazzParentsPersonGroupUid, NEW.clazzCode) /*psql ON CONFLICT (clazzUid) DO UPDATE SET clazzName = EXCLUDED.clazzName, clazzDesc = EXCLUDED.clazzDesc, attendanceAverage = EXCLUDED.attendanceAverage, clazzHolidayUMCalendarUid = EXCLUDED.clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid = EXCLUDED.clazzScheuleUMCalendarUid, isClazzActive = EXCLUDED.isClazzActive, clazzLocationUid = EXCLUDED.clazzLocationUid, clazzStartTime = EXCLUDED.clazzStartTime, clazzEndTime = EXCLUDED.clazzEndTime, clazzFeatures = EXCLUDED.clazzFeatures, clazzSchoolUid = EXCLUDED.clazzSchoolUid, clazzEnrolmentPolicy = EXCLUDED.clazzEnrolmentPolicy, clazzTerminologyUid = EXCLUDED.clazzTerminologyUid, clazzMasterChangeSeqNum = EXCLUDED.clazzMasterChangeSeqNum, clazzLocalChangeSeqNum = EXCLUDED.clazzLocalChangeSeqNum, clazzLastChangedBy = EXCLUDED.clazzLastChangedBy, clazzLct = EXCLUDED.clazzLct, clazzTimeZone = EXCLUDED.clazzTimeZone, clazzStudentsPersonGroupUid = EXCLUDED.clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid = EXCLUDED.clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid = EXCLUDED.clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid = EXCLUDED.clazzParentsPersonGroupUid, clazzCode = EXCLUDED.clazzCode */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_65 AFTER INSERT ON ClazzEnrolment BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 65 AS chTableId, NEW.clazzEnrolmentUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 65 AND chEntityPk = NEW.clazzEnrolmentUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_65 AFTER UPDATE ON ClazzEnrolment BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 65 AS chTableId, NEW.clazzEnrolmentUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 65 AND chEntityPk = NEW.clazzEnrolmentUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_65 AFTER DELETE ON ClazzEnrolment BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 65 AS chTableId, OLD.clazzEnrolmentUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 65 AND chEntityPk = OLD.clazzEnrolmentUid); END "),t.add_11rb$("CREATE VIEW ClazzEnrolment_ReceiveView AS SELECT ClazzEnrolment.*, ClazzEnrolmentReplicate.* FROM ClazzEnrolment LEFT JOIN ClazzEnrolmentReplicate ON ClazzEnrolmentReplicate.cePk = ClazzEnrolment.clazzEnrolmentUid "),t.add_11rb$(" CREATE TRIGGER clazzenrolment_remote_insert_ins INSTEAD OF INSERT ON ClazzEnrolment_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ClazzEnrolment(clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct) VALUES (NEW.clazzEnrolmentUid, NEW.clazzEnrolmentPersonUid, NEW.clazzEnrolmentClazzUid, NEW.clazzEnrolmentDateJoined, NEW.clazzEnrolmentDateLeft, NEW.clazzEnrolmentRole, NEW.clazzEnrolmentAttendancePercentage, NEW.clazzEnrolmentActive, NEW.clazzEnrolmentLeavingReasonUid, NEW.clazzEnrolmentOutcome, NEW.clazzEnrolmentLocalChangeSeqNum, NEW.clazzEnrolmentMasterChangeSeqNum, NEW.clazzEnrolmentLastChangedBy, NEW.clazzEnrolmentLct) /*psql ON CONFLICT (clazzEnrolmentUid) DO UPDATE SET clazzEnrolmentPersonUid = EXCLUDED.clazzEnrolmentPersonUid, clazzEnrolmentClazzUid = EXCLUDED.clazzEnrolmentClazzUid, clazzEnrolmentDateJoined = EXCLUDED.clazzEnrolmentDateJoined, clazzEnrolmentDateLeft = EXCLUDED.clazzEnrolmentDateLeft, clazzEnrolmentRole = EXCLUDED.clazzEnrolmentRole, clazzEnrolmentAttendancePercentage = EXCLUDED.clazzEnrolmentAttendancePercentage, clazzEnrolmentActive = EXCLUDED.clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid = EXCLUDED.clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome = EXCLUDED.clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum = EXCLUDED.clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum = EXCLUDED.clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy = EXCLUDED.clazzEnrolmentLastChangedBy, clazzEnrolmentLct = EXCLUDED.clazzEnrolmentLct */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_410 AFTER INSERT ON LeavingReason BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 410 AS chTableId, NEW.leavingReasonUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 410 AND chEntityPk = NEW.leavingReasonUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_410 AFTER UPDATE ON LeavingReason BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 410 AS chTableId, NEW.leavingReasonUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 410 AND chEntityPk = NEW.leavingReasonUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_410 AFTER DELETE ON LeavingReason BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 410 AS chTableId, OLD.leavingReasonUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 410 AND chEntityPk = OLD.leavingReasonUid); END "),t.add_11rb$("CREATE VIEW LeavingReason_ReceiveView AS SELECT LeavingReason.*, LeavingReasonReplicate.* FROM LeavingReason LEFT JOIN LeavingReasonReplicate ON LeavingReasonReplicate.lrPk = LeavingReason.leavingReasonUid "),t.add_11rb$(" CREATE TRIGGER leavingreason_remote_insert_ins INSTEAD OF INSERT ON LeavingReason_ReceiveView FOR EACH ROW BEGIN REPLACE INTO LeavingReason(leavingReasonUid, leavingReasonTitle, leavingReasonMCSN, leavingReasonCSN, leavingReasonLCB, leavingReasonLct) VALUES (NEW.leavingReasonUid, NEW.leavingReasonTitle, NEW.leavingReasonMCSN, NEW.leavingReasonCSN, NEW.leavingReasonLCB, NEW.leavingReasonLct) /*psql ON CONFLICT (leavingReasonUid) DO UPDATE SET leavingReasonTitle = EXCLUDED.leavingReasonTitle, leavingReasonMCSN = EXCLUDED.leavingReasonMCSN, leavingReasonCSN = EXCLUDED.leavingReasonCSN, leavingReasonLCB = EXCLUDED.leavingReasonLCB, leavingReasonLct = EXCLUDED.leavingReasonLct */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_42 AFTER INSERT ON ContentEntry BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 42 AS chTableId, NEW.contentEntryUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 42 AND chEntityPk = NEW.contentEntryUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_42 AFTER UPDATE ON ContentEntry BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 42 AS chTableId, NEW.contentEntryUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 42 AND chEntityPk = NEW.contentEntryUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_42 AFTER DELETE ON ContentEntry BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 42 AS chTableId, OLD.contentEntryUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 42 AND chEntityPk = OLD.contentEntryUid); END "),t.add_11rb$("CREATE VIEW ContentEntry_ReceiveView AS SELECT ContentEntry.*, ContentEntryReplicate.* FROM ContentEntry LEFT JOIN ContentEntryReplicate ON ContentEntryReplicate.cePk = ContentEntry.contentEntryUid "),t.add_11rb$(" CREATE TRIGGER contententry_remote_insert_ins INSTEAD OF INSERT ON ContentEntry_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ContentEntry(contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct) VALUES (NEW.contentEntryUid, NEW.title, NEW.description, NEW.entryId, NEW.author, NEW.publisher, NEW.licenseType, NEW.licenseName, NEW.licenseUrl, NEW.sourceUrl, NEW.thumbnailUrl, NEW.lastModified, NEW.primaryLanguageUid, NEW.languageVariantUid, NEW.contentFlags, NEW.leaf, NEW.publik, NEW.ceInactive, NEW.completionCriteria, NEW.minScore, NEW.contentTypeFlag, NEW.contentOwner, NEW.contentEntryLocalChangeSeqNum, NEW.contentEntryMasterChangeSeqNum, NEW.contentEntryLastChangedBy, NEW.contentEntryLct) /*psql ON CONFLICT (contentEntryUid) DO UPDATE SET title = EXCLUDED.title, description = EXCLUDED.description, entryId = EXCLUDED.entryId, author = EXCLUDED.author, publisher = EXCLUDED.publisher, licenseType = EXCLUDED.licenseType, licenseName = EXCLUDED.licenseName, licenseUrl = EXCLUDED.licenseUrl, sourceUrl = EXCLUDED.sourceUrl, thumbnailUrl = EXCLUDED.thumbnailUrl, lastModified = EXCLUDED.lastModified, primaryLanguageUid = EXCLUDED.primaryLanguageUid, languageVariantUid = EXCLUDED.languageVariantUid, contentFlags = EXCLUDED.contentFlags, leaf = EXCLUDED.leaf, publik = EXCLUDED.publik, ceInactive = EXCLUDED.ceInactive, completionCriteria = EXCLUDED.completionCriteria, minScore = EXCLUDED.minScore, contentTypeFlag = EXCLUDED.contentTypeFlag, contentOwner = EXCLUDED.contentOwner, contentEntryLocalChangeSeqNum = EXCLUDED.contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum = EXCLUDED.contentEntryMasterChangeSeqNum, contentEntryLastChangedBy = EXCLUDED.contentEntryLastChangedBy, contentEntryLct = EXCLUDED.contentEntryLct*/; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_3 AFTER INSERT ON ContentEntryContentCategoryJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 3 AS chTableId, NEW.ceccjUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 3 AND chEntityPk = NEW.ceccjUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_3 AFTER UPDATE ON ContentEntryContentCategoryJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 3 AS chTableId, NEW.ceccjUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 3 AND chEntityPk = NEW.ceccjUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_3 AFTER DELETE ON ContentEntryContentCategoryJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 3 AS chTableId, OLD.ceccjUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 3 AND chEntityPk = OLD.ceccjUid); END "),t.add_11rb$("CREATE VIEW ContentEntryContentCategoryJoin_ReceiveView AS SELECT ContentEntryContentCategoryJoin.*, ContentEntryContentCategoryJoinReplicate.* FROM ContentEntryContentCategoryJoin LEFT JOIN ContentEntryContentCategoryJoinReplicate ON ContentEntryContentCategoryJoinReplicate.ceccjPk = ContentEntryContentCategoryJoin.ceccjUid "),t.add_11rb$(" CREATE TRIGGER contententrycontentcategoryjoin_remote_insert_ins INSTEAD OF INSERT ON ContentEntryContentCategoryJoin_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ContentEntryContentCategoryJoin(ceccjUid, ceccjContentEntryUid, ceccjContentCategoryUid, ceccjLocalChangeSeqNum, ceccjMasterChangeSeqNum, ceccjLastChangedBy, ceccjLct) VALUES (NEW.ceccjUid, NEW.ceccjContentEntryUid, NEW.ceccjContentCategoryUid, NEW.ceccjLocalChangeSeqNum, NEW.ceccjMasterChangeSeqNum, NEW.ceccjLastChangedBy, NEW.ceccjLct) /*psql ON CONFLICT (ceccjUid) DO UPDATE SET ceccjContentEntryUid = EXCLUDED.ceccjContentEntryUid, ceccjContentCategoryUid = EXCLUDED.ceccjContentCategoryUid, ceccjLocalChangeSeqNum = EXCLUDED.ceccjLocalChangeSeqNum, ceccjMasterChangeSeqNum = EXCLUDED.ceccjMasterChangeSeqNum, ceccjLastChangedBy = EXCLUDED.ceccjLastChangedBy, ceccjLct = EXCLUDED.ceccjLct */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_7 AFTER INSERT ON ContentEntryParentChildJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 7 AS chTableId, NEW.cepcjUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 7 AND chEntityPk = NEW.cepcjUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_7 AFTER UPDATE ON ContentEntryParentChildJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 7 AS chTableId, NEW.cepcjUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 7 AND chEntityPk = NEW.cepcjUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_7 AFTER DELETE ON ContentEntryParentChildJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 7 AS chTableId, OLD.cepcjUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 7 AND chEntityPk = OLD.cepcjUid); END "),t.add_11rb$("CREATE VIEW ContentEntryParentChildJoin_ReceiveView AS SELECT ContentEntryParentChildJoin.*, ContentEntryParentChildJoinReplicate.* FROM ContentEntryParentChildJoin LEFT JOIN ContentEntryParentChildJoinReplicate ON ContentEntryParentChildJoinReplicate.cepcjPk = ContentEntryParentChildJoin.cepcjUid "),t.add_11rb$(" CREATE TRIGGER contententryparentchildjoin_remote_insert_ins INSTEAD OF INSERT ON ContentEntryParentChildJoin_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ContentEntryParentChildJoin(cepcjParentContentEntryUid, cepcjChildContentEntryUid, childIndex, cepcjUid, cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum, cepcjLastChangedBy, cepcjLct) VALUES (NEW.cepcjParentContentEntryUid, NEW.cepcjChildContentEntryUid, NEW.childIndex, NEW.cepcjUid, NEW.cepcjLocalChangeSeqNum, NEW.cepcjMasterChangeSeqNum, NEW.cepcjLastChangedBy, NEW.cepcjLct) /*psql ON CONFLICT (cepcjUid) DO UPDATE SET cepcjParentContentEntryUid = EXCLUDED.cepcjParentContentEntryUid, cepcjChildContentEntryUid = EXCLUDED.cepcjChildContentEntryUid, childIndex = EXCLUDED.childIndex, cepcjLocalChangeSeqNum = EXCLUDED.cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum = EXCLUDED.cepcjMasterChangeSeqNum, cepcjLastChangedBy = EXCLUDED.cepcjLastChangedBy, cepcjLct = EXCLUDED.cepcjLct */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_8 AFTER INSERT ON ContentEntryRelatedEntryJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 8 AS chTableId, NEW.cerejUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 8 AND chEntityPk = NEW.cerejUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_8 AFTER UPDATE ON ContentEntryRelatedEntryJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 8 AS chTableId, NEW.cerejUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 8 AND chEntityPk = NEW.cerejUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_8 AFTER DELETE ON ContentEntryRelatedEntryJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 8 AS chTableId, OLD.cerejUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 8 AND chEntityPk = OLD.cerejUid); END "),t.add_11rb$("CREATE VIEW ContentEntryRelatedEntryJoin_ReceiveView AS SELECT ContentEntryRelatedEntryJoin.*, ContentEntryRelatedEntryJoinReplicate.* FROM ContentEntryRelatedEntryJoin LEFT JOIN ContentEntryRelatedEntryJoinReplicate ON ContentEntryRelatedEntryJoinReplicate.cerejPk = ContentEntryRelatedEntryJoin.cerejUid "),t.add_11rb$(" CREATE TRIGGER contententryrelatedentryjoin_remote_insert_ins INSTEAD OF INSERT ON ContentEntryRelatedEntryJoin_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ContentEntryRelatedEntryJoin(cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct) VALUES (NEW.cerejUid, NEW.cerejContentEntryUid, NEW.cerejRelatedEntryUid, NEW.cerejLastChangedBy, NEW.relType, NEW.comment, NEW.cerejRelLanguageUid, NEW.cerejLocalChangeSeqNum, NEW.cerejMasterChangeSeqNum, NEW.cerejLct) /*psql ON CONFLICT (cerejUid) DO UPDATE SET cerejContentEntryUid = EXCLUDED.cerejContentEntryUid, cerejRelatedEntryUid = EXCLUDED.cerejRelatedEntryUid, cerejLastChangedBy = EXCLUDED.cerejLastChangedBy, relType = EXCLUDED.relType, comment = EXCLUDED.comment, cerejRelLanguageUid = EXCLUDED.cerejRelLanguageUid, cerejLocalChangeSeqNum = EXCLUDED.cerejLocalChangeSeqNum, cerejMasterChangeSeqNum = EXCLUDED.cerejMasterChangeSeqNum, cerejLct = EXCLUDED.cerejLct */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_2 AFTER INSERT ON ContentCategorySchema BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 2 AS chTableId, NEW.contentCategorySchemaUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 2 AND chEntityPk = NEW.contentCategorySchemaUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_2 AFTER UPDATE ON ContentCategorySchema BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 2 AS chTableId, NEW.contentCategorySchemaUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 2 AND chEntityPk = NEW.contentCategorySchemaUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_2 AFTER DELETE ON ContentCategorySchema BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 2 AS chTableId, OLD.contentCategorySchemaUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 2 AND chEntityPk = OLD.contentCategorySchemaUid); END "),t.add_11rb$("CREATE VIEW ContentCategorySchema_ReceiveView AS SELECT ContentCategorySchema.*, ContentCategorySchemaReplicate.* FROM ContentCategorySchema LEFT JOIN ContentCategorySchemaReplicate ON ContentCategorySchemaReplicate.ccsPk = ContentCategorySchema.contentCategorySchemaUid "),t.add_11rb$(" CREATE TRIGGER contentcategoryschema_remote_insert_ins INSTEAD OF INSERT ON ContentCategorySchema_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ContentCategorySchema(contentCategorySchemaUid, schemaName, schemaUrl, contentCategorySchemaLocalChangeSeqNum, contentCategorySchemaMasterChangeSeqNum, contentCategorySchemaLastChangedBy, contentCategorySchemaLct) VALUES (NEW.contentCategorySchemaUid, NEW.schemaName, NEW.schemaUrl, NEW.contentCategorySchemaLocalChangeSeqNum, NEW.contentCategorySchemaMasterChangeSeqNum, NEW.contentCategorySchemaLastChangedBy, NEW.contentCategorySchemaLct) /*psql ON CONFLICT (contentCategorySchemaUid) DO UPDATE SET schemaName = EXCLUDED.schemaName, schemaUrl = EXCLUDED.schemaUrl, contentCategorySchemaLocalChangeSeqNum = EXCLUDED.contentCategorySchemaLocalChangeSeqNum, contentCategorySchemaMasterChangeSeqNum = EXCLUDED.contentCategorySchemaMasterChangeSeqNum, contentCategorySchemaLastChangedBy = EXCLUDED.contentCategorySchemaLastChangedBy, contentCategorySchemaLct = EXCLUDED.contentCategorySchemaLct */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_1 AFTER INSERT ON ContentCategory BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 1 AS chTableId, NEW.contentCategoryUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 1 AND chEntityPk = NEW.contentCategoryUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_1 AFTER UPDATE ON ContentCategory BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 1 AS chTableId, NEW.contentCategoryUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 1 AND chEntityPk = NEW.contentCategoryUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_1 AFTER DELETE ON ContentCategory BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 1 AS chTableId, OLD.contentCategoryUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 1 AND chEntityPk = OLD.contentCategoryUid); END "),t.add_11rb$("CREATE VIEW ContentCategory_ReceiveView AS SELECT ContentCategory.*, ContentCategoryReplicate.* FROM ContentCategory LEFT JOIN ContentCategoryReplicate ON ContentCategoryReplicate.ccPk = ContentCategory.contentCategoryUid "),t.add_11rb$(" CREATE TRIGGER contentcategory_remote_insert_ins INSTEAD OF INSERT ON ContentCategory_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ContentCategory(contentCategoryUid, ctnCatContentCategorySchemaUid, name, contentCategoryLocalChangeSeqNum, contentCategoryMasterChangeSeqNum, contentCategoryLastChangedBy, contentCategoryLct) VALUES (NEW.contentCategoryUid, NEW.ctnCatContentCategorySchemaUid, NEW.name, NEW.contentCategoryLocalChangeSeqNum, NEW.contentCategoryMasterChangeSeqNum, NEW.contentCategoryLastChangedBy, NEW.contentCategoryLct) /*psql ON CONFLICT (contentCategoryUid) DO UPDATE SET ctnCatContentCategorySchemaUid = EXCLUDED.ctnCatContentCategorySchemaUid, name = EXCLUDED.name, contentCategoryLocalChangeSeqNum = EXCLUDED.contentCategoryLocalChangeSeqNum, contentCategoryMasterChangeSeqNum = EXCLUDED.contentCategoryMasterChangeSeqNum, contentCategoryLastChangedBy = EXCLUDED.contentCategoryLastChangedBy, contentCategoryLct = EXCLUDED.contentCategoryLct */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_13 AFTER INSERT ON Language BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 13 AS chTableId, NEW.langUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 13 AND chEntityPk = NEW.langUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_13 AFTER UPDATE ON Language BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 13 AS chTableId, NEW.langUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 13 AND chEntityPk = NEW.langUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_13 AFTER DELETE ON Language BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 13 AS chTableId, OLD.langUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 13 AND chEntityPk = OLD.langUid); END "),t.add_11rb$("CREATE VIEW Language_ReceiveView AS SELECT Language.*, LanguageReplicate.* FROM Language LEFT JOIN LanguageReplicate ON LanguageReplicate.languagePk = Language.langUid "),t.add_11rb$(" CREATE TRIGGER language_remote_insert_ins INSTEAD OF INSERT ON Language_ReceiveView FOR EACH ROW BEGIN REPLACE INTO Language(langUid, name, iso_639_1_standard, iso_639_2_standard, iso_639_3_standard, Language_Type, languageActive, langLocalChangeSeqNum, langMasterChangeSeqNum, langLastChangedBy, langLct) VALUES (NEW.langUid, NEW.name, NEW.iso_639_1_standard, NEW.iso_639_2_standard, NEW.iso_639_3_standard, NEW.Language_Type, NEW.languageActive, NEW.langLocalChangeSeqNum, NEW.langMasterChangeSeqNum, NEW.langLastChangedBy, NEW.langLct) /*psql ON CONFLICT (langUid) DO UPDATE SET name = EXCLUDED.name, iso_639_1_standard = EXCLUDED.iso_639_1_standard, iso_639_2_standard = EXCLUDED.iso_639_2_standard, iso_639_3_standard = EXCLUDED.iso_639_3_standard, Language_Type = EXCLUDED.Language_Type, languageActive = EXCLUDED.languageActive, langLocalChangeSeqNum = EXCLUDED.langLocalChangeSeqNum, langMasterChangeSeqNum = EXCLUDED.langMasterChangeSeqNum, langLastChangedBy = EXCLUDED.langLastChangedBy, langLct = EXCLUDED.langLct */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_10 AFTER INSERT ON LanguageVariant BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 10 AS chTableId, NEW.langVariantUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 10 AND chEntityPk = NEW.langVariantUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_10 AFTER UPDATE ON LanguageVariant BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 10 AS chTableId, NEW.langVariantUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 10 AND chEntityPk = NEW.langVariantUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_10 AFTER DELETE ON LanguageVariant BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 10 AS chTableId, OLD.langVariantUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 10 AND chEntityPk = OLD.langVariantUid); END "),t.add_11rb$("CREATE VIEW LanguageVariant_ReceiveView AS SELECT LanguageVariant.*, LanguageVariantReplicate.* FROM LanguageVariant LEFT JOIN LanguageVariantReplicate ON LanguageVariantReplicate.lvPk = LanguageVariant.langVariantUid "),t.add_11rb$(" CREATE TRIGGER languagevariant_remote_insert_ins INSTEAD OF INSERT ON LanguageVariant_ReceiveView FOR EACH ROW BEGIN REPLACE INTO LanguageVariant(langVariantUid, langUid, countryCode, name, langVariantLocalChangeSeqNum, langVariantMasterChangeSeqNum, langVariantLastChangedBy, langVariantLct) VALUES (NEW.langVariantUid, NEW.langUid, NEW.countryCode, NEW.name, NEW.langVariantLocalChangeSeqNum, NEW.langVariantMasterChangeSeqNum, NEW.langVariantLastChangedBy, NEW.langVariantLct) /*psql ON CONFLICT (langVariantUid) DO UPDATE SET langUid = EXCLUDED.langUid, countryCode = EXCLUDED.countryCode, name = EXCLUDED.name, langVariantLocalChangeSeqNum = EXCLUDED.langVariantLocalChangeSeqNum, langVariantMasterChangeSeqNum = EXCLUDED.langVariantMasterChangeSeqNum, langVariantLastChangedBy = EXCLUDED.langVariantLastChangedBy, langVariantLct = EXCLUDED.langVariantLct */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_43 AFTER INSERT ON PersonGroup BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 43 AS chTableId, NEW.groupUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 43 AND chEntityPk = NEW.groupUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_43 AFTER UPDATE ON PersonGroup BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 43 AS chTableId, NEW.groupUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 43 AND chEntityPk = NEW.groupUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_43 AFTER DELETE ON PersonGroup BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 43 AS chTableId, OLD.groupUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 43 AND chEntityPk = OLD.groupUid); END "),t.add_11rb$("CREATE VIEW PersonGroup_ReceiveView AS SELECT PersonGroup.*, PersonGroupReplicate.* FROM PersonGroup LEFT JOIN PersonGroupReplicate ON PersonGroupReplicate.pgPk = PersonGroup.groupUid "),t.add_11rb$(" CREATE TRIGGER persongroup_remote_insert_ins INSTEAD OF INSERT ON PersonGroup_ReceiveView FOR EACH ROW BEGIN REPLACE INTO PersonGroup(groupUid, groupMasterCsn, groupLocalCsn, groupLastChangedBy, groupLct, groupName, groupActive, personGroupFlag) VALUES (NEW.groupUid, NEW.groupMasterCsn, NEW.groupLocalCsn, NEW.groupLastChangedBy, NEW.groupLct, NEW.groupName, NEW.groupActive, NEW.personGroupFlag) /*psql ON CONFLICT (groupUid) DO UPDATE SET groupMasterCsn = EXCLUDED.groupMasterCsn, groupLocalCsn = EXCLUDED.groupLocalCsn, groupLastChangedBy = EXCLUDED.groupLastChangedBy, groupLct = EXCLUDED.groupLct, groupName = EXCLUDED.groupName, groupActive = EXCLUDED.groupActive, personGroupFlag = EXCLUDED.personGroupFlag */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_44 AFTER INSERT ON PersonGroupMember BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 44 AS chTableId, NEW.groupMemberUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 44 AND chEntityPk = NEW.groupMemberUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_44 AFTER UPDATE ON PersonGroupMember BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 44 AS chTableId, NEW.groupMemberUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 44 AND chEntityPk = NEW.groupMemberUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_44 AFTER DELETE ON PersonGroupMember BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 44 AS chTableId, OLD.groupMemberUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 44 AND chEntityPk = OLD.groupMemberUid); END "),t.add_11rb$("CREATE VIEW PersonGroupMember_ReceiveView AS SELECT PersonGroupMember.*, PersonGroupMemberReplicate.* FROM PersonGroupMember LEFT JOIN PersonGroupMemberReplicate ON PersonGroupMemberReplicate.pgmPk = PersonGroupMember.groupMemberUid "),t.add_11rb$(" CREATE TRIGGER persongroupmember_remote_insert_ins INSTEAD OF INSERT ON PersonGroupMember_ReceiveView FOR EACH ROW BEGIN REPLACE INTO PersonGroupMember(groupMemberUid, groupMemberActive, groupMemberPersonUid, groupMemberGroupUid, groupMemberMasterCsn, groupMemberLocalCsn, groupMemberLastChangedBy, groupMemberLct) VALUES (NEW.groupMemberUid, NEW.groupMemberActive, NEW.groupMemberPersonUid, NEW.groupMemberGroupUid, NEW.groupMemberMasterCsn, NEW.groupMemberLocalCsn, NEW.groupMemberLastChangedBy, NEW.groupMemberLct) /*psql ON CONFLICT (groupMemberUid) DO UPDATE SET groupMemberActive = EXCLUDED.groupMemberActive, groupMemberPersonUid = EXCLUDED.groupMemberPersonUid, groupMemberGroupUid = EXCLUDED.groupMemberGroupUid, groupMemberMasterCsn = EXCLUDED.groupMemberMasterCsn, groupMemberLocalCsn = EXCLUDED.groupMemberLocalCsn, groupMemberLastChangedBy = EXCLUDED.groupMemberLastChangedBy, groupMemberLct = EXCLUDED.groupMemberLct */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_50 AFTER INSERT ON PersonPicture BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 50 AS chTableId, NEW.personPictureUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 50 AND chEntityPk = NEW.personPictureUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_50 AFTER UPDATE ON PersonPicture BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 50 AS chTableId, NEW.personPictureUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 50 AND chEntityPk = NEW.personPictureUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_50 AFTER DELETE ON PersonPicture BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 50 AS chTableId, OLD.personPictureUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 50 AND chEntityPk = OLD.personPictureUid); END "),t.add_11rb$("CREATE VIEW PersonPicture_ReceiveView AS SELECT PersonPicture.*, PersonPictureReplicate.* FROM PersonPicture LEFT JOIN PersonPictureReplicate ON PersonPictureReplicate.ppPk = PersonPicture.personPictureUid "),t.add_11rb$(" CREATE TRIGGER personpicture_remote_insert_ins INSTEAD OF INSERT ON PersonPicture_ReceiveView FOR EACH ROW BEGIN REPLACE INTO PersonPicture(personPictureUid, personPicturePersonUid, personPictureMasterCsn, personPictureLocalCsn, personPictureLastChangedBy, personPictureLct, personPictureUri, personPictureMd5, fileSize, picTimestamp, mimeType, personPictureActive) VALUES (NEW.personPictureUid, NEW.personPicturePersonUid, NEW.personPictureMasterCsn, NEW.personPictureLocalCsn, NEW.personPictureLastChangedBy, NEW.personPictureLct, NEW.personPictureUri, NEW.personPictureMd5, NEW.fileSize, NEW.picTimestamp, NEW.mimeType, NEW.personPictureActive) /*psql ON CONFLICT (personPictureUid) DO UPDATE SET personPicturePersonUid = EXCLUDED.personPicturePersonUid, personPictureMasterCsn = EXCLUDED.personPictureMasterCsn, personPictureLocalCsn = EXCLUDED.personPictureLocalCsn, personPictureLastChangedBy = EXCLUDED.personPictureLastChangedBy, personPictureLct = EXCLUDED.personPictureLct, personPictureUri = EXCLUDED.personPictureUri, personPictureMd5 = EXCLUDED.personPictureMd5, fileSize = EXCLUDED.fileSize, picTimestamp = EXCLUDED.picTimestamp, mimeType = EXCLUDED.mimeType, personPictureActive = EXCLUDED.personPictureActive */; END ");var e=S("\n |\n | CREATE TRIGGER ATTUPD_PersonPicture\n | AFTER UPDATE ON PersonPicture FOR EACH ROW WHEN\n | OLD.personPictureMd5 IS NOT NULL\n | BEGIN\n | \n | INSERT INTO ZombieAttachmentData(zaUri) \n | SELECT OLD.personPictureUri AS zaUri\n | FROM PersonPicture \n | WHERE PersonPicture.personPictureUid = OLD.personPictureUid\n | AND (SELECT COUNT(*) \n | FROM PersonPicture\n | WHERE personPictureMd5 = OLD.personPictureMd5) = 0\n | ; \n | END\n | \n ");t.add_11rb$(e),t.add_11rb$(" CREATE TRIGGER ch_ins_51 AFTER INSERT ON Container BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 51 AS chTableId, NEW.containerUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 51 AND chEntityPk = NEW.containerUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_51 AFTER UPDATE ON Container BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 51 AS chTableId, NEW.containerUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 51 AND chEntityPk = NEW.containerUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_51 AFTER DELETE ON Container BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 51 AS chTableId, OLD.containerUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 51 AND chEntityPk = OLD.containerUid); END "),t.add_11rb$("CREATE VIEW Container_ReceiveView AS SELECT Container.*, ContainerReplicate.* FROM Container LEFT JOIN ContainerReplicate ON ContainerReplicate.containerPk = Container.containerUid "),t.add_11rb$(" CREATE TRIGGER container_remote_insert_ins INSTEAD OF INSERT ON Container_ReceiveView FOR EACH ROW BEGIN REPLACE INTO Container(containerUid, cntLocalCsn, cntMasterCsn, cntLastModBy, cntLct, fileSize, containerContentEntryUid, cntLastModified, mimeType, remarks, mobileOptimized, cntNumEntries) SELECT NEW.containerUid, NEW.cntLocalCsn, NEW.cntMasterCsn, NEW.cntLastModBy, NEW.cntLct, NEW.fileSize, NEW.containerContentEntryUid, NEW.cntLastModified, NEW.mimeType, NEW.remarks, NEW.mobileOptimized, NEW.cntNumEntries WHERE NEW.cntLct > (SELECT COALESCE( (SELECT ContainerInt.cntLct FROM Container ContainerInt WHERE ContainerInt.containerUid = NEW.containerUid), 0)) /*psql ON CONFLICT (containerUid) DO UPDATE SET cntLocalCsn = EXCLUDED.cntLocalCsn, cntMasterCsn = EXCLUDED.cntMasterCsn, cntLastModBy = EXCLUDED.cntLastModBy, cntLct = EXCLUDED.cntLct, fileSize = EXCLUDED.fileSize, containerContentEntryUid = EXCLUDED.containerContentEntryUid, cntLastModified = EXCLUDED.cntLastModified, mimeType = EXCLUDED.mimeType, remarks = EXCLUDED.remarks, mobileOptimized = EXCLUDED.mobileOptimized, cntNumEntries = EXCLUDED.cntNumEntries */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_62 AFTER INSERT ON VerbEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 62 AS chTableId, NEW.verbUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 62 AND chEntityPk = NEW.verbUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_62 AFTER UPDATE ON VerbEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 62 AS chTableId, NEW.verbUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 62 AND chEntityPk = NEW.verbUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_62 AFTER DELETE ON VerbEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 62 AS chTableId, OLD.verbUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 62 AND chEntityPk = OLD.verbUid); END "),t.add_11rb$("CREATE VIEW VerbEntity_ReceiveView AS SELECT VerbEntity.*, VerbEntityReplicate.* FROM VerbEntity LEFT JOIN VerbEntityReplicate ON VerbEntityReplicate.vePk = VerbEntity.verbUid "),t.add_11rb$(" CREATE TRIGGER verbentity_remote_insert_ins INSTEAD OF INSERT ON VerbEntity_ReceiveView FOR EACH ROW BEGIN REPLACE INTO VerbEntity(verbUid, urlId, verbInActive, verbMasterChangeSeqNum, verbLocalChangeSeqNum, verbLastChangedBy, verbLct) VALUES (NEW.verbUid, NEW.urlId, NEW.verbInActive, NEW.verbMasterChangeSeqNum, NEW.verbLocalChangeSeqNum, NEW.verbLastChangedBy, NEW.verbLct) /*psql ON CONFLICT (verbUid) DO UPDATE SET urlId = EXCLUDED.urlId, verbInActive = EXCLUDED.verbInActive, verbMasterChangeSeqNum = EXCLUDED.verbMasterChangeSeqNum, verbLocalChangeSeqNum = EXCLUDED.verbLocalChangeSeqNum, verbLastChangedBy = EXCLUDED.verbLastChangedBy, verbLct = EXCLUDED.verbLct */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_64 AFTER INSERT ON XObjectEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 64 AS chTableId, NEW.xObjectUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 64 AND chEntityPk = NEW.xObjectUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_64 AFTER UPDATE ON XObjectEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 64 AS chTableId, NEW.xObjectUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 64 AND chEntityPk = NEW.xObjectUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_64 AFTER DELETE ON XObjectEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 64 AS chTableId, OLD.xObjectUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 64 AND chEntityPk = OLD.xObjectUid); END "),t.add_11rb$("CREATE VIEW XObjectEntity_ReceiveView AS SELECT XObjectEntity.*, XObjectEntityReplicate.* FROM XObjectEntity LEFT JOIN XObjectEntityReplicate ON XObjectEntityReplicate.xoePk = XObjectEntity.xObjectUid "),t.add_11rb$(" CREATE TRIGGER xobjectentity_remote_insert_ins INSTEAD OF INSERT ON XObjectEntity_ReceiveView FOR EACH ROW BEGIN REPLACE INTO XObjectEntity(xObjectUid, objectType, objectId, definitionType, interactionType, correctResponsePattern, objectContentEntryUid, objectStatementRefUid, xObjectMasterChangeSeqNum, xObjectocalChangeSeqNum, xObjectLastChangedBy, xObjectLct) VALUES (NEW.xObjectUid, NEW.objectType, NEW.objectId, NEW.definitionType, NEW.interactionType, NEW.correctResponsePattern, NEW.objectContentEntryUid, NEW.objectStatementRefUid, NEW.xObjectMasterChangeSeqNum, NEW.xObjectocalChangeSeqNum, NEW.xObjectLastChangedBy, NEW.xObjectLct) /*psql ON CONFLICT (xObjectUid) DO UPDATE SET objectType = EXCLUDED.objectType, objectId = EXCLUDED.objectId, definitionType = EXCLUDED.definitionType, interactionType = EXCLUDED.interactionType, correctResponsePattern = EXCLUDED.correctResponsePattern, objectContentEntryUid = EXCLUDED.objectContentEntryUid,objectStatementRefUid = EXCLUDED.objectStatementRefUid, xObjectMasterChangeSeqNum = EXCLUDED.xObjectMasterChangeSeqNum, xObjectocalChangeSeqNum = EXCLUDED.xObjectocalChangeSeqNum, xObjectLastChangedBy = EXCLUDED.xObjectLastChangedBy, xObjectLct = EXCLUDED.xObjectLct */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_60 AFTER INSERT ON StatementEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 60 AS chTableId, NEW.statementUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 60 AND chEntityPk = NEW.statementUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_60 AFTER UPDATE ON StatementEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 60 AS chTableId, NEW.statementUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 60 AND chEntityPk = NEW.statementUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_60 AFTER DELETE ON StatementEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 60 AS chTableId, OLD.statementUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 60 AND chEntityPk = OLD.statementUid); END "),t.add_11rb$("CREATE VIEW StatementEntity_ReceiveView AS SELECT StatementEntity.*, StatementEntityReplicate.* FROM StatementEntity LEFT JOIN StatementEntityReplicate ON StatementEntityReplicate.sePk = StatementEntity.statementUid "),t.add_11rb$(" CREATE TRIGGER statemententity_remote_insert_ins INSTEAD OF INSERT ON StatementEntity_ReceiveView FOR EACH ROW BEGIN REPLACE INTO StatementEntity(statementUid, statementId, statementPersonUid, statementVerbUid, xObjectUid, subStatementActorUid, substatementVerbUid, subStatementObjectUid, agentUid, instructorUid, authorityUid, teamUid, resultCompletion, resultSuccess, resultScoreScaled, resultScoreRaw, resultScoreMin, resultScoreMax, resultDuration, resultResponse, timestamp, stored, contextRegistration, contextPlatform, contextStatementId, fullStatement, statementMasterChangeSeqNum, statementLocalChangeSeqNum, statementLastChangedBy, statementLct, extensionProgress, contentEntryRoot, statementContentEntryUid, statementLearnerGroupUid, statementClazzUid) VALUES (NEW.statementUid, NEW.statementId, NEW.statementPersonUid, NEW.statementVerbUid, NEW.xObjectUid, NEW.subStatementActorUid, NEW.substatementVerbUid, NEW.subStatementObjectUid, NEW.agentUid, NEW.instructorUid, NEW.authorityUid, NEW.teamUid, NEW.resultCompletion, NEW.resultSuccess, NEW.resultScoreScaled, NEW.resultScoreRaw, NEW.resultScoreMin, NEW.resultScoreMax, NEW.resultDuration, NEW.resultResponse, NEW.timestamp, NEW.stored, NEW.contextRegistration, NEW.contextPlatform, NEW.contextStatementId, NEW.fullStatement, NEW.statementMasterChangeSeqNum, NEW.statementLocalChangeSeqNum, NEW.statementLastChangedBy, NEW.statementLct, NEW.extensionProgress, NEW.contentEntryRoot, NEW.statementContentEntryUid, NEW.statementLearnerGroupUid, NEW.statementClazzUid) /*psql ON CONFLICT (statementUid) DO UPDATE SET statementId = EXCLUDED.statementId, statementPersonUid = EXCLUDED.statementPersonUid, statementVerbUid = EXCLUDED.statementVerbUid, xObjectUid = EXCLUDED.xObjectUid, subStatementActorUid = EXCLUDED.subStatementActorUid, substatementVerbUid = EXCLUDED.substatementVerbUid, subStatementObjectUid = EXCLUDED.subStatementObjectUid, agentUid = EXCLUDED.agentUid, instructorUid = EXCLUDED.instructorUid, authorityUid = EXCLUDED.authorityUid, teamUid = EXCLUDED.teamUid, resultCompletion = EXCLUDED.resultCompletion, resultSuccess = EXCLUDED.resultSuccess, resultScoreScaled = EXCLUDED.resultScoreScaled, resultScoreRaw = EXCLUDED.resultScoreRaw, resultScoreMin = EXCLUDED.resultScoreMin, resultScoreMax = EXCLUDED.resultScoreMax, resultDuration = EXCLUDED.resultDuration, resultResponse = EXCLUDED.resultResponse, timestamp = EXCLUDED.timestamp, stored = EXCLUDED.stored, contextRegistration = EXCLUDED.contextRegistration, contextPlatform = EXCLUDED.contextPlatform, contextStatementId = EXCLUDED.contextStatementId, fullStatement = EXCLUDED.fullStatement, statementMasterChangeSeqNum = EXCLUDED.statementMasterChangeSeqNum, statementLocalChangeSeqNum = EXCLUDED.statementLocalChangeSeqNum, statementLastChangedBy = EXCLUDED.statementLastChangedBy, statementLct = EXCLUDED.statementLct, extensionProgress = EXCLUDED.extensionProgress, contentEntryRoot = EXCLUDED.contentEntryRoot, statementContentEntryUid = EXCLUDED.statementContentEntryUid, statementLearnerGroupUid = EXCLUDED.statementLearnerGroupUid, statementClazzUid = EXCLUDED.statementClazzUid */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_66 AFTER INSERT ON ContextXObjectStatementJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 66 AS chTableId, NEW.contextXObjectStatementJoinUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 66 AND chEntityPk = NEW.contextXObjectStatementJoinUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_66 AFTER UPDATE ON ContextXObjectStatementJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 66 AS chTableId, NEW.contextXObjectStatementJoinUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 66 AND chEntityPk = NEW.contextXObjectStatementJoinUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_66 AFTER DELETE ON ContextXObjectStatementJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 66 AS chTableId, OLD.contextXObjectStatementJoinUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 66 AND chEntityPk = OLD.contextXObjectStatementJoinUid); END "),t.add_11rb$("CREATE VIEW ContextXObjectStatementJoin_ReceiveView AS SELECT ContextXObjectStatementJoin.*, ContextXObjectStatementJoinReplicate.* FROM ContextXObjectStatementJoin LEFT JOIN ContextXObjectStatementJoinReplicate ON ContextXObjectStatementJoinReplicate.cxosjPk = ContextXObjectStatementJoin.contextXObjectStatementJoinUid "),t.add_11rb$(" CREATE TRIGGER contextxobjectstatementjoin_remote_insert_ins INSTEAD OF INSERT ON ContextXObjectStatementJoin_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ContextXObjectStatementJoin(contextXObjectStatementJoinUid, contextActivityFlag, contextStatementUid, contextXObjectUid, verbMasterChangeSeqNum, verbLocalChangeSeqNum, verbLastChangedBy, contextXObjectLct) VALUES (NEW.contextXObjectStatementJoinUid, NEW.contextActivityFlag, NEW.contextStatementUid, NEW.contextXObjectUid, NEW.verbMasterChangeSeqNum, NEW.verbLocalChangeSeqNum, NEW.verbLastChangedBy, NEW.contextXObjectLct) /*psql ON CONFLICT (contextXObjectStatementJoinUid) DO UPDATE SET contextActivityFlag = EXCLUDED.contextActivityFlag, contextStatementUid = EXCLUDED.contextStatementUid, contextXObjectUid = EXCLUDED.contextXObjectUid, verbMasterChangeSeqNum = EXCLUDED.verbMasterChangeSeqNum, verbLocalChangeSeqNum = EXCLUDED.verbLocalChangeSeqNum, verbLastChangedBy = EXCLUDED.verbLastChangedBy, contextXObjectLct = EXCLUDED.contextXObjectLct */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_68 AFTER INSERT ON AgentEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 68 AS chTableId, NEW.agentUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 68 AND chEntityPk = NEW.agentUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_68 AFTER UPDATE ON AgentEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 68 AS chTableId, NEW.agentUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 68 AND chEntityPk = NEW.agentUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_68 AFTER DELETE ON AgentEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 68 AS chTableId, OLD.agentUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 68 AND chEntityPk = OLD.agentUid); END "),t.add_11rb$("CREATE VIEW AgentEntity_ReceiveView AS SELECT AgentEntity.*, AgentEntityReplicate.* FROM AgentEntity LEFT JOIN AgentEntityReplicate ON AgentEntityReplicate.aePk = AgentEntity.agentUid "),t.add_11rb$(" CREATE TRIGGER agententity_remote_insert_ins INSTEAD OF INSERT ON AgentEntity_ReceiveView FOR EACH ROW BEGIN REPLACE INTO AgentEntity(agentUid, agentMbox, agentMbox_sha1sum, agentOpenid, agentAccountName, agentHomePage, agentPersonUid, statementMasterChangeSeqNum, statementLocalChangeSeqNum, statementLastChangedBy, agentLct) VALUES (NEW.agentUid, NEW.agentMbox, NEW.agentMbox_sha1sum, NEW.agentOpenid, NEW.agentAccountName, NEW.agentHomePage, NEW.agentPersonUid, NEW.statementMasterChangeSeqNum, NEW.statementLocalChangeSeqNum, NEW.statementLastChangedBy, NEW.agentLct) /*psql ON CONFLICT (agentUid) DO UPDATE SET agentMbox = EXCLUDED.agentMbox, agentMbox_sha1sum = EXCLUDED.agentMbox_sha1sum, agentOpenid = EXCLUDED.agentOpenid, agentAccountName = EXCLUDED.agentAccountName, agentHomePage = EXCLUDED.agentHomePage, agentPersonUid = EXCLUDED.agentPersonUid, statementMasterChangeSeqNum = EXCLUDED.statementMasterChangeSeqNum, statementLocalChangeSeqNum = EXCLUDED.statementLocalChangeSeqNum, statementLastChangedBy = EXCLUDED.statementLastChangedBy, agentLct = EXCLUDED.agentLct*/; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_70 AFTER INSERT ON StateEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 70 AS chTableId, NEW.stateUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 70 AND chEntityPk = NEW.stateUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_70 AFTER UPDATE ON StateEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 70 AS chTableId, NEW.stateUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 70 AND chEntityPk = NEW.stateUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_70 AFTER DELETE ON StateEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 70 AS chTableId, OLD.stateUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 70 AND chEntityPk = OLD.stateUid); END "),t.add_11rb$("CREATE VIEW StateEntity_ReceiveView AS SELECT StateEntity.*, StateEntityReplicate.* FROM StateEntity LEFT JOIN StateEntityReplicate ON StateEntityReplicate.sePk = StateEntity.stateUid "),t.add_11rb$(" CREATE TRIGGER stateentity_remote_insert_ins INSTEAD OF INSERT ON StateEntity_ReceiveView FOR EACH ROW BEGIN REPLACE INTO StateEntity(stateUid, stateId, agentUid, activityId, registration, isIsactive, timestamp, stateMasterChangeSeqNum, stateLocalChangeSeqNum, stateLastChangedBy, stateLct) VALUES (NEW.stateUid, NEW.stateId, NEW.agentUid, NEW.activityId, NEW.registration, NEW.isIsactive, NEW.timestamp, NEW.stateMasterChangeSeqNum, NEW.stateLocalChangeSeqNum, NEW.stateLastChangedBy, NEW.stateLct) /*psql ON CONFLICT (stateUid) DO UPDATE SET stateId = EXCLUDED.stateId, agentUid = EXCLUDED.agentUid, activityId = EXCLUDED.activityId, registration = EXCLUDED.registration, isIsactive = EXCLUDED.isIsactive, timestamp = EXCLUDED.timestamp, stateMasterChangeSeqNum = EXCLUDED.stateMasterChangeSeqNum, stateLocalChangeSeqNum = EXCLUDED.stateLocalChangeSeqNum, stateLastChangedBy = EXCLUDED.stateLastChangedBy, stateLct = EXCLUDED.stateLct */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_72 AFTER INSERT ON StateContentEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 72 AS chTableId, NEW.stateContentUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 72 AND chEntityPk = NEW.stateContentUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_72 AFTER UPDATE ON StateContentEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 72 AS chTableId, NEW.stateContentUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 72 AND chEntityPk = NEW.stateContentUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_72 AFTER DELETE ON StateContentEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 72 AS chTableId, OLD.stateContentUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 72 AND chEntityPk = OLD.stateContentUid); END "),t.add_11rb$("CREATE VIEW StateContentEntity_ReceiveView AS SELECT StateContentEntity.*, StateContentEntityReplicate.* FROM StateContentEntity LEFT JOIN StateContentEntityReplicate ON StateContentEntityReplicate.scePk = StateContentEntity.stateContentUid "),t.add_11rb$(" CREATE TRIGGER statecontententity_remote_insert_ins INSTEAD OF INSERT ON StateContentEntity_ReceiveView FOR EACH ROW BEGIN REPLACE INTO StateContentEntity(stateContentUid, stateContentStateUid, stateContentKey, stateContentValue, isIsactive, stateContentMasterChangeSeqNum, stateContentLocalChangeSeqNum, stateContentLastChangedBy, stateContentLct) VALUES (NEW.stateContentUid, NEW.stateContentStateUid, NEW.stateContentKey, NEW.stateContentValue, NEW.isIsactive, NEW.stateContentMasterChangeSeqNum, NEW.stateContentLocalChangeSeqNum, NEW.stateContentLastChangedBy, NEW.stateContentLct) /*psql ON CONFLICT (stateContentUid) DO UPDATE SET stateContentStateUid = EXCLUDED.stateContentStateUid, stateContentKey = EXCLUDED.stateContentKey, stateContentValue = EXCLUDED.stateContentValue, isIsactive = EXCLUDED.isIsactive, stateContentMasterChangeSeqNum = EXCLUDED.stateContentMasterChangeSeqNum, stateContentLocalChangeSeqNum = EXCLUDED.stateContentLocalChangeSeqNum, stateContentLastChangedBy = EXCLUDED.stateContentLastChangedBy, stateContentLct = EXCLUDED.stateContentLct */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_74 AFTER INSERT ON XLangMapEntry BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 74 AS chTableId, NEW.statementLangMapUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 74 AND chEntityPk = NEW.statementLangMapUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_74 AFTER UPDATE ON XLangMapEntry BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 74 AS chTableId, NEW.statementLangMapUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 74 AND chEntityPk = NEW.statementLangMapUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_74 AFTER DELETE ON XLangMapEntry BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 74 AS chTableId, OLD.statementLangMapUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 74 AND chEntityPk = OLD.statementLangMapUid); END "),t.add_11rb$("CREATE VIEW XLangMapEntry_ReceiveView AS SELECT XLangMapEntry.*, XLangMapEntryReplicate.* FROM XLangMapEntry LEFT JOIN XLangMapEntryReplicate ON XLangMapEntryReplicate.xlmePk = XLangMapEntry.statementLangMapUid "),t.add_11rb$(" CREATE TRIGGER xlangmapentry_remote_insert_ins INSTEAD OF INSERT ON XLangMapEntry_ReceiveView FOR EACH ROW BEGIN REPLACE INTO XLangMapEntry(verbLangMapUid, objectLangMapUid, languageLangMapUid, languageVariantLangMapUid, valueLangMap, statementLangMapMasterCsn, statementLangMapLocalCsn, statementLangMapLcb, statementLangMapLct, statementLangMapUid) VALUES (NEW.verbLangMapUid, NEW.objectLangMapUid, NEW.languageLangMapUid, NEW.languageVariantLangMapUid, NEW.valueLangMap, NEW.statementLangMapMasterCsn, NEW.statementLangMapLocalCsn, NEW.statementLangMapLcb, NEW.statementLangMapLct, NEW.statementLangMapUid) /*psql ON CONFLICT (statementLangMapUid) DO UPDATE SET verbLangMapUid = EXCLUDED.verbLangMapUid, objectLangMapUid = EXCLUDED.objectLangMapUid, languageLangMapUid = EXCLUDED.languageLangMapUid, languageVariantLangMapUid = EXCLUDED.languageVariantLangMapUid, valueLangMap = EXCLUDED.valueLangMap, statementLangMapMasterCsn = EXCLUDED.statementLangMapMasterCsn, statementLangMapLocalCsn = EXCLUDED.statementLangMapLocalCsn, statementLangMapLcb = EXCLUDED.statementLangMapLcb, statementLangMapLct = EXCLUDED.statementLangMapLct */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_164 AFTER INSERT ON School BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 164 AS chTableId, NEW.schoolUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 164 AND chEntityPk = NEW.schoolUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_164 AFTER UPDATE ON School BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 164 AS chTableId, NEW.schoolUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 164 AND chEntityPk = NEW.schoolUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_164 AFTER DELETE ON School BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 164 AS chTableId, OLD.schoolUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 164 AND chEntityPk = OLD.schoolUid); END "),t.add_11rb$("CREATE VIEW School_ReceiveView AS SELECT School.*, SchoolReplicate.* FROM School LEFT JOIN SchoolReplicate ON SchoolReplicate.schoolPk = School.schoolUid "),t.add_11rb$(" CREATE TRIGGER school_remote_insert_ins INSTEAD OF INSERT ON School_ReceiveView FOR EACH ROW BEGIN REPLACE INTO School(schoolUid, schoolName, schoolDesc, schoolAddress, schoolActive, schoolPhoneNumber, schoolGender, schoolHolidayCalendarUid, schoolFeatures, schoolLocationLong, schoolLocationLatt, schoolEmailAddress, schoolTeachersPersonGroupUid, schoolStudentsPersonGroupUid, schoolPendingStudentsPersonGroupUid, schoolCode, schoolMasterChangeSeqNum, schoolLocalChangeSeqNum, schoolLastChangedBy, schoolLct, schoolTimeZone) VALUES (NEW.schoolUid, NEW.schoolName, NEW.schoolDesc, NEW.schoolAddress, NEW.schoolActive, NEW.schoolPhoneNumber, NEW.schoolGender, NEW.schoolHolidayCalendarUid, NEW.schoolFeatures, NEW.schoolLocationLong, NEW.schoolLocationLatt, NEW.schoolEmailAddress, NEW.schoolTeachersPersonGroupUid, NEW.schoolStudentsPersonGroupUid, NEW.schoolPendingStudentsPersonGroupUid, NEW.schoolCode, NEW.schoolMasterChangeSeqNum, NEW.schoolLocalChangeSeqNum, NEW.schoolLastChangedBy, NEW.schoolLct, NEW.schoolTimeZone) /*psql ON CONFLICT (schoolUid) DO UPDATE SET schoolName = EXCLUDED.schoolName, schoolDesc = EXCLUDED.schoolDesc, schoolAddress = EXCLUDED.schoolAddress, schoolActive = EXCLUDED.schoolActive, schoolPhoneNumber = EXCLUDED.schoolPhoneNumber, schoolGender = EXCLUDED.schoolGender, schoolHolidayCalendarUid = EXCLUDED.schoolHolidayCalendarUid, schoolFeatures = EXCLUDED.schoolFeatures, schoolLocationLong = EXCLUDED.schoolLocationLong, schoolLocationLatt = EXCLUDED.schoolLocationLatt, schoolEmailAddress = EXCLUDED.schoolEmailAddress, schoolTeachersPersonGroupUid = EXCLUDED.schoolTeachersPersonGroupUid, schoolStudentsPersonGroupUid = EXCLUDED.schoolStudentsPersonGroupUid, schoolPendingStudentsPersonGroupUid = EXCLUDED.schoolPendingStudentsPersonGroupUid, schoolCode = EXCLUDED.schoolCode, schoolMasterChangeSeqNum = EXCLUDED.schoolMasterChangeSeqNum, schoolLocalChangeSeqNum = EXCLUDED.schoolLocalChangeSeqNum, schoolLastChangedBy = EXCLUDED.schoolLastChangedBy, schoolLct = EXCLUDED.schoolLct, schoolTimeZone = EXCLUDED.schoolTimeZone */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_200 AFTER INSERT ON SchoolMember BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 200 AS chTableId, NEW.schoolMemberUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 200 AND chEntityPk = NEW.schoolMemberUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_200 AFTER UPDATE ON SchoolMember BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 200 AS chTableId, NEW.schoolMemberUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 200 AND chEntityPk = NEW.schoolMemberUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_200 AFTER DELETE ON SchoolMember BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 200 AS chTableId, OLD.schoolMemberUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 200 AND chEntityPk = OLD.schoolMemberUid); END "),t.add_11rb$("CREATE VIEW SchoolMember_ReceiveView AS SELECT SchoolMember.*, SchoolMemberReplicate.* FROM SchoolMember LEFT JOIN SchoolMemberReplicate ON SchoolMemberReplicate.smPk = SchoolMember.schoolMemberUid "),t.add_11rb$(" CREATE TRIGGER schoolmember_remote_insert_ins INSTEAD OF INSERT ON SchoolMember_ReceiveView FOR EACH ROW BEGIN REPLACE INTO SchoolMember(schoolMemberUid, schoolMemberPersonUid, schoolMemberSchoolUid, schoolMemberJoinDate, schoolMemberLeftDate, schoolMemberRole, schoolMemberActive, schoolMemberLocalChangeSeqNum, schoolMemberMasterChangeSeqNum, schoolMemberLastChangedBy, schoolMemberLct) VALUES (NEW.schoolMemberUid, NEW.schoolMemberPersonUid, NEW.schoolMemberSchoolUid, NEW.schoolMemberJoinDate, NEW.schoolMemberLeftDate, NEW.schoolMemberRole, NEW.schoolMemberActive, NEW.schoolMemberLocalChangeSeqNum, NEW.schoolMemberMasterChangeSeqNum, NEW.schoolMemberLastChangedBy, NEW.schoolMemberLct) /*psql ON CONFLICT (schoolMemberUid) DO UPDATE SET schoolMemberPersonUid = EXCLUDED.schoolMemberPersonUid, schoolMemberSchoolUid = EXCLUDED.schoolMemberSchoolUid, schoolMemberJoinDate = EXCLUDED.schoolMemberJoinDate, schoolMemberLeftDate = EXCLUDED.schoolMemberLeftDate, schoolMemberRole = EXCLUDED.schoolMemberRole, schoolMemberActive = EXCLUDED.schoolMemberActive, schoolMemberLocalChangeSeqNum = EXCLUDED.schoolMemberLocalChangeSeqNum, schoolMemberMasterChangeSeqNum = EXCLUDED.schoolMemberMasterChangeSeqNum, schoolMemberLastChangedBy = EXCLUDED.schoolMemberLastChangedBy, schoolMemberLct = EXCLUDED.schoolMemberLct */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_208 AFTER INSERT ON Comments BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 208 AS chTableId, NEW.commentsUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 208 AND chEntityPk = NEW.commentsUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_208 AFTER UPDATE ON Comments BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 208 AS chTableId, NEW.commentsUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 208 AND chEntityPk = NEW.commentsUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_208 AFTER DELETE ON Comments BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 208 AS chTableId, OLD.commentsUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 208 AND chEntityPk = OLD.commentsUid); END "),t.add_11rb$("CREATE VIEW Comments_ReceiveView AS SELECT Comments.*, CommentsReplicate.* FROM Comments LEFT JOIN CommentsReplicate ON CommentsReplicate.commentsPk = Comments.commentsUid "),t.add_11rb$(" CREATE TRIGGER comments_remote_insert_ins INSTEAD OF INSERT ON Comments_ReceiveView FOR EACH ROW BEGIN REPLACE INTO Comments(commentsUid, commentsText, commentsEntityType, commentsEntityUid, commentsPublic, commentsStatus, commentsPersonUid, commentsToPersonUid, commentSubmitterUid, commentsFlagged, commentsInActive, commentsDateTimeAdded, commentsDateTimeUpdated, commentsMCSN, commentsLCSN, commentsLCB, commentsLct) VALUES (NEW.commentsUid, NEW.commentsText, NEW.commentsEntityType, NEW.commentsEntityUid, NEW.commentsPublic, NEW.commentsStatus, NEW.commentsPersonUid, NEW.commentsToPersonUid, NEW.commentSubmitterUid, NEW.commentsFlagged, NEW.commentsInActive, NEW.commentsDateTimeAdded, NEW.commentsDateTimeUpdated, NEW.commentsMCSN, NEW.commentsLCSN, NEW.commentsLCB, NEW.commentsLct) /*psql ON CONFLICT (commentsUid) DO UPDATE SET commentsText = EXCLUDED.commentsText, commentsEntityType = EXCLUDED.commentsEntityType, commentsEntityUid = EXCLUDED.commentsEntityUid, commentsPublic = EXCLUDED.commentsPublic, commentsStatus = EXCLUDED.commentsStatus, commentsPersonUid = EXCLUDED.commentsPersonUid, commentsToPersonUid = EXCLUDED.commentsToPersonUid, commentSubmitterUid = EXCLUDED.commentSubmitterUid, commentsFlagged = EXCLUDED.commentsFlagged, commentsInActive = EXCLUDED.commentsInActive, commentsDateTimeAdded = EXCLUDED.commentsDateTimeAdded, commentsDateTimeUpdated = EXCLUDED.commentsDateTimeUpdated, commentsMCSN = EXCLUDED.commentsMCSN, commentsLCSN = EXCLUDED.commentsLCSN, commentsLCB = EXCLUDED.commentsLCB, commentsLct = EXCLUDED.commentsLct */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_101 AFTER INSERT ON Report BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 101 AS chTableId, NEW.reportUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 101 AND chEntityPk = NEW.reportUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_101 AFTER UPDATE ON Report BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 101 AS chTableId, NEW.reportUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 101 AND chEntityPk = NEW.reportUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_101 AFTER DELETE ON Report BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 101 AS chTableId, OLD.reportUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 101 AND chEntityPk = OLD.reportUid); END "),t.add_11rb$("CREATE VIEW Report_ReceiveView AS SELECT Report.*, ReportReplicate.* FROM Report LEFT JOIN ReportReplicate ON ReportReplicate.reportPk = Report.reportUid "),t.add_11rb$(" CREATE TRIGGER report_remote_insert_ins INSTEAD OF INSERT ON Report_ReceiveView FOR EACH ROW BEGIN REPLACE INTO Report(reportUid, reportOwnerUid, xAxis, reportDateRangeSelection, fromDate, fromRelTo, fromRelOffSet, fromRelUnit, toDate, toRelTo, toRelOffSet, toRelUnit, reportTitle, reportDescription, reportSeries, reportInactive, isTemplate, priority, reportTitleId, reportDescId, reportMasterChangeSeqNum, reportLocalChangeSeqNum, reportLastChangedBy, reportLct) VALUES (NEW.reportUid, NEW.reportOwnerUid, NEW.xAxis, NEW.reportDateRangeSelection, NEW.fromDate, NEW.fromRelTo, NEW.fromRelOffSet, NEW.fromRelUnit, NEW.toDate, NEW.toRelTo, NEW.toRelOffSet, NEW.toRelUnit, NEW.reportTitle, NEW.reportDescription, NEW.reportSeries, NEW.reportInactive, NEW.isTemplate, NEW.priority, NEW.reportTitleId, NEW.reportDescId, NEW.reportMasterChangeSeqNum, NEW.reportLocalChangeSeqNum, NEW.reportLastChangedBy, NEW.reportLct) /*psql ON CONFLICT (reportUid) DO UPDATE SET reportOwnerUid = EXCLUDED.reportOwnerUid, xAxis = EXCLUDED.xAxis, reportDateRangeSelection = EXCLUDED.reportDateRangeSelection, fromDate = EXCLUDED.fromDate, fromRelTo = EXCLUDED.fromRelTo, fromRelOffSet = EXCLUDED.fromRelOffSet, fromRelUnit = EXCLUDED.fromRelUnit, toDate = EXCLUDED.toDate, toRelTo = EXCLUDED.toRelTo, toRelOffSet = EXCLUDED.toRelOffSet, toRelUnit = EXCLUDED.toRelUnit, reportTitle = EXCLUDED.reportTitle, reportDescription = EXCLUDED.reportDescription, reportSeries = EXCLUDED.reportSeries, reportInactive = EXCLUDED.reportInactive, isTemplate = EXCLUDED.isTemplate, priority = EXCLUDED.priority, reportTitleId = EXCLUDED.reportTitleId, reportDescId = EXCLUDED.reportDescId, reportMasterChangeSeqNum = EXCLUDED.reportMasterChangeSeqNum, reportLocalChangeSeqNum = EXCLUDED.reportLocalChangeSeqNum, reportLastChangedBy = EXCLUDED.reportLastChangedBy, reportLct = EXCLUDED.reportLct */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_189 AFTER INSERT ON Site BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 189 AS chTableId, NEW.siteUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 189 AND chEntityPk = NEW.siteUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_189 AFTER UPDATE ON Site BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 189 AS chTableId, NEW.siteUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 189 AND chEntityPk = NEW.siteUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_189 AFTER DELETE ON Site BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 189 AS chTableId, OLD.siteUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 189 AND chEntityPk = OLD.siteUid); END "),t.add_11rb$("CREATE VIEW Site_ReceiveView AS SELECT Site.*, SiteReplicate.* FROM Site LEFT JOIN SiteReplicate ON SiteReplicate.sitePk = Site.siteUid "),t.add_11rb$(" CREATE TRIGGER site_remote_insert_ins INSTEAD OF INSERT ON Site_ReceiveView FOR EACH ROW BEGIN REPLACE INTO Site(siteUid, sitePcsn, siteLcsn, siteLcb, siteLct, siteName, guestLogin, registrationAllowed, authSalt) VALUES (NEW.siteUid, NEW.sitePcsn, NEW.siteLcsn, NEW.siteLcb, NEW.siteLct, NEW.siteName, NEW.guestLogin, NEW.registrationAllowed, NEW.authSalt) /*psql ON CONFLICT (siteUid) DO UPDATE SET sitePcsn = EXCLUDED.sitePcsn, siteLcsn = EXCLUDED.siteLcsn, siteLcb = EXCLUDED.siteLcb, siteLct = EXCLUDED.siteLct, siteName = EXCLUDED.siteName, guestLogin = EXCLUDED.guestLogin, registrationAllowed = EXCLUDED.registrationAllowed, authSalt = EXCLUDED.authSalt*/; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_301 AFTER INSERT ON LearnerGroup BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 301 AS chTableId, NEW.learnerGroupUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 301 AND chEntityPk = NEW.learnerGroupUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_301 AFTER UPDATE ON LearnerGroup BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 301 AS chTableId, NEW.learnerGroupUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 301 AND chEntityPk = NEW.learnerGroupUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_301 AFTER DELETE ON LearnerGroup BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 301 AS chTableId, OLD.learnerGroupUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 301 AND chEntityPk = OLD.learnerGroupUid); END "),t.add_11rb$("CREATE VIEW LearnerGroup_ReceiveView AS SELECT LearnerGroup.*, LearnerGroupReplicate.* FROM LearnerGroup LEFT JOIN LearnerGroupReplicate ON LearnerGroupReplicate.lgPk = LearnerGroup.learnerGroupUid "),t.add_11rb$(" CREATE TRIGGER learnergroup_remote_insert_ins INSTEAD OF INSERT ON LearnerGroup_ReceiveView FOR EACH ROW BEGIN REPLACE INTO LearnerGroup(learnerGroupUid, learnerGroupName, learnerGroupDescription, learnerGroupActive, learnerGroupMCSN, learnerGroupCSN, learnerGroupLCB, learnerGroupLct) VALUES (NEW.learnerGroupUid, NEW.learnerGroupName, NEW.learnerGroupDescription, NEW.learnerGroupActive, NEW.learnerGroupMCSN, NEW.learnerGroupCSN, NEW.learnerGroupLCB, NEW.learnerGroupLct) /*psql ON CONFLICT (learnerGroupUid) DO UPDATE SET learnerGroupName = EXCLUDED.learnerGroupName, learnerGroupDescription = EXCLUDED.learnerGroupDescription, learnerGroupActive = EXCLUDED.learnerGroupActive, learnerGroupMCSN = EXCLUDED.learnerGroupMCSN, learnerGroupCSN = EXCLUDED.learnerGroupCSN, learnerGroupLCB = EXCLUDED.learnerGroupLCB, learnerGroupLct = EXCLUDED.learnerGroupLct */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_300 AFTER INSERT ON LearnerGroupMember BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 300 AS chTableId, NEW.learnerGroupMemberUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 300 AND chEntityPk = NEW.learnerGroupMemberUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_300 AFTER UPDATE ON LearnerGroupMember BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 300 AS chTableId, NEW.learnerGroupMemberUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 300 AND chEntityPk = NEW.learnerGroupMemberUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_300 AFTER DELETE ON LearnerGroupMember BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 300 AS chTableId, OLD.learnerGroupMemberUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 300 AND chEntityPk = OLD.learnerGroupMemberUid); END "),t.add_11rb$("CREATE VIEW LearnerGroupMember_ReceiveView AS SELECT LearnerGroupMember.*, LearnerGroupMemberReplicate.* FROM LearnerGroupMember LEFT JOIN LearnerGroupMemberReplicate ON LearnerGroupMemberReplicate.lgmPk = LearnerGroupMember.learnerGroupMemberUid "),t.add_11rb$(" CREATE TRIGGER learnergroupmember_remote_insert_ins INSTEAD OF INSERT ON LearnerGroupMember_ReceiveView FOR EACH ROW BEGIN REPLACE INTO LearnerGroupMember(learnerGroupMemberUid, learnerGroupMemberPersonUid, learnerGroupMemberLgUid, learnerGroupMemberRole, learnerGroupMemberActive, learnerGroupMemberMCSN, learnerGroupMemberCSN, learnerGroupMemberLCB, learnerGroupMemberLct) VALUES (NEW.learnerGroupMemberUid, NEW.learnerGroupMemberPersonUid, NEW.learnerGroupMemberLgUid, NEW.learnerGroupMemberRole, NEW.learnerGroupMemberActive, NEW.learnerGroupMemberMCSN, NEW.learnerGroupMemberCSN, NEW.learnerGroupMemberLCB, NEW.learnerGroupMemberLct) /*psql ON CONFLICT (learnerGroupMemberUid) DO UPDATE SET learnerGroupMemberPersonUid = EXCLUDED.learnerGroupMemberPersonUid, learnerGroupMemberLgUid = EXCLUDED.learnerGroupMemberLgUid, learnerGroupMemberRole = EXCLUDED.learnerGroupMemberRole, learnerGroupMemberActive = EXCLUDED.learnerGroupMemberActive, learnerGroupMemberMCSN = EXCLUDED.learnerGroupMemberMCSN, learnerGroupMemberCSN = EXCLUDED.learnerGroupMemberCSN, learnerGroupMemberLCB = EXCLUDED.learnerGroupMemberLCB, learnerGroupMemberLct = EXCLUDED.learnerGroupMemberLct */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_302 AFTER INSERT ON GroupLearningSession BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 302 AS chTableId, NEW.groupLearningSessionUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 302 AND chEntityPk = NEW.groupLearningSessionUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_302 AFTER UPDATE ON GroupLearningSession BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 302 AS chTableId, NEW.groupLearningSessionUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 302 AND chEntityPk = NEW.groupLearningSessionUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_302 AFTER DELETE ON GroupLearningSession BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 302 AS chTableId, OLD.groupLearningSessionUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 302 AND chEntityPk = OLD.groupLearningSessionUid); END "),t.add_11rb$("CREATE VIEW GroupLearningSession_ReceiveView AS SELECT GroupLearningSession.*, GroupLearningSessionReplicate.* FROM GroupLearningSession LEFT JOIN GroupLearningSessionReplicate ON GroupLearningSessionReplicate.glsPk = GroupLearningSession.groupLearningSessionUid "),t.add_11rb$(" CREATE TRIGGER grouplearningsession_remote_insert_ins INSTEAD OF INSERT ON GroupLearningSession_ReceiveView FOR EACH ROW BEGIN REPLACE INTO GroupLearningSession(groupLearningSessionUid, groupLearningSessionContentUid, groupLearningSessionLearnerGroupUid, groupLearningSessionInactive, groupLearningSessionMCSN, groupLearningSessionCSN, groupLearningSessionLCB, groupLearningSessionLct) VALUES (NEW.groupLearningSessionUid, NEW.groupLearningSessionContentUid, NEW.groupLearningSessionLearnerGroupUid, NEW.groupLearningSessionInactive, NEW.groupLearningSessionMCSN, NEW.groupLearningSessionCSN, NEW.groupLearningSessionLCB, NEW.groupLearningSessionLct) /*psql ON CONFLICT (groupLearningSessionUid) DO UPDATE SET groupLearningSessionContentUid = EXCLUDED.groupLearningSessionContentUid, groupLearningSessionLearnerGroupUid = EXCLUDED.groupLearningSessionLearnerGroupUid, groupLearningSessionInactive = EXCLUDED.groupLearningSessionInactive, groupLearningSessionMCSN = EXCLUDED.groupLearningSessionMCSN, groupLearningSessionCSN = EXCLUDED.groupLearningSessionCSN, groupLearningSessionLCB = EXCLUDED.groupLearningSessionLCB, groupLearningSessionLct = EXCLUDED.groupLearningSessionLct */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_272 AFTER INSERT ON SiteTerms BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 272 AS chTableId, NEW.sTermsUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 272 AND chEntityPk = NEW.sTermsUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_272 AFTER UPDATE ON SiteTerms BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 272 AS chTableId, NEW.sTermsUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 272 AND chEntityPk = NEW.sTermsUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_272 AFTER DELETE ON SiteTerms BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 272 AS chTableId, OLD.sTermsUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 272 AND chEntityPk = OLD.sTermsUid); END "),t.add_11rb$("CREATE VIEW SiteTerms_ReceiveView AS SELECT SiteTerms.*, SiteTermsReplicate.* FROM SiteTerms LEFT JOIN SiteTermsReplicate ON SiteTermsReplicate.stPk = SiteTerms.sTermsUid "),t.add_11rb$(" CREATE TRIGGER siteterms_remote_insert_ins INSTEAD OF INSERT ON SiteTerms_ReceiveView FOR EACH ROW BEGIN REPLACE INTO SiteTerms(sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct) VALUES (NEW.sTermsUid, NEW.termsHtml, NEW.sTermsLang, NEW.sTermsLangUid, NEW.sTermsActive, NEW.sTermsLastChangedBy, NEW.sTermsPrimaryCsn, NEW.sTermsLocalCsn, NEW.sTermsLct) /*psql ON CONFLICT (sTermsUid) DO UPDATE SET termsHtml = EXCLUDED.termsHtml, sTermsLang = EXCLUDED.sTermsLang, sTermsLangUid = EXCLUDED.sTermsLangUid, sTermsActive = EXCLUDED.sTermsActive, sTermsLastChangedBy = EXCLUDED.sTermsLastChangedBy, sTermsPrimaryCsn = EXCLUDED.sTermsPrimaryCsn, sTermsLocalCsn = EXCLUDED.sTermsLocalCsn, sTermsLct = EXCLUDED.sTermsLct */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_134 AFTER INSERT ON ClazzContentJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 134 AS chTableId, NEW.ccjUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 134 AND chEntityPk = NEW.ccjUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_134 AFTER UPDATE ON ClazzContentJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 134 AS chTableId, NEW.ccjUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 134 AND chEntityPk = NEW.ccjUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_134 AFTER DELETE ON ClazzContentJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 134 AS chTableId, OLD.ccjUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 134 AND chEntityPk = OLD.ccjUid); END "),t.add_11rb$("CREATE VIEW ClazzContentJoin_ReceiveView AS SELECT ClazzContentJoin.*, ClazzContentJoinReplicate.* FROM ClazzContentJoin LEFT JOIN ClazzContentJoinReplicate ON ClazzContentJoinReplicate.ccjPk = ClazzContentJoin.ccjUid "),t.add_11rb$(" CREATE TRIGGER clazzcontentjoin_remote_insert_ins INSTEAD OF INSERT ON ClazzContentJoin_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ClazzContentJoin(ccjUid, ccjContentEntryUid, ccjClazzUid, ccjActive, ccjLocalChangeSeqNum, ccjMasterChangeSeqNum, ccjLastChangedBy, ccjLct) VALUES (NEW.ccjUid, NEW.ccjContentEntryUid, NEW.ccjClazzUid, NEW.ccjActive, NEW.ccjLocalChangeSeqNum, NEW.ccjMasterChangeSeqNum, NEW.ccjLastChangedBy, NEW.ccjLct) /*psql ON CONFLICT (ccjUid) DO UPDATE SET ccjContentEntryUid = EXCLUDED.ccjContentEntryUid, ccjClazzUid = EXCLUDED.ccjClazzUid, ccjActive = EXCLUDED.ccjActive, ccjLocalChangeSeqNum = EXCLUDED.ccjLocalChangeSeqNum, ccjMasterChangeSeqNum = EXCLUDED.ccjMasterChangeSeqNum, ccjLastChangedBy = EXCLUDED.ccjLastChangedBy, ccjLct = EXCLUDED.ccjLct */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_512 AFTER INSERT ON PersonParentJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 512 AS chTableId, NEW.ppjUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 512 AND chEntityPk = NEW.ppjUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_512 AFTER UPDATE ON PersonParentJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 512 AS chTableId, NEW.ppjUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 512 AND chEntityPk = NEW.ppjUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_512 AFTER DELETE ON PersonParentJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 512 AS chTableId, OLD.ppjUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 512 AND chEntityPk = OLD.ppjUid); END "),t.add_11rb$("CREATE VIEW PersonParentJoin_ReceiveView AS SELECT PersonParentJoin.*, PersonParentJoinReplicate.* FROM PersonParentJoin LEFT JOIN PersonParentJoinReplicate ON PersonParentJoinReplicate.ppjPk = PersonParentJoin.ppjUid "),t.add_11rb$(" CREATE TRIGGER personparentjoin_remote_insert_ins INSTEAD OF INSERT ON PersonParentJoin_ReceiveView FOR EACH ROW BEGIN REPLACE INTO PersonParentJoin(ppjUid, ppjPcsn, ppjLcsn, ppjLcb, ppjLct, ppjParentPersonUid, ppjMinorPersonUid, ppjRelationship, ppjEmail, ppjPhone, ppjInactive, ppjStatus, ppjApprovalTiemstamp, ppjApprovalIpAddr) VALUES (NEW.ppjUid, NEW.ppjPcsn, NEW.ppjLcsn, NEW.ppjLcb, NEW.ppjLct, NEW.ppjParentPersonUid, NEW.ppjMinorPersonUid, NEW.ppjRelationship, NEW.ppjEmail, NEW.ppjPhone, NEW.ppjInactive, NEW.ppjStatus, NEW.ppjApprovalTiemstamp, NEW.ppjApprovalIpAddr) /*psql ON CONFLICT (ppjUid) DO UPDATE SET ppjPcsn = EXCLUDED.ppjPcsn, ppjLcsn = EXCLUDED.ppjLcsn, ppjLcb = EXCLUDED.ppjLcb, ppjLct = EXCLUDED.ppjLct, ppjParentPersonUid = EXCLUDED.ppjParentPersonUid, ppjMinorPersonUid = EXCLUDED.ppjMinorPersonUid, ppjRelationship = EXCLUDED.ppjRelationship, ppjEmail = EXCLUDED.ppjEmail, ppjPhone = EXCLUDED.ppjPhone, ppjInactive = EXCLUDED.ppjInactive, ppjStatus = EXCLUDED.ppjStatus, ppjApprovalTiemstamp = EXCLUDED.ppjApprovalTiemstamp, ppjApprovalIpAddr = EXCLUDED.ppjApprovalIpAddr */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_48 AFTER INSERT ON ScopedGrant BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 48 AS chTableId, NEW.sgUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 48 AND chEntityPk = NEW.sgUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_48 AFTER UPDATE ON ScopedGrant BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 48 AS chTableId, NEW.sgUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 48 AND chEntityPk = NEW.sgUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_48 AFTER DELETE ON ScopedGrant BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 48 AS chTableId, OLD.sgUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 48 AND chEntityPk = OLD.sgUid); END "),t.add_11rb$("CREATE VIEW ScopedGrant_ReceiveView AS SELECT ScopedGrant.*, ScopedGrantReplicate.* FROM ScopedGrant LEFT JOIN ScopedGrantReplicate ON ScopedGrantReplicate.sgPk = ScopedGrant.sgUid "),t.add_11rb$(" CREATE TRIGGER sg_remote_insert_ins INSTEAD OF INSERT ON ScopedGrant_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ScopedGrant(sgUid, sgPcsn, sgLcsn, sgLcb, sgLct, sgTableId, sgEntityUid, sgPermissions, sgGroupUid, sgIndex, sgFlags) VALUES (NEW.sgUid, NEW.sgPcsn, NEW.sgLcsn, NEW.sgLcb, NEW.sgLct, NEW.sgTableId, NEW.sgEntityUid, NEW.sgPermissions, NEW.sgGroupUid, NEW.sgIndex, NEW.sgFlags) /*psql ON CONFLICT(sgUid) DO UPDATE SET sgLct = EXCLUDED.sgLct, sgPermissions = EXCLUDED.sgPermissions */ ; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_419 AFTER INSERT ON ErrorReport BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 419 AS chTableId, NEW.errUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 419 AND chEntityPk = NEW.errUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_419 AFTER UPDATE ON ErrorReport BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 419 AS chTableId, NEW.errUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 419 AND chEntityPk = NEW.errUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_419 AFTER DELETE ON ErrorReport BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 419 AS chTableId, OLD.errUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 419 AND chEntityPk = OLD.errUid); END "),t.add_11rb$("CREATE VIEW ErrorReport_ReceiveView AS SELECT ErrorReport.*, ErrorReportReplicate.* FROM ErrorReport LEFT JOIN ErrorReportReplicate ON ErrorReportReplicate.erPk = ErrorReport.errUid "),t.add_11rb$(" CREATE TRIGGER errorreport_remote_insert_ins INSTEAD OF INSERT ON ErrorReport_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ErrorReport(errUid, errPcsn, errLcsn, errLcb, errLct, severity, timestamp, presenterUri, appVersion, versionCode, errorCode, operatingSys, osVersion, stackTrace, message) VALUES (NEW.errUid, NEW.errPcsn, NEW.errLcsn, NEW.errLcb, NEW.errLct, NEW.severity, NEW.timestamp, NEW.presenterUri, NEW.appVersion, NEW.versionCode, NEW.errorCode, NEW.operatingSys, NEW.osVersion, NEW.stackTrace, NEW.message) /*psql ON CONFLICT (errUid) DO UPDATE SET errPcsn = EXCLUDED.errPcsn, errLcsn = EXCLUDED.errLcsn, errLcb = EXCLUDED.errLcb, errLct = EXCLUDED.errLct, severity = EXCLUDED.severity, timestamp = EXCLUDED.timestamp, presenterUri = EXCLUDED.presenterUri, appVersion = EXCLUDED.appVersion, versionCode = EXCLUDED.versionCode, errorCode = EXCLUDED.errorCode, operatingSys = EXCLUDED.operatingSys, osVersion = EXCLUDED.osVersion, stackTrace = EXCLUDED.stackTrace, message = EXCLUDED.message */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_520 AFTER INSERT ON ClazzAssignment BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 520 AS chTableId, NEW.caUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 520 AND chEntityPk = NEW.caUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_520 AFTER UPDATE ON ClazzAssignment BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 520 AS chTableId, NEW.caUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 520 AND chEntityPk = NEW.caUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_520 AFTER DELETE ON ClazzAssignment BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 520 AS chTableId, OLD.caUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 520 AND chEntityPk = OLD.caUid); END "),t.add_11rb$("CREATE VIEW ClazzAssignment_ReceiveView AS SELECT ClazzAssignment.*, ClazzAssignmentReplicate.* FROM ClazzAssignment LEFT JOIN ClazzAssignmentReplicate ON ClazzAssignmentReplicate.caPk = ClazzAssignment.caUid "),t.add_11rb$(" CREATE TRIGGER clazzassignment_remote_insert_ins INSTEAD OF INSERT ON ClazzAssignment_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ClazzAssignment(caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct) VALUES (NEW.caUid, NEW.caTitle, NEW.caDescription, NEW.caGroupUid, NEW.caActive, NEW.caClassCommentEnabled, NEW.caPrivateCommentsEnabled, NEW.caRequireFileSubmission, NEW.caFileType, NEW.caSizeLimit, NEW.caNumberOfFiles, NEW.caSubmissionPolicy, NEW.caMarkingType,NEW.caRequireTextSubmission, NEW.caTextLimitType, NEW.caTextLimit, NEW.caXObjectUid, NEW.caClazzUid, NEW.caLocalChangeSeqNum, NEW.caMasterChangeSeqNum, NEW.caLastChangedBy, NEW.caLct) /*psql ON CONFLICT (caUid) DO UPDATE SET caTitle = EXCLUDED.caTitle, caDescription = EXCLUDED.caDescription, caGroupUid = EXCLUDED.caGroupUid, caActive = EXCLUDED.caActive, caClassCommentEnabled = EXCLUDED.caClassCommentEnabled, caPrivateCommentsEnabled = EXCLUDED.caPrivateCommentsEnabled, caRequireFileSubmission = EXCLUDED.caRequireFileSubmission, caFileType = EXCLUDED.caFileType, caSizeLimit = EXCLUDED.caSizeLimit, caNumberOfFiles = EXCLUDED.caNumberOfFiles, caSubmissionPolicy = EXCLUDED.caSubmissionPolicy, caMarkingType = EXCLUDED.caMarkingType, caRequireTextSubmission = EXCLUDED.caRequireTextSubmission, caTextLimitType = EXCLUDED.caTextLimitType, caTextLimit = EXCLUDED.caTextLimit, caXObjectUid = EXCLUDED.caXObjectUid, caClazzUid = EXCLUDED.caClazzUid, caLocalChangeSeqNum = EXCLUDED.caLocalChangeSeqNum, caMasterChangeSeqNum = EXCLUDED.caMasterChangeSeqNum, caLastChangedBy = EXCLUDED.caLastChangedBy, caLct = EXCLUDED.caLct */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_521 AFTER INSERT ON ClazzAssignmentContentJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 521 AS chTableId, NEW.cacjUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 521 AND chEntityPk = NEW.cacjUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_521 AFTER UPDATE ON ClazzAssignmentContentJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 521 AS chTableId, NEW.cacjUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 521 AND chEntityPk = NEW.cacjUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_521 AFTER DELETE ON ClazzAssignmentContentJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 521 AS chTableId, OLD.cacjUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 521 AND chEntityPk = OLD.cacjUid); END "),t.add_11rb$("CREATE VIEW ClazzAssignmentContentJoin_ReceiveView AS SELECT ClazzAssignmentContentJoin.*, ClazzAssignmentContentJoinReplicate.* FROM ClazzAssignmentContentJoin LEFT JOIN ClazzAssignmentContentJoinReplicate ON ClazzAssignmentContentJoinReplicate.cacjPk = ClazzAssignmentContentJoin.cacjUid "),t.add_11rb$(" CREATE TRIGGER clazzassignmentcontentjoin_remote_insert_ins INSTEAD OF INSERT ON ClazzAssignmentContentJoin_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ClazzAssignmentContentJoin(cacjUid, cacjContentUid, cacjAssignmentUid, cacjActive,cacjWeight, cacjMCSN, cacjLCSN, cacjLCB, cacjLct) VALUES (NEW.cacjUid, NEW.cacjContentUid, NEW.cacjAssignmentUid, NEW.cacjActive, NEW.cacjWeight, NEW.cacjMCSN, NEW.cacjLCSN, NEW.cacjLCB, NEW.cacjLct) /*psql ON CONFLICT (cacjUid) DO UPDATE SET cacjContentUid = EXCLUDED.cacjContentUid, cacjAssignmentUid = EXCLUDED.cacjAssignmentUid, cacjActive = EXCLUDED.cacjActive, cacjWeight = EXCLUDED.cacjWeight, cacjMCSN = EXCLUDED.cacjMCSN, cacjLCSN = EXCLUDED.cacjLCSN, cacjLCB = EXCLUDED.cacjLCB, cacjLct = EXCLUDED.cacjLct */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_522 AFTER INSERT ON CourseAssignmentSubmission BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 522 AS chTableId, NEW.casUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 522 AND chEntityPk = NEW.casUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_522 AFTER UPDATE ON CourseAssignmentSubmission BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 522 AS chTableId, NEW.casUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 522 AND chEntityPk = NEW.casUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_522 AFTER DELETE ON CourseAssignmentSubmission BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 522 AS chTableId, OLD.casUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 522 AND chEntityPk = OLD.casUid); END "),t.add_11rb$("CREATE VIEW CourseAssignmentSubmission_ReceiveView AS SELECT CourseAssignmentSubmission.*, CourseAssignmentSubmissionReplicate.* FROM CourseAssignmentSubmission LEFT JOIN CourseAssignmentSubmissionReplicate ON CourseAssignmentSubmissionReplicate.casPk = CourseAssignmentSubmission.casUid "),t.add_11rb$(" CREATE TRIGGER courseassignmentsubmission_remote_insert_ins INSTEAD OF INSERT ON CourseAssignmentSubmission_ReceiveView FOR EACH ROW BEGIN REPLACE INTO CourseAssignmentSubmission(casUid, casAssignmentUid, casSubmitterUid, casSubmitterPersonUid, casText, casType, casTimestamp) VALUES (NEW.casUid, NEW.casAssignmentUid, NEW.casSubmitterUid, NEW.casSubmitterPersonUid, NEW.casText, NEW.casType, NEW.casTimestamp) /*psql ON CONFLICT (casUid) DO UPDATE SET casAssignmentUid = EXCLUDED.casAssignmentUid, casSubmitterUid = EXCLUDED.casSubmitterUid, casSubmitterPersonUid = EXCLUDED.casSubmitterPersonUid, casText = EXCLUDED.casText, casType = EXCLUDED.casType, casTimestamp = EXCLUDED.casTimestamp */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_90 AFTER INSERT ON CourseAssignmentSubmissionAttachment BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 90 AS chTableId, NEW.casaUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 90 AND chEntityPk = NEW.casaUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_90 AFTER UPDATE ON CourseAssignmentSubmissionAttachment BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 90 AS chTableId, NEW.casaUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 90 AND chEntityPk = NEW.casaUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_90 AFTER DELETE ON CourseAssignmentSubmissionAttachment BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 90 AS chTableId, OLD.casaUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 90 AND chEntityPk = OLD.casaUid); END "),t.add_11rb$("CREATE VIEW CourseAssignmentSubmissionAttachment_ReceiveView AS SELECT CourseAssignmentSubmissionAttachment.*, CourseAssignmentSubmissionAttachmentReplicate.* FROM CourseAssignmentSubmissionAttachment LEFT JOIN CourseAssignmentSubmissionAttachmentReplicate ON CourseAssignmentSubmissionAttachmentReplicate.casaPk = CourseAssignmentSubmissionAttachment.casaUid "),t.add_11rb$(" CREATE TRIGGER courseassignmentsubmissionattachment_remote_insert_ins INSTEAD OF INSERT ON CourseAssignmentSubmissionAttachment_ReceiveView FOR EACH ROW BEGIN REPLACE INTO CourseAssignmentSubmissionAttachment(casaUid, casaSubmissionUid, casaMimeType,casaFileName, casaUri, casaMd5, casaSize, casaTimestamp) VALUES (NEW.casaUid, NEW.casaSubmissionUid, NEW.casaMimeType, NEW.casaFileName, NEW.casaUri, NEW.casaMd5, NEW.casaSize, NEW.casaTimestamp) /*psql ON CONFLICT (casaUid) DO UPDATE SET casaSubmissionUid = EXCLUDED.casaSubmissionUid, casaMimeType = EXCLUDED.casaMimeType, casaFileName = EXCLUDED.casaFileName, casaUri = EXCLUDED.casaUri, casaMd5 = EXCLUDED.casaMd5, casaSize = EXCLUDED.casaSize, casaTimestamp = EXCLUDED.casaTimestamp */; END ");var n=S("\n |\n | CREATE TRIGGER ATTUPD_CourseAssignmentSubmissionAttachment\n | AFTER UPDATE ON CourseAssignmentSubmissionAttachment FOR EACH ROW WHEN\n | OLD.casaMd5 IS NOT NULL\n | BEGIN\n | \n | INSERT INTO ZombieAttachmentData(zaUri) \n | SELECT OLD.casaUri AS zaUri\n | FROM CourseAssignmentSubmissionAttachment \n | WHERE CourseAssignmentSubmissionAttachment.casaUid = OLD.casaUid\n | AND (SELECT COUNT(*) \n | FROM CourseAssignmentSubmissionAttachment\n | WHERE casaMd5 = OLD.casaMd5) = 0\n | ; \n | END\n | \n ");t.add_11rb$(n),t.add_11rb$(" CREATE TRIGGER ch_ins_523 AFTER INSERT ON CourseAssignmentMark BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 523 AS chTableId, NEW.camUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 523 AND chEntityPk = NEW.camUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_523 AFTER UPDATE ON CourseAssignmentMark BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 523 AS chTableId, NEW.camUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 523 AND chEntityPk = NEW.camUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_523 AFTER DELETE ON CourseAssignmentMark BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 523 AS chTableId, OLD.camUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 523 AND chEntityPk = OLD.camUid); END "),t.add_11rb$("CREATE VIEW CourseAssignmentMark_ReceiveView AS SELECT CourseAssignmentMark.*, CourseAssignmentMarkReplicate.* FROM CourseAssignmentMark LEFT JOIN CourseAssignmentMarkReplicate ON CourseAssignmentMarkReplicate.camPk = CourseAssignmentMark.camUid "),t.add_11rb$(" CREATE TRIGGER courseassignmentmark_remote_insert_ins INSTEAD OF INSERT ON CourseAssignmentMark_ReceiveView FOR EACH ROW BEGIN REPLACE INTO CourseAssignmentMark(camUid, camAssignmentUid, camSubmitterUid, camMark, camPenalty, camLct) VALUES (NEW.camUid, NEW.camAssignmentUid, NEW.camSubmitterUid, NEW.camMark, NEW.camPenalty, NEW.camLct) /*psql ON CONFLICT (camUid) DO UPDATE SET camAssignmentUid = EXCLUDED.camAssignmentUid, camSubmitterUid = EXCLUDED.camSubmitterUid, camMark = EXCLUDED.camMark, camPenalty = EXCLUDED.camPenalty, camLct = EXCLUDED.camLct */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_678 AFTER INSERT ON PersonAuth2 BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 678 AS chTableId, NEW.pauthUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 678 AND chEntityPk = NEW.pauthUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_678 AFTER UPDATE ON PersonAuth2 BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 678 AS chTableId, NEW.pauthUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 678 AND chEntityPk = NEW.pauthUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_678 AFTER DELETE ON PersonAuth2 BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 678 AS chTableId, OLD.pauthUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 678 AND chEntityPk = OLD.pauthUid); END "),t.add_11rb$("CREATE VIEW PersonAuth2_ReceiveView AS SELECT PersonAuth2.*, PersonAuth2Replicate.* FROM PersonAuth2 LEFT JOIN PersonAuth2Replicate ON PersonAuth2Replicate.paPk = PersonAuth2.pauthUid "),t.add_11rb$(" CREATE TRIGGER personauth2_remote_insert_ins INSTEAD OF INSERT ON PersonAuth2_ReceiveView FOR EACH ROW BEGIN REPLACE INTO PersonAuth2(pauthUid, pauthMechanism, pauthAuth, pauthLcsn, pauthPcsn, pauthLcb, pauthLct) VALUES (NEW.pauthUid, NEW.pauthMechanism, NEW.pauthAuth, NEW.pauthLcsn, NEW.pauthPcsn, NEW.pauthLcb, NEW.pauthLct) /*psql ON CONFLICT (pauthUid) DO UPDATE SET pauthMechanism = EXCLUDED.pauthMechanism, pauthAuth = EXCLUDED.pauthAuth, pauthLcsn = EXCLUDED.pauthLcsn, pauthPcsn = EXCLUDED.pauthPcsn, pauthLcb = EXCLUDED.pauthLcb, pauthLct = EXCLUDED.pauthLct */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_679 AFTER INSERT ON UserSession BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 679 AS chTableId, NEW.usUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 679 AND chEntityPk = NEW.usUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_679 AFTER UPDATE ON UserSession BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 679 AS chTableId, NEW.usUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 679 AND chEntityPk = NEW.usUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_679 AFTER DELETE ON UserSession BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 679 AS chTableId, OLD.usUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 679 AND chEntityPk = OLD.usUid); END "),t.add_11rb$("CREATE VIEW UserSession_ReceiveView AS SELECT UserSession.*, UserSessionReplicate.* FROM UserSession LEFT JOIN UserSessionReplicate ON UserSessionReplicate.usPk = UserSession.usUid "),t.add_11rb$(" CREATE TRIGGER usersession_remote_insert_ins INSTEAD OF INSERT ON UserSession_ReceiveView FOR EACH ROW BEGIN REPLACE INTO UserSession(usUid, usPcsn, usLcsn, usLcb, usLct, usPersonUid, usClientNodeId, usStartTime, usEndTime, usStatus, usReason, usAuth, usSessionType) VALUES (NEW.usUid, NEW.usPcsn, NEW.usLcsn, NEW.usLcb, NEW.usLct, NEW.usPersonUid, NEW.usClientNodeId, NEW.usStartTime, NEW.usEndTime, NEW.usStatus, NEW.usReason, NEW.usAuth, NEW.usSessionType) /*psql ON CONFLICT (usUid) DO UPDATE SET usPcsn = EXCLUDED.usPcsn, usLcsn = EXCLUDED.usLcsn, usLcb = EXCLUDED.usLcb, usLct = EXCLUDED.usLct, usPersonUid = EXCLUDED.usPersonUid, usClientNodeId = EXCLUDED.usClientNodeId, usStartTime = EXCLUDED.usStartTime, usEndTime = EXCLUDED.usEndTime, usStatus = EXCLUDED.usStatus, usReason = EXCLUDED.usReason, usAuth = EXCLUDED.usAuth, usSessionType = EXCLUDED.usSessionType */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_124 AFTER INSERT ON CourseBlock BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 124 AS chTableId, NEW.cbUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 124 AND chEntityPk = NEW.cbUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_124 AFTER UPDATE ON CourseBlock BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 124 AS chTableId, NEW.cbUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 124 AND chEntityPk = NEW.cbUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_124 AFTER DELETE ON CourseBlock BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 124 AS chTableId, OLD.cbUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 124 AND chEntityPk = OLD.cbUid); END "),t.add_11rb$("CREATE VIEW CourseBlock_ReceiveView AS SELECT CourseBlock.*, CourseBlockReplicate.* FROM CourseBlock LEFT JOIN CourseBlockReplicate ON CourseBlockReplicate.cbPk = CourseBlock.cbUid "),t.add_11rb$(" CREATE TRIGGER courseblock_remote_insert_ins INSTEAD OF INSERT ON CourseBlock_ReceiveView FOR EACH ROW BEGIN REPLACE INTO CourseBlock(cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints,cbMinPoints, cbIndex, cbClazzUid, cbActive,cbHidden, cbEntityUid, cbLct) VALUES (NEW.cbUid, NEW.cbType, NEW.cbIndentLevel, NEW.cbModuleParentBlockUid, NEW.cbTitle, NEW.cbDescription, NEW.cbCompletionCriteria, NEW.cbHideUntilDate, NEW.cbDeadlineDate, NEW.cbLateSubmissionPenalty, NEW.cbGracePeriodDate, NEW.cbMaxPoints,NEW.cbMinPoints, NEW.cbIndex, NEW.cbClazzUid,NEW.cbActive, NEW.cbHidden, NEW.cbEntityUid, NEW.cbLct) /*psql ON CONFLICT (cbUid) DO UPDATE SET cbType = EXCLUDED.cbType, cbIndentLevel = EXCLUDED.cbIndentLevel, cbModuleParentBlockUid = EXCLUDED.cbModuleParentBlockUid, cbTitle = EXCLUDED.cbTitle, cbDescription = EXCLUDED.cbDescription, cbCompletionCriteria = EXCLUDED.cbCompletionCriteria, cbHideUntilDate = EXCLUDED.cbHideUntilDate,cbDeadlineDate = EXCLUDED.cbDeadlineDate, cbLateSubmissionPenalty = EXCLUDED.cbLateSubmissionPenalty, cbGracePeriodDate= EXCLUDED.cbGracePeriodDate, cbMaxPoints = EXCLUDED.cbMaxPoints, cbMinPoints = EXCLUDED.cbMinPoints, cbIndex = EXCLUDED.cbIndex,cbClazzUid = EXCLUDED.cbClazzUid, cbActive = EXCLUDED.cbActive, cbHidden = EXCLUDED.cbHidden, cbEntityUid = EXCLUDED.cbEntityUid, cbLct = EXCLUDED.cbLct */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_450 AFTER INSERT ON CourseTerminology BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 450 AS chTableId, NEW.ctUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 450 AND chEntityPk = NEW.ctUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_450 AFTER UPDATE ON CourseTerminology BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 450 AS chTableId, NEW.ctUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 450 AND chEntityPk = NEW.ctUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_450 AFTER DELETE ON CourseTerminology BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 450 AS chTableId, OLD.ctUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 450 AND chEntityPk = OLD.ctUid); END "),t.add_11rb$("CREATE VIEW CourseTerminology_ReceiveView AS SELECT CourseTerminology.*, CourseTerminologyReplicate.* FROM CourseTerminology LEFT JOIN CourseTerminologyReplicate ON CourseTerminologyReplicate.ctPk = CourseTerminology.ctUid "),t.add_11rb$(" CREATE TRIGGER courseterminology_remote_insert_ins INSTEAD OF INSERT ON CourseTerminology_ReceiveView FOR EACH ROW BEGIN REPLACE INTO CourseTerminology(ctUid, ctTitle, ctTerminology, ctLct) VALUES (NEW.ctUid, NEW.ctTitle, NEW.ctTerminology, NEW.ctLct) /*psql ON CONFLICT (ctUid) DO UPDATE SET ctTitle = EXCLUDED.ctTitle, ctTerminology = EXCLUDED.ctTerminology, ctLct = EXCLUDED.ctLct */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_242 AFTER INSERT ON CourseGroupSet BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 242 AS chTableId, NEW.cgsUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 242 AND chEntityPk = NEW.cgsUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_242 AFTER UPDATE ON CourseGroupSet BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 242 AS chTableId, NEW.cgsUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 242 AND chEntityPk = NEW.cgsUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_242 AFTER DELETE ON CourseGroupSet BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 242 AS chTableId, OLD.cgsUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 242 AND chEntityPk = OLD.cgsUid); END "),t.add_11rb$("CREATE VIEW CourseGroupSet_ReceiveView AS SELECT CourseGroupSet.*, CourseGroupSetReplicate.* FROM CourseGroupSet LEFT JOIN CourseGroupSetReplicate ON CourseGroupSetReplicate.cgsPk = CourseGroupSet.cgsUid "),t.add_11rb$(" CREATE TRIGGER coursegroupset_remote_insert_ins INSTEAD OF INSERT ON CourseGroupSet_ReceiveView FOR EACH ROW BEGIN REPLACE INTO CourseGroupSet(cgsUid, cgsName, cgsTotalGroups, cgsActive, cgsClazzUid, cgsLct) VALUES (NEW.cgsUid, NEW.cgsName, NEW.cgsTotalGroups, NEW.cgsActive, NEW.cgsClazzUid, NEW.cgsLct) /*psql ON CONFLICT (cgsUid) DO UPDATE SET cgsName = EXCLUDED.cgsName, cgsTotalGroups = EXCLUDED.cgsTotalGroups, cgsActive = EXCLUDED.cgsActive, cgsClazzUid = EXCLUDED.cgsClazzUid, cgsLct = EXCLUDED.cgsLct */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_243 AFTER INSERT ON CourseGroupMember BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 243 AS chTableId, NEW.cgmUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 243 AND chEntityPk = NEW.cgmUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_243 AFTER UPDATE ON CourseGroupMember BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 243 AS chTableId, NEW.cgmUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 243 AND chEntityPk = NEW.cgmUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_243 AFTER DELETE ON CourseGroupMember BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 243 AS chTableId, OLD.cgmUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 243 AND chEntityPk = OLD.cgmUid); END "),t.add_11rb$("CREATE VIEW CourseGroupMember_ReceiveView AS SELECT CourseGroupMember.*, CourseGroupMemberReplicate.* FROM CourseGroupMember LEFT JOIN CourseGroupMemberReplicate ON CourseGroupMemberReplicate.cgmPk = CourseGroupMember.cgmUid "),t.add_11rb$(" CREATE TRIGGER coursegroupmember_remote_insert_ins INSTEAD OF INSERT ON CourseGroupMember_ReceiveView FOR EACH ROW BEGIN REPLACE INTO CourseGroupMember(cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct) VALUES (NEW.cgmUid, NEW.cgmSetUid, NEW.cgmGroupNumber, NEW.cgmPersonUid, NEW.cgmLct) /*psql ON CONFLICT (cgmUid) DO UPDATE SET cgmSetUid = EXCLUDED.cgmSetUid, cgmGroupNumber = EXCLUDED.cgmGroupNumber, cgmPersonUid = EXCLUDED.cgmPersonUid, cgmLct = EXCLUDED.cgmLct */; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_125 AFTER INSERT ON CoursePicture BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 125 AS chTableId, NEW.coursePictureUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 125 AND chEntityPk = NEW.coursePictureUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_125 AFTER UPDATE ON CoursePicture BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 125 AS chTableId, NEW.coursePictureUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 125 AND chEntityPk = NEW.coursePictureUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_125 AFTER DELETE ON CoursePicture BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 125 AS chTableId, OLD.coursePictureUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 125 AND chEntityPk = OLD.coursePictureUid); END "),t.add_11rb$("CREATE VIEW CoursePicture_ReceiveView AS SELECT CoursePicture.*, CoursePictureReplicate.* FROM CoursePicture LEFT JOIN CoursePictureReplicate ON CoursePictureReplicate.cpPk = CoursePicture.coursePictureUid "),t.add_11rb$(" CREATE TRIGGER coursepicture_remote_insert_ins INSTEAD OF INSERT ON CoursePicture_ReceiveView FOR EACH ROW BEGIN REPLACE INTO CoursePicture(coursePictureUid, coursePictureClazzUid, coursePictureMasterCsn, coursePictureLocalCsn, coursePictureLastChangedBy, coursePictureLct, coursePictureUri, coursePictureMd5, coursePictureFileSize, coursePictureTimestamp, coursePictureMimeType, coursePictureActive) VALUES (NEW.coursePictureUid, NEW.coursePictureClazzUid, NEW.coursePictureMasterCsn, NEW.coursePictureLocalCsn, NEW.coursePictureLastChangedBy, NEW.coursePictureLct, NEW.coursePictureUri, NEW.coursePictureMd5, NEW.coursePictureFileSize, NEW.coursePictureTimestamp, NEW.coursePictureMimeType, NEW.coursePictureActive) /*psql ON CONFLICT (coursePictureUid) DO UPDATE SET coursePictureClazzUid = EXCLUDED.coursePictureClazzUid, coursePictureMasterCsn = EXCLUDED.coursePictureMasterCsn, coursePictureLocalCsn = EXCLUDED.coursePictureLocalCsn, coursePictureLastChangedBy = EXCLUDED.coursePictureLastChangedBy, coursePictureLct = EXCLUDED.coursePictureLct, coursePictureUri = EXCLUDED.coursePictureUri, coursePictureMd5 = EXCLUDED.coursePictureMd5, coursePictureFileSize = EXCLUDED.coursePictureFileSize, coursePictureTimestamp = EXCLUDED.coursePictureTimestamp, coursePictureMimeType = EXCLUDED.coursePictureMimeType, coursePictureActive = EXCLUDED.coursePictureActive */; END ");var i=S("\n |\n | CREATE TRIGGER ATTUPD_CoursePicture\n | AFTER UPDATE ON CoursePicture FOR EACH ROW WHEN\n | OLD.coursePictureMd5 IS NOT NULL\n | BEGIN\n | \n | INSERT INTO ZombieAttachmentData(zaUri) \n | SELECT OLD.coursePictureUri AS zaUri\n | FROM CoursePicture \n | WHERE CoursePicture.coursePictureUid = OLD.coursePictureUid\n | AND (SELECT COUNT(*) \n | FROM CoursePicture\n | WHERE coursePictureMd5 = OLD.coursePictureMd5) = 0\n | ; \n | END\n | \n ");t.add_11rb$(i),t.add_11rb$(" CREATE TRIGGER ch_ins_138 AFTER INSERT ON ContentEntryPicture BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 138 AS chTableId, NEW.cepUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 138 AND chEntityPk = NEW.cepUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_138 AFTER UPDATE ON ContentEntryPicture BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 138 AS chTableId, NEW.cepUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 138 AND chEntityPk = NEW.cepUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_138 AFTER DELETE ON ContentEntryPicture BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 138 AS chTableId, OLD.cepUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 138 AND chEntityPk = OLD.cepUid); END "),t.add_11rb$("CREATE VIEW ContentEntryPicture_ReceiveView AS SELECT ContentEntryPicture.*, ContentEntryPictureReplicate.* FROM ContentEntryPicture LEFT JOIN ContentEntryPictureReplicate ON ContentEntryPictureReplicate.cepPk = ContentEntryPicture.cepUid "),t.add_11rb$(" CREATE TRIGGER ceppicture_remote_insert_ins INSTEAD OF INSERT ON ContentEntryPicture_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ContentEntryPicture(cepUid, cepContentEntryUid, cepUri, cepMd5, cepFileSize, cepTimestamp, cepMimeType, cepActive) VALUES (NEW.cepUid, NEW.cepContentEntryUid, NEW.cepUri, NEW.cepMd5, NEW.cepFileSize, NEW.cepTimestamp, NEW.cepMimeType, NEW.cepActive) /*psql ON CONFLICT (cepUid) DO UPDATE SET cepContentEntryUid = EXCLUDED.cepContentEntryUid, cepUri = EXCLUDED.cepUri, cepMd5 = EXCLUDED.cepMd5, cepFileSize = EXCLUDED.cepFileSize, cepTimestamp = EXCLUDED.cepTimestamp, cepMimeType = EXCLUDED.cepMimeType, cepActive = EXCLUDED.cepActive */; END ");var o=S("\n |\n | CREATE TRIGGER ATTUPD_ContentEntryPicture\n | AFTER UPDATE ON ContentEntryPicture FOR EACH ROW WHEN\n | OLD.cepMd5 IS NOT NULL\n | BEGIN\n | \n | INSERT INTO ZombieAttachmentData(zaUri) \n | SELECT OLD.cepUri AS zaUri\n | FROM ContentEntryPicture \n | WHERE ContentEntryPicture.cepUid = OLD.cepUid\n | AND (SELECT COUNT(*) \n | FROM ContentEntryPicture\n | WHERE cepMd5 = OLD.cepMd5) = 0\n | ; \n | END\n | \n ");t.add_11rb$(o),t.add_11rb$(" CREATE TRIGGER ch_ins_127 AFTER INSERT ON Chat BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 127 AS chTableId, NEW.chatUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 127 AND chEntityPk = NEW.chatUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_127 AFTER UPDATE ON Chat BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 127 AS chTableId, NEW.chatUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 127 AND chEntityPk = NEW.chatUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_127 AFTER DELETE ON Chat BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 127 AS chTableId, OLD.chatUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 127 AND chEntityPk = OLD.chatUid); END "),t.add_11rb$("CREATE VIEW Chat_ReceiveView AS SELECT Chat.*, ChatReplicate.* FROM Chat LEFT JOIN ChatReplicate ON ChatReplicate.chatPk = Chat.chatUid "),t.add_11rb$(" CREATE TRIGGER chat_remote_insert_ins INSTEAD OF INSERT ON Chat_ReceiveView FOR EACH ROW BEGIN REPLACE INTO Chat(chatUid, chatStartDate, chatTitle, chatGroup, chatLct) VALUES(NEW.chatUid, NEW.chatStartDate, NEW.chatTitle, NEW.chatGroup, NEW.chatLct) /*psql ON CONFLICT (chatUid) DO UPDATE SET chatStartDate = EXCLUDED.chatStartDate, chatTitle = EXCLUDED.chatTitle, chatGroup = EXCLUDED.chatGroup, chatLct = EXCLUDED.chatLct */ ; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_128 AFTER INSERT ON ChatMember BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 128 AS chTableId, NEW.chatMemberUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 128 AND chEntityPk = NEW.chatMemberUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_128 AFTER UPDATE ON ChatMember BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 128 AS chTableId, NEW.chatMemberUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 128 AND chEntityPk = NEW.chatMemberUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_128 AFTER DELETE ON ChatMember BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 128 AS chTableId, OLD.chatMemberUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 128 AND chEntityPk = OLD.chatMemberUid); END "),t.add_11rb$("CREATE VIEW ChatMember_ReceiveView AS SELECT ChatMember.*, ChatMemberReplicate.* FROM ChatMember LEFT JOIN ChatMemberReplicate ON ChatMemberReplicate.chatMemberPk = ChatMember.chatMemberUid "),t.add_11rb$(" CREATE TRIGGER chatmember_remote_insert_ins INSTEAD OF INSERT ON ChatMember_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ChatMember(chatMemberUid, chatMemberChatUid, chatMemberPersonUid, chatMemberJoinedDate, chatMemberLeftDate, chatMemberLct) VALUES(NEW.chatMemberUid, NEW.chatMemberChatUid, NEW.chatMemberPersonUid, NEW.chatMemberJoinedDate, NEW.chatMemberLeftDate, NEW.chatMemberLct) /*psql ON CONFLICT (chatMemberUid) DO UPDATE SET chatMemberChatUid = EXCLUDED.chatMemberChatUid, chatMemberPersonUid = EXCLUDED.chatMemberPersonUid, chatMemberJoinedDate = EXCLUDED.chatMemberJoinedDate, chatMemberLeftDate = EXCLUDED.chatMemberLeftDate, chatMemberLct = EXCLUDED.chatMemberLct */ ; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_126 AFTER INSERT ON Message BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 126 AS chTableId, NEW.messageUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 126 AND chEntityPk = NEW.messageUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_126 AFTER UPDATE ON Message BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 126 AS chTableId, NEW.messageUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 126 AND chEntityPk = NEW.messageUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_126 AFTER DELETE ON Message BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 126 AS chTableId, OLD.messageUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 126 AND chEntityPk = OLD.messageUid); END "),t.add_11rb$("CREATE VIEW Message_ReceiveView AS SELECT Message.*, MessageReplicate.* FROM Message LEFT JOIN MessageReplicate ON MessageReplicate.messagePk = Message.messageUid "),t.add_11rb$(" CREATE TRIGGER message_remote_insert_ins INSTEAD OF INSERT ON Message_ReceiveView FOR EACH ROW BEGIN REPLACE INTO Message(messageUid, messageSenderPersonUid, messageTableId, messageEntityUid, messageText, messageTimestamp, messageClazzUid, messageLct) VALUES(NEW.messageUid, NEW.messageSenderPersonUid, NEW.messageTableId, NEW.messageEntityUid, NEW.messageText, NEW.messageTimestamp, NEW.messageClazzUid, NEW.messageLct) /*psql ON CONFLICT (messageUid) DO UPDATE SET messageSenderPersonUid = EXCLUDED.messageSenderPersonUid, messageTableId = EXCLUDED.messageTableId, messageEntityUid = EXCLUDED.messageEntityUid, messageText = EXCLUDED.messageText, messageTimestamp = EXCLUDED.messageTimestamp, messageClazzUid = EXCLUDED.messageClazzUid, messageLct = EXCLUDED.messageLct */ ; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_129 AFTER INSERT ON MessageRead BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 129 AS chTableId, NEW.messageReadUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 129 AND chEntityPk = NEW.messageReadUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_129 AFTER UPDATE ON MessageRead BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 129 AS chTableId, NEW.messageReadUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 129 AND chEntityPk = NEW.messageReadUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_129 AFTER DELETE ON MessageRead BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 129 AS chTableId, OLD.messageReadUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 129 AND chEntityPk = OLD.messageReadUid); END "),t.add_11rb$("CREATE VIEW MessageRead_ReceiveView AS SELECT MessageRead.*, MessageReadReplicate.* FROM MessageRead LEFT JOIN MessageReadReplicate ON MessageReadReplicate.messageReadPk = MessageRead.messageReadUid "),t.add_11rb$(" CREATE TRIGGER messageread_remote_insert_ins INSTEAD OF INSERT ON MessageRead_ReceiveView FOR EACH ROW BEGIN REPLACE INTO MessageRead(messageReadUid, messageReadPersonUid, messageReadMessageUid, messageReadEntityUid, messageReadLct) VALUES(NEW.messageReadUid, NEW.messageReadPersonUid, NEW.messageReadMessageUid, NEW.messageReadEntityUid, NEW.messageReadLct) /*psql ON CONFLICT (messageReadUid) DO UPDATE SET messageReadPersonUid = EXCLUDED.messageReadPersonUid, messageReadMessageUid = EXCLUDED.messageReadMessageUid, messageReadEntityUid = EXCLUDED.messageReadEntityUid, messageReadLct = EXCLUDED.messageReadLct */ ; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_130 AFTER INSERT ON CourseDiscussion BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 130 AS chTableId, NEW.courseDiscussionUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 130 AND chEntityPk = NEW.courseDiscussionUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_130 AFTER UPDATE ON CourseDiscussion BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 130 AS chTableId, NEW.courseDiscussionUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 130 AND chEntityPk = NEW.courseDiscussionUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_130 AFTER DELETE ON CourseDiscussion BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 130 AS chTableId, OLD.courseDiscussionUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 130 AND chEntityPk = OLD.courseDiscussionUid); END "),t.add_11rb$("CREATE VIEW CourseDiscussion_ReceiveView AS SELECT CourseDiscussion.*, CourseDiscussionReplicate.* FROM CourseDiscussion LEFT JOIN CourseDiscussionReplicate ON CourseDiscussionReplicate.courseDiscussionPk = CourseDiscussion.courseDiscussionUid "),t.add_11rb$(" CREATE TRIGGER coursediscussion_remote_insert_ins INSTEAD OF INSERT ON CourseDiscussion_ReceiveView FOR EACH ROW BEGIN REPLACE INTO CourseDiscussion(courseDiscussionUid, courseDiscussionActive, courseDiscussionTitle, courseDiscussionDesc, courseDiscussionClazzUid, courseDiscussionLct) VALUES(NEW.courseDiscussionUid, NEW.courseDiscussionActive, NEW.courseDiscussionTitle, NEW.courseDiscussionDesc, NEW.courseDiscussionClazzUid, NEW.courseDiscussionLct) /*psql ON CONFLICT (courseDiscussionUid) DO UPDATE SET courseDiscussionActive = EXCLUDED.courseDiscussionActive, courseDiscussionTitle = EXCLUDED.courseDiscussionTitle, courseDiscussionDesc = EXCLUDED.courseDiscussionDesc, courseDiscussionClazzUid = EXCLUDED.courseDiscussionClazzUid, courseDiscussionLct = EXCLUDED.courseDiscussionLct */ ; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_131 AFTER INSERT ON DiscussionTopic BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 131 AS chTableId, NEW.discussionTopicUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 131 AND chEntityPk = NEW.discussionTopicUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_131 AFTER UPDATE ON DiscussionTopic BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 131 AS chTableId, NEW.discussionTopicUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 131 AND chEntityPk = NEW.discussionTopicUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_131 AFTER DELETE ON DiscussionTopic BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 131 AS chTableId, OLD.discussionTopicUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 131 AND chEntityPk = OLD.discussionTopicUid); END "),t.add_11rb$("CREATE VIEW DiscussionTopic_ReceiveView AS SELECT DiscussionTopic.*, DiscussionTopicReplicate.* FROM DiscussionTopic LEFT JOIN DiscussionTopicReplicate ON DiscussionTopicReplicate.discussionTopicPk = DiscussionTopic.discussionTopicUid "),t.add_11rb$(" CREATE TRIGGER discussiontopic_remote_insert_ins INSTEAD OF INSERT ON DiscussionTopic_ReceiveView FOR EACH ROW BEGIN REPLACE INTO DiscussionTopic(discussionTopicUid, discussionTopicTitle, discussionTopicDesc, discussionTopicStartDate, discussionTopicCourseDiscussionUid, discussionTopicVisible, discussionTopicArchive, discussionTopicIndex, discussionTopicClazzUid, discussionTopicLct) VALUES(NEW.discussionTopicUid, NEW.discussionTopicTitle, NEW.discussionTopicDesc, NEW.discussionTopicStartDate, NEW.discussionTopicCourseDiscussionUid, NEW.discussionTopicVisible, NEW.discussionTopicArchive, NEW.discussionTopicIndex, NEW.discussionTopicClazzUid, NEW.discussionTopicLct) /*psql ON CONFLICT (discussionTopicUid) DO UPDATE SET discussionTopicTitle = EXCLUDED.discussionTopicTitle, discussionTopicDesc = EXCLUDED.discussionTopicDesc, discussionTopicStartDate = EXCLUDED.discussionTopicStartDate, discussionTopicCourseDiscussionUid = EXCLUDED.discussionTopicCourseDiscussionUid, discussionTopicVisible = EXCLUDED.discussionTopicVisible, discussionTopicArchive = EXCLUDED.discussionTopicArchive, discussionTopicIndex = EXCLUDED.discussionTopicIndex, discussionTopicClazzUid = EXCLUDED.discussionTopicClazzUid, discussionTopicLct = EXCLUDED.discussionTopicLct */ ; END "),t.add_11rb$(" CREATE TRIGGER ch_ins_132 AFTER INSERT ON DiscussionPost BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 132 AS chTableId, NEW.discussionPostUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 132 AND chEntityPk = NEW.discussionPostUid); END "),t.add_11rb$(" CREATE TRIGGER ch_upd_132 AFTER UPDATE ON DiscussionPost BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 132 AS chTableId, NEW.discussionPostUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 132 AND chEntityPk = NEW.discussionPostUid); END "),t.add_11rb$(" CREATE TRIGGER ch_del_132 AFTER DELETE ON DiscussionPost BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 132 AS chTableId, OLD.discussionPostUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 132 AND chEntityPk = OLD.discussionPostUid); END "),t.add_11rb$("CREATE VIEW DiscussionPost_ReceiveView AS SELECT DiscussionPost.*, DiscussionPostReplicate.* FROM DiscussionPost LEFT JOIN DiscussionPostReplicate ON DiscussionPostReplicate.discussionPostPk = DiscussionPost.discussionPostUid "),t.add_11rb$(" CREATE TRIGGER discussionpost_remote_insert_ins INSTEAD OF INSERT ON DiscussionPost_ReceiveView FOR EACH ROW BEGIN REPLACE INTO DiscussionPost(discussionPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostDiscussionTopicUid, discussionPostVisible, discussionPostArchive, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct) VALUES(NEW.discussionPostUid, NEW.discussionPostTitle, NEW.discussionPostMessage, NEW.discussionPostStartDate, NEW.discussionPostDiscussionTopicUid, NEW.discussionPostVisible, NEW.discussionPostArchive, NEW.discussionPostStartedPersonUid, NEW.discussionPostClazzUid, NEW.discussionPostLct) /*psql ON CONFLICT (discussionPostUid) DO UPDATE SET discussionPostTitle = EXCLUDED.discussionPostTitle , discussionPostMessage = EXCLUDED.discussionPostMessage , discussionPostStartDate = EXCLUDED.discussionPostStartDate , discussionPostDiscussionTopicUid = EXCLUDED.discussionPostDiscussionTopicUid, discussionPostVisible = EXCLUDED.discussionPostVisible , discussionPostArchive = EXCLUDED.discussionPostArchive , discussionPostStartedPersonUid = EXCLUDED.discussionPostStartedPersonUid , discussionPostClazzUid = EXCLUDED.discussionPostClazzUid, discussionPostLct = EXCLUDED.discussionPostLct */ ; END ");break;case 2:t.add_11rb$("CREATE TABLE IF NOT EXISTS _doorwayinfo (dbVersion int primary key, dbHash varchar(255))"),t.add_11rb$("INSERT INTO _doorwayinfo VALUES (107, '')"),t.add_11rb$("CREATE TABLE IF NOT EXISTS NetworkNode ( bluetoothMacAddress TEXT , ipAddress TEXT , wifiDirectMacAddress TEXT , deviceWifiDirectName TEXT , endpointUrl TEXT , lastUpdateTimeStamp BIGINT NOT NULL , networkServiceLastUpdated BIGINT NOT NULL , nsdServiceName TEXT , port INTEGER NOT NULL , numFailureCount INTEGER NOT NULL , wifiDirectDeviceStatus INTEGER NOT NULL , groupSsid TEXT , nodeId BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzLog ( clazzLogClazzUid BIGINT NOT NULL , logDate BIGINT NOT NULL , timeRecorded BIGINT NOT NULL , clazzLogDone BOOL NOT NULL , cancellationNote TEXT , clazzLogCancelled BOOL NOT NULL , clazzLogNumPresent INTEGER NOT NULL , clazzLogNumAbsent INTEGER NOT NULL , clazzLogNumPartial INTEGER NOT NULL , clazzLogScheduleUid BIGINT NOT NULL , clazzLogStatusFlag INTEGER NOT NULL , clazzLogMSQN BIGINT NOT NULL , clazzLogLCSN BIGINT NOT NULL , clazzLogLCB INTEGER NOT NULL , clazzLogLastChangedTime BIGINT NOT NULL , clazzLogUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzLogAttendanceRecord ( clazzLogAttendanceRecordClazzLogUid BIGINT NOT NULL , clazzLogAttendanceRecordPersonUid BIGINT NOT NULL , attendanceStatus INTEGER NOT NULL , clazzLogAttendanceRecordMasterChangeSeqNum BIGINT NOT NULL , clazzLogAttendanceRecordLocalChangeSeqNum BIGINT NOT NULL , clazzLogAttendanceRecordLastChangedBy INTEGER NOT NULL , clazzLogAttendanceRecordLastChangedTime BIGINT NOT NULL , clazzLogAttendanceRecordUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS Schedule ( sceduleStartTime BIGINT NOT NULL , scheduleEndTime BIGINT NOT NULL , scheduleDay INTEGER NOT NULL , scheduleMonth INTEGER NOT NULL , scheduleFrequency INTEGER NOT NULL , umCalendarUid BIGINT NOT NULL , scheduleClazzUid BIGINT NOT NULL , scheduleMasterChangeSeqNum BIGINT NOT NULL , scheduleLocalChangeSeqNum BIGINT NOT NULL , scheduleLastChangedBy INTEGER NOT NULL , scheduleLastChangedTime BIGINT NOT NULL , scheduleActive BOOL NOT NULL , scheduleUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS DateRange ( dateRangeLocalChangeSeqNum BIGINT NOT NULL , dateRangeMasterChangeSeqNum BIGINT NOT NULL , dateRangLastChangedBy INTEGER NOT NULL , dateRangeLct BIGINT NOT NULL , dateRangeFromDate BIGINT NOT NULL , dateRangeToDate BIGINT NOT NULL , dateRangeUMCalendarUid BIGINT NOT NULL , dateRangeName TEXT , dateRangeDesc TEXT , dateRangeActive BOOL NOT NULL , dateRangeUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS HolidayCalendar ( umCalendarName TEXT , umCalendarCategory INTEGER NOT NULL , umCalendarActive BOOL NOT NULL , umCalendarMasterChangeSeqNum BIGINT NOT NULL , umCalendarLocalChangeSeqNum BIGINT NOT NULL , umCalendarLastChangedBy INTEGER NOT NULL , umCalendarLct BIGINT NOT NULL , umCalendarUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS Holiday ( holMasterCsn BIGINT NOT NULL , holLocalCsn BIGINT NOT NULL , holLastModBy INTEGER NOT NULL , holLct BIGINT NOT NULL , holActive BOOL NOT NULL , holHolidayCalendarUid BIGINT NOT NULL , holStartTime BIGINT NOT NULL , holEndTime BIGINT NOT NULL , holName TEXT , holUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ScheduledCheck ( checkTime BIGINT NOT NULL , checkType INTEGER NOT NULL , checkUuid TEXT , checkParameters TEXT , scClazzLogUid BIGINT NOT NULL , scheduledCheckMasterCsn BIGINT NOT NULL , scheduledCheckLocalCsn BIGINT NOT NULL , scheduledCheckLastChangedBy INTEGER NOT NULL , scheduledCheckLct BIGINT NOT NULL , scheduledCheckUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS AuditLog ( auditLogMasterChangeSeqNum BIGINT NOT NULL , auditLogLocalChangeSeqNum BIGINT NOT NULL , auditLogLastChangedBy INTEGER NOT NULL , auditLogLct BIGINT NOT NULL , auditLogActorPersonUid BIGINT NOT NULL , auditLogTableUid INTEGER NOT NULL , auditLogEntityUid BIGINT NOT NULL , auditLogDate BIGINT NOT NULL , notes TEXT , auditLogUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CustomField ( customFieldName TEXT , customFieldNameAlt TEXT , customFieldLabelMessageID INTEGER NOT NULL , customFieldIcon TEXT , customFieldIconId INTEGER NOT NULL , actionOnClick TEXT , customFieldType INTEGER NOT NULL , customFieldEntityType INTEGER NOT NULL , customFieldActive BOOL NOT NULL , customFieldDefaultValue TEXT , customFieldMCSN BIGINT NOT NULL , customFieldLCSN BIGINT NOT NULL , customFieldLCB INTEGER NOT NULL , customFieldLct BIGINT NOT NULL , customFieldInputType INTEGER NOT NULL , customFieldUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CustomFieldValue ( customFieldValueFieldUid BIGINT NOT NULL , customFieldValueEntityUid BIGINT NOT NULL , customFieldValueValue TEXT , customFieldValueCustomFieldValueOptionUid BIGINT NOT NULL , customFieldValueMCSN BIGINT NOT NULL , customFieldValueLCSN BIGINT NOT NULL , customFieldValueLCB INTEGER NOT NULL , customFieldLct BIGINT NOT NULL , customFieldValueUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CustomFieldValueOption ( customFieldValueOptionName TEXT , customFieldValueOptionFieldUid BIGINT NOT NULL , customFieldValueOptionIcon TEXT , customFieldValueOptionMessageId INTEGER NOT NULL , customFieldValueOptionActive BOOL NOT NULL , customFieldValueOptionMCSN BIGINT NOT NULL , customFieldValueOptionLCSN BIGINT NOT NULL , customFieldValueOptionLCB INTEGER NOT NULL , customFieldValueLct BIGINT NOT NULL , customFieldValueOptionUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS Person ( username TEXT , firstNames TEXT , lastName TEXT , emailAddr TEXT , phoneNum TEXT , gender INTEGER NOT NULL , active BOOL NOT NULL , admin BOOL NOT NULL , personNotes TEXT , fatherName TEXT , fatherNumber TEXT , motherName TEXT , motherNum TEXT , dateOfBirth BIGINT NOT NULL , personAddress TEXT , personOrgId TEXT , personGroupUid BIGINT NOT NULL , personMasterChangeSeqNum BIGINT NOT NULL , personLocalChangeSeqNum BIGINT NOT NULL , personLastChangedBy INTEGER NOT NULL , personLct BIGINT NOT NULL , personCountry TEXT , personType INTEGER NOT NULL DEFAULT 0 , personUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS Clazz ( clazzName TEXT , clazzDesc TEXT , attendanceAverage FLOAT NOT NULL , clazzHolidayUMCalendarUid BIGINT NOT NULL , clazzScheuleUMCalendarUid BIGINT NOT NULL , isClazzActive BOOL NOT NULL , clazzLocationUid BIGINT NOT NULL , clazzStartTime BIGINT NOT NULL , clazzEndTime BIGINT NOT NULL , clazzFeatures BIGINT NOT NULL , clazzSchoolUid BIGINT NOT NULL , clazzEnrolmentPolicy INTEGER NOT NULL DEFAULT 102 , clazzTerminologyUid BIGINT NOT NULL DEFAULT 25966 , clazzMasterChangeSeqNum BIGINT NOT NULL , clazzLocalChangeSeqNum BIGINT NOT NULL , clazzLastChangedBy INTEGER NOT NULL , clazzLct BIGINT NOT NULL , clazzTimeZone TEXT , clazzStudentsPersonGroupUid BIGINT NOT NULL , clazzTeachersPersonGroupUid BIGINT NOT NULL , clazzPendingStudentsPersonGroupUid BIGINT NOT NULL , clazzParentsPersonGroupUid BIGINT NOT NULL , clazzCode TEXT , clazzUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzEnrolment ( clazzEnrolmentPersonUid BIGINT NOT NULL , clazzEnrolmentClazzUid BIGINT NOT NULL , clazzEnrolmentDateJoined BIGINT NOT NULL , clazzEnrolmentDateLeft BIGINT NOT NULL , clazzEnrolmentRole INTEGER NOT NULL , clazzEnrolmentAttendancePercentage FLOAT NOT NULL , clazzEnrolmentActive BOOL NOT NULL , clazzEnrolmentLeavingReasonUid BIGINT NOT NULL , clazzEnrolmentOutcome INTEGER NOT NULL , clazzEnrolmentLocalChangeSeqNum BIGINT NOT NULL , clazzEnrolmentMasterChangeSeqNum BIGINT NOT NULL , clazzEnrolmentLastChangedBy INTEGER NOT NULL , clazzEnrolmentLct BIGINT NOT NULL , clazzEnrolmentUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE INDEX index_ClazzEnrolment_clazzEnrolmentPersonUid_clazzEnrolmentClazzUid ON ClazzEnrolment (clazzEnrolmentPersonUid, clazzEnrolmentClazzUid)"),t.add_11rb$("CREATE INDEX index_ClazzEnrolment_clazzEnrolmentClazzUid_clazzEnrolmentPersonUid ON ClazzEnrolment (clazzEnrolmentClazzUid, clazzEnrolmentPersonUid)"),t.add_11rb$("CREATE INDEX index_ClazzEnrolment_clazzEnrolmentClazzUid_clazzEnrolmentRole ON ClazzEnrolment (clazzEnrolmentClazzUid, clazzEnrolmentRole)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS LeavingReason ( leavingReasonTitle TEXT , leavingReasonMCSN BIGINT NOT NULL , leavingReasonCSN BIGINT NOT NULL , leavingReasonLCB INTEGER NOT NULL , leavingReasonLct BIGINT NOT NULL , leavingReasonUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContentEntry ( title TEXT , description TEXT , entryId TEXT , author TEXT , publisher TEXT , licenseType INTEGER NOT NULL , licenseName TEXT , licenseUrl TEXT , sourceUrl TEXT , thumbnailUrl TEXT , lastModified BIGINT NOT NULL , primaryLanguageUid BIGINT NOT NULL , languageVariantUid BIGINT NOT NULL , contentFlags INTEGER NOT NULL , leaf BOOL NOT NULL , publik BOOL NOT NULL , ceInactive BOOL NOT NULL , completionCriteria INTEGER NOT NULL , minScore INTEGER NOT NULL , contentTypeFlag INTEGER NOT NULL , contentOwner BIGINT NOT NULL , contentEntryLocalChangeSeqNum BIGINT NOT NULL , contentEntryMasterChangeSeqNum BIGINT NOT NULL , contentEntryLastChangedBy INTEGER NOT NULL , contentEntryLct BIGINT NOT NULL , contentEntryUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContentEntryContentCategoryJoin ( ceccjContentEntryUid BIGINT NOT NULL , ceccjContentCategoryUid BIGINT NOT NULL , ceccjLocalChangeSeqNum BIGINT NOT NULL , ceccjMasterChangeSeqNum BIGINT NOT NULL , ceccjLastChangedBy INTEGER NOT NULL , ceccjLct BIGINT NOT NULL , ceccjUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContentEntryParentChildJoin ( cepcjLocalChangeSeqNum BIGINT NOT NULL , cepcjMasterChangeSeqNum BIGINT NOT NULL , cepcjLastChangedBy INTEGER NOT NULL , cepcjLct BIGINT NOT NULL , cepcjParentContentEntryUid BIGINT NOT NULL , cepcjChildContentEntryUid BIGINT NOT NULL , childIndex INTEGER NOT NULL , cepcjUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE INDEX parent_child ON ContentEntryParentChildJoin (cepcjChildContentEntryUid, cepcjParentContentEntryUid)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContentEntryRelatedEntryJoin ( cerejContentEntryUid BIGINT NOT NULL , cerejRelatedEntryUid BIGINT NOT NULL , cerejLastChangedBy INTEGER NOT NULL , relType INTEGER NOT NULL , comment TEXT , cerejRelLanguageUid BIGINT NOT NULL , cerejLocalChangeSeqNum BIGINT NOT NULL , cerejMasterChangeSeqNum BIGINT NOT NULL , cerejLct BIGINT NOT NULL , cerejUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContentCategorySchema ( schemaName TEXT , schemaUrl TEXT , contentCategorySchemaLocalChangeSeqNum BIGINT NOT NULL , contentCategorySchemaMasterChangeSeqNum BIGINT NOT NULL , contentCategorySchemaLastChangedBy INTEGER NOT NULL , contentCategorySchemaLct BIGINT NOT NULL , contentCategorySchemaUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContentCategory ( ctnCatContentCategorySchemaUid BIGINT NOT NULL , name TEXT , contentCategoryLocalChangeSeqNum BIGINT NOT NULL , contentCategoryMasterChangeSeqNum BIGINT NOT NULL , contentCategoryLastChangedBy INTEGER NOT NULL , contentCategoryLct BIGINT NOT NULL , contentCategoryUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS Language ( name TEXT , iso_639_1_standard TEXT , iso_639_2_standard TEXT , iso_639_3_standard TEXT , Language_Type TEXT , languageActive BOOL NOT NULL , langLocalChangeSeqNum BIGINT NOT NULL , langMasterChangeSeqNum BIGINT NOT NULL , langLastChangedBy INTEGER NOT NULL , langLct BIGINT NOT NULL , langUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS LanguageVariant ( langUid BIGINT NOT NULL , countryCode TEXT , name TEXT , langVariantLocalChangeSeqNum BIGINT NOT NULL , langVariantMasterChangeSeqNum BIGINT NOT NULL , langVariantLastChangedBy INTEGER NOT NULL , langVariantLct BIGINT NOT NULL , langVariantUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS AccessToken ( token TEXT PRIMARY KEY NOT NULL , accessTokenPersonUid BIGINT NOT NULL , expires BIGINT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS PersonAuth ( passwordHash TEXT , personAuthStatus INTEGER NOT NULL , personAuthUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS Role ( roleName TEXT , roleActive BOOL NOT NULL , roleMasterCsn BIGINT NOT NULL , roleLocalCsn BIGINT NOT NULL , roleLastChangedBy INTEGER NOT NULL , roleLct BIGINT NOT NULL , rolePermissions BIGINT NOT NULL , roleUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE INDEX index_Role_rolePermissions ON Role (rolePermissions)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS EntityRole ( erMasterCsn BIGINT NOT NULL , erLocalCsn BIGINT NOT NULL , erLastChangedBy INTEGER NOT NULL , erLct BIGINT NOT NULL , erTableId INTEGER NOT NULL , erEntityUid BIGINT NOT NULL , erGroupUid BIGINT NOT NULL , erRoleUid BIGINT NOT NULL , erActive BOOL NOT NULL , erUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE INDEX index_EntityRole_erGroupUid_erRoleUid_erTableId ON EntityRole (erGroupUid, erRoleUid, erTableId)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS PersonGroup ( groupMasterCsn BIGINT NOT NULL , groupLocalCsn BIGINT NOT NULL , groupLastChangedBy INTEGER NOT NULL , groupLct BIGINT NOT NULL , groupName TEXT , groupActive BOOL NOT NULL , personGroupFlag INTEGER NOT NULL , groupUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS PersonGroupMember ( groupMemberActive BOOL NOT NULL , groupMemberPersonUid BIGINT NOT NULL , groupMemberGroupUid BIGINT NOT NULL , groupMemberMasterCsn BIGINT NOT NULL , groupMemberLocalCsn BIGINT NOT NULL , groupMemberLastChangedBy INTEGER NOT NULL , groupMemberLct BIGINT NOT NULL , groupMemberUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS PersonPicture ( personPicturePersonUid BIGINT NOT NULL , personPictureMasterCsn BIGINT NOT NULL , personPictureLocalCsn BIGINT NOT NULL , personPictureLastChangedBy INTEGER NOT NULL , personPictureLct BIGINT NOT NULL , personPictureUri TEXT , personPictureMd5 TEXT , fileSize INTEGER NOT NULL , picTimestamp BIGINT NOT NULL , mimeType TEXT , personPictureActive BOOL NOT NULL , personPictureUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ScrapeQueueItem ( sqiContentEntryParentUid BIGINT NOT NULL , sqiContentEntryUid BIGINT NOT NULL , destDir TEXT , scrapeUrl TEXT , status INTEGER NOT NULL , runId INTEGER NOT NULL , itemType INTEGER NOT NULL , errorCode INTEGER NOT NULL , contentType TEXT , timeAdded BIGINT NOT NULL , timeStarted BIGINT NOT NULL , timeFinished BIGINT NOT NULL , priority INTEGER NOT NULL , overrideEntry BOOL NOT NULL , sqiUid SERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE INDEX index_ScrapeQueueItem_status_itemType ON ScrapeQueueItem (status, itemType)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ScrapeRun ( scrapeType TEXT , scrapeRunStatus INTEGER NOT NULL , conversionParams TEXT , scrapeRunUid SERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ConnectivityStatus ( csUid INTEGER PRIMARY KEY NOT NULL , connectivityState INTEGER NOT NULL , wifiSsid TEXT , connectedOrConnecting BOOL NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS Container ( cntLocalCsn BIGINT NOT NULL , cntMasterCsn BIGINT NOT NULL , cntLastModBy INTEGER NOT NULL , cntLct BIGINT NOT NULL , fileSize BIGINT NOT NULL , containerContentEntryUid BIGINT NOT NULL , cntLastModified BIGINT NOT NULL , mimeType TEXT , remarks TEXT , mobileOptimized BOOL NOT NULL , cntNumEntries INTEGER NOT NULL , containerUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE INDEX cnt_uid_to_most_recent ON Container (containerContentEntryUid, cntLastModified)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContainerEntry ( ceContainerUid BIGINT NOT NULL , cePath TEXT , ceCefUid BIGINT NOT NULL , ceUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContainerEntryFile ( cefMd5 TEXT , cefPath TEXT , ceTotalSize BIGINT NOT NULL , ceCompressedSize BIGINT NOT NULL , compression INTEGER NOT NULL , lastModified BIGINT NOT NULL , cefUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS VerbEntity ( urlId TEXT , verbInActive BOOL NOT NULL , verbMasterChangeSeqNum BIGINT NOT NULL , verbLocalChangeSeqNum BIGINT NOT NULL , verbLastChangedBy INTEGER NOT NULL , verbLct BIGINT NOT NULL , verbUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS XObjectEntity ( objectType TEXT , objectId TEXT , definitionType TEXT , interactionType TEXT , correctResponsePattern TEXT , objectContentEntryUid BIGINT NOT NULL , objectStatementRefUid BIGINT NOT NULL DEFAULT 0 , xObjectMasterChangeSeqNum BIGINT NOT NULL , xObjectocalChangeSeqNum BIGINT NOT NULL , xObjectLastChangedBy INTEGER NOT NULL , xObjectLct BIGINT NOT NULL , xObjectUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS StatementEntity ( statementId TEXT , statementPersonUid BIGINT NOT NULL , statementVerbUid BIGINT NOT NULL , xObjectUid BIGINT NOT NULL , subStatementActorUid BIGINT NOT NULL , substatementVerbUid BIGINT NOT NULL , subStatementObjectUid BIGINT NOT NULL , agentUid BIGINT NOT NULL , instructorUid BIGINT NOT NULL , authorityUid BIGINT NOT NULL , teamUid BIGINT NOT NULL , resultCompletion BOOL NOT NULL , resultSuccess SMALLINT NOT NULL , resultScoreScaled FLOAT NOT NULL , resultScoreRaw BIGINT NOT NULL , resultScoreMin BIGINT NOT NULL , resultScoreMax BIGINT NOT NULL , resultDuration BIGINT NOT NULL , resultResponse TEXT , timestamp BIGINT NOT NULL , stored BIGINT NOT NULL , contextRegistration TEXT , contextPlatform TEXT , contextStatementId TEXT , fullStatement TEXT , statementMasterChangeSeqNum BIGINT NOT NULL , statementLocalChangeSeqNum BIGINT NOT NULL , statementLastChangedBy INTEGER NOT NULL , statementLct BIGINT NOT NULL , extensionProgress INTEGER NOT NULL , contentEntryRoot BOOL NOT NULL , statementContentEntryUid BIGINT NOT NULL , statementLearnerGroupUid BIGINT NOT NULL , statementClazzUid BIGINT NOT NULL , statementUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE INDEX index_StatementEntity_statementContentEntryUid_statementPersonUid_contentEntryRoot_timestamp_statementLocalChangeSeqNum ON StatementEntity (statementContentEntryUid, statementPersonUid, contentEntryRoot, timestamp, statementLocalChangeSeqNum)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContextXObjectStatementJoin ( contextActivityFlag INTEGER NOT NULL , contextStatementUid BIGINT NOT NULL , contextXObjectUid BIGINT NOT NULL , verbMasterChangeSeqNum BIGINT NOT NULL , verbLocalChangeSeqNum BIGINT NOT NULL , verbLastChangedBy INTEGER NOT NULL , contextXObjectLct BIGINT NOT NULL , contextXObjectStatementJoinUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS AgentEntity ( agentMbox TEXT , agentMbox_sha1sum TEXT , agentOpenid TEXT , agentAccountName TEXT , agentHomePage TEXT , agentPersonUid BIGINT NOT NULL , statementMasterChangeSeqNum BIGINT NOT NULL , statementLocalChangeSeqNum BIGINT NOT NULL , statementLastChangedBy INTEGER NOT NULL , agentLct BIGINT NOT NULL , agentUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS StateEntity ( stateId TEXT , agentUid BIGINT NOT NULL , activityId TEXT , registration TEXT , isIsactive BOOL NOT NULL , timestamp BIGINT NOT NULL , stateMasterChangeSeqNum BIGINT NOT NULL , stateLocalChangeSeqNum BIGINT NOT NULL , stateLastChangedBy INTEGER NOT NULL , stateLct BIGINT NOT NULL , stateUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS StateContentEntity ( stateContentStateUid BIGINT NOT NULL , stateContentKey TEXT , stateContentValue TEXT , isIsactive BOOL NOT NULL , stateContentMasterChangeSeqNum BIGINT NOT NULL , stateContentLocalChangeSeqNum BIGINT NOT NULL , stateContentLastChangedBy INTEGER NOT NULL , stateContentLct BIGINT NOT NULL , stateContentUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS XLangMapEntry ( verbLangMapUid BIGINT NOT NULL , objectLangMapUid BIGINT NOT NULL , languageLangMapUid BIGINT NOT NULL , languageVariantLangMapUid BIGINT NOT NULL , valueLangMap TEXT , statementLangMapMasterCsn INTEGER NOT NULL , statementLangMapLocalCsn INTEGER NOT NULL , statementLangMapLcb INTEGER NOT NULL , statementLangMapLct BIGINT NOT NULL , statementLangMapUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS SyncNode ( nodeClientId BIGINT NOT NULL , PRIMARY KEY (nodeClientId) )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS LocallyAvailableContainer ( laContainerUid BIGINT PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContainerETag ( ceContainerUid BIGINT PRIMARY KEY NOT NULL , cetag TEXT )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS School ( schoolName TEXT , schoolDesc TEXT , schoolAddress TEXT , schoolActive BOOL NOT NULL , schoolPhoneNumber TEXT , schoolGender INTEGER NOT NULL , schoolHolidayCalendarUid BIGINT NOT NULL , schoolFeatures BIGINT NOT NULL , schoolLocationLong DOUBLE PRECISION NOT NULL , schoolLocationLatt DOUBLE PRECISION NOT NULL , schoolEmailAddress TEXT , schoolTeachersPersonGroupUid BIGINT NOT NULL , schoolStudentsPersonGroupUid BIGINT NOT NULL , schoolPendingStudentsPersonGroupUid BIGINT NOT NULL , schoolCode TEXT , schoolMasterChangeSeqNum BIGINT NOT NULL , schoolLocalChangeSeqNum BIGINT NOT NULL , schoolLastChangedBy INTEGER NOT NULL , schoolLct BIGINT NOT NULL , schoolTimeZone TEXT , schoolUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS SchoolMember ( schoolMemberPersonUid BIGINT NOT NULL , schoolMemberSchoolUid BIGINT NOT NULL , schoolMemberJoinDate BIGINT NOT NULL , schoolMemberLeftDate BIGINT NOT NULL , schoolMemberRole INTEGER NOT NULL , schoolMemberActive BOOL NOT NULL , schoolMemberLocalChangeSeqNum BIGINT NOT NULL , schoolMemberMasterChangeSeqNum BIGINT NOT NULL , schoolMemberLastChangedBy INTEGER NOT NULL , schoolMemberLct BIGINT NOT NULL , schoolMemberUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE INDEX index_SchoolMember_schoolMemberSchoolUid_schoolMemberActive_schoolMemberRole ON SchoolMember (schoolMemberSchoolUid, schoolMemberActive, schoolMemberRole)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS Comments ( commentsText TEXT , commentsEntityType INTEGER NOT NULL , commentsEntityUid BIGINT NOT NULL , commentsPublic BOOL NOT NULL , commentsStatus INTEGER NOT NULL , commentsPersonUid BIGINT NOT NULL , commentsToPersonUid BIGINT NOT NULL , commentSubmitterUid BIGINT NOT NULL , commentsFlagged BOOL NOT NULL , commentsInActive BOOL NOT NULL , commentsDateTimeAdded BIGINT NOT NULL , commentsDateTimeUpdated BIGINT NOT NULL , commentsMCSN BIGINT NOT NULL , commentsLCSN BIGINT NOT NULL , commentsLCB INTEGER NOT NULL , commentsLct BIGINT NOT NULL , commentsUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS Report ( reportOwnerUid BIGINT NOT NULL , xAxis INTEGER NOT NULL , reportDateRangeSelection INTEGER NOT NULL , fromDate BIGINT NOT NULL , fromRelTo INTEGER NOT NULL , fromRelOffSet INTEGER NOT NULL , fromRelUnit INTEGER NOT NULL , toDate BIGINT NOT NULL , toRelTo INTEGER NOT NULL , toRelOffSet INTEGER NOT NULL , toRelUnit INTEGER NOT NULL , reportTitle TEXT , reportDescription TEXT , reportSeries TEXT , reportInactive BOOL NOT NULL , isTemplate BOOL NOT NULL , priority INTEGER NOT NULL , reportTitleId INTEGER NOT NULL , reportDescId INTEGER NOT NULL , reportMasterChangeSeqNum BIGINT NOT NULL , reportLocalChangeSeqNum BIGINT NOT NULL , reportLastChangedBy INTEGER NOT NULL , reportLct BIGINT NOT NULL , reportUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS Site ( sitePcsn BIGINT NOT NULL , siteLcsn BIGINT NOT NULL , siteLcb INTEGER NOT NULL , siteLct BIGINT NOT NULL , siteName TEXT , guestLogin BOOL NOT NULL , registrationAllowed BOOL NOT NULL , authSalt TEXT , siteUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContainerImportJob ( cijContainerUid BIGINT NOT NULL , cijUri TEXT , cijImportMode INTEGER NOT NULL , cijContainerBaseDir TEXT , cijContentEntryUid BIGINT NOT NULL , cijMimeType TEXT , cijSessionId TEXT , cijJobStatus INTEGER NOT NULL , cijBytesSoFar BIGINT NOT NULL , cijImportCompleted BOOL NOT NULL , cijContentLength BIGINT NOT NULL , cijContainerEntryFileUids TEXT , cijConversionParams TEXT , cijUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS LearnerGroup ( learnerGroupName TEXT , learnerGroupDescription TEXT , learnerGroupActive BOOL NOT NULL , learnerGroupMCSN BIGINT NOT NULL , learnerGroupCSN BIGINT NOT NULL , learnerGroupLCB INTEGER NOT NULL , learnerGroupLct BIGINT NOT NULL , learnerGroupUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS LearnerGroupMember ( learnerGroupMemberPersonUid BIGINT NOT NULL , learnerGroupMemberLgUid BIGINT NOT NULL , learnerGroupMemberRole INTEGER NOT NULL , learnerGroupMemberActive BOOL NOT NULL , learnerGroupMemberMCSN BIGINT NOT NULL , learnerGroupMemberCSN BIGINT NOT NULL , learnerGroupMemberLCB INTEGER NOT NULL , learnerGroupMemberLct BIGINT NOT NULL , learnerGroupMemberUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS GroupLearningSession ( groupLearningSessionContentUid BIGINT NOT NULL , groupLearningSessionLearnerGroupUid BIGINT NOT NULL , groupLearningSessionInactive BOOL NOT NULL , groupLearningSessionMCSN BIGINT NOT NULL , groupLearningSessionCSN BIGINT NOT NULL , groupLearningSessionLCB INTEGER NOT NULL , groupLearningSessionLct BIGINT NOT NULL , groupLearningSessionUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS SiteTerms ( termsHtml TEXT , sTermsLang TEXT , sTermsLangUid BIGINT NOT NULL , sTermsActive BOOL NOT NULL , sTermsLastChangedBy INTEGER NOT NULL , sTermsPrimaryCsn BIGINT NOT NULL , sTermsLocalCsn BIGINT NOT NULL , sTermsLct BIGINT NOT NULL , sTermsUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzContentJoin ( ccjContentEntryUid BIGINT NOT NULL , ccjClazzUid BIGINT NOT NULL , ccjActive BOOL NOT NULL , ccjLocalChangeSeqNum BIGINT NOT NULL , ccjMasterChangeSeqNum BIGINT NOT NULL , ccjLastChangedBy INTEGER NOT NULL , ccjLct BIGINT NOT NULL , ccjUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS PersonParentJoin ( ppjPcsn BIGINT NOT NULL , ppjLcsn BIGINT NOT NULL , ppjLcb INTEGER NOT NULL , ppjLct BIGINT NOT NULL , ppjParentPersonUid BIGINT NOT NULL , ppjMinorPersonUid BIGINT NOT NULL , ppjRelationship INTEGER NOT NULL , ppjEmail TEXT , ppjPhone TEXT , ppjInactive BOOL NOT NULL , ppjStatus INTEGER NOT NULL , ppjApprovalTiemstamp BIGINT NOT NULL , ppjApprovalIpAddr TEXT , ppjUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ScopedGrant ( sgPcsn BIGINT NOT NULL , sgLcsn BIGINT NOT NULL , sgLcb INTEGER NOT NULL , sgLct BIGINT NOT NULL , sgTableId INTEGER NOT NULL , sgEntityUid BIGINT NOT NULL , sgPermissions BIGINT NOT NULL , sgGroupUid BIGINT NOT NULL , sgIndex INTEGER NOT NULL , sgFlags INTEGER NOT NULL , sgUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE INDEX idx_group_to_entity ON ScopedGrant (sgGroupUid, sgPermissions, sgTableId, sgEntityUid)"),t.add_11rb$("CREATE INDEX idx_entity_to_group ON ScopedGrant (sgTableId, sgEntityUid, sgPermissions, sgGroupUid)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ErrorReport ( errPcsn BIGINT NOT NULL , errLcsn BIGINT NOT NULL , errLcb INTEGER NOT NULL , errLct BIGINT NOT NULL , severity INTEGER NOT NULL , timestamp BIGINT NOT NULL , presenterUri TEXT , appVersion TEXT , versionCode INTEGER NOT NULL , errorCode INTEGER NOT NULL , operatingSys TEXT , osVersion TEXT , stackTrace TEXT , message TEXT , errUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzAssignment ( caTitle TEXT , caDescription TEXT , caGroupUid BIGINT NOT NULL DEFAULT 0 , caActive BOOL NOT NULL , caClassCommentEnabled BOOL NOT NULL , caPrivateCommentsEnabled BOOL NOT NULL DEFAULT true, caCompletionCriteria INTEGER NOT NULL DEFAULT 100 , caRequireFileSubmission BOOL NOT NULL DEFAULT true, caFileType INTEGER NOT NULL DEFAULT 0 , caSizeLimit INTEGER NOT NULL DEFAULT 50 , caNumberOfFiles INTEGER NOT NULL DEFAULT 1 , caSubmissionPolicy INTEGER NOT NULL DEFAULT 1 , caMarkingType INTEGER NOT NULL DEFAULT 1 , caRequireTextSubmission BOOL NOT NULL DEFAULT true, caTextLimitType INTEGER NOT NULL DEFAULT 1 , caTextLimit INTEGER NOT NULL DEFAULT 500 , caXObjectUid BIGINT NOT NULL DEFAULT 0 , caClazzUid BIGINT NOT NULL , caLocalChangeSeqNum BIGINT NOT NULL , caMasterChangeSeqNum BIGINT NOT NULL , caLastChangedBy INTEGER NOT NULL , caLct BIGINT NOT NULL , caUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzAssignmentContentJoin ( cacjContentUid BIGINT NOT NULL , cacjAssignmentUid BIGINT NOT NULL , cacjActive BOOL NOT NULL , cacjWeight INTEGER NOT NULL DEFAULT 0 , cacjMCSN BIGINT NOT NULL , cacjLCSN BIGINT NOT NULL , cacjLCB INTEGER NOT NULL , cacjLct BIGINT NOT NULL , cacjUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CourseAssignmentSubmission ( casAssignmentUid BIGINT NOT NULL , casSubmitterUid BIGINT NOT NULL , casSubmitterPersonUid BIGINT NOT NULL , casText TEXT , casType INTEGER NOT NULL , casTimestamp BIGINT NOT NULL , casUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CourseAssignmentSubmissionAttachment ( casaSubmissionUid BIGINT NOT NULL , casaMimeType TEXT , casaFileName TEXT , casaUri TEXT , casaMd5 TEXT , casaSize INTEGER NOT NULL , casaTimestamp BIGINT NOT NULL , casaUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CourseAssignmentMark ( camAssignmentUid BIGINT NOT NULL , camSubmitterUid BIGINT NOT NULL , camMark FLOAT NOT NULL , camPenalty INTEGER NOT NULL , camLct BIGINT NOT NULL , camUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzAssignmentRollUp ( cachePersonUid BIGINT NOT NULL , cacheContentEntryUid BIGINT NOT NULL , cacheClazzAssignmentUid BIGINT NOT NULL , cacheStudentScore INTEGER NOT NULL , cacheMaxScore INTEGER NOT NULL , cacheFinalWeightScoreWithPenalty FLOAT NOT NULL DEFAULT 0 , cacheWeight INTEGER NOT NULL DEFAULT 0 , cacheProgress INTEGER NOT NULL , cacheContentComplete BOOL NOT NULL , cacheSuccess SMALLINT NOT NULL , cachePenalty INTEGER NOT NULL , lastCsnChecked BIGINT NOT NULL , cacheUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE UNIQUE INDEX index_ClazzAssignmentRollUp_cachePersonUid_cacheContentEntryUid_cacheClazzAssignmentUid ON ClazzAssignmentRollUp (cachePersonUid, cacheContentEntryUid, cacheClazzAssignmentUid)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS PersonAuth2 ( pauthUid BIGINT PRIMARY KEY NOT NULL , pauthMechanism TEXT , pauthAuth TEXT , pauthLcsn BIGINT NOT NULL , pauthPcsn BIGINT NOT NULL , pauthLcb BIGINT NOT NULL , pauthLct BIGINT NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS UserSession ( usPcsn BIGINT NOT NULL , usLcsn BIGINT NOT NULL , usLcb INTEGER NOT NULL , usLct BIGINT NOT NULL , usPersonUid BIGINT NOT NULL , usClientNodeId BIGINT NOT NULL , usStartTime BIGINT NOT NULL , usEndTime BIGINT NOT NULL , usStatus INTEGER NOT NULL , usReason INTEGER NOT NULL , usAuth TEXT , usSessionType INTEGER NOT NULL , usUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE INDEX person_status_node_idx ON UserSession (usPersonUid, usStatus, usClientNodeId)"),t.add_11rb$("CREATE INDEX node_status_person_idx ON UserSession (usClientNodeId, usStatus, usPersonUid)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContentJob ( toUri TEXT , cjProgress BIGINT NOT NULL , cjTotal BIGINT NOT NULL , cjNotificationTitle TEXT , cjIsMeteredAllowed BOOL NOT NULL , params TEXT , cjUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContentJobItem ( cjiJobUid BIGINT NOT NULL , sourceUri TEXT , cjiIsLeaf BOOL NOT NULL , cjiContentEntryUid BIGINT NOT NULL , cjiParentContentEntryUid BIGINT NOT NULL , cjiContainerUid BIGINT NOT NULL , cjiItemProgress BIGINT NOT NULL , cjiItemTotal BIGINT NOT NULL , cjiRecursiveProgress BIGINT NOT NULL , cjiRecursiveTotal BIGINT NOT NULL , cjiStatus INTEGER NOT NULL , cjiRecursiveStatus INTEGER NOT NULL , cjiConnectivityNeeded BOOL NOT NULL , cjiPluginId INTEGER NOT NULL , cjiAttemptCount INTEGER NOT NULL , cjiParentCjiUid BIGINT NOT NULL , cjiServerJobId BIGINT NOT NULL , cjiStartTime BIGINT NOT NULL , cjiFinishTime BIGINT NOT NULL , cjiUploadSessionUid TEXT , cjiContentDeletedOnCancellation BOOL NOT NULL , cjiContainerProcessed BOOL NOT NULL , cjiUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE INDEX index_ContentJobItem_cjiContentEntryUid_cjiFinishTime ON ContentJobItem (cjiContentEntryUid, cjiFinishTime)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CourseBlock ( cbType INTEGER NOT NULL , cbIndentLevel INTEGER NOT NULL , cbModuleParentBlockUid BIGINT NOT NULL , cbTitle TEXT , cbDescription TEXT , cbCompletionCriteria INTEGER NOT NULL , cbHideUntilDate BIGINT NOT NULL , cbDeadlineDate BIGINT NOT NULL , cbLateSubmissionPenalty INTEGER NOT NULL , cbGracePeriodDate BIGINT NOT NULL , cbMaxPoints INTEGER NOT NULL , cbMinPoints INTEGER NOT NULL , cbIndex INTEGER NOT NULL , cbClazzUid BIGINT NOT NULL , cbActive BOOL NOT NULL , cbHidden BOOL NOT NULL , cbEntityUid BIGINT NOT NULL , cbLct BIGINT NOT NULL , cbUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CourseTerminology ( ctTitle TEXT , ctTerminology TEXT , ctLct BIGINT NOT NULL , ctUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CourseGroupSet ( cgsName TEXT , cgsTotalGroups INTEGER NOT NULL , cgsActive BOOL NOT NULL , cgsClazzUid BIGINT NOT NULL , cgsLct BIGINT NOT NULL , cgsUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CourseGroupMember ( cgmSetUid BIGINT NOT NULL , cgmGroupNumber INTEGER NOT NULL , cgmPersonUid BIGINT NOT NULL , cgmLct BIGINT NOT NULL , cgmUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ChangeLog ( chEntityPk BIGINT NOT NULL , chTableId INTEGER NOT NULL , chType INTEGER NOT NULL , PRIMARY KEY (chTableId, chEntityPk) )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ZombieAttachmentData ( zaUri TEXT , zaUid INTEGER PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS DoorNode ( auth TEXT , nodeId BIGINT NOT NULL , rel INTEGER NOT NULL , PRIMARY KEY (nodeId) )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ReplicationStatus ( lastFetchReplicationCompleteTime BIGINT NOT NULL , lastLocalChangeTime BIGINT NOT NULL , lastRemoteChangeTime BIGINT NOT NULL , lastSendReplicationCompleteTime BIGINT NOT NULL , nodeId BIGINT NOT NULL , priority INTEGER NOT NULL , tableId INTEGER NOT NULL , repStatusId INTEGER PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE UNIQUE INDEX table_node_idx ON ReplicationStatus (tableId, nodeId)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzLogReplicate ( clPk BIGINT NOT NULL , clVersionId BIGINT NOT NULL DEFAULT 0 , clDestination BIGINT NOT NULL , clPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (clPk, clDestination) )"),t.add_11rb$("CREATE INDEX index_ClazzLogReplicate_clPk_clDestination_clVersionId ON ClazzLogReplicate (clPk, clDestination, clVersionId)"),t.add_11rb$("CREATE INDEX index_ClazzLogReplicate_clDestination_clPending ON ClazzLogReplicate (clDestination, clPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzLogAttendanceRecordReplicate ( clarPk BIGINT NOT NULL , clarVersionId BIGINT NOT NULL DEFAULT 0 , clarDestination BIGINT NOT NULL , clarPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (clarPk, clarDestination) )"),t.add_11rb$("CREATE INDEX index_ClazzLogAttendanceRecordReplicate_clarPk_clarDestination_clarVersionId ON ClazzLogAttendanceRecordReplicate (clarPk, clarDestination, clarVersionId)"),t.add_11rb$("CREATE INDEX index_ClazzLogAttendanceRecordReplicate_clarDestination_clarPending ON ClazzLogAttendanceRecordReplicate (clarDestination, clarPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CourseAssignmentSubmissionReplicate ( casPk BIGINT NOT NULL , casVersionId BIGINT NOT NULL DEFAULT 0 , casDestination BIGINT NOT NULL , casPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (casPk, casDestination) )"),t.add_11rb$("CREATE INDEX index_CourseAssignmentSubmissionReplicate_casPk_casDestination_casVersionId ON CourseAssignmentSubmissionReplicate (casPk, casDestination, casVersionId)"),t.add_11rb$("CREATE INDEX index_CourseAssignmentSubmissionReplicate_casDestination_casPending ON CourseAssignmentSubmissionReplicate (casDestination, casPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CourseAssignmentSubmissionAttachmentReplicate ( casaPk BIGINT NOT NULL , casaVersionId BIGINT NOT NULL DEFAULT 0 , casaDestination BIGINT NOT NULL , casaPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (casaPk, casaDestination) )"),t.add_11rb$("CREATE INDEX index_CourseAssignmentSubmissionAttachmentReplicate_casaPk_casaDestination_casaVersionId ON CourseAssignmentSubmissionAttachmentReplicate (casaPk, casaDestination, casaVersionId)"),t.add_11rb$("CREATE INDEX index_CourseAssignmentSubmissionAttachmentReplicate_casaDestination_casaPending ON CourseAssignmentSubmissionAttachmentReplicate (casaDestination, casaPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CourseAssignmentMarkReplicate ( camPk BIGINT NOT NULL , camVersionId BIGINT NOT NULL DEFAULT 0 , camDestination BIGINT NOT NULL , camPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (camPk, camDestination) )"),t.add_11rb$("CREATE INDEX index_CourseAssignmentMarkReplicate_camPk_camDestination_camVersionId ON CourseAssignmentMarkReplicate (camPk, camDestination, camVersionId)"),t.add_11rb$("CREATE INDEX index_CourseAssignmentMarkReplicate_camDestination_camPending ON CourseAssignmentMarkReplicate (camDestination, camPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CourseBlockReplicate ( cbPk BIGINT NOT NULL , cbVersionId BIGINT NOT NULL DEFAULT 0 , cbDestination BIGINT NOT NULL , cbPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (cbPk, cbDestination) )"),t.add_11rb$("CREATE INDEX index_CourseBlockReplicate_cbPk_cbDestination_cbVersionId ON CourseBlockReplicate (cbPk, cbDestination, cbVersionId)"),t.add_11rb$("CREATE INDEX index_CourseBlockReplicate_cbDestination_cbPending ON CourseBlockReplicate (cbDestination, cbPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CourseTerminologyReplicate ( ctPk BIGINT NOT NULL , ctVersionId BIGINT NOT NULL DEFAULT 0 , ctDestination BIGINT NOT NULL , ctPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (ctPk, ctDestination) )"),t.add_11rb$("CREATE INDEX index_CourseTerminologyReplicate_ctPk_ctDestination_ctVersionId ON CourseTerminologyReplicate (ctPk, ctDestination, ctVersionId)"),t.add_11rb$("CREATE INDEX index_CourseTerminologyReplicate_ctDestination_ctPending ON CourseTerminologyReplicate (ctDestination, ctPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CourseGroupSetReplicate ( cgsPk BIGINT NOT NULL , cgsVersionId BIGINT NOT NULL DEFAULT 0 , cgsDestination BIGINT NOT NULL , cgsPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (cgsPk, cgsDestination) )"),t.add_11rb$("CREATE INDEX index_CourseGroupSetReplicate_cgsPk_cgsDestination_cgsVersionId ON CourseGroupSetReplicate (cgsPk, cgsDestination, cgsVersionId)"),t.add_11rb$("CREATE INDEX index_CourseGroupSetReplicate_cgsDestination_cgsPending ON CourseGroupSetReplicate (cgsDestination, cgsPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CourseGroupMemberReplicate ( cgmPk BIGINT NOT NULL , cgmVersionId BIGINT NOT NULL DEFAULT 0 , cgmDestination BIGINT NOT NULL , cgmPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (cgmPk, cgmDestination) )"),t.add_11rb$("CREATE INDEX index_CourseGroupMemberReplicate_cgmPk_cgmDestination_cgmVersionId ON CourseGroupMemberReplicate (cgmPk, cgmDestination, cgmVersionId)"),t.add_11rb$("CREATE INDEX index_CourseGroupMemberReplicate_cgmDestination_cgmPending ON CourseGroupMemberReplicate (cgmDestination, cgmPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ScheduleReplicate ( schedulePk BIGINT NOT NULL , scheduleVersionId BIGINT NOT NULL DEFAULT 0 , scheduleDestination BIGINT NOT NULL , schedulePending BOOL NOT NULL DEFAULT true, PRIMARY KEY (schedulePk, scheduleDestination) )"),t.add_11rb$("CREATE INDEX index_ScheduleReplicate_schedulePk_scheduleDestination_scheduleVersionId ON ScheduleReplicate (schedulePk, scheduleDestination, scheduleVersionId)"),t.add_11rb$("CREATE INDEX index_ScheduleReplicate_scheduleDestination_schedulePending ON ScheduleReplicate (scheduleDestination, schedulePending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS HolidayCalendarReplicate ( hcPk BIGINT NOT NULL , hcVersionId BIGINT NOT NULL DEFAULT 0 , hcDestination BIGINT NOT NULL , hcPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (hcPk, hcDestination) )"),t.add_11rb$("CREATE INDEX index_HolidayCalendarReplicate_hcPk_hcDestination_hcVersionId ON HolidayCalendarReplicate (hcPk, hcDestination, hcVersionId)"),t.add_11rb$("CREATE INDEX index_HolidayCalendarReplicate_hcDestination_hcPending ON HolidayCalendarReplicate (hcDestination, hcPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS HolidayReplicate ( holidayPk BIGINT NOT NULL , holidayVersionId BIGINT NOT NULL DEFAULT 0 , holidayDestination BIGINT NOT NULL , holidayPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (holidayPk, holidayDestination) )"),t.add_11rb$("CREATE INDEX index_HolidayReplicate_holidayPk_holidayDestination_holidayVersionId ON HolidayReplicate (holidayPk, holidayDestination, holidayVersionId)"),t.add_11rb$("CREATE INDEX index_HolidayReplicate_holidayDestination_holidayPending ON HolidayReplicate (holidayDestination, holidayPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS PersonReplicate ( personPk BIGINT NOT NULL , personVersionId BIGINT NOT NULL DEFAULT 0 , personDestination BIGINT NOT NULL , personPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (personPk, personDestination) )"),t.add_11rb$("CREATE INDEX index_PersonReplicate_personPk_personDestination_personVersionId ON PersonReplicate (personPk, personDestination, personVersionId)"),t.add_11rb$("CREATE INDEX index_PersonReplicate_personDestination_personPending ON PersonReplicate (personDestination, personPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzReplicate ( clazzPk BIGINT NOT NULL , clazzVersionId BIGINT NOT NULL DEFAULT 0 , clazzDestination BIGINT NOT NULL , clazzPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (clazzPk, clazzDestination) )"),t.add_11rb$("CREATE INDEX index_ClazzReplicate_clazzPk_clazzDestination_clazzVersionId ON ClazzReplicate (clazzPk, clazzDestination, clazzVersionId)"),t.add_11rb$("CREATE INDEX index_ClazzReplicate_clazzDestination_clazzPending ON ClazzReplicate (clazzDestination, clazzPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzEnrolmentReplicate ( cePk BIGINT NOT NULL , ceVersionId BIGINT NOT NULL DEFAULT 0 , ceDestination BIGINT NOT NULL , cePending BOOL NOT NULL DEFAULT true, PRIMARY KEY (cePk, ceDestination) )"),t.add_11rb$("CREATE INDEX index_ClazzEnrolmentReplicate_cePk_ceDestination_ceVersionId ON ClazzEnrolmentReplicate (cePk, ceDestination, ceVersionId)"),t.add_11rb$("CREATE INDEX index_ClazzEnrolmentReplicate_ceDestination_cePending ON ClazzEnrolmentReplicate (ceDestination, cePending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS LeavingReasonReplicate ( lrPk BIGINT NOT NULL , lrVersionId BIGINT NOT NULL DEFAULT 0 , lrDestination BIGINT NOT NULL , lrPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (lrPk, lrDestination) )"),t.add_11rb$("CREATE INDEX index_LeavingReasonReplicate_lrPk_lrDestination_lrVersionId ON LeavingReasonReplicate (lrPk, lrDestination, lrVersionId)"),t.add_11rb$("CREATE INDEX index_LeavingReasonReplicate_lrDestination_lrPending ON LeavingReasonReplicate (lrDestination, lrPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContentEntryReplicate ( cePk BIGINT NOT NULL , ceVersionId BIGINT NOT NULL DEFAULT 0 , ceDestination BIGINT NOT NULL , cePending BOOL NOT NULL DEFAULT true, PRIMARY KEY (cePk, ceDestination) )"),t.add_11rb$("CREATE INDEX index_ContentEntryReplicate_cePk_ceDestination_ceVersionId ON ContentEntryReplicate (cePk, ceDestination, ceVersionId)"),t.add_11rb$("CREATE INDEX index_ContentEntryReplicate_ceDestination_cePending ON ContentEntryReplicate (ceDestination, cePending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContentEntryContentCategoryJoinReplicate ( ceccjPk BIGINT NOT NULL , ceccjVersionId BIGINT NOT NULL DEFAULT 0 , ceccjDestination BIGINT NOT NULL , ceccjPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (ceccjPk, ceccjDestination) )"),t.add_11rb$("CREATE INDEX index_ContentEntryContentCategoryJoinReplicate_ceccjPk_ceccjDestination_ceccjVersionId ON ContentEntryContentCategoryJoinReplicate (ceccjPk, ceccjDestination, ceccjVersionId)"),t.add_11rb$("CREATE INDEX index_ContentEntryContentCategoryJoinReplicate_ceccjDestination_ceccjPending ON ContentEntryContentCategoryJoinReplicate (ceccjDestination, ceccjPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContentEntryParentChildJoinReplicate ( cepcjPk BIGINT NOT NULL , cepcjVersionId BIGINT NOT NULL DEFAULT 0 , cepcjDestination BIGINT NOT NULL , cepcjPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (cepcjPk, cepcjDestination) )"),t.add_11rb$("CREATE INDEX index_ContentEntryParentChildJoinReplicate_cepcjPk_cepcjDestination_cepcjVersionId ON ContentEntryParentChildJoinReplicate (cepcjPk, cepcjDestination, cepcjVersionId)"),t.add_11rb$("CREATE INDEX index_ContentEntryParentChildJoinReplicate_cepcjDestination_cepcjPending ON ContentEntryParentChildJoinReplicate (cepcjDestination, cepcjPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContentEntryRelatedEntryJoinReplicate ( cerejPk BIGINT NOT NULL , cerejVersionId BIGINT NOT NULL DEFAULT 0 , cerejDestination BIGINT NOT NULL , cerejPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (cerejPk, cerejDestination) )"),t.add_11rb$("CREATE INDEX index_ContentEntryRelatedEntryJoinReplicate_cerejPk_cerejDestination_cerejVersionId ON ContentEntryRelatedEntryJoinReplicate (cerejPk, cerejDestination, cerejVersionId)"),t.add_11rb$("CREATE INDEX index_ContentEntryRelatedEntryJoinReplicate_cerejDestination_cerejPending ON ContentEntryRelatedEntryJoinReplicate (cerejDestination, cerejPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContentCategorySchemaReplicate ( ccsPk BIGINT NOT NULL , ccsVersionId BIGINT NOT NULL DEFAULT 0 , ccsDestination BIGINT NOT NULL , ccsPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (ccsPk, ccsDestination) )"),t.add_11rb$("CREATE INDEX index_ContentCategorySchemaReplicate_ccsPk_ccsDestination_ccsVersionId ON ContentCategorySchemaReplicate (ccsPk, ccsDestination, ccsVersionId)"),t.add_11rb$("CREATE INDEX index_ContentCategorySchemaReplicate_ccsDestination_ccsPending ON ContentCategorySchemaReplicate (ccsDestination, ccsPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContentCategoryReplicate ( ccPk BIGINT NOT NULL , ccVersionId BIGINT NOT NULL DEFAULT 0 , ccDestination BIGINT NOT NULL , ccPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (ccPk, ccDestination) )"),t.add_11rb$("CREATE INDEX index_ContentCategoryReplicate_ccPk_ccDestination_ccVersionId ON ContentCategoryReplicate (ccPk, ccDestination, ccVersionId)"),t.add_11rb$("CREATE INDEX index_ContentCategoryReplicate_ccDestination_ccPending ON ContentCategoryReplicate (ccDestination, ccPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS LanguageReplicate ( languagePk BIGINT NOT NULL , languageVersionId BIGINT NOT NULL DEFAULT 0 , languageDestination BIGINT NOT NULL , languagePending BOOL NOT NULL DEFAULT true, PRIMARY KEY (languagePk, languageDestination) )"),t.add_11rb$("CREATE INDEX index_LanguageReplicate_languagePk_languageDestination_languageVersionId ON LanguageReplicate (languagePk, languageDestination, languageVersionId)"),t.add_11rb$("CREATE INDEX index_LanguageReplicate_languageDestination_languagePending ON LanguageReplicate (languageDestination, languagePending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS LanguageVariantReplicate ( lvPk BIGINT NOT NULL , lvVersionId BIGINT NOT NULL DEFAULT 0 , lvDestination BIGINT NOT NULL , lvPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (lvPk, lvDestination) )"),t.add_11rb$("CREATE INDEX index_LanguageVariantReplicate_lvPk_lvDestination_lvVersionId ON LanguageVariantReplicate (lvPk, lvDestination, lvVersionId)"),t.add_11rb$("CREATE INDEX index_LanguageVariantReplicate_lvDestination_lvPending ON LanguageVariantReplicate (lvDestination, lvPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS PersonGroupReplicate ( pgPk BIGINT NOT NULL , pgVersionId BIGINT NOT NULL DEFAULT 0 , pgDestination BIGINT NOT NULL , pgPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (pgPk, pgDestination) )"),t.add_11rb$("CREATE INDEX index_PersonGroupReplicate_pgPk_pgDestination_pgVersionId ON PersonGroupReplicate (pgPk, pgDestination, pgVersionId)"),t.add_11rb$("CREATE INDEX index_PersonGroupReplicate_pgDestination_pgPending ON PersonGroupReplicate (pgDestination, pgPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS PersonGroupMemberReplicate ( pgmPk BIGINT NOT NULL , pgmVersionId BIGINT NOT NULL DEFAULT 0 , pgmDestination BIGINT NOT NULL , pgmPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (pgmPk, pgmDestination) )"),t.add_11rb$("CREATE INDEX index_PersonGroupMemberReplicate_pgmPk_pgmDestination_pgmVersionId ON PersonGroupMemberReplicate (pgmPk, pgmDestination, pgmVersionId)"),t.add_11rb$("CREATE INDEX index_PersonGroupMemberReplicate_pgmDestination_pgmPending ON PersonGroupMemberReplicate (pgmDestination, pgmPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS PersonPictureReplicate ( ppPk BIGINT NOT NULL , ppVersionId BIGINT NOT NULL DEFAULT 0 , ppDestination BIGINT NOT NULL , ppPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (ppPk, ppDestination) )"),t.add_11rb$("CREATE INDEX index_PersonPictureReplicate_ppPk_ppDestination_ppVersionId ON PersonPictureReplicate (ppPk, ppDestination, ppVersionId)"),t.add_11rb$("CREATE INDEX index_PersonPictureReplicate_ppDestination_ppPending ON PersonPictureReplicate (ppDestination, ppPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContainerReplicate ( containerPk BIGINT NOT NULL , containerVersionId BIGINT NOT NULL DEFAULT 0 , containerDestination BIGINT NOT NULL , containerPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (containerPk, containerDestination) )"),t.add_11rb$("CREATE INDEX index_ContainerReplicate_containerPk_containerDestination_containerVersionId ON ContainerReplicate (containerPk, containerDestination, containerVersionId)"),t.add_11rb$("CREATE INDEX index_ContainerReplicate_containerDestination_containerPending ON ContainerReplicate (containerDestination, containerPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS VerbEntityReplicate ( vePk BIGINT NOT NULL , veVersionId BIGINT NOT NULL DEFAULT 0 , veDestination BIGINT NOT NULL , vePending BOOL NOT NULL DEFAULT true, PRIMARY KEY (vePk, veDestination) )"),t.add_11rb$("CREATE INDEX index_VerbEntityReplicate_vePk_veDestination_veVersionId ON VerbEntityReplicate (vePk, veDestination, veVersionId)"),t.add_11rb$("CREATE INDEX index_VerbEntityReplicate_veDestination_vePending ON VerbEntityReplicate (veDestination, vePending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS XObjectEntityReplicate ( xoePk BIGINT NOT NULL , xoeVersionId BIGINT NOT NULL DEFAULT 0 , xoeDestination BIGINT NOT NULL , xoePending BOOL NOT NULL DEFAULT true, PRIMARY KEY (xoePk, xoeDestination) )"),t.add_11rb$("CREATE INDEX index_XObjectEntityReplicate_xoePk_xoeDestination_xoeVersionId ON XObjectEntityReplicate (xoePk, xoeDestination, xoeVersionId)"),t.add_11rb$("CREATE INDEX index_XObjectEntityReplicate_xoeDestination_xoePending ON XObjectEntityReplicate (xoeDestination, xoePending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS StatementEntityReplicate ( sePk BIGINT NOT NULL , seVersionId BIGINT NOT NULL DEFAULT 0 , seDestination BIGINT NOT NULL , sePending BOOL NOT NULL DEFAULT true, PRIMARY KEY (sePk, seDestination) )"),t.add_11rb$("CREATE INDEX index_StatementEntityReplicate_sePk_seDestination_seVersionId ON StatementEntityReplicate (sePk, seDestination, seVersionId)"),t.add_11rb$("CREATE INDEX index_StatementEntityReplicate_seDestination_sePending ON StatementEntityReplicate (seDestination, sePending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContextXObjectStatementJoinReplicate ( cxosjPk BIGINT NOT NULL , cxosjVersionId BIGINT NOT NULL DEFAULT 0 , cxosjDestination BIGINT NOT NULL , cxosjPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (cxosjPk, cxosjDestination) )"),t.add_11rb$("CREATE INDEX index_ContextXObjectStatementJoinReplicate_cxosjPk_cxosjDestination_cxosjVersionId ON ContextXObjectStatementJoinReplicate (cxosjPk, cxosjDestination, cxosjVersionId)"),t.add_11rb$("CREATE INDEX index_ContextXObjectStatementJoinReplicate_cxosjDestination_cxosjPending ON ContextXObjectStatementJoinReplicate (cxosjDestination, cxosjPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS AgentEntityReplicate ( aePk BIGINT NOT NULL , aeVersionId BIGINT NOT NULL DEFAULT 0 , aeDestination BIGINT NOT NULL , aePending BOOL NOT NULL DEFAULT true, PRIMARY KEY (aePk, aeDestination) )"),t.add_11rb$("CREATE INDEX index_AgentEntityReplicate_aePk_aeDestination_aeVersionId ON AgentEntityReplicate (aePk, aeDestination, aeVersionId)"),t.add_11rb$("CREATE INDEX index_AgentEntityReplicate_aeDestination_aePending ON AgentEntityReplicate (aeDestination, aePending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS StateEntityReplicate ( sePk BIGINT NOT NULL , seVersionId BIGINT NOT NULL DEFAULT 0 , seDestination BIGINT NOT NULL , sePending BOOL NOT NULL DEFAULT true, PRIMARY KEY (sePk, seDestination) )"),t.add_11rb$("CREATE INDEX index_StateEntityReplicate_sePk_seDestination_seVersionId ON StateEntityReplicate (sePk, seDestination, seVersionId)"),t.add_11rb$("CREATE INDEX index_StateEntityReplicate_seDestination_sePending ON StateEntityReplicate (seDestination, sePending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS StateContentEntityReplicate ( scePk BIGINT NOT NULL , sceVersionId BIGINT NOT NULL DEFAULT 0 , sceDestination BIGINT NOT NULL , scePending BOOL NOT NULL DEFAULT true, PRIMARY KEY (scePk, sceDestination) )"),t.add_11rb$("CREATE INDEX index_StateContentEntityReplicate_scePk_sceDestination_sceVersionId ON StateContentEntityReplicate (scePk, sceDestination, sceVersionId)"),t.add_11rb$("CREATE INDEX index_StateContentEntityReplicate_sceDestination_scePending ON StateContentEntityReplicate (sceDestination, scePending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS XLangMapEntryReplicate ( xlmePk BIGINT NOT NULL , xlmeVersionId BIGINT NOT NULL DEFAULT 0 , xlmeDestination BIGINT NOT NULL , xlmePending BOOL NOT NULL DEFAULT true, PRIMARY KEY (xlmePk, xlmeDestination) )"),t.add_11rb$("CREATE INDEX index_XLangMapEntryReplicate_xlmePk_xlmeDestination_xlmeVersionId ON XLangMapEntryReplicate (xlmePk, xlmeDestination, xlmeVersionId)"),t.add_11rb$("CREATE INDEX index_XLangMapEntryReplicate_xlmeDestination_xlmePending ON XLangMapEntryReplicate (xlmeDestination, xlmePending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS SchoolReplicate ( schoolPk BIGINT NOT NULL , schoolVersionId BIGINT NOT NULL DEFAULT 0 , schoolDestination BIGINT NOT NULL , schoolPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (schoolPk, schoolDestination) )"),t.add_11rb$("CREATE INDEX index_SchoolReplicate_schoolPk_schoolDestination_schoolVersionId ON SchoolReplicate (schoolPk, schoolDestination, schoolVersionId)"),t.add_11rb$("CREATE INDEX index_SchoolReplicate_schoolDestination_schoolPending ON SchoolReplicate (schoolDestination, schoolPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS SchoolMemberReplicate ( smPk BIGINT NOT NULL , smVersionId BIGINT NOT NULL DEFAULT 0 , smDestination BIGINT NOT NULL , smPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (smPk, smDestination) )"),t.add_11rb$("CREATE INDEX index_SchoolMemberReplicate_smPk_smDestination_smVersionId ON SchoolMemberReplicate (smPk, smDestination, smVersionId)"),t.add_11rb$("CREATE INDEX index_SchoolMemberReplicate_smDestination_smPending ON SchoolMemberReplicate (smDestination, smPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CommentsReplicate ( commentsPk BIGINT NOT NULL , commentsVersionId BIGINT NOT NULL DEFAULT 0 , commentsDestination BIGINT NOT NULL , commentsPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (commentsPk, commentsDestination) )"),t.add_11rb$("CREATE INDEX index_CommentsReplicate_commentsPk_commentsDestination_commentsVersionId ON CommentsReplicate (commentsPk, commentsDestination, commentsVersionId)"),t.add_11rb$("CREATE INDEX index_CommentsReplicate_commentsDestination_commentsPending ON CommentsReplicate (commentsDestination, commentsPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ReportReplicate ( reportPk BIGINT NOT NULL , reportVersionId BIGINT NOT NULL DEFAULT 0 , reportDestination BIGINT NOT NULL , reportPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (reportPk, reportDestination) )"),t.add_11rb$("CREATE INDEX index_ReportReplicate_reportPk_reportDestination_reportVersionId ON ReportReplicate (reportPk, reportDestination, reportVersionId)"),t.add_11rb$("CREATE INDEX index_ReportReplicate_reportDestination_reportPending ON ReportReplicate (reportDestination, reportPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS SiteReplicate ( sitePk BIGINT NOT NULL , siteVersionId BIGINT NOT NULL DEFAULT 0 , siteDestination BIGINT NOT NULL , sitePending BOOL NOT NULL DEFAULT true, PRIMARY KEY (sitePk, siteDestination) )"),t.add_11rb$("CREATE INDEX index_SiteReplicate_sitePk_siteDestination_siteVersionId ON SiteReplicate (sitePk, siteDestination, siteVersionId)"),t.add_11rb$("CREATE INDEX index_SiteReplicate_siteDestination_sitePending ON SiteReplicate (siteDestination, sitePending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS LearnerGroupReplicate ( lgPk BIGINT NOT NULL , lgVersionId BIGINT NOT NULL DEFAULT 0 , lgDestination BIGINT NOT NULL , lgPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (lgPk, lgDestination) )"),t.add_11rb$("CREATE INDEX index_LearnerGroupReplicate_lgPk_lgDestination_lgVersionId ON LearnerGroupReplicate (lgPk, lgDestination, lgVersionId)"),t.add_11rb$("CREATE INDEX index_LearnerGroupReplicate_lgDestination_lgPending ON LearnerGroupReplicate (lgDestination, lgPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS LearnerGroupMemberReplicate ( lgmPk BIGINT NOT NULL , lgmVersionId BIGINT NOT NULL DEFAULT 0 , lgmDestination BIGINT NOT NULL , lgmPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (lgmPk, lgmDestination) )"),t.add_11rb$("CREATE INDEX index_LearnerGroupMemberReplicate_lgmPk_lgmDestination_lgmVersionId ON LearnerGroupMemberReplicate (lgmPk, lgmDestination, lgmVersionId)"),t.add_11rb$("CREATE INDEX index_LearnerGroupMemberReplicate_lgmDestination_lgmPending ON LearnerGroupMemberReplicate (lgmDestination, lgmPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS GroupLearningSessionReplicate ( glsPk BIGINT NOT NULL , glsVersionId BIGINT NOT NULL DEFAULT 0 , glsDestination BIGINT NOT NULL , glsPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (glsPk, glsDestination) )"),t.add_11rb$("CREATE INDEX index_GroupLearningSessionReplicate_glsPk_glsDestination_glsVersionId ON GroupLearningSessionReplicate (glsPk, glsDestination, glsVersionId)"),t.add_11rb$("CREATE INDEX index_GroupLearningSessionReplicate_glsDestination_glsPending ON GroupLearningSessionReplicate (glsDestination, glsPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS SiteTermsReplicate ( stPk BIGINT NOT NULL , stVersionId BIGINT NOT NULL DEFAULT 0 , stDestination BIGINT NOT NULL , stPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (stPk, stDestination) )"),t.add_11rb$("CREATE INDEX index_SiteTermsReplicate_stPk_stDestination_stVersionId ON SiteTermsReplicate (stPk, stDestination, stVersionId)"),t.add_11rb$("CREATE INDEX index_SiteTermsReplicate_stDestination_stPending ON SiteTermsReplicate (stDestination, stPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzContentJoinReplicate ( ccjPk BIGINT NOT NULL , ccjVersionId BIGINT NOT NULL DEFAULT 0 , ccjDestination BIGINT NOT NULL , ccjPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (ccjPk, ccjDestination) )"),t.add_11rb$("CREATE INDEX index_ClazzContentJoinReplicate_ccjPk_ccjDestination_ccjVersionId ON ClazzContentJoinReplicate (ccjPk, ccjDestination, ccjVersionId)"),t.add_11rb$("CREATE INDEX index_ClazzContentJoinReplicate_ccjDestination_ccjPending ON ClazzContentJoinReplicate (ccjDestination, ccjPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS PersonParentJoinReplicate ( ppjPk BIGINT NOT NULL , ppjVersionId BIGINT NOT NULL DEFAULT 0 , ppjDestination BIGINT NOT NULL , ppjPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (ppjPk, ppjDestination) )"),t.add_11rb$("CREATE INDEX index_PersonParentJoinReplicate_ppjPk_ppjDestination_ppjVersionId ON PersonParentJoinReplicate (ppjPk, ppjDestination, ppjVersionId)"),t.add_11rb$("CREATE INDEX index_PersonParentJoinReplicate_ppjDestination_ppjPending ON PersonParentJoinReplicate (ppjDestination, ppjPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ScopedGrantReplicate ( sgPk BIGINT NOT NULL , sgVersionId BIGINT NOT NULL DEFAULT 0 , sgDestination BIGINT NOT NULL , sgPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (sgPk, sgDestination) )"),t.add_11rb$("CREATE INDEX index_ScopedGrantReplicate_sgPk_sgDestination_sgVersionId ON ScopedGrantReplicate (sgPk, sgDestination, sgVersionId)"),t.add_11rb$("CREATE INDEX index_ScopedGrantReplicate_sgDestination_sgPending ON ScopedGrantReplicate (sgDestination, sgPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ErrorReportReplicate ( erPk BIGINT NOT NULL , erVersionId BIGINT NOT NULL DEFAULT 0 , erDestination BIGINT NOT NULL , erPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (erPk, erDestination) )"),t.add_11rb$("CREATE INDEX index_ErrorReportReplicate_erPk_erDestination_erVersionId ON ErrorReportReplicate (erPk, erDestination, erVersionId)"),t.add_11rb$("CREATE INDEX index_ErrorReportReplicate_erDestination_erPending ON ErrorReportReplicate (erDestination, erPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzAssignmentReplicate ( caPk BIGINT NOT NULL , caVersionId BIGINT NOT NULL DEFAULT 0 , caDestination BIGINT NOT NULL , caPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (caPk, caDestination) )"),t.add_11rb$("CREATE INDEX index_ClazzAssignmentReplicate_caPk_caDestination_caVersionId ON ClazzAssignmentReplicate (caPk, caDestination, caVersionId)"),t.add_11rb$("CREATE INDEX index_ClazzAssignmentReplicate_caDestination_caPending ON ClazzAssignmentReplicate (caDestination, caPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzAssignmentContentJoinReplicate ( cacjPk BIGINT NOT NULL , cacjVersionId BIGINT NOT NULL DEFAULT 0 , cacjDestination BIGINT NOT NULL , cacjPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (cacjPk, cacjDestination) )"),t.add_11rb$("CREATE INDEX index_ClazzAssignmentContentJoinReplicate_cacjPk_cacjDestination_cacjVersionId ON ClazzAssignmentContentJoinReplicate (cacjPk, cacjDestination, cacjVersionId)"),t.add_11rb$("CREATE INDEX index_ClazzAssignmentContentJoinReplicate_cacjDestination_cacjPending ON ClazzAssignmentContentJoinReplicate (cacjDestination, cacjPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS PersonAuth2Replicate ( paPk BIGINT NOT NULL , paVersionId BIGINT NOT NULL DEFAULT 0 , paDestination BIGINT NOT NULL , paPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (paPk, paDestination) )"),t.add_11rb$("CREATE INDEX index_PersonAuth2Replicate_paPk_paDestination_paVersionId ON PersonAuth2Replicate (paPk, paDestination, paVersionId)"),t.add_11rb$("CREATE INDEX index_PersonAuth2Replicate_paDestination_paPending ON PersonAuth2Replicate (paDestination, paPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS UserSessionReplicate ( usPk BIGINT NOT NULL , usVersionId BIGINT NOT NULL DEFAULT 0 , usDestination BIGINT NOT NULL , usPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (usPk, usDestination) )"),t.add_11rb$("CREATE INDEX index_UserSessionReplicate_usPk_usDestination_usVersionId ON UserSessionReplicate (usPk, usDestination, usVersionId)"),t.add_11rb$("CREATE INDEX index_UserSessionReplicate_usDestination_usPending ON UserSessionReplicate (usDestination, usPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CoursePicture ( coursePictureClazzUid BIGINT NOT NULL , coursePictureMasterCsn BIGINT NOT NULL , coursePictureLocalCsn BIGINT NOT NULL , coursePictureLastChangedBy INTEGER NOT NULL , coursePictureLct BIGINT NOT NULL , coursePictureUri TEXT , coursePictureMd5 TEXT , coursePictureFileSize INTEGER NOT NULL , coursePictureTimestamp BIGINT NOT NULL , coursePictureMimeType TEXT , coursePictureActive BOOL NOT NULL , coursePictureUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CoursePictureReplicate ( cpPk BIGINT NOT NULL , cpVersionId BIGINT NOT NULL DEFAULT 0 , cpDestination BIGINT NOT NULL , cpPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (cpPk, cpDestination) )"),t.add_11rb$("CREATE INDEX index_CoursePictureReplicate_cpPk_cpDestination_cpVersionId ON CoursePictureReplicate (cpPk, cpDestination, cpVersionId)"),t.add_11rb$("CREATE INDEX index_CoursePictureReplicate_cpDestination_cpPending ON CoursePictureReplicate (cpDestination, cpPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContentEntryPicture ( cepContentEntryUid BIGINT NOT NULL , cepUri TEXT , cepMd5 TEXT , cepFileSize INTEGER NOT NULL , cepTimestamp BIGINT NOT NULL , cepMimeType TEXT , cepActive BOOL NOT NULL , cepUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ContentEntryPictureReplicate ( cepPk BIGINT NOT NULL , cepVersionId BIGINT NOT NULL DEFAULT 0 , cepDestination BIGINT NOT NULL , cepPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (cepPk, cepDestination) )"),t.add_11rb$("CREATE INDEX index_ContentEntryPictureReplicate_cepPk_cepDestination_cepVersionId ON ContentEntryPictureReplicate (cepPk, cepDestination, cepVersionId)"),t.add_11rb$("CREATE INDEX index_ContentEntryPictureReplicate_cepDestination_cepPending ON ContentEntryPictureReplicate (cepDestination, cepPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS Chat ( chatStartDate BIGINT NOT NULL , chatTitle TEXT , chatGroup BOOL NOT NULL , chatLct BIGINT NOT NULL , chatUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ChatMember ( chatMemberChatUid BIGINT NOT NULL , chatMemberPersonUid BIGINT NOT NULL , chatMemberJoinedDate BIGINT NOT NULL , chatMemberLeftDate BIGINT NOT NULL , chatMemberLct BIGINT NOT NULL , chatMemberUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS Message ( messageSenderPersonUid BIGINT NOT NULL , messageTableId INTEGER NOT NULL , messageEntityUid BIGINT NOT NULL , messageText TEXT , messageTimestamp BIGINT NOT NULL , messageClazzUid BIGINT NOT NULL , messageLct BIGINT NOT NULL , messageUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS MessageReplicate ( messagePk BIGINT NOT NULL , messageVersionId BIGINT NOT NULL DEFAULT 0 , messageDestination BIGINT NOT NULL , messagePending BOOL NOT NULL DEFAULT true, PRIMARY KEY (messagePk, messageDestination) )"),t.add_11rb$("CREATE INDEX index_MessageReplicate_messagePk_messageDestination_messageVersionId ON MessageReplicate (messagePk, messageDestination, messageVersionId)"),t.add_11rb$("CREATE INDEX index_MessageReplicate_messageDestination_messagePending ON MessageReplicate (messageDestination, messagePending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ChatReplicate ( chatPk BIGINT NOT NULL , chatVersionId BIGINT NOT NULL DEFAULT 0 , chatDestination BIGINT NOT NULL , chatPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (chatPk, chatDestination) )"),t.add_11rb$("CREATE INDEX index_ChatReplicate_chatPk_chatDestination_chatVersionId ON ChatReplicate (chatPk, chatDestination, chatVersionId)"),t.add_11rb$("CREATE INDEX index_ChatReplicate_chatDestination_chatPending ON ChatReplicate (chatDestination, chatPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS ChatMemberReplicate ( chatMemberPk BIGINT NOT NULL , chatMemberVersionId BIGINT NOT NULL DEFAULT 0 , chatMemberDestination BIGINT NOT NULL , chatMemberPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (chatMemberPk, chatMemberDestination) )"),t.add_11rb$("CREATE INDEX index_ChatMemberReplicate_chatMemberPk_chatMemberDestination_chatMemberVersionId ON ChatMemberReplicate (chatMemberPk, chatMemberDestination, chatMemberVersionId)"),t.add_11rb$("CREATE INDEX index_ChatMemberReplicate_chatMemberDestination_chatMemberPending ON ChatMemberReplicate (chatMemberDestination, chatMemberPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS MessageRead ( messageReadPersonUid BIGINT NOT NULL , messageReadMessageUid BIGINT NOT NULL , messageReadEntityUid BIGINT NOT NULL , messageReadLct BIGINT NOT NULL , messageReadUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS MessageReadReplicate ( messageReadPk BIGINT NOT NULL , messageReadVersionId BIGINT NOT NULL DEFAULT 0 , messageReadDestination BIGINT NOT NULL , messageReadPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (messageReadPk, messageReadDestination) )"),t.add_11rb$("CREATE INDEX index_MessageReadReplicate_messageReadPk_messageReadDestination_messageReadVersionId ON MessageReadReplicate (messageReadPk, messageReadDestination, messageReadVersionId)"),t.add_11rb$("CREATE INDEX index_MessageReadReplicate_messageReadDestination_messageReadPending ON MessageReadReplicate (messageReadDestination, messageReadPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CourseDiscussion ( courseDiscussionTitle TEXT , courseDiscussionDesc TEXT , courseDiscussionClazzUid BIGINT NOT NULL , courseDiscussionActive BOOL NOT NULL , courseDiscussionLct BIGINT NOT NULL , courseDiscussionUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS CourseDiscussionReplicate ( courseDiscussionPk BIGINT NOT NULL , courseDiscussionVersionId BIGINT NOT NULL DEFAULT 0 , courseDiscussionDestination BIGINT NOT NULL , courseDiscussionPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (courseDiscussionPk, courseDiscussionDestination) )"),t.add_11rb$("CREATE INDEX index_CourseDiscussionReplicate_courseDiscussionPk_courseDiscussionDestination_courseDiscussionVersionId ON CourseDiscussionReplicate (courseDiscussionPk, courseDiscussionDestination, courseDiscussionVersionId)"),t.add_11rb$("CREATE INDEX index_CourseDiscussionReplicate_courseDiscussionDestination_courseDiscussionPending ON CourseDiscussionReplicate (courseDiscussionDestination, courseDiscussionPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS DiscussionTopic ( discussionTopicTitle TEXT , discussionTopicDesc TEXT , discussionTopicStartDate BIGINT NOT NULL , discussionTopicCourseDiscussionUid BIGINT NOT NULL , discussionTopicVisible BOOL NOT NULL , discussionTopicArchive BOOL NOT NULL , discussionTopicIndex INTEGER NOT NULL , discussionTopicClazzUid BIGINT NOT NULL , discussionTopicLct BIGINT NOT NULL , discussionTopicUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS DiscussionTopicReplicate ( discussionTopicPk BIGINT NOT NULL , discussionTopicVersionId BIGINT NOT NULL DEFAULT 0 , discussionTopicDestination BIGINT NOT NULL , discussionTopicPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (discussionTopicPk, discussionTopicDestination) )"),t.add_11rb$("CREATE INDEX index_DiscussionTopicReplicate_discussionTopicPk_discussionTopicDestination_discussionTopicVersionId ON DiscussionTopicReplicate (discussionTopicPk, discussionTopicDestination, discussionTopicVersionId)"),t.add_11rb$("CREATE INDEX index_DiscussionTopicReplicate_discussionTopicDestination_discussionTopicPending ON DiscussionTopicReplicate (discussionTopicDestination, discussionTopicPending)"),t.add_11rb$("CREATE TABLE IF NOT EXISTS DiscussionPost ( discussionPostTitle TEXT , discussionPostMessage TEXT , discussionPostStartDate BIGINT NOT NULL , discussionPostDiscussionTopicUid BIGINT NOT NULL , discussionPostVisible BOOL NOT NULL , discussionPostArchive BOOL NOT NULL , discussionPostStartedPersonUid BIGINT NOT NULL , discussionPostClazzUid BIGINT NOT NULL , discussionPostLct BIGINT NOT NULL , discussionPostUid BIGSERIAL PRIMARY KEY NOT NULL )"),t.add_11rb$("CREATE TABLE IF NOT EXISTS DiscussionPostReplicate ( discussionPostPk BIGINT NOT NULL , discussionPostVersionId BIGINT NOT NULL DEFAULT 0 , discussionPostDestination BIGINT NOT NULL , discussionPostPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (discussionPostPk, discussionPostDestination) )"),t.add_11rb$("CREATE INDEX index_DiscussionPostReplicate_discussionPostPk_discussionPostDestination_discussionPostVersionId ON DiscussionPostReplicate (discussionPostPk, discussionPostDestination, discussionPostVersionId)"),t.add_11rb$("CREATE INDEX index_DiscussionPostReplicate_discussionPostDestination_discussionPostPending ON DiscussionPostReplicate (discussionPostDestination, discussionPostPending)"),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_14_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (14, NEW.clazzLogUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_14_trig AFTER UPDATE OR INSERT ON ClazzLog FOR EACH ROW EXECUTE PROCEDURE ch_upd_14_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_14_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (14, OLD.clazzLogUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_14_trig AFTER DELETE ON ClazzLog FOR EACH ROW EXECUTE PROCEDURE ch_del_14_fn(); "),t.add_11rb$("CREATE VIEW ClazzLog_ReceiveView AS SELECT ClazzLog.*, ClazzLogReplicate.* FROM ClazzLog LEFT JOIN ClazzLogReplicate ON ClazzLogReplicate.clPk = ClazzLog.clazzLogUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION clazzlog_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ClazzLog(clazzLogUid, clazzLogClazzUid, logDate, timeRecorded, clazzLogDone, cancellationNote, clazzLogCancelled, clazzLogNumPresent, clazzLogNumAbsent, clazzLogNumPartial, clazzLogScheduleUid, clazzLogStatusFlag, clazzLogMSQN, clazzLogLCSN, clazzLogLCB, clazzLogLastChangedTime) VALUES (NEW.clazzLogUid, NEW.clazzLogClazzUid, NEW.logDate, NEW.timeRecorded, NEW.clazzLogDone, NEW.cancellationNote, NEW.clazzLogCancelled, NEW.clazzLogNumPresent, NEW.clazzLogNumAbsent, NEW.clazzLogNumPartial, NEW.clazzLogScheduleUid, NEW.clazzLogStatusFlag, NEW.clazzLogMSQN, NEW.clazzLogLCSN, NEW.clazzLogLCB, NEW.clazzLogLastChangedTime) ON CONFLICT (clazzLogUid) DO UPDATE SET clazzLogClazzUid = EXCLUDED.clazzLogClazzUid, logDate = EXCLUDED.logDate, timeRecorded = EXCLUDED.timeRecorded, clazzLogDone = EXCLUDED.clazzLogDone, cancellationNote = EXCLUDED.cancellationNote, clazzLogCancelled = EXCLUDED.clazzLogCancelled, clazzLogNumPresent = EXCLUDED.clazzLogNumPresent, clazzLogNumAbsent = EXCLUDED.clazzLogNumAbsent, clazzLogNumPartial = EXCLUDED.clazzLogNumPartial, clazzLogScheduleUid = EXCLUDED.clazzLogScheduleUid, clazzLogStatusFlag = EXCLUDED.clazzLogStatusFlag, clazzLogMSQN = EXCLUDED.clazzLogMSQN, clazzLogLCSN = EXCLUDED.clazzLogLCSN, clazzLogLCB = EXCLUDED.clazzLogLCB, clazzLogLastChangedTime = EXCLUDED.clazzLogLastChangedTime ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER clazzlog_remote_insert_trig INSTEAD OF INSERT ON ClazzLog_ReceiveView FOR EACH ROW EXECUTE PROCEDURE clazzlog_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_15_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (15, NEW.clazzLogAttendanceRecordUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_15_trig AFTER UPDATE OR INSERT ON ClazzLogAttendanceRecord FOR EACH ROW EXECUTE PROCEDURE ch_upd_15_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_15_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (15, OLD.clazzLogAttendanceRecordUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_15_trig AFTER DELETE ON ClazzLogAttendanceRecord FOR EACH ROW EXECUTE PROCEDURE ch_del_15_fn(); "),t.add_11rb$("CREATE VIEW ClazzLogAttendanceRecord_ReceiveView AS SELECT ClazzLogAttendanceRecord.*, ClazzLogAttendanceRecordReplicate.* FROM ClazzLogAttendanceRecord LEFT JOIN ClazzLogAttendanceRecordReplicate ON ClazzLogAttendanceRecordReplicate.clarPk = ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION clazzlogattendancerecord_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ClazzLogAttendanceRecord(clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime) VALUES (NEW.clazzLogAttendanceRecordUid, NEW.clazzLogAttendanceRecordClazzLogUid, NEW.clazzLogAttendanceRecordPersonUid, NEW.attendanceStatus, NEW.clazzLogAttendanceRecordMasterChangeSeqNum, NEW.clazzLogAttendanceRecordLocalChangeSeqNum, NEW.clazzLogAttendanceRecordLastChangedBy, NEW.clazzLogAttendanceRecordLastChangedTime) ON CONFLICT (clazzLogAttendanceRecordUid) DO UPDATE SET clazzLogAttendanceRecordClazzLogUid = EXCLUDED.clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid = EXCLUDED.clazzLogAttendanceRecordPersonUid, attendanceStatus = EXCLUDED.attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum = EXCLUDED.clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum = EXCLUDED.clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy = EXCLUDED.clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime = EXCLUDED.clazzLogAttendanceRecordLastChangedTime ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER clazzlogattendancerecord_remote_insert_trig INSTEAD OF INSERT ON ClazzLogAttendanceRecord_ReceiveView FOR EACH ROW EXECUTE PROCEDURE clazzlogattendancerecord_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_21_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (21, NEW.scheduleUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_21_trig AFTER UPDATE OR INSERT ON Schedule FOR EACH ROW EXECUTE PROCEDURE ch_upd_21_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_21_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (21, OLD.scheduleUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_21_trig AFTER DELETE ON Schedule FOR EACH ROW EXECUTE PROCEDURE ch_del_21_fn(); "),t.add_11rb$("CREATE VIEW Schedule_ReceiveView AS SELECT Schedule.*, ScheduleReplicate.* FROM Schedule LEFT JOIN ScheduleReplicate ON ScheduleReplicate.schedulePk = Schedule.scheduleUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION schedule_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO Schedule(scheduleUid, sceduleStartTime, scheduleEndTime, scheduleDay, scheduleMonth, scheduleFrequency, umCalendarUid, scheduleClazzUid, scheduleMasterChangeSeqNum, scheduleLocalChangeSeqNum, scheduleLastChangedBy, scheduleLastChangedTime, scheduleActive) VALUES (NEW.scheduleUid, NEW.sceduleStartTime, NEW.scheduleEndTime, NEW.scheduleDay, NEW.scheduleMonth, NEW.scheduleFrequency, NEW.umCalendarUid, NEW.scheduleClazzUid, NEW.scheduleMasterChangeSeqNum, NEW.scheduleLocalChangeSeqNum, NEW.scheduleLastChangedBy, NEW.scheduleLastChangedTime, NEW.scheduleActive) ON CONFLICT (scheduleUid) DO UPDATE SET sceduleStartTime = EXCLUDED.sceduleStartTime, scheduleEndTime = EXCLUDED.scheduleEndTime, scheduleDay = EXCLUDED.scheduleDay, scheduleMonth = EXCLUDED.scheduleMonth, scheduleFrequency = EXCLUDED.scheduleFrequency, umCalendarUid = EXCLUDED.umCalendarUid, scheduleClazzUid = EXCLUDED.scheduleClazzUid, scheduleMasterChangeSeqNum = EXCLUDED.scheduleMasterChangeSeqNum, scheduleLocalChangeSeqNum = EXCLUDED.scheduleLocalChangeSeqNum, scheduleLastChangedBy = EXCLUDED.scheduleLastChangedBy, scheduleLastChangedTime = EXCLUDED.scheduleLastChangedTime, scheduleActive = EXCLUDED.scheduleActive ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER schedule_remote_insert_trig INSTEAD OF INSERT ON Schedule_ReceiveView FOR EACH ROW EXECUTE PROCEDURE schedule_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_28_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (28, NEW.umCalendarUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_28_trig AFTER UPDATE OR INSERT ON HolidayCalendar FOR EACH ROW EXECUTE PROCEDURE ch_upd_28_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_28_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (28, OLD.umCalendarUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_28_trig AFTER DELETE ON HolidayCalendar FOR EACH ROW EXECUTE PROCEDURE ch_del_28_fn(); "),t.add_11rb$("CREATE VIEW HolidayCalendar_ReceiveView AS SELECT HolidayCalendar.*, HolidayCalendarReplicate.* FROM HolidayCalendar LEFT JOIN HolidayCalendarReplicate ON HolidayCalendarReplicate.hcPk = HolidayCalendar.umCalendarUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION holidaycalendar_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO HolidayCalendar(umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct) VALUES (NEW.umCalendarUid, NEW.umCalendarName, NEW.umCalendarCategory, NEW.umCalendarActive, NEW.umCalendarMasterChangeSeqNum, NEW.umCalendarLocalChangeSeqNum, NEW.umCalendarLastChangedBy, NEW.umCalendarLct) ON CONFLICT (umCalendarUid) DO UPDATE SET umCalendarName = EXCLUDED.umCalendarName, umCalendarCategory = EXCLUDED.umCalendarCategory, umCalendarActive = EXCLUDED.umCalendarActive, umCalendarMasterChangeSeqNum = EXCLUDED.umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum = EXCLUDED.umCalendarLocalChangeSeqNum, umCalendarLastChangedBy = EXCLUDED.umCalendarLastChangedBy, umCalendarLct = EXCLUDED.umCalendarLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER holidaycalendar_remote_insert_trig INSTEAD OF INSERT ON HolidayCalendar_ReceiveView FOR EACH ROW EXECUTE PROCEDURE holidaycalendar_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_99_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (99, NEW.holUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_99_trig AFTER UPDATE OR INSERT ON Holiday FOR EACH ROW EXECUTE PROCEDURE ch_upd_99_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_99_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (99, OLD.holUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_99_trig AFTER DELETE ON Holiday FOR EACH ROW EXECUTE PROCEDURE ch_del_99_fn(); "),t.add_11rb$("CREATE VIEW Holiday_ReceiveView AS SELECT Holiday.*, HolidayReplicate.* FROM Holiday LEFT JOIN HolidayReplicate ON HolidayReplicate.holidayPk = Holiday.holUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION holiday_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO Holiday(holUid, holMasterCsn, holLocalCsn, holLastModBy, holLct, holActive, holHolidayCalendarUid, holStartTime, holEndTime, holName) VALUES (NEW.holUid, NEW.holMasterCsn, NEW.holLocalCsn, NEW.holLastModBy, NEW.holLct, NEW.holActive, NEW.holHolidayCalendarUid, NEW.holStartTime, NEW.holEndTime, NEW.holName) ON CONFLICT (holUid) DO UPDATE SET holMasterCsn = EXCLUDED.holMasterCsn, holLocalCsn = EXCLUDED.holLocalCsn, holLastModBy = EXCLUDED.holLastModBy, holLct = EXCLUDED.holLct, holActive = EXCLUDED.holActive, holHolidayCalendarUid = EXCLUDED.holHolidayCalendarUid, holStartTime = EXCLUDED.holStartTime, holEndTime = EXCLUDED.holEndTime, holName = EXCLUDED.holName ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER holiday_remote_insert_trig INSTEAD OF INSERT ON Holiday_ReceiveView FOR EACH ROW EXECUTE PROCEDURE holiday_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_9_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (9, NEW.personUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_9_trig AFTER UPDATE OR INSERT ON Person FOR EACH ROW EXECUTE PROCEDURE ch_upd_9_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_9_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (9, OLD.personUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_9_trig AFTER DELETE ON Person FOR EACH ROW EXECUTE PROCEDURE ch_del_9_fn(); "),t.add_11rb$("CREATE VIEW Person_ReceiveView AS SELECT Person.*, PersonReplicate.* FROM Person LEFT JOIN PersonReplicate ON PersonReplicate.personPk = Person.personUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION person_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO Person(personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, admin, personNotes, fatherName, fatherNumber, motherName, motherNum, dateOfBirth, personAddress, personOrgId, personGroupUid, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, personLct, personCountry, personType) VALUES (NEW.personUid, NEW.username, NEW.firstNames, NEW.lastName, NEW.emailAddr, NEW.phoneNum, NEW.gender, NEW.active, NEW.admin, NEW.personNotes, NEW.fatherName, NEW.fatherNumber, NEW.motherName, NEW.motherNum, NEW.dateOfBirth, NEW.personAddress, NEW.personOrgId, NEW.personGroupUid, NEW.personMasterChangeSeqNum, NEW.personLocalChangeSeqNum, NEW.personLastChangedBy, NEW.personLct, NEW.personCountry, NEW.personType) ON CONFLICT (personUid) DO UPDATE SET username = EXCLUDED.username, firstNames = EXCLUDED.firstNames, lastName = EXCLUDED.lastName, emailAddr = EXCLUDED.emailAddr, phoneNum = EXCLUDED.phoneNum, gender = EXCLUDED.gender, active = EXCLUDED.active, admin = EXCLUDED.admin, personNotes = EXCLUDED.personNotes, fatherName = EXCLUDED.fatherName, fatherNumber = EXCLUDED.fatherNumber, motherName = EXCLUDED.motherName, motherNum = EXCLUDED.motherNum, dateOfBirth = EXCLUDED.dateOfBirth, personAddress = EXCLUDED.personAddress, personOrgId = EXCLUDED.personOrgId, personGroupUid = EXCLUDED.personGroupUid, personMasterChangeSeqNum = EXCLUDED.personMasterChangeSeqNum, personLocalChangeSeqNum = EXCLUDED.personLocalChangeSeqNum, personLastChangedBy = EXCLUDED.personLastChangedBy, personLct = EXCLUDED.personLct, personCountry = EXCLUDED.personCountry, personType = EXCLUDED.personType ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER person_remote_insert_trig INSTEAD OF INSERT ON Person_ReceiveView FOR EACH ROW EXECUTE PROCEDURE person_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_6_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (6, NEW.clazzUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_6_trig AFTER UPDATE OR INSERT ON Clazz FOR EACH ROW EXECUTE PROCEDURE ch_upd_6_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_6_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (6, OLD.clazzUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_6_trig AFTER DELETE ON Clazz FOR EACH ROW EXECUTE PROCEDURE ch_del_6_fn(); "),t.add_11rb$("CREATE VIEW Clazz_ReceiveView AS SELECT Clazz.*, ClazzReplicate.* FROM Clazz LEFT JOIN ClazzReplicate ON ClazzReplicate.clazzPk = Clazz.clazzUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION clazz_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO Clazz(clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode) VALUES (NEW.clazzUid, NEW.clazzName, NEW.clazzDesc, NEW.attendanceAverage, NEW.clazzHolidayUMCalendarUid, NEW.clazzScheuleUMCalendarUid, NEW.isClazzActive, NEW.clazzLocationUid, NEW.clazzStartTime, NEW.clazzEndTime, NEW.clazzFeatures, NEW.clazzSchoolUid, NEW.clazzEnrolmentPolicy, NEW.clazzTerminologyUid, NEW.clazzMasterChangeSeqNum, NEW.clazzLocalChangeSeqNum, NEW.clazzLastChangedBy, NEW.clazzLct, NEW.clazzTimeZone, NEW.clazzStudentsPersonGroupUid, NEW.clazzTeachersPersonGroupUid, NEW.clazzPendingStudentsPersonGroupUid, NEW.clazzParentsPersonGroupUid, NEW.clazzCode) ON CONFLICT (clazzUid) DO UPDATE SET clazzName = EXCLUDED.clazzName, clazzDesc = EXCLUDED.clazzDesc, attendanceAverage = EXCLUDED.attendanceAverage, clazzHolidayUMCalendarUid = EXCLUDED.clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid = EXCLUDED.clazzScheuleUMCalendarUid, isClazzActive = EXCLUDED.isClazzActive, clazzLocationUid = EXCLUDED.clazzLocationUid, clazzStartTime = EXCLUDED.clazzStartTime, clazzEndTime = EXCLUDED.clazzEndTime, clazzFeatures = EXCLUDED.clazzFeatures, clazzSchoolUid = EXCLUDED.clazzSchoolUid, clazzEnrolmentPolicy = EXCLUDED.clazzEnrolmentPolicy, clazzTerminologyUid = EXCLUDED.clazzTerminologyUid, clazzMasterChangeSeqNum = EXCLUDED.clazzMasterChangeSeqNum, clazzLocalChangeSeqNum = EXCLUDED.clazzLocalChangeSeqNum, clazzLastChangedBy = EXCLUDED.clazzLastChangedBy, clazzLct = EXCLUDED.clazzLct, clazzTimeZone = EXCLUDED.clazzTimeZone, clazzStudentsPersonGroupUid = EXCLUDED.clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid = EXCLUDED.clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid = EXCLUDED.clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid = EXCLUDED.clazzParentsPersonGroupUid, clazzCode = EXCLUDED.clazzCode ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER clazz_remote_insert_trig INSTEAD OF INSERT ON Clazz_ReceiveView FOR EACH ROW EXECUTE PROCEDURE clazz_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_65_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (65, NEW.clazzEnrolmentUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_65_trig AFTER UPDATE OR INSERT ON ClazzEnrolment FOR EACH ROW EXECUTE PROCEDURE ch_upd_65_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_65_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (65, OLD.clazzEnrolmentUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_65_trig AFTER DELETE ON ClazzEnrolment FOR EACH ROW EXECUTE PROCEDURE ch_del_65_fn(); "),t.add_11rb$("CREATE VIEW ClazzEnrolment_ReceiveView AS SELECT ClazzEnrolment.*, ClazzEnrolmentReplicate.* FROM ClazzEnrolment LEFT JOIN ClazzEnrolmentReplicate ON ClazzEnrolmentReplicate.cePk = ClazzEnrolment.clazzEnrolmentUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION clazzenrolment_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ClazzEnrolment(clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct) VALUES (NEW.clazzEnrolmentUid, NEW.clazzEnrolmentPersonUid, NEW.clazzEnrolmentClazzUid, NEW.clazzEnrolmentDateJoined, NEW.clazzEnrolmentDateLeft, NEW.clazzEnrolmentRole, NEW.clazzEnrolmentAttendancePercentage, NEW.clazzEnrolmentActive, NEW.clazzEnrolmentLeavingReasonUid, NEW.clazzEnrolmentOutcome, NEW.clazzEnrolmentLocalChangeSeqNum, NEW.clazzEnrolmentMasterChangeSeqNum, NEW.clazzEnrolmentLastChangedBy, NEW.clazzEnrolmentLct) ON CONFLICT (clazzEnrolmentUid) DO UPDATE SET clazzEnrolmentPersonUid = EXCLUDED.clazzEnrolmentPersonUid, clazzEnrolmentClazzUid = EXCLUDED.clazzEnrolmentClazzUid, clazzEnrolmentDateJoined = EXCLUDED.clazzEnrolmentDateJoined, clazzEnrolmentDateLeft = EXCLUDED.clazzEnrolmentDateLeft, clazzEnrolmentRole = EXCLUDED.clazzEnrolmentRole, clazzEnrolmentAttendancePercentage = EXCLUDED.clazzEnrolmentAttendancePercentage, clazzEnrolmentActive = EXCLUDED.clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid = EXCLUDED.clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome = EXCLUDED.clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum = EXCLUDED.clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum = EXCLUDED.clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy = EXCLUDED.clazzEnrolmentLastChangedBy, clazzEnrolmentLct = EXCLUDED.clazzEnrolmentLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER clazzenrolment_remote_insert_trig INSTEAD OF INSERT ON ClazzEnrolment_ReceiveView FOR EACH ROW EXECUTE PROCEDURE clazzenrolment_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_410_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (410, NEW.leavingReasonUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_410_trig AFTER UPDATE OR INSERT ON LeavingReason FOR EACH ROW EXECUTE PROCEDURE ch_upd_410_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_410_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (410, OLD.leavingReasonUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_410_trig AFTER DELETE ON LeavingReason FOR EACH ROW EXECUTE PROCEDURE ch_del_410_fn(); "),t.add_11rb$("CREATE VIEW LeavingReason_ReceiveView AS SELECT LeavingReason.*, LeavingReasonReplicate.* FROM LeavingReason LEFT JOIN LeavingReasonReplicate ON LeavingReasonReplicate.lrPk = LeavingReason.leavingReasonUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION leavingreason_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO LeavingReason(leavingReasonUid, leavingReasonTitle, leavingReasonMCSN, leavingReasonCSN, leavingReasonLCB, leavingReasonLct) VALUES (NEW.leavingReasonUid, NEW.leavingReasonTitle, NEW.leavingReasonMCSN, NEW.leavingReasonCSN, NEW.leavingReasonLCB, NEW.leavingReasonLct) ON CONFLICT (leavingReasonUid) DO UPDATE SET leavingReasonTitle = EXCLUDED.leavingReasonTitle, leavingReasonMCSN = EXCLUDED.leavingReasonMCSN, leavingReasonCSN = EXCLUDED.leavingReasonCSN, leavingReasonLCB = EXCLUDED.leavingReasonLCB, leavingReasonLct = EXCLUDED.leavingReasonLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER leavingreason_remote_insert_trig INSTEAD OF INSERT ON LeavingReason_ReceiveView FOR EACH ROW EXECUTE PROCEDURE leavingreason_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_42_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (42, NEW.contentEntryUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_42_trig AFTER UPDATE OR INSERT ON ContentEntry FOR EACH ROW EXECUTE PROCEDURE ch_upd_42_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_42_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (42, OLD.contentEntryUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_42_trig AFTER DELETE ON ContentEntry FOR EACH ROW EXECUTE PROCEDURE ch_del_42_fn(); "),t.add_11rb$("CREATE VIEW ContentEntry_ReceiveView AS SELECT ContentEntry.*, ContentEntryReplicate.* FROM ContentEntry LEFT JOIN ContentEntryReplicate ON ContentEntryReplicate.cePk = ContentEntry.contentEntryUid ");var r=S("\n |CREATE OR REPLACE FUNCTION contententry_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ContentEntry(contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct) VALUES (NEW.contentEntryUid, NEW.title, NEW.description, NEW.entryId, NEW.author, NEW.publisher, NEW.licenseType, NEW.licenseName, NEW.licenseUrl, NEW.sourceUrl, NEW.thumbnailUrl, NEW.lastModified, NEW.primaryLanguageUid, NEW.languageVariantUid, NEW.contentFlags, NEW.leaf, NEW.publik, NEW.ceInactive, NEW.completionCriteria, NEW.minScore, NEW.contentTypeFlag, NEW.contentOwner, NEW.contentEntryLocalChangeSeqNum, NEW.contentEntryMasterChangeSeqNum, NEW.contentEntryLastChangedBy, NEW.contentEntryLct) ON CONFLICT (contentEntryUid) DO UPDATE SET title = EXCLUDED.title, description = EXCLUDED.description, entryId = EXCLUDED.entryId, author = EXCLUDED.author, publisher = EXCLUDED.publisher, licenseType = EXCLUDED.licenseType, licenseName = EXCLUDED.licenseName, licenseUrl = EXCLUDED.licenseUrl, sourceUrl = EXCLUDED.sourceUrl, thumbnailUrl = EXCLUDED.thumbnailUrl, lastModified = EXCLUDED.lastModified, primaryLanguageUid = EXCLUDED.primaryLanguageUid, languageVariantUid = EXCLUDED.languageVariantUid, contentFlags = EXCLUDED.contentFlags, leaf = EXCLUDED.leaf, publik = EXCLUDED.publik, ceInactive = EXCLUDED.ceInactive, completionCriteria = EXCLUDED.completionCriteria, minScore = EXCLUDED.minScore, contentTypeFlag = EXCLUDED.contentTypeFlag, contentOwner = EXCLUDED.contentOwner, contentEntryLocalChangeSeqNum = EXCLUDED.contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum = EXCLUDED.contentEntryMasterChangeSeqNum, contentEntryLastChangedBy = EXCLUDED.contentEntryLastChangedBy, contentEntryLct = EXCLUDED.contentEntryLct\n |; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql\n ");t.add_11rb$(r),t.add_11rb$(" CREATE TRIGGER contententry_remote_insert_trig INSTEAD OF INSERT ON ContentEntry_ReceiveView FOR EACH ROW EXECUTE PROCEDURE contententry_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_3_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (3, NEW.ceccjUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_3_trig AFTER UPDATE OR INSERT ON ContentEntryContentCategoryJoin FOR EACH ROW EXECUTE PROCEDURE ch_upd_3_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_3_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (3, OLD.ceccjUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_3_trig AFTER DELETE ON ContentEntryContentCategoryJoin FOR EACH ROW EXECUTE PROCEDURE ch_del_3_fn(); "),t.add_11rb$("CREATE VIEW ContentEntryContentCategoryJoin_ReceiveView AS SELECT ContentEntryContentCategoryJoin.*, ContentEntryContentCategoryJoinReplicate.* FROM ContentEntryContentCategoryJoin LEFT JOIN ContentEntryContentCategoryJoinReplicate ON ContentEntryContentCategoryJoinReplicate.ceccjPk = ContentEntryContentCategoryJoin.ceccjUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION contententrycontentcategoryjoin_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ContentEntryContentCategoryJoin(ceccjUid, ceccjContentEntryUid, ceccjContentCategoryUid, ceccjLocalChangeSeqNum, ceccjMasterChangeSeqNum, ceccjLastChangedBy, ceccjLct) VALUES (NEW.ceccjUid, NEW.ceccjContentEntryUid, NEW.ceccjContentCategoryUid, NEW.ceccjLocalChangeSeqNum, NEW.ceccjMasterChangeSeqNum, NEW.ceccjLastChangedBy, NEW.ceccjLct) ON CONFLICT (ceccjUid) DO UPDATE SET ceccjContentEntryUid = EXCLUDED.ceccjContentEntryUid, ceccjContentCategoryUid = EXCLUDED.ceccjContentCategoryUid, ceccjLocalChangeSeqNum = EXCLUDED.ceccjLocalChangeSeqNum, ceccjMasterChangeSeqNum = EXCLUDED.ceccjMasterChangeSeqNum, ceccjLastChangedBy = EXCLUDED.ceccjLastChangedBy, ceccjLct = EXCLUDED.ceccjLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER contententrycontentcategoryjoin_remote_insert_trig INSTEAD OF INSERT ON ContentEntryContentCategoryJoin_ReceiveView FOR EACH ROW EXECUTE PROCEDURE contententrycontentcategoryjoin_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_7_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (7, NEW.cepcjUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_7_trig AFTER UPDATE OR INSERT ON ContentEntryParentChildJoin FOR EACH ROW EXECUTE PROCEDURE ch_upd_7_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_7_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (7, OLD.cepcjUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_7_trig AFTER DELETE ON ContentEntryParentChildJoin FOR EACH ROW EXECUTE PROCEDURE ch_del_7_fn(); "),t.add_11rb$("CREATE VIEW ContentEntryParentChildJoin_ReceiveView AS SELECT ContentEntryParentChildJoin.*, ContentEntryParentChildJoinReplicate.* FROM ContentEntryParentChildJoin LEFT JOIN ContentEntryParentChildJoinReplicate ON ContentEntryParentChildJoinReplicate.cepcjPk = ContentEntryParentChildJoin.cepcjUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION contententryparentchildjoin_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ContentEntryParentChildJoin(cepcjParentContentEntryUid, cepcjChildContentEntryUid, childIndex, cepcjUid, cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum, cepcjLastChangedBy, cepcjLct) VALUES (NEW.cepcjParentContentEntryUid, NEW.cepcjChildContentEntryUid, NEW.childIndex, NEW.cepcjUid, NEW.cepcjLocalChangeSeqNum, NEW.cepcjMasterChangeSeqNum, NEW.cepcjLastChangedBy, NEW.cepcjLct) ON CONFLICT (cepcjUid) DO UPDATE SET cepcjParentContentEntryUid = EXCLUDED.cepcjParentContentEntryUid, cepcjChildContentEntryUid = EXCLUDED.cepcjChildContentEntryUid, childIndex = EXCLUDED.childIndex, cepcjLocalChangeSeqNum = EXCLUDED.cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum = EXCLUDED.cepcjMasterChangeSeqNum, cepcjLastChangedBy = EXCLUDED.cepcjLastChangedBy, cepcjLct = EXCLUDED.cepcjLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER contententryparentchildjoin_remote_insert_trig INSTEAD OF INSERT ON ContentEntryParentChildJoin_ReceiveView FOR EACH ROW EXECUTE PROCEDURE contententryparentchildjoin_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_8_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (8, NEW.cerejUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_8_trig AFTER UPDATE OR INSERT ON ContentEntryRelatedEntryJoin FOR EACH ROW EXECUTE PROCEDURE ch_upd_8_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_8_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (8, OLD.cerejUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_8_trig AFTER DELETE ON ContentEntryRelatedEntryJoin FOR EACH ROW EXECUTE PROCEDURE ch_del_8_fn(); "),t.add_11rb$("CREATE VIEW ContentEntryRelatedEntryJoin_ReceiveView AS SELECT ContentEntryRelatedEntryJoin.*, ContentEntryRelatedEntryJoinReplicate.* FROM ContentEntryRelatedEntryJoin LEFT JOIN ContentEntryRelatedEntryJoinReplicate ON ContentEntryRelatedEntryJoinReplicate.cerejPk = ContentEntryRelatedEntryJoin.cerejUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION contententryrelatedentryjoin_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ContentEntryRelatedEntryJoin(cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct) VALUES (NEW.cerejUid, NEW.cerejContentEntryUid, NEW.cerejRelatedEntryUid, NEW.cerejLastChangedBy, NEW.relType, NEW.comment, NEW.cerejRelLanguageUid, NEW.cerejLocalChangeSeqNum, NEW.cerejMasterChangeSeqNum, NEW.cerejLct) ON CONFLICT (cerejUid) DO UPDATE SET cerejContentEntryUid = EXCLUDED.cerejContentEntryUid, cerejRelatedEntryUid = EXCLUDED.cerejRelatedEntryUid, cerejLastChangedBy = EXCLUDED.cerejLastChangedBy, relType = EXCLUDED.relType, comment = EXCLUDED.comment, cerejRelLanguageUid = EXCLUDED.cerejRelLanguageUid, cerejLocalChangeSeqNum = EXCLUDED.cerejLocalChangeSeqNum, cerejMasterChangeSeqNum = EXCLUDED.cerejMasterChangeSeqNum, cerejLct = EXCLUDED.cerejLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER contententryrelatedentryjoin_remote_insert_trig INSTEAD OF INSERT ON ContentEntryRelatedEntryJoin_ReceiveView FOR EACH ROW EXECUTE PROCEDURE contententryrelatedentryjoin_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_2_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (2, NEW.contentCategorySchemaUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_2_trig AFTER UPDATE OR INSERT ON ContentCategorySchema FOR EACH ROW EXECUTE PROCEDURE ch_upd_2_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_2_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (2, OLD.contentCategorySchemaUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_2_trig AFTER DELETE ON ContentCategorySchema FOR EACH ROW EXECUTE PROCEDURE ch_del_2_fn(); "),t.add_11rb$("CREATE VIEW ContentCategorySchema_ReceiveView AS SELECT ContentCategorySchema.*, ContentCategorySchemaReplicate.* FROM ContentCategorySchema LEFT JOIN ContentCategorySchemaReplicate ON ContentCategorySchemaReplicate.ccsPk = ContentCategorySchema.contentCategorySchemaUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION contentcategoryschema_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ContentCategorySchema(contentCategorySchemaUid, schemaName, schemaUrl, contentCategorySchemaLocalChangeSeqNum, contentCategorySchemaMasterChangeSeqNum, contentCategorySchemaLastChangedBy, contentCategorySchemaLct) VALUES (NEW.contentCategorySchemaUid, NEW.schemaName, NEW.schemaUrl, NEW.contentCategorySchemaLocalChangeSeqNum, NEW.contentCategorySchemaMasterChangeSeqNum, NEW.contentCategorySchemaLastChangedBy, NEW.contentCategorySchemaLct) ON CONFLICT (contentCategorySchemaUid) DO UPDATE SET schemaName = EXCLUDED.schemaName, schemaUrl = EXCLUDED.schemaUrl, contentCategorySchemaLocalChangeSeqNum = EXCLUDED.contentCategorySchemaLocalChangeSeqNum, contentCategorySchemaMasterChangeSeqNum = EXCLUDED.contentCategorySchemaMasterChangeSeqNum, contentCategorySchemaLastChangedBy = EXCLUDED.contentCategorySchemaLastChangedBy, contentCategorySchemaLct = EXCLUDED.contentCategorySchemaLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER contentcategoryschema_remote_insert_trig INSTEAD OF INSERT ON ContentCategorySchema_ReceiveView FOR EACH ROW EXECUTE PROCEDURE contentcategoryschema_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_1_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (1, NEW.contentCategoryUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_1_trig AFTER UPDATE OR INSERT ON ContentCategory FOR EACH ROW EXECUTE PROCEDURE ch_upd_1_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_1_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (1, OLD.contentCategoryUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_1_trig AFTER DELETE ON ContentCategory FOR EACH ROW EXECUTE PROCEDURE ch_del_1_fn(); "),t.add_11rb$("CREATE VIEW ContentCategory_ReceiveView AS SELECT ContentCategory.*, ContentCategoryReplicate.* FROM ContentCategory LEFT JOIN ContentCategoryReplicate ON ContentCategoryReplicate.ccPk = ContentCategory.contentCategoryUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION contentcategory_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ContentCategory(contentCategoryUid, ctnCatContentCategorySchemaUid, name, contentCategoryLocalChangeSeqNum, contentCategoryMasterChangeSeqNum, contentCategoryLastChangedBy, contentCategoryLct) VALUES (NEW.contentCategoryUid, NEW.ctnCatContentCategorySchemaUid, NEW.name, NEW.contentCategoryLocalChangeSeqNum, NEW.contentCategoryMasterChangeSeqNum, NEW.contentCategoryLastChangedBy, NEW.contentCategoryLct) ON CONFLICT (contentCategoryUid) DO UPDATE SET ctnCatContentCategorySchemaUid = EXCLUDED.ctnCatContentCategorySchemaUid, name = EXCLUDED.name, contentCategoryLocalChangeSeqNum = EXCLUDED.contentCategoryLocalChangeSeqNum, contentCategoryMasterChangeSeqNum = EXCLUDED.contentCategoryMasterChangeSeqNum, contentCategoryLastChangedBy = EXCLUDED.contentCategoryLastChangedBy, contentCategoryLct = EXCLUDED.contentCategoryLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER contentcategory_remote_insert_trig INSTEAD OF INSERT ON ContentCategory_ReceiveView FOR EACH ROW EXECUTE PROCEDURE contentcategory_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_13_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (13, NEW.langUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_13_trig AFTER UPDATE OR INSERT ON Language FOR EACH ROW EXECUTE PROCEDURE ch_upd_13_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_13_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (13, OLD.langUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_13_trig AFTER DELETE ON Language FOR EACH ROW EXECUTE PROCEDURE ch_del_13_fn(); "),t.add_11rb$("CREATE VIEW Language_ReceiveView AS SELECT Language.*, LanguageReplicate.* FROM Language LEFT JOIN LanguageReplicate ON LanguageReplicate.languagePk = Language.langUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION language_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO Language(langUid, name, iso_639_1_standard, iso_639_2_standard, iso_639_3_standard, Language_Type, languageActive, langLocalChangeSeqNum, langMasterChangeSeqNum, langLastChangedBy, langLct) VALUES (NEW.langUid, NEW.name, NEW.iso_639_1_standard, NEW.iso_639_2_standard, NEW.iso_639_3_standard, NEW.Language_Type, NEW.languageActive, NEW.langLocalChangeSeqNum, NEW.langMasterChangeSeqNum, NEW.langLastChangedBy, NEW.langLct) ON CONFLICT (langUid) DO UPDATE SET name = EXCLUDED.name, iso_639_1_standard = EXCLUDED.iso_639_1_standard, iso_639_2_standard = EXCLUDED.iso_639_2_standard, iso_639_3_standard = EXCLUDED.iso_639_3_standard, Language_Type = EXCLUDED.Language_Type, languageActive = EXCLUDED.languageActive, langLocalChangeSeqNum = EXCLUDED.langLocalChangeSeqNum, langMasterChangeSeqNum = EXCLUDED.langMasterChangeSeqNum, langLastChangedBy = EXCLUDED.langLastChangedBy, langLct = EXCLUDED.langLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER language_remote_insert_trig INSTEAD OF INSERT ON Language_ReceiveView FOR EACH ROW EXECUTE PROCEDURE language_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_10_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (10, NEW.langVariantUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_10_trig AFTER UPDATE OR INSERT ON LanguageVariant FOR EACH ROW EXECUTE PROCEDURE ch_upd_10_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_10_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (10, OLD.langVariantUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_10_trig AFTER DELETE ON LanguageVariant FOR EACH ROW EXECUTE PROCEDURE ch_del_10_fn(); "),t.add_11rb$("CREATE VIEW LanguageVariant_ReceiveView AS SELECT LanguageVariant.*, LanguageVariantReplicate.* FROM LanguageVariant LEFT JOIN LanguageVariantReplicate ON LanguageVariantReplicate.lvPk = LanguageVariant.langVariantUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION languagevariant_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO LanguageVariant(langVariantUid, langUid, countryCode, name, langVariantLocalChangeSeqNum, langVariantMasterChangeSeqNum, langVariantLastChangedBy, langVariantLct) VALUES (NEW.langVariantUid, NEW.langUid, NEW.countryCode, NEW.name, NEW.langVariantLocalChangeSeqNum, NEW.langVariantMasterChangeSeqNum, NEW.langVariantLastChangedBy, NEW.langVariantLct) ON CONFLICT (langVariantUid) DO UPDATE SET langUid = EXCLUDED.langUid, countryCode = EXCLUDED.countryCode, name = EXCLUDED.name, langVariantLocalChangeSeqNum = EXCLUDED.langVariantLocalChangeSeqNum, langVariantMasterChangeSeqNum = EXCLUDED.langVariantMasterChangeSeqNum, langVariantLastChangedBy = EXCLUDED.langVariantLastChangedBy, langVariantLct = EXCLUDED.langVariantLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER languagevariant_remote_insert_trig INSTEAD OF INSERT ON LanguageVariant_ReceiveView FOR EACH ROW EXECUTE PROCEDURE languagevariant_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_43_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (43, NEW.groupUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_43_trig AFTER UPDATE OR INSERT ON PersonGroup FOR EACH ROW EXECUTE PROCEDURE ch_upd_43_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_43_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (43, OLD.groupUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_43_trig AFTER DELETE ON PersonGroup FOR EACH ROW EXECUTE PROCEDURE ch_del_43_fn(); "),t.add_11rb$("CREATE VIEW PersonGroup_ReceiveView AS SELECT PersonGroup.*, PersonGroupReplicate.* FROM PersonGroup LEFT JOIN PersonGroupReplicate ON PersonGroupReplicate.pgPk = PersonGroup.groupUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION persongroup_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO PersonGroup(groupUid, groupMasterCsn, groupLocalCsn, groupLastChangedBy, groupLct, groupName, groupActive, personGroupFlag) VALUES (NEW.groupUid, NEW.groupMasterCsn, NEW.groupLocalCsn, NEW.groupLastChangedBy, NEW.groupLct, NEW.groupName, NEW.groupActive, NEW.personGroupFlag) ON CONFLICT (groupUid) DO UPDATE SET groupMasterCsn = EXCLUDED.groupMasterCsn, groupLocalCsn = EXCLUDED.groupLocalCsn, groupLastChangedBy = EXCLUDED.groupLastChangedBy, groupLct = EXCLUDED.groupLct, groupName = EXCLUDED.groupName, groupActive = EXCLUDED.groupActive, personGroupFlag = EXCLUDED.personGroupFlag ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER persongroup_remote_insert_trig INSTEAD OF INSERT ON PersonGroup_ReceiveView FOR EACH ROW EXECUTE PROCEDURE persongroup_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_44_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (44, NEW.groupMemberUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_44_trig AFTER UPDATE OR INSERT ON PersonGroupMember FOR EACH ROW EXECUTE PROCEDURE ch_upd_44_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_44_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (44, OLD.groupMemberUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_44_trig AFTER DELETE ON PersonGroupMember FOR EACH ROW EXECUTE PROCEDURE ch_del_44_fn(); "),t.add_11rb$("CREATE VIEW PersonGroupMember_ReceiveView AS SELECT PersonGroupMember.*, PersonGroupMemberReplicate.* FROM PersonGroupMember LEFT JOIN PersonGroupMemberReplicate ON PersonGroupMemberReplicate.pgmPk = PersonGroupMember.groupMemberUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION persongroupmember_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO PersonGroupMember(groupMemberUid, groupMemberActive, groupMemberPersonUid, groupMemberGroupUid, groupMemberMasterCsn, groupMemberLocalCsn, groupMemberLastChangedBy, groupMemberLct) VALUES (NEW.groupMemberUid, NEW.groupMemberActive, NEW.groupMemberPersonUid, NEW.groupMemberGroupUid, NEW.groupMemberMasterCsn, NEW.groupMemberLocalCsn, NEW.groupMemberLastChangedBy, NEW.groupMemberLct) ON CONFLICT (groupMemberUid) DO UPDATE SET groupMemberActive = EXCLUDED.groupMemberActive, groupMemberPersonUid = EXCLUDED.groupMemberPersonUid, groupMemberGroupUid = EXCLUDED.groupMemberGroupUid, groupMemberMasterCsn = EXCLUDED.groupMemberMasterCsn, groupMemberLocalCsn = EXCLUDED.groupMemberLocalCsn, groupMemberLastChangedBy = EXCLUDED.groupMemberLastChangedBy, groupMemberLct = EXCLUDED.groupMemberLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER persongroupmember_remote_insert_trig INSTEAD OF INSERT ON PersonGroupMember_ReceiveView FOR EACH ROW EXECUTE PROCEDURE persongroupmember_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_50_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (50, NEW.personPictureUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_50_trig AFTER UPDATE OR INSERT ON PersonPicture FOR EACH ROW EXECUTE PROCEDURE ch_upd_50_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_50_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (50, OLD.personPictureUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_50_trig AFTER DELETE ON PersonPicture FOR EACH ROW EXECUTE PROCEDURE ch_del_50_fn(); "),t.add_11rb$("CREATE VIEW PersonPicture_ReceiveView AS SELECT PersonPicture.*, PersonPictureReplicate.* FROM PersonPicture LEFT JOIN PersonPictureReplicate ON PersonPictureReplicate.ppPk = PersonPicture.personPictureUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION personpicture_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO PersonPicture(personPictureUid, personPicturePersonUid, personPictureMasterCsn, personPictureLocalCsn, personPictureLastChangedBy, personPictureLct, personPictureUri, personPictureMd5, fileSize, picTimestamp, mimeType, personPictureActive) VALUES (NEW.personPictureUid, NEW.personPicturePersonUid, NEW.personPictureMasterCsn, NEW.personPictureLocalCsn, NEW.personPictureLastChangedBy, NEW.personPictureLct, NEW.personPictureUri, NEW.personPictureMd5, NEW.fileSize, NEW.picTimestamp, NEW.mimeType, NEW.personPictureActive) ON CONFLICT (personPictureUid) DO UPDATE SET personPicturePersonUid = EXCLUDED.personPicturePersonUid, personPictureMasterCsn = EXCLUDED.personPictureMasterCsn, personPictureLocalCsn = EXCLUDED.personPictureLocalCsn, personPictureLastChangedBy = EXCLUDED.personPictureLastChangedBy, personPictureLct = EXCLUDED.personPictureLct, personPictureUri = EXCLUDED.personPictureUri, personPictureMd5 = EXCLUDED.personPictureMd5, fileSize = EXCLUDED.fileSize, picTimestamp = EXCLUDED.picTimestamp, mimeType = EXCLUDED.mimeType, personPictureActive = EXCLUDED.personPictureActive ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER personpicture_remote_insert_trig INSTEAD OF INSERT ON PersonPicture_ReceiveView FOR EACH ROW EXECUTE PROCEDURE personpicture_remote_insert_fn() ");var s=S("\n | CREATE OR REPLACE FUNCTION attach_PersonPicture_fn() RETURNS trigger AS $$\n | BEGIN\n | \n | INSERT INTO ZombieAttachmentData(zaUri) \n | SELECT OLD.personPictureUri AS zaUri\n | FROM PersonPicture \n | WHERE PersonPicture.personPictureUid = OLD.personPictureUid\n | AND (SELECT COUNT(*) \n | FROM PersonPicture\n | WHERE personPictureMd5 = OLD.personPictureMd5) = 0\n |;\n | RETURN NEW;\n | END $$\n | LANGUAGE plpgsql\n ");t.add_11rb$(s);var a=S("\n |CREATE TRIGGER attach_PersonPicture_trig\n |AFTER UPDATE ON PersonPicture\n |FOR EACH ROW WHEN (OLD.personPictureMd5 IS NOT NULL)\n |EXECUTE PROCEDURE attach_PersonPicture_fn();\n ");t.add_11rb$(a),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_51_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (51, NEW.containerUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_51_trig AFTER UPDATE OR INSERT ON Container FOR EACH ROW EXECUTE PROCEDURE ch_upd_51_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_51_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (51, OLD.containerUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_51_trig AFTER DELETE ON Container FOR EACH ROW EXECUTE PROCEDURE ch_del_51_fn(); "),t.add_11rb$("CREATE VIEW Container_ReceiveView AS SELECT Container.*, ContainerReplicate.* FROM Container LEFT JOIN ContainerReplicate ON ContainerReplicate.containerPk = Container.containerUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION container_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO Container(containerUid, cntLocalCsn, cntMasterCsn, cntLastModBy, cntLct, fileSize, containerContentEntryUid, cntLastModified, mimeType, remarks, mobileOptimized, cntNumEntries) SELECT NEW.containerUid, NEW.cntLocalCsn, NEW.cntMasterCsn, NEW.cntLastModBy, NEW.cntLct, NEW.fileSize, NEW.containerContentEntryUid, NEW.cntLastModified, NEW.mimeType, NEW.remarks, NEW.mobileOptimized, NEW.cntNumEntries WHERE NEW.cntLct > (SELECT COALESCE( (SELECT ContainerInt.cntLct FROM Container ContainerInt WHERE ContainerInt.containerUid = NEW.containerUid), 0)) ON CONFLICT (containerUid) DO UPDATE SET cntLocalCsn = EXCLUDED.cntLocalCsn, cntMasterCsn = EXCLUDED.cntMasterCsn, cntLastModBy = EXCLUDED.cntLastModBy, cntLct = EXCLUDED.cntLct, fileSize = EXCLUDED.fileSize, containerContentEntryUid = EXCLUDED.containerContentEntryUid, cntLastModified = EXCLUDED.cntLastModified, mimeType = EXCLUDED.mimeType, remarks = EXCLUDED.remarks, mobileOptimized = EXCLUDED.mobileOptimized, cntNumEntries = EXCLUDED.cntNumEntries ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER container_remote_insert_trig INSTEAD OF INSERT ON Container_ReceiveView FOR EACH ROW EXECUTE PROCEDURE container_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_62_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (62, NEW.verbUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_62_trig AFTER UPDATE OR INSERT ON VerbEntity FOR EACH ROW EXECUTE PROCEDURE ch_upd_62_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_62_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (62, OLD.verbUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_62_trig AFTER DELETE ON VerbEntity FOR EACH ROW EXECUTE PROCEDURE ch_del_62_fn(); "),t.add_11rb$("CREATE VIEW VerbEntity_ReceiveView AS SELECT VerbEntity.*, VerbEntityReplicate.* FROM VerbEntity LEFT JOIN VerbEntityReplicate ON VerbEntityReplicate.vePk = VerbEntity.verbUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION verbentity_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO VerbEntity(verbUid, urlId, verbInActive, verbMasterChangeSeqNum, verbLocalChangeSeqNum, verbLastChangedBy, verbLct) VALUES (NEW.verbUid, NEW.urlId, NEW.verbInActive, NEW.verbMasterChangeSeqNum, NEW.verbLocalChangeSeqNum, NEW.verbLastChangedBy, NEW.verbLct) ON CONFLICT (verbUid) DO UPDATE SET urlId = EXCLUDED.urlId, verbInActive = EXCLUDED.verbInActive, verbMasterChangeSeqNum = EXCLUDED.verbMasterChangeSeqNum, verbLocalChangeSeqNum = EXCLUDED.verbLocalChangeSeqNum, verbLastChangedBy = EXCLUDED.verbLastChangedBy, verbLct = EXCLUDED.verbLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER verbentity_remote_insert_trig INSTEAD OF INSERT ON VerbEntity_ReceiveView FOR EACH ROW EXECUTE PROCEDURE verbentity_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_64_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (64, NEW.xObjectUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_64_trig AFTER UPDATE OR INSERT ON XObjectEntity FOR EACH ROW EXECUTE PROCEDURE ch_upd_64_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_64_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (64, OLD.xObjectUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_64_trig AFTER DELETE ON XObjectEntity FOR EACH ROW EXECUTE PROCEDURE ch_del_64_fn(); "),t.add_11rb$("CREATE VIEW XObjectEntity_ReceiveView AS SELECT XObjectEntity.*, XObjectEntityReplicate.* FROM XObjectEntity LEFT JOIN XObjectEntityReplicate ON XObjectEntityReplicate.xoePk = XObjectEntity.xObjectUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION xobjectentity_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO XObjectEntity(xObjectUid, objectType, objectId, definitionType, interactionType, correctResponsePattern, objectContentEntryUid, objectStatementRefUid, xObjectMasterChangeSeqNum, xObjectocalChangeSeqNum, xObjectLastChangedBy, xObjectLct) VALUES (NEW.xObjectUid, NEW.objectType, NEW.objectId, NEW.definitionType, NEW.interactionType, NEW.correctResponsePattern, NEW.objectContentEntryUid, NEW.objectStatementRefUid, NEW.xObjectMasterChangeSeqNum, NEW.xObjectocalChangeSeqNum, NEW.xObjectLastChangedBy, NEW.xObjectLct) ON CONFLICT (xObjectUid) DO UPDATE SET objectType = EXCLUDED.objectType, objectId = EXCLUDED.objectId, definitionType = EXCLUDED.definitionType, interactionType = EXCLUDED.interactionType, correctResponsePattern = EXCLUDED.correctResponsePattern, objectContentEntryUid = EXCLUDED.objectContentEntryUid,objectStatementRefUid = EXCLUDED.objectStatementRefUid, xObjectMasterChangeSeqNum = EXCLUDED.xObjectMasterChangeSeqNum, xObjectocalChangeSeqNum = EXCLUDED.xObjectocalChangeSeqNum, xObjectLastChangedBy = EXCLUDED.xObjectLastChangedBy, xObjectLct = EXCLUDED.xObjectLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER xobjectentity_remote_insert_trig INSTEAD OF INSERT ON XObjectEntity_ReceiveView FOR EACH ROW EXECUTE PROCEDURE xobjectentity_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_60_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (60, NEW.statementUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_60_trig AFTER UPDATE OR INSERT ON StatementEntity FOR EACH ROW EXECUTE PROCEDURE ch_upd_60_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_60_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (60, OLD.statementUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_60_trig AFTER DELETE ON StatementEntity FOR EACH ROW EXECUTE PROCEDURE ch_del_60_fn(); "),t.add_11rb$("CREATE VIEW StatementEntity_ReceiveView AS SELECT StatementEntity.*, StatementEntityReplicate.* FROM StatementEntity LEFT JOIN StatementEntityReplicate ON StatementEntityReplicate.sePk = StatementEntity.statementUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION statemententity_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO StatementEntity(statementUid, statementId, statementPersonUid, statementVerbUid, xObjectUid, subStatementActorUid, substatementVerbUid, subStatementObjectUid, agentUid, instructorUid, authorityUid, teamUid, resultCompletion, resultSuccess, resultScoreScaled, resultScoreRaw, resultScoreMin, resultScoreMax, resultDuration, resultResponse, timestamp, stored, contextRegistration, contextPlatform, contextStatementId, fullStatement, statementMasterChangeSeqNum, statementLocalChangeSeqNum, statementLastChangedBy, statementLct, extensionProgress, contentEntryRoot, statementContentEntryUid, statementLearnerGroupUid, statementClazzUid) VALUES (NEW.statementUid, NEW.statementId, NEW.statementPersonUid, NEW.statementVerbUid, NEW.xObjectUid, NEW.subStatementActorUid, NEW.substatementVerbUid, NEW.subStatementObjectUid, NEW.agentUid, NEW.instructorUid, NEW.authorityUid, NEW.teamUid, NEW.resultCompletion, NEW.resultSuccess, NEW.resultScoreScaled, NEW.resultScoreRaw, NEW.resultScoreMin, NEW.resultScoreMax, NEW.resultDuration, NEW.resultResponse, NEW.timestamp, NEW.stored, NEW.contextRegistration, NEW.contextPlatform, NEW.contextStatementId, NEW.fullStatement, NEW.statementMasterChangeSeqNum, NEW.statementLocalChangeSeqNum, NEW.statementLastChangedBy, NEW.statementLct, NEW.extensionProgress, NEW.contentEntryRoot, NEW.statementContentEntryUid, NEW.statementLearnerGroupUid, NEW.statementClazzUid) ON CONFLICT (statementUid) DO UPDATE SET statementId = EXCLUDED.statementId, statementPersonUid = EXCLUDED.statementPersonUid, statementVerbUid = EXCLUDED.statementVerbUid, xObjectUid = EXCLUDED.xObjectUid, subStatementActorUid = EXCLUDED.subStatementActorUid, substatementVerbUid = EXCLUDED.substatementVerbUid, subStatementObjectUid = EXCLUDED.subStatementObjectUid, agentUid = EXCLUDED.agentUid, instructorUid = EXCLUDED.instructorUid, authorityUid = EXCLUDED.authorityUid, teamUid = EXCLUDED.teamUid, resultCompletion = EXCLUDED.resultCompletion, resultSuccess = EXCLUDED.resultSuccess, resultScoreScaled = EXCLUDED.resultScoreScaled, resultScoreRaw = EXCLUDED.resultScoreRaw, resultScoreMin = EXCLUDED.resultScoreMin, resultScoreMax = EXCLUDED.resultScoreMax, resultDuration = EXCLUDED.resultDuration, resultResponse = EXCLUDED.resultResponse, timestamp = EXCLUDED.timestamp, stored = EXCLUDED.stored, contextRegistration = EXCLUDED.contextRegistration, contextPlatform = EXCLUDED.contextPlatform, contextStatementId = EXCLUDED.contextStatementId, fullStatement = EXCLUDED.fullStatement, statementMasterChangeSeqNum = EXCLUDED.statementMasterChangeSeqNum, statementLocalChangeSeqNum = EXCLUDED.statementLocalChangeSeqNum, statementLastChangedBy = EXCLUDED.statementLastChangedBy, statementLct = EXCLUDED.statementLct, extensionProgress = EXCLUDED.extensionProgress, contentEntryRoot = EXCLUDED.contentEntryRoot, statementContentEntryUid = EXCLUDED.statementContentEntryUid, statementLearnerGroupUid = EXCLUDED.statementLearnerGroupUid, statementClazzUid = EXCLUDED.statementClazzUid ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER statemententity_remote_insert_trig INSTEAD OF INSERT ON StatementEntity_ReceiveView FOR EACH ROW EXECUTE PROCEDURE statemententity_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_66_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (66, NEW.contextXObjectStatementJoinUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_66_trig AFTER UPDATE OR INSERT ON ContextXObjectStatementJoin FOR EACH ROW EXECUTE PROCEDURE ch_upd_66_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_66_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (66, OLD.contextXObjectStatementJoinUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_66_trig AFTER DELETE ON ContextXObjectStatementJoin FOR EACH ROW EXECUTE PROCEDURE ch_del_66_fn(); "),t.add_11rb$("CREATE VIEW ContextXObjectStatementJoin_ReceiveView AS SELECT ContextXObjectStatementJoin.*, ContextXObjectStatementJoinReplicate.* FROM ContextXObjectStatementJoin LEFT JOIN ContextXObjectStatementJoinReplicate ON ContextXObjectStatementJoinReplicate.cxosjPk = ContextXObjectStatementJoin.contextXObjectStatementJoinUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION contextxobjectstatementjoin_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ContextXObjectStatementJoin(contextXObjectStatementJoinUid, contextActivityFlag, contextStatementUid, contextXObjectUid, verbMasterChangeSeqNum, verbLocalChangeSeqNum, verbLastChangedBy, contextXObjectLct) VALUES (NEW.contextXObjectStatementJoinUid, NEW.contextActivityFlag, NEW.contextStatementUid, NEW.contextXObjectUid, NEW.verbMasterChangeSeqNum, NEW.verbLocalChangeSeqNum, NEW.verbLastChangedBy, NEW.contextXObjectLct) ON CONFLICT (contextXObjectStatementJoinUid) DO UPDATE SET contextActivityFlag = EXCLUDED.contextActivityFlag, contextStatementUid = EXCLUDED.contextStatementUid, contextXObjectUid = EXCLUDED.contextXObjectUid, verbMasterChangeSeqNum = EXCLUDED.verbMasterChangeSeqNum, verbLocalChangeSeqNum = EXCLUDED.verbLocalChangeSeqNum, verbLastChangedBy = EXCLUDED.verbLastChangedBy, contextXObjectLct = EXCLUDED.contextXObjectLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER contextxobjectstatementjoin_remote_insert_trig INSTEAD OF INSERT ON ContextXObjectStatementJoin_ReceiveView FOR EACH ROW EXECUTE PROCEDURE contextxobjectstatementjoin_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_68_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (68, NEW.agentUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_68_trig AFTER UPDATE OR INSERT ON AgentEntity FOR EACH ROW EXECUTE PROCEDURE ch_upd_68_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_68_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (68, OLD.agentUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_68_trig AFTER DELETE ON AgentEntity FOR EACH ROW EXECUTE PROCEDURE ch_del_68_fn(); "),t.add_11rb$("CREATE VIEW AgentEntity_ReceiveView AS SELECT AgentEntity.*, AgentEntityReplicate.* FROM AgentEntity LEFT JOIN AgentEntityReplicate ON AgentEntityReplicate.aePk = AgentEntity.agentUid ");var c=S("\n |CREATE OR REPLACE FUNCTION agententity_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO AgentEntity(agentUid, agentMbox, agentMbox_sha1sum, agentOpenid, agentAccountName, agentHomePage, agentPersonUid, statementMasterChangeSeqNum, statementLocalChangeSeqNum, statementLastChangedBy, agentLct) VALUES (NEW.agentUid, NEW.agentMbox, NEW.agentMbox_sha1sum, NEW.agentOpenid, NEW.agentAccountName, NEW.agentHomePage, NEW.agentPersonUid, NEW.statementMasterChangeSeqNum, NEW.statementLocalChangeSeqNum, NEW.statementLastChangedBy, NEW.agentLct) ON CONFLICT (agentUid) DO UPDATE SET agentMbox = EXCLUDED.agentMbox, agentMbox_sha1sum = EXCLUDED.agentMbox_sha1sum, agentOpenid = EXCLUDED.agentOpenid, agentAccountName = EXCLUDED.agentAccountName, agentHomePage = EXCLUDED.agentHomePage, agentPersonUid = EXCLUDED.agentPersonUid, statementMasterChangeSeqNum = EXCLUDED.statementMasterChangeSeqNum, statementLocalChangeSeqNum = EXCLUDED.statementLocalChangeSeqNum, statementLastChangedBy = EXCLUDED.statementLastChangedBy, agentLct = EXCLUDED.agentLct\n |; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql\n ");t.add_11rb$(c),t.add_11rb$(" CREATE TRIGGER agententity_remote_insert_trig INSTEAD OF INSERT ON AgentEntity_ReceiveView FOR EACH ROW EXECUTE PROCEDURE agententity_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_70_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (70, NEW.stateUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_70_trig AFTER UPDATE OR INSERT ON StateEntity FOR EACH ROW EXECUTE PROCEDURE ch_upd_70_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_70_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (70, OLD.stateUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_70_trig AFTER DELETE ON StateEntity FOR EACH ROW EXECUTE PROCEDURE ch_del_70_fn(); "),t.add_11rb$("CREATE VIEW StateEntity_ReceiveView AS SELECT StateEntity.*, StateEntityReplicate.* FROM StateEntity LEFT JOIN StateEntityReplicate ON StateEntityReplicate.sePk = StateEntity.stateUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION stateentity_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO StateEntity(stateUid, stateId, agentUid, activityId, registration, isIsactive, timestamp, stateMasterChangeSeqNum, stateLocalChangeSeqNum, stateLastChangedBy, stateLct) VALUES (NEW.stateUid, NEW.stateId, NEW.agentUid, NEW.activityId, NEW.registration, NEW.isIsactive, NEW.timestamp, NEW.stateMasterChangeSeqNum, NEW.stateLocalChangeSeqNum, NEW.stateLastChangedBy, NEW.stateLct) ON CONFLICT (stateUid) DO UPDATE SET stateId = EXCLUDED.stateId, agentUid = EXCLUDED.agentUid, activityId = EXCLUDED.activityId, registration = EXCLUDED.registration, isIsactive = EXCLUDED.isIsactive, timestamp = EXCLUDED.timestamp, stateMasterChangeSeqNum = EXCLUDED.stateMasterChangeSeqNum, stateLocalChangeSeqNum = EXCLUDED.stateLocalChangeSeqNum, stateLastChangedBy = EXCLUDED.stateLastChangedBy, stateLct = EXCLUDED.stateLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER stateentity_remote_insert_trig INSTEAD OF INSERT ON StateEntity_ReceiveView FOR EACH ROW EXECUTE PROCEDURE stateentity_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_72_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (72, NEW.stateContentUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_72_trig AFTER UPDATE OR INSERT ON StateContentEntity FOR EACH ROW EXECUTE PROCEDURE ch_upd_72_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_72_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (72, OLD.stateContentUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_72_trig AFTER DELETE ON StateContentEntity FOR EACH ROW EXECUTE PROCEDURE ch_del_72_fn(); "),t.add_11rb$("CREATE VIEW StateContentEntity_ReceiveView AS SELECT StateContentEntity.*, StateContentEntityReplicate.* FROM StateContentEntity LEFT JOIN StateContentEntityReplicate ON StateContentEntityReplicate.scePk = StateContentEntity.stateContentUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION statecontententity_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO StateContentEntity(stateContentUid, stateContentStateUid, stateContentKey, stateContentValue, isIsactive, stateContentMasterChangeSeqNum, stateContentLocalChangeSeqNum, stateContentLastChangedBy, stateContentLct) VALUES (NEW.stateContentUid, NEW.stateContentStateUid, NEW.stateContentKey, NEW.stateContentValue, NEW.isIsactive, NEW.stateContentMasterChangeSeqNum, NEW.stateContentLocalChangeSeqNum, NEW.stateContentLastChangedBy, NEW.stateContentLct) ON CONFLICT (stateContentUid) DO UPDATE SET stateContentStateUid = EXCLUDED.stateContentStateUid, stateContentKey = EXCLUDED.stateContentKey, stateContentValue = EXCLUDED.stateContentValue, isIsactive = EXCLUDED.isIsactive, stateContentMasterChangeSeqNum = EXCLUDED.stateContentMasterChangeSeqNum, stateContentLocalChangeSeqNum = EXCLUDED.stateContentLocalChangeSeqNum, stateContentLastChangedBy = EXCLUDED.stateContentLastChangedBy, stateContentLct = EXCLUDED.stateContentLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER statecontententity_remote_insert_trig INSTEAD OF INSERT ON StateContentEntity_ReceiveView FOR EACH ROW EXECUTE PROCEDURE statecontententity_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_74_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (74, NEW.statementLangMapUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_74_trig AFTER UPDATE OR INSERT ON XLangMapEntry FOR EACH ROW EXECUTE PROCEDURE ch_upd_74_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_74_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (74, OLD.statementLangMapUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_74_trig AFTER DELETE ON XLangMapEntry FOR EACH ROW EXECUTE PROCEDURE ch_del_74_fn(); "),t.add_11rb$("CREATE VIEW XLangMapEntry_ReceiveView AS SELECT XLangMapEntry.*, XLangMapEntryReplicate.* FROM XLangMapEntry LEFT JOIN XLangMapEntryReplicate ON XLangMapEntryReplicate.xlmePk = XLangMapEntry.statementLangMapUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION xlangmapentry_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO XLangMapEntry(verbLangMapUid, objectLangMapUid, languageLangMapUid, languageVariantLangMapUid, valueLangMap, statementLangMapMasterCsn, statementLangMapLocalCsn, statementLangMapLcb, statementLangMapLct, statementLangMapUid) VALUES (NEW.verbLangMapUid, NEW.objectLangMapUid, NEW.languageLangMapUid, NEW.languageVariantLangMapUid, NEW.valueLangMap, NEW.statementLangMapMasterCsn, NEW.statementLangMapLocalCsn, NEW.statementLangMapLcb, NEW.statementLangMapLct, NEW.statementLangMapUid) ON CONFLICT (statementLangMapUid) DO UPDATE SET verbLangMapUid = EXCLUDED.verbLangMapUid, objectLangMapUid = EXCLUDED.objectLangMapUid, languageLangMapUid = EXCLUDED.languageLangMapUid, languageVariantLangMapUid = EXCLUDED.languageVariantLangMapUid, valueLangMap = EXCLUDED.valueLangMap, statementLangMapMasterCsn = EXCLUDED.statementLangMapMasterCsn, statementLangMapLocalCsn = EXCLUDED.statementLangMapLocalCsn, statementLangMapLcb = EXCLUDED.statementLangMapLcb, statementLangMapLct = EXCLUDED.statementLangMapLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER xlangmapentry_remote_insert_trig INSTEAD OF INSERT ON XLangMapEntry_ReceiveView FOR EACH ROW EXECUTE PROCEDURE xlangmapentry_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_164_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (164, NEW.schoolUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_164_trig AFTER UPDATE OR INSERT ON School FOR EACH ROW EXECUTE PROCEDURE ch_upd_164_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_164_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (164, OLD.schoolUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_164_trig AFTER DELETE ON School FOR EACH ROW EXECUTE PROCEDURE ch_del_164_fn(); "),t.add_11rb$("CREATE VIEW School_ReceiveView AS SELECT School.*, SchoolReplicate.* FROM School LEFT JOIN SchoolReplicate ON SchoolReplicate.schoolPk = School.schoolUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION school_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO School(schoolUid, schoolName, schoolDesc, schoolAddress, schoolActive, schoolPhoneNumber, schoolGender, schoolHolidayCalendarUid, schoolFeatures, schoolLocationLong, schoolLocationLatt, schoolEmailAddress, schoolTeachersPersonGroupUid, schoolStudentsPersonGroupUid, schoolPendingStudentsPersonGroupUid, schoolCode, schoolMasterChangeSeqNum, schoolLocalChangeSeqNum, schoolLastChangedBy, schoolLct, schoolTimeZone) VALUES (NEW.schoolUid, NEW.schoolName, NEW.schoolDesc, NEW.schoolAddress, NEW.schoolActive, NEW.schoolPhoneNumber, NEW.schoolGender, NEW.schoolHolidayCalendarUid, NEW.schoolFeatures, NEW.schoolLocationLong, NEW.schoolLocationLatt, NEW.schoolEmailAddress, NEW.schoolTeachersPersonGroupUid, NEW.schoolStudentsPersonGroupUid, NEW.schoolPendingStudentsPersonGroupUid, NEW.schoolCode, NEW.schoolMasterChangeSeqNum, NEW.schoolLocalChangeSeqNum, NEW.schoolLastChangedBy, NEW.schoolLct, NEW.schoolTimeZone) ON CONFLICT (schoolUid) DO UPDATE SET schoolName = EXCLUDED.schoolName, schoolDesc = EXCLUDED.schoolDesc, schoolAddress = EXCLUDED.schoolAddress, schoolActive = EXCLUDED.schoolActive, schoolPhoneNumber = EXCLUDED.schoolPhoneNumber, schoolGender = EXCLUDED.schoolGender, schoolHolidayCalendarUid = EXCLUDED.schoolHolidayCalendarUid, schoolFeatures = EXCLUDED.schoolFeatures, schoolLocationLong = EXCLUDED.schoolLocationLong, schoolLocationLatt = EXCLUDED.schoolLocationLatt, schoolEmailAddress = EXCLUDED.schoolEmailAddress, schoolTeachersPersonGroupUid = EXCLUDED.schoolTeachersPersonGroupUid, schoolStudentsPersonGroupUid = EXCLUDED.schoolStudentsPersonGroupUid, schoolPendingStudentsPersonGroupUid = EXCLUDED.schoolPendingStudentsPersonGroupUid, schoolCode = EXCLUDED.schoolCode, schoolMasterChangeSeqNum = EXCLUDED.schoolMasterChangeSeqNum, schoolLocalChangeSeqNum = EXCLUDED.schoolLocalChangeSeqNum, schoolLastChangedBy = EXCLUDED.schoolLastChangedBy, schoolLct = EXCLUDED.schoolLct, schoolTimeZone = EXCLUDED.schoolTimeZone ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER school_remote_insert_trig INSTEAD OF INSERT ON School_ReceiveView FOR EACH ROW EXECUTE PROCEDURE school_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_200_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (200, NEW.schoolMemberUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_200_trig AFTER UPDATE OR INSERT ON SchoolMember FOR EACH ROW EXECUTE PROCEDURE ch_upd_200_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_200_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (200, OLD.schoolMemberUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_200_trig AFTER DELETE ON SchoolMember FOR EACH ROW EXECUTE PROCEDURE ch_del_200_fn(); "),t.add_11rb$("CREATE VIEW SchoolMember_ReceiveView AS SELECT SchoolMember.*, SchoolMemberReplicate.* FROM SchoolMember LEFT JOIN SchoolMemberReplicate ON SchoolMemberReplicate.smPk = SchoolMember.schoolMemberUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION schoolmember_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO SchoolMember(schoolMemberUid, schoolMemberPersonUid, schoolMemberSchoolUid, schoolMemberJoinDate, schoolMemberLeftDate, schoolMemberRole, schoolMemberActive, schoolMemberLocalChangeSeqNum, schoolMemberMasterChangeSeqNum, schoolMemberLastChangedBy, schoolMemberLct) VALUES (NEW.schoolMemberUid, NEW.schoolMemberPersonUid, NEW.schoolMemberSchoolUid, NEW.schoolMemberJoinDate, NEW.schoolMemberLeftDate, NEW.schoolMemberRole, NEW.schoolMemberActive, NEW.schoolMemberLocalChangeSeqNum, NEW.schoolMemberMasterChangeSeqNum, NEW.schoolMemberLastChangedBy, NEW.schoolMemberLct) ON CONFLICT (schoolMemberUid) DO UPDATE SET schoolMemberPersonUid = EXCLUDED.schoolMemberPersonUid, schoolMemberSchoolUid = EXCLUDED.schoolMemberSchoolUid, schoolMemberJoinDate = EXCLUDED.schoolMemberJoinDate, schoolMemberLeftDate = EXCLUDED.schoolMemberLeftDate, schoolMemberRole = EXCLUDED.schoolMemberRole, schoolMemberActive = EXCLUDED.schoolMemberActive, schoolMemberLocalChangeSeqNum = EXCLUDED.schoolMemberLocalChangeSeqNum, schoolMemberMasterChangeSeqNum = EXCLUDED.schoolMemberMasterChangeSeqNum, schoolMemberLastChangedBy = EXCLUDED.schoolMemberLastChangedBy, schoolMemberLct = EXCLUDED.schoolMemberLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER schoolmember_remote_insert_trig INSTEAD OF INSERT ON SchoolMember_ReceiveView FOR EACH ROW EXECUTE PROCEDURE schoolmember_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_208_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (208, NEW.commentsUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_208_trig AFTER UPDATE OR INSERT ON Comments FOR EACH ROW EXECUTE PROCEDURE ch_upd_208_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_208_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (208, OLD.commentsUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_208_trig AFTER DELETE ON Comments FOR EACH ROW EXECUTE PROCEDURE ch_del_208_fn(); "),t.add_11rb$("CREATE VIEW Comments_ReceiveView AS SELECT Comments.*, CommentsReplicate.* FROM Comments LEFT JOIN CommentsReplicate ON CommentsReplicate.commentsPk = Comments.commentsUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION comments_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO Comments(commentsUid, commentsText, commentsEntityType, commentsEntityUid, commentsPublic, commentsStatus, commentsPersonUid, commentsToPersonUid, commentSubmitterUid, commentsFlagged, commentsInActive, commentsDateTimeAdded, commentsDateTimeUpdated, commentsMCSN, commentsLCSN, commentsLCB, commentsLct) VALUES (NEW.commentsUid, NEW.commentsText, NEW.commentsEntityType, NEW.commentsEntityUid, NEW.commentsPublic, NEW.commentsStatus, NEW.commentsPersonUid, NEW.commentsToPersonUid, NEW.commentSubmitterUid, NEW.commentsFlagged, NEW.commentsInActive, NEW.commentsDateTimeAdded, NEW.commentsDateTimeUpdated, NEW.commentsMCSN, NEW.commentsLCSN, NEW.commentsLCB, NEW.commentsLct) ON CONFLICT (commentsUid) DO UPDATE SET commentsText = EXCLUDED.commentsText, commentsEntityType = EXCLUDED.commentsEntityType, commentsEntityUid = EXCLUDED.commentsEntityUid, commentsPublic = EXCLUDED.commentsPublic, commentsStatus = EXCLUDED.commentsStatus, commentsPersonUid = EXCLUDED.commentsPersonUid, commentsToPersonUid = EXCLUDED.commentsToPersonUid, commentSubmitterUid = EXCLUDED.commentSubmitterUid, commentsFlagged = EXCLUDED.commentsFlagged, commentsInActive = EXCLUDED.commentsInActive, commentsDateTimeAdded = EXCLUDED.commentsDateTimeAdded, commentsDateTimeUpdated = EXCLUDED.commentsDateTimeUpdated, commentsMCSN = EXCLUDED.commentsMCSN, commentsLCSN = EXCLUDED.commentsLCSN, commentsLCB = EXCLUDED.commentsLCB, commentsLct = EXCLUDED.commentsLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER comments_remote_insert_trig INSTEAD OF INSERT ON Comments_ReceiveView FOR EACH ROW EXECUTE PROCEDURE comments_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_101_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (101, NEW.reportUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_101_trig AFTER UPDATE OR INSERT ON Report FOR EACH ROW EXECUTE PROCEDURE ch_upd_101_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_101_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (101, OLD.reportUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_101_trig AFTER DELETE ON Report FOR EACH ROW EXECUTE PROCEDURE ch_del_101_fn(); "),t.add_11rb$("CREATE VIEW Report_ReceiveView AS SELECT Report.*, ReportReplicate.* FROM Report LEFT JOIN ReportReplicate ON ReportReplicate.reportPk = Report.reportUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION report_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO Report(reportUid, reportOwnerUid, xAxis, reportDateRangeSelection, fromDate, fromRelTo, fromRelOffSet, fromRelUnit, toDate, toRelTo, toRelOffSet, toRelUnit, reportTitle, reportDescription, reportSeries, reportInactive, isTemplate, priority, reportTitleId, reportDescId, reportMasterChangeSeqNum, reportLocalChangeSeqNum, reportLastChangedBy, reportLct) VALUES (NEW.reportUid, NEW.reportOwnerUid, NEW.xAxis, NEW.reportDateRangeSelection, NEW.fromDate, NEW.fromRelTo, NEW.fromRelOffSet, NEW.fromRelUnit, NEW.toDate, NEW.toRelTo, NEW.toRelOffSet, NEW.toRelUnit, NEW.reportTitle, NEW.reportDescription, NEW.reportSeries, NEW.reportInactive, NEW.isTemplate, NEW.priority, NEW.reportTitleId, NEW.reportDescId, NEW.reportMasterChangeSeqNum, NEW.reportLocalChangeSeqNum, NEW.reportLastChangedBy, NEW.reportLct) ON CONFLICT (reportUid) DO UPDATE SET reportOwnerUid = EXCLUDED.reportOwnerUid, xAxis = EXCLUDED.xAxis, reportDateRangeSelection = EXCLUDED.reportDateRangeSelection, fromDate = EXCLUDED.fromDate, fromRelTo = EXCLUDED.fromRelTo, fromRelOffSet = EXCLUDED.fromRelOffSet, fromRelUnit = EXCLUDED.fromRelUnit, toDate = EXCLUDED.toDate, toRelTo = EXCLUDED.toRelTo, toRelOffSet = EXCLUDED.toRelOffSet, toRelUnit = EXCLUDED.toRelUnit, reportTitle = EXCLUDED.reportTitle, reportDescription = EXCLUDED.reportDescription, reportSeries = EXCLUDED.reportSeries, reportInactive = EXCLUDED.reportInactive, isTemplate = EXCLUDED.isTemplate, priority = EXCLUDED.priority, reportTitleId = EXCLUDED.reportTitleId, reportDescId = EXCLUDED.reportDescId, reportMasterChangeSeqNum = EXCLUDED.reportMasterChangeSeqNum, reportLocalChangeSeqNum = EXCLUDED.reportLocalChangeSeqNum, reportLastChangedBy = EXCLUDED.reportLastChangedBy, reportLct = EXCLUDED.reportLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER report_remote_insert_trig INSTEAD OF INSERT ON Report_ReceiveView FOR EACH ROW EXECUTE PROCEDURE report_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_189_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (189, NEW.siteUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_189_trig AFTER UPDATE OR INSERT ON Site FOR EACH ROW EXECUTE PROCEDURE ch_upd_189_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_189_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (189, OLD.siteUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_189_trig AFTER DELETE ON Site FOR EACH ROW EXECUTE PROCEDURE ch_del_189_fn(); "),t.add_11rb$("CREATE VIEW Site_ReceiveView AS SELECT Site.*, SiteReplicate.* FROM Site LEFT JOIN SiteReplicate ON SiteReplicate.sitePk = Site.siteUid ");var l=S("\n |CREATE OR REPLACE FUNCTION site_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO Site(siteUid, sitePcsn, siteLcsn, siteLcb, siteLct, siteName, guestLogin, registrationAllowed, authSalt) VALUES (NEW.siteUid, NEW.sitePcsn, NEW.siteLcsn, NEW.siteLcb, NEW.siteLct, NEW.siteName, NEW.guestLogin, NEW.registrationAllowed, NEW.authSalt) ON CONFLICT (siteUid) DO UPDATE SET sitePcsn = EXCLUDED.sitePcsn, siteLcsn = EXCLUDED.siteLcsn, siteLcb = EXCLUDED.siteLcb, siteLct = EXCLUDED.siteLct, siteName = EXCLUDED.siteName, guestLogin = EXCLUDED.guestLogin, registrationAllowed = EXCLUDED.registrationAllowed, authSalt = EXCLUDED.authSalt\n |; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql\n ");t.add_11rb$(l),t.add_11rb$(" CREATE TRIGGER site_remote_insert_trig INSTEAD OF INSERT ON Site_ReceiveView FOR EACH ROW EXECUTE PROCEDURE site_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_301_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (301, NEW.learnerGroupUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_301_trig AFTER UPDATE OR INSERT ON LearnerGroup FOR EACH ROW EXECUTE PROCEDURE ch_upd_301_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_301_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (301, OLD.learnerGroupUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_301_trig AFTER DELETE ON LearnerGroup FOR EACH ROW EXECUTE PROCEDURE ch_del_301_fn(); "),t.add_11rb$("CREATE VIEW LearnerGroup_ReceiveView AS SELECT LearnerGroup.*, LearnerGroupReplicate.* FROM LearnerGroup LEFT JOIN LearnerGroupReplicate ON LearnerGroupReplicate.lgPk = LearnerGroup.learnerGroupUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION learnergroup_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO LearnerGroup(learnerGroupUid, learnerGroupName, learnerGroupDescription, learnerGroupActive, learnerGroupMCSN, learnerGroupCSN, learnerGroupLCB, learnerGroupLct) VALUES (NEW.learnerGroupUid, NEW.learnerGroupName, NEW.learnerGroupDescription, NEW.learnerGroupActive, NEW.learnerGroupMCSN, NEW.learnerGroupCSN, NEW.learnerGroupLCB, NEW.learnerGroupLct) ON CONFLICT (learnerGroupUid) DO UPDATE SET learnerGroupName = EXCLUDED.learnerGroupName, learnerGroupDescription = EXCLUDED.learnerGroupDescription, learnerGroupActive = EXCLUDED.learnerGroupActive, learnerGroupMCSN = EXCLUDED.learnerGroupMCSN, learnerGroupCSN = EXCLUDED.learnerGroupCSN, learnerGroupLCB = EXCLUDED.learnerGroupLCB, learnerGroupLct = EXCLUDED.learnerGroupLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER learnergroup_remote_insert_trig INSTEAD OF INSERT ON LearnerGroup_ReceiveView FOR EACH ROW EXECUTE PROCEDURE learnergroup_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_300_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (300, NEW.learnerGroupMemberUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_300_trig AFTER UPDATE OR INSERT ON LearnerGroupMember FOR EACH ROW EXECUTE PROCEDURE ch_upd_300_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_300_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (300, OLD.learnerGroupMemberUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_300_trig AFTER DELETE ON LearnerGroupMember FOR EACH ROW EXECUTE PROCEDURE ch_del_300_fn(); "),t.add_11rb$("CREATE VIEW LearnerGroupMember_ReceiveView AS SELECT LearnerGroupMember.*, LearnerGroupMemberReplicate.* FROM LearnerGroupMember LEFT JOIN LearnerGroupMemberReplicate ON LearnerGroupMemberReplicate.lgmPk = LearnerGroupMember.learnerGroupMemberUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION learnergroupmember_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO LearnerGroupMember(learnerGroupMemberUid, learnerGroupMemberPersonUid, learnerGroupMemberLgUid, learnerGroupMemberRole, learnerGroupMemberActive, learnerGroupMemberMCSN, learnerGroupMemberCSN, learnerGroupMemberLCB, learnerGroupMemberLct) VALUES (NEW.learnerGroupMemberUid, NEW.learnerGroupMemberPersonUid, NEW.learnerGroupMemberLgUid, NEW.learnerGroupMemberRole, NEW.learnerGroupMemberActive, NEW.learnerGroupMemberMCSN, NEW.learnerGroupMemberCSN, NEW.learnerGroupMemberLCB, NEW.learnerGroupMemberLct) ON CONFLICT (learnerGroupMemberUid) DO UPDATE SET learnerGroupMemberPersonUid = EXCLUDED.learnerGroupMemberPersonUid, learnerGroupMemberLgUid = EXCLUDED.learnerGroupMemberLgUid, learnerGroupMemberRole = EXCLUDED.learnerGroupMemberRole, learnerGroupMemberActive = EXCLUDED.learnerGroupMemberActive, learnerGroupMemberMCSN = EXCLUDED.learnerGroupMemberMCSN, learnerGroupMemberCSN = EXCLUDED.learnerGroupMemberCSN, learnerGroupMemberLCB = EXCLUDED.learnerGroupMemberLCB, learnerGroupMemberLct = EXCLUDED.learnerGroupMemberLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER learnergroupmember_remote_insert_trig INSTEAD OF INSERT ON LearnerGroupMember_ReceiveView FOR EACH ROW EXECUTE PROCEDURE learnergroupmember_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_302_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (302, NEW.groupLearningSessionUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_302_trig AFTER UPDATE OR INSERT ON GroupLearningSession FOR EACH ROW EXECUTE PROCEDURE ch_upd_302_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_302_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (302, OLD.groupLearningSessionUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_302_trig AFTER DELETE ON GroupLearningSession FOR EACH ROW EXECUTE PROCEDURE ch_del_302_fn(); "),t.add_11rb$("CREATE VIEW GroupLearningSession_ReceiveView AS SELECT GroupLearningSession.*, GroupLearningSessionReplicate.* FROM GroupLearningSession LEFT JOIN GroupLearningSessionReplicate ON GroupLearningSessionReplicate.glsPk = GroupLearningSession.groupLearningSessionUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION grouplearningsession_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO GroupLearningSession(groupLearningSessionUid, groupLearningSessionContentUid, groupLearningSessionLearnerGroupUid, groupLearningSessionInactive, groupLearningSessionMCSN, groupLearningSessionCSN, groupLearningSessionLCB, groupLearningSessionLct) VALUES (NEW.groupLearningSessionUid, NEW.groupLearningSessionContentUid, NEW.groupLearningSessionLearnerGroupUid, NEW.groupLearningSessionInactive, NEW.groupLearningSessionMCSN, NEW.groupLearningSessionCSN, NEW.groupLearningSessionLCB, NEW.groupLearningSessionLct) ON CONFLICT (groupLearningSessionUid) DO UPDATE SET groupLearningSessionContentUid = EXCLUDED.groupLearningSessionContentUid, groupLearningSessionLearnerGroupUid = EXCLUDED.groupLearningSessionLearnerGroupUid, groupLearningSessionInactive = EXCLUDED.groupLearningSessionInactive, groupLearningSessionMCSN = EXCLUDED.groupLearningSessionMCSN, groupLearningSessionCSN = EXCLUDED.groupLearningSessionCSN, groupLearningSessionLCB = EXCLUDED.groupLearningSessionLCB, groupLearningSessionLct = EXCLUDED.groupLearningSessionLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER grouplearningsession_remote_insert_trig INSTEAD OF INSERT ON GroupLearningSession_ReceiveView FOR EACH ROW EXECUTE PROCEDURE grouplearningsession_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_272_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (272, NEW.sTermsUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_272_trig AFTER UPDATE OR INSERT ON SiteTerms FOR EACH ROW EXECUTE PROCEDURE ch_upd_272_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_272_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (272, OLD.sTermsUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_272_trig AFTER DELETE ON SiteTerms FOR EACH ROW EXECUTE PROCEDURE ch_del_272_fn(); "),t.add_11rb$("CREATE VIEW SiteTerms_ReceiveView AS SELECT SiteTerms.*, SiteTermsReplicate.* FROM SiteTerms LEFT JOIN SiteTermsReplicate ON SiteTermsReplicate.stPk = SiteTerms.sTermsUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION siteterms_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO SiteTerms(sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct) VALUES (NEW.sTermsUid, NEW.termsHtml, NEW.sTermsLang, NEW.sTermsLangUid, NEW.sTermsActive, NEW.sTermsLastChangedBy, NEW.sTermsPrimaryCsn, NEW.sTermsLocalCsn, NEW.sTermsLct) ON CONFLICT (sTermsUid) DO UPDATE SET termsHtml = EXCLUDED.termsHtml, sTermsLang = EXCLUDED.sTermsLang, sTermsLangUid = EXCLUDED.sTermsLangUid, sTermsActive = EXCLUDED.sTermsActive, sTermsLastChangedBy = EXCLUDED.sTermsLastChangedBy, sTermsPrimaryCsn = EXCLUDED.sTermsPrimaryCsn, sTermsLocalCsn = EXCLUDED.sTermsLocalCsn, sTermsLct = EXCLUDED.sTermsLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER siteterms_remote_insert_trig INSTEAD OF INSERT ON SiteTerms_ReceiveView FOR EACH ROW EXECUTE PROCEDURE siteterms_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_134_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (134, NEW.ccjUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_134_trig AFTER UPDATE OR INSERT ON ClazzContentJoin FOR EACH ROW EXECUTE PROCEDURE ch_upd_134_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_134_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (134, OLD.ccjUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_134_trig AFTER DELETE ON ClazzContentJoin FOR EACH ROW EXECUTE PROCEDURE ch_del_134_fn(); "),t.add_11rb$("CREATE VIEW ClazzContentJoin_ReceiveView AS SELECT ClazzContentJoin.*, ClazzContentJoinReplicate.* FROM ClazzContentJoin LEFT JOIN ClazzContentJoinReplicate ON ClazzContentJoinReplicate.ccjPk = ClazzContentJoin.ccjUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION clazzcontentjoin_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ClazzContentJoin(ccjUid, ccjContentEntryUid, ccjClazzUid, ccjActive, ccjLocalChangeSeqNum, ccjMasterChangeSeqNum, ccjLastChangedBy, ccjLct) VALUES (NEW.ccjUid, NEW.ccjContentEntryUid, NEW.ccjClazzUid, NEW.ccjActive, NEW.ccjLocalChangeSeqNum, NEW.ccjMasterChangeSeqNum, NEW.ccjLastChangedBy, NEW.ccjLct) ON CONFLICT (ccjUid) DO UPDATE SET ccjContentEntryUid = EXCLUDED.ccjContentEntryUid, ccjClazzUid = EXCLUDED.ccjClazzUid, ccjActive = EXCLUDED.ccjActive, ccjLocalChangeSeqNum = EXCLUDED.ccjLocalChangeSeqNum, ccjMasterChangeSeqNum = EXCLUDED.ccjMasterChangeSeqNum, ccjLastChangedBy = EXCLUDED.ccjLastChangedBy, ccjLct = EXCLUDED.ccjLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER clazzcontentjoin_remote_insert_trig INSTEAD OF INSERT ON ClazzContentJoin_ReceiveView FOR EACH ROW EXECUTE PROCEDURE clazzcontentjoin_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_512_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (512, NEW.ppjUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_512_trig AFTER UPDATE OR INSERT ON PersonParentJoin FOR EACH ROW EXECUTE PROCEDURE ch_upd_512_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_512_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (512, OLD.ppjUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_512_trig AFTER DELETE ON PersonParentJoin FOR EACH ROW EXECUTE PROCEDURE ch_del_512_fn(); "),t.add_11rb$("CREATE VIEW PersonParentJoin_ReceiveView AS SELECT PersonParentJoin.*, PersonParentJoinReplicate.* FROM PersonParentJoin LEFT JOIN PersonParentJoinReplicate ON PersonParentJoinReplicate.ppjPk = PersonParentJoin.ppjUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION personparentjoin_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO PersonParentJoin(ppjUid, ppjPcsn, ppjLcsn, ppjLcb, ppjLct, ppjParentPersonUid, ppjMinorPersonUid, ppjRelationship, ppjEmail, ppjPhone, ppjInactive, ppjStatus, ppjApprovalTiemstamp, ppjApprovalIpAddr) VALUES (NEW.ppjUid, NEW.ppjPcsn, NEW.ppjLcsn, NEW.ppjLcb, NEW.ppjLct, NEW.ppjParentPersonUid, NEW.ppjMinorPersonUid, NEW.ppjRelationship, NEW.ppjEmail, NEW.ppjPhone, NEW.ppjInactive, NEW.ppjStatus, NEW.ppjApprovalTiemstamp, NEW.ppjApprovalIpAddr) ON CONFLICT (ppjUid) DO UPDATE SET ppjPcsn = EXCLUDED.ppjPcsn, ppjLcsn = EXCLUDED.ppjLcsn, ppjLcb = EXCLUDED.ppjLcb, ppjLct = EXCLUDED.ppjLct, ppjParentPersonUid = EXCLUDED.ppjParentPersonUid, ppjMinorPersonUid = EXCLUDED.ppjMinorPersonUid, ppjRelationship = EXCLUDED.ppjRelationship, ppjEmail = EXCLUDED.ppjEmail, ppjPhone = EXCLUDED.ppjPhone, ppjInactive = EXCLUDED.ppjInactive, ppjStatus = EXCLUDED.ppjStatus, ppjApprovalTiemstamp = EXCLUDED.ppjApprovalTiemstamp, ppjApprovalIpAddr = EXCLUDED.ppjApprovalIpAddr ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER personparentjoin_remote_insert_trig INSTEAD OF INSERT ON PersonParentJoin_ReceiveView FOR EACH ROW EXECUTE PROCEDURE personparentjoin_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_48_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (48, NEW.sgUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_48_trig AFTER UPDATE OR INSERT ON ScopedGrant FOR EACH ROW EXECUTE PROCEDURE ch_upd_48_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_48_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (48, OLD.sgUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_48_trig AFTER DELETE ON ScopedGrant FOR EACH ROW EXECUTE PROCEDURE ch_del_48_fn(); "),t.add_11rb$("CREATE VIEW ScopedGrant_ReceiveView AS SELECT ScopedGrant.*, ScopedGrantReplicate.* FROM ScopedGrant LEFT JOIN ScopedGrantReplicate ON ScopedGrantReplicate.sgPk = ScopedGrant.sgUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION sg_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ScopedGrant(sgUid, sgPcsn, sgLcsn, sgLcb, sgLct, sgTableId, sgEntityUid, sgPermissions, sgGroupUid, sgIndex, sgFlags) VALUES (NEW.sgUid, NEW.sgPcsn, NEW.sgLcsn, NEW.sgLcb, NEW.sgLct, NEW.sgTableId, NEW.sgEntityUid, NEW.sgPermissions, NEW.sgGroupUid, NEW.sgIndex, NEW.sgFlags) ON CONFLICT(sgUid) DO UPDATE SET sgLct = EXCLUDED.sgLct, sgPermissions = EXCLUDED.sgPermissions ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER sg_remote_insert_trig INSTEAD OF INSERT ON ScopedGrant_ReceiveView FOR EACH ROW EXECUTE PROCEDURE sg_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_419_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (419, NEW.errUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_419_trig AFTER UPDATE OR INSERT ON ErrorReport FOR EACH ROW EXECUTE PROCEDURE ch_upd_419_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_419_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (419, OLD.errUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_419_trig AFTER DELETE ON ErrorReport FOR EACH ROW EXECUTE PROCEDURE ch_del_419_fn(); "),t.add_11rb$("CREATE VIEW ErrorReport_ReceiveView AS SELECT ErrorReport.*, ErrorReportReplicate.* FROM ErrorReport LEFT JOIN ErrorReportReplicate ON ErrorReportReplicate.erPk = ErrorReport.errUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION errorreport_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ErrorReport(errUid, errPcsn, errLcsn, errLcb, errLct, severity, timestamp, presenterUri, appVersion, versionCode, errorCode, operatingSys, osVersion, stackTrace, message) VALUES (NEW.errUid, NEW.errPcsn, NEW.errLcsn, NEW.errLcb, NEW.errLct, NEW.severity, NEW.timestamp, NEW.presenterUri, NEW.appVersion, NEW.versionCode, NEW.errorCode, NEW.operatingSys, NEW.osVersion, NEW.stackTrace, NEW.message) ON CONFLICT (errUid) DO UPDATE SET errPcsn = EXCLUDED.errPcsn, errLcsn = EXCLUDED.errLcsn, errLcb = EXCLUDED.errLcb, errLct = EXCLUDED.errLct, severity = EXCLUDED.severity, timestamp = EXCLUDED.timestamp, presenterUri = EXCLUDED.presenterUri, appVersion = EXCLUDED.appVersion, versionCode = EXCLUDED.versionCode, errorCode = EXCLUDED.errorCode, operatingSys = EXCLUDED.operatingSys, osVersion = EXCLUDED.osVersion, stackTrace = EXCLUDED.stackTrace, message = EXCLUDED.message ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER errorreport_remote_insert_trig INSTEAD OF INSERT ON ErrorReport_ReceiveView FOR EACH ROW EXECUTE PROCEDURE errorreport_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_520_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (520, NEW.caUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_520_trig AFTER UPDATE OR INSERT ON ClazzAssignment FOR EACH ROW EXECUTE PROCEDURE ch_upd_520_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_520_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (520, OLD.caUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_520_trig AFTER DELETE ON ClazzAssignment FOR EACH ROW EXECUTE PROCEDURE ch_del_520_fn(); "),t.add_11rb$("CREATE VIEW ClazzAssignment_ReceiveView AS SELECT ClazzAssignment.*, ClazzAssignmentReplicate.* FROM ClazzAssignment LEFT JOIN ClazzAssignmentReplicate ON ClazzAssignmentReplicate.caPk = ClazzAssignment.caUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION clazzassignment_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ClazzAssignment(caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct) VALUES (NEW.caUid, NEW.caTitle, NEW.caDescription, NEW.caGroupUid, NEW.caActive, NEW.caClassCommentEnabled, NEW.caPrivateCommentsEnabled, NEW.caRequireFileSubmission, NEW.caFileType, NEW.caSizeLimit, NEW.caNumberOfFiles, NEW.caSubmissionPolicy, NEW.caMarkingType,NEW.caRequireTextSubmission, NEW.caTextLimitType, NEW.caTextLimit, NEW.caXObjectUid, NEW.caClazzUid, NEW.caLocalChangeSeqNum, NEW.caMasterChangeSeqNum, NEW.caLastChangedBy, NEW.caLct) ON CONFLICT (caUid) DO UPDATE SET caTitle = EXCLUDED.caTitle, caDescription = EXCLUDED.caDescription, caGroupUid = EXCLUDED.caGroupUid, caActive = EXCLUDED.caActive, caClassCommentEnabled = EXCLUDED.caClassCommentEnabled, caPrivateCommentsEnabled = EXCLUDED.caPrivateCommentsEnabled, caRequireFileSubmission = EXCLUDED.caRequireFileSubmission, caFileType = EXCLUDED.caFileType, caSizeLimit = EXCLUDED.caSizeLimit, caNumberOfFiles = EXCLUDED.caNumberOfFiles, caSubmissionPolicy = EXCLUDED.caSubmissionPolicy, caMarkingType = EXCLUDED.caMarkingType, caRequireTextSubmission = EXCLUDED.caRequireTextSubmission, caTextLimitType = EXCLUDED.caTextLimitType, caTextLimit = EXCLUDED.caTextLimit, caXObjectUid = EXCLUDED.caXObjectUid, caClazzUid = EXCLUDED.caClazzUid, caLocalChangeSeqNum = EXCLUDED.caLocalChangeSeqNum, caMasterChangeSeqNum = EXCLUDED.caMasterChangeSeqNum, caLastChangedBy = EXCLUDED.caLastChangedBy, caLct = EXCLUDED.caLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER clazzassignment_remote_insert_trig INSTEAD OF INSERT ON ClazzAssignment_ReceiveView FOR EACH ROW EXECUTE PROCEDURE clazzassignment_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_521_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (521, NEW.cacjUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_521_trig AFTER UPDATE OR INSERT ON ClazzAssignmentContentJoin FOR EACH ROW EXECUTE PROCEDURE ch_upd_521_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_521_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (521, OLD.cacjUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_521_trig AFTER DELETE ON ClazzAssignmentContentJoin FOR EACH ROW EXECUTE PROCEDURE ch_del_521_fn(); "),t.add_11rb$("CREATE VIEW ClazzAssignmentContentJoin_ReceiveView AS SELECT ClazzAssignmentContentJoin.*, ClazzAssignmentContentJoinReplicate.* FROM ClazzAssignmentContentJoin LEFT JOIN ClazzAssignmentContentJoinReplicate ON ClazzAssignmentContentJoinReplicate.cacjPk = ClazzAssignmentContentJoin.cacjUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION clazzassignmentcontentjoin_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ClazzAssignmentContentJoin(cacjUid, cacjContentUid, cacjAssignmentUid, cacjActive,cacjWeight, cacjMCSN, cacjLCSN, cacjLCB, cacjLct) VALUES (NEW.cacjUid, NEW.cacjContentUid, NEW.cacjAssignmentUid, NEW.cacjActive, NEW.cacjWeight, NEW.cacjMCSN, NEW.cacjLCSN, NEW.cacjLCB, NEW.cacjLct) ON CONFLICT (cacjUid) DO UPDATE SET cacjContentUid = EXCLUDED.cacjContentUid, cacjAssignmentUid = EXCLUDED.cacjAssignmentUid, cacjActive = EXCLUDED.cacjActive, cacjWeight = EXCLUDED.cacjWeight, cacjMCSN = EXCLUDED.cacjMCSN, cacjLCSN = EXCLUDED.cacjLCSN, cacjLCB = EXCLUDED.cacjLCB, cacjLct = EXCLUDED.cacjLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER clazzassignmentcontentjoin_remote_insert_trig INSTEAD OF INSERT ON ClazzAssignmentContentJoin_ReceiveView FOR EACH ROW EXECUTE PROCEDURE clazzassignmentcontentjoin_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_522_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (522, NEW.casUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_522_trig AFTER UPDATE OR INSERT ON CourseAssignmentSubmission FOR EACH ROW EXECUTE PROCEDURE ch_upd_522_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_522_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (522, OLD.casUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_522_trig AFTER DELETE ON CourseAssignmentSubmission FOR EACH ROW EXECUTE PROCEDURE ch_del_522_fn(); "),t.add_11rb$("CREATE VIEW CourseAssignmentSubmission_ReceiveView AS SELECT CourseAssignmentSubmission.*, CourseAssignmentSubmissionReplicate.* FROM CourseAssignmentSubmission LEFT JOIN CourseAssignmentSubmissionReplicate ON CourseAssignmentSubmissionReplicate.casPk = CourseAssignmentSubmission.casUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION courseassignmentsubmission_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO CourseAssignmentSubmission(casUid, casAssignmentUid, casSubmitterUid, casSubmitterPersonUid, casText, casType, casTimestamp) VALUES (NEW.casUid, NEW.casAssignmentUid, NEW.casSubmitterUid, NEW.casSubmitterPersonUid, NEW.casText, NEW.casType, NEW.casTimestamp) ON CONFLICT (casUid) DO UPDATE SET casAssignmentUid = EXCLUDED.casAssignmentUid, casSubmitterUid = EXCLUDED.casSubmitterUid, casSubmitterPersonUid = EXCLUDED.casSubmitterPersonUid, casText = EXCLUDED.casText, casType = EXCLUDED.casType, casTimestamp = EXCLUDED.casTimestamp ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER courseassignmentsubmission_remote_insert_trig INSTEAD OF INSERT ON CourseAssignmentSubmission_ReceiveView FOR EACH ROW EXECUTE PROCEDURE courseassignmentsubmission_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_90_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (90, NEW.casaUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_90_trig AFTER UPDATE OR INSERT ON CourseAssignmentSubmissionAttachment FOR EACH ROW EXECUTE PROCEDURE ch_upd_90_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_90_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (90, OLD.casaUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_90_trig AFTER DELETE ON CourseAssignmentSubmissionAttachment FOR EACH ROW EXECUTE PROCEDURE ch_del_90_fn(); "),t.add_11rb$("CREATE VIEW CourseAssignmentSubmissionAttachment_ReceiveView AS SELECT CourseAssignmentSubmissionAttachment.*, CourseAssignmentSubmissionAttachmentReplicate.* FROM CourseAssignmentSubmissionAttachment LEFT JOIN CourseAssignmentSubmissionAttachmentReplicate ON CourseAssignmentSubmissionAttachmentReplicate.casaPk = CourseAssignmentSubmissionAttachment.casaUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION courseassignmentsubmissionattachment_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO CourseAssignmentSubmissionAttachment(casaUid, casaSubmissionUid, casaMimeType,casaFileName, casaUri, casaMd5, casaSize, casaTimestamp) VALUES (NEW.casaUid, NEW.casaSubmissionUid, NEW.casaMimeType, NEW.casaFileName, NEW.casaUri, NEW.casaMd5, NEW.casaSize, NEW.casaTimestamp) ON CONFLICT (casaUid) DO UPDATE SET casaSubmissionUid = EXCLUDED.casaSubmissionUid, casaMimeType = EXCLUDED.casaMimeType, casaFileName = EXCLUDED.casaFileName, casaUri = EXCLUDED.casaUri, casaMd5 = EXCLUDED.casaMd5, casaSize = EXCLUDED.casaSize, casaTimestamp = EXCLUDED.casaTimestamp ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER courseassignmentsubmissionattachment_remote_insert_trig INSTEAD OF INSERT ON CourseAssignmentSubmissionAttachment_ReceiveView FOR EACH ROW EXECUTE PROCEDURE courseassignmentsubmissionattachment_remote_insert_fn() ");var u=S("\n | CREATE OR REPLACE FUNCTION attach_CourseAssignmentSubmissionAttachment_fn() RETURNS trigger AS $$\n | BEGIN\n | \n | INSERT INTO ZombieAttachmentData(zaUri) \n | SELECT OLD.casaUri AS zaUri\n | FROM CourseAssignmentSubmissionAttachment \n | WHERE CourseAssignmentSubmissionAttachment.casaUid = OLD.casaUid\n | AND (SELECT COUNT(*) \n | FROM CourseAssignmentSubmissionAttachment\n | WHERE casaMd5 = OLD.casaMd5) = 0\n |;\n | RETURN NEW;\n | END $$\n | LANGUAGE plpgsql\n ");t.add_11rb$(u);var h=S("\n |CREATE TRIGGER attach_CourseAssignmentSubmissionAttachment_trig\n |AFTER UPDATE ON CourseAssignmentSubmissionAttachment\n |FOR EACH ROW WHEN (OLD.casaMd5 IS NOT NULL)\n |EXECUTE PROCEDURE attach_CourseAssignmentSubmissionAttachment_fn();\n ");t.add_11rb$(h),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_523_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (523, NEW.camUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_523_trig AFTER UPDATE OR INSERT ON CourseAssignmentMark FOR EACH ROW EXECUTE PROCEDURE ch_upd_523_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_523_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (523, OLD.camUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_523_trig AFTER DELETE ON CourseAssignmentMark FOR EACH ROW EXECUTE PROCEDURE ch_del_523_fn(); "),t.add_11rb$("CREATE VIEW CourseAssignmentMark_ReceiveView AS SELECT CourseAssignmentMark.*, CourseAssignmentMarkReplicate.* FROM CourseAssignmentMark LEFT JOIN CourseAssignmentMarkReplicate ON CourseAssignmentMarkReplicate.camPk = CourseAssignmentMark.camUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION courseassignmentmark_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO CourseAssignmentMark(camUid, camAssignmentUid, camSubmitterUid, camMark, camPenalty, camLct) VALUES (NEW.camUid, NEW.camAssignmentUid, NEW.camSubmitterUid, NEW.camMark, NEW.camPenalty, NEW.camLct) ON CONFLICT (camUid) DO UPDATE SET camAssignmentUid = EXCLUDED.camAssignmentUid, camSubmitterUid = EXCLUDED.camSubmitterUid, camMark = EXCLUDED.camMark, camPenalty = EXCLUDED.camPenalty, camLct = EXCLUDED.camLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER courseassignmentmark_remote_insert_trig INSTEAD OF INSERT ON CourseAssignmentMark_ReceiveView FOR EACH ROW EXECUTE PROCEDURE courseassignmentmark_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_678_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (678, NEW.pauthUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_678_trig AFTER UPDATE OR INSERT ON PersonAuth2 FOR EACH ROW EXECUTE PROCEDURE ch_upd_678_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_678_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (678, OLD.pauthUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_678_trig AFTER DELETE ON PersonAuth2 FOR EACH ROW EXECUTE PROCEDURE ch_del_678_fn(); "),t.add_11rb$("CREATE VIEW PersonAuth2_ReceiveView AS SELECT PersonAuth2.*, PersonAuth2Replicate.* FROM PersonAuth2 LEFT JOIN PersonAuth2Replicate ON PersonAuth2Replicate.paPk = PersonAuth2.pauthUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION personauth2_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO PersonAuth2(pauthUid, pauthMechanism, pauthAuth, pauthLcsn, pauthPcsn, pauthLcb, pauthLct) VALUES (NEW.pauthUid, NEW.pauthMechanism, NEW.pauthAuth, NEW.pauthLcsn, NEW.pauthPcsn, NEW.pauthLcb, NEW.pauthLct) ON CONFLICT (pauthUid) DO UPDATE SET pauthMechanism = EXCLUDED.pauthMechanism, pauthAuth = EXCLUDED.pauthAuth, pauthLcsn = EXCLUDED.pauthLcsn, pauthPcsn = EXCLUDED.pauthPcsn, pauthLcb = EXCLUDED.pauthLcb, pauthLct = EXCLUDED.pauthLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER personauth2_remote_insert_trig INSTEAD OF INSERT ON PersonAuth2_ReceiveView FOR EACH ROW EXECUTE PROCEDURE personauth2_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_679_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (679, NEW.usUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_679_trig AFTER UPDATE OR INSERT ON UserSession FOR EACH ROW EXECUTE PROCEDURE ch_upd_679_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_679_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (679, OLD.usUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_679_trig AFTER DELETE ON UserSession FOR EACH ROW EXECUTE PROCEDURE ch_del_679_fn(); "),t.add_11rb$("CREATE VIEW UserSession_ReceiveView AS SELECT UserSession.*, UserSessionReplicate.* FROM UserSession LEFT JOIN UserSessionReplicate ON UserSessionReplicate.usPk = UserSession.usUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION usersession_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO UserSession(usUid, usPcsn, usLcsn, usLcb, usLct, usPersonUid, usClientNodeId, usStartTime, usEndTime, usStatus, usReason, usAuth, usSessionType) VALUES (NEW.usUid, NEW.usPcsn, NEW.usLcsn, NEW.usLcb, NEW.usLct, NEW.usPersonUid, NEW.usClientNodeId, NEW.usStartTime, NEW.usEndTime, NEW.usStatus, NEW.usReason, NEW.usAuth, NEW.usSessionType) ON CONFLICT (usUid) DO UPDATE SET usPcsn = EXCLUDED.usPcsn, usLcsn = EXCLUDED.usLcsn, usLcb = EXCLUDED.usLcb, usLct = EXCLUDED.usLct, usPersonUid = EXCLUDED.usPersonUid, usClientNodeId = EXCLUDED.usClientNodeId, usStartTime = EXCLUDED.usStartTime, usEndTime = EXCLUDED.usEndTime, usStatus = EXCLUDED.usStatus, usReason = EXCLUDED.usReason, usAuth = EXCLUDED.usAuth, usSessionType = EXCLUDED.usSessionType ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER usersession_remote_insert_trig INSTEAD OF INSERT ON UserSession_ReceiveView FOR EACH ROW EXECUTE PROCEDURE usersession_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_124_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (124, NEW.cbUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_124_trig AFTER UPDATE OR INSERT ON CourseBlock FOR EACH ROW EXECUTE PROCEDURE ch_upd_124_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_124_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (124, OLD.cbUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_124_trig AFTER DELETE ON CourseBlock FOR EACH ROW EXECUTE PROCEDURE ch_del_124_fn(); "),t.add_11rb$("CREATE VIEW CourseBlock_ReceiveView AS SELECT CourseBlock.*, CourseBlockReplicate.* FROM CourseBlock LEFT JOIN CourseBlockReplicate ON CourseBlockReplicate.cbPk = CourseBlock.cbUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION courseblock_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO CourseBlock(cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints,cbMinPoints, cbIndex, cbClazzUid, cbActive,cbHidden, cbEntityUid, cbLct) VALUES (NEW.cbUid, NEW.cbType, NEW.cbIndentLevel, NEW.cbModuleParentBlockUid, NEW.cbTitle, NEW.cbDescription, NEW.cbCompletionCriteria, NEW.cbHideUntilDate, NEW.cbDeadlineDate, NEW.cbLateSubmissionPenalty, NEW.cbGracePeriodDate, NEW.cbMaxPoints,NEW.cbMinPoints, NEW.cbIndex, NEW.cbClazzUid,NEW.cbActive, NEW.cbHidden, NEW.cbEntityUid, NEW.cbLct) ON CONFLICT (cbUid) DO UPDATE SET cbType = EXCLUDED.cbType, cbIndentLevel = EXCLUDED.cbIndentLevel, cbModuleParentBlockUid = EXCLUDED.cbModuleParentBlockUid, cbTitle = EXCLUDED.cbTitle, cbDescription = EXCLUDED.cbDescription, cbCompletionCriteria = EXCLUDED.cbCompletionCriteria, cbHideUntilDate = EXCLUDED.cbHideUntilDate,cbDeadlineDate = EXCLUDED.cbDeadlineDate, cbLateSubmissionPenalty = EXCLUDED.cbLateSubmissionPenalty, cbGracePeriodDate= EXCLUDED.cbGracePeriodDate, cbMaxPoints = EXCLUDED.cbMaxPoints, cbMinPoints = EXCLUDED.cbMinPoints, cbIndex = EXCLUDED.cbIndex,cbClazzUid = EXCLUDED.cbClazzUid, cbActive = EXCLUDED.cbActive, cbHidden = EXCLUDED.cbHidden, cbEntityUid = EXCLUDED.cbEntityUid, cbLct = EXCLUDED.cbLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER courseblock_remote_insert_trig INSTEAD OF INSERT ON CourseBlock_ReceiveView FOR EACH ROW EXECUTE PROCEDURE courseblock_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_450_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (450, NEW.ctUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_450_trig AFTER UPDATE OR INSERT ON CourseTerminology FOR EACH ROW EXECUTE PROCEDURE ch_upd_450_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_450_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (450, OLD.ctUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_450_trig AFTER DELETE ON CourseTerminology FOR EACH ROW EXECUTE PROCEDURE ch_del_450_fn(); "),t.add_11rb$("CREATE VIEW CourseTerminology_ReceiveView AS SELECT CourseTerminology.*, CourseTerminologyReplicate.* FROM CourseTerminology LEFT JOIN CourseTerminologyReplicate ON CourseTerminologyReplicate.ctPk = CourseTerminology.ctUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION courseterminology_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO CourseTerminology(ctUid, ctTitle, ctTerminology, ctLct) VALUES (NEW.ctUid, NEW.ctTitle, NEW.ctTerminology, NEW.ctLct) ON CONFLICT (ctUid) DO UPDATE SET ctTitle = EXCLUDED.ctTitle, ctTerminology = EXCLUDED.ctTerminology, ctLct = EXCLUDED.ctLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER courseterminology_remote_insert_trig INSTEAD OF INSERT ON CourseTerminology_ReceiveView FOR EACH ROW EXECUTE PROCEDURE courseterminology_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_242_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (242, NEW.cgsUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_242_trig AFTER UPDATE OR INSERT ON CourseGroupSet FOR EACH ROW EXECUTE PROCEDURE ch_upd_242_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_242_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (242, OLD.cgsUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_242_trig AFTER DELETE ON CourseGroupSet FOR EACH ROW EXECUTE PROCEDURE ch_del_242_fn(); "),t.add_11rb$("CREATE VIEW CourseGroupSet_ReceiveView AS SELECT CourseGroupSet.*, CourseGroupSetReplicate.* FROM CourseGroupSet LEFT JOIN CourseGroupSetReplicate ON CourseGroupSetReplicate.cgsPk = CourseGroupSet.cgsUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION coursegroupset_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO CourseGroupSet(cgsUid, cgsName, cgsTotalGroups, cgsActive, cgsClazzUid, cgsLct) VALUES (NEW.cgsUid, NEW.cgsName, NEW.cgsTotalGroups, NEW.cgsActive, NEW.cgsClazzUid, NEW.cgsLct) ON CONFLICT (cgsUid) DO UPDATE SET cgsName = EXCLUDED.cgsName, cgsTotalGroups = EXCLUDED.cgsTotalGroups, cgsActive = EXCLUDED.cgsActive, cgsClazzUid = EXCLUDED.cgsClazzUid, cgsLct = EXCLUDED.cgsLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER coursegroupset_remote_insert_trig INSTEAD OF INSERT ON CourseGroupSet_ReceiveView FOR EACH ROW EXECUTE PROCEDURE coursegroupset_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_243_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (243, NEW.cgmUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_243_trig AFTER UPDATE OR INSERT ON CourseGroupMember FOR EACH ROW EXECUTE PROCEDURE ch_upd_243_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_243_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (243, OLD.cgmUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_243_trig AFTER DELETE ON CourseGroupMember FOR EACH ROW EXECUTE PROCEDURE ch_del_243_fn(); "),t.add_11rb$("CREATE VIEW CourseGroupMember_ReceiveView AS SELECT CourseGroupMember.*, CourseGroupMemberReplicate.* FROM CourseGroupMember LEFT JOIN CourseGroupMemberReplicate ON CourseGroupMemberReplicate.cgmPk = CourseGroupMember.cgmUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION coursegroupmember_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO CourseGroupMember(cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct) VALUES (NEW.cgmUid, NEW.cgmSetUid, NEW.cgmGroupNumber, NEW.cgmPersonUid, NEW.cgmLct) ON CONFLICT (cgmUid) DO UPDATE SET cgmSetUid = EXCLUDED.cgmSetUid, cgmGroupNumber = EXCLUDED.cgmGroupNumber, cgmPersonUid = EXCLUDED.cgmPersonUid, cgmLct = EXCLUDED.cgmLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER coursegroupmember_remote_insert_trig INSTEAD OF INSERT ON CourseGroupMember_ReceiveView FOR EACH ROW EXECUTE PROCEDURE coursegroupmember_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_125_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (125, NEW.coursePictureUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_125_trig AFTER UPDATE OR INSERT ON CoursePicture FOR EACH ROW EXECUTE PROCEDURE ch_upd_125_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_125_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (125, OLD.coursePictureUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_125_trig AFTER DELETE ON CoursePicture FOR EACH ROW EXECUTE PROCEDURE ch_del_125_fn(); "),t.add_11rb$("CREATE VIEW CoursePicture_ReceiveView AS SELECT CoursePicture.*, CoursePictureReplicate.* FROM CoursePicture LEFT JOIN CoursePictureReplicate ON CoursePictureReplicate.cpPk = CoursePicture.coursePictureUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION coursepicture_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO CoursePicture(coursePictureUid, coursePictureClazzUid, coursePictureMasterCsn, coursePictureLocalCsn, coursePictureLastChangedBy, coursePictureLct, coursePictureUri, coursePictureMd5, coursePictureFileSize, coursePictureTimestamp, coursePictureMimeType, coursePictureActive) VALUES (NEW.coursePictureUid, NEW.coursePictureClazzUid, NEW.coursePictureMasterCsn, NEW.coursePictureLocalCsn, NEW.coursePictureLastChangedBy, NEW.coursePictureLct, NEW.coursePictureUri, NEW.coursePictureMd5, NEW.coursePictureFileSize, NEW.coursePictureTimestamp, NEW.coursePictureMimeType, NEW.coursePictureActive) ON CONFLICT (coursePictureUid) DO UPDATE SET coursePictureClazzUid = EXCLUDED.coursePictureClazzUid, coursePictureMasterCsn = EXCLUDED.coursePictureMasterCsn, coursePictureLocalCsn = EXCLUDED.coursePictureLocalCsn, coursePictureLastChangedBy = EXCLUDED.coursePictureLastChangedBy, coursePictureLct = EXCLUDED.coursePictureLct, coursePictureUri = EXCLUDED.coursePictureUri, coursePictureMd5 = EXCLUDED.coursePictureMd5, coursePictureFileSize = EXCLUDED.coursePictureFileSize, coursePictureTimestamp = EXCLUDED.coursePictureTimestamp, coursePictureMimeType = EXCLUDED.coursePictureMimeType, coursePictureActive = EXCLUDED.coursePictureActive ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER coursepicture_remote_insert_trig INSTEAD OF INSERT ON CoursePicture_ReceiveView FOR EACH ROW EXECUTE PROCEDURE coursepicture_remote_insert_fn() ");var d=S("\n | CREATE OR REPLACE FUNCTION attach_CoursePicture_fn() RETURNS trigger AS $$\n | BEGIN\n | \n | INSERT INTO ZombieAttachmentData(zaUri) \n | SELECT OLD.coursePictureUri AS zaUri\n | FROM CoursePicture \n | WHERE CoursePicture.coursePictureUid = OLD.coursePictureUid\n | AND (SELECT COUNT(*) \n | FROM CoursePicture\n | WHERE coursePictureMd5 = OLD.coursePictureMd5) = 0\n |;\n | RETURN NEW;\n | END $$\n | LANGUAGE plpgsql\n ");t.add_11rb$(d);var p=S("\n |CREATE TRIGGER attach_CoursePicture_trig\n |AFTER UPDATE ON CoursePicture\n |FOR EACH ROW WHEN (OLD.coursePictureMd5 IS NOT NULL)\n |EXECUTE PROCEDURE attach_CoursePicture_fn();\n ");t.add_11rb$(p),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_138_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (138, NEW.cepUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_138_trig AFTER UPDATE OR INSERT ON ContentEntryPicture FOR EACH ROW EXECUTE PROCEDURE ch_upd_138_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_138_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (138, OLD.cepUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_138_trig AFTER DELETE ON ContentEntryPicture FOR EACH ROW EXECUTE PROCEDURE ch_del_138_fn(); "),t.add_11rb$("CREATE VIEW ContentEntryPicture_ReceiveView AS SELECT ContentEntryPicture.*, ContentEntryPictureReplicate.* FROM ContentEntryPicture LEFT JOIN ContentEntryPictureReplicate ON ContentEntryPictureReplicate.cepPk = ContentEntryPicture.cepUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION ceppicture_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ContentEntryPicture(cepUid, cepContentEntryUid, cepUri, cepMd5, cepFileSize, cepTimestamp, cepMimeType, cepActive) VALUES (NEW.cepUid, NEW.cepContentEntryUid, NEW.cepUri, NEW.cepMd5, NEW.cepFileSize, NEW.cepTimestamp, NEW.cepMimeType, NEW.cepActive) ON CONFLICT (cepUid) DO UPDATE SET cepContentEntryUid = EXCLUDED.cepContentEntryUid, cepUri = EXCLUDED.cepUri, cepMd5 = EXCLUDED.cepMd5, cepFileSize = EXCLUDED.cepFileSize, cepTimestamp = EXCLUDED.cepTimestamp, cepMimeType = EXCLUDED.cepMimeType, cepActive = EXCLUDED.cepActive ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER ceppicture_remote_insert_trig INSTEAD OF INSERT ON ContentEntryPicture_ReceiveView FOR EACH ROW EXECUTE PROCEDURE ceppicture_remote_insert_fn() ");var _=S("\n | CREATE OR REPLACE FUNCTION attach_ContentEntryPicture_fn() RETURNS trigger AS $$\n | BEGIN\n | \n | INSERT INTO ZombieAttachmentData(zaUri) \n | SELECT OLD.cepUri AS zaUri\n | FROM ContentEntryPicture \n | WHERE ContentEntryPicture.cepUid = OLD.cepUid\n | AND (SELECT COUNT(*) \n | FROM ContentEntryPicture\n | WHERE cepMd5 = OLD.cepMd5) = 0\n |;\n | RETURN NEW;\n | END $$\n | LANGUAGE plpgsql\n ");t.add_11rb$(_);var m=S("\n |CREATE TRIGGER attach_ContentEntryPicture_trig\n |AFTER UPDATE ON ContentEntryPicture\n |FOR EACH ROW WHEN (OLD.cepMd5 IS NOT NULL)\n |EXECUTE PROCEDURE attach_ContentEntryPicture_fn();\n ");t.add_11rb$(m),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_127_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (127, NEW.chatUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_127_trig AFTER UPDATE OR INSERT ON Chat FOR EACH ROW EXECUTE PROCEDURE ch_upd_127_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_127_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (127, OLD.chatUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_127_trig AFTER DELETE ON Chat FOR EACH ROW EXECUTE PROCEDURE ch_del_127_fn(); "),t.add_11rb$("CREATE VIEW Chat_ReceiveView AS SELECT Chat.*, ChatReplicate.* FROM Chat LEFT JOIN ChatReplicate ON ChatReplicate.chatPk = Chat.chatUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION chat_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO Chat(chatUid, chatStartDate, chatTitle, chatGroup, chatLct) VALUES(NEW.chatUid, NEW.chatStartDate, NEW.chatTitle, NEW.chatGroup, NEW.chatLct) ON CONFLICT (chatUid) DO UPDATE SET chatStartDate = EXCLUDED.chatStartDate, chatTitle = EXCLUDED.chatTitle, chatGroup = EXCLUDED.chatGroup, chatLct = EXCLUDED.chatLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER chat_remote_insert_trig INSTEAD OF INSERT ON Chat_ReceiveView FOR EACH ROW EXECUTE PROCEDURE chat_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_128_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (128, NEW.chatMemberUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_128_trig AFTER UPDATE OR INSERT ON ChatMember FOR EACH ROW EXECUTE PROCEDURE ch_upd_128_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_128_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (128, OLD.chatMemberUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_128_trig AFTER DELETE ON ChatMember FOR EACH ROW EXECUTE PROCEDURE ch_del_128_fn(); "),t.add_11rb$("CREATE VIEW ChatMember_ReceiveView AS SELECT ChatMember.*, ChatMemberReplicate.* FROM ChatMember LEFT JOIN ChatMemberReplicate ON ChatMemberReplicate.chatMemberPk = ChatMember.chatMemberUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION chatmember_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChatMember(chatMemberUid, chatMemberChatUid, chatMemberPersonUid, chatMemberJoinedDate, chatMemberLeftDate, chatMemberLct) VALUES(NEW.chatMemberUid, NEW.chatMemberChatUid, NEW.chatMemberPersonUid, NEW.chatMemberJoinedDate, NEW.chatMemberLeftDate, NEW.chatMemberLct) ON CONFLICT (chatMemberUid) DO UPDATE SET chatMemberChatUid = EXCLUDED.chatMemberChatUid, chatMemberPersonUid = EXCLUDED.chatMemberPersonUid, chatMemberJoinedDate = EXCLUDED.chatMemberJoinedDate, chatMemberLeftDate = EXCLUDED.chatMemberLeftDate, chatMemberLct = EXCLUDED.chatMemberLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER chatmember_remote_insert_trig INSTEAD OF INSERT ON ChatMember_ReceiveView FOR EACH ROW EXECUTE PROCEDURE chatmember_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_126_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (126, NEW.messageUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_126_trig AFTER UPDATE OR INSERT ON Message FOR EACH ROW EXECUTE PROCEDURE ch_upd_126_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_126_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (126, OLD.messageUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_126_trig AFTER DELETE ON Message FOR EACH ROW EXECUTE PROCEDURE ch_del_126_fn(); "),t.add_11rb$("CREATE VIEW Message_ReceiveView AS SELECT Message.*, MessageReplicate.* FROM Message LEFT JOIN MessageReplicate ON MessageReplicate.messagePk = Message.messageUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION message_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO Message(messageUid, messageSenderPersonUid, messageTableId, messageEntityUid, messageText, messageTimestamp, messageClazzUid, messageLct) VALUES(NEW.messageUid, NEW.messageSenderPersonUid, NEW.messageTableId, NEW.messageEntityUid, NEW.messageText, NEW.messageTimestamp, NEW.messageClazzUid, NEW.messageLct) ON CONFLICT (messageUid) DO UPDATE SET messageSenderPersonUid = EXCLUDED.messageSenderPersonUid, messageTableId = EXCLUDED.messageTableId, messageEntityUid = EXCLUDED.messageEntityUid, messageText = EXCLUDED.messageText, messageTimestamp = EXCLUDED.messageTimestamp, messageClazzUid = EXCLUDED.messageClazzUid, messageLct = EXCLUDED.messageLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER message_remote_insert_trig INSTEAD OF INSERT ON Message_ReceiveView FOR EACH ROW EXECUTE PROCEDURE message_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_129_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (129, NEW.messageReadUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_129_trig AFTER UPDATE OR INSERT ON MessageRead FOR EACH ROW EXECUTE PROCEDURE ch_upd_129_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_129_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (129, OLD.messageReadUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_129_trig AFTER DELETE ON MessageRead FOR EACH ROW EXECUTE PROCEDURE ch_del_129_fn(); "),t.add_11rb$("CREATE VIEW MessageRead_ReceiveView AS SELECT MessageRead.*, MessageReadReplicate.* FROM MessageRead LEFT JOIN MessageReadReplicate ON MessageReadReplicate.messageReadPk = MessageRead.messageReadUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION messageread_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO MessageRead(messageReadUid, messageReadPersonUid, messageReadMessageUid, messageReadEntityUid, messageReadLct) VALUES(NEW.messageReadUid, NEW.messageReadPersonUid, NEW.messageReadMessageUid, NEW.messageReadEntityUid, NEW.messageReadLct) ON CONFLICT (messageReadUid) DO UPDATE SET messageReadPersonUid = EXCLUDED.messageReadPersonUid, messageReadMessageUid = EXCLUDED.messageReadMessageUid, messageReadEntityUid = EXCLUDED.messageReadEntityUid, messageReadLct = EXCLUDED.messageReadLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER messageread_remote_insert_trig INSTEAD OF INSERT ON MessageRead_ReceiveView FOR EACH ROW EXECUTE PROCEDURE messageread_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_130_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (130, NEW.courseDiscussionUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_130_trig AFTER UPDATE OR INSERT ON CourseDiscussion FOR EACH ROW EXECUTE PROCEDURE ch_upd_130_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_130_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (130, OLD.courseDiscussionUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_130_trig AFTER DELETE ON CourseDiscussion FOR EACH ROW EXECUTE PROCEDURE ch_del_130_fn(); "),t.add_11rb$("CREATE VIEW CourseDiscussion_ReceiveView AS SELECT CourseDiscussion.*, CourseDiscussionReplicate.* FROM CourseDiscussion LEFT JOIN CourseDiscussionReplicate ON CourseDiscussionReplicate.courseDiscussionPk = CourseDiscussion.courseDiscussionUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION coursediscussion_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO CourseDiscussion(courseDiscussionUid, courseDiscussionActive, courseDiscussionTitle, courseDiscussionDesc, courseDiscussionClazzUid, courseDiscussionLct) VALUES(NEW.courseDiscussionUid, NEW.courseDiscussionActive, NEW.courseDiscussionTitle, NEW.courseDiscussionDesc, NEW.courseDiscussionClazzUid, NEW.courseDiscussionLct) ON CONFLICT (courseDiscussionUid) DO UPDATE SET courseDiscussionActive = EXCLUDED.courseDiscussionActive, courseDiscussionTitle = EXCLUDED.courseDiscussionTitle, courseDiscussionDesc = EXCLUDED.courseDiscussionDesc, courseDiscussionClazzUid = EXCLUDED.courseDiscussionClazzUid, courseDiscussionLct = EXCLUDED.courseDiscussionLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER coursediscussion_remote_insert_trig INSTEAD OF INSERT ON CourseDiscussion_ReceiveView FOR EACH ROW EXECUTE PROCEDURE coursediscussion_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_131_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (131, NEW.discussionTopicUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_131_trig AFTER UPDATE OR INSERT ON DiscussionTopic FOR EACH ROW EXECUTE PROCEDURE ch_upd_131_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_131_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (131, OLD.discussionTopicUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_131_trig AFTER DELETE ON DiscussionTopic FOR EACH ROW EXECUTE PROCEDURE ch_del_131_fn(); "),t.add_11rb$("CREATE VIEW DiscussionTopic_ReceiveView AS SELECT DiscussionTopic.*, DiscussionTopicReplicate.* FROM DiscussionTopic LEFT JOIN DiscussionTopicReplicate ON DiscussionTopicReplicate.discussionTopicPk = DiscussionTopic.discussionTopicUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION discussiontopic_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO DiscussionTopic(discussionTopicUid, discussionTopicTitle, discussionTopicDesc, discussionTopicStartDate, discussionTopicCourseDiscussionUid, discussionTopicVisible, discussionTopicArchive, discussionTopicIndex, discussionTopicClazzUid, discussionTopicLct) VALUES(NEW.discussionTopicUid, NEW.discussionTopicTitle, NEW.discussionTopicDesc, NEW.discussionTopicStartDate, NEW.discussionTopicCourseDiscussionUid, NEW.discussionTopicVisible, NEW.discussionTopicArchive, NEW.discussionTopicIndex, NEW.discussionTopicClazzUid, NEW.discussionTopicLct) ON CONFLICT (discussionTopicUid) DO UPDATE SET discussionTopicTitle = EXCLUDED.discussionTopicTitle, discussionTopicDesc = EXCLUDED.discussionTopicDesc, discussionTopicStartDate = EXCLUDED.discussionTopicStartDate, discussionTopicCourseDiscussionUid = EXCLUDED.discussionTopicCourseDiscussionUid, discussionTopicVisible = EXCLUDED.discussionTopicVisible, discussionTopicArchive = EXCLUDED.discussionTopicArchive, discussionTopicIndex = EXCLUDED.discussionTopicIndex, discussionTopicClazzUid = EXCLUDED.discussionTopicClazzUid, discussionTopicLct = EXCLUDED.discussionTopicLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER discussiontopic_remote_insert_trig INSTEAD OF INSERT ON DiscussionTopic_ReceiveView FOR EACH ROW EXECUTE PROCEDURE discussiontopic_remote_insert_fn() "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_132_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (132, NEW.discussionPostUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_upd_132_trig AFTER UPDATE OR INSERT ON DiscussionPost FOR EACH ROW EXECUTE PROCEDURE ch_upd_132_fn(); "),t.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_132_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (132, OLD.discussionPostUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),t.add_11rb$(" CREATE TRIGGER ch_del_132_trig AFTER DELETE ON DiscussionPost FOR EACH ROW EXECUTE PROCEDURE ch_del_132_fn(); "),t.add_11rb$("CREATE VIEW DiscussionPost_ReceiveView AS SELECT DiscussionPost.*, DiscussionPostReplicate.* FROM DiscussionPost LEFT JOIN DiscussionPostReplicate ON DiscussionPostReplicate.discussionPostPk = DiscussionPost.discussionPostUid "),t.add_11rb$("CREATE OR REPLACE FUNCTION discussionpost_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO DiscussionPost(discussionPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostDiscussionTopicUid, discussionPostVisible, discussionPostArchive, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct) VALUES(NEW.discussionPostUid, NEW.discussionPostTitle, NEW.discussionPostMessage, NEW.discussionPostStartDate, NEW.discussionPostDiscussionTopicUid, NEW.discussionPostVisible, NEW.discussionPostArchive, NEW.discussionPostStartedPersonUid, NEW.discussionPostClazzUid, NEW.discussionPostLct) ON CONFLICT (discussionPostUid) DO UPDATE SET discussionPostTitle = EXCLUDED.discussionPostTitle , discussionPostMessage = EXCLUDED.discussionPostMessage , discussionPostStartDate = EXCLUDED.discussionPostStartDate , discussionPostDiscussionTopicUid = EXCLUDED.discussionPostDiscussionTopicUid, discussionPostVisible = EXCLUDED.discussionPostVisible , discussionPostArchive = EXCLUDED.discussionPostArchive , discussionPostStartedPersonUid = EXCLUDED.discussionPostStartedPersonUid , discussionPostClazzUid = EXCLUDED.discussionPostClazzUid, discussionPostLct = EXCLUDED.discussionPostLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),t.add_11rb$(" CREATE TRIGGER discussionpost_remote_insert_trig INSTEAD OF INSERT ON DiscussionPost_ReceiveView FOR EACH ROW EXECUTE PROCEDURE discussionpost_remote_insert_fn() ")}return t},Un.prototype.makeClearAllTablesSql=function(){var t=F();return t.add_11rb$("DELETE FROM NetworkNode"),t.add_11rb$("DELETE FROM ClazzLog"),t.add_11rb$("DELETE FROM ClazzLogAttendanceRecord"),t.add_11rb$("DELETE FROM Schedule"),t.add_11rb$("DELETE FROM DateRange"),t.add_11rb$("DELETE FROM HolidayCalendar"),t.add_11rb$("DELETE FROM Holiday"),t.add_11rb$("DELETE FROM ScheduledCheck"),t.add_11rb$("DELETE FROM AuditLog"),t.add_11rb$("DELETE FROM CustomField"),t.add_11rb$("DELETE FROM CustomFieldValue"),t.add_11rb$("DELETE FROM CustomFieldValueOption"),t.add_11rb$("DELETE FROM Person"),t.add_11rb$("DELETE FROM Clazz"),t.add_11rb$("DELETE FROM ClazzEnrolment"),t.add_11rb$("DELETE FROM LeavingReason"),t.add_11rb$("DELETE FROM ContentEntry"),t.add_11rb$("DELETE FROM ContentEntryContentCategoryJoin"),t.add_11rb$("DELETE FROM ContentEntryParentChildJoin"),t.add_11rb$("DELETE FROM ContentEntryRelatedEntryJoin"),t.add_11rb$("DELETE FROM ContentCategorySchema"),t.add_11rb$("DELETE FROM ContentCategory"),t.add_11rb$("DELETE FROM Language"),t.add_11rb$("DELETE FROM LanguageVariant"),t.add_11rb$("DELETE FROM AccessToken"),t.add_11rb$("DELETE FROM PersonAuth"),t.add_11rb$("DELETE FROM Role"),t.add_11rb$("DELETE FROM EntityRole"),t.add_11rb$("DELETE FROM PersonGroup"),t.add_11rb$("DELETE FROM PersonGroupMember"),t.add_11rb$("DELETE FROM PersonPicture"),t.add_11rb$("DELETE FROM ScrapeQueueItem"),t.add_11rb$("DELETE FROM ScrapeRun"),t.add_11rb$("DELETE FROM ConnectivityStatus"),t.add_11rb$("DELETE FROM Container"),t.add_11rb$("DELETE FROM ContainerEntry"),t.add_11rb$("DELETE FROM ContainerEntryFile"),t.add_11rb$("DELETE FROM VerbEntity"),t.add_11rb$("DELETE FROM XObjectEntity"),t.add_11rb$("DELETE FROM StatementEntity"),t.add_11rb$("DELETE FROM ContextXObjectStatementJoin"),t.add_11rb$("DELETE FROM AgentEntity"),t.add_11rb$("DELETE FROM StateEntity"),t.add_11rb$("DELETE FROM StateContentEntity"),t.add_11rb$("DELETE FROM XLangMapEntry"),t.add_11rb$("DELETE FROM SyncNode"),t.add_11rb$("DELETE FROM LocallyAvailableContainer"),t.add_11rb$("DELETE FROM ContainerETag"),t.add_11rb$("DELETE FROM School"),t.add_11rb$("DELETE FROM SchoolMember"),t.add_11rb$("DELETE FROM Comments"),t.add_11rb$("DELETE FROM Report"),t.add_11rb$("DELETE FROM Site"),t.add_11rb$("DELETE FROM ContainerImportJob"),t.add_11rb$("DELETE FROM LearnerGroup"),t.add_11rb$("DELETE FROM LearnerGroupMember"),t.add_11rb$("DELETE FROM GroupLearningSession"),t.add_11rb$("DELETE FROM SiteTerms"),t.add_11rb$("DELETE FROM ClazzContentJoin"),t.add_11rb$("DELETE FROM PersonParentJoin"),t.add_11rb$("DELETE FROM ScopedGrant"),t.add_11rb$("DELETE FROM ErrorReport"),t.add_11rb$("DELETE FROM ClazzAssignment"),t.add_11rb$("DELETE FROM ClazzAssignmentContentJoin"),t.add_11rb$("DELETE FROM CourseAssignmentSubmission"),t.add_11rb$("DELETE FROM CourseAssignmentSubmissionAttachment"),t.add_11rb$("DELETE FROM CourseAssignmentMark"),t.add_11rb$("DELETE FROM ClazzAssignmentRollUp"),t.add_11rb$("DELETE FROM PersonAuth2"),t.add_11rb$("DELETE FROM UserSession"),t.add_11rb$("DELETE FROM ContentJob"),t.add_11rb$("DELETE FROM ContentJobItem"),t.add_11rb$("DELETE FROM CourseBlock"),t.add_11rb$("DELETE FROM CourseTerminology"),t.add_11rb$("DELETE FROM CourseGroupSet"),t.add_11rb$("DELETE FROM CourseGroupMember"),t.add_11rb$("DELETE FROM ChangeLog"),t.add_11rb$("DELETE FROM ZombieAttachmentData"),t.add_11rb$("DELETE FROM DoorNode"),t.add_11rb$("DELETE FROM ReplicationStatus"),t.add_11rb$("DELETE FROM ClazzLogReplicate"),t.add_11rb$("DELETE FROM ClazzLogAttendanceRecordReplicate"),t.add_11rb$("DELETE FROM CourseAssignmentSubmissionReplicate"),t.add_11rb$("DELETE FROM CourseAssignmentSubmissionAttachmentReplicate"),t.add_11rb$("DELETE FROM CourseAssignmentMarkReplicate"),t.add_11rb$("DELETE FROM CourseBlockReplicate"),t.add_11rb$("DELETE FROM CourseTerminologyReplicate"),t.add_11rb$("DELETE FROM CourseGroupSetReplicate"),t.add_11rb$("DELETE FROM CourseGroupMemberReplicate"),t.add_11rb$("DELETE FROM ScheduleReplicate"),t.add_11rb$("DELETE FROM HolidayCalendarReplicate"),t.add_11rb$("DELETE FROM HolidayReplicate"),t.add_11rb$("DELETE FROM PersonReplicate"),t.add_11rb$("DELETE FROM ClazzReplicate"),t.add_11rb$("DELETE FROM ClazzEnrolmentReplicate"),t.add_11rb$("DELETE FROM LeavingReasonReplicate"),t.add_11rb$("DELETE FROM ContentEntryReplicate"),t.add_11rb$("DELETE FROM ContentEntryContentCategoryJoinReplicate"),t.add_11rb$("DELETE FROM ContentEntryParentChildJoinReplicate"),t.add_11rb$("DELETE FROM ContentEntryRelatedEntryJoinReplicate"),t.add_11rb$("DELETE FROM ContentCategorySchemaReplicate"),t.add_11rb$("DELETE FROM ContentCategoryReplicate"),t.add_11rb$("DELETE FROM LanguageReplicate"),t.add_11rb$("DELETE FROM LanguageVariantReplicate"),t.add_11rb$("DELETE FROM PersonGroupReplicate"),t.add_11rb$("DELETE FROM PersonGroupMemberReplicate"),t.add_11rb$("DELETE FROM PersonPictureReplicate"),t.add_11rb$("DELETE FROM ContainerReplicate"),t.add_11rb$("DELETE FROM VerbEntityReplicate"),t.add_11rb$("DELETE FROM XObjectEntityReplicate"),t.add_11rb$("DELETE FROM StatementEntityReplicate"),t.add_11rb$("DELETE FROM ContextXObjectStatementJoinReplicate"),t.add_11rb$("DELETE FROM AgentEntityReplicate"),t.add_11rb$("DELETE FROM StateEntityReplicate"),t.add_11rb$("DELETE FROM StateContentEntityReplicate"),t.add_11rb$("DELETE FROM XLangMapEntryReplicate"),t.add_11rb$("DELETE FROM SchoolReplicate"),t.add_11rb$("DELETE FROM SchoolMemberReplicate"),t.add_11rb$("DELETE FROM CommentsReplicate"),t.add_11rb$("DELETE FROM ReportReplicate"),t.add_11rb$("DELETE FROM SiteReplicate"),t.add_11rb$("DELETE FROM LearnerGroupReplicate"),t.add_11rb$("DELETE FROM LearnerGroupMemberReplicate"),t.add_11rb$("DELETE FROM GroupLearningSessionReplicate"),t.add_11rb$("DELETE FROM SiteTermsReplicate"),t.add_11rb$("DELETE FROM ClazzContentJoinReplicate"),t.add_11rb$("DELETE FROM PersonParentJoinReplicate"),t.add_11rb$("DELETE FROM ScopedGrantReplicate"),t.add_11rb$("DELETE FROM ErrorReportReplicate"),t.add_11rb$("DELETE FROM ClazzAssignmentReplicate"),t.add_11rb$("DELETE FROM ClazzAssignmentContentJoinReplicate"),t.add_11rb$("DELETE FROM PersonAuth2Replicate"),t.add_11rb$("DELETE FROM UserSessionReplicate"),t.add_11rb$("DELETE FROM CoursePicture"),t.add_11rb$("DELETE FROM CoursePictureReplicate"),t.add_11rb$("DELETE FROM ContentEntryPicture"),t.add_11rb$("DELETE FROM ContentEntryPictureReplicate"),t.add_11rb$("DELETE FROM Chat"),t.add_11rb$("DELETE FROM ChatMember"),t.add_11rb$("DELETE FROM Message"),t.add_11rb$("DELETE FROM MessageReplicate"),t.add_11rb$("DELETE FROM ChatReplicate"),t.add_11rb$("DELETE FROM ChatMemberReplicate"),t.add_11rb$("DELETE FROM MessageRead"),t.add_11rb$("DELETE FROM MessageReadReplicate"),t.add_11rb$("DELETE FROM CourseDiscussion"),t.add_11rb$("DELETE FROM CourseDiscussionReplicate"),t.add_11rb$("DELETE FROM DiscussionTopic"),t.add_11rb$("DELETE FROM DiscussionTopicReplicate"),t.add_11rb$("DELETE FROM DiscussionPost"),t.add_11rb$("DELETE FROM DiscussionPostReplicate"),t},Un.prototype.clearAllTables=function(){throw v("clearAllTables synchronous not supported on Javascript")},Dn.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Dn.prototype=Object.create(N.prototype),Dn.prototype.constructor=Dn,Dn.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this.execSQLBatchAsyncJs_vqirvp$(q(this.$this.makeClearAllTablesSql()).slice(),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Un.prototype.clearAllTablesAsync=function(t,e){var n=new Dn(this,t);return e?n:n.doResume(null)},Un.prototype.getInvalidationTracker=function(){return this.jdbcImplHelper.invalidationTracker},Un.$metadata$={kind:c,simpleName:"UmAppDatabase_JdbcKt",interfaces:[G,j,Ln]},Object.defineProperty(Mn.prototype,"dbVersion",{configurable:!0,get:function(){return 107}}),Object.defineProperty(Mn.prototype,"dbName",{configurable:!0,get:function(){return"DoorWrapper for ["+this._db_0.toString()+"]"}}),Object.defineProperty(Mn.prototype,"networkNodeDao",{configurable:!0,get:function(){return this._db_0.networkNodeDao}}),Object.defineProperty(Mn.prototype,"_PersonDao",{configurable:!0,get:function(){return this._PersonDao_z4p9xw$_0.value}}),Object.defineProperty(Mn.prototype,"personDao",{configurable:!0,get:function(){return this._PersonDao}}),Object.defineProperty(Mn.prototype,"_ClazzDao",{configurable:!0,get:function(){return this._ClazzDao_yxezhz$_0.value}}),Object.defineProperty(Mn.prototype,"clazzDao",{configurable:!0,get:function(){return this._ClazzDao}}),Object.defineProperty(Mn.prototype,"_CourseBlockDao",{configurable:!0,get:function(){return this._CourseBlockDao_i86l99$_0.value}}),Object.defineProperty(Mn.prototype,"courseBlockDao",{configurable:!0,get:function(){return this._CourseBlockDao}}),Object.defineProperty(Mn.prototype,"_CourseTerminologyDao",{configurable:!0,get:function(){return this._CourseTerminologyDao_f5vdrr$_0.value}}),Object.defineProperty(Mn.prototype,"courseTerminologyDao",{configurable:!0,get:function(){return this._CourseTerminologyDao}}),Object.defineProperty(Mn.prototype,"_CourseGroupSetDao",{configurable:!0,get:function(){return this._CourseGroupSetDao_xqwtyb$_0.value}}),Object.defineProperty(Mn.prototype,"courseGroupSetDao",{configurable:!0,get:function(){return this._CourseGroupSetDao}}),Object.defineProperty(Mn.prototype,"_CourseGroupMemberDao",{configurable:!0,get:function(){return this._CourseGroupMemberDao_q315bl$_0.value}}),Object.defineProperty(Mn.prototype,"courseGroupMemberDao",{configurable:!0,get:function(){return this._CourseGroupMemberDao}}),Object.defineProperty(Mn.prototype,"_ClazzEnrolmentDao",{configurable:!0,get:function(){return this._ClazzEnrolmentDao_oy22mt$_0.value}}),Object.defineProperty(Mn.prototype,"clazzEnrolmentDao",{configurable:!0,get:function(){return this._ClazzEnrolmentDao}}),Object.defineProperty(Mn.prototype,"_LeavingReasonDao",{configurable:!0,get:function(){return this._LeavingReasonDao_4srg53$_0.value}}),Object.defineProperty(Mn.prototype,"leavingReasonDao",{configurable:!0,get:function(){return this._LeavingReasonDao}}),Object.defineProperty(Mn.prototype,"_ContentEntryDao",{configurable:!0,get:function(){return this._ContentEntryDao_bny0zs$_0.value}}),Object.defineProperty(Mn.prototype,"contentEntryDao",{configurable:!0,get:function(){return this._ContentEntryDao}}),Object.defineProperty(Mn.prototype,"_ContentEntryContentCategoryJoinDao",{configurable:!0,get:function(){return this._ContentEntryContentCategoryJoinDao_xqhj8n$_0.value}}),Object.defineProperty(Mn.prototype,"contentEntryContentCategoryJoinDao",{configurable:!0,get:function(){return this._ContentEntryContentCategoryJoinDao}}),Object.defineProperty(Mn.prototype,"_ContentEntryParentChildJoinDao",{configurable:!0,get:function(){return this._ContentEntryParentChildJoinDao_z4w8fg$_0.value}}),Object.defineProperty(Mn.prototype,"contentEntryParentChildJoinDao",{configurable:!0,get:function(){return this._ContentEntryParentChildJoinDao}}),Object.defineProperty(Mn.prototype,"_ContentEntryRelatedEntryJoinDao",{configurable:!0,get:function(){return this._ContentEntryRelatedEntryJoinDao_4n64nr$_0.value}}),Object.defineProperty(Mn.prototype,"contentEntryRelatedEntryJoinDao",{configurable:!0,get:function(){return this._ContentEntryRelatedEntryJoinDao}}),Object.defineProperty(Mn.prototype,"_ClazzContentJoinDao",{configurable:!0,get:function(){return this._ClazzContentJoinDao_jtpmiy$_0.value}}),Object.defineProperty(Mn.prototype,"clazzContentJoinDao",{configurable:!0,get:function(){return this._ClazzContentJoinDao}}),Object.defineProperty(Mn.prototype,"_ContentCategorySchemaDao",{configurable:!0,get:function(){return this._ContentCategorySchemaDao_7v6m4p$_0.value}}),Object.defineProperty(Mn.prototype,"contentCategorySchemaDao",{configurable:!0,get:function(){return this._ContentCategorySchemaDao}}),Object.defineProperty(Mn.prototype,"_ContentCategoryDao",{configurable:!0,get:function(){return this._ContentCategoryDao_5p3nm0$_0.value}}),Object.defineProperty(Mn.prototype,"contentCategoryDao",{configurable:!0,get:function(){return this._ContentCategoryDao}}),Object.defineProperty(Mn.prototype,"_LanguageDao",{configurable:!0,get:function(){return this._LanguageDao_4effpz$_0.value}}),Object.defineProperty(Mn.prototype,"languageDao",{configurable:!0,get:function(){return this._LanguageDao}}),Object.defineProperty(Mn.prototype,"_LanguageVariantDao",{configurable:!0,get:function(){return this._LanguageVariantDao_3ts532$_0.value}}),Object.defineProperty(Mn.prototype,"languageVariantDao",{configurable:!0,get:function(){return this._LanguageVariantDao}}),Object.defineProperty(Mn.prototype,"scrapeQueueItemDao",{configurable:!0,get:function(){return this._db_0.scrapeQueueItemDao}}),Object.defineProperty(Mn.prototype,"personAuthDao",{configurable:!0,get:function(){return this._db_0.personAuthDao}}),Object.defineProperty(Mn.prototype,"_PersonGroupDao",{configurable:!0,get:function(){return this._PersonGroupDao_uoc3q3$_0.value}}),Object.defineProperty(Mn.prototype,"personGroupDao",{configurable:!0,get:function(){return this._PersonGroupDao}}),Object.defineProperty(Mn.prototype,"_PersonGroupMemberDao",{configurable:!0,get:function(){return this._PersonGroupMemberDao_hw3wwl$_0.value}}),Object.defineProperty(Mn.prototype,"personGroupMemberDao",{configurable:!0,get:function(){return this._PersonGroupMemberDao}}),Object.defineProperty(Mn.prototype,"entityRoleDao",{configurable:!0,get:function(){return this._db_0.entityRoleDao}}),Object.defineProperty(Mn.prototype,"_PersonPictureDao",{configurable:!0,get:function(){return this._PersonPictureDao_oehixy$_0.value}}),Object.defineProperty(Mn.prototype,"personPictureDao",{configurable:!0,get:function(){return this._PersonPictureDao}}),Object.defineProperty(Mn.prototype,"connectivityStatusDao",{configurable:!0,get:function(){return this._db_0.connectivityStatusDao}}),Object.defineProperty(Mn.prototype,"_ContainerDao",{configurable:!0,get:function(){return this._ContainerDao_y4hlv6$_0.value}}),Object.defineProperty(Mn.prototype,"containerDao",{configurable:!0,get:function(){return this._ContainerDao}}),Object.defineProperty(Mn.prototype,"containerEntryDao",{configurable:!0,get:function(){return this._db_0.containerEntryDao}}),Object.defineProperty(Mn.prototype,"containerEntryFileDao",{configurable:!0,get:function(){return this._db_0.containerEntryFileDao}}),Object.defineProperty(Mn.prototype,"containerETagDao",{configurable:!0,get:function(){return this._db_0.containerETagDao}}),Object.defineProperty(Mn.prototype,"_VerbDao",{configurable:!0,get:function(){return this._VerbDao_p6904i$_0.value}}),Object.defineProperty(Mn.prototype,"verbDao",{configurable:!0,get:function(){return this._VerbDao}}),Object.defineProperty(Mn.prototype,"_XObjectDao",{configurable:!0,get:function(){return this._XObjectDao_414f3s$_0.value}}),Object.defineProperty(Mn.prototype,"xObjectDao",{configurable:!0,get:function(){return this._XObjectDao}}),Object.defineProperty(Mn.prototype,"_ReportDao",{configurable:!0,get:function(){return this._ReportDao_f6l1xp$_0.value}}),Object.defineProperty(Mn.prototype,"reportDao",{configurable:!0,get:function(){return this._ReportDao}}),Object.defineProperty(Mn.prototype,"containerImportJobDao",{configurable:!0,get:function(){return this._db_0.containerImportJobDao}}),Object.defineProperty(Mn.prototype,"_StatementDao",{configurable:!0,get:function(){return this._StatementDao_8blrs0$_0.value}}),Object.defineProperty(Mn.prototype,"statementDao",{configurable:!0,get:function(){return this._StatementDao}}),Object.defineProperty(Mn.prototype,"_ContextXObjectStatementJoinDao",{configurable:!0,get:function(){return this._ContextXObjectStatementJoinDao_grco9q$_0.value}}),Object.defineProperty(Mn.prototype,"contextXObjectStatementJoinDao",{configurable:!0,get:function(){return this._ContextXObjectStatementJoinDao}}),Object.defineProperty(Mn.prototype,"_StateDao",{configurable:!0,get:function(){return this._StateDao_1nkqke$_0.value}}),Object.defineProperty(Mn.prototype,"stateDao",{configurable:!0,get:function(){return this._StateDao}}),Object.defineProperty(Mn.prototype,"_StateContentDao",{configurable:!0,get:function(){return this._StateContentDao_yxj9d3$_0.value}}),Object.defineProperty(Mn.prototype,"stateContentDao",{configurable:!0,get:function(){return this._StateContentDao}}),Object.defineProperty(Mn.prototype,"_AgentDao",{configurable:!0,get:function(){return this._AgentDao_4pjncm$_0.value}}),Object.defineProperty(Mn.prototype,"agentDao",{configurable:!0,get:function(){return this._AgentDao}}),Object.defineProperty(Mn.prototype,"_LearnerGroupDao",{configurable:!0,get:function(){return this._LearnerGroupDao_d12bg3$_0.value}}),Object.defineProperty(Mn.prototype,"learnerGroupDao",{configurable:!0,get:function(){return this._LearnerGroupDao}}),Object.defineProperty(Mn.prototype,"_LearnerGroupMemberDao",{configurable:!0,get:function(){return this._LearnerGroupMemberDao_yxhk6x$_0.value}}),Object.defineProperty(Mn.prototype,"learnerGroupMemberDao",{configurable:!0,get:function(){return this._LearnerGroupMemberDao}}),Object.defineProperty(Mn.prototype,"_GroupLearningSessionDao",{configurable:!0,get:function(){return this._GroupLearningSessionDao_wyleco$_0.value}}),Object.defineProperty(Mn.prototype,"groupLearningSessionDao",{configurable:!0,get:function(){return this._GroupLearningSessionDao}}),Object.defineProperty(Mn.prototype,"_ClazzLogAttendanceRecordDao",{configurable:!0,get:function(){return this._ClazzLogAttendanceRecordDao_8wntrv$_0.value}}),Object.defineProperty(Mn.prototype,"clazzLogAttendanceRecordDao",{configurable:!0,get:function(){return this._ClazzLogAttendanceRecordDao}}),Object.defineProperty(Mn.prototype,"_ClazzLogDao",{configurable:!0,get:function(){return this._ClazzLogDao_x9zu45$_0.value}}),Object.defineProperty(Mn.prototype,"clazzLogDao",{configurable:!0,get:function(){return this._ClazzLogDao}}),Object.defineProperty(Mn.prototype,"_ScheduleDao",{configurable:!0,get:function(){return this._ScheduleDao_ctbune$_0.value}}),Object.defineProperty(Mn.prototype,"scheduleDao",{configurable:!0,get:function(){return this._ScheduleDao}}),Object.defineProperty(Mn.prototype,"_HolidayCalendarDao",{configurable:!0,get:function(){return this._HolidayCalendarDao_ulk4x3$_0.value}}),Object.defineProperty(Mn.prototype,"holidayCalendarDao",{configurable:!0,get:function(){return this._HolidayCalendarDao}}),Object.defineProperty(Mn.prototype,"_HolidayDao",{configurable:!0,get:function(){return this._HolidayDao_o65v9l$_0.value}}),Object.defineProperty(Mn.prototype,"holidayDao",{configurable:!0,get:function(){return this._HolidayDao}}),Object.defineProperty(Mn.prototype,"_SchoolDao",{configurable:!0,get:function(){return this._SchoolDao_mbg6cz$_0.value}}),Object.defineProperty(Mn.prototype,"schoolDao",{configurable:!0,get:function(){return this._SchoolDao}}),Object.defineProperty(Mn.prototype,"_XLangMapEntryDao",{configurable:!0,get:function(){return this._XLangMapEntryDao_8igs4z$_0.value}}),Object.defineProperty(Mn.prototype,"xLangMapEntryDao",{configurable:!0,get:function(){return this._XLangMapEntryDao}}),Object.defineProperty(Mn.prototype,"locallyAvailableContainerDao",{configurable:!0,get:function(){return this._db_0.locallyAvailableContainerDao}}),Object.defineProperty(Mn.prototype,"_SchoolMemberDao",{configurable:!0,get:function(){return this._SchoolMemberDao_t3wkt$_0.value}}),Object.defineProperty(Mn.prototype,"schoolMemberDao",{configurable:!0,get:function(){return this._SchoolMemberDao}}),Object.defineProperty(Mn.prototype,"_ClazzAssignmentDao",{configurable:!0,get:function(){return this._ClazzAssignmentDao_3ritje$_0.value}}),Object.defineProperty(Mn.prototype,"clazzAssignmentDao",{configurable:!0,get:function(){return this._ClazzAssignmentDao}}),Object.defineProperty(Mn.prototype,"_ClazzAssignmentContentJoinDao",{configurable:!0,get:function(){return this._ClazzAssignmentContentJoinDao_c3dv5p$_0.value}}),Object.defineProperty(Mn.prototype,"clazzAssignmentContentJoinDao",{configurable:!0,get:function(){return this._ClazzAssignmentContentJoinDao}}),Object.defineProperty(Mn.prototype,"clazzAssignmentRollUpDao",{configurable:!0,get:function(){return this._db_0.clazzAssignmentRollUpDao}}),Object.defineProperty(Mn.prototype,"_CourseAssignmentSubmissionDao",{configurable:!0,get:function(){return this._CourseAssignmentSubmissionDao_3ulqsz$_0.value}}),Object.defineProperty(Mn.prototype,"courseAssignmentSubmissionDao",{configurable:!0,get:function(){return this._CourseAssignmentSubmissionDao}}),Object.defineProperty(Mn.prototype,"_CourseAssignmentSubmissionAttachmentDao",{configurable:!0,get:function(){return this._CourseAssignmentSubmissionAttachmentDao_ib6fwq$_0.value}}),Object.defineProperty(Mn.prototype,"courseAssignmentSubmissionAttachmentDao",{configurable:!0,get:function(){return this._CourseAssignmentSubmissionAttachmentDao}}),Object.defineProperty(Mn.prototype,"_CourseAssignmentMarkDao",{configurable:!0,get:function(){return this._CourseAssignmentMarkDao_m886vg$_0.value}}),Object.defineProperty(Mn.prototype,"courseAssignmentMarkDao",{configurable:!0,get:function(){return this._CourseAssignmentMarkDao}}),Object.defineProperty(Mn.prototype,"_CommentsDao",{configurable:!0,get:function(){return this._CommentsDao_il4mj1$_0.value}}),Object.defineProperty(Mn.prototype,"commentsDao",{configurable:!0,get:function(){return this._CommentsDao}}),Object.defineProperty(Mn.prototype,"syncNodeDao",{configurable:!0,get:function(){return this._db_0.syncNodeDao}}),Object.defineProperty(Mn.prototype,"_SiteDao",{configurable:!0,get:function(){return this._SiteDao_j3be4m$_0.value}}),Object.defineProperty(Mn.prototype,"siteDao",{configurable:!0,get:function(){return this._SiteDao}}),Object.defineProperty(Mn.prototype,"_SiteTermsDao",{configurable:!0,get:function(){return this._SiteTermsDao_7vhenl$_0.value}}),Object.defineProperty(Mn.prototype,"siteTermsDao",{configurable:!0,get:function(){return this._SiteTermsDao}}),Object.defineProperty(Mn.prototype,"_PersonParentJoinDao",{configurable:!0,get:function(){return this._PersonParentJoinDao_a70e5k$_0.value}}),Object.defineProperty(Mn.prototype,"personParentJoinDao",{configurable:!0,get:function(){return this._PersonParentJoinDao}}),Object.defineProperty(Mn.prototype,"_ScopedGrantDao",{configurable:!0,get:function(){return this._ScopedGrantDao_wu1qzn$_0.value}}),Object.defineProperty(Mn.prototype,"scopedGrantDao",{configurable:!0,get:function(){return this._ScopedGrantDao}}),Object.defineProperty(Mn.prototype,"_ErrorReportDao",{configurable:!0,get:function(){return this._ErrorReportDao_yuub65$_0.value}}),Object.defineProperty(Mn.prototype,"errorReportDao",{configurable:!0,get:function(){return this._ErrorReportDao}}),Object.defineProperty(Mn.prototype,"_PersonAuth2Dao",{configurable:!0,get:function(){return this._PersonAuth2Dao_7mmgyu$_0.value}}),Object.defineProperty(Mn.prototype,"personAuth2Dao",{configurable:!0,get:function(){return this._PersonAuth2Dao}}),Object.defineProperty(Mn.prototype,"_UserSessionDao",{configurable:!0,get:function(){return this._UserSessionDao_9evou4$_0.value}}),Object.defineProperty(Mn.prototype,"userSessionDao",{configurable:!0,get:function(){return this._UserSessionDao}}),Object.defineProperty(Mn.prototype,"contentJobItemDao",{configurable:!0,get:function(){return this._db_0.contentJobItemDao}}),Object.defineProperty(Mn.prototype,"contentJobDao",{configurable:!0,get:function(){return this._db_0.contentJobDao}}),Object.defineProperty(Mn.prototype,"_CoursePictureDao",{configurable:!0,get:function(){return this._CoursePictureDao_3orl8$_0.value}}),Object.defineProperty(Mn.prototype,"coursePictureDao",{configurable:!0,get:function(){return this._CoursePictureDao}}),Object.defineProperty(Mn.prototype,"_ContentEntryPictureDao",{configurable:!0,get:function(){return this._ContentEntryPictureDao_j5086u$_0.value}}),Object.defineProperty(Mn.prototype,"contentEntryPictureDao",{configurable:!0,get:function(){return this._ContentEntryPictureDao}}),Object.defineProperty(Mn.prototype,"_ChatDao",{configurable:!0,get:function(){return this._ChatDao_vp405z$_0.value}}),Object.defineProperty(Mn.prototype,"chatDao",{configurable:!0,get:function(){return this._ChatDao}}),Object.defineProperty(Mn.prototype,"_ChatMemberDao",{configurable:!0,get:function(){return this._ChatMemberDao_xtv975$_0.value}}),Object.defineProperty(Mn.prototype,"chatMemberDao",{configurable:!0,get:function(){return this._ChatMemberDao}}),Object.defineProperty(Mn.prototype,"_MessageDao",{configurable:!0,get:function(){return this._MessageDao_glinco$_0.value}}),Object.defineProperty(Mn.prototype,"messageDao",{configurable:!0,get:function(){return this._MessageDao}}),Object.defineProperty(Mn.prototype,"_MessageReadDao",{configurable:!0,get:function(){return this._MessageReadDao_n0br0y$_0.value}}),Object.defineProperty(Mn.prototype,"messageReadDao",{configurable:!0,get:function(){return this._MessageReadDao}}),Object.defineProperty(Mn.prototype,"_CourseDiscussionDao",{configurable:!0,get:function(){return this._CourseDiscussionDao_2sbhnm$_0.value}}),Object.defineProperty(Mn.prototype,"courseDiscussionDao",{configurable:!0,get:function(){return this._CourseDiscussionDao}}),Object.defineProperty(Mn.prototype,"_DiscussionTopicDao",{configurable:!0,get:function(){return this._DiscussionTopicDao_4z0ot4$_0.value}}),Object.defineProperty(Mn.prototype,"discussionTopicDao",{configurable:!0,get:function(){return this._DiscussionTopicDao}}),Object.defineProperty(Mn.prototype,"_DiscussionPostDao",{configurable:!0,get:function(){return this._DiscussionPostDao_7vrkiv$_0.value}}),Object.defineProperty(Mn.prototype,"discussionPostDao",{configurable:!0,get:function(){return this._DiscussionPostDao}}),Object.defineProperty(Mn.prototype,"realDatabase",{configurable:!0,get:function(){return this._db_0}}),Mn.prototype.createAllTables=function(){return this._db_0.createAllTables()},kn.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},kn.prototype=Object.create(N.prototype),kn.prototype.constructor=kn,kn.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._db_0.clearAllTablesAsync(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Mn.prototype.clearAllTablesAsync=function(t,e){var n=new kn(this,t);return e?n:n.doResume(null)},Mn.prototype.clearAllTables=function(){this._db_0.clearAllTables()},Mn.prototype.runInTransaction_771g0p$=function(t){this._db_0.runInTransaction_771g0p$(t)},Mn.prototype.getInvalidationTracker=function(){return this._db_0.getInvalidationTracker()},Mn.$metadata$={kind:c,simpleName:"UmAppDatabase_ReplicateWrapper",interfaces:[B,Ln]},Gn.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Gn.prototype=Object.create(N.prototype),Gn.prototype.constructor=Gn,Gn.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.clazzLogDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,14,this),this.result_0===C)return C;continue;case 3:return H("ClazzLog");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleClazzLogChanged_0=function(t,e,n){var i=new Gn(this,t,e);return n?i:i.doResume(null)},qn.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},qn.prototype=Object.create(N.prototype),qn.prototype.constructor=qn,qn.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.clazzLogAttendanceRecordDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,15,this),this.result_0===C)return C;continue;case 3:return H("ClazzLogAttendanceRecord");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleClazzLogAttendanceRecordChanged_0=function(t,e,n){var i=new qn(this,t,e);return n?i:i.doResume(null)},Fn.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Fn.prototype=Object.create(N.prototype),Fn.prototype.constructor=Fn,Fn.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.scheduleDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,21,this),this.result_0===C)return C;continue;case 3:return H("Schedule");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleScheduleChanged_0=function(t,e,n){var i=new Fn(this,t,e);return n?i:i.doResume(null)},Bn.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Bn.prototype=Object.create(N.prototype),Bn.prototype.constructor=Bn,Bn.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.holidayCalendarDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,28,this),this.result_0===C)return C;continue;case 3:return H("HolidayCalendar");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleHolidayCalendarChanged_0=function(t,e,n){var i=new Bn(this,t,e);return n?i:i.doResume(null)},Wn.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Wn.prototype=Object.create(N.prototype),Wn.prototype.constructor=Wn,Wn.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.holidayDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,99,this),this.result_0===C)return C;continue;case 3:return H("Holiday");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleHolidayChanged_0=function(t,e,n){var i=new Wn(this,t,e);return n?i:i.doResume(null)},Hn.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Hn.prototype=Object.create(N.prototype),Hn.prototype.constructor=Hn,Hn.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.personDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,9,this),this.result_0===C)return C;continue;case 3:return H("Person");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handlePersonChanged_0=function(t,e,n){var i=new Hn(this,t,e);return n?i:i.doResume(null)},Vn.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Vn.prototype=Object.create(N.prototype),Vn.prototype.constructor=Vn,Vn.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.clazzDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,6,this),this.result_0===C)return C;continue;case 3:return H("Clazz");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleClazzChanged_0=function(t,e,n){var i=new Vn(this,t,e);return n?i:i.doResume(null)},Kn.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Kn.prototype=Object.create(N.prototype),Kn.prototype.constructor=Kn,Kn.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.clazzEnrolmentDao.replicateClazzEnrolmentOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,65,this),this.result_0===C)return C;continue;case 3:return H("ClazzEnrolment");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleClazzEnrolmentChanged_0=function(t,e,n){var i=new Kn(this,t,e);return n?i:i.doResume(null)},Xn.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Xn.prototype=Object.create(N.prototype),Xn.prototype.constructor=Xn,Xn.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.leavingReasonDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,410,this),this.result_0===C)return C;continue;case 3:return H("LeavingReason");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleLeavingReasonChanged_0=function(t,e,n){var i=new Xn(this,t,e);return n?i:i.doResume(null)},Jn.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Jn.prototype=Object.create(N.prototype),Jn.prototype.constructor=Jn,Jn.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.contentEntryDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,42,this),this.result_0===C)return C;continue;case 3:return H("ContentEntry");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleContentEntryChanged_0=function(t,e,n){var i=new Jn(this,t,e);return n?i:i.doResume(null)},Yn.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Yn.prototype=Object.create(N.prototype),Yn.prototype.constructor=Yn,Yn.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.contentEntryContentCategoryJoinDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,3,this),this.result_0===C)return C;continue;case 3:return H("ContentEntryContentCategoryJoin");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleContentEntryContentCategoryJoinChanged_0=function(t,e,n){var i=new Yn(this,t,e);return n?i:i.doResume(null)},Qn.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Qn.prototype=Object.create(N.prototype),Qn.prototype.constructor=Qn,Qn.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.contentEntryParentChildJoinDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,7,this),this.result_0===C)return C;continue;case 3:return H("ContentEntryParentChildJoin");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleContentEntryParentChildJoinChanged_0=function(t,e,n){var i=new Qn(this,t,e);return n?i:i.doResume(null)},Zn.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Zn.prototype=Object.create(N.prototype),Zn.prototype.constructor=Zn,Zn.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.contentEntryRelatedEntryJoinDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,8,this),this.result_0===C)return C;continue;case 3:return H("ContentEntryRelatedEntryJoin");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleContentEntryRelatedEntryJoinChanged_0=function(t,e,n){var i=new Zn(this,t,e);return n?i:i.doResume(null)},ti.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ti.prototype=Object.create(N.prototype),ti.prototype.constructor=ti,ti.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.contentCategorySchemaDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,2,this),this.result_0===C)return C;continue;case 3:return H("ContentCategorySchema");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleContentCategorySchemaChanged_0=function(t,e,n){var i=new ti(this,t,e);return n?i:i.doResume(null)},ei.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ei.prototype=Object.create(N.prototype),ei.prototype.constructor=ei,ei.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.contentCategoryDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,1,this),this.result_0===C)return C;continue;case 3:return H("ContentCategory");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleContentCategoryChanged_0=function(t,e,n){var i=new ei(this,t,e);return n?i:i.doResume(null)},ni.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ni.prototype=Object.create(N.prototype),ni.prototype.constructor=ni,ni.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.languageDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,13,this),this.result_0===C)return C;continue;case 3:return H("Language");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleLanguageChanged_0=function(t,e,n){var i=new ni(this,t,e);return n?i:i.doResume(null)},ii.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ii.prototype=Object.create(N.prototype),ii.prototype.constructor=ii,ii.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.languageVariantDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,10,this),this.result_0===C)return C;continue;case 3:return H("LanguageVariant");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleLanguageVariantChanged_0=function(t,e,n){var i=new ii(this,t,e);return n?i:i.doResume(null)},oi.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},oi.prototype=Object.create(N.prototype),oi.prototype.constructor=oi,oi.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.personGroupDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=this.local$$receiver.personGroupDao.replicateOnChangeClazzBased(this),this.result_0===C)return C;continue;case 3:if(this.state_0=4,this.result_0=this.local$$receiver.personGroupDao.replicateOnChangePersonBased(this),this.result_0===C)return C;continue;case 4:if(this.state_0=5,this.result_0=this.local$$receiver.personGroupDao.replicateOnChangeSchoolBased(this),this.result_0===C)return C;continue;case 5:if(this.state_0=6,this.result_0=W(this.local$$receiver,43,this),this.result_0===C)return C;continue;case 6:return H("PersonGroup");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handlePersonGroupChanged_0=function(t,e,n){var i=new oi(this,t,e);return n?i:i.doResume(null)},ri.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ri.prototype=Object.create(N.prototype),ri.prototype.constructor=ri,ri.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.personGroupMemberDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=this.local$$receiver.personGroupMemberDao.replicateOnChangeClazzBased(this),this.result_0===C)return C;continue;case 3:if(this.state_0=4,this.result_0=this.local$$receiver.personGroupMemberDao.replicateOnChangeSchoolBased(this),this.result_0===C)return C;continue;case 4:if(this.state_0=5,this.result_0=W(this.local$$receiver,44,this),this.result_0===C)return C;continue;case 5:return H("PersonGroupMember");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handlePersonGroupMemberChanged_0=function(t,e,n){var i=new ri(this,t,e);return n?i:i.doResume(null)},si.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},si.prototype=Object.create(N.prototype),si.prototype.constructor=si,si.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.personPictureDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,50,this),this.result_0===C)return C;continue;case 3:return H("PersonPicture");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handlePersonPictureChanged_0=function(t,e,n){var i=new si(this,t,e);return n?i:i.doResume(null)},ai.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ai.prototype=Object.create(N.prototype),ai.prototype.constructor=ai,ai.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.containerDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,51,this),this.result_0===C)return C;continue;case 3:return H("Container");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleContainerChanged_0=function(t,e,n){var i=new ai(this,t,e);return n?i:i.doResume(null)},ci.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ci.prototype=Object.create(N.prototype),ci.prototype.constructor=ci,ci.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.verbDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,62,this),this.result_0===C)return C;continue;case 3:return H("VerbEntity");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleVerbEntityChanged_0=function(t,e,n){var i=new ci(this,t,e);return n?i:i.doResume(null)},li.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},li.prototype=Object.create(N.prototype),li.prototype.constructor=li,li.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.xObjectDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,64,this),this.result_0===C)return C;continue;case 3:return H("XObjectEntity");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleXObjectEntityChanged_0=function(t,e,n){var i=new li(this,t,e);return n?i:i.doResume(null)},ui.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ui.prototype=Object.create(N.prototype),ui.prototype.constructor=ui,ui.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.statementDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,60,this),this.result_0===C)return C;continue;case 3:return H("StatementEntity");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleStatementEntityChanged_0=function(t,e,n){var i=new ui(this,t,e);return n?i:i.doResume(null)},hi.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},hi.prototype=Object.create(N.prototype),hi.prototype.constructor=hi,hi.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.contextXObjectStatementJoinDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,66,this),this.result_0===C)return C;continue;case 3:return H("ContextXObjectStatementJoin");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleContextXObjectStatementJoinChanged_0=function(t,e,n){var i=new hi(this,t,e);return n?i:i.doResume(null)},di.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},di.prototype=Object.create(N.prototype),di.prototype.constructor=di,di.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.agentDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,68,this),this.result_0===C)return C;continue;case 3:return H("AgentEntity");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleAgentEntityChanged_0=function(t,e,n){var i=new di(this,t,e);return n?i:i.doResume(null)},pi.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},pi.prototype=Object.create(N.prototype),pi.prototype.constructor=pi,pi.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.stateDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,70,this),this.result_0===C)return C;continue;case 3:return H("StateEntity");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleStateEntityChanged_0=function(t,e,n){var i=new pi(this,t,e);return n?i:i.doResume(null)},_i.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_i.prototype=Object.create(N.prototype),_i.prototype.constructor=_i,_i.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.stateContentDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,72,this),this.result_0===C)return C;continue;case 3:return H("StateContentEntity");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleStateContentEntityChanged_0=function(t,e,n){var i=new _i(this,t,e);return n?i:i.doResume(null)},mi.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},mi.prototype=Object.create(N.prototype),mi.prototype.constructor=mi,mi.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.xLangMapEntryDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,74,this),this.result_0===C)return C;continue;case 3:return H("XLangMapEntry");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleXLangMapEntryChanged_0=function(t,e,n){var i=new mi(this,t,e);return n?i:i.doResume(null)},fi.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fi.prototype=Object.create(N.prototype),fi.prototype.constructor=fi,fi.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.schoolDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,164,this),this.result_0===C)return C;continue;case 3:return H("School");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleSchoolChanged_0=function(t,e,n){var i=new fi(this,t,e);return n?i:i.doResume(null)},gi.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},gi.prototype=Object.create(N.prototype),gi.prototype.constructor=gi,gi.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.schoolMemberDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,200,this),this.result_0===C)return C;continue;case 3:return H("SchoolMember");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleSchoolMemberChanged_0=function(t,e,n){var i=new gi(this,t,e);return n?i:i.doResume(null)},$i.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},$i.prototype=Object.create(N.prototype),$i.prototype.constructor=$i,$i.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.commentsDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,208,this),this.result_0===C)return C;continue;case 3:return H("Comments");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleCommentsChanged_0=function(t,e,n){var i=new $i(this,t,e);return n?i:i.doResume(null)},Ei.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ei.prototype=Object.create(N.prototype),Ei.prototype.constructor=Ei,Ei.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.reportDao.replicateOnChangeTemplates(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,101,this),this.result_0===C)return C;continue;case 3:return H("Report");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleReportChanged_0=function(t,e,n){var i=new Ei(this,t,e);return n?i:i.doResume(null)},yi.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},yi.prototype=Object.create(N.prototype),yi.prototype.constructor=yi,yi.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.siteDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,189,this),this.result_0===C)return C;continue;case 3:return H("Site");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleSiteChanged_0=function(t,e,n){var i=new yi(this,t,e);return n?i:i.doResume(null)},bi.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},bi.prototype=Object.create(N.prototype),bi.prototype.constructor=bi,bi.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.learnerGroupDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,301,this),this.result_0===C)return C;continue;case 3:return H("LearnerGroup");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleLearnerGroupChanged_0=function(t,e,n){var i=new bi(this,t,e);return n?i:i.doResume(null)},Si.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Si.prototype=Object.create(N.prototype),Si.prototype.constructor=Si,Si.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.learnerGroupMemberDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,300,this),this.result_0===C)return C;continue;case 3:return H("LearnerGroupMember");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleLearnerGroupMemberChanged_0=function(t,e,n){var i=new Si(this,t,e);return n?i:i.doResume(null)},vi.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},vi.prototype=Object.create(N.prototype),vi.prototype.constructor=vi,vi.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.groupLearningSessionDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,302,this),this.result_0===C)return C;continue;case 3:return H("GroupLearningSession");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleGroupLearningSessionChanged_0=function(t,e,n){var i=new vi(this,t,e);return n?i:i.doResume(null)},Ci.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ci.prototype=Object.create(N.prototype),Ci.prototype.constructor=Ci,Ci.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.siteTermsDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,272,this),this.result_0===C)return C;continue;case 3:return H("SiteTerms");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleSiteTermsChanged_0=function(t,e,n){var i=new Ci(this,t,e);return n?i:i.doResume(null)},Ni.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ni.prototype=Object.create(N.prototype),Ni.prototype.constructor=Ni,Ni.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.clazzContentJoinDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,134,this),this.result_0===C)return C;continue;case 3:return H("ClazzContentJoin");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleClazzContentJoinChanged_0=function(t,e,n){var i=new Ni(this,t,e);return n?i:i.doResume(null)},Ti.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ti.prototype=Object.create(N.prototype),Ti.prototype.constructor=Ti,Ti.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.personParentJoinDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,512,this),this.result_0===C)return C;continue;case 3:return H("PersonParentJoin");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handlePersonParentJoinChanged_0=function(t,e,n){var i=new Ti(this,t,e);return n?i:i.doResume(null)},Li.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Li.prototype=Object.create(N.prototype),Li.prototype.constructor=Li,Li.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.scopedGrantDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=this.local$$receiver.scopedGrantDao.replicateOnChangeClazzBased(this),this.result_0===C)return C;continue;case 3:if(this.state_0=4,this.result_0=this.local$$receiver.scopedGrantDao.replicateOnChangePersonBased(this),this.result_0===C)return C;continue;case 4:if(this.state_0=5,this.result_0=this.local$$receiver.scopedGrantDao.replicateOnChangeSchoolBased(this),this.result_0===C)return C;continue;case 5:if(this.state_0=6,this.result_0=W(this.local$$receiver,48,this),this.result_0===C)return C;continue;case 6:return H("ScopedGrant");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleScopedGrantChanged_0=function(t,e,n){var i=new Li(this,t,e);return n?i:i.doResume(null)},zi.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},zi.prototype=Object.create(N.prototype),zi.prototype.constructor=zi,zi.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.errorReportDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,419,this),this.result_0===C)return C;continue;case 3:return H("ErrorReport");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleErrorReportChanged_0=function(t,e,n){var i=new zi(this,t,e);return n?i:i.doResume(null)},wi.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},wi.prototype=Object.create(N.prototype),wi.prototype.constructor=wi,wi.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.clazzAssignmentDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,520,this),this.result_0===C)return C;continue;case 3:return H("ClazzAssignment");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleClazzAssignmentChanged_0=function(t,e,n){var i=new wi(this,t,e);return n?i:i.doResume(null)},Oi.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Oi.prototype=Object.create(N.prototype),Oi.prototype.constructor=Oi,Oi.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.clazzAssignmentContentJoinDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,521,this),this.result_0===C)return C;continue;case 3:return H("ClazzAssignmentContentJoin");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleClazzAssignmentContentJoinChanged_0=function(t,e,n){var i=new Oi(this,t,e);return n?i:i.doResume(null)},Ri.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ri.prototype=Object.create(N.prototype),Ri.prototype.constructor=Ri,Ri.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.courseAssignmentSubmissionDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,522,this),this.result_0===C)return C;continue;case 3:return H("CourseAssignmentSubmission");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleCourseAssignmentSubmissionChanged_0=function(t,e,n){var i=new Ri(this,t,e);return n?i:i.doResume(null)},Ai.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ai.prototype=Object.create(N.prototype),Ai.prototype.constructor=Ai,Ai.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.courseAssignmentSubmissionAttachmentDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,90,this),this.result_0===C)return C;continue;case 3:return H("CourseAssignmentSubmissionAttachment");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleCourseAssignmentSubmissionAttachmentChanged_0=function(t,e,n){var i=new Ai(this,t,e);return n?i:i.doResume(null)},xi.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},xi.prototype=Object.create(N.prototype),xi.prototype.constructor=xi,xi.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.courseAssignmentMarkDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,523,this),this.result_0===C)return C;continue;case 3:return H("CourseAssignmentMark");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleCourseAssignmentMarkChanged_0=function(t,e,n){var i=new xi(this,t,e);return n?i:i.doResume(null)},Ii.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ii.prototype=Object.create(N.prototype),Ii.prototype.constructor=Ii,Ii.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.personAuth2Dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,678,this),this.result_0===C)return C;continue;case 3:return H("PersonAuth2");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handlePersonAuth2Changed_0=function(t,e,n){var i=new Ii(this,t,e);return n?i:i.doResume(null)},Ui.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ui.prototype=Object.create(N.prototype),Ui.prototype.constructor=Ui,Ui.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.userSessionDao.updateReplicationTrackers(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,679,this),this.result_0===C)return C;continue;case 3:return H("UserSession");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleUserSessionChanged_0=function(t,e,n){var i=new Ui(this,t,e);return n?i:i.doResume(null)},Di.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Di.prototype=Object.create(N.prototype),Di.prototype.constructor=Di,Di.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.courseBlockDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,124,this),this.result_0===C)return C;continue;case 3:return H("CourseBlock");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleCourseBlockChanged_0=function(t,e,n){var i=new Di(this,t,e);return n?i:i.doResume(null)},Pi.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Pi.prototype=Object.create(N.prototype),Pi.prototype.constructor=Pi,Pi.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.courseTerminologyDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,450,this),this.result_0===C)return C;continue;case 3:return H("CourseTerminology");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleCourseTerminologyChanged_0=function(t,e,n){var i=new Pi(this,t,e);return n?i:i.doResume(null)},Mi.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Mi.prototype=Object.create(N.prototype),Mi.prototype.constructor=Mi,Mi.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.courseGroupSetDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,242,this),this.result_0===C)return C;continue;case 3:return H("CourseGroupSet");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleCourseGroupSetChanged_0=function(t,e,n){var i=new Mi(this,t,e);return n?i:i.doResume(null)},ki.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ki.prototype=Object.create(N.prototype),ki.prototype.constructor=ki,ki.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.courseGroupMemberDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,243,this),this.result_0===C)return C;continue;case 3:return H("CourseGroupMember");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleCourseGroupMemberChanged_0=function(t,e,n){var i=new ki(this,t,e);return n?i:i.doResume(null)},ji.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ji.prototype=Object.create(N.prototype),ji.prototype.constructor=ji,ji.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.coursePictureDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,125,this),this.result_0===C)return C;continue;case 3:return H("CoursePicture");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleCoursePictureChanged_0=function(t,e,n){var i=new ji(this,t,e);return n?i:i.doResume(null)},Gi.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Gi.prototype=Object.create(N.prototype),Gi.prototype.constructor=Gi,Gi.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.contentEntryPictureDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,138,this),this.result_0===C)return C;continue;case 3:return H("ContentEntryPicture");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleContentEntryPictureChanged_0=function(t,e,n){var i=new Gi(this,t,e);return n?i:i.doResume(null)},qi.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},qi.prototype=Object.create(N.prototype),qi.prototype.constructor=qi,qi.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.chatDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,127,this),this.result_0===C)return C;continue;case 3:return H("Chat");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleChatChanged_0=function(t,e,n){var i=new qi(this,t,e);return n?i:i.doResume(null)},Fi.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Fi.prototype=Object.create(N.prototype),Fi.prototype.constructor=Fi,Fi.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.chatMemberDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,128,this),this.result_0===C)return C;continue;case 3:return H("ChatMember");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleChatMemberChanged_0=function(t,e,n){var i=new Fi(this,t,e);return n?i:i.doResume(null)},Bi.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Bi.prototype=Object.create(N.prototype),Bi.prototype.constructor=Bi,Bi.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.messageDao.replicateOnChangeChat(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=this.local$$receiver.messageDao.replicateOnChangePosts(this),this.result_0===C)return C;continue;case 3:if(this.state_0=4,this.result_0=W(this.local$$receiver,126,this),this.result_0===C)return C;continue;case 4:return H("Message");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleMessageChanged_0=function(t,e,n){var i=new Bi(this,t,e);return n?i:i.doResume(null)},Wi.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Wi.prototype=Object.create(N.prototype),Wi.prototype.constructor=Wi,Wi.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.messageReadDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,129,this),this.result_0===C)return C;continue;case 3:return H("MessageRead");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleMessageReadChanged_0=function(t,e,n){var i=new Wi(this,t,e);return n?i:i.doResume(null)},Hi.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Hi.prototype=Object.create(N.prototype),Hi.prototype.constructor=Hi,Hi.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.courseDiscussionDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,130,this),this.result_0===C)return C;continue;case 3:return H("CourseDiscussion");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleCourseDiscussionChanged_0=function(t,e,n){var i=new Hi(this,t,e);return n?i:i.doResume(null)},Vi.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Vi.prototype=Object.create(N.prototype),Vi.prototype.constructor=Vi,Vi.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.discussionTopicDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,131,this),this.result_0===C)return C;continue;case 3:return H("DiscussionTopic");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleDiscussionTopicChanged_0=function(t,e,n){var i=new Vi(this,t,e);return n?i:i.doResume(null)},Ki.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ki.prototype=Object.create(N.prototype),Ki.prototype.constructor=Ki,Ki.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$$receiver.discussionPostDao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=W(this.local$$receiver,132,this),this.result_0===C)return C;continue;case 3:return H("DiscussionPost");default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.handleDiscussionPostChanged_0=function(t,e,n){var i=new Ki(this,t,e);return n?i:i.doResume(null)},Xi.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Xi.prototype=Object.create(N.prototype),Xi.prototype.constructor=Xi,Xi.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$closure$tableNames.contains_11rb$("ClazzLog")){if(this.state_0=2,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleClazzLogChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=3;continue;case 3:if(this.local$closure$tableNames.contains_11rb$("ClazzLogAttendanceRecord")){if(this.state_0=4,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleClazzLogAttendanceRecordChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=5;continue;case 4:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=5;continue;case 5:if(this.local$closure$tableNames.contains_11rb$("Schedule")){if(this.state_0=6,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleScheduleChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=7;continue;case 6:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=7;continue;case 7:if(this.local$closure$tableNames.contains_11rb$("HolidayCalendar")){if(this.state_0=8,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleHolidayCalendarChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=9;continue;case 8:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=9;continue;case 9:if(this.local$closure$tableNames.contains_11rb$("Holiday")){if(this.state_0=10,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleHolidayChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=11;continue;case 10:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=11;continue;case 11:if(this.local$closure$tableNames.contains_11rb$("Person")){if(this.state_0=12,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handlePersonChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=13;continue;case 12:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=13;continue;case 13:if(this.local$closure$tableNames.contains_11rb$("Clazz")){if(this.state_0=14,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleClazzChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=15;continue;case 14:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=15;continue;case 15:if(this.local$closure$tableNames.contains_11rb$("ClazzEnrolment")){if(this.state_0=16,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleClazzEnrolmentChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=17;continue;case 16:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=17;continue;case 17:if(this.local$closure$tableNames.contains_11rb$("LeavingReason")){if(this.state_0=18,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleLeavingReasonChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=19;continue;case 18:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=19;continue;case 19:if(this.local$closure$tableNames.contains_11rb$("ContentEntry")){if(this.state_0=20,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleContentEntryChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=21;continue;case 20:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=21;continue;case 21:if(this.local$closure$tableNames.contains_11rb$("ContentEntryContentCategoryJoin")){if(this.state_0=22,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleContentEntryContentCategoryJoinChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=23;continue;case 22:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=23;continue;case 23:if(this.local$closure$tableNames.contains_11rb$("ContentEntryParentChildJoin")){if(this.state_0=24,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleContentEntryParentChildJoinChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=25;continue;case 24:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=25;continue;case 25:if(this.local$closure$tableNames.contains_11rb$("ContentEntryRelatedEntryJoin")){if(this.state_0=26,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleContentEntryRelatedEntryJoinChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=27;continue;case 26:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=27;continue;case 27:if(this.local$closure$tableNames.contains_11rb$("ContentCategorySchema")){if(this.state_0=28,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleContentCategorySchemaChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=29;continue;case 28:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=29;continue;case 29:if(this.local$closure$tableNames.contains_11rb$("ContentCategory")){if(this.state_0=30,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleContentCategoryChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=31;continue;case 30:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=31;continue;case 31:if(this.local$closure$tableNames.contains_11rb$("Language")){if(this.state_0=32,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleLanguageChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=33;continue;case 32:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=33;continue;case 33:if(this.local$closure$tableNames.contains_11rb$("LanguageVariant")){if(this.state_0=34,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleLanguageVariantChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=35;continue;case 34:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=35;continue;case 35:if(this.local$closure$tableNames.contains_11rb$("PersonGroup")){if(this.state_0=36,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handlePersonGroupChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=37;continue;case 36:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=37;continue;case 37:if(this.local$closure$tableNames.contains_11rb$("PersonGroupMember")){if(this.state_0=38,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handlePersonGroupMemberChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=39;continue;case 38:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=39;continue;case 39:if(this.local$closure$tableNames.contains_11rb$("PersonPicture")){if(this.state_0=40,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handlePersonPictureChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=41;continue;case 40:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=41;continue;case 41:if(this.local$closure$tableNames.contains_11rb$("Container")){if(this.state_0=42,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleContainerChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=43;continue;case 42:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=43;continue;case 43:if(this.local$closure$tableNames.contains_11rb$("VerbEntity")){if(this.state_0=44,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleVerbEntityChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=45;continue;case 44:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=45;continue;case 45:if(this.local$closure$tableNames.contains_11rb$("XObjectEntity")){if(this.state_0=46,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleXObjectEntityChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=47;continue;case 46:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=47;continue;case 47:if(this.local$closure$tableNames.contains_11rb$("StatementEntity")){if(this.state_0=48,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleStatementEntityChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=49;continue;case 48:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=49;continue;case 49:if(this.local$closure$tableNames.contains_11rb$("ContextXObjectStatementJoin")){if(this.state_0=50,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleContextXObjectStatementJoinChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=51;continue;case 50:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=51;continue;case 51:if(this.local$closure$tableNames.contains_11rb$("AgentEntity")){if(this.state_0=52,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleAgentEntityChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=53;continue;case 52:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=53;continue;case 53:if(this.local$closure$tableNames.contains_11rb$("StateEntity")){if(this.state_0=54,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleStateEntityChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=55;continue;case 54:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=55;continue;case 55:if(this.local$closure$tableNames.contains_11rb$("StateContentEntity")){if(this.state_0=56,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleStateContentEntityChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=57;continue;case 56:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=57;continue;case 57:if(this.local$closure$tableNames.contains_11rb$("XLangMapEntry")){if(this.state_0=58,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleXLangMapEntryChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=59;continue;case 58:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=59;continue;case 59:if(this.local$closure$tableNames.contains_11rb$("School")){if(this.state_0=60,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleSchoolChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=61;continue;case 60:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=61;continue;case 61:if(this.local$closure$tableNames.contains_11rb$("SchoolMember")){if(this.state_0=62,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleSchoolMemberChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=63;continue;case 62:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=63;continue;case 63:if(this.local$closure$tableNames.contains_11rb$("Comments")){if(this.state_0=64,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleCommentsChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=65;continue;case 64:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=65;continue;case 65:if(this.local$closure$tableNames.contains_11rb$("Report")){if(this.state_0=66,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleReportChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=67;continue;case 66:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=67;continue;case 67:if(this.local$closure$tableNames.contains_11rb$("Site")){if(this.state_0=68,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleSiteChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=69;continue;case 68:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=69;continue;case 69:if(this.local$closure$tableNames.contains_11rb$("LearnerGroup")){if(this.state_0=70,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleLearnerGroupChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=71;continue;case 70:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=71;continue;case 71:if(this.local$closure$tableNames.contains_11rb$("LearnerGroupMember")){if(this.state_0=72,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleLearnerGroupMemberChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=73;continue;case 72:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=73;continue;case 73:if(this.local$closure$tableNames.contains_11rb$("GroupLearningSession")){if(this.state_0=74,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleGroupLearningSessionChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=75;continue;case 74:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=75;continue;case 75:if(this.local$closure$tableNames.contains_11rb$("SiteTerms")){if(this.state_0=76,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleSiteTermsChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=77;continue;case 76:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=77;continue;case 77:if(this.local$closure$tableNames.contains_11rb$("ClazzContentJoin")){if(this.state_0=78,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleClazzContentJoinChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=79;continue;case 78:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=79;continue;case 79:if(this.local$closure$tableNames.contains_11rb$("PersonParentJoin")){if(this.state_0=80,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handlePersonParentJoinChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=81;continue;case 80:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=81;continue;case 81:if(this.local$closure$tableNames.contains_11rb$("ScopedGrant")){if(this.state_0=82,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleScopedGrantChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=83;continue;case 82:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=83;continue;case 83:if(this.local$closure$tableNames.contains_11rb$("ErrorReport")){if(this.state_0=84,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleErrorReportChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=85;continue;case 84:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=85;continue;case 85:if(this.local$closure$tableNames.contains_11rb$("ClazzAssignment")){if(this.state_0=86,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleClazzAssignmentChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=87;continue;case 86:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=87;continue;case 87:if(this.local$closure$tableNames.contains_11rb$("ClazzAssignmentContentJoin")){if(this.state_0=88,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleClazzAssignmentContentJoinChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=89;continue;case 88:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=89;continue;case 89:if(this.local$closure$tableNames.contains_11rb$("CourseAssignmentSubmission")){if(this.state_0=90,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleCourseAssignmentSubmissionChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=91;continue;case 90:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=91;continue;case 91:if(this.local$closure$tableNames.contains_11rb$("CourseAssignmentSubmissionAttachment")){if(this.state_0=92,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleCourseAssignmentSubmissionAttachmentChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=93;continue;case 92:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=93;continue;case 93:if(this.local$closure$tableNames.contains_11rb$("CourseAssignmentMark")){if(this.state_0=94,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleCourseAssignmentMarkChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=95;continue;case 94:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=95;continue;case 95:if(this.local$closure$tableNames.contains_11rb$("PersonAuth2")){if(this.state_0=96,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handlePersonAuth2Changed_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=97;continue;case 96:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=97;continue;case 97:if(this.local$closure$tableNames.contains_11rb$("UserSession")){if(this.state_0=98,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleUserSessionChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=99;continue;case 98:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=99;continue;case 99:if(this.local$closure$tableNames.contains_11rb$("CourseBlock")){if(this.state_0=100,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleCourseBlockChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=101;continue;case 100:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=101;continue;case 101:if(this.local$closure$tableNames.contains_11rb$("CourseTerminology")){if(this.state_0=102,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleCourseTerminologyChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=103;continue;case 102:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=103;continue;case 103:if(this.local$closure$tableNames.contains_11rb$("CourseGroupSet")){if(this.state_0=104,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleCourseGroupSetChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=105;continue;case 104:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=105;continue;case 105:if(this.local$closure$tableNames.contains_11rb$("CourseGroupMember")){if(this.state_0=106,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleCourseGroupMemberChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=107;continue;case 106:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=107;continue;case 107:if(this.local$closure$tableNames.contains_11rb$("CoursePicture")){if(this.state_0=108,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleCoursePictureChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=109;continue;case 108:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=109;continue;case 109:if(this.local$closure$tableNames.contains_11rb$("ContentEntryPicture")){if(this.state_0=110,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleContentEntryPictureChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=111;continue;case 110:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=111;continue;case 111:if(this.local$closure$tableNames.contains_11rb$("Chat")){if(this.state_0=112,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleChatChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=113;continue;case 112:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=113;continue;case 113:if(this.local$closure$tableNames.contains_11rb$("ChatMember")){if(this.state_0=114,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleChatMemberChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=115;continue;case 114:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=115;continue;case 115:if(this.local$closure$tableNames.contains_11rb$("Message")){if(this.state_0=116,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleMessageChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=117;continue;case 116:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=117;continue;case 117:if(this.local$closure$tableNames.contains_11rb$("MessageRead")){if(this.state_0=118,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleMessageReadChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=119;continue;case 118:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=119;continue;case 119:if(this.local$closure$tableNames.contains_11rb$("CourseDiscussion")){if(this.state_0=120,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleCourseDiscussionChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=121;continue;case 120:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=121;continue;case 121:if(this.local$closure$tableNames.contains_11rb$("DiscussionTopic")){if(this.state_0=122,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleDiscussionTopicChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=123;continue;case 122:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=123;continue;case 123:if(this.local$closure$tableNames.contains_11rb$("DiscussionPost")){if(this.state_0=124,this.result_0=this.local$this$UmAppDatabase_ReplicationRunOnChangeRunner.handleDiscussionPostChanged_0(this.local$_transactionDb,this),this.result_0===C)return C;continue}this.state_0=125;continue;case 124:this.local$closure$_checkPendingNotifications.addAll_brywnq$(this.result_0),this.state_0=125;continue;case 125:return V;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Yi.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Yi.prototype=Object.create(N.prototype),Yi.prototype.constructor=Yi,Yi.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_checkPendingNotifications=et(),this.state_0=2,this.result_0=K(this.$this._db_0,void 0,Ji(this.local$tableNames,this.local$_checkPendingNotifications,this.$this),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$_checkPendingNotifications;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.runReplicationRunOnChange_ywdfdh$=function(t,e,n){var i=new Yi(this,t,e);return n?i:i.doResume(null)},Qi.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Qi.prototype=Object.create(N.prototype),Qi.prototype.constructor=Qi,Qi.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$fnTimeCounter=X,this.local$fnTimeCounter=J(),this.state_0=2,this.result_0=this.local$_transactionDb.personDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(Y.Napier.d_82mfvz$("Ran PersonDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=3,this.result_0=this.local$_transactionDb.clazzDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 3:if(Y.Napier.d_82mfvz$("Ran ClazzDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=4,this.result_0=this.local$_transactionDb.courseBlockDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 4:if(Y.Napier.d_82mfvz$("Ran CourseBlockDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=5,this.result_0=this.local$_transactionDb.courseTerminologyDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 5:if(Y.Napier.d_82mfvz$("Ran CourseTerminologyDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=6,this.result_0=this.local$_transactionDb.courseGroupSetDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 6:if(Y.Napier.d_82mfvz$("Ran CourseGroupSetDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=7,this.result_0=this.local$_transactionDb.courseGroupMemberDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 7:if(Y.Napier.d_82mfvz$("Ran CourseGroupMemberDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=8,this.result_0=this.local$_transactionDb.clazzEnrolmentDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 8:if(Y.Napier.d_82mfvz$("Ran ClazzEnrolmentDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=9,this.result_0=this.local$_transactionDb.leavingReasonDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 9:if(Y.Napier.d_82mfvz$("Ran LeavingReasonDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=10,this.result_0=this.local$_transactionDb.contentEntryDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 10:if(Y.Napier.d_82mfvz$("Ran ContentEntryDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=11,this.result_0=this.local$_transactionDb.contentEntryContentCategoryJoinDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 11:if(Y.Napier.d_82mfvz$("Ran ContentEntryContentCategoryJoinDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=12,this.result_0=this.local$_transactionDb.contentEntryParentChildJoinDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 12:if(Y.Napier.d_82mfvz$("Ran ContentEntryParentChildJoinDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=13,this.result_0=this.local$_transactionDb.contentEntryRelatedEntryJoinDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 13:if(Y.Napier.d_82mfvz$("Ran ContentEntryRelatedEntryJoinDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=14,this.result_0=this.local$_transactionDb.clazzContentJoinDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 14:if(Y.Napier.d_82mfvz$("Ran ClazzContentJoinDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=15,this.result_0=this.local$_transactionDb.contentCategorySchemaDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 15:if(Y.Napier.d_82mfvz$("Ran ContentCategorySchemaDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=16,this.result_0=this.local$_transactionDb.contentCategoryDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 16:if(Y.Napier.d_82mfvz$("Ran ContentCategoryDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=17,this.result_0=this.local$_transactionDb.languageDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 17:if(Y.Napier.d_82mfvz$("Ran LanguageDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=18,this.result_0=this.local$_transactionDb.languageVariantDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 18:if(Y.Napier.d_82mfvz$("Ran LanguageVariantDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=19,this.result_0=this.local$_transactionDb.personGroupDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 19:if(Y.Napier.d_82mfvz$("Ran PersonGroupDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=20,this.result_0=this.local$_transactionDb.personGroupDao.replicateOnNewNodeClazzBased_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 20:if(Y.Napier.d_82mfvz$("Ran PersonGroupDao#replicateOnNewNodeClazzBased in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=21,this.result_0=this.local$_transactionDb.personGroupDao.replicateOnNewNodePersonBased_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 21:if(Y.Napier.d_82mfvz$("Ran PersonGroupDao#replicateOnNewNodePersonBased in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=22,this.result_0=this.local$_transactionDb.personGroupDao.replicateOnNewNodeSchoolBased_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 22:if(Y.Napier.d_82mfvz$("Ran PersonGroupDao#replicateOnNewNodeSchoolBased in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=23,this.result_0=this.local$_transactionDb.personGroupMemberDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 23:if(Y.Napier.d_82mfvz$("Ran PersonGroupMemberDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=24,this.result_0=this.local$_transactionDb.personGroupMemberDao.replicateOnNewNodeClazzBased_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 24:if(Y.Napier.d_82mfvz$("Ran PersonGroupMemberDao#replicateOnNewNodeClazzBased in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=25,this.result_0=this.local$_transactionDb.personGroupMemberDao.replicateOnNewNodeSchoolBased_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 25:if(Y.Napier.d_82mfvz$("Ran PersonGroupMemberDao#replicateOnNewNodeSchoolBased in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=26,this.result_0=this.local$_transactionDb.personPictureDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 26:if(Y.Napier.d_82mfvz$("Ran PersonPictureDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=27,this.result_0=this.local$_transactionDb.containerDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 27:if(Y.Napier.d_82mfvz$("Ran ContainerDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=28,this.result_0=this.local$_transactionDb.verbDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 28:if(Y.Napier.d_82mfvz$("Ran VerbDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=29,this.result_0=this.local$_transactionDb.xObjectDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 29:if(Y.Napier.d_82mfvz$("Ran XObjectDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=30,this.result_0=this.local$_transactionDb.reportDao.replicateOnNewNodeTemplates_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 30:if(Y.Napier.d_82mfvz$("Ran ReportDao#replicateOnNewNodeTemplates in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=31,this.result_0=this.local$_transactionDb.statementDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 31:if(Y.Napier.d_82mfvz$("Ran StatementDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=32,this.result_0=this.local$_transactionDb.contextXObjectStatementJoinDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 32:if(Y.Napier.d_82mfvz$("Ran ContextXObjectStatementJoinDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=33,this.result_0=this.local$_transactionDb.stateDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 33:if(Y.Napier.d_82mfvz$("Ran StateDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=34,this.result_0=this.local$_transactionDb.stateContentDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 34:if(Y.Napier.d_82mfvz$("Ran StateContentDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=35,this.result_0=this.local$_transactionDb.agentDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 35:if(Y.Napier.d_82mfvz$("Ran AgentDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=36,this.result_0=this.local$_transactionDb.learnerGroupDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 36:if(Y.Napier.d_82mfvz$("Ran LearnerGroupDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=37,this.result_0=this.local$_transactionDb.learnerGroupMemberDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 37:if(Y.Napier.d_82mfvz$("Ran LearnerGroupMemberDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=38,this.result_0=this.local$_transactionDb.groupLearningSessionDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 38:if(Y.Napier.d_82mfvz$("Ran GroupLearningSessionDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=39,this.result_0=this.local$_transactionDb.clazzLogAttendanceRecordDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 39:if(Y.Napier.d_82mfvz$("Ran ClazzLogAttendanceRecordDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=40,this.result_0=this.local$_transactionDb.clazzLogDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 40:if(Y.Napier.d_82mfvz$("Ran ClazzLogDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=41,this.result_0=this.local$_transactionDb.scheduleDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 41:if(Y.Napier.d_82mfvz$("Ran ScheduleDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=42,this.result_0=this.local$_transactionDb.holidayCalendarDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 42:if(Y.Napier.d_82mfvz$("Ran HolidayCalendarDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=43,this.result_0=this.local$_transactionDb.holidayDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 43:if(Y.Napier.d_82mfvz$("Ran HolidayDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=44,this.result_0=this.local$_transactionDb.schoolDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 44:if(Y.Napier.d_82mfvz$("Ran SchoolDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=45,this.result_0=this.local$_transactionDb.xLangMapEntryDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 45:if(Y.Napier.d_82mfvz$("Ran XLangMapEntryDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=46,this.result_0=this.local$_transactionDb.schoolMemberDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 46:if(Y.Napier.d_82mfvz$("Ran SchoolMemberDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=47,this.result_0=this.local$_transactionDb.clazzAssignmentDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 47:if(Y.Napier.d_82mfvz$("Ran ClazzAssignmentDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=48,this.result_0=this.local$_transactionDb.clazzAssignmentContentJoinDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 48:if(Y.Napier.d_82mfvz$("Ran ClazzAssignmentContentJoinDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=49,this.result_0=this.local$_transactionDb.courseAssignmentSubmissionDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 49:if(Y.Napier.d_82mfvz$("Ran CourseAssignmentSubmissionDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=50,this.result_0=this.local$_transactionDb.courseAssignmentSubmissionAttachmentDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 50:if(Y.Napier.d_82mfvz$("Ran CourseAssignmentSubmissionAttachmentDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=51,this.result_0=this.local$_transactionDb.courseAssignmentMarkDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 51:if(Y.Napier.d_82mfvz$("Ran CourseAssignmentMarkDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=52,this.result_0=this.local$_transactionDb.commentsDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 52:if(Y.Napier.d_82mfvz$("Ran CommentsDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=53,this.result_0=this.local$_transactionDb.siteDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 53:if(Y.Napier.d_82mfvz$("Ran SiteDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=54,this.result_0=this.local$_transactionDb.siteTermsDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 54:if(Y.Napier.d_82mfvz$("Ran SiteTermsDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=55,this.result_0=this.local$_transactionDb.personParentJoinDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 55:if(Y.Napier.d_82mfvz$("Ran PersonParentJoinDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=56,this.result_0=this.local$_transactionDb.scopedGrantDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 56:if(Y.Napier.d_82mfvz$("Ran ScopedGrantDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=57,this.result_0=this.local$_transactionDb.scopedGrantDao.replicateOnNewNodeClazzBased_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 57:if(Y.Napier.d_82mfvz$("Ran ScopedGrantDao#replicateOnNewNodeClazzBased in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=58,this.result_0=this.local$_transactionDb.scopedGrantDao.replicateOnNewNodePersonBased_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 58:if(Y.Napier.d_82mfvz$("Ran ScopedGrantDao#replicateOnNewNodePersonBased in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=59,this.result_0=this.local$_transactionDb.personAuth2Dao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 59:if(Y.Napier.d_82mfvz$("Ran PersonAuth2Dao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=60,this.result_0=this.local$_transactionDb.userSessionDao.updateReplicationTrackersOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 60:if(Y.Napier.d_82mfvz$("Ran UserSessionDao#updateReplicationTrackersOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=61,this.result_0=this.local$_transactionDb.coursePictureDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 61:if(Y.Napier.d_82mfvz$("Ran CoursePictureDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=62,this.result_0=this.local$_transactionDb.contentEntryPictureDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 62:if(Y.Napier.d_82mfvz$("Ran ContentEntryPictureDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=63,this.result_0=this.local$_transactionDb.chatDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 63:if(Y.Napier.d_82mfvz$("Ran ChatDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=64,this.result_0=this.local$_transactionDb.chatMemberDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 64:if(Y.Napier.d_82mfvz$("Ran ChatMemberDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=65,this.result_0=this.local$_transactionDb.messageDao.replicateOnNewNodeChats_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 65:if(Y.Napier.d_82mfvz$("Ran MessageDao#replicateOnNewNodeChats in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=66,this.result_0=this.local$_transactionDb.messageDao.replicateOnNewNodePosts_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 66:if(Y.Napier.d_82mfvz$("Ran MessageDao#replicateOnNewNodePosts in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=67,this.result_0=this.local$_transactionDb.messageReadDao.replicateOnNewNodeChats_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 67:if(Y.Napier.d_82mfvz$("Ran MessageReadDao#replicateOnNewNodeChats in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=68,this.result_0=this.local$_transactionDb.courseDiscussionDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 68:if(Y.Napier.d_82mfvz$("Ran CourseDiscussionDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=69,this.result_0=this.local$_transactionDb.discussionTopicDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 69:if(Y.Napier.d_82mfvz$("Ran DiscussionTopicDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),this.local$fnTimeCounter=J(),this.state_0=70,this.result_0=this.local$_transactionDb.discussionPostDao.replicateOnNewNode_s8cxhz$(this.local$closure$newNodeId,this),this.result_0===C)return C;continue;case 70:return Y.Napier.d_82mfvz$("Ran DiscussionPostDao#replicateOnNewNode in "+Q(J().subtract(this.local$fnTimeCounter))+"ms"),V;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},to.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},to.prototype=Object.create(N.prototype),to.prototype.constructor=to,to.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=K(this.$this._db_0,void 0,Zi(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return Z(["Person","Clazz","CourseBlock","CourseTerminology","CourseGroupSet","CourseGroupMember","ClazzEnrolment","LeavingReason","ContentEntry","ContentEntryContentCategoryJoin","ContentEntryParentChildJoin","ContentEntryRelatedEntryJoin","ClazzContentJoin","ContentCategorySchema","ContentCategory","Language","LanguageVariant","PersonGroup","PersonGroupMember","PersonPicture","Container","VerbEntity","XObjectEntity","Report","StatementEntity","ContextXObjectStatementJoin","StateEntity","StateContentEntity","AgentEntity","LearnerGroup","LearnerGroupMember","GroupLearningSession","ClazzLogAttendanceRecord","ClazzLog","Schedule","HolidayCalendar","Holiday","School","XLangMapEntry","SchoolMember","ClazzAssignment","ClazzAssignmentContentJoin","CourseAssignmentSubmission","CourseAssignmentSubmissionAttachment","CourseAssignmentMark","Comments","Site","SiteTerms","PersonParentJoin","ScopedGrant","PersonAuth2","UserSession","CoursePicture","ContentEntryPicture","Chat","ChatMember","Message","MessageRead","CourseDiscussion","DiscussionTopic","DiscussionPost"]);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jn.prototype.runOnNewNode_s8cxhz$=function(t,e,n){var i=new to(this,t,e);return n?i:i.doResume(null)},jn.$metadata$={kind:c,simpleName:"UmAppDatabase_ReplicationRunOnChangeRunner",interfaces:[tt]},Object.defineProperty(eo.prototype,"db",{get:function(){return this.db_dckk3g$_0}}),Object.defineProperty(eo.prototype,"config",{get:function(){return this.config_awa45k$_0}}),Object.defineProperty(eo.prototype,"isRootRepository",{get:function(){return this.isRootRepository_z663x8$_0}}),Object.defineProperty(eo.prototype,"context",{configurable:!0,get:function(){return this.config.context}}),Object.defineProperty(eo.prototype,"replicationSubscriptionManager",{configurable:!0,get:function(){return this.replicationSubscriptionManager_j1bst2$_0}}),Object.defineProperty(eo.prototype,"_endpoint_0",{configurable:!0,get:function(){return this.config.endpoint}}),Object.defineProperty(eo.prototype,"_httpClient",{configurable:!0,get:function(){return this.config.httpClient}}),Object.defineProperty(eo.prototype,"clientId",{configurable:!0,get:function(){return this.config.nodeId}}),Object.defineProperty(eo.prototype,"dbName",{configurable:!0,get:function(){return"Repository for ["+this._db_0.toString()+"] - "+this.config.endpoint}}),Object.defineProperty(eo.prototype,"connectivityStatus",{configurable:!0,get:function(){return this._repositoryHelper.connectivityStatus},set:function(t){this._repositoryHelper.connectivityStatus=t}}),Object.defineProperty(eo.prototype,"dbVersion",{configurable:!0,get:function(){return 107}}),Object.defineProperty(eo.prototype,"networkNodeDao",{configurable:!0,get:function(){throw v("NetworkNodeDao is not annotated with @Repository")}}),Object.defineProperty(eo.prototype,"_PersonDao_0",{configurable:!0,get:function(){return this._PersonDao_ujubz8$_0.value}}),Object.defineProperty(eo.prototype,"personDao",{configurable:!0,get:function(){return this._PersonDao_0}}),Object.defineProperty(eo.prototype,"_ClazzDao_0",{configurable:!0,get:function(){return this._ClazzDao_e4tenz$_0.value}}),Object.defineProperty(eo.prototype,"clazzDao",{configurable:!0,get:function(){return this._ClazzDao_0}}),Object.defineProperty(eo.prototype,"_CourseBlockDao_0",{configurable:!0,get:function(){return this._CourseBlockDao_ei3yxn$_0.value}}),Object.defineProperty(eo.prototype,"courseBlockDao",{configurable:!0,get:function(){return this._CourseBlockDao_0}}),Object.defineProperty(eo.prototype,"_CourseTerminologyDao_0",{configurable:!0,get:function(){return this._CourseTerminologyDao_jhtq7$_0.value}}),Object.defineProperty(eo.prototype,"courseTerminologyDao",{configurable:!0,get:function(){return this._CourseTerminologyDao_0}}),Object.defineProperty(eo.prototype,"_CourseGroupSetDao_0",{configurable:!0,get:function(){return this._CourseGroupSetDao_4in49n$_0.value}}),Object.defineProperty(eo.prototype,"courseGroupSetDao",{configurable:!0,get:function(){return this._CourseGroupSetDao_0}}),Object.defineProperty(eo.prototype,"_CourseGroupMemberDao_0",{configurable:!0,get:function(){return this._CourseGroupMemberDao_bgnla1$_0.value}}),Object.defineProperty(eo.prototype,"courseGroupMemberDao",{configurable:!0,get:function(){return this._CourseGroupMemberDao_0}}),Object.defineProperty(eo.prototype,"_ClazzEnrolmentDao_0",{configurable:!0,get:function(){return this._ClazzEnrolmentDao_4a7n1v$_0.value}}),Object.defineProperty(eo.prototype,"clazzEnrolmentDao",{configurable:!0,get:function(){return this._ClazzEnrolmentDao_0}}),Object.defineProperty(eo.prototype,"_LeavingReasonDao_0",{configurable:!0,get:function(){return this._LeavingReasonDao_hlqrb3$_0.value}}),Object.defineProperty(eo.prototype,"leavingReasonDao",{configurable:!0,get:function(){return this._LeavingReasonDao_0}}),Object.defineProperty(eo.prototype,"_ContentEntryDao_0",{configurable:!0,get:function(){return this._ContentEntryDao_8jkla8$_0.value}}),Object.defineProperty(eo.prototype,"contentEntryDao",{configurable:!0,get:function(){return this._ContentEntryDao_0}}),Object.defineProperty(eo.prototype,"_ContentEntryContentCategoryJoinDao_0",{configurable:!0,get:function(){return this._ContentEntryContentCategoryJoinDao_rca9kf$_0.value}}),Object.defineProperty(eo.prototype,"contentEntryContentCategoryJoinDao",{configurable:!0,get:function(){return this._ContentEntryContentCategoryJoinDao_0}}),Object.defineProperty(eo.prototype,"_ContentEntryParentChildJoinDao_0",{configurable:!0,get:function(){return this._ContentEntryParentChildJoinDao_p9lgj8$_0.value}}),Object.defineProperty(eo.prototype,"contentEntryParentChildJoinDao",{configurable:!0,get:function(){return this._ContentEntryParentChildJoinDao_0}}),Object.defineProperty(eo.prototype,"_ContentEntryRelatedEntryJoinDao_0",{configurable:!0,get:function(){return this._ContentEntryRelatedEntryJoinDao_h6no6p$_0.value}}),Object.defineProperty(eo.prototype,"contentEntryRelatedEntryJoinDao",{configurable:!0,get:function(){return this._ContentEntryRelatedEntryJoinDao_0}}),Object.defineProperty(eo.prototype,"_ClazzContentJoinDao_0",{configurable:!0,get:function(){return this._ClazzContentJoinDao_inlg8e$_0.value}}),Object.defineProperty(eo.prototype,"clazzContentJoinDao",{configurable:!0,get:function(){return this._ClazzContentJoinDao_0}}),Object.defineProperty(eo.prototype,"_ContentCategorySchemaDao_0",{configurable:!0,get:function(){return this._ContentCategorySchemaDao_5s0bb5$_0.value}}),Object.defineProperty(eo.prototype,"contentCategorySchemaDao",{configurable:!0,get:function(){return this._ContentCategorySchemaDao_0}}),Object.defineProperty(eo.prototype,"_ContentCategoryDao_0",{configurable:!0,get:function(){return this._ContentCategoryDao_bkzxts$_0.value}}),Object.defineProperty(eo.prototype,"contentCategoryDao",{configurable:!0,get:function(){return this._ContentCategoryDao_0}}),Object.defineProperty(eo.prototype,"_LanguageDao_0",{configurable:!0,get:function(){return this._LanguageDao_uo42vz$_0.value}}),Object.defineProperty(eo.prototype,"languageDao",{configurable:!0,get:function(){return this._LanguageDao_0}}),Object.defineProperty(eo.prototype,"_LanguageVariantDao_0",{configurable:!0,get:function(){return this._LanguageVariantDao_dgbgcq$_0.value}}),Object.defineProperty(eo.prototype,"languageVariantDao",{configurable:!0,get:function(){return this._LanguageVariantDao_0}}),Object.defineProperty(eo.prototype,"scrapeQueueItemDao",{configurable:!0,get:function(){throw v("ScrapeQueueItemDao is not annotated with @Repository")}}),Object.defineProperty(eo.prototype,"personAuthDao",{configurable:!0,get:function(){throw v("PersonAuthDao is not annotated with @Repository")}}),Object.defineProperty(eo.prototype,"_PersonGroupDao_0",{configurable:!0,get:function(){return this._PersonGroupDao_7mhe25$_0.value}}),Object.defineProperty(eo.prototype,"personGroupDao",{configurable:!0,get:function(){return this._PersonGroupDao_0}}),Object.defineProperty(eo.prototype,"_PersonGroupMemberDao_0",{configurable:!0,get:function(){return this._PersonGroupMemberDao_wihgy5$_0.value}}),Object.defineProperty(eo.prototype,"personGroupMemberDao",{configurable:!0,get:function(){return this._PersonGroupMemberDao_0}}),Object.defineProperty(eo.prototype,"_EntityRoleDao_0",{configurable:!0,get:function(){return this._EntityRoleDao_1gzugw$_0.value}}),Object.defineProperty(eo.prototype,"entityRoleDao",{configurable:!0,get:function(){return this._EntityRoleDao_0}}),Object.defineProperty(eo.prototype,"_PersonPictureDao_0",{configurable:!0,get:function(){return this._PersonPictureDao_xtn7v6$_0.value}}),Object.defineProperty(eo.prototype,"personPictureDao",{configurable:!0,get:function(){return this._PersonPictureDao_0}}),Object.defineProperty(eo.prototype,"connectivityStatusDao",{configurable:!0,get:function(){throw v("ConnectivityStatusDao is not annotated with @Repository")}}),Object.defineProperty(eo.prototype,"_ContainerDao_0",{configurable:!0,get:function(){return this._ContainerDao_3wn3o6$_0.value}}),Object.defineProperty(eo.prototype,"containerDao",{configurable:!0,get:function(){return this._ContainerDao_0}}),Object.defineProperty(eo.prototype,"containerEntryDao",{configurable:!0,get:function(){throw v("ContainerEntryDao is not annotated with @Repository")}}),Object.defineProperty(eo.prototype,"containerEntryFileDao",{configurable:!0,get:function(){throw v("ContainerEntryFileDao is not annotated with @Repository")}}),Object.defineProperty(eo.prototype,"containerETagDao",{configurable:!0,get:function(){throw v("ContainerETagDao is not annotated with @Repository")}}),Object.defineProperty(eo.prototype,"_VerbDao_0",{configurable:!0,get:function(){return this._VerbDao_nm4w2u$_0.value}}),Object.defineProperty(eo.prototype,"verbDao",{configurable:!0,get:function(){return this._VerbDao_0}}),Object.defineProperty(eo.prototype,"_XObjectDao_0",{configurable:!0,get:function(){return this._XObjectDao_jq9ao0$_0.value}}),Object.defineProperty(eo.prototype,"xObjectDao",{configurable:!0,get:function(){return this._XObjectDao_0}}),Object.defineProperty(eo.prototype,"_ReportDao_0",{configurable:!0,get:function(){return this._ReportDao_9u0lvp$_0.value}}),Object.defineProperty(eo.prototype,"reportDao",{configurable:!0,get:function(){return this._ReportDao_0}}),Object.defineProperty(eo.prototype,"containerImportJobDao",{configurable:!0,get:function(){throw v("ContainerImportJobDao is not annotated with @Repository")}}),Object.defineProperty(eo.prototype,"_StatementDao_0",{configurable:!0,get:function(){return this._StatementDao_tpixrc$_0.value}}),Object.defineProperty(eo.prototype,"statementDao",{configurable:!0,get:function(){return this._StatementDao_0}}),Object.defineProperty(eo.prototype,"_ContextXObjectStatementJoinDao_0",{configurable:!0,get:function(){return this._ContextXObjectStatementJoinDao_6w1wdi$_0.value}}),Object.defineProperty(eo.prototype,"contextXObjectStatementJoinDao",{configurable:!0,get:function(){return this._ContextXObjectStatementJoinDao_0}}),Object.defineProperty(eo.prototype,"_StateDao_0",{configurable:!0,get:function(){return this._StateDao_j50u9m$_0.value}}),Object.defineProperty(eo.prototype,"stateDao",{configurable:!0,get:function(){return this._StateDao_0}}),Object.defineProperty(eo.prototype,"_StateContentDao_0",{configurable:!0,get:function(){return this._StateContentDao_fw26c1$_0.value}}),Object.defineProperty(eo.prototype,"stateContentDao",{configurable:!0,get:function(){return this._StateContentDao_0}}),Object.defineProperty(eo.prototype,"_AgentDao_0",{configurable:!0,get:function(){return this._AgentDao_pi586m$_0.value}}),Object.defineProperty(eo.prototype,"agentDao",{configurable:!0,get:function(){return this._AgentDao_0}}),Object.defineProperty(eo.prototype,"_LearnerGroupDao_0",{configurable:!0,get:function(){return this._LearnerGroupDao_76gatx$_0.value}}),Object.defineProperty(eo.prototype,"learnerGroupDao",{configurable:!0,get:function(){return this._LearnerGroupDao_0}}),Object.defineProperty(eo.prototype,"_LearnerGroupMemberDao_0",{configurable:!0,get:function(){return this._LearnerGroupMemberDao_7uhmpd$_0.value}}),Object.defineProperty(eo.prototype,"learnerGroupMemberDao",{configurable:!0,get:function(){return this._LearnerGroupMemberDao_0}}),Object.defineProperty(eo.prototype,"_GroupLearningSessionDao_0",{configurable:!0,get:function(){return this._GroupLearningSessionDao_38ojog$_0.value}}),Object.defineProperty(eo.prototype,"groupLearningSessionDao",{configurable:!0,get:function(){return this._GroupLearningSessionDao_0}}),Object.defineProperty(eo.prototype,"_ClazzLogAttendanceRecordDao_0",{configurable:!0,get:function(){return this._ClazzLogAttendanceRecordDao_4r3kjx$_0.value}}),Object.defineProperty(eo.prototype,"clazzLogAttendanceRecordDao",{configurable:!0,get:function(){return this._ClazzLogAttendanceRecordDao_0}}),Object.defineProperty(eo.prototype,"_ClazzLogDao_0",{configurable:!0,get:function(){return this._ClazzLogDao_70b6y5$_0.value}}),Object.defineProperty(eo.prototype,"clazzLogDao",{configurable:!0,get:function(){return this._ClazzLogDao_0}}),Object.defineProperty(eo.prototype,"_ScheduleDao_0",{configurable:!0,get:function(){return this._ScheduleDao_dgcsim$_0.value}}),Object.defineProperty(eo.prototype,"scheduleDao",{configurable:!0,get:function(){return this._ScheduleDao_0}}),Object.defineProperty(eo.prototype,"_HolidayCalendarDao_0",{configurable:!0,get:function(){return this._HolidayCalendarDao_dbgjhb$_0.value}}),Object.defineProperty(eo.prototype,"holidayCalendarDao",{configurable:!0,get:function(){return this._HolidayCalendarDao_0}}),Object.defineProperty(eo.prototype,"_HolidayDao_0",{configurable:!0,get:function(){return this._HolidayDao_n3kgxr$_0.value}}),Object.defineProperty(eo.prototype,"holidayDao",{configurable:!0,get:function(){return this._HolidayDao_0}}),Object.defineProperty(eo.prototype,"_SchoolDao_0",{configurable:!0,get:function(){return this._SchoolDao_ro0mez$_0.value}}),Object.defineProperty(eo.prototype,"schoolDao",{configurable:!0,get:function(){return this._SchoolDao_0}}),Object.defineProperty(eo.prototype,"_XLangMapEntryDao_0",{configurable:!0,get:function(){return this._XLangMapEntryDao_lbg3az$_0.value}}),Object.defineProperty(eo.prototype,"xLangMapEntryDao",{configurable:!0,get:function(){return this._XLangMapEntryDao_0}}),Object.defineProperty(eo.prototype,"locallyAvailableContainerDao",{configurable:!0,get:function(){throw v("LocallyAvailableContainerDao is not annotated with @Repository")}}),Object.defineProperty(eo.prototype,"_SchoolMemberDao_0",{configurable:!0,get:function(){return this._SchoolMemberDao_l0miut$_0.value}}),Object.defineProperty(eo.prototype,"schoolMemberDao",{configurable:!0,get:function(){return this._SchoolMemberDao_0}}),Object.defineProperty(eo.prototype,"_ClazzAssignmentDao_0",{configurable:!0,get:function(){return this._ClazzAssignmentDao_l1mez6$_0.value}}),Object.defineProperty(eo.prototype,"clazzAssignmentDao",{configurable:!0,get:function(){return this._ClazzAssignmentDao_0}}),Object.defineProperty(eo.prototype,"_ClazzAssignmentContentJoinDao_0",{configurable:!0,get:function(){return this._ClazzAssignmentContentJoinDao_1c2tvf$_0.value}}),Object.defineProperty(eo.prototype,"clazzAssignmentContentJoinDao",{configurable:!0,get:function(){return this._ClazzAssignmentContentJoinDao_0}}),Object.defineProperty(eo.prototype,"_ClazzAssignmentRollUpDao_0",{configurable:!0,get:function(){return this._ClazzAssignmentRollUpDao_2f8am2$_0.value}}),Object.defineProperty(eo.prototype,"clazzAssignmentRollUpDao",{configurable:!0,get:function(){return this._ClazzAssignmentRollUpDao_0}}),Object.defineProperty(eo.prototype,"_CourseAssignmentSubmissionDao_0",{configurable:!0,get:function(){return this._CourseAssignmentSubmissionDao_9kuy85$_0.value}}),Object.defineProperty(eo.prototype,"courseAssignmentSubmissionDao",{configurable:!0,get:function(){return this._CourseAssignmentSubmissionDao_0}}),Object.defineProperty(eo.prototype,"_CourseAssignmentSubmissionAttachmentDao_0",{configurable:!0,get:function(){return this._CourseAssignmentSubmissionAttachmentDao_68jpoi$_0.value}}),Object.defineProperty(eo.prototype,"courseAssignmentSubmissionAttachmentDao",{configurable:!0,get:function(){return this._CourseAssignmentSubmissionAttachmentDao_0}}),Object.defineProperty(eo.prototype,"_CourseAssignmentMarkDao_0",{configurable:!0,get:function(){return this._CourseAssignmentMarkDao_7honss$_0.value}}),Object.defineProperty(eo.prototype,"courseAssignmentMarkDao",{configurable:!0,get:function(){return this._CourseAssignmentMarkDao_0}}),Object.defineProperty(eo.prototype,"_CommentsDao_0",{configurable:!0,get:function(){return this._CommentsDao_7ok0mz$_0.value}}),Object.defineProperty(eo.prototype,"commentsDao",{configurable:!0,get:function(){return this._CommentsDao_0}}),Object.defineProperty(eo.prototype,"syncNodeDao",{configurable:!0,get:function(){throw v("SyncNodeDao is not annotated with @Repository")}}),Object.defineProperty(eo.prototype,"_SiteDao_0",{configurable:!0,get:function(){return this._SiteDao_35ern6$_0.value}}),Object.defineProperty(eo.prototype,"siteDao",{configurable:!0,get:function(){return this._SiteDao_0}}),Object.defineProperty(eo.prototype,"_SiteTermsDao_0",{configurable:!0,get:function(){return this._SiteTermsDao_u5navr$_0.value}}),Object.defineProperty(eo.prototype,"siteTermsDao",{configurable:!0,get:function(){return this._SiteTermsDao_0}}),Object.defineProperty(eo.prototype,"_PersonParentJoinDao_0",{configurable:!0,get:function(){return this._PersonParentJoinDao_saaols$_0.value}}),Object.defineProperty(eo.prototype,"personParentJoinDao",{configurable:!0,get:function(){return this._PersonParentJoinDao_0}}),Object.defineProperty(eo.prototype,"_ScopedGrantDao_0",{configurable:!0,get:function(){return this._ScopedGrantDao_3r6sr$_0.value}}),Object.defineProperty(eo.prototype,"scopedGrantDao",{configurable:!0,get:function(){return this._ScopedGrantDao_0}}),Object.defineProperty(eo.prototype,"_ErrorReportDao_0",{configurable:!0,get:function(){return this._ErrorReportDao_3fz6m3$_0.value}}),Object.defineProperty(eo.prototype,"errorReportDao",{configurable:!0,get:function(){return this._ErrorReportDao_0}}),Object.defineProperty(eo.prototype,"_PersonAuth2Dao_0",{configurable:!0,get:function(){return this._PersonAuth2Dao_uo70te$_0.value}}),Object.defineProperty(eo.prototype,"personAuth2Dao",{configurable:!0,get:function(){return this._PersonAuth2Dao_0}}),Object.defineProperty(eo.prototype,"_UserSessionDao_0",{configurable:!0,get:function(){return this._UserSessionDao_svxsy4$_0.value}}),Object.defineProperty(eo.prototype,"userSessionDao",{configurable:!0,get:function(){return this._UserSessionDao_0}}),Object.defineProperty(eo.prototype,"contentJobItemDao",{configurable:!0,get:function(){throw v("ContentJobItemDao is not annotated with @Repository")}}),Object.defineProperty(eo.prototype,"contentJobDao",{configurable:!0,get:function(){throw v("ContentJobDao is not annotated with @Repository")}}),Object.defineProperty(eo.prototype,"_CoursePictureDao_0",{configurable:!0,get:function(){return this._CoursePictureDao_cwo2r8$_0.value}}),Object.defineProperty(eo.prototype,"coursePictureDao",{configurable:!0,get:function(){return this._CoursePictureDao_0}}),Object.defineProperty(eo.prototype,"_ContentEntryPictureDao_0",{configurable:!0,get:function(){return this._ContentEntryPictureDao_6clelq$_0.value}}),Object.defineProperty(eo.prototype,"contentEntryPictureDao",{configurable:!0,get:function(){return this._ContentEntryPictureDao_0}}),Object.defineProperty(eo.prototype,"_ChatDao_0",{configurable:!0,get:function(){return this._ChatDao_9gdue7$_0.value}}),Object.defineProperty(eo.prototype,"chatDao",{configurable:!0,get:function(){return this._ChatDao_0}}),Object.defineProperty(eo.prototype,"_ChatMemberDao_0",{configurable:!0,get:function(){return this._ChatMemberDao_8nduuf$_0.value}}),Object.defineProperty(eo.prototype,"chatMemberDao",{configurable:!0,get:function(){return this._ChatMemberDao_0}}),Object.defineProperty(eo.prototype,"_MessageDao_0",{configurable:!0,get:function(){return this._MessageDao_uo7ouo$_0.value}}),Object.defineProperty(eo.prototype,"messageDao",{configurable:!0,get:function(){return this._MessageDao_0}}),Object.defineProperty(eo.prototype,"_MessageReadDao_0",{configurable:!0,get:function(){return this._MessageReadDao_9pyt5y$_0.value}}),Object.defineProperty(eo.prototype,"messageReadDao",{configurable:!0,get:function(){return this._MessageReadDao_0}});Object.defineProperty(eo.prototype,"_CourseDiscussionDao_0",{configurable:!0,get:function(){return this._CourseDiscussionDao_zc4gve$_0.value}}),Object.defineProperty(eo.prototype,"courseDiscussionDao",{configurable:!0,get:function(){return this._CourseDiscussionDao_0}}),Object.defineProperty(eo.prototype,"_DiscussionTopicDao_0",{configurable:!0,get:function(){return this._DiscussionTopicDao_cb2wmo$_0.value}}),Object.defineProperty(eo.prototype,"discussionTopicDao",{configurable:!0,get:function(){return this._DiscussionTopicDao_0}}),Object.defineProperty(eo.prototype,"_DiscussionPostDao_0",{configurable:!0,get:function(){return this._DiscussionPostDao_xx2rrl$_0.value}}),Object.defineProperty(eo.prototype,"discussionPostDao",{configurable:!0,get:function(){return this._DiscussionPostDao_0}}),eo.prototype.clearAllTables=function(){throw v("Cannot use a repository to clearAllTables!")},eo.prototype.clearAllTablesAsync=function(t){throw v("Cannot use this to run clearAllTablesAsync")},eo.prototype.addWeakConnectivityListener_r5hok5$=function(t){this._repositoryHelper.addWeakConnectivityListener_r5hok5$(t)},eo.prototype.removeWeakConnectivityListener_r5hok5$=function(t){this._repositoryHelper.removeWeakConnectivityListener_r5hok5$(t)},eo.prototype.createAllTables=function(){throw v("Cannot use a repository to createAllTables!")},eo.prototype.getInvalidationTracker=function(){return this._db_0.getInvalidationTracker()},no.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var io=null;function oo(){return null===io&&new no,io}function ro(){}function so(t){ro.call(this),this._db=t,this._insertAdapterAgentEntity_=new $o(this._db)}function ao(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function co(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function lo(t){return function(e,n,i){var o=new co(t,e,n);return i?o:o.doResume(null)}}function uo(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function ho(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function po(t,e,n){var i=new ho(t,e);return n?i:i.doResume(null)}function _o(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function mo(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("agentUid"),i=e.getString_61zpoe$("agentMbox"),o=e.getString_61zpoe$("agentMbox_sha1sum"),r=e.getString_61zpoe$("agentOpenid"),s=e.getString_61zpoe$("agentAccountName"),a=e.getString_61zpoe$("agentHomePage"),c=e.getLong_61zpoe$("agentPersonUid"),l=e.getLong_61zpoe$("statementMasterChangeSeqNum"),u=e.getLong_61zpoe$("statementLocalChangeSeqNum"),h=e.getInt_61zpoe$("statementLastChangedBy"),d=e.getLong_61zpoe$("agentLct"),p=new y4;return p.agentUid=n,p.agentMbox=i,p.agentMbox_sha1sum=o,p.agentOpenid=r,p.agentAccountName=s,p.agentHomePage=a,p.agentPersonUid=c,p.statementMasterChangeSeqNum=l,p.statementLocalChangeSeqNum=u,p.statementLastChangedBy=h,p.agentLct=d,p}));var e}function fo(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("agentUid"),i=e.getString_61zpoe$("agentMbox"),o=e.getString_61zpoe$("agentMbox_sha1sum"),r=e.getString_61zpoe$("agentOpenid"),s=e.getString_61zpoe$("agentAccountName"),a=e.getString_61zpoe$("agentHomePage"),c=e.getLong_61zpoe$("agentPersonUid"),l=e.getLong_61zpoe$("statementMasterChangeSeqNum"),u=e.getLong_61zpoe$("statementLocalChangeSeqNum"),h=e.getInt_61zpoe$("statementLastChangedBy"),d=e.getLong_61zpoe$("agentLct"),p=new y4;return p.agentUid=n,p.agentMbox=i,p.agentMbox_sha1sum=o,p.agentOpenid=r,p.agentAccountName=s,p.agentHomePage=a,p.agentPersonUid=c,p.statementMasterChangeSeqNum=l,p.statementLocalChangeSeqNum=u,p.statementLastChangedBy=h,p.agentLct=d,p}));var e}function go(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$username=t,this.local$closure$endpoint=e,this.local$_stmt=n}function $o(t){pt.call(this,t)}function Eo(t,e){ro.call(this),this._db_0=t,this._dao_0=e}function yo(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function bo(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function So(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function vo(t,e,n,i,o,r){ro.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function Co(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function No(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function To(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$endpoint=e,this.local$username=n}function Lo(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function zo(){}function wo(t){zo.call(this),this._db=t,this._insertAdapterChat_=new Jo(this._db)}function Oo(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Ro(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function Ao(t){return function(e,n,i){var o=new Ro(t,e,n);return i?o:o.doResume(null)}}function xo(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function Io(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function Uo(t,e,n){var i=new Io(t,e);return n?i:i.doResume(null)}function Do(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function Po(t,e,n){this.this$ChatDao_JdbcKt=t,this.closure$personUid=e,this.closure$searchBit=n,gt.call(this)}function Mo(t){return mt(t,(e=t,function(t){var n=e.getInt_61zpoe$("unreadMessageCount"),i=e.getString_61zpoe$("latestMessage"),o=e.getLong_61zpoe$("latestMessageTimestamp"),r=e.getLong_61zpoe$("otherPersonUid"),s=e.getString_61zpoe$("otherPersonFirstNames"),a=e.getString_61zpoe$("otherPersonLastName"),c=e.getLong_61zpoe$("chatUid"),l=e.getLong_61zpoe$("chatStartDate"),u=e.getString_61zpoe$("chatTitle"),h=e.getBoolean_61zpoe$("chatGroup"),d=e.getLong_61zpoe$("chatLct"),p=new Q4;return p.unreadMessageCount=n,p.latestMessage=i,p.latestMessageTimestamp=o,p.otherPersonUid=r,p.otherPersonFirstNames=s,p.otherPersonLastName=a,p.chatUid=c,p.chatStartDate=l,p.chatTitle=u,p.chatGroup=h,p.chatLct=d,p}));var e}function ko(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$closure$personUid=t,this.local$closure$searchBit=e,this.local$closure$_limit=n,this.local$closure$_offset=i,this.local$_stmt=o}function jo(t,e,n,i){return function(o,r,s){var a=new ko(t,e,n,i,o,r);return s?a:a.doResume(null)}}function Go(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$this$ChatDao_JdbcKt=t,this.local$closure$personUid=e,this.local$closure$searchBit=n,this.local$closure$_limit=i,this.local$closure$_offset=o}function qo(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function Fo(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$personUid=t,this.local$closure$searchBit=e,this.local$_stmt=n}function Bo(t,e){return function(n,i,o){var r=new Fo(t,e,n,i);return o?r:r.doResume(null)}}function Wo(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$this$ChatDao_JdbcKt=t,this.local$closure$personUid=e,this.local$closure$searchBit=n}function Ho(t){return lt(t,null,(e=t,function(t){return e.getString_za3lpa$(1)}));var e}function Vo(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$personUid=t,this.local$closure$chatUid=e,this.local$_stmt=n}function Ko(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("chatUid"),i=e.getLong_61zpoe$("chatStartDate"),o=e.getString_61zpoe$("chatTitle"),r=e.getBoolean_61zpoe$("chatGroup"),s=e.getLong_61zpoe$("chatLct"),a=new D4;return a.chatUid=n,a.chatStartDate=i,a.chatTitle=o,a.chatGroup=r,a.chatLct=s,a}));var e}function Xo(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$otherPersonUid=t,this.local$closure$loggedInPersonUid=e,this.local$_stmt=n}function Jo(t){pt.call(this,t)}function Yo(t,e){zo.call(this),this._db_0=t,this._dao_0=e}function Qo(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function Zo(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function tr(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function er(t,e,n,i,o,r){zo.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function nr(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function ir(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function or(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$chatUid=e,this.local$personUid=n}function rr(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$otherPersonUid=e,this.local$loggedInPersonUid=n}function sr(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function ar(){}function cr(t){ar.call(this),this._db=t,this._insertAdapterChatMember_=new fr(this._db)}function lr(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function ur(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function hr(t){return function(e,n,i){var o=new ur(t,e,n);return i?o:o.doResume(null)}}function dr(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function pr(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function _r(t,e,n){var i=new pr(t,e);return n?i:i.doResume(null)}function mr(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function fr(t){pt.call(this,t)}function gr(t,e){ar.call(this),this._db_0=t,this._dao_0=e}function $r(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function Er(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function yr(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function br(t,e,n,i,o,r){ar.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function Sr(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function vr(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function Cr(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Nr(){}function Tr(t){Nr.call(this),this._db=t,this._insertAdapterClazzAssignmentContentJoin_=new Wr(this._db)}function Lr(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function zr(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function wr(t){return function(e,n,i){var o=new zr(t,e,n);return i?o:o.doResume(null)}}function Or(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function Rr(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function Ar(t,e,n){var i=new Rr(t,e);return n?i:i.doResume(null)}function xr(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function Ir(t){return mt(t,(e=t,function(t){var n=e.getInt_61zpoe$("assignmentContentWeight"),i=e.getLong_61zpoe$("contentEntryUid"),o=e.getString_61zpoe$("title"),r=e.getString_61zpoe$("description"),s=e.getString_61zpoe$("entryId"),a=e.getString_61zpoe$("author"),c=e.getString_61zpoe$("publisher"),l=e.getInt_61zpoe$("licenseType"),u=e.getString_61zpoe$("licenseName"),h=e.getString_61zpoe$("licenseUrl"),d=e.getString_61zpoe$("sourceUrl"),p=e.getString_61zpoe$("thumbnailUrl"),_=e.getLong_61zpoe$("lastModified"),m=e.getLong_61zpoe$("primaryLanguageUid"),f=e.getLong_61zpoe$("languageVariantUid"),g=e.getInt_61zpoe$("contentFlags"),$=e.getBoolean_61zpoe$("leaf"),E=e.getBoolean_61zpoe$("publik"),y=e.getBoolean_61zpoe$("ceInactive"),b=e.getInt_61zpoe$("completionCriteria"),S=e.getInt_61zpoe$("minScore"),v=e.getInt_61zpoe$("contentTypeFlag"),C=e.getLong_61zpoe$("contentOwner"),N=e.getLong_61zpoe$("contentEntryLocalChangeSeqNum"),T=e.getLong_61zpoe$("contentEntryMasterChangeSeqNum"),L=e.getInt_61zpoe$("contentEntryLastChangedBy"),z=e.getLong_61zpoe$("contentEntryLct"),w=0,O=e.getLong_61zpoe$("containerUid");e.wasNull()&&(w=w+1|0);var R=e.getLong_61zpoe$("cntLocalCsn");e.wasNull()&&(w=w+1|0);var A=e.getLong_61zpoe$("cntMasterCsn");e.wasNull()&&(w=w+1|0);var x=e.getInt_61zpoe$("cntLastModBy");e.wasNull()&&(w=w+1|0);var I=e.getLong_61zpoe$("cntLct");e.wasNull()&&(w=w+1|0);var U=e.getLong_61zpoe$("fileSize");e.wasNull()&&(w=w+1|0);var D=e.getLong_61zpoe$("containerContentEntryUid");e.wasNull()&&(w=w+1|0);var P=e.getLong_61zpoe$("cntLastModified");e.wasNull()&&(w=w+1|0);var M=e.getString_61zpoe$("mimeType");e.wasNull()&&(w=w+1|0);var k=e.getString_61zpoe$("remarks");e.wasNull()&&(w=w+1|0);var j=e.getBoolean_61zpoe$("mobileOptimized");e.wasNull()&&(w=w+1|0);var G=e.getInt_61zpoe$("cntNumEntries");e.wasNull()&&(w=w+1|0);var q=12===w,F=0,B=e.getLong_61zpoe$("cepcjUid");e.wasNull()&&(F=F+1|0);var W=e.getLong_61zpoe$("cepcjLocalChangeSeqNum");e.wasNull()&&(F=F+1|0);var H=e.getLong_61zpoe$("cepcjMasterChangeSeqNum");e.wasNull()&&(F=F+1|0);var V=e.getInt_61zpoe$("cepcjLastChangedBy");e.wasNull()&&(F=F+1|0);var K=e.getLong_61zpoe$("cepcjLct");e.wasNull()&&(F=F+1|0);var X=e.getLong_61zpoe$("cepcjParentContentEntryUid");e.wasNull()&&(F=F+1|0);var J=e.getLong_61zpoe$("cepcjChildContentEntryUid");e.wasNull()&&(F=F+1|0);var Y=e.getInt_61zpoe$("childIndex");e.wasNull()&&(F=F+1|0);var Q=8===F,Z=0,tt=e.getInt_61zpoe$("resultScore");e.wasNull()&&(Z=Z+1|0);var et=e.getInt_61zpoe$("resultMax");e.wasNull()&&(Z=Z+1|0);var nt=e.getFloat_61zpoe$("resultScaled");e.wasNull()&&(Z=Z+1|0);var it=e.getInt_61zpoe$("resultWeight");e.wasNull()&&(Z=Z+1|0);var ot=e.getBoolean_61zpoe$("contentComplete");e.wasNull()&&(Z=Z+1|0);var rt=e.getInt_61zpoe$("progress");e.wasNull()&&(Z=Z+1|0);var st=e.getByte_61zpoe$("success");e.wasNull()&&(Z=Z+1|0);var at=e.getInt_61zpoe$("penalty");e.wasNull()&&(Z=Z+1|0);var ct=e.getInt_61zpoe$("totalContent");e.wasNull()&&(Z=Z+1|0);var lt=e.getInt_61zpoe$("totalCompletedContent");e.wasNull()&&(Z=Z+1|0);var ut=10===Z,ht=new znt;if(ht.assignmentContentWeight=n,ht.contentEntryUid=i,ht.title=o,ht.description=r,ht.entryId=s,ht.author=a,ht.publisher=c,ht.licenseType=l,ht.licenseName=u,ht.licenseUrl=h,ht.sourceUrl=d,ht.thumbnailUrl=p,ht.lastModified=_,ht.primaryLanguageUid=m,ht.languageVariantUid=f,ht.contentFlags=g,ht.leaf=$,ht.publik=E,ht.ceInactive=y,ht.completionCriteria=b,ht.minScore=S,ht.contentTypeFlag=v,ht.contentOwner=C,ht.contentEntryLocalChangeSeqNum=N,ht.contentEntryMasterChangeSeqNum=T,ht.contentEntryLastChangedBy=L,ht.contentEntryLct=z,!q){var dt=new J9;dt.containerUid=O,dt.cntLocalCsn=R,dt.cntMasterCsn=A,dt.cntLastModBy=x,dt.cntLct=I,dt.fileSize=U,dt.containerContentEntryUid=D,dt.cntLastModified=P,dt.mimeType=M,dt.remarks=k,dt.mobileOptimized=j,dt.cntNumEntries=G,ht.mostRecentContainer=dt}if(!Q){var pt=new eet;pt.cepcjUid=B,pt.cepcjLocalChangeSeqNum=W,pt.cepcjMasterChangeSeqNum=H,pt.cepcjLastChangedBy=V,pt.cepcjLct=K,pt.cepcjParentContentEntryUid=X,pt.cepcjChildContentEntryUid=J,pt.childIndex=Y,ht.contentEntryParentChildJoin=pt}if(!ut){var _t=new qet;_t.resultScore=tt,_t.resultMax=et,_t.resultScaled=nt,_t.resultWeight=it,_t.contentComplete=ot,_t.progress=rt,_t.success=st,_t.penalty=at,_t.totalContent=ct,_t.totalCompletedContent=lt,ht.scoreProgress=_t}return ht}));var e}function Ur(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$personUid=t,this.local$closure$clazzAssignmentUid=e,this.local$_stmt=n}function Dr(t,e,n){this.this$ClazzAssignmentContentJoinDao_JdbcKt=t,this.closure$personUid=e,this.closure$clazzAssignmentUid=n,gt.call(this)}function Pr(t){return mt(t,(e=t,function(t){var n=e.getInt_61zpoe$("assignmentContentWeight"),i=e.getLong_61zpoe$("contentEntryUid"),o=e.getString_61zpoe$("title"),r=e.getString_61zpoe$("description"),s=e.getString_61zpoe$("entryId"),a=e.getString_61zpoe$("author"),c=e.getString_61zpoe$("publisher"),l=e.getInt_61zpoe$("licenseType"),u=e.getString_61zpoe$("licenseName"),h=e.getString_61zpoe$("licenseUrl"),d=e.getString_61zpoe$("sourceUrl"),p=e.getString_61zpoe$("thumbnailUrl"),_=e.getLong_61zpoe$("lastModified"),m=e.getLong_61zpoe$("primaryLanguageUid"),f=e.getLong_61zpoe$("languageVariantUid"),g=e.getInt_61zpoe$("contentFlags"),$=e.getBoolean_61zpoe$("leaf"),E=e.getBoolean_61zpoe$("publik"),y=e.getBoolean_61zpoe$("ceInactive"),b=e.getInt_61zpoe$("completionCriteria"),S=e.getInt_61zpoe$("minScore"),v=e.getInt_61zpoe$("contentTypeFlag"),C=e.getLong_61zpoe$("contentOwner"),N=e.getLong_61zpoe$("contentEntryLocalChangeSeqNum"),T=e.getLong_61zpoe$("contentEntryMasterChangeSeqNum"),L=e.getInt_61zpoe$("contentEntryLastChangedBy"),z=e.getLong_61zpoe$("contentEntryLct"),w=0,O=e.getLong_61zpoe$("containerUid");e.wasNull()&&(w=w+1|0);var R=e.getLong_61zpoe$("cntLocalCsn");e.wasNull()&&(w=w+1|0);var A=e.getLong_61zpoe$("cntMasterCsn");e.wasNull()&&(w=w+1|0);var x=e.getInt_61zpoe$("cntLastModBy");e.wasNull()&&(w=w+1|0);var I=e.getLong_61zpoe$("cntLct");e.wasNull()&&(w=w+1|0);var U=e.getLong_61zpoe$("fileSize");e.wasNull()&&(w=w+1|0);var D=e.getLong_61zpoe$("containerContentEntryUid");e.wasNull()&&(w=w+1|0);var P=e.getLong_61zpoe$("cntLastModified");e.wasNull()&&(w=w+1|0);var M=e.getString_61zpoe$("mimeType");e.wasNull()&&(w=w+1|0);var k=e.getString_61zpoe$("remarks");e.wasNull()&&(w=w+1|0);var j=e.getBoolean_61zpoe$("mobileOptimized");e.wasNull()&&(w=w+1|0);var G=e.getInt_61zpoe$("cntNumEntries");e.wasNull()&&(w=w+1|0);var q=12===w,F=0,B=e.getLong_61zpoe$("cepcjUid");e.wasNull()&&(F=F+1|0);var W=e.getLong_61zpoe$("cepcjLocalChangeSeqNum");e.wasNull()&&(F=F+1|0);var H=e.getLong_61zpoe$("cepcjMasterChangeSeqNum");e.wasNull()&&(F=F+1|0);var V=e.getInt_61zpoe$("cepcjLastChangedBy");e.wasNull()&&(F=F+1|0);var K=e.getLong_61zpoe$("cepcjLct");e.wasNull()&&(F=F+1|0);var X=e.getLong_61zpoe$("cepcjParentContentEntryUid");e.wasNull()&&(F=F+1|0);var J=e.getLong_61zpoe$("cepcjChildContentEntryUid");e.wasNull()&&(F=F+1|0);var Y=e.getInt_61zpoe$("childIndex");e.wasNull()&&(F=F+1|0);var Q=8===F,Z=0,tt=e.getInt_61zpoe$("resultScore");e.wasNull()&&(Z=Z+1|0);var et=e.getInt_61zpoe$("resultMax");e.wasNull()&&(Z=Z+1|0);var nt=e.getFloat_61zpoe$("resultScaled");e.wasNull()&&(Z=Z+1|0);var it=e.getInt_61zpoe$("resultWeight");e.wasNull()&&(Z=Z+1|0);var ot=e.getBoolean_61zpoe$("contentComplete");e.wasNull()&&(Z=Z+1|0);var rt=e.getInt_61zpoe$("progress");e.wasNull()&&(Z=Z+1|0);var st=e.getByte_61zpoe$("success");e.wasNull()&&(Z=Z+1|0);var at=e.getInt_61zpoe$("penalty");e.wasNull()&&(Z=Z+1|0);var ct=e.getInt_61zpoe$("totalContent");e.wasNull()&&(Z=Z+1|0);var lt=e.getInt_61zpoe$("totalCompletedContent");e.wasNull()&&(Z=Z+1|0);var ut=10===Z,ht=new znt;if(ht.assignmentContentWeight=n,ht.contentEntryUid=i,ht.title=o,ht.description=r,ht.entryId=s,ht.author=a,ht.publisher=c,ht.licenseType=l,ht.licenseName=u,ht.licenseUrl=h,ht.sourceUrl=d,ht.thumbnailUrl=p,ht.lastModified=_,ht.primaryLanguageUid=m,ht.languageVariantUid=f,ht.contentFlags=g,ht.leaf=$,ht.publik=E,ht.ceInactive=y,ht.completionCriteria=b,ht.minScore=S,ht.contentTypeFlag=v,ht.contentOwner=C,ht.contentEntryLocalChangeSeqNum=N,ht.contentEntryMasterChangeSeqNum=T,ht.contentEntryLastChangedBy=L,ht.contentEntryLct=z,!q){var dt=new J9;dt.containerUid=O,dt.cntLocalCsn=R,dt.cntMasterCsn=A,dt.cntLastModBy=x,dt.cntLct=I,dt.fileSize=U,dt.containerContentEntryUid=D,dt.cntLastModified=P,dt.mimeType=M,dt.remarks=k,dt.mobileOptimized=j,dt.cntNumEntries=G,ht.mostRecentContainer=dt}if(!Q){var pt=new eet;pt.cepcjUid=B,pt.cepcjLocalChangeSeqNum=W,pt.cepcjMasterChangeSeqNum=H,pt.cepcjLastChangedBy=V,pt.cepcjLct=K,pt.cepcjParentContentEntryUid=X,pt.cepcjChildContentEntryUid=J,pt.childIndex=Y,ht.contentEntryParentChildJoin=pt}if(!ut){var _t=new qet;_t.resultScore=tt,_t.resultMax=et,_t.resultScaled=nt,_t.resultWeight=it,_t.contentComplete=ot,_t.progress=rt,_t.success=st,_t.penalty=at,_t.totalContent=ct,_t.totalCompletedContent=lt,ht.scoreProgress=_t}return ht}));var e}function Mr(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$closure$personUid=t,this.local$closure$clazzAssignmentUid=e,this.local$closure$_limit=n,this.local$closure$_offset=i,this.local$_stmt=o}function kr(t,e,n,i){return function(o,r,s){var a=new Mr(t,e,n,i,o,r);return s?a:a.doResume(null)}}function jr(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$this$ClazzAssignmentContentJoinDao_JdbcKt=t,this.local$closure$personUid=e,this.local$closure$clazzAssignmentUid=n,this.local$closure$_limit=i,this.local$closure$_offset=o}function Gr(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function qr(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$personUid=t,this.local$closure$clazzAssignmentUid=e,this.local$_stmt=n}function Fr(t,e){return function(n,i,o){var r=new qr(t,e,n,i);return o?r:r.doResume(null)}}function Br(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$this$ClazzAssignmentContentJoinDao_JdbcKt=t,this.local$closure$personUid=e,this.local$closure$clazzAssignmentUid=n}function Wr(t){pt.call(this,t)}function Hr(t,e){Nr.call(this),this._db_0=t,this._dao_0=e}function Vr(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function Kr(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function Xr(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Jr(t,e,n,i,o,r){Nr.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function Yr(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function Qr(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function Zr(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$clazzAssignmentUid=e,this.local$personUid=n}function ts(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function es(){}function ns(t){es.call(this),this._db=t,this._insertAdapterClazzAssignment_=new Xs(this._db)}function is(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function os(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function rs(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$clazzAssignment=t,this.local$_stmt=e}function ss(t){return function(e,n,i){var o=new rs(t,e,n);return i?o:o.doResume(null)}}function as(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$clazzAssignment=e}function cs(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$entityList=t,this.local$tmp$=void 0,this.local$_stmt=e}function ls(t){return function(e,n,i){var o=new cs(t,e,n);return i?o:o.doResume(null)}}function us(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function hs(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function ds(t){return function(e,n,i){var o=new hs(t,e,n);return i?o:o.doResume(null)}}function ps(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function _s(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function ms(t,e,n){var i=new _s(t,e);return n?i:i.doResume(null)}function fs(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function gs(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("caUid"),i=e.getString_61zpoe$("caTitle"),o=e.getString_61zpoe$("caDescription"),r=e.getLong_61zpoe$("caGroupUid"),s=e.getBoolean_61zpoe$("caActive"),a=e.getBoolean_61zpoe$("caClassCommentEnabled"),c=e.getBoolean_61zpoe$("caPrivateCommentsEnabled"),l=e.getInt_61zpoe$("caCompletionCriteria"),u=e.getBoolean_61zpoe$("caRequireFileSubmission"),h=e.getInt_61zpoe$("caFileType"),d=e.getInt_61zpoe$("caSizeLimit"),p=e.getInt_61zpoe$("caNumberOfFiles"),_=e.getInt_61zpoe$("caSubmissionPolicy"),m=e.getInt_61zpoe$("caMarkingType"),f=e.getBoolean_61zpoe$("caRequireTextSubmission"),g=e.getInt_61zpoe$("caTextLimitType"),$=e.getInt_61zpoe$("caTextLimit"),E=e.getLong_61zpoe$("caXObjectUid"),y=e.getLong_61zpoe$("caClazzUid"),b=e.getLong_61zpoe$("caLocalChangeSeqNum"),S=e.getLong_61zpoe$("caMasterChangeSeqNum"),v=e.getInt_61zpoe$("caLastChangedBy"),C=e.getLong_61zpoe$("caLct"),N=new _5;return N.caUid=n,N.caTitle=i,N.caDescription=o,N.caGroupUid=r,N.caActive=s,N.caClassCommentEnabled=a,N.caPrivateCommentsEnabled=c,N.caCompletionCriteria=l,N.caRequireFileSubmission=u,N.caFileType=h,N.caSizeLimit=d,N.caNumberOfFiles=p,N.caSubmissionPolicy=_,N.caMarkingType=m,N.caRequireTextSubmission=f,N.caTextLimitType=g,N.caTextLimit=$,N.caXObjectUid=E,N.caClazzUid=y,N.caLocalChangeSeqNum=b,N.caMasterChangeSeqNum=S,N.caLastChangedBy=v,N.caLct=C,N}));var e}function $s(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$_stmt=e}function Es(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$active=t,this.local$closure$changeTime=e,this.local$closure$cbUid=n,this.local$_stmt=i}function ys(t,e,n){return function(i,o,r){var s=new Es(t,e,n,i,o);return r?s:s.doResume(null)}}function bs(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$cbUid=e,this.local$active=n,this.local$changeTime=i}function Ss(t){return lt(t,null,(e=t,function(t){var n=e.getInt_61zpoe$("notSubmittedStudents"),i=e.getInt_61zpoe$("submittedStudents"),o=e.getInt_61zpoe$("totalStudents"),r=e.getInt_61zpoe$("markedStudents"),s=e.getBoolean_61zpoe$("hasMetricsPermission"),a=new z4;return a.notSubmittedStudents=n,a.submittedStudents=i,a.totalStudents=o,a.markedStudents=r,a.hasMetricsPermission=s,a}));var e}function vs(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$assignmentUid=t,this.local$closure$clazzUid=e,this.local$closure$group=n,this.local$_stmt=i}function Cs(t,e,n){return function(i,o,r){var s=new vs(t,e,n,i,o);return r?s:s.doResume(null)}}function Ns(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$this$ClazzAssignmentDao_JdbcKt=t,this.local$closure$assignmentUid=e,this.local$closure$clazzUid=n,this.local$closure$group=i}function Ts(t,e,n,i,o){this.this$ClazzAssignmentDao_JdbcKt=t,this.closure$assignmentUid=e,this.closure$clazzUid=n,this.closure$group=i,this.closure$searchText=o,gt.call(this)}function Ls(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("submitterUid"),i=e.getString_61zpoe$("name"),o=e.getString_61zpoe$("latestPrivateComment"),r=e.getInt_61zpoe$("fileSubmissionStatus"),s=e.getBoolean_61zpoe$("isGroupAssignment"),a=new nlt;return a.submitterUid=n,a.name=i,a.latestPrivateComment=o,a.fileSubmissionStatus=r,a.isGroupAssignment=s,a}));var e}function zs(t,e,n,i,o,r,s,a){N.call(this,a),this.exceptionState_0=1,this.local$closure$assignmentUid=t,this.local$closure$clazzUid=e,this.local$closure$group=n,this.local$closure$searchText=i,this.local$closure$_limit=o,this.local$closure$_offset=r,this.local$_stmt=s}function ws(t,e,n,i,o,r){return function(s,a,c){var l=new zs(t,e,n,i,o,r,s,a);return c?l:l.doResume(null)}}function Os(t,e,n,i,o,r,s,a){N.call(this,a),this.exceptionState_0=1,this.local$this$ClazzAssignmentDao_JdbcKt=t,this.local$closure$assignmentUid=e,this.local$closure$clazzUid=n,this.local$closure$group=i,this.local$closure$searchText=o,this.local$closure$_limit=r,this.local$closure$_offset=s}function Rs(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function As(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$closure$assignmentUid=t,this.local$closure$clazzUid=e,this.local$closure$group=n,this.local$closure$searchText=i,this.local$_stmt=o}function xs(t,e,n,i){return function(o,r,s){var a=new As(t,e,n,i,o,r);return s?a:a.doResume(null)}}function Is(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$this$ClazzAssignmentDao_JdbcKt=t,this.local$closure$assignmentUid=e,this.local$closure$clazzUid=n,this.local$closure$group=i,this.local$closure$searchText=o}function Us(t){return lt(t,X,(e=t,function(t){return e.getLong_za3lpa$(1)}));var e}function Ds(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$personUid=t,this.local$closure$assignmentUid=e,this.local$_stmt=n}function Ps(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("caUid"),i=e.getString_61zpoe$("caTitle"),o=e.getString_61zpoe$("caDescription"),r=e.getLong_61zpoe$("caGroupUid"),s=e.getBoolean_61zpoe$("caActive"),a=e.getBoolean_61zpoe$("caClassCommentEnabled"),c=e.getBoolean_61zpoe$("caPrivateCommentsEnabled"),l=e.getInt_61zpoe$("caCompletionCriteria"),u=e.getBoolean_61zpoe$("caRequireFileSubmission"),h=e.getInt_61zpoe$("caFileType"),d=e.getInt_61zpoe$("caSizeLimit"),p=e.getInt_61zpoe$("caNumberOfFiles"),_=e.getInt_61zpoe$("caSubmissionPolicy"),m=e.getInt_61zpoe$("caMarkingType"),f=e.getBoolean_61zpoe$("caRequireTextSubmission"),g=e.getInt_61zpoe$("caTextLimitType"),$=e.getInt_61zpoe$("caTextLimit"),E=e.getLong_61zpoe$("caXObjectUid"),y=e.getLong_61zpoe$("caClazzUid"),b=e.getLong_61zpoe$("caLocalChangeSeqNum"),S=e.getLong_61zpoe$("caMasterChangeSeqNum"),v=e.getInt_61zpoe$("caLastChangedBy"),C=e.getLong_61zpoe$("caLct"),N=new _5;return N.caUid=n,N.caTitle=i,N.caDescription=o,N.caGroupUid=r,N.caActive=s,N.caClassCommentEnabled=a,N.caPrivateCommentsEnabled=c,N.caCompletionCriteria=l,N.caRequireFileSubmission=u,N.caFileType=h,N.caSizeLimit=d,N.caNumberOfFiles=p,N.caSubmissionPolicy=_,N.caMarkingType=m,N.caRequireTextSubmission=f,N.caTextLimitType=g,N.caTextLimit=$,N.caXObjectUid=E,N.caClazzUid=y,N.caLocalChangeSeqNum=b,N.caMasterChangeSeqNum=S,N.caLastChangedBy=v,N.caLct=C,N}));var e}function Ms(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function ks(t){return lt(t,X,(e=t,function(t){return e.getLong_za3lpa$(1)}));var e}function js(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function Gs(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("caUid"),i=e.getString_61zpoe$("caTitle"),o=e.getString_61zpoe$("caDescription"),r=e.getLong_61zpoe$("caGroupUid"),s=e.getBoolean_61zpoe$("caActive"),a=e.getBoolean_61zpoe$("caClassCommentEnabled"),c=e.getBoolean_61zpoe$("caPrivateCommentsEnabled"),l=e.getInt_61zpoe$("caCompletionCriteria"),u=e.getBoolean_61zpoe$("caRequireFileSubmission"),h=e.getInt_61zpoe$("caFileType"),d=e.getInt_61zpoe$("caSizeLimit"),p=e.getInt_61zpoe$("caNumberOfFiles"),_=e.getInt_61zpoe$("caSubmissionPolicy"),m=e.getInt_61zpoe$("caMarkingType"),f=e.getBoolean_61zpoe$("caRequireTextSubmission"),g=e.getInt_61zpoe$("caTextLimitType"),$=e.getInt_61zpoe$("caTextLimit"),E=e.getLong_61zpoe$("caXObjectUid"),y=e.getLong_61zpoe$("caClazzUid"),b=e.getLong_61zpoe$("caLocalChangeSeqNum"),S=e.getLong_61zpoe$("caMasterChangeSeqNum"),v=e.getInt_61zpoe$("caLastChangedBy"),C=e.getLong_61zpoe$("caLct"),N=0,T=e.getLong_61zpoe$("cbUid");e.wasNull()&&(N=N+1|0);var L=e.getInt_61zpoe$("cbType");e.wasNull()&&(N=N+1|0);var z=e.getInt_61zpoe$("cbIndentLevel");e.wasNull()&&(N=N+1|0);var w=e.getLong_61zpoe$("cbModuleParentBlockUid");e.wasNull()&&(N=N+1|0);var O=e.getString_61zpoe$("cbTitle");e.wasNull()&&(N=N+1|0);var R=e.getString_61zpoe$("cbDescription");e.wasNull()&&(N=N+1|0);var A=e.getInt_61zpoe$("cbCompletionCriteria");e.wasNull()&&(N=N+1|0);var x=e.getLong_61zpoe$("cbHideUntilDate");e.wasNull()&&(N=N+1|0);var I=e.getLong_61zpoe$("cbDeadlineDate");e.wasNull()&&(N=N+1|0);var U=e.getInt_61zpoe$("cbLateSubmissionPenalty");e.wasNull()&&(N=N+1|0);var D=e.getLong_61zpoe$("cbGracePeriodDate");e.wasNull()&&(N=N+1|0);var P=e.getInt_61zpoe$("cbMaxPoints");e.wasNull()&&(N=N+1|0);var M=e.getInt_61zpoe$("cbMinPoints");e.wasNull()&&(N=N+1|0);var k=e.getInt_61zpoe$("cbIndex");e.wasNull()&&(N=N+1|0);var j=e.getLong_61zpoe$("cbClazzUid");e.wasNull()&&(N=N+1|0);var G=e.getBoolean_61zpoe$("cbActive");e.wasNull()&&(N=N+1|0);var q=e.getBoolean_61zpoe$("cbHidden");e.wasNull()&&(N=N+1|0);var F=e.getLong_61zpoe$("cbEntityUid");e.wasNull()&&(N=N+1|0);var B=e.getLong_61zpoe$("cbLct");e.wasNull()&&(N=N+1|0);var W=19===N,H=new S5;if(H.caUid=n,H.caTitle=i,H.caDescription=o,H.caGroupUid=r,H.caActive=s,H.caClassCommentEnabled=a,H.caPrivateCommentsEnabled=c,H.caCompletionCriteria=l,H.caRequireFileSubmission=u,H.caFileType=h,H.caSizeLimit=d,H.caNumberOfFiles=p,H.caSubmissionPolicy=_,H.caMarkingType=m,H.caRequireTextSubmission=f,H.caTextLimitType=g,H.caTextLimit=$,H.caXObjectUid=E,H.caClazzUid=y,H.caLocalChangeSeqNum=b,H.caMasterChangeSeqNum=S,H.caLastChangedBy=v,H.caLct=C,!W){var V=new Lit;V.cbUid=T,V.cbType=L,V.cbIndentLevel=z,V.cbModuleParentBlockUid=w,V.cbTitle=O,V.cbDescription=R,V.cbCompletionCriteria=A,V.cbHideUntilDate=x,V.cbDeadlineDate=I,V.cbLateSubmissionPenalty=U,V.cbGracePeriodDate=D,V.cbMaxPoints=P,V.cbMinPoints=M,V.cbIndex=k,V.cbClazzUid=j,V.cbActive=G,V.cbHidden=q,V.cbEntityUid=F,V.cbLct=B,H.block=V}return H}));var e}function qs(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function Fs(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("caUid"),i=e.getString_61zpoe$("caTitle"),o=e.getString_61zpoe$("caDescription"),r=e.getLong_61zpoe$("caGroupUid"),s=e.getBoolean_61zpoe$("caActive"),a=e.getBoolean_61zpoe$("caClassCommentEnabled"),c=e.getBoolean_61zpoe$("caPrivateCommentsEnabled"),l=e.getInt_61zpoe$("caCompletionCriteria"),u=e.getBoolean_61zpoe$("caRequireFileSubmission"),h=e.getInt_61zpoe$("caFileType"),d=e.getInt_61zpoe$("caSizeLimit"),p=e.getInt_61zpoe$("caNumberOfFiles"),_=e.getInt_61zpoe$("caSubmissionPolicy"),m=e.getInt_61zpoe$("caMarkingType"),f=e.getBoolean_61zpoe$("caRequireTextSubmission"),g=e.getInt_61zpoe$("caTextLimitType"),$=e.getInt_61zpoe$("caTextLimit"),E=e.getLong_61zpoe$("caXObjectUid"),y=e.getLong_61zpoe$("caClazzUid"),b=e.getLong_61zpoe$("caLocalChangeSeqNum"),S=e.getLong_61zpoe$("caMasterChangeSeqNum"),v=e.getInt_61zpoe$("caLastChangedBy"),C=e.getLong_61zpoe$("caLct"),N=new _5;return N.caUid=n,N.caTitle=i,N.caDescription=o,N.caGroupUid=r,N.caActive=s,N.caClassCommentEnabled=a,N.caPrivateCommentsEnabled=c,N.caCompletionCriteria=l,N.caRequireFileSubmission=u,N.caFileType=h,N.caSizeLimit=d,N.caNumberOfFiles=p,N.caSubmissionPolicy=_,N.caMarkingType=m,N.caRequireTextSubmission=f,N.caTextLimitType=g,N.caTextLimit=$,N.caXObjectUid=E,N.caClazzUid=y,N.caLocalChangeSeqNum=b,N.caMasterChangeSeqNum=S,N.caLastChangedBy=v,N.caLct=C,N}));var e}function Bs(t){return ut(t.executeQuery(),Fs)}function Ws(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("caUid"),i=e.getString_61zpoe$("caTitle"),o=e.getString_61zpoe$("caDescription"),r=e.getLong_61zpoe$("caGroupUid"),s=e.getBoolean_61zpoe$("caActive"),a=e.getBoolean_61zpoe$("caClassCommentEnabled"),c=e.getBoolean_61zpoe$("caPrivateCommentsEnabled"),l=e.getInt_61zpoe$("caCompletionCriteria"),u=e.getBoolean_61zpoe$("caRequireFileSubmission"),h=e.getInt_61zpoe$("caFileType"),d=e.getInt_61zpoe$("caSizeLimit"),p=e.getInt_61zpoe$("caNumberOfFiles"),_=e.getInt_61zpoe$("caSubmissionPolicy"),m=e.getInt_61zpoe$("caMarkingType"),f=e.getBoolean_61zpoe$("caRequireTextSubmission"),g=e.getInt_61zpoe$("caTextLimitType"),$=e.getInt_61zpoe$("caTextLimit"),E=e.getLong_61zpoe$("caXObjectUid"),y=e.getLong_61zpoe$("caClazzUid"),b=e.getLong_61zpoe$("caLocalChangeSeqNum"),S=e.getLong_61zpoe$("caMasterChangeSeqNum"),v=e.getInt_61zpoe$("caLastChangedBy"),C=e.getLong_61zpoe$("caLct"),N=new _5;return N.caUid=n,N.caTitle=i,N.caDescription=o,N.caGroupUid=r,N.caActive=s,N.caClassCommentEnabled=a,N.caPrivateCommentsEnabled=c,N.caCompletionCriteria=l,N.caRequireFileSubmission=u,N.caFileType=h,N.caSizeLimit=d,N.caNumberOfFiles=p,N.caSubmissionPolicy=_,N.caMarkingType=m,N.caRequireTextSubmission=f,N.caTextLimitType=g,N.caTextLimit=$,N.caXObjectUid=E,N.caClazzUid=y,N.caLocalChangeSeqNum=b,N.caMasterChangeSeqNum=S,N.caLastChangedBy=v,N.caLct=C,N}));var e}function Hs(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function Vs(t){return function(e,n,i){var o=new Hs(t,e,n);return i?o:o.doResume(null)}}function Ks(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$ClazzAssignmentDao_JdbcKt=t,this.local$closure$uid=e}function Xs(t){pt.call(this,t)}function Js(t,e){es.call(this),this._db_0=t,this._dao_0=e}function Ys(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function Qs(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function Zs(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$cbUid=e,this.local$active=n,this.local$changeTime=i}function ta(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$clazzAssignment=e}function ea(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function na(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_pkManager=void 0,this.local$_generatedPks=void 0,this.local$$receiver=void 0,this.local$element=void 0,this.local$entityList=e}function ia(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function oa(t,e,n,i,o,r){es.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function ra(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function sa(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function aa(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$clazzUid=e}function ca(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$cbUid=e,this.local$active=n,this.local$changeTime=i}function la(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$assignmentUid=e,this.local$personUid=n}function ua(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$clazzAssignment=e}function ha(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$uid=e}function da(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$uid=e}function pa(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$uid=e}function _a(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function ma(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function fa(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function ga(){}function $a(t){ga.call(this),this._db=t,this._insertAdapterClazzAssignmentRollUp_=new Aa(this._db)}function Ea(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function ya(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$closure$assignmentUid=e,this.local$closure$personUid=n,this.local$_stmt=i}function ba(t,e,n){return function(i,o,r){var s=new ya(t,e,n,i,o);return r?s:s.doResume(null)}}function Sa(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$clazzUid=e,this.local$assignmentUid=n,this.local$personUid=i}function va(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$caUid=t,this.local$_stmt=e}function Ca(t){return function(e,n,i){var o=new va(t,e,n);return i?o:o.doResume(null)}}function Na(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$caUid=e}function Ta(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$changedAssignmentUid=t,this.local$_stmt=e}function La(t){return function(e,n,i){var o=new Ta(t,e,n);return i?o:o.doResume(null)}}function za(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$changedAssignmentUid=e}function wa(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$changedAssignmentUid=t,this.local$_stmt=e}function Oa(t){return function(e,n,i){var o=new wa(t,e,n);return i?o:o.doResume(null)}}function Ra(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$changedAssignmentUid=e}function Aa(t){pt.call(this,t)}function xa(t,e,n,i,o,r){ga.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function Ia(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$clazzUid=e,this.local$assignmentUid=n,this.local$personUid=i}function Ua(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$caUid=e}function Da(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$changedAssignmentUid=e}function Pa(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$changedAssignmentUid=e}function Ma(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function ka(){}function ja(t){ka.call(this),this._db=t,this._insertAdapterClazzContentJoin_=new Za(this._db)}function Ga(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function qa(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function Fa(t){return function(e,n,i){var o=new qa(t,e,n);return i?o:o.doResume(null)}}function Ba(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function Wa(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function Ha(t,e,n){var i=new Wa(t,e);return n?i:i.doResume(null)}function Va(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function Ka(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$toggleVisibility=t,this.local$closure$changedTime=e,this.local$closure$selectedItem=n,this.local$_stmt=i}function Xa(t,e,n){return function(i,o,r){var s=new Ka(t,e,n,i,o);return r?s:s.doResume(null)}}function Ja(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$toggleVisibility=e,this.local$selectedItem=n,this.local$changedTime=i}function Ya(t){return mt(t,(e=t,function(t){return e.getLong_za3lpa$(1)}));var e}function Qa(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$_stmt=e}function Za(t){pt.call(this,t)}function tc(t,e){ka.call(this),this._db_0=t,this._dao_0=e}function ec(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function nc(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function ic(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$toggleVisibility=e,this.local$selectedItem=n,this.local$changedTime=i}function oc(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function rc(t,e,n,i,o,r){ka.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function sc(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function ac(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function cc(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$toggleVisibility=e,this.local$selectedItem=n,this.local$changedTime=i}function lc(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$clazzUid=e}function uc(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function hc(){}function dc(t){hc.call(this),this._db=t,this._insertAdapterClazz_=new Nl(this._db)}function pc(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function _c(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$entity=t,this.local$closure$_result=e,this.local$tmp$=void 0,this.local$_stmt=n}function mc(t,e){return function(n,i,o){var r=new _c(t,e,n,i);return o?r:r.doResume(null)}}function fc(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_result=void 0,this.local$entity=e}function gc(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function $c(t){return function(e,n,i){var o=new gc(t,e,n);return i?o:o.doResume(null)}}function Ec(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function yc(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function bc(t,e,n){var i=new yc(t,e);return n?i:i.doResume(null)}function Sc(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function vc(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("clazzUid"),i=e.getString_61zpoe$("clazzName"),o=e.getString_61zpoe$("clazzDesc"),r=e.getFloat_61zpoe$("attendanceAverage"),s=e.getLong_61zpoe$("clazzHolidayUMCalendarUid"),a=e.getLong_61zpoe$("clazzScheuleUMCalendarUid"),c=e.getBoolean_61zpoe$("isClazzActive"),l=e.getLong_61zpoe$("clazzLocationUid"),u=e.getLong_61zpoe$("clazzStartTime"),h=e.getLong_61zpoe$("clazzEndTime"),d=e.getLong_61zpoe$("clazzFeatures"),p=e.getLong_61zpoe$("clazzSchoolUid"),_=e.getInt_61zpoe$("clazzEnrolmentPolicy"),m=e.getLong_61zpoe$("clazzTerminologyUid"),f=e.getLong_61zpoe$("clazzMasterChangeSeqNum"),g=e.getLong_61zpoe$("clazzLocalChangeSeqNum"),$=e.getInt_61zpoe$("clazzLastChangedBy"),E=e.getLong_61zpoe$("clazzLct"),y=e.getString_61zpoe$("clazzTimeZone"),b=e.getLong_61zpoe$("clazzStudentsPersonGroupUid"),S=e.getLong_61zpoe$("clazzTeachersPersonGroupUid"),v=e.getLong_61zpoe$("clazzPendingStudentsPersonGroupUid"),C=e.getLong_61zpoe$("clazzParentsPersonGroupUid"),N=e.getString_61zpoe$("clazzCode"),T=new s5;return T.clazzUid=n,T.clazzName=i,T.clazzDesc=o,T.attendanceAverage=r,T.clazzHolidayUMCalendarUid=s,T.clazzScheuleUMCalendarUid=a,T.isClazzActive=c,T.clazzLocationUid=l,T.clazzStartTime=u,T.clazzEndTime=h,T.clazzFeatures=d,T.clazzSchoolUid=p,T.clazzEnrolmentPolicy=_,T.clazzTerminologyUid=m,T.clazzMasterChangeSeqNum=f,T.clazzLocalChangeSeqNum=g,T.clazzLastChangedBy=$,T.clazzLct=E,T.clazzTimeZone=y,T.clazzStudentsPersonGroupUid=b,T.clazzTeachersPersonGroupUid=S,T.clazzPendingStudentsPersonGroupUid=v,T.clazzParentsPersonGroupUid=C,T.clazzCode=N,T}));var e}function Cc(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("clazzUid"),i=e.getString_61zpoe$("clazzName"),o=e.getString_61zpoe$("clazzDesc"),r=e.getFloat_61zpoe$("attendanceAverage"),s=e.getLong_61zpoe$("clazzHolidayUMCalendarUid"),a=e.getLong_61zpoe$("clazzScheuleUMCalendarUid"),c=e.getBoolean_61zpoe$("isClazzActive"),l=e.getLong_61zpoe$("clazzLocationUid"),u=e.getLong_61zpoe$("clazzStartTime"),h=e.getLong_61zpoe$("clazzEndTime"),d=e.getLong_61zpoe$("clazzFeatures"),p=e.getLong_61zpoe$("clazzSchoolUid"),_=e.getInt_61zpoe$("clazzEnrolmentPolicy"),m=e.getLong_61zpoe$("clazzTerminologyUid"),f=e.getLong_61zpoe$("clazzMasterChangeSeqNum"),g=e.getLong_61zpoe$("clazzLocalChangeSeqNum"),$=e.getInt_61zpoe$("clazzLastChangedBy"),E=e.getLong_61zpoe$("clazzLct"),y=e.getString_61zpoe$("clazzTimeZone"),b=e.getLong_61zpoe$("clazzStudentsPersonGroupUid"),S=e.getLong_61zpoe$("clazzTeachersPersonGroupUid"),v=e.getLong_61zpoe$("clazzPendingStudentsPersonGroupUid"),C=e.getLong_61zpoe$("clazzParentsPersonGroupUid"),N=e.getString_61zpoe$("clazzCode"),T=new s5;return T.clazzUid=n,T.clazzName=i,T.clazzDesc=o,T.attendanceAverage=r,T.clazzHolidayUMCalendarUid=s,T.clazzScheuleUMCalendarUid=a,T.isClazzActive=c,T.clazzLocationUid=l,T.clazzStartTime=u,T.clazzEndTime=h,T.clazzFeatures=d,T.clazzSchoolUid=p,T.clazzEnrolmentPolicy=_,T.clazzTerminologyUid=m,T.clazzMasterChangeSeqNum=f,T.clazzLocalChangeSeqNum=g,T.clazzLastChangedBy=$,T.clazzLct=E,T.clazzTimeZone=y,T.clazzStudentsPersonGroupUid=b,T.clazzTeachersPersonGroupUid=S,T.clazzPendingStudentsPersonGroupUid=v,T.clazzParentsPersonGroupUid=C,T.clazzCode=N,T}));var e}function Nc(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function Tc(t){return function(e,n,i){var o=new Nc(t,e,n);return i?o:o.doResume(null)}}function Lc(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$ClazzDao_JdbcKt=t,this.local$closure$uid=e}function zc(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("clazzUid"),i=e.getString_61zpoe$("clazzName"),o=e.getString_61zpoe$("clazzDesc"),r=e.getFloat_61zpoe$("attendanceAverage"),s=e.getLong_61zpoe$("clazzHolidayUMCalendarUid"),a=e.getLong_61zpoe$("clazzScheuleUMCalendarUid"),c=e.getBoolean_61zpoe$("isClazzActive"),l=e.getLong_61zpoe$("clazzLocationUid"),u=e.getLong_61zpoe$("clazzStartTime"),h=e.getLong_61zpoe$("clazzEndTime"),d=e.getLong_61zpoe$("clazzFeatures"),p=e.getLong_61zpoe$("clazzSchoolUid"),_=e.getInt_61zpoe$("clazzEnrolmentPolicy"),m=e.getLong_61zpoe$("clazzTerminologyUid"),f=e.getLong_61zpoe$("clazzMasterChangeSeqNum"),g=e.getLong_61zpoe$("clazzLocalChangeSeqNum"),$=e.getInt_61zpoe$("clazzLastChangedBy"),E=e.getLong_61zpoe$("clazzLct"),y=e.getString_61zpoe$("clazzTimeZone"),b=e.getLong_61zpoe$("clazzStudentsPersonGroupUid"),S=e.getLong_61zpoe$("clazzTeachersPersonGroupUid"),v=e.getLong_61zpoe$("clazzPendingStudentsPersonGroupUid"),C=e.getLong_61zpoe$("clazzParentsPersonGroupUid"),N=e.getString_61zpoe$("clazzCode"),T=new s5;return T.clazzUid=n,T.clazzName=i,T.clazzDesc=o,T.attendanceAverage=r,T.clazzHolidayUMCalendarUid=s,T.clazzScheuleUMCalendarUid=a,T.isClazzActive=c,T.clazzLocationUid=l,T.clazzStartTime=u,T.clazzEndTime=h,T.clazzFeatures=d,T.clazzSchoolUid=p,T.clazzEnrolmentPolicy=_,T.clazzTerminologyUid=m,T.clazzMasterChangeSeqNum=f,T.clazzLocalChangeSeqNum=g,T.clazzLastChangedBy=$,T.clazzLct=E,T.clazzTimeZone=y,T.clazzStudentsPersonGroupUid=b,T.clazzTeachersPersonGroupUid=S,T.clazzPendingStudentsPersonGroupUid=v,T.clazzParentsPersonGroupUid=C,T.clazzCode=N,T}));var e}function wc(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$code=t,this.local$_stmt=e}function Oc(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("clazzUid"),i=e.getString_61zpoe$("clazzName"),o=e.getString_61zpoe$("clazzDesc"),r=e.getFloat_61zpoe$("attendanceAverage"),s=e.getLong_61zpoe$("clazzHolidayUMCalendarUid"),a=e.getLong_61zpoe$("clazzScheuleUMCalendarUid"),c=e.getBoolean_61zpoe$("isClazzActive"),l=e.getLong_61zpoe$("clazzLocationUid"),u=e.getLong_61zpoe$("clazzStartTime"),h=e.getLong_61zpoe$("clazzEndTime"),d=e.getLong_61zpoe$("clazzFeatures"),p=e.getLong_61zpoe$("clazzSchoolUid"),_=e.getInt_61zpoe$("clazzEnrolmentPolicy"),m=e.getLong_61zpoe$("clazzTerminologyUid"),f=e.getLong_61zpoe$("clazzMasterChangeSeqNum"),g=e.getLong_61zpoe$("clazzLocalChangeSeqNum"),$=e.getInt_61zpoe$("clazzLastChangedBy"),E=e.getLong_61zpoe$("clazzLct"),y=e.getString_61zpoe$("clazzTimeZone"),b=e.getLong_61zpoe$("clazzStudentsPersonGroupUid"),S=e.getLong_61zpoe$("clazzTeachersPersonGroupUid"),v=e.getLong_61zpoe$("clazzPendingStudentsPersonGroupUid"),C=e.getLong_61zpoe$("clazzParentsPersonGroupUid"),N=e.getString_61zpoe$("clazzCode"),T=new s5;return T.clazzUid=n,T.clazzName=i,T.clazzDesc=o,T.attendanceAverage=r,T.clazzHolidayUMCalendarUid=s,T.clazzScheuleUMCalendarUid=a,T.isClazzActive=c,T.clazzLocationUid=l,T.clazzStartTime=u,T.clazzEndTime=h,T.clazzFeatures=d,T.clazzSchoolUid=p,T.clazzEnrolmentPolicy=_,T.clazzTerminologyUid=m,T.clazzMasterChangeSeqNum=f,T.clazzLocalChangeSeqNum=g,T.clazzLastChangedBy=$,T.clazzLct=E,T.clazzTimeZone=y,T.clazzStudentsPersonGroupUid=b,T.clazzTeachersPersonGroupUid=S,T.clazzPendingStudentsPersonGroupUid=v,T.clazzParentsPersonGroupUid=C,T.clazzCode=N,T}));var e}function Rc(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$code=t,this.local$_stmt=e}function Ac(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("clazzUid"),i=e.getString_61zpoe$("clazzName"),o=e.getString_61zpoe$("clazzDesc"),r=e.getFloat_61zpoe$("attendanceAverage"),s=e.getLong_61zpoe$("clazzHolidayUMCalendarUid"),a=e.getLong_61zpoe$("clazzScheuleUMCalendarUid"),c=e.getBoolean_61zpoe$("isClazzActive"),l=e.getLong_61zpoe$("clazzLocationUid"),u=e.getLong_61zpoe$("clazzStartTime"),h=e.getLong_61zpoe$("clazzEndTime"),d=e.getLong_61zpoe$("clazzFeatures"),p=e.getLong_61zpoe$("clazzSchoolUid"),_=e.getInt_61zpoe$("clazzEnrolmentPolicy"),m=e.getLong_61zpoe$("clazzTerminologyUid"),f=e.getLong_61zpoe$("clazzMasterChangeSeqNum"),g=e.getLong_61zpoe$("clazzLocalChangeSeqNum"),$=e.getInt_61zpoe$("clazzLastChangedBy"),E=e.getLong_61zpoe$("clazzLct"),y=e.getString_61zpoe$("clazzTimeZone"),b=e.getLong_61zpoe$("clazzStudentsPersonGroupUid"),S=e.getLong_61zpoe$("clazzTeachersPersonGroupUid"),v=e.getLong_61zpoe$("clazzPendingStudentsPersonGroupUid"),C=e.getLong_61zpoe$("clazzParentsPersonGroupUid"),N=e.getString_61zpoe$("clazzCode"),T=new s5;return T.clazzUid=n,T.clazzName=i,T.clazzDesc=o,T.attendanceAverage=r,T.clazzHolidayUMCalendarUid=s,T.clazzScheuleUMCalendarUid=a,T.isClazzActive=c,T.clazzLocationUid=l,T.clazzStartTime=u,T.clazzEndTime=h,T.clazzFeatures=d,T.clazzSchoolUid=p,T.clazzEnrolmentPolicy=_,T.clazzTerminologyUid=m,T.clazzMasterChangeSeqNum=f,T.clazzLocalChangeSeqNum=g,T.clazzLastChangedBy=$,T.clazzLct=E,T.clazzTimeZone=y,T.clazzStudentsPersonGroupUid=b,T.clazzTeachersPersonGroupUid=S,T.clazzPendingStudentsPersonGroupUid=v,T.clazzParentsPersonGroupUid=C,T.clazzCode=N,T}));var e}function xc(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function Ic(t,e,n){var i=new xc(t,e);return n?i:i.doResume(null)}function Uc(t,e){N.call(this,e),this.exceptionState_0=1,this.local$this$ClazzDao_JdbcKt=t}function Dc(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("clazzUid"),i=e.getString_61zpoe$("clazzName"),o=e.getString_61zpoe$("clazzDesc"),r=e.getFloat_61zpoe$("attendanceAverage"),s=e.getLong_61zpoe$("clazzHolidayUMCalendarUid"),a=e.getLong_61zpoe$("clazzScheuleUMCalendarUid"),c=e.getBoolean_61zpoe$("isClazzActive"),l=e.getLong_61zpoe$("clazzLocationUid"),u=e.getLong_61zpoe$("clazzStartTime"),h=e.getLong_61zpoe$("clazzEndTime"),d=e.getLong_61zpoe$("clazzFeatures"),p=e.getLong_61zpoe$("clazzSchoolUid"),_=e.getInt_61zpoe$("clazzEnrolmentPolicy"),m=e.getLong_61zpoe$("clazzTerminologyUid"),f=e.getLong_61zpoe$("clazzMasterChangeSeqNum"),g=e.getLong_61zpoe$("clazzLocalChangeSeqNum"),$=e.getInt_61zpoe$("clazzLastChangedBy"),E=e.getLong_61zpoe$("clazzLct"),y=e.getString_61zpoe$("clazzTimeZone"),b=e.getLong_61zpoe$("clazzStudentsPersonGroupUid"),S=e.getLong_61zpoe$("clazzTeachersPersonGroupUid"),v=e.getLong_61zpoe$("clazzPendingStudentsPersonGroupUid"),C=e.getLong_61zpoe$("clazzParentsPersonGroupUid"),N=e.getString_61zpoe$("clazzCode"),T=new s5;return T.clazzUid=n,T.clazzName=i,T.clazzDesc=o,T.attendanceAverage=r,T.clazzHolidayUMCalendarUid=s,T.clazzScheuleUMCalendarUid=a,T.isClazzActive=c,T.clazzLocationUid=l,T.clazzStartTime=u,T.clazzEndTime=h,T.clazzFeatures=d,T.clazzSchoolUid=p,T.clazzEnrolmentPolicy=_,T.clazzTerminologyUid=m,T.clazzMasterChangeSeqNum=f,T.clazzLocalChangeSeqNum=g,T.clazzLastChangedBy=$,T.clazzLct=E,T.clazzTimeZone=y,T.clazzStudentsPersonGroupUid=b,T.clazzTeachersPersonGroupUid=S,T.clazzPendingStudentsPersonGroupUid=v,T.clazzParentsPersonGroupUid=C,T.clazzCode=N,T}));var e}function Pc(t){return ut(t.executeQuery(),Dc)}function Mc(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("clazzUid"),i=e.getString_61zpoe$("clazzName"),o=e.getString_61zpoe$("clazzDesc"),r=e.getFloat_61zpoe$("attendanceAverage"),s=e.getLong_61zpoe$("clazzHolidayUMCalendarUid"),a=e.getLong_61zpoe$("clazzScheuleUMCalendarUid"),c=e.getBoolean_61zpoe$("isClazzActive"),l=e.getLong_61zpoe$("clazzLocationUid"),u=e.getLong_61zpoe$("clazzStartTime"),h=e.getLong_61zpoe$("clazzEndTime"),d=e.getLong_61zpoe$("clazzFeatures"),p=e.getLong_61zpoe$("clazzSchoolUid"),_=e.getInt_61zpoe$("clazzEnrolmentPolicy"),m=e.getLong_61zpoe$("clazzTerminologyUid"),f=e.getLong_61zpoe$("clazzMasterChangeSeqNum"),g=e.getLong_61zpoe$("clazzLocalChangeSeqNum"),$=e.getInt_61zpoe$("clazzLastChangedBy"),E=e.getLong_61zpoe$("clazzLct"),y=e.getString_61zpoe$("clazzTimeZone"),b=e.getLong_61zpoe$("clazzStudentsPersonGroupUid"),S=e.getLong_61zpoe$("clazzTeachersPersonGroupUid"),v=e.getLong_61zpoe$("clazzPendingStudentsPersonGroupUid"),C=e.getLong_61zpoe$("clazzParentsPersonGroupUid"),N=e.getString_61zpoe$("clazzCode"),T=new s5;return T.clazzUid=n,T.clazzName=i,T.clazzDesc=o,T.attendanceAverage=r,T.clazzHolidayUMCalendarUid=s,T.clazzScheuleUMCalendarUid=a,T.isClazzActive=c,T.clazzLocationUid=l,T.clazzStartTime=u,T.clazzEndTime=h,T.clazzFeatures=d,T.clazzSchoolUid=p,T.clazzEnrolmentPolicy=_,T.clazzTerminologyUid=m,T.clazzMasterChangeSeqNum=f,T.clazzLocalChangeSeqNum=g,T.clazzLastChangedBy=$,T.clazzLct=E,T.clazzTimeZone=y,T.clazzStudentsPersonGroupUid=b,T.clazzTeachersPersonGroupUid=S,T.clazzPendingStudentsPersonGroupUid=v,T.clazzParentsPersonGroupUid=C,T.clazzCode=N,T}));var e}function kc(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function jc(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("clazzUid"),i=e.getString_61zpoe$("clazzName"),o=e.getString_61zpoe$("clazzDesc"),r=e.getFloat_61zpoe$("attendanceAverage"),s=e.getLong_61zpoe$("clazzHolidayUMCalendarUid"),a=e.getLong_61zpoe$("clazzScheuleUMCalendarUid"),c=e.getBoolean_61zpoe$("isClazzActive"),l=e.getLong_61zpoe$("clazzLocationUid"),u=e.getLong_61zpoe$("clazzStartTime"),h=e.getLong_61zpoe$("clazzEndTime"),d=e.getLong_61zpoe$("clazzFeatures"),p=e.getLong_61zpoe$("clazzSchoolUid"),_=e.getInt_61zpoe$("clazzEnrolmentPolicy"),m=e.getLong_61zpoe$("clazzTerminologyUid"),f=e.getLong_61zpoe$("clazzMasterChangeSeqNum"),g=e.getLong_61zpoe$("clazzLocalChangeSeqNum"),$=e.getInt_61zpoe$("clazzLastChangedBy"),E=e.getLong_61zpoe$("clazzLct"),y=e.getString_61zpoe$("clazzTimeZone"),b=e.getLong_61zpoe$("clazzStudentsPersonGroupUid"),S=e.getLong_61zpoe$("clazzTeachersPersonGroupUid"),v=e.getLong_61zpoe$("clazzPendingStudentsPersonGroupUid"),C=e.getLong_61zpoe$("clazzParentsPersonGroupUid"),N=e.getString_61zpoe$("clazzCode"),T=0,L=e.getLong_61zpoe$("umCalendarUid");e.wasNull()&&(T=T+1|0);var z=e.getString_61zpoe$("umCalendarName");e.wasNull()&&(T=T+1|0);var w=e.getInt_61zpoe$("umCalendarCategory");e.wasNull()&&(T=T+1|0);var O=e.getBoolean_61zpoe$("umCalendarActive");e.wasNull()&&(T=T+1|0);var R=e.getLong_61zpoe$("umCalendarMasterChangeSeqNum");e.wasNull()&&(T=T+1|0);var A=e.getLong_61zpoe$("umCalendarLocalChangeSeqNum");e.wasNull()&&(T=T+1|0);var x=e.getInt_61zpoe$("umCalendarLastChangedBy");e.wasNull()&&(T=T+1|0);var I=e.getLong_61zpoe$("umCalendarLct");e.wasNull()&&(T=T+1|0);var U=8===T,D=0,P=e.getLong_61zpoe$("schoolUid");e.wasNull()&&(D=D+1|0);var M=e.getString_61zpoe$("schoolName");e.wasNull()&&(D=D+1|0);var k=e.getString_61zpoe$("schoolDesc");e.wasNull()&&(D=D+1|0);var j=e.getString_61zpoe$("schoolAddress");e.wasNull()&&(D=D+1|0);var G=e.getBoolean_61zpoe$("schoolActive");e.wasNull()&&(D=D+1|0);var q=e.getString_61zpoe$("schoolPhoneNumber");e.wasNull()&&(D=D+1|0);var F=e.getInt_61zpoe$("schoolGender");e.wasNull()&&(D=D+1|0);var B=e.getLong_61zpoe$("schoolHolidayCalendarUid");e.wasNull()&&(D=D+1|0);var W=e.getLong_61zpoe$("schoolFeatures");e.wasNull()&&(D=D+1|0);var H=e.getDouble_61zpoe$("schoolLocationLong");e.wasNull()&&(D=D+1|0);var V=e.getDouble_61zpoe$("schoolLocationLatt");e.wasNull()&&(D=D+1|0);var K=e.getString_61zpoe$("schoolEmailAddress");e.wasNull()&&(D=D+1|0);var X=e.getLong_61zpoe$("schoolTeachersPersonGroupUid");e.wasNull()&&(D=D+1|0);var J=e.getLong_61zpoe$("schoolStudentsPersonGroupUid");e.wasNull()&&(D=D+1|0);var Y=e.getLong_61zpoe$("schoolPendingStudentsPersonGroupUid");e.wasNull()&&(D=D+1|0);var Q=e.getString_61zpoe$("schoolCode");e.wasNull()&&(D=D+1|0);var Z=e.getLong_61zpoe$("schoolMasterChangeSeqNum");e.wasNull()&&(D=D+1|0);var tt=e.getLong_61zpoe$("schoolLocalChangeSeqNum");e.wasNull()&&(D=D+1|0);var et=e.getInt_61zpoe$("schoolLastChangedBy");e.wasNull()&&(D=D+1|0);var nt=e.getLong_61zpoe$("schoolLct");e.wasNull()&&(D=D+1|0);var it=e.getString_61zpoe$("schoolTimeZone");e.wasNull()&&(D=D+1|0);var ot=21===D,rt=0,st=e.getLong_61zpoe$("ctUid");e.wasNull()&&(rt=rt+1|0);var at=e.getString_61zpoe$("ctTitle");e.wasNull()&&(rt=rt+1|0);var ct=e.getString_61zpoe$("ctTerminology");e.wasNull()&&(rt=rt+1|0);var lt=e.getLong_61zpoe$("ctLct");e.wasNull()&&(rt=rt+1|0);var ut=4===rt,ht=new n9;if(ht.clazzUid=n,ht.clazzName=i,ht.clazzDesc=o,ht.attendanceAverage=r,ht.clazzHolidayUMCalendarUid=s,ht.clazzScheuleUMCalendarUid=a,ht.isClazzActive=c,ht.clazzLocationUid=l,ht.clazzStartTime=u,ht.clazzEndTime=h,ht.clazzFeatures=d,ht.clazzSchoolUid=p,ht.clazzEnrolmentPolicy=_,ht.clazzTerminologyUid=m,ht.clazzMasterChangeSeqNum=f,ht.clazzLocalChangeSeqNum=g,ht.clazzLastChangedBy=$,ht.clazzLct=E,ht.clazzTimeZone=y,ht.clazzStudentsPersonGroupUid=b,ht.clazzTeachersPersonGroupUid=S,ht.clazzPendingStudentsPersonGroupUid=v,ht.clazzParentsPersonGroupUid=C,ht.clazzCode=N,!U){var dt=new mst;dt.umCalendarUid=L,dt.umCalendarName=z,dt.umCalendarCategory=w,dt.umCalendarActive=O,dt.umCalendarMasterChangeSeqNum=R,dt.umCalendarLocalChangeSeqNum=A,dt.umCalendarLastChangedBy=x,dt.umCalendarLct=I,ht.holidayCalendar=dt}if(!ot){var pt=new Cht;pt.schoolUid=P,pt.schoolName=M,pt.schoolDesc=k,pt.schoolAddress=j,pt.schoolActive=G,pt.schoolPhoneNumber=q,pt.schoolGender=F,pt.schoolHolidayCalendarUid=B,pt.schoolFeatures=W,pt.schoolLocationLong=H,pt.schoolLocationLatt=V,pt.schoolEmailAddress=K,pt.schoolTeachersPersonGroupUid=X,pt.schoolStudentsPersonGroupUid=J,pt.schoolPendingStudentsPersonGroupUid=Y,pt.schoolCode=Q,pt.schoolMasterChangeSeqNum=Z,pt.schoolLocalChangeSeqNum=tt,pt.schoolLastChangedBy=et,pt.schoolLct=nt,pt.schoolTimeZone=it,ht.school=pt}if(!ut){var _t=new Mot;_t.ctUid=st,_t.ctTitle=at,_t.ctTerminology=ct,_t.ctLct=lt,ht.terminology=_t}return ht}));var e}function Gc(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function qc(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("clazzUid"),i=e.getString_61zpoe$("clazzName"),o=e.getString_61zpoe$("clazzDesc"),r=e.getFloat_61zpoe$("attendanceAverage"),s=e.getLong_61zpoe$("clazzHolidayUMCalendarUid"),a=e.getLong_61zpoe$("clazzScheuleUMCalendarUid"),c=e.getBoolean_61zpoe$("isClazzActive"),l=e.getLong_61zpoe$("clazzLocationUid"),u=e.getLong_61zpoe$("clazzStartTime"),h=e.getLong_61zpoe$("clazzEndTime"),d=e.getLong_61zpoe$("clazzFeatures"),p=e.getLong_61zpoe$("clazzSchoolUid"),_=e.getInt_61zpoe$("clazzEnrolmentPolicy"),m=e.getLong_61zpoe$("clazzTerminologyUid"),f=e.getLong_61zpoe$("clazzMasterChangeSeqNum"),g=e.getLong_61zpoe$("clazzLocalChangeSeqNum"),$=e.getInt_61zpoe$("clazzLastChangedBy"),E=e.getLong_61zpoe$("clazzLct"),y=e.getString_61zpoe$("clazzTimeZone"),b=e.getLong_61zpoe$("clazzStudentsPersonGroupUid"),S=e.getLong_61zpoe$("clazzTeachersPersonGroupUid"),v=e.getLong_61zpoe$("clazzPendingStudentsPersonGroupUid"),C=e.getLong_61zpoe$("clazzParentsPersonGroupUid"),N=e.getString_61zpoe$("clazzCode"),T=new s5;return T.clazzUid=n,T.clazzName=i,T.clazzDesc=o,T.attendanceAverage=r,T.clazzHolidayUMCalendarUid=s,T.clazzScheuleUMCalendarUid=a,T.isClazzActive=c,T.clazzLocationUid=l,T.clazzStartTime=u,T.clazzEndTime=h,T.clazzFeatures=d,T.clazzSchoolUid=p,T.clazzEnrolmentPolicy=_,T.clazzTerminologyUid=m,T.clazzMasterChangeSeqNum=f,T.clazzLocalChangeSeqNum=g,T.clazzLastChangedBy=$,T.clazzLct=E,T.clazzTimeZone=y,T.clazzStudentsPersonGroupUid=b,T.clazzTeachersPersonGroupUid=S,T.clazzPendingStudentsPersonGroupUid=v,T.clazzParentsPersonGroupUid=C,T.clazzCode=N,T}));var e}function Fc(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$schoolUid=t,this.local$_stmt=e}function Bc(t,e){this.this$ClazzDao_JdbcKt=t,this.closure$schoolUid=e,gt.call(this)}function Wc(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("clazzUid"),i=e.getString_61zpoe$("clazzName"),o=e.getString_61zpoe$("clazzDesc"),r=e.getFloat_61zpoe$("attendanceAverage"),s=e.getLong_61zpoe$("clazzHolidayUMCalendarUid"),a=e.getLong_61zpoe$("clazzScheuleUMCalendarUid"),c=e.getBoolean_61zpoe$("isClazzActive"),l=e.getLong_61zpoe$("clazzLocationUid"),u=e.getLong_61zpoe$("clazzStartTime"),h=e.getLong_61zpoe$("clazzEndTime"),d=e.getLong_61zpoe$("clazzFeatures"),p=e.getLong_61zpoe$("clazzSchoolUid"),_=e.getInt_61zpoe$("clazzEnrolmentPolicy"),m=e.getLong_61zpoe$("clazzTerminologyUid"),f=e.getLong_61zpoe$("clazzMasterChangeSeqNum"),g=e.getLong_61zpoe$("clazzLocalChangeSeqNum"),$=e.getInt_61zpoe$("clazzLastChangedBy"),E=e.getLong_61zpoe$("clazzLct"),y=e.getString_61zpoe$("clazzTimeZone"),b=e.getLong_61zpoe$("clazzStudentsPersonGroupUid"),S=e.getLong_61zpoe$("clazzTeachersPersonGroupUid"),v=e.getLong_61zpoe$("clazzPendingStudentsPersonGroupUid"),C=e.getLong_61zpoe$("clazzParentsPersonGroupUid"),N=e.getString_61zpoe$("clazzCode"),T=new s5;return T.clazzUid=n,T.clazzName=i,T.clazzDesc=o,T.attendanceAverage=r,T.clazzHolidayUMCalendarUid=s,T.clazzScheuleUMCalendarUid=a,T.isClazzActive=c,T.clazzLocationUid=l,T.clazzStartTime=u,T.clazzEndTime=h,T.clazzFeatures=d,T.clazzSchoolUid=p,T.clazzEnrolmentPolicy=_,T.clazzTerminologyUid=m,T.clazzMasterChangeSeqNum=f,T.clazzLocalChangeSeqNum=g,T.clazzLastChangedBy=$,T.clazzLct=E,T.clazzTimeZone=y,T.clazzStudentsPersonGroupUid=b,T.clazzTeachersPersonGroupUid=S,T.clazzPendingStudentsPersonGroupUid=v,T.clazzParentsPersonGroupUid=C,T.clazzCode=N,T}));var e}function Hc(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$schoolUid=t,this.local$closure$_limit=e,this.local$closure$_offset=n,this.local$_stmt=i}function Vc(t,e,n){return function(i,o,r){var s=new Hc(t,e,n,i,o);return r?s:s.doResume(null)}}function Kc(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$this$ClazzDao_JdbcKt=t,this.local$closure$schoolUid=e,this.local$closure$_limit=n,this.local$closure$_offset=i}function Xc(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function Jc(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$schoolUid=t,this.local$_stmt=e}function Yc(t){return function(e,n,i){var o=new Jc(t,e,n);return i?o:o.doResume(null)}}function Qc(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$ClazzDao_JdbcKt=t,this.local$closure$schoolUid=e}function Zc(t,e,n,i,o,r,s,a,c,l){this.this$ClazzDao_JdbcKt=t,this.closure$currentTime=e,this.closure$permission=n,this.closure$accountPersonUid=i,this.closure$searchQuery=o,this.closure$excludeSelectedClazzList=r,this.closure$excludeSchoolUid=s,this.closure$filter=a,this.closure$selectedSchool=c,this.closure$sortOrder=l,gt.call(this)}function tl(t){return mt(t,(e=t,function(t){var n=e.getInt_61zpoe$("numStudents"),i=e.getInt_61zpoe$("numTeachers"),o=e.getString_61zpoe$("teacherNames"),r=e.getLong_61zpoe$("lastRecorded"),s=e.getLong_61zpoe$("clazzUid"),a=e.getString_61zpoe$("clazzName"),c=e.getString_61zpoe$("clazzDesc"),l=e.getFloat_61zpoe$("attendanceAverage"),u=e.getLong_61zpoe$("clazzHolidayUMCalendarUid"),h=e.getLong_61zpoe$("clazzScheuleUMCalendarUid"),d=e.getBoolean_61zpoe$("isClazzActive"),p=e.getLong_61zpoe$("clazzLocationUid"),_=e.getLong_61zpoe$("clazzStartTime"),m=e.getLong_61zpoe$("clazzEndTime"),f=e.getLong_61zpoe$("clazzFeatures"),g=e.getLong_61zpoe$("clazzSchoolUid"),$=e.getInt_61zpoe$("clazzEnrolmentPolicy"),E=e.getLong_61zpoe$("clazzTerminologyUid"),y=e.getLong_61zpoe$("clazzMasterChangeSeqNum"),b=e.getLong_61zpoe$("clazzLocalChangeSeqNum"),S=e.getInt_61zpoe$("clazzLastChangedBy"),v=e.getLong_61zpoe$("clazzLct"),C=e.getString_61zpoe$("clazzTimeZone"),N=e.getLong_61zpoe$("clazzStudentsPersonGroupUid"),T=e.getLong_61zpoe$("clazzTeachersPersonGroupUid"),L=e.getLong_61zpoe$("clazzPendingStudentsPersonGroupUid"),z=e.getLong_61zpoe$("clazzParentsPersonGroupUid"),w=e.getString_61zpoe$("clazzCode"),O=0,R=e.getLong_61zpoe$("clazzEnrolmentUid");e.wasNull()&&(O=O+1|0);var A=e.getLong_61zpoe$("clazzEnrolmentPersonUid");e.wasNull()&&(O=O+1|0);var x=e.getLong_61zpoe$("clazzEnrolmentClazzUid");e.wasNull()&&(O=O+1|0);var I=e.getLong_61zpoe$("clazzEnrolmentDateJoined");e.wasNull()&&(O=O+1|0);var U=e.getLong_61zpoe$("clazzEnrolmentDateLeft");e.wasNull()&&(O=O+1|0);var D=e.getInt_61zpoe$("clazzEnrolmentRole");e.wasNull()&&(O=O+1|0);var P=e.getFloat_61zpoe$("clazzEnrolmentAttendancePercentage");e.wasNull()&&(O=O+1|0);var M=e.getBoolean_61zpoe$("clazzEnrolmentActive");e.wasNull()&&(O=O+1|0);var k=e.getLong_61zpoe$("clazzEnrolmentLeavingReasonUid");e.wasNull()&&(O=O+1|0);var j=e.getInt_61zpoe$("clazzEnrolmentOutcome");e.wasNull()&&(O=O+1|0);var G=e.getLong_61zpoe$("clazzEnrolmentLocalChangeSeqNum");e.wasNull()&&(O=O+1|0);var q=e.getLong_61zpoe$("clazzEnrolmentMasterChangeSeqNum");e.wasNull()&&(O=O+1|0);var F=e.getInt_61zpoe$("clazzEnrolmentLastChangedBy");e.wasNull()&&(O=O+1|0);var B=e.getLong_61zpoe$("clazzEnrolmentLct");e.wasNull()&&(O=O+1|0);var W=14===O,H=0,V=e.getLong_61zpoe$("ctUid");e.wasNull()&&(H=H+1|0);var K=e.getString_61zpoe$("ctTitle");e.wasNull()&&(H=H+1|0);var X=e.getString_61zpoe$("ctTerminology");e.wasNull()&&(H=H+1|0);var J=e.getLong_61zpoe$("ctLct");e.wasNull()&&(H=H+1|0);var Y=4===H,Q=new u9;if(Q.numStudents=n,Q.numTeachers=i,Q.teacherNames=o,Q.lastRecorded=r,Q.clazzUid=s,Q.clazzName=a,Q.clazzDesc=c,Q.attendanceAverage=l,Q.clazzHolidayUMCalendarUid=u,Q.clazzScheuleUMCalendarUid=h,Q.isClazzActive=d,Q.clazzLocationUid=p,Q.clazzStartTime=_,Q.clazzEndTime=m,Q.clazzFeatures=f,Q.clazzSchoolUid=g,Q.clazzEnrolmentPolicy=$,Q.clazzTerminologyUid=E,Q.clazzMasterChangeSeqNum=y,Q.clazzLocalChangeSeqNum=b,Q.clazzLastChangedBy=S,Q.clazzLct=v,Q.clazzTimeZone=C,Q.clazzStudentsPersonGroupUid=N,Q.clazzTeachersPersonGroupUid=T,Q.clazzPendingStudentsPersonGroupUid=L,Q.clazzParentsPersonGroupUid=z,Q.clazzCode=w,!W){var Z=new M5;Z.clazzEnrolmentUid=R,Z.clazzEnrolmentPersonUid=A,Z.clazzEnrolmentClazzUid=x,Z.clazzEnrolmentDateJoined=I,Z.clazzEnrolmentDateLeft=U,Z.clazzEnrolmentRole=D,Z.clazzEnrolmentAttendancePercentage=P,Z.clazzEnrolmentActive=M,Z.clazzEnrolmentLeavingReasonUid=k,Z.clazzEnrolmentOutcome=j,Z.clazzEnrolmentLocalChangeSeqNum=G,Z.clazzEnrolmentMasterChangeSeqNum=q,Z.clazzEnrolmentLastChangedBy=F,Z.clazzEnrolmentLct=B,Q.clazzActiveEnrolment=Z}if(!Y){var tt=new Mot;tt.ctUid=V,tt.ctTitle=K,tt.ctTerminology=X,tt.ctLct=J,Q.terminology=tt}return Q}));var e}function el(t,e,n,i,o,r,s,a,c,l,u,h,d){N.call(this,d),this.exceptionState_0=1,this.local$closure$currentTime=t,this.local$closure$permission=e,this.local$closure$accountPersonUid=n,this.local$closure$searchQuery=i,this.local$closure$excludeSelectedClazzList=o,this.local$closure$excludeSchoolUid=r,this.local$closure$filter=s,this.local$closure$selectedSchool=a,this.local$closure$sortOrder=c,this.local$closure$_limit=l,this.local$closure$_offset=u,this.local$_stmt=h}function nl(t,e,n,i,o,r,s,a,c,l,u){return function(h,d,p){var _=new el(t,e,n,i,o,r,s,a,c,l,u,h,d);return p?_:_.doResume(null)}}function il(t,e,n,i,o,r,s,a,c,l,u,h,d){N.call(this,d),this.exceptionState_0=1,this.local$this$ClazzDao_JdbcKt=t,this.local$closure$currentTime=e,this.local$closure$permission=n,this.local$closure$accountPersonUid=i,this.local$closure$searchQuery=o,this.local$closure$excludeSelectedClazzList=r,this.local$closure$excludeSchoolUid=s,this.local$closure$filter=a,this.local$closure$selectedSchool=c,this.local$closure$sortOrder=l,this.local$closure$_limit=u,this.local$closure$_offset=h}function ol(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function rl(t,e,n,i,o,r,s,a,c,l,u){N.call(this,u),this.exceptionState_0=1,this.local$closure$currentTime=t,this.local$closure$permission=e,this.local$closure$accountPersonUid=n,this.local$closure$searchQuery=i,this.local$closure$excludeSelectedClazzList=o,this.local$closure$excludeSchoolUid=r,this.local$closure$filter=s,this.local$closure$selectedSchool=a,this.local$closure$sortOrder=c,this.local$_stmt=l}function sl(t,e,n,i,o,r,s,a,c){return function(l,u,h){var d=new rl(t,e,n,i,o,r,s,a,c,l,u);return h?d:d.doResume(null)}}function al(t,e,n,i,o,r,s,a,c,l,u){N.call(this,u),this.exceptionState_0=1,this.local$this$ClazzDao_JdbcKt=t,this.local$closure$currentTime=e,this.local$closure$permission=n,this.local$closure$accountPersonUid=i,this.local$closure$searchQuery=o,this.local$closure$excludeSelectedClazzList=r,this.local$closure$excludeSchoolUid=s,this.local$closure$filter=a,this.local$closure$selectedSchool=c,this.local$closure$sortOrder=l}function cl(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("uid"),i=e.getString_61zpoe$("labelName"),o=new A_t;return o.uid=n,o.labelName=i,o}));var e}function ll(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$ids=t,this.local$_stmt=e}function ul(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("clazzUid"),i=e.getString_61zpoe$("clazzName"),o=e.getString_61zpoe$("clazzDesc"),r=e.getFloat_61zpoe$("attendanceAverage"),s=e.getLong_61zpoe$("clazzHolidayUMCalendarUid"),a=e.getLong_61zpoe$("clazzScheuleUMCalendarUid"),c=e.getBoolean_61zpoe$("isClazzActive"),l=e.getLong_61zpoe$("clazzLocationUid"),u=e.getLong_61zpoe$("clazzStartTime"),h=e.getLong_61zpoe$("clazzEndTime"),d=e.getLong_61zpoe$("clazzFeatures"),p=e.getLong_61zpoe$("clazzSchoolUid"),_=e.getInt_61zpoe$("clazzEnrolmentPolicy"),m=e.getLong_61zpoe$("clazzTerminologyUid"),f=e.getLong_61zpoe$("clazzMasterChangeSeqNum"),g=e.getLong_61zpoe$("clazzLocalChangeSeqNum"),$=e.getInt_61zpoe$("clazzLastChangedBy"),E=e.getLong_61zpoe$("clazzLct"),y=e.getString_61zpoe$("clazzTimeZone"),b=e.getLong_61zpoe$("clazzStudentsPersonGroupUid"),S=e.getLong_61zpoe$("clazzTeachersPersonGroupUid"),v=e.getLong_61zpoe$("clazzPendingStudentsPersonGroupUid"),C=e.getLong_61zpoe$("clazzParentsPersonGroupUid"),N=e.getString_61zpoe$("clazzCode"),T=new s5;return T.clazzUid=n,T.clazzName=i,T.clazzDesc=o,T.attendanceAverage=r,T.clazzHolidayUMCalendarUid=s,T.clazzScheuleUMCalendarUid=a,T.isClazzActive=c,T.clazzLocationUid=l,T.clazzStartTime=u,T.clazzEndTime=h,T.clazzFeatures=d,T.clazzSchoolUid=p,T.clazzEnrolmentPolicy=_,T.clazzTerminologyUid=m,T.clazzMasterChangeSeqNum=f,T.clazzLocalChangeSeqNum=g,T.clazzLastChangedBy=$,T.clazzLct=E,T.clazzTimeZone=y,T.clazzStudentsPersonGroupUid=b,T.clazzTeachersPersonGroupUid=S,T.clazzPendingStudentsPersonGroupUid=v,T.clazzParentsPersonGroupUid=C,T.clazzCode=N,T}));var e}function hl(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$closure$timeChanged=e,this.local$_stmt=n}function dl(t,e){return function(n,i,o){var r=new hl(t,e,n,i);return o?r:r.doResume(null)}}function pl(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$clazzUid=e,this.local$timeChanged=n}function _l(t){return lt(t,!1,(e=t,function(t){return e.getBoolean_za3lpa$(1)}));var e}function ml(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$permission=t,this.local$closure$clazzUid=e,this.local$closure$accountPersonUid=n,this.local$_stmt=i}function fl(t){return mt(t,(e=t,function(t){return e.getLong_za3lpa$(1)}));var e}function gl(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$closure$accountPersonUid=e,this.local$_stmt=n}function $l(t){return lt(t,null,(e=t,function(t){var n=e.getInt_61zpoe$("numStudents"),i=e.getInt_61zpoe$("numTeachers"),o=e.getLong_61zpoe$("clazzUid"),r=e.getString_61zpoe$("clazzName"),s=e.getString_61zpoe$("clazzDesc"),a=e.getFloat_61zpoe$("attendanceAverage"),c=e.getLong_61zpoe$("clazzHolidayUMCalendarUid"),l=e.getLong_61zpoe$("clazzScheuleUMCalendarUid"),u=e.getBoolean_61zpoe$("isClazzActive"),h=e.getLong_61zpoe$("clazzLocationUid"),d=e.getLong_61zpoe$("clazzStartTime"),p=e.getLong_61zpoe$("clazzEndTime"),_=e.getLong_61zpoe$("clazzFeatures"),m=e.getLong_61zpoe$("clazzSchoolUid"),f=e.getInt_61zpoe$("clazzEnrolmentPolicy"),g=e.getLong_61zpoe$("clazzTerminologyUid"),$=e.getLong_61zpoe$("clazzMasterChangeSeqNum"),E=e.getLong_61zpoe$("clazzLocalChangeSeqNum"),y=e.getInt_61zpoe$("clazzLastChangedBy"),b=e.getLong_61zpoe$("clazzLct"),S=e.getString_61zpoe$("clazzTimeZone"),v=e.getLong_61zpoe$("clazzStudentsPersonGroupUid"),C=e.getLong_61zpoe$("clazzTeachersPersonGroupUid"),N=e.getLong_61zpoe$("clazzPendingStudentsPersonGroupUid"),T=e.getLong_61zpoe$("clazzParentsPersonGroupUid"),L=e.getString_61zpoe$("clazzCode"),z=0,w=e.getLong_61zpoe$("umCalendarUid");e.wasNull()&&(z=z+1|0);var O=e.getString_61zpoe$("umCalendarName");e.wasNull()&&(z=z+1|0);var R=e.getInt_61zpoe$("umCalendarCategory");e.wasNull()&&(z=z+1|0);var A=e.getBoolean_61zpoe$("umCalendarActive");e.wasNull()&&(z=z+1|0);var x=e.getLong_61zpoe$("umCalendarMasterChangeSeqNum");e.wasNull()&&(z=z+1|0);var I=e.getLong_61zpoe$("umCalendarLocalChangeSeqNum");e.wasNull()&&(z=z+1|0);var U=e.getInt_61zpoe$("umCalendarLastChangedBy");e.wasNull()&&(z=z+1|0);var D=e.getLong_61zpoe$("umCalendarLct");e.wasNull()&&(z=z+1|0);var P=8===z,M=0,k=e.getLong_61zpoe$("schoolUid");e.wasNull()&&(M=M+1|0);var j=e.getString_61zpoe$("schoolName");e.wasNull()&&(M=M+1|0);var G=e.getString_61zpoe$("schoolDesc");e.wasNull()&&(M=M+1|0);var q=e.getString_61zpoe$("schoolAddress");e.wasNull()&&(M=M+1|0);var F=e.getBoolean_61zpoe$("schoolActive");e.wasNull()&&(M=M+1|0);var B=e.getString_61zpoe$("schoolPhoneNumber");e.wasNull()&&(M=M+1|0);var W=e.getInt_61zpoe$("schoolGender");e.wasNull()&&(M=M+1|0);var H=e.getLong_61zpoe$("schoolHolidayCalendarUid");e.wasNull()&&(M=M+1|0);var V=e.getLong_61zpoe$("schoolFeatures");e.wasNull()&&(M=M+1|0);var K=e.getDouble_61zpoe$("schoolLocationLong");e.wasNull()&&(M=M+1|0);var X=e.getDouble_61zpoe$("schoolLocationLatt");e.wasNull()&&(M=M+1|0);var J=e.getString_61zpoe$("schoolEmailAddress");e.wasNull()&&(M=M+1|0);var Y=e.getLong_61zpoe$("schoolTeachersPersonGroupUid");e.wasNull()&&(M=M+1|0);var Q=e.getLong_61zpoe$("schoolStudentsPersonGroupUid");e.wasNull()&&(M=M+1|0);var Z=e.getLong_61zpoe$("schoolPendingStudentsPersonGroupUid");e.wasNull()&&(M=M+1|0);var tt=e.getString_61zpoe$("schoolCode");e.wasNull()&&(M=M+1|0);var et=e.getLong_61zpoe$("schoolMasterChangeSeqNum");e.wasNull()&&(M=M+1|0);var nt=e.getLong_61zpoe$("schoolLocalChangeSeqNum");e.wasNull()&&(M=M+1|0);var it=e.getInt_61zpoe$("schoolLastChangedBy");e.wasNull()&&(M=M+1|0);var ot=e.getLong_61zpoe$("schoolLct");e.wasNull()&&(M=M+1|0);var rt=e.getString_61zpoe$("schoolTimeZone");e.wasNull()&&(M=M+1|0);var st=21===M,at=0,ct=e.getLong_61zpoe$("ctUid");e.wasNull()&&(at=at+1|0);var lt=e.getString_61zpoe$("ctTitle");e.wasNull()&&(at=at+1|0);var ut=e.getString_61zpoe$("ctTerminology");e.wasNull()&&(at=at+1|0);var ht=e.getLong_61zpoe$("ctLct");e.wasNull()&&(at=at+1|0);var dt=4===at,pt=new K8;if(pt.numStudents=n,pt.numTeachers=i,pt.clazzUid=o,pt.clazzName=r,pt.clazzDesc=s,pt.attendanceAverage=a,pt.clazzHolidayUMCalendarUid=c,pt.clazzScheuleUMCalendarUid=l,pt.isClazzActive=u,pt.clazzLocationUid=h,pt.clazzStartTime=d,pt.clazzEndTime=p,pt.clazzFeatures=_,pt.clazzSchoolUid=m,pt.clazzEnrolmentPolicy=f,pt.clazzTerminologyUid=g,pt.clazzMasterChangeSeqNum=$,pt.clazzLocalChangeSeqNum=E,pt.clazzLastChangedBy=y,pt.clazzLct=b,pt.clazzTimeZone=S,pt.clazzStudentsPersonGroupUid=v,pt.clazzTeachersPersonGroupUid=C,pt.clazzPendingStudentsPersonGroupUid=N,pt.clazzParentsPersonGroupUid=T,pt.clazzCode=L,!P){var _t=new mst;_t.umCalendarUid=w,_t.umCalendarName=O,_t.umCalendarCategory=R,_t.umCalendarActive=A,_t.umCalendarMasterChangeSeqNum=x,_t.umCalendarLocalChangeSeqNum=I,_t.umCalendarLastChangedBy=U,_t.umCalendarLct=D,pt.clazzHolidayCalendar=_t}if(!st){var mt=new Cht;mt.schoolUid=k,mt.schoolName=j,mt.schoolDesc=G,mt.schoolAddress=q,mt.schoolActive=F,mt.schoolPhoneNumber=B,mt.schoolGender=W,mt.schoolHolidayCalendarUid=H,mt.schoolFeatures=V,mt.schoolLocationLong=K,mt.schoolLocationLatt=X,mt.schoolEmailAddress=J,mt.schoolTeachersPersonGroupUid=Y,mt.schoolStudentsPersonGroupUid=Q,mt.schoolPendingStudentsPersonGroupUid=Z,mt.schoolCode=tt,mt.schoolMasterChangeSeqNum=et,mt.schoolLocalChangeSeqNum=nt,mt.schoolLastChangedBy=it,mt.schoolLct=ot,mt.schoolTimeZone=rt,pt.clazzSchool=mt}if(!dt){var ft=new Mot;ft.ctUid=ct,ft.ctTitle=lt,ft.ctTerminology=ut,ft.ctLct=ht,pt.terminology=ft}return pt}));var e}function El(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$currentTime=t,this.local$closure$clazzUid=e,this.local$_stmt=n}function yl(t,e){return function(n,i,o){var r=new El(t,e,n,i);return o?r:r.doResume(null)}}function bl(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$this$ClazzDao_JdbcKt=t,this.local$closure$currentTime=e,this.local$closure$clazzUid=n}function Sl(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("clazzUid"),i=e.getString_61zpoe$("clazzName"),o=e.getString_61zpoe$("clazzDesc"),r=e.getFloat_61zpoe$("attendanceAverage"),s=e.getLong_61zpoe$("clazzHolidayUMCalendarUid"),a=e.getLong_61zpoe$("clazzScheuleUMCalendarUid"),c=e.getBoolean_61zpoe$("isClazzActive"),l=e.getLong_61zpoe$("clazzLocationUid"),u=e.getLong_61zpoe$("clazzStartTime"),h=e.getLong_61zpoe$("clazzEndTime"),d=e.getLong_61zpoe$("clazzFeatures"),p=e.getLong_61zpoe$("clazzSchoolUid"),_=e.getInt_61zpoe$("clazzEnrolmentPolicy"),m=e.getLong_61zpoe$("clazzTerminologyUid"),f=e.getLong_61zpoe$("clazzMasterChangeSeqNum"),g=e.getLong_61zpoe$("clazzLocalChangeSeqNum"),$=e.getInt_61zpoe$("clazzLastChangedBy"),E=e.getLong_61zpoe$("clazzLct"),y=e.getString_61zpoe$("clazzTimeZone"),b=e.getLong_61zpoe$("clazzStudentsPersonGroupUid"),S=e.getLong_61zpoe$("clazzTeachersPersonGroupUid"),v=e.getLong_61zpoe$("clazzPendingStudentsPersonGroupUid"),C=e.getLong_61zpoe$("clazzParentsPersonGroupUid"),N=e.getString_61zpoe$("clazzCode"),T=0,L=e.getLong_61zpoe$("umCalendarUid");e.wasNull()&&(T=T+1|0);var z=e.getString_61zpoe$("umCalendarName");e.wasNull()&&(T=T+1|0);var w=e.getInt_61zpoe$("umCalendarCategory");e.wasNull()&&(T=T+1|0);var O=e.getBoolean_61zpoe$("umCalendarActive");e.wasNull()&&(T=T+1|0);var R=e.getLong_61zpoe$("umCalendarMasterChangeSeqNum");e.wasNull()&&(T=T+1|0);var A=e.getLong_61zpoe$("umCalendarLocalChangeSeqNum");e.wasNull()&&(T=T+1|0);var x=e.getInt_61zpoe$("umCalendarLastChangedBy");e.wasNull()&&(T=T+1|0);var I=e.getLong_61zpoe$("umCalendarLct");e.wasNull()&&(T=T+1|0);var U=8===T,D=0,P=e.getLong_61zpoe$("schoolUid");e.wasNull()&&(D=D+1|0);var M=e.getString_61zpoe$("schoolName");e.wasNull()&&(D=D+1|0);var k=e.getString_61zpoe$("schoolDesc");e.wasNull()&&(D=D+1|0);var j=e.getString_61zpoe$("schoolAddress");e.wasNull()&&(D=D+1|0);var G=e.getBoolean_61zpoe$("schoolActive");e.wasNull()&&(D=D+1|0);var q=e.getString_61zpoe$("schoolPhoneNumber");e.wasNull()&&(D=D+1|0);var F=e.getInt_61zpoe$("schoolGender");e.wasNull()&&(D=D+1|0);var B=e.getLong_61zpoe$("schoolHolidayCalendarUid");e.wasNull()&&(D=D+1|0);var W=e.getLong_61zpoe$("schoolFeatures");e.wasNull()&&(D=D+1|0);var H=e.getDouble_61zpoe$("schoolLocationLong");e.wasNull()&&(D=D+1|0);var V=e.getDouble_61zpoe$("schoolLocationLatt");e.wasNull()&&(D=D+1|0);var K=e.getString_61zpoe$("schoolEmailAddress");e.wasNull()&&(D=D+1|0);var X=e.getLong_61zpoe$("schoolTeachersPersonGroupUid");e.wasNull()&&(D=D+1|0);var J=e.getLong_61zpoe$("schoolStudentsPersonGroupUid");e.wasNull()&&(D=D+1|0);var Y=e.getLong_61zpoe$("schoolPendingStudentsPersonGroupUid");e.wasNull()&&(D=D+1|0);var Q=e.getString_61zpoe$("schoolCode");e.wasNull()&&(D=D+1|0);var Z=e.getLong_61zpoe$("schoolMasterChangeSeqNum");e.wasNull()&&(D=D+1|0);var tt=e.getLong_61zpoe$("schoolLocalChangeSeqNum");e.wasNull()&&(D=D+1|0);var et=e.getInt_61zpoe$("schoolLastChangedBy");e.wasNull()&&(D=D+1|0);var nt=e.getLong_61zpoe$("schoolLct");e.wasNull()&&(D=D+1|0);var it=e.getString_61zpoe$("schoolTimeZone");e.wasNull()&&(D=D+1|0);var ot=21===D,rt=0,st=e.getLong_61zpoe$("ctUid");e.wasNull()&&(rt=rt+1|0);var at=e.getString_61zpoe$("ctTitle");e.wasNull()&&(rt=rt+1|0);var ct=e.getString_61zpoe$("ctTerminology");e.wasNull()&&(rt=rt+1|0);var lt=e.getLong_61zpoe$("ctLct");e.wasNull()&&(rt=rt+1|0);var ut=4===rt,ht=new n9;if(ht.clazzUid=n,ht.clazzName=i,ht.clazzDesc=o,ht.attendanceAverage=r,ht.clazzHolidayUMCalendarUid=s,ht.clazzScheuleUMCalendarUid=a,ht.isClazzActive=c,ht.clazzLocationUid=l,ht.clazzStartTime=u,ht.clazzEndTime=h,ht.clazzFeatures=d,ht.clazzSchoolUid=p,ht.clazzEnrolmentPolicy=_,ht.clazzTerminologyUid=m,ht.clazzMasterChangeSeqNum=f,ht.clazzLocalChangeSeqNum=g,ht.clazzLastChangedBy=$,ht.clazzLct=E,ht.clazzTimeZone=y,ht.clazzStudentsPersonGroupUid=b,ht.clazzTeachersPersonGroupUid=S,ht.clazzPendingStudentsPersonGroupUid=v,ht.clazzParentsPersonGroupUid=C,ht.clazzCode=N,!U){var dt=new mst;dt.umCalendarUid=L,dt.umCalendarName=z,dt.umCalendarCategory=w,dt.umCalendarActive=O,dt.umCalendarMasterChangeSeqNum=R,dt.umCalendarLocalChangeSeqNum=A,dt.umCalendarLastChangedBy=x,dt.umCalendarLct=I,ht.holidayCalendar=dt}if(!ot){var pt=new Cht;pt.schoolUid=P,pt.schoolName=M,pt.schoolDesc=k,pt.schoolAddress=j,pt.schoolActive=G,pt.schoolPhoneNumber=q,pt.schoolGender=F,pt.schoolHolidayCalendarUid=B,pt.schoolFeatures=W,pt.schoolLocationLong=H,pt.schoolLocationLatt=V,pt.schoolEmailAddress=K,pt.schoolTeachersPersonGroupUid=X,pt.schoolStudentsPersonGroupUid=J,pt.schoolPendingStudentsPersonGroupUid=Y,pt.schoolCode=Q,pt.schoolMasterChangeSeqNum=Z,pt.schoolLocalChangeSeqNum=tt,pt.schoolLastChangedBy=et,pt.schoolLct=nt,pt.schoolTimeZone=it,ht.school=pt}if(!ut){var _t=new Mot;_t.ctUid=st,_t.ctTitle=at,_t.ctTerminology=ct,_t.ctLct=lt,ht.terminology=_t}return ht}));var e}function vl(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("clazzUid"),i=e.getString_61zpoe$("clazzName"),o=e.getString_61zpoe$("clazzDesc"),r=e.getFloat_61zpoe$("attendanceAverage"),s=e.getLong_61zpoe$("clazzHolidayUMCalendarUid"),a=e.getLong_61zpoe$("clazzScheuleUMCalendarUid"),c=e.getBoolean_61zpoe$("isClazzActive"),l=e.getLong_61zpoe$("clazzLocationUid"),u=e.getLong_61zpoe$("clazzStartTime"),h=e.getLong_61zpoe$("clazzEndTime"),d=e.getLong_61zpoe$("clazzFeatures"),p=e.getLong_61zpoe$("clazzSchoolUid"),_=e.getInt_61zpoe$("clazzEnrolmentPolicy"),m=e.getLong_61zpoe$("clazzTerminologyUid"),f=e.getLong_61zpoe$("clazzMasterChangeSeqNum"),g=e.getLong_61zpoe$("clazzLocalChangeSeqNum"),$=e.getInt_61zpoe$("clazzLastChangedBy"),E=e.getLong_61zpoe$("clazzLct"),y=e.getString_61zpoe$("clazzTimeZone"),b=e.getLong_61zpoe$("clazzStudentsPersonGroupUid"),S=e.getLong_61zpoe$("clazzTeachersPersonGroupUid"),v=e.getLong_61zpoe$("clazzPendingStudentsPersonGroupUid"),C=e.getLong_61zpoe$("clazzParentsPersonGroupUid"),N=e.getString_61zpoe$("clazzCode"),T=0,L=e.getLong_61zpoe$("schoolUid");e.wasNull()&&(T=T+1|0);var z=e.getString_61zpoe$("schoolName");e.wasNull()&&(T=T+1|0);var w=e.getString_61zpoe$("schoolDesc");e.wasNull()&&(T=T+1|0);var O=e.getString_61zpoe$("schoolAddress");e.wasNull()&&(T=T+1|0);var R=e.getBoolean_61zpoe$("schoolActive");e.wasNull()&&(T=T+1|0);var A=e.getString_61zpoe$("schoolPhoneNumber");e.wasNull()&&(T=T+1|0);var x=e.getInt_61zpoe$("schoolGender");e.wasNull()&&(T=T+1|0);var I=e.getLong_61zpoe$("schoolHolidayCalendarUid");e.wasNull()&&(T=T+1|0);var U=e.getLong_61zpoe$("schoolFeatures");e.wasNull()&&(T=T+1|0);var D=e.getDouble_61zpoe$("schoolLocationLong");e.wasNull()&&(T=T+1|0);var P=e.getDouble_61zpoe$("schoolLocationLatt");e.wasNull()&&(T=T+1|0);var M=e.getString_61zpoe$("schoolEmailAddress");e.wasNull()&&(T=T+1|0);var k=e.getLong_61zpoe$("schoolTeachersPersonGroupUid");e.wasNull()&&(T=T+1|0);var j=e.getLong_61zpoe$("schoolStudentsPersonGroupUid");e.wasNull()&&(T=T+1|0);var G=e.getLong_61zpoe$("schoolPendingStudentsPersonGroupUid");e.wasNull()&&(T=T+1|0);var q=e.getString_61zpoe$("schoolCode");e.wasNull()&&(T=T+1|0);var F=e.getLong_61zpoe$("schoolMasterChangeSeqNum");e.wasNull()&&(T=T+1|0);var B=e.getLong_61zpoe$("schoolLocalChangeSeqNum");e.wasNull()&&(T=T+1|0);var W=e.getInt_61zpoe$("schoolLastChangedBy");e.wasNull()&&(T=T+1|0);var H=e.getLong_61zpoe$("schoolLct");e.wasNull()&&(T=T+1|0);var V=e.getString_61zpoe$("schoolTimeZone");e.wasNull()&&(T=T+1|0);var K=21===T,X=new $9;if(X.clazzUid=n,X.clazzName=i,X.clazzDesc=o,X.attendanceAverage=r,X.clazzHolidayUMCalendarUid=s,X.clazzScheuleUMCalendarUid=a,X.isClazzActive=c,X.clazzLocationUid=l,X.clazzStartTime=u,X.clazzEndTime=h,X.clazzFeatures=d,X.clazzSchoolUid=p,X.clazzEnrolmentPolicy=_,X.clazzTerminologyUid=m,X.clazzMasterChangeSeqNum=f,X.clazzLocalChangeSeqNum=g,X.clazzLastChangedBy=$,X.clazzLct=E,X.clazzTimeZone=y,X.clazzStudentsPersonGroupUid=b,X.clazzTeachersPersonGroupUid=S,X.clazzPendingStudentsPersonGroupUid=v,X.clazzParentsPersonGroupUid=C,X.clazzCode=N,!K){var J=new Cht;J.schoolUid=L,J.schoolName=z,J.schoolDesc=w,J.schoolAddress=O,J.schoolActive=R,J.schoolPhoneNumber=A,J.schoolGender=x,J.schoolHolidayCalendarUid=I,J.schoolFeatures=U,J.schoolLocationLong=D,J.schoolLocationLatt=P,J.schoolEmailAddress=M,J.schoolTeachersPersonGroupUid=k,J.schoolStudentsPersonGroupUid=j,J.schoolPendingStudentsPersonGroupUid=G,J.schoolCode=q,J.schoolMasterChangeSeqNum=F,J.schoolLocalChangeSeqNum=B,J.schoolLastChangedBy=W,J.schoolLct=H,J.schoolTimeZone=V,X.school=J}return X}));var e}function Cl(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$_stmt=e}function Nl(t){pt.call(this,t)}function Tl(t,e){hc.call(this),this._db_0=t,this._dao_0=e}function Ll(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function zl(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function wl(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$clazzUid=e,this.local$timeChanged=n}function Ol(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Rl(t,e,n,i,o,r){hc.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function Al(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function xl(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function Il(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$code=e}function Ul(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$uid=e}function Dl(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$uid=e}function Pl(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Ml(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$schoolUid=e}function kl(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$ids=e}function jl(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$clazzUid=e,this.local$timeChanged=n}function Gl(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$accountPersonUid=e,this.local$clazzUid=n,this.local$permission=i}function ql(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$accountPersonUid=e,this.local$clazzUid=n}function Fl(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$clazzUid=e}function Bl(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Wl(){}function Hl(t){Wl.call(this),this._db=t,this._insertAdapterClazzEnrolment_=new Yu(this._db)}function Vl(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Kl(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$entity=t,this.local$closure$_result=e,this.local$tmp$=void 0,this.local$_stmt=n}function Xl(t,e){return function(n,i,o){var r=new Kl(t,e,n,i);return o?r:r.doResume(null)}}function Jl(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_result=void 0,this.local$entity=e}function Yl(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function Ql(t){return function(e,n,i){var o=new Yl(t,e,n);return i?o:o.doResume(null)}}function Zl(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function tu(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function eu(t,e,n){var i=new tu(t,e);return n?i:i.doResume(null)}function nu(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function iu(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("clazzEnrolmentUid"),i=e.getLong_61zpoe$("clazzEnrolmentPersonUid"),o=e.getLong_61zpoe$("clazzEnrolmentClazzUid"),r=e.getLong_61zpoe$("clazzEnrolmentDateJoined"),s=e.getLong_61zpoe$("clazzEnrolmentDateLeft"),a=e.getInt_61zpoe$("clazzEnrolmentRole"),c=e.getFloat_61zpoe$("clazzEnrolmentAttendancePercentage"),l=e.getBoolean_61zpoe$("clazzEnrolmentActive"),u=e.getLong_61zpoe$("clazzEnrolmentLeavingReasonUid"),h=e.getInt_61zpoe$("clazzEnrolmentOutcome"),d=e.getLong_61zpoe$("clazzEnrolmentLocalChangeSeqNum"),p=e.getLong_61zpoe$("clazzEnrolmentMasterChangeSeqNum"),_=e.getInt_61zpoe$("clazzEnrolmentLastChangedBy"),m=e.getLong_61zpoe$("clazzEnrolmentLct"),f=new M5;return f.clazzEnrolmentUid=n,f.clazzEnrolmentPersonUid=i,f.clazzEnrolmentClazzUid=o,f.clazzEnrolmentDateJoined=r,f.clazzEnrolmentDateLeft=s,f.clazzEnrolmentRole=a,f.clazzEnrolmentAttendancePercentage=c,f.clazzEnrolmentActive=l,f.clazzEnrolmentLeavingReasonUid=u,f.clazzEnrolmentOutcome=h,f.clazzEnrolmentLocalChangeSeqNum=d,f.clazzEnrolmentMasterChangeSeqNum=p,f.clazzEnrolmentLastChangedBy=_,f.clazzEnrolmentLct=m,f}));var e}function ou(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$personUid=t,this.local$closure$clazzUid=e,this.local$_stmt=n}function ru(t,e,n){this.this$ClazzEnrolmentDao_JdbcKt=t,this.closure$personUid=e,this.closure$clazzUid=n,gt.call(this)}function su(t){return mt(t,(e=t,function(t){var n=e.getString_61zpoe$("timeZone"),i=e.getLong_61zpoe$("clazzEnrolmentUid"),o=e.getLong_61zpoe$("clazzEnrolmentPersonUid"),r=e.getLong_61zpoe$("clazzEnrolmentClazzUid"),s=e.getLong_61zpoe$("clazzEnrolmentDateJoined"),a=e.getLong_61zpoe$("clazzEnrolmentDateLeft"),c=e.getInt_61zpoe$("clazzEnrolmentRole"),l=e.getFloat_61zpoe$("clazzEnrolmentAttendancePercentage"),u=e.getBoolean_61zpoe$("clazzEnrolmentActive"),h=e.getLong_61zpoe$("clazzEnrolmentLeavingReasonUid"),d=e.getInt_61zpoe$("clazzEnrolmentOutcome"),p=e.getLong_61zpoe$("clazzEnrolmentLocalChangeSeqNum"),_=e.getLong_61zpoe$("clazzEnrolmentMasterChangeSeqNum"),m=e.getInt_61zpoe$("clazzEnrolmentLastChangedBy"),f=e.getLong_61zpoe$("clazzEnrolmentLct"),g=0,$=e.getLong_61zpoe$("leavingReasonUid");e.wasNull()&&(g=g+1|0);var E=e.getString_61zpoe$("leavingReasonTitle");e.wasNull()&&(g=g+1|0);var y=e.getLong_61zpoe$("leavingReasonMCSN");e.wasNull()&&(g=g+1|0);var b=e.getLong_61zpoe$("leavingReasonCSN");e.wasNull()&&(g=g+1|0);var S=e.getInt_61zpoe$("leavingReasonLCB");e.wasNull()&&(g=g+1|0);var v=e.getLong_61zpoe$("leavingReasonLct");e.wasNull()&&(g=g+1|0);var C=6===g,N=new c8;if(N.timeZone=n,N.clazzEnrolmentUid=i,N.clazzEnrolmentPersonUid=o,N.clazzEnrolmentClazzUid=r,N.clazzEnrolmentDateJoined=s,N.clazzEnrolmentDateLeft=a,N.clazzEnrolmentRole=c,N.clazzEnrolmentAttendancePercentage=l,N.clazzEnrolmentActive=u,N.clazzEnrolmentLeavingReasonUid=h,N.clazzEnrolmentOutcome=d,N.clazzEnrolmentLocalChangeSeqNum=p,N.clazzEnrolmentMasterChangeSeqNum=_,N.clazzEnrolmentLastChangedBy=m,N.clazzEnrolmentLct=f,!C){var T=new Nat;T.leavingReasonUid=$,T.leavingReasonTitle=E,T.leavingReasonMCSN=y,T.leavingReasonCSN=b,T.leavingReasonLCB=S,T.leavingReasonLct=v,N.leavingReason=T}return N}));var e}function au(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$closure$personUid=t,this.local$closure$clazzUid=e,this.local$closure$_limit=n,this.local$closure$_offset=i,this.local$_stmt=o}function cu(t,e,n,i){return function(o,r,s){var a=new au(t,e,n,i,o,r);return s?a:a.doResume(null)}}function lu(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$this$ClazzEnrolmentDao_JdbcKt=t,this.local$closure$personUid=e,this.local$closure$clazzUid=n,this.local$closure$_limit=i,this.local$closure$_offset=o}function uu(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function hu(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$personUid=t,this.local$closure$clazzUid=e,this.local$_stmt=n}function du(t,e){return function(n,i,o){var r=new hu(t,e,n,i);return o?r:r.doResume(null)}}function pu(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$this$ClazzEnrolmentDao_JdbcKt=t,this.local$closure$personUid=e,this.local$closure$clazzUid=n}function _u(t){return lt(t,null,(e=t,function(t){var n=e.getString_61zpoe$("timeZone"),i=e.getLong_61zpoe$("clazzEnrolmentUid"),o=e.getLong_61zpoe$("clazzEnrolmentPersonUid"),r=e.getLong_61zpoe$("clazzEnrolmentClazzUid"),s=e.getLong_61zpoe$("clazzEnrolmentDateJoined"),a=e.getLong_61zpoe$("clazzEnrolmentDateLeft"),c=e.getInt_61zpoe$("clazzEnrolmentRole"),l=e.getFloat_61zpoe$("clazzEnrolmentAttendancePercentage"),u=e.getBoolean_61zpoe$("clazzEnrolmentActive"),h=e.getLong_61zpoe$("clazzEnrolmentLeavingReasonUid"),d=e.getInt_61zpoe$("clazzEnrolmentOutcome"),p=e.getLong_61zpoe$("clazzEnrolmentLocalChangeSeqNum"),_=e.getLong_61zpoe$("clazzEnrolmentMasterChangeSeqNum"),m=e.getInt_61zpoe$("clazzEnrolmentLastChangedBy"),f=e.getLong_61zpoe$("clazzEnrolmentLct"),g=0,$=e.getLong_61zpoe$("leavingReasonUid");e.wasNull()&&(g=g+1|0);var E=e.getString_61zpoe$("leavingReasonTitle");e.wasNull()&&(g=g+1|0);var y=e.getLong_61zpoe$("leavingReasonMCSN");e.wasNull()&&(g=g+1|0);var b=e.getLong_61zpoe$("leavingReasonCSN");e.wasNull()&&(g=g+1|0);var S=e.getInt_61zpoe$("leavingReasonLCB");e.wasNull()&&(g=g+1|0);var v=e.getLong_61zpoe$("leavingReasonLct");e.wasNull()&&(g=g+1|0);var C=6===g,N=new c8;if(N.timeZone=n,N.clazzEnrolmentUid=i,N.clazzEnrolmentPersonUid=o,N.clazzEnrolmentClazzUid=r,N.clazzEnrolmentDateJoined=s,N.clazzEnrolmentDateLeft=a,N.clazzEnrolmentRole=c,N.clazzEnrolmentAttendancePercentage=l,N.clazzEnrolmentActive=u,N.clazzEnrolmentLeavingReasonUid=h,N.clazzEnrolmentOutcome=d,N.clazzEnrolmentLocalChangeSeqNum=p,N.clazzEnrolmentMasterChangeSeqNum=_,N.clazzEnrolmentLastChangedBy=m,N.clazzEnrolmentLct=f,!C){var T=new Nat;T.leavingReasonUid=$,T.leavingReasonTitle=E,T.leavingReasonMCSN=y,T.leavingReasonCSN=b,T.leavingReasonLCB=S,T.leavingReasonLct=v,N.leavingReason=T}return N}));var e}function mu(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$enrolmentUid=t,this.local$_stmt=e}function fu(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$endDate=t,this.local$closure$updateTime=e,this.local$closure$clazzEnrolmentUid=n,this.local$_stmt=i}function gu(t,e,n){return function(i,o,r){var s=new fu(t,e,n,i,o);return r?s:s.doResume(null)}}function $u(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$clazzEnrolmentUid=e,this.local$endDate=n,this.local$updateTime=i}function Eu(t,e){this.this$ClazzEnrolmentDao_JdbcKt=t,this.closure$personUid=e,gt.call(this)}function yu(t){return mt(t,(e=t,function(t){var n=e.getFloat_61zpoe$("attendance"),i=e.getLong_61zpoe$("clazzEnrolmentUid"),o=e.getLong_61zpoe$("clazzEnrolmentPersonUid"),r=e.getLong_61zpoe$("clazzEnrolmentClazzUid"),s=e.getLong_61zpoe$("clazzEnrolmentDateJoined"),a=e.getLong_61zpoe$("clazzEnrolmentDateLeft"),c=e.getInt_61zpoe$("clazzEnrolmentRole"),l=e.getFloat_61zpoe$("clazzEnrolmentAttendancePercentage"),u=e.getBoolean_61zpoe$("clazzEnrolmentActive"),h=e.getLong_61zpoe$("clazzEnrolmentLeavingReasonUid"),d=e.getInt_61zpoe$("clazzEnrolmentOutcome"),p=e.getLong_61zpoe$("clazzEnrolmentLocalChangeSeqNum"),_=e.getLong_61zpoe$("clazzEnrolmentMasterChangeSeqNum"),m=e.getInt_61zpoe$("clazzEnrolmentLastChangedBy"),f=e.getLong_61zpoe$("clazzEnrolmentLct"),g=0,$=e.getLong_61zpoe$("clazzUid");e.wasNull()&&(g=g+1|0);var E=e.getString_61zpoe$("clazzName");e.wasNull()&&(g=g+1|0);var y=e.getString_61zpoe$("clazzDesc");e.wasNull()&&(g=g+1|0);var b=e.getFloat_61zpoe$("attendanceAverage");e.wasNull()&&(g=g+1|0);var S=e.getLong_61zpoe$("clazzHolidayUMCalendarUid");e.wasNull()&&(g=g+1|0);var v=e.getLong_61zpoe$("clazzScheuleUMCalendarUid");e.wasNull()&&(g=g+1|0);var C=e.getBoolean_61zpoe$("isClazzActive");e.wasNull()&&(g=g+1|0);var N=e.getLong_61zpoe$("clazzLocationUid");e.wasNull()&&(g=g+1|0);var T=e.getLong_61zpoe$("clazzStartTime");e.wasNull()&&(g=g+1|0);var L=e.getLong_61zpoe$("clazzEndTime");e.wasNull()&&(g=g+1|0);var z=e.getLong_61zpoe$("clazzFeatures");e.wasNull()&&(g=g+1|0);var w=e.getLong_61zpoe$("clazzSchoolUid");e.wasNull()&&(g=g+1|0);var O=e.getInt_61zpoe$("clazzEnrolmentPolicy");e.wasNull()&&(g=g+1|0);var R=e.getLong_61zpoe$("clazzTerminologyUid");e.wasNull()&&(g=g+1|0);var A=e.getLong_61zpoe$("clazzMasterChangeSeqNum");e.wasNull()&&(g=g+1|0);var x=e.getLong_61zpoe$("clazzLocalChangeSeqNum");e.wasNull()&&(g=g+1|0);var I=e.getInt_61zpoe$("clazzLastChangedBy");e.wasNull()&&(g=g+1|0);var U=e.getLong_61zpoe$("clazzLct");e.wasNull()&&(g=g+1|0);var D=e.getString_61zpoe$("clazzTimeZone");e.wasNull()&&(g=g+1|0);var P=e.getLong_61zpoe$("clazzStudentsPersonGroupUid");e.wasNull()&&(g=g+1|0);var M=e.getLong_61zpoe$("clazzTeachersPersonGroupUid");e.wasNull()&&(g=g+1|0);var k=e.getLong_61zpoe$("clazzPendingStudentsPersonGroupUid");e.wasNull()&&(g=g+1|0);var j=e.getLong_61zpoe$("clazzParentsPersonGroupUid");e.wasNull()&&(g=g+1|0);var G=e.getString_61zpoe$("clazzCode");e.wasNull()&&(g=g+1|0);var q=24===g,F=new t8;if(F.attendance=n,F.clazzEnrolmentUid=i,F.clazzEnrolmentPersonUid=o,F.clazzEnrolmentClazzUid=r,F.clazzEnrolmentDateJoined=s,F.clazzEnrolmentDateLeft=a,F.clazzEnrolmentRole=c,F.clazzEnrolmentAttendancePercentage=l,F.clazzEnrolmentActive=u,F.clazzEnrolmentLeavingReasonUid=h,F.clazzEnrolmentOutcome=d,F.clazzEnrolmentLocalChangeSeqNum=p,F.clazzEnrolmentMasterChangeSeqNum=_,F.clazzEnrolmentLastChangedBy=m,F.clazzEnrolmentLct=f,!q){var B=new s5;B.clazzUid=$,B.clazzName=E,B.clazzDesc=y,B.attendanceAverage=b,B.clazzHolidayUMCalendarUid=S,B.clazzScheuleUMCalendarUid=v,B.isClazzActive=C,B.clazzLocationUid=N,B.clazzStartTime=T,B.clazzEndTime=L,B.clazzFeatures=z,B.clazzSchoolUid=w,B.clazzEnrolmentPolicy=O,B.clazzTerminologyUid=R,B.clazzMasterChangeSeqNum=A,B.clazzLocalChangeSeqNum=x,B.clazzLastChangedBy=I,B.clazzLct=U,B.clazzTimeZone=D,B.clazzStudentsPersonGroupUid=P,B.clazzTeachersPersonGroupUid=M,B.clazzPendingStudentsPersonGroupUid=k,B.clazzParentsPersonGroupUid=j,B.clazzCode=G,F.clazz=B}return F}));var e}function bu(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$personUid=t,this.local$closure$_limit=e,this.local$closure$_offset=n,this.local$_stmt=i}function Su(t,e,n){return function(i,o,r){var s=new bu(t,e,n,i,o);return r?s:s.doResume(null)}}function vu(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$this$ClazzEnrolmentDao_JdbcKt=t,this.local$closure$personUid=e,this.local$closure$_limit=n,this.local$closure$_offset=i}function Cu(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function Nu(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$personUid=t,this.local$_stmt=e}function Tu(t){return function(e,n,i){var o=new Nu(t,e,n);return i?o:o.doResume(null)}}function Lu(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$ClazzEnrolmentDao_JdbcKt=t,this.local$closure$personUid=e}function zu(t){return lt(t,X,(e=t,function(t){return e.getLong_za3lpa$(1)}));var e}function wu(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$selectedPerson=t,this.local$closure$selectedClazz=e,this.local$closure$selectedEnrolment=n,this.local$_stmt=i}function Ou(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("clazzEnrolmentUid"),i=e.getLong_61zpoe$("clazzEnrolmentPersonUid"),o=e.getLong_61zpoe$("clazzEnrolmentClazzUid"),r=e.getLong_61zpoe$("clazzEnrolmentDateJoined"),s=e.getLong_61zpoe$("clazzEnrolmentDateLeft"),a=e.getInt_61zpoe$("clazzEnrolmentRole"),c=e.getFloat_61zpoe$("clazzEnrolmentAttendancePercentage"),l=e.getBoolean_61zpoe$("clazzEnrolmentActive"),u=e.getLong_61zpoe$("clazzEnrolmentLeavingReasonUid"),h=e.getInt_61zpoe$("clazzEnrolmentOutcome"),d=e.getLong_61zpoe$("clazzEnrolmentLocalChangeSeqNum"),p=e.getLong_61zpoe$("clazzEnrolmentMasterChangeSeqNum"),_=e.getInt_61zpoe$("clazzEnrolmentLastChangedBy"),m=e.getLong_61zpoe$("clazzEnrolmentLct"),f=0,g=e.getLong_61zpoe$("clazzUid");e.wasNull()&&(f=f+1|0);var $=e.getString_61zpoe$("clazzName");e.wasNull()&&(f=f+1|0);var E=e.getString_61zpoe$("clazzDesc");e.wasNull()&&(f=f+1|0);var y=e.getFloat_61zpoe$("attendanceAverage");e.wasNull()&&(f=f+1|0);var b=e.getLong_61zpoe$("clazzHolidayUMCalendarUid");e.wasNull()&&(f=f+1|0);var S=e.getLong_61zpoe$("clazzScheuleUMCalendarUid");e.wasNull()&&(f=f+1|0);var v=e.getBoolean_61zpoe$("isClazzActive");e.wasNull()&&(f=f+1|0);var C=e.getLong_61zpoe$("clazzLocationUid");e.wasNull()&&(f=f+1|0);var N=e.getLong_61zpoe$("clazzStartTime");e.wasNull()&&(f=f+1|0);var T=e.getLong_61zpoe$("clazzEndTime");e.wasNull()&&(f=f+1|0);var L=e.getLong_61zpoe$("clazzFeatures");e.wasNull()&&(f=f+1|0);var z=e.getLong_61zpoe$("clazzSchoolUid");e.wasNull()&&(f=f+1|0);var w=e.getInt_61zpoe$("clazzEnrolmentPolicy");e.wasNull()&&(f=f+1|0);var O=e.getLong_61zpoe$("clazzTerminologyUid");e.wasNull()&&(f=f+1|0);var R=e.getLong_61zpoe$("clazzMasterChangeSeqNum");e.wasNull()&&(f=f+1|0);var A=e.getLong_61zpoe$("clazzLocalChangeSeqNum");e.wasNull()&&(f=f+1|0);var x=e.getInt_61zpoe$("clazzLastChangedBy");e.wasNull()&&(f=f+1|0);var I=e.getLong_61zpoe$("clazzLct");e.wasNull()&&(f=f+1|0);var U=e.getString_61zpoe$("clazzTimeZone");e.wasNull()&&(f=f+1|0);var D=e.getLong_61zpoe$("clazzStudentsPersonGroupUid");e.wasNull()&&(f=f+1|0);var P=e.getLong_61zpoe$("clazzTeachersPersonGroupUid");e.wasNull()&&(f=f+1|0);var M=e.getLong_61zpoe$("clazzPendingStudentsPersonGroupUid");e.wasNull()&&(f=f+1|0);var k=e.getLong_61zpoe$("clazzParentsPersonGroupUid");e.wasNull()&&(f=f+1|0);var j=e.getString_61zpoe$("clazzCode");e.wasNull()&&(f=f+1|0);var G=24===f,q=new H5;if(q.clazzEnrolmentUid=n,q.clazzEnrolmentPersonUid=i,q.clazzEnrolmentClazzUid=o,q.clazzEnrolmentDateJoined=r,q.clazzEnrolmentDateLeft=s,q.clazzEnrolmentRole=a,q.clazzEnrolmentAttendancePercentage=c,q.clazzEnrolmentActive=l,q.clazzEnrolmentLeavingReasonUid=u,q.clazzEnrolmentOutcome=h,q.clazzEnrolmentLocalChangeSeqNum=d,q.clazzEnrolmentMasterChangeSeqNum=p,q.clazzEnrolmentLastChangedBy=_,q.clazzEnrolmentLct=m,!G){var F=new s5;F.clazzUid=g,F.clazzName=$,F.clazzDesc=E,F.attendanceAverage=y,F.clazzHolidayUMCalendarUid=b,F.clazzScheuleUMCalendarUid=S,F.isClazzActive=v,F.clazzLocationUid=C,F.clazzStartTime=N,F.clazzEndTime=T,F.clazzFeatures=L,F.clazzSchoolUid=z,F.clazzEnrolmentPolicy=w,F.clazzTerminologyUid=O,F.clazzMasterChangeSeqNum=R,F.clazzLocalChangeSeqNum=A,F.clazzLastChangedBy=x,F.clazzLct=I,F.clazzTimeZone=U,F.clazzStudentsPersonGroupUid=D,F.clazzTeachersPersonGroupUid=P,F.clazzPendingStudentsPersonGroupUid=M,F.clazzParentsPersonGroupUid=k,F.clazzCode=j,q.clazz=F}return q}));var e}function Ru(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$personUid=t,this.local$_stmt=e}function Au(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("clazzEnrolmentUid"),i=e.getLong_61zpoe$("clazzEnrolmentPersonUid"),o=e.getLong_61zpoe$("clazzEnrolmentClazzUid"),r=e.getLong_61zpoe$("clazzEnrolmentDateJoined"),s=e.getLong_61zpoe$("clazzEnrolmentDateLeft"),a=e.getInt_61zpoe$("clazzEnrolmentRole"),c=e.getFloat_61zpoe$("clazzEnrolmentAttendancePercentage"),l=e.getBoolean_61zpoe$("clazzEnrolmentActive"),u=e.getLong_61zpoe$("clazzEnrolmentLeavingReasonUid"),h=e.getInt_61zpoe$("clazzEnrolmentOutcome"),d=e.getLong_61zpoe$("clazzEnrolmentLocalChangeSeqNum"),p=e.getLong_61zpoe$("clazzEnrolmentMasterChangeSeqNum"),_=e.getInt_61zpoe$("clazzEnrolmentLastChangedBy"),m=e.getLong_61zpoe$("clazzEnrolmentLct"),f=0,g=e.getLong_61zpoe$("personUid");e.wasNull()&&(f=f+1|0);var $=e.getString_61zpoe$("username");e.wasNull()&&(f=f+1|0);var E=e.getString_61zpoe$("firstNames");e.wasNull()&&(f=f+1|0);var y=e.getString_61zpoe$("lastName");e.wasNull()&&(f=f+1|0);var b=e.getString_61zpoe$("emailAddr");e.wasNull()&&(f=f+1|0);var S=e.getString_61zpoe$("phoneNum");e.wasNull()&&(f=f+1|0);var v=e.getInt_61zpoe$("gender");e.wasNull()&&(f=f+1|0);var C=e.getBoolean_61zpoe$("active");e.wasNull()&&(f=f+1|0);var N=e.getBoolean_61zpoe$("admin");e.wasNull()&&(f=f+1|0);var T=e.getString_61zpoe$("personNotes");e.wasNull()&&(f=f+1|0);var L=e.getString_61zpoe$("fatherName");e.wasNull()&&(f=f+1|0);var z=e.getString_61zpoe$("fatherNumber");e.wasNull()&&(f=f+1|0);var w=e.getString_61zpoe$("motherName");e.wasNull()&&(f=f+1|0);var O=e.getString_61zpoe$("motherNum");e.wasNull()&&(f=f+1|0);var R=e.getLong_61zpoe$("dateOfBirth");e.wasNull()&&(f=f+1|0);var A=e.getString_61zpoe$("personAddress");e.wasNull()&&(f=f+1|0);var x=e.getString_61zpoe$("personOrgId");e.wasNull()&&(f=f+1|0);var I=e.getLong_61zpoe$("personGroupUid");e.wasNull()&&(f=f+1|0);var U=e.getLong_61zpoe$("personMasterChangeSeqNum");e.wasNull()&&(f=f+1|0);var D=e.getLong_61zpoe$("personLocalChangeSeqNum");e.wasNull()&&(f=f+1|0);var P=e.getInt_61zpoe$("personLastChangedBy");e.wasNull()&&(f=f+1|0);var M=e.getLong_61zpoe$("personLct");e.wasNull()&&(f=f+1|0);var k=e.getString_61zpoe$("personCountry");e.wasNull()&&(f=f+1|0);var j=e.getInt_61zpoe$("personType");e.wasNull()&&(f=f+1|0);var G=24===f,q=new f8;if(q.clazzEnrolmentUid=n,q.clazzEnrolmentPersonUid=i,q.clazzEnrolmentClazzUid=o,q.clazzEnrolmentDateJoined=r,q.clazzEnrolmentDateLeft=s,q.clazzEnrolmentRole=a,q.clazzEnrolmentAttendancePercentage=c,q.clazzEnrolmentActive=l,q.clazzEnrolmentLeavingReasonUid=u,q.clazzEnrolmentOutcome=h,q.clazzEnrolmentLocalChangeSeqNum=d,q.clazzEnrolmentMasterChangeSeqNum=p,q.clazzEnrolmentLastChangedBy=_,q.clazzEnrolmentLct=m,!G){var F=new zct;F.personUid=g,F.username=$,F.firstNames=E,F.lastName=y,F.emailAddr=b,F.phoneNum=S,F.gender=v,F.active=C,F.admin=N,F.personNotes=T,F.fatherName=L,F.fatherNumber=z,F.motherName=w,F.motherNum=O,F.dateOfBirth=R,F.personAddress=A,F.personOrgId=x,F.personGroupUid=I,F.personMasterChangeSeqNum=U,F.personLocalChangeSeqNum=D,F.personLastChangedBy=P,F.personLct=M,F.personCountry=k,F.personType=j,q.person=F}return q}));var e}function xu(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$closure$date=e,this.local$closure$roleFilter=n,this.local$closure$personUidFilter=i,this.local$_stmt=o}function Iu(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("clazzEnrolmentUid"),i=e.getLong_61zpoe$("clazzEnrolmentPersonUid"),o=e.getLong_61zpoe$("clazzEnrolmentClazzUid"),r=e.getLong_61zpoe$("clazzEnrolmentDateJoined"),s=e.getLong_61zpoe$("clazzEnrolmentDateLeft"),a=e.getInt_61zpoe$("clazzEnrolmentRole"),c=e.getFloat_61zpoe$("clazzEnrolmentAttendancePercentage"),l=e.getBoolean_61zpoe$("clazzEnrolmentActive"),u=e.getLong_61zpoe$("clazzEnrolmentLeavingReasonUid"),h=e.getInt_61zpoe$("clazzEnrolmentOutcome"),d=e.getLong_61zpoe$("clazzEnrolmentLocalChangeSeqNum"),p=e.getLong_61zpoe$("clazzEnrolmentMasterChangeSeqNum"),_=e.getInt_61zpoe$("clazzEnrolmentLastChangedBy"),m=e.getLong_61zpoe$("clazzEnrolmentLct"),f=new M5;return f.clazzEnrolmentUid=n,f.clazzEnrolmentPersonUid=i,f.clazzEnrolmentClazzUid=o,f.clazzEnrolmentDateJoined=r,f.clazzEnrolmentDateLeft=s,f.clazzEnrolmentRole=a,f.clazzEnrolmentAttendancePercentage=c,f.clazzEnrolmentActive=l,f.clazzEnrolmentLeavingReasonUid=u,f.clazzEnrolmentOutcome=h,f.clazzEnrolmentLocalChangeSeqNum=d,f.clazzEnrolmentMasterChangeSeqNum=p,f.clazzEnrolmentLastChangedBy=_,f.clazzEnrolmentLct=m,f}));var e}function Uu(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function Du(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("clazzEnrolmentUid"),i=e.getLong_61zpoe$("clazzEnrolmentPersonUid"),o=e.getLong_61zpoe$("clazzEnrolmentClazzUid"),r=e.getLong_61zpoe$("clazzEnrolmentDateJoined"),s=e.getLong_61zpoe$("clazzEnrolmentDateLeft"),a=e.getInt_61zpoe$("clazzEnrolmentRole"),c=e.getFloat_61zpoe$("clazzEnrolmentAttendancePercentage"),l=e.getBoolean_61zpoe$("clazzEnrolmentActive"),u=e.getLong_61zpoe$("clazzEnrolmentLeavingReasonUid"),h=e.getInt_61zpoe$("clazzEnrolmentOutcome"),d=e.getLong_61zpoe$("clazzEnrolmentLocalChangeSeqNum"),p=e.getLong_61zpoe$("clazzEnrolmentMasterChangeSeqNum"),_=e.getInt_61zpoe$("clazzEnrolmentLastChangedBy"),m=e.getLong_61zpoe$("clazzEnrolmentLct"),f=new M5;return f.clazzEnrolmentUid=n,f.clazzEnrolmentPersonUid=i,f.clazzEnrolmentClazzUid=o,f.clazzEnrolmentDateJoined=r,f.clazzEnrolmentDateLeft=s,f.clazzEnrolmentRole=a,f.clazzEnrolmentAttendancePercentage=c,f.clazzEnrolmentActive=l,f.clazzEnrolmentLeavingReasonUid=u,f.clazzEnrolmentOutcome=h,f.clazzEnrolmentLocalChangeSeqNum=d,f.clazzEnrolmentMasterChangeSeqNum=p,f.clazzEnrolmentLastChangedBy=_,f.clazzEnrolmentLct=m,f}));var e}function Pu(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function Mu(t){return function(e,n,i){var o=new Pu(t,e,n);return i?o:o.doResume(null)}}function ku(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$ClazzEnrolmentDao_JdbcKt=t,this.local$closure$uid=e}function ju(t,e,n,i,o,r,s){N.call(this,s),this.exceptionState_0=1,this.local$closure$active=t,this.local$closure$changeTime=e,this.local$closure$personUid=n,this.local$closure$clazzUid=i,this.local$closure$roleId=o,this.local$_stmt=r}function Gu(t,e,n,i,o,r,s,a){this.this$ClazzEnrolmentDao_JdbcKt=t,this.closure$clazzUid=e,this.closure$accountPersonUid=n,this.closure$roleId=i,this.closure$filter=o,this.closure$currentTime=r,this.closure$searchText=s,this.closure$sortOrder=a,gt.call(this)}function qu(t){return mt(t,(e=t,function(t){var n=e.getFloat_61zpoe$("attendance"),i=e.getLong_61zpoe$("earliestJoinDate"),o=e.getLong_61zpoe$("latestDateLeft"),r=e.getInt_61zpoe$("enrolmentRole"),s=e.getLong_61zpoe$("personUid"),a=e.getString_61zpoe$("username"),c=e.getString_61zpoe$("firstNames"),l=e.getString_61zpoe$("lastName"),u=e.getString_61zpoe$("emailAddr"),h=e.getString_61zpoe$("phoneNum"),d=e.getInt_61zpoe$("gender"),p=e.getBoolean_61zpoe$("active"),_=e.getBoolean_61zpoe$("admin"),m=e.getString_61zpoe$("personNotes"),f=e.getString_61zpoe$("fatherName"),g=e.getString_61zpoe$("fatherNumber"),$=e.getString_61zpoe$("motherName"),E=e.getString_61zpoe$("motherNum"),y=e.getLong_61zpoe$("dateOfBirth"),b=e.getString_61zpoe$("personAddress"),S=e.getString_61zpoe$("personOrgId"),v=e.getLong_61zpoe$("personGroupUid"),C=e.getLong_61zpoe$("personMasterChangeSeqNum"),N=e.getLong_61zpoe$("personLocalChangeSeqNum"),T=e.getInt_61zpoe$("personLastChangedBy"),L=e.getLong_61zpoe$("personLct"),z=e.getString_61zpoe$("personCountry"),w=e.getInt_61zpoe$("personType"),O=new Qlt;return O.attendance=n,O.earliestJoinDate=i,O.latestDateLeft=o,O.enrolmentRole=r,O.personUid=s,O.username=a,O.firstNames=c,O.lastName=l,O.emailAddr=u,O.phoneNum=h,O.gender=d,O.active=p,O.admin=_,O.personNotes=m,O.fatherName=f,O.fatherNumber=g,O.motherName=$,O.motherNum=E,O.dateOfBirth=y,O.personAddress=b,O.personOrgId=S,O.personGroupUid=v,O.personMasterChangeSeqNum=C,O.personLocalChangeSeqNum=N,O.personLastChangedBy=T,O.personLct=L,O.personCountry=z,O.personType=w,O}));var e}function Fu(t,e,n,i,o,r,s,a,c,l,u){N.call(this,u),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$closure$accountPersonUid=e,this.local$closure$roleId=n,this.local$closure$filter=i,this.local$closure$currentTime=o,this.local$closure$searchText=r,this.local$closure$sortOrder=s,this.local$closure$_limit=a,this.local$closure$_offset=c,this.local$_stmt=l}function Bu(t,e,n,i,o,r,s,a,c){return function(l,u,h){var d=new Fu(t,e,n,i,o,r,s,a,c,l,u);return h?d:d.doResume(null)}}function Wu(t,e,n,i,o,r,s,a,c,l,u){N.call(this,u),this.exceptionState_0=1,this.local$this$ClazzEnrolmentDao_JdbcKt=t,this.local$closure$clazzUid=e,this.local$closure$accountPersonUid=n,this.local$closure$roleId=i,this.local$closure$filter=o,this.local$closure$currentTime=r,this.local$closure$searchText=s,this.local$closure$sortOrder=a,this.local$closure$_limit=c,this.local$closure$_offset=l}function Hu(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function Vu(t,e,n,i,o,r,s,a,c){N.call(this,c),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$closure$accountPersonUid=e,this.local$closure$roleId=n,this.local$closure$filter=i,this.local$closure$currentTime=o,this.local$closure$searchText=r,this.local$closure$sortOrder=s,this.local$_stmt=a}function Ku(t,e,n,i,o,r,s){return function(a,c,l){var u=new Vu(t,e,n,i,o,r,s,a,c);return l?u:u.doResume(null)}}function Xu(t,e,n,i,o,r,s,a,c){N.call(this,c),this.exceptionState_0=1,this.local$this$ClazzEnrolmentDao_JdbcKt=t,this.local$closure$clazzUid=e,this.local$closure$accountPersonUid=n,this.local$closure$roleId=i,this.local$closure$filter=o,this.local$closure$currentTime=r,this.local$closure$searchText=s,this.local$closure$sortOrder=a}function Ju(t,e,n,i,o,r,s){N.call(this,s),this.exceptionState_0=1,this.local$closure$newRole=t,this.local$closure$updateTime=e,this.local$closure$personUid=n,this.local$closure$clazzUid=i,this.local$closure$oldRole=o,this.local$_stmt=r}function Yu(t){pt.call(this,t)}function Qu(t,e){Wl.call(this),this._db_0=t,this._dao_0=e}function Zu(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function th(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function eh(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$clazzEnrolmentUid=e,this.local$endDate=n,this.local$updateTime=i}function nh(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function ih(t,e,n,i,o,r){Wl.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function oh(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function rh(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function sh(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$personUid=e,this.local$clazzUid=n}function ah(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$enrolmentUid=e}function ch(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$clazzEnrolmentUid=e,this.local$endDate=n,this.local$updateTime=i}function lh(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function uh(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$selectedClazz=e,this.local$selectedPerson=n,this.local$selectedEnrolment=i}function hh(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$personUid=e}function dh(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.$this=t,this.local$clazzUid=e,this.local$date=n,this.local$roleFilter=i,this.local$personUidFilter=o}function ph(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$uid=e}function _h(t,e,n,i,o,r,s){N.call(this,s),this.exceptionState_0=1,this.$this=t,this.local$personUid=e,this.local$clazzUid=n,this.local$roleId=i,this.local$active=o,this.local$changeTime=r}function mh(t,e,n,i,o,r,s){N.call(this,s),this.exceptionState_0=1,this.$this=t,this.local$personUid=e,this.local$clazzUid=n,this.local$newRole=i,this.local$oldRole=o,this.local$updateTime=r}function fh(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function gh(){}function $h(t){gh.call(this),this._db=t,this._insertAdapterClazzLogAttendanceRecord_=new xh(this._db)}function Eh(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entities=e}function yh(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function bh(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$entities=t,this.local$tmp$=void 0,this.local$_stmt=e}function Sh(t){return function(e,n,i){var o=new bh(t,e,n);return i?o:o.doResume(null)}}function vh(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entities=e}function Ch(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function Nh(t){return function(e,n,i){var o=new Ch(t,e,n);return i?o:o.doResume(null)}}function Th(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function Lh(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function zh(t,e,n){var i=new Lh(t,e);return n?i:i.doResume(null)}function wh(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function Oh(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("clazzLogAttendanceRecordUid"),i=e.getLong_61zpoe$("clazzLogAttendanceRecordClazzLogUid"),o=e.getLong_61zpoe$("clazzLogAttendanceRecordPersonUid"),r=e.getInt_61zpoe$("attendanceStatus"),s=e.getLong_61zpoe$("clazzLogAttendanceRecordMasterChangeSeqNum"),a=e.getLong_61zpoe$("clazzLogAttendanceRecordLocalChangeSeqNum"),c=e.getInt_61zpoe$("clazzLogAttendanceRecordLastChangedBy"),l=e.getLong_61zpoe$("clazzLogAttendanceRecordLastChangedTime"),u=new A8;return u.clazzLogAttendanceRecordUid=n,u.clazzLogAttendanceRecordClazzLogUid=i,u.clazzLogAttendanceRecordPersonUid=o,u.attendanceStatus=r,u.clazzLogAttendanceRecordMasterChangeSeqNum=s,u.clazzLogAttendanceRecordLocalChangeSeqNum=a,u.clazzLogAttendanceRecordLastChangedBy=c,u.clazzLogAttendanceRecordLastChangedTime=l,u}));var e}function Rh(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("clazzLogAttendanceRecordUid"),i=e.getLong_61zpoe$("clazzLogAttendanceRecordClazzLogUid"),o=e.getLong_61zpoe$("clazzLogAttendanceRecordPersonUid"),r=e.getInt_61zpoe$("attendanceStatus"),s=e.getLong_61zpoe$("clazzLogAttendanceRecordMasterChangeSeqNum"),a=e.getLong_61zpoe$("clazzLogAttendanceRecordLocalChangeSeqNum"),c=e.getInt_61zpoe$("clazzLogAttendanceRecordLastChangedBy"),l=e.getLong_61zpoe$("clazzLogAttendanceRecordLastChangedTime"),u=0,h=e.getLong_61zpoe$("personUid");e.wasNull()&&(u=u+1|0);var d=e.getString_61zpoe$("username");e.wasNull()&&(u=u+1|0);var p=e.getString_61zpoe$("firstNames");e.wasNull()&&(u=u+1|0);var _=e.getString_61zpoe$("lastName");e.wasNull()&&(u=u+1|0);var m=e.getString_61zpoe$("emailAddr");e.wasNull()&&(u=u+1|0);var f=e.getString_61zpoe$("phoneNum");e.wasNull()&&(u=u+1|0);var g=e.getInt_61zpoe$("gender");e.wasNull()&&(u=u+1|0);var $=e.getBoolean_61zpoe$("active");e.wasNull()&&(u=u+1|0);var E=e.getBoolean_61zpoe$("admin");e.wasNull()&&(u=u+1|0);var y=e.getString_61zpoe$("personNotes");e.wasNull()&&(u=u+1|0);var b=e.getString_61zpoe$("fatherName");e.wasNull()&&(u=u+1|0);var S=e.getString_61zpoe$("fatherNumber");e.wasNull()&&(u=u+1|0);var v=e.getString_61zpoe$("motherName");e.wasNull()&&(u=u+1|0);var C=e.getString_61zpoe$("motherNum");e.wasNull()&&(u=u+1|0);var N=e.getLong_61zpoe$("dateOfBirth");e.wasNull()&&(u=u+1|0);var T=e.getString_61zpoe$("personAddress");e.wasNull()&&(u=u+1|0);var L=e.getString_61zpoe$("personOrgId");e.wasNull()&&(u=u+1|0);var z=e.getLong_61zpoe$("personGroupUid");e.wasNull()&&(u=u+1|0);var w=e.getLong_61zpoe$("personMasterChangeSeqNum");e.wasNull()&&(u=u+1|0);var O=e.getLong_61zpoe$("personLocalChangeSeqNum");e.wasNull()&&(u=u+1|0);var R=e.getInt_61zpoe$("personLastChangedBy");e.wasNull()&&(u=u+1|0);var A=e.getLong_61zpoe$("personLct");e.wasNull()&&(u=u+1|0);var x=e.getString_61zpoe$("personCountry");e.wasNull()&&(u=u+1|0);var I=e.getInt_61zpoe$("personType");e.wasNull()&&(u=u+1|0);var U=24===u,D=new j8;if(D.clazzLogAttendanceRecordUid=n,D.clazzLogAttendanceRecordClazzLogUid=i,D.clazzLogAttendanceRecordPersonUid=o,D.attendanceStatus=r,D.clazzLogAttendanceRecordMasterChangeSeqNum=s,D.clazzLogAttendanceRecordLocalChangeSeqNum=a,D.clazzLogAttendanceRecordLastChangedBy=c,D.clazzLogAttendanceRecordLastChangedTime=l,!U){var P=new zct;P.personUid=h,P.username=d,P.firstNames=p,P.lastName=_,P.emailAddr=m,P.phoneNum=f,P.gender=g,P.active=$,P.admin=E,P.personNotes=y,P.fatherName=b,P.fatherNumber=S,P.motherName=v,P.motherNum=C,P.dateOfBirth=N,P.personAddress=T,P.personOrgId=L,P.personGroupUid=z,P.personMasterChangeSeqNum=w,P.personLocalChangeSeqNum=O,P.personLastChangedBy=R,P.personLct=A,P.personCountry=x,P.personType=I,D.person=P}return D}));var e}function Ah(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$clazzLogUid=t,this.local$_stmt=e}function xh(t){pt.call(this,t)}function Ih(t,e){gh.call(this),this._db_0=t,this._dao_0=e}function Uh(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function Dh(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function Ph(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_pkManager=void 0,this.local$_generatedPks=void 0,this.local$$receiver=void 0,this.local$element=void 0,this.local$entities=e}function Mh(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entities=e}function kh(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function jh(t,e,n,i,o,r){gh.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function Gh(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function qh(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function Fh(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entities=e}function Bh(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entities=e}function Wh(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$clazzLogUid=e}function Hh(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Vh(){}function Kh(t){Vh.call(this),this._db=t,this._insertAdapterClazzLog_upsert=new Id(this._db),this._insertAdapterClazzLog_=new Ud(this._db)}function Xh(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Jh(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$clazzLog=t,this.local$_stmt=e}function Yh(t){return function(e,n,i){var o=new Jh(t,e,n);return i?o:o.doResume(null)}}function Qh(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$clazzLog=e}function Zh(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function td(t){return function(e,n,i){var o=new Zh(t,e,n);return i?o:o.doResume(null)}}function ed(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function nd(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function id(t,e,n){var i=new nd(t,e);return n?i:i.doResume(null)}function od(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function rd(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("clazzLogUid"),i=e.getLong_61zpoe$("clazzLogClazzUid"),o=e.getLong_61zpoe$("logDate"),r=e.getLong_61zpoe$("timeRecorded"),s=e.getBoolean_61zpoe$("clazzLogDone"),a=e.getString_61zpoe$("cancellationNote"),c=e.getBoolean_61zpoe$("clazzLogCancelled"),l=e.getInt_61zpoe$("clazzLogNumPresent"),u=e.getInt_61zpoe$("clazzLogNumAbsent"),h=e.getInt_61zpoe$("clazzLogNumPartial"),d=e.getLong_61zpoe$("clazzLogScheduleUid"),p=e.getInt_61zpoe$("clazzLogStatusFlag"),_=e.getLong_61zpoe$("clazzLogMSQN"),m=e.getLong_61zpoe$("clazzLogLCSN"),f=e.getInt_61zpoe$("clazzLogLCB"),g=e.getLong_61zpoe$("clazzLogLastChangedTime"),$=new C8;return $.clazzLogUid=n,$.clazzLogClazzUid=i,$.logDate=o,$.timeRecorded=r,$.clazzLogDone=s,$.cancellationNote=a,$.clazzLogCancelled=c,$.clazzLogNumPresent=l,$.clazzLogNumAbsent=u,$.clazzLogNumPartial=h,$.clazzLogScheduleUid=d,$.clazzLogStatusFlag=p,$.clazzLogMSQN=_,$.clazzLogLCSN=m,$.clazzLogLCB=f,$.clazzLogLastChangedTime=g,$}));var e}function sd(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("clazzLogUid"),i=e.getLong_61zpoe$("clazzLogClazzUid"),o=e.getLong_61zpoe$("logDate"),r=e.getLong_61zpoe$("timeRecorded"),s=e.getBoolean_61zpoe$("clazzLogDone"),a=e.getString_61zpoe$("cancellationNote"),c=e.getBoolean_61zpoe$("clazzLogCancelled"),l=e.getInt_61zpoe$("clazzLogNumPresent"),u=e.getInt_61zpoe$("clazzLogNumAbsent"),h=e.getInt_61zpoe$("clazzLogNumPartial"),d=e.getLong_61zpoe$("clazzLogScheduleUid"),p=e.getInt_61zpoe$("clazzLogStatusFlag"),_=e.getLong_61zpoe$("clazzLogMSQN"),m=e.getLong_61zpoe$("clazzLogLCSN"),f=e.getInt_61zpoe$("clazzLogLCB"),g=e.getLong_61zpoe$("clazzLogLastChangedTime"),$=new C8;return $.clazzLogUid=n,$.clazzLogClazzUid=i,$.logDate=o,$.timeRecorded=r,$.clazzLogDone=s,$.cancellationNote=a,$.clazzLogCancelled=c,$.clazzLogNumPresent=l,$.clazzLogNumAbsent=u,$.clazzLogNumPartial=h,$.clazzLogScheduleUid=d,$.clazzLogStatusFlag=p,$.clazzLogMSQN=_,$.clazzLogLCSN=m,$.clazzLogLCB=f,$.clazzLogLastChangedTime=g,$}));var e}function ad(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function cd(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("clazzLogUid"),i=e.getLong_61zpoe$("clazzLogClazzUid"),o=e.getLong_61zpoe$("logDate"),r=e.getLong_61zpoe$("timeRecorded"),s=e.getBoolean_61zpoe$("clazzLogDone"),a=e.getString_61zpoe$("cancellationNote"),c=e.getBoolean_61zpoe$("clazzLogCancelled"),l=e.getInt_61zpoe$("clazzLogNumPresent"),u=e.getInt_61zpoe$("clazzLogNumAbsent"),h=e.getInt_61zpoe$("clazzLogNumPartial"),d=e.getLong_61zpoe$("clazzLogScheduleUid"),p=e.getInt_61zpoe$("clazzLogStatusFlag"),_=e.getLong_61zpoe$("clazzLogMSQN"),m=e.getLong_61zpoe$("clazzLogLCSN"),f=e.getInt_61zpoe$("clazzLogLCB"),g=e.getLong_61zpoe$("clazzLogLastChangedTime"),$=new C8;return $.clazzLogUid=n,$.clazzLogClazzUid=i,$.logDate=o,$.timeRecorded=r,$.clazzLogDone=s,$.cancellationNote=a,$.clazzLogCancelled=c,$.clazzLogNumPresent=l,$.clazzLogNumAbsent=u,$.clazzLogNumPartial=h,$.clazzLogScheduleUid=d,$.clazzLogStatusFlag=p,$.clazzLogMSQN=_,$.clazzLogLCSN=m,$.clazzLogLCB=f,$.clazzLogLastChangedTime=g,$}));var e}function ld(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function ud(t){return function(e,n,i){var o=new ld(t,e,n);return i?o:o.doResume(null)}}function hd(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$ClazzLogDao_JdbcKt=t,this.local$closure$uid=e}function dd(t,e,n){this.this$ClazzLogDao_JdbcKt=t,this.closure$clazzUid=e,this.closure$excludeStatus=n,gt.call(this)}function pd(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("clazzLogUid"),i=e.getLong_61zpoe$("clazzLogClazzUid"),o=e.getLong_61zpoe$("logDate"),r=e.getLong_61zpoe$("timeRecorded"),s=e.getBoolean_61zpoe$("clazzLogDone"),a=e.getString_61zpoe$("cancellationNote"),c=e.getBoolean_61zpoe$("clazzLogCancelled"),l=e.getInt_61zpoe$("clazzLogNumPresent"),u=e.getInt_61zpoe$("clazzLogNumAbsent"),h=e.getInt_61zpoe$("clazzLogNumPartial"),d=e.getLong_61zpoe$("clazzLogScheduleUid"),p=e.getInt_61zpoe$("clazzLogStatusFlag"),_=e.getLong_61zpoe$("clazzLogMSQN"),m=e.getLong_61zpoe$("clazzLogLCSN"),f=e.getInt_61zpoe$("clazzLogLCB"),g=e.getLong_61zpoe$("clazzLogLastChangedTime"),$=new C8;return $.clazzLogUid=n,$.clazzLogClazzUid=i,$.logDate=o,$.timeRecorded=r,$.clazzLogDone=s,$.cancellationNote=a,$.clazzLogCancelled=c,$.clazzLogNumPresent=l,$.clazzLogNumAbsent=u,$.clazzLogNumPartial=h,$.clazzLogScheduleUid=d,$.clazzLogStatusFlag=p,$.clazzLogMSQN=_,$.clazzLogLCSN=m,$.clazzLogLCB=f,$.clazzLogLastChangedTime=g,$}));var e}function _d(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$closure$excludeStatus=e,this.local$closure$_limit=n,this.local$closure$_offset=i,this.local$_stmt=o}function md(t,e,n,i){return function(o,r,s){var a=new _d(t,e,n,i,o,r);return s?a:a.doResume(null)}}function fd(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$this$ClazzLogDao_JdbcKt=t,this.local$closure$clazzUid=e,this.local$closure$excludeStatus=n,this.local$closure$_limit=i,this.local$closure$_offset=o}function gd(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function $d(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$closure$excludeStatus=e,this.local$_stmt=n}function Ed(t,e){return function(n,i,o){var r=new $d(t,e,n,i);return o?r:r.doResume(null)}}function yd(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$this$ClazzLogDao_JdbcKt=t,this.local$closure$clazzUid=e,this.local$closure$excludeStatus=n}function bd(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("clazzLogUid"),i=e.getLong_61zpoe$("clazzLogClazzUid"),o=e.getLong_61zpoe$("logDate"),r=e.getLong_61zpoe$("timeRecorded"),s=e.getBoolean_61zpoe$("clazzLogDone"),a=e.getString_61zpoe$("cancellationNote"),c=e.getBoolean_61zpoe$("clazzLogCancelled"),l=e.getInt_61zpoe$("clazzLogNumPresent"),u=e.getInt_61zpoe$("clazzLogNumAbsent"),h=e.getInt_61zpoe$("clazzLogNumPartial"),d=e.getLong_61zpoe$("clazzLogScheduleUid"),p=e.getInt_61zpoe$("clazzLogStatusFlag"),_=e.getLong_61zpoe$("clazzLogMSQN"),m=e.getLong_61zpoe$("clazzLogLCSN"),f=e.getInt_61zpoe$("clazzLogLCB"),g=e.getLong_61zpoe$("clazzLogLastChangedTime"),$=new C8;return $.clazzLogUid=n,$.clazzLogClazzUid=i,$.logDate=o,$.timeRecorded=r,$.clazzLogDone=s,$.cancellationNote=a,$.clazzLogCancelled=c,$.clazzLogNumPresent=l,$.clazzLogNumAbsent=u,$.clazzLogNumPartial=h,$.clazzLogScheduleUid=d,$.clazzLogStatusFlag=p,$.clazzLogMSQN=_,$.clazzLogLCSN=m,$.clazzLogLCB=f,$.clazzLogLastChangedTime=g,$}));var e}function Sd(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$closure$excludeStatus=e,this.local$_stmt=n}function vd(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("clazzLogUid"),i=e.getLong_61zpoe$("clazzLogClazzUid"),o=e.getLong_61zpoe$("logDate"),r=e.getLong_61zpoe$("timeRecorded"),s=e.getBoolean_61zpoe$("clazzLogDone"),a=e.getString_61zpoe$("cancellationNote"),c=e.getBoolean_61zpoe$("clazzLogCancelled"),l=e.getInt_61zpoe$("clazzLogNumPresent"),u=e.getInt_61zpoe$("clazzLogNumAbsent"),h=e.getInt_61zpoe$("clazzLogNumPartial"),d=e.getLong_61zpoe$("clazzLogScheduleUid"),p=e.getInt_61zpoe$("clazzLogStatusFlag"),_=e.getLong_61zpoe$("clazzLogMSQN"),m=e.getLong_61zpoe$("clazzLogLCSN"),f=e.getInt_61zpoe$("clazzLogLCB"),g=e.getLong_61zpoe$("clazzLogLastChangedTime"),$=new C8;return $.clazzLogUid=n,$.clazzLogClazzUid=i,$.logDate=o,$.timeRecorded=r,$.clazzLogDone=s,$.cancellationNote=a,$.clazzLogCancelled=c,$.clazzLogNumPresent=l,$.clazzLogNumAbsent=u,$.clazzLogNumPartial=h,$.clazzLogScheduleUid=d,$.clazzLogStatusFlag=p,$.clazzLogMSQN=_,$.clazzLogLCSN=m,$.clazzLogLCB=f,$.clazzLogLastChangedTime=g,$}));var e}function Cd(t,e,n,i,o,r,s){N.call(this,s),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$closure$fromTime=e,this.local$closure$toTime=n,this.local$closure$excludeStatusFilter=i,this.local$closure$limit=o,this.local$_stmt=r}function Nd(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("clazzLogUid"),i=e.getLong_61zpoe$("clazzLogClazzUid"),o=e.getLong_61zpoe$("logDate"),r=e.getLong_61zpoe$("timeRecorded"),s=e.getBoolean_61zpoe$("clazzLogDone"),a=e.getString_61zpoe$("cancellationNote"),c=e.getBoolean_61zpoe$("clazzLogCancelled"),l=e.getInt_61zpoe$("clazzLogNumPresent"),u=e.getInt_61zpoe$("clazzLogNumAbsent"),h=e.getInt_61zpoe$("clazzLogNumPartial"),d=e.getLong_61zpoe$("clazzLogScheduleUid"),p=e.getInt_61zpoe$("clazzLogStatusFlag"),_=e.getLong_61zpoe$("clazzLogMSQN"),m=e.getLong_61zpoe$("clazzLogLCSN"),f=e.getInt_61zpoe$("clazzLogLCB"),g=e.getLong_61zpoe$("clazzLogLastChangedTime"),$=new C8;return $.clazzLogUid=n,$.clazzLogClazzUid=i,$.logDate=o,$.timeRecorded=r,$.clazzLogDone=s,$.cancellationNote=a,$.clazzLogCancelled=c,$.clazzLogNumPresent=l,$.clazzLogNumAbsent=u,$.clazzLogNumPartial=h,$.clazzLogScheduleUid=d,$.clazzLogStatusFlag=p,$.clazzLogMSQN=_,$.clazzLogLCSN=m,$.clazzLogLCB=f,$.clazzLogLastChangedTime=g,$}));var e}function Td(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("clazzLogUid"),i=e.getLong_61zpoe$("clazzLogClazzUid"),o=e.getLong_61zpoe$("logDate"),r=e.getLong_61zpoe$("timeRecorded"),s=e.getBoolean_61zpoe$("clazzLogDone"),a=e.getString_61zpoe$("cancellationNote"),c=e.getBoolean_61zpoe$("clazzLogCancelled"),l=e.getInt_61zpoe$("clazzLogNumPresent"),u=e.getInt_61zpoe$("clazzLogNumAbsent"),h=e.getInt_61zpoe$("clazzLogNumPartial"),d=e.getLong_61zpoe$("clazzLogScheduleUid"),p=e.getInt_61zpoe$("clazzLogStatusFlag"),_=e.getLong_61zpoe$("clazzLogMSQN"),m=e.getLong_61zpoe$("clazzLogLCSN"),f=e.getInt_61zpoe$("clazzLogLCB"),g=e.getLong_61zpoe$("clazzLogLastChangedTime"),$=new C8;return $.clazzLogUid=n,$.clazzLogClazzUid=i,$.logDate=o,$.timeRecorded=r,$.clazzLogDone=s,$.cancellationNote=a,$.clazzLogCancelled=c,$.clazzLogNumPresent=l,$.clazzLogNumAbsent=u,$.clazzLogNumPartial=h,$.clazzLogScheduleUid=d,$.clazzLogStatusFlag=p,$.clazzLogMSQN=_,$.clazzLogLCSN=m,$.clazzLogLCB=f,$.clazzLogLastChangedTime=g,$}));var e}function Ld(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$closure$fromTime=e,this.local$closure$toTime=n,this.local$closure$statusFilter=i,this.local$_stmt=o}function zd(t,e,n,i){return function(o,r,s){var a=new Ld(t,e,n,i,o,r);return s?a:a.doResume(null)}}function wd(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$this$ClazzLogDao_JdbcKt=t,this.local$closure$clazzUid=e,this.local$closure$fromTime=n,this.local$closure$toTime=i,this.local$closure$statusFilter=o}function Od(t){return lt(t,!1,(e=t,function(t){return e.getBoolean_za3lpa$(1)}));var e}function Rd(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$closure$excludeStatusFilter=e,this.local$_stmt=n}function Ad(t,e){return function(n,i,o){var r=new Rd(t,e,n,i);return o?r:r.doResume(null)}}function xd(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$this$ClazzLogDao_JdbcKt=t,this.local$closure$clazzUid=e,this.local$closure$excludeStatusFilter=n}function Id(t){pt.call(this,t)}function Ud(t){pt.call(this,t)}function Dd(t,e){Vh.call(this),this._db_0=t,this._dao_0=e}function Pd(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function Md(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function kd(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$clazzLog=e}function jd(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Gd(t,e,n,i,o,r){Vh.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function qd(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function Fd(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function Bd(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$uid=e}function Wd(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$clazzUid=e,this.local$excludeStatus=n}function Hd(t,e,n,i,o,r,s){N.call(this,s),this.exceptionState_0=1,this.$this=t,this.local$clazzUid=e,this.local$fromTime=n,this.local$toTime=i,this.local$excludeStatusFilter=o,this.local$limit=r}function Vd(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$clazzLog=e}function Kd(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Xd(){}function Jd(t){Xd.call(this),this._db=t,this._insertAdapterComments_=new o_(this._db)}function Yd(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Qd(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function Zd(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$entityList=t,this.local$tmp$=void 0,this.local$_stmt=e}function tp(t){return function(e,n,i){var o=new Zd(t,e,n);return i?o:o.doResume(null)}}function ep(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function np(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function ip(t){return function(e,n,i){var o=new np(t,e,n);return i?o:o.doResume(null)}}function op(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function rp(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function sp(t,e,n){var i=new rp(t,e);return n?i:i.doResume(null)}function ap(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function cp(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("commentsUid"),i=e.getString_61zpoe$("commentsText"),o=e.getInt_61zpoe$("commentsEntityType"),r=e.getLong_61zpoe$("commentsEntityUid"),s=e.getBoolean_61zpoe$("commentsPublic"),a=e.getInt_61zpoe$("commentsStatus"),c=e.getLong_61zpoe$("commentsPersonUid"),l=e.getLong_61zpoe$("commentsToPersonUid"),u=e.getLong_61zpoe$("commentSubmitterUid"),h=e.getBoolean_61zpoe$("commentsFlagged"),d=e.getBoolean_61zpoe$("commentsInActive"),p=e.getLong_61zpoe$("commentsDateTimeAdded"),_=e.getLong_61zpoe$("commentsDateTimeUpdated"),m=e.getLong_61zpoe$("commentsMCSN"),f=e.getLong_61zpoe$("commentsLCSN"),g=e.getInt_61zpoe$("commentsLCB"),$=e.getLong_61zpoe$("commentsLct"),E=new T9;return E.commentsUid=n,E.commentsText=i,E.commentsEntityType=o,E.commentsEntityUid=r,E.commentsPublic=s,E.commentsStatus=a,E.commentsPersonUid=c,E.commentsToPersonUid=l,E.commentSubmitterUid=u,E.commentsFlagged=h,E.commentsInActive=d,E.commentsDateTimeAdded=p,E.commentsDateTimeUpdated=_,E.commentsMCSN=m,E.commentsLCSN=f,E.commentsLCB=g,E.commentsLct=$,E}));var e}function lp(t,e,n){this.this$CommentsDao_JdbcKt=t,this.closure$entityType=e,this.closure$entityUid=n,gt.call(this)}function up(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("commentsUid"),i=e.getString_61zpoe$("commentsText"),o=e.getInt_61zpoe$("commentsEntityType"),r=e.getLong_61zpoe$("commentsEntityUid"),s=e.getBoolean_61zpoe$("commentsPublic"),a=e.getInt_61zpoe$("commentsStatus"),c=e.getLong_61zpoe$("commentsPersonUid"),l=e.getLong_61zpoe$("commentsToPersonUid"),u=e.getLong_61zpoe$("commentSubmitterUid"),h=e.getBoolean_61zpoe$("commentsFlagged"),d=e.getBoolean_61zpoe$("commentsInActive"),p=e.getLong_61zpoe$("commentsDateTimeAdded"),_=e.getLong_61zpoe$("commentsDateTimeUpdated"),m=e.getLong_61zpoe$("commentsMCSN"),f=e.getLong_61zpoe$("commentsLCSN"),g=e.getInt_61zpoe$("commentsLCB"),$=e.getLong_61zpoe$("commentsLct"),E=0,y=e.getLong_61zpoe$("personUid");e.wasNull()&&(E=E+1|0);var b=e.getString_61zpoe$("username");e.wasNull()&&(E=E+1|0);var S=e.getString_61zpoe$("firstNames");e.wasNull()&&(E=E+1|0);var v=e.getString_61zpoe$("lastName");e.wasNull()&&(E=E+1|0);var C=e.getString_61zpoe$("emailAddr");e.wasNull()&&(E=E+1|0);var N=e.getString_61zpoe$("phoneNum");e.wasNull()&&(E=E+1|0);var T=e.getInt_61zpoe$("gender");e.wasNull()&&(E=E+1|0);var L=e.getBoolean_61zpoe$("active");e.wasNull()&&(E=E+1|0);var z=e.getBoolean_61zpoe$("admin");e.wasNull()&&(E=E+1|0);var w=e.getString_61zpoe$("personNotes");e.wasNull()&&(E=E+1|0);var O=e.getString_61zpoe$("fatherName");e.wasNull()&&(E=E+1|0);var R=e.getString_61zpoe$("fatherNumber");e.wasNull()&&(E=E+1|0);var A=e.getString_61zpoe$("motherName");e.wasNull()&&(E=E+1|0);var x=e.getString_61zpoe$("motherNum");e.wasNull()&&(E=E+1|0);var I=e.getLong_61zpoe$("dateOfBirth");e.wasNull()&&(E=E+1|0);var U=e.getString_61zpoe$("personAddress");e.wasNull()&&(E=E+1|0);var D=e.getString_61zpoe$("personOrgId");e.wasNull()&&(E=E+1|0);var P=e.getLong_61zpoe$("personGroupUid");e.wasNull()&&(E=E+1|0);var M=e.getLong_61zpoe$("personMasterChangeSeqNum");e.wasNull()&&(E=E+1|0);var k=e.getLong_61zpoe$("personLocalChangeSeqNum");e.wasNull()&&(E=E+1|0);var j=e.getInt_61zpoe$("personLastChangedBy");e.wasNull()&&(E=E+1|0);var G=e.getLong_61zpoe$("personLct");e.wasNull()&&(E=E+1|0);var q=e.getString_61zpoe$("personCountry");e.wasNull()&&(E=E+1|0);var F=e.getInt_61zpoe$("personType");e.wasNull()&&(E=E+1|0);var B=24===E,W=new I9;if(W.commentsUid=n,W.commentsText=i,W.commentsEntityType=o,W.commentsEntityUid=r,W.commentsPublic=s,W.commentsStatus=a,W.commentsPersonUid=c,W.commentsToPersonUid=l,W.commentSubmitterUid=u,W.commentsFlagged=h,W.commentsInActive=d,W.commentsDateTimeAdded=p,W.commentsDateTimeUpdated=_,W.commentsMCSN=m,W.commentsLCSN=f,W.commentsLCB=g,W.commentsLct=$,!B){var H=new zct;H.personUid=y,H.username=b,H.firstNames=S,H.lastName=v,H.emailAddr=C,H.phoneNum=N,H.gender=T,H.active=L,H.admin=z,H.personNotes=w,H.fatherName=O,H.fatherNumber=R,H.motherName=A,H.motherNum=x,H.dateOfBirth=I,H.personAddress=U,H.personOrgId=D,H.personGroupUid=P,H.personMasterChangeSeqNum=M,H.personLocalChangeSeqNum=k,H.personLastChangedBy=j,H.personLct=G,H.personCountry=q,H.personType=F,W.commentsPerson=H}return W}));var e}function hp(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$closure$entityType=t,this.local$closure$entityUid=e,this.local$closure$_limit=n,this.local$closure$_offset=i,this.local$_stmt=o}function dp(t,e,n,i){return function(o,r,s){var a=new hp(t,e,n,i,o,r);return s?a:a.doResume(null)}}function pp(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$this$CommentsDao_JdbcKt=t,this.local$closure$entityType=e,this.local$closure$entityUid=n,this.local$closure$_limit=i,this.local$closure$_offset=o}function _p(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function mp(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$entityType=t,this.local$closure$entityUid=e,this.local$_stmt=n}function fp(t,e){return function(n,i,o){var r=new mp(t,e,n,i);return o?r:r.doResume(null)}}function gp(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$this$CommentsDao_JdbcKt=t,this.local$closure$entityType=e,this.local$closure$entityUid=n}function $p(t,e,n,i){this.this$CommentsDao_JdbcKt=t,this.closure$entityType=e,this.closure$entityUid=n,this.closure$personUid=i,gt.call(this)}function Ep(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("commentsUid"),i=e.getString_61zpoe$("commentsText"),o=e.getInt_61zpoe$("commentsEntityType"),r=e.getLong_61zpoe$("commentsEntityUid"),s=e.getBoolean_61zpoe$("commentsPublic"),a=e.getInt_61zpoe$("commentsStatus"),c=e.getLong_61zpoe$("commentsPersonUid"),l=e.getLong_61zpoe$("commentsToPersonUid"),u=e.getLong_61zpoe$("commentSubmitterUid"),h=e.getBoolean_61zpoe$("commentsFlagged"),d=e.getBoolean_61zpoe$("commentsInActive"),p=e.getLong_61zpoe$("commentsDateTimeAdded"),_=e.getLong_61zpoe$("commentsDateTimeUpdated"),m=e.getLong_61zpoe$("commentsMCSN"),f=e.getLong_61zpoe$("commentsLCSN"),g=e.getInt_61zpoe$("commentsLCB"),$=e.getLong_61zpoe$("commentsLct"),E=0,y=e.getLong_61zpoe$("personUid");e.wasNull()&&(E=E+1|0);var b=e.getString_61zpoe$("username");e.wasNull()&&(E=E+1|0);var S=e.getString_61zpoe$("firstNames");e.wasNull()&&(E=E+1|0);var v=e.getString_61zpoe$("lastName");e.wasNull()&&(E=E+1|0);var C=e.getString_61zpoe$("emailAddr");e.wasNull()&&(E=E+1|0);var N=e.getString_61zpoe$("phoneNum");e.wasNull()&&(E=E+1|0);var T=e.getInt_61zpoe$("gender");e.wasNull()&&(E=E+1|0);var L=e.getBoolean_61zpoe$("active");e.wasNull()&&(E=E+1|0);var z=e.getBoolean_61zpoe$("admin");e.wasNull()&&(E=E+1|0);var w=e.getString_61zpoe$("personNotes");e.wasNull()&&(E=E+1|0);var O=e.getString_61zpoe$("fatherName");e.wasNull()&&(E=E+1|0);var R=e.getString_61zpoe$("fatherNumber");e.wasNull()&&(E=E+1|0);var A=e.getString_61zpoe$("motherName");e.wasNull()&&(E=E+1|0);var x=e.getString_61zpoe$("motherNum");e.wasNull()&&(E=E+1|0);var I=e.getLong_61zpoe$("dateOfBirth");e.wasNull()&&(E=E+1|0);var U=e.getString_61zpoe$("personAddress");e.wasNull()&&(E=E+1|0);var D=e.getString_61zpoe$("personOrgId");e.wasNull()&&(E=E+1|0);var P=e.getLong_61zpoe$("personGroupUid");e.wasNull()&&(E=E+1|0);var M=e.getLong_61zpoe$("personMasterChangeSeqNum");e.wasNull()&&(E=E+1|0);var k=e.getLong_61zpoe$("personLocalChangeSeqNum");e.wasNull()&&(E=E+1|0);var j=e.getInt_61zpoe$("personLastChangedBy");e.wasNull()&&(E=E+1|0);var G=e.getLong_61zpoe$("personLct");e.wasNull()&&(E=E+1|0);var q=e.getString_61zpoe$("personCountry");e.wasNull()&&(E=E+1|0);var F=e.getInt_61zpoe$("personType");e.wasNull()&&(E=E+1|0);var B=24===E,W=new I9;if(W.commentsUid=n,W.commentsText=i,W.commentsEntityType=o,W.commentsEntityUid=r,W.commentsPublic=s,W.commentsStatus=a,W.commentsPersonUid=c,W.commentsToPersonUid=l,W.commentSubmitterUid=u,W.commentsFlagged=h,W.commentsInActive=d,W.commentsDateTimeAdded=p,W.commentsDateTimeUpdated=_,W.commentsMCSN=m,W.commentsLCSN=f,W.commentsLCB=g,W.commentsLct=$,!B){var H=new zct;H.personUid=y,H.username=b,H.firstNames=S,H.lastName=v,H.emailAddr=C,H.phoneNum=N,H.gender=T,H.active=L,H.admin=z,H.personNotes=w,H.fatherName=O,H.fatherNumber=R,H.motherName=A,H.motherNum=x,H.dateOfBirth=I,H.personAddress=U,H.personOrgId=D,H.personGroupUid=P,H.personMasterChangeSeqNum=M,H.personLocalChangeSeqNum=k,H.personLastChangedBy=j,H.personLct=G,H.personCountry=q,H.personType=F,W.commentsPerson=H}return W}));var e}function yp(t,e,n,i,o,r,s){N.call(this,s),this.exceptionState_0=1,this.local$closure$entityType=t,this.local$closure$entityUid=e,this.local$closure$personUid=n,this.local$closure$_limit=i,this.local$closure$_offset=o,this.local$_stmt=r}function bp(t,e,n,i,o){return function(r,s,a){var c=new yp(t,e,n,i,o,r,s);return a?c:c.doResume(null)}}function Sp(t,e,n,i,o,r,s){N.call(this,s),this.exceptionState_0=1,this.local$this$CommentsDao_JdbcKt=t,this.local$closure$entityType=e,this.local$closure$entityUid=n,this.local$closure$personUid=i,this.local$closure$_limit=o,this.local$closure$_offset=r}function vp(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function Cp(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$entityType=t,this.local$closure$entityUid=e,this.local$closure$personUid=n,this.local$_stmt=i}function Np(t,e,n){return function(i,o,r){var s=new Cp(t,e,n,i,o);return r?s:s.doResume(null)}}function Tp(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$this$CommentsDao_JdbcKt=t,this.local$closure$entityType=e,this.local$closure$entityUid=n,this.local$closure$personUid=i}function Lp(t,e,n,i){this.this$CommentsDao_JdbcKt=t,this.closure$entityType=e,this.closure$entityUid=n,this.closure$submitterUid=i,gt.call(this)}function zp(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("commentsUid"),i=e.getString_61zpoe$("commentsText"),o=e.getInt_61zpoe$("commentsEntityType"),r=e.getLong_61zpoe$("commentsEntityUid"),s=e.getBoolean_61zpoe$("commentsPublic"),a=e.getInt_61zpoe$("commentsStatus"),c=e.getLong_61zpoe$("commentsPersonUid"),l=e.getLong_61zpoe$("commentsToPersonUid"),u=e.getLong_61zpoe$("commentSubmitterUid"),h=e.getBoolean_61zpoe$("commentsFlagged"),d=e.getBoolean_61zpoe$("commentsInActive"),p=e.getLong_61zpoe$("commentsDateTimeAdded"),_=e.getLong_61zpoe$("commentsDateTimeUpdated"),m=e.getLong_61zpoe$("commentsMCSN"),f=e.getLong_61zpoe$("commentsLCSN"),g=e.getInt_61zpoe$("commentsLCB"),$=e.getLong_61zpoe$("commentsLct"),E=0,y=e.getLong_61zpoe$("personUid");e.wasNull()&&(E=E+1|0);var b=e.getString_61zpoe$("username");e.wasNull()&&(E=E+1|0);var S=e.getString_61zpoe$("firstNames");e.wasNull()&&(E=E+1|0);var v=e.getString_61zpoe$("lastName");e.wasNull()&&(E=E+1|0);var C=e.getString_61zpoe$("emailAddr");e.wasNull()&&(E=E+1|0);var N=e.getString_61zpoe$("phoneNum");e.wasNull()&&(E=E+1|0);var T=e.getInt_61zpoe$("gender");e.wasNull()&&(E=E+1|0);var L=e.getBoolean_61zpoe$("active");e.wasNull()&&(E=E+1|0);var z=e.getBoolean_61zpoe$("admin");e.wasNull()&&(E=E+1|0);var w=e.getString_61zpoe$("personNotes");e.wasNull()&&(E=E+1|0);var O=e.getString_61zpoe$("fatherName");e.wasNull()&&(E=E+1|0);var R=e.getString_61zpoe$("fatherNumber");e.wasNull()&&(E=E+1|0);var A=e.getString_61zpoe$("motherName");e.wasNull()&&(E=E+1|0);var x=e.getString_61zpoe$("motherNum");e.wasNull()&&(E=E+1|0);var I=e.getLong_61zpoe$("dateOfBirth");e.wasNull()&&(E=E+1|0);var U=e.getString_61zpoe$("personAddress");e.wasNull()&&(E=E+1|0);var D=e.getString_61zpoe$("personOrgId");e.wasNull()&&(E=E+1|0);var P=e.getLong_61zpoe$("personGroupUid");e.wasNull()&&(E=E+1|0);var M=e.getLong_61zpoe$("personMasterChangeSeqNum");e.wasNull()&&(E=E+1|0);var k=e.getLong_61zpoe$("personLocalChangeSeqNum");e.wasNull()&&(E=E+1|0);var j=e.getInt_61zpoe$("personLastChangedBy");e.wasNull()&&(E=E+1|0);var G=e.getLong_61zpoe$("personLct");e.wasNull()&&(E=E+1|0);var q=e.getString_61zpoe$("personCountry");e.wasNull()&&(E=E+1|0);var F=e.getInt_61zpoe$("personType");e.wasNull()&&(E=E+1|0);var B=24===E,W=new I9;if(W.commentsUid=n,W.commentsText=i,W.commentsEntityType=o,W.commentsEntityUid=r,W.commentsPublic=s,W.commentsStatus=a,W.commentsPersonUid=c,W.commentsToPersonUid=l,W.commentSubmitterUid=u,W.commentsFlagged=h,W.commentsInActive=d,W.commentsDateTimeAdded=p,W.commentsDateTimeUpdated=_,W.commentsMCSN=m,W.commentsLCSN=f,W.commentsLCB=g,W.commentsLct=$,!B){var H=new zct;H.personUid=y,H.username=b,H.firstNames=S,H.lastName=v,H.emailAddr=C,H.phoneNum=N,H.gender=T,H.active=L,H.admin=z,H.personNotes=w,H.fatherName=O,H.fatherNumber=R,H.motherName=A,H.motherNum=x,H.dateOfBirth=I,H.personAddress=U,H.personOrgId=D,H.personGroupUid=P,H.personMasterChangeSeqNum=M,H.personLocalChangeSeqNum=k,H.personLastChangedBy=j,H.personLct=G,H.personCountry=q,H.personType=F,W.commentsPerson=H}return W}));var e}function wp(t,e,n,i,o,r,s){N.call(this,s),this.exceptionState_0=1,this.local$closure$entityType=t,this.local$closure$entityUid=e,this.local$closure$submitterUid=n,this.local$closure$_limit=i,this.local$closure$_offset=o,this.local$_stmt=r}function Op(t,e,n,i,o){return function(r,s,a){var c=new wp(t,e,n,i,o,r,s);return a?c:c.doResume(null)}}function Rp(t,e,n,i,o,r,s){N.call(this,s),this.exceptionState_0=1,this.local$this$CommentsDao_JdbcKt=t,this.local$closure$entityType=e,this.local$closure$entityUid=n,this.local$closure$submitterUid=i,this.local$closure$_limit=o,this.local$closure$_offset=r}function Ap(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function xp(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$entityType=t,this.local$closure$entityUid=e,this.local$closure$submitterUid=n,this.local$_stmt=i}function Ip(t,e,n){return function(i,o,r){var s=new xp(t,e,n,i,o);return r?s:s.doResume(null)}}function Up(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$this$CommentsDao_JdbcKt=t,this.local$closure$entityType=e,this.local$closure$entityUid=n,this.local$closure$submitterUid=i}function Dp(t,e,n,i){this.this$CommentsDao_JdbcKt=t,this.closure$entityType=e,this.closure$entityUid=n,this.closure$personUid=i,gt.call(this)}function Pp(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("commentsUid"),i=e.getString_61zpoe$("commentsText"),o=e.getInt_61zpoe$("commentsEntityType"),r=e.getLong_61zpoe$("commentsEntityUid"),s=e.getBoolean_61zpoe$("commentsPublic"),a=e.getInt_61zpoe$("commentsStatus"),c=e.getLong_61zpoe$("commentsPersonUid"),l=e.getLong_61zpoe$("commentsToPersonUid"),u=e.getLong_61zpoe$("commentSubmitterUid"),h=e.getBoolean_61zpoe$("commentsFlagged"),d=e.getBoolean_61zpoe$("commentsInActive"),p=e.getLong_61zpoe$("commentsDateTimeAdded"),_=e.getLong_61zpoe$("commentsDateTimeUpdated"),m=e.getLong_61zpoe$("commentsMCSN"),f=e.getLong_61zpoe$("commentsLCSN"),g=e.getInt_61zpoe$("commentsLCB"),$=e.getLong_61zpoe$("commentsLct"),E=0,y=e.getLong_61zpoe$("personUid");e.wasNull()&&(E=E+1|0);var b=e.getString_61zpoe$("username");e.wasNull()&&(E=E+1|0);var S=e.getString_61zpoe$("firstNames");e.wasNull()&&(E=E+1|0);var v=e.getString_61zpoe$("lastName");e.wasNull()&&(E=E+1|0);var C=e.getString_61zpoe$("emailAddr");e.wasNull()&&(E=E+1|0);var N=e.getString_61zpoe$("phoneNum");e.wasNull()&&(E=E+1|0);var T=e.getInt_61zpoe$("gender");e.wasNull()&&(E=E+1|0);var L=e.getBoolean_61zpoe$("active");e.wasNull()&&(E=E+1|0);var z=e.getBoolean_61zpoe$("admin");e.wasNull()&&(E=E+1|0);var w=e.getString_61zpoe$("personNotes");e.wasNull()&&(E=E+1|0);var O=e.getString_61zpoe$("fatherName");e.wasNull()&&(E=E+1|0);var R=e.getString_61zpoe$("fatherNumber");e.wasNull()&&(E=E+1|0);var A=e.getString_61zpoe$("motherName");e.wasNull()&&(E=E+1|0);var x=e.getString_61zpoe$("motherNum");e.wasNull()&&(E=E+1|0);var I=e.getLong_61zpoe$("dateOfBirth");e.wasNull()&&(E=E+1|0);var U=e.getString_61zpoe$("personAddress");e.wasNull()&&(E=E+1|0);var D=e.getString_61zpoe$("personOrgId");e.wasNull()&&(E=E+1|0);var P=e.getLong_61zpoe$("personGroupUid");e.wasNull()&&(E=E+1|0);var M=e.getLong_61zpoe$("personMasterChangeSeqNum");e.wasNull()&&(E=E+1|0);var k=e.getLong_61zpoe$("personLocalChangeSeqNum");e.wasNull()&&(E=E+1|0);var j=e.getInt_61zpoe$("personLastChangedBy");e.wasNull()&&(E=E+1|0);var G=e.getLong_61zpoe$("personLct");e.wasNull()&&(E=E+1|0);var q=e.getString_61zpoe$("personCountry");e.wasNull()&&(E=E+1|0);var F=e.getInt_61zpoe$("personType");e.wasNull()&&(E=E+1|0);var B=24===E,W=new I9;if(W.commentsUid=n,W.commentsText=i,W.commentsEntityType=o,W.commentsEntityUid=r,W.commentsPublic=s,W.commentsStatus=a,W.commentsPersonUid=c,W.commentsToPersonUid=l,W.commentSubmitterUid=u,W.commentsFlagged=h,W.commentsInActive=d,W.commentsDateTimeAdded=p,W.commentsDateTimeUpdated=_,W.commentsMCSN=m,W.commentsLCSN=f,W.commentsLCB=g,W.commentsLct=$,!B){var H=new zct;H.personUid=y,H.username=b,H.firstNames=S,H.lastName=v,H.emailAddr=C,H.phoneNum=N,H.gender=T,H.active=L,H.admin=z,H.personNotes=w,H.fatherName=O,H.fatherNumber=R,H.motherName=A,H.motherNum=x,H.dateOfBirth=I,H.personAddress=U,H.personOrgId=D,H.personGroupUid=P,H.personMasterChangeSeqNum=M,H.personLocalChangeSeqNum=k,H.personLastChangedBy=j,H.personLct=G,H.personCountry=q,H.personType=F,W.commentsPerson=H}return W}));var e}function Mp(t,e,n,i,o,r,s){N.call(this,s),this.exceptionState_0=1,this.local$closure$entityType=t,this.local$closure$entityUid=e,this.local$closure$personUid=n,this.local$closure$_limit=i,this.local$closure$_offset=o,this.local$_stmt=r}function kp(t,e,n,i,o){return function(r,s,a){var c=new Mp(t,e,n,i,o,r,s);return a?c:c.doResume(null)}}function jp(t,e,n,i,o,r,s){N.call(this,s),this.exceptionState_0=1,this.local$this$CommentsDao_JdbcKt=t,this.local$closure$entityType=e,this.local$closure$entityUid=n,this.local$closure$personUid=i,this.local$closure$_limit=o,this.local$closure$_offset=r}function Gp(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function qp(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$entityType=t,this.local$closure$entityUid=e,this.local$closure$personUid=n,this.local$_stmt=i}function Fp(t,e,n){return function(i,o,r){var s=new qp(t,e,n,i,o);return r?s:s.doResume(null)}}function Bp(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$this$CommentsDao_JdbcKt=t,this.local$closure$entityType=e,this.local$closure$entityUid=n,this.local$closure$personUid=i}function Wp(t,e,n,i){this.this$CommentsDao_JdbcKt=t,this.closure$entityType=e,this.closure$entityUid=n,this.closure$personFrom=i,gt.call(this)}function Hp(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("commentsUid"),i=e.getString_61zpoe$("commentsText"),o=e.getInt_61zpoe$("commentsEntityType"),r=e.getLong_61zpoe$("commentsEntityUid"),s=e.getBoolean_61zpoe$("commentsPublic"),a=e.getInt_61zpoe$("commentsStatus"),c=e.getLong_61zpoe$("commentsPersonUid"),l=e.getLong_61zpoe$("commentsToPersonUid"),u=e.getLong_61zpoe$("commentSubmitterUid"),h=e.getBoolean_61zpoe$("commentsFlagged"),d=e.getBoolean_61zpoe$("commentsInActive"),p=e.getLong_61zpoe$("commentsDateTimeAdded"),_=e.getLong_61zpoe$("commentsDateTimeUpdated"),m=e.getLong_61zpoe$("commentsMCSN"),f=e.getLong_61zpoe$("commentsLCSN"),g=e.getInt_61zpoe$("commentsLCB"),$=e.getLong_61zpoe$("commentsLct"),E=0,y=e.getLong_61zpoe$("personUid");e.wasNull()&&(E=E+1|0);var b=e.getString_61zpoe$("username");e.wasNull()&&(E=E+1|0);var S=e.getString_61zpoe$("firstNames");e.wasNull()&&(E=E+1|0);var v=e.getString_61zpoe$("lastName");e.wasNull()&&(E=E+1|0);var C=e.getString_61zpoe$("emailAddr");e.wasNull()&&(E=E+1|0);var N=e.getString_61zpoe$("phoneNum");e.wasNull()&&(E=E+1|0);var T=e.getInt_61zpoe$("gender");e.wasNull()&&(E=E+1|0);var L=e.getBoolean_61zpoe$("active");e.wasNull()&&(E=E+1|0);var z=e.getBoolean_61zpoe$("admin");e.wasNull()&&(E=E+1|0);var w=e.getString_61zpoe$("personNotes");e.wasNull()&&(E=E+1|0);var O=e.getString_61zpoe$("fatherName");e.wasNull()&&(E=E+1|0);var R=e.getString_61zpoe$("fatherNumber");e.wasNull()&&(E=E+1|0);var A=e.getString_61zpoe$("motherName");e.wasNull()&&(E=E+1|0);var x=e.getString_61zpoe$("motherNum");e.wasNull()&&(E=E+1|0);var I=e.getLong_61zpoe$("dateOfBirth");e.wasNull()&&(E=E+1|0);var U=e.getString_61zpoe$("personAddress");e.wasNull()&&(E=E+1|0);var D=e.getString_61zpoe$("personOrgId");e.wasNull()&&(E=E+1|0);var P=e.getLong_61zpoe$("personGroupUid");e.wasNull()&&(E=E+1|0);var M=e.getLong_61zpoe$("personMasterChangeSeqNum");e.wasNull()&&(E=E+1|0);var k=e.getLong_61zpoe$("personLocalChangeSeqNum");e.wasNull()&&(E=E+1|0);var j=e.getInt_61zpoe$("personLastChangedBy");e.wasNull()&&(E=E+1|0);var G=e.getLong_61zpoe$("personLct");e.wasNull()&&(E=E+1|0);var q=e.getString_61zpoe$("personCountry");e.wasNull()&&(E=E+1|0);var F=e.getInt_61zpoe$("personType");e.wasNull()&&(E=E+1|0);var B=24===E,W=new I9;if(W.commentsUid=n,W.commentsText=i,W.commentsEntityType=o,W.commentsEntityUid=r,W.commentsPublic=s,W.commentsStatus=a,W.commentsPersonUid=c,W.commentsToPersonUid=l,W.commentSubmitterUid=u,W.commentsFlagged=h,W.commentsInActive=d,W.commentsDateTimeAdded=p,W.commentsDateTimeUpdated=_,W.commentsMCSN=m,W.commentsLCSN=f,W.commentsLCB=g,W.commentsLct=$,!B){var H=new zct;H.personUid=y,H.username=b,H.firstNames=S,H.lastName=v,H.emailAddr=C,H.phoneNum=N,H.gender=T,H.active=L,H.admin=z,H.personNotes=w,H.fatherName=O,H.fatherNumber=R,H.motherName=A,H.motherNum=x,H.dateOfBirth=I,H.personAddress=U,H.personOrgId=D,H.personGroupUid=P,H.personMasterChangeSeqNum=M,H.personLocalChangeSeqNum=k,H.personLastChangedBy=j,H.personLct=G,H.personCountry=q,H.personType=F,W.commentsPerson=H}return W}));var e}function Vp(t,e,n,i,o,r,s){N.call(this,s),this.exceptionState_0=1,this.local$closure$entityType=t,this.local$closure$entityUid=e,this.local$closure$personFrom=n,this.local$closure$_limit=i,this.local$closure$_offset=o,this.local$_stmt=r}function Kp(t,e,n,i,o){return function(r,s,a){var c=new Vp(t,e,n,i,o,r,s);return a?c:c.doResume(null)}}function Xp(t,e,n,i,o,r,s){N.call(this,s),this.exceptionState_0=1,this.local$this$CommentsDao_JdbcKt=t,this.local$closure$entityType=e,this.local$closure$entityUid=n,this.local$closure$personFrom=i,this.local$closure$_limit=o,this.local$closure$_offset=r}function Jp(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function Yp(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$entityType=t,this.local$closure$entityUid=e,this.local$closure$personFrom=n,this.local$_stmt=i}function Qp(t,e,n){return function(i,o,r){var s=new Yp(t,e,n,i,o);return r?s:s.doResume(null)}}function Zp(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$this$CommentsDao_JdbcKt=t,this.local$closure$entityType=e,this.local$closure$entityUid=n,this.local$closure$personFrom=i}function t_(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("commentsUid"),i=e.getString_61zpoe$("commentsText"),o=e.getInt_61zpoe$("commentsEntityType"),r=e.getLong_61zpoe$("commentsEntityUid"),s=e.getBoolean_61zpoe$("commentsPublic"),a=e.getInt_61zpoe$("commentsStatus"),c=e.getLong_61zpoe$("commentsPersonUid"),l=e.getLong_61zpoe$("commentsToPersonUid"),u=e.getLong_61zpoe$("commentSubmitterUid"),h=e.getBoolean_61zpoe$("commentsFlagged"),d=e.getBoolean_61zpoe$("commentsInActive"),p=e.getLong_61zpoe$("commentsDateTimeAdded"),_=e.getLong_61zpoe$("commentsDateTimeUpdated"),m=e.getLong_61zpoe$("commentsMCSN"),f=e.getLong_61zpoe$("commentsLCSN"),g=e.getInt_61zpoe$("commentsLCB"),$=e.getLong_61zpoe$("commentsLct"),E=0,y=e.getLong_61zpoe$("personUid");e.wasNull()&&(E=E+1|0);var b=e.getString_61zpoe$("username");e.wasNull()&&(E=E+1|0);var S=e.getString_61zpoe$("firstNames");e.wasNull()&&(E=E+1|0);var v=e.getString_61zpoe$("lastName");e.wasNull()&&(E=E+1|0);var C=e.getString_61zpoe$("emailAddr");e.wasNull()&&(E=E+1|0);var N=e.getString_61zpoe$("phoneNum");e.wasNull()&&(E=E+1|0);var T=e.getInt_61zpoe$("gender");e.wasNull()&&(E=E+1|0);var L=e.getBoolean_61zpoe$("active");e.wasNull()&&(E=E+1|0);var z=e.getBoolean_61zpoe$("admin");e.wasNull()&&(E=E+1|0);var w=e.getString_61zpoe$("personNotes");e.wasNull()&&(E=E+1|0);var O=e.getString_61zpoe$("fatherName");e.wasNull()&&(E=E+1|0);var R=e.getString_61zpoe$("fatherNumber");e.wasNull()&&(E=E+1|0);var A=e.getString_61zpoe$("motherName");e.wasNull()&&(E=E+1|0);var x=e.getString_61zpoe$("motherNum");e.wasNull()&&(E=E+1|0);var I=e.getLong_61zpoe$("dateOfBirth");e.wasNull()&&(E=E+1|0);var U=e.getString_61zpoe$("personAddress");e.wasNull()&&(E=E+1|0);var D=e.getString_61zpoe$("personOrgId");e.wasNull()&&(E=E+1|0);var P=e.getLong_61zpoe$("personGroupUid");e.wasNull()&&(E=E+1|0);var M=e.getLong_61zpoe$("personMasterChangeSeqNum");e.wasNull()&&(E=E+1|0);var k=e.getLong_61zpoe$("personLocalChangeSeqNum");e.wasNull()&&(E=E+1|0);var j=e.getInt_61zpoe$("personLastChangedBy");e.wasNull()&&(E=E+1|0);var G=e.getLong_61zpoe$("personLct");e.wasNull()&&(E=E+1|0);var q=e.getString_61zpoe$("personCountry");e.wasNull()&&(E=E+1|0);var F=e.getInt_61zpoe$("personType");e.wasNull()&&(E=E+1|0);var B=24===E,W=new I9;if(W.commentsUid=n,W.commentsText=i,W.commentsEntityType=o,W.commentsEntityUid=r,W.commentsPublic=s,W.commentsStatus=a,W.commentsPersonUid=c,W.commentsToPersonUid=l,W.commentSubmitterUid=u,W.commentsFlagged=h,W.commentsInActive=d,W.commentsDateTimeAdded=p,W.commentsDateTimeUpdated=_,W.commentsMCSN=m,W.commentsLCSN=f,W.commentsLCB=g,W.commentsLct=$,!B){var H=new zct;H.personUid=y,H.username=b,H.firstNames=S,H.lastName=v,H.emailAddr=C,H.phoneNum=N,H.gender=T,H.active=L,H.admin=z,H.personNotes=w,H.fatherName=O,H.fatherNumber=R,H.motherName=A,H.motherNum=x,H.dateOfBirth=I,H.personAddress=U,H.personOrgId=D,H.personGroupUid=P,H.personMasterChangeSeqNum=M,H.personLocalChangeSeqNum=k,H.personLastChangedBy=j,H.personLct=G,H.personCountry=q,H.personType=F,W.commentsPerson=H}return W}));var e}function e_(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$inActive=t,this.local$closure$changeTime=e,this.local$closure$uid=n,this.local$_stmt=i}function n_(t,e,n){return function(i,o,r){var s=new e_(t,e,n,i,o);return r?s:s.doResume(null)}}function i_(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$uid=e,this.local$inActive=n,this.local$changeTime=i}function o_(t){pt.call(this,t)}function r_(t,e){Xd.call(this),this._db_0=t,this._dao_0=e}function s_(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function a_(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function c_(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$uid=e,this.local$inActive=n,this.local$changeTime=i}function l_(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function u_(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_pkManager=void 0,this.local$_generatedPks=void 0,this.local$$receiver=void 0,this.local$element=void 0,this.local$entityList=e}function h_(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function d_(t,e,n,i,o,r){Xd.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function p_(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function __(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function m_(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$uid=e,this.local$inActive=n,this.local$changeTime=i}function f_(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function g_(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function $_(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function E_(){}function y_(t){E_.call(this),this._db=t,this._insertAdapterConnectivityStatus_upsert=new I_(this._db)}function b_(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$connectivityStatus=e}function S_(t){return lt(t,null,(e=t,function(t){var n=e.getInt_61zpoe$("csUid"),i=e.getInt_61zpoe$("connectivityState"),o=e.getString_61zpoe$("wifiSsid"),r=e.getBoolean_61zpoe$("connectedOrConnecting"),s=new q9;return s.csUid=n,s.connectivityState=i,s.wifiSsid=o,s.connectedOrConnecting=r,s}));var e}function v_(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function C_(t,e,n){var i=new v_(t,e);return n?i:i.doResume(null)}function N_(t,e){N.call(this,e),this.exceptionState_0=1,this.local$this$ConnectivityStatusDao_JdbcKt=t}function T_(t){return lt(t,null,(e=t,function(t){var n=e.getInt_61zpoe$("csUid"),i=e.getInt_61zpoe$("connectivityState"),o=e.getString_61zpoe$("wifiSsid"),r=e.getBoolean_61zpoe$("connectedOrConnecting"),s=new q9;return s.csUid=n,s.connectivityState=i,s.wifiSsid=o,s.connectedOrConnecting=r,s}));var e}function L_(t){return ut(t.executeQuery(),T_)}function z_(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$connectivityState=t,this.local$_stmt=e}function w_(t){return function(e,n,i){var o=new z_(t,e,n);return i?o:o.doResume(null)}}function O_(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$connectivityState=e}function R_(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$connectivityState=t,this.local$closure$wifiSsid=e,this.local$_stmt=n}function A_(t,e){return function(n,i,o){var r=new R_(t,e,n,i);return o?r:r.doResume(null)}}function x_(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$connectivityState=e,this.local$wifiSsid=n}function I_(t){pt.call(this,t)}function U_(){}function D_(t){U_.call(this),this._db=t,this._insertAdapterContainer_=new Tm(this._db),this._insertAdapterContainer_upsert=new Lm(this._db)}function P_(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$containerList=e}function M_(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function k_(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function j_(t){return function(e,n,i){var o=new k_(t,e,n);return i?o:o.doResume(null)}}function G_(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function q_(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function F_(t,e,n){var i=new q_(t,e);return n?i:i.doResume(null)}function B_(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function W_(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("containerUid"),i=e.getLong_61zpoe$("cntLocalCsn"),o=e.getLong_61zpoe$("cntMasterCsn"),r=e.getInt_61zpoe$("cntLastModBy"),s=e.getLong_61zpoe$("cntLct"),a=e.getLong_61zpoe$("fileSize"),c=e.getLong_61zpoe$("containerContentEntryUid"),l=e.getLong_61zpoe$("cntLastModified"),u=e.getString_61zpoe$("mimeType"),h=e.getString_61zpoe$("remarks"),d=e.getBoolean_61zpoe$("mobileOptimized"),p=e.getInt_61zpoe$("cntNumEntries"),_=new J9;return _.containerUid=n,_.cntLocalCsn=i,_.cntMasterCsn=o,_.cntLastModBy=r,_.cntLct=s,_.fileSize=a,_.containerContentEntryUid=c,_.cntLastModified=l,_.mimeType=u,_.remarks=h,_.mobileOptimized=d,_.cntNumEntries=p,_}));var e}function H_(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$contentEntry=t,this.local$_stmt=e}function V_(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("containerUid"),i=e.getLong_61zpoe$("cntLocalCsn"),o=e.getLong_61zpoe$("cntMasterCsn"),r=e.getInt_61zpoe$("cntLastModBy"),s=e.getLong_61zpoe$("cntLct"),a=e.getLong_61zpoe$("fileSize"),c=e.getLong_61zpoe$("containerContentEntryUid"),l=e.getLong_61zpoe$("cntLastModified"),u=e.getString_61zpoe$("mimeType"),h=e.getString_61zpoe$("remarks"),d=e.getBoolean_61zpoe$("mobileOptimized"),p=e.getInt_61zpoe$("cntNumEntries"),_=new J9;return _.containerUid=n,_.cntLocalCsn=i,_.cntMasterCsn=o,_.cntLastModBy=r,_.cntLct=s,_.fileSize=a,_.containerContentEntryUid=c,_.cntLastModified=l,_.mimeType=u,_.remarks=h,_.mobileOptimized=d,_.cntNumEntries=p,_}));var e}function K_(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("containerUid"),i=e.getLong_61zpoe$("cntLocalCsn"),o=e.getLong_61zpoe$("cntMasterCsn"),r=e.getInt_61zpoe$("cntLastModBy"),s=e.getLong_61zpoe$("cntLct"),a=e.getLong_61zpoe$("fileSize"),c=e.getLong_61zpoe$("containerContentEntryUid"),l=e.getLong_61zpoe$("cntLastModified"),u=e.getString_61zpoe$("mimeType"),h=e.getString_61zpoe$("remarks"),d=e.getBoolean_61zpoe$("mobileOptimized"),p=e.getInt_61zpoe$("cntNumEntries"),_=new J9;return _.containerUid=n,_.cntLocalCsn=i,_.cntMasterCsn=o,_.cntLastModBy=r,_.cntLct=s,_.fileSize=a,_.containerContentEntryUid=c,_.cntLastModified=l,_.mimeType=u,_.remarks=h,_.mobileOptimized=d,_.cntNumEntries=p,_}));var e}function X_(t){return lt(t,X,(e=t,function(t){return e.getLong_za3lpa$(1)}));var e}function J_(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function Y_(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("containerUid"),i=e.getLong_61zpoe$("cntLocalCsn"),o=e.getLong_61zpoe$("cntMasterCsn"),r=e.getInt_61zpoe$("cntLastModBy"),s=e.getLong_61zpoe$("cntLct"),a=e.getLong_61zpoe$("fileSize"),c=e.getLong_61zpoe$("containerContentEntryUid"),l=e.getLong_61zpoe$("cntLastModified"),u=e.getString_61zpoe$("mimeType"),h=e.getString_61zpoe$("remarks"),d=e.getBoolean_61zpoe$("mobileOptimized"),p=e.getInt_61zpoe$("cntNumEntries"),_=new J9;return _.containerUid=n,_.cntLocalCsn=i,_.cntMasterCsn=o,_.cntLastModBy=r,_.cntLct=s,_.fileSize=a,_.containerContentEntryUid=c,_.cntLastModified=l,_.mimeType=u,_.remarks=h,_.mobileOptimized=d,_.cntNumEntries=p,_}));var e}function Q_(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$contentEntries=t,this.local$_stmt=e}function Z_(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("containerUid"),i=e.getLong_61zpoe$("cntLocalCsn"),o=e.getLong_61zpoe$("cntMasterCsn"),r=e.getInt_61zpoe$("cntLastModBy"),s=e.getLong_61zpoe$("cntLct"),a=e.getLong_61zpoe$("fileSize"),c=e.getLong_61zpoe$("containerContentEntryUid"),l=e.getLong_61zpoe$("cntLastModified"),u=e.getString_61zpoe$("mimeType"),h=e.getString_61zpoe$("remarks"),d=e.getBoolean_61zpoe$("mobileOptimized"),p=e.getInt_61zpoe$("cntNumEntries"),_=new J9;return _.containerUid=n,_.cntLocalCsn=i,_.cntMasterCsn=o,_.cntLastModBy=r,_.cntLct=s,_.fileSize=a,_.containerContentEntryUid=c,_.cntLastModified=l,_.mimeType=u,_.remarks=h,_.mobileOptimized=d,_.cntNumEntries=p,_}));var e}function tm(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$contentEntryUid=t,this.local$_stmt=e}function em(t){return lt(t,!1,(e=t,function(t){return e.getBoolean_za3lpa$(1)}));var e}function nm(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$contentEntryUid=t,this.local$_stmt=e}function im(t){return function(e,n,i){var o=new nm(t,e,n);return i?o:o.doResume(null)}}function om(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$ContainerDao_JdbcKt=t,this.local$closure$contentEntryUid=e}function rm(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("containerUid"),i=e.getLong_61zpoe$("cntLocalCsn"),o=e.getLong_61zpoe$("cntMasterCsn"),r=e.getInt_61zpoe$("cntLastModBy"),s=e.getLong_61zpoe$("cntLct"),a=e.getLong_61zpoe$("fileSize"),c=e.getLong_61zpoe$("containerContentEntryUid"),l=e.getLong_61zpoe$("cntLastModified"),u=e.getString_61zpoe$("mimeType"),h=e.getString_61zpoe$("remarks"),d=e.getBoolean_61zpoe$("mobileOptimized"),p=e.getInt_61zpoe$("cntNumEntries"),_=new J9;return _.containerUid=n,_.cntLocalCsn=i,_.cntMasterCsn=o,_.cntLastModBy=r,_.cntLct=s,_.fileSize=a,_.containerContentEntryUid=c,_.cntLastModified=l,_.mimeType=u,_.remarks=h,_.mobileOptimized=d,_.cntNumEntries=p,_}));var e}function sm(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$contentEntryUid=t,this.local$_stmt=e}function am(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("containerUid"),i=e.getLong_61zpoe$("cntLocalCsn"),o=e.getLong_61zpoe$("cntMasterCsn"),r=e.getInt_61zpoe$("cntLastModBy"),s=e.getLong_61zpoe$("cntLct"),a=e.getLong_61zpoe$("fileSize"),c=e.getLong_61zpoe$("containerContentEntryUid"),l=e.getLong_61zpoe$("cntLastModified"),u=e.getString_61zpoe$("mimeType"),h=e.getString_61zpoe$("remarks"),d=e.getBoolean_61zpoe$("mobileOptimized"),p=e.getInt_61zpoe$("cntNumEntries"),_=new J9;return _.containerUid=n,_.cntLocalCsn=i,_.cntMasterCsn=o,_.cntLastModBy=r,_.cntLct=s,_.fileSize=a,_.containerContentEntryUid=c,_.cntLastModified=l,_.mimeType=u,_.remarks=h,_.mobileOptimized=d,_.cntNumEntries=p,_}));var e}function cm(t){return ut(t.executeQuery(),am)}function lm(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("containerUid"),i=e.getLong_61zpoe$("cntLocalCsn"),o=e.getLong_61zpoe$("cntMasterCsn"),r=e.getInt_61zpoe$("cntLastModBy"),s=e.getLong_61zpoe$("cntLct"),a=e.getLong_61zpoe$("fileSize"),c=e.getLong_61zpoe$("containerContentEntryUid"),l=e.getLong_61zpoe$("cntLastModified"),u=e.getString_61zpoe$("mimeType"),h=e.getString_61zpoe$("remarks"),d=e.getBoolean_61zpoe$("mobileOptimized"),p=e.getInt_61zpoe$("cntNumEntries"),_=new J9;return _.containerUid=n,_.cntLocalCsn=i,_.cntMasterCsn=o,_.cntLastModBy=r,_.cntLct=s,_.fileSize=a,_.containerContentEntryUid=c,_.cntLastModified=l,_.mimeType=u,_.remarks=h,_.mobileOptimized=d,_.cntNumEntries=p,_}));var e}function um(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$containerUid=t,this.local$_stmt=e}function hm(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$changeTime=t,this.local$closure$containerUid=e,this.local$_stmt=n}function dm(t,e){return function(n,i,o){var r=new hm(t,e,n,i);return o?r:r.doResume(null)}}function pm(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$containerUid=e,this.local$changeTime=n}function _m(t){return lt(t,X,(e=t,function(t){return e.getLong_za3lpa$(1)}));var e}function mm(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("containerUid"),i=e.getLong_61zpoe$("cntLocalCsn"),o=e.getLong_61zpoe$("cntMasterCsn"),r=e.getInt_61zpoe$("cntLastModBy"),s=e.getLong_61zpoe$("cntLct"),a=e.getLong_61zpoe$("fileSize"),c=e.getLong_61zpoe$("containerContentEntryUid"),l=e.getLong_61zpoe$("cntLastModified"),u=e.getString_61zpoe$("mimeType"),h=e.getString_61zpoe$("remarks"),d=e.getBoolean_61zpoe$("mobileOptimized"),p=e.getInt_61zpoe$("cntNumEntries"),_=new J9;return _.containerUid=n,_.cntLocalCsn=i,_.cntMasterCsn=o,_.cntLastModBy=r,_.cntLct=s,_.fileSize=a,_.containerContentEntryUid=c,_.cntLastModified=l,_.mimeType=u,_.remarks=h,_.mobileOptimized=d,_.cntNumEntries=p,_}));var e}function fm(t){return mt(t,(e=t,function(t){var n=e.getString_61zpoe$("entryId"),i=e.getString_61zpoe$("sourceUrl"),o=e.getLong_61zpoe$("containerUid"),r=e.getLong_61zpoe$("cntLocalCsn"),s=e.getLong_61zpoe$("cntMasterCsn"),a=e.getInt_61zpoe$("cntLastModBy"),c=e.getLong_61zpoe$("cntLct"),l=e.getLong_61zpoe$("fileSize"),u=e.getLong_61zpoe$("containerContentEntryUid"),h=e.getLong_61zpoe$("cntLastModified"),d=e.getString_61zpoe$("mimeType"),p=e.getString_61zpoe$("remarks"),_=e.getBoolean_61zpoe$("mobileOptimized"),m=e.getInt_61zpoe$("cntNumEntries"),f=new stt;return f.entryId=n,f.sourceUrl=i,f.containerUid=o,f.cntLocalCsn=r,f.cntMasterCsn=s,f.cntLastModBy=a,f.cntLct=c,f.fileSize=l,f.containerContentEntryUid=u,f.cntLastModified=h,f.mimeType=d,f.remarks=p,f.mobileOptimized=_,f.cntNumEntries=m,f}));var e}function gm(t){return ut(t.executeQuery(),fm)}function $m(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("containerUid"),i=e.getLong_61zpoe$("cntLocalCsn"),o=e.getLong_61zpoe$("cntMasterCsn"),r=e.getInt_61zpoe$("cntLastModBy"),s=e.getLong_61zpoe$("cntLct"),a=e.getLong_61zpoe$("fileSize"),c=e.getLong_61zpoe$("containerContentEntryUid"),l=e.getLong_61zpoe$("cntLastModified"),u=e.getString_61zpoe$("mimeType"),h=e.getString_61zpoe$("remarks"),d=e.getBoolean_61zpoe$("mobileOptimized"),p=e.getInt_61zpoe$("cntNumEntries"),_=new J9;return _.containerUid=n,_.cntLocalCsn=i,_.cntMasterCsn=o,_.cntLastModBy=r,_.cntLct=s,_.fileSize=a,_.containerContentEntryUid=c,_.cntLastModified=l,_.mimeType=u,_.remarks=h,_.mobileOptimized=d,_.cntNumEntries=p,_}));var e}function Em(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$contentEntryUid=t,this.local$_stmt=e}function ym(t){return lt(t,X,(e=t,function(t){return e.getLong_za3lpa$(1)}));var e}function bm(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$contentEntryUid=t,this.local$_stmt=e}function Sm(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("containerUid"),i=e.getString_61zpoe$("mimeType"),o=new Q7;return o.containerUid=n,o.mimeType=i,o}));var e}function vm(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$contentEntryUid=t,this.local$closure$downloadRequired=e,this.local$_stmt=n}function Cm(t){return lt(t,X,(e=t,function(t){return e.getLong_za3lpa$(1)}));var e}function Nm(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$containerUid=t,this.local$_stmt=e}function Tm(t){pt.call(this,t)}function Lm(t){pt.call(this,t)}function zm(t,e){U_.call(this),this._db_0=t,this._dao_0=e}function wm(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function Om(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function Rm(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_pkManager=void 0,this.local$_generatedPks=void 0,this.local$$receiver=void 0,this.local$element=void 0,this.local$containerList=e}function Am(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$containerUid=e,this.local$changeTime=n}function xm(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Im(t,e,n,i,o,r){U_.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function Um(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function Dm(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function Pm(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$containerList=e}function Mm(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$contentEntry=e}function km(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$uid=e}function jm(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$contentEntries=e}function Gm(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$contentEntryUid=e}function qm(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$contentEntryUid=e}function Fm(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$containerUid=e}function Bm(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$containerUid=e,this.local$changeTime=n}function Wm(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$contentEntryUid=e}function Hm(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$contentEntryUid=e}function Vm(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$contentEntryUid=e,this.local$downloadRequired=n}function Km(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$containerUid=e}function Xm(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Jm(){}function Ym(t){Jm.call(this),this._db=t,this._insertAdapterContainerETag_=new tf(this._db)}function Qm(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Zm(t){return lt(t,null,(e=t,function(t){return e.getString_za3lpa$(1)}));var e}function tf(t){pt.call(this,t)}function ef(){}function nf(t){ef.call(this),this._db=t,this._insertAdapterContainerEntry_=new gf(this._db)}function of(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$containerEntryList=e}function rf(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function sf(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("ceUid"),i=e.getLong_61zpoe$("ceContainerUid"),o=e.getString_61zpoe$("cePath"),r=e.getLong_61zpoe$("ceCefUid"),s=0,a=e.getLong_61zpoe$("cefUid");e.wasNull()&&(s=s+1|0);var c=e.getString_61zpoe$("cefMd5");e.wasNull()&&(s=s+1|0);var l=e.getString_61zpoe$("cefPath");e.wasNull()&&(s=s+1|0);var u=e.getLong_61zpoe$("ceTotalSize");e.wasNull()&&(s=s+1|0);var h=e.getLong_61zpoe$("ceCompressedSize");e.wasNull()&&(s=s+1|0);var d=e.getInt_61zpoe$("compression");e.wasNull()&&(s=s+1|0);var p=e.getLong_61zpoe$("lastModified");e.wasNull()&&(s=s+1|0);var _=7===s,m=new z7;if(m.ceUid=n,m.ceContainerUid=i,m.cePath=o,m.ceCefUid=r,!_){var f=new d7;f.cefUid=a,f.cefMd5=c,f.cefPath=l,f.ceTotalSize=u,f.ceCompressedSize=h,f.compression=d,f.lastModified=p,m.containerEntryFile=f}return m}));var e}function af(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("ceUid"),i=e.getLong_61zpoe$("ceContainerUid"),o=e.getString_61zpoe$("cePath"),r=e.getLong_61zpoe$("ceCefUid"),s=0,a=e.getLong_61zpoe$("cefUid");e.wasNull()&&(s=s+1|0);var c=e.getString_61zpoe$("cefMd5");e.wasNull()&&(s=s+1|0);var l=e.getString_61zpoe$("cefPath");e.wasNull()&&(s=s+1|0);var u=e.getLong_61zpoe$("ceTotalSize");e.wasNull()&&(s=s+1|0);var h=e.getLong_61zpoe$("ceCompressedSize");e.wasNull()&&(s=s+1|0);var d=e.getInt_61zpoe$("compression");e.wasNull()&&(s=s+1|0);var p=e.getLong_61zpoe$("lastModified");e.wasNull()&&(s=s+1|0);var _=7===s,m=new z7;if(m.ceUid=n,m.ceContainerUid=i,m.cePath=o,m.ceCefUid=r,!_){var f=new d7;f.cefUid=a,f.cefMd5=c,f.cefPath=l,f.ceTotalSize=u,f.ceCompressedSize=h,f.compression=d,f.lastModified=p,m.containerEntryFile=f}return m}));var e}function cf(t){return mt(t,(e=t,function(t){var n=e.getString_61zpoe$("cefMd5"),i=e.getLong_61zpoe$("ceUid"),o=e.getLong_61zpoe$("ceContainerUid"),r=e.getString_61zpoe$("cePath"),s=e.getLong_61zpoe$("ceCefUid"),a=new D7;return a.cefMd5=n,a.ceUid=i,a.ceContainerUid=o,a.cePath=r,a.ceCefUid=s,a}));var e}function lf(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("ceUid"),i=e.getLong_61zpoe$("ceContainerUid"),o=e.getString_61zpoe$("cePath"),r=e.getLong_61zpoe$("ceCefUid"),s=0,a=e.getLong_61zpoe$("cefUid");e.wasNull()&&(s=s+1|0);var c=e.getString_61zpoe$("cefMd5");e.wasNull()&&(s=s+1|0);var l=e.getString_61zpoe$("cefPath");e.wasNull()&&(s=s+1|0);var u=e.getLong_61zpoe$("ceTotalSize");e.wasNull()&&(s=s+1|0);var h=e.getLong_61zpoe$("ceCompressedSize");e.wasNull()&&(s=s+1|0);var d=e.getInt_61zpoe$("compression");e.wasNull()&&(s=s+1|0);var p=e.getLong_61zpoe$("lastModified");e.wasNull()&&(s=s+1|0);var _=7===s,m=new z7;if(m.ceUid=n,m.ceContainerUid=i,m.cePath=o,m.ceCefUid=r,!_){var f=new d7;f.cefUid=a,f.cefMd5=c,f.cefPath=l,f.ceTotalSize=u,f.ceCompressedSize=h,f.compression=d,f.lastModified=p,m.containerEntryFile=f}return m}));var e}function uf(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$containerUid=t,this.local$_stmt=e}function hf(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$jobId=t,this.local$_stmt=e}function df(t){return function(e,n,i){var o=new hf(t,e,n);return i?o:o.doResume(null)}}function pf(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$jobId=e}function _f(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$containerUid=t,this.local$closure$path=e,this.local$closure$md5=n,this.local$_stmt=i}function mf(t,e,n){return function(i,o,r){var s=new _f(t,e,n,i,o);return r?s:s.doResume(null)}}function ff(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$containerUid=e,this.local$path=n,this.local$md5=i}function gf(t){pt.call(this,t)}function $f(){}function Ef(t){$f.call(this),this._db=t,this._insertAdapterContainerEntryFile_=new qf(this._db)}function yf(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$list=e}function bf(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Sf(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("cefUid"),i=e.getString_61zpoe$("cefMd5"),o=e.getString_61zpoe$("cefPath"),r=e.getLong_61zpoe$("ceTotalSize"),s=e.getLong_61zpoe$("ceCompressedSize"),a=e.getInt_61zpoe$("compression"),c=e.getLong_61zpoe$("lastModified"),l=new d7;return l.cefUid=n,l.cefMd5=i,l.cefPath=o,l.ceTotalSize=r,l.ceCompressedSize=s,l.compression=a,l.lastModified=c,l}));var e}function vf(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("cefUid"),i=e.getString_61zpoe$("cefMd5"),o=e.getString_61zpoe$("cefPath"),r=e.getLong_61zpoe$("ceTotalSize"),s=e.getLong_61zpoe$("ceCompressedSize"),a=e.getInt_61zpoe$("compression"),c=e.getLong_61zpoe$("lastModified"),l=new d7;return l.cefUid=n,l.cefMd5=i,l.cefPath=o,l.ceTotalSize=r,l.ceCompressedSize=s,l.compression=a,l.lastModified=c,l}));var e}function Cf(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$md5Sums=t,this.local$_stmt=e}function Nf(t){return mt(t,(e=t,function(t){return e.getString_za3lpa$(1)}));var e}function Tf(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$md5Sums=t,this.local$_stmt=e}function Lf(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("cefUid"),i=e.getString_61zpoe$("cefMd5"),o=e.getString_61zpoe$("cefPath"),r=e.getLong_61zpoe$("ceTotalSize"),s=e.getLong_61zpoe$("ceCompressedSize"),a=e.getInt_61zpoe$("compression"),c=e.getLong_61zpoe$("lastModified"),l=new d7;return l.cefUid=n,l.cefMd5=i,l.cefPath=o,l.ceTotalSize=r,l.ceCompressedSize=s,l.compression=a,l.lastModified=c,l}));var e}function zf(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("cefUid"),i=e.getString_61zpoe$("cefMd5"),o=e.getString_61zpoe$("cefPath"),r=e.getLong_61zpoe$("ceTotalSize"),s=e.getLong_61zpoe$("ceCompressedSize"),a=e.getInt_61zpoe$("compression"),c=e.getLong_61zpoe$("lastModified"),l=new d7;return l.cefUid=n,l.cefMd5=i,l.cefPath=o,l.ceTotalSize=r,l.ceCompressedSize=s,l.compression=a,l.lastModified=c,l}));var e}function wf(t){return lt(t,X,(e=t,function(t){return e.getLong_za3lpa$(1)}));var e}function Of(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("cefUid"),i=e.getString_61zpoe$("cefMd5"),o=e.getString_61zpoe$("cefPath"),r=e.getLong_61zpoe$("ceTotalSize"),s=e.getLong_61zpoe$("ceCompressedSize"),a=e.getInt_61zpoe$("compression"),c=e.getLong_61zpoe$("lastModified"),l=new d7;return l.cefUid=n,l.cefMd5=i,l.cefPath=o,l.ceTotalSize=r,l.ceCompressedSize=s,l.compression=a,l.lastModified=c,l}));var e}function Rf(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function Af(t,e,n){var i=new Rf(t,e);return n?i:i.doResume(null)}function xf(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("cefUid"),i=e.getString_61zpoe$("cefMd5"),o=e.getString_61zpoe$("cefPath"),r=e.getLong_61zpoe$("ceTotalSize"),s=e.getLong_61zpoe$("ceCompressedSize"),a=e.getInt_61zpoe$("compression"),c=e.getLong_61zpoe$("lastModified"),l=new d7;return l.cefUid=n,l.cefMd5=i,l.cefPath=o,l.ceTotalSize=r,l.ceCompressedSize=s,l.compression=a,l.lastModified=c,l}));var e}function If(t){return ut(t.executeQuery(),xf)}function Uf(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("cefUid"),i=e.getString_61zpoe$("cefPath"),o=new y7;return o.cefUid=n,o.cefPath=i,o}));var e}function Df(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$limit=t,this.local$_stmt=e}function Pf(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uidList=t,this.local$_stmt=e}function Mf(t){return function(e,n,i){var o=new Pf(t,e,n);return i?o:o.doResume(null)}}function kf(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$uidList=e}function jf(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("cefUid"),i=e.getString_61zpoe$("cefMd5"),o=e.getString_61zpoe$("cefPath"),r=e.getLong_61zpoe$("ceTotalSize"),s=e.getLong_61zpoe$("ceCompressedSize"),a=e.getInt_61zpoe$("compression"),c=e.getLong_61zpoe$("lastModified"),l=new d7;return l.cefUid=n,l.cefMd5=i,l.cefPath=o,l.ceTotalSize=r,l.ceCompressedSize=s,l.compression=a,l.lastModified=c,l}));var e}function Gf(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$md5Sum=t,this.local$_stmt=e}function qf(t){pt.call(this,t)}function Ff(){}function Bf(t){Ff.call(this),this._db=t,this._insertAdapterContainerImportJob_=new ug(this._db)}function Wf(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Hf(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("cijUid"),i=e.getLong_61zpoe$("cijContainerUid"),o=e.getString_61zpoe$("cijUri"),r=e.getInt_61zpoe$("cijImportMode"),s=e.getString_61zpoe$("cijContainerBaseDir"),a=e.getLong_61zpoe$("cijContentEntryUid"),c=e.getString_61zpoe$("cijMimeType"),l=e.getString_61zpoe$("cijSessionId"),u=e.getInt_61zpoe$("cijJobStatus"),h=e.getLong_61zpoe$("cijBytesSoFar"),d=e.getBoolean_61zpoe$("cijImportCompleted"),p=e.getLong_61zpoe$("cijContentLength"),_=e.getString_61zpoe$("cijContainerEntryFileUids"),m=e.getString_61zpoe$("cijConversionParams"),f=new B7;return f.cijUid=n,f.cijContainerUid=i,f.cijUri=o,f.cijImportMode=r,f.cijContainerBaseDir=s,f.cijContentEntryUid=a,f.cijMimeType=c,f.cijSessionId=l,f.cijJobStatus=u,f.cijBytesSoFar=h,f.cijImportCompleted=d,f.cijContentLength=p,f.cijContainerEntryFileUids=_,f.cijConversionParams=m,f}));var e}function Vf(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("cijUid"),i=e.getLong_61zpoe$("cijContainerUid"),o=e.getString_61zpoe$("cijUri"),r=e.getInt_61zpoe$("cijImportMode"),s=e.getString_61zpoe$("cijContainerBaseDir"),a=e.getLong_61zpoe$("cijContentEntryUid"),c=e.getString_61zpoe$("cijMimeType"),l=e.getString_61zpoe$("cijSessionId"),u=e.getInt_61zpoe$("cijJobStatus"),h=e.getLong_61zpoe$("cijBytesSoFar"),d=e.getBoolean_61zpoe$("cijImportCompleted"),p=e.getLong_61zpoe$("cijContentLength"),_=e.getString_61zpoe$("cijContainerEntryFileUids"),m=e.getString_61zpoe$("cijConversionParams"),f=new B7;return f.cijUid=n,f.cijContainerUid=i,f.cijUri=o,f.cijImportMode=r,f.cijContainerBaseDir=s,f.cijContentEntryUid=a,f.cijMimeType=c,f.cijSessionId=l,f.cijJobStatus=u,f.cijBytesSoFar=h,f.cijImportCompleted=d,f.cijContentLength=p,f.cijContainerEntryFileUids=_,f.cijConversionParams=m,f}));var e}function Kf(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("cijUid"),i=e.getLong_61zpoe$("cijContainerUid"),o=e.getString_61zpoe$("cijUri"),r=e.getInt_61zpoe$("cijImportMode"),s=e.getString_61zpoe$("cijContainerBaseDir"),a=e.getLong_61zpoe$("cijContentEntryUid"),c=e.getString_61zpoe$("cijMimeType"),l=e.getString_61zpoe$("cijSessionId"),u=e.getInt_61zpoe$("cijJobStatus"),h=e.getLong_61zpoe$("cijBytesSoFar"),d=e.getBoolean_61zpoe$("cijImportCompleted"),p=e.getLong_61zpoe$("cijContentLength"),_=e.getString_61zpoe$("cijContainerEntryFileUids"),m=e.getString_61zpoe$("cijConversionParams"),f=new B7;return f.cijUid=n,f.cijContainerUid=i,f.cijUri=o,f.cijImportMode=r,f.cijContainerBaseDir=s,f.cijContentEntryUid=a,f.cijMimeType=c,f.cijSessionId=l,f.cijJobStatus=u,f.cijBytesSoFar=h,f.cijImportCompleted=d,f.cijContentLength=p,f.cijContainerEntryFileUids=_,f.cijConversionParams=m,f}));var e}function Xf(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function Jf(t,e,n){var i=new Xf(t,e);return n?i:i.doResume(null)}function Yf(t,e){N.call(this,e),this.exceptionState_0=1,this.local$this$ContainerImportJobDao_JdbcKt=t}function Qf(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uploadJobId=t,this.local$_stmt=e}function Zf(t){return function(e,n,i){var o=new Qf(t,e,n);return i?o:o.doResume(null)}}function tg(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$uploadJobId=e}function eg(t){return lt(t,null,(e=t,function(t){return e.getString_za3lpa$(1)}));var e}function ng(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$importJobUid=t,this.local$_stmt=e}function ig(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("cijUid"),i=e.getLong_61zpoe$("cijContainerUid"),o=e.getString_61zpoe$("cijUri"),r=e.getInt_61zpoe$("cijImportMode"),s=e.getString_61zpoe$("cijContainerBaseDir"),a=e.getLong_61zpoe$("cijContentEntryUid"),c=e.getString_61zpoe$("cijMimeType"),l=e.getString_61zpoe$("cijSessionId"),u=e.getInt_61zpoe$("cijJobStatus"),h=e.getLong_61zpoe$("cijBytesSoFar"),d=e.getBoolean_61zpoe$("cijImportCompleted"),p=e.getLong_61zpoe$("cijContentLength"),_=e.getString_61zpoe$("cijContainerEntryFileUids"),m=e.getString_61zpoe$("cijConversionParams"),f=new B7;return f.cijUid=n,f.cijContainerUid=i,f.cijUri=o,f.cijImportMode=r,f.cijContainerBaseDir=s,f.cijContentEntryUid=a,f.cijMimeType=c,f.cijSessionId=l,f.cijJobStatus=u,f.cijBytesSoFar=h,f.cijImportCompleted=d,f.cijContentLength=p,f.cijContainerEntryFileUids=_,f.cijConversionParams=m,f}));var e}function og(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$importJobUid=t,this.local$_stmt=e}function rg(t){return function(e,n,i){var o=new og(t,e,n);return i?o:o.doResume(null)}}function sg(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$ContainerImportJobDao_JdbcKt=t,this.local$closure$importJobUid=e}function ag(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$sessionId=t,this.local$closure$importJobUid=e,this.local$_stmt=n}function cg(t,e){return function(n,i,o){var r=new ag(t,e,n,i);return o?r:r.doResume(null)}}function lg(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$importJobUid=e,this.local$sessionId=n}function ug(t){pt.call(this,t)}function hg(){}function dg(t){hg.call(this),this._db=t,this._insertAdapterContentCategory_=new vg(this._db)}function pg(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function _g(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function mg(t){return function(e,n,i){var o=new _g(t,e,n);return i?o:o.doResume(null)}}function fg(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function gg(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function $g(t,e,n){var i=new gg(t,e);return n?i:i.doResume(null)}function Eg(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function yg(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("contentCategoryUid"),i=e.getLong_61zpoe$("ctnCatContentCategorySchemaUid"),o=e.getString_61zpoe$("name"),r=e.getLong_61zpoe$("contentCategoryLocalChangeSeqNum"),s=e.getLong_61zpoe$("contentCategoryMasterChangeSeqNum"),a=e.getInt_61zpoe$("contentCategoryLastChangedBy"),c=e.getLong_61zpoe$("contentCategoryLct"),l=new _tt;return l.contentCategoryUid=n,l.ctnCatContentCategorySchemaUid=i,l.name=o,l.contentCategoryLocalChangeSeqNum=r,l.contentCategoryMasterChangeSeqNum=s,l.contentCategoryLastChangedBy=a,l.contentCategoryLct=c,l}));var e}function bg(t){return ut(t.executeQuery(),yg)}function Sg(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("contentCategoryUid"),i=e.getLong_61zpoe$("ctnCatContentCategorySchemaUid"),o=e.getString_61zpoe$("name"),r=e.getLong_61zpoe$("contentCategoryLocalChangeSeqNum"),s=e.getLong_61zpoe$("contentCategoryMasterChangeSeqNum"),a=e.getInt_61zpoe$("contentCategoryLastChangedBy"),c=e.getLong_61zpoe$("contentCategoryLct"),l=new _tt;return l.contentCategoryUid=n,l.ctnCatContentCategorySchemaUid=i,l.name=o,l.contentCategoryLocalChangeSeqNum=r,l.contentCategoryMasterChangeSeqNum=s,l.contentCategoryLastChangedBy=a,l.contentCategoryLct=c,l}));var e}function vg(t){pt.call(this,t)}function Cg(t,e){hg.call(this),this._db_0=t,this._dao_0=e}function Ng(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function Tg(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function Lg(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function zg(t,e,n,i,o,r){hg.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function wg(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function Og(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function Rg(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Ag(){}function xg(t){Ag.call(this),this._db=t,this._insertAdapterContentCategorySchema_=new Bg(this._db)}function Ig(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Ug(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function Dg(t){return function(e,n,i){var o=new Ug(t,e,n);return i?o:o.doResume(null)}}function Pg(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function Mg(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function kg(t,e,n){var i=new Mg(t,e);return n?i:i.doResume(null)}function jg(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function Gg(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("contentCategorySchemaUid"),i=e.getString_61zpoe$("schemaName"),o=e.getString_61zpoe$("schemaUrl"),r=e.getLong_61zpoe$("contentCategorySchemaLocalChangeSeqNum"),s=e.getLong_61zpoe$("contentCategorySchemaMasterChangeSeqNum"),a=e.getInt_61zpoe$("contentCategorySchemaLastChangedBy"),c=e.getLong_61zpoe$("contentCategorySchemaLct"),l=new Stt;return l.contentCategorySchemaUid=n,l.schemaName=i,l.schemaUrl=o,l.contentCategorySchemaLocalChangeSeqNum=r,l.contentCategorySchemaMasterChangeSeqNum=s,l.contentCategorySchemaLastChangedBy=a,l.contentCategorySchemaLct=c,l}));var e}function qg(t){return ut(t.executeQuery(),Gg)}function Fg(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("contentCategorySchemaUid"),i=e.getString_61zpoe$("schemaName"),o=e.getString_61zpoe$("schemaUrl"),r=e.getLong_61zpoe$("contentCategorySchemaLocalChangeSeqNum"),s=e.getLong_61zpoe$("contentCategorySchemaMasterChangeSeqNum"),a=e.getInt_61zpoe$("contentCategorySchemaLastChangedBy"),c=e.getLong_61zpoe$("contentCategorySchemaLct"),l=new Stt;return l.contentCategorySchemaUid=n,l.schemaName=i,l.schemaUrl=o,l.contentCategorySchemaLocalChangeSeqNum=r,l.contentCategorySchemaMasterChangeSeqNum=s,l.contentCategorySchemaLastChangedBy=a,l.contentCategorySchemaLct=c,l}));var e}function Bg(t){pt.call(this,t)}function Wg(t,e){Ag.call(this),this._db_0=t,this._dao_0=e}function Hg(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function Vg(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function Kg(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Xg(t,e,n,i,o,r){Ag.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function Jg(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function Yg(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function Qg(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Zg(){}function t$(t){Zg.call(this),this._db=t,this._insertAdapterContentEntryContentCategoryJoin_=new h$(this._db)}function e$(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function n$(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function i$(t){return function(e,n,i){var o=new n$(t,e,n);return i?o:o.doResume(null)}}function o$(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function r$(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function s$(t,e,n){var i=new r$(t,e);return n?i:i.doResume(null)}function a$(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function c$(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("ceccjUid"),i=e.getLong_61zpoe$("ceccjContentEntryUid"),o=e.getLong_61zpoe$("ceccjContentCategoryUid"),r=e.getLong_61zpoe$("ceccjLocalChangeSeqNum"),s=e.getLong_61zpoe$("ceccjMasterChangeSeqNum"),a=e.getInt_61zpoe$("ceccjLastChangedBy"),c=e.getLong_61zpoe$("ceccjLct"),l=new ktt;return l.ceccjUid=n,l.ceccjContentEntryUid=i,l.ceccjContentCategoryUid=o,l.ceccjLocalChangeSeqNum=r,l.ceccjMasterChangeSeqNum=s,l.ceccjLastChangedBy=a,l.ceccjLct=c,l}));var e}function l$(t){return ut(t.executeQuery(),c$)}function u$(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("ceccjUid"),i=e.getLong_61zpoe$("ceccjContentEntryUid"),o=e.getLong_61zpoe$("ceccjContentCategoryUid"),r=e.getLong_61zpoe$("ceccjLocalChangeSeqNum"),s=e.getLong_61zpoe$("ceccjMasterChangeSeqNum"),a=e.getInt_61zpoe$("ceccjLastChangedBy"),c=e.getLong_61zpoe$("ceccjLct"),l=new ktt;return l.ceccjUid=n,l.ceccjContentEntryUid=i,l.ceccjContentCategoryUid=o,l.ceccjLocalChangeSeqNum=r,l.ceccjMasterChangeSeqNum=s,l.ceccjLastChangedBy=a,l.ceccjLct=c,l}));var e}function h$(t){pt.call(this,t)}function d$(t,e){Zg.call(this),this._db_0=t,this._dao_0=e}function p$(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function _$(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function m$(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function f$(t,e,n,i,o,r){Zg.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function g$(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function $$(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function E$(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function y$(){}function b$(t){y$.call(this),this._db=t,this._insertAdapterContentEntry_=new Wy(this._db),this._insertAdapterContentEntry_upsert=new Hy(this._db)}function S$(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function v$(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function C$(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$entity=t,this.local$closure$_result=e,this.local$tmp$=void 0,this.local$_stmt=n}function N$(t,e){return function(n,i,o){var r=new C$(t,e,n,i);return o?r:r.doResume(null)}}function T$(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_result=void 0,this.local$entity=e}function L$(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function z$(t){return function(e,n,i){var o=new L$(t,e,n);return i?o:o.doResume(null)}}function w$(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function O$(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function R$(t,e,n){var i=new O$(t,e);return n?i:i.doResume(null)}function A$(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function x$(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("contentEntryUid"),i=e.getString_61zpoe$("title"),o=e.getString_61zpoe$("description"),r=e.getString_61zpoe$("entryId"),s=e.getString_61zpoe$("author"),a=e.getString_61zpoe$("publisher"),c=e.getInt_61zpoe$("licenseType"),l=e.getString_61zpoe$("licenseName"),u=e.getString_61zpoe$("licenseUrl"),h=e.getString_61zpoe$("sourceUrl"),d=e.getString_61zpoe$("thumbnailUrl"),p=e.getLong_61zpoe$("lastModified"),_=e.getLong_61zpoe$("primaryLanguageUid"),m=e.getLong_61zpoe$("languageVariantUid"),f=e.getInt_61zpoe$("contentFlags"),g=e.getBoolean_61zpoe$("leaf"),$=e.getBoolean_61zpoe$("publik"),E=e.getBoolean_61zpoe$("ceInactive"),y=e.getInt_61zpoe$("completionCriteria"),b=e.getInt_61zpoe$("minScore"),S=e.getInt_61zpoe$("contentTypeFlag"),v=e.getLong_61zpoe$("contentOwner"),C=e.getLong_61zpoe$("contentEntryLocalChangeSeqNum"),N=e.getLong_61zpoe$("contentEntryMasterChangeSeqNum"),T=e.getInt_61zpoe$("contentEntryLastChangedBy"),L=e.getLong_61zpoe$("contentEntryLct"),z=0,w=e.getLong_61zpoe$("langUid");e.wasNull()&&(z=z+1|0);var O=e.getString_61zpoe$("name");e.wasNull()&&(z=z+1|0);var R=e.getString_61zpoe$("iso_639_1_standard");e.wasNull()&&(z=z+1|0);var A=e.getString_61zpoe$("iso_639_2_standard");e.wasNull()&&(z=z+1|0);var x=e.getString_61zpoe$("iso_639_3_standard");e.wasNull()&&(z=z+1|0);var I=e.getString_61zpoe$("Language_Type");e.wasNull()&&(z=z+1|0);var U=e.getBoolean_61zpoe$("languageActive");e.wasNull()&&(z=z+1|0);var D=e.getLong_61zpoe$("langLocalChangeSeqNum");e.wasNull()&&(z=z+1|0);var P=e.getLong_61zpoe$("langMasterChangeSeqNum");e.wasNull()&&(z=z+1|0);var M=e.getInt_61zpoe$("langLastChangedBy");e.wasNull()&&(z=z+1|0);var k=e.getLong_61zpoe$("langLct");e.wasNull()&&(z=z+1|0);var j=11===z,G=new ont;if(G.contentEntryUid=n,G.title=i,G.description=o,G.entryId=r,G.author=s,G.publisher=a,G.licenseType=c,G.licenseName=l,G.licenseUrl=u,G.sourceUrl=h,G.thumbnailUrl=d,G.lastModified=p,G.primaryLanguageUid=_,G.languageVariantUid=m,G.contentFlags=f,G.leaf=g,G.publik=$,G.ceInactive=E,G.completionCriteria=y,G.minScore=b,G.contentTypeFlag=S,G.contentOwner=v,G.contentEntryLocalChangeSeqNum=C,G.contentEntryMasterChangeSeqNum=N,G.contentEntryLastChangedBy=T,G.contentEntryLct=L,!j){var q=new kst;q.langUid=w,q.name=O,q.iso_639_1_standard=R,q.iso_639_2_standard=A,q.iso_639_3_standard=x,q.Language_Type=I,q.languageActive=U,q.langLocalChangeSeqNum=D,q.langMasterChangeSeqNum=P,q.langLastChangedBy=M,q.langLct=k,G.language=q}return G}));var e}function I$(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$entryUuid=t,this.local$_stmt=e}function U$(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("contentEntryUid"),i=e.getString_61zpoe$("title"),o=e.getString_61zpoe$("description"),r=e.getString_61zpoe$("entryId"),s=e.getString_61zpoe$("author"),a=e.getString_61zpoe$("publisher"),c=e.getInt_61zpoe$("licenseType"),l=e.getString_61zpoe$("licenseName"),u=e.getString_61zpoe$("licenseUrl"),h=e.getString_61zpoe$("sourceUrl"),d=e.getString_61zpoe$("thumbnailUrl"),p=e.getLong_61zpoe$("lastModified"),_=e.getLong_61zpoe$("primaryLanguageUid"),m=e.getLong_61zpoe$("languageVariantUid"),f=e.getInt_61zpoe$("contentFlags"),g=e.getBoolean_61zpoe$("leaf"),$=e.getBoolean_61zpoe$("publik"),E=e.getBoolean_61zpoe$("ceInactive"),y=e.getInt_61zpoe$("completionCriteria"),b=e.getInt_61zpoe$("minScore"),S=e.getInt_61zpoe$("contentTypeFlag"),v=e.getLong_61zpoe$("contentOwner"),C=e.getLong_61zpoe$("contentEntryLocalChangeSeqNum"),N=e.getLong_61zpoe$("contentEntryMasterChangeSeqNum"),T=e.getInt_61zpoe$("contentEntryLastChangedBy"),L=e.getLong_61zpoe$("contentEntryLct"),z=0,w=e.getLong_61zpoe$("langUid");e.wasNull()&&(z=z+1|0);var O=e.getString_61zpoe$("name");e.wasNull()&&(z=z+1|0);var R=e.getString_61zpoe$("iso_639_1_standard");e.wasNull()&&(z=z+1|0);var A=e.getString_61zpoe$("iso_639_2_standard");e.wasNull()&&(z=z+1|0);var x=e.getString_61zpoe$("iso_639_3_standard");e.wasNull()&&(z=z+1|0);var I=e.getString_61zpoe$("Language_Type");e.wasNull()&&(z=z+1|0);var U=e.getBoolean_61zpoe$("languageActive");e.wasNull()&&(z=z+1|0);var D=e.getLong_61zpoe$("langLocalChangeSeqNum");e.wasNull()&&(z=z+1|0);var P=e.getLong_61zpoe$("langMasterChangeSeqNum");e.wasNull()&&(z=z+1|0);var M=e.getInt_61zpoe$("langLastChangedBy");e.wasNull()&&(z=z+1|0);var k=e.getLong_61zpoe$("langLct");e.wasNull()&&(z=z+1|0);var j=11===z,G=0,q=e.getLong_61zpoe$("cbUid");e.wasNull()&&(G=G+1|0);var F=e.getInt_61zpoe$("cbType");e.wasNull()&&(G=G+1|0);var B=e.getInt_61zpoe$("cbIndentLevel");e.wasNull()&&(G=G+1|0);var W=e.getLong_61zpoe$("cbModuleParentBlockUid");e.wasNull()&&(G=G+1|0);var H=e.getString_61zpoe$("cbTitle");e.wasNull()&&(G=G+1|0);var V=e.getString_61zpoe$("cbDescription");e.wasNull()&&(G=G+1|0);var K=e.getInt_61zpoe$("cbCompletionCriteria");e.wasNull()&&(G=G+1|0);var X=e.getLong_61zpoe$("cbHideUntilDate");e.wasNull()&&(G=G+1|0);var J=e.getLong_61zpoe$("cbDeadlineDate");e.wasNull()&&(G=G+1|0);var Y=e.getInt_61zpoe$("cbLateSubmissionPenalty");e.wasNull()&&(G=G+1|0);var Q=e.getLong_61zpoe$("cbGracePeriodDate");e.wasNull()&&(G=G+1|0);var Z=e.getInt_61zpoe$("cbMaxPoints");e.wasNull()&&(G=G+1|0);var tt=e.getInt_61zpoe$("cbMinPoints");e.wasNull()&&(G=G+1|0);var et=e.getInt_61zpoe$("cbIndex");e.wasNull()&&(G=G+1|0);var nt=e.getLong_61zpoe$("cbClazzUid");e.wasNull()&&(G=G+1|0);var it=e.getBoolean_61zpoe$("cbActive");e.wasNull()&&(G=G+1|0);var ot=e.getBoolean_61zpoe$("cbHidden");e.wasNull()&&(G=G+1|0);var rt=e.getLong_61zpoe$("cbEntityUid");e.wasNull()&&(G=G+1|0);var st=e.getLong_61zpoe$("cbLct");e.wasNull()&&(G=G+1|0);var at=19===G,ct=new Jet;if(ct.contentEntryUid=n,ct.title=i,ct.description=o,ct.entryId=r,ct.author=s,ct.publisher=a,ct.licenseType=c,ct.licenseName=l,ct.licenseUrl=u,ct.sourceUrl=h,ct.thumbnailUrl=d,ct.lastModified=p,ct.primaryLanguageUid=_,ct.languageVariantUid=m,ct.contentFlags=f,ct.leaf=g,ct.publik=$,ct.ceInactive=E,ct.completionCriteria=y,ct.minScore=b,ct.contentTypeFlag=S,ct.contentOwner=v,ct.contentEntryLocalChangeSeqNum=C,ct.contentEntryMasterChangeSeqNum=N,ct.contentEntryLastChangedBy=T,ct.contentEntryLct=L,!j){var lt=new kst;lt.langUid=w,lt.name=O,lt.iso_639_1_standard=R,lt.iso_639_2_standard=A,lt.iso_639_3_standard=x,lt.Language_Type=I,lt.languageActive=U,lt.langLocalChangeSeqNum=D,lt.langMasterChangeSeqNum=P,lt.langLastChangedBy=M,lt.langLct=k,ct.language=lt}if(!at){var ut=new Lit;ut.cbUid=q,ut.cbType=F,ut.cbIndentLevel=B,ut.cbModuleParentBlockUid=W,ut.cbTitle=H,ut.cbDescription=V,ut.cbCompletionCriteria=K,ut.cbHideUntilDate=X,ut.cbDeadlineDate=J,ut.cbLateSubmissionPenalty=Y,ut.cbGracePeriodDate=Q,ut.cbMaxPoints=Z,ut.cbMinPoints=tt,ut.cbIndex=et,ut.cbClazzUid=nt,ut.cbActive=it,ut.cbHidden=ot,ut.cbEntityUid=rt,ut.cbLct=st,ct.block=ut}return ct}));var e}function D$(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$entityUid=t,this.local$_stmt=e}function P$(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("contentEntryUid"),i=e.getString_61zpoe$("title"),o=e.getString_61zpoe$("description"),r=e.getString_61zpoe$("entryId"),s=e.getString_61zpoe$("author"),a=e.getString_61zpoe$("publisher"),c=e.getInt_61zpoe$("licenseType"),l=e.getString_61zpoe$("licenseName"),u=e.getString_61zpoe$("licenseUrl"),h=e.getString_61zpoe$("sourceUrl"),d=e.getString_61zpoe$("thumbnailUrl"),p=e.getLong_61zpoe$("lastModified"),_=e.getLong_61zpoe$("primaryLanguageUid"),m=e.getLong_61zpoe$("languageVariantUid"),f=e.getInt_61zpoe$("contentFlags"),g=e.getBoolean_61zpoe$("leaf"),$=e.getBoolean_61zpoe$("publik"),E=e.getBoolean_61zpoe$("ceInactive"),y=e.getInt_61zpoe$("completionCriteria"),b=e.getInt_61zpoe$("minScore"),S=e.getInt_61zpoe$("contentTypeFlag"),v=e.getLong_61zpoe$("contentOwner"),C=e.getLong_61zpoe$("contentEntryLocalChangeSeqNum"),N=e.getLong_61zpoe$("contentEntryMasterChangeSeqNum"),T=e.getInt_61zpoe$("contentEntryLastChangedBy"),L=e.getLong_61zpoe$("contentEntryLct"),z=0,w=e.getLong_61zpoe$("containerUid");e.wasNull()&&(z=z+1|0);var O=e.getLong_61zpoe$("cntLocalCsn");e.wasNull()&&(z=z+1|0);var R=e.getLong_61zpoe$("cntMasterCsn");e.wasNull()&&(z=z+1|0);var A=e.getInt_61zpoe$("cntLastModBy");e.wasNull()&&(z=z+1|0);var x=e.getLong_61zpoe$("cntLct");e.wasNull()&&(z=z+1|0);var I=e.getLong_61zpoe$("fileSize");e.wasNull()&&(z=z+1|0);var U=e.getLong_61zpoe$("containerContentEntryUid");e.wasNull()&&(z=z+1|0);var D=e.getLong_61zpoe$("cntLastModified");e.wasNull()&&(z=z+1|0);var P=e.getString_61zpoe$("mimeType");e.wasNull()&&(z=z+1|0);var M=e.getString_61zpoe$("remarks");e.wasNull()&&(z=z+1|0);var k=e.getBoolean_61zpoe$("mobileOptimized");e.wasNull()&&(z=z+1|0);var j=e.getInt_61zpoe$("cntNumEntries");e.wasNull()&&(z=z+1|0);var G=12===z,q=new dnt;if(q.contentEntryUid=n,q.title=i,q.description=o,q.entryId=r,q.author=s,q.publisher=a,q.licenseType=c,q.licenseName=l,q.licenseUrl=u,q.sourceUrl=h,q.thumbnailUrl=d,q.lastModified=p,q.primaryLanguageUid=_,q.languageVariantUid=m,q.contentFlags=f,q.leaf=g,q.publik=$,q.ceInactive=E,q.completionCriteria=y,q.minScore=b,q.contentTypeFlag=S,q.contentOwner=v,q.contentEntryLocalChangeSeqNum=C,q.contentEntryMasterChangeSeqNum=N,q.contentEntryLastChangedBy=T,q.contentEntryLct=L,!G){var F=new J9;F.containerUid=w,F.cntLocalCsn=O,F.cntMasterCsn=R,F.cntLastModBy=A,F.cntLct=x,F.fileSize=I,F.containerContentEntryUid=U,F.cntLastModified=D,F.mimeType=P,F.remarks=M,F.mobileOptimized=k,F.cntNumEntries=j,q.container=F}return q}));var e}function M$(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$entryUuid=t,this.local$_stmt=e}function k$(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("contentEntryUid"),i=e.getString_61zpoe$("title"),o=e.getString_61zpoe$("description"),r=e.getString_61zpoe$("entryId"),s=e.getString_61zpoe$("author"),a=e.getString_61zpoe$("publisher"),c=e.getInt_61zpoe$("licenseType"),l=e.getString_61zpoe$("licenseName"),u=e.getString_61zpoe$("licenseUrl"),h=e.getString_61zpoe$("sourceUrl"),d=e.getString_61zpoe$("thumbnailUrl"),p=e.getLong_61zpoe$("lastModified"),_=e.getLong_61zpoe$("primaryLanguageUid"),m=e.getLong_61zpoe$("languageVariantUid"),f=e.getInt_61zpoe$("contentFlags"),g=e.getBoolean_61zpoe$("leaf"),$=e.getBoolean_61zpoe$("publik"),E=e.getBoolean_61zpoe$("ceInactive"),y=e.getInt_61zpoe$("completionCriteria"),b=e.getInt_61zpoe$("minScore"),S=e.getInt_61zpoe$("contentTypeFlag"),v=e.getLong_61zpoe$("contentOwner"),C=e.getLong_61zpoe$("contentEntryLocalChangeSeqNum"),N=e.getLong_61zpoe$("contentEntryMasterChangeSeqNum"),T=e.getInt_61zpoe$("contentEntryLastChangedBy"),L=e.getLong_61zpoe$("contentEntryLct"),z=0,w=e.getLong_61zpoe$("containerUid");e.wasNull()&&(z=z+1|0);var O=e.getLong_61zpoe$("cntLocalCsn");e.wasNull()&&(z=z+1|0);var R=e.getLong_61zpoe$("cntMasterCsn");e.wasNull()&&(z=z+1|0);var A=e.getInt_61zpoe$("cntLastModBy");e.wasNull()&&(z=z+1|0);var x=e.getLong_61zpoe$("cntLct");e.wasNull()&&(z=z+1|0);var I=e.getLong_61zpoe$("fileSize");e.wasNull()&&(z=z+1|0);var U=e.getLong_61zpoe$("containerContentEntryUid");e.wasNull()&&(z=z+1|0);var D=e.getLong_61zpoe$("cntLastModified");e.wasNull()&&(z=z+1|0);var P=e.getString_61zpoe$("mimeType");e.wasNull()&&(z=z+1|0);var M=e.getString_61zpoe$("remarks");e.wasNull()&&(z=z+1|0);var k=e.getBoolean_61zpoe$("mobileOptimized");e.wasNull()&&(z=z+1|0);var j=e.getInt_61zpoe$("cntNumEntries");e.wasNull()&&(z=z+1|0);var G=12===z,q=new dnt;if(q.contentEntryUid=n,q.title=i,q.description=o,q.entryId=r,q.author=s,q.publisher=a,q.licenseType=c,q.licenseName=l,q.licenseUrl=u,q.sourceUrl=h,q.thumbnailUrl=d,q.lastModified=p,q.primaryLanguageUid=_,q.languageVariantUid=m,q.contentFlags=f,q.leaf=g,q.publik=$,q.ceInactive=E,q.completionCriteria=y,q.minScore=b,q.contentTypeFlag=S,q.contentOwner=v,q.contentEntryLocalChangeSeqNum=C,q.contentEntryMasterChangeSeqNum=N,q.contentEntryLastChangedBy=T,q.contentEntryLct=L,!G){var F=new J9;F.containerUid=w,F.cntLocalCsn=O,F.cntMasterCsn=R,F.cntLastModBy=A,F.cntLct=x,F.fileSize=I,F.containerContentEntryUid=U,F.cntLastModified=D,F.mimeType=P,F.remarks=M,F.mobileOptimized=k,F.cntNumEntries=j,q.container=F}return q}));var e}function j$(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$entryUuid=t,this.local$_stmt=e}function G$(t){return function(e,n,i){var o=new j$(t,e,n);return i?o:o.doResume(null)}}function q$(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$ContentEntryDao_JdbcKt=t,this.local$closure$entryUuid=e}function F$(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("contentEntryUid"),i=e.getString_61zpoe$("title"),o=e.getString_61zpoe$("description"),r=e.getString_61zpoe$("entryId"),s=e.getString_61zpoe$("author"),a=e.getString_61zpoe$("publisher"),c=e.getInt_61zpoe$("licenseType"),l=e.getString_61zpoe$("licenseName"),u=e.getString_61zpoe$("licenseUrl"),h=e.getString_61zpoe$("sourceUrl"),d=e.getString_61zpoe$("thumbnailUrl"),p=e.getLong_61zpoe$("lastModified"),_=e.getLong_61zpoe$("primaryLanguageUid"),m=e.getLong_61zpoe$("languageVariantUid"),f=e.getInt_61zpoe$("contentFlags"),g=e.getBoolean_61zpoe$("leaf"),$=e.getBoolean_61zpoe$("publik"),E=e.getBoolean_61zpoe$("ceInactive"),y=e.getInt_61zpoe$("completionCriteria"),b=e.getInt_61zpoe$("minScore"),S=e.getInt_61zpoe$("contentTypeFlag"),v=e.getLong_61zpoe$("contentOwner"),C=e.getLong_61zpoe$("contentEntryLocalChangeSeqNum"),N=e.getLong_61zpoe$("contentEntryMasterChangeSeqNum"),T=e.getInt_61zpoe$("contentEntryLastChangedBy"),L=e.getLong_61zpoe$("contentEntryLct"),z=new Ott;return z.contentEntryUid=n,z.title=i,z.description=o,z.entryId=r,z.author=s,z.publisher=a,z.licenseType=c,z.licenseName=l,z.licenseUrl=u,z.sourceUrl=h,z.thumbnailUrl=d,z.lastModified=p,z.primaryLanguageUid=_,z.languageVariantUid=m,z.contentFlags=f,z.leaf=g,z.publik=$,z.ceInactive=E,z.completionCriteria=y,z.minScore=b,z.contentTypeFlag=S,z.contentOwner=v,z.contentEntryLocalChangeSeqNum=C,z.contentEntryMasterChangeSeqNum=N,z.contentEntryLastChangedBy=T,z.contentEntryLct=L,z}));var e}function B$(t){return lt(t,null,(e=t,function(t){return e.getString_za3lpa$(1)}));var e}function W$(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$contentEntryUid=t,this.local$_stmt=e}function H$(t,e){this.this$ContentEntryDao_JdbcKt=t,this.closure$parentUid=e,gt.call(this)}function V$(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("contentEntryUid"),i=e.getString_61zpoe$("title"),o=e.getString_61zpoe$("description"),r=e.getString_61zpoe$("entryId"),s=e.getString_61zpoe$("author"),a=e.getString_61zpoe$("publisher"),c=e.getInt_61zpoe$("licenseType"),l=e.getString_61zpoe$("licenseName"),u=e.getString_61zpoe$("licenseUrl"),h=e.getString_61zpoe$("sourceUrl"),d=e.getString_61zpoe$("thumbnailUrl"),p=e.getLong_61zpoe$("lastModified"),_=e.getLong_61zpoe$("primaryLanguageUid"),m=e.getLong_61zpoe$("languageVariantUid"),f=e.getInt_61zpoe$("contentFlags"),g=e.getBoolean_61zpoe$("leaf"),$=e.getBoolean_61zpoe$("publik"),E=e.getBoolean_61zpoe$("ceInactive"),y=e.getInt_61zpoe$("completionCriteria"),b=e.getInt_61zpoe$("minScore"),S=e.getInt_61zpoe$("contentTypeFlag"),v=e.getLong_61zpoe$("contentOwner"),C=e.getLong_61zpoe$("contentEntryLocalChangeSeqNum"),N=e.getLong_61zpoe$("contentEntryMasterChangeSeqNum"),T=e.getInt_61zpoe$("contentEntryLastChangedBy"),L=e.getLong_61zpoe$("contentEntryLct"),z=new Ott;return z.contentEntryUid=n,z.title=i,z.description=o,z.entryId=r,z.author=s,z.publisher=a,z.licenseType=c,z.licenseName=l,z.licenseUrl=u,z.sourceUrl=h,z.thumbnailUrl=d,z.lastModified=p,z.primaryLanguageUid=_,z.languageVariantUid=m,z.contentFlags=f,z.leaf=g,z.publik=$,z.ceInactive=E,z.completionCriteria=y,z.minScore=b,z.contentTypeFlag=S,z.contentOwner=v,z.contentEntryLocalChangeSeqNum=C,z.contentEntryMasterChangeSeqNum=N,z.contentEntryLastChangedBy=T,z.contentEntryLct=L,z}));var e}function K$(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$parentUid=t,this.local$closure$_limit=e,this.local$closure$_offset=n,this.local$_stmt=i}function X$(t,e,n){return function(i,o,r){var s=new K$(t,e,n,i,o);return r?s:s.doResume(null)}}function J$(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$this$ContentEntryDao_JdbcKt=t,this.local$closure$parentUid=e,this.local$closure$_limit=n,this.local$closure$_offset=i}function Y$(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function Q$(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$parentUid=t,this.local$_stmt=e}function Z$(t){return function(e,n,i){var o=new Q$(t,e,n);return i?o:o.doResume(null)}}function tE(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$ContentEntryDao_JdbcKt=t,this.local$closure$parentUid=e}function eE(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("contentEntryUid"),i=e.getString_61zpoe$("title"),o=e.getString_61zpoe$("description"),r=e.getString_61zpoe$("entryId"),s=e.getString_61zpoe$("author"),a=e.getString_61zpoe$("publisher"),c=e.getInt_61zpoe$("licenseType"),l=e.getString_61zpoe$("licenseName"),u=e.getString_61zpoe$("licenseUrl"),h=e.getString_61zpoe$("sourceUrl"),d=e.getString_61zpoe$("thumbnailUrl"),p=e.getLong_61zpoe$("lastModified"),_=e.getLong_61zpoe$("primaryLanguageUid"),m=e.getLong_61zpoe$("languageVariantUid"),f=e.getInt_61zpoe$("contentFlags"),g=e.getBoolean_61zpoe$("leaf"),$=e.getBoolean_61zpoe$("publik"),E=e.getBoolean_61zpoe$("ceInactive"),y=e.getInt_61zpoe$("completionCriteria"),b=e.getInt_61zpoe$("minScore"),S=e.getInt_61zpoe$("contentTypeFlag"),v=e.getLong_61zpoe$("contentOwner"),C=e.getLong_61zpoe$("contentEntryLocalChangeSeqNum"),N=e.getLong_61zpoe$("contentEntryMasterChangeSeqNum"),T=e.getInt_61zpoe$("contentEntryLastChangedBy"),L=e.getLong_61zpoe$("contentEntryLct"),z=new Ott;return z.contentEntryUid=n,z.title=i,z.description=o,z.entryId=r,z.author=s,z.publisher=a,z.licenseType=c,z.licenseName=l,z.licenseUrl=u,z.sourceUrl=h,z.thumbnailUrl=d,z.lastModified=p,z.primaryLanguageUid=_,z.languageVariantUid=m,z.contentFlags=f,z.leaf=g,z.publik=$,z.ceInactive=E,z.completionCriteria=y,z.minScore=b,z.contentTypeFlag=S,z.contentOwner=v,z.contentEntryLocalChangeSeqNum=C,z.contentEntryMasterChangeSeqNum=N,z.contentEntryLastChangedBy=T,z.contentEntryLct=L,z}));var e}function nE(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$parentUid=t,this.local$_stmt=e}function iE(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("contentEntryUid"),i=e.getBoolean_61zpoe$("leaf"),o=e.getLong_61zpoe$("mostRecentContainerUid"),r=e.getLong_61zpoe$("mostRecentContainerSize"),s=new Vtt;return s.contentEntryUid=n,s.leaf=i,s.mostRecentContainerUid=o,s.mostRecentContainerSize=r,s}));var e}function oE(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$parentUid=t,this.local$closure$limit=e,this.local$closure$offset=n,this.local$_stmt=i}function rE(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function sE(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$parentUid=t,this.local$_stmt=e}function aE(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("contentEntryUid"),i=e.getString_61zpoe$("title"),o=e.getString_61zpoe$("description"),r=e.getString_61zpoe$("entryId"),s=e.getString_61zpoe$("author"),a=e.getString_61zpoe$("publisher"),c=e.getInt_61zpoe$("licenseType"),l=e.getString_61zpoe$("licenseName"),u=e.getString_61zpoe$("licenseUrl"),h=e.getString_61zpoe$("sourceUrl"),d=e.getString_61zpoe$("thumbnailUrl"),p=e.getLong_61zpoe$("lastModified"),_=e.getLong_61zpoe$("primaryLanguageUid"),m=e.getLong_61zpoe$("languageVariantUid"),f=e.getInt_61zpoe$("contentFlags"),g=e.getBoolean_61zpoe$("leaf"),$=e.getBoolean_61zpoe$("publik"),E=e.getBoolean_61zpoe$("ceInactive"),y=e.getInt_61zpoe$("completionCriteria"),b=e.getInt_61zpoe$("minScore"),S=e.getInt_61zpoe$("contentTypeFlag"),v=e.getLong_61zpoe$("contentOwner"),C=e.getLong_61zpoe$("contentEntryLocalChangeSeqNum"),N=e.getLong_61zpoe$("contentEntryMasterChangeSeqNum"),T=e.getInt_61zpoe$("contentEntryLastChangedBy"),L=e.getLong_61zpoe$("contentEntryLct"),z=new Ott;return z.contentEntryUid=n,z.title=i,z.description=o,z.entryId=r,z.author=s,z.publisher=a,z.licenseType=c,z.licenseName=l,z.licenseUrl=u,z.sourceUrl=h,z.thumbnailUrl=d,z.lastModified=p,z.primaryLanguageUid=_,z.languageVariantUid=m,z.contentFlags=f,z.leaf=g,z.publik=$,z.ceInactive=E,z.completionCriteria=y,z.minScore=b,z.contentTypeFlag=S,z.contentOwner=v,z.contentEntryLocalChangeSeqNum=C,z.contentEntryMasterChangeSeqNum=N,z.contentEntryLastChangedBy=T,z.contentEntryLct=L,z}));var e}function cE(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$parentUid=t,this.local$_stmt=e}function lE(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("contentEntryUid"),i=e.getString_61zpoe$("title"),o=e.getString_61zpoe$("description"),r=e.getString_61zpoe$("entryId"),s=e.getString_61zpoe$("author"),a=e.getString_61zpoe$("publisher"),c=e.getInt_61zpoe$("licenseType"),l=e.getString_61zpoe$("licenseName"),u=e.getString_61zpoe$("licenseUrl"),h=e.getString_61zpoe$("sourceUrl"),d=e.getString_61zpoe$("thumbnailUrl"),p=e.getLong_61zpoe$("lastModified"),_=e.getLong_61zpoe$("primaryLanguageUid"),m=e.getLong_61zpoe$("languageVariantUid"),f=e.getInt_61zpoe$("contentFlags"),g=e.getBoolean_61zpoe$("leaf"),$=e.getBoolean_61zpoe$("publik"),E=e.getBoolean_61zpoe$("ceInactive"),y=e.getInt_61zpoe$("completionCriteria"),b=e.getInt_61zpoe$("minScore"),S=e.getInt_61zpoe$("contentTypeFlag"),v=e.getLong_61zpoe$("contentOwner"),C=e.getLong_61zpoe$("contentEntryLocalChangeSeqNum"),N=e.getLong_61zpoe$("contentEntryMasterChangeSeqNum"),T=e.getInt_61zpoe$("contentEntryLastChangedBy"),L=e.getLong_61zpoe$("contentEntryLct"),z=new Ott;return z.contentEntryUid=n,z.title=i,z.description=o,z.entryId=r,z.author=s,z.publisher=a,z.licenseType=c,z.licenseName=l,z.licenseUrl=u,z.sourceUrl=h,z.thumbnailUrl=d,z.lastModified=p,z.primaryLanguageUid=_,z.languageVariantUid=m,z.contentFlags=f,z.leaf=g,z.publik=$,z.ceInactive=E,z.completionCriteria=y,z.minScore=b,z.contentTypeFlag=S,z.contentOwner=v,z.contentEntryLocalChangeSeqNum=C,z.contentEntryMasterChangeSeqNum=N,z.contentEntryLastChangedBy=T,z.contentEntryLct=L,z}));var e}function uE(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$entryUuid=t,this.local$_stmt=e}function hE(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("contentCategoryUid"),i=e.getString_61zpoe$("categoryName"),o=e.getLong_61zpoe$("contentCategorySchemaUid"),r=e.getString_61zpoe$("schemaName"),s=new Crt;return s.contentCategoryUid=n,s.categoryName=i,s.contentCategorySchemaUid=o,s.schemaName=r,s}));var e}function dE(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$parentUid=t,this.local$_stmt=e}function pE(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("langUid"),i=e.getString_61zpoe$("name"),o=e.getString_61zpoe$("iso_639_1_standard"),r=e.getString_61zpoe$("iso_639_2_standard"),s=e.getString_61zpoe$("iso_639_3_standard"),a=e.getString_61zpoe$("Language_Type"),c=e.getBoolean_61zpoe$("languageActive"),l=e.getLong_61zpoe$("langLocalChangeSeqNum"),u=e.getLong_61zpoe$("langMasterChangeSeqNum"),h=e.getInt_61zpoe$("langLastChangedBy"),d=e.getLong_61zpoe$("langLct"),p=new kst;return p.langUid=n,p.name=i,p.iso_639_1_standard=o,p.iso_639_2_standard=r,p.iso_639_3_standard=s,p.Language_Type=a,p.languageActive=c,p.langLocalChangeSeqNum=l,p.langMasterChangeSeqNum=u,p.langLastChangedBy=h,p.langLct=d,p}));var e}function _E(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$parentUid=t,this.local$_stmt=e}function mE(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("langUid"),i=e.getString_61zpoe$("langName"),o=new Rst;return o.langUid=n,o.langName=i,o}));var e}function fE(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$parentUid=t,this.local$_stmt=e}function gE(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("contentEntryUid"),i=e.getString_61zpoe$("title"),o=e.getString_61zpoe$("description"),r=e.getString_61zpoe$("entryId"),s=e.getString_61zpoe$("author"),a=e.getString_61zpoe$("publisher"),c=e.getInt_61zpoe$("licenseType"),l=e.getString_61zpoe$("licenseName"),u=e.getString_61zpoe$("licenseUrl"),h=e.getString_61zpoe$("sourceUrl"),d=e.getString_61zpoe$("thumbnailUrl"),p=e.getLong_61zpoe$("lastModified"),_=e.getLong_61zpoe$("primaryLanguageUid"),m=e.getLong_61zpoe$("languageVariantUid"),f=e.getInt_61zpoe$("contentFlags"),g=e.getBoolean_61zpoe$("leaf"),$=e.getBoolean_61zpoe$("publik"),E=e.getBoolean_61zpoe$("ceInactive"),y=e.getInt_61zpoe$("completionCriteria"),b=e.getInt_61zpoe$("minScore"),S=e.getInt_61zpoe$("contentTypeFlag"),v=e.getLong_61zpoe$("contentOwner"),C=e.getLong_61zpoe$("contentEntryLocalChangeSeqNum"),N=e.getLong_61zpoe$("contentEntryMasterChangeSeqNum"),T=e.getInt_61zpoe$("contentEntryLastChangedBy"),L=e.getLong_61zpoe$("contentEntryLct"),z=new Ott;return z.contentEntryUid=n,z.title=i,z.description=o,z.entryId=r,z.author=s,z.publisher=a,z.licenseType=c,z.licenseName=l,z.licenseUrl=u,z.sourceUrl=h,z.thumbnailUrl=d,z.lastModified=p,z.primaryLanguageUid=_,z.languageVariantUid=m,z.contentFlags=f,z.leaf=g,z.publik=$,z.ceInactive=E,z.completionCriteria=y,z.minScore=b,z.contentTypeFlag=S,z.contentOwner=v,z.contentEntryLocalChangeSeqNum=C,z.contentEntryMasterChangeSeqNum=N,z.contentEntryLastChangedBy=T,z.contentEntryLct=L,z}));var e}function $E(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$entryUid=t,this.local$_stmt=e}function EE(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("contentEntryUid"),i=e.getString_61zpoe$("title"),o=e.getString_61zpoe$("description"),r=e.getString_61zpoe$("entryId"),s=e.getString_61zpoe$("author"),a=e.getString_61zpoe$("publisher"),c=e.getInt_61zpoe$("licenseType"),l=e.getString_61zpoe$("licenseName"),u=e.getString_61zpoe$("licenseUrl"),h=e.getString_61zpoe$("sourceUrl"),d=e.getString_61zpoe$("thumbnailUrl"),p=e.getLong_61zpoe$("lastModified"),_=e.getLong_61zpoe$("primaryLanguageUid"),m=e.getLong_61zpoe$("languageVariantUid"),f=e.getInt_61zpoe$("contentFlags"),g=e.getBoolean_61zpoe$("leaf"),$=e.getBoolean_61zpoe$("publik"),E=e.getBoolean_61zpoe$("ceInactive"),y=e.getInt_61zpoe$("completionCriteria"),b=e.getInt_61zpoe$("minScore"),S=e.getInt_61zpoe$("contentTypeFlag"),v=e.getLong_61zpoe$("contentOwner"),C=e.getLong_61zpoe$("contentEntryLocalChangeSeqNum"),N=e.getLong_61zpoe$("contentEntryMasterChangeSeqNum"),T=e.getInt_61zpoe$("contentEntryLastChangedBy"),L=e.getLong_61zpoe$("contentEntryLct"),z=0,w=e.getLong_61zpoe$("langUid");e.wasNull()&&(z=z+1|0);var O=e.getString_61zpoe$("name");e.wasNull()&&(z=z+1|0);var R=e.getString_61zpoe$("iso_639_1_standard");e.wasNull()&&(z=z+1|0);var A=e.getString_61zpoe$("iso_639_2_standard");e.wasNull()&&(z=z+1|0);var x=e.getString_61zpoe$("iso_639_3_standard");e.wasNull()&&(z=z+1|0);var I=e.getString_61zpoe$("Language_Type");e.wasNull()&&(z=z+1|0);var U=e.getBoolean_61zpoe$("languageActive");e.wasNull()&&(z=z+1|0);var D=e.getLong_61zpoe$("langLocalChangeSeqNum");e.wasNull()&&(z=z+1|0);var P=e.getLong_61zpoe$("langMasterChangeSeqNum");e.wasNull()&&(z=z+1|0);var M=e.getInt_61zpoe$("langLastChangedBy");e.wasNull()&&(z=z+1|0);var k=e.getLong_61zpoe$("langLct");e.wasNull()&&(z=z+1|0);var j=11===z,G=new ont;if(G.contentEntryUid=n,G.title=i,G.description=o,G.entryId=r,G.author=s,G.publisher=a,G.licenseType=c,G.licenseName=l,G.licenseUrl=u,G.sourceUrl=h,G.thumbnailUrl=d,G.lastModified=p,G.primaryLanguageUid=_,G.languageVariantUid=m,G.contentFlags=f,G.leaf=g,G.publik=$,G.ceInactive=E,G.completionCriteria=y,G.minScore=b,G.contentTypeFlag=S,G.contentOwner=v,G.contentEntryLocalChangeSeqNum=C,G.contentEntryMasterChangeSeqNum=N,G.contentEntryLastChangedBy=T,G.contentEntryLct=L,!j){var q=new kst;q.langUid=w,q.name=O,q.iso_639_1_standard=R,q.iso_639_2_standard=A,q.iso_639_3_standard=x,q.Language_Type=I,q.languageActive=U,q.langLocalChangeSeqNum=D,q.langMasterChangeSeqNum=P,q.langLastChangedBy=M,q.langLct=k,G.language=q}return G}));var e}function yE(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function bE(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("contentEntryUid"),i=e.getString_61zpoe$("title"),o=e.getString_61zpoe$("description"),r=e.getString_61zpoe$("entryId"),s=e.getString_61zpoe$("author"),a=e.getString_61zpoe$("publisher"),c=e.getInt_61zpoe$("licenseType"),l=e.getString_61zpoe$("licenseName"),u=e.getString_61zpoe$("licenseUrl"),h=e.getString_61zpoe$("sourceUrl"),d=e.getString_61zpoe$("thumbnailUrl"),p=e.getLong_61zpoe$("lastModified"),_=e.getLong_61zpoe$("primaryLanguageUid"),m=e.getLong_61zpoe$("languageVariantUid"),f=e.getInt_61zpoe$("contentFlags"),g=e.getBoolean_61zpoe$("leaf"),$=e.getBoolean_61zpoe$("publik"),E=e.getBoolean_61zpoe$("ceInactive"),y=e.getInt_61zpoe$("completionCriteria"),b=e.getInt_61zpoe$("minScore"),S=e.getInt_61zpoe$("contentTypeFlag"),v=e.getLong_61zpoe$("contentOwner"),C=e.getLong_61zpoe$("contentEntryLocalChangeSeqNum"),N=e.getLong_61zpoe$("contentEntryMasterChangeSeqNum"),T=e.getInt_61zpoe$("contentEntryLastChangedBy"),L=e.getLong_61zpoe$("contentEntryLct"),z=new Ott;return z.contentEntryUid=n,z.title=i,z.description=o,z.entryId=r,z.author=s,z.publisher=a,z.licenseType=c,z.licenseName=l,z.licenseUrl=u,z.sourceUrl=h,z.thumbnailUrl=d,z.lastModified=p,z.primaryLanguageUid=_,z.languageVariantUid=m,z.contentFlags=f,z.leaf=g,z.publik=$,z.ceInactive=E,z.completionCriteria=y,z.minScore=b,z.contentTypeFlag=S,z.contentOwner=v,z.contentEntryLocalChangeSeqNum=C,z.contentEntryMasterChangeSeqNum=N,z.contentEntryLastChangedBy=T,z.contentEntryLct=L,z}));var e}function SE(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("contentEntryUid"),i=e.getString_61zpoe$("title"),o=e.getString_61zpoe$("description"),r=e.getString_61zpoe$("entryId"),s=e.getString_61zpoe$("author"),a=e.getString_61zpoe$("publisher"),c=e.getInt_61zpoe$("licenseType"),l=e.getString_61zpoe$("licenseName"),u=e.getString_61zpoe$("licenseUrl"),h=e.getString_61zpoe$("sourceUrl"),d=e.getString_61zpoe$("thumbnailUrl"),p=e.getLong_61zpoe$("lastModified"),_=e.getLong_61zpoe$("primaryLanguageUid"),m=e.getLong_61zpoe$("languageVariantUid"),f=e.getInt_61zpoe$("contentFlags"),g=e.getBoolean_61zpoe$("leaf"),$=e.getBoolean_61zpoe$("publik"),E=e.getBoolean_61zpoe$("ceInactive"),y=e.getInt_61zpoe$("completionCriteria"),b=e.getInt_61zpoe$("minScore"),S=e.getInt_61zpoe$("contentTypeFlag"),v=e.getLong_61zpoe$("contentOwner"),C=e.getLong_61zpoe$("contentEntryLocalChangeSeqNum"),N=e.getLong_61zpoe$("contentEntryMasterChangeSeqNum"),T=e.getInt_61zpoe$("contentEntryLastChangedBy"),L=e.getLong_61zpoe$("contentEntryLct"),z=new Ott;return z.contentEntryUid=n,z.title=i,z.description=o,z.entryId=r,z.author=s,z.publisher=a,z.licenseType=c,z.licenseName=l,z.licenseUrl=u,z.sourceUrl=h,z.thumbnailUrl=d,z.lastModified=p,z.primaryLanguageUid=_,z.languageVariantUid=m,z.contentFlags=f,z.leaf=g,z.publik=$,z.ceInactive=E,z.completionCriteria=y,z.minScore=b,z.contentTypeFlag=S,z.contentOwner=v,z.contentEntryLocalChangeSeqNum=C,z.contentEntryMasterChangeSeqNum=N,z.contentEntryLastChangedBy=T,z.contentEntryLct=L,z}));var e}function vE(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$title=t,this.local$_stmt=e}function CE(t){return function(e,n,i){var o=new vE(t,e,n);return i?o:o.doResume(null)}}function NE(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$ContentEntryDao_JdbcKt=t,this.local$closure$title=e}function TE(t){return lt(t,!1,(e=t,function(t){return e.getBoolean_za3lpa$(1)}));var e}function LE(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$contentEntryUid=t,this.local$_stmt=e}function zE(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("contentEntryUid"),i=e.getString_61zpoe$("title"),o=e.getString_61zpoe$("description"),r=e.getString_61zpoe$("entryId"),s=e.getString_61zpoe$("author"),a=e.getString_61zpoe$("publisher"),c=e.getInt_61zpoe$("licenseType"),l=e.getString_61zpoe$("licenseName"),u=e.getString_61zpoe$("licenseUrl"),h=e.getString_61zpoe$("sourceUrl"),d=e.getString_61zpoe$("thumbnailUrl"),p=e.getLong_61zpoe$("lastModified"),_=e.getLong_61zpoe$("primaryLanguageUid"),m=e.getLong_61zpoe$("languageVariantUid"),f=e.getInt_61zpoe$("contentFlags"),g=e.getBoolean_61zpoe$("leaf"),$=e.getBoolean_61zpoe$("publik"),E=e.getBoolean_61zpoe$("ceInactive"),y=e.getInt_61zpoe$("completionCriteria"),b=e.getInt_61zpoe$("minScore"),S=e.getInt_61zpoe$("contentTypeFlag"),v=e.getLong_61zpoe$("contentOwner"),C=e.getLong_61zpoe$("contentEntryLocalChangeSeqNum"),N=e.getLong_61zpoe$("contentEntryMasterChangeSeqNum"),T=e.getInt_61zpoe$("contentEntryLastChangedBy"),L=e.getLong_61zpoe$("contentEntryLct"),z=new Ott;return z.contentEntryUid=n,z.title=i,z.description=o,z.entryId=r,z.author=s,z.publisher=a,z.licenseType=c,z.licenseName=l,z.licenseUrl=u,z.sourceUrl=h,z.thumbnailUrl=d,z.lastModified=p,z.primaryLanguageUid=_,z.languageVariantUid=m,z.contentFlags=f,z.leaf=g,z.publik=$,z.ceInactive=E,z.completionCriteria=y,z.minScore=b,z.contentTypeFlag=S,z.contentOwner=v,z.contentEntryLocalChangeSeqNum=C,z.contentEntryMasterChangeSeqNum=N,z.contentEntryLastChangedBy=T,z.contentEntryLct=L,z}));var e}function wE(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$sourceUrl=t,this.local$_stmt=e}function OE(t,e,n,i,o,r,s,a){this.this$ContentEntryDao_JdbcKt=t,this.closure$personUid=e,this.closure$parentUid=n,this.closure$langParam=i,this.closure$showHidden=o,this.closure$onlyFolder=r,this.closure$categoryParam0=s,this.closure$sortOrder=a,gt.call(this)}function RE(t){return mt(t,(e=t,function(t){var n=e.getInt_61zpoe$("assignmentContentWeight"),i=e.getLong_61zpoe$("contentEntryUid"),o=e.getString_61zpoe$("title"),r=e.getString_61zpoe$("description"),s=e.getString_61zpoe$("entryId"),a=e.getString_61zpoe$("author"),c=e.getString_61zpoe$("publisher"),l=e.getInt_61zpoe$("licenseType"),u=e.getString_61zpoe$("licenseName"),h=e.getString_61zpoe$("licenseUrl"),d=e.getString_61zpoe$("sourceUrl"),p=e.getString_61zpoe$("thumbnailUrl"),_=e.getLong_61zpoe$("lastModified"),m=e.getLong_61zpoe$("primaryLanguageUid"),f=e.getLong_61zpoe$("languageVariantUid"),g=e.getInt_61zpoe$("contentFlags"),$=e.getBoolean_61zpoe$("leaf"),E=e.getBoolean_61zpoe$("publik"),y=e.getBoolean_61zpoe$("ceInactive"),b=e.getInt_61zpoe$("completionCriteria"),S=e.getInt_61zpoe$("minScore"),v=e.getInt_61zpoe$("contentTypeFlag"),C=e.getLong_61zpoe$("contentOwner"),N=e.getLong_61zpoe$("contentEntryLocalChangeSeqNum"),T=e.getLong_61zpoe$("contentEntryMasterChangeSeqNum"),L=e.getInt_61zpoe$("contentEntryLastChangedBy"),z=e.getLong_61zpoe$("contentEntryLct"),w=0,O=e.getLong_61zpoe$("containerUid");e.wasNull()&&(w=w+1|0);var R=e.getLong_61zpoe$("cntLocalCsn");e.wasNull()&&(w=w+1|0);var A=e.getLong_61zpoe$("cntMasterCsn");e.wasNull()&&(w=w+1|0);var x=e.getInt_61zpoe$("cntLastModBy");e.wasNull()&&(w=w+1|0);var I=e.getLong_61zpoe$("cntLct");e.wasNull()&&(w=w+1|0);var U=e.getLong_61zpoe$("fileSize");e.wasNull()&&(w=w+1|0);var D=e.getLong_61zpoe$("containerContentEntryUid");e.wasNull()&&(w=w+1|0);var P=e.getLong_61zpoe$("cntLastModified");e.wasNull()&&(w=w+1|0);var M=e.getString_61zpoe$("mimeType");e.wasNull()&&(w=w+1|0);var k=e.getString_61zpoe$("remarks");e.wasNull()&&(w=w+1|0);var j=e.getBoolean_61zpoe$("mobileOptimized");e.wasNull()&&(w=w+1|0);var G=e.getInt_61zpoe$("cntNumEntries");e.wasNull()&&(w=w+1|0);var q=12===w,F=0,B=e.getLong_61zpoe$("cepcjUid");e.wasNull()&&(F=F+1|0);var W=e.getLong_61zpoe$("cepcjLocalChangeSeqNum");e.wasNull()&&(F=F+1|0);var H=e.getLong_61zpoe$("cepcjMasterChangeSeqNum");e.wasNull()&&(F=F+1|0);var V=e.getInt_61zpoe$("cepcjLastChangedBy");e.wasNull()&&(F=F+1|0);var K=e.getLong_61zpoe$("cepcjLct");e.wasNull()&&(F=F+1|0);var X=e.getLong_61zpoe$("cepcjParentContentEntryUid");e.wasNull()&&(F=F+1|0);var J=e.getLong_61zpoe$("cepcjChildContentEntryUid");e.wasNull()&&(F=F+1|0);var Y=e.getInt_61zpoe$("childIndex");e.wasNull()&&(F=F+1|0);var Q=8===F,Z=0,tt=e.getInt_61zpoe$("resultScore");e.wasNull()&&(Z=Z+1|0);var et=e.getInt_61zpoe$("resultMax");e.wasNull()&&(Z=Z+1|0);var nt=e.getFloat_61zpoe$("resultScaled");e.wasNull()&&(Z=Z+1|0);var it=e.getInt_61zpoe$("resultWeight");e.wasNull()&&(Z=Z+1|0);var ot=e.getBoolean_61zpoe$("contentComplete");e.wasNull()&&(Z=Z+1|0);var rt=e.getInt_61zpoe$("progress");e.wasNull()&&(Z=Z+1|0);var st=e.getByte_61zpoe$("success");e.wasNull()&&(Z=Z+1|0);var at=e.getInt_61zpoe$("penalty");e.wasNull()&&(Z=Z+1|0);var ct=e.getInt_61zpoe$("totalContent");e.wasNull()&&(Z=Z+1|0);var lt=e.getInt_61zpoe$("totalCompletedContent");e.wasNull()&&(Z=Z+1|0);var ut=10===Z,ht=new znt;if(ht.assignmentContentWeight=n,ht.contentEntryUid=i,ht.title=o,ht.description=r,ht.entryId=s,ht.author=a,ht.publisher=c,ht.licenseType=l,ht.licenseName=u,ht.licenseUrl=h,ht.sourceUrl=d,ht.thumbnailUrl=p,ht.lastModified=_,ht.primaryLanguageUid=m,ht.languageVariantUid=f,ht.contentFlags=g,ht.leaf=$,ht.publik=E,ht.ceInactive=y,ht.completionCriteria=b,ht.minScore=S,ht.contentTypeFlag=v,ht.contentOwner=C,ht.contentEntryLocalChangeSeqNum=N,ht.contentEntryMasterChangeSeqNum=T,ht.contentEntryLastChangedBy=L,ht.contentEntryLct=z,!q){var dt=new J9;dt.containerUid=O,dt.cntLocalCsn=R,dt.cntMasterCsn=A,dt.cntLastModBy=x,dt.cntLct=I,dt.fileSize=U,dt.containerContentEntryUid=D,dt.cntLastModified=P,dt.mimeType=M,dt.remarks=k,dt.mobileOptimized=j,dt.cntNumEntries=G,ht.mostRecentContainer=dt}if(!Q){var pt=new eet;pt.cepcjUid=B,pt.cepcjLocalChangeSeqNum=W,pt.cepcjMasterChangeSeqNum=H,pt.cepcjLastChangedBy=V,pt.cepcjLct=K,pt.cepcjParentContentEntryUid=X,pt.cepcjChildContentEntryUid=J,pt.childIndex=Y,ht.contentEntryParentChildJoin=pt}if(!ut){var _t=new qet;_t.resultScore=tt,_t.resultMax=et,_t.resultScaled=nt,_t.resultWeight=it,_t.contentComplete=ot,_t.progress=rt,_t.success=st,_t.penalty=at,_t.totalContent=ct,_t.totalCompletedContent=lt,ht.scoreProgress=_t}return ht}));var e}function AE(t,e,n,i,o,r,s,a,c,l,u){N.call(this,u),this.exceptionState_0=1,this.local$closure$personUid=t,this.local$closure$parentUid=e,this.local$closure$langParam=n,this.local$closure$showHidden=i,this.local$closure$onlyFolder=o,this.local$closure$categoryParam0=r,this.local$closure$sortOrder=s,this.local$closure$_limit=a,this.local$closure$_offset=c,this.local$_stmt=l}function xE(t,e,n,i,o,r,s,a,c){return function(l,u,h){var d=new AE(t,e,n,i,o,r,s,a,c,l,u);return h?d:d.doResume(null)}}function IE(t,e,n,i,o,r,s,a,c,l,u){N.call(this,u),this.exceptionState_0=1,this.local$this$ContentEntryDao_JdbcKt=t,this.local$closure$personUid=e,this.local$closure$parentUid=n,this.local$closure$langParam=i,this.local$closure$showHidden=o,this.local$closure$onlyFolder=r,this.local$closure$categoryParam0=s,this.local$closure$sortOrder=a,this.local$closure$_limit=c,this.local$closure$_offset=l}function UE(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function DE(t,e,n,i,o,r,s,a,c){N.call(this,c),this.exceptionState_0=1,this.local$closure$personUid=t,this.local$closure$parentUid=e,this.local$closure$langParam=n,this.local$closure$showHidden=i,this.local$closure$onlyFolder=o,this.local$closure$categoryParam0=r,this.local$closure$sortOrder=s,this.local$_stmt=a}function PE(t,e,n,i,o,r,s){return function(a,c,l){var u=new DE(t,e,n,i,o,r,s,a,c);return l?u:u.doResume(null)}}function ME(t,e,n,i,o,r,s,a,c){N.call(this,c),this.exceptionState_0=1,this.local$this$ContentEntryDao_JdbcKt=t,this.local$closure$personUid=e,this.local$closure$parentUid=n,this.local$closure$langParam=i,this.local$closure$showHidden=o,this.local$closure$onlyFolder=r,this.local$closure$categoryParam0=s,this.local$closure$sortOrder=a}function kE(t,e){this.this$ContentEntryDao_JdbcKt=t,this.closure$personUid=e,gt.call(this)}function jE(t){return mt(t,(e=t,function(t){var n=e.getInt_61zpoe$("assignmentContentWeight"),i=e.getLong_61zpoe$("contentEntryUid"),o=e.getString_61zpoe$("title"),r=e.getString_61zpoe$("description"),s=e.getString_61zpoe$("entryId"),a=e.getString_61zpoe$("author"),c=e.getString_61zpoe$("publisher"),l=e.getInt_61zpoe$("licenseType"),u=e.getString_61zpoe$("licenseName"),h=e.getString_61zpoe$("licenseUrl"),d=e.getString_61zpoe$("sourceUrl"),p=e.getString_61zpoe$("thumbnailUrl"),_=e.getLong_61zpoe$("lastModified"),m=e.getLong_61zpoe$("primaryLanguageUid"),f=e.getLong_61zpoe$("languageVariantUid"),g=e.getInt_61zpoe$("contentFlags"),$=e.getBoolean_61zpoe$("leaf"),E=e.getBoolean_61zpoe$("publik"),y=e.getBoolean_61zpoe$("ceInactive"),b=e.getInt_61zpoe$("completionCriteria"),S=e.getInt_61zpoe$("minScore"),v=e.getInt_61zpoe$("contentTypeFlag"),C=e.getLong_61zpoe$("contentOwner"),N=e.getLong_61zpoe$("contentEntryLocalChangeSeqNum"),T=e.getLong_61zpoe$("contentEntryMasterChangeSeqNum"),L=e.getInt_61zpoe$("contentEntryLastChangedBy"),z=e.getLong_61zpoe$("contentEntryLct"),w=0,O=e.getLong_61zpoe$("containerUid");e.wasNull()&&(w=w+1|0);var R=e.getLong_61zpoe$("cntLocalCsn");e.wasNull()&&(w=w+1|0);var A=e.getLong_61zpoe$("cntMasterCsn");e.wasNull()&&(w=w+1|0);var x=e.getInt_61zpoe$("cntLastModBy");e.wasNull()&&(w=w+1|0);var I=e.getLong_61zpoe$("cntLct");e.wasNull()&&(w=w+1|0);var U=e.getLong_61zpoe$("fileSize");e.wasNull()&&(w=w+1|0);var D=e.getLong_61zpoe$("containerContentEntryUid");e.wasNull()&&(w=w+1|0);var P=e.getLong_61zpoe$("cntLastModified");e.wasNull()&&(w=w+1|0);var M=e.getString_61zpoe$("mimeType");e.wasNull()&&(w=w+1|0);var k=e.getString_61zpoe$("remarks");e.wasNull()&&(w=w+1|0);var j=e.getBoolean_61zpoe$("mobileOptimized");e.wasNull()&&(w=w+1|0);var G=e.getInt_61zpoe$("cntNumEntries");e.wasNull()&&(w=w+1|0);var q=12===w,F=0,B=e.getLong_61zpoe$("cepcjUid");e.wasNull()&&(F=F+1|0);var W=e.getLong_61zpoe$("cepcjLocalChangeSeqNum");e.wasNull()&&(F=F+1|0);var H=e.getLong_61zpoe$("cepcjMasterChangeSeqNum");e.wasNull()&&(F=F+1|0);var V=e.getInt_61zpoe$("cepcjLastChangedBy");e.wasNull()&&(F=F+1|0);var K=e.getLong_61zpoe$("cepcjLct");e.wasNull()&&(F=F+1|0);var X=e.getLong_61zpoe$("cepcjParentContentEntryUid");e.wasNull()&&(F=F+1|0);var J=e.getLong_61zpoe$("cepcjChildContentEntryUid");e.wasNull()&&(F=F+1|0);var Y=e.getInt_61zpoe$("childIndex");e.wasNull()&&(F=F+1|0);var Q=8===F,Z=0,tt=e.getInt_61zpoe$("resultScore");e.wasNull()&&(Z=Z+1|0);var et=e.getInt_61zpoe$("resultMax");e.wasNull()&&(Z=Z+1|0);var nt=e.getFloat_61zpoe$("resultScaled");e.wasNull()&&(Z=Z+1|0);var it=e.getInt_61zpoe$("resultWeight");e.wasNull()&&(Z=Z+1|0);var ot=e.getBoolean_61zpoe$("contentComplete");e.wasNull()&&(Z=Z+1|0);var rt=e.getInt_61zpoe$("progress");e.wasNull()&&(Z=Z+1|0);var st=e.getByte_61zpoe$("success");e.wasNull()&&(Z=Z+1|0);var at=e.getInt_61zpoe$("penalty");e.wasNull()&&(Z=Z+1|0);var ct=e.getInt_61zpoe$("totalContent");e.wasNull()&&(Z=Z+1|0);var lt=e.getInt_61zpoe$("totalCompletedContent");e.wasNull()&&(Z=Z+1|0);var ut=10===Z,ht=new znt;if(ht.assignmentContentWeight=n,ht.contentEntryUid=i,ht.title=o,ht.description=r,ht.entryId=s,ht.author=a,ht.publisher=c,ht.licenseType=l,ht.licenseName=u,ht.licenseUrl=h,ht.sourceUrl=d,ht.thumbnailUrl=p,ht.lastModified=_,ht.primaryLanguageUid=m,ht.languageVariantUid=f,ht.contentFlags=g,ht.leaf=$,ht.publik=E,ht.ceInactive=y,ht.completionCriteria=b,ht.minScore=S,ht.contentTypeFlag=v,ht.contentOwner=C,ht.contentEntryLocalChangeSeqNum=N,ht.contentEntryMasterChangeSeqNum=T,ht.contentEntryLastChangedBy=L,ht.contentEntryLct=z,!q){var dt=new J9;dt.containerUid=O,dt.cntLocalCsn=R,dt.cntMasterCsn=A,dt.cntLastModBy=x,dt.cntLct=I,dt.fileSize=U,dt.containerContentEntryUid=D,dt.cntLastModified=P,dt.mimeType=M,dt.remarks=k,dt.mobileOptimized=j,dt.cntNumEntries=G,ht.mostRecentContainer=dt}if(!Q){var pt=new eet;pt.cepcjUid=B,pt.cepcjLocalChangeSeqNum=W,pt.cepcjMasterChangeSeqNum=H,pt.cepcjLastChangedBy=V,pt.cepcjLct=K,pt.cepcjParentContentEntryUid=X,pt.cepcjChildContentEntryUid=J,pt.childIndex=Y,ht.contentEntryParentChildJoin=pt}if(!ut){var _t=new qet;_t.resultScore=tt,_t.resultMax=et,_t.resultScaled=nt,_t.resultWeight=it,_t.contentComplete=ot,_t.progress=rt,_t.success=st,_t.penalty=at,_t.totalContent=ct,_t.totalCompletedContent=lt,ht.scoreProgress=_t}return ht}));var e}function GE(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$personUid=t,this.local$closure$_limit=e,this.local$closure$_offset=n,this.local$_stmt=i}function qE(t,e,n){return function(i,o,r){var s=new GE(t,e,n,i,o);return r?s:s.doResume(null)}}function FE(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$this$ContentEntryDao_JdbcKt=t,this.local$closure$personUid=e,this.local$closure$_limit=n,this.local$closure$_offset=i}function BE(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function WE(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$personUid=t,this.local$_stmt=e}function HE(t){return function(e,n,i){var o=new WE(t,e,n);return i?o:o.doResume(null)}}function VE(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$ContentEntryDao_JdbcKt=t,this.local$closure$personUid=e}function KE(t,e){this.this$ContentEntryDao_JdbcKt=t,this.closure$personUid=e,gt.call(this)}function XE(t){return mt(t,(e=t,function(t){var n=e.getInt_61zpoe$("assignmentContentWeight"),i=e.getLong_61zpoe$("contentEntryUid"),o=e.getString_61zpoe$("title"),r=e.getString_61zpoe$("description"),s=e.getString_61zpoe$("entryId"),a=e.getString_61zpoe$("author"),c=e.getString_61zpoe$("publisher"),l=e.getInt_61zpoe$("licenseType"),u=e.getString_61zpoe$("licenseName"),h=e.getString_61zpoe$("licenseUrl"),d=e.getString_61zpoe$("sourceUrl"),p=e.getString_61zpoe$("thumbnailUrl"),_=e.getLong_61zpoe$("lastModified"),m=e.getLong_61zpoe$("primaryLanguageUid"),f=e.getLong_61zpoe$("languageVariantUid"),g=e.getInt_61zpoe$("contentFlags"),$=e.getBoolean_61zpoe$("leaf"),E=e.getBoolean_61zpoe$("publik"),y=e.getBoolean_61zpoe$("ceInactive"),b=e.getInt_61zpoe$("completionCriteria"),S=e.getInt_61zpoe$("minScore"),v=e.getInt_61zpoe$("contentTypeFlag"),C=e.getLong_61zpoe$("contentOwner"),N=e.getLong_61zpoe$("contentEntryLocalChangeSeqNum"),T=e.getLong_61zpoe$("contentEntryMasterChangeSeqNum"),L=e.getInt_61zpoe$("contentEntryLastChangedBy"),z=e.getLong_61zpoe$("contentEntryLct"),w=0,O=e.getLong_61zpoe$("containerUid");e.wasNull()&&(w=w+1|0);var R=e.getLong_61zpoe$("cntLocalCsn");e.wasNull()&&(w=w+1|0);var A=e.getLong_61zpoe$("cntMasterCsn");e.wasNull()&&(w=w+1|0);var x=e.getInt_61zpoe$("cntLastModBy");e.wasNull()&&(w=w+1|0);var I=e.getLong_61zpoe$("cntLct");e.wasNull()&&(w=w+1|0);var U=e.getLong_61zpoe$("fileSize");e.wasNull()&&(w=w+1|0);var D=e.getLong_61zpoe$("containerContentEntryUid");e.wasNull()&&(w=w+1|0);var P=e.getLong_61zpoe$("cntLastModified");e.wasNull()&&(w=w+1|0);var M=e.getString_61zpoe$("mimeType");e.wasNull()&&(w=w+1|0);var k=e.getString_61zpoe$("remarks");e.wasNull()&&(w=w+1|0);var j=e.getBoolean_61zpoe$("mobileOptimized");e.wasNull()&&(w=w+1|0);var G=e.getInt_61zpoe$("cntNumEntries");e.wasNull()&&(w=w+1|0);var q=12===w,F=0,B=e.getLong_61zpoe$("cepcjUid");e.wasNull()&&(F=F+1|0);var W=e.getLong_61zpoe$("cepcjLocalChangeSeqNum");e.wasNull()&&(F=F+1|0);var H=e.getLong_61zpoe$("cepcjMasterChangeSeqNum");e.wasNull()&&(F=F+1|0);var V=e.getInt_61zpoe$("cepcjLastChangedBy");e.wasNull()&&(F=F+1|0);var K=e.getLong_61zpoe$("cepcjLct");e.wasNull()&&(F=F+1|0);var X=e.getLong_61zpoe$("cepcjParentContentEntryUid");e.wasNull()&&(F=F+1|0);var J=e.getLong_61zpoe$("cepcjChildContentEntryUid");e.wasNull()&&(F=F+1|0);var Y=e.getInt_61zpoe$("childIndex");e.wasNull()&&(F=F+1|0);var Q=8===F,Z=0,tt=e.getInt_61zpoe$("resultScore");e.wasNull()&&(Z=Z+1|0);var et=e.getInt_61zpoe$("resultMax");e.wasNull()&&(Z=Z+1|0);var nt=e.getFloat_61zpoe$("resultScaled");e.wasNull()&&(Z=Z+1|0);var it=e.getInt_61zpoe$("resultWeight");e.wasNull()&&(Z=Z+1|0);var ot=e.getBoolean_61zpoe$("contentComplete");e.wasNull()&&(Z=Z+1|0);var rt=e.getInt_61zpoe$("progress");e.wasNull()&&(Z=Z+1|0);var st=e.getByte_61zpoe$("success");e.wasNull()&&(Z=Z+1|0);var at=e.getInt_61zpoe$("penalty");e.wasNull()&&(Z=Z+1|0);var ct=e.getInt_61zpoe$("totalContent");e.wasNull()&&(Z=Z+1|0);var lt=e.getInt_61zpoe$("totalCompletedContent");e.wasNull()&&(Z=Z+1|0);var ut=10===Z,ht=new znt;if(ht.assignmentContentWeight=n,ht.contentEntryUid=i,ht.title=o,ht.description=r,ht.entryId=s,ht.author=a,ht.publisher=c,ht.licenseType=l,ht.licenseName=u,ht.licenseUrl=h,ht.sourceUrl=d,ht.thumbnailUrl=p,ht.lastModified=_,ht.primaryLanguageUid=m,ht.languageVariantUid=f,ht.contentFlags=g,ht.leaf=$,ht.publik=E,ht.ceInactive=y,ht.completionCriteria=b,ht.minScore=S,ht.contentTypeFlag=v,ht.contentOwner=C,ht.contentEntryLocalChangeSeqNum=N,ht.contentEntryMasterChangeSeqNum=T,ht.contentEntryLastChangedBy=L,ht.contentEntryLct=z,!q){var dt=new J9;dt.containerUid=O,dt.cntLocalCsn=R,dt.cntMasterCsn=A,dt.cntLastModBy=x,dt.cntLct=I,dt.fileSize=U,dt.containerContentEntryUid=D,dt.cntLastModified=P,dt.mimeType=M,dt.remarks=k,dt.mobileOptimized=j,dt.cntNumEntries=G,ht.mostRecentContainer=dt}if(!Q){var pt=new eet;pt.cepcjUid=B,pt.cepcjLocalChangeSeqNum=W,pt.cepcjMasterChangeSeqNum=H,pt.cepcjLastChangedBy=V,pt.cepcjLct=K,pt.cepcjParentContentEntryUid=X,pt.cepcjChildContentEntryUid=J,pt.childIndex=Y,ht.contentEntryParentChildJoin=pt}if(!ut){var _t=new qet;_t.resultScore=tt,_t.resultMax=et,_t.resultScaled=nt,_t.resultWeight=it,_t.contentComplete=ot,_t.progress=rt,_t.success=st,_t.penalty=at,_t.totalContent=ct,_t.totalCompletedContent=lt,ht.scoreProgress=_t}return ht}));var e}function JE(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$personUid=t,this.local$closure$_limit=e,this.local$closure$_offset=n,this.local$_stmt=i}function YE(t,e,n){return function(i,o,r){var s=new JE(t,e,n,i,o);return r?s:s.doResume(null)}}function QE(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$this$ContentEntryDao_JdbcKt=t,this.local$closure$personUid=e,this.local$closure$_limit=n,this.local$closure$_offset=i}function ZE(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function ty(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$personUid=t,this.local$_stmt=e}function ey(t){return function(e,n,i){var o=new ty(t,e,n);return i?o:o.doResume(null)}}function ny(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$ContentEntryDao_JdbcKt=t,this.local$closure$personUid=e}function iy(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("contentEntryUid"),i=e.getString_61zpoe$("title"),o=e.getString_61zpoe$("description"),r=e.getString_61zpoe$("entryId"),s=e.getString_61zpoe$("author"),a=e.getString_61zpoe$("publisher"),c=e.getInt_61zpoe$("licenseType"),l=e.getString_61zpoe$("licenseName"),u=e.getString_61zpoe$("licenseUrl"),h=e.getString_61zpoe$("sourceUrl"),d=e.getString_61zpoe$("thumbnailUrl"),p=e.getLong_61zpoe$("lastModified"),_=e.getLong_61zpoe$("primaryLanguageUid"),m=e.getLong_61zpoe$("languageVariantUid"),f=e.getInt_61zpoe$("contentFlags"),g=e.getBoolean_61zpoe$("leaf"),$=e.getBoolean_61zpoe$("publik"),E=e.getBoolean_61zpoe$("ceInactive"),y=e.getInt_61zpoe$("completionCriteria"),b=e.getInt_61zpoe$("minScore"),S=e.getInt_61zpoe$("contentTypeFlag"),v=e.getLong_61zpoe$("contentOwner"),C=e.getLong_61zpoe$("contentEntryLocalChangeSeqNum"),N=e.getLong_61zpoe$("contentEntryMasterChangeSeqNum"),T=e.getInt_61zpoe$("contentEntryLastChangedBy"),L=e.getLong_61zpoe$("contentEntryLct"),z=new Ott;return z.contentEntryUid=n,z.title=i,z.description=o,z.entryId=r,z.author=s,z.publisher=a,z.licenseType=c,z.licenseName=l,z.licenseUrl=u,z.sourceUrl=h,z.thumbnailUrl=d,z.lastModified=p,z.primaryLanguageUid=_,z.languageVariantUid=m,z.contentFlags=f,z.leaf=g,z.publik=$,z.ceInactive=E,z.completionCriteria=y,z.minScore=b,z.contentTypeFlag=S,z.contentOwner=v,z.contentEntryLocalChangeSeqNum=C,z.contentEntryMasterChangeSeqNum=N,z.contentEntryLastChangedBy=T,z.contentEntryLct=L,z}));var e}function oy(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("contentEntryUid"),i=e.getString_61zpoe$("title"),o=e.getString_61zpoe$("description"),r=e.getString_61zpoe$("entryId"),s=e.getString_61zpoe$("author"),a=e.getString_61zpoe$("publisher"),c=e.getInt_61zpoe$("licenseType"),l=e.getString_61zpoe$("licenseName"),u=e.getString_61zpoe$("licenseUrl"),h=e.getString_61zpoe$("sourceUrl"),d=e.getString_61zpoe$("thumbnailUrl"),p=e.getLong_61zpoe$("lastModified"),_=e.getLong_61zpoe$("primaryLanguageUid"),m=e.getLong_61zpoe$("languageVariantUid"),f=e.getInt_61zpoe$("contentFlags"),g=e.getBoolean_61zpoe$("leaf"),$=e.getBoolean_61zpoe$("publik"),E=e.getBoolean_61zpoe$("ceInactive"),y=e.getInt_61zpoe$("completionCriteria"),b=e.getInt_61zpoe$("minScore"),S=e.getInt_61zpoe$("contentTypeFlag"),v=e.getLong_61zpoe$("contentOwner"),C=e.getLong_61zpoe$("contentEntryLocalChangeSeqNum"),N=e.getLong_61zpoe$("contentEntryMasterChangeSeqNum"),T=e.getInt_61zpoe$("contentEntryLastChangedBy"),L=e.getLong_61zpoe$("contentEntryLct"),z=new Ott;return z.contentEntryUid=n,z.title=i,z.description=o,z.entryId=r,z.author=s,z.publisher=a,z.licenseType=c,z.licenseName=l,z.licenseUrl=u,z.sourceUrl=h,z.thumbnailUrl=d,z.lastModified=p,z.primaryLanguageUid=_,z.languageVariantUid=m,z.contentFlags=f,z.leaf=g,z.publik=$,z.ceInactive=E,z.completionCriteria=y,z.minScore=b,z.contentTypeFlag=S,z.contentOwner=v,z.contentEntryLocalChangeSeqNum=C,z.contentEntryMasterChangeSeqNum=N,z.contentEntryLastChangedBy=T,z.contentEntryLct=L,z}));var e}function ry(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$parentUid=t,this.local$_stmt=e}function sy(t){return function(e,n,i){var o=new ry(t,e,n);return i?o:o.doResume(null)}}function ay(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$ContentEntryDao_JdbcKt=t,this.local$closure$parentUid=e}function cy(t){return lt(t,X,(e=t,function(t){return e.getLong_za3lpa$(1)}));var e}function ly(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("contentEntryUid"),i=e.getString_61zpoe$("title"),o=e.getString_61zpoe$("description"),r=e.getString_61zpoe$("entryId"),s=e.getString_61zpoe$("author"),a=e.getString_61zpoe$("publisher"),c=e.getInt_61zpoe$("licenseType"),l=e.getString_61zpoe$("licenseName"),u=e.getString_61zpoe$("licenseUrl"),h=e.getString_61zpoe$("sourceUrl"),d=e.getString_61zpoe$("thumbnailUrl"),p=e.getLong_61zpoe$("lastModified"),_=e.getLong_61zpoe$("primaryLanguageUid"),m=e.getLong_61zpoe$("languageVariantUid"),f=e.getInt_61zpoe$("contentFlags"),g=e.getBoolean_61zpoe$("leaf"),$=e.getBoolean_61zpoe$("publik"),E=e.getBoolean_61zpoe$("ceInactive"),y=e.getInt_61zpoe$("completionCriteria"),b=e.getInt_61zpoe$("minScore"),S=e.getInt_61zpoe$("contentTypeFlag"),v=e.getLong_61zpoe$("contentOwner"),C=e.getLong_61zpoe$("contentEntryLocalChangeSeqNum"),N=e.getLong_61zpoe$("contentEntryMasterChangeSeqNum"),T=e.getInt_61zpoe$("contentEntryLastChangedBy"),L=e.getLong_61zpoe$("contentEntryLct"),z=new Ott;return z.contentEntryUid=n,z.title=i,z.description=o,z.entryId=r,z.author=s,z.publisher=a,z.licenseType=c,z.licenseName=l,z.licenseUrl=u,z.sourceUrl=h,z.thumbnailUrl=d,z.lastModified=p,z.primaryLanguageUid=_,z.languageVariantUid=m,z.contentFlags=f,z.leaf=g,z.publik=$,z.ceInactive=E,z.completionCriteria=y,z.minScore=b,z.contentTypeFlag=S,z.contentOwner=v,z.contentEntryLocalChangeSeqNum=C,z.contentEntryMasterChangeSeqNum=N,z.contentEntryLastChangedBy=T,z.contentEntryLct=L,z}));var e}function uy(t){return lt(t,null,(e=t,function(t){var n=e.getInt_61zpoe$("numEntries"),i=e.getLong_61zpoe$("totalSize"),o=new Art;return o.numEntries=n,o.totalSize=i,o}));var e}function hy(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$contentEntryUid=t,this.local$_stmt=e}function dy(t,e){this.this$ContentEntryDao_JdbcKt=t,this.closure$contentEntryUid=e,gt.call(this)}function py(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("contentEntryUid"),i=e.getString_61zpoe$("title"),o=e.getString_61zpoe$("description"),r=e.getString_61zpoe$("entryId"),s=e.getString_61zpoe$("author"),a=e.getString_61zpoe$("publisher"),c=e.getInt_61zpoe$("licenseType"),l=e.getString_61zpoe$("licenseName"),u=e.getString_61zpoe$("licenseUrl"),h=e.getString_61zpoe$("sourceUrl"),d=e.getString_61zpoe$("thumbnailUrl"),p=e.getLong_61zpoe$("lastModified"),_=e.getLong_61zpoe$("primaryLanguageUid"),m=e.getLong_61zpoe$("languageVariantUid"),f=e.getInt_61zpoe$("contentFlags"),g=e.getBoolean_61zpoe$("leaf"),$=e.getBoolean_61zpoe$("publik"),E=e.getBoolean_61zpoe$("ceInactive"),y=e.getInt_61zpoe$("completionCriteria"),b=e.getInt_61zpoe$("minScore"),S=e.getInt_61zpoe$("contentTypeFlag"),v=e.getLong_61zpoe$("contentOwner"),C=e.getLong_61zpoe$("contentEntryLocalChangeSeqNum"),N=e.getLong_61zpoe$("contentEntryMasterChangeSeqNum"),T=e.getInt_61zpoe$("contentEntryLastChangedBy"),L=e.getLong_61zpoe$("contentEntryLct"),z=0,w=e.getLong_61zpoe$("containerUid");e.wasNull()&&(z=z+1|0);var O=e.getLong_61zpoe$("cntLocalCsn");e.wasNull()&&(z=z+1|0);var R=e.getLong_61zpoe$("cntMasterCsn");e.wasNull()&&(z=z+1|0);var A=e.getInt_61zpoe$("cntLastModBy");e.wasNull()&&(z=z+1|0);var x=e.getLong_61zpoe$("cntLct");e.wasNull()&&(z=z+1|0);var I=e.getLong_61zpoe$("fileSize");e.wasNull()&&(z=z+1|0);var U=e.getLong_61zpoe$("containerContentEntryUid");e.wasNull()&&(z=z+1|0);var D=e.getLong_61zpoe$("cntLastModified");e.wasNull()&&(z=z+1|0);var P=e.getString_61zpoe$("mimeType");e.wasNull()&&(z=z+1|0);var M=e.getString_61zpoe$("remarks");e.wasNull()&&(z=z+1|0);var k=e.getBoolean_61zpoe$("mobileOptimized");e.wasNull()&&(z=z+1|0);var j=e.getInt_61zpoe$("cntNumEntries");e.wasNull()&&(z=z+1|0);var G=12===z,q=0,F=e.getLong_61zpoe$("cepcjUid");e.wasNull()&&(q=q+1|0);var B=e.getLong_61zpoe$("cepcjLocalChangeSeqNum");e.wasNull()&&(q=q+1|0);var W=e.getLong_61zpoe$("cepcjMasterChangeSeqNum");e.wasNull()&&(q=q+1|0);var H=e.getInt_61zpoe$("cepcjLastChangedBy");e.wasNull()&&(q=q+1|0);var V=e.getLong_61zpoe$("cepcjLct");e.wasNull()&&(q=q+1|0);var K=e.getLong_61zpoe$("cepcjParentContentEntryUid");e.wasNull()&&(q=q+1|0);var X=e.getLong_61zpoe$("cepcjChildContentEntryUid");e.wasNull()&&(q=q+1|0);var J=e.getInt_61zpoe$("childIndex");e.wasNull()&&(q=q+1|0);var Y=8===q,Q=new ynt;if(Q.contentEntryUid=n,Q.title=i,Q.description=o,Q.entryId=r,Q.author=s,Q.publisher=a,Q.licenseType=c,Q.licenseName=l,Q.licenseUrl=u,Q.sourceUrl=h,Q.thumbnailUrl=d,Q.lastModified=p,Q.primaryLanguageUid=_,Q.languageVariantUid=m,Q.contentFlags=f,Q.leaf=g,Q.publik=$,Q.ceInactive=E,Q.completionCriteria=y,Q.minScore=b,Q.contentTypeFlag=S,Q.contentOwner=v,Q.contentEntryLocalChangeSeqNum=C,Q.contentEntryMasterChangeSeqNum=N,Q.contentEntryLastChangedBy=T,Q.contentEntryLct=L,!G){var Z=new J9;Z.containerUid=w,Z.cntLocalCsn=O,Z.cntMasterCsn=R,Z.cntLastModBy=A,Z.cntLct=x,Z.fileSize=I,Z.containerContentEntryUid=U,Z.cntLastModified=D,Z.mimeType=P,Z.remarks=M,Z.mobileOptimized=k,Z.cntNumEntries=j,Q.mostRecentContainer=Z}if(!Y){var tt=new eet;tt.cepcjUid=F,tt.cepcjLocalChangeSeqNum=B,tt.cepcjMasterChangeSeqNum=W,tt.cepcjLastChangedBy=H,tt.cepcjLct=V,tt.cepcjParentContentEntryUid=K,tt.cepcjChildContentEntryUid=X,tt.childIndex=J,Q.contentEntryParentChildJoin=tt}return Q}));var e}function _y(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$contentEntryUid=t,this.local$closure$_limit=e,this.local$closure$_offset=n,this.local$_stmt=i}function my(t,e,n){return function(i,o,r){var s=new _y(t,e,n,i,o);return r?s:s.doResume(null)}}function fy(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$this$ContentEntryDao_JdbcKt=t,this.local$closure$contentEntryUid=e,this.local$closure$_limit=n,this.local$closure$_offset=i}function gy(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function $y(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$contentEntryUid=t,this.local$_stmt=e}function Ey(t){return function(e,n,i){var o=new $y(t,e,n);return i?o:o.doResume(null)}}function yy(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$ContentEntryDao_JdbcKt=t,this.local$closure$contentEntryUid=e}function by(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("contentEntryUid"),i=e.getString_61zpoe$("title"),o=e.getString_61zpoe$("description"),r=e.getString_61zpoe$("entryId"),s=e.getString_61zpoe$("author"),a=e.getString_61zpoe$("publisher"),c=e.getInt_61zpoe$("licenseType"),l=e.getString_61zpoe$("licenseName"),u=e.getString_61zpoe$("licenseUrl"),h=e.getString_61zpoe$("sourceUrl"),d=e.getString_61zpoe$("thumbnailUrl"),p=e.getLong_61zpoe$("lastModified"),_=e.getLong_61zpoe$("primaryLanguageUid"),m=e.getLong_61zpoe$("languageVariantUid"),f=e.getInt_61zpoe$("contentFlags"),g=e.getBoolean_61zpoe$("leaf"),$=e.getBoolean_61zpoe$("publik"),E=e.getBoolean_61zpoe$("ceInactive"),y=e.getInt_61zpoe$("completionCriteria"),b=e.getInt_61zpoe$("minScore"),S=e.getInt_61zpoe$("contentTypeFlag"),v=e.getLong_61zpoe$("contentOwner"),C=e.getLong_61zpoe$("contentEntryLocalChangeSeqNum"),N=e.getLong_61zpoe$("contentEntryMasterChangeSeqNum"),T=e.getInt_61zpoe$("contentEntryLastChangedBy"),L=e.getLong_61zpoe$("contentEntryLct"),z=0,w=e.getLong_61zpoe$("containerUid");e.wasNull()&&(z=z+1|0);var O=e.getLong_61zpoe$("cntLocalCsn");e.wasNull()&&(z=z+1|0);var R=e.getLong_61zpoe$("cntMasterCsn");e.wasNull()&&(z=z+1|0);var A=e.getInt_61zpoe$("cntLastModBy");e.wasNull()&&(z=z+1|0);var x=e.getLong_61zpoe$("cntLct");e.wasNull()&&(z=z+1|0);var I=e.getLong_61zpoe$("fileSize");e.wasNull()&&(z=z+1|0);var U=e.getLong_61zpoe$("containerContentEntryUid");e.wasNull()&&(z=z+1|0);var D=e.getLong_61zpoe$("cntLastModified");e.wasNull()&&(z=z+1|0);var P=e.getString_61zpoe$("mimeType");e.wasNull()&&(z=z+1|0);var M=e.getString_61zpoe$("remarks");e.wasNull()&&(z=z+1|0);var k=e.getBoolean_61zpoe$("mobileOptimized");e.wasNull()&&(z=z+1|0);var j=e.getInt_61zpoe$("cntNumEntries");e.wasNull()&&(z=z+1|0);var G=12===z,q=0,F=e.getLong_61zpoe$("cepcjUid");e.wasNull()&&(q=q+1|0);var B=e.getLong_61zpoe$("cepcjLocalChangeSeqNum");e.wasNull()&&(q=q+1|0);var W=e.getLong_61zpoe$("cepcjMasterChangeSeqNum");e.wasNull()&&(q=q+1|0);var H=e.getInt_61zpoe$("cepcjLastChangedBy");e.wasNull()&&(q=q+1|0);var V=e.getLong_61zpoe$("cepcjLct");e.wasNull()&&(q=q+1|0);var K=e.getLong_61zpoe$("cepcjParentContentEntryUid");e.wasNull()&&(q=q+1|0);var X=e.getLong_61zpoe$("cepcjChildContentEntryUid");e.wasNull()&&(q=q+1|0);var J=e.getInt_61zpoe$("childIndex");e.wasNull()&&(q=q+1|0);var Y=8===q,Q=new ynt;if(Q.contentEntryUid=n,Q.title=i,Q.description=o,Q.entryId=r,Q.author=s,Q.publisher=a,Q.licenseType=c,Q.licenseName=l,Q.licenseUrl=u,Q.sourceUrl=h,Q.thumbnailUrl=d,Q.lastModified=p,Q.primaryLanguageUid=_,Q.languageVariantUid=m,Q.contentFlags=f,Q.leaf=g,Q.publik=$,Q.ceInactive=E,Q.completionCriteria=y,Q.minScore=b,Q.contentTypeFlag=S,Q.contentOwner=v,Q.contentEntryLocalChangeSeqNum=C,Q.contentEntryMasterChangeSeqNum=N,Q.contentEntryLastChangedBy=T,Q.contentEntryLct=L,!G){var Z=new J9;Z.containerUid=w,Z.cntLocalCsn=O,Z.cntMasterCsn=R,Z.cntLastModBy=A,Z.cntLct=x,Z.fileSize=I,Z.containerContentEntryUid=U,Z.cntLastModified=D,Z.mimeType=P,Z.remarks=M,Z.mobileOptimized=k,Z.cntNumEntries=j,Q.mostRecentContainer=Z}if(!Y){var tt=new eet;tt.cepcjUid=F,tt.cepcjLocalChangeSeqNum=B,tt.cepcjMasterChangeSeqNum=W,tt.cepcjLastChangedBy=H,tt.cepcjLct=V,tt.cepcjParentContentEntryUid=K,tt.cepcjChildContentEntryUid=X,tt.childIndex=J,Q.contentEntryParentChildJoin=tt}return Q}));var e}function Sy(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("uid"),i=e.getString_61zpoe$("labelName"),o=new A_t;return o.uid=n,o.labelName=i,o}));var e}function vy(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$contentEntryUids=t,this.local$_stmt=e}function Cy(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("contentEntryUid"),i=e.getString_61zpoe$("title"),o=e.getString_61zpoe$("description"),r=e.getString_61zpoe$("entryId"),s=e.getString_61zpoe$("author"),a=e.getString_61zpoe$("publisher"),c=e.getInt_61zpoe$("licenseType"),l=e.getString_61zpoe$("licenseName"),u=e.getString_61zpoe$("licenseUrl"),h=e.getString_61zpoe$("sourceUrl"),d=e.getString_61zpoe$("thumbnailUrl"),p=e.getLong_61zpoe$("lastModified"),_=e.getLong_61zpoe$("primaryLanguageUid"),m=e.getLong_61zpoe$("languageVariantUid"),f=e.getInt_61zpoe$("contentFlags"),g=e.getBoolean_61zpoe$("leaf"),$=e.getBoolean_61zpoe$("publik"),E=e.getBoolean_61zpoe$("ceInactive"),y=e.getInt_61zpoe$("completionCriteria"),b=e.getInt_61zpoe$("minScore"),S=e.getInt_61zpoe$("contentTypeFlag"),v=e.getLong_61zpoe$("contentOwner"),C=e.getLong_61zpoe$("contentEntryLocalChangeSeqNum"),N=e.getLong_61zpoe$("contentEntryMasterChangeSeqNum"),T=e.getInt_61zpoe$("contentEntryLastChangedBy"),L=e.getLong_61zpoe$("contentEntryLct"),z=0,w=e.getLong_61zpoe$("langUid");e.wasNull()&&(z=z+1|0);var O=e.getString_61zpoe$("name");e.wasNull()&&(z=z+1|0);var R=e.getString_61zpoe$("iso_639_1_standard");e.wasNull()&&(z=z+1|0);var A=e.getString_61zpoe$("iso_639_2_standard");e.wasNull()&&(z=z+1|0);var x=e.getString_61zpoe$("iso_639_3_standard");e.wasNull()&&(z=z+1|0);var I=e.getString_61zpoe$("Language_Type");e.wasNull()&&(z=z+1|0);var U=e.getBoolean_61zpoe$("languageActive");e.wasNull()&&(z=z+1|0);var D=e.getLong_61zpoe$("langLocalChangeSeqNum");e.wasNull()&&(z=z+1|0);var P=e.getLong_61zpoe$("langMasterChangeSeqNum");e.wasNull()&&(z=z+1|0);var M=e.getInt_61zpoe$("langLastChangedBy");e.wasNull()&&(z=z+1|0);var k=e.getLong_61zpoe$("langLct");e.wasNull()&&(z=z+1|0);var j=11===z,G=new ont;if(G.contentEntryUid=n,G.title=i,G.description=o,G.entryId=r,G.author=s,G.publisher=a,G.licenseType=c,G.licenseName=l,G.licenseUrl=u,G.sourceUrl=h,G.thumbnailUrl=d,G.lastModified=p,G.primaryLanguageUid=_,G.languageVariantUid=m,G.contentFlags=f,G.leaf=g,G.publik=$,G.ceInactive=E,G.completionCriteria=y,G.minScore=b,G.contentTypeFlag=S,G.contentOwner=v,G.contentEntryLocalChangeSeqNum=C,G.contentEntryMasterChangeSeqNum=N,G.contentEntryLastChangedBy=T,G.contentEntryLct=L,!j){var q=new kst;q.langUid=w,q.name=O,q.iso_639_1_standard=R,q.iso_639_2_standard=A,q.iso_639_3_standard=x,q.Language_Type=I,q.languageActive=U,q.langLocalChangeSeqNum=D,q.langMasterChangeSeqNum=P,q.langLastChangedBy=M,q.langLct=k,G.language=q}return G}));var e}function Ny(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function Ty(t,e,n){var i=new Ny(t,e);return n?i:i.doResume(null)}function Ly(t,e){N.call(this,e),this.exceptionState_0=1,this.local$this$ContentEntryDao_JdbcKt=t}function zy(t){return lt(t,!1,(e=t,function(t){return e.getBoolean_za3lpa$(1)}));var e}function wy(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$contentEntryUid=t,this.local$closure$accountPersonUid=e,this.local$closure$permission=n,this.local$_stmt=i}function Oy(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$inactive=t,this.local$closure$changedTime=e,this.local$closure$jobId=n,this.local$_stmt=i}function Ry(t,e,n){return function(i,o,r){var s=new Oy(t,e,n,i,o);return r?s:s.doResume(null)}}function Ay(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$jobId=e,this.local$inactive=n,this.local$changedTime=i}function xy(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$toggleVisibility=t,this.local$closure$changedTime=e,this.local$closure$selectedItem=n,this.local$_stmt=i}function Iy(t,e,n){return function(i,o,r){var s=new xy(t,e,n,i,o);return r?s:s.doResume(null)}}function Uy(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$toggleVisibility=e,this.local$selectedItem=n,this.local$changedTime=i}function Dy(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("contentEntryUid"),i=e.getString_61zpoe$("title"),o=e.getString_61zpoe$("description"),r=e.getString_61zpoe$("entryId"),s=e.getString_61zpoe$("author"),a=e.getString_61zpoe$("publisher"),c=e.getInt_61zpoe$("licenseType"),l=e.getString_61zpoe$("licenseName"),u=e.getString_61zpoe$("licenseUrl"),h=e.getString_61zpoe$("sourceUrl"),d=e.getString_61zpoe$("thumbnailUrl"),p=e.getLong_61zpoe$("lastModified"),_=e.getLong_61zpoe$("primaryLanguageUid"),m=e.getLong_61zpoe$("languageVariantUid"),f=e.getInt_61zpoe$("contentFlags"),g=e.getBoolean_61zpoe$("leaf"),$=e.getBoolean_61zpoe$("publik"),E=e.getBoolean_61zpoe$("ceInactive"),y=e.getInt_61zpoe$("completionCriteria"),b=e.getInt_61zpoe$("minScore"),S=e.getInt_61zpoe$("contentTypeFlag"),v=e.getLong_61zpoe$("contentOwner"),C=e.getLong_61zpoe$("contentEntryLocalChangeSeqNum"),N=e.getLong_61zpoe$("contentEntryMasterChangeSeqNum"),T=e.getInt_61zpoe$("contentEntryLastChangedBy"),L=e.getLong_61zpoe$("contentEntryLct"),z=new Ott;return z.contentEntryUid=n,z.title=i,z.description=o,z.entryId=r,z.author=s,z.publisher=a,z.licenseType=c,z.licenseName=l,z.licenseUrl=u,z.sourceUrl=h,z.thumbnailUrl=d,z.lastModified=p,z.primaryLanguageUid=_,z.languageVariantUid=m,z.contentFlags=f,z.leaf=g,z.publik=$,z.ceInactive=E,z.completionCriteria=y,z.minScore=b,z.contentTypeFlag=S,z.contentOwner=v,z.contentEntryLocalChangeSeqNum=C,z.contentEntryMasterChangeSeqNum=N,z.contentEntryLastChangedBy=T,z.contentEntryLct=L,z}));var e}function Py(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function My(t,e,n){var i=new Py(t,e);return n?i:i.doResume(null)}function ky(t){return lt(t,null,(e=t,function(t){var n=e.getBoolean_61zpoe$("showDownloadButton"),i=e.getBoolean_61zpoe$("showOpenButton"),o=e.getBoolean_61zpoe$("showUpdateButton"),r=e.getBoolean_61zpoe$("showDeleteButton"),s=e.getBoolean_61zpoe$("showManageDownloadButton"),a=new Mtt;return a.showDownloadButton=n,a.showOpenButton=i,a.showUpdateButton=o,a.showDeleteButton=r,a.showManageDownloadButton=s,a}));var e}function jy(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$contentEntryUid=t,this.local$closure$platformDownloadEnabled=e,this.local$_stmt=n}function Gy(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function qy(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$contentEntryUid=t,this.local$_stmt=e}function Fy(t){return lt(t,null,(e=t,function(t){var n=e.getInt_61zpoe$("status"),i=e.getLong_61zpoe$("progress"),o=e.getLong_61zpoe$("total"),r=new jnt;return r.status=n,r.progress=i,r.total=o,r}));var e}function By(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$contentEntryUid=t,this.local$_stmt=e}function Wy(t){pt.call(this,t)}function Hy(t){pt.call(this,t)}function Vy(t,e){y$.call(this),this._db_0=t,this._dao_0=e}function Ky(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function Xy(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function Jy(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_pkManager=void 0,this.local$_generatedPks=void 0,this.local$$receiver=void 0,this.local$element=void 0,this.local$entityList=e}function Yy(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$jobId=e,this.local$inactive=n,this.local$changedTime=i}function Qy(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$toggleVisibility=e,this.local$selectedItem=n,this.local$changedTime=i}function Zy(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function tb(t,e,n,i,o,r){y$.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function eb(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function nb(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function ib(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function ob(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entryUuid=e}function rb(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityUid=e}function sb(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entryUuid=e}function ab(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$contentEntryUid=e}function cb(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$parentUid=e}function lb(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$parentUid=e,this.local$limit=n,this.local$offset=i}function ub(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$parentUid=e}function hb(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$parentUid=e}function db(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entryUuid=e}function pb(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$parentUid=e}function _b(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entryUid=e}function mb(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$uid=e}function fb(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$contentEntryUid=e}function gb(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$sourceUrl=e}function $b(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Eb(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$contentEntryUids=e}function yb(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$accountPersonUid=e,this.local$contentEntryUid=n,this.local$permission=i}function bb(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$jobId=e,this.local$inactive=n,this.local$changedTime=i}function Sb(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$toggleVisibility=e,this.local$selectedItem=n,this.local$changedTime=i}function vb(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function Cb(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$contentEntryUid=e,this.local$platformDownloadEnabled=n}eo.$metadata$={kind:c,simpleName:"UmAppDatabase_Repo",interfaces:[ot,Ln]},ro.prototype.getAgentByAnyId_t5gqrj$=function(t,e,n,i,o,r){return void 0===t&&(t=""),void 0===e&&(e=""),void 0===n&&(n=""),void 0===i&&(i=""),void 0===o&&(o=""),r?r(t,e,n,i,o):this.getAgentByAnyId_t5gqrj$$default(t,e,n,i,o)},ro.$metadata$={kind:c,simpleName:"AgentDao",interfaces:[X6]},so.prototype.insert_11rb$=function(t){return this._insertAdapterAgentEntity_.insertAndReturnId_11rb$(t)},ao.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ao.prototype=Object.create(N.prototype),ao.prototype.constructor=ao,ao.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterAgentEntity_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},so.prototype.insertAsync=function(t,e,n){var i=new ao(this,t,e);return n?i:i.doResume(null)},so.prototype.insertList_4ezy5m$=function(t){this._insertAdapterAgentEntity_.insertList_4ezy5m$(t)},so.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE AgentEntity SET agentMbox = ?, agentMbox_sha1sum = ?, agentOpenid = ?, agentAccountName = ?, agentHomePage = ?, agentPersonUid = ?, statementMasterChangeSeqNum = ?, statementLocalChangeSeqNum = ?, statementLastChangedBy = ?, agentLct = ? WHERE agentUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setString_vqvrqt$(1,i.agentMbox),t.setString_vqvrqt$(2,i.agentMbox_sha1sum),t.setString_vqvrqt$(3,i.agentOpenid),t.setString_vqvrqt$(4,i.agentAccountName),t.setString_vqvrqt$(5,i.agentHomePage),t.setLong_6svq3l$(6,i.agentPersonUid),t.setLong_6svq3l$(7,i.statementMasterChangeSeqNum),t.setLong_6svq3l$(8,i.statementLocalChangeSeqNum),t.setInt_vux9f0$(9,i.statementLastChangedBy),t.setLong_6svq3l$(10,i.agentLct),t.setLong_6svq3l$(11,i.agentUid),t.executeUpdate()}return t.getConnection().commit(),V}))},so.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE AgentEntity SET agentMbox = ?, agentMbox_sha1sum = ?, agentOpenid = ?, agentAccountName = ?, agentHomePage = ?, agentPersonUid = ?, statementMasterChangeSeqNum = ?, statementLocalChangeSeqNum = ?, statementLastChangedBy = ?, agentLct = ? WHERE agentUid = ?",(e=t,function(t){return t.setString_vqvrqt$(1,e.agentMbox),t.setString_vqvrqt$(2,e.agentMbox_sha1sum),t.setString_vqvrqt$(3,e.agentOpenid),t.setString_vqvrqt$(4,e.agentAccountName),t.setString_vqvrqt$(5,e.agentHomePage),t.setLong_6svq3l$(6,e.agentPersonUid),t.setLong_6svq3l$(7,e.statementMasterChangeSeqNum),t.setLong_6svq3l$(8,e.statementLocalChangeSeqNum),t.setInt_vux9f0$(9,e.statementLastChangedBy),t.setLong_6svq3l$(10,e.agentLct),t.setLong_6svq3l$(11,e.agentUid),t.executeUpdate()}))},co.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},co.prototype=Object.create(N.prototype),co.prototype.constructor=co,co.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},uo.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},uo.prototype=Object.create(N.prototype),uo.prototype.constructor=uo,uo.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO AgentEntityReplicate(aePk, aeDestination)\n | SELECT DISTINCT AgentEntity.agentUid AS aeUid,\n | ? AS aeDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | 64\n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | JOIN AgentEntity \n | ON AgentEntity.agentPersonUid = Person.personUid\n | WHERE UserSession.usClientNodeId = ?\n | --notpsql \n | AND AgentEntity.agentLct != COALESCE(\n | (SELECT aeVersionId\n | FROM AgentEntityReplicate\n | WHERE aePk = AgentEntity.agentUid\n | AND aeDestination = UserSession.usClientNodeId), 0) \n | --endnotpsql \n | /*psql ON CONFLICT(aePk, aeDestination) DO UPDATE\n | SET aePending = (SELECT AgentEntity.agentLct\n | FROM AgentEntity\n | WHERE AgentEntity.agentUid = EXCLUDED.aePk ) \n | != AgentEntityReplicate.aePk\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO AgentEntityReplicate(aePk, aeDestination)\n | SELECT DISTINCT AgentEntity.agentUid AS aeUid,\n | ? AS aeDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | 64\n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | JOIN AgentEntity \n | ON AgentEntity.agentPersonUid = Person.personUid\n | WHERE UserSession.usClientNodeId = ?\n | ON CONFLICT(aePk, aeDestination) DO UPDATE\n | SET aePending = (SELECT AgentEntity.agentLct\n | FROM AgentEntity\n | WHERE AgentEntity.agentUid = EXCLUDED.aePk ) \n | != AgentEntityReplicate.aePk\n | \n | \n |")),lo(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},so.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new uo(this,t,e);return n?i:i.doResume(null)},ho.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ho.prototype=Object.create(N.prototype),ho.prototype.constructor=ho,ho.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_o.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_o.prototype=Object.create(N.prototype),_o.prototype.constructor=_o,_o.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO AgentEntityReplicate(aePk, aeDestination)\n | SELECT DISTINCT AgentEntity.agentUid AS aeUid,\n | UserSession.usClientNodeId AS aeDestination\n | FROM ChangeLog\n | JOIN AgentEntity\n | ON ChangeLog.chTableId = 68\n | AND ChangeLog.chEntityPk = AgentEntity.agentUid\n | JOIN Person \n | ON Person.personUid = AgentEntity.agentPersonUid\n | \n | JOIN ScopedGrant \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT clazzEnrolmentClazzUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentPersonUid = Person.personUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT schoolMemberSchoolUid\n | FROM SchoolMember\n | WHERE schoolMemberPersonUid = Person.personUid\n | AND schoolMemberActive))\n | )\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 64\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | --notpsql \n | AND AgentEntity.agentLct != COALESCE(\n | (SELECT aeVersionId\n | FROM AgentEntityReplicate\n | WHERE aePk = AgentEntity.agentUid\n | AND aeDestination = UserSession.usClientNodeId), 0) \n | --endnotpsql \n | /*psql ON CONFLICT(aePk, aeDestination) DO UPDATE\n | SET aePending = (SELECT AgentEntity.agentLct\n | FROM AgentEntity\n | WHERE AgentEntity.agentUid = EXCLUDED.aePk ) \n | != AgentEntityReplicate.aePk\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO AgentEntityReplicate(aePk, aeDestination)\n | SELECT DISTINCT AgentEntity.agentUid AS aeUid,\n | UserSession.usClientNodeId AS aeDestination\n | FROM ChangeLog\n | JOIN AgentEntity\n | ON ChangeLog.chTableId = 68\n | AND ChangeLog.chEntityPk = AgentEntity.agentUid\n | JOIN Person \n | ON Person.personUid = AgentEntity.agentPersonUid\n | \n | JOIN ScopedGrant \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT clazzEnrolmentClazzUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentPersonUid = Person.personUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT schoolMemberSchoolUid\n | FROM SchoolMember\n | WHERE schoolMemberPersonUid = Person.personUid\n | AND schoolMemberActive))\n | )\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 64\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | ON CONFLICT(aePk, aeDestination) DO UPDATE\n | SET aePending = (SELECT AgentEntity.agentLct\n | FROM AgentEntity\n | WHERE AgentEntity.agentUid = EXCLUDED.aePk ) \n | != AgentEntityReplicate.aePk\n | \n | \n |")),po,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},so.prototype.replicateOnChange=function(t,e){var n=new _o(this,t);return e?n:n.doResume(null)},so.prototype.getAgentByAnyId_t5gqrj$$default=function(t,e,n,i,o){return ht(this._db,new st("SELECT * FROM AgentEntity WHERE agentOpenId = ? OR agentMbox = ? OR agentMbox_sha1sum = ? OR (agentAccountName = ? AND agentHomePage = ?)"),(r=t,s=e,a=o,c=n,l=i,function(t){return t.setString_vqvrqt$(1,r),t.setString_vqvrqt$(2,s),t.setString_vqvrqt$(3,a),t.setString_vqvrqt$(4,c),t.setString_vqvrqt$(5,l),ut(t.executeQuery(),mo)}));var r,s,a,c,l},go.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},go.prototype=Object.create(N.prototype),go.prototype.constructor=go,go.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$username),this.local$_stmt.setString_vqvrqt$(2,this.local$closure$endpoint),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,fo);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},so.prototype.getAgentFromPersonUsername_puj7f4$=function(t,e,n){return ct(this._db,new st(S("\n |\n | SELECT *\n | FROM AgentEntity\n | WHERE agentAccountName = ? \n | AND agentHomePage = ?\n | \n ")),(i=e,o=t,function(t,e,n){var r=new go(i,o,t,e);return n?r:r.doResume(null)}),n);var i,o},$o.prototype.makeSql_6taknv$=function(t){return"INSERT INTO AgentEntity (agentUid, agentMbox, agentMbox_sha1sum, agentOpenid, agentAccountName, agentHomePage, agentPersonUid, statementMasterChangeSeqNum, statementLocalChangeSeqNum, statementLastChangedBy, agentLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},$o.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.agentUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.agentUid),t.setString_vqvrqt$(2,e.agentMbox),t.setString_vqvrqt$(3,e.agentMbox_sha1sum),t.setString_vqvrqt$(4,e.agentOpenid),t.setString_vqvrqt$(5,e.agentAccountName),t.setString_vqvrqt$(6,e.agentHomePage),t.setLong_6svq3l$(7,e.agentPersonUid),t.setLong_6svq3l$(8,e.statementMasterChangeSeqNum),t.setLong_6svq3l$(9,e.statementLocalChangeSeqNum),t.setInt_vux9f0$(10,e.statementLastChangedBy),t.setLong_6svq3l$(11,e.agentLct)},$o.$metadata$={kind:c,interfaces:[pt]},so.$metadata$={kind:c,simpleName:"AgentDao_JdbcKt",interfaces:[ro]},yo.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},yo.prototype=Object.create(N.prototype),yo.prototype.constructor=yo,yo.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Eo.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new yo(this,t,e);return n?i:i.doResume(null)},bo.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},bo.prototype=Object.create(N.prototype),bo.prototype.constructor=bo,bo.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Eo.prototype.replicateOnChange=function(t,e){var n=new bo(this,t);return e?n:n.doResume(null)},Eo.prototype.getAgentByAnyId_t5gqrj$$default=function(t,e,n,i,o){throw v("Synchronous db access is NOT possible on Javascript!")},Eo.prototype.getAgentFromPersonUsername_puj7f4$=function(t,e,n){return this._dao_0.getAgentFromPersonUsername_puj7f4$(t,e,n)},Eo.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},So.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},So.prototype=Object.create(N.prototype),So.prototype.constructor=So,So.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.agentUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(68,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.agentUid=e,this.state_0=3;continue;case 3:if(this.local$entity.agentLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.agentUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Eo.prototype.insertAsync=function(t,e,n){var i=new So(this,t,e);return n?i:i.doResume(null)},Eo.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Eo.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Eo.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Eo.$metadata$={kind:c,simpleName:"AgentDao_ReplicateWrapper",interfaces:[ro]},Co.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Co.prototype=Object.create(N.prototype),Co.prototype.constructor=Co,Co.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vo.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new Co(this,t,e);return n?i:i.doResume(null)},No.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},No.prototype=Object.create(N.prototype),No.prototype.constructor=No,No.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vo.prototype.replicateOnChange=function(t,e){var n=new No(this,t);return e?n:n.doResume(null)},vo.prototype.getAgentByAnyId_t5gqrj$$default=function(t,e,n,i,o){return this._dao.getAgentByAnyId_t5gqrj$(t,e,n,i,o)},To.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},To.prototype=Object.create(N.prototype),To.prototype.constructor=To,To.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.getAgentFromPersonUsername_puj7f4$(this.local$endpoint,this.local$username,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vo.prototype.getAgentFromPersonUsername_puj7f4$=function(t,e,n,i){var o=new To(this,t,e,n);return i?o:o.doResume(null)},vo.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},Lo.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Lo.prototype=Object.create(N.prototype),Lo.prototype.constructor=Lo,Lo.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vo.prototype.insertAsync=function(t,e,n){var i=new Lo(this,t,e);return n?i:i.doResume(null)},vo.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},vo.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},vo.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},vo.$metadata$={kind:c,simpleName:"AgentDao_Repo",interfaces:[ro]},zo.$metadata$={kind:c,simpleName:"ChatDao",interfaces:[X6]},wo.prototype.insert_11rb$=function(t){return this._insertAdapterChat_.insertAndReturnId_11rb$(t)},Oo.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Oo.prototype=Object.create(N.prototype),Oo.prototype.constructor=Oo,Oo.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterChat_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},wo.prototype.insertAsync=function(t,e,n){var i=new Oo(this,t,e);return n?i:i.doResume(null)},wo.prototype.insertList_4ezy5m$=function(t){this._insertAdapterChat_.insertList_4ezy5m$(t)},wo.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE Chat SET chatStartDate = ?, chatTitle = ?, chatGroup = ?, chatLct = ? WHERE chatUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.chatStartDate),t.setString_vqvrqt$(2,i.chatTitle),t.setBoolean_fzusl$(3,i.chatGroup),t.setLong_6svq3l$(4,i.chatLct),t.setLong_6svq3l$(5,i.chatUid),t.executeUpdate()}return t.getConnection().commit(),V}))},wo.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE Chat SET chatStartDate = ?, chatTitle = ?, chatGroup = ?, chatLct = ? WHERE chatUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.chatStartDate),t.setString_vqvrqt$(2,e.chatTitle),t.setBoolean_fzusl$(3,e.chatGroup),t.setLong_6svq3l$(4,e.chatLct),t.setLong_6svq3l$(5,e.chatUid),t.executeUpdate()}))},Ro.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ro.prototype=Object.create(N.prototype),Ro.prototype.constructor=Ro,Ro.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},xo.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},xo.prototype=Object.create(N.prototype),xo.prototype.constructor=xo,xo.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO chatReplicate(chatPk, chatDestination)\n | SELECT DISTINCT Chat.chatUid AS chatPk,\n | ? AS chatDestination\n | FROM UserSession \n | JOIN Chat ON \n | ((Chat.chatUid IN \n | (SELECT ChatMember.chatMemberChatUid \n | FROM ChatMember\n | WHERE ChatMember.chatMemberPersonUid = UserSession.usPersonUid))\n | OR UserSession.usSessionType = 2)\n | AND UserSession.usStatus = 1 \n | WHERE UserSession.usClientNodeId = ?\n | AND Chat.chatLct != COALESCE(\n | (SELECT chatVersionId\n | FROM chatReplicate\n | WHERE chatPk = Chat.chatUid\n | AND chatDestination = ?), 0) \n | /*psql ON CONFLICT(chatPk, chatDestination) DO UPDATE\n | SET chatPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO chatReplicate(chatPk, chatDestination)\n | SELECT DISTINCT Chat.chatUid AS chatPk,\n | ? AS chatDestination\n | FROM UserSession \n | JOIN Chat ON \n | ((Chat.chatUid IN \n | (SELECT ChatMember.chatMemberChatUid \n | FROM ChatMember\n | WHERE ChatMember.chatMemberPersonUid = UserSession.usPersonUid))\n | OR UserSession.usSessionType = 2)\n | AND UserSession.usStatus = 1 \n | WHERE UserSession.usClientNodeId = ?\n | AND Chat.chatLct != COALESCE(\n | (SELECT chatVersionId\n | FROM chatReplicate\n | WHERE chatPk = Chat.chatUid\n | AND chatDestination = ?), 0) \n | ON CONFLICT(chatPk, chatDestination) DO UPDATE\n | SET chatPending = true\n | \n | \n |")),Ao(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},wo.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new xo(this,t,e);return n?i:i.doResume(null)},Io.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Io.prototype=Object.create(N.prototype),Io.prototype.constructor=Io,Io.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Do.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Do.prototype=Object.create(N.prototype),Do.prototype.constructor=Do,Do.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO chatReplicate(chatPk, chatDestination)\n | SELECT DISTINCT Chat.chatUid AS chatUid,\n | UserSession.usClientNodeId AS chatDestination\n | FROM ChangeLog\n | JOIN Chat\n | ON ChangeLog.chTableId = 127\n | AND ChangeLog.chEntityPk = Chat.chatUid\n | JOIN UserSession ON \n | ((UserSession.usPersonUid IN \n | (SELECT ChatMember.chatMemberPersonUid \n | FROM ChatMember \n | WHERE ChatMember.chatMemberChatUid = Chat.chatUid))\n | OR UserSession.usSessionType = 2 )\n | AND UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND Chat.chatLct != COALESCE(\n | (SELECT chatVersionId\n | FROM chatReplicate\n | WHERE chatPk = Chat.chatUid\n | AND chatDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(chatPk, chatDestination) DO UPDATE\n | SET chatPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO chatReplicate(chatPk, chatDestination)\n | SELECT DISTINCT Chat.chatUid AS chatUid,\n | UserSession.usClientNodeId AS chatDestination\n | FROM ChangeLog\n | JOIN Chat\n | ON ChangeLog.chTableId = 127\n | AND ChangeLog.chEntityPk = Chat.chatUid\n | JOIN UserSession ON \n | ((UserSession.usPersonUid IN \n | (SELECT ChatMember.chatMemberPersonUid \n | FROM ChatMember \n | WHERE ChatMember.chatMemberChatUid = Chat.chatUid))\n | OR UserSession.usSessionType = 2 )\n | AND UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND Chat.chatLct != COALESCE(\n | (SELECT chatVersionId\n | FROM chatReplicate\n | WHERE chatPk = Chat.chatUid\n | AND chatDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(chatPk, chatDestination) DO UPDATE\n | SET chatPending = true\n | \n | \n |")),Uo,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},wo.prototype.replicateOnChange=function(t,e){var n=new Do(this,t);return e?n:n.doResume(null)},ko.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ko.prototype=Object.create(N.prototype),ko.prototype.constructor=ko,ko.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$personUid),this.local$_stmt.setString_vqvrqt$(5,this.local$closure$searchBit),this.local$_stmt.setString_vqvrqt$(6,this.local$closure$searchBit),this.local$_stmt.setLong_6svq3l$(7,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(8,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(9,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(10,this.local$closure$personUid),this.local$_stmt.setString_vqvrqt$(11,this.local$closure$searchBit),this.local$_stmt.setInt_vux9f0$(12,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(13,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Mo);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Go.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Go.prototype=Object.create(N.prototype),Go.prototype.constructor=Go,Go.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ChatDao_JdbcKt._db,new st(S("\n |SELECT * FROM (\n | SELECT Chat.*,\n | Message.messageText AS latestMessage,\n | Message.messageTimestamp AS latestMessageTimestamp,\n | op.personUid AS otherPersonUid,\n | op.firstNames AS otherPersonFirstNames,\n | op.lastName AS otherPersonLastName,\n | (\n |\t\t\t\tSELECT COUNT(*) \n |\t\t\t\t FROM Message \n |\t\t\t\t WHERE Message.messageTableId = 127 \n |\t\t\t\t AND Message.messageEntityUid = Chat.chatUid \n |\t\t\t\t AND Message.messageSenderPersonUid != ?\n |\t\t\t\t AND Message.messageTimestamp > coalesce((\n |\t\t\t\t\t\tSELECT MessageRead.messageReadLct FROM MessageRead \n |\t\t\t\t\t\tWHERE MessageRead.messageReadPersonUid = ?\n |\t\t\t\t\t\tAND MessageRead.messageReadMessageUid = Message.messageUid \n |\t\t\t\t ), 0)\n |\t\t\t\t\t\n |\t\t\t\t\n |\t\t\t ) AS unreadMessageCount,\n | \n | (SELECT COUNT(*)\n | FROM ChatMember mm\n | WHERE mm.chatMemberChatUid = Chat.chatUid ) AS numMembers\n | FROM ChatMember\n | LEFT JOIN Chat \n | ON Chat.chatUid = ChatMember.chatMemberChatUid\n | LEFT JOIN Message \n | ON Message.messageUid =\n | (SELECT messageUid\n | FROM Message\n | WHERE messageEntityUid = Chat.chatUid\n | AND messageTableId = 127\n | ORDER BY messageTimestamp DESC\n | LIMIT 1)\n | LEFT JOIN Person op \n | ON op.personUid =\n | (SELECT pp.personUid\n | FROM ChatMember cm\n | LEFT JOIN Person pp \n | ON pp.personUid = cm.chatMemberPersonUid\n | WHERE cm.chatMemberChatUid = Chat.chatUid\n | AND cm.chatMemberPersonUid != ?\n | AND cm.chatMemberLeftDate = 9223372036854775807\n | LIMIT 1)\n | WHERE ChatMember.chatMemberPersonUid = ?\n | AND ChatMember.chatMemberLeftDate = 9223372036854775807\n | AND Chat.chatUid != 0 \n | AND op.firstNames||' '||op.lastName LIKE ? \n | -- When in search mode we need to add all Persons who match the search to the list, even if\n | -- no chat has started\n | UNION\n | SELECT Chat.*,\n | '' AS latestMessage,\n | 0 AS latestMessageTimestamp,\n | Person.personUid AS otherPersonUid,\n | Person.firstNames AS otherPersonFirstNames,\n | Person.lastName AS otherPersonLastName,\n | 0 AS unreadMessageCount,\n | 0 AS numMembers\n | \n | FROM PersonGroupMember\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | 64\n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n |\t\t \n | LEFT JOIN Chat\n | ON Chat.chatUid = 0\n | WHERE ? != '%'\n | AND PersonGroupMember.groupMemberPersonUid = ?\n | AND Person.personUid != ?\n | \n | AND Person.personUid NOT IN\n |\t\t\t (\n |\t\t\t\tSELECT chatpeople.personUid \n |\t\t\t\t FROM ChatMember cmm\n |\t\t\t\t\t LEFT JOIN Chat cc \n |\t\t\t\t\t\t\t ON cc.chatUid = cmm.chatMemberChatUid \n |\t\t\t \n |\t\t\t\t LEFT JOIN Person chatpeople \n | ON chatpeople.personUid =\n | (SELECT chatpeopleother.personUid\n | FROM ChatMember cm\n | LEFT JOIN Person chatpeopleother \n | ON chatpeopleother.personUid = cm.chatMemberPersonUid\n | WHERE cm.chatMemberChatUid = cc.chatUid\n | AND cm.chatMemberPersonUid != ?\n | LIMIT 1)\n |\t\t\t\t\t\t \n |\t\t\t\t WHERE cc.chatUid != 0 \n |\t\t\t\t AND cmm.chatMemberPersonUid = ?\n |\t\t\t\t )\n | \n | AND Person.firstNames||' '||Person.lastName LIKE ? \n | ORDER BY latestMessageTimestamp DESC\n | ) LIMIT ? OFFSET ?\n ")),jo(this.local$closure$personUid,this.local$closure$searchBit,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Po.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$ChatDao_JdbcKt._db,p(["Message","MessageRead","ChatMember","Chat","Person","PersonGroupMember","ScopedGrant"]),(n=this.this$ChatDao_JdbcKt,i=this.closure$personUid,o=this.closure$searchBit,r=e,s=t,function(t,e){var a=new Go(n,i,o,r,s,t);return e?a:a.doResume(null)}));var n,i,o,r,s},Fo.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Fo.prototype=Object.create(N.prototype),Fo.prototype.constructor=Fo,Fo.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$personUid),this.local$_stmt.setString_vqvrqt$(5,this.local$closure$searchBit),this.local$_stmt.setString_vqvrqt$(6,this.local$closure$searchBit),this.local$_stmt.setLong_6svq3l$(7,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(8,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(9,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(10,this.local$closure$personUid),this.local$_stmt.setString_vqvrqt$(11,this.local$closure$searchBit),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,qo);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Wo.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Wo.prototype=Object.create(N.prototype),Wo.prototype.constructor=Wo,Wo.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ChatDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (\n | SELECT Chat.*,\n | Message.messageText AS latestMessage,\n | Message.messageTimestamp AS latestMessageTimestamp,\n | op.personUid AS otherPersonUid,\n | op.firstNames AS otherPersonFirstNames,\n | op.lastName AS otherPersonLastName,\n | (\n |\t\t\t\tSELECT COUNT(*) \n |\t\t\t\t FROM Message \n |\t\t\t\t WHERE Message.messageTableId = 127 \n |\t\t\t\t AND Message.messageEntityUid = Chat.chatUid \n |\t\t\t\t AND Message.messageSenderPersonUid != ?\n |\t\t\t\t AND Message.messageTimestamp > coalesce((\n |\t\t\t\t\t\tSELECT MessageRead.messageReadLct FROM MessageRead \n |\t\t\t\t\t\tWHERE MessageRead.messageReadPersonUid = ?\n |\t\t\t\t\t\tAND MessageRead.messageReadMessageUid = Message.messageUid \n |\t\t\t\t ), 0)\n |\t\t\t\t\t\n |\t\t\t\t\n |\t\t\t ) AS unreadMessageCount,\n | \n | (SELECT COUNT(*)\n | FROM ChatMember mm\n | WHERE mm.chatMemberChatUid = Chat.chatUid ) AS numMembers\n | FROM ChatMember\n | LEFT JOIN Chat \n | ON Chat.chatUid = ChatMember.chatMemberChatUid\n | LEFT JOIN Message \n | ON Message.messageUid =\n | (SELECT messageUid\n | FROM Message\n | WHERE messageEntityUid = Chat.chatUid\n | AND messageTableId = 127\n | ORDER BY messageTimestamp DESC\n | LIMIT 1)\n | LEFT JOIN Person op \n | ON op.personUid =\n | (SELECT pp.personUid\n | FROM ChatMember cm\n | LEFT JOIN Person pp \n | ON pp.personUid = cm.chatMemberPersonUid\n | WHERE cm.chatMemberChatUid = Chat.chatUid\n | AND cm.chatMemberPersonUid != ?\n | AND cm.chatMemberLeftDate = 9223372036854775807\n | LIMIT 1)\n | WHERE ChatMember.chatMemberPersonUid = ?\n | AND ChatMember.chatMemberLeftDate = 9223372036854775807\n | AND Chat.chatUid != 0 \n | AND op.firstNames||' '||op.lastName LIKE ? \n | -- When in search mode we need to add all Persons who match the search to the list, even if\n | -- no chat has started\n | UNION\n | SELECT Chat.*,\n | '' AS latestMessage,\n | 0 AS latestMessageTimestamp,\n | Person.personUid AS otherPersonUid,\n | Person.firstNames AS otherPersonFirstNames,\n | Person.lastName AS otherPersonLastName,\n | 0 AS unreadMessageCount,\n | 0 AS numMembers\n | \n | FROM PersonGroupMember\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | 64\n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n |\t\t \n | LEFT JOIN Chat\n | ON Chat.chatUid = 0\n | WHERE ? != '%'\n | AND PersonGroupMember.groupMemberPersonUid = ?\n | AND Person.personUid != ?\n | \n | AND Person.personUid NOT IN\n |\t\t\t (\n |\t\t\t\tSELECT chatpeople.personUid \n |\t\t\t\t FROM ChatMember cmm\n |\t\t\t\t\t LEFT JOIN Chat cc \n |\t\t\t\t\t\t\t ON cc.chatUid = cmm.chatMemberChatUid \n |\t\t\t \n |\t\t\t\t LEFT JOIN Person chatpeople \n | ON chatpeople.personUid =\n | (SELECT chatpeopleother.personUid\n | FROM ChatMember cm\n | LEFT JOIN Person chatpeopleother \n | ON chatpeopleother.personUid = cm.chatMemberPersonUid\n | WHERE cm.chatMemberChatUid = cc.chatUid\n | AND cm.chatMemberPersonUid != ?\n | LIMIT 1)\n |\t\t\t\t\t\t \n |\t\t\t\t WHERE cc.chatUid != 0 \n |\t\t\t\t AND cmm.chatMemberPersonUid = ?\n |\t\t\t\t )\n | \n | AND Person.firstNames||' '||Person.lastName LIKE ? \n | ORDER BY latestMessageTimestamp DESC\n | ) \n ")),Bo(this.local$closure$personUid,this.local$closure$searchBit),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Po.prototype.getLength=function(){return new ft(this.this$ChatDao_JdbcKt._db,p(["Message","MessageRead","ChatMember","Chat","Person","PersonGroupMember","ScopedGrant"]),(t=this.this$ChatDao_JdbcKt,e=this.closure$personUid,n=this.closure$searchBit,function(i,o){var r=new Wo(t,e,n,i);return o?r:r.doResume(null)}));var t,e,n},Po.$metadata$={kind:c,interfaces:[gt]},wo.prototype.findAllChatsForUser_4wgjuj$=function(t,e){return new Po(this,e,t)},Vo.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Vo.prototype=Object.create(N.prototype),Vo.prototype.constructor=Vo,Vo.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$chatUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Ho);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},wo.prototype.getTitleChat_3pjtqy$=function(t,e,n){return ct(this._db,new st(S("\n |\n | SELECT CASE\n | WHEN Chat.chatGroup THEN Chat.chatTitle\n | ELSE Person.firstNames||' '||Person.lastName\n | END AS title\n | FROM Chat\n | LEFT JOIN Person \n | ON CAST(Chat.chatGroup AS INTEGER) = 0\n | AND Person.personUid =\n | (SELECT pp.personUid\n | FROM ChatMember cm\n | LEFT JOIN Person pp ON pp.personUid = cm.chatMemberPersonUid\n | WHERE cm.chatMemberChatUid = Chat.chatUid\n | AND cm.chatMemberPersonUid != ?\n | AND cm.chatMemberLeftDate = 9223372036854775807\n | LIMIT 1)\n | WHERE Chat.chatUid = ?\n | \n ")),(i=e,o=t,function(t,e,n){var r=new Vo(i,o,t,e);return n?r:r.doResume(null)}),n);var i,o},Xo.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Xo.prototype=Object.create(N.prototype),Xo.prototype.constructor=Xo,Xo.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$otherPersonUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$loggedInPersonUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$otherPersonUid),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$loggedInPersonUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Ko);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},wo.prototype.getChatByOtherPerson_3pjtqy$=function(t,e,n){return ct(this._db,new st(S("\n |\n | SELECT Chat.*\n | FROM ChatMember\n | LEFT JOIN Chat ON Chat.chatUid = ChatMember.chatMemberChatUid\n | WHERE ChatMember.chatMemberPersonUid = ?\n | AND CAST(Chat.chatGroup AS INTEGER) = 0\n | AND Chat.chatUid IN \n | (\n | SELECT ChatMember.chatMemberChatUid\n | FROM ChatMember\n | WHERE ChatMember.chatMemberChatUid = Chat.chatUid\n | AND ChatMember.chatMemberPersonUid = ? \n | ) \n | AND ? != ?\n | \n ")),(i=t,o=e,function(t,e,n){var r=new Xo(i,o,t,e);return n?r:r.doResume(null)}),n);var i,o},Jo.prototype.makeSql_6taknv$=function(t){return"INSERT INTO Chat (chatUid, chatStartDate, chatTitle, chatGroup, chatLct) VALUES(?, ?, ?, ?, ?)"},Jo.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.chatUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.chatUid),t.setLong_6svq3l$(2,e.chatStartDate),t.setString_vqvrqt$(3,e.chatTitle),t.setBoolean_fzusl$(4,e.chatGroup),t.setLong_6svq3l$(5,e.chatLct)},Jo.$metadata$={kind:c,interfaces:[pt]},wo.$metadata$={kind:c,simpleName:"ChatDao_JdbcKt",interfaces:[zo]},Qo.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Qo.prototype=Object.create(N.prototype),Qo.prototype.constructor=Qo,Qo.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Yo.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new Qo(this,t,e);return n?i:i.doResume(null)},Zo.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Zo.prototype=Object.create(N.prototype),Zo.prototype.constructor=Zo,Zo.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Yo.prototype.replicateOnChange=function(t,e){var n=new Zo(this,t);return e?n:n.doResume(null)},Yo.prototype.findAllChatsForUser_4wgjuj$=function(t,e){return this._dao_0.findAllChatsForUser_4wgjuj$(t,e)},Yo.prototype.getTitleChat_3pjtqy$=function(t,e,n){return this._dao_0.getTitleChat_3pjtqy$(t,e,n)},Yo.prototype.getChatByOtherPerson_3pjtqy$=function(t,e,n){return this._dao_0.getChatByOtherPerson_3pjtqy$(t,e,n)},Yo.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},tr.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},tr.prototype=Object.create(N.prototype),tr.prototype.constructor=tr,tr.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.chatUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(127,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.chatUid=e,this.state_0=3;continue;case 3:if(this.local$entity.chatLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.chatUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Yo.prototype.insertAsync=function(t,e,n){var i=new tr(this,t,e);return n?i:i.doResume(null)},Yo.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Yo.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Yo.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Yo.$metadata$={kind:c,simpleName:"ChatDao_ReplicateWrapper",interfaces:[zo]},nr.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},nr.prototype=Object.create(N.prototype),nr.prototype.constructor=nr,nr.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},er.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new nr(this,t,e);return n?i:i.doResume(null)},ir.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ir.prototype=Object.create(N.prototype),ir.prototype.constructor=ir,ir.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},er.prototype.replicateOnChange=function(t,e){var n=new ir(this,t);return e?n:n.doResume(null)},er.prototype.findAllChatsForUser_4wgjuj$=function(t,e){return this._dao.findAllChatsForUser_4wgjuj$(t,e)},or.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},or.prototype=Object.create(N.prototype),or.prototype.constructor=or,or.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.getTitleChat_3pjtqy$(this.local$chatUid,this.local$personUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},er.prototype.getTitleChat_3pjtqy$=function(t,e,n,i){var o=new or(this,t,e,n);return i?o:o.doResume(null)},rr.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},rr.prototype=Object.create(N.prototype),rr.prototype.constructor=rr,rr.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.getChatByOtherPerson_3pjtqy$(this.local$otherPersonUid,this.local$loggedInPersonUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},er.prototype.getChatByOtherPerson_3pjtqy$=function(t,e,n,i){var o=new rr(this,t,e,n);return i?o:o.doResume(null)},er.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},sr.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},sr.prototype=Object.create(N.prototype),sr.prototype.constructor=sr,sr.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},er.prototype.insertAsync=function(t,e,n){var i=new sr(this,t,e);return n?i:i.doResume(null)},er.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},er.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},er.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},er.$metadata$={kind:c,simpleName:"ChatDao_Repo",interfaces:[zo]},ar.$metadata$={kind:c,simpleName:"ChatMemberDao",interfaces:[X6]},cr.prototype.insert_11rb$=function(t){return this._insertAdapterChatMember_.insertAndReturnId_11rb$(t)},lr.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},lr.prototype=Object.create(N.prototype),lr.prototype.constructor=lr,lr.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterChatMember_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},cr.prototype.insertAsync=function(t,e,n){var i=new lr(this,t,e);return n?i:i.doResume(null)},cr.prototype.insertList_4ezy5m$=function(t){this._insertAdapterChatMember_.insertList_4ezy5m$(t)},cr.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE ChatMember SET chatMemberChatUid = ?, chatMemberPersonUid = ?, chatMemberJoinedDate = ?, chatMemberLeftDate = ?, chatMemberLct = ? WHERE chatMemberUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.chatMemberChatUid),t.setLong_6svq3l$(2,i.chatMemberPersonUid),t.setLong_6svq3l$(3,i.chatMemberJoinedDate),t.setLong_6svq3l$(4,i.chatMemberLeftDate),t.setLong_6svq3l$(5,i.chatMemberLct),t.setLong_6svq3l$(6,i.chatMemberUid),t.executeUpdate()}return t.getConnection().commit(),V}))},cr.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE ChatMember SET chatMemberChatUid = ?, chatMemberPersonUid = ?, chatMemberJoinedDate = ?, chatMemberLeftDate = ?, chatMemberLct = ? WHERE chatMemberUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.chatMemberChatUid),t.setLong_6svq3l$(2,e.chatMemberPersonUid),t.setLong_6svq3l$(3,e.chatMemberJoinedDate),t.setLong_6svq3l$(4,e.chatMemberLeftDate),t.setLong_6svq3l$(5,e.chatMemberLct),t.setLong_6svq3l$(6,e.chatMemberUid),t.executeUpdate()}))},ur.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ur.prototype=Object.create(N.prototype),ur.prototype.constructor=ur,ur.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dr.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},dr.prototype=Object.create(N.prototype),dr.prototype.constructor=dr,dr.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO chatMemberReplicate(chatMemberPk, chatMemberDestination)\n | SELECT DISTINCT ChatMember.chatMemberUid AS chatMemberPk,\n | ? AS chatMemberDestination\n | \n | FROM UserSession\n | JOIN ChatMember \n | ON ((ChatMember.chatMemberChatUid IN\n | (SELECT chatMemberInternal.chatMemberChatUid \n | FROM ChatMember chatMemberInternal\n | WHERE chatMemberInternal.chatMemberPersonUid = UserSession.usPersonUid))\n | OR UserSession.usSessionType = 2)\n | AND UserSession.usStatus = 1 \n | WHERE ChatMember.chatMemberLct != COALESCE(\n | (SELECT chatMemberVersionId\n | FROM chatMemberReplicate\n | WHERE chatMemberPk = ChatMember.chatMemberUid\n | AND chatMemberDestination = ?), 0) \n | /*psql ON CONFLICT(chatMemberPk, chatMemberDestination) DO UPDATE\n | SET chatMemberPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO chatMemberReplicate(chatMemberPk, chatMemberDestination)\n | SELECT DISTINCT ChatMember.chatMemberUid AS chatMemberPk,\n | ? AS chatMemberDestination\n | \n | FROM UserSession\n | JOIN ChatMember \n | ON ((ChatMember.chatMemberChatUid IN\n | (SELECT chatMemberInternal.chatMemberChatUid \n | FROM ChatMember chatMemberInternal\n | WHERE chatMemberInternal.chatMemberPersonUid = UserSession.usPersonUid))\n | OR UserSession.usSessionType = 2)\n | AND UserSession.usStatus = 1 \n | WHERE ChatMember.chatMemberLct != COALESCE(\n | (SELECT chatMemberVersionId\n | FROM chatMemberReplicate\n | WHERE chatMemberPk = ChatMember.chatMemberUid\n | AND chatMemberDestination = ?), 0) \n | ON CONFLICT(chatMemberPk, chatMemberDestination) DO UPDATE\n | SET chatMemberPending = true\n | \n | \n |")),hr(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},cr.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new dr(this,t,e);return n?i:i.doResume(null)},pr.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},pr.prototype=Object.create(N.prototype),pr.prototype.constructor=pr,pr.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},mr.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},mr.prototype=Object.create(N.prototype),mr.prototype.constructor=mr,mr.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO chatMemberReplicate(chatMemberPk, chatMemberDestination)\n | SELECT DISTINCT ChatMember.chatMemberUid AS chatMemberUid,\n | UserSession.usClientNodeId AS chatMemberDestination\n | FROM ChangeLog\n | JOIN chatMember\n | ON ChangeLog.chTableId = 128\n | AND ChangeLog.chEntityPk = ChatMember.chatMemberUid\n | \n | JOIN UserSession ON \n | (UserSession.usSessionType = 2\n | OR (UserSession.usPersonUid IN \n | (SELECT ChatMember.chatMemberPersonUid \n | FROM ChatMember \n | WHERE ChatMember.chatMemberChatUid IN \n | (SELECT ChatMemberInternal.chatMemberChatUid \n | FROM ChatMember ChatMemberInternal\n | WHERE ChatMemberInternal.chatMemberPersonUid = \n | UserSession.usPersonUid))))\n | AND UserSession.usStatus = 1\n | \n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ChatMember.chatMemberLct != COALESCE(\n | (SELECT chatMemberVersionId\n | FROM chatMemberReplicate\n | WHERE chatMemberPk = ChatMember.chatMemberUid\n | AND chatMemberDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(chatMemberPk, chatMemberDestination) DO UPDATE\n | SET chatMemberPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO chatMemberReplicate(chatMemberPk, chatMemberDestination)\n | SELECT DISTINCT ChatMember.chatMemberUid AS chatMemberUid,\n | UserSession.usClientNodeId AS chatMemberDestination\n | FROM ChangeLog\n | JOIN chatMember\n | ON ChangeLog.chTableId = 128\n | AND ChangeLog.chEntityPk = ChatMember.chatMemberUid\n | \n | JOIN UserSession ON \n | (UserSession.usSessionType = 2\n | OR (UserSession.usPersonUid IN \n | (SELECT ChatMember.chatMemberPersonUid \n | FROM ChatMember \n | WHERE ChatMember.chatMemberChatUid IN \n | (SELECT ChatMemberInternal.chatMemberChatUid \n | FROM ChatMember ChatMemberInternal\n | WHERE ChatMemberInternal.chatMemberPersonUid = \n | UserSession.usPersonUid))))\n | AND UserSession.usStatus = 1\n | \n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ChatMember.chatMemberLct != COALESCE(\n | (SELECT chatMemberVersionId\n | FROM chatMemberReplicate\n | WHERE chatMemberPk = ChatMember.chatMemberUid\n | AND chatMemberDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(chatMemberPk, chatMemberDestination) DO UPDATE\n | SET chatMemberPending = true\n | \n | \n |")),_r,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},cr.prototype.replicateOnChange=function(t,e){var n=new mr(this,t);return e?n:n.doResume(null)},fr.prototype.makeSql_6taknv$=function(t){return"INSERT INTO ChatMember (chatMemberUid, chatMemberChatUid, chatMemberPersonUid, chatMemberJoinedDate, chatMemberLeftDate, chatMemberLct) VALUES(?, ?, ?, ?, ?, ?)"},fr.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.chatMemberUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.chatMemberUid),t.setLong_6svq3l$(2,e.chatMemberChatUid),t.setLong_6svq3l$(3,e.chatMemberPersonUid),t.setLong_6svq3l$(4,e.chatMemberJoinedDate),t.setLong_6svq3l$(5,e.chatMemberLeftDate),t.setLong_6svq3l$(6,e.chatMemberLct)},fr.$metadata$={kind:c,interfaces:[pt]},cr.$metadata$={kind:c,simpleName:"ChatMemberDao_JdbcKt",interfaces:[ar]},$r.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},$r.prototype=Object.create(N.prototype),$r.prototype.constructor=$r,$r.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},gr.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new $r(this,t,e);return n?i:i.doResume(null)},Er.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Er.prototype=Object.create(N.prototype),Er.prototype.constructor=Er,Er.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},gr.prototype.replicateOnChange=function(t,e){var n=new Er(this,t);return e?n:n.doResume(null)},gr.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},yr.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},yr.prototype=Object.create(N.prototype),yr.prototype.constructor=yr,yr.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.chatMemberUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(128,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.chatMemberUid=e,this.state_0=3;continue;case 3:if(this.local$entity.chatMemberLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.chatMemberUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},gr.prototype.insertAsync=function(t,e,n){var i=new yr(this,t,e);return n?i:i.doResume(null)},gr.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},gr.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},gr.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},gr.$metadata$={kind:c,simpleName:"ChatMemberDao_ReplicateWrapper",interfaces:[ar]},Sr.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Sr.prototype=Object.create(N.prototype),Sr.prototype.constructor=Sr,Sr.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},br.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new Sr(this,t,e);return n?i:i.doResume(null)},vr.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},vr.prototype=Object.create(N.prototype),vr.prototype.constructor=vr,vr.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},br.prototype.replicateOnChange=function(t,e){var n=new vr(this,t);return e?n:n.doResume(null)},br.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},Cr.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Cr.prototype=Object.create(N.prototype),Cr.prototype.constructor=Cr,Cr.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},br.prototype.insertAsync=function(t,e,n){var i=new Cr(this,t,e);return n?i:i.doResume(null)},br.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},br.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},br.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},br.$metadata$={kind:c,simpleName:"ChatMemberDao_Repo",interfaces:[ar]},Nr.$metadata$={kind:c,simpleName:"ClazzAssignmentContentJoinDao",interfaces:[X6]},Tr.prototype.insert_11rb$=function(t){return this._insertAdapterClazzAssignmentContentJoin_.insertAndReturnId_11rb$(t)},Lr.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Lr.prototype=Object.create(N.prototype),Lr.prototype.constructor=Lr,Lr.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterClazzAssignmentContentJoin_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Tr.prototype.insertAsync=function(t,e,n){var i=new Lr(this,t,e);return n?i:i.doResume(null)},Tr.prototype.insertList_4ezy5m$=function(t){this._insertAdapterClazzAssignmentContentJoin_.insertList_4ezy5m$(t)},Tr.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE ClazzAssignmentContentJoin SET cacjContentUid = ?, cacjAssignmentUid = ?, cacjActive = ?, cacjWeight = ?, cacjMCSN = ?, cacjLCSN = ?, cacjLCB = ?, cacjLct = ? WHERE cacjUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.cacjContentUid),t.setLong_6svq3l$(2,i.cacjAssignmentUid),t.setBoolean_fzusl$(3,i.cacjActive),t.setInt_vux9f0$(4,i.cacjWeight),t.setLong_6svq3l$(5,i.cacjMCSN),t.setLong_6svq3l$(6,i.cacjLCSN),t.setInt_vux9f0$(7,i.cacjLCB),t.setLong_6svq3l$(8,i.cacjLct),t.setLong_6svq3l$(9,i.cacjUid),t.executeUpdate()}return t.getConnection().commit(),V}))},Tr.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE ClazzAssignmentContentJoin SET cacjContentUid = ?, cacjAssignmentUid = ?, cacjActive = ?, cacjWeight = ?, cacjMCSN = ?, cacjLCSN = ?, cacjLCB = ?, cacjLct = ? WHERE cacjUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.cacjContentUid),t.setLong_6svq3l$(2,e.cacjAssignmentUid),t.setBoolean_fzusl$(3,e.cacjActive),t.setInt_vux9f0$(4,e.cacjWeight),t.setLong_6svq3l$(5,e.cacjMCSN),t.setLong_6svq3l$(6,e.cacjLCSN),t.setInt_vux9f0$(7,e.cacjLCB),t.setLong_6svq3l$(8,e.cacjLct),t.setLong_6svq3l$(9,e.cacjUid),t.executeUpdate()}))},zr.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},zr.prototype=Object.create(N.prototype),zr.prototype.constructor=zr,zr.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Or.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Or.prototype=Object.create(N.prototype),Or.prototype.constructor=Or,Or.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ClazzAssignmentContentJoinReplicate(cacjPk, cacjDestination)\n | SELECT DISTINCT ClazzAssignmentContentJoin.cacjUid AS cacjUid,\n | ? AS cacjDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 8388608 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | JOIN ClazzAssignment\n | ON ClazzAssignment.caClazzUid = Clazz.clazzUid\n | JOIN ClazzAssignmentContentJoin\n | ON ClazzAssignment.caUid = ClazzAssignmentContentJoin.cacjAssignmentUid \n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1 \n | AND ClazzAssignmentContentJoin.cacjLct != COALESCE(\n | (SELECT cacjVersionId\n | FROM ClazzAssignmentContentJoinReplicate\n | WHERE cacjPk = ClazzAssignmentContentJoin.cacjUid\n | AND cacjDestination = ?), 0) \n | /*psql ON CONFLICT(cacjPk, cacjDestination) DO UPDATE\n | SET cacjPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ClazzAssignmentContentJoinReplicate(cacjPk, cacjDestination)\n | SELECT DISTINCT ClazzAssignmentContentJoin.cacjUid AS cacjUid,\n | ? AS cacjDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 8388608 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | JOIN ClazzAssignment\n | ON ClazzAssignment.caClazzUid = Clazz.clazzUid\n | JOIN ClazzAssignmentContentJoin\n | ON ClazzAssignment.caUid = ClazzAssignmentContentJoin.cacjAssignmentUid \n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1 \n | AND ClazzAssignmentContentJoin.cacjLct != COALESCE(\n | (SELECT cacjVersionId\n | FROM ClazzAssignmentContentJoinReplicate\n | WHERE cacjPk = ClazzAssignmentContentJoin.cacjUid\n | AND cacjDestination = ?), 0) \n | ON CONFLICT(cacjPk, cacjDestination) DO UPDATE\n | SET cacjPending = true\n | \n | \n |")),wr(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Tr.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new Or(this,t,e);return n?i:i.doResume(null)},Rr.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Rr.prototype=Object.create(N.prototype),Rr.prototype.constructor=Rr,Rr.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},xr.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},xr.prototype=Object.create(N.prototype),xr.prototype.constructor=xr,xr.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ClazzAssignmentContentJoinReplicate(cacjPk, cacjDestination)\n | SELECT DISTINCT ClazzAssignmentContentJoin.cacjUid AS cacjUid,\n | UserSession.usClientNodeId AS cacjDestination\n | FROM ChangeLog\n | JOIN ClazzAssignmentContentJoin\n | ON ChangeLog.chTableId = 521\n | AND ChangeLog.chEntityPk = ClazzAssignmentContentJoin.cacjUid\n | JOIN ClazzAssignment\n | ON ClazzAssignment.caUid = ClazzAssignmentContentJoin.cacjAssignmentUid\n | JOIN Clazz \n | ON Clazz.clazzUid = ClazzAssignment.caClazzUid \n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 8388608\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ClazzAssignmentContentJoin.cacjLct != COALESCE(\n | (SELECT cacjVersionId\n | FROM ClazzAssignmentContentJoinReplicate\n | WHERE cacjPk = ClazzAssignmentContentJoin.cacjUid\n | AND cacjDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(cacjPk, cacjDestination) DO UPDATE\n | SET cacjPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ClazzAssignmentContentJoinReplicate(cacjPk, cacjDestination)\n | SELECT DISTINCT ClazzAssignmentContentJoin.cacjUid AS cacjUid,\n | UserSession.usClientNodeId AS cacjDestination\n | FROM ChangeLog\n | JOIN ClazzAssignmentContentJoin\n | ON ChangeLog.chTableId = 521\n | AND ChangeLog.chEntityPk = ClazzAssignmentContentJoin.cacjUid\n | JOIN ClazzAssignment\n | ON ClazzAssignment.caUid = ClazzAssignmentContentJoin.cacjAssignmentUid\n | JOIN Clazz \n | ON Clazz.clazzUid = ClazzAssignment.caClazzUid \n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 8388608\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ClazzAssignmentContentJoin.cacjLct != COALESCE(\n | (SELECT cacjVersionId\n | FROM ClazzAssignmentContentJoinReplicate\n | WHERE cacjPk = ClazzAssignmentContentJoin.cacjUid\n | AND cacjDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(cacjPk, cacjDestination) DO UPDATE\n | SET cacjPending = true\n | \n | \n |")),Ar,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Tr.prototype.replicateOnChange=function(t,e){var n=new xr(this,t);return e?n:n.doResume(null)},Ur.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ur.prototype=Object.create(N.prototype),Ur.prototype.constructor=Ur,Ur.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$clazzAssignmentUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$clazzAssignmentUid),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$personUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Ir);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Tr.prototype.findAllContentByClazzAssignmentUidAsync_3pjtqy$=function(t,e,n){return ct(this._db,new st(S("\n |\n | SELECT ContentEntry.*, ContentEntryParentChildJoin.*, \n | Container.*, \n | COALESCE(ClazzAssignmentRollUp.cacheStudentScore,0) AS resultScore,\n | \n | COALESCE(ClazzAssignmentRollUp.cacheMaxScore,0) AS resultMax,\n | \n | COALESCE(ClazzAssignmentRollUp.cacheProgress,0) AS progress, \n | \n | COALESCE(ClazzAssignmentRollUp.cacheContentComplete,'FALSE') AS contentComplete,\n | \n | COALESCE(ClazzAssignmentRollUp.cacheSuccess,0) AS success,\n | \n | COALESCE(ClazzAssignmentRollUp.cachePenalty,0) AS penalty,\n | \n | COALESCE((CASE WHEN ClazzAssignmentRollUp.cacheContentComplete \n | THEN 1 ELSE 0 END),0) AS totalCompletedContent,\n | \n | 0 as assignmentContentWeight,\n | 1 as totalContent\n | \n | \n | FROM ClazzAssignmentContentJoin\n | LEFT JOIN ContentEntry \n | ON ContentEntry.contentEntryUid = cacjContentUid \n | \n | LEFT JOIN ContentEntryParentChildJoin \n | ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid \n | \n | LEFT JOIN ClazzAssignmentRollUp\n | ON cacheContentEntryUid = ClazzAssignmentContentJoin.cacjContentUid\n | AND cachePersonUid = ?\n | AND cacheClazzAssignmentUid = ?\n | \n | \n | LEFT JOIN Container \n | ON Container.containerUid = \n | (SELECT containerUid \n | FROM Container \n | WHERE containerContentEntryUid = ContentEntry.contentEntryUid \n | ORDER BY cntLastModified DESC LIMIT 1)\n | \n | WHERE ClazzAssignmentContentJoin.cacjAssignmentUid = ?\n | AND ClazzAssignmentContentJoin.cacjActive\n | AND NOT ContentEntry.ceInactive\n | AND (ContentEntry.publik OR ? != 0)\n | ORDER BY ContentEntry.title ASC , \n | ContentEntryParentChildJoin.childIndex, ContentEntry.contentEntryUid\n | \n ")),(i=e,o=t,function(t,e,n){var r=new Ur(i,o,t,e);return n?r:r.doResume(null)}),n);var i,o},Mr.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Mr.prototype=Object.create(N.prototype),Mr.prototype.constructor=Mr,Mr.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$clazzAssignmentUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$clazzAssignmentUid),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$personUid),this.local$_stmt.setInt_vux9f0$(5,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(6,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Pr);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jr.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},jr.prototype=Object.create(N.prototype),jr.prototype.constructor=jr,jr.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ClazzAssignmentContentJoinDao_JdbcKt._db,new st(S("\n |SELECT * FROM (\n | SELECT ContentEntry.*, ContentEntryParentChildJoin.*, \n | Container.*, \n | COALESCE(ClazzAssignmentRollUp.cacheStudentScore,0) AS resultScore,\n | \n | COALESCE(ClazzAssignmentRollUp.cacheMaxScore,0) AS resultMax,\n | \n | COALESCE(ClazzAssignmentRollUp.cacheProgress,0) AS progress, \n | \n | COALESCE(ClazzAssignmentRollUp.cacheContentComplete,'FALSE') AS contentComplete,\n | \n | COALESCE(ClazzAssignmentRollUp.cacheSuccess,0) AS success,\n | \n | COALESCE(ClazzAssignmentRollUp.cachePenalty,0) AS penalty,\n | \n | COALESCE((CASE WHEN ClazzAssignmentRollUp.cacheContentComplete \n | THEN 1 ELSE 0 END),0) AS totalCompletedContent,\n | \n | 0 as assignmentContentWeight,\n | 1 as totalContent\n | \n | \n | FROM ClazzAssignmentContentJoin\n | LEFT JOIN ContentEntry \n | ON ContentEntry.contentEntryUid = cacjContentUid \n | \n | LEFT JOIN ContentEntryParentChildJoin \n | ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid \n | \n | LEFT JOIN ClazzAssignmentRollUp\n | ON cacheContentEntryUid = ClazzAssignmentContentJoin.cacjContentUid\n | AND cachePersonUid = ?\n | AND cacheClazzAssignmentUid = ?\n | \n | \n | LEFT JOIN Container \n | ON Container.containerUid = \n | (SELECT containerUid \n | FROM Container \n | WHERE containerContentEntryUid = ContentEntry.contentEntryUid \n | ORDER BY cntLastModified DESC LIMIT 1)\n | \n | WHERE ClazzAssignmentContentJoin.cacjAssignmentUid = ?\n | AND ClazzAssignmentContentJoin.cacjActive\n | AND NOT ContentEntry.ceInactive\n | AND (ContentEntry.publik OR ? != 0)\n | ORDER BY ContentEntry.title ASC , \n | ContentEntryParentChildJoin.childIndex, ContentEntry.contentEntryUid\n | ) LIMIT ? OFFSET ?\n ")),kr(this.local$closure$personUid,this.local$closure$clazzAssignmentUid,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Dr.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$ClazzAssignmentContentJoinDao_JdbcKt._db,p(["ClazzAssignmentContentJoin","ContentEntry","ContentEntryParentChildJoin","ClazzAssignmentRollUp","Container"]),(n=this.this$ClazzAssignmentContentJoinDao_JdbcKt,i=this.closure$personUid,o=this.closure$clazzAssignmentUid,r=e,s=t,function(t,e){var a=new jr(n,i,o,r,s,t);return e?a:a.doResume(null)}));var n,i,o,r,s},qr.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},qr.prototype=Object.create(N.prototype),qr.prototype.constructor=qr,qr.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$clazzAssignmentUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$clazzAssignmentUid),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$personUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Gr);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Br.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Br.prototype=Object.create(N.prototype),Br.prototype.constructor=Br,Br.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ClazzAssignmentContentJoinDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (\n | SELECT ContentEntry.*, ContentEntryParentChildJoin.*, \n | Container.*, \n | COALESCE(ClazzAssignmentRollUp.cacheStudentScore,0) AS resultScore,\n | \n | COALESCE(ClazzAssignmentRollUp.cacheMaxScore,0) AS resultMax,\n | \n | COALESCE(ClazzAssignmentRollUp.cacheProgress,0) AS progress, \n | \n | COALESCE(ClazzAssignmentRollUp.cacheContentComplete,'FALSE') AS contentComplete,\n | \n | COALESCE(ClazzAssignmentRollUp.cacheSuccess,0) AS success,\n | \n | COALESCE(ClazzAssignmentRollUp.cachePenalty,0) AS penalty,\n | \n | COALESCE((CASE WHEN ClazzAssignmentRollUp.cacheContentComplete \n | THEN 1 ELSE 0 END),0) AS totalCompletedContent,\n | \n | 0 as assignmentContentWeight,\n | 1 as totalContent\n | \n | \n | FROM ClazzAssignmentContentJoin\n | LEFT JOIN ContentEntry \n | ON ContentEntry.contentEntryUid = cacjContentUid \n | \n | LEFT JOIN ContentEntryParentChildJoin \n | ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid \n | \n | LEFT JOIN ClazzAssignmentRollUp\n | ON cacheContentEntryUid = ClazzAssignmentContentJoin.cacjContentUid\n | AND cachePersonUid = ?\n | AND cacheClazzAssignmentUid = ?\n | \n | \n | LEFT JOIN Container \n | ON Container.containerUid = \n | (SELECT containerUid \n | FROM Container \n | WHERE containerContentEntryUid = ContentEntry.contentEntryUid \n | ORDER BY cntLastModified DESC LIMIT 1)\n | \n | WHERE ClazzAssignmentContentJoin.cacjAssignmentUid = ?\n | AND ClazzAssignmentContentJoin.cacjActive\n | AND NOT ContentEntry.ceInactive\n | AND (ContentEntry.publik OR ? != 0)\n | ORDER BY ContentEntry.title ASC , \n | ContentEntryParentChildJoin.childIndex, ContentEntry.contentEntryUid\n | ) \n ")),Fr(this.local$closure$personUid,this.local$closure$clazzAssignmentUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Dr.prototype.getLength=function(){return new ft(this.this$ClazzAssignmentContentJoinDao_JdbcKt._db,p(["ClazzAssignmentContentJoin","ContentEntry","ContentEntryParentChildJoin","ClazzAssignmentRollUp","Container"]),(t=this.this$ClazzAssignmentContentJoinDao_JdbcKt,e=this.closure$personUid,n=this.closure$clazzAssignmentUid,function(i,o){var r=new Br(t,e,n,i);return o?r:r.doResume(null)}));var t,e,n},Dr.$metadata$={kind:c,interfaces:[gt]},Tr.prototype.findAllContentByClazzAssignmentUidDF_3pjtqy$=function(t,e){return new Dr(this,e,t)},Wr.prototype.makeSql_6taknv$=function(t){return"INSERT INTO ClazzAssignmentContentJoin (cacjUid, cacjContentUid, cacjAssignmentUid, cacjActive, cacjWeight, cacjMCSN, cacjLCSN, cacjLCB, cacjLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)"},Wr.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.cacjUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.cacjUid),t.setLong_6svq3l$(2,e.cacjContentUid),t.setLong_6svq3l$(3,e.cacjAssignmentUid),t.setBoolean_fzusl$(4,e.cacjActive),t.setInt_vux9f0$(5,e.cacjWeight),t.setLong_6svq3l$(6,e.cacjMCSN),t.setLong_6svq3l$(7,e.cacjLCSN),t.setInt_vux9f0$(8,e.cacjLCB),t.setLong_6svq3l$(9,e.cacjLct)},Wr.$metadata$={kind:c,interfaces:[pt]},Tr.$metadata$={kind:c,simpleName:"ClazzAssignmentContentJoinDao_JdbcKt",interfaces:[Nr]},Vr.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Vr.prototype=Object.create(N.prototype),Vr.prototype.constructor=Vr,Vr.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hr.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new Vr(this,t,e);return n?i:i.doResume(null)},Kr.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Kr.prototype=Object.create(N.prototype),Kr.prototype.constructor=Kr,Kr.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hr.prototype.replicateOnChange=function(t,e){var n=new Kr(this,t);return e?n:n.doResume(null)},Hr.prototype.findAllContentByClazzAssignmentUidAsync_3pjtqy$=function(t,e,n){return this._dao_0.findAllContentByClazzAssignmentUidAsync_3pjtqy$(t,e,n)},Hr.prototype.findAllContentByClazzAssignmentUidDF_3pjtqy$=function(t,e){return this._dao_0.findAllContentByClazzAssignmentUidDF_3pjtqy$(t,e)},Hr.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Xr.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Xr.prototype=Object.create(N.prototype),Xr.prototype.constructor=Xr,Xr.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.cacjUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(521,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.cacjUid=e,this.state_0=3;continue;case 3:if(this.local$entity.cacjLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.cacjUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hr.prototype.insertAsync=function(t,e,n){var i=new Xr(this,t,e);return n?i:i.doResume(null)},Hr.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Hr.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Hr.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Hr.$metadata$={kind:c,simpleName:"ClazzAssignmentContentJoinDao_ReplicateWrapper",interfaces:[Nr]},Yr.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Yr.prototype=Object.create(N.prototype),Yr.prototype.constructor=Yr,Yr.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Jr.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new Yr(this,t,e);return n?i:i.doResume(null)},Qr.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Qr.prototype=Object.create(N.prototype),Qr.prototype.constructor=Qr,Qr.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Jr.prototype.replicateOnChange=function(t,e){var n=new Qr(this,t);return e?n:n.doResume(null)},Zr.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Zr.prototype=Object.create(N.prototype),Zr.prototype.constructor=Zr,Zr.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findAllContentByClazzAssignmentUidAsync_3pjtqy$(this.local$clazzAssignmentUid,this.local$personUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Jr.prototype.findAllContentByClazzAssignmentUidAsync_3pjtqy$=function(t,e,n,i){var o=new Zr(this,t,e,n);return i?o:o.doResume(null)},Jr.prototype.findAllContentByClazzAssignmentUidDF_3pjtqy$=function(t,e){return this._dao.findAllContentByClazzAssignmentUidDF_3pjtqy$(t,e)},Jr.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},ts.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ts.prototype=Object.create(N.prototype),ts.prototype.constructor=ts,ts.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Jr.prototype.insertAsync=function(t,e,n){var i=new ts(this,t,e);return n?i:i.doResume(null)},Jr.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},Jr.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},Jr.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},Jr.$metadata$={kind:c,simpleName:"ClazzAssignmentContentJoinDao_Repo",interfaces:[Nr]},es.$metadata$={kind:c,simpleName:"ClazzAssignmentDao",interfaces:[t4,X6]},ns.prototype.insert_11rb$=function(t){return this._insertAdapterClazzAssignment_.insertAndReturnId_11rb$(t)},is.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},is.prototype=Object.create(N.prototype),is.prototype.constructor=is,is.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterClazzAssignment_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ns.prototype.insertAsync=function(t,e,n){var i=new is(this,t,e);return n?i:i.doResume(null)},ns.prototype.insertList_4ezy5m$=function(t){this._insertAdapterClazzAssignment_.insertList_4ezy5m$(t)},os.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},os.prototype=Object.create(N.prototype),os.prototype.constructor=os,os.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterClazzAssignment_.insertListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ns.prototype.insertListAsync_4ezy5m$=function(t,e,n){var i=new os(this,t,e);return n?i:i.doResume(null)},rs.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},rs.prototype=Object.create(N.prototype),rs.prototype.constructor=rs,rs.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$clazzAssignment.caTitle),this.local$_stmt.setString_vqvrqt$(2,this.local$closure$clazzAssignment.caDescription),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$clazzAssignment.caGroupUid),this.local$_stmt.setBoolean_fzusl$(4,this.local$closure$clazzAssignment.caActive),this.local$_stmt.setBoolean_fzusl$(5,this.local$closure$clazzAssignment.caClassCommentEnabled),this.local$_stmt.setBoolean_fzusl$(6,this.local$closure$clazzAssignment.caPrivateCommentsEnabled),this.local$_stmt.setInt_vux9f0$(7,this.local$closure$clazzAssignment.caCompletionCriteria),this.local$_stmt.setBoolean_fzusl$(8,this.local$closure$clazzAssignment.caRequireFileSubmission),this.local$_stmt.setInt_vux9f0$(9,this.local$closure$clazzAssignment.caFileType),this.local$_stmt.setInt_vux9f0$(10,this.local$closure$clazzAssignment.caSizeLimit),this.local$_stmt.setInt_vux9f0$(11,this.local$closure$clazzAssignment.caNumberOfFiles),this.local$_stmt.setInt_vux9f0$(12,this.local$closure$clazzAssignment.caSubmissionPolicy),this.local$_stmt.setInt_vux9f0$(13,this.local$closure$clazzAssignment.caMarkingType),this.local$_stmt.setBoolean_fzusl$(14,this.local$closure$clazzAssignment.caRequireTextSubmission),this.local$_stmt.setInt_vux9f0$(15,this.local$closure$clazzAssignment.caTextLimitType),this.local$_stmt.setInt_vux9f0$(16,this.local$closure$clazzAssignment.caTextLimit),this.local$_stmt.setLong_6svq3l$(17,this.local$closure$clazzAssignment.caXObjectUid),this.local$_stmt.setLong_6svq3l$(18,this.local$closure$clazzAssignment.caClazzUid),this.local$_stmt.setLong_6svq3l$(19,this.local$closure$clazzAssignment.caLocalChangeSeqNum),this.local$_stmt.setLong_6svq3l$(20,this.local$closure$clazzAssignment.caMasterChangeSeqNum),this.local$_stmt.setInt_vux9f0$(21,this.local$closure$clazzAssignment.caLastChangedBy),this.local$_stmt.setLong_6svq3l$(22,this.local$closure$clazzAssignment.caLct),this.local$_stmt.setLong_6svq3l$(23,this.local$closure$clazzAssignment.caUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},as.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},as.prototype=Object.create(N.prototype),as.prototype.constructor=as,as.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE ClazzAssignment SET caTitle = ?, caDescription = ?, caGroupUid = ?, caActive = ?, caClassCommentEnabled = ?, caPrivateCommentsEnabled = ?, caCompletionCriteria = ?, caRequireFileSubmission = ?, caFileType = ?, caSizeLimit = ?, caNumberOfFiles = ?, caSubmissionPolicy = ?, caMarkingType = ?, caRequireTextSubmission = ?, caTextLimitType = ?, caTextLimit = ?, caXObjectUid = ?, caClazzUid = ?, caLocalChangeSeqNum = ?, caMasterChangeSeqNum = ?, caLastChangedBy = ?, caLct = ? WHERE caUid = ?",ss(this.local$clazzAssignment),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ns.prototype.updateAsync_etrmwv$=function(t,e,n){var i=new as(this,t,e);return n?i:i.doResume(null)},ns.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE ClazzAssignment SET caTitle = ?, caDescription = ?, caGroupUid = ?, caActive = ?, caClassCommentEnabled = ?, caPrivateCommentsEnabled = ?, caCompletionCriteria = ?, caRequireFileSubmission = ?, caFileType = ?, caSizeLimit = ?, caNumberOfFiles = ?, caSubmissionPolicy = ?, caMarkingType = ?, caRequireTextSubmission = ?, caTextLimitType = ?, caTextLimit = ?, caXObjectUid = ?, caClazzUid = ?, caLocalChangeSeqNum = ?, caMasterChangeSeqNum = ?, caLastChangedBy = ?, caLct = ? WHERE caUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setString_vqvrqt$(1,i.caTitle),t.setString_vqvrqt$(2,i.caDescription),t.setLong_6svq3l$(3,i.caGroupUid),t.setBoolean_fzusl$(4,i.caActive),t.setBoolean_fzusl$(5,i.caClassCommentEnabled),t.setBoolean_fzusl$(6,i.caPrivateCommentsEnabled),t.setInt_vux9f0$(7,i.caCompletionCriteria),t.setBoolean_fzusl$(8,i.caRequireFileSubmission),t.setInt_vux9f0$(9,i.caFileType),t.setInt_vux9f0$(10,i.caSizeLimit),t.setInt_vux9f0$(11,i.caNumberOfFiles),t.setInt_vux9f0$(12,i.caSubmissionPolicy),t.setInt_vux9f0$(13,i.caMarkingType),t.setBoolean_fzusl$(14,i.caRequireTextSubmission),t.setInt_vux9f0$(15,i.caTextLimitType),t.setInt_vux9f0$(16,i.caTextLimit),t.setLong_6svq3l$(17,i.caXObjectUid),t.setLong_6svq3l$(18,i.caClazzUid),t.setLong_6svq3l$(19,i.caLocalChangeSeqNum),t.setLong_6svq3l$(20,i.caMasterChangeSeqNum),t.setInt_vux9f0$(21,i.caLastChangedBy),t.setLong_6svq3l$(22,i.caLct),t.setLong_6svq3l$(23,i.caUid),t.executeUpdate()}return t.getConnection().commit(),V}))},ns.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE ClazzAssignment SET caTitle = ?, caDescription = ?, caGroupUid = ?, caActive = ?, caClassCommentEnabled = ?, caPrivateCommentsEnabled = ?, caCompletionCriteria = ?, caRequireFileSubmission = ?, caFileType = ?, caSizeLimit = ?, caNumberOfFiles = ?, caSubmissionPolicy = ?, caMarkingType = ?, caRequireTextSubmission = ?, caTextLimitType = ?, caTextLimit = ?, caXObjectUid = ?, caClazzUid = ?, caLocalChangeSeqNum = ?, caMasterChangeSeqNum = ?, caLastChangedBy = ?, caLct = ? WHERE caUid = ?",(e=t,function(t){return t.setString_vqvrqt$(1,e.caTitle),t.setString_vqvrqt$(2,e.caDescription),t.setLong_6svq3l$(3,e.caGroupUid),t.setBoolean_fzusl$(4,e.caActive),t.setBoolean_fzusl$(5,e.caClassCommentEnabled),t.setBoolean_fzusl$(6,e.caPrivateCommentsEnabled),t.setInt_vux9f0$(7,e.caCompletionCriteria),t.setBoolean_fzusl$(8,e.caRequireFileSubmission),t.setInt_vux9f0$(9,e.caFileType),t.setInt_vux9f0$(10,e.caSizeLimit),t.setInt_vux9f0$(11,e.caNumberOfFiles),t.setInt_vux9f0$(12,e.caSubmissionPolicy),t.setInt_vux9f0$(13,e.caMarkingType),t.setBoolean_fzusl$(14,e.caRequireTextSubmission),t.setInt_vux9f0$(15,e.caTextLimitType),t.setInt_vux9f0$(16,e.caTextLimit),t.setLong_6svq3l$(17,e.caXObjectUid),t.setLong_6svq3l$(18,e.caClazzUid),t.setLong_6svq3l$(19,e.caLocalChangeSeqNum),t.setLong_6svq3l$(20,e.caMasterChangeSeqNum),t.setInt_vux9f0$(21,e.caLastChangedBy),t.setLong_6svq3l$(22,e.caLct),t.setLong_6svq3l$(23,e.caUid),t.executeUpdate()}))},cs.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},cs.prototype=Object.create(N.prototype),cs.prototype.constructor=cs,cs.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_stmt.getConnection().setAutoCommit_6taknv$(!1),this.local$tmp$=this.local$closure$entityList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$tmp$.hasNext()){this.state_0=4;continue}var t=this.local$tmp$.next();if(this.local$_stmt.setString_vqvrqt$(1,t.caTitle),this.local$_stmt.setString_vqvrqt$(2,t.caDescription),this.local$_stmt.setLong_6svq3l$(3,t.caGroupUid),this.local$_stmt.setBoolean_fzusl$(4,t.caActive),this.local$_stmt.setBoolean_fzusl$(5,t.caClassCommentEnabled),this.local$_stmt.setBoolean_fzusl$(6,t.caPrivateCommentsEnabled),this.local$_stmt.setInt_vux9f0$(7,t.caCompletionCriteria),this.local$_stmt.setBoolean_fzusl$(8,t.caRequireFileSubmission),this.local$_stmt.setInt_vux9f0$(9,t.caFileType),this.local$_stmt.setInt_vux9f0$(10,t.caSizeLimit),this.local$_stmt.setInt_vux9f0$(11,t.caNumberOfFiles),this.local$_stmt.setInt_vux9f0$(12,t.caSubmissionPolicy),this.local$_stmt.setInt_vux9f0$(13,t.caMarkingType),this.local$_stmt.setBoolean_fzusl$(14,t.caRequireTextSubmission),this.local$_stmt.setInt_vux9f0$(15,t.caTextLimitType),this.local$_stmt.setInt_vux9f0$(16,t.caTextLimit),this.local$_stmt.setLong_6svq3l$(17,t.caXObjectUid),this.local$_stmt.setLong_6svq3l$(18,t.caClazzUid),this.local$_stmt.setLong_6svq3l$(19,t.caLocalChangeSeqNum),this.local$_stmt.setLong_6svq3l$(20,t.caMasterChangeSeqNum),this.local$_stmt.setInt_vux9f0$(21,t.caLastChangedBy),this.local$_stmt.setLong_6svq3l$(22,t.caLct),this.local$_stmt.setLong_6svq3l$(23,t.caUid),this.state_0=3,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 3:this.state_0=2;continue;case 4:return this.local$_stmt.getConnection().commit(),V;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},us.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},us.prototype=Object.create(N.prototype),us.prototype.constructor=us,us.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE ClazzAssignment SET caTitle = ?, caDescription = ?, caGroupUid = ?, caActive = ?, caClassCommentEnabled = ?, caPrivateCommentsEnabled = ?, caCompletionCriteria = ?, caRequireFileSubmission = ?, caFileType = ?, caSizeLimit = ?, caNumberOfFiles = ?, caSubmissionPolicy = ?, caMarkingType = ?, caRequireTextSubmission = ?, caTextLimitType = ?, caTextLimit = ?, caXObjectUid = ?, caClazzUid = ?, caLocalChangeSeqNum = ?, caMasterChangeSeqNum = ?, caLastChangedBy = ?, caLct = ? WHERE caUid = ?",ls(this.local$entityList),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ns.prototype.updateListAsync_4ezy5m$=function(t,e,n){var i=new us(this,t,e);return n?i:i.doResume(null)},hs.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},hs.prototype=Object.create(N.prototype),hs.prototype.constructor=hs,hs.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ps.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ps.prototype=Object.create(N.prototype),ps.prototype.constructor=ps,ps.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ClazzAssignmentReplicate(caPk, caDestination)\n | SELECT DISTINCT ClazzAssignment.caUid AS caUid,\n | ? AS caDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 8388608 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | JOIN ClazzAssignment\n | ON ClazzAssignment.caClazzUid = Clazz.clazzUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND ClazzAssignment.caLct != COALESCE(\n | (SELECT caVersionId\n | FROM ClazzAssignmentReplicate\n | WHERE caPk = ClazzAssignment.caUid\n | AND caDestination = ?), 0) \n | /*psql ON CONFLICT(caPk, caDestination) DO UPDATE\n | SET caPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ClazzAssignmentReplicate(caPk, caDestination)\n | SELECT DISTINCT ClazzAssignment.caUid AS caUid,\n | ? AS caDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 8388608 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | JOIN ClazzAssignment\n | ON ClazzAssignment.caClazzUid = Clazz.clazzUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND ClazzAssignment.caLct != COALESCE(\n | (SELECT caVersionId\n | FROM ClazzAssignmentReplicate\n | WHERE caPk = ClazzAssignment.caUid\n | AND caDestination = ?), 0) \n | ON CONFLICT(caPk, caDestination) DO UPDATE\n | SET caPending = true\n | \n | \n |")),ds(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ns.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new ps(this,t,e);return n?i:i.doResume(null)},_s.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_s.prototype=Object.create(N.prototype),_s.prototype.constructor=_s,_s.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},fs.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fs.prototype=Object.create(N.prototype),fs.prototype.constructor=fs,fs.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ClazzAssignmentReplicate(caPk, caDestination)\n | SELECT DISTINCT ClazzAssignment.caUid AS caUid,\n | UserSession.usClientNodeId AS caDestination\n | FROM ChangeLog\n | JOIN ClazzAssignment\n | ON ChangeLog.chTableId = 520\n | AND ChangeLog.chEntityPk = ClazzAssignment.caUid\n | JOIN Clazz \n | ON Clazz.clazzUid = ClazzAssignment.caClazzUid \n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 8388608\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ClazzAssignment.caLct != COALESCE(\n | (SELECT caVersionId\n | FROM ClazzAssignmentReplicate\n | WHERE caPk = ClazzAssignment.caUid\n | AND caDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(caPk, caDestination) DO UPDATE\n | SET caPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ClazzAssignmentReplicate(caPk, caDestination)\n | SELECT DISTINCT ClazzAssignment.caUid AS caUid,\n | UserSession.usClientNodeId AS caDestination\n | FROM ChangeLog\n | JOIN ClazzAssignment\n | ON ChangeLog.chTableId = 520\n | AND ChangeLog.chEntityPk = ClazzAssignment.caUid\n | JOIN Clazz \n | ON Clazz.clazzUid = ClazzAssignment.caClazzUid \n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 8388608\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ClazzAssignment.caLct != COALESCE(\n | (SELECT caVersionId\n | FROM ClazzAssignmentReplicate\n | WHERE caPk = ClazzAssignment.caUid\n | AND caDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(caPk, caDestination) DO UPDATE\n | SET caPending = true\n | \n | \n |")),ms,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ns.prototype.replicateOnChange=function(t,e){var n=new fs(this,t);return e?n:n.doResume(null)},$s.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},$s.prototype=Object.create(N.prototype),$s.prototype.constructor=$s,$s.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$clazzUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,gs);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ns.prototype.getAllAssignmentsByClazzUidAsync_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT * \n | FROM ClazzAssignment\n | WHERE ClazzAssignment.caClazzUid = ?\n | \n ")),(n=t,function(t,e,i){var o=new $s(n,t,e);return i?o:o.doResume(null)}),e);var n},Es.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Es.prototype=Object.create(N.prototype),Es.prototype.constructor=Es,Es.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setBoolean_fzusl$(1,this.local$closure$active),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$changeTime),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$cbUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},bs.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},bs.prototype=Object.create(N.prototype),bs.prototype.constructor=bs,bs.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | UPDATE ClazzAssignment \n | SET caActive = ?, \n | caLct = ?\n | WHERE caUid = ?\n ")),ys(this.local$active,this.local$changeTime,this.local$cbUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ns.prototype.updateActiveByUid_zaz62j$=function(t,e,n,i,o){var r=new bs(this,t,e,n,i);return o?r:r.doResume(null)},vs.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},vs.prototype=Object.create(N.prototype),vs.prototype.constructor=vs,vs.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$assignmentUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$clazzUid),this.local$_stmt.setString_vqvrqt$(3,this.local$closure$group),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$assignmentUid),this.local$_stmt.setLong_6svq3l$(5,this.local$closure$assignmentUid),this.local$_stmt.setLong_6svq3l$(6,this.local$closure$assignmentUid),this.local$_stmt.setLong_6svq3l$(7,this.local$closure$clazzUid),this.local$_stmt.setLong_6svq3l$(8,this.local$closure$assignmentUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Ss);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ns.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ns.prototype=Object.create(N.prototype),Ns.prototype.constructor=Ns,Ns.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ClazzAssignmentDao_JdbcKt._db,new st(S("\n |\n | \n | WITH SubmitterList (submitterId, name)\n | AS (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId, \n | Person.firstNames || ' ' || Person.lastName AS name\n | FROM ClazzEnrolment\n | \n | JOIN Person \n | ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n | \n | JOIN ClazzAssignment\n | ON ClazzAssignment.caUid = ?\n |\n | JOIN CourseBlock\n | ON CourseBlock.cbEntityUid = ClazzAssignment.caUid\n | AND CourseBlock.cbType = 103\n | \n | WHERE ClazzAssignment.caGroupUid = 0\n | AND clazzEnrolmentClazzUid = ?\n | AND clazzEnrolmentActive\n | AND clazzEnrolmentRole = 1000\n | AND CourseBlock.cbGracePeriodDate <= ClazzEnrolment.clazzEnrolmentDateLeft\n | AND ClazzEnrolment.clazzEnrolmentDateJoined <= CourseBlock.cbGracePeriodDate\n | GROUP BY submitterId, name\n | UNION \n | SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n | ? || ' ' || CourseGroupMember.cgmGroupNumber AS name \n | FROM CourseGroupMember\n | JOIN ClazzAssignment\n | ON ClazzAssignment.caUid = ?\n | WHERE CourseGroupMember.cgmSetUid = ClazzAssignment.caGroupUid\n | AND ClazzAssignment.caGroupUid != 0\n | AND CourseGroupMember.cgmGroupNumber != 0\n | GROUP BY submitterId, name\n | )\n | \n | \n | SELECT (SELECT COUNT(*) FROM SubmitterList) AS totalStudents,\n | \n | 0 as notSubmittedStudents,\n | \n | (SELECT COUNT(DISTINCT CourseAssignmentSubmission.casSubmitterUid) \n | FROM CourseAssignmentSubmission\n | LEFT JOIN CourseAssignmentMark\n | ON CourseAssignmentSubmission.casSubmitterUid = CourseAssignmentMark.camSubmitterUid\n | AND CourseAssignmentMark.camAssignmentUid = CourseAssignmentSubmission.casAssignmentUid\n | WHERE CourseAssignmentSubmission.casAssignmentUid = ?\n | AND CourseAssignmentMark.camUid IS NULL\n | AND CourseAssignmentSubmission.casSubmitterUid IN (SELECT submitterId \n | FROM SubmitterList))\n | AS submittedStudents,\n | \n | \n | (SELECT COUNT(DISTINCT CourseAssignmentMark.camSubmitterUid) \n | FROM CourseAssignmentMark\n | \n | JOIN CourseAssignmentSubmission\n | ON CourseAssignmentSubmission.casSubmitterUid = CourseAssignmentMark.camSubmitterUid\n | AND CourseAssignmentSubmission.casAssignmentUid = CourseAssignmentMark.camAssignmentUid\n | \n | WHERE CourseAssignmentMark.camAssignmentUid = ?\n | AND CourseAssignmentMark.camSubmitterUid IN (SELECT submitterId \n | FROM SubmitterList))\n | AS markedStudents, \n | \n | 'TRUE' AS hasMetricsPermission\n | \n | FROM ClazzAssignment\n | WHERE caActive\n | AND caClazzUid = ? \n | AND caUid = ? \n | \n ")),Cs(this.local$closure$assignmentUid,this.local$closure$clazzUid,this.local$closure$group),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ns.prototype.getProgressSummaryForAssignment_jl0yiw$=function(t,e,n){return new ft(this._db,p(["ClazzEnrolment","Person","ClazzAssignment","CourseBlock","CourseGroupMember","CourseAssignmentSubmission","CourseAssignmentMark"]),(i=this,o=t,r=e,s=n,function(t,e){var n=new Ns(i,o,r,s,t);return e?n:n.doResume(null)}));var i,o,r,s},zs.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},zs.prototype=Object.create(N.prototype),zs.prototype.constructor=zs,zs.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$assignmentUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$clazzUid),this.local$_stmt.setString_vqvrqt$(3,this.local$closure$group),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$assignmentUid),this.local$_stmt.setLong_6svq3l$(5,this.local$closure$assignmentUid),this.local$_stmt.setLong_6svq3l$(6,this.local$closure$assignmentUid),this.local$_stmt.setLong_6svq3l$(7,this.local$closure$assignmentUid),this.local$_stmt.setLong_6svq3l$(8,this.local$closure$assignmentUid),this.local$_stmt.setString_vqvrqt$(9,this.local$closure$searchText),this.local$_stmt.setInt_vux9f0$(10,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(11,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Ls);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Os.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Os.prototype=Object.create(N.prototype),Os.prototype.constructor=Os,Os.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ClazzAssignmentDao_JdbcKt._db,new st(S("\n |SELECT * FROM (\n | \n | WITH SubmitterList (submitterId, name)\n | AS (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId, \n | Person.firstNames || ' ' || Person.lastName AS name\n | FROM ClazzEnrolment\n | \n | JOIN Person \n | ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n | \n | JOIN ClazzAssignment\n | ON ClazzAssignment.caUid = ?\n |\n | JOIN CourseBlock\n | ON CourseBlock.cbEntityUid = ClazzAssignment.caUid\n | AND CourseBlock.cbType = 103\n | \n | WHERE ClazzAssignment.caGroupUid = 0\n | AND clazzEnrolmentClazzUid = ?\n | AND clazzEnrolmentActive\n | AND clazzEnrolmentRole = 1000\n | AND CourseBlock.cbGracePeriodDate <= ClazzEnrolment.clazzEnrolmentDateLeft\n | AND ClazzEnrolment.clazzEnrolmentDateJoined <= CourseBlock.cbGracePeriodDate\n | GROUP BY submitterId, name\n | UNION \n | SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n | ? || ' ' || CourseGroupMember.cgmGroupNumber AS name \n | FROM CourseGroupMember\n | JOIN ClazzAssignment\n | ON ClazzAssignment.caUid = ?\n | WHERE CourseGroupMember.cgmSetUid = ClazzAssignment.caGroupUid\n | AND ClazzAssignment.caGroupUid != 0\n | AND CourseGroupMember.cgmGroupNumber != 0\n | GROUP BY submitterId, name\n | )\n | \n | \n | SELECT submitterId AS submitterUid,\n | name, \n | \n | COALESCE((CASE WHEN CourseAssignmentMark.camUid IS NOT NULL \n | THEN 2 \n | WHEN CourseAssignmentSubmission.casUid IS NOT NULL \n | THEN 1 \n | ELSE 0 END), \n | 0) AS fileSubmissionStatus,\n | \n | (CASE WHEN ClazzAssignment.caGroupUid = 0 \n | THEN 'TRUE' \n | ELSE 'FALSE' END) AS isGroupAssignment,\n | \n | cm.commentsText AS latestPrivateComment \n |\n | FROM SubmitterList\n | JOIN ClazzAssignment\n | ON ClazzAssignment.caUid = ?\n | \n | LEFT JOIN CourseAssignmentMark\n | ON CourseAssignmentMark.camUid = (SELECT camUid\n | FROM CourseAssignmentMark\n | WHERE camAssignmentUid = ?\n | AND camSubmitterUid = SubmitterList.submitterId\n | ORDER BY camLct DESC \n | LIMIT 1)\n | \n | LEFT JOIN CourseAssignmentSubmission\n | ON CourseAssignmentSubmission.casUid = (SELECT casUid\n | FROM CourseAssignmentSubmission\n | WHERE casAssignmentUid = ?\n | AND casSubmitterUid = SubmitterList.submitterId\n | ORDER BY casTimestamp DESC \n | LIMIT 1)\n | LEFT JOIN Comments AS cm \n | ON cm.commentsUid = (\n | SELECT Comments.commentsUid \n | FROM Comments \n | WHERE Comments.commentsEntityType = 520\n | AND commentsEntityUid = ?\n | AND NOT commentsInActive\n | AND NOT commentsPublic\n | AND (CASE WHEN ClazzAssignment.caGroupUid = 0\n | THEN commentsPersonUid = SubmitterList.submitterId\n | ELSE commentSubmitterUid = SubmitterList.submitterId END)\n | ORDER BY commentsDateTimeAdded DESC LIMIT 1) \n | \n | WHERE name LIKE ?\n | ORDER BY name \n | ) LIMIT ? OFFSET ?\n ")),ws(this.local$closure$assignmentUid,this.local$closure$clazzUid,this.local$closure$group,this.local$closure$searchText,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ts.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$ClazzAssignmentDao_JdbcKt._db,p(["ClazzEnrolment","Person","ClazzAssignment","CourseBlock","CourseGroupMember","CourseAssignmentMark","CourseAssignmentSubmission","Comments"]),(n=this.this$ClazzAssignmentDao_JdbcKt,i=this.closure$assignmentUid,o=this.closure$clazzUid,r=this.closure$group,s=this.closure$searchText,a=e,c=t,function(t,e){var l=new Os(n,i,o,r,s,a,c,t);return e?l:l.doResume(null)}));var n,i,o,r,s,a,c},As.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},As.prototype=Object.create(N.prototype),As.prototype.constructor=As,As.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$assignmentUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$clazzUid),this.local$_stmt.setString_vqvrqt$(3,this.local$closure$group),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$assignmentUid),this.local$_stmt.setLong_6svq3l$(5,this.local$closure$assignmentUid),this.local$_stmt.setLong_6svq3l$(6,this.local$closure$assignmentUid),this.local$_stmt.setLong_6svq3l$(7,this.local$closure$assignmentUid),this.local$_stmt.setLong_6svq3l$(8,this.local$closure$assignmentUid),this.local$_stmt.setString_vqvrqt$(9,this.local$closure$searchText),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Rs);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Is.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Is.prototype=Object.create(N.prototype),Is.prototype.constructor=Is,Is.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ClazzAssignmentDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (\n | \n | WITH SubmitterList (submitterId, name)\n | AS (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId, \n | Person.firstNames || ' ' || Person.lastName AS name\n | FROM ClazzEnrolment\n | \n | JOIN Person \n | ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n | \n | JOIN ClazzAssignment\n | ON ClazzAssignment.caUid = ?\n |\n | JOIN CourseBlock\n | ON CourseBlock.cbEntityUid = ClazzAssignment.caUid\n | AND CourseBlock.cbType = 103\n | \n | WHERE ClazzAssignment.caGroupUid = 0\n | AND clazzEnrolmentClazzUid = ?\n | AND clazzEnrolmentActive\n | AND clazzEnrolmentRole = 1000\n | AND CourseBlock.cbGracePeriodDate <= ClazzEnrolment.clazzEnrolmentDateLeft\n | AND ClazzEnrolment.clazzEnrolmentDateJoined <= CourseBlock.cbGracePeriodDate\n | GROUP BY submitterId, name\n | UNION \n | SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n | ? || ' ' || CourseGroupMember.cgmGroupNumber AS name \n | FROM CourseGroupMember\n | JOIN ClazzAssignment\n | ON ClazzAssignment.caUid = ?\n | WHERE CourseGroupMember.cgmSetUid = ClazzAssignment.caGroupUid\n | AND ClazzAssignment.caGroupUid != 0\n | AND CourseGroupMember.cgmGroupNumber != 0\n | GROUP BY submitterId, name\n | )\n | \n | \n | SELECT submitterId AS submitterUid,\n | name, \n | \n | COALESCE((CASE WHEN CourseAssignmentMark.camUid IS NOT NULL \n | THEN 2 \n | WHEN CourseAssignmentSubmission.casUid IS NOT NULL \n | THEN 1 \n | ELSE 0 END), \n | 0) AS fileSubmissionStatus,\n | \n | (CASE WHEN ClazzAssignment.caGroupUid = 0 \n | THEN 'TRUE' \n | ELSE 'FALSE' END) AS isGroupAssignment,\n | \n | cm.commentsText AS latestPrivateComment \n |\n | FROM SubmitterList\n | JOIN ClazzAssignment\n | ON ClazzAssignment.caUid = ?\n | \n | LEFT JOIN CourseAssignmentMark\n | ON CourseAssignmentMark.camUid = (SELECT camUid\n | FROM CourseAssignmentMark\n | WHERE camAssignmentUid = ?\n | AND camSubmitterUid = SubmitterList.submitterId\n | ORDER BY camLct DESC \n | LIMIT 1)\n | \n | LEFT JOIN CourseAssignmentSubmission\n | ON CourseAssignmentSubmission.casUid = (SELECT casUid\n | FROM CourseAssignmentSubmission\n | WHERE casAssignmentUid = ?\n | AND casSubmitterUid = SubmitterList.submitterId\n | ORDER BY casTimestamp DESC \n | LIMIT 1)\n | LEFT JOIN Comments AS cm \n | ON cm.commentsUid = (\n | SELECT Comments.commentsUid \n | FROM Comments \n | WHERE Comments.commentsEntityType = 520\n | AND commentsEntityUid = ?\n | AND NOT commentsInActive\n | AND NOT commentsPublic\n | AND (CASE WHEN ClazzAssignment.caGroupUid = 0\n | THEN commentsPersonUid = SubmitterList.submitterId\n | ELSE commentSubmitterUid = SubmitterList.submitterId END)\n | ORDER BY commentsDateTimeAdded DESC LIMIT 1) \n | \n | WHERE name LIKE ?\n | ORDER BY name \n | ) \n ")),xs(this.local$closure$assignmentUid,this.local$closure$clazzUid,this.local$closure$group,this.local$closure$searchText),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ts.prototype.getLength=function(){return new ft(this.this$ClazzAssignmentDao_JdbcKt._db,p(["ClazzEnrolment","Person","ClazzAssignment","CourseBlock","CourseGroupMember","CourseAssignmentMark","CourseAssignmentSubmission","Comments"]),(t=this.this$ClazzAssignmentDao_JdbcKt,e=this.closure$assignmentUid,n=this.closure$clazzUid,i=this.closure$group,o=this.closure$searchText,function(r,s){var a=new Is(t,e,n,i,o,r);return s?a:a.doResume(null)}));var t,e,n,i,o},Ts.$metadata$={kind:c,interfaces:[gt]},ns.prototype.getSubmitterListForAssignment_gi085m$=function(t,e,n,i){return new Ts(this,t,e,n,i)},Ds.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ds.prototype=Object.create(N.prototype),Ds.prototype.constructor=Ds,Ds.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$assignmentUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Us);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ns.prototype.getSubmitterUid_3pjtqy$=function(t,e,n){return ct(this._db,new st(S("\n |\n | SELECT (CASE WHEN ClazzAssignment.caGroupUid = 0 \n | THEN ? \n | WHEN CourseGroupMember.cgmUid IS NULL \n | THEN 0 \n | ELSE CourseGroupMember.cgmGroupNumber END) as submitterUid\n | FROM ClazzAssignment\n | LEFT JOIN CourseGroupMember\n | ON cgmSetUid = ClazzAssignment.caGroupUid\n | AND cgmPersonUid = ?\n | WHERE caUid = ?\n | \n ")),(i=e,o=t,function(t,e,n){var r=new Ds(i,o,t,e);return n?r:r.doResume(null)}),n);var i,o},Ms.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ms.prototype=Object.create(N.prototype),Ms.prototype.constructor=Ms,Ms.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Ps);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ns.prototype.findByUidAsync_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT * \n | FROM ClazzAssignment \n | WHERE caUid = ?\n | \n ")),(n=t,function(t,e,i){var o=new Ms(n,t,e);return i?o:o.doResume(null)}),e);var n},js.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},js.prototype=Object.create(N.prototype),js.prototype.constructor=js,js.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,ks);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ns.prototype.getGroupUidFromAssignment_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT COALESCE((\n | SELECT caGroupUid\n | FROM ClazzAssignment\n | WHERE caUid = ?),-1)\n | \n ")),(n=t,function(t,e,i){var o=new js(n,t,e);return i?o:o.doResume(null)}),e);var n},qs.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},qs.prototype=Object.create(N.prototype),qs.prototype.constructor=qs,qs.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Gs);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ns.prototype.findByUidWithBlockAsync_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT * \n | FROM ClazzAssignment\n | LEFT JOIN CourseBlock\n | ON CourseBlock.cbEntityUid = ClazzAssignment.caUid\n | AND CourseBlock.cbType = 103\n | WHERE caUid = ?\n | \n ")),(n=t,function(t,e,i){var o=new qs(n,t,e);return i?o:o.doResume(null)}),e);var n},ns.prototype.findClazzAssignment=function(){return ht(this._db,new st(S("\n |\n | SELECT * \n | FROM ClazzAssignment LIMIT 1\n | \n ")),Bs)},Hs.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Hs.prototype=Object.create(N.prototype),Hs.prototype.constructor=Hs,Hs.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Ws);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ks.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ks.prototype=Object.create(N.prototype),Ks.prototype.constructor=Ks,Ks.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ClazzAssignmentDao_JdbcKt._db,new st(S("\n |SELECT * \n | FROM ClazzAssignment \n | WHERE caUid = ?\n ")),Vs(this.local$closure$uid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ns.prototype.findByUidLive_s8cxhz$=function(t){return new ft(this._db,Et("ClazzAssignment"),(e=this,n=t,function(t,i){var o=new Ks(e,n,t);return i?o:o.doResume(null)}));var e,n},Xs.prototype.makeSql_6taknv$=function(t){return"INSERT INTO ClazzAssignment (caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caCompletionCriteria, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},Xs.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.caUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.caUid),t.setString_vqvrqt$(2,e.caTitle),t.setString_vqvrqt$(3,e.caDescription),t.setLong_6svq3l$(4,e.caGroupUid),t.setBoolean_fzusl$(5,e.caActive),t.setBoolean_fzusl$(6,e.caClassCommentEnabled),t.setBoolean_fzusl$(7,e.caPrivateCommentsEnabled),t.setInt_vux9f0$(8,e.caCompletionCriteria),t.setBoolean_fzusl$(9,e.caRequireFileSubmission),t.setInt_vux9f0$(10,e.caFileType),t.setInt_vux9f0$(11,e.caSizeLimit),t.setInt_vux9f0$(12,e.caNumberOfFiles),t.setInt_vux9f0$(13,e.caSubmissionPolicy),t.setInt_vux9f0$(14,e.caMarkingType),t.setBoolean_fzusl$(15,e.caRequireTextSubmission),t.setInt_vux9f0$(16,e.caTextLimitType),t.setInt_vux9f0$(17,e.caTextLimit),t.setLong_6svq3l$(18,e.caXObjectUid),t.setLong_6svq3l$(19,e.caClazzUid),t.setLong_6svq3l$(20,e.caLocalChangeSeqNum),t.setLong_6svq3l$(21,e.caMasterChangeSeqNum),t.setInt_vux9f0$(22,e.caLastChangedBy),t.setLong_6svq3l$(23,e.caLct)},Xs.$metadata$={kind:c,interfaces:[pt]},ns.$metadata$={kind:c,simpleName:"ClazzAssignmentDao_JdbcKt",interfaces:[es]},Ys.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ys.prototype=Object.create(N.prototype),Ys.prototype.constructor=Ys,Ys.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Js.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new Ys(this,t,e);return n?i:i.doResume(null)},Qs.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Qs.prototype=Object.create(N.prototype),Qs.prototype.constructor=Qs,Qs.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Js.prototype.replicateOnChange=function(t,e){var n=new Qs(this,t);return e?n:n.doResume(null)},Js.prototype.getAllAssignmentsByClazzUidAsync_s8cxhz$=function(t,e){return this._dao_0.getAllAssignmentsByClazzUidAsync_s8cxhz$(t,e)},Zs.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Zs.prototype=Object.create(N.prototype),Zs.prototype.constructor=Zs,Zs.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.updateActiveByUid_zaz62j$(this.local$cbUid,this.local$active,this.local$changeTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Js.prototype.updateActiveByUid_zaz62j$=function(t,e,n,i,o){var r=new Zs(this,t,e,n,i);return o?r:r.doResume(null)},Js.prototype.getProgressSummaryForAssignment_jl0yiw$=function(t,e,n){return this._dao_0.getProgressSummaryForAssignment_jl0yiw$(t,e,n)},Js.prototype.getSubmitterListForAssignment_gi085m$=function(t,e,n,i){return this._dao_0.getSubmitterListForAssignment_gi085m$(t,e,n,i)},Js.prototype.getSubmitterUid_3pjtqy$=function(t,e,n){return this._dao_0.getSubmitterUid_3pjtqy$(t,e,n)},ta.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ta.prototype=Object.create(N.prototype),ta.prototype.constructor=ta,ta.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$clazzAssignment.caLct=J(),this.state_0=2,this.result_0=this.$this._dao_0.updateAsync_etrmwv$(this.local$clazzAssignment,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Js.prototype.updateAsync_etrmwv$=function(t,e,n){var i=new ta(this,t,e);return n?i:i.doResume(null)},Js.prototype.findByUidAsync_s8cxhz$=function(t,e){return this._dao_0.findByUidAsync_s8cxhz$(t,e)},Js.prototype.getGroupUidFromAssignment_s8cxhz$=function(t,e){return this._dao_0.getGroupUidFromAssignment_s8cxhz$(t,e)},Js.prototype.findByUidWithBlockAsync_s8cxhz$=function(t,e){return this._dao_0.findByUidWithBlockAsync_s8cxhz$(t,e)},Js.prototype.findClazzAssignment=function(){throw v("Synchronous db access is NOT possible on Javascript!")},Js.prototype.findByUidLive_s8cxhz$=function(t){return this._dao_0.findByUidLive_s8cxhz$(t)},Js.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},ea.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ea.prototype=Object.create(N.prototype),ea.prototype.constructor=ea,ea.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.caUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(520,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.caUid=e,this.state_0=3;continue;case 3:if(this.local$entity.caLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.caUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Js.prototype.insertAsync=function(t,e,n){var i=new ea(this,t,e);return n?i:i.doResume(null)},Js.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Js.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Js.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},na.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},na.prototype=Object.create(N.prototype),na.prototype.constructor=na,na.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_pkManager=_t(w(this.$this._db_0)),this.local$_generatedPks=F(),this.local$$receiver=this.local$entityList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$$receiver.hasNext()){this.state_0=5;continue}if(this.local$element=this.local$$receiver.next(),O(this.local$element.caUid,X)){if(this.state_0=3,this.result_0=this.local$_pkManager.nextIdAsync_za3lpa$(520,this),this.result_0===C)return C;continue}this.state_0=4;continue;case 3:var t=this.result_0;this.local$element.caUid=t,this.local$_generatedPks.add_11rb$(t),this.state_0=4;continue;case 4:this.local$element.caLct=J(),this.state_0=2;continue;case 5:if(this.state_0=6,this.result_0=this.$this._dao_0.insertListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 6:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Js.prototype.insertListAsync_4ezy5m$=function(t,e,n){var i=new na(this,t,e);return n?i:i.doResume(null)},ia.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ia.prototype=Object.create(N.prototype),ia.prototype.constructor=ia,ia.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:F();for(var t=this.local$entityList.iterator();t.hasNext();)t.next().caLct=J();if(this.state_0=2,this.result_0=this.$this._dao_0.updateListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Js.prototype.updateListAsync_4ezy5m$=function(t,e,n){var i=new ia(this,t,e);return n?i:i.doResume(null)},Js.$metadata$={kind:c,simpleName:"ClazzAssignmentDao_ReplicateWrapper",interfaces:[es]},ra.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ra.prototype=Object.create(N.prototype),ra.prototype.constructor=ra,ra.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oa.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new ra(this,t,e);return n?i:i.doResume(null)},sa.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},sa.prototype=Object.create(N.prototype),sa.prototype.constructor=sa,sa.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oa.prototype.replicateOnChange=function(t,e){var n=new sa(this,t);return e?n:n.doResume(null)},aa.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},aa.prototype=Object.create(N.prototype),aa.prototype.constructor=aa,aa.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.getAllAssignmentsByClazzUidAsync_s8cxhz$(this.local$clazzUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oa.prototype.getAllAssignmentsByClazzUidAsync_s8cxhz$=function(t,e,n){var i=new aa(this,t,e);return n?i:i.doResume(null)},ca.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ca.prototype=Object.create(N.prototype),ca.prototype.constructor=ca,ca.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateActiveByUid_zaz62j$(this.local$cbUid,this.local$active,this.local$changeTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oa.prototype.updateActiveByUid_zaz62j$=function(t,e,n,i,o){var r=new ca(this,t,e,n,i);return o?r:r.doResume(null)},oa.prototype.getProgressSummaryForAssignment_jl0yiw$=function(t,e,n){return this._dao.getProgressSummaryForAssignment_jl0yiw$(t,e,n)},oa.prototype.getSubmitterListForAssignment_gi085m$=function(t,e,n,i){return this._dao.getSubmitterListForAssignment_gi085m$(t,e,n,i)},la.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},la.prototype=Object.create(N.prototype),la.prototype.constructor=la,la.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.getSubmitterUid_3pjtqy$(this.local$assignmentUid,this.local$personUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oa.prototype.getSubmitterUid_3pjtqy$=function(t,e,n,i){var o=new la(this,t,e,n);return i?o:o.doResume(null)},ua.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ua.prototype=Object.create(N.prototype),ua.prototype.constructor=ua,ua.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateAsync_etrmwv$(this.local$clazzAssignment,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oa.prototype.updateAsync_etrmwv$=function(t,e,n){var i=new ua(this,t,e);return n?i:i.doResume(null)},ha.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ha.prototype=Object.create(N.prototype),ha.prototype.constructor=ha,ha.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByUidAsync_s8cxhz$(this.local$uid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oa.prototype.findByUidAsync_s8cxhz$=function(t,e,n){var i=new ha(this,t,e);return n?i:i.doResume(null)},da.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},da.prototype=Object.create(N.prototype),da.prototype.constructor=da,da.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.getGroupUidFromAssignment_s8cxhz$(this.local$uid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oa.prototype.getGroupUidFromAssignment_s8cxhz$=function(t,e,n){var i=new da(this,t,e);return n?i:i.doResume(null)},pa.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},pa.prototype=Object.create(N.prototype),pa.prototype.constructor=pa,pa.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByUidWithBlockAsync_s8cxhz$(this.local$uid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oa.prototype.findByUidWithBlockAsync_s8cxhz$=function(t,e,n){var i=new pa(this,t,e);return n?i:i.doResume(null)},oa.prototype.findClazzAssignment=function(){return this._dao.findClazzAssignment()},oa.prototype.findByUidLive_s8cxhz$=function(t){return this._dao.findByUidLive_s8cxhz$(t)},oa.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},_a.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_a.prototype=Object.create(N.prototype),_a.prototype.constructor=_a,_a.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oa.prototype.insertAsync=function(t,e,n){var i=new _a(this,t,e);return n?i:i.doResume(null)},oa.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},oa.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},oa.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},ma.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ma.prototype=Object.create(N.prototype),ma.prototype.constructor=ma,ma.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oa.prototype.insertListAsync_4ezy5m$=function(t,e,n){var i=new ma(this,t,e);return n?i:i.doResume(null)},fa.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fa.prototype=Object.create(N.prototype),fa.prototype.constructor=fa,fa.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oa.prototype.updateListAsync_4ezy5m$=function(t,e,n){var i=new fa(this,t,e);return n?i:i.doResume(null)},oa.$metadata$={kind:c,simpleName:"ClazzAssignmentDao_Repo",interfaces:[es]},ga.$metadata$={kind:c,simpleName:"ClazzAssignmentRollUpDao",interfaces:[X6]},$a.prototype.insert_11rb$=function(t){return this._insertAdapterClazzAssignmentRollUp_.insertAndReturnId_11rb$(t)},Ea.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ea.prototype=Object.create(N.prototype),Ea.prototype.constructor=Ea,Ea.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterClazzAssignmentRollUp_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},$a.prototype.insertAsync=function(t,e,n){var i=new Ea(this,t,e);return n?i:i.doResume(null)},$a.prototype.insertList_4ezy5m$=function(t){this._insertAdapterClazzAssignmentRollUp_.insertList_4ezy5m$(t)},$a.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE ClazzAssignmentRollUp SET cachePersonUid = ?, cacheContentEntryUid = ?, cacheClazzAssignmentUid = ?, cacheStudentScore = ?, cacheMaxScore = ?, cacheFinalWeightScoreWithPenalty = ?, cacheWeight = ?, cacheProgress = ?, cacheContentComplete = ?, cacheSuccess = ?, cachePenalty = ?, lastCsnChecked = ? WHERE cacheUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.cachePersonUid),t.setLong_6svq3l$(2,i.cacheContentEntryUid),t.setLong_6svq3l$(3,i.cacheClazzAssignmentUid),t.setInt_vux9f0$(4,i.cacheStudentScore),t.setInt_vux9f0$(5,i.cacheMaxScore),t.setFloat_24o109$(6,i.cacheFinalWeightScoreWithPenalty),t.setInt_vux9f0$(7,i.cacheWeight),t.setInt_vux9f0$(8,i.cacheProgress),t.setBoolean_fzusl$(9,i.cacheContentComplete),t.setByte_6t1wet$(10,i.cacheSuccess),t.setInt_vux9f0$(11,i.cachePenalty),t.setLong_6svq3l$(12,i.lastCsnChecked),t.setLong_6svq3l$(13,i.cacheUid),t.executeUpdate()}return t.getConnection().commit(),V}))},$a.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE ClazzAssignmentRollUp SET cachePersonUid = ?, cacheContentEntryUid = ?, cacheClazzAssignmentUid = ?, cacheStudentScore = ?, cacheMaxScore = ?, cacheFinalWeightScoreWithPenalty = ?, cacheWeight = ?, cacheProgress = ?, cacheContentComplete = ?, cacheSuccess = ?, cachePenalty = ?, lastCsnChecked = ? WHERE cacheUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.cachePersonUid),t.setLong_6svq3l$(2,e.cacheContentEntryUid),t.setLong_6svq3l$(3,e.cacheClazzAssignmentUid),t.setInt_vux9f0$(4,e.cacheStudentScore),t.setInt_vux9f0$(5,e.cacheMaxScore),t.setFloat_24o109$(6,e.cacheFinalWeightScoreWithPenalty),t.setInt_vux9f0$(7,e.cacheWeight),t.setInt_vux9f0$(8,e.cacheProgress),t.setBoolean_fzusl$(9,e.cacheContentComplete),t.setByte_6t1wet$(10,e.cacheSuccess),t.setInt_vux9f0$(11,e.cachePenalty),t.setLong_6svq3l$(12,e.lastCsnChecked),t.setLong_6svq3l$(13,e.cacheUid),t.executeUpdate()}))},ya.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ya.prototype=Object.create(N.prototype),ya.prototype.constructor=ya,ya.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$clazzUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$clazzUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$assignmentUid),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$assignmentUid),this.local$_stmt.setLong_6svq3l$(5,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(6,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(7,this.local$closure$clazzUid),this.local$_stmt.setLong_6svq3l$(8,this.local$closure$clazzUid),this.local$_stmt.setLong_6svq3l$(9,this.local$closure$assignmentUid),this.local$_stmt.setLong_6svq3l$(10,this.local$closure$assignmentUid),this.local$_stmt.setLong_6svq3l$(11,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(12,this.local$closure$personUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Sa.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Sa.prototype=Object.create(N.prototype),Sa.prototype.constructor=Sa,Sa.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n | \n | REPLACE INTO ClazzAssignmentRollUp \n | (cachePersonUid, cacheContentEntryUid, cacheClazzAssignmentUid, \n | cacheStudentScore, cacheMaxScore, cacheWeight, cacheProgress,\n | cacheContentComplete, cacheSuccess,cachePenalty, cacheFinalWeightScoreWithPenalty, lastCsnChecked)\n | \n | WITH MaxScoreTable (maxScore, maxScoreContentEntryUid) \n | AS (SELECT MAX(resultScoreMax), statementContentEntryUid \n | FROM StatementEntity\n | WHERE contentEntryRoot \n | GROUP BY statementContentEntryUid) \n |\n | SELECT clazzEnrolmentPersonUid AS cachePersonUid, \n | COALESCE(cacjContentUid,0) AS cacheContentEntryUid, caUid AS cacheClazzAssignmentUid, \n | COALESCE(resultScoreRaw,0) AS cacheStudentScore, \n | \n | \n | COALESCE((SELECT maxScore \n | FROM MaxScoreTable \n | WHERE cacjContentUid = maxScoreContentEntryUid), 0) AS cacheMaxScore,\n | \n | COALESCE(cacjWeight, 0) AS cacheWeight,\n | \n | \n | COALESCE(StatementEntity.extensionProgress,0) AS cacheProgress,\n | COALESCE(StatementEntity.resultCompletion,'FALSE') AS cacheContentComplete, \n | COALESCE(StatementEntity.resultSuccess,0) AS cacheSuccess,\n | (CASE WHEN StatementEntity.timestamp > CourseBlock.cbDeadlineDate\n | THEN CourseBlock.cbLateSubmissionPenalty \n | ELSE 0 END) AS cachePenalty,\n | \n | (CASE WHEN StatementEntity.timestamp > CourseBlock.cbDeadlineDate \n | THEN (COALESCE(CAST(resultScoreRaw AS REAL),0) / COALESCE((SELECT maxScore \n | FROM MaxScoreTable WHERE cacjContentUid = maxScoreContentEntryUid),0) * 100 * cacjWeight * (1 - (CAST(cbLateSubmissionPenalty AS REAL)/100)))\n | ELSE (COALESCE(CAST(resultScoreRaw AS REAL),0) / COALESCE((SELECT maxScore \n | FROM MaxScoreTable WHERE cacjContentUid = maxScoreContentEntryUid),0) * 100 * cacjWeight) END) AS cacheFinalWeightScoreWithPenalty, \n | \n | 0 AS lastCsnChecked\n | FROM ClazzAssignmentContentJoin\n |\t JOIN ClazzAssignment \n | ON ClazzAssignment.caUid = ClazzAssignmentContentJoin.cacjAssignmentUid\n | \n | JOIN ClazzEnrolment\n | ON ClazzEnrolment.clazzEnrolmentClazzUid = ClazzAssignment.caClazzUid\n | \n | JOIN CourseBlock\n | ON CourseBlock.cbEntityUid = ClazzAssignment.caUid\n | AND CourseBlock.cbType = 103 \n |\t\t\t\t\t \t \n |\t\t\t LEFT JOIN StatementEntity \n |\t ON statementUid = (SELECT statementUid \n | FROM StatementEntity \n | LEFT JOIN ClazzAssignment \n | ON ClazzAssignment.caUid = ClazzAssignmentContentJoin.cacjAssignmentUid \n | JOIN CourseBlock\n | ON CourseBlock.cbEntityUid = ClazzAssignment.caUid\n | AND CourseBlock.cbType = 103 \n | WHERE StatementEntity.statementContentEntryUid = ClazzAssignmentContentJoin.cacjContentUid\n | AND StatementEntity.statementPersonUid = ClazzEnrolment.clazzEnrolmentPersonUid\n | AND StatementEntity.contentEntryRoot \n | AND StatementEntity.timestamp \n | BETWEEN CourseBlock.cbHideUntilDate\n | AND CourseBlock.cbGracePeriodDate\n | ORDER BY CASE WHEN StatementEntity.timestamp > CourseBlock.cbDeadlineDate \n | THEN StatementEntity.resultScoreScaled * (1 - (CAST(CourseBlock.cbLateSubmissionPenalty AS REAL)/100))\n | ELSE StatementEntity.resultScoreScaled END DESC, \n | StatementEntity.extensionProgress DESC, \n | StatementEntity.resultSuccess DESC LIMIT 1) \n | LEFT JOIN ClazzAssignmentRollUp\n | ON ClazzAssignmentRollUp.cacheContentEntryUid = ClazzAssignmentContentJoin.cacjContentUid \n | AND ClazzAssignmentRollUp.cachePersonUid = ClazzEnrolment.clazzEnrolmentPersonUid\n | AND ClazzAssignmentRollUp.cacheClazzAssignmentUid = ClazzAssignment.caUid\n | \n | \n |\t WHERE ClazzEnrolment.clazzEnrolmentRole = 1000\n | AND ClazzEnrolment.clazzEnrolmentOutcome = 200\n | AND ClazzEnrolment.clazzEnrolmentActive\n | AND ClazzAssignment.caActive\n | AND ClazzAssignmentContentJoin.cacjActive\n | AND (? = 0 OR ClazzAssignment.caClazzUid = ?)\n | AND (? = 0 OR ClazzAssignment.caUid = ?)\n | AND (? = 0 OR ClazzEnrolment.clazzEnrolmentPersonUid = ?)\n | AND (COALESCE(StatementEntity.resultScoreRaw,0) >= COALESCE(ClazzAssignmentRollUp.cacheStudentScore,0)\n | AND COALESCE(StatementEntity.extensionProgress,0) >= COALESCE(ClazzAssignmentRollUp.cacheProgress,0)\n | AND COALESCE(StatementEntity.resultSuccess,0) >= COALESCE(ClazzAssignmentRollUp.cacheSuccess,0))\n | GROUP BY cacheClazzAssignmentUid, cacheContentEntryUid, cachePersonUid\n | UNION \n | SELECT clazzEnrolmentPersonUid AS cachePersonUid, \n | 0 AS cacheContentEntryUid, \n | caUid AS cacheClazzAssignmentUid, \n | COALESCE(MarkingStatement.resultScoreRaw,0) AS cacheStudentScore, \n | COALESCE(cbMaxPoints,0) AS cacheMaxScore,\n | 0 AS cacheWeight,\n | \n | COALESCE(MarkingStatement.extensionProgress,0) AS cacheProgress,\n | COALESCE(MarkingStatement.resultCompletion,'FALSE') AS cacheContentComplete, \n | COALESCE(MarkingStatement.resultSuccess,0) AS cacheSuccess,\n | (CASE WHEN SubmissionStatement.timestamp > CourseBlock.cbDeadlineDate \n | THEN CourseBlock.cbLateSubmissionPenalty \n | ELSE 0 END) AS cachePenalty,\n | \n | (CASE WHEN SubmissionStatement.timestamp > CourseBlock.cbDeadlineDate \n | THEN (COALESCE(CAST(MarkingStatement.resultScoreRaw AS REAL),0) / COALESCE(CourseBlock.cbMaxPoints,0) * \n | 100 * (1 - (CAST(cbLateSubmissionPenalty AS REAL)/100)))\n | ELSE (COALESCE(CAST(MarkingStatement.resultScoreRaw AS REAL),0) / COALESCE(cbMaxPoints,0) * \n | 100) END) AS cacheFinalWeightScoreWithPenalty, \n | \n | \n | 0 AS lastCsnChecked\n | FROM ClazzAssignment\n | JOIN ClazzEnrolment\n | ON ClazzEnrolment.clazzEnrolmentClazzUid = ClazzAssignment.caClazzUid\n | \n | JOIN CourseBlock\n | ON CourseBlock.cbEntityUid = ClazzAssignment.caUid\n | AND CourseBlock.cbType = 103 \n | \n | LEFT JOIN StatementEntity AS SubmissionStatement\n |\t ON SubmissionStatement.statementUid = (SELECT statementUid \n | FROM StatementEntity\n | WHERE StatementEntity.statementContentEntryUid = 0\n | AND xObjectUid = ClazzAssignment.caXObjectUid\n | AND StatementEntity.statementPersonUid = ClazzEnrolment.clazzEnrolmentPersonUid\n | AND StatementEntity.timestamp \n | BETWEEN CourseBlock.cbHideUntilDate\n | AND CourseBlock.cbGracePeriodDate\n | ORDER BY timestamp DESC LIMIT 1\n | )\n | LEFT JOIN XObjectEntity AS ObjectStatementRef\n | ON ObjectStatementRef.objectStatementRefUid = SubmissionStatement.statementUid \n | \n | LEFT JOIN StatementEntity AS MarkingStatement\n | ON MarkingStatement.timestamp = (SELECT timestamp \n | FROM StatementEntity \n | WHERE xObjectUid = ObjectStatementRef.xObjectUid \n | ORDER BY timestamp DESC \n | LIMIT 1)\n | \n | WHERE ClazzEnrolment.clazzEnrolmentRole = 1000\n | AND ClazzEnrolment.clazzEnrolmentOutcome = 200\n | AND ClazzEnrolment.clazzEnrolmentActive\n | AND ClazzAssignment.caActive\n | AND ClazzAssignment.caRequireFileSubmission\n | AND (? = 0 OR ClazzAssignment.caClazzUid = ?)\n | AND (? = 0 OR ClazzAssignment.caUid = ?)\n | AND (? = 0 OR ClazzEnrolment.clazzEnrolmentPersonUid = ?)\n | GROUP BY cacheClazzAssignmentUid, cacheContentEntryUid, cachePersonUid \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ClazzAssignmentRollUp \n | (cachePersonUid, cacheContentEntryUid, cacheClazzAssignmentUid, \n | cacheStudentScore, cacheMaxScore, cacheWeight, cacheProgress,\n | cacheContentComplete, cacheSuccess,cachePenalty, cacheFinalWeightScoreWithPenalty, lastCsnChecked)\n | \n | WITH MaxScoreTable (maxScore, maxScoreContentEntryUid) \n | AS (SELECT MAX(resultScoreMax), statementContentEntryUid \n | FROM StatementEntity\n | WHERE contentEntryRoot \n | GROUP BY statementContentEntryUid) \n |\n | SELECT clazzEnrolmentPersonUid AS cachePersonUid, \n | COALESCE(cacjContentUid,0) AS cacheContentEntryUid, caUid AS cacheClazzAssignmentUid, \n | COALESCE(resultScoreRaw,0) AS cacheStudentScore, \n | \n | \n | COALESCE((SELECT maxScore \n | FROM MaxScoreTable \n | WHERE cacjContentUid = maxScoreContentEntryUid), 0) AS cacheMaxScore,\n | \n | COALESCE(cacjWeight, 0) AS cacheWeight,\n | \n | \n | COALESCE(StatementEntity.extensionProgress,0) AS cacheProgress,\n | COALESCE(StatementEntity.resultCompletion,'FALSE') AS cacheContentComplete, \n | COALESCE(StatementEntity.resultSuccess,0) AS cacheSuccess,\n | (CASE WHEN StatementEntity.timestamp > CourseBlock.cbDeadlineDate\n | THEN CourseBlock.cbLateSubmissionPenalty \n | ELSE 0 END) AS cachePenalty,\n | \n | (CASE WHEN StatementEntity.timestamp > CourseBlock.cbDeadlineDate \n | THEN (COALESCE(CAST(resultScoreRaw AS REAL),0) / COALESCE((SELECT maxScore \n | FROM MaxScoreTable WHERE cacjContentUid = maxScoreContentEntryUid),0) * 100 * cacjWeight * (1 - (CAST(cbLateSubmissionPenalty AS REAL)/100)))\n | ELSE (COALESCE(CAST(resultScoreRaw AS REAL),0) / COALESCE((SELECT maxScore \n | FROM MaxScoreTable WHERE cacjContentUid = maxScoreContentEntryUid),0) * 100 * cacjWeight) END) AS cacheFinalWeightScoreWithPenalty, \n | \n | 0 AS lastCsnChecked\n | FROM ClazzAssignmentContentJoin\n |\t JOIN ClazzAssignment \n | ON ClazzAssignment.caUid = ClazzAssignmentContentJoin.cacjAssignmentUid\n | \n | JOIN ClazzEnrolment\n | ON ClazzEnrolment.clazzEnrolmentClazzUid = ClazzAssignment.caClazzUid\n | \n | JOIN CourseBlock\n | ON CourseBlock.cbEntityUid = ClazzAssignment.caUid\n | AND CourseBlock.cbType = 103 \n |\t\t\t\t\t \t \n |\t\t\t LEFT JOIN StatementEntity \n |\t ON statementUid = (SELECT statementUid \n | FROM StatementEntity \n | LEFT JOIN ClazzAssignment \n | ON ClazzAssignment.caUid = ClazzAssignmentContentJoin.cacjAssignmentUid \n | JOIN CourseBlock\n | ON CourseBlock.cbEntityUid = ClazzAssignment.caUid\n | AND CourseBlock.cbType = 103 \n | WHERE StatementEntity.statementContentEntryUid = ClazzAssignmentContentJoin.cacjContentUid\n | AND StatementEntity.statementPersonUid = ClazzEnrolment.clazzEnrolmentPersonUid\n | AND StatementEntity.contentEntryRoot \n | AND StatementEntity.timestamp \n | BETWEEN CourseBlock.cbHideUntilDate\n | AND CourseBlock.cbGracePeriodDate\n | ORDER BY CASE WHEN StatementEntity.timestamp > CourseBlock.cbDeadlineDate \n | THEN StatementEntity.resultScoreScaled * (1 - (CAST(CourseBlock.cbLateSubmissionPenalty AS REAL)/100))\n | ELSE StatementEntity.resultScoreScaled END DESC, \n | StatementEntity.extensionProgress DESC, \n | StatementEntity.resultSuccess DESC LIMIT 1) \n | LEFT JOIN ClazzAssignmentRollUp\n | ON ClazzAssignmentRollUp.cacheContentEntryUid = ClazzAssignmentContentJoin.cacjContentUid \n | AND ClazzAssignmentRollUp.cachePersonUid = ClazzEnrolment.clazzEnrolmentPersonUid\n | AND ClazzAssignmentRollUp.cacheClazzAssignmentUid = ClazzAssignment.caUid\n | \n | \n |\t WHERE ClazzEnrolment.clazzEnrolmentRole = 1000\n | AND ClazzEnrolment.clazzEnrolmentOutcome = 200\n | AND ClazzEnrolment.clazzEnrolmentActive\n | AND ClazzAssignment.caActive\n | AND ClazzAssignmentContentJoin.cacjActive\n | AND (? = 0 OR ClazzAssignment.caClazzUid = ?)\n | AND (? = 0 OR ClazzAssignment.caUid = ?)\n | AND (? = 0 OR ClazzEnrolment.clazzEnrolmentPersonUid = ?)\n | AND (COALESCE(StatementEntity.resultScoreRaw,0) >= COALESCE(ClazzAssignmentRollUp.cacheStudentScore,0)\n | AND COALESCE(StatementEntity.extensionProgress,0) >= COALESCE(ClazzAssignmentRollUp.cacheProgress,0)\n | AND COALESCE(StatementEntity.resultSuccess,0) >= COALESCE(ClazzAssignmentRollUp.cacheSuccess,0))\n | GROUP BY cacheClazzAssignmentUid, cacheContentEntryUid, cachePersonUid\n | UNION \n | SELECT clazzEnrolmentPersonUid AS cachePersonUid, \n | 0 AS cacheContentEntryUid, \n | caUid AS cacheClazzAssignmentUid, \n | COALESCE(MarkingStatement.resultScoreRaw,0) AS cacheStudentScore, \n | COALESCE(cbMaxPoints,0) AS cacheMaxScore,\n | 0 AS cacheWeight,\n | \n | COALESCE(MarkingStatement.extensionProgress,0) AS cacheProgress,\n | COALESCE(MarkingStatement.resultCompletion,'FALSE') AS cacheContentComplete, \n | COALESCE(MarkingStatement.resultSuccess,0) AS cacheSuccess,\n | (CASE WHEN SubmissionStatement.timestamp > CourseBlock.cbDeadlineDate \n | THEN CourseBlock.cbLateSubmissionPenalty \n | ELSE 0 END) AS cachePenalty,\n | \n | (CASE WHEN SubmissionStatement.timestamp > CourseBlock.cbDeadlineDate \n | THEN (COALESCE(CAST(MarkingStatement.resultScoreRaw AS REAL),0) / COALESCE(CourseBlock.cbMaxPoints,0) * \n | 100 * (1 - (CAST(cbLateSubmissionPenalty AS REAL)/100)))\n | ELSE (COALESCE(CAST(MarkingStatement.resultScoreRaw AS REAL),0) / COALESCE(cbMaxPoints,0) * \n | 100) END) AS cacheFinalWeightScoreWithPenalty, \n | \n | \n | 0 AS lastCsnChecked\n | FROM ClazzAssignment\n | JOIN ClazzEnrolment\n | ON ClazzEnrolment.clazzEnrolmentClazzUid = ClazzAssignment.caClazzUid\n | \n | JOIN CourseBlock\n | ON CourseBlock.cbEntityUid = ClazzAssignment.caUid\n | AND CourseBlock.cbType = 103 \n | \n | LEFT JOIN StatementEntity AS SubmissionStatement\n |\t ON SubmissionStatement.statementUid = (SELECT statementUid \n | FROM StatementEntity\n | WHERE StatementEntity.statementContentEntryUid = 0\n | AND xObjectUid = ClazzAssignment.caXObjectUid\n | AND StatementEntity.statementPersonUid = ClazzEnrolment.clazzEnrolmentPersonUid\n | AND StatementEntity.timestamp \n | BETWEEN CourseBlock.cbHideUntilDate\n | AND CourseBlock.cbGracePeriodDate\n | ORDER BY timestamp DESC LIMIT 1\n | )\n | LEFT JOIN XObjectEntity AS ObjectStatementRef\n | ON ObjectStatementRef.objectStatementRefUid = SubmissionStatement.statementUid \n | \n | LEFT JOIN StatementEntity AS MarkingStatement\n | ON MarkingStatement.timestamp = (SELECT timestamp \n | FROM StatementEntity \n | WHERE xObjectUid = ObjectStatementRef.xObjectUid \n | ORDER BY timestamp DESC \n | LIMIT 1)\n | \n | WHERE ClazzEnrolment.clazzEnrolmentRole = 1000\n | AND ClazzEnrolment.clazzEnrolmentOutcome = 200\n | AND ClazzEnrolment.clazzEnrolmentActive\n | AND ClazzAssignment.caActive\n | AND ClazzAssignment.caRequireFileSubmission\n | AND (? = 0 OR ClazzAssignment.caClazzUid = ?)\n | AND (? = 0 OR ClazzAssignment.caUid = ?)\n | AND (? = 0 OR ClazzEnrolment.clazzEnrolmentPersonUid = ?)\n | GROUP BY cacheClazzAssignmentUid, cacheContentEntryUid, cachePersonUid \n | \n |")),ba(this.local$clazzUid,this.local$assignmentUid,this.local$personUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},$a.prototype.cacheBestStatements_b9bd0d$=function(t,e,n,i,o){var r=new Sa(this,t,e,n,i);return o?r:r.doResume(null)},va.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},va.prototype=Object.create(N.prototype),va.prototype.constructor=va,va.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$caUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Na.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Na.prototype=Object.create(N.prototype),Na.prototype.constructor=Na,Na.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | DELETE\n | FROM ClazzAssignmentRollUp\n | WHERE cacheContentEntryUid \n | IN (SELECT cacjContentUid \n | FROM ClazzAssignmentContentJoin\n | WHERE NOT cacjActive)\n | OR (cacheClazzAssignmentUid \n | IN (SELECT caUid \n | FROM ClazzAssignment\n | WHERE caUid = ?\n | AND NOT caRequireFileSubmission) \n | AND cacheContentEntryUid = 0) \n | \n ")),Ca(this.local$caUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},$a.prototype.deleteCachedInactiveContent_s8cxhz$=function(t,e,n){var i=new Na(this,t,e);return n?i:i.doResume(null)},Ta.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ta.prototype=Object.create(N.prototype),Ta.prototype.constructor=Ta,Ta.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$changedAssignmentUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},za.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},za.prototype=Object.create(N.prototype),za.prototype.constructor=za,za.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | UPDATE ClazzAssignmentRollUp \n | SET lastCsnChecked = 0\n | WHERE cacheClazzAssignmentUid = ?\n | \n ")),La(this.local$changedAssignmentUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},$a.prototype.invalidateCacheByAssignment_s8cxhz$=function(t,e,n){var i=new za(this,t,e);return n?i:i.doResume(null)},wa.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},wa.prototype=Object.create(N.prototype),wa.prototype.constructor=wa,wa.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setArray_wqp8hw$(1,yt(this.local$_stmt.getConnection(),"BIGINT",q(this.local$closure$changedAssignmentUid))),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ra.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ra.prototype=Object.create(N.prototype),Ra.prototype.constructor=Ra,Ra.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | UPDATE ClazzAssignmentRollUp \n | SET lastCsnChecked = 0\n | WHERE cacheClazzAssignmentUid IN (?)\n | \n "),!0),Oa(this.local$changedAssignmentUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},$a.prototype.invalidateCacheByAssignmentList_gox9k8$=function(t,e,n){var i=new Ra(this,t,e);return n?i:i.doResume(null)},Aa.prototype.makeSql_6taknv$=function(t){return"INSERT INTO ClazzAssignmentRollUp (cacheUid, cachePersonUid, cacheContentEntryUid, cacheClazzAssignmentUid, cacheStudentScore, cacheMaxScore, cacheFinalWeightScoreWithPenalty, cacheWeight, cacheProgress, cacheContentComplete, cacheSuccess, cachePenalty, lastCsnChecked) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},Aa.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.cacheUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.cacheUid),t.setLong_6svq3l$(2,e.cachePersonUid),t.setLong_6svq3l$(3,e.cacheContentEntryUid),t.setLong_6svq3l$(4,e.cacheClazzAssignmentUid),t.setInt_vux9f0$(5,e.cacheStudentScore),t.setInt_vux9f0$(6,e.cacheMaxScore),t.setFloat_24o109$(7,e.cacheFinalWeightScoreWithPenalty),t.setInt_vux9f0$(8,e.cacheWeight),t.setInt_vux9f0$(9,e.cacheProgress),t.setBoolean_fzusl$(10,e.cacheContentComplete),t.setByte_6t1wet$(11,e.cacheSuccess),t.setInt_vux9f0$(12,e.cachePenalty),t.setLong_6svq3l$(13,e.lastCsnChecked)},Aa.$metadata$={kind:c,interfaces:[pt]},$a.$metadata$={kind:c,simpleName:"ClazzAssignmentRollUpDao_JdbcKt",interfaces:[ga]},Ia.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ia.prototype=Object.create(N.prototype),Ia.prototype.constructor=Ia,Ia.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.cacheBestStatements_b9bd0d$(this.local$clazzUid,this.local$assignmentUid,this.local$personUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},xa.prototype.cacheBestStatements_b9bd0d$=function(t,e,n,i,o){var r=new Ia(this,t,e,n,i);return o?r:r.doResume(null)},Ua.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ua.prototype=Object.create(N.prototype),Ua.prototype.constructor=Ua,Ua.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.deleteCachedInactiveContent_s8cxhz$(this.local$caUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},xa.prototype.deleteCachedInactiveContent_s8cxhz$=function(t,e,n){var i=new Ua(this,t,e);return n?i:i.doResume(null)},Da.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Da.prototype=Object.create(N.prototype),Da.prototype.constructor=Da,Da.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.invalidateCacheByAssignment_s8cxhz$(this.local$changedAssignmentUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},xa.prototype.invalidateCacheByAssignment_s8cxhz$=function(t,e,n){var i=new Da(this,t,e);return n?i:i.doResume(null)},Pa.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Pa.prototype=Object.create(N.prototype),Pa.prototype.constructor=Pa,Pa.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.invalidateCacheByAssignmentList_gox9k8$(this.local$changedAssignmentUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},xa.prototype.invalidateCacheByAssignmentList_gox9k8$=function(t,e,n){var i=new Pa(this,t,e);return n?i:i.doResume(null)},xa.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},Ma.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ma.prototype=Object.create(N.prototype),Ma.prototype.constructor=Ma,Ma.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},xa.prototype.insertAsync=function(t,e,n){var i=new Ma(this,t,e);return n?i:i.doResume(null)},xa.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},xa.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},xa.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},xa.$metadata$={kind:c,simpleName:"ClazzAssignmentRollUpDao_Repo",interfaces:[ga]},ka.$metadata$={kind:c,simpleName:"ClazzContentJoinDao",interfaces:[X6]},ja.prototype.insert_11rb$=function(t){return this._insertAdapterClazzContentJoin_.insertAndReturnId_11rb$(t)},Ga.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ga.prototype=Object.create(N.prototype),Ga.prototype.constructor=Ga,Ga.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterClazzContentJoin_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ja.prototype.insertAsync=function(t,e,n){var i=new Ga(this,t,e);return n?i:i.doResume(null)},ja.prototype.insertList_4ezy5m$=function(t){this._insertAdapterClazzContentJoin_.insertList_4ezy5m$(t)},ja.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE ClazzContentJoin SET ccjContentEntryUid = ?, ccjClazzUid = ?, ccjActive = ?, ccjLocalChangeSeqNum = ?, ccjMasterChangeSeqNum = ?, ccjLastChangedBy = ?, ccjLct = ? WHERE ccjUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.ccjContentEntryUid),t.setLong_6svq3l$(2,i.ccjClazzUid),t.setBoolean_fzusl$(3,i.ccjActive),t.setLong_6svq3l$(4,i.ccjLocalChangeSeqNum),t.setLong_6svq3l$(5,i.ccjMasterChangeSeqNum),t.setInt_vux9f0$(6,i.ccjLastChangedBy),t.setLong_6svq3l$(7,i.ccjLct),t.setLong_6svq3l$(8,i.ccjUid),t.executeUpdate()}return t.getConnection().commit(),V}))},ja.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE ClazzContentJoin SET ccjContentEntryUid = ?, ccjClazzUid = ?, ccjActive = ?, ccjLocalChangeSeqNum = ?, ccjMasterChangeSeqNum = ?, ccjLastChangedBy = ?, ccjLct = ? WHERE ccjUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.ccjContentEntryUid),t.setLong_6svq3l$(2,e.ccjClazzUid),t.setBoolean_fzusl$(3,e.ccjActive),t.setLong_6svq3l$(4,e.ccjLocalChangeSeqNum),t.setLong_6svq3l$(5,e.ccjMasterChangeSeqNum),t.setInt_vux9f0$(6,e.ccjLastChangedBy),t.setLong_6svq3l$(7,e.ccjLct),t.setLong_6svq3l$(8,e.ccjUid),t.executeUpdate()}))},qa.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},qa.prototype=Object.create(N.prototype),qa.prototype.constructor=qa,qa.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ba.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ba.prototype=Object.create(N.prototype),Ba.prototype.constructor=Ba,Ba.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ClazzContentJoinReplicate(ccjPk, ccjDestination)\n | SELECT DISTINCT ClazzContentJoin.ccjUid AS ccjUid,\n | ? AS ccjDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 4398046511104 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | JOIN ClazzContentJoin \n | ON Clazz.clazzUid = ClazzContentJoin.ccjClazzUid\n | WHERE UserSession.usClientNodeId = ? \n | AND UserSession.usStatus = 1 \n | AND ClazzContentJoin.ccjLct != COALESCE(\n | (SELECT ccjVersionId\n | FROM ClazzContentJoinReplicate\n | WHERE ccjPk = ClazzContentJoin.ccjUid\n | AND ccjDestination = ?), 0) \n | /*psql ON CONFLICT(ccjPk, ccjDestination) DO UPDATE\n | SET ccjPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ClazzContentJoinReplicate(ccjPk, ccjDestination)\n | SELECT DISTINCT ClazzContentJoin.ccjUid AS ccjUid,\n | ? AS ccjDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 4398046511104 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | JOIN ClazzContentJoin \n | ON Clazz.clazzUid = ClazzContentJoin.ccjClazzUid\n | WHERE UserSession.usClientNodeId = ? \n | AND UserSession.usStatus = 1 \n | AND ClazzContentJoin.ccjLct != COALESCE(\n | (SELECT ccjVersionId\n | FROM ClazzContentJoinReplicate\n | WHERE ccjPk = ClazzContentJoin.ccjUid\n | AND ccjDestination = ?), 0) \n | ON CONFLICT(ccjPk, ccjDestination) DO UPDATE\n | SET ccjPending = true\n | \n | \n |")),Fa(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ja.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new Ba(this,t,e);return n?i:i.doResume(null)},Wa.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Wa.prototype=Object.create(N.prototype),Wa.prototype.constructor=Wa,Wa.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Va.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Va.prototype=Object.create(N.prototype),Va.prototype.constructor=Va,Va.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ClazzContentJoinReplicate(ccjPk, ccjDestination)\n | SELECT DISTINCT ClazzContentJoin.ccjUid AS ccjUid,\n | UserSession.usClientNodeId AS ccjDestination\n | FROM ChangeLog\n | JOIN ClazzContentJoin\n | ON ChangeLog.chTableId = 134\n | AND ChangeLog.chEntityPk = ClazzContentJoin.ccjUid\n | JOIN Clazz \n | ON Clazz.clazzUid = ClazzContentJoin.ccjClazzUid \n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 4398046511104\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ClazzContentJoin.ccjLct != COALESCE(\n | (SELECT ccjVersionId\n | FROM ClazzContentJoinReplicate\n | WHERE ccjPk = ClazzContentJoin.ccjUid\n | AND ccjDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(ccjPk, ccjDestination) DO UPDATE\n | SET ccjPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ClazzContentJoinReplicate(ccjPk, ccjDestination)\n | SELECT DISTINCT ClazzContentJoin.ccjUid AS ccjUid,\n | UserSession.usClientNodeId AS ccjDestination\n | FROM ChangeLog\n | JOIN ClazzContentJoin\n | ON ChangeLog.chTableId = 134\n | AND ChangeLog.chEntityPk = ClazzContentJoin.ccjUid\n | JOIN Clazz \n | ON Clazz.clazzUid = ClazzContentJoin.ccjClazzUid \n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 4398046511104\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ClazzContentJoin.ccjLct != COALESCE(\n | (SELECT ccjVersionId\n | FROM ClazzContentJoinReplicate\n | WHERE ccjPk = ClazzContentJoin.ccjUid\n | AND ccjDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(ccjPk, ccjDestination) DO UPDATE\n | SET ccjPending = true\n | \n | \n |")),Ha,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ja.prototype.replicateOnChange=function(t,e){var n=new Va(this,t);return e?n:n.doResume(null)},Ka.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ka.prototype=Object.create(N.prototype),Ka.prototype.constructor=Ka,Ka.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setBoolean_fzusl$(1,this.local$closure$toggleVisibility),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$changedTime),this.local$_stmt.setArray_wqp8hw$(3,yt(this.local$_stmt.getConnection(),"BIGINT",q(this.local$closure$selectedItem))),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ja.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ja.prototype=Object.create(N.prototype),Ja.prototype.constructor=Ja,Ja.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |UPDATE ClazzContentJoin \n | SET ccjActive = ?, \n | ccjLct = ? \n | WHERE ccjContentEntryUid IN (?)\n "),!0),Xa(this.local$toggleVisibility,this.local$changedTime,this.local$selectedItem),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ja.prototype.toggleVisibilityClazzContent_cbj1f0$=function(t,e,n,i,o){var r=new Ja(this,t,e,n,i);return o?r:r.doResume(null)},Qa.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Qa.prototype=Object.create(N.prototype),Qa.prototype.constructor=Qa,Qa.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$clazzUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Ya);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ja.prototype.listOfEntriesInClazz_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT ccjContentEntryUid \n | FROM ClazzContentJoin\n | WHERE ccjClazzUid = ?\n | AND ccjActive\n | \n ")),(n=t,function(t,e,i){var o=new Qa(n,t,e);return i?o:o.doResume(null)}),e);var n},Za.prototype.makeSql_6taknv$=function(t){return"INSERT INTO ClazzContentJoin (ccjUid, ccjContentEntryUid, ccjClazzUid, ccjActive, ccjLocalChangeSeqNum, ccjMasterChangeSeqNum, ccjLastChangedBy, ccjLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?)"},Za.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.ccjUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.ccjUid),t.setLong_6svq3l$(2,e.ccjContentEntryUid),t.setLong_6svq3l$(3,e.ccjClazzUid),t.setBoolean_fzusl$(4,e.ccjActive),t.setLong_6svq3l$(5,e.ccjLocalChangeSeqNum),t.setLong_6svq3l$(6,e.ccjMasterChangeSeqNum),t.setInt_vux9f0$(7,e.ccjLastChangedBy),t.setLong_6svq3l$(8,e.ccjLct)},Za.$metadata$={kind:c,interfaces:[pt]},ja.$metadata$={kind:c,simpleName:"ClazzContentJoinDao_JdbcKt",interfaces:[ka]},ec.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ec.prototype=Object.create(N.prototype),ec.prototype.constructor=ec,ec.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tc.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new ec(this,t,e);return n?i:i.doResume(null)},nc.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},nc.prototype=Object.create(N.prototype),nc.prototype.constructor=nc,nc.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tc.prototype.replicateOnChange=function(t,e){var n=new nc(this,t);return e?n:n.doResume(null)},ic.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ic.prototype=Object.create(N.prototype),ic.prototype.constructor=ic,ic.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.toggleVisibilityClazzContent_cbj1f0$(this.local$toggleVisibility,this.local$selectedItem,this.local$changedTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tc.prototype.toggleVisibilityClazzContent_cbj1f0$=function(t,e,n,i,o){var r=new ic(this,t,e,n,i);return o?r:r.doResume(null)},tc.prototype.listOfEntriesInClazz_s8cxhz$=function(t,e){return this._dao_0.listOfEntriesInClazz_s8cxhz$(t,e)},tc.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},oc.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},oc.prototype=Object.create(N.prototype),oc.prototype.constructor=oc,oc.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.ccjUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(134,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.ccjUid=e,this.state_0=3;continue;case 3:if(this.local$entity.ccjLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.ccjUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tc.prototype.insertAsync=function(t,e,n){var i=new oc(this,t,e);return n?i:i.doResume(null)},tc.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},tc.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},tc.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},tc.$metadata$={kind:c,simpleName:"ClazzContentJoinDao_ReplicateWrapper",interfaces:[ka]},sc.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},sc.prototype=Object.create(N.prototype),sc.prototype.constructor=sc,sc.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},rc.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new sc(this,t,e);return n?i:i.doResume(null)},ac.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ac.prototype=Object.create(N.prototype),ac.prototype.constructor=ac,ac.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},rc.prototype.replicateOnChange=function(t,e){var n=new ac(this,t);return e?n:n.doResume(null)},cc.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},cc.prototype=Object.create(N.prototype),cc.prototype.constructor=cc,cc.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.toggleVisibilityClazzContent_cbj1f0$(this.local$toggleVisibility,this.local$selectedItem,this.local$changedTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},rc.prototype.toggleVisibilityClazzContent_cbj1f0$=function(t,e,n,i,o){var r=new cc(this,t,e,n,i);return o?r:r.doResume(null)},lc.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},lc.prototype=Object.create(N.prototype),lc.prototype.constructor=lc,lc.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.listOfEntriesInClazz_s8cxhz$(this.local$clazzUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},rc.prototype.listOfEntriesInClazz_s8cxhz$=function(t,e,n){var i=new lc(this,t,e);return n?i:i.doResume(null)},rc.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)};function Nb(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$contentEntryUid=e}function Tb(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$contentEntryUid=e}function Lb(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function zb(){}function wb(t){zb.call(this),this._db=t,this._insertAdapterContentEntryParentChildJoin_=new Qb(this._db),this._insertAdapterContentEntryParentChildJoin_upsert=new Zb(this._db)}function Ob(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function Rb(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Ab(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function xb(t){return function(e,n,i){var o=new Ab(t,e,n);return i?o:o.doResume(null)}}function Ib(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function Ub(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function Db(t,e,n){var i=new Ub(t,e);return n?i:i.doResume(null)}function Pb(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function Mb(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("cepcjUid"),i=e.getLong_61zpoe$("cepcjLocalChangeSeqNum"),o=e.getLong_61zpoe$("cepcjMasterChangeSeqNum"),r=e.getInt_61zpoe$("cepcjLastChangedBy"),s=e.getLong_61zpoe$("cepcjLct"),a=e.getLong_61zpoe$("cepcjParentContentEntryUid"),c=e.getLong_61zpoe$("cepcjChildContentEntryUid"),l=e.getInt_61zpoe$("childIndex"),u=new eet;return u.cepcjUid=n,u.cepcjLocalChangeSeqNum=i,u.cepcjMasterChangeSeqNum=o,u.cepcjLastChangedBy=r,u.cepcjLct=s,u.cepcjParentContentEntryUid=a,u.cepcjChildContentEntryUid=c,u.childIndex=l,u}));var e}function kb(t){return ut(t.executeQuery(),Mb)}function jb(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("cepcjUid"),i=e.getLong_61zpoe$("cepcjLocalChangeSeqNum"),o=e.getLong_61zpoe$("cepcjMasterChangeSeqNum"),r=e.getInt_61zpoe$("cepcjLastChangedBy"),s=e.getLong_61zpoe$("cepcjLct"),a=e.getLong_61zpoe$("cepcjParentContentEntryUid"),c=e.getLong_61zpoe$("cepcjChildContentEntryUid"),l=e.getInt_61zpoe$("childIndex"),u=new eet;return u.cepcjUid=n,u.cepcjLocalChangeSeqNum=i,u.cepcjMasterChangeSeqNum=o,u.cepcjLastChangedBy=r,u.cepcjLct=s,u.cepcjParentContentEntryUid=a,u.cepcjChildContentEntryUid=c,u.childIndex=l,u}));var e}function Gb(t){return ut(t.executeQuery(),jb)}function qb(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("cepcjUid"),i=e.getLong_61zpoe$("cepcjLocalChangeSeqNum"),o=e.getLong_61zpoe$("cepcjMasterChangeSeqNum"),r=e.getInt_61zpoe$("cepcjLastChangedBy"),s=e.getLong_61zpoe$("cepcjLct"),a=e.getLong_61zpoe$("cepcjParentContentEntryUid"),c=e.getLong_61zpoe$("cepcjChildContentEntryUid"),l=e.getInt_61zpoe$("childIndex"),u=new eet;return u.cepcjUid=n,u.cepcjLocalChangeSeqNum=i,u.cepcjMasterChangeSeqNum=o,u.cepcjLastChangedBy=r,u.cepcjLct=s,u.cepcjParentContentEntryUid=a,u.cepcjChildContentEntryUid=c,u.childIndex=l,u}));var e}function Fb(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("cepcjUid"),i=e.getLong_61zpoe$("cepcjLocalChangeSeqNum"),o=e.getLong_61zpoe$("cepcjMasterChangeSeqNum"),r=e.getInt_61zpoe$("cepcjLastChangedBy"),s=e.getLong_61zpoe$("cepcjLct"),a=e.getLong_61zpoe$("cepcjParentContentEntryUid"),c=e.getLong_61zpoe$("cepcjChildContentEntryUid"),l=e.getInt_61zpoe$("childIndex"),u=new eet;return u.cepcjUid=n,u.cepcjLocalChangeSeqNum=i,u.cepcjMasterChangeSeqNum=o,u.cepcjLastChangedBy=r,u.cepcjLct=s,u.cepcjParentContentEntryUid=a,u.cepcjChildContentEntryUid=c,u.childIndex=l,u}));var e}function Bb(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("cepcjUid"),i=e.getLong_61zpoe$("cepcjLocalChangeSeqNum"),o=e.getLong_61zpoe$("cepcjMasterChangeSeqNum"),r=e.getInt_61zpoe$("cepcjLastChangedBy"),s=e.getLong_61zpoe$("cepcjLct"),a=e.getLong_61zpoe$("cepcjParentContentEntryUid"),c=e.getLong_61zpoe$("cepcjChildContentEntryUid"),l=e.getInt_61zpoe$("childIndex"),u=new eet;return u.cepcjUid=n,u.cepcjLocalChangeSeqNum=i,u.cepcjMasterChangeSeqNum=o,u.cepcjLastChangedBy=r,u.cepcjLct=s,u.cepcjParentContentEntryUid=a,u.cepcjChildContentEntryUid=c,u.childIndex=l,u}));var e}function Wb(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("cepcjUid"),i=e.getLong_61zpoe$("cepcjLocalChangeSeqNum"),o=e.getLong_61zpoe$("cepcjMasterChangeSeqNum"),r=e.getInt_61zpoe$("cepcjLastChangedBy"),s=e.getLong_61zpoe$("cepcjLct"),a=e.getLong_61zpoe$("cepcjParentContentEntryUid"),c=e.getLong_61zpoe$("cepcjChildContentEntryUid"),l=e.getInt_61zpoe$("childIndex"),u=new eet;return u.cepcjUid=n,u.cepcjLocalChangeSeqNum=i,u.cepcjMasterChangeSeqNum=o,u.cepcjLastChangedBy=r,u.cepcjLct=s,u.cepcjParentContentEntryUid=a,u.cepcjChildContentEntryUid=c,u.childIndex=l,u}));var e}function Hb(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("contentEntryUid"),i=e.getString_61zpoe$("title"),o=e.getString_61zpoe$("description"),r=e.getString_61zpoe$("entryId"),s=e.getString_61zpoe$("author"),a=e.getString_61zpoe$("publisher"),c=e.getInt_61zpoe$("licenseType"),l=e.getString_61zpoe$("licenseName"),u=e.getString_61zpoe$("licenseUrl"),h=e.getString_61zpoe$("sourceUrl"),d=e.getString_61zpoe$("thumbnailUrl"),p=e.getLong_61zpoe$("lastModified"),_=e.getLong_61zpoe$("primaryLanguageUid"),m=e.getLong_61zpoe$("languageVariantUid"),f=e.getInt_61zpoe$("contentFlags"),g=e.getBoolean_61zpoe$("leaf"),$=e.getBoolean_61zpoe$("publik"),E=e.getBoolean_61zpoe$("ceInactive"),y=e.getInt_61zpoe$("completionCriteria"),b=e.getInt_61zpoe$("minScore"),S=e.getInt_61zpoe$("contentTypeFlag"),v=e.getLong_61zpoe$("contentOwner"),C=e.getLong_61zpoe$("contentEntryLocalChangeSeqNum"),N=e.getLong_61zpoe$("contentEntryMasterChangeSeqNum"),T=e.getInt_61zpoe$("contentEntryLastChangedBy"),L=e.getLong_61zpoe$("contentEntryLct"),z=new Ott;return z.contentEntryUid=n,z.title=i,z.description=o,z.entryId=r,z.author=s,z.publisher=a,z.licenseType=c,z.licenseName=l,z.licenseUrl=u,z.sourceUrl=h,z.thumbnailUrl=d,z.lastModified=p,z.primaryLanguageUid=_,z.languageVariantUid=m,z.contentFlags=f,z.leaf=g,z.publik=$,z.ceInactive=E,z.completionCriteria=y,z.minScore=b,z.contentTypeFlag=S,z.contentOwner=v,z.contentEntryLocalChangeSeqNum=C,z.contentEntryMasterChangeSeqNum=N,z.contentEntryLastChangedBy=T,z.contentEntryLct=L,z}));var e}function Vb(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function Kb(t,e,n){var i=new Vb(t,e);return n?i:i.doResume(null)}function Xb(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$contentEntryUid=t,this.local$closure$updateTime=e,this.local$closure$selectedItems=n,this.local$_stmt=i}function Jb(t,e,n){return function(i,o,r){var s=new Xb(t,e,n,i,o);return r?s:s.doResume(null)}}function Yb(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$contentEntryUid=e,this.local$selectedItems=n,this.local$updateTime=i}function Qb(t){pt.call(this,t)}function Zb(t){pt.call(this,t)}function tS(t,e){zb.call(this),this._db_0=t,this._dao_0=e}function eS(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function nS(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function iS(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_pkManager=void 0,this.local$_generatedPks=void 0,this.local$$receiver=void 0,this.local$element=void 0,this.local$entityList=e}function oS(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$contentEntryUid=e,this.local$selectedItems=n,this.local$updateTime=i}function rS(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function sS(t,e,n,i,o,r){zb.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function aS(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function cS(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function lS(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function uS(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function hS(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$contentEntryUid=e,this.local$selectedItems=n,this.local$updateTime=i}function dS(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function pS(){}function _S(t){pS.call(this),this._db=t,this._insertAdapterContentEntryPicture_=new RS(this._db)}function mS(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function fS(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$ContentEntryPicture=t,this.local$_stmt=e}function gS(t){return function(e,n,i){var o=new fS(t,e,n);return i?o:o.doResume(null)}}function $S(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$ContentEntryPicture=e}function ES(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function yS(t){return function(e,n,i){var o=new ES(t,e,n);return i?o:o.doResume(null)}}function bS(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function SS(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function vS(t,e,n){var i=new SS(t,e);return n?i:i.doResume(null)}function CS(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function NS(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("cepUid"),i=e.getLong_61zpoe$("cepContentEntryUid"),o=e.getString_61zpoe$("cepUri"),r=e.getString_61zpoe$("cepMd5"),s=e.getInt_61zpoe$("cepFileSize"),a=e.getLong_61zpoe$("cepTimestamp"),c=e.getString_61zpoe$("cepMimeType"),l=e.getBoolean_61zpoe$("cepActive"),u=new uet;return u.cepUid=n,u.cepContentEntryUid=i,u.cepUri=o,u.cepMd5=r,u.cepFileSize=s,u.cepTimestamp=a,u.cepMimeType=c,u.cepActive=l,u}));var e}function TS(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$entryUid=t,this.local$_stmt=e}function LS(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("cepUid"),i=e.getLong_61zpoe$("cepContentEntryUid"),o=e.getString_61zpoe$("cepUri"),r=e.getString_61zpoe$("cepMd5"),s=e.getInt_61zpoe$("cepFileSize"),a=e.getLong_61zpoe$("cepTimestamp"),c=e.getString_61zpoe$("cepMimeType"),l=e.getBoolean_61zpoe$("cepActive"),u=new uet;return u.cepUid=n,u.cepContentEntryUid=i,u.cepUri=o,u.cepMd5=r,u.cepFileSize=s,u.cepTimestamp=a,u.cepMimeType=c,u.cepActive=l,u}));var e}function zS(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$entryUid=t,this.local$_stmt=e}function wS(t){return function(e,n,i){var o=new zS(t,e,n);return i?o:o.doResume(null)}}function OS(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$ContentEntryPictureDao_JdbcKt=t,this.local$closure$entryUid=e}function RS(t){pt.call(this,t)}function AS(t,e){pS.call(this),this._db_0=t,this._dao_0=e}function xS(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function IS(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function US(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$ContentEntryPicture=e}function DS(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function PS(t,e,n,i,o,r){pS.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function MS(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function kS(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function jS(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entryUid=e}function GS(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$ContentEntryPicture=e}function qS(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function FS(){}function BS(t){FS.call(this),this._db=t,this._insertAdapterContentEntryRelatedEntryJoin_=new dv(this._db)}function WS(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function HS(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function VS(t){return function(e,n,i){var o=new HS(t,e,n);return i?o:o.doResume(null)}}function KS(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function XS(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function JS(t,e,n){var i=new XS(t,e);return n?i:i.doResume(null)}function YS(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function QS(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("cerejUid"),i=e.getLong_61zpoe$("cerejContentEntryUid"),o=e.getLong_61zpoe$("cerejRelatedEntryUid"),r=e.getInt_61zpoe$("cerejLastChangedBy"),s=e.getInt_61zpoe$("relType"),a=e.getString_61zpoe$("comment"),c=e.getLong_61zpoe$("cerejRelLanguageUid"),l=e.getLong_61zpoe$("cerejLocalChangeSeqNum"),u=e.getLong_61zpoe$("cerejMasterChangeSeqNum"),h=e.getLong_61zpoe$("cerejLct"),d=new $et;return d.cerejUid=n,d.cerejContentEntryUid=i,d.cerejRelatedEntryUid=o,d.cerejLastChangedBy=r,d.relType=s,d.comment=a,d.cerejRelLanguageUid=c,d.cerejLocalChangeSeqNum=l,d.cerejMasterChangeSeqNum=u,d.cerejLct=h,d}));var e}function ZS(t){return ut(t.executeQuery(),QS)}function tv(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("cerejUid"),i=e.getLong_61zpoe$("cerejContentEntryUid"),o=e.getLong_61zpoe$("cerejRelatedEntryUid"),r=e.getInt_61zpoe$("cerejLastChangedBy"),s=e.getInt_61zpoe$("relType"),a=e.getString_61zpoe$("comment"),c=e.getLong_61zpoe$("cerejRelLanguageUid"),l=e.getLong_61zpoe$("cerejLocalChangeSeqNum"),u=e.getLong_61zpoe$("cerejMasterChangeSeqNum"),h=e.getLong_61zpoe$("cerejLct"),d=new $et;return d.cerejUid=n,d.cerejContentEntryUid=i,d.cerejRelatedEntryUid=o,d.cerejLastChangedBy=r,d.relType=s,d.comment=a,d.cerejRelLanguageUid=c,d.cerejLocalChangeSeqNum=l,d.cerejMasterChangeSeqNum=u,d.cerejLct=h,d}));var e}function ev(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("cerejContentEntryUid"),i=e.getLong_61zpoe$("cerejRelatedEntryUid"),o=e.getString_61zpoe$("languageName"),r=new Tet;return r.cerejContentEntryUid=n,r.cerejRelatedEntryUid=i,r.languageName=o,r}));var e}function nv(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$contentEntryUid=t,this.local$_stmt=e}function iv(t,e){this.this$ContentEntryRelatedEntryJoinDao_JdbcKt=t,this.closure$contentEntryUid=e,gt.call(this)}function ov(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("cerejUid"),i=e.getLong_61zpoe$("cerejContentEntryUid"),o=e.getLong_61zpoe$("cerejRelatedEntryUid"),r=e.getInt_61zpoe$("cerejLastChangedBy"),s=e.getInt_61zpoe$("relType"),a=e.getString_61zpoe$("comment"),c=e.getLong_61zpoe$("cerejRelLanguageUid"),l=e.getLong_61zpoe$("cerejLocalChangeSeqNum"),u=e.getLong_61zpoe$("cerejMasterChangeSeqNum"),h=e.getLong_61zpoe$("cerejLct"),d=0,p=e.getLong_61zpoe$("langUid");e.wasNull()&&(d=d+1|0);var _=e.getString_61zpoe$("name");e.wasNull()&&(d=d+1|0);var m=e.getString_61zpoe$("iso_639_1_standard");e.wasNull()&&(d=d+1|0);var f=e.getString_61zpoe$("iso_639_2_standard");e.wasNull()&&(d=d+1|0);var g=e.getString_61zpoe$("iso_639_3_standard");e.wasNull()&&(d=d+1|0);var $=e.getString_61zpoe$("Language_Type");e.wasNull()&&(d=d+1|0);var E=e.getBoolean_61zpoe$("languageActive");e.wasNull()&&(d=d+1|0);var y=e.getLong_61zpoe$("langLocalChangeSeqNum");e.wasNull()&&(d=d+1|0);var b=e.getLong_61zpoe$("langMasterChangeSeqNum");e.wasNull()&&(d=d+1|0);var S=e.getInt_61zpoe$("langLastChangedBy");e.wasNull()&&(d=d+1|0);var v=e.getLong_61zpoe$("langLct");e.wasNull()&&(d=d+1|0);var C=11===d,N=new Iet;if(N.cerejUid=n,N.cerejContentEntryUid=i,N.cerejRelatedEntryUid=o,N.cerejLastChangedBy=r,N.relType=s,N.comment=a,N.cerejRelLanguageUid=c,N.cerejLocalChangeSeqNum=l,N.cerejMasterChangeSeqNum=u,N.cerejLct=h,!C){var T=new kst;T.langUid=p,T.name=_,T.iso_639_1_standard=m,T.iso_639_2_standard=f,T.iso_639_3_standard=g,T.Language_Type=$,T.languageActive=E,T.langLocalChangeSeqNum=y,T.langMasterChangeSeqNum=b,T.langLastChangedBy=S,T.langLct=v,N.language=T}return N}));var e}function rv(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$contentEntryUid=t,this.local$closure$_limit=e,this.local$closure$_offset=n,this.local$_stmt=i}function sv(t,e,n){return function(i,o,r){var s=new rv(t,e,n,i,o);return r?s:s.doResume(null)}}function av(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$this$ContentEntryRelatedEntryJoinDao_JdbcKt=t,this.local$closure$contentEntryUid=e,this.local$closure$_limit=n,this.local$closure$_offset=i}function cv(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function lv(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$contentEntryUid=t,this.local$_stmt=e}function uv(t){return function(e,n,i){var o=new lv(t,e,n);return i?o:o.doResume(null)}}function hv(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$ContentEntryRelatedEntryJoinDao_JdbcKt=t,this.local$closure$contentEntryUid=e}function dv(t){pt.call(this,t)}function pv(t,e){FS.call(this),this._db_0=t,this._dao_0=e}function _v(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function mv(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function fv(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function gv(t,e,n,i,o,r){FS.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function $v(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function Ev(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function yv(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$contentEntryUid=e}function bv(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Sv(){}function vv(t){Sv.call(this),this._db=t,this._insertAdapterContentJob_=new Bv(this._db)}function Cv(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$contentJob=e}function Nv(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("cjUid"),i=e.getString_61zpoe$("toUri"),o=e.getLong_61zpoe$("cjProgress"),r=e.getLong_61zpoe$("cjTotal"),s=e.getString_61zpoe$("cjNotificationTitle"),a=e.getBoolean_61zpoe$("cjIsMeteredAllowed"),c=e.getString_61zpoe$("params"),l=new Dnt;return l.cjUid=n,l.toUri=i,l.cjProgress=o,l.cjTotal=r,l.cjNotificationTitle=s,l.cjIsMeteredAllowed=a,l.params=c,l}));var e}function Tv(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("cjUid"),i=e.getString_61zpoe$("toUri"),o=e.getLong_61zpoe$("cjProgress"),r=e.getLong_61zpoe$("cjTotal"),s=e.getString_61zpoe$("cjNotificationTitle"),a=e.getBoolean_61zpoe$("cjIsMeteredAllowed"),c=e.getString_61zpoe$("params"),l=new Dnt;return l.cjUid=n,l.toUri=i,l.cjProgress=o,l.cjTotal=r,l.cjNotificationTitle=s,l.cjIsMeteredAllowed=a,l.params=c,l}));var e}function Lv(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$cjUid=t,this.local$_stmt=e}function zv(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("cjUid"),i=e.getString_61zpoe$("toUri"),o=e.getLong_61zpoe$("cjProgress"),r=e.getLong_61zpoe$("cjTotal"),s=e.getString_61zpoe$("cjNotificationTitle"),a=e.getBoolean_61zpoe$("cjIsMeteredAllowed"),c=e.getString_61zpoe$("params"),l=new Dnt;return l.cjUid=n,l.toUri=i,l.cjProgress=o,l.cjTotal=r,l.cjNotificationTitle=s,l.cjIsMeteredAllowed=a,l.params=c,l}));var e}function wv(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$cjUid=t,this.local$_stmt=e}function Ov(t){return function(e,n,i){var o=new wv(t,e,n);return i?o:o.doResume(null)}}function Rv(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$ContentJobDao_JdbcKt=t,this.local$closure$cjUid=e}function Av(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$toUri=t,this.local$closure$cjUid=e,this.local$_stmt=n}function xv(t,e){return function(n,i,o){var r=new Av(t,e,n,i);return o?r:r.doResume(null)}}function Iv(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$cjUid=e,this.local$toUri=n}function Uv(t){return lt(t,!1,(e=t,function(t){return e.getBoolean_za3lpa$(1)}));var e}function Dv(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$contentJobId=t,this.local$_stmt=e}function Pv(t){return function(e,n,i){var o=new Dv(t,e,n);return i?o:o.doResume(null)}}function Mv(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$ContentJobDao_JdbcKt=t,this.local$closure$contentJobId=e}function kv(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$meteredAllowed=t,this.local$closure$contentEntryUid=e,this.local$_stmt=n}function jv(t,e){return function(n,i,o){var r=new kv(t,e,n,i);return o?r:r.doResume(null)}}function Gv(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$contentEntryUid=e,this.local$meteredAllowed=n}function qv(t){return lt(t,!1,(e=t,function(t){return e.getBoolean_za3lpa$(1)}));var e}function Fv(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$jobId=t,this.local$_stmt=e}function Bv(t){pt.call(this,t)}function Wv(){}function Hv(t){Wv.call(this),this._db=t,this._insertAdapterContentJobItem_=new YC(this._db)}function Vv(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$jobItem=e}function Kv(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$jobItems=e}function Xv(t){return mt(t,(e=t,function(t){var n=0,i=e.getLong_61zpoe$("cjiUid");e.wasNull()&&(n=n+1|0);var o=e.getLong_61zpoe$("cjiJobUid");e.wasNull()&&(n=n+1|0);var r=e.getString_61zpoe$("sourceUri");e.wasNull()&&(n=n+1|0);var s=e.getBoolean_61zpoe$("cjiIsLeaf");e.wasNull()&&(n=n+1|0);var a=e.getLong_61zpoe$("cjiContentEntryUid");e.wasNull()&&(n=n+1|0);var c=e.getLong_61zpoe$("cjiParentContentEntryUid");e.wasNull()&&(n=n+1|0);var l=e.getLong_61zpoe$("cjiContainerUid");e.wasNull()&&(n=n+1|0);var u=e.getLong_61zpoe$("cjiItemProgress");e.wasNull()&&(n=n+1|0);var h=e.getLong_61zpoe$("cjiItemTotal");e.wasNull()&&(n=n+1|0);var d=e.getLong_61zpoe$("cjiRecursiveProgress");e.wasNull()&&(n=n+1|0);var p=e.getLong_61zpoe$("cjiRecursiveTotal");e.wasNull()&&(n=n+1|0);var _=e.getInt_61zpoe$("cjiStatus");e.wasNull()&&(n=n+1|0);var m=e.getInt_61zpoe$("cjiRecursiveStatus");e.wasNull()&&(n=n+1|0);var f=e.getBoolean_61zpoe$("cjiConnectivityNeeded");e.wasNull()&&(n=n+1|0);var g=e.getInt_61zpoe$("cjiPluginId");e.wasNull()&&(n=n+1|0);var $=e.getInt_61zpoe$("cjiAttemptCount");e.wasNull()&&(n=n+1|0);var E=e.getLong_61zpoe$("cjiParentCjiUid");e.wasNull()&&(n=n+1|0);var y=e.getLong_61zpoe$("cjiServerJobId");e.wasNull()&&(n=n+1|0);var b=e.getLong_61zpoe$("cjiStartTime");e.wasNull()&&(n=n+1|0);var S=e.getLong_61zpoe$("cjiFinishTime");e.wasNull()&&(n=n+1|0);var v=e.getString_61zpoe$("cjiUploadSessionUid");e.wasNull()&&(n=n+1|0);var C=e.getBoolean_61zpoe$("cjiContentDeletedOnCancellation");e.wasNull()&&(n=n+1|0);var N=e.getBoolean_61zpoe$("cjiContainerProcessed");e.wasNull()&&(n=n+1|0);var T=23===n,L=0,z=e.getLong_61zpoe$("cjUid");e.wasNull()&&(L=L+1|0);var w=e.getString_61zpoe$("toUri");e.wasNull()&&(L=L+1|0);var O=e.getLong_61zpoe$("cjProgress");e.wasNull()&&(L=L+1|0);var R=e.getLong_61zpoe$("cjTotal");e.wasNull()&&(L=L+1|0);var A=e.getString_61zpoe$("cjNotificationTitle");e.wasNull()&&(L=L+1|0);var x=e.getBoolean_61zpoe$("cjIsMeteredAllowed");e.wasNull()&&(L=L+1|0);var I=e.getString_61zpoe$("params");e.wasNull()&&(L=L+1|0);var U=7===L,D=new Mnt;if(!T){var P=new Pnt;P.cjiUid=i,P.cjiJobUid=o,P.sourceUri=r,P.cjiIsLeaf=s,P.cjiContentEntryUid=a,P.cjiParentContentEntryUid=c,P.cjiContainerUid=l,P.cjiItemProgress=u,P.cjiItemTotal=h,P.cjiRecursiveProgress=d,P.cjiRecursiveTotal=p,P.cjiStatus=_,P.cjiRecursiveStatus=m,P.cjiConnectivityNeeded=f,P.cjiPluginId=g,P.cjiAttemptCount=$,P.cjiParentCjiUid=E,P.cjiServerJobId=y,P.cjiStartTime=b,P.cjiFinishTime=S,P.cjiUploadSessionUid=v,P.cjiContentDeletedOnCancellation=C,P.cjiContainerProcessed=N,D.contentJobItem=P}if(!U){var M=new Dnt;M.cjUid=z,M.toUri=w,M.cjProgress=O,M.cjTotal=R,M.cjNotificationTitle=A,M.cjIsMeteredAllowed=x,M.params=I,D.contentJob=M}return D}));var e}function Jv(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$contentJobUid=t,this.local$closure$limit=e,this.local$_stmt=n}function Yv(t){return mt(t,(e=t,function(t){var n=e.getInt_61zpoe$("progress"),i=e.getInt_61zpoe$("total"),o=e.getString_61zpoe$("progressTitle"),r=e.getLong_61zpoe$("cjiUid"),s=new knt;return s.progress=n,s.total=i,s.progressTitle=o,s.cjiUid=r,s}));var e}function Qv(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$contentEntryUid=t,this.local$_stmt=e}function Zv(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$status=t,this.local$closure$cjiUid=e,this.local$_stmt=n}function tC(t,e){return function(n,i,o){var r=new Zv(t,e,n,i);return o?r:r.doResume(null)}}function eC(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$cjiUid=e,this.local$status=n}function nC(t){return lt(t,!1,(e=t,function(t){return e.getBoolean_za3lpa$(1)}));var e}function iC(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$jobUid=t,this.local$_stmt=e}function oC(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("cjiUid"),i=e.getLong_61zpoe$("cjiJobUid"),o=e.getString_61zpoe$("sourceUri"),r=e.getBoolean_61zpoe$("cjiIsLeaf"),s=e.getLong_61zpoe$("cjiContentEntryUid"),a=e.getLong_61zpoe$("cjiParentContentEntryUid"),c=e.getLong_61zpoe$("cjiContainerUid"),l=e.getLong_61zpoe$("cjiItemProgress"),u=e.getLong_61zpoe$("cjiItemTotal"),h=e.getLong_61zpoe$("cjiRecursiveProgress"),d=e.getLong_61zpoe$("cjiRecursiveTotal"),p=e.getInt_61zpoe$("cjiStatus"),_=e.getInt_61zpoe$("cjiRecursiveStatus"),m=e.getBoolean_61zpoe$("cjiConnectivityNeeded"),f=e.getInt_61zpoe$("cjiPluginId"),g=e.getInt_61zpoe$("cjiAttemptCount"),$=e.getLong_61zpoe$("cjiParentCjiUid"),E=e.getLong_61zpoe$("cjiServerJobId"),y=e.getLong_61zpoe$("cjiStartTime"),b=e.getLong_61zpoe$("cjiFinishTime"),S=e.getString_61zpoe$("cjiUploadSessionUid"),v=e.getBoolean_61zpoe$("cjiContentDeletedOnCancellation"),C=e.getBoolean_61zpoe$("cjiContainerProcessed"),N=new Pnt;return N.cjiUid=n,N.cjiJobUid=i,N.sourceUri=o,N.cjiIsLeaf=r,N.cjiContentEntryUid=s,N.cjiParentContentEntryUid=a,N.cjiContainerUid=c,N.cjiItemProgress=l,N.cjiItemTotal=u,N.cjiRecursiveProgress=h,N.cjiRecursiveTotal=d,N.cjiStatus=p,N.cjiRecursiveStatus=_,N.cjiConnectivityNeeded=m,N.cjiPluginId=f,N.cjiAttemptCount=g,N.cjiParentCjiUid=$,N.cjiServerJobId=E,N.cjiStartTime=y,N.cjiFinishTime=b,N.cjiUploadSessionUid=S,N.cjiContentDeletedOnCancellation=v,N.cjiContainerProcessed=C,N}));var e}function rC(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$cjiProgress=t,this.local$closure$cjiTotal=e,this.local$closure$cjiUid=n,this.local$_stmt=i}function sC(t,e,n){return function(i,o,r){var s=new rC(t,e,n,i,o);return r?s:s.doResume(null)}}function aC(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$cjiUid=e,this.local$cjiProgress=n,this.local$cjiTotal=i}function cC(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$connectivityNeeded=t,this.local$closure$contentJobItemId=e,this.local$_stmt=n}function lC(t,e){return function(n,i,o){var r=new cC(t,e,n,i);return o?r:r.doResume(null)}}function uC(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$contentJobItemId=e,this.local$connectivityNeeded=n}function hC(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$cjiContainerProcessed=t,this.local$closure$contentJobItemId=e,this.local$_stmt=n}function dC(t,e){return function(n,i,o){var r=new hC(t,e,n,i);return o?r:r.doResume(null)}}function pC(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$contentJobItemId=e,this.local$cjiContainerProcessed=n}function _C(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$status=t,this.local$closure$attemptCount=e,this.local$closure$cjiUid=n,this.local$_stmt=i}function mC(t,e,n){return function(i,o,r){var s=new _C(t,e,n,i,o);return r?s:s.doResume(null)}}function fC(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$cjiUid=e,this.local$attemptCount=n,this.local$status=i}function gC(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$startTime=t,this.local$closure$cjiUid=e,this.local$_stmt=n}function $C(t,e){return function(n,i,o){var r=new gC(t,e,n,i);return o?r:r.doResume(null)}}function EC(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$cjiUid=e,this.local$startTime=n}function yC(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$finishTime=t,this.local$closure$cjiUid=e,this.local$_stmt=n}function bC(t,e){return function(n,i,o){var r=new yC(t,e,n,i);return o?r:r.doResume(null)}}function SC(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$cjiUid=e,this.local$finishTime=n}function vC(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$contentEntryUid=t,this.local$closure$cjiUid=e,this.local$_stmt=n}function CC(t,e){return function(n,i,o){var r=new vC(t,e,n,i);return o?r:r.doResume(null)}}function NC(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$cjiUid=e,this.local$contentEntryUid=n}function TC(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$containerUid=t,this.local$closure$cjiUid=e,this.local$_stmt=n}function LC(t,e){return function(n,i,o){var r=new TC(t,e,n,i);return o?r:r.doResume(null)}}function zC(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$cjiUid=e,this.local$containerUid=n}function wC(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("cjiUid"),i=e.getLong_61zpoe$("cjiJobUid"),o=e.getString_61zpoe$("sourceUri"),r=e.getBoolean_61zpoe$("cjiIsLeaf"),s=e.getLong_61zpoe$("cjiContentEntryUid"),a=e.getLong_61zpoe$("cjiParentContentEntryUid"),c=e.getLong_61zpoe$("cjiContainerUid"),l=e.getLong_61zpoe$("cjiItemProgress"),u=e.getLong_61zpoe$("cjiItemTotal"),h=e.getLong_61zpoe$("cjiRecursiveProgress"),d=e.getLong_61zpoe$("cjiRecursiveTotal"),p=e.getInt_61zpoe$("cjiStatus"),_=e.getInt_61zpoe$("cjiRecursiveStatus"),m=e.getBoolean_61zpoe$("cjiConnectivityNeeded"),f=e.getInt_61zpoe$("cjiPluginId"),g=e.getInt_61zpoe$("cjiAttemptCount"),$=e.getLong_61zpoe$("cjiParentCjiUid"),E=e.getLong_61zpoe$("cjiServerJobId"),y=e.getLong_61zpoe$("cjiStartTime"),b=e.getLong_61zpoe$("cjiFinishTime"),S=e.getString_61zpoe$("cjiUploadSessionUid"),v=e.getBoolean_61zpoe$("cjiContentDeletedOnCancellation"),C=e.getBoolean_61zpoe$("cjiContainerProcessed"),N=new Pnt;return N.cjiUid=n,N.cjiJobUid=i,N.sourceUri=o,N.cjiIsLeaf=r,N.cjiContentEntryUid=s,N.cjiParentContentEntryUid=a,N.cjiContainerUid=c,N.cjiItemProgress=l,N.cjiItemTotal=u,N.cjiRecursiveProgress=h,N.cjiRecursiveTotal=d,N.cjiStatus=p,N.cjiRecursiveStatus=_,N.cjiConnectivityNeeded=m,N.cjiPluginId=f,N.cjiAttemptCount=g,N.cjiParentCjiUid=$,N.cjiServerJobId=E,N.cjiStartTime=y,N.cjiFinishTime=b,N.cjiUploadSessionUid=S,N.cjiContentDeletedOnCancellation=v,N.cjiContainerProcessed=C,N}));var e}function OC(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function RC(t,e,n){var i=new OC(t,e);return n?i:i.doResume(null)}function AC(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("cjiUid"),i=e.getLong_61zpoe$("cjiJobUid"),o=e.getString_61zpoe$("sourceUri"),r=e.getBoolean_61zpoe$("cjiIsLeaf"),s=e.getLong_61zpoe$("cjiContentEntryUid"),a=e.getLong_61zpoe$("cjiParentContentEntryUid"),c=e.getLong_61zpoe$("cjiContainerUid"),l=e.getLong_61zpoe$("cjiItemProgress"),u=e.getLong_61zpoe$("cjiItemTotal"),h=e.getLong_61zpoe$("cjiRecursiveProgress"),d=e.getLong_61zpoe$("cjiRecursiveTotal"),p=e.getInt_61zpoe$("cjiStatus"),_=e.getInt_61zpoe$("cjiRecursiveStatus"),m=e.getBoolean_61zpoe$("cjiConnectivityNeeded"),f=e.getInt_61zpoe$("cjiPluginId"),g=e.getInt_61zpoe$("cjiAttemptCount"),$=e.getLong_61zpoe$("cjiParentCjiUid"),E=e.getLong_61zpoe$("cjiServerJobId"),y=e.getLong_61zpoe$("cjiStartTime"),b=e.getLong_61zpoe$("cjiFinishTime"),S=e.getString_61zpoe$("cjiUploadSessionUid"),v=e.getBoolean_61zpoe$("cjiContentDeletedOnCancellation"),C=e.getBoolean_61zpoe$("cjiContainerProcessed"),N=new Pnt;return N.cjiUid=n,N.cjiJobUid=i,N.sourceUri=o,N.cjiIsLeaf=r,N.cjiContentEntryUid=s,N.cjiParentContentEntryUid=a,N.cjiContainerUid=c,N.cjiItemProgress=l,N.cjiItemTotal=u,N.cjiRecursiveProgress=h,N.cjiRecursiveTotal=d,N.cjiStatus=p,N.cjiRecursiveStatus=_,N.cjiConnectivityNeeded=m,N.cjiPluginId=f,N.cjiAttemptCount=g,N.cjiParentCjiUid=$,N.cjiServerJobId=E,N.cjiStartTime=y,N.cjiFinishTime=b,N.cjiUploadSessionUid=S,N.cjiContentDeletedOnCancellation=v,N.cjiContainerProcessed=C,N}));var e}function xC(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$cjiUid=t,this.local$_stmt=e}function IC(t){return lt(t,X,(e=t,function(t){return e.getLong_za3lpa$(1)}));var e}function UC(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$contentEntryUid=t,this.local$_stmt=e}function DC(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$uploadSessionUuid=t,this.local$closure$cjiUid=e,this.local$_stmt=n}function PC(t,e){return function(n,i,o){var r=new DC(t,e,n,i);return o?r:r.doResume(null)}}function MC(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$cjiUid=e,this.local$uploadSessionUuid=n}function kC(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("cjiUid"),i=e.getLong_61zpoe$("cjiJobUid"),o=e.getString_61zpoe$("sourceUri"),r=e.getBoolean_61zpoe$("cjiIsLeaf"),s=e.getLong_61zpoe$("cjiContentEntryUid"),a=e.getLong_61zpoe$("cjiParentContentEntryUid"),c=e.getLong_61zpoe$("cjiContainerUid"),l=e.getLong_61zpoe$("cjiItemProgress"),u=e.getLong_61zpoe$("cjiItemTotal"),h=e.getLong_61zpoe$("cjiRecursiveProgress"),d=e.getLong_61zpoe$("cjiRecursiveTotal"),p=e.getInt_61zpoe$("cjiStatus"),_=e.getInt_61zpoe$("cjiRecursiveStatus"),m=e.getBoolean_61zpoe$("cjiConnectivityNeeded"),f=e.getInt_61zpoe$("cjiPluginId"),g=e.getInt_61zpoe$("cjiAttemptCount"),$=e.getLong_61zpoe$("cjiParentCjiUid"),E=e.getLong_61zpoe$("cjiServerJobId"),y=e.getLong_61zpoe$("cjiStartTime"),b=e.getLong_61zpoe$("cjiFinishTime"),S=e.getString_61zpoe$("cjiUploadSessionUid"),v=e.getBoolean_61zpoe$("cjiContentDeletedOnCancellation"),C=e.getBoolean_61zpoe$("cjiContainerProcessed"),N=new Pnt;return N.cjiUid=n,N.cjiJobUid=i,N.sourceUri=o,N.cjiIsLeaf=r,N.cjiContentEntryUid=s,N.cjiParentContentEntryUid=a,N.cjiContainerUid=c,N.cjiItemProgress=l,N.cjiItemTotal=u,N.cjiRecursiveProgress=h,N.cjiRecursiveTotal=d,N.cjiStatus=p,N.cjiRecursiveStatus=_,N.cjiConnectivityNeeded=m,N.cjiPluginId=f,N.cjiAttemptCount=g,N.cjiParentCjiUid=$,N.cjiServerJobId=E,N.cjiStartTime=y,N.cjiFinishTime=b,N.cjiUploadSessionUid=S,N.cjiContentDeletedOnCancellation=v,N.cjiContainerProcessed=C,N}));var e}function jC(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("cjiUid"),i=e.getLong_61zpoe$("cjiJobUid"),o=e.getString_61zpoe$("sourceUri"),r=e.getBoolean_61zpoe$("cjiIsLeaf"),s=e.getLong_61zpoe$("cjiContentEntryUid"),a=e.getLong_61zpoe$("cjiParentContentEntryUid"),c=e.getLong_61zpoe$("cjiContainerUid"),l=e.getLong_61zpoe$("cjiItemProgress"),u=e.getLong_61zpoe$("cjiItemTotal"),h=e.getLong_61zpoe$("cjiRecursiveProgress"),d=e.getLong_61zpoe$("cjiRecursiveTotal"),p=e.getInt_61zpoe$("cjiStatus"),_=e.getInt_61zpoe$("cjiRecursiveStatus"),m=e.getBoolean_61zpoe$("cjiConnectivityNeeded"),f=e.getInt_61zpoe$("cjiPluginId"),g=e.getInt_61zpoe$("cjiAttemptCount"),$=e.getLong_61zpoe$("cjiParentCjiUid"),E=e.getLong_61zpoe$("cjiServerJobId"),y=e.getLong_61zpoe$("cjiStartTime"),b=e.getLong_61zpoe$("cjiFinishTime"),S=e.getString_61zpoe$("cjiUploadSessionUid"),v=e.getBoolean_61zpoe$("cjiContentDeletedOnCancellation"),C=e.getBoolean_61zpoe$("cjiContainerProcessed"),N=new Pnt;return N.cjiUid=n,N.cjiJobUid=i,N.sourceUri=o,N.cjiIsLeaf=r,N.cjiContentEntryUid=s,N.cjiParentContentEntryUid=a,N.cjiContainerUid=c,N.cjiItemProgress=l,N.cjiItemTotal=u,N.cjiRecursiveProgress=h,N.cjiRecursiveTotal=d,N.cjiStatus=p,N.cjiRecursiveStatus=_,N.cjiConnectivityNeeded=m,N.cjiPluginId=f,N.cjiAttemptCount=g,N.cjiParentCjiUid=$,N.cjiServerJobId=E,N.cjiStartTime=y,N.cjiFinishTime=b,N.cjiUploadSessionUid=S,N.cjiContentDeletedOnCancellation=v,N.cjiContainerProcessed=C,N}));var e}function GC(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function qC(t){return function(e,n,i){var o=new GC(t,e,n);return i?o:o.doResume(null)}}function FC(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$ContentJobItemDao_JdbcKt=t,this.local$closure$uid=e}function BC(t){return lt(t,X,(e=t,function(t){return e.getLong_za3lpa$(1)}));var e}function WC(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function HC(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$newStatus=t,this.local$closure$jobUid=e,this.local$_stmt=n}function VC(t,e){return function(n,i,o){var r=new HC(t,e,n,i);return o?r:r.doResume(null)}}function KC(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$jobUid=e,this.local$newStatus=n}function XC(t){return mt(t,(e=t,function(t){return e.getLong_za3lpa$(1)}));var e}function JC(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$jobUid=t,this.local$_stmt=e}function YC(t){pt.call(this,t)}function QC(){}function ZC(t){QC.call(this),this._db=t,this._insertAdapterContextXObjectStatementJoin_=new cN(this._db)}function tN(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function eN(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function nN(t){return function(e,n,i){var o=new eN(t,e,n);return i?o:o.doResume(null)}}function iN(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function oN(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function rN(t,e,n){var i=new oN(t,e);return n?i:i.doResume(null)}function sN(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function aN(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("contextXObjectStatementJoinUid"),i=e.getInt_61zpoe$("contextActivityFlag"),o=e.getLong_61zpoe$("contextStatementUid"),r=e.getLong_61zpoe$("contextXObjectUid"),s=e.getLong_61zpoe$("verbMasterChangeSeqNum"),a=e.getLong_61zpoe$("verbLocalChangeSeqNum"),c=e.getInt_61zpoe$("verbLastChangedBy"),l=e.getLong_61zpoe$("contextXObjectLct"),u=new Gnt;return u.contextXObjectStatementJoinUid=n,u.contextActivityFlag=i,u.contextStatementUid=o,u.contextXObjectUid=r,u.verbMasterChangeSeqNum=s,u.verbLocalChangeSeqNum=a,u.verbLastChangedBy=c,u.contextXObjectLct=l,u}));var e}function cN(t){pt.call(this,t)}function lN(t,e){QC.call(this),this._db_0=t,this._dao_0=e}function uN(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function hN(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function dN(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function pN(t,e,n,i,o,r){QC.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function _N(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function mN(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function fN(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function gN(){}function $N(t){gN.call(this),this._db=t,this._insertAdapterCourseAssignmentMark_=new xN(this._db)}function EN(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function yN(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function bN(t){return function(e,n,i){var o=new yN(t,e,n);return i?o:o.doResume(null)}}function SN(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function vN(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function CN(t,e,n){var i=new vN(t,e);return n?i:i.doResume(null)}function NN(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function TN(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("camUid"),i=e.getLong_61zpoe$("camAssignmentUid"),o=e.getLong_61zpoe$("camSubmitterUid"),r=e.getFloat_61zpoe$("camMark"),s=e.getInt_61zpoe$("camPenalty"),a=e.getLong_61zpoe$("camLct"),c=new Xnt;return c.camUid=n,c.camAssignmentUid=i,c.camSubmitterUid=o,c.camMark=r,c.camPenalty=s,c.camLct=a,c}));var e}function LN(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$assignmentUid=t,this.local$closure$submitterUid=e,this.local$_stmt=n}function zN(t,e){return function(n,i,o){var r=new LN(t,e,n,i);return o?r:r.doResume(null)}}function wN(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$this$CourseAssignmentMarkDao_JdbcKt=t,this.local$closure$assignmentUid=e,this.local$closure$submitterUid=n}function ON(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("camUid"),i=e.getLong_61zpoe$("camAssignmentUid"),o=e.getLong_61zpoe$("camSubmitterUid"),r=e.getFloat_61zpoe$("camMark"),s=e.getInt_61zpoe$("camPenalty"),a=e.getLong_61zpoe$("camLct"),c=new Xnt;return c.camUid=n,c.camAssignmentUid=i,c.camSubmitterUid=o,c.camMark=r,c.camPenalty=s,c.camLct=a,c}));var e}function RN(t){return lt(t,X,(e=t,function(t){return e.getLong_za3lpa$(1)}));var e}function AN(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$assignmentUid=t,this.local$closure$submitterUid=e,this.local$_stmt=n}function xN(t){pt.call(this,t)}function IN(t,e){gN.call(this),this._db_0=t,this._dao_0=e}function UN(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function DN(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function PN(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function MN(t,e,n,i,o,r){gN.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function kN(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function jN(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function GN(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$assignmentUid=e,this.local$submitterUid=n}function qN(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function FN(){}function BN(t){FN.call(this),this._db=t,this._insertAdapterCourseAssignmentSubmissionAttachment_=new ZN(this._db)}function WN(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function HN(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function VN(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}uc.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},uc.prototype=Object.create(N.prototype),uc.prototype.constructor=uc,uc.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},rc.prototype.insertAsync=function(t,e,n){var i=new uc(this,t,e);return n?i:i.doResume(null)},rc.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},rc.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},rc.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},rc.$metadata$={kind:c,simpleName:"ClazzContentJoinDao_Repo",interfaces:[ka]},hc.$metadata$={kind:c,simpleName:"ClazzDao",interfaces:[X6]},dc.prototype.insert_11rb$=function(t){return this._insertAdapterClazz_.insertAndReturnId_11rb$(t)},pc.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},pc.prototype=Object.create(N.prototype),pc.prototype.constructor=pc,pc.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterClazz_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dc.prototype.insertAsync=function(t,e,n){var i=new pc(this,t,e);return n?i:i.doResume(null)},dc.prototype.insertList_4ezy5m$=function(t){this._insertAdapterClazz_.insertList_4ezy5m$(t)},_c.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_c.prototype=Object.create(N.prototype),_c.prototype.constructor=_c,_c.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$entity.clazzName),this.local$_stmt.setString_vqvrqt$(2,this.local$closure$entity.clazzDesc),this.local$_stmt.setFloat_24o109$(3,this.local$closure$entity.attendanceAverage),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$entity.clazzHolidayUMCalendarUid),this.local$_stmt.setLong_6svq3l$(5,this.local$closure$entity.clazzScheuleUMCalendarUid),this.local$_stmt.setBoolean_fzusl$(6,this.local$closure$entity.isClazzActive),this.local$_stmt.setLong_6svq3l$(7,this.local$closure$entity.clazzLocationUid),this.local$_stmt.setLong_6svq3l$(8,this.local$closure$entity.clazzStartTime),this.local$_stmt.setLong_6svq3l$(9,this.local$closure$entity.clazzEndTime),this.local$_stmt.setLong_6svq3l$(10,this.local$closure$entity.clazzFeatures),this.local$_stmt.setLong_6svq3l$(11,this.local$closure$entity.clazzSchoolUid),this.local$_stmt.setInt_vux9f0$(12,this.local$closure$entity.clazzEnrolmentPolicy),this.local$_stmt.setLong_6svq3l$(13,this.local$closure$entity.clazzTerminologyUid),this.local$_stmt.setLong_6svq3l$(14,this.local$closure$entity.clazzMasterChangeSeqNum),this.local$_stmt.setLong_6svq3l$(15,this.local$closure$entity.clazzLocalChangeSeqNum),this.local$_stmt.setInt_vux9f0$(16,this.local$closure$entity.clazzLastChangedBy),this.local$_stmt.setLong_6svq3l$(17,this.local$closure$entity.clazzLct),this.local$_stmt.setString_vqvrqt$(18,this.local$closure$entity.clazzTimeZone),this.local$_stmt.setLong_6svq3l$(19,this.local$closure$entity.clazzStudentsPersonGroupUid),this.local$_stmt.setLong_6svq3l$(20,this.local$closure$entity.clazzTeachersPersonGroupUid),this.local$_stmt.setLong_6svq3l$(21,this.local$closure$entity.clazzPendingStudentsPersonGroupUid),this.local$_stmt.setLong_6svq3l$(22,this.local$closure$entity.clazzParentsPersonGroupUid),this.local$_stmt.setString_vqvrqt$(23,this.local$closure$entity.clazzCode),this.local$_stmt.setLong_6svq3l$(24,this.local$closure$entity.clazzUid),this.local$tmp$=this.local$closure$_result.v,this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$closure$_result.v=this.local$tmp$+this.result_0|0,V;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},fc.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fc.prototype=Object.create(N.prototype),fc.prototype.constructor=fc,fc.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_result={v:0},this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE Clazz SET clazzName = ?, clazzDesc = ?, attendanceAverage = ?, clazzHolidayUMCalendarUid = ?, clazzScheuleUMCalendarUid = ?, isClazzActive = ?, clazzLocationUid = ?, clazzStartTime = ?, clazzEndTime = ?, clazzFeatures = ?, clazzSchoolUid = ?, clazzEnrolmentPolicy = ?, clazzTerminologyUid = ?, clazzMasterChangeSeqNum = ?, clazzLocalChangeSeqNum = ?, clazzLastChangedBy = ?, clazzLct = ?, clazzTimeZone = ?, clazzStudentsPersonGroupUid = ?, clazzTeachersPersonGroupUid = ?, clazzPendingStudentsPersonGroupUid = ?, clazzParentsPersonGroupUid = ?, clazzCode = ? WHERE clazzUid = ?",mc(this.local$entity,this.local$_result),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$_result.v;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dc.prototype.updateAsync_yczdf2$=function(t,e,n){var i=new fc(this,t,e);return n?i:i.doResume(null)},dc.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE Clazz SET clazzName = ?, clazzDesc = ?, attendanceAverage = ?, clazzHolidayUMCalendarUid = ?, clazzScheuleUMCalendarUid = ?, isClazzActive = ?, clazzLocationUid = ?, clazzStartTime = ?, clazzEndTime = ?, clazzFeatures = ?, clazzSchoolUid = ?, clazzEnrolmentPolicy = ?, clazzTerminologyUid = ?, clazzMasterChangeSeqNum = ?, clazzLocalChangeSeqNum = ?, clazzLastChangedBy = ?, clazzLct = ?, clazzTimeZone = ?, clazzStudentsPersonGroupUid = ?, clazzTeachersPersonGroupUid = ?, clazzPendingStudentsPersonGroupUid = ?, clazzParentsPersonGroupUid = ?, clazzCode = ? WHERE clazzUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setString_vqvrqt$(1,i.clazzName),t.setString_vqvrqt$(2,i.clazzDesc),t.setFloat_24o109$(3,i.attendanceAverage),t.setLong_6svq3l$(4,i.clazzHolidayUMCalendarUid),t.setLong_6svq3l$(5,i.clazzScheuleUMCalendarUid),t.setBoolean_fzusl$(6,i.isClazzActive),t.setLong_6svq3l$(7,i.clazzLocationUid),t.setLong_6svq3l$(8,i.clazzStartTime),t.setLong_6svq3l$(9,i.clazzEndTime),t.setLong_6svq3l$(10,i.clazzFeatures),t.setLong_6svq3l$(11,i.clazzSchoolUid),t.setInt_vux9f0$(12,i.clazzEnrolmentPolicy),t.setLong_6svq3l$(13,i.clazzTerminologyUid),t.setLong_6svq3l$(14,i.clazzMasterChangeSeqNum),t.setLong_6svq3l$(15,i.clazzLocalChangeSeqNum),t.setInt_vux9f0$(16,i.clazzLastChangedBy),t.setLong_6svq3l$(17,i.clazzLct),t.setString_vqvrqt$(18,i.clazzTimeZone),t.setLong_6svq3l$(19,i.clazzStudentsPersonGroupUid),t.setLong_6svq3l$(20,i.clazzTeachersPersonGroupUid),t.setLong_6svq3l$(21,i.clazzPendingStudentsPersonGroupUid),t.setLong_6svq3l$(22,i.clazzParentsPersonGroupUid),t.setString_vqvrqt$(23,i.clazzCode),t.setLong_6svq3l$(24,i.clazzUid),t.executeUpdate()}return t.getConnection().commit(),V}))},dc.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE Clazz SET clazzName = ?, clazzDesc = ?, attendanceAverage = ?, clazzHolidayUMCalendarUid = ?, clazzScheuleUMCalendarUid = ?, isClazzActive = ?, clazzLocationUid = ?, clazzStartTime = ?, clazzEndTime = ?, clazzFeatures = ?, clazzSchoolUid = ?, clazzEnrolmentPolicy = ?, clazzTerminologyUid = ?, clazzMasterChangeSeqNum = ?, clazzLocalChangeSeqNum = ?, clazzLastChangedBy = ?, clazzLct = ?, clazzTimeZone = ?, clazzStudentsPersonGroupUid = ?, clazzTeachersPersonGroupUid = ?, clazzPendingStudentsPersonGroupUid = ?, clazzParentsPersonGroupUid = ?, clazzCode = ? WHERE clazzUid = ?",(e=t,function(t){return t.setString_vqvrqt$(1,e.clazzName),t.setString_vqvrqt$(2,e.clazzDesc),t.setFloat_24o109$(3,e.attendanceAverage),t.setLong_6svq3l$(4,e.clazzHolidayUMCalendarUid),t.setLong_6svq3l$(5,e.clazzScheuleUMCalendarUid),t.setBoolean_fzusl$(6,e.isClazzActive),t.setLong_6svq3l$(7,e.clazzLocationUid),t.setLong_6svq3l$(8,e.clazzStartTime),t.setLong_6svq3l$(9,e.clazzEndTime),t.setLong_6svq3l$(10,e.clazzFeatures),t.setLong_6svq3l$(11,e.clazzSchoolUid),t.setInt_vux9f0$(12,e.clazzEnrolmentPolicy),t.setLong_6svq3l$(13,e.clazzTerminologyUid),t.setLong_6svq3l$(14,e.clazzMasterChangeSeqNum),t.setLong_6svq3l$(15,e.clazzLocalChangeSeqNum),t.setInt_vux9f0$(16,e.clazzLastChangedBy),t.setLong_6svq3l$(17,e.clazzLct),t.setString_vqvrqt$(18,e.clazzTimeZone),t.setLong_6svq3l$(19,e.clazzStudentsPersonGroupUid),t.setLong_6svq3l$(20,e.clazzTeachersPersonGroupUid),t.setLong_6svq3l$(21,e.clazzPendingStudentsPersonGroupUid),t.setLong_6svq3l$(22,e.clazzParentsPersonGroupUid),t.setString_vqvrqt$(23,e.clazzCode),t.setLong_6svq3l$(24,e.clazzUid),t.executeUpdate()}))},gc.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},gc.prototype=Object.create(N.prototype),gc.prototype.constructor=gc,gc.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ec.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ec.prototype=Object.create(N.prototype),Ec.prototype.constructor=Ec,Ec.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ClazzReplicate(clazzPk, clazzDestination)\n | SELECT DISTINCT Clazz.clazzUid AS clazzUid,\n | ? AS clazzDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 2 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | WHERE UserSession.usClientNodeId = ? \n | AND Clazz.clazzLct != COALESCE(\n | (SELECT clazzVersionId\n | FROM ClazzReplicate\n | WHERE clazzPk = Clazz.clazzUid\n | AND clazzDestination = ?), 0) \n | /*psql ON CONFLICT(clazzPk, clazzDestination) DO UPDATE\n | SET clazzPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ClazzReplicate(clazzPk, clazzDestination)\n | SELECT DISTINCT Clazz.clazzUid AS clazzUid,\n | ? AS clazzDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 2 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | WHERE UserSession.usClientNodeId = ? \n | AND Clazz.clazzLct != COALESCE(\n | (SELECT clazzVersionId\n | FROM ClazzReplicate\n | WHERE clazzPk = Clazz.clazzUid\n | AND clazzDestination = ?), 0) \n | ON CONFLICT(clazzPk, clazzDestination) DO UPDATE\n | SET clazzPending = true\n | \n | \n |")),$c(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dc.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new Ec(this,t,e);return n?i:i.doResume(null)},yc.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},yc.prototype=Object.create(N.prototype),yc.prototype.constructor=yc,yc.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Sc.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Sc.prototype=Object.create(N.prototype),Sc.prototype.constructor=Sc,Sc.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ClazzReplicate(clazzPk, clazzDestination)\n | SELECT DISTINCT Clazz.clazzUid AS clazzUid,\n | UserSession.usClientNodeId AS clazzDestination\n | FROM ChangeLog\n | JOIN Clazz\n | ON ChangeLog.chTableId = 6\n | AND ChangeLog.chEntityPk = Clazz.clazzUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 2\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND Clazz.clazzLct != COALESCE(\n | (SELECT clazzVersionId\n | FROM ClazzReplicate\n | WHERE clazzPk = Clazz.clazzUid\n | AND clazzDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(clazzPk, clazzDestination) DO UPDATE\n | SET clazzPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ClazzReplicate(clazzPk, clazzDestination)\n | SELECT DISTINCT Clazz.clazzUid AS clazzUid,\n | UserSession.usClientNodeId AS clazzDestination\n | FROM ChangeLog\n | JOIN Clazz\n | ON ChangeLog.chTableId = 6\n | AND ChangeLog.chEntityPk = Clazz.clazzUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 2\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND Clazz.clazzLct != COALESCE(\n | (SELECT clazzVersionId\n | FROM ClazzReplicate\n | WHERE clazzPk = Clazz.clazzUid\n | AND clazzDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(clazzPk, clazzDestination) DO UPDATE\n | SET clazzPending = true\n | \n | \n |")),bc,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dc.prototype.replicateOnChange=function(t,e){var n=new Sc(this,t);return e?n:n.doResume(null)},dc.prototype.findByUid_s8cxhz$=function(t){return ht(this._db,new st("SELECT * FROM Clazz WHERE clazzUid = ?"),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),vc)}));var e},Nc.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Nc.prototype=Object.create(N.prototype),Nc.prototype.constructor=Nc,Nc.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Cc);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Lc.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Lc.prototype=Object.create(N.prototype),Lc.prototype.constructor=Lc,Lc.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ClazzDao_JdbcKt._db,new st("SELECT * From Clazz WHERE clazzUid = ?"),Tc(this.local$closure$uid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dc.prototype.findByUidLive_s8cxhz$=function(t){return new ft(this._db,Et("Clazz"),(e=this,n=t,function(t,i){var o=new Lc(e,n,t);return i?o:o.doResume(null)}));var e,n},wc.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},wc.prototype=Object.create(N.prototype),wc.prototype.constructor=wc,wc.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$code),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,zc);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dc.prototype.findByClazzCode_61zpoe$=function(t,e){return ct(this._db,new st("SELECT * FROM Clazz WHERE clazzCode = ?"),(n=t,function(t,e,i){var o=new wc(n,t,e);return i?o:o.doResume(null)}),e);var n},Rc.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Rc.prototype=Object.create(N.prototype),Rc.prototype.constructor=Rc,Rc.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$code),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Oc);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dc.prototype.findByClazzCodeFromWeb_61zpoe$=function(t,e){return ct(this._db,new st("SELECT * FROM Clazz WHERE clazzCode = ?"),(n=t,function(t,e,i){var o=new Rc(n,t,e);return i?o:o.doResume(null)}),e);var n},xc.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},xc.prototype=Object.create(N.prototype),xc.prototype.constructor=xc,xc.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Ac);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Uc.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Uc.prototype=Object.create(N.prototype),Uc.prototype.constructor=Uc,Uc.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ClazzDao_JdbcKt._db,new st("SELECT * FROM Clazz WHERE CAST(isClazzActive AS INTEGER) = 1"),Ic,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dc.prototype.findAllLive=function(){return new ft(this._db,Et("Clazz"),(t=this,function(e,n){var i=new Uc(t,e);return n?i:i.doResume(null)}));var t},dc.prototype.findAll=function(){return ht(this._db,new st("SELECT * FROM Clazz WHERE CAST(isClazzActive AS INTEGER) = 1"),Pc)},kc.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},kc.prototype=Object.create(N.prototype),kc.prototype.constructor=kc,kc.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Mc);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dc.prototype.findByUidAsync_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT * FROM Clazz WHERE clazzUid = ?"),(n=t,function(t,e,i){var o=new kc(n,t,e);return i?o:o.doResume(null)}),e);var n},Gc.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Gc.prototype=Object.create(N.prototype),Gc.prototype.constructor=Gc,Gc.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,jc);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dc.prototype.findByUidWithHolidayCalendarAsync_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT Clazz.*, \n | HolidayCalendar.*, \n | School.*,\n | CourseTerminology.*\n | FROM Clazz \n | LEFT JOIN HolidayCalendar \n | ON Clazz.clazzHolidayUMCalendarUid = HolidayCalendar.umCalendarUid\n | \n | LEFT JOIN School \n | ON School.schoolUid = Clazz.clazzSchoolUid\n | \n | LEFT JOIN CourseTerminology\n | ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n | WHERE Clazz.clazzUid = ?\n ")),(n=t,function(t,e,i){var o=new Gc(n,t,e);return i?o:o.doResume(null)}),e);var n},Fc.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Fc.prototype=Object.create(N.prototype),Fc.prototype.constructor=Fc,Fc.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$schoolUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,qc);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dc.prototype.findAllClazzesBySchool_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT * FROM Clazz WHERE clazzSchoolUid = ? AND CAST(isClazzActive AS INTEGER) = 1 "),(n=t,function(t,e,i){var o=new Fc(n,t,e);return i?o:o.doResume(null)}),e);var n},Hc.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Hc.prototype=Object.create(N.prototype),Hc.prototype.constructor=Hc,Hc.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$schoolUid),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Wc);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Kc.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Kc.prototype=Object.create(N.prototype),Kc.prototype.constructor=Kc,Kc.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ClazzDao_JdbcKt._db,new st("SELECT * FROM (SELECT * FROM Clazz WHERE clazzSchoolUid = ? AND CAST(isClazzActive AS INTEGER) = 1 ) LIMIT ? OFFSET ?"),Vc(this.local$closure$schoolUid,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Bc.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$ClazzDao_JdbcKt._db,Et("Clazz"),(n=this.this$ClazzDao_JdbcKt,i=this.closure$schoolUid,o=e,r=t,function(t,e){var s=new Kc(n,i,o,r,t);return e?s:s.doResume(null)}));var n,i,o,r},Jc.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Jc.prototype=Object.create(N.prototype),Jc.prototype.constructor=Jc,Jc.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$schoolUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Xc);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Qc.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Qc.prototype=Object.create(N.prototype),Qc.prototype.constructor=Qc,Qc.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ClazzDao_JdbcKt._db,new st("SELECT COUNT(*) FROM (SELECT * FROM Clazz WHERE clazzSchoolUid = ? AND CAST(isClazzActive AS INTEGER) = 1 ) "),Yc(this.local$closure$schoolUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Bc.prototype.getLength=function(){return new ft(this.this$ClazzDao_JdbcKt._db,Et("Clazz"),(t=this.this$ClazzDao_JdbcKt,e=this.closure$schoolUid,function(n,i){var o=new Qc(t,e,n);return i?o:o.doResume(null)}));var t,e},Bc.$metadata$={kind:c,interfaces:[gt]},dc.prototype.findAllClazzesBySchoolLive_s8cxhz$=function(t){return new Bc(this,t)},el.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},el.prototype=Object.create(N.prototype),el.prototype.constructor=el,el.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$currentTime),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$currentTime),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$permission),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$accountPersonUid),this.local$_stmt.setLong_6svq3l$(5,this.local$closure$accountPersonUid),this.local$_stmt.setString_vqvrqt$(6,this.local$closure$searchQuery),this.local$_stmt.setArray_wqp8hw$(7,yt(this.local$_stmt.getConnection(),"BIGINT",q(this.local$closure$excludeSelectedClazzList))),this.local$_stmt.setLong_6svq3l$(8,this.local$closure$excludeSchoolUid),this.local$_stmt.setLong_6svq3l$(9,this.local$closure$excludeSchoolUid),this.local$_stmt.setLong_6svq3l$(10,this.local$closure$excludeSchoolUid),this.local$_stmt.setInt_vux9f0$(11,this.local$closure$filter),this.local$_stmt.setInt_vux9f0$(12,this.local$closure$filter),this.local$_stmt.setLong_6svq3l$(13,this.local$closure$currentTime),this.local$_stmt.setLong_6svq3l$(14,this.local$closure$currentTime),this.local$_stmt.setLong_6svq3l$(15,this.local$closure$selectedSchool),this.local$_stmt.setLong_6svq3l$(16,this.local$closure$selectedSchool),this.local$_stmt.setInt_vux9f0$(17,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(18,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(19,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(20,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(21,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(22,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,tl);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},il.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},il.prototype=Object.create(N.prototype),il.prototype.constructor=il,il.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ClazzDao_JdbcKt._db,new st(S("\n |SELECT * FROM (\n | SELECT Clazz.*, ClazzEnrolment.*,\n | (SELECT COUNT(*) \n | FROM ClazzEnrolment \n | WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n | AND clazzEnrolmentRole = 1000 \n | AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n | AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numStudents,\n | (SELECT COUNT(*) \n | FROM ClazzEnrolment \n | WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n | AND clazzEnrolmentRole = 1001\n | AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n | AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numTeachers,\n | '' AS teacherNames,\n | 0 AS lastRecorded,\n | CourseTerminology.*\n | FROM PersonGroupMember\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | ?\n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | LEFT JOIN ClazzEnrolment \n | ON ClazzEnrolment.clazzEnrolmentUid =\n | COALESCE(\n | (SELECT ClazzEnrolment.clazzEnrolmentUid \n | FROM ClazzEnrolment\n | WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n | AND ClazzEnrolment.clazzEnrolmentActive\n | AND ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid LIMIT 1), 0)\n | LEFT JOIN CourseTerminology \n | ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid \n |\n | WHERE PersonGroupMember.groupMemberPersonUid = ?\n | AND PersonGroupMember.groupMemberActive \n | AND CAST(Clazz.isClazzActive AS INTEGER) = 1\n | AND Clazz.clazzName like ?\n | AND (Clazz.clazzUid NOT IN (?))\n | AND ( ? = 0 OR Clazz.clazzUid NOT IN (SELECT cl.clazzUid FROM Clazz AS cl WHERE cl.clazzSchoolUid = ?) ) \n | AND ( ? = 0 OR Clazz.clazzSchoolUid = 0 )\n | AND ( ? = 0 OR (CASE WHEN ? = 5 \n | THEN ? BETWEEN Clazz.clazzStartTime AND Clazz.clazzEndTime\n | ELSE ? > Clazz.clazzEndTime \n | END))\n | AND ( ? = 0 OR Clazz.clazzSchoolUid = ?)\n | GROUP BY Clazz.clazzUid, ClazzEnrolment.clazzEnrolmentUid, CourseTerminology.ctUid\n | ORDER BY CASE ?\n | WHEN 3 THEN Clazz.attendanceAverage\n | ELSE 0\n | END ASC,\n | CASE ?\n | WHEN 1 THEN Clazz.clazzName\n | ELSE ''\n | END ASC,\n | CASE ?\n | WHEN 4 THEN Clazz.attendanceAverage\n | ELSE 0\n | END DESC,\n | CASE ?\n | WHEN 2 THEN clazz.Clazzname\n | ELSE ''\n | END DESC\n | ) LIMIT ? OFFSET ?\n "),!0),nl(this.local$closure$currentTime,this.local$closure$permission,this.local$closure$accountPersonUid,this.local$closure$searchQuery,this.local$closure$excludeSelectedClazzList,this.local$closure$excludeSchoolUid,this.local$closure$filter,this.local$closure$selectedSchool,this.local$closure$sortOrder,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Zc.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$ClazzDao_JdbcKt._db,p(["Clazz","ClazzEnrolment","ScopedGrant","PersonGroupMember","CourseTerminology"]),(n=this.this$ClazzDao_JdbcKt,i=this.closure$currentTime,o=this.closure$permission,r=this.closure$accountPersonUid,s=this.closure$searchQuery,a=this.closure$excludeSelectedClazzList,c=this.closure$excludeSchoolUid,l=this.closure$filter,u=this.closure$selectedSchool,h=this.closure$sortOrder,d=e,_=t,function(t,e){var p=new il(n,i,o,r,s,a,c,l,u,h,d,_,t);return e?p:p.doResume(null)}));var n,i,o,r,s,a,c,l,u,h,d,_},rl.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},rl.prototype=Object.create(N.prototype),rl.prototype.constructor=rl,rl.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$currentTime),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$currentTime),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$permission),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$accountPersonUid),this.local$_stmt.setLong_6svq3l$(5,this.local$closure$accountPersonUid),this.local$_stmt.setString_vqvrqt$(6,this.local$closure$searchQuery),this.local$_stmt.setArray_wqp8hw$(7,yt(this.local$_stmt.getConnection(),"BIGINT",q(this.local$closure$excludeSelectedClazzList))),this.local$_stmt.setLong_6svq3l$(8,this.local$closure$excludeSchoolUid),this.local$_stmt.setLong_6svq3l$(9,this.local$closure$excludeSchoolUid),this.local$_stmt.setLong_6svq3l$(10,this.local$closure$excludeSchoolUid),this.local$_stmt.setInt_vux9f0$(11,this.local$closure$filter),this.local$_stmt.setInt_vux9f0$(12,this.local$closure$filter),this.local$_stmt.setLong_6svq3l$(13,this.local$closure$currentTime),this.local$_stmt.setLong_6svq3l$(14,this.local$closure$currentTime),this.local$_stmt.setLong_6svq3l$(15,this.local$closure$selectedSchool),this.local$_stmt.setLong_6svq3l$(16,this.local$closure$selectedSchool),this.local$_stmt.setInt_vux9f0$(17,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(18,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(19,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(20,this.local$closure$sortOrder),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,ol);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},al.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},al.prototype=Object.create(N.prototype),al.prototype.constructor=al,al.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ClazzDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (\n | SELECT Clazz.*, ClazzEnrolment.*,\n | (SELECT COUNT(*) \n | FROM ClazzEnrolment \n | WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n | AND clazzEnrolmentRole = 1000 \n | AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n | AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numStudents,\n | (SELECT COUNT(*) \n | FROM ClazzEnrolment \n | WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n | AND clazzEnrolmentRole = 1001\n | AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n | AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numTeachers,\n | '' AS teacherNames,\n | 0 AS lastRecorded,\n | CourseTerminology.*\n | FROM PersonGroupMember\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | ?\n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | LEFT JOIN ClazzEnrolment \n | ON ClazzEnrolment.clazzEnrolmentUid =\n | COALESCE(\n | (SELECT ClazzEnrolment.clazzEnrolmentUid \n | FROM ClazzEnrolment\n | WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n | AND ClazzEnrolment.clazzEnrolmentActive\n | AND ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid LIMIT 1), 0)\n | LEFT JOIN CourseTerminology \n | ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid \n |\n | WHERE PersonGroupMember.groupMemberPersonUid = ?\n | AND PersonGroupMember.groupMemberActive \n | AND CAST(Clazz.isClazzActive AS INTEGER) = 1\n | AND Clazz.clazzName like ?\n | AND (Clazz.clazzUid NOT IN (?))\n | AND ( ? = 0 OR Clazz.clazzUid NOT IN (SELECT cl.clazzUid FROM Clazz AS cl WHERE cl.clazzSchoolUid = ?) ) \n | AND ( ? = 0 OR Clazz.clazzSchoolUid = 0 )\n | AND ( ? = 0 OR (CASE WHEN ? = 5 \n | THEN ? BETWEEN Clazz.clazzStartTime AND Clazz.clazzEndTime\n | ELSE ? > Clazz.clazzEndTime \n | END))\n | AND ( ? = 0 OR Clazz.clazzSchoolUid = ?)\n | GROUP BY Clazz.clazzUid, ClazzEnrolment.clazzEnrolmentUid, CourseTerminology.ctUid\n | ORDER BY CASE ?\n | WHEN 3 THEN Clazz.attendanceAverage\n | ELSE 0\n | END ASC,\n | CASE ?\n | WHEN 1 THEN Clazz.clazzName\n | ELSE ''\n | END ASC,\n | CASE ?\n | WHEN 4 THEN Clazz.attendanceAverage\n | ELSE 0\n | END DESC,\n | CASE ?\n | WHEN 2 THEN clazz.Clazzname\n | ELSE ''\n | END DESC\n | ) \n "),!0),sl(this.local$closure$currentTime,this.local$closure$permission,this.local$closure$accountPersonUid,this.local$closure$searchQuery,this.local$closure$excludeSelectedClazzList,this.local$closure$excludeSchoolUid,this.local$closure$filter,this.local$closure$selectedSchool,this.local$closure$sortOrder),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Zc.prototype.getLength=function(){return new ft(this.this$ClazzDao_JdbcKt._db,p(["Clazz","ClazzEnrolment","ScopedGrant","PersonGroupMember","CourseTerminology"]),(t=this.this$ClazzDao_JdbcKt,e=this.closure$currentTime,n=this.closure$permission,i=this.closure$accountPersonUid,o=this.closure$searchQuery,r=this.closure$excludeSelectedClazzList,s=this.closure$excludeSchoolUid,a=this.closure$filter,c=this.closure$selectedSchool,l=this.closure$sortOrder,function(u,h){var d=new al(t,e,n,i,o,r,s,a,c,l,u);return h?d:d.doResume(null)}));var t,e,n,i,o,r,s,a,c,l},Zc.$metadata$={kind:c,interfaces:[gt]},dc.prototype.findClazzesWithPermission_dchjmd$=function(t,e,n,i,o,r,s,a,c){return new Zc(this,s,a,e,t,n,i,r,c,o)},ll.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ll.prototype=Object.create(N.prototype),ll.prototype.constructor=ll,ll.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setArray_wqp8hw$(1,yt(this.local$_stmt.getConnection(),"BIGINT",q(this.local$closure$ids))),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,cl);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dc.prototype.getClassNamesFromListOfIds_gox9k8$=function(t,e){return ct(this._db,new st("SELECT Clazz.clazzUid AS uid, Clazz.clazzName AS labelName From Clazz WHERE clazzUid IN (?)",!0),(n=t,function(t,e,i){var o=new ll(n,t,e);return i?o:o.doResume(null)}),e);var n},dc.prototype.findByClazzName_61zpoe$=function(t){return ht(this._db,new st("SELECT * FROM Clazz WHERE clazzName = ? and CAST(isClazzActive AS INTEGER) = 1"),(e=t,function(t){return t.setString_vqvrqt$(1,e),ut(t.executeQuery(),ul)}));var e},hl.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},hl.prototype=Object.create(N.prototype),hl.prototype.constructor=hl,hl.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$clazzUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$clazzUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$timeChanged),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$clazzUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},pl.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},pl.prototype=Object.create(N.prototype),pl.prototype.constructor=pl,pl.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | UPDATE Clazz \n | SET attendanceAverage = \n | COALESCE(CAST(\n | (SELECT SUM(clazzLogNumPresent) \n | FROM ClazzLog \n | WHERE clazzLogClazzUid = ?\n | AND clazzLogStatusFlag = 4) AS REAL) /\n | \n | CAST(MAX(1.0, \n | (SELECT SUM(clazzLogNumPresent) + SUM(clazzLogNumPartial) + SUM(clazzLogNumAbsent)\n | FROM ClazzLog \n | WHERE clazzLogClazzUid = ? \n | AND clazzLogStatusFlag = 4)) AS REAL), 0),\n | clazzLct = ? \n | WHERE clazzUid = ?\n | \n "),void 0,void 0,void 0,S("\n |\n | UPDATE Clazz \n | SET attendanceAverage = \n | COALESCE(CAST(\n | (SELECT SUM(clazzLogNumPresent) \n | FROM ClazzLog \n | WHERE clazzLogClazzUid = ?\n | AND clazzLogStatusFlag = 4) AS REAL) /\n | \n | CAST(GREATEST(1.0, \n | (SELECT SUM(clazzLogNumPresent) + SUM(clazzLogNumPartial) + SUM(clazzLogNumAbsent)\n | FROM ClazzLog \n | WHERE clazzLogClazzUid = ? \n | AND clazzLogStatusFlag = 4)) AS REAL), 0),\n | clazzLct = ? \n | WHERE clazzUid = ?\n | \n ")),dl(this.local$clazzUid,this.local$timeChanged),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dc.prototype.updateClazzAttendanceAverageAsync_3pjtqy$=function(t,e,n,i){var o=new pl(this,t,e,n);return i?o:o.doResume(null)},ml.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ml.prototype=Object.create(N.prototype),ml.prototype.constructor=ml,ml.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$permission),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$clazzUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$accountPersonUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,_l);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dc.prototype.personHasPermissionWithClazz_b9bd0d$=function(t,e,n,i){return ct(this._db,new st(S("\n |\n | SELECT EXISTS( \n | SELECT PrsGrpMbr.groupMemberPersonUid\n | FROM Clazz\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | ?\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | WHERE Clazz.clazzUid = ?\n | AND PrsGrpMbr.groupMemberPersonUid = ?)\n | \n ")),(o=n,r=e,s=t,function(t,e,n){var i=new ml(o,r,s,t,e);return n?i:i.doResume(null)}),i);var o,r,s},gl.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},gl.prototype=Object.create(N.prototype),gl.prototype.constructor=gl,gl.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$clazzUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$accountPersonUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,fl);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dc.prototype.selectDelegatablePermissions_3pjtqy$=function(t,e,n){return ct(this._db,new st(S("\n |\n | SELECT ScopedGrant.sgPermissions\n | FROM Clazz\n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | WHERE Clazz.clazzUid = ?\n | AND (ScopedGrant.sgPermissions & 4294967296) > 0\n | AND PrsGrpMbr.groupMemberPersonUid = ?\n | \n ")),(i=e,o=t,function(t,e,n){var r=new gl(i,o,t,e);return n?r:r.doResume(null)}),n);var i,o},El.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},El.prototype=Object.create(N.prototype),El.prototype.constructor=El,El.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$currentTime),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$currentTime),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$clazzUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,$l);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},bl.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},bl.prototype=Object.create(N.prototype),bl.prototype.constructor=bl,bl.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ClazzDao_JdbcKt._db,new st(S("\n |\n | SELECT Clazz.*, \n | HolidayCalendar.*, \n | School.*,\n | (SELECT COUNT(*) \n | FROM ClazzEnrolment \n | WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n | AND clazzEnrolmentRole = 1000 \n | AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n | AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numStudents,\n | (SELECT COUNT(*) \n | FROM ClazzEnrolment \n | WHERE ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n | AND clazzEnrolmentRole = 1001 \n | AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n | AND ClazzEnrolment.clazzEnrolmentDateLeft) AS numTeachers,\n | CourseTerminology.* \n | FROM Clazz \n | LEFT JOIN HolidayCalendar \n | ON Clazz.clazzHolidayUMCalendarUid = HolidayCalendar.umCalendarUid\n | LEFT JOIN School \n | ON School.schoolUid = Clazz.clazzSchoolUid\n | LEFT JOIN CourseTerminology\n | ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n | WHERE Clazz.clazzUid = ?\n ")),yl(this.local$closure$currentTime,this.local$closure$clazzUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dc.prototype.getClazzWithDisplayDetails_3pjtqy$=function(t,e){return new ft(this._db,p(["ClazzEnrolment","Clazz","HolidayCalendar","School","CourseTerminology"]),(n=this,i=e,o=t,function(t,e){var r=new bl(n,i,o,t);return e?r:r.doResume(null)}));var n,i,o},dc.prototype.findClazzesWithEffectiveHolidayCalendarAndFilter_s8cxhz$=function(t){return ht(this._db,new st(S("\n |\n | SELECT Clazz.*, \n | HolidayCalendar.*, \n | School.*,\n | CourseTerminology.*\n | FROM Clazz \n | LEFT JOIN HolidayCalendar \n | ON ((clazz.clazzHolidayUMCalendarUid != 0 \n | AND HolidayCalendar.umCalendarUid = clazz.clazzHolidayUMCalendarUid)\n | OR clazz.clazzHolidayUMCalendarUid = 0 AND clazz.clazzSchoolUid = 0 \n | AND HolidayCalendar.umCalendarUid = (SELECT schoolHolidayCalendarUid \n | FROM School \n | WHERE schoolUid = clazz.clazzSchoolUid))\n | LEFT JOIN School \n | ON School.schoolUid = Clazz.clazzSchoolUid\n | \n | LEFT JOIN CourseTerminology\n | ON CourseTerminology.ctUid = Clazz.clazzTerminologyUid\n | \n | WHERE ? = 0 \n | OR Clazz.clazzUid = ?\n | \n ")),(e=t,function(t){return t.setLong_6svq3l$(1,e),t.setLong_6svq3l$(2,e),ut(t.executeQuery(),Sl)}));var e},Cl.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Cl.prototype=Object.create(N.prototype),Cl.prototype.constructor=Cl,Cl.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$clazzUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,vl);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dc.prototype.getClazzWithSchool_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT Clazz.*, School.* FROM Clazz LEFT JOIN School ON School.schoolUid = Clazz.clazzSchoolUid WHERE clazz.clazzUid = ?"),(n=t,function(t,e,i){var o=new Cl(n,t,e);return i?o:o.doResume(null)}),e);var n},Nl.prototype.makeSql_6taknv$=function(t){return"INSERT INTO Clazz (clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},Nl.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.clazzUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.clazzUid),t.setString_vqvrqt$(2,e.clazzName),t.setString_vqvrqt$(3,e.clazzDesc),t.setFloat_24o109$(4,e.attendanceAverage),t.setLong_6svq3l$(5,e.clazzHolidayUMCalendarUid),t.setLong_6svq3l$(6,e.clazzScheuleUMCalendarUid),t.setBoolean_fzusl$(7,e.isClazzActive),t.setLong_6svq3l$(8,e.clazzLocationUid),t.setLong_6svq3l$(9,e.clazzStartTime),t.setLong_6svq3l$(10,e.clazzEndTime),t.setLong_6svq3l$(11,e.clazzFeatures),t.setLong_6svq3l$(12,e.clazzSchoolUid),t.setInt_vux9f0$(13,e.clazzEnrolmentPolicy),t.setLong_6svq3l$(14,e.clazzTerminologyUid),t.setLong_6svq3l$(15,e.clazzMasterChangeSeqNum),t.setLong_6svq3l$(16,e.clazzLocalChangeSeqNum),t.setInt_vux9f0$(17,e.clazzLastChangedBy),t.setLong_6svq3l$(18,e.clazzLct),t.setString_vqvrqt$(19,e.clazzTimeZone),t.setLong_6svq3l$(20,e.clazzStudentsPersonGroupUid),t.setLong_6svq3l$(21,e.clazzTeachersPersonGroupUid),t.setLong_6svq3l$(22,e.clazzPendingStudentsPersonGroupUid),t.setLong_6svq3l$(23,e.clazzParentsPersonGroupUid),t.setString_vqvrqt$(24,e.clazzCode)},Nl.$metadata$={kind:c,interfaces:[pt]},dc.$metadata$={kind:c,simpleName:"ClazzDao_JdbcKt",interfaces:[hc]},Ll.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ll.prototype=Object.create(N.prototype),Ll.prototype.constructor=Ll,Ll.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Tl.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new Ll(this,t,e);return n?i:i.doResume(null)},zl.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},zl.prototype=Object.create(N.prototype),zl.prototype.constructor=zl,zl.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Tl.prototype.replicateOnChange=function(t,e){var n=new zl(this,t);return e?n:n.doResume(null)},Tl.prototype.findByUid_s8cxhz$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Tl.prototype.findByUidLive_s8cxhz$=function(t){return this._dao_0.findByUidLive_s8cxhz$(t)},Tl.prototype.findByClazzCode_61zpoe$=function(t,e){return this._dao_0.findByClazzCode_61zpoe$(t,e)},Tl.prototype.findByClazzCodeFromWeb_61zpoe$=function(t,e){return this._dao_0.findByClazzCodeFromWeb_61zpoe$(t,e)},Tl.prototype.findAllLive=function(){return this._dao_0.findAllLive()},Tl.prototype.findAll=function(){throw v("Synchronous db access is NOT possible on Javascript!")},Tl.prototype.findByUidAsync_s8cxhz$=function(t,e){return this._dao_0.findByUidAsync_s8cxhz$(t,e)},Tl.prototype.findByUidWithHolidayCalendarAsync_s8cxhz$=function(t,e){return this._dao_0.findByUidWithHolidayCalendarAsync_s8cxhz$(t,e)},Tl.prototype.updateAsync_yczdf2$=function(t,e){return t.clazzLct=J(),this._dao_0.updateAsync_yczdf2$(t,e)},Tl.prototype.findAllClazzesBySchool_s8cxhz$=function(t,e){return this._dao_0.findAllClazzesBySchool_s8cxhz$(t,e)},Tl.prototype.findAllClazzesBySchoolLive_s8cxhz$=function(t){return this._dao_0.findAllClazzesBySchoolLive_s8cxhz$(t)},Tl.prototype.findClazzesWithPermission_dchjmd$=function(t,e,n,i,o,r,s,a,c){return this._dao_0.findClazzesWithPermission_dchjmd$(t,e,n,i,o,r,s,a,c)},Tl.prototype.getClassNamesFromListOfIds_gox9k8$=function(t,e){return this._dao_0.getClassNamesFromListOfIds_gox9k8$(t,e)},Tl.prototype.findByClazzName_61zpoe$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},wl.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},wl.prototype=Object.create(N.prototype),wl.prototype.constructor=wl,wl.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.updateClazzAttendanceAverageAsync_3pjtqy$(this.local$clazzUid,this.local$timeChanged,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Tl.prototype.updateClazzAttendanceAverageAsync_3pjtqy$=function(t,e,n,i){var o=new wl(this,t,e,n);return i?o:o.doResume(null)},Tl.prototype.personHasPermissionWithClazz_b9bd0d$=function(t,e,n,i){return this._dao_0.personHasPermissionWithClazz_b9bd0d$(t,e,n,i)},Tl.prototype.selectDelegatablePermissions_3pjtqy$=function(t,e,n){return this._dao_0.selectDelegatablePermissions_3pjtqy$(t,e,n)},Tl.prototype.getClazzWithDisplayDetails_3pjtqy$=function(t,e){return this._dao_0.getClazzWithDisplayDetails_3pjtqy$(t,e)},Tl.prototype.findClazzesWithEffectiveHolidayCalendarAndFilter_s8cxhz$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Tl.prototype.getClazzWithSchool_s8cxhz$=function(t,e){return this._dao_0.getClazzWithSchool_s8cxhz$(t,e)},Tl.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Ol.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ol.prototype=Object.create(N.prototype),Ol.prototype.constructor=Ol,Ol.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.clazzUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(6,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.clazzUid=e,this.state_0=3;continue;case 3:if(this.local$entity.clazzLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.clazzUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Tl.prototype.insertAsync=function(t,e,n){var i=new Ol(this,t,e);return n?i:i.doResume(null)},Tl.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Tl.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Tl.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Tl.$metadata$={kind:c,simpleName:"ClazzDao_ReplicateWrapper",interfaces:[hc]},Al.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Al.prototype=Object.create(N.prototype),Al.prototype.constructor=Al,Al.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Rl.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new Al(this,t,e);return n?i:i.doResume(null)},xl.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},xl.prototype=Object.create(N.prototype),xl.prototype.constructor=xl,xl.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Rl.prototype.replicateOnChange=function(t,e){var n=new xl(this,t);return e?n:n.doResume(null)},Rl.prototype.findByUid_s8cxhz$=function(t){return this._dao.findByUid_s8cxhz$(t)},Rl.prototype.findByUidLive_s8cxhz$=function(t){return this._dao.findByUidLive_s8cxhz$(t)},Il.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Il.prototype=Object.create(N.prototype),Il.prototype.constructor=Il,Il.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByClazzCode_61zpoe$(this.local$code,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Rl.prototype.findByClazzCode_61zpoe$=function(t,e,n){var i=new Il(this,t,e);return n?i:i.doResume(null)},Rl.prototype.findByClazzCodeFromWeb_61zpoe$=function(t,e){throw v("Synchronous HTTP is not supported on Door/Javascript!")},Rl.prototype.findAllLive=function(){return this._dao.findAllLive()},Rl.prototype.findAll=function(){return this._dao.findAll()},Ul.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ul.prototype=Object.create(N.prototype),Ul.prototype.constructor=Ul,Ul.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByUidAsync_s8cxhz$(this.local$uid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Rl.prototype.findByUidAsync_s8cxhz$=function(t,e,n){var i=new Ul(this,t,e);return n?i:i.doResume(null)},Dl.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Dl.prototype=Object.create(N.prototype),Dl.prototype.constructor=Dl,Dl.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByUidWithHolidayCalendarAsync_s8cxhz$(this.local$uid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Rl.prototype.findByUidWithHolidayCalendarAsync_s8cxhz$=function(t,e,n){var i=new Dl(this,t,e);return n?i:i.doResume(null)},Pl.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Pl.prototype=Object.create(N.prototype),Pl.prototype.constructor=Pl,Pl.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateAsync_yczdf2$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Rl.prototype.updateAsync_yczdf2$=function(t,e,n){var i=new Pl(this,t,e);return n?i:i.doResume(null)},Ml.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ml.prototype=Object.create(N.prototype),Ml.prototype.constructor=Ml,Ml.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findAllClazzesBySchool_s8cxhz$(this.local$schoolUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Rl.prototype.findAllClazzesBySchool_s8cxhz$=function(t,e,n){var i=new Ml(this,t,e);return n?i:i.doResume(null)},Rl.prototype.findAllClazzesBySchoolLive_s8cxhz$=function(t){return this._dao.findAllClazzesBySchoolLive_s8cxhz$(t)},Rl.prototype.findClazzesWithPermission_dchjmd$=function(t,e,n,i,o,r,s,a,c){return this._dao.findClazzesWithPermission_dchjmd$(t,e,n,i,o,r,s,a,c)},kl.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},kl.prototype=Object.create(N.prototype),kl.prototype.constructor=kl,kl.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.getClassNamesFromListOfIds_gox9k8$(this.local$ids,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Rl.prototype.getClassNamesFromListOfIds_gox9k8$=function(t,e,n){var i=new kl(this,t,e);return n?i:i.doResume(null)},Rl.prototype.findByClazzName_61zpoe$=function(t){return this._dao.findByClazzName_61zpoe$(t)},jl.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},jl.prototype=Object.create(N.prototype),jl.prototype.constructor=jl,jl.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateClazzAttendanceAverageAsync_3pjtqy$(this.local$clazzUid,this.local$timeChanged,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Rl.prototype.updateClazzAttendanceAverageAsync_3pjtqy$=function(t,e,n,i){var o=new jl(this,t,e,n);return i?o:o.doResume(null)},Gl.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Gl.prototype=Object.create(N.prototype),Gl.prototype.constructor=Gl,Gl.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.personHasPermissionWithClazz_b9bd0d$(this.local$accountPersonUid,this.local$clazzUid,this.local$permission,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Rl.prototype.personHasPermissionWithClazz_b9bd0d$=function(t,e,n,i,o){var r=new Gl(this,t,e,n,i);return o?r:r.doResume(null)},ql.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ql.prototype=Object.create(N.prototype),ql.prototype.constructor=ql,ql.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.selectDelegatablePermissions_3pjtqy$(this.local$accountPersonUid,this.local$clazzUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Rl.prototype.selectDelegatablePermissions_3pjtqy$=function(t,e,n,i){var o=new ql(this,t,e,n);return i?o:o.doResume(null)},Rl.prototype.getClazzWithDisplayDetails_3pjtqy$=function(t,e){return this._dao.getClazzWithDisplayDetails_3pjtqy$(t,e)},Rl.prototype.findClazzesWithEffectiveHolidayCalendarAndFilter_s8cxhz$=function(t){return this._dao.findClazzesWithEffectiveHolidayCalendarAndFilter_s8cxhz$(t)},Fl.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Fl.prototype=Object.create(N.prototype),Fl.prototype.constructor=Fl,Fl.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.getClazzWithSchool_s8cxhz$(this.local$clazzUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Rl.prototype.getClazzWithSchool_s8cxhz$=function(t,e,n){var i=new Fl(this,t,e);return n?i:i.doResume(null)},Rl.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},Bl.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Bl.prototype=Object.create(N.prototype),Bl.prototype.constructor=Bl,Bl.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Rl.prototype.insertAsync=function(t,e,n){var i=new Bl(this,t,e);return n?i:i.doResume(null)},Rl.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},Rl.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},Rl.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},Rl.$metadata$={kind:c,simpleName:"ClazzDao_Repo",interfaces:[hc]},Wl.prototype.getAllClazzEnrolledAtTimeAsync_6qtc6d$=function(t,e,n,i,o,r){return void 0===i&&(i=X),r?r(t,e,n,i,o):this.getAllClazzEnrolledAtTimeAsync_6qtc6d$$default(t,e,n,i,o)},Wl.prototype.findByClazzUidAndRole_i7yiqk$=function(t,e,n,i,o,r,s,a){return void 0===i&&(i="%"),a?a(t,e,n,i,o,r,s):this.findByClazzUidAndRole_i7yiqk$$default(t,e,n,i,o,r,s)},Wl.$metadata$={kind:c,simpleName:"ClazzEnrolmentDao",interfaces:[X6]},Hl.prototype.insertListAsync_9f9sqv$=function(t){this._insertAdapterClazzEnrolment_.insertList_4ezy5m$(t)},Hl.prototype.insert_11rb$=function(t){return this._insertAdapterClazzEnrolment_.insertAndReturnId_11rb$(t)},Vl.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Vl.prototype=Object.create(N.prototype),Vl.prototype.constructor=Vl,Vl.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterClazzEnrolment_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hl.prototype.insertAsync=function(t,e,n){var i=new Vl(this,t,e);return n?i:i.doResume(null)},Hl.prototype.insertList_4ezy5m$=function(t){this._insertAdapterClazzEnrolment_.insertList_4ezy5m$(t)},Kl.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Kl.prototype=Object.create(N.prototype),Kl.prototype.constructor=Kl,Kl.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$entity.clazzEnrolmentPersonUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$entity.clazzEnrolmentClazzUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$entity.clazzEnrolmentDateJoined),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$entity.clazzEnrolmentDateLeft),this.local$_stmt.setInt_vux9f0$(5,this.local$closure$entity.clazzEnrolmentRole),this.local$_stmt.setFloat_24o109$(6,this.local$closure$entity.clazzEnrolmentAttendancePercentage),this.local$_stmt.setBoolean_fzusl$(7,this.local$closure$entity.clazzEnrolmentActive),this.local$_stmt.setLong_6svq3l$(8,this.local$closure$entity.clazzEnrolmentLeavingReasonUid),this.local$_stmt.setInt_vux9f0$(9,this.local$closure$entity.clazzEnrolmentOutcome),this.local$_stmt.setLong_6svq3l$(10,this.local$closure$entity.clazzEnrolmentLocalChangeSeqNum),this.local$_stmt.setLong_6svq3l$(11,this.local$closure$entity.clazzEnrolmentMasterChangeSeqNum),this.local$_stmt.setInt_vux9f0$(12,this.local$closure$entity.clazzEnrolmentLastChangedBy),this.local$_stmt.setLong_6svq3l$(13,this.local$closure$entity.clazzEnrolmentLct),this.local$_stmt.setLong_6svq3l$(14,this.local$closure$entity.clazzEnrolmentUid),this.local$tmp$=this.local$closure$_result.v,this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$closure$_result.v=this.local$tmp$+this.result_0|0,V;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Jl.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Jl.prototype=Object.create(N.prototype),Jl.prototype.constructor=Jl,Jl.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_result={v:0},this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE ClazzEnrolment SET clazzEnrolmentPersonUid = ?, clazzEnrolmentClazzUid = ?, clazzEnrolmentDateJoined = ?, clazzEnrolmentDateLeft = ?, clazzEnrolmentRole = ?, clazzEnrolmentAttendancePercentage = ?, clazzEnrolmentActive = ?, clazzEnrolmentLeavingReasonUid = ?, clazzEnrolmentOutcome = ?, clazzEnrolmentLocalChangeSeqNum = ?, clazzEnrolmentMasterChangeSeqNum = ?, clazzEnrolmentLastChangedBy = ?, clazzEnrolmentLct = ? WHERE clazzEnrolmentUid = ?",Xl(this.local$entity,this.local$_result),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$_result.v;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hl.prototype.updateAsync_95p8s2$=function(t,e,n){var i=new Jl(this,t,e);return n?i:i.doResume(null)},Hl.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE ClazzEnrolment SET clazzEnrolmentPersonUid = ?, clazzEnrolmentClazzUid = ?, clazzEnrolmentDateJoined = ?, clazzEnrolmentDateLeft = ?, clazzEnrolmentRole = ?, clazzEnrolmentAttendancePercentage = ?, clazzEnrolmentActive = ?, clazzEnrolmentLeavingReasonUid = ?, clazzEnrolmentOutcome = ?, clazzEnrolmentLocalChangeSeqNum = ?, clazzEnrolmentMasterChangeSeqNum = ?, clazzEnrolmentLastChangedBy = ?, clazzEnrolmentLct = ? WHERE clazzEnrolmentUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.clazzEnrolmentPersonUid),t.setLong_6svq3l$(2,i.clazzEnrolmentClazzUid),t.setLong_6svq3l$(3,i.clazzEnrolmentDateJoined),t.setLong_6svq3l$(4,i.clazzEnrolmentDateLeft),t.setInt_vux9f0$(5,i.clazzEnrolmentRole),t.setFloat_24o109$(6,i.clazzEnrolmentAttendancePercentage),t.setBoolean_fzusl$(7,i.clazzEnrolmentActive),t.setLong_6svq3l$(8,i.clazzEnrolmentLeavingReasonUid),t.setInt_vux9f0$(9,i.clazzEnrolmentOutcome),t.setLong_6svq3l$(10,i.clazzEnrolmentLocalChangeSeqNum),t.setLong_6svq3l$(11,i.clazzEnrolmentMasterChangeSeqNum),t.setInt_vux9f0$(12,i.clazzEnrolmentLastChangedBy),t.setLong_6svq3l$(13,i.clazzEnrolmentLct),t.setLong_6svq3l$(14,i.clazzEnrolmentUid),t.executeUpdate()}return t.getConnection().commit(),V}))},Hl.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE ClazzEnrolment SET clazzEnrolmentPersonUid = ?, clazzEnrolmentClazzUid = ?, clazzEnrolmentDateJoined = ?, clazzEnrolmentDateLeft = ?, clazzEnrolmentRole = ?, clazzEnrolmentAttendancePercentage = ?, clazzEnrolmentActive = ?, clazzEnrolmentLeavingReasonUid = ?, clazzEnrolmentOutcome = ?, clazzEnrolmentLocalChangeSeqNum = ?, clazzEnrolmentMasterChangeSeqNum = ?, clazzEnrolmentLastChangedBy = ?, clazzEnrolmentLct = ? WHERE clazzEnrolmentUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.clazzEnrolmentPersonUid),t.setLong_6svq3l$(2,e.clazzEnrolmentClazzUid),t.setLong_6svq3l$(3,e.clazzEnrolmentDateJoined),t.setLong_6svq3l$(4,e.clazzEnrolmentDateLeft),t.setInt_vux9f0$(5,e.clazzEnrolmentRole),t.setFloat_24o109$(6,e.clazzEnrolmentAttendancePercentage),t.setBoolean_fzusl$(7,e.clazzEnrolmentActive),t.setLong_6svq3l$(8,e.clazzEnrolmentLeavingReasonUid),t.setInt_vux9f0$(9,e.clazzEnrolmentOutcome),t.setLong_6svq3l$(10,e.clazzEnrolmentLocalChangeSeqNum),t.setLong_6svq3l$(11,e.clazzEnrolmentMasterChangeSeqNum),t.setInt_vux9f0$(12,e.clazzEnrolmentLastChangedBy),t.setLong_6svq3l$(13,e.clazzEnrolmentLct),t.setLong_6svq3l$(14,e.clazzEnrolmentUid),t.executeUpdate()}))},Yl.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Yl.prototype=Object.create(N.prototype),Yl.prototype.constructor=Yl,Yl.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Zl.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Zl.prototype=Object.create(N.prototype),Zl.prototype.constructor=Zl,Zl.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ClazzEnrolmentReplicate(cePk, ceDestination)\n | SELECT DISTINCT ClazzEnrolment.clazzEnrolmentUid AS ceUid,\n | ? AS ceDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 64 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | JOIN ClazzEnrolment \n | ON ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND ClazzEnrolment.clazzEnrolmentLct != COALESCE(\n | (SELECT ceVersionId\n | FROM ClazzEnrolmentReplicate\n | WHERE cePk = ClazzEnrolment.clazzEnrolmentUid\n | AND ceDestination = ?), 0) \n | /*psql ON CONFLICT(cePk, ceDestination) DO UPDATE\n | SET cePending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ClazzEnrolmentReplicate(cePk, ceDestination)\n | SELECT DISTINCT ClazzEnrolment.clazzEnrolmentUid AS ceUid,\n | ? AS ceDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 64 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | JOIN ClazzEnrolment \n | ON ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND ClazzEnrolment.clazzEnrolmentLct != COALESCE(\n | (SELECT ceVersionId\n | FROM ClazzEnrolmentReplicate\n | WHERE cePk = ClazzEnrolment.clazzEnrolmentUid\n | AND ceDestination = ?), 0) \n | ON CONFLICT(cePk, ceDestination) DO UPDATE\n | SET cePending = true\n | \n | \n |")),Ql(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hl.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new Zl(this,t,e);return n?i:i.doResume(null)},tu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},tu.prototype=Object.create(N.prototype),tu.prototype.constructor=tu,tu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},nu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},nu.prototype=Object.create(N.prototype),nu.prototype.constructor=nu,nu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ClazzEnrolmentReplicate(cePk, ceDestination)\n | SELECT DISTINCT ClazzEnrolment.clazzEnrolmentUid AS ceUid,\n | UserSession.usClientNodeId AS ceDestination\n | FROM ChangeLog\n | JOIN ClazzEnrolment\n | ON ChangeLog.chTableId = 65\n | AND ChangeLog.chEntityPk = ClazzEnrolment.clazzEnrolmentUid\n | JOIN Clazz\n | ON Clazz.clazzUid = ClazzEnrolment.clazzEnrolmentClazzUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 2\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ClazzEnrolment.clazzEnrolmentLct != COALESCE(\n | (SELECT ceVersionId\n | FROM ClazzEnrolmentReplicate\n | WHERE cePk = ClazzEnrolment.clazzEnrolmentUid\n | AND ceDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(cePk, ceDestination) DO UPDATE\n | SET cePending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ClazzEnrolmentReplicate(cePk, ceDestination)\n | SELECT DISTINCT ClazzEnrolment.clazzEnrolmentUid AS ceUid,\n | UserSession.usClientNodeId AS ceDestination\n | FROM ChangeLog\n | JOIN ClazzEnrolment\n | ON ChangeLog.chTableId = 65\n | AND ChangeLog.chEntityPk = ClazzEnrolment.clazzEnrolmentUid\n | JOIN Clazz\n | ON Clazz.clazzUid = ClazzEnrolment.clazzEnrolmentClazzUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 2\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ClazzEnrolment.clazzEnrolmentLct != COALESCE(\n | (SELECT ceVersionId\n | FROM ClazzEnrolmentReplicate\n | WHERE cePk = ClazzEnrolment.clazzEnrolmentUid\n | AND ceDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(cePk, ceDestination) DO UPDATE\n | SET cePending = true\n | \n | \n |")),eu,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hl.prototype.replicateClazzEnrolmentOnChange=function(t,e){var n=new nu(this,t);return e?n:n.doResume(null)},ou.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ou.prototype=Object.create(N.prototype),ou.prototype.constructor=ou,ou.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$clazzUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,iu);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hl.prototype.findByPersonUidAndClazzUidAsync_3pjtqy$=function(t,e,n){return ct(this._db,new st(S("\n |SELECT * FROM ClazzEnrolment WHERE clazzEnrolmentPersonUid = ? \n | AND clazzEnrolmentClazzUid = ? \n | AND clazzEnrolmentOutcome = 200 LIMIT 1\n ")),(i=t,o=e,function(t,e,n){var r=new ou(i,o,t,e);return n?r:r.doResume(null)}),n);var i,o},au.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},au.prototype=Object.create(N.prototype),au.prototype.constructor=au,au.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$clazzUid),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(4,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,su);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},lu.prototype=Object.create(N.prototype),lu.prototype.constructor=lu,lu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ClazzEnrolmentDao_JdbcKt._db,new st(S("\n |SELECT * FROM (SELECT ClazzEnrolment.*, LeavingReason.*, \n | COALESCE(Clazz.clazzTimeZone, COALESCE(School.schoolTimeZone, 'UTC')) as timeZone\n | FROM ClazzEnrolment LEFT JOIN\n | LeavingReason ON LeavingReason.leavingReasonUid = ClazzEnrolment.clazzEnrolmentLeavingReasonUid\n | LEFT JOIN Clazz ON Clazz.clazzUid = ClazzEnrolment.clazzEnrolmentClazzUid\n | LEFT JOIN School ON School.schoolUid = Clazz.clazzSchoolUid\n | WHERE clazzEnrolmentPersonUid = ? \n | AND ClazzEnrolment.clazzEnrolmentActive \n | AND clazzEnrolmentClazzUid = ? ORDER BY clazzEnrolmentDateLeft DESC) LIMIT ? OFFSET ?\n ")),cu(this.local$closure$personUid,this.local$closure$clazzUid,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ru.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$ClazzEnrolmentDao_JdbcKt._db,p(["ClazzEnrolment","LeavingReason","Clazz","School"]),(n=this.this$ClazzEnrolmentDao_JdbcKt,i=this.closure$personUid,o=this.closure$clazzUid,r=e,s=t,function(t,e){var a=new lu(n,i,o,r,s,t);return e?a:a.doResume(null)}));var n,i,o,r,s},hu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},hu.prototype=Object.create(N.prototype),hu.prototype.constructor=hu,hu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$clazzUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,uu);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},pu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},pu.prototype=Object.create(N.prototype),pu.prototype.constructor=pu,pu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ClazzEnrolmentDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (SELECT ClazzEnrolment.*, LeavingReason.*, \n | COALESCE(Clazz.clazzTimeZone, COALESCE(School.schoolTimeZone, 'UTC')) as timeZone\n | FROM ClazzEnrolment LEFT JOIN\n | LeavingReason ON LeavingReason.leavingReasonUid = ClazzEnrolment.clazzEnrolmentLeavingReasonUid\n | LEFT JOIN Clazz ON Clazz.clazzUid = ClazzEnrolment.clazzEnrolmentClazzUid\n | LEFT JOIN School ON School.schoolUid = Clazz.clazzSchoolUid\n | WHERE clazzEnrolmentPersonUid = ? \n | AND ClazzEnrolment.clazzEnrolmentActive \n | AND clazzEnrolmentClazzUid = ? ORDER BY clazzEnrolmentDateLeft DESC) \n ")),du(this.local$closure$personUid,this.local$closure$clazzUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ru.prototype.getLength=function(){return new ft(this.this$ClazzEnrolmentDao_JdbcKt._db,p(["ClazzEnrolment","LeavingReason","Clazz","School"]),(t=this.this$ClazzEnrolmentDao_JdbcKt,e=this.closure$personUid,n=this.closure$clazzUid,function(i,o){var r=new pu(t,e,n,i);return o?r:r.doResume(null)}));var t,e,n},ru.$metadata$={kind:c,interfaces:[gt]},Hl.prototype.findAllEnrolmentsByPersonAndClazzUid_3pjtqy$=function(t,e){return new ru(this,t,e)},mu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},mu.prototype=Object.create(N.prototype),mu.prototype.constructor=mu,mu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$enrolmentUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,_u);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hl.prototype.findEnrolmentWithLeavingReason_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |SELECT ClazzEnrolment.*, LeavingReason.*,\n | COALESCE(Clazz.clazzTimeZone, COALESCE(School.schoolTimeZone, 'UTC')) as timeZone\n | FROM ClazzEnrolment LEFT JOIN\n | LeavingReason ON LeavingReason.leavingReasonUid = ClazzEnrolment.clazzEnrolmentLeavingReasonUid\n | LEFT JOIN Clazz ON Clazz.clazzUid = ClazzEnrolment.clazzEnrolmentClazzUid\n | LEFT JOIN School ON School.schoolUid = Clazz.clazzSchoolUid\n | WHERE ClazzEnrolment.clazzEnrolmentUid = ?\n ")),(n=t,function(t,e,i){var o=new mu(n,t,e);return i?o:o.doResume(null)}),e);var n},fu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fu.prototype=Object.create(N.prototype),fu.prototype.constructor=fu,fu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$endDate),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$updateTime),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$clazzEnrolmentUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},$u.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},$u.prototype=Object.create(N.prototype),$u.prototype.constructor=$u,$u.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | UPDATE ClazzEnrolment \n | SET clazzEnrolmentDateLeft = ?,\n | clazzEnrolmentLct = ?\n | WHERE clazzEnrolmentUid = ?\n ")),gu(this.local$endDate,this.local$updateTime,this.local$clazzEnrolmentUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hl.prototype.updateDateLeftByUid_b9bd0d$=function(t,e,n,i,o){var r=new $u(this,t,e,n,i);return o?r:r.doResume(null)},bu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},bu.prototype=Object.create(N.prototype),bu.prototype.constructor=bu,bu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$personUid),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(4,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,yu);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},vu.prototype=Object.create(N.prototype),vu.prototype.constructor=vu,vu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ClazzEnrolmentDao_JdbcKt._db,new st(S("\n |SELECT * FROM (SELECT ClazzEnrolment.*, Clazz.*, (SELECT ((CAST(COUNT(DISTINCT CASE WHEN \n | ClazzLogAttendanceRecord.attendanceStatus = 1 THEN \n | ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid ELSE NULL END) AS REAL) / \n | MAX(COUNT(ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid),1)) * 100) \n | FROM ClazzLogAttendanceRecord LEFT JOIN ClazzLog ON \n | ClazzLogAttendanceRecord.clazzLogAttendanceRecordClazzLogUid = ClazzLog.clazzLogUid WHERE \n | ClazzLogAttendanceRecord.clazzLogAttendanceRecordPersonUid = ? \n | AND ClazzLog.clazzLogClazzUid = Clazz.clazzUid AND ClazzLog.logDate \n | BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft) \n | as attendance\n | FROM ClazzEnrolment\n | LEFT JOIN Clazz ON ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid\n | WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n | AND ClazzEnrolment.clazzEnrolmentActive\n | ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n | ) LIMIT ? OFFSET ?\n "),void 0,void 0,void 0,S("\n |SELECT ClazzEnrolment.*, Clazz.*, (SELECT ((CAST(COUNT(DISTINCT CASE WHEN \n | ClazzLogAttendanceRecord.attendanceStatus = 1 THEN \n | ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid ELSE NULL END) AS REAL) / \n | GREATEST(COUNT(ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid),1)) * 100) \n | FROM ClazzLogAttendanceRecord LEFT JOIN ClazzLog ON \n | ClazzLogAttendanceRecord.clazzLogAttendanceRecordClazzLogUid = ClazzLog.clazzLogUid WHERE \n | ClazzLogAttendanceRecord.clazzLogAttendanceRecordPersonUid = ? \n | AND ClazzLog.clazzLogClazzUid = Clazz.clazzUid AND ClazzLog.logDate \n | BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft) \n | as attendance\n | FROM ClazzEnrolment\n | LEFT JOIN Clazz ON ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid\n | WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n | AND ClazzEnrolment.clazzEnrolmentActive\n | ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n | \n ")),Su(this.local$closure$personUid,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Eu.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$ClazzEnrolmentDao_JdbcKt._db,p(["ClazzLogAttendanceRecord","ClazzLog","ClazzEnrolment","Clazz"]),(n=this.this$ClazzEnrolmentDao_JdbcKt,i=this.closure$personUid,o=e,r=t,function(t,e){var s=new vu(n,i,o,r,t);return e?s:s.doResume(null)}));var n,i,o,r},Nu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Nu.prototype=Object.create(N.prototype),Nu.prototype.constructor=Nu,Nu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$personUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Cu);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Lu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Lu.prototype=Object.create(N.prototype),Lu.prototype.constructor=Lu,Lu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ClazzEnrolmentDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (SELECT ClazzEnrolment.*, Clazz.*, (SELECT ((CAST(COUNT(DISTINCT CASE WHEN \n | ClazzLogAttendanceRecord.attendanceStatus = 1 THEN \n | ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid ELSE NULL END) AS REAL) / \n | MAX(COUNT(ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid),1)) * 100) \n | FROM ClazzLogAttendanceRecord LEFT JOIN ClazzLog ON \n | ClazzLogAttendanceRecord.clazzLogAttendanceRecordClazzLogUid = ClazzLog.clazzLogUid WHERE \n | ClazzLogAttendanceRecord.clazzLogAttendanceRecordPersonUid = ? \n | AND ClazzLog.clazzLogClazzUid = Clazz.clazzUid AND ClazzLog.logDate \n | BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft) \n | as attendance\n | FROM ClazzEnrolment\n | LEFT JOIN Clazz ON ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid\n | WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n | AND ClazzEnrolment.clazzEnrolmentActive\n | ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n | ) \n "),void 0,void 0,void 0,S("\n |SELECT ClazzEnrolment.*, Clazz.*, (SELECT ((CAST(COUNT(DISTINCT CASE WHEN \n | ClazzLogAttendanceRecord.attendanceStatus = 1 THEN \n | ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid ELSE NULL END) AS REAL) / \n | GREATEST(COUNT(ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid),1)) * 100) \n | FROM ClazzLogAttendanceRecord LEFT JOIN ClazzLog ON \n | ClazzLogAttendanceRecord.clazzLogAttendanceRecordClazzLogUid = ClazzLog.clazzLogUid WHERE \n | ClazzLogAttendanceRecord.clazzLogAttendanceRecordPersonUid = ? \n | AND ClazzLog.clazzLogClazzUid = Clazz.clazzUid AND ClazzLog.logDate \n | BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined AND ClazzEnrolment.clazzEnrolmentDateLeft) \n | as attendance\n | FROM ClazzEnrolment\n | LEFT JOIN Clazz ON ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid\n | WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?\n | AND ClazzEnrolment.clazzEnrolmentActive\n | ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n | \n ")),Tu(this.local$closure$personUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Eu.prototype.getLength=function(){return new ft(this.this$ClazzEnrolmentDao_JdbcKt._db,p(["ClazzLogAttendanceRecord","ClazzLog","ClazzEnrolment","Clazz"]),(t=this.this$ClazzEnrolmentDao_JdbcKt,e=this.closure$personUid,function(n,i){var o=new Lu(t,e,n);return i?o:o.doResume(null)}));var t,e},Eu.$metadata$={kind:c,interfaces:[gt]},Hl.prototype.findAllClazzesByPersonWithClazz_s8cxhz$=function(t){return new Eu(this,t)},wu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},wu.prototype=Object.create(N.prototype),wu.prototype.constructor=wu,wu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$selectedPerson),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$selectedClazz),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$selectedEnrolment),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,zu);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hl.prototype.findMaxEndDateForEnrolment_b9bd0d$=function(t,e,n,i){return ct(this._db,new st(S("\n |SELECT COALESCE(MAX(clazzEnrolmentDateLeft),0) FROM ClazzEnrolment WHERE \n | ClazzEnrolment.clazzEnrolmentPersonUid = ? \n | AND ClazzEnrolment.clazzEnrolmentActive \n | AND clazzEnrolmentClazzUid = ? AND clazzEnrolmentUid != ?\n | \n ")),(o=e,r=t,s=n,function(t,e,n){var i=new wu(o,r,s,t,e);return n?i:i.doResume(null)}),i);var o,r,s},Ru.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ru.prototype=Object.create(N.prototype),Ru.prototype.constructor=Ru,Ru.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Ou);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hl.prototype.findAllClazzesByPersonWithClazzAsListAsync_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |SELECT ClazzEnrolment.*, Clazz.* \n | FROM ClazzEnrolment \n | LEFT JOIN Clazz ON ClazzEnrolment.clazzEnrolmentClazzUid = Clazz.clazzUid \n | WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ? \n | AND ClazzEnrolment.clazzEnrolmentActive\n | ORDER BY ClazzEnrolment.clazzEnrolmentDateLeft DESC\n | \n ")),(n=t,function(t,e,i){var o=new Ru(n,t,e);return i?o:o.doResume(null)}),e);var n},xu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},xu.prototype=Object.create(N.prototype),xu.prototype.constructor=xu,xu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$clazzUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$date),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$roleFilter),this.local$_stmt.setInt_vux9f0$(4,this.local$closure$roleFilter),this.local$_stmt.setLong_6svq3l$(5,this.local$closure$personUidFilter),this.local$_stmt.setLong_6svq3l$(6,this.local$closure$personUidFilter),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Au);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hl.prototype.getAllClazzEnrolledAtTimeAsync_6qtc6d$$default=function(t,e,n,i,o){return ct(this._db,new st(S("\n |\n | SELECT ClazzEnrolment.*, Person.*\n | FROM ClazzEnrolment\n | LEFT JOIN Person ON ClazzEnrolment.clazzEnrolmentPersonUid = Person.personUid\n | WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ?\n | AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n | AND ClazzEnrolment.clazzEnrolmentDateLeft\n | AND CAST(clazzEnrolmentActive AS INTEGER) = 1\n | AND (? = 0 OR ClazzEnrolment.clazzEnrolmentRole = ?)\n | AND (? = 0 OR ClazzEnrolment.clazzEnrolmentPersonUid = ?)\n | \n ")),(r=t,s=e,a=n,c=i,function(t,e,n){var i=new xu(r,s,a,c,t,e);return n?i:i.doResume(null)}),o);var r,s,a,c},Uu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Uu.prototype=Object.create(N.prototype),Uu.prototype.constructor=Uu,Uu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Iu);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hl.prototype.findByUid_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT * FROM ClazzEnrolment WHERE clazzEnrolmentUid = ?"),(n=t,function(t,e,i){var o=new Uu(n,t,e);return i?o:o.doResume(null)}),e);var n},Pu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Pu.prototype=Object.create(N.prototype),Pu.prototype.constructor=Pu,Pu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Du);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ku.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ku.prototype=Object.create(N.prototype),ku.prototype.constructor=ku,ku.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ClazzEnrolmentDao_JdbcKt._db,new st("SELECT * FROM ClazzEnrolment WHERE clazzEnrolmentUid = ?"),Mu(this.local$closure$uid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hl.prototype.findByUidLive_s8cxhz$=function(t){return new ft(this._db,Et("ClazzEnrolment"),(e=this,n=t,function(t,i){var o=new ku(e,n,t);return i?o:o.doResume(null)}));var e,n},ju.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ju.prototype=Object.create(N.prototype),ju.prototype.constructor=ju,ju.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setBoolean_fzusl$(1,this.local$closure$active),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$changeTime),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$clazzUid),this.local$_stmt.setInt_vux9f0$(5,this.local$closure$roleId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hl.prototype.updateClazzEnrolmentActiveForPersonAndClazz_mpc0bo$=function(t,e,n,i,o,r){return ct(this._db,new st(S("\n |\n | UPDATE ClazzEnrolment\n | SET clazzEnrolmentActive = ?,\n | clazzEnrolmentLct= ?\n | WHERE clazzEnrolmentPersonUid = ? \n | AND clazzEnrolmentClazzUid = ?\n | AND clazzEnrolmentRole = ?\n ")),(s=i,a=o,c=t,l=e,u=n,function(t,e,n){var i=new ju(s,a,c,l,u,t,e);return n?i:i.doResume(null)}),r);var s,a,c,l,u},Fu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Fu.prototype=Object.create(N.prototype),Fu.prototype.constructor=Fu,Fu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$clazzUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$clazzUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$accountPersonUid),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$clazzUid),this.local$_stmt.setInt_vux9f0$(5,this.local$closure$roleId),this.local$_stmt.setInt_vux9f0$(6,this.local$closure$filter),this.local$_stmt.setLong_6svq3l$(7,this.local$closure$currentTime),this.local$_stmt.setString_vqvrqt$(8,this.local$closure$searchText),this.local$_stmt.setInt_vux9f0$(9,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(10,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(11,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(12,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(13,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(14,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,qu);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Wu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Wu.prototype=Object.create(N.prototype),Wu.prototype.constructor=Wu,Wu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ClazzEnrolmentDao_JdbcKt._db,new st(S("\n |SELECT * FROM (\n | SELECT Person.*, \n | (SELECT ((CAST(COUNT(DISTINCT \n | CASE WHEN ClazzLogAttendanceRecord.attendanceStatus = 1 \n | THEN ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid \n | ELSE NULL \n | END) \n | AS REAL) / \n | MAX(COUNT(ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid),1)) * 100) \n | FROM ClazzLogAttendanceRecord \n | JOIN ClazzLog \n | ON ClazzLogAttendanceRecord.clazzLogAttendanceRecordClazzLogUid = ClazzLog.clazzLogUid \n | WHERE ClazzLogAttendanceRecord.clazzLogAttendanceRecordPersonUid = Person.personUid \n | AND ClazzLog.clazzLogClazzUid = ?) AS attendance, \n | \n | \t (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n | FROM ClazzEnrolment \n | WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n | \n | \t (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n | FROM ClazzEnrolment \n | WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n | \n | (SELECT clazzEnrolmentRole \n | FROM clazzEnrolment \n | WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n | AND ClazzEnrolment.clazzEnrolmentClazzUid = ? \n | AND ClazzEnrolment.clazzEnrolmentActive) AS enrolmentRole\n | FROM PersonGroupMember\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & 64 \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | \n | WHERE PersonGroupMember.groupMemberPersonUid = ?\n | AND PersonGroupMember.groupMemberActive \n | AND Person.personUid IN (SELECT clazzEnrolmentPersonUid \n | FROM ClazzEnrolment \n | WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ? \n | AND ClazzEnrolment.clazzEnrolmentActive \n | AND ClazzEnrolment.clazzEnrolmentRole = ? \n | AND (? != 1 \n | OR (? \n | BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n | AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n | AND Person.firstNames || ' ' || Person.lastName LIKE ?\n | GROUP BY Person.personUid\n | ORDER BY CASE(?)\n | WHEN 1 THEN Person.firstNames\n | WHEN 3 THEN Person.lastName\n | ELSE ''\n | END ASC,\n | CASE(?)\n | WHEN 2 THEN Person.firstNames\n | WHEN 4 THEN Person.lastName\n | ELSE ''\n | END DESC,\n | CASE(?)\n | WHEN 5 THEN attendance\n | WHEN 7 THEN earliestJoinDate\n | WHEN 9 THEN latestDateLeft\n | ELSE 0\n | END ASC,\n | CASE(?)\n | WHEN 6 THEN attendance\n | WHEN 8 THEN earliestJoinDate\n | WHEN 10 THEN latestDateLeft\n | ELSE 0\n | END DESC\n | ) LIMIT ? OFFSET ?\n ")),Bu(this.local$closure$clazzUid,this.local$closure$accountPersonUid,this.local$closure$roleId,this.local$closure$filter,this.local$closure$currentTime,this.local$closure$searchText,this.local$closure$sortOrder,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Gu.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$ClazzEnrolmentDao_JdbcKt._db,p(["Clazz","Person","ClazzEnrolment","PersonGroupMember","ScopedGrant"]),(n=this.this$ClazzEnrolmentDao_JdbcKt,i=this.closure$clazzUid,o=this.closure$accountPersonUid,r=this.closure$roleId,s=this.closure$filter,a=this.closure$currentTime,c=this.closure$searchText,l=this.closure$sortOrder,u=e,h=t,function(t,e){var d=new Wu(n,i,o,r,s,a,c,l,u,h,t);return e?d:d.doResume(null)}));var n,i,o,r,s,a,c,l,u,h},Vu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Vu.prototype=Object.create(N.prototype),Vu.prototype.constructor=Vu,Vu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$clazzUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$clazzUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$accountPersonUid),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$clazzUid),this.local$_stmt.setInt_vux9f0$(5,this.local$closure$roleId),this.local$_stmt.setInt_vux9f0$(6,this.local$closure$filter),this.local$_stmt.setLong_6svq3l$(7,this.local$closure$currentTime),this.local$_stmt.setString_vqvrqt$(8,this.local$closure$searchText),this.local$_stmt.setInt_vux9f0$(9,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(10,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(11,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(12,this.local$closure$sortOrder),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Hu);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Xu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Xu.prototype=Object.create(N.prototype),Xu.prototype.constructor=Xu,Xu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ClazzEnrolmentDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (\n | SELECT Person.*, \n | (SELECT ((CAST(COUNT(DISTINCT \n | CASE WHEN ClazzLogAttendanceRecord.attendanceStatus = 1 \n | THEN ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid \n | ELSE NULL \n | END) \n | AS REAL) / \n | MAX(COUNT(ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid),1)) * 100) \n | FROM ClazzLogAttendanceRecord \n | JOIN ClazzLog \n | ON ClazzLogAttendanceRecord.clazzLogAttendanceRecordClazzLogUid = ClazzLog.clazzLogUid \n | WHERE ClazzLogAttendanceRecord.clazzLogAttendanceRecordPersonUid = Person.personUid \n | AND ClazzLog.clazzLogClazzUid = ?) AS attendance, \n | \n | \t (SELECT MIN(ClazzEnrolment.clazzEnrolmentDateJoined) \n | FROM ClazzEnrolment \n | WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS earliestJoinDate, \n | \n | \t (SELECT MAX(ClazzEnrolment.clazzEnrolmentDateLeft) \n | FROM ClazzEnrolment \n | WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid) AS latestDateLeft, \n | \n | (SELECT clazzEnrolmentRole \n | FROM clazzEnrolment \n | WHERE Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid \n | AND ClazzEnrolment.clazzEnrolmentClazzUid = ? \n | AND ClazzEnrolment.clazzEnrolmentActive) AS enrolmentRole\n | FROM PersonGroupMember\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & 64 \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | \n | WHERE PersonGroupMember.groupMemberPersonUid = ?\n | AND PersonGroupMember.groupMemberActive \n | AND Person.personUid IN (SELECT clazzEnrolmentPersonUid \n | FROM ClazzEnrolment \n | WHERE ClazzEnrolment.clazzEnrolmentClazzUid = ? \n | AND ClazzEnrolment.clazzEnrolmentActive \n | AND ClazzEnrolment.clazzEnrolmentRole = ? \n | AND (? != 1 \n | OR (? \n | BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n | AND ClazzEnrolment.clazzEnrolmentDateLeft))) \n | AND Person.firstNames || ' ' || Person.lastName LIKE ?\n | GROUP BY Person.personUid\n | ORDER BY CASE(?)\n | WHEN 1 THEN Person.firstNames\n | WHEN 3 THEN Person.lastName\n | ELSE ''\n | END ASC,\n | CASE(?)\n | WHEN 2 THEN Person.firstNames\n | WHEN 4 THEN Person.lastName\n | ELSE ''\n | END DESC,\n | CASE(?)\n | WHEN 5 THEN attendance\n | WHEN 7 THEN earliestJoinDate\n | WHEN 9 THEN latestDateLeft\n | ELSE 0\n | END ASC,\n | CASE(?)\n | WHEN 6 THEN attendance\n | WHEN 8 THEN earliestJoinDate\n | WHEN 10 THEN latestDateLeft\n | ELSE 0\n | END DESC\n | ) \n ")),Ku(this.local$closure$clazzUid,this.local$closure$accountPersonUid,this.local$closure$roleId,this.local$closure$filter,this.local$closure$currentTime,this.local$closure$searchText,this.local$closure$sortOrder),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Gu.prototype.getLength=function(){return new ft(this.this$ClazzEnrolmentDao_JdbcKt._db,p(["Clazz","Person","ClazzEnrolment","PersonGroupMember","ScopedGrant"]),(t=this.this$ClazzEnrolmentDao_JdbcKt,e=this.closure$clazzUid,n=this.closure$accountPersonUid,i=this.closure$roleId,o=this.closure$filter,r=this.closure$currentTime,s=this.closure$searchText,a=this.closure$sortOrder,function(c,l){var u=new Xu(t,e,n,i,o,r,s,a,c);return l?u:u.doResume(null)}));var t,e,n,i,o,r,s,a},Gu.$metadata$={kind:c,interfaces:[gt]},Hl.prototype.findByClazzUidAndRole_i7yiqk$$default=function(t,e,n,i,o,r,s){return new Gu(this,t,r,e,o,s,i,n)},Hl.prototype.updateClazzEnrolmentActiveForClazzEnrolment_zaz62j$=function(t,e,n){return ht(this._db,new st(S("\n |\n | UPDATE ClazzEnrolment \n | SET clazzEnrolmentActive = ?,\n | clazzEnrolmentLct = ?\n | WHERE clazzEnrolmentUid = ?\n ")),(i=e,o=n,r=t,function(t){return t.setBoolean_fzusl$(1,i),t.setLong_6svq3l$(2,o),t.setLong_6svq3l$(3,r),t.executeUpdate()}));var i,o,r},Ju.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ju.prototype=Object.create(N.prototype),Ju.prototype.constructor=Ju,Ju.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setInt_vux9f0$(1,this.local$closure$newRole),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$updateTime),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$clazzUid),this.local$_stmt.setInt_vux9f0$(5,this.local$closure$oldRole),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hl.prototype.updateClazzEnrolmentRole_d2c2sj$=function(t,e,n,i,o,r){return ct(this._db,new st(S("\n |\n | UPDATE ClazzEnrolment \n | SET clazzEnrolmentRole = ?,\n | clazzEnrolmentLct = ? \n | -- Avoid potential for duplicate approvals if user was previously refused \n | WHERE clazzEnrolmentUid = COALESCE( \n | (SELECT clazzEnrolmentUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentPersonUid = ? \n | AND clazzEnrolmentClazzUid = ?\n | AND clazzEnrolmentRole = ?\n | AND CAST(clazzEnrolmentActive AS INTEGER) = 1\n | LIMIT 1), 0)\n ")),(s=n,a=o,c=t,l=e,u=i,function(t,e,n){var i=new Ju(s,a,c,l,u,t,e);return n?i:i.doResume(null)}),r);var s,a,c,l,u},Yu.prototype.makeSql_6taknv$=function(t){return"INSERT INTO ClazzEnrolment (clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},Yu.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.clazzEnrolmentUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.clazzEnrolmentUid),t.setLong_6svq3l$(2,e.clazzEnrolmentPersonUid),t.setLong_6svq3l$(3,e.clazzEnrolmentClazzUid),t.setLong_6svq3l$(4,e.clazzEnrolmentDateJoined),t.setLong_6svq3l$(5,e.clazzEnrolmentDateLeft),t.setInt_vux9f0$(6,e.clazzEnrolmentRole),t.setFloat_24o109$(7,e.clazzEnrolmentAttendancePercentage),t.setBoolean_fzusl$(8,e.clazzEnrolmentActive),t.setLong_6svq3l$(9,e.clazzEnrolmentLeavingReasonUid),t.setInt_vux9f0$(10,e.clazzEnrolmentOutcome),t.setLong_6svq3l$(11,e.clazzEnrolmentLocalChangeSeqNum),t.setLong_6svq3l$(12,e.clazzEnrolmentMasterChangeSeqNum),t.setInt_vux9f0$(13,e.clazzEnrolmentLastChangedBy),t.setLong_6svq3l$(14,e.clazzEnrolmentLct)},Yu.$metadata$={kind:c,interfaces:[pt]},Hl.$metadata$={kind:c,simpleName:"ClazzEnrolmentDao_JdbcKt",interfaces:[Wl]},Zu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Zu.prototype=Object.create(N.prototype),Zu.prototype.constructor=Zu,Zu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Qu.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new Zu(this,t,e);return n?i:i.doResume(null)},th.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},th.prototype=Object.create(N.prototype),th.prototype.constructor=th,th.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateClazzEnrolmentOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Qu.prototype.replicateClazzEnrolmentOnChange=function(t,e){var n=new th(this,t);return e?n:n.doResume(null)},Qu.prototype.insertListAsync_9f9sqv$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Qu.prototype.findByPersonUidAndClazzUidAsync_3pjtqy$=function(t,e,n){return this._dao_0.findByPersonUidAndClazzUidAsync_3pjtqy$(t,e,n)},Qu.prototype.findAllEnrolmentsByPersonAndClazzUid_3pjtqy$=function(t,e){return this._dao_0.findAllEnrolmentsByPersonAndClazzUid_3pjtqy$(t,e)},Qu.prototype.findEnrolmentWithLeavingReason_s8cxhz$=function(t,e){return this._dao_0.findEnrolmentWithLeavingReason_s8cxhz$(t,e)},eh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},eh.prototype=Object.create(N.prototype),eh.prototype.constructor=eh,eh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.updateDateLeftByUid_b9bd0d$(this.local$clazzEnrolmentUid,this.local$endDate,this.local$updateTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Qu.prototype.updateDateLeftByUid_b9bd0d$=function(t,e,n,i,o){var r=new eh(this,t,e,n,i);return o?r:r.doResume(null)},Qu.prototype.updateAsync_95p8s2$=function(t,e){return t.clazzEnrolmentLct=J(),this._dao_0.updateAsync_95p8s2$(t,e)},Qu.prototype.findAllClazzesByPersonWithClazz_s8cxhz$=function(t){return this._dao_0.findAllClazzesByPersonWithClazz_s8cxhz$(t)},Qu.prototype.findMaxEndDateForEnrolment_b9bd0d$=function(t,e,n,i){return this._dao_0.findMaxEndDateForEnrolment_b9bd0d$(t,e,n,i)},Qu.prototype.findAllClazzesByPersonWithClazzAsListAsync_s8cxhz$=function(t,e){return this._dao_0.findAllClazzesByPersonWithClazzAsListAsync_s8cxhz$(t,e)},Qu.prototype.getAllClazzEnrolledAtTimeAsync_6qtc6d$$default=function(t,e,n,i,o){return this._dao_0.getAllClazzEnrolledAtTimeAsync_6qtc6d$(t,e,n,i,o)},Qu.prototype.findByUid_s8cxhz$=function(t,e){return this._dao_0.findByUid_s8cxhz$(t,e)},Qu.prototype.findByUidLive_s8cxhz$=function(t){return this._dao_0.findByUidLive_s8cxhz$(t)},Qu.prototype.updateClazzEnrolmentActiveForPersonAndClazz_mpc0bo$=function(t,e,n,i,o,r){return this._dao_0.updateClazzEnrolmentActiveForPersonAndClazz_mpc0bo$(t,e,n,i,o,r)},Qu.prototype.findByClazzUidAndRole_i7yiqk$$default=function(t,e,n,i,o,r,s){return this._dao_0.findByClazzUidAndRole_i7yiqk$(t,e,n,i,o,r,s)},Qu.prototype.updateClazzEnrolmentActiveForClazzEnrolment_zaz62j$=function(t,e,n){throw v("Synchronous db access is NOT possible on Javascript!")},Qu.prototype.updateClazzEnrolmentRole_d2c2sj$=function(t,e,n,i,o,r){return this._dao_0.updateClazzEnrolmentRole_d2c2sj$(t,e,n,i,o,r)},Qu.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},nh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},nh.prototype=Object.create(N.prototype),nh.prototype.constructor=nh,nh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.clazzEnrolmentUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(65,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.clazzEnrolmentUid=e,this.state_0=3;continue;case 3:if(this.local$entity.clazzEnrolmentLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.clazzEnrolmentUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Qu.prototype.insertAsync=function(t,e,n){var i=new nh(this,t,e);return n?i:i.doResume(null)},Qu.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Qu.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Qu.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Qu.$metadata$={kind:c,simpleName:"ClazzEnrolmentDao_ReplicateWrapper",interfaces:[Wl]},oh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},oh.prototype=Object.create(N.prototype),oh.prototype.constructor=oh,oh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ih.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new oh(this,t,e);return n?i:i.doResume(null)},rh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},rh.prototype=Object.create(N.prototype),rh.prototype.constructor=rh,rh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateClazzEnrolmentOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ih.prototype.replicateClazzEnrolmentOnChange=function(t,e){var n=new rh(this,t);return e?n:n.doResume(null)},ih.prototype.insertListAsync_9f9sqv$=function(t){this._dao.insertListAsync_9f9sqv$(t)},sh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},sh.prototype=Object.create(N.prototype),sh.prototype.constructor=sh,sh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByPersonUidAndClazzUidAsync_3pjtqy$(this.local$personUid,this.local$clazzUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ih.prototype.findByPersonUidAndClazzUidAsync_3pjtqy$=function(t,e,n,i){var o=new sh(this,t,e,n);return i?o:o.doResume(null)},ih.prototype.findAllEnrolmentsByPersonAndClazzUid_3pjtqy$=function(t,e){return this._dao.findAllEnrolmentsByPersonAndClazzUid_3pjtqy$(t,e)},ah.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ah.prototype=Object.create(N.prototype),ah.prototype.constructor=ah,ah.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findEnrolmentWithLeavingReason_s8cxhz$(this.local$enrolmentUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ih.prototype.findEnrolmentWithLeavingReason_s8cxhz$=function(t,e,n){var i=new ah(this,t,e);return n?i:i.doResume(null)},ch.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ch.prototype=Object.create(N.prototype),ch.prototype.constructor=ch,ch.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateDateLeftByUid_b9bd0d$(this.local$clazzEnrolmentUid,this.local$endDate,this.local$updateTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ih.prototype.updateDateLeftByUid_b9bd0d$=function(t,e,n,i,o){var r=new ch(this,t,e,n,i);return o?r:r.doResume(null)},lh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},lh.prototype=Object.create(N.prototype),lh.prototype.constructor=lh,lh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateAsync_95p8s2$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ih.prototype.updateAsync_95p8s2$=function(t,e,n){var i=new lh(this,t,e);return n?i:i.doResume(null)},ih.prototype.findAllClazzesByPersonWithClazz_s8cxhz$=function(t){return this._dao.findAllClazzesByPersonWithClazz_s8cxhz$(t)},uh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},uh.prototype=Object.create(N.prototype),uh.prototype.constructor=uh,uh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findMaxEndDateForEnrolment_b9bd0d$(this.local$selectedClazz,this.local$selectedPerson,this.local$selectedEnrolment,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ih.prototype.findMaxEndDateForEnrolment_b9bd0d$=function(t,e,n,i,o){var r=new uh(this,t,e,n,i);return o?r:r.doResume(null)},hh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},hh.prototype=Object.create(N.prototype),hh.prototype.constructor=hh,hh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findAllClazzesByPersonWithClazzAsListAsync_s8cxhz$(this.local$personUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ih.prototype.findAllClazzesByPersonWithClazzAsListAsync_s8cxhz$=function(t,e,n){var i=new hh(this,t,e);return n?i:i.doResume(null)},dh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},dh.prototype=Object.create(N.prototype),dh.prototype.constructor=dh,dh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.getAllClazzEnrolledAtTimeAsync_6qtc6d$(this.local$clazzUid,this.local$date,this.local$roleFilter,this.local$personUidFilter,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ih.prototype.getAllClazzEnrolledAtTimeAsync_6qtc6d$$default=function(t,e,n,i,o,r){var s=new dh(this,t,e,n,i,o);return r?s:s.doResume(null)},ph.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ph.prototype=Object.create(N.prototype),ph.prototype.constructor=ph,ph.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByUid_s8cxhz$(this.local$uid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ih.prototype.findByUid_s8cxhz$=function(t,e,n){var i=new ph(this,t,e);return n?i:i.doResume(null)},ih.prototype.findByUidLive_s8cxhz$=function(t){return this._dao.findByUidLive_s8cxhz$(t)},_h.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_h.prototype=Object.create(N.prototype),_h.prototype.constructor=_h,_h.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateClazzEnrolmentActiveForPersonAndClazz_mpc0bo$(this.local$personUid,this.local$clazzUid,this.local$roleId,this.local$active,this.local$changeTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ih.prototype.updateClazzEnrolmentActiveForPersonAndClazz_mpc0bo$=function(t,e,n,i,o,r,s){var a=new _h(this,t,e,n,i,o,r);return s?a:a.doResume(null)},ih.prototype.findByClazzUidAndRole_i7yiqk$$default=function(t,e,n,i,o,r,s){return this._dao.findByClazzUidAndRole_i7yiqk$(t,e,n,i,o,r,s)},ih.prototype.updateClazzEnrolmentActiveForClazzEnrolment_zaz62j$=function(t,e,n){return this._dao.updateClazzEnrolmentActiveForClazzEnrolment_zaz62j$(t,e,n)},mh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},mh.prototype=Object.create(N.prototype),mh.prototype.constructor=mh,mh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateClazzEnrolmentRole_d2c2sj$(this.local$personUid,this.local$clazzUid,this.local$newRole,this.local$oldRole,this.local$updateTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ih.prototype.updateClazzEnrolmentRole_d2c2sj$=function(t,e,n,i,o,r,s){var a=new mh(this,t,e,n,i,o,r);return s?a:a.doResume(null)},ih.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},fh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fh.prototype=Object.create(N.prototype),fh.prototype.constructor=fh,fh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ih.prototype.insertAsync=function(t,e,n){var i=new fh(this,t,e);return n?i:i.doResume(null)},ih.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},ih.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},ih.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},ih.$metadata$={kind:c,simpleName:"ClazzEnrolmentDao_Repo",interfaces:[Wl]},gh.$metadata$={kind:c,simpleName:"ClazzLogAttendanceRecordDao",interfaces:[X6]},Eh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Eh.prototype=Object.create(N.prototype),Eh.prototype.constructor=Eh,Eh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterClazzLogAttendanceRecord_.insertListAsync_4ezy5m$(this.local$entities,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},$h.prototype.insertListAsync_7quahr$=function(t,e,n){var i=new Eh(this,t,e);return n?i:i.doResume(null)},$h.prototype.insert_11rb$=function(t){return this._insertAdapterClazzLogAttendanceRecord_.insertAndReturnId_11rb$(t)},yh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},yh.prototype=Object.create(N.prototype),yh.prototype.constructor=yh,yh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterClazzLogAttendanceRecord_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},$h.prototype.insertAsync=function(t,e,n){var i=new yh(this,t,e);return n?i:i.doResume(null)},$h.prototype.insertList_4ezy5m$=function(t){this._insertAdapterClazzLogAttendanceRecord_.insertList_4ezy5m$(t)},bh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},bh.prototype=Object.create(N.prototype),bh.prototype.constructor=bh,bh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_stmt.getConnection().setAutoCommit_6taknv$(!1),this.local$tmp$=this.local$closure$entities.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$tmp$.hasNext()){this.state_0=4;continue}var t=this.local$tmp$.next();if(this.local$_stmt.setLong_6svq3l$(1,t.clazzLogAttendanceRecordClazzLogUid),this.local$_stmt.setLong_6svq3l$(2,t.clazzLogAttendanceRecordPersonUid),this.local$_stmt.setInt_vux9f0$(3,t.attendanceStatus),this.local$_stmt.setLong_6svq3l$(4,t.clazzLogAttendanceRecordMasterChangeSeqNum),this.local$_stmt.setLong_6svq3l$(5,t.clazzLogAttendanceRecordLocalChangeSeqNum),this.local$_stmt.setInt_vux9f0$(6,t.clazzLogAttendanceRecordLastChangedBy),this.local$_stmt.setLong_6svq3l$(7,t.clazzLogAttendanceRecordLastChangedTime),this.local$_stmt.setLong_6svq3l$(8,t.clazzLogAttendanceRecordUid),this.state_0=3,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 3:this.state_0=2;continue;case 4:return this.local$_stmt.getConnection().commit(),V;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},vh.prototype=Object.create(N.prototype),vh.prototype.constructor=vh,vh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE ClazzLogAttendanceRecord SET clazzLogAttendanceRecordClazzLogUid = ?, clazzLogAttendanceRecordPersonUid = ?, attendanceStatus = ?, clazzLogAttendanceRecordMasterChangeSeqNum = ?, clazzLogAttendanceRecordLocalChangeSeqNum = ?, clazzLogAttendanceRecordLastChangedBy = ?, clazzLogAttendanceRecordLastChangedTime = ? WHERE clazzLogAttendanceRecordUid = ?",Sh(this.local$entities),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},$h.prototype.updateListAsync_7quahr$=function(t,e,n){var i=new vh(this,t,e);return n?i:i.doResume(null)},$h.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE ClazzLogAttendanceRecord SET clazzLogAttendanceRecordClazzLogUid = ?, clazzLogAttendanceRecordPersonUid = ?, attendanceStatus = ?, clazzLogAttendanceRecordMasterChangeSeqNum = ?, clazzLogAttendanceRecordLocalChangeSeqNum = ?, clazzLogAttendanceRecordLastChangedBy = ?, clazzLogAttendanceRecordLastChangedTime = ? WHERE clazzLogAttendanceRecordUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.clazzLogAttendanceRecordClazzLogUid),t.setLong_6svq3l$(2,i.clazzLogAttendanceRecordPersonUid),t.setInt_vux9f0$(3,i.attendanceStatus),t.setLong_6svq3l$(4,i.clazzLogAttendanceRecordMasterChangeSeqNum),t.setLong_6svq3l$(5,i.clazzLogAttendanceRecordLocalChangeSeqNum),t.setInt_vux9f0$(6,i.clazzLogAttendanceRecordLastChangedBy),t.setLong_6svq3l$(7,i.clazzLogAttendanceRecordLastChangedTime),t.setLong_6svq3l$(8,i.clazzLogAttendanceRecordUid),t.executeUpdate()}return t.getConnection().commit(),V}))},$h.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE ClazzLogAttendanceRecord SET clazzLogAttendanceRecordClazzLogUid = ?, clazzLogAttendanceRecordPersonUid = ?, attendanceStatus = ?, clazzLogAttendanceRecordMasterChangeSeqNum = ?, clazzLogAttendanceRecordLocalChangeSeqNum = ?, clazzLogAttendanceRecordLastChangedBy = ?, clazzLogAttendanceRecordLastChangedTime = ? WHERE clazzLogAttendanceRecordUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.clazzLogAttendanceRecordClazzLogUid),t.setLong_6svq3l$(2,e.clazzLogAttendanceRecordPersonUid),t.setInt_vux9f0$(3,e.attendanceStatus),t.setLong_6svq3l$(4,e.clazzLogAttendanceRecordMasterChangeSeqNum),t.setLong_6svq3l$(5,e.clazzLogAttendanceRecordLocalChangeSeqNum),t.setInt_vux9f0$(6,e.clazzLogAttendanceRecordLastChangedBy),t.setLong_6svq3l$(7,e.clazzLogAttendanceRecordLastChangedTime),t.setLong_6svq3l$(8,e.clazzLogAttendanceRecordUid),t.executeUpdate()}))},Ch.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ch.prototype=Object.create(N.prototype),Ch.prototype.constructor=Ch,Ch.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Th.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Th.prototype=Object.create(N.prototype),Th.prototype.constructor=Th,Th.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ClazzLogAttendanceRecordReplicate(clarPk, clarDestination)\n | SELECT DISTINCT ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid AS clarUid,\n | ? AS clarDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 2048 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | JOIN ClazzLog\n | ON ClazzLog.clazzLogClazzUid = Clazz.clazzUid\n | JOIN ClazzLogAttendanceRecord \n | ON ClazzLogAttendanceRecord.clazzLogAttendanceRecordClazzLogUid = ClazzLog.clazzLogUid\n | WHERE ClazzLogAttendanceRecord.clazzLogAttendanceRecordLastChangedTime != COALESCE(\n | (SELECT clarVersionId\n | FROM ClazzLogAttendanceRecordReplicate\n | WHERE clarPk = ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid\n | AND clarDestination = ?), 0) \n | /*psql ON CONFLICT(clarPk, clarDestination) DO UPDATE\n | SET clarPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ClazzLogAttendanceRecordReplicate(clarPk, clarDestination)\n | SELECT DISTINCT ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid AS clarUid,\n | ? AS clarDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 2048 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | JOIN ClazzLog\n | ON ClazzLog.clazzLogClazzUid = Clazz.clazzUid\n | JOIN ClazzLogAttendanceRecord \n | ON ClazzLogAttendanceRecord.clazzLogAttendanceRecordClazzLogUid = ClazzLog.clazzLogUid\n | WHERE ClazzLogAttendanceRecord.clazzLogAttendanceRecordLastChangedTime != COALESCE(\n | (SELECT clarVersionId\n | FROM ClazzLogAttendanceRecordReplicate\n | WHERE clarPk = ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid\n | AND clarDestination = ?), 0) \n | ON CONFLICT(clarPk, clarDestination) DO UPDATE\n | SET clarPending = true\n | \n | \n |")),Nh(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},$h.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new Th(this,t,e);return n?i:i.doResume(null)},Lh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Lh.prototype=Object.create(N.prototype),Lh.prototype.constructor=Lh,Lh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},wh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},wh.prototype=Object.create(N.prototype),wh.prototype.constructor=wh,wh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ClazzLogAttendanceRecordReplicate(clarPk, clarDestination)\n | SELECT DISTINCT ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid AS clarUid,\n | UserSession.usClientNodeId AS clarDestination\n | FROM ChangeLog\n | JOIN ClazzLogAttendanceRecord \n | ON ChangeLog.chTableId = 15 \n | AND ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid = ChangeLog.chEntityPk\n | JOIN ClazzLog\n | ON ClazzLog.clazzLogUid = ClazzLogAttendanceRecord.clazzLogAttendanceRecordClazzLogUid\n | JOIN Clazz \n | ON Clazz.clazzUid = ClazzLog.clazzLogClazzUid \n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 2\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ClazzLogAttendanceRecord.clazzLogAttendanceRecordLastChangedTime != COALESCE(\n | (SELECT clarVersionId\n | FROM ClazzLogAttendanceRecordReplicate\n | WHERE clarPk = ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid\n | AND clarDestination = UserSession.usClientNodeId), 0) \n | /*psql ON CONFLICT(clarPk, clarDestination) DO UPDATE\n | SET clarPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ClazzLogAttendanceRecordReplicate(clarPk, clarDestination)\n | SELECT DISTINCT ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid AS clarUid,\n | UserSession.usClientNodeId AS clarDestination\n | FROM ChangeLog\n | JOIN ClazzLogAttendanceRecord \n | ON ChangeLog.chTableId = 15 \n | AND ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid = ChangeLog.chEntityPk\n | JOIN ClazzLog\n | ON ClazzLog.clazzLogUid = ClazzLogAttendanceRecord.clazzLogAttendanceRecordClazzLogUid\n | JOIN Clazz \n | ON Clazz.clazzUid = ClazzLog.clazzLogClazzUid \n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 2\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ClazzLogAttendanceRecord.clazzLogAttendanceRecordLastChangedTime != COALESCE(\n | (SELECT clarVersionId\n | FROM ClazzLogAttendanceRecordReplicate\n | WHERE clarPk = ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid\n | AND clarDestination = UserSession.usClientNodeId), 0) \n | ON CONFLICT(clarPk, clarDestination) DO UPDATE\n | SET clarPending = true\n | \n | \n |")),zh,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},$h.prototype.replicateOnChange=function(t,e){var n=new wh(this,t);return e?n:n.doResume(null)},$h.prototype.findByUid_s8cxhz$=function(t){return ht(this._db,new st("SELECT * from ClazzLogAttendanceRecord WHERE clazzLogAttendanceRecordUid = ?"),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),Oh)}));var e},Ah.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ah.prototype=Object.create(N.prototype),Ah.prototype.constructor=Ah,Ah.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$clazzLogUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Rh);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},$h.prototype.findByClazzLogUid_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |SELECT ClazzLogAttendanceRecord.*, Person.*\n | FROM ClazzLogAttendanceRecord \n | LEFT JOIN Person ON ClazzLogAttendanceRecord.clazzLogAttendanceRecordPersonUid = Person.personUid\n | WHERE clazzLogAttendanceRecordClazzLogUid = ?\n ")),(n=t,function(t,e,i){var o=new Ah(n,t,e);return i?o:o.doResume(null)}),e);var n},$h.prototype.updateRescheduledClazzLogUids_b9bd0d$=function(t,e,n){var i,o,r;ht(this._db,new st(S("\n |\n | UPDATE ClazzLogAttendanceRecord\n | SET clazzLogAttendanceRecordClazzLogUid = ?,\n | clazzLogAttendanceRecordLastChangedTime = ?\n | WHERE clazzLogAttendanceRecordClazzLogUid = ?\n | \n ")),(i=e,o=n,r=t,function(t){return t.setLong_6svq3l$(1,i),t.setLong_6svq3l$(2,o),t.setLong_6svq3l$(3,r),t.executeUpdate()}))},xh.prototype.makeSql_6taknv$=function(t){return"INSERT INTO ClazzLogAttendanceRecord (clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime) VALUES(?, ?, ?, ?, ?, ?, ?, ?)"},xh.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.clazzLogAttendanceRecordUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.clazzLogAttendanceRecordUid),t.setLong_6svq3l$(2,e.clazzLogAttendanceRecordClazzLogUid),t.setLong_6svq3l$(3,e.clazzLogAttendanceRecordPersonUid),t.setInt_vux9f0$(4,e.attendanceStatus),t.setLong_6svq3l$(5,e.clazzLogAttendanceRecordMasterChangeSeqNum),t.setLong_6svq3l$(6,e.clazzLogAttendanceRecordLocalChangeSeqNum),t.setInt_vux9f0$(7,e.clazzLogAttendanceRecordLastChangedBy),t.setLong_6svq3l$(8,e.clazzLogAttendanceRecordLastChangedTime)},xh.$metadata$={kind:c,interfaces:[pt]},$h.$metadata$={kind:c,simpleName:"ClazzLogAttendanceRecordDao_JdbcKt",interfaces:[gh]},Uh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Uh.prototype=Object.create(N.prototype),Uh.prototype.constructor=Uh,Uh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ih.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new Uh(this,t,e);return n?i:i.doResume(null)},Dh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Dh.prototype=Object.create(N.prototype),Dh.prototype.constructor=Dh,Dh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ih.prototype.replicateOnChange=function(t,e){var n=new Dh(this,t);return e?n:n.doResume(null)},Ph.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ph.prototype=Object.create(N.prototype),Ph.prototype.constructor=Ph,Ph.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_pkManager=_t(w(this.$this._db_0)),this.local$_generatedPks=F(),this.local$$receiver=this.local$entities.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$$receiver.hasNext()){this.state_0=5;continue}if(this.local$element=this.local$$receiver.next(),O(this.local$element.clazzLogAttendanceRecordUid,X)){if(this.state_0=3,this.result_0=this.local$_pkManager.nextIdAsync_za3lpa$(15,this),this.result_0===C)return C;continue}this.state_0=4;continue;case 3:var t=this.result_0;this.local$element.clazzLogAttendanceRecordUid=t,this.local$_generatedPks.add_11rb$(t),this.state_0=4;continue;case 4:this.local$element.clazzLogAttendanceRecordLastChangedTime=J(),this.state_0=2;continue;case 5:if(this.state_0=6,this.result_0=this.$this._dao_0.insertListAsync_7quahr$(this.local$entities,this),this.result_0===C)return C;continue;case 6:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ih.prototype.insertListAsync_7quahr$=function(t,e,n){var i=new Ph(this,t,e);return n?i:i.doResume(null)},Ih.prototype.findByUid_s8cxhz$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Mh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Mh.prototype=Object.create(N.prototype),Mh.prototype.constructor=Mh,Mh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:F();for(var t=this.local$entities.iterator();t.hasNext();)t.next().clazzLogAttendanceRecordLastChangedTime=J();if(this.state_0=2,this.result_0=this.$this._dao_0.updateListAsync_7quahr$(this.local$entities,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ih.prototype.updateListAsync_7quahr$=function(t,e,n){var i=new Mh(this,t,e);return n?i:i.doResume(null)},Ih.prototype.findByClazzLogUid_s8cxhz$=function(t,e){return this._dao_0.findByClazzLogUid_s8cxhz$(t,e)},Ih.prototype.updateRescheduledClazzLogUids_b9bd0d$=function(t,e,n){throw v("Synchronous db access is NOT possible on Javascript!")},Ih.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},kh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},kh.prototype=Object.create(N.prototype),kh.prototype.constructor=kh,kh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.clazzLogAttendanceRecordUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(15,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.clazzLogAttendanceRecordUid=e,this.state_0=3;continue;case 3:if(this.local$entity.clazzLogAttendanceRecordLastChangedTime=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.clazzLogAttendanceRecordUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ih.prototype.insertAsync=function(t,e,n){var i=new kh(this,t,e);return n?i:i.doResume(null)},Ih.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Ih.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Ih.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Ih.$metadata$={kind:c,simpleName:"ClazzLogAttendanceRecordDao_ReplicateWrapper",interfaces:[gh]},Gh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Gh.prototype=Object.create(N.prototype),Gh.prototype.constructor=Gh,Gh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jh.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new Gh(this,t,e);return n?i:i.doResume(null)},qh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},qh.prototype=Object.create(N.prototype),qh.prototype.constructor=qh,qh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jh.prototype.replicateOnChange=function(t,e){var n=new qh(this,t);return e?n:n.doResume(null)},Fh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Fh.prototype=Object.create(N.prototype),Fh.prototype.constructor=Fh,Fh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertListAsync_7quahr$(this.local$entities,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jh.prototype.insertListAsync_7quahr$=function(t,e,n){var i=new Fh(this,t,e);return n?i:i.doResume(null)},jh.prototype.findByUid_s8cxhz$=function(t){return this._dao.findByUid_s8cxhz$(t)},Bh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Bh.prototype=Object.create(N.prototype),Bh.prototype.constructor=Bh,Bh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateListAsync_7quahr$(this.local$entities,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jh.prototype.updateListAsync_7quahr$=function(t,e,n){var i=new Bh(this,t,e);return n?i:i.doResume(null)},Wh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Wh.prototype=Object.create(N.prototype),Wh.prototype.constructor=Wh,Wh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByClazzLogUid_s8cxhz$(this.local$clazzLogUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jh.prototype.findByClazzLogUid_s8cxhz$=function(t,e,n){var i=new Wh(this,t,e);return n?i:i.doResume(null)},jh.prototype.updateRescheduledClazzLogUids_b9bd0d$=function(t,e,n){this._dao.updateRescheduledClazzLogUids_b9bd0d$(t,e,n)},jh.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},Hh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Hh.prototype=Object.create(N.prototype),Hh.prototype.constructor=Hh,Hh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jh.prototype.insertAsync=function(t,e,n){var i=new Hh(this,t,e);return n?i:i.doResume(null)},jh.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},jh.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},jh.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},jh.$metadata$={kind:c,simpleName:"ClazzLogAttendanceRecordDao_Repo",interfaces:[gh]},Vh.prototype.findByClazzUidWithinTimeRange_ttedgd$=function(t,e,n,i,o,r){return void 0===i&&(i=0),void 0===o&&(o=2147483647),r?r(t,e,n,i,o):this.findByClazzUidWithinTimeRange_ttedgd$$default(t,e,n,i,o)},Vh.$metadata$={kind:c,simpleName:"ClazzLogDao",interfaces:[X6]},Kh.prototype.replace_b1okmm$=function(t){return this._insertAdapterClazzLog_upsert.insertAndReturnId_11rb$(t)},Kh.prototype.insert_11rb$=function(t){return this._insertAdapterClazzLog_.insertAndReturnId_11rb$(t)},Xh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Xh.prototype=Object.create(N.prototype),Xh.prototype.constructor=Xh,Xh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterClazzLog_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Kh.prototype.insertAsync=function(t,e,n){var i=new Xh(this,t,e);return n?i:i.doResume(null)},Kh.prototype.insertList_4ezy5m$=function(t){this._insertAdapterClazzLog_.insertList_4ezy5m$(t)},Jh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Jh.prototype=Object.create(N.prototype),Jh.prototype.constructor=Jh,Jh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$clazzLog.clazzLogClazzUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$clazzLog.logDate),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$clazzLog.timeRecorded),this.local$_stmt.setBoolean_fzusl$(4,this.local$closure$clazzLog.clazzLogDone),this.local$_stmt.setString_vqvrqt$(5,this.local$closure$clazzLog.cancellationNote),this.local$_stmt.setBoolean_fzusl$(6,this.local$closure$clazzLog.clazzLogCancelled),this.local$_stmt.setInt_vux9f0$(7,this.local$closure$clazzLog.clazzLogNumPresent),this.local$_stmt.setInt_vux9f0$(8,this.local$closure$clazzLog.clazzLogNumAbsent),this.local$_stmt.setInt_vux9f0$(9,this.local$closure$clazzLog.clazzLogNumPartial),this.local$_stmt.setLong_6svq3l$(10,this.local$closure$clazzLog.clazzLogScheduleUid),this.local$_stmt.setInt_vux9f0$(11,this.local$closure$clazzLog.clazzLogStatusFlag),this.local$_stmt.setLong_6svq3l$(12,this.local$closure$clazzLog.clazzLogMSQN),this.local$_stmt.setLong_6svq3l$(13,this.local$closure$clazzLog.clazzLogLCSN),this.local$_stmt.setInt_vux9f0$(14,this.local$closure$clazzLog.clazzLogLCB),this.local$_stmt.setLong_6svq3l$(15,this.local$closure$clazzLog.clazzLogLastChangedTime),this.local$_stmt.setLong_6svq3l$(16,this.local$closure$clazzLog.clazzLogUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Qh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Qh.prototype=Object.create(N.prototype),Qh.prototype.constructor=Qh,Qh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE ClazzLog SET clazzLogClazzUid = ?, logDate = ?, timeRecorded = ?, clazzLogDone = ?, cancellationNote = ?, clazzLogCancelled = ?, clazzLogNumPresent = ?, clazzLogNumAbsent = ?, clazzLogNumPartial = ?, clazzLogScheduleUid = ?, clazzLogStatusFlag = ?, clazzLogMSQN = ?, clazzLogLCSN = ?, clazzLogLCB = ?, clazzLogLastChangedTime = ? WHERE clazzLogUid = ?",Yh(this.local$clazzLog),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Kh.prototype.updateAsync_b1okmm$=function(t,e,n){var i=new Qh(this,t,e);return n?i:i.doResume(null)},Kh.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE ClazzLog SET clazzLogClazzUid = ?, logDate = ?, timeRecorded = ?, clazzLogDone = ?, cancellationNote = ?, clazzLogCancelled = ?, clazzLogNumPresent = ?, clazzLogNumAbsent = ?, clazzLogNumPartial = ?, clazzLogScheduleUid = ?, clazzLogStatusFlag = ?, clazzLogMSQN = ?, clazzLogLCSN = ?, clazzLogLCB = ?, clazzLogLastChangedTime = ? WHERE clazzLogUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.clazzLogClazzUid),t.setLong_6svq3l$(2,i.logDate),t.setLong_6svq3l$(3,i.timeRecorded),t.setBoolean_fzusl$(4,i.clazzLogDone),t.setString_vqvrqt$(5,i.cancellationNote),t.setBoolean_fzusl$(6,i.clazzLogCancelled),t.setInt_vux9f0$(7,i.clazzLogNumPresent),t.setInt_vux9f0$(8,i.clazzLogNumAbsent),t.setInt_vux9f0$(9,i.clazzLogNumPartial),t.setLong_6svq3l$(10,i.clazzLogScheduleUid),t.setInt_vux9f0$(11,i.clazzLogStatusFlag),t.setLong_6svq3l$(12,i.clazzLogMSQN),t.setLong_6svq3l$(13,i.clazzLogLCSN),t.setInt_vux9f0$(14,i.clazzLogLCB),t.setLong_6svq3l$(15,i.clazzLogLastChangedTime),t.setLong_6svq3l$(16,i.clazzLogUid),t.executeUpdate()}return t.getConnection().commit(),V}))},Kh.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE ClazzLog SET clazzLogClazzUid = ?, logDate = ?, timeRecorded = ?, clazzLogDone = ?, cancellationNote = ?, clazzLogCancelled = ?, clazzLogNumPresent = ?, clazzLogNumAbsent = ?, clazzLogNumPartial = ?, clazzLogScheduleUid = ?, clazzLogStatusFlag = ?, clazzLogMSQN = ?, clazzLogLCSN = ?, clazzLogLCB = ?, clazzLogLastChangedTime = ? WHERE clazzLogUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.clazzLogClazzUid),t.setLong_6svq3l$(2,e.logDate),t.setLong_6svq3l$(3,e.timeRecorded),t.setBoolean_fzusl$(4,e.clazzLogDone),t.setString_vqvrqt$(5,e.cancellationNote),t.setBoolean_fzusl$(6,e.clazzLogCancelled),t.setInt_vux9f0$(7,e.clazzLogNumPresent),t.setInt_vux9f0$(8,e.clazzLogNumAbsent),t.setInt_vux9f0$(9,e.clazzLogNumPartial),t.setLong_6svq3l$(10,e.clazzLogScheduleUid),t.setInt_vux9f0$(11,e.clazzLogStatusFlag),t.setLong_6svq3l$(12,e.clazzLogMSQN),t.setLong_6svq3l$(13,e.clazzLogLCSN),t.setInt_vux9f0$(14,e.clazzLogLCB),t.setLong_6svq3l$(15,e.clazzLogLastChangedTime),t.setLong_6svq3l$(16,e.clazzLogUid),t.executeUpdate()}))},Zh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Zh.prototype=Object.create(N.prototype),Zh.prototype.constructor=Zh,Zh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ed.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ed.prototype=Object.create(N.prototype),ed.prototype.constructor=ed,ed.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ClazzLogReplicate(clPk, clDestination)\n | SELECT DISTINCT ClazzLog.clazzLogUid AS clUid,\n | ? AS clDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 2 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | JOIN ClazzLog\n | ON ClazzLog.clazzLogClazzUid = Clazz.clazzUid\n | WHERE ClazzLog.clazzLogLastChangedTime != COALESCE(\n | (SELECT clVersionId\n | FROM ClazzLogReplicate\n | WHERE clPk = ClazzLog.clazzLogUid\n | AND clDestination = ?), 0) \n | /*psql ON CONFLICT(clPk, clDestination) DO UPDATE\n | SET clPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ClazzLogReplicate(clPk, clDestination)\n | SELECT DISTINCT ClazzLog.clazzLogUid AS clUid,\n | ? AS clDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 2 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | JOIN ClazzLog\n | ON ClazzLog.clazzLogClazzUid = Clazz.clazzUid\n | WHERE ClazzLog.clazzLogLastChangedTime != COALESCE(\n | (SELECT clVersionId\n | FROM ClazzLogReplicate\n | WHERE clPk = ClazzLog.clazzLogUid\n | AND clDestination = ?), 0) \n | ON CONFLICT(clPk, clDestination) DO UPDATE\n | SET clPending = true\n | \n | \n |")),td(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Kh.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new ed(this,t,e);return n?i:i.doResume(null)},nd.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},nd.prototype=Object.create(N.prototype),nd.prototype.constructor=nd,nd.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},od.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},od.prototype=Object.create(N.prototype),od.prototype.constructor=od,od.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ClazzLogReplicate(clPk, clDestination)\n | SELECT DISTINCT ClazzLog.clazzLogUid AS clUid,\n | UserSession.usClientNodeId AS clDestination\n | FROM ChangeLog\n | JOIN ClazzLog \n | ON ChangeLog.chTableId = 14 \n | AND ClazzLog.clazzLogUid = ChangeLog.chEntityPk\n | JOIN Clazz \n | ON Clazz.clazzUid = ClazzLog.clazzLogClazzUid \n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 2\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ClazzLog.clazzLogLastChangedTime != COALESCE(\n | (SELECT clVersionId\n | FROM ClazzLogReplicate\n | WHERE clPk = ClazzLog.clazzLogUid\n | AND clDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(clPk, clDestination) DO UPDATE\n | SET clPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ClazzLogReplicate(clPk, clDestination)\n | SELECT DISTINCT ClazzLog.clazzLogUid AS clUid,\n | UserSession.usClientNodeId AS clDestination\n | FROM ChangeLog\n | JOIN ClazzLog \n | ON ChangeLog.chTableId = 14 \n | AND ClazzLog.clazzLogUid = ChangeLog.chEntityPk\n | JOIN Clazz \n | ON Clazz.clazzUid = ClazzLog.clazzLogClazzUid \n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 2\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ClazzLog.clazzLogLastChangedTime != COALESCE(\n | (SELECT clVersionId\n | FROM ClazzLogReplicate\n | WHERE clPk = ClazzLog.clazzLogUid\n | AND clDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(clPk, clDestination) DO UPDATE\n | SET clPending = true\n | \n | \n |")),id,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Kh.prototype.replicateOnChange=function(t,e){var n=new od(this,t);return e?n:n.doResume(null)},Kh.prototype.findByUid_s8cxhz$=function(t){return ht(this._db,new st("SELECT * FROM ClazzLog WHERE clazzLogUid = ?"),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),rd)}));var e},ad.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ad.prototype=Object.create(N.prototype),ad.prototype.constructor=ad,ad.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,sd);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Kh.prototype.findByUidAsync_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT * FROM ClazzLog WHERE clazzLogUid = ?"),(n=t,function(t,e,i){var o=new ad(n,t,e);return i?o:o.doResume(null)}),e);var n},ld.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ld.prototype=Object.create(N.prototype),ld.prototype.constructor=ld,ld.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,cd);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},hd.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},hd.prototype=Object.create(N.prototype),hd.prototype.constructor=hd,hd.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ClazzLogDao_JdbcKt._db,new st("SELECT * FROM ClazzLog WHERE clazzLogUid = ?"),ud(this.local$closure$uid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Kh.prototype.findByUidLive_s8cxhz$=function(t){return new ft(this._db,Et("ClazzLog"),(e=this,n=t,function(t,i){var o=new hd(e,n,t);return i?o:o.doResume(null)}));var e,n},_d.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_d.prototype=Object.create(N.prototype),_d.prototype.constructor=_d,_d.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$clazzUid),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$excludeStatus),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(4,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,pd);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},fd.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fd.prototype=Object.create(N.prototype),fd.prototype.constructor=fd,fd.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ClazzLogDao_JdbcKt._db,new st(S("\n |SELECT * FROM (SELECT ClazzLog.* FROM ClazzLog \n | WHERE clazzLogClazzUid = ?\n | AND clazzLog.clazzLogStatusFlag != ?\n | ORDER BY ClazzLog.logDate DESC) LIMIT ? OFFSET ?\n ")),md(this.local$closure$clazzUid,this.local$closure$excludeStatus,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dd.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$ClazzLogDao_JdbcKt._db,Et("ClazzLog"),(n=this.this$ClazzLogDao_JdbcKt,i=this.closure$clazzUid,o=this.closure$excludeStatus,r=e,s=t,function(t,e){var a=new fd(n,i,o,r,s,t);return e?a:a.doResume(null)}));var n,i,o,r,s},$d.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},$d.prototype=Object.create(N.prototype),$d.prototype.constructor=$d,$d.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$clazzUid),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$excludeStatus),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,gd);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yd.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},yd.prototype=Object.create(N.prototype),yd.prototype.constructor=yd,yd.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ClazzLogDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (SELECT ClazzLog.* FROM ClazzLog \n | WHERE clazzLogClazzUid = ?\n | AND clazzLog.clazzLogStatusFlag != ?\n | ORDER BY ClazzLog.logDate DESC) \n ")),Ed(this.local$closure$clazzUid,this.local$closure$excludeStatus),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dd.prototype.getLength=function(){return new ft(this.this$ClazzLogDao_JdbcKt._db,Et("ClazzLog"),(t=this.this$ClazzLogDao_JdbcKt,e=this.closure$clazzUid,n=this.closure$excludeStatus,function(i,o){var r=new yd(t,e,n,i);return o?r:r.doResume(null)}));var t,e,n},dd.$metadata$={kind:c,interfaces:[gt]},Kh.prototype.findByClazzUidAsFactory_yhmem3$=function(t,e){return new dd(this,t,e)},Sd.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Sd.prototype=Object.create(N.prototype),Sd.prototype.constructor=Sd,Sd.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$clazzUid),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$excludeStatus),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,bd);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Kh.prototype.findByClazzUidAsync_yhmem3$=function(t,e,n){return ct(this._db,new st(S("\n |SELECT ClazzLog.* FROM ClazzLog \n | WHERE clazzLogClazzUid = ?\n | AND clazzLog.clazzLogStatusFlag != ?\n | ORDER BY ClazzLog.logDate ASC\n ")),(i=t,o=e,function(t,e,n){var r=new Sd(i,o,t,e);return n?r:r.doResume(null)}),n);var i,o},Cd.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Cd.prototype=Object.create(N.prototype),Cd.prototype.constructor=Cd,Cd.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$clazzUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$fromTime),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$toTime),this.local$_stmt.setInt_vux9f0$(4,this.local$closure$excludeStatusFilter),this.local$_stmt.setInt_vux9f0$(5,this.local$closure$excludeStatusFilter),this.local$_stmt.setInt_vux9f0$(6,this.local$closure$limit),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,vd);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Kh.prototype.findByClazzUidWithinTimeRangeAsync_ttedgd$=function(t,e,n,i,o,r){return ct(this._db,new st(S("\n |SELECT ClazzLog.* FROM ClazzLog \n | WHERE \n | ClazzLog.clazzLogClazzUid = ? \n | AND ClazzLog.logDate BETWEEN ? AND ?\n | AND (? = 0 OR ((ClazzLog.clazzLogStatusFlag & ?) = 0))\n | ORDER BY ClazzLog.logDate DESC\n | LIMIT ?\n | \n ")),(s=t,a=e,c=n,l=i,u=o,function(t,e,n){var i=new Cd(s,a,c,l,u,t,e);return n?i:i.doResume(null)}),r);var s,a,c,l,u},Kh.prototype.findByClazzUidWithinTimeRange_ttedgd$$default=function(t,e,n,i,o){return ht(this._db,new st(S("\n |SELECT ClazzLog.* FROM ClazzLog \n | WHERE \n | ClazzLog.clazzLogClazzUid = ? \n | AND ClazzLog.logDate BETWEEN ? AND ?\n | AND (? = 0 OR ((ClazzLog.clazzLogStatusFlag & ?) = 0))\n | ORDER BY ClazzLog.logDate DESC\n | LIMIT ?\n | \n ")),(r=t,s=e,a=n,c=i,l=o,function(t){return t.setLong_6svq3l$(1,r),t.setLong_6svq3l$(2,s),t.setLong_6svq3l$(3,a),t.setInt_vux9f0$(4,c),t.setInt_vux9f0$(5,c),t.setInt_vux9f0$(6,l),ut(t.executeQuery(),Nd)}));var r,s,a,c,l},Ld.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ld.prototype=Object.create(N.prototype),Ld.prototype.constructor=Ld,Ld.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$clazzUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$fromTime),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$toTime),this.local$_stmt.setInt_vux9f0$(4,this.local$closure$statusFilter),this.local$_stmt.setInt_vux9f0$(5,this.local$closure$statusFilter),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Td);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},wd.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},wd.prototype=Object.create(N.prototype),wd.prototype.constructor=wd,wd.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ClazzLogDao_JdbcKt._db,new st(S("\n |SELECT ClazzLog.* FROM ClazzLog \n | WHERE \n | ClazzLog.clazzLogClazzUid = ? \n | AND ClazzLog.logDate BETWEEN ? AND ?\n | AND (? = 0 OR ClazzLog.clazzLogStatusFlag = ?)\n | ORDER BY ClazzLog.logDate\n | \n ")),zd(this.local$closure$clazzUid,this.local$closure$fromTime,this.local$closure$toTime,this.local$closure$statusFilter),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Kh.prototype.findByClazzUidWithinTimeRangeLive_kxxcc5$=function(t,e,n,i){return new ft(this._db,Et("ClazzLog"),(o=this,r=t,s=e,a=n,c=i,function(t,e){var n=new wd(o,r,s,a,c,t);return e?n:n.doResume(null)}));var o,r,s,a,c},Rd.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Rd.prototype=Object.create(N.prototype),Rd.prototype.constructor=Rd,Rd.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$clazzUid),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$excludeStatusFilter),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$excludeStatusFilter),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Od);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},xd.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]};function KN(t){return function(e,n,i){var o=new VN(t,e,n);return i?o:o.doResume(null)}}function XN(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function JN(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function YN(t,e,n){var i=new JN(t,e);return n?i:i.doResume(null)}function QN(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function ZN(t){pt.call(this,t)}function tT(t,e){FN.call(this),this._db_0=t,this._dao_0=e}function eT(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function nT(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function iT(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$tmp$=void 0,this.local$_pkManager=void 0,this.local$_generatedPks=void 0,this.local$$receiver=void 0,this.local$element=void 0,this.local$entityList=e}function oT(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function rT(t,e,n,i,o,r){FN.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function sT(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function aT(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function cT(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function lT(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function uT(){}function hT(t){uT.call(this),this._db=t,this._insertAdapterCourseAssignmentSubmission_=new FT(this._db)}function dT(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function pT(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function _T(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function mT(t){return function(e,n,i){var o=new _T(t,e,n);return i?o:o.doResume(null)}}function fT(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function gT(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function $T(t,e,n){var i=new gT(t,e);return n?i:i.doResume(null)}function ET(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function yT(t,e,n){this.this$CourseAssignmentSubmissionDao_JdbcKt=t,this.closure$assignmentUid=e,this.closure$submitterUid=n,gt.call(this)}function bT(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("casUid"),i=e.getLong_61zpoe$("casAssignmentUid"),o=e.getLong_61zpoe$("casSubmitterUid"),r=e.getLong_61zpoe$("casSubmitterPersonUid"),s=e.getString_61zpoe$("casText"),a=e.getInt_61zpoe$("casType"),c=e.getLong_61zpoe$("casTimestamp"),l=0,u=e.getLong_61zpoe$("casaUid");e.wasNull()&&(l=l+1|0);var h=e.getLong_61zpoe$("casaSubmissionUid");e.wasNull()&&(l=l+1|0);var d=e.getString_61zpoe$("casaMimeType");e.wasNull()&&(l=l+1|0);var p=e.getString_61zpoe$("casaFileName");e.wasNull()&&(l=l+1|0);var _=e.getString_61zpoe$("casaUri");e.wasNull()&&(l=l+1|0);var m=e.getString_61zpoe$("casaMd5");e.wasNull()&&(l=l+1|0);var f=e.getInt_61zpoe$("casaSize");e.wasNull()&&(l=l+1|0);var g=e.getLong_61zpoe$("casaTimestamp");e.wasNull()&&(l=l+1|0);var $=8===l,E=new Eit;if(E.casUid=n,E.casAssignmentUid=i,E.casSubmitterUid=o,E.casSubmitterPersonUid=r,E.casText=s,E.casType=a,E.casTimestamp=c,!$){var y=new hit;y.casaUid=u,y.casaSubmissionUid=h,y.casaMimeType=d,y.casaFileName=p,y.casaUri=_,y.casaMd5=m,y.casaSize=f,y.casaTimestamp=g,E.attachment=y}return E}));var e}function ST(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$closure$assignmentUid=t,this.local$closure$submitterUid=e,this.local$closure$_limit=n,this.local$closure$_offset=i,this.local$_stmt=o}function vT(t,e,n,i){return function(o,r,s){var a=new ST(t,e,n,i,o,r);return s?a:a.doResume(null)}}function CT(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$this$CourseAssignmentSubmissionDao_JdbcKt=t,this.local$closure$assignmentUid=e,this.local$closure$submitterUid=n,this.local$closure$_limit=i,this.local$closure$_offset=o}function NT(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function TT(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$assignmentUid=t,this.local$closure$submitterUid=e,this.local$_stmt=n}function LT(t,e){return function(n,i,o){var r=new TT(t,e,n,i);return o?r:r.doResume(null)}}function zT(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$this$CourseAssignmentSubmissionDao_JdbcKt=t,this.local$closure$assignmentUid=e,this.local$closure$submitterUid=n}function wT(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function OT(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$assignmentUid=t,this.local$closure$submitterUid=e,this.local$_stmt=n}function RT(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function AT(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$assignmentUid=t,this.local$closure$submitterUid=e,this.local$_stmt=n}function xT(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function IT(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$assignmentUid=t,this.local$closure$submitterUid=e,this.local$_stmt=n}function UT(t,e){return function(n,i,o){var r=new IT(t,e,n,i);return o?r:r.doResume(null)}}function DT(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$this$CourseAssignmentSubmissionDao_JdbcKt=t,this.local$closure$assignmentUid=e,this.local$closure$submitterUid=n}function PT(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("casUid"),i=e.getLong_61zpoe$("casAssignmentUid"),o=e.getLong_61zpoe$("casSubmitterUid"),r=e.getLong_61zpoe$("casSubmitterPersonUid"),s=e.getString_61zpoe$("casText"),a=e.getInt_61zpoe$("casType"),c=e.getLong_61zpoe$("casTimestamp"),l=new iit;return l.casUid=n,l.casAssignmentUid=i,l.casSubmitterUid=o,l.casSubmitterPersonUid=r,l.casText=s,l.casType=a,l.casTimestamp=c,l}));var e}function MT(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$assignmentUid=t,this.local$closure$submitterUid=e,this.local$_stmt=n}function kT(t){return lt(t,!1,(e=t,function(t){return e.getBoolean_za3lpa$(1)}));var e}function jT(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$assignmentUid=t,this.local$_stmt=e}function GT(t){return function(e,n,i){var o=new jT(t,e,n);return i?o:o.doResume(null)}}function qT(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$CourseAssignmentSubmissionDao_JdbcKt=t,this.local$closure$assignmentUid=e}function FT(t){pt.call(this,t)}function BT(t,e){uT.call(this),this._db_0=t,this._dao_0=e}function WT(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function HT(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function VT(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_pkManager=void 0,this.local$_generatedPks=void 0,this.local$$receiver=void 0,this.local$element=void 0,this.local$entityList=e}function KT(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function XT(t,e,n,i,o,r){uT.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function JT(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function YT(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function QT(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function ZT(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$assignmentUid=e,this.local$submitterUid=n}function tL(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$assignmentUid=e,this.local$submitterUid=n}function eL(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$submitterUid=e,this.local$assignmentUid=n}function nL(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function iL(){}function oL(t){iL.call(this),this._db=t,this._insertAdapterCourseBlock_upsert=new DL(this._db),this._insertAdapterCourseBlock_=new PL(this._db)}function rL(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$list=e}function sL(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function aL(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function cL(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$entity=t,this.local$closure$_result=e,this.local$tmp$=void 0,this.local$_stmt=n}function lL(t,e){return function(n,i,o){var r=new cL(t,e,n,i);return o?r:r.doResume(null)}}function uL(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_result=void 0,this.local$entity=e}function hL(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$entityList=t,this.local$tmp$=void 0,this.local$_stmt=e}function dL(t){return function(e,n,i){var o=new hL(t,e,n);return i?o:o.doResume(null)}}function pL(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function _L(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function mL(t){return function(e,n,i){var o=new _L(t,e,n);return i?o:o.doResume(null)}}function fL(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function gL(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function $L(t,e,n){var i=new gL(t,e);return n?i:i.doResume(null)}function EL(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function yL(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("cbUid"),i=e.getInt_61zpoe$("cbType"),o=e.getInt_61zpoe$("cbIndentLevel"),r=e.getLong_61zpoe$("cbModuleParentBlockUid"),s=e.getString_61zpoe$("cbTitle"),a=e.getString_61zpoe$("cbDescription"),c=e.getInt_61zpoe$("cbCompletionCriteria"),l=e.getLong_61zpoe$("cbHideUntilDate"),u=e.getLong_61zpoe$("cbDeadlineDate"),h=e.getInt_61zpoe$("cbLateSubmissionPenalty"),d=e.getLong_61zpoe$("cbGracePeriodDate"),p=e.getInt_61zpoe$("cbMaxPoints"),_=e.getInt_61zpoe$("cbMinPoints"),m=e.getInt_61zpoe$("cbIndex"),f=e.getLong_61zpoe$("cbClazzUid"),g=e.getBoolean_61zpoe$("cbActive"),$=e.getBoolean_61zpoe$("cbHidden"),E=e.getLong_61zpoe$("cbEntityUid"),y=e.getLong_61zpoe$("cbLct"),b=new Lit;return b.cbUid=n,b.cbType=i,b.cbIndentLevel=o,b.cbModuleParentBlockUid=r,b.cbTitle=s,b.cbDescription=a,b.cbCompletionCriteria=c,b.cbHideUntilDate=l,b.cbDeadlineDate=u,b.cbLateSubmissionPenalty=h,b.cbGracePeriodDate=d,b.cbMaxPoints=p,b.cbMinPoints=_,b.cbIndex=m,b.cbClazzUid=f,b.cbActive=g,b.cbHidden=$,b.cbEntityUid=E,b.cbLct=y,b}));var e}function bL(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function SL(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("cbUid"),i=e.getInt_61zpoe$("cbType"),o=e.getInt_61zpoe$("cbIndentLevel"),r=e.getLong_61zpoe$("cbModuleParentBlockUid"),s=e.getString_61zpoe$("cbTitle"),a=e.getString_61zpoe$("cbDescription"),c=e.getInt_61zpoe$("cbCompletionCriteria"),l=e.getLong_61zpoe$("cbHideUntilDate"),u=e.getLong_61zpoe$("cbDeadlineDate"),h=e.getInt_61zpoe$("cbLateSubmissionPenalty"),d=e.getLong_61zpoe$("cbGracePeriodDate"),p=e.getInt_61zpoe$("cbMaxPoints"),_=e.getInt_61zpoe$("cbMinPoints"),m=e.getInt_61zpoe$("cbIndex"),f=e.getLong_61zpoe$("cbClazzUid"),g=e.getBoolean_61zpoe$("cbActive"),$=e.getBoolean_61zpoe$("cbHidden"),E=e.getLong_61zpoe$("cbEntityUid"),y=e.getLong_61zpoe$("cbLct"),b=0,S=e.getLong_61zpoe$("caUid");e.wasNull()&&(b=b+1|0);var v=e.getString_61zpoe$("caTitle");e.wasNull()&&(b=b+1|0);var C=e.getString_61zpoe$("caDescription");e.wasNull()&&(b=b+1|0);var N=e.getLong_61zpoe$("caGroupUid");e.wasNull()&&(b=b+1|0);var T=e.getBoolean_61zpoe$("caActive");e.wasNull()&&(b=b+1|0);var L=e.getBoolean_61zpoe$("caClassCommentEnabled");e.wasNull()&&(b=b+1|0);var z=e.getBoolean_61zpoe$("caPrivateCommentsEnabled");e.wasNull()&&(b=b+1|0);var w=e.getInt_61zpoe$("caCompletionCriteria");e.wasNull()&&(b=b+1|0);var O=e.getBoolean_61zpoe$("caRequireFileSubmission");e.wasNull()&&(b=b+1|0);var R=e.getInt_61zpoe$("caFileType");e.wasNull()&&(b=b+1|0);var A=e.getInt_61zpoe$("caSizeLimit");e.wasNull()&&(b=b+1|0);var x=e.getInt_61zpoe$("caNumberOfFiles");e.wasNull()&&(b=b+1|0);var I=e.getInt_61zpoe$("caSubmissionPolicy");e.wasNull()&&(b=b+1|0);var U=e.getInt_61zpoe$("caMarkingType");e.wasNull()&&(b=b+1|0);var D=e.getBoolean_61zpoe$("caRequireTextSubmission");e.wasNull()&&(b=b+1|0);var P=e.getInt_61zpoe$("caTextLimitType");e.wasNull()&&(b=b+1|0);var M=e.getInt_61zpoe$("caTextLimit");e.wasNull()&&(b=b+1|0);var k=e.getLong_61zpoe$("caXObjectUid");e.wasNull()&&(b=b+1|0);var j=e.getLong_61zpoe$("caClazzUid");e.wasNull()&&(b=b+1|0);var G=e.getLong_61zpoe$("caLocalChangeSeqNum");e.wasNull()&&(b=b+1|0);var q=e.getLong_61zpoe$("caMasterChangeSeqNum");e.wasNull()&&(b=b+1|0);var F=e.getInt_61zpoe$("caLastChangedBy");e.wasNull()&&(b=b+1|0);var B=e.getLong_61zpoe$("caLct");e.wasNull()&&(b=b+1|0);var W=23===b,H=0,V=e.getLong_61zpoe$("contentEntryUid");e.wasNull()&&(H=H+1|0);var K=e.getString_61zpoe$("title");e.wasNull()&&(H=H+1|0);var X=e.getString_61zpoe$("description");e.wasNull()&&(H=H+1|0);var J=e.getString_61zpoe$("entryId");e.wasNull()&&(H=H+1|0);var Y=e.getString_61zpoe$("author");e.wasNull()&&(H=H+1|0);var Q=e.getString_61zpoe$("publisher");e.wasNull()&&(H=H+1|0);var Z=e.getInt_61zpoe$("licenseType");e.wasNull()&&(H=H+1|0);var tt=e.getString_61zpoe$("licenseName");e.wasNull()&&(H=H+1|0);var et=e.getString_61zpoe$("licenseUrl");e.wasNull()&&(H=H+1|0);var nt=e.getString_61zpoe$("sourceUrl");e.wasNull()&&(H=H+1|0);var it=e.getString_61zpoe$("thumbnailUrl");e.wasNull()&&(H=H+1|0);var ot=e.getLong_61zpoe$("lastModified");e.wasNull()&&(H=H+1|0);var rt=e.getLong_61zpoe$("primaryLanguageUid");e.wasNull()&&(H=H+1|0);var st=e.getLong_61zpoe$("languageVariantUid");e.wasNull()&&(H=H+1|0);var at=e.getInt_61zpoe$("contentFlags");e.wasNull()&&(H=H+1|0);var ct=e.getBoolean_61zpoe$("leaf");e.wasNull()&&(H=H+1|0);var lt=e.getBoolean_61zpoe$("publik");e.wasNull()&&(H=H+1|0);var ut=e.getBoolean_61zpoe$("ceInactive");e.wasNull()&&(H=H+1|0);var ht=e.getInt_61zpoe$("completionCriteria");e.wasNull()&&(H=H+1|0);var dt=e.getInt_61zpoe$("minScore");e.wasNull()&&(H=H+1|0);var pt=e.getInt_61zpoe$("contentTypeFlag");e.wasNull()&&(H=H+1|0);var _t=e.getLong_61zpoe$("contentOwner");e.wasNull()&&(H=H+1|0);var mt=e.getLong_61zpoe$("contentEntryLocalChangeSeqNum");e.wasNull()&&(H=H+1|0);var ft=e.getLong_61zpoe$("contentEntryMasterChangeSeqNum");e.wasNull()&&(H=H+1|0);var gt=e.getInt_61zpoe$("contentEntryLastChangedBy");e.wasNull()&&(H=H+1|0);var $t=e.getLong_61zpoe$("contentEntryLct");e.wasNull()&&(H=H+1|0);var Et=26===H,yt=0,bt=e.getLong_61zpoe$("courseDiscussionUid");e.wasNull()&&(yt=yt+1|0);var St=e.getString_61zpoe$("courseDiscussionTitle");e.wasNull()&&(yt=yt+1|0);var vt=e.getString_61zpoe$("courseDiscussionDesc");e.wasNull()&&(yt=yt+1|0);var Ct=e.getLong_61zpoe$("courseDiscussionClazzUid");e.wasNull()&&(yt=yt+1|0);var Nt=e.getBoolean_61zpoe$("courseDiscussionActive");e.wasNull()&&(yt=yt+1|0);var Tt=e.getLong_61zpoe$("courseDiscussionLct");e.wasNull()&&(yt=yt+1|0);var Lt=6===yt,zt=0,wt=e.getLong_61zpoe$("langUid");e.wasNull()&&(zt=zt+1|0);var Ot=e.getString_61zpoe$("name");e.wasNull()&&(zt=zt+1|0);var Rt=e.getString_61zpoe$("iso_639_1_standard");e.wasNull()&&(zt=zt+1|0);var At=e.getString_61zpoe$("iso_639_2_standard");e.wasNull()&&(zt=zt+1|0);var xt=e.getString_61zpoe$("iso_639_3_standard");e.wasNull()&&(zt=zt+1|0);var It=e.getString_61zpoe$("Language_Type");e.wasNull()&&(zt=zt+1|0);var Ut=e.getBoolean_61zpoe$("languageActive");e.wasNull()&&(zt=zt+1|0);var Dt=e.getLong_61zpoe$("langLocalChangeSeqNum");e.wasNull()&&(zt=zt+1|0);var Pt=e.getLong_61zpoe$("langMasterChangeSeqNum");e.wasNull()&&(zt=zt+1|0);var Mt=e.getInt_61zpoe$("langLastChangedBy");e.wasNull()&&(zt=zt+1|0);var kt=e.getLong_61zpoe$("langLct");e.wasNull()&&(zt=zt+1|0);var jt=11===zt,Gt=new Bit;if(Gt.cbUid=n,Gt.cbType=i,Gt.cbIndentLevel=o,Gt.cbModuleParentBlockUid=r,Gt.cbTitle=s,Gt.cbDescription=a,Gt.cbCompletionCriteria=c,Gt.cbHideUntilDate=l,Gt.cbDeadlineDate=u,Gt.cbLateSubmissionPenalty=h,Gt.cbGracePeriodDate=d,Gt.cbMaxPoints=p,Gt.cbMinPoints=_,Gt.cbIndex=m,Gt.cbClazzUid=f,Gt.cbActive=g,Gt.cbHidden=$,Gt.cbEntityUid=E,Gt.cbLct=y,!W){var qt=new _5;qt.caUid=S,qt.caTitle=v,qt.caDescription=C,qt.caGroupUid=N,qt.caActive=T,qt.caClassCommentEnabled=L,qt.caPrivateCommentsEnabled=z,qt.caCompletionCriteria=w,qt.caRequireFileSubmission=O,qt.caFileType=R,qt.caSizeLimit=A,qt.caNumberOfFiles=x,qt.caSubmissionPolicy=I,qt.caMarkingType=U,qt.caRequireTextSubmission=D,qt.caTextLimitType=P,qt.caTextLimit=M,qt.caXObjectUid=k,qt.caClazzUid=j,qt.caLocalChangeSeqNum=G,qt.caMasterChangeSeqNum=q,qt.caLastChangedBy=F,qt.caLct=B,Gt.assignment=qt}if(!Et){var Ft=new Ott;Ft.contentEntryUid=V,Ft.title=K,Ft.description=X,Ft.entryId=J,Ft.author=Y,Ft.publisher=Q,Ft.licenseType=Z,Ft.licenseName=tt,Ft.licenseUrl=et,Ft.sourceUrl=nt,Ft.thumbnailUrl=it,Ft.lastModified=ot,Ft.primaryLanguageUid=rt,Ft.languageVariantUid=st,Ft.contentFlags=at,Ft.leaf=ct,Ft.publik=lt,Ft.ceInactive=ut,Ft.completionCriteria=ht,Ft.minScore=dt,Ft.contentTypeFlag=pt,Ft.contentOwner=_t,Ft.contentEntryLocalChangeSeqNum=mt,Ft.contentEntryMasterChangeSeqNum=ft,Ft.contentEntryLastChangedBy=gt,Ft.contentEntryLct=$t,Gt.entry=Ft}if(!Lt){var Bt=new Qit;Bt.courseDiscussionUid=bt,Bt.courseDiscussionTitle=St,Bt.courseDiscussionDesc=vt,Bt.courseDiscussionClazzUid=Ct,Bt.courseDiscussionActive=Nt,Bt.courseDiscussionLct=Tt,Gt.courseDiscussion=Bt}if(!jt){var Wt=new kst;Wt.langUid=wt,Wt.name=Ot,Wt.iso_639_1_standard=Rt,Wt.iso_639_2_standard=At,Wt.iso_639_3_standard=xt,Wt.Language_Type=It,Wt.languageActive=Ut,Wt.langLocalChangeSeqNum=Dt,Wt.langMasterChangeSeqNum=Pt,Wt.langLastChangedBy=Mt,Wt.langLct=kt,Gt.language=Wt}return Gt}));var e}function vL(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$_stmt=e}function CL(t,e,n,i,o){this.this$CourseBlockDao_JdbcKt=t,this.closure$clazzUid=e,this.closure$personUid=n,this.closure$collapseList=i,this.closure$currentTime=o,gt.call(this)}function NL(t){return mt(t,(e=t,function(t){var n=e.getBoolean_61zpoe$("expanded"),i=e.getLong_61zpoe$("cbUid"),o=e.getInt_61zpoe$("cbType"),r=e.getInt_61zpoe$("cbIndentLevel"),s=e.getLong_61zpoe$("cbModuleParentBlockUid"),a=e.getString_61zpoe$("cbTitle"),c=e.getString_61zpoe$("cbDescription"),l=e.getInt_61zpoe$("cbCompletionCriteria"),u=e.getLong_61zpoe$("cbHideUntilDate"),h=e.getLong_61zpoe$("cbDeadlineDate"),d=e.getInt_61zpoe$("cbLateSubmissionPenalty"),p=e.getLong_61zpoe$("cbGracePeriodDate"),_=e.getInt_61zpoe$("cbMaxPoints"),m=e.getInt_61zpoe$("cbMinPoints"),f=e.getInt_61zpoe$("cbIndex"),g=e.getLong_61zpoe$("cbClazzUid"),$=e.getBoolean_61zpoe$("cbActive"),E=e.getBoolean_61zpoe$("cbHidden"),y=e.getLong_61zpoe$("cbEntityUid"),b=e.getLong_61zpoe$("cbLct"),S=0,v=e.getInt_61zpoe$("fileSubmissionStatus");e.wasNull()&&(S=S+1|0);var C=e.getLong_61zpoe$("caUid");e.wasNull()&&(S=S+1|0);var N=e.getString_61zpoe$("caTitle");e.wasNull()&&(S=S+1|0);var T=e.getString_61zpoe$("caDescription");e.wasNull()&&(S=S+1|0);var L=e.getLong_61zpoe$("caGroupUid");e.wasNull()&&(S=S+1|0);var z=e.getBoolean_61zpoe$("caActive");e.wasNull()&&(S=S+1|0);var w=e.getBoolean_61zpoe$("caClassCommentEnabled");e.wasNull()&&(S=S+1|0);var O=e.getBoolean_61zpoe$("caPrivateCommentsEnabled");e.wasNull()&&(S=S+1|0);var R=e.getInt_61zpoe$("caCompletionCriteria");e.wasNull()&&(S=S+1|0);var A=e.getBoolean_61zpoe$("caRequireFileSubmission");e.wasNull()&&(S=S+1|0);var x=e.getInt_61zpoe$("caFileType");e.wasNull()&&(S=S+1|0);var I=e.getInt_61zpoe$("caSizeLimit");e.wasNull()&&(S=S+1|0);var U=e.getInt_61zpoe$("caNumberOfFiles");e.wasNull()&&(S=S+1|0);var D=e.getInt_61zpoe$("caSubmissionPolicy");e.wasNull()&&(S=S+1|0);var P=e.getInt_61zpoe$("caMarkingType");e.wasNull()&&(S=S+1|0);var M=e.getBoolean_61zpoe$("caRequireTextSubmission");e.wasNull()&&(S=S+1|0);var k=e.getInt_61zpoe$("caTextLimitType");e.wasNull()&&(S=S+1|0);var j=e.getInt_61zpoe$("caTextLimit");e.wasNull()&&(S=S+1|0);var G=e.getLong_61zpoe$("caXObjectUid");e.wasNull()&&(S=S+1|0);var q=e.getLong_61zpoe$("caClazzUid");e.wasNull()&&(S=S+1|0);var F=e.getLong_61zpoe$("caLocalChangeSeqNum");e.wasNull()&&(S=S+1|0);var B=e.getLong_61zpoe$("caMasterChangeSeqNum");e.wasNull()&&(S=S+1|0);var W=e.getInt_61zpoe$("caLastChangedBy");e.wasNull()&&(S=S+1|0);var H=e.getLong_61zpoe$("caLct");e.wasNull()&&(S=S+1|0);var V=24===S,K=0,X=e.getInt_61zpoe$("notSubmittedStudents");e.wasNull()&&(K=K+1|0);var J=e.getInt_61zpoe$("submittedStudents");e.wasNull()&&(K=K+1|0);var Y=e.getInt_61zpoe$("totalStudents");e.wasNull()&&(K=K+1|0);var Q=e.getInt_61zpoe$("markedStudents");e.wasNull()&&(K=K+1|0);var Z=e.getBoolean_61zpoe$("hasMetricsPermission");e.wasNull()&&(K=K+1|0);var tt=5===K,et=0,nt=e.getLong_61zpoe$("camUid");e.wasNull()&&(et=et+1|0);var it=e.getLong_61zpoe$("camAssignmentUid");e.wasNull()&&(et=et+1|0);var ot=e.getLong_61zpoe$("camSubmitterUid");e.wasNull()&&(et=et+1|0);var rt=e.getFloat_61zpoe$("camMark");e.wasNull()&&(et=et+1|0);var st=e.getInt_61zpoe$("camPenalty");e.wasNull()&&(et=et+1|0);var at=e.getLong_61zpoe$("camLct");e.wasNull()&&(et=et+1|0);var ct=6===et,lt=0,ut=e.getInt_61zpoe$("assignmentContentWeight");e.wasNull()&&(lt=lt+1|0);var ht=e.getLong_61zpoe$("contentEntryUid");e.wasNull()&&(lt=lt+1|0);var dt=e.getString_61zpoe$("title");e.wasNull()&&(lt=lt+1|0);var pt=e.getString_61zpoe$("description");e.wasNull()&&(lt=lt+1|0);var _t=e.getString_61zpoe$("entryId");e.wasNull()&&(lt=lt+1|0);var mt=e.getString_61zpoe$("author");e.wasNull()&&(lt=lt+1|0);var ft=e.getString_61zpoe$("publisher");e.wasNull()&&(lt=lt+1|0);var gt=e.getInt_61zpoe$("licenseType");e.wasNull()&&(lt=lt+1|0);var $t=e.getString_61zpoe$("licenseName");e.wasNull()&&(lt=lt+1|0);var Et=e.getString_61zpoe$("licenseUrl");e.wasNull()&&(lt=lt+1|0);var yt=e.getString_61zpoe$("sourceUrl");e.wasNull()&&(lt=lt+1|0);var bt=e.getString_61zpoe$("thumbnailUrl");e.wasNull()&&(lt=lt+1|0);var St=e.getLong_61zpoe$("lastModified");e.wasNull()&&(lt=lt+1|0);var vt=e.getLong_61zpoe$("primaryLanguageUid");e.wasNull()&&(lt=lt+1|0);var Ct=e.getLong_61zpoe$("languageVariantUid");e.wasNull()&&(lt=lt+1|0);var Nt=e.getInt_61zpoe$("contentFlags");e.wasNull()&&(lt=lt+1|0);var Tt=e.getBoolean_61zpoe$("leaf");e.wasNull()&&(lt=lt+1|0);var Lt=e.getBoolean_61zpoe$("publik");e.wasNull()&&(lt=lt+1|0);var zt=e.getBoolean_61zpoe$("ceInactive");e.wasNull()&&(lt=lt+1|0);var wt=e.getInt_61zpoe$("completionCriteria");e.wasNull()&&(lt=lt+1|0);var Ot=e.getInt_61zpoe$("minScore");e.wasNull()&&(lt=lt+1|0);var Rt=e.getInt_61zpoe$("contentTypeFlag");e.wasNull()&&(lt=lt+1|0);var At=e.getLong_61zpoe$("contentOwner");e.wasNull()&&(lt=lt+1|0);var xt=e.getLong_61zpoe$("contentEntryLocalChangeSeqNum");e.wasNull()&&(lt=lt+1|0);var It=e.getLong_61zpoe$("contentEntryMasterChangeSeqNum");e.wasNull()&&(lt=lt+1|0);var Ut=e.getInt_61zpoe$("contentEntryLastChangedBy");e.wasNull()&&(lt=lt+1|0);var Dt=e.getLong_61zpoe$("contentEntryLct");e.wasNull()&&(lt=lt+1|0);var Pt=27===lt,Mt=0,kt=e.getLong_61zpoe$("containerUid");e.wasNull()&&(Mt=Mt+1|0);var jt=e.getLong_61zpoe$("cntLocalCsn");e.wasNull()&&(Mt=Mt+1|0);var Gt=e.getLong_61zpoe$("cntMasterCsn");e.wasNull()&&(Mt=Mt+1|0);var qt=e.getInt_61zpoe$("cntLastModBy");e.wasNull()&&(Mt=Mt+1|0);var Ft=e.getLong_61zpoe$("cntLct");e.wasNull()&&(Mt=Mt+1|0);var Bt=e.getLong_61zpoe$("fileSize");e.wasNull()&&(Mt=Mt+1|0);var Wt=e.getLong_61zpoe$("containerContentEntryUid");e.wasNull()&&(Mt=Mt+1|0);var Ht=e.getLong_61zpoe$("cntLastModified");e.wasNull()&&(Mt=Mt+1|0);var Vt=e.getString_61zpoe$("mimeType");e.wasNull()&&(Mt=Mt+1|0);var Kt=e.getString_61zpoe$("remarks");e.wasNull()&&(Mt=Mt+1|0);var Xt=e.getBoolean_61zpoe$("mobileOptimized");e.wasNull()&&(Mt=Mt+1|0);var Jt=e.getInt_61zpoe$("cntNumEntries");e.wasNull()&&(Mt=Mt+1|0);var Yt=12===Mt,Qt=0,Zt=e.getLong_61zpoe$("cepcjUid");e.wasNull()&&(Qt=Qt+1|0);var te=e.getLong_61zpoe$("cepcjLocalChangeSeqNum");e.wasNull()&&(Qt=Qt+1|0);var ee=e.getLong_61zpoe$("cepcjMasterChangeSeqNum");e.wasNull()&&(Qt=Qt+1|0);var ne=e.getInt_61zpoe$("cepcjLastChangedBy");e.wasNull()&&(Qt=Qt+1|0);var ie=e.getLong_61zpoe$("cepcjLct");e.wasNull()&&(Qt=Qt+1|0);var oe=e.getLong_61zpoe$("cepcjParentContentEntryUid");e.wasNull()&&(Qt=Qt+1|0);var re=e.getLong_61zpoe$("cepcjChildContentEntryUid");e.wasNull()&&(Qt=Qt+1|0);var se=e.getInt_61zpoe$("childIndex");e.wasNull()&&(Qt=Qt+1|0);var ae=8===Qt,ce=0,le=e.getInt_61zpoe$("resultScore");e.wasNull()&&(ce=ce+1|0);var ue=e.getInt_61zpoe$("resultMax");e.wasNull()&&(ce=ce+1|0);var he=e.getFloat_61zpoe$("resultScaled");e.wasNull()&&(ce=ce+1|0);var de=e.getInt_61zpoe$("resultWeight");e.wasNull()&&(ce=ce+1|0);var pe=e.getBoolean_61zpoe$("contentComplete");e.wasNull()&&(ce=ce+1|0);var _e=e.getInt_61zpoe$("progress");e.wasNull()&&(ce=ce+1|0);var me=e.getByte_61zpoe$("success");e.wasNull()&&(ce=ce+1|0);var fe=e.getInt_61zpoe$("penalty");e.wasNull()&&(ce=ce+1|0);var ge=e.getInt_61zpoe$("totalContent");e.wasNull()&&(ce=ce+1|0);var $e=e.getInt_61zpoe$("totalCompletedContent");e.wasNull()&&(ce=ce+1|0);var Ee=10===ce,ye=0,be=e.getLong_61zpoe$("courseDiscussionUid");e.wasNull()&&(ye=ye+1|0);var Se=e.getString_61zpoe$("courseDiscussionTitle");e.wasNull()&&(ye=ye+1|0);var ve=e.getString_61zpoe$("courseDiscussionDesc");e.wasNull()&&(ye=ye+1|0);var Ce=e.getLong_61zpoe$("courseDiscussionClazzUid");e.wasNull()&&(ye=ye+1|0);var Ne=e.getBoolean_61zpoe$("courseDiscussionActive");e.wasNull()&&(ye=ye+1|0);var Te=e.getLong_61zpoe$("courseDiscussionLct");e.wasNull()&&(ye=ye+1|0);var Le=6===ye,ze=new Uit;if(ze.expanded=n,ze.cbUid=i,ze.cbType=o,ze.cbIndentLevel=r,ze.cbModuleParentBlockUid=s,ze.cbTitle=a,ze.cbDescription=c,ze.cbCompletionCriteria=l,ze.cbHideUntilDate=u,ze.cbDeadlineDate=h,ze.cbLateSubmissionPenalty=d,ze.cbGracePeriodDate=p,ze.cbMaxPoints=_,ze.cbMinPoints=m,ze.cbIndex=f,ze.cbClazzUid=g,ze.cbActive=$,ze.cbHidden=E,ze.cbEntityUid=y,ze.cbLct=b,!V){var we=new O5;if(we.fileSubmissionStatus=v,we.caUid=C,we.caTitle=N,we.caDescription=T,we.caGroupUid=L,we.caActive=z,we.caClassCommentEnabled=w,we.caPrivateCommentsEnabled=O,we.caCompletionCriteria=R,we.caRequireFileSubmission=A,we.caFileType=x,we.caSizeLimit=I,we.caNumberOfFiles=U,we.caSubmissionPolicy=D,we.caMarkingType=P,we.caRequireTextSubmission=M,we.caTextLimitType=k,we.caTextLimit=j,we.caXObjectUid=G,we.caClazzUid=q,we.caLocalChangeSeqNum=F,we.caMasterChangeSeqNum=B,we.caLastChangedBy=W,we.caLct=H,!tt){var Oe=new z4;Oe.notSubmittedStudents=X,Oe.submittedStudents=J,Oe.totalStudents=Y,Oe.markedStudents=Q,Oe.hasMetricsPermission=Z,we.progressSummary=Oe}if(!ct){var Re=new Xnt;Re.camUid=nt,Re.camAssignmentUid=it,Re.camSubmitterUid=ot,Re.camMark=rt,Re.camPenalty=st,Re.camLct=at,we.mark=Re}ze.assignment=we}if(!Pt){var Ae=new znt;if(Ae.assignmentContentWeight=ut,Ae.contentEntryUid=ht,Ae.title=dt,Ae.description=pt,Ae.entryId=_t,Ae.author=mt,Ae.publisher=ft,Ae.licenseType=gt,Ae.licenseName=$t,Ae.licenseUrl=Et,Ae.sourceUrl=yt,Ae.thumbnailUrl=bt,Ae.lastModified=St,Ae.primaryLanguageUid=vt,Ae.languageVariantUid=Ct,Ae.contentFlags=Nt,Ae.leaf=Tt,Ae.publik=Lt,Ae.ceInactive=zt,Ae.completionCriteria=wt,Ae.minScore=Ot,Ae.contentTypeFlag=Rt,Ae.contentOwner=At,Ae.contentEntryLocalChangeSeqNum=xt,Ae.contentEntryMasterChangeSeqNum=It,Ae.contentEntryLastChangedBy=Ut,Ae.contentEntryLct=Dt,!Yt){var xe=new J9;xe.containerUid=kt,xe.cntLocalCsn=jt,xe.cntMasterCsn=Gt,xe.cntLastModBy=qt,xe.cntLct=Ft,xe.fileSize=Bt,xe.containerContentEntryUid=Wt,xe.cntLastModified=Ht,xe.mimeType=Vt,xe.remarks=Kt,xe.mobileOptimized=Xt,xe.cntNumEntries=Jt,Ae.mostRecentContainer=xe}if(!ae){var Ie=new eet;Ie.cepcjUid=Zt,Ie.cepcjLocalChangeSeqNum=te,Ie.cepcjMasterChangeSeqNum=ee,Ie.cepcjLastChangedBy=ne,Ie.cepcjLct=ie,Ie.cepcjParentContentEntryUid=oe,Ie.cepcjChildContentEntryUid=re,Ie.childIndex=se,Ae.contentEntryParentChildJoin=Ie}if(!Ee){var Ue=new qet;Ue.resultScore=le,Ue.resultMax=ue,Ue.resultScaled=he,Ue.resultWeight=de,Ue.contentComplete=pe,Ue.progress=_e,Ue.success=me,Ue.penalty=fe,Ue.totalContent=ge,Ue.totalCompletedContent=$e,Ae.scoreProgress=Ue}ze.entry=Ae}if(!Le){var De=new Qit;De.courseDiscussionUid=be,De.courseDiscussionTitle=Se,De.courseDiscussionDesc=ve,De.courseDiscussionClazzUid=Ce,De.courseDiscussionActive=Ne,De.courseDiscussionLct=Te,ze.courseDiscussion=De}return ze}));var e}function TL(t,e,n,i,o,r,s,a){N.call(this,a),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$closure$personUid=e,this.local$closure$collapseList=n,this.local$closure$currentTime=i,this.local$closure$_limit=o,this.local$closure$_offset=r,this.local$_stmt=s}function LL(t,e,n,i,o,r){return function(s,a,c){var l=new TL(t,e,n,i,o,r,s,a);return c?l:l.doResume(null)}}function zL(t,e,n,i,o,r,s,a){N.call(this,a),this.exceptionState_0=1,this.local$this$CourseBlockDao_JdbcKt=t,this.local$closure$clazzUid=e,this.local$closure$personUid=n,this.local$closure$collapseList=i,this.local$closure$currentTime=o,this.local$closure$_limit=r,this.local$closure$_offset=s}function wL(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function OL(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$closure$personUid=e,this.local$closure$collapseList=n,this.local$closure$currentTime=i,this.local$_stmt=o}function RL(t,e,n,i){return function(o,r,s){var a=new OL(t,e,n,i,o,r);return s?a:a.doResume(null)}}function AL(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$this$CourseBlockDao_JdbcKt=t,this.local$closure$clazzUid=e,this.local$closure$personUid=n,this.local$closure$collapseList=i,this.local$closure$currentTime=o}function xL(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$active=t,this.local$closure$changeTime=e,this.local$closure$cbUid=n,this.local$_stmt=i}function IL(t,e,n){return function(i,o,r){var s=new xL(t,e,n,i,o);return r?s:s.doResume(null)}}function UL(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$cbUid=e,this.local$active=n,this.local$changeTime=i}function DL(t){pt.call(this,t)}function PL(t){pt.call(this,t)}function ML(t,e){iL.call(this),this._db_0=t,this._dao_0=e}function kL(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function jL(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function GL(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_pkManager=void 0,this.local$_generatedPks=void 0,this.local$$receiver=void 0,this.local$element=void 0,this.local$list=e}function qL(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$cbUid=e,this.local$active=n,this.local$changeTime=i}function FL(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function BL(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_pkManager=void 0,this.local$_generatedPks=void 0,this.local$$receiver=void 0,this.local$element=void 0,this.local$entityList=e}function WL(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function HL(t,e,n,i,o,r){iL.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function VL(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function KL(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function XL(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$uid=e}function JL(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function YL(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$list=e}function QL(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$clazzUid=e}function ZL(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$cbUid=e,this.local$active=n,this.local$changeTime=i}function tz(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function ez(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function nz(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function iz(){}function oz(t){iz.call(this),this._db=t,this._insertAdapterCourseDiscussion_upsert=new Cz(this._db),this._insertAdapterCourseDiscussion_=new Nz(this._db)}function rz(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$list=e}function sz(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function az(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function cz(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$entityList=t,this.local$tmp$=void 0,this.local$_stmt=e}function lz(t){return function(e,n,i){var o=new cz(t,e,n);return i?o:o.doResume(null)}}function uz(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function hz(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function dz(t){return function(e,n,i){var o=new hz(t,e,n);return i?o:o.doResume(null)}}function pz(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function _z(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function mz(t,e,n){var i=new _z(t,e);return n?i:i.doResume(null)}function fz(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function gz(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$active=t,this.local$closure$changeTime=e,this.local$closure$cbUid=n,this.local$_stmt=i}function $z(t,e,n){return function(i,o,r){var s=new gz(t,e,n,i,o);return r?s:s.doResume(null)}}function Ez(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$cbUid=e,this.local$active=n,this.local$changeTime=i}function yz(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("courseDiscussionUid"),i=e.getString_61zpoe$("courseDiscussionTitle"),o=e.getString_61zpoe$("courseDiscussionDesc"),r=e.getLong_61zpoe$("courseDiscussionClazzUid"),s=e.getBoolean_61zpoe$("courseDiscussionActive"),a=e.getLong_61zpoe$("courseDiscussionLct"),c=new Qit;return c.courseDiscussionUid=n,c.courseDiscussionTitle=i,c.courseDiscussionDesc=o,c.courseDiscussionClazzUid=r,c.courseDiscussionActive=s,c.courseDiscussionLct=a,c}));var e}function bz(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$courseDiscussionUid=t,this.local$_stmt=e}function Sz(t){return function(e,n,i){var o=new bz(t,e,n);return i?o:o.doResume(null)}}function vz(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$CourseDiscussionDao_JdbcKt=t,this.local$closure$courseDiscussionUid=e}function Cz(t){pt.call(this,t)}function Nz(t){pt.call(this,t)}function Tz(t,e){iz.call(this),this._db_0=t,this._dao_0=e}function Lz(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function zz(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function wz(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$cbUid=e,this.local$active=n,this.local$changeTime=i}function Oz(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_pkManager=void 0,this.local$_generatedPks=void 0,this.local$$receiver=void 0,this.local$element=void 0,this.local$list=e}function Rz(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Az(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_pkManager=void 0,this.local$_generatedPks=void 0,this.local$$receiver=void 0,this.local$element=void 0,this.local$entityList=e}function xz(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function Iz(t,e,n,i,o,r){iz.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function Uz(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function Dz(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function Pz(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$cbUid=e,this.local$active=n,this.local$changeTime=i}function Mz(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$list=e}function kz(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function jz(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function Gz(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function qz(){}function Fz(t){qz.call(this),this._db=t,this._insertAdapterCourseGroupMember_=new aw(this._db)}function Bz(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function Wz(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Hz(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$entityList=t,this.local$tmp$=void 0,this.local$_stmt=e}function Vz(t){return function(e,n,i){var o=new Hz(t,e,n);return i?o:o.doResume(null)}}function Kz(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function Xz(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function Jz(t){return function(e,n,i){var o=new Xz(t,e,n);return i?o:o.doResume(null)}}function Yz(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function Qz(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function Zz(t,e,n){var i=new Qz(t,e);return n?i:i.doResume(null)}function tw(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function ew(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("personUid"),i=e.getString_61zpoe$("username"),o=e.getString_61zpoe$("firstNames"),r=e.getString_61zpoe$("lastName"),s=e.getString_61zpoe$("emailAddr"),a=e.getString_61zpoe$("phoneNum"),c=e.getInt_61zpoe$("gender"),l=e.getBoolean_61zpoe$("active"),u=e.getBoolean_61zpoe$("admin"),h=e.getString_61zpoe$("personNotes"),d=e.getString_61zpoe$("fatherName"),p=e.getString_61zpoe$("fatherNumber"),_=e.getString_61zpoe$("motherName"),m=e.getString_61zpoe$("motherNum"),f=e.getLong_61zpoe$("dateOfBirth"),g=e.getString_61zpoe$("personAddress"),$=e.getString_61zpoe$("personOrgId"),E=e.getLong_61zpoe$("personGroupUid"),y=e.getLong_61zpoe$("personMasterChangeSeqNum"),b=e.getLong_61zpoe$("personLocalChangeSeqNum"),S=e.getInt_61zpoe$("personLastChangedBy"),v=e.getLong_61zpoe$("personLct"),C=e.getString_61zpoe$("personCountry"),N=e.getInt_61zpoe$("personType"),T=0,L=e.getLong_61zpoe$("cgmUid");e.wasNull()&&(T=T+1|0);var z=e.getLong_61zpoe$("cgmSetUid");e.wasNull()&&(T=T+1|0);var w=e.getInt_61zpoe$("cgmGroupNumber");e.wasNull()&&(T=T+1|0);var O=e.getLong_61zpoe$("cgmPersonUid");e.wasNull()&&(T=T+1|0);var R=e.getLong_61zpoe$("cgmLct");e.wasNull()&&(T=T+1|0);var A=5===T,x=new _ot;if(x.personUid=n,x.username=i,x.firstNames=o,x.lastName=r,x.emailAddr=s,x.phoneNum=a,x.gender=c,x.active=l,x.admin=u,x.personNotes=h,x.fatherName=d,x.fatherNumber=p,x.motherName=_,x.motherNum=m,x.dateOfBirth=f,x.personAddress=g,x.personOrgId=$,x.personGroupUid=E,x.personMasterChangeSeqNum=y,x.personLocalChangeSeqNum=b,x.personLastChangedBy=S,x.personLct=v,x.personCountry=C,x.personType=N,!A){var I=new sot;I.cgmUid=L,I.cgmSetUid=z,I.cgmGroupNumber=w,I.cgmPersonUid=O,I.cgmLct=R,x.member=I}return x}));var e}function nw(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$setUid=t,this.local$closure$clazzUid=e,this.local$_stmt=n}function iw(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("personUid"),i=e.getString_61zpoe$("username"),o=e.getString_61zpoe$("firstNames"),r=e.getString_61zpoe$("lastName"),s=e.getString_61zpoe$("emailAddr"),a=e.getString_61zpoe$("phoneNum"),c=e.getInt_61zpoe$("gender"),l=e.getBoolean_61zpoe$("active"),u=e.getBoolean_61zpoe$("admin"),h=e.getString_61zpoe$("personNotes"),d=e.getString_61zpoe$("fatherName"),p=e.getString_61zpoe$("fatherNumber"),_=e.getString_61zpoe$("motherName"),m=e.getString_61zpoe$("motherNum"),f=e.getLong_61zpoe$("dateOfBirth"),g=e.getString_61zpoe$("personAddress"),$=e.getString_61zpoe$("personOrgId"),E=e.getLong_61zpoe$("personGroupUid"),y=e.getLong_61zpoe$("personMasterChangeSeqNum"),b=e.getLong_61zpoe$("personLocalChangeSeqNum"),S=e.getInt_61zpoe$("personLastChangedBy"),v=e.getLong_61zpoe$("personLct"),C=e.getString_61zpoe$("personCountry"),N=e.getInt_61zpoe$("personType"),T=0,L=e.getLong_61zpoe$("cgmUid");e.wasNull()&&(T=T+1|0);var z=e.getLong_61zpoe$("cgmSetUid");e.wasNull()&&(T=T+1|0);var w=e.getInt_61zpoe$("cgmGroupNumber");e.wasNull()&&(T=T+1|0);var O=e.getLong_61zpoe$("cgmPersonUid");e.wasNull()&&(T=T+1|0);var R=e.getLong_61zpoe$("cgmLct");e.wasNull()&&(T=T+1|0);var A=5===T,x=new _ot;if(x.personUid=n,x.username=i,x.firstNames=o,x.lastName=r,x.emailAddr=s,x.phoneNum=a,x.gender=c,x.active=l,x.admin=u,x.personNotes=h,x.fatherName=d,x.fatherNumber=p,x.motherName=_,x.motherNum=m,x.dateOfBirth=f,x.personAddress=g,x.personOrgId=$,x.personGroupUid=E,x.personMasterChangeSeqNum=y,x.personLocalChangeSeqNum=b,x.personLastChangedBy=S,x.personLct=v,x.personCountry=C,x.personType=N,!A){var I=new sot;I.cgmUid=L,I.cgmSetUid=z,I.cgmGroupNumber=w,I.cgmPersonUid=O,I.cgmLct=R,x.member=I}return x}));var e}function ow(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$setUid=t,this.local$closure$clazzUid=e,this.local$_stmt=n}function rw(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("cgmUid"),i=e.getLong_61zpoe$("cgmSetUid"),o=e.getInt_61zpoe$("cgmGroupNumber"),r=e.getLong_61zpoe$("cgmPersonUid"),s=e.getLong_61zpoe$("cgmLct"),a=new sot;return a.cgmUid=n,a.cgmSetUid=i,a.cgmGroupNumber=o,a.cgmPersonUid=r,a.cgmLct=s,a}));var e}function sw(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$studentUid=t,this.local$closure$groupSetUid=e,this.local$_stmt=n}function aw(t){pt.call(this,t)}function cw(t,e){qz.call(this),this._db_0=t,this._dao_0=e}function lw(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function uw(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function hw(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_pkManager=void 0,this.local$_generatedPks=void 0,this.local$$receiver=void 0,this.local$element=void 0,this.local$entityList=e}function dw(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function pw(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function _w(t,e,n,i,o,r){qz.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function mw(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function fw(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function gw(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$setUid=e,this.local$clazzUid=n}function $w(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$setUid=e,this.local$clazzUid=n}function Ew(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$groupSetUid=e,this.local$studentUid=n}function yw(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function bw(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function Sw(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function vw(){}function Cw(t){vw.call(this),this._db=t,this._insertAdapterCourseGroupSet_=new Vw(this._db)}function Nw(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Tw(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$entity=t,this.local$closure$_result=e,this.local$tmp$=void 0,this.local$_stmt=n}function Lw(t,e){return function(n,i,o){var r=new Tw(t,e,n,i);return o?r:r.doResume(null)}}function zw(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_result=void 0,this.local$entity=e}function ww(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function Ow(t){return function(e,n,i){var o=new ww(t,e,n);return i?o:o.doResume(null)}}function Rw(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function Aw(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function xw(t,e,n){var i=new Aw(t,e);return n?i:i.doResume(null)}function Iw(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function Uw(t,e){this.this$CourseGroupSetDao_JdbcKt=t,this.closure$clazzUid=e,gt.call(this)}function Dw(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("cgsUid"),i=e.getString_61zpoe$("cgsName"),o=e.getInt_61zpoe$("cgsTotalGroups"),r=e.getBoolean_61zpoe$("cgsActive"),s=e.getLong_61zpoe$("cgsClazzUid"),a=e.getLong_61zpoe$("cgsLct"),c=new Sot;return c.cgsUid=n,c.cgsName=i,c.cgsTotalGroups=o,c.cgsActive=r,c.cgsClazzUid=s,c.cgsLct=a,c}));var e}function Pw(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$closure$_limit=e,this.local$closure$_offset=n,this.local$_stmt=i}function Mw(t,e,n){return function(i,o,r){var s=new Pw(t,e,n,i,o);return r?s:s.doResume(null)}}function kw(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$this$CourseGroupSetDao_JdbcKt=t,this.local$closure$clazzUid=e,this.local$closure$_limit=n,this.local$closure$_offset=i}function jw(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function Gw(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$_stmt=e}function qw(t){return function(e,n,i){var o=new Gw(t,e,n);return i?o:o.doResume(null)}}function Fw(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$CourseGroupSetDao_JdbcKt=t,this.local$closure$clazzUid=e}function Bw(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("cgsUid"),i=e.getString_61zpoe$("cgsName"),o=e.getInt_61zpoe$("cgsTotalGroups"),r=e.getBoolean_61zpoe$("cgsActive"),s=e.getLong_61zpoe$("cgsClazzUid"),a=e.getLong_61zpoe$("cgsLct"),c=new Sot;return c.cgsUid=n,c.cgsName=i,c.cgsTotalGroups=o,c.cgsActive=r,c.cgsClazzUid=s,c.cgsLct=a,c}));var e}function Ww(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("cgsUid"),i=e.getString_61zpoe$("cgsName"),o=e.getInt_61zpoe$("cgsTotalGroups"),r=e.getBoolean_61zpoe$("cgsActive"),s=e.getLong_61zpoe$("cgsClazzUid"),a=e.getLong_61zpoe$("cgsLct"),c=new Sot;return c.cgsUid=n,c.cgsName=i,c.cgsTotalGroups=o,c.cgsActive=r,c.cgsClazzUid=s,c.cgsLct=a,c}));var e}function Hw(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function Vw(t){pt.call(this,t)}function Kw(t,e){vw.call(this),this._db_0=t,this._dao_0=e}function Xw(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}xd.prototype=Object.create(N.prototype),xd.prototype.constructor=xd,xd.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ClazzLogDao_JdbcKt._db,new st(S("\n |\n | SELECT EXISTS(SELECT ClazzLog.clazzLogUid FROM ClazzLog WHERE clazzLogClazzUid = ? \n | AND (? = 0 OR ((ClazzLog.clazzLogStatusFlag & ?) = 0)))\n | \n ")),Ad(this.local$closure$clazzUid,this.local$closure$excludeStatusFilter),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Kh.prototype.clazzHasScheduleLive_yhmem3$=function(t,e){return new ft(this._db,Et("ClazzLog"),(n=this,i=t,o=e,function(t,e){var r=new xd(n,i,o,t);return e?r:r.doResume(null)}));var n,i,o},Kh.prototype.updateStatusByClazzLogUid_ro19vi$=function(t,e,n){var i,o,r;ht(this._db,new st(S("\n |UPDATE ClazzLog \n | SET clazzLogStatusFlag = ?,\n | clazzLogLastChangedTime = ?\n | WHERE clazzLogUid = ?\n ")),(i=e,o=n,r=t,function(t){return t.setInt_vux9f0$(1,i),t.setLong_6svq3l$(2,o),t.setLong_6svq3l$(3,r),t.executeUpdate()}))},Id.prototype.makeSql_6taknv$=function(t){return"INSERT OR REPLACE INTO ClazzLog (clazzLogUid, clazzLogClazzUid, logDate, timeRecorded, clazzLogDone, cancellationNote, clazzLogCancelled, clazzLogNumPresent, clazzLogNumAbsent, clazzLogNumPartial, clazzLogScheduleUid, clazzLogStatusFlag, clazzLogMSQN, clazzLogLCSN, clazzLogLCB, clazzLogLastChangedTime) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},Id.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.clazzLogUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.clazzLogUid),t.setLong_6svq3l$(2,e.clazzLogClazzUid),t.setLong_6svq3l$(3,e.logDate),t.setLong_6svq3l$(4,e.timeRecorded),t.setBoolean_fzusl$(5,e.clazzLogDone),t.setString_vqvrqt$(6,e.cancellationNote),t.setBoolean_fzusl$(7,e.clazzLogCancelled),t.setInt_vux9f0$(8,e.clazzLogNumPresent),t.setInt_vux9f0$(9,e.clazzLogNumAbsent),t.setInt_vux9f0$(10,e.clazzLogNumPartial),t.setLong_6svq3l$(11,e.clazzLogScheduleUid),t.setInt_vux9f0$(12,e.clazzLogStatusFlag),t.setLong_6svq3l$(13,e.clazzLogMSQN),t.setLong_6svq3l$(14,e.clazzLogLCSN),t.setInt_vux9f0$(15,e.clazzLogLCB),t.setLong_6svq3l$(16,e.clazzLogLastChangedTime)},Id.$metadata$={kind:c,interfaces:[pt]},Ud.prototype.makeSql_6taknv$=function(t){return"INSERT INTO ClazzLog (clazzLogUid, clazzLogClazzUid, logDate, timeRecorded, clazzLogDone, cancellationNote, clazzLogCancelled, clazzLogNumPresent, clazzLogNumAbsent, clazzLogNumPartial, clazzLogScheduleUid, clazzLogStatusFlag, clazzLogMSQN, clazzLogLCSN, clazzLogLCB, clazzLogLastChangedTime) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},Ud.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.clazzLogUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.clazzLogUid),t.setLong_6svq3l$(2,e.clazzLogClazzUid),t.setLong_6svq3l$(3,e.logDate),t.setLong_6svq3l$(4,e.timeRecorded),t.setBoolean_fzusl$(5,e.clazzLogDone),t.setString_vqvrqt$(6,e.cancellationNote),t.setBoolean_fzusl$(7,e.clazzLogCancelled),t.setInt_vux9f0$(8,e.clazzLogNumPresent),t.setInt_vux9f0$(9,e.clazzLogNumAbsent),t.setInt_vux9f0$(10,e.clazzLogNumPartial),t.setLong_6svq3l$(11,e.clazzLogScheduleUid),t.setInt_vux9f0$(12,e.clazzLogStatusFlag),t.setLong_6svq3l$(13,e.clazzLogMSQN),t.setLong_6svq3l$(14,e.clazzLogLCSN),t.setInt_vux9f0$(15,e.clazzLogLCB),t.setLong_6svq3l$(16,e.clazzLogLastChangedTime)},Ud.$metadata$={kind:c,interfaces:[pt]},Kh.$metadata$={kind:c,simpleName:"ClazzLogDao_JdbcKt",interfaces:[Vh]},Pd.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Pd.prototype=Object.create(N.prototype),Pd.prototype.constructor=Pd,Pd.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Dd.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new Pd(this,t,e);return n?i:i.doResume(null)},Dd.prototype.replace_b1okmm$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Md.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Md.prototype=Object.create(N.prototype),Md.prototype.constructor=Md,Md.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Dd.prototype.replicateOnChange=function(t,e){var n=new Md(this,t);return e?n:n.doResume(null)},Dd.prototype.findByUid_s8cxhz$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Dd.prototype.findByUidAsync_s8cxhz$=function(t,e){return this._dao_0.findByUidAsync_s8cxhz$(t,e)},Dd.prototype.findByUidLive_s8cxhz$=function(t){return this._dao_0.findByUidLive_s8cxhz$(t)},Dd.prototype.findByClazzUidAsFactory_yhmem3$=function(t,e){return this._dao_0.findByClazzUidAsFactory_yhmem3$(t,e)},Dd.prototype.findByClazzUidAsync_yhmem3$=function(t,e,n){return this._dao_0.findByClazzUidAsync_yhmem3$(t,e,n)},Dd.prototype.findByClazzUidWithinTimeRangeAsync_ttedgd$=function(t,e,n,i,o,r){return this._dao_0.findByClazzUidWithinTimeRangeAsync_ttedgd$(t,e,n,i,o,r)},Dd.prototype.findByClazzUidWithinTimeRange_ttedgd$$default=function(t,e,n,i,o){throw v("Synchronous db access is NOT possible on Javascript!")},Dd.prototype.findByClazzUidWithinTimeRangeLive_kxxcc5$=function(t,e,n,i){return this._dao_0.findByClazzUidWithinTimeRangeLive_kxxcc5$(t,e,n,i)},Dd.prototype.clazzHasScheduleLive_yhmem3$=function(t,e){return this._dao_0.clazzHasScheduleLive_yhmem3$(t,e)},Dd.prototype.updateStatusByClazzLogUid_ro19vi$=function(t,e,n){throw v("Synchronous db access is NOT possible on Javascript!")},kd.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},kd.prototype=Object.create(N.prototype),kd.prototype.constructor=kd,kd.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$clazzLog.clazzLogLastChangedTime=J(),this.state_0=2,this.result_0=this.$this._dao_0.updateAsync_b1okmm$(this.local$clazzLog,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Dd.prototype.updateAsync_b1okmm$=function(t,e,n){var i=new kd(this,t,e);return n?i:i.doResume(null)},Dd.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},jd.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},jd.prototype=Object.create(N.prototype),jd.prototype.constructor=jd,jd.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.clazzLogUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(14,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.clazzLogUid=e,this.state_0=3;continue;case 3:if(this.local$entity.clazzLogLastChangedTime=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.clazzLogUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Dd.prototype.insertAsync=function(t,e,n){var i=new jd(this,t,e);return n?i:i.doResume(null)},Dd.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Dd.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Dd.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Dd.$metadata$={kind:c,simpleName:"ClazzLogDao_ReplicateWrapper",interfaces:[Vh]},qd.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},qd.prototype=Object.create(N.prototype),qd.prototype.constructor=qd,qd.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Gd.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new qd(this,t,e);return n?i:i.doResume(null)},Gd.prototype.replace_b1okmm$=function(t){return this._dao.replace_b1okmm$(t)},Fd.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Fd.prototype=Object.create(N.prototype),Fd.prototype.constructor=Fd,Fd.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Gd.prototype.replicateOnChange=function(t,e){var n=new Fd(this,t);return e?n:n.doResume(null)},Gd.prototype.findByUid_s8cxhz$=function(t){return this._dao.findByUid_s8cxhz$(t)},Bd.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Bd.prototype=Object.create(N.prototype),Bd.prototype.constructor=Bd,Bd.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByUidAsync_s8cxhz$(this.local$uid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Gd.prototype.findByUidAsync_s8cxhz$=function(t,e,n){var i=new Bd(this,t,e);return n?i:i.doResume(null)},Gd.prototype.findByUidLive_s8cxhz$=function(t){return this._dao.findByUidLive_s8cxhz$(t)},Gd.prototype.findByClazzUidAsFactory_yhmem3$=function(t,e){return this._dao.findByClazzUidAsFactory_yhmem3$(t,e)},Wd.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Wd.prototype=Object.create(N.prototype),Wd.prototype.constructor=Wd,Wd.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByClazzUidAsync_yhmem3$(this.local$clazzUid,this.local$excludeStatus,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Gd.prototype.findByClazzUidAsync_yhmem3$=function(t,e,n,i){var o=new Wd(this,t,e,n);return i?o:o.doResume(null)},Hd.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Hd.prototype=Object.create(N.prototype),Hd.prototype.constructor=Hd,Hd.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByClazzUidWithinTimeRangeAsync_ttedgd$(this.local$clazzUid,this.local$fromTime,this.local$toTime,this.local$excludeStatusFilter,this.local$limit,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Gd.prototype.findByClazzUidWithinTimeRangeAsync_ttedgd$=function(t,e,n,i,o,r,s){var a=new Hd(this,t,e,n,i,o,r);return s?a:a.doResume(null)},Gd.prototype.findByClazzUidWithinTimeRange_ttedgd$$default=function(t,e,n,i,o){return this._dao.findByClazzUidWithinTimeRange_ttedgd$(t,e,n,i,o)},Gd.prototype.findByClazzUidWithinTimeRangeLive_kxxcc5$=function(t,e,n,i){return this._dao.findByClazzUidWithinTimeRangeLive_kxxcc5$(t,e,n,i)},Gd.prototype.clazzHasScheduleLive_yhmem3$=function(t,e){return this._dao.clazzHasScheduleLive_yhmem3$(t,e)},Gd.prototype.updateStatusByClazzLogUid_ro19vi$=function(t,e,n){this._dao.updateStatusByClazzLogUid_ro19vi$(t,e,n)},Vd.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Vd.prototype=Object.create(N.prototype),Vd.prototype.constructor=Vd,Vd.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateAsync_b1okmm$(this.local$clazzLog,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Gd.prototype.updateAsync_b1okmm$=function(t,e,n){var i=new Vd(this,t,e);return n?i:i.doResume(null)},Gd.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},Kd.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Kd.prototype=Object.create(N.prototype),Kd.prototype.constructor=Kd,Kd.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Gd.prototype.insertAsync=function(t,e,n){var i=new Kd(this,t,e);return n?i:i.doResume(null)},Gd.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},Gd.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},Gd.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},Gd.$metadata$={kind:c,simpleName:"ClazzLogDao_Repo",interfaces:[Vh]},Xd.$metadata$={kind:c,simpleName:"CommentsDao",interfaces:[t4,X6]},Jd.prototype.insert_11rb$=function(t){return this._insertAdapterComments_.insertAndReturnId_11rb$(t)},Yd.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Yd.prototype=Object.create(N.prototype),Yd.prototype.constructor=Yd,Yd.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterComments_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Jd.prototype.insertAsync=function(t,e,n){var i=new Yd(this,t,e);return n?i:i.doResume(null)},Jd.prototype.insertList_4ezy5m$=function(t){this._insertAdapterComments_.insertList_4ezy5m$(t)},Qd.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Qd.prototype=Object.create(N.prototype),Qd.prototype.constructor=Qd,Qd.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterComments_.insertListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Jd.prototype.insertListAsync_4ezy5m$=function(t,e,n){var i=new Qd(this,t,e);return n?i:i.doResume(null)},Jd.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE Comments SET commentsText = ?, commentsEntityType = ?, commentsEntityUid = ?, commentsPublic = ?, commentsStatus = ?, commentsPersonUid = ?, commentsToPersonUid = ?, commentSubmitterUid = ?, commentsFlagged = ?, commentsInActive = ?, commentsDateTimeAdded = ?, commentsDateTimeUpdated = ?, commentsMCSN = ?, commentsLCSN = ?, commentsLCB = ?, commentsLct = ? WHERE commentsUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setString_vqvrqt$(1,i.commentsText),t.setInt_vux9f0$(2,i.commentsEntityType),t.setLong_6svq3l$(3,i.commentsEntityUid),t.setBoolean_fzusl$(4,i.commentsPublic),t.setInt_vux9f0$(5,i.commentsStatus),t.setLong_6svq3l$(6,i.commentsPersonUid),t.setLong_6svq3l$(7,i.commentsToPersonUid),t.setLong_6svq3l$(8,i.commentSubmitterUid),t.setBoolean_fzusl$(9,i.commentsFlagged),t.setBoolean_fzusl$(10,i.commentsInActive),t.setLong_6svq3l$(11,i.commentsDateTimeAdded),t.setLong_6svq3l$(12,i.commentsDateTimeUpdated),t.setLong_6svq3l$(13,i.commentsMCSN),t.setLong_6svq3l$(14,i.commentsLCSN),t.setInt_vux9f0$(15,i.commentsLCB),t.setLong_6svq3l$(16,i.commentsLct),t.setLong_6svq3l$(17,i.commentsUid),t.executeUpdate()}return t.getConnection().commit(),V}))},Jd.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE Comments SET commentsText = ?, commentsEntityType = ?, commentsEntityUid = ?, commentsPublic = ?, commentsStatus = ?, commentsPersonUid = ?, commentsToPersonUid = ?, commentSubmitterUid = ?, commentsFlagged = ?, commentsInActive = ?, commentsDateTimeAdded = ?, commentsDateTimeUpdated = ?, commentsMCSN = ?, commentsLCSN = ?, commentsLCB = ?, commentsLct = ? WHERE commentsUid = ?",(e=t,function(t){return t.setString_vqvrqt$(1,e.commentsText),t.setInt_vux9f0$(2,e.commentsEntityType),t.setLong_6svq3l$(3,e.commentsEntityUid),t.setBoolean_fzusl$(4,e.commentsPublic),t.setInt_vux9f0$(5,e.commentsStatus),t.setLong_6svq3l$(6,e.commentsPersonUid),t.setLong_6svq3l$(7,e.commentsToPersonUid),t.setLong_6svq3l$(8,e.commentSubmitterUid),t.setBoolean_fzusl$(9,e.commentsFlagged),t.setBoolean_fzusl$(10,e.commentsInActive),t.setLong_6svq3l$(11,e.commentsDateTimeAdded),t.setLong_6svq3l$(12,e.commentsDateTimeUpdated),t.setLong_6svq3l$(13,e.commentsMCSN),t.setLong_6svq3l$(14,e.commentsLCSN),t.setInt_vux9f0$(15,e.commentsLCB),t.setLong_6svq3l$(16,e.commentsLct),t.setLong_6svq3l$(17,e.commentsUid),t.executeUpdate()}))},Zd.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Zd.prototype=Object.create(N.prototype),Zd.prototype.constructor=Zd,Zd.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_stmt.getConnection().setAutoCommit_6taknv$(!1),this.local$tmp$=this.local$closure$entityList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$tmp$.hasNext()){this.state_0=4;continue}var t=this.local$tmp$.next();if(this.local$_stmt.setString_vqvrqt$(1,t.commentsText),this.local$_stmt.setInt_vux9f0$(2,t.commentsEntityType),this.local$_stmt.setLong_6svq3l$(3,t.commentsEntityUid),this.local$_stmt.setBoolean_fzusl$(4,t.commentsPublic),this.local$_stmt.setInt_vux9f0$(5,t.commentsStatus),this.local$_stmt.setLong_6svq3l$(6,t.commentsPersonUid),this.local$_stmt.setLong_6svq3l$(7,t.commentsToPersonUid),this.local$_stmt.setLong_6svq3l$(8,t.commentSubmitterUid),this.local$_stmt.setBoolean_fzusl$(9,t.commentsFlagged),this.local$_stmt.setBoolean_fzusl$(10,t.commentsInActive),this.local$_stmt.setLong_6svq3l$(11,t.commentsDateTimeAdded),this.local$_stmt.setLong_6svq3l$(12,t.commentsDateTimeUpdated),this.local$_stmt.setLong_6svq3l$(13,t.commentsMCSN),this.local$_stmt.setLong_6svq3l$(14,t.commentsLCSN),this.local$_stmt.setInt_vux9f0$(15,t.commentsLCB),this.local$_stmt.setLong_6svq3l$(16,t.commentsLct),this.local$_stmt.setLong_6svq3l$(17,t.commentsUid),this.state_0=3,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 3:this.state_0=2;continue;case 4:return this.local$_stmt.getConnection().commit(),V;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ep.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ep.prototype=Object.create(N.prototype),ep.prototype.constructor=ep,ep.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE Comments SET commentsText = ?, commentsEntityType = ?, commentsEntityUid = ?, commentsPublic = ?, commentsStatus = ?, commentsPersonUid = ?, commentsToPersonUid = ?, commentSubmitterUid = ?, commentsFlagged = ?, commentsInActive = ?, commentsDateTimeAdded = ?, commentsDateTimeUpdated = ?, commentsMCSN = ?, commentsLCSN = ?, commentsLCB = ?, commentsLct = ? WHERE commentsUid = ?",tp(this.local$entityList),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Jd.prototype.updateListAsync_4ezy5m$=function(t,e,n){var i=new ep(this,t,e);return n?i:i.doResume(null)},np.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},np.prototype=Object.create(N.prototype),np.prototype.constructor=np,np.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},op.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},op.prototype=Object.create(N.prototype),op.prototype.constructor=op,op.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO CommentsReplicate(commentsPk, commentsDestination)\n | SELECT DISTINCT Comments.commentsUid AS commentsPk,\n | ? AS commentsDestination\n | FROM Comments\n | WHERE Comments.commentsLct != COALESCE(\n | (SELECT commentsVersionId\n | FROM CommentsReplicate\n | WHERE commentsPk = Comments.commentsUid\n | AND commentsDestination = ?), 0) \n | /*psql ON CONFLICT(commentsPk, commentsDestination) DO UPDATE\n | SET commentsPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO CommentsReplicate(commentsPk, commentsDestination)\n | SELECT DISTINCT Comments.commentsUid AS commentsPk,\n | ? AS commentsDestination\n | FROM Comments\n | WHERE Comments.commentsLct != COALESCE(\n | (SELECT commentsVersionId\n | FROM CommentsReplicate\n | WHERE commentsPk = Comments.commentsUid\n | AND commentsDestination = ?), 0) \n | ON CONFLICT(commentsPk, commentsDestination) DO UPDATE\n | SET commentsPending = true\n | \n | \n |")),ip(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Jd.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new op(this,t,e);return n?i:i.doResume(null)},rp.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},rp.prototype=Object.create(N.prototype),rp.prototype.constructor=rp,rp.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ap.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ap.prototype=Object.create(N.prototype),ap.prototype.constructor=ap,ap.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO CommentsReplicate(commentsPk, commentsDestination)\n | SELECT DISTINCT Comments.commentsUid AS commentsPk,\n | UserSession.usClientNodeId AS commentsDestination\n | FROM ChangeLog\n | JOIN Comments\n | ON ChangeLog.chTableId = 208\n | AND ChangeLog.chEntityPk = Comments.commentsUid\n | JOIN UserSession \n | ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND Comments.commentsLct != COALESCE(\n | (SELECT commentsVersionId\n | FROM CommentsReplicate\n | WHERE commentsPk = Comments.commentsUid\n | AND commentsDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(commentsPk, commentsDestination) DO UPDATE\n | SET commentsPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO CommentsReplicate(commentsPk, commentsDestination)\n | SELECT DISTINCT Comments.commentsUid AS commentsPk,\n | UserSession.usClientNodeId AS commentsDestination\n | FROM ChangeLog\n | JOIN Comments\n | ON ChangeLog.chTableId = 208\n | AND ChangeLog.chEntityPk = Comments.commentsUid\n | JOIN UserSession \n | ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND Comments.commentsLct != COALESCE(\n | (SELECT commentsVersionId\n | FROM CommentsReplicate\n | WHERE commentsPk = Comments.commentsUid\n | AND commentsDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(commentsPk, commentsDestination) DO UPDATE\n | SET commentsPending = true\n | \n | \n |")),sp,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Jd.prototype.replicateOnChange=function(t,e){var n=new ap(this,t);return e?n:n.doResume(null)},Jd.prototype.findByUidAsync_s8cxhz$=function(t){return ht(this._db,new st("SELECT * FROM Comments WHERE commentsUid = ? AND CAST(commentsInActive AS INTEGER) = 0"),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),cp)}));var e},hp.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},hp.prototype=Object.create(N.prototype),hp.prototype.constructor=hp,hp.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setInt_vux9f0$(1,this.local$closure$entityType),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$entityUid),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(4,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,up);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},pp.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},pp.prototype=Object.create(N.prototype),pp.prototype.constructor=pp,pp.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$CommentsDao_JdbcKt._db,new st(S("\n |SELECT * FROM (\n | SELECT Comments.*, Person.* \n | FROM Comments\n | LEFT JOIN Person \n | ON Person.personUid = Comments.commentsPersonUid \n | WHERE Comments.commentsEntityType = ? \n | AND Comments.commentsEntityUid = ?\n | AND CAST(Comments.commentsFlagged AS INTEGER) = 0\n | AND CAST(Comments.commentsInActive AS INTEGER) = 0\n | AND CAST(Comments.commentsPublic AS INTEGER) = 1\n | ORDER BY Comments.commentsDateTimeAdded DESC \n | ) LIMIT ? OFFSET ?\n ")),dp(this.local$closure$entityType,this.local$closure$entityUid,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lp.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$CommentsDao_JdbcKt._db,p(["Comments","Person"]),(n=this.this$CommentsDao_JdbcKt,i=this.closure$entityType,o=this.closure$entityUid,r=e,s=t,function(t,e){var a=new pp(n,i,o,r,s,t);return e?a:a.doResume(null)}));var n,i,o,r,s},mp.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},mp.prototype=Object.create(N.prototype),mp.prototype.constructor=mp,mp.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setInt_vux9f0$(1,this.local$closure$entityType),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$entityUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,_p);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},gp.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},gp.prototype=Object.create(N.prototype),gp.prototype.constructor=gp,gp.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$CommentsDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (\n | SELECT Comments.*, Person.* \n | FROM Comments\n | LEFT JOIN Person \n | ON Person.personUid = Comments.commentsPersonUid \n | WHERE Comments.commentsEntityType = ? \n | AND Comments.commentsEntityUid = ?\n | AND CAST(Comments.commentsFlagged AS INTEGER) = 0\n | AND CAST(Comments.commentsInActive AS INTEGER) = 0\n | AND CAST(Comments.commentsPublic AS INTEGER) = 1\n | ORDER BY Comments.commentsDateTimeAdded DESC \n | ) \n ")),fp(this.local$closure$entityType,this.local$closure$entityUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lp.prototype.getLength=function(){return new ft(this.this$CommentsDao_JdbcKt._db,p(["Comments","Person"]),(t=this.this$CommentsDao_JdbcKt,e=this.closure$entityType,n=this.closure$entityUid,function(i,o){var r=new gp(t,e,n,i);return o?r:r.doResume(null)}));var t,e,n},lp.$metadata$={kind:c,interfaces:[gt]},Jd.prototype.findPublicByEntityTypeAndUidLive_6svq3l$=function(t,e){return new lp(this,t,e)},yp.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},yp.prototype=Object.create(N.prototype),yp.prototype.constructor=yp,yp.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setInt_vux9f0$(1,this.local$closure$entityType),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$entityUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(5,this.local$closure$personUid),this.local$_stmt.setInt_vux9f0$(6,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(7,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Ep);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Sp.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Sp.prototype=Object.create(N.prototype),Sp.prototype.constructor=Sp,Sp.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$CommentsDao_JdbcKt._db,new st(S("\n |SELECT * FROM (\n | SELECT Comments.*, Person.* FROM Comments\n | LEFT JOIN Person ON Person.personUid = Comments.commentsPersonUid \n | WHERE Comments.commentsEntityType = ? \n | AND Comments.commentsEntityUid = ?\n | AND Comments.commentsPersonUid = ? OR Comments.commentsToPersonUid = ? \n | AND CAST(Comments.commentsFlagged AS INTEGER) = 0\n | AND CAST(Comments.commentsInActive AS INTEGER) = 0\n | AND CAST(Comments.commentsPublic AS INTEGER) = 0\n | AND Person.personUid = ?\n | ORDER BY Comments.commentsDateTimeAdded DESC \n | ) LIMIT ? OFFSET ?\n ")),bp(this.local$closure$entityType,this.local$closure$entityUid,this.local$closure$personUid,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},$p.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$CommentsDao_JdbcKt._db,p(["Comments","Person"]),(n=this.this$CommentsDao_JdbcKt,i=this.closure$entityType,o=this.closure$entityUid,r=this.closure$personUid,s=e,a=t,function(t,e){var c=new Sp(n,i,o,r,s,a,t);return e?c:c.doResume(null)}));var n,i,o,r,s,a},Cp.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Cp.prototype=Object.create(N.prototype),Cp.prototype.constructor=Cp,Cp.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setInt_vux9f0$(1,this.local$closure$entityType),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$entityUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(5,this.local$closure$personUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,vp);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Tp.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Tp.prototype=Object.create(N.prototype),Tp.prototype.constructor=Tp,Tp.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$CommentsDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (\n | SELECT Comments.*, Person.* FROM Comments\n | LEFT JOIN Person ON Person.personUid = Comments.commentsPersonUid \n | WHERE Comments.commentsEntityType = ? \n | AND Comments.commentsEntityUid = ?\n | AND Comments.commentsPersonUid = ? OR Comments.commentsToPersonUid = ? \n | AND CAST(Comments.commentsFlagged AS INTEGER) = 0\n | AND CAST(Comments.commentsInActive AS INTEGER) = 0\n | AND CAST(Comments.commentsPublic AS INTEGER) = 0\n | AND Person.personUid = ?\n | ORDER BY Comments.commentsDateTimeAdded DESC \n | ) \n ")),Np(this.local$closure$entityType,this.local$closure$entityUid,this.local$closure$personUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},$p.prototype.getLength=function(){return new ft(this.this$CommentsDao_JdbcKt._db,p(["Comments","Person"]),(t=this.this$CommentsDao_JdbcKt,e=this.closure$entityType,n=this.closure$entityUid,i=this.closure$personUid,function(o,r){var s=new Tp(t,e,n,i,o);return r?s:s.doResume(null)}));var t,e,n,i},$p.$metadata$={kind:c,interfaces:[gt]},Jd.prototype.findPrivateByEntityTypeAndUidAndForPersonLive_h639zw$=function(t,e,n){return new $p(this,t,e,n)},wp.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},wp.prototype=Object.create(N.prototype),wp.prototype.constructor=wp,wp.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setInt_vux9f0$(1,this.local$closure$entityType),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$entityUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$submitterUid),this.local$_stmt.setInt_vux9f0$(4,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(5,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,zp);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Rp.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Rp.prototype=Object.create(N.prototype),Rp.prototype.constructor=Rp,Rp.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$CommentsDao_JdbcKt._db,new st(S("\n |SELECT * FROM (\n | SELECT Comments.*, \n | Person.* \n | FROM Comments\n | LEFT JOIN Person \n | ON Person.personUid = Comments.commentsPersonUid\n | WHERE Comments.commentsEntityType = ? \n | AND Comments.commentsEntityUid = ?\n | AND Comments.commentSubmitterUid = ? \n | AND CAST(Comments.commentsFlagged AS INTEGER) = 0\n | AND CAST(Comments.commentsInActive AS INTEGER) = 0\n | AND CAST(Comments.commentsPublic AS INTEGER) = 0\n | ORDER BY Comments.commentsDateTimeAdded DESC \n | ) LIMIT ? OFFSET ?\n ")),Op(this.local$closure$entityType,this.local$closure$entityUid,this.local$closure$submitterUid,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Lp.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$CommentsDao_JdbcKt._db,p(["Comments","Person"]),(n=this.this$CommentsDao_JdbcKt,i=this.closure$entityType,o=this.closure$entityUid,r=this.closure$submitterUid,s=e,a=t,function(t,e){var c=new Rp(n,i,o,r,s,a,t);return e?c:c.doResume(null)}));var n,i,o,r,s,a},xp.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},xp.prototype=Object.create(N.prototype),xp.prototype.constructor=xp,xp.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setInt_vux9f0$(1,this.local$closure$entityType),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$entityUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$submitterUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Ap);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Up.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Up.prototype=Object.create(N.prototype),Up.prototype.constructor=Up,Up.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$CommentsDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (\n | SELECT Comments.*, \n | Person.* \n | FROM Comments\n | LEFT JOIN Person \n | ON Person.personUid = Comments.commentsPersonUid\n | WHERE Comments.commentsEntityType = ? \n | AND Comments.commentsEntityUid = ?\n | AND Comments.commentSubmitterUid = ? \n | AND CAST(Comments.commentsFlagged AS INTEGER) = 0\n | AND CAST(Comments.commentsInActive AS INTEGER) = 0\n | AND CAST(Comments.commentsPublic AS INTEGER) = 0\n | ORDER BY Comments.commentsDateTimeAdded DESC \n | ) \n ")),Ip(this.local$closure$entityType,this.local$closure$entityUid,this.local$closure$submitterUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Lp.prototype.getLength=function(){return new ft(this.this$CommentsDao_JdbcKt._db,p(["Comments","Person"]),(t=this.this$CommentsDao_JdbcKt,e=this.closure$entityType,n=this.closure$entityUid,i=this.closure$submitterUid,function(o,r){var s=new Up(t,e,n,i,o);return r?s:s.doResume(null)}));var t,e,n,i},Lp.$metadata$={kind:c,interfaces:[gt]},Jd.prototype.findPrivateByEntityTypeAndUidAndForPersonLive2_h639zw$=function(t,e,n){return new Lp(this,t,e,n)},Mp.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Mp.prototype=Object.create(N.prototype),Mp.prototype.constructor=Mp,Mp.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setInt_vux9f0$(1,this.local$closure$entityType),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$entityUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$personUid),this.local$_stmt.setInt_vux9f0$(4,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(5,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Pp);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jp.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},jp.prototype=Object.create(N.prototype),jp.prototype.constructor=jp,jp.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$CommentsDao_JdbcKt._db,new st(S("\n |SELECT * FROM (\n | SELECT Comments.*, Person.* FROM Comments\n | LEFT JOIN Person ON Person.personUid = Comments.commentsPersonUid \n | WHERE Comments.commentsEntityType = ? \n | AND Comments.commentsEntityUid = ?\n | AND CAST(Comments.commentsFlagged AS INTEGER) = 0\n | AND CAST(Comments.commentsInActive AS INTEGER) = 0\n | AND CAST(Comments.commentsPublic AS INTEGER) = 0\n | AND Person.personUid = ?\n | ORDER BY Comments.commentsDateTimeAdded DESC \n | ) LIMIT ? OFFSET ?\n ")),kp(this.local$closure$entityType,this.local$closure$entityUid,this.local$closure$personUid,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Dp.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$CommentsDao_JdbcKt._db,p(["Comments","Person"]),(n=this.this$CommentsDao_JdbcKt,i=this.closure$entityType,o=this.closure$entityUid,r=this.closure$personUid,s=e,a=t,function(t,e){var c=new jp(n,i,o,r,s,a,t);return e?c:c.doResume(null)}));var n,i,o,r,s,a},qp.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},qp.prototype=Object.create(N.prototype),qp.prototype.constructor=qp,qp.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setInt_vux9f0$(1,this.local$closure$entityType),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$entityUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$personUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Gp);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Bp.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Bp.prototype=Object.create(N.prototype),Bp.prototype.constructor=Bp,Bp.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$CommentsDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (\n | SELECT Comments.*, Person.* FROM Comments\n | LEFT JOIN Person ON Person.personUid = Comments.commentsPersonUid \n | WHERE Comments.commentsEntityType = ? \n | AND Comments.commentsEntityUid = ?\n | AND CAST(Comments.commentsFlagged AS INTEGER) = 0\n | AND CAST(Comments.commentsInActive AS INTEGER) = 0\n | AND CAST(Comments.commentsPublic AS INTEGER) = 0\n | AND Person.personUid = ?\n | ORDER BY Comments.commentsDateTimeAdded DESC \n | ) \n ")),Fp(this.local$closure$entityType,this.local$closure$entityUid,this.local$closure$personUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Dp.prototype.getLength=function(){return new ft(this.this$CommentsDao_JdbcKt._db,p(["Comments","Person"]),(t=this.this$CommentsDao_JdbcKt,e=this.closure$entityType,n=this.closure$entityUid,i=this.closure$personUid,function(o,r){var s=new Bp(t,e,n,i,o);return r?s:s.doResume(null)}));var t,e,n,i},Dp.$metadata$={kind:c,interfaces:[gt]},Jd.prototype.findPrivateByEntityTypeAndUidAndPersonLive_h639zw$=function(t,e,n){return new Dp(this,t,e,n)},Vp.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Vp.prototype=Object.create(N.prototype),Vp.prototype.constructor=Vp,Vp.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setInt_vux9f0$(1,this.local$closure$entityType),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$entityUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$personFrom),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$personFrom),this.local$_stmt.setInt_vux9f0$(5,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(6,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Hp);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Xp.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Xp.prototype=Object.create(N.prototype),Xp.prototype.constructor=Xp,Xp.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$CommentsDao_JdbcKt._db,new st(S("\n |SELECT * FROM (\n | SELECT Comments.*, Person.* FROM Comments\n | LEFT JOIN Person ON Person.personUid = Comments.commentsPersonUid \n | WHERE Comments.commentsEntityType = ? \n | AND Comments.commentsEntityUid = ?\n | AND CAST(Comments.commentsFlagged AS INTEGER) = 0\n | AND CAST(Comments.commentsInActive AS INTEGER) = 0\n | AND CAST(Comments.commentsPublic AS INTEGER) = 0\n | AND (Comments.commentsToPersonUid = ? \n | OR Comments.commentsPersonUid = ?)\n | ORDER BY Comments.commentsDateTimeAdded DESC \n | ) LIMIT ? OFFSET ?\n ")),Kp(this.local$closure$entityType,this.local$closure$entityUid,this.local$closure$personFrom,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Wp.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$CommentsDao_JdbcKt._db,p(["Comments","Person"]),(n=this.this$CommentsDao_JdbcKt,i=this.closure$entityType,o=this.closure$entityUid,r=this.closure$personFrom,s=e,a=t,function(t,e){var c=new Xp(n,i,o,r,s,a,t);return e?c:c.doResume(null)}));var n,i,o,r,s,a},Yp.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Yp.prototype=Object.create(N.prototype),Yp.prototype.constructor=Yp,Yp.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setInt_vux9f0$(1,this.local$closure$entityType),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$entityUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$personFrom),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$personFrom),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Jp);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Zp.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Zp.prototype=Object.create(N.prototype),Zp.prototype.constructor=Zp,Zp.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$CommentsDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (\n | SELECT Comments.*, Person.* FROM Comments\n | LEFT JOIN Person ON Person.personUid = Comments.commentsPersonUid \n | WHERE Comments.commentsEntityType = ? \n | AND Comments.commentsEntityUid = ?\n | AND CAST(Comments.commentsFlagged AS INTEGER) = 0\n | AND CAST(Comments.commentsInActive AS INTEGER) = 0\n | AND CAST(Comments.commentsPublic AS INTEGER) = 0\n | AND (Comments.commentsToPersonUid = ? \n | OR Comments.commentsPersonUid = ?)\n | ORDER BY Comments.commentsDateTimeAdded DESC \n | ) \n ")),Qp(this.local$closure$entityType,this.local$closure$entityUid,this.local$closure$personFrom),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Wp.prototype.getLength=function(){return new ft(this.this$CommentsDao_JdbcKt._db,p(["Comments","Person"]),(t=this.this$CommentsDao_JdbcKt,e=this.closure$entityType,n=this.closure$entityUid,i=this.closure$personFrom,function(o,r){var s=new Zp(t,e,n,i,o);return r?s:s.doResume(null)}));var t,e,n,i},Wp.$metadata$={kind:c,interfaces:[gt]},Jd.prototype.findPrivateCommentsByEntityTypeAndUidAndPersonAndPersonToLive_h639zw$=function(t,e,n){return new Wp(this,t,e,n)},Jd.prototype.findPrivateCommentsByEntityTypeAndUidAndPersonAndPersonToTest_tmkdev$=function(t,e,n,i){return ht(this._db,new st(S("\n |\n | SELECT Comments.*, Person.* FROM Comments\n | LEFT JOIN Person ON Person.personUid = Comments.commentsPersonUid \n | WHERE Comments.commentsEntityType = ? \n | AND Comments.commentsEntityUid = ?\n | AND CAST(Comments.commentsFlagged AS INTEGER) = 0\n | AND CAST(Comments.commentsInActive AS INTEGER) = 0\n | AND CAST(Comments.commentsPublic AS INTEGER) = 0\n | AND Comments.commentsPersonUid = ? \n | OR (? = 0 OR Comments.commentsToPersonUid = ?)\n | ORDER BY Comments.commentsDateTimeAdded DESC \n | \n ")),(o=t,r=e,s=n,a=i,function(t){return t.setInt_vux9f0$(1,o),t.setLong_6svq3l$(2,r),t.setLong_6svq3l$(3,s),t.setLong_6svq3l$(4,a),t.setLong_6svq3l$(5,s),ut(t.executeQuery(),t_)}));var o,r,s,a},e_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},e_.prototype=Object.create(N.prototype),e_.prototype.constructor=e_,e_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setBoolean_fzusl$(1,this.local$closure$inActive),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$changeTime),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$uid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},i_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},i_.prototype=Object.create(N.prototype),i_.prototype.constructor=i_,i_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | UPDATE Comments \n | SET commentsInActive = ?,\n | commentsLct = ?\n | WHERE Comments.commentsUid = ?\n | \n ")),n_(this.local$inActive,this.local$changeTime,this.local$uid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Jd.prototype.updateInActiveByCommentUid_zaz62j$=function(t,e,n,i,o){var r=new i_(this,t,e,n,i);return o?r:r.doResume(null)},o_.prototype.makeSql_6taknv$=function(t){return"INSERT INTO Comments (commentsUid, commentsText, commentsEntityType, commentsEntityUid, commentsPublic, commentsStatus, commentsPersonUid, commentsToPersonUid, commentSubmitterUid, commentsFlagged, commentsInActive, commentsDateTimeAdded, commentsDateTimeUpdated, commentsMCSN, commentsLCSN, commentsLCB, commentsLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},o_.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.commentsUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.commentsUid),t.setString_vqvrqt$(2,e.commentsText),t.setInt_vux9f0$(3,e.commentsEntityType),t.setLong_6svq3l$(4,e.commentsEntityUid),t.setBoolean_fzusl$(5,e.commentsPublic),t.setInt_vux9f0$(6,e.commentsStatus),t.setLong_6svq3l$(7,e.commentsPersonUid),t.setLong_6svq3l$(8,e.commentsToPersonUid),t.setLong_6svq3l$(9,e.commentSubmitterUid),t.setBoolean_fzusl$(10,e.commentsFlagged),t.setBoolean_fzusl$(11,e.commentsInActive),t.setLong_6svq3l$(12,e.commentsDateTimeAdded),t.setLong_6svq3l$(13,e.commentsDateTimeUpdated),t.setLong_6svq3l$(14,e.commentsMCSN),t.setLong_6svq3l$(15,e.commentsLCSN),t.setInt_vux9f0$(16,e.commentsLCB),t.setLong_6svq3l$(17,e.commentsLct)},o_.$metadata$={kind:c,interfaces:[pt]},Jd.$metadata$={kind:c,simpleName:"CommentsDao_JdbcKt",interfaces:[Xd]},s_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},s_.prototype=Object.create(N.prototype),s_.prototype.constructor=s_,s_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},r_.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new s_(this,t,e);return n?i:i.doResume(null)},a_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},a_.prototype=Object.create(N.prototype),a_.prototype.constructor=a_,a_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},r_.prototype.replicateOnChange=function(t,e){var n=new a_(this,t);return e?n:n.doResume(null)},r_.prototype.findByUidAsync_s8cxhz$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},r_.prototype.findPublicByEntityTypeAndUidLive_6svq3l$=function(t,e){return this._dao_0.findPublicByEntityTypeAndUidLive_6svq3l$(t,e)},r_.prototype.findPrivateByEntityTypeAndUidAndForPersonLive_h639zw$=function(t,e,n){return this._dao_0.findPrivateByEntityTypeAndUidAndForPersonLive_h639zw$(t,e,n)},r_.prototype.findPrivateByEntityTypeAndUidAndForPersonLive2_h639zw$=function(t,e,n){return this._dao_0.findPrivateByEntityTypeAndUidAndForPersonLive2_h639zw$(t,e,n)},r_.prototype.findPrivateByEntityTypeAndUidAndPersonLive_h639zw$=function(t,e,n){return this._dao_0.findPrivateByEntityTypeAndUidAndPersonLive_h639zw$(t,e,n)},r_.prototype.findPrivateCommentsByEntityTypeAndUidAndPersonAndPersonToLive_h639zw$=function(t,e,n){return this._dao_0.findPrivateCommentsByEntityTypeAndUidAndPersonAndPersonToLive_h639zw$(t,e,n)},r_.prototype.findPrivateCommentsByEntityTypeAndUidAndPersonAndPersonToTest_tmkdev$=function(t,e,n,i){throw v("Synchronous db access is NOT possible on Javascript!")},c_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},c_.prototype=Object.create(N.prototype),c_.prototype.constructor=c_,c_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.updateInActiveByCommentUid_zaz62j$(this.local$uid,this.local$inActive,this.local$changeTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},r_.prototype.updateInActiveByCommentUid_zaz62j$=function(t,e,n,i,o){var r=new c_(this,t,e,n,i);return o?r:r.doResume(null)},r_.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},l_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},l_.prototype=Object.create(N.prototype),l_.prototype.constructor=l_,l_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.commentsUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(208,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.commentsUid=e,this.state_0=3;continue;case 3:if(this.local$entity.commentsLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.commentsUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},r_.prototype.insertAsync=function(t,e,n){var i=new l_(this,t,e);return n?i:i.doResume(null)},r_.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},r_.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},r_.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},u_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},u_.prototype=Object.create(N.prototype),u_.prototype.constructor=u_,u_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_pkManager=_t(w(this.$this._db_0)),this.local$_generatedPks=F(),this.local$$receiver=this.local$entityList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$$receiver.hasNext()){this.state_0=5;continue}if(this.local$element=this.local$$receiver.next(),O(this.local$element.commentsUid,X)){if(this.state_0=3,this.result_0=this.local$_pkManager.nextIdAsync_za3lpa$(208,this),this.result_0===C)return C;continue}this.state_0=4;continue;case 3:var t=this.result_0;this.local$element.commentsUid=t,this.local$_generatedPks.add_11rb$(t),this.state_0=4;continue;case 4:this.local$element.commentsLct=J(),this.state_0=2;continue;case 5:if(this.state_0=6,this.result_0=this.$this._dao_0.insertListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 6:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},r_.prototype.insertListAsync_4ezy5m$=function(t,e,n){var i=new u_(this,t,e);return n?i:i.doResume(null)},h_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},h_.prototype=Object.create(N.prototype),h_.prototype.constructor=h_,h_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:F();for(var t=this.local$entityList.iterator();t.hasNext();)t.next().commentsLct=J();if(this.state_0=2,this.result_0=this.$this._dao_0.updateListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},r_.prototype.updateListAsync_4ezy5m$=function(t,e,n){var i=new h_(this,t,e);return n?i:i.doResume(null)},r_.$metadata$={kind:c,simpleName:"CommentsDao_ReplicateWrapper",interfaces:[Xd]},p_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},p_.prototype=Object.create(N.prototype),p_.prototype.constructor=p_,p_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},d_.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new p_(this,t,e);return n?i:i.doResume(null)},__.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},__.prototype=Object.create(N.prototype),__.prototype.constructor=__,__.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},d_.prototype.replicateOnChange=function(t,e){var n=new __(this,t);return e?n:n.doResume(null)},d_.prototype.findByUidAsync_s8cxhz$=function(t){return this._dao.findByUidAsync_s8cxhz$(t)},d_.prototype.findPublicByEntityTypeAndUidLive_6svq3l$=function(t,e){return this._dao.findPublicByEntityTypeAndUidLive_6svq3l$(t,e)},d_.prototype.findPrivateByEntityTypeAndUidAndForPersonLive_h639zw$=function(t,e,n){return this._dao.findPrivateByEntityTypeAndUidAndForPersonLive_h639zw$(t,e,n)},d_.prototype.findPrivateByEntityTypeAndUidAndForPersonLive2_h639zw$=function(t,e,n){return this._dao.findPrivateByEntityTypeAndUidAndForPersonLive2_h639zw$(t,e,n)},d_.prototype.findPrivateByEntityTypeAndUidAndPersonLive_h639zw$=function(t,e,n){return this._dao.findPrivateByEntityTypeAndUidAndPersonLive_h639zw$(t,e,n)},d_.prototype.findPrivateCommentsByEntityTypeAndUidAndPersonAndPersonToLive_h639zw$=function(t,e,n){return this._dao.findPrivateCommentsByEntityTypeAndUidAndPersonAndPersonToLive_h639zw$(t,e,n)},d_.prototype.findPrivateCommentsByEntityTypeAndUidAndPersonAndPersonToTest_tmkdev$=function(t,e,n,i){return this._dao.findPrivateCommentsByEntityTypeAndUidAndPersonAndPersonToTest_tmkdev$(t,e,n,i)},m_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},m_.prototype=Object.create(N.prototype),m_.prototype.constructor=m_,m_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateInActiveByCommentUid_zaz62j$(this.local$uid,this.local$inActive,this.local$changeTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},d_.prototype.updateInActiveByCommentUid_zaz62j$=function(t,e,n,i,o){var r=new m_(this,t,e,n,i);return o?r:r.doResume(null)},d_.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},f_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},f_.prototype=Object.create(N.prototype),f_.prototype.constructor=f_,f_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},d_.prototype.insertAsync=function(t,e,n){var i=new f_(this,t,e);return n?i:i.doResume(null)},d_.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},d_.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},d_.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},g_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},g_.prototype=Object.create(N.prototype),g_.prototype.constructor=g_,g_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},d_.prototype.insertListAsync_4ezy5m$=function(t,e,n){var i=new g_(this,t,e);return n?i:i.doResume(null)},$_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},$_.prototype=Object.create(N.prototype),$_.prototype.constructor=$_,$_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},d_.prototype.updateListAsync_4ezy5m$=function(t,e,n){var i=new $_(this,t,e);return n?i:i.doResume(null)},d_.$metadata$={kind:c,simpleName:"CommentsDao_Repo",interfaces:[Xd]},E_.$metadata$={kind:c,simpleName:"ConnectivityStatusDao",interfaces:[]},y_.prototype.insert_v0v7in$=function(t){return this._insertAdapterConnectivityStatus_upsert.insertAndReturnId_11rb$(t)},b_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},b_.prototype=Object.create(N.prototype),b_.prototype.constructor=b_,b_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterConnectivityStatus_upsert.insertAndReturnIdAsync_11rb$(this.local$connectivityStatus,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},y_.prototype.insertAsync_v0v7in$=function(t,e,n){var i=new b_(this,t,e);return n?i:i.doResume(null)},v_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},v_.prototype=Object.create(N.prototype),v_.prototype.constructor=v_,v_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,S_);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},N_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},N_.prototype=Object.create(N.prototype),N_.prototype.constructor=N_,N_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ConnectivityStatusDao_JdbcKt._db,new st("SELECT ConnectivityStatus.* FROM ConnectivityStatus LIMIT 1"),C_,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},y_.prototype.statusLive=function(){return new ft(this._db,Et("ConnectivityStatus"),(t=this,function(e,n){var i=new N_(t,e);return n?i:i.doResume(null)}));var t},y_.prototype.status=function(){return ht(this._db,new st("SELECT ConnectivityStatus.* FROM ConnectivityStatus LIMIT 1"),L_)},z_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},z_.prototype=Object.create(N.prototype),z_.prototype.constructor=z_,z_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setInt_vux9f0$(1,this.local$closure$connectivityState),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},O_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},O_.prototype=Object.create(N.prototype),O_.prototype.constructor=O_,O_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st("UPDATE ConnectivityStatus SET connectivityState = ?"),w_(this.local$connectivityState),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},y_.prototype.updateStateAsync_za3lpa$=function(t,e,n){var i=new O_(this,t,e);return n?i:i.doResume(null)},R_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},R_.prototype=Object.create(N.prototype),R_.prototype.constructor=R_,R_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setInt_vux9f0$(1,this.local$closure$connectivityState),this.local$_stmt.setString_vqvrqt$(2,this.local$closure$wifiSsid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},x_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},x_.prototype=Object.create(N.prototype),x_.prototype.constructor=x_,x_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st("UPDATE ConnectivityStatus SET connectivityState = ? , wifiSsid = ?"),A_(this.local$connectivityState,this.local$wifiSsid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},y_.prototype.updateState_19mbxw$=function(t,e,n,i){var o=new x_(this,t,e,n);return i?o:o.doResume(null)},y_.prototype.updateStateSync_19mbxw$=function(t,e){var n,i;ht(this._db,new st("UPDATE ConnectivityStatus SET connectivityState = ? , wifiSsid = ?"),(n=t,i=e,function(t){return t.setInt_vux9f0$(1,n),t.setString_vqvrqt$(2,i),t.executeUpdate()}))},I_.prototype.makeSql_6taknv$=function(t){return"INSERT OR REPLACE INTO ConnectivityStatus (csUid, connectivityState, wifiSsid, connectedOrConnecting) VALUES(?, ?, ?, ?)"},I_.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){t.setInt_vux9f0$(1,e.csUid),t.setInt_vux9f0$(2,e.connectivityState),t.setString_vqvrqt$(3,e.wifiSsid),t.setBoolean_fzusl$(4,e.connectedOrConnecting)},I_.$metadata$={kind:c,interfaces:[pt]},y_.$metadata$={kind:c,simpleName:"ConnectivityStatusDao_JdbcKt",interfaces:[E_]},U_.$metadata$={kind:c,simpleName:"ContainerDao",interfaces:[X6]},P_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},P_.prototype=Object.create(N.prototype),P_.prototype.constructor=P_,P_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterContainer_.insertListAsync_4ezy5m$(this.local$containerList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},D_.prototype.insertListAsync_5ys87q$=function(t,e,n){var i=new P_(this,t,e);return n?i:i.doResume(null)},D_.prototype.replaceList_5ys87q$=function(t){this._insertAdapterContainer_upsert.insertList_4ezy5m$(t)},D_.prototype.insertWithReplace_2nhbaz$=function(t){this._insertAdapterContainer_upsert.insert_11rb$(t)},D_.prototype.insert_11rb$=function(t){return this._insertAdapterContainer_.insertAndReturnId_11rb$(t)},M_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},M_.prototype=Object.create(N.prototype),M_.prototype.constructor=M_,M_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterContainer_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},D_.prototype.insertAsync=function(t,e,n){var i=new M_(this,t,e);return n?i:i.doResume(null)},D_.prototype.insertList_4ezy5m$=function(t){this._insertAdapterContainer_.insertList_4ezy5m$(t)},D_.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE Container SET cntLocalCsn = ?, cntMasterCsn = ?, cntLastModBy = ?, cntLct = ?, fileSize = ?, containerContentEntryUid = ?, cntLastModified = ?, mimeType = ?, remarks = ?, mobileOptimized = ?, cntNumEntries = ? WHERE containerUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.cntLocalCsn),t.setLong_6svq3l$(2,i.cntMasterCsn),t.setInt_vux9f0$(3,i.cntLastModBy),t.setLong_6svq3l$(4,i.cntLct),t.setLong_6svq3l$(5,i.fileSize),t.setLong_6svq3l$(6,i.containerContentEntryUid),t.setLong_6svq3l$(7,i.cntLastModified),t.setString_vqvrqt$(8,i.mimeType),t.setString_vqvrqt$(9,i.remarks),t.setBoolean_fzusl$(10,i.mobileOptimized),t.setInt_vux9f0$(11,i.cntNumEntries),t.setLong_6svq3l$(12,i.containerUid),t.executeUpdate()}return t.getConnection().commit(),V}))},D_.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE Container SET cntLocalCsn = ?, cntMasterCsn = ?, cntLastModBy = ?, cntLct = ?, fileSize = ?, containerContentEntryUid = ?, cntLastModified = ?, mimeType = ?, remarks = ?, mobileOptimized = ?, cntNumEntries = ? WHERE containerUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.cntLocalCsn),t.setLong_6svq3l$(2,e.cntMasterCsn),t.setInt_vux9f0$(3,e.cntLastModBy),t.setLong_6svq3l$(4,e.cntLct),t.setLong_6svq3l$(5,e.fileSize),t.setLong_6svq3l$(6,e.containerContentEntryUid),t.setLong_6svq3l$(7,e.cntLastModified),t.setString_vqvrqt$(8,e.mimeType),t.setString_vqvrqt$(9,e.remarks),t.setBoolean_fzusl$(10,e.mobileOptimized),t.setInt_vux9f0$(11,e.cntNumEntries),t.setLong_6svq3l$(12,e.containerUid),t.executeUpdate()}))},k_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},k_.prototype=Object.create(N.prototype),k_.prototype.constructor=k_,k_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},G_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},G_.prototype=Object.create(N.prototype),G_.prototype.constructor=G_,G_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ContainerReplicate(containerPk, containerDestination)\n | SELECT DISTINCT Container.containerUid AS containerPk,\n | ? AS containerDestination\n | FROM Container\n | WHERE Container.cntLct != COALESCE(\n | (SELECT containerVersionId\n | FROM ContainerReplicate\n | WHERE containerPk = Container.containerUid\n | AND containerDestination = ?), 0) \n | /*psql ON CONFLICT(containerPk, containerDestination) DO UPDATE\n | SET containerPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ContainerReplicate(containerPk, containerDestination)\n | SELECT DISTINCT Container.containerUid AS containerPk,\n | ? AS containerDestination\n | FROM Container\n | WHERE Container.cntLct != COALESCE(\n | (SELECT containerVersionId\n | FROM ContainerReplicate\n | WHERE containerPk = Container.containerUid\n | AND containerDestination = ?), 0) \n | ON CONFLICT(containerPk, containerDestination) DO UPDATE\n | SET containerPending = true\n | \n | \n |")),j_(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},D_.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new G_(this,t,e);return n?i:i.doResume(null)},q_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},q_.prototype=Object.create(N.prototype),q_.prototype.constructor=q_,q_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},B_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},B_.prototype=Object.create(N.prototype),B_.prototype.constructor=B_,B_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ContainerReplicate(containerPk, containerDestination)\n | SELECT DISTINCT Container.containerUid AS containerUid,\n | UserSession.usClientNodeId AS containerDestination\n | FROM ChangeLog\n | JOIN Container\n | ON ChangeLog.chTableId = 51\n | AND ChangeLog.chEntityPk = Container.containerUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND Container.cntLct != COALESCE(\n | (SELECT containerVersionId\n | FROM ContainerReplicate\n | WHERE containerPk = Container.containerUid\n | AND containerDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(containerPk, containerDestination) DO UPDATE\n | SET containerPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ContainerReplicate(containerPk, containerDestination)\n | SELECT DISTINCT Container.containerUid AS containerUid,\n | UserSession.usClientNodeId AS containerDestination\n | FROM ChangeLog\n | JOIN Container\n | ON ChangeLog.chTableId = 51\n | AND ChangeLog.chEntityPk = Container.containerUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND Container.cntLct != COALESCE(\n | (SELECT containerVersionId\n | FROM ContainerReplicate\n | WHERE containerPk = Container.containerUid\n | AND containerDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(containerPk, containerDestination) DO UPDATE\n | SET containerPending = true\n | \n | \n |")),F_,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},D_.prototype.replicateOnChange=function(t,e){var n=new B_(this,t);return e?n:n.doResume(null)},H_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},H_.prototype=Object.create(N.prototype),H_.prototype.constructor=H_,H_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$contentEntry),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,W_);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},D_.prototype.getMostRecentDownloadedContainerForContentEntryAsync_s8cxhz$=function(t,e){return ct(this._db,new st("Select Container.* FROM Container WHERE Container.containerContentEntryUid = ? ORDER BY Container.cntLastModified DESC LIMIT 1"),(n=t,function(t,e,i){var o=new H_(n,t,e);return i?o:o.doResume(null)}),e);var n},D_.prototype.getMostRecentContainerForContentEntry_s8cxhz$=function(t){return ht(this._db,new st(S("\n |\n | SELECT Container.*\n | \n | FROM Container\n | WHERE Container.containerContentEntryUid = ?\n | AND \n | Container.fileSize > 0\n | \n | ORDER BY Container.cntLastModified DESC \n | LIMIT 1\n | \n | \n ")),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),V_)}));var e},D_.prototype.findByUid_s8cxhz$=function(t){return ht(this._db,new st("SELECT * FROM Container WHERE containerUid = ?"),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),K_)}));var e},J_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},J_.prototype=Object.create(N.prototype),J_.prototype.constructor=J_,J_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,X_);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},D_.prototype.findSizeByUid_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT(COALESCE((\n | SELECT fileSize\n | FROM Container\n | WHERE containerUid = ?), 0))\n | \n ")),(n=t,function(t,e,i){var o=new J_(n,t,e);return i?o:o.doResume(null)}),e);var n},Q_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Q_.prototype=Object.create(N.prototype),Q_.prototype.constructor=Q_,Q_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setArray_wqp8hw$(1,yt(this.local$_stmt.getConnection(),"BIGINT",q(this.local$closure$contentEntries))),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Y_);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},D_.prototype.findRecentContainerToBeMonitoredWithEntriesUid_gox9k8$=function(t,e){return ct(this._db,new st("SELECT recent.* FROM Container recent LEFT JOIN Container old ON (recent.containerContentEntryUid = old.containerContentEntryUid AND recent.cntLastModified < old.cntLastModified) WHERE old.containerUid IS NULL AND recent.containerContentEntryUid IN (?)",!0),(n=t,function(t,e,i){var o=new Q_(n,t,e);return i?o:o.doResume(null)}),e);var n},tm.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},tm.prototype=Object.create(N.prototype),tm.prototype.constructor=tm,tm.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$contentEntryUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Z_);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},D_.prototype.findContainersForContentEntryUid_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |Select Container.* FROM Container \n | WHERE Container.containerContentEntryUid = ?\n | ORDER BY Container.cntLastModified DESC\n ")),(n=t,function(t,e,i){var o=new tm(n,t,e);return i?o:o.doResume(null)}),e);var n},nm.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},nm.prototype=Object.create(N.prototype),nm.prototype.constructor=nm,nm.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$contentEntryUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,em);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},om.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},om.prototype=Object.create(N.prototype),om.prototype.constructor=om,om.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ContainerDao_JdbcKt._db,new st(S("\n |\n | SELECT EXISTS(SELECT 1\n | FROM Container \n | WHERE Container.containerContentEntryUid = ?\n | AND NOT EXISTS (SELECT ContainerEntry.ceUid \n | FROM ContainerEntry\n | WHERE ContainerEntry.ceContainerUid = Container.containerUid) \n | ORDER BY cntLastModified DESC LIMIT 1)\n | \n ")),im(this.local$closure$contentEntryUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},D_.prototype.hasContainerWithFilesToDownload_s8cxhz$=function(t){return new ft(this._db,p(["Container","ContainerEntry"]),(e=this,n=t,function(t,i){var o=new om(e,n,t);return i?o:o.doResume(null)}));var e,n},sm.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},sm.prototype=Object.create(N.prototype),sm.prototype.constructor=sm,sm.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$contentEntryUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,rm);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},D_.prototype.findContainerWithFilesByContentEntryUid_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT Container.*\n | FROM Container\n | WHERE Container.containerContentEntryUid = ?\n | AND EXISTS (SELECT ContainerEntry.ceUid \n | FROM ContainerEntry\n | WHERE ContainerEntry.ceContainerUid = Container.containerUid) \n | ORDER BY Container.cntLastModified DESC LIMIT 1\n | \n ")),(n=t,function(t,e,i){var o=new sm(n,t,e);return i?o:o.doResume(null)}),e);var n},D_.prototype.findAllPublikContainers=function(){return ht(this._db,new st("SELECT Container.* FROM Container LEFT JOIN ContentEntry ON ContentEntry.contentEntryUid = containerContentEntryUid WHERE ContentEntry.publik"),cm)},um.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},um.prototype=Object.create(N.prototype),um.prototype.constructor=um,um.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$containerUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,lm);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},D_.prototype.findByUidAsync_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT * From Container WHERE Container.containerUid = ? LIMIT 1"),(n=t,function(t,e,i){var o=new um(n,t,e);return i?o:o.doResume(null)}),e);var n},hm.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},hm.prototype=Object.create(N.prototype),hm.prototype.constructor=hm,hm.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$changeTime),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$containerUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},pm.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},pm.prototype=Object.create(N.prototype),pm.prototype.constructor=pm,pm.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | UPDATE Container \n | SET cntNumEntries = COALESCE(\n | (SELECT COUNT(*) \n | FROM ContainerEntry \n | WHERE ceContainerUid = Container.containerUid), 0),\n | fileSize = COALESCE(\n | (SELECT SUM(ContainerEntryFile.ceCompressedSize) AS totalSize \n | FROM ContainerEntry\n | JOIN ContainerEntryFile ON ContainerEntry.ceCefUid = ContainerEntryFile.cefUid\n | WHERE ContainerEntry.ceContainerUid = Container.containerUid), 0),\n | cntLct = ? \n | \n | WHERE containerUid = ?\n | \n ")),dm(this.local$changeTime,this.local$containerUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},D_.prototype.updateContainerSizeAndNumEntriesAsync_3pjtqy$=function(t,e,n,i){var o=new pm(this,t,e,n);return i?o:o.doResume(null)},D_.prototype.findLocalAvailabilityByUid_s8cxhz$=function(t){return ht(this._db,new st("SELECT Container.containerUid FROM Container WHERE Container.containerUid = ? AND (SELECT COUNT(*) FROM ContainerEntry WHERE ceContainerUid = Container.containerUid) = Container.cntNumEntries"),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),_m)}));var e},D_.prototype.findAllWithId_s8cxhz$=function(t){return ht(this._db,new st("SELECT * FROM Container WHERE Container.containerUid = ?"),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),mm)}));var e},D_.prototype.findKhanContainers=function(){return ht(this._db,new st("SELECT Container.*, ContentEntry.entryId, ContentEntry.sourceUrl FROM Container LEFT JOIN ContentEntry ON Container.containerContentEntryUid = ContentEntry.contentEntryUid WHERE ContentEntry.publisher LIKE '%Khan Academy%' AND Container.mimeType = 'video/mp4'"),gm)},D_.prototype.deleteByUid_s8cxhz$=function(t){var e;ht(this._db,new st("DELETE FROM Container WHERE containerUid = ?"),(e=t,function(t){return t.setLong_6svq3l$(1,e),t.executeUpdate()}))},D_.prototype.updateMimeType_4wgjuj$=function(t,e){var n,i;ht(this._db,new st("UPDATE Container SET mimeType = ? WHERE Container.containerUid = ?"),(n=t,i=e,function(t){return t.setString_vqvrqt$(1,n),t.setLong_6svq3l$(2,i),t.executeUpdate()}))},Em.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Em.prototype=Object.create(N.prototype),Em.prototype.constructor=Em,Em.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$contentEntryUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,$m);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},D_.prototype.getMostRecentContainerForContentEntryAsync_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT Container.*\n | \n | FROM Container\n | WHERE Container.containerContentEntryUid = ?\n | AND \n | Container.fileSize > 0\n | \n | ORDER BY Container.cntLastModified DESC \n | LIMIT 1\n | \n | \n ")),(n=t,function(t,e,i){var o=new Em(n,t,e);return i?o:o.doResume(null)}),e);var n},bm.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},bm.prototype=Object.create(N.prototype),bm.prototype.constructor=bm,bm.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$contentEntryUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,ym);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},D_.prototype.getMostRecentContainerUidForContentEntryAsync_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT COALESCE((\n | SELECT containerUid \n | \n | FROM Container\n | WHERE Container.containerContentEntryUid = ?\n | AND \n | Container.fileSize > 0\n | \n | ORDER BY Container.cntLastModified DESC \n | LIMIT 1\n | ), 0)\n | \n ")),(n=t,function(t,e,i){var o=new bm(n,t,e);return i?o:o.doResume(null)}),e);var n},vm.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},vm.prototype=Object.create(N.prototype),vm.prototype.constructor=vm,vm.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$contentEntryUid),this.local$_stmt.setBoolean_fzusl$(2,this.local$closure$downloadRequired),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Sm);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},D_.prototype.getMostRecentAvailableContainerUidAndMimeType_2gd3um$=function(t,e,n){return ct(this._db,new st(S("\n |\n | SELECT Container.containerUid, Container.mimeType \n | FROM Container\n | WHERE Container.containerContentEntryUid = ?\n | AND \n | Container.fileSize > 0\n | \n | AND (CAST(? AS INTEGER) = 0\n | OR EXISTS (SELECT ContainerEntry.ceUid \n | FROM ContainerEntry\n | WHERE ContainerEntry.ceContainerUid = Container.containerUid))\n | ORDER BY Container.cntLastModified DESC \n | LIMIT 1\n | \n ")),(i=t,o=e,function(t,e,n){var r=new vm(i,o,t,e);return n?r:r.doResume(null)}),n);var i,o},Nm.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Nm.prototype=Object.create(N.prototype),Nm.prototype.constructor=Nm,Nm.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$containerUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Cm);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},D_.prototype.getContainerSizeByUid_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT COALESCE(\n | (SELECT fileSize\n | FROM Container\n | WHERE containerUid = ?), -1)\n | \n ")),(n=t,function(t,e,i){var o=new Nm(n,t,e);return i?o:o.doResume(null)}),e);var n},Tm.prototype.makeSql_6taknv$=function(t){return"INSERT INTO Container (containerUid, cntLocalCsn, cntMasterCsn, cntLastModBy, cntLct, fileSize, containerContentEntryUid, cntLastModified, mimeType, remarks, mobileOptimized, cntNumEntries) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},Tm.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.containerUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.containerUid),t.setLong_6svq3l$(2,e.cntLocalCsn),t.setLong_6svq3l$(3,e.cntMasterCsn),t.setInt_vux9f0$(4,e.cntLastModBy),t.setLong_6svq3l$(5,e.cntLct),t.setLong_6svq3l$(6,e.fileSize),t.setLong_6svq3l$(7,e.containerContentEntryUid),t.setLong_6svq3l$(8,e.cntLastModified),t.setString_vqvrqt$(9,e.mimeType),t.setString_vqvrqt$(10,e.remarks),t.setBoolean_fzusl$(11,e.mobileOptimized),t.setInt_vux9f0$(12,e.cntNumEntries)},Tm.$metadata$={kind:c,interfaces:[pt]},Lm.prototype.makeSql_6taknv$=function(t){return"INSERT OR REPLACE INTO Container (containerUid, cntLocalCsn, cntMasterCsn, cntLastModBy, cntLct, fileSize, containerContentEntryUid, cntLastModified, mimeType, remarks, mobileOptimized, cntNumEntries) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},Lm.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.containerUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.containerUid),t.setLong_6svq3l$(2,e.cntLocalCsn),t.setLong_6svq3l$(3,e.cntMasterCsn),t.setInt_vux9f0$(4,e.cntLastModBy),t.setLong_6svq3l$(5,e.cntLct),t.setLong_6svq3l$(6,e.fileSize),t.setLong_6svq3l$(7,e.containerContentEntryUid),t.setLong_6svq3l$(8,e.cntLastModified),t.setString_vqvrqt$(9,e.mimeType),t.setString_vqvrqt$(10,e.remarks),t.setBoolean_fzusl$(11,e.mobileOptimized),t.setInt_vux9f0$(12,e.cntNumEntries)},Lm.$metadata$={kind:c,interfaces:[pt]},D_.$metadata$={kind:c,simpleName:"ContainerDao_JdbcKt",interfaces:[U_]},wm.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},wm.prototype=Object.create(N.prototype),wm.prototype.constructor=wm,wm.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zm.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new wm(this,t,e);return n?i:i.doResume(null)},Om.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Om.prototype=Object.create(N.prototype),Om.prototype.constructor=Om,Om.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zm.prototype.replicateOnChange=function(t,e){var n=new Om(this,t);return e?n:n.doResume(null)},Rm.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Rm.prototype=Object.create(N.prototype),Rm.prototype.constructor=Rm,Rm.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_pkManager=_t(w(this.$this._db_0)),this.local$_generatedPks=F(),this.local$$receiver=this.local$containerList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$$receiver.hasNext()){this.state_0=5;continue}if(this.local$element=this.local$$receiver.next(),O(this.local$element.containerUid,X)){if(this.state_0=3,this.result_0=this.local$_pkManager.nextIdAsync_za3lpa$(51,this),this.result_0===C)return C;continue}this.state_0=4;continue;case 3:var t=this.result_0;this.local$element.containerUid=t,this.local$_generatedPks.add_11rb$(t),this.state_0=4;continue;case 4:this.local$element.cntLct=J(),this.state_0=2;continue;case 5:if(this.state_0=6,this.result_0=this.$this._dao_0.insertListAsync_5ys87q$(this.local$containerList,this),this.result_0===C)return C;continue;case 6:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zm.prototype.insertListAsync_5ys87q$=function(t,e,n){var i=new Rm(this,t,e);return n?i:i.doResume(null)},zm.prototype.getMostRecentDownloadedContainerForContentEntryAsync_s8cxhz$=function(t,e){return this._dao_0.getMostRecentDownloadedContainerForContentEntryAsync_s8cxhz$(t,e)},zm.prototype.getMostRecentContainerForContentEntry_s8cxhz$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},zm.prototype.findByUid_s8cxhz$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},zm.prototype.findSizeByUid_s8cxhz$=function(t,e){return this._dao_0.findSizeByUid_s8cxhz$(t,e)},zm.prototype.findRecentContainerToBeMonitoredWithEntriesUid_gox9k8$=function(t,e){return this._dao_0.findRecentContainerToBeMonitoredWithEntriesUid_gox9k8$(t,e)},zm.prototype.findContainersForContentEntryUid_s8cxhz$=function(t,e){return this._dao_0.findContainersForContentEntryUid_s8cxhz$(t,e)},zm.prototype.hasContainerWithFilesToDownload_s8cxhz$=function(t){return this._dao_0.hasContainerWithFilesToDownload_s8cxhz$(t)},zm.prototype.findContainerWithFilesByContentEntryUid_s8cxhz$=function(t,e){return this._dao_0.findContainerWithFilesByContentEntryUid_s8cxhz$(t,e)},zm.prototype.findAllPublikContainers=function(){throw v("Synchronous db access is NOT possible on Javascript!")},zm.prototype.findByUidAsync_s8cxhz$=function(t,e){return this._dao_0.findByUidAsync_s8cxhz$(t,e)},Am.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Am.prototype=Object.create(N.prototype),Am.prototype.constructor=Am,Am.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.updateContainerSizeAndNumEntriesAsync_3pjtqy$(this.local$containerUid,this.local$changeTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zm.prototype.updateContainerSizeAndNumEntriesAsync_3pjtqy$=function(t,e,n,i){var o=new Am(this,t,e,n);return i?o:o.doResume(null)},zm.prototype.findLocalAvailabilityByUid_s8cxhz$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},zm.prototype.findAllWithId_s8cxhz$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},zm.prototype.findKhanContainers=function(){throw v("Synchronous db access is NOT possible on Javascript!")},zm.prototype.deleteByUid_s8cxhz$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},zm.prototype.updateMimeType_4wgjuj$=function(t,e){throw v("Synchronous db access is NOT possible on Javascript!")},zm.prototype.getMostRecentContainerForContentEntryAsync_s8cxhz$=function(t,e){return this._dao_0.getMostRecentContainerForContentEntryAsync_s8cxhz$(t,e)},zm.prototype.getMostRecentContainerUidForContentEntryAsync_s8cxhz$=function(t,e){return this._dao_0.getMostRecentContainerUidForContentEntryAsync_s8cxhz$(t,e)},zm.prototype.getMostRecentAvailableContainerUidAndMimeType_2gd3um$=function(t,e,n){return this._dao_0.getMostRecentAvailableContainerUidAndMimeType_2gd3um$(t,e,n)},zm.prototype.replaceList_5ys87q$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},zm.prototype.insertWithReplace_2nhbaz$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},zm.prototype.getContainerSizeByUid_s8cxhz$=function(t,e){return this._dao_0.getContainerSizeByUid_s8cxhz$(t,e)},zm.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},xm.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},xm.prototype=Object.create(N.prototype),xm.prototype.constructor=xm,xm.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.containerUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(51,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.containerUid=e,this.state_0=3;continue;case 3:if(this.local$entity.cntLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.containerUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zm.prototype.insertAsync=function(t,e,n){var i=new xm(this,t,e);return n?i:i.doResume(null)},zm.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},zm.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},zm.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},zm.$metadata$={kind:c,simpleName:"ContainerDao_ReplicateWrapper",interfaces:[U_]},Um.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Um.prototype=Object.create(N.prototype),Um.prototype.constructor=Um,Um.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Im.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new Um(this,t,e);return n?i:i.doResume(null)},Dm.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Dm.prototype=Object.create(N.prototype),Dm.prototype.constructor=Dm,Dm.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Im.prototype.replicateOnChange=function(t,e){var n=new Dm(this,t);return e?n:n.doResume(null)},Pm.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Pm.prototype=Object.create(N.prototype),Pm.prototype.constructor=Pm,Pm.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertListAsync_5ys87q$(this.local$containerList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Im.prototype.insertListAsync_5ys87q$=function(t,e,n){var i=new Pm(this,t,e);return n?i:i.doResume(null)},Mm.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Mm.prototype=Object.create(N.prototype),Mm.prototype.constructor=Mm,Mm.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.getMostRecentDownloadedContainerForContentEntryAsync_s8cxhz$(this.local$contentEntry,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Im.prototype.getMostRecentDownloadedContainerForContentEntryAsync_s8cxhz$=function(t,e,n){var i=new Mm(this,t,e);return n?i:i.doResume(null)},Im.prototype.getMostRecentContainerForContentEntry_s8cxhz$=function(t){return this._dao.getMostRecentContainerForContentEntry_s8cxhz$(t)},Im.prototype.findByUid_s8cxhz$=function(t){return this._dao.findByUid_s8cxhz$(t)},km.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},km.prototype=Object.create(N.prototype),km.prototype.constructor=km,km.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findSizeByUid_s8cxhz$(this.local$uid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Im.prototype.findSizeByUid_s8cxhz$=function(t,e,n){var i=new km(this,t,e);return n?i:i.doResume(null)},jm.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},jm.prototype=Object.create(N.prototype),jm.prototype.constructor=jm,jm.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findRecentContainerToBeMonitoredWithEntriesUid_gox9k8$(this.local$contentEntries,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Im.prototype.findRecentContainerToBeMonitoredWithEntriesUid_gox9k8$=function(t,e,n){var i=new jm(this,t,e);return n?i:i.doResume(null)},Gm.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Gm.prototype=Object.create(N.prototype),Gm.prototype.constructor=Gm,Gm.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findContainersForContentEntryUid_s8cxhz$(this.local$contentEntryUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Im.prototype.findContainersForContentEntryUid_s8cxhz$=function(t,e,n){var i=new Gm(this,t,e);return n?i:i.doResume(null)},Im.prototype.hasContainerWithFilesToDownload_s8cxhz$=function(t){return this._dao.hasContainerWithFilesToDownload_s8cxhz$(t)},qm.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},qm.prototype=Object.create(N.prototype),qm.prototype.constructor=qm,qm.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findContainerWithFilesByContentEntryUid_s8cxhz$(this.local$contentEntryUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Im.prototype.findContainerWithFilesByContentEntryUid_s8cxhz$=function(t,e,n){var i=new qm(this,t,e);return n?i:i.doResume(null)},Im.prototype.findAllPublikContainers=function(){return this._dao.findAllPublikContainers()},Fm.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Fm.prototype=Object.create(N.prototype),Fm.prototype.constructor=Fm,Fm.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByUidAsync_s8cxhz$(this.local$containerUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Im.prototype.findByUidAsync_s8cxhz$=function(t,e,n){var i=new Fm(this,t,e);return n?i:i.doResume(null)},Bm.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Bm.prototype=Object.create(N.prototype),Bm.prototype.constructor=Bm,Bm.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateContainerSizeAndNumEntriesAsync_3pjtqy$(this.local$containerUid,this.local$changeTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Im.prototype.updateContainerSizeAndNumEntriesAsync_3pjtqy$=function(t,e,n,i){var o=new Bm(this,t,e,n);return i?o:o.doResume(null)},Im.prototype.findLocalAvailabilityByUid_s8cxhz$=function(t){return this._dao.findLocalAvailabilityByUid_s8cxhz$(t)},Im.prototype.findAllWithId_s8cxhz$=function(t){return this._dao.findAllWithId_s8cxhz$(t)},Im.prototype.findKhanContainers=function(){return this._dao.findKhanContainers()},Im.prototype.deleteByUid_s8cxhz$=function(t){this._dao.deleteByUid_s8cxhz$(t)},Im.prototype.updateMimeType_4wgjuj$=function(t,e){this._dao.updateMimeType_4wgjuj$(t,e)},Wm.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Wm.prototype=Object.create(N.prototype),Wm.prototype.constructor=Wm,Wm.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.getMostRecentContainerForContentEntryAsync_s8cxhz$(this.local$contentEntryUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Im.prototype.getMostRecentContainerForContentEntryAsync_s8cxhz$=function(t,e,n){var i=new Wm(this,t,e);return n?i:i.doResume(null)},Hm.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Hm.prototype=Object.create(N.prototype),Hm.prototype.constructor=Hm,Hm.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.getMostRecentContainerUidForContentEntryAsync_s8cxhz$(this.local$contentEntryUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Im.prototype.getMostRecentContainerUidForContentEntryAsync_s8cxhz$=function(t,e,n){var i=new Hm(this,t,e);return n?i:i.doResume(null)},Vm.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Vm.prototype=Object.create(N.prototype),Vm.prototype.constructor=Vm,Vm.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.getMostRecentAvailableContainerUidAndMimeType_2gd3um$(this.local$contentEntryUid,this.local$downloadRequired,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Im.prototype.getMostRecentAvailableContainerUidAndMimeType_2gd3um$=function(t,e,n,i){var o=new Vm(this,t,e,n);return i?o:o.doResume(null)},Im.prototype.replaceList_5ys87q$=function(t){this._dao.replaceList_5ys87q$(t)},Im.prototype.insertWithReplace_2nhbaz$=function(t){this._dao.insertWithReplace_2nhbaz$(t)},Km.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Km.prototype=Object.create(N.prototype),Km.prototype.constructor=Km,Km.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.getContainerSizeByUid_s8cxhz$(this.local$containerUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Im.prototype.getContainerSizeByUid_s8cxhz$=function(t,e,n){var i=new Km(this,t,e);return n?i:i.doResume(null)},Im.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},Xm.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Xm.prototype=Object.create(N.prototype),Xm.prototype.constructor=Xm,Xm.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Im.prototype.insertAsync=function(t,e,n){var i=new Xm(this,t,e);return n?i:i.doResume(null)},Im.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},Im.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},Im.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},Im.$metadata$={kind:c,simpleName:"ContainerDao_Repo",interfaces:[U_]},Jm.$metadata$={kind:c,simpleName:"ContainerETagDao",interfaces:[X6]},Ym.prototype.insert_11rb$=function(t){return this._insertAdapterContainerETag_.insertAndReturnId_11rb$(t)},Qm.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Qm.prototype=Object.create(N.prototype),Qm.prototype.constructor=Qm,Qm.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterContainerETag_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ym.prototype.insertAsync=function(t,e,n){var i=new Qm(this,t,e);return n?i:i.doResume(null)},Ym.prototype.insertList_4ezy5m$=function(t){this._insertAdapterContainerETag_.insertList_4ezy5m$(t)},Ym.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE ContainerETag SET cetag = ? WHERE ceContainerUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setString_vqvrqt$(1,i.cetag),t.setLong_6svq3l$(2,i.ceContainerUid),t.executeUpdate()}return t.getConnection().commit(),V}))},Ym.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE ContainerETag SET cetag = ? WHERE ceContainerUid = ?",(e=t,function(t){return t.setString_vqvrqt$(1,e.cetag),t.setLong_6svq3l$(2,e.ceContainerUid),t.executeUpdate()}))},Ym.prototype.getEtagOfContainer_s8cxhz$=function(t){return ht(this._db,new st("SELECT cetag FROM ContainerETag WHERE ceContainerUid = ?"),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),Zm)}));var e},tf.prototype.makeSql_6taknv$=function(t){return"INSERT INTO ContainerETag (ceContainerUid, cetag) VALUES(?, ?)"},tf.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){t.setLong_6svq3l$(1,e.ceContainerUid),t.setString_vqvrqt$(2,e.cetag)},tf.$metadata$={kind:c,interfaces:[pt]},Ym.$metadata$={kind:c,simpleName:"ContainerETagDao_JdbcKt",interfaces:[Jm]},ef.$metadata$={kind:c,simpleName:"ContainerEntryDao",interfaces:[X6]},of.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},of.prototype=Object.create(N.prototype),of.prototype.constructor=of,of.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterContainerEntry_.insertListAsync_4ezy5m$(this.local$containerEntryList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},nf.prototype.insertListAsync_oe4mvo$=function(t,e,n){var i=new of(this,t,e);return n?i:i.doResume(null)},nf.prototype.insert_11rb$=function(t){return this._insertAdapterContainerEntry_.insertAndReturnId_11rb$(t)},rf.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},rf.prototype=Object.create(N.prototype),rf.prototype.constructor=rf,rf.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterContainerEntry_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},nf.prototype.insertAsync=function(t,e,n){var i=new rf(this,t,e);return n?i:i.doResume(null)},nf.prototype.insertList_4ezy5m$=function(t){this._insertAdapterContainerEntry_.insertList_4ezy5m$(t)},nf.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE ContainerEntry SET ceContainerUid = ?, cePath = ?, ceCefUid = ? WHERE ceUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.ceContainerUid),t.setString_vqvrqt$(2,i.cePath),t.setLong_6svq3l$(3,i.ceCefUid),t.setLong_6svq3l$(4,i.ceUid),t.executeUpdate()}return t.getConnection().commit(),V}))},nf.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE ContainerEntry SET ceContainerUid = ?, cePath = ?, ceCefUid = ? WHERE ceUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.ceContainerUid),t.setString_vqvrqt$(2,e.cePath),t.setLong_6svq3l$(3,e.ceCefUid),t.setLong_6svq3l$(4,e.ceUid),t.executeUpdate()}))},nf.prototype.deleteList_oe4mvo$=function(t){var e,n;rt(this._db,"DELETE FROM ContainerEntry WHERE ceUid = ?",(e=t,n={v:0},function(t){var i;for(t.getConnection().setAutoCommit_6taknv$(!1),i=e.iterator();i.hasNext();){var o=i.next();t.setLong_6svq3l$(1,o.ceUid),n.v=n.v+t.executeUpdate()|0}return t.getConnection().commit(),V}))},nf.prototype.findByContainer_s8cxhz$=function(t){return ht(this._db,new st("SELECT ContainerEntry.*, ContainerEntryFile.* FROM ContainerEntry LEFT JOIN ContainerEntryFile ON ContainerEntry.ceCefUid = ContainerEntryFile.cefUid WHERE ContainerEntry.ceContainerUid = ?"),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),sf)}));var e},nf.prototype.findByPathInContainer_a4hdmt$=function(t,e){return ht(this._db,new st("SELECT ContainerEntry.*, ContainerEntryFile.* FROM ContainerEntry LEFT JOIN ContainerEntryFile ON ContainerEntry.ceCefUid = ContainerEntryFile.cefUid WHERE ContainerEntry.ceContainerUid = ? AND ContainerEntry.cePath = ?"),(n=t,i=e,function(t){return t.setLong_6svq3l$(1,n),t.setString_vqvrqt$(2,i),ut(t.executeQuery(),af)}));var n,i},nf.prototype.findByContainerWithMd5_s8cxhz$=function(t){return ht(this._db,new st("SELECT ContainerEntry.*, ContainerEntryFile.cefMd5 AS cefMd5 FROM ContainerEntry LEFT JOIN ContainerEntryFile ON ContainerEntry.ceCefUid = ContainerEntryFile.cefUid WHERE ContainerEntry.ceContainerUid = ?"),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),cf)}));var e},uf.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},uf.prototype=Object.create(N.prototype),uf.prototype.constructor=uf,uf.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$containerUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,lf);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},nf.prototype.findByContainerAsync_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT ContainerEntry.*, ContainerEntryFile.* FROM ContainerEntry LEFT JOIN ContainerEntryFile ON ContainerEntry.ceCefUid = ContainerEntryFile.cefUid WHERE ContainerEntry.ceContainerUid = ?"),(n=t,function(t,e,i){var o=new uf(n,t,e);return i?o:o.doResume(null)}),e);var n},nf.prototype.deleteByContainerUid_s8cxhz$=function(t){var e;ht(this._db,new st("DELETE FROM ContainerEntry WHERE ceContainerUid = ?"),(e=t,function(t){return t.setLong_6svq3l$(1,e),t.executeUpdate()}))},hf.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},hf.prototype=Object.create(N.prototype),hf.prototype.constructor=hf,hf.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$jobId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},pf.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},pf.prototype=Object.create(N.prototype),pf.prototype.constructor=pf,pf.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | DELETE FROM ContainerEntry \n | WHERE ceContainerUid \n | IN (SELECT cjiContainerUid \n | FROM ContentJobItem\n | JOIN ContentJob \n | ON ContentJobItem.cjiJobUid = ContentJob.cjUid\n | WHERE ContentJob.cjUid = ?)\n ")),df(this.local$jobId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},nf.prototype.deleteContainerEntriesCreatedByJobs_s8cxhz$=function(t,e,n){var i=new pf(this,t,e);return n?i:i.doResume(null)},nf.prototype.deleteByContentEntryUid_s8cxhz$=function(t){var e;ht(this._db,new st(S("\n |\n | DELETE FROM ContainerEntry\n | WHERE ceContainerUid\n | IN (SELECT containerUid\n | FROM Container\n | WHERE containerContentEntryUid = ?) \n | \n ")),(e=t,function(t){return t.setLong_6svq3l$(1,e),t.executeUpdate()}))},_f.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_f.prototype=Object.create(N.prototype),_f.prototype.constructor=_f,_f.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$containerUid),this.local$_stmt.setString_vqvrqt$(2,this.local$closure$path),this.local$_stmt.setString_vqvrqt$(3,this.local$closure$md5),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ff.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ff.prototype=Object.create(N.prototype),ff.prototype.constructor=ff,ff.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | INSERT INTO ContainerEntry(ceContainerUid, cePath, ceCefUid) \n | SELECT ? AS ceContainerUid, ? AS cePath, \n | (SELECT COALESCE(\n | (SELECT cefUid \n | FROM ContainerEntryFile\n | WHERE cefMd5 = ?\n | LIMIT 1), 0)) \n | \n ")),mf(this.local$containerUid,this.local$path,this.local$md5),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},nf.prototype.insertWithMd5SumsAsync_r69jt9$=function(t,e,n,i,o){var r=new ff(this,t,e,n,i);return o?r:r.doResume(null)},gf.prototype.makeSql_6taknv$=function(t){return"INSERT INTO ContainerEntry (ceUid, ceContainerUid, cePath, ceCefUid) VALUES(?, ?, ?, ?)"},gf.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.ceUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.ceUid),t.setLong_6svq3l$(2,e.ceContainerUid),t.setString_vqvrqt$(3,e.cePath),t.setLong_6svq3l$(4,e.ceCefUid)},gf.$metadata$={kind:c,interfaces:[pt]},nf.$metadata$={kind:c,simpleName:"ContainerEntryDao_JdbcKt",interfaces:[ef]},$f.$metadata$={kind:c,simpleName:"ContainerEntryFileDao",interfaces:[X6]},yf.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},yf.prototype=Object.create(N.prototype),yf.prototype.constructor=yf,yf.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterContainerEntryFile_.insertListAsync_4ezy5m$(this.local$list,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ef.prototype.insertListAsync_aufyg$=function(t,e,n){var i=new yf(this,t,e);return n?i:i.doResume(null)},Ef.prototype.insert_11rb$=function(t){return this._insertAdapterContainerEntryFile_.insertAndReturnId_11rb$(t)},bf.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},bf.prototype=Object.create(N.prototype),bf.prototype.constructor=bf,bf.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterContainerEntryFile_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ef.prototype.insertAsync=function(t,e,n){var i=new bf(this,t,e);return n?i:i.doResume(null)},Ef.prototype.insertList_4ezy5m$=function(t){this._insertAdapterContainerEntryFile_.insertList_4ezy5m$(t)},Ef.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE ContainerEntryFile SET cefMd5 = ?, cefPath = ?, ceTotalSize = ?, ceCompressedSize = ?, compression = ?, lastModified = ? WHERE cefUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setString_vqvrqt$(1,i.cefMd5),t.setString_vqvrqt$(2,i.cefPath),t.setLong_6svq3l$(3,i.ceTotalSize),t.setLong_6svq3l$(4,i.ceCompressedSize),t.setInt_vux9f0$(5,i.compression),t.setLong_6svq3l$(6,i.lastModified),t.setLong_6svq3l$(7,i.cefUid),t.executeUpdate()}return t.getConnection().commit(),V}))},Ef.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE ContainerEntryFile SET cefMd5 = ?, cefPath = ?, ceTotalSize = ?, ceCompressedSize = ?, compression = ?, lastModified = ? WHERE cefUid = ?",(e=t,function(t){return t.setString_vqvrqt$(1,e.cefMd5),t.setString_vqvrqt$(2,e.cefPath),t.setLong_6svq3l$(3,e.ceTotalSize),t.setLong_6svq3l$(4,e.ceCompressedSize),t.setInt_vux9f0$(5,e.compression),t.setLong_6svq3l$(6,e.lastModified),t.setLong_6svq3l$(7,e.cefUid),t.executeUpdate()}))},Ef.prototype.deleteListOfEntryFiles_aufyg$=function(t){var e,n;rt(this._db,"DELETE FROM ContainerEntryFile WHERE cefUid = ?",(e=t,n={v:0},function(t){var i;for(t.getConnection().setAutoCommit_6taknv$(!1),i=e.iterator();i.hasNext();){var o=i.next();t.setLong_6svq3l$(1,o.cefUid),n.v=n.v+t.executeUpdate()|0}return t.getConnection().commit(),V}))},Ef.prototype.findEntriesByMd5Sums_mhpeer$=function(t){return ht(this._db,new st("SELECT ContainerEntryFile.* FROM ContainerEntryFile WHERE cefMd5 IN (?)",!0),(e=t,function(t){return t.setArray_wqp8hw$(1,yt(t.getConnection(),"TEXT",q(e))),ut(t.executeQuery(),Sf)}));var e},Cf.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Cf.prototype=Object.create(N.prototype),Cf.prototype.constructor=Cf,Cf.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setArray_wqp8hw$(1,yt(this.local$_stmt.getConnection(),"TEXT",q(this.local$closure$md5Sums))),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,vf);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ef.prototype.findEntriesByMd5SumsAsync_mhpeer$=function(t,e){return ct(this._db,new st("SELECT ContainerEntryFile.* FROM ContainerEntryFile WHERE cefMd5 IN (?)",!0),(n=t,function(t,e,i){var o=new Cf(n,t,e);return i?o:o.doResume(null)}),e);var n},Tf.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Tf.prototype=Object.create(N.prototype),Tf.prototype.constructor=Tf,Tf.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setArray_wqp8hw$(1,yt(this.local$_stmt.getConnection(),"TEXT",q(this.local$closure$md5Sums))),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Nf);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ef.prototype.findExistingMd5SumsByMd5SumsAsync_mhpeer$=function(t,e){return ct(this._db,new st("SELECT ContainerEntryFile.cefMd5 FROM ContainerEntryFile WHERE cefMd5 IN (?)",!0),(n=t,function(t,e,i){var o=new Tf(n,t,e);return i?o:o.doResume(null)}),e);var n},Ef.prototype.findEntriesByUids_gox9k8$=function(t){return ht(this._db,new st("SELECT ContainerEntryFile.* FROM ContainerEntryFile WHERE cefUid IN (?)",!0),(e=t,function(t){return t.setArray_wqp8hw$(1,yt(t.getConnection(),"BIGINT",q(e))),ut(t.executeQuery(),Lf)}));var e},Ef.prototype.updateFilePath_a4hdmt$=function(t,e){var n,i;ht(this._db,new st("UPDATE ContainerEntryFile SET cefPath = ? WHERE cefUid = ?"),(n=e,i=t,function(t){return t.setString_vqvrqt$(1,n),t.setLong_6svq3l$(2,i),t.executeUpdate()}))},Ef.prototype.findByUid_s8cxhz$=function(t){return ht(this._db,new st("SELECT * FROM ContainerEntryFile WHERE cefUid = ?"),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),zf)}));var e},Ef.prototype.sumContainerFileEntrySizes_s8cxhz$=function(t){return ht(this._db,new st("SELECT SUM(ContainerEntryFile.ceCompressedSize) FROM ContainerEntry JOIN ContainerEntryFile ON ContainerEntry.ceCefUid = ContainerEntryFile.cefUid WHERE ContainerEntry.ceContainerUid = ?"),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),wf)}));var e},Rf.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Rf.prototype=Object.create(N.prototype),Rf.prototype.constructor=Rf,Rf.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Of);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ef.prototype.getAllFilesForCompression=function(t){return ct(this._db,new st("SELECT * FROM ContainerEntryFile WHERE compression = 0 AND NOT EXISTS(SELECT * FROM ContainerEntry WHERE ceCefUid = ContainerEntryFile.cefUid AND (ContainerEntry.cePath LIKE '%.webm' OR ContainerEntry.cePath LIKE '%.mp4')) LIMIT 100"),Af,t)},Ef.prototype.updateCompressedFile_h639zw$=function(t,e,n){var i,o,r;ht(this._db,new st("UPDATE ContainerEntryFile SET compression = ?, ceCompressedSize = ? WHERE cefUid = ?"),(i=t,o=e,r=n,function(t){return t.setInt_vux9f0$(1,i),t.setLong_6svq3l$(2,o),t.setLong_6svq3l$(3,r),t.executeUpdate()}))},Ef.prototype.findZombieEntries=function(){return ht(this._db,new st(S("\n |SELECT ContainerEntryFile.* \n | FROM ContainerEntryFile \n | WHERE NOT EXISTS (SELECT ContainerEntry.ceCefUid \n | FROM ContainerEntry \n | WHERE ContainerEntryFile.cefUid = ContainerEntry.ceCefUid) \n | LIMIT 100\n ")),If)},Df.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Df.prototype=Object.create(N.prototype),Df.prototype.constructor=Df,Df.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setInt_vux9f0$(1,this.local$closure$limit),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Uf);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ef.prototype.findZombieUidsAndPath_za3lpa$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT cefUid, cefPath\n | FROM ContainerEntryFile\n | WHERE NOT EXISTS \n | (SELECT ContainerEntry.ceCefUid \n | FROM ContainerEntry \n | WHERE ContainerEntry.ceCefUid = ContainerEntryFile.cefUid \n | LIMIT 1)\n | LIMIT ? \n | \n ")),(n=t,function(t,e,i){var o=new Df(n,t,e);return i?o:o.doResume(null)}),e);var n},Pf.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Pf.prototype=Object.create(N.prototype),Pf.prototype.constructor=Pf,Pf.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setArray_wqp8hw$(1,yt(this.local$_stmt.getConnection(),"BIGINT",q(this.local$closure$uidList))),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kf.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},kf.prototype=Object.create(N.prototype),kf.prototype.constructor=kf,kf.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | DELETE FROM ContainerEntryFile\n | WHERE cefUid IN (?) \n | \n "),!0),Mf(this.local$uidList),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ef.prototype.deleteByUidList_gox9k8$=function(t,e,n){var i=new kf(this,t,e);return n?i:i.doResume(null)},Gf.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Gf.prototype=Object.create(N.prototype),Gf.prototype.constructor=Gf,Gf.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$md5Sum),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,jf);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ef.prototype.findEntryByMd5Sum_61zpoe$=function(t,e){return ct(this._db,new st("SELECT ContainerEntryFile.* FROM ContainerEntryFile WHERE cefMd5 = ?"),(n=t,function(t,e,i){var o=new Gf(n,t,e);return i?o:o.doResume(null)}),e);var n},qf.prototype.makeSql_6taknv$=function(t){return"INSERT INTO ContainerEntryFile (cefUid, cefMd5, cefPath, ceTotalSize, ceCompressedSize, compression, lastModified) VALUES(?, ?, ?, ?, ?, ?, ?)"},qf.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.cefUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.cefUid),t.setString_vqvrqt$(2,e.cefMd5),t.setString_vqvrqt$(3,e.cefPath),t.setLong_6svq3l$(4,e.ceTotalSize),t.setLong_6svq3l$(5,e.ceCompressedSize),t.setInt_vux9f0$(6,e.compression),t.setLong_6svq3l$(7,e.lastModified)},qf.$metadata$={kind:c,interfaces:[pt]},Ef.$metadata$={kind:c,simpleName:"ContainerEntryFileDao_JdbcKt",interfaces:[$f]},Ff.$metadata$={kind:c,simpleName:"ContainerImportJobDao",interfaces:[X6]},Bf.prototype.insert_11rb$=function(t){return this._insertAdapterContainerImportJob_.insertAndReturnId_11rb$(t)},Wf.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Wf.prototype=Object.create(N.prototype),Wf.prototype.constructor=Wf,Wf.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterContainerImportJob_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Bf.prototype.insertAsync=function(t,e,n){var i=new Wf(this,t,e);return n?i:i.doResume(null)},Bf.prototype.insertList_4ezy5m$=function(t){this._insertAdapterContainerImportJob_.insertList_4ezy5m$(t)},Bf.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE ContainerImportJob SET cijContainerUid = ?, cijUri = ?, cijImportMode = ?, cijContainerBaseDir = ?, cijContentEntryUid = ?, cijMimeType = ?, cijSessionId = ?, cijJobStatus = ?, cijBytesSoFar = ?, cijImportCompleted = ?, cijContentLength = ?, cijContainerEntryFileUids = ?, cijConversionParams = ? WHERE cijUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.cijContainerUid),t.setString_vqvrqt$(2,i.cijUri),t.setInt_vux9f0$(3,i.cijImportMode),t.setString_vqvrqt$(4,i.cijContainerBaseDir),t.setLong_6svq3l$(5,i.cijContentEntryUid),t.setString_vqvrqt$(6,i.cijMimeType),t.setString_vqvrqt$(7,i.cijSessionId),t.setInt_vux9f0$(8,i.cijJobStatus),t.setLong_6svq3l$(9,i.cijBytesSoFar),t.setBoolean_fzusl$(10,i.cijImportCompleted),t.setLong_6svq3l$(11,i.cijContentLength),t.setString_vqvrqt$(12,i.cijContainerEntryFileUids),t.setString_vqvrqt$(13,i.cijConversionParams),t.setLong_6svq3l$(14,i.cijUid),t.executeUpdate()}return t.getConnection().commit(),V}))},Bf.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE ContainerImportJob SET cijContainerUid = ?, cijUri = ?, cijImportMode = ?, cijContainerBaseDir = ?, cijContentEntryUid = ?, cijMimeType = ?, cijSessionId = ?, cijJobStatus = ?, cijBytesSoFar = ?, cijImportCompleted = ?, cijContentLength = ?, cijContainerEntryFileUids = ?, cijConversionParams = ? WHERE cijUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.cijContainerUid),t.setString_vqvrqt$(2,e.cijUri),t.setInt_vux9f0$(3,e.cijImportMode),t.setString_vqvrqt$(4,e.cijContainerBaseDir),t.setLong_6svq3l$(5,e.cijContentEntryUid),t.setString_vqvrqt$(6,e.cijMimeType),t.setString_vqvrqt$(7,e.cijSessionId),t.setInt_vux9f0$(8,e.cijJobStatus),t.setLong_6svq3l$(9,e.cijBytesSoFar),t.setBoolean_fzusl$(10,e.cijImportCompleted),t.setLong_6svq3l$(11,e.cijContentLength),t.setString_vqvrqt$(12,e.cijContainerEntryFileUids),t.setString_vqvrqt$(13,e.cijConversionParams),t.setLong_6svq3l$(14,e.cijUid),t.executeUpdate()}))},Bf.prototype.findBySessionId_61zpoe$=function(t){return ht(this._db,new st("SELECT * FROM ContainerImportJob WHERE cijSessionId = ?"),(e=t,function(t){return t.setString_vqvrqt$(1,e),ut(t.executeQuery(),Hf)}));var e},Bf.prototype.findByUid_s8cxhz$=function(t){return ht(this._db,new st("SELECT * FROM ContainerImportJob where cijUid = ?"),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),Vf)}));var e},Xf.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Xf.prototype=Object.create(N.prototype),Xf.prototype.constructor=Xf,Xf.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Kf);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Yf.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Yf.prototype=Object.create(N.prototype),Yf.prototype.constructor=Yf,Yf.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ContainerImportJobDao_JdbcKt._db,new st(S("\n |\n | SELECT * \n | FROM ContainerImportJob \n | WHERE cijJobStatus = 4\n | AND (NOT cijImportCompleted OR \n | (SELECT connectivityState \n | FROM ConnectivityStatus)\n | IN (3, 4))\n | LIMIT 10\n ")),Jf,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Bf.prototype.findJobs=function(){return new ft(this._db,p(["ContainerImportJob","ConnectivityStatus"]),(t=this,function(e,n){var i=new Yf(t,e);return n?i:i.doResume(null)}));var t},Qf.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Qf.prototype=Object.create(N.prototype),Qf.prototype.constructor=Qf,Qf.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uploadJobId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tg.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},tg.prototype=Object.create(N.prototype),tg.prototype.constructor=tg,tg.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st("UPDATE ContainerImportJob SET cijJobStatus = 4 WHERE cijUid = ? AND cijJobStatus = 0"),Zf(this.local$uploadJobId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Bf.prototype.setStatusToQueueAsync_s8cxhz$=function(t,e,n){var i=new tg(this,t,e);return n?i:i.doResume(null)},Bf.prototype.updateProgress_b9bd0d$=function(t,e,n){var i,o,r;ht(this._db,new st("UPDATE ContainerImportJob SET cijBytesSoFar = ?, cijContentLength = ? WHERE cijUid = ?"),(i=t,o=e,r=n,function(t){return t.setLong_6svq3l$(1,i),t.setLong_6svq3l$(2,o),t.setLong_6svq3l$(3,r),t.executeUpdate()}))},Bf.prototype.updateStatus_6svq3l$=function(t,e){var n,i;ht(this._db,new st("UPDATE ContainerImportJob SET cijJobStatus = ? WHERE cijUid = ?"),(n=t,i=e,function(t){return t.setInt_vux9f0$(1,n),t.setLong_6svq3l$(2,i),t.executeUpdate()}))},Bf.prototype.updateImportComplete_vhff2t$=function(t,e,n){var i,o,r;ht(this._db,new st(S("\n |UPDATE ContainerImportJob \n | SET cijImportCompleted = ?,\n | cijContainerUid = ?\n | WHERE cijUid = ?\n ")),(i=t,o=e,r=n,function(t){return t.setBoolean_fzusl$(1,i),t.setLong_6svq3l$(2,o),t.setLong_6svq3l$(3,r),t.executeUpdate()}))},ng.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ng.prototype=Object.create(N.prototype),ng.prototype.constructor=ng,ng.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$importJobUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,eg);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Bf.prototype.getTitleOfEntry_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT ContentEntry.title FROM ContainerImportJob LEFT JOIN ContentEntry ON ContainerImportJob.cijContentEntryUid = ContentEntry.contentEntryUid WHERE ContainerImportJob.cijUid = ?"),(n=t,function(t,e,i){var o=new ng(n,t,e);return i?o:o.doResume(null)}),e);var n},og.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]};function Jw(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function Yw(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Qw(t,e,n,i,o,r){vw.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function Zw(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function tO(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function eO(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function nO(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$uid=e}function iO(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function oO(){}function rO(t){oO.call(this),this._db=t,this._insertAdapterCoursePicture_=new SO(this._db)}function sO(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function aO(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$coursePicture=t,this.local$_stmt=e}function cO(t){return function(e,n,i){var o=new aO(t,e,n);return i?o:o.doResume(null)}}function lO(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$coursePicture=e}function uO(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function hO(t){return function(e,n,i){var o=new uO(t,e,n);return i?o:o.doResume(null)}}function dO(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function pO(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function _O(t,e,n){var i=new pO(t,e);return n?i:i.doResume(null)}function mO(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function fO(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("coursePictureUid"),i=e.getLong_61zpoe$("coursePictureClazzUid"),o=e.getLong_61zpoe$("coursePictureMasterCsn"),r=e.getLong_61zpoe$("coursePictureLocalCsn"),s=e.getInt_61zpoe$("coursePictureLastChangedBy"),a=e.getLong_61zpoe$("coursePictureLct"),c=e.getString_61zpoe$("coursePictureUri"),l=e.getString_61zpoe$("coursePictureMd5"),u=e.getInt_61zpoe$("coursePictureFileSize"),h=e.getLong_61zpoe$("coursePictureTimestamp"),d=e.getString_61zpoe$("coursePictureMimeType"),p=e.getBoolean_61zpoe$("coursePictureActive"),_=new Oot;return _.coursePictureUid=n,_.coursePictureClazzUid=i,_.coursePictureMasterCsn=o,_.coursePictureLocalCsn=r,_.coursePictureLastChangedBy=s,_.coursePictureLct=a,_.coursePictureUri=c,_.coursePictureMd5=l,_.coursePictureFileSize=u,_.coursePictureTimestamp=h,_.coursePictureMimeType=d,_.coursePictureActive=p,_}));var e}function gO(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$_stmt=e}function $O(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("coursePictureUid"),i=e.getLong_61zpoe$("coursePictureClazzUid"),o=e.getLong_61zpoe$("coursePictureMasterCsn"),r=e.getLong_61zpoe$("coursePictureLocalCsn"),s=e.getInt_61zpoe$("coursePictureLastChangedBy"),a=e.getLong_61zpoe$("coursePictureLct"),c=e.getString_61zpoe$("coursePictureUri"),l=e.getString_61zpoe$("coursePictureMd5"),u=e.getInt_61zpoe$("coursePictureFileSize"),h=e.getLong_61zpoe$("coursePictureTimestamp"),d=e.getString_61zpoe$("coursePictureMimeType"),p=e.getBoolean_61zpoe$("coursePictureActive"),_=new Oot;return _.coursePictureUid=n,_.coursePictureClazzUid=i,_.coursePictureMasterCsn=o,_.coursePictureLocalCsn=r,_.coursePictureLastChangedBy=s,_.coursePictureLct=a,_.coursePictureUri=c,_.coursePictureMd5=l,_.coursePictureFileSize=u,_.coursePictureTimestamp=h,_.coursePictureMimeType=d,_.coursePictureActive=p,_}));var e}function EO(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$_stmt=e}function yO(t){return function(e,n,i){var o=new EO(t,e,n);return i?o:o.doResume(null)}}function bO(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$CoursePictureDao_JdbcKt=t,this.local$closure$clazzUid=e}function SO(t){pt.call(this,t)}function vO(t,e){oO.call(this),this._db_0=t,this._dao_0=e}function CO(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function NO(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function TO(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$coursePicture=e}function LO(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function zO(t,e,n,i,o,r){oO.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function wO(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function OO(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function RO(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$clazzUid=e}function AO(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$coursePicture=e}function xO(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function IO(){}function UO(t){IO.call(this),this._db=t,this._insertAdapterCourseTerminology_=new aR(this._db)}function DO(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function PO(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$entity=t,this.local$closure$_result=e,this.local$tmp$=void 0,this.local$_stmt=n}function MO(t,e){return function(n,i,o){var r=new PO(t,e,n,i);return o?r:r.doResume(null)}}function kO(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_result=void 0,this.local$entity=e}function jO(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function GO(t){return function(e,n,i){var o=new jO(t,e,n);return i?o:o.doResume(null)}}function qO(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function FO(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function BO(t,e,n){var i=new FO(t,e);return n?i:i.doResume(null)}function WO(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function HO(t){this.this$CourseTerminologyDao_JdbcKt=t,gt.call(this)}function VO(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("ctUid"),i=e.getString_61zpoe$("ctTitle"),o=e.getString_61zpoe$("ctTerminology"),r=e.getLong_61zpoe$("ctLct"),s=new Mot;return s.ctUid=n,s.ctTitle=i,s.ctTerminology=o,s.ctLct=r,s}));var e}function KO(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$_limit=t,this.local$closure$_offset=e,this.local$_stmt=n}function XO(t,e){return function(n,i,o){var r=new KO(t,e,n,i);return o?r:r.doResume(null)}}function JO(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$this$CourseTerminologyDao_JdbcKt=t,this.local$closure$_limit=e,this.local$closure$_offset=n}function YO(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function QO(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function ZO(t,e,n){var i=new QO(t,e);return n?i:i.doResume(null)}function tR(t,e){N.call(this,e),this.exceptionState_0=1,this.local$this$CourseTerminologyDao_JdbcKt=t}function eR(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("ctUid"),i=e.getString_61zpoe$("ctTitle"),o=e.getString_61zpoe$("ctTerminology"),r=e.getLong_61zpoe$("ctLct"),s=new Mot;return s.ctUid=n,s.ctTitle=i,s.ctTerminology=o,s.ctLct=r,s}));var e}function nR(t){return ut(t.executeQuery(),eR)}function iR(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("ctUid"),i=e.getString_61zpoe$("ctTitle"),o=e.getString_61zpoe$("ctTerminology"),r=e.getLong_61zpoe$("ctLct"),s=new Mot;return s.ctUid=n,s.ctTitle=i,s.ctTerminology=o,s.ctLct=r,s}));var e}function oR(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$_stmt=e}function rR(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("ctUid"),i=e.getString_61zpoe$("ctTitle"),o=e.getString_61zpoe$("ctTerminology"),r=e.getLong_61zpoe$("ctLct"),s=new Mot;return s.ctUid=n,s.ctTitle=i,s.ctTerminology=o,s.ctLct=r,s}));var e}function sR(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function aR(t){pt.call(this,t)}function cR(t,e){IO.call(this),this._db_0=t,this._dao_0=e}function lR(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function uR(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function hR(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function dR(t,e,n,i,o,r){IO.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function pR(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function _R(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function mR(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$clazzUid=e}function fR(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$uid=e}function gR(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function $R(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function ER(){}function yR(t){ER.call(this),this._db=t,this._insertAdapterDiscussionPost_=new JR(this._db)}function bR(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function SR(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$entity=t,this.local$closure$_result=e,this.local$tmp$=void 0,this.local$_stmt=n}function vR(t,e){return function(n,i,o){var r=new SR(t,e,n,i);return o?r:r.doResume(null)}}function CR(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_result=void 0,this.local$entity=e}function NR(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function TR(t){return function(e,n,i){var o=new NR(t,e,n);return i?o:o.doResume(null)}}function LR(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function zR(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function wR(t,e,n){var i=new zR(t,e);return n?i:i.doResume(null)}function OR(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function RR(t,e){this.this$DiscussionPostDao_JdbcKt=t,this.closure$discussionTopicUid=e,gt.call(this)}function AR(t){return mt(t,(e=t,function(t){var n=e.getString_61zpoe$("authorPersonFirstNames"),i=e.getString_61zpoe$("authorPersonLastName"),o=e.getString_61zpoe$("postLatestMessage"),r=e.getInt_61zpoe$("postRepliesCount"),s=e.getLong_61zpoe$("postLatestMessageTimestamp"),a=e.getLong_61zpoe$("discussionPostUid"),c=e.getString_61zpoe$("discussionPostTitle"),l=e.getString_61zpoe$("discussionPostMessage"),u=e.getLong_61zpoe$("discussionPostStartDate"),h=e.getLong_61zpoe$("discussionPostDiscussionTopicUid"),d=e.getBoolean_61zpoe$("discussionPostVisible"),p=e.getBoolean_61zpoe$("discussionPostArchive"),_=e.getLong_61zpoe$("discussionPostStartedPersonUid"),m=e.getLong_61zpoe$("discussionPostClazzUid"),f=e.getLong_61zpoe$("discussionPostLct"),g=new trt;return g.authorPersonFirstNames=n,g.authorPersonLastName=i,g.postLatestMessage=o,g.postRepliesCount=r,g.postLatestMessageTimestamp=s,g.discussionPostUid=a,g.discussionPostTitle=c,g.discussionPostMessage=l,g.discussionPostStartDate=u,g.discussionPostDiscussionTopicUid=h,g.discussionPostVisible=d,g.discussionPostArchive=p,g.discussionPostStartedPersonUid=_,g.discussionPostClazzUid=m,g.discussionPostLct=f,g}));var e}function xR(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$discussionTopicUid=t,this.local$closure$_limit=e,this.local$closure$_offset=n,this.local$_stmt=i}function IR(t,e,n){return function(i,o,r){var s=new xR(t,e,n,i,o);return r?s:s.doResume(null)}}function UR(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$this$DiscussionPostDao_JdbcKt=t,this.local$closure$discussionTopicUid=e,this.local$closure$_limit=n,this.local$closure$_offset=i}function DR(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function PR(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$discussionTopicUid=t,this.local$_stmt=e}function MR(t){return function(e,n,i){var o=new PR(t,e,n);return i?o:o.doResume(null)}}function kR(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$DiscussionPostDao_JdbcKt=t,this.local$closure$discussionTopicUid=e}function jR(t){return lt(t,null,(e=t,function(t){return e.getString_za3lpa$(1)}));var e}function GR(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$postUid=t,this.local$_stmt=e}function qR(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("discussionPostUid"),i=e.getString_61zpoe$("discussionPostTitle"),o=e.getString_61zpoe$("discussionPostMessage"),r=e.getLong_61zpoe$("discussionPostStartDate"),s=e.getLong_61zpoe$("discussionPostDiscussionTopicUid"),a=e.getBoolean_61zpoe$("discussionPostVisible"),c=e.getBoolean_61zpoe$("discussionPostArchive"),l=e.getLong_61zpoe$("discussionPostStartedPersonUid"),u=e.getLong_61zpoe$("discussionPostClazzUid"),h=e.getLong_61zpoe$("discussionPostLct"),d=new Hot;return d.discussionPostUid=n,d.discussionPostTitle=i,d.discussionPostMessage=o,d.discussionPostStartDate=r,d.discussionPostDiscussionTopicUid=s,d.discussionPostVisible=a,d.discussionPostArchive=c,d.discussionPostStartedPersonUid=l,d.discussionPostClazzUid=u,d.discussionPostLct=h,d}));var e}function FR(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function BR(t){return lt(t,null,(e=t,function(t){var n=e.getString_61zpoe$("authorPersonFirstNames"),i=e.getString_61zpoe$("authorPersonLastName"),o=e.getString_61zpoe$("postLatestMessage"),r=e.getInt_61zpoe$("postRepliesCount"),s=e.getLong_61zpoe$("postLatestMessageTimestamp"),a=e.getLong_61zpoe$("discussionPostUid"),c=e.getString_61zpoe$("discussionPostTitle"),l=e.getString_61zpoe$("discussionPostMessage"),u=e.getLong_61zpoe$("discussionPostStartDate"),h=e.getLong_61zpoe$("discussionPostDiscussionTopicUid"),d=e.getBoolean_61zpoe$("discussionPostVisible"),p=e.getBoolean_61zpoe$("discussionPostArchive"),_=e.getLong_61zpoe$("discussionPostStartedPersonUid"),m=e.getLong_61zpoe$("discussionPostClazzUid"),f=e.getLong_61zpoe$("discussionPostLct"),g=new trt;return g.authorPersonFirstNames=n,g.authorPersonLastName=i,g.postLatestMessage=o,g.postRepliesCount=r,g.postLatestMessageTimestamp=s,g.discussionPostUid=a,g.discussionPostTitle=c,g.discussionPostMessage=l,g.discussionPostStartDate=u,g.discussionPostDiscussionTopicUid=h,g.discussionPostVisible=d,g.discussionPostArchive=p,g.discussionPostStartedPersonUid=_,g.discussionPostClazzUid=m,g.discussionPostLct=f,g}));var e}function WR(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function HR(t){return lt(t,null,(e=t,function(t){var n=e.getString_61zpoe$("authorPersonFirstNames"),i=e.getString_61zpoe$("authorPersonLastName"),o=e.getString_61zpoe$("postLatestMessage"),r=e.getInt_61zpoe$("postRepliesCount"),s=e.getLong_61zpoe$("postLatestMessageTimestamp"),a=e.getLong_61zpoe$("discussionPostUid"),c=e.getString_61zpoe$("discussionPostTitle"),l=e.getString_61zpoe$("discussionPostMessage"),u=e.getLong_61zpoe$("discussionPostStartDate"),h=e.getLong_61zpoe$("discussionPostDiscussionTopicUid"),d=e.getBoolean_61zpoe$("discussionPostVisible"),p=e.getBoolean_61zpoe$("discussionPostArchive"),_=e.getLong_61zpoe$("discussionPostStartedPersonUid"),m=e.getLong_61zpoe$("discussionPostClazzUid"),f=e.getLong_61zpoe$("discussionPostLct"),g=new trt;return g.authorPersonFirstNames=n,g.authorPersonLastName=i,g.postLatestMessage=o,g.postRepliesCount=r,g.postLatestMessageTimestamp=s,g.discussionPostUid=a,g.discussionPostTitle=c,g.discussionPostMessage=l,g.discussionPostStartDate=u,g.discussionPostDiscussionTopicUid=h,g.discussionPostVisible=d,g.discussionPostArchive=p,g.discussionPostStartedPersonUid=_,g.discussionPostClazzUid=m,g.discussionPostLct=f,g}));var e}function VR(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function KR(t){return function(e,n,i){var o=new VR(t,e,n);return i?o:o.doResume(null)}}function XR(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$DiscussionPostDao_JdbcKt=t,this.local$closure$uid=e}function JR(t){pt.call(this,t)}function YR(t,e){ER.call(this),this._db_0=t,this._dao_0=e}function QR(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function ZR(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function tA(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function eA(t,e,n,i,o,r){ER.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function nA(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function iA(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function oA(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$postUid=e}function rA(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$uid=e}function sA(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$uid=e}function aA(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function cA(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function lA(){}function uA(t){lA.call(this),this._db=t,this._insertAdapterDiscussionTopic_upsert=new GA(this._db),this._insertAdapterDiscussionTopic_=new qA(this._db)}function hA(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$list=e}function dA(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function pA(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function _A(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$entityList=t,this.local$tmp$=void 0,this.local$_stmt=e}function mA(t){return function(e,n,i){var o=new _A(t,e,n);return i?o:o.doResume(null)}}function fA(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function gA(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function $A(t){return function(e,n,i){var o=new gA(t,e,n);return i?o:o.doResume(null)}}function EA(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function yA(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function bA(t,e,n){var i=new yA(t,e);return n?i:i.doResume(null)}function SA(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function vA(t,e){this.this$DiscussionTopicDao_JdbcKt=t,this.closure$discussionUid=e,gt.call(this)}function CA(t){return mt(t,(e=t,function(t){var n=e.getInt_61zpoe$("numPosts"),i=e.getLong_61zpoe$("lastActiveTimestamp"),o=e.getLong_61zpoe$("discussionTopicUid"),r=e.getString_61zpoe$("discussionTopicTitle"),s=e.getString_61zpoe$("discussionTopicDesc"),a=e.getLong_61zpoe$("discussionTopicStartDate"),c=e.getLong_61zpoe$("discussionTopicCourseDiscussionUid"),l=e.getBoolean_61zpoe$("discussionTopicVisible"),u=e.getBoolean_61zpoe$("discussionTopicArchive"),h=e.getInt_61zpoe$("discussionTopicIndex"),d=e.getLong_61zpoe$("discussionTopicClazzUid"),p=e.getLong_61zpoe$("discussionTopicLct"),_=new frt;return _.numPosts=n,_.lastActiveTimestamp=i,_.discussionTopicUid=o,_.discussionTopicTitle=r,_.discussionTopicDesc=s,_.discussionTopicStartDate=a,_.discussionTopicCourseDiscussionUid=c,_.discussionTopicVisible=l,_.discussionTopicArchive=u,_.discussionTopicIndex=h,_.discussionTopicClazzUid=d,_.discussionTopicLct=p,_}));var e}function NA(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$discussionUid=t,this.local$closure$_limit=e,this.local$closure$_offset=n,this.local$_stmt=i}function TA(t,e,n){return function(i,o,r){var s=new NA(t,e,n,i,o);return r?s:s.doResume(null)}}function LA(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$this$DiscussionTopicDao_JdbcKt=t,this.local$closure$discussionUid=e,this.local$closure$_limit=n,this.local$closure$_offset=i}function zA(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function wA(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$discussionUid=t,this.local$_stmt=e}function OA(t){return function(e,n,i){var o=new wA(t,e,n);return i?o:o.doResume(null)}}function RA(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$DiscussionTopicDao_JdbcKt=t,this.local$closure$discussionUid=e}function AA(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("discussionTopicUid"),i=e.getString_61zpoe$("discussionTopicTitle"),o=e.getString_61zpoe$("discussionTopicDesc"),r=e.getLong_61zpoe$("discussionTopicStartDate"),s=e.getLong_61zpoe$("discussionTopicCourseDiscussionUid"),a=e.getBoolean_61zpoe$("discussionTopicVisible"),c=e.getBoolean_61zpoe$("discussionTopicArchive"),l=e.getInt_61zpoe$("discussionTopicIndex"),u=e.getLong_61zpoe$("discussionTopicClazzUid"),h=e.getLong_61zpoe$("discussionTopicLct"),d=new crt;return d.discussionTopicUid=n,d.discussionTopicTitle=i,d.discussionTopicDesc=o,d.discussionTopicStartDate=r,d.discussionTopicCourseDiscussionUid=s,d.discussionTopicVisible=a,d.discussionTopicArchive=c,d.discussionTopicIndex=l,d.discussionTopicClazzUid=u,d.discussionTopicLct=h,d}));var e}function xA(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$_stmt=e}function IA(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("discussionTopicUid"),i=e.getString_61zpoe$("discussionTopicTitle"),o=e.getString_61zpoe$("discussionTopicDesc"),r=e.getLong_61zpoe$("discussionTopicStartDate"),s=e.getLong_61zpoe$("discussionTopicCourseDiscussionUid"),a=e.getBoolean_61zpoe$("discussionTopicVisible"),c=e.getBoolean_61zpoe$("discussionTopicArchive"),l=e.getInt_61zpoe$("discussionTopicIndex"),u=e.getLong_61zpoe$("discussionTopicClazzUid"),h=e.getLong_61zpoe$("discussionTopicLct"),d=new crt;return d.discussionTopicUid=n,d.discussionTopicTitle=i,d.discussionTopicDesc=o,d.discussionTopicStartDate=r,d.discussionTopicCourseDiscussionUid=s,d.discussionTopicVisible=a,d.discussionTopicArchive=c,d.discussionTopicIndex=l,d.discussionTopicClazzUid=u,d.discussionTopicLct=h,d}));var e}function UA(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$discussionTopicUid=t,this.local$_stmt=e}function DA(t){return function(e,n,i){var o=new UA(t,e,n);return i?o:o.doResume(null)}}function PA(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$DiscussionTopicDao_JdbcKt=t,this.local$closure$discussionTopicUid=e}function MA(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$active=t,this.local$closure$changeTime=e,this.local$closure$uid=n,this.local$_stmt=i}function kA(t,e,n){return function(i,o,r){var s=new MA(t,e,n,i,o);return r?s:s.doResume(null)}}function jA(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$uid=e,this.local$active=n,this.local$changeTime=i}function GA(t){pt.call(this,t)}function qA(t){pt.call(this,t)}function FA(t,e){lA.call(this),this._db_0=t,this._dao_0=e}function BA(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function WA(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function HA(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$uid=e,this.local$active=n,this.local$changeTime=i}function VA(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_pkManager=void 0,this.local$_generatedPks=void 0,this.local$$receiver=void 0,this.local$element=void 0,this.local$list=e}function KA(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function XA(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_pkManager=void 0,this.local$_generatedPks=void 0,this.local$$receiver=void 0,this.local$element=void 0,this.local$entityList=e}function JA(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function YA(t,e,n,i,o,r){lA.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function QA(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function ZA(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function tx(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$clazzUid=e}function ex(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$uid=e,this.local$active=n,this.local$changeTime=i}function nx(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$list=e}function ix(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function ox(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function rx(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function sx(){}function ax(t){sx.call(this),this._db=t,this._insertAdapterEntityRole_upsert=new xx(this._db)}function cx(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function lx(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$entity=t,this.local$closure$_result=e,this.local$tmp$=void 0,this.local$_stmt=n}function ux(t,e){return function(n,i,o){var r=new lx(t,e,n,i);return o?r:r.doResume(null)}}function hx(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_result=void 0,this.local$entity=e}function dx(t){return lt(t,!1,(e=t,function(t){return e.getBoolean_za3lpa$(1)}));var e}function px(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$accountPersonUid=t,this.local$closure$permission=e,this.local$_stmt=n}function _x(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("erUid"),i=e.getLong_61zpoe$("erMasterCsn"),o=e.getLong_61zpoe$("erLocalCsn"),r=e.getInt_61zpoe$("erLastChangedBy"),s=e.getLong_61zpoe$("erLct"),a=e.getInt_61zpoe$("erTableId"),c=e.getLong_61zpoe$("erEntityUid"),l=e.getLong_61zpoe$("erGroupUid"),u=e.getLong_61zpoe$("erRoleUid"),h=e.getBoolean_61zpoe$("erActive"),d=new xrt;return d.erUid=n,d.erMasterCsn=i,d.erLocalCsn=o,d.erLastChangedBy=r,d.erLct=s,d.erTableId=a,d.erEntityUid=c,d.erGroupUid=l,d.erRoleUid=u,d.erActive=h,d}));var e}function mx(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$closure$tableId=t,this.local$closure$entityUid=e,this.local$closure$groupUid=n,this.local$closure$roleUid=i,this.local$_stmt=o}function fx(t,e){this.this$EntityRoleDao_JdbcKt=t,this.closure$personGroupUid=e,gt.call(this)}function gx(t){return mt(t,(e=t,function(t){var n=e.getString_61zpoe$("entityRoleScopeName"),i=e.getLong_61zpoe$("erUid"),o=e.getLong_61zpoe$("erMasterCsn"),r=e.getLong_61zpoe$("erLocalCsn"),s=e.getInt_61zpoe$("erLastChangedBy"),a=e.getLong_61zpoe$("erLct"),c=e.getInt_61zpoe$("erTableId"),l=e.getLong_61zpoe$("erEntityUid"),u=e.getLong_61zpoe$("erGroupUid"),h=e.getLong_61zpoe$("erRoleUid"),d=e.getBoolean_61zpoe$("erActive"),p=0,_=e.getLong_61zpoe$("roleUid");e.wasNull()&&(p=p+1|0);var m=e.getString_61zpoe$("roleName");e.wasNull()&&(p=p+1|0);var f=e.getBoolean_61zpoe$("roleActive");e.wasNull()&&(p=p+1|0);var g=e.getLong_61zpoe$("roleMasterCsn");e.wasNull()&&(p=p+1|0);var $=e.getLong_61zpoe$("roleLocalCsn");e.wasNull()&&(p=p+1|0);var E=e.getInt_61zpoe$("roleLastChangedBy");e.wasNull()&&(p=p+1|0);var y=e.getLong_61zpoe$("roleLct");e.wasNull()&&(p=p+1|0);var b=e.getLong_61zpoe$("rolePermissions");e.wasNull()&&(p=p+1|0);var S=8===p,v=new Grt;if(v.entityRoleScopeName=n,v.erUid=i,v.erMasterCsn=o,v.erLocalCsn=r,v.erLastChangedBy=s,v.erLct=a,v.erTableId=c,v.erEntityUid=l,v.erGroupUid=u,v.erRoleUid=h,v.erActive=d,!S){var C=new cht;C.roleUid=_,C.roleName=m,C.roleActive=f,C.roleMasterCsn=g,C.roleLocalCsn=$,C.roleLastChangedBy=E,C.roleLct=y,C.rolePermissions=b,v.entityRoleRole=C}return v}));var e}function $x(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$personGroupUid=t,this.local$closure$_limit=e,this.local$closure$_offset=n,this.local$_stmt=i}function Ex(t,e,n){return function(i,o,r){var s=new $x(t,e,n,i,o);return r?s:s.doResume(null)}}function yx(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$this$EntityRoleDao_JdbcKt=t,this.local$closure$personGroupUid=e,this.local$closure$_limit=n,this.local$closure$_offset=i}function bx(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function Sx(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$personGroupUid=t,this.local$_stmt=e}function vx(t){return function(e,n,i){var o=new Sx(t,e,n);return i?o:o.doResume(null)}}function Cx(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$EntityRoleDao_JdbcKt=t,this.local$closure$personGroupUid=e}function Nx(t){return mt(t,(e=t,function(t){var n=e.getString_61zpoe$("entityRoleScopeName"),i=e.getLong_61zpoe$("erUid"),o=e.getLong_61zpoe$("erMasterCsn"),r=e.getLong_61zpoe$("erLocalCsn"),s=e.getInt_61zpoe$("erLastChangedBy"),a=e.getLong_61zpoe$("erLct"),c=e.getInt_61zpoe$("erTableId"),l=e.getLong_61zpoe$("erEntityUid"),u=e.getLong_61zpoe$("erGroupUid"),h=e.getLong_61zpoe$("erRoleUid"),d=e.getBoolean_61zpoe$("erActive"),p=0,_=e.getLong_61zpoe$("roleUid");e.wasNull()&&(p=p+1|0);var m=e.getString_61zpoe$("roleName");e.wasNull()&&(p=p+1|0);var f=e.getBoolean_61zpoe$("roleActive");e.wasNull()&&(p=p+1|0);var g=e.getLong_61zpoe$("roleMasterCsn");e.wasNull()&&(p=p+1|0);var $=e.getLong_61zpoe$("roleLocalCsn");e.wasNull()&&(p=p+1|0);var E=e.getInt_61zpoe$("roleLastChangedBy");e.wasNull()&&(p=p+1|0);var y=e.getLong_61zpoe$("roleLct");e.wasNull()&&(p=p+1|0);var b=e.getLong_61zpoe$("rolePermissions");e.wasNull()&&(p=p+1|0);var S=8===p,v=new Grt;if(v.entityRoleScopeName=n,v.erUid=i,v.erMasterCsn=o,v.erLocalCsn=r,v.erLastChangedBy=s,v.erLct=a,v.erTableId=c,v.erEntityUid=l,v.erGroupUid=u,v.erRoleUid=h,v.erActive=d,!S){var C=new cht;C.roleUid=_,C.roleName=m,C.roleActive=f,C.roleMasterCsn=g,C.roleLocalCsn=$,C.roleLastChangedBy=E,C.roleLct=y,C.rolePermissions=b,v.entityRoleRole=C}return v}));var e}function Tx(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$personGroupUid=t,this.local$_stmt=e}function Lx(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("erUid"),i=e.getLong_61zpoe$("erMasterCsn"),o=e.getLong_61zpoe$("erLocalCsn"),r=e.getInt_61zpoe$("erLastChangedBy"),s=e.getLong_61zpoe$("erLct"),a=e.getInt_61zpoe$("erTableId"),c=e.getLong_61zpoe$("erEntityUid"),l=e.getLong_61zpoe$("erGroupUid"),u=e.getLong_61zpoe$("erRoleUid"),h=e.getBoolean_61zpoe$("erActive"),d=new xrt;return d.erUid=n,d.erMasterCsn=i,d.erLocalCsn=o,d.erLastChangedBy=r,d.erLct=s,d.erTableId=a,d.erEntityUid=c,d.erGroupUid=l,d.erRoleUid=u,d.erActive=h,d}));var e}function zx(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function wx(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("erUid"),i=e.getLong_61zpoe$("erMasterCsn"),o=e.getLong_61zpoe$("erLocalCsn"),r=e.getInt_61zpoe$("erLastChangedBy"),s=e.getLong_61zpoe$("erLct"),a=e.getInt_61zpoe$("erTableId"),c=e.getLong_61zpoe$("erEntityUid"),l=e.getLong_61zpoe$("erGroupUid"),u=e.getLong_61zpoe$("erRoleUid"),h=e.getBoolean_61zpoe$("erActive"),d=new xrt;return d.erUid=n,d.erMasterCsn=i,d.erLocalCsn=o,d.erLastChangedBy=r,d.erLct=s,d.erTableId=a,d.erEntityUid=c,d.erGroupUid=l,d.erRoleUid=u,d.erActive=h,d}));var e}function Ox(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function Rx(t){return function(e,n,i){var o=new Ox(t,e,n);return i?o:o.doResume(null)}}function Ax(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$EntityRoleDao_JdbcKt=t,this.local$closure$uid=e}function xx(t){pt.call(this,t)}function Ix(t,e,n,i,o,r){sx.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function Ux(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$accountPersonUid=e,this.local$permission=n}function Dx(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.$this=t,this.local$tableId=e,this.local$entityUid=n,this.local$groupUid=i,this.local$roleUid=o}function Px(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$personGroupUid=e}function Mx(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$uid=e}function kx(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function jx(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Gx(){}function qx(t){Gx.call(this),this._db=t,this._insertAdapterErrorReport_=new Yx(this._db)}function Fx(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$errorReport=e}function Bx(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function Wx(t,e,n){var i=new Bx(t,e);return n?i:i.doResume(null)}function Hx(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function Vx(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("errUid"),i=e.getLong_61zpoe$("errPcsn"),o=e.getLong_61zpoe$("errLcsn"),r=e.getInt_61zpoe$("errLcb"),s=e.getLong_61zpoe$("errLct"),a=e.getInt_61zpoe$("severity"),c=e.getLong_61zpoe$("timestamp"),l=e.getString_61zpoe$("presenterUri"),u=e.getString_61zpoe$("appVersion"),h=e.getInt_61zpoe$("versionCode"),d=e.getInt_61zpoe$("errorCode"),p=e.getString_61zpoe$("operatingSys"),_=e.getString_61zpoe$("osVersion"),m=e.getString_61zpoe$("stackTrace"),f=e.getString_61zpoe$("message"),g=new Xrt;return g.errUid=n,g.errPcsn=i,g.errLcsn=o,g.errLcb=r,g.errLct=s,g.severity=a,g.timestamp=c,g.presenterUri=l,g.appVersion=u,g.versionCode=h,g.errorCode=d,g.operatingSys=p,g.osVersion=_,g.stackTrace=m,g.message=f,g}));var e}function Kx(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$errUid=t,this.local$_stmt=e}function Xx(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("errUid"),i=e.getLong_61zpoe$("errPcsn"),o=e.getLong_61zpoe$("errLcsn"),r=e.getInt_61zpoe$("errLcb"),s=e.getLong_61zpoe$("errLct"),a=e.getInt_61zpoe$("severity"),c=e.getLong_61zpoe$("timestamp"),l=e.getString_61zpoe$("presenterUri"),u=e.getString_61zpoe$("appVersion"),h=e.getInt_61zpoe$("versionCode"),d=e.getInt_61zpoe$("errorCode"),p=e.getString_61zpoe$("operatingSys"),_=e.getString_61zpoe$("osVersion"),m=e.getString_61zpoe$("stackTrace"),f=e.getString_61zpoe$("message"),g=new Xrt;return g.errUid=n,g.errPcsn=i,g.errLcsn=o,g.errLcb=r,g.errLct=s,g.severity=a,g.timestamp=c,g.presenterUri=l,g.appVersion=u,g.versionCode=h,g.errorCode=d,g.operatingSys=p,g.osVersion=_,g.stackTrace=m,g.message=f,g}));var e}function Jx(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$errCode=t,this.local$_stmt=e}function Yx(t){pt.call(this,t)}function Qx(t,e){Gx.call(this),this._db_0=t,this._dao_0=e}function Zx(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function tI(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$errorReport=e}function eI(t,e,n,i,o,r){Gx.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function nI(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function iI(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$errorReport=e}function oI(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$errUid=e}function rI(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$errCode=e}og.prototype=Object.create(N.prototype),og.prototype.constructor=og,og.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$importJobUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,ig);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},sg.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},sg.prototype=Object.create(N.prototype),sg.prototype.constructor=sg,sg.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ContainerImportJobDao_JdbcKt._db,new st("SELECT * From ContainerImportJob WHERE ContainerImportJob.cijUid = ?"),rg(this.local$closure$importJobUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Bf.prototype.getImportJobLiveData_s8cxhz$=function(t){return new ft(this._db,Et("ContainerImportJob"),(e=this,n=t,function(t,i){var o=new sg(e,n,t);return i?o:o.doResume(null)}));var e,n},ag.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ag.prototype=Object.create(N.prototype),ag.prototype.constructor=ag,ag.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$sessionId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$importJobUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lg.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},lg.prototype=Object.create(N.prototype),lg.prototype.constructor=lg,lg.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st("UPDATE ContainerImportJob SET cijSessionId = ? WHERE cijUid = ?"),cg(this.local$sessionId,this.local$importJobUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Bf.prototype.updateSessionId_a4hdmt$=function(t,e,n,i){var o=new lg(this,t,e,n);return i?o:o.doResume(null)},ug.prototype.makeSql_6taknv$=function(t){return"INSERT INTO ContainerImportJob (cijUid, cijContainerUid, cijUri, cijImportMode, cijContainerBaseDir, cijContentEntryUid, cijMimeType, cijSessionId, cijJobStatus, cijBytesSoFar, cijImportCompleted, cijContentLength, cijContainerEntryFileUids, cijConversionParams) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},ug.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.cijUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.cijUid),t.setLong_6svq3l$(2,e.cijContainerUid),t.setString_vqvrqt$(3,e.cijUri),t.setInt_vux9f0$(4,e.cijImportMode),t.setString_vqvrqt$(5,e.cijContainerBaseDir),t.setLong_6svq3l$(6,e.cijContentEntryUid),t.setString_vqvrqt$(7,e.cijMimeType),t.setString_vqvrqt$(8,e.cijSessionId),t.setInt_vux9f0$(9,e.cijJobStatus),t.setLong_6svq3l$(10,e.cijBytesSoFar),t.setBoolean_fzusl$(11,e.cijImportCompleted),t.setLong_6svq3l$(12,e.cijContentLength),t.setString_vqvrqt$(13,e.cijContainerEntryFileUids),t.setString_vqvrqt$(14,e.cijConversionParams)},ug.$metadata$={kind:c,interfaces:[pt]},Bf.$metadata$={kind:c,simpleName:"ContainerImportJobDao_JdbcKt",interfaces:[Ff]},hg.$metadata$={kind:c,simpleName:"ContentCategoryDao",interfaces:[X6]},dg.prototype.insert_11rb$=function(t){return this._insertAdapterContentCategory_.insertAndReturnId_11rb$(t)},pg.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},pg.prototype=Object.create(N.prototype),pg.prototype.constructor=pg,pg.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterContentCategory_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dg.prototype.insertAsync=function(t,e,n){var i=new pg(this,t,e);return n?i:i.doResume(null)},dg.prototype.insertList_4ezy5m$=function(t){this._insertAdapterContentCategory_.insertList_4ezy5m$(t)},dg.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE ContentCategory SET ctnCatContentCategorySchemaUid = ?, name = ?, contentCategoryLocalChangeSeqNum = ?, contentCategoryMasterChangeSeqNum = ?, contentCategoryLastChangedBy = ?, contentCategoryLct = ? WHERE contentCategoryUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.ctnCatContentCategorySchemaUid),t.setString_vqvrqt$(2,i.name),t.setLong_6svq3l$(3,i.contentCategoryLocalChangeSeqNum),t.setLong_6svq3l$(4,i.contentCategoryMasterChangeSeqNum),t.setInt_vux9f0$(5,i.contentCategoryLastChangedBy),t.setLong_6svq3l$(6,i.contentCategoryLct),t.setLong_6svq3l$(7,i.contentCategoryUid),t.executeUpdate()}return t.getConnection().commit(),V}))},dg.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE ContentCategory SET ctnCatContentCategorySchemaUid = ?, name = ?, contentCategoryLocalChangeSeqNum = ?, contentCategoryMasterChangeSeqNum = ?, contentCategoryLastChangedBy = ?, contentCategoryLct = ? WHERE contentCategoryUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.ctnCatContentCategorySchemaUid),t.setString_vqvrqt$(2,e.name),t.setLong_6svq3l$(3,e.contentCategoryLocalChangeSeqNum),t.setLong_6svq3l$(4,e.contentCategoryMasterChangeSeqNum),t.setInt_vux9f0$(5,e.contentCategoryLastChangedBy),t.setLong_6svq3l$(6,e.contentCategoryLct),t.setLong_6svq3l$(7,e.contentCategoryUid),t.executeUpdate()}))},_g.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_g.prototype=Object.create(N.prototype),_g.prototype.constructor=_g,_g.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},fg.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fg.prototype=Object.create(N.prototype),fg.prototype.constructor=fg,fg.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ContentCategoryReplicate(ccPk, ccDestination)\n | SELECT DISTINCT ContentCategory.contentCategoryUid AS ccPk,\n | ? AS ccDestination\n | FROM ContentCategory\n | WHERE ContentCategory.contentCategoryLct != COALESCE(\n | (SELECT ccVersionId\n | FROM ContentCategoryReplicate\n | WHERE ccPk = ContentCategory.contentCategoryUid\n | AND ccDestination = ?), 0) \n | /*psql ON CONFLICT(ccPk, ccDestination) DO UPDATE\n | SET ccPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ContentCategoryReplicate(ccPk, ccDestination)\n | SELECT DISTINCT ContentCategory.contentCategoryUid AS ccPk,\n | ? AS ccDestination\n | FROM ContentCategory\n | WHERE ContentCategory.contentCategoryLct != COALESCE(\n | (SELECT ccVersionId\n | FROM ContentCategoryReplicate\n | WHERE ccPk = ContentCategory.contentCategoryUid\n | AND ccDestination = ?), 0) \n | ON CONFLICT(ccPk, ccDestination) DO UPDATE\n | SET ccPending = true\n | \n | \n |")),mg(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dg.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new fg(this,t,e);return n?i:i.doResume(null)},gg.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},gg.prototype=Object.create(N.prototype),gg.prototype.constructor=gg,gg.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Eg.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Eg.prototype=Object.create(N.prototype),Eg.prototype.constructor=Eg,Eg.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ContentCategoryReplicate(ccPk, ccDestination)\n | SELECT DISTINCT ContentCategory.contentCategoryUid AS ccUid,\n | UserSession.usClientNodeId AS ccDestination\n | FROM ChangeLog\n | JOIN ContentCategory\n | ON ChangeLog.chTableId = 1\n | AND ChangeLog.chEntityPk = ContentCategory.contentCategoryUid\n | JOIN UserSession \n | ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ContentCategory.contentCategoryLct != COALESCE(\n | (SELECT ccVersionId\n | FROM ContentCategoryReplicate\n | WHERE ccPk = ContentCategory.contentCategoryUid\n | AND ccDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(ccPk, ccDestination) DO UPDATE\n | SET ccPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ContentCategoryReplicate(ccPk, ccDestination)\n | SELECT DISTINCT ContentCategory.contentCategoryUid AS ccUid,\n | UserSession.usClientNodeId AS ccDestination\n | FROM ChangeLog\n | JOIN ContentCategory\n | ON ChangeLog.chTableId = 1\n | AND ChangeLog.chEntityPk = ContentCategory.contentCategoryUid\n | JOIN UserSession \n | ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ContentCategory.contentCategoryLct != COALESCE(\n | (SELECT ccVersionId\n | FROM ContentCategoryReplicate\n | WHERE ccPk = ContentCategory.contentCategoryUid\n | AND ccDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(ccPk, ccDestination) DO UPDATE\n | SET ccPending = true\n | \n | \n |")),$g,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dg.prototype.replicateOnChange=function(t,e){var n=new Eg(this,t);return e?n:n.doResume(null)},dg.prototype.publicContentCategories=function(){return ht(this._db,new st("SELECT ContentCategory.* FROM ContentCategory"),bg)},dg.prototype.findCategoryBySchemaIdAndName_a4hdmt$=function(t,e){return ht(this._db,new st("SELECT * FROM ContentCategory WHERE ctnCatContentCategorySchemaUid = ? AND name = ?"),(n=t,i=e,function(t){return t.setLong_6svq3l$(1,n),t.setString_vqvrqt$(2,i),ut(t.executeQuery(),Sg)}));var n,i},vg.prototype.makeSql_6taknv$=function(t){return"INSERT INTO ContentCategory (contentCategoryUid, ctnCatContentCategorySchemaUid, name, contentCategoryLocalChangeSeqNum, contentCategoryMasterChangeSeqNum, contentCategoryLastChangedBy, contentCategoryLct) VALUES(?, ?, ?, ?, ?, ?, ?)"},vg.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.contentCategoryUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.contentCategoryUid),t.setLong_6svq3l$(2,e.ctnCatContentCategorySchemaUid),t.setString_vqvrqt$(3,e.name),t.setLong_6svq3l$(4,e.contentCategoryLocalChangeSeqNum),t.setLong_6svq3l$(5,e.contentCategoryMasterChangeSeqNum),t.setInt_vux9f0$(6,e.contentCategoryLastChangedBy),t.setLong_6svq3l$(7,e.contentCategoryLct)},vg.$metadata$={kind:c,interfaces:[pt]},dg.$metadata$={kind:c,simpleName:"ContentCategoryDao_JdbcKt",interfaces:[hg]},Ng.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ng.prototype=Object.create(N.prototype),Ng.prototype.constructor=Ng,Ng.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Cg.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new Ng(this,t,e);return n?i:i.doResume(null)},Tg.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Tg.prototype=Object.create(N.prototype),Tg.prototype.constructor=Tg,Tg.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Cg.prototype.replicateOnChange=function(t,e){var n=new Tg(this,t);return e?n:n.doResume(null)},Cg.prototype.publicContentCategories=function(){throw v("Synchronous db access is NOT possible on Javascript!")},Cg.prototype.findCategoryBySchemaIdAndName_a4hdmt$=function(t,e){throw v("Synchronous db access is NOT possible on Javascript!")},Cg.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Lg.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Lg.prototype=Object.create(N.prototype),Lg.prototype.constructor=Lg,Lg.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.contentCategoryUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(1,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.contentCategoryUid=e,this.state_0=3;continue;case 3:if(this.local$entity.contentCategoryLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.contentCategoryUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Cg.prototype.insertAsync=function(t,e,n){var i=new Lg(this,t,e);return n?i:i.doResume(null)},Cg.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Cg.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Cg.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Cg.$metadata$={kind:c,simpleName:"ContentCategoryDao_ReplicateWrapper",interfaces:[hg]},wg.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},wg.prototype=Object.create(N.prototype),wg.prototype.constructor=wg,wg.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zg.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new wg(this,t,e);return n?i:i.doResume(null)},Og.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Og.prototype=Object.create(N.prototype),Og.prototype.constructor=Og,Og.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zg.prototype.replicateOnChange=function(t,e){var n=new Og(this,t);return e?n:n.doResume(null)},zg.prototype.publicContentCategories=function(){return this._dao.publicContentCategories()},zg.prototype.findCategoryBySchemaIdAndName_a4hdmt$=function(t,e){return this._dao.findCategoryBySchemaIdAndName_a4hdmt$(t,e)},zg.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},Rg.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Rg.prototype=Object.create(N.prototype),Rg.prototype.constructor=Rg,Rg.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zg.prototype.insertAsync=function(t,e,n){var i=new Rg(this,t,e);return n?i:i.doResume(null)},zg.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},zg.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},zg.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},zg.$metadata$={kind:c,simpleName:"ContentCategoryDao_Repo",interfaces:[hg]},Ag.$metadata$={kind:c,simpleName:"ContentCategorySchemaDao",interfaces:[X6]},xg.prototype.insert_11rb$=function(t){return this._insertAdapterContentCategorySchema_.insertAndReturnId_11rb$(t)},Ig.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ig.prototype=Object.create(N.prototype),Ig.prototype.constructor=Ig,Ig.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterContentCategorySchema_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},xg.prototype.insertAsync=function(t,e,n){var i=new Ig(this,t,e);return n?i:i.doResume(null)},xg.prototype.insertList_4ezy5m$=function(t){this._insertAdapterContentCategorySchema_.insertList_4ezy5m$(t)},xg.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE ContentCategorySchema SET schemaName = ?, schemaUrl = ?, contentCategorySchemaLocalChangeSeqNum = ?, contentCategorySchemaMasterChangeSeqNum = ?, contentCategorySchemaLastChangedBy = ?, contentCategorySchemaLct = ? WHERE contentCategorySchemaUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setString_vqvrqt$(1,i.schemaName),t.setString_vqvrqt$(2,i.schemaUrl),t.setLong_6svq3l$(3,i.contentCategorySchemaLocalChangeSeqNum),t.setLong_6svq3l$(4,i.contentCategorySchemaMasterChangeSeqNum),t.setInt_vux9f0$(5,i.contentCategorySchemaLastChangedBy),t.setLong_6svq3l$(6,i.contentCategorySchemaLct),t.setLong_6svq3l$(7,i.contentCategorySchemaUid),t.executeUpdate()}return t.getConnection().commit(),V}))},xg.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE ContentCategorySchema SET schemaName = ?, schemaUrl = ?, contentCategorySchemaLocalChangeSeqNum = ?, contentCategorySchemaMasterChangeSeqNum = ?, contentCategorySchemaLastChangedBy = ?, contentCategorySchemaLct = ? WHERE contentCategorySchemaUid = ?",(e=t,function(t){return t.setString_vqvrqt$(1,e.schemaName),t.setString_vqvrqt$(2,e.schemaUrl),t.setLong_6svq3l$(3,e.contentCategorySchemaLocalChangeSeqNum),t.setLong_6svq3l$(4,e.contentCategorySchemaMasterChangeSeqNum),t.setInt_vux9f0$(5,e.contentCategorySchemaLastChangedBy),t.setLong_6svq3l$(6,e.contentCategorySchemaLct),t.setLong_6svq3l$(7,e.contentCategorySchemaUid),t.executeUpdate()}))},Ug.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ug.prototype=Object.create(N.prototype),Ug.prototype.constructor=Ug,Ug.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Pg.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Pg.prototype=Object.create(N.prototype),Pg.prototype.constructor=Pg,Pg.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ContentCategorySchemaReplicate(ccsPk, ccsDestination)\n | SELECT DISTINCT ContentCategorySchema.contentCategorySchemaUid AS ccsPk,\n | ? AS ccsDestination\n | FROM ContentCategorySchema\n | WHERE ContentCategorySchema.contentCategorySchemaLct != COALESCE(\n | (SELECT ccsVersionId\n | FROM ContentCategorySchemaReplicate\n | WHERE ccsPk = ContentCategorySchema.contentCategorySchemaUid\n | AND ccsDestination = ?), 0) \n | /*psql ON CONFLICT(ccsPk, ccsDestination) DO UPDATE\n | SET ccsPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ContentCategorySchemaReplicate(ccsPk, ccsDestination)\n | SELECT DISTINCT ContentCategorySchema.contentCategorySchemaUid AS ccsPk,\n | ? AS ccsDestination\n | FROM ContentCategorySchema\n | WHERE ContentCategorySchema.contentCategorySchemaLct != COALESCE(\n | (SELECT ccsVersionId\n | FROM ContentCategorySchemaReplicate\n | WHERE ccsPk = ContentCategorySchema.contentCategorySchemaUid\n | AND ccsDestination = ?), 0) \n | ON CONFLICT(ccsPk, ccsDestination) DO UPDATE\n | SET ccsPending = true\n | \n | \n |")),Dg(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},xg.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new Pg(this,t,e);return n?i:i.doResume(null)},Mg.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Mg.prototype=Object.create(N.prototype),Mg.prototype.constructor=Mg,Mg.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jg.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},jg.prototype=Object.create(N.prototype),jg.prototype.constructor=jg,jg.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ContentCategorySchemaReplicate(ccsPk, ccsDestination)\n | SELECT DISTINCT ContentCategorySchema.contentCategorySchemaUid AS ccsUid,\n | UserSession.usClientNodeId AS ccsDestination\n | FROM ChangeLog\n | JOIN ContentCategorySchema\n | ON ChangeLog.chTableId = 2\n | AND ChangeLog.chEntityPk = ContentCategorySchema.contentCategorySchemaUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ContentCategorySchema.contentCategorySchemaLct != COALESCE(\n | (SELECT ccsVersionId\n | FROM ContentCategorySchemaReplicate\n | WHERE ccsPk = ContentCategorySchema.contentCategorySchemaUid\n | AND ccsDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(ccsPk, ccsDestination) DO UPDATE\n | SET ccsPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ContentCategorySchemaReplicate(ccsPk, ccsDestination)\n | SELECT DISTINCT ContentCategorySchema.contentCategorySchemaUid AS ccsUid,\n | UserSession.usClientNodeId AS ccsDestination\n | FROM ChangeLog\n | JOIN ContentCategorySchema\n | ON ChangeLog.chTableId = 2\n | AND ChangeLog.chEntityPk = ContentCategorySchema.contentCategorySchemaUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ContentCategorySchema.contentCategorySchemaLct != COALESCE(\n | (SELECT ccsVersionId\n | FROM ContentCategorySchemaReplicate\n | WHERE ccsPk = ContentCategorySchema.contentCategorySchemaUid\n | AND ccsDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(ccsPk, ccsDestination) DO UPDATE\n | SET ccsPending = true\n | \n | \n |")),kg,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},xg.prototype.replicateOnChange=function(t,e){var n=new jg(this,t);return e?n:n.doResume(null)},xg.prototype.publicContentCategorySchemas=function(){return ht(this._db,new st("SELECT ContentCategorySchema.* FROM ContentCategorySchema"),qg)},xg.prototype.findBySchemaUrl_61zpoe$=function(t){return ht(this._db,new st("SELECT * FROM ContentCategorySchema WHERE schemaUrl = ?"),(e=t,function(t){return t.setString_vqvrqt$(1,e),ut(t.executeQuery(),Fg)}));var e},Bg.prototype.makeSql_6taknv$=function(t){return"INSERT INTO ContentCategorySchema (contentCategorySchemaUid, schemaName, schemaUrl, contentCategorySchemaLocalChangeSeqNum, contentCategorySchemaMasterChangeSeqNum, contentCategorySchemaLastChangedBy, contentCategorySchemaLct) VALUES(?, ?, ?, ?, ?, ?, ?)"},Bg.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.contentCategorySchemaUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.contentCategorySchemaUid),t.setString_vqvrqt$(2,e.schemaName),t.setString_vqvrqt$(3,e.schemaUrl),t.setLong_6svq3l$(4,e.contentCategorySchemaLocalChangeSeqNum),t.setLong_6svq3l$(5,e.contentCategorySchemaMasterChangeSeqNum),t.setInt_vux9f0$(6,e.contentCategorySchemaLastChangedBy),t.setLong_6svq3l$(7,e.contentCategorySchemaLct)},Bg.$metadata$={kind:c,interfaces:[pt]},xg.$metadata$={kind:c,simpleName:"ContentCategorySchemaDao_JdbcKt",interfaces:[Ag]},Hg.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Hg.prototype=Object.create(N.prototype),Hg.prototype.constructor=Hg,Hg.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Wg.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new Hg(this,t,e);return n?i:i.doResume(null)},Vg.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Vg.prototype=Object.create(N.prototype),Vg.prototype.constructor=Vg,Vg.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Wg.prototype.replicateOnChange=function(t,e){var n=new Vg(this,t);return e?n:n.doResume(null)},Wg.prototype.publicContentCategorySchemas=function(){throw v("Synchronous db access is NOT possible on Javascript!")},Wg.prototype.findBySchemaUrl_61zpoe$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Wg.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Kg.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Kg.prototype=Object.create(N.prototype),Kg.prototype.constructor=Kg,Kg.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.contentCategorySchemaUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(2,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.contentCategorySchemaUid=e,this.state_0=3;continue;case 3:if(this.local$entity.contentCategorySchemaLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.contentCategorySchemaUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Wg.prototype.insertAsync=function(t,e,n){var i=new Kg(this,t,e);return n?i:i.doResume(null)},Wg.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Wg.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Wg.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Wg.$metadata$={kind:c,simpleName:"ContentCategorySchemaDao_ReplicateWrapper",interfaces:[Ag]},Jg.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Jg.prototype=Object.create(N.prototype),Jg.prototype.constructor=Jg,Jg.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Xg.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new Jg(this,t,e);return n?i:i.doResume(null)},Yg.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Yg.prototype=Object.create(N.prototype),Yg.prototype.constructor=Yg,Yg.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Xg.prototype.replicateOnChange=function(t,e){var n=new Yg(this,t);return e?n:n.doResume(null)},Xg.prototype.publicContentCategorySchemas=function(){return this._dao.publicContentCategorySchemas()},Xg.prototype.findBySchemaUrl_61zpoe$=function(t){return this._dao.findBySchemaUrl_61zpoe$(t)},Xg.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},Qg.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Qg.prototype=Object.create(N.prototype),Qg.prototype.constructor=Qg,Qg.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Xg.prototype.insertAsync=function(t,e,n){var i=new Qg(this,t,e);return n?i:i.doResume(null)},Xg.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},Xg.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},Xg.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},Xg.$metadata$={kind:c,simpleName:"ContentCategorySchemaDao_Repo",interfaces:[Ag]},Zg.$metadata$={kind:c,simpleName:"ContentEntryContentCategoryJoinDao",interfaces:[X6]},t$.prototype.insert_11rb$=function(t){return this._insertAdapterContentEntryContentCategoryJoin_.insertAndReturnId_11rb$(t)},e$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},e$.prototype=Object.create(N.prototype),e$.prototype.constructor=e$,e$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterContentEntryContentCategoryJoin_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},t$.prototype.insertAsync=function(t,e,n){var i=new e$(this,t,e);return n?i:i.doResume(null)},t$.prototype.insertList_4ezy5m$=function(t){this._insertAdapterContentEntryContentCategoryJoin_.insertList_4ezy5m$(t)},t$.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE ContentEntryContentCategoryJoin SET ceccjContentEntryUid = ?, ceccjContentCategoryUid = ?, ceccjLocalChangeSeqNum = ?, ceccjMasterChangeSeqNum = ?, ceccjLastChangedBy = ?, ceccjLct = ? WHERE ceccjUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.ceccjContentEntryUid),t.setLong_6svq3l$(2,i.ceccjContentCategoryUid),t.setLong_6svq3l$(3,i.ceccjLocalChangeSeqNum),t.setLong_6svq3l$(4,i.ceccjMasterChangeSeqNum),t.setInt_vux9f0$(5,i.ceccjLastChangedBy),t.setLong_6svq3l$(6,i.ceccjLct),t.setLong_6svq3l$(7,i.ceccjUid),t.executeUpdate()}return t.getConnection().commit(),V}))},t$.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE ContentEntryContentCategoryJoin SET ceccjContentEntryUid = ?, ceccjContentCategoryUid = ?, ceccjLocalChangeSeqNum = ?, ceccjMasterChangeSeqNum = ?, ceccjLastChangedBy = ?, ceccjLct = ? WHERE ceccjUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.ceccjContentEntryUid),t.setLong_6svq3l$(2,e.ceccjContentCategoryUid),t.setLong_6svq3l$(3,e.ceccjLocalChangeSeqNum),t.setLong_6svq3l$(4,e.ceccjMasterChangeSeqNum),t.setInt_vux9f0$(5,e.ceccjLastChangedBy),t.setLong_6svq3l$(6,e.ceccjLct),t.setLong_6svq3l$(7,e.ceccjUid),t.executeUpdate()}))},n$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},n$.prototype=Object.create(N.prototype),n$.prototype.constructor=n$,n$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},o$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},o$.prototype=Object.create(N.prototype),o$.prototype.constructor=o$,o$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ContentEntryContentCategoryJoinReplicate(ceccjPk, ceccjDestination)\n | SELECT DISTINCT ContentEntryContentCategoryJoin.ceccjUid AS ceccjPk,\n | ? AS ceccjDestination\n | FROM ContentEntryContentCategoryJoin\n | WHERE ContentEntryContentCategoryJoin.ceccjLct != COALESCE(\n | (SELECT ceccjVersionId\n | FROM ContentEntryContentCategoryJoinReplicate\n | WHERE ceccjPk = ContentEntryContentCategoryJoin.ceccjUid\n | AND ceccjDestination = ?), 0) \n | /*psql ON CONFLICT(ceccjPk, ceccjDestination) DO UPDATE\n | SET ceccjPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ContentEntryContentCategoryJoinReplicate(ceccjPk, ceccjDestination)\n | SELECT DISTINCT ContentEntryContentCategoryJoin.ceccjUid AS ceccjPk,\n | ? AS ceccjDestination\n | FROM ContentEntryContentCategoryJoin\n | WHERE ContentEntryContentCategoryJoin.ceccjLct != COALESCE(\n | (SELECT ceccjVersionId\n | FROM ContentEntryContentCategoryJoinReplicate\n | WHERE ceccjPk = ContentEntryContentCategoryJoin.ceccjUid\n | AND ceccjDestination = ?), 0) \n | ON CONFLICT(ceccjPk, ceccjDestination) DO UPDATE\n | SET ceccjPending = true\n | \n | \n |")),i$(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},t$.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new o$(this,t,e);return n?i:i.doResume(null)},r$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},r$.prototype=Object.create(N.prototype),r$.prototype.constructor=r$,r$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},a$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},a$.prototype=Object.create(N.prototype),a$.prototype.constructor=a$,a$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ContentEntryContentCategoryJoinReplicate(ceccjPk, ceccjDestination)\n | SELECT DISTINCT ContentEntryContentCategoryJoin.ceccjUid AS ceccjUid,\n | UserSession.usClientNodeId AS ceccjDestination\n | FROM ChangeLog\n | JOIN ContentEntryContentCategoryJoin\n | ON ChangeLog.chTableId = 3\n | AND ChangeLog.chEntityPk = ContentEntryContentCategoryJoin.ceccjUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ContentEntryContentCategoryJoin.ceccjLct != COALESCE(\n | (SELECT ceccjVersionId\n | FROM ContentEntryContentCategoryJoinReplicate\n | WHERE ceccjPk = ContentEntryContentCategoryJoin.ceccjUid\n | AND ceccjDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(ceccjPk, ceccjDestination) DO UPDATE\n | SET ceccjPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ContentEntryContentCategoryJoinReplicate(ceccjPk, ceccjDestination)\n | SELECT DISTINCT ContentEntryContentCategoryJoin.ceccjUid AS ceccjUid,\n | UserSession.usClientNodeId AS ceccjDestination\n | FROM ChangeLog\n | JOIN ContentEntryContentCategoryJoin\n | ON ChangeLog.chTableId = 3\n | AND ChangeLog.chEntityPk = ContentEntryContentCategoryJoin.ceccjUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ContentEntryContentCategoryJoin.ceccjLct != COALESCE(\n | (SELECT ceccjVersionId\n | FROM ContentEntryContentCategoryJoinReplicate\n | WHERE ceccjPk = ContentEntryContentCategoryJoin.ceccjUid\n | AND ceccjDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(ceccjPk, ceccjDestination) DO UPDATE\n | SET ceccjPending = true\n | \n | \n |")),s$,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},t$.prototype.replicateOnChange=function(t,e){var n=new a$(this,t);return e?n:n.doResume(null)},t$.prototype.publicContentEntryContentCategoryJoins=function(){return ht(this._db,new st("SELECT ContentEntryContentCategoryJoin.* FROM ContentEntryContentCategoryJoin LEFT JOIN ContentEntry ON ContentEntryContentCategoryJoin.ceccjContentEntryUid = ContentEntry.contentEntryUid WHERE ContentEntry.publik"),l$)},t$.prototype.findJoinByParentChildUuids_3pjtqy$=function(t,e){return ht(this._db,new st("SELECT * from ContentEntryContentCategoryJoin WHERE ceccjContentCategoryUid = ? AND ceccjContentEntryUid = ?"),(n=t,i=e,function(t){return t.setLong_6svq3l$(1,n),t.setLong_6svq3l$(2,i),ut(t.executeQuery(),u$)}));var n,i},h$.prototype.makeSql_6taknv$=function(t){return"INSERT INTO ContentEntryContentCategoryJoin (ceccjUid, ceccjContentEntryUid, ceccjContentCategoryUid, ceccjLocalChangeSeqNum, ceccjMasterChangeSeqNum, ceccjLastChangedBy, ceccjLct) VALUES(?, ?, ?, ?, ?, ?, ?)"},h$.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.ceccjUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.ceccjUid),t.setLong_6svq3l$(2,e.ceccjContentEntryUid),t.setLong_6svq3l$(3,e.ceccjContentCategoryUid),t.setLong_6svq3l$(4,e.ceccjLocalChangeSeqNum),t.setLong_6svq3l$(5,e.ceccjMasterChangeSeqNum),t.setInt_vux9f0$(6,e.ceccjLastChangedBy),t.setLong_6svq3l$(7,e.ceccjLct)},h$.$metadata$={kind:c,interfaces:[pt]},t$.$metadata$={kind:c,simpleName:"ContentEntryContentCategoryJoinDao_JdbcKt",interfaces:[Zg]},p$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},p$.prototype=Object.create(N.prototype),p$.prototype.constructor=p$,p$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},d$.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new p$(this,t,e);return n?i:i.doResume(null)},_$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_$.prototype=Object.create(N.prototype),_$.prototype.constructor=_$,_$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},d$.prototype.replicateOnChange=function(t,e){var n=new _$(this,t);return e?n:n.doResume(null)},d$.prototype.publicContentEntryContentCategoryJoins=function(){throw v("Synchronous db access is NOT possible on Javascript!")},d$.prototype.findJoinByParentChildUuids_3pjtqy$=function(t,e){throw v("Synchronous db access is NOT possible on Javascript!")},d$.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},m$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},m$.prototype=Object.create(N.prototype),m$.prototype.constructor=m$,m$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.ceccjUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(3,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.ceccjUid=e,this.state_0=3;continue;case 3:if(this.local$entity.ceccjLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.ceccjUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},d$.prototype.insertAsync=function(t,e,n){var i=new m$(this,t,e);return n?i:i.doResume(null)},d$.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},d$.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},d$.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},d$.$metadata$={kind:c,simpleName:"ContentEntryContentCategoryJoinDao_ReplicateWrapper",interfaces:[Zg]},g$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},g$.prototype=Object.create(N.prototype),g$.prototype.constructor=g$,g$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},f$.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new g$(this,t,e);return n?i:i.doResume(null)},$$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},$$.prototype=Object.create(N.prototype),$$.prototype.constructor=$$,$$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},f$.prototype.replicateOnChange=function(t,e){var n=new $$(this,t);return e?n:n.doResume(null)},f$.prototype.publicContentEntryContentCategoryJoins=function(){return this._dao.publicContentEntryContentCategoryJoins()},f$.prototype.findJoinByParentChildUuids_3pjtqy$=function(t,e){return this._dao.findJoinByParentChildUuids_3pjtqy$(t,e)},f$.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},E$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},E$.prototype=Object.create(N.prototype),E$.prototype.constructor=E$,E$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},f$.prototype.insertAsync=function(t,e,n){var i=new E$(this,t,e);return n?i:i.doResume(null)},f$.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},f$.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},f$.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},f$.$metadata$={kind:c,simpleName:"ContentEntryContentCategoryJoinDao_Repo",interfaces:[Zg]},y$.$metadata$={kind:c,simpleName:"ContentEntryDao",interfaces:[X6]},S$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},S$.prototype=Object.create(N.prototype),S$.prototype.constructor=S$,S$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterContentEntry_.insertListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.insertListAsync_o4zuk4$=function(t,e,n){var i=new S$(this,t,e);return n?i:i.doResume(null)},b$.prototype.replaceList_o4zuk4$=function(t){this._insertAdapterContentEntry_upsert.insertList_4ezy5m$(t)},b$.prototype.insertWithReplace_4pedz3$=function(t){this._insertAdapterContentEntry_upsert.insert_11rb$(t)},b$.prototype.insert_11rb$=function(t){return this._insertAdapterContentEntry_.insertAndReturnId_11rb$(t)},v$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},v$.prototype=Object.create(N.prototype),v$.prototype.constructor=v$,v$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterContentEntry_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.insertAsync=function(t,e,n){var i=new v$(this,t,e);return n?i:i.doResume(null)},b$.prototype.insertList_4ezy5m$=function(t){this._insertAdapterContentEntry_.insertList_4ezy5m$(t)},b$.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE ContentEntry SET title = ?, description = ?, entryId = ?, author = ?, publisher = ?, licenseType = ?, licenseName = ?, licenseUrl = ?, sourceUrl = ?, thumbnailUrl = ?, lastModified = ?, primaryLanguageUid = ?, languageVariantUid = ?, contentFlags = ?, leaf = ?, publik = ?, ceInactive = ?, completionCriteria = ?, minScore = ?, contentTypeFlag = ?, contentOwner = ?, contentEntryLocalChangeSeqNum = ?, contentEntryMasterChangeSeqNum = ?, contentEntryLastChangedBy = ?, contentEntryLct = ? WHERE contentEntryUid = ?",(e=t,function(t){return t.setString_vqvrqt$(1,e.title),t.setString_vqvrqt$(2,e.description),t.setString_vqvrqt$(3,e.entryId),t.setString_vqvrqt$(4,e.author),t.setString_vqvrqt$(5,e.publisher),t.setInt_vux9f0$(6,e.licenseType),t.setString_vqvrqt$(7,e.licenseName),t.setString_vqvrqt$(8,e.licenseUrl),t.setString_vqvrqt$(9,e.sourceUrl),t.setString_vqvrqt$(10,e.thumbnailUrl),t.setLong_6svq3l$(11,e.lastModified),t.setLong_6svq3l$(12,e.primaryLanguageUid),t.setLong_6svq3l$(13,e.languageVariantUid),t.setInt_vux9f0$(14,e.contentFlags),t.setBoolean_fzusl$(15,e.leaf),t.setBoolean_fzusl$(16,e.publik),t.setBoolean_fzusl$(17,e.ceInactive),t.setInt_vux9f0$(18,e.completionCriteria),t.setInt_vux9f0$(19,e.minScore),t.setInt_vux9f0$(20,e.contentTypeFlag),t.setLong_6svq3l$(21,e.contentOwner),t.setLong_6svq3l$(22,e.contentEntryLocalChangeSeqNum),t.setLong_6svq3l$(23,e.contentEntryMasterChangeSeqNum),t.setInt_vux9f0$(24,e.contentEntryLastChangedBy),t.setLong_6svq3l$(25,e.contentEntryLct),t.setLong_6svq3l$(26,e.contentEntryUid),t.executeUpdate()}))},C$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},C$.prototype=Object.create(N.prototype),C$.prototype.constructor=C$,C$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$entity.title),this.local$_stmt.setString_vqvrqt$(2,this.local$closure$entity.description),this.local$_stmt.setString_vqvrqt$(3,this.local$closure$entity.entryId),this.local$_stmt.setString_vqvrqt$(4,this.local$closure$entity.author),this.local$_stmt.setString_vqvrqt$(5,this.local$closure$entity.publisher),this.local$_stmt.setInt_vux9f0$(6,this.local$closure$entity.licenseType),this.local$_stmt.setString_vqvrqt$(7,this.local$closure$entity.licenseName),this.local$_stmt.setString_vqvrqt$(8,this.local$closure$entity.licenseUrl),this.local$_stmt.setString_vqvrqt$(9,this.local$closure$entity.sourceUrl),this.local$_stmt.setString_vqvrqt$(10,this.local$closure$entity.thumbnailUrl),this.local$_stmt.setLong_6svq3l$(11,this.local$closure$entity.lastModified),this.local$_stmt.setLong_6svq3l$(12,this.local$closure$entity.primaryLanguageUid),this.local$_stmt.setLong_6svq3l$(13,this.local$closure$entity.languageVariantUid),this.local$_stmt.setInt_vux9f0$(14,this.local$closure$entity.contentFlags),this.local$_stmt.setBoolean_fzusl$(15,this.local$closure$entity.leaf),this.local$_stmt.setBoolean_fzusl$(16,this.local$closure$entity.publik),this.local$_stmt.setBoolean_fzusl$(17,this.local$closure$entity.ceInactive),this.local$_stmt.setInt_vux9f0$(18,this.local$closure$entity.completionCriteria),this.local$_stmt.setInt_vux9f0$(19,this.local$closure$entity.minScore),this.local$_stmt.setInt_vux9f0$(20,this.local$closure$entity.contentTypeFlag),this.local$_stmt.setLong_6svq3l$(21,this.local$closure$entity.contentOwner),this.local$_stmt.setLong_6svq3l$(22,this.local$closure$entity.contentEntryLocalChangeSeqNum),this.local$_stmt.setLong_6svq3l$(23,this.local$closure$entity.contentEntryMasterChangeSeqNum),this.local$_stmt.setInt_vux9f0$(24,this.local$closure$entity.contentEntryLastChangedBy),this.local$_stmt.setLong_6svq3l$(25,this.local$closure$entity.contentEntryLct),this.local$_stmt.setLong_6svq3l$(26,this.local$closure$entity.contentEntryUid),this.local$tmp$=this.local$closure$_result.v,this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$closure$_result.v=this.local$tmp$+this.result_0|0,V;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},T$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},T$.prototype=Object.create(N.prototype),T$.prototype.constructor=T$,T$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_result={v:0},this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE ContentEntry SET title = ?, description = ?, entryId = ?, author = ?, publisher = ?, licenseType = ?, licenseName = ?, licenseUrl = ?, sourceUrl = ?, thumbnailUrl = ?, lastModified = ?, primaryLanguageUid = ?, languageVariantUid = ?, contentFlags = ?, leaf = ?, publik = ?, ceInactive = ?, completionCriteria = ?, minScore = ?, contentTypeFlag = ?, contentOwner = ?, contentEntryLocalChangeSeqNum = ?, contentEntryMasterChangeSeqNum = ?, contentEntryLastChangedBy = ?, contentEntryLct = ? WHERE contentEntryUid = ?",N$(this.local$entity,this.local$_result),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$_result.v;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.updateAsync_4pedz3$=function(t,e,n){var i=new T$(this,t,e);return n?i:i.doResume(null)},b$.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE ContentEntry SET title = ?, description = ?, entryId = ?, author = ?, publisher = ?, licenseType = ?, licenseName = ?, licenseUrl = ?, sourceUrl = ?, thumbnailUrl = ?, lastModified = ?, primaryLanguageUid = ?, languageVariantUid = ?, contentFlags = ?, leaf = ?, publik = ?, ceInactive = ?, completionCriteria = ?, minScore = ?, contentTypeFlag = ?, contentOwner = ?, contentEntryLocalChangeSeqNum = ?, contentEntryMasterChangeSeqNum = ?, contentEntryLastChangedBy = ?, contentEntryLct = ? WHERE contentEntryUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setString_vqvrqt$(1,i.title),t.setString_vqvrqt$(2,i.description),t.setString_vqvrqt$(3,i.entryId),t.setString_vqvrqt$(4,i.author),t.setString_vqvrqt$(5,i.publisher),t.setInt_vux9f0$(6,i.licenseType),t.setString_vqvrqt$(7,i.licenseName),t.setString_vqvrqt$(8,i.licenseUrl),t.setString_vqvrqt$(9,i.sourceUrl),t.setString_vqvrqt$(10,i.thumbnailUrl),t.setLong_6svq3l$(11,i.lastModified),t.setLong_6svq3l$(12,i.primaryLanguageUid),t.setLong_6svq3l$(13,i.languageVariantUid),t.setInt_vux9f0$(14,i.contentFlags),t.setBoolean_fzusl$(15,i.leaf),t.setBoolean_fzusl$(16,i.publik),t.setBoolean_fzusl$(17,i.ceInactive),t.setInt_vux9f0$(18,i.completionCriteria),t.setInt_vux9f0$(19,i.minScore),t.setInt_vux9f0$(20,i.contentTypeFlag),t.setLong_6svq3l$(21,i.contentOwner),t.setLong_6svq3l$(22,i.contentEntryLocalChangeSeqNum),t.setLong_6svq3l$(23,i.contentEntryMasterChangeSeqNum),t.setInt_vux9f0$(24,i.contentEntryLastChangedBy),t.setLong_6svq3l$(25,i.contentEntryLct),t.setLong_6svq3l$(26,i.contentEntryUid),t.executeUpdate()}return t.getConnection().commit(),V}))},L$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},L$.prototype=Object.create(N.prototype),L$.prototype.constructor=L$,L$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},w$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},w$.prototype=Object.create(N.prototype),w$.prototype.constructor=w$,w$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ContentEntryReplicate(cePk, ceDestination)\n | SELECT DISTINCT contentEntryUid AS ceUid,\n | ? AS siteDestination\n | FROM ContentEntry\n | WHERE ContentEntry.contentEntryLct != COALESCE(\n | (SELECT ceVersionId\n | FROM ContentEntryReplicate\n | WHERE cePk = ContentEntry.contentEntryUid\n | AND ceDestination = ?), -1) \n | /*psql ON CONFLICT(cePk, ceDestination) DO UPDATE\n | SET cePending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ContentEntryReplicate(cePk, ceDestination)\n | SELECT DISTINCT contentEntryUid AS ceUid,\n | ? AS siteDestination\n | FROM ContentEntry\n | WHERE ContentEntry.contentEntryLct != COALESCE(\n | (SELECT ceVersionId\n | FROM ContentEntryReplicate\n | WHERE cePk = ContentEntry.contentEntryUid\n | AND ceDestination = ?), -1) \n | ON CONFLICT(cePk, ceDestination) DO UPDATE\n | SET cePending = true\n | \n | \n |")),z$(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new w$(this,t,e);return n?i:i.doResume(null)},O$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},O$.prototype=Object.create(N.prototype),O$.prototype.constructor=O$,O$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},A$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},A$.prototype=Object.create(N.prototype),A$.prototype.constructor=A$,A$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ContentEntryReplicate(cePk, ceDestination)\n | SELECT DISTINCT ContentEntry.contentEntryUid AS cePk,\n | UserSession.usClientNodeId AS siteDestination\n | FROM ChangeLog\n | JOIN ContentEntry\n | ON ChangeLog.chTableId = 42\n | AND ChangeLog.chEntityPk = ContentEntry.contentEntryUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ContentEntry.contentEntryLct != COALESCE(\n | (SELECT ceVersionId\n | FROM ContentEntryReplicate\n | WHERE cePk = ContentEntry.contentEntryUid\n | AND ceDestination = UserSession.usClientNodeId), 0) \n | /*psql ON CONFLICT(cePk, ceDestination) DO UPDATE\n | SET cePending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ContentEntryReplicate(cePk, ceDestination)\n | SELECT DISTINCT ContentEntry.contentEntryUid AS cePk,\n | UserSession.usClientNodeId AS siteDestination\n | FROM ChangeLog\n | JOIN ContentEntry\n | ON ChangeLog.chTableId = 42\n | AND ChangeLog.chEntityPk = ContentEntry.contentEntryUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ContentEntry.contentEntryLct != COALESCE(\n | (SELECT ceVersionId\n | FROM ContentEntryReplicate\n | WHERE cePk = ContentEntry.contentEntryUid\n | AND ceDestination = UserSession.usClientNodeId), 0) \n | ON CONFLICT(cePk, ceDestination) DO UPDATE\n | SET cePending = true\n | \n | \n |")),R$,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.replicateOnChange=function(t,e){var n=new A$(this,t);return e?n:n.doResume(null)},I$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},I$.prototype=Object.create(N.prototype),I$.prototype.constructor=I$,I$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$entryUuid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,x$);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.findEntryWithLanguageByEntryIdAsync_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT ContentEntry.*, Language.* FROM ContentEntry LEFT JOIN Language ON Language.langUid = ContentEntry.primaryLanguageUid WHERE ContentEntry.contentEntryUid=?"),(n=t,function(t,e,i){var o=new I$(n,t,e);return i?o:o.doResume(null)}),e);var n},D$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},D$.prototype=Object.create(N.prototype),D$.prototype.constructor=D$,D$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$entityUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$entityUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,U$);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.findEntryWithBlockAndLanguageByUidAsync_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT ContentEntry.*, \n | Language.*,\n | CourseBlock.*\n | FROM ContentEntry\n | LEFT JOIN Language \n | ON Language.langUid = ContentEntry.primaryLanguageUid \n | \n | LEFT JOIN CourseBlock\n | ON CourseBlock.cbType = 104\n | AND CourseBlock.cbEntityUid = ?\n | \n | WHERE ContentEntry.contentEntryUid = ? \n | \n ")),(n=t,function(t,e,i){var o=new D$(n,t,e);return i?o:o.doResume(null)}),e);var n},M$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},M$.prototype=Object.create(N.prototype),M$.prototype.constructor=M$,M$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$entryUuid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,P$);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.findEntryWithContainerByEntryId_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT ContentEntry.*, Container.* FROM ContentEntry LEFT \n | JOIN Container ON Container.containerUid = (\n | SELECT containerUid FROM Container WHERE containerContentEntryUid = ContentEntry.contentEntryUid ORDER BY cntLastModified DESC LIMIT 1) \n | WHERE ContentEntry.contentEntryUid=?\n | \n ")),(n=t,function(t,e,i){var o=new M$(n,t,e);return i?o:o.doResume(null)}),e);var n},j$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},j$.prototype=Object.create(N.prototype),j$.prototype.constructor=j$,j$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$entryUuid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,k$);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},q$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},q$.prototype=Object.create(N.prototype),q$.prototype.constructor=q$,q$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ContentEntryDao_JdbcKt._db,new st(S("\n |\n | SELECT ContentEntry.*, Container.* FROM ContentEntry LEFT \n | JOIN Container ON Container.containerUid = (\n | SELECT containerUid FROM Container WHERE containerContentEntryUid = ContentEntry.contentEntryUid ORDER BY cntLastModified DESC LIMIT 1) \n | WHERE ContentEntry.contentEntryUid=?\n | \n ")),G$(this.local$closure$entryUuid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.findEntryWithContainerByEntryIdLive_s8cxhz$=function(t){return new ft(this._db,p(["ContentEntry","Container"]),(e=this,n=t,function(t,i){var o=new q$(e,n,t);return i?o:o.doResume(null)}));var e,n},b$.prototype.findBySourceUrl_61zpoe$=function(t){return ht(this._db,new st("SELECT * FROM ContentEntry WHERE sourceUrl = ? LIMIT 1"),(e=t,function(t){return t.setString_vqvrqt$(1,e),ut(t.executeQuery(),F$)}));var e},W$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},W$.prototype=Object.create(N.prototype),W$.prototype.constructor=W$,W$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$contentEntryUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,B$);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.findTitleByUidAsync_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT title FROM ContentEntry WHERE contentEntryUid = ?"),(n=t,function(t,e,i){var o=new W$(n,t,e);return i?o:o.doResume(null)}),e);var n},K$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},K$.prototype=Object.create(N.prototype),K$.prototype.constructor=K$,K$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$parentUid),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,V$);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},J$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},J$.prototype=Object.create(N.prototype),J$.prototype.constructor=J$,J$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ContentEntryDao_JdbcKt._db,new st("SELECT * FROM (SELECT ContentEntry.* FROM ContentEntry LEFT Join ContentEntryParentChildJoin ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = ?) LIMIT ? OFFSET ?"),X$(this.local$closure$parentUid,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},H$.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$ContentEntryDao_JdbcKt._db,p(["ContentEntry","ContentEntryParentChildJoin"]),(n=this.this$ContentEntryDao_JdbcKt,i=this.closure$parentUid,o=e,r=t,function(t,e){var s=new J$(n,i,o,r,t);return e?s:s.doResume(null)}));var n,i,o,r},Q$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Q$.prototype=Object.create(N.prototype),Q$.prototype.constructor=Q$,Q$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$parentUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Y$);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},tE.prototype=Object.create(N.prototype),tE.prototype.constructor=tE,tE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ContentEntryDao_JdbcKt._db,new st("SELECT COUNT(*) FROM (SELECT ContentEntry.* FROM ContentEntry LEFT Join ContentEntryParentChildJoin ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = ?) "),Z$(this.local$closure$parentUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},H$.prototype.getLength=function(){return new ft(this.this$ContentEntryDao_JdbcKt._db,p(["ContentEntry","ContentEntryParentChildJoin"]),(t=this.this$ContentEntryDao_JdbcKt,e=this.closure$parentUid,function(n,i){var o=new tE(t,e,n);return i?o:o.doResume(null)}));var t,e},H$.$metadata$={kind:c,interfaces:[gt]},b$.prototype.getChildrenByParentUid_s8cxhz$=function(t){return new H$(this,t)},nE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},nE.prototype=Object.create(N.prototype),nE.prototype.constructor=nE,nE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$parentUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,eE);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.getChildrenByParentAsync_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT ContentEntry.*\n | FROM ContentEntryParentChildJoin\n | JOIN ContentEntry \n | ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid\n | WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = ?\n | \n ")),(n=t,function(t,e,i){var o=new nE(n,t,e);return i?o:o.doResume(null)}),e);var n},oE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},oE.prototype=Object.create(N.prototype),oE.prototype.constructor=oE,oE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$parentUid),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$limit),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,iE);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.getContentJobItemParamsByParentUid_liip7b$=function(t,e,n,i){return ct(this._db,new st(S("\n |\n | SELECT ContentEntry.contentEntryUid AS contentEntryUid, ContentEntry.leaf AS leaf, \n | COALESCE(Container.containerUid, 0) AS mostRecentContainerUid,\n | COALESCE(Container.fileSize, 0) AS mostRecentContainerSize\n | FROM ContentEntryParentChildJoin\n | JOIN ContentEntry \n | ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid\n | LEFT JOIN Container\n | ON containerUid = \n | (SELECT COALESCE((\n | SELECT Container.containerUid \n | FROM Container\n | WHERE Container.containerContentEntryUid = ContentEntry.contentEntryUid\n | ORDER BY Container.cntLastModified DESC\n | LIMIT 1),0))\n | WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = ?\n | LIMIT ?\n | OFFSET ? \n | \n ")),(o=t,r=e,s=n,function(t,e,n){var i=new oE(o,r,s,t,e);return n?i:i.doResume(null)}),i);var o,r,s},sE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},sE.prototype=Object.create(N.prototype),sE.prototype.constructor=sE,sE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$parentUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,rE);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.getCountNumberOfChildrenByParentUUidAsync_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT COUNT(*) FROM ContentEntry LEFT Join ContentEntryParentChildJoin ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = ?"),(n=t,function(t,e,i){var o=new sE(n,t,e);return i?o:o.doResume(null)}),e);var n},cE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},cE.prototype=Object.create(N.prototype),cE.prototype.constructor=cE,cE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$parentUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,aE);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.getContentByUuidAsync_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT * FROM ContentEntry where contentEntryUid = ? LIMIT 1"),(n=t,function(t,e,i){var o=new cE(n,t,e);return i?o:o.doResume(null)}),e);var n},uE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},uE.prototype=Object.create(N.prototype),uE.prototype.constructor=uE,uE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$entryUuid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,lE);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.findAllLanguageRelatedEntriesAsync_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT ContentEntry.* FROM ContentEntry LEFT JOIN ContentEntryRelatedEntryJoin ON ContentEntryRelatedEntryJoin.cerejRelatedEntryUid = ContentEntry.contentEntryUid WHERE ContentEntryRelatedEntryJoin.relType = 1 AND ContentEntryRelatedEntryJoin.cerejRelatedEntryUid != ?"),(n=t,function(t,e,i){var o=new uE(n,t,e);return i?o:o.doResume(null)}),e);var n},dE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},dE.prototype=Object.create(N.prototype),dE.prototype.constructor=dE,dE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$parentUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,hE);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.findListOfCategoriesAsync_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT DISTINCT ContentCategory.contentCategoryUid, ContentCategory.name AS categoryName, ContentCategorySchema.contentCategorySchemaUid, ContentCategorySchema.schemaName FROM ContentEntry LEFT JOIN ContentEntryContentCategoryJoin ON ContentEntryContentCategoryJoin.ceccjContentEntryUid = ContentEntry.contentEntryUid LEFT JOIN ContentCategory ON ContentCategory.contentCategoryUid = ContentEntryContentCategoryJoin.ceccjContentCategoryUid LEFT JOIN ContentCategorySchema ON ContentCategorySchema.contentCategorySchemaUid = ContentCategory.ctnCatContentCategorySchemaUid LEFT JOIN ContentEntryParentChildJoin ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = ? AND ContentCategory.contentCategoryUid != 0 ORDER BY ContentCategory.name"),(n=t,function(t,e,i){var o=new dE(n,t,e);return i?o:o.doResume(null)}),e);var n},_E.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_E.prototype=Object.create(N.prototype),_E.prototype.constructor=_E,_E.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$parentUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,pE);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.findUniqueLanguagesInListAsync_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT DISTINCT Language.* from Language LEFT JOIN ContentEntry ON ContentEntry.primaryLanguageUid = Language.langUid LEFT JOIN ContentEntryParentChildJoin ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = ? ORDER BY Language.name"),(n=t,function(t,e,i){var o=new _E(n,t,e);return i?o:o.doResume(null)}),e);var n},fE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fE.prototype=Object.create(N.prototype),fE.prototype.constructor=fE,fE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$parentUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,mE);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.findUniqueLanguageWithParentUid_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |SELECT DISTINCT Language.langUid, Language.name AS langName from Language\n | LEFT JOIN ContentEntry ON ContentEntry.primaryLanguageUid = Language.langUid\n | LEFT JOIN ContentEntryParentChildJoin ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid \n | WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = ? ORDER BY Language.name\n ")),(n=t,function(t,e,i){var o=new fE(n,t,e);return i?o:o.doResume(null)}),e);var n},$E.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},$E.prototype=Object.create(N.prototype),$E.prototype.constructor=$E,$E.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$entryUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,gE);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.findByUidAsync_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT * FROM ContentEntry WHERE contentEntryUid = ?"),(n=t,function(t,e,i){var o=new $E(n,t,e);return i?o:o.doResume(null)}),e);var n},yE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},yE.prototype=Object.create(N.prototype),yE.prototype.constructor=yE,yE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,EE);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.findByUidWithLanguageAsync_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT ContentEntry.*, Language.*\n | FROM ContentEntry\n | LEFT JOIN Language \n | ON Language.langUid = ContentEntry.primaryLanguageUid \n | WHERE ContentEntry.contentEntryUid = ? \n | \n ")),(n=t,function(t,e,i){var o=new yE(n,t,e);return i?o:o.doResume(null)}),e);var n},b$.prototype.findByUid_s8cxhz$=function(t){return ht(this._db,new st("SELECT * FROM ContentEntry WHERE contentEntryUid = ?"),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),bE)}));var e},vE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},vE.prototype=Object.create(N.prototype),vE.prototype.constructor=vE,vE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$title),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,SE);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},NE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},NE.prototype=Object.create(N.prototype),NE.prototype.constructor=NE,NE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ContentEntryDao_JdbcKt._db,new st("SELECT * FROM ContentEntry WHERE title = ?"),CE(this.local$closure$title),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.findByTitle_61zpoe$=function(t){return new ft(this._db,Et("ContentEntry"),(e=this,n=t,function(t,i){var o=new NE(e,n,t);return i?o:o.doResume(null)}));var e,n},LE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},LE.prototype=Object.create(N.prototype),LE.prototype.constructor=LE,LE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$contentEntryUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,TE);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.isMeteredAllowedForEntry_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT COALESCE((SELECT CAST(cjIsMeteredAllowed AS INTEGER) \n | FROM ContentJobItem \n | JOIN ContentJob\n | ON ContentJobItem.cjiJobUid = ContentJob.cjUid\n | WHERE cjiContentEntryUid = ?\n | AND cjiRecursiveStatus >= 4\n | AND cjiRecursiveStatus <= 20 LIMIT 1),\n | CAST(((SELECT connectivityState\n | FROM ConnectivityStatus\n | LIMIT 1) = 3) AS INTEGER),\n | 0) AS Status\n | \n ")),(n=t,function(t,e,i){var o=new LE(n,t,e);return i?o:o.doResume(null)}),e);var n},wE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},wE.prototype=Object.create(N.prototype),wE.prototype.constructor=wE,wE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$sourceUrl),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,zE);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.findBySourceUrlWithContentEntryStatusAsync_61zpoe$=function(t,e){return ct(this._db,new st("SELECT ContentEntry.* FROM ContentEntry WHERE ContentEntry.sourceUrl = ?"),(n=t,function(t,e,i){var o=new wE(n,t,e);return i?o:o.doResume(null)}),e);var n},AE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},AE.prototype=Object.create(N.prototype),AE.prototype.constructor=AE,AE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$parentUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$langParam),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$langParam),this.local$_stmt.setBoolean_fzusl$(5,this.local$closure$showHidden),this.local$_stmt.setBoolean_fzusl$(6,this.local$closure$onlyFolder),this.local$_stmt.setLong_6svq3l$(7,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(8,this.local$closure$categoryParam0),this.local$_stmt.setLong_6svq3l$(9,this.local$closure$categoryParam0),this.local$_stmt.setInt_vux9f0$(10,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(11,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(12,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(13,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,RE);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},IE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},IE.prototype=Object.create(N.prototype),IE.prototype.constructor=IE,IE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ContentEntryDao_JdbcKt._db,new st(S("\n |SELECT * FROM (\n | SELECT ContentEntry.*, ContentEntryParentChildJoin.*, Container.*, \n | COALESCE(StatementEntity.resultScoreMax,0) AS resultMax, \n | COALESCE(StatementEntity.resultScoreRaw,0) AS resultScore, \n | COALESCE(StatementEntity.resultScoreScaled,0) AS resultScaled, \n | COALESCE(StatementEntity.extensionProgress,0) AS progress, \n | COALESCE(StatementEntity.resultCompletion,'FALSE') AS contentComplete,\n | COALESCE(StatementEntity.resultSuccess, 0) AS success,\n | COALESCE((CASE WHEN StatementEntity.resultCompletion \n | THEN 1 ELSE 0 END),0) AS totalCompletedContent,\n | 0 AS assignmentContentWeight,\n | \n | 1 as totalContent, \n | \n | 0 as penalty\n | FROM ContentEntry \n | LEFT JOIN ContentEntryParentChildJoin \n | ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid \n | \n | LEFT JOIN StatementEntity\n |\t\t\t\t\t\t\tON StatementEntity.statementUid = \n | (SELECT statementUid \n |\t\t\t\t\t\t\t FROM StatementEntity \n | WHERE statementContentEntryUid = ContentEntry.contentEntryUid \n |\t\t\t\t\t\t\t AND StatementEntity.statementPersonUid = ?\n |\t\t\t\t\t\t\t AND contentEntryRoot \n | ORDER BY resultScoreScaled DESC, extensionProgress DESC, resultSuccess DESC LIMIT 1)\n | \n | LEFT JOIN Container \n | ON Container.containerUid = \n | (SELECT containerUid \n | FROM Container \n | WHERE containerContentEntryUid = ContentEntry.contentEntryUid \n | ORDER BY cntLastModified DESC LIMIT 1)\n | WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = ? \n | AND (? = 0 OR ContentEntry.primaryLanguageUid = ?) \n | AND (NOT ContentEntry.ceInactive OR ContentEntry.ceInactive = ?) \n | AND (NOT ContentEntry.leaf OR NOT ContentEntry.leaf = ?) \n | AND (ContentEntry.publik \n | OR (SELECT username\n | FROM Person\n | WHERE personUid = ?) IS NOT NULL) \n | AND \n | (? = 0 OR ? \n | IN (SELECT ceccjContentCategoryUid \n | FROM ContentEntryContentCategoryJoin \n | WHERE ceccjContentEntryUid = ContentEntry.contentEntryUid)) \n | ORDER BY ContentEntryParentChildJoin.childIndex,\n | CASE(?)\n | WHEN 1 THEN ContentEntry.title\n | ELSE ''\n | END ASC,\n | CASE(?)\n | WHEN 2 THEN ContentEntry.title\n | ELSE ''\n | END DESC, \n | ContentEntry.contentEntryUid) LIMIT ? OFFSET ?\n ")),xE(this.local$closure$personUid,this.local$closure$parentUid,this.local$closure$langParam,this.local$closure$showHidden,this.local$closure$onlyFolder,this.local$closure$categoryParam0,this.local$closure$sortOrder,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},OE.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$ContentEntryDao_JdbcKt._db,p(["ContentEntry","ContentEntryParentChildJoin","StatementEntity","Container","ContentEntryContentCategoryJoin"]),(n=this.this$ContentEntryDao_JdbcKt,i=this.closure$personUid,o=this.closure$parentUid,r=this.closure$langParam,s=this.closure$showHidden,a=this.closure$onlyFolder,c=this.closure$categoryParam0,l=this.closure$sortOrder,u=e,h=t,function(t,e){var d=new IE(n,i,o,r,s,a,c,l,u,h,t);return e?d:d.doResume(null)}));var n,i,o,r,s,a,c,l,u,h},DE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},DE.prototype=Object.create(N.prototype),DE.prototype.constructor=DE,DE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$parentUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$langParam),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$langParam),this.local$_stmt.setBoolean_fzusl$(5,this.local$closure$showHidden),this.local$_stmt.setBoolean_fzusl$(6,this.local$closure$onlyFolder),this.local$_stmt.setLong_6svq3l$(7,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(8,this.local$closure$categoryParam0),this.local$_stmt.setLong_6svq3l$(9,this.local$closure$categoryParam0),this.local$_stmt.setInt_vux9f0$(10,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(11,this.local$closure$sortOrder),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,UE);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ME.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ME.prototype=Object.create(N.prototype),ME.prototype.constructor=ME,ME.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ContentEntryDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (\n | SELECT ContentEntry.*, ContentEntryParentChildJoin.*, Container.*, \n | COALESCE(StatementEntity.resultScoreMax,0) AS resultMax, \n | COALESCE(StatementEntity.resultScoreRaw,0) AS resultScore, \n | COALESCE(StatementEntity.resultScoreScaled,0) AS resultScaled, \n | COALESCE(StatementEntity.extensionProgress,0) AS progress, \n | COALESCE(StatementEntity.resultCompletion,'FALSE') AS contentComplete,\n | COALESCE(StatementEntity.resultSuccess, 0) AS success,\n | COALESCE((CASE WHEN StatementEntity.resultCompletion \n | THEN 1 ELSE 0 END),0) AS totalCompletedContent,\n | 0 AS assignmentContentWeight,\n | \n | 1 as totalContent, \n | \n | 0 as penalty\n | FROM ContentEntry \n | LEFT JOIN ContentEntryParentChildJoin \n | ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid \n | \n | LEFT JOIN StatementEntity\n |\t\t\t\t\t\t\tON StatementEntity.statementUid = \n | (SELECT statementUid \n |\t\t\t\t\t\t\t FROM StatementEntity \n | WHERE statementContentEntryUid = ContentEntry.contentEntryUid \n |\t\t\t\t\t\t\t AND StatementEntity.statementPersonUid = ?\n |\t\t\t\t\t\t\t AND contentEntryRoot \n | ORDER BY resultScoreScaled DESC, extensionProgress DESC, resultSuccess DESC LIMIT 1)\n | \n | LEFT JOIN Container \n | ON Container.containerUid = \n | (SELECT containerUid \n | FROM Container \n | WHERE containerContentEntryUid = ContentEntry.contentEntryUid \n | ORDER BY cntLastModified DESC LIMIT 1)\n | WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = ? \n | AND (? = 0 OR ContentEntry.primaryLanguageUid = ?) \n | AND (NOT ContentEntry.ceInactive OR ContentEntry.ceInactive = ?) \n | AND (NOT ContentEntry.leaf OR NOT ContentEntry.leaf = ?) \n | AND (ContentEntry.publik \n | OR (SELECT username\n | FROM Person\n | WHERE personUid = ?) IS NOT NULL) \n | AND \n | (? = 0 OR ? \n | IN (SELECT ceccjContentCategoryUid \n | FROM ContentEntryContentCategoryJoin \n | WHERE ceccjContentEntryUid = ContentEntry.contentEntryUid)) \n | ORDER BY ContentEntryParentChildJoin.childIndex,\n | CASE(?)\n | WHEN 1 THEN ContentEntry.title\n | ELSE ''\n | END ASC,\n | CASE(?)\n | WHEN 2 THEN ContentEntry.title\n | ELSE ''\n | END DESC, \n | ContentEntry.contentEntryUid) \n ")),PE(this.local$closure$personUid,this.local$closure$parentUid,this.local$closure$langParam,this.local$closure$showHidden,this.local$closure$onlyFolder,this.local$closure$categoryParam0,this.local$closure$sortOrder),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},OE.prototype.getLength=function(){return new ft(this.this$ContentEntryDao_JdbcKt._db,p(["ContentEntry","ContentEntryParentChildJoin","StatementEntity","Container","ContentEntryContentCategoryJoin"]),(t=this.this$ContentEntryDao_JdbcKt,e=this.closure$personUid,n=this.closure$parentUid,i=this.closure$langParam,o=this.closure$showHidden,r=this.closure$onlyFolder,s=this.closure$categoryParam0,a=this.closure$sortOrder,function(c,l){var u=new ME(t,e,n,i,o,r,s,a,c);return l?u:u.doResume(null)}));var t,e,n,i,o,r,s,a},OE.$metadata$={kind:c,interfaces:[gt]},b$.prototype.getChildrenByParentUidWithCategoryFilterOrderByName_dqef2m$=function(t,e,n,i,o,r,s){return new OE(this,i,t,e,o,r,n,s)},GE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},GE.prototype=Object.create(N.prototype),GE.prototype.constructor=GE,GE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$personUid),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(4,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,jE);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},FE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},FE.prototype=Object.create(N.prototype),FE.prototype.constructor=FE,FE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ContentEntryDao_JdbcKt._db,new st(S("\n |SELECT * FROM (\n | SELECT ContentEntry.*, ContentEntryParentChildJoin.*, Container.*, \n | COALESCE(StatementEntity.resultScoreMax,0) AS resultMax, \n | COALESCE(StatementEntity.resultScoreRaw,0) AS resultScore, \n | COALESCE(StatementEntity.resultScoreScaled,0) AS resultScaled, \n | COALESCE(StatementEntity.extensionProgress,0) AS progress, \n | COALESCE(StatementEntity.resultCompletion,'FALSE') AS contentComplete,\n | COALESCE(StatementEntity.resultSuccess, 0) AS success,\n | COALESCE((CASE WHEN StatementEntity.resultCompletion \n | THEN 1 ELSE 0 END),0) AS totalCompletedContent,\n | 0 AS assignmentContentWeight,\n | \n | 1 as totalContent, \n | \n | 0 as penalty\n | FROM CourseBlock\n | JOIN ContentEntry \n | ON CourseBlock.cbType = 104\n | AND ContentEntry.contentEntryUid = CourseBlock.cbEntityUid\n | AND CAST(CourseBlock.cbActive AS INTEGER) = 1\n | LEFT JOIN ContentEntryParentChildJoin \n | ON ContentEntryParentChildJoin.cepcjUid = 0 \n | LEFT JOIN StatementEntity\n |\t\t\t\t\t\t\tON StatementEntity.statementUid = \n | (SELECT statementUid \n |\t\t\t\t\t\t\t FROM StatementEntity \n | WHERE statementContentEntryUid = ContentEntry.contentEntryUid \n |\t\t\t\t\t\t\t AND StatementEntity.statementPersonUid = ?\n |\t\t\t\t\t\t\t AND contentEntryRoot \n | ORDER BY resultScoreScaled DESC, extensionProgress DESC, resultSuccess DESC LIMIT 1) \n | LEFT JOIN Container \n | ON Container.containerUid = \n | (SELECT containerUid \n | FROM Container \n | WHERE containerContentEntryUid = ContentEntry.contentEntryUid \n | ORDER BY cntLastModified DESC LIMIT 1) \n | \n | WHERE CourseBlock.cbClazzUid IN\n | (SELECT ClazzEnrolment.clazzEnrolmentClazzUid\n | FROM ClazzEnrolment\n | WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?)\n | ) LIMIT ? OFFSET ?\n ")),qE(this.local$closure$personUid,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kE.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$ContentEntryDao_JdbcKt._db,p(["CourseBlock","ContentEntry","ContentEntryParentChildJoin","StatementEntity","Container","ClazzEnrolment"]),(n=this.this$ContentEntryDao_JdbcKt,i=this.closure$personUid,o=e,r=t,function(t,e){var s=new FE(n,i,o,r,t);return e?s:s.doResume(null)}));var n,i,o,r},WE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},WE.prototype=Object.create(N.prototype),WE.prototype.constructor=WE,WE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$personUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,BE);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},VE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},VE.prototype=Object.create(N.prototype),VE.prototype.constructor=VE,VE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ContentEntryDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (\n | SELECT ContentEntry.*, ContentEntryParentChildJoin.*, Container.*, \n | COALESCE(StatementEntity.resultScoreMax,0) AS resultMax, \n | COALESCE(StatementEntity.resultScoreRaw,0) AS resultScore, \n | COALESCE(StatementEntity.resultScoreScaled,0) AS resultScaled, \n | COALESCE(StatementEntity.extensionProgress,0) AS progress, \n | COALESCE(StatementEntity.resultCompletion,'FALSE') AS contentComplete,\n | COALESCE(StatementEntity.resultSuccess, 0) AS success,\n | COALESCE((CASE WHEN StatementEntity.resultCompletion \n | THEN 1 ELSE 0 END),0) AS totalCompletedContent,\n | 0 AS assignmentContentWeight,\n | \n | 1 as totalContent, \n | \n | 0 as penalty\n | FROM CourseBlock\n | JOIN ContentEntry \n | ON CourseBlock.cbType = 104\n | AND ContentEntry.contentEntryUid = CourseBlock.cbEntityUid\n | AND CAST(CourseBlock.cbActive AS INTEGER) = 1\n | LEFT JOIN ContentEntryParentChildJoin \n | ON ContentEntryParentChildJoin.cepcjUid = 0 \n | LEFT JOIN StatementEntity\n |\t\t\t\t\t\t\tON StatementEntity.statementUid = \n | (SELECT statementUid \n |\t\t\t\t\t\t\t FROM StatementEntity \n | WHERE statementContentEntryUid = ContentEntry.contentEntryUid \n |\t\t\t\t\t\t\t AND StatementEntity.statementPersonUid = ?\n |\t\t\t\t\t\t\t AND contentEntryRoot \n | ORDER BY resultScoreScaled DESC, extensionProgress DESC, resultSuccess DESC LIMIT 1) \n | LEFT JOIN Container \n | ON Container.containerUid = \n | (SELECT containerUid \n | FROM Container \n | WHERE containerContentEntryUid = ContentEntry.contentEntryUid \n | ORDER BY cntLastModified DESC LIMIT 1) \n | \n | WHERE CourseBlock.cbClazzUid IN\n | (SELECT ClazzEnrolment.clazzEnrolmentClazzUid\n | FROM ClazzEnrolment\n | WHERE ClazzEnrolment.clazzEnrolmentPersonUid = ?)\n | ) \n ")),HE(this.local$closure$personUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kE.prototype.getLength=function(){return new ft(this.this$ContentEntryDao_JdbcKt._db,p(["CourseBlock","ContentEntry","ContentEntryParentChildJoin","StatementEntity","Container","ClazzEnrolment"]),(t=this.this$ContentEntryDao_JdbcKt,e=this.closure$personUid,function(n,i){var o=new VE(t,e,n);return i?o:o.doResume(null)}));var t,e},kE.$metadata$={kind:c,interfaces:[gt]},b$.prototype.getContentFromMyCourses_s8cxhz$=function(t){return new kE(this,t)},JE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},JE.prototype=Object.create(N.prototype),JE.prototype.constructor=JE,JE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$personUid),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(4,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,XE);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},QE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},QE.prototype=Object.create(N.prototype),QE.prototype.constructor=QE,QE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ContentEntryDao_JdbcKt._db,new st(S("\n |SELECT * FROM (\n | SELECT ContentEntry.*, ContentEntryParentChildJoin.*, Container.*, \n | COALESCE(StatementEntity.resultScoreMax,0) AS resultMax, \n | COALESCE(StatementEntity.resultScoreRaw,0) AS resultScore, \n | COALESCE(StatementEntity.resultScoreScaled,0) AS resultScaled, \n | COALESCE(StatementEntity.extensionProgress,0) AS progress, \n | COALESCE(StatementEntity.resultCompletion,'FALSE') AS contentComplete,\n | COALESCE(StatementEntity.resultSuccess, 0) AS success,\n | COALESCE((CASE WHEN StatementEntity.resultCompletion \n | THEN 1 ELSE 0 END),0) AS totalCompletedContent,\n | 0 AS assignmentContentWeight,\n | \n | 1 as totalContent, \n | \n | 0 as penalty\n | FROM ContentEntry\n | LEFT JOIN ContentEntryParentChildJoin \n | ON ContentEntryParentChildJoin.cepcjUid = 0 \n | LEFT JOIN StatementEntity\n |\t\t\t\t\t\t\tON StatementEntity.statementUid = \n | (SELECT statementUid \n |\t\t\t\t\t\t\t FROM StatementEntity \n | WHERE statementContentEntryUid = ContentEntry.contentEntryUid \n |\t\t\t\t\t\t\t AND StatementEntity.statementPersonUid = ?\n |\t\t\t\t\t\t\t AND contentEntryRoot \n | ORDER BY resultScoreScaled DESC, extensionProgress DESC, resultSuccess DESC LIMIT 1) \n | LEFT JOIN Container \n | ON Container.containerUid = \n | (SELECT containerUid \n | FROM Container \n | WHERE containerContentEntryUid = ContentEntry.contentEntryUid \n | ORDER BY cntLastModified DESC LIMIT 1) \n | WHERE ContentEntry.contentOwner = ?\n | AND NOT EXISTS(\n | SELECT ContentEntryParentChildJoin.cepcjUid \n | FROM ContentEntryParentChildJoin\n | WHERE ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid)\n | ) LIMIT ? OFFSET ?\n ")),YE(this.local$closure$personUid,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},KE.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$ContentEntryDao_JdbcKt._db,p(["ContentEntry","ContentEntryParentChildJoin","StatementEntity","Container"]),(n=this.this$ContentEntryDao_JdbcKt,i=this.closure$personUid,o=e,r=t,function(t,e){var s=new QE(n,i,o,r,t);return e?s:s.doResume(null)}));var n,i,o,r},ty.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ty.prototype=Object.create(N.prototype),ty.prototype.constructor=ty,ty.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$personUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,ZE);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ny.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ny.prototype=Object.create(N.prototype),ny.prototype.constructor=ny,ny.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ContentEntryDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (\n | SELECT ContentEntry.*, ContentEntryParentChildJoin.*, Container.*, \n | COALESCE(StatementEntity.resultScoreMax,0) AS resultMax, \n | COALESCE(StatementEntity.resultScoreRaw,0) AS resultScore, \n | COALESCE(StatementEntity.resultScoreScaled,0) AS resultScaled, \n | COALESCE(StatementEntity.extensionProgress,0) AS progress, \n | COALESCE(StatementEntity.resultCompletion,'FALSE') AS contentComplete,\n | COALESCE(StatementEntity.resultSuccess, 0) AS success,\n | COALESCE((CASE WHEN StatementEntity.resultCompletion \n | THEN 1 ELSE 0 END),0) AS totalCompletedContent,\n | 0 AS assignmentContentWeight,\n | \n | 1 as totalContent, \n | \n | 0 as penalty\n | FROM ContentEntry\n | LEFT JOIN ContentEntryParentChildJoin \n | ON ContentEntryParentChildJoin.cepcjUid = 0 \n | LEFT JOIN StatementEntity\n |\t\t\t\t\t\t\tON StatementEntity.statementUid = \n | (SELECT statementUid \n |\t\t\t\t\t\t\t FROM StatementEntity \n | WHERE statementContentEntryUid = ContentEntry.contentEntryUid \n |\t\t\t\t\t\t\t AND StatementEntity.statementPersonUid = ?\n |\t\t\t\t\t\t\t AND contentEntryRoot \n | ORDER BY resultScoreScaled DESC, extensionProgress DESC, resultSuccess DESC LIMIT 1) \n | LEFT JOIN Container \n | ON Container.containerUid = \n | (SELECT containerUid \n | FROM Container \n | WHERE containerContentEntryUid = ContentEntry.contentEntryUid \n | ORDER BY cntLastModified DESC LIMIT 1) \n | WHERE ContentEntry.contentOwner = ?\n | AND NOT EXISTS(\n | SELECT ContentEntryParentChildJoin.cepcjUid \n | FROM ContentEntryParentChildJoin\n | WHERE ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid)\n | ) \n ")),ey(this.local$closure$personUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},KE.prototype.getLength=function(){return new ft(this.this$ContentEntryDao_JdbcKt._db,p(["ContentEntry","ContentEntryParentChildJoin","StatementEntity","Container"]),(t=this.this$ContentEntryDao_JdbcKt,e=this.closure$personUid,function(n,i){var o=new ny(t,e,n);return i?o:o.doResume(null)}));var t,e},KE.$metadata$={kind:c,interfaces:[gt]},b$.prototype.getContentByOwner_s8cxhz$=function(t){return new KE(this,t)},b$.prototype.getChildrenByAll_s8cxhz$=function(t){return ht(this._db,new st("SELECT ContentEntry.* FROM ContentEntry LEFT JOIN ContentEntryParentChildJoin ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = ?"),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),iy)}));var e},ry.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ry.prototype=Object.create(N.prototype),ry.prototype.constructor=ry,ry.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$parentUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,oy);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ay.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ay.prototype=Object.create(N.prototype),ay.prototype.constructor=ay,ay.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ContentEntryDao_JdbcKt._db,new st("SELECT * FROM ContentEntry where contentEntryUid = ? LIMIT 1"),sy(this.local$closure$parentUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.findLiveContentEntry_s8cxhz$=function(t){return new ft(this._db,Et("ContentEntry"),(e=this,n=t,function(t,i){var o=new ay(e,n,t);return i?o:o.doResume(null)}));var e,n},b$.prototype.getContentEntryUidFromXapiObjectId_61zpoe$=function(t){return ht(this._db,new st(S("\n |SELECT COALESCE((SELECT contentEntryUid \n | FROM ContentEntry \n | WHERE entryId = ? \n | LIMIT 1),0) AS ID\n ")),(e=t,function(t){return t.setString_vqvrqt$(1,e),ut(t.executeQuery(),cy)}));var e},b$.prototype.findSimilarIdEntryForKhan_61zpoe$=function(t){return ht(this._db,new st("SELECT * FROM ContentEntry WHERE sourceUrl LIKE ?"),(e=t,function(t){return t.setString_vqvrqt$(1,e),ut(t.executeQuery(),ly)}));var e},hy.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},hy.prototype=Object.create(N.prototype),hy.prototype.constructor=hy,hy.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$contentEntryUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,uy);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.getRecursiveDownloadTotals_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | WITH RECURSIVE \n | ContentEntry_recursive(contentEntryUid, containerSize) AS (\n | SELECT contentEntryUid, \n | (SELECT COALESCE((SELECT fileSize \n | FROM Container \n | WHERE containerContentEntryUid = ContentEntry.contentEntryUid \n | ORDER BY cntLastModified DESC LIMIT 1), 0)) AS containerSize \n | FROM ContentEntry \n | WHERE contentEntryUid = ?\n | AND NOT ceInactive\n | UNION \n | SELECT ContentEntry.contentEntryUid, \n | (SELECT COALESCE((SELECT fileSize \n | FROM Container \n | WHERE containerContentEntryUid = ContentEntry.contentEntryUid \n | ORDER BY cntLastModified DESC LIMIT 1), 0)) AS containerSize \n | FROM ContentEntry\n | LEFT JOIN ContentEntryParentChildJoin \n | ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid,\n | ContentEntry_recursive\n | WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = ContentEntry_recursive.contentEntryUid\n | AND NOT ceInactive)\n | SELECT COUNT(*) AS numEntries, \n | SUM(containerSize) AS totalSize \n | FROM ContentEntry_recursive\n ")),(n=t,function(t,e,i){var o=new hy(n,t,e);return i?o:o.doResume(null)}),e);var n},_y.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_y.prototype=Object.create(N.prototype),_y.prototype.constructor=_y,_y.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$contentEntryUid),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,py);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},fy.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fy.prototype=Object.create(N.prototype),fy.prototype.constructor=fy,fy.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ContentEntryDao_JdbcKt._db,new st(S("\n |SELECT * FROM (WITH RECURSIVE ContentEntry_recursive(\n | contentEntryUid, title, ceInactive, contentFlags, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, leaf, publik, completionCriteria, minScore, contentOwner, contentTypeFlag, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct,\n | \n | cepcjUid, cepcjChildContentEntryUid, cepcjParentContentEntryUid, childIndex, cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum, cepcjLastChangedBy, cepcjLct,\n | \n | containerUid, cntLocalCsn, cntMasterCsn, cntLastModBy, fileSize, containerContentEntryUid, cntLastModified, mimeType, remarks, mobileOptimized, cntNumEntries, cntLct\n | ) AS (\n | SELECT ContentEntry.contentEntryUid, ContentEntry.title, ContentEntry.ceInactive, ContentEntry.contentFlags, ContentEntry.description, ContentEntry.entryId, ContentEntry.author, ContentEntry.publisher, ContentEntry.licenseType, ContentEntry.licenseName, ContentEntry.licenseUrl, ContentEntry.sourceUrl, ContentEntry.thumbnailUrl, ContentEntry.lastModified, ContentEntry.primaryLanguageUid, ContentEntry.languageVariantUid, ContentEntry.leaf, ContentEntry.publik, ContentEntry.completionCriteria, ContentEntry.minScore, ContentEntry.contentOwner, ContentEntry.contentTypeFlag, ContentEntry.contentEntryLocalChangeSeqNum, ContentEntry.contentEntryMasterChangeSeqNum, ContentEntry.contentEntryLastChangedBy, ContentEntry.contentEntryLct,\n | ContentEntryParentChildJoin.cepcjUid, ContentEntryParentChildJoin.cepcjChildContentEntryUid, ContentEntryParentChildJoin.cepcjParentContentEntryUid, ContentEntryParentChildJoin.childIndex, ContentEntryParentChildJoin.cepcjLocalChangeSeqNum, ContentEntryParentChildJoin.cepcjMasterChangeSeqNum, ContentEntryParentChildJoin.cepcjLastChangedBy, ContentEntryParentChildJoin.cepcjLct,\n | Container.containerUid, Container.cntLocalCsn, Container.cntMasterCsn, Container.cntLastModBy, Container.fileSize, Container.containerContentEntryUid, Container.cntLastModified, Container.mimeType, Container.remarks, Container.mobileOptimized, Container.cntNumEntries, Container.cntLct\n | FROM \n | ContentEntry\n | LEFT JOIN ContentEntryParentChildJoin ON ContentEntry.contentEntryUid = ContentEntryParentChildJoin.cepcjChildContentEntryUid \n | LEFT JOIN Container ON Container.containerUid = (SELECT COALESCE((SELECT containerUid FROM Container WHERE containerContentEntryUid = ContentEntry.contentEntryUid ORDER BY cntLastModified DESC LIMIT 1), 0))\n | WHERE ContentEntry.contentEntryUid = ?\n | UNION\n | SELECT ContentEntry.contentEntryUid, ContentEntry.title, ContentEntry.ceInactive, ContentEntry.contentFlags, ContentEntry.description, ContentEntry.entryId, ContentEntry.author, ContentEntry.publisher, ContentEntry.licenseType, ContentEntry.licenseName, ContentEntry.licenseUrl, ContentEntry.sourceUrl, ContentEntry.thumbnailUrl, ContentEntry.lastModified, ContentEntry.primaryLanguageUid, ContentEntry.languageVariantUid, ContentEntry.leaf, ContentEntry.publik, ContentEntry.completionCriteria, ContentEntry.minScore, ContentEntry.contentOwner, ContentEntry.contentTypeFlag, ContentEntry.contentEntryLocalChangeSeqNum, ContentEntry.contentEntryMasterChangeSeqNum, ContentEntry.contentEntryLastChangedBy, ContentEntry.contentEntryLct,\n | ContentEntryParentChildJoin.cepcjUid, ContentEntryParentChildJoin.cepcjChildContentEntryUid, ContentEntryParentChildJoin.cepcjParentContentEntryUid, ContentEntryParentChildJoin.childIndex, ContentEntryParentChildJoin.cepcjLocalChangeSeqNum, ContentEntryParentChildJoin.cepcjMasterChangeSeqNum, ContentEntryParentChildJoin.cepcjLastChangedBy, ContentEntryParentChildJoin.cepcjLct, \n | Container.containerUid, Container.cntLocalCsn, Container.cntMasterCsn, Container.cntLastModBy, Container.fileSize, Container.containerContentEntryUid, Container.cntLastModified, Container.mimeType, Container.remarks, Container.mobileOptimized, Container.cntNumEntries, Container.cntLct\n | FROM \n | ContentEntry\n | LEFT JOIN ContentEntryParentChildJoin ON ContentEntry.contentEntryUid = ContentEntryParentChildJoin.cepcjChildContentEntryUid \n | LEFT JOIN Container ON Container.containerUid = (SELECT COALESCE((SELECT containerUid FROM Container WHERE containerContentEntryUid = ContentEntry.contentEntryUid ORDER BY cntLastModified DESC LIMIT 1), 0)),\n | ContentEntry_recursive\n | WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = ContentEntry_recursive.contentEntryUid)\n | SELECT * FROM ContentEntry_recursive) LIMIT ? OFFSET ?\n ")),my(this.local$closure$contentEntryUid,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dy.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$ContentEntryDao_JdbcKt._db,p(["ContentEntry","ContentEntryParentChildJoin","Container"]),(n=this.this$ContentEntryDao_JdbcKt,i=this.closure$contentEntryUid,o=e,r=t,function(t,e){var s=new fy(n,i,o,r,t);return e?s:s.doResume(null)}));var n,i,o,r},$y.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},$y.prototype=Object.create(N.prototype),$y.prototype.constructor=$y,$y.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$contentEntryUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,gy);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yy.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},yy.prototype=Object.create(N.prototype),yy.prototype.constructor=yy,yy.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ContentEntryDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (WITH RECURSIVE ContentEntry_recursive(\n | contentEntryUid, title, ceInactive, contentFlags, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, leaf, publik, completionCriteria, minScore, contentOwner, contentTypeFlag, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct,\n | \n | cepcjUid, cepcjChildContentEntryUid, cepcjParentContentEntryUid, childIndex, cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum, cepcjLastChangedBy, cepcjLct,\n | \n | containerUid, cntLocalCsn, cntMasterCsn, cntLastModBy, fileSize, containerContentEntryUid, cntLastModified, mimeType, remarks, mobileOptimized, cntNumEntries, cntLct\n | ) AS (\n | SELECT ContentEntry.contentEntryUid, ContentEntry.title, ContentEntry.ceInactive, ContentEntry.contentFlags, ContentEntry.description, ContentEntry.entryId, ContentEntry.author, ContentEntry.publisher, ContentEntry.licenseType, ContentEntry.licenseName, ContentEntry.licenseUrl, ContentEntry.sourceUrl, ContentEntry.thumbnailUrl, ContentEntry.lastModified, ContentEntry.primaryLanguageUid, ContentEntry.languageVariantUid, ContentEntry.leaf, ContentEntry.publik, ContentEntry.completionCriteria, ContentEntry.minScore, ContentEntry.contentOwner, ContentEntry.contentTypeFlag, ContentEntry.contentEntryLocalChangeSeqNum, ContentEntry.contentEntryMasterChangeSeqNum, ContentEntry.contentEntryLastChangedBy, ContentEntry.contentEntryLct,\n | ContentEntryParentChildJoin.cepcjUid, ContentEntryParentChildJoin.cepcjChildContentEntryUid, ContentEntryParentChildJoin.cepcjParentContentEntryUid, ContentEntryParentChildJoin.childIndex, ContentEntryParentChildJoin.cepcjLocalChangeSeqNum, ContentEntryParentChildJoin.cepcjMasterChangeSeqNum, ContentEntryParentChildJoin.cepcjLastChangedBy, ContentEntryParentChildJoin.cepcjLct,\n | Container.containerUid, Container.cntLocalCsn, Container.cntMasterCsn, Container.cntLastModBy, Container.fileSize, Container.containerContentEntryUid, Container.cntLastModified, Container.mimeType, Container.remarks, Container.mobileOptimized, Container.cntNumEntries, Container.cntLct\n | FROM \n | ContentEntry\n | LEFT JOIN ContentEntryParentChildJoin ON ContentEntry.contentEntryUid = ContentEntryParentChildJoin.cepcjChildContentEntryUid \n | LEFT JOIN Container ON Container.containerUid = (SELECT COALESCE((SELECT containerUid FROM Container WHERE containerContentEntryUid = ContentEntry.contentEntryUid ORDER BY cntLastModified DESC LIMIT 1), 0))\n | WHERE ContentEntry.contentEntryUid = ?\n | UNION\n | SELECT ContentEntry.contentEntryUid, ContentEntry.title, ContentEntry.ceInactive, ContentEntry.contentFlags, ContentEntry.description, ContentEntry.entryId, ContentEntry.author, ContentEntry.publisher, ContentEntry.licenseType, ContentEntry.licenseName, ContentEntry.licenseUrl, ContentEntry.sourceUrl, ContentEntry.thumbnailUrl, ContentEntry.lastModified, ContentEntry.primaryLanguageUid, ContentEntry.languageVariantUid, ContentEntry.leaf, ContentEntry.publik, ContentEntry.completionCriteria, ContentEntry.minScore, ContentEntry.contentOwner, ContentEntry.contentTypeFlag, ContentEntry.contentEntryLocalChangeSeqNum, ContentEntry.contentEntryMasterChangeSeqNum, ContentEntry.contentEntryLastChangedBy, ContentEntry.contentEntryLct,\n | ContentEntryParentChildJoin.cepcjUid, ContentEntryParentChildJoin.cepcjChildContentEntryUid, ContentEntryParentChildJoin.cepcjParentContentEntryUid, ContentEntryParentChildJoin.childIndex, ContentEntryParentChildJoin.cepcjLocalChangeSeqNum, ContentEntryParentChildJoin.cepcjMasterChangeSeqNum, ContentEntryParentChildJoin.cepcjLastChangedBy, ContentEntryParentChildJoin.cepcjLct, \n | Container.containerUid, Container.cntLocalCsn, Container.cntMasterCsn, Container.cntLastModBy, Container.fileSize, Container.containerContentEntryUid, Container.cntLastModified, Container.mimeType, Container.remarks, Container.mobileOptimized, Container.cntNumEntries, Container.cntLct\n | FROM \n | ContentEntry\n | LEFT JOIN ContentEntryParentChildJoin ON ContentEntry.contentEntryUid = ContentEntryParentChildJoin.cepcjChildContentEntryUid \n | LEFT JOIN Container ON Container.containerUid = (SELECT COALESCE((SELECT containerUid FROM Container WHERE containerContentEntryUid = ContentEntry.contentEntryUid ORDER BY cntLastModified DESC LIMIT 1), 0)),\n | ContentEntry_recursive\n | WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = ContentEntry_recursive.contentEntryUid)\n | SELECT * FROM ContentEntry_recursive) \n ")),Ey(this.local$closure$contentEntryUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dy.prototype.getLength=function(){return new ft(this.this$ContentEntryDao_JdbcKt._db,p(["ContentEntry","ContentEntryParentChildJoin","Container"]),(t=this.this$ContentEntryDao_JdbcKt,e=this.closure$contentEntryUid,function(n,i){var o=new yy(t,e,n);return i?o:o.doResume(null)}));var t,e},dy.$metadata$={kind:c,interfaces:[gt]},b$.prototype.getAllEntriesRecursively_s8cxhz$=function(t){return new dy(this,t)},b$.prototype.getAllEntriesRecursivelyAsList_s8cxhz$=function(t){return ht(this._db,new st(S("\n |WITH RECURSIVE ContentEntry_recursive(\n | contentEntryUid, title, ceInactive, contentFlags, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, leaf, publik, completionCriteria, minScore, contentOwner, contentTypeFlag, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct,\n | \n | cepcjUid, cepcjChildContentEntryUid, cepcjParentContentEntryUid, childIndex, cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum, cepcjLastChangedBy, cepcjLct,\n | \n | containerUid, cntLocalCsn, cntMasterCsn, cntLastModBy, fileSize, containerContentEntryUid, cntLastModified, mimeType, remarks, mobileOptimized, cntNumEntries, cntLct\n | ) AS (\n | SELECT ContentEntry.contentEntryUid, ContentEntry.title, ContentEntry.ceInactive, ContentEntry.contentFlags, ContentEntry.description, ContentEntry.entryId, ContentEntry.author, ContentEntry.publisher, ContentEntry.licenseType, ContentEntry.licenseName, ContentEntry.licenseUrl, ContentEntry.sourceUrl, ContentEntry.thumbnailUrl, ContentEntry.lastModified, ContentEntry.primaryLanguageUid, ContentEntry.languageVariantUid, ContentEntry.leaf, ContentEntry.publik, ContentEntry.completionCriteria, ContentEntry.minScore, ContentEntry.contentOwner, ContentEntry.contentTypeFlag, ContentEntry.contentEntryLocalChangeSeqNum, ContentEntry.contentEntryMasterChangeSeqNum, ContentEntry.contentEntryLastChangedBy, ContentEntry.contentEntryLct,\n | ContentEntryParentChildJoin.cepcjUid, ContentEntryParentChildJoin.cepcjChildContentEntryUid, ContentEntryParentChildJoin.cepcjParentContentEntryUid, ContentEntryParentChildJoin.childIndex, ContentEntryParentChildJoin.cepcjLocalChangeSeqNum, ContentEntryParentChildJoin.cepcjMasterChangeSeqNum, ContentEntryParentChildJoin.cepcjLastChangedBy, ContentEntryParentChildJoin.cepcjLct,\n | Container.containerUid, Container.cntLocalCsn, Container.cntMasterCsn, Container.cntLastModBy, Container.fileSize, Container.containerContentEntryUid, Container.cntLastModified, Container.mimeType, Container.remarks, Container.mobileOptimized, Container.cntNumEntries, Container.cntLct\n | FROM \n | ContentEntry\n | LEFT JOIN ContentEntryParentChildJoin ON ContentEntry.contentEntryUid = ContentEntryParentChildJoin.cepcjChildContentEntryUid \n | LEFT JOIN Container ON Container.containerUid = (SELECT COALESCE((SELECT containerUid FROM Container WHERE containerContentEntryUid = ContentEntry.contentEntryUid ORDER BY cntLastModified DESC LIMIT 1), 0))\n | WHERE ContentEntry.contentEntryUid = ?\n | UNION\n | SELECT ContentEntry.contentEntryUid, ContentEntry.title, ContentEntry.ceInactive, ContentEntry.contentFlags, ContentEntry.description, ContentEntry.entryId, ContentEntry.author, ContentEntry.publisher, ContentEntry.licenseType, ContentEntry.licenseName, ContentEntry.licenseUrl, ContentEntry.sourceUrl, ContentEntry.thumbnailUrl, ContentEntry.lastModified, ContentEntry.primaryLanguageUid, ContentEntry.languageVariantUid, ContentEntry.leaf, ContentEntry.publik, ContentEntry.completionCriteria, ContentEntry.minScore, ContentEntry.contentOwner, ContentEntry.contentTypeFlag, ContentEntry.contentEntryLocalChangeSeqNum, ContentEntry.contentEntryMasterChangeSeqNum, ContentEntry.contentEntryLastChangedBy, ContentEntry.contentEntryLct,\n | ContentEntryParentChildJoin.cepcjUid, ContentEntryParentChildJoin.cepcjChildContentEntryUid, ContentEntryParentChildJoin.cepcjParentContentEntryUid, ContentEntryParentChildJoin.childIndex, ContentEntryParentChildJoin.cepcjLocalChangeSeqNum, ContentEntryParentChildJoin.cepcjMasterChangeSeqNum, ContentEntryParentChildJoin.cepcjLastChangedBy, ContentEntryParentChildJoin.cepcjLct, \n | Container.containerUid, Container.cntLocalCsn, Container.cntMasterCsn, Container.cntLastModBy, Container.fileSize, Container.containerContentEntryUid, Container.cntLastModified, Container.mimeType, Container.remarks, Container.mobileOptimized, Container.cntNumEntries, Container.cntLct\n | FROM \n | ContentEntry\n | LEFT JOIN ContentEntryParentChildJoin ON ContentEntry.contentEntryUid = ContentEntryParentChildJoin.cepcjChildContentEntryUid \n | LEFT JOIN Container ON Container.containerUid = (SELECT COALESCE((SELECT containerUid FROM Container WHERE containerContentEntryUid = ContentEntry.contentEntryUid ORDER BY cntLastModified DESC LIMIT 1), 0)),\n | ContentEntry_recursive\n | WHERE ContentEntryParentChildJoin.cepcjParentContentEntryUid = ContentEntry_recursive.contentEntryUid)\n | SELECT * FROM ContentEntry_recursive\n ")),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),by)}));var e},b$.prototype.updateContentEntryInActive_zaz62j$=function(t,e,n){var i,o,r;ht(this._db,new st(S("\n |\n | UPDATE ContentEntry \n | SET ceInactive = ?,\n | contentEntryLct = ? \n | WHERE ContentEntry.contentEntryUid = ?\n ")),(i=e,o=n,r=t,function(t){return t.setBoolean_fzusl$(1,i),t.setLong_6svq3l$(2,o),t.setLong_6svq3l$(3,r),t.executeUpdate()}))},b$.prototype.updateContentEntryContentFlag_h639zw$=function(t,e,n){var i,o,r;ht(this._db,new st(S("\n |\n | UPDATE ContentEntry \n | SET contentTypeFlag = ?,\n | contentEntryLct = ? \n | WHERE ContentEntry.contentEntryUid = ?\n ")),(i=t,o=n,r=e,function(t){return t.setInt_vux9f0$(1,i),t.setLong_6svq3l$(2,o),t.setLong_6svq3l$(3,r),t.executeUpdate()}))},vy.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},vy.prototype=Object.create(N.prototype),vy.prototype.constructor=vy,vy.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setArray_wqp8hw$(1,yt(this.local$_stmt.getConnection(),"BIGINT",q(this.local$closure$contentEntryUids))),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Sy);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.getContentEntryFromUids_gox9k8$=function(t,e){return ct(this._db,new st(S("\n |Select ContentEntry.contentEntryUid AS uid, ContentEntry.title As labelName \n | from ContentEntry WHERE contentEntryUid IN (?)\n "),!0),(n=t,function(t,e,i){var o=new vy(n,t,e);return i?o:o.doResume(null)}),e);var n},Ny.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ny.prototype=Object.create(N.prototype),Ny.prototype.constructor=Ny,Ny.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Cy);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ly.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ly.prototype=Object.create(N.prototype),Ly.prototype.constructor=Ly,Ly.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ContentEntryDao_JdbcKt._db,new st("SELECT ContentEntry.*, Language.* FROM ContentEntry LEFT JOIN Language ON Language.langUid = ContentEntry.primaryLanguageUid"),Ty,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.findAllLive=function(){return new ft(this._db,p(["ContentEntry","Language"]),(t=this,function(e,n){var i=new Ly(t,e);return n?i:i.doResume(null)}));var t},wy.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},wy.prototype=Object.create(N.prototype),wy.prototype.constructor=wy,wy.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$contentEntryUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$accountPersonUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$permission),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,zy);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.personHasPermissionWithContentEntry_b9bd0d$=function(t,e,n,i){return ct(this._db,new st(S("\n |SELECT EXISTS(SELECT 1 FROM ContentEntry WHERE ContentEntry.contentEntryUid = ? AND ? IN (\n | SELECT DISTINCT Person.PersonUid FROM Person\n | LEFT JOIN PersonGroupMember ON Person.personUid = PersonGroupMember.groupMemberPersonUid\n | LEFT JOIN EntityRole ON EntityRole.erGroupUid = PersonGroupMember.groupMemberGroupUid\n | LEFT JOIN Role ON EntityRole.erRoleUid = Role.roleUid\n | WHERE \n | CAST(Person.admin AS INTEGER) = 1\n | OR \n | (EntityRole.ertableId = 42 AND \n | EntityRole.erEntityUid = ContentEntry.contentEntryUid AND\n | (Role.rolePermissions & \n | ? ) > 0)))\n ")),(o=e,r=t,s=n,function(t,e,n){var i=new wy(o,r,s,t,e);return n?i:i.doResume(null)}),i);var o,r,s},Oy.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Oy.prototype=Object.create(N.prototype),Oy.prototype.constructor=Oy,Oy.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setBoolean_fzusl$(1,this.local$closure$inactive),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$changedTime),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$jobId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ay.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ay.prototype=Object.create(N.prototype),Ay.prototype.constructor=Ay,Ay.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | UPDATE ContentEntry\n | SET ceInactive = ?,\n | contentEntryLct = ?\n | WHERE contentEntryUid IN \n | (SELECT cjiContentEntryUid \n | FROM ContentJobItem\n | WHERE cjiJobUid = ?\n | AND CAST(ContentJobItem.cjiContentDeletedOnCancellation AS INTEGER) = 1)\n | \n ")),Ry(this.local$inactive,this.local$changedTime,this.local$jobId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.updateContentEntryActiveByContentJobUid_zaz62j$=function(t,e,n,i,o){var r=new Ay(this,t,e,n,i);return o?r:r.doResume(null)},xy.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},xy.prototype=Object.create(N.prototype),xy.prototype.constructor=xy,xy.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setBoolean_fzusl$(1,this.local$closure$toggleVisibility),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$changedTime),this.local$_stmt.setArray_wqp8hw$(3,yt(this.local$_stmt.getConnection(),"BIGINT",q(this.local$closure$selectedItem))),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Uy.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Uy.prototype=Object.create(N.prototype),Uy.prototype.constructor=Uy,Uy.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | UPDATE ContentEntry \n | SET ceInactive = ?, \n | contentEntryLct = ? \n | WHERE contentEntryUid IN (?)\n "),!0),Iy(this.local$toggleVisibility,this.local$changedTime,this.local$selectedItem),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.toggleVisibilityContentEntryItems_cbj1f0$=function(t,e,n,i,o){var r=new Uy(this,t,e,n,i);return o?r:r.doResume(null)},Py.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Py.prototype=Object.create(N.prototype),Py.prototype.constructor=Py,Py.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Dy);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.findContentEntriesWhereIsLeafAndLatestContainerHasNoEntriesOrHasZeroFileSize=function(t){return ct(this._db,new st(S("\n |\n |SELECT ContentEntry.*\n | FROM ContentEntry\n | JOIN Container ON Container.containerUid = \n | (SELECT containerUid \n | FROM Container\n | WHERE Container.containercontententryUid = ContentEntry.contentEntryUid\n | AND Container.cntLastModified = \n | (SELECT MAX(ContainerInternal.cntLastModified)\n | FROM Container ContainerInternal\n | WHERE ContainerInternal.containercontententryUid = ContentEntry.contentEntryUid))\n | WHERE ContentEntry.leaf \n | AND NOT ContentEntry.ceInactive\n | AND (NOT EXISTS \n | (SELECT ContainerEntry.ceUid\n | FROM ContainerEntry\n | WHERE ContainerEntry.ceContainerUid = Container.containerUid)\n | OR Container.fileSize = 0) \n | \n ")),My,t)},jy.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},jy.prototype=Object.create(N.prototype),jy.prototype.constructor=jy,jy.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$contentEntryUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$contentEntryUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$contentEntryUid),this.local$_stmt.setBoolean_fzusl$(4,this.local$closure$platformDownloadEnabled),this.local$_stmt.setBoolean_fzusl$(5,this.local$closure$platformDownloadEnabled),this.local$_stmt.setLong_6svq3l$(6,this.local$closure$contentEntryUid),this.local$_stmt.setBoolean_fzusl$(7,this.local$closure$platformDownloadEnabled),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,ky);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.buttonsToShowForContentEntry_2gd3um$=function(t,e,n){return ct(this._db,new st(S("\n |\n | WITH ContentEntryContainerUids AS \n | (SELECT Container.containerUid\n | FROM Container\n | WHERE Container.containerContentEntryUid = ?\n | AND Container.fileSize > 0),\n | \n | \n | LatestDownloadedContainer(containerUid) AS\n | (SELECT COALESCE(\n | (SELECT containerUid\n | FROM Container\n | WHERE Container.containerContentEntryUid = ? \n | AND EXISTS(\n | SELECT 1\n | FROM ContainerEntry\n | WHERE ContainerEntry.ceContainerUid = Container.containerUid)\n | ORDER BY cntLastModified DESC\n | LIMIT 1), 0))\n | ,\n | \n | \n | ActiveContentJobItems(cjiRecursiveStatus, cjiPluginId) AS\n | (SELECT cjiRecursiveStatus, cjiPluginId\n | FROM ContentJobItem\n | WHERE cjiContentEntryUid = ?\n | AND cjiStatus BETWEEN 4 AND 20)\n | ,\n | \n | ShowDownload(showDownload) AS \n | (SELECT CAST(? AS INTEGER) = 1\n | AND (SELECT containerUid FROM LatestDownloadedContainer) = 0\n | AND (SELECT COUNT(*) FROM ActiveContentJobItems) = 0\n | AND (SELECT COUNT(*) FROM ContentEntryContainerUids) > 0)\n | \n | SELECT (SELECT showDownload FROM ShowDownload)\n | AS showDownloadButton,\n | \n | CAST(? AS INTEGER) = 0\n | OR (SELECT containerUid FROM LatestDownloadedContainer) != 0 \n | AS showOpenButton,\n | \n | (SELECT NOT showDownload FROM ShowDownload)\n | AND (SELECT COUNT(*) FROM ActiveContentJobItems) = 0 \n | AND (SELECT COALESCE(\n | (SELECT cntLastModified\n | FROM Container\n | WHERE containerContentEntryUid = ?\n | AND fileSize > 0\n | ORDER BY cntLastModified DESC), 0)) \n | > (SELECT COALESCE(\n | (SELECT cntLastModified\n | FROM Container\n | WHERE Container.containerUid = \n | (SELECT LatestDownloadedContainer.containerUid\n | FROM LatestDownloadedContainer)), 0)) \n | AS showUpdateButton,\n | \n | CAST(? AS INTEGER) = 1\n | AND (SELECT containerUid FROM LatestDownloadedContainer) != 0\n | AND (SELECT COUNT(*) FROM ActiveContentJobItems) = 0 \n | AS showDeleteButton,\n | \n | (SELECT COUNT(*) \n | FROM ActiveContentJobItems \n | WHERE cjiPluginId = 10) > 0\n | AS showManageDownloadButton\n | \n ")),(i=t,o=e,function(t,e,n){var r=new jy(i,o,t,e);return n?r:r.doResume(null)}),n);var i,o},qy.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},qy.prototype=Object.create(N.prototype),qy.prototype.constructor=qy,qy.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$contentEntryUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$contentEntryUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Gy);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.statusForDownloadDialog_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT ContentJobItem.cjiRecursiveStatus AS status\n | FROM ContentJobItem\n | WHERE ContentJobItem.cjiContentEntryUid = ?\n | AND ContentJobItem.cjiPluginId != 14\n | AND ContentJobItem.cjiStatus BETWEEN 4 AND 25\n | AND NOT EXISTS(\n | SELECT 1\n | FROM ContentJobItem ContentJobItemInternal\n | WHERE ContentJobItemInternal.cjiContentEntryUid = ?\n | AND ContentJobItemInternal.cjiPluginId = 14\n | AND ContentJobItemInternal.cjiFinishTime > ContentJobItem.cjiStartTime)\n | ORDER BY ContentJobItem.cjiFinishTime DESC\n | LIMIT 1\n | \n ")),(n=t,function(t,e,i){var o=new qy(n,t,e);return i?o:o.doResume(null)}),e);var n},By.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},By.prototype=Object.create(N.prototype),By.prototype.constructor=By,By.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$contentEntryUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$contentEntryUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Fy);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b$.prototype.statusForContentEntryList_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT ContentJobItem.cjiRecursiveStatus AS status, \n | ContentJobItem.cjiRecursiveProgress AS progress,\n | ContentJobItem.cjiRecursiveTotal AS total\n | FROM ContentJobItem\n | WHERE ContentJobItem.cjiContentEntryUid = ?\n | AND ContentJobItem.cjiPluginId != 14\n | AND ContentJobItem.cjiStatus BETWEEN 4 AND 25\n | AND NOT EXISTS(\n | SELECT 1\n | FROM ContentJobItem ContentJobItemInternal\n | WHERE ContentJobItemInternal.cjiContentEntryUid = ?\n | AND ContentJobItemInternal.cjiPluginId = 14\n | AND ContentJobItemInternal.cjiFinishTime > ContentJobItem.cjiStartTime)\n | ORDER BY ContentJobItem.cjiFinishTime DESC\n | LIMIT 1\n | \n ")),(n=t,function(t,e,i){var o=new By(n,t,e);return i?o:o.doResume(null)}),e);var n},Wy.prototype.makeSql_6taknv$=function(t){return"INSERT INTO ContentEntry (contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},Wy.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.contentEntryUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.contentEntryUid),t.setString_vqvrqt$(2,e.title),t.setString_vqvrqt$(3,e.description),t.setString_vqvrqt$(4,e.entryId),t.setString_vqvrqt$(5,e.author),t.setString_vqvrqt$(6,e.publisher),t.setInt_vux9f0$(7,e.licenseType),t.setString_vqvrqt$(8,e.licenseName),t.setString_vqvrqt$(9,e.licenseUrl),t.setString_vqvrqt$(10,e.sourceUrl),t.setString_vqvrqt$(11,e.thumbnailUrl),t.setLong_6svq3l$(12,e.lastModified),t.setLong_6svq3l$(13,e.primaryLanguageUid),t.setLong_6svq3l$(14,e.languageVariantUid),t.setInt_vux9f0$(15,e.contentFlags),t.setBoolean_fzusl$(16,e.leaf),t.setBoolean_fzusl$(17,e.publik),t.setBoolean_fzusl$(18,e.ceInactive),t.setInt_vux9f0$(19,e.completionCriteria),t.setInt_vux9f0$(20,e.minScore),t.setInt_vux9f0$(21,e.contentTypeFlag),t.setLong_6svq3l$(22,e.contentOwner),t.setLong_6svq3l$(23,e.contentEntryLocalChangeSeqNum),t.setLong_6svq3l$(24,e.contentEntryMasterChangeSeqNum),t.setInt_vux9f0$(25,e.contentEntryLastChangedBy),t.setLong_6svq3l$(26,e.contentEntryLct)},Wy.$metadata$={kind:c,interfaces:[pt]},Hy.prototype.makeSql_6taknv$=function(t){return"INSERT OR REPLACE INTO ContentEntry (contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},Hy.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.contentEntryUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.contentEntryUid),t.setString_vqvrqt$(2,e.title),t.setString_vqvrqt$(3,e.description),t.setString_vqvrqt$(4,e.entryId),t.setString_vqvrqt$(5,e.author),t.setString_vqvrqt$(6,e.publisher),t.setInt_vux9f0$(7,e.licenseType),t.setString_vqvrqt$(8,e.licenseName),t.setString_vqvrqt$(9,e.licenseUrl),t.setString_vqvrqt$(10,e.sourceUrl),t.setString_vqvrqt$(11,e.thumbnailUrl),t.setLong_6svq3l$(12,e.lastModified),t.setLong_6svq3l$(13,e.primaryLanguageUid),t.setLong_6svq3l$(14,e.languageVariantUid),t.setInt_vux9f0$(15,e.contentFlags),t.setBoolean_fzusl$(16,e.leaf),t.setBoolean_fzusl$(17,e.publik),t.setBoolean_fzusl$(18,e.ceInactive),t.setInt_vux9f0$(19,e.completionCriteria),t.setInt_vux9f0$(20,e.minScore),t.setInt_vux9f0$(21,e.contentTypeFlag),t.setLong_6svq3l$(22,e.contentOwner),t.setLong_6svq3l$(23,e.contentEntryLocalChangeSeqNum),t.setLong_6svq3l$(24,e.contentEntryMasterChangeSeqNum),t.setInt_vux9f0$(25,e.contentEntryLastChangedBy),t.setLong_6svq3l$(26,e.contentEntryLct)},Hy.$metadata$={kind:c,interfaces:[pt]},b$.$metadata$={kind:c,simpleName:"ContentEntryDao_JdbcKt",interfaces:[y$]},Ky.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ky.prototype=Object.create(N.prototype),Ky.prototype.constructor=Ky,Ky.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Vy.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new Ky(this,t,e);return n?i:i.doResume(null)},Xy.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Xy.prototype=Object.create(N.prototype),Xy.prototype.constructor=Xy,Xy.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Vy.prototype.replicateOnChange=function(t,e){var n=new Xy(this,t);return e?n:n.doResume(null)},Jy.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Jy.prototype=Object.create(N.prototype),Jy.prototype.constructor=Jy,Jy.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_pkManager=_t(w(this.$this._db_0)),this.local$_generatedPks=F(),this.local$$receiver=this.local$entityList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$$receiver.hasNext()){this.state_0=5;continue}if(this.local$element=this.local$$receiver.next(),O(this.local$element.contentEntryUid,X)){if(this.state_0=3,this.result_0=this.local$_pkManager.nextIdAsync_za3lpa$(42,this),this.result_0===C)return C;continue}this.state_0=4;continue;case 3:var t=this.result_0;this.local$element.contentEntryUid=t,this.local$_generatedPks.add_11rb$(t),this.state_0=4;continue;case 4:this.local$element.contentEntryLct=J(),this.state_0=2;continue;case 5:if(this.state_0=6,this.result_0=this.$this._dao_0.insertListAsync_o4zuk4$(this.local$entityList,this),this.result_0===C)return C;continue;case 6:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Vy.prototype.insertListAsync_o4zuk4$=function(t,e,n){var i=new Jy(this,t,e);return n?i:i.doResume(null)},Vy.prototype.findEntryWithLanguageByEntryIdAsync_s8cxhz$=function(t,e){return this._dao_0.findEntryWithLanguageByEntryIdAsync_s8cxhz$(t,e)},Vy.prototype.findEntryWithBlockAndLanguageByUidAsync_s8cxhz$=function(t,e){return this._dao_0.findEntryWithBlockAndLanguageByUidAsync_s8cxhz$(t,e)},Vy.prototype.findEntryWithContainerByEntryId_s8cxhz$=function(t,e){return this._dao_0.findEntryWithContainerByEntryId_s8cxhz$(t,e)},Vy.prototype.findEntryWithContainerByEntryIdLive_s8cxhz$=function(t){return this._dao_0.findEntryWithContainerByEntryIdLive_s8cxhz$(t)},Vy.prototype.findBySourceUrl_61zpoe$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Vy.prototype.findTitleByUidAsync_s8cxhz$=function(t,e){return this._dao_0.findTitleByUidAsync_s8cxhz$(t,e)},Vy.prototype.getChildrenByParentUid_s8cxhz$=function(t){return this._dao_0.getChildrenByParentUid_s8cxhz$(t)},Vy.prototype.getChildrenByParentAsync_s8cxhz$=function(t,e){return this._dao_0.getChildrenByParentAsync_s8cxhz$(t,e)},Vy.prototype.getContentJobItemParamsByParentUid_liip7b$=function(t,e,n,i){return this._dao_0.getContentJobItemParamsByParentUid_liip7b$(t,e,n,i)},Vy.prototype.getCountNumberOfChildrenByParentUUidAsync_s8cxhz$=function(t,e){return this._dao_0.getCountNumberOfChildrenByParentUUidAsync_s8cxhz$(t,e)},Vy.prototype.getContentByUuidAsync_s8cxhz$=function(t,e){return this._dao_0.getContentByUuidAsync_s8cxhz$(t,e)},Vy.prototype.findAllLanguageRelatedEntriesAsync_s8cxhz$=function(t,e){return this._dao_0.findAllLanguageRelatedEntriesAsync_s8cxhz$(t,e)},Vy.prototype.findListOfCategoriesAsync_s8cxhz$=function(t,e){return this._dao_0.findListOfCategoriesAsync_s8cxhz$(t,e)},Vy.prototype.findUniqueLanguagesInListAsync_s8cxhz$=function(t,e){return this._dao_0.findUniqueLanguagesInListAsync_s8cxhz$(t,e)},Vy.prototype.findUniqueLanguageWithParentUid_s8cxhz$=function(t,e){return this._dao_0.findUniqueLanguageWithParentUid_s8cxhz$(t,e)},Vy.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Vy.prototype.findByUidAsync_s8cxhz$=function(t,e){return this._dao_0.findByUidAsync_s8cxhz$(t,e)},Vy.prototype.findByUidWithLanguageAsync_s8cxhz$=function(t,e){return this._dao_0.findByUidWithLanguageAsync_s8cxhz$(t,e)},Vy.prototype.findByUid_s8cxhz$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Vy.prototype.findByTitle_61zpoe$=function(t){return this._dao_0.findByTitle_61zpoe$(t)},Vy.prototype.isMeteredAllowedForEntry_s8cxhz$=function(t,e){return this._dao_0.isMeteredAllowedForEntry_s8cxhz$(t,e)},Vy.prototype.findBySourceUrlWithContentEntryStatusAsync_61zpoe$=function(t,e){return this._dao_0.findBySourceUrlWithContentEntryStatusAsync_61zpoe$(t,e)},Vy.prototype.getChildrenByParentUidWithCategoryFilterOrderByName_dqef2m$=function(t,e,n,i,o,r,s){return this._dao_0.getChildrenByParentUidWithCategoryFilterOrderByName_dqef2m$(t,e,n,i,o,r,s)},Vy.prototype.getContentFromMyCourses_s8cxhz$=function(t){return this._dao_0.getContentFromMyCourses_s8cxhz$(t)},Vy.prototype.getContentByOwner_s8cxhz$=function(t){return this._dao_0.getContentByOwner_s8cxhz$(t)},Vy.prototype.updateAsync_4pedz3$=function(t,e){return t.contentEntryLct=J(),this._dao_0.updateAsync_4pedz3$(t,e)},Vy.prototype.getChildrenByAll_s8cxhz$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Vy.prototype.findLiveContentEntry_s8cxhz$=function(t){return this._dao_0.findLiveContentEntry_s8cxhz$(t)},Vy.prototype.getContentEntryUidFromXapiObjectId_61zpoe$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Vy.prototype.findSimilarIdEntryForKhan_61zpoe$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Vy.prototype.getRecursiveDownloadTotals_s8cxhz$=function(t,e){return this._dao_0.getRecursiveDownloadTotals_s8cxhz$(t,e)},Vy.prototype.getAllEntriesRecursively_s8cxhz$=function(t){return this._dao_0.getAllEntriesRecursively_s8cxhz$(t)},Vy.prototype.getAllEntriesRecursivelyAsList_s8cxhz$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Vy.prototype.updateContentEntryInActive_zaz62j$=function(t,e,n){throw v("Synchronous db access is NOT possible on Javascript!")},Vy.prototype.updateContentEntryContentFlag_h639zw$=function(t,e,n){throw v("Synchronous db access is NOT possible on Javascript!")},Vy.prototype.replaceList_o4zuk4$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Vy.prototype.getContentEntryFromUids_gox9k8$=function(t,e){return this._dao_0.getContentEntryFromUids_gox9k8$(t,e)},Vy.prototype.insertWithReplace_4pedz3$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Vy.prototype.findAllLive=function(){return this._dao_0.findAllLive()},Vy.prototype.personHasPermissionWithContentEntry_b9bd0d$=function(t,e,n,i){return this._dao_0.personHasPermissionWithContentEntry_b9bd0d$(t,e,n,i)},Yy.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Yy.prototype=Object.create(N.prototype),Yy.prototype.constructor=Yy,Yy.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.updateContentEntryActiveByContentJobUid_zaz62j$(this.local$jobId,this.local$inactive,this.local$changedTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Vy.prototype.updateContentEntryActiveByContentJobUid_zaz62j$=function(t,e,n,i,o){var r=new Yy(this,t,e,n,i);return o?r:r.doResume(null)},Qy.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Qy.prototype=Object.create(N.prototype),Qy.prototype.constructor=Qy,Qy.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.toggleVisibilityContentEntryItems_cbj1f0$(this.local$toggleVisibility,this.local$selectedItem,this.local$changedTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Vy.prototype.toggleVisibilityContentEntryItems_cbj1f0$=function(t,e,n,i,o){var r=new Qy(this,t,e,n,i);return o?r:r.doResume(null)},Vy.prototype.findContentEntriesWhereIsLeafAndLatestContainerHasNoEntriesOrHasZeroFileSize=function(t){return this._dao_0.findContentEntriesWhereIsLeafAndLatestContainerHasNoEntriesOrHasZeroFileSize(t)},Vy.prototype.buttonsToShowForContentEntry_2gd3um$=function(t,e,n){return this._dao_0.buttonsToShowForContentEntry_2gd3um$(t,e,n)},Vy.prototype.statusForDownloadDialog_s8cxhz$=function(t,e){return this._dao_0.statusForDownloadDialog_s8cxhz$(t,e)},Vy.prototype.statusForContentEntryList_s8cxhz$=function(t,e){return this._dao_0.statusForContentEntryList_s8cxhz$(t,e)},Vy.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Zy.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Zy.prototype=Object.create(N.prototype),Zy.prototype.constructor=Zy,Zy.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.contentEntryUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(42,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.contentEntryUid=e,this.state_0=3;continue;case 3:if(this.local$entity.contentEntryLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.contentEntryUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Vy.prototype.insertAsync=function(t,e,n){var i=new Zy(this,t,e);return n?i:i.doResume(null)},Vy.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Vy.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Vy.$metadata$={kind:c,simpleName:"ContentEntryDao_ReplicateWrapper",interfaces:[y$]},eb.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},eb.prototype=Object.create(N.prototype),eb.prototype.constructor=eb,eb.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tb.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new eb(this,t,e);return n?i:i.doResume(null)},nb.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},nb.prototype=Object.create(N.prototype),nb.prototype.constructor=nb,nb.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tb.prototype.replicateOnChange=function(t,e){var n=new nb(this,t);return e?n:n.doResume(null)},ib.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ib.prototype=Object.create(N.prototype),ib.prototype.constructor=ib,ib.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertListAsync_o4zuk4$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tb.prototype.insertListAsync_o4zuk4$=function(t,e,n){var i=new ib(this,t,e);return n?i:i.doResume(null)},ob.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ob.prototype=Object.create(N.prototype),ob.prototype.constructor=ob,ob.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findEntryWithLanguageByEntryIdAsync_s8cxhz$(this.local$entryUuid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tb.prototype.findEntryWithLanguageByEntryIdAsync_s8cxhz$=function(t,e,n){var i=new ob(this,t,e);return n?i:i.doResume(null)},rb.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},rb.prototype=Object.create(N.prototype),rb.prototype.constructor=rb,rb.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findEntryWithBlockAndLanguageByUidAsync_s8cxhz$(this.local$entityUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tb.prototype.findEntryWithBlockAndLanguageByUidAsync_s8cxhz$=function(t,e,n){var i=new rb(this,t,e);return n?i:i.doResume(null)},sb.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},sb.prototype=Object.create(N.prototype),sb.prototype.constructor=sb,sb.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findEntryWithContainerByEntryId_s8cxhz$(this.local$entryUuid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tb.prototype.findEntryWithContainerByEntryId_s8cxhz$=function(t,e,n){var i=new sb(this,t,e);return n?i:i.doResume(null)},tb.prototype.findEntryWithContainerByEntryIdLive_s8cxhz$=function(t){return this._dao.findEntryWithContainerByEntryIdLive_s8cxhz$(t)},tb.prototype.findBySourceUrl_61zpoe$=function(t){return this._dao.findBySourceUrl_61zpoe$(t)},ab.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ab.prototype=Object.create(N.prototype),ab.prototype.constructor=ab,ab.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findTitleByUidAsync_s8cxhz$(this.local$contentEntryUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tb.prototype.findTitleByUidAsync_s8cxhz$=function(t,e,n){var i=new ab(this,t,e);return n?i:i.doResume(null)},tb.prototype.getChildrenByParentUid_s8cxhz$=function(t){return this._dao.getChildrenByParentUid_s8cxhz$(t)},cb.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},cb.prototype=Object.create(N.prototype),cb.prototype.constructor=cb,cb.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.getChildrenByParentAsync_s8cxhz$(this.local$parentUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tb.prototype.getChildrenByParentAsync_s8cxhz$=function(t,e,n){var i=new cb(this,t,e);return n?i:i.doResume(null)},lb.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},lb.prototype=Object.create(N.prototype),lb.prototype.constructor=lb,lb.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.getContentJobItemParamsByParentUid_liip7b$(this.local$parentUid,this.local$limit,this.local$offset,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tb.prototype.getContentJobItemParamsByParentUid_liip7b$=function(t,e,n,i,o){var r=new lb(this,t,e,n,i);return o?r:r.doResume(null)},ub.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ub.prototype=Object.create(N.prototype),ub.prototype.constructor=ub,ub.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.getCountNumberOfChildrenByParentUUidAsync_s8cxhz$(this.local$parentUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tb.prototype.getCountNumberOfChildrenByParentUUidAsync_s8cxhz$=function(t,e,n){var i=new ub(this,t,e);return n?i:i.doResume(null)},hb.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},hb.prototype=Object.create(N.prototype),hb.prototype.constructor=hb,hb.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.getContentByUuidAsync_s8cxhz$(this.local$parentUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tb.prototype.getContentByUuidAsync_s8cxhz$=function(t,e,n){var i=new hb(this,t,e);return n?i:i.doResume(null)},db.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},db.prototype=Object.create(N.prototype),db.prototype.constructor=db,db.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findAllLanguageRelatedEntriesAsync_s8cxhz$(this.local$entryUuid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tb.prototype.findAllLanguageRelatedEntriesAsync_s8cxhz$=function(t,e,n){var i=new db(this,t,e);return n?i:i.doResume(null)},tb.prototype.findListOfCategoriesAsync_s8cxhz$=function(t,e){throw v("Synchronous HTTP is not supported on Door/Javascript!")},pb.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},pb.prototype=Object.create(N.prototype),pb.prototype.constructor=pb,pb.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findUniqueLanguagesInListAsync_s8cxhz$(this.local$parentUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tb.prototype.findUniqueLanguagesInListAsync_s8cxhz$=function(t,e,n){var i=new pb(this,t,e);return n?i:i.doResume(null)},tb.prototype.findUniqueLanguageWithParentUid_s8cxhz$=function(t,e){throw v("Synchronous HTTP is not supported on Door/Javascript!")},tb.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},_b.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_b.prototype=Object.create(N.prototype),_b.prototype.constructor=_b,_b.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByUidAsync_s8cxhz$(this.local$entryUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tb.prototype.findByUidAsync_s8cxhz$=function(t,e,n){var i=new _b(this,t,e);return n?i:i.doResume(null)},mb.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},mb.prototype=Object.create(N.prototype),mb.prototype.constructor=mb,mb.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByUidWithLanguageAsync_s8cxhz$(this.local$uid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tb.prototype.findByUidWithLanguageAsync_s8cxhz$=function(t,e,n){var i=new mb(this,t,e);return n?i:i.doResume(null)},tb.prototype.findByUid_s8cxhz$=function(t){return this._dao.findByUid_s8cxhz$(t)},tb.prototype.findByTitle_61zpoe$=function(t){return this._dao.findByTitle_61zpoe$(t)},fb.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fb.prototype=Object.create(N.prototype),fb.prototype.constructor=fb,fb.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.isMeteredAllowedForEntry_s8cxhz$(this.local$contentEntryUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tb.prototype.isMeteredAllowedForEntry_s8cxhz$=function(t,e,n){var i=new fb(this,t,e);return n?i:i.doResume(null)},gb.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},gb.prototype=Object.create(N.prototype),gb.prototype.constructor=gb,gb.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findBySourceUrlWithContentEntryStatusAsync_61zpoe$(this.local$sourceUrl,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tb.prototype.findBySourceUrlWithContentEntryStatusAsync_61zpoe$=function(t,e,n){var i=new gb(this,t,e);return n?i:i.doResume(null)},tb.prototype.getChildrenByParentUidWithCategoryFilterOrderByName_dqef2m$=function(t,e,n,i,o,r,s){return this._dao.getChildrenByParentUidWithCategoryFilterOrderByName_dqef2m$(t,e,n,i,o,r,s)},tb.prototype.getContentFromMyCourses_s8cxhz$=function(t){return this._dao.getContentFromMyCourses_s8cxhz$(t)},tb.prototype.getContentByOwner_s8cxhz$=function(t){return this._dao.getContentByOwner_s8cxhz$(t)},$b.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},$b.prototype=Object.create(N.prototype),$b.prototype.constructor=$b,$b.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateAsync_4pedz3$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tb.prototype.updateAsync_4pedz3$=function(t,e,n){var i=new $b(this,t,e);return n?i:i.doResume(null)},tb.prototype.getChildrenByAll_s8cxhz$=function(t){return this._dao.getChildrenByAll_s8cxhz$(t)},tb.prototype.findLiveContentEntry_s8cxhz$=function(t){return this._dao.findLiveContentEntry_s8cxhz$(t)},tb.prototype.getContentEntryUidFromXapiObjectId_61zpoe$=function(t){return this._dao.getContentEntryUidFromXapiObjectId_61zpoe$(t)},tb.prototype.findSimilarIdEntryForKhan_61zpoe$=function(t){return this._dao.findSimilarIdEntryForKhan_61zpoe$(t)},tb.prototype.getRecursiveDownloadTotals_s8cxhz$=function(t,e){throw v("Synchronous HTTP is not supported on Door/Javascript!")},tb.prototype.getAllEntriesRecursively_s8cxhz$=function(t){return this._dao.getAllEntriesRecursively_s8cxhz$(t)},tb.prototype.getAllEntriesRecursivelyAsList_s8cxhz$=function(t){return this._dao.getAllEntriesRecursivelyAsList_s8cxhz$(t)},tb.prototype.updateContentEntryInActive_zaz62j$=function(t,e,n){this._dao.updateContentEntryInActive_zaz62j$(t,e,n)},tb.prototype.updateContentEntryContentFlag_h639zw$=function(t,e,n){this._dao.updateContentEntryContentFlag_h639zw$(t,e,n)},tb.prototype.replaceList_o4zuk4$=function(t){this._dao.replaceList_o4zuk4$(t)},Eb.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Eb.prototype=Object.create(N.prototype),Eb.prototype.constructor=Eb,Eb.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.getContentEntryFromUids_gox9k8$(this.local$contentEntryUids,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tb.prototype.getContentEntryFromUids_gox9k8$=function(t,e,n){var i=new Eb(this,t,e);return n?i:i.doResume(null)},tb.prototype.insertWithReplace_4pedz3$=function(t){this._dao.insertWithReplace_4pedz3$(t)},tb.prototype.findAllLive=function(){return this._dao.findAllLive()},yb.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},yb.prototype=Object.create(N.prototype),yb.prototype.constructor=yb,yb.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.personHasPermissionWithContentEntry_b9bd0d$(this.local$accountPersonUid,this.local$contentEntryUid,this.local$permission,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tb.prototype.personHasPermissionWithContentEntry_b9bd0d$=function(t,e,n,i,o){var r=new yb(this,t,e,n,i);return o?r:r.doResume(null)},bb.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},bb.prototype=Object.create(N.prototype),bb.prototype.constructor=bb,bb.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateContentEntryActiveByContentJobUid_zaz62j$(this.local$jobId,this.local$inactive,this.local$changedTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tb.prototype.updateContentEntryActiveByContentJobUid_zaz62j$=function(t,e,n,i,o){var r=new bb(this,t,e,n,i);return o?r:r.doResume(null)},Sb.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Sb.prototype=Object.create(N.prototype),Sb.prototype.constructor=Sb,Sb.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.toggleVisibilityContentEntryItems_cbj1f0$(this.local$toggleVisibility,this.local$selectedItem,this.local$changedTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tb.prototype.toggleVisibilityContentEntryItems_cbj1f0$=function(t,e,n,i,o){var r=new Sb(this,t,e,n,i);return o?r:r.doResume(null)},vb.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},vb.prototype=Object.create(N.prototype),vb.prototype.constructor=vb,vb.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findContentEntriesWhereIsLeafAndLatestContainerHasNoEntriesOrHasZeroFileSize(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tb.prototype.findContentEntriesWhereIsLeafAndLatestContainerHasNoEntriesOrHasZeroFileSize=function(t,e){var n=new vb(this,t);return e?n:n.doResume(null)},Cb.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]};function sI(){}function aI(t){sI.call(this),this._db=t,this._insertAdapterGroupLearningSession_=new mI(this._db)}function cI(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function lI(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function uI(t){return function(e,n,i){var o=new lI(t,e,n);return i?o:o.doResume(null)}}function hI(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function dI(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function pI(t,e,n){var i=new dI(t,e);return n?i:i.doResume(null)}function _I(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function mI(t){pt.call(this,t)}function fI(t,e){sI.call(this),this._db_0=t,this._dao_0=e}function gI(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function $I(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function EI(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function yI(t,e,n,i,o,r){sI.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function bI(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function SI(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function vI(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function CI(){}function NI(t){CI.call(this),this._db=t,this._insertAdapterHolidayCalendar_upsert=new iU(this._db),this._insertAdapterHolidayCalendar_=new oU(this._db)}function TI(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function LI(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$entity=t,this.local$closure$_result=e,this.local$tmp$=void 0,this.local$_stmt=n}function zI(t,e){return function(n,i,o){var r=new LI(t,e,n,i);return o?r:r.doResume(null)}}function wI(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_result=void 0,this.local$entity=e}function OI(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function RI(t){return function(e,n,i){var o=new OI(t,e,n);return i?o:o.doResume(null)}}function AI(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function xI(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function II(t,e,n){var i=new xI(t,e);return n?i:i.doResume(null)}function UI(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function DI(t){this.this$HolidayCalendarDao_JdbcKt=t,gt.call(this)}function PI(t){return mt(t,(e=t,function(t){var n=e.getInt_61zpoe$("numEntries"),i=e.getLong_61zpoe$("umCalendarUid"),o=e.getString_61zpoe$("umCalendarName"),r=e.getInt_61zpoe$("umCalendarCategory"),s=e.getBoolean_61zpoe$("umCalendarActive"),a=e.getLong_61zpoe$("umCalendarMasterChangeSeqNum"),c=e.getLong_61zpoe$("umCalendarLocalChangeSeqNum"),l=e.getInt_61zpoe$("umCalendarLastChangedBy"),u=e.getLong_61zpoe$("umCalendarLct"),h=new vst;return h.numEntries=n,h.umCalendarUid=i,h.umCalendarName=o,h.umCalendarCategory=r,h.umCalendarActive=s,h.umCalendarMasterChangeSeqNum=a,h.umCalendarLocalChangeSeqNum=c,h.umCalendarLastChangedBy=l,h.umCalendarLct=u,h}));var e}function MI(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$_limit=t,this.local$closure$_offset=e,this.local$_stmt=n}function kI(t,e){return function(n,i,o){var r=new MI(t,e,n,i);return o?r:r.doResume(null)}}function jI(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$this$HolidayCalendarDao_JdbcKt=t,this.local$closure$_limit=e,this.local$closure$_offset=n}function GI(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function qI(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function FI(t,e,n){var i=new qI(t,e);return n?i:i.doResume(null)}function BI(t,e){N.call(this,e),this.exceptionState_0=1,this.local$this$HolidayCalendarDao_JdbcKt=t}function WI(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("umCalendarUid"),i=e.getString_61zpoe$("umCalendarName"),o=e.getInt_61zpoe$("umCalendarCategory"),r=e.getBoolean_61zpoe$("umCalendarActive"),s=e.getLong_61zpoe$("umCalendarMasterChangeSeqNum"),a=e.getLong_61zpoe$("umCalendarLocalChangeSeqNum"),c=e.getInt_61zpoe$("umCalendarLastChangedBy"),l=e.getLong_61zpoe$("umCalendarLct"),u=new mst;return u.umCalendarUid=n,u.umCalendarName=i,u.umCalendarCategory=o,u.umCalendarActive=r,u.umCalendarMasterChangeSeqNum=s,u.umCalendarLocalChangeSeqNum=a,u.umCalendarLastChangedBy=c,u.umCalendarLct=l,u}));var e}function HI(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function VI(t,e,n){var i=new HI(t,e);return n?i:i.doResume(null)}function KI(t,e){N.call(this,e),this.exceptionState_0=1,this.local$this$HolidayCalendarDao_JdbcKt=t}function XI(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("umCalendarUid"),i=e.getString_61zpoe$("umCalendarName"),o=e.getInt_61zpoe$("umCalendarCategory"),r=e.getBoolean_61zpoe$("umCalendarActive"),s=e.getLong_61zpoe$("umCalendarMasterChangeSeqNum"),a=e.getLong_61zpoe$("umCalendarLocalChangeSeqNum"),c=e.getInt_61zpoe$("umCalendarLastChangedBy"),l=e.getLong_61zpoe$("umCalendarLct"),u=new mst;return u.umCalendarUid=n,u.umCalendarName=i,u.umCalendarCategory=o,u.umCalendarActive=r,u.umCalendarMasterChangeSeqNum=s,u.umCalendarLocalChangeSeqNum=a,u.umCalendarLastChangedBy=c,u.umCalendarLct=l,u}));var e}function JI(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function YI(t){return function(e,n,i){var o=new JI(t,e,n);return i?o:o.doResume(null)}}function QI(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$HolidayCalendarDao_JdbcKt=t,this.local$closure$uid=e}function ZI(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("umCalendarUid"),i=e.getString_61zpoe$("umCalendarName"),o=e.getInt_61zpoe$("umCalendarCategory"),r=e.getBoolean_61zpoe$("umCalendarActive"),s=e.getLong_61zpoe$("umCalendarMasterChangeSeqNum"),a=e.getLong_61zpoe$("umCalendarLocalChangeSeqNum"),c=e.getInt_61zpoe$("umCalendarLastChangedBy"),l=e.getLong_61zpoe$("umCalendarLct"),u=new mst;return u.umCalendarUid=n,u.umCalendarName=i,u.umCalendarCategory=o,u.umCalendarActive=r,u.umCalendarMasterChangeSeqNum=s,u.umCalendarLocalChangeSeqNum=a,u.umCalendarLastChangedBy=c,u.umCalendarLct=l,u}));var e}function tU(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function eU(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("umCalendarUid"),i=e.getString_61zpoe$("umCalendarName"),o=e.getInt_61zpoe$("umCalendarCategory"),r=e.getBoolean_61zpoe$("umCalendarActive"),s=e.getLong_61zpoe$("umCalendarMasterChangeSeqNum"),a=e.getLong_61zpoe$("umCalendarLocalChangeSeqNum"),c=e.getInt_61zpoe$("umCalendarLastChangedBy"),l=e.getLong_61zpoe$("umCalendarLct"),u=new mst;return u.umCalendarUid=n,u.umCalendarName=i,u.umCalendarCategory=o,u.umCalendarActive=r,u.umCalendarMasterChangeSeqNum=s,u.umCalendarLocalChangeSeqNum=a,u.umCalendarLastChangedBy=c,u.umCalendarLct=l,u}));var e}function nU(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function iU(t){pt.call(this,t)}function oU(t){pt.call(this,t)}function rU(t,e){CI.call(this),this._db_0=t,this._dao_0=e}function sU(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function aU(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function cU(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function lU(t,e,n,i,o,r){CI.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function uU(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function hU(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function dU(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function pU(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$uid=e}function _U(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$uid=e}function mU(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function fU(){}function gU(t){fU.call(this),this._db=t,this._insertAdapterHoliday_=new xU(this._db)}function $U(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function EU(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function yU(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function bU(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$entityList=t,this.local$tmp$=void 0,this.local$_stmt=e}function SU(t){return function(e,n,i){var o=new bU(t,e,n);return i?o:o.doResume(null)}}function vU(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function CU(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function NU(t){return function(e,n,i){var o=new CU(t,e,n);return i?o:o.doResume(null)}}function TU(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function LU(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function zU(t,e,n){var i=new LU(t,e);return n?i:i.doResume(null)}function wU(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function OU(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("holUid"),i=e.getLong_61zpoe$("holMasterCsn"),o=e.getLong_61zpoe$("holLocalCsn"),r=e.getInt_61zpoe$("holLastModBy"),s=e.getLong_61zpoe$("holLct"),a=e.getBoolean_61zpoe$("holActive"),c=e.getLong_61zpoe$("holHolidayCalendarUid"),l=e.getLong_61zpoe$("holStartTime"),u=e.getLong_61zpoe$("holEndTime"),h=e.getString_61zpoe$("holName"),d=new ast;return d.holUid=n,d.holMasterCsn=i,d.holLocalCsn=o,d.holLastModBy=r,d.holLct=s,d.holActive=a,d.holHolidayCalendarUid=c,d.holStartTime=l,d.holEndTime=u,d.holName=h,d}));var e}function RU(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("holUid"),i=e.getLong_61zpoe$("holMasterCsn"),o=e.getLong_61zpoe$("holLocalCsn"),r=e.getInt_61zpoe$("holLastModBy"),s=e.getLong_61zpoe$("holLct"),a=e.getBoolean_61zpoe$("holActive"),c=e.getLong_61zpoe$("holHolidayCalendarUid"),l=e.getLong_61zpoe$("holStartTime"),u=e.getLong_61zpoe$("holEndTime"),h=e.getString_61zpoe$("holName"),d=new ast;return d.holUid=n,d.holMasterCsn=i,d.holLocalCsn=o,d.holLastModBy=r,d.holLct=s,d.holActive=a,d.holHolidayCalendarUid=c,d.holStartTime=l,d.holEndTime=u,d.holName=h,d}));var e}function AU(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$holidayCalendarUid=t,this.local$_stmt=e}function xU(t){pt.call(this,t)}function IU(t,e){fU.call(this),this._db_0=t,this._dao_0=e}function UU(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function DU(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function PU(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function MU(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function kU(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_pkManager=void 0,this.local$_generatedPks=void 0,this.local$$receiver=void 0,this.local$element=void 0,this.local$entityList=e}function jU(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function GU(t,e,n,i,o,r){fU.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function qU(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function FU(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function BU(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$holidayCalendarUid=e}function WU(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function HU(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function VU(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function KU(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function XU(){}function JU(t){XU.call(this),this._db=t,this._insertAdapterLanguage_=new PD(this._db),this._insertAdapterLanguage_upsert=new MD(this._db)}function YU(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$languageList=e}function QU(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function ZU(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$entity=t,this.local$closure$_result=e,this.local$tmp$=void 0,this.local$_stmt=n}function tD(t,e){return function(n,i,o){var r=new ZU(t,e,n,i);return o?r:r.doResume(null)}}function eD(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_result=void 0,this.local$entity=e}function nD(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function iD(t){return function(e,n,i){var o=new nD(t,e,n);return i?o:o.doResume(null)}}function oD(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function rD(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function sD(t,e,n){var i=new rD(t,e);return n?i:i.doResume(null)}function aD(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function cD(t,e,n){this.this$LanguageDao_JdbcKt=t,this.closure$searchText=e,this.closure$sortOrder=n,gt.call(this)}function lD(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("langUid"),i=e.getString_61zpoe$("name"),o=e.getString_61zpoe$("iso_639_1_standard"),r=e.getString_61zpoe$("iso_639_2_standard"),s=e.getString_61zpoe$("iso_639_3_standard"),a=e.getString_61zpoe$("Language_Type"),c=e.getBoolean_61zpoe$("languageActive"),l=e.getLong_61zpoe$("langLocalChangeSeqNum"),u=e.getLong_61zpoe$("langMasterChangeSeqNum"),h=e.getInt_61zpoe$("langLastChangedBy"),d=e.getLong_61zpoe$("langLct"),p=new kst;return p.langUid=n,p.name=i,p.iso_639_1_standard=o,p.iso_639_2_standard=r,p.iso_639_3_standard=s,p.Language_Type=a,p.languageActive=c,p.langLocalChangeSeqNum=l,p.langMasterChangeSeqNum=u,p.langLastChangedBy=h,p.langLct=d,p}));var e}function uD(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$closure$searchText=t,this.local$closure$sortOrder=e,this.local$closure$_limit=n,this.local$closure$_offset=i,this.local$_stmt=o}function hD(t,e,n,i){return function(o,r,s){var a=new uD(t,e,n,i,o,r);return s?a:a.doResume(null)}}function dD(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$this$LanguageDao_JdbcKt=t,this.local$closure$searchText=e,this.local$closure$sortOrder=n,this.local$closure$_limit=i,this.local$closure$_offset=o}function pD(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function _D(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$searchText=t,this.local$closure$sortOrder=e,this.local$_stmt=n}function mD(t,e){return function(n,i,o){var r=new _D(t,e,n,i);return o?r:r.doResume(null)}}function fD(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$this$LanguageDao_JdbcKt=t,this.local$closure$searchText=e,this.local$closure$sortOrder=n}function gD(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("langUid"),i=e.getString_61zpoe$("name"),o=e.getString_61zpoe$("iso_639_1_standard"),r=e.getString_61zpoe$("iso_639_2_standard"),s=e.getString_61zpoe$("iso_639_3_standard"),a=e.getString_61zpoe$("Language_Type"),c=e.getBoolean_61zpoe$("languageActive"),l=e.getLong_61zpoe$("langLocalChangeSeqNum"),u=e.getLong_61zpoe$("langMasterChangeSeqNum"),h=e.getInt_61zpoe$("langLastChangedBy"),d=e.getLong_61zpoe$("langLct"),p=new kst;return p.langUid=n,p.name=i,p.iso_639_1_standard=o,p.iso_639_2_standard=r,p.iso_639_3_standard=s,p.Language_Type=a,p.languageActive=c,p.langLocalChangeSeqNum=l,p.langMasterChangeSeqNum=u,p.langLastChangedBy=h,p.langLct=d,p}));var e}function $D(t){return ut(t.executeQuery(),gD)}function ED(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("langUid"),i=e.getString_61zpoe$("name"),o=e.getString_61zpoe$("iso_639_1_standard"),r=e.getString_61zpoe$("iso_639_2_standard"),s=e.getString_61zpoe$("iso_639_3_standard"),a=e.getString_61zpoe$("Language_Type"),c=e.getBoolean_61zpoe$("languageActive"),l=e.getLong_61zpoe$("langLocalChangeSeqNum"),u=e.getLong_61zpoe$("langMasterChangeSeqNum"),h=e.getInt_61zpoe$("langLastChangedBy"),d=e.getLong_61zpoe$("langLct"),p=new kst;return p.langUid=n,p.name=i,p.iso_639_1_standard=o,p.iso_639_2_standard=r,p.iso_639_3_standard=s,p.Language_Type=a,p.languageActive=c,p.langLocalChangeSeqNum=l,p.langMasterChangeSeqNum=u,p.langLastChangedBy=h,p.langLct=d,p}));var e}function yD(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("langUid"),i=e.getString_61zpoe$("name"),o=e.getString_61zpoe$("iso_639_1_standard"),r=e.getString_61zpoe$("iso_639_2_standard"),s=e.getString_61zpoe$("iso_639_3_standard"),a=e.getString_61zpoe$("Language_Type"),c=e.getBoolean_61zpoe$("languageActive"),l=e.getLong_61zpoe$("langLocalChangeSeqNum"),u=e.getLong_61zpoe$("langMasterChangeSeqNum"),h=e.getInt_61zpoe$("langLastChangedBy"),d=e.getLong_61zpoe$("langLct"),p=new kst;return p.langUid=n,p.name=i,p.iso_639_1_standard=o,p.iso_639_2_standard=r,p.iso_639_3_standard=s,p.Language_Type=a,p.languageActive=c,p.langLocalChangeSeqNum=l,p.langMasterChangeSeqNum=u,p.langLastChangedBy=h,p.langLct=d,p}));var e}function bD(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("langUid"),i=e.getString_61zpoe$("name"),o=e.getString_61zpoe$("iso_639_1_standard"),r=e.getString_61zpoe$("iso_639_2_standard"),s=e.getString_61zpoe$("iso_639_3_standard"),a=e.getString_61zpoe$("Language_Type"),c=e.getBoolean_61zpoe$("languageActive"),l=e.getLong_61zpoe$("langLocalChangeSeqNum"),u=e.getLong_61zpoe$("langMasterChangeSeqNum"),h=e.getInt_61zpoe$("langLastChangedBy"),d=e.getLong_61zpoe$("langLct"),p=new kst;return p.langUid=n,p.name=i,p.iso_639_1_standard=o,p.iso_639_2_standard=r,p.iso_639_3_standard=s,p.Language_Type=a,p.languageActive=c,p.langLocalChangeSeqNum=l,p.langMasterChangeSeqNum=u,p.langLastChangedBy=h,p.langLct=d,p}));var e}function SD(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$langCode=t,this.local$_stmt=e}function vD(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("langUid"),i=e.getString_61zpoe$("name"),o=e.getString_61zpoe$("iso_639_1_standard"),r=e.getString_61zpoe$("iso_639_2_standard"),s=e.getString_61zpoe$("iso_639_3_standard"),a=e.getString_61zpoe$("Language_Type"),c=e.getBoolean_61zpoe$("languageActive"),l=e.getLong_61zpoe$("langLocalChangeSeqNum"),u=e.getLong_61zpoe$("langMasterChangeSeqNum"),h=e.getInt_61zpoe$("langLastChangedBy"),d=e.getLong_61zpoe$("langLct"),p=new kst;return p.langUid=n,p.name=i,p.iso_639_1_standard=o,p.iso_639_2_standard=r,p.iso_639_3_standard=s,p.Language_Type=a,p.languageActive=c,p.langLocalChangeSeqNum=l,p.langMasterChangeSeqNum=u,p.langLastChangedBy=h,p.langLct=d,p}));var e}function CD(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function ND(t){return ut(t.executeQuery(),CD)}function TD(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("langUid"),i=e.getString_61zpoe$("name"),o=e.getString_61zpoe$("iso_639_1_standard"),r=e.getString_61zpoe$("iso_639_2_standard"),s=e.getString_61zpoe$("iso_639_3_standard"),a=e.getString_61zpoe$("Language_Type"),c=e.getBoolean_61zpoe$("languageActive"),l=e.getLong_61zpoe$("langLocalChangeSeqNum"),u=e.getLong_61zpoe$("langMasterChangeSeqNum"),h=e.getInt_61zpoe$("langLastChangedBy"),d=e.getLong_61zpoe$("langLct"),p=new kst;return p.langUid=n,p.name=i,p.iso_639_1_standard=o,p.iso_639_2_standard=r,p.iso_639_3_standard=s,p.Language_Type=a,p.languageActive=c,p.langLocalChangeSeqNum=l,p.langMasterChangeSeqNum=u,p.langLastChangedBy=h,p.langLct=d,p}));var e}function LD(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("langUid"),i=e.getString_61zpoe$("name"),o=e.getString_61zpoe$("iso_639_1_standard"),r=e.getString_61zpoe$("iso_639_2_standard"),s=e.getString_61zpoe$("iso_639_3_standard"),a=e.getString_61zpoe$("Language_Type"),c=e.getBoolean_61zpoe$("languageActive"),l=e.getLong_61zpoe$("langLocalChangeSeqNum"),u=e.getLong_61zpoe$("langMasterChangeSeqNum"),h=e.getInt_61zpoe$("langLastChangedBy"),d=e.getLong_61zpoe$("langLct"),p=new kst;return p.langUid=n,p.name=i,p.iso_639_1_standard=o,p.iso_639_2_standard=r,p.iso_639_3_standard=s,p.Language_Type=a,p.languageActive=c,p.langLocalChangeSeqNum=l,p.langMasterChangeSeqNum=u,p.langLastChangedBy=h,p.langLct=d,p}));var e}function zD(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$primaryLanguageUid=t,this.local$_stmt=e}function wD(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("langUid"),i=e.getString_61zpoe$("name"),o=e.getString_61zpoe$("iso_639_1_standard"),r=e.getString_61zpoe$("iso_639_2_standard"),s=e.getString_61zpoe$("iso_639_3_standard"),a=e.getString_61zpoe$("Language_Type"),c=e.getBoolean_61zpoe$("languageActive"),l=e.getLong_61zpoe$("langLocalChangeSeqNum"),u=e.getLong_61zpoe$("langMasterChangeSeqNum"),h=e.getInt_61zpoe$("langLastChangedBy"),d=e.getLong_61zpoe$("langLct"),p=new kst;return p.langUid=n,p.name=i,p.iso_639_1_standard=o,p.iso_639_2_standard=r,p.iso_639_3_standard=s,p.Language_Type=a,p.languageActive=c,p.langLocalChangeSeqNum=l,p.langMasterChangeSeqNum=u,p.langLastChangedBy=h,p.langLct=d,p}));var e}function OD(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function RD(t,e,n){var i=new OD(t,e);return n?i:i.doResume(null)}function AD(t,e){N.call(this,e),this.exceptionState_0=1,this.local$this$LanguageDao_JdbcKt=t}function xD(t){return mt(t,(e=t,function(t){return e.getLong_za3lpa$(1)}));var e}function ID(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$toggleVisibility=t,this.local$closure$updateTime=e,this.local$closure$selectedItem=n,this.local$_stmt=i}function UD(t,e,n){return function(i,o,r){var s=new ID(t,e,n,i,o);return r?s:s.doResume(null)}}function DD(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$toggleVisibility=e,this.local$selectedItem=n,this.local$updateTime=i}function PD(t){pt.call(this,t)}function MD(t){pt.call(this,t)}function kD(t,e){XU.call(this),this._db_0=t,this._dao_0=e}function jD(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function GD(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function qD(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_pkManager=void 0,this.local$_generatedPks=void 0,this.local$$receiver=void 0,this.local$element=void 0,this.local$languageList=e}function FD(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$toggleVisibility=e,this.local$selectedItem=n,this.local$updateTime=i}function BD(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function WD(t,e,n,i,o,r){XU.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function HD(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function VD(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function KD(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$languageList=e}function XD(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$langCode=e}function JD(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$primaryLanguageUid=e}function YD(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function QD(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$toggleVisibility=e,this.local$selectedItem=n,this.local$updateTime=i}function ZD(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function tP(){}function eP(t){tP.call(this),this._db=t,this._insertAdapterLanguageVariant_=new uP(this._db)}function nP(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function iP(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function oP(t){return function(e,n,i){var o=new iP(t,e,n);return i?o:o.doResume(null)}}function rP(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function sP(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function aP(t,e,n){var i=new sP(t,e);return n?i:i.doResume(null)}function cP(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function lP(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("langVariantUid"),i=e.getLong_61zpoe$("langUid"),o=e.getString_61zpoe$("countryCode"),r=e.getString_61zpoe$("name"),s=e.getLong_61zpoe$("langVariantLocalChangeSeqNum"),a=e.getLong_61zpoe$("langVariantMasterChangeSeqNum"),c=e.getInt_61zpoe$("langVariantLastChangedBy"),l=e.getLong_61zpoe$("langVariantLct"),u=new Vst;return u.langVariantUid=n,u.langUid=i,u.countryCode=o,u.name=r,u.langVariantLocalChangeSeqNum=s,u.langVariantMasterChangeSeqNum=a,u.langVariantLastChangedBy=c,u.langVariantLct=l,u}));var e}function uP(t){pt.call(this,t)}function hP(t,e){tP.call(this),this._db_0=t,this._dao_0=e}function dP(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function pP(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function _P(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function mP(t,e,n,i,o,r){tP.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function fP(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function gP(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function $P(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function EP(){}function yP(t){EP.call(this),this._db=t,this._insertAdapterLearnerGroup_=new MP(this._db)}function bP(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function SP(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function vP(t){return function(e,n,i){var o=new SP(t,e,n);return i?o:o.doResume(null)}}function CP(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function NP(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function TP(t,e,n){var i=new NP(t,e);return n?i:i.doResume(null)}function LP(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function zP(t,e){this.this$LearnerGroupDao_JdbcKt=t,this.closure$contentEntryUid=e,gt.call(this)}function wP(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("learnerGroupUid"),i=e.getString_61zpoe$("learnerGroupName"),o=e.getString_61zpoe$("learnerGroupDescription"),r=e.getBoolean_61zpoe$("learnerGroupActive"),s=e.getLong_61zpoe$("learnerGroupMCSN"),a=e.getLong_61zpoe$("learnerGroupCSN"),c=e.getInt_61zpoe$("learnerGroupLCB"),l=e.getLong_61zpoe$("learnerGroupLct"),u=new eat;return u.learnerGroupUid=n,u.learnerGroupName=i,u.learnerGroupDescription=o,u.learnerGroupActive=r,u.learnerGroupMCSN=s,u.learnerGroupCSN=a,u.learnerGroupLCB=c,u.learnerGroupLct=l,u}));var e}function OP(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$contentEntryUid=t,this.local$closure$_limit=e,this.local$closure$_offset=n,this.local$_stmt=i}function RP(t,e,n){return function(i,o,r){var s=new OP(t,e,n,i,o);return r?s:s.doResume(null)}}function AP(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$this$LearnerGroupDao_JdbcKt=t,this.local$closure$contentEntryUid=e,this.local$closure$_limit=n,this.local$closure$_offset=i}function xP(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function IP(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$contentEntryUid=t,this.local$_stmt=e}function UP(t){return function(e,n,i){var o=new IP(t,e,n);return i?o:o.doResume(null)}}function DP(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$LearnerGroupDao_JdbcKt=t,this.local$closure$contentEntryUid=e}function PP(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("learnerGroupUid"),i=e.getString_61zpoe$("learnerGroupName"),o=e.getString_61zpoe$("learnerGroupDescription"),r=e.getBoolean_61zpoe$("learnerGroupActive"),s=e.getLong_61zpoe$("learnerGroupMCSN"),a=e.getLong_61zpoe$("learnerGroupCSN"),c=e.getInt_61zpoe$("learnerGroupLCB"),l=e.getLong_61zpoe$("learnerGroupLct"),u=new eat;return u.learnerGroupUid=n,u.learnerGroupName=i,u.learnerGroupDescription=o,u.learnerGroupActive=r,u.learnerGroupMCSN=s,u.learnerGroupCSN=a,u.learnerGroupLCB=c,u.learnerGroupLct=l,u}));var e}function MP(t){pt.call(this,t)}function kP(t,e){EP.call(this),this._db_0=t,this._dao_0=e}function jP(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function GP(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function qP(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function FP(t,e,n,i,o,r){EP.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function BP(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function WP(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function HP(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function VP(){}function KP(t){VP.call(this),this._db=t,this._insertAdapterLearnerGroupMember_=new pM(this._db)}function XP(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function JP(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function YP(t){return function(e,n,i){var o=new JP(t,e,n);return i?o:o.doResume(null)}}function QP(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function ZP(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function tM(t,e,n){var i=new ZP(t,e);return n?i:i.doResume(null)}function eM(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function nM(t,e,n){this.this$LearnerGroupMemberDao_JdbcKt=t,this.closure$learnerGroupUid=e,this.closure$contentEntryUid=n,gt.call(this)}function iM(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("learnerGroupMemberUid"),i=e.getLong_61zpoe$("learnerGroupMemberPersonUid"),o=e.getLong_61zpoe$("learnerGroupMemberLgUid"),r=e.getInt_61zpoe$("learnerGroupMemberRole"),s=e.getBoolean_61zpoe$("learnerGroupMemberActive"),a=e.getLong_61zpoe$("learnerGroupMemberMCSN"),c=e.getLong_61zpoe$("learnerGroupMemberCSN"),l=e.getInt_61zpoe$("learnerGroupMemberLCB"),u=e.getLong_61zpoe$("learnerGroupMemberLct"),h=0,d=e.getLong_61zpoe$("personUid");e.wasNull()&&(h=h+1|0);var p=e.getString_61zpoe$("username");e.wasNull()&&(h=h+1|0);var _=e.getString_61zpoe$("firstNames");e.wasNull()&&(h=h+1|0);var m=e.getString_61zpoe$("lastName");e.wasNull()&&(h=h+1|0);var f=e.getString_61zpoe$("emailAddr");e.wasNull()&&(h=h+1|0);var g=e.getString_61zpoe$("phoneNum");e.wasNull()&&(h=h+1|0);var $=e.getInt_61zpoe$("gender");e.wasNull()&&(h=h+1|0);var E=e.getBoolean_61zpoe$("active");e.wasNull()&&(h=h+1|0);var y=e.getBoolean_61zpoe$("admin");e.wasNull()&&(h=h+1|0);var b=e.getString_61zpoe$("personNotes");e.wasNull()&&(h=h+1|0);var S=e.getString_61zpoe$("fatherName");e.wasNull()&&(h=h+1|0);var v=e.getString_61zpoe$("fatherNumber");e.wasNull()&&(h=h+1|0);var C=e.getString_61zpoe$("motherName");e.wasNull()&&(h=h+1|0);var N=e.getString_61zpoe$("motherNum");e.wasNull()&&(h=h+1|0);var T=e.getLong_61zpoe$("dateOfBirth");e.wasNull()&&(h=h+1|0);var L=e.getString_61zpoe$("personAddress");e.wasNull()&&(h=h+1|0);var z=e.getString_61zpoe$("personOrgId");e.wasNull()&&(h=h+1|0);var w=e.getLong_61zpoe$("personGroupUid");e.wasNull()&&(h=h+1|0);var O=e.getLong_61zpoe$("personMasterChangeSeqNum");e.wasNull()&&(h=h+1|0);var R=e.getLong_61zpoe$("personLocalChangeSeqNum");e.wasNull()&&(h=h+1|0);var A=e.getInt_61zpoe$("personLastChangedBy");e.wasNull()&&(h=h+1|0);var x=e.getLong_61zpoe$("personLct");e.wasNull()&&(h=h+1|0);var I=e.getString_61zpoe$("personCountry");e.wasNull()&&(h=h+1|0);var U=e.getInt_61zpoe$("personType");e.wasNull()&&(h=h+1|0);var D=24===h,P=new gat;if(P.learnerGroupMemberUid=n,P.learnerGroupMemberPersonUid=i,P.learnerGroupMemberLgUid=o,P.learnerGroupMemberRole=r,P.learnerGroupMemberActive=s,P.learnerGroupMemberMCSN=a,P.learnerGroupMemberCSN=c,P.learnerGroupMemberLCB=l,P.learnerGroupMemberLct=u,!D){var M=new zct;M.personUid=d,M.username=p,M.firstNames=_,M.lastName=m,M.emailAddr=f,M.phoneNum=g,M.gender=$,M.active=E,M.admin=y,M.personNotes=b,M.fatherName=S,M.fatherNumber=v,M.motherName=C,M.motherNum=N,M.dateOfBirth=T,M.personAddress=L,M.personOrgId=z,M.personGroupUid=w,M.personMasterChangeSeqNum=O,M.personLocalChangeSeqNum=R,M.personLastChangedBy=A,M.personLct=x,M.personCountry=I,M.personType=U,P.person=M}return P}));var e}function oM(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$closure$learnerGroupUid=t,this.local$closure$contentEntryUid=e,this.local$closure$_limit=n,this.local$closure$_offset=i,this.local$_stmt=o}function rM(t,e,n,i){return function(o,r,s){var a=new oM(t,e,n,i,o,r);return s?a:a.doResume(null)}}function sM(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$this$LearnerGroupMemberDao_JdbcKt=t,this.local$closure$learnerGroupUid=e,this.local$closure$contentEntryUid=n,this.local$closure$_limit=i,this.local$closure$_offset=o}function aM(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function cM(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$learnerGroupUid=t,this.local$closure$contentEntryUid=e,this.local$_stmt=n}function lM(t,e){return function(n,i,o){var r=new cM(t,e,n,i);return o?r:r.doResume(null)}}function uM(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$this$LearnerGroupMemberDao_JdbcKt=t,this.local$closure$learnerGroupUid=e,this.local$closure$contentEntryUid=n}function hM(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("learnerGroupMemberUid"),i=e.getLong_61zpoe$("learnerGroupMemberPersonUid"),o=e.getLong_61zpoe$("learnerGroupMemberLgUid"),r=e.getInt_61zpoe$("learnerGroupMemberRole"),s=e.getBoolean_61zpoe$("learnerGroupMemberActive"),a=e.getLong_61zpoe$("learnerGroupMemberMCSN"),c=e.getLong_61zpoe$("learnerGroupMemberCSN"),l=e.getInt_61zpoe$("learnerGroupMemberLCB"),u=e.getLong_61zpoe$("learnerGroupMemberLct"),h=0,d=e.getLong_61zpoe$("personUid");e.wasNull()&&(h=h+1|0);var p=e.getString_61zpoe$("username");e.wasNull()&&(h=h+1|0);var _=e.getString_61zpoe$("firstNames");e.wasNull()&&(h=h+1|0);var m=e.getString_61zpoe$("lastName");e.wasNull()&&(h=h+1|0);var f=e.getString_61zpoe$("emailAddr");e.wasNull()&&(h=h+1|0);var g=e.getString_61zpoe$("phoneNum");e.wasNull()&&(h=h+1|0);var $=e.getInt_61zpoe$("gender");e.wasNull()&&(h=h+1|0);var E=e.getBoolean_61zpoe$("active");e.wasNull()&&(h=h+1|0);var y=e.getBoolean_61zpoe$("admin");e.wasNull()&&(h=h+1|0);var b=e.getString_61zpoe$("personNotes");e.wasNull()&&(h=h+1|0);var S=e.getString_61zpoe$("fatherName");e.wasNull()&&(h=h+1|0);var v=e.getString_61zpoe$("fatherNumber");e.wasNull()&&(h=h+1|0);var C=e.getString_61zpoe$("motherName");e.wasNull()&&(h=h+1|0);var N=e.getString_61zpoe$("motherNum");e.wasNull()&&(h=h+1|0);var T=e.getLong_61zpoe$("dateOfBirth");e.wasNull()&&(h=h+1|0);var L=e.getString_61zpoe$("personAddress");e.wasNull()&&(h=h+1|0);var z=e.getString_61zpoe$("personOrgId");e.wasNull()&&(h=h+1|0);var w=e.getLong_61zpoe$("personGroupUid");e.wasNull()&&(h=h+1|0);var O=e.getLong_61zpoe$("personMasterChangeSeqNum");e.wasNull()&&(h=h+1|0);var R=e.getLong_61zpoe$("personLocalChangeSeqNum");e.wasNull()&&(h=h+1|0);var A=e.getInt_61zpoe$("personLastChangedBy");e.wasNull()&&(h=h+1|0);var x=e.getLong_61zpoe$("personLct");e.wasNull()&&(h=h+1|0);var I=e.getString_61zpoe$("personCountry");e.wasNull()&&(h=h+1|0);var U=e.getInt_61zpoe$("personType");e.wasNull()&&(h=h+1|0);var D=24===h,P=new gat;if(P.learnerGroupMemberUid=n,P.learnerGroupMemberPersonUid=i,P.learnerGroupMemberLgUid=o,P.learnerGroupMemberRole=r,P.learnerGroupMemberActive=s,P.learnerGroupMemberMCSN=a,P.learnerGroupMemberCSN=c,P.learnerGroupMemberLCB=l,P.learnerGroupMemberLct=u,!D){var M=new zct;M.personUid=d,M.username=p,M.firstNames=_,M.lastName=m,M.emailAddr=f,M.phoneNum=g,M.gender=$,M.active=E,M.admin=y,M.personNotes=b,M.fatherName=S,M.fatherNumber=v,M.motherName=C,M.motherNum=N,M.dateOfBirth=T,M.personAddress=L,M.personOrgId=z,M.personGroupUid=w,M.personMasterChangeSeqNum=O,M.personLocalChangeSeqNum=R,M.personLastChangedBy=A,M.personLct=x,M.personCountry=I,M.personType=U,P.person=M}return P}));var e}function dM(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$learnerGroupUid=t,this.local$closure$contentEntryUid=e,this.local$_stmt=n}Cb.prototype=Object.create(N.prototype),Cb.prototype.constructor=Cb,Cb.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.buttonsToShowForContentEntry_2gd3um$(this.local$contentEntryUid,this.local$platformDownloadEnabled,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tb.prototype.buttonsToShowForContentEntry_2gd3um$=function(t,e,n,i){var o=new Cb(this,t,e,n);return i?o:o.doResume(null)},Nb.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Nb.prototype=Object.create(N.prototype),Nb.prototype.constructor=Nb,Nb.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.statusForDownloadDialog_s8cxhz$(this.local$contentEntryUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tb.prototype.statusForDownloadDialog_s8cxhz$=function(t,e,n){var i=new Nb(this,t,e);return n?i:i.doResume(null)},Tb.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Tb.prototype=Object.create(N.prototype),Tb.prototype.constructor=Tb,Tb.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.statusForContentEntryList_s8cxhz$(this.local$contentEntryUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tb.prototype.statusForContentEntryList_s8cxhz$=function(t,e,n){var i=new Tb(this,t,e);return n?i:i.doResume(null)},tb.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},Lb.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Lb.prototype=Object.create(N.prototype),Lb.prototype.constructor=Lb,Lb.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tb.prototype.insertAsync=function(t,e,n){var i=new Lb(this,t,e);return n?i:i.doResume(null)},tb.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},tb.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},tb.$metadata$={kind:c,simpleName:"ContentEntryDao_Repo",interfaces:[y$]},zb.$metadata$={kind:c,simpleName:"ContentEntryParentChildJoinDao",interfaces:[X6]},Ob.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ob.prototype=Object.create(N.prototype),Ob.prototype.constructor=Ob,Ob.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterContentEntryParentChildJoin_.insertListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},wb.prototype.insertListAsync_crmpdg$=function(t,e,n){var i=new Ob(this,t,e);return n?i:i.doResume(null)},wb.prototype.replaceList_crmpdg$=function(t){this._insertAdapterContentEntryParentChildJoin_upsert.insertList_4ezy5m$(t)},wb.prototype.insertWithReplace_iynbz7$=function(t){this._insertAdapterContentEntryParentChildJoin_upsert.insert_11rb$(t)},wb.prototype.insert_11rb$=function(t){return this._insertAdapterContentEntryParentChildJoin_.insertAndReturnId_11rb$(t)},Rb.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Rb.prototype=Object.create(N.prototype),Rb.prototype.constructor=Rb,Rb.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterContentEntryParentChildJoin_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},wb.prototype.insertAsync=function(t,e,n){var i=new Rb(this,t,e);return n?i:i.doResume(null)},wb.prototype.insertList_4ezy5m$=function(t){this._insertAdapterContentEntryParentChildJoin_.insertList_4ezy5m$(t)},wb.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE ContentEntryParentChildJoin SET cepcjLocalChangeSeqNum = ?, cepcjMasterChangeSeqNum = ?, cepcjLastChangedBy = ?, cepcjLct = ?, cepcjParentContentEntryUid = ?, cepcjChildContentEntryUid = ?, childIndex = ? WHERE cepcjUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.cepcjLocalChangeSeqNum),t.setLong_6svq3l$(2,i.cepcjMasterChangeSeqNum),t.setInt_vux9f0$(3,i.cepcjLastChangedBy),t.setLong_6svq3l$(4,i.cepcjLct),t.setLong_6svq3l$(5,i.cepcjParentContentEntryUid),t.setLong_6svq3l$(6,i.cepcjChildContentEntryUid),t.setInt_vux9f0$(7,i.childIndex),t.setLong_6svq3l$(8,i.cepcjUid),t.executeUpdate()}return t.getConnection().commit(),V}))},wb.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE ContentEntryParentChildJoin SET cepcjLocalChangeSeqNum = ?, cepcjMasterChangeSeqNum = ?, cepcjLastChangedBy = ?, cepcjLct = ?, cepcjParentContentEntryUid = ?, cepcjChildContentEntryUid = ?, childIndex = ? WHERE cepcjUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.cepcjLocalChangeSeqNum),t.setLong_6svq3l$(2,e.cepcjMasterChangeSeqNum),t.setInt_vux9f0$(3,e.cepcjLastChangedBy),t.setLong_6svq3l$(4,e.cepcjLct),t.setLong_6svq3l$(5,e.cepcjParentContentEntryUid),t.setLong_6svq3l$(6,e.cepcjChildContentEntryUid),t.setInt_vux9f0$(7,e.childIndex),t.setLong_6svq3l$(8,e.cepcjUid),t.executeUpdate()}))},Ab.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ab.prototype=Object.create(N.prototype),Ab.prototype.constructor=Ab,Ab.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ib.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ib.prototype=Object.create(N.prototype),Ib.prototype.constructor=Ib,Ib.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ContentEntryParentChildJoinReplicate(cepcjPk, cepcjDestination)\n | SELECT DISTINCT ContentEntryParentChildJoin.cepcjUid AS cepcjUid,\n | ? AS cepcjDestination\n | FROM ContentEntryParentChildJoin\n | WHERE ContentEntryParentChildJoin.cepcjLct != COALESCE(\n | (SELECT cepcjVersionId\n | FROM ContentEntryParentChildJoinReplicate\n | WHERE cepcjPk = ContentEntryParentChildJoin.cepcjUid\n | AND cepcjDestination = ?), -1) \n | /*psql ON CONFLICT(cepcjPk, cepcjDestination) DO UPDATE\n | SET cepcjPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ContentEntryParentChildJoinReplicate(cepcjPk, cepcjDestination)\n | SELECT DISTINCT ContentEntryParentChildJoin.cepcjUid AS cepcjUid,\n | ? AS cepcjDestination\n | FROM ContentEntryParentChildJoin\n | WHERE ContentEntryParentChildJoin.cepcjLct != COALESCE(\n | (SELECT cepcjVersionId\n | FROM ContentEntryParentChildJoinReplicate\n | WHERE cepcjPk = ContentEntryParentChildJoin.cepcjUid\n | AND cepcjDestination = ?), -1) \n | ON CONFLICT(cepcjPk, cepcjDestination) DO UPDATE\n | SET cepcjPending = true\n | \n | \n |")),xb(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},wb.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new Ib(this,t,e);return n?i:i.doResume(null)},Ub.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ub.prototype=Object.create(N.prototype),Ub.prototype.constructor=Ub,Ub.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Pb.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Pb.prototype=Object.create(N.prototype),Pb.prototype.constructor=Pb,Pb.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ContentEntryParentChildJoinReplicate(cepcjPk, cepcjDestination)\n | SELECT DISTINCT ContentEntryParentChildJoin.cepcjUid AS cepcjUid,\n | UserSession.usClientNodeId AS cepcjDestination\n | FROM ChangeLog\n | JOIN ContentEntryParentChildJoin\n | ON ChangeLog.chTableId = 7\n | AND ChangeLog.chEntityPk = ContentEntryParentChildJoin.cepcjUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ContentEntryParentChildJoin.cepcjLct != COALESCE(\n | (SELECT cepcjVersionId\n | FROM ContentEntryParentChildJoinReplicate\n | WHERE cepcjPk = ContentEntryParentChildJoin.cepcjUid\n | AND cepcjDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(cepcjPk, cepcjDestination) DO UPDATE\n | SET cepcjPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ContentEntryParentChildJoinReplicate(cepcjPk, cepcjDestination)\n | SELECT DISTINCT ContentEntryParentChildJoin.cepcjUid AS cepcjUid,\n | UserSession.usClientNodeId AS cepcjDestination\n | FROM ChangeLog\n | JOIN ContentEntryParentChildJoin\n | ON ChangeLog.chTableId = 7\n | AND ChangeLog.chEntityPk = ContentEntryParentChildJoin.cepcjUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ContentEntryParentChildJoin.cepcjLct != COALESCE(\n | (SELECT cepcjVersionId\n | FROM ContentEntryParentChildJoinReplicate\n | WHERE cepcjPk = ContentEntryParentChildJoin.cepcjUid\n | AND cepcjDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(cepcjPk, cepcjDestination) DO UPDATE\n | SET cepcjPending = true\n | \n | \n |")),Db,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},wb.prototype.replicateOnChange=function(t,e){var n=new Pb(this,t);return e?n:n.doResume(null)},wb.prototype.publicContentEntryParentChildJoins=function(){return ht(this._db,new st("SELECT ContentEntryParentChildJoin.* FROM ContentEntryParentChildJoin LEFT JOIN ContentEntry parentEntry ON ContentEntryParentChildJoin.cepcjParentContentEntryUid = parentEntry.contentEntryUid LEFT JOIN ContentEntry childEntry ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = childEntry.contentEntryUid WHERE parentEntry.publik AND childEntry.publik"),kb)},wb.prototype.all=function(){return ht(this._db,new st("SELECT * FROM ContentEntryParentChildJoin"),Gb)},wb.prototype.findParentByChildUuids_s8cxhz$=function(t){return ht(this._db,new st("SELECT * FROM ContentEntryParentChildJoin WHERE cepcjChildContentEntryUid = ? LIMIT 1"),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),qb)}));var e},wb.prototype.findListOfParentsByChildUuid_s8cxhz$=function(t){return ht(this._db,new st("SELECT * FROM ContentEntryParentChildJoin WHERE cepcjChildContentEntryUid = ?"),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),Fb)}));var e},wb.prototype.findListOfChildsByParentUuid_s8cxhz$=function(t){return ht(this._db,new st("SELECT * FROM ContentEntryParentChildJoin WHERE cepcjParentContentEntryUid = ?"),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),Bb)}));var e},wb.prototype.findJoinByParentChildUuids_3pjtqy$=function(t,e){return ht(this._db,new st("SELECT * FROM ContentEntryParentChildJoin WHERE cepcjParentContentEntryUid = ? AND cepcjChildContentEntryUid = ? LIMIT 1"),(n=t,i=e,function(t){return t.setLong_6svq3l$(1,n),t.setLong_6svq3l$(2,i),ut(t.executeQuery(),Wb)}));var n,i},Vb.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Vb.prototype=Object.create(N.prototype),Vb.prototype.constructor=Vb,Vb.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Hb);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},wb.prototype.selectTopEntries=function(t){return ct(this._db,new st("SELECT ContentEntry.* FROM ContentEntry WHERE NOT EXISTS(SELECT cepcjUid FROM ContentEntryParentChildJoin WHERE cepcjChildContentEntryUid = ContentEntry.contentEntryUid) AND EXISTS(SELECT cepcjUid FROM ContentEntryParentChildJoin WHERE cepcjParentContentEntryUid = ContentEntry.contentEntryUid)"),Kb,t)},Xb.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Xb.prototype=Object.create(N.prototype),Xb.prototype.constructor=Xb,Xb.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$contentEntryUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$updateTime),this.local$_stmt.setArray_wqp8hw$(3,yt(this.local$_stmt.getConnection(),"BIGINT",q(this.local$closure$selectedItems))),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Yb.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Yb.prototype=Object.create(N.prototype),Yb.prototype.constructor=Yb,Yb.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | UPDATE ContentEntryParentChildJoin \n | SET cepcjParentContentEntryUid = ?, \n | cepcjLct = ? \n | WHERE cepcjUid IN (?)\n | \n "),!0),Jb(this.local$contentEntryUid,this.local$updateTime,this.local$selectedItems),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},wb.prototype.moveListOfEntriesToNewParent_8jtwwy$=function(t,e,n,i,o){var r=new Yb(this,t,e,n,i);return o?r:r.doResume(null)},Qb.prototype.makeSql_6taknv$=function(t){return"INSERT INTO ContentEntryParentChildJoin (cepcjUid, cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum, cepcjLastChangedBy, cepcjLct, cepcjParentContentEntryUid, cepcjChildContentEntryUid, childIndex) VALUES(?, ?, ?, ?, ?, ?, ?, ?)"},Qb.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.cepcjUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.cepcjUid),t.setLong_6svq3l$(2,e.cepcjLocalChangeSeqNum),t.setLong_6svq3l$(3,e.cepcjMasterChangeSeqNum),t.setInt_vux9f0$(4,e.cepcjLastChangedBy),t.setLong_6svq3l$(5,e.cepcjLct),t.setLong_6svq3l$(6,e.cepcjParentContentEntryUid),t.setLong_6svq3l$(7,e.cepcjChildContentEntryUid),t.setInt_vux9f0$(8,e.childIndex)},Qb.$metadata$={kind:c,interfaces:[pt]},Zb.prototype.makeSql_6taknv$=function(t){return"INSERT OR REPLACE INTO ContentEntryParentChildJoin (cepcjUid, cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum, cepcjLastChangedBy, cepcjLct, cepcjParentContentEntryUid, cepcjChildContentEntryUid, childIndex) VALUES(?, ?, ?, ?, ?, ?, ?, ?)"},Zb.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.cepcjUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.cepcjUid),t.setLong_6svq3l$(2,e.cepcjLocalChangeSeqNum),t.setLong_6svq3l$(3,e.cepcjMasterChangeSeqNum),t.setInt_vux9f0$(4,e.cepcjLastChangedBy),t.setLong_6svq3l$(5,e.cepcjLct),t.setLong_6svq3l$(6,e.cepcjParentContentEntryUid),t.setLong_6svq3l$(7,e.cepcjChildContentEntryUid),t.setInt_vux9f0$(8,e.childIndex)},Zb.$metadata$={kind:c,interfaces:[pt]},wb.$metadata$={kind:c,simpleName:"ContentEntryParentChildJoinDao_JdbcKt",interfaces:[zb]},eS.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},eS.prototype=Object.create(N.prototype),eS.prototype.constructor=eS,eS.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tS.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new eS(this,t,e);return n?i:i.doResume(null)},nS.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},nS.prototype=Object.create(N.prototype),nS.prototype.constructor=nS,nS.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tS.prototype.replicateOnChange=function(t,e){var n=new nS(this,t);return e?n:n.doResume(null)},iS.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},iS.prototype=Object.create(N.prototype),iS.prototype.constructor=iS,iS.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_pkManager=_t(w(this.$this._db_0)),this.local$_generatedPks=F(),this.local$$receiver=this.local$entityList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$$receiver.hasNext()){this.state_0=5;continue}if(this.local$element=this.local$$receiver.next(),O(this.local$element.cepcjUid,X)){if(this.state_0=3,this.result_0=this.local$_pkManager.nextIdAsync_za3lpa$(7,this),this.result_0===C)return C;continue}this.state_0=4;continue;case 3:var t=this.result_0;this.local$element.cepcjUid=t,this.local$_generatedPks.add_11rb$(t),this.state_0=4;continue;case 4:this.local$element.cepcjLct=J(),this.state_0=2;continue;case 5:if(this.state_0=6,this.result_0=this.$this._dao_0.insertListAsync_crmpdg$(this.local$entityList,this),this.result_0===C)return C;continue;case 6:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tS.prototype.insertListAsync_crmpdg$=function(t,e,n){var i=new iS(this,t,e);return n?i:i.doResume(null)},tS.prototype.publicContentEntryParentChildJoins=function(){throw v("Synchronous db access is NOT possible on Javascript!")},tS.prototype.all=function(){throw v("Synchronous db access is NOT possible on Javascript!")},tS.prototype.findParentByChildUuids_s8cxhz$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},tS.prototype.findListOfParentsByChildUuid_s8cxhz$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},tS.prototype.findListOfChildsByParentUuid_s8cxhz$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},tS.prototype.findJoinByParentChildUuids_3pjtqy$=function(t,e){throw v("Synchronous db access is NOT possible on Javascript!")},tS.prototype.selectTopEntries=function(t){return this._dao_0.selectTopEntries(t)},tS.prototype.replaceList_crmpdg$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},tS.prototype.insertWithReplace_iynbz7$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},oS.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},oS.prototype=Object.create(N.prototype),oS.prototype.constructor=oS,oS.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.moveListOfEntriesToNewParent_8jtwwy$(this.local$contentEntryUid,this.local$selectedItems,this.local$updateTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tS.prototype.moveListOfEntriesToNewParent_8jtwwy$=function(t,e,n,i,o){var r=new oS(this,t,e,n,i);return o?r:r.doResume(null)},tS.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},rS.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},rS.prototype=Object.create(N.prototype),rS.prototype.constructor=rS,rS.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.cepcjUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(7,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.cepcjUid=e,this.state_0=3;continue;case 3:if(this.local$entity.cepcjLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.cepcjUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tS.prototype.insertAsync=function(t,e,n){var i=new rS(this,t,e);return n?i:i.doResume(null)},tS.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},tS.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},tS.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},tS.$metadata$={kind:c,simpleName:"ContentEntryParentChildJoinDao_ReplicateWrapper",interfaces:[zb]},aS.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},aS.prototype=Object.create(N.prototype),aS.prototype.constructor=aS,aS.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},sS.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new aS(this,t,e);return n?i:i.doResume(null)},cS.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},cS.prototype=Object.create(N.prototype),cS.prototype.constructor=cS,cS.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},sS.prototype.replicateOnChange=function(t,e){var n=new cS(this,t);return e?n:n.doResume(null)},lS.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},lS.prototype=Object.create(N.prototype),lS.prototype.constructor=lS,lS.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertListAsync_crmpdg$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},sS.prototype.insertListAsync_crmpdg$=function(t,e,n){var i=new lS(this,t,e);return n?i:i.doResume(null)},sS.prototype.publicContentEntryParentChildJoins=function(){return this._dao.publicContentEntryParentChildJoins()},sS.prototype.all=function(){return this._dao.all()},sS.prototype.findParentByChildUuids_s8cxhz$=function(t){return this._dao.findParentByChildUuids_s8cxhz$(t)},sS.prototype.findListOfParentsByChildUuid_s8cxhz$=function(t){return this._dao.findListOfParentsByChildUuid_s8cxhz$(t)},sS.prototype.findListOfChildsByParentUuid_s8cxhz$=function(t){return this._dao.findListOfChildsByParentUuid_s8cxhz$(t)},sS.prototype.findJoinByParentChildUuids_3pjtqy$=function(t,e){return this._dao.findJoinByParentChildUuids_3pjtqy$(t,e)},uS.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},uS.prototype=Object.create(N.prototype),uS.prototype.constructor=uS,uS.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.selectTopEntries(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},sS.prototype.selectTopEntries=function(t,e){var n=new uS(this,t);return e?n:n.doResume(null)},sS.prototype.replaceList_crmpdg$=function(t){this._dao.replaceList_crmpdg$(t)},sS.prototype.insertWithReplace_iynbz7$=function(t){this._dao.insertWithReplace_iynbz7$(t)},hS.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},hS.prototype=Object.create(N.prototype),hS.prototype.constructor=hS,hS.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.moveListOfEntriesToNewParent_8jtwwy$(this.local$contentEntryUid,this.local$selectedItems,this.local$updateTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},sS.prototype.moveListOfEntriesToNewParent_8jtwwy$=function(t,e,n,i,o){var r=new hS(this,t,e,n,i);return o?r:r.doResume(null)},sS.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},dS.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},dS.prototype=Object.create(N.prototype),dS.prototype.constructor=dS,dS.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},sS.prototype.insertAsync=function(t,e,n){var i=new dS(this,t,e);return n?i:i.doResume(null)},sS.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},sS.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},sS.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},sS.$metadata$={kind:c,simpleName:"ContentEntryParentChildJoinDao_Repo",interfaces:[zb]},pS.$metadata$={kind:c,simpleName:"ContentEntryPictureDao",interfaces:[X6]},_S.prototype.insert_11rb$=function(t){return this._insertAdapterContentEntryPicture_.insertAndReturnId_11rb$(t)},mS.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},mS.prototype=Object.create(N.prototype),mS.prototype.constructor=mS,mS.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterContentEntryPicture_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_S.prototype.insertAsync=function(t,e,n){var i=new mS(this,t,e);return n?i:i.doResume(null)},_S.prototype.insertList_4ezy5m$=function(t){this._insertAdapterContentEntryPicture_.insertList_4ezy5m$(t)},fS.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fS.prototype=Object.create(N.prototype),fS.prototype.constructor=fS,fS.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$ContentEntryPicture.cepContentEntryUid),this.local$_stmt.setString_vqvrqt$(2,this.local$closure$ContentEntryPicture.cepUri),this.local$_stmt.setString_vqvrqt$(3,this.local$closure$ContentEntryPicture.cepMd5),this.local$_stmt.setInt_vux9f0$(4,this.local$closure$ContentEntryPicture.cepFileSize),this.local$_stmt.setLong_6svq3l$(5,this.local$closure$ContentEntryPicture.cepTimestamp),this.local$_stmt.setString_vqvrqt$(6,this.local$closure$ContentEntryPicture.cepMimeType),this.local$_stmt.setBoolean_fzusl$(7,this.local$closure$ContentEntryPicture.cepActive),this.local$_stmt.setLong_6svq3l$(8,this.local$closure$ContentEntryPicture.cepUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},$S.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},$S.prototype=Object.create(N.prototype),$S.prototype.constructor=$S,$S.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE ContentEntryPicture SET cepContentEntryUid = ?, cepUri = ?, cepMd5 = ?, cepFileSize = ?, cepTimestamp = ?, cepMimeType = ?, cepActive = ? WHERE cepUid = ?",gS(this.local$ContentEntryPicture),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_S.prototype.updateAsync_vfioqn$=function(t,e,n){var i=new $S(this,t,e);return n?i:i.doResume(null)},_S.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE ContentEntryPicture SET cepContentEntryUid = ?, cepUri = ?, cepMd5 = ?, cepFileSize = ?, cepTimestamp = ?, cepMimeType = ?, cepActive = ? WHERE cepUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.cepContentEntryUid),t.setString_vqvrqt$(2,i.cepUri),t.setString_vqvrqt$(3,i.cepMd5),t.setInt_vux9f0$(4,i.cepFileSize),t.setLong_6svq3l$(5,i.cepTimestamp),t.setString_vqvrqt$(6,i.cepMimeType),t.setBoolean_fzusl$(7,i.cepActive),t.setLong_6svq3l$(8,i.cepUid),t.executeUpdate()}return t.getConnection().commit(),V}))},_S.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE ContentEntryPicture SET cepContentEntryUid = ?, cepUri = ?, cepMd5 = ?, cepFileSize = ?, cepTimestamp = ?, cepMimeType = ?, cepActive = ? WHERE cepUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.cepContentEntryUid),t.setString_vqvrqt$(2,e.cepUri),t.setString_vqvrqt$(3,e.cepMd5),t.setInt_vux9f0$(4,e.cepFileSize),t.setLong_6svq3l$(5,e.cepTimestamp),t.setString_vqvrqt$(6,e.cepMimeType),t.setBoolean_fzusl$(7,e.cepActive),t.setLong_6svq3l$(8,e.cepUid),t.executeUpdate()}))},ES.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ES.prototype=Object.create(N.prototype),ES.prototype.constructor=ES,ES.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},bS.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},bS.prototype=Object.create(N.prototype),bS.prototype.constructor=bS,bS.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ContentEntryPictureReplicate(cepPk, cepDestination)\n | SELECT DISTINCT cepUid AS cepPK,\n | ? AS siteDestination\n | FROM ContentEntryPicture\n | WHERE ContentEntryPicture.cepTimestamp != COALESCE(\n | (SELECT cepVersionId\n | FROM ContentEntryPictureReplicate\n | WHERE cepPk = ContentEntryPicture.cepUid\n | AND cepDestination = ?), -1) \n | /*psql ON CONFLICT(cepPk, cepDestination) DO UPDATE\n | SET cepPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ContentEntryPictureReplicate(cepPk, cepDestination)\n | SELECT DISTINCT cepUid AS cepPK,\n | ? AS siteDestination\n | FROM ContentEntryPicture\n | WHERE ContentEntryPicture.cepTimestamp != COALESCE(\n | (SELECT cepVersionId\n | FROM ContentEntryPictureReplicate\n | WHERE cepPk = ContentEntryPicture.cepUid\n | AND cepDestination = ?), -1) \n | ON CONFLICT(cepPk, cepDestination) DO UPDATE\n | SET cepPending = true\n | \n | \n |")),yS(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_S.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new bS(this,t,e);return n?i:i.doResume(null)},SS.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},SS.prototype=Object.create(N.prototype),SS.prototype.constructor=SS,SS.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},CS.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},CS.prototype=Object.create(N.prototype),CS.prototype.constructor=CS,CS.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ContentEntryPictureReplicate(cepPk, cepDestination)\n | SELECT DISTINCT ContentEntryPicture.cepUid AS cepPk,\n | UserSession.usClientNodeId AS siteDestination\n | FROM ChangeLog\n | JOIN ContentEntryPicture\n | ON ChangeLog.chTableId = 138\n | AND ChangeLog.chEntityPk = ContentEntryPicture.cepUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ContentEntryPicture.cepTimestamp != COALESCE(\n | (SELECT cepVersionId\n | FROM ContentEntryPictureReplicate\n | WHERE cepPk = ContentEntryPicture.cepUid\n | AND cepDestination = UserSession.usClientNodeId), 0) \n | /*psql ON CONFLICT(cepPk, cepDestination) DO UPDATE\n | SET cepPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ContentEntryPictureReplicate(cepPk, cepDestination)\n | SELECT DISTINCT ContentEntryPicture.cepUid AS cepPk,\n | UserSession.usClientNodeId AS siteDestination\n | FROM ChangeLog\n | JOIN ContentEntryPicture\n | ON ChangeLog.chTableId = 138\n | AND ChangeLog.chEntityPk = ContentEntryPicture.cepUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ContentEntryPicture.cepTimestamp != COALESCE(\n | (SELECT cepVersionId\n | FROM ContentEntryPictureReplicate\n | WHERE cepPk = ContentEntryPicture.cepUid\n | AND cepDestination = UserSession.usClientNodeId), 0) \n | ON CONFLICT(cepPk, cepDestination) DO UPDATE\n | SET cepPending = true\n | \n | \n |")),vS,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_S.prototype.replicateOnChange=function(t,e){var n=new CS(this,t);return e?n:n.doResume(null)},TS.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},TS.prototype=Object.create(N.prototype),TS.prototype.constructor=TS,TS.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$entryUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,NS);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_S.prototype.findByContentEntryUidAsync_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT * \n | FROM ContentEntryPicture \n | WHERE cepContentEntryUid = ?\n | AND cepActive\n | ORDER BY cepTimestamp DESC \n | LIMIT 1\n | \n ")),(n=t,function(t,e,i){var o=new TS(n,t,e);return i?o:o.doResume(null)}),e);var n},zS.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},zS.prototype=Object.create(N.prototype),zS.prototype.constructor=zS,zS.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$entryUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,LS);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},OS.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},OS.prototype=Object.create(N.prototype),OS.prototype.constructor=OS,OS.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ContentEntryPictureDao_JdbcKt._db,new st(S("\n |\n | SELECT * \n | FROM ContentEntryPicture \n | WHERE cepContentEntryUid = ?\n | AND cepActive\n | ORDER BY cepTimestamp DESC \n | LIMIT 1\n | \n ")),wS(this.local$closure$entryUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_S.prototype.findByContentEntryUidLive_s8cxhz$=function(t){return new ft(this._db,Et("ContentEntryPicture"),(e=this,n=t,function(t,i){var o=new OS(e,n,t);return i?o:o.doResume(null)}));var e,n},RS.prototype.makeSql_6taknv$=function(t){return"INSERT INTO ContentEntryPicture (cepUid, cepContentEntryUid, cepUri, cepMd5, cepFileSize, cepTimestamp, cepMimeType, cepActive) VALUES(?, ?, ?, ?, ?, ?, ?, ?)"},RS.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.cepUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.cepUid),t.setLong_6svq3l$(2,e.cepContentEntryUid),t.setString_vqvrqt$(3,e.cepUri),t.setString_vqvrqt$(4,e.cepMd5),t.setInt_vux9f0$(5,e.cepFileSize),t.setLong_6svq3l$(6,e.cepTimestamp),t.setString_vqvrqt$(7,e.cepMimeType),t.setBoolean_fzusl$(8,e.cepActive)},RS.$metadata$={kind:c,interfaces:[pt]},_S.$metadata$={kind:c,simpleName:"ContentEntryPictureDao_JdbcKt",interfaces:[pS]},xS.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},xS.prototype=Object.create(N.prototype),xS.prototype.constructor=xS,xS.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},AS.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new xS(this,t,e);return n?i:i.doResume(null)},IS.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},IS.prototype=Object.create(N.prototype),IS.prototype.constructor=IS,IS.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},AS.prototype.replicateOnChange=function(t,e){var n=new IS(this,t);return e?n:n.doResume(null)},AS.prototype.findByContentEntryUidAsync_s8cxhz$=function(t,e){return this._dao_0.findByContentEntryUidAsync_s8cxhz$(t,e)},AS.prototype.findByContentEntryUidLive_s8cxhz$=function(t){return this._dao_0.findByContentEntryUidLive_s8cxhz$(t)},US.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},US.prototype=Object.create(N.prototype),US.prototype.constructor=US,US.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=bt(this.$this._db_0,new M6(this.local$ContentEntryPicture),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.local$ContentEntryPicture.cepTimestamp=J(),this.state_0=3,this.result_0=this.$this._dao_0.updateAsync_vfioqn$(this.local$ContentEntryPicture,this),this.result_0===C)return C;continue;case 3:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},AS.prototype.updateAsync_vfioqn$=function(t,e,n){var i=new US(this,t,e);return n?i:i.doResume(null)},AS.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},DS.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},DS.prototype=Object.create(N.prototype),DS.prototype.constructor=DS,DS.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=bt(this.$this._db_0,new M6(this.local$entity),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:var t=_t(w(this.$this._db_0));if(O(this.local$entity.cepUid,X)){if(this.state_0=3,this.result_0=t.nextIdAsync_za3lpa$(138,this),this.result_0===C)return C;continue}this.state_0=4;continue;case 3:var e=this.result_0;this.local$entity.cepUid=e,this.state_0=4;continue;case 4:if(this.local$entity.cepTimestamp=J(),this.state_0=5,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 5:return this.local$entity.cepUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},AS.prototype.insertAsync=function(t,e,n){var i=new DS(this,t,e);return n?i:i.doResume(null)},AS.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},AS.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},AS.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},AS.$metadata$={kind:c,simpleName:"ContentEntryPictureDao_ReplicateWrapper",interfaces:[pS]},MS.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},MS.prototype=Object.create(N.prototype),MS.prototype.constructor=MS,MS.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},PS.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new MS(this,t,e);return n?i:i.doResume(null)},kS.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},kS.prototype=Object.create(N.prototype),kS.prototype.constructor=kS,kS.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},PS.prototype.replicateOnChange=function(t,e){var n=new kS(this,t);return e?n:n.doResume(null)},jS.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},jS.prototype=Object.create(N.prototype),jS.prototype.constructor=jS,jS.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByContentEntryUidAsync_s8cxhz$(this.local$entryUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},PS.prototype.findByContentEntryUidAsync_s8cxhz$=function(t,e,n){var i=new jS(this,t,e);return n?i:i.doResume(null)},PS.prototype.findByContentEntryUidLive_s8cxhz$=function(t){return this._dao.findByContentEntryUidLive_s8cxhz$(t)},GS.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},GS.prototype=Object.create(N.prototype),GS.prototype.constructor=GS,GS.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateAsync_vfioqn$(this.local$ContentEntryPicture,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},PS.prototype.updateAsync_vfioqn$=function(t,e,n){var i=new GS(this,t,e);return n?i:i.doResume(null)},PS.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},qS.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},qS.prototype=Object.create(N.prototype),qS.prototype.constructor=qS,qS.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},PS.prototype.insertAsync=function(t,e,n){var i=new qS(this,t,e);return n?i:i.doResume(null)},PS.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},PS.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},PS.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},PS.$metadata$={kind:c,simpleName:"ContentEntryPictureDao_Repo",interfaces:[pS]},FS.$metadata$={kind:c,simpleName:"ContentEntryRelatedEntryJoinDao",interfaces:[X6]},BS.prototype.insert_11rb$=function(t){return this._insertAdapterContentEntryRelatedEntryJoin_.insertAndReturnId_11rb$(t)},WS.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},WS.prototype=Object.create(N.prototype),WS.prototype.constructor=WS,WS.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterContentEntryRelatedEntryJoin_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},BS.prototype.insertAsync=function(t,e,n){var i=new WS(this,t,e);return n?i:i.doResume(null)},BS.prototype.insertList_4ezy5m$=function(t){this._insertAdapterContentEntryRelatedEntryJoin_.insertList_4ezy5m$(t)},BS.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE ContentEntryRelatedEntryJoin SET cerejContentEntryUid = ?, cerejRelatedEntryUid = ?, cerejLastChangedBy = ?, relType = ?, comment = ?, cerejRelLanguageUid = ?, cerejLocalChangeSeqNum = ?, cerejMasterChangeSeqNum = ?, cerejLct = ? WHERE cerejUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.cerejContentEntryUid),t.setLong_6svq3l$(2,e.cerejRelatedEntryUid),t.setInt_vux9f0$(3,e.cerejLastChangedBy),t.setInt_vux9f0$(4,e.relType),t.setString_vqvrqt$(5,e.comment),t.setLong_6svq3l$(6,e.cerejRelLanguageUid),t.setLong_6svq3l$(7,e.cerejLocalChangeSeqNum),t.setLong_6svq3l$(8,e.cerejMasterChangeSeqNum),t.setLong_6svq3l$(9,e.cerejLct),t.setLong_6svq3l$(10,e.cerejUid),t.executeUpdate()}))},BS.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE ContentEntryRelatedEntryJoin SET cerejContentEntryUid = ?, cerejRelatedEntryUid = ?, cerejLastChangedBy = ?, relType = ?, comment = ?, cerejRelLanguageUid = ?, cerejLocalChangeSeqNum = ?, cerejMasterChangeSeqNum = ?, cerejLct = ? WHERE cerejUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.cerejContentEntryUid),t.setLong_6svq3l$(2,i.cerejRelatedEntryUid),t.setInt_vux9f0$(3,i.cerejLastChangedBy),t.setInt_vux9f0$(4,i.relType),t.setString_vqvrqt$(5,i.comment),t.setLong_6svq3l$(6,i.cerejRelLanguageUid),t.setLong_6svq3l$(7,i.cerejLocalChangeSeqNum),t.setLong_6svq3l$(8,i.cerejMasterChangeSeqNum),t.setLong_6svq3l$(9,i.cerejLct),t.setLong_6svq3l$(10,i.cerejUid),t.executeUpdate()}return t.getConnection().commit(),V}))},HS.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},HS.prototype=Object.create(N.prototype),HS.prototype.constructor=HS,HS.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},KS.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},KS.prototype=Object.create(N.prototype),KS.prototype.constructor=KS,KS.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ContentEntryRelatedEntryJoinReplicate(cerejPk, cerejDestination)\n | SELECT DISTINCT ContentEntryRelatedEntryJoin.cerejUid AS cerejPk,\n | ? AS cerejDestination\n | FROM ContentEntryRelatedEntryJoin\n | WHERE ContentEntryRelatedEntryJoin.cerejLct != COALESCE(\n | (SELECT cerejVersionId\n | FROM ContentEntryRelatedEntryJoinReplicate\n | WHERE cerejPk = ContentEntryRelatedEntryJoin.cerejUid\n | AND cerejDestination = ?), 0) \n | /*psql ON CONFLICT(cerejPk, cerejDestination) DO UPDATE\n | SET cerejPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ContentEntryRelatedEntryJoinReplicate(cerejPk, cerejDestination)\n | SELECT DISTINCT ContentEntryRelatedEntryJoin.cerejUid AS cerejPk,\n | ? AS cerejDestination\n | FROM ContentEntryRelatedEntryJoin\n | WHERE ContentEntryRelatedEntryJoin.cerejLct != COALESCE(\n | (SELECT cerejVersionId\n | FROM ContentEntryRelatedEntryJoinReplicate\n | WHERE cerejPk = ContentEntryRelatedEntryJoin.cerejUid\n | AND cerejDestination = ?), 0) \n | ON CONFLICT(cerejPk, cerejDestination) DO UPDATE\n | SET cerejPending = true\n | \n | \n |")),VS(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},BS.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new KS(this,t,e);return n?i:i.doResume(null)},XS.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},XS.prototype=Object.create(N.prototype),XS.prototype.constructor=XS,XS.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},YS.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},YS.prototype=Object.create(N.prototype),YS.prototype.constructor=YS,YS.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ContentEntryRelatedEntryJoinReplicate(cerejPk, cerejDestination)\n | SELECT DISTINCT ContentEntryRelatedEntryJoin.cerejUid AS cerejUid,\n | UserSession.usClientNodeId AS cerejDestination\n | FROM ChangeLog\n | JOIN ContentEntryRelatedEntryJoin\n | ON ChangeLog.chTableId = 8\n | AND ChangeLog.chEntityPk = ContentEntryRelatedEntryJoin.cerejUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ContentEntryRelatedEntryJoin.cerejLct != COALESCE(\n | (SELECT cerejVersionId\n | FROM ContentEntryRelatedEntryJoinReplicate\n | WHERE cerejPk = ContentEntryRelatedEntryJoin.cerejUid\n | AND cerejDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(cerejPk, cerejDestination) DO UPDATE\n | SET cerejPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ContentEntryRelatedEntryJoinReplicate(cerejPk, cerejDestination)\n | SELECT DISTINCT ContentEntryRelatedEntryJoin.cerejUid AS cerejUid,\n | UserSession.usClientNodeId AS cerejDestination\n | FROM ChangeLog\n | JOIN ContentEntryRelatedEntryJoin\n | ON ChangeLog.chTableId = 8\n | AND ChangeLog.chEntityPk = ContentEntryRelatedEntryJoin.cerejUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ContentEntryRelatedEntryJoin.cerejLct != COALESCE(\n | (SELECT cerejVersionId\n | FROM ContentEntryRelatedEntryJoinReplicate\n | WHERE cerejPk = ContentEntryRelatedEntryJoin.cerejUid\n | AND cerejDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(cerejPk, cerejDestination) DO UPDATE\n | SET cerejPending = true\n | \n | \n |")),JS,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},BS.prototype.replicateOnChange=function(t,e){var n=new YS(this,t);return e?n:n.doResume(null)},BS.prototype.publicContentEntryRelatedEntryJoins=function(){return ht(this._db,new st("SELECT ContentEntryRelatedEntryJoin.* FROM ContentEntryRelatedEntryJoin LEFT JOIN ContentEntry ON ContentEntryRelatedEntryJoin.cerejRelatedEntryUid = ContentEntry.contentEntryUid WHERE ContentEntry.publik"),ZS)},BS.prototype.findPrimaryByTranslation_s8cxhz$=function(t){return ht(this._db,new st("SELECT * FROM ContentEntryRelatedEntryJoin WHERE cerejRelatedEntryUid = ? LIMIT 1"),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),tv)}));var e},nv.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},nv.prototype=Object.create(N.prototype),nv.prototype.constructor=nv,nv.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$contentEntryUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$contentEntryUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$contentEntryUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,ev);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},BS.prototype.findAllTranslationsForContentEntryAsync_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT ContentEntryRelatedEntryJoin.cerejContentEntryUid, ContentEntryRelatedEntryJoin.cerejRelatedEntryUid, CASE ContentEntryRelatedEntryJoin.cerejRelatedEntryUid WHEN ? THEN (SELECT name FROM Language WHERE langUid = (SELECT primaryLanguageUid FROM ContentEntry WHERE contentEntryUid = ContentEntryRelatedEntryJoin.cerejContentEntryUid)) ELSE Language.name END languageName FROM ContentEntryRelatedEntryJoin LEFT JOIN Language ON ContentEntryRelatedEntryJoin.cerejRelLanguageUid = Language.langUid WHERE (ContentEntryRelatedEntryJoin.cerejContentEntryUid = ? OR ContentEntryRelatedEntryJoin.cerejContentEntryUid IN (SELECT cerejContentEntryUid FROM ContentEntryRelatedEntryJoin WHERE cerejRelatedEntryUid = ?)) AND ContentEntryRelatedEntryJoin.relType = 1"),(n=t,function(t,e,i){var o=new nv(n,t,e);return i?o:o.doResume(null)}),e);var n},rv.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},rv.prototype=Object.create(N.prototype),rv.prototype.constructor=rv,rv.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$contentEntryUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$contentEntryUid),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(4,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,ov);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},av.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},av.prototype=Object.create(N.prototype),av.prototype.constructor=av,av.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ContentEntryRelatedEntryJoinDao_JdbcKt._db,new st(S("\n |SELECT * FROM (SELECT ContentEntryRelatedEntryJoin.*, Language.* FROM ContentEntryRelatedEntryJoin\n | LEFT JOIN Language ON ContentEntryRelatedEntryJoin.cerejRelLanguageUid = Language.langUid\n | WHERE (ContentEntryRelatedEntryJoin.cerejContentEntryUid = ?\n | OR ContentEntryRelatedEntryJoin.cerejContentEntryUid IN\n | (SELECT cerejContentEntryUid FROM ContentEntryRelatedEntryJoin WHERE cerejRelatedEntryUid = ?))\n | AND ContentEntryRelatedEntryJoin.relType = 1\n | ORDER BY Language.name) LIMIT ? OFFSET ?\n ")),sv(this.local$closure$contentEntryUid,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},iv.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$ContentEntryRelatedEntryJoinDao_JdbcKt._db,p(["ContentEntryRelatedEntryJoin","Language"]),(n=this.this$ContentEntryRelatedEntryJoinDao_JdbcKt,i=this.closure$contentEntryUid,o=e,r=t,function(t,e){var s=new av(n,i,o,r,t);return e?s:s.doResume(null)}));var n,i,o,r},lv.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},lv.prototype=Object.create(N.prototype),lv.prototype.constructor=lv,lv.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$contentEntryUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$contentEntryUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,cv);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},hv.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},hv.prototype=Object.create(N.prototype),hv.prototype.constructor=hv,hv.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ContentEntryRelatedEntryJoinDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (SELECT ContentEntryRelatedEntryJoin.*, Language.* FROM ContentEntryRelatedEntryJoin\n | LEFT JOIN Language ON ContentEntryRelatedEntryJoin.cerejRelLanguageUid = Language.langUid\n | WHERE (ContentEntryRelatedEntryJoin.cerejContentEntryUid = ?\n | OR ContentEntryRelatedEntryJoin.cerejContentEntryUid IN\n | (SELECT cerejContentEntryUid FROM ContentEntryRelatedEntryJoin WHERE cerejRelatedEntryUid = ?))\n | AND ContentEntryRelatedEntryJoin.relType = 1\n | ORDER BY Language.name) \n ")),uv(this.local$closure$contentEntryUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},iv.prototype.getLength=function(){return new ft(this.this$ContentEntryRelatedEntryJoinDao_JdbcKt._db,p(["ContentEntryRelatedEntryJoin","Language"]),(t=this.this$ContentEntryRelatedEntryJoinDao_JdbcKt,e=this.closure$contentEntryUid,function(n,i){var o=new hv(t,e,n);return i?o:o.doResume(null)}));var t,e},iv.$metadata$={kind:c,interfaces:[gt]},BS.prototype.findAllTranslationsWithContentEntryUid_s8cxhz$=function(t){return new iv(this,t)},dv.prototype.makeSql_6taknv$=function(t){return"INSERT INTO ContentEntryRelatedEntryJoin (cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},dv.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.cerejUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.cerejUid),t.setLong_6svq3l$(2,e.cerejContentEntryUid),t.setLong_6svq3l$(3,e.cerejRelatedEntryUid),t.setInt_vux9f0$(4,e.cerejLastChangedBy),t.setInt_vux9f0$(5,e.relType),t.setString_vqvrqt$(6,e.comment),t.setLong_6svq3l$(7,e.cerejRelLanguageUid),t.setLong_6svq3l$(8,e.cerejLocalChangeSeqNum),t.setLong_6svq3l$(9,e.cerejMasterChangeSeqNum),t.setLong_6svq3l$(10,e.cerejLct)},dv.$metadata$={kind:c,interfaces:[pt]},BS.$metadata$={kind:c,simpleName:"ContentEntryRelatedEntryJoinDao_JdbcKt",interfaces:[FS]},_v.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_v.prototype=Object.create(N.prototype),_v.prototype.constructor=_v,_v.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},pv.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new _v(this,t,e);return n?i:i.doResume(null)},mv.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},mv.prototype=Object.create(N.prototype),mv.prototype.constructor=mv,mv.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},pv.prototype.replicateOnChange=function(t,e){var n=new mv(this,t);return e?n:n.doResume(null)},pv.prototype.publicContentEntryRelatedEntryJoins=function(){throw v("Synchronous db access is NOT possible on Javascript!")},pv.prototype.findPrimaryByTranslation_s8cxhz$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},pv.prototype.findAllTranslationsForContentEntryAsync_s8cxhz$=function(t,e){return this._dao_0.findAllTranslationsForContentEntryAsync_s8cxhz$(t,e)},pv.prototype.findAllTranslationsWithContentEntryUid_s8cxhz$=function(t){return this._dao_0.findAllTranslationsWithContentEntryUid_s8cxhz$(t)},pv.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},pv.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},fv.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fv.prototype=Object.create(N.prototype),fv.prototype.constructor=fv,fv.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.cerejUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(8,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.cerejUid=e,this.state_0=3;continue;case 3:if(this.local$entity.cerejLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.cerejUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},pv.prototype.insertAsync=function(t,e,n){var i=new fv(this,t,e);return n?i:i.doResume(null)},pv.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},pv.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},pv.$metadata$={kind:c,simpleName:"ContentEntryRelatedEntryJoinDao_ReplicateWrapper",interfaces:[FS]},$v.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},$v.prototype=Object.create(N.prototype),$v.prototype.constructor=$v,$v.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},gv.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new $v(this,t,e);return n?i:i.doResume(null)},Ev.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ev.prototype=Object.create(N.prototype),Ev.prototype.constructor=Ev,Ev.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},gv.prototype.replicateOnChange=function(t,e){var n=new Ev(this,t);return e?n:n.doResume(null)},gv.prototype.publicContentEntryRelatedEntryJoins=function(){return this._dao.publicContentEntryRelatedEntryJoins()},gv.prototype.findPrimaryByTranslation_s8cxhz$=function(t){return this._dao.findPrimaryByTranslation_s8cxhz$(t)},yv.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},yv.prototype=Object.create(N.prototype),yv.prototype.constructor=yv,yv.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findAllTranslationsForContentEntryAsync_s8cxhz$(this.local$contentEntryUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},gv.prototype.findAllTranslationsForContentEntryAsync_s8cxhz$=function(t,e,n){var i=new yv(this,t,e);return n?i:i.doResume(null)},gv.prototype.findAllTranslationsWithContentEntryUid_s8cxhz$=function(t){return this._dao.findAllTranslationsWithContentEntryUid_s8cxhz$(t)},gv.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},gv.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},bv.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},bv.prototype=Object.create(N.prototype),bv.prototype.constructor=bv,bv.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},gv.prototype.insertAsync=function(t,e,n){var i=new bv(this,t,e);return n?i:i.doResume(null)},gv.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},gv.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},gv.$metadata$={kind:c,simpleName:"ContentEntryRelatedEntryJoinDao_Repo",interfaces:[FS]},Sv.$metadata$={kind:c,simpleName:"ContentJobDao",interfaces:[]},Cv.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Cv.prototype=Object.create(N.prototype),Cv.prototype.constructor=Cv,Cv.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterContentJob_.insertAndReturnIdAsync_11rb$(this.local$contentJob,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vv.prototype.insertAsync_d5tex6$=function(t,e,n){var i=new Cv(this,t,e);return n?i:i.doResume(null)},vv.prototype.findByUid_s8cxhz$=function(t){return ht(this._db,new st(S("\n |\n | SELECT ContentJob.*\n | FROM ContentJob\n | WHERE cjUid = ? \n | \n ")),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),Nv)}));var e},Lv.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Lv.prototype=Object.create(N.prototype),Lv.prototype.constructor=Lv,Lv.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$cjUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Tv);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vv.prototype.findByUidAsync_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT ContentJob.*\n | FROM ContentJob\n | WHERE cjUid = ? \n | \n ")),(n=t,function(t,e,i){var o=new Lv(n,t,e);return i?o:o.doResume(null)}),e);var n},wv.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},wv.prototype=Object.create(N.prototype),wv.prototype.constructor=wv,wv.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$cjUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,zv);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Rv.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Rv.prototype=Object.create(N.prototype),Rv.prototype.constructor=Rv,Rv.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ContentJobDao_JdbcKt._db,new st(S("\n |\n | SELECT ContentJob.*\n | FROM ContentJob\n | WHERE cjUid = ?\n | \n ")),Ov(this.local$closure$cjUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vv.prototype.findLiveDataByUid_s8cxhz$=function(t){return new ft(this._db,Et("ContentJob"),(e=this,n=t,function(t,i){var o=new Rv(e,n,t);return i?o:o.doResume(null)}));var e,n},Av.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Av.prototype=Object.create(N.prototype),Av.prototype.constructor=Av,Av.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$toUri),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$cjUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Iv.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Iv.prototype=Object.create(N.prototype),Iv.prototype.constructor=Iv,Iv.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | UPDATE ContentJob\n | SET toUri = ?\n | WHERE cjUid = ?\n | \n ")),xv(this.local$toUri,this.local$cjUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vv.prototype.updateDestinationDir_a4hdmt$=function(t,e,n,i){var o=new Iv(this,t,e,n);return i?o:o.doResume(null)},Dv.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Dv.prototype=Object.create(N.prototype),Dv.prototype.constructor=Dv,Dv.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$contentJobId),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Uv);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Mv.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Mv.prototype=Object.create(N.prototype),Mv.prototype.constructor=Mv,Mv.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ContentJobDao_JdbcKt._db,new st(S("\n |\n | SELECT COALESCE((SELECT ContentJob.cjIsMeteredAllowed\n | FROM ContentJob\n | WHERE cjUid = ?\n | LIMIT 1), 0)\n | \n "),void 0,void 0,void 0,S("\n |\n | SELECT COALESCE((SELECT ContentJob.cjIsMeteredAllowed\n | FROM ContentJob\n | WHERE cjUid = ?\n | LIMIT 1), FALSE)\n | \n ")),Pv(this.local$closure$contentJobId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vv.prototype.findMeteredAllowedLiveData_s8cxhz$=function(t){return new ft(this._db,Et("ContentJob"),(e=this,n=t,function(t,i){var o=new Mv(e,n,t);return i?o:o.doResume(null)}));var e,n},kv.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},kv.prototype=Object.create(N.prototype),kv.prototype.constructor=kv,kv.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setBoolean_fzusl$(1,this.local$closure$meteredAllowed),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$contentEntryUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$contentEntryUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Gv.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Gv.prototype=Object.create(N.prototype),Gv.prototype.constructor=Gv,Gv.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | UPDATE ContentJob \n | SET cjIsMeteredAllowed = ?\n | WHERE cjUid IN (SELECT cjiJobUid \n | FROM ContentJobItem\n | WHERE cjiContentEntryUid = ?\n | OR cjiParentContentEntryUid = ?)\n | \n ")),jv(this.local$meteredAllowed,this.local$contentEntryUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vv.prototype.updateMeteredAllowedForEntry_2gd3um$=function(t,e,n,i){var o=new Gv(this,t,e,n);return i?o:o.doResume(null)},Fv.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Fv.prototype=Object.create(N.prototype),Fv.prototype.constructor=Fv,Fv.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$jobId),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,qv);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vv.prototype.isConnectivityAcceptableForJob_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | WITH ConnectivityStateCte(state) AS \n | (SELECT COALESCE(\n | (SELECT connectivityState \n | FROM ConnectivityStatus \n | LIMIT 1), 0))\n | \n | SELECT COALESCE((\n | SELECT 1 \n | FROM ContentJob \n | WHERE cjUid = ?\n | AND ((cjIsMeteredAllowed \n | AND (SELECT state FROM ConnectivityStateCte) = 3)\n |\t\t\t OR (SELECT state FROM ConnectivityStateCte) = 4)\n | ) ,0)\n | \n ")),(n=t,function(t,e,i){var o=new Fv(n,t,e);return i?o:o.doResume(null)}),e);var n},Bv.prototype.makeSql_6taknv$=function(t){return"INSERT INTO ContentJob (cjUid, toUri, cjProgress, cjTotal, cjNotificationTitle, cjIsMeteredAllowed, params) VALUES(?, ?, ?, ?, ?, ?, ?)"},Bv.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.cjUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.cjUid),t.setString_vqvrqt$(2,e.toUri),t.setLong_6svq3l$(3,e.cjProgress),t.setLong_6svq3l$(4,e.cjTotal),t.setString_vqvrqt$(5,e.cjNotificationTitle),t.setBoolean_fzusl$(6,e.cjIsMeteredAllowed),t.setString_vqvrqt$(7,e.params)},Bv.$metadata$={kind:c,interfaces:[pt]},vv.$metadata$={kind:c,simpleName:"ContentJobDao_JdbcKt",interfaces:[Sv]},Wv.$metadata$={kind:c,simpleName:"ContentJobItemDao",interfaces:[]},Vv.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Vv.prototype=Object.create(N.prototype),Vv.prototype.constructor=Vv,Vv.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterContentJobItem_.insertAndReturnIdAsync_11rb$(this.local$jobItem,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hv.prototype.insertJobItem_letzpf$=function(t,e,n){var i=new Vv(this,t,e);return n?i:i.doResume(null)},Kv.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Kv.prototype=Object.create(N.prototype),Kv.prototype.constructor=Kv,Kv.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterContentJobItem_.insertListAsync_4ezy5m$(this.local$jobItems,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hv.prototype.insertJobItems_xpde42$=function(t,e,n){var i=new Kv(this,t,e);return n?i:i.doResume(null)},Jv.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Jv.prototype=Object.create(N.prototype),Jv.prototype.constructor=Jv,Jv.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$contentJobUid),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$limit),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Xv);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hv.prototype.findNextItemsInQueue_yhmem3$=function(t,e,n){return ct(this._db,new st(S("\n |\n | WITH ConnectivityStateCte(state) AS \n | (SELECT COALESCE(\n | (SELECT connectivityState \n | FROM ConnectivityStatus \n | LIMIT 1), 0))\n | \n | SELECT ContentJobItem.*, ContentJob.*\n | FROM ContentJobItem\n | JOIN ContentJob\n | ON ContentJobItem.cjiJobUid = ContentJob.cjUid\n | WHERE ContentJobItem.cjiJobUid = ?\n | AND (ContentJobItem.cjiStatus = 4 OR \n | ContentJobItem.cjiStatus = 5)\n | AND (\n | NOT cjiConnectivityNeeded \n | OR ((SELECT state FROM ConnectivityStateCte) = 4) \n | OR (cjIsMeteredAllowed \n | AND (SELECT state FROM ConnectivityStateCte) = 3)\n | )\n | LIMIT ?\n | \n ")),(i=t,o=e,function(t,e,n){var r=new Jv(i,o,t,e);return n?r:r.doResume(null)}),n);var i,o},Qv.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Qv.prototype=Object.create(N.prototype),Qv.prototype.constructor=Qv,Qv.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$contentEntryUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Yv);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hv.prototype.findActiveContentJobItems_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT cjiRecursiveProgress AS progress, \n | cjiRecursiveTotal AS total, \n | cjNotificationTitle as progressTitle,\n | ContentJobItem.cjiUid\n | FROM ContentJobItem\n | JOIN ContentJob\n | ON ContentJob.cjUid = ContentJobItem.cjiJobUid\n | WHERE cjiContentEntryUid = ?\n | AND cjiRecursiveStatus >= 4\n | AND cjiRecursiveStatus <= 20\n | ORDER BY cjiStartTime DESC\n | \n ")),(n=t,function(t,e,i){var o=new Qv(n,t,e);return i?o:o.doResume(null)}),e);var n},Zv.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Zv.prototype=Object.create(N.prototype),Zv.prototype.constructor=Zv,Zv.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setInt_vux9f0$(1,this.local$closure$status),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$cjiUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},eC.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},eC.prototype=Object.create(N.prototype),eC.prototype.constructor=eC,eC.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | UPDATE ContentJobItem \n | SET cjiStatus = ?\n | WHERE cjiUid= ? \n | \n ")),tC(this.local$status,this.local$cjiUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hv.prototype.updateItemStatus_yhmem3$=function(t,e,n,i){var o=new eC(this,t,e,n);return i?o:o.doResume(null)},iC.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},iC.prototype=Object.create(N.prototype),iC.prototype.constructor=iC,iC.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$jobUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,nC);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hv.prototype.isJobDone_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT NOT EXISTS(\n | SELECT cjiUid \n | FROM ContentJobItem\n | WHERE cjiJobUid = ?\n | AND cjiStatus < 21) \n | \n ")),(n=t,function(t,e,i){var o=new iC(n,t,e);return i?o:o.doResume(null)}),e);var n},Hv.prototype.findRootJobItemByJobId_s8cxhz$=function(t){return ht(this._db,new st(S("\n |\n | SELECT * \n | FROM ContentJobItem\n | WHERE cjiJobUid = ? \n | AND cjiParentCjiUid = 0 \n | LIMIT 1\n | \n ")),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),oC)}));var e},rC.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},rC.prototype=Object.create(N.prototype),rC.prototype.constructor=rC,rC.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$cjiProgress),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$cjiTotal),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$cjiUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},aC.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},aC.prototype=Object.create(N.prototype),aC.prototype.constructor=aC,aC.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | UPDATE ContentJobItem\n | SET cjiItemProgress = ?,\n | cjiItemTotal = ?\n | WHERE cjiUid = ? \n | \n ")),sC(this.local$cjiProgress,this.local$cjiTotal,this.local$cjiUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hv.prototype.updateItemProgress_b9bd0d$=function(t,e,n,i,o){var r=new aC(this,t,e,n,i);return o?r:r.doResume(null)},cC.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},cC.prototype=Object.create(N.prototype),cC.prototype.constructor=cC,cC.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setBoolean_fzusl$(1,this.local$closure$connectivityNeeded),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$contentJobItemId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},uC.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},uC.prototype=Object.create(N.prototype),uC.prototype.constructor=uC,uC.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | UPDATE ContentJobItem\n | SET cjiConnectivityNeeded = ?\n | WHERE cjiUid = ? \n | \n ")),lC(this.local$connectivityNeeded,this.local$contentJobItemId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hv.prototype.updateConnectivityNeeded_2gd3um$=function(t,e,n,i){var o=new uC(this,t,e,n);return i?o:o.doResume(null)},hC.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},hC.prototype=Object.create(N.prototype),hC.prototype.constructor=hC,hC.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setBoolean_fzusl$(1,this.local$closure$cjiContainerProcessed),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$contentJobItemId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},pC.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},pC.prototype=Object.create(N.prototype),pC.prototype.constructor=pC,pC.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | UPDATE ContentJobItem\n | SET cjiContainerProcessed = ?\n | WHERE cjiUid = ? \n | \n ")),dC(this.local$cjiContainerProcessed,this.local$contentJobItemId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hv.prototype.updateContainerProcessed_2gd3um$=function(t,e,n,i){var o=new pC(this,t,e,n);return i?o:o.doResume(null)},_C.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_C.prototype=Object.create(N.prototype),_C.prototype.constructor=_C,_C.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setInt_vux9f0$(1,this.local$closure$status),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$attemptCount),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$cjiUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},fC.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fC.prototype=Object.create(N.prototype),fC.prototype.constructor=fC,fC.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | UPDATE ContentJobItem\n | SET cjiStatus = ?,\n | cjiAttemptCount = ?\n | WHERE cjiUid = ? \n | \n ")),mC(this.local$status,this.local$attemptCount,this.local$cjiUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hv.prototype.updateJobItemAttemptCountAndStatus_liip7b$=function(t,e,n,i,o){var r=new fC(this,t,e,n,i);return o?r:r.doResume(null)},gC.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},gC.prototype=Object.create(N.prototype),gC.prototype.constructor=gC,gC.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$startTime),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$cjiUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},EC.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},EC.prototype=Object.create(N.prototype),EC.prototype.constructor=EC,EC.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | UPDATE ContentJobItem\n | SET cjiStartTime = ?\n | WHERE cjiUid = ? \n | \n ")),$C(this.local$startTime,this.local$cjiUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hv.prototype.updateStartTimeForJob_3pjtqy$=function(t,e,n,i){var o=new EC(this,t,e,n);return i?o:o.doResume(null)},yC.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},yC.prototype=Object.create(N.prototype),yC.prototype.constructor=yC,yC.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$finishTime),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$cjiUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},SC.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},SC.prototype=Object.create(N.prototype),SC.prototype.constructor=SC,SC.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | UPDATE ContentJobItem\n | SET cjiFinishTime = ?\n | WHERE cjiUid = ? \n | \n ")),bC(this.local$finishTime,this.local$cjiUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hv.prototype.updateFinishTimeForJob_3pjtqy$=function(t,e,n,i){var o=new SC(this,t,e,n);return i?o:o.doResume(null)},vC.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},vC.prototype=Object.create(N.prototype),vC.prototype.constructor=vC,vC.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$contentEntryUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$cjiUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},NC.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},NC.prototype=Object.create(N.prototype),NC.prototype.constructor=NC,NC.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | UPDATE ContentJobITem\n | SET cjiContentEntryUid = ?\n | WHERE cjiUid = ? \n | \n ")),CC(this.local$contentEntryUid,this.local$cjiUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hv.prototype.updateContentEntryUid_3pjtqy$=function(t,e,n,i){var o=new NC(this,t,e,n);return i?o:o.doResume(null)},TC.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},TC.prototype=Object.create(N.prototype),TC.prototype.constructor=TC,TC.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$containerUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$cjiUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zC.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},zC.prototype=Object.create(N.prototype),zC.prototype.constructor=zC,zC.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | UPDATE ContentJobItem\n | SET cjiContainerUid = ?\n | WHERE cjiUid = ? \n | \n ")),LC(this.local$containerUid,this.local$cjiUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hv.prototype.updateContentJobItemContainer_3pjtqy$=function(t,e,n,i){var o=new zC(this,t,e,n);return i?o:o.doResume(null)},OC.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},OC.prototype=Object.create(N.prototype),OC.prototype.constructor=OC,OC.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,wC);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hv.prototype.findAll=function(t){return ct(this._db,new st(S("\n |\n | SELECT * \n | FROM ContentJobItem\n | \n ")),RC,t)},xC.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},xC.prototype=Object.create(N.prototype),xC.prototype.constructor=xC,xC.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$cjiUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,AC);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hv.prototype.findByUidAsync_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT ContentJobItem.*\n | FROM ContentJobItem\n | WHERE cjiUid = ? \n | \n ")),(n=t,function(t,e,i){var o=new xC(n,t,e);return i?o:o.doResume(null)}),e);var n},UC.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},UC.prototype=Object.create(N.prototype),UC.prototype.constructor=UC,UC.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$contentEntryUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,IC);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hv.prototype.getActiveContentJobIdByContentEntryUid_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT COALESCE(\n | (SELECT ContentJobItem.cjiJobUid\n | FROM ContentJobItem\n | WHERE cjiContentEntryUid = ?\n | AND cjiStatus BETWEEN 4 AND 20\n | ORDER BY cjiFinishTime DESC), 0)\n | \n ")),(n=t,function(t,e,i){var o=new UC(n,t,e);return i?o:o.doResume(null)}),e);var n},DC.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},DC.prototype=Object.create(N.prototype),DC.prototype.constructor=DC,DC.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$uploadSessionUuid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$cjiUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},MC.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},MC.prototype=Object.create(N.prototype),MC.prototype.constructor=MC,MC.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | UPDATE ContentJobItem\n | SET cjiUploadSessionUid = ?\n | WHERE cjiUid = ? \n | \n ")),PC(this.local$uploadSessionUuid,this.local$cjiUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hv.prototype.updateUploadSessionUuid_a4hdmt$=function(t,e,n,i){var o=new MC(this,t,e,n);return i?o:o.doResume(null)},Hv.prototype.findAllByJobId_s8cxhz$=function(t){return ht(this._db,new st(S("\n |\n | SELECT * \n | FROM ContentJobItem\n | WHERE cjiJobUid = ? \n | \n ")),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),kC)}));var e},GC.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},GC.prototype=Object.create(N.prototype),GC.prototype.constructor=GC,GC.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,jC);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},FC.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},FC.prototype=Object.create(N.prototype),FC.prototype.constructor=FC,FC.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ContentJobItemDao_JdbcKt._db,new st(S("\n |\n | SELECT *\n | FROM ContentJobItem\n | WHERE cjiUid = ? \n | \n ")),qC(this.local$closure$uid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hv.prototype.getJobItemByUidLive_s8cxhz$=function(t){return new ft(this._db,Et("ContentJobItem"),(e=this,n=t,function(t,i){var o=new FC(e,n,t);return i?o:o.doResume(null)}));var e,n},WC.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},WC.prototype=Object.create(N.prototype),WC.prototype.constructor=WC,WC.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,BC);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hv.prototype.getContainerUidByJobItemUid_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT cjiContainerUid\n | FROM ContentJobItem\n | WHERE cjiUid = ? \n | \n ")),(n=t,function(t,e,i){var o=new WC(n,t,e);return i?o:o.doResume(null)}),e);var n},HC.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},HC.prototype=Object.create(N.prototype),HC.prototype.constructor=HC,HC.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setInt_vux9f0$(1,this.local$closure$newStatus),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$jobUid),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$newStatus),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},KC.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},KC.prototype=Object.create(N.prototype),KC.prototype.constructor=KC,KC.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | UPDATE ContentJobItem\n | SET cjiStatus = ?\n | WHERE cjiJobUid = ?\n | AND cjiStatus != ?\n | \n ")),VC(this.local$newStatus,this.local$jobUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hv.prototype.updateAllStatusesByJobUid_yhmem3$=function(t,e,n,i){var o=new KC(this,t,e,n);return i?o:o.doResume(null)},JC.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},JC.prototype=Object.create(N.prototype),JC.prototype.constructor=JC,JC.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$jobUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,XC);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hv.prototype.findAllContainersByJobUid_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT ContentJobItem.cjiContainerUid\n | FROM ContentJobItem\n | WHERE cjiJobUid = ? \n | \n ")),(n=t,function(t,e,i){var o=new JC(n,t,e);return i?o:o.doResume(null)}),e);var n},YC.prototype.makeSql_6taknv$=function(t){return"INSERT INTO ContentJobItem (cjiUid, cjiJobUid, sourceUri, cjiIsLeaf, cjiContentEntryUid, cjiParentContentEntryUid, cjiContainerUid, cjiItemProgress, cjiItemTotal, cjiRecursiveProgress, cjiRecursiveTotal, cjiStatus, cjiRecursiveStatus, cjiConnectivityNeeded, cjiPluginId, cjiAttemptCount, cjiParentCjiUid, cjiServerJobId, cjiStartTime, cjiFinishTime, cjiUploadSessionUid, cjiContentDeletedOnCancellation, cjiContainerProcessed) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},YC.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.cjiUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.cjiUid),t.setLong_6svq3l$(2,e.cjiJobUid),t.setString_vqvrqt$(3,e.sourceUri),t.setBoolean_fzusl$(4,e.cjiIsLeaf),t.setLong_6svq3l$(5,e.cjiContentEntryUid),t.setLong_6svq3l$(6,e.cjiParentContentEntryUid),t.setLong_6svq3l$(7,e.cjiContainerUid),t.setLong_6svq3l$(8,e.cjiItemProgress),t.setLong_6svq3l$(9,e.cjiItemTotal),t.setLong_6svq3l$(10,e.cjiRecursiveProgress),t.setLong_6svq3l$(11,e.cjiRecursiveTotal),t.setInt_vux9f0$(12,e.cjiStatus),t.setInt_vux9f0$(13,e.cjiRecursiveStatus),t.setBoolean_fzusl$(14,e.cjiConnectivityNeeded),t.setInt_vux9f0$(15,e.cjiPluginId),t.setInt_vux9f0$(16,e.cjiAttemptCount),t.setLong_6svq3l$(17,e.cjiParentCjiUid),t.setLong_6svq3l$(18,e.cjiServerJobId),t.setLong_6svq3l$(19,e.cjiStartTime),t.setLong_6svq3l$(20,e.cjiFinishTime),t.setString_vqvrqt$(21,e.cjiUploadSessionUid),t.setBoolean_fzusl$(22,e.cjiContentDeletedOnCancellation),t.setBoolean_fzusl$(23,e.cjiContainerProcessed)},YC.$metadata$={kind:c,interfaces:[pt]},Hv.$metadata$={kind:c,simpleName:"ContentJobItemDao_JdbcKt",interfaces:[Wv]},QC.$metadata$={kind:c,simpleName:"ContextXObjectStatementJoinDao",interfaces:[X6]},ZC.prototype.insert_11rb$=function(t){return this._insertAdapterContextXObjectStatementJoin_.insertAndReturnId_11rb$(t)},tN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},tN.prototype=Object.create(N.prototype),tN.prototype.constructor=tN,tN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterContextXObjectStatementJoin_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ZC.prototype.insertAsync=function(t,e,n){var i=new tN(this,t,e);return n?i:i.doResume(null)},ZC.prototype.insertList_4ezy5m$=function(t){this._insertAdapterContextXObjectStatementJoin_.insertList_4ezy5m$(t)},ZC.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE ContextXObjectStatementJoin SET contextActivityFlag = ?, contextStatementUid = ?, contextXObjectUid = ?, verbMasterChangeSeqNum = ?, verbLocalChangeSeqNum = ?, verbLastChangedBy = ?, contextXObjectLct = ? WHERE contextXObjectStatementJoinUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setInt_vux9f0$(1,i.contextActivityFlag),t.setLong_6svq3l$(2,i.contextStatementUid),t.setLong_6svq3l$(3,i.contextXObjectUid),t.setLong_6svq3l$(4,i.verbMasterChangeSeqNum),t.setLong_6svq3l$(5,i.verbLocalChangeSeqNum),t.setInt_vux9f0$(6,i.verbLastChangedBy),t.setLong_6svq3l$(7,i.contextXObjectLct),t.setLong_6svq3l$(8,i.contextXObjectStatementJoinUid),t.executeUpdate()}return t.getConnection().commit(),V}))},ZC.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE ContextXObjectStatementJoin SET contextActivityFlag = ?, contextStatementUid = ?, contextXObjectUid = ?, verbMasterChangeSeqNum = ?, verbLocalChangeSeqNum = ?, verbLastChangedBy = ?, contextXObjectLct = ? WHERE contextXObjectStatementJoinUid = ?",(e=t,function(t){return t.setInt_vux9f0$(1,e.contextActivityFlag),t.setLong_6svq3l$(2,e.contextStatementUid),t.setLong_6svq3l$(3,e.contextXObjectUid),t.setLong_6svq3l$(4,e.verbMasterChangeSeqNum),t.setLong_6svq3l$(5,e.verbLocalChangeSeqNum),t.setInt_vux9f0$(6,e.verbLastChangedBy),t.setLong_6svq3l$(7,e.contextXObjectLct),t.setLong_6svq3l$(8,e.contextXObjectStatementJoinUid),t.executeUpdate()}))},eN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},eN.prototype=Object.create(N.prototype),eN.prototype.constructor=eN,eN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},iN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},iN.prototype=Object.create(N.prototype),iN.prototype.constructor=iN,iN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ContextXObjectStatementJoinReplicate(cxosjPk, cxosjDestination)\n | SELECT DISTINCT ContextXObjectStatementJoin.contextXObjectStatementJoinUid AS cxosjPk,\n | UserSession.usClientNodeId AS cxosjDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & 549755813888) > 0\n | JOIN StatementEntity\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = StatementEntity.statementPersonUid)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = StatementEntity.statementClazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = (\n | SELECT clazzSchoolUid\n | FROM Clazz \n | WHERE clazzUid = StatementEntity.statementClazzUid))\n | ) \n | \n | JOIN ContextXObjectStatementJoin\n | ON ContextXObjectStatementJoin.contextStatementUid = StatementEntity.statementUid\n | WHERE UserSession.usClientNodeId = ?\n | -- Temporary measure to prevent admin user getting clogged up\n | -- Restrict to the last 30 days of data\n | AND StatementEntity.timestamp > ( \n | --notpsql\n | strftime('%s', 'now') * 1000\n | --endnotpsql\n | /*psql\n | ROUND(EXTRACT(epoch from NOW())*1000)\n | */\n | - (30 * CAST(86400000 AS BIGINT))) \n | --notpsql \n | AND ContextXObjectStatementJoin.contextXObjectLct != COALESCE(\n | (SELECT cxosjVersionId\n | FROM ContextXObjectStatementJoinReplicate\n | WHERE cxosjPk = ContextXObjectStatementJoin.contextXObjectStatementJoinUid\n | AND cxosjDestination = UserSession.usClientNodeId), 0) \n | --endnotpsql \n | /*psql ON CONFLICT(cxosjPk, cxosjDestination) DO UPDATE\n | SET cxosjPending = (SELECT ContextXObjectStatementJoin.contextXObjectLct\n | FROM ContextXObjectStatementJoin\n | WHERE ContextXObjectStatementJoin.contextXObjectStatementJoinUid = EXCLUDED.cxosjPk ) \n | != ContextXObjectStatementJoinReplicate.cxosjVersionId \n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ContextXObjectStatementJoinReplicate(cxosjPk, cxosjDestination)\n | SELECT DISTINCT ContextXObjectStatementJoin.contextXObjectStatementJoinUid AS cxosjPk,\n | UserSession.usClientNodeId AS cxosjDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & 549755813888) > 0\n | JOIN StatementEntity\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = StatementEntity.statementPersonUid)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = StatementEntity.statementClazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = (\n | SELECT clazzSchoolUid\n | FROM Clazz \n | WHERE clazzUid = StatementEntity.statementClazzUid))\n | ) \n | \n | JOIN ContextXObjectStatementJoin\n | ON ContextXObjectStatementJoin.contextStatementUid = StatementEntity.statementUid\n | WHERE UserSession.usClientNodeId = ?\n | -- Temporary measure to prevent admin user getting clogged up\n | -- Restrict to the last 30 days of data\n | AND StatementEntity.timestamp > ( \n | \n | ROUND(EXTRACT(epoch from NOW())*1000)\n | \n | - (30 * CAST(86400000 AS BIGINT))) \n | ON CONFLICT(cxosjPk, cxosjDestination) DO UPDATE\n | SET cxosjPending = (SELECT ContextXObjectStatementJoin.contextXObjectLct\n | FROM ContextXObjectStatementJoin\n | WHERE ContextXObjectStatementJoin.contextXObjectStatementJoinUid = EXCLUDED.cxosjPk ) \n | != ContextXObjectStatementJoinReplicate.cxosjVersionId \n | \n | \n |")),nN(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ZC.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new iN(this,t,e);return n?i:i.doResume(null)},oN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},oN.prototype=Object.create(N.prototype),oN.prototype.constructor=oN,oN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},sN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},sN.prototype=Object.create(N.prototype),sN.prototype.constructor=sN,sN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ContextXObjectStatementJoinReplicate(cxosjPk, cxosjDestination)\n | SELECT DISTINCT ContextXObjectStatementJoin.contextXObjectStatementJoinUid AS cxosjUid,\n | UserSession.usClientNodeId AS cxosjDestination\n | FROM ChangeLog\n | JOIN ContextXObjectStatementJoin\n | ON ChangeLog.chTableId = 66\n | AND ChangeLog.chEntityPk = ContextXObjectStatementJoin.contextXObjectStatementJoinUid\n | JOIN StatementEntity\n | ON ContextXObjectStatementJoin.contextStatementUid = StatementEntity.statementUid\n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = StatementEntity.statementPersonUid)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = StatementEntity.statementClazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = (\n | SELECT clazzSchoolUid\n | FROM Clazz\n | WHERE clazzUid = StatementEntity.statementClazzUid))\n | )\n | \n | AND (ScopedGrant.sgPermissions & 549755813888) > 0\n | JOIN PersonGroupMember\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | --notpsql \n | AND ContextXObjectStatementJoin.contextXObjectLct != COALESCE(\n | (SELECT cxosjVersionId\n | FROM ContextXObjectStatementJoinReplicate\n | WHERE cxosjPk = ContextXObjectStatementJoin.contextXObjectStatementJoinUid\n | AND cxosjDestination = UserSession.usClientNodeId), 0)\n | --endnotpsql\n | /*psql ON CONFLICT(cxosjPk, cxosjDestination) DO UPDATE\n | SET cxosjPending = (SELECT ContextXObjectStatementJoin.contextXObjectLct\n | FROM ContextXObjectStatementJoin\n | WHERE ContextXObjectStatementJoin.contextXObjectStatementJoinUid = EXCLUDED.cxosjPk ) \n | != ContextXObjectStatementJoinReplicate.cxosjVersionId \n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ContextXObjectStatementJoinReplicate(cxosjPk, cxosjDestination)\n | SELECT DISTINCT ContextXObjectStatementJoin.contextXObjectStatementJoinUid AS cxosjUid,\n | UserSession.usClientNodeId AS cxosjDestination\n | FROM ChangeLog\n | JOIN ContextXObjectStatementJoin\n | ON ChangeLog.chTableId = 66\n | AND ChangeLog.chEntityPk = ContextXObjectStatementJoin.contextXObjectStatementJoinUid\n | JOIN StatementEntity\n | ON ContextXObjectStatementJoin.contextStatementUid = StatementEntity.statementUid\n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = StatementEntity.statementPersonUid)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = StatementEntity.statementClazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = (\n | SELECT clazzSchoolUid\n | FROM Clazz\n | WHERE clazzUid = StatementEntity.statementClazzUid))\n | )\n | \n | AND (ScopedGrant.sgPermissions & 549755813888) > 0\n | JOIN PersonGroupMember\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | ON CONFLICT(cxosjPk, cxosjDestination) DO UPDATE\n | SET cxosjPending = (SELECT ContextXObjectStatementJoin.contextXObjectLct\n | FROM ContextXObjectStatementJoin\n | WHERE ContextXObjectStatementJoin.contextXObjectStatementJoinUid = EXCLUDED.cxosjPk ) \n | != ContextXObjectStatementJoinReplicate.cxosjVersionId \n | \n | \n |")),rN,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ZC.prototype.replicateOnChange=function(t,e){var n=new sN(this,t);return e?n:n.doResume(null)},ZC.prototype.findByStatementAndObjectUid_3pjtqy$=function(t,e){return ht(this._db,new st("SELECT * FROM ContextXObjectStatementJoin where contextStatementUid = ? and contextXObjectUid = ?"),(n=t,i=e,function(t){return t.setLong_6svq3l$(1,n),t.setLong_6svq3l$(2,i),ut(t.executeQuery(),aN)}));var n,i},cN.prototype.makeSql_6taknv$=function(t){return"INSERT INTO ContextXObjectStatementJoin (contextXObjectStatementJoinUid, contextActivityFlag, contextStatementUid, contextXObjectUid, verbMasterChangeSeqNum, verbLocalChangeSeqNum, verbLastChangedBy, contextXObjectLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?)"},cN.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.contextXObjectStatementJoinUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.contextXObjectStatementJoinUid),t.setInt_vux9f0$(2,e.contextActivityFlag),t.setLong_6svq3l$(3,e.contextStatementUid),t.setLong_6svq3l$(4,e.contextXObjectUid),t.setLong_6svq3l$(5,e.verbMasterChangeSeqNum),t.setLong_6svq3l$(6,e.verbLocalChangeSeqNum),t.setInt_vux9f0$(7,e.verbLastChangedBy),t.setLong_6svq3l$(8,e.contextXObjectLct)},cN.$metadata$={kind:c,interfaces:[pt]},ZC.$metadata$={kind:c,simpleName:"ContextXObjectStatementJoinDao_JdbcKt",interfaces:[QC]},uN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},uN.prototype=Object.create(N.prototype),uN.prototype.constructor=uN,uN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lN.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new uN(this,t,e);return n?i:i.doResume(null)},hN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},hN.prototype=Object.create(N.prototype),hN.prototype.constructor=hN,hN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lN.prototype.replicateOnChange=function(t,e){var n=new hN(this,t);return e?n:n.doResume(null)},lN.prototype.findByStatementAndObjectUid_3pjtqy$=function(t,e){throw v("Synchronous db access is NOT possible on Javascript!")},lN.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},dN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},dN.prototype=Object.create(N.prototype),dN.prototype.constructor=dN,dN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.contextXObjectStatementJoinUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(66,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.contextXObjectStatementJoinUid=e,this.state_0=3;continue;case 3:if(this.local$entity.contextXObjectLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.contextXObjectStatementJoinUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lN.prototype.insertAsync=function(t,e,n){var i=new dN(this,t,e);return n?i:i.doResume(null)},lN.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},lN.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},lN.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},lN.$metadata$={kind:c,simpleName:"ContextXObjectStatementJoinDao_ReplicateWrapper",interfaces:[QC]},_N.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_N.prototype=Object.create(N.prototype),_N.prototype.constructor=_N,_N.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},pN.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new _N(this,t,e);return n?i:i.doResume(null)},mN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},mN.prototype=Object.create(N.prototype),mN.prototype.constructor=mN,mN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},pN.prototype.replicateOnChange=function(t,e){var n=new mN(this,t);return e?n:n.doResume(null)},pN.prototype.findByStatementAndObjectUid_3pjtqy$=function(t,e){return this._dao.findByStatementAndObjectUid_3pjtqy$(t,e)},pN.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},fN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fN.prototype=Object.create(N.prototype),fN.prototype.constructor=fN,fN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},pN.prototype.insertAsync=function(t,e,n){var i=new fN(this,t,e);return n?i:i.doResume(null)},pN.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},pN.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},pN.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},pN.$metadata$={kind:c,simpleName:"ContextXObjectStatementJoinDao_Repo",interfaces:[QC]},gN.$metadata$={kind:c,simpleName:"CourseAssignmentMarkDao",interfaces:[X6]},$N.prototype.insert_11rb$=function(t){return this._insertAdapterCourseAssignmentMark_.insertAndReturnId_11rb$(t)},EN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},EN.prototype=Object.create(N.prototype),EN.prototype.constructor=EN,EN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterCourseAssignmentMark_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},$N.prototype.insertAsync=function(t,e,n){var i=new EN(this,t,e);return n?i:i.doResume(null)},$N.prototype.insertList_4ezy5m$=function(t){this._insertAdapterCourseAssignmentMark_.insertList_4ezy5m$(t)},$N.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE CourseAssignmentMark SET camAssignmentUid = ?, camSubmitterUid = ?, camMark = ?, camPenalty = ?, camLct = ? WHERE camUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.camAssignmentUid),t.setLong_6svq3l$(2,i.camSubmitterUid),t.setFloat_24o109$(3,i.camMark),t.setInt_vux9f0$(4,i.camPenalty),t.setLong_6svq3l$(5,i.camLct),t.setLong_6svq3l$(6,i.camUid),t.executeUpdate()}return t.getConnection().commit(),V}))},$N.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE CourseAssignmentMark SET camAssignmentUid = ?, camSubmitterUid = ?, camMark = ?, camPenalty = ?, camLct = ? WHERE camUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.camAssignmentUid),t.setLong_6svq3l$(2,e.camSubmitterUid),t.setFloat_24o109$(3,e.camMark),t.setInt_vux9f0$(4,e.camPenalty),t.setLong_6svq3l$(5,e.camLct),t.setLong_6svq3l$(6,e.camUid),t.executeUpdate()}))},yN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},yN.prototype=Object.create(N.prototype),yN.prototype.constructor=yN,yN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},SN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},SN.prototype=Object.create(N.prototype),SN.prototype.constructor=SN,SN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO CourseAssignmentMarkReplicate(camPk, camDestination)\n | SELECT DISTINCT CourseAssignmentMark.camUid AS camPk,\n | ? AS camDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 8388608 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | JOIN ClazzAssignment\n | ON ClazzAssignment.caClazzUid = Clazz.clazzUid \n | JOIN CourseAssignmentMark\n | ON CourseAssignmentMark.camAssignmentUid = ClazzAssignment.caUid\n | \n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND CourseAssignmentMark.camLct != COALESCE(\n | (SELECT camVersionId\n | FROM CourseAssignmentMarkReplicate\n | WHERE camPk = CourseAssignmentMark.camUid\n | AND camDestination = ?), 0) \n | /*psql ON CONFLICT(camPk, camDestination) DO UPDATE\n | SET camPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO CourseAssignmentMarkReplicate(camPk, camDestination)\n | SELECT DISTINCT CourseAssignmentMark.camUid AS camPk,\n | ? AS camDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 8388608 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | JOIN ClazzAssignment\n | ON ClazzAssignment.caClazzUid = Clazz.clazzUid \n | JOIN CourseAssignmentMark\n | ON CourseAssignmentMark.camAssignmentUid = ClazzAssignment.caUid\n | \n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND CourseAssignmentMark.camLct != COALESCE(\n | (SELECT camVersionId\n | FROM CourseAssignmentMarkReplicate\n | WHERE camPk = CourseAssignmentMark.camUid\n | AND camDestination = ?), 0) \n | ON CONFLICT(camPk, camDestination) DO UPDATE\n | SET camPending = true\n | \n | \n |")),bN(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},$N.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new SN(this,t,e);return n?i:i.doResume(null)},vN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},vN.prototype=Object.create(N.prototype),vN.prototype.constructor=vN,vN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},NN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},NN.prototype=Object.create(N.prototype),NN.prototype.constructor=NN,NN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO CourseAssignmentMarkReplicate(camPk, camDestination)\n | SELECT DISTINCT CourseAssignmentMark.camUid AS camPk,\n | UserSession.usClientNodeId AS camDestination\n | FROM ChangeLog\n | JOIN CourseAssignmentMark\n | ON ChangeLog.chTableId = 523\n | AND ChangeLog.chEntityPk = CourseAssignmentMark.camUid\n | JOIN ClazzAssignment\n | ON CourseAssignmentMark.camAssignmentUid = ClazzAssignment.caUid\n | JOIN Clazz\n | ON Clazz.clazzUid = ClazzAssignment.caClazzUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 8388608\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND CourseAssignmentMark.camLct != COALESCE(\n | (SELECT camVersionId\n | FROM CourseAssignmentMarkReplicate\n | WHERE camPk = CourseAssignmentMark.camUid\n | AND camDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(camPk, camDestination) DO UPDATE\n | SET camPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO CourseAssignmentMarkReplicate(camPk, camDestination)\n | SELECT DISTINCT CourseAssignmentMark.camUid AS camPk,\n | UserSession.usClientNodeId AS camDestination\n | FROM ChangeLog\n | JOIN CourseAssignmentMark\n | ON ChangeLog.chTableId = 523\n | AND ChangeLog.chEntityPk = CourseAssignmentMark.camUid\n | JOIN ClazzAssignment\n | ON CourseAssignmentMark.camAssignmentUid = ClazzAssignment.caUid\n | JOIN Clazz\n | ON Clazz.clazzUid = ClazzAssignment.caClazzUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 8388608\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND CourseAssignmentMark.camLct != COALESCE(\n | (SELECT camVersionId\n | FROM CourseAssignmentMarkReplicate\n | WHERE camPk = CourseAssignmentMark.camUid\n | AND camDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(camPk, camDestination) DO UPDATE\n | SET camPending = true\n | \n | \n |")),CN,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},$N.prototype.replicateOnChange=function(t,e){var n=new NN(this,t);return e?n:n.doResume(null)},LN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},LN.prototype=Object.create(N.prototype),LN.prototype.constructor=LN,LN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$assignmentUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$submitterUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,TN);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},wN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},wN.prototype=Object.create(N.prototype),wN.prototype.constructor=wN,wN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$CourseAssignmentMarkDao_JdbcKt._db,new st(S("\n |\n | SELECT * \n | FROM CourseAssignmentMark \n | WHERE camAssignmentUid = ?\n | AND camSubmitterUid = ?\n | ORDER BY camLct DESC\n | LIMIT 1\n | \n ")),zN(this.local$closure$assignmentUid,this.local$closure$submitterUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},$N.prototype.getMarkOfAssignmentForSubmitterLiveData_3pjtqy$=function(t,e){return new ft(this._db,Et("CourseAssignmentMark"),(n=this,i=t,o=e,function(t,e){var r=new wN(n,i,o,t);return e?r:r.doResume(null)}));var n,i,o},$N.prototype.getMarkOfAssignmentForStudent_3pjtqy$=function(t,e){return ht(this._db,new st(S("\n |\n | SELECT * \n | FROM CourseAssignmentMark\n | WHERE camAssignmentUid = ?\n | AND camSubmitterUid = ?\n | ORDER BY camLct DESC\n | LIMIT 1\n | \n ")),(n=t,i=e,function(t){return t.setLong_6svq3l$(1,n),t.setLong_6svq3l$(2,i),ut(t.executeQuery(),ON)}));var n,i},AN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},AN.prototype=Object.create(N.prototype),AN.prototype.constructor=AN,AN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$assignmentUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$submitterUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,RN);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},$N.prototype.findNextSubmitterToMarkForAssignment_3pjtqy$=function(t,e,n){return ct(this._db,new st(S("\n |\n | SELECT COALESCE((\n | SELECT casSubmitterUid\n | FROM CourseAssignmentSubmission\n | \n | LEFT JOIN CourseAssignmentMark\n | ON CourseAssignmentMark.camSubmitterUid = CourseAssignmentSubmission.casSubmitterUid\n | AND CourseAssignmentMark.camAssignmentUid = ?\n | \n | WHERE CourseAssignmentSubmission.casSubmitterUid != ?\n | AND CourseAssignmentMark.camUid IS NULL\n | GROUP BY casSubmitterUid\n | LIMIT 1),0)\n | \n ")),(i=t,o=e,function(t,e,n){var r=new AN(i,o,t,e);return n?r:r.doResume(null)}),n);var i,o},xN.prototype.makeSql_6taknv$=function(t){return"INSERT INTO CourseAssignmentMark (camUid, camAssignmentUid, camSubmitterUid, camMark, camPenalty, camLct) VALUES(?, ?, ?, ?, ?, ?)"},xN.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.camUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.camUid),t.setLong_6svq3l$(2,e.camAssignmentUid),t.setLong_6svq3l$(3,e.camSubmitterUid),t.setFloat_24o109$(4,e.camMark),t.setInt_vux9f0$(5,e.camPenalty),t.setLong_6svq3l$(6,e.camLct)},xN.$metadata$={kind:c,interfaces:[pt]},$N.$metadata$={kind:c,simpleName:"CourseAssignmentMarkDao_JdbcKt",interfaces:[gN]},UN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},UN.prototype=Object.create(N.prototype),UN.prototype.constructor=UN,UN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},IN.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new UN(this,t,e);return n?i:i.doResume(null)},DN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},DN.prototype=Object.create(N.prototype),DN.prototype.constructor=DN,DN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},IN.prototype.replicateOnChange=function(t,e){var n=new DN(this,t);return e?n:n.doResume(null)},IN.prototype.getMarkOfAssignmentForSubmitterLiveData_3pjtqy$=function(t,e){return this._dao_0.getMarkOfAssignmentForSubmitterLiveData_3pjtqy$(t,e)},IN.prototype.getMarkOfAssignmentForStudent_3pjtqy$=function(t,e){throw v("Synchronous db access is NOT possible on Javascript!")},IN.prototype.findNextSubmitterToMarkForAssignment_3pjtqy$=function(t,e,n){return this._dao_0.findNextSubmitterToMarkForAssignment_3pjtqy$(t,e,n)},IN.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},PN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},PN.prototype=Object.create(N.prototype),PN.prototype.constructor=PN,PN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.camUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(523,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.camUid=e,this.state_0=3;continue;case 3:if(this.local$entity.camLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.camUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},IN.prototype.insertAsync=function(t,e,n){var i=new PN(this,t,e);return n?i:i.doResume(null)},IN.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},IN.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},IN.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},IN.$metadata$={kind:c,simpleName:"CourseAssignmentMarkDao_ReplicateWrapper",interfaces:[gN]},kN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},kN.prototype=Object.create(N.prototype),kN.prototype.constructor=kN,kN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},MN.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new kN(this,t,e);return n?i:i.doResume(null)},jN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},jN.prototype=Object.create(N.prototype),jN.prototype.constructor=jN,jN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},MN.prototype.replicateOnChange=function(t,e){var n=new jN(this,t);return e?n:n.doResume(null)},MN.prototype.getMarkOfAssignmentForSubmitterLiveData_3pjtqy$=function(t,e){return this._dao.getMarkOfAssignmentForSubmitterLiveData_3pjtqy$(t,e)},MN.prototype.getMarkOfAssignmentForStudent_3pjtqy$=function(t,e){return this._dao.getMarkOfAssignmentForStudent_3pjtqy$(t,e)},GN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},GN.prototype=Object.create(N.prototype),GN.prototype.constructor=GN,GN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findNextSubmitterToMarkForAssignment_3pjtqy$(this.local$assignmentUid,this.local$submitterUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},MN.prototype.findNextSubmitterToMarkForAssignment_3pjtqy$=function(t,e,n,i){var o=new GN(this,t,e,n);return i?o:o.doResume(null)},MN.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},qN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},qN.prototype=Object.create(N.prototype),qN.prototype.constructor=qN,qN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},MN.prototype.insertAsync=function(t,e,n){var i=new qN(this,t,e);return n?i:i.doResume(null)},MN.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},MN.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},MN.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},MN.$metadata$={kind:c,simpleName:"CourseAssignmentMarkDao_Repo",interfaces:[gN]},FN.$metadata$={kind:c,simpleName:"CourseAssignmentSubmissionAttachmentDao",interfaces:[X6]},WN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},WN.prototype=Object.create(N.prototype),WN.prototype.constructor=WN,WN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterCourseAssignmentSubmissionAttachment_.insertListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},BN.prototype.insertListAsync_cyz50y$=function(t,e,n){var i=new WN(this,t,e);return n?i:i.doResume(null)},BN.prototype.insert_11rb$=function(t){return this._insertAdapterCourseAssignmentSubmissionAttachment_.insertAndReturnId_11rb$(t)},HN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},HN.prototype=Object.create(N.prototype),HN.prototype.constructor=HN,HN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterCourseAssignmentSubmissionAttachment_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},BN.prototype.insertAsync=function(t,e,n){var i=new HN(this,t,e);return n?i:i.doResume(null)},BN.prototype.insertList_4ezy5m$=function(t){this._insertAdapterCourseAssignmentSubmissionAttachment_.insertList_4ezy5m$(t)},BN.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE CourseAssignmentSubmissionAttachment SET casaSubmissionUid = ?, casaMimeType = ?, casaFileName = ?, casaUri = ?, casaMd5 = ?, casaSize = ?, casaTimestamp = ? WHERE casaUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.casaSubmissionUid),t.setString_vqvrqt$(2,i.casaMimeType),t.setString_vqvrqt$(3,i.casaFileName),t.setString_vqvrqt$(4,i.casaUri),t.setString_vqvrqt$(5,i.casaMd5),t.setInt_vux9f0$(6,i.casaSize),t.setLong_6svq3l$(7,i.casaTimestamp),t.setLong_6svq3l$(8,i.casaUid),t.executeUpdate()}return t.getConnection().commit(),V}))},BN.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE CourseAssignmentSubmissionAttachment SET casaSubmissionUid = ?, casaMimeType = ?, casaFileName = ?, casaUri = ?, casaMd5 = ?, casaSize = ?, casaTimestamp = ? WHERE casaUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.casaSubmissionUid),t.setString_vqvrqt$(2,e.casaMimeType),t.setString_vqvrqt$(3,e.casaFileName),t.setString_vqvrqt$(4,e.casaUri),t.setString_vqvrqt$(5,e.casaMd5),t.setInt_vux9f0$(6,e.casaSize),t.setLong_6svq3l$(7,e.casaTimestamp),t.setLong_6svq3l$(8,e.casaUid),t.executeUpdate()}))};function pM(t){pt.call(this,t)}function _M(t,e){VP.call(this),this._db_0=t,this._dao_0=e}function mM(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function fM(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function gM(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function $M(t,e,n,i,o,r){VP.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function EM(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function yM(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function bM(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$learnerGroupUid=e,this.local$contentEntryUid=n}function SM(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function vM(){}function CM(t){vM.call(this),this._db=t,this._insertAdapterLeavingReason_upsert=new ik(this._db),this._insertAdapterLeavingReason_=new ok(this._db)}function NM(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function TM(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function LM(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$entity=t,this.local$closure$_result=e,this.local$tmp$=void 0,this.local$_stmt=n}function zM(t,e){return function(n,i,o){var r=new LM(t,e,n,i);return o?r:r.doResume(null)}}function wM(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_result=void 0,this.local$entity=e}function OM(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function RM(t){return function(e,n,i){var o=new OM(t,e,n);return i?o:o.doResume(null)}}function AM(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function xM(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function IM(t,e,n){var i=new xM(t,e);return n?i:i.doResume(null)}function UM(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function DM(t){this.this$LeavingReasonDao_JdbcKt=t,gt.call(this)}function PM(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("leavingReasonUid"),i=e.getString_61zpoe$("leavingReasonTitle"),o=e.getLong_61zpoe$("leavingReasonMCSN"),r=e.getLong_61zpoe$("leavingReasonCSN"),s=e.getInt_61zpoe$("leavingReasonLCB"),a=e.getLong_61zpoe$("leavingReasonLct"),c=new Nat;return c.leavingReasonUid=n,c.leavingReasonTitle=i,c.leavingReasonMCSN=o,c.leavingReasonCSN=r,c.leavingReasonLCB=s,c.leavingReasonLct=a,c}));var e}function MM(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$_limit=t,this.local$closure$_offset=e,this.local$_stmt=n}function kM(t,e){return function(n,i,o){var r=new MM(t,e,n,i);return o?r:r.doResume(null)}}function jM(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$this$LeavingReasonDao_JdbcKt=t,this.local$closure$_limit=e,this.local$closure$_offset=n}function GM(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function qM(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function FM(t,e,n){var i=new qM(t,e);return n?i:i.doResume(null)}function BM(t,e){N.call(this,e),this.exceptionState_0=1,this.local$this$LeavingReasonDao_JdbcKt=t}function WM(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("leavingReasonUid"),i=e.getString_61zpoe$("leavingReasonTitle"),o=e.getLong_61zpoe$("leavingReasonMCSN"),r=e.getLong_61zpoe$("leavingReasonCSN"),s=e.getInt_61zpoe$("leavingReasonLCB"),a=e.getLong_61zpoe$("leavingReasonLct"),c=new Nat;return c.leavingReasonUid=n,c.leavingReasonTitle=i,c.leavingReasonMCSN=o,c.leavingReasonCSN=r,c.leavingReasonLCB=s,c.leavingReasonLct=a,c}));var e}function HM(t){return ut(t.executeQuery(),WM)}function VM(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("leavingReasonUid"),i=e.getString_61zpoe$("leavingReasonTitle"),o=e.getLong_61zpoe$("leavingReasonMCSN"),r=e.getLong_61zpoe$("leavingReasonCSN"),s=e.getInt_61zpoe$("leavingReasonLCB"),a=e.getLong_61zpoe$("leavingReasonLct"),c=new Nat;return c.leavingReasonUid=n,c.leavingReasonTitle=i,c.leavingReasonMCSN=o,c.leavingReasonCSN=r,c.leavingReasonLCB=s,c.leavingReasonLct=a,c}));var e}function KM(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function XM(t){return mt(t,(e=t,function(t){return e.getLong_za3lpa$(1)}));var e}function JM(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uidList=t,this.local$_stmt=e}function YM(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("leavingReasonUid"),i=e.getString_61zpoe$("leavingReasonTitle"),o=e.getLong_61zpoe$("leavingReasonMCSN"),r=e.getLong_61zpoe$("leavingReasonCSN"),s=e.getInt_61zpoe$("leavingReasonLCB"),a=e.getLong_61zpoe$("leavingReasonLct"),c=new Nat;return c.leavingReasonUid=n,c.leavingReasonTitle=i,c.leavingReasonMCSN=o,c.leavingReasonCSN=r,c.leavingReasonLCB=s,c.leavingReasonLct=a,c}));var e}function QM(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function ZM(t){return function(e,n,i){var o=new QM(t,e,n);return i?o:o.doResume(null)}}function tk(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$LeavingReasonDao_JdbcKt=t,this.local$closure$uid=e}function ek(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("uid"),i=e.getString_61zpoe$("labelName"),o=new A_t;return o.uid=n,o.labelName=i,o}));var e}function nk(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uidList=t,this.local$_stmt=e}function ik(t){pt.call(this,t)}function ok(t){pt.call(this,t)}function rk(t,e){vM.call(this),this._db_0=t,this._dao_0=e}function sk(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function ak(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function ck(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_pkManager=void 0,this.local$_generatedPks=void 0,this.local$$receiver=void 0,this.local$element=void 0,this.local$entityList=e}function lk(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function uk(t,e,n,i,o,r){vM.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function hk(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function dk(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function pk(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$uid=e}function _k(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$uidList=e}function mk(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$uidList=e}function fk(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function gk(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function $k(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Ek(){}function yk(t){Ek.call(this),this._db=t,this._insertAdapterLocallyAvailableContainer_upsert=new Tk(this._db)}function bk(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$locallyAvailableContainers=e}function Sk(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$locallyAvailableContainers=t,this.local$closure$_numChanges=e,this.local$tmp$=void 0,this.local$tmp$_0=void 0,this.local$_stmt=n}function vk(t,e){return function(n,i,o){var r=new Sk(t,e,n,i);return o?r:r.doResume(null)}}function Ck(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$locallyAvailableContainers=e}function Nk(t){return t.executeUpdate()}function Tk(t){pt.call(this,t)}function Lk(){}function zk(t){Lk.call(this),this._db=t,this._insertAdapterMessage_=new Yk(this._db)}function wk(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Ok(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function Rk(t){return function(e,n,i){var o=new Ok(t,e,n);return i?o:o.doResume(null)}}function Ak(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function xk(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function Ik(t){return function(e,n,i){var o=new xk(t,e,n);return i?o:o.doResume(null)}}function Uk(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function Dk(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function Pk(t,e,n){var i=new Dk(t,e);return n?i:i.doResume(null)}function Mk(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function kk(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function jk(t,e,n){var i=new kk(t,e);return n?i:i.doResume(null)}function Gk(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function qk(t,e,n,i){this.this$MessageDao_JdbcKt=t,this.closure$loggedInPersonUid=e,this.closure$tableId=n,this.closure$entityUid=i,gt.call(this)}function Fk(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("messageUid"),i=e.getLong_61zpoe$("messageSenderPersonUid"),o=e.getInt_61zpoe$("messageTableId"),r=e.getLong_61zpoe$("messageEntityUid"),s=e.getString_61zpoe$("messageText"),a=e.getLong_61zpoe$("messageTimestamp"),c=e.getLong_61zpoe$("messageClazzUid"),l=e.getLong_61zpoe$("messageLct"),u=0,h=e.getLong_61zpoe$("personUid");e.wasNull()&&(u=u+1|0);var d=e.getString_61zpoe$("username");e.wasNull()&&(u=u+1|0);var p=e.getString_61zpoe$("firstNames");e.wasNull()&&(u=u+1|0);var _=e.getString_61zpoe$("lastName");e.wasNull()&&(u=u+1|0);var m=e.getString_61zpoe$("emailAddr");e.wasNull()&&(u=u+1|0);var f=e.getString_61zpoe$("phoneNum");e.wasNull()&&(u=u+1|0);var g=e.getInt_61zpoe$("gender");e.wasNull()&&(u=u+1|0);var $=e.getBoolean_61zpoe$("active");e.wasNull()&&(u=u+1|0);var E=e.getBoolean_61zpoe$("admin");e.wasNull()&&(u=u+1|0);var y=e.getString_61zpoe$("personNotes");e.wasNull()&&(u=u+1|0);var b=e.getString_61zpoe$("fatherName");e.wasNull()&&(u=u+1|0);var S=e.getString_61zpoe$("fatherNumber");e.wasNull()&&(u=u+1|0);var v=e.getString_61zpoe$("motherName");e.wasNull()&&(u=u+1|0);var C=e.getString_61zpoe$("motherNum");e.wasNull()&&(u=u+1|0);var N=e.getLong_61zpoe$("dateOfBirth");e.wasNull()&&(u=u+1|0);var T=e.getString_61zpoe$("personAddress");e.wasNull()&&(u=u+1|0);var L=e.getString_61zpoe$("personOrgId");e.wasNull()&&(u=u+1|0);var z=e.getLong_61zpoe$("personGroupUid");e.wasNull()&&(u=u+1|0);var w=e.getLong_61zpoe$("personMasterChangeSeqNum");e.wasNull()&&(u=u+1|0);var O=e.getLong_61zpoe$("personLocalChangeSeqNum");e.wasNull()&&(u=u+1|0);var R=e.getInt_61zpoe$("personLastChangedBy");e.wasNull()&&(u=u+1|0);var A=e.getLong_61zpoe$("personLct");e.wasNull()&&(u=u+1|0);var x=e.getString_61zpoe$("personCountry");e.wasNull()&&(u=u+1|0);var I=e.getInt_61zpoe$("personType");e.wasNull()&&(u=u+1|0);var U=24===u,D=0,P=e.getLong_61zpoe$("messageReadUid");e.wasNull()&&(D=D+1|0);var M=e.getLong_61zpoe$("messageReadPersonUid");e.wasNull()&&(D=D+1|0);var k=e.getLong_61zpoe$("messageReadMessageUid");e.wasNull()&&(D=D+1|0);var j=e.getLong_61zpoe$("messageReadEntityUid");e.wasNull()&&(D=D+1|0);var G=e.getLong_61zpoe$("messageReadLct");e.wasNull()&&(D=D+1|0);var q=5===D,F=new Xat;if(F.messageUid=n,F.messageSenderPersonUid=i,F.messageTableId=o,F.messageEntityUid=r,F.messageText=s,F.messageTimestamp=a,F.messageClazzUid=c,F.messageLct=l,!U){var B=new zct;B.personUid=h,B.username=d,B.firstNames=p,B.lastName=_,B.emailAddr=m,B.phoneNum=f,B.gender=g,B.active=$,B.admin=E,B.personNotes=y,B.fatherName=b,B.fatherNumber=S,B.motherName=v,B.motherNum=C,B.dateOfBirth=N,B.personAddress=T,B.personOrgId=L,B.personGroupUid=z,B.personMasterChangeSeqNum=w,B.personLocalChangeSeqNum=O,B.personLastChangedBy=R,B.personLct=A,B.personCountry=x,B.personType=I,F.messagePerson=B}if(!q){var W=new Gat;W.messageReadUid=P,W.messageReadPersonUid=M,W.messageReadMessageUid=k,W.messageReadEntityUid=j,W.messageReadLct=G,F.messageRead=W}return F}));var e}function Bk(t,e,n,i,o,r,s){N.call(this,s),this.exceptionState_0=1,this.local$closure$loggedInPersonUid=t,this.local$closure$tableId=e,this.local$closure$entityUid=n,this.local$closure$_limit=i,this.local$closure$_offset=o,this.local$_stmt=r}function Wk(t,e,n,i,o){return function(r,s,a){var c=new Bk(t,e,n,i,o,r,s);return a?c:c.doResume(null)}}function Hk(t,e,n,i,o,r,s){N.call(this,s),this.exceptionState_0=1,this.local$this$MessageDao_JdbcKt=t,this.local$closure$loggedInPersonUid=e,this.local$closure$tableId=n,this.local$closure$entityUid=i,this.local$closure$_limit=o,this.local$closure$_offset=r}function Vk(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function Kk(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$loggedInPersonUid=t,this.local$closure$tableId=e,this.local$closure$entityUid=n,this.local$_stmt=i}function Xk(t,e,n){return function(i,o,r){var s=new Kk(t,e,n,i,o);return r?s:s.doResume(null)}}function Jk(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$this$MessageDao_JdbcKt=t,this.local$closure$loggedInPersonUid=e,this.local$closure$tableId=n,this.local$closure$entityUid=i}function Yk(t){pt.call(this,t)}function Qk(t,e){Lk.call(this),this._db_0=t,this._dao_0=e}function Zk(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function tj(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function ej(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function nj(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function ij(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function oj(t,e,n,i,o,r){Lk.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function rj(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function sj(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function aj(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function cj(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function lj(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function uj(){}function hj(t){uj.call(this),this._db=t,this._insertAdapterMessageRead_=new Ej(this._db)}function dj(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function pj(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function _j(t){return function(e,n,i){var o=new pj(t,e,n);return i?o:o.doResume(null)}}function mj(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function fj(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function gj(t,e,n){var i=new fj(t,e);return n?i:i.doResume(null)}function $j(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function Ej(t){pt.call(this,t)}function yj(t,e){uj.call(this),this._db_0=t,this._dao_0=e}function bj(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function Sj(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function vj(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Cj(t,e,n,i,o,r){uj.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function Nj(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function Tj(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function Lj(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function zj(){}function wj(t){zj.call(this),this._db=t,this._insertAdapterNetworkNode_upsert=new Hj(this._db)}function Oj(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$node=e}function Rj(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("nodeId"),i=e.getString_61zpoe$("bluetoothMacAddress"),o=e.getString_61zpoe$("ipAddress"),r=e.getString_61zpoe$("wifiDirectMacAddress"),s=e.getString_61zpoe$("deviceWifiDirectName"),a=e.getString_61zpoe$("endpointUrl"),c=e.getLong_61zpoe$("lastUpdateTimeStamp"),l=e.getLong_61zpoe$("networkServiceLastUpdated"),u=e.getString_61zpoe$("nsdServiceName"),h=e.getInt_61zpoe$("port"),d=e.getInt_61zpoe$("numFailureCount"),p=e.getInt_61zpoe$("wifiDirectDeviceStatus"),_=e.getString_61zpoe$("groupSsid"),m=new Ect;return m.nodeId=n,m.bluetoothMacAddress=i,m.ipAddress=o,m.wifiDirectMacAddress=r,m.deviceWifiDirectName=s,m.endpointUrl=a,m.lastUpdateTimeStamp=c,m.networkServiceLastUpdated=l,m.nsdServiceName=u,m.port=h,m.numFailureCount=d,m.wifiDirectDeviceStatus=p,m.groupSsid=_,m}));var e}function Aj(t){return ut(t.executeQuery(),Rj)}function xj(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("nodeId"),i=e.getString_61zpoe$("bluetoothMacAddress"),o=e.getString_61zpoe$("ipAddress"),r=e.getString_61zpoe$("wifiDirectMacAddress"),s=e.getString_61zpoe$("deviceWifiDirectName"),a=e.getString_61zpoe$("endpointUrl"),c=e.getLong_61zpoe$("lastUpdateTimeStamp"),l=e.getLong_61zpoe$("networkServiceLastUpdated"),u=e.getString_61zpoe$("nsdServiceName"),h=e.getInt_61zpoe$("port"),d=e.getInt_61zpoe$("numFailureCount"),p=e.getInt_61zpoe$("wifiDirectDeviceStatus"),_=e.getString_61zpoe$("groupSsid"),m=new Ect;return m.nodeId=n,m.bluetoothMacAddress=i,m.ipAddress=o,m.wifiDirectMacAddress=r,m.deviceWifiDirectName=s,m.endpointUrl=a,m.lastUpdateTimeStamp=c,m.networkServiceLastUpdated=l,m.nsdServiceName=u,m.port=h,m.numFailureCount=d,m.wifiDirectDeviceStatus=p,m.groupSsid=_,m}));var e}function Ij(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("nodeId"),i=e.getString_61zpoe$("bluetoothMacAddress"),o=e.getString_61zpoe$("ipAddress"),r=e.getString_61zpoe$("wifiDirectMacAddress"),s=e.getString_61zpoe$("deviceWifiDirectName"),a=e.getString_61zpoe$("endpointUrl"),c=e.getLong_61zpoe$("lastUpdateTimeStamp"),l=e.getLong_61zpoe$("networkServiceLastUpdated"),u=e.getString_61zpoe$("nsdServiceName"),h=e.getInt_61zpoe$("port"),d=e.getInt_61zpoe$("numFailureCount"),p=e.getInt_61zpoe$("wifiDirectDeviceStatus"),_=e.getString_61zpoe$("groupSsid"),m=new Ect;return m.nodeId=n,m.bluetoothMacAddress=i,m.ipAddress=o,m.wifiDirectMacAddress=r,m.deviceWifiDirectName=s,m.endpointUrl=a,m.lastUpdateTimeStamp=c,m.networkServiceLastUpdated=l,m.nsdServiceName=u,m.port=h,m.numFailureCount=d,m.wifiDirectDeviceStatus=p,m.groupSsid=_,m}));var e}function Uj(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("nodeId"),i=e.getString_61zpoe$("bluetoothMacAddress"),o=e.getString_61zpoe$("ipAddress"),r=e.getString_61zpoe$("wifiDirectMacAddress"),s=e.getString_61zpoe$("deviceWifiDirectName"),a=e.getString_61zpoe$("endpointUrl"),c=e.getLong_61zpoe$("lastUpdateTimeStamp"),l=e.getLong_61zpoe$("networkServiceLastUpdated"),u=e.getString_61zpoe$("nsdServiceName"),h=e.getInt_61zpoe$("port"),d=e.getInt_61zpoe$("numFailureCount"),p=e.getInt_61zpoe$("wifiDirectDeviceStatus"),_=e.getString_61zpoe$("groupSsid"),m=new Ect;return m.nodeId=n,m.bluetoothMacAddress=i,m.ipAddress=o,m.wifiDirectMacAddress=r,m.deviceWifiDirectName=s,m.endpointUrl=a,m.lastUpdateTimeStamp=c,m.networkServiceLastUpdated=l,m.nsdServiceName=u,m.port=h,m.numFailureCount=d,m.wifiDirectDeviceStatus=p,m.groupSsid=_,m}));var e}function Dj(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("nodeId"),i=e.getString_61zpoe$("bluetoothMacAddress"),o=e.getString_61zpoe$("ipAddress"),r=e.getString_61zpoe$("wifiDirectMacAddress"),s=e.getString_61zpoe$("deviceWifiDirectName"),a=e.getString_61zpoe$("endpointUrl"),c=e.getLong_61zpoe$("lastUpdateTimeStamp"),l=e.getLong_61zpoe$("networkServiceLastUpdated"),u=e.getString_61zpoe$("nsdServiceName"),h=e.getInt_61zpoe$("port"),d=e.getInt_61zpoe$("numFailureCount"),p=e.getInt_61zpoe$("wifiDirectDeviceStatus"),_=e.getString_61zpoe$("groupSsid"),m=new Ect;return m.nodeId=n,m.bluetoothMacAddress=i,m.ipAddress=o,m.wifiDirectMacAddress=r,m.deviceWifiDirectName=s,m.endpointUrl=a,m.lastUpdateTimeStamp=c,m.networkServiceLastUpdated=l,m.nsdServiceName=u,m.port=h,m.numFailureCount=d,m.wifiDirectDeviceStatus=p,m.groupSsid=_,m}));var e}function Pj(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function Mj(t,e,n){var i=new Pj(t,e);return n?i:i.doResume(null)}function kj(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function jj(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$nodeId=t,this.local$_stmt=e}function Gj(t){return function(e,n,i){var o=new jj(t,e,n);return i?o:o.doResume(null)}}function qj(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$nodeId=e}function Fj(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("nodeId"),i=e.getString_61zpoe$("bluetoothMacAddress"),o=e.getString_61zpoe$("ipAddress"),r=e.getString_61zpoe$("wifiDirectMacAddress"),s=e.getString_61zpoe$("deviceWifiDirectName"),a=e.getString_61zpoe$("endpointUrl"),c=e.getLong_61zpoe$("lastUpdateTimeStamp"),l=e.getLong_61zpoe$("networkServiceLastUpdated"),u=e.getString_61zpoe$("nsdServiceName"),h=e.getInt_61zpoe$("port"),d=e.getInt_61zpoe$("numFailureCount"),p=e.getInt_61zpoe$("wifiDirectDeviceStatus"),_=e.getString_61zpoe$("groupSsid"),m=new Ect;return m.nodeId=n,m.bluetoothMacAddress=i,m.ipAddress=o,m.wifiDirectMacAddress=r,m.deviceWifiDirectName=s,m.endpointUrl=a,m.lastUpdateTimeStamp=c,m.networkServiceLastUpdated=l,m.nsdServiceName=u,m.port=h,m.numFailureCount=d,m.wifiDirectDeviceStatus=p,m.groupSsid=_,m}));var e}function Bj(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$lastUpdateTimeStamp=t,this.local$closure$bluetoothAddress=e,this.local$_stmt=n}function Wj(t){return lt(t,null,(e=t,function(t){return e.getString_za3lpa$(1)}));var e}function Hj(t){pt.call(this,t)}function Vj(){}function Kj(t){Vj.call(this),this._db=t,this._insertAdapterPersonAuth2_=new aG(this._db),this._insertAdapterPersonAuth2_upsert=new cG(this._db)}function Xj(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$auths=e}function Jj(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$auth=e}function Yj(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function Qj(t){return function(e,n,i){var o=new Yj(t,e,n);return i?o:o.doResume(null)}}function Zj(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function tG(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function eG(t,e,n){var i=new tG(t,e);return n?i:i.doResume(null)}function nG(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function iG(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("pauthUid"),i=e.getString_61zpoe$("pauthMechanism"),o=e.getString_61zpoe$("pauthAuth"),r=e.getLong_61zpoe$("pauthLcsn"),s=e.getLong_61zpoe$("pauthPcsn"),a=e.getLong_61zpoe$("pauthLcb"),c=e.getLong_61zpoe$("pauthLct"),l=new Bct;return l.pauthUid=n,l.pauthMechanism=i,l.pauthAuth=o,l.pauthLcsn=r,l.pauthPcsn=s,l.pauthLcb=a,l.pauthLct=c,l}));var e}function oG(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$personUid=t,this.local$_stmt=e}function rG(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("pauthUid"),i=e.getString_61zpoe$("pauthMechanism"),o=e.getString_61zpoe$("pauthAuth"),r=e.getLong_61zpoe$("pauthLcsn"),s=e.getLong_61zpoe$("pauthPcsn"),a=e.getLong_61zpoe$("pauthLcb"),c=e.getLong_61zpoe$("pauthLct"),l=new Bct;return l.pauthUid=n,l.pauthMechanism=i,l.pauthAuth=o,l.pauthLcsn=r,l.pauthPcsn=s,l.pauthLcb=a,l.pauthLct=c,l}));var e}function sG(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$username=t,this.local$_stmt=e}function aG(t){pt.call(this,t)}function cG(t){pt.call(this,t)}function lG(t,e){Vj.call(this),this._db_0=t,this._dao_0=e}function uG(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function hG(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function dG(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$auths=e}function pG(t,e,n,i,o,r){Vj.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function _G(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function mG(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function fG(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$auths=e}function gG(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$auth=e}function $G(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$personUid=e}function EG(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$username=e}function yG(){}function bG(t){yG.call(this),this._db=t,this._insertAdapterAccessToken_=new AG(this._db),this._insertAdapterPersonAuth_=new xG(this._db)}function SG(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function vG(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$entity=t,this.local$closure$_result=e,this.local$tmp$=void 0,this.local$_stmt=n}function CG(t,e){return function(n,i,o){var r=new vG(t,e,n,i);return o?r:r.doResume(null)}}function NG(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_result=void 0,this.local$entity=e}function TG(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("personAuthUid"),i=e.getString_61zpoe$("passwordHash"),o=e.getInt_61zpoe$("personAuthStatus"),r=new Dct;return r.personAuthUid=n,r.passwordHash=i,r.personAuthStatus=o,r}));var e}function LG(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function zG(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("personAuthUid"),i=e.getString_61zpoe$("passwordHash"),o=e.getInt_61zpoe$("personAuthStatus"),r=new Dct;return r.personAuthUid=n,r.passwordHash=i,r.personAuthStatus=o,r}));var e}function wG(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("personUid"),i=e.getString_61zpoe$("username"),o=e.getString_61zpoe$("firstNames"),r=e.getString_61zpoe$("lastName"),s=e.getString_61zpoe$("emailAddr"),a=e.getString_61zpoe$("phoneNum"),c=e.getInt_61zpoe$("gender"),l=e.getBoolean_61zpoe$("active"),u=e.getBoolean_61zpoe$("admin"),h=e.getString_61zpoe$("personNotes"),d=e.getString_61zpoe$("fatherName"),p=e.getString_61zpoe$("fatherNumber"),_=e.getString_61zpoe$("motherName"),m=e.getString_61zpoe$("motherNum"),f=e.getLong_61zpoe$("dateOfBirth"),g=e.getString_61zpoe$("personAddress"),$=e.getString_61zpoe$("personOrgId"),E=e.getLong_61zpoe$("personGroupUid"),y=e.getLong_61zpoe$("personMasterChangeSeqNum"),b=e.getLong_61zpoe$("personLocalChangeSeqNum"),S=e.getInt_61zpoe$("personLastChangedBy"),v=e.getLong_61zpoe$("personLct"),C=e.getString_61zpoe$("personCountry"),N=e.getInt_61zpoe$("personType"),T=new zct;return T.personUid=n,T.username=i,T.firstNames=o,T.lastName=r,T.emailAddr=s,T.phoneNum=a,T.gender=c,T.active=l,T.admin=u,T.personNotes=h,T.fatherName=d,T.fatherNumber=p,T.motherName=_,T.motherNum=m,T.dateOfBirth=f,T.personAddress=g,T.personOrgId=$,T.personGroupUid=E,T.personMasterChangeSeqNum=y,T.personLocalChangeSeqNum=b,T.personLastChangedBy=S,T.personLct=v,T.personCountry=C,T.personType=N,T}));var e}function OG(t){return lt(t,!1,(e=t,function(t){return e.getBoolean_za3lpa$(1)}));var e}function RG(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$passwordHash=t,this.local$closure$personUid=e,this.local$_stmt=n}function AG(t){pt.call(this,t)}function xG(t){pt.call(this,t)}function IG(){}function UG(t){IG.call(this),this._db=t,this._insertAdapterPerson_=new Uq(this._db),this._insertAdapterPerson_upsert=new Dq(this._db),this._insertAdapterAccessToken_=new Pq(this._db),this._insertAdapterPersonAuth_=new Mq(this._db),this._insertAdapterPersonGroup_=new kq(this._db),this._insertAdapterPersonGroupMember_=new jq(this._db),this._insertAdapterAuditLog_=new Gq(this._db)}function DG(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function PG(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$person=e}function MG(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$personGroup=e}function kG(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$personGroupMember=e}function jG(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function GG(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$entity=t,this.local$closure$_result=e,this.local$tmp$=void 0,this.local$_stmt=n}function qG(t,e){return function(n,i,o){var r=new GG(t,e,n,i);return o?r:r.doResume(null)}}function FG(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_result=void 0,this.local$entity=e}function BG(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function WG(t){return function(e,n,i){var o=new BG(t,e,n);return i?o:o.doResume(null)}}function HG(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function VG(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function KG(t,e,n){var i=new VG(t,e);return n?i:i.doResume(null)}function XG(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function JG(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function YG(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$username=t,this.local$_stmt=e}function QG(t){return lt(t,!1,(e=t,function(t){return e.getBoolean_za3lpa$(1)}));var e}function ZG(t){return lt(t,null,(e=t,function(t){var n=e.getString_61zpoe$("passwordHash"),i=e.getLong_61zpoe$("personUid"),o=e.getString_61zpoe$("firstNames"),r=e.getString_61zpoe$("lastName"),s=e.getBoolean_61zpoe$("admin"),a=new Ult;return a.passwordHash=n,a.personUid=i,a.firstNames=o,a.lastName=r,a.admin=s,a}));var e}function tq(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$username=t,this.local$_stmt=e}function eq(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("personUid"),i=e.getString_61zpoe$("username"),o=e.getString_61zpoe$("firstNames"),r=e.getString_61zpoe$("lastName"),s=e.getString_61zpoe$("emailAddr"),a=e.getString_61zpoe$("phoneNum"),c=e.getInt_61zpoe$("gender"),l=e.getBoolean_61zpoe$("active"),u=e.getBoolean_61zpoe$("admin"),h=e.getString_61zpoe$("personNotes"),d=e.getString_61zpoe$("fatherName"),p=e.getString_61zpoe$("fatherNumber"),_=e.getString_61zpoe$("motherName"),m=e.getString_61zpoe$("motherNum"),f=e.getLong_61zpoe$("dateOfBirth"),g=e.getString_61zpoe$("personAddress"),$=e.getString_61zpoe$("personOrgId"),E=e.getLong_61zpoe$("personGroupUid"),y=e.getLong_61zpoe$("personMasterChangeSeqNum"),b=e.getLong_61zpoe$("personLocalChangeSeqNum"),S=e.getInt_61zpoe$("personLastChangedBy"),v=e.getLong_61zpoe$("personLct"),C=e.getString_61zpoe$("personCountry"),N=e.getInt_61zpoe$("personType"),T=new zct;return T.personUid=n,T.username=i,T.firstNames=o,T.lastName=r,T.emailAddr=s,T.phoneNum=a,T.gender=c,T.active=l,T.admin=u,T.personNotes=h,T.fatherName=d,T.fatherNumber=p,T.motherName=_,T.motherNum=m,T.dateOfBirth=f,T.personAddress=g,T.personOrgId=$,T.personGroupUid=E,T.personMasterChangeSeqNum=y,T.personLocalChangeSeqNum=b,T.personLastChangedBy=S,T.personLct=v,T.personCountry=C,T.personType=N,T}));var e}function nq(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$username=t,this.local$closure$passwordHash=e,this.local$_stmt=n}function iq(t){return lt(t,!1,(e=t,function(t){return e.getBoolean_za3lpa$(1)}));var e}function oq(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$personUid=t,this.local$closure$permission=e,this.local$closure$accountPersonUid=n,this.local$_stmt=i}function rq(t){return lt(t,!1,(e=t,function(t){return e.getBoolean_za3lpa$(1)}));var e}function sq(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$accountPersonUid=t,this.local$_stmt=e}function aq(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("personUid"),i=e.getString_61zpoe$("username"),o=e.getString_61zpoe$("firstNames"),r=e.getString_61zpoe$("lastName"),s=e.getString_61zpoe$("emailAddr"),a=e.getString_61zpoe$("phoneNum"),c=e.getInt_61zpoe$("gender"),l=e.getBoolean_61zpoe$("active"),u=e.getBoolean_61zpoe$("admin"),h=e.getString_61zpoe$("personNotes"),d=e.getString_61zpoe$("fatherName"),p=e.getString_61zpoe$("fatherNumber"),_=e.getString_61zpoe$("motherName"),m=e.getString_61zpoe$("motherNum"),f=e.getLong_61zpoe$("dateOfBirth"),g=e.getString_61zpoe$("personAddress"),$=e.getString_61zpoe$("personOrgId"),E=e.getLong_61zpoe$("personGroupUid"),y=e.getLong_61zpoe$("personMasterChangeSeqNum"),b=e.getLong_61zpoe$("personLocalChangeSeqNum"),S=e.getInt_61zpoe$("personLastChangedBy"),v=e.getLong_61zpoe$("personLct"),C=e.getString_61zpoe$("personCountry"),N=e.getInt_61zpoe$("personType"),T=new zct;return T.personUid=n,T.username=i,T.firstNames=o,T.lastName=r,T.emailAddr=s,T.phoneNum=a,T.gender=c,T.active=l,T.admin=u,T.personNotes=h,T.fatherName=d,T.fatherNumber=p,T.motherName=_,T.motherNum=m,T.dateOfBirth=f,T.personAddress=g,T.personOrgId=$,T.personGroupUid=E,T.personMasterChangeSeqNum=y,T.personLocalChangeSeqNum=b,T.personLastChangedBy=S,T.personLct=v,T.personCountry=C,T.personType=N,T}));var e}function cq(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("personUid"),i=e.getString_61zpoe$("username"),o=e.getString_61zpoe$("firstNames"),r=e.getString_61zpoe$("lastName"),s=e.getString_61zpoe$("emailAddr"),a=e.getString_61zpoe$("phoneNum"),c=e.getInt_61zpoe$("gender"),l=e.getBoolean_61zpoe$("active"),u=e.getBoolean_61zpoe$("admin"),h=e.getString_61zpoe$("personNotes"),d=e.getString_61zpoe$("fatherName"),p=e.getString_61zpoe$("fatherNumber"),_=e.getString_61zpoe$("motherName"),m=e.getString_61zpoe$("motherNum"),f=e.getLong_61zpoe$("dateOfBirth"),g=e.getString_61zpoe$("personAddress"),$=e.getString_61zpoe$("personOrgId"),E=e.getLong_61zpoe$("personGroupUid"),y=e.getLong_61zpoe$("personMasterChangeSeqNum"),b=e.getLong_61zpoe$("personLocalChangeSeqNum"),S=e.getInt_61zpoe$("personLastChangedBy"),v=e.getLong_61zpoe$("personLct"),C=e.getString_61zpoe$("personCountry"),N=e.getInt_61zpoe$("personType"),T=new zct;return T.personUid=n,T.username=i,T.firstNames=o,T.lastName=r,T.emailAddr=s,T.phoneNum=a,T.gender=c,T.active=l,T.admin=u,T.personNotes=h,T.fatherName=d,T.fatherNumber=p,T.motherName=_,T.motherNum=m,T.dateOfBirth=f,T.personAddress=g,T.personOrgId=$,T.personGroupUid=E,T.personMasterChangeSeqNum=y,T.personLocalChangeSeqNum=b,T.personLastChangedBy=S,T.personLct=v,T.personCountry=C,T.personType=N,T}));var e}function lq(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$nodeId=t,this.local$_stmt=e}function uq(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("personUid"),i=e.getString_61zpoe$("username"),o=e.getString_61zpoe$("firstNames"),r=e.getString_61zpoe$("lastName"),s=e.getString_61zpoe$("emailAddr"),a=e.getString_61zpoe$("phoneNum"),c=e.getInt_61zpoe$("gender"),l=e.getBoolean_61zpoe$("active"),u=e.getBoolean_61zpoe$("admin"),h=e.getString_61zpoe$("personNotes"),d=e.getString_61zpoe$("fatherName"),p=e.getString_61zpoe$("fatherNumber"),_=e.getString_61zpoe$("motherName"),m=e.getString_61zpoe$("motherNum"),f=e.getLong_61zpoe$("dateOfBirth"),g=e.getString_61zpoe$("personAddress"),$=e.getString_61zpoe$("personOrgId"),E=e.getLong_61zpoe$("personGroupUid"),y=e.getLong_61zpoe$("personMasterChangeSeqNum"),b=e.getLong_61zpoe$("personLocalChangeSeqNum"),S=e.getInt_61zpoe$("personLastChangedBy"),v=e.getLong_61zpoe$("personLct"),C=e.getString_61zpoe$("personCountry"),N=e.getInt_61zpoe$("personType"),T=new zct;return T.personUid=n,T.username=i,T.firstNames=o,T.lastName=r,T.emailAddr=s,T.phoneNum=a,T.gender=c,T.active=l,T.admin=u,T.personNotes=h,T.fatherName=d,T.fatherNumber=p,T.motherName=_,T.motherNum=m,T.dateOfBirth=f,T.personAddress=g,T.personOrgId=$,T.personGroupUid=E,T.personMasterChangeSeqNum=y,T.personLocalChangeSeqNum=b,T.personLastChangedBy=S,T.personLct=v,T.personCountry=C,T.personType=N,T}));var e}function hq(t){return lt(t,null,(e=t,function(t){var n=e.getString_61zpoe$("currentPassword"),i=e.getString_61zpoe$("newPassword"),o=e.getString_61zpoe$("confirmedPassword"),r=e.getLong_61zpoe$("personUid"),s=e.getString_61zpoe$("username"),a=e.getString_61zpoe$("firstNames"),c=e.getString_61zpoe$("lastName"),l=e.getString_61zpoe$("emailAddr"),u=e.getString_61zpoe$("phoneNum"),h=e.getInt_61zpoe$("gender"),d=e.getBoolean_61zpoe$("active"),p=e.getBoolean_61zpoe$("admin"),_=e.getString_61zpoe$("personNotes"),m=e.getString_61zpoe$("fatherName"),f=e.getString_61zpoe$("fatherNumber"),g=e.getString_61zpoe$("motherName"),$=e.getString_61zpoe$("motherNum"),E=e.getLong_61zpoe$("dateOfBirth"),y=e.getString_61zpoe$("personAddress"),b=e.getString_61zpoe$("personOrgId"),S=e.getLong_61zpoe$("personGroupUid"),v=e.getLong_61zpoe$("personMasterChangeSeqNum"),C=e.getLong_61zpoe$("personLocalChangeSeqNum"),N=e.getInt_61zpoe$("personLastChangedBy"),T=e.getLong_61zpoe$("personLct"),L=e.getString_61zpoe$("personCountry"),z=e.getInt_61zpoe$("personType"),w=new Dlt;return w.currentPassword=n,w.newPassword=i,w.confirmedPassword=o,w.personUid=r,w.username=s,w.firstNames=a,w.lastName=c,w.emailAddr=l,w.phoneNum=u,w.gender=h,w.active=d,w.admin=p,w.personNotes=_,w.fatherName=m,w.fatherNumber=f,w.motherName=g,w.motherNum=$,w.dateOfBirth=E,w.personAddress=y,w.personOrgId=b,w.personGroupUid=S,w.personMasterChangeSeqNum=v,w.personLocalChangeSeqNum=C,w.personLastChangedBy=N,w.personLct=T,w.personCountry=L,w.personType=z,w}));var e}function dq(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function pq(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("personUid"),i=e.getString_61zpoe$("username"),o=e.getString_61zpoe$("firstNames"),r=e.getString_61zpoe$("lastName"),s=e.getString_61zpoe$("emailAddr"),a=e.getString_61zpoe$("phoneNum"),c=e.getInt_61zpoe$("gender"),l=e.getBoolean_61zpoe$("active"),u=e.getBoolean_61zpoe$("admin"),h=e.getString_61zpoe$("personNotes"),d=e.getString_61zpoe$("fatherName"),p=e.getString_61zpoe$("fatherNumber"),_=e.getString_61zpoe$("motherName"),m=e.getString_61zpoe$("motherNum"),f=e.getLong_61zpoe$("dateOfBirth"),g=e.getString_61zpoe$("personAddress"),$=e.getString_61zpoe$("personOrgId"),E=e.getLong_61zpoe$("personGroupUid"),y=e.getLong_61zpoe$("personMasterChangeSeqNum"),b=e.getLong_61zpoe$("personLocalChangeSeqNum"),S=e.getInt_61zpoe$("personLastChangedBy"),v=e.getLong_61zpoe$("personLct"),C=e.getString_61zpoe$("personCountry"),N=e.getInt_61zpoe$("personType"),T=new zct;return T.personUid=n,T.username=i,T.firstNames=o,T.lastName=r,T.emailAddr=s,T.phoneNum=a,T.gender=c,T.active=l,T.admin=u,T.personNotes=h,T.fatherName=d,T.fatherNumber=p,T.motherName=_,T.motherNum=m,T.dateOfBirth=f,T.personAddress=g,T.personOrgId=$,T.personGroupUid=E,T.personMasterChangeSeqNum=y,T.personLocalChangeSeqNum=b,T.personLastChangedBy=S,T.personLct=v,T.personCountry=C,T.personType=N,T}));var e}function _q(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function mq(t){return function(e,n,i){var o=new _q(t,e,n);return i?o:o.doResume(null)}}function fq(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$PersonDao_JdbcKt=t,this.local$closure$uid=e}function gq(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("personUid"),i=e.getString_61zpoe$("username"),o=e.getString_61zpoe$("firstNames"),r=e.getString_61zpoe$("lastName"),s=e.getString_61zpoe$("emailAddr"),a=e.getString_61zpoe$("phoneNum"),c=e.getInt_61zpoe$("gender"),l=e.getBoolean_61zpoe$("active"),u=e.getBoolean_61zpoe$("admin"),h=e.getString_61zpoe$("personNotes"),d=e.getString_61zpoe$("fatherName"),p=e.getString_61zpoe$("fatherNumber"),_=e.getString_61zpoe$("motherName"),m=e.getString_61zpoe$("motherNum"),f=e.getLong_61zpoe$("dateOfBirth"),g=e.getString_61zpoe$("personAddress"),$=e.getString_61zpoe$("personOrgId"),E=e.getLong_61zpoe$("personGroupUid"),y=e.getLong_61zpoe$("personMasterChangeSeqNum"),b=e.getLong_61zpoe$("personLocalChangeSeqNum"),S=e.getInt_61zpoe$("personLastChangedBy"),v=e.getLong_61zpoe$("personLct"),C=e.getString_61zpoe$("personCountry"),N=e.getInt_61zpoe$("personType"),T=new zct;return T.personUid=n,T.username=i,T.firstNames=o,T.lastName=r,T.emailAddr=s,T.phoneNum=a,T.gender=c,T.active=l,T.admin=u,T.personNotes=h,T.fatherName=d,T.fatherNumber=p,T.motherName=_,T.motherNum=m,T.dateOfBirth=f,T.personAddress=g,T.personOrgId=$,T.personGroupUid=E,T.personMasterChangeSeqNum=y,T.personLocalChangeSeqNum=b,T.personLastChangedBy=S,T.personLct=v,T.personCountry=C,T.personType=N,T}));var e}function $q(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function Eq(t,e,n,i,o,r,s,a){this.this$PersonDao_JdbcKt=t,this.closure$accountPersonUid=e,this.closure$excludeClazz=n,this.closure$timestamp=i,this.closure$excludeSchool=o,this.closure$excludeSelected=r,this.closure$searchText=s,this.closure$sortOrder=a,gt.call(this)}function yq(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("personUid"),i=e.getString_61zpoe$("username"),o=e.getString_61zpoe$("firstNames"),r=e.getString_61zpoe$("lastName"),s=e.getString_61zpoe$("emailAddr"),a=e.getString_61zpoe$("phoneNum"),c=e.getInt_61zpoe$("gender"),l=e.getBoolean_61zpoe$("active"),u=e.getBoolean_61zpoe$("admin"),h=e.getString_61zpoe$("personNotes"),d=e.getString_61zpoe$("fatherName"),p=e.getString_61zpoe$("fatherNumber"),_=e.getString_61zpoe$("motherName"),m=e.getString_61zpoe$("motherNum"),f=e.getLong_61zpoe$("dateOfBirth"),g=e.getString_61zpoe$("personAddress"),$=e.getString_61zpoe$("personOrgId"),E=e.getLong_61zpoe$("personGroupUid"),y=e.getLong_61zpoe$("personMasterChangeSeqNum"),b=e.getLong_61zpoe$("personLocalChangeSeqNum"),S=e.getInt_61zpoe$("personLastChangedBy"),v=e.getLong_61zpoe$("personLct"),C=e.getString_61zpoe$("personCountry"),N=e.getInt_61zpoe$("personType"),T=new sut;return T.personUid=n,T.username=i,T.firstNames=o,T.lastName=r,T.emailAddr=s,T.phoneNum=a,T.gender=c,T.active=l,T.admin=u,T.personNotes=h,T.fatherName=d,T.fatherNumber=p,T.motherName=_,T.motherNum=m,T.dateOfBirth=f,T.personAddress=g,T.personOrgId=$,T.personGroupUid=E,T.personMasterChangeSeqNum=y,T.personLocalChangeSeqNum=b,T.personLastChangedBy=S,T.personLct=v,T.personCountry=C,T.personType=N,T}));var e}function bq(t,e,n,i,o,r,s,a,c,l,u){N.call(this,u),this.exceptionState_0=1,this.local$closure$accountPersonUid=t,this.local$closure$excludeClazz=e,this.local$closure$timestamp=n,this.local$closure$excludeSchool=i,this.local$closure$excludeSelected=o,this.local$closure$searchText=r,this.local$closure$sortOrder=s,this.local$closure$_limit=a,this.local$closure$_offset=c,this.local$_stmt=l}function Sq(t,e,n,i,o,r,s,a,c){return function(l,u,h){var d=new bq(t,e,n,i,o,r,s,a,c,l,u);return h?d:d.doResume(null)}}function vq(t,e,n,i,o,r,s,a,c,l,u){N.call(this,u),this.exceptionState_0=1,this.local$this$PersonDao_JdbcKt=t,this.local$closure$accountPersonUid=e,this.local$closure$excludeClazz=n,this.local$closure$timestamp=i,this.local$closure$excludeSchool=o,this.local$closure$excludeSelected=r,this.local$closure$searchText=s,this.local$closure$sortOrder=a,this.local$closure$_limit=c,this.local$closure$_offset=l}function Cq(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function Nq(t,e,n,i,o,r,s,a,c){N.call(this,c),this.exceptionState_0=1,this.local$closure$accountPersonUid=t,this.local$closure$excludeClazz=e,this.local$closure$timestamp=n,this.local$closure$excludeSchool=i,this.local$closure$excludeSelected=o,this.local$closure$searchText=r,this.local$closure$sortOrder=s,this.local$_stmt=a}function Tq(t,e,n,i,o,r,s){return function(a,c,l){var u=new Nq(t,e,n,i,o,r,s,a,c);return l?u:u.doResume(null)}}function Lq(t,e,n,i,o,r,s,a,c){N.call(this,c),this.exceptionState_0=1,this.local$this$PersonDao_JdbcKt=t,this.local$closure$accountPersonUid=e,this.local$closure$excludeClazz=n,this.local$closure$timestamp=i,this.local$closure$excludeSchool=o,this.local$closure$excludeSelected=r,this.local$closure$searchText=s,this.local$closure$sortOrder=a}function zq(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("personUid"),i=e.getString_61zpoe$("username"),o=e.getString_61zpoe$("firstNames"),r=e.getString_61zpoe$("lastName"),s=e.getString_61zpoe$("emailAddr"),a=e.getString_61zpoe$("phoneNum"),c=e.getInt_61zpoe$("gender"),l=e.getBoolean_61zpoe$("active"),u=e.getBoolean_61zpoe$("admin"),h=e.getString_61zpoe$("personNotes"),d=e.getString_61zpoe$("fatherName"),p=e.getString_61zpoe$("fatherNumber"),_=e.getString_61zpoe$("motherName"),m=e.getString_61zpoe$("motherNum"),f=e.getLong_61zpoe$("dateOfBirth"),g=e.getString_61zpoe$("personAddress"),$=e.getString_61zpoe$("personOrgId"),E=e.getLong_61zpoe$("personGroupUid"),y=e.getLong_61zpoe$("personMasterChangeSeqNum"),b=e.getLong_61zpoe$("personLocalChangeSeqNum"),S=e.getInt_61zpoe$("personLastChangedBy"),v=e.getLong_61zpoe$("personLct"),C=e.getString_61zpoe$("personCountry"),N=e.getInt_61zpoe$("personType"),T=new zct;return T.personUid=n,T.username=i,T.firstNames=o,T.lastName=r,T.emailAddr=s,T.phoneNum=a,T.gender=c,T.active=l,T.admin=u,T.personNotes=h,T.fatherName=d,T.fatherNumber=p,T.motherName=_,T.motherNum=m,T.dateOfBirth=f,T.personAddress=g,T.personOrgId=$,T.personGroupUid=E,T.personMasterChangeSeqNum=y,T.personLocalChangeSeqNum=b,T.personLastChangedBy=S,T.personLct=v,T.personCountry=C,T.personType=N,T}));var e}function wq(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("personUid"),i=e.getString_61zpoe$("username"),o=e.getString_61zpoe$("firstNames"),r=e.getString_61zpoe$("lastName"),s=e.getString_61zpoe$("emailAddr"),a=e.getString_61zpoe$("phoneNum"),c=e.getInt_61zpoe$("gender"),l=e.getBoolean_61zpoe$("active"),u=e.getBoolean_61zpoe$("admin"),h=e.getString_61zpoe$("personNotes"),d=e.getString_61zpoe$("fatherName"),p=e.getString_61zpoe$("fatherNumber"),_=e.getString_61zpoe$("motherName"),m=e.getString_61zpoe$("motherNum"),f=e.getLong_61zpoe$("dateOfBirth"),g=e.getString_61zpoe$("personAddress"),$=e.getString_61zpoe$("personOrgId"),E=e.getLong_61zpoe$("personGroupUid"),y=e.getLong_61zpoe$("personMasterChangeSeqNum"),b=e.getLong_61zpoe$("personLocalChangeSeqNum"),S=e.getInt_61zpoe$("personLastChangedBy"),v=e.getLong_61zpoe$("personLct"),C=e.getString_61zpoe$("personCountry"),N=e.getInt_61zpoe$("personType"),T=0,L=e.getLong_61zpoe$("ppjUid");e.wasNull()&&(T=T+1|0);var z=e.getLong_61zpoe$("ppjPcsn");e.wasNull()&&(T=T+1|0);var w=e.getLong_61zpoe$("ppjLcsn");e.wasNull()&&(T=T+1|0);var O=e.getInt_61zpoe$("ppjLcb");e.wasNull()&&(T=T+1|0);var R=e.getLong_61zpoe$("ppjLct");e.wasNull()&&(T=T+1|0);var A=e.getLong_61zpoe$("ppjParentPersonUid");e.wasNull()&&(T=T+1|0);var x=e.getLong_61zpoe$("ppjMinorPersonUid");e.wasNull()&&(T=T+1|0);var I=e.getInt_61zpoe$("ppjRelationship");e.wasNull()&&(T=T+1|0);var U=e.getString_61zpoe$("ppjEmail");e.wasNull()&&(T=T+1|0);var D=e.getString_61zpoe$("ppjPhone");e.wasNull()&&(T=T+1|0);var P=e.getBoolean_61zpoe$("ppjInactive");e.wasNull()&&(T=T+1|0);var M=e.getInt_61zpoe$("ppjStatus");e.wasNull()&&(T=T+1|0);var k=e.getLong_61zpoe$("ppjApprovalTiemstamp");e.wasNull()&&(T=T+1|0);var j=e.getString_61zpoe$("ppjApprovalIpAddr");e.wasNull()&&(T=T+1|0);var G=14===T,q=new _ut;if(q.personUid=n,q.username=i,q.firstNames=o,q.lastName=r,q.emailAddr=s,q.phoneNum=a,q.gender=c,q.active=l,q.admin=u,q.personNotes=h,q.fatherName=d,q.fatherNumber=p,q.motherName=_,q.motherNum=m,q.dateOfBirth=f,q.personAddress=g,q.personOrgId=$,q.personGroupUid=E,q.personMasterChangeSeqNum=y,q.personLocalChangeSeqNum=b,q.personLastChangedBy=S,q.personLct=v,q.personCountry=C,q.personType=N,!G){var F=new hlt;F.ppjUid=L,F.ppjPcsn=z,F.ppjLcsn=w,F.ppjLcb=O,F.ppjLct=R,F.ppjParentPersonUid=A,F.ppjMinorPersonUid=x,F.ppjRelationship=I,F.ppjEmail=U,F.ppjPhone=D,F.ppjInactive=P,F.ppjStatus=M,F.ppjApprovalTiemstamp=k,F.ppjApprovalIpAddr=j,q.parentJoin=F}return q}));var e}function Oq(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$personUid=t,this.local$closure$activeUserPersonUid=e,this.local$_stmt=n}function Rq(t,e){return function(n,i,o){var r=new Oq(t,e,n,i);return o?r:r.doResume(null)}}function Aq(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$this$PersonDao_JdbcKt=t,this.local$closure$personUid=e,this.local$closure$activeUserPersonUid=n}function xq(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("personUid"),i=e.getString_61zpoe$("username"),o=e.getString_61zpoe$("firstNames"),r=e.getString_61zpoe$("lastName"),s=e.getString_61zpoe$("emailAddr"),a=e.getString_61zpoe$("phoneNum"),c=e.getInt_61zpoe$("gender"),l=e.getBoolean_61zpoe$("active"),u=e.getBoolean_61zpoe$("admin"),h=e.getString_61zpoe$("personNotes"),d=e.getString_61zpoe$("fatherName"),p=e.getString_61zpoe$("fatherNumber"),_=e.getString_61zpoe$("motherName"),m=e.getString_61zpoe$("motherNum"),f=e.getLong_61zpoe$("dateOfBirth"),g=e.getString_61zpoe$("personAddress"),$=e.getString_61zpoe$("personOrgId"),E=e.getLong_61zpoe$("personGroupUid"),y=e.getLong_61zpoe$("personMasterChangeSeqNum"),b=e.getLong_61zpoe$("personLocalChangeSeqNum"),S=e.getInt_61zpoe$("personLastChangedBy"),v=e.getLong_61zpoe$("personLct"),C=e.getString_61zpoe$("personCountry"),N=e.getInt_61zpoe$("personType"),T=new zct;return T.personUid=n,T.username=i,T.firstNames=o,T.lastName=r,T.emailAddr=s,T.phoneNum=a,T.gender=c,T.active=l,T.admin=u,T.personNotes=h,T.fatherName=d,T.fatherNumber=p,T.motherName=_,T.motherNum=m,T.dateOfBirth=f,T.personAddress=g,T.personOrgId=$,T.personGroupUid=E,T.personMasterChangeSeqNum=y,T.personLocalChangeSeqNum=b,T.personLastChangedBy=S,T.personLct=v,T.personCountry=C,T.personType=N,T}));var e}function Iq(t){return ut(t.executeQuery(),xq)}function Uq(t){pt.call(this,t)}function Dq(t){pt.call(this,t)}function Pq(t){pt.call(this,t)}function Mq(t){pt.call(this,t)}function kq(t){pt.call(this,t)}function jq(t){pt.call(this,t)}function Gq(t){pt.call(this,t)}VN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},VN.prototype=Object.create(N.prototype),VN.prototype.constructor=VN,VN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},XN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},XN.prototype=Object.create(N.prototype),XN.prototype.constructor=XN,XN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO CourseAssignmentSubmissionAttachmentReplicate(casaPk, casaDestination)\n | SELECT DISTINCT CourseAssignmentSubmissionAttachment.casaUid AS casaPk,\n | ? AS casaDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 8388608 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | JOIN ClazzAssignment\n | ON ClazzAssignment.caClazzUid = Clazz.clazzUid \n | JOIN CourseAssignmentSubmission\n | ON CourseAssignmentSubmission.casAssignmentUid = ClazzAssignment.caUid\n | JOIN CourseAssignmentSubmissionAttachment\n | ON CourseAssignmentSubmissionAttachment.casaSubmissionUid = CourseAssignmentSubmission.casUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND CourseAssignmentSubmissionAttachment.casaTimestamp != COALESCE(\n | (SELECT casaVersionId\n | FROM CourseAssignmentSubmissionAttachmentReplicate\n | WHERE casaPk = CourseAssignmentSubmissionAttachment.casaUid\n | AND casaDestination = ?), 0) \n | /*psql ON CONFLICT(casaPk, casaDestination) DO UPDATE\n | SET casaPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO CourseAssignmentSubmissionAttachmentReplicate(casaPk, casaDestination)\n | SELECT DISTINCT CourseAssignmentSubmissionAttachment.casaUid AS casaPk,\n | ? AS casaDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 8388608 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | JOIN ClazzAssignment\n | ON ClazzAssignment.caClazzUid = Clazz.clazzUid \n | JOIN CourseAssignmentSubmission\n | ON CourseAssignmentSubmission.casAssignmentUid = ClazzAssignment.caUid\n | JOIN CourseAssignmentSubmissionAttachment\n | ON CourseAssignmentSubmissionAttachment.casaSubmissionUid = CourseAssignmentSubmission.casUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND CourseAssignmentSubmissionAttachment.casaTimestamp != COALESCE(\n | (SELECT casaVersionId\n | FROM CourseAssignmentSubmissionAttachmentReplicate\n | WHERE casaPk = CourseAssignmentSubmissionAttachment.casaUid\n | AND casaDestination = ?), 0) \n | ON CONFLICT(casaPk, casaDestination) DO UPDATE\n | SET casaPending = true\n | \n | \n |")),KN(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},BN.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new XN(this,t,e);return n?i:i.doResume(null)},JN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},JN.prototype=Object.create(N.prototype),JN.prototype.constructor=JN,JN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},QN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},QN.prototype=Object.create(N.prototype),QN.prototype.constructor=QN,QN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO CourseAssignmentSubmissionAttachmentReplicate(casaPk, casaDestination)\n | SELECT DISTINCT CourseAssignmentSubmissionAttachment.casaUid AS casaPk,\n | UserSession.usClientNodeId AS casaDestination\n | FROM ChangeLog\n | JOIN CourseAssignmentSubmissionAttachment\n | ON ChangeLog.chTableId = 90\n | AND ChangeLog.chEntityPk = CourseAssignmentSubmissionAttachment.casaUid\n | JOIN CourseAssignmentSubmission\n | ON CourseAssignmentSubmissionAttachment.casaSubmissionUid = CourseAssignmentSubmission.casUid \n | JOIN ClazzAssignment\n | ON CourseAssignmentSubmission.casAssignmentUid = ClazzAssignment.caUid\n | JOIN Clazz\n | ON Clazz.clazzUid = ClazzAssignment.caClazzUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 8388608\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND CourseAssignmentSubmissionAttachment.casaTimestamp != COALESCE(\n | (SELECT casaVersionId\n | FROM CourseAssignmentSubmissionAttachmentReplicate\n | WHERE casaPk = CourseAssignmentSubmissionAttachment.casaUid\n | AND casaDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(casaPk, casaDestination) DO UPDATE\n | SET casaPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO CourseAssignmentSubmissionAttachmentReplicate(casaPk, casaDestination)\n | SELECT DISTINCT CourseAssignmentSubmissionAttachment.casaUid AS casaPk,\n | UserSession.usClientNodeId AS casaDestination\n | FROM ChangeLog\n | JOIN CourseAssignmentSubmissionAttachment\n | ON ChangeLog.chTableId = 90\n | AND ChangeLog.chEntityPk = CourseAssignmentSubmissionAttachment.casaUid\n | JOIN CourseAssignmentSubmission\n | ON CourseAssignmentSubmissionAttachment.casaSubmissionUid = CourseAssignmentSubmission.casUid \n | JOIN ClazzAssignment\n | ON CourseAssignmentSubmission.casAssignmentUid = ClazzAssignment.caUid\n | JOIN Clazz\n | ON Clazz.clazzUid = ClazzAssignment.caClazzUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 8388608\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND CourseAssignmentSubmissionAttachment.casaTimestamp != COALESCE(\n | (SELECT casaVersionId\n | FROM CourseAssignmentSubmissionAttachmentReplicate\n | WHERE casaPk = CourseAssignmentSubmissionAttachment.casaUid\n | AND casaDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(casaPk, casaDestination) DO UPDATE\n | SET casaPending = true\n | \n | \n |")),YN,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},BN.prototype.replicateOnChange=function(t,e){var n=new QN(this,t);return e?n:n.doResume(null)},ZN.prototype.makeSql_6taknv$=function(t){return"INSERT INTO CourseAssignmentSubmissionAttachment (casaUid, casaSubmissionUid, casaMimeType, casaFileName, casaUri, casaMd5, casaSize, casaTimestamp) VALUES(?, ?, ?, ?, ?, ?, ?, ?)"},ZN.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.casaUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.casaUid),t.setLong_6svq3l$(2,e.casaSubmissionUid),t.setString_vqvrqt$(3,e.casaMimeType),t.setString_vqvrqt$(4,e.casaFileName),t.setString_vqvrqt$(5,e.casaUri),t.setString_vqvrqt$(6,e.casaMd5),t.setInt_vux9f0$(7,e.casaSize),t.setLong_6svq3l$(8,e.casaTimestamp)},ZN.$metadata$={kind:c,interfaces:[pt]},BN.$metadata$={kind:c,simpleName:"CourseAssignmentSubmissionAttachmentDao_JdbcKt",interfaces:[FN]},eT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},eT.prototype=Object.create(N.prototype),eT.prototype.constructor=eT,eT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tT.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new eT(this,t,e);return n?i:i.doResume(null)},nT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},nT.prototype=Object.create(N.prototype),nT.prototype.constructor=nT,nT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tT.prototype.replicateOnChange=function(t,e){var n=new nT(this,t);return e?n:n.doResume(null)},iT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},iT.prototype=Object.create(N.prototype),iT.prototype.constructor=iT,iT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$tmp$=this.local$entityList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$tmp$.hasNext()){this.state_0=4;continue}var t=this.local$tmp$.next();if(this.state_0=3,this.result_0=bt(this.$this._db_0,new k6(t),this),this.result_0===C)return C;continue;case 3:this.state_0=2;continue;case 4:this.local$_pkManager=_t(w(this.$this._db_0)),this.local$_generatedPks=F(),this.local$$receiver=this.local$entityList.iterator(),this.state_0=5;continue;case 5:if(!this.local$$receiver.hasNext()){this.state_0=8;continue}if(this.local$element=this.local$$receiver.next(),O(this.local$element.casaUid,X)){if(this.state_0=6,this.result_0=this.local$_pkManager.nextIdAsync_za3lpa$(90,this),this.result_0===C)return C;continue}this.state_0=7;continue;case 6:var e=this.result_0;this.local$element.casaUid=e,this.local$_generatedPks.add_11rb$(e),this.state_0=7;continue;case 7:this.local$element.casaTimestamp=J(),this.state_0=5;continue;case 8:if(this.state_0=9,this.result_0=this.$this._dao_0.insertListAsync_cyz50y$(this.local$entityList,this),this.result_0===C)return C;continue;case 9:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tT.prototype.insertListAsync_cyz50y$=function(t,e,n){var i=new iT(this,t,e);return n?i:i.doResume(null)},tT.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},oT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},oT.prototype=Object.create(N.prototype),oT.prototype.constructor=oT,oT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=bt(this.$this._db_0,new k6(this.local$entity),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:var t=_t(w(this.$this._db_0));if(O(this.local$entity.casaUid,X)){if(this.state_0=3,this.result_0=t.nextIdAsync_za3lpa$(90,this),this.result_0===C)return C;continue}this.state_0=4;continue;case 3:var e=this.result_0;this.local$entity.casaUid=e,this.state_0=4;continue;case 4:if(this.local$entity.casaTimestamp=J(),this.state_0=5,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 5:return this.local$entity.casaUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tT.prototype.insertAsync=function(t,e,n){var i=new oT(this,t,e);return n?i:i.doResume(null)},tT.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},tT.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},tT.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},tT.$metadata$={kind:c,simpleName:"CourseAssignmentSubmissionAttachmentDao_ReplicateWrapper",interfaces:[FN]},sT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},sT.prototype=Object.create(N.prototype),sT.prototype.constructor=sT,sT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},rT.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new sT(this,t,e);return n?i:i.doResume(null)},aT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},aT.prototype=Object.create(N.prototype),aT.prototype.constructor=aT,aT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},rT.prototype.replicateOnChange=function(t,e){var n=new aT(this,t);return e?n:n.doResume(null)},cT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},cT.prototype=Object.create(N.prototype),cT.prototype.constructor=cT,cT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertListAsync_cyz50y$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},rT.prototype.insertListAsync_cyz50y$=function(t,e,n){var i=new cT(this,t,e);return n?i:i.doResume(null)},rT.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},lT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},lT.prototype=Object.create(N.prototype),lT.prototype.constructor=lT,lT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},rT.prototype.insertAsync=function(t,e,n){var i=new lT(this,t,e);return n?i:i.doResume(null)},rT.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},rT.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},rT.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},rT.$metadata$={kind:c,simpleName:"CourseAssignmentSubmissionAttachmentDao_Repo",interfaces:[FN]},uT.$metadata$={kind:c,simpleName:"CourseAssignmentSubmissionDao",interfaces:[X6]},dT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},dT.prototype=Object.create(N.prototype),dT.prototype.constructor=dT,dT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterCourseAssignmentSubmission_.insertListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},hT.prototype.insertListAsync_6g2169$=function(t,e,n){var i=new dT(this,t,e);return n?i:i.doResume(null)},hT.prototype.insert_11rb$=function(t){return this._insertAdapterCourseAssignmentSubmission_.insertAndReturnId_11rb$(t)},pT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},pT.prototype=Object.create(N.prototype),pT.prototype.constructor=pT,pT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterCourseAssignmentSubmission_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},hT.prototype.insertAsync=function(t,e,n){var i=new pT(this,t,e);return n?i:i.doResume(null)},hT.prototype.insertList_4ezy5m$=function(t){this._insertAdapterCourseAssignmentSubmission_.insertList_4ezy5m$(t)},hT.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE CourseAssignmentSubmission SET casAssignmentUid = ?, casSubmitterUid = ?, casSubmitterPersonUid = ?, casText = ?, casType = ?, casTimestamp = ? WHERE casUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.casAssignmentUid),t.setLong_6svq3l$(2,i.casSubmitterUid),t.setLong_6svq3l$(3,i.casSubmitterPersonUid),t.setString_vqvrqt$(4,i.casText),t.setInt_vux9f0$(5,i.casType),t.setLong_6svq3l$(6,i.casTimestamp),t.setLong_6svq3l$(7,i.casUid),t.executeUpdate()}return t.getConnection().commit(),V}))},hT.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE CourseAssignmentSubmission SET casAssignmentUid = ?, casSubmitterUid = ?, casSubmitterPersonUid = ?, casText = ?, casType = ?, casTimestamp = ? WHERE casUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.casAssignmentUid),t.setLong_6svq3l$(2,e.casSubmitterUid),t.setLong_6svq3l$(3,e.casSubmitterPersonUid),t.setString_vqvrqt$(4,e.casText),t.setInt_vux9f0$(5,e.casType),t.setLong_6svq3l$(6,e.casTimestamp),t.setLong_6svq3l$(7,e.casUid),t.executeUpdate()}))},_T.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_T.prototype=Object.create(N.prototype),_T.prototype.constructor=_T,_T.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},fT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fT.prototype=Object.create(N.prototype),fT.prototype.constructor=fT,fT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO CourseAssignmentSubmissionReplicate(casPk, casDestination)\n | SELECT DISTINCT CourseAssignmentSubmission.casUid AS casPk,\n | ? AS casDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 8388608 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | JOIN ClazzAssignment\n | ON ClazzAssignment.caClazzUid = Clazz.clazzUid \n | JOIN CourseAssignmentSubmission\n | ON CourseAssignmentSubmission.casAssignmentUid = ClazzAssignment.caUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND CourseAssignmentSubmission.casTimestamp != COALESCE(\n | (SELECT casVersionId\n | FROM CourseAssignmentSubmissionReplicate\n | WHERE casPk = CourseAssignmentSubmission.casUid\n | AND casDestination = ?), 0) \n | /*psql ON CONFLICT(casPk, casDestination) DO UPDATE\n | SET casPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO CourseAssignmentSubmissionReplicate(casPk, casDestination)\n | SELECT DISTINCT CourseAssignmentSubmission.casUid AS casPk,\n | ? AS casDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 8388608 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | JOIN ClazzAssignment\n | ON ClazzAssignment.caClazzUid = Clazz.clazzUid \n | JOIN CourseAssignmentSubmission\n | ON CourseAssignmentSubmission.casAssignmentUid = ClazzAssignment.caUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND CourseAssignmentSubmission.casTimestamp != COALESCE(\n | (SELECT casVersionId\n | FROM CourseAssignmentSubmissionReplicate\n | WHERE casPk = CourseAssignmentSubmission.casUid\n | AND casDestination = ?), 0) \n | ON CONFLICT(casPk, casDestination) DO UPDATE\n | SET casPending = true\n | \n | \n |")),mT(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},hT.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new fT(this,t,e);return n?i:i.doResume(null)},gT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},gT.prototype=Object.create(N.prototype),gT.prototype.constructor=gT,gT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ET.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ET.prototype=Object.create(N.prototype),ET.prototype.constructor=ET,ET.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO CourseAssignmentSubmissionReplicate(casPk, casDestination)\n | SELECT DISTINCT CourseAssignmentSubmission.casUid AS casPk,\n | UserSession.usClientNodeId AS casDestination\n | FROM ChangeLog\n | JOIN CourseAssignmentSubmission\n | ON ChangeLog.chTableId = 522\n | AND ChangeLog.chEntityPk = CourseAssignmentSubmission.casUid\n | JOIN ClazzAssignment\n | ON CourseAssignmentSubmission.casAssignmentUid = ClazzAssignment.caUid\n | JOIN Clazz\n | ON Clazz.clazzUid = ClazzAssignment.caClazzUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 8388608\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND CourseAssignmentSubmission.casTimestamp != COALESCE(\n | (SELECT casVersionId\n | FROM CourseAssignmentSubmissionReplicate\n | WHERE casPk = CourseAssignmentSubmission.casUid\n | AND casDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(casPk, casDestination) DO UPDATE\n | SET casPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO CourseAssignmentSubmissionReplicate(casPk, casDestination)\n | SELECT DISTINCT CourseAssignmentSubmission.casUid AS casPk,\n | UserSession.usClientNodeId AS casDestination\n | FROM ChangeLog\n | JOIN CourseAssignmentSubmission\n | ON ChangeLog.chTableId = 522\n | AND ChangeLog.chEntityPk = CourseAssignmentSubmission.casUid\n | JOIN ClazzAssignment\n | ON CourseAssignmentSubmission.casAssignmentUid = ClazzAssignment.caUid\n | JOIN Clazz\n | ON Clazz.clazzUid = ClazzAssignment.caClazzUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 8388608\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND CourseAssignmentSubmission.casTimestamp != COALESCE(\n | (SELECT casVersionId\n | FROM CourseAssignmentSubmissionReplicate\n | WHERE casPk = CourseAssignmentSubmission.casUid\n | AND casDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(casPk, casDestination) DO UPDATE\n | SET casPending = true\n | \n | \n |")),$T,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},hT.prototype.replicateOnChange=function(t,e){var n=new ET(this,t);return e?n:n.doResume(null)},ST.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ST.prototype=Object.create(N.prototype),ST.prototype.constructor=ST,ST.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$assignmentUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$submitterUid),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(4,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,bT);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},CT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},CT.prototype=Object.create(N.prototype),CT.prototype.constructor=CT,CT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$CourseAssignmentSubmissionDao_JdbcKt._db,new st(S("\n |SELECT * FROM (\n | SELECT * \n | FROM CourseAssignmentSubmission\n | \n | LEFT JOIN CourseAssignmentSubmissionAttachment\n | ON CourseAssignmentSubmissionAttachment.casaSubmissionUid = CourseAssignmentSubmission.casUid\n | \n | WHERE casAssignmentUid = ?\n | AND casSubmitterUid = ?\n | ORDER BY casTimestamp DESC\n | ) LIMIT ? OFFSET ?\n ")),vT(this.local$closure$assignmentUid,this.local$closure$submitterUid,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yT.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$CourseAssignmentSubmissionDao_JdbcKt._db,p(["CourseAssignmentSubmission","CourseAssignmentSubmissionAttachment"]),(n=this.this$CourseAssignmentSubmissionDao_JdbcKt,i=this.closure$assignmentUid,o=this.closure$submitterUid,r=e,s=t,function(t,e){var a=new CT(n,i,o,r,s,t);return e?a:a.doResume(null)}));var n,i,o,r,s},TT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},TT.prototype=Object.create(N.prototype),TT.prototype.constructor=TT,TT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$assignmentUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$submitterUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,NT);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},zT.prototype=Object.create(N.prototype),zT.prototype.constructor=zT,zT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$CourseAssignmentSubmissionDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (\n | SELECT * \n | FROM CourseAssignmentSubmission\n | \n | LEFT JOIN CourseAssignmentSubmissionAttachment\n | ON CourseAssignmentSubmissionAttachment.casaSubmissionUid = CourseAssignmentSubmission.casUid\n | \n | WHERE casAssignmentUid = ?\n | AND casSubmitterUid = ?\n | ORDER BY casTimestamp DESC\n | ) \n ")),LT(this.local$closure$assignmentUid,this.local$closure$submitterUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yT.prototype.getLength=function(){return new ft(this.this$CourseAssignmentSubmissionDao_JdbcKt._db,p(["CourseAssignmentSubmission","CourseAssignmentSubmissionAttachment"]),(t=this.this$CourseAssignmentSubmissionDao_JdbcKt,e=this.closure$assignmentUid,n=this.closure$submitterUid,function(i,o){var r=new zT(t,e,n,i);return o?r:r.doResume(null)}));var t,e,n},yT.$metadata$={kind:c,interfaces:[gt]},hT.prototype.getAllSubmissionsFromSubmitter_3pjtqy$=function(t,e){return new yT(this,t,e)},OT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},OT.prototype=Object.create(N.prototype),OT.prototype.constructor=OT,OT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$assignmentUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$submitterUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,wT);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},hT.prototype.countFileSubmissionFromStudent_3pjtqy$=function(t,e,n){return ct(this._db,new st(S("\n |\n | SELECT Count(casUid)\n | FROM CourseAssignmentSubmission\n | WHERE casAssignmentUid = ?\n | AND casSubmitterUid = ?\n | AND casType = 2\n | \n ")),(i=t,o=e,function(t,e,n){var r=new OT(i,o,t,e);return n?r:r.doResume(null)}),n);var i,o},AT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},AT.prototype=Object.create(N.prototype),AT.prototype.constructor=AT,AT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$assignmentUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$submitterUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,RT);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},hT.prototype.countSubmissionsFromSubmitter_3pjtqy$=function(t,e,n){return ct(this._db,new st(S("\n |\n | SELECT Count(casUid)\n | FROM CourseAssignmentSubmission\n | WHERE casAssignmentUid = ?\n | AND casSubmitterUid = ?\n | \n ")),(i=t,o=e,function(t,e,n){var r=new AT(i,o,t,e);return n?r:r.doResume(null)}),n);var i,o},IT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},IT.prototype=Object.create(N.prototype),IT.prototype.constructor=IT,IT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$assignmentUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$submitterUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$assignmentUid),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$submitterUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,xT);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},DT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},DT.prototype=Object.create(N.prototype),DT.prototype.constructor=DT,DT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$CourseAssignmentSubmissionDao_JdbcKt._db,new st(S("\n |\n | SELECT COALESCE((\n | SELECT (CASE WHEN CourseAssignmentMark.camAssignmentUid IS NOT NULL \n | THEN 2\n | ELSE 1 \n | END) AS status\n | FROM CourseAssignmentSubmission\n | \n | LEFT JOIN CourseAssignmentMark\n | ON CourseAssignmentMark.camAssignmentUid = ?\n | AND CourseAssignmentMark.camSubmitterUid = ?\n | \n | WHERE CourseAssignmentSubmission.casAssignmentUid = ?\n | AND CourseAssignmentSubmission.casSubmitterUid = ?\n | LIMIT 1\n | ),0) AS Status\n | \n ")),UT(this.local$closure$assignmentUid,this.local$closure$submitterUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},hT.prototype.getStatusOfAssignmentForSubmitter_3pjtqy$=function(t,e){return new ft(this._db,p(["CourseAssignmentSubmission","CourseAssignmentMark"]),(n=this,i=t,o=e,function(t,e){var r=new DT(n,i,o,t);return e?r:r.doResume(null)}));var n,i,o},MT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},MT.prototype=Object.create(N.prototype),MT.prototype.constructor=MT,MT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$assignmentUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$submitterUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,PT);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},hT.prototype.findLastSubmissionFromStudent_3pjtqy$=function(t,e,n){return ct(this._db,new st(S("\n |\n | SELECT * \n | FROM CourseAssignmentSubmission\n | WHERE CourseAssignmentSubmission.casAssignmentUid = ?\n | AND CourseAssignmentSubmission.casSubmitterUid = ?\n | ORDER BY casTimestamp DESC\n | LIMIT 1\n | \n ")),(i=e,o=t,function(t,e,n){var r=new MT(i,o,t,e);return n?r:r.doResume(null)}),n);var i,o},jT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},jT.prototype=Object.create(N.prototype),jT.prototype.constructor=jT,jT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$assignmentUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,kT);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},qT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},qT.prototype=Object.create(N.prototype),qT.prototype.constructor=qT,qT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$CourseAssignmentSubmissionDao_JdbcKt._db,new st(S("\n |\n | SELECT NOT EXISTS(SELECT 1\n | FROM CourseAssignmentSubmission\n | WHERE CourseAssignmentSubmission.casAssignmentUid = ?\n | LIMIT 1)\n | \n ")),GT(this.local$closure$assignmentUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},hT.prototype.checkNoSubmissionsMade_s8cxhz$=function(t){return new ft(this._db,Et("CourseAssignmentSubmission"),(e=this,n=t,function(t,i){var o=new qT(e,n,t);return i?o:o.doResume(null)}));var e,n},FT.prototype.makeSql_6taknv$=function(t){return"INSERT INTO CourseAssignmentSubmission (casUid, casAssignmentUid, casSubmitterUid, casSubmitterPersonUid, casText, casType, casTimestamp) VALUES(?, ?, ?, ?, ?, ?, ?)"},FT.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.casUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.casUid),t.setLong_6svq3l$(2,e.casAssignmentUid),t.setLong_6svq3l$(3,e.casSubmitterUid),t.setLong_6svq3l$(4,e.casSubmitterPersonUid),t.setString_vqvrqt$(5,e.casText),t.setInt_vux9f0$(6,e.casType),t.setLong_6svq3l$(7,e.casTimestamp)},FT.$metadata$={kind:c,interfaces:[pt]},hT.$metadata$={kind:c,simpleName:"CourseAssignmentSubmissionDao_JdbcKt",interfaces:[uT]},WT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},WT.prototype=Object.create(N.prototype),WT.prototype.constructor=WT,WT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},BT.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new WT(this,t,e);return n?i:i.doResume(null)},HT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},HT.prototype=Object.create(N.prototype),HT.prototype.constructor=HT,HT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},BT.prototype.replicateOnChange=function(t,e){var n=new HT(this,t);return e?n:n.doResume(null)},VT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},VT.prototype=Object.create(N.prototype),VT.prototype.constructor=VT,VT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_pkManager=_t(w(this.$this._db_0)),this.local$_generatedPks=F(),this.local$$receiver=this.local$entityList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$$receiver.hasNext()){this.state_0=5;continue}if(this.local$element=this.local$$receiver.next(),O(this.local$element.casUid,X)){if(this.state_0=3,this.result_0=this.local$_pkManager.nextIdAsync_za3lpa$(522,this),this.result_0===C)return C;continue}this.state_0=4;continue;case 3:var t=this.result_0;this.local$element.casUid=t,this.local$_generatedPks.add_11rb$(t),this.state_0=4;continue;case 4:this.local$element.casTimestamp=J(),this.state_0=2;continue;case 5:if(this.state_0=6,this.result_0=this.$this._dao_0.insertListAsync_6g2169$(this.local$entityList,this),this.result_0===C)return C;continue;case 6:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},BT.prototype.insertListAsync_6g2169$=function(t,e,n){var i=new VT(this,t,e);return n?i:i.doResume(null)},BT.prototype.getAllSubmissionsFromSubmitter_3pjtqy$=function(t,e){return this._dao_0.getAllSubmissionsFromSubmitter_3pjtqy$(t,e)},BT.prototype.countFileSubmissionFromStudent_3pjtqy$=function(t,e,n){return this._dao_0.countFileSubmissionFromStudent_3pjtqy$(t,e,n)},BT.prototype.countSubmissionsFromSubmitter_3pjtqy$=function(t,e,n){return this._dao_0.countSubmissionsFromSubmitter_3pjtqy$(t,e,n)},BT.prototype.getStatusOfAssignmentForSubmitter_3pjtqy$=function(t,e){return this._dao_0.getStatusOfAssignmentForSubmitter_3pjtqy$(t,e)},BT.prototype.findLastSubmissionFromStudent_3pjtqy$=function(t,e,n){return this._dao_0.findLastSubmissionFromStudent_3pjtqy$(t,e,n)},BT.prototype.checkNoSubmissionsMade_s8cxhz$=function(t){return this._dao_0.checkNoSubmissionsMade_s8cxhz$(t)},BT.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},KT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},KT.prototype=Object.create(N.prototype),KT.prototype.constructor=KT,KT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.casUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(522,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.casUid=e,this.state_0=3;continue;case 3:if(this.local$entity.casTimestamp=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.casUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},BT.prototype.insertAsync=function(t,e,n){var i=new KT(this,t,e);return n?i:i.doResume(null)},BT.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},BT.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},BT.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},BT.$metadata$={kind:c,simpleName:"CourseAssignmentSubmissionDao_ReplicateWrapper",interfaces:[uT]},JT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},JT.prototype=Object.create(N.prototype),JT.prototype.constructor=JT,JT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},XT.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new JT(this,t,e);return n?i:i.doResume(null)},YT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},YT.prototype=Object.create(N.prototype),YT.prototype.constructor=YT,YT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},XT.prototype.replicateOnChange=function(t,e){var n=new YT(this,t);return e?n:n.doResume(null)},QT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},QT.prototype=Object.create(N.prototype),QT.prototype.constructor=QT,QT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertListAsync_6g2169$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},XT.prototype.insertListAsync_6g2169$=function(t,e,n){var i=new QT(this,t,e);return n?i:i.doResume(null)},XT.prototype.getAllSubmissionsFromSubmitter_3pjtqy$=function(t,e){return this._dao.getAllSubmissionsFromSubmitter_3pjtqy$(t,e)},ZT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ZT.prototype=Object.create(N.prototype),ZT.prototype.constructor=ZT,ZT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.countFileSubmissionFromStudent_3pjtqy$(this.local$assignmentUid,this.local$submitterUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},XT.prototype.countFileSubmissionFromStudent_3pjtqy$=function(t,e,n,i){var o=new ZT(this,t,e,n);return i?o:o.doResume(null)},tL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},tL.prototype=Object.create(N.prototype),tL.prototype.constructor=tL,tL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.countSubmissionsFromSubmitter_3pjtqy$(this.local$assignmentUid,this.local$submitterUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},XT.prototype.countSubmissionsFromSubmitter_3pjtqy$=function(t,e,n,i){var o=new tL(this,t,e,n);return i?o:o.doResume(null)},XT.prototype.getStatusOfAssignmentForSubmitter_3pjtqy$=function(t,e){return this._dao.getStatusOfAssignmentForSubmitter_3pjtqy$(t,e)},eL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},eL.prototype=Object.create(N.prototype),eL.prototype.constructor=eL,eL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findLastSubmissionFromStudent_3pjtqy$(this.local$submitterUid,this.local$assignmentUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},XT.prototype.findLastSubmissionFromStudent_3pjtqy$=function(t,e,n,i){var o=new eL(this,t,e,n);return i?o:o.doResume(null)},XT.prototype.checkNoSubmissionsMade_s8cxhz$=function(t){return this._dao.checkNoSubmissionsMade_s8cxhz$(t)},XT.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},nL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},nL.prototype=Object.create(N.prototype),nL.prototype.constructor=nL,nL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},XT.prototype.insertAsync=function(t,e,n){var i=new nL(this,t,e);return n?i:i.doResume(null)},XT.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},XT.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},XT.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},XT.$metadata$={kind:c,simpleName:"CourseAssignmentSubmissionDao_Repo",interfaces:[uT]},iL.$metadata$={kind:c,simpleName:"CourseBlockDao",interfaces:[t4,X6]},rL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},rL.prototype=Object.create(N.prototype),rL.prototype.constructor=rL,rL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterCourseBlock_upsert.insertListAsync_4ezy5m$(this.local$list,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oL.prototype.replaceListAsync_u9gaf9$=function(t,e,n){var i=new rL(this,t,e);return n?i:i.doResume(null)},oL.prototype.insert_11rb$=function(t){return this._insertAdapterCourseBlock_.insertAndReturnId_11rb$(t)},sL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},sL.prototype=Object.create(N.prototype),sL.prototype.constructor=sL,sL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterCourseBlock_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oL.prototype.insertAsync=function(t,e,n){var i=new sL(this,t,e);return n?i:i.doResume(null)},oL.prototype.insertList_4ezy5m$=function(t){this._insertAdapterCourseBlock_.insertList_4ezy5m$(t)},aL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},aL.prototype=Object.create(N.prototype),aL.prototype.constructor=aL,aL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterCourseBlock_.insertListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oL.prototype.insertListAsync_4ezy5m$=function(t,e,n){var i=new aL(this,t,e);return n?i:i.doResume(null)},cL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},cL.prototype=Object.create(N.prototype),cL.prototype.constructor=cL,cL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setInt_vux9f0$(1,this.local$closure$entity.cbType),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$entity.cbIndentLevel),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$entity.cbModuleParentBlockUid),this.local$_stmt.setString_vqvrqt$(4,this.local$closure$entity.cbTitle),this.local$_stmt.setString_vqvrqt$(5,this.local$closure$entity.cbDescription),this.local$_stmt.setInt_vux9f0$(6,this.local$closure$entity.cbCompletionCriteria),this.local$_stmt.setLong_6svq3l$(7,this.local$closure$entity.cbHideUntilDate),this.local$_stmt.setLong_6svq3l$(8,this.local$closure$entity.cbDeadlineDate),this.local$_stmt.setInt_vux9f0$(9,this.local$closure$entity.cbLateSubmissionPenalty),this.local$_stmt.setLong_6svq3l$(10,this.local$closure$entity.cbGracePeriodDate),this.local$_stmt.setInt_vux9f0$(11,this.local$closure$entity.cbMaxPoints),this.local$_stmt.setInt_vux9f0$(12,this.local$closure$entity.cbMinPoints),this.local$_stmt.setInt_vux9f0$(13,this.local$closure$entity.cbIndex),this.local$_stmt.setLong_6svq3l$(14,this.local$closure$entity.cbClazzUid),this.local$_stmt.setBoolean_fzusl$(15,this.local$closure$entity.cbActive),this.local$_stmt.setBoolean_fzusl$(16,this.local$closure$entity.cbHidden),this.local$_stmt.setLong_6svq3l$(17,this.local$closure$entity.cbEntityUid),this.local$_stmt.setLong_6svq3l$(18,this.local$closure$entity.cbLct),this.local$_stmt.setLong_6svq3l$(19,this.local$closure$entity.cbUid),this.local$tmp$=this.local$closure$_result.v,this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$closure$_result.v=this.local$tmp$+this.result_0|0,V;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},uL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},uL.prototype=Object.create(N.prototype),uL.prototype.constructor=uL,uL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_result={v:0},this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE CourseBlock SET cbType = ?, cbIndentLevel = ?, cbModuleParentBlockUid = ?, cbTitle = ?, cbDescription = ?, cbCompletionCriteria = ?, cbHideUntilDate = ?, cbDeadlineDate = ?, cbLateSubmissionPenalty = ?, cbGracePeriodDate = ?, cbMaxPoints = ?, cbMinPoints = ?, cbIndex = ?, cbClazzUid = ?, cbActive = ?, cbHidden = ?, cbEntityUid = ?, cbLct = ? WHERE cbUid = ?",lL(this.local$entity,this.local$_result),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$_result.v;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oL.prototype.updateAsync_dk05ec$=function(t,e,n){var i=new uL(this,t,e);return n?i:i.doResume(null)},oL.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE CourseBlock SET cbType = ?, cbIndentLevel = ?, cbModuleParentBlockUid = ?, cbTitle = ?, cbDescription = ?, cbCompletionCriteria = ?, cbHideUntilDate = ?, cbDeadlineDate = ?, cbLateSubmissionPenalty = ?, cbGracePeriodDate = ?, cbMaxPoints = ?, cbMinPoints = ?, cbIndex = ?, cbClazzUid = ?, cbActive = ?, cbHidden = ?, cbEntityUid = ?, cbLct = ? WHERE cbUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setInt_vux9f0$(1,i.cbType),t.setInt_vux9f0$(2,i.cbIndentLevel),t.setLong_6svq3l$(3,i.cbModuleParentBlockUid),t.setString_vqvrqt$(4,i.cbTitle),t.setString_vqvrqt$(5,i.cbDescription),t.setInt_vux9f0$(6,i.cbCompletionCriteria),t.setLong_6svq3l$(7,i.cbHideUntilDate),t.setLong_6svq3l$(8,i.cbDeadlineDate),t.setInt_vux9f0$(9,i.cbLateSubmissionPenalty),t.setLong_6svq3l$(10,i.cbGracePeriodDate),t.setInt_vux9f0$(11,i.cbMaxPoints),t.setInt_vux9f0$(12,i.cbMinPoints),t.setInt_vux9f0$(13,i.cbIndex),t.setLong_6svq3l$(14,i.cbClazzUid),t.setBoolean_fzusl$(15,i.cbActive),t.setBoolean_fzusl$(16,i.cbHidden),t.setLong_6svq3l$(17,i.cbEntityUid),t.setLong_6svq3l$(18,i.cbLct),t.setLong_6svq3l$(19,i.cbUid),t.executeUpdate()}return t.getConnection().commit(),V}))},oL.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE CourseBlock SET cbType = ?, cbIndentLevel = ?, cbModuleParentBlockUid = ?, cbTitle = ?, cbDescription = ?, cbCompletionCriteria = ?, cbHideUntilDate = ?, cbDeadlineDate = ?, cbLateSubmissionPenalty = ?, cbGracePeriodDate = ?, cbMaxPoints = ?, cbMinPoints = ?, cbIndex = ?, cbClazzUid = ?, cbActive = ?, cbHidden = ?, cbEntityUid = ?, cbLct = ? WHERE cbUid = ?",(e=t,function(t){return t.setInt_vux9f0$(1,e.cbType),t.setInt_vux9f0$(2,e.cbIndentLevel),t.setLong_6svq3l$(3,e.cbModuleParentBlockUid),t.setString_vqvrqt$(4,e.cbTitle),t.setString_vqvrqt$(5,e.cbDescription),t.setInt_vux9f0$(6,e.cbCompletionCriteria),t.setLong_6svq3l$(7,e.cbHideUntilDate),t.setLong_6svq3l$(8,e.cbDeadlineDate),t.setInt_vux9f0$(9,e.cbLateSubmissionPenalty),t.setLong_6svq3l$(10,e.cbGracePeriodDate),t.setInt_vux9f0$(11,e.cbMaxPoints),t.setInt_vux9f0$(12,e.cbMinPoints),t.setInt_vux9f0$(13,e.cbIndex),t.setLong_6svq3l$(14,e.cbClazzUid),t.setBoolean_fzusl$(15,e.cbActive),t.setBoolean_fzusl$(16,e.cbHidden),t.setLong_6svq3l$(17,e.cbEntityUid),t.setLong_6svq3l$(18,e.cbLct),t.setLong_6svq3l$(19,e.cbUid),t.executeUpdate()}))},hL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},hL.prototype=Object.create(N.prototype),hL.prototype.constructor=hL,hL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_stmt.getConnection().setAutoCommit_6taknv$(!1),this.local$tmp$=this.local$closure$entityList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$tmp$.hasNext()){this.state_0=4;continue}var t=this.local$tmp$.next();if(this.local$_stmt.setInt_vux9f0$(1,t.cbType),this.local$_stmt.setInt_vux9f0$(2,t.cbIndentLevel),this.local$_stmt.setLong_6svq3l$(3,t.cbModuleParentBlockUid),this.local$_stmt.setString_vqvrqt$(4,t.cbTitle),this.local$_stmt.setString_vqvrqt$(5,t.cbDescription),this.local$_stmt.setInt_vux9f0$(6,t.cbCompletionCriteria),this.local$_stmt.setLong_6svq3l$(7,t.cbHideUntilDate),this.local$_stmt.setLong_6svq3l$(8,t.cbDeadlineDate),this.local$_stmt.setInt_vux9f0$(9,t.cbLateSubmissionPenalty),this.local$_stmt.setLong_6svq3l$(10,t.cbGracePeriodDate),this.local$_stmt.setInt_vux9f0$(11,t.cbMaxPoints),this.local$_stmt.setInt_vux9f0$(12,t.cbMinPoints),this.local$_stmt.setInt_vux9f0$(13,t.cbIndex),this.local$_stmt.setLong_6svq3l$(14,t.cbClazzUid),this.local$_stmt.setBoolean_fzusl$(15,t.cbActive),this.local$_stmt.setBoolean_fzusl$(16,t.cbHidden),this.local$_stmt.setLong_6svq3l$(17,t.cbEntityUid),this.local$_stmt.setLong_6svq3l$(18,t.cbLct),this.local$_stmt.setLong_6svq3l$(19,t.cbUid),this.state_0=3,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 3:this.state_0=2;continue;case 4:return this.local$_stmt.getConnection().commit(),V;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},pL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},pL.prototype=Object.create(N.prototype),pL.prototype.constructor=pL,pL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE CourseBlock SET cbType = ?, cbIndentLevel = ?, cbModuleParentBlockUid = ?, cbTitle = ?, cbDescription = ?, cbCompletionCriteria = ?, cbHideUntilDate = ?, cbDeadlineDate = ?, cbLateSubmissionPenalty = ?, cbGracePeriodDate = ?, cbMaxPoints = ?, cbMinPoints = ?, cbIndex = ?, cbClazzUid = ?, cbActive = ?, cbHidden = ?, cbEntityUid = ?, cbLct = ? WHERE cbUid = ?",dL(this.local$entityList),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oL.prototype.updateListAsync_4ezy5m$=function(t,e,n){var i=new pL(this,t,e);return n?i:i.doResume(null)},_L.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_L.prototype=Object.create(N.prototype),_L.prototype.constructor=_L,_L.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},fL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fL.prototype=Object.create(N.prototype),fL.prototype.constructor=fL,fL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO CourseBlockReplicate(cbPk, cbDestination)\n | SELECT DISTINCT CourseBlock.cbUid AS cbPk,\n | ? AS cbDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 2 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | JOIN CourseBlock\n | ON CourseBlock.cbClazzUid = Clazz.clazzUid \n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND CourseBlock.cbLct != COALESCE(\n | (SELECT cbVersionId\n | FROM CourseBlockReplicate\n | WHERE cbPk = CourseBlock.cbUid\n | AND cbDestination = ?), 0) \n | /*psql ON CONFLICT(cbPk, cbDestination) DO UPDATE\n | SET cbPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO CourseBlockReplicate(cbPk, cbDestination)\n | SELECT DISTINCT CourseBlock.cbUid AS cbPk,\n | ? AS cbDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 2 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | JOIN CourseBlock\n | ON CourseBlock.cbClazzUid = Clazz.clazzUid \n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND CourseBlock.cbLct != COALESCE(\n | (SELECT cbVersionId\n | FROM CourseBlockReplicate\n | WHERE cbPk = CourseBlock.cbUid\n | AND cbDestination = ?), 0) \n | ON CONFLICT(cbPk, cbDestination) DO UPDATE\n | SET cbPending = true\n | \n | \n |")),mL(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oL.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new fL(this,t,e);return n?i:i.doResume(null)},gL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},gL.prototype=Object.create(N.prototype),gL.prototype.constructor=gL,gL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},EL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},EL.prototype=Object.create(N.prototype),EL.prototype.constructor=EL,EL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO CourseBlockReplicate(cbPk, cbDestination)\n | SELECT DISTINCT CourseBlock.cbUid AS cbPk,\n | UserSession.usClientNodeId AS cbDestination\n | FROM ChangeLog\n | JOIN CourseBlock\n | ON ChangeLog.chTableId = 124\n | AND ChangeLog.chEntityPk = CourseBlock.cbUid\n | JOIN Clazz\n | ON Clazz.clazzUid = CourseBlock.cbClazzUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 2\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND CourseBlock.cbLct != COALESCE(\n | (SELECT cbVersionId\n | FROM CourseBlockReplicate\n | WHERE cbPk = CourseBlock.cbUid\n | AND cbDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(cbPk, cbDestination) DO UPDATE\n | SET cbPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO CourseBlockReplicate(cbPk, cbDestination)\n | SELECT DISTINCT CourseBlock.cbUid AS cbPk,\n | UserSession.usClientNodeId AS cbDestination\n | FROM ChangeLog\n | JOIN CourseBlock\n | ON ChangeLog.chTableId = 124\n | AND ChangeLog.chEntityPk = CourseBlock.cbUid\n | JOIN Clazz\n | ON Clazz.clazzUid = CourseBlock.cbClazzUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 2\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND CourseBlock.cbLct != COALESCE(\n | (SELECT cbVersionId\n | FROM CourseBlockReplicate\n | WHERE cbPk = CourseBlock.cbUid\n | AND cbDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(cbPk, cbDestination) DO UPDATE\n | SET cbPending = true\n | \n | \n |")),$L,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oL.prototype.replicateOnChange=function(t,e){var n=new EL(this,t);return e?n:n.doResume(null)},bL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},bL.prototype=Object.create(N.prototype),bL.prototype.constructor=bL,bL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,yL);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oL.prototype.findByUidAsync_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT * FROM CourseBlock WHERE cbUid = ?"),(n=t,function(t,e,i){var o=new bL(n,t,e);return i?o:o.doResume(null)}),e);var n},vL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},vL.prototype=Object.create(N.prototype),vL.prototype.constructor=vL,vL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$clazzUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,SL);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oL.prototype.findAllCourseBlockByClazzUidAsync_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT * \n | FROM CourseBlock \n | LEFT JOIN ClazzAssignment as assignment\n | ON assignment.caUid = CourseBlock.cbEntityUid\n | AND CourseBlock.cbType = 103\n | LEFT JOIN CourseDiscussion as courseDiscussion\n | ON CourseDiscussion.courseDiscussionUid = CourseBlock.cbEntityUid\n | AND CourseBlock.cbType = 105\n | LEFT JOIN ContentEntry as entry\n | ON entry.contentEntryUid = CourseBlock.cbEntityUid\n | AND CourseBlock.cbType = 104\n | \n | LEFT JOIN Language\n | ON Language.langUid = entry.primaryLanguageUid\n | AND CourseBlock.cbType = 104\n | \n | WHERE cbClazzUid = ?\n | AND cbActive\n | ORDER BY cbIndex\n | \n ")),(n=t,function(t,e,i){var o=new vL(n,t,e);return i?o:o.doResume(null)}),e);var n},TL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},TL.prototype=Object.create(N.prototype),TL.prototype.constructor=TL,TL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$clazzUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$clazzUid),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$clazzUid),this.local$_stmt.setLong_6svq3l$(5,this.local$closure$clazzUid),this.local$_stmt.setArray_wqp8hw$(6,yt(this.local$_stmt.getConnection(),"BIGINT",q(this.local$closure$collapseList))),this.local$_stmt.setLong_6svq3l$(7,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(8,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(9,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(10,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(11,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(12,this.local$closure$clazzUid),this.local$_stmt.setLong_6svq3l$(13,this.local$closure$currentTime),this.local$_stmt.setLong_6svq3l$(14,this.local$closure$currentTime),this.local$_stmt.setArray_wqp8hw$(15,yt(this.local$_stmt.getConnection(),"BIGINT",q(this.local$closure$collapseList))),this.local$_stmt.setInt_vux9f0$(16,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(17,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,NL);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},zL.prototype=Object.create(N.prototype),zL.prototype.constructor=zL,zL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$CourseBlockDao_JdbcKt._db,new st(S("\n |SELECT * FROM (\n | WITH CtePermissionCheck (hasPermission) \n | AS (SELECT EXISTS( \n | SELECT PrsGrpMbr.groupMemberPersonUid\n | FROM Clazz\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 549755813888\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | WHERE Clazz.clazzUid = ?\n | AND PrsGrpMbr.groupMemberPersonUid = ?)), \n | \n | \n | SubmitterList (submitterId, assignmentUid)\n | AS (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId,\n | ClazzAssignment.caUid AS assignmentUid\n | \n | FROM ClazzEnrolment\n | \n | JOIN Person \n | ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n | \n | JOIN ClazzAssignment\n | ON ClazzAssignment.caClazzUid = ?\n |\n | JOIN CourseBlock\n | ON CourseBlock.cbEntityUid = ClazzAssignment.caUid\n | AND CourseBlock.cbType = 103\n | \n | WHERE ClazzAssignment.caGroupUid = 0\n | AND clazzEnrolmentClazzUid = ?\n | AND clazzEnrolmentActive\n | AND clazzEnrolmentRole = 1000\n | AND CourseBlock.cbGracePeriodDate <= ClazzEnrolment.clazzEnrolmentDateLeft\n | AND ClazzEnrolment.clazzEnrolmentDateJoined <= CourseBlock.cbGracePeriodDate\n | GROUP BY submitterId, assignmentUid\n | UNION \n | SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n | ClazzAssignment.caUid AS assignmentUid\n | FROM CourseGroupMember\n | JOIN ClazzAssignment\n | ON ClazzAssignment.caClazzUid = ?\n | WHERE CourseGroupMember.cgmSetUid = ClazzAssignment.caGroupUid\n | AND ClazzAssignment.caGroupUid != 0\n | AND CourseGroupMember.cgmGroupNumber != 0\n | GROUP BY submitterId, assignmentUid\n | )\n | \n | \n |\n | SELECT CourseBlock.*, ClazzAssignment.*, ContentEntry.*, CourseDiscussion.*, ContentEntryParentChildJoin.*, \n | Container.*, CourseAssignmentMark.*, (CourseBlock.cbUid NOT IN (?)) AS expanded,\n | \n | COALESCE(StatementEntity.resultScoreMax,0) AS resultMax, \n | COALESCE(StatementEntity.resultScoreRaw,0) AS resultScore, \n | COALESCE(StatementEntity.resultScoreScaled,0) AS resultScaled, \n | COALESCE(StatementEntity.extensionProgress,0) AS progress, \n | COALESCE(StatementEntity.resultCompletion,'FALSE') AS contentComplete,\n | COALESCE(StatementEntity.resultSuccess, 0) AS success,\n | \n | COALESCE((CASE WHEN StatementEntity.resultCompletion \n | THEN 1 ELSE 0 END),0) AS totalCompletedContent,\n | \n | 0 AS assignmentContentWeight,\n | 1 as totalContent, \n | 0 as penalty,\n | \n | (SELECT hasPermission FROM CtePermissionCheck) AS hasMetricsPermission,\n | \n | \n | (SELECT COUNT(*) \n | FROM SubmitterList \n | WHERE SubmitterList.assignmentUid = ClazzAssignment.caUid) \n | AS totalStudents, \n | \n | 0 AS notSubmittedStudents,\n | \n | (CASE WHEN (SELECT hasPermission \n | FROM CtePermissionCheck)\n | THEN (SELECT COUNT(DISTINCT CourseAssignmentSubmission.casSubmitterUid) \n | FROM CourseAssignmentSubmission\n | LEFT JOIN CourseAssignmentMark\n | ON CourseAssignmentSubmission.casSubmitterUid = CourseAssignmentMark.camSubmitterUid\n | AND CourseAssignmentMark.camAssignmentUid = CourseAssignmentSubmission.casAssignmentUid\n | WHERE CourseAssignmentMark.camUid IS NULL\n | AND CourseAssignmentSubmission.casAssignmentUid = ClazzAssignment.caUid\n | AND CourseAssignmentSubmission.casSubmitterUid IN \n | (SELECT submitterId \n | FROM SubmitterList\n | WHERE SubmitterList.assignmentUid = ClazzAssignment.caUid)) \n | ELSE 0 END) AS submittedStudents, \n | \n | (CASE WHEN (SELECT hasPermission \n | FROM CtePermissionCheck) \n | THEN (SELECT COUNT(DISTINCT CourseAssignmentMark.camSubmitterUid) \n | FROM CourseAssignmentMark\n | \n | JOIN CourseAssignmentSubmission\n | ON CourseAssignmentSubmission.casSubmitterUid = CourseAssignmentMark.camSubmitterUid\n | AND CourseAssignmentSubmission.casAssignmentUid = CourseAssignmentMark.camAssignmentUid\n | \n | WHERE CourseAssignmentMark.camAssignmentUid = ClazzAssignment.caUid \n | AND CourseAssignmentMark.camSubmitterUid IN (SELECT submitterId \n | FROM SubmitterList\n | WHERE SubmitterList.assignmentUid = ClazzAssignment.caUid))\n | ELSE 0 END) AS markedStudents,\n | \n | COALESCE((CASE WHEN CourseAssignmentMark.camUid IS NOT NULL \n | THEN 2 \n | WHEN CourseAssignmentSubmission.casUid IS NOT NULL \n | THEN 1 \n | ELSE 0 END), \n | 0) AS fileSubmissionStatus\n | \n | \n | FROM CourseBlock \n | \n | LEFT JOIN CourseBlock AS parentBlock\n | ON CourseBlock.cbModuleParentBlockUid = parentBlock.cbUid\n | AND CourseBlock.cbTYpe != 100\n | \n | LEFT JOIN ClazzAssignment\n | ON ClazzAssignment.caUid = CourseBlock.cbEntityUid\n | AND CourseBlock.cbType = 103\n | \n | LEFT JOIN ContentEntry\n | ON ContentEntry.contentEntryUid = CourseBlock.cbEntityUid\n | AND NOT ceInactive\n | AND CourseBlock.cbType = 104\n | \n | LEFT JOIN CourseDiscussion \n | ON CourseDiscussion.courseDiscussionUid = CourseBlock.cbEntityUid\n | AND CourseBlock.cbType = 105\n | \n | LEFT JOIN ContentEntryParentChildJoin \n | ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid\n | \n | LEFT JOIN Container \n | ON Container.containerUid = \n | (SELECT containerUid \n | FROM Container \n | WHERE containerContentEntryUid = ContentEntry.contentEntryUid \n | ORDER BY cntLastModified DESC LIMIT 1)\n | \n | LEFT JOIN StatementEntity\n |\t\t\t\t ON StatementEntity.statementUid = \n | (SELECT statementUid \n |\t\t\t\t\t\t\t FROM StatementEntity \n | WHERE statementContentEntryUid = ContentEntry.contentEntryUid \n |\t\t\t\t\t\t\t AND StatementEntity.statementPersonUid = ?\n |\t\t\t\t\t\t\t AND contentEntryRoot \n | ORDER BY resultScoreScaled DESC, \n | extensionProgress DESC, \n | resultSuccess DESC \n | LIMIT 1) \n | \n | LEFT JOIN CourseAssignmentSubmission\n | ON casUid = (SELECT casUid \n | FROM CourseAssignmentSubmission\n | WHERE casAssignmentUid = ClazzAssignment.caUid\n | AND casSubmitterUid = (SELECT (CASE WHEN ref.caGroupUid = 0 \n | THEN ? \n | WHEN CourseGroupMember.cgmUid IS NULL \n | THEN 0 \n | ELSE CourseGroupMember.cgmGroupNumber \n | END) as submitterUid\n | FROM ClazzAssignment AS ref\n | LEFT JOIN CourseGroupMember\n | ON cgmSetUid = ClazzAssignment.caGroupUid\n | AND cgmPersonUid = ?\n | WHERE ref.caUid = ClazzAssignment.caUid)\n | ORDER BY casTimestamp DESC\n | LIMIT 1)\n | \n | LEFT JOIN CourseAssignmentMark\n | ON camUid = (SELECT camUid \n | FROM CourseAssignmentMark\n | WHERE camAssignmentUid = ClazzAssignment.caUid\n | AND camSubmitterUid = (SELECT (CASE WHEN ref.caGroupUid = 0 \n | THEN ? \n | WHEN CourseGroupMember.cgmUid IS NULL \n | THEN 0 \n | ELSE CourseGroupMember.cgmGroupNumber \n | END) as submitterUid\n | FROM ClazzAssignment AS ref\n | LEFT JOIN CourseGroupMember\n | ON cgmSetUid = ClazzAssignment.caGroupUid\n | AND cgmPersonUid = ?\n | WHERE ref.caUid = ClazzAssignment.caUid)\n | ORDER BY camLct DESC\n | LIMIT 1) \n | WHERE CourseBlock.cbClazzUid = ?\n | AND CourseBlock.cbActive\n | AND NOT CourseBlock.cbHidden\n | AND ? > CourseBlock.cbHideUntilDate\n | AND ? > COALESCE(parentBlock.cbHideUntilDate,0)\n | AND CourseBlock.cbModuleParentBlockUid NOT IN (?)\n | ORDER BY CourseBlock.cbIndex\n | ) LIMIT ? OFFSET ?\n "),!0),LL(this.local$closure$clazzUid,this.local$closure$personUid,this.local$closure$collapseList,this.local$closure$currentTime,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},CL.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$CourseBlockDao_JdbcKt._db,p(["CourseBlock","ClazzAssignment","CourseDiscussion","ContentEntry","CourseAssignmentMark","StatementEntity","Container","ContentEntryParentChildJoin","PersonGroupMember","Clazz","ScopedGrant","ClazzEnrolment","CourseAssignmentSubmission","CourseGroupMember"]),(n=this.this$CourseBlockDao_JdbcKt,i=this.closure$clazzUid,o=this.closure$personUid,r=this.closure$collapseList,s=this.closure$currentTime,a=e,c=t,function(t,e){var l=new zL(n,i,o,r,s,a,c,t);return e?l:l.doResume(null)}));var n,i,o,r,s,a,c},OL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},OL.prototype=Object.create(N.prototype),OL.prototype.constructor=OL,OL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$clazzUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$clazzUid),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$clazzUid),this.local$_stmt.setLong_6svq3l$(5,this.local$closure$clazzUid),this.local$_stmt.setArray_wqp8hw$(6,yt(this.local$_stmt.getConnection(),"BIGINT",q(this.local$closure$collapseList))),this.local$_stmt.setLong_6svq3l$(7,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(8,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(9,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(10,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(11,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(12,this.local$closure$clazzUid),this.local$_stmt.setLong_6svq3l$(13,this.local$closure$currentTime),this.local$_stmt.setLong_6svq3l$(14,this.local$closure$currentTime),this.local$_stmt.setArray_wqp8hw$(15,yt(this.local$_stmt.getConnection(),"BIGINT",q(this.local$closure$collapseList))),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,wL);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},AL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},AL.prototype=Object.create(N.prototype),AL.prototype.constructor=AL,AL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$CourseBlockDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (\n | WITH CtePermissionCheck (hasPermission) \n | AS (SELECT EXISTS( \n | SELECT PrsGrpMbr.groupMemberPersonUid\n | FROM Clazz\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 549755813888\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | WHERE Clazz.clazzUid = ?\n | AND PrsGrpMbr.groupMemberPersonUid = ?)), \n | \n | \n | SubmitterList (submitterId, assignmentUid)\n | AS (SELECT DISTINCT ClazzEnrolment.clazzEnrolmentPersonUid AS submitterId,\n | ClazzAssignment.caUid AS assignmentUid\n | \n | FROM ClazzEnrolment\n | \n | JOIN Person \n | ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n | \n | JOIN ClazzAssignment\n | ON ClazzAssignment.caClazzUid = ?\n |\n | JOIN CourseBlock\n | ON CourseBlock.cbEntityUid = ClazzAssignment.caUid\n | AND CourseBlock.cbType = 103\n | \n | WHERE ClazzAssignment.caGroupUid = 0\n | AND clazzEnrolmentClazzUid = ?\n | AND clazzEnrolmentActive\n | AND clazzEnrolmentRole = 1000\n | AND CourseBlock.cbGracePeriodDate <= ClazzEnrolment.clazzEnrolmentDateLeft\n | AND ClazzEnrolment.clazzEnrolmentDateJoined <= CourseBlock.cbGracePeriodDate\n | GROUP BY submitterId, assignmentUid\n | UNION \n | SELECT DISTINCT CourseGroupMember.cgmGroupNumber AS submitterId,\n | ClazzAssignment.caUid AS assignmentUid\n | FROM CourseGroupMember\n | JOIN ClazzAssignment\n | ON ClazzAssignment.caClazzUid = ?\n | WHERE CourseGroupMember.cgmSetUid = ClazzAssignment.caGroupUid\n | AND ClazzAssignment.caGroupUid != 0\n | AND CourseGroupMember.cgmGroupNumber != 0\n | GROUP BY submitterId, assignmentUid\n | )\n | \n | \n |\n | SELECT CourseBlock.*, ClazzAssignment.*, ContentEntry.*, CourseDiscussion.*, ContentEntryParentChildJoin.*, \n | Container.*, CourseAssignmentMark.*, (CourseBlock.cbUid NOT IN (?)) AS expanded,\n | \n | COALESCE(StatementEntity.resultScoreMax,0) AS resultMax, \n | COALESCE(StatementEntity.resultScoreRaw,0) AS resultScore, \n | COALESCE(StatementEntity.resultScoreScaled,0) AS resultScaled, \n | COALESCE(StatementEntity.extensionProgress,0) AS progress, \n | COALESCE(StatementEntity.resultCompletion,'FALSE') AS contentComplete,\n | COALESCE(StatementEntity.resultSuccess, 0) AS success,\n | \n | COALESCE((CASE WHEN StatementEntity.resultCompletion \n | THEN 1 ELSE 0 END),0) AS totalCompletedContent,\n | \n | 0 AS assignmentContentWeight,\n | 1 as totalContent, \n | 0 as penalty,\n | \n | (SELECT hasPermission FROM CtePermissionCheck) AS hasMetricsPermission,\n | \n | \n | (SELECT COUNT(*) \n | FROM SubmitterList \n | WHERE SubmitterList.assignmentUid = ClazzAssignment.caUid) \n | AS totalStudents, \n | \n | 0 AS notSubmittedStudents,\n | \n | (CASE WHEN (SELECT hasPermission \n | FROM CtePermissionCheck)\n | THEN (SELECT COUNT(DISTINCT CourseAssignmentSubmission.casSubmitterUid) \n | FROM CourseAssignmentSubmission\n | LEFT JOIN CourseAssignmentMark\n | ON CourseAssignmentSubmission.casSubmitterUid = CourseAssignmentMark.camSubmitterUid\n | AND CourseAssignmentMark.camAssignmentUid = CourseAssignmentSubmission.casAssignmentUid\n | WHERE CourseAssignmentMark.camUid IS NULL\n | AND CourseAssignmentSubmission.casAssignmentUid = ClazzAssignment.caUid\n | AND CourseAssignmentSubmission.casSubmitterUid IN \n | (SELECT submitterId \n | FROM SubmitterList\n | WHERE SubmitterList.assignmentUid = ClazzAssignment.caUid)) \n | ELSE 0 END) AS submittedStudents, \n | \n | (CASE WHEN (SELECT hasPermission \n | FROM CtePermissionCheck) \n | THEN (SELECT COUNT(DISTINCT CourseAssignmentMark.camSubmitterUid) \n | FROM CourseAssignmentMark\n | \n | JOIN CourseAssignmentSubmission\n | ON CourseAssignmentSubmission.casSubmitterUid = CourseAssignmentMark.camSubmitterUid\n | AND CourseAssignmentSubmission.casAssignmentUid = CourseAssignmentMark.camAssignmentUid\n | \n | WHERE CourseAssignmentMark.camAssignmentUid = ClazzAssignment.caUid \n | AND CourseAssignmentMark.camSubmitterUid IN (SELECT submitterId \n | FROM SubmitterList\n | WHERE SubmitterList.assignmentUid = ClazzAssignment.caUid))\n | ELSE 0 END) AS markedStudents,\n | \n | COALESCE((CASE WHEN CourseAssignmentMark.camUid IS NOT NULL \n | THEN 2 \n | WHEN CourseAssignmentSubmission.casUid IS NOT NULL \n | THEN 1 \n | ELSE 0 END), \n | 0) AS fileSubmissionStatus\n | \n | \n | FROM CourseBlock \n | \n | LEFT JOIN CourseBlock AS parentBlock\n | ON CourseBlock.cbModuleParentBlockUid = parentBlock.cbUid\n | AND CourseBlock.cbTYpe != 100\n | \n | LEFT JOIN ClazzAssignment\n | ON ClazzAssignment.caUid = CourseBlock.cbEntityUid\n | AND CourseBlock.cbType = 103\n | \n | LEFT JOIN ContentEntry\n | ON ContentEntry.contentEntryUid = CourseBlock.cbEntityUid\n | AND NOT ceInactive\n | AND CourseBlock.cbType = 104\n | \n | LEFT JOIN CourseDiscussion \n | ON CourseDiscussion.courseDiscussionUid = CourseBlock.cbEntityUid\n | AND CourseBlock.cbType = 105\n | \n | LEFT JOIN ContentEntryParentChildJoin \n | ON ContentEntryParentChildJoin.cepcjChildContentEntryUid = ContentEntry.contentEntryUid\n | \n | LEFT JOIN Container \n | ON Container.containerUid = \n | (SELECT containerUid \n | FROM Container \n | WHERE containerContentEntryUid = ContentEntry.contentEntryUid \n | ORDER BY cntLastModified DESC LIMIT 1)\n | \n | LEFT JOIN StatementEntity\n |\t\t\t\t ON StatementEntity.statementUid = \n | (SELECT statementUid \n |\t\t\t\t\t\t\t FROM StatementEntity \n | WHERE statementContentEntryUid = ContentEntry.contentEntryUid \n |\t\t\t\t\t\t\t AND StatementEntity.statementPersonUid = ?\n |\t\t\t\t\t\t\t AND contentEntryRoot \n | ORDER BY resultScoreScaled DESC, \n | extensionProgress DESC, \n | resultSuccess DESC \n | LIMIT 1) \n | \n | LEFT JOIN CourseAssignmentSubmission\n | ON casUid = (SELECT casUid \n | FROM CourseAssignmentSubmission\n | WHERE casAssignmentUid = ClazzAssignment.caUid\n | AND casSubmitterUid = (SELECT (CASE WHEN ref.caGroupUid = 0 \n | THEN ? \n | WHEN CourseGroupMember.cgmUid IS NULL \n | THEN 0 \n | ELSE CourseGroupMember.cgmGroupNumber \n | END) as submitterUid\n | FROM ClazzAssignment AS ref\n | LEFT JOIN CourseGroupMember\n | ON cgmSetUid = ClazzAssignment.caGroupUid\n | AND cgmPersonUid = ?\n | WHERE ref.caUid = ClazzAssignment.caUid)\n | ORDER BY casTimestamp DESC\n | LIMIT 1)\n | \n | LEFT JOIN CourseAssignmentMark\n | ON camUid = (SELECT camUid \n | FROM CourseAssignmentMark\n | WHERE camAssignmentUid = ClazzAssignment.caUid\n | AND camSubmitterUid = (SELECT (CASE WHEN ref.caGroupUid = 0 \n | THEN ? \n | WHEN CourseGroupMember.cgmUid IS NULL \n | THEN 0 \n | ELSE CourseGroupMember.cgmGroupNumber \n | END) as submitterUid\n | FROM ClazzAssignment AS ref\n | LEFT JOIN CourseGroupMember\n | ON cgmSetUid = ClazzAssignment.caGroupUid\n | AND cgmPersonUid = ?\n | WHERE ref.caUid = ClazzAssignment.caUid)\n | ORDER BY camLct DESC\n | LIMIT 1) \n | WHERE CourseBlock.cbClazzUid = ?\n | AND CourseBlock.cbActive\n | AND NOT CourseBlock.cbHidden\n | AND ? > CourseBlock.cbHideUntilDate\n | AND ? > COALESCE(parentBlock.cbHideUntilDate,0)\n | AND CourseBlock.cbModuleParentBlockUid NOT IN (?)\n | ORDER BY CourseBlock.cbIndex\n | ) \n "),!0),RL(this.local$closure$clazzUid,this.local$closure$personUid,this.local$closure$collapseList,this.local$closure$currentTime),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},CL.prototype.getLength=function(){return new ft(this.this$CourseBlockDao_JdbcKt._db,p(["CourseBlock","ClazzAssignment","CourseDiscussion","ContentEntry","CourseAssignmentMark","StatementEntity","Container","ContentEntryParentChildJoin","PersonGroupMember","Clazz","ScopedGrant","ClazzEnrolment","CourseAssignmentSubmission","CourseGroupMember"]),(t=this.this$CourseBlockDao_JdbcKt,e=this.closure$clazzUid,n=this.closure$personUid,i=this.closure$collapseList,o=this.closure$currentTime,function(r,s){var a=new AL(t,e,n,i,o,r);return s?a:a.doResume(null)}));var t,e,n,i,o},CL.$metadata$={kind:c,interfaces:[gt]},oL.prototype.findAllCourseBlockByClazzUidLive_uwwcm7$=function(t,e,n,i){return new CL(this,t,e,n,i)},xL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},xL.prototype=Object.create(N.prototype),xL.prototype.constructor=xL,xL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setBoolean_fzusl$(1,this.local$closure$active),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$changeTime),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$cbUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},UL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},UL.prototype=Object.create(N.prototype),UL.prototype.constructor=UL,UL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | UPDATE CourseBlock \n | SET cbActive = ?, \n | cbLct = ?\n | WHERE cbUid = ?\n ")),IL(this.local$active,this.local$changeTime,this.local$cbUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oL.prototype.updateActiveByUid_zaz62j$=function(t,e,n,i,o){var r=new UL(this,t,e,n,i);return o?r:r.doResume(null)},DL.prototype.makeSql_6taknv$=function(t){return"INSERT OR REPLACE INTO CourseBlock (cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbActive, cbHidden, cbEntityUid, cbLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},DL.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.cbUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.cbUid),t.setInt_vux9f0$(2,e.cbType),t.setInt_vux9f0$(3,e.cbIndentLevel),t.setLong_6svq3l$(4,e.cbModuleParentBlockUid),t.setString_vqvrqt$(5,e.cbTitle),t.setString_vqvrqt$(6,e.cbDescription),t.setInt_vux9f0$(7,e.cbCompletionCriteria),t.setLong_6svq3l$(8,e.cbHideUntilDate),t.setLong_6svq3l$(9,e.cbDeadlineDate),t.setInt_vux9f0$(10,e.cbLateSubmissionPenalty),t.setLong_6svq3l$(11,e.cbGracePeriodDate),t.setInt_vux9f0$(12,e.cbMaxPoints),t.setInt_vux9f0$(13,e.cbMinPoints),t.setInt_vux9f0$(14,e.cbIndex),t.setLong_6svq3l$(15,e.cbClazzUid),t.setBoolean_fzusl$(16,e.cbActive),t.setBoolean_fzusl$(17,e.cbHidden),t.setLong_6svq3l$(18,e.cbEntityUid),t.setLong_6svq3l$(19,e.cbLct)},DL.$metadata$={kind:c,interfaces:[pt]},PL.prototype.makeSql_6taknv$=function(t){return"INSERT INTO CourseBlock (cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints, cbMinPoints, cbIndex, cbClazzUid, cbActive, cbHidden, cbEntityUid, cbLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},PL.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.cbUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.cbUid),t.setInt_vux9f0$(2,e.cbType),t.setInt_vux9f0$(3,e.cbIndentLevel),t.setLong_6svq3l$(4,e.cbModuleParentBlockUid),t.setString_vqvrqt$(5,e.cbTitle),t.setString_vqvrqt$(6,e.cbDescription),t.setInt_vux9f0$(7,e.cbCompletionCriteria),t.setLong_6svq3l$(8,e.cbHideUntilDate),t.setLong_6svq3l$(9,e.cbDeadlineDate),t.setInt_vux9f0$(10,e.cbLateSubmissionPenalty),t.setLong_6svq3l$(11,e.cbGracePeriodDate),t.setInt_vux9f0$(12,e.cbMaxPoints),t.setInt_vux9f0$(13,e.cbMinPoints),t.setInt_vux9f0$(14,e.cbIndex),t.setLong_6svq3l$(15,e.cbClazzUid),t.setBoolean_fzusl$(16,e.cbActive),t.setBoolean_fzusl$(17,e.cbHidden),t.setLong_6svq3l$(18,e.cbEntityUid),t.setLong_6svq3l$(19,e.cbLct)},PL.$metadata$={kind:c,interfaces:[pt]},oL.$metadata$={kind:c,simpleName:"CourseBlockDao_JdbcKt",interfaces:[iL]},kL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},kL.prototype=Object.create(N.prototype),kL.prototype.constructor=kL,kL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ML.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new kL(this,t,e);return n?i:i.doResume(null)},jL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},jL.prototype=Object.create(N.prototype),jL.prototype.constructor=jL,jL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ML.prototype.replicateOnChange=function(t,e){var n=new jL(this,t);return e?n:n.doResume(null)},ML.prototype.findByUidAsync_s8cxhz$=function(t,e){return this._dao_0.findByUidAsync_s8cxhz$(t,e)},ML.prototype.updateAsync_dk05ec$=function(t,e){return t.cbLct=J(),this._dao_0.updateAsync_dk05ec$(t,e)},GL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},GL.prototype=Object.create(N.prototype),GL.prototype.constructor=GL,GL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_pkManager=_t(w(this.$this._db_0)),this.local$_generatedPks=F(),this.local$$receiver=this.local$list.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$$receiver.hasNext()){this.state_0=5;continue}if(this.local$element=this.local$$receiver.next(),O(this.local$element.cbUid,X)){if(this.state_0=3,this.result_0=this.local$_pkManager.nextIdAsync_za3lpa$(124,this),this.result_0===C)return C;continue}this.state_0=4;continue;case 3:var t=this.result_0;this.local$element.cbUid=t,this.local$_generatedPks.add_11rb$(t),this.state_0=4;continue;case 4:this.local$element.cbLct=J(),this.state_0=2;continue;case 5:if(this.state_0=6,this.result_0=this.$this._dao_0.replaceListAsync_u9gaf9$(this.local$list,this),this.result_0===C)return C;continue;case 6:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ML.prototype.replaceListAsync_u9gaf9$=function(t,e,n){var i=new GL(this,t,e);return n?i:i.doResume(null)},ML.prototype.findAllCourseBlockByClazzUidAsync_s8cxhz$=function(t,e){return this._dao_0.findAllCourseBlockByClazzUidAsync_s8cxhz$(t,e)},ML.prototype.findAllCourseBlockByClazzUidLive_uwwcm7$=function(t,e,n,i){return this._dao_0.findAllCourseBlockByClazzUidLive_uwwcm7$(t,e,n,i)},qL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},qL.prototype=Object.create(N.prototype),qL.prototype.constructor=qL,qL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.updateActiveByUid_zaz62j$(this.local$cbUid,this.local$active,this.local$changeTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ML.prototype.updateActiveByUid_zaz62j$=function(t,e,n,i,o){var r=new qL(this,t,e,n,i);return o?r:r.doResume(null)},ML.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},FL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},FL.prototype=Object.create(N.prototype),FL.prototype.constructor=FL,FL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.cbUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(124,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.cbUid=e,this.state_0=3;continue;case 3:if(this.local$entity.cbLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.cbUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ML.prototype.insertAsync=function(t,e,n){var i=new FL(this,t,e);return n?i:i.doResume(null)},ML.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},ML.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},ML.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},BL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},BL.prototype=Object.create(N.prototype),BL.prototype.constructor=BL,BL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_pkManager=_t(w(this.$this._db_0)),this.local$_generatedPks=F(),this.local$$receiver=this.local$entityList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$$receiver.hasNext()){this.state_0=5;continue}if(this.local$element=this.local$$receiver.next(),O(this.local$element.cbUid,X)){if(this.state_0=3,this.result_0=this.local$_pkManager.nextIdAsync_za3lpa$(124,this),this.result_0===C)return C;continue}this.state_0=4;continue;case 3:var t=this.result_0;this.local$element.cbUid=t,this.local$_generatedPks.add_11rb$(t),this.state_0=4;continue;case 4:this.local$element.cbLct=J(),this.state_0=2;continue;case 5:if(this.state_0=6,this.result_0=this.$this._dao_0.insertListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 6:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ML.prototype.insertListAsync_4ezy5m$=function(t,e,n){var i=new BL(this,t,e);return n?i:i.doResume(null)},WL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},WL.prototype=Object.create(N.prototype),WL.prototype.constructor=WL,WL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:F();for(var t=this.local$entityList.iterator();t.hasNext();)t.next().cbLct=J();if(this.state_0=2,this.result_0=this.$this._dao_0.updateListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ML.prototype.updateListAsync_4ezy5m$=function(t,e,n){var i=new WL(this,t,e);return n?i:i.doResume(null)},ML.$metadata$={kind:c,simpleName:"CourseBlockDao_ReplicateWrapper",interfaces:[iL]},VL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},VL.prototype=Object.create(N.prototype),VL.prototype.constructor=VL,VL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HL.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new VL(this,t,e);return n?i:i.doResume(null)},KL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},KL.prototype=Object.create(N.prototype),KL.prototype.constructor=KL,KL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HL.prototype.replicateOnChange=function(t,e){var n=new KL(this,t);return e?n:n.doResume(null)},XL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},XL.prototype=Object.create(N.prototype),XL.prototype.constructor=XL,XL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByUidAsync_s8cxhz$(this.local$uid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HL.prototype.findByUidAsync_s8cxhz$=function(t,e,n){var i=new XL(this,t,e);return n?i:i.doResume(null)},JL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},JL.prototype=Object.create(N.prototype),JL.prototype.constructor=JL,JL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateAsync_dk05ec$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HL.prototype.updateAsync_dk05ec$=function(t,e,n){var i=new JL(this,t,e);return n?i:i.doResume(null)},YL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},YL.prototype=Object.create(N.prototype),YL.prototype.constructor=YL,YL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replaceListAsync_u9gaf9$(this.local$list,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HL.prototype.replaceListAsync_u9gaf9$=function(t,e,n){var i=new YL(this,t,e);return n?i:i.doResume(null)},QL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},QL.prototype=Object.create(N.prototype),QL.prototype.constructor=QL,QL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findAllCourseBlockByClazzUidAsync_s8cxhz$(this.local$clazzUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HL.prototype.findAllCourseBlockByClazzUidAsync_s8cxhz$=function(t,e,n){var i=new QL(this,t,e);return n?i:i.doResume(null)},HL.prototype.findAllCourseBlockByClazzUidLive_uwwcm7$=function(t,e,n,i){return this._dao.findAllCourseBlockByClazzUidLive_uwwcm7$(t,e,n,i)},ZL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ZL.prototype=Object.create(N.prototype),ZL.prototype.constructor=ZL,ZL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateActiveByUid_zaz62j$(this.local$cbUid,this.local$active,this.local$changeTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HL.prototype.updateActiveByUid_zaz62j$=function(t,e,n,i,o){var r=new ZL(this,t,e,n,i);return o?r:r.doResume(null)},HL.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},tz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},tz.prototype=Object.create(N.prototype),tz.prototype.constructor=tz,tz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HL.prototype.insertAsync=function(t,e,n){var i=new tz(this,t,e);return n?i:i.doResume(null)},HL.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},HL.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},HL.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},ez.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ez.prototype=Object.create(N.prototype),ez.prototype.constructor=ez,ez.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HL.prototype.insertListAsync_4ezy5m$=function(t,e,n){var i=new ez(this,t,e);return n?i:i.doResume(null)},nz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},nz.prototype=Object.create(N.prototype),nz.prototype.constructor=nz,nz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HL.prototype.updateListAsync_4ezy5m$=function(t,e,n){var i=new nz(this,t,e);return n?i:i.doResume(null)},HL.$metadata$={kind:c,simpleName:"CourseBlockDao_Repo",interfaces:[iL]},iz.$metadata$={kind:c,simpleName:"CourseDiscussionDao",interfaces:[t4,X6]},rz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},rz.prototype=Object.create(N.prototype),rz.prototype.constructor=rz,rz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterCourseDiscussion_upsert.insertListAsync_4ezy5m$(this.local$list,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oz.prototype.replaceListAsync_4f5xb2$=function(t,e,n){var i=new rz(this,t,e);return n?i:i.doResume(null)},oz.prototype.insert_11rb$=function(t){return this._insertAdapterCourseDiscussion_.insertAndReturnId_11rb$(t)},sz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},sz.prototype=Object.create(N.prototype),sz.prototype.constructor=sz,sz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterCourseDiscussion_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oz.prototype.insertAsync=function(t,e,n){var i=new sz(this,t,e);return n?i:i.doResume(null)},oz.prototype.insertList_4ezy5m$=function(t){this._insertAdapterCourseDiscussion_.insertList_4ezy5m$(t)},az.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},az.prototype=Object.create(N.prototype),az.prototype.constructor=az,az.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterCourseDiscussion_.insertListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oz.prototype.insertListAsync_4ezy5m$=function(t,e,n){var i=new az(this,t,e);return n?i:i.doResume(null)},oz.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE CourseDiscussion SET courseDiscussionTitle = ?, courseDiscussionDesc = ?, courseDiscussionClazzUid = ?, courseDiscussionActive = ?, courseDiscussionLct = ? WHERE courseDiscussionUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setString_vqvrqt$(1,i.courseDiscussionTitle),t.setString_vqvrqt$(2,i.courseDiscussionDesc),t.setLong_6svq3l$(3,i.courseDiscussionClazzUid),t.setBoolean_fzusl$(4,i.courseDiscussionActive),t.setLong_6svq3l$(5,i.courseDiscussionLct),t.setLong_6svq3l$(6,i.courseDiscussionUid),t.executeUpdate()}return t.getConnection().commit(),V}))},oz.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE CourseDiscussion SET courseDiscussionTitle = ?, courseDiscussionDesc = ?, courseDiscussionClazzUid = ?, courseDiscussionActive = ?, courseDiscussionLct = ? WHERE courseDiscussionUid = ?",(e=t,function(t){return t.setString_vqvrqt$(1,e.courseDiscussionTitle),t.setString_vqvrqt$(2,e.courseDiscussionDesc),t.setLong_6svq3l$(3,e.courseDiscussionClazzUid),t.setBoolean_fzusl$(4,e.courseDiscussionActive),t.setLong_6svq3l$(5,e.courseDiscussionLct),t.setLong_6svq3l$(6,e.courseDiscussionUid),t.executeUpdate()}))},cz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},cz.prototype=Object.create(N.prototype),cz.prototype.constructor=cz,cz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_stmt.getConnection().setAutoCommit_6taknv$(!1),this.local$tmp$=this.local$closure$entityList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$tmp$.hasNext()){this.state_0=4;continue}var t=this.local$tmp$.next();if(this.local$_stmt.setString_vqvrqt$(1,t.courseDiscussionTitle),this.local$_stmt.setString_vqvrqt$(2,t.courseDiscussionDesc),this.local$_stmt.setLong_6svq3l$(3,t.courseDiscussionClazzUid),this.local$_stmt.setBoolean_fzusl$(4,t.courseDiscussionActive),this.local$_stmt.setLong_6svq3l$(5,t.courseDiscussionLct),this.local$_stmt.setLong_6svq3l$(6,t.courseDiscussionUid),this.state_0=3,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 3:this.state_0=2;continue;case 4:return this.local$_stmt.getConnection().commit(),V;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},uz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},uz.prototype=Object.create(N.prototype),uz.prototype.constructor=uz,uz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE CourseDiscussion SET courseDiscussionTitle = ?, courseDiscussionDesc = ?, courseDiscussionClazzUid = ?, courseDiscussionActive = ?, courseDiscussionLct = ? WHERE courseDiscussionUid = ?",lz(this.local$entityList),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oz.prototype.updateListAsync_4ezy5m$=function(t,e,n){var i=new uz(this,t,e);return n?i:i.doResume(null)},hz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},hz.prototype=Object.create(N.prototype),hz.prototype.constructor=hz,hz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},pz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},pz.prototype=Object.create(N.prototype),pz.prototype.constructor=pz,pz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO CourseDiscussionReplicate(courseDiscussionPk, courseDiscussionDestination)\n | SELECT DISTINCT CourseDiscussion.courseDiscussionUid AS courseDiscussionPk,\n | ? AS courseDiscussionDestination\n | \n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 2 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | \n | JOIN CourseDiscussion \n | ON CourseDiscussion.courseDiscussionClazzUid = Clazz.clazzUid\n | \n | WHERE CourseDiscussion.courseDiscussionLct != COALESCE(\n | (SELECT courseDiscussionVersionId\n | FROM courseDiscussionReplicate\n | WHERE courseDiscussionPk = CourseDiscussion.courseDiscussionUid\n | AND courseDiscussionDestination = ?), 0) \n | /*psql ON CONFLICT(courseDiscussionPk, courseDiscussionDestination) DO UPDATE\n | SET courseDiscussionPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO CourseDiscussionReplicate(courseDiscussionPk, courseDiscussionDestination)\n | SELECT DISTINCT CourseDiscussion.courseDiscussionUid AS courseDiscussionPk,\n | ? AS courseDiscussionDestination\n | \n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 2 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | \n | JOIN CourseDiscussion \n | ON CourseDiscussion.courseDiscussionClazzUid = Clazz.clazzUid\n | \n | WHERE CourseDiscussion.courseDiscussionLct != COALESCE(\n | (SELECT courseDiscussionVersionId\n | FROM courseDiscussionReplicate\n | WHERE courseDiscussionPk = CourseDiscussion.courseDiscussionUid\n | AND courseDiscussionDestination = ?), 0) \n | ON CONFLICT(courseDiscussionPk, courseDiscussionDestination) DO UPDATE\n | SET courseDiscussionPending = true\n | \n | \n |")),dz(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oz.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new pz(this,t,e);return n?i:i.doResume(null)},_z.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_z.prototype=Object.create(N.prototype),_z.prototype.constructor=_z,_z.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},fz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fz.prototype=Object.create(N.prototype),fz.prototype.constructor=fz,fz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO CourseDiscussionReplicate(courseDiscussionPk, courseDiscussionDestination)\n | SELECT DISTINCT CourseDiscussion.courseDiscussionUid AS courseDiscussionUid,\n | UserSession.usClientNodeId AS courseDiscussionDestination\n | FROM ChangeLog\n | JOIN CourseDiscussion\n | ON ChangeLog.chTableId = 130\n | AND ChangeLog.chEntityPk = CourseDiscussion.courseDiscussionUid\n | JOIN Clazz\n | ON Clazz.clazzUid = CourseDiscussion.courseDiscussionClazzUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 2\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND CourseDiscussion.courseDiscussionLct != COALESCE(\n | (SELECT courseDiscussionVersionId\n | FROM courseDiscussionReplicate\n | WHERE courseDiscussionPk = CourseDiscussion.courseDiscussionUid\n | AND courseDiscussionDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(courseDiscussionPk, courseDiscussionDestination) DO UPDATE\n | SET courseDiscussionPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO CourseDiscussionReplicate(courseDiscussionPk, courseDiscussionDestination)\n | SELECT DISTINCT CourseDiscussion.courseDiscussionUid AS courseDiscussionUid,\n | UserSession.usClientNodeId AS courseDiscussionDestination\n | FROM ChangeLog\n | JOIN CourseDiscussion\n | ON ChangeLog.chTableId = 130\n | AND ChangeLog.chEntityPk = CourseDiscussion.courseDiscussionUid\n | JOIN Clazz\n | ON Clazz.clazzUid = CourseDiscussion.courseDiscussionClazzUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 2\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND CourseDiscussion.courseDiscussionLct != COALESCE(\n | (SELECT courseDiscussionVersionId\n | FROM courseDiscussionReplicate\n | WHERE courseDiscussionPk = CourseDiscussion.courseDiscussionUid\n | AND courseDiscussionDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(courseDiscussionPk, courseDiscussionDestination) DO UPDATE\n | SET courseDiscussionPending = true\n | \n | \n |")),mz,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oz.prototype.replicateOnChange=function(t,e){var n=new fz(this,t);return e?n:n.doResume(null)},gz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},gz.prototype=Object.create(N.prototype),gz.prototype.constructor=gz,gz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setBoolean_fzusl$(1,this.local$closure$active),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$changeTime),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$cbUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ez.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ez.prototype=Object.create(N.prototype),Ez.prototype.constructor=Ez,Ez.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | UPDATE CourseDiscussion \n | SET courseDiscussionActive = ?, \n | courseDiscussionLct = ?\n | WHERE courseDiscussionUid = ?\n ")),$z(this.local$active,this.local$changeTime,this.local$cbUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oz.prototype.updateActiveByUid_zaz62j$=function(t,e,n,i,o){var r=new Ez(this,t,e,n,i);return o?r:r.doResume(null)},bz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},bz.prototype=Object.create(N.prototype),bz.prototype.constructor=bz,bz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$courseDiscussionUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,yz);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},vz.prototype=Object.create(N.prototype),vz.prototype.constructor=vz,vz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$CourseDiscussionDao_JdbcKt._db,new st(S("\n |\n | SELECT CourseDiscussion.* \n | FROM CourseDiscussion\n | WHERE CourseDiscussion.courseDiscussionUid = ? \n | AND CAST(CourseDiscussion.courseDiscussionActive AS INTEGER) = 1 \n | \n | \n ")),Sz(this.local$closure$courseDiscussionUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oz.prototype.getCourseDiscussionByUid_s8cxhz$=function(t){return new ft(this._db,Et("CourseDiscussion"),(e=this,n=t,function(t,i){var o=new vz(e,n,t);return i?o:o.doResume(null)}));var e,n},Cz.prototype.makeSql_6taknv$=function(t){return"INSERT OR REPLACE INTO CourseDiscussion (courseDiscussionUid, courseDiscussionTitle, courseDiscussionDesc, courseDiscussionClazzUid, courseDiscussionActive, courseDiscussionLct) VALUES(?, ?, ?, ?, ?, ?)"},Cz.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.courseDiscussionUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.courseDiscussionUid),t.setString_vqvrqt$(2,e.courseDiscussionTitle),t.setString_vqvrqt$(3,e.courseDiscussionDesc),t.setLong_6svq3l$(4,e.courseDiscussionClazzUid),t.setBoolean_fzusl$(5,e.courseDiscussionActive),t.setLong_6svq3l$(6,e.courseDiscussionLct)},Cz.$metadata$={kind:c,interfaces:[pt]},Nz.prototype.makeSql_6taknv$=function(t){return"INSERT INTO CourseDiscussion (courseDiscussionUid, courseDiscussionTitle, courseDiscussionDesc, courseDiscussionClazzUid, courseDiscussionActive, courseDiscussionLct) VALUES(?, ?, ?, ?, ?, ?)"},Nz.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.courseDiscussionUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.courseDiscussionUid),t.setString_vqvrqt$(2,e.courseDiscussionTitle),t.setString_vqvrqt$(3,e.courseDiscussionDesc),t.setLong_6svq3l$(4,e.courseDiscussionClazzUid),t.setBoolean_fzusl$(5,e.courseDiscussionActive),t.setLong_6svq3l$(6,e.courseDiscussionLct)},Nz.$metadata$={kind:c,interfaces:[pt]},oz.$metadata$={kind:c,simpleName:"CourseDiscussionDao_JdbcKt",interfaces:[iz]},Lz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Lz.prototype=Object.create(N.prototype),Lz.prototype.constructor=Lz,Lz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Tz.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new Lz(this,t,e);return n?i:i.doResume(null)},zz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},zz.prototype=Object.create(N.prototype),zz.prototype.constructor=zz,zz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Tz.prototype.replicateOnChange=function(t,e){var n=new zz(this,t);return e?n:n.doResume(null)},wz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},wz.prototype=Object.create(N.prototype),wz.prototype.constructor=wz,wz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.updateActiveByUid_zaz62j$(this.local$cbUid,this.local$active,this.local$changeTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Tz.prototype.updateActiveByUid_zaz62j$=function(t,e,n,i,o){var r=new wz(this,t,e,n,i);return o?r:r.doResume(null)},Tz.prototype.getCourseDiscussionByUid_s8cxhz$=function(t){return this._dao_0.getCourseDiscussionByUid_s8cxhz$(t)},Oz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Oz.prototype=Object.create(N.prototype),Oz.prototype.constructor=Oz,Oz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_pkManager=_t(w(this.$this._db_0)),this.local$_generatedPks=F(),this.local$$receiver=this.local$list.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$$receiver.hasNext()){this.state_0=5;continue}if(this.local$element=this.local$$receiver.next(),O(this.local$element.courseDiscussionUid,X)){if(this.state_0=3,this.result_0=this.local$_pkManager.nextIdAsync_za3lpa$(130,this),this.result_0===C)return C;continue}this.state_0=4;continue;case 3:var t=this.result_0;this.local$element.courseDiscussionUid=t,this.local$_generatedPks.add_11rb$(t),this.state_0=4;continue;case 4:this.local$element.courseDiscussionLct=J(),this.state_0=2;continue;case 5:if(this.state_0=6,this.result_0=this.$this._dao_0.replaceListAsync_4f5xb2$(this.local$list,this),this.result_0===C)return C;continue;case 6:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Tz.prototype.replaceListAsync_4f5xb2$=function(t,e,n){var i=new Oz(this,t,e);return n?i:i.doResume(null)},Tz.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Rz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Rz.prototype=Object.create(N.prototype),Rz.prototype.constructor=Rz,Rz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.courseDiscussionUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(130,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.courseDiscussionUid=e,this.state_0=3;continue;case 3:if(this.local$entity.courseDiscussionLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.courseDiscussionUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Tz.prototype.insertAsync=function(t,e,n){var i=new Rz(this,t,e);return n?i:i.doResume(null)},Tz.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Tz.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Tz.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Az.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Az.prototype=Object.create(N.prototype),Az.prototype.constructor=Az,Az.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_pkManager=_t(w(this.$this._db_0)),this.local$_generatedPks=F(),this.local$$receiver=this.local$entityList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$$receiver.hasNext()){this.state_0=5;continue}if(this.local$element=this.local$$receiver.next(),O(this.local$element.courseDiscussionUid,X)){if(this.state_0=3,this.result_0=this.local$_pkManager.nextIdAsync_za3lpa$(130,this),this.result_0===C)return C;continue}this.state_0=4;continue;case 3:var t=this.result_0;this.local$element.courseDiscussionUid=t,this.local$_generatedPks.add_11rb$(t),this.state_0=4;continue;case 4:this.local$element.courseDiscussionLct=J(),this.state_0=2;continue;case 5:if(this.state_0=6,this.result_0=this.$this._dao_0.insertListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 6:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Tz.prototype.insertListAsync_4ezy5m$=function(t,e,n){var i=new Az(this,t,e);return n?i:i.doResume(null)},xz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},xz.prototype=Object.create(N.prototype),xz.prototype.constructor=xz,xz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:F();for(var t=this.local$entityList.iterator();t.hasNext();)t.next().courseDiscussionLct=J();if(this.state_0=2,this.result_0=this.$this._dao_0.updateListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Tz.prototype.updateListAsync_4ezy5m$=function(t,e,n){var i=new xz(this,t,e);return n?i:i.doResume(null)},Tz.$metadata$={kind:c,simpleName:"CourseDiscussionDao_ReplicateWrapper",interfaces:[iz]},Uz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Uz.prototype=Object.create(N.prototype),Uz.prototype.constructor=Uz,Uz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Iz.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new Uz(this,t,e);return n?i:i.doResume(null)},Dz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Dz.prototype=Object.create(N.prototype),Dz.prototype.constructor=Dz,Dz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Iz.prototype.replicateOnChange=function(t,e){var n=new Dz(this,t);return e?n:n.doResume(null)},Pz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Pz.prototype=Object.create(N.prototype),Pz.prototype.constructor=Pz,Pz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateActiveByUid_zaz62j$(this.local$cbUid,this.local$active,this.local$changeTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Iz.prototype.updateActiveByUid_zaz62j$=function(t,e,n,i,o){var r=new Pz(this,t,e,n,i);return o?r:r.doResume(null)},Iz.prototype.getCourseDiscussionByUid_s8cxhz$=function(t){return this._dao.getCourseDiscussionByUid_s8cxhz$(t)},Mz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Mz.prototype=Object.create(N.prototype),Mz.prototype.constructor=Mz,Mz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replaceListAsync_4f5xb2$(this.local$list,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Iz.prototype.replaceListAsync_4f5xb2$=function(t,e,n){var i=new Mz(this,t,e);return n?i:i.doResume(null)},Iz.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},kz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},kz.prototype=Object.create(N.prototype),kz.prototype.constructor=kz,kz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Iz.prototype.insertAsync=function(t,e,n){var i=new kz(this,t,e);return n?i:i.doResume(null)},Iz.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},Iz.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},Iz.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},jz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},jz.prototype=Object.create(N.prototype),jz.prototype.constructor=jz,jz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Iz.prototype.insertListAsync_4ezy5m$=function(t,e,n){var i=new jz(this,t,e);return n?i:i.doResume(null)},Gz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Gz.prototype=Object.create(N.prototype),Gz.prototype.constructor=Gz,Gz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Iz.prototype.updateListAsync_4ezy5m$=function(t,e,n){var i=new Gz(this,t,e);return n?i:i.doResume(null)},Iz.$metadata$={kind:c,simpleName:"CourseDiscussionDao_Repo",interfaces:[iz]},qz.$metadata$={kind:c,simpleName:"CourseGroupMemberDao",interfaces:[X6]},Bz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Bz.prototype=Object.create(N.prototype),Bz.prototype.constructor=Bz,Bz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterCourseGroupMember_.insertListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Fz.prototype.insertListAsync_23fuft$=function(t,e,n){var i=new Bz(this,t,e);return n?i:i.doResume(null)},Fz.prototype.insert_11rb$=function(t){return this._insertAdapterCourseGroupMember_.insertAndReturnId_11rb$(t)},Wz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Wz.prototype=Object.create(N.prototype),Wz.prototype.constructor=Wz,Wz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterCourseGroupMember_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Fz.prototype.insertAsync=function(t,e,n){var i=new Wz(this,t,e);return n?i:i.doResume(null)},Fz.prototype.insertList_4ezy5m$=function(t){this._insertAdapterCourseGroupMember_.insertList_4ezy5m$(t)},Hz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Hz.prototype=Object.create(N.prototype),Hz.prototype.constructor=Hz,Hz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_stmt.getConnection().setAutoCommit_6taknv$(!1),this.local$tmp$=this.local$closure$entityList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$tmp$.hasNext()){this.state_0=4;continue}var t=this.local$tmp$.next();if(this.local$_stmt.setLong_6svq3l$(1,t.cgmSetUid),this.local$_stmt.setInt_vux9f0$(2,t.cgmGroupNumber),this.local$_stmt.setLong_6svq3l$(3,t.cgmPersonUid),this.local$_stmt.setLong_6svq3l$(4,t.cgmLct),this.local$_stmt.setLong_6svq3l$(5,t.cgmUid),this.state_0=3,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 3:this.state_0=2;continue;case 4:return this.local$_stmt.getConnection().commit(),V;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Kz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Kz.prototype=Object.create(N.prototype),Kz.prototype.constructor=Kz,Kz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE CourseGroupMember SET cgmSetUid = ?, cgmGroupNumber = ?, cgmPersonUid = ?, cgmLct = ? WHERE cgmUid = ?",Vz(this.local$entityList),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Fz.prototype.updateListAsync_23fuft$=function(t,e,n){var i=new Kz(this,t,e);return n?i:i.doResume(null)},Fz.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE CourseGroupMember SET cgmSetUid = ?, cgmGroupNumber = ?, cgmPersonUid = ?, cgmLct = ? WHERE cgmUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.cgmSetUid),t.setInt_vux9f0$(2,i.cgmGroupNumber),t.setLong_6svq3l$(3,i.cgmPersonUid),t.setLong_6svq3l$(4,i.cgmLct),t.setLong_6svq3l$(5,i.cgmUid),t.executeUpdate()}return t.getConnection().commit(),V}))},Fz.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE CourseGroupMember SET cgmSetUid = ?, cgmGroupNumber = ?, cgmPersonUid = ?, cgmLct = ? WHERE cgmUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.cgmSetUid),t.setInt_vux9f0$(2,e.cgmGroupNumber),t.setLong_6svq3l$(3,e.cgmPersonUid),t.setLong_6svq3l$(4,e.cgmLct),t.setLong_6svq3l$(5,e.cgmUid),t.executeUpdate()}))},Xz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Xz.prototype=Object.create(N.prototype),Xz.prototype.constructor=Xz,Xz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Yz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Yz.prototype=Object.create(N.prototype),Yz.prototype.constructor=Yz,Yz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO CourseGroupMemberReplicate(cgmPk, cgmDestination)\n | SELECT DISTINCT CourseGroupMember.cgmUid AS cgmUid,\n | ? AS cgmDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 2 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | JOIN CourseGroupSet\n | ON CourseGroupSet.cgsClazzUid = Clazz.clazzUid\n | JOIN CourseGroupMember\n | ON CourseGroupMember.cgmSetUid = CourseGroupSet.cgsUid \n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND CourseGroupMember.cgmLct != COALESCE(\n | (SELECT cgmVersionId\n | FROM CourseGroupMemberReplicate\n | WHERE cgmPk = CourseGroupMember.cgmUid\n | AND cgmDestination = ?), 0) \n | /*psql ON CONFLICT(cgmPk, cgmDestination) DO UPDATE\n | SET cgmPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO CourseGroupMemberReplicate(cgmPk, cgmDestination)\n | SELECT DISTINCT CourseGroupMember.cgmUid AS cgmUid,\n | ? AS cgmDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 2 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | JOIN CourseGroupSet\n | ON CourseGroupSet.cgsClazzUid = Clazz.clazzUid\n | JOIN CourseGroupMember\n | ON CourseGroupMember.cgmSetUid = CourseGroupSet.cgsUid \n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND CourseGroupMember.cgmLct != COALESCE(\n | (SELECT cgmVersionId\n | FROM CourseGroupMemberReplicate\n | WHERE cgmPk = CourseGroupMember.cgmUid\n | AND cgmDestination = ?), 0) \n | ON CONFLICT(cgmPk, cgmDestination) DO UPDATE\n | SET cgmPending = true\n | \n | \n |")),Jz(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Fz.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new Yz(this,t,e);return n?i:i.doResume(null)},Qz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Qz.prototype=Object.create(N.prototype),Qz.prototype.constructor=Qz,Qz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},tw.prototype=Object.create(N.prototype),tw.prototype.constructor=tw,tw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO CourseGroupMemberReplicate(cgmPk, cgmDestination)\n | SELECT DISTINCT CourseGroupMember.cgmUid AS cgmUid,\n | UserSession.usClientNodeId AS cgmDestination\n | FROM ChangeLog\n | JOIN CourseGroupMember\n | ON ChangeLog.chTableId = 243\n | AND ChangeLog.chEntityPk = CourseGroupMember.cgmUid\n | JOIN CourseGroupSet\n | ON CourseGroupSet.cgsUid = CourseGroupMember.cgmSetUid \n | JOIN Clazz \n | ON Clazz.clazzUid = CourseGroupSet.cgsClazzUid \n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 2\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND CourseGroupMember.cgmLct != COALESCE(\n | (SELECT cgmVersionId\n | FROM CourseGroupMemberReplicate\n | WHERE cgmPk = CourseGroupMember.cgmUid\n | AND cgmDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(cgmPk, cgmDestination) DO UPDATE\n | SET cgmPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO CourseGroupMemberReplicate(cgmPk, cgmDestination)\n | SELECT DISTINCT CourseGroupMember.cgmUid AS cgmUid,\n | UserSession.usClientNodeId AS cgmDestination\n | FROM ChangeLog\n | JOIN CourseGroupMember\n | ON ChangeLog.chTableId = 243\n | AND ChangeLog.chEntityPk = CourseGroupMember.cgmUid\n | JOIN CourseGroupSet\n | ON CourseGroupSet.cgsUid = CourseGroupMember.cgmSetUid \n | JOIN Clazz \n | ON Clazz.clazzUid = CourseGroupSet.cgsClazzUid \n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 2\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND CourseGroupMember.cgmLct != COALESCE(\n | (SELECT cgmVersionId\n | FROM CourseGroupMemberReplicate\n | WHERE cgmPk = CourseGroupMember.cgmUid\n | AND cgmDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(cgmPk, cgmDestination) DO UPDATE\n | SET cgmPending = true\n | \n | \n |")),Zz,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Fz.prototype.replicateOnChange=function(t,e){var n=new tw(this,t);return e?n:n.doResume(null)},nw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},nw.prototype=Object.create(N.prototype),nw.prototype.constructor=nw,nw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$setUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$clazzUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,ew);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Fz.prototype.findByGroupSetAsync_3pjtqy$=function(t,e,n){return ct(this._db,new st(S("\n |\n | SELECT Person.*, CourseGroupMember.* \n | FROM Person\n | JOIN ClazzEnrolment \n | ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n | AND ClazzEnrolment.clazzEnrolmentRole = 1000\n | AND ClazzEnrolment.clazzEnrolmentOutcome = 200\n | \n | LEFT JOIN CourseGroupMember\n | ON CourseGroupMember.cgmPersonUid = ClazzEnrolment.clazzEnrolmentPersonUid\n | AND CourseGroupMember.cgmSetUid = ?\n | \n | WHERE clazzEnrolmentClazzUid = ?\n | ORDER BY Person.firstNames\n | \n ")),(i=t,o=e,function(t,e,n){var r=new nw(i,o,t,e);return n?r:r.doResume(null)}),n);var i,o},ow.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ow.prototype=Object.create(N.prototype),ow.prototype.constructor=ow,ow.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$setUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$clazzUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,iw);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Fz.prototype.findByGroupSetOrderedAsync_3pjtqy$=function(t,e,n){return ct(this._db,new st(S("\n |\n | SELECT Person.*, CourseGroupMember.* \n | FROM Person\n | JOIN ClazzEnrolment \n | ON Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid\n | AND ClazzEnrolment.clazzEnrolmentRole = 1000 \n | AND ClazzEnrolment.clazzEnrolmentOutcome = 200\n | \n | LEFT JOIN CourseGroupMember\n | ON CourseGroupMember.cgmPersonUid = ClazzEnrolment.clazzEnrolmentPersonUid\n | AND CourseGroupMember.cgmSetUid = ?\n | \n | WHERE clazzEnrolmentClazzUid = ?\n | ORDER BY CourseGroupMember.cgmGroupNumber, Person.firstNames\n | \n ")),(i=t,o=e,function(t,e,n){var r=new ow(i,o,t,e);return n?r:r.doResume(null)}),n);var i,o},sw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},sw.prototype=Object.create(N.prototype),sw.prototype.constructor=sw,sw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$studentUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$groupSetUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,rw);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Fz.prototype.findByPersonUid_3pjtqy$=function(t,e,n){return ct(this._db,new st(S("\n |\n | SELECT * \n | FROM CourseGroupMember\n | WHERE cgmPersonUid = ? \n | AND cgmSetUid = ?\n | LIMIT 1\n | \n ")),(i=e,o=t,function(t,e,n){var r=new sw(i,o,t,e);return n?r:r.doResume(null)}),n);var i,o},aw.prototype.makeSql_6taknv$=function(t){return"INSERT INTO CourseGroupMember (cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct) VALUES(?, ?, ?, ?, ?)"},aw.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.cgmUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.cgmUid),t.setLong_6svq3l$(2,e.cgmSetUid),t.setInt_vux9f0$(3,e.cgmGroupNumber),t.setLong_6svq3l$(4,e.cgmPersonUid),t.setLong_6svq3l$(5,e.cgmLct)},aw.$metadata$={kind:c,interfaces:[pt]},Fz.$metadata$={kind:c,simpleName:"CourseGroupMemberDao_JdbcKt",interfaces:[qz]},lw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},lw.prototype=Object.create(N.prototype),lw.prototype.constructor=lw,lw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},cw.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new lw(this,t,e);return n?i:i.doResume(null)},uw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},uw.prototype=Object.create(N.prototype),uw.prototype.constructor=uw,uw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},cw.prototype.replicateOnChange=function(t,e){var n=new uw(this,t);return e?n:n.doResume(null)},cw.prototype.findByGroupSetAsync_3pjtqy$=function(t,e,n){return this._dao_0.findByGroupSetAsync_3pjtqy$(t,e,n)},cw.prototype.findByGroupSetOrderedAsync_3pjtqy$=function(t,e,n){return this._dao_0.findByGroupSetOrderedAsync_3pjtqy$(t,e,n)},cw.prototype.findByPersonUid_3pjtqy$=function(t,e,n){return this._dao_0.findByPersonUid_3pjtqy$(t,e,n)},hw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},hw.prototype=Object.create(N.prototype),hw.prototype.constructor=hw,hw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_pkManager=_t(w(this.$this._db_0)),this.local$_generatedPks=F(),this.local$$receiver=this.local$entityList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$$receiver.hasNext()){this.state_0=5;continue}if(this.local$element=this.local$$receiver.next(),O(this.local$element.cgmUid,X)){if(this.state_0=3,this.result_0=this.local$_pkManager.nextIdAsync_za3lpa$(243,this),this.result_0===C)return C;continue}this.state_0=4;continue;case 3:var t=this.result_0;this.local$element.cgmUid=t,this.local$_generatedPks.add_11rb$(t),this.state_0=4;continue;case 4:this.local$element.cgmLct=J(),this.state_0=2;continue;case 5:if(this.state_0=6,this.result_0=this.$this._dao_0.insertListAsync_23fuft$(this.local$entityList,this),this.result_0===C)return C;continue;case 6:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},cw.prototype.insertListAsync_23fuft$=function(t,e,n){var i=new hw(this,t,e);return n?i:i.doResume(null)},dw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},dw.prototype=Object.create(N.prototype),dw.prototype.constructor=dw,dw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:F();for(var t=this.local$entityList.iterator();t.hasNext();)t.next().cgmLct=J();if(this.state_0=2,this.result_0=this.$this._dao_0.updateListAsync_23fuft$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},cw.prototype.updateListAsync_23fuft$=function(t,e,n){var i=new dw(this,t,e);return n?i:i.doResume(null)},cw.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},pw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},pw.prototype=Object.create(N.prototype),pw.prototype.constructor=pw,pw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.cgmUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(243,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.cgmUid=e,this.state_0=3;continue;case 3:if(this.local$entity.cgmLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.cgmUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},cw.prototype.insertAsync=function(t,e,n){var i=new pw(this,t,e);return n?i:i.doResume(null)},cw.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},cw.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},cw.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},cw.$metadata$={kind:c,simpleName:"CourseGroupMemberDao_ReplicateWrapper",interfaces:[qz]},mw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},mw.prototype=Object.create(N.prototype),mw.prototype.constructor=mw,mw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_w.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new mw(this,t,e);return n?i:i.doResume(null)},fw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fw.prototype=Object.create(N.prototype),fw.prototype.constructor=fw,fw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_w.prototype.replicateOnChange=function(t,e){var n=new fw(this,t);return e?n:n.doResume(null)},gw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},gw.prototype=Object.create(N.prototype),gw.prototype.constructor=gw,gw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByGroupSetAsync_3pjtqy$(this.local$setUid,this.local$clazzUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_w.prototype.findByGroupSetAsync_3pjtqy$=function(t,e,n,i){var o=new gw(this,t,e,n);return i?o:o.doResume(null)},$w.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},$w.prototype=Object.create(N.prototype),$w.prototype.constructor=$w,$w.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByGroupSetOrderedAsync_3pjtqy$(this.local$setUid,this.local$clazzUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_w.prototype.findByGroupSetOrderedAsync_3pjtqy$=function(t,e,n,i){var o=new $w(this,t,e,n);return i?o:o.doResume(null)},Ew.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ew.prototype=Object.create(N.prototype),Ew.prototype.constructor=Ew,Ew.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByPersonUid_3pjtqy$(this.local$groupSetUid,this.local$studentUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_w.prototype.findByPersonUid_3pjtqy$=function(t,e,n,i){var o=new Ew(this,t,e,n);return i?o:o.doResume(null)},yw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},yw.prototype=Object.create(N.prototype),yw.prototype.constructor=yw,yw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertListAsync_23fuft$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_w.prototype.insertListAsync_23fuft$=function(t,e,n){var i=new yw(this,t,e);return n?i:i.doResume(null)},bw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},bw.prototype=Object.create(N.prototype),bw.prototype.constructor=bw,bw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateListAsync_23fuft$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_w.prototype.updateListAsync_23fuft$=function(t,e,n){var i=new bw(this,t,e);return n?i:i.doResume(null)},_w.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},Sw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Sw.prototype=Object.create(N.prototype),Sw.prototype.constructor=Sw,Sw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_w.prototype.insertAsync=function(t,e,n){var i=new Sw(this,t,e);return n?i:i.doResume(null)},_w.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},_w.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},_w.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},_w.$metadata$={kind:c,simpleName:"CourseGroupMemberDao_Repo",interfaces:[qz]},vw.$metadata$={kind:c,simpleName:"CourseGroupSetDao",interfaces:[X6]},Cw.prototype.insert_11rb$=function(t){return this._insertAdapterCourseGroupSet_.insertAndReturnId_11rb$(t)},Nw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Nw.prototype=Object.create(N.prototype),Nw.prototype.constructor=Nw,Nw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterCourseGroupSet_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Cw.prototype.insertAsync=function(t,e,n){var i=new Nw(this,t,e);return n?i:i.doResume(null)},Cw.prototype.insertList_4ezy5m$=function(t){this._insertAdapterCourseGroupSet_.insertList_4ezy5m$(t)},Tw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Tw.prototype=Object.create(N.prototype),Tw.prototype.constructor=Tw,Tw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$entity.cgsName),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$entity.cgsTotalGroups),this.local$_stmt.setBoolean_fzusl$(3,this.local$closure$entity.cgsActive),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$entity.cgsClazzUid),this.local$_stmt.setLong_6svq3l$(5,this.local$closure$entity.cgsLct),this.local$_stmt.setLong_6svq3l$(6,this.local$closure$entity.cgsUid),this.local$tmp$=this.local$closure$_result.v,this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$closure$_result.v=this.local$tmp$+this.result_0|0,V;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},zw.prototype=Object.create(N.prototype),zw.prototype.constructor=zw,zw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_result={v:0},this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE CourseGroupSet SET cgsName = ?, cgsTotalGroups = ?, cgsActive = ?, cgsClazzUid = ?, cgsLct = ? WHERE cgsUid = ?",Lw(this.local$entity,this.local$_result),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$_result.v;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Cw.prototype.updateAsync_6xk07w$=function(t,e,n){var i=new zw(this,t,e);return n?i:i.doResume(null)},Cw.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE CourseGroupSet SET cgsName = ?, cgsTotalGroups = ?, cgsActive = ?, cgsClazzUid = ?, cgsLct = ? WHERE cgsUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setString_vqvrqt$(1,i.cgsName),t.setInt_vux9f0$(2,i.cgsTotalGroups),t.setBoolean_fzusl$(3,i.cgsActive),t.setLong_6svq3l$(4,i.cgsClazzUid),t.setLong_6svq3l$(5,i.cgsLct),t.setLong_6svq3l$(6,i.cgsUid),t.executeUpdate()}return t.getConnection().commit(),V}))},Cw.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE CourseGroupSet SET cgsName = ?, cgsTotalGroups = ?, cgsActive = ?, cgsClazzUid = ?, cgsLct = ? WHERE cgsUid = ?",(e=t,function(t){return t.setString_vqvrqt$(1,e.cgsName),t.setInt_vux9f0$(2,e.cgsTotalGroups),t.setBoolean_fzusl$(3,e.cgsActive),t.setLong_6svq3l$(4,e.cgsClazzUid),t.setLong_6svq3l$(5,e.cgsLct),t.setLong_6svq3l$(6,e.cgsUid),t.executeUpdate()}))},ww.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ww.prototype=Object.create(N.prototype),ww.prototype.constructor=ww,ww.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Rw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Rw.prototype=Object.create(N.prototype),Rw.prototype.constructor=Rw,Rw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO CourseGroupSetReplicate(cgsPk, cgsDestination)\n | SELECT DISTINCT CourseGroupSet.cgsUid AS cgsUid,\n | ? AS cgsDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 2 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | JOIN CourseGroupSet\n | ON CourseGroupSet.cgsClazzUid = Clazz.clazzUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND CourseGroupSet.cgsLct != COALESCE(\n | (SELECT cgsVersionId\n | FROM CourseGroupSetReplicate\n | WHERE cgsPk = CourseGroupSet.cgsUid\n | AND cgsDestination = ?), 0) \n | /*psql ON CONFLICT(cgsPk, cgsDestination) DO UPDATE\n | SET cgsPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO CourseGroupSetReplicate(cgsPk, cgsDestination)\n | SELECT DISTINCT CourseGroupSet.cgsUid AS cgsUid,\n | ? AS cgsDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 2 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | JOIN CourseGroupSet\n | ON CourseGroupSet.cgsClazzUid = Clazz.clazzUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND CourseGroupSet.cgsLct != COALESCE(\n | (SELECT cgsVersionId\n | FROM CourseGroupSetReplicate\n | WHERE cgsPk = CourseGroupSet.cgsUid\n | AND cgsDestination = ?), 0) \n | ON CONFLICT(cgsPk, cgsDestination) DO UPDATE\n | SET cgsPending = true\n | \n | \n |")),Ow(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Cw.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new Rw(this,t,e);return n?i:i.doResume(null)},Aw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Aw.prototype=Object.create(N.prototype),Aw.prototype.constructor=Aw,Aw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Iw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Iw.prototype=Object.create(N.prototype),Iw.prototype.constructor=Iw,Iw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO CourseGroupSetReplicate(cgsPk, cgsDestination)\n | SELECT DISTINCT CourseGroupSet.cgsUid AS cgsUid,\n | UserSession.usClientNodeId AS cgsDestination\n | FROM ChangeLog\n | JOIN CourseGroupSet\n | ON ChangeLog.chTableId = 242\n | AND ChangeLog.chEntityPk = CourseGroupSet.cgsUid\n | JOIN Clazz \n | ON Clazz.clazzUid = CourseGroupSet.cgsClazzUid \n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 8388608\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND CourseGroupSet.cgsLct != COALESCE(\n | (SELECT cgsVersionId\n | FROM CourseGroupSetReplicate\n | WHERE cgsPk = CourseGroupSet.cgsUid\n | AND cgsDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(cgsPk, cgsDestination) DO UPDATE\n | SET cgsPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO CourseGroupSetReplicate(cgsPk, cgsDestination)\n | SELECT DISTINCT CourseGroupSet.cgsUid AS cgsUid,\n | UserSession.usClientNodeId AS cgsDestination\n | FROM ChangeLog\n | JOIN CourseGroupSet\n | ON ChangeLog.chTableId = 242\n | AND ChangeLog.chEntityPk = CourseGroupSet.cgsUid\n | JOIN Clazz \n | ON Clazz.clazzUid = CourseGroupSet.cgsClazzUid \n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 8388608\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND CourseGroupSet.cgsLct != COALESCE(\n | (SELECT cgsVersionId\n | FROM CourseGroupSetReplicate\n | WHERE cgsPk = CourseGroupSet.cgsUid\n | AND cgsDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(cgsPk, cgsDestination) DO UPDATE\n | SET cgsPending = true\n | \n | \n |")),xw,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Cw.prototype.replicateOnChange=function(t,e){var n=new Iw(this,t);return e?n:n.doResume(null)},Pw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Pw.prototype=Object.create(N.prototype),Pw.prototype.constructor=Pw,Pw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$clazzUid),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Dw);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},kw.prototype=Object.create(N.prototype),kw.prototype.constructor=kw,kw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$CourseGroupSetDao_JdbcKt._db,new st(S("\n |SELECT * FROM (\n | SELECT *\n | FROM CourseGroupSet\n | WHERE cgsActive\n | AND cgsClazzUid = ?\n | ORDER BY cgsName \n | ) LIMIT ? OFFSET ?\n ")),Mw(this.local$closure$clazzUid,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Uw.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$CourseGroupSetDao_JdbcKt._db,Et("CourseGroupSet"),(n=this.this$CourseGroupSetDao_JdbcKt,i=this.closure$clazzUid,o=e,r=t,function(t,e){var s=new kw(n,i,o,r,t);return e?s:s.doResume(null)}));var n,i,o,r},Gw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Gw.prototype=Object.create(N.prototype),Gw.prototype.constructor=Gw,Gw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$clazzUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,jw);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Fw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Fw.prototype=Object.create(N.prototype),Fw.prototype.constructor=Fw,Fw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$CourseGroupSetDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (\n | SELECT *\n | FROM CourseGroupSet\n | WHERE cgsActive\n | AND cgsClazzUid = ?\n | ORDER BY cgsName \n | ) \n ")),qw(this.local$closure$clazzUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Uw.prototype.getLength=function(){return new ft(this.this$CourseGroupSetDao_JdbcKt._db,Et("CourseGroupSet"),(t=this.this$CourseGroupSetDao_JdbcKt,e=this.closure$clazzUid,function(n,i){var o=new Fw(t,e,n);return i?o:o.doResume(null)}));var t,e},Uw.$metadata$={kind:c,interfaces:[gt]},Cw.prototype.findAllCourseGroupSetForClazz_s8cxhz$=function(t){return new Uw(this,t)},Cw.prototype.findAllCourseGroupSetForClazzList_s8cxhz$=function(t){return ht(this._db,new st(S("\n |\n | SELECT *\n | FROM CourseGroupSet\n | WHERE cgsActive\n | AND cgsClazzUid = ?\n | ORDER BY cgsName \n | \n ")),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),Bw)}));var e},Hw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Hw.prototype=Object.create(N.prototype),Hw.prototype.constructor=Hw,Hw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Ww);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Cw.prototype.findByUidAsync_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT * \n | FROM CourseGroupSet \n | WHERE cgsUid = ?\n | \n ")),(n=t,function(t,e,i){var o=new Hw(n,t,e);return i?o:o.doResume(null)}),e);var n},Vw.prototype.makeSql_6taknv$=function(t){return"INSERT INTO CourseGroupSet (cgsUid, cgsName, cgsTotalGroups, cgsActive, cgsClazzUid, cgsLct) VALUES(?, ?, ?, ?, ?, ?)"},Vw.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.cgsUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.cgsUid),t.setString_vqvrqt$(2,e.cgsName),t.setInt_vux9f0$(3,e.cgsTotalGroups),t.setBoolean_fzusl$(4,e.cgsActive),t.setLong_6svq3l$(5,e.cgsClazzUid),t.setLong_6svq3l$(6,e.cgsLct)},Vw.$metadata$={kind:c,interfaces:[pt]},Cw.$metadata$={kind:c,simpleName:"CourseGroupSetDao_JdbcKt",interfaces:[vw]},Xw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Xw.prototype=Object.create(N.prototype);function qq(t,e){IG.call(this),this._db_0=t,this._dao_0=e}function Fq(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function Bq(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function Wq(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_pkManager=void 0,this.local$_generatedPks=void 0,this.local$$receiver=void 0,this.local$element=void 0,this.local$entityList=e}function Hq(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$person=e}function Vq(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$personGroup=e}function Kq(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$personGroupMember=e}function Xq(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Jq(t,e,n,i,o,r){IG.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function Yq(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function Qq(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function Zq(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function tF(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$person=e}function eF(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$username=e}function nF(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$username=e}function iF(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$username=e,this.local$passwordHash=n}function oF(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$accountPersonUid=e,this.local$personUid=n,this.local$permission=i}function rF(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$accountPersonUid=e}function sF(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$nodeId=e}function aF(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$uid=e}function cF(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$uid=e}function lF(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function uF(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$personGroup=e}function hF(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$personGroupMember=e}function dF(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function pF(){}function _F(t){pF.call(this),this._db=t,this._insertAdapterPersonGroup_=new QF(this._db)}function mF(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function fF(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$entity=t,this.local$closure$_result=e,this.local$tmp$=void 0,this.local$_stmt=n}function gF(t,e){return function(n,i,o){var r=new fF(t,e,n,i);return o?r:r.doResume(null)}}function $F(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_result=void 0,this.local$entity=e}function EF(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function yF(t){return function(e,n,i){var o=new EF(t,e,n);return i?o:o.doResume(null)}}function bF(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function SF(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function vF(t,e,n){var i=new SF(t,e);return n?i:i.doResume(null)}function CF(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function NF(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function TF(t,e,n){var i=new NF(t,e);return n?i:i.doResume(null)}function LF(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function zF(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function wF(t){return function(e,n,i){var o=new zF(t,e,n);return i?o:o.doResume(null)}}function OF(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function RF(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function AF(t,e,n){var i=new RF(t,e);return n?i:i.doResume(null)}function xF(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function IF(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function UF(t){return function(e,n,i){var o=new IF(t,e,n);return i?o:o.doResume(null)}}function DF(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function PF(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function MF(t,e,n){var i=new PF(t,e);return n?i:i.doResume(null)}function kF(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function jF(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function GF(t){return function(e,n,i){var o=new jF(t,e,n);return i?o:o.doResume(null)}}function qF(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function FF(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("groupUid"),i=e.getLong_61zpoe$("groupMasterCsn"),o=e.getLong_61zpoe$("groupLocalCsn"),r=e.getInt_61zpoe$("groupLastChangedBy"),s=e.getLong_61zpoe$("groupLct"),a=e.getString_61zpoe$("groupName"),c=e.getBoolean_61zpoe$("groupActive"),l=e.getInt_61zpoe$("personGroupFlag"),u=new Kct;return u.groupUid=n,u.groupMasterCsn=i,u.groupLocalCsn=o,u.groupLastChangedBy=r,u.groupLct=s,u.groupName=a,u.groupActive=c,u.personGroupFlag=l,u}));var e}function BF(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("groupUid"),i=e.getLong_61zpoe$("groupMasterCsn"),o=e.getLong_61zpoe$("groupLocalCsn"),r=e.getInt_61zpoe$("groupLastChangedBy"),s=e.getLong_61zpoe$("groupLct"),a=e.getString_61zpoe$("groupName"),c=e.getBoolean_61zpoe$("groupActive"),l=e.getInt_61zpoe$("personGroupFlag"),u=new Kct;return u.groupUid=n,u.groupMasterCsn=i,u.groupLocalCsn=o,u.groupLastChangedBy=r,u.groupLct=s,u.groupName=a,u.groupActive=c,u.personGroupFlag=l,u}));var e}function WF(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function HF(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("groupUid"),i=e.getLong_61zpoe$("groupMasterCsn"),o=e.getLong_61zpoe$("groupLocalCsn"),r=e.getInt_61zpoe$("groupLastChangedBy"),s=e.getLong_61zpoe$("groupLct"),a=e.getString_61zpoe$("groupName"),c=e.getBoolean_61zpoe$("groupActive"),l=e.getInt_61zpoe$("personGroupFlag"),u=new Kct;return u.groupUid=n,u.groupMasterCsn=i,u.groupLocalCsn=o,u.groupLastChangedBy=r,u.groupLct=s,u.groupName=a,u.groupActive=c,u.personGroupFlag=l,u}));var e}function VF(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function KF(t){return function(e,n,i){var o=new VF(t,e,n);return i?o:o.doResume(null)}}function XF(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$PersonGroupDao_JdbcKt=t,this.local$closure$uid=e}function JF(t){return lt(t,null,(e=t,function(t){return e.getString_za3lpa$(1)}));var e}function YF(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$groupUid=t,this.local$_stmt=e}function QF(t){pt.call(this,t)}function ZF(t,e){pF.call(this),this._db_0=t,this._dao_0=e}function tB(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function eB(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function nB(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function iB(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function oB(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function rB(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function sB(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function aB(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function cB(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function lB(t,e,n,i,o,r){pF.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function uB(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function hB(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function dB(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function pB(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function _B(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function mB(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function fB(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function gB(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function $B(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$uid=e}function EB(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function yB(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$groupUid=e}function bB(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function SB(){}function vB(t){SB.call(this),this._db=t,this._insertAdapterPersonGroupMember_=new ZB(this._db)}function CB(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function NB(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function TB(t){return function(e,n,i){var o=new NB(t,e,n);return i?o:o.doResume(null)}}function LB(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function zB(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function wB(t,e,n){var i=new zB(t,e);return n?i:i.doResume(null)}function OB(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function RB(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function AB(t,e,n){var i=new RB(t,e);return n?i:i.doResume(null)}function xB(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function IB(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function UB(t){return function(e,n,i){var o=new IB(t,e,n);return i?o:o.doResume(null)}}function DB(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function PB(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function MB(t,e,n){var i=new PB(t,e);return n?i:i.doResume(null)}function kB(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function jB(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function GB(t){return function(e,n,i){var o=new jB(t,e,n);return i?o:o.doResume(null)}}function qB(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function FB(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("groupMemberUid"),i=e.getBoolean_61zpoe$("groupMemberActive"),o=e.getLong_61zpoe$("groupMemberPersonUid"),r=e.getLong_61zpoe$("groupMemberGroupUid"),s=e.getLong_61zpoe$("groupMemberMasterCsn"),a=e.getLong_61zpoe$("groupMemberLocalCsn"),c=e.getInt_61zpoe$("groupMemberLastChangedBy"),l=e.getLong_61zpoe$("groupMemberLct"),u=new ilt;return u.groupMemberUid=n,u.groupMemberActive=i,u.groupMemberPersonUid=o,u.groupMemberGroupUid=r,u.groupMemberMasterCsn=s,u.groupMemberLocalCsn=a,u.groupMemberLastChangedBy=c,u.groupMemberLct=l,u}));var e}function BB(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$personUid=t,this.local$_stmt=e}function WB(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("groupMemberUid"),i=e.getBoolean_61zpoe$("groupMemberActive"),o=e.getLong_61zpoe$("groupMemberPersonUid"),r=e.getLong_61zpoe$("groupMemberGroupUid"),s=e.getLong_61zpoe$("groupMemberMasterCsn"),a=e.getLong_61zpoe$("groupMemberLocalCsn"),c=e.getInt_61zpoe$("groupMemberLastChangedBy"),l=e.getLong_61zpoe$("groupMemberLct"),u=new ilt;return u.groupMemberUid=n,u.groupMemberActive=i,u.groupMemberPersonUid=o,u.groupMemberGroupUid=r,u.groupMemberMasterCsn=s,u.groupMemberLocalCsn=a,u.groupMemberLastChangedBy=c,u.groupMemberLct=l,u}));var e}function HB(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$groupUid=t,this.local$closure$personUid=e,this.local$_stmt=n}function VB(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$closure$newGroup=t,this.local$closure$changeTime=e,this.local$closure$personUid=n,this.local$closure$oldGroup=i,this.local$_stmt=o}function KB(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$closure$activeStatus=t,this.local$closure$updateTime=e,this.local$closure$personUid=n,this.local$closure$groupUid=i,this.local$_stmt=o}function XB(t,e,n,i){return function(o,r,s){var a=new KB(t,e,n,i,o,r);return s?a:a.doResume(null)}}function JB(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.$this=t,this.local$activeStatus=e,this.local$personUid=n,this.local$groupUid=i,this.local$updateTime=o}function YB(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("groupMemberUid"),i=e.getBoolean_61zpoe$("groupMemberActive"),o=e.getLong_61zpoe$("groupMemberPersonUid"),r=e.getLong_61zpoe$("groupMemberGroupUid"),s=e.getLong_61zpoe$("groupMemberMasterCsn"),a=e.getLong_61zpoe$("groupMemberLocalCsn"),c=e.getInt_61zpoe$("groupMemberLastChangedBy"),l=e.getLong_61zpoe$("groupMemberLct"),u=new ilt;return u.groupMemberUid=n,u.groupMemberActive=i,u.groupMemberPersonUid=o,u.groupMemberGroupUid=r,u.groupMemberMasterCsn=s,u.groupMemberLocalCsn=a,u.groupMemberLastChangedBy=c,u.groupMemberLct=l,u}));var e}function QB(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$personUid=t,this.local$closure$groupUid=e,this.local$_stmt=n}function ZB(t){pt.call(this,t)}function tW(t,e){SB.call(this),this._db_0=t,this._dao_0=e}function eW(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function nW(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function iW(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function oW(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function rW(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function sW(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function aW(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.$this=t,this.local$activeStatus=e,this.local$personUid=n,this.local$groupUid=i,this.local$updateTime=o}function cW(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function lW(t,e,n,i,o,r){SB.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function uW(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function hW(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function dW(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function pW(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function _W(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function mW(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function fW(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$personUid=e}function gW(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$groupUid=e,this.local$personUid=n}function $W(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.$this=t,this.local$personUid=e,this.local$newGroup=n,this.local$oldGroup=i,this.local$changeTime=o}function EW(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.$this=t,this.local$activeStatus=e,this.local$personUid=n,this.local$groupUid=i,this.local$updateTime=o}function yW(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$personUid=e,this.local$groupUid=n}function bW(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function SW(){}function vW(t){SW.call(this),this._db=t,this._insertAdapterPersonParentJoin_=new HW(this._db)}function CW(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function NW(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$personParentJoin=t,this.local$_stmt=e}function TW(t){return function(e,n,i){var o=new NW(t,e,n);return i?o:o.doResume(null)}}function LW(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$personParentJoin=e}function zW(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function wW(t){return function(e,n,i){var o=new zW(t,e,n);return i?o:o.doResume(null)}}function OW(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function RW(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function AW(t,e,n){var i=new RW(t,e);return n?i:i.doResume(null)}function xW(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function IW(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("ppjUid"),i=e.getLong_61zpoe$("ppjPcsn"),o=e.getLong_61zpoe$("ppjLcsn"),r=e.getInt_61zpoe$("ppjLcb"),s=e.getLong_61zpoe$("ppjLct"),a=e.getLong_61zpoe$("ppjParentPersonUid"),c=e.getLong_61zpoe$("ppjMinorPersonUid"),l=e.getInt_61zpoe$("ppjRelationship"),u=e.getString_61zpoe$("ppjEmail"),h=e.getString_61zpoe$("ppjPhone"),d=e.getBoolean_61zpoe$("ppjInactive"),p=e.getInt_61zpoe$("ppjStatus"),_=e.getLong_61zpoe$("ppjApprovalTiemstamp"),m=e.getString_61zpoe$("ppjApprovalIpAddr"),f=0,g=e.getLong_61zpoe$("personUid");e.wasNull()&&(f=f+1|0);var $=e.getString_61zpoe$("username");e.wasNull()&&(f=f+1|0);var E=e.getString_61zpoe$("firstNames");e.wasNull()&&(f=f+1|0);var y=e.getString_61zpoe$("lastName");e.wasNull()&&(f=f+1|0);var b=e.getString_61zpoe$("emailAddr");e.wasNull()&&(f=f+1|0);var S=e.getString_61zpoe$("phoneNum");e.wasNull()&&(f=f+1|0);var v=e.getInt_61zpoe$("gender");e.wasNull()&&(f=f+1|0);var C=e.getBoolean_61zpoe$("active");e.wasNull()&&(f=f+1|0);var N=e.getBoolean_61zpoe$("admin");e.wasNull()&&(f=f+1|0);var T=e.getString_61zpoe$("personNotes");e.wasNull()&&(f=f+1|0);var L=e.getString_61zpoe$("fatherName");e.wasNull()&&(f=f+1|0);var z=e.getString_61zpoe$("fatherNumber");e.wasNull()&&(f=f+1|0);var w=e.getString_61zpoe$("motherName");e.wasNull()&&(f=f+1|0);var O=e.getString_61zpoe$("motherNum");e.wasNull()&&(f=f+1|0);var R=e.getLong_61zpoe$("dateOfBirth");e.wasNull()&&(f=f+1|0);var A=e.getString_61zpoe$("personAddress");e.wasNull()&&(f=f+1|0);var x=e.getString_61zpoe$("personOrgId");e.wasNull()&&(f=f+1|0);var I=e.getLong_61zpoe$("personGroupUid");e.wasNull()&&(f=f+1|0);var U=e.getLong_61zpoe$("personMasterChangeSeqNum");e.wasNull()&&(f=f+1|0);var D=e.getLong_61zpoe$("personLocalChangeSeqNum");e.wasNull()&&(f=f+1|0);var P=e.getInt_61zpoe$("personLastChangedBy");e.wasNull()&&(f=f+1|0);var M=e.getLong_61zpoe$("personLct");e.wasNull()&&(f=f+1|0);var k=e.getString_61zpoe$("personCountry");e.wasNull()&&(f=f+1|0);var j=e.getInt_61zpoe$("personType");e.wasNull()&&(f=f+1|0);var G=24===f,q=new Elt;if(q.ppjUid=n,q.ppjPcsn=i,q.ppjLcsn=o,q.ppjLcb=r,q.ppjLct=s,q.ppjParentPersonUid=a,q.ppjMinorPersonUid=c,q.ppjRelationship=l,q.ppjEmail=u,q.ppjPhone=h,q.ppjInactive=d,q.ppjStatus=p,q.ppjApprovalTiemstamp=_,q.ppjApprovalIpAddr=m,!G){var F=new zct;F.personUid=g,F.username=$,F.firstNames=E,F.lastName=y,F.emailAddr=b,F.phoneNum=S,F.gender=v,F.active=C,F.admin=N,F.personNotes=T,F.fatherName=L,F.fatherNumber=z,F.motherName=w,F.motherNum=O,F.dateOfBirth=R,F.personAddress=A,F.personOrgId=x,F.personGroupUid=I,F.personMasterChangeSeqNum=U,F.personLocalChangeSeqNum=D,F.personLastChangedBy=P,F.personLct=M,F.personCountry=k,F.personType=j,q.minorPerson=F}return q}));var e}function UW(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function DW(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("ppjUid"),i=e.getLong_61zpoe$("ppjPcsn"),o=e.getLong_61zpoe$("ppjLcsn"),r=e.getInt_61zpoe$("ppjLcb"),s=e.getLong_61zpoe$("ppjLct"),a=e.getLong_61zpoe$("ppjParentPersonUid"),c=e.getLong_61zpoe$("ppjMinorPersonUid"),l=e.getInt_61zpoe$("ppjRelationship"),u=e.getString_61zpoe$("ppjEmail"),h=e.getString_61zpoe$("ppjPhone"),d=e.getBoolean_61zpoe$("ppjInactive"),p=e.getInt_61zpoe$("ppjStatus"),_=e.getLong_61zpoe$("ppjApprovalTiemstamp"),m=e.getString_61zpoe$("ppjApprovalIpAddr"),f=0,g=e.getLong_61zpoe$("personUid");e.wasNull()&&(f=f+1|0);var $=e.getString_61zpoe$("username");e.wasNull()&&(f=f+1|0);var E=e.getString_61zpoe$("firstNames");e.wasNull()&&(f=f+1|0);var y=e.getString_61zpoe$("lastName");e.wasNull()&&(f=f+1|0);var b=e.getString_61zpoe$("emailAddr");e.wasNull()&&(f=f+1|0);var S=e.getString_61zpoe$("phoneNum");e.wasNull()&&(f=f+1|0);var v=e.getInt_61zpoe$("gender");e.wasNull()&&(f=f+1|0);var C=e.getBoolean_61zpoe$("active");e.wasNull()&&(f=f+1|0);var N=e.getBoolean_61zpoe$("admin");e.wasNull()&&(f=f+1|0);var T=e.getString_61zpoe$("personNotes");e.wasNull()&&(f=f+1|0);var L=e.getString_61zpoe$("fatherName");e.wasNull()&&(f=f+1|0);var z=e.getString_61zpoe$("fatherNumber");e.wasNull()&&(f=f+1|0);var w=e.getString_61zpoe$("motherName");e.wasNull()&&(f=f+1|0);var O=e.getString_61zpoe$("motherNum");e.wasNull()&&(f=f+1|0);var R=e.getLong_61zpoe$("dateOfBirth");e.wasNull()&&(f=f+1|0);var A=e.getString_61zpoe$("personAddress");e.wasNull()&&(f=f+1|0);var x=e.getString_61zpoe$("personOrgId");e.wasNull()&&(f=f+1|0);var I=e.getLong_61zpoe$("personGroupUid");e.wasNull()&&(f=f+1|0);var U=e.getLong_61zpoe$("personMasterChangeSeqNum");e.wasNull()&&(f=f+1|0);var D=e.getLong_61zpoe$("personLocalChangeSeqNum");e.wasNull()&&(f=f+1|0);var P=e.getInt_61zpoe$("personLastChangedBy");e.wasNull()&&(f=f+1|0);var M=e.getLong_61zpoe$("personLct");e.wasNull()&&(f=f+1|0);var k=e.getString_61zpoe$("personCountry");e.wasNull()&&(f=f+1|0);var j=e.getInt_61zpoe$("personType");e.wasNull()&&(f=f+1|0);var G=24===f,q=new Elt;if(q.ppjUid=n,q.ppjPcsn=i,q.ppjLcsn=o,q.ppjLcb=r,q.ppjLct=s,q.ppjParentPersonUid=a,q.ppjMinorPersonUid=c,q.ppjRelationship=l,q.ppjEmail=u,q.ppjPhone=h,q.ppjInactive=d,q.ppjStatus=p,q.ppjApprovalTiemstamp=_,q.ppjApprovalIpAddr=m,!G){var F=new zct;F.personUid=g,F.username=$,F.firstNames=E,F.lastName=y,F.emailAddr=b,F.phoneNum=S,F.gender=v,F.active=C,F.admin=N,F.personNotes=T,F.fatherName=L,F.fatherNumber=z,F.motherName=w,F.motherNum=O,F.dateOfBirth=R,F.personAddress=A,F.personOrgId=x,F.personGroupUid=I,F.personMasterChangeSeqNum=U,F.personLocalChangeSeqNum=D,F.personLastChangedBy=P,F.personLct=M,F.personCountry=k,F.personType=j,q.minorPerson=F}return q}));var e}function PW(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function MW(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("ppjUid"),i=e.getLong_61zpoe$("ppjPcsn"),o=e.getLong_61zpoe$("ppjLcsn"),r=e.getInt_61zpoe$("ppjLcb"),s=e.getLong_61zpoe$("ppjLct"),a=e.getLong_61zpoe$("ppjParentPersonUid"),c=e.getLong_61zpoe$("ppjMinorPersonUid"),l=e.getInt_61zpoe$("ppjRelationship"),u=e.getString_61zpoe$("ppjEmail"),h=e.getString_61zpoe$("ppjPhone"),d=e.getBoolean_61zpoe$("ppjInactive"),p=e.getInt_61zpoe$("ppjStatus"),_=e.getLong_61zpoe$("ppjApprovalTiemstamp"),m=e.getString_61zpoe$("ppjApprovalIpAddr"),f=new hlt;return f.ppjUid=n,f.ppjPcsn=i,f.ppjLcsn=o,f.ppjLcb=r,f.ppjLct=s,f.ppjParentPersonUid=a,f.ppjMinorPersonUid=c,f.ppjRelationship=l,f.ppjEmail=u,f.ppjPhone=h,f.ppjInactive=d,f.ppjStatus=p,f.ppjApprovalTiemstamp=_,f.ppjApprovalIpAddr=m,f}));var e}function kW(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$minorPersonUid=t,this.local$_stmt=e}function jW(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("parentPersonUid"),i=e.getLong_61zpoe$("clazzUid"),o=new Lct;return o.parentPersonUid=n,o.clazzUid=i,o}));var e}function GW(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$minorPersonUid=t,this.local$closure$clazzUidFilter=e,this.local$_stmt=n}function qW(t){return lt(t,!1,(e=t,function(t){return e.getBoolean_za3lpa$(1)}));var e}function FW(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$minorPersonUid=t,this.local$closure$userPersonUid=e,this.local$_stmt=n}function BW(t){return lt(t,!1,(e=t,function(t){return e.getBoolean_za3lpa$(1)}));var e}function WW(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$minorPersonUid=t,this.local$_stmt=e}function HW(t){pt.call(this,t)}function VW(t,e){SW.call(this),this._db_0=t,this._dao_0=e}function KW(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function XW(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function JW(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function YW(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$personParentJoin=e}function QW(t,e,n,i,o,r){SW.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function ZW(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function tH(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function eH(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function nH(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$uid=e}function iH(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$minorPersonUid=e}function oH(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$minorPersonUid=e,this.local$clazzUidFilter=n}function rH(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$userPersonUid=e,this.local$minorPersonUid=n}function sH(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$personParentJoin=e}function aH(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$minorPersonUid=e}function cH(){}function lH(t){cH.call(this),this._db=t,this._insertAdapterPersonPicture_=new TH(this._db)}function uH(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function hH(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$personPicture=t,this.local$_stmt=e}function dH(t){return function(e,n,i){var o=new hH(t,e,n);return i?o:o.doResume(null)}}function pH(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$personPicture=e}function _H(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function mH(t){return function(e,n,i){var o=new _H(t,e,n);return i?o:o.doResume(null)}}function fH(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function gH(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function $H(t,e,n){var i=new gH(t,e);return n?i:i.doResume(null)}function EH(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function yH(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("personPictureUid"),i=e.getLong_61zpoe$("personPicturePersonUid"),o=e.getLong_61zpoe$("personPictureMasterCsn"),r=e.getLong_61zpoe$("personPictureLocalCsn"),s=e.getInt_61zpoe$("personPictureLastChangedBy"),a=e.getLong_61zpoe$("personPictureLct"),c=e.getString_61zpoe$("personPictureUri"),l=e.getString_61zpoe$("personPictureMd5"),u=e.getInt_61zpoe$("fileSize"),h=e.getLong_61zpoe$("picTimestamp"),d=e.getString_61zpoe$("mimeType"),p=e.getBoolean_61zpoe$("personPictureActive"),_=new Llt;return _.personPictureUid=n,_.personPicturePersonUid=i,_.personPictureMasterCsn=o,_.personPictureLocalCsn=r,_.personPictureLastChangedBy=s,_.personPictureLct=a,_.personPictureUri=c,_.personPictureMd5=l,_.fileSize=u,_.picTimestamp=h,_.mimeType=d,_.personPictureActive=p,_}));var e}function bH(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$personUid=t,this.local$_stmt=e}function SH(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("personPictureUid"),i=e.getLong_61zpoe$("personPicturePersonUid"),o=e.getLong_61zpoe$("personPictureMasterCsn"),r=e.getLong_61zpoe$("personPictureLocalCsn"),s=e.getInt_61zpoe$("personPictureLastChangedBy"),a=e.getLong_61zpoe$("personPictureLct"),c=e.getString_61zpoe$("personPictureUri"),l=e.getString_61zpoe$("personPictureMd5"),u=e.getInt_61zpoe$("fileSize"),h=e.getLong_61zpoe$("picTimestamp"),d=e.getString_61zpoe$("mimeType"),p=e.getBoolean_61zpoe$("personPictureActive"),_=new Llt;return _.personPictureUid=n,_.personPicturePersonUid=i,_.personPictureMasterCsn=o,_.personPictureLocalCsn=r,_.personPictureLastChangedBy=s,_.personPictureLct=a,_.personPictureUri=c,_.personPictureMd5=l,_.fileSize=u,_.picTimestamp=h,_.mimeType=d,_.personPictureActive=p,_}));var e}function vH(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$personUid=t,this.local$_stmt=e}function CH(t){return function(e,n,i){var o=new vH(t,e,n);return i?o:o.doResume(null)}}function NH(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$PersonPictureDao_JdbcKt=t,this.local$closure$personUid=e}function TH(t){pt.call(this,t)}Xw.prototype.constructor=Xw,Xw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Kw.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new Xw(this,t,e);return n?i:i.doResume(null)},Jw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Jw.prototype=Object.create(N.prototype),Jw.prototype.constructor=Jw,Jw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Kw.prototype.replicateOnChange=function(t,e){var n=new Jw(this,t);return e?n:n.doResume(null)},Kw.prototype.updateAsync_6xk07w$=function(t,e){return t.cgsLct=J(),this._dao_0.updateAsync_6xk07w$(t,e)},Kw.prototype.findAllCourseGroupSetForClazz_s8cxhz$=function(t){return this._dao_0.findAllCourseGroupSetForClazz_s8cxhz$(t)},Kw.prototype.findAllCourseGroupSetForClazzList_s8cxhz$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Kw.prototype.findByUidAsync_s8cxhz$=function(t,e){return this._dao_0.findByUidAsync_s8cxhz$(t,e)},Kw.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Yw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Yw.prototype=Object.create(N.prototype),Yw.prototype.constructor=Yw,Yw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.cgsUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(242,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.cgsUid=e,this.state_0=3;continue;case 3:if(this.local$entity.cgsLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.cgsUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Kw.prototype.insertAsync=function(t,e,n){var i=new Yw(this,t,e);return n?i:i.doResume(null)},Kw.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Kw.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Kw.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Kw.$metadata$={kind:c,simpleName:"CourseGroupSetDao_ReplicateWrapper",interfaces:[vw]},Zw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Zw.prototype=Object.create(N.prototype),Zw.prototype.constructor=Zw,Zw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Qw.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new Zw(this,t,e);return n?i:i.doResume(null)},tO.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},tO.prototype=Object.create(N.prototype),tO.prototype.constructor=tO,tO.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Qw.prototype.replicateOnChange=function(t,e){var n=new tO(this,t);return e?n:n.doResume(null)},eO.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},eO.prototype=Object.create(N.prototype),eO.prototype.constructor=eO,eO.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateAsync_6xk07w$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Qw.prototype.updateAsync_6xk07w$=function(t,e,n){var i=new eO(this,t,e);return n?i:i.doResume(null)},Qw.prototype.findAllCourseGroupSetForClazz_s8cxhz$=function(t){return this._dao.findAllCourseGroupSetForClazz_s8cxhz$(t)},Qw.prototype.findAllCourseGroupSetForClazzList_s8cxhz$=function(t){return this._dao.findAllCourseGroupSetForClazzList_s8cxhz$(t)},nO.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},nO.prototype=Object.create(N.prototype),nO.prototype.constructor=nO,nO.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByUidAsync_s8cxhz$(this.local$uid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Qw.prototype.findByUidAsync_s8cxhz$=function(t,e,n){var i=new nO(this,t,e);return n?i:i.doResume(null)},Qw.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},iO.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},iO.prototype=Object.create(N.prototype),iO.prototype.constructor=iO,iO.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Qw.prototype.insertAsync=function(t,e,n){var i=new iO(this,t,e);return n?i:i.doResume(null)},Qw.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},Qw.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},Qw.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},Qw.$metadata$={kind:c,simpleName:"CourseGroupSetDao_Repo",interfaces:[vw]},oO.$metadata$={kind:c,simpleName:"CoursePictureDao",interfaces:[X6]},rO.prototype.insert_11rb$=function(t){return this._insertAdapterCoursePicture_.insertAndReturnId_11rb$(t)},sO.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},sO.prototype=Object.create(N.prototype),sO.prototype.constructor=sO,sO.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterCoursePicture_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},rO.prototype.insertAsync=function(t,e,n){var i=new sO(this,t,e);return n?i:i.doResume(null)},rO.prototype.insertList_4ezy5m$=function(t){this._insertAdapterCoursePicture_.insertList_4ezy5m$(t)},aO.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},aO.prototype=Object.create(N.prototype),aO.prototype.constructor=aO,aO.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$coursePicture.coursePictureClazzUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$coursePicture.coursePictureMasterCsn),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$coursePicture.coursePictureLocalCsn),this.local$_stmt.setInt_vux9f0$(4,this.local$closure$coursePicture.coursePictureLastChangedBy),this.local$_stmt.setLong_6svq3l$(5,this.local$closure$coursePicture.coursePictureLct),this.local$_stmt.setString_vqvrqt$(6,this.local$closure$coursePicture.coursePictureUri),this.local$_stmt.setString_vqvrqt$(7,this.local$closure$coursePicture.coursePictureMd5),this.local$_stmt.setInt_vux9f0$(8,this.local$closure$coursePicture.coursePictureFileSize),this.local$_stmt.setLong_6svq3l$(9,this.local$closure$coursePicture.coursePictureTimestamp),this.local$_stmt.setString_vqvrqt$(10,this.local$closure$coursePicture.coursePictureMimeType),this.local$_stmt.setBoolean_fzusl$(11,this.local$closure$coursePicture.coursePictureActive),this.local$_stmt.setLong_6svq3l$(12,this.local$closure$coursePicture.coursePictureUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lO.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},lO.prototype=Object.create(N.prototype),lO.prototype.constructor=lO,lO.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE CoursePicture SET coursePictureClazzUid = ?, coursePictureMasterCsn = ?, coursePictureLocalCsn = ?, coursePictureLastChangedBy = ?, coursePictureLct = ?, coursePictureUri = ?, coursePictureMd5 = ?, coursePictureFileSize = ?, coursePictureTimestamp = ?, coursePictureMimeType = ?, coursePictureActive = ? WHERE coursePictureUid = ?",cO(this.local$coursePicture),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},rO.prototype.updateAsync_xhijq5$=function(t,e,n){var i=new lO(this,t,e);return n?i:i.doResume(null)},rO.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE CoursePicture SET coursePictureClazzUid = ?, coursePictureMasterCsn = ?, coursePictureLocalCsn = ?, coursePictureLastChangedBy = ?, coursePictureLct = ?, coursePictureUri = ?, coursePictureMd5 = ?, coursePictureFileSize = ?, coursePictureTimestamp = ?, coursePictureMimeType = ?, coursePictureActive = ? WHERE coursePictureUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.coursePictureClazzUid),t.setLong_6svq3l$(2,i.coursePictureMasterCsn),t.setLong_6svq3l$(3,i.coursePictureLocalCsn),t.setInt_vux9f0$(4,i.coursePictureLastChangedBy),t.setLong_6svq3l$(5,i.coursePictureLct),t.setString_vqvrqt$(6,i.coursePictureUri),t.setString_vqvrqt$(7,i.coursePictureMd5),t.setInt_vux9f0$(8,i.coursePictureFileSize),t.setLong_6svq3l$(9,i.coursePictureTimestamp),t.setString_vqvrqt$(10,i.coursePictureMimeType),t.setBoolean_fzusl$(11,i.coursePictureActive),t.setLong_6svq3l$(12,i.coursePictureUid),t.executeUpdate()}return t.getConnection().commit(),V}))},rO.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE CoursePicture SET coursePictureClazzUid = ?, coursePictureMasterCsn = ?, coursePictureLocalCsn = ?, coursePictureLastChangedBy = ?, coursePictureLct = ?, coursePictureUri = ?, coursePictureMd5 = ?, coursePictureFileSize = ?, coursePictureTimestamp = ?, coursePictureMimeType = ?, coursePictureActive = ? WHERE coursePictureUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.coursePictureClazzUid),t.setLong_6svq3l$(2,e.coursePictureMasterCsn),t.setLong_6svq3l$(3,e.coursePictureLocalCsn),t.setInt_vux9f0$(4,e.coursePictureLastChangedBy),t.setLong_6svq3l$(5,e.coursePictureLct),t.setString_vqvrqt$(6,e.coursePictureUri),t.setString_vqvrqt$(7,e.coursePictureMd5),t.setInt_vux9f0$(8,e.coursePictureFileSize),t.setLong_6svq3l$(9,e.coursePictureTimestamp),t.setString_vqvrqt$(10,e.coursePictureMimeType),t.setBoolean_fzusl$(11,e.coursePictureActive),t.setLong_6svq3l$(12,e.coursePictureUid),t.executeUpdate()}))},uO.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},uO.prototype=Object.create(N.prototype),uO.prototype.constructor=uO,uO.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dO.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},dO.prototype=Object.create(N.prototype),dO.prototype.constructor=dO,dO.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO CoursePictureReplicate(cpPk, cpDestination)\n | SELECT DISTINCT CoursePicture.coursePictureUid AS cpPk,\n | ? AS cpDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 2 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | \n | JOIN CoursePicture\n | ON CoursePicture.coursePictureClazzUid = Clazz.clazzUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND CoursePicture.coursePictureLct != COALESCE(\n | (SELECT cpVersionId\n | FROM CoursePictureReplicate\n | WHERE cpPk = CoursePicture.coursePictureUid\n | AND cpDestination = ?), 0) \n | /*psql ON CONFLICT(cpPk, cpDestination) DO UPDATE\n | SET cpPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO CoursePictureReplicate(cpPk, cpDestination)\n | SELECT DISTINCT CoursePicture.coursePictureUid AS cpPk,\n | ? AS cpDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 2 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | \n | JOIN CoursePicture\n | ON CoursePicture.coursePictureClazzUid = Clazz.clazzUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND CoursePicture.coursePictureLct != COALESCE(\n | (SELECT cpVersionId\n | FROM CoursePictureReplicate\n | WHERE cpPk = CoursePicture.coursePictureUid\n | AND cpDestination = ?), 0) \n | ON CONFLICT(cpPk, cpDestination) DO UPDATE\n | SET cpPending = true\n | \n | \n |")),hO(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},rO.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new dO(this,t,e);return n?i:i.doResume(null)},pO.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},pO.prototype=Object.create(N.prototype),pO.prototype.constructor=pO,pO.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},mO.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},mO.prototype=Object.create(N.prototype),mO.prototype.constructor=mO,mO.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO CoursePictureReplicate(cpPk, cpDestination)\n | SELECT DISTINCT CoursePicture.coursePictureUid AS cpUid,\n | UserSession.usClientNodeId AS cpDestination\n | FROM ChangeLog\n | JOIN CoursePicture\n | ON ChangeLog.chTableId = 125\n | AND ChangeLog.chEntityPk = CoursePicture.coursePictureUid\n | JOIN Clazz \n | ON CoursePicture.coursePictureClazzUid = Clazz.clazzUid\n | \n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 2 \n | \n | \n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | \n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND CoursePicture.coursePictureLct != COALESCE(\n | (SELECT cpVersionId\n | FROM CoursePictureReplicate\n | WHERE cpPk = CoursePicture.coursePictureUid\n | AND cpDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(cpPk, cpDestination) DO UPDATE\n | SET cpPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO CoursePictureReplicate(cpPk, cpDestination)\n | SELECT DISTINCT CoursePicture.coursePictureUid AS cpUid,\n | UserSession.usClientNodeId AS cpDestination\n | FROM ChangeLog\n | JOIN CoursePicture\n | ON ChangeLog.chTableId = 125\n | AND ChangeLog.chEntityPk = CoursePicture.coursePictureUid\n | JOIN Clazz \n | ON CoursePicture.coursePictureClazzUid = Clazz.clazzUid\n | \n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 2 \n | \n | \n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | \n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND CoursePicture.coursePictureLct != COALESCE(\n | (SELECT cpVersionId\n | FROM CoursePictureReplicate\n | WHERE cpPk = CoursePicture.coursePictureUid\n | AND cpDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(cpPk, cpDestination) DO UPDATE\n | SET cpPending = true\n | \n | \n |")),_O,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},rO.prototype.replicateOnChange=function(t,e){var n=new mO(this,t);return e?n:n.doResume(null)},gO.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},gO.prototype=Object.create(N.prototype),gO.prototype.constructor=gO,gO.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$clazzUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,fO);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},rO.prototype.findByClazzUidAsync_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |SELECT * FROM CoursePicture \n | WHERE coursePictureClazzUid = ?\n | AND CAST(coursePictureActive AS INTEGER) = 1\n | ORDER BY coursePictureTimestamp DESC LIMIT 1\n ")),(n=t,function(t,e,i){var o=new gO(n,t,e);return i?o:o.doResume(null)}),e);var n},EO.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},EO.prototype=Object.create(N.prototype),EO.prototype.constructor=EO,EO.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$clazzUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,$O);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},bO.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},bO.prototype=Object.create(N.prototype),bO.prototype.constructor=bO,bO.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$CoursePictureDao_JdbcKt._db,new st("SELECT * FROM CoursePicture where coursePictureClazzUid = ? ORDER BY coursePictureTimestamp DESC LIMIT 1"),yO(this.local$closure$clazzUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},rO.prototype.findByClazzUidLive_s8cxhz$=function(t){return new ft(this._db,Et("CoursePicture"),(e=this,n=t,function(t,i){var o=new bO(e,n,t);return i?o:o.doResume(null)}));var e,n},SO.prototype.makeSql_6taknv$=function(t){return"INSERT INTO CoursePicture (coursePictureUid, coursePictureClazzUid, coursePictureMasterCsn, coursePictureLocalCsn, coursePictureLastChangedBy, coursePictureLct, coursePictureUri, coursePictureMd5, coursePictureFileSize, coursePictureTimestamp, coursePictureMimeType, coursePictureActive) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},SO.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.coursePictureUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.coursePictureUid),t.setLong_6svq3l$(2,e.coursePictureClazzUid),t.setLong_6svq3l$(3,e.coursePictureMasterCsn),t.setLong_6svq3l$(4,e.coursePictureLocalCsn),t.setInt_vux9f0$(5,e.coursePictureLastChangedBy),t.setLong_6svq3l$(6,e.coursePictureLct),t.setString_vqvrqt$(7,e.coursePictureUri),t.setString_vqvrqt$(8,e.coursePictureMd5),t.setInt_vux9f0$(9,e.coursePictureFileSize),t.setLong_6svq3l$(10,e.coursePictureTimestamp),t.setString_vqvrqt$(11,e.coursePictureMimeType),t.setBoolean_fzusl$(12,e.coursePictureActive)},SO.$metadata$={kind:c,interfaces:[pt]},rO.$metadata$={kind:c,simpleName:"CoursePictureDao_JdbcKt",interfaces:[oO]},CO.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},CO.prototype=Object.create(N.prototype),CO.prototype.constructor=CO,CO.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vO.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new CO(this,t,e);return n?i:i.doResume(null)},NO.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},NO.prototype=Object.create(N.prototype),NO.prototype.constructor=NO,NO.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vO.prototype.replicateOnChange=function(t,e){var n=new NO(this,t);return e?n:n.doResume(null)},vO.prototype.findByClazzUidAsync_s8cxhz$=function(t,e){return this._dao_0.findByClazzUidAsync_s8cxhz$(t,e)},vO.prototype.findByClazzUidLive_s8cxhz$=function(t){return this._dao_0.findByClazzUidLive_s8cxhz$(t)},TO.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},TO.prototype=Object.create(N.prototype),TO.prototype.constructor=TO,TO.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=bt(this.$this._db_0,new j6(this.local$coursePicture),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.local$coursePicture.coursePictureLct=J(),this.state_0=3,this.result_0=this.$this._dao_0.updateAsync_xhijq5$(this.local$coursePicture,this),this.result_0===C)return C;continue;case 3:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vO.prototype.updateAsync_xhijq5$=function(t,e,n){var i=new TO(this,t,e);return n?i:i.doResume(null)},vO.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},LO.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},LO.prototype=Object.create(N.prototype),LO.prototype.constructor=LO,LO.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=bt(this.$this._db_0,new j6(this.local$entity),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:var t=_t(w(this.$this._db_0));if(O(this.local$entity.coursePictureUid,X)){if(this.state_0=3,this.result_0=t.nextIdAsync_za3lpa$(125,this),this.result_0===C)return C;continue}this.state_0=4;continue;case 3:var e=this.result_0;this.local$entity.coursePictureUid=e,this.state_0=4;continue;case 4:if(this.local$entity.coursePictureLct=J(),this.state_0=5,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 5:return this.local$entity.coursePictureUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vO.prototype.insertAsync=function(t,e,n){var i=new LO(this,t,e);return n?i:i.doResume(null)},vO.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},vO.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},vO.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},vO.$metadata$={kind:c,simpleName:"CoursePictureDao_ReplicateWrapper",interfaces:[oO]},wO.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},wO.prototype=Object.create(N.prototype),wO.prototype.constructor=wO,wO.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zO.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new wO(this,t,e);return n?i:i.doResume(null)},OO.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},OO.prototype=Object.create(N.prototype),OO.prototype.constructor=OO,OO.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zO.prototype.replicateOnChange=function(t,e){var n=new OO(this,t);return e?n:n.doResume(null)},RO.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},RO.prototype=Object.create(N.prototype),RO.prototype.constructor=RO,RO.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByClazzUidAsync_s8cxhz$(this.local$clazzUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zO.prototype.findByClazzUidAsync_s8cxhz$=function(t,e,n){var i=new RO(this,t,e);return n?i:i.doResume(null)},zO.prototype.findByClazzUidLive_s8cxhz$=function(t){return this._dao.findByClazzUidLive_s8cxhz$(t)},AO.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},AO.prototype=Object.create(N.prototype),AO.prototype.constructor=AO,AO.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateAsync_xhijq5$(this.local$coursePicture,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zO.prototype.updateAsync_xhijq5$=function(t,e,n){var i=new AO(this,t,e);return n?i:i.doResume(null)},zO.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},xO.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},xO.prototype=Object.create(N.prototype),xO.prototype.constructor=xO,xO.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zO.prototype.insertAsync=function(t,e,n){var i=new xO(this,t,e);return n?i:i.doResume(null)},zO.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},zO.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},zO.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},zO.$metadata$={kind:c,simpleName:"CoursePictureDao_Repo",interfaces:[oO]},IO.$metadata$={kind:c,simpleName:"CourseTerminologyDao",interfaces:[X6]},UO.prototype.insert_11rb$=function(t){return this._insertAdapterCourseTerminology_.insertAndReturnId_11rb$(t)},DO.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},DO.prototype=Object.create(N.prototype),DO.prototype.constructor=DO,DO.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterCourseTerminology_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},UO.prototype.insertAsync=function(t,e,n){var i=new DO(this,t,e);return n?i:i.doResume(null)},UO.prototype.insertList_4ezy5m$=function(t){this._insertAdapterCourseTerminology_.insertList_4ezy5m$(t)},PO.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},PO.prototype=Object.create(N.prototype),PO.prototype.constructor=PO,PO.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$entity.ctTitle),this.local$_stmt.setString_vqvrqt$(2,this.local$closure$entity.ctTerminology),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$entity.ctLct),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$entity.ctUid),this.local$tmp$=this.local$closure$_result.v,this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$closure$_result.v=this.local$tmp$+this.result_0|0,V;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kO.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},kO.prototype=Object.create(N.prototype),kO.prototype.constructor=kO,kO.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_result={v:0},this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE CourseTerminology SET ctTitle = ?, ctTerminology = ?, ctLct = ? WHERE ctUid = ?",MO(this.local$entity,this.local$_result),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$_result.v;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},UO.prototype.updateAsync_9k9ym$=function(t,e,n){var i=new kO(this,t,e);return n?i:i.doResume(null)},UO.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE CourseTerminology SET ctTitle = ?, ctTerminology = ?, ctLct = ? WHERE ctUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setString_vqvrqt$(1,i.ctTitle),t.setString_vqvrqt$(2,i.ctTerminology),t.setLong_6svq3l$(3,i.ctLct),t.setLong_6svq3l$(4,i.ctUid),t.executeUpdate()}return t.getConnection().commit(),V}))},UO.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE CourseTerminology SET ctTitle = ?, ctTerminology = ?, ctLct = ? WHERE ctUid = ?",(e=t,function(t){return t.setString_vqvrqt$(1,e.ctTitle),t.setString_vqvrqt$(2,e.ctTerminology),t.setLong_6svq3l$(3,e.ctLct),t.setLong_6svq3l$(4,e.ctUid),t.executeUpdate()}))},jO.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},jO.prototype=Object.create(N.prototype),jO.prototype.constructor=jO,jO.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},qO.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},qO.prototype=Object.create(N.prototype),qO.prototype.constructor=qO,qO.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO CourseTerminologyReplicate(ctPk, ctDestination)\n | SELECT DISTINCT CourseTerminology.ctUid AS ctPk,\n | ? AS ctDestination\n | FROM CourseTerminology\n | WHERE CourseTerminology.ctLct != COALESCE(\n | (SELECT ctVersionId\n | FROM CourseTerminologyReplicate\n | WHERE ctPk = CourseTerminology.ctUid\n | AND ctDestination = ?), 0) \n | /*psql ON CONFLICT(ctPk, ctDestination) DO UPDATE\n | SET ctPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO CourseTerminologyReplicate(ctPk, ctDestination)\n | SELECT DISTINCT CourseTerminology.ctUid AS ctPk,\n | ? AS ctDestination\n | FROM CourseTerminology\n | WHERE CourseTerminology.ctLct != COALESCE(\n | (SELECT ctVersionId\n | FROM CourseTerminologyReplicate\n | WHERE ctPk = CourseTerminology.ctUid\n | AND ctDestination = ?), 0) \n | ON CONFLICT(ctPk, ctDestination) DO UPDATE\n | SET ctPending = true\n | \n | \n |")),GO(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},UO.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new qO(this,t,e);return n?i:i.doResume(null)},FO.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},FO.prototype=Object.create(N.prototype),FO.prototype.constructor=FO,FO.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},WO.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},WO.prototype=Object.create(N.prototype),WO.prototype.constructor=WO,WO.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO CourseTerminologyReplicate(ctPk, ctDestination)\n | SELECT DISTINCT CourseTerminology.ctUid AS ctUid,\n | UserSession.usClientNodeId AS ctDestination\n | FROM ChangeLog\n | JOIN CourseTerminology\n | ON ChangeLog.chTableId = 450\n | AND ChangeLog.chEntityPk = CourseTerminology.ctUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND CourseTerminology.ctLct != COALESCE(\n | (SELECT ctVersionId\n | FROM CourseTerminologyReplicate\n | WHERE ctPk = CourseTerminology.ctUid\n | AND ctDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(ctPk, ctDestination) DO UPDATE\n | SET ctPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO CourseTerminologyReplicate(ctPk, ctDestination)\n | SELECT DISTINCT CourseTerminology.ctUid AS ctUid,\n | UserSession.usClientNodeId AS ctDestination\n | FROM ChangeLog\n | JOIN CourseTerminology\n | ON ChangeLog.chTableId = 450\n | AND ChangeLog.chEntityPk = CourseTerminology.ctUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND CourseTerminology.ctLct != COALESCE(\n | (SELECT ctVersionId\n | FROM CourseTerminologyReplicate\n | WHERE ctPk = CourseTerminology.ctUid\n | AND ctDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(ctPk, ctDestination) DO UPDATE\n | SET ctPending = true\n | \n | \n |")),BO,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},UO.prototype.replicateOnChange=function(t,e){var n=new WO(this,t);return e?n:n.doResume(null)},KO.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},KO.prototype=Object.create(N.prototype),KO.prototype.constructor=KO,KO.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setInt_vux9f0$(1,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,VO);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},JO.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},JO.prototype=Object.create(N.prototype),JO.prototype.constructor=JO,JO.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$CourseTerminologyDao_JdbcKt._db,new st(S("\n |SELECT * FROM (\n | SELECT *\n | FROM CourseTerminology\n | ORDER BY ctTitle \n | ) LIMIT ? OFFSET ?\n ")),XO(this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HO.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$CourseTerminologyDao_JdbcKt._db,Et("CourseTerminology"),(n=this.this$CourseTerminologyDao_JdbcKt,i=e,o=t,function(t,e){var r=new JO(n,i,o,t);return e?r:r.doResume(null)}));var n,i,o},QO.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},QO.prototype=Object.create(N.prototype),QO.prototype.constructor=QO,QO.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,YO);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},tR.prototype=Object.create(N.prototype),tR.prototype.constructor=tR,tR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$CourseTerminologyDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (\n | SELECT *\n | FROM CourseTerminology\n | ORDER BY ctTitle \n | ) \n ")),ZO,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HO.prototype.getLength=function(){return new ft(this.this$CourseTerminologyDao_JdbcKt._db,Et("CourseTerminology"),(t=this.this$CourseTerminologyDao_JdbcKt,function(e,n){var i=new tR(t,e);return n?i:i.doResume(null)}));var t},HO.$metadata$={kind:c,interfaces:[gt]},UO.prototype.findAllCourseTerminology=function(){return new HO(this)},UO.prototype.findAllCourseTerminologyList=function(){return ht(this._db,new st(S("\n |\n | SELECT *\n | FROM CourseTerminology\n | ORDER BY ctTitle \n | \n ")),nR)},oR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},oR.prototype=Object.create(N.prototype),oR.prototype.constructor=oR,oR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$clazzUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,iR);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},UO.prototype.getTerminologyForClazz_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT *\n | FROM CourseTerminology\n | JOIN Clazz \n | ON Clazz.clazzTerminologyUid = CourseTerminology.ctUid\n | WHERE Clazz.clazzUid = ?\n | \n ")),(n=t,function(t,e,i){var o=new oR(n,t,e);return i?o:o.doResume(null)}),e);var n},sR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},sR.prototype=Object.create(N.prototype),sR.prototype.constructor=sR,sR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,rR);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},UO.prototype.findByUidAsync_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT * \n | FROM CourseTerminology \n | WHERE ctUid = ?\n | \n ")),(n=t,function(t,e,i){var o=new sR(n,t,e);return i?o:o.doResume(null)}),e);var n},aR.prototype.makeSql_6taknv$=function(t){return"INSERT INTO CourseTerminology (ctUid, ctTitle, ctTerminology, ctLct) VALUES(?, ?, ?, ?)"},aR.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.ctUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.ctUid),t.setString_vqvrqt$(2,e.ctTitle),t.setString_vqvrqt$(3,e.ctTerminology),t.setLong_6svq3l$(4,e.ctLct)},aR.$metadata$={kind:c,interfaces:[pt]},UO.$metadata$={kind:c,simpleName:"CourseTerminologyDao_JdbcKt",interfaces:[IO]},lR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},lR.prototype=Object.create(N.prototype),lR.prototype.constructor=lR,lR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},cR.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new lR(this,t,e);return n?i:i.doResume(null)},uR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},uR.prototype=Object.create(N.prototype),uR.prototype.constructor=uR,uR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},cR.prototype.replicateOnChange=function(t,e){var n=new uR(this,t);return e?n:n.doResume(null)},cR.prototype.findAllCourseTerminology=function(){return this._dao_0.findAllCourseTerminology()},cR.prototype.findAllCourseTerminologyList=function(){throw v("Synchronous db access is NOT possible on Javascript!")},cR.prototype.getTerminologyForClazz_s8cxhz$=function(t,e){return this._dao_0.getTerminologyForClazz_s8cxhz$(t,e)},cR.prototype.findByUidAsync_s8cxhz$=function(t,e){return this._dao_0.findByUidAsync_s8cxhz$(t,e)},cR.prototype.updateAsync_9k9ym$=function(t,e){return t.ctLct=J(),this._dao_0.updateAsync_9k9ym$(t,e)},cR.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},hR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},hR.prototype=Object.create(N.prototype),hR.prototype.constructor=hR,hR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.ctUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(450,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.ctUid=e,this.state_0=3;continue;case 3:if(this.local$entity.ctLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.ctUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},cR.prototype.insertAsync=function(t,e,n){var i=new hR(this,t,e);return n?i:i.doResume(null)},cR.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},cR.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},cR.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},cR.$metadata$={kind:c,simpleName:"CourseTerminologyDao_ReplicateWrapper",interfaces:[IO]},pR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},pR.prototype=Object.create(N.prototype),pR.prototype.constructor=pR,pR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dR.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new pR(this,t,e);return n?i:i.doResume(null)},_R.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_R.prototype=Object.create(N.prototype),_R.prototype.constructor=_R,_R.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dR.prototype.replicateOnChange=function(t,e){var n=new _R(this,t);return e?n:n.doResume(null)},dR.prototype.findAllCourseTerminology=function(){return this._dao.findAllCourseTerminology()},dR.prototype.findAllCourseTerminologyList=function(){return this._dao.findAllCourseTerminologyList()},mR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},mR.prototype=Object.create(N.prototype),mR.prototype.constructor=mR,mR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.getTerminologyForClazz_s8cxhz$(this.local$clazzUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dR.prototype.getTerminologyForClazz_s8cxhz$=function(t,e,n){var i=new mR(this,t,e);return n?i:i.doResume(null)},fR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fR.prototype=Object.create(N.prototype),fR.prototype.constructor=fR,fR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByUidAsync_s8cxhz$(this.local$uid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dR.prototype.findByUidAsync_s8cxhz$=function(t,e,n){var i=new fR(this,t,e);return n?i:i.doResume(null)},gR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},gR.prototype=Object.create(N.prototype),gR.prototype.constructor=gR,gR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateAsync_9k9ym$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dR.prototype.updateAsync_9k9ym$=function(t,e,n){var i=new gR(this,t,e);return n?i:i.doResume(null)},dR.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},$R.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},$R.prototype=Object.create(N.prototype),$R.prototype.constructor=$R,$R.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dR.prototype.insertAsync=function(t,e,n){var i=new $R(this,t,e);return n?i:i.doResume(null)},dR.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},dR.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},dR.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},dR.$metadata$={kind:c,simpleName:"CourseTerminologyDao_Repo",interfaces:[IO]},ER.$metadata$={kind:c,simpleName:"DiscussionPostDao",interfaces:[X6]},yR.prototype.insert_11rb$=function(t){return this._insertAdapterDiscussionPost_.insertAndReturnId_11rb$(t)},bR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},bR.prototype=Object.create(N.prototype),bR.prototype.constructor=bR,bR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterDiscussionPost_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yR.prototype.insertAsync=function(t,e,n){var i=new bR(this,t,e);return n?i:i.doResume(null)},yR.prototype.insertList_4ezy5m$=function(t){this._insertAdapterDiscussionPost_.insertList_4ezy5m$(t)},SR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},SR.prototype=Object.create(N.prototype),SR.prototype.constructor=SR,SR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$entity.discussionPostTitle),this.local$_stmt.setString_vqvrqt$(2,this.local$closure$entity.discussionPostMessage),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$entity.discussionPostStartDate),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$entity.discussionPostDiscussionTopicUid),this.local$_stmt.setBoolean_fzusl$(5,this.local$closure$entity.discussionPostVisible),this.local$_stmt.setBoolean_fzusl$(6,this.local$closure$entity.discussionPostArchive),this.local$_stmt.setLong_6svq3l$(7,this.local$closure$entity.discussionPostStartedPersonUid),this.local$_stmt.setLong_6svq3l$(8,this.local$closure$entity.discussionPostClazzUid),this.local$_stmt.setLong_6svq3l$(9,this.local$closure$entity.discussionPostLct),this.local$_stmt.setLong_6svq3l$(10,this.local$closure$entity.discussionPostUid),this.local$tmp$=this.local$closure$_result.v,this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$closure$_result.v=this.local$tmp$+this.result_0|0,V;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},CR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},CR.prototype=Object.create(N.prototype),CR.prototype.constructor=CR,CR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_result={v:0},this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE DiscussionPost SET discussionPostTitle = ?, discussionPostMessage = ?, discussionPostStartDate = ?, discussionPostDiscussionTopicUid = ?, discussionPostVisible = ?, discussionPostArchive = ?, discussionPostStartedPersonUid = ?, discussionPostClazzUid = ?, discussionPostLct = ? WHERE discussionPostUid = ?",vR(this.local$entity,this.local$_result),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$_result.v;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yR.prototype.updateAsync_ttuxpq$=function(t,e,n){var i=new CR(this,t,e);return n?i:i.doResume(null)},yR.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE DiscussionPost SET discussionPostTitle = ?, discussionPostMessage = ?, discussionPostStartDate = ?, discussionPostDiscussionTopicUid = ?, discussionPostVisible = ?, discussionPostArchive = ?, discussionPostStartedPersonUid = ?, discussionPostClazzUid = ?, discussionPostLct = ? WHERE discussionPostUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setString_vqvrqt$(1,i.discussionPostTitle),t.setString_vqvrqt$(2,i.discussionPostMessage),t.setLong_6svq3l$(3,i.discussionPostStartDate),t.setLong_6svq3l$(4,i.discussionPostDiscussionTopicUid),t.setBoolean_fzusl$(5,i.discussionPostVisible),t.setBoolean_fzusl$(6,i.discussionPostArchive),t.setLong_6svq3l$(7,i.discussionPostStartedPersonUid),t.setLong_6svq3l$(8,i.discussionPostClazzUid),t.setLong_6svq3l$(9,i.discussionPostLct),t.setLong_6svq3l$(10,i.discussionPostUid),t.executeUpdate()}return t.getConnection().commit(),V}))},yR.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE DiscussionPost SET discussionPostTitle = ?, discussionPostMessage = ?, discussionPostStartDate = ?, discussionPostDiscussionTopicUid = ?, discussionPostVisible = ?, discussionPostArchive = ?, discussionPostStartedPersonUid = ?, discussionPostClazzUid = ?, discussionPostLct = ? WHERE discussionPostUid = ?",(e=t,function(t){return t.setString_vqvrqt$(1,e.discussionPostTitle),t.setString_vqvrqt$(2,e.discussionPostMessage),t.setLong_6svq3l$(3,e.discussionPostStartDate),t.setLong_6svq3l$(4,e.discussionPostDiscussionTopicUid),t.setBoolean_fzusl$(5,e.discussionPostVisible),t.setBoolean_fzusl$(6,e.discussionPostArchive),t.setLong_6svq3l$(7,e.discussionPostStartedPersonUid),t.setLong_6svq3l$(8,e.discussionPostClazzUid),t.setLong_6svq3l$(9,e.discussionPostLct),t.setLong_6svq3l$(10,e.discussionPostUid),t.executeUpdate()}))},NR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},NR.prototype=Object.create(N.prototype),NR.prototype.constructor=NR,NR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},LR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},LR.prototype=Object.create(N.prototype),LR.prototype.constructor=LR,LR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO DiscussionPostReplicate(discussionPostPk, discussionPostDestination)\n | SELECT DISTINCT DiscussionPost.discussionPostUid AS discussionPostPk,\n | ? AS discussionPostDestination\n | \n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 2 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | \n | JOIN DiscussionPost \n | ON DiscussionPost.discussionPostClazzUid = Clazz.clazzUid\n | \n | WHERE DiscussionPost.discussionPostLct != COALESCE(\n | (SELECT discussionPostVersionId\n | FROM discussionPostReplicate\n | WHERE discussionPostPk = DiscussionPost.discussionPostUid\n | AND discussionPostDestination = ?), 0) \n | /*psql ON CONFLICT(discussionPostPk, discussionPostDestination) DO UPDATE\n | SET discussionPostPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO DiscussionPostReplicate(discussionPostPk, discussionPostDestination)\n | SELECT DISTINCT DiscussionPost.discussionPostUid AS discussionPostPk,\n | ? AS discussionPostDestination\n | \n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 2 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | \n | JOIN DiscussionPost \n | ON DiscussionPost.discussionPostClazzUid = Clazz.clazzUid\n | \n | WHERE DiscussionPost.discussionPostLct != COALESCE(\n | (SELECT discussionPostVersionId\n | FROM discussionPostReplicate\n | WHERE discussionPostPk = DiscussionPost.discussionPostUid\n | AND discussionPostDestination = ?), 0) \n | ON CONFLICT(discussionPostPk, discussionPostDestination) DO UPDATE\n | SET discussionPostPending = true\n | \n | \n |")),TR(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yR.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new LR(this,t,e);return n?i:i.doResume(null)},zR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},zR.prototype=Object.create(N.prototype),zR.prototype.constructor=zR,zR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},OR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},OR.prototype=Object.create(N.prototype),OR.prototype.constructor=OR,OR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO DiscussionPostReplicate(discussionPostPk, discussionPostDestination)\n | SELECT DISTINCT DiscussionPost.discussionPostUid AS discussionPostUid,\n | UserSession.usClientNodeId AS discussionPostDestination\n | FROM ChangeLog\n | JOIN DiscussionPost\n | ON ChangeLog.chTableId = 132\n | AND ChangeLog.chEntityPk = DiscussionPost.discussionPostUid\n | \n | \n | JOIN Clazz \n | ON Clazz.clazzUid = DiscussionPost.discussionPostClazzUid\n | \n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 2\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND DiscussionPost.discussionPostLct != COALESCE(\n | (SELECT discussionPostVersionId\n | FROM discussionPostReplicate\n | WHERE discussionPostPk = DiscussionPost.discussionPostUid\n | AND DiscussionPostDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(discussionPostPk, discussionPostDestination) DO UPDATE\n | SET discussionPostPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO DiscussionPostReplicate(discussionPostPk, discussionPostDestination)\n | SELECT DISTINCT DiscussionPost.discussionPostUid AS discussionPostUid,\n | UserSession.usClientNodeId AS discussionPostDestination\n | FROM ChangeLog\n | JOIN DiscussionPost\n | ON ChangeLog.chTableId = 132\n | AND ChangeLog.chEntityPk = DiscussionPost.discussionPostUid\n | \n | \n | JOIN Clazz \n | ON Clazz.clazzUid = DiscussionPost.discussionPostClazzUid\n | \n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 2\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND DiscussionPost.discussionPostLct != COALESCE(\n | (SELECT discussionPostVersionId\n | FROM discussionPostReplicate\n | WHERE discussionPostPk = DiscussionPost.discussionPostUid\n | AND DiscussionPostDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(discussionPostPk, discussionPostDestination) DO UPDATE\n | SET discussionPostPending = true\n | \n | \n |")),wR,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yR.prototype.replicateOnChange=function(t,e){var n=new OR(this,t);return e?n:n.doResume(null)},xR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},xR.prototype=Object.create(N.prototype),xR.prototype.constructor=xR,xR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$discussionTopicUid),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,AR);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},UR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},UR.prototype=Object.create(N.prototype),UR.prototype.constructor=UR,UR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$DiscussionPostDao_JdbcKt._db,new st(S("\n |SELECT * FROM (\n | SELECT DiscussionPost.*,\n | Person.firstNames as authorPersonFirstNames,\n | Person.lastName as authorPersonLastName,\n | (\n | SELECT Message.messageText \n | FROM Message \n | WHERE Message.messageTableId = 132\n | AND Message.messageEntityUid = DiscussionPost.discussionPostUid \n | ORDER BY messageTimestamp \n | DESC LIMIT 1\n | ) AS postLatestMessage,\n | (\n | SELECT COUNT(*) \n | FROM Message\n | WHERE Message.messageTableId = 132\n | AND Message.messageEntityUid = DiscussionPost.discussionPostUid \n | \n | ) AS postRepliesCount, \n | \n | (\n | SELECT Message.messageTimestamp \n | FROM Message \n | WHERE Message.messageTableId = 132\n | AND Message.messageEntityUid = DiscussionPost.discussionPostUid \n | ORDER BY messageTimestamp \n | DESC LIMIT 1\n | ) AS postLatestMessageTimestamp\n | \n | FROM DiscussionPost \n | LEFT JOIN Person ON Person.personUid = DiscussionPost.discussionPostStartedPersonUid\n | WHERE DiscussionPost.discussionPostDiscussionTopicUid = ?\n | AND CAST(DiscussionPost.discussionPostVisible AS INTEGER) = 1\n | AND CAST(DiscussionPost.discussionPostArchive AS INTEGER) = 0\n | ORDER BY DiscussionPost.discussionPostStartDate DESC\n | ) LIMIT ? OFFSET ?\n ")),IR(this.local$closure$discussionTopicUid,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},RR.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$DiscussionPostDao_JdbcKt._db,p(["Message","DiscussionPost","Person"]),(n=this.this$DiscussionPostDao_JdbcKt,i=this.closure$discussionTopicUid,o=e,r=t,function(t,e){var s=new UR(n,i,o,r,t);return e?s:s.doResume(null)}));var n,i,o,r},PR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},PR.prototype=Object.create(N.prototype),PR.prototype.constructor=PR,PR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$discussionTopicUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,DR);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},kR.prototype=Object.create(N.prototype),kR.prototype.constructor=kR,kR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$DiscussionPostDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (\n | SELECT DiscussionPost.*,\n | Person.firstNames as authorPersonFirstNames,\n | Person.lastName as authorPersonLastName,\n | (\n | SELECT Message.messageText \n | FROM Message \n | WHERE Message.messageTableId = 132\n | AND Message.messageEntityUid = DiscussionPost.discussionPostUid \n | ORDER BY messageTimestamp \n | DESC LIMIT 1\n | ) AS postLatestMessage,\n | (\n | SELECT COUNT(*) \n | FROM Message\n | WHERE Message.messageTableId = 132\n | AND Message.messageEntityUid = DiscussionPost.discussionPostUid \n | \n | ) AS postRepliesCount, \n | \n | (\n | SELECT Message.messageTimestamp \n | FROM Message \n | WHERE Message.messageTableId = 132\n | AND Message.messageEntityUid = DiscussionPost.discussionPostUid \n | ORDER BY messageTimestamp \n | DESC LIMIT 1\n | ) AS postLatestMessageTimestamp\n | \n | FROM DiscussionPost \n | LEFT JOIN Person ON Person.personUid = DiscussionPost.discussionPostStartedPersonUid\n | WHERE DiscussionPost.discussionPostDiscussionTopicUid = ?\n | AND CAST(DiscussionPost.discussionPostVisible AS INTEGER) = 1\n | AND CAST(DiscussionPost.discussionPostArchive AS INTEGER) = 0\n | ORDER BY DiscussionPost.discussionPostStartDate DESC\n | ) \n ")),MR(this.local$closure$discussionTopicUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},RR.prototype.getLength=function(){return new ft(this.this$DiscussionPostDao_JdbcKt._db,p(["Message","DiscussionPost","Person"]),(t=this.this$DiscussionPostDao_JdbcKt,e=this.closure$discussionTopicUid,function(n,i){var o=new kR(t,e,n);return i?o:o.doResume(null)}));var t,e},RR.$metadata$={kind:c,interfaces:[gt]},yR.prototype.getPostsByDiscussionTopic_s8cxhz$=function(t){return new RR(this,t)},GR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},GR.prototype=Object.create(N.prototype),GR.prototype.constructor=GR,GR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$postUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,jR);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yR.prototype.getPostTitle_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT DiscussionPost.discussionPostTitle \n | FROM DiscussionPost \n | WHERE DiscussionPost.discussionPostUid = ?\n | \n ")),(n=t,function(t,e,i){var o=new GR(n,t,e);return i?o:o.doResume(null)}),e);var n},FR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},FR.prototype=Object.create(N.prototype),FR.prototype.constructor=FR,FR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,qR);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yR.prototype.findByUid_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT * \n | FROM DiscussionPost\n | WHERE DiscussionPost.discussionPostUid = ?\n | \n ")),(n=t,function(t,e,i){var o=new FR(n,t,e);return i?o:o.doResume(null)}),e);var n},WR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},WR.prototype=Object.create(N.prototype),WR.prototype.constructor=WR,WR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,BR);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yR.prototype.findWithDetailsByUid_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT DiscussionPost.*,\n | Person.firstNames as authorPersonFirstNames,\n | Person.lastName as authorPersonLastName,\n | '' AS postLatestMessage,\n | 0 AS postRepliesCount, \n | DiscussionPost.discussionPostLct AS postLatestMessageTimestamp\n | \n | FROM DiscussionPost \n | LEFT JOIN Person ON Person.personUid = DiscussionPost.discussionPostStartedPersonUid\n | WHERE DiscussionPost.discussionPostUid = ?\n | \n | \n ")),(n=t,function(t,e,i){var o=new WR(n,t,e);return i?o:o.doResume(null)}),e);var n},VR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},VR.prototype=Object.create(N.prototype),VR.prototype.constructor=VR,VR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,HR);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},XR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},XR.prototype=Object.create(N.prototype),XR.prototype.constructor=XR,XR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$DiscussionPostDao_JdbcKt._db,new st(S("\n |\n | SELECT DiscussionPost.*,\n | Person.firstNames as authorPersonFirstNames,\n | Person.lastName as authorPersonLastName,\n | '' AS postLatestMessage,\n | 0 AS postRepliesCount, \n | DiscussionPost.discussionPostLct AS postLatestMessageTimestamp\n | \n | FROM DiscussionPost \n | LEFT JOIN Person ON Person.personUid = DiscussionPost.discussionPostStartedPersonUid\n | WHERE DiscussionPost.discussionPostUid = ?\n | \n | \n ")),KR(this.local$closure$uid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yR.prototype.findWithDetailsByUidLive_s8cxhz$=function(t){return new ft(this._db,p(["DiscussionPost","Person"]),(e=this,n=t,function(t,i){var o=new XR(e,n,t);return i?o:o.doResume(null)}));var e,n},JR.prototype.makeSql_6taknv$=function(t){return"INSERT INTO DiscussionPost (discussionPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostDiscussionTopicUid, discussionPostVisible, discussionPostArchive, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},JR.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.discussionPostUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.discussionPostUid),t.setString_vqvrqt$(2,e.discussionPostTitle),t.setString_vqvrqt$(3,e.discussionPostMessage),t.setLong_6svq3l$(4,e.discussionPostStartDate),t.setLong_6svq3l$(5,e.discussionPostDiscussionTopicUid),t.setBoolean_fzusl$(6,e.discussionPostVisible),t.setBoolean_fzusl$(7,e.discussionPostArchive),t.setLong_6svq3l$(8,e.discussionPostStartedPersonUid),t.setLong_6svq3l$(9,e.discussionPostClazzUid),t.setLong_6svq3l$(10,e.discussionPostLct)},JR.$metadata$={kind:c,interfaces:[pt]},yR.$metadata$={kind:c,simpleName:"DiscussionPostDao_JdbcKt",interfaces:[ER]},QR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},QR.prototype=Object.create(N.prototype),QR.prototype.constructor=QR,QR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},YR.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new QR(this,t,e);return n?i:i.doResume(null)},ZR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ZR.prototype=Object.create(N.prototype),ZR.prototype.constructor=ZR,ZR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},YR.prototype.replicateOnChange=function(t,e){var n=new ZR(this,t);return e?n:n.doResume(null)},YR.prototype.getPostsByDiscussionTopic_s8cxhz$=function(t){return this._dao_0.getPostsByDiscussionTopic_s8cxhz$(t)},YR.prototype.getPostTitle_s8cxhz$=function(t,e){return this._dao_0.getPostTitle_s8cxhz$(t,e)},YR.prototype.findByUid_s8cxhz$=function(t,e){return this._dao_0.findByUid_s8cxhz$(t,e)},YR.prototype.findWithDetailsByUid_s8cxhz$=function(t,e){return this._dao_0.findWithDetailsByUid_s8cxhz$(t,e)},YR.prototype.findWithDetailsByUidLive_s8cxhz$=function(t){return this._dao_0.findWithDetailsByUidLive_s8cxhz$(t)},YR.prototype.updateAsync_ttuxpq$=function(t,e){return t.discussionPostLct=J(),this._dao_0.updateAsync_ttuxpq$(t,e)},YR.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},tA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},tA.prototype=Object.create(N.prototype),tA.prototype.constructor=tA,tA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.discussionPostUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(132,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.discussionPostUid=e,this.state_0=3;continue;case 3:if(this.local$entity.discussionPostLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.discussionPostUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},YR.prototype.insertAsync=function(t,e,n){var i=new tA(this,t,e);return n?i:i.doResume(null)},YR.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},YR.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},YR.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},YR.$metadata$={kind:c,simpleName:"DiscussionPostDao_ReplicateWrapper",interfaces:[ER]},nA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},nA.prototype=Object.create(N.prototype),nA.prototype.constructor=nA,nA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},eA.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new nA(this,t,e);return n?i:i.doResume(null)},iA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},iA.prototype=Object.create(N.prototype),iA.prototype.constructor=iA,iA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},eA.prototype.replicateOnChange=function(t,e){var n=new iA(this,t);return e?n:n.doResume(null)},eA.prototype.getPostsByDiscussionTopic_s8cxhz$=function(t){return this._dao.getPostsByDiscussionTopic_s8cxhz$(t)},oA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},oA.prototype=Object.create(N.prototype),oA.prototype.constructor=oA,oA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.getPostTitle_s8cxhz$(this.local$postUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},eA.prototype.getPostTitle_s8cxhz$=function(t,e,n){var i=new oA(this,t,e);return n?i:i.doResume(null)},rA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},rA.prototype=Object.create(N.prototype),rA.prototype.constructor=rA,rA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByUid_s8cxhz$(this.local$uid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},eA.prototype.findByUid_s8cxhz$=function(t,e,n){var i=new rA(this,t,e);return n?i:i.doResume(null)},sA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},sA.prototype=Object.create(N.prototype),sA.prototype.constructor=sA,sA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findWithDetailsByUid_s8cxhz$(this.local$uid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},eA.prototype.findWithDetailsByUid_s8cxhz$=function(t,e,n){var i=new sA(this,t,e);return n?i:i.doResume(null)},eA.prototype.findWithDetailsByUidLive_s8cxhz$=function(t){return this._dao.findWithDetailsByUidLive_s8cxhz$(t)},aA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},aA.prototype=Object.create(N.prototype),aA.prototype.constructor=aA,aA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateAsync_ttuxpq$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},eA.prototype.updateAsync_ttuxpq$=function(t,e,n){var i=new aA(this,t,e);return n?i:i.doResume(null)},eA.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},cA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},cA.prototype=Object.create(N.prototype),cA.prototype.constructor=cA,cA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},eA.prototype.insertAsync=function(t,e,n){var i=new cA(this,t,e);return n?i:i.doResume(null)},eA.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},eA.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},eA.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},eA.$metadata$={kind:c,simpleName:"DiscussionPostDao_Repo",interfaces:[ER]},lA.$metadata$={kind:c,simpleName:"DiscussionTopicDao",interfaces:[t4,X6]},hA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},hA.prototype=Object.create(N.prototype),hA.prototype.constructor=hA,hA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterDiscussionTopic_upsert.insertListAsync_4ezy5m$(this.local$list,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},uA.prototype.replaceListAsync_twfw7k$=function(t,e,n){var i=new hA(this,t,e);return n?i:i.doResume(null)},uA.prototype.insert_11rb$=function(t){return this._insertAdapterDiscussionTopic_.insertAndReturnId_11rb$(t)},dA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},dA.prototype=Object.create(N.prototype),dA.prototype.constructor=dA,dA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterDiscussionTopic_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},uA.prototype.insertAsync=function(t,e,n){var i=new dA(this,t,e);return n?i:i.doResume(null)},uA.prototype.insertList_4ezy5m$=function(t){this._insertAdapterDiscussionTopic_.insertList_4ezy5m$(t)},pA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},pA.prototype=Object.create(N.prototype),pA.prototype.constructor=pA,pA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterDiscussionTopic_.insertListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},uA.prototype.insertListAsync_4ezy5m$=function(t,e,n){var i=new pA(this,t,e);return n?i:i.doResume(null)},uA.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE DiscussionTopic SET discussionTopicTitle = ?, discussionTopicDesc = ?, discussionTopicStartDate = ?, discussionTopicCourseDiscussionUid = ?, discussionTopicVisible = ?, discussionTopicArchive = ?, discussionTopicIndex = ?, discussionTopicClazzUid = ?, discussionTopicLct = ? WHERE discussionTopicUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setString_vqvrqt$(1,i.discussionTopicTitle),t.setString_vqvrqt$(2,i.discussionTopicDesc),t.setLong_6svq3l$(3,i.discussionTopicStartDate),t.setLong_6svq3l$(4,i.discussionTopicCourseDiscussionUid),t.setBoolean_fzusl$(5,i.discussionTopicVisible),t.setBoolean_fzusl$(6,i.discussionTopicArchive),t.setInt_vux9f0$(7,i.discussionTopicIndex),t.setLong_6svq3l$(8,i.discussionTopicClazzUid),t.setLong_6svq3l$(9,i.discussionTopicLct),t.setLong_6svq3l$(10,i.discussionTopicUid),t.executeUpdate()}return t.getConnection().commit(),V}))},uA.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE DiscussionTopic SET discussionTopicTitle = ?, discussionTopicDesc = ?, discussionTopicStartDate = ?, discussionTopicCourseDiscussionUid = ?, discussionTopicVisible = ?, discussionTopicArchive = ?, discussionTopicIndex = ?, discussionTopicClazzUid = ?, discussionTopicLct = ? WHERE discussionTopicUid = ?",(e=t,function(t){return t.setString_vqvrqt$(1,e.discussionTopicTitle),t.setString_vqvrqt$(2,e.discussionTopicDesc),t.setLong_6svq3l$(3,e.discussionTopicStartDate),t.setLong_6svq3l$(4,e.discussionTopicCourseDiscussionUid),t.setBoolean_fzusl$(5,e.discussionTopicVisible),t.setBoolean_fzusl$(6,e.discussionTopicArchive),t.setInt_vux9f0$(7,e.discussionTopicIndex),t.setLong_6svq3l$(8,e.discussionTopicClazzUid),t.setLong_6svq3l$(9,e.discussionTopicLct),t.setLong_6svq3l$(10,e.discussionTopicUid),t.executeUpdate()}))},_A.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_A.prototype=Object.create(N.prototype),_A.prototype.constructor=_A,_A.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_stmt.getConnection().setAutoCommit_6taknv$(!1),this.local$tmp$=this.local$closure$entityList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$tmp$.hasNext()){this.state_0=4;continue}var t=this.local$tmp$.next();if(this.local$_stmt.setString_vqvrqt$(1,t.discussionTopicTitle),this.local$_stmt.setString_vqvrqt$(2,t.discussionTopicDesc),this.local$_stmt.setLong_6svq3l$(3,t.discussionTopicStartDate),this.local$_stmt.setLong_6svq3l$(4,t.discussionTopicCourseDiscussionUid),this.local$_stmt.setBoolean_fzusl$(5,t.discussionTopicVisible),this.local$_stmt.setBoolean_fzusl$(6,t.discussionTopicArchive),this.local$_stmt.setInt_vux9f0$(7,t.discussionTopicIndex),this.local$_stmt.setLong_6svq3l$(8,t.discussionTopicClazzUid),this.local$_stmt.setLong_6svq3l$(9,t.discussionTopicLct),this.local$_stmt.setLong_6svq3l$(10,t.discussionTopicUid),this.state_0=3,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 3:this.state_0=2;continue;case 4:return this.local$_stmt.getConnection().commit(),V;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},fA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fA.prototype=Object.create(N.prototype),fA.prototype.constructor=fA,fA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE DiscussionTopic SET discussionTopicTitle = ?, discussionTopicDesc = ?, discussionTopicStartDate = ?, discussionTopicCourseDiscussionUid = ?, discussionTopicVisible = ?, discussionTopicArchive = ?, discussionTopicIndex = ?, discussionTopicClazzUid = ?, discussionTopicLct = ? WHERE discussionTopicUid = ?",mA(this.local$entityList),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},uA.prototype.updateListAsync_4ezy5m$=function(t,e,n){var i=new fA(this,t,e);return n?i:i.doResume(null)},gA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},gA.prototype=Object.create(N.prototype),gA.prototype.constructor=gA,gA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},EA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},EA.prototype=Object.create(N.prototype),EA.prototype.constructor=EA,EA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO DiscussionTopicReplicate(discussionTopicPk, discussionTopicDestination)\n | SELECT DISTINCT DiscussionTopic.discussionTopicUid AS discussionTopicPk,\n | ? AS discussionTopicDestination\n | \n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 2 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | \n | JOIN DiscussionTopic \n | ON DiscussionTopic.discussionTopicClazzUid = Clazz.clazzUid\n | \n | WHERE DiscussionTopic.discussionTopicLct != COALESCE(\n | (SELECT discussionTopicVersionId\n | FROM discussionTopicReplicate\n | WHERE discussionTopicPk = DiscussionTopic.discussionTopicUid\n | AND discussionTopicDestination = ?), 0) \n | /*psql ON CONFLICT(discussionTopicPk, discussionTopicDestination) DO UPDATE\n | SET discussionTopicPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO DiscussionTopicReplicate(discussionTopicPk, discussionTopicDestination)\n | SELECT DISTINCT DiscussionTopic.discussionTopicUid AS discussionTopicPk,\n | ? AS discussionTopicDestination\n | \n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 2 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | \n | JOIN DiscussionTopic \n | ON DiscussionTopic.discussionTopicClazzUid = Clazz.clazzUid\n | \n | WHERE DiscussionTopic.discussionTopicLct != COALESCE(\n | (SELECT discussionTopicVersionId\n | FROM discussionTopicReplicate\n | WHERE discussionTopicPk = DiscussionTopic.discussionTopicUid\n | AND discussionTopicDestination = ?), 0) \n | ON CONFLICT(discussionTopicPk, discussionTopicDestination) DO UPDATE\n | SET discussionTopicPending = true\n | \n | \n |")),$A(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},uA.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new EA(this,t,e);return n?i:i.doResume(null)},yA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},yA.prototype=Object.create(N.prototype),yA.prototype.constructor=yA,yA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},SA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},SA.prototype=Object.create(N.prototype),SA.prototype.constructor=SA,SA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO DiscussionTopicReplicate(discussionTopicPk, discussionTopicDestination)\n | SELECT DISTINCT DiscussionTopic.discussionTopicUid AS discussionTopicUid,\n | UserSession.usClientNodeId AS discussionTopicDestination\n | FROM ChangeLog\n | JOIN DiscussionTopic\n | ON ChangeLog.chTableId = 131\n | AND ChangeLog.chEntityPk = DiscussionTopic.discussionTopicUid\n | \n | \n | JOIN Clazz\n | ON Clazz.clazzUid = DiscussionTopic.discussionTopicClazzUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 2\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND DiscussionTopic.discussionTopicLct != COALESCE(\n | (SELECT discussionTopicVersionId\n | FROM discussionTopicReplicate\n | WHERE discussionTopicPk = DiscussionTopic.discussionTopicUid\n | AND DiscussionTopicDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(discussionTopicPk, discussionTopicDestination) DO UPDATE\n | SET discussionTopicPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO DiscussionTopicReplicate(discussionTopicPk, discussionTopicDestination)\n | SELECT DISTINCT DiscussionTopic.discussionTopicUid AS discussionTopicUid,\n | UserSession.usClientNodeId AS discussionTopicDestination\n | FROM ChangeLog\n | JOIN DiscussionTopic\n | ON ChangeLog.chTableId = 131\n | AND ChangeLog.chEntityPk = DiscussionTopic.discussionTopicUid\n | \n | \n | JOIN Clazz\n | ON Clazz.clazzUid = DiscussionTopic.discussionTopicClazzUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 2\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND DiscussionTopic.discussionTopicLct != COALESCE(\n | (SELECT discussionTopicVersionId\n | FROM discussionTopicReplicate\n | WHERE discussionTopicPk = DiscussionTopic.discussionTopicUid\n | AND DiscussionTopicDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(discussionTopicPk, discussionTopicDestination) DO UPDATE\n | SET discussionTopicPending = true\n | \n | \n |")),bA,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},uA.prototype.replicateOnChange=function(t,e){var n=new SA(this,t);return e?n:n.doResume(null)},NA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},NA.prototype=Object.create(N.prototype),NA.prototype.constructor=NA,NA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$discussionUid),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,CA);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},LA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},LA.prototype=Object.create(N.prototype),LA.prototype.constructor=LA,LA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$DiscussionTopicDao_JdbcKt._db,new st(S("\n |SELECT * FROM (\n | SELECT DiscussionTopic.*,\n | ( \n | SELECT COUNT(*) \n | FROM DiscussionPost \n | WHERE DiscussionPost.discussionPostDiscussionTopicUid = DiscussionTopic.discussionTopicUid\n | ) as numPosts,\n | (\n | 0\n | )as lastActiveTimestamp\n | FROM DiscussionTopic \n | WHERE DiscussionTopic.discussionTopicCourseDiscussionUid = ? \n | AND CAST(DiscussionTopic.discussionTopicVisible AS INTEGER) = 1\n | AND CAST(DiscussionTopic.discussionTopicArchive AS INTEGER) = 0\n | ORDER BY DiscussionTopic.discussionTopicIndex\n | ) LIMIT ? OFFSET ?\n ")),TA(this.local$closure$discussionUid,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vA.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$DiscussionTopicDao_JdbcKt._db,p(["DiscussionPost","DiscussionTopic"]),(n=this.this$DiscussionTopicDao_JdbcKt,i=this.closure$discussionUid,o=e,r=t,function(t,e){var s=new LA(n,i,o,r,t);return e?s:s.doResume(null)}));var n,i,o,r},wA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},wA.prototype=Object.create(N.prototype),wA.prototype.constructor=wA,wA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$discussionUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,zA);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},RA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},RA.prototype=Object.create(N.prototype),RA.prototype.constructor=RA,RA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$DiscussionTopicDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (\n | SELECT DiscussionTopic.*,\n | ( \n | SELECT COUNT(*) \n | FROM DiscussionPost \n | WHERE DiscussionPost.discussionPostDiscussionTopicUid = DiscussionTopic.discussionTopicUid\n | ) as numPosts,\n | (\n | 0\n | )as lastActiveTimestamp\n | FROM DiscussionTopic \n | WHERE DiscussionTopic.discussionTopicCourseDiscussionUid = ? \n | AND CAST(DiscussionTopic.discussionTopicVisible AS INTEGER) = 1\n | AND CAST(DiscussionTopic.discussionTopicArchive AS INTEGER) = 0\n | ORDER BY DiscussionTopic.discussionTopicIndex\n | ) \n ")),OA(this.local$closure$discussionUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vA.prototype.getLength=function(){return new ft(this.this$DiscussionTopicDao_JdbcKt._db,p(["DiscussionPost","DiscussionTopic"]),(t=this.this$DiscussionTopicDao_JdbcKt,e=this.closure$discussionUid,function(n,i){var o=new RA(t,e,n);return i?o:o.doResume(null)}));var t,e},vA.$metadata$={kind:c,interfaces:[gt]},uA.prototype.getListOfTopicsByDiscussion_s8cxhz$=function(t){return new vA(this,t)},xA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},xA.prototype=Object.create(N.prototype),xA.prototype.constructor=xA,xA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$clazzUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,AA);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},uA.prototype.getTopicsByClazz_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT DiscussionTopic.*\n | FROM DiscussionTopic\n | WHERE DiscussionTopic.discussionTopicCourseDiscussionUid IN \n | (SELECT CourseDiscussion.courseDiscussionUid \n | FROM CourseDiscussion\n | WHERE CourseDiscussion.courseDiscussionClazzUid = ? ) \n | AND CAST(DiscussionTopic.discussionTopicVisible AS INTEGER) = 1\n | AND CAST(DiscussionTopic.discussionTopicArchive AS INTEGER) = 0\n | \n | \n ")),(n=t,function(t,e,i){var o=new xA(n,t,e);return i?o:o.doResume(null)}),e);var n},UA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},UA.prototype=Object.create(N.prototype),UA.prototype.constructor=UA,UA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$discussionTopicUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,IA);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},PA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},PA.prototype=Object.create(N.prototype),PA.prototype.constructor=PA,PA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$DiscussionTopicDao_JdbcKt._db,new st(S("\n |\n | SELECT DiscussionTopic.*\n | FROM DiscussionTopic\n | WHERE DiscussionTopic.discussionTopicUid = ?\n | \n | \n ")),DA(this.local$closure$discussionTopicUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},uA.prototype.getDiscussionTopicByUid_s8cxhz$=function(t){return new ft(this._db,Et("DiscussionTopic"),(e=this,n=t,function(t,i){var o=new PA(e,n,t);return i?o:o.doResume(null)}));var e,n},MA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},MA.prototype=Object.create(N.prototype),MA.prototype.constructor=MA,MA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setBoolean_fzusl$(1,this.local$closure$active),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$changeTime),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$uid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},jA.prototype=Object.create(N.prototype),jA.prototype.constructor=jA,jA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | UPDATE DiscussionTopic \n | SET discussionTopicVisible = ?, \n | discussionTopicLct = ?\n | WHERE discussionTopicUid = ?\n ")),kA(this.local$active,this.local$changeTime,this.local$uid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},uA.prototype.updateActiveByUid_zaz62j$=function(t,e,n,i,o){var r=new jA(this,t,e,n,i);return o?r:r.doResume(null)},GA.prototype.makeSql_6taknv$=function(t){return"INSERT OR REPLACE INTO DiscussionTopic (discussionTopicUid, discussionTopicTitle, discussionTopicDesc, discussionTopicStartDate, discussionTopicCourseDiscussionUid, discussionTopicVisible, discussionTopicArchive, discussionTopicIndex, discussionTopicClazzUid, discussionTopicLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},GA.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.discussionTopicUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.discussionTopicUid),t.setString_vqvrqt$(2,e.discussionTopicTitle),t.setString_vqvrqt$(3,e.discussionTopicDesc),t.setLong_6svq3l$(4,e.discussionTopicStartDate),t.setLong_6svq3l$(5,e.discussionTopicCourseDiscussionUid),t.setBoolean_fzusl$(6,e.discussionTopicVisible),t.setBoolean_fzusl$(7,e.discussionTopicArchive),t.setInt_vux9f0$(8,e.discussionTopicIndex),t.setLong_6svq3l$(9,e.discussionTopicClazzUid),t.setLong_6svq3l$(10,e.discussionTopicLct)},GA.$metadata$={kind:c,interfaces:[pt]},qA.prototype.makeSql_6taknv$=function(t){return"INSERT INTO DiscussionTopic (discussionTopicUid, discussionTopicTitle, discussionTopicDesc, discussionTopicStartDate, discussionTopicCourseDiscussionUid, discussionTopicVisible, discussionTopicArchive, discussionTopicIndex, discussionTopicClazzUid, discussionTopicLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},qA.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.discussionTopicUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.discussionTopicUid),t.setString_vqvrqt$(2,e.discussionTopicTitle),t.setString_vqvrqt$(3,e.discussionTopicDesc),t.setLong_6svq3l$(4,e.discussionTopicStartDate),t.setLong_6svq3l$(5,e.discussionTopicCourseDiscussionUid),t.setBoolean_fzusl$(6,e.discussionTopicVisible),t.setBoolean_fzusl$(7,e.discussionTopicArchive),t.setInt_vux9f0$(8,e.discussionTopicIndex),t.setLong_6svq3l$(9,e.discussionTopicClazzUid),t.setLong_6svq3l$(10,e.discussionTopicLct)},qA.$metadata$={kind:c,interfaces:[pt]},uA.$metadata$={kind:c,simpleName:"DiscussionTopicDao_JdbcKt",interfaces:[lA]},BA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},BA.prototype=Object.create(N.prototype),BA.prototype.constructor=BA,BA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},FA.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new BA(this,t,e);return n?i:i.doResume(null)},WA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},WA.prototype=Object.create(N.prototype),WA.prototype.constructor=WA,WA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},FA.prototype.replicateOnChange=function(t,e){var n=new WA(this,t);return e?n:n.doResume(null)},FA.prototype.getListOfTopicsByDiscussion_s8cxhz$=function(t){return this._dao_0.getListOfTopicsByDiscussion_s8cxhz$(t)},FA.prototype.getTopicsByClazz_s8cxhz$=function(t,e){return this._dao_0.getTopicsByClazz_s8cxhz$(t,e)},FA.prototype.getDiscussionTopicByUid_s8cxhz$=function(t){return this._dao_0.getDiscussionTopicByUid_s8cxhz$(t)},HA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},HA.prototype=Object.create(N.prototype),HA.prototype.constructor=HA,HA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.updateActiveByUid_zaz62j$(this.local$uid,this.local$active,this.local$changeTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},FA.prototype.updateActiveByUid_zaz62j$=function(t,e,n,i,o){var r=new HA(this,t,e,n,i);return o?r:r.doResume(null)},VA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},VA.prototype=Object.create(N.prototype),VA.prototype.constructor=VA,VA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_pkManager=_t(w(this.$this._db_0)),this.local$_generatedPks=F(),this.local$$receiver=this.local$list.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$$receiver.hasNext()){this.state_0=5;continue}if(this.local$element=this.local$$receiver.next(),O(this.local$element.discussionTopicUid,X)){if(this.state_0=3,this.result_0=this.local$_pkManager.nextIdAsync_za3lpa$(131,this),this.result_0===C)return C;continue}this.state_0=4;continue;case 3:var t=this.result_0;this.local$element.discussionTopicUid=t,this.local$_generatedPks.add_11rb$(t),this.state_0=4;continue;case 4:this.local$element.discussionTopicLct=J(),this.state_0=2;continue;case 5:if(this.state_0=6,this.result_0=this.$this._dao_0.replaceListAsync_twfw7k$(this.local$list,this),this.result_0===C)return C;continue;case 6:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},FA.prototype.replaceListAsync_twfw7k$=function(t,e,n){var i=new VA(this,t,e);return n?i:i.doResume(null)},FA.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},KA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},KA.prototype=Object.create(N.prototype),KA.prototype.constructor=KA,KA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.discussionTopicUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(131,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.discussionTopicUid=e,this.state_0=3;continue;case 3:if(this.local$entity.discussionTopicLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.discussionTopicUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},FA.prototype.insertAsync=function(t,e,n){var i=new KA(this,t,e);return n?i:i.doResume(null)},FA.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},FA.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},FA.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},XA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},XA.prototype=Object.create(N.prototype),XA.prototype.constructor=XA,XA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_pkManager=_t(w(this.$this._db_0)),this.local$_generatedPks=F(),this.local$$receiver=this.local$entityList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$$receiver.hasNext()){this.state_0=5;continue}if(this.local$element=this.local$$receiver.next(),O(this.local$element.discussionTopicUid,X)){if(this.state_0=3,this.result_0=this.local$_pkManager.nextIdAsync_za3lpa$(131,this),this.result_0===C)return C;continue}this.state_0=4;continue;case 3:var t=this.result_0;this.local$element.discussionTopicUid=t,this.local$_generatedPks.add_11rb$(t),this.state_0=4;continue;case 4:this.local$element.discussionTopicLct=J(),this.state_0=2;continue;case 5:if(this.state_0=6,this.result_0=this.$this._dao_0.insertListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 6:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},FA.prototype.insertListAsync_4ezy5m$=function(t,e,n){var i=new XA(this,t,e);return n?i:i.doResume(null)},JA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},JA.prototype=Object.create(N.prototype),JA.prototype.constructor=JA,JA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:F();for(var t=this.local$entityList.iterator();t.hasNext();)t.next().discussionTopicLct=J();if(this.state_0=2,this.result_0=this.$this._dao_0.updateListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},FA.prototype.updateListAsync_4ezy5m$=function(t,e,n){var i=new JA(this,t,e);return n?i:i.doResume(null)},FA.$metadata$={kind:c,simpleName:"DiscussionTopicDao_ReplicateWrapper",interfaces:[lA]},QA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},QA.prototype=Object.create(N.prototype),QA.prototype.constructor=QA,QA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},YA.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new QA(this,t,e);return n?i:i.doResume(null)},ZA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ZA.prototype=Object.create(N.prototype),ZA.prototype.constructor=ZA,ZA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},YA.prototype.replicateOnChange=function(t,e){var n=new ZA(this,t);return e?n:n.doResume(null)},YA.prototype.getListOfTopicsByDiscussion_s8cxhz$=function(t){return this._dao.getListOfTopicsByDiscussion_s8cxhz$(t)},tx.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},tx.prototype=Object.create(N.prototype),tx.prototype.constructor=tx,tx.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.getTopicsByClazz_s8cxhz$(this.local$clazzUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},YA.prototype.getTopicsByClazz_s8cxhz$=function(t,e,n){var i=new tx(this,t,e);return n?i:i.doResume(null)},YA.prototype.getDiscussionTopicByUid_s8cxhz$=function(t){return this._dao.getDiscussionTopicByUid_s8cxhz$(t)},ex.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ex.prototype=Object.create(N.prototype),ex.prototype.constructor=ex,ex.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateActiveByUid_zaz62j$(this.local$uid,this.local$active,this.local$changeTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},YA.prototype.updateActiveByUid_zaz62j$=function(t,e,n,i,o){var r=new ex(this,t,e,n,i);return o?r:r.doResume(null)},nx.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},nx.prototype=Object.create(N.prototype),nx.prototype.constructor=nx,nx.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replaceListAsync_twfw7k$(this.local$list,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},YA.prototype.replaceListAsync_twfw7k$=function(t,e,n){var i=new nx(this,t,e);return n?i:i.doResume(null)},YA.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},ix.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ix.prototype=Object.create(N.prototype),ix.prototype.constructor=ix,ix.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},YA.prototype.insertAsync=function(t,e,n){var i=new ix(this,t,e);return n?i:i.doResume(null)},YA.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},YA.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},YA.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},ox.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ox.prototype=Object.create(N.prototype),ox.prototype.constructor=ox,ox.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},YA.prototype.insertListAsync_4ezy5m$=function(t,e,n){var i=new ox(this,t,e);return n?i:i.doResume(null)},rx.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},rx.prototype=Object.create(N.prototype),rx.prototype.constructor=rx,rx.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},YA.prototype.updateListAsync_4ezy5m$=function(t,e,n){var i=new rx(this,t,e);return n?i:i.doResume(null)},YA.$metadata$={kind:c,simpleName:"DiscussionTopicDao_Repo",interfaces:[lA]},sx.$metadata$={kind:c,simpleName:"EntityRoleDao",interfaces:[]},cx.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},cx.prototype=Object.create(N.prototype),cx.prototype.constructor=cx,cx.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterEntityRole_upsert.insertAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ax.prototype.insertOrReplace_fqnpoh$=function(t,e,n){var i=new cx(this,t,e);return n?i:i.doResume(null)},lx.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},lx.prototype=Object.create(N.prototype),lx.prototype.constructor=lx,lx.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$entity.erMasterCsn),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$entity.erLocalCsn),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$entity.erLastChangedBy),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$entity.erLct),this.local$_stmt.setInt_vux9f0$(5,this.local$closure$entity.erTableId),this.local$_stmt.setLong_6svq3l$(6,this.local$closure$entity.erEntityUid),this.local$_stmt.setLong_6svq3l$(7,this.local$closure$entity.erGroupUid),this.local$_stmt.setLong_6svq3l$(8,this.local$closure$entity.erRoleUid),this.local$_stmt.setBoolean_fzusl$(9,this.local$closure$entity.erActive),this.local$_stmt.setLong_6svq3l$(10,this.local$closure$entity.erUid),this.local$tmp$=this.local$closure$_result.v,this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$closure$_result.v=this.local$tmp$+this.result_0|0,V;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},hx.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},hx.prototype=Object.create(N.prototype),hx.prototype.constructor=hx,hx.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_result={v:0},this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE EntityRole SET erMasterCsn = ?, erLocalCsn = ?, erLastChangedBy = ?, erLct = ?, erTableId = ?, erEntityUid = ?, erGroupUid = ?, erRoleUid = ?, erActive = ? WHERE erUid = ?",ux(this.local$entity,this.local$_result),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$_result.v;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ax.prototype.updateAsync_fqnpoh$=function(t,e,n){var i=new hx(this,t,e);return n?i:i.doResume(null)},px.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},px.prototype=Object.create(N.prototype),px.prototype.constructor=px,px.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$accountPersonUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$accountPersonUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$permission),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,dx);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ax.prototype.userHasTableLevelPermission_3pjtqy$=function(t,e,n){return ct(this._db,new st(S("\n |\n | SELECT COALESCE((\n | SELECT admin \n | FROM Person \n | WHERE personUid = ?), 0)\n | OR EXISTS(SELECT EntityRole.erUid FROM EntityRole \n | JOIN Role \n | ON EntityRole.erRoleUid = Role.roleUid \n | JOIN PersonGroupMember \n | ON EntityRole.erGroupUid = PersonGroupMember.groupMemberGroupUid\n | WHERE PersonGroupMember.groupMemberPersonUid = ? \n | AND (Role.rolePermissions & ?) > 0) AS hasPermission\n "),void 0,void 0,void 0,S("\n |\n | SELECT COALESCE((\n | SELECT admin \n | FROM Person \n | WHERE personUid = ?), false)\n | OR EXISTS(SELECT EntityRole.erUid FROM EntityRole \n | JOIN Role \n | ON EntityRole.erRoleUid = Role.roleUid \n | JOIN PersonGroupMember \n | ON EntityRole.erGroupUid = PersonGroupMember.groupMemberGroupUid\n | WHERE PersonGroupMember.groupMemberPersonUid = ? \n | AND (Role.rolePermissions & ?) > 0) AS hasPermission\n | \n ")),(i=t,o=e,function(t,e,n){var r=new px(i,o,t,e);return n?r:r.doResume(null)}),n);var i,o},mx.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},mx.prototype=Object.create(N.prototype),mx.prototype.constructor=mx,mx.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setInt_vux9f0$(1,this.local$closure$tableId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$entityUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$groupUid),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$roleUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,_x);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ax.prototype.findByEntitiyAndPersonGroupAndRole_tmkdev$=function(t,e,n,i,o){return ct(this._db,new st("SELECT * FROM EntityRole WHERE erTableId = ? AND erEntityUid = ? AND erGroupUid = ? AND erRoleUid = ? "),(r=t,s=e,a=n,c=i,function(t,e,n){var i=new mx(r,s,a,c,t,e);return n?i:i.doResume(null)}),o);var r,s,a,c},$x.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},$x.prototype=Object.create(N.prototype),$x.prototype.constructor=$x,$x.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personGroupUid),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,gx);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yx.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},yx.prototype=Object.create(N.prototype),yx.prototype.constructor=yx,yx.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$EntityRoleDao_JdbcKt._db,new st(S("\n |SELECT * FROM (\n | SELECT \n | (CASE \n | WHEN EntityRole.erTableId = 6\tTHEN (SELECT Clazz.clazzName FROM Clazz WHERE Clazz.clazzUid = EntityRole.erEntityUid)\n | WHEN EntityRole.erTableId = 9\tTHEN (SELECT Person.firstNames||' '||Person.lastName FROM Person WHERE Person.personUid = EntityRole.erEntityUid)\n | WHEN EntityRole.erTableId = 164\tTHEN (SELECT School.schoolName FROM School WHERE School.schoolUid = EntityRole.erEntityUid)\n | ELSE '' \n | END) as entityRoleScopeName,\n | Role.*, EntityRole.* FROM EntityRole\n | LEFT JOIN Role ON EntityRole.erRoleUid = Role.roleUid \n | WHERE EntityRole.erGroupUid = ?\n | AND CAST(EntityRole.erActive AS INTEGER) = 1 \n | ) LIMIT ? OFFSET ?\n ")),Ex(this.local$closure$personGroupUid,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},fx.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$EntityRoleDao_JdbcKt._db,p(["Clazz","Person","School","EntityRole","Role"]),(n=this.this$EntityRoleDao_JdbcKt,i=this.closure$personGroupUid,o=e,r=t,function(t,e){var s=new yx(n,i,o,r,t);return e?s:s.doResume(null)}));var n,i,o,r},Sx.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Sx.prototype=Object.create(N.prototype),Sx.prototype.constructor=Sx,Sx.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personGroupUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,bx);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Cx.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Cx.prototype=Object.create(N.prototype),Cx.prototype.constructor=Cx,Cx.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$EntityRoleDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (\n | SELECT \n | (CASE \n | WHEN EntityRole.erTableId = 6\tTHEN (SELECT Clazz.clazzName FROM Clazz WHERE Clazz.clazzUid = EntityRole.erEntityUid)\n | WHEN EntityRole.erTableId = 9\tTHEN (SELECT Person.firstNames||' '||Person.lastName FROM Person WHERE Person.personUid = EntityRole.erEntityUid)\n | WHEN EntityRole.erTableId = 164\tTHEN (SELECT School.schoolName FROM School WHERE School.schoolUid = EntityRole.erEntityUid)\n | ELSE '' \n | END) as entityRoleScopeName,\n | Role.*, EntityRole.* FROM EntityRole\n | LEFT JOIN Role ON EntityRole.erRoleUid = Role.roleUid \n | WHERE EntityRole.erGroupUid = ?\n | AND CAST(EntityRole.erActive AS INTEGER) = 1 \n | ) \n ")),vx(this.local$closure$personGroupUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},fx.prototype.getLength=function(){return new ft(this.this$EntityRoleDao_JdbcKt._db,p(["Clazz","Person","School","EntityRole","Role"]),(t=this.this$EntityRoleDao_JdbcKt,e=this.closure$personGroupUid,function(n,i){var o=new Cx(t,e,n);return i?o:o.doResume(null)}));var t,e},fx.$metadata$={kind:c,interfaces:[gt]},ax.prototype.filterByPersonWithExtra_s8cxhz$=function(t){return new fx(this,t)},Tx.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Tx.prototype=Object.create(N.prototype),Tx.prototype.constructor=Tx,Tx.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personGroupUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Nx);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ax.prototype.filterByPersonWithExtraAsList_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT \n | (CASE \n | WHEN EntityRole.erTableId = 6\tTHEN (SELECT Clazz.clazzName FROM Clazz WHERE Clazz.clazzUid = EntityRole.erEntityUid)\n | WHEN EntityRole.erTableId = 9\tTHEN (SELECT Person.firstNames||' '||Person.lastName FROM Person WHERE Person.personUid = EntityRole.erEntityUid)\n | WHEN EntityRole.erTableId = 164\tTHEN (SELECT School.schoolName FROM School WHERE School.schoolUid = EntityRole.erEntityUid)\n | ELSE '' \n | END) as entityRoleScopeName,\n | Role.*, EntityRole.* FROM EntityRole\n | LEFT JOIN Role ON EntityRole.erRoleUid = Role.roleUid \n | WHERE EntityRole.erGroupUid = ?\n | AND CAST(EntityRole.erActive AS INTEGER) = 1 \n | \n ")),(n=t,function(t,e,i){var o=new Tx(n,t,e);return i?o:o.doResume(null)}),e);var n},zx.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},zx.prototype=Object.create(N.prototype),zx.prototype.constructor=zx,zx.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Lx);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ax.prototype.findByUidAsync_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT * FROM EntityRole WHERE erUid = ?"),(n=t,function(t,e,i){var o=new zx(n,t,e);return i?o:o.doResume(null)}),e);var n},Ox.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ox.prototype=Object.create(N.prototype),Ox.prototype.constructor=Ox,Ox.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,wx);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ax.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ax.prototype=Object.create(N.prototype),Ax.prototype.constructor=Ax,Ax.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$EntityRoleDao_JdbcKt._db,new st("SELECT * FROM EntityRole WHERE erUid = ?"),Rx(this.local$closure$uid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ax.prototype.findByUidLive_s8cxhz$=function(t){return new ft(this._db,Et("EntityRole"),(e=this,n=t,function(t,i){var o=new Ax(e,n,t);return i?o:o.doResume(null)}));var e,n},xx.prototype.makeSql_6taknv$=function(t){return"INSERT OR REPLACE INTO EntityRole (erUid, erMasterCsn, erLocalCsn, erLastChangedBy, erLct, erTableId, erEntityUid, erGroupUid, erRoleUid, erActive) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},xx.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.erUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.erUid),t.setLong_6svq3l$(2,e.erMasterCsn),t.setLong_6svq3l$(3,e.erLocalCsn),t.setInt_vux9f0$(4,e.erLastChangedBy),t.setLong_6svq3l$(5,e.erLct),t.setInt_vux9f0$(6,e.erTableId),t.setLong_6svq3l$(7,e.erEntityUid),t.setLong_6svq3l$(8,e.erGroupUid),t.setLong_6svq3l$(9,e.erRoleUid),t.setBoolean_fzusl$(10,e.erActive)},xx.$metadata$={kind:c,interfaces:[pt]},ax.$metadata$={kind:c,simpleName:"EntityRoleDao_JdbcKt",interfaces:[sx]},Ux.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ux.prototype=Object.create(N.prototype),Ux.prototype.constructor=Ux,Ux.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.userHasTableLevelPermission_3pjtqy$(this.local$accountPersonUid,this.local$permission,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ix.prototype.userHasTableLevelPermission_3pjtqy$=function(t,e,n,i){var o=new Ux(this,t,e,n);return i?o:o.doResume(null)},Dx.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Dx.prototype=Object.create(N.prototype),Dx.prototype.constructor=Dx,Dx.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByEntitiyAndPersonGroupAndRole_tmkdev$(this.local$tableId,this.local$entityUid,this.local$groupUid,this.local$roleUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ix.prototype.findByEntitiyAndPersonGroupAndRole_tmkdev$=function(t,e,n,i,o,r){var s=new Dx(this,t,e,n,i,o);return r?s:s.doResume(null)},Ix.prototype.filterByPersonWithExtra_s8cxhz$=function(t){return this._dao.filterByPersonWithExtra_s8cxhz$(t)},Px.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Px.prototype=Object.create(N.prototype),Px.prototype.constructor=Px,Px.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.filterByPersonWithExtraAsList_s8cxhz$(this.local$personGroupUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ix.prototype.filterByPersonWithExtraAsList_s8cxhz$=function(t,e,n){var i=new Px(this,t,e);return n?i:i.doResume(null)},Mx.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Mx.prototype=Object.create(N.prototype),Mx.prototype.constructor=Mx,Mx.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByUidAsync_s8cxhz$(this.local$uid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ix.prototype.findByUidAsync_s8cxhz$=function(t,e,n){var i=new Mx(this,t,e);return n?i:i.doResume(null)},Ix.prototype.findByUidLive_s8cxhz$=function(t){return this._dao.findByUidLive_s8cxhz$(t)},kx.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},kx.prototype=Object.create(N.prototype),kx.prototype.constructor=kx,kx.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateAsync_fqnpoh$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ix.prototype.updateAsync_fqnpoh$=function(t,e,n){var i=new kx(this,t,e);return n?i:i.doResume(null)},jx.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},jx.prototype=Object.create(N.prototype),jx.prototype.constructor=jx,jx.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertOrReplace_fqnpoh$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ix.prototype.insertOrReplace_fqnpoh$=function(t,e,n){var i=new jx(this,t,e);return n?i:i.doResume(null)},Ix.$metadata$={kind:c,simpleName:"EntityRoleDao_Repo",interfaces:[sx]},Gx.$metadata$={kind:c,simpleName:"ErrorReportDao",interfaces:[]},Fx.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Fx.prototype=Object.create(N.prototype),Fx.prototype.constructor=Fx,Fx.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterErrorReport_.insertAndReturnIdAsync_11rb$(this.local$errorReport,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},qx.prototype.insertAsync_vn2wbu$=function(t,e,n){var i=new Fx(this,t,e);return n?i:i.doResume(null)},Bx.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Bx.prototype=Object.create(N.prototype),Bx.prototype.constructor=Bx,Bx.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hx.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Hx.prototype=Object.create(N.prototype),Hx.prototype.constructor=Hx,Hx.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ErrorReportReplicate(erPk, erDestination)\n | SELECT DISTINCT ErrorReport.errUid AS erUid,\n | UserSession.usClientNodeId AS erDestination\n | FROM ChangeLog\n | JOIN ErrorReport\n | ON ChangeLog.chTableId = 419\n | AND ChangeLog.chEntityPk = ErrorReport.errUid\n | JOIN UserSession ON UserSession.usSessionType = 2\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ErrorReport.errLct != COALESCE(\n | (SELECT erVersionId\n | FROM ErrorReportReplicate\n | WHERE erPk = ErrorReport.errUid\n | AND erDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(erPk, erDestination) DO UPDATE\n | SET erPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ErrorReportReplicate(erPk, erDestination)\n | SELECT DISTINCT ErrorReport.errUid AS erUid,\n | UserSession.usClientNodeId AS erDestination\n | FROM ChangeLog\n | JOIN ErrorReport\n | ON ChangeLog.chTableId = 419\n | AND ChangeLog.chEntityPk = ErrorReport.errUid\n | JOIN UserSession ON UserSession.usSessionType = 2\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ErrorReport.errLct != COALESCE(\n | (SELECT erVersionId\n | FROM ErrorReportReplicate\n | WHERE erPk = ErrorReport.errUid\n | AND erDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(erPk, erDestination) DO UPDATE\n | SET erPending = true\n | \n | \n |")),Wx,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},qx.prototype.replicateOnChange=function(t,e){var n=new Hx(this,t);return e?n:n.doResume(null)},Kx.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Kx.prototype=Object.create(N.prototype),Kx.prototype.constructor=Kx,Kx.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$errUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Vx);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},qx.prototype.findByUidAsync_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT ErrorReport.* \n | FROM ErrorReport\n | WHERE errUid = ?\n | \n ")),(n=t,function(t,e,i){var o=new Kx(n,t,e);return i?o:o.doResume(null)}),e);var n},Jx.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Jx.prototype=Object.create(N.prototype),Jx.prototype.constructor=Jx,Jx.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setInt_vux9f0$(1,this.local$closure$errCode),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Xx);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},qx.prototype.findByErrorCode_za3lpa$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT ErrorReport.*\n | FROM ErrorReport\n | WHERE errorCode = ? \n | \n ")),(n=t,function(t,e,i){var o=new Jx(n,t,e);return i?o:o.doResume(null)}),e);var n},Yx.prototype.makeSql_6taknv$=function(t){return"INSERT INTO ErrorReport (errUid, errPcsn, errLcsn, errLcb, errLct, severity, timestamp, presenterUri, appVersion, versionCode, errorCode, operatingSys, osVersion, stackTrace, message) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},Yx.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.errUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.errUid),t.setLong_6svq3l$(2,e.errPcsn),t.setLong_6svq3l$(3,e.errLcsn),t.setInt_vux9f0$(4,e.errLcb),t.setLong_6svq3l$(5,e.errLct),t.setInt_vux9f0$(6,e.severity),t.setLong_6svq3l$(7,e.timestamp),t.setString_vqvrqt$(8,e.presenterUri),t.setString_vqvrqt$(9,e.appVersion),t.setInt_vux9f0$(10,e.versionCode),t.setInt_vux9f0$(11,e.errorCode),t.setString_vqvrqt$(12,e.operatingSys),t.setString_vqvrqt$(13,e.osVersion),t.setString_vqvrqt$(14,e.stackTrace),t.setString_vqvrqt$(15,e.message)},Yx.$metadata$={kind:c,interfaces:[pt]},qx.$metadata$={kind:c,simpleName:"ErrorReportDao_JdbcKt",interfaces:[Gx]},Zx.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Zx.prototype=Object.create(N.prototype),Zx.prototype.constructor=Zx,Zx.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Qx.prototype.replicateOnChange=function(t,e){var n=new Zx(this,t);return e?n:n.doResume(null)},tI.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},tI.prototype=Object.create(N.prototype),tI.prototype.constructor=tI,tI.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$errorReport.errUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(419,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$errorReport.errUid=e,this.state_0=3;continue;case 3:if(this.local$errorReport.errLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync_vn2wbu$(this.local$errorReport,this),this.result_0===C)return C;continue;case 4:return this.local$errorReport.errUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Qx.prototype.insertAsync_vn2wbu$=function(t,e,n){var i=new tI(this,t,e);return n?i:i.doResume(null)},Qx.prototype.findByUidAsync_s8cxhz$=function(t,e){return this._dao_0.findByUidAsync_s8cxhz$(t,e)},Qx.prototype.findByErrorCode_za3lpa$=function(t,e){return this._dao_0.findByErrorCode_za3lpa$(t,e)},Qx.$metadata$={kind:c,simpleName:"ErrorReportDao_ReplicateWrapper",interfaces:[Gx]},nI.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},nI.prototype=Object.create(N.prototype),nI.prototype.constructor=nI,nI.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},eI.prototype.replicateOnChange=function(t,e){var n=new nI(this,t);return e?n:n.doResume(null)},iI.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},iI.prototype=Object.create(N.prototype),iI.prototype.constructor=iI,iI.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync_vn2wbu$(this.local$errorReport,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},eI.prototype.insertAsync_vn2wbu$=function(t,e,n){var i=new iI(this,t,e);return n?i:i.doResume(null)},oI.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},oI.prototype=Object.create(N.prototype),oI.prototype.constructor=oI,oI.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByUidAsync_s8cxhz$(this.local$errUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},eI.prototype.findByUidAsync_s8cxhz$=function(t,e,n){var i=new oI(this,t,e);return n?i:i.doResume(null)},rI.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]};function LH(t,e){cH.call(this),this._db_0=t,this._dao_0=e}function zH(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function wH(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function OH(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$personPicture=e}function RH(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function AH(t,e,n,i,o,r){cH.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function xH(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function IH(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function UH(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$personUid=e}function DH(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$personPicture=e}function PH(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function MH(){}function kH(t){MH.call(this),this._db=t,this._insertAdapterReport_upsert=new bV(this._db),this._insertAdapterReport_=new SV(this._db)}function jH(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function GH(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$entity=t,this.local$_stmt=e}function qH(t){return function(e,n,i){var o=new GH(t,e,n);return i?o:o.doResume(null)}}function FH(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function BH(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function WH(t){return function(e,n,i){var o=new BH(t,e,n);return i?o:o.doResume(null)}}function HH(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function VH(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function KH(t,e,n){var i=new VH(t,e);return n?i:i.doResume(null)}function XH(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function JH(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("reportUid"),i=e.getLong_61zpoe$("reportOwnerUid"),o=e.getInt_61zpoe$("xAxis"),r=e.getInt_61zpoe$("reportDateRangeSelection"),s=e.getLong_61zpoe$("fromDate"),a=e.getInt_61zpoe$("fromRelTo"),c=e.getInt_61zpoe$("fromRelOffSet"),l=e.getInt_61zpoe$("fromRelUnit"),u=e.getLong_61zpoe$("toDate"),h=e.getInt_61zpoe$("toRelTo"),d=e.getInt_61zpoe$("toRelOffSet"),p=e.getInt_61zpoe$("toRelUnit"),_=e.getString_61zpoe$("reportTitle"),m=e.getString_61zpoe$("reportDescription"),f=e.getString_61zpoe$("reportSeries"),g=e.getBoolean_61zpoe$("reportInactive"),$=e.getBoolean_61zpoe$("isTemplate"),E=e.getInt_61zpoe$("priority"),y=e.getInt_61zpoe$("reportTitleId"),b=e.getInt_61zpoe$("reportDescId"),S=e.getLong_61zpoe$("reportMasterChangeSeqNum"),v=e.getLong_61zpoe$("reportLocalChangeSeqNum"),C=e.getInt_61zpoe$("reportLastChangedBy"),N=e.getLong_61zpoe$("reportLct"),T=new Out;return T.reportUid=n,T.reportOwnerUid=i,T.xAxis=o,T.reportDateRangeSelection=r,T.fromDate=s,T.fromRelTo=a,T.fromRelOffSet=c,T.fromRelUnit=l,T.toDate=u,T.toRelTo=h,T.toRelOffSet=d,T.toRelUnit=p,T.reportTitle=_,T.reportDescription=m,T.reportSeries=f,T.reportInactive=g,T.isTemplate=$,T.priority=E,T.reportTitleId=y,T.reportDescId=b,T.reportMasterChangeSeqNum=S,T.reportLocalChangeSeqNum=v,T.reportLastChangedBy=C,T.reportLct=N,T}));var e}function YH(t,e,n,i,o){this.this$ReportDao_JdbcKt=t,this.closure$personUid=e,this.closure$isTemplate=n,this.closure$searchBit=i,this.closure$sortOrder=o,gt.call(this)}function QH(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("reportUid"),i=e.getLong_61zpoe$("reportOwnerUid"),o=e.getInt_61zpoe$("xAxis"),r=e.getInt_61zpoe$("reportDateRangeSelection"),s=e.getLong_61zpoe$("fromDate"),a=e.getInt_61zpoe$("fromRelTo"),c=e.getInt_61zpoe$("fromRelOffSet"),l=e.getInt_61zpoe$("fromRelUnit"),u=e.getLong_61zpoe$("toDate"),h=e.getInt_61zpoe$("toRelTo"),d=e.getInt_61zpoe$("toRelOffSet"),p=e.getInt_61zpoe$("toRelUnit"),_=e.getString_61zpoe$("reportTitle"),m=e.getString_61zpoe$("reportDescription"),f=e.getString_61zpoe$("reportSeries"),g=e.getBoolean_61zpoe$("reportInactive"),$=e.getBoolean_61zpoe$("isTemplate"),E=e.getInt_61zpoe$("priority"),y=e.getInt_61zpoe$("reportTitleId"),b=e.getInt_61zpoe$("reportDescId"),S=e.getLong_61zpoe$("reportMasterChangeSeqNum"),v=e.getLong_61zpoe$("reportLocalChangeSeqNum"),C=e.getInt_61zpoe$("reportLastChangedBy"),N=e.getLong_61zpoe$("reportLct"),T=new Out;return T.reportUid=n,T.reportOwnerUid=i,T.xAxis=o,T.reportDateRangeSelection=r,T.fromDate=s,T.fromRelTo=a,T.fromRelOffSet=c,T.fromRelUnit=l,T.toDate=u,T.toRelTo=h,T.toRelOffSet=d,T.toRelUnit=p,T.reportTitle=_,T.reportDescription=m,T.reportSeries=f,T.reportInactive=g,T.isTemplate=$,T.priority=E,T.reportTitleId=y,T.reportDescId=b,T.reportMasterChangeSeqNum=S,T.reportLocalChangeSeqNum=v,T.reportLastChangedBy=C,T.reportLct=N,T}));var e}function ZH(t,e,n,i,o,r,s,a){N.call(this,a),this.exceptionState_0=1,this.local$closure$personUid=t,this.local$closure$isTemplate=e,this.local$closure$searchBit=n,this.local$closure$sortOrder=i,this.local$closure$_limit=o,this.local$closure$_offset=r,this.local$_stmt=s}function tV(t,e,n,i,o,r){return function(s,a,c){var l=new ZH(t,e,n,i,o,r,s,a);return c?l:l.doResume(null)}}function eV(t,e,n,i,o,r,s,a){N.call(this,a),this.exceptionState_0=1,this.local$this$ReportDao_JdbcKt=t,this.local$closure$personUid=e,this.local$closure$isTemplate=n,this.local$closure$searchBit=i,this.local$closure$sortOrder=o,this.local$closure$_limit=r,this.local$closure$_offset=s}function nV(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function iV(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$closure$personUid=t,this.local$closure$isTemplate=e,this.local$closure$searchBit=n,this.local$closure$sortOrder=i,this.local$_stmt=o}function oV(t,e,n,i){return function(o,r,s){var a=new iV(t,e,n,i,o,r);return s?a:a.doResume(null)}}function rV(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$this$ReportDao_JdbcKt=t,this.local$closure$personUid=e,this.local$closure$isTemplate=n,this.local$closure$searchBit=i,this.local$closure$sortOrder=o}function sV(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("reportUid"),i=e.getLong_61zpoe$("reportOwnerUid"),o=e.getInt_61zpoe$("xAxis"),r=e.getInt_61zpoe$("reportDateRangeSelection"),s=e.getLong_61zpoe$("fromDate"),a=e.getInt_61zpoe$("fromRelTo"),c=e.getInt_61zpoe$("fromRelOffSet"),l=e.getInt_61zpoe$("fromRelUnit"),u=e.getLong_61zpoe$("toDate"),h=e.getInt_61zpoe$("toRelTo"),d=e.getInt_61zpoe$("toRelOffSet"),p=e.getInt_61zpoe$("toRelUnit"),_=e.getString_61zpoe$("reportTitle"),m=e.getString_61zpoe$("reportDescription"),f=e.getString_61zpoe$("reportSeries"),g=e.getBoolean_61zpoe$("reportInactive"),$=e.getBoolean_61zpoe$("isTemplate"),E=e.getInt_61zpoe$("priority"),y=e.getInt_61zpoe$("reportTitleId"),b=e.getInt_61zpoe$("reportDescId"),S=e.getLong_61zpoe$("reportMasterChangeSeqNum"),v=e.getLong_61zpoe$("reportLocalChangeSeqNum"),C=e.getInt_61zpoe$("reportLastChangedBy"),N=e.getLong_61zpoe$("reportLct"),T=new Out;return T.reportUid=n,T.reportOwnerUid=i,T.xAxis=o,T.reportDateRangeSelection=r,T.fromDate=s,T.fromRelTo=a,T.fromRelOffSet=c,T.fromRelUnit=l,T.toDate=u,T.toRelTo=h,T.toRelOffSet=d,T.toRelUnit=p,T.reportTitle=_,T.reportDescription=m,T.reportSeries=f,T.reportInactive=g,T.isTemplate=$,T.priority=E,T.reportTitleId=y,T.reportDescId=b,T.reportMasterChangeSeqNum=S,T.reportLocalChangeSeqNum=v,T.reportLastChangedBy=C,T.reportLct=N,T}));var e}function aV(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$entityUid=t,this.local$_stmt=e}function cV(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("reportUid"),i=e.getLong_61zpoe$("reportOwnerUid"),o=e.getInt_61zpoe$("xAxis"),r=e.getInt_61zpoe$("reportDateRangeSelection"),s=e.getLong_61zpoe$("fromDate"),a=e.getInt_61zpoe$("fromRelTo"),c=e.getInt_61zpoe$("fromRelOffSet"),l=e.getInt_61zpoe$("fromRelUnit"),u=e.getLong_61zpoe$("toDate"),h=e.getInt_61zpoe$("toRelTo"),d=e.getInt_61zpoe$("toRelOffSet"),p=e.getInt_61zpoe$("toRelUnit"),_=e.getString_61zpoe$("reportTitle"),m=e.getString_61zpoe$("reportDescription"),f=e.getString_61zpoe$("reportSeries"),g=e.getBoolean_61zpoe$("reportInactive"),$=e.getBoolean_61zpoe$("isTemplate"),E=e.getInt_61zpoe$("priority"),y=e.getInt_61zpoe$("reportTitleId"),b=e.getInt_61zpoe$("reportDescId"),S=e.getLong_61zpoe$("reportMasterChangeSeqNum"),v=e.getLong_61zpoe$("reportLocalChangeSeqNum"),C=e.getInt_61zpoe$("reportLastChangedBy"),N=e.getLong_61zpoe$("reportLct"),T=new Out;return T.reportUid=n,T.reportOwnerUid=i,T.xAxis=o,T.reportDateRangeSelection=r,T.fromDate=s,T.fromRelTo=a,T.fromRelOffSet=c,T.fromRelUnit=l,T.toDate=u,T.toRelTo=h,T.toRelOffSet=d,T.toRelUnit=p,T.reportTitle=_,T.reportDescription=m,T.reportSeries=f,T.reportInactive=g,T.isTemplate=$,T.priority=E,T.reportTitleId=y,T.reportDescId=b,T.reportMasterChangeSeqNum=S,T.reportLocalChangeSeqNum=v,T.reportLastChangedBy=C,T.reportLct=N,T}));var e}function lV(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function uV(t){return function(e,n,i){var o=new lV(t,e,n);return i?o:o.doResume(null)}}function hV(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$ReportDao_JdbcKt=t,this.local$closure$uid=e}function dV(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("reportUid"),i=e.getLong_61zpoe$("reportOwnerUid"),o=e.getInt_61zpoe$("xAxis"),r=e.getInt_61zpoe$("reportDateRangeSelection"),s=e.getLong_61zpoe$("fromDate"),a=e.getInt_61zpoe$("fromRelTo"),c=e.getInt_61zpoe$("fromRelOffSet"),l=e.getInt_61zpoe$("fromRelUnit"),u=e.getLong_61zpoe$("toDate"),h=e.getInt_61zpoe$("toRelTo"),d=e.getInt_61zpoe$("toRelOffSet"),p=e.getInt_61zpoe$("toRelUnit"),_=e.getString_61zpoe$("reportTitle"),m=e.getString_61zpoe$("reportDescription"),f=e.getString_61zpoe$("reportSeries"),g=e.getBoolean_61zpoe$("reportInactive"),$=e.getBoolean_61zpoe$("isTemplate"),E=e.getInt_61zpoe$("priority"),y=e.getInt_61zpoe$("reportTitleId"),b=e.getInt_61zpoe$("reportDescId"),S=e.getLong_61zpoe$("reportMasterChangeSeqNum"),v=e.getLong_61zpoe$("reportLocalChangeSeqNum"),C=e.getInt_61zpoe$("reportLastChangedBy"),N=e.getLong_61zpoe$("reportLct"),T=new Out;return T.reportUid=n,T.reportOwnerUid=i,T.xAxis=o,T.reportDateRangeSelection=r,T.fromDate=s,T.fromRelTo=a,T.fromRelOffSet=c,T.fromRelUnit=l,T.toDate=u,T.toRelTo=h,T.toRelOffSet=d,T.toRelUnit=p,T.reportTitle=_,T.reportDescription=m,T.reportSeries=f,T.reportInactive=g,T.isTemplate=$,T.priority=E,T.reportTitleId=y,T.reportDescId=b,T.reportMasterChangeSeqNum=S,T.reportLocalChangeSeqNum=v,T.reportLastChangedBy=C,T.reportLct=N,T}));var e}function pV(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$isTemplate=t,this.local$_stmt=e}function _V(t){return function(e,n,i){var o=new pV(t,e,n);return i?o:o.doResume(null)}}function mV(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$ReportDao_JdbcKt=t,this.local$closure$isTemplate=e}function fV(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("reportUid"),i=e.getLong_61zpoe$("reportOwnerUid"),o=e.getInt_61zpoe$("xAxis"),r=e.getInt_61zpoe$("reportDateRangeSelection"),s=e.getLong_61zpoe$("fromDate"),a=e.getInt_61zpoe$("fromRelTo"),c=e.getInt_61zpoe$("fromRelOffSet"),l=e.getInt_61zpoe$("fromRelUnit"),u=e.getLong_61zpoe$("toDate"),h=e.getInt_61zpoe$("toRelTo"),d=e.getInt_61zpoe$("toRelOffSet"),p=e.getInt_61zpoe$("toRelUnit"),_=e.getString_61zpoe$("reportTitle"),m=e.getString_61zpoe$("reportDescription"),f=e.getString_61zpoe$("reportSeries"),g=e.getBoolean_61zpoe$("reportInactive"),$=e.getBoolean_61zpoe$("isTemplate"),E=e.getInt_61zpoe$("priority"),y=e.getInt_61zpoe$("reportTitleId"),b=e.getInt_61zpoe$("reportDescId"),S=e.getLong_61zpoe$("reportMasterChangeSeqNum"),v=e.getLong_61zpoe$("reportLocalChangeSeqNum"),C=e.getInt_61zpoe$("reportLastChangedBy"),N=e.getLong_61zpoe$("reportLct"),T=new Out;return T.reportUid=n,T.reportOwnerUid=i,T.xAxis=o,T.reportDateRangeSelection=r,T.fromDate=s,T.fromRelTo=a,T.fromRelOffSet=c,T.fromRelUnit=l,T.toDate=u,T.toRelTo=h,T.toRelOffSet=d,T.toRelUnit=p,T.reportTitle=_,T.reportDescription=m,T.reportSeries=f,T.reportInactive=g,T.isTemplate=$,T.priority=E,T.reportTitleId=y,T.reportDescId=b,T.reportMasterChangeSeqNum=S,T.reportLocalChangeSeqNum=v,T.reportLastChangedBy=C,T.reportLct=N,T}));var e}function gV(t){return mt(t,(e=t,function(t){return e.getLong_za3lpa$(1)}));var e}function $V(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$toggleVisibility=t,this.local$closure$updateTime=e,this.local$closure$selectedItem=n,this.local$_stmt=i}function EV(t,e,n){return function(i,o,r){var s=new $V(t,e,n,i,o);return r?s:s.doResume(null)}}function yV(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$toggleVisibility=e,this.local$selectedItem=n,this.local$updateTime=i}function bV(t){pt.call(this,t)}function SV(t){pt.call(this,t)}function vV(t,e){MH.call(this),this._db_0=t,this._dao_0=e}function CV(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function NV(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function TV(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function LV(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$toggleVisibility=e,this.local$selectedItem=n,this.local$updateTime=i}function zV(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function wV(t,e,n,i,o,r){MH.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function OV(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function RV(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function AV(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityUid=e}function xV(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function IV(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$toggleVisibility=e,this.local$selectedItem=n,this.local$updateTime=i}function UV(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function DV(){}function PV(t){DV.call(this),this._db=t,this._insertAdapterSchedule_=new yK(this._db)}function MV(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function kV(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function jV(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$entity=t,this.local$closure$_result=e,this.local$tmp$=void 0,this.local$_stmt=n}function GV(t,e){return function(n,i,o){var r=new jV(t,e,n,i);return o?r:r.doResume(null)}}function qV(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_result=void 0,this.local$entity=e}function FV(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$entityList=t,this.local$tmp$=void 0,this.local$_stmt=e}function BV(t){return function(e,n,i){var o=new FV(t,e,n);return i?o:o.doResume(null)}}function WV(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function HV(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function VV(t){return function(e,n,i){var o=new HV(t,e,n);return i?o:o.doResume(null)}}function KV(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function XV(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function JV(t,e,n){var i=new XV(t,e);return n?i:i.doResume(null)}function YV(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function QV(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$active=t,this.local$closure$changeTime=e,this.local$closure$scheduleUid=n,this.local$_stmt=i}function ZV(t,e,n){return function(i,o,r){var s=new QV(t,e,n,i,o);return r?s:s.doResume(null)}}function tK(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$scheduleUid=e,this.local$active=n,this.local$changeTime=i}function eK(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("scheduleUid"),i=e.getLong_61zpoe$("sceduleStartTime"),o=e.getLong_61zpoe$("scheduleEndTime"),r=e.getInt_61zpoe$("scheduleDay"),s=e.getInt_61zpoe$("scheduleMonth"),a=e.getInt_61zpoe$("scheduleFrequency"),c=e.getLong_61zpoe$("umCalendarUid"),l=e.getLong_61zpoe$("scheduleClazzUid"),u=e.getLong_61zpoe$("scheduleMasterChangeSeqNum"),h=e.getLong_61zpoe$("scheduleLocalChangeSeqNum"),d=e.getInt_61zpoe$("scheduleLastChangedBy"),p=e.getLong_61zpoe$("scheduleLastChangedTime"),_=e.getBoolean_61zpoe$("scheduleActive"),m=new fht;return m.scheduleUid=n,m.sceduleStartTime=i,m.scheduleEndTime=o,m.scheduleDay=r,m.scheduleMonth=s,m.scheduleFrequency=a,m.umCalendarUid=c,m.scheduleClazzUid=l,m.scheduleMasterChangeSeqNum=u,m.scheduleLocalChangeSeqNum=h,m.scheduleLastChangedBy=d,m.scheduleLastChangedTime=p,m.scheduleActive=_,m}));var e}function nK(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("scheduleUid"),i=e.getLong_61zpoe$("sceduleStartTime"),o=e.getLong_61zpoe$("scheduleEndTime"),r=e.getInt_61zpoe$("scheduleDay"),s=e.getInt_61zpoe$("scheduleMonth"),a=e.getInt_61zpoe$("scheduleFrequency"),c=e.getLong_61zpoe$("umCalendarUid"),l=e.getLong_61zpoe$("scheduleClazzUid"),u=e.getLong_61zpoe$("scheduleMasterChangeSeqNum"),h=e.getLong_61zpoe$("scheduleLocalChangeSeqNum"),d=e.getInt_61zpoe$("scheduleLastChangedBy"),p=e.getLong_61zpoe$("scheduleLastChangedTime"),_=e.getBoolean_61zpoe$("scheduleActive"),m=new fht;return m.scheduleUid=n,m.sceduleStartTime=i,m.scheduleEndTime=o,m.scheduleDay=r,m.scheduleMonth=s,m.scheduleFrequency=a,m.umCalendarUid=c,m.scheduleClazzUid=l,m.scheduleMasterChangeSeqNum=u,m.scheduleLocalChangeSeqNum=h,m.scheduleLastChangedBy=d,m.scheduleLastChangedTime=p,m.scheduleActive=_,m}));var e}function iK(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function oK(t,e){this.this$ScheduleDao_JdbcKt=t,this.closure$clazzUid=e,gt.call(this)}function rK(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("scheduleUid"),i=e.getLong_61zpoe$("sceduleStartTime"),o=e.getLong_61zpoe$("scheduleEndTime"),r=e.getInt_61zpoe$("scheduleDay"),s=e.getInt_61zpoe$("scheduleMonth"),a=e.getInt_61zpoe$("scheduleFrequency"),c=e.getLong_61zpoe$("umCalendarUid"),l=e.getLong_61zpoe$("scheduleClazzUid"),u=e.getLong_61zpoe$("scheduleMasterChangeSeqNum"),h=e.getLong_61zpoe$("scheduleLocalChangeSeqNum"),d=e.getInt_61zpoe$("scheduleLastChangedBy"),p=e.getLong_61zpoe$("scheduleLastChangedTime"),_=e.getBoolean_61zpoe$("scheduleActive"),m=new fht;return m.scheduleUid=n,m.sceduleStartTime=i,m.scheduleEndTime=o,m.scheduleDay=r,m.scheduleMonth=s,m.scheduleFrequency=a,m.umCalendarUid=c,m.scheduleClazzUid=l,m.scheduleMasterChangeSeqNum=u,m.scheduleLocalChangeSeqNum=h,m.scheduleLastChangedBy=d,m.scheduleLastChangedTime=p,m.scheduleActive=_,m}));var e}function sK(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$closure$_limit=e,this.local$closure$_offset=n,this.local$_stmt=i}function aK(t,e,n){return function(i,o,r){var s=new sK(t,e,n,i,o);return r?s:s.doResume(null)}}function cK(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$this$ScheduleDao_JdbcKt=t,this.local$closure$clazzUid=e,this.local$closure$_limit=n,this.local$closure$_offset=i}function lK(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function uK(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$_stmt=e}function hK(t){return function(e,n,i){var o=new uK(t,e,n);return i?o:o.doResume(null)}}function dK(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$ScheduleDao_JdbcKt=t,this.local$closure$clazzUid=e}function pK(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("scheduleUid"),i=e.getLong_61zpoe$("sceduleStartTime"),o=e.getLong_61zpoe$("scheduleEndTime"),r=e.getInt_61zpoe$("scheduleDay"),s=e.getInt_61zpoe$("scheduleMonth"),a=e.getInt_61zpoe$("scheduleFrequency"),c=e.getLong_61zpoe$("umCalendarUid"),l=e.getLong_61zpoe$("scheduleClazzUid"),u=e.getLong_61zpoe$("scheduleMasterChangeSeqNum"),h=e.getLong_61zpoe$("scheduleLocalChangeSeqNum"),d=e.getInt_61zpoe$("scheduleLastChangedBy"),p=e.getLong_61zpoe$("scheduleLastChangedTime"),_=e.getBoolean_61zpoe$("scheduleActive"),m=new fht;return m.scheduleUid=n,m.sceduleStartTime=i,m.scheduleEndTime=o,m.scheduleDay=r,m.scheduleMonth=s,m.scheduleFrequency=a,m.umCalendarUid=c,m.scheduleClazzUid=l,m.scheduleMasterChangeSeqNum=u,m.scheduleLocalChangeSeqNum=h,m.scheduleLastChangedBy=d,m.scheduleLastChangedTime=p,m.scheduleActive=_,m}));var e}function _K(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("scheduleUid"),i=e.getLong_61zpoe$("sceduleStartTime"),o=e.getLong_61zpoe$("scheduleEndTime"),r=e.getInt_61zpoe$("scheduleDay"),s=e.getInt_61zpoe$("scheduleMonth"),a=e.getInt_61zpoe$("scheduleFrequency"),c=e.getLong_61zpoe$("umCalendarUid"),l=e.getLong_61zpoe$("scheduleClazzUid"),u=e.getLong_61zpoe$("scheduleMasterChangeSeqNum"),h=e.getLong_61zpoe$("scheduleLocalChangeSeqNum"),d=e.getInt_61zpoe$("scheduleLastChangedBy"),p=e.getLong_61zpoe$("scheduleLastChangedTime"),_=e.getBoolean_61zpoe$("scheduleActive"),m=new fht;return m.scheduleUid=n,m.sceduleStartTime=i,m.scheduleEndTime=o,m.scheduleDay=r,m.scheduleMonth=s,m.scheduleFrequency=a,m.umCalendarUid=c,m.scheduleClazzUid=l,m.scheduleMasterChangeSeqNum=u,m.scheduleLocalChangeSeqNum=h,m.scheduleLastChangedBy=d,m.scheduleLastChangedTime=p,m.scheduleActive=_,m}));var e}function mK(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$_stmt=e}function fK(t){return function(e,n,i){var o=new mK(t,e,n);return i?o:o.doResume(null)}}function gK(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$ScheduleDao_JdbcKt=t,this.local$closure$clazzUid=e}function $K(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("scheduleUid"),i=e.getLong_61zpoe$("sceduleStartTime"),o=e.getLong_61zpoe$("scheduleEndTime"),r=e.getInt_61zpoe$("scheduleDay"),s=e.getInt_61zpoe$("scheduleMonth"),a=e.getInt_61zpoe$("scheduleFrequency"),c=e.getLong_61zpoe$("umCalendarUid"),l=e.getLong_61zpoe$("scheduleClazzUid"),u=e.getLong_61zpoe$("scheduleMasterChangeSeqNum"),h=e.getLong_61zpoe$("scheduleLocalChangeSeqNum"),d=e.getInt_61zpoe$("scheduleLastChangedBy"),p=e.getLong_61zpoe$("scheduleLastChangedTime"),_=e.getBoolean_61zpoe$("scheduleActive"),m=new fht;return m.scheduleUid=n,m.sceduleStartTime=i,m.scheduleEndTime=o,m.scheduleDay=r,m.scheduleMonth=s,m.scheduleFrequency=a,m.umCalendarUid=c,m.scheduleClazzUid=l,m.scheduleMasterChangeSeqNum=u,m.scheduleLocalChangeSeqNum=h,m.scheduleLastChangedBy=d,m.scheduleLastChangedTime=p,m.scheduleActive=_,m}));var e}function EK(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$_stmt=e}function yK(t){pt.call(this,t)}function bK(t,e){DV.call(this),this._db_0=t,this._dao_0=e}function SK(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function vK(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function CK(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$scheduleUid=e,this.local$active=n,this.local$changeTime=i}function NK(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function TK(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_pkManager=void 0,this.local$_generatedPks=void 0,this.local$$receiver=void 0,this.local$element=void 0,this.local$entityList=e}function LK(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function zK(t,e,n,i,o,r){DV.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function wK(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function OK(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function RK(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function AK(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$scheduleUid=e,this.local$active=n,this.local$changeTime=i}function xK(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$uid=e}function IK(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$clazzUid=e}function UK(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function DK(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function PK(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function MK(){}function kK(t){MK.call(this),this._db=t,this._insertAdapterSchool_=new mX(this._db)}function jK(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function GK(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$entity=t,this.local$closure$_result=e,this.local$tmp$=void 0,this.local$_stmt=n}function qK(t,e){return function(n,i,o){var r=new GK(t,e,n,i);return o?r:r.doResume(null)}}function FK(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_result=void 0,this.local$entity=e}function BK(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function WK(t){return function(e,n,i){var o=new BK(t,e,n);return i?o:o.doResume(null)}}function HK(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function VK(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function KK(t,e,n){var i=new VK(t,e);return n?i:i.doResume(null)}function XK(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function JK(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("schoolUid"),i=e.getString_61zpoe$("schoolName"),o=e.getString_61zpoe$("schoolDesc"),r=e.getString_61zpoe$("schoolAddress"),s=e.getBoolean_61zpoe$("schoolActive"),a=e.getString_61zpoe$("schoolPhoneNumber"),c=e.getInt_61zpoe$("schoolGender"),l=e.getLong_61zpoe$("schoolHolidayCalendarUid"),u=e.getLong_61zpoe$("schoolFeatures"),h=e.getDouble_61zpoe$("schoolLocationLong"),d=e.getDouble_61zpoe$("schoolLocationLatt"),p=e.getString_61zpoe$("schoolEmailAddress"),_=e.getLong_61zpoe$("schoolTeachersPersonGroupUid"),m=e.getLong_61zpoe$("schoolStudentsPersonGroupUid"),f=e.getLong_61zpoe$("schoolPendingStudentsPersonGroupUid"),g=e.getString_61zpoe$("schoolCode"),$=e.getLong_61zpoe$("schoolMasterChangeSeqNum"),E=e.getLong_61zpoe$("schoolLocalChangeSeqNum"),y=e.getInt_61zpoe$("schoolLastChangedBy"),b=e.getLong_61zpoe$("schoolLct"),S=e.getString_61zpoe$("schoolTimeZone"),v=new Cht;return v.schoolUid=n,v.schoolName=i,v.schoolDesc=o,v.schoolAddress=r,v.schoolActive=s,v.schoolPhoneNumber=a,v.schoolGender=c,v.schoolHolidayCalendarUid=l,v.schoolFeatures=u,v.schoolLocationLong=h,v.schoolLocationLatt=d,v.schoolEmailAddress=p,v.schoolTeachersPersonGroupUid=_,v.schoolStudentsPersonGroupUid=m,v.schoolPendingStudentsPersonGroupUid=f,v.schoolCode=g,v.schoolMasterChangeSeqNum=$,v.schoolLocalChangeSeqNum=E,v.schoolLastChangedBy=y,v.schoolLct=b,v.schoolTimeZone=S,v}));var e}function YK(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$schoolUid=t,this.local$_stmt=e}function QK(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("schoolUid"),i=e.getString_61zpoe$("schoolName"),o=e.getString_61zpoe$("schoolDesc"),r=e.getString_61zpoe$("schoolAddress"),s=e.getBoolean_61zpoe$("schoolActive"),a=e.getString_61zpoe$("schoolPhoneNumber"),c=e.getInt_61zpoe$("schoolGender"),l=e.getLong_61zpoe$("schoolHolidayCalendarUid"),u=e.getLong_61zpoe$("schoolFeatures"),h=e.getDouble_61zpoe$("schoolLocationLong"),d=e.getDouble_61zpoe$("schoolLocationLatt"),p=e.getString_61zpoe$("schoolEmailAddress"),_=e.getLong_61zpoe$("schoolTeachersPersonGroupUid"),m=e.getLong_61zpoe$("schoolStudentsPersonGroupUid"),f=e.getLong_61zpoe$("schoolPendingStudentsPersonGroupUid"),g=e.getString_61zpoe$("schoolCode"),$=e.getLong_61zpoe$("schoolMasterChangeSeqNum"),E=e.getLong_61zpoe$("schoolLocalChangeSeqNum"),y=e.getInt_61zpoe$("schoolLastChangedBy"),b=e.getLong_61zpoe$("schoolLct"),S=e.getString_61zpoe$("schoolTimeZone"),v=0,C=e.getLong_61zpoe$("umCalendarUid");e.wasNull()&&(v=v+1|0);var N=e.getString_61zpoe$("umCalendarName");e.wasNull()&&(v=v+1|0);var T=e.getInt_61zpoe$("umCalendarCategory");e.wasNull()&&(v=v+1|0);var L=e.getBoolean_61zpoe$("umCalendarActive");e.wasNull()&&(v=v+1|0);var z=e.getLong_61zpoe$("umCalendarMasterChangeSeqNum");e.wasNull()&&(v=v+1|0);var w=e.getLong_61zpoe$("umCalendarLocalChangeSeqNum");e.wasNull()&&(v=v+1|0);var O=e.getInt_61zpoe$("umCalendarLastChangedBy");e.wasNull()&&(v=v+1|0);var R=e.getLong_61zpoe$("umCalendarLct");e.wasNull()&&(v=v+1|0);var A=8===v,x=new Xht;if(x.schoolUid=n,x.schoolName=i,x.schoolDesc=o,x.schoolAddress=r,x.schoolActive=s,x.schoolPhoneNumber=a,x.schoolGender=c,x.schoolHolidayCalendarUid=l,x.schoolFeatures=u,x.schoolLocationLong=h,x.schoolLocationLatt=d,x.schoolEmailAddress=p,x.schoolTeachersPersonGroupUid=_,x.schoolStudentsPersonGroupUid=m,x.schoolPendingStudentsPersonGroupUid=f,x.schoolCode=g,x.schoolMasterChangeSeqNum=$,x.schoolLocalChangeSeqNum=E,x.schoolLastChangedBy=y,x.schoolLct=b,x.schoolTimeZone=S,!A){var I=new mst;I.umCalendarUid=C,I.umCalendarName=N,I.umCalendarCategory=T,I.umCalendarActive=L,I.umCalendarMasterChangeSeqNum=z,I.umCalendarLocalChangeSeqNum=w,I.umCalendarLastChangedBy=O,I.umCalendarLct=R,x.holidayCalendar=I}return x}));var e}function ZK(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function tX(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("schoolUid"),i=e.getString_61zpoe$("schoolName"),o=e.getString_61zpoe$("schoolDesc"),r=e.getString_61zpoe$("schoolAddress"),s=e.getBoolean_61zpoe$("schoolActive"),a=e.getString_61zpoe$("schoolPhoneNumber"),c=e.getInt_61zpoe$("schoolGender"),l=e.getLong_61zpoe$("schoolHolidayCalendarUid"),u=e.getLong_61zpoe$("schoolFeatures"),h=e.getDouble_61zpoe$("schoolLocationLong"),d=e.getDouble_61zpoe$("schoolLocationLatt"),p=e.getString_61zpoe$("schoolEmailAddress"),_=e.getLong_61zpoe$("schoolTeachersPersonGroupUid"),m=e.getLong_61zpoe$("schoolStudentsPersonGroupUid"),f=e.getLong_61zpoe$("schoolPendingStudentsPersonGroupUid"),g=e.getString_61zpoe$("schoolCode"),$=e.getLong_61zpoe$("schoolMasterChangeSeqNum"),E=e.getLong_61zpoe$("schoolLocalChangeSeqNum"),y=e.getInt_61zpoe$("schoolLastChangedBy"),b=e.getLong_61zpoe$("schoolLct"),S=e.getString_61zpoe$("schoolTimeZone"),v=new Cht;return v.schoolUid=n,v.schoolName=i,v.schoolDesc=o,v.schoolAddress=r,v.schoolActive=s,v.schoolPhoneNumber=a,v.schoolGender=c,v.schoolHolidayCalendarUid=l,v.schoolFeatures=u,v.schoolLocationLong=h,v.schoolLocationLatt=d,v.schoolEmailAddress=p,v.schoolTeachersPersonGroupUid=_,v.schoolStudentsPersonGroupUid=m,v.schoolPendingStudentsPersonGroupUid=f,v.schoolCode=g,v.schoolMasterChangeSeqNum=$,v.schoolLocalChangeSeqNum=E,v.schoolLastChangedBy=y,v.schoolLct=b,v.schoolTimeZone=S,v}));var e}function eX(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$code=t,this.local$_stmt=e}function nX(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("schoolUid"),i=e.getString_61zpoe$("schoolName"),o=e.getString_61zpoe$("schoolDesc"),r=e.getString_61zpoe$("schoolAddress"),s=e.getBoolean_61zpoe$("schoolActive"),a=e.getString_61zpoe$("schoolPhoneNumber"),c=e.getInt_61zpoe$("schoolGender"),l=e.getLong_61zpoe$("schoolHolidayCalendarUid"),u=e.getLong_61zpoe$("schoolFeatures"),h=e.getDouble_61zpoe$("schoolLocationLong"),d=e.getDouble_61zpoe$("schoolLocationLatt"),p=e.getString_61zpoe$("schoolEmailAddress"),_=e.getLong_61zpoe$("schoolTeachersPersonGroupUid"),m=e.getLong_61zpoe$("schoolStudentsPersonGroupUid"),f=e.getLong_61zpoe$("schoolPendingStudentsPersonGroupUid"),g=e.getString_61zpoe$("schoolCode"),$=e.getLong_61zpoe$("schoolMasterChangeSeqNum"),E=e.getLong_61zpoe$("schoolLocalChangeSeqNum"),y=e.getInt_61zpoe$("schoolLastChangedBy"),b=e.getLong_61zpoe$("schoolLct"),S=e.getString_61zpoe$("schoolTimeZone"),v=new Cht;return v.schoolUid=n,v.schoolName=i,v.schoolDesc=o,v.schoolAddress=r,v.schoolActive=s,v.schoolPhoneNumber=a,v.schoolGender=c,v.schoolHolidayCalendarUid=l,v.schoolFeatures=u,v.schoolLocationLong=h,v.schoolLocationLatt=d,v.schoolEmailAddress=p,v.schoolTeachersPersonGroupUid=_,v.schoolStudentsPersonGroupUid=m,v.schoolPendingStudentsPersonGroupUid=f,v.schoolCode=g,v.schoolMasterChangeSeqNum=$,v.schoolLocalChangeSeqNum=E,v.schoolLastChangedBy=y,v.schoolLct=b,v.schoolTimeZone=S,v}));var e}function iX(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$code=t,this.local$_stmt=e}function oX(t){return lt(t,!1,(e=t,function(t){return e.getBoolean_za3lpa$(1)}));var e}function rX(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$permission=t,this.local$closure$accountPersonUid=e,this.local$closure$schoolUid=n,this.local$_stmt=i}function sX(t,e,n,i,o){this.this$SchoolDao_JdbcKt=t,this.closure$permission=e,this.closure$personUid=n,this.closure$searchBit=i,this.closure$sortOrder=o,gt.call(this)}function aX(t){return mt(t,(e=t,function(t){var n=e.getInt_61zpoe$("numStudents"),i=e.getInt_61zpoe$("numTeachers"),o=e.getString_61zpoe$("locationName"),r=e.getInt_61zpoe$("clazzCount"),s=e.getLong_61zpoe$("schoolUid"),a=e.getString_61zpoe$("schoolName"),c=e.getString_61zpoe$("schoolDesc"),l=e.getString_61zpoe$("schoolAddress"),u=e.getBoolean_61zpoe$("schoolActive"),h=e.getString_61zpoe$("schoolPhoneNumber"),d=e.getInt_61zpoe$("schoolGender"),p=e.getLong_61zpoe$("schoolHolidayCalendarUid"),_=e.getLong_61zpoe$("schoolFeatures"),m=e.getDouble_61zpoe$("schoolLocationLong"),f=e.getDouble_61zpoe$("schoolLocationLatt"),g=e.getString_61zpoe$("schoolEmailAddress"),$=e.getLong_61zpoe$("schoolTeachersPersonGroupUid"),E=e.getLong_61zpoe$("schoolStudentsPersonGroupUid"),y=e.getLong_61zpoe$("schoolPendingStudentsPersonGroupUid"),b=e.getString_61zpoe$("schoolCode"),S=e.getLong_61zpoe$("schoolMasterChangeSeqNum"),v=e.getLong_61zpoe$("schoolLocalChangeSeqNum"),C=e.getInt_61zpoe$("schoolLastChangedBy"),N=e.getLong_61zpoe$("schoolLct"),T=e.getString_61zpoe$("schoolTimeZone"),L=new idt;return L.numStudents=n,L.numTeachers=i,L.locationName=o,L.clazzCount=r,L.schoolUid=s,L.schoolName=a,L.schoolDesc=c,L.schoolAddress=l,L.schoolActive=u,L.schoolPhoneNumber=h,L.schoolGender=d,L.schoolHolidayCalendarUid=p,L.schoolFeatures=_,L.schoolLocationLong=m,L.schoolLocationLatt=f,L.schoolEmailAddress=g,L.schoolTeachersPersonGroupUid=$,L.schoolStudentsPersonGroupUid=E,L.schoolPendingStudentsPersonGroupUid=y,L.schoolCode=b,L.schoolMasterChangeSeqNum=S,L.schoolLocalChangeSeqNum=v,L.schoolLastChangedBy=C,L.schoolLct=N,L.schoolTimeZone=T,L}));var e}function cX(t,e,n,i,o,r,s,a){N.call(this,a),this.exceptionState_0=1,this.local$closure$permission=t,this.local$closure$personUid=e,this.local$closure$searchBit=n,this.local$closure$sortOrder=i,this.local$closure$_limit=o,this.local$closure$_offset=r,this.local$_stmt=s}function lX(t,e,n,i,o,r){return function(s,a,c){var l=new cX(t,e,n,i,o,r,s,a);return c?l:l.doResume(null)}}function uX(t,e,n,i,o,r,s,a){N.call(this,a),this.exceptionState_0=1,this.local$this$SchoolDao_JdbcKt=t,this.local$closure$permission=e,this.local$closure$personUid=n,this.local$closure$searchBit=i,this.local$closure$sortOrder=o,this.local$closure$_limit=r,this.local$closure$_offset=s}function hX(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function dX(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$closure$permission=t,this.local$closure$personUid=e,this.local$closure$searchBit=n,this.local$closure$sortOrder=i,this.local$_stmt=o}function pX(t,e,n,i){return function(o,r,s){var a=new dX(t,e,n,i,o,r);return s?a:a.doResume(null)}}function _X(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$this$SchoolDao_JdbcKt=t,this.local$closure$permission=e,this.local$closure$personUid=n,this.local$closure$searchBit=i,this.local$closure$sortOrder=o}function mX(t){pt.call(this,t)}function fX(t,e){MK.call(this),this._db_0=t,this._dao_0=e}function gX(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function $X(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function EX(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function yX(t,e,n,i,o,r){MK.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function bX(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function SX(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function vX(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$schoolUid=e}function CX(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$uid=e}function NX(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$code=e}function TX(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$accountPersonUid=e,this.local$schoolUid=n,this.local$permission=i}function LX(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function zX(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function wX(){}function OX(t){wX.call(this),this._db=t,this._insertAdapterSchoolMember_=new eJ(this._db)}function RX(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function AX(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$entity=t,this.local$closure$_result=e,this.local$tmp$=void 0,this.local$_stmt=n}function xX(t,e){return function(n,i,o){var r=new AX(t,e,n,i);return o?r:r.doResume(null)}}function IX(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_result=void 0,this.local$entity=e}function UX(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function DX(t){return function(e,n,i){var o=new UX(t,e,n);return i?o:o.doResume(null)}}function PX(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function MX(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function kX(t,e,n){var i=new MX(t,e);return n?i:i.doResume(null)}function jX(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function GX(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("schoolMemberUid"),i=e.getLong_61zpoe$("schoolMemberPersonUid"),o=e.getLong_61zpoe$("schoolMemberSchoolUid"),r=e.getLong_61zpoe$("schoolMemberJoinDate"),s=e.getLong_61zpoe$("schoolMemberLeftDate"),a=e.getInt_61zpoe$("schoolMemberRole"),c=e.getBoolean_61zpoe$("schoolMemberActive"),l=e.getLong_61zpoe$("schoolMemberLocalChangeSeqNum"),u=e.getLong_61zpoe$("schoolMemberMasterChangeSeqNum"),h=e.getInt_61zpoe$("schoolMemberLastChangedBy"),d=e.getLong_61zpoe$("schoolMemberLct"),p=jht();return p.schoolMemberUid=n,p.schoolMemberPersonUid=i,p.schoolMemberSchoolUid=o,p.schoolMemberJoinDate=r,p.schoolMemberLeftDate=s,p.schoolMemberRole=a,p.schoolMemberActive=c,p.schoolMemberLocalChangeSeqNum=l,p.schoolMemberMasterChangeSeqNum=u,p.schoolMemberLastChangedBy=h,p.schoolMemberLct=d,p}));var e}function qX(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("schoolMemberUid"),i=e.getLong_61zpoe$("schoolMemberPersonUid"),o=e.getLong_61zpoe$("schoolMemberSchoolUid"),r=e.getLong_61zpoe$("schoolMemberJoinDate"),s=e.getLong_61zpoe$("schoolMemberLeftDate"),a=e.getInt_61zpoe$("schoolMemberRole"),c=e.getBoolean_61zpoe$("schoolMemberActive"),l=e.getLong_61zpoe$("schoolMemberLocalChangeSeqNum"),u=e.getLong_61zpoe$("schoolMemberMasterChangeSeqNum"),h=e.getInt_61zpoe$("schoolMemberLastChangedBy"),d=e.getLong_61zpoe$("schoolMemberLct"),p=jht();return p.schoolMemberUid=n,p.schoolMemberPersonUid=i,p.schoolMemberSchoolUid=o,p.schoolMemberJoinDate=r,p.schoolMemberLeftDate=s,p.schoolMemberRole=a,p.schoolMemberActive=c,p.schoolMemberLocalChangeSeqNum=l,p.schoolMemberMasterChangeSeqNum=u,p.schoolMemberLastChangedBy=h,p.schoolMemberLct=d,p}));var e}function FX(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$closure$schoolUid=t,this.local$closure$personUid=e,this.local$closure$role=n,this.local$closure$timeFilter=i,this.local$_stmt=o}function BX(t,e,n,i,o,r){this.this$SchoolMemberDao_JdbcKt=t,this.closure$accountPersonUid=e,this.closure$schoolUid=n,this.closure$role=i,this.closure$searchQuery=o,this.closure$sortOrder=r,gt.call(this)}function WX(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("schoolMemberUid"),i=e.getLong_61zpoe$("schoolMemberPersonUid"),o=e.getLong_61zpoe$("schoolMemberSchoolUid"),r=e.getLong_61zpoe$("schoolMemberJoinDate"),s=e.getLong_61zpoe$("schoolMemberLeftDate"),a=e.getInt_61zpoe$("schoolMemberRole"),c=e.getBoolean_61zpoe$("schoolMemberActive"),l=e.getLong_61zpoe$("schoolMemberLocalChangeSeqNum"),u=e.getLong_61zpoe$("schoolMemberMasterChangeSeqNum"),h=e.getInt_61zpoe$("schoolMemberLastChangedBy"),d=e.getLong_61zpoe$("schoolMemberLct"),p=0,_=e.getLong_61zpoe$("personUid");e.wasNull()&&(p=p+1|0);var m=e.getString_61zpoe$("username");e.wasNull()&&(p=p+1|0);var f=e.getString_61zpoe$("firstNames");e.wasNull()&&(p=p+1|0);var g=e.getString_61zpoe$("lastName");e.wasNull()&&(p=p+1|0);var $=e.getString_61zpoe$("emailAddr");e.wasNull()&&(p=p+1|0);var E=e.getString_61zpoe$("phoneNum");e.wasNull()&&(p=p+1|0);var y=e.getInt_61zpoe$("gender");e.wasNull()&&(p=p+1|0);var b=e.getBoolean_61zpoe$("active");e.wasNull()&&(p=p+1|0);var S=e.getBoolean_61zpoe$("admin");e.wasNull()&&(p=p+1|0);var v=e.getString_61zpoe$("personNotes");e.wasNull()&&(p=p+1|0);var C=e.getString_61zpoe$("fatherName");e.wasNull()&&(p=p+1|0);var N=e.getString_61zpoe$("fatherNumber");e.wasNull()&&(p=p+1|0);var T=e.getString_61zpoe$("motherName");e.wasNull()&&(p=p+1|0);var L=e.getString_61zpoe$("motherNum");e.wasNull()&&(p=p+1|0);var z=e.getLong_61zpoe$("dateOfBirth");e.wasNull()&&(p=p+1|0);var w=e.getString_61zpoe$("personAddress");e.wasNull()&&(p=p+1|0);var O=e.getString_61zpoe$("personOrgId");e.wasNull()&&(p=p+1|0);var R=e.getLong_61zpoe$("personGroupUid");e.wasNull()&&(p=p+1|0);var A=e.getLong_61zpoe$("personMasterChangeSeqNum");e.wasNull()&&(p=p+1|0);var x=e.getLong_61zpoe$("personLocalChangeSeqNum");e.wasNull()&&(p=p+1|0);var I=e.getInt_61zpoe$("personLastChangedBy");e.wasNull()&&(p=p+1|0);var U=e.getLong_61zpoe$("personLct");e.wasNull()&&(p=p+1|0);var D=e.getString_61zpoe$("personCountry");e.wasNull()&&(p=p+1|0);var P=e.getInt_61zpoe$("personType");e.wasNull()&&(p=p+1|0);var M=24===p,k=new Ght;if(k.schoolMemberUid=n,k.schoolMemberPersonUid=i,k.schoolMemberSchoolUid=o,k.schoolMemberJoinDate=r,k.schoolMemberLeftDate=s,k.schoolMemberRole=a,k.schoolMemberActive=c,k.schoolMemberLocalChangeSeqNum=l,k.schoolMemberMasterChangeSeqNum=u,k.schoolMemberLastChangedBy=h,k.schoolMemberLct=d,!M){var j=new zct;j.personUid=_,j.username=m,j.firstNames=f,j.lastName=g,j.emailAddr=$,j.phoneNum=E,j.gender=y,j.active=b,j.admin=S,j.personNotes=v,j.fatherName=C,j.fatherNumber=N,j.motherName=T,j.motherNum=L,j.dateOfBirth=z,j.personAddress=w,j.personOrgId=O,j.personGroupUid=R,j.personMasterChangeSeqNum=A,j.personLocalChangeSeqNum=x,j.personLastChangedBy=I,j.personLct=U,j.personCountry=D,j.personType=P,k.person=j}return k}));var e}function HX(t,e,n,i,o,r,s,a,c){N.call(this,c),this.exceptionState_0=1,this.local$closure$accountPersonUid=t,this.local$closure$schoolUid=e,this.local$closure$role=n,this.local$closure$searchQuery=i,this.local$closure$sortOrder=o,this.local$closure$_limit=r,this.local$closure$_offset=s,this.local$_stmt=a}function VX(t,e,n,i,o,r,s){return function(a,c,l){var u=new HX(t,e,n,i,o,r,s,a,c);return l?u:u.doResume(null)}}function KX(t,e,n,i,o,r,s,a,c){N.call(this,c),this.exceptionState_0=1,this.local$this$SchoolMemberDao_JdbcKt=t,this.local$closure$accountPersonUid=e,this.local$closure$schoolUid=n,this.local$closure$role=i,this.local$closure$searchQuery=o,this.local$closure$sortOrder=r,this.local$closure$_limit=s,this.local$closure$_offset=a}function XX(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function JX(t,e,n,i,o,r,s){N.call(this,s),this.exceptionState_0=1,this.local$closure$accountPersonUid=t,this.local$closure$schoolUid=e,this.local$closure$role=n,this.local$closure$searchQuery=i,this.local$closure$sortOrder=o,this.local$_stmt=r}function YX(t,e,n,i,o){return function(r,s,a){var c=new JX(t,e,n,i,o,r,s);return a?c:c.doResume(null)}}function QX(t,e,n,i,o,r,s){N.call(this,s),this.exceptionState_0=1,this.local$this$SchoolMemberDao_JdbcKt=t,this.local$closure$accountPersonUid=e,this.local$closure$schoolUid=n,this.local$closure$role=i,this.local$closure$searchQuery=o,this.local$closure$sortOrder=r}function ZX(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("schoolMemberUid"),i=e.getLong_61zpoe$("schoolMemberPersonUid"),o=e.getLong_61zpoe$("schoolMemberSchoolUid"),r=e.getLong_61zpoe$("schoolMemberJoinDate"),s=e.getLong_61zpoe$("schoolMemberLeftDate"),a=e.getInt_61zpoe$("schoolMemberRole"),c=e.getBoolean_61zpoe$("schoolMemberActive"),l=e.getLong_61zpoe$("schoolMemberLocalChangeSeqNum"),u=e.getLong_61zpoe$("schoolMemberMasterChangeSeqNum"),h=e.getInt_61zpoe$("schoolMemberLastChangedBy"),d=e.getLong_61zpoe$("schoolMemberLct"),p=0,_=e.getLong_61zpoe$("personUid");e.wasNull()&&(p=p+1|0);var m=e.getString_61zpoe$("username");e.wasNull()&&(p=p+1|0);var f=e.getString_61zpoe$("firstNames");e.wasNull()&&(p=p+1|0);var g=e.getString_61zpoe$("lastName");e.wasNull()&&(p=p+1|0);var $=e.getString_61zpoe$("emailAddr");e.wasNull()&&(p=p+1|0);var E=e.getString_61zpoe$("phoneNum");e.wasNull()&&(p=p+1|0);var y=e.getInt_61zpoe$("gender");e.wasNull()&&(p=p+1|0);var b=e.getBoolean_61zpoe$("active");e.wasNull()&&(p=p+1|0);var S=e.getBoolean_61zpoe$("admin");e.wasNull()&&(p=p+1|0);var v=e.getString_61zpoe$("personNotes");e.wasNull()&&(p=p+1|0);var C=e.getString_61zpoe$("fatherName");e.wasNull()&&(p=p+1|0);var N=e.getString_61zpoe$("fatherNumber");e.wasNull()&&(p=p+1|0);var T=e.getString_61zpoe$("motherName");e.wasNull()&&(p=p+1|0);var L=e.getString_61zpoe$("motherNum");e.wasNull()&&(p=p+1|0);var z=e.getLong_61zpoe$("dateOfBirth");e.wasNull()&&(p=p+1|0);var w=e.getString_61zpoe$("personAddress");e.wasNull()&&(p=p+1|0);var O=e.getString_61zpoe$("personOrgId");e.wasNull()&&(p=p+1|0);var R=e.getLong_61zpoe$("personGroupUid");e.wasNull()&&(p=p+1|0);var A=e.getLong_61zpoe$("personMasterChangeSeqNum");e.wasNull()&&(p=p+1|0);var x=e.getLong_61zpoe$("personLocalChangeSeqNum");e.wasNull()&&(p=p+1|0);var I=e.getInt_61zpoe$("personLastChangedBy");e.wasNull()&&(p=p+1|0);var U=e.getLong_61zpoe$("personLct");e.wasNull()&&(p=p+1|0);var D=e.getString_61zpoe$("personCountry");e.wasNull()&&(p=p+1|0);var P=e.getInt_61zpoe$("personType");e.wasNull()&&(p=p+1|0);var M=24===p,k=new Ght;if(k.schoolMemberUid=n,k.schoolMemberPersonUid=i,k.schoolMemberSchoolUid=o,k.schoolMemberJoinDate=r,k.schoolMemberLeftDate=s,k.schoolMemberRole=a,k.schoolMemberActive=c,k.schoolMemberLocalChangeSeqNum=l,k.schoolMemberMasterChangeSeqNum=u,k.schoolMemberLastChangedBy=h,k.schoolMemberLct=d,!M){var j=new zct;j.personUid=_,j.username=m,j.firstNames=f,j.lastName=g,j.emailAddr=$,j.phoneNum=E,j.gender=y,j.active=b,j.admin=S,j.personNotes=v,j.fatherName=C,j.fatherNumber=N,j.motherName=T,j.motherNum=L,j.dateOfBirth=z,j.personAddress=w,j.personOrgId=O,j.personGroupUid=R,j.personMasterChangeSeqNum=A,j.personLocalChangeSeqNum=x,j.personLastChangedBy=I,j.personLct=U,j.personCountry=D,j.personType=P,k.person=j}return k}));var e}function tJ(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$schoolUid=t,this.local$closure$role=e,this.local$closure$searchQuery=n,this.local$_stmt=i}function eJ(t){pt.call(this,t)}function nJ(t,e){wX.call(this),this._db_0=t,this._dao_0=e}function iJ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function oJ(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function rJ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function sJ(t,e,n,i,o,r){wX.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function aJ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function cJ(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function lJ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function uJ(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.$this=t,this.local$schoolUid=e,this.local$personUid=n,this.local$role=i,this.local$timeFilter=o}function hJ(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$schoolUid=e,this.local$role=n,this.local$searchQuery=i}function dJ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function pJ(){}function _J(t){pJ.call(this),this._db=t,this._insertAdapterScopedGrant_=new hY(this._db)}function mJ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$scopedGrant=e}function fJ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$scopedGrantList=e}function gJ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$scopedGrant=t,this.local$_stmt=e}function $J(t){return function(e,n,i){var o=new gJ(t,e,n);return i?o:o.doResume(null)}}function EJ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$scopedGrant=e}function yJ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$scopedGrantList=t,this.local$tmp$=void 0,this.local$_stmt=e}function bJ(t){return function(e,n,i){var o=new yJ(t,e,n);return i?o:o.doResume(null)}}function SJ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$scopedGrantList=e}function vJ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function CJ(t){return function(e,n,i){var o=new vJ(t,e,n);return i?o:o.doResume(null)}}function NJ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function TJ(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function LJ(t,e,n){var i=new TJ(t,e);return n?i:i.doResume(null)}function zJ(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function wJ(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function OJ(t,e,n){var i=new wJ(t,e);return n?i:i.doResume(null)}function RJ(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function AJ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function xJ(t){return function(e,n,i){var o=new AJ(t,e,n);return i?o:o.doResume(null)}}function IJ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function UJ(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}rI.prototype=Object.create(N.prototype),rI.prototype.constructor=rI,rI.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByErrorCode_za3lpa$(this.local$errCode,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},eI.prototype.findByErrorCode_za3lpa$=function(t,e,n){var i=new rI(this,t,e);return n?i:i.doResume(null)},eI.$metadata$={kind:c,simpleName:"ErrorReportDao_Repo",interfaces:[Gx]},sI.$metadata$={kind:c,simpleName:"GroupLearningSessionDao",interfaces:[X6]},aI.prototype.insert_11rb$=function(t){return this._insertAdapterGroupLearningSession_.insertAndReturnId_11rb$(t)},cI.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},cI.prototype=Object.create(N.prototype),cI.prototype.constructor=cI,cI.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterGroupLearningSession_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},aI.prototype.insertAsync=function(t,e,n){var i=new cI(this,t,e);return n?i:i.doResume(null)},aI.prototype.insertList_4ezy5m$=function(t){this._insertAdapterGroupLearningSession_.insertList_4ezy5m$(t)},aI.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE GroupLearningSession SET groupLearningSessionContentUid = ?, groupLearningSessionLearnerGroupUid = ?, groupLearningSessionInactive = ?, groupLearningSessionMCSN = ?, groupLearningSessionCSN = ?, groupLearningSessionLCB = ?, groupLearningSessionLct = ? WHERE groupLearningSessionUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.groupLearningSessionContentUid),t.setLong_6svq3l$(2,i.groupLearningSessionLearnerGroupUid),t.setBoolean_fzusl$(3,i.groupLearningSessionInactive),t.setLong_6svq3l$(4,i.groupLearningSessionMCSN),t.setLong_6svq3l$(5,i.groupLearningSessionCSN),t.setInt_vux9f0$(6,i.groupLearningSessionLCB),t.setLong_6svq3l$(7,i.groupLearningSessionLct),t.setLong_6svq3l$(8,i.groupLearningSessionUid),t.executeUpdate()}return t.getConnection().commit(),V}))},aI.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE GroupLearningSession SET groupLearningSessionContentUid = ?, groupLearningSessionLearnerGroupUid = ?, groupLearningSessionInactive = ?, groupLearningSessionMCSN = ?, groupLearningSessionCSN = ?, groupLearningSessionLCB = ?, groupLearningSessionLct = ? WHERE groupLearningSessionUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.groupLearningSessionContentUid),t.setLong_6svq3l$(2,e.groupLearningSessionLearnerGroupUid),t.setBoolean_fzusl$(3,e.groupLearningSessionInactive),t.setLong_6svq3l$(4,e.groupLearningSessionMCSN),t.setLong_6svq3l$(5,e.groupLearningSessionCSN),t.setInt_vux9f0$(6,e.groupLearningSessionLCB),t.setLong_6svq3l$(7,e.groupLearningSessionLct),t.setLong_6svq3l$(8,e.groupLearningSessionUid),t.executeUpdate()}))},lI.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},lI.prototype=Object.create(N.prototype),lI.prototype.constructor=lI,lI.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},hI.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},hI.prototype=Object.create(N.prototype),hI.prototype.constructor=hI,hI.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO GroupLearningSessionReplicate(glsPk, glsDestination)\n | SELECT DISTINCT GroupLearningSession.groupLearningSessionUid AS glsPk,\n | ? AS glsDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | 64\n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | JOIN LearnerGroupMember\n | ON LearnerGroupMember.learnerGroupMemberPersonUid = Person.personUid\n | JOIN GroupLearningSession\n | ON GroupLearningSession.groupLearningSessionLearnerGroupUid = LearnerGroupMember.learnerGroupMemberLgUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND GroupLearningSession.groupLearningSessionLct != COALESCE(\n | (SELECT glsVersionId\n | FROM GroupLearningSessionReplicate\n | WHERE glsPk = GroupLearningSession.groupLearningSessionUid\n | AND glsDestination = ?), 0) \n | /*psql ON CONFLICT(glsPk, glsDestination) DO UPDATE\n | SET glsPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO GroupLearningSessionReplicate(glsPk, glsDestination)\n | SELECT DISTINCT GroupLearningSession.groupLearningSessionUid AS glsPk,\n | ? AS glsDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | 64\n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | JOIN LearnerGroupMember\n | ON LearnerGroupMember.learnerGroupMemberPersonUid = Person.personUid\n | JOIN GroupLearningSession\n | ON GroupLearningSession.groupLearningSessionLearnerGroupUid = LearnerGroupMember.learnerGroupMemberLgUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND GroupLearningSession.groupLearningSessionLct != COALESCE(\n | (SELECT glsVersionId\n | FROM GroupLearningSessionReplicate\n | WHERE glsPk = GroupLearningSession.groupLearningSessionUid\n | AND glsDestination = ?), 0) \n | ON CONFLICT(glsPk, glsDestination) DO UPDATE\n | SET glsPending = true\n | \n | \n |")),uI(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},aI.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new hI(this,t,e);return n?i:i.doResume(null)},dI.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},dI.prototype=Object.create(N.prototype),dI.prototype.constructor=dI,dI.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_I.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_I.prototype=Object.create(N.prototype),_I.prototype.constructor=_I,_I.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO GroupLearningSessionReplicate(glsPk, glsDestination)\n | SELECT DISTINCT GroupLearningSession.groupLearningSessionUid AS glsUid,\n | UserSession.usClientNodeId AS glsDestination\n | FROM ChangeLog\n | JOIN GroupLearningSession\n | ON ChangeLog.chTableId = 302\n | AND ChangeLog.chEntityPk = GroupLearningSession.groupLearningSessionUid\n | JOIN LearnerGroupMember\n | ON LearnerGroupMember.learnerGroupMemberLgUid = GroupLearningSession.groupLearningSessionLearnerGroupUid\n | JOIN Person\n | ON Person.personUid = LearnerGroupMember.learnerGroupMemberPersonUid\n | \n | JOIN ScopedGrant \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT clazzEnrolmentClazzUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentPersonUid = Person.personUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT schoolMemberSchoolUid\n | FROM SchoolMember\n | WHERE schoolMemberPersonUid = Person.personUid\n | AND schoolMemberActive))\n | )\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 64\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND GroupLearningSession.groupLearningSessionLct != COALESCE(\n | (SELECT glsVersionId\n | FROM GroupLearningSessionReplicate\n | WHERE glsPk = GroupLearningSession.groupLearningSessionUid\n | AND glsDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(glsPk, glsDestination) DO UPDATE\n | SET glsPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO GroupLearningSessionReplicate(glsPk, glsDestination)\n | SELECT DISTINCT GroupLearningSession.groupLearningSessionUid AS glsUid,\n | UserSession.usClientNodeId AS glsDestination\n | FROM ChangeLog\n | JOIN GroupLearningSession\n | ON ChangeLog.chTableId = 302\n | AND ChangeLog.chEntityPk = GroupLearningSession.groupLearningSessionUid\n | JOIN LearnerGroupMember\n | ON LearnerGroupMember.learnerGroupMemberLgUid = GroupLearningSession.groupLearningSessionLearnerGroupUid\n | JOIN Person\n | ON Person.personUid = LearnerGroupMember.learnerGroupMemberPersonUid\n | \n | JOIN ScopedGrant \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT clazzEnrolmentClazzUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentPersonUid = Person.personUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT schoolMemberSchoolUid\n | FROM SchoolMember\n | WHERE schoolMemberPersonUid = Person.personUid\n | AND schoolMemberActive))\n | )\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 64\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND GroupLearningSession.groupLearningSessionLct != COALESCE(\n | (SELECT glsVersionId\n | FROM GroupLearningSessionReplicate\n | WHERE glsPk = GroupLearningSession.groupLearningSessionUid\n | AND glsDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(glsPk, glsDestination) DO UPDATE\n | SET glsPending = true\n | \n | \n |")),pI,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},aI.prototype.replicateOnChange=function(t,e){var n=new _I(this,t);return e?n:n.doResume(null)},mI.prototype.makeSql_6taknv$=function(t){return"INSERT INTO GroupLearningSession (groupLearningSessionUid, groupLearningSessionContentUid, groupLearningSessionLearnerGroupUid, groupLearningSessionInactive, groupLearningSessionMCSN, groupLearningSessionCSN, groupLearningSessionLCB, groupLearningSessionLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?)"},mI.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.groupLearningSessionUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.groupLearningSessionUid),t.setLong_6svq3l$(2,e.groupLearningSessionContentUid),t.setLong_6svq3l$(3,e.groupLearningSessionLearnerGroupUid),t.setBoolean_fzusl$(4,e.groupLearningSessionInactive),t.setLong_6svq3l$(5,e.groupLearningSessionMCSN),t.setLong_6svq3l$(6,e.groupLearningSessionCSN),t.setInt_vux9f0$(7,e.groupLearningSessionLCB),t.setLong_6svq3l$(8,e.groupLearningSessionLct)},mI.$metadata$={kind:c,interfaces:[pt]},aI.$metadata$={kind:c,simpleName:"GroupLearningSessionDao_JdbcKt",interfaces:[sI]},gI.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},gI.prototype=Object.create(N.prototype),gI.prototype.constructor=gI,gI.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},fI.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new gI(this,t,e);return n?i:i.doResume(null)},$I.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},$I.prototype=Object.create(N.prototype),$I.prototype.constructor=$I,$I.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},fI.prototype.replicateOnChange=function(t,e){var n=new $I(this,t);return e?n:n.doResume(null)},fI.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},EI.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},EI.prototype=Object.create(N.prototype),EI.prototype.constructor=EI,EI.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.groupLearningSessionUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(302,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.groupLearningSessionUid=e,this.state_0=3;continue;case 3:if(this.local$entity.groupLearningSessionLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.groupLearningSessionUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},fI.prototype.insertAsync=function(t,e,n){var i=new EI(this,t,e);return n?i:i.doResume(null)},fI.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},fI.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},fI.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},fI.$metadata$={kind:c,simpleName:"GroupLearningSessionDao_ReplicateWrapper",interfaces:[sI]},bI.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},bI.prototype=Object.create(N.prototype),bI.prototype.constructor=bI,bI.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yI.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new bI(this,t,e);return n?i:i.doResume(null)},SI.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},SI.prototype=Object.create(N.prototype),SI.prototype.constructor=SI,SI.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yI.prototype.replicateOnChange=function(t,e){var n=new SI(this,t);return e?n:n.doResume(null)},yI.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},vI.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},vI.prototype=Object.create(N.prototype),vI.prototype.constructor=vI,vI.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yI.prototype.insertAsync=function(t,e,n){var i=new vI(this,t,e);return n?i:i.doResume(null)},yI.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},yI.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},yI.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},yI.$metadata$={kind:c,simpleName:"GroupLearningSessionDao_Repo",interfaces:[sI]},CI.$metadata$={kind:c,simpleName:"HolidayCalendarDao",interfaces:[X6]},NI.prototype.replaceList_qyl16p$=function(t){this._insertAdapterHolidayCalendar_upsert.insertList_4ezy5m$(t)},NI.prototype.insert_11rb$=function(t){return this._insertAdapterHolidayCalendar_.insertAndReturnId_11rb$(t)},TI.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},TI.prototype=Object.create(N.prototype),TI.prototype.constructor=TI,TI.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterHolidayCalendar_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},NI.prototype.insertAsync=function(t,e,n){var i=new TI(this,t,e);return n?i:i.doResume(null)},NI.prototype.insertList_4ezy5m$=function(t){this._insertAdapterHolidayCalendar_.insertList_4ezy5m$(t)},LI.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},LI.prototype=Object.create(N.prototype),LI.prototype.constructor=LI,LI.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$entity.umCalendarName),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$entity.umCalendarCategory),this.local$_stmt.setBoolean_fzusl$(3,this.local$closure$entity.umCalendarActive),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$entity.umCalendarMasterChangeSeqNum),this.local$_stmt.setLong_6svq3l$(5,this.local$closure$entity.umCalendarLocalChangeSeqNum),this.local$_stmt.setInt_vux9f0$(6,this.local$closure$entity.umCalendarLastChangedBy),this.local$_stmt.setLong_6svq3l$(7,this.local$closure$entity.umCalendarLct),this.local$_stmt.setLong_6svq3l$(8,this.local$closure$entity.umCalendarUid),this.local$tmp$=this.local$closure$_result.v,this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$closure$_result.v=this.local$tmp$+this.result_0|0,V;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},wI.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},wI.prototype=Object.create(N.prototype),wI.prototype.constructor=wI,wI.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_result={v:0},this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE HolidayCalendar SET umCalendarName = ?, umCalendarCategory = ?, umCalendarActive = ?, umCalendarMasterChangeSeqNum = ?, umCalendarLocalChangeSeqNum = ?, umCalendarLastChangedBy = ?, umCalendarLct = ? WHERE umCalendarUid = ?",zI(this.local$entity,this.local$_result),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$_result.v;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},NI.prototype.updateAsync_wzqrsg$=function(t,e,n){var i=new wI(this,t,e);return n?i:i.doResume(null)},NI.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE HolidayCalendar SET umCalendarName = ?, umCalendarCategory = ?, umCalendarActive = ?, umCalendarMasterChangeSeqNum = ?, umCalendarLocalChangeSeqNum = ?, umCalendarLastChangedBy = ?, umCalendarLct = ? WHERE umCalendarUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setString_vqvrqt$(1,i.umCalendarName),t.setInt_vux9f0$(2,i.umCalendarCategory),t.setBoolean_fzusl$(3,i.umCalendarActive),t.setLong_6svq3l$(4,i.umCalendarMasterChangeSeqNum),t.setLong_6svq3l$(5,i.umCalendarLocalChangeSeqNum),t.setInt_vux9f0$(6,i.umCalendarLastChangedBy),t.setLong_6svq3l$(7,i.umCalendarLct),t.setLong_6svq3l$(8,i.umCalendarUid),t.executeUpdate()}return t.getConnection().commit(),V}))},NI.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE HolidayCalendar SET umCalendarName = ?, umCalendarCategory = ?, umCalendarActive = ?, umCalendarMasterChangeSeqNum = ?, umCalendarLocalChangeSeqNum = ?, umCalendarLastChangedBy = ?, umCalendarLct = ? WHERE umCalendarUid = ?",(e=t,function(t){return t.setString_vqvrqt$(1,e.umCalendarName),t.setInt_vux9f0$(2,e.umCalendarCategory),t.setBoolean_fzusl$(3,e.umCalendarActive),t.setLong_6svq3l$(4,e.umCalendarMasterChangeSeqNum),t.setLong_6svq3l$(5,e.umCalendarLocalChangeSeqNum),t.setInt_vux9f0$(6,e.umCalendarLastChangedBy),t.setLong_6svq3l$(7,e.umCalendarLct),t.setLong_6svq3l$(8,e.umCalendarUid),t.executeUpdate()}))},OI.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},OI.prototype=Object.create(N.prototype),OI.prototype.constructor=OI,OI.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},AI.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},AI.prototype=Object.create(N.prototype),AI.prototype.constructor=AI,AI.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO HolidayCalendarReplicate(hcPk, hcDestination)\n | SELECT DISTINCT HolidayCalendar.umCalendarUid AS hcPk,\n | ? AS hcDestination\n | FROM HolidayCalendar\n | JOIN UserSession\n | ON UserSession.usClientNodeId = ?\n | --notpsql \n | WHERE HolidayCalendar.umCalendarLct != COALESCE(\n | (SELECT hcVersionId\n | FROM HolidayCalendarReplicate\n | WHERE hcPk = HolidayCalendar.umCalendarUid\n | AND hcDestination = UserSession.usClientNodeId), 0) \n | --endnotpsql \n | /*psql ON CONFLICT(hcPk, hcDestination) DO UPDATE\n | SET hcPending = (SELECT HolidayCalendar.umCalendarLct\n | FROM HolidayCalendar\n | WHERE HolidayCalendar.umCalendarUid = EXCLUDED.hcPk ) \n | != HolidayCalendarReplicate.hcPk\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO HolidayCalendarReplicate(hcPk, hcDestination)\n | SELECT DISTINCT HolidayCalendar.umCalendarUid AS hcPk,\n | ? AS hcDestination\n | FROM HolidayCalendar\n | JOIN UserSession\n | ON UserSession.usClientNodeId = ?\n | ON CONFLICT(hcPk, hcDestination) DO UPDATE\n | SET hcPending = (SELECT HolidayCalendar.umCalendarLct\n | FROM HolidayCalendar\n | WHERE HolidayCalendar.umCalendarUid = EXCLUDED.hcPk ) \n | != HolidayCalendarReplicate.hcPk\n | \n | \n |")),RI(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},NI.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new AI(this,t,e);return n?i:i.doResume(null)},xI.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},xI.prototype=Object.create(N.prototype),xI.prototype.constructor=xI,xI.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},UI.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},UI.prototype=Object.create(N.prototype),UI.prototype.constructor=UI,UI.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO HolidayCalendarReplicate(hcPk, hcDestination)\n | SELECT DISTINCT HolidayCalendar.umCalendarUid AS hcUid,\n | UserSession.usClientNodeId AS hcDestination\n | FROM ChangeLog\n | JOIN HolidayCalendar\n | ON ChangeLog.chTableId = 28\n | AND ChangeLog.chEntityPk = HolidayCalendar.umCalendarUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | --notpsql \n | AND HolidayCalendar.umCalendarLct != COALESCE(\n | (SELECT hcVersionId\n | FROM HolidayCalendarReplicate\n | WHERE hcPk = HolidayCalendar.umCalendarUid\n | AND hcDestination = UserSession.usClientNodeId), 0) \n | --endnotpsql \n | /*psql ON CONFLICT(hcPk, hcDestination) DO UPDATE\n | SET hcPending = (SELECT HolidayCalendar.umCalendarLct\n | FROM HolidayCalendar\n | WHERE HolidayCalendar.umCalendarUid = EXCLUDED.hcPk ) \n | != HolidayCalendarReplicate.hcPk \n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO HolidayCalendarReplicate(hcPk, hcDestination)\n | SELECT DISTINCT HolidayCalendar.umCalendarUid AS hcUid,\n | UserSession.usClientNodeId AS hcDestination\n | FROM ChangeLog\n | JOIN HolidayCalendar\n | ON ChangeLog.chTableId = 28\n | AND ChangeLog.chEntityPk = HolidayCalendar.umCalendarUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | ON CONFLICT(hcPk, hcDestination) DO UPDATE\n | SET hcPending = (SELECT HolidayCalendar.umCalendarLct\n | FROM HolidayCalendar\n | WHERE HolidayCalendar.umCalendarUid = EXCLUDED.hcPk ) \n | != HolidayCalendarReplicate.hcPk \n | \n | \n |")),II,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},NI.prototype.replicateOnChange=function(t,e){var n=new UI(this,t);return e?n:n.doResume(null)},MI.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},MI.prototype=Object.create(N.prototype),MI.prototype.constructor=MI,MI.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setInt_vux9f0$(1,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,PI);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jI.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},jI.prototype=Object.create(N.prototype),jI.prototype.constructor=jI,jI.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$HolidayCalendarDao_JdbcKt._db,new st(S("\n |SELECT * FROM (SELECT HolidayCalendar.* ,\n | (SELECT COUNT(*) FROM Holiday \n | WHERE holHolidayCalendarUid = HolidayCalendar.umCalendarUid \n | AND CAST(holActive AS INTEGER) = 1) AS numEntries \n | FROM HolidayCalendar WHERE CAST(umCalendarActive AS INTEGER) = 1 AND \n | umCalendarCategory = 1) LIMIT ? OFFSET ?\n ")),kI(this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},DI.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$HolidayCalendarDao_JdbcKt._db,p(["Holiday","HolidayCalendar"]),(n=this.this$HolidayCalendarDao_JdbcKt,i=e,o=t,function(t,e){var r=new jI(n,i,o,t);return e?r:r.doResume(null)}));var n,i,o},qI.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},qI.prototype=Object.create(N.prototype),qI.prototype.constructor=qI,qI.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,GI);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},BI.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},BI.prototype=Object.create(N.prototype),BI.prototype.constructor=BI,BI.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$HolidayCalendarDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (SELECT HolidayCalendar.* ,\n | (SELECT COUNT(*) FROM Holiday \n | WHERE holHolidayCalendarUid = HolidayCalendar.umCalendarUid \n | AND CAST(holActive AS INTEGER) = 1) AS numEntries \n | FROM HolidayCalendar WHERE CAST(umCalendarActive AS INTEGER) = 1 AND \n | umCalendarCategory = 1) \n ")),FI,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},DI.prototype.getLength=function(){return new ft(this.this$HolidayCalendarDao_JdbcKt._db,p(["Holiday","HolidayCalendar"]),(t=this.this$HolidayCalendarDao_JdbcKt,function(e,n){var i=new BI(t,e);return n?i:i.doResume(null)}));var t},DI.$metadata$={kind:c,interfaces:[gt]},NI.prototype.findAllHolidaysWithEntriesCount=function(){return new DI(this)},HI.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},HI.prototype=Object.create(N.prototype),HI.prototype.constructor=HI,HI.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,WI);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},KI.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},KI.prototype=Object.create(N.prototype),KI.prototype.constructor=KI,KI.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$HolidayCalendarDao_JdbcKt._db,new st("SELECT * FROM HolidayCalendar WHERE CAST(umCalendarActive AS INTEGER) = 1 AND umCalendarCategory = 1"),VI,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},NI.prototype.findAllHolidaysLiveData=function(){return new ft(this._db,Et("HolidayCalendar"),(t=this,function(e,n){var i=new KI(t,e);return n?i:i.doResume(null)}));var t},JI.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},JI.prototype=Object.create(N.prototype),JI.prototype.constructor=JI,JI.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,XI);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},QI.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},QI.prototype=Object.create(N.prototype),QI.prototype.constructor=QI,QI.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$HolidayCalendarDao_JdbcKt._db,new st("SELECT * FROM HolidayCalendar WHERE umCalendarUid = ? AND CAST(umCalendarActive AS INTEGER) = 1"),YI(this.local$closure$uid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},NI.prototype.findByUidLive_s8cxhz$=function(t){return new ft(this._db,Et("HolidayCalendar"),(e=this,n=t,function(t,i){var o=new QI(e,n,t);return i?o:o.doResume(null)}));var e,n},tU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},tU.prototype=Object.create(N.prototype),tU.prototype.constructor=tU,tU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,ZI);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},NI.prototype.findByUid_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT * FROM HolidayCalendar WHERE umCalendarUid = ?"),(n=t,function(t,e,i){var o=new tU(n,t,e);return i?o:o.doResume(null)}),e);var n},nU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},nU.prototype=Object.create(N.prototype),nU.prototype.constructor=nU,nU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,eU);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},NI.prototype.findByUidAsync_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT * FROM HolidayCalendar WHERE umCalendarUid = ?"),(n=t,function(t,e,i){var o=new nU(n,t,e);return i?o:o.doResume(null)}),e);var n},iU.prototype.makeSql_6taknv$=function(t){return"INSERT OR REPLACE INTO HolidayCalendar (umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?)"},iU.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.umCalendarUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.umCalendarUid),t.setString_vqvrqt$(2,e.umCalendarName),t.setInt_vux9f0$(3,e.umCalendarCategory),t.setBoolean_fzusl$(4,e.umCalendarActive),t.setLong_6svq3l$(5,e.umCalendarMasterChangeSeqNum),t.setLong_6svq3l$(6,e.umCalendarLocalChangeSeqNum),t.setInt_vux9f0$(7,e.umCalendarLastChangedBy),t.setLong_6svq3l$(8,e.umCalendarLct)},iU.$metadata$={kind:c,interfaces:[pt]},oU.prototype.makeSql_6taknv$=function(t){return"INSERT INTO HolidayCalendar (umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?)"},oU.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.umCalendarUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.umCalendarUid),t.setString_vqvrqt$(2,e.umCalendarName),t.setInt_vux9f0$(3,e.umCalendarCategory),t.setBoolean_fzusl$(4,e.umCalendarActive),t.setLong_6svq3l$(5,e.umCalendarMasterChangeSeqNum),t.setLong_6svq3l$(6,e.umCalendarLocalChangeSeqNum),t.setInt_vux9f0$(7,e.umCalendarLastChangedBy),t.setLong_6svq3l$(8,e.umCalendarLct)},oU.$metadata$={kind:c,interfaces:[pt]},NI.$metadata$={kind:c,simpleName:"HolidayCalendarDao_JdbcKt",interfaces:[CI]},sU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},sU.prototype=Object.create(N.prototype),sU.prototype.constructor=sU,sU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},rU.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new sU(this,t,e);return n?i:i.doResume(null)},aU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},aU.prototype=Object.create(N.prototype),aU.prototype.constructor=aU,aU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},rU.prototype.replicateOnChange=function(t,e){var n=new aU(this,t);return e?n:n.doResume(null)},rU.prototype.findAllHolidaysWithEntriesCount=function(){return this._dao_0.findAllHolidaysWithEntriesCount()},rU.prototype.replaceList_qyl16p$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},rU.prototype.findAllHolidaysLiveData=function(){return this._dao_0.findAllHolidaysLiveData()},rU.prototype.findByUidLive_s8cxhz$=function(t){return this._dao_0.findByUidLive_s8cxhz$(t)},rU.prototype.updateAsync_wzqrsg$=function(t,e){return t.umCalendarLct=J(),this._dao_0.updateAsync_wzqrsg$(t,e)},rU.prototype.findByUid_s8cxhz$=function(t,e){return this._dao_0.findByUid_s8cxhz$(t,e)},rU.prototype.findByUidAsync_s8cxhz$=function(t,e){return this._dao_0.findByUidAsync_s8cxhz$(t,e)},rU.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},cU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},cU.prototype=Object.create(N.prototype),cU.prototype.constructor=cU,cU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.umCalendarUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(28,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.umCalendarUid=e,this.state_0=3;continue;case 3:if(this.local$entity.umCalendarLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.umCalendarUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},rU.prototype.insertAsync=function(t,e,n){var i=new cU(this,t,e);return n?i:i.doResume(null)},rU.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},rU.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},rU.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},rU.$metadata$={kind:c,simpleName:"HolidayCalendarDao_ReplicateWrapper",interfaces:[CI]},uU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},uU.prototype=Object.create(N.prototype),uU.prototype.constructor=uU,uU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lU.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new uU(this,t,e);return n?i:i.doResume(null)},hU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},hU.prototype=Object.create(N.prototype),hU.prototype.constructor=hU,hU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lU.prototype.replicateOnChange=function(t,e){var n=new hU(this,t);return e?n:n.doResume(null)},lU.prototype.findAllHolidaysWithEntriesCount=function(){return this._dao.findAllHolidaysWithEntriesCount()},lU.prototype.replaceList_qyl16p$=function(t){this._dao.replaceList_qyl16p$(t)},lU.prototype.findAllHolidaysLiveData=function(){return this._dao.findAllHolidaysLiveData()},lU.prototype.findByUidLive_s8cxhz$=function(t){return this._dao.findByUidLive_s8cxhz$(t)},dU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},dU.prototype=Object.create(N.prototype),dU.prototype.constructor=dU,dU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateAsync_wzqrsg$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lU.prototype.updateAsync_wzqrsg$=function(t,e,n){var i=new dU(this,t,e);return n?i:i.doResume(null)},pU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},pU.prototype=Object.create(N.prototype),pU.prototype.constructor=pU,pU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByUid_s8cxhz$(this.local$uid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lU.prototype.findByUid_s8cxhz$=function(t,e,n){var i=new pU(this,t,e);return n?i:i.doResume(null)},_U.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_U.prototype=Object.create(N.prototype),_U.prototype.constructor=_U,_U.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByUidAsync_s8cxhz$(this.local$uid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lU.prototype.findByUidAsync_s8cxhz$=function(t,e,n){var i=new _U(this,t,e);return n?i:i.doResume(null)},lU.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},mU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},mU.prototype=Object.create(N.prototype),mU.prototype.constructor=mU,mU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lU.prototype.insertAsync=function(t,e,n){var i=new mU(this,t,e);return n?i:i.doResume(null)},lU.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},lU.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},lU.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},lU.$metadata$={kind:c,simpleName:"HolidayCalendarDao_Repo",interfaces:[CI]},fU.$metadata$={kind:c,simpleName:"HolidayDao",interfaces:[t4,X6]},$U.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},$U.prototype=Object.create(N.prototype),$U.prototype.constructor=$U,$U.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterHoliday_.insertAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},gU.prototype.updateAsync_cqv1si$=function(t,e,n){var i=new $U(this,t,e);return n?i:i.doResume(null)},gU.prototype.insert_11rb$=function(t){return this._insertAdapterHoliday_.insertAndReturnId_11rb$(t)},EU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},EU.prototype=Object.create(N.prototype),EU.prototype.constructor=EU,EU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterHoliday_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},gU.prototype.insertAsync=function(t,e,n){var i=new EU(this,t,e);return n?i:i.doResume(null)},gU.prototype.insertList_4ezy5m$=function(t){this._insertAdapterHoliday_.insertList_4ezy5m$(t)},yU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},yU.prototype=Object.create(N.prototype),yU.prototype.constructor=yU,yU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterHoliday_.insertListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},gU.prototype.insertListAsync_4ezy5m$=function(t,e,n){var i=new yU(this,t,e);return n?i:i.doResume(null)},gU.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE Holiday SET holMasterCsn = ?, holLocalCsn = ?, holLastModBy = ?, holLct = ?, holActive = ?, holHolidayCalendarUid = ?, holStartTime = ?, holEndTime = ?, holName = ? WHERE holUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.holMasterCsn),t.setLong_6svq3l$(2,i.holLocalCsn),t.setInt_vux9f0$(3,i.holLastModBy),t.setLong_6svq3l$(4,i.holLct),t.setBoolean_fzusl$(5,i.holActive),t.setLong_6svq3l$(6,i.holHolidayCalendarUid),t.setLong_6svq3l$(7,i.holStartTime),t.setLong_6svq3l$(8,i.holEndTime),t.setString_vqvrqt$(9,i.holName),t.setLong_6svq3l$(10,i.holUid),t.executeUpdate()}return t.getConnection().commit(),V}))},gU.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE Holiday SET holMasterCsn = ?, holLocalCsn = ?, holLastModBy = ?, holLct = ?, holActive = ?, holHolidayCalendarUid = ?, holStartTime = ?, holEndTime = ?, holName = ? WHERE holUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.holMasterCsn),t.setLong_6svq3l$(2,e.holLocalCsn),t.setInt_vux9f0$(3,e.holLastModBy),t.setLong_6svq3l$(4,e.holLct),t.setBoolean_fzusl$(5,e.holActive),t.setLong_6svq3l$(6,e.holHolidayCalendarUid),t.setLong_6svq3l$(7,e.holStartTime),t.setLong_6svq3l$(8,e.holEndTime),t.setString_vqvrqt$(9,e.holName),t.setLong_6svq3l$(10,e.holUid),t.executeUpdate()}))},bU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},bU.prototype=Object.create(N.prototype),bU.prototype.constructor=bU,bU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_stmt.getConnection().setAutoCommit_6taknv$(!1),this.local$tmp$=this.local$closure$entityList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$tmp$.hasNext()){this.state_0=4;continue}var t=this.local$tmp$.next();if(this.local$_stmt.setLong_6svq3l$(1,t.holMasterCsn),this.local$_stmt.setLong_6svq3l$(2,t.holLocalCsn),this.local$_stmt.setInt_vux9f0$(3,t.holLastModBy),this.local$_stmt.setLong_6svq3l$(4,t.holLct),this.local$_stmt.setBoolean_fzusl$(5,t.holActive),this.local$_stmt.setLong_6svq3l$(6,t.holHolidayCalendarUid),this.local$_stmt.setLong_6svq3l$(7,t.holStartTime),this.local$_stmt.setLong_6svq3l$(8,t.holEndTime),this.local$_stmt.setString_vqvrqt$(9,t.holName),this.local$_stmt.setLong_6svq3l$(10,t.holUid),this.state_0=3,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 3:this.state_0=2;continue;case 4:return this.local$_stmt.getConnection().commit(),V;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},vU.prototype=Object.create(N.prototype),vU.prototype.constructor=vU,vU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE Holiday SET holMasterCsn = ?, holLocalCsn = ?, holLastModBy = ?, holLct = ?, holActive = ?, holHolidayCalendarUid = ?, holStartTime = ?, holEndTime = ?, holName = ? WHERE holUid = ?",SU(this.local$entityList),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},gU.prototype.updateListAsync_4ezy5m$=function(t,e,n){var i=new vU(this,t,e);return n?i:i.doResume(null)},CU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},CU.prototype=Object.create(N.prototype),CU.prototype.constructor=CU,CU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},TU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},TU.prototype=Object.create(N.prototype),TU.prototype.constructor=TU,TU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO HolidayReplicate(holidayPk, holidayDestination)\n | SELECT DISTINCT Holiday.holUid AS holidayPk,\n | ? AS holidayDestination\n | FROM Holiday\n | WHERE Holiday.holLct != COALESCE(\n | (SELECT holidayVersionId\n | FROM HolidayReplicate\n | WHERE holidayPk = Holiday.holUid\n | AND holidayDestination = ?), 0) \n | /*psql ON CONFLICT(holidayPk, holidayDestination) DO UPDATE\n | SET holidayPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO HolidayReplicate(holidayPk, holidayDestination)\n | SELECT DISTINCT Holiday.holUid AS holidayPk,\n | ? AS holidayDestination\n | FROM Holiday\n | WHERE Holiday.holLct != COALESCE(\n | (SELECT holidayVersionId\n | FROM HolidayReplicate\n | WHERE holidayPk = Holiday.holUid\n | AND holidayDestination = ?), 0) \n | ON CONFLICT(holidayPk, holidayDestination) DO UPDATE\n | SET holidayPending = true\n | \n | \n |")),NU(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},gU.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new TU(this,t,e);return n?i:i.doResume(null)},LU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},LU.prototype=Object.create(N.prototype),LU.prototype.constructor=LU,LU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},wU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},wU.prototype=Object.create(N.prototype),wU.prototype.constructor=wU,wU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO HolidayReplicate(holidayPk, holidayDestination)\n | SELECT DISTINCT Holiday.holUid AS holidayUid,\n | UserSession.usClientNodeId AS holidayDestination\n | FROM ChangeLog\n | JOIN Holiday\n | ON ChangeLog.chTableId = 99\n | AND ChangeLog.chEntityPk = Holiday.holUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND Holiday.holLct != COALESCE(\n | (SELECT holidayVersionId\n | FROM HolidayReplicate\n | WHERE holidayPk = Holiday.holUid\n | AND holidayDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(holidayPk, holidayDestination) DO UPDATE\n | SET holidayPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO HolidayReplicate(holidayPk, holidayDestination)\n | SELECT DISTINCT Holiday.holUid AS holidayUid,\n | UserSession.usClientNodeId AS holidayDestination\n | FROM ChangeLog\n | JOIN Holiday\n | ON ChangeLog.chTableId = 99\n | AND ChangeLog.chEntityPk = Holiday.holUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND Holiday.holLct != COALESCE(\n | (SELECT holidayVersionId\n | FROM HolidayReplicate\n | WHERE holidayPk = Holiday.holUid\n | AND holidayDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(holidayPk, holidayDestination) DO UPDATE\n | SET holidayPending = true\n | \n | \n |")),zU,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},gU.prototype.replicateOnChange=function(t,e){var n=new wU(this,t);return e?n:n.doResume(null)},gU.prototype.findByHolidayCalendaUid_s8cxhz$=function(t){return ht(this._db,new st("SELECT * FROM Holiday WHERE holHolidayCalendarUid = ?"),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),OU)}));var e},AU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},AU.prototype=Object.create(N.prototype),AU.prototype.constructor=AU,AU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$holidayCalendarUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,RU);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},gU.prototype.findByHolidayCalendaUidAsync_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT * FROM Holiday WHERE holHolidayCalendarUid = ?"),(n=t,function(t,e,i){var o=new AU(n,t,e);return i?o:o.doResume(null)}),e);var n},gU.prototype.updateActiveByUid_zaz62j$=function(t,e,n){var i,o,r;ht(this._db,new st(S("\n |\n | UPDATE Holiday \n | SET holActive = ?, \n | holLct = ?\n | WHERE holUid = ?\n ")),(i=e,o=n,r=t,function(t){return t.setBoolean_fzusl$(1,i),t.setLong_6svq3l$(2,o),t.setLong_6svq3l$(3,r),t.executeUpdate()}))},xU.prototype.makeSql_6taknv$=function(t){return"INSERT INTO Holiday (holUid, holMasterCsn, holLocalCsn, holLastModBy, holLct, holActive, holHolidayCalendarUid, holStartTime, holEndTime, holName) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},xU.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.holUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.holUid),t.setLong_6svq3l$(2,e.holMasterCsn),t.setLong_6svq3l$(3,e.holLocalCsn),t.setInt_vux9f0$(4,e.holLastModBy),t.setLong_6svq3l$(5,e.holLct),t.setBoolean_fzusl$(6,e.holActive),t.setLong_6svq3l$(7,e.holHolidayCalendarUid),t.setLong_6svq3l$(8,e.holStartTime),t.setLong_6svq3l$(9,e.holEndTime),t.setString_vqvrqt$(10,e.holName)},xU.$metadata$={kind:c,interfaces:[pt]},gU.$metadata$={kind:c,simpleName:"HolidayDao_JdbcKt",interfaces:[fU]},UU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},UU.prototype=Object.create(N.prototype),UU.prototype.constructor=UU,UU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},IU.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new UU(this,t,e);return n?i:i.doResume(null)},DU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},DU.prototype=Object.create(N.prototype),DU.prototype.constructor=DU,DU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},IU.prototype.replicateOnChange=function(t,e){var n=new DU(this,t);return e?n:n.doResume(null)},IU.prototype.findByHolidayCalendaUid_s8cxhz$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},IU.prototype.findByHolidayCalendaUidAsync_s8cxhz$=function(t,e){return this._dao_0.findByHolidayCalendaUidAsync_s8cxhz$(t,e)},IU.prototype.updateActiveByUid_zaz62j$=function(t,e,n){throw v("Synchronous db access is NOT possible on Javascript!")},PU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},PU.prototype=Object.create(N.prototype),PU.prototype.constructor=PU,PU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.holUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(99,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.holUid=e,this.state_0=3;continue;case 3:if(this.local$entity.holLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.updateAsync_cqv1si$(this.local$entity,this),this.result_0===C)return C;continue;case 4:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},IU.prototype.updateAsync_cqv1si$=function(t,e,n){var i=new PU(this,t,e);return n?i:i.doResume(null)},IU.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},MU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},MU.prototype=Object.create(N.prototype),MU.prototype.constructor=MU,MU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.holUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(99,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.holUid=e,this.state_0=3;continue;case 3:if(this.local$entity.holLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.holUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},IU.prototype.insertAsync=function(t,e,n){var i=new MU(this,t,e);return n?i:i.doResume(null)},IU.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},IU.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},IU.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},kU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},kU.prototype=Object.create(N.prototype),kU.prototype.constructor=kU,kU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_pkManager=_t(w(this.$this._db_0)),this.local$_generatedPks=F(),this.local$$receiver=this.local$entityList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$$receiver.hasNext()){this.state_0=5;continue}if(this.local$element=this.local$$receiver.next(),O(this.local$element.holUid,X)){if(this.state_0=3,this.result_0=this.local$_pkManager.nextIdAsync_za3lpa$(99,this),this.result_0===C)return C;continue}this.state_0=4;continue;case 3:var t=this.result_0;this.local$element.holUid=t,this.local$_generatedPks.add_11rb$(t),this.state_0=4;continue;case 4:this.local$element.holLct=J(),this.state_0=2;continue;case 5:if(this.state_0=6,this.result_0=this.$this._dao_0.insertListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 6:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},IU.prototype.insertListAsync_4ezy5m$=function(t,e,n){var i=new kU(this,t,e);return n?i:i.doResume(null)},jU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},jU.prototype=Object.create(N.prototype),jU.prototype.constructor=jU,jU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:F();for(var t=this.local$entityList.iterator();t.hasNext();)t.next().holLct=J();if(this.state_0=2,this.result_0=this.$this._dao_0.updateListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},IU.prototype.updateListAsync_4ezy5m$=function(t,e,n){var i=new jU(this,t,e);return n?i:i.doResume(null)},IU.$metadata$={kind:c,simpleName:"HolidayDao_ReplicateWrapper",interfaces:[fU]},qU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},qU.prototype=Object.create(N.prototype),qU.prototype.constructor=qU,qU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},GU.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new qU(this,t,e);return n?i:i.doResume(null)},FU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},FU.prototype=Object.create(N.prototype),FU.prototype.constructor=FU,FU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},GU.prototype.replicateOnChange=function(t,e){var n=new FU(this,t);return e?n:n.doResume(null)},GU.prototype.findByHolidayCalendaUid_s8cxhz$=function(t){return this._dao.findByHolidayCalendaUid_s8cxhz$(t)},BU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},BU.prototype=Object.create(N.prototype),BU.prototype.constructor=BU,BU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByHolidayCalendaUidAsync_s8cxhz$(this.local$holidayCalendarUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},GU.prototype.findByHolidayCalendaUidAsync_s8cxhz$=function(t,e,n){var i=new BU(this,t,e);return n?i:i.doResume(null)},GU.prototype.updateActiveByUid_zaz62j$=function(t,e,n){this._dao.updateActiveByUid_zaz62j$(t,e,n)},WU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},WU.prototype=Object.create(N.prototype),WU.prototype.constructor=WU,WU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateAsync_cqv1si$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},GU.prototype.updateAsync_cqv1si$=function(t,e,n){var i=new WU(this,t,e);return n?i:i.doResume(null)},GU.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},HU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},HU.prototype=Object.create(N.prototype),HU.prototype.constructor=HU,HU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},GU.prototype.insertAsync=function(t,e,n){var i=new HU(this,t,e);return n?i:i.doResume(null)},GU.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},GU.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},GU.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},VU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},VU.prototype=Object.create(N.prototype),VU.prototype.constructor=VU,VU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},GU.prototype.insertListAsync_4ezy5m$=function(t,e,n){var i=new VU(this,t,e);return n?i:i.doResume(null)},KU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},KU.prototype=Object.create(N.prototype),KU.prototype.constructor=KU,KU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},GU.prototype.updateListAsync_4ezy5m$=function(t,e,n){var i=new KU(this,t,e);return n?i:i.doResume(null)},GU.$metadata$={kind:c,simpleName:"HolidayDao_Repo",interfaces:[fU]},XU.$metadata$={kind:c,simpleName:"LanguageDao",interfaces:[X6]},YU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},YU.prototype=Object.create(N.prototype),YU.prototype.constructor=YU,YU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterLanguage_.insertListAsync_4ezy5m$(this.local$languageList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},JU.prototype.insertListAsync_ib5eyb$=function(t,e,n){var i=new YU(this,t,e);return n?i:i.doResume(null)},JU.prototype.replaceList_ib5eyb$=function(t){this._insertAdapterLanguage_upsert.insertList_4ezy5m$(t)},JU.prototype.insert_11rb$=function(t){return this._insertAdapterLanguage_.insertAndReturnId_11rb$(t)},QU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},QU.prototype=Object.create(N.prototype),QU.prototype.constructor=QU,QU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterLanguage_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},JU.prototype.insertAsync=function(t,e,n){var i=new QU(this,t,e);return n?i:i.doResume(null)},JU.prototype.insertList_4ezy5m$=function(t){this._insertAdapterLanguage_.insertList_4ezy5m$(t)},JU.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE Language SET name = ?, iso_639_1_standard = ?, iso_639_2_standard = ?, iso_639_3_standard = ?, Language_Type = ?, languageActive = ?, langLocalChangeSeqNum = ?, langMasterChangeSeqNum = ?, langLastChangedBy = ?, langLct = ? WHERE langUid = ?",(e=t,function(t){return t.setString_vqvrqt$(1,e.name),t.setString_vqvrqt$(2,e.iso_639_1_standard),t.setString_vqvrqt$(3,e.iso_639_2_standard),t.setString_vqvrqt$(4,e.iso_639_3_standard),t.setString_vqvrqt$(5,e.Language_Type),t.setBoolean_fzusl$(6,e.languageActive),t.setLong_6svq3l$(7,e.langLocalChangeSeqNum),t.setLong_6svq3l$(8,e.langMasterChangeSeqNum),t.setInt_vux9f0$(9,e.langLastChangedBy),t.setLong_6svq3l$(10,e.langLct),t.setLong_6svq3l$(11,e.langUid),t.executeUpdate()}))},ZU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ZU.prototype=Object.create(N.prototype),ZU.prototype.constructor=ZU,ZU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$entity.name),this.local$_stmt.setString_vqvrqt$(2,this.local$closure$entity.iso_639_1_standard),this.local$_stmt.setString_vqvrqt$(3,this.local$closure$entity.iso_639_2_standard),this.local$_stmt.setString_vqvrqt$(4,this.local$closure$entity.iso_639_3_standard),this.local$_stmt.setString_vqvrqt$(5,this.local$closure$entity.Language_Type),this.local$_stmt.setBoolean_fzusl$(6,this.local$closure$entity.languageActive),this.local$_stmt.setLong_6svq3l$(7,this.local$closure$entity.langLocalChangeSeqNum),this.local$_stmt.setLong_6svq3l$(8,this.local$closure$entity.langMasterChangeSeqNum),this.local$_stmt.setInt_vux9f0$(9,this.local$closure$entity.langLastChangedBy),this.local$_stmt.setLong_6svq3l$(10,this.local$closure$entity.langLct),this.local$_stmt.setLong_6svq3l$(11,this.local$closure$entity.langUid),this.local$tmp$=this.local$closure$_result.v,this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$closure$_result.v=this.local$tmp$+this.result_0|0,V;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},eD.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},eD.prototype=Object.create(N.prototype),eD.prototype.constructor=eD,eD.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_result={v:0},this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE Language SET name = ?, iso_639_1_standard = ?, iso_639_2_standard = ?, iso_639_3_standard = ?, Language_Type = ?, languageActive = ?, langLocalChangeSeqNum = ?, langMasterChangeSeqNum = ?, langLastChangedBy = ?, langLct = ? WHERE langUid = ?",tD(this.local$entity,this.local$_result),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$_result.v;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},JU.prototype.updateAsync_lqiqse$=function(t,e,n){var i=new eD(this,t,e);return n?i:i.doResume(null)},JU.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE Language SET name = ?, iso_639_1_standard = ?, iso_639_2_standard = ?, iso_639_3_standard = ?, Language_Type = ?, languageActive = ?, langLocalChangeSeqNum = ?, langMasterChangeSeqNum = ?, langLastChangedBy = ?, langLct = ? WHERE langUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setString_vqvrqt$(1,i.name),t.setString_vqvrqt$(2,i.iso_639_1_standard),t.setString_vqvrqt$(3,i.iso_639_2_standard),t.setString_vqvrqt$(4,i.iso_639_3_standard),t.setString_vqvrqt$(5,i.Language_Type),t.setBoolean_fzusl$(6,i.languageActive),t.setLong_6svq3l$(7,i.langLocalChangeSeqNum),t.setLong_6svq3l$(8,i.langMasterChangeSeqNum),t.setInt_vux9f0$(9,i.langLastChangedBy),t.setLong_6svq3l$(10,i.langLct),t.setLong_6svq3l$(11,i.langUid),t.executeUpdate()}return t.getConnection().commit(),V}))},nD.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},nD.prototype=Object.create(N.prototype),nD.prototype.constructor=nD,nD.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oD.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},oD.prototype=Object.create(N.prototype),oD.prototype.constructor=oD,oD.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO LanguageReplicate(languagePk, languageDestination)\n | SELECT DISTINCT Language.langUid AS languagePk,\n | ? AS languageDestination\n | FROM Language\n | WHERE Language.langLct != COALESCE(\n | (SELECT languageVersionId\n | FROM LanguageReplicate\n | WHERE languagePk = Language.langUid\n | AND languageDestination = ?), 0) \n | /*psql ON CONFLICT(languagePk, languageDestination) DO UPDATE\n | SET languagePending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO LanguageReplicate(languagePk, languageDestination)\n | SELECT DISTINCT Language.langUid AS languagePk,\n | ? AS languageDestination\n | FROM Language\n | WHERE Language.langLct != COALESCE(\n | (SELECT languageVersionId\n | FROM LanguageReplicate\n | WHERE languagePk = Language.langUid\n | AND languageDestination = ?), 0) \n | ON CONFLICT(languagePk, languageDestination) DO UPDATE\n | SET languagePending = true\n | \n | \n |")),iD(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},JU.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new oD(this,t,e);return n?i:i.doResume(null)},rD.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},rD.prototype=Object.create(N.prototype),rD.prototype.constructor=rD,rD.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},aD.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},aD.prototype=Object.create(N.prototype),aD.prototype.constructor=aD,aD.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO LanguageReplicate(languagePk, languageDestination)\n | SELECT DISTINCT Language.langUid AS languageUid,\n | UserSession.usClientNodeId AS languageDestination\n | FROM ChangeLog\n | JOIN Language\n | ON ChangeLog.chTableId = 13\n | AND ChangeLog.chEntityPk = Language.langUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND Language.langLct != COALESCE(\n | (SELECT languageVersionId\n | FROM LanguageReplicate\n | WHERE languagePk = Language.langUid\n | AND languageDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(languagePk, languageDestination) DO UPDATE\n | SET languagePending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO LanguageReplicate(languagePk, languageDestination)\n | SELECT DISTINCT Language.langUid AS languageUid,\n | UserSession.usClientNodeId AS languageDestination\n | FROM ChangeLog\n | JOIN Language\n | ON ChangeLog.chTableId = 13\n | AND ChangeLog.chEntityPk = Language.langUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND Language.langLct != COALESCE(\n | (SELECT languageVersionId\n | FROM LanguageReplicate\n | WHERE languagePk = Language.langUid\n | AND languageDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(languagePk, languageDestination) DO UPDATE\n | SET languagePending = true\n | \n | \n |")),sD,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},JU.prototype.replicateOnChange=function(t,e){var n=new aD(this,t);return e?n:n.doResume(null)},uD.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},uD.prototype=Object.create(N.prototype),uD.prototype.constructor=uD,uD.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$searchText),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(4,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(5,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,lD);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dD.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},dD.prototype=Object.create(N.prototype),dD.prototype.constructor=dD,dD.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$LanguageDao_JdbcKt._db,new st(S("\n |SELECT * FROM (\n | SELECT Language.* \n | FROM Language\n | WHERE name LIKE ?\n | ORDER BY CASE(?)\n | WHEN 1 THEN Language.name \n | WHEN 3 THEN Language.iso_639_1_standard \n | WHEN 5 THEN Language.iso_639_2_standard \n | ELSE ''\n | END ASC,\n | CASE(?)\n | WHEN 2 THEN Language.name \n | WHEN 4 THEN Language.iso_639_1_standard \n | WHEN 6 THEN Language.iso_639_2_standard \n | ELSE ''\n | END DESC\n | ) LIMIT ? OFFSET ?\n ")),hD(this.local$closure$searchText,this.local$closure$sortOrder,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},cD.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$LanguageDao_JdbcKt._db,Et("Language"),(n=this.this$LanguageDao_JdbcKt,i=this.closure$searchText,o=this.closure$sortOrder,r=e,s=t,function(t,e){var a=new dD(n,i,o,r,s,t);return e?a:a.doResume(null)}));var n,i,o,r,s},_D.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_D.prototype=Object.create(N.prototype),_D.prototype.constructor=_D,_D.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$searchText),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$sortOrder),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,pD);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},fD.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fD.prototype=Object.create(N.prototype),fD.prototype.constructor=fD,fD.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$LanguageDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (\n | SELECT Language.* \n | FROM Language\n | WHERE name LIKE ?\n | ORDER BY CASE(?)\n | WHEN 1 THEN Language.name \n | WHEN 3 THEN Language.iso_639_1_standard \n | WHEN 5 THEN Language.iso_639_2_standard \n | ELSE ''\n | END ASC,\n | CASE(?)\n | WHEN 2 THEN Language.name \n | WHEN 4 THEN Language.iso_639_1_standard \n | WHEN 6 THEN Language.iso_639_2_standard \n | ELSE ''\n | END DESC\n | ) \n ")),mD(this.local$closure$searchText,this.local$closure$sortOrder),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},cD.prototype.getLength=function(){return new ft(this.this$LanguageDao_JdbcKt._db,Et("Language"),(t=this.this$LanguageDao_JdbcKt,e=this.closure$searchText,n=this.closure$sortOrder,function(i,o){var r=new fD(t,e,n,i);return o?r:r.doResume(null)}));var t,e,n},cD.$metadata$={kind:c,interfaces:[gt]},JU.prototype.findLanguagesAsSource_19mbxw$=function(t,e){return new cD(this,e,t)},JU.prototype.findLanguagesList=function(){return ht(this._db,new st("SELECT * FROM Language"),$D)},JU.prototype.findByName_61zpoe$=function(t){return ht(this._db,new st("SELECT * FROM Language WHERE name = ? LIMIT 1"),(e=t,function(t){return t.setString_vqvrqt$(1,e),ut(t.executeQuery(),ED)}));var e},JU.prototype.findByTwoCode_61zpoe$=function(t){return ht(this._db,new st("SELECT * FROM Language WHERE iso_639_1_standard = ? LIMIT 1"),(e=t,function(t){return t.setString_vqvrqt$(1,e),ut(t.executeQuery(),yD)}));var e},SD.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},SD.prototype=Object.create(N.prototype),SD.prototype.constructor=SD,SD.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$langCode),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,bD);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},JU.prototype.findByTwoCodeAsync_61zpoe$=function(t,e){return ct(this._db,new st("SELECT * FROM Language WHERE iso_639_1_standard = ? LIMIT 1"),(n=t,function(t,e,i){var o=new SD(n,t,e);return i?o:o.doResume(null)}),e);var n},JU.prototype.findByThreeCode_61zpoe$=function(t){return ht(this._db,new st("SELECT * FROM LANGUAGE WHERE iso_639_3_standard = ? OR iso_639_2_standard = ? LIMIT 1 "),(e=t,function(t){return t.setString_vqvrqt$(1,e),t.setString_vqvrqt$(2,e),ut(t.executeQuery(),vD)}));var e},JU.prototype.totalLanguageCount=function(){return ht(this._db,new st("SELECT COUNT(*) FROM LANGUAGE"),ND)},JU.prototype.findByUid_s8cxhz$=function(t){return ht(this._db,new st("SELECT * FROM LANGUAGE where langUid = ? LIMIT 1"),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),TD)}));var e},zD.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},zD.prototype=Object.create(N.prototype),zD.prototype.constructor=zD,zD.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$primaryLanguageUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,LD);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},JU.prototype.findByUidAsync_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT * FROM LANGUAGE where langUid = ? LIMIT 1"),(n=t,function(t,e,i){var o=new zD(n,t,e);return i?o:o.doResume(null)}),e);var n},OD.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},OD.prototype=Object.create(N.prototype),OD.prototype.constructor=OD,OD.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,wD);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},AD.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},AD.prototype=Object.create(N.prototype),AD.prototype.constructor=AD,AD.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$LanguageDao_JdbcKt._db,new st("SELECT * FROM LANGUAGE"),RD,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},JU.prototype.findAllLanguageLive=function(){return new ft(this._db,Et("LANGUAGE"),(t=this,function(e,n){var i=new AD(t,e);return n?i:i.doResume(null)}));var t},JU.prototype.findByUidList_gox9k8$=function(t){return ht(this._db,new st("SELECT langUid FROM LANGUAGE WHERE langUid IN (?)",!0),(e=t,function(t){return t.setArray_wqp8hw$(1,yt(t.getConnection(),"BIGINT",q(e))),ut(t.executeQuery(),xD)}));var e},ID.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ID.prototype=Object.create(N.prototype),ID.prototype.constructor=ID,ID.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setBoolean_fzusl$(1,this.local$closure$toggleVisibility),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$updateTime),this.local$_stmt.setArray_wqp8hw$(3,yt(this.local$_stmt.getConnection(),"BIGINT",q(this.local$closure$selectedItem))),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},DD.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},DD.prototype=Object.create(N.prototype),DD.prototype.constructor=DD,DD.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | UPDATE Language \n | SET languageActive = ?, \n | langLct = ?\n | WHERE langUid IN (?)\n "),!0),UD(this.local$toggleVisibility,this.local$updateTime,this.local$selectedItem),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},JU.prototype.toggleVisibilityLanguage_cbj1f0$=function(t,e,n,i,o){var r=new DD(this,t,e,n,i);return o?r:r.doResume(null)},PD.prototype.makeSql_6taknv$=function(t){return"INSERT INTO Language (langUid, name, iso_639_1_standard, iso_639_2_standard, iso_639_3_standard, Language_Type, languageActive, langLocalChangeSeqNum, langMasterChangeSeqNum, langLastChangedBy, langLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},PD.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.langUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.langUid),t.setString_vqvrqt$(2,e.name),t.setString_vqvrqt$(3,e.iso_639_1_standard),t.setString_vqvrqt$(4,e.iso_639_2_standard),t.setString_vqvrqt$(5,e.iso_639_3_standard),t.setString_vqvrqt$(6,e.Language_Type),t.setBoolean_fzusl$(7,e.languageActive),t.setLong_6svq3l$(8,e.langLocalChangeSeqNum),t.setLong_6svq3l$(9,e.langMasterChangeSeqNum),t.setInt_vux9f0$(10,e.langLastChangedBy),t.setLong_6svq3l$(11,e.langLct)},PD.$metadata$={kind:c,interfaces:[pt]},MD.prototype.makeSql_6taknv$=function(t){return"INSERT OR REPLACE INTO Language (langUid, name, iso_639_1_standard, iso_639_2_standard, iso_639_3_standard, Language_Type, languageActive, langLocalChangeSeqNum, langMasterChangeSeqNum, langLastChangedBy, langLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},MD.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.langUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.langUid),t.setString_vqvrqt$(2,e.name),t.setString_vqvrqt$(3,e.iso_639_1_standard),t.setString_vqvrqt$(4,e.iso_639_2_standard),t.setString_vqvrqt$(5,e.iso_639_3_standard),t.setString_vqvrqt$(6,e.Language_Type),t.setBoolean_fzusl$(7,e.languageActive),t.setLong_6svq3l$(8,e.langLocalChangeSeqNum),t.setLong_6svq3l$(9,e.langMasterChangeSeqNum),t.setInt_vux9f0$(10,e.langLastChangedBy),t.setLong_6svq3l$(11,e.langLct)},MD.$metadata$={kind:c,interfaces:[pt]},JU.$metadata$={kind:c,simpleName:"LanguageDao_JdbcKt",interfaces:[XU]},jD.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},jD.prototype=Object.create(N.prototype),jD.prototype.constructor=jD,jD.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kD.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new jD(this,t,e);return n?i:i.doResume(null)},GD.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},GD.prototype=Object.create(N.prototype),GD.prototype.constructor=GD,GD.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kD.prototype.replicateOnChange=function(t,e){var n=new GD(this,t);return e?n:n.doResume(null)},qD.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},qD.prototype=Object.create(N.prototype),qD.prototype.constructor=qD,qD.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_pkManager=_t(w(this.$this._db_0)),this.local$_generatedPks=F(),this.local$$receiver=this.local$languageList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$$receiver.hasNext()){this.state_0=5;continue}if(this.local$element=this.local$$receiver.next(),O(this.local$element.langUid,X)){if(this.state_0=3,this.result_0=this.local$_pkManager.nextIdAsync_za3lpa$(13,this),this.result_0===C)return C;continue}this.state_0=4;continue;case 3:var t=this.result_0;this.local$element.langUid=t,this.local$_generatedPks.add_11rb$(t),this.state_0=4;continue;case 4:this.local$element.langLct=J(),this.state_0=2;continue;case 5:if(this.state_0=6,this.result_0=this.$this._dao_0.insertListAsync_ib5eyb$(this.local$languageList,this),this.result_0===C)return C;continue;case 6:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kD.prototype.insertListAsync_ib5eyb$=function(t,e,n){var i=new qD(this,t,e);return n?i:i.doResume(null)},kD.prototype.findLanguagesAsSource_19mbxw$=function(t,e){return this._dao_0.findLanguagesAsSource_19mbxw$(t,e)},kD.prototype.findLanguagesList=function(){throw v("Synchronous db access is NOT possible on Javascript!")},kD.prototype.findByName_61zpoe$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},kD.prototype.findByTwoCode_61zpoe$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},kD.prototype.findByTwoCodeAsync_61zpoe$=function(t,e){return this._dao_0.findByTwoCodeAsync_61zpoe$(t,e)},kD.prototype.findByThreeCode_61zpoe$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},kD.prototype.totalLanguageCount=function(){throw v("Synchronous db access is NOT possible on Javascript!")},kD.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},kD.prototype.findByUid_s8cxhz$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},kD.prototype.findByUidAsync_s8cxhz$=function(t,e){return this._dao_0.findByUidAsync_s8cxhz$(t,e)},kD.prototype.updateAsync_lqiqse$=function(t,e){return t.langLct=J(),this._dao_0.updateAsync_lqiqse$(t,e)},kD.prototype.findAllLanguageLive=function(){return this._dao_0.findAllLanguageLive()},kD.prototype.findByUidList_gox9k8$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},FD.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},FD.prototype=Object.create(N.prototype),FD.prototype.constructor=FD,FD.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.toggleVisibilityLanguage_cbj1f0$(this.local$toggleVisibility,this.local$selectedItem,this.local$updateTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kD.prototype.toggleVisibilityLanguage_cbj1f0$=function(t,e,n,i,o){var r=new FD(this,t,e,n,i);return o?r:r.doResume(null)},kD.prototype.replaceList_ib5eyb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},kD.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},BD.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},BD.prototype=Object.create(N.prototype),BD.prototype.constructor=BD,BD.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.langUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(13,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.langUid=e,this.state_0=3;continue;case 3:if(this.local$entity.langLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.langUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kD.prototype.insertAsync=function(t,e,n){var i=new BD(this,t,e);return n?i:i.doResume(null)},kD.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},kD.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},kD.$metadata$={kind:c,simpleName:"LanguageDao_ReplicateWrapper",interfaces:[XU]},HD.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},HD.prototype=Object.create(N.prototype),HD.prototype.constructor=HD,HD.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},WD.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new HD(this,t,e);return n?i:i.doResume(null)},VD.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},VD.prototype=Object.create(N.prototype),VD.prototype.constructor=VD,VD.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},WD.prototype.replicateOnChange=function(t,e){var n=new VD(this,t);return e?n:n.doResume(null)},KD.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},KD.prototype=Object.create(N.prototype),KD.prototype.constructor=KD,KD.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertListAsync_ib5eyb$(this.local$languageList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},WD.prototype.insertListAsync_ib5eyb$=function(t,e,n){var i=new KD(this,t,e);return n?i:i.doResume(null)},WD.prototype.findLanguagesAsSource_19mbxw$=function(t,e){return this._dao.findLanguagesAsSource_19mbxw$(t,e)},WD.prototype.findLanguagesList=function(){return this._dao.findLanguagesList()},WD.prototype.findByName_61zpoe$=function(t){return this._dao.findByName_61zpoe$(t)},WD.prototype.findByTwoCode_61zpoe$=function(t){return this._dao.findByTwoCode_61zpoe$(t)},XD.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},XD.prototype=Object.create(N.prototype),XD.prototype.constructor=XD,XD.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByTwoCodeAsync_61zpoe$(this.local$langCode,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},WD.prototype.findByTwoCodeAsync_61zpoe$=function(t,e,n){var i=new XD(this,t,e);return n?i:i.doResume(null)},WD.prototype.findByThreeCode_61zpoe$=function(t){return this._dao.findByThreeCode_61zpoe$(t)},WD.prototype.totalLanguageCount=function(){return this._dao.totalLanguageCount()},WD.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},WD.prototype.findByUid_s8cxhz$=function(t){return this._dao.findByUid_s8cxhz$(t)},JD.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},JD.prototype=Object.create(N.prototype),JD.prototype.constructor=JD,JD.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByUidAsync_s8cxhz$(this.local$primaryLanguageUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},WD.prototype.findByUidAsync_s8cxhz$=function(t,e,n){var i=new JD(this,t,e);return n?i:i.doResume(null)},YD.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},YD.prototype=Object.create(N.prototype),YD.prototype.constructor=YD,YD.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateAsync_lqiqse$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},WD.prototype.updateAsync_lqiqse$=function(t,e,n){var i=new YD(this,t,e);return n?i:i.doResume(null)},WD.prototype.findAllLanguageLive=function(){return this._dao.findAllLanguageLive()},WD.prototype.findByUidList_gox9k8$=function(t){return this._dao.findByUidList_gox9k8$(t)},QD.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},QD.prototype=Object.create(N.prototype),QD.prototype.constructor=QD,QD.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.toggleVisibilityLanguage_cbj1f0$(this.local$toggleVisibility,this.local$selectedItem,this.local$updateTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},WD.prototype.toggleVisibilityLanguage_cbj1f0$=function(t,e,n,i,o){var r=new QD(this,t,e,n,i);return o?r:r.doResume(null)},WD.prototype.replaceList_ib5eyb$=function(t){this._dao.replaceList_ib5eyb$(t)},WD.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},ZD.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ZD.prototype=Object.create(N.prototype),ZD.prototype.constructor=ZD,ZD.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},WD.prototype.insertAsync=function(t,e,n){var i=new ZD(this,t,e);return n?i:i.doResume(null)},WD.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},WD.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},WD.$metadata$={kind:c,simpleName:"LanguageDao_Repo",interfaces:[XU]},tP.$metadata$={kind:c,simpleName:"LanguageVariantDao",interfaces:[X6]},eP.prototype.insert_11rb$=function(t){return this._insertAdapterLanguageVariant_.insertAndReturnId_11rb$(t)},nP.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},nP.prototype=Object.create(N.prototype),nP.prototype.constructor=nP,nP.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterLanguageVariant_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},eP.prototype.insertAsync=function(t,e,n){var i=new nP(this,t,e);return n?i:i.doResume(null)},eP.prototype.insertList_4ezy5m$=function(t){this._insertAdapterLanguageVariant_.insertList_4ezy5m$(t)},eP.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE LanguageVariant SET langUid = ?, countryCode = ?, name = ?, langVariantLocalChangeSeqNum = ?, langVariantMasterChangeSeqNum = ?, langVariantLastChangedBy = ?, langVariantLct = ? WHERE langVariantUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.langUid),t.setString_vqvrqt$(2,i.countryCode),t.setString_vqvrqt$(3,i.name),t.setLong_6svq3l$(4,i.langVariantLocalChangeSeqNum),t.setLong_6svq3l$(5,i.langVariantMasterChangeSeqNum),t.setInt_vux9f0$(6,i.langVariantLastChangedBy),t.setLong_6svq3l$(7,i.langVariantLct),t.setLong_6svq3l$(8,i.langVariantUid),t.executeUpdate()}return t.getConnection().commit(),V}))},eP.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE LanguageVariant SET langUid = ?, countryCode = ?, name = ?, langVariantLocalChangeSeqNum = ?, langVariantMasterChangeSeqNum = ?, langVariantLastChangedBy = ?, langVariantLct = ? WHERE langVariantUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.langUid),t.setString_vqvrqt$(2,e.countryCode),t.setString_vqvrqt$(3,e.name),t.setLong_6svq3l$(4,e.langVariantLocalChangeSeqNum),t.setLong_6svq3l$(5,e.langVariantMasterChangeSeqNum),t.setInt_vux9f0$(6,e.langVariantLastChangedBy),t.setLong_6svq3l$(7,e.langVariantLct),t.setLong_6svq3l$(8,e.langVariantUid),t.executeUpdate()}))},iP.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},iP.prototype=Object.create(N.prototype),iP.prototype.constructor=iP,iP.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},rP.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},rP.prototype=Object.create(N.prototype),rP.prototype.constructor=rP,rP.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO LanguageVariantReplicate(lvPk, lvDestination)\n | SELECT DISTINCT LanguageVariant.langVariantUid AS lvPk,\n | ? AS lvDestination\n | FROM LanguageVariant\n | WHERE LanguageVariant.langVariantLct != COALESCE(\n | (SELECT lvVersionId\n | FROM LanguageVariantReplicate\n | WHERE lvPk = LanguageVariant.langVariantUid\n | AND lvDestination = ?), 0) \n | /*psql ON CONFLICT(lvPk, lvDestination) DO UPDATE\n | SET lvPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO LanguageVariantReplicate(lvPk, lvDestination)\n | SELECT DISTINCT LanguageVariant.langVariantUid AS lvPk,\n | ? AS lvDestination\n | FROM LanguageVariant\n | WHERE LanguageVariant.langVariantLct != COALESCE(\n | (SELECT lvVersionId\n | FROM LanguageVariantReplicate\n | WHERE lvPk = LanguageVariant.langVariantUid\n | AND lvDestination = ?), 0) \n | ON CONFLICT(lvPk, lvDestination) DO UPDATE\n | SET lvPending = true\n | \n | \n |")),oP(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},eP.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new rP(this,t,e);return n?i:i.doResume(null)},sP.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},sP.prototype=Object.create(N.prototype),sP.prototype.constructor=sP,sP.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},cP.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},cP.prototype=Object.create(N.prototype),cP.prototype.constructor=cP,cP.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO LanguageVariantReplicate(lvPk, lvDestination)\n | SELECT DISTINCT LanguageVariant.langVariantUid AS lvUid,\n | UserSession.usClientNodeId AS lvDestination\n | FROM ChangeLog\n | JOIN LanguageVariant\n | ON ChangeLog.chTableId = 10\n | AND ChangeLog.chEntityPk = LanguageVariant.langVariantUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND LanguageVariant.langVariantLct != COALESCE(\n | (SELECT lvVersionId\n | FROM LanguageVariantReplicate\n | WHERE lvPk = LanguageVariant.langVariantUid\n | AND lvDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(lvPk, lvDestination) DO UPDATE\n | SET lvPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO LanguageVariantReplicate(lvPk, lvDestination)\n | SELECT DISTINCT LanguageVariant.langVariantUid AS lvUid,\n | UserSession.usClientNodeId AS lvDestination\n | FROM ChangeLog\n | JOIN LanguageVariant\n | ON ChangeLog.chTableId = 10\n | AND ChangeLog.chEntityPk = LanguageVariant.langVariantUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND LanguageVariant.langVariantLct != COALESCE(\n | (SELECT lvVersionId\n | FROM LanguageVariantReplicate\n | WHERE lvPk = LanguageVariant.langVariantUid\n | AND lvDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(lvPk, lvDestination) DO UPDATE\n | SET lvPending = true\n | \n | \n |")),aP,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},eP.prototype.replicateOnChange=function(t,e){var n=new cP(this,t);return e?n:n.doResume(null)},eP.prototype.findByCode_61zpoe$=function(t){return ht(this._db,new st("SELECT * FROM LanguageVariant WHERE countryCode = ? LIMIT 1"),(e=t,function(t){return t.setString_vqvrqt$(1,e),ut(t.executeQuery(),lP)}));var e},uP.prototype.makeSql_6taknv$=function(t){return"INSERT INTO LanguageVariant (langVariantUid, langUid, countryCode, name, langVariantLocalChangeSeqNum, langVariantMasterChangeSeqNum, langVariantLastChangedBy, langVariantLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?)"},uP.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.langVariantUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.langVariantUid),t.setLong_6svq3l$(2,e.langUid),t.setString_vqvrqt$(3,e.countryCode),t.setString_vqvrqt$(4,e.name),t.setLong_6svq3l$(5,e.langVariantLocalChangeSeqNum),t.setLong_6svq3l$(6,e.langVariantMasterChangeSeqNum),t.setInt_vux9f0$(7,e.langVariantLastChangedBy),t.setLong_6svq3l$(8,e.langVariantLct)},uP.$metadata$={kind:c,interfaces:[pt]},eP.$metadata$={kind:c,simpleName:"LanguageVariantDao_JdbcKt",interfaces:[tP]},dP.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},dP.prototype=Object.create(N.prototype),dP.prototype.constructor=dP,dP.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},hP.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new dP(this,t,e);return n?i:i.doResume(null)},pP.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},pP.prototype=Object.create(N.prototype),pP.prototype.constructor=pP,pP.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},hP.prototype.replicateOnChange=function(t,e){var n=new pP(this,t);return e?n:n.doResume(null)},hP.prototype.findByCode_61zpoe$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},hP.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},_P.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_P.prototype=Object.create(N.prototype),_P.prototype.constructor=_P,_P.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.langVariantUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(10,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.langVariantUid=e,this.state_0=3;continue;case 3:if(this.local$entity.langVariantLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.langVariantUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},hP.prototype.insertAsync=function(t,e,n){var i=new _P(this,t,e);return n?i:i.doResume(null)},hP.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},hP.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},hP.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},hP.$metadata$={kind:c,simpleName:"LanguageVariantDao_ReplicateWrapper",interfaces:[tP]},fP.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fP.prototype=Object.create(N.prototype),fP.prototype.constructor=fP,fP.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},mP.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new fP(this,t,e);return n?i:i.doResume(null)},gP.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},gP.prototype=Object.create(N.prototype),gP.prototype.constructor=gP,gP.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},mP.prototype.replicateOnChange=function(t,e){var n=new gP(this,t);return e?n:n.doResume(null)},mP.prototype.findByCode_61zpoe$=function(t){return this._dao.findByCode_61zpoe$(t)},mP.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},$P.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},$P.prototype=Object.create(N.prototype),$P.prototype.constructor=$P,$P.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},mP.prototype.insertAsync=function(t,e,n){var i=new $P(this,t,e);return n?i:i.doResume(null)},mP.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},mP.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},mP.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},mP.$metadata$={kind:c,simpleName:"LanguageVariantDao_Repo",interfaces:[tP]},EP.$metadata$={kind:c,simpleName:"LearnerGroupDao",interfaces:[X6]},yP.prototype.insert_11rb$=function(t){return this._insertAdapterLearnerGroup_.insertAndReturnId_11rb$(t)},bP.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},bP.prototype=Object.create(N.prototype),bP.prototype.constructor=bP,bP.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterLearnerGroup_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yP.prototype.insertAsync=function(t,e,n){var i=new bP(this,t,e);return n?i:i.doResume(null)},yP.prototype.insertList_4ezy5m$=function(t){this._insertAdapterLearnerGroup_.insertList_4ezy5m$(t)},yP.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE LearnerGroup SET learnerGroupName = ?, learnerGroupDescription = ?, learnerGroupActive = ?, learnerGroupMCSN = ?, learnerGroupCSN = ?, learnerGroupLCB = ?, learnerGroupLct = ? WHERE learnerGroupUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setString_vqvrqt$(1,i.learnerGroupName),t.setString_vqvrqt$(2,i.learnerGroupDescription),t.setBoolean_fzusl$(3,i.learnerGroupActive),t.setLong_6svq3l$(4,i.learnerGroupMCSN),t.setLong_6svq3l$(5,i.learnerGroupCSN),t.setInt_vux9f0$(6,i.learnerGroupLCB),t.setLong_6svq3l$(7,i.learnerGroupLct),t.setLong_6svq3l$(8,i.learnerGroupUid),t.executeUpdate()}return t.getConnection().commit(),V}))},yP.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE LearnerGroup SET learnerGroupName = ?, learnerGroupDescription = ?, learnerGroupActive = ?, learnerGroupMCSN = ?, learnerGroupCSN = ?, learnerGroupLCB = ?, learnerGroupLct = ? WHERE learnerGroupUid = ?",(e=t,function(t){return t.setString_vqvrqt$(1,e.learnerGroupName),t.setString_vqvrqt$(2,e.learnerGroupDescription),t.setBoolean_fzusl$(3,e.learnerGroupActive),t.setLong_6svq3l$(4,e.learnerGroupMCSN),t.setLong_6svq3l$(5,e.learnerGroupCSN),t.setInt_vux9f0$(6,e.learnerGroupLCB),t.setLong_6svq3l$(7,e.learnerGroupLct),t.setLong_6svq3l$(8,e.learnerGroupUid),t.executeUpdate()}))},SP.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},SP.prototype=Object.create(N.prototype),SP.prototype.constructor=SP,SP.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},CP.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},CP.prototype=Object.create(N.prototype),CP.prototype.constructor=CP,CP.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO LearnerGroupReplicate(lgPk, lgDestination)\n | SELECT DISTINCT LearnerGroup.learnerGroupUid AS lgPk,\n | ? AS lgDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | 64\n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | JOIN LearnerGroupMember\n | ON LearnerGroupMember.learnerGroupMemberPersonUid = Person.personUid\n | JOIN LearnerGroup\n | ON LearnerGroup.learnerGroupUid = LearnerGroupMember.learnerGroupMemberLgUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND LearnerGroup.learnerGroupLct != COALESCE(\n | (SELECT lgVersionId\n | FROM LearnerGroupReplicate\n | WHERE lgPk = LearnerGroup.learnerGroupUid\n | AND lgDestination = ?), 0) \n | /*psql ON CONFLICT(lgPk, lgDestination) DO UPDATE\n | SET lgPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO LearnerGroupReplicate(lgPk, lgDestination)\n | SELECT DISTINCT LearnerGroup.learnerGroupUid AS lgPk,\n | ? AS lgDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | 64\n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | JOIN LearnerGroupMember\n | ON LearnerGroupMember.learnerGroupMemberPersonUid = Person.personUid\n | JOIN LearnerGroup\n | ON LearnerGroup.learnerGroupUid = LearnerGroupMember.learnerGroupMemberLgUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND LearnerGroup.learnerGroupLct != COALESCE(\n | (SELECT lgVersionId\n | FROM LearnerGroupReplicate\n | WHERE lgPk = LearnerGroup.learnerGroupUid\n | AND lgDestination = ?), 0) \n | ON CONFLICT(lgPk, lgDestination) DO UPDATE\n | SET lgPending = true\n | \n | \n |")),vP(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yP.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new CP(this,t,e);return n?i:i.doResume(null)},NP.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},NP.prototype=Object.create(N.prototype),NP.prototype.constructor=NP,NP.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},LP.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},LP.prototype=Object.create(N.prototype),LP.prototype.constructor=LP,LP.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO LearnerGroupReplicate(lgPk, lgDestination)\n | SELECT DISTINCT LearnerGroup.learnerGroupUid AS lgUid,\n | UserSession.usClientNodeId AS lgDestination\n | FROM ChangeLog\n | JOIN LearnerGroup\n | ON ChangeLog.chTableId = 301\n | AND ChangeLog.chEntityPk = LearnerGroup.learnerGroupUid\n | JOIN LearnerGroupMember\n | ON LearnerGroupMember.learnerGroupMemberLgUid = LearnerGroup.learnerGroupUid\n | JOIN Person\n | ON Person.personUid = LearnerGroupMember.learnerGroupMemberPersonUid\n | \n | JOIN ScopedGrant \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT clazzEnrolmentClazzUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentPersonUid = Person.personUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT schoolMemberSchoolUid\n | FROM SchoolMember\n | WHERE schoolMemberPersonUid = Person.personUid\n | AND schoolMemberActive))\n | )\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 64\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | /*psql ON CONFLICT(lgPk, lgDestination) DO UPDATE\n | SET lgPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO LearnerGroupReplicate(lgPk, lgDestination)\n | SELECT DISTINCT LearnerGroup.learnerGroupUid AS lgUid,\n | UserSession.usClientNodeId AS lgDestination\n | FROM ChangeLog\n | JOIN LearnerGroup\n | ON ChangeLog.chTableId = 301\n | AND ChangeLog.chEntityPk = LearnerGroup.learnerGroupUid\n | JOIN LearnerGroupMember\n | ON LearnerGroupMember.learnerGroupMemberLgUid = LearnerGroup.learnerGroupUid\n | JOIN Person\n | ON Person.personUid = LearnerGroupMember.learnerGroupMemberPersonUid\n | \n | JOIN ScopedGrant \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT clazzEnrolmentClazzUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentPersonUid = Person.personUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT schoolMemberSchoolUid\n | FROM SchoolMember\n | WHERE schoolMemberPersonUid = Person.personUid\n | AND schoolMemberActive))\n | )\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 64\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | ON CONFLICT(lgPk, lgDestination) DO UPDATE\n | SET lgPending = true\n | \n | \n |")),TP,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yP.prototype.replicateOnChange=function(t,e){var n=new LP(this,t);return e?n:n.doResume(null)},OP.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},OP.prototype=Object.create(N.prototype),OP.prototype.constructor=OP,OP.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$contentEntryUid),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,wP);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},AP.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},AP.prototype=Object.create(N.prototype),AP.prototype.constructor=AP,AP.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$LearnerGroupDao_JdbcKt._db,new st(S("\n |SELECT * FROM (SELECT LearnerGroup.* FROM LearnerGroup \n | LEFT JOIN GroupLearningSession ON \n | GroupLearningSession.groupLearningSessionLearnerGroupUid = LearnerGroup.learnerGroupUid \n | WHERE GroupLearningSession.groupLearningSessionContentUid = ?) LIMIT ? OFFSET ?\n ")),RP(this.local$closure$contentEntryUid,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zP.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$LearnerGroupDao_JdbcKt._db,p(["LearnerGroup","GroupLearningSession"]),(n=this.this$LearnerGroupDao_JdbcKt,i=this.closure$contentEntryUid,o=e,r=t,function(t,e){var s=new AP(n,i,o,r,t);return e?s:s.doResume(null)}));var n,i,o,r},IP.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},IP.prototype=Object.create(N.prototype),IP.prototype.constructor=IP,IP.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$contentEntryUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,xP);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},DP.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},DP.prototype=Object.create(N.prototype),DP.prototype.constructor=DP,DP.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$LearnerGroupDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (SELECT LearnerGroup.* FROM LearnerGroup \n | LEFT JOIN GroupLearningSession ON \n | GroupLearningSession.groupLearningSessionLearnerGroupUid = LearnerGroup.learnerGroupUid \n | WHERE GroupLearningSession.groupLearningSessionContentUid = ?) \n ")),UP(this.local$closure$contentEntryUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zP.prototype.getLength=function(){return new ft(this.this$LearnerGroupDao_JdbcKt._db,p(["LearnerGroup","GroupLearningSession"]),(t=this.this$LearnerGroupDao_JdbcKt,e=this.closure$contentEntryUid,function(n,i){var o=new DP(t,e,n);return i?o:o.doResume(null)}));var t,e},zP.$metadata$={kind:c,interfaces:[gt]},yP.prototype.findGroupsForEntryAsync_s8cxhz$=function(t){return new zP(this,t)},yP.prototype.findGroupListForEntry_s8cxhz$=function(t){return ht(this._db,new st(S("\n |SELECT LearnerGroup.* FROM LearnerGroup \n | LEFT JOIN GroupLearningSession ON \n | GroupLearningSession.groupLearningSessionLearnerGroupUid = LearnerGroup.learnerGroupUid \n | WHERE GroupLearningSession.groupLearningSessionContentUid = ?\n ")),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),PP)}));var e},MP.prototype.makeSql_6taknv$=function(t){return"INSERT INTO LearnerGroup (learnerGroupUid, learnerGroupName, learnerGroupDescription, learnerGroupActive, learnerGroupMCSN, learnerGroupCSN, learnerGroupLCB, learnerGroupLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?)"},MP.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.learnerGroupUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.learnerGroupUid),t.setString_vqvrqt$(2,e.learnerGroupName),t.setString_vqvrqt$(3,e.learnerGroupDescription),t.setBoolean_fzusl$(4,e.learnerGroupActive),t.setLong_6svq3l$(5,e.learnerGroupMCSN),t.setLong_6svq3l$(6,e.learnerGroupCSN),t.setInt_vux9f0$(7,e.learnerGroupLCB),t.setLong_6svq3l$(8,e.learnerGroupLct)},MP.$metadata$={kind:c,interfaces:[pt]},yP.$metadata$={kind:c,simpleName:"LearnerGroupDao_JdbcKt",interfaces:[EP]},jP.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},jP.prototype=Object.create(N.prototype),jP.prototype.constructor=jP,jP.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kP.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new jP(this,t,e);return n?i:i.doResume(null)},GP.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},GP.prototype=Object.create(N.prototype),GP.prototype.constructor=GP,GP.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kP.prototype.replicateOnChange=function(t,e){var n=new GP(this,t);return e?n:n.doResume(null)},kP.prototype.findGroupsForEntryAsync_s8cxhz$=function(t){return this._dao_0.findGroupsForEntryAsync_s8cxhz$(t)},kP.prototype.findGroupListForEntry_s8cxhz$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},kP.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},qP.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},qP.prototype=Object.create(N.prototype),qP.prototype.constructor=qP,qP.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.learnerGroupUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(301,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.learnerGroupUid=e,this.state_0=3;continue;case 3:if(this.local$entity.learnerGroupLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.learnerGroupUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kP.prototype.insertAsync=function(t,e,n){var i=new qP(this,t,e);return n?i:i.doResume(null)},kP.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},kP.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},kP.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},kP.$metadata$={kind:c,simpleName:"LearnerGroupDao_ReplicateWrapper",interfaces:[EP]},BP.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},BP.prototype=Object.create(N.prototype),BP.prototype.constructor=BP,BP.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},FP.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new BP(this,t,e);return n?i:i.doResume(null)},WP.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},WP.prototype=Object.create(N.prototype),WP.prototype.constructor=WP,WP.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},FP.prototype.replicateOnChange=function(t,e){var n=new WP(this,t);return e?n:n.doResume(null)},FP.prototype.findGroupsForEntryAsync_s8cxhz$=function(t){return this._dao.findGroupsForEntryAsync_s8cxhz$(t)},FP.prototype.findGroupListForEntry_s8cxhz$=function(t){return this._dao.findGroupListForEntry_s8cxhz$(t)},FP.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},HP.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},HP.prototype=Object.create(N.prototype),HP.prototype.constructor=HP,HP.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},FP.prototype.insertAsync=function(t,e,n){var i=new HP(this,t,e);return n?i:i.doResume(null)},FP.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},FP.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},FP.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},FP.$metadata$={kind:c,simpleName:"LearnerGroupDao_Repo",interfaces:[EP]},VP.$metadata$={kind:c,simpleName:"LearnerGroupMemberDao",interfaces:[X6]},KP.prototype.insert_11rb$=function(t){return this._insertAdapterLearnerGroupMember_.insertAndReturnId_11rb$(t)},XP.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},XP.prototype=Object.create(N.prototype),XP.prototype.constructor=XP,XP.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterLearnerGroupMember_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},KP.prototype.insertAsync=function(t,e,n){var i=new XP(this,t,e);return n?i:i.doResume(null)},KP.prototype.insertList_4ezy5m$=function(t){this._insertAdapterLearnerGroupMember_.insertList_4ezy5m$(t)},KP.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE LearnerGroupMember SET learnerGroupMemberPersonUid = ?, learnerGroupMemberLgUid = ?, learnerGroupMemberRole = ?, learnerGroupMemberActive = ?, learnerGroupMemberMCSN = ?, learnerGroupMemberCSN = ?, learnerGroupMemberLCB = ?, learnerGroupMemberLct = ? WHERE learnerGroupMemberUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.learnerGroupMemberPersonUid),t.setLong_6svq3l$(2,i.learnerGroupMemberLgUid),t.setInt_vux9f0$(3,i.learnerGroupMemberRole),t.setBoolean_fzusl$(4,i.learnerGroupMemberActive),t.setLong_6svq3l$(5,i.learnerGroupMemberMCSN),t.setLong_6svq3l$(6,i.learnerGroupMemberCSN),t.setInt_vux9f0$(7,i.learnerGroupMemberLCB),t.setLong_6svq3l$(8,i.learnerGroupMemberLct),t.setLong_6svq3l$(9,i.learnerGroupMemberUid),t.executeUpdate()}return t.getConnection().commit(),V}))},KP.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE LearnerGroupMember SET learnerGroupMemberPersonUid = ?, learnerGroupMemberLgUid = ?, learnerGroupMemberRole = ?, learnerGroupMemberActive = ?, learnerGroupMemberMCSN = ?, learnerGroupMemberCSN = ?, learnerGroupMemberLCB = ?, learnerGroupMemberLct = ? WHERE learnerGroupMemberUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.learnerGroupMemberPersonUid),t.setLong_6svq3l$(2,e.learnerGroupMemberLgUid),t.setInt_vux9f0$(3,e.learnerGroupMemberRole),t.setBoolean_fzusl$(4,e.learnerGroupMemberActive),t.setLong_6svq3l$(5,e.learnerGroupMemberMCSN),t.setLong_6svq3l$(6,e.learnerGroupMemberCSN),t.setInt_vux9f0$(7,e.learnerGroupMemberLCB),t.setLong_6svq3l$(8,e.learnerGroupMemberLct),t.setLong_6svq3l$(9,e.learnerGroupMemberUid),t.executeUpdate()}))},JP.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},JP.prototype=Object.create(N.prototype),JP.prototype.constructor=JP,JP.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},QP.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},QP.prototype=Object.create(N.prototype),QP.prototype.constructor=QP,QP.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO LearnerGroupMemberReplicate(lgmPk, lgmDestination)\n | SELECT DISTINCT LearnerGroupMember.learnerGroupMemberUid AS lgmPk,\n | ? AS lgmDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | 64\n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | JOIN LearnerGroupMember\n | ON LearnerGroupMember.learnerGroupMemberPersonUid = Person.personUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND LearnerGroupMember.learnerGroupMemberLct != COALESCE(\n | (SELECT lgmVersionId\n | FROM LearnerGroupMemberReplicate\n | WHERE lgmPk = LearnerGroupMember.learnerGroupMemberUid\n | AND lgmDestination = ?), 0) \n | /*psql ON CONFLICT(lgmPk, lgmDestination) DO UPDATE\n | SET lgmPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO LearnerGroupMemberReplicate(lgmPk, lgmDestination)\n | SELECT DISTINCT LearnerGroupMember.learnerGroupMemberUid AS lgmPk,\n | ? AS lgmDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | 64\n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | JOIN LearnerGroupMember\n | ON LearnerGroupMember.learnerGroupMemberPersonUid = Person.personUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND LearnerGroupMember.learnerGroupMemberLct != COALESCE(\n | (SELECT lgmVersionId\n | FROM LearnerGroupMemberReplicate\n | WHERE lgmPk = LearnerGroupMember.learnerGroupMemberUid\n | AND lgmDestination = ?), 0) \n | ON CONFLICT(lgmPk, lgmDestination) DO UPDATE\n | SET lgmPending = true\n | \n | \n |")),YP(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},KP.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new QP(this,t,e);return n?i:i.doResume(null)},ZP.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ZP.prototype=Object.create(N.prototype),ZP.prototype.constructor=ZP,ZP.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},eM.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},eM.prototype=Object.create(N.prototype),eM.prototype.constructor=eM,eM.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO LearnerGroupMemberReplicate(lgmPk, lgmDestination)\n | SELECT DISTINCT LearnerGroupMember.learnerGroupMemberUid AS lgmUid,\n | UserSession.usClientNodeId AS lgmDestination\n | FROM ChangeLog\n | JOIN LearnerGroupMember\n | ON ChangeLog.chTableId = 300\n | AND ChangeLog.chEntityPk = LearnerGroupMember.learnerGroupMemberUid\n | JOIN Person\n | ON Person.personUid = LearnerGroupMember.learnerGroupMemberPersonUid\n | \n | JOIN ScopedGrant \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT clazzEnrolmentClazzUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentPersonUid = Person.personUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT schoolMemberSchoolUid\n | FROM SchoolMember\n | WHERE schoolMemberPersonUid = Person.personUid\n | AND schoolMemberActive))\n | )\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 64\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId\n | FROM SyncNode\n | LIMIT 1)\n | AND LearnerGroupMember.learnerGroupMemberLct != COALESCE(\n | (SELECT lgmVersionId\n | FROM LearnerGroupMemberReplicate\n | WHERE lgmPk = LearnerGroupMember.learnerGroupMemberUid\n | AND lgmDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(lgmPk, lgmDestination) DO UPDATE\n | SET lgmPending = true\n | */\n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO LearnerGroupMemberReplicate(lgmPk, lgmDestination)\n | SELECT DISTINCT LearnerGroupMember.learnerGroupMemberUid AS lgmUid,\n | UserSession.usClientNodeId AS lgmDestination\n | FROM ChangeLog\n | JOIN LearnerGroupMember\n | ON ChangeLog.chTableId = 300\n | AND ChangeLog.chEntityPk = LearnerGroupMember.learnerGroupMemberUid\n | JOIN Person\n | ON Person.personUid = LearnerGroupMember.learnerGroupMemberPersonUid\n | \n | JOIN ScopedGrant \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT clazzEnrolmentClazzUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentPersonUid = Person.personUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT schoolMemberSchoolUid\n | FROM SchoolMember\n | WHERE schoolMemberPersonUid = Person.personUid\n | AND schoolMemberActive))\n | )\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 64\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId\n | FROM SyncNode\n | LIMIT 1)\n | AND LearnerGroupMember.learnerGroupMemberLct != COALESCE(\n | (SELECT lgmVersionId\n | FROM LearnerGroupMemberReplicate\n | WHERE lgmPk = LearnerGroupMember.learnerGroupMemberUid\n | AND lgmDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(lgmPk, lgmDestination) DO UPDATE\n | SET lgmPending = true\n | \n | \n |")),tM,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},KP.prototype.replicateOnChange=function(t,e){var n=new eM(this,t);return e?n:n.doResume(null)},oM.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},oM.prototype=Object.create(N.prototype),oM.prototype.constructor=oM,oM.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$learnerGroupUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$contentEntryUid),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(4,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,iM);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},sM.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},sM.prototype=Object.create(N.prototype),sM.prototype.constructor=sM,sM.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$LearnerGroupMemberDao_JdbcKt._db,new st(S("\n |SELECT * FROM (SELECT LearnerGroupMember.*, Person.* FROM LearnerGroupMember \n | LEFT JOIN Person ON LearnerGroupMember.learnerGroupMemberPersonUid = Person.personUid \n | LEFT JOIN GroupLearningSession ON \n | GroupLearningSession.groupLearningSessionLearnerGroupUid = LearnerGroupMember.learnerGroupMemberLgUid \n | WHERE GroupLearningSession.groupLearningSessionLearnerGroupUid = ? \n | AND GroupLearningSession.groupLearningSessionContentUid = ? \n | ORDER BY learnerGroupMemberRole ASC\n | ) LIMIT ? OFFSET ?\n ")),rM(this.local$closure$learnerGroupUid,this.local$closure$contentEntryUid,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},nM.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$LearnerGroupMemberDao_JdbcKt._db,p(["LearnerGroupMember","Person","GroupLearningSession"]),(n=this.this$LearnerGroupMemberDao_JdbcKt,i=this.closure$learnerGroupUid,o=this.closure$contentEntryUid,r=e,s=t,function(t,e){var a=new sM(n,i,o,r,s,t);return e?a:a.doResume(null)}));var n,i,o,r,s},cM.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},cM.prototype=Object.create(N.prototype),cM.prototype.constructor=cM,cM.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$learnerGroupUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$contentEntryUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,aM);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},uM.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},uM.prototype=Object.create(N.prototype),uM.prototype.constructor=uM,uM.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$LearnerGroupMemberDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (SELECT LearnerGroupMember.*, Person.* FROM LearnerGroupMember \n | LEFT JOIN Person ON LearnerGroupMember.learnerGroupMemberPersonUid = Person.personUid \n | LEFT JOIN GroupLearningSession ON \n | GroupLearningSession.groupLearningSessionLearnerGroupUid = LearnerGroupMember.learnerGroupMemberLgUid \n | WHERE GroupLearningSession.groupLearningSessionLearnerGroupUid = ? \n | AND GroupLearningSession.groupLearningSessionContentUid = ? \n | ORDER BY learnerGroupMemberRole ASC\n | ) \n ")),lM(this.local$closure$learnerGroupUid,this.local$closure$contentEntryUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},nM.prototype.getLength=function(){return new ft(this.this$LearnerGroupMemberDao_JdbcKt._db,p(["LearnerGroupMember","Person","GroupLearningSession"]),(t=this.this$LearnerGroupMemberDao_JdbcKt,e=this.closure$learnerGroupUid,n=this.closure$contentEntryUid,function(i,o){var r=new uM(t,e,n,i);return o?r:r.doResume(null)}));var t,e,n},nM.$metadata$={kind:c,interfaces:[gt]},KP.prototype.findLearnerGroupMembersByGroupIdAndEntry_3pjtqy$=function(t,e){return new nM(this,t,e)},dM.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},dM.prototype=Object.create(N.prototype),dM.prototype.constructor=dM;function DJ(t,e,n){var i=new UJ(t,e);return n?i:i.doResume(null)}function PJ(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function MJ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function kJ(t){return function(e,n,i){var o=new MJ(t,e,n);return i?o:o.doResume(null)}}function jJ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function GJ(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function qJ(t,e,n){var i=new GJ(t,e);return n?i:i.doResume(null)}function FJ(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function BJ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function WJ(t){return function(e,n,i){var o=new BJ(t,e,n);return i?o:o.doResume(null)}}function HJ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function VJ(t){return mt(t,(e=t,function(t){var n=e.getString_61zpoe$("name"),i=0,o=e.getLong_61zpoe$("sgUid");e.wasNull()&&(i=i+1|0);var r=e.getLong_61zpoe$("sgPcsn");e.wasNull()&&(i=i+1|0);var s=e.getLong_61zpoe$("sgLcsn");e.wasNull()&&(i=i+1|0);var a=e.getInt_61zpoe$("sgLcb");e.wasNull()&&(i=i+1|0);var c=e.getLong_61zpoe$("sgLct");e.wasNull()&&(i=i+1|0);var l=e.getInt_61zpoe$("sgTableId");e.wasNull()&&(i=i+1|0);var u=e.getLong_61zpoe$("sgEntityUid");e.wasNull()&&(i=i+1|0);var h=e.getLong_61zpoe$("sgPermissions");e.wasNull()&&(i=i+1|0);var d=e.getLong_61zpoe$("sgGroupUid");e.wasNull()&&(i=i+1|0);var p=e.getInt_61zpoe$("sgIndex");e.wasNull()&&(i=i+1|0);var _=e.getInt_61zpoe$("sgFlags");e.wasNull()&&(i=i+1|0);var m=11===i,f=new Edt;if(f.name=n,!m){var g=new hdt;g.sgUid=o,g.sgPcsn=r,g.sgLcsn=s,g.sgLcb=a,g.sgLct=c,g.sgTableId=l,g.sgEntityUid=u,g.sgPermissions=h,g.sgGroupUid=d,g.sgIndex=p,g.sgFlags=_,f.scopedGrant=g}return f}));var e}function KJ(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$tableId=t,this.local$closure$entityUid=e,this.local$_stmt=n}function XJ(t,e,n){this.this$ScopedGrantDao_JdbcKt=t,this.closure$tableId=e,this.closure$entityUid=n,gt.call(this)}function JJ(t){return mt(t,(e=t,function(t){var n=e.getString_61zpoe$("name"),i=e.getLong_61zpoe$("sgUid"),o=e.getLong_61zpoe$("sgPcsn"),r=e.getLong_61zpoe$("sgLcsn"),s=e.getInt_61zpoe$("sgLcb"),a=e.getLong_61zpoe$("sgLct"),c=e.getInt_61zpoe$("sgTableId"),l=e.getLong_61zpoe$("sgEntityUid"),u=e.getLong_61zpoe$("sgPermissions"),h=e.getLong_61zpoe$("sgGroupUid"),d=e.getInt_61zpoe$("sgIndex"),p=e.getInt_61zpoe$("sgFlags"),_=new Ldt;return _.name=n,_.sgUid=i,_.sgPcsn=o,_.sgLcsn=r,_.sgLcb=s,_.sgLct=a,_.sgTableId=c,_.sgEntityUid=l,_.sgPermissions=u,_.sgGroupUid=h,_.sgIndex=d,_.sgFlags=p,_}));var e}function YJ(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$closure$tableId=t,this.local$closure$entityUid=e,this.local$closure$_limit=n,this.local$closure$_offset=i,this.local$_stmt=o}function QJ(t,e,n,i){return function(o,r,s){var a=new YJ(t,e,n,i,o,r);return s?a:a.doResume(null)}}function ZJ(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$this$ScopedGrantDao_JdbcKt=t,this.local$closure$tableId=e,this.local$closure$entityUid=n,this.local$closure$_limit=i,this.local$closure$_offset=o}function tY(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function eY(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$tableId=t,this.local$closure$entityUid=e,this.local$_stmt=n}function nY(t,e){return function(n,i,o){var r=new eY(t,e,n,i);return o?r:r.doResume(null)}}function iY(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$this$ScopedGrantDao_JdbcKt=t,this.local$closure$tableId=e,this.local$closure$entityUid=n}function oY(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("sgUid"),i=e.getLong_61zpoe$("sgPcsn"),o=e.getLong_61zpoe$("sgLcsn"),r=e.getInt_61zpoe$("sgLcb"),s=e.getLong_61zpoe$("sgLct"),a=e.getInt_61zpoe$("sgTableId"),c=e.getLong_61zpoe$("sgEntityUid"),l=e.getLong_61zpoe$("sgPermissions"),u=e.getLong_61zpoe$("sgGroupUid"),h=e.getInt_61zpoe$("sgIndex"),d=e.getInt_61zpoe$("sgFlags"),p=new hdt;return p.sgUid=n,p.sgPcsn=i,p.sgLcsn=o,p.sgLcb=r,p.sgLct=s,p.sgTableId=a,p.sgEntityUid=c,p.sgPermissions=l,p.sgGroupUid=u,p.sgIndex=h,p.sgFlags=d,p}));var e}function rY(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("sgUid"),i=e.getLong_61zpoe$("sgPcsn"),o=e.getLong_61zpoe$("sgLcsn"),r=e.getInt_61zpoe$("sgLcb"),s=e.getLong_61zpoe$("sgLct"),a=e.getInt_61zpoe$("sgTableId"),c=e.getLong_61zpoe$("sgEntityUid"),l=e.getLong_61zpoe$("sgPermissions"),u=e.getLong_61zpoe$("sgGroupUid"),h=e.getInt_61zpoe$("sgIndex"),d=e.getInt_61zpoe$("sgFlags"),p=new hdt;return p.sgUid=n,p.sgPcsn=i,p.sgLcsn=o,p.sgLcb=r,p.sgLct=s,p.sgTableId=a,p.sgEntityUid=c,p.sgPermissions=l,p.sgGroupUid=u,p.sgIndex=h,p.sgFlags=d,p}));var e}function sY(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$sgUid=t,this.local$_stmt=e}function aY(t){return lt(t,null,(e=t,function(t){var n=e.getString_61zpoe$("name"),i=e.getLong_61zpoe$("sgUid"),o=e.getLong_61zpoe$("sgPcsn"),r=e.getLong_61zpoe$("sgLcsn"),s=e.getInt_61zpoe$("sgLcb"),a=e.getLong_61zpoe$("sgLct"),c=e.getInt_61zpoe$("sgTableId"),l=e.getLong_61zpoe$("sgEntityUid"),u=e.getLong_61zpoe$("sgPermissions"),h=e.getLong_61zpoe$("sgGroupUid"),d=e.getInt_61zpoe$("sgIndex"),p=e.getInt_61zpoe$("sgFlags"),_=new Ldt;return _.name=n,_.sgUid=i,_.sgPcsn=o,_.sgLcsn=r,_.sgLcb=s,_.sgLct=a,_.sgTableId=c,_.sgEntityUid=l,_.sgPermissions=u,_.sgGroupUid=h,_.sgIndex=d,_.sgFlags=p,_}));var e}function cY(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$sgUid=t,this.local$_stmt=e}function lY(t){return function(e,n,i){var o=new cY(t,e,n);return i?o:o.doResume(null)}}function uY(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$ScopedGrantDao_JdbcKt=t,this.local$closure$sgUid=e}function hY(t){pt.call(this,t)}function dY(t,e){pJ.call(this),this._db_0=t,this._dao_0=e}function pY(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function _Y(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function mY(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function fY(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function gY(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function $Y(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function EY(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function yY(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function bY(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$scopedGrant=e}function SY(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_pkManager=void 0,this.local$_generatedPks=void 0,this.local$$receiver=void 0,this.local$element=void 0,this.local$scopedGrantList=e}function vY(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$scopedGrant=e}function CY(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$scopedGrantList=e}function NY(t,e,n,i,o,r){pJ.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function TY(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function LY(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function zY(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function wY(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function OY(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function RY(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function AY(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function xY(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function IY(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$scopedGrant=e}function UY(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$scopedGrantList=e}function DY(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$scopedGrant=e}function PY(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$scopedGrantList=e}function MY(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$tableId=e,this.local$entityUid=n}function kY(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$sgUid=e}function jY(){}function GY(t){jY.call(this),this._db=t,this._insertAdapterScrapeQueueItem_=new JY(this._db)}function qY(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function FY(t){return mt(t,(e=t,function(t){var n=e.getInt_61zpoe$("sqiUid"),i=e.getLong_61zpoe$("sqiContentEntryParentUid"),o=e.getLong_61zpoe$("sqiContentEntryUid"),r=e.getString_61zpoe$("destDir"),s=e.getString_61zpoe$("scrapeUrl"),a=e.getInt_61zpoe$("status"),c=e.getInt_61zpoe$("runId"),l=e.getInt_61zpoe$("itemType"),u=e.getInt_61zpoe$("errorCode"),h=e.getString_61zpoe$("contentType"),d=e.getLong_61zpoe$("timeAdded"),p=e.getLong_61zpoe$("timeStarted"),_=e.getLong_61zpoe$("timeFinished"),m=e.getInt_61zpoe$("priority"),f=e.getBoolean_61zpoe$("overrideEntry"),g=new Udt;return g.sqiUid=n,g.sqiContentEntryParentUid=i,g.sqiContentEntryUid=o,g.destDir=r,g.scrapeUrl=s,g.status=a,g.runId=c,g.itemType=l,g.errorCode=u,g.contentType=h,g.timeAdded=d,g.timeStarted=p,g.timeFinished=_,g.priority=m,g.overrideEntry=f,g}));var e}function BY(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$itemType=t,this.local$_stmt=e}function WY(t){return function(e,n,i){var o=new BY(t,e,n);return i?o:o.doResume(null)}}function HY(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$ScrapeQueueItemDao_JdbcKt=t,this.local$closure$itemType=e}function VY(t){return lt(t,null,(e=t,function(t){var n=e.getInt_61zpoe$("sqiUid"),i=e.getLong_61zpoe$("sqiContentEntryParentUid"),o=e.getLong_61zpoe$("sqiContentEntryUid"),r=e.getString_61zpoe$("destDir"),s=e.getString_61zpoe$("scrapeUrl"),a=e.getInt_61zpoe$("status"),c=e.getInt_61zpoe$("runId"),l=e.getInt_61zpoe$("itemType"),u=e.getInt_61zpoe$("errorCode"),h=e.getString_61zpoe$("contentType"),d=e.getLong_61zpoe$("timeAdded"),p=e.getLong_61zpoe$("timeStarted"),_=e.getLong_61zpoe$("timeFinished"),m=e.getInt_61zpoe$("priority"),f=e.getBoolean_61zpoe$("overrideEntry"),g=new Udt;return g.sqiUid=n,g.sqiContentEntryParentUid=i,g.sqiContentEntryUid=o,g.destDir=r,g.scrapeUrl=s,g.status=a,g.runId=c,g.itemType=l,g.errorCode=u,g.contentType=h,g.timeAdded=d,g.timeStarted=p,g.timeFinished=_,g.priority=m,g.overrideEntry=f,g}));var e}function KY(t){return lt(t,null,(e=t,function(t){var n=e.getInt_61zpoe$("sqiUid"),i=e.getLong_61zpoe$("sqiContentEntryParentUid"),o=e.getLong_61zpoe$("sqiContentEntryUid"),r=e.getString_61zpoe$("destDir"),s=e.getString_61zpoe$("scrapeUrl"),a=e.getInt_61zpoe$("status"),c=e.getInt_61zpoe$("runId"),l=e.getInt_61zpoe$("itemType"),u=e.getInt_61zpoe$("errorCode"),h=e.getString_61zpoe$("contentType"),d=e.getLong_61zpoe$("timeAdded"),p=e.getLong_61zpoe$("timeStarted"),_=e.getLong_61zpoe$("timeFinished"),m=e.getInt_61zpoe$("priority"),f=e.getBoolean_61zpoe$("overrideEntry"),g=new Udt;return g.sqiUid=n,g.sqiContentEntryParentUid=i,g.sqiContentEntryUid=o,g.destDir=r,g.scrapeUrl=s,g.status=a,g.runId=c,g.itemType=l,g.errorCode=u,g.contentType=h,g.timeAdded=d,g.timeStarted=p,g.timeFinished=_,g.priority=m,g.overrideEntry=f,g}));var e}function XY(t){return lt(t,null,(e=t,function(t){var n=e.getInt_61zpoe$("sqiUid"),i=e.getLong_61zpoe$("sqiContentEntryParentUid"),o=e.getLong_61zpoe$("sqiContentEntryUid"),r=e.getString_61zpoe$("destDir"),s=e.getString_61zpoe$("scrapeUrl"),a=e.getInt_61zpoe$("status"),c=e.getInt_61zpoe$("runId"),l=e.getInt_61zpoe$("itemType"),u=e.getInt_61zpoe$("errorCode"),h=e.getString_61zpoe$("contentType"),d=e.getLong_61zpoe$("timeAdded"),p=e.getLong_61zpoe$("timeStarted"),_=e.getLong_61zpoe$("timeFinished"),m=e.getInt_61zpoe$("priority"),f=e.getBoolean_61zpoe$("overrideEntry"),g=0,$=e.getInt_61zpoe$("scrapeRunUid");e.wasNull()&&(g=g+1|0);var E=e.getString_61zpoe$("scrapeType");e.wasNull()&&(g=g+1|0);var y=e.getInt_61zpoe$("scrapeRunStatus");e.wasNull()&&(g=g+1|0);var b=e.getString_61zpoe$("conversionParams");e.wasNull()&&(g=g+1|0);var S=4===g,v=new Fdt;if(v.sqiUid=n,v.sqiContentEntryParentUid=i,v.sqiContentEntryUid=o,v.destDir=r,v.scrapeUrl=s,v.status=a,v.runId=c,v.itemType=l,v.errorCode=u,v.contentType=h,v.timeAdded=d,v.timeStarted=p,v.timeFinished=_,v.priority=m,v.overrideEntry=f,!S){var C=new Ydt;C.scrapeRunUid=$,C.scrapeType=E,C.scrapeRunStatus=y,C.conversionParams=b,v.scrapeRun=C}return v}));var e}function JY(t){pt.call(this,t)}function YY(){}function QY(t){YY.call(this),this._db=t,this._insertAdapterSite_upsert=new gQ(this._db),this._insertAdapterSite_=new $Q(this._db)}function ZY(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$site=e}function tQ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$workspace=t,this.local$_stmt=e}function eQ(t){return function(e,n,i){var o=new tQ(t,e,n);return i?o:o.doResume(null)}}function nQ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$workspace=e}function iQ(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("siteUid"),i=e.getLong_61zpoe$("sitePcsn"),o=e.getLong_61zpoe$("siteLcsn"),r=e.getInt_61zpoe$("siteLcb"),s=e.getLong_61zpoe$("siteLct"),a=e.getString_61zpoe$("siteName"),c=e.getBoolean_61zpoe$("guestLogin"),l=e.getBoolean_61zpoe$("registrationAllowed"),u=e.getString_61zpoe$("authSalt"),h=new rpt;return h.siteUid=n,h.sitePcsn=i,h.siteLcsn=o,h.siteLcb=r,h.siteLct=s,h.siteName=a,h.guestLogin=c,h.registrationAllowed=l,h.authSalt=u,h}));var e}function oQ(t){return ut(t.executeQuery(),iQ)}function rQ(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("siteUid"),i=e.getLong_61zpoe$("sitePcsn"),o=e.getLong_61zpoe$("siteLcsn"),r=e.getInt_61zpoe$("siteLcb"),s=e.getLong_61zpoe$("siteLct"),a=e.getString_61zpoe$("siteName"),c=e.getBoolean_61zpoe$("guestLogin"),l=e.getBoolean_61zpoe$("registrationAllowed"),u=e.getString_61zpoe$("authSalt"),h=new rpt;return h.siteUid=n,h.sitePcsn=i,h.siteLcsn=o,h.siteLcb=r,h.siteLct=s,h.siteName=a,h.guestLogin=c,h.registrationAllowed=l,h.authSalt=u,h}));var e}function sQ(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function aQ(t,e,n){var i=new sQ(t,e);return n?i:i.doResume(null)}function cQ(t){return lt(t,null,(e=t,function(t){return e.getString_za3lpa$(1)}));var e}function lQ(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function uQ(t,e,n){var i=new lQ(t,e);return n?i:i.doResume(null)}function hQ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function dQ(t){return function(e,n,i){var o=new hQ(t,e,n);return i?o:o.doResume(null)}}function pQ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function _Q(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function mQ(t,e,n){var i=new _Q(t,e);return n?i:i.doResume(null)}function fQ(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function gQ(t){pt.call(this,t)}function $Q(t){pt.call(this,t)}function EQ(t,e){YY.call(this),this._db_0=t,this._dao_0=e}function yQ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$site=e}function bQ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$workspace=e}function SQ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function vQ(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function CQ(t,e,n,i,o,r){YY.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function NQ(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function TQ(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function LQ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$site=e}function zQ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$workspace=e}function wQ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function OQ(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function RQ(){}function AQ(t){RQ.call(this),this._db=t,this._insertAdapterSiteTerms_=new lZ(this._db)}function xQ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$siteTerms=e}function IQ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function UQ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$entityList=t,this.local$tmp$=void 0,this.local$_stmt=e}function DQ(t){return function(e,n,i){var o=new UQ(t,e,n);return i?o:o.doResume(null)}}function PQ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function MQ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function kQ(t){return function(e,n,i){var o=new MQ(t,e,n);return i?o:o.doResume(null)}}function jQ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function GQ(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function qQ(t,e,n){var i=new GQ(t,e);return n?i:i.doResume(null)}function FQ(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function BQ(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("sTermsUid"),i=e.getString_61zpoe$("termsHtml"),o=e.getString_61zpoe$("sTermsLang"),r=e.getLong_61zpoe$("sTermsLangUid"),s=e.getBoolean_61zpoe$("sTermsActive"),a=e.getInt_61zpoe$("sTermsLastChangedBy"),c=e.getLong_61zpoe$("sTermsPrimaryCsn"),l=e.getLong_61zpoe$("sTermsLocalCsn"),u=e.getLong_61zpoe$("sTermsLct"),h=new ppt;return h.sTermsUid=n,h.termsHtml=i,h.sTermsLang=o,h.sTermsLangUid=r,h.sTermsActive=s,h.sTermsLastChangedBy=a,h.sTermsPrimaryCsn=c,h.sTermsLocalCsn=l,h.sTermsLct=u,h}));var e}function WQ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$langCode=t,this.local$_stmt=e}function HQ(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("sTermsUid"),i=e.getString_61zpoe$("termsHtml"),o=e.getString_61zpoe$("sTermsLang"),r=e.getLong_61zpoe$("sTermsLangUid"),s=e.getBoolean_61zpoe$("sTermsActive"),a=e.getInt_61zpoe$("sTermsLastChangedBy"),c=e.getLong_61zpoe$("sTermsPrimaryCsn"),l=e.getLong_61zpoe$("sTermsLocalCsn"),u=e.getLong_61zpoe$("sTermsLct"),h=new ppt;return h.sTermsUid=n,h.termsHtml=i,h.sTermsLang=o,h.sTermsLangUid=r,h.sTermsActive=s,h.sTermsLastChangedBy=a,h.sTermsPrimaryCsn=c,h.sTermsLocalCsn=l,h.sTermsLct=u,h}));var e}function VQ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uid=t,this.local$_stmt=e}function KQ(t){this.this$SiteTermsDao_JdbcKt=t,gt.call(this)}function XQ(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("sTermsUid"),i=e.getString_61zpoe$("termsHtml"),o=e.getString_61zpoe$("sTermsLang"),r=e.getLong_61zpoe$("sTermsLangUid"),s=e.getBoolean_61zpoe$("sTermsActive"),a=e.getInt_61zpoe$("sTermsLastChangedBy"),c=e.getLong_61zpoe$("sTermsPrimaryCsn"),l=e.getLong_61zpoe$("sTermsLocalCsn"),u=e.getLong_61zpoe$("sTermsLct"),h=0,d=e.getLong_61zpoe$("langUid");e.wasNull()&&(h=h+1|0);var p=e.getString_61zpoe$("name");e.wasNull()&&(h=h+1|0);var _=e.getString_61zpoe$("iso_639_1_standard");e.wasNull()&&(h=h+1|0);var m=e.getString_61zpoe$("iso_639_2_standard");e.wasNull()&&(h=h+1|0);var f=e.getString_61zpoe$("iso_639_3_standard");e.wasNull()&&(h=h+1|0);var g=e.getString_61zpoe$("Language_Type");e.wasNull()&&(h=h+1|0);var $=e.getBoolean_61zpoe$("languageActive");e.wasNull()&&(h=h+1|0);var E=e.getLong_61zpoe$("langLocalChangeSeqNum");e.wasNull()&&(h=h+1|0);var y=e.getLong_61zpoe$("langMasterChangeSeqNum");e.wasNull()&&(h=h+1|0);var b=e.getInt_61zpoe$("langLastChangedBy");e.wasNull()&&(h=h+1|0);var S=e.getLong_61zpoe$("langLct");e.wasNull()&&(h=h+1|0);var v=11===h,C=new bpt;if(C.sTermsUid=n,C.termsHtml=i,C.sTermsLang=o,C.sTermsLangUid=r,C.sTermsActive=s,C.sTermsLastChangedBy=a,C.sTermsPrimaryCsn=c,C.sTermsLocalCsn=l,C.sTermsLct=u,!v){var N=new kst;N.langUid=d,N.name=p,N.iso_639_1_standard=_,N.iso_639_2_standard=m,N.iso_639_3_standard=f,N.Language_Type=g,N.languageActive=$,N.langLocalChangeSeqNum=E,N.langMasterChangeSeqNum=y,N.langLastChangedBy=b,N.langLct=S,C.stLanguage=N}return C}));var e}function JQ(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$_limit=t,this.local$closure$_offset=e,this.local$_stmt=n}function YQ(t,e){return function(n,i,o){var r=new JQ(t,e,n,i);return o?r:r.doResume(null)}}function QQ(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$this$SiteTermsDao_JdbcKt=t,this.local$closure$_limit=e,this.local$closure$_offset=n}function ZQ(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function tZ(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function eZ(t,e,n){var i=new tZ(t,e);return n?i:i.doResume(null)}function nZ(t,e){N.call(this,e),this.exceptionState_0=1,this.local$this$SiteTermsDao_JdbcKt=t}function iZ(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("sTermsUid"),i=e.getString_61zpoe$("termsHtml"),o=e.getString_61zpoe$("sTermsLang"),r=e.getLong_61zpoe$("sTermsLangUid"),s=e.getBoolean_61zpoe$("sTermsActive"),a=e.getInt_61zpoe$("sTermsLastChangedBy"),c=e.getLong_61zpoe$("sTermsPrimaryCsn"),l=e.getLong_61zpoe$("sTermsLocalCsn"),u=e.getLong_61zpoe$("sTermsLct"),h=0,d=e.getLong_61zpoe$("langUid");e.wasNull()&&(h=h+1|0);var p=e.getString_61zpoe$("name");e.wasNull()&&(h=h+1|0);var _=e.getString_61zpoe$("iso_639_1_standard");e.wasNull()&&(h=h+1|0);var m=e.getString_61zpoe$("iso_639_2_standard");e.wasNull()&&(h=h+1|0);var f=e.getString_61zpoe$("iso_639_3_standard");e.wasNull()&&(h=h+1|0);var g=e.getString_61zpoe$("Language_Type");e.wasNull()&&(h=h+1|0);var $=e.getBoolean_61zpoe$("languageActive");e.wasNull()&&(h=h+1|0);var E=e.getLong_61zpoe$("langLocalChangeSeqNum");e.wasNull()&&(h=h+1|0);var y=e.getLong_61zpoe$("langMasterChangeSeqNum");e.wasNull()&&(h=h+1|0);var b=e.getInt_61zpoe$("langLastChangedBy");e.wasNull()&&(h=h+1|0);var S=e.getLong_61zpoe$("langLct");e.wasNull()&&(h=h+1|0);var v=11===h,C=new bpt;if(C.sTermsUid=n,C.termsHtml=i,C.sTermsLang=o,C.sTermsLangUid=r,C.sTermsActive=s,C.sTermsLastChangedBy=a,C.sTermsPrimaryCsn=c,C.sTermsLocalCsn=l,C.sTermsLct=u,!v){var N=new kst;N.langUid=d,N.name=p,N.iso_639_1_standard=_,N.iso_639_2_standard=m,N.iso_639_3_standard=f,N.Language_Type=g,N.languageActive=$,N.langLocalChangeSeqNum=E,N.langMasterChangeSeqNum=y,N.langLastChangedBy=b,N.langLct=S,C.stLanguage=N}return C}));var e}function oZ(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function rZ(t,e,n){var i=new oZ(t,e);return n?i:i.doResume(null)}function sZ(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$active=t,this.local$closure$changeTime=e,this.local$closure$sTermsUid=n,this.local$_stmt=i}function aZ(t,e,n){return function(i,o,r){var s=new sZ(t,e,n,i,o);return r?s:s.doResume(null)}}function cZ(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$sTermsUid=e,this.local$active=n,this.local$changeTime=i}function lZ(t){pt.call(this,t)}function uZ(t,e){RQ.call(this),this._db_0=t,this._dao_0=e}function hZ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function dZ(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function pZ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$siteTerms=e}function _Z(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$sTermsUid=e,this.local$active=n,this.local$changeTime=i}function mZ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_pkManager=void 0,this.local$_generatedPks=void 0,this.local$$receiver=void 0,this.local$element=void 0,this.local$entityList=e}function fZ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function gZ(t,e,n,i,o,r){RQ.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function $Z(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function EZ(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function yZ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$langCode=e}function bZ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$siteTerms=e}function SZ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$uid=e}function vZ(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function CZ(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$sTermsUid=e,this.local$active=n,this.local$changeTime=i}function NZ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function TZ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function LZ(){}function zZ(t){LZ.call(this),this._db=t,this._insertAdapterStateContentEntity_=new MZ(this._db)}function wZ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function OZ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function RZ(t){return function(e,n,i){var o=new OZ(t,e,n);return i?o:o.doResume(null)}}function AZ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function xZ(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function IZ(t,e,n){var i=new xZ(t,e);return n?i:i.doResume(null)}function UZ(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function DZ(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("stateContentUid"),i=e.getLong_61zpoe$("stateContentStateUid"),o=e.getString_61zpoe$("stateContentKey"),r=e.getString_61zpoe$("stateContentValue"),s=e.getBoolean_61zpoe$("isIsactive"),a=e.getLong_61zpoe$("stateContentMasterChangeSeqNum"),c=e.getLong_61zpoe$("stateContentLocalChangeSeqNum"),l=e.getInt_61zpoe$("stateContentLastChangedBy"),u=e.getLong_61zpoe$("stateContentLct"),h=Ppt();return h.stateContentUid=n,h.stateContentStateUid=i,h.stateContentKey=o,h.stateContentValue=r,h.isIsactive=s,h.stateContentMasterChangeSeqNum=a,h.stateContentLocalChangeSeqNum=c,h.stateContentLastChangedBy=l,h.stateContentLct=u,h}));var e}function PZ(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("stateContentUid"),i=e.getLong_61zpoe$("stateContentStateUid"),o=e.getString_61zpoe$("stateContentKey"),r=e.getString_61zpoe$("stateContentValue"),s=e.getBoolean_61zpoe$("isIsactive"),a=e.getLong_61zpoe$("stateContentMasterChangeSeqNum"),c=e.getLong_61zpoe$("stateContentLocalChangeSeqNum"),l=e.getInt_61zpoe$("stateContentLastChangedBy"),u=e.getLong_61zpoe$("stateContentLct"),h=Ppt();return h.stateContentUid=n,h.stateContentStateUid=i,h.stateContentKey=o,h.stateContentValue=r,h.isIsactive=s,h.stateContentMasterChangeSeqNum=a,h.stateContentLocalChangeSeqNum=c,h.stateContentLastChangedBy=l,h.stateContentLct=u,h}));var e}function MZ(t){pt.call(this,t)}function kZ(t,e){LZ.call(this),this._db_0=t,this._dao_0=e}function jZ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function GZ(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function qZ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function FZ(t,e,n,i,o,r){LZ.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function BZ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function WZ(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function HZ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function VZ(){}function KZ(t){VZ.call(this),this._db=t,this._insertAdapterStateEntity_=new o0(this._db)}function XZ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function JZ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function YZ(t){return function(e,n,i){var o=new JZ(t,e,n);return i?o:o.doResume(null)}}function QZ(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function ZZ(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function t0(t,e,n){var i=new ZZ(t,e);return n?i:i.doResume(null)}function e0(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function n0(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("stateUid"),i=e.getString_61zpoe$("stateId"),o=e.getLong_61zpoe$("agentUid"),r=e.getString_61zpoe$("activityId"),s=e.getString_61zpoe$("registration"),a=e.getBoolean_61zpoe$("isIsactive"),c=e.getLong_61zpoe$("timestamp"),l=e.getLong_61zpoe$("stateMasterChangeSeqNum"),u=e.getLong_61zpoe$("stateLocalChangeSeqNum"),h=e.getInt_61zpoe$("stateLastChangedBy"),d=e.getLong_61zpoe$("stateLct"),p=new Mpt;return p.stateUid=n,p.stateId=i,p.agentUid=o,p.activityId=r,p.registration=s,p.isIsactive=a,p.timestamp=c,p.stateMasterChangeSeqNum=l,p.stateLocalChangeSeqNum=u,p.stateLastChangedBy=h,p.stateLct=d,p}));var e}function i0(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("stateUid"),i=e.getString_61zpoe$("stateId"),o=e.getLong_61zpoe$("agentUid"),r=e.getString_61zpoe$("activityId"),s=e.getString_61zpoe$("registration"),a=e.getBoolean_61zpoe$("isIsactive"),c=e.getLong_61zpoe$("timestamp"),l=e.getLong_61zpoe$("stateMasterChangeSeqNum"),u=e.getLong_61zpoe$("stateLocalChangeSeqNum"),h=e.getInt_61zpoe$("stateLastChangedBy"),d=e.getLong_61zpoe$("stateLct"),p=new Mpt;return p.stateUid=n,p.stateId=i,p.agentUid=o,p.activityId=r,p.registration=s,p.isIsactive=a,p.timestamp=c,p.stateMasterChangeSeqNum=l,p.stateLocalChangeSeqNum=u,p.stateLastChangedBy=h,p.stateLct=d,p}));var e}function o0(t){pt.call(this,t)}function r0(t,e){VZ.call(this),this._db_0=t,this._dao_0=e}function s0(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function a0(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function c0(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function l0(t,e,n,i,o,r){VZ.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function u0(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function h0(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function d0(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function p0(){}function _0(t){p0.call(this),this._db=t,this._insertAdapterStatementEntity_=new O1(this._db)}function m0(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function f0(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function g0(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function $0(t){return function(e,n,i){var o=new g0(t,e,n);return i?o:o.doResume(null)}}function E0(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function y0(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function b0(t,e,n){var i=new y0(t,e);return n?i:i.doResume(null)}function S0(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function v0(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("statementUid"),i=e.getString_61zpoe$("statementId"),o=e.getLong_61zpoe$("statementPersonUid"),r=e.getLong_61zpoe$("statementVerbUid"),s=e.getLong_61zpoe$("xObjectUid"),a=e.getLong_61zpoe$("subStatementActorUid"),c=e.getLong_61zpoe$("substatementVerbUid"),l=e.getLong_61zpoe$("subStatementObjectUid"),u=e.getLong_61zpoe$("agentUid"),h=e.getLong_61zpoe$("instructorUid"),d=e.getLong_61zpoe$("authorityUid"),p=e.getLong_61zpoe$("teamUid"),_=e.getBoolean_61zpoe$("resultCompletion"),m=e.getByte_61zpoe$("resultSuccess"),f=e.getFloat_61zpoe$("resultScoreScaled"),g=e.getLong_61zpoe$("resultScoreRaw"),$=e.getLong_61zpoe$("resultScoreMin"),E=e.getLong_61zpoe$("resultScoreMax"),y=e.getLong_61zpoe$("resultDuration"),b=e.getString_61zpoe$("resultResponse"),S=e.getLong_61zpoe$("timestamp"),v=e.getLong_61zpoe$("stored"),C=e.getString_61zpoe$("contextRegistration"),N=e.getString_61zpoe$("contextPlatform"),T=e.getString_61zpoe$("contextStatementId"),L=e.getString_61zpoe$("fullStatement"),z=e.getLong_61zpoe$("statementMasterChangeSeqNum"),w=e.getLong_61zpoe$("statementLocalChangeSeqNum"),O=e.getInt_61zpoe$("statementLastChangedBy"),R=e.getLong_61zpoe$("statementLct"),A=e.getInt_61zpoe$("extensionProgress"),x=e.getBoolean_61zpoe$("contentEntryRoot"),I=e.getLong_61zpoe$("statementContentEntryUid"),U=e.getLong_61zpoe$("statementLearnerGroupUid"),D=e.getLong_61zpoe$("statementClazzUid"),P=new Hpt;return P.statementUid=n,P.statementId=i,P.statementPersonUid=o,P.statementVerbUid=r,P.xObjectUid=s,P.subStatementActorUid=a,P.substatementVerbUid=c,P.subStatementObjectUid=l,P.agentUid=u,P.instructorUid=h,P.authorityUid=d,P.teamUid=p,P.resultCompletion=_,P.resultSuccess=m,P.resultScoreScaled=f,P.resultScoreRaw=g,P.resultScoreMin=$,P.resultScoreMax=E,P.resultDuration=y,P.resultResponse=b,P.timestamp=S,P.stored=v,P.contextRegistration=C,P.contextPlatform=N,P.contextStatementId=T,P.fullStatement=L,P.statementMasterChangeSeqNum=z,P.statementLocalChangeSeqNum=w,P.statementLastChangedBy=O,P.statementLct=R,P.extensionProgress=A,P.contentEntryRoot=x,P.statementContentEntryUid=I,P.statementLearnerGroupUid=U,P.statementClazzUid=D,P}));var e}function C0(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function N0(t,e,n){var i=new C0(t,e);return n?i:i.doResume(null)}function T0(t,e){N.call(this,e),this.exceptionState_0=1,this.local$this$StatementDao_JdbcKt=t}function L0(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("statementUid"),i=e.getString_61zpoe$("statementId"),o=e.getLong_61zpoe$("statementPersonUid"),r=e.getLong_61zpoe$("statementVerbUid"),s=e.getLong_61zpoe$("xObjectUid"),a=e.getLong_61zpoe$("subStatementActorUid"),c=e.getLong_61zpoe$("substatementVerbUid"),l=e.getLong_61zpoe$("subStatementObjectUid"),u=e.getLong_61zpoe$("agentUid"),h=e.getLong_61zpoe$("instructorUid"),d=e.getLong_61zpoe$("authorityUid"),p=e.getLong_61zpoe$("teamUid"),_=e.getBoolean_61zpoe$("resultCompletion"),m=e.getByte_61zpoe$("resultSuccess"),f=e.getFloat_61zpoe$("resultScoreScaled"),g=e.getLong_61zpoe$("resultScoreRaw"),$=e.getLong_61zpoe$("resultScoreMin"),E=e.getLong_61zpoe$("resultScoreMax"),y=e.getLong_61zpoe$("resultDuration"),b=e.getString_61zpoe$("resultResponse"),S=e.getLong_61zpoe$("timestamp"),v=e.getLong_61zpoe$("stored"),C=e.getString_61zpoe$("contextRegistration"),N=e.getString_61zpoe$("contextPlatform"),T=e.getString_61zpoe$("contextStatementId"),L=e.getString_61zpoe$("fullStatement"),z=e.getLong_61zpoe$("statementMasterChangeSeqNum"),w=e.getLong_61zpoe$("statementLocalChangeSeqNum"),O=e.getInt_61zpoe$("statementLastChangedBy"),R=e.getLong_61zpoe$("statementLct"),A=e.getInt_61zpoe$("extensionProgress"),x=e.getBoolean_61zpoe$("contentEntryRoot"),I=e.getLong_61zpoe$("statementContentEntryUid"),U=e.getLong_61zpoe$("statementLearnerGroupUid"),D=e.getLong_61zpoe$("statementClazzUid"),P=new Hpt;return P.statementUid=n,P.statementId=i,P.statementPersonUid=o,P.statementVerbUid=r,P.xObjectUid=s,P.subStatementActorUid=a,P.substatementVerbUid=c,P.subStatementObjectUid=l,P.agentUid=u,P.instructorUid=h,P.authorityUid=d,P.teamUid=p,P.resultCompletion=_,P.resultSuccess=m,P.resultScoreScaled=f,P.resultScoreRaw=g,P.resultScoreMin=$,P.resultScoreMax=E,P.resultDuration=y,P.resultResponse=b,P.timestamp=S,P.stored=v,P.contextRegistration=C,P.contextPlatform=N,P.contextStatementId=T,P.fullStatement=L,P.statementMasterChangeSeqNum=z,P.statementLocalChangeSeqNum=w,P.statementLastChangedBy=O,P.statementLct=R,P.extensionProgress=A,P.contentEntryRoot=x,P.statementContentEntryUid=I,P.statementLearnerGroupUid=U,P.statementClazzUid=D,P}));var e}function z0(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("statementUid"),i=e.getString_61zpoe$("statementId"),o=e.getLong_61zpoe$("statementPersonUid"),r=e.getLong_61zpoe$("statementVerbUid"),s=e.getLong_61zpoe$("xObjectUid"),a=e.getLong_61zpoe$("subStatementActorUid"),c=e.getLong_61zpoe$("substatementVerbUid"),l=e.getLong_61zpoe$("subStatementObjectUid"),u=e.getLong_61zpoe$("agentUid"),h=e.getLong_61zpoe$("instructorUid"),d=e.getLong_61zpoe$("authorityUid"),p=e.getLong_61zpoe$("teamUid"),_=e.getBoolean_61zpoe$("resultCompletion"),m=e.getByte_61zpoe$("resultSuccess"),f=e.getFloat_61zpoe$("resultScoreScaled"),g=e.getLong_61zpoe$("resultScoreRaw"),$=e.getLong_61zpoe$("resultScoreMin"),E=e.getLong_61zpoe$("resultScoreMax"),y=e.getLong_61zpoe$("resultDuration"),b=e.getString_61zpoe$("resultResponse"),S=e.getLong_61zpoe$("timestamp"),v=e.getLong_61zpoe$("stored"),C=e.getString_61zpoe$("contextRegistration"),N=e.getString_61zpoe$("contextPlatform"),T=e.getString_61zpoe$("contextStatementId"),L=e.getString_61zpoe$("fullStatement"),z=e.getLong_61zpoe$("statementMasterChangeSeqNum"),w=e.getLong_61zpoe$("statementLocalChangeSeqNum"),O=e.getInt_61zpoe$("statementLastChangedBy"),R=e.getLong_61zpoe$("statementLct"),A=e.getInt_61zpoe$("extensionProgress"),x=e.getBoolean_61zpoe$("contentEntryRoot"),I=e.getLong_61zpoe$("statementContentEntryUid"),U=e.getLong_61zpoe$("statementLearnerGroupUid"),D=e.getLong_61zpoe$("statementClazzUid"),P=new Hpt;return P.statementUid=n,P.statementId=i,P.statementPersonUid=o,P.statementVerbUid=r,P.xObjectUid=s,P.subStatementActorUid=a,P.substatementVerbUid=c,P.subStatementObjectUid=l,P.agentUid=u,P.instructorUid=h,P.authorityUid=d,P.teamUid=p,P.resultCompletion=_,P.resultSuccess=m,P.resultScoreScaled=f,P.resultScoreRaw=g,P.resultScoreMin=$,P.resultScoreMax=E,P.resultDuration=y,P.resultResponse=b,P.timestamp=S,P.stored=v,P.contextRegistration=C,P.contextPlatform=N,P.contextStatementId=T,P.fullStatement=L,P.statementMasterChangeSeqNum=z,P.statementLocalChangeSeqNum=w,P.statementLastChangedBy=O,P.statementLct=R,P.extensionProgress=A,P.contentEntryRoot=x,P.statementContentEntryUid=I,P.statementLearnerGroupUid=U,P.statementClazzUid=D,P}));var e}function w0(t){return mt(t,(e=t,function(t){var n=e.getFloat_61zpoe$("yAxis"),i=e.getString_61zpoe$("xAxis"),o=e.getString_61zpoe$("subgroup"),r=new c_t;return r.yAxis=n,r.xAxis=i,r.subgroup=o,r}));var e}function O0(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$query=t,this.local$this$StatementDao_JdbcKt=e,this.local$_stmt=n}function R0(t,e){this.closure$query=t,this.this$StatementDao_JdbcKt=e,gt.call(this)}function A0(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("statementUid"),i=e.getString_61zpoe$("statementId"),o=e.getLong_61zpoe$("statementPersonUid"),r=e.getLong_61zpoe$("statementVerbUid"),s=e.getLong_61zpoe$("xObjectUid"),a=e.getLong_61zpoe$("subStatementActorUid"),c=e.getLong_61zpoe$("substatementVerbUid"),l=e.getLong_61zpoe$("subStatementObjectUid"),u=e.getLong_61zpoe$("agentUid"),h=e.getLong_61zpoe$("instructorUid"),d=e.getLong_61zpoe$("authorityUid"),p=e.getLong_61zpoe$("teamUid"),_=e.getBoolean_61zpoe$("resultCompletion"),m=e.getByte_61zpoe$("resultSuccess"),f=e.getFloat_61zpoe$("resultScoreScaled"),g=e.getLong_61zpoe$("resultScoreRaw"),$=e.getLong_61zpoe$("resultScoreMin"),E=e.getLong_61zpoe$("resultScoreMax"),y=e.getLong_61zpoe$("resultDuration"),b=e.getString_61zpoe$("resultResponse"),S=e.getLong_61zpoe$("timestamp"),v=e.getLong_61zpoe$("stored"),C=e.getString_61zpoe$("contextRegistration"),N=e.getString_61zpoe$("contextPlatform"),T=e.getString_61zpoe$("contextStatementId"),L=e.getString_61zpoe$("fullStatement"),z=e.getLong_61zpoe$("statementMasterChangeSeqNum"),w=e.getLong_61zpoe$("statementLocalChangeSeqNum"),O=e.getInt_61zpoe$("statementLastChangedBy"),R=e.getLong_61zpoe$("statementLct"),A=e.getInt_61zpoe$("extensionProgress"),x=e.getBoolean_61zpoe$("contentEntryRoot"),I=e.getLong_61zpoe$("statementContentEntryUid"),U=e.getLong_61zpoe$("statementLearnerGroupUid"),D=e.getLong_61zpoe$("statementClazzUid"),P=0,M=e.getLong_61zpoe$("personUid");e.wasNull()&&(P=P+1|0);var k=e.getString_61zpoe$("username");e.wasNull()&&(P=P+1|0);var j=e.getString_61zpoe$("firstNames");e.wasNull()&&(P=P+1|0);var G=e.getString_61zpoe$("lastName");e.wasNull()&&(P=P+1|0);var q=e.getString_61zpoe$("emailAddr");e.wasNull()&&(P=P+1|0);var F=e.getString_61zpoe$("phoneNum");e.wasNull()&&(P=P+1|0);var B=e.getInt_61zpoe$("gender");e.wasNull()&&(P=P+1|0);var W=e.getBoolean_61zpoe$("active");e.wasNull()&&(P=P+1|0);var H=e.getBoolean_61zpoe$("admin");e.wasNull()&&(P=P+1|0);var V=e.getString_61zpoe$("personNotes");e.wasNull()&&(P=P+1|0);var K=e.getString_61zpoe$("fatherName");e.wasNull()&&(P=P+1|0);var X=e.getString_61zpoe$("fatherNumber");e.wasNull()&&(P=P+1|0);var J=e.getString_61zpoe$("motherName");e.wasNull()&&(P=P+1|0);var Y=e.getString_61zpoe$("motherNum");e.wasNull()&&(P=P+1|0);var Q=e.getLong_61zpoe$("dateOfBirth");e.wasNull()&&(P=P+1|0);var Z=e.getString_61zpoe$("personAddress");e.wasNull()&&(P=P+1|0);var tt=e.getString_61zpoe$("personOrgId");e.wasNull()&&(P=P+1|0);var et=e.getLong_61zpoe$("personGroupUid");e.wasNull()&&(P=P+1|0);var nt=e.getLong_61zpoe$("personMasterChangeSeqNum");e.wasNull()&&(P=P+1|0);var it=e.getLong_61zpoe$("personLocalChangeSeqNum");e.wasNull()&&(P=P+1|0);var ot=e.getInt_61zpoe$("personLastChangedBy");e.wasNull()&&(P=P+1|0);var rt=e.getLong_61zpoe$("personLct");e.wasNull()&&(P=P+1|0);var st=e.getString_61zpoe$("personCountry");e.wasNull()&&(P=P+1|0);var at=e.getInt_61zpoe$("personType");e.wasNull()&&(P=P+1|0);var ct=24===P,lt=0,ut=e.getLong_61zpoe$("statementLangMapUid");e.wasNull()&&(lt=lt+1|0);var ht=e.getLong_61zpoe$("verbLangMapUid");e.wasNull()&&(lt=lt+1|0);var dt=e.getLong_61zpoe$("objectLangMapUid");e.wasNull()&&(lt=lt+1|0);var pt=e.getLong_61zpoe$("languageLangMapUid");e.wasNull()&&(lt=lt+1|0);var _t=e.getLong_61zpoe$("languageVariantLangMapUid");e.wasNull()&&(lt=lt+1|0);var mt=e.getString_61zpoe$("valueLangMap");e.wasNull()&&(lt=lt+1|0);var ft=e.getInt_61zpoe$("statementLangMapMasterCsn");e.wasNull()&&(lt=lt+1|0);var gt=e.getInt_61zpoe$("statementLangMapLocalCsn");e.wasNull()&&(lt=lt+1|0);var $t=e.getInt_61zpoe$("statementLangMapLcb");e.wasNull()&&(lt=lt+1|0);var Et=e.getLong_61zpoe$("statementLangMapLct");e.wasNull()&&(lt=lt+1|0);var yt=10===lt,bt=new t_t;if(bt.statementUid=n,bt.statementId=i,bt.statementPersonUid=o,bt.statementVerbUid=r,bt.xObjectUid=s,bt.subStatementActorUid=a,bt.substatementVerbUid=c,bt.subStatementObjectUid=l,bt.agentUid=u,bt.instructorUid=h,bt.authorityUid=d,bt.teamUid=p,bt.resultCompletion=_,bt.resultSuccess=m,bt.resultScoreScaled=f,bt.resultScoreRaw=g,bt.resultScoreMin=$,bt.resultScoreMax=E,bt.resultDuration=y,bt.resultResponse=b,bt.timestamp=S,bt.stored=v,bt.contextRegistration=C,bt.contextPlatform=N,bt.contextStatementId=T,bt.fullStatement=L,bt.statementMasterChangeSeqNum=z,bt.statementLocalChangeSeqNum=w,bt.statementLastChangedBy=O,bt.statementLct=R,bt.extensionProgress=A,bt.contentEntryRoot=x,bt.statementContentEntryUid=I,bt.statementLearnerGroupUid=U,bt.statementClazzUid=D,!ct){var St=new zct;St.personUid=M,St.username=k,St.firstNames=j,St.lastName=G,St.emailAddr=q,St.phoneNum=F,St.gender=B,St.active=W,St.admin=H,St.personNotes=V,St.fatherName=K,St.fatherNumber=X,St.motherName=J,St.motherNum=Y,St.dateOfBirth=Q,St.personAddress=Z,St.personOrgId=tt,St.personGroupUid=et,St.personMasterChangeSeqNum=nt,St.personLocalChangeSeqNum=it,St.personLastChangedBy=ot,St.personLct=rt,St.personCountry=st,St.personType=at,bt.person=St}if(!yt){var vt=new Emt;vt.statementLangMapUid=ut,vt.verbLangMapUid=ht,vt.objectLangMapUid=dt,vt.languageLangMapUid=pt,vt.languageVariantLangMapUid=_t,vt.valueLangMap=mt,vt.statementLangMapMasterCsn=ft,vt.statementLangMapLocalCsn=gt,vt.statementLangMapLcb=$t,vt.statementLangMapLct=Et,bt.xlangMapEntry=vt}return bt}));var e}function x0(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$query=t,this.local$this$StatementDao_JdbcKt=e,this.local$_stmt=n}function I0(t,e){return function(n,i,o){var r=new x0(t,e,n,i);return o?r:r.doResume(null)}}function U0(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$StatementDao_JdbcKt=t,this.local$closure$query=e}function D0(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function P0(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$query=t,this.local$this$StatementDao_JdbcKt=e,this.local$_stmt=n}function M0(t,e){return function(n,i,o){var r=new P0(t,e,n,i);return o?r:r.doResume(null)}}function k0(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$StatementDao_JdbcKt=t,this.local$closure$query=e}function j0(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("personUid"),i=e.getString_61zpoe$("username"),o=e.getString_61zpoe$("firstNames"),r=e.getString_61zpoe$("lastName"),s=e.getString_61zpoe$("emailAddr"),a=e.getString_61zpoe$("phoneNum"),c=e.getInt_61zpoe$("gender"),l=e.getBoolean_61zpoe$("active"),u=e.getBoolean_61zpoe$("admin"),h=e.getString_61zpoe$("personNotes"),d=e.getString_61zpoe$("fatherName"),p=e.getString_61zpoe$("fatherNumber"),_=e.getString_61zpoe$("motherName"),m=e.getString_61zpoe$("motherNum"),f=e.getLong_61zpoe$("dateOfBirth"),g=e.getString_61zpoe$("personAddress"),$=e.getString_61zpoe$("personOrgId"),E=e.getLong_61zpoe$("personGroupUid"),y=e.getLong_61zpoe$("personMasterChangeSeqNum"),b=e.getLong_61zpoe$("personLocalChangeSeqNum"),S=e.getInt_61zpoe$("personLastChangedBy"),v=e.getLong_61zpoe$("personLct"),C=e.getString_61zpoe$("personCountry"),N=e.getInt_61zpoe$("personType"),T=new zct;return T.personUid=n,T.username=i,T.firstNames=o,T.lastName=r,T.emailAddr=s,T.phoneNum=a,T.gender=c,T.active=l,T.admin=u,T.personNotes=h,T.fatherName=d,T.fatherNumber=p,T.motherName=_,T.motherNum=m,T.dateOfBirth=f,T.personAddress=g,T.personOrgId=$,T.personGroupUid=E,T.personMasterChangeSeqNum=y,T.personLocalChangeSeqNum=b,T.personLastChangedBy=S,T.personLct=v,T.personCountry=C,T.personType=N,T}));var e}function G0(t){return ut(t.executeQuery(),j0)}function q0(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("statementLangMapUid"),i=e.getLong_61zpoe$("verbLangMapUid"),o=e.getLong_61zpoe$("objectLangMapUid"),r=e.getLong_61zpoe$("languageLangMapUid"),s=e.getLong_61zpoe$("languageVariantLangMapUid"),a=e.getString_61zpoe$("valueLangMap"),c=e.getInt_61zpoe$("statementLangMapMasterCsn"),l=e.getInt_61zpoe$("statementLangMapLocalCsn"),u=e.getInt_61zpoe$("statementLangMapLcb"),h=e.getLong_61zpoe$("statementLangMapLct"),d=new Emt;return d.statementLangMapUid=n,d.verbLangMapUid=i,d.objectLangMapUid=o,d.languageLangMapUid=r,d.languageVariantLangMapUid=s,d.valueLangMap=a,d.statementLangMapMasterCsn=c,d.statementLangMapLocalCsn=l,d.statementLangMapLcb=u,d.statementLangMapLct=h,d}));var e}function F0(t){return ut(t.executeQuery(),q0)}function B0(t,e,n,i,o){this.this$StatementDao_JdbcKt=t,this.closure$accountPersonUid=e,this.closure$contentEntryUid=n,this.closure$searchText=i,this.closure$sortOrder=o,gt.call(this)}function W0(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("personUid"),i=e.getString_61zpoe$("firstNames"),o=e.getString_61zpoe$("lastName"),r=e.getInt_61zpoe$("attempts"),s=e.getLong_61zpoe$("startDate"),a=e.getLong_61zpoe$("endDate"),c=e.getLong_61zpoe$("duration"),l=e.getString_61zpoe$("latestPrivateComment"),u=e.getInt_61zpoe$("fileSubmissionStatus"),h=0,d=e.getInt_61zpoe$("resultScore");e.wasNull()&&(h=h+1|0);var p=e.getInt_61zpoe$("resultMax");e.wasNull()&&(h=h+1|0);var _=e.getFloat_61zpoe$("resultScaled");e.wasNull()&&(h=h+1|0);var m=e.getInt_61zpoe$("resultWeight");e.wasNull()&&(h=h+1|0);var f=e.getBoolean_61zpoe$("contentComplete");e.wasNull()&&(h=h+1|0);var g=e.getInt_61zpoe$("progress");e.wasNull()&&(h=h+1|0);var $=e.getByte_61zpoe$("success");e.wasNull()&&(h=h+1|0);var E=e.getInt_61zpoe$("penalty");e.wasNull()&&(h=h+1|0);var y=e.getInt_61zpoe$("totalContent");e.wasNull()&&(h=h+1|0);var b=e.getInt_61zpoe$("totalCompletedContent");e.wasNull()&&(h=h+1|0);var S=10===h,v=new Blt;if(v.personUid=n,v.firstNames=i,v.lastName=o,v.attempts=r,v.startDate=s,v.endDate=a,v.duration=c,v.latestPrivateComment=l,v.fileSubmissionStatus=u,!S){var C=new qet;C.resultScore=d,C.resultMax=p,C.resultScaled=_,C.resultWeight=m,C.contentComplete=f,C.progress=g,C.success=$,C.penalty=E,C.totalContent=y,C.totalCompletedContent=b,v.scoreProgress=C}return v}));var e}function H0(t,e,n,i,o,r,s,a){N.call(this,a),this.exceptionState_0=1,this.local$closure$accountPersonUid=t,this.local$closure$contentEntryUid=e,this.local$closure$searchText=n,this.local$closure$sortOrder=i,this.local$closure$_limit=o,this.local$closure$_offset=r,this.local$_stmt=s}function V0(t,e,n,i,o,r){return function(s,a,c){var l=new H0(t,e,n,i,o,r,s,a);return c?l:l.doResume(null)}}function K0(t,e,n,i,o,r,s,a){N.call(this,a),this.exceptionState_0=1,this.local$this$StatementDao_JdbcKt=t,this.local$closure$accountPersonUid=e,this.local$closure$contentEntryUid=n,this.local$closure$searchText=i,this.local$closure$sortOrder=o,this.local$closure$_limit=r,this.local$closure$_offset=s}function X0(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function J0(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$closure$accountPersonUid=t,this.local$closure$contentEntryUid=e,this.local$closure$searchText=n,this.local$closure$sortOrder=i,this.local$_stmt=o}function Y0(t,e,n,i){return function(o,r,s){var a=new J0(t,e,n,i,o,r);return s?a:a.doResume(null)}}function Q0(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$this$StatementDao_JdbcKt=t,this.local$closure$accountPersonUid=e,this.local$closure$contentEntryUid=n,this.local$closure$searchText=i,this.local$closure$sortOrder=o}function Z0(t){return lt(t,null,(e=t,function(t){var n=e.getInt_61zpoe$("resultScore"),i=e.getInt_61zpoe$("resultMax"),o=e.getFloat_61zpoe$("resultScaled"),r=e.getInt_61zpoe$("resultWeight"),s=e.getBoolean_61zpoe$("contentComplete"),a=e.getInt_61zpoe$("progress"),c=e.getByte_61zpoe$("success"),l=e.getInt_61zpoe$("penalty"),u=e.getInt_61zpoe$("totalContent"),h=e.getInt_61zpoe$("totalCompletedContent"),d=new qet;return d.resultScore=n,d.resultMax=i,d.resultScaled=o,d.resultWeight=r,d.contentComplete=s,d.progress=a,d.success=c,d.penalty=l,d.totalContent=u,d.totalCompletedContent=h,d}));var e}function t1(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$accountPersonUid=t,this.local$closure$contentEntryUid=e,this.local$_stmt=n}function e1(t){return lt(t,X,(e=t,function(t){return e.getLong_za3lpa$(1)}));var e}function n1(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$assignmentUid=t,this.local$closure$currentStudentUid=e,this.local$_stmt=n}function i1(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("statementUid"),i=e.getString_61zpoe$("statementId"),o=e.getLong_61zpoe$("statementPersonUid"),r=e.getLong_61zpoe$("statementVerbUid"),s=e.getLong_61zpoe$("xObjectUid"),a=e.getLong_61zpoe$("subStatementActorUid"),c=e.getLong_61zpoe$("substatementVerbUid"),l=e.getLong_61zpoe$("subStatementObjectUid"),u=e.getLong_61zpoe$("agentUid"),h=e.getLong_61zpoe$("instructorUid"),d=e.getLong_61zpoe$("authorityUid"),p=e.getLong_61zpoe$("teamUid"),_=e.getBoolean_61zpoe$("resultCompletion"),m=e.getByte_61zpoe$("resultSuccess"),f=e.getFloat_61zpoe$("resultScoreScaled"),g=e.getLong_61zpoe$("resultScoreRaw"),$=e.getLong_61zpoe$("resultScoreMin"),E=e.getLong_61zpoe$("resultScoreMax"),y=e.getLong_61zpoe$("resultDuration"),b=e.getString_61zpoe$("resultResponse"),S=e.getLong_61zpoe$("timestamp"),v=e.getLong_61zpoe$("stored"),C=e.getString_61zpoe$("contextRegistration"),N=e.getString_61zpoe$("contextPlatform"),T=e.getString_61zpoe$("contextStatementId"),L=e.getString_61zpoe$("fullStatement"),z=e.getLong_61zpoe$("statementMasterChangeSeqNum"),w=e.getLong_61zpoe$("statementLocalChangeSeqNum"),O=e.getInt_61zpoe$("statementLastChangedBy"),R=e.getLong_61zpoe$("statementLct"),A=e.getInt_61zpoe$("extensionProgress"),x=e.getBoolean_61zpoe$("contentEntryRoot"),I=e.getLong_61zpoe$("statementContentEntryUid"),U=e.getLong_61zpoe$("statementLearnerGroupUid"),D=e.getLong_61zpoe$("statementClazzUid"),P=new Hpt;return P.statementUid=n,P.statementId=i,P.statementPersonUid=o,P.statementVerbUid=r,P.xObjectUid=s,P.subStatementActorUid=a,P.substatementVerbUid=c,P.subStatementObjectUid=l,P.agentUid=u,P.instructorUid=h,P.authorityUid=d,P.teamUid=p,P.resultCompletion=_,P.resultSuccess=m,P.resultScoreScaled=f,P.resultScoreRaw=g,P.resultScoreMin=$,P.resultScoreMax=E,P.resultDuration=y,P.resultResponse=b,P.timestamp=S,P.stored=v,P.contextRegistration=C,P.contextPlatform=N,P.contextStatementId=T,P.fullStatement=L,P.statementMasterChangeSeqNum=z,P.statementLocalChangeSeqNum=w,P.statementLastChangedBy=O,P.statementLct=R,P.extensionProgress=A,P.contentEntryRoot=x,P.statementContentEntryUid=I,P.statementLearnerGroupUid=U,P.statementClazzUid=D,P}));var e}function o1(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$studentUid=t,this.local$closure$assignmentObjectUid=e,this.local$_stmt=n}function r1(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("statementUid"),i=e.getString_61zpoe$("statementId"),o=e.getLong_61zpoe$("statementPersonUid"),r=e.getLong_61zpoe$("statementVerbUid"),s=e.getLong_61zpoe$("xObjectUid"),a=e.getLong_61zpoe$("subStatementActorUid"),c=e.getLong_61zpoe$("substatementVerbUid"),l=e.getLong_61zpoe$("subStatementObjectUid"),u=e.getLong_61zpoe$("agentUid"),h=e.getLong_61zpoe$("instructorUid"),d=e.getLong_61zpoe$("authorityUid"),p=e.getLong_61zpoe$("teamUid"),_=e.getBoolean_61zpoe$("resultCompletion"),m=e.getByte_61zpoe$("resultSuccess"),f=e.getFloat_61zpoe$("resultScoreScaled"),g=e.getLong_61zpoe$("resultScoreRaw"),$=e.getLong_61zpoe$("resultScoreMin"),E=e.getLong_61zpoe$("resultScoreMax"),y=e.getLong_61zpoe$("resultDuration"),b=e.getString_61zpoe$("resultResponse"),S=e.getLong_61zpoe$("timestamp"),v=e.getLong_61zpoe$("stored"),C=e.getString_61zpoe$("contextRegistration"),N=e.getString_61zpoe$("contextPlatform"),T=e.getString_61zpoe$("contextStatementId"),L=e.getString_61zpoe$("fullStatement"),z=e.getLong_61zpoe$("statementMasterChangeSeqNum"),w=e.getLong_61zpoe$("statementLocalChangeSeqNum"),O=e.getInt_61zpoe$("statementLastChangedBy"),R=e.getLong_61zpoe$("statementLct"),A=e.getInt_61zpoe$("extensionProgress"),x=e.getBoolean_61zpoe$("contentEntryRoot"),I=e.getLong_61zpoe$("statementContentEntryUid"),U=e.getLong_61zpoe$("statementLearnerGroupUid"),D=e.getLong_61zpoe$("statementClazzUid"),P=new Hpt;return P.statementUid=n,P.statementId=i,P.statementPersonUid=o,P.statementVerbUid=r,P.xObjectUid=s,P.subStatementActorUid=a,P.substatementVerbUid=c,P.subStatementObjectUid=l,P.agentUid=u,P.instructorUid=h,P.authorityUid=d,P.teamUid=p,P.resultCompletion=_,P.resultSuccess=m,P.resultScoreScaled=f,P.resultScoreRaw=g,P.resultScoreMin=$,P.resultScoreMax=E,P.resultDuration=y,P.resultResponse=b,P.timestamp=S,P.stored=v,P.contextRegistration=C,P.contextPlatform=N,P.contextStatementId=T,P.fullStatement=L,P.statementMasterChangeSeqNum=z,P.statementLocalChangeSeqNum=w,P.statementLastChangedBy=O,P.statementLct=R,P.extensionProgress=A,P.contentEntryRoot=x,P.statementContentEntryUid=I,P.statementLearnerGroupUid=U,P.statementClazzUid=D,P}));var e}function s1(t,e,n,i){this.this$StatementDao_JdbcKt=t,this.closure$accountPersonUid=e,this.closure$contentEntryUid=n,this.closure$personUid=i,gt.call(this)}function a1(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("startDate"),i=e.getString_61zpoe$("contextRegistration"),o=e.getLong_61zpoe$("duration"),r=e.getByte_61zpoe$("resultSuccess"),s=e.getBoolean_61zpoe$("resultComplete"),a=e.getFloat_61zpoe$("resultScoreScaled"),c=e.getInt_61zpoe$("resultMax"),l=e.getInt_61zpoe$("resultScore"),u=new Sut;return u.startDate=n,u.contextRegistration=i,u.duration=o,u.resultSuccess=r,u.resultComplete=s,u.resultScoreScaled=a,u.resultMax=c,u.resultScore=l,u}));var e}function c1(t,e,n,i,o,r,s){N.call(this,s),this.exceptionState_0=1,this.local$closure$accountPersonUid=t,this.local$closure$contentEntryUid=e,this.local$closure$personUid=n,this.local$closure$_limit=i,this.local$closure$_offset=o,this.local$_stmt=r}dM.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$learnerGroupUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$contentEntryUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,hM);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},KP.prototype.findLearnerGroupMembersByGroupIdAndEntryList_3pjtqy$=function(t,e,n){return ct(this._db,new st(S("\n |SELECT LearnerGroupMember.*, Person.* FROM LearnerGroupMember \n | LEFT JOIN Person ON LearnerGroupMember.learnerGroupMemberPersonUid = Person.personUid \n | LEFT JOIN GroupLearningSession ON \n | GroupLearningSession.groupLearningSessionLearnerGroupUid = LearnerGroupMember.learnerGroupMemberLgUid \n | WHERE GroupLearningSession.groupLearningSessionLearnerGroupUid = ? \n | AND GroupLearningSession.groupLearningSessionContentUid = ? \n | ORDER BY learnerGroupMemberRole ASC\n | \n ")),(i=t,o=e,function(t,e,n){var r=new dM(i,o,t,e);return n?r:r.doResume(null)}),n);var i,o},pM.prototype.makeSql_6taknv$=function(t){return"INSERT INTO LearnerGroupMember (learnerGroupMemberUid, learnerGroupMemberPersonUid, learnerGroupMemberLgUid, learnerGroupMemberRole, learnerGroupMemberActive, learnerGroupMemberMCSN, learnerGroupMemberCSN, learnerGroupMemberLCB, learnerGroupMemberLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)"},pM.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.learnerGroupMemberUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.learnerGroupMemberUid),t.setLong_6svq3l$(2,e.learnerGroupMemberPersonUid),t.setLong_6svq3l$(3,e.learnerGroupMemberLgUid),t.setInt_vux9f0$(4,e.learnerGroupMemberRole),t.setBoolean_fzusl$(5,e.learnerGroupMemberActive),t.setLong_6svq3l$(6,e.learnerGroupMemberMCSN),t.setLong_6svq3l$(7,e.learnerGroupMemberCSN),t.setInt_vux9f0$(8,e.learnerGroupMemberLCB),t.setLong_6svq3l$(9,e.learnerGroupMemberLct)},pM.$metadata$={kind:c,interfaces:[pt]},KP.$metadata$={kind:c,simpleName:"LearnerGroupMemberDao_JdbcKt",interfaces:[VP]},mM.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},mM.prototype=Object.create(N.prototype),mM.prototype.constructor=mM,mM.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_M.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new mM(this,t,e);return n?i:i.doResume(null)},fM.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fM.prototype=Object.create(N.prototype),fM.prototype.constructor=fM,fM.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_M.prototype.replicateOnChange=function(t,e){var n=new fM(this,t);return e?n:n.doResume(null)},_M.prototype.findLearnerGroupMembersByGroupIdAndEntry_3pjtqy$=function(t,e){return this._dao_0.findLearnerGroupMembersByGroupIdAndEntry_3pjtqy$(t,e)},_M.prototype.findLearnerGroupMembersByGroupIdAndEntryList_3pjtqy$=function(t,e,n){return this._dao_0.findLearnerGroupMembersByGroupIdAndEntryList_3pjtqy$(t,e,n)},_M.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},gM.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},gM.prototype=Object.create(N.prototype),gM.prototype.constructor=gM,gM.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.learnerGroupMemberUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(300,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.learnerGroupMemberUid=e,this.state_0=3;continue;case 3:if(this.local$entity.learnerGroupMemberLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.learnerGroupMemberUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_M.prototype.insertAsync=function(t,e,n){var i=new gM(this,t,e);return n?i:i.doResume(null)},_M.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},_M.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},_M.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},_M.$metadata$={kind:c,simpleName:"LearnerGroupMemberDao_ReplicateWrapper",interfaces:[VP]},EM.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},EM.prototype=Object.create(N.prototype),EM.prototype.constructor=EM,EM.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},$M.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new EM(this,t,e);return n?i:i.doResume(null)},yM.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},yM.prototype=Object.create(N.prototype),yM.prototype.constructor=yM,yM.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},$M.prototype.replicateOnChange=function(t,e){var n=new yM(this,t);return e?n:n.doResume(null)},$M.prototype.findLearnerGroupMembersByGroupIdAndEntry_3pjtqy$=function(t,e){return this._dao.findLearnerGroupMembersByGroupIdAndEntry_3pjtqy$(t,e)},bM.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},bM.prototype=Object.create(N.prototype),bM.prototype.constructor=bM,bM.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findLearnerGroupMembersByGroupIdAndEntryList_3pjtqy$(this.local$learnerGroupUid,this.local$contentEntryUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},$M.prototype.findLearnerGroupMembersByGroupIdAndEntryList_3pjtqy$=function(t,e,n,i){var o=new bM(this,t,e,n);return i?o:o.doResume(null)},$M.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},SM.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},SM.prototype=Object.create(N.prototype),SM.prototype.constructor=SM,SM.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},$M.prototype.insertAsync=function(t,e,n){var i=new SM(this,t,e);return n?i:i.doResume(null)},$M.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},$M.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},$M.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},$M.$metadata$={kind:c,simpleName:"LearnerGroupMemberDao_Repo",interfaces:[VP]},vM.$metadata$={kind:c,simpleName:"LeavingReasonDao",interfaces:[X6]},NM.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},NM.prototype=Object.create(N.prototype),NM.prototype.constructor=NM,NM.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterLeavingReason_upsert.insertListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},CM.prototype.replaceList_1t3q73$=function(t,e,n){var i=new NM(this,t,e);return n?i:i.doResume(null)},CM.prototype.insert_11rb$=function(t){return this._insertAdapterLeavingReason_.insertAndReturnId_11rb$(t)},TM.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},TM.prototype=Object.create(N.prototype),TM.prototype.constructor=TM,TM.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterLeavingReason_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},CM.prototype.insertAsync=function(t,e,n){var i=new TM(this,t,e);return n?i:i.doResume(null)},CM.prototype.insertList_4ezy5m$=function(t){this._insertAdapterLeavingReason_.insertList_4ezy5m$(t)},LM.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},LM.prototype=Object.create(N.prototype),LM.prototype.constructor=LM,LM.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$entity.leavingReasonTitle),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$entity.leavingReasonMCSN),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$entity.leavingReasonCSN),this.local$_stmt.setInt_vux9f0$(4,this.local$closure$entity.leavingReasonLCB),this.local$_stmt.setLong_6svq3l$(5,this.local$closure$entity.leavingReasonLct),this.local$_stmt.setLong_6svq3l$(6,this.local$closure$entity.leavingReasonUid),this.local$tmp$=this.local$closure$_result.v,this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$closure$_result.v=this.local$tmp$+this.result_0|0,V;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},wM.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},wM.prototype=Object.create(N.prototype),wM.prototype.constructor=wM,wM.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_result={v:0},this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE LeavingReason SET leavingReasonTitle = ?, leavingReasonMCSN = ?, leavingReasonCSN = ?, leavingReasonLCB = ?, leavingReasonLct = ? WHERE leavingReasonUid = ?",zM(this.local$entity,this.local$_result),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$_result.v;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},CM.prototype.updateAsync_e9c2s2$=function(t,e,n){var i=new wM(this,t,e);return n?i:i.doResume(null)},CM.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE LeavingReason SET leavingReasonTitle = ?, leavingReasonMCSN = ?, leavingReasonCSN = ?, leavingReasonLCB = ?, leavingReasonLct = ? WHERE leavingReasonUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setString_vqvrqt$(1,i.leavingReasonTitle),t.setLong_6svq3l$(2,i.leavingReasonMCSN),t.setLong_6svq3l$(3,i.leavingReasonCSN),t.setInt_vux9f0$(4,i.leavingReasonLCB),t.setLong_6svq3l$(5,i.leavingReasonLct),t.setLong_6svq3l$(6,i.leavingReasonUid),t.executeUpdate()}return t.getConnection().commit(),V}))},CM.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE LeavingReason SET leavingReasonTitle = ?, leavingReasonMCSN = ?, leavingReasonCSN = ?, leavingReasonLCB = ?, leavingReasonLct = ? WHERE leavingReasonUid = ?",(e=t,function(t){return t.setString_vqvrqt$(1,e.leavingReasonTitle),t.setLong_6svq3l$(2,e.leavingReasonMCSN),t.setLong_6svq3l$(3,e.leavingReasonCSN),t.setInt_vux9f0$(4,e.leavingReasonLCB),t.setLong_6svq3l$(5,e.leavingReasonLct),t.setLong_6svq3l$(6,e.leavingReasonUid),t.executeUpdate()}))},OM.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},OM.prototype=Object.create(N.prototype),OM.prototype.constructor=OM,OM.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},AM.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},AM.prototype=Object.create(N.prototype),AM.prototype.constructor=AM,AM.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO LeavingReasonReplicate(lrPk, lrDestination)\n | SELECT DISTINCT LeavingReason.leavingReasonUid AS lrPk,\n | ? AS lrDestination\n | FROM LeavingReason\n | WHERE LeavingReason.leavingReasonLct != COALESCE(\n | (SELECT lrVersionId\n | FROM LeavingReasonReplicate\n | WHERE lrPk = LeavingReason.leavingReasonUid\n | AND lrDestination = ?), 0) \n | /*psql ON CONFLICT(lrPk, lrDestination) DO UPDATE\n | SET lrPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO LeavingReasonReplicate(lrPk, lrDestination)\n | SELECT DISTINCT LeavingReason.leavingReasonUid AS lrPk,\n | ? AS lrDestination\n | FROM LeavingReason\n | WHERE LeavingReason.leavingReasonLct != COALESCE(\n | (SELECT lrVersionId\n | FROM LeavingReasonReplicate\n | WHERE lrPk = LeavingReason.leavingReasonUid\n | AND lrDestination = ?), 0) \n | ON CONFLICT(lrPk, lrDestination) DO UPDATE\n | SET lrPending = true\n | \n | \n |")),RM(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},CM.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new AM(this,t,e);return n?i:i.doResume(null)},xM.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},xM.prototype=Object.create(N.prototype),xM.prototype.constructor=xM,xM.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},UM.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},UM.prototype=Object.create(N.prototype),UM.prototype.constructor=UM,UM.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO LeavingReasonReplicate(lrPk, lrDestination)\n | SELECT DISTINCT LeavingReason.leavingReasonUid AS lrUid,\n | UserSession.usClientNodeId AS lrDestination\n | FROM ChangeLog\n | JOIN LeavingReason\n | ON ChangeLog.chTableId = 410\n | AND ChangeLog.chEntityPk = LeavingReason.leavingReasonUid\n | JOIN UserSession \n | ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND LeavingReason.leavingReasonLct != COALESCE(\n | (SELECT lrVersionId\n | FROM LeavingReasonReplicate\n | WHERE lrPk = LeavingReason.leavingReasonUid\n | AND lrDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(lrPk, lrDestination) DO UPDATE\n | SET lrPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO LeavingReasonReplicate(lrPk, lrDestination)\n | SELECT DISTINCT LeavingReason.leavingReasonUid AS lrUid,\n | UserSession.usClientNodeId AS lrDestination\n | FROM ChangeLog\n | JOIN LeavingReason\n | ON ChangeLog.chTableId = 410\n | AND ChangeLog.chEntityPk = LeavingReason.leavingReasonUid\n | JOIN UserSession \n | ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND LeavingReason.leavingReasonLct != COALESCE(\n | (SELECT lrVersionId\n | FROM LeavingReasonReplicate\n | WHERE lrPk = LeavingReason.leavingReasonUid\n | AND lrDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(lrPk, lrDestination) DO UPDATE\n | SET lrPending = true\n | \n | \n |")),IM,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},CM.prototype.replicateOnChange=function(t,e){var n=new UM(this,t);return e?n:n.doResume(null)},MM.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},MM.prototype=Object.create(N.prototype),MM.prototype.constructor=MM,MM.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setInt_vux9f0$(1,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,PM);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jM.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},jM.prototype=Object.create(N.prototype),jM.prototype.constructor=jM,jM.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$LeavingReasonDao_JdbcKt._db,new st("SELECT * FROM (SELECT * FROM LeavingReason) LIMIT ? OFFSET ?"),kM(this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},DM.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$LeavingReasonDao_JdbcKt._db,Et("LeavingReason"),(n=this.this$LeavingReasonDao_JdbcKt,i=e,o=t,function(t,e){var r=new jM(n,i,o,t);return e?r:r.doResume(null)}));var n,i,o},qM.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},qM.prototype=Object.create(N.prototype),qM.prototype.constructor=qM,qM.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,GM);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},BM.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},BM.prototype=Object.create(N.prototype),BM.prototype.constructor=BM,BM.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$LeavingReasonDao_JdbcKt._db,new st("SELECT COUNT(*) FROM (SELECT * FROM LeavingReason) "),FM,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},DM.prototype.getLength=function(){return new ft(this.this$LeavingReasonDao_JdbcKt._db,Et("LeavingReason"),(t=this.this$LeavingReasonDao_JdbcKt,function(e,n){var i=new BM(t,e);return n?i:i.doResume(null)}));var t},DM.$metadata$={kind:c,interfaces:[gt]},CM.prototype.findAllReasons=function(){return new DM(this)},CM.prototype.findAllReasonsLive=function(){return ht(this._db,new st("SELECT * FROM LeavingReason"),HM)},KM.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},KM.prototype=Object.create(N.prototype),KM.prototype.constructor=KM,KM.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,VM);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},CM.prototype.findByUidAsync_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT * FROM LeavingReason WHERE leavingReasonUid = ?"),(n=t,function(t,e,i){var o=new KM(n,t,e);return i?o:o.doResume(null)}),e);var n},JM.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},JM.prototype=Object.create(N.prototype),JM.prototype.constructor=JM,JM.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setArray_wqp8hw$(1,yt(this.local$_stmt.getConnection(),"BIGINT",q(this.local$closure$uidList))),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,XM);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},CM.prototype.findByUidList_gox9k8$=function(t,e){return ct(this._db,new st("SELECT leavingReasonUid FROM LeavingReason WHERE leavingReasonUid IN (?)",!0),(n=t,function(t,e,i){var o=new JM(n,t,e);return i?o:o.doResume(null)}),e);var n},QM.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},QM.prototype=Object.create(N.prototype),QM.prototype.constructor=QM,QM.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,YM);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tk.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},tk.prototype=Object.create(N.prototype),tk.prototype.constructor=tk,tk.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$LeavingReasonDao_JdbcKt._db,new st("SELECT * FROM LeavingReason WHERE leavingReasonUid = ?"),ZM(this.local$closure$uid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},CM.prototype.findByUidLive_s8cxhz$=function(t){return new ft(this._db,Et("LeavingReason"),(e=this,n=t,function(t,i){var o=new tk(e,n,t);return i?o:o.doResume(null)}));var e,n},nk.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},nk.prototype=Object.create(N.prototype),nk.prototype.constructor=nk,nk.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setArray_wqp8hw$(1,yt(this.local$_stmt.getConnection(),"BIGINT",q(this.local$closure$uidList))),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,ek);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},CM.prototype.getReasonsFromUids_gox9k8$=function(t,e){return ct(this._db,new st(S("\n |SELECT LeavingReason.leavingReasonUid AS uid, \n | LeavingReason.leavingReasonTitle As labelName \n | FROM LeavingReason WHERE leavingReasonUid IN (?)\n "),!0),(n=t,function(t,e,i){var o=new nk(n,t,e);return i?o:o.doResume(null)}),e);var n},ik.prototype.makeSql_6taknv$=function(t){return"INSERT OR REPLACE INTO LeavingReason (leavingReasonUid, leavingReasonTitle, leavingReasonMCSN, leavingReasonCSN, leavingReasonLCB, leavingReasonLct) VALUES(?, ?, ?, ?, ?, ?)"},ik.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.leavingReasonUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.leavingReasonUid),t.setString_vqvrqt$(2,e.leavingReasonTitle),t.setLong_6svq3l$(3,e.leavingReasonMCSN),t.setLong_6svq3l$(4,e.leavingReasonCSN),t.setInt_vux9f0$(5,e.leavingReasonLCB),t.setLong_6svq3l$(6,e.leavingReasonLct)},ik.$metadata$={kind:c,interfaces:[pt]},ok.prototype.makeSql_6taknv$=function(t){return"INSERT INTO LeavingReason (leavingReasonUid, leavingReasonTitle, leavingReasonMCSN, leavingReasonCSN, leavingReasonLCB, leavingReasonLct) VALUES(?, ?, ?, ?, ?, ?)"},ok.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.leavingReasonUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.leavingReasonUid),t.setString_vqvrqt$(2,e.leavingReasonTitle),t.setLong_6svq3l$(3,e.leavingReasonMCSN),t.setLong_6svq3l$(4,e.leavingReasonCSN),t.setInt_vux9f0$(5,e.leavingReasonLCB),t.setLong_6svq3l$(6,e.leavingReasonLct)},ok.$metadata$={kind:c,interfaces:[pt]},CM.$metadata$={kind:c,simpleName:"LeavingReasonDao_JdbcKt",interfaces:[vM]},sk.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},sk.prototype=Object.create(N.prototype),sk.prototype.constructor=sk,sk.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},rk.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new sk(this,t,e);return n?i:i.doResume(null)},ak.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ak.prototype=Object.create(N.prototype),ak.prototype.constructor=ak,ak.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},rk.prototype.replicateOnChange=function(t,e){var n=new ak(this,t);return e?n:n.doResume(null)},rk.prototype.findAllReasons=function(){return this._dao_0.findAllReasons()},rk.prototype.findAllReasonsLive=function(){throw v("Synchronous db access is NOT possible on Javascript!")},rk.prototype.findByUidAsync_s8cxhz$=function(t,e){return this._dao_0.findByUidAsync_s8cxhz$(t,e)},rk.prototype.findByUidList_gox9k8$=function(t,e){return this._dao_0.findByUidList_gox9k8$(t,e)},rk.prototype.findByUidLive_s8cxhz$=function(t){return this._dao_0.findByUidLive_s8cxhz$(t)},rk.prototype.getReasonsFromUids_gox9k8$=function(t,e){return this._dao_0.getReasonsFromUids_gox9k8$(t,e)},ck.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ck.prototype=Object.create(N.prototype),ck.prototype.constructor=ck,ck.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_pkManager=_t(w(this.$this._db_0)),this.local$_generatedPks=F(),this.local$$receiver=this.local$entityList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$$receiver.hasNext()){this.state_0=5;continue}if(this.local$element=this.local$$receiver.next(),O(this.local$element.leavingReasonUid,X)){if(this.state_0=3,this.result_0=this.local$_pkManager.nextIdAsync_za3lpa$(410,this),this.result_0===C)return C;continue}this.state_0=4;continue;case 3:var t=this.result_0;this.local$element.leavingReasonUid=t,this.local$_generatedPks.add_11rb$(t),this.state_0=4;continue;case 4:this.local$element.leavingReasonLct=J(),this.state_0=2;continue;case 5:if(this.state_0=6,this.result_0=this.$this._dao_0.replaceList_1t3q73$(this.local$entityList,this),this.result_0===C)return C;continue;case 6:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},rk.prototype.replaceList_1t3q73$=function(t,e,n){var i=new ck(this,t,e);return n?i:i.doResume(null)},rk.prototype.updateAsync_e9c2s2$=function(t,e){return t.leavingReasonLct=J(),this._dao_0.updateAsync_e9c2s2$(t,e)},rk.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},lk.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},lk.prototype=Object.create(N.prototype),lk.prototype.constructor=lk,lk.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.leavingReasonUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(410,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.leavingReasonUid=e,this.state_0=3;continue;case 3:if(this.local$entity.leavingReasonLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.leavingReasonUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},rk.prototype.insertAsync=function(t,e,n){var i=new lk(this,t,e);return n?i:i.doResume(null)},rk.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},rk.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},rk.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},rk.$metadata$={kind:c,simpleName:"LeavingReasonDao_ReplicateWrapper",interfaces:[vM]},hk.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},hk.prototype=Object.create(N.prototype),hk.prototype.constructor=hk,hk.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},uk.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new hk(this,t,e);return n?i:i.doResume(null)},dk.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},dk.prototype=Object.create(N.prototype),dk.prototype.constructor=dk,dk.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},uk.prototype.replicateOnChange=function(t,e){var n=new dk(this,t);return e?n:n.doResume(null)},uk.prototype.findAllReasons=function(){return this._dao.findAllReasons()},uk.prototype.findAllReasonsLive=function(){return this._dao.findAllReasonsLive()},pk.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},pk.prototype=Object.create(N.prototype),pk.prototype.constructor=pk,pk.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByUidAsync_s8cxhz$(this.local$uid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},uk.prototype.findByUidAsync_s8cxhz$=function(t,e,n){var i=new pk(this,t,e);return n?i:i.doResume(null)},_k.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_k.prototype=Object.create(N.prototype),_k.prototype.constructor=_k,_k.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByUidList_gox9k8$(this.local$uidList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},uk.prototype.findByUidList_gox9k8$=function(t,e,n){var i=new _k(this,t,e);return n?i:i.doResume(null)},uk.prototype.findByUidLive_s8cxhz$=function(t){return this._dao.findByUidLive_s8cxhz$(t)},mk.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},mk.prototype=Object.create(N.prototype),mk.prototype.constructor=mk,mk.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.getReasonsFromUids_gox9k8$(this.local$uidList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},uk.prototype.getReasonsFromUids_gox9k8$=function(t,e,n){var i=new mk(this,t,e);return n?i:i.doResume(null)},fk.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fk.prototype=Object.create(N.prototype),fk.prototype.constructor=fk,fk.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replaceList_1t3q73$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},uk.prototype.replaceList_1t3q73$=function(t,e,n){var i=new fk(this,t,e);return n?i:i.doResume(null)},gk.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},gk.prototype=Object.create(N.prototype),gk.prototype.constructor=gk,gk.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateAsync_e9c2s2$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},uk.prototype.updateAsync_e9c2s2$=function(t,e,n){var i=new gk(this,t,e);return n?i:i.doResume(null)},uk.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},$k.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},$k.prototype=Object.create(N.prototype),$k.prototype.constructor=$k,$k.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},uk.prototype.insertAsync=function(t,e,n){var i=new $k(this,t,e);return n?i:i.doResume(null)},uk.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},uk.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},uk.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},uk.$metadata$={kind:c,simpleName:"LeavingReasonDao_Repo",interfaces:[vM]},Ek.$metadata$={kind:c,simpleName:"LocallyAvailableContainerDao",interfaces:[]},bk.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},bk.prototype=Object.create(N.prototype),bk.prototype.constructor=bk,bk.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterLocallyAvailableContainer_upsert.insertListAsync_4ezy5m$(this.local$locallyAvailableContainers,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yk.prototype.insertList_s1s25j$=function(t,e,n){var i=new bk(this,t,e);return n?i:i.doResume(null)},Sk.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Sk.prototype=Object.create(N.prototype),Sk.prototype.constructor=Sk,Sk.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_stmt.getConnection().setAutoCommit_6taknv$(!1),this.local$tmp$=this.local$closure$locallyAvailableContainers.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$tmp$.hasNext()){this.state_0=4;continue}var t=this.local$tmp$.next();if(this.local$_stmt.setLong_6svq3l$(1,t.laContainerUid),this.local$tmp$_0=this.local$closure$_numChanges.v,this.state_0=3,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 3:this.local$closure$_numChanges.v=this.local$tmp$_0+this.result_0|0,this.state_0=2;continue;case 4:return this.local$_stmt.getConnection().commit(),V;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ck.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ck.prototype=Object.create(N.prototype),Ck.prototype.constructor=Ck,Ck.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=$t(this.$this._db,"DELETE FROM LocallyAvailableContainer WHERE laContainerUid = ?",vk(this.local$locallyAvailableContainers,{v:0}),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yk.prototype.deleteList_s1s25j$=function(t,e,n){var i=new Ck(this,t,e);return n?i:i.doResume(null)},yk.prototype.deleteAll=function(){ht(this._db,new st("DELETE FROM LocallyAvailableContainer"),Nk)},Tk.prototype.makeSql_6taknv$=function(t){return"INSERT OR REPLACE INTO LocallyAvailableContainer (laContainerUid) VALUES(?)"},Tk.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){t.setLong_6svq3l$(1,e.laContainerUid)},Tk.$metadata$={kind:c,interfaces:[pt]},yk.$metadata$={kind:c,simpleName:"LocallyAvailableContainerDao_JdbcKt",interfaces:[Ek]},Lk.$metadata$={kind:c,simpleName:"MessageDao",interfaces:[X6]},zk.prototype.insert_11rb$=function(t){return this._insertAdapterMessage_.insertAndReturnId_11rb$(t)},wk.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},wk.prototype=Object.create(N.prototype),wk.prototype.constructor=wk,wk.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterMessage_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zk.prototype.insertAsync=function(t,e,n){var i=new wk(this,t,e);return n?i:i.doResume(null)},zk.prototype.insertList_4ezy5m$=function(t){this._insertAdapterMessage_.insertList_4ezy5m$(t)},zk.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE Message SET messageSenderPersonUid = ?, messageTableId = ?, messageEntityUid = ?, messageText = ?, messageTimestamp = ?, messageClazzUid = ?, messageLct = ? WHERE messageUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.messageSenderPersonUid),t.setInt_vux9f0$(2,i.messageTableId),t.setLong_6svq3l$(3,i.messageEntityUid),t.setString_vqvrqt$(4,i.messageText),t.setLong_6svq3l$(5,i.messageTimestamp),t.setLong_6svq3l$(6,i.messageClazzUid),t.setLong_6svq3l$(7,i.messageLct),t.setLong_6svq3l$(8,i.messageUid),t.executeUpdate()}return t.getConnection().commit(),V}))},zk.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE Message SET messageSenderPersonUid = ?, messageTableId = ?, messageEntityUid = ?, messageText = ?, messageTimestamp = ?, messageClazzUid = ?, messageLct = ? WHERE messageUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.messageSenderPersonUid),t.setInt_vux9f0$(2,e.messageTableId),t.setLong_6svq3l$(3,e.messageEntityUid),t.setString_vqvrqt$(4,e.messageText),t.setLong_6svq3l$(5,e.messageTimestamp),t.setLong_6svq3l$(6,e.messageClazzUid),t.setLong_6svq3l$(7,e.messageLct),t.setLong_6svq3l$(8,e.messageUid),t.executeUpdate()}))},Ok.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ok.prototype=Object.create(N.prototype),Ok.prototype.constructor=Ok,Ok.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ak.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Ak.prototype=Object.create(N.prototype),Ak.prototype.constructor=Ak,Ak.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO MessageReplicate(messagePk, messageDestination)\n | SELECT DISTINCT Message.messageUid AS messagePk,\n | ? AS messageDestination\n | FROM UserSession\n | JOIN Message ON\n | (( Message.messageTableId = 127\n | AND Message.messageEntityUid IN\n | (SELECT ChatMember.chatMemberChatUid \n | FROM ChatMember\n | WHERE ChatMember.chatMemberPersonUid = UserSession.usPersonUid))\n | OR UserSession.usSessionType = 2)\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND Message.messageLct != COALESCE(\n | (SELECT messageVersionId\n | FROM MessageReplicate\n | WHERE messagePk = Message.messageUid\n | AND messageDestination = ?), 0) \n | /*psql ON CONFLICT(messagePk, messageDestination) DO UPDATE\n | SET messagePending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO MessageReplicate(messagePk, messageDestination)\n | SELECT DISTINCT Message.messageUid AS messagePk,\n | ? AS messageDestination\n | FROM UserSession\n | JOIN Message ON\n | (( Message.messageTableId = 127\n | AND Message.messageEntityUid IN\n | (SELECT ChatMember.chatMemberChatUid \n | FROM ChatMember\n | WHERE ChatMember.chatMemberPersonUid = UserSession.usPersonUid))\n | OR UserSession.usSessionType = 2)\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND Message.messageLct != COALESCE(\n | (SELECT messageVersionId\n | FROM MessageReplicate\n | WHERE messagePk = Message.messageUid\n | AND messageDestination = ?), 0) \n | ON CONFLICT(messagePk, messageDestination) DO UPDATE\n | SET messagePending = true\n | \n | \n |")),Rk(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zk.prototype.replicateOnNewNodeChats_s8cxhz$=function(t,e,n){var i=new Ak(this,t,e);return n?i:i.doResume(null)},xk.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},xk.prototype=Object.create(N.prototype),xk.prototype.constructor=xk,xk.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Uk.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Uk.prototype=Object.create(N.prototype),Uk.prototype.constructor=Uk,Uk.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO MessageReplicate(messagePk, messageDestination)\n | SELECT DISTINCT Message.messageUid AS messagePk,\n | ? AS messageDestination\n | FROM UserSession\n | \n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 2 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | \n | JOIN Message \n | ON Message.messageTableId = 132\n | AND Message.messageClazzUid = Clazz.clazzUid\n | \n | \n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND Message.messageLct != COALESCE(\n | (SELECT messageVersionId\n | FROM MessageReplicate\n | WHERE messagePk = Message.messageUid\n | AND messageDestination = ?), 0) \n | /*psql ON CONFLICT(messagePk, messageDestination) DO UPDATE\n | SET messagePending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO MessageReplicate(messagePk, messageDestination)\n | SELECT DISTINCT Message.messageUid AS messagePk,\n | ? AS messageDestination\n | FROM UserSession\n | \n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 2 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | \n | JOIN Message \n | ON Message.messageTableId = 132\n | AND Message.messageClazzUid = Clazz.clazzUid\n | \n | \n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND Message.messageLct != COALESCE(\n | (SELECT messageVersionId\n | FROM MessageReplicate\n | WHERE messagePk = Message.messageUid\n | AND messageDestination = ?), 0) \n | ON CONFLICT(messagePk, messageDestination) DO UPDATE\n | SET messagePending = true\n | \n | \n |")),Ik(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zk.prototype.replicateOnNewNodePosts_s8cxhz$=function(t,e,n){var i=new Uk(this,t,e);return n?i:i.doResume(null)},Dk.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Dk.prototype=Object.create(N.prototype),Dk.prototype.constructor=Dk,Dk.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Mk.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Mk.prototype=Object.create(N.prototype),Mk.prototype.constructor=Mk,Mk.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO MessageReplicate(messagePk, messageDestination)\n | SELECT DISTINCT Message.messageUid AS messageUid,\n | UserSession.usClientNodeId AS messageDestination\n | FROM ChangeLog\n | JOIN Message\n | ON ChangeLog.chTableId = 126\n | AND ChangeLog.chEntityPk = Message.messageUid\n | AND Message.messageTableId = 127\n | JOIN UserSession ON\n | ((UserSession.usPersonUid IN \n | (SELECT ChatMember.chatMemberPersonUid\n | FROM ChatMember\n | WHERE ChatMember.chatMemberChatUid = Message.messageEntityUid))\n | OR UserSession.usSessionType = 2) \n | WHERE UserSession.usStatus = 1\n | AND UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND Message.messageLct != COALESCE(\n | (SELECT messageVersionId\n | FROM MessageReplicate\n | WHERE messagePk = Message.messageUid\n | AND messageDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(messagePk, messageDestination) DO UPDATE\n | SET messagePending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO MessageReplicate(messagePk, messageDestination)\n | SELECT DISTINCT Message.messageUid AS messageUid,\n | UserSession.usClientNodeId AS messageDestination\n | FROM ChangeLog\n | JOIN Message\n | ON ChangeLog.chTableId = 126\n | AND ChangeLog.chEntityPk = Message.messageUid\n | AND Message.messageTableId = 127\n | JOIN UserSession ON\n | ((UserSession.usPersonUid IN \n | (SELECT ChatMember.chatMemberPersonUid\n | FROM ChatMember\n | WHERE ChatMember.chatMemberChatUid = Message.messageEntityUid))\n | OR UserSession.usSessionType = 2) \n | WHERE UserSession.usStatus = 1\n | AND UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND Message.messageLct != COALESCE(\n | (SELECT messageVersionId\n | FROM MessageReplicate\n | WHERE messagePk = Message.messageUid\n | AND messageDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(messagePk, messageDestination) DO UPDATE\n | SET messagePending = true\n | \n | \n |")),Pk,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zk.prototype.replicateOnChangeChat=function(t,e){var n=new Mk(this,t);return e?n:n.doResume(null)},kk.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},kk.prototype=Object.create(N.prototype),kk.prototype.constructor=kk,kk.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Gk.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Gk.prototype=Object.create(N.prototype),Gk.prototype.constructor=Gk,Gk.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO MessageReplicate(messagePk, messageDestination)\n | SELECT DISTINCT Message.messageUid AS messageUid,\n | UserSession.usClientNodeId AS messageDestination\n | FROM ChangeLog\n | \n | JOIN Message\n | ON ChangeLog.chTableId = 126\n | AND ChangeLog.chEntityPk = Message.messageUid\n | AND Message.messageTableId = 132\n | \n | JOIN Clazz\n | ON Clazz.clazzUid = Message.messageClazzUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 2\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | \n | WHERE UserSession.usStatus = 1\n | AND UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND Message.messageLct != COALESCE(\n | (SELECT messageVersionId\n | FROM MessageReplicate\n | WHERE messagePk = Message.messageUid\n | AND messageDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(messagePk, messageDestination) DO UPDATE\n | SET messagePending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO MessageReplicate(messagePk, messageDestination)\n | SELECT DISTINCT Message.messageUid AS messageUid,\n | UserSession.usClientNodeId AS messageDestination\n | FROM ChangeLog\n | \n | JOIN Message\n | ON ChangeLog.chTableId = 126\n | AND ChangeLog.chEntityPk = Message.messageUid\n | AND Message.messageTableId = 132\n | \n | JOIN Clazz\n | ON Clazz.clazzUid = Message.messageClazzUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 2\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | \n | WHERE UserSession.usStatus = 1\n | AND UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND Message.messageLct != COALESCE(\n | (SELECT messageVersionId\n | FROM MessageReplicate\n | WHERE messagePk = Message.messageUid\n | AND messageDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(messagePk, messageDestination) DO UPDATE\n | SET messagePending = true\n | \n | \n |")),jk,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zk.prototype.replicateOnChangePosts=function(t,e){var n=new Gk(this,t);return e?n:n.doResume(null)},Bk.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Bk.prototype=Object.create(N.prototype),Bk.prototype.constructor=Bk,Bk.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$loggedInPersonUid),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$tableId),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$entityUid),this.local$_stmt.setInt_vux9f0$(4,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(5,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Fk);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hk.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Hk.prototype=Object.create(N.prototype),Hk.prototype.constructor=Hk,Hk.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$MessageDao_JdbcKt._db,new st(S("\n |SELECT * FROM (\n | SELECT\n | Message.*,\n | Person.*,\n | MessageRead.*\n | FROM Message\n | LEFT JOIN Person\n | ON Message.messageSenderPersonUid = Person.personUid\n | LEFT JOIN MessageRead\n | ON MessageRead.messageReadMessageUid = Message.messageUid\n | AND MessageRead.messageReadPersonUid = ?\n | WHERE Message.messageTableId = ?\n | AND Message.messageEntityUid = ?\n | ORDER BY Message.messageTimestamp DESC\n | ) LIMIT ? OFFSET ?\n ")),Wk(this.local$closure$loggedInPersonUid,this.local$closure$tableId,this.local$closure$entityUid,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},qk.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$MessageDao_JdbcKt._db,p(["Message","Person","MessageRead"]),(n=this.this$MessageDao_JdbcKt,i=this.closure$loggedInPersonUid,o=this.closure$tableId,r=this.closure$entityUid,s=e,a=t,function(t,e){var c=new Hk(n,i,o,r,s,a,t);return e?c:c.doResume(null)}));var n,i,o,r,s,a},Kk.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Kk.prototype=Object.create(N.prototype),Kk.prototype.constructor=Kk,Kk.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$loggedInPersonUid),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$tableId),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$entityUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Vk);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Jk.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Jk.prototype=Object.create(N.prototype),Jk.prototype.constructor=Jk,Jk.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$MessageDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (\n | SELECT\n | Message.*,\n | Person.*,\n | MessageRead.*\n | FROM Message\n | LEFT JOIN Person\n | ON Message.messageSenderPersonUid = Person.personUid\n | LEFT JOIN MessageRead\n | ON MessageRead.messageReadMessageUid = Message.messageUid\n | AND MessageRead.messageReadPersonUid = ?\n | WHERE Message.messageTableId = ?\n | AND Message.messageEntityUid = ?\n | ORDER BY Message.messageTimestamp DESC\n | ) \n ")),Xk(this.local$closure$loggedInPersonUid,this.local$closure$tableId,this.local$closure$entityUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},qk.prototype.getLength=function(){return new ft(this.this$MessageDao_JdbcKt._db,p(["Message","Person","MessageRead"]),(t=this.this$MessageDao_JdbcKt,e=this.closure$loggedInPersonUid,n=this.closure$tableId,i=this.closure$entityUid,function(o,r){var s=new Jk(t,e,n,i,o);return r?s:s.doResume(null)}));var t,e,n,i},qk.$metadata$={kind:c,interfaces:[gt]},zk.prototype.findAllMessagesByChatUid_ro19vi$=function(t,e,n){return new qk(this,n,e,t)},Yk.prototype.makeSql_6taknv$=function(t){return"INSERT INTO Message (messageUid, messageSenderPersonUid, messageTableId, messageEntityUid, messageText, messageTimestamp, messageClazzUid, messageLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?)"},Yk.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.messageUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.messageUid),t.setLong_6svq3l$(2,e.messageSenderPersonUid),t.setInt_vux9f0$(3,e.messageTableId),t.setLong_6svq3l$(4,e.messageEntityUid),t.setString_vqvrqt$(5,e.messageText),t.setLong_6svq3l$(6,e.messageTimestamp),t.setLong_6svq3l$(7,e.messageClazzUid),t.setLong_6svq3l$(8,e.messageLct)},Yk.$metadata$={kind:c,interfaces:[pt]},zk.$metadata$={kind:c,simpleName:"MessageDao_JdbcKt",interfaces:[Lk]},Zk.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Zk.prototype=Object.create(N.prototype),Zk.prototype.constructor=Zk,Zk.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNodeChats_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Qk.prototype.replicateOnNewNodeChats_s8cxhz$=function(t,e,n){var i=new Zk(this,t,e);return n?i:i.doResume(null)},tj.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},tj.prototype=Object.create(N.prototype),tj.prototype.constructor=tj,tj.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNodePosts_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Qk.prototype.replicateOnNewNodePosts_s8cxhz$=function(t,e,n){var i=new tj(this,t,e);return n?i:i.doResume(null)},ej.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ej.prototype=Object.create(N.prototype),ej.prototype.constructor=ej,ej.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChangeChat(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Qk.prototype.replicateOnChangeChat=function(t,e){var n=new ej(this,t);return e?n:n.doResume(null)},nj.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},nj.prototype=Object.create(N.prototype),nj.prototype.constructor=nj,nj.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChangePosts(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Qk.prototype.replicateOnChangePosts=function(t,e){var n=new nj(this,t);return e?n:n.doResume(null)},Qk.prototype.findAllMessagesByChatUid_ro19vi$=function(t,e,n){return this._dao_0.findAllMessagesByChatUid_ro19vi$(t,e,n)},Qk.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},ij.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ij.prototype=Object.create(N.prototype),ij.prototype.constructor=ij,ij.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.messageUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(126,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.messageUid=e,this.state_0=3;continue;case 3:if(this.local$entity.messageLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.messageUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Qk.prototype.insertAsync=function(t,e,n){var i=new ij(this,t,e);return n?i:i.doResume(null)},Qk.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Qk.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Qk.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Qk.$metadata$={kind:c,simpleName:"MessageDao_ReplicateWrapper",interfaces:[Lk]},rj.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},rj.prototype=Object.create(N.prototype),rj.prototype.constructor=rj,rj.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNodeChats_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oj.prototype.replicateOnNewNodeChats_s8cxhz$=function(t,e,n){var i=new rj(this,t,e);return n?i:i.doResume(null)},sj.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},sj.prototype=Object.create(N.prototype),sj.prototype.constructor=sj,sj.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNodePosts_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oj.prototype.replicateOnNewNodePosts_s8cxhz$=function(t,e,n){var i=new sj(this,t,e);return n?i:i.doResume(null)},aj.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},aj.prototype=Object.create(N.prototype),aj.prototype.constructor=aj,aj.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChangeChat(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oj.prototype.replicateOnChangeChat=function(t,e){var n=new aj(this,t);return e?n:n.doResume(null)},cj.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},cj.prototype=Object.create(N.prototype),cj.prototype.constructor=cj,cj.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChangePosts(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oj.prototype.replicateOnChangePosts=function(t,e){var n=new cj(this,t);return e?n:n.doResume(null)},oj.prototype.findAllMessagesByChatUid_ro19vi$=function(t,e,n){return this._dao.findAllMessagesByChatUid_ro19vi$(t,e,n)},oj.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},lj.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},lj.prototype=Object.create(N.prototype),lj.prototype.constructor=lj,lj.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oj.prototype.insertAsync=function(t,e,n){var i=new lj(this,t,e);return n?i:i.doResume(null)},oj.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},oj.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},oj.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},oj.$metadata$={kind:c,simpleName:"MessageDao_Repo",interfaces:[Lk]},uj.$metadata$={kind:c,simpleName:"MessageReadDao",interfaces:[X6]},hj.prototype.insert_11rb$=function(t){return this._insertAdapterMessageRead_.insertAndReturnId_11rb$(t)},dj.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},dj.prototype=Object.create(N.prototype),dj.prototype.constructor=dj,dj.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterMessageRead_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},hj.prototype.insertAsync=function(t,e,n){var i=new dj(this,t,e);return n?i:i.doResume(null)},hj.prototype.insertList_4ezy5m$=function(t){this._insertAdapterMessageRead_.insertList_4ezy5m$(t)},hj.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE MessageRead SET messageReadPersonUid = ?, messageReadMessageUid = ?, messageReadEntityUid = ?, messageReadLct = ? WHERE messageReadUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.messageReadPersonUid),t.setLong_6svq3l$(2,i.messageReadMessageUid),t.setLong_6svq3l$(3,i.messageReadEntityUid),t.setLong_6svq3l$(4,i.messageReadLct),t.setLong_6svq3l$(5,i.messageReadUid),t.executeUpdate()}return t.getConnection().commit(),V}))},hj.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE MessageRead SET messageReadPersonUid = ?, messageReadMessageUid = ?, messageReadEntityUid = ?, messageReadLct = ? WHERE messageReadUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.messageReadPersonUid),t.setLong_6svq3l$(2,e.messageReadMessageUid),t.setLong_6svq3l$(3,e.messageReadEntityUid),t.setLong_6svq3l$(4,e.messageReadLct),t.setLong_6svq3l$(5,e.messageReadUid),t.executeUpdate()}))},pj.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},pj.prototype=Object.create(N.prototype),pj.prototype.constructor=pj,pj.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},mj.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},mj.prototype=Object.create(N.prototype),mj.prototype.constructor=mj,mj.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO MessageReadReplicate(messageReadPk, messageReadDestination)\n | SELECT DISTINCT MessageRead.messageReadUid AS messageReadPk,\n | ? AS messageReadDestination\n | FROM UserSession \n | JOIN Message ON\n | (( Message.messageTableId = 127\n | AND Message.messageEntityUid IN\n | (SELECT ChatMember.chatMemberChatUid \n | FROM ChatMember\n | WHERE ChatMember.chatMemberPersonUid = UserSession.usPersonUid))\n | OR UserSession.usSessionType = 2)\n | \n | JOIN MessageRead \n | ON MessageRead.messageReadMessageUid = Message.messageUid\n | \n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND MessageRead.messageReadLct != COALESCE(\n | (SELECT messageReadVersionId\n | FROM MessageReadReplicate\n | WHERE messageReadPk = MessageRead.messageReadUid\n | AND messageReadDestination = ?), 0) \n | /*psql ON CONFLICT(messageReadPk, messageReadDestination) DO UPDATE\n | SET messageReadPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO MessageReadReplicate(messageReadPk, messageReadDestination)\n | SELECT DISTINCT MessageRead.messageReadUid AS messageReadPk,\n | ? AS messageReadDestination\n | FROM UserSession \n | JOIN Message ON\n | (( Message.messageTableId = 127\n | AND Message.messageEntityUid IN\n | (SELECT ChatMember.chatMemberChatUid \n | FROM ChatMember\n | WHERE ChatMember.chatMemberPersonUid = UserSession.usPersonUid))\n | OR UserSession.usSessionType = 2)\n | \n | JOIN MessageRead \n | ON MessageRead.messageReadMessageUid = Message.messageUid\n | \n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND MessageRead.messageReadLct != COALESCE(\n | (SELECT messageReadVersionId\n | FROM MessageReadReplicate\n | WHERE messageReadPk = MessageRead.messageReadUid\n | AND messageReadDestination = ?), 0) \n | ON CONFLICT(messageReadPk, messageReadDestination) DO UPDATE\n | SET messageReadPending = true\n | \n | \n |")),_j(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},hj.prototype.replicateOnNewNodeChats_s8cxhz$=function(t,e,n){var i=new mj(this,t,e);return n?i:i.doResume(null)},fj.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fj.prototype=Object.create(N.prototype),fj.prototype.constructor=fj,fj.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},$j.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},$j.prototype=Object.create(N.prototype),$j.prototype.constructor=$j,$j.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO MessageReadReplicate(messageReadPk, messageReadDestination)\n | SELECT DISTINCT MessageRead.messageReadUid AS messageReadUid,\n | UserSession.usClientNodeId AS messageReadDestination\n | FROM ChangeLog\n | \n | JOIN MessageRead \n | ON MessageRead.messageReadUid = ChangeLog.chEntityPk\n | AND ChangeLog.chTableId = 129\n | \n |\n | JOIN UserSession ON\n | ((UserSession.usPersonUid IN \n | (SELECT ChatMember.chatMemberPersonUid\n | FROM ChatMember\n | WHERE ChatMember.chatMemberChatUid = MessageRead.messageReadEntityUid))\n | OR UserSession.usSessionType = 2)\n | \n | WHERE UserSession.usStatus = 1\n | AND UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND MessageRead.messageReadLct != COALESCE(\n | (SELECT messageReadVersionId\n | FROM MessageReadReplicate\n | WHERE messageReadPk = MessageRead.messageReadUid\n | AND messageReadDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(messageReadPk, messageReadDestination) DO UPDATE\n | SET messageReadPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO MessageReadReplicate(messageReadPk, messageReadDestination)\n | SELECT DISTINCT MessageRead.messageReadUid AS messageReadUid,\n | UserSession.usClientNodeId AS messageReadDestination\n | FROM ChangeLog\n | \n | JOIN MessageRead \n | ON MessageRead.messageReadUid = ChangeLog.chEntityPk\n | AND ChangeLog.chTableId = 129\n | \n |\n | JOIN UserSession ON\n | ((UserSession.usPersonUid IN \n | (SELECT ChatMember.chatMemberPersonUid\n | FROM ChatMember\n | WHERE ChatMember.chatMemberChatUid = MessageRead.messageReadEntityUid))\n | OR UserSession.usSessionType = 2)\n | \n | WHERE UserSession.usStatus = 1\n | AND UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND MessageRead.messageReadLct != COALESCE(\n | (SELECT messageReadVersionId\n | FROM MessageReadReplicate\n | WHERE messageReadPk = MessageRead.messageReadUid\n | AND messageReadDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(messageReadPk, messageReadDestination) DO UPDATE\n | SET messageReadPending = true\n | \n | \n |")),gj,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},hj.prototype.replicateOnChange=function(t,e){var n=new $j(this,t);return e?n:n.doResume(null)},Ej.prototype.makeSql_6taknv$=function(t){return"INSERT INTO MessageRead (messageReadUid, messageReadPersonUid, messageReadMessageUid, messageReadEntityUid, messageReadLct) VALUES(?, ?, ?, ?, ?)"},Ej.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.messageReadUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.messageReadUid),t.setLong_6svq3l$(2,e.messageReadPersonUid),t.setLong_6svq3l$(3,e.messageReadMessageUid),t.setLong_6svq3l$(4,e.messageReadEntityUid),t.setLong_6svq3l$(5,e.messageReadLct)},Ej.$metadata$={kind:c,interfaces:[pt]},hj.$metadata$={kind:c,simpleName:"MessageReadDao_JdbcKt",interfaces:[uj]},bj.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},bj.prototype=Object.create(N.prototype),bj.prototype.constructor=bj,bj.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNodeChats_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yj.prototype.replicateOnNewNodeChats_s8cxhz$=function(t,e,n){var i=new bj(this,t,e);return n?i:i.doResume(null)},Sj.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Sj.prototype=Object.create(N.prototype),Sj.prototype.constructor=Sj,Sj.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yj.prototype.replicateOnChange=function(t,e){var n=new Sj(this,t);return e?n:n.doResume(null)},yj.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},vj.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},vj.prototype=Object.create(N.prototype),vj.prototype.constructor=vj,vj.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.messageReadUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(129,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.messageReadUid=e,this.state_0=3;continue;case 3:if(this.local$entity.messageReadLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.messageReadUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yj.prototype.insertAsync=function(t,e,n){var i=new vj(this,t,e);return n?i:i.doResume(null)},yj.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},yj.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},yj.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},yj.$metadata$={kind:c,simpleName:"MessageReadDao_ReplicateWrapper",interfaces:[uj]},Nj.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Nj.prototype=Object.create(N.prototype),Nj.prototype.constructor=Nj,Nj.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNodeChats_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Cj.prototype.replicateOnNewNodeChats_s8cxhz$=function(t,e,n){var i=new Nj(this,t,e);return n?i:i.doResume(null)},Tj.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Tj.prototype=Object.create(N.prototype),Tj.prototype.constructor=Tj,Tj.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Cj.prototype.replicateOnChange=function(t,e){var n=new Tj(this,t);return e?n:n.doResume(null)},Cj.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},Lj.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Lj.prototype=Object.create(N.prototype),Lj.prototype.constructor=Lj,Lj.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Cj.prototype.insertAsync=function(t,e,n){var i=new Lj(this,t,e);return n?i:i.doResume(null)},Cj.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},Cj.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},Cj.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},Cj.$metadata$={kind:c,simpleName:"MessageReadDao_Repo",interfaces:[uj]},zj.$metadata$={kind:c,simpleName:"NetworkNodeDao",interfaces:[]},wj.prototype.replace_r74hje$=function(t){return this._insertAdapterNetworkNode_upsert.insertAndReturnId_11rb$(t)},Oj.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Oj.prototype=Object.create(N.prototype),Oj.prototype.constructor=Oj,Oj.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterNetworkNode_upsert.insertAndReturnIdAsync_11rb$(this.local$node,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},wj.prototype.insertAsync_r74hje$=function(t,e,n){var i=new Oj(this,t,e);return n?i:i.doResume(null)},wj.prototype.insertList_f2f1wn$=function(t){var e=this._insertAdapterNetworkNode_upsert.insertListAndReturnIds_4ezy5m$(t);return q(e)},wj.prototype.update_r74hje$=function(t){var e;rt(this._db,"UPDATE NetworkNode SET bluetoothMacAddress = ?, ipAddress = ?, wifiDirectMacAddress = ?, deviceWifiDirectName = ?, endpointUrl = ?, lastUpdateTimeStamp = ?, networkServiceLastUpdated = ?, nsdServiceName = ?, port = ?, numFailureCount = ?, wifiDirectDeviceStatus = ?, groupSsid = ? WHERE nodeId = ?",(e=t,function(t){return t.setString_vqvrqt$(1,e.bluetoothMacAddress),t.setString_vqvrqt$(2,e.ipAddress),t.setString_vqvrqt$(3,e.wifiDirectMacAddress),t.setString_vqvrqt$(4,e.deviceWifiDirectName),t.setString_vqvrqt$(5,e.endpointUrl),t.setLong_6svq3l$(6,e.lastUpdateTimeStamp),t.setLong_6svq3l$(7,e.networkServiceLastUpdated),t.setString_vqvrqt$(8,e.nsdServiceName),t.setInt_vux9f0$(9,e.port),t.setInt_vux9f0$(10,e.numFailureCount),t.setInt_vux9f0$(11,e.wifiDirectDeviceStatus),t.setString_vqvrqt$(12,e.groupSsid),t.setLong_6svq3l$(13,e.nodeId),t.executeUpdate()}))},wj.prototype.all=function(){return ht(this._db,new st("SELECT * FROM NetworkNode"),Aj)},wj.prototype.findNodeByIpAddress_61zpoe$=function(t){return ht(this._db,new st("SELECT * From NetworkNode WHERE ipAddress = ?"),(e=t,function(t){return t.setString_vqvrqt$(1,e),ut(t.executeQuery(),xj)}));var e},wj.prototype.findNodeById_s8cxhz$=function(t){return ht(this._db,new st("SELECT * From NetworkNode WHERE nodeId = ?"),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),Ij)}));var e},wj.prototype.findNodeByIpOrWifiDirectMacAddress_puj7f4$=function(t,e){return ht(this._db,new st("Select * From NetworkNode Where ((ipAddress = ? AND ipAddress IS NOT NULL) OR (wifiDirectMacAddress = ? AND wifiDirectMacAddress IS NOT NULL))"),(n=t,i=e,function(t){return t.setString_vqvrqt$(1,n),t.setString_vqvrqt$(2,i),ut(t.executeQuery(),Uj)}));var n,i},wj.prototype.findNodeByBluetoothAddress_61zpoe$=function(t){return ht(this._db,new st("SELECT * from NetworkNode WHERE bluetoothMacAddress = ?"),(e=t,function(t){return t.setString_vqvrqt$(1,e),ut(t.executeQuery(),Dj)}));var e},wj.prototype.deleteByBluetoothAddress_61zpoe$=function(t){var e;ht(this._db,new st("DELETE FROM NetworkNode WHERE bluetoothMacAddress = ?"),(e=t,function(t){return t.setString_vqvrqt$(1,e),t.executeUpdate()}))},Pj.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Pj.prototype=Object.create(N.prototype),Pj.prototype.constructor=Pj,Pj.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kj.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},kj.prototype=Object.create(N.prototype),kj.prototype.constructor=kj,kj.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st("DELETE FROM NetworkNode"),Mj,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},wj.prototype.deleteAllAsync=function(t,e){var n=new kj(this,t);return e?n:n.doResume(null)},jj.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},jj.prototype=Object.create(N.prototype),jj.prototype.constructor=jj,jj.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$nodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},qj.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},qj.prototype=Object.create(N.prototype),qj.prototype.constructor=qj,qj.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st("UPDATE NetworkNode SET numFailureCount = numFailureCount + 1 WHERE nodeId = ?"),Gj(this.local$nodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},wj.prototype.updateRetryCountAsync_s8cxhz$=function(t,e,n){var i=new qj(this,t,e);return n?i:i.doResume(null)},wj.prototype.findAllActiveNodes_yhmem3$=function(t,e){return ht(this._db,new st("Select * From NetworkNode WHERE lastUpdateTimeStamp >= ? AND numFailureCount <= ?"),(n=t,i=e,function(t){return t.setLong_6svq3l$(1,n),t.setInt_vux9f0$(2,i),ut(t.executeQuery(),Fj)}));var n,i},Bj.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Bj.prototype=Object.create(N.prototype),Bj.prototype.constructor=Bj,Bj.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$lastUpdateTimeStamp),this.local$_stmt.setString_vqvrqt$(2,this.local$closure$bluetoothAddress),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},wj.prototype.updateLastSeenAsync_4wgjuj$=function(t,e,n){return ct(this._db,new st("UPDATE NetworkNode set lastUpdateTimeStamp = ?, numFailureCount = 0 WHERE bluetoothMacAddress = ?"),(i=e,o=t,function(t,e,n){var r=new Bj(i,o,t,e);return n?r:r.doResume(null)}),n);var i,o},wj.prototype.deleteOldAndBadNode_yhmem3$=function(t,e){var n,i;ht(this._db,new st("DELETE FROM NetworkNode WHERE NetworkNode.lastUpdateTimeStamp < ? OR NetworkNode.numFailureCount >= ?"),(n=t,i=e,function(t){return t.setLong_6svq3l$(1,n),t.setInt_vux9f0$(2,i),t.executeUpdate()}))},wj.prototype.updateNetworkNodeGroupSsid_r69jt9$=function(t,e,n){var i,o,r;ht(this._db,new st("UPDATE NetworkNode SET groupSsid = ?, endpointUrl = ? WHERE nodeId = ?"),(i=e,o=n,r=t,function(t){return t.setString_vqvrqt$(1,i),t.setString_vqvrqt$(2,o),t.setLong_6svq3l$(3,r),t.executeUpdate()}))},wj.prototype.getEndpointUrlByGroupSsid_61zpoe$=function(t){return ht(this._db,new st("SELECT endpointUrl FROM NetworkNode WHERE groupSsid = ?"),(e=t,function(t){return t.setString_vqvrqt$(1,e),ut(t.executeQuery(),Wj)}));var e},Hj.prototype.makeSql_6taknv$=function(t){return"INSERT OR REPLACE INTO NetworkNode (nodeId, bluetoothMacAddress, ipAddress, wifiDirectMacAddress, deviceWifiDirectName, endpointUrl, lastUpdateTimeStamp, networkServiceLastUpdated, nsdServiceName, port, numFailureCount, wifiDirectDeviceStatus, groupSsid) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},Hj.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.nodeId,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.nodeId),t.setString_vqvrqt$(2,e.bluetoothMacAddress),t.setString_vqvrqt$(3,e.ipAddress),t.setString_vqvrqt$(4,e.wifiDirectMacAddress),t.setString_vqvrqt$(5,e.deviceWifiDirectName),t.setString_vqvrqt$(6,e.endpointUrl),t.setLong_6svq3l$(7,e.lastUpdateTimeStamp),t.setLong_6svq3l$(8,e.networkServiceLastUpdated),t.setString_vqvrqt$(9,e.nsdServiceName),t.setInt_vux9f0$(10,e.port),t.setInt_vux9f0$(11,e.numFailureCount),t.setInt_vux9f0$(12,e.wifiDirectDeviceStatus),t.setString_vqvrqt$(13,e.groupSsid)},Hj.$metadata$={kind:c,interfaces:[pt]},wj.$metadata$={kind:c,simpleName:"NetworkNodeDao_JdbcKt",interfaces:[zj]},Vj.$metadata$={kind:c,simpleName:"PersonAuth2Dao",interfaces:[]},Xj.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Xj.prototype=Object.create(N.prototype),Xj.prototype.constructor=Xj,Xj.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterPersonAuth2_.insertListAsync_4ezy5m$(this.local$auths,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Kj.prototype.insertListAsync_3mhn8e$=function(t,e,n){var i=new Xj(this,t,e);return n?i:i.doResume(null)},Jj.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Jj.prototype=Object.create(N.prototype),Jj.prototype.constructor=Jj,Jj.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterPersonAuth2_upsert.insertAndReturnIdAsync_11rb$(this.local$auth,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Kj.prototype.insertAsync_j8byhd$=function(t,e,n){var i=new Jj(this,t,e);return n?i:i.doResume(null)},Yj.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Yj.prototype=Object.create(N.prototype),Yj.prototype.constructor=Yj,Yj.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Zj.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Zj.prototype=Object.create(N.prototype),Zj.prototype.constructor=Zj,Zj.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO PersonAuth2Replicate(paPk, paDestination)\n | SELECT DISTINCT PersonAuth2.pauthUid AS paUid,\n | ? AS paDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | 562949953421312\n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | JOIN PersonAuth2\n | ON PersonAuth2.pauthUid = Person.personUid\n | WHERE UserSession.usClientNodeId = ? \n | AND PersonAuth2.pauthLct != COALESCE(\n | (SELECT paVersionId\n | FROM PersonAuth2Replicate\n | WHERE paPk = PersonAuth2.pauthUid\n | AND paDestination = ?), 0) \n | /*psql ON CONFLICT(paPk, paDestination) DO UPDATE\n | SET paPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO PersonAuth2Replicate(paPk, paDestination)\n | SELECT DISTINCT PersonAuth2.pauthUid AS paUid,\n | ? AS paDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | 562949953421312\n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | JOIN PersonAuth2\n | ON PersonAuth2.pauthUid = Person.personUid\n | WHERE UserSession.usClientNodeId = ? \n | AND PersonAuth2.pauthLct != COALESCE(\n | (SELECT paVersionId\n | FROM PersonAuth2Replicate\n | WHERE paPk = PersonAuth2.pauthUid\n | AND paDestination = ?), 0) \n | ON CONFLICT(paPk, paDestination) DO UPDATE\n | SET paPending = true\n | \n | \n |")),Qj(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Kj.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new Zj(this,t,e);return n?i:i.doResume(null)},tG.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},tG.prototype=Object.create(N.prototype),tG.prototype.constructor=tG,tG.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},nG.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},nG.prototype=Object.create(N.prototype),nG.prototype.constructor=nG,nG.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO PersonAuth2Replicate(paPk, paDestination)\n | SELECT DISTINCT PersonAuth2.pauthUid AS paUid,\n | UserSession.usClientNodeId AS paDestination\n | FROM ChangeLog\n | JOIN PersonAuth2\n | ON ChangeLog.chTableId = 678\n | AND ChangeLog.chEntityPk = PersonAuth2.pauthUid\n | JOIN Person\n | ON Person.personUid = PersonAuth2.pauthUid\n | \n | JOIN ScopedGrant \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT clazzEnrolmentClazzUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentPersonUid = Person.personUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT schoolMemberSchoolUid\n | FROM SchoolMember\n | WHERE schoolMemberPersonUid = Person.personUid\n | AND schoolMemberActive))\n | )\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 562949953421312\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND PersonAuth2.pauthLct != COALESCE(\n | (SELECT paVersionId\n | FROM PersonAuth2Replicate\n | WHERE paPk = PersonAuth2.pauthUid\n | AND paDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(paPk, paDestination) DO UPDATE\n | SET paPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO PersonAuth2Replicate(paPk, paDestination)\n | SELECT DISTINCT PersonAuth2.pauthUid AS paUid,\n | UserSession.usClientNodeId AS paDestination\n | FROM ChangeLog\n | JOIN PersonAuth2\n | ON ChangeLog.chTableId = 678\n | AND ChangeLog.chEntityPk = PersonAuth2.pauthUid\n | JOIN Person\n | ON Person.personUid = PersonAuth2.pauthUid\n | \n | JOIN ScopedGrant \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT clazzEnrolmentClazzUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentPersonUid = Person.personUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT schoolMemberSchoolUid\n | FROM SchoolMember\n | WHERE schoolMemberPersonUid = Person.personUid\n | AND schoolMemberActive))\n | )\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 562949953421312\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND PersonAuth2.pauthLct != COALESCE(\n | (SELECT paVersionId\n | FROM PersonAuth2Replicate\n | WHERE paPk = PersonAuth2.pauthUid\n | AND paDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(paPk, paDestination) DO UPDATE\n | SET paPending = true\n | \n | \n |")),eG,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Kj.prototype.replicateOnChange=function(t,e){var n=new nG(this,t);return e?n:n.doResume(null)},oG.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},oG.prototype=Object.create(N.prototype),oG.prototype.constructor=oG,oG.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,iG);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Kj.prototype.findByPersonUid_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT PersonAuth2.*\n | FROM PersonAuth2\n | WHERE PersonAuth2.pauthUid = ? \n | \n ")),(n=t,function(t,e,i){var o=new oG(n,t,e);return i?o:o.doResume(null)}),e);var n},sG.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},sG.prototype=Object.create(N.prototype),sG.prototype.constructor=sG,sG.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$username),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,rG);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Kj.prototype.findByUsername_61zpoe$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT PersonAuth2.*\n | FROM PersonAuth2\n | JOIN Person ON PersonAuth2.pauthUid = Person.personUid\n | WHERE Person.username = ?\n | \n ")),(n=t,function(t,e,i){var o=new sG(n,t,e);return i?o:o.doResume(null)}),e);var n},aG.prototype.makeSql_6taknv$=function(t){return"INSERT INTO PersonAuth2 (pauthUid, pauthMechanism, pauthAuth, pauthLcsn, pauthPcsn, pauthLcb, pauthLct) VALUES(?, ?, ?, ?, ?, ?, ?)"},aG.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){t.setLong_6svq3l$(1,e.pauthUid),t.setString_vqvrqt$(2,e.pauthMechanism),t.setString_vqvrqt$(3,e.pauthAuth),t.setLong_6svq3l$(4,e.pauthLcsn),t.setLong_6svq3l$(5,e.pauthPcsn),t.setLong_6svq3l$(6,e.pauthLcb),t.setLong_6svq3l$(7,e.pauthLct)},aG.$metadata$={kind:c,interfaces:[pt]},cG.prototype.makeSql_6taknv$=function(t){return"INSERT OR REPLACE INTO PersonAuth2 (pauthUid, pauthMechanism, pauthAuth, pauthLcsn, pauthPcsn, pauthLcb, pauthLct) VALUES(?, ?, ?, ?, ?, ?, ?)"},cG.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){t.setLong_6svq3l$(1,e.pauthUid),t.setString_vqvrqt$(2,e.pauthMechanism),t.setString_vqvrqt$(3,e.pauthAuth),t.setLong_6svq3l$(4,e.pauthLcsn),t.setLong_6svq3l$(5,e.pauthPcsn),t.setLong_6svq3l$(6,e.pauthLcb),t.setLong_6svq3l$(7,e.pauthLct)},cG.$metadata$={kind:c,interfaces:[pt]},Kj.$metadata$={kind:c,simpleName:"PersonAuth2Dao_JdbcKt",interfaces:[Vj]},uG.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},uG.prototype=Object.create(N.prototype),uG.prototype.constructor=uG,uG.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lG.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new uG(this,t,e);return n?i:i.doResume(null)},hG.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},hG.prototype=Object.create(N.prototype),hG.prototype.constructor=hG,hG.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lG.prototype.replicateOnChange=function(t,e){var n=new hG(this,t);return e?n:n.doResume(null)},dG.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},dG.prototype=Object.create(N.prototype),dG.prototype.constructor=dG,dG.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:F();for(var t=this.local$auths.iterator();t.hasNext();)t.next().pauthLct=J();if(this.state_0=2,this.result_0=this.$this._dao_0.insertListAsync_3mhn8e$(this.local$auths,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lG.prototype.insertListAsync_3mhn8e$=function(t,e,n){var i=new dG(this,t,e);return n?i:i.doResume(null)},lG.prototype.insertAsync_j8byhd$=function(t,e){return t.pauthLct=J(),this._dao_0.insertAsync_j8byhd$(t,e)},lG.prototype.findByPersonUid_s8cxhz$=function(t,e){return this._dao_0.findByPersonUid_s8cxhz$(t,e)},lG.prototype.findByUsername_61zpoe$=function(t,e){return this._dao_0.findByUsername_61zpoe$(t,e)},lG.$metadata$={kind:c,simpleName:"PersonAuth2Dao_ReplicateWrapper",interfaces:[Vj]},_G.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_G.prototype=Object.create(N.prototype),_G.prototype.constructor=_G,_G.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},pG.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new _G(this,t,e);return n?i:i.doResume(null)},mG.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},mG.prototype=Object.create(N.prototype),mG.prototype.constructor=mG,mG.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},pG.prototype.replicateOnChange=function(t,e){var n=new mG(this,t);return e?n:n.doResume(null)},fG.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fG.prototype=Object.create(N.prototype),fG.prototype.constructor=fG,fG.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertListAsync_3mhn8e$(this.local$auths,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},pG.prototype.insertListAsync_3mhn8e$=function(t,e,n){var i=new fG(this,t,e);return n?i:i.doResume(null)},gG.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},gG.prototype=Object.create(N.prototype),gG.prototype.constructor=gG,gG.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync_j8byhd$(this.local$auth,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},pG.prototype.insertAsync_j8byhd$=function(t,e,n){var i=new gG(this,t,e);return n?i:i.doResume(null)},$G.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},$G.prototype=Object.create(N.prototype),$G.prototype.constructor=$G,$G.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByPersonUid_s8cxhz$(this.local$personUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},pG.prototype.findByPersonUid_s8cxhz$=function(t,e,n){var i=new $G(this,t,e);return n?i:i.doResume(null)},EG.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},EG.prototype=Object.create(N.prototype),EG.prototype.constructor=EG,EG.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByUsername_61zpoe$(this.local$username,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},pG.prototype.findByUsername_61zpoe$=function(t,e,n){var i=new EG(this,t,e);return n?i:i.doResume(null)},pG.$metadata$={kind:c,simpleName:"PersonAuth2Dao_Repo",interfaces:[Vj]},yG.$metadata$={kind:c,simpleName:"PersonAuthDao",interfaces:[X6]},bG.prototype.insertAccessToken_sz9w29$=function(t){this._insertAdapterAccessToken_.insert_11rb$(t)},bG.prototype.insert_11rb$=function(t){return this._insertAdapterPersonAuth_.insertAndReturnId_11rb$(t)},SG.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},SG.prototype=Object.create(N.prototype),SG.prototype.constructor=SG,SG.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterPersonAuth_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},bG.prototype.insertAsync=function(t,e,n){var i=new SG(this,t,e);return n?i:i.doResume(null)},bG.prototype.insertList_4ezy5m$=function(t){this._insertAdapterPersonAuth_.insertList_4ezy5m$(t)},vG.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},vG.prototype=Object.create(N.prototype),vG.prototype.constructor=vG,vG.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$entity.passwordHash),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$entity.personAuthStatus),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$entity.personAuthUid),this.local$tmp$=this.local$closure$_result.v,this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$closure$_result.v=this.local$tmp$+this.result_0|0,V;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},NG.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},NG.prototype=Object.create(N.prototype),NG.prototype.constructor=NG,NG.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_result={v:0},this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE PersonAuth SET passwordHash = ?, personAuthStatus = ? WHERE personAuthUid = ?",CG(this.local$entity,this.local$_result),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$_result.v;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},bG.prototype.updateAsync_k01yar$=function(t,e,n){var i=new NG(this,t,e);return n?i:i.doResume(null)},bG.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE PersonAuth SET passwordHash = ?, personAuthStatus = ? WHERE personAuthUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setString_vqvrqt$(1,i.passwordHash),t.setInt_vux9f0$(2,i.personAuthStatus),t.setLong_6svq3l$(3,i.personAuthUid),t.executeUpdate()}return t.getConnection().commit(),V}))},bG.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE PersonAuth SET passwordHash = ?, personAuthStatus = ? WHERE personAuthUid = ?",(e=t,function(t){return t.setString_vqvrqt$(1,e.passwordHash),t.setInt_vux9f0$(2,e.personAuthStatus),t.setLong_6svq3l$(3,e.personAuthUid),t.executeUpdate()}))},LG.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},LG.prototype=Object.create(N.prototype),LG.prototype.constructor=LG,LG.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,TG);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},bG.prototype.findByUidAsync_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT * FROM PersonAuth WHERE personAuthUid = ?"),(n=t,function(t,e,i){var o=new LG(n,t,e);return i?o:o.doResume(null)}),e);var n},bG.prototype.findByUid_s8cxhz$=function(t){return ht(this._db,new st("SELECT * FROM PersonAuth WHERE personAuthUid = ?"),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),zG)}));var e},bG.prototype.findPersonByUsername_61zpoe$=function(t){return ht(this._db,new st("SELECT * FROM Person WHERE username = ?"),(e=t,function(t){return t.setString_vqvrqt$(1,e),ut(t.executeQuery(),wG)}));var e},bG.prototype.isPersonAdmin_s8cxhz$=function(t){return ht(this._db,new st("SELECT admin from Person WHERE personUid = ?"),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),OG)}));var e},RG.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},RG.prototype=Object.create(N.prototype),RG.prototype.constructor=RG,RG.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$passwordHash),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$personUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},bG.prototype.updatePasswordForPersonUid_a4hdmt$=function(t,e,n){return ct(this._db,new st("UPDATE PersonAuth set passwordHash = ? WHERE personAuthUid = ?"),(i=e,o=t,function(t,e,n){var r=new RG(i,o,t,e);return n?r:r.doResume(null)}),n);var i,o},AG.prototype.makeSql_6taknv$=function(t){return"INSERT INTO AccessToken (token, accessTokenPersonUid, expires) VALUES(?, ?, ?)"},AG.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){t.setString_vqvrqt$(1,e.token),t.setLong_6svq3l$(2,e.accessTokenPersonUid),t.setLong_6svq3l$(3,e.expires)},AG.$metadata$={kind:c,interfaces:[pt]},xG.prototype.makeSql_6taknv$=function(t){return"INSERT INTO PersonAuth (personAuthUid, passwordHash, personAuthStatus) VALUES(?, ?, ?)"},xG.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.personAuthUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.personAuthUid),t.setString_vqvrqt$(2,e.passwordHash),t.setInt_vux9f0$(3,e.personAuthStatus)},xG.$metadata$={kind:c,interfaces:[pt]},bG.$metadata$={kind:c,simpleName:"PersonAuthDao_JdbcKt",interfaces:[yG]},IG.prototype.findPersonsWithPermission_gs5uuz$=function(t,e,n,i,o,r,s,a){return void 0===s&&(s="%"),a?a(t,e,n,i,o,r,s):this.findPersonsWithPermission_gs5uuz$$default(t,e,n,i,o,r,s)},IG.prototype.findPersonsWithPermissionAsList_gs5uuz$=function(t,e,n,i,o,r,s,a){return void 0===s&&(s="%"),a?a(t,e,n,i,o,r,s):this.findPersonsWithPermissionAsList_gs5uuz$$default(t,e,n,i,o,r,s)},IG.$metadata$={kind:c,simpleName:"PersonDao",interfaces:[X6]},DG.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},DG.prototype=Object.create(N.prototype),DG.prototype.constructor=DG,DG.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterPerson_.insertListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},UG.prototype.insertListAsync_e0gxv4$=function(t,e,n){var i=new DG(this,t,e);return n?i:i.doResume(null)},PG.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},PG.prototype=Object.create(N.prototype),PG.prototype.constructor=PG,PG.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterPerson_upsert.insertAsync_11rb$(this.local$person,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},UG.prototype.insertOrReplace_6c9i1n$=function(t,e,n){var i=new PG(this,t,e);return n?i:i.doResume(null)},UG.prototype.insertAccessToken_sz9w29$=function(t){this._insertAdapterAccessToken_.insert_11rb$(t)},UG.prototype.insertPersonAuth_k01yar$=function(t){this._insertAdapterPersonAuth_.insert_11rb$(t)},MG.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},MG.prototype=Object.create(N.prototype),MG.prototype.constructor=MG,MG.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterPersonGroup_.insertAndReturnIdAsync_11rb$(this.local$personGroup,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},UG.prototype.insertPersonGroup_j5378c$=function(t,e,n){var i=new MG(this,t,e);return n?i:i.doResume(null)},kG.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},kG.prototype=Object.create(N.prototype),kG.prototype.constructor=kG,kG.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterPersonGroupMember_.insertAndReturnIdAsync_11rb$(this.local$personGroupMember,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},UG.prototype.insertPersonGroupMember_gftcgu$=function(t,e,n){var i=new kG(this,t,e);return n?i:i.doResume(null)},UG.prototype.insertAuditLog_6gshjl$=function(t){return this._insertAdapterAuditLog_.insertAndReturnId_11rb$(t)},UG.prototype.insert_11rb$=function(t){return this._insertAdapterPerson_.insertAndReturnId_11rb$(t)},jG.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},jG.prototype=Object.create(N.prototype),jG.prototype.constructor=jG,jG.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterPerson_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},UG.prototype.insertAsync=function(t,e,n){var i=new jG(this,t,e);return n?i:i.doResume(null)},UG.prototype.insertList_4ezy5m$=function(t){this._insertAdapterPerson_.insertList_4ezy5m$(t)},GG.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},GG.prototype=Object.create(N.prototype),GG.prototype.constructor=GG,GG.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$entity.username),this.local$_stmt.setString_vqvrqt$(2,this.local$closure$entity.firstNames),this.local$_stmt.setString_vqvrqt$(3,this.local$closure$entity.lastName),this.local$_stmt.setString_vqvrqt$(4,this.local$closure$entity.emailAddr),this.local$_stmt.setString_vqvrqt$(5,this.local$closure$entity.phoneNum),this.local$_stmt.setInt_vux9f0$(6,this.local$closure$entity.gender),this.local$_stmt.setBoolean_fzusl$(7,this.local$closure$entity.active),this.local$_stmt.setBoolean_fzusl$(8,this.local$closure$entity.admin),this.local$_stmt.setString_vqvrqt$(9,this.local$closure$entity.personNotes),this.local$_stmt.setString_vqvrqt$(10,this.local$closure$entity.fatherName),this.local$_stmt.setString_vqvrqt$(11,this.local$closure$entity.fatherNumber),this.local$_stmt.setString_vqvrqt$(12,this.local$closure$entity.motherName),this.local$_stmt.setString_vqvrqt$(13,this.local$closure$entity.motherNum),this.local$_stmt.setLong_6svq3l$(14,this.local$closure$entity.dateOfBirth),this.local$_stmt.setString_vqvrqt$(15,this.local$closure$entity.personAddress),this.local$_stmt.setString_vqvrqt$(16,this.local$closure$entity.personOrgId),this.local$_stmt.setLong_6svq3l$(17,this.local$closure$entity.personGroupUid),this.local$_stmt.setLong_6svq3l$(18,this.local$closure$entity.personMasterChangeSeqNum),this.local$_stmt.setLong_6svq3l$(19,this.local$closure$entity.personLocalChangeSeqNum),this.local$_stmt.setInt_vux9f0$(20,this.local$closure$entity.personLastChangedBy),this.local$_stmt.setLong_6svq3l$(21,this.local$closure$entity.personLct),this.local$_stmt.setString_vqvrqt$(22,this.local$closure$entity.personCountry),this.local$_stmt.setInt_vux9f0$(23,this.local$closure$entity.personType),this.local$_stmt.setLong_6svq3l$(24,this.local$closure$entity.personUid),this.local$tmp$=this.local$closure$_result.v,this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$closure$_result.v=this.local$tmp$+this.result_0|0,V;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},FG.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},FG.prototype=Object.create(N.prototype),FG.prototype.constructor=FG,FG.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_result={v:0},this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE Person SET username = ?, firstNames = ?, lastName = ?, emailAddr = ?, phoneNum = ?, gender = ?, active = ?, admin = ?, personNotes = ?, fatherName = ?, fatherNumber = ?, motherName = ?, motherNum = ?, dateOfBirth = ?, personAddress = ?, personOrgId = ?, personGroupUid = ?, personMasterChangeSeqNum = ?, personLocalChangeSeqNum = ?, personLastChangedBy = ?, personLct = ?, personCountry = ?, personType = ? WHERE personUid = ?",qG(this.local$entity,this.local$_result),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$_result.v;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},UG.prototype.updateAsync_6c9i1n$=function(t,e,n){var i=new FG(this,t,e);return n?i:i.doResume(null)},UG.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE Person SET username = ?, firstNames = ?, lastName = ?, emailAddr = ?, phoneNum = ?, gender = ?, active = ?, admin = ?, personNotes = ?, fatherName = ?, fatherNumber = ?, motherName = ?, motherNum = ?, dateOfBirth = ?, personAddress = ?, personOrgId = ?, personGroupUid = ?, personMasterChangeSeqNum = ?, personLocalChangeSeqNum = ?, personLastChangedBy = ?, personLct = ?, personCountry = ?, personType = ? WHERE personUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setString_vqvrqt$(1,i.username),t.setString_vqvrqt$(2,i.firstNames),t.setString_vqvrqt$(3,i.lastName),t.setString_vqvrqt$(4,i.emailAddr),t.setString_vqvrqt$(5,i.phoneNum),t.setInt_vux9f0$(6,i.gender),t.setBoolean_fzusl$(7,i.active),t.setBoolean_fzusl$(8,i.admin),t.setString_vqvrqt$(9,i.personNotes),t.setString_vqvrqt$(10,i.fatherName),t.setString_vqvrqt$(11,i.fatherNumber),t.setString_vqvrqt$(12,i.motherName),t.setString_vqvrqt$(13,i.motherNum),t.setLong_6svq3l$(14,i.dateOfBirth),t.setString_vqvrqt$(15,i.personAddress),t.setString_vqvrqt$(16,i.personOrgId),t.setLong_6svq3l$(17,i.personGroupUid),t.setLong_6svq3l$(18,i.personMasterChangeSeqNum),t.setLong_6svq3l$(19,i.personLocalChangeSeqNum),t.setInt_vux9f0$(20,i.personLastChangedBy),t.setLong_6svq3l$(21,i.personLct),t.setString_vqvrqt$(22,i.personCountry),t.setInt_vux9f0$(23,i.personType),t.setLong_6svq3l$(24,i.personUid),t.executeUpdate()}return t.getConnection().commit(),V}))},UG.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE Person SET username = ?, firstNames = ?, lastName = ?, emailAddr = ?, phoneNum = ?, gender = ?, active = ?, admin = ?, personNotes = ?, fatherName = ?, fatherNumber = ?, motherName = ?, motherNum = ?, dateOfBirth = ?, personAddress = ?, personOrgId = ?, personGroupUid = ?, personMasterChangeSeqNum = ?, personLocalChangeSeqNum = ?, personLastChangedBy = ?, personLct = ?, personCountry = ?, personType = ? WHERE personUid = ?",(e=t,function(t){return t.setString_vqvrqt$(1,e.username),t.setString_vqvrqt$(2,e.firstNames),t.setString_vqvrqt$(3,e.lastName),t.setString_vqvrqt$(4,e.emailAddr),t.setString_vqvrqt$(5,e.phoneNum),t.setInt_vux9f0$(6,e.gender),t.setBoolean_fzusl$(7,e.active),t.setBoolean_fzusl$(8,e.admin),t.setString_vqvrqt$(9,e.personNotes),t.setString_vqvrqt$(10,e.fatherName),t.setString_vqvrqt$(11,e.fatherNumber),t.setString_vqvrqt$(12,e.motherName),t.setString_vqvrqt$(13,e.motherNum),t.setLong_6svq3l$(14,e.dateOfBirth),t.setString_vqvrqt$(15,e.personAddress),t.setString_vqvrqt$(16,e.personOrgId),t.setLong_6svq3l$(17,e.personGroupUid),t.setLong_6svq3l$(18,e.personMasterChangeSeqNum),t.setLong_6svq3l$(19,e.personLocalChangeSeqNum),t.setInt_vux9f0$(20,e.personLastChangedBy),t.setLong_6svq3l$(21,e.personLct),t.setString_vqvrqt$(22,e.personCountry),t.setInt_vux9f0$(23,e.personType),t.setLong_6svq3l$(24,e.personUid),t.executeUpdate()}))},BG.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},BG.prototype=Object.create(N.prototype),BG.prototype.constructor=BG,BG.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HG.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},HG.prototype=Object.create(N.prototype),HG.prototype.constructor=HG,HG.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO PersonReplicate(personPk, personDestination)\n | SELECT DISTINCT Person.personUid AS personUid,\n | ? AS personDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | 64\n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | WHERE Person.personType = 0\n | AND UserSession.usClientNodeId = ?\n | AND Person.personLct != COALESCE(\n | (SELECT personVersionId\n | FROM PersonReplicate\n | WHERE personPk = Person.personUid\n | AND personDestination = ?), 0) \n | /*psql ON CONFLICT(personPk, personDestination) DO UPDATE\n | SET personPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO PersonReplicate(personPk, personDestination)\n | SELECT DISTINCT Person.personUid AS personUid,\n | ? AS personDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | 64\n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | WHERE Person.personType = 0\n | AND UserSession.usClientNodeId = ?\n | AND Person.personLct != COALESCE(\n | (SELECT personVersionId\n | FROM PersonReplicate\n | WHERE personPk = Person.personUid\n | AND personDestination = ?), 0) \n | ON CONFLICT(personPk, personDestination) DO UPDATE\n | SET personPending = true\n | \n | \n |")),WG(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},UG.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new HG(this,t,e);return n?i:i.doResume(null)},VG.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},VG.prototype=Object.create(N.prototype),VG.prototype.constructor=VG,VG.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},XG.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},XG.prototype=Object.create(N.prototype),XG.prototype.constructor=XG,XG.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO PersonReplicate(personPk, personDestination)\n | SELECT DISTINCT Person.personUid AS personUid,\n | UserSession.usClientNodeId AS personDestination\n | FROM ChangeLog\n | JOIN Person\n | ON ChangeLog.chTableId = 9\n | AND ChangeLog.chEntityPk = Person.personUid\n | \n | JOIN ScopedGrant \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT clazzEnrolmentClazzUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentPersonUid = Person.personUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT schoolMemberSchoolUid\n | FROM SchoolMember\n | WHERE schoolMemberPersonUid = Person.personUid\n | AND schoolMemberActive))\n | )\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 64\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE Person.personType = 0\n | AND UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND Person.personLct != COALESCE(\n | (SELECT personVersionId\n | FROM PersonReplicate\n | WHERE personPk = Person.personUid\n | AND personDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(personPk, personDestination) DO UPDATE\n | SET personPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO PersonReplicate(personPk, personDestination)\n | SELECT DISTINCT Person.personUid AS personUid,\n | UserSession.usClientNodeId AS personDestination\n | FROM ChangeLog\n | JOIN Person\n | ON ChangeLog.chTableId = 9\n | AND ChangeLog.chEntityPk = Person.personUid\n | \n | JOIN ScopedGrant \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT clazzEnrolmentClazzUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentPersonUid = Person.personUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT schoolMemberSchoolUid\n | FROM SchoolMember\n | WHERE schoolMemberPersonUid = Person.personUid\n | AND schoolMemberActive))\n | )\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 64\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE Person.personType = 0\n | AND UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND Person.personLct != COALESCE(\n | (SELECT personVersionId\n | FROM PersonReplicate\n | WHERE personPk = Person.personUid\n | AND personDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(personPk, personDestination) DO UPDATE\n | SET personPending = true\n | \n | \n |")),KG,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},UG.prototype.replicateOnChange=function(t,e){var n=new XG(this,t);return e?n:n.doResume(null)},YG.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},YG.prototype=Object.create(N.prototype),YG.prototype.constructor=YG,YG.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$username),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,JG);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},UG.prototype.findByUsernameCount_61zpoe$=function(t,e){return ct(this._db,new st("SELECT COUNT(*) FROM Person where Person.username = ?"),(n=t,function(t,e,i){var o=new YG(n,t,e);return i?o:o.doResume(null)}),e);var n},UG.prototype.isValidToken_4wgjuj$=function(t,e){return ht(this._db,new st("SELECT EXISTS(SELECT token FROM AccessToken WHERE token = ? and accessTokenPersonUid = ?)"),(n=t,i=e,function(t){return t.setString_vqvrqt$(1,n),t.setLong_6svq3l$(2,i),ut(t.executeQuery(),QG)}));var n,i},tq.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},tq.prototype=Object.create(N.prototype),tq.prototype.constructor=tq,tq.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$username),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,ZG);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},UG.prototype.findUidAndPasswordHashAsync_61zpoe$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT Person.personUid, Person.admin, Person.firstNames, Person.lastName, \n | PersonAuth.passwordHash\n | FROM Person\n | JOIN PersonAuth\n | ON Person.personUid = PersonAuth.personAuthUid\n | WHERE Person.username = ?\n | \n ")),(n=t,function(t,e,i){var o=new tq(n,t,e);return i?o:o.doResume(null)}),e);var n},nq.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},nq.prototype=Object.create(N.prototype),nq.prototype.constructor=nq,nq.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$username),this.local$_stmt.setString_vqvrqt$(2,this.local$closure$passwordHash),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,eq);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},UG.prototype.findByUsernameAndPasswordHash2_puj7f4$=function(t,e,n){return ct(this._db,new st(S("\n |\n | SELECT Person.*\n | FROM Person\n | JOIN PersonAuth2\n | ON Person.personUid = PersonAuth2.pauthUid\n | WHERE Person.username = ? \n | AND PersonAuth2.pauthAuth = ?\n | \n ")),(i=t,o=e,function(t,e,n){var r=new nq(i,o,t,e);return n?r:r.doResume(null)}),n);var i,o},oq.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},oq.prototype=Object.create(N.prototype),oq.prototype.constructor=oq,oq.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$permission),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$accountPersonUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,iq);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},UG.prototype.personHasPermissionAsync_b9bd0d$=function(t,e,n,i){return ct(this._db,new st(S("\n |\n | SELECT EXISTS(\n | SELECT 1\n | FROM Person\n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | JOIN PersonGroupMember \n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | WHERE Person.personUid = ?\n | AND (ScopedGrant.sgPermissions & ?) > 0\n | AND PersonGroupMember.groupMemberPersonUid = ?\n | LIMIT 1)\n | \n ")),(o=e,r=n,s=t,function(t,e,n){var i=new oq(o,r,s,t,e);return n?i:i.doResume(null)}),i);var o,r,s},sq.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},sq.prototype=Object.create(N.prototype),sq.prototype.constructor=sq,sq.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$accountPersonUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,rq);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},UG.prototype.personIsAdmin_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT COALESCE((SELECT admin FROM Person WHERE personUid = ?), 0)",void 0,void 0,void 0,"SELECT COALESCE((SELECT admin FROM Person WHERE personUid = ?), FALSE)"),(n=t,function(t,e,i){var o=new sq(n,t,e);return i?o:o.doResume(null)}),e);var n},UG.prototype.findByUsername_pdl1vj$=function(t){return ht(this._db,new st("SELECT Person.* FROM PERSON Where Person.username = ?"),(e=t,function(t){return t.setString_vqvrqt$(1,e),ut(t.executeQuery(),aq)}));var e},lq.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},lq.prototype=Object.create(N.prototype),lq.prototype.constructor=lq,lq.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$nodeId),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,cq);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},UG.prototype.findSystemAccount_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT Person.*\n | FROM Person\n | WHERE Person.dateOfBirth = ?\n | AND Person.personType = 1\n | \n ")),(n=t,function(t,e,i){var o=new lq(n,t,e);return i?o:o.doResume(null)}),e);var n},UG.prototype.findByUid_s8cxhz$=function(t){return ht(this._db,new st("SELECT * FROM PERSON WHERE Person.personUid = ?"),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),uq)}));var e},dq.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},dq.prototype=Object.create(N.prototype),dq.prototype.constructor=dq,dq.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,hq);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},UG.prototype.findPersonAccountByUid_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT Person.*, null as newPassword, null as currentPassword,null as confirmedPassword FROM PERSON WHERE Person.personUid = ?"),(n=t,function(t,e,i){var o=new dq(n,t,e);return i?o:o.doResume(null)}),e);var n},_q.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_q.prototype=Object.create(N.prototype),_q.prototype.constructor=_q,_q.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,pq);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},fq.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fq.prototype=Object.create(N.prototype),fq.prototype.constructor=fq,fq.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$PersonDao_JdbcKt._db,new st("SELECT * From Person WHERE personUid = ?"),mq(this.local$closure$uid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},UG.prototype.findByUidLive_s8cxhz$=function(t){return new ft(this._db,Et("Person"),(e=this,n=t,function(t,i){var o=new fq(e,n,t);return i?o:o.doResume(null)}));var e,n},$q.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},$q.prototype=Object.create(N.prototype),$q.prototype.constructor=$q,$q.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,gq);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},UG.prototype.findByUidAsync_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT * FROM Person WHERE personUid = ?"),(n=t,function(t,e,i){var o=new $q(n,t,e);return i?o:o.doResume(null)}),e);var n},bq.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},bq.prototype=Object.create(N.prototype),bq.prototype.constructor=bq,bq.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$accountPersonUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$excludeClazz),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$excludeClazz),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$timestamp),this.local$_stmt.setLong_6svq3l$(5,this.local$closure$excludeSchool),this.local$_stmt.setLong_6svq3l$(6,this.local$closure$excludeSchool),this.local$_stmt.setLong_6svq3l$(7,this.local$closure$timestamp),this.local$_stmt.setArray_wqp8hw$(8,yt(this.local$_stmt.getConnection(),"BIGINT",q(this.local$closure$excludeSelected))),this.local$_stmt.setString_vqvrqt$(9,this.local$closure$searchText),this.local$_stmt.setString_vqvrqt$(10,this.local$closure$searchText),this.local$_stmt.setInt_vux9f0$(11,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(12,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(13,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(14,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,yq);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vq.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},vq.prototype=Object.create(N.prototype),vq.prototype.constructor=vq,vq.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$PersonDao_JdbcKt._db,new st(S("\n |SELECT * FROM (\n | SELECT Person.* \n | FROM PersonGroupMember \n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | 64\n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | WHERE PersonGroupMember.groupMemberPersonUid = ?\n | AND PersonGroupMember.groupMemberActive \n | AND (? = 0 OR ? NOT IN\n | (SELECT clazzEnrolmentClazzUid \n | FROM ClazzEnrolment \n | WHERE clazzEnrolmentPersonUid = Person.personUid \n | AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n | AND ClazzEnrolment.clazzEnrolmentDateLeft\n | AND ClazzEnrolment.clazzEnrolmentActive))\n | AND (? = 0 OR ? NOT IN\n | (SELECT schoolMemberSchoolUid\n | FROM SchoolMember \n | WHERE schoolMemberPersonUid = Person.personUid \n | AND ? BETWEEN SchoolMember.schoolMemberJoinDate\n | AND SchoolMember.schoolMemberLeftDate ))\n | AND Person.personType = 0 \n | AND (Person.personUid NOT IN (?))\n | AND (? = '%' \n | OR Person.firstNames || ' ' || Person.lastName LIKE ?)\n | GROUP BY Person.personUid\n | ORDER BY CASE(?)\n | WHEN 1 THEN Person.firstNames\n | WHEN 3 THEN Person.lastName\n | ELSE ''\n | END ASC,\n | CASE(?)\n | WHEN 2 THEN Person.firstNames\n | WHEN 4 THEN Person.lastName\n | ELSE ''\n | END DESC\n | ) LIMIT ? OFFSET ?\n "),!0),Sq(this.local$closure$accountPersonUid,this.local$closure$excludeClazz,this.local$closure$timestamp,this.local$closure$excludeSchool,this.local$closure$excludeSelected,this.local$closure$searchText,this.local$closure$sortOrder,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Eq.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$PersonDao_JdbcKt._db,p(["PersonGroupMember","ScopedGrant","Person","ClazzEnrolment","SchoolMember"]),(n=this.this$PersonDao_JdbcKt,i=this.closure$accountPersonUid,o=this.closure$excludeClazz,r=this.closure$timestamp,s=this.closure$excludeSchool,a=this.closure$excludeSelected,c=this.closure$searchText,l=this.closure$sortOrder,u=e,h=t,function(t,e){var d=new vq(n,i,o,r,s,a,c,l,u,h,t);return e?d:d.doResume(null)}));var n,i,o,r,s,a,c,l,u,h},Nq.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Nq.prototype=Object.create(N.prototype),Nq.prototype.constructor=Nq,Nq.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$accountPersonUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$excludeClazz),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$excludeClazz),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$timestamp),this.local$_stmt.setLong_6svq3l$(5,this.local$closure$excludeSchool),this.local$_stmt.setLong_6svq3l$(6,this.local$closure$excludeSchool),this.local$_stmt.setLong_6svq3l$(7,this.local$closure$timestamp),this.local$_stmt.setArray_wqp8hw$(8,yt(this.local$_stmt.getConnection(),"BIGINT",q(this.local$closure$excludeSelected))),this.local$_stmt.setString_vqvrqt$(9,this.local$closure$searchText),this.local$_stmt.setString_vqvrqt$(10,this.local$closure$searchText),this.local$_stmt.setInt_vux9f0$(11,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(12,this.local$closure$sortOrder),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Cq);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Lq.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Lq.prototype=Object.create(N.prototype),Lq.prototype.constructor=Lq,Lq.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$PersonDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (\n | SELECT Person.* \n | FROM PersonGroupMember \n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | 64\n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | WHERE PersonGroupMember.groupMemberPersonUid = ?\n | AND PersonGroupMember.groupMemberActive \n | AND (? = 0 OR ? NOT IN\n | (SELECT clazzEnrolmentClazzUid \n | FROM ClazzEnrolment \n | WHERE clazzEnrolmentPersonUid = Person.personUid \n | AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n | AND ClazzEnrolment.clazzEnrolmentDateLeft\n | AND ClazzEnrolment.clazzEnrolmentActive))\n | AND (? = 0 OR ? NOT IN\n | (SELECT schoolMemberSchoolUid\n | FROM SchoolMember \n | WHERE schoolMemberPersonUid = Person.personUid \n | AND ? BETWEEN SchoolMember.schoolMemberJoinDate\n | AND SchoolMember.schoolMemberLeftDate ))\n | AND Person.personType = 0 \n | AND (Person.personUid NOT IN (?))\n | AND (? = '%' \n | OR Person.firstNames || ' ' || Person.lastName LIKE ?)\n | GROUP BY Person.personUid\n | ORDER BY CASE(?)\n | WHEN 1 THEN Person.firstNames\n | WHEN 3 THEN Person.lastName\n | ELSE ''\n | END ASC,\n | CASE(?)\n | WHEN 2 THEN Person.firstNames\n | WHEN 4 THEN Person.lastName\n | ELSE ''\n | END DESC\n | ) \n "),!0),Tq(this.local$closure$accountPersonUid,this.local$closure$excludeClazz,this.local$closure$timestamp,this.local$closure$excludeSchool,this.local$closure$excludeSelected,this.local$closure$searchText,this.local$closure$sortOrder),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Eq.prototype.getLength=function(){return new ft(this.this$PersonDao_JdbcKt._db,p(["PersonGroupMember","ScopedGrant","Person","ClazzEnrolment","SchoolMember"]),(t=this.this$PersonDao_JdbcKt,e=this.closure$accountPersonUid,n=this.closure$excludeClazz,i=this.closure$timestamp,o=this.closure$excludeSchool,r=this.closure$excludeSelected,s=this.closure$searchText,a=this.closure$sortOrder,function(c,l){var u=new Lq(t,e,n,i,o,r,s,a,c);return l?u:u.doResume(null)}));var t,e,n,i,o,r,s,a},Eq.$metadata$={kind:c,interfaces:[gt]},UG.prototype.findPersonsWithPermission_gs5uuz$$default=function(t,e,n,i,o,r,s){return new Eq(this,o,e,t,n,i,s,r)},UG.prototype.findPersonsWithPermissionAsList_gs5uuz$$default=function(t,e,n,i,o,r,s){return ht(this._db,new st(S("\n |\n | SELECT Person.* \n | FROM PersonGroupMember \n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | 64\n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | WHERE PersonGroupMember.groupMemberPersonUid = ?\n | AND PersonGroupMember.groupMemberActive \n | AND (? = 0 OR ? NOT IN\n | (SELECT clazzEnrolmentClazzUid \n | FROM ClazzEnrolment \n | WHERE clazzEnrolmentPersonUid = Person.personUid \n | AND ? BETWEEN ClazzEnrolment.clazzEnrolmentDateJoined \n | AND ClazzEnrolment.clazzEnrolmentDateLeft\n | AND ClazzEnrolment.clazzEnrolmentActive))\n | AND (? = 0 OR ? NOT IN\n | (SELECT schoolMemberSchoolUid\n | FROM SchoolMember \n | WHERE schoolMemberPersonUid = Person.personUid \n | AND ? BETWEEN SchoolMember.schoolMemberJoinDate\n | AND SchoolMember.schoolMemberLeftDate ))\n | AND Person.personType = 0 \n | AND (Person.personUid NOT IN (?))\n | AND (? = '%' \n | OR Person.firstNames || ' ' || Person.lastName LIKE ?)\n | GROUP BY Person.personUid\n | ORDER BY CASE(?)\n | WHEN 1 THEN Person.firstNames\n | WHEN 3 THEN Person.lastName\n | ELSE ''\n | END ASC,\n | CASE(?)\n | WHEN 2 THEN Person.firstNames\n | WHEN 4 THEN Person.lastName\n | ELSE ''\n | END DESC\n | \n "),!0),(a=o,c=e,l=t,u=n,h=i,d=s,p=r,function(t){return t.setLong_6svq3l$(1,a),t.setLong_6svq3l$(2,c),t.setLong_6svq3l$(3,c),t.setLong_6svq3l$(4,l),t.setLong_6svq3l$(5,u),t.setLong_6svq3l$(6,u),t.setLong_6svq3l$(7,l),t.setArray_wqp8hw$(8,yt(t.getConnection(),"BIGINT",q(h))),t.setString_vqvrqt$(9,d),t.setString_vqvrqt$(10,d),t.setInt_vux9f0$(11,p),t.setInt_vux9f0$(12,p),ut(t.executeQuery(),zq)}));var a,c,l,u,h,d,p},Oq.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Oq.prototype=Object.create(N.prototype),Oq.prototype.constructor=Oq,Oq.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$activeUserPersonUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$personUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,wq);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Aq.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Aq.prototype=Object.create(N.prototype),Aq.prototype.constructor=Aq,Aq.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$PersonDao_JdbcKt._db,new st(S("\n |\n | SELECT Person.*, PersonParentJoin.* \n | FROM Person\n | LEFT JOIN PersonParentJoin on ppjUid = (\n | SELECT ppjUid \n | FROM PersonParentJoin\n | WHERE ppjMinorPersonUid = ? \n | AND ppjParentPersonUid = ? \n | LIMIT 1) \n | WHERE Person.personUid = ?\n | \n ")),Rq(this.local$closure$personUid,this.local$closure$activeUserPersonUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},UG.prototype.findByUidWithDisplayDetailsLive_3pjtqy$=function(t,e){return new ft(this._db,p(["Person","PersonParentJoin"]),(n=this,i=t,o=e,function(t,e){var r=new Aq(n,i,o,t);return e?r:r.doResume(null)}));var n,i,o},UG.prototype.getAllPerson=function(){return ht(this._db,new st("SELECT * FROM Person"),Iq)},Uq.prototype.makeSql_6taknv$=function(t){return"INSERT INTO Person (personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, admin, personNotes, fatherName, fatherNumber, motherName, motherNum, dateOfBirth, personAddress, personOrgId, personGroupUid, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, personLct, personCountry, personType) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},Uq.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.personUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.personUid),t.setString_vqvrqt$(2,e.username),t.setString_vqvrqt$(3,e.firstNames),t.setString_vqvrqt$(4,e.lastName),t.setString_vqvrqt$(5,e.emailAddr),t.setString_vqvrqt$(6,e.phoneNum),t.setInt_vux9f0$(7,e.gender),t.setBoolean_fzusl$(8,e.active),t.setBoolean_fzusl$(9,e.admin),t.setString_vqvrqt$(10,e.personNotes),t.setString_vqvrqt$(11,e.fatherName),t.setString_vqvrqt$(12,e.fatherNumber),t.setString_vqvrqt$(13,e.motherName),t.setString_vqvrqt$(14,e.motherNum),t.setLong_6svq3l$(15,e.dateOfBirth),t.setString_vqvrqt$(16,e.personAddress),t.setString_vqvrqt$(17,e.personOrgId),t.setLong_6svq3l$(18,e.personGroupUid),t.setLong_6svq3l$(19,e.personMasterChangeSeqNum),t.setLong_6svq3l$(20,e.personLocalChangeSeqNum),t.setInt_vux9f0$(21,e.personLastChangedBy),t.setLong_6svq3l$(22,e.personLct),t.setString_vqvrqt$(23,e.personCountry),t.setInt_vux9f0$(24,e.personType)},Uq.$metadata$={kind:c,interfaces:[pt]},Dq.prototype.makeSql_6taknv$=function(t){return"INSERT OR REPLACE INTO Person (personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, admin, personNotes, fatherName, fatherNumber, motherName, motherNum, dateOfBirth, personAddress, personOrgId, personGroupUid, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, personLct, personCountry, personType) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},Dq.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.personUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.personUid),t.setString_vqvrqt$(2,e.username),t.setString_vqvrqt$(3,e.firstNames),t.setString_vqvrqt$(4,e.lastName),t.setString_vqvrqt$(5,e.emailAddr),t.setString_vqvrqt$(6,e.phoneNum),t.setInt_vux9f0$(7,e.gender),t.setBoolean_fzusl$(8,e.active),t.setBoolean_fzusl$(9,e.admin),t.setString_vqvrqt$(10,e.personNotes),t.setString_vqvrqt$(11,e.fatherName),t.setString_vqvrqt$(12,e.fatherNumber),t.setString_vqvrqt$(13,e.motherName),t.setString_vqvrqt$(14,e.motherNum),t.setLong_6svq3l$(15,e.dateOfBirth),t.setString_vqvrqt$(16,e.personAddress),t.setString_vqvrqt$(17,e.personOrgId),t.setLong_6svq3l$(18,e.personGroupUid),t.setLong_6svq3l$(19,e.personMasterChangeSeqNum),t.setLong_6svq3l$(20,e.personLocalChangeSeqNum),t.setInt_vux9f0$(21,e.personLastChangedBy),t.setLong_6svq3l$(22,e.personLct),t.setString_vqvrqt$(23,e.personCountry),t.setInt_vux9f0$(24,e.personType)},Dq.$metadata$={kind:c,interfaces:[pt]},Pq.prototype.makeSql_6taknv$=function(t){return"INSERT INTO AccessToken (token, accessTokenPersonUid, expires) VALUES(?, ?, ?)"},Pq.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){t.setString_vqvrqt$(1,e.token),t.setLong_6svq3l$(2,e.accessTokenPersonUid),t.setLong_6svq3l$(3,e.expires)},Pq.$metadata$={kind:c,interfaces:[pt]},Mq.prototype.makeSql_6taknv$=function(t){return"INSERT INTO PersonAuth (personAuthUid, passwordHash, personAuthStatus) VALUES(?, ?, ?)"},Mq.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.personAuthUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.personAuthUid),t.setString_vqvrqt$(2,e.passwordHash),t.setInt_vux9f0$(3,e.personAuthStatus)},Mq.$metadata$={kind:c,interfaces:[pt]},kq.prototype.makeSql_6taknv$=function(t){return"INSERT INTO PersonGroup (groupUid, groupMasterCsn, groupLocalCsn, groupLastChangedBy, groupLct, groupName, groupActive, personGroupFlag) VALUES(?, ?, ?, ?, ?, ?, ?, ?)"},kq.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.groupUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.groupUid),t.setLong_6svq3l$(2,e.groupMasterCsn),t.setLong_6svq3l$(3,e.groupLocalCsn),t.setInt_vux9f0$(4,e.groupLastChangedBy),t.setLong_6svq3l$(5,e.groupLct),t.setString_vqvrqt$(6,e.groupName),t.setBoolean_fzusl$(7,e.groupActive),t.setInt_vux9f0$(8,e.personGroupFlag)},kq.$metadata$={kind:c,interfaces:[pt]},jq.prototype.makeSql_6taknv$=function(t){return"INSERT INTO PersonGroupMember (groupMemberUid, groupMemberActive, groupMemberPersonUid, groupMemberGroupUid, groupMemberMasterCsn, groupMemberLocalCsn, groupMemberLastChangedBy, groupMemberLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?)"},jq.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.groupMemberUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.groupMemberUid),t.setBoolean_fzusl$(2,e.groupMemberActive),t.setLong_6svq3l$(3,e.groupMemberPersonUid),t.setLong_6svq3l$(4,e.groupMemberGroupUid),t.setLong_6svq3l$(5,e.groupMemberMasterCsn),t.setLong_6svq3l$(6,e.groupMemberLocalCsn),t.setInt_vux9f0$(7,e.groupMemberLastChangedBy),t.setLong_6svq3l$(8,e.groupMemberLct)},jq.$metadata$={kind:c,interfaces:[pt]},Gq.prototype.makeSql_6taknv$=function(t){return"INSERT INTO AuditLog (auditLogUid, auditLogMasterChangeSeqNum, auditLogLocalChangeSeqNum, auditLogLastChangedBy, auditLogLct, auditLogActorPersonUid, auditLogTableUid, auditLogEntityUid, auditLogDate, notes) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},Gq.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.auditLogUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.auditLogUid),t.setLong_6svq3l$(2,e.auditLogMasterChangeSeqNum),t.setLong_6svq3l$(3,e.auditLogLocalChangeSeqNum),t.setInt_vux9f0$(4,e.auditLogLastChangedBy),t.setLong_6svq3l$(5,e.auditLogLct),t.setLong_6svq3l$(6,e.auditLogActorPersonUid),t.setInt_vux9f0$(7,e.auditLogTableUid),t.setLong_6svq3l$(8,e.auditLogEntityUid),t.setLong_6svq3l$(9,e.auditLogDate),t.setString_vqvrqt$(10,e.notes)},Gq.$metadata$={kind:c,interfaces:[pt]};function l1(t,e,n,i,o){return function(r,s,a){var c=new c1(t,e,n,i,o,r,s);return a?c:c.doResume(null)}}function u1(t,e,n,i,o,r,s){N.call(this,s),this.exceptionState_0=1,this.local$this$StatementDao_JdbcKt=t,this.local$closure$accountPersonUid=e,this.local$closure$contentEntryUid=n,this.local$closure$personUid=i,this.local$closure$_limit=o,this.local$closure$_offset=r}function h1(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function d1(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$accountPersonUid=t,this.local$closure$contentEntryUid=e,this.local$closure$personUid=n,this.local$_stmt=i}function p1(t,e,n){return function(i,o,r){var s=new d1(t,e,n,i,o);return r?s:s.doResume(null)}}function _1(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$this$StatementDao_JdbcKt=t,this.local$closure$accountPersonUid=e,this.local$closure$contentEntryUid=n,this.local$closure$personUid=i}function m1(t,e,n,i,o){this.this$StatementDao_JdbcKt=t,this.closure$accountPersonUid=e,this.closure$contentEntryUid=n,this.closure$personUid=i,this.closure$contextRegistration=o,gt.call(this)}function f1(t){return mt(t,(e=t,function(t){var n=e.getString_61zpoe$("verbDisplay"),i=e.getString_61zpoe$("objectDisplay"),o=e.getLong_61zpoe$("statementUid"),r=e.getString_61zpoe$("statementId"),s=e.getLong_61zpoe$("statementPersonUid"),a=e.getLong_61zpoe$("statementVerbUid"),c=e.getLong_61zpoe$("xObjectUid"),l=e.getLong_61zpoe$("subStatementActorUid"),u=e.getLong_61zpoe$("substatementVerbUid"),h=e.getLong_61zpoe$("subStatementObjectUid"),d=e.getLong_61zpoe$("agentUid"),p=e.getLong_61zpoe$("instructorUid"),_=e.getLong_61zpoe$("authorityUid"),m=e.getLong_61zpoe$("teamUid"),f=e.getBoolean_61zpoe$("resultCompletion"),g=e.getByte_61zpoe$("resultSuccess"),$=e.getFloat_61zpoe$("resultScoreScaled"),E=e.getLong_61zpoe$("resultScoreRaw"),y=e.getLong_61zpoe$("resultScoreMin"),b=e.getLong_61zpoe$("resultScoreMax"),S=e.getLong_61zpoe$("resultDuration"),v=e.getString_61zpoe$("resultResponse"),C=e.getLong_61zpoe$("timestamp"),N=e.getLong_61zpoe$("stored"),T=e.getString_61zpoe$("contextRegistration"),L=e.getString_61zpoe$("contextPlatform"),z=e.getString_61zpoe$("contextStatementId"),w=e.getString_61zpoe$("fullStatement"),O=e.getLong_61zpoe$("statementMasterChangeSeqNum"),R=e.getLong_61zpoe$("statementLocalChangeSeqNum"),A=e.getInt_61zpoe$("statementLastChangedBy"),x=e.getLong_61zpoe$("statementLct"),I=e.getInt_61zpoe$("extensionProgress"),U=e.getBoolean_61zpoe$("contentEntryRoot"),D=e.getLong_61zpoe$("statementContentEntryUid"),P=e.getLong_61zpoe$("statementLearnerGroupUid"),M=e.getLong_61zpoe$("statementClazzUid"),k=0,j=e.getLong_61zpoe$("verbUid");e.wasNull()&&(k=k+1|0);var G=e.getString_61zpoe$("urlId");e.wasNull()&&(k=k+1|0);var q=e.getBoolean_61zpoe$("verbInActive");e.wasNull()&&(k=k+1|0);var F=e.getLong_61zpoe$("verbMasterChangeSeqNum");e.wasNull()&&(k=k+1|0);var B=e.getLong_61zpoe$("verbLocalChangeSeqNum");e.wasNull()&&(k=k+1|0);var W=e.getInt_61zpoe$("verbLastChangedBy");e.wasNull()&&(k=k+1|0);var H=e.getLong_61zpoe$("verbLct");e.wasNull()&&(k=k+1|0);var V=7===k,K=new f_t;if(K.verbDisplay=n,K.objectDisplay=i,K.statementUid=o,K.statementId=r,K.statementPersonUid=s,K.statementVerbUid=a,K.xObjectUid=c,K.subStatementActorUid=l,K.substatementVerbUid=u,K.subStatementObjectUid=h,K.agentUid=d,K.instructorUid=p,K.authorityUid=_,K.teamUid=m,K.resultCompletion=f,K.resultSuccess=g,K.resultScoreScaled=$,K.resultScoreRaw=E,K.resultScoreMin=y,K.resultScoreMax=b,K.resultDuration=S,K.resultResponse=v,K.timestamp=C,K.stored=N,K.contextRegistration=T,K.contextPlatform=L,K.contextStatementId=z,K.fullStatement=w,K.statementMasterChangeSeqNum=O,K.statementLocalChangeSeqNum=R,K.statementLastChangedBy=A,K.statementLct=x,K.extensionProgress=I,K.contentEntryRoot=U,K.statementContentEntryUid=D,K.statementLearnerGroupUid=P,K.statementClazzUid=M,!V){var X=new hmt;X.verbUid=j,X.urlId=G,X.verbInActive=q,X.verbMasterChangeSeqNum=F,X.verbLocalChangeSeqNum=B,X.verbLastChangedBy=W,X.verbLct=H,K.verb=X}return K}));var e}function g1(t,e,n,i,o,r,s,a){N.call(this,a),this.exceptionState_0=1,this.local$closure$accountPersonUid=t,this.local$closure$contentEntryUid=e,this.local$closure$personUid=n,this.local$closure$contextRegistration=i,this.local$closure$_limit=o,this.local$closure$_offset=r,this.local$_stmt=s}function $1(t,e,n,i,o,r){return function(s,a,c){var l=new g1(t,e,n,i,o,r,s,a);return c?l:l.doResume(null)}}function E1(t,e,n,i,o,r,s,a){N.call(this,a),this.exceptionState_0=1,this.local$this$StatementDao_JdbcKt=t,this.local$closure$accountPersonUid=e,this.local$closure$contentEntryUid=n,this.local$closure$personUid=i,this.local$closure$contextRegistration=o,this.local$closure$_limit=r,this.local$closure$_offset=s}function y1(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function b1(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$closure$accountPersonUid=t,this.local$closure$contentEntryUid=e,this.local$closure$personUid=n,this.local$closure$contextRegistration=i,this.local$_stmt=o}function S1(t,e,n,i){return function(o,r,s){var a=new b1(t,e,n,i,o,r);return s?a:a.doResume(null)}}function v1(t,e,n,i,o,r){N.call(this,r),this.exceptionState_0=1,this.local$this$StatementDao_JdbcKt=t,this.local$closure$accountPersonUid=e,this.local$closure$contentEntryUid=n,this.local$closure$personUid=i,this.local$closure$contextRegistration=o}function C1(t){return lt(t,null,(e=t,function(t){var n=e.getInt_61zpoe$("resultScore"),i=e.getInt_61zpoe$("resultMax"),o=e.getFloat_61zpoe$("resultScaled"),r=e.getInt_61zpoe$("resultWeight"),s=e.getBoolean_61zpoe$("contentComplete"),a=e.getInt_61zpoe$("progress"),c=e.getByte_61zpoe$("success"),l=e.getInt_61zpoe$("penalty"),u=e.getInt_61zpoe$("totalContent"),h=e.getInt_61zpoe$("totalCompletedContent"),d=new qet;return d.resultScore=n,d.resultMax=i,d.resultScaled=o,d.resultWeight=r,d.contentComplete=s,d.progress=a,d.success=c,d.penalty=l,d.totalContent=u,d.totalCompletedContent=h,d}));var e}function N1(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$contextRegistration=t,this.local$_stmt=e}function T1(t){return lt(t,null,(e=t,function(t){var n=e.getInt_61zpoe$("resultScore"),i=e.getInt_61zpoe$("resultMax"),o=e.getFloat_61zpoe$("resultScaled"),r=e.getInt_61zpoe$("resultWeight"),s=e.getBoolean_61zpoe$("contentComplete"),a=e.getInt_61zpoe$("progress"),c=e.getByte_61zpoe$("success"),l=e.getInt_61zpoe$("penalty"),u=e.getInt_61zpoe$("totalContent"),h=e.getInt_61zpoe$("totalCompletedContent"),d=new qet;return d.resultScore=n,d.resultMax=i,d.resultScaled=o,d.resultWeight=r,d.contentComplete=s,d.progress=a,d.success=c,d.penalty=l,d.totalContent=u,d.totalCompletedContent=h,d}));var e}function L1(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$contextRegistration=t,this.local$_stmt=e}function z1(t){return lt(t,null,(e=t,function(t){return e.getString_za3lpa$(1)}));var e}function w1(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$closure$accountPersonUid=t,this.local$closure$entryUid=e,this.local$_stmt=n}function O1(t){pt.call(this,t)}function R1(t,e){p0.call(this),this._db_0=t,this._dao_0=e}function A1(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function x1(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function I1(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_pkManager=void 0,this.local$_generatedPks=void 0,this.local$$receiver=void 0,this.local$element=void 0,this.local$entityList=e}function U1(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function D1(t,e,n,i,o,r){p0.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function P1(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function M1(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function k1(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function j1(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$query=e}function G1(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$contentEntryUid=e,this.local$accountPersonUid=n}function q1(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$assignmentUid=e,this.local$currentStudentUid=n}function F1(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$studentUid=e,this.local$assignmentObjectUid=n}function B1(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$contextRegistration=e}function W1(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$contextRegistration=e}function H1(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$accountPersonUid=e,this.local$entryUid=n}function V1(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function K1(){}function X1(t){K1.call(this),this._db=t,this._insertAdapterSyncNode_upsert=new Z1(this._db)}function J1(t){return lt(t,X,(e=t,function(t){return e.getLong_za3lpa$(1)}));var e}function Y1(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function Q1(t,e,n){var i=new Y1(t,e);return n?i:i.doResume(null)}function Z1(t){pt.call(this,t)}function t2(){}function e2(t){t2.call(this),this._db=t,this._insertAdapterUserSession_=new M2(this._db)}function n2(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$session=e}function i2(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function o2(t,e,n){var i=new i2(t,e);return n?i:i.doResume(null)}function r2(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function s2(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function a2(t){return function(e,n,i){var o=new s2(t,e,n);return i?o:o.doResume(null)}}function c2(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function l2(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("usUid"),i=e.getLong_61zpoe$("usPcsn"),o=e.getLong_61zpoe$("usLcsn"),r=e.getInt_61zpoe$("usLcb"),s=e.getLong_61zpoe$("usLct"),a=e.getLong_61zpoe$("usPersonUid"),c=e.getLong_61zpoe$("usClientNodeId"),l=e.getLong_61zpoe$("usStartTime"),u=e.getLong_61zpoe$("usEndTime"),h=e.getInt_61zpoe$("usStatus"),d=e.getInt_61zpoe$("usReason"),p=e.getString_61zpoe$("usAuth"),_=e.getInt_61zpoe$("usSessionType"),m=new K_t;return m.usUid=n,m.usPcsn=i,m.usLcsn=o,m.usLcb=r,m.usLct=s,m.usPersonUid=a,m.usClientNodeId=c,m.usStartTime=l,m.usEndTime=u,m.usStatus=h,m.usReason=d,m.usAuth=p,m.usSessionType=_,m}));var e}function u2(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$personUid=t,this.local$_stmt=e}function h2(t){return mt(t,(e=t,function(t){var n=0,i=e.getLong_61zpoe$("personUid");e.wasNull()&&(n=n+1|0);var o=e.getString_61zpoe$("username");e.wasNull()&&(n=n+1|0);var r=e.getString_61zpoe$("firstNames");e.wasNull()&&(n=n+1|0);var s=e.getString_61zpoe$("lastName");e.wasNull()&&(n=n+1|0);var a=e.getString_61zpoe$("emailAddr");e.wasNull()&&(n=n+1|0);var c=e.getString_61zpoe$("phoneNum");e.wasNull()&&(n=n+1|0);var l=e.getInt_61zpoe$("gender");e.wasNull()&&(n=n+1|0);var u=e.getBoolean_61zpoe$("active");e.wasNull()&&(n=n+1|0);var h=e.getBoolean_61zpoe$("admin");e.wasNull()&&(n=n+1|0);var d=e.getString_61zpoe$("personNotes");e.wasNull()&&(n=n+1|0);var p=e.getString_61zpoe$("fatherName");e.wasNull()&&(n=n+1|0);var _=e.getString_61zpoe$("fatherNumber");e.wasNull()&&(n=n+1|0);var m=e.getString_61zpoe$("motherName");e.wasNull()&&(n=n+1|0);var f=e.getString_61zpoe$("motherNum");e.wasNull()&&(n=n+1|0);var g=e.getLong_61zpoe$("dateOfBirth");e.wasNull()&&(n=n+1|0);var $=e.getString_61zpoe$("personAddress");e.wasNull()&&(n=n+1|0);var E=e.getString_61zpoe$("personOrgId");e.wasNull()&&(n=n+1|0);var y=e.getLong_61zpoe$("personGroupUid");e.wasNull()&&(n=n+1|0);var b=e.getLong_61zpoe$("personMasterChangeSeqNum");e.wasNull()&&(n=n+1|0);var S=e.getLong_61zpoe$("personLocalChangeSeqNum");e.wasNull()&&(n=n+1|0);var v=e.getInt_61zpoe$("personLastChangedBy");e.wasNull()&&(n=n+1|0);var C=e.getLong_61zpoe$("personLct");e.wasNull()&&(n=n+1|0);var N=e.getString_61zpoe$("personCountry");e.wasNull()&&(n=n+1|0);var T=e.getInt_61zpoe$("personType");e.wasNull()&&(n=n+1|0);var L=24===n,z=0,w=e.getLong_61zpoe$("usUid");e.wasNull()&&(z=z+1|0);var O=e.getLong_61zpoe$("usPcsn");e.wasNull()&&(z=z+1|0);var R=e.getLong_61zpoe$("usLcsn");e.wasNull()&&(z=z+1|0);var A=e.getInt_61zpoe$("usLcb");e.wasNull()&&(z=z+1|0);var x=e.getLong_61zpoe$("usLct");e.wasNull()&&(z=z+1|0);var I=e.getLong_61zpoe$("usPersonUid");e.wasNull()&&(z=z+1|0);var U=e.getLong_61zpoe$("usClientNodeId");e.wasNull()&&(z=z+1|0);var D=e.getLong_61zpoe$("usStartTime");e.wasNull()&&(z=z+1|0);var P=e.getLong_61zpoe$("usEndTime");e.wasNull()&&(z=z+1|0);var M=e.getInt_61zpoe$("usStatus");e.wasNull()&&(z=z+1|0);var k=e.getInt_61zpoe$("usReason");e.wasNull()&&(z=z+1|0);var j=e.getString_61zpoe$("usAuth");e.wasNull()&&(z=z+1|0);var G=e.getInt_61zpoe$("usSessionType");e.wasNull()&&(z=z+1|0);var q=13===z,F=new nmt;if(!L){var B=new zct;B.personUid=i,B.username=o,B.firstNames=r,B.lastName=s,B.emailAddr=a,B.phoneNum=c,B.gender=l,B.active=u,B.admin=h,B.personNotes=d,B.fatherName=p,B.fatherNumber=_,B.motherName=m,B.motherNum=f,B.dateOfBirth=g,B.personAddress=$,B.personOrgId=E,B.personGroupUid=y,B.personMasterChangeSeqNum=b,B.personLocalChangeSeqNum=S,B.personLastChangedBy=v,B.personLct=C,B.personCountry=N,B.personType=T,F.person=B}if(!q){var W=new K_t;W.usUid=w,W.usPcsn=O,W.usLcsn=R,W.usLcb=A,W.usLct=x,W.usPersonUid=I,W.usClientNodeId=U,W.usStartTime=D,W.usEndTime=P,W.usStatus=M,W.usReason=k,W.usAuth=j,W.usSessionType=G,F.userSession=W}return F}));var e}function d2(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function p2(t,e,n){var i=new d2(t,e);return n?i:i.doResume(null)}function _2(t,e){N.call(this,e),this.exceptionState_0=1,this.local$this$UserSessionDao_JdbcKt=t}function m2(t){return mt(t,(e=t,function(t){var n=0,i=e.getLong_61zpoe$("personUid");e.wasNull()&&(n=n+1|0);var o=e.getString_61zpoe$("username");e.wasNull()&&(n=n+1|0);var r=e.getString_61zpoe$("firstNames");e.wasNull()&&(n=n+1|0);var s=e.getString_61zpoe$("lastName");e.wasNull()&&(n=n+1|0);var a=e.getString_61zpoe$("emailAddr");e.wasNull()&&(n=n+1|0);var c=e.getString_61zpoe$("phoneNum");e.wasNull()&&(n=n+1|0);var l=e.getInt_61zpoe$("gender");e.wasNull()&&(n=n+1|0);var u=e.getBoolean_61zpoe$("active");e.wasNull()&&(n=n+1|0);var h=e.getBoolean_61zpoe$("admin");e.wasNull()&&(n=n+1|0);var d=e.getString_61zpoe$("personNotes");e.wasNull()&&(n=n+1|0);var p=e.getString_61zpoe$("fatherName");e.wasNull()&&(n=n+1|0);var _=e.getString_61zpoe$("fatherNumber");e.wasNull()&&(n=n+1|0);var m=e.getString_61zpoe$("motherName");e.wasNull()&&(n=n+1|0);var f=e.getString_61zpoe$("motherNum");e.wasNull()&&(n=n+1|0);var g=e.getLong_61zpoe$("dateOfBirth");e.wasNull()&&(n=n+1|0);var $=e.getString_61zpoe$("personAddress");e.wasNull()&&(n=n+1|0);var E=e.getString_61zpoe$("personOrgId");e.wasNull()&&(n=n+1|0);var y=e.getLong_61zpoe$("personGroupUid");e.wasNull()&&(n=n+1|0);var b=e.getLong_61zpoe$("personMasterChangeSeqNum");e.wasNull()&&(n=n+1|0);var S=e.getLong_61zpoe$("personLocalChangeSeqNum");e.wasNull()&&(n=n+1|0);var v=e.getInt_61zpoe$("personLastChangedBy");e.wasNull()&&(n=n+1|0);var C=e.getLong_61zpoe$("personLct");e.wasNull()&&(n=n+1|0);var N=e.getString_61zpoe$("personCountry");e.wasNull()&&(n=n+1|0);var T=e.getInt_61zpoe$("personType");e.wasNull()&&(n=n+1|0);var L=24===n,z=0,w=e.getLong_61zpoe$("usUid");e.wasNull()&&(z=z+1|0);var O=e.getLong_61zpoe$("usPcsn");e.wasNull()&&(z=z+1|0);var R=e.getLong_61zpoe$("usLcsn");e.wasNull()&&(z=z+1|0);var A=e.getInt_61zpoe$("usLcb");e.wasNull()&&(z=z+1|0);var x=e.getLong_61zpoe$("usLct");e.wasNull()&&(z=z+1|0);var I=e.getLong_61zpoe$("usPersonUid");e.wasNull()&&(z=z+1|0);var U=e.getLong_61zpoe$("usClientNodeId");e.wasNull()&&(z=z+1|0);var D=e.getLong_61zpoe$("usStartTime");e.wasNull()&&(z=z+1|0);var P=e.getLong_61zpoe$("usEndTime");e.wasNull()&&(z=z+1|0);var M=e.getInt_61zpoe$("usStatus");e.wasNull()&&(z=z+1|0);var k=e.getInt_61zpoe$("usReason");e.wasNull()&&(z=z+1|0);var j=e.getString_61zpoe$("usAuth");e.wasNull()&&(z=z+1|0);var G=e.getInt_61zpoe$("usSessionType");e.wasNull()&&(z=z+1|0);var q=13===z,F=new nmt;if(!L){var B=new zct;B.personUid=i,B.username=o,B.firstNames=r,B.lastName=s,B.emailAddr=a,B.phoneNum=c,B.gender=l,B.active=u,B.admin=h,B.personNotes=d,B.fatherName=p,B.fatherNumber=_,B.motherName=m,B.motherNum=f,B.dateOfBirth=g,B.personAddress=$,B.personOrgId=E,B.personGroupUid=y,B.personMasterChangeSeqNum=b,B.personLocalChangeSeqNum=S,B.personLastChangedBy=v,B.personLct=C,B.personCountry=N,B.personType=T,F.person=B}if(!q){var W=new K_t;W.usUid=w,W.usPcsn=O,W.usLcsn=R,W.usLcb=A,W.usLct=x,W.usPersonUid=I,W.usClientNodeId=U,W.usStartTime=D,W.usEndTime=P,W.usStatus=M,W.usReason=k,W.usAuth=j,W.usSessionType=G,F.userSession=W}return F}));var e}function f2(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function g2(t,e,n){var i=new f2(t,e);return n?i:i.doResume(null)}function $2(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function E2(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$maxDateOfBirth=t,this.local$_stmt=e}function y2(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$newStatus=t,this.local$closure$reason=e,this.local$closure$sessionUid=n,this.local$_stmt=i}function b2(t,e,n){return function(i,o,r){var s=new y2(t,e,n,i,o);return r?s:s.doResume(null)}}function S2(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$sessionUid=e,this.local$newStatus=n,this.local$reason=i}function v2(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("usUid"),i=e.getLong_61zpoe$("usPcsn"),o=e.getLong_61zpoe$("usLcsn"),r=e.getInt_61zpoe$("usLcb"),s=e.getLong_61zpoe$("usLct"),a=e.getLong_61zpoe$("usPersonUid"),c=e.getLong_61zpoe$("usClientNodeId"),l=e.getLong_61zpoe$("usStartTime"),u=e.getLong_61zpoe$("usEndTime"),h=e.getInt_61zpoe$("usStatus"),d=e.getInt_61zpoe$("usReason"),p=e.getString_61zpoe$("usAuth"),_=e.getInt_61zpoe$("usSessionType"),m=new K_t;return m.usUid=n,m.usPcsn=i,m.usLcsn=o,m.usLcb=r,m.usLct=s,m.usPersonUid=a,m.usClientNodeId=c,m.usStartTime=l,m.usEndTime=u,m.usStatus=h,m.usReason=d,m.usAuth=p,m.usSessionType=_,m}));var e}function C2(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$sessionUid=t,this.local$_stmt=e}function N2(t){return function(e,n,i){var o=new C2(t,e,n);return i?o:o.doResume(null)}}function T2(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$UserSessionDao_JdbcKt=t,this.local$closure$sessionUid=e}function L2(t,e,n,i,o,r,s){N.call(this,s),this.exceptionState_0=1,this.local$closure$newStatus=t,this.local$closure$reason=e,this.local$closure$changeTime=n,this.local$closure$personUid=i,this.local$closure$exemptNodeId=o,this.local$_stmt=r}function z2(t,e,n,i,o){return function(r,s,a){var c=new L2(t,e,n,i,o,r,s);return a?c:c.doResume(null)}}function w2(t,e,n,i,o,r,s){N.call(this,s),this.exceptionState_0=1,this.$this=t,this.local$personUid=e,this.local$exemptNodeId=n,this.local$newStatus=i,this.local$reason=o,this.local$changeTime=r}function O2(t){return mt(t,(e=t,function(t){return e.getLong_za3lpa$(1)}));var e}function R2(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$personUids=t,this.local$_stmt=e}function A2(t){return mt(t,(e=t,function(t){return e.getLong_za3lpa$(1)}));var e}function x2(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$groupUids=t,this.local$_stmt=e}function I2(t){return mt(t,(e=t,function(t){return e.getLong_za3lpa$(1)}));var e}function U2(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$clazzUids=t,this.local$_stmt=e}function D2(t){return mt(t,(e=t,function(t){return e.getLong_za3lpa$(1)}));var e}function P2(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$schoolUids=t,this.local$_stmt=e}function M2(t){pt.call(this,t)}function k2(t,e){t2.call(this),this._db_0=t,this._dao_0=e}function j2(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function G2(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function q2(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$session=e}function F2(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$sessionUid=e,this.local$newStatus=n,this.local$reason=i}function B2(t,e,n,i,o,r,s){N.call(this,s),this.exceptionState_0=1,this.$this=t,this.local$personUid=e,this.local$exemptNodeId=n,this.local$newStatus=i,this.local$reason=o,this.local$changeTime=r}function W2(t,e,n,i,o,r){t2.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function H2(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function V2(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function K2(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$session=e}function X2(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$personUid=e}function J2(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function Y2(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$maxDateOfBirth=e}function Q2(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$sessionUid=e,this.local$newStatus=n,this.local$reason=i}function Z2(t,e,n,i,o,r,s){N.call(this,s),this.exceptionState_0=1,this.$this=t,this.local$personUid=e,this.local$exemptNodeId=n,this.local$newStatus=i,this.local$reason=o,this.local$changeTime=r}function t3(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$personUids=e}function e3(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$groupUids=e}function n3(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$clazzUids=e}function i3(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$schoolUids=e}function o3(){}function r3(t){o3.call(this),this._db=t,this._insertAdapterVerbEntity_upsert=new D3(this._db),this._insertAdapterVerbEntity_=new P3(this._db)}function s3(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function a3(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function c3(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function l3(t){return function(e,n,i){var o=new c3(t,e,n);return i?o:o.doResume(null)}}function u3(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function h3(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function d3(t,e,n){var i=new h3(t,e);return n?i:i.doResume(null)}function p3(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function _3(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("verbUid"),i=e.getString_61zpoe$("urlId"),o=e.getBoolean_61zpoe$("verbInActive"),r=e.getLong_61zpoe$("verbMasterChangeSeqNum"),s=e.getLong_61zpoe$("verbLocalChangeSeqNum"),a=e.getInt_61zpoe$("verbLastChangedBy"),c=e.getLong_61zpoe$("verbLct"),l=new hmt;return l.verbUid=n,l.urlId=i,l.verbInActive=o,l.verbMasterChangeSeqNum=r,l.verbLocalChangeSeqNum=s,l.verbLastChangedBy=a,l.verbLct=c,l}));var e}function m3(t){return mt(t,(e=t,function(t){return e.getLong_za3lpa$(1)}));var e}function f3(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uidList=t,this.local$_stmt=e}function g3(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("verbUid"),i=e.getString_61zpoe$("urlId"),o=e.getString_61zpoe$("display"),r=new imt;return r.verbUid=n,r.urlId=i,r.display=o,r}));var e}function $3(t,e){this.this$VerbDao_JdbcKt=t,this.closure$uidList=e,gt.call(this)}function E3(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("verbUid"),i=e.getString_61zpoe$("urlId"),o=e.getString_61zpoe$("display"),r=new imt;return r.verbUid=n,r.urlId=i,r.display=o,r}));var e}function y3(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$uidList=t,this.local$closure$_limit=e,this.local$closure$_offset=n,this.local$_stmt=i}function b3(t,e,n){return function(i,o,r){var s=new y3(t,e,n,i,o);return r?s:s.doResume(null)}}function S3(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$this$VerbDao_JdbcKt=t,this.local$closure$uidList=e,this.local$closure$_limit=n,this.local$closure$_offset=i}function v3(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function C3(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uidList=t,this.local$_stmt=e}function N3(t){return function(e,n,i){var o=new C3(t,e,n);return i?o:o.doResume(null)}}function T3(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$VerbDao_JdbcKt=t,this.local$closure$uidList=e}function L3(t,e){this.this$VerbDao_JdbcKt=t,this.closure$uidList=e,gt.call(this)}function z3(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("verbUid"),i=e.getString_61zpoe$("urlId"),o=e.getString_61zpoe$("display"),r=new imt;return r.verbUid=n,r.urlId=i,r.display=o,r}));var e}function w3(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$closure$uidList=t,this.local$closure$_limit=e,this.local$closure$_offset=n,this.local$_stmt=i}function O3(t,e,n){return function(i,o,r){var s=new w3(t,e,n,i,o);return r?s:s.doResume(null)}}function R3(t,e,n,i,o){N.call(this,o),this.exceptionState_0=1,this.local$this$VerbDao_JdbcKt=t,this.local$closure$uidList=e,this.local$closure$_limit=n,this.local$closure$_offset=i}function A3(t){return lt(t,0,(e=t,function(t){return e.getInt_za3lpa$(1)}));var e}function x3(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$uidList=t,this.local$_stmt=e}function I3(t){return function(e,n,i){var o=new x3(t,e,n);return i?o:o.doResume(null)}}function U3(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$this$VerbDao_JdbcKt=t,this.local$closure$uidList=e}function D3(t){pt.call(this,t)}function P3(t){pt.call(this,t)}function M3(t,e){o3.call(this),this._db_0=t,this._dao_0=e}function k3(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function j3(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function G3(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$_pkManager=void 0,this.local$_generatedPks=void 0,this.local$$receiver=void 0,this.local$element=void 0,this.local$entityList=e}function q3(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function F3(t,e,n,i,o,r){o3.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function B3(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function W3(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function H3(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$uidList=e}function V3(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityList=e}function K3(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function X3(){}function J3(t){X3.call(this),this._db=t,this._insertAdapterXLangMapEntry_=new c6(this._db)}function Y3(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function Q3(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function Z3(t){return function(e,n,i){var o=new Q3(t,e,n);return i?o:o.doResume(null)}}function t6(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function e6(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function n6(t,e,n){var i=new e6(t,e);return n?i:i.doResume(null)}function i6(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function o6(t){return mt(t,(e=t,function(t){var n=e.getLong_61zpoe$("statementLangMapUid"),i=e.getLong_61zpoe$("verbLangMapUid"),o=e.getLong_61zpoe$("objectLangMapUid"),r=e.getLong_61zpoe$("languageLangMapUid"),s=e.getLong_61zpoe$("languageVariantLangMapUid"),a=e.getString_61zpoe$("valueLangMap"),c=e.getInt_61zpoe$("statementLangMapMasterCsn"),l=e.getInt_61zpoe$("statementLangMapLocalCsn"),u=e.getInt_61zpoe$("statementLangMapLcb"),h=e.getLong_61zpoe$("statementLangMapLct"),d=new Emt;return d.statementLangMapUid=n,d.verbLangMapUid=i,d.objectLangMapUid=o,d.languageLangMapUid=r,d.languageVariantLangMapUid=s,d.valueLangMap=a,d.statementLangMapMasterCsn=c,d.statementLangMapLocalCsn=l,d.statementLangMapLcb=u,d.statementLangMapLct=h,d}));var e}function r6(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$ids=t,this.local$_stmt=e}function s6(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("statementLangMapUid"),i=e.getLong_61zpoe$("verbLangMapUid"),o=e.getLong_61zpoe$("objectLangMapUid"),r=e.getLong_61zpoe$("languageLangMapUid"),s=e.getLong_61zpoe$("languageVariantLangMapUid"),a=e.getString_61zpoe$("valueLangMap"),c=e.getInt_61zpoe$("statementLangMapMasterCsn"),l=e.getInt_61zpoe$("statementLangMapLocalCsn"),u=e.getInt_61zpoe$("statementLangMapLcb"),h=e.getLong_61zpoe$("statementLangMapLct"),d=new Emt;return d.statementLangMapUid=n,d.verbLangMapUid=i,d.objectLangMapUid=o,d.languageLangMapUid=r,d.languageVariantLangMapUid=s,d.valueLangMap=a,d.statementLangMapMasterCsn=c,d.statementLangMapLocalCsn=l,d.statementLangMapLcb=u,d.statementLangMapLct=h,d}));var e}function a6(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("statementLangMapUid"),i=e.getLong_61zpoe$("verbLangMapUid"),o=e.getLong_61zpoe$("objectLangMapUid"),r=e.getLong_61zpoe$("languageLangMapUid"),s=e.getLong_61zpoe$("languageVariantLangMapUid"),a=e.getString_61zpoe$("valueLangMap"),c=e.getInt_61zpoe$("statementLangMapMasterCsn"),l=e.getInt_61zpoe$("statementLangMapLocalCsn"),u=e.getInt_61zpoe$("statementLangMapLcb"),h=e.getLong_61zpoe$("statementLangMapLct"),d=new Emt;return d.statementLangMapUid=n,d.verbLangMapUid=i,d.objectLangMapUid=o,d.languageLangMapUid=r,d.languageVariantLangMapUid=s,d.valueLangMap=a,d.statementLangMapMasterCsn=c,d.statementLangMapLocalCsn=l,d.statementLangMapLcb=u,d.statementLangMapLct=h,d}));var e}function c6(t){pt.call(this,t)}function l6(t,e){X3.call(this),this._db_0=t,this._dao_0=e}function u6(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function h6(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function d6(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function p6(t,e,n,i,o,r){X3.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function _6(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function m6(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function f6(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$ids=e}function g6(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function $6(){}function E6(t){$6.call(this),this._db=t,this._insertAdapterXObjectEntity_=new w6(this._db)}function y6(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function b6(t,e,n){N.call(this,n),this.exceptionState_0=1,this.local$closure$newNodeId=t,this.local$_stmt=e}function S6(t){return function(e,n,i){var o=new b6(t,e,n);return i?o:o.doResume(null)}}function v6(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function C6(t,e){N.call(this,e),this.exceptionState_0=1,this.local$_stmt=t}function N6(t,e,n){var i=new C6(t,e);return n?i:i.doResume(null)}function T6(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function L6(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("xObjectUid"),i=e.getString_61zpoe$("objectType"),o=e.getString_61zpoe$("objectId"),r=e.getString_61zpoe$("definitionType"),s=e.getString_61zpoe$("interactionType"),a=e.getString_61zpoe$("correctResponsePattern"),c=e.getLong_61zpoe$("objectContentEntryUid"),l=e.getLong_61zpoe$("objectStatementRefUid"),u=e.getLong_61zpoe$("xObjectMasterChangeSeqNum"),h=e.getLong_61zpoe$("xObjectocalChangeSeqNum"),d=e.getInt_61zpoe$("xObjectLastChangedBy"),p=e.getLong_61zpoe$("xObjectLct"),_=Umt();return _.xObjectUid=n,_.objectType=i,_.objectId=o,_.definitionType=r,_.interactionType=s,_.correctResponsePattern=a,_.objectContentEntryUid=c,_.objectStatementRefUid=l,_.xObjectMasterChangeSeqNum=u,_.xObjectocalChangeSeqNum=h,_.xObjectLastChangedBy=d,_.xObjectLct=p,_}));var e}function z6(t){return lt(t,null,(e=t,function(t){var n=e.getLong_61zpoe$("xObjectUid"),i=e.getString_61zpoe$("objectType"),o=e.getString_61zpoe$("objectId"),r=e.getString_61zpoe$("definitionType"),s=e.getString_61zpoe$("interactionType"),a=e.getString_61zpoe$("correctResponsePattern"),c=e.getLong_61zpoe$("objectContentEntryUid"),l=e.getLong_61zpoe$("objectStatementRefUid"),u=e.getLong_61zpoe$("xObjectMasterChangeSeqNum"),h=e.getLong_61zpoe$("xObjectocalChangeSeqNum"),d=e.getInt_61zpoe$("xObjectLastChangedBy"),p=e.getLong_61zpoe$("xObjectLct"),_=Umt();return _.xObjectUid=n,_.objectType=i,_.objectId=o,_.definitionType=r,_.interactionType=s,_.correctResponsePattern=a,_.objectContentEntryUid=c,_.objectStatementRefUid=l,_.xObjectMasterChangeSeqNum=u,_.xObjectocalChangeSeqNum=h,_.xObjectLastChangedBy=d,_.xObjectLct=p,_}));var e}function w6(t){pt.call(this,t)}function O6(t,e){$6.call(this),this._db_0=t,this._dao_0=e}function R6(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function A6(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function x6(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function I6(t,e,n,i,o,r){$6.call(this),this._db=t,this._repo=e,this._dao=n,this._httpClient=i,this._clientId=o,this._endpoint=r}function U6(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newNodeId=e}function D6(t,e){N.call(this,e),this.exceptionState_0=1,this.$this=t}function P6(t,e,n){N.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entity=e}function M6(t){this.entity_0=t}function k6(t){this.entity_0=t}function j6(t){this.entity_0=t}function G6(t){this.entity_0=t}function q6(){K6()}function F6(){V6=this,this.sqliteContentJobItemTriggers_0=["\n CREATE TRIGGER ContentJobItem_InsertTrigger \n AFTER INSERT ON ContentJobItem\n BEGIN\n UPDATE ContentJobItem \n SET cjiRecursiveProgress = NEW.cjiItemProgress,\n cjiRecursiveTotal = NEW.cjiItemTotal\n WHERE ContentJobItem.cjiUid = NEW.cjiUid;\n END;\n ","\n CREATE TRIGGER ContentJobItem_UpdateRecursiveTotals \n AFTER UPDATE ON ContentJobItem\n FOR EACH ROW WHEN (\n NEW.cjiItemProgress != OLD.cjiItemProgress\n OR NEW.cjiItemTotal != OLD.cjiItemTotal)\n BEGIN\n UPDATE ContentJobItem \n SET cjiRecursiveProgress = (cjiRecursiveProgress + (NEW.cjiItemProgress - OLD.cjiItemProgress)),\n cjiRecursiveTotal = (cjiRecursiveTotal + (NEW.cjiItemTotal - OLD.cjiItemTotal))\n WHERE ContentJobItem.cjiUid = NEW.cjiUid;\n END;\n ","\n CREATE TRIGGER ContentJobItem_UpdateRecursiveStatus\n AFTER UPDATE ON ContentJobItem\n FOR EACH ROW WHEN (NEW.cjiStatus != OLD.cjiStatus)\n BEGIN \n UPDATE ContentJobItem\n SET cjiRecursiveStatus = "+this.recursiveStatusCaseClause_61zpoe$("NEW.cjiUid")+"\n WHERE contentJobItem.cjiUid = NEW.cjiUid;\n END; \n ","\n CREATE TRIGGER ContentJobItem_UpdateParents\n AFTER UPDATE ON ContentJobItem\n FOR EACH ROW WHEN (\n NEW.cjiParentCjiUid != 0 \n AND (NEW.cjiRecursiveProgress != OLD.cjiRecursiveProgress\n OR NEW.cjiRecursiveTotal != OLD.cjiRecursiveTotal))\n BEGIN\n UPDATE ContentJobItem \n SET cjiRecursiveProgress = (cjiRecursiveProgress + (NEW.cjiRecursiveProgress - OLD.cjiRecursiveProgress)),\n cjiRecursiveTotal = (cjiRecursiveTotal + (NEW.cjiRecursiveTotal - OLD.cjiRecursiveTotal))\n WHERE ContentJobItem.cjiUid = NEW.cjiParentCjiUid;\n END;\n ","\n CREATE TRIGGER ContentJobItem_UpdateStatusParent\n AFTER UPDATE ON ContentJobItem\n FOR EACH ROW WHEN (\n NEW.cjiParentCjiUid != 0\n AND (New.cjiRecursiveStatus != OLD.cjiRecursiveStatus))\n BEGIN\n UPDATE ContentJobItem\n SET cjiRecursiveStatus = "+this.recursiveStatusCaseClause_61zpoe$("NEW.cjiParentCjiUid")+"\n WHERE ContentJobItem.cjiUid = NEW.cjiParentCjiUid;\n END;\n "],this.postgresContentJobItemTriggers_0=["\n CREATE OR REPLACE FUNCTION contentjobiteminsert_fn() RETURNS TRIGGER AS $$ \n BEGIN\n UPDATE ContentJobItem \n SET cjiRecursiveProgress = NEW.cjiItemProgress,\n cjiRecursiveTotal = NEW.cjiItemTotal\n WHERE ContentJobItem.cjiUid = NEW.cjiUid;\n RETURN NEW; \n END $$ LANGUAGE plpgsql\n ","\n CREATE TRIGGER contentjobiteminsert_trig \n AFTER INSERT ON ContentJobItem\n FOR EACH ROW EXECUTE PROCEDURE contentjobiteminsert_fn() \n ","\n CREATE OR REPLACE FUNCTION contentjobitem_updaterecursivetotals_fn() RETURNS TRIGGER AS $$\n BEGIN\n UPDATE ContentJobItem \n SET cjiRecursiveProgress = (cjiRecursiveProgress + (NEW.cjiItemProgress - OLD.cjiItemProgress)),\n cjiRecursiveTotal = (cjiRecursiveTotal + (NEW.cjiItemTotal - OLD.cjiItemTotal))\n WHERE (NEW.cjiItemProgress != OLD.cjiItemProgress OR NEW.cjiItemTotal != OLD.cjiItemTotal)\n AND ContentJobItem.cjiUid = NEW.cjiUid;\n RETURN NEW;\n END $$ LANGUAGE plpgsql\n ","\n CREATE TRIGGER contentjobitem_updaterecursivetotals_trig\n AFTER UPDATE ON ContentJobItem\n FOR EACH ROW EXECUTE PROCEDURE contentjobitem_updaterecursivetotals_fn();\n ","\n CREATE OR REPLACE FUNCTION contentjobitem_updateparents_fn() RETURNS TRIGGER AS $$\n BEGIN \n UPDATE ContentJobItem \n SET cjiRecursiveProgress = (cjiRecursiveProgress + (NEW.cjiRecursiveProgress - OLD.cjiRecursiveProgress)),\n cjiRecursiveTotal = (cjiRecursiveTotal + (NEW.cjiRecursiveTotal - OLD.cjiRecursiveTotal))\n WHERE (NEW.cjiRecursiveProgress != OLD.cjiRecursiveProgress\n OR NEW.cjiRecursiveTotal != OLD.cjiRecursiveTotal)\n AND ContentJobItem.cjiUid = NEW.cjiParentCjiUid\n AND NEW.cjiParentCjiUid != 0; \n RETURN NEW;\n END $$ LANGUAGE plpgsql\n ","\n CREATE TRIGGER contentjobitem_updateparents_trig\n AFTER UPDATE ON ContentJobItem\n FOR EACH ROW EXECUTE PROCEDURE contentjobitem_updateparents_fn(); \n ","\n CREATE OR REPLACE FUNCTION contentjobitem_updatestatus_fn() RETURNS TRIGGER AS "+String.fromCharCode(36)+String.fromCharCode(36)+"\n BEGIN \n UPDATE ContentJobItem\n SET cjiRecursiveStatus = "+this.recursiveStatusCaseClause_61zpoe$("NEW.cjiUid")+"\n WHERE contentJobItem.cjiUid = NEW.cjiUid \n AND NEW.cjiStatus != OLD.cjiStatus;\n RETURN NEW; \n END "+String.fromCharCode(36)+String.fromCharCode(36)+" LANGUAGE plpgsql \n ","\n CREATE TRIGGER contentjobitem_updatestatus_trig\n AFTER UPDATE ON ContentJobItem\n FOR EACH ROW EXECUTE PROCEDURE contentjobitem_updatestatus_fn(); \n ","\n CREATE OR REPLACE FUNCTION contentjobitem_updatestatusparents_fn() RETURNS TRIGGER AS "+String.fromCharCode(36)+String.fromCharCode(36)+"\n BEGIN\n UPDATE ContentJobItem\n SET cjiRecursiveStatus = "+this.recursiveStatusCaseClause_61zpoe$("NEW.cjiParentCjiUid")+"\n WHERE NEW.cjiParentCjiUid != 0 \n AND NEW.cjiRecursiveStatus != OLD.cjiRecursiveStatus\n AND ContentJobItem.cjiUid = NEW.cjiParentCjiUid; \n RETURN NEW; \n END "+String.fromCharCode(36)+String.fromCharCode(36)+" LANGUAGE plpgsql \n ","\n CREATE TRIGGER contentjobitem_updatestatusparents_trig\n AFTER UPDATE ON ContentJobItem\n FOR EACH ROW EXECUTE PROCEDURE contentjobitem_updatestatusparents_fn(); \n "]}function B6(t){return wt(t)}function W6(t){return wt(t)}UG.$metadata$={kind:c,simpleName:"PersonDao_JdbcKt",interfaces:[IG]},Fq.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Fq.prototype=Object.create(N.prototype),Fq.prototype.constructor=Fq,Fq.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},qq.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new Fq(this,t,e);return n?i:i.doResume(null)},Bq.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Bq.prototype=Object.create(N.prototype),Bq.prototype.constructor=Bq,Bq.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},qq.prototype.replicateOnChange=function(t,e){var n=new Bq(this,t);return e?n:n.doResume(null)},Wq.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Wq.prototype=Object.create(N.prototype),Wq.prototype.constructor=Wq,Wq.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_pkManager=_t(w(this.$this._db_0)),this.local$_generatedPks=F(),this.local$$receiver=this.local$entityList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$$receiver.hasNext()){this.state_0=5;continue}if(this.local$element=this.local$$receiver.next(),O(this.local$element.personUid,X)){if(this.state_0=3,this.result_0=this.local$_pkManager.nextIdAsync_za3lpa$(9,this),this.result_0===C)return C;continue}this.state_0=4;continue;case 3:var t=this.result_0;this.local$element.personUid=t,this.local$_generatedPks.add_11rb$(t),this.state_0=4;continue;case 4:this.local$element.personLct=J(),this.state_0=2;continue;case 5:if(this.state_0=6,this.result_0=this.$this._dao_0.insertListAsync_e0gxv4$(this.local$entityList,this),this.result_0===C)return C;continue;case 6:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},qq.prototype.insertListAsync_e0gxv4$=function(t,e,n){var i=new Wq(this,t,e);return n?i:i.doResume(null)},Hq.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Hq.prototype=Object.create(N.prototype),Hq.prototype.constructor=Hq,Hq.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$person.personUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(9,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$person.personUid=e,this.state_0=3;continue;case 3:if(this.local$person.personLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertOrReplace_6c9i1n$(this.local$person,this),this.result_0===C)return C;continue;case 4:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},qq.prototype.insertOrReplace_6c9i1n$=function(t,e,n){var i=new Hq(this,t,e);return n?i:i.doResume(null)},qq.prototype.findByUsernameCount_61zpoe$=function(t,e){return this._dao_0.findByUsernameCount_61zpoe$(t,e)},qq.prototype.isValidToken_4wgjuj$=function(t,e){throw v("Synchronous db access is NOT possible on Javascript!")},qq.prototype.insertAccessToken_sz9w29$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},qq.prototype.findUidAndPasswordHashAsync_61zpoe$=function(t,e){return this._dao_0.findUidAndPasswordHashAsync_61zpoe$(t,e)},qq.prototype.findByUsernameAndPasswordHash2_puj7f4$=function(t,e,n){return this._dao_0.findByUsernameAndPasswordHash2_puj7f4$(t,e,n)},qq.prototype.insertPersonAuth_k01yar$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},qq.prototype.personHasPermissionAsync_b9bd0d$=function(t,e,n,i){return this._dao_0.personHasPermissionAsync_b9bd0d$(t,e,n,i)},qq.prototype.personIsAdmin_s8cxhz$=function(t,e){return this._dao_0.personIsAdmin_s8cxhz$(t,e)},qq.prototype.findByUsername_pdl1vj$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},qq.prototype.findSystemAccount_s8cxhz$=function(t,e){return this._dao_0.findSystemAccount_s8cxhz$(t,e)},qq.prototype.findByUid_s8cxhz$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},qq.prototype.findPersonAccountByUid_s8cxhz$=function(t,e){return this._dao_0.findPersonAccountByUid_s8cxhz$(t,e)},qq.prototype.findByUidLive_s8cxhz$=function(t){return this._dao_0.findByUidLive_s8cxhz$(t)},qq.prototype.findByUidAsync_s8cxhz$=function(t,e){return this._dao_0.findByUidAsync_s8cxhz$(t,e)},qq.prototype.updateAsync_6c9i1n$=function(t,e){return t.personLct=J(),this._dao_0.updateAsync_6c9i1n$(t,e)},Vq.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Vq.prototype=Object.create(N.prototype),Vq.prototype.constructor=Vq,Vq.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$personGroup.groupUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(43,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$personGroup.groupUid=e,this.state_0=3;continue;case 3:if(this.local$personGroup.groupLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertPersonGroup_j5378c$(this.local$personGroup,this),this.result_0===C)return C;continue;case 4:return this.local$personGroup.groupUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},qq.prototype.insertPersonGroup_j5378c$=function(t,e,n){var i=new Vq(this,t,e);return n?i:i.doResume(null)},Kq.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Kq.prototype=Object.create(N.prototype),Kq.prototype.constructor=Kq,Kq.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$personGroupMember.groupMemberUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(44,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$personGroupMember.groupMemberUid=e,this.state_0=3;continue;case 3:if(this.local$personGroupMember.groupMemberLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertPersonGroupMember_gftcgu$(this.local$personGroupMember,this),this.result_0===C)return C;continue;case 4:return this.local$personGroupMember.groupMemberUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},qq.prototype.insertPersonGroupMember_gftcgu$=function(t,e,n){var i=new Kq(this,t,e);return n?i:i.doResume(null)},qq.prototype.findPersonsWithPermission_gs5uuz$$default=function(t,e,n,i,o,r,s){return this._dao_0.findPersonsWithPermission_gs5uuz$(t,e,n,i,o,r,s)},qq.prototype.findPersonsWithPermissionAsList_gs5uuz$$default=function(t,e,n,i,o,r,s){throw v("Synchronous db access is NOT possible on Javascript!")},qq.prototype.findByUidWithDisplayDetailsLive_3pjtqy$=function(t,e){return this._dao_0.findByUidWithDisplayDetailsLive_3pjtqy$(t,e)},qq.prototype.insertAuditLog_6gshjl$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},qq.prototype.getAllPerson=function(){throw v("Synchronous db access is NOT possible on Javascript!")},qq.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},Xq.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Xq.prototype=Object.create(N.prototype),Xq.prototype.constructor=Xq,Xq.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.personUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(9,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.personUid=e,this.state_0=3;continue;case 3:if(this.local$entity.personLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.personUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},qq.prototype.insertAsync=function(t,e,n){var i=new Xq(this,t,e);return n?i:i.doResume(null)},qq.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},qq.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},qq.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},qq.$metadata$={kind:c,simpleName:"PersonDao_ReplicateWrapper",interfaces:[IG]},Yq.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Yq.prototype=Object.create(N.prototype),Yq.prototype.constructor=Yq,Yq.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Jq.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new Yq(this,t,e);return n?i:i.doResume(null)},Qq.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Qq.prototype=Object.create(N.prototype),Qq.prototype.constructor=Qq,Qq.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Jq.prototype.replicateOnChange=function(t,e){var n=new Qq(this,t);return e?n:n.doResume(null)},Zq.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Zq.prototype=Object.create(N.prototype),Zq.prototype.constructor=Zq,Zq.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertListAsync_e0gxv4$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Jq.prototype.insertListAsync_e0gxv4$=function(t,e,n){var i=new Zq(this,t,e);return n?i:i.doResume(null)},tF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},tF.prototype=Object.create(N.prototype),tF.prototype.constructor=tF,tF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertOrReplace_6c9i1n$(this.local$person,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Jq.prototype.insertOrReplace_6c9i1n$=function(t,e,n){var i=new tF(this,t,e);return n?i:i.doResume(null)},eF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},eF.prototype=Object.create(N.prototype),eF.prototype.constructor=eF,eF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByUsernameCount_61zpoe$(this.local$username,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Jq.prototype.findByUsernameCount_61zpoe$=function(t,e,n){var i=new eF(this,t,e);return n?i:i.doResume(null)},Jq.prototype.isValidToken_4wgjuj$=function(t,e){return this._dao.isValidToken_4wgjuj$(t,e)},Jq.prototype.insertAccessToken_sz9w29$=function(t){this._dao.insertAccessToken_sz9w29$(t)},nF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},nF.prototype=Object.create(N.prototype),nF.prototype.constructor=nF,nF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findUidAndPasswordHashAsync_61zpoe$(this.local$username,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Jq.prototype.findUidAndPasswordHashAsync_61zpoe$=function(t,e,n){var i=new nF(this,t,e);return n?i:i.doResume(null)},iF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},iF.prototype=Object.create(N.prototype),iF.prototype.constructor=iF,iF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByUsernameAndPasswordHash2_puj7f4$(this.local$username,this.local$passwordHash,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Jq.prototype.findByUsernameAndPasswordHash2_puj7f4$=function(t,e,n,i){var o=new iF(this,t,e,n);return i?o:o.doResume(null)},Jq.prototype.insertPersonAuth_k01yar$=function(t){this._dao.insertPersonAuth_k01yar$(t)},oF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},oF.prototype=Object.create(N.prototype),oF.prototype.constructor=oF,oF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.personHasPermissionAsync_b9bd0d$(this.local$accountPersonUid,this.local$personUid,this.local$permission,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Jq.prototype.personHasPermissionAsync_b9bd0d$=function(t,e,n,i,o){var r=new oF(this,t,e,n,i);return o?r:r.doResume(null)},rF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},rF.prototype=Object.create(N.prototype),rF.prototype.constructor=rF,rF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.personIsAdmin_s8cxhz$(this.local$accountPersonUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Jq.prototype.personIsAdmin_s8cxhz$=function(t,e,n){var i=new rF(this,t,e);return n?i:i.doResume(null)},Jq.prototype.findByUsername_pdl1vj$=function(t){return this._dao.findByUsername_pdl1vj$(t)},sF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},sF.prototype=Object.create(N.prototype),sF.prototype.constructor=sF,sF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findSystemAccount_s8cxhz$(this.local$nodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Jq.prototype.findSystemAccount_s8cxhz$=function(t,e,n){var i=new sF(this,t,e);return n?i:i.doResume(null)},Jq.prototype.findByUid_s8cxhz$=function(t){return this._dao.findByUid_s8cxhz$(t)},aF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},aF.prototype=Object.create(N.prototype),aF.prototype.constructor=aF,aF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findPersonAccountByUid_s8cxhz$(this.local$uid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Jq.prototype.findPersonAccountByUid_s8cxhz$=function(t,e,n){var i=new aF(this,t,e);return n?i:i.doResume(null)},Jq.prototype.findByUidLive_s8cxhz$=function(t){return this._dao.findByUidLive_s8cxhz$(t)},cF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},cF.prototype=Object.create(N.prototype),cF.prototype.constructor=cF,cF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByUidAsync_s8cxhz$(this.local$uid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Jq.prototype.findByUidAsync_s8cxhz$=function(t,e,n){var i=new cF(this,t,e);return n?i:i.doResume(null)},lF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},lF.prototype=Object.create(N.prototype),lF.prototype.constructor=lF,lF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateAsync_6c9i1n$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Jq.prototype.updateAsync_6c9i1n$=function(t,e,n){var i=new lF(this,t,e);return n?i:i.doResume(null)},uF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},uF.prototype=Object.create(N.prototype),uF.prototype.constructor=uF,uF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertPersonGroup_j5378c$(this.local$personGroup,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Jq.prototype.insertPersonGroup_j5378c$=function(t,e,n){var i=new uF(this,t,e);return n?i:i.doResume(null)},hF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},hF.prototype=Object.create(N.prototype),hF.prototype.constructor=hF,hF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertPersonGroupMember_gftcgu$(this.local$personGroupMember,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Jq.prototype.insertPersonGroupMember_gftcgu$=function(t,e,n){var i=new hF(this,t,e);return n?i:i.doResume(null)},Jq.prototype.findPersonsWithPermission_gs5uuz$$default=function(t,e,n,i,o,r,s){return this._dao.findPersonsWithPermission_gs5uuz$(t,e,n,i,o,r,s)},Jq.prototype.findPersonsWithPermissionAsList_gs5uuz$$default=function(t,e,n,i,o,r,s){return this._dao.findPersonsWithPermissionAsList_gs5uuz$(t,e,n,i,o,r,s)},Jq.prototype.findByUidWithDisplayDetailsLive_3pjtqy$=function(t,e){return this._dao.findByUidWithDisplayDetailsLive_3pjtqy$(t,e)},Jq.prototype.insertAuditLog_6gshjl$=function(t){return this._dao.insertAuditLog_6gshjl$(t)},Jq.prototype.getAllPerson=function(){return this._dao.getAllPerson()},Jq.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},dF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},dF.prototype=Object.create(N.prototype),dF.prototype.constructor=dF,dF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Jq.prototype.insertAsync=function(t,e,n){var i=new dF(this,t,e);return n?i:i.doResume(null)},Jq.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},Jq.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},Jq.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},Jq.$metadata$={kind:c,simpleName:"PersonDao_Repo",interfaces:[IG]},pF.$metadata$={kind:c,simpleName:"PersonGroupDao",interfaces:[X6]},_F.prototype.insert_11rb$=function(t){return this._insertAdapterPersonGroup_.insertAndReturnId_11rb$(t)},mF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},mF.prototype=Object.create(N.prototype),mF.prototype.constructor=mF,mF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterPersonGroup_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_F.prototype.insertAsync=function(t,e,n){var i=new mF(this,t,e);return n?i:i.doResume(null)},_F.prototype.insertList_4ezy5m$=function(t){this._insertAdapterPersonGroup_.insertList_4ezy5m$(t)},fF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fF.prototype=Object.create(N.prototype),fF.prototype.constructor=fF,fF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$entity.groupMasterCsn),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$entity.groupLocalCsn),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$entity.groupLastChangedBy),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$entity.groupLct),this.local$_stmt.setString_vqvrqt$(5,this.local$closure$entity.groupName),this.local$_stmt.setBoolean_fzusl$(6,this.local$closure$entity.groupActive),this.local$_stmt.setInt_vux9f0$(7,this.local$closure$entity.personGroupFlag),this.local$_stmt.setLong_6svq3l$(8,this.local$closure$entity.groupUid),this.local$tmp$=this.local$closure$_result.v,this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$closure$_result.v=this.local$tmp$+this.result_0|0,V;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},$F.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},$F.prototype=Object.create(N.prototype),$F.prototype.constructor=$F,$F.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_result={v:0},this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE PersonGroup SET groupMasterCsn = ?, groupLocalCsn = ?, groupLastChangedBy = ?, groupLct = ?, groupName = ?, groupActive = ?, personGroupFlag = ? WHERE groupUid = ?",gF(this.local$entity,this.local$_result),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$_result.v;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_F.prototype.updateAsync_j5378c$=function(t,e,n){var i=new $F(this,t,e);return n?i:i.doResume(null)},_F.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE PersonGroup SET groupMasterCsn = ?, groupLocalCsn = ?, groupLastChangedBy = ?, groupLct = ?, groupName = ?, groupActive = ?, personGroupFlag = ? WHERE groupUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.groupMasterCsn),t.setLong_6svq3l$(2,i.groupLocalCsn),t.setInt_vux9f0$(3,i.groupLastChangedBy),t.setLong_6svq3l$(4,i.groupLct),t.setString_vqvrqt$(5,i.groupName),t.setBoolean_fzusl$(6,i.groupActive),t.setInt_vux9f0$(7,i.personGroupFlag),t.setLong_6svq3l$(8,i.groupUid),t.executeUpdate()}return t.getConnection().commit(),V}))},_F.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE PersonGroup SET groupMasterCsn = ?, groupLocalCsn = ?, groupLastChangedBy = ?, groupLct = ?, groupName = ?, groupActive = ?, personGroupFlag = ? WHERE groupUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.groupMasterCsn),t.setLong_6svq3l$(2,e.groupLocalCsn),t.setInt_vux9f0$(3,e.groupLastChangedBy),t.setLong_6svq3l$(4,e.groupLct),t.setString_vqvrqt$(5,e.groupName),t.setBoolean_fzusl$(6,e.groupActive),t.setInt_vux9f0$(7,e.personGroupFlag),t.setLong_6svq3l$(8,e.groupUid),t.executeUpdate()}))},EF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},EF.prototype=Object.create(N.prototype),EF.prototype.constructor=EF,EF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},bF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},bF.prototype=Object.create(N.prototype),bF.prototype.constructor=bF,bF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO PersonGroupReplicate(pgPk, pgDestination)\n | SELECT DISTINCT \n | PersonGroup.groupUid AS pgUid\n | ,\n | ? AS pgDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | 64\n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | JOIN PersonGroupMember PersonsWithPerm_GroupMember\n | ON PersonsWithPerm_GroupMember.groupMemberPersonUid = Person.personUid\n | JOIN PersonGroup\n | ON PersonGroup.groupUid = PersonsWithPerm_GroupMember.groupMemberGroupUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND \n | PersonGroup.groupLct != COALESCE(\n | (SELECT pgVersionId\n | FROM PersonGroupReplicate\n | WHERE pgPk = PersonGroup.groupUid\n | AND pgDestination = UserSession.usClientNodeId), 0)\n | \n | /*psql ON CONFLICT(pgPk, pgDestination) DO UPDATE\n | SET pgPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO PersonGroupReplicate(pgPk, pgDestination)\n | SELECT DISTINCT \n | PersonGroup.groupUid AS pgUid\n | ,\n | ? AS pgDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | 64\n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | JOIN PersonGroupMember PersonsWithPerm_GroupMember\n | ON PersonsWithPerm_GroupMember.groupMemberPersonUid = Person.personUid\n | JOIN PersonGroup\n | ON PersonGroup.groupUid = PersonsWithPerm_GroupMember.groupMemberGroupUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND \n | PersonGroup.groupLct != COALESCE(\n | (SELECT pgVersionId\n | FROM PersonGroupReplicate\n | WHERE pgPk = PersonGroup.groupUid\n | AND pgDestination = UserSession.usClientNodeId), 0)\n | \n | ON CONFLICT(pgPk, pgDestination) DO UPDATE\n | SET pgPending = true\n | \n | \n |")),yF(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_F.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new bF(this,t,e);return n?i:i.doResume(null)},SF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},SF.prototype=Object.create(N.prototype),SF.prototype.constructor=SF,SF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},CF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},CF.prototype=Object.create(N.prototype),CF.prototype.constructor=CF,CF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO PersonGroupReplicate(pgPk, pgDestination)\n | SELECT DISTINCT \n | PersonGroup.groupUid AS pgUid\n | ,\n | UserSession.usClientNodeId AS pgDestination\n | FROM ChangeLog\n | JOIN PersonGroup\n | ON ChangeLog.chTableId = 43\n | AND ChangeLog.chEntityPk = PersonGroup.groupUid\n | JOIN PersonGroupMember\n | ON PersonGroupMember.groupMemberGroupUid = PersonGroup.groupUid\n | JOIN Person\n | ON PersonGroupMember.groupMemberPersonUid = Person.personUid\n | \n | JOIN ScopedGrant \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT clazzEnrolmentClazzUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentPersonUid = Person.personUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT schoolMemberSchoolUid\n | FROM SchoolMember\n | WHERE schoolMemberPersonUid = Person.personUid\n | AND schoolMemberActive))\n | )\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 64\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE \n | UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | \n | AND \n | PersonGroup.groupLct != COALESCE(\n | (SELECT pgVersionId\n | FROM PersonGroupReplicate\n | WHERE pgPk = PersonGroup.groupUid\n | AND pgDestination = UserSession.usClientNodeId), 0)\n | \n | /*psql ON CONFLICT(pgPk, pgDestination) DO UPDATE\n | SET pgPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO PersonGroupReplicate(pgPk, pgDestination)\n | SELECT DISTINCT \n | PersonGroup.groupUid AS pgUid\n | ,\n | UserSession.usClientNodeId AS pgDestination\n | FROM ChangeLog\n | JOIN PersonGroup\n | ON ChangeLog.chTableId = 43\n | AND ChangeLog.chEntityPk = PersonGroup.groupUid\n | JOIN PersonGroupMember\n | ON PersonGroupMember.groupMemberGroupUid = PersonGroup.groupUid\n | JOIN Person\n | ON PersonGroupMember.groupMemberPersonUid = Person.personUid\n | \n | JOIN ScopedGrant \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT clazzEnrolmentClazzUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentPersonUid = Person.personUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT schoolMemberSchoolUid\n | FROM SchoolMember\n | WHERE schoolMemberPersonUid = Person.personUid\n | AND schoolMemberActive))\n | )\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 64\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE \n | UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | \n | AND \n | PersonGroup.groupLct != COALESCE(\n | (SELECT pgVersionId\n | FROM PersonGroupReplicate\n | WHERE pgPk = PersonGroup.groupUid\n | AND pgDestination = UserSession.usClientNodeId), 0)\n | \n | ON CONFLICT(pgPk, pgDestination) DO UPDATE\n | SET pgPending = true\n | \n | \n |")),vF,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_F.prototype.replicateOnChange=function(t,e){var n=new CF(this,t);return e?n:n.doResume(null)},NF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},NF.prototype=Object.create(N.prototype),NF.prototype.constructor=NF,NF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},LF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},LF.prototype=Object.create(N.prototype),LF.prototype.constructor=LF,LF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO PersonGroupReplicate(pgPk, pgDestination)\n | SELECT DISTINCT PersonGroup.groupUid AS pgUid,\n | UserSession.usClientNodeId AS pgDestination\n | FROM ChangeLog\n | JOIN PersonGroup\n | ON ChangeLog.chTableId = 43\n | AND ChangeLog.chEntityPk = PersonGroup.groupUid \n | JOIN ScopedGrant ScopedGrantEntity\n | ON PersonGroup.groupUid = ScopedGrantEntity.sgGroupUid\n | JOIN Clazz \n | ON ScopedGrantEntity.sgTableId = 6\n | AND ScopedGrantEntity.sgEntityUid = Clazz.clazzUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 2\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND PersonGroup.groupLct != COALESCE(\n | (SELECT pgVersionId\n | FROM PersonGroupReplicate\n | WHERE pgPk = PersonGroup.groupUid\n | AND pgDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(pgPk, pgDestination) DO UPDATE\n | SET pgPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO PersonGroupReplicate(pgPk, pgDestination)\n | SELECT DISTINCT PersonGroup.groupUid AS pgUid,\n | UserSession.usClientNodeId AS pgDestination\n | FROM ChangeLog\n | JOIN PersonGroup\n | ON ChangeLog.chTableId = 43\n | AND ChangeLog.chEntityPk = PersonGroup.groupUid \n | JOIN ScopedGrant ScopedGrantEntity\n | ON PersonGroup.groupUid = ScopedGrantEntity.sgGroupUid\n | JOIN Clazz \n | ON ScopedGrantEntity.sgTableId = 6\n | AND ScopedGrantEntity.sgEntityUid = Clazz.clazzUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 2\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND PersonGroup.groupLct != COALESCE(\n | (SELECT pgVersionId\n | FROM PersonGroupReplicate\n | WHERE pgPk = PersonGroup.groupUid\n | AND pgDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(pgPk, pgDestination) DO UPDATE\n | SET pgPending = true\n | \n | \n |")),TF,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_F.prototype.replicateOnChangeClazzBased=function(t,e){var n=new LF(this,t);return e?n:n.doResume(null)},zF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},zF.prototype=Object.create(N.prototype),zF.prototype.constructor=zF,zF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},OF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},OF.prototype=Object.create(N.prototype),OF.prototype.constructor=OF,OF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO PersonGroupReplicate(pgPk, pgDestination)\n | SELECT DISTINCT \n | PersonGroup.groupUid AS pgUid\n | ,\n | UserSession.usClientNodeId AS pgDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 2 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | JOIN ScopedGrant ScopedGrantEntity\n | ON Clazz.clazzUid = ScopedGrantEntity.sgEntityUid\n | AND ScopedGrantEntity.sgTableId = 6\n | JOIN PersonGroup\n | ON ScopedGrantEntity.sgGroupUid = PersonGroup.groupUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND PersonGroup.groupLct != COALESCE(\n | (SELECT pgVersionId\n | FROM PersonGroupReplicate\n | WHERE pgPk = PersonGroup.groupUid\n | AND pgDestination = UserSession.usClientNodeId), 0) \n | /*psql ON CONFLICT(pgPk, pgDestination) DO UPDATE\n | SET pgPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO PersonGroupReplicate(pgPk, pgDestination)\n | SELECT DISTINCT \n | PersonGroup.groupUid AS pgUid\n | ,\n | UserSession.usClientNodeId AS pgDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 2 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | JOIN ScopedGrant ScopedGrantEntity\n | ON Clazz.clazzUid = ScopedGrantEntity.sgEntityUid\n | AND ScopedGrantEntity.sgTableId = 6\n | JOIN PersonGroup\n | ON ScopedGrantEntity.sgGroupUid = PersonGroup.groupUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND PersonGroup.groupLct != COALESCE(\n | (SELECT pgVersionId\n | FROM PersonGroupReplicate\n | WHERE pgPk = PersonGroup.groupUid\n | AND pgDestination = UserSession.usClientNodeId), 0) \n | ON CONFLICT(pgPk, pgDestination) DO UPDATE\n | SET pgPending = true\n | \n | \n |")),wF(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_F.prototype.replicateOnNewNodeClazzBased_s8cxhz$=function(t,e,n){var i=new OF(this,t,e);return n?i:i.doResume(null)},RF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},RF.prototype=Object.create(N.prototype),RF.prototype.constructor=RF,RF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},xF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},xF.prototype=Object.create(N.prototype),xF.prototype.constructor=xF,xF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO PersonGroupReplicate(pgPk, pgDestination)\n | SELECT DISTINCT PersonGroup.groupUid AS pgUid,\n | UserSession.usClientNodeId AS pgDestination\n | FROM ChangeLog\n | JOIN PersonGroup\n | ON ChangeLog.chTableId = 43\n | AND ChangeLog.chEntityPk = PersonGroup.groupUid \n | JOIN ScopedGrant ScopedGrantEntity\n | ON PersonGroup.groupUid = ScopedGrantEntity.sgGroupUid\n | JOIN Person \n | ON ScopedGrantEntity.sgTableId = 9\n | AND ScopedGrantEntity.sgEntityUid = Person.personUid\n | \n | JOIN ScopedGrant \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT clazzEnrolmentClazzUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentPersonUid = Person.personUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT schoolMemberSchoolUid\n | FROM SchoolMember\n | WHERE schoolMemberPersonUid = Person.personUid\n | AND schoolMemberActive))\n | )\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 64\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND PersonGroup.groupLct != COALESCE(\n | (SELECT pgVersionId\n | FROM PersonGroupReplicate\n | WHERE pgPk = PersonGroup.groupUid\n | AND pgDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(pgPk, pgDestination) DO UPDATE\n | SET pgPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO PersonGroupReplicate(pgPk, pgDestination)\n | SELECT DISTINCT PersonGroup.groupUid AS pgUid,\n | UserSession.usClientNodeId AS pgDestination\n | FROM ChangeLog\n | JOIN PersonGroup\n | ON ChangeLog.chTableId = 43\n | AND ChangeLog.chEntityPk = PersonGroup.groupUid \n | JOIN ScopedGrant ScopedGrantEntity\n | ON PersonGroup.groupUid = ScopedGrantEntity.sgGroupUid\n | JOIN Person \n | ON ScopedGrantEntity.sgTableId = 9\n | AND ScopedGrantEntity.sgEntityUid = Person.personUid\n | \n | JOIN ScopedGrant \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT clazzEnrolmentClazzUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentPersonUid = Person.personUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT schoolMemberSchoolUid\n | FROM SchoolMember\n | WHERE schoolMemberPersonUid = Person.personUid\n | AND schoolMemberActive))\n | )\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 64\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND PersonGroup.groupLct != COALESCE(\n | (SELECT pgVersionId\n | FROM PersonGroupReplicate\n | WHERE pgPk = PersonGroup.groupUid\n | AND pgDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(pgPk, pgDestination) DO UPDATE\n | SET pgPending = true\n | \n | \n |")),AF,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_F.prototype.replicateOnChangePersonBased=function(t,e){var n=new xF(this,t);return e?n:n.doResume(null)},IF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},IF.prototype=Object.create(N.prototype),IF.prototype.constructor=IF,IF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},DF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},DF.prototype=Object.create(N.prototype),DF.prototype.constructor=DF,DF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO PersonGroupReplicate(pgPk, pgDestination)\n | SELECT DISTINCT \n | PersonGroup.groupUid AS pgUid\n | ,\n | UserSession.usClientNodeId AS pgDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | 64\n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | JOIN ScopedGrant ScopedGrantEntity\n | ON Person.personUid = ScopedGrantEntity.sgEntityUid\n | AND ScopedGrantEntity.sgTableId = 9\n | JOIN PersonGroup\n | ON ScopedGrantEntity.sgGroupUid = PersonGroup.groupUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND PersonGroup.groupLct != COALESCE(\n | (SELECT pgVersionId\n | FROM PersonGroupReplicate\n | WHERE pgPk = PersonGroup.groupUid\n | AND pgDestination = UserSession.usClientNodeId), 0) \n | /*psql ON CONFLICT(pgPk, pgDestination) DO UPDATE\n | SET pgPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO PersonGroupReplicate(pgPk, pgDestination)\n | SELECT DISTINCT \n | PersonGroup.groupUid AS pgUid\n | ,\n | UserSession.usClientNodeId AS pgDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | 64\n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | JOIN ScopedGrant ScopedGrantEntity\n | ON Person.personUid = ScopedGrantEntity.sgEntityUid\n | AND ScopedGrantEntity.sgTableId = 9\n | JOIN PersonGroup\n | ON ScopedGrantEntity.sgGroupUid = PersonGroup.groupUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND PersonGroup.groupLct != COALESCE(\n | (SELECT pgVersionId\n | FROM PersonGroupReplicate\n | WHERE pgPk = PersonGroup.groupUid\n | AND pgDestination = UserSession.usClientNodeId), 0) \n | ON CONFLICT(pgPk, pgDestination) DO UPDATE\n | SET pgPending = true\n | \n | \n |")),UF(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_F.prototype.replicateOnNewNodePersonBased_s8cxhz$=function(t,e,n){var i=new DF(this,t,e);return n?i:i.doResume(null)},PF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},PF.prototype=Object.create(N.prototype),PF.prototype.constructor=PF,PF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},kF.prototype=Object.create(N.prototype),kF.prototype.constructor=kF,kF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO PersonGroupReplicate(pgPk, pgDestination)\n | SELECT DISTINCT PersonGroup.groupUid AS pgUid,\n | UserSession.usClientNodeId AS pgDestination\n | FROM ChangeLog\n | JOIN PersonGroup\n | ON ChangeLog.chTableId = 43\n | AND ChangeLog.chEntityPk = PersonGroup.groupUid \n | JOIN ScopedGrant ScopedGrantEntity\n | ON PersonGroup.groupUid = ScopedGrantEntity.sgGroupUid\n | JOIN School \n | ON ScopedGrantEntity.sgTableId = 164\n | AND ScopedGrantEntity.sgEntityUid = School.schoolUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = School.schoolUid))\n | \n | AND (SCopedGrant.sgPermissions &\n | \n | 536870912\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND PersonGroup.groupLct != COALESCE(\n | (SELECT pgVersionId\n | FROM PersonGroupReplicate\n | WHERE pgPk = PersonGroup.groupUid\n | AND pgDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(pgPk, pgDestination) DO UPDATE\n | SET pgPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO PersonGroupReplicate(pgPk, pgDestination)\n | SELECT DISTINCT PersonGroup.groupUid AS pgUid,\n | UserSession.usClientNodeId AS pgDestination\n | FROM ChangeLog\n | JOIN PersonGroup\n | ON ChangeLog.chTableId = 43\n | AND ChangeLog.chEntityPk = PersonGroup.groupUid \n | JOIN ScopedGrant ScopedGrantEntity\n | ON PersonGroup.groupUid = ScopedGrantEntity.sgGroupUid\n | JOIN School \n | ON ScopedGrantEntity.sgTableId = 164\n | AND ScopedGrantEntity.sgEntityUid = School.schoolUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = School.schoolUid))\n | \n | AND (SCopedGrant.sgPermissions &\n | \n | 536870912\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND PersonGroup.groupLct != COALESCE(\n | (SELECT pgVersionId\n | FROM PersonGroupReplicate\n | WHERE pgPk = PersonGroup.groupUid\n | AND pgDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(pgPk, pgDestination) DO UPDATE\n | SET pgPending = true\n | \n | \n |")),MF,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_F.prototype.replicateOnChangeSchoolBased=function(t,e){var n=new kF(this,t);return e?n:n.doResume(null)},jF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},jF.prototype=Object.create(N.prototype),jF.prototype.constructor=jF,jF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},qF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},qF.prototype=Object.create(N.prototype),qF.prototype.constructor=qF,qF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO PersonGroupReplicate(pgPk, pgDestination)\n | SELECT DISTINCT \n | PersonGroup.groupUid AS pgUid\n | ,\n | UserSession.usClientNodeId AS pgDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant \n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | \n | \n | 536870912\n | \n | ) > 0\n | JOIN School\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = School.schoolUid))\n | \n | \n | JOIN ScopedGrant ScopedGrantEntity\n | ON School.schoolUid = ScopedGrantEntity.sgEntityUid\n | AND ScopedGrantEntity.sgTableId = 9\n | JOIN PersonGroup\n | ON ScopedGrantEntity.sgGroupUid = PersonGroup.groupUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND PersonGroup.groupLct != COALESCE(\n | (SELECT pgVersionId\n | FROM PersonGroupReplicate\n | WHERE pgPk = PersonGroup.groupUid\n | AND pgDestination = UserSession.usClientNodeId), 0) \n | /*psql ON CONFLICT(pgPk, pgDestination) DO UPDATE\n | SET pgPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO PersonGroupReplicate(pgPk, pgDestination)\n | SELECT DISTINCT \n | PersonGroup.groupUid AS pgUid\n | ,\n | UserSession.usClientNodeId AS pgDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant \n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | \n | \n | 536870912\n | \n | ) > 0\n | JOIN School\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = School.schoolUid))\n | \n | \n | JOIN ScopedGrant ScopedGrantEntity\n | ON School.schoolUid = ScopedGrantEntity.sgEntityUid\n | AND ScopedGrantEntity.sgTableId = 9\n | JOIN PersonGroup\n | ON ScopedGrantEntity.sgGroupUid = PersonGroup.groupUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND PersonGroup.groupLct != COALESCE(\n | (SELECT pgVersionId\n | FROM PersonGroupReplicate\n | WHERE pgPk = PersonGroup.groupUid\n | AND pgDestination = UserSession.usClientNodeId), 0) \n | ON CONFLICT(pgPk, pgDestination) DO UPDATE\n | SET pgPending = true\n | \n | \n |")),GF(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_F.prototype.replicateOnNewNodeSchoolBased_s8cxhz$=function(t,e,n){var i=new qF(this,t,e);return n?i:i.doResume(null)},_F.prototype.findByUid_s8cxhz$=function(t){return ht(this._db,new st("SELECT * FROM PersonGroup WHERE groupUid = ?"),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),FF)}));var e},WF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},WF.prototype=Object.create(N.prototype),WF.prototype.constructor=WF,WF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,BF);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_F.prototype.findByUidAsync_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT * FROM PersonGroup WHERE groupUid = ?"),(n=t,function(t,e,i){var o=new WF(n,t,e);return i?o:o.doResume(null)}),e);var n},VF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},VF.prototype=Object.create(N.prototype),VF.prototype.constructor=VF,VF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,HF);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},XF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},XF.prototype=Object.create(N.prototype),XF.prototype.constructor=XF,XF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$PersonGroupDao_JdbcKt._db,new st("SELECT * FROM PersonGroup WHERE groupUid = ?"),KF(this.local$closure$uid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_F.prototype.findByUidLive_s8cxhz$=function(t){return new ft(this._db,Et("PersonGroup"),(e=this,n=t,function(t,i){var o=new XF(e,n,t);return i?o:o.doResume(null)}));var e,n},YF.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},YF.prototype=Object.create(N.prototype),YF.prototype.constructor=YF,YF.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$groupUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,JF);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_F.prototype.findNameByGroupUid_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | Select CASE\n | WHEN Person.firstNames IS NOT NULL THEN Person.firstNames\n | ELSE PersonGroup.groupName \n | END AS name\n | FROM PersonGroup\n | LEFT JOIN Person\n | ON Person.personGroupUid = PersonGroup.groupUid\n | WHERE PersonGroup.groupUid = ?\n | LIMIT 1\n | \n ")),(n=t,function(t,e,i){var o=new YF(n,t,e);return i?o:o.doResume(null)}),e);var n},QF.prototype.makeSql_6taknv$=function(t){return"INSERT INTO PersonGroup (groupUid, groupMasterCsn, groupLocalCsn, groupLastChangedBy, groupLct, groupName, groupActive, personGroupFlag) VALUES(?, ?, ?, ?, ?, ?, ?, ?)"},QF.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.groupUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.groupUid),t.setLong_6svq3l$(2,e.groupMasterCsn),t.setLong_6svq3l$(3,e.groupLocalCsn),t.setInt_vux9f0$(4,e.groupLastChangedBy),t.setLong_6svq3l$(5,e.groupLct),t.setString_vqvrqt$(6,e.groupName),t.setBoolean_fzusl$(7,e.groupActive),t.setInt_vux9f0$(8,e.personGroupFlag)},QF.$metadata$={kind:c,interfaces:[pt]},_F.$metadata$={kind:c,simpleName:"PersonGroupDao_JdbcKt",interfaces:[pF]},tB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},tB.prototype=Object.create(N.prototype),tB.prototype.constructor=tB,tB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ZF.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new tB(this,t,e);return n?i:i.doResume(null)},eB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},eB.prototype=Object.create(N.prototype),eB.prototype.constructor=eB,eB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ZF.prototype.replicateOnChange=function(t,e){var n=new eB(this,t);return e?n:n.doResume(null)},nB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},nB.prototype=Object.create(N.prototype),nB.prototype.constructor=nB,nB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChangeClazzBased(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ZF.prototype.replicateOnChangeClazzBased=function(t,e){var n=new nB(this,t);return e?n:n.doResume(null)},iB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},iB.prototype=Object.create(N.prototype),iB.prototype.constructor=iB,iB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNodeClazzBased_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ZF.prototype.replicateOnNewNodeClazzBased_s8cxhz$=function(t,e,n){var i=new iB(this,t,e);return n?i:i.doResume(null)},oB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},oB.prototype=Object.create(N.prototype),oB.prototype.constructor=oB,oB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChangePersonBased(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ZF.prototype.replicateOnChangePersonBased=function(t,e){var n=new oB(this,t);return e?n:n.doResume(null)},rB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},rB.prototype=Object.create(N.prototype),rB.prototype.constructor=rB,rB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNodePersonBased_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ZF.prototype.replicateOnNewNodePersonBased_s8cxhz$=function(t,e,n){var i=new rB(this,t,e);return n?i:i.doResume(null)},sB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},sB.prototype=Object.create(N.prototype),sB.prototype.constructor=sB,sB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChangeSchoolBased(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ZF.prototype.replicateOnChangeSchoolBased=function(t,e){var n=new sB(this,t);return e?n:n.doResume(null)},aB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},aB.prototype=Object.create(N.prototype),aB.prototype.constructor=aB,aB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNodeSchoolBased_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ZF.prototype.replicateOnNewNodeSchoolBased_s8cxhz$=function(t,e,n){var i=new aB(this,t,e);return n?i:i.doResume(null)},ZF.prototype.findByUid_s8cxhz$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},ZF.prototype.findByUidAsync_s8cxhz$=function(t,e){return this._dao_0.findByUidAsync_s8cxhz$(t,e)},ZF.prototype.findByUidLive_s8cxhz$=function(t){return this._dao_0.findByUidLive_s8cxhz$(t)},ZF.prototype.updateAsync_j5378c$=function(t,e){return t.groupLct=J(),this._dao_0.updateAsync_j5378c$(t,e)},ZF.prototype.findNameByGroupUid_s8cxhz$=function(t,e){return this._dao_0.findNameByGroupUid_s8cxhz$(t,e)},ZF.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},cB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},cB.prototype=Object.create(N.prototype),cB.prototype.constructor=cB,cB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.groupUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(43,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.groupUid=e,this.state_0=3;continue;case 3:if(this.local$entity.groupLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.groupUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ZF.prototype.insertAsync=function(t,e,n){var i=new cB(this,t,e);return n?i:i.doResume(null)},ZF.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},ZF.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},ZF.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},ZF.$metadata$={kind:c,simpleName:"PersonGroupDao_ReplicateWrapper",interfaces:[pF]},uB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},uB.prototype=Object.create(N.prototype),uB.prototype.constructor=uB,uB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lB.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new uB(this,t,e);return n?i:i.doResume(null)},hB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},hB.prototype=Object.create(N.prototype),hB.prototype.constructor=hB,hB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lB.prototype.replicateOnChange=function(t,e){var n=new hB(this,t);return e?n:n.doResume(null)},dB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},dB.prototype=Object.create(N.prototype),dB.prototype.constructor=dB,dB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChangeClazzBased(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lB.prototype.replicateOnChangeClazzBased=function(t,e){var n=new dB(this,t);return e?n:n.doResume(null)},pB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},pB.prototype=Object.create(N.prototype),pB.prototype.constructor=pB,pB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNodeClazzBased_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lB.prototype.replicateOnNewNodeClazzBased_s8cxhz$=function(t,e,n){var i=new pB(this,t,e);return n?i:i.doResume(null)},_B.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_B.prototype=Object.create(N.prototype),_B.prototype.constructor=_B,_B.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChangePersonBased(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lB.prototype.replicateOnChangePersonBased=function(t,e){var n=new _B(this,t);return e?n:n.doResume(null)},mB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},mB.prototype=Object.create(N.prototype),mB.prototype.constructor=mB,mB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNodePersonBased_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lB.prototype.replicateOnNewNodePersonBased_s8cxhz$=function(t,e,n){var i=new mB(this,t,e);return n?i:i.doResume(null)},fB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fB.prototype=Object.create(N.prototype),fB.prototype.constructor=fB,fB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChangeSchoolBased(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lB.prototype.replicateOnChangeSchoolBased=function(t,e){var n=new fB(this,t);return e?n:n.doResume(null)},gB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},gB.prototype=Object.create(N.prototype),gB.prototype.constructor=gB,gB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNodeSchoolBased_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lB.prototype.replicateOnNewNodeSchoolBased_s8cxhz$=function(t,e,n){var i=new gB(this,t,e);return n?i:i.doResume(null)},lB.prototype.findByUid_s8cxhz$=function(t){return this._dao.findByUid_s8cxhz$(t)},$B.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},$B.prototype=Object.create(N.prototype),$B.prototype.constructor=$B,$B.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByUidAsync_s8cxhz$(this.local$uid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lB.prototype.findByUidAsync_s8cxhz$=function(t,e,n){var i=new $B(this,t,e);return n?i:i.doResume(null)},lB.prototype.findByUidLive_s8cxhz$=function(t){return this._dao.findByUidLive_s8cxhz$(t)},EB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},EB.prototype=Object.create(N.prototype),EB.prototype.constructor=EB,EB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateAsync_j5378c$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lB.prototype.updateAsync_j5378c$=function(t,e,n){var i=new EB(this,t,e);return n?i:i.doResume(null)},yB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},yB.prototype=Object.create(N.prototype),yB.prototype.constructor=yB,yB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findNameByGroupUid_s8cxhz$(this.local$groupUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lB.prototype.findNameByGroupUid_s8cxhz$=function(t,e,n){var i=new yB(this,t,e);return n?i:i.doResume(null)},lB.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},bB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},bB.prototype=Object.create(N.prototype),bB.prototype.constructor=bB,bB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lB.prototype.insertAsync=function(t,e,n){var i=new bB(this,t,e);return n?i:i.doResume(null)},lB.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},lB.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},lB.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},lB.$metadata$={kind:c,simpleName:"PersonGroupDao_Repo",interfaces:[pF]},SB.$metadata$={kind:c,simpleName:"PersonGroupMemberDao",interfaces:[X6]},vB.prototype.insert_11rb$=function(t){return this._insertAdapterPersonGroupMember_.insertAndReturnId_11rb$(t)},CB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},CB.prototype=Object.create(N.prototype),CB.prototype.constructor=CB,CB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterPersonGroupMember_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vB.prototype.insertAsync=function(t,e,n){var i=new CB(this,t,e);return n?i:i.doResume(null)},vB.prototype.insertList_4ezy5m$=function(t){this._insertAdapterPersonGroupMember_.insertList_4ezy5m$(t)},vB.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE PersonGroupMember SET groupMemberActive = ?, groupMemberPersonUid = ?, groupMemberGroupUid = ?, groupMemberMasterCsn = ?, groupMemberLocalCsn = ?, groupMemberLastChangedBy = ?, groupMemberLct = ? WHERE groupMemberUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setBoolean_fzusl$(1,i.groupMemberActive),t.setLong_6svq3l$(2,i.groupMemberPersonUid),t.setLong_6svq3l$(3,i.groupMemberGroupUid),t.setLong_6svq3l$(4,i.groupMemberMasterCsn),t.setLong_6svq3l$(5,i.groupMemberLocalCsn),t.setInt_vux9f0$(6,i.groupMemberLastChangedBy),t.setLong_6svq3l$(7,i.groupMemberLct),t.setLong_6svq3l$(8,i.groupMemberUid),t.executeUpdate()}return t.getConnection().commit(),V}))},vB.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE PersonGroupMember SET groupMemberActive = ?, groupMemberPersonUid = ?, groupMemberGroupUid = ?, groupMemberMasterCsn = ?, groupMemberLocalCsn = ?, groupMemberLastChangedBy = ?, groupMemberLct = ? WHERE groupMemberUid = ?",(e=t,function(t){return t.setBoolean_fzusl$(1,e.groupMemberActive),t.setLong_6svq3l$(2,e.groupMemberPersonUid),t.setLong_6svq3l$(3,e.groupMemberGroupUid),t.setLong_6svq3l$(4,e.groupMemberMasterCsn),t.setLong_6svq3l$(5,e.groupMemberLocalCsn),t.setInt_vux9f0$(6,e.groupMemberLastChangedBy),t.setLong_6svq3l$(7,e.groupMemberLct),t.setLong_6svq3l$(8,e.groupMemberUid),t.executeUpdate()}))},NB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},NB.prototype=Object.create(N.prototype),NB.prototype.constructor=NB,NB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},LB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},LB.prototype=Object.create(N.prototype),LB.prototype.constructor=LB,LB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO PersonGroupMemberReplicate(pgmPk, pgmDestination)\n | SELECT DISTINCT PersonGroupMember.groupMemberUid AS pgmUid,\n | ? AS pgmDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | 64\n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | JOIN PersonGroupMember PersonsWithPerm_GroupMember\n | ON PersonsWithPerm_GroupMember.groupMemberPersonUid = Person.personUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND PersonGroupMember.groupMemberLct != COALESCE(\n | (SELECT pgmVersionId\n | FROM PersonGroupMemberReplicate\n | WHERE pgmPk = PersonGroupMember.groupMemberUid\n | AND pgmDestination = ?), 0) \n | /*psql ON CONFLICT(pgmPk, pgmDestination) DO UPDATE\n | SET pgmPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO PersonGroupMemberReplicate(pgmPk, pgmDestination)\n | SELECT DISTINCT PersonGroupMember.groupMemberUid AS pgmUid,\n | ? AS pgmDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | 64\n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | JOIN PersonGroupMember PersonsWithPerm_GroupMember\n | ON PersonsWithPerm_GroupMember.groupMemberPersonUid = Person.personUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND PersonGroupMember.groupMemberLct != COALESCE(\n | (SELECT pgmVersionId\n | FROM PersonGroupMemberReplicate\n | WHERE pgmPk = PersonGroupMember.groupMemberUid\n | AND pgmDestination = ?), 0) \n | ON CONFLICT(pgmPk, pgmDestination) DO UPDATE\n | SET pgmPending = true\n | \n | \n |")),TB(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vB.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new LB(this,t,e);return n?i:i.doResume(null)},zB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},zB.prototype=Object.create(N.prototype),zB.prototype.constructor=zB,zB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},OB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},OB.prototype=Object.create(N.prototype),OB.prototype.constructor=OB,OB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO PersonGroupMemberReplicate(pgmPk, pgmDestination)\n | SELECT DISTINCT PersonGroupMember.groupMemberUid AS pgmUid,\n | UserSession.usClientNodeId AS pgmDestination\n | FROM ChangeLog\n | JOIN PersonGroupMember\n | ON ChangeLog.chTableId = 44\n | AND ChangeLog.chEntityPk = PersonGroupMember.groupMemberUid\n | JOIN Person\n | ON PersonGroupMember.groupMemberPersonUid = Person.personUid\n | \n | JOIN ScopedGrant \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT clazzEnrolmentClazzUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentPersonUid = Person.personUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT schoolMemberSchoolUid\n | FROM SchoolMember\n | WHERE schoolMemberPersonUid = Person.personUid\n | AND schoolMemberActive))\n | )\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 64\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND PersonGroupMember.groupMemberLct != COALESCE(\n | (SELECT pgmVersionId\n | FROM PersonGroupMemberReplicate\n | WHERE pgmPk = PersonGroupMember.groupMemberUid\n | AND pgmDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(pgmPk, pgmDestination) DO UPDATE\n | SET pgmPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO PersonGroupMemberReplicate(pgmPk, pgmDestination)\n | SELECT DISTINCT PersonGroupMember.groupMemberUid AS pgmUid,\n | UserSession.usClientNodeId AS pgmDestination\n | FROM ChangeLog\n | JOIN PersonGroupMember\n | ON ChangeLog.chTableId = 44\n | AND ChangeLog.chEntityPk = PersonGroupMember.groupMemberUid\n | JOIN Person\n | ON PersonGroupMember.groupMemberPersonUid = Person.personUid\n | \n | JOIN ScopedGrant \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT clazzEnrolmentClazzUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentPersonUid = Person.personUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT schoolMemberSchoolUid\n | FROM SchoolMember\n | WHERE schoolMemberPersonUid = Person.personUid\n | AND schoolMemberActive))\n | )\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 64\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND PersonGroupMember.groupMemberLct != COALESCE(\n | (SELECT pgmVersionId\n | FROM PersonGroupMemberReplicate\n | WHERE pgmPk = PersonGroupMember.groupMemberUid\n | AND pgmDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(pgmPk, pgmDestination) DO UPDATE\n | SET pgmPending = true\n | \n | \n |")),wB,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vB.prototype.replicateOnChange=function(t,e){var n=new OB(this,t);return e?n:n.doResume(null)},RB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},RB.prototype=Object.create(N.prototype),RB.prototype.constructor=RB,RB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},xB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},xB.prototype=Object.create(N.prototype),xB.prototype.constructor=xB,xB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO PersonGroupMemberReplicate(pgmPk, pgmDestination)\n | SELECT DISTINCT PersonGroupMember.groupMemberUid AS pgmUid,\n | UserSession.usClientNodeId AS pgmDestination\n | FROM ChangeLog\n | JOIN PersonGroupMember\n | ON ChangeLog.chTableId = 44\n | AND ChangeLog.chEntityPk = PersonGroupMember.groupMemberUid\n | JOIN ScopedGrant ScopedGrantEntity\n | ON PersonGroupMember.groupMemberUid = ScopedGrantEntity.sgGroupUid\n | JOIN Clazz \n | ON ScopedGrantEntity.sgTableId = 6\n | AND ScopedGrantEntity.sgEntityUid = Clazz.clazzUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 2\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND PersonGroupMember.groupMemberLct != COALESCE(\n | (SELECT pgmVersionId\n | FROM PersonGroupMemberReplicate\n | WHERE pgmPk = PersonGroupMember.groupMemberUid\n | AND pgmDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(pgmPk, pgmDestination) DO UPDATE\n | SET pgmPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO PersonGroupMemberReplicate(pgmPk, pgmDestination)\n | SELECT DISTINCT PersonGroupMember.groupMemberUid AS pgmUid,\n | UserSession.usClientNodeId AS pgmDestination\n | FROM ChangeLog\n | JOIN PersonGroupMember\n | ON ChangeLog.chTableId = 44\n | AND ChangeLog.chEntityPk = PersonGroupMember.groupMemberUid\n | JOIN ScopedGrant ScopedGrantEntity\n | ON PersonGroupMember.groupMemberUid = ScopedGrantEntity.sgGroupUid\n | JOIN Clazz \n | ON ScopedGrantEntity.sgTableId = 6\n | AND ScopedGrantEntity.sgEntityUid = Clazz.clazzUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 2\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND PersonGroupMember.groupMemberLct != COALESCE(\n | (SELECT pgmVersionId\n | FROM PersonGroupMemberReplicate\n | WHERE pgmPk = PersonGroupMember.groupMemberUid\n | AND pgmDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(pgmPk, pgmDestination) DO UPDATE\n | SET pgmPending = true\n | \n | \n |")),AB,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vB.prototype.replicateOnChangeClazzBased=function(t,e){var n=new xB(this,t);return e?n:n.doResume(null)},IB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},IB.prototype=Object.create(N.prototype),IB.prototype.constructor=IB,IB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},DB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},DB.prototype=Object.create(N.prototype),DB.prototype.constructor=DB,DB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO PersonGroupMemberReplicate(pgmPk, pgmDestination)\n | SELECT DISTINCT PersonGroupMember.groupMemberUid AS pgmUid,\n | ? AS pgmDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 2 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | JOIN ScopedGrant ScopedGrantEntity\n | ON Clazz.clazzUid = ScopedGrantEntity.sgEntityUid\n | AND ScopedGrantEntity.sgTableId = 6\n | JOIN PersonGroupMember PersonGroupMemberEntity\n | ON PersonGroupMemberEntity.groupMemberGroupUid = ScopedGrantEntity.sgGroupUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1 \n | AND PersonGroupMember.groupMemberLct != COALESCE(\n | (SELECT pgmVersionId\n | FROM PersonGroupMemberReplicate\n | WHERE pgmPk = PersonGroupMember.groupMemberUid\n | AND pgmDestination = ?), 0) \n | /*psql ON CONFLICT(pgmPk, pgmDestination) DO UPDATE\n | SET pgmPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO PersonGroupMemberReplicate(pgmPk, pgmDestination)\n | SELECT DISTINCT PersonGroupMember.groupMemberUid AS pgmUid,\n | ? AS pgmDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 2 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | JOIN ScopedGrant ScopedGrantEntity\n | ON Clazz.clazzUid = ScopedGrantEntity.sgEntityUid\n | AND ScopedGrantEntity.sgTableId = 6\n | JOIN PersonGroupMember PersonGroupMemberEntity\n | ON PersonGroupMemberEntity.groupMemberGroupUid = ScopedGrantEntity.sgGroupUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1 \n | AND PersonGroupMember.groupMemberLct != COALESCE(\n | (SELECT pgmVersionId\n | FROM PersonGroupMemberReplicate\n | WHERE pgmPk = PersonGroupMember.groupMemberUid\n | AND pgmDestination = ?), 0) \n | ON CONFLICT(pgmPk, pgmDestination) DO UPDATE\n | SET pgmPending = true\n | \n | \n |")),UB(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vB.prototype.replicateOnNewNodeClazzBased_s8cxhz$=function(t,e,n){var i=new DB(this,t,e);return n?i:i.doResume(null)},PB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},PB.prototype=Object.create(N.prototype),PB.prototype.constructor=PB,PB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},kB.prototype=Object.create(N.prototype),kB.prototype.constructor=kB,kB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO PersonGroupMemberReplicate(pgmPk, pgmDestination)\n | SELECT DISTINCT PersonGroupMember.groupMemberUid AS pgmUid,\n | UserSession.usClientNodeId AS pgmDestination\n | FROM ChangeLog\n | JOIN PersonGroupMember\n | ON ChangeLog.chTableId = 44\n | AND ChangeLog.chEntityPk = PersonGroupMember.groupMemberUid\n | JOIN ScopedGrant ScopedGrantEntity\n | ON PersonGroupMember.groupMemberUid = ScopedGrantEntity.sgGroupUid\n | JOIN School \n | ON ScopedGrantEntity.sgTableId = 164\n | AND ScopedGrantEntity.sgEntityUid = School.schoolUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = School.schoolUid))\n | \n | AND (SCopedGrant.sgPermissions &\n | \n | 536870912\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND PersonGroupMember.groupMemberLct != COALESCE(\n | (SELECT pgmVersionId\n | FROM PersonGroupMemberReplicate\n | WHERE pgmPk = PersonGroupMember.groupMemberUid\n | AND pgmDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(pgmPk, pgmDestination) DO UPDATE\n | SET pgmPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO PersonGroupMemberReplicate(pgmPk, pgmDestination)\n | SELECT DISTINCT PersonGroupMember.groupMemberUid AS pgmUid,\n | UserSession.usClientNodeId AS pgmDestination\n | FROM ChangeLog\n | JOIN PersonGroupMember\n | ON ChangeLog.chTableId = 44\n | AND ChangeLog.chEntityPk = PersonGroupMember.groupMemberUid\n | JOIN ScopedGrant ScopedGrantEntity\n | ON PersonGroupMember.groupMemberUid = ScopedGrantEntity.sgGroupUid\n | JOIN School \n | ON ScopedGrantEntity.sgTableId = 164\n | AND ScopedGrantEntity.sgEntityUid = School.schoolUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = School.schoolUid))\n | \n | AND (SCopedGrant.sgPermissions &\n | \n | 536870912\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND PersonGroupMember.groupMemberLct != COALESCE(\n | (SELECT pgmVersionId\n | FROM PersonGroupMemberReplicate\n | WHERE pgmPk = PersonGroupMember.groupMemberUid\n | AND pgmDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(pgmPk, pgmDestination) DO UPDATE\n | SET pgmPending = true\n | \n | \n |")),MB,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vB.prototype.replicateOnChangeSchoolBased=function(t,e){var n=new kB(this,t);return e?n:n.doResume(null)},jB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},jB.prototype=Object.create(N.prototype),jB.prototype.constructor=jB,jB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},qB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},qB.prototype=Object.create(N.prototype),qB.prototype.constructor=qB,qB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO PersonGroupMemberReplicate(pgmPk, pgmDestination)\n | SELECT DISTINCT PersonGroupMember.groupMemberUid AS pgmUid,\n | ? AS pgmDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant \n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | \n | \n | 536870912\n | \n | ) > 0\n | JOIN School\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = School.schoolUid))\n | \n | \n | JOIN ScopedGrant ScopedGrantEntity\n | ON School.schoolUid = ScopedGrantEntity.sgEntityUid\n | AND ScopedGrantEntity.sgTableId = 164\n | JOIN PersonGroupMember PersonGroupMemberEntity\n | ON PersonGroupMemberEntity.groupMemberGroupUid = ScopedGrantEntity.sgGroupUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1 \n | AND PersonGroupMember.groupMemberLct != COALESCE(\n | (SELECT pgmVersionId\n | FROM PersonGroupMemberReplicate\n | WHERE pgmPk = PersonGroupMember.groupMemberUid\n | AND pgmDestination = ?), 0) \n | /*psql ON CONFLICT(pgmPk, pgmDestination) DO UPDATE\n | SET pgmPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO PersonGroupMemberReplicate(pgmPk, pgmDestination)\n | SELECT DISTINCT PersonGroupMember.groupMemberUid AS pgmUid,\n | ? AS pgmDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant \n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | \n | \n | 536870912\n | \n | ) > 0\n | JOIN School\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = School.schoolUid))\n | \n | \n | JOIN ScopedGrant ScopedGrantEntity\n | ON School.schoolUid = ScopedGrantEntity.sgEntityUid\n | AND ScopedGrantEntity.sgTableId = 164\n | JOIN PersonGroupMember PersonGroupMemberEntity\n | ON PersonGroupMemberEntity.groupMemberGroupUid = ScopedGrantEntity.sgGroupUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1 \n | AND PersonGroupMember.groupMemberLct != COALESCE(\n | (SELECT pgmVersionId\n | FROM PersonGroupMemberReplicate\n | WHERE pgmPk = PersonGroupMember.groupMemberUid\n | AND pgmDestination = ?), 0) \n | ON CONFLICT(pgmPk, pgmDestination) DO UPDATE\n | SET pgmPending = true\n | \n | \n |")),GB(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vB.prototype.replicateOnNewNodeSchoolBased_s8cxhz$=function(t,e,n){var i=new qB(this,t,e);return n?i:i.doResume(null)},BB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},BB.prototype=Object.create(N.prototype),BB.prototype.constructor=BB,BB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,FB);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vB.prototype.findAllGroupWherePersonIsIn_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT * FROM PersonGroupMember WHERE groupMemberPersonUid = ? AND PersonGroupMember.groupMemberActive"),(n=t,function(t,e,i){var o=new BB(n,t,e);return i?o:o.doResume(null)}),e);var n},HB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},HB.prototype=Object.create(N.prototype),HB.prototype.constructor=HB,HB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$groupUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$personUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,WB);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vB.prototype.checkPersonBelongsToGroup_3pjtqy$=function(t,e,n){return ct(this._db,new st(S("\n |SELECT * FROM PersonGroupMember WHERE groupMemberGroupUid = ? \n | AND groupMemberPersonUid = ? AND PersonGroupMember.groupMemberActive\n ")),(i=t,o=e,function(t,e,n){var r=new HB(i,o,t,e);return n?r:r.doResume(null)}),n);var i,o},VB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},VB.prototype=Object.create(N.prototype),VB.prototype.constructor=VB,VB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newGroup),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$changeTime),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$oldGroup),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vB.prototype.moveGroupAsync_9xn71c$=function(t,e,n,i,o){return ct(this._db,new st(S("\n |\n | UPDATE PersonGroupMember \n | SET groupMemberGroupUid = ?,\n | groupMemberLct = ?\n | WHERE groupMemberPersonUid = ? \n | AND groupMemberGroupUid = ? \n | AND PersonGroupMember.groupMemberActive\n ")),(r=e,s=i,a=t,c=n,function(t,e,n){var i=new VB(r,s,a,c,t,e);return n?i:i.doResume(null)}),o);var r,s,a,c},KB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},KB.prototype=Object.create(N.prototype),KB.prototype.constructor=KB,KB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setBoolean_fzusl$(1,this.local$closure$activeStatus),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$updateTime),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$groupUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},JB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},JB.prototype=Object.create(N.prototype),JB.prototype.constructor=JB,JB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | UPDATE PersonGroupMember \n | SET groupMemberActive = ?,\n | groupMemberLct = ?\n | WHERE groupMemberPersonUid = ? \n | AND groupMemberGroupUid = ? \n | AND PersonGroupMember.groupMemberActive\n ")),XB(this.local$activeStatus,this.local$updateTime,this.local$personUid,this.local$groupUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vB.prototype.updateGroupMemberActive_u4hhv2$=function(t,e,n,i,o,r){var s=new JB(this,t,e,n,i,o);return r?s:s.doResume(null)},QB.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},QB.prototype=Object.create(N.prototype),QB.prototype.constructor=QB,QB.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$groupUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,YB);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vB.prototype.findByPersonUidAndGroupUid_3pjtqy$=function(t,e,n){return ct(this._db,new st(S("\n |\n | SELECT PersonGroupMember.*\n | FROM PersonGroupMember\n | WHERE PersonGroupMember.groupMemberPersonUid = ?\n | AND PersonGroupMember.groupMemberGroupUid = ?\n | \n ")),(i=t,o=e,function(t,e,n){var r=new QB(i,o,t,e);return n?r:r.doResume(null)}),n);var i,o},ZB.prototype.makeSql_6taknv$=function(t){return"INSERT INTO PersonGroupMember (groupMemberUid, groupMemberActive, groupMemberPersonUid, groupMemberGroupUid, groupMemberMasterCsn, groupMemberLocalCsn, groupMemberLastChangedBy, groupMemberLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?)"},ZB.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.groupMemberUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.groupMemberUid),t.setBoolean_fzusl$(2,e.groupMemberActive),t.setLong_6svq3l$(3,e.groupMemberPersonUid),t.setLong_6svq3l$(4,e.groupMemberGroupUid),t.setLong_6svq3l$(5,e.groupMemberMasterCsn),t.setLong_6svq3l$(6,e.groupMemberLocalCsn),t.setInt_vux9f0$(7,e.groupMemberLastChangedBy),t.setLong_6svq3l$(8,e.groupMemberLct)},ZB.$metadata$={kind:c,interfaces:[pt]},vB.$metadata$={kind:c,simpleName:"PersonGroupMemberDao_JdbcKt",interfaces:[SB]},eW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},eW.prototype=Object.create(N.prototype),eW.prototype.constructor=eW,eW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tW.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new eW(this,t,e);return n?i:i.doResume(null)},nW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},nW.prototype=Object.create(N.prototype),nW.prototype.constructor=nW,nW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tW.prototype.replicateOnChange=function(t,e){var n=new nW(this,t);return e?n:n.doResume(null)},iW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},iW.prototype=Object.create(N.prototype),iW.prototype.constructor=iW,iW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChangeClazzBased(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tW.prototype.replicateOnChangeClazzBased=function(t,e){var n=new iW(this,t);return e?n:n.doResume(null)},oW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},oW.prototype=Object.create(N.prototype),oW.prototype.constructor=oW,oW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNodeClazzBased_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tW.prototype.replicateOnNewNodeClazzBased_s8cxhz$=function(t,e,n){var i=new oW(this,t,e);return n?i:i.doResume(null)},rW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},rW.prototype=Object.create(N.prototype),rW.prototype.constructor=rW,rW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChangeSchoolBased(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tW.prototype.replicateOnChangeSchoolBased=function(t,e){var n=new rW(this,t);return e?n:n.doResume(null)},sW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},sW.prototype=Object.create(N.prototype),sW.prototype.constructor=sW,sW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNodeSchoolBased_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tW.prototype.replicateOnNewNodeSchoolBased_s8cxhz$=function(t,e,n){var i=new sW(this,t,e);return n?i:i.doResume(null)},tW.prototype.findAllGroupWherePersonIsIn_s8cxhz$=function(t,e){return this._dao_0.findAllGroupWherePersonIsIn_s8cxhz$(t,e)},tW.prototype.checkPersonBelongsToGroup_3pjtqy$=function(t,e,n){return this._dao_0.checkPersonBelongsToGroup_3pjtqy$(t,e,n)},tW.prototype.moveGroupAsync_9xn71c$=function(t,e,n,i,o){return this._dao_0.moveGroupAsync_9xn71c$(t,e,n,i,o)},aW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},aW.prototype=Object.create(N.prototype),aW.prototype.constructor=aW,aW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.updateGroupMemberActive_u4hhv2$(this.local$activeStatus,this.local$personUid,this.local$groupUid,this.local$updateTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tW.prototype.updateGroupMemberActive_u4hhv2$=function(t,e,n,i,o,r){var s=new aW(this,t,e,n,i,o);return r?s:s.doResume(null)},tW.prototype.findByPersonUidAndGroupUid_3pjtqy$=function(t,e,n){return this._dao_0.findByPersonUidAndGroupUid_3pjtqy$(t,e,n)},tW.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},cW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},cW.prototype=Object.create(N.prototype),cW.prototype.constructor=cW,cW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.groupMemberUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(44,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.groupMemberUid=e,this.state_0=3;continue;case 3:if(this.local$entity.groupMemberLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.groupMemberUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tW.prototype.insertAsync=function(t,e,n){var i=new cW(this,t,e);return n?i:i.doResume(null)},tW.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},tW.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},tW.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},tW.$metadata$={kind:c,simpleName:"PersonGroupMemberDao_ReplicateWrapper",interfaces:[SB]},uW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},uW.prototype=Object.create(N.prototype),uW.prototype.constructor=uW,uW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lW.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new uW(this,t,e);return n?i:i.doResume(null)},hW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},hW.prototype=Object.create(N.prototype),hW.prototype.constructor=hW,hW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lW.prototype.replicateOnChange=function(t,e){var n=new hW(this,t);return e?n:n.doResume(null)},dW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},dW.prototype=Object.create(N.prototype),dW.prototype.constructor=dW,dW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChangeClazzBased(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lW.prototype.replicateOnChangeClazzBased=function(t,e){var n=new dW(this,t);return e?n:n.doResume(null)},pW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},pW.prototype=Object.create(N.prototype),pW.prototype.constructor=pW,pW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNodeClazzBased_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lW.prototype.replicateOnNewNodeClazzBased_s8cxhz$=function(t,e,n){var i=new pW(this,t,e);return n?i:i.doResume(null)},_W.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_W.prototype=Object.create(N.prototype),_W.prototype.constructor=_W,_W.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChangeSchoolBased(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lW.prototype.replicateOnChangeSchoolBased=function(t,e){var n=new _W(this,t);return e?n:n.doResume(null)},mW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},mW.prototype=Object.create(N.prototype),mW.prototype.constructor=mW,mW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNodeSchoolBased_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lW.prototype.replicateOnNewNodeSchoolBased_s8cxhz$=function(t,e,n){var i=new mW(this,t,e);return n?i:i.doResume(null)},fW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fW.prototype=Object.create(N.prototype),fW.prototype.constructor=fW,fW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findAllGroupWherePersonIsIn_s8cxhz$(this.local$personUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lW.prototype.findAllGroupWherePersonIsIn_s8cxhz$=function(t,e,n){var i=new fW(this,t,e);return n?i:i.doResume(null)},gW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},gW.prototype=Object.create(N.prototype),gW.prototype.constructor=gW,gW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.checkPersonBelongsToGroup_3pjtqy$(this.local$groupUid,this.local$personUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lW.prototype.checkPersonBelongsToGroup_3pjtqy$=function(t,e,n,i){var o=new gW(this,t,e,n);return i?o:o.doResume(null)},$W.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},$W.prototype=Object.create(N.prototype),$W.prototype.constructor=$W,$W.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.moveGroupAsync_9xn71c$(this.local$personUid,this.local$newGroup,this.local$oldGroup,this.local$changeTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lW.prototype.moveGroupAsync_9xn71c$=function(t,e,n,i,o,r){var s=new $W(this,t,e,n,i,o);return r?s:s.doResume(null)},EW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},EW.prototype=Object.create(N.prototype),EW.prototype.constructor=EW,EW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateGroupMemberActive_u4hhv2$(this.local$activeStatus,this.local$personUid,this.local$groupUid,this.local$updateTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lW.prototype.updateGroupMemberActive_u4hhv2$=function(t,e,n,i,o,r){var s=new EW(this,t,e,n,i,o);return r?s:s.doResume(null)},yW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},yW.prototype=Object.create(N.prototype),yW.prototype.constructor=yW,yW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByPersonUidAndGroupUid_3pjtqy$(this.local$personUid,this.local$groupUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lW.prototype.findByPersonUidAndGroupUid_3pjtqy$=function(t,e,n,i){var o=new yW(this,t,e,n);return i?o:o.doResume(null)},lW.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},bW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},bW.prototype=Object.create(N.prototype),bW.prototype.constructor=bW,bW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lW.prototype.insertAsync=function(t,e,n){var i=new bW(this,t,e);return n?i:i.doResume(null)},lW.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},lW.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},lW.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},lW.$metadata$={kind:c,simpleName:"PersonGroupMemberDao_Repo",interfaces:[SB]},SW.$metadata$={kind:c,simpleName:"PersonParentJoinDao",interfaces:[]},CW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},CW.prototype=Object.create(N.prototype),CW.prototype.constructor=CW,CW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterPersonParentJoin_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vW.prototype.insertAsync_ei4fsf$=function(t,e,n){var i=new CW(this,t,e);return n?i:i.doResume(null)},NW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},NW.prototype=Object.create(N.prototype),NW.prototype.constructor=NW,NW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personParentJoin.ppjPcsn),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$personParentJoin.ppjLcsn),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$personParentJoin.ppjLcb),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$personParentJoin.ppjLct),this.local$_stmt.setLong_6svq3l$(5,this.local$closure$personParentJoin.ppjParentPersonUid),this.local$_stmt.setLong_6svq3l$(6,this.local$closure$personParentJoin.ppjMinorPersonUid),this.local$_stmt.setInt_vux9f0$(7,this.local$closure$personParentJoin.ppjRelationship),this.local$_stmt.setString_vqvrqt$(8,this.local$closure$personParentJoin.ppjEmail),this.local$_stmt.setString_vqvrqt$(9,this.local$closure$personParentJoin.ppjPhone),this.local$_stmt.setBoolean_fzusl$(10,this.local$closure$personParentJoin.ppjInactive),this.local$_stmt.setInt_vux9f0$(11,this.local$closure$personParentJoin.ppjStatus),this.local$_stmt.setLong_6svq3l$(12,this.local$closure$personParentJoin.ppjApprovalTiemstamp),this.local$_stmt.setString_vqvrqt$(13,this.local$closure$personParentJoin.ppjApprovalIpAddr),this.local$_stmt.setLong_6svq3l$(14,this.local$closure$personParentJoin.ppjUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},LW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},LW.prototype=Object.create(N.prototype),LW.prototype.constructor=LW,LW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE PersonParentJoin SET ppjPcsn = ?, ppjLcsn = ?, ppjLcb = ?, ppjLct = ?, ppjParentPersonUid = ?, ppjMinorPersonUid = ?, ppjRelationship = ?, ppjEmail = ?, ppjPhone = ?, ppjInactive = ?, ppjStatus = ?, ppjApprovalTiemstamp = ?, ppjApprovalIpAddr = ? WHERE ppjUid = ?",TW(this.local$personParentJoin),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vW.prototype.updateAsync_ei4fsf$=function(t,e,n){var i=new LW(this,t,e);return n?i:i.doResume(null)},zW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},zW.prototype=Object.create(N.prototype),zW.prototype.constructor=zW,zW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},OW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},OW.prototype=Object.create(N.prototype),OW.prototype.constructor=OW,OW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO PersonParentJoinReplicate(ppjPk, ppjDestination)\n | SELECT DISTINCT PersonParentJoin.ppjUid AS ppjPk,\n | ? AS ppjDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | 64\n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | JOIN PersonParentJoin\n | ON PersonParentJoin.ppjParentPersonUid = Person.personUid \n | WHERE UserSession.usStatus = 1\n | AND PersonParentJoin.ppjLct != COALESCE(\n | (SELECT ppjVersionId\n | FROM PersonParentJoinReplicate\n | WHERE ppjPk = PersonParentJoin.ppjUid\n | AND ppjDestination = ?), 0) \n | /*psql ON CONFLICT(ppjPk, ppjDestination) DO UPDATE\n | SET ppjPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO PersonParentJoinReplicate(ppjPk, ppjDestination)\n | SELECT DISTINCT PersonParentJoin.ppjUid AS ppjPk,\n | ? AS ppjDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | 64\n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | JOIN PersonParentJoin\n | ON PersonParentJoin.ppjParentPersonUid = Person.personUid \n | WHERE UserSession.usStatus = 1\n | AND PersonParentJoin.ppjLct != COALESCE(\n | (SELECT ppjVersionId\n | FROM PersonParentJoinReplicate\n | WHERE ppjPk = PersonParentJoin.ppjUid\n | AND ppjDestination = ?), 0) \n | ON CONFLICT(ppjPk, ppjDestination) DO UPDATE\n | SET ppjPending = true\n | \n | \n |")),wW(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vW.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new OW(this,t,e);return n?i:i.doResume(null)},RW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},RW.prototype=Object.create(N.prototype),RW.prototype.constructor=RW,RW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},xW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},xW.prototype=Object.create(N.prototype),xW.prototype.constructor=xW,xW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO PersonParentJoinReplicate(ppjPk, ppjDestination)\n | SELECT DISTINCT PersonParentJoin.ppjUid AS ppjUid,\n | UserSession.usClientNodeId AS ppjDestination\n | FROM ChangeLog\n | JOIN PersonParentJoin\n | ON ChangeLog.chTableId = 512\n | AND ChangeLog.chEntityPk = PersonParentJoin.ppjUid\n | JOIN Person\n | ON PersonParentJoin.ppjParentPersonUid = Person.personUid\n | \n | JOIN ScopedGrant \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT clazzEnrolmentClazzUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentPersonUid = Person.personUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT schoolMemberSchoolUid\n | FROM SchoolMember\n | WHERE schoolMemberPersonUid = Person.personUid\n | AND schoolMemberActive))\n | )\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 64\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId\n | FROM SyncNode\n | LIMIT 1)\n | AND PersonParentJoin.ppjLct != COALESCE(\n | (SELECT ppjVersionId\n | FROM PersonParentJoinReplicate\n | WHERE ppjPk = PersonParentJoin.ppjUid\n | AND ppjDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(ppjPk, ppjDestination) DO UPDATE\n | SET ppjPending = true\n | */\n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO PersonParentJoinReplicate(ppjPk, ppjDestination)\n | SELECT DISTINCT PersonParentJoin.ppjUid AS ppjUid,\n | UserSession.usClientNodeId AS ppjDestination\n | FROM ChangeLog\n | JOIN PersonParentJoin\n | ON ChangeLog.chTableId = 512\n | AND ChangeLog.chEntityPk = PersonParentJoin.ppjUid\n | JOIN Person\n | ON PersonParentJoin.ppjParentPersonUid = Person.personUid\n | \n | JOIN ScopedGrant \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT clazzEnrolmentClazzUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentPersonUid = Person.personUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT schoolMemberSchoolUid\n | FROM SchoolMember\n | WHERE schoolMemberPersonUid = Person.personUid\n | AND schoolMemberActive))\n | )\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 64\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId\n | FROM SyncNode\n | LIMIT 1)\n | AND PersonParentJoin.ppjLct != COALESCE(\n | (SELECT ppjVersionId\n | FROM PersonParentJoinReplicate\n | WHERE ppjPk = PersonParentJoin.ppjUid\n | AND ppjDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(ppjPk, ppjDestination) DO UPDATE\n | SET ppjPending = true\n | \n | \n |")),AW,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vW.prototype.replicateOnChange=function(t,e){var n=new xW(this,t);return e?n:n.doResume(null)},UW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},UW.prototype=Object.create(N.prototype),UW.prototype.constructor=UW,UW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,IW);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vW.prototype.findByUidWithMinorAsync_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT PersonParentJoin.*, Person.*\n | FROM PersonParentJoin\n | LEFT JOIN Person ON Person.personUid = PersonParentJoin.ppjMinorPersonUid \n | WHERE PersonParentJoin.ppjUid = ?\n | \n ")),(n=t,function(t,e,i){var o=new UW(n,t,e);return i?o:o.doResume(null)}),e);var n},PW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},PW.prototype=Object.create(N.prototype),PW.prototype.constructor=PW,PW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,DW);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vW.prototype.findByUidWithMinorAsyncFromWeb_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT PersonParentJoin.*, Person.*\n | FROM PersonParentJoin\n | LEFT JOIN Person ON Person.personUid = PersonParentJoin.ppjMinorPersonUid \n | WHERE PersonParentJoin.ppjUid = ?\n | \n ")),(n=t,function(t,e,i){var o=new PW(n,t,e);return i?o:o.doResume(null)}),e);var n},kW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},kW.prototype=Object.create(N.prototype),kW.prototype.constructor=kW,kW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$minorPersonUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,MW);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vW.prototype.findByMinorPersonUid_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT PersonParentJoin.*\n | FROM PersonParentJoin\n | WHERE ppjMinorPersonUid = ? \n | \n ")),(n=t,function(t,e,i){var o=new kW(n,t,e);return i?o:o.doResume(null)}),e);var n},GW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},GW.prototype=Object.create(N.prototype),GW.prototype.constructor=GW,GW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$minorPersonUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$clazzUidFilter),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$clazzUidFilter),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$minorPersonUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,jW);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vW.prototype.findByMinorPersonUidWhereParentNotEnrolledInClazz_3pjtqy$=function(t,e,n){return ct(this._db,new st(S("\n |\n | SELECT PersonParentJoin.ppjParentPersonUid AS parentPersonUid,\n | ChildEnrolment.clazzEnrolmentClazzUid AS clazzUid\n | FROM PersonParentJoin\n | JOIN ClazzEnrolment ChildEnrolment \n | ON ChildEnrolment.clazzEnrolmentPersonUid = ?\n | AND (? = 0 OR ChildEnrolment.clazzEnrolmentClazzUid = ?)\n | WHERE PersonParentJoin.ppjMinorPersonUid = ?\n | AND PersonParentJoin.ppjParentPersonUid != 0\n | AND NOT EXISTS(\n | SELECT clazzEnrolmentUid \n | FROM ClazzEnrolment\n | WHERE ClazzEnrolment.clazzEnrolmentPersonUid = PersonParentJoin.ppjParentPersonUid\n | AND ClazzEnrolment.clazzEnrolmentClazzUid = ChildEnrolment.clazzEnrolmentClazzUid\n | AND ClazzEnrolment.clazzEnrolmentRole = 1003\n | AND CAST(ClazzEnrolment.clazzEnrolmentActive AS INTEGER) = 1)\n | \n ")),(i=t,o=e,function(t,e,n){var r=new GW(i,o,t,e);return n?r:r.doResume(null)}),n);var i,o},FW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},FW.prototype=Object.create(N.prototype),FW.prototype.constructor=FW,FW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$minorPersonUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$userPersonUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,qW);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vW.prototype.isParentOf_3pjtqy$=function(t,e,n){return ct(this._db,new st(S("\n |\n | SELECT EXISTS(\n | SELECT ppjUid\n | FROM PersonParentJoin\n | WHERE ppjMinorPersonUid = ?\n | AND ppjParentPersonUid = ?\n | AND CAST(ppjInactive AS INTEGER) = 0)\n | \n ")),(i=e,o=t,function(t,e,n){var r=new FW(i,o,t,e);return n?r:r.doResume(null)}),n);var i,o},WW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},WW.prototype=Object.create(N.prototype),WW.prototype.constructor=WW,WW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$minorPersonUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,BW);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vW.prototype.isMinorApproved_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT EXISTS(\n | SELECT ppjUid\n | FROM PersonParentJoin\n | WHERE ppjMinorPersonUid = ?\n | AND CAST(ppjInactive AS INTEGER) = 0\n | AND ppjStatus = 1)\n | \n ")),(n=t,function(t,e,i){var o=new WW(n,t,e);return i?o:o.doResume(null)}),e);var n},HW.prototype.makeSql_6taknv$=function(t){return"INSERT INTO PersonParentJoin (ppjUid, ppjPcsn, ppjLcsn, ppjLcb, ppjLct, ppjParentPersonUid, ppjMinorPersonUid, ppjRelationship, ppjEmail, ppjPhone, ppjInactive, ppjStatus, ppjApprovalTiemstamp, ppjApprovalIpAddr) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},HW.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.ppjUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.ppjUid),t.setLong_6svq3l$(2,e.ppjPcsn),t.setLong_6svq3l$(3,e.ppjLcsn),t.setInt_vux9f0$(4,e.ppjLcb),t.setLong_6svq3l$(5,e.ppjLct),t.setLong_6svq3l$(6,e.ppjParentPersonUid),t.setLong_6svq3l$(7,e.ppjMinorPersonUid),t.setInt_vux9f0$(8,e.ppjRelationship),t.setString_vqvrqt$(9,e.ppjEmail),t.setString_vqvrqt$(10,e.ppjPhone),t.setBoolean_fzusl$(11,e.ppjInactive),t.setInt_vux9f0$(12,e.ppjStatus),t.setLong_6svq3l$(13,e.ppjApprovalTiemstamp),t.setString_vqvrqt$(14,e.ppjApprovalIpAddr)},HW.$metadata$={kind:c,interfaces:[pt]},vW.$metadata$={kind:c,simpleName:"PersonParentJoinDao_JdbcKt",interfaces:[SW]},KW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},KW.prototype=Object.create(N.prototype),KW.prototype.constructor=KW,KW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},VW.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new KW(this,t,e);return n?i:i.doResume(null)},XW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},XW.prototype=Object.create(N.prototype),XW.prototype.constructor=XW,XW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},VW.prototype.replicateOnChange=function(t,e){var n=new XW(this,t);return e?n:n.doResume(null)},JW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},JW.prototype=Object.create(N.prototype),JW.prototype.constructor=JW,JW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.ppjUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(512,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.ppjUid=e,this.state_0=3;continue;case 3:if(this.local$entity.ppjLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync_ei4fsf$(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.ppjUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},VW.prototype.insertAsync_ei4fsf$=function(t,e,n){var i=new JW(this,t,e);return n?i:i.doResume(null)},VW.prototype.findByUidWithMinorAsync_s8cxhz$=function(t,e){return this._dao_0.findByUidWithMinorAsync_s8cxhz$(t,e)},VW.prototype.findByUidWithMinorAsyncFromWeb_s8cxhz$=function(t,e){return this._dao_0.findByUidWithMinorAsyncFromWeb_s8cxhz$(t,e)},VW.prototype.findByMinorPersonUid_s8cxhz$=function(t,e){return this._dao_0.findByMinorPersonUid_s8cxhz$(t,e)},VW.prototype.findByMinorPersonUidWhereParentNotEnrolledInClazz_3pjtqy$=function(t,e,n){return this._dao_0.findByMinorPersonUidWhereParentNotEnrolledInClazz_3pjtqy$(t,e,n)},VW.prototype.isParentOf_3pjtqy$=function(t,e,n){return this._dao_0.isParentOf_3pjtqy$(t,e,n)},YW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},YW.prototype=Object.create(N.prototype),YW.prototype.constructor=YW,YW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$personParentJoin.ppjLct=J(),this.state_0=2,this.result_0=this.$this._dao_0.updateAsync_ei4fsf$(this.local$personParentJoin,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},VW.prototype.updateAsync_ei4fsf$=function(t,e,n){var i=new YW(this,t,e);return n?i:i.doResume(null)},VW.prototype.isMinorApproved_s8cxhz$=function(t,e){return this._dao_0.isMinorApproved_s8cxhz$(t,e)},VW.$metadata$={kind:c,simpleName:"PersonParentJoinDao_ReplicateWrapper",interfaces:[SW]},ZW.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ZW.prototype=Object.create(N.prototype),ZW.prototype.constructor=ZW,ZW.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},QW.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new ZW(this,t,e);return n?i:i.doResume(null)},tH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},tH.prototype=Object.create(N.prototype),tH.prototype.constructor=tH,tH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},QW.prototype.replicateOnChange=function(t,e){var n=new tH(this,t);return e?n:n.doResume(null)},eH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},eH.prototype=Object.create(N.prototype),eH.prototype.constructor=eH,eH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync_ei4fsf$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},QW.prototype.insertAsync_ei4fsf$=function(t,e,n){var i=new eH(this,t,e);return n?i:i.doResume(null)},nH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},nH.prototype=Object.create(N.prototype),nH.prototype.constructor=nH,nH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByUidWithMinorAsync_s8cxhz$(this.local$uid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},QW.prototype.findByUidWithMinorAsync_s8cxhz$=function(t,e,n){var i=new nH(this,t,e);return n?i:i.doResume(null)},QW.prototype.findByUidWithMinorAsyncFromWeb_s8cxhz$=function(t,e){throw v("Synchronous HTTP is not supported on Door/Javascript!")},iH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},iH.prototype=Object.create(N.prototype),iH.prototype.constructor=iH,iH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByMinorPersonUid_s8cxhz$(this.local$minorPersonUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},QW.prototype.findByMinorPersonUid_s8cxhz$=function(t,e,n){var i=new iH(this,t,e);return n?i:i.doResume(null)},oH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},oH.prototype=Object.create(N.prototype),oH.prototype.constructor=oH,oH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByMinorPersonUidWhereParentNotEnrolledInClazz_3pjtqy$(this.local$minorPersonUid,this.local$clazzUidFilter,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},QW.prototype.findByMinorPersonUidWhereParentNotEnrolledInClazz_3pjtqy$=function(t,e,n,i){var o=new oH(this,t,e,n);return i?o:o.doResume(null)},rH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},rH.prototype=Object.create(N.prototype),rH.prototype.constructor=rH,rH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.isParentOf_3pjtqy$(this.local$userPersonUid,this.local$minorPersonUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},QW.prototype.isParentOf_3pjtqy$=function(t,e,n,i){var o=new rH(this,t,e,n);return i?o:o.doResume(null)},sH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},sH.prototype=Object.create(N.prototype),sH.prototype.constructor=sH,sH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateAsync_ei4fsf$(this.local$personParentJoin,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},QW.prototype.updateAsync_ei4fsf$=function(t,e,n){var i=new sH(this,t,e);return n?i:i.doResume(null)},aH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},aH.prototype=Object.create(N.prototype),aH.prototype.constructor=aH,aH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.isMinorApproved_s8cxhz$(this.local$minorPersonUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},QW.prototype.isMinorApproved_s8cxhz$=function(t,e,n){var i=new aH(this,t,e);return n?i:i.doResume(null)},QW.$metadata$={kind:c,simpleName:"PersonParentJoinDao_Repo",interfaces:[SW]},cH.$metadata$={kind:c,simpleName:"PersonPictureDao",interfaces:[X6]},lH.prototype.insert_11rb$=function(t){return this._insertAdapterPersonPicture_.insertAndReturnId_11rb$(t)},uH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},uH.prototype=Object.create(N.prototype),uH.prototype.constructor=uH,uH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterPersonPicture_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lH.prototype.insertAsync=function(t,e,n){var i=new uH(this,t,e);return n?i:i.doResume(null)},lH.prototype.insertList_4ezy5m$=function(t){this._insertAdapterPersonPicture_.insertList_4ezy5m$(t)},hH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},hH.prototype=Object.create(N.prototype),hH.prototype.constructor=hH,hH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personPicture.personPicturePersonUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$personPicture.personPictureMasterCsn),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$personPicture.personPictureLocalCsn),this.local$_stmt.setInt_vux9f0$(4,this.local$closure$personPicture.personPictureLastChangedBy),this.local$_stmt.setLong_6svq3l$(5,this.local$closure$personPicture.personPictureLct),this.local$_stmt.setString_vqvrqt$(6,this.local$closure$personPicture.personPictureUri),this.local$_stmt.setString_vqvrqt$(7,this.local$closure$personPicture.personPictureMd5),this.local$_stmt.setInt_vux9f0$(8,this.local$closure$personPicture.fileSize),this.local$_stmt.setLong_6svq3l$(9,this.local$closure$personPicture.picTimestamp),this.local$_stmt.setString_vqvrqt$(10,this.local$closure$personPicture.mimeType),this.local$_stmt.setBoolean_fzusl$(11,this.local$closure$personPicture.personPictureActive),this.local$_stmt.setLong_6svq3l$(12,this.local$closure$personPicture.personPictureUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},pH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},pH.prototype=Object.create(N.prototype),pH.prototype.constructor=pH,pH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE PersonPicture SET personPicturePersonUid = ?, personPictureMasterCsn = ?, personPictureLocalCsn = ?, personPictureLastChangedBy = ?, personPictureLct = ?, personPictureUri = ?, personPictureMd5 = ?, fileSize = ?, picTimestamp = ?, mimeType = ?, personPictureActive = ? WHERE personPictureUid = ?",dH(this.local$personPicture),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lH.prototype.updateAsync_c8xyxp$=function(t,e,n){var i=new pH(this,t,e);return n?i:i.doResume(null)},lH.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE PersonPicture SET personPicturePersonUid = ?, personPictureMasterCsn = ?, personPictureLocalCsn = ?, personPictureLastChangedBy = ?, personPictureLct = ?, personPictureUri = ?, personPictureMd5 = ?, fileSize = ?, picTimestamp = ?, mimeType = ?, personPictureActive = ? WHERE personPictureUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.personPicturePersonUid),t.setLong_6svq3l$(2,i.personPictureMasterCsn),t.setLong_6svq3l$(3,i.personPictureLocalCsn),t.setInt_vux9f0$(4,i.personPictureLastChangedBy),t.setLong_6svq3l$(5,i.personPictureLct),t.setString_vqvrqt$(6,i.personPictureUri),t.setString_vqvrqt$(7,i.personPictureMd5),t.setInt_vux9f0$(8,i.fileSize),t.setLong_6svq3l$(9,i.picTimestamp),t.setString_vqvrqt$(10,i.mimeType),t.setBoolean_fzusl$(11,i.personPictureActive),t.setLong_6svq3l$(12,i.personPictureUid),t.executeUpdate()}return t.getConnection().commit(),V}))},lH.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE PersonPicture SET personPicturePersonUid = ?, personPictureMasterCsn = ?, personPictureLocalCsn = ?, personPictureLastChangedBy = ?, personPictureLct = ?, personPictureUri = ?, personPictureMd5 = ?, fileSize = ?, picTimestamp = ?, mimeType = ?, personPictureActive = ? WHERE personPictureUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.personPicturePersonUid),t.setLong_6svq3l$(2,e.personPictureMasterCsn),t.setLong_6svq3l$(3,e.personPictureLocalCsn),t.setInt_vux9f0$(4,e.personPictureLastChangedBy),t.setLong_6svq3l$(5,e.personPictureLct),t.setString_vqvrqt$(6,e.personPictureUri),t.setString_vqvrqt$(7,e.personPictureMd5),t.setInt_vux9f0$(8,e.fileSize),t.setLong_6svq3l$(9,e.picTimestamp),t.setString_vqvrqt$(10,e.mimeType),t.setBoolean_fzusl$(11,e.personPictureActive),t.setLong_6svq3l$(12,e.personPictureUid),t.executeUpdate()}))},_H.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_H.prototype=Object.create(N.prototype),_H.prototype.constructor=_H,_H.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},fH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fH.prototype=Object.create(N.prototype),fH.prototype.constructor=fH,fH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO PersonPictureReplicate(ppPk, ppDestination)\n | SELECT DISTINCT PersonPicture.personPictureUid AS ppPk,\n | ? AS ppDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | 1048576\n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | JOIN PersonPicture\n | ON PersonPicture.personPicturePersonUid = Person.personUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND PersonPicture.personPictureLct != COALESCE(\n | (SELECT ppVersionId\n | FROM PersonPictureReplicate\n | WHERE ppPk = PersonPicture.personPictureUid\n | AND ppDestination = ?), 0) \n | /*psql ON CONFLICT(ppPk, ppDestination) DO UPDATE\n | SET ppPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO PersonPictureReplicate(ppPk, ppDestination)\n | SELECT DISTINCT PersonPicture.personPictureUid AS ppPk,\n | ? AS ppDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | 1048576\n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | JOIN PersonPicture\n | ON PersonPicture.personPicturePersonUid = Person.personUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND PersonPicture.personPictureLct != COALESCE(\n | (SELECT ppVersionId\n | FROM PersonPictureReplicate\n | WHERE ppPk = PersonPicture.personPictureUid\n | AND ppDestination = ?), 0) \n | ON CONFLICT(ppPk, ppDestination) DO UPDATE\n | SET ppPending = true\n | \n | \n |")),mH(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lH.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new fH(this,t,e);return n?i:i.doResume(null)},gH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},gH.prototype=Object.create(N.prototype),gH.prototype.constructor=gH,gH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},EH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},EH.prototype=Object.create(N.prototype),EH.prototype.constructor=EH,EH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO PersonPictureReplicate(ppPk, ppDestination)\n | SELECT DISTINCT PersonPicture.personPictureUid AS ppUid,\n | UserSession.usClientNodeId AS ppDestination\n | FROM ChangeLog\n | JOIN PersonPicture\n | ON ChangeLog.chTableId = 50\n | AND ChangeLog.chEntityPk = PersonPicture.personPictureUid\n | JOIN Person\n | ON Person.personUid = PersonPicture.personPicturePersonUid\n | \n | JOIN ScopedGrant \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT clazzEnrolmentClazzUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentPersonUid = Person.personUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT schoolMemberSchoolUid\n | FROM SchoolMember\n | WHERE schoolMemberPersonUid = Person.personUid\n | AND schoolMemberActive))\n | )\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 1048576\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND PersonPicture.personPictureLct != COALESCE(\n | (SELECT ppVersionId\n | FROM PersonPictureReplicate\n | WHERE ppPk = PersonPicture.personPictureUid\n | AND ppDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(ppPk, ppDestination) DO UPDATE\n | SET ppPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO PersonPictureReplicate(ppPk, ppDestination)\n | SELECT DISTINCT PersonPicture.personPictureUid AS ppUid,\n | UserSession.usClientNodeId AS ppDestination\n | FROM ChangeLog\n | JOIN PersonPicture\n | ON ChangeLog.chTableId = 50\n | AND ChangeLog.chEntityPk = PersonPicture.personPictureUid\n | JOIN Person\n | ON Person.personUid = PersonPicture.personPicturePersonUid\n | \n | JOIN ScopedGrant \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT clazzEnrolmentClazzUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentPersonUid = Person.personUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT schoolMemberSchoolUid\n | FROM SchoolMember\n | WHERE schoolMemberPersonUid = Person.personUid\n | AND schoolMemberActive))\n | )\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 1048576\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND PersonPicture.personPictureLct != COALESCE(\n | (SELECT ppVersionId\n | FROM PersonPictureReplicate\n | WHERE ppPk = PersonPicture.personPictureUid\n | AND ppDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(ppPk, ppDestination) DO UPDATE\n | SET ppPending = true\n | \n | \n |")),$H,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lH.prototype.replicateOnChange=function(t,e){var n=new EH(this,t);return e?n:n.doResume(null)},bH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},bH.prototype=Object.create(N.prototype),bH.prototype.constructor=bH,bH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,yH);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lH.prototype.findByPersonUidAsync_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |SELECT * FROM PersonPicture \n | WHERE personPicturePersonUid = ?\n | AND CAST(personPictureActive AS INTEGER) = 1\n | ORDER BY picTimestamp DESC LIMIT 1\n ")),(n=t,function(t,e,i){var o=new bH(n,t,e);return i?o:o.doResume(null)}),e);var n},vH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},vH.prototype=Object.create(N.prototype),vH.prototype.constructor=vH,vH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,SH);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},NH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},NH.prototype=Object.create(N.prototype),NH.prototype.constructor=NH,NH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$PersonPictureDao_JdbcKt._db,new st("SELECT * FROM PersonPicture where personPicturePersonUid = ? ORDER BY picTimestamp DESC LIMIT 1"),CH(this.local$closure$personUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lH.prototype.findByPersonUidLive_s8cxhz$=function(t){return new ft(this._db,Et("PersonPicture"),(e=this,n=t,function(t,i){var o=new NH(e,n,t);return i?o:o.doResume(null)}));var e,n},TH.prototype.makeSql_6taknv$=function(t){return"INSERT INTO PersonPicture (personPictureUid, personPicturePersonUid, personPictureMasterCsn, personPictureLocalCsn, personPictureLastChangedBy, personPictureLct, personPictureUri, personPictureMd5, fileSize, picTimestamp, mimeType, personPictureActive) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},TH.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.personPictureUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.personPictureUid),t.setLong_6svq3l$(2,e.personPicturePersonUid),t.setLong_6svq3l$(3,e.personPictureMasterCsn),t.setLong_6svq3l$(4,e.personPictureLocalCsn),t.setInt_vux9f0$(5,e.personPictureLastChangedBy),t.setLong_6svq3l$(6,e.personPictureLct),t.setString_vqvrqt$(7,e.personPictureUri),t.setString_vqvrqt$(8,e.personPictureMd5),t.setInt_vux9f0$(9,e.fileSize),t.setLong_6svq3l$(10,e.picTimestamp),t.setString_vqvrqt$(11,e.mimeType),t.setBoolean_fzusl$(12,e.personPictureActive)},TH.$metadata$={kind:c,interfaces:[pt]};lH.$metadata$={kind:c,simpleName:"PersonPictureDao_JdbcKt",interfaces:[cH]},zH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},zH.prototype=Object.create(N.prototype),zH.prototype.constructor=zH,zH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},LH.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new zH(this,t,e);return n?i:i.doResume(null)},wH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},wH.prototype=Object.create(N.prototype),wH.prototype.constructor=wH,wH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},LH.prototype.replicateOnChange=function(t,e){var n=new wH(this,t);return e?n:n.doResume(null)},LH.prototype.findByPersonUidAsync_s8cxhz$=function(t,e){return this._dao_0.findByPersonUidAsync_s8cxhz$(t,e)},LH.prototype.findByPersonUidLive_s8cxhz$=function(t){return this._dao_0.findByPersonUidLive_s8cxhz$(t)},OH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},OH.prototype=Object.create(N.prototype),OH.prototype.constructor=OH,OH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=bt(this.$this._db_0,new G6(this.local$personPicture),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.local$personPicture.personPictureLct=J(),this.state_0=3,this.result_0=this.$this._dao_0.updateAsync_c8xyxp$(this.local$personPicture,this),this.result_0===C)return C;continue;case 3:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},LH.prototype.updateAsync_c8xyxp$=function(t,e,n){var i=new OH(this,t,e);return n?i:i.doResume(null)},LH.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},RH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},RH.prototype=Object.create(N.prototype),RH.prototype.constructor=RH,RH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=bt(this.$this._db_0,new G6(this.local$entity),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:var t=_t(w(this.$this._db_0));if(O(this.local$entity.personPictureUid,X)){if(this.state_0=3,this.result_0=t.nextIdAsync_za3lpa$(50,this),this.result_0===C)return C;continue}this.state_0=4;continue;case 3:var e=this.result_0;this.local$entity.personPictureUid=e,this.state_0=4;continue;case 4:if(this.local$entity.personPictureLct=J(),this.state_0=5,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 5:return this.local$entity.personPictureUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},LH.prototype.insertAsync=function(t,e,n){var i=new RH(this,t,e);return n?i:i.doResume(null)},LH.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},LH.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},LH.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},LH.$metadata$={kind:c,simpleName:"PersonPictureDao_ReplicateWrapper",interfaces:[cH]},xH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},xH.prototype=Object.create(N.prototype),xH.prototype.constructor=xH,xH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},AH.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new xH(this,t,e);return n?i:i.doResume(null)},IH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},IH.prototype=Object.create(N.prototype),IH.prototype.constructor=IH,IH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},AH.prototype.replicateOnChange=function(t,e){var n=new IH(this,t);return e?n:n.doResume(null)},UH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},UH.prototype=Object.create(N.prototype),UH.prototype.constructor=UH,UH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByPersonUidAsync_s8cxhz$(this.local$personUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},AH.prototype.findByPersonUidAsync_s8cxhz$=function(t,e,n){var i=new UH(this,t,e);return n?i:i.doResume(null)},AH.prototype.findByPersonUidLive_s8cxhz$=function(t){return this._dao.findByPersonUidLive_s8cxhz$(t)},DH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},DH.prototype=Object.create(N.prototype),DH.prototype.constructor=DH,DH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateAsync_c8xyxp$(this.local$personPicture,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},AH.prototype.updateAsync_c8xyxp$=function(t,e,n){var i=new DH(this,t,e);return n?i:i.doResume(null)},AH.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},PH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},PH.prototype=Object.create(N.prototype),PH.prototype.constructor=PH,PH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},AH.prototype.insertAsync=function(t,e,n){var i=new PH(this,t,e);return n?i:i.doResume(null)},AH.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},AH.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},AH.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},AH.$metadata$={kind:c,simpleName:"PersonPictureDao_Repo",interfaces:[cH]},MH.$metadata$={kind:c,simpleName:"ReportDao",interfaces:[X6]},kH.prototype.replaceList_rp0mfj$=function(t){this._insertAdapterReport_upsert.insertList_4ezy5m$(t)},kH.prototype.insert_11rb$=function(t){return this._insertAdapterReport_.insertAndReturnId_11rb$(t)},jH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},jH.prototype=Object.create(N.prototype),jH.prototype.constructor=jH,jH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterReport_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kH.prototype.insertAsync=function(t,e,n){var i=new jH(this,t,e);return n?i:i.doResume(null)},kH.prototype.insertList_4ezy5m$=function(t){this._insertAdapterReport_.insertList_4ezy5m$(t)},GH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},GH.prototype=Object.create(N.prototype),GH.prototype.constructor=GH,GH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$entity.reportOwnerUid),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$entity.xAxis),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$entity.reportDateRangeSelection),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$entity.fromDate),this.local$_stmt.setInt_vux9f0$(5,this.local$closure$entity.fromRelTo),this.local$_stmt.setInt_vux9f0$(6,this.local$closure$entity.fromRelOffSet),this.local$_stmt.setInt_vux9f0$(7,this.local$closure$entity.fromRelUnit),this.local$_stmt.setLong_6svq3l$(8,this.local$closure$entity.toDate),this.local$_stmt.setInt_vux9f0$(9,this.local$closure$entity.toRelTo),this.local$_stmt.setInt_vux9f0$(10,this.local$closure$entity.toRelOffSet),this.local$_stmt.setInt_vux9f0$(11,this.local$closure$entity.toRelUnit),this.local$_stmt.setString_vqvrqt$(12,this.local$closure$entity.reportTitle),this.local$_stmt.setString_vqvrqt$(13,this.local$closure$entity.reportDescription),this.local$_stmt.setString_vqvrqt$(14,this.local$closure$entity.reportSeries),this.local$_stmt.setBoolean_fzusl$(15,this.local$closure$entity.reportInactive),this.local$_stmt.setBoolean_fzusl$(16,this.local$closure$entity.isTemplate),this.local$_stmt.setInt_vux9f0$(17,this.local$closure$entity.priority),this.local$_stmt.setInt_vux9f0$(18,this.local$closure$entity.reportTitleId),this.local$_stmt.setInt_vux9f0$(19,this.local$closure$entity.reportDescId),this.local$_stmt.setLong_6svq3l$(20,this.local$closure$entity.reportMasterChangeSeqNum),this.local$_stmt.setLong_6svq3l$(21,this.local$closure$entity.reportLocalChangeSeqNum),this.local$_stmt.setInt_vux9f0$(22,this.local$closure$entity.reportLastChangedBy),this.local$_stmt.setLong_6svq3l$(23,this.local$closure$entity.reportLct),this.local$_stmt.setLong_6svq3l$(24,this.local$closure$entity.reportUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},FH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},FH.prototype=Object.create(N.prototype),FH.prototype.constructor=FH,FH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE Report SET reportOwnerUid = ?, xAxis = ?, reportDateRangeSelection = ?, fromDate = ?, fromRelTo = ?, fromRelOffSet = ?, fromRelUnit = ?, toDate = ?, toRelTo = ?, toRelOffSet = ?, toRelUnit = ?, reportTitle = ?, reportDescription = ?, reportSeries = ?, reportInactive = ?, isTemplate = ?, priority = ?, reportTitleId = ?, reportDescId = ?, reportMasterChangeSeqNum = ?, reportLocalChangeSeqNum = ?, reportLastChangedBy = ?, reportLct = ? WHERE reportUid = ?",qH(this.local$entity),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kH.prototype.updateAsync_7abdyy$=function(t,e,n){var i=new FH(this,t,e);return n?i:i.doResume(null)},kH.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE Report SET reportOwnerUid = ?, xAxis = ?, reportDateRangeSelection = ?, fromDate = ?, fromRelTo = ?, fromRelOffSet = ?, fromRelUnit = ?, toDate = ?, toRelTo = ?, toRelOffSet = ?, toRelUnit = ?, reportTitle = ?, reportDescription = ?, reportSeries = ?, reportInactive = ?, isTemplate = ?, priority = ?, reportTitleId = ?, reportDescId = ?, reportMasterChangeSeqNum = ?, reportLocalChangeSeqNum = ?, reportLastChangedBy = ?, reportLct = ? WHERE reportUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.reportOwnerUid),t.setInt_vux9f0$(2,i.xAxis),t.setInt_vux9f0$(3,i.reportDateRangeSelection),t.setLong_6svq3l$(4,i.fromDate),t.setInt_vux9f0$(5,i.fromRelTo),t.setInt_vux9f0$(6,i.fromRelOffSet),t.setInt_vux9f0$(7,i.fromRelUnit),t.setLong_6svq3l$(8,i.toDate),t.setInt_vux9f0$(9,i.toRelTo),t.setInt_vux9f0$(10,i.toRelOffSet),t.setInt_vux9f0$(11,i.toRelUnit),t.setString_vqvrqt$(12,i.reportTitle),t.setString_vqvrqt$(13,i.reportDescription),t.setString_vqvrqt$(14,i.reportSeries),t.setBoolean_fzusl$(15,i.reportInactive),t.setBoolean_fzusl$(16,i.isTemplate),t.setInt_vux9f0$(17,i.priority),t.setInt_vux9f0$(18,i.reportTitleId),t.setInt_vux9f0$(19,i.reportDescId),t.setLong_6svq3l$(20,i.reportMasterChangeSeqNum),t.setLong_6svq3l$(21,i.reportLocalChangeSeqNum),t.setInt_vux9f0$(22,i.reportLastChangedBy),t.setLong_6svq3l$(23,i.reportLct),t.setLong_6svq3l$(24,i.reportUid),t.executeUpdate()}return t.getConnection().commit(),V}))},kH.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE Report SET reportOwnerUid = ?, xAxis = ?, reportDateRangeSelection = ?, fromDate = ?, fromRelTo = ?, fromRelOffSet = ?, fromRelUnit = ?, toDate = ?, toRelTo = ?, toRelOffSet = ?, toRelUnit = ?, reportTitle = ?, reportDescription = ?, reportSeries = ?, reportInactive = ?, isTemplate = ?, priority = ?, reportTitleId = ?, reportDescId = ?, reportMasterChangeSeqNum = ?, reportLocalChangeSeqNum = ?, reportLastChangedBy = ?, reportLct = ? WHERE reportUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.reportOwnerUid),t.setInt_vux9f0$(2,e.xAxis),t.setInt_vux9f0$(3,e.reportDateRangeSelection),t.setLong_6svq3l$(4,e.fromDate),t.setInt_vux9f0$(5,e.fromRelTo),t.setInt_vux9f0$(6,e.fromRelOffSet),t.setInt_vux9f0$(7,e.fromRelUnit),t.setLong_6svq3l$(8,e.toDate),t.setInt_vux9f0$(9,e.toRelTo),t.setInt_vux9f0$(10,e.toRelOffSet),t.setInt_vux9f0$(11,e.toRelUnit),t.setString_vqvrqt$(12,e.reportTitle),t.setString_vqvrqt$(13,e.reportDescription),t.setString_vqvrqt$(14,e.reportSeries),t.setBoolean_fzusl$(15,e.reportInactive),t.setBoolean_fzusl$(16,e.isTemplate),t.setInt_vux9f0$(17,e.priority),t.setInt_vux9f0$(18,e.reportTitleId),t.setInt_vux9f0$(19,e.reportDescId),t.setLong_6svq3l$(20,e.reportMasterChangeSeqNum),t.setLong_6svq3l$(21,e.reportLocalChangeSeqNum),t.setInt_vux9f0$(22,e.reportLastChangedBy),t.setLong_6svq3l$(23,e.reportLct),t.setLong_6svq3l$(24,e.reportUid),t.executeUpdate()}))},BH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},BH.prototype=Object.create(N.prototype),BH.prototype.constructor=BH,BH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},HH.prototype=Object.create(N.prototype),HH.prototype.constructor=HH,HH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ReportReplicate(reportPk, reportDestination)\n | SELECT DISTINCT Report.reportUid AS reportPk,\n | ? AS reportDestination\n | FROM Report\n | JOIN UserSession\n | ON UserSession.usStatus = 1\n | AND CAST(Report.isTemplate AS INTEGER) = 1\n | WHERE Report.reportLct != COALESCE(\n | (SELECT reportVersionId\n | FROM ReportReplicate\n | WHERE reportPk = Report.reportUid\n | AND reportDestination = ?), 0) \n | /*psql ON CONFLICT(reportPk, reportDestination) DO UPDATE\n | SET reportPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ReportReplicate(reportPk, reportDestination)\n | SELECT DISTINCT Report.reportUid AS reportPk,\n | ? AS reportDestination\n | FROM Report\n | JOIN UserSession\n | ON UserSession.usStatus = 1\n | AND CAST(Report.isTemplate AS INTEGER) = 1\n | WHERE Report.reportLct != COALESCE(\n | (SELECT reportVersionId\n | FROM ReportReplicate\n | WHERE reportPk = Report.reportUid\n | AND reportDestination = ?), 0) \n | ON CONFLICT(reportPk, reportDestination) DO UPDATE\n | SET reportPending = true\n | \n | \n |")),WH(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kH.prototype.replicateOnNewNodeTemplates_s8cxhz$=function(t,e,n){var i=new HH(this,t,e);return n?i:i.doResume(null)},VH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},VH.prototype=Object.create(N.prototype),VH.prototype.constructor=VH,VH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},XH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},XH.prototype=Object.create(N.prototype),XH.prototype.constructor=XH,XH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ReportReplicate(reportPk, reportDestination)\n | SELECT DISTINCT Report.reportUid AS reportUid,\n | UserSession.usClientNodeId AS reportDestination\n | FROM ChangeLog\n | JOIN Report\n | ON ChangeLog.chTableId = 101 \n | AND ChangeLog.chEntityPk = Report.reportUid\n | JOIN UserSession\n | ON UserSession.usStatus = 1\n | AND CAST(Report.isTemplate AS INTEGER) = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND Report.reportLct != COALESCE(\n | (SELECT reportVersionId\n | FROM ReportReplicate\n | WHERE reportPk = Report.reportUid\n | AND reportDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(reportPk, reportDestination) DO UPDATE\n | SET reportPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ReportReplicate(reportPk, reportDestination)\n | SELECT DISTINCT Report.reportUid AS reportUid,\n | UserSession.usClientNodeId AS reportDestination\n | FROM ChangeLog\n | JOIN Report\n | ON ChangeLog.chTableId = 101 \n | AND ChangeLog.chEntityPk = Report.reportUid\n | JOIN UserSession\n | ON UserSession.usStatus = 1\n | AND CAST(Report.isTemplate AS INTEGER) = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND Report.reportLct != COALESCE(\n | (SELECT reportVersionId\n | FROM ReportReplicate\n | WHERE reportPk = Report.reportUid\n | AND reportDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(reportPk, reportDestination) DO UPDATE\n | SET reportPending = true\n | \n | \n |")),KH,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kH.prototype.replicateOnChangeTemplates=function(t,e){var n=new XH(this,t);return e?n:n.doResume(null)},kH.prototype.getResults_j49vja$=function(t){return ht(this._db,new st(t.getSql(),St(t)),(e=t,n=this,function(t){return e.bindToPreparedStmt_q2o6dm$(t,n._db),ut(t.executeQuery(),JH)}));var e,n},ZH.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ZH.prototype=Object.create(N.prototype),ZH.prototype.constructor=ZH,ZH.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personUid),this.local$_stmt.setBoolean_fzusl$(2,this.local$closure$isTemplate),this.local$_stmt.setString_vqvrqt$(3,this.local$closure$searchBit),this.local$_stmt.setInt_vux9f0$(4,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(5,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(6,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(7,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,QH);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},eV.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},eV.prototype=Object.create(N.prototype),eV.prototype.constructor=eV,eV.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ReportDao_JdbcKt._db,new st(S("\n |SELECT * FROM (SELECT * FROM REPORT WHERE NOT reportInactive \n | AND reportOwnerUid = ?\n | AND isTemplate = ?\n | AND reportTitle LIKE ?\n | ORDER BY priority, CASE(?)\n | WHEN 1 THEN Report.reportTitle\n | ELSE ''\n | END ASC,\n | CASE(?)\n | WHEN 2 THEN Report.reportTitle\n | ELSE ''\n | END DESC\n | ) LIMIT ? OFFSET ?\n ")),tV(this.local$closure$personUid,this.local$closure$isTemplate,this.local$closure$searchBit,this.local$closure$sortOrder,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},YH.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$ReportDao_JdbcKt._db,Et("REPORT"),(n=this.this$ReportDao_JdbcKt,i=this.closure$personUid,o=this.closure$isTemplate,r=this.closure$searchBit,s=this.closure$sortOrder,a=e,c=t,function(t,e){var l=new eV(n,i,o,r,s,a,c,t);return e?l:l.doResume(null)}));var n,i,o,r,s,a,c},iV.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},iV.prototype=Object.create(N.prototype),iV.prototype.constructor=iV,iV.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personUid),this.local$_stmt.setBoolean_fzusl$(2,this.local$closure$isTemplate),this.local$_stmt.setString_vqvrqt$(3,this.local$closure$searchBit),this.local$_stmt.setInt_vux9f0$(4,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(5,this.local$closure$sortOrder),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,nV);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},rV.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},rV.prototype=Object.create(N.prototype),rV.prototype.constructor=rV,rV.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ReportDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (SELECT * FROM REPORT WHERE NOT reportInactive \n | AND reportOwnerUid = ?\n | AND isTemplate = ?\n | AND reportTitle LIKE ?\n | ORDER BY priority, CASE(?)\n | WHEN 1 THEN Report.reportTitle\n | ELSE ''\n | END ASC,\n | CASE(?)\n | WHEN 2 THEN Report.reportTitle\n | ELSE ''\n | END DESC\n | ) \n ")),oV(this.local$closure$personUid,this.local$closure$isTemplate,this.local$closure$searchBit,this.local$closure$sortOrder),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},YH.prototype.getLength=function(){return new ft(this.this$ReportDao_JdbcKt._db,Et("REPORT"),(t=this.this$ReportDao_JdbcKt,e=this.closure$personUid,n=this.closure$isTemplate,i=this.closure$searchBit,o=this.closure$sortOrder,function(r,s){var a=new rV(t,e,n,i,o,r);return s?a:a.doResume(null)}));var t,e,n,i,o},YH.$metadata$={kind:c,interfaces:[gt]},kH.prototype.findAllActiveReport_dw84ek$=function(t,e,n,i){return new YH(this,e,i,t,n)},aV.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},aV.prototype=Object.create(N.prototype),aV.prototype.constructor=aV,aV.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$entityUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,sV);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kH.prototype.findByUid_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT * FROM Report WHERE reportUid = ?"),(n=t,function(t,e,i){var o=new aV(n,t,e);return i?o:o.doResume(null)}),e);var n},lV.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},lV.prototype=Object.create(N.prototype),lV.prototype.constructor=lV,lV.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,cV);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},hV.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},hV.prototype=Object.create(N.prototype),hV.prototype.constructor=hV,hV.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ReportDao_JdbcKt._db,new st("SELECT * From Report WHERE reportUid = ?"),uV(this.local$closure$uid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kH.prototype.findByUidLive_s8cxhz$=function(t){return new ft(this._db,Et("Report"),(e=this,n=t,function(t,i){var o=new hV(e,n,t);return i?o:o.doResume(null)}));var e,n},pV.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},pV.prototype=Object.create(N.prototype),pV.prototype.constructor=pV,pV.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setBoolean_fzusl$(1,this.local$closure$isTemplate),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,dV);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},mV.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},mV.prototype=Object.create(N.prototype),mV.prototype.constructor=mV,mV.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ReportDao_JdbcKt._db,new st(S("\n |SELECT * FROM REPORT WHERE NOT reportInactive \n | AND isTemplate = ?\n | ORDER BY priority ASC\n | \n ")),_V(this.local$closure$isTemplate),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kH.prototype.findAllActiveReportLive_6taknv$=function(t){return new ft(this._db,Et("REPORT"),(e=this,n=t,function(t,i){var o=new mV(e,n,t);return i?o:o.doResume(null)}));var e,n},kH.prototype.findAllActiveReportList_6taknv$=function(t){return ht(this._db,new st(S("\n |SELECT * FROM REPORT WHERE NOT reportInactive \n | AND isTemplate = ?\n | ORDER BY priority ASC\n | \n ")),(e=t,function(t){return t.setBoolean_fzusl$(1,e),ut(t.executeQuery(),fV)}));var e},kH.prototype.findByUidList_gox9k8$=function(t){return ht(this._db,new st("SELECT reportUid FROM Report WHERE reportUid IN (?)",!0),(e=t,function(t){return t.setArray_wqp8hw$(1,yt(t.getConnection(),"BIGINT",q(e))),ut(t.executeQuery(),gV)}));var e},$V.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},$V.prototype=Object.create(N.prototype),$V.prototype.constructor=$V,$V.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setBoolean_fzusl$(1,this.local$closure$toggleVisibility),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$updateTime),this.local$_stmt.setArray_wqp8hw$(3,yt(this.local$_stmt.getConnection(),"BIGINT",q(this.local$closure$selectedItem))),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yV.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},yV.prototype=Object.create(N.prototype),yV.prototype.constructor=yV,yV.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | UPDATE Report \n | SET reportInactive = ?,\n | reportLct = ? \n | WHERE reportUid IN (?)\n | \n "),!0),EV(this.local$toggleVisibility,this.local$updateTime,this.local$selectedItem),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kH.prototype.toggleVisibilityReportItems_cbj1f0$=function(t,e,n,i,o){var r=new yV(this,t,e,n,i);return o?r:r.doResume(null)},bV.prototype.makeSql_6taknv$=function(t){return"INSERT OR REPLACE INTO Report (reportUid, reportOwnerUid, xAxis, reportDateRangeSelection, fromDate, fromRelTo, fromRelOffSet, fromRelUnit, toDate, toRelTo, toRelOffSet, toRelUnit, reportTitle, reportDescription, reportSeries, reportInactive, isTemplate, priority, reportTitleId, reportDescId, reportMasterChangeSeqNum, reportLocalChangeSeqNum, reportLastChangedBy, reportLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},bV.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.reportUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.reportUid),t.setLong_6svq3l$(2,e.reportOwnerUid),t.setInt_vux9f0$(3,e.xAxis),t.setInt_vux9f0$(4,e.reportDateRangeSelection),t.setLong_6svq3l$(5,e.fromDate),t.setInt_vux9f0$(6,e.fromRelTo),t.setInt_vux9f0$(7,e.fromRelOffSet),t.setInt_vux9f0$(8,e.fromRelUnit),t.setLong_6svq3l$(9,e.toDate),t.setInt_vux9f0$(10,e.toRelTo),t.setInt_vux9f0$(11,e.toRelOffSet),t.setInt_vux9f0$(12,e.toRelUnit),t.setString_vqvrqt$(13,e.reportTitle),t.setString_vqvrqt$(14,e.reportDescription),t.setString_vqvrqt$(15,e.reportSeries),t.setBoolean_fzusl$(16,e.reportInactive),t.setBoolean_fzusl$(17,e.isTemplate),t.setInt_vux9f0$(18,e.priority),t.setInt_vux9f0$(19,e.reportTitleId),t.setInt_vux9f0$(20,e.reportDescId),t.setLong_6svq3l$(21,e.reportMasterChangeSeqNum),t.setLong_6svq3l$(22,e.reportLocalChangeSeqNum),t.setInt_vux9f0$(23,e.reportLastChangedBy),t.setLong_6svq3l$(24,e.reportLct)},bV.$metadata$={kind:c,interfaces:[pt]},SV.prototype.makeSql_6taknv$=function(t){return"INSERT INTO Report (reportUid, reportOwnerUid, xAxis, reportDateRangeSelection, fromDate, fromRelTo, fromRelOffSet, fromRelUnit, toDate, toRelTo, toRelOffSet, toRelUnit, reportTitle, reportDescription, reportSeries, reportInactive, isTemplate, priority, reportTitleId, reportDescId, reportMasterChangeSeqNum, reportLocalChangeSeqNum, reportLastChangedBy, reportLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},SV.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.reportUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.reportUid),t.setLong_6svq3l$(2,e.reportOwnerUid),t.setInt_vux9f0$(3,e.xAxis),t.setInt_vux9f0$(4,e.reportDateRangeSelection),t.setLong_6svq3l$(5,e.fromDate),t.setInt_vux9f0$(6,e.fromRelTo),t.setInt_vux9f0$(7,e.fromRelOffSet),t.setInt_vux9f0$(8,e.fromRelUnit),t.setLong_6svq3l$(9,e.toDate),t.setInt_vux9f0$(10,e.toRelTo),t.setInt_vux9f0$(11,e.toRelOffSet),t.setInt_vux9f0$(12,e.toRelUnit),t.setString_vqvrqt$(13,e.reportTitle),t.setString_vqvrqt$(14,e.reportDescription),t.setString_vqvrqt$(15,e.reportSeries),t.setBoolean_fzusl$(16,e.reportInactive),t.setBoolean_fzusl$(17,e.isTemplate),t.setInt_vux9f0$(18,e.priority),t.setInt_vux9f0$(19,e.reportTitleId),t.setInt_vux9f0$(20,e.reportDescId),t.setLong_6svq3l$(21,e.reportMasterChangeSeqNum),t.setLong_6svq3l$(22,e.reportLocalChangeSeqNum),t.setInt_vux9f0$(23,e.reportLastChangedBy),t.setLong_6svq3l$(24,e.reportLct)},SV.$metadata$={kind:c,interfaces:[pt]},kH.$metadata$={kind:c,simpleName:"ReportDao_JdbcKt",interfaces:[MH]},CV.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},CV.prototype=Object.create(N.prototype),CV.prototype.constructor=CV,CV.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNodeTemplates_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vV.prototype.replicateOnNewNodeTemplates_s8cxhz$=function(t,e,n){var i=new CV(this,t,e);return n?i:i.doResume(null)},NV.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},NV.prototype=Object.create(N.prototype),NV.prototype.constructor=NV,NV.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChangeTemplates(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vV.prototype.replicateOnChangeTemplates=function(t,e){var n=new NV(this,t);return e?n:n.doResume(null)},vV.prototype.getResults_j49vja$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},vV.prototype.findAllActiveReport_dw84ek$=function(t,e,n,i){return this._dao_0.findAllActiveReport_dw84ek$(t,e,n,i)},vV.prototype.findByUid_s8cxhz$=function(t,e){return this._dao_0.findByUid_s8cxhz$(t,e)},TV.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},TV.prototype=Object.create(N.prototype),TV.prototype.constructor=TV,TV.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$entity.reportLct=J(),this.state_0=2,this.result_0=this.$this._dao_0.updateAsync_7abdyy$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vV.prototype.updateAsync_7abdyy$=function(t,e,n){var i=new TV(this,t,e);return n?i:i.doResume(null)},vV.prototype.findByUidLive_s8cxhz$=function(t){return this._dao_0.findByUidLive_s8cxhz$(t)},vV.prototype.findAllActiveReportLive_6taknv$=function(t){return this._dao_0.findAllActiveReportLive_6taknv$(t)},vV.prototype.findAllActiveReportList_6taknv$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},vV.prototype.findByUidList_gox9k8$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},LV.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},LV.prototype=Object.create(N.prototype),LV.prototype.constructor=LV,LV.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.toggleVisibilityReportItems_cbj1f0$(this.local$toggleVisibility,this.local$selectedItem,this.local$updateTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vV.prototype.toggleVisibilityReportItems_cbj1f0$=function(t,e,n,i,o){var r=new LV(this,t,e,n,i);return o?r:r.doResume(null)},vV.prototype.replaceList_rp0mfj$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},vV.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},zV.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},zV.prototype=Object.create(N.prototype),zV.prototype.constructor=zV,zV.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.reportUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(101,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.reportUid=e,this.state_0=3;continue;case 3:if(this.local$entity.reportLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.reportUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vV.prototype.insertAsync=function(t,e,n){var i=new zV(this,t,e);return n?i:i.doResume(null)},vV.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},vV.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},vV.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},vV.$metadata$={kind:c,simpleName:"ReportDao_ReplicateWrapper",interfaces:[MH]},OV.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},OV.prototype=Object.create(N.prototype),OV.prototype.constructor=OV,OV.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNodeTemplates_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},wV.prototype.replicateOnNewNodeTemplates_s8cxhz$=function(t,e,n){var i=new OV(this,t,e);return n?i:i.doResume(null)},RV.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},RV.prototype=Object.create(N.prototype),RV.prototype.constructor=RV,RV.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChangeTemplates(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},wV.prototype.replicateOnChangeTemplates=function(t,e){var n=new RV(this,t);return e?n:n.doResume(null)},wV.prototype.getResults_j49vja$=function(t){return this._dao.getResults_j49vja$(t)},wV.prototype.findAllActiveReport_dw84ek$=function(t,e,n,i){return this._dao.findAllActiveReport_dw84ek$(t,e,n,i)},AV.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},AV.prototype=Object.create(N.prototype),AV.prototype.constructor=AV,AV.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByUid_s8cxhz$(this.local$entityUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},wV.prototype.findByUid_s8cxhz$=function(t,e,n){var i=new AV(this,t,e);return n?i:i.doResume(null)},xV.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},xV.prototype=Object.create(N.prototype),xV.prototype.constructor=xV,xV.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateAsync_7abdyy$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},wV.prototype.updateAsync_7abdyy$=function(t,e,n){var i=new xV(this,t,e);return n?i:i.doResume(null)},wV.prototype.findByUidLive_s8cxhz$=function(t){return this._dao.findByUidLive_s8cxhz$(t)},wV.prototype.findAllActiveReportLive_6taknv$=function(t){return this._dao.findAllActiveReportLive_6taknv$(t)},wV.prototype.findAllActiveReportList_6taknv$=function(t){return this._dao.findAllActiveReportList_6taknv$(t)},wV.prototype.findByUidList_gox9k8$=function(t){return this._dao.findByUidList_gox9k8$(t)},IV.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},IV.prototype=Object.create(N.prototype),IV.prototype.constructor=IV,IV.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.toggleVisibilityReportItems_cbj1f0$(this.local$toggleVisibility,this.local$selectedItem,this.local$updateTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},wV.prototype.toggleVisibilityReportItems_cbj1f0$=function(t,e,n,i,o){var r=new IV(this,t,e,n,i);return o?r:r.doResume(null)},wV.prototype.replaceList_rp0mfj$=function(t){this._dao.replaceList_rp0mfj$(t)},wV.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},UV.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},UV.prototype=Object.create(N.prototype),UV.prototype.constructor=UV,UV.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},wV.prototype.insertAsync=function(t,e,n){var i=new UV(this,t,e);return n?i:i.doResume(null)},wV.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},wV.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},wV.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},wV.$metadata$={kind:c,simpleName:"ReportDao_Repo",interfaces:[MH]},DV.$metadata$={kind:c,simpleName:"ScheduleDao",interfaces:[t4,X6]},PV.prototype.insert_11rb$=function(t){return this._insertAdapterSchedule_.insertAndReturnId_11rb$(t)},MV.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},MV.prototype=Object.create(N.prototype),MV.prototype.constructor=MV,MV.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterSchedule_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},PV.prototype.insertAsync=function(t,e,n){var i=new MV(this,t,e);return n?i:i.doResume(null)},PV.prototype.insertList_4ezy5m$=function(t){this._insertAdapterSchedule_.insertList_4ezy5m$(t)},kV.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},kV.prototype=Object.create(N.prototype),kV.prototype.constructor=kV,kV.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterSchedule_.insertListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},PV.prototype.insertListAsync_4ezy5m$=function(t,e,n){var i=new kV(this,t,e);return n?i:i.doResume(null)},jV.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},jV.prototype=Object.create(N.prototype),jV.prototype.constructor=jV,jV.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$entity.sceduleStartTime),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$entity.scheduleEndTime),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$entity.scheduleDay),this.local$_stmt.setInt_vux9f0$(4,this.local$closure$entity.scheduleMonth),this.local$_stmt.setInt_vux9f0$(5,this.local$closure$entity.scheduleFrequency),this.local$_stmt.setLong_6svq3l$(6,this.local$closure$entity.umCalendarUid),this.local$_stmt.setLong_6svq3l$(7,this.local$closure$entity.scheduleClazzUid),this.local$_stmt.setLong_6svq3l$(8,this.local$closure$entity.scheduleMasterChangeSeqNum),this.local$_stmt.setLong_6svq3l$(9,this.local$closure$entity.scheduleLocalChangeSeqNum),this.local$_stmt.setInt_vux9f0$(10,this.local$closure$entity.scheduleLastChangedBy),this.local$_stmt.setLong_6svq3l$(11,this.local$closure$entity.scheduleLastChangedTime),this.local$_stmt.setBoolean_fzusl$(12,this.local$closure$entity.scheduleActive),this.local$_stmt.setLong_6svq3l$(13,this.local$closure$entity.scheduleUid),this.local$tmp$=this.local$closure$_result.v,this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$closure$_result.v=this.local$tmp$+this.result_0|0,V;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},qV.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},qV.prototype=Object.create(N.prototype),qV.prototype.constructor=qV,qV.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_result={v:0},this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE Schedule SET sceduleStartTime = ?, scheduleEndTime = ?, scheduleDay = ?, scheduleMonth = ?, scheduleFrequency = ?, umCalendarUid = ?, scheduleClazzUid = ?, scheduleMasterChangeSeqNum = ?, scheduleLocalChangeSeqNum = ?, scheduleLastChangedBy = ?, scheduleLastChangedTime = ?, scheduleActive = ? WHERE scheduleUid = ?",GV(this.local$entity,this.local$_result),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$_result.v;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},PV.prototype.updateAsync_y5fcmb$=function(t,e,n){var i=new qV(this,t,e);return n?i:i.doResume(null)},PV.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE Schedule SET sceduleStartTime = ?, scheduleEndTime = ?, scheduleDay = ?, scheduleMonth = ?, scheduleFrequency = ?, umCalendarUid = ?, scheduleClazzUid = ?, scheduleMasterChangeSeqNum = ?, scheduleLocalChangeSeqNum = ?, scheduleLastChangedBy = ?, scheduleLastChangedTime = ?, scheduleActive = ? WHERE scheduleUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.sceduleStartTime),t.setLong_6svq3l$(2,i.scheduleEndTime),t.setInt_vux9f0$(3,i.scheduleDay),t.setInt_vux9f0$(4,i.scheduleMonth),t.setInt_vux9f0$(5,i.scheduleFrequency),t.setLong_6svq3l$(6,i.umCalendarUid),t.setLong_6svq3l$(7,i.scheduleClazzUid),t.setLong_6svq3l$(8,i.scheduleMasterChangeSeqNum),t.setLong_6svq3l$(9,i.scheduleLocalChangeSeqNum),t.setInt_vux9f0$(10,i.scheduleLastChangedBy),t.setLong_6svq3l$(11,i.scheduleLastChangedTime),t.setBoolean_fzusl$(12,i.scheduleActive),t.setLong_6svq3l$(13,i.scheduleUid),t.executeUpdate()}return t.getConnection().commit(),V}))},PV.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE Schedule SET sceduleStartTime = ?, scheduleEndTime = ?, scheduleDay = ?, scheduleMonth = ?, scheduleFrequency = ?, umCalendarUid = ?, scheduleClazzUid = ?, scheduleMasterChangeSeqNum = ?, scheduleLocalChangeSeqNum = ?, scheduleLastChangedBy = ?, scheduleLastChangedTime = ?, scheduleActive = ? WHERE scheduleUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.sceduleStartTime),t.setLong_6svq3l$(2,e.scheduleEndTime),t.setInt_vux9f0$(3,e.scheduleDay),t.setInt_vux9f0$(4,e.scheduleMonth),t.setInt_vux9f0$(5,e.scheduleFrequency),t.setLong_6svq3l$(6,e.umCalendarUid),t.setLong_6svq3l$(7,e.scheduleClazzUid),t.setLong_6svq3l$(8,e.scheduleMasterChangeSeqNum),t.setLong_6svq3l$(9,e.scheduleLocalChangeSeqNum),t.setInt_vux9f0$(10,e.scheduleLastChangedBy),t.setLong_6svq3l$(11,e.scheduleLastChangedTime),t.setBoolean_fzusl$(12,e.scheduleActive),t.setLong_6svq3l$(13,e.scheduleUid),t.executeUpdate()}))},FV.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},FV.prototype=Object.create(N.prototype),FV.prototype.constructor=FV,FV.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_stmt.getConnection().setAutoCommit_6taknv$(!1),this.local$tmp$=this.local$closure$entityList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$tmp$.hasNext()){this.state_0=4;continue}var t=this.local$tmp$.next();if(this.local$_stmt.setLong_6svq3l$(1,t.sceduleStartTime),this.local$_stmt.setLong_6svq3l$(2,t.scheduleEndTime),this.local$_stmt.setInt_vux9f0$(3,t.scheduleDay),this.local$_stmt.setInt_vux9f0$(4,t.scheduleMonth),this.local$_stmt.setInt_vux9f0$(5,t.scheduleFrequency),this.local$_stmt.setLong_6svq3l$(6,t.umCalendarUid),this.local$_stmt.setLong_6svq3l$(7,t.scheduleClazzUid),this.local$_stmt.setLong_6svq3l$(8,t.scheduleMasterChangeSeqNum),this.local$_stmt.setLong_6svq3l$(9,t.scheduleLocalChangeSeqNum),this.local$_stmt.setInt_vux9f0$(10,t.scheduleLastChangedBy),this.local$_stmt.setLong_6svq3l$(11,t.scheduleLastChangedTime),this.local$_stmt.setBoolean_fzusl$(12,t.scheduleActive),this.local$_stmt.setLong_6svq3l$(13,t.scheduleUid),this.state_0=3,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 3:this.state_0=2;continue;case 4:return this.local$_stmt.getConnection().commit(),V;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},WV.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},WV.prototype=Object.create(N.prototype),WV.prototype.constructor=WV,WV.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE Schedule SET sceduleStartTime = ?, scheduleEndTime = ?, scheduleDay = ?, scheduleMonth = ?, scheduleFrequency = ?, umCalendarUid = ?, scheduleClazzUid = ?, scheduleMasterChangeSeqNum = ?, scheduleLocalChangeSeqNum = ?, scheduleLastChangedBy = ?, scheduleLastChangedTime = ?, scheduleActive = ? WHERE scheduleUid = ?",BV(this.local$entityList),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},PV.prototype.updateListAsync_4ezy5m$=function(t,e,n){var i=new WV(this,t,e);return n?i:i.doResume(null)},HV.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},HV.prototype=Object.create(N.prototype),HV.prototype.constructor=HV,HV.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},KV.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},KV.prototype=Object.create(N.prototype),KV.prototype.constructor=KV,KV.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ScheduleReplicate(schedulePk, scheduleDestination)\n | SELECT DISTINCT Schedule.scheduleUid AS schedulePk,\n | ? AS scheduleDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 2\n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | JOIN Schedule\n | ON Schedule.scheduleClazzUid = Clazz.clazzUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND Schedule.scheduleLastChangedTime != COALESCE(\n | (SELECT scheduleVersionId\n | FROM ScheduleReplicate\n | WHERE schedulePk = Schedule.scheduleUid\n | AND scheduleDestination = ?), 0) \n | /*psql ON CONFLICT(schedulePk, scheduleDestination) DO UPDATE\n | SET schedulePending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ScheduleReplicate(schedulePk, scheduleDestination)\n | SELECT DISTINCT Schedule.scheduleUid AS schedulePk,\n | ? AS scheduleDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 2\n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | JOIN Schedule\n | ON Schedule.scheduleClazzUid = Clazz.clazzUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND Schedule.scheduleLastChangedTime != COALESCE(\n | (SELECT scheduleVersionId\n | FROM ScheduleReplicate\n | WHERE schedulePk = Schedule.scheduleUid\n | AND scheduleDestination = ?), 0) \n | ON CONFLICT(schedulePk, scheduleDestination) DO UPDATE\n | SET schedulePending = true\n | \n | \n |")),VV(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},PV.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new KV(this,t,e);return n?i:i.doResume(null)},XV.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},XV.prototype=Object.create(N.prototype),XV.prototype.constructor=XV,XV.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},YV.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},YV.prototype=Object.create(N.prototype),YV.prototype.constructor=YV,YV.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ScheduleReplicate(schedulePk, scheduleDestination)\n | SELECT DISTINCT Schedule.scheduleUid AS scheduleUid,\n | UserSession.usClientNodeId AS scheduleDestination\n | FROM ChangeLog\n | JOIN Schedule\n | ON ChangeLog.chTableId = 21\n | AND Schedule.scheduleUid = ChangeLog.chEntityPk\n | JOIN Clazz\n | ON Clazz.clazzUid = Schedule.scheduleClazzUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 2\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND Schedule.scheduleLastChangedTime != COALESCE(\n | (SELECT scheduleVersionId\n | FROM ScheduleReplicate\n | WHERE schedulePk = Schedule.scheduleUid\n | AND scheduleDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(schedulePk, scheduleDestination) DO UPDATE\n | SET schedulePending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ScheduleReplicate(schedulePk, scheduleDestination)\n | SELECT DISTINCT Schedule.scheduleUid AS scheduleUid,\n | UserSession.usClientNodeId AS scheduleDestination\n | FROM ChangeLog\n | JOIN Schedule\n | ON ChangeLog.chTableId = 21\n | AND Schedule.scheduleUid = ChangeLog.chEntityPk\n | JOIN Clazz\n | ON Clazz.clazzUid = Schedule.scheduleClazzUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 2\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND Schedule.scheduleLastChangedTime != COALESCE(\n | (SELECT scheduleVersionId\n | FROM ScheduleReplicate\n | WHERE schedulePk = Schedule.scheduleUid\n | AND scheduleDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(schedulePk, scheduleDestination) DO UPDATE\n | SET schedulePending = true\n | \n | \n |")),JV,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},PV.prototype.replicateOnChange=function(t,e){var n=new YV(this,t);return e?n:n.doResume(null)},QV.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},QV.prototype=Object.create(N.prototype),QV.prototype.constructor=QV,QV.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setBoolean_fzusl$(1,this.local$closure$active),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$changeTime),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$scheduleUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tK.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},tK.prototype=Object.create(N.prototype),tK.prototype.constructor=tK,tK.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | UPDATE Schedule \n | SET scheduleActive = ?,\n | scheduleLastChangedTime = ?\n | WHERE scheduleUid = ?\n | \n ")),ZV(this.local$active,this.local$changeTime,this.local$scheduleUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},PV.prototype.updateScheduleActivated_zaz62j$=function(t,e,n,i,o){var r=new tK(this,t,e,n,i);return o?r:r.doResume(null)},PV.prototype.findByUid_s8cxhz$=function(t){return ht(this._db,new st("SELECT * FROM Schedule WHERE scheduleUid = ?"),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),eK)}));var e},iK.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},iK.prototype=Object.create(N.prototype),iK.prototype.constructor=iK,iK.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,nK);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},PV.prototype.findByUidAsync_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT * FROM Schedule WHERE scheduleUid = ?"),(n=t,function(t,e,i){var o=new iK(n,t,e);return i?o:o.doResume(null)}),e);var n},sK.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},sK.prototype=Object.create(N.prototype),sK.prototype.constructor=sK,sK.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$clazzUid),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,rK);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},cK.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},cK.prototype=Object.create(N.prototype),cK.prototype.constructor=cK,cK.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ScheduleDao_JdbcKt._db,new st("SELECT * FROM (SELECT * FROM Schedule WHERE scheduleClazzUid = ? AND CAST(scheduleActive AS INTEGER) = 1 ) LIMIT ? OFFSET ?"),aK(this.local$closure$clazzUid,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oK.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$ScheduleDao_JdbcKt._db,Et("Schedule"),(n=this.this$ScheduleDao_JdbcKt,i=this.closure$clazzUid,o=e,r=t,function(t,e){var s=new cK(n,i,o,r,t);return e?s:s.doResume(null)}));var n,i,o,r},uK.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},uK.prototype=Object.create(N.prototype),uK.prototype.constructor=uK,uK.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$clazzUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,lK);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dK.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},dK.prototype=Object.create(N.prototype),dK.prototype.constructor=dK,dK.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ScheduleDao_JdbcKt._db,new st("SELECT COUNT(*) FROM (SELECT * FROM Schedule WHERE scheduleClazzUid = ? AND CAST(scheduleActive AS INTEGER) = 1 ) "),hK(this.local$closure$clazzUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oK.prototype.getLength=function(){return new ft(this.this$ScheduleDao_JdbcKt._db,Et("Schedule"),(t=this.this$ScheduleDao_JdbcKt,e=this.closure$clazzUid,function(n,i){var o=new dK(t,e,n);return i?o:o.doResume(null)}));var t,e},oK.$metadata$={kind:c,interfaces:[gt]},PV.prototype.findAllSchedulesByClazzUid_s8cxhz$=function(t){return new oK(this,t)},PV.prototype.findAllSchedulesByClazzUidAsList_s8cxhz$=function(t){return ht(this._db,new st("SELECT * FROM Schedule WHERE scheduleClazzUid = ? AND CAST(scheduleActive AS INTEGER) = 1"),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),pK)}));var e},mK.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},mK.prototype=Object.create(N.prototype),mK.prototype.constructor=mK,mK.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$clazzUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,_K);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},gK.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},gK.prototype=Object.create(N.prototype),gK.prototype.constructor=gK,gK.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ScheduleDao_JdbcKt._db,new st("SELECT * FROM Schedule WHERE scheduleClazzUid = ? AND CAST(scheduleActive AS INTEGER) = 1"),fK(this.local$closure$clazzUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},PV.prototype.findAllSchedulesByClazzUidAsLiveList_s8cxhz$=function(t){return new ft(this._db,Et("Schedule"),(e=this,n=t,function(t,i){var o=new gK(e,n,t);return i?o:o.doResume(null)}));var e,n},EK.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},EK.prototype=Object.create(N.prototype),EK.prototype.constructor=EK,EK.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$clazzUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,$K);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},PV.prototype.findAllSchedulesByClazzUidAsync_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT * FROM Schedule WHERE scheduleClazzUid = ? AND CAST(scheduleActive AS INTEGER) = 1 "),(n=t,function(t,e,i){var o=new EK(n,t,e);return i?o:o.doResume(null)}),e);var n},yK.prototype.makeSql_6taknv$=function(t){return"INSERT INTO Schedule (scheduleUid, sceduleStartTime, scheduleEndTime, scheduleDay, scheduleMonth, scheduleFrequency, umCalendarUid, scheduleClazzUid, scheduleMasterChangeSeqNum, scheduleLocalChangeSeqNum, scheduleLastChangedBy, scheduleLastChangedTime, scheduleActive) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},yK.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.scheduleUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.scheduleUid),t.setLong_6svq3l$(2,e.sceduleStartTime),t.setLong_6svq3l$(3,e.scheduleEndTime),t.setInt_vux9f0$(4,e.scheduleDay),t.setInt_vux9f0$(5,e.scheduleMonth),t.setInt_vux9f0$(6,e.scheduleFrequency),t.setLong_6svq3l$(7,e.umCalendarUid),t.setLong_6svq3l$(8,e.scheduleClazzUid),t.setLong_6svq3l$(9,e.scheduleMasterChangeSeqNum),t.setLong_6svq3l$(10,e.scheduleLocalChangeSeqNum),t.setInt_vux9f0$(11,e.scheduleLastChangedBy),t.setLong_6svq3l$(12,e.scheduleLastChangedTime),t.setBoolean_fzusl$(13,e.scheduleActive)},yK.$metadata$={kind:c,interfaces:[pt]},PV.$metadata$={kind:c,simpleName:"ScheduleDao_JdbcKt",interfaces:[DV]},SK.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},SK.prototype=Object.create(N.prototype),SK.prototype.constructor=SK,SK.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},bK.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new SK(this,t,e);return n?i:i.doResume(null)},vK.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},vK.prototype=Object.create(N.prototype),vK.prototype.constructor=vK,vK.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},bK.prototype.replicateOnChange=function(t,e){var n=new vK(this,t);return e?n:n.doResume(null)},bK.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},bK.prototype.updateAsync_y5fcmb$=function(t,e){return t.scheduleLastChangedTime=J(),this._dao_0.updateAsync_y5fcmb$(t,e)},CK.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},CK.prototype=Object.create(N.prototype),CK.prototype.constructor=CK,CK.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.updateScheduleActivated_zaz62j$(this.local$scheduleUid,this.local$active,this.local$changeTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},bK.prototype.updateScheduleActivated_zaz62j$=function(t,e,n,i,o){var r=new CK(this,t,e,n,i);return o?r:r.doResume(null)},bK.prototype.findByUid_s8cxhz$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},bK.prototype.findByUidAsync_s8cxhz$=function(t,e){return this._dao_0.findByUidAsync_s8cxhz$(t,e)},bK.prototype.findAllSchedulesByClazzUid_s8cxhz$=function(t){return this._dao_0.findAllSchedulesByClazzUid_s8cxhz$(t)},bK.prototype.findAllSchedulesByClazzUidAsList_s8cxhz$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},bK.prototype.findAllSchedulesByClazzUidAsLiveList_s8cxhz$=function(t){return this._dao_0.findAllSchedulesByClazzUidAsLiveList_s8cxhz$(t)},bK.prototype.findAllSchedulesByClazzUidAsync_s8cxhz$=function(t,e){return this._dao_0.findAllSchedulesByClazzUidAsync_s8cxhz$(t,e)},NK.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},NK.prototype=Object.create(N.prototype),NK.prototype.constructor=NK,NK.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.scheduleUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(21,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.scheduleUid=e,this.state_0=3;continue;case 3:if(this.local$entity.scheduleLastChangedTime=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.scheduleUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},bK.prototype.insertAsync=function(t,e,n){var i=new NK(this,t,e);return n?i:i.doResume(null)},bK.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},bK.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},bK.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},TK.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},TK.prototype=Object.create(N.prototype),TK.prototype.constructor=TK,TK.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_pkManager=_t(w(this.$this._db_0)),this.local$_generatedPks=F(),this.local$$receiver=this.local$entityList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$$receiver.hasNext()){this.state_0=5;continue}if(this.local$element=this.local$$receiver.next(),O(this.local$element.scheduleUid,X)){if(this.state_0=3,this.result_0=this.local$_pkManager.nextIdAsync_za3lpa$(21,this),this.result_0===C)return C;continue}this.state_0=4;continue;case 3:var t=this.result_0;this.local$element.scheduleUid=t,this.local$_generatedPks.add_11rb$(t),this.state_0=4;continue;case 4:this.local$element.scheduleLastChangedTime=J(),this.state_0=2;continue;case 5:if(this.state_0=6,this.result_0=this.$this._dao_0.insertListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 6:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},bK.prototype.insertListAsync_4ezy5m$=function(t,e,n){var i=new TK(this,t,e);return n?i:i.doResume(null)},LK.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},LK.prototype=Object.create(N.prototype),LK.prototype.constructor=LK,LK.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:F();for(var t=this.local$entityList.iterator();t.hasNext();)t.next().scheduleLastChangedTime=J();if(this.state_0=2,this.result_0=this.$this._dao_0.updateListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},bK.prototype.updateListAsync_4ezy5m$=function(t,e,n){var i=new LK(this,t,e);return n?i:i.doResume(null)},bK.$metadata$={kind:c,simpleName:"ScheduleDao_ReplicateWrapper",interfaces:[DV]},wK.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},wK.prototype=Object.create(N.prototype),wK.prototype.constructor=wK,wK.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zK.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new wK(this,t,e);return n?i:i.doResume(null)},OK.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},OK.prototype=Object.create(N.prototype),OK.prototype.constructor=OK,OK.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zK.prototype.replicateOnChange=function(t,e){var n=new OK(this,t);return e?n:n.doResume(null)},zK.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},RK.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},RK.prototype=Object.create(N.prototype),RK.prototype.constructor=RK,RK.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateAsync_y5fcmb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zK.prototype.updateAsync_y5fcmb$=function(t,e,n){var i=new RK(this,t,e);return n?i:i.doResume(null)},AK.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},AK.prototype=Object.create(N.prototype),AK.prototype.constructor=AK,AK.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateScheduleActivated_zaz62j$(this.local$scheduleUid,this.local$active,this.local$changeTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zK.prototype.updateScheduleActivated_zaz62j$=function(t,e,n,i,o){var r=new AK(this,t,e,n,i);return o?r:r.doResume(null)},zK.prototype.findByUid_s8cxhz$=function(t){return this._dao.findByUid_s8cxhz$(t)},xK.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},xK.prototype=Object.create(N.prototype),xK.prototype.constructor=xK,xK.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByUidAsync_s8cxhz$(this.local$uid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zK.prototype.findByUidAsync_s8cxhz$=function(t,e,n){var i=new xK(this,t,e);return n?i:i.doResume(null)},zK.prototype.findAllSchedulesByClazzUid_s8cxhz$=function(t){return this._dao.findAllSchedulesByClazzUid_s8cxhz$(t)},zK.prototype.findAllSchedulesByClazzUidAsList_s8cxhz$=function(t){return this._dao.findAllSchedulesByClazzUidAsList_s8cxhz$(t)},zK.prototype.findAllSchedulesByClazzUidAsLiveList_s8cxhz$=function(t){return this._dao.findAllSchedulesByClazzUidAsLiveList_s8cxhz$(t)},IK.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},IK.prototype=Object.create(N.prototype),IK.prototype.constructor=IK,IK.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findAllSchedulesByClazzUidAsync_s8cxhz$(this.local$clazzUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zK.prototype.findAllSchedulesByClazzUidAsync_s8cxhz$=function(t,e,n){var i=new IK(this,t,e);return n?i:i.doResume(null)},UK.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},UK.prototype=Object.create(N.prototype),UK.prototype.constructor=UK,UK.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zK.prototype.insertAsync=function(t,e,n){var i=new UK(this,t,e);return n?i:i.doResume(null)},zK.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},zK.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},zK.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},DK.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},DK.prototype=Object.create(N.prototype),DK.prototype.constructor=DK,DK.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zK.prototype.insertListAsync_4ezy5m$=function(t,e,n){var i=new DK(this,t,e);return n?i:i.doResume(null)},PK.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},PK.prototype=Object.create(N.prototype),PK.prototype.constructor=PK,PK.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zK.prototype.updateListAsync_4ezy5m$=function(t,e,n){var i=new PK(this,t,e);return n?i:i.doResume(null)},zK.$metadata$={kind:c,simpleName:"ScheduleDao_Repo",interfaces:[DV]},MK.$metadata$={kind:c,simpleName:"SchoolDao",interfaces:[X6]},kK.prototype.insert_11rb$=function(t){return this._insertAdapterSchool_.insertAndReturnId_11rb$(t)},jK.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},jK.prototype=Object.create(N.prototype),jK.prototype.constructor=jK,jK.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterSchool_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kK.prototype.insertAsync=function(t,e,n){var i=new jK(this,t,e);return n?i:i.doResume(null)},kK.prototype.insertList_4ezy5m$=function(t){this._insertAdapterSchool_.insertList_4ezy5m$(t)},GK.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},GK.prototype=Object.create(N.prototype),GK.prototype.constructor=GK,GK.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$entity.schoolName),this.local$_stmt.setString_vqvrqt$(2,this.local$closure$entity.schoolDesc),this.local$_stmt.setString_vqvrqt$(3,this.local$closure$entity.schoolAddress),this.local$_stmt.setBoolean_fzusl$(4,this.local$closure$entity.schoolActive),this.local$_stmt.setString_vqvrqt$(5,this.local$closure$entity.schoolPhoneNumber),this.local$_stmt.setInt_vux9f0$(6,this.local$closure$entity.schoolGender),this.local$_stmt.setLong_6svq3l$(7,this.local$closure$entity.schoolHolidayCalendarUid),this.local$_stmt.setLong_6svq3l$(8,this.local$closure$entity.schoolFeatures),this.local$_stmt.setDouble_5wr77w$(9,this.local$closure$entity.schoolLocationLong),this.local$_stmt.setDouble_5wr77w$(10,this.local$closure$entity.schoolLocationLatt),this.local$_stmt.setString_vqvrqt$(11,this.local$closure$entity.schoolEmailAddress),this.local$_stmt.setLong_6svq3l$(12,this.local$closure$entity.schoolTeachersPersonGroupUid),this.local$_stmt.setLong_6svq3l$(13,this.local$closure$entity.schoolStudentsPersonGroupUid),this.local$_stmt.setLong_6svq3l$(14,this.local$closure$entity.schoolPendingStudentsPersonGroupUid),this.local$_stmt.setString_vqvrqt$(15,this.local$closure$entity.schoolCode),this.local$_stmt.setLong_6svq3l$(16,this.local$closure$entity.schoolMasterChangeSeqNum),this.local$_stmt.setLong_6svq3l$(17,this.local$closure$entity.schoolLocalChangeSeqNum),this.local$_stmt.setInt_vux9f0$(18,this.local$closure$entity.schoolLastChangedBy),this.local$_stmt.setLong_6svq3l$(19,this.local$closure$entity.schoolLct),this.local$_stmt.setString_vqvrqt$(20,this.local$closure$entity.schoolTimeZone),this.local$_stmt.setLong_6svq3l$(21,this.local$closure$entity.schoolUid),this.local$tmp$=this.local$closure$_result.v,this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$closure$_result.v=this.local$tmp$+this.result_0|0,V;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},FK.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},FK.prototype=Object.create(N.prototype),FK.prototype.constructor=FK,FK.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_result={v:0},this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE School SET schoolName = ?, schoolDesc = ?, schoolAddress = ?, schoolActive = ?, schoolPhoneNumber = ?, schoolGender = ?, schoolHolidayCalendarUid = ?, schoolFeatures = ?, schoolLocationLong = ?, schoolLocationLatt = ?, schoolEmailAddress = ?, schoolTeachersPersonGroupUid = ?, schoolStudentsPersonGroupUid = ?, schoolPendingStudentsPersonGroupUid = ?, schoolCode = ?, schoolMasterChangeSeqNum = ?, schoolLocalChangeSeqNum = ?, schoolLastChangedBy = ?, schoolLct = ?, schoolTimeZone = ? WHERE schoolUid = ?",qK(this.local$entity,this.local$_result),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$_result.v;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kK.prototype.updateAsync_7q4b7e$=function(t,e,n){var i=new FK(this,t,e);return n?i:i.doResume(null)},kK.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE School SET schoolName = ?, schoolDesc = ?, schoolAddress = ?, schoolActive = ?, schoolPhoneNumber = ?, schoolGender = ?, schoolHolidayCalendarUid = ?, schoolFeatures = ?, schoolLocationLong = ?, schoolLocationLatt = ?, schoolEmailAddress = ?, schoolTeachersPersonGroupUid = ?, schoolStudentsPersonGroupUid = ?, schoolPendingStudentsPersonGroupUid = ?, schoolCode = ?, schoolMasterChangeSeqNum = ?, schoolLocalChangeSeqNum = ?, schoolLastChangedBy = ?, schoolLct = ?, schoolTimeZone = ? WHERE schoolUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setString_vqvrqt$(1,i.schoolName),t.setString_vqvrqt$(2,i.schoolDesc),t.setString_vqvrqt$(3,i.schoolAddress),t.setBoolean_fzusl$(4,i.schoolActive),t.setString_vqvrqt$(5,i.schoolPhoneNumber),t.setInt_vux9f0$(6,i.schoolGender),t.setLong_6svq3l$(7,i.schoolHolidayCalendarUid),t.setLong_6svq3l$(8,i.schoolFeatures),t.setDouble_5wr77w$(9,i.schoolLocationLong),t.setDouble_5wr77w$(10,i.schoolLocationLatt),t.setString_vqvrqt$(11,i.schoolEmailAddress),t.setLong_6svq3l$(12,i.schoolTeachersPersonGroupUid),t.setLong_6svq3l$(13,i.schoolStudentsPersonGroupUid),t.setLong_6svq3l$(14,i.schoolPendingStudentsPersonGroupUid),t.setString_vqvrqt$(15,i.schoolCode),t.setLong_6svq3l$(16,i.schoolMasterChangeSeqNum),t.setLong_6svq3l$(17,i.schoolLocalChangeSeqNum),t.setInt_vux9f0$(18,i.schoolLastChangedBy),t.setLong_6svq3l$(19,i.schoolLct),t.setString_vqvrqt$(20,i.schoolTimeZone),t.setLong_6svq3l$(21,i.schoolUid),t.executeUpdate()}return t.getConnection().commit(),V}))},kK.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE School SET schoolName = ?, schoolDesc = ?, schoolAddress = ?, schoolActive = ?, schoolPhoneNumber = ?, schoolGender = ?, schoolHolidayCalendarUid = ?, schoolFeatures = ?, schoolLocationLong = ?, schoolLocationLatt = ?, schoolEmailAddress = ?, schoolTeachersPersonGroupUid = ?, schoolStudentsPersonGroupUid = ?, schoolPendingStudentsPersonGroupUid = ?, schoolCode = ?, schoolMasterChangeSeqNum = ?, schoolLocalChangeSeqNum = ?, schoolLastChangedBy = ?, schoolLct = ?, schoolTimeZone = ? WHERE schoolUid = ?",(e=t,function(t){return t.setString_vqvrqt$(1,e.schoolName),t.setString_vqvrqt$(2,e.schoolDesc),t.setString_vqvrqt$(3,e.schoolAddress),t.setBoolean_fzusl$(4,e.schoolActive),t.setString_vqvrqt$(5,e.schoolPhoneNumber),t.setInt_vux9f0$(6,e.schoolGender),t.setLong_6svq3l$(7,e.schoolHolidayCalendarUid),t.setLong_6svq3l$(8,e.schoolFeatures),t.setDouble_5wr77w$(9,e.schoolLocationLong),t.setDouble_5wr77w$(10,e.schoolLocationLatt),t.setString_vqvrqt$(11,e.schoolEmailAddress),t.setLong_6svq3l$(12,e.schoolTeachersPersonGroupUid),t.setLong_6svq3l$(13,e.schoolStudentsPersonGroupUid),t.setLong_6svq3l$(14,e.schoolPendingStudentsPersonGroupUid),t.setString_vqvrqt$(15,e.schoolCode),t.setLong_6svq3l$(16,e.schoolMasterChangeSeqNum),t.setLong_6svq3l$(17,e.schoolLocalChangeSeqNum),t.setInt_vux9f0$(18,e.schoolLastChangedBy),t.setLong_6svq3l$(19,e.schoolLct),t.setString_vqvrqt$(20,e.schoolTimeZone),t.setLong_6svq3l$(21,e.schoolUid),t.executeUpdate()}))},BK.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},BK.prototype=Object.create(N.prototype),BK.prototype.constructor=BK,BK.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HK.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},HK.prototype=Object.create(N.prototype),HK.prototype.constructor=HK,HK.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO SchoolReplicate(schoolPk, schoolDestination)\n | SELECT DISTINCT School.schoolUid AS schoolPk,\n | ? AS schoolDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant \n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | \n | \n | 536870912\n | \n | ) > 0\n | JOIN School\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = School.schoolUid))\n | \n | \n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND School.schoolLct != COALESCE(\n | (SELECT schoolVersionId\n | FROM SchoolReplicate\n | WHERE schoolPk = School.schoolUid\n | AND schoolDestination = ?), 0) \n | /*psql ON CONFLICT(schoolPk, schoolDestination) DO UPDATE\n | SET schoolPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO SchoolReplicate(schoolPk, schoolDestination)\n | SELECT DISTINCT School.schoolUid AS schoolPk,\n | ? AS schoolDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant \n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | \n | \n | 536870912\n | \n | ) > 0\n | JOIN School\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = School.schoolUid))\n | \n | \n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND School.schoolLct != COALESCE(\n | (SELECT schoolVersionId\n | FROM SchoolReplicate\n | WHERE schoolPk = School.schoolUid\n | AND schoolDestination = ?), 0) \n | ON CONFLICT(schoolPk, schoolDestination) DO UPDATE\n | SET schoolPending = true\n | \n | \n |")),WK(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kK.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new HK(this,t,e);return n?i:i.doResume(null)},VK.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},VK.prototype=Object.create(N.prototype),VK.prototype.constructor=VK,VK.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},XK.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},XK.prototype=Object.create(N.prototype),XK.prototype.constructor=XK,XK.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO SchoolReplicate(schoolPk, schoolDestination)\n | SELECT DISTINCT School.schoolUid AS schoolUid,\n | UserSession.usClientNodeId AS schoolDestination\n | FROM ChangeLog\n | JOIN School\n | ON ChangeLog.chTableId = 164\n | AND ChangeLog.chEntityPk = School.schoolUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = School.schoolUid))\n | \n | AND (SCopedGrant.sgPermissions &\n | \n | 536870912\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND School.schoolLct != COALESCE(\n | (SELECT schoolVersionId\n | FROM SchoolReplicate\n | WHERE schoolPk = School.schoolUid\n | AND schoolDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(schoolPk, schoolDestination) DO UPDATE\n | SET schoolPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO SchoolReplicate(schoolPk, schoolDestination)\n | SELECT DISTINCT School.schoolUid AS schoolUid,\n | UserSession.usClientNodeId AS schoolDestination\n | FROM ChangeLog\n | JOIN School\n | ON ChangeLog.chTableId = 164\n | AND ChangeLog.chEntityPk = School.schoolUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = School.schoolUid))\n | \n | AND (SCopedGrant.sgPermissions &\n | \n | 536870912\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND School.schoolLct != COALESCE(\n | (SELECT schoolVersionId\n | FROM SchoolReplicate\n | WHERE schoolPk = School.schoolUid\n | AND schoolDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(schoolPk, schoolDestination) DO UPDATE\n | SET schoolPending = true\n | \n | \n |")),KK,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kK.prototype.replicateOnChange=function(t,e){var n=new XK(this,t);return e?n:n.doResume(null)},YK.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},YK.prototype=Object.create(N.prototype),YK.prototype.constructor=YK,YK.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$schoolUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,JK);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kK.prototype.findByUidAsync_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT * FROM School WHERE schoolUid = ? AND CAST(schoolActive AS INTEGER) = 1"),(n=t,function(t,e,i){var o=new YK(n,t,e);return i?o:o.doResume(null)}),e);var n},ZK.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ZK.prototype=Object.create(N.prototype),ZK.prototype.constructor=ZK,ZK.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,QK);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kK.prototype.findByUidWithHolidayCalendarAsync_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |SELECT School.*, HolidayCalendar.* FROM School \n | LEFT JOIN HolidayCalendar ON School.schoolHolidayCalendarUid = HolidayCalendar.umCalendarUid\n | WHERE School.schoolUid = ?\n ")),(n=t,function(t,e,i){var o=new ZK(n,t,e);return i?o:o.doResume(null)}),e);var n},eX.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},eX.prototype=Object.create(N.prototype),eX.prototype.constructor=eX,eX.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$code),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,tX);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kK.prototype.findBySchoolCode_61zpoe$=function(t,e){return ct(this._db,new st("SELECT * FROM School WHERE schoolCode = ?"),(n=t,function(t,e,i){var o=new eX(n,t,e);return i?o:o.doResume(null)}),e);var n},iX.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},iX.prototype=Object.create(N.prototype),iX.prototype.constructor=iX,iX.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$code),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,nX);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kK.prototype.findBySchoolCodeFromWeb_61zpoe$=function(t,e){return ct(this._db,new st("SELECT * FROM School WHERE schoolCode = ?"),(n=t,function(t,e,i){var o=new iX(n,t,e);return i?o:o.doResume(null)}),e);var n},rX.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},rX.prototype=Object.create(N.prototype),rX.prototype.constructor=rX,rX.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$permission),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$accountPersonUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$schoolUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,oX);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kK.prototype.personHasPermissionWithSchool_b9bd0d$=function(t,e,n,i){return ct(this._db,new st(S("\n |\n | Select EXISTS(\n | SELECT School.schoolUid \n | FROM School\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = School.schoolUid))\n | \n | AND (SCopedGrant.sgPermissions &\n | ?) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | AND PrsGrpMbr.groupMemberPersonUid = ?\n | WHERE School.schoolUid = ?) \n | \n ")),(o=n,r=t,s=e,function(t,e,n){var i=new rX(o,r,s,t,e);return n?i:i.doResume(null)}),i);var o,r,s},cX.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},cX.prototype=Object.create(N.prototype),cX.prototype.constructor=cX,cX.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$permission),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$personUid),this.local$_stmt.setString_vqvrqt$(3,this.local$closure$searchBit),this.local$_stmt.setInt_vux9f0$(4,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(5,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(6,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(7,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,aX);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},uX.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},uX.prototype=Object.create(N.prototype),uX.prototype.constructor=uX,uX.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$SchoolDao_JdbcKt._db,new st(S("\n |SELECT * FROM (\n | SELECT School.*, \n | (SELECT COUNT(*) \n | FROM SchoolMember \n | WHERE SchoolMember.schoolMemberSchoolUid = School.schoolUid \n | AND CAST(SchoolMember.schoolMemberActive AS INTEGER) = 1 \n | AND SchoolMember.schoolMemberRole = 1003) as numStudents,\n | (SELECT COUNT(*) \n | FROM SchoolMember \n | WHERE SchoolMember.schoolMemberSchoolUid = School.schoolUid \n | AND CAST(SchoolMember.schoolMemberActive AS INTEGER) = 1 \n | AND SchoolMember.schoolMemberRole = 1004) as numTeachers, \n | '' as locationName,\n | (SELECT COUNT(*) \n | FROM Clazz \n | WHERE Clazz.clazzSchoolUid = School.schoolUid \n | AND CAST(Clazz.clazzUid AS INTEGER) = 1 ) as clazzCount\n | FROM PersonGroupMember\n | \n | JOIN ScopedGrant \n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | \n | \n | ?\n | \n | ) > 0\n | JOIN School\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = School.schoolUid))\n | \n | \n | WHERE PersonGroupMember.groupMemberPersonUid = ?\n | AND PersonGroupMember.groupMemberActive \n | AND CAST(schoolActive AS INTEGER) = 1\n | AND schoolName LIKE ?\n | GROUP BY School.schoolUid\n | ORDER BY CASE(?)\n | WHEN 1 THEN School.schoolName\n | ELSE ''\n | END ASC,\n | CASE(?)\n | WHEN 2 THEN School.schoolName\n | ELSE ''\n | END DESC) LIMIT ? OFFSET ?\n ")),lX(this.local$closure$permission,this.local$closure$personUid,this.local$closure$searchBit,this.local$closure$sortOrder,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},sX.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$SchoolDao_JdbcKt._db,p(["SchoolMember","Clazz","PersonGroupMember","ScopedGrant","School"]),(n=this.this$SchoolDao_JdbcKt,i=this.closure$permission,o=this.closure$personUid,r=this.closure$searchBit,s=this.closure$sortOrder,a=e,c=t,function(t,e){var l=new uX(n,i,o,r,s,a,c,t);return e?l:l.doResume(null)}));var n,i,o,r,s,a,c},dX.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},dX.prototype=Object.create(N.prototype),dX.prototype.constructor=dX,dX.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$permission),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$personUid),this.local$_stmt.setString_vqvrqt$(3,this.local$closure$searchBit),this.local$_stmt.setInt_vux9f0$(4,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(5,this.local$closure$sortOrder),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,hX);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_X.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_X.prototype=Object.create(N.prototype),_X.prototype.constructor=_X,_X.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$SchoolDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (\n | SELECT School.*, \n | (SELECT COUNT(*) \n | FROM SchoolMember \n | WHERE SchoolMember.schoolMemberSchoolUid = School.schoolUid \n | AND CAST(SchoolMember.schoolMemberActive AS INTEGER) = 1 \n | AND SchoolMember.schoolMemberRole = 1003) as numStudents,\n | (SELECT COUNT(*) \n | FROM SchoolMember \n | WHERE SchoolMember.schoolMemberSchoolUid = School.schoolUid \n | AND CAST(SchoolMember.schoolMemberActive AS INTEGER) = 1 \n | AND SchoolMember.schoolMemberRole = 1004) as numTeachers, \n | '' as locationName,\n | (SELECT COUNT(*) \n | FROM Clazz \n | WHERE Clazz.clazzSchoolUid = School.schoolUid \n | AND CAST(Clazz.clazzUid AS INTEGER) = 1 ) as clazzCount\n | FROM PersonGroupMember\n | \n | JOIN ScopedGrant \n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | \n | \n | ?\n | \n | ) > 0\n | JOIN School\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = School.schoolUid))\n | \n | \n | WHERE PersonGroupMember.groupMemberPersonUid = ?\n | AND PersonGroupMember.groupMemberActive \n | AND CAST(schoolActive AS INTEGER) = 1\n | AND schoolName LIKE ?\n | GROUP BY School.schoolUid\n | ORDER BY CASE(?)\n | WHEN 1 THEN School.schoolName\n | ELSE ''\n | END ASC,\n | CASE(?)\n | WHEN 2 THEN School.schoolName\n | ELSE ''\n | END DESC) \n ")),pX(this.local$closure$permission,this.local$closure$personUid,this.local$closure$searchBit,this.local$closure$sortOrder),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},sX.prototype.getLength=function(){return new ft(this.this$SchoolDao_JdbcKt._db,p(["SchoolMember","Clazz","PersonGroupMember","ScopedGrant","School"]),(t=this.this$SchoolDao_JdbcKt,e=this.closure$permission,n=this.closure$personUid,i=this.closure$searchBit,o=this.closure$sortOrder,function(r,s){var a=new _X(t,e,n,i,o,r);return s?a:a.doResume(null)}));var t,e,n,i,o},sX.$metadata$={kind:c,interfaces:[gt]},kK.prototype.findAllActiveSchoolWithMemberCountAndLocationName_gx19nu$=function(t,e,n,i){return new sX(this,n,e,t,i)},mX.prototype.makeSql_6taknv$=function(t){return"INSERT INTO School (schoolUid, schoolName, schoolDesc, schoolAddress, schoolActive, schoolPhoneNumber, schoolGender, schoolHolidayCalendarUid, schoolFeatures, schoolLocationLong, schoolLocationLatt, schoolEmailAddress, schoolTeachersPersonGroupUid, schoolStudentsPersonGroupUid, schoolPendingStudentsPersonGroupUid, schoolCode, schoolMasterChangeSeqNum, schoolLocalChangeSeqNum, schoolLastChangedBy, schoolLct, schoolTimeZone) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},mX.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.schoolUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.schoolUid),t.setString_vqvrqt$(2,e.schoolName),t.setString_vqvrqt$(3,e.schoolDesc),t.setString_vqvrqt$(4,e.schoolAddress),t.setBoolean_fzusl$(5,e.schoolActive),t.setString_vqvrqt$(6,e.schoolPhoneNumber),t.setInt_vux9f0$(7,e.schoolGender),t.setLong_6svq3l$(8,e.schoolHolidayCalendarUid),t.setLong_6svq3l$(9,e.schoolFeatures),t.setDouble_5wr77w$(10,e.schoolLocationLong),t.setDouble_5wr77w$(11,e.schoolLocationLatt),t.setString_vqvrqt$(12,e.schoolEmailAddress),t.setLong_6svq3l$(13,e.schoolTeachersPersonGroupUid),t.setLong_6svq3l$(14,e.schoolStudentsPersonGroupUid),t.setLong_6svq3l$(15,e.schoolPendingStudentsPersonGroupUid),t.setString_vqvrqt$(16,e.schoolCode),t.setLong_6svq3l$(17,e.schoolMasterChangeSeqNum),t.setLong_6svq3l$(18,e.schoolLocalChangeSeqNum),t.setInt_vux9f0$(19,e.schoolLastChangedBy),t.setLong_6svq3l$(20,e.schoolLct),t.setString_vqvrqt$(21,e.schoolTimeZone)},mX.$metadata$={kind:c,interfaces:[pt]},kK.$metadata$={kind:c,simpleName:"SchoolDao_JdbcKt",interfaces:[MK]},gX.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},gX.prototype=Object.create(N.prototype),gX.prototype.constructor=gX,gX.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},fX.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new gX(this,t,e);return n?i:i.doResume(null)},$X.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},$X.prototype=Object.create(N.prototype),$X.prototype.constructor=$X,$X.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},fX.prototype.replicateOnChange=function(t,e){var n=new $X(this,t);return e?n:n.doResume(null)},fX.prototype.findByUidAsync_s8cxhz$=function(t,e){return this._dao_0.findByUidAsync_s8cxhz$(t,e)},fX.prototype.findByUidWithHolidayCalendarAsync_s8cxhz$=function(t,e){return this._dao_0.findByUidWithHolidayCalendarAsync_s8cxhz$(t,e)},fX.prototype.findBySchoolCode_61zpoe$=function(t,e){return this._dao_0.findBySchoolCode_61zpoe$(t,e)},fX.prototype.findBySchoolCodeFromWeb_61zpoe$=function(t,e){return this._dao_0.findBySchoolCodeFromWeb_61zpoe$(t,e)},fX.prototype.personHasPermissionWithSchool_b9bd0d$=function(t,e,n,i){return this._dao_0.personHasPermissionWithSchool_b9bd0d$(t,e,n,i)},fX.prototype.findAllActiveSchoolWithMemberCountAndLocationName_gx19nu$=function(t,e,n,i){return this._dao_0.findAllActiveSchoolWithMemberCountAndLocationName_gx19nu$(t,e,n,i)},fX.prototype.updateAsync_7q4b7e$=function(t,e){return t.schoolLct=J(),this._dao_0.updateAsync_7q4b7e$(t,e)},fX.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},EX.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},EX.prototype=Object.create(N.prototype),EX.prototype.constructor=EX,EX.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.schoolUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(164,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.schoolUid=e,this.state_0=3;continue;case 3:if(this.local$entity.schoolLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.schoolUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},fX.prototype.insertAsync=function(t,e,n){var i=new EX(this,t,e);return n?i:i.doResume(null)},fX.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},fX.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},fX.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},fX.$metadata$={kind:c,simpleName:"SchoolDao_ReplicateWrapper",interfaces:[MK]},bX.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},bX.prototype=Object.create(N.prototype),bX.prototype.constructor=bX,bX.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yX.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new bX(this,t,e);return n?i:i.doResume(null)},SX.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},SX.prototype=Object.create(N.prototype),SX.prototype.constructor=SX,SX.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yX.prototype.replicateOnChange=function(t,e){var n=new SX(this,t);return e?n:n.doResume(null)},vX.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},vX.prototype=Object.create(N.prototype),vX.prototype.constructor=vX,vX.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByUidAsync_s8cxhz$(this.local$schoolUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yX.prototype.findByUidAsync_s8cxhz$=function(t,e,n){var i=new vX(this,t,e);return n?i:i.doResume(null)},CX.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},CX.prototype=Object.create(N.prototype),CX.prototype.constructor=CX,CX.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByUidWithHolidayCalendarAsync_s8cxhz$(this.local$uid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yX.prototype.findByUidWithHolidayCalendarAsync_s8cxhz$=function(t,e,n){var i=new CX(this,t,e);return n?i:i.doResume(null)},NX.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},NX.prototype=Object.create(N.prototype),NX.prototype.constructor=NX,NX.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findBySchoolCode_61zpoe$(this.local$code,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yX.prototype.findBySchoolCode_61zpoe$=function(t,e,n){var i=new NX(this,t,e);return n?i:i.doResume(null)},yX.prototype.findBySchoolCodeFromWeb_61zpoe$=function(t,e){throw v("Synchronous HTTP is not supported on Door/Javascript!")},TX.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},TX.prototype=Object.create(N.prototype),TX.prototype.constructor=TX,TX.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.personHasPermissionWithSchool_b9bd0d$(this.local$accountPersonUid,this.local$schoolUid,this.local$permission,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yX.prototype.personHasPermissionWithSchool_b9bd0d$=function(t,e,n,i,o){var r=new TX(this,t,e,n,i);return o?r:r.doResume(null)},yX.prototype.findAllActiveSchoolWithMemberCountAndLocationName_gx19nu$=function(t,e,n,i){return this._dao.findAllActiveSchoolWithMemberCountAndLocationName_gx19nu$(t,e,n,i)},LX.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},LX.prototype=Object.create(N.prototype),LX.prototype.constructor=LX,LX.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateAsync_7q4b7e$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yX.prototype.updateAsync_7q4b7e$=function(t,e,n){var i=new LX(this,t,e);return n?i:i.doResume(null)},yX.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},zX.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},zX.prototype=Object.create(N.prototype),zX.prototype.constructor=zX,zX.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yX.prototype.insertAsync=function(t,e,n){var i=new zX(this,t,e);return n?i:i.doResume(null)},yX.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},yX.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},yX.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},yX.$metadata$={kind:c,simpleName:"SchoolDao_Repo",interfaces:[MK]},wX.prototype.findBySchoolAndPersonAndRole_6qtc6d$=function(t,e,n,i,o,r){return void 0===i&&(i=X),r?r(t,e,n,i,o):this.findBySchoolAndPersonAndRole_6qtc6d$$default(t,e,n,i,o)},wX.$metadata$={kind:c,simpleName:"SchoolMemberDao",interfaces:[X6]},OX.prototype.insert_11rb$=function(t){return this._insertAdapterSchoolMember_.insertAndReturnId_11rb$(t)},RX.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},RX.prototype=Object.create(N.prototype),RX.prototype.constructor=RX,RX.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterSchoolMember_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},OX.prototype.insertAsync=function(t,e,n){var i=new RX(this,t,e);return n?i:i.doResume(null)},OX.prototype.insertList_4ezy5m$=function(t){this._insertAdapterSchoolMember_.insertList_4ezy5m$(t)},AX.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},AX.prototype=Object.create(N.prototype),AX.prototype.constructor=AX,AX.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$entity.schoolMemberPersonUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$entity.schoolMemberSchoolUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$entity.schoolMemberJoinDate),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$entity.schoolMemberLeftDate),this.local$_stmt.setInt_vux9f0$(5,this.local$closure$entity.schoolMemberRole),this.local$_stmt.setBoolean_fzusl$(6,this.local$closure$entity.schoolMemberActive),this.local$_stmt.setLong_6svq3l$(7,this.local$closure$entity.schoolMemberLocalChangeSeqNum),this.local$_stmt.setLong_6svq3l$(8,this.local$closure$entity.schoolMemberMasterChangeSeqNum),this.local$_stmt.setInt_vux9f0$(9,this.local$closure$entity.schoolMemberLastChangedBy),this.local$_stmt.setLong_6svq3l$(10,this.local$closure$entity.schoolMemberLct),this.local$_stmt.setLong_6svq3l$(11,this.local$closure$entity.schoolMemberUid),this.local$tmp$=this.local$closure$_result.v,this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$closure$_result.v=this.local$tmp$+this.result_0|0,V;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},IX.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},IX.prototype=Object.create(N.prototype),IX.prototype.constructor=IX,IX.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_result={v:0},this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE SchoolMember SET schoolMemberPersonUid = ?, schoolMemberSchoolUid = ?, schoolMemberJoinDate = ?, schoolMemberLeftDate = ?, schoolMemberRole = ?, schoolMemberActive = ?, schoolMemberLocalChangeSeqNum = ?, schoolMemberMasterChangeSeqNum = ?, schoolMemberLastChangedBy = ?, schoolMemberLct = ? WHERE schoolMemberUid = ?",xX(this.local$entity,this.local$_result),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.local$_result.v;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},OX.prototype.updateAsync_nzwwdw$=function(t,e,n){var i=new IX(this,t,e);return n?i:i.doResume(null)},OX.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE SchoolMember SET schoolMemberPersonUid = ?, schoolMemberSchoolUid = ?, schoolMemberJoinDate = ?, schoolMemberLeftDate = ?, schoolMemberRole = ?, schoolMemberActive = ?, schoolMemberLocalChangeSeqNum = ?, schoolMemberMasterChangeSeqNum = ?, schoolMemberLastChangedBy = ?, schoolMemberLct = ? WHERE schoolMemberUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.schoolMemberPersonUid),t.setLong_6svq3l$(2,i.schoolMemberSchoolUid),t.setLong_6svq3l$(3,i.schoolMemberJoinDate),t.setLong_6svq3l$(4,i.schoolMemberLeftDate),t.setInt_vux9f0$(5,i.schoolMemberRole),t.setBoolean_fzusl$(6,i.schoolMemberActive),t.setLong_6svq3l$(7,i.schoolMemberLocalChangeSeqNum),t.setLong_6svq3l$(8,i.schoolMemberMasterChangeSeqNum),t.setInt_vux9f0$(9,i.schoolMemberLastChangedBy),t.setLong_6svq3l$(10,i.schoolMemberLct),t.setLong_6svq3l$(11,i.schoolMemberUid),t.executeUpdate()}return t.getConnection().commit(),V}))},OX.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE SchoolMember SET schoolMemberPersonUid = ?, schoolMemberSchoolUid = ?, schoolMemberJoinDate = ?, schoolMemberLeftDate = ?, schoolMemberRole = ?, schoolMemberActive = ?, schoolMemberLocalChangeSeqNum = ?, schoolMemberMasterChangeSeqNum = ?, schoolMemberLastChangedBy = ?, schoolMemberLct = ? WHERE schoolMemberUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.schoolMemberPersonUid),t.setLong_6svq3l$(2,e.schoolMemberSchoolUid),t.setLong_6svq3l$(3,e.schoolMemberJoinDate),t.setLong_6svq3l$(4,e.schoolMemberLeftDate),t.setInt_vux9f0$(5,e.schoolMemberRole),t.setBoolean_fzusl$(6,e.schoolMemberActive),t.setLong_6svq3l$(7,e.schoolMemberLocalChangeSeqNum),t.setLong_6svq3l$(8,e.schoolMemberMasterChangeSeqNum),t.setInt_vux9f0$(9,e.schoolMemberLastChangedBy),t.setLong_6svq3l$(10,e.schoolMemberLct),t.setLong_6svq3l$(11,e.schoolMemberUid),t.executeUpdate()}))},UX.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},UX.prototype=Object.create(N.prototype),UX.prototype.constructor=UX,UX.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},PX.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},PX.prototype=Object.create(N.prototype),PX.prototype.constructor=PX,PX.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO SchoolMemberReplicate(smPk, smDestination)\n | SELECT DISTINCT SchoolMember.schoolMemberUid AS smPk,\n | ? AS smDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & 64) > 0\n | JOIN SchoolMember\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = SchoolMember.schoolMemberPersonUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = SchoolMember.schoolMemberSchoolUid))\n | \n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND SchoolMember.schoolMemberLct != COALESCE(\n | (SELECT smVersionId\n | FROM SchoolMemberReplicate\n | WHERE smPk = SchoolMember.schoolMemberUid\n | AND smDestination = ?), 0) \n | /*psql ON CONFLICT(smPk, smDestination) DO UPDATE\n | SET smPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO SchoolMemberReplicate(smPk, smDestination)\n | SELECT DISTINCT SchoolMember.schoolMemberUid AS smPk,\n | ? AS smDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & 64) > 0\n | JOIN SchoolMember\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = SchoolMember.schoolMemberPersonUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = SchoolMember.schoolMemberSchoolUid))\n | \n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND SchoolMember.schoolMemberLct != COALESCE(\n | (SELECT smVersionId\n | FROM SchoolMemberReplicate\n | WHERE smPk = SchoolMember.schoolMemberUid\n | AND smDestination = ?), 0) \n | ON CONFLICT(smPk, smDestination) DO UPDATE\n | SET smPending = true\n | \n | \n |")),DX(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},OX.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new PX(this,t,e);return n?i:i.doResume(null)},MX.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},MX.prototype=Object.create(N.prototype),MX.prototype.constructor=MX,MX.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jX.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},jX.prototype=Object.create(N.prototype),jX.prototype.constructor=jX,jX.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO SchoolMemberReplicate(smPk, smDestination)\n | SELECT DISTINCT SchoolMember.schoolMemberUid AS smUid,\n | UserSession.usClientNodeId AS smDestination\n | FROM ChangeLog\n | JOIN SchoolMember\n | ON ChangeLog.chTableId = 200\n | AND ChangeLog.chEntityPk = SchoolMember.schoolMemberUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = SchoolMember.schoolMemberPersonUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = SchoolMember.schoolMemberSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions &\n | \n | 64\n | \n | ) > 0 \n | JOIN PersonGroupMember \n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | AND UserSession.usStatus =1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND SchoolMember.schoolMemberLct != COALESCE(\n | (SELECT smVersionId\n | FROM SchoolMemberReplicate\n | WHERE smPk = SchoolMember.schoolMemberUid\n | AND smDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(smPk, smDestination) DO UPDATE\n | SET smPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO SchoolMemberReplicate(smPk, smDestination)\n | SELECT DISTINCT SchoolMember.schoolMemberUid AS smUid,\n | UserSession.usClientNodeId AS smDestination\n | FROM ChangeLog\n | JOIN SchoolMember\n | ON ChangeLog.chTableId = 200\n | AND ChangeLog.chEntityPk = SchoolMember.schoolMemberUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = SchoolMember.schoolMemberPersonUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = SchoolMember.schoolMemberSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions &\n | \n | 64\n | \n | ) > 0 \n | JOIN PersonGroupMember \n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | AND UserSession.usStatus =1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND SchoolMember.schoolMemberLct != COALESCE(\n | (SELECT smVersionId\n | FROM SchoolMemberReplicate\n | WHERE smPk = SchoolMember.schoolMemberUid\n | AND smDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(smPk, smDestination) DO UPDATE\n | SET smPending = true\n | \n | \n |")),kX,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},OX.prototype.replicateOnChange=function(t,e){var n=new jX(this,t);return e?n:n.doResume(null)},OX.prototype.findByUidAsync_s8cxhz$=function(t){return ht(this._db,new st("SELECT * FROM SchoolMember WHERE schoolMemberUid = ? AND CAST(schoolMemberActive AS INTEGER) = 1"),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),GX)}));var e},FX.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},FX.prototype=Object.create(N.prototype),FX.prototype.constructor=FX,FX.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$schoolUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$personUid),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$role),this.local$_stmt.setInt_vux9f0$(4,this.local$closure$role),this.local$_stmt.setLong_6svq3l$(5,this.local$closure$timeFilter),this.local$_stmt.setLong_6svq3l$(6,this.local$closure$timeFilter),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,qX);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},OX.prototype.findBySchoolAndPersonAndRole_6qtc6d$$default=function(t,e,n,i,o){return ct(this._db,new st(S("\n |\n | SELECT * FROM SchoolMember WHERE schoolMemberSchoolUid = ?\n | AND schoolMemberPersonUid = ?\n | AND (? = 0 OR schoolMemberRole = ?)\n | AND (? = 0 OR ? BETWEEN SchoolMember.schoolMemberJoinDate AND SchoolMember.schoolMemberLeftDate) \n | AND CAST(schoolMemberActive AS INTEGER) = 1\n | \n ")),(r=t,s=e,a=n,c=i,function(t,e,n){var i=new FX(r,s,a,c,t,e);return n?i:i.doResume(null)}),o);var r,s,a,c},HX.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},HX.prototype=Object.create(N.prototype),HX.prototype.constructor=HX,HX.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$accountPersonUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$schoolUid),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$role),this.local$_stmt.setString_vqvrqt$(4,this.local$closure$searchQuery),this.local$_stmt.setInt_vux9f0$(5,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(6,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(7,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(8,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,WX);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},KX.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},KX.prototype=Object.create(N.prototype),KX.prototype.constructor=KX,KX.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$SchoolMemberDao_JdbcKt._db,new st(S("\n |SELECT * FROM (\n | SELECT SchoolMember.*, Person.*\n | FROM PersonGroupMember\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | 64 \n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | LEFT JOIN SchoolMember ON Person.personUid = SchoolMember.schoolMemberPersonUid \n | WHERE PersonGroupMember.groupMemberPersonUid = ? \n | AND PersonGroupMember.groupMemberActive \n | AND SchoolMember.schoolMemberActive\n | AND SchoolMember.schoolMemberSchoolUid = ? \n | AND SchoolMember.schoolMemberRole = ?\n | AND Person.active\n | AND (Person.firstNames || ' ' || Person.lastName) LIKE ?\n | GROUP BY Person.personUid, SchoolMember.schoolMemberUid\n | ORDER BY CASE(?)\n | WHEN 1 THEN Person.firstNames\n | WHEN 3 THEN Person.lastName\n | ELSE ''\n | END ASC,\n | CASE(?)\n | WHEN 2 THEN Person.firstNames\n | WHEN 4 THEN Person.lastName\n | ELSE ''\n | END DESC\n | ) LIMIT ? OFFSET ?\n ")),VX(this.local$closure$accountPersonUid,this.local$closure$schoolUid,this.local$closure$role,this.local$closure$searchQuery,this.local$closure$sortOrder,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},BX.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$SchoolMemberDao_JdbcKt._db,p(["PersonGroupMember","ScopedGrant","Person","SchoolMember"]),(n=this.this$SchoolMemberDao_JdbcKt,i=this.closure$accountPersonUid,o=this.closure$schoolUid,r=this.closure$role,s=this.closure$searchQuery,a=this.closure$sortOrder,c=e,l=t,function(t,e){var u=new KX(n,i,o,r,s,a,c,l,t);return e?u:u.doResume(null)}));var n,i,o,r,s,a,c,l},JX.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},JX.prototype=Object.create(N.prototype),JX.prototype.constructor=JX,JX.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$accountPersonUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$schoolUid),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$role),this.local$_stmt.setString_vqvrqt$(4,this.local$closure$searchQuery),this.local$_stmt.setInt_vux9f0$(5,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(6,this.local$closure$sortOrder),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,XX);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},QX.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},QX.prototype=Object.create(N.prototype),QX.prototype.constructor=QX,QX.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$SchoolMemberDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (\n | SELECT SchoolMember.*, Person.*\n | FROM PersonGroupMember\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | 64 \n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | LEFT JOIN SchoolMember ON Person.personUid = SchoolMember.schoolMemberPersonUid \n | WHERE PersonGroupMember.groupMemberPersonUid = ? \n | AND PersonGroupMember.groupMemberActive \n | AND SchoolMember.schoolMemberActive\n | AND SchoolMember.schoolMemberSchoolUid = ? \n | AND SchoolMember.schoolMemberRole = ?\n | AND Person.active\n | AND (Person.firstNames || ' ' || Person.lastName) LIKE ?\n | GROUP BY Person.personUid, SchoolMember.schoolMemberUid\n | ORDER BY CASE(?)\n | WHEN 1 THEN Person.firstNames\n | WHEN 3 THEN Person.lastName\n | ELSE ''\n | END ASC,\n | CASE(?)\n | WHEN 2 THEN Person.firstNames\n | WHEN 4 THEN Person.lastName\n | ELSE ''\n | END DESC\n | ) \n ")),YX(this.local$closure$accountPersonUid,this.local$closure$schoolUid,this.local$closure$role,this.local$closure$searchQuery,this.local$closure$sortOrder),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},BX.prototype.getLength=function(){return new ft(this.this$SchoolMemberDao_JdbcKt._db,p(["PersonGroupMember","ScopedGrant","Person","SchoolMember"]),(t=this.this$SchoolMemberDao_JdbcKt,e=this.closure$accountPersonUid,n=this.closure$schoolUid,i=this.closure$role,o=this.closure$searchQuery,r=this.closure$sortOrder,function(s,a){var c=new QX(t,e,n,i,o,r,s);return a?c:c.doResume(null)}));var t,e,n,i,o,r},BX.$metadata$={kind:c,interfaces:[gt]},OX.prototype.findAllActiveMembersBySchoolAndRoleUid_de0qyg$=function(t,e,n,i,o){return new BX(this,o,t,e,i,n)},tJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},tJ.prototype=Object.create(N.prototype),tJ.prototype.constructor=tJ,tJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$schoolUid),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$role),this.local$_stmt.setString_vqvrqt$(3,this.local$closure$searchQuery),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,ZX);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},OX.prototype.findAllTest_jnr38p$=function(t,e,n,i){return ct(this._db,new st(S("\n |SELECT SchoolMember.*, Person.* FROM SchoolMember\n | LEFT JOIN Person ON Person.personUid = SchoolMember.schoolMemberPersonUid\n | WHERE CAST(SchoolMember.schoolMemberActive AS INTEGER) = 1\n | AND SchoolMember.schoolMemberSchoolUid = ? \n | AND SchoolMember.schoolMemberRole = ?\n | AND CAST(Person.active AS INTEGER) = 1\n | AND (Person.firstNames || ' ' || Person.lastName) LIKE ?\n | ORDER BY Person.firstNames DESC\n ")),(o=t,r=e,s=n,function(t,e,n){var i=new tJ(o,r,s,t,e);return n?i:i.doResume(null)}),i);var o,r,s},eJ.prototype.makeSql_6taknv$=function(t){return"INSERT INTO SchoolMember (schoolMemberUid, schoolMemberPersonUid, schoolMemberSchoolUid, schoolMemberJoinDate, schoolMemberLeftDate, schoolMemberRole, schoolMemberActive, schoolMemberLocalChangeSeqNum, schoolMemberMasterChangeSeqNum, schoolMemberLastChangedBy, schoolMemberLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},eJ.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.schoolMemberUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.schoolMemberUid),t.setLong_6svq3l$(2,e.schoolMemberPersonUid),t.setLong_6svq3l$(3,e.schoolMemberSchoolUid),t.setLong_6svq3l$(4,e.schoolMemberJoinDate),t.setLong_6svq3l$(5,e.schoolMemberLeftDate),t.setInt_vux9f0$(6,e.schoolMemberRole),t.setBoolean_fzusl$(7,e.schoolMemberActive),t.setLong_6svq3l$(8,e.schoolMemberLocalChangeSeqNum),t.setLong_6svq3l$(9,e.schoolMemberMasterChangeSeqNum),t.setInt_vux9f0$(10,e.schoolMemberLastChangedBy),t.setLong_6svq3l$(11,e.schoolMemberLct)},eJ.$metadata$={kind:c,interfaces:[pt]},OX.$metadata$={kind:c,simpleName:"SchoolMemberDao_JdbcKt",interfaces:[wX]},iJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},iJ.prototype=Object.create(N.prototype),iJ.prototype.constructor=iJ,iJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},nJ.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new iJ(this,t,e);return n?i:i.doResume(null)},oJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},oJ.prototype=Object.create(N.prototype),oJ.prototype.constructor=oJ,oJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},nJ.prototype.replicateOnChange=function(t,e){var n=new oJ(this,t);return e?n:n.doResume(null)},nJ.prototype.findByUidAsync_s8cxhz$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},nJ.prototype.updateAsync_nzwwdw$=function(t,e){return t.schoolMemberLct=J(),this._dao_0.updateAsync_nzwwdw$(t,e)},nJ.prototype.findBySchoolAndPersonAndRole_6qtc6d$$default=function(t,e,n,i,o){return this._dao_0.findBySchoolAndPersonAndRole_6qtc6d$(t,e,n,i,o)},nJ.prototype.findAllActiveMembersBySchoolAndRoleUid_de0qyg$=function(t,e,n,i,o){return this._dao_0.findAllActiveMembersBySchoolAndRoleUid_de0qyg$(t,e,n,i,o)},nJ.prototype.findAllTest_jnr38p$=function(t,e,n,i){return this._dao_0.findAllTest_jnr38p$(t,e,n,i)},nJ.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},rJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},rJ.prototype=Object.create(N.prototype),rJ.prototype.constructor=rJ,rJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.schoolMemberUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(200,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.schoolMemberUid=e,this.state_0=3;continue;case 3:if(this.local$entity.schoolMemberLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.schoolMemberUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},nJ.prototype.insertAsync=function(t,e,n){var i=new rJ(this,t,e);return n?i:i.doResume(null)},nJ.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},nJ.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},nJ.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},nJ.$metadata$={kind:c,simpleName:"SchoolMemberDao_ReplicateWrapper",interfaces:[wX]},aJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},aJ.prototype=Object.create(N.prototype),aJ.prototype.constructor=aJ,aJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},sJ.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new aJ(this,t,e);return n?i:i.doResume(null)},cJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},cJ.prototype=Object.create(N.prototype),cJ.prototype.constructor=cJ,cJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},sJ.prototype.replicateOnChange=function(t,e){var n=new cJ(this,t);return e?n:n.doResume(null)},sJ.prototype.findByUidAsync_s8cxhz$=function(t){return this._dao.findByUidAsync_s8cxhz$(t)},lJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},lJ.prototype=Object.create(N.prototype),lJ.prototype.constructor=lJ,lJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateAsync_nzwwdw$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},sJ.prototype.updateAsync_nzwwdw$=function(t,e,n){var i=new lJ(this,t,e);return n?i:i.doResume(null)},uJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},uJ.prototype=Object.create(N.prototype),uJ.prototype.constructor=uJ,uJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findBySchoolAndPersonAndRole_6qtc6d$(this.local$schoolUid,this.local$personUid,this.local$role,this.local$timeFilter,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},sJ.prototype.findBySchoolAndPersonAndRole_6qtc6d$$default=function(t,e,n,i,o,r){var s=new uJ(this,t,e,n,i,o);return r?s:s.doResume(null)},sJ.prototype.findAllActiveMembersBySchoolAndRoleUid_de0qyg$=function(t,e,n,i,o){return this._dao.findAllActiveMembersBySchoolAndRoleUid_de0qyg$(t,e,n,i,o)},hJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},hJ.prototype=Object.create(N.prototype),hJ.prototype.constructor=hJ,hJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findAllTest_jnr38p$(this.local$schoolUid,this.local$role,this.local$searchQuery,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},sJ.prototype.findAllTest_jnr38p$=function(t,e,n,i,o){var r=new hJ(this,t,e,n,i);return o?r:r.doResume(null)},sJ.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},dJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},dJ.prototype=Object.create(N.prototype),dJ.prototype.constructor=dJ,dJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},sJ.prototype.insertAsync=function(t,e,n){var i=new dJ(this,t,e);return n?i:i.doResume(null)},sJ.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},sJ.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},sJ.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},sJ.$metadata$={kind:c,simpleName:"SchoolMemberDao_Repo",interfaces:[wX]},pJ.$metadata$={kind:c,simpleName:"ScopedGrantDao",interfaces:[]},mJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},mJ.prototype=Object.create(N.prototype),mJ.prototype.constructor=mJ,mJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterScopedGrant_.insertAndReturnIdAsync_11rb$(this.local$scopedGrant,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_J.prototype.insertAsync_y0tj3a$=function(t,e,n){var i=new mJ(this,t,e);return n?i:i.doResume(null)},fJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fJ.prototype=Object.create(N.prototype),fJ.prototype.constructor=fJ,fJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterScopedGrant_.insertListAsync_4ezy5m$(this.local$scopedGrantList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_J.prototype.insertListAsync_djn83v$=function(t,e,n){var i=new fJ(this,t,e);return n?i:i.doResume(null)},gJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},gJ.prototype=Object.create(N.prototype),gJ.prototype.constructor=gJ,gJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$scopedGrant.sgPcsn),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$scopedGrant.sgLcsn),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$scopedGrant.sgLcb),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$scopedGrant.sgLct),this.local$_stmt.setInt_vux9f0$(5,this.local$closure$scopedGrant.sgTableId),this.local$_stmt.setLong_6svq3l$(6,this.local$closure$scopedGrant.sgEntityUid),this.local$_stmt.setLong_6svq3l$(7,this.local$closure$scopedGrant.sgPermissions),this.local$_stmt.setLong_6svq3l$(8,this.local$closure$scopedGrant.sgGroupUid),this.local$_stmt.setInt_vux9f0$(9,this.local$closure$scopedGrant.sgIndex),this.local$_stmt.setInt_vux9f0$(10,this.local$closure$scopedGrant.sgFlags),this.local$_stmt.setLong_6svq3l$(11,this.local$closure$scopedGrant.sgUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},EJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},EJ.prototype=Object.create(N.prototype),EJ.prototype.constructor=EJ,EJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE ScopedGrant SET sgPcsn = ?, sgLcsn = ?, sgLcb = ?, sgLct = ?, sgTableId = ?, sgEntityUid = ?, sgPermissions = ?, sgGroupUid = ?, sgIndex = ?, sgFlags = ? WHERE sgUid = ?",$J(this.local$scopedGrant),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_J.prototype.updateAsync_y0tj3a$=function(t,e,n){var i=new EJ(this,t,e);return n?i:i.doResume(null)},yJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},yJ.prototype=Object.create(N.prototype),yJ.prototype.constructor=yJ,yJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_stmt.getConnection().setAutoCommit_6taknv$(!1),this.local$tmp$=this.local$closure$scopedGrantList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$tmp$.hasNext()){this.state_0=4;continue}var t=this.local$tmp$.next();if(this.local$_stmt.setLong_6svq3l$(1,t.sgPcsn),this.local$_stmt.setLong_6svq3l$(2,t.sgLcsn),this.local$_stmt.setInt_vux9f0$(3,t.sgLcb),this.local$_stmt.setLong_6svq3l$(4,t.sgLct),this.local$_stmt.setInt_vux9f0$(5,t.sgTableId),this.local$_stmt.setLong_6svq3l$(6,t.sgEntityUid),this.local$_stmt.setLong_6svq3l$(7,t.sgPermissions),this.local$_stmt.setLong_6svq3l$(8,t.sgGroupUid),this.local$_stmt.setInt_vux9f0$(9,t.sgIndex),this.local$_stmt.setInt_vux9f0$(10,t.sgFlags),this.local$_stmt.setLong_6svq3l$(11,t.sgUid),this.state_0=3,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 3:this.state_0=2;continue;case 4:return this.local$_stmt.getConnection().commit(),V;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},SJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},SJ.prototype=Object.create(N.prototype),SJ.prototype.constructor=SJ,SJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE ScopedGrant SET sgPcsn = ?, sgLcsn = ?, sgLcb = ?, sgLct = ?, sgTableId = ?, sgEntityUid = ?, sgPermissions = ?, sgGroupUid = ?, sgIndex = ?, sgFlags = ? WHERE sgUid = ?",bJ(this.local$scopedGrantList),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_J.prototype.updateListAsync_djn83v$=function(t,e,n){var i=new SJ(this,t,e);return n?i:i.doResume(null)},vJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},vJ.prototype=Object.create(N.prototype),vJ.prototype.constructor=vJ,vJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},NJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},NJ.prototype=Object.create(N.prototype),NJ.prototype.constructor=NJ,NJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ScopedGrantReplicate(sgPk, sgDestination)\n | SELECT DISTINCT ScopedGrantWithPerm.sgUid AS sgPk,\n | ? AS sgDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | 64\n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | JOIN PersonGroupMember PersonsWithPerm_GroupMember\n | ON PersonsWithPerm_GroupMember.groupMemberPersonUid = Person.personUid\n | JOIN ScopedGrant ScopedGrantWithPerm\n | ON PersonsWithPerm_GroupMember.groupMemberGroupUid = ScopedGrantWithPerm.sgGroupUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND ScopedGrantWithPerm.sgLct != COALESCE(\n | (SELECT sgVersionId\n | FROM ScopedGrantReplicate\n | WHERE sgPk = ScopedGrantWithPerm.sgUid\n | AND sgDestination = ?), 0) \n | /*psql ON CONFLICT(sgPk, sgDestination) DO UPDATE\n | SET sgPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ScopedGrantReplicate(sgPk, sgDestination)\n | SELECT DISTINCT ScopedGrantWithPerm.sgUid AS sgPk,\n | ? AS sgDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | 64\n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | JOIN PersonGroupMember PersonsWithPerm_GroupMember\n | ON PersonsWithPerm_GroupMember.groupMemberPersonUid = Person.personUid\n | JOIN ScopedGrant ScopedGrantWithPerm\n | ON PersonsWithPerm_GroupMember.groupMemberGroupUid = ScopedGrantWithPerm.sgGroupUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND ScopedGrantWithPerm.sgLct != COALESCE(\n | (SELECT sgVersionId\n | FROM ScopedGrantReplicate\n | WHERE sgPk = ScopedGrantWithPerm.sgUid\n | AND sgDestination = ?), 0) \n | ON CONFLICT(sgPk, sgDestination) DO UPDATE\n | SET sgPending = true\n | \n | \n |")),CJ(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_J.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new NJ(this,t,e);return n?i:i.doResume(null)},TJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},TJ.prototype=Object.create(N.prototype),TJ.prototype.constructor=TJ,TJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},zJ.prototype=Object.create(N.prototype),zJ.prototype.constructor=zJ,zJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ScopedGrantReplicate(sgPk, sgDestination)\n | SELECT DISTINCT ScopedGrantEntity.sgUid AS sgPk,\n | UserSession.usClientNodeId AS sgDestination\n | FROM ChangeLog\n | JOIN ScopedGrant ScopedGrantEntity\n | ON ChangeLog.chTableId = 48\n | AND ChangeLog.chEntityPk = ScopedGrantEntity.sgUid\n | JOIN PersonGroupMember\n | ON PersonGroupMember.groupMemberGroupUid = ScopedGrantEntity.sgGroupUid\n | JOIN Person\n | ON PersonGroupMember.groupMemberPersonUid = Person.personUid\n | \n | JOIN ScopedGrant \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT clazzEnrolmentClazzUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentPersonUid = Person.personUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT schoolMemberSchoolUid\n | FROM SchoolMember\n | WHERE schoolMemberPersonUid = Person.personUid\n | AND schoolMemberActive))\n | )\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 64\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ScopedGrantEntity.sgLct != COALESCE(\n | (SELECT sgVersionId\n | FROM ScopedGrantReplicate\n | WHERE sgPk = ScopedGrantEntity.sgUid\n | AND sgDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(sgPk, sgDestination) DO UPDATE\n | SET sgPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ScopedGrantReplicate(sgPk, sgDestination)\n | SELECT DISTINCT ScopedGrantEntity.sgUid AS sgPk,\n | UserSession.usClientNodeId AS sgDestination\n | FROM ChangeLog\n | JOIN ScopedGrant ScopedGrantEntity\n | ON ChangeLog.chTableId = 48\n | AND ChangeLog.chEntityPk = ScopedGrantEntity.sgUid\n | JOIN PersonGroupMember\n | ON PersonGroupMember.groupMemberGroupUid = ScopedGrantEntity.sgGroupUid\n | JOIN Person\n | ON PersonGroupMember.groupMemberPersonUid = Person.personUid\n | \n | JOIN ScopedGrant \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT clazzEnrolmentClazzUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentPersonUid = Person.personUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT schoolMemberSchoolUid\n | FROM SchoolMember\n | WHERE schoolMemberPersonUid = Person.personUid\n | AND schoolMemberActive))\n | )\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 64\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ScopedGrantEntity.sgLct != COALESCE(\n | (SELECT sgVersionId\n | FROM ScopedGrantReplicate\n | WHERE sgPk = ScopedGrantEntity.sgUid\n | AND sgDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(sgPk, sgDestination) DO UPDATE\n | SET sgPending = true\n | \n | \n |")),LJ,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_J.prototype.replicateOnChange=function(t,e){var n=new zJ(this,t);return e?n:n.doResume(null)},wJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},wJ.prototype=Object.create(N.prototype),wJ.prototype.constructor=wJ,wJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},RJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},RJ.prototype=Object.create(N.prototype),RJ.prototype.constructor=RJ,RJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ScopedGrantReplicate(sgPk, sgDestination)\n | SELECT DISTINCT ScopedGrantEntity.sgUid AS sgPk,\n | UserSession.usClientNodeId AS sgDestination\n | FROM ChangeLog\n | JOIN ScopedGrant ScopedGrantEntity\n | ON ChangeLog.chTableId = 48\n | AND ChangeLog.chEntityPk = ScopedGrantEntity.sgUid\n | JOIN Clazz \n | ON ScopedGrantEntity.sgTableId = 6\n | AND ScopedGrantEntity.sgEntityUid = Clazz.clazzUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 2\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ScopedGrantEntity.sgLct != COALESCE(\n | (SELECT sgVersionId\n | FROM ScopedGrantReplicate\n | WHERE sgPk = ScopedGrantEntity.sgUid\n | AND sgDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(sgPk, sgDestination) DO UPDATE\n | SET sgPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ScopedGrantReplicate(sgPk, sgDestination)\n | SELECT DISTINCT ScopedGrantEntity.sgUid AS sgPk,\n | UserSession.usClientNodeId AS sgDestination\n | FROM ChangeLog\n | JOIN ScopedGrant ScopedGrantEntity\n | ON ChangeLog.chTableId = 48\n | AND ChangeLog.chEntityPk = ScopedGrantEntity.sgUid\n | JOIN Clazz \n | ON ScopedGrantEntity.sgTableId = 6\n | AND ScopedGrantEntity.sgEntityUid = Clazz.clazzUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 2\n | \n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | \n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ScopedGrantEntity.sgLct != COALESCE(\n | (SELECT sgVersionId\n | FROM ScopedGrantReplicate\n | WHERE sgPk = ScopedGrantEntity.sgUid\n | AND sgDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(sgPk, sgDestination) DO UPDATE\n | SET sgPending = true\n | \n | \n |")),OJ,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_J.prototype.replicateOnChangeClazzBased=function(t,e){var n=new RJ(this,t);return e?n:n.doResume(null)},AJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},AJ.prototype=Object.create(N.prototype),AJ.prototype.constructor=AJ,AJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},IJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},IJ.prototype=Object.create(N.prototype),IJ.prototype.constructor=IJ,IJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ScopedGrantReplicate(sgPk, sgDestination)\n | SELECT DISTINCT ScopedGrantEntity.sgUid AS sgPk,\n | ? AS sgDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 2 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | JOIN ScopedGrant ScopedGrantEntity\n | ON Clazz.clazzUid = ScopedGrantEntity.sgEntityUid\n | AND ScopedGrantEntity.sgTableId = 6\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND ScopedGrantEntity.sgLct != COALESCE(\n | (SELECT sgVersionId\n | FROM ScopedGrantReplicate\n | WHERE sgPk = ScopedGrantEntity.sgUid\n | AND sgDestination = ?), 0) \n | /*psql ON CONFLICT(sgPk, sgDestination) DO UPDATE\n | SET sgPending = true\n | */\n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ScopedGrantReplicate(sgPk, sgDestination)\n | SELECT DISTINCT ScopedGrantEntity.sgUid AS sgPk,\n | ? AS sgDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & \n | \n | 2 \n | \n | ) > 0\n | JOIN Clazz \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n | \n | \n | JOIN ScopedGrant ScopedGrantEntity\n | ON Clazz.clazzUid = ScopedGrantEntity.sgEntityUid\n | AND ScopedGrantEntity.sgTableId = 6\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND ScopedGrantEntity.sgLct != COALESCE(\n | (SELECT sgVersionId\n | FROM ScopedGrantReplicate\n | WHERE sgPk = ScopedGrantEntity.sgUid\n | AND sgDestination = ?), 0) \n | ON CONFLICT(sgPk, sgDestination) DO UPDATE\n | SET sgPending = true\n | \n | \n |")),xJ(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_J.prototype.replicateOnNewNodeClazzBased_s8cxhz$=function(t,e,n){var i=new IJ(this,t,e);return n?i:i.doResume(null)};UJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},UJ.prototype=Object.create(N.prototype),UJ.prototype.constructor=UJ,UJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},PJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},PJ.prototype=Object.create(N.prototype),PJ.prototype.constructor=PJ,PJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ScopedGrantReplicate(sgPk, sgDestination)\n | SELECT DISTINCT ScopedGrantEntity.sgUid AS sgPk,\n | UserSession.usClientNodeId AS sgDestination\n | FROM ChangeLog\n | JOIN ScopedGrant ScopedGrantEntity\n | ON ChangeLog.chTableId = 48\n | AND ChangeLog.chEntityPk = ScopedGrantEntity.sgUid\n | JOIN Person\n | ON ScopedGrantEntity.sgTableId = 9\n | AND ScopedGrantEntity.sgEntityUid = Person.personUid\n | \n | JOIN ScopedGrant \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT clazzEnrolmentClazzUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentPersonUid = Person.personUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT schoolMemberSchoolUid\n | FROM SchoolMember\n | WHERE schoolMemberPersonUid = Person.personUid\n | AND schoolMemberActive))\n | )\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 64\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ScopedGrantEntity.sgLct != COALESCE(\n | (SELECT sgVersionId\n | FROM ScopedGrantReplicate\n | WHERE sgPk = ScopedGrantEntity.sgUid\n | AND sgDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(sgPk, sgDestination) DO UPDATE\n | SET sgPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ScopedGrantReplicate(sgPk, sgDestination)\n | SELECT DISTINCT ScopedGrantEntity.sgUid AS sgPk,\n | UserSession.usClientNodeId AS sgDestination\n | FROM ChangeLog\n | JOIN ScopedGrant ScopedGrantEntity\n | ON ChangeLog.chTableId = 48\n | AND ChangeLog.chEntityPk = ScopedGrantEntity.sgUid\n | JOIN Person\n | ON ScopedGrantEntity.sgTableId = 9\n | AND ScopedGrantEntity.sgEntityUid = Person.personUid\n | \n | JOIN ScopedGrant \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT clazzEnrolmentClazzUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentPersonUid = Person.personUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT schoolMemberSchoolUid\n | FROM SchoolMember\n | WHERE schoolMemberPersonUid = Person.personUid\n | AND schoolMemberActive))\n | )\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 64\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ScopedGrantEntity.sgLct != COALESCE(\n | (SELECT sgVersionId\n | FROM ScopedGrantReplicate\n | WHERE sgPk = ScopedGrantEntity.sgUid\n | AND sgDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(sgPk, sgDestination) DO UPDATE\n | SET sgPending = true\n | \n | \n |")),DJ,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_J.prototype.replicateOnChangePersonBased=function(t,e){var n=new PJ(this,t);return e?n:n.doResume(null)},MJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},MJ.prototype=Object.create(N.prototype),MJ.prototype.constructor=MJ,MJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},jJ.prototype=Object.create(N.prototype),jJ.prototype.constructor=jJ,jJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ScopedGrantReplicate(sgPk, sgDestination)\n | SELECT DISTINCT ScopedGrantEntity.sgUid AS sgPk,\n | ? AS sgDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | 64\n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | JOIN ScopedGrant ScopedGrantEntity\n | ON ScopedGrantEntity.sgTableId = 9\n | AND ScopedGrantEntity.sgEntityUid = Person.personUid \n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1 \n | AND ScopedGrantEntity.sgLct != COALESCE(\n | (SELECT sgVersionId\n | FROM ScopedGrantReplicate\n | WHERE sgPk = ScopedGrantEntity.sgUid\n | AND sgDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(sgPk, sgDestination) DO UPDATE\n | SET sgPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ScopedGrantReplicate(sgPk, sgDestination)\n | SELECT DISTINCT ScopedGrantEntity.sgUid AS sgPk,\n | ? AS sgDestination\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | 64\n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | JOIN ScopedGrant ScopedGrantEntity\n | ON ScopedGrantEntity.sgTableId = 9\n | AND ScopedGrantEntity.sgEntityUid = Person.personUid \n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1 \n | AND ScopedGrantEntity.sgLct != COALESCE(\n | (SELECT sgVersionId\n | FROM ScopedGrantReplicate\n | WHERE sgPk = ScopedGrantEntity.sgUid\n | AND sgDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(sgPk, sgDestination) DO UPDATE\n | SET sgPending = true\n | \n | \n |")),kJ(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_J.prototype.replicateOnNewNodePersonBased_s8cxhz$=function(t,e,n){var i=new jJ(this,t,e);return n?i:i.doResume(null)},GJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},GJ.prototype=Object.create(N.prototype),GJ.prototype.constructor=GJ,GJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},FJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},FJ.prototype=Object.create(N.prototype),FJ.prototype.constructor=FJ,FJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ScopedGrantReplicate(sgPk, sgDestination)\n | SELECT DISTINCT ScopedGrantEntity.sgUid AS sgPk,\n | UserSession.usClientNodeId AS sgDestination\n | FROM ChangeLog\n | JOIN ScopedGrant ScopedGrantEntity\n | ON ChangeLog.chTableId = 48\n | AND ChangeLog.chEntityPk = ScopedGrantEntity.sgUid\n | JOIN School\n | ON ScopedGrantEntity.sgTableId = 164\n | AND ScopedGrantEntity.sgEntityUid = School.schoolUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = School.schoolUid))\n | \n | AND (SCopedGrant.sgPermissions &\n | \n | 536870912\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ScopedGrantEntity.sgLct != COALESCE(\n | (SELECT sgVersionId\n | FROM ScopedGrantReplicate\n | WHERE sgPk = ScopedGrantEntity.sgUid\n | AND sgDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(sgPk, sgDestination) DO UPDATE\n | SET sgPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ScopedGrantReplicate(sgPk, sgDestination)\n | SELECT DISTINCT ScopedGrantEntity.sgUid AS sgPk,\n | UserSession.usClientNodeId AS sgDestination\n | FROM ChangeLog\n | JOIN ScopedGrant ScopedGrantEntity\n | ON ChangeLog.chTableId = 48\n | AND ChangeLog.chEntityPk = ScopedGrantEntity.sgUid\n | JOIN School\n | ON ScopedGrantEntity.sgTableId = 164\n | AND ScopedGrantEntity.sgEntityUid = School.schoolUid\n | \n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = School.schoolUid))\n | \n | AND (SCopedGrant.sgPermissions &\n | \n | 536870912\n | \n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | \n | \n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND ScopedGrantEntity.sgLct != COALESCE(\n | (SELECT sgVersionId\n | FROM ScopedGrantReplicate\n | WHERE sgPk = ScopedGrantEntity.sgUid\n | AND sgDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(sgPk, sgDestination) DO UPDATE\n | SET sgPending = true\n | \n | \n |")),qJ,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_J.prototype.replicateOnChangeSchoolBased=function(t,e){var n=new FJ(this,t);return e?n:n.doResume(null)},BJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},BJ.prototype=Object.create(N.prototype),BJ.prototype.constructor=BJ,BJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},HJ.prototype=Object.create(N.prototype),HJ.prototype.constructor=HJ,HJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO ScopedGrantReplicate(sgPk, sgDestination)\n | SELECT DISTINCT ScopedGrantEntity.sgUid AS sgPk,\n | ? AS sgDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant \n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | \n | \n | 536870912\n | \n | ) > 0\n | JOIN School\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = School.schoolUid))\n | \n | \n | JOIN ScopedGrant ScopedGrantEntity\n | ON ScopedGrantEntity.sgTableId = 164\n | AND ScopedGrantEntity.sgEntityUid = School.schoolUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1 \n | AND ScopedGrantEntity.sgLct != COALESCE(\n | (SELECT sgVersionId\n | FROM ScopedGrantReplicate\n | WHERE sgPk = ScopedGrantEntity.sgUid\n | AND sgDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(sgPk, sgDestination) DO UPDATE\n | SET sgPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO ScopedGrantReplicate(sgPk, sgDestination)\n | SELECT DISTINCT ScopedGrantEntity.sgUid AS sgPk,\n | ? AS sgDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant \n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | \n | \n | 536870912\n | \n | ) > 0\n | JOIN School\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = School.schoolUid))\n | \n | \n | JOIN ScopedGrant ScopedGrantEntity\n | ON ScopedGrantEntity.sgTableId = 164\n | AND ScopedGrantEntity.sgEntityUid = School.schoolUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1 \n | AND ScopedGrantEntity.sgLct != COALESCE(\n | (SELECT sgVersionId\n | FROM ScopedGrantReplicate\n | WHERE sgPk = ScopedGrantEntity.sgUid\n | AND sgDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(sgPk, sgDestination) DO UPDATE\n | SET sgPending = true\n | \n | \n |")),WJ(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_J.prototype.replicateOnNewNodeSchoolBased_s8cxhz$=function(t,e,n){var i=new HJ(this,t,e);return n?i:i.doResume(null)},KJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},KJ.prototype=Object.create(N.prototype),KJ.prototype.constructor=KJ,KJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setInt_vux9f0$(1,this.local$closure$tableId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$entityUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,VJ);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_J.prototype.findByTableIdAndEntityUid_6svq3l$=function(t,e,n){return ct(this._db,new st(S("\n |\n | SELECT ScopedGrant.*,\n | CASE\n | WHEN Person.firstNames IS NOT NULL THEN Person.firstNames\n | ELSE PersonGroup.groupName \n | END AS name\n | FROM ScopedGrant\n | JOIN PersonGroup \n | ON ScopedGrant.sgGroupUid = PersonGroup.groupUid\n | LEFT JOIN Person\n | ON Person.personGroupUid = PersonGroup.groupUid\n | WHERE ScopedGrant.sgTableId = ?\n | AND ScopedGrant.sgEntityUid = ? \n | \n ")),(i=t,o=e,function(t,e,n){var r=new KJ(i,o,t,e);return n?r:r.doResume(null)}),n);var i,o},YJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},YJ.prototype=Object.create(N.prototype),YJ.prototype.constructor=YJ,YJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setInt_vux9f0$(1,this.local$closure$tableId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$entityUid),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(4,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,JJ);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ZJ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ZJ.prototype=Object.create(N.prototype),ZJ.prototype.constructor=ZJ,ZJ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ScopedGrantDao_JdbcKt._db,new st(S("\n |SELECT * FROM (\n | SELECT ScopedGrant.*,\n | CASE\n | WHEN Person.firstNames IS NOT NULL THEN Person.firstNames\n | ELSE PersonGroup.groupName \n | END AS name\n | FROM ScopedGrant\n | JOIN PersonGroup \n | ON ScopedGrant.sgGroupUid = PersonGroup.groupUid\n | LEFT JOIN Person\n | ON Person.personGroupUid = PersonGroup.groupUid\n | WHERE ScopedGrant.sgTableId = ?\n | AND ScopedGrant.sgEntityUid = ? \n | ) LIMIT ? OFFSET ?\n ")),QJ(this.local$closure$tableId,this.local$closure$entityUid,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},XJ.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$ScopedGrantDao_JdbcKt._db,p(["ScopedGrant","PersonGroup","Person"]),(n=this.this$ScopedGrantDao_JdbcKt,i=this.closure$tableId,o=this.closure$entityUid,r=e,s=t,function(t,e){var a=new ZJ(n,i,o,r,s,t);return e?a:a.doResume(null)}));var n,i,o,r,s},eY.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},eY.prototype=Object.create(N.prototype),eY.prototype.constructor=eY,eY.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setInt_vux9f0$(1,this.local$closure$tableId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$entityUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,tY);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},iY.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},iY.prototype=Object.create(N.prototype),iY.prototype.constructor=iY,iY.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ScopedGrantDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (\n | SELECT ScopedGrant.*,\n | CASE\n | WHEN Person.firstNames IS NOT NULL THEN Person.firstNames\n | ELSE PersonGroup.groupName \n | END AS name\n | FROM ScopedGrant\n | JOIN PersonGroup \n | ON ScopedGrant.sgGroupUid = PersonGroup.groupUid\n | LEFT JOIN Person\n | ON Person.personGroupUid = PersonGroup.groupUid\n | WHERE ScopedGrant.sgTableId = ?\n | AND ScopedGrant.sgEntityUid = ? \n | ) \n ")),nY(this.local$closure$tableId,this.local$closure$entityUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},XJ.prototype.getLength=function(){return new ft(this.this$ScopedGrantDao_JdbcKt._db,p(["ScopedGrant","PersonGroup","Person"]),(t=this.this$ScopedGrantDao_JdbcKt,e=this.closure$tableId,n=this.closure$entityUid,function(i,o){var r=new iY(t,e,n,i);return o?r:r.doResume(null)}));var t,e,n},XJ.$metadata$={kind:c,interfaces:[gt]},_J.prototype.findByTableIdAndEntityUidWithNameAsDataSource_6svq3l$=function(t,e){return new XJ(this,t,e)},_J.prototype.findByTableIdAndEntityIdSync_6svq3l$=function(t,e){return ht(this._db,new st(S("\n |\n | SELECT ScopedGrant.*\n | FROM ScopedGrant\n | WHERE sgTableId = ?\n | AND sgEntityUid = ?\n | \n ")),(n=t,i=e,function(t){return t.setInt_vux9f0$(1,n),t.setLong_6svq3l$(2,i),ut(t.executeQuery(),oY)}));var n,i},sY.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},sY.prototype=Object.create(N.prototype),sY.prototype.constructor=sY,sY.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$sgUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,rY);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_J.prototype.findByUid_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT ScopedGrant.*\n | FROM ScopedGrant\n | WHERE sgUid = ? \n | \n ")),(n=t,function(t,e,i){var o=new sY(n,t,e);return i?o:o.doResume(null)}),e);var n},cY.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},cY.prototype=Object.create(N.prototype),cY.prototype.constructor=cY,cY.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$sgUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,aY);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},uY.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},uY.prototype=Object.create(N.prototype),uY.prototype.constructor=uY,uY.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ScopedGrantDao_JdbcKt._db,new st(S("\n |\n | SELECT ScopedGrant.*, \n | CASE\n | WHEN Person.firstNames IS NOT NULL THEN Person.firstNames\n | ELSE PersonGroup.groupName \n | END AS name\n | FROM ScopedGrant\n | LEFT JOIN PersonGroup \n | ON ScopedGrant.sgGroupUid = PersonGroup.groupUid\n | LEFT JOIN Person\n | ON Person.personGroupUid = PersonGroup.groupUid\n | WHERE ScopedGrant.sgUid = ? \n | \n ")),lY(this.local$closure$sgUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_J.prototype.findByUidLiveWithName_s8cxhz$=function(t){return new ft(this._db,p(["ScopedGrant","PersonGroup","Person"]),(e=this,n=t,function(t,i){var o=new uY(e,n,t);return i?o:o.doResume(null)}));var e,n},hY.prototype.makeSql_6taknv$=function(t){return"INSERT INTO ScopedGrant (sgUid, sgPcsn, sgLcsn, sgLcb, sgLct, sgTableId, sgEntityUid, sgPermissions, sgGroupUid, sgIndex, sgFlags) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},hY.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.sgUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.sgUid),t.setLong_6svq3l$(2,e.sgPcsn),t.setLong_6svq3l$(3,e.sgLcsn),t.setInt_vux9f0$(4,e.sgLcb),t.setLong_6svq3l$(5,e.sgLct),t.setInt_vux9f0$(6,e.sgTableId),t.setLong_6svq3l$(7,e.sgEntityUid),t.setLong_6svq3l$(8,e.sgPermissions),t.setLong_6svq3l$(9,e.sgGroupUid),t.setInt_vux9f0$(10,e.sgIndex),t.setInt_vux9f0$(11,e.sgFlags)},hY.$metadata$={kind:c,interfaces:[pt]},_J.$metadata$={kind:c,simpleName:"ScopedGrantDao_JdbcKt",interfaces:[pJ]},pY.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},pY.prototype=Object.create(N.prototype),pY.prototype.constructor=pY,pY.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dY.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new pY(this,t,e);return n?i:i.doResume(null)},_Y.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_Y.prototype=Object.create(N.prototype),_Y.prototype.constructor=_Y,_Y.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dY.prototype.replicateOnChange=function(t,e){var n=new _Y(this,t);return e?n:n.doResume(null)},mY.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},mY.prototype=Object.create(N.prototype),mY.prototype.constructor=mY,mY.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChangeClazzBased(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dY.prototype.replicateOnChangeClazzBased=function(t,e){var n=new mY(this,t);return e?n:n.doResume(null)},fY.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fY.prototype=Object.create(N.prototype),fY.prototype.constructor=fY,fY.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNodeClazzBased_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dY.prototype.replicateOnNewNodeClazzBased_s8cxhz$=function(t,e,n){var i=new fY(this,t,e);return n?i:i.doResume(null)},gY.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},gY.prototype=Object.create(N.prototype),gY.prototype.constructor=gY,gY.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChangePersonBased(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dY.prototype.replicateOnChangePersonBased=function(t,e){var n=new gY(this,t);return e?n:n.doResume(null)},$Y.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},$Y.prototype=Object.create(N.prototype),$Y.prototype.constructor=$Y,$Y.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNodePersonBased_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dY.prototype.replicateOnNewNodePersonBased_s8cxhz$=function(t,e,n){var i=new $Y(this,t,e);return n?i:i.doResume(null)},EY.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},EY.prototype=Object.create(N.prototype),EY.prototype.constructor=EY,EY.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChangeSchoolBased(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dY.prototype.replicateOnChangeSchoolBased=function(t,e){var n=new EY(this,t);return e?n:n.doResume(null)},yY.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},yY.prototype=Object.create(N.prototype),yY.prototype.constructor=yY,yY.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNodeSchoolBased_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dY.prototype.replicateOnNewNodeSchoolBased_s8cxhz$=function(t,e,n){var i=new yY(this,t,e);return n?i:i.doResume(null)},bY.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},bY.prototype=Object.create(N.prototype),bY.prototype.constructor=bY,bY.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$scopedGrant.sgUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(48,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$scopedGrant.sgUid=e,this.state_0=3;continue;case 3:if(this.local$scopedGrant.sgLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync_y0tj3a$(this.local$scopedGrant,this),this.result_0===C)return C;continue;case 4:return this.local$scopedGrant.sgUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dY.prototype.insertAsync_y0tj3a$=function(t,e,n){var i=new bY(this,t,e);return n?i:i.doResume(null)},SY.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},SY.prototype=Object.create(N.prototype),SY.prototype.constructor=SY,SY.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_pkManager=_t(w(this.$this._db_0)),this.local$_generatedPks=F(),this.local$$receiver=this.local$scopedGrantList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$$receiver.hasNext()){this.state_0=5;continue}if(this.local$element=this.local$$receiver.next(),O(this.local$element.sgUid,X)){if(this.state_0=3,this.result_0=this.local$_pkManager.nextIdAsync_za3lpa$(48,this),this.result_0===C)return C;continue}this.state_0=4;continue;case 3:var t=this.result_0;this.local$element.sgUid=t,this.local$_generatedPks.add_11rb$(t),this.state_0=4;continue;case 4:this.local$element.sgLct=J(),this.state_0=2;continue;case 5:if(this.state_0=6,this.result_0=this.$this._dao_0.insertListAsync_djn83v$(this.local$scopedGrantList,this),this.result_0===C)return C;continue;case 6:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dY.prototype.insertListAsync_djn83v$=function(t,e,n){var i=new SY(this,t,e);return n?i:i.doResume(null)},vY.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},vY.prototype=Object.create(N.prototype),vY.prototype.constructor=vY,vY.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$scopedGrant.sgLct=J(),this.state_0=2,this.result_0=this.$this._dao_0.updateAsync_y0tj3a$(this.local$scopedGrant,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dY.prototype.updateAsync_y0tj3a$=function(t,e,n){var i=new vY(this,t,e);return n?i:i.doResume(null)},CY.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},CY.prototype=Object.create(N.prototype),CY.prototype.constructor=CY,CY.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:F();for(var t=this.local$scopedGrantList.iterator();t.hasNext();)t.next().sgLct=J();if(this.state_0=2,this.result_0=this.$this._dao_0.updateListAsync_djn83v$(this.local$scopedGrantList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dY.prototype.updateListAsync_djn83v$=function(t,e,n){var i=new CY(this,t,e);return n?i:i.doResume(null)},dY.prototype.findByTableIdAndEntityUid_6svq3l$=function(t,e,n){return this._dao_0.findByTableIdAndEntityUid_6svq3l$(t,e,n)},dY.prototype.findByTableIdAndEntityUidWithNameAsDataSource_6svq3l$=function(t,e){return this._dao_0.findByTableIdAndEntityUidWithNameAsDataSource_6svq3l$(t,e)},dY.prototype.findByTableIdAndEntityIdSync_6svq3l$=function(t,e){throw v("Synchronous db access is NOT possible on Javascript!")},dY.prototype.findByUid_s8cxhz$=function(t,e){return this._dao_0.findByUid_s8cxhz$(t,e)},dY.prototype.findByUidLiveWithName_s8cxhz$=function(t){return this._dao_0.findByUidLiveWithName_s8cxhz$(t)},dY.$metadata$={kind:c,simpleName:"ScopedGrantDao_ReplicateWrapper",interfaces:[pJ]},TY.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},TY.prototype=Object.create(N.prototype),TY.prototype.constructor=TY,TY.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},NY.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new TY(this,t,e);return n?i:i.doResume(null)},LY.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},LY.prototype=Object.create(N.prototype),LY.prototype.constructor=LY,LY.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},NY.prototype.replicateOnChange=function(t,e){var n=new LY(this,t);return e?n:n.doResume(null)},zY.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},zY.prototype=Object.create(N.prototype),zY.prototype.constructor=zY,zY.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChangeClazzBased(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},NY.prototype.replicateOnChangeClazzBased=function(t,e){var n=new zY(this,t);return e?n:n.doResume(null)},wY.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},wY.prototype=Object.create(N.prototype),wY.prototype.constructor=wY,wY.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNodeClazzBased_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},NY.prototype.replicateOnNewNodeClazzBased_s8cxhz$=function(t,e,n){var i=new wY(this,t,e);return n?i:i.doResume(null)},OY.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},OY.prototype=Object.create(N.prototype),OY.prototype.constructor=OY,OY.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChangePersonBased(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},NY.prototype.replicateOnChangePersonBased=function(t,e){var n=new OY(this,t);return e?n:n.doResume(null)},RY.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},RY.prototype=Object.create(N.prototype),RY.prototype.constructor=RY,RY.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNodePersonBased_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},NY.prototype.replicateOnNewNodePersonBased_s8cxhz$=function(t,e,n){var i=new RY(this,t,e);return n?i:i.doResume(null)},AY.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},AY.prototype=Object.create(N.prototype),AY.prototype.constructor=AY,AY.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChangeSchoolBased(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},NY.prototype.replicateOnChangeSchoolBased=function(t,e){var n=new AY(this,t);return e?n:n.doResume(null)},xY.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},xY.prototype=Object.create(N.prototype),xY.prototype.constructor=xY,xY.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNodeSchoolBased_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},NY.prototype.replicateOnNewNodeSchoolBased_s8cxhz$=function(t,e,n){var i=new xY(this,t,e);return n?i:i.doResume(null)},IY.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},IY.prototype=Object.create(N.prototype),IY.prototype.constructor=IY,IY.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync_y0tj3a$(this.local$scopedGrant,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},NY.prototype.insertAsync_y0tj3a$=function(t,e,n){var i=new IY(this,t,e);return n?i:i.doResume(null)},UY.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},UY.prototype=Object.create(N.prototype),UY.prototype.constructor=UY,UY.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertListAsync_djn83v$(this.local$scopedGrantList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},NY.prototype.insertListAsync_djn83v$=function(t,e,n){var i=new UY(this,t,e);return n?i:i.doResume(null)},DY.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},DY.prototype=Object.create(N.prototype),DY.prototype.constructor=DY,DY.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateAsync_y0tj3a$(this.local$scopedGrant,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},NY.prototype.updateAsync_y0tj3a$=function(t,e,n){var i=new DY(this,t,e);return n?i:i.doResume(null)},PY.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},PY.prototype=Object.create(N.prototype),PY.prototype.constructor=PY,PY.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateListAsync_djn83v$(this.local$scopedGrantList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},NY.prototype.updateListAsync_djn83v$=function(t,e,n){var i=new PY(this,t,e);return n?i:i.doResume(null)},MY.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},MY.prototype=Object.create(N.prototype),MY.prototype.constructor=MY,MY.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByTableIdAndEntityUid_6svq3l$(this.local$tableId,this.local$entityUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},NY.prototype.findByTableIdAndEntityUid_6svq3l$=function(t,e,n,i){var o=new MY(this,t,e,n);return i?o:o.doResume(null)},NY.prototype.findByTableIdAndEntityUidWithNameAsDataSource_6svq3l$=function(t,e){return this._dao.findByTableIdAndEntityUidWithNameAsDataSource_6svq3l$(t,e)},NY.prototype.findByTableIdAndEntityIdSync_6svq3l$=function(t,e){return this._dao.findByTableIdAndEntityIdSync_6svq3l$(t,e)},kY.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},kY.prototype=Object.create(N.prototype),kY.prototype.constructor=kY,kY.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByUid_s8cxhz$(this.local$sgUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},NY.prototype.findByUid_s8cxhz$=function(t,e,n){var i=new kY(this,t,e);return n?i:i.doResume(null)},NY.prototype.findByUidLiveWithName_s8cxhz$=function(t){return this._dao.findByUidLiveWithName_s8cxhz$(t)},NY.$metadata$={kind:c,simpleName:"ScopedGrantDao_Repo",interfaces:[pJ]},jY.$metadata$={kind:c,simpleName:"ScrapeQueueItemDao",interfaces:[X6]},GY.prototype.insert_11rb$=function(t){return this._insertAdapterScrapeQueueItem_.insertAndReturnId_11rb$(t)},qY.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},qY.prototype=Object.create(N.prototype),qY.prototype.constructor=qY,qY.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterScrapeQueueItem_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},GY.prototype.insertAsync=function(t,e,n){var i=new qY(this,t,e);return n?i:i.doResume(null)},GY.prototype.insertList_4ezy5m$=function(t){this._insertAdapterScrapeQueueItem_.insertList_4ezy5m$(t)},GY.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE ScrapeQueueItem SET sqiContentEntryParentUid = ?, sqiContentEntryUid = ?, destDir = ?, scrapeUrl = ?, status = ?, runId = ?, itemType = ?, errorCode = ?, contentType = ?, timeAdded = ?, timeStarted = ?, timeFinished = ?, priority = ?, overrideEntry = ? WHERE sqiUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.sqiContentEntryParentUid),t.setLong_6svq3l$(2,i.sqiContentEntryUid),t.setString_vqvrqt$(3,i.destDir),t.setString_vqvrqt$(4,i.scrapeUrl),t.setInt_vux9f0$(5,i.status),t.setInt_vux9f0$(6,i.runId),t.setInt_vux9f0$(7,i.itemType),t.setInt_vux9f0$(8,i.errorCode),t.setString_vqvrqt$(9,i.contentType),t.setLong_6svq3l$(10,i.timeAdded),t.setLong_6svq3l$(11,i.timeStarted),t.setLong_6svq3l$(12,i.timeFinished),t.setInt_vux9f0$(13,i.priority),t.setBoolean_fzusl$(14,i.overrideEntry),t.setInt_vux9f0$(15,i.sqiUid),t.executeUpdate()}return t.getConnection().commit(),V}))},GY.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE ScrapeQueueItem SET sqiContentEntryParentUid = ?, sqiContentEntryUid = ?, destDir = ?, scrapeUrl = ?, status = ?, runId = ?, itemType = ?, errorCode = ?, contentType = ?, timeAdded = ?, timeStarted = ?, timeFinished = ?, priority = ?, overrideEntry = ? WHERE sqiUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.sqiContentEntryParentUid),t.setLong_6svq3l$(2,e.sqiContentEntryUid),t.setString_vqvrqt$(3,e.destDir),t.setString_vqvrqt$(4,e.scrapeUrl),t.setInt_vux9f0$(5,e.status),t.setInt_vux9f0$(6,e.runId),t.setInt_vux9f0$(7,e.itemType),t.setInt_vux9f0$(8,e.errorCode),t.setString_vqvrqt$(9,e.contentType),t.setLong_6svq3l$(10,e.timeAdded),t.setLong_6svq3l$(11,e.timeStarted),t.setLong_6svq3l$(12,e.timeFinished),t.setInt_vux9f0$(13,e.priority),t.setBoolean_fzusl$(14,e.overrideEntry),t.setInt_vux9f0$(15,e.sqiUid),t.executeUpdate()}))},BY.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},BY.prototype=Object.create(N.prototype),BY.prototype.constructor=BY,BY.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setInt_vux9f0$(1,this.local$closure$itemType),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,FY);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HY.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},HY.prototype=Object.create(N.prototype),HY.prototype.constructor=HY,HY.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$ScrapeQueueItemDao_JdbcKt._db,new st("SELECT * FROM ScrapeQueueItem WHERE status = 1 AND itemType = ? ORDER BY priority ASC LIMIT 10"),WY(this.local$closure$itemType),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},GY.prototype.findNextQueueItems_za3lpa$=function(t){return new ft(this._db,Et("ScrapeQueueItem"),(e=this,n=t,function(t,i){var o=new HY(e,n,t);return i?o:o.doResume(null)}));var e,n},GY.prototype.updateSetStatusById_qt1dr2$=function(t,e,n){var i,o,r;ht(this._db,new st("UPDATE ScrapeQueueItem SET status = ?, errorCode = ? WHERE sqiUid = ?"),(i=e,o=n,r=t,function(t){return t.setInt_vux9f0$(1,i),t.setInt_vux9f0$(2,o),t.setInt_vux9f0$(3,r),t.executeUpdate()}))},GY.prototype.getExistingQueueItem_19mbxw$=function(t,e){return ht(this._db,new st("SELECT * from ScrapeQueueItem WHERE runId = ? AND scrapeUrl = ? LIMIT 1"),(n=t,i=e,function(t){return t.setInt_vux9f0$(1,n),t.setString_vqvrqt$(2,i),ut(t.executeQuery(),VY)}));var n,i},GY.prototype.findExistingQueueItem_6svq3l$=function(t,e){return ht(this._db,new st("SELECT * from ScrapeQueueItem WHERE runId = ? AND sqiContentEntryUid = ? LIMIT 1"),(n=t,i=e,function(t){return t.setInt_vux9f0$(1,n),t.setLong_6svq3l$(2,i),ut(t.executeQuery(),KY)}));var n,i},GY.prototype.setTimeStarted_6svq3l$=function(t,e){var n,i;ht(this._db,new st("UPDATE ScrapeQueueItem SET timeStarted = ? WHERE sqiUid = ?"),(n=e,i=t,function(t){return t.setLong_6svq3l$(1,n),t.setInt_vux9f0$(2,i),t.executeUpdate()}))},GY.prototype.setTimeFinished_6svq3l$=function(t,e){var n,i;ht(this._db,new st("UPDATE ScrapeQueueItem SET timeFinished = ? WHERE sqiUid = ?"),(n=e,i=t,function(t){return t.setLong_6svq3l$(1,n),t.setInt_vux9f0$(2,i),t.executeUpdate()}))},GY.prototype.findByUid_za3lpa$=function(t){return ht(this._db,new st(S("\n |SELECT ScrapeQueueItem.*, ScrapeRun.* FROM ScrapeQueueItem \n | LEFT JOIN ScrapeRun ON ScrapeQueueItem.runId = ScrapeRun.scrapeRunUid\n | WHERE ScrapeQueueItem.sqiUid = ?\n ")),(e=t,function(t){return t.setInt_vux9f0$(1,e),ut(t.executeQuery(),XY)}));var e},JY.prototype.makeSql_6taknv$=function(t){return"INSERT INTO ScrapeQueueItem (sqiUid, sqiContentEntryParentUid, sqiContentEntryUid, destDir, scrapeUrl, status, runId, itemType, errorCode, contentType, timeAdded, timeStarted, timeFinished, priority, overrideEntry) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},JY.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){0===e.sqiUid?t.setObject_6t2rgq$(1,null):t.setInt_vux9f0$(1,e.sqiUid),t.setLong_6svq3l$(2,e.sqiContentEntryParentUid),t.setLong_6svq3l$(3,e.sqiContentEntryUid),t.setString_vqvrqt$(4,e.destDir),t.setString_vqvrqt$(5,e.scrapeUrl),t.setInt_vux9f0$(6,e.status),t.setInt_vux9f0$(7,e.runId),t.setInt_vux9f0$(8,e.itemType),t.setInt_vux9f0$(9,e.errorCode),t.setString_vqvrqt$(10,e.contentType),t.setLong_6svq3l$(11,e.timeAdded),t.setLong_6svq3l$(12,e.timeStarted),t.setLong_6svq3l$(13,e.timeFinished),t.setInt_vux9f0$(14,e.priority),t.setBoolean_fzusl$(15,e.overrideEntry)},JY.$metadata$={kind:c,interfaces:[pt]},GY.$metadata$={kind:c,simpleName:"ScrapeQueueItemDao_JdbcKt",interfaces:[jY]},YY.$metadata$={kind:c,simpleName:"SiteDao",interfaces:[]},ZY.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ZY.prototype=Object.create(N.prototype),ZY.prototype.constructor=ZY,ZY.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterSite_upsert.insertAndReturnIdAsync_11rb$(this.local$site,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},QY.prototype.replaceAsync_5rubkd$=function(t,e,n){var i=new ZY(this,t,e);return n?i:i.doResume(null)},QY.prototype.insert_5rubkd$=function(t){return this._insertAdapterSite_.insertAndReturnId_11rb$(t)},tQ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},tQ.prototype=Object.create(N.prototype),tQ.prototype.constructor=tQ,tQ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$workspace.sitePcsn),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$workspace.siteLcsn),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$workspace.siteLcb),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$workspace.siteLct),this.local$_stmt.setString_vqvrqt$(5,this.local$closure$workspace.siteName),this.local$_stmt.setBoolean_fzusl$(6,this.local$closure$workspace.guestLogin),this.local$_stmt.setBoolean_fzusl$(7,this.local$closure$workspace.registrationAllowed),this.local$_stmt.setString_vqvrqt$(8,this.local$closure$workspace.authSalt),this.local$_stmt.setLong_6svq3l$(9,this.local$closure$workspace.siteUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},nQ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},nQ.prototype=Object.create(N.prototype),nQ.prototype.constructor=nQ,nQ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE Site SET sitePcsn = ?, siteLcsn = ?, siteLcb = ?, siteLct = ?, siteName = ?, guestLogin = ?, registrationAllowed = ?, authSalt = ? WHERE siteUid = ?",eQ(this.local$workspace),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},QY.prototype.updateAsync_5rubkd$=function(t,e,n){var i=new nQ(this,t,e);return n?i:i.doResume(null)},QY.prototype.getSite=function(){return ht(this._db,new st("SELECT * FROM Site LIMIT 1"),oQ)},sQ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},sQ.prototype=Object.create(N.prototype),sQ.prototype.constructor=sQ,sQ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,rQ);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},QY.prototype.getSiteAsync=function(t){return ct(this._db,new st("SELECT * FROM Site LIMIT 1"),aQ,t)},lQ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},lQ.prototype=Object.create(N.prototype),lQ.prototype.constructor=lQ,lQ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,cQ);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},QY.prototype.getSiteAuthSaltAsync=function(t){return ct(this._db,new st("SELECT authSalt FROM Site LIMIT 1"),uQ,t)},hQ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},hQ.prototype=Object.create(N.prototype),hQ.prototype.constructor=hQ,hQ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},pQ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},pQ.prototype=Object.create(N.prototype),pQ.prototype.constructor=pQ,pQ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO SiteReplicate(sitePk, siteDestination)\n | SELECT DISTINCT Site.siteUid AS sitePk,\n | ? AS siteDestination\n | FROM Site\n | WHERE Site.siteLct != COALESCE(\n | (SELECT siteVersionId\n | FROM SiteReplicate\n | WHERE sitePk = Site.siteUid\n | AND siteDestination = ?), 0) \n | /*psql ON CONFLICT(sitePk, siteDestination) DO UPDATE\n | SET sitePending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO SiteReplicate(sitePk, siteDestination)\n | SELECT DISTINCT Site.siteUid AS sitePk,\n | ? AS siteDestination\n | FROM Site\n | WHERE Site.siteLct != COALESCE(\n | (SELECT siteVersionId\n | FROM SiteReplicate\n | WHERE sitePk = Site.siteUid\n | AND siteDestination = ?), 0) \n | ON CONFLICT(sitePk, siteDestination) DO UPDATE\n | SET sitePending = true\n | \n | \n |")),dQ(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},QY.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new pQ(this,t,e);return n?i:i.doResume(null)},_Q.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_Q.prototype=Object.create(N.prototype),_Q.prototype.constructor=_Q,_Q.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},fQ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fQ.prototype=Object.create(N.prototype),fQ.prototype.constructor=fQ,fQ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO SiteReplicate(sitePk, siteDestination)\n | SELECT DISTINCT Site.siteUid AS sitePk,\n | UserSession.usClientNodeId AS siteDestination\n | FROM ChangeLog\n | JOIN Site \n | ON ChangeLog.chTableId = 189 \n | AND ChangeLog.chEntityPk = Site.siteUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND Site.siteLct != COALESCE(\n | (SELECT siteVersionId\n | FROM SiteReplicate\n | WHERE sitePk = Site.siteUid\n | AND siteDestination = UserSession.usClientNodeId), 0) \n | /*psql ON CONFLICT(sitePk, siteDestination) DO UPDATE\n | SET sitePending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO SiteReplicate(sitePk, siteDestination)\n | SELECT DISTINCT Site.siteUid AS sitePk,\n | UserSession.usClientNodeId AS siteDestination\n | FROM ChangeLog\n | JOIN Site \n | ON ChangeLog.chTableId = 189 \n | AND ChangeLog.chEntityPk = Site.siteUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND Site.siteLct != COALESCE(\n | (SELECT siteVersionId\n | FROM SiteReplicate\n | WHERE sitePk = Site.siteUid\n | AND siteDestination = UserSession.usClientNodeId), 0) \n | ON CONFLICT(sitePk, siteDestination) DO UPDATE\n | SET sitePending = true\n | \n | \n |")),mQ,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},QY.prototype.replicateOnChange=function(t,e){var n=new fQ(this,t);return e?n:n.doResume(null)},gQ.prototype.makeSql_6taknv$=function(t){return"INSERT OR REPLACE INTO Site (siteUid, sitePcsn, siteLcsn, siteLcb, siteLct, siteName, guestLogin, registrationAllowed, authSalt) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)"},gQ.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.siteUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.siteUid),t.setLong_6svq3l$(2,e.sitePcsn),t.setLong_6svq3l$(3,e.siteLcsn),t.setInt_vux9f0$(4,e.siteLcb),t.setLong_6svq3l$(5,e.siteLct),t.setString_vqvrqt$(6,e.siteName),t.setBoolean_fzusl$(7,e.guestLogin),t.setBoolean_fzusl$(8,e.registrationAllowed),t.setString_vqvrqt$(9,e.authSalt)},gQ.$metadata$={kind:c,interfaces:[pt]},$Q.prototype.makeSql_6taknv$=function(t){return"INSERT INTO Site (siteUid, sitePcsn, siteLcsn, siteLcb, siteLct, siteName, guestLogin, registrationAllowed, authSalt) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)"},$Q.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.siteUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.siteUid),t.setLong_6svq3l$(2,e.sitePcsn),t.setLong_6svq3l$(3,e.siteLcsn),t.setInt_vux9f0$(4,e.siteLcb),t.setLong_6svq3l$(5,e.siteLct),t.setString_vqvrqt$(6,e.siteName),t.setBoolean_fzusl$(7,e.guestLogin),t.setBoolean_fzusl$(8,e.registrationAllowed),t.setString_vqvrqt$(9,e.authSalt)},$Q.$metadata$={kind:c,interfaces:[pt]},QY.$metadata$={kind:c,simpleName:"SiteDao_JdbcKt",interfaces:[YY]},EQ.prototype.getSite=function(){throw v("Synchronous db access is NOT possible on Javascript!")},EQ.prototype.getSiteAsync=function(t){return this._dao_0.getSiteAsync(t)},EQ.prototype.getSiteAuthSaltAsync=function(t){return this._dao_0.getSiteAuthSaltAsync(t)},yQ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},yQ.prototype=Object.create(N.prototype),yQ.prototype.constructor=yQ,yQ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$site.siteUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(189,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$site.siteUid=e,this.state_0=3;continue;case 3:if(this.local$site.siteLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.replaceAsync_5rubkd$(this.local$site,this),this.result_0===C)return C;continue;case 4:return this.local$site.siteUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},EQ.prototype.replaceAsync_5rubkd$=function(t,e,n){var i=new yQ(this,t,e);return n?i:i.doResume(null)},EQ.prototype.insert_5rubkd$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},bQ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},bQ.prototype=Object.create(N.prototype),bQ.prototype.constructor=bQ,bQ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$workspace.siteLct=J(),this.state_0=2,this.result_0=this.$this._dao_0.updateAsync_5rubkd$(this.local$workspace,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},EQ.prototype.updateAsync_5rubkd$=function(t,e,n){var i=new bQ(this,t,e);return n?i:i.doResume(null)},SQ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},SQ.prototype=Object.create(N.prototype),SQ.prototype.constructor=SQ,SQ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},EQ.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new SQ(this,t,e);return n?i:i.doResume(null)},vQ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},vQ.prototype=Object.create(N.prototype),vQ.prototype.constructor=vQ,vQ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},EQ.prototype.replicateOnChange=function(t,e){var n=new vQ(this,t);return e?n:n.doResume(null)},EQ.$metadata$={kind:c,simpleName:"SiteDao_ReplicateWrapper",interfaces:[YY]},CQ.prototype.getSite=function(){return this._dao.getSite()},NQ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},NQ.prototype=Object.create(N.prototype),NQ.prototype.constructor=NQ,NQ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.getSiteAsync(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},CQ.prototype.getSiteAsync=function(t,e){var n=new NQ(this,t);return e?n:n.doResume(null)},TQ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},TQ.prototype=Object.create(N.prototype),TQ.prototype.constructor=TQ,TQ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.getSiteAuthSaltAsync(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},CQ.prototype.getSiteAuthSaltAsync=function(t,e){var n=new TQ(this,t);return e?n:n.doResume(null)},LQ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},LQ.prototype=Object.create(N.prototype),LQ.prototype.constructor=LQ,LQ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replaceAsync_5rubkd$(this.local$site,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},CQ.prototype.replaceAsync_5rubkd$=function(t,e,n){var i=new LQ(this,t,e);return n?i:i.doResume(null)},CQ.prototype.insert_5rubkd$=function(t){return this._dao.insert_5rubkd$(t)},zQ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},zQ.prototype=Object.create(N.prototype),zQ.prototype.constructor=zQ,zQ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateAsync_5rubkd$(this.local$workspace,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},CQ.prototype.updateAsync_5rubkd$=function(t,e,n){var i=new zQ(this,t,e);return n?i:i.doResume(null)},wQ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},wQ.prototype=Object.create(N.prototype),wQ.prototype.constructor=wQ,wQ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},CQ.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new wQ(this,t,e);return n?i:i.doResume(null)},OQ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},OQ.prototype=Object.create(N.prototype),OQ.prototype.constructor=OQ,OQ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},CQ.prototype.replicateOnChange=function(t,e){var n=new OQ(this,t);return e?n:n.doResume(null)},CQ.$metadata$={kind:c,simpleName:"SiteDao_Repo",interfaces:[YY]},RQ.$metadata$={kind:c,simpleName:"SiteTermsDao",interfaces:[t4]},xQ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},xQ.prototype=Object.create(N.prototype),xQ.prototype.constructor=xQ,xQ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterSiteTerms_.insertAndReturnIdAsync_11rb$(this.local$siteTerms,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},AQ.prototype.insertAsync_gc516$=function(t,e,n){var i=new xQ(this,t,e);return n?i:i.doResume(null)},IQ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},IQ.prototype=Object.create(N.prototype),IQ.prototype.constructor=IQ,IQ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterSiteTerms_.insertListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},AQ.prototype.insertListAsync_4ezy5m$=function(t,e,n){var i=new IQ(this,t,e);return n?i:i.doResume(null)},UQ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},UQ.prototype=Object.create(N.prototype),UQ.prototype.constructor=UQ,UQ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_stmt.getConnection().setAutoCommit_6taknv$(!1),this.local$tmp$=this.local$closure$entityList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$tmp$.hasNext()){this.state_0=4;continue}var t=this.local$tmp$.next();if(this.local$_stmt.setString_vqvrqt$(1,t.termsHtml),this.local$_stmt.setString_vqvrqt$(2,t.sTermsLang),this.local$_stmt.setLong_6svq3l$(3,t.sTermsLangUid),this.local$_stmt.setBoolean_fzusl$(4,t.sTermsActive),this.local$_stmt.setInt_vux9f0$(5,t.sTermsLastChangedBy),this.local$_stmt.setLong_6svq3l$(6,t.sTermsPrimaryCsn),this.local$_stmt.setLong_6svq3l$(7,t.sTermsLocalCsn),this.local$_stmt.setLong_6svq3l$(8,t.sTermsLct),this.local$_stmt.setLong_6svq3l$(9,t.sTermsUid),this.state_0=3,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 3:this.state_0=2;continue;case 4:return this.local$_stmt.getConnection().commit(),V;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},PQ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},PQ.prototype=Object.create(N.prototype),PQ.prototype.constructor=PQ,PQ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=$t(this.$this._db,"UPDATE SiteTerms SET termsHtml = ?, sTermsLang = ?, sTermsLangUid = ?, sTermsActive = ?, sTermsLastChangedBy = ?, sTermsPrimaryCsn = ?, sTermsLocalCsn = ?, sTermsLct = ? WHERE sTermsUid = ?",DQ(this.local$entityList),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},AQ.prototype.updateListAsync_4ezy5m$=function(t,e,n){var i=new PQ(this,t,e);return n?i:i.doResume(null)},MQ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},MQ.prototype=Object.create(N.prototype),MQ.prototype.constructor=MQ,MQ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jQ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},jQ.prototype=Object.create(N.prototype),jQ.prototype.constructor=jQ,jQ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO SiteTermsReplicate(stPk, stDestination)\n | SELECT DISTINCT SiteTerms.sTermsUid AS stPk,\n | ? AS stDestination\n | FROM SiteTerms\n | WHERE SiteTerms.sTermsLct != COALESCE(\n | (SELECT stVersionId\n | FROM SiteTermsReplicate\n | WHERE stPk = SiteTerms.sTermsUid\n | AND stDestination = ?), 0) \n | /*psql ON CONFLICT(stPk, stDestination) DO UPDATE\n | SET stPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO SiteTermsReplicate(stPk, stDestination)\n | SELECT DISTINCT SiteTerms.sTermsUid AS stPk,\n | ? AS stDestination\n | FROM SiteTerms\n | WHERE SiteTerms.sTermsLct != COALESCE(\n | (SELECT stVersionId\n | FROM SiteTermsReplicate\n | WHERE stPk = SiteTerms.sTermsUid\n | AND stDestination = ?), 0) \n | ON CONFLICT(stPk, stDestination) DO UPDATE\n | SET stPending = true\n | \n | \n |")),kQ(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},AQ.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new jQ(this,t,e);return n?i:i.doResume(null)},GQ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},GQ.prototype=Object.create(N.prototype),GQ.prototype.constructor=GQ,GQ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},FQ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},FQ.prototype=Object.create(N.prototype),FQ.prototype.constructor=FQ,FQ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO SiteTermsReplicate(stPk, stDestination)\n | SELECT DISTINCT SiteTerms.sTermsUid AS stUid,\n | UserSession.usClientNodeId AS stDestination\n | FROM ChangeLog\n | JOIN SiteTerms\n | ON ChangeLog.chTableId = 272\n | AND ChangeLog.chEntityPk = SiteTerms.sTermsUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND SiteTerms.sTermsLct != COALESCE(\n | (SELECT stVersionId\n | FROM SiteTermsReplicate\n | WHERE stPk = SiteTerms.sTermsUid\n | AND stDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(stPk, stDestination) DO UPDATE\n | SET stPending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO SiteTermsReplicate(stPk, stDestination)\n | SELECT DISTINCT SiteTerms.sTermsUid AS stUid,\n | UserSession.usClientNodeId AS stDestination\n | FROM ChangeLog\n | JOIN SiteTerms\n | ON ChangeLog.chTableId = 272\n | AND ChangeLog.chEntityPk = SiteTerms.sTermsUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND SiteTerms.sTermsLct != COALESCE(\n | (SELECT stVersionId\n | FROM SiteTermsReplicate\n | WHERE stPk = SiteTerms.sTermsUid\n | AND stDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(stPk, stDestination) DO UPDATE\n | SET stPending = true\n | \n | \n |")),qQ,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},AQ.prototype.replicateOnChange=function(t,e){var n=new FQ(this,t);return e?n:n.doResume(null)},WQ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},WQ.prototype=Object.create(N.prototype),WQ.prototype.constructor=WQ,WQ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$langCode),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,BQ);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},AQ.prototype.findSiteTerms_61zpoe$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT * FROM SiteTerms WHERE sTermsUid = coalesce(\n | (SELECT sTermsUid FROM SiteTerms st_int WHERE st_int.sTermsLang = ? LIMIT 1),\n | (SELECT sTermsUid FROM SiteTerms st_int WHERE st_int.sTermsLang = 'en' LIMIT 1),\n | 0)\n | \n ")),(n=t,function(t,e,i){var o=new WQ(n,t,e);return i?o:o.doResume(null)}),e);var n},VQ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},VQ.prototype=Object.create(N.prototype),VQ.prototype.constructor=VQ,VQ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$uid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,HQ);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},AQ.prototype.findByUidAsync_s8cxhz$=function(t,e){return ct(this._db,new st("SELECT * FROM SiteTerms WHERE sTermsUid = ?"),(n=t,function(t,e,i){var o=new VQ(n,t,e);return i?o:o.doResume(null)}),e);var n},JQ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},JQ.prototype=Object.create(N.prototype),JQ.prototype.constructor=JQ,JQ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setInt_vux9f0$(1,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,XQ);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},QQ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},QQ.prototype=Object.create(N.prototype),QQ.prototype.constructor=QQ,QQ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$SiteTermsDao_JdbcKt._db,new st(S("\n |SELECT * FROM (SELECT SiteTerms.*, Language.* \n | FROM SiteTerms \n | LEFT JOIN Language ON SiteTerms.sTermsLangUid = Language.langUid\n | WHERE CAST(sTermsActive AS INTEGER) = 1\n | ) LIMIT ? OFFSET ?\n ")),YQ(this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},KQ.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$SiteTermsDao_JdbcKt._db,p(["SiteTerms","Language"]),(n=this.this$SiteTermsDao_JdbcKt,i=e,o=t,function(t,e){var r=new QQ(n,i,o,t);return e?r:r.doResume(null)}));var n,i,o},tZ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},tZ.prototype=Object.create(N.prototype),tZ.prototype.constructor=tZ,tZ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,ZQ);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},nZ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},nZ.prototype=Object.create(N.prototype),nZ.prototype.constructor=nZ,nZ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$SiteTermsDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (SELECT SiteTerms.*, Language.* \n | FROM SiteTerms \n | LEFT JOIN Language ON SiteTerms.sTermsLangUid = Language.langUid\n | WHERE CAST(sTermsActive AS INTEGER) = 1\n | ) \n ")),eZ,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},KQ.prototype.getLength=function(){return new ft(this.this$SiteTermsDao_JdbcKt._db,p(["SiteTerms","Language"]),(t=this.this$SiteTermsDao_JdbcKt,function(e,n){var i=new nZ(t,e);return n?i:i.doResume(null)}));var t},KQ.$metadata$={kind:c,interfaces:[gt]},AQ.prototype.findAllTermsAsFactory=function(){return new KQ(this)},oZ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},oZ.prototype=Object.create(N.prototype),oZ.prototype.constructor=oZ,oZ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,iZ);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},AQ.prototype.findAllWithLanguageAsList=function(t){return ct(this._db,new st(S("\n |SELECT SiteTerms.*, Language.*\n | FROM SiteTerms\n | LEFT JOIN Language ON SiteTerms.sTermsLangUid = Language.langUid\n | WHERE CAST(sTermsActive AS INTEGER) = 1\n | \n ")),rZ,t)},sZ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},sZ.prototype=Object.create(N.prototype),sZ.prototype.constructor=sZ,sZ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setBoolean_fzusl$(1,this.local$closure$active),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$changeTime),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$sTermsUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},cZ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},cZ.prototype=Object.create(N.prototype),cZ.prototype.constructor=cZ,cZ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | UPDATE SiteTerms \n | SET sTermsActive = ?,\n | sTermsLct = ?\n | WHERE sTermsUid = ?\n | \n ")),aZ(this.local$active,this.local$changeTime,this.local$sTermsUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},AQ.prototype.updateActiveByUid_zaz62j$=function(t,e,n,i,o){var r=new cZ(this,t,e,n,i);return o?r:r.doResume(null)},lZ.prototype.makeSql_6taknv$=function(t){return"INSERT INTO SiteTerms (sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)"},lZ.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.sTermsUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.sTermsUid),t.setString_vqvrqt$(2,e.termsHtml),t.setString_vqvrqt$(3,e.sTermsLang),t.setLong_6svq3l$(4,e.sTermsLangUid),t.setBoolean_fzusl$(5,e.sTermsActive),t.setInt_vux9f0$(6,e.sTermsLastChangedBy),t.setLong_6svq3l$(7,e.sTermsPrimaryCsn),t.setLong_6svq3l$(8,e.sTermsLocalCsn),t.setLong_6svq3l$(9,e.sTermsLct)},lZ.$metadata$={kind:c,interfaces:[pt]},AQ.$metadata$={kind:c,simpleName:"SiteTermsDao_JdbcKt",interfaces:[RQ]},hZ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},hZ.prototype=Object.create(N.prototype),hZ.prototype.constructor=hZ,hZ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},uZ.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new hZ(this,t,e);return n?i:i.doResume(null)},dZ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},dZ.prototype=Object.create(N.prototype),dZ.prototype.constructor=dZ,dZ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},uZ.prototype.replicateOnChange=function(t,e){var n=new dZ(this,t);return e?n:n.doResume(null)},uZ.prototype.findSiteTerms_61zpoe$=function(t,e){return this._dao_0.findSiteTerms_61zpoe$(t,e)},pZ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},pZ.prototype=Object.create(N.prototype),pZ.prototype.constructor=pZ,pZ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$siteTerms.sTermsUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(272,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$siteTerms.sTermsUid=e,this.state_0=3;continue;case 3:if(this.local$siteTerms.sTermsLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync_gc516$(this.local$siteTerms,this),this.result_0===C)return C;continue;case 4:return this.local$siteTerms.sTermsUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},uZ.prototype.insertAsync_gc516$=function(t,e,n){var i=new pZ(this,t,e);return n?i:i.doResume(null)},uZ.prototype.findByUidAsync_s8cxhz$=function(t,e){return this._dao_0.findByUidAsync_s8cxhz$(t,e)},uZ.prototype.findAllTermsAsFactory=function(){return this._dao_0.findAllTermsAsFactory()},uZ.prototype.findAllWithLanguageAsList=function(t){return this._dao_0.findAllWithLanguageAsList(t)},_Z.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_Z.prototype=Object.create(N.prototype),_Z.prototype.constructor=_Z,_Z.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.updateActiveByUid_zaz62j$(this.local$sTermsUid,this.local$active,this.local$changeTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},uZ.prototype.updateActiveByUid_zaz62j$=function(t,e,n,i,o){var r=new _Z(this,t,e,n,i);return o?r:r.doResume(null)},mZ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},mZ.prototype=Object.create(N.prototype),mZ.prototype.constructor=mZ,mZ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_pkManager=_t(w(this.$this._db_0)),this.local$_generatedPks=F(),this.local$$receiver=this.local$entityList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$$receiver.hasNext()){this.state_0=5;continue}if(this.local$element=this.local$$receiver.next(),O(this.local$element.sTermsUid,X)){if(this.state_0=3,this.result_0=this.local$_pkManager.nextIdAsync_za3lpa$(272,this),this.result_0===C)return C;continue}this.state_0=4;continue;case 3:var t=this.result_0;this.local$element.sTermsUid=t,this.local$_generatedPks.add_11rb$(t),this.state_0=4;continue;case 4:this.local$element.sTermsLct=J(),this.state_0=2;continue;case 5:if(this.state_0=6,this.result_0=this.$this._dao_0.insertListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 6:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},uZ.prototype.insertListAsync_4ezy5m$=function(t,e,n){var i=new mZ(this,t,e);return n?i:i.doResume(null)},fZ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},fZ.prototype=Object.create(N.prototype),fZ.prototype.constructor=fZ,fZ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:F();for(var t=this.local$entityList.iterator();t.hasNext();)t.next().sTermsLct=J();if(this.state_0=2,this.result_0=this.$this._dao_0.updateListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},uZ.prototype.updateListAsync_4ezy5m$=function(t,e,n){var i=new fZ(this,t,e);return n?i:i.doResume(null)},uZ.$metadata$={kind:c,simpleName:"SiteTermsDao_ReplicateWrapper",interfaces:[RQ]},$Z.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},$Z.prototype=Object.create(N.prototype),$Z.prototype.constructor=$Z,$Z.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},gZ.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new $Z(this,t,e);return n?i:i.doResume(null)},EZ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},EZ.prototype=Object.create(N.prototype),EZ.prototype.constructor=EZ,EZ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},gZ.prototype.replicateOnChange=function(t,e){var n=new EZ(this,t);return e?n:n.doResume(null)},yZ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},yZ.prototype=Object.create(N.prototype),yZ.prototype.constructor=yZ,yZ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findSiteTerms_61zpoe$(this.local$langCode,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},gZ.prototype.findSiteTerms_61zpoe$=function(t,e,n){var i=new yZ(this,t,e);return n?i:i.doResume(null)},bZ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},bZ.prototype=Object.create(N.prototype),bZ.prototype.constructor=bZ,bZ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync_gc516$(this.local$siteTerms,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},gZ.prototype.insertAsync_gc516$=function(t,e,n){var i=new bZ(this,t,e);return n?i:i.doResume(null)},SZ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},SZ.prototype=Object.create(N.prototype),SZ.prototype.constructor=SZ,SZ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByUidAsync_s8cxhz$(this.local$uid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},gZ.prototype.findByUidAsync_s8cxhz$=function(t,e,n){var i=new SZ(this,t,e);return n?i:i.doResume(null)},gZ.prototype.findAllTermsAsFactory=function(){return this._dao.findAllTermsAsFactory()},vZ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},vZ.prototype=Object.create(N.prototype),vZ.prototype.constructor=vZ,vZ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findAllWithLanguageAsList(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},gZ.prototype.findAllWithLanguageAsList=function(t,e){var n=new vZ(this,t);return e?n:n.doResume(null)},CZ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},CZ.prototype=Object.create(N.prototype),CZ.prototype.constructor=CZ,CZ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateActiveByUid_zaz62j$(this.local$sTermsUid,this.local$active,this.local$changeTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},gZ.prototype.updateActiveByUid_zaz62j$=function(t,e,n,i,o){var r=new CZ(this,t,e,n,i);return o?r:r.doResume(null)},NZ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},NZ.prototype=Object.create(N.prototype),NZ.prototype.constructor=NZ,NZ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},gZ.prototype.insertListAsync_4ezy5m$=function(t,e,n){var i=new NZ(this,t,e);return n?i:i.doResume(null)},TZ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},TZ.prototype=Object.create(N.prototype),TZ.prototype.constructor=TZ,TZ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},gZ.prototype.updateListAsync_4ezy5m$=function(t,e,n){var i=new TZ(this,t,e);return n?i:i.doResume(null)},gZ.$metadata$={kind:c,simpleName:"SiteTermsDao_Repo",interfaces:[RQ]},LZ.$metadata$={kind:c,simpleName:"StateContentDao",interfaces:[X6]},zZ.prototype.insert_11rb$=function(t){return this._insertAdapterStateContentEntity_.insertAndReturnId_11rb$(t)},wZ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},wZ.prototype=Object.create(N.prototype),wZ.prototype.constructor=wZ,wZ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterStateContentEntity_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zZ.prototype.insertAsync=function(t,e,n){var i=new wZ(this,t,e);return n?i:i.doResume(null)},zZ.prototype.insertList_4ezy5m$=function(t){this._insertAdapterStateContentEntity_.insertList_4ezy5m$(t)},zZ.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE StateContentEntity SET stateContentStateUid = ?, stateContentKey = ?, stateContentValue = ?, isIsactive = ?, stateContentMasterChangeSeqNum = ?, stateContentLocalChangeSeqNum = ?, stateContentLastChangedBy = ?, stateContentLct = ? WHERE stateContentUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.stateContentStateUid),t.setString_vqvrqt$(2,i.stateContentKey),t.setString_vqvrqt$(3,i.stateContentValue),t.setBoolean_fzusl$(4,i.isIsactive),t.setLong_6svq3l$(5,i.stateContentMasterChangeSeqNum),t.setLong_6svq3l$(6,i.stateContentLocalChangeSeqNum),t.setInt_vux9f0$(7,i.stateContentLastChangedBy),t.setLong_6svq3l$(8,i.stateContentLct),t.setLong_6svq3l$(9,i.stateContentUid),t.executeUpdate()}return t.getConnection().commit(),V}))},zZ.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE StateContentEntity SET stateContentStateUid = ?, stateContentKey = ?, stateContentValue = ?, isIsactive = ?, stateContentMasterChangeSeqNum = ?, stateContentLocalChangeSeqNum = ?, stateContentLastChangedBy = ?, stateContentLct = ? WHERE stateContentUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.stateContentStateUid),t.setString_vqvrqt$(2,e.stateContentKey),t.setString_vqvrqt$(3,e.stateContentValue),t.setBoolean_fzusl$(4,e.isIsactive),t.setLong_6svq3l$(5,e.stateContentMasterChangeSeqNum),t.setLong_6svq3l$(6,e.stateContentLocalChangeSeqNum),t.setInt_vux9f0$(7,e.stateContentLastChangedBy),t.setLong_6svq3l$(8,e.stateContentLct),t.setLong_6svq3l$(9,e.stateContentUid),t.executeUpdate()}))},OZ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},OZ.prototype=Object.create(N.prototype),OZ.prototype.constructor=OZ,OZ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},AZ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},AZ.prototype=Object.create(N.prototype),AZ.prototype.constructor=AZ,AZ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO StateContentEntityReplicate(scePk, sceDestination)\n | SELECT DISTINCT StateContentEntity.stateContentUid AS scePk,\n | ? AS sceDestination\n | FROM StateContentEntity\n | WHERE StateContentEntity.stateContentLct != COALESCE(\n | (SELECT sceVersionId\n | FROM StateContentEntityReplicate\n | WHERE scePk = StateContentEntity.stateContentUid\n | AND sceDestination = ?), 0) \n | /*psql ON CONFLICT(scePk, sceDestination) DO UPDATE\n | SET scePending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO StateContentEntityReplicate(scePk, sceDestination)\n | SELECT DISTINCT StateContentEntity.stateContentUid AS scePk,\n | ? AS sceDestination\n | FROM StateContentEntity\n | WHERE StateContentEntity.stateContentLct != COALESCE(\n | (SELECT sceVersionId\n | FROM StateContentEntityReplicate\n | WHERE scePk = StateContentEntity.stateContentUid\n | AND sceDestination = ?), 0) \n | ON CONFLICT(scePk, sceDestination) DO UPDATE\n | SET scePending = true\n | \n | \n |")),RZ(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zZ.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new AZ(this,t,e);return n?i:i.doResume(null)},xZ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},xZ.prototype=Object.create(N.prototype),xZ.prototype.constructor=xZ,xZ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},UZ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},UZ.prototype=Object.create(N.prototype),UZ.prototype.constructor=UZ,UZ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO StateContentEntityReplicate(scePk, sceDestination)\n | SELECT DISTINCT StateContentEntity.stateContentUid AS sceUid,\n | UserSession.usClientNodeId AS sceDestination\n | FROM ChangeLog\n | JOIN StateContentEntity\n | ON ChangeLog.chTableId = 72\n | AND ChangeLog.chEntityPk = StateContentEntity.stateContentUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND StateContentEntity.stateContentLct != COALESCE(\n | (SELECT sceVersionId\n | FROM StateContentEntityReplicate\n | WHERE scePk = StateContentEntity.stateContentUid\n | AND sceDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(scePk, sceDestination) DO UPDATE\n | SET scePending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO StateContentEntityReplicate(scePk, sceDestination)\n | SELECT DISTINCT StateContentEntity.stateContentUid AS sceUid,\n | UserSession.usClientNodeId AS sceDestination\n | FROM ChangeLog\n | JOIN StateContentEntity\n | ON ChangeLog.chTableId = 72\n | AND ChangeLog.chEntityPk = StateContentEntity.stateContentUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND StateContentEntity.stateContentLct != COALESCE(\n | (SELECT sceVersionId\n | FROM StateContentEntityReplicate\n | WHERE scePk = StateContentEntity.stateContentUid\n | AND sceDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(scePk, sceDestination) DO UPDATE\n | SET scePending = true\n | \n | \n |")),IZ,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zZ.prototype.replicateOnChange=function(t,e){var n=new UZ(this,t);return e?n:n.doResume(null)},zZ.prototype.findAllStateContentWithStateUid_s8cxhz$=function(t){return ht(this._db,new st("SELECT * FROM StateContentEntity WHERE stateContentStateUid = ? AND isIsactive"),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),DZ)}));var e},zZ.prototype.findStateContentByKeyAndStateUid_4wgjuj$=function(t,e){return ht(this._db,new st("SELECT * FROM StateContentEntity WHERE stateContentStateUid = ? AND stateContentKey = ? AND isIsactive"),(n=e,i=t,function(t){return t.setLong_6svq3l$(1,n),t.setString_vqvrqt$(2,i),ut(t.executeQuery(),PZ)}));var n,i},zZ.prototype.setInActiveStateContentByKeyAndUid_vhff2t$=function(t,e,n){var i,o,r;ht(this._db,new st(S("\n |\n | UPDATE StateContentEntity \n | SET isIsactive = ?, \n | stateContentLct = ?\n | WHERE stateContentUid = ?\n | \n ")),(i=t,o=n,r=e,function(t){return t.setBoolean_fzusl$(1,i),t.setLong_6svq3l$(2,o),t.setLong_6svq3l$(3,r),t.executeUpdate()}))},MZ.prototype.makeSql_6taknv$=function(t){return"INSERT INTO StateContentEntity (stateContentUid, stateContentStateUid, stateContentKey, stateContentValue, isIsactive, stateContentMasterChangeSeqNum, stateContentLocalChangeSeqNum, stateContentLastChangedBy, stateContentLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?)"},MZ.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.stateContentUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.stateContentUid),t.setLong_6svq3l$(2,e.stateContentStateUid),t.setString_vqvrqt$(3,e.stateContentKey),t.setString_vqvrqt$(4,e.stateContentValue),t.setBoolean_fzusl$(5,e.isIsactive),t.setLong_6svq3l$(6,e.stateContentMasterChangeSeqNum),t.setLong_6svq3l$(7,e.stateContentLocalChangeSeqNum),t.setInt_vux9f0$(8,e.stateContentLastChangedBy),t.setLong_6svq3l$(9,e.stateContentLct)},MZ.$metadata$={kind:c,interfaces:[pt]},zZ.$metadata$={kind:c,simpleName:"StateContentDao_JdbcKt",interfaces:[LZ]},jZ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},jZ.prototype=Object.create(N.prototype),jZ.prototype.constructor=jZ,jZ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kZ.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new jZ(this,t,e);return n?i:i.doResume(null)},GZ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},GZ.prototype=Object.create(N.prototype),GZ.prototype.constructor=GZ,GZ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kZ.prototype.replicateOnChange=function(t,e){var n=new GZ(this,t);return e?n:n.doResume(null)},kZ.prototype.findAllStateContentWithStateUid_s8cxhz$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},kZ.prototype.findStateContentByKeyAndStateUid_4wgjuj$=function(t,e){throw v("Synchronous db access is NOT possible on Javascript!")},kZ.prototype.setInActiveStateContentByKeyAndUid_vhff2t$=function(t,e,n){throw v("Synchronous db access is NOT possible on Javascript!")},kZ.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},qZ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},qZ.prototype=Object.create(N.prototype),qZ.prototype.constructor=qZ,qZ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.stateContentUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(72,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.stateContentUid=e,this.state_0=3;continue;case 3:if(this.local$entity.stateContentLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.stateContentUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kZ.prototype.insertAsync=function(t,e,n){var i=new qZ(this,t,e);return n?i:i.doResume(null)},kZ.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},kZ.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},kZ.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},kZ.$metadata$={kind:c,simpleName:"StateContentDao_ReplicateWrapper",interfaces:[LZ]},BZ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},BZ.prototype=Object.create(N.prototype),BZ.prototype.constructor=BZ,BZ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},FZ.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new BZ(this,t,e);return n?i:i.doResume(null)},WZ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},WZ.prototype=Object.create(N.prototype),WZ.prototype.constructor=WZ,WZ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},FZ.prototype.replicateOnChange=function(t,e){var n=new WZ(this,t);return e?n:n.doResume(null)},FZ.prototype.findAllStateContentWithStateUid_s8cxhz$=function(t){return this._dao.findAllStateContentWithStateUid_s8cxhz$(t)},FZ.prototype.findStateContentByKeyAndStateUid_4wgjuj$=function(t,e){return this._dao.findStateContentByKeyAndStateUid_4wgjuj$(t,e)},FZ.prototype.setInActiveStateContentByKeyAndUid_vhff2t$=function(t,e,n){this._dao.setInActiveStateContentByKeyAndUid_vhff2t$(t,e,n)},FZ.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},HZ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},HZ.prototype=Object.create(N.prototype),HZ.prototype.constructor=HZ,HZ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},FZ.prototype.insertAsync=function(t,e,n){var i=new HZ(this,t,e);return n?i:i.doResume(null)},FZ.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},FZ.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},FZ.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},FZ.$metadata$={kind:c,simpleName:"StateContentDao_Repo",interfaces:[LZ]},VZ.$metadata$={kind:c,simpleName:"StateDao",interfaces:[X6]},KZ.prototype.insert_11rb$=function(t){return this._insertAdapterStateEntity_.insertAndReturnId_11rb$(t)},XZ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},XZ.prototype=Object.create(N.prototype),XZ.prototype.constructor=XZ,XZ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterStateEntity_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},KZ.prototype.insertAsync=function(t,e,n){var i=new XZ(this,t,e);return n?i:i.doResume(null)},KZ.prototype.insertList_4ezy5m$=function(t){this._insertAdapterStateEntity_.insertList_4ezy5m$(t)},KZ.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE StateEntity SET stateId = ?, agentUid = ?, activityId = ?, registration = ?, isIsactive = ?, timestamp = ?, stateMasterChangeSeqNum = ?, stateLocalChangeSeqNum = ?, stateLastChangedBy = ?, stateLct = ? WHERE stateUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setString_vqvrqt$(1,i.stateId),t.setLong_6svq3l$(2,i.agentUid),t.setString_vqvrqt$(3,i.activityId),t.setString_vqvrqt$(4,i.registration),t.setBoolean_fzusl$(5,i.isIsactive),t.setLong_6svq3l$(6,i.timestamp),t.setLong_6svq3l$(7,i.stateMasterChangeSeqNum),t.setLong_6svq3l$(8,i.stateLocalChangeSeqNum),t.setInt_vux9f0$(9,i.stateLastChangedBy),t.setLong_6svq3l$(10,i.stateLct),t.setLong_6svq3l$(11,i.stateUid),t.executeUpdate()}return t.getConnection().commit(),V}))},KZ.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE StateEntity SET stateId = ?, agentUid = ?, activityId = ?, registration = ?, isIsactive = ?, timestamp = ?, stateMasterChangeSeqNum = ?, stateLocalChangeSeqNum = ?, stateLastChangedBy = ?, stateLct = ? WHERE stateUid = ?",(e=t,function(t){return t.setString_vqvrqt$(1,e.stateId),t.setLong_6svq3l$(2,e.agentUid),t.setString_vqvrqt$(3,e.activityId),t.setString_vqvrqt$(4,e.registration),t.setBoolean_fzusl$(5,e.isIsactive),t.setLong_6svq3l$(6,e.timestamp),t.setLong_6svq3l$(7,e.stateMasterChangeSeqNum),t.setLong_6svq3l$(8,e.stateLocalChangeSeqNum),t.setInt_vux9f0$(9,e.stateLastChangedBy),t.setLong_6svq3l$(10,e.stateLct),t.setLong_6svq3l$(11,e.stateUid),t.executeUpdate()}))},JZ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},JZ.prototype=Object.create(N.prototype),JZ.prototype.constructor=JZ,JZ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},QZ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},QZ.prototype=Object.create(N.prototype),QZ.prototype.constructor=QZ,QZ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO StateEntityReplicate(sePk, seDestination)\n | SELECT DISTINCT StateEntity.stateUid AS sePk,\n | ? AS seDestination\n | FROM StateEntity\n | JOIN AgentEntity\n | ON StateEntity.agentUid = AgentEntity.agentUid\n | JOIN UserSession\n | ON AgentEntity.agentPersonUid = UserSession.usPersonUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND StateEntity.stateLct != COALESCE(\n | (SELECT seVersionId\n | FROM StateEntityReplicate\n | WHERE sePk = StateEntity.stateUid\n | AND seDestination = ?), 0) \n | /*psql ON CONFLICT(sePk, seDestination) DO UPDATE\n | SET sePending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO StateEntityReplicate(sePk, seDestination)\n | SELECT DISTINCT StateEntity.stateUid AS sePk,\n | ? AS seDestination\n | FROM StateEntity\n | JOIN AgentEntity\n | ON StateEntity.agentUid = AgentEntity.agentUid\n | JOIN UserSession\n | ON AgentEntity.agentPersonUid = UserSession.usPersonUid\n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | AND StateEntity.stateLct != COALESCE(\n | (SELECT seVersionId\n | FROM StateEntityReplicate\n | WHERE sePk = StateEntity.stateUid\n | AND seDestination = ?), 0) \n | ON CONFLICT(sePk, seDestination) DO UPDATE\n | SET sePending = true\n | \n | \n |")),YZ(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},KZ.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new QZ(this,t,e);return n?i:i.doResume(null)},ZZ.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ZZ.prototype=Object.create(N.prototype),ZZ.prototype.constructor=ZZ,ZZ.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},e0.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},e0.prototype=Object.create(N.prototype),e0.prototype.constructor=e0,e0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO StateEntityReplicate(sePk, seDestination)\n | SELECT DISTINCT StateEntity.stateUid AS seUid,\n | UserSession.usClientNodeId AS seDestination\n | FROM ChangeLog\n | JOIN StateEntity\n | ON ChangeLog.chTableId = 70\n | AND ChangeLog.chEntityPk = StateEntity.stateUid\n | JOIN AgentEntity\n | ON StateEntity.agentUid = AgentEntity.agentUid\n | JOIN UserSession\n | ON AgentEntity.agentPersonUid = UserSession.usPersonUid\n | AND UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND StateEntity.stateLct != COALESCE(\n | (SELECT seVersionId\n | FROM StateEntityReplicate\n | WHERE sePk = StateEntity.stateUid\n | AND seDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(sePk, seDestination) DO UPDATE\n | SET sePending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO StateEntityReplicate(sePk, seDestination)\n | SELECT DISTINCT StateEntity.stateUid AS seUid,\n | UserSession.usClientNodeId AS seDestination\n | FROM ChangeLog\n | JOIN StateEntity\n | ON ChangeLog.chTableId = 70\n | AND ChangeLog.chEntityPk = StateEntity.stateUid\n | JOIN AgentEntity\n | ON StateEntity.agentUid = AgentEntity.agentUid\n | JOIN UserSession\n | ON AgentEntity.agentPersonUid = UserSession.usPersonUid\n | AND UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND StateEntity.stateLct != COALESCE(\n | (SELECT seVersionId\n | FROM StateEntityReplicate\n | WHERE sePk = StateEntity.stateUid\n | AND seDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(sePk, seDestination) DO UPDATE\n | SET sePending = true\n | \n | \n |")),t0,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},KZ.prototype.replicateOnChange=function(t,e){var n=new e0(this,t);return e?n:n.doResume(null)},KZ.prototype.findByStateId_r731ya$=function(t,e,n,i){return ht(this._db,new st("SELECT * FROM StateEntity WHERE stateId = ? AND agentUid = ? AND activityId = ? AND registration = ? AND isIsactive LIMIT 1"),(o=t,r=e,s=n,a=i,function(t){return t.setString_vqvrqt$(1,o),t.setLong_6svq3l$(2,r),t.setString_vqvrqt$(3,s),t.setString_vqvrqt$(4,a),ut(t.executeQuery(),n0)}));var o,r,s,a},KZ.prototype.findStateIdByAgentAndActivity_zeqzmn$=function(t,e,n,i){return ht(this._db,new st("SELECT * FROM StateEntity WHERE agentUid = ? AND activityId = ? AND registration = ? AND isIsactive AND timestamp > ?"),(o=t,r=e,s=n,a=i,function(t){return t.setLong_6svq3l$(1,o),t.setString_vqvrqt$(2,r),t.setString_vqvrqt$(3,s),t.setString_vqvrqt$(4,a),ut(t.executeQuery(),i0)}));var o,r,s,a},KZ.prototype.updateStateToInActive_idwj4n$=function(t,e,n,i,o){var r,s,a,c,l;ht(this._db,new st(S("\n |\n | UPDATE StateEntity \n | SET isIsactive = ?,\n | stateLct = ?\n | WHERE agentUid = ? AND activityId = ? \n | AND registration = ? AND isIsactive\n | \n ")),(r=i,s=o,a=t,c=e,l=n,function(t){return t.setBoolean_fzusl$(1,r),t.setLong_6svq3l$(2,s),t.setLong_6svq3l$(3,a),t.setString_vqvrqt$(4,c),t.setString_vqvrqt$(5,l),t.executeUpdate()}))},KZ.prototype.setStateInActive_njdojp$=function(t,e,n,i,o,r){var s,a,c,l,u,h;ht(this._db,new st(S("\n |\n | UPDATE StateEntity \n | SET isIsactive = ?, \n | stateLct = ?\n | WHERE stateId = ? AND agentUid = ? \n | AND activityId = ? AND registration = ? \n | AND isIsactive\n ")),(s=o,a=r,c=t,l=e,u=n,h=i,function(t){return t.setBoolean_fzusl$(1,s),t.setLong_6svq3l$(2,a),t.setString_vqvrqt$(3,c),t.setLong_6svq3l$(4,l),t.setString_vqvrqt$(5,u),t.setString_vqvrqt$(6,h),t.executeUpdate()}))},o0.prototype.makeSql_6taknv$=function(t){return"INSERT INTO StateEntity (stateUid, stateId, agentUid, activityId, registration, isIsactive, timestamp, stateMasterChangeSeqNum, stateLocalChangeSeqNum, stateLastChangedBy, stateLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},o0.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.stateUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.stateUid),t.setString_vqvrqt$(2,e.stateId),t.setLong_6svq3l$(3,e.agentUid),t.setString_vqvrqt$(4,e.activityId),t.setString_vqvrqt$(5,e.registration),t.setBoolean_fzusl$(6,e.isIsactive),t.setLong_6svq3l$(7,e.timestamp),t.setLong_6svq3l$(8,e.stateMasterChangeSeqNum),t.setLong_6svq3l$(9,e.stateLocalChangeSeqNum),t.setInt_vux9f0$(10,e.stateLastChangedBy),t.setLong_6svq3l$(11,e.stateLct)},o0.$metadata$={kind:c,interfaces:[pt]},KZ.$metadata$={kind:c,simpleName:"StateDao_JdbcKt",interfaces:[VZ]},s0.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},s0.prototype=Object.create(N.prototype),s0.prototype.constructor=s0,s0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},r0.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new s0(this,t,e);return n?i:i.doResume(null)},a0.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},a0.prototype=Object.create(N.prototype),a0.prototype.constructor=a0,a0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},r0.prototype.replicateOnChange=function(t,e){var n=new a0(this,t);return e?n:n.doResume(null)},r0.prototype.findByStateId_r731ya$=function(t,e,n,i){throw v("Synchronous db access is NOT possible on Javascript!")},r0.prototype.findStateIdByAgentAndActivity_zeqzmn$=function(t,e,n,i){throw v("Synchronous db access is NOT possible on Javascript!")},r0.prototype.updateStateToInActive_idwj4n$=function(t,e,n,i,o){throw v("Synchronous db access is NOT possible on Javascript!")},r0.prototype.setStateInActive_njdojp$=function(t,e,n,i,o,r){throw v("Synchronous db access is NOT possible on Javascript!")},r0.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},c0.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},c0.prototype=Object.create(N.prototype),c0.prototype.constructor=c0,c0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.stateUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(70,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.stateUid=e,this.state_0=3;continue;case 3:if(this.local$entity.stateLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.stateUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},r0.prototype.insertAsync=function(t,e,n){var i=new c0(this,t,e);return n?i:i.doResume(null)},r0.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},r0.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},r0.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},r0.$metadata$={kind:c,simpleName:"StateDao_ReplicateWrapper",interfaces:[VZ]},u0.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},u0.prototype=Object.create(N.prototype),u0.prototype.constructor=u0,u0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},l0.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new u0(this,t,e);return n?i:i.doResume(null)},h0.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},h0.prototype=Object.create(N.prototype),h0.prototype.constructor=h0,h0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},l0.prototype.replicateOnChange=function(t,e){var n=new h0(this,t);return e?n:n.doResume(null)},l0.prototype.findByStateId_r731ya$=function(t,e,n,i){return this._dao.findByStateId_r731ya$(t,e,n,i)},l0.prototype.findStateIdByAgentAndActivity_zeqzmn$=function(t,e,n,i){return this._dao.findStateIdByAgentAndActivity_zeqzmn$(t,e,n,i)},l0.prototype.updateStateToInActive_idwj4n$=function(t,e,n,i,o){this._dao.updateStateToInActive_idwj4n$(t,e,n,i,o)},l0.prototype.setStateInActive_njdojp$=function(t,e,n,i,o,r){this._dao.setStateInActive_njdojp$(t,e,n,i,o,r)},l0.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},d0.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},d0.prototype=Object.create(N.prototype),d0.prototype.constructor=d0,d0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},l0.prototype.insertAsync=function(t,e,n){var i=new d0(this,t,e);return n?i:i.doResume(null)},l0.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},l0.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},l0.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},l0.$metadata$={kind:c,simpleName:"StateDao_Repo",interfaces:[VZ]},p0.$metadata$={kind:c,simpleName:"StatementDao",interfaces:[X6]},m0.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},m0.prototype=Object.create(N.prototype),m0.prototype.constructor=m0,m0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterStatementEntity_.insertListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_0.prototype.insertListAsync_6agjaz$=function(t,e,n){var i=new m0(this,t,e);return n?i:i.doResume(null)},_0.prototype.insert_11rb$=function(t){return this._insertAdapterStatementEntity_.insertAndReturnId_11rb$(t)},f0.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},f0.prototype=Object.create(N.prototype),f0.prototype.constructor=f0,f0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterStatementEntity_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_0.prototype.insertAsync=function(t,e,n){var i=new f0(this,t,e);return n?i:i.doResume(null)},_0.prototype.insertList_4ezy5m$=function(t){this._insertAdapterStatementEntity_.insertList_4ezy5m$(t)},_0.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE StatementEntity SET statementId = ?, statementPersonUid = ?, statementVerbUid = ?, xObjectUid = ?, subStatementActorUid = ?, substatementVerbUid = ?, subStatementObjectUid = ?, agentUid = ?, instructorUid = ?, authorityUid = ?, teamUid = ?, resultCompletion = ?, resultSuccess = ?, resultScoreScaled = ?, resultScoreRaw = ?, resultScoreMin = ?, resultScoreMax = ?, resultDuration = ?, resultResponse = ?, timestamp = ?, stored = ?, contextRegistration = ?, contextPlatform = ?, contextStatementId = ?, fullStatement = ?, statementMasterChangeSeqNum = ?, statementLocalChangeSeqNum = ?, statementLastChangedBy = ?, statementLct = ?, extensionProgress = ?, contentEntryRoot = ?, statementContentEntryUid = ?, statementLearnerGroupUid = ?, statementClazzUid = ? WHERE statementUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setString_vqvrqt$(1,i.statementId),t.setLong_6svq3l$(2,i.statementPersonUid),t.setLong_6svq3l$(3,i.statementVerbUid),t.setLong_6svq3l$(4,i.xObjectUid),t.setLong_6svq3l$(5,i.subStatementActorUid),t.setLong_6svq3l$(6,i.substatementVerbUid),t.setLong_6svq3l$(7,i.subStatementObjectUid),t.setLong_6svq3l$(8,i.agentUid),t.setLong_6svq3l$(9,i.instructorUid),t.setLong_6svq3l$(10,i.authorityUid),t.setLong_6svq3l$(11,i.teamUid),t.setBoolean_fzusl$(12,i.resultCompletion),t.setByte_6t1wet$(13,i.resultSuccess),t.setFloat_24o109$(14,i.resultScoreScaled),t.setLong_6svq3l$(15,i.resultScoreRaw),t.setLong_6svq3l$(16,i.resultScoreMin),t.setLong_6svq3l$(17,i.resultScoreMax),t.setLong_6svq3l$(18,i.resultDuration),t.setString_vqvrqt$(19,i.resultResponse),t.setLong_6svq3l$(20,i.timestamp),t.setLong_6svq3l$(21,i.stored),t.setString_vqvrqt$(22,i.contextRegistration),t.setString_vqvrqt$(23,i.contextPlatform),t.setString_vqvrqt$(24,i.contextStatementId),t.setString_vqvrqt$(25,i.fullStatement),t.setLong_6svq3l$(26,i.statementMasterChangeSeqNum),t.setLong_6svq3l$(27,i.statementLocalChangeSeqNum),t.setInt_vux9f0$(28,i.statementLastChangedBy),t.setLong_6svq3l$(29,i.statementLct),t.setInt_vux9f0$(30,i.extensionProgress),t.setBoolean_fzusl$(31,i.contentEntryRoot),t.setLong_6svq3l$(32,i.statementContentEntryUid),t.setLong_6svq3l$(33,i.statementLearnerGroupUid),t.setLong_6svq3l$(34,i.statementClazzUid),t.setLong_6svq3l$(35,i.statementUid),t.executeUpdate()}return t.getConnection().commit(),V}))},_0.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE StatementEntity SET statementId = ?, statementPersonUid = ?, statementVerbUid = ?, xObjectUid = ?, subStatementActorUid = ?, substatementVerbUid = ?, subStatementObjectUid = ?, agentUid = ?, instructorUid = ?, authorityUid = ?, teamUid = ?, resultCompletion = ?, resultSuccess = ?, resultScoreScaled = ?, resultScoreRaw = ?, resultScoreMin = ?, resultScoreMax = ?, resultDuration = ?, resultResponse = ?, timestamp = ?, stored = ?, contextRegistration = ?, contextPlatform = ?, contextStatementId = ?, fullStatement = ?, statementMasterChangeSeqNum = ?, statementLocalChangeSeqNum = ?, statementLastChangedBy = ?, statementLct = ?, extensionProgress = ?, contentEntryRoot = ?, statementContentEntryUid = ?, statementLearnerGroupUid = ?, statementClazzUid = ? WHERE statementUid = ?",(e=t,function(t){return t.setString_vqvrqt$(1,e.statementId),t.setLong_6svq3l$(2,e.statementPersonUid),t.setLong_6svq3l$(3,e.statementVerbUid),t.setLong_6svq3l$(4,e.xObjectUid),t.setLong_6svq3l$(5,e.subStatementActorUid),t.setLong_6svq3l$(6,e.substatementVerbUid),t.setLong_6svq3l$(7,e.subStatementObjectUid),t.setLong_6svq3l$(8,e.agentUid),t.setLong_6svq3l$(9,e.instructorUid),t.setLong_6svq3l$(10,e.authorityUid),t.setLong_6svq3l$(11,e.teamUid),t.setBoolean_fzusl$(12,e.resultCompletion),t.setByte_6t1wet$(13,e.resultSuccess),t.setFloat_24o109$(14,e.resultScoreScaled),t.setLong_6svq3l$(15,e.resultScoreRaw),t.setLong_6svq3l$(16,e.resultScoreMin),t.setLong_6svq3l$(17,e.resultScoreMax),t.setLong_6svq3l$(18,e.resultDuration),t.setString_vqvrqt$(19,e.resultResponse),t.setLong_6svq3l$(20,e.timestamp),t.setLong_6svq3l$(21,e.stored),t.setString_vqvrqt$(22,e.contextRegistration),t.setString_vqvrqt$(23,e.contextPlatform),t.setString_vqvrqt$(24,e.contextStatementId),t.setString_vqvrqt$(25,e.fullStatement),t.setLong_6svq3l$(26,e.statementMasterChangeSeqNum),t.setLong_6svq3l$(27,e.statementLocalChangeSeqNum),t.setInt_vux9f0$(28,e.statementLastChangedBy),t.setLong_6svq3l$(29,e.statementLct),t.setInt_vux9f0$(30,e.extensionProgress),t.setBoolean_fzusl$(31,e.contentEntryRoot),t.setLong_6svq3l$(32,e.statementContentEntryUid),t.setLong_6svq3l$(33,e.statementLearnerGroupUid),t.setLong_6svq3l$(34,e.statementClazzUid),t.setLong_6svq3l$(35,e.statementUid),t.executeUpdate()}))},g0.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},g0.prototype=Object.create(N.prototype),g0.prototype.constructor=g0,g0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},E0.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},E0.prototype=Object.create(N.prototype),E0.prototype.constructor=E0,E0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO StatementEntityReplicate(sePk, seDestination)\n | SELECT DISTINCT StatementEntity.statementUid AS sePk,\n | ? AS seDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & 549755813888) > 0\n | JOIN StatementEntity\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = StatementEntity.statementPersonUid)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = StatementEntity.statementClazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = (\n | SELECT clazzSchoolUid\n | FROM Clazz \n | WHERE clazzUid = StatementEntity.statementClazzUid))\n | ) \n | \n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | -- Temporary measure to prevent admin user getting clogged up\n | -- Restrict to the last 30 days of data\n | AND StatementEntity.timestamp > ( \n | --notpsql\n | strftime('%s', 'now') * 1000\n | --endnotpsql\n | /*psql\n | ROUND(EXTRACT(epoch from NOW())*1000)\n | */\n | - (30 * CAST(86400000 AS BIGINT)))\n | --notpsql\n | AND StatementEntity.statementLct != COALESCE(\n | (SELECT seVersionId\n | FROM StatementEntityReplicate\n | WHERE sePk = StatementEntity.statementUid\n | AND seDestination = UserSession.usClientNodeId), 0)\n | --endnotpsql \n | /*psql ON CONFLICT(sePk, seDestination) DO UPDATE\n | SET sePending = (SELECT StatementEntity.statementLct\n | FROM StatementEntity\n | WHERE StatementEntity.statementUid = EXCLUDED.sePk ) \n | != StatementEntityReplicate.seVersionId\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO StatementEntityReplicate(sePk, seDestination)\n | SELECT DISTINCT StatementEntity.statementUid AS sePk,\n | ? AS seDestination\n | FROM UserSession\n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & 549755813888) > 0\n | JOIN StatementEntity\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = StatementEntity.statementPersonUid)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = StatementEntity.statementClazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = (\n | SELECT clazzSchoolUid\n | FROM Clazz \n | WHERE clazzUid = StatementEntity.statementClazzUid))\n | ) \n | \n | WHERE UserSession.usClientNodeId = ?\n | AND UserSession.usStatus = 1\n | -- Temporary measure to prevent admin user getting clogged up\n | -- Restrict to the last 30 days of data\n | AND StatementEntity.timestamp > ( \n | \n | ROUND(EXTRACT(epoch from NOW())*1000)\n | \n | - (30 * CAST(86400000 AS BIGINT)))\n | ON CONFLICT(sePk, seDestination) DO UPDATE\n | SET sePending = (SELECT StatementEntity.statementLct\n | FROM StatementEntity\n | WHERE StatementEntity.statementUid = EXCLUDED.sePk ) \n | != StatementEntityReplicate.seVersionId\n | \n | \n |")),$0(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_0.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new E0(this,t,e);return n?i:i.doResume(null)},y0.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},y0.prototype=Object.create(N.prototype),y0.prototype.constructor=y0,y0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},S0.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},S0.prototype=Object.create(N.prototype),S0.prototype.constructor=S0,S0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO StatementEntityReplicate(sePk, seDestination)\n | SELECT DISTINCT StatementEntity.statementUid AS seUid,\n | UserSession.usClientNodeId AS seDestination\n | FROM ChangeLog\n | JOIN StatementEntity\n | ON ChangeLog.chTableId = 60\n | AND ChangeLog.chEntityPk = StatementEntity.statementUid\n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = StatementEntity.statementPersonUid)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = StatementEntity.statementClazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = (\n | SELECT clazzSchoolUid\n | FROM Clazz\n | WHERE clazzUid = StatementEntity.statementClazzUid))\n | )\n | \n | AND (ScopedGrant.sgPermissions & 549755813888) > 0\n | JOIN PersonGroupMember\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId\n | FROM SyncNode\n | LIMIT 1)\n | AND StatementEntity.statementLct != COALESCE(\n | (SELECT seVersionId\n | FROM StatementEntityReplicate\n | WHERE sePk = StatementEntity.statementUid\n | AND seDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(sePk, seDestination) DO UPDATE\n | SET sePending = true\n | */\n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO StatementEntityReplicate(sePk, seDestination)\n | SELECT DISTINCT StatementEntity.statementUid AS seUid,\n | UserSession.usClientNodeId AS seDestination\n | FROM ChangeLog\n | JOIN StatementEntity\n | ON ChangeLog.chTableId = 60\n | AND ChangeLog.chEntityPk = StatementEntity.statementUid\n | JOIN ScopedGrant\n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = StatementEntity.statementPersonUid)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = StatementEntity.statementClazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = (\n | SELECT clazzSchoolUid\n | FROM Clazz\n | WHERE clazzUid = StatementEntity.statementClazzUid))\n | )\n | \n | AND (ScopedGrant.sgPermissions & 549755813888) > 0\n | JOIN PersonGroupMember\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | AND UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId\n | FROM SyncNode\n | LIMIT 1)\n | AND StatementEntity.statementLct != COALESCE(\n | (SELECT seVersionId\n | FROM StatementEntityReplicate\n | WHERE sePk = StatementEntity.statementUid\n | AND seDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(sePk, seDestination) DO UPDATE\n | SET sePending = true\n | \n | \n |")),b0,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_0.prototype.replicateOnChange=function(t,e){var n=new S0(this,t);return e?n:n.doResume(null)},C0.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},C0.prototype=Object.create(N.prototype),C0.prototype.constructor=C0,C0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,v0);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},T0.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},T0.prototype=Object.create(N.prototype),T0.prototype.constructor=T0,T0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$StatementDao_JdbcKt._db,new st("SELECT * From StatementEntity LIMIT 1"),N0,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_0.prototype.getOneStatement=function(){return new ft(this._db,Et("StatementEntity"),(t=this,function(e,n){var i=new T0(t,e);return n?i:i.doResume(null)}));var t},_0.prototype.findByStatementId_61zpoe$=function(t){return ht(this._db,new st("SELECT * FROM StatementEntity WHERE statementId = ? LIMIT 1"),(e=t,function(t){return t.setString_vqvrqt$(1,e),ut(t.executeQuery(),L0)}));var e},_0.prototype.findByStatementIdList_mhpeer$=function(t){return ht(this._db,new st("SELECT * FROM StatementEntity WHERE statementId IN (?)",!0),(e=t,function(t){return t.setArray_wqp8hw$(1,yt(t.getConnection(),"TEXT",q(e))),ut(t.executeQuery(),z0)}));var e},O0.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},O0.prototype=Object.create(N.prototype),O0.prototype.constructor=O0,O0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$closure$query.bindToPreparedStmt_q2o6dm$(this.local$_stmt,this.local$this$StatementDao_JdbcKt._db),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,w0);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_0.prototype.getResults_j49vja$=function(t,e){return ct(this._db,new st(t.getSql(),St(t)),(n=t,i=this,function(t,e,o){var r=new O0(n,i,t,e);return o?r:r.doResume(null)}),e);var n,i},x0.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},x0.prototype=Object.create(N.prototype),x0.prototype.constructor=x0,x0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$closure$query.bindToPreparedStmt_q2o6dm$(this.local$_stmt,this.local$this$StatementDao_JdbcKt._db),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,A0);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},U0.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},U0.prototype=Object.create(N.prototype),U0.prototype.constructor=U0,U0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$StatementDao_JdbcKt._db,new st(this.local$closure$query.getSql(),St(this.local$closure$query)),I0(this.local$closure$query,this.local$this$StatementDao_JdbcKt),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},R0.prototype.getData_vux9f0$=function(t,e){var n,i,o=vt(this.closure$query,"SELECT * FROM ("+this.closure$query.getSql()+") LIMIT ? OFFSET ?",[e,t]);return new ft(this.this$StatementDao_JdbcKt._db,p(["StatementEntity","Person","XLangMapEntry"]),(n=this.this$StatementDao_JdbcKt,i=o,function(t,e){var o=new U0(n,i,t);return e?o:o.doResume(null)}))},P0.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},P0.prototype=Object.create(N.prototype),P0.prototype.constructor=P0,P0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$closure$query.bindToPreparedStmt_q2o6dm$(this.local$_stmt,this.local$this$StatementDao_JdbcKt._db),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,D0);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},k0.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},k0.prototype=Object.create(N.prototype),k0.prototype.constructor=k0,k0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$StatementDao_JdbcKt._db,new st(this.local$closure$query.getSql(),St(this.local$closure$query)),M0(this.local$closure$query,this.local$this$StatementDao_JdbcKt),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},R0.prototype.getLength=function(){var t,e,n=Ct(this.closure$query,"SELECT COUNT(*) FROM ("+this.closure$query.getSql()+")");return new ft(this.this$StatementDao_JdbcKt._db,p(["StatementEntity","Person","XLangMapEntry"]),(t=this.this$StatementDao_JdbcKt,e=n,function(n,i){var o=new k0(t,e,n);return i?o:o.doResume(null)}))},R0.$metadata$={kind:c,interfaces:[gt]},_0.prototype.getListResults_j49vja$=function(t){return new R0(t,this)},_0.prototype.getPerson=function(){return ht(this._db,new st("SELECT * FROM PERSON LIMIT 1"),G0)},_0.prototype.getXLangMap=function(){return ht(this._db,new st("SELECT * FROM XLangMapEntry LIMIT 1"),F0)},_0.prototype.updateProgress_ro19vi$=function(t,e,n){var i,o,r;ht(this._db,new st(S("\n |\n | UPDATE StatementEntity \n | SET extensionProgress = ?,\n | statementLct = ? \n | WHERE statementUid = ?\n ")),(i=e,o=n,r=t,function(t){return t.setInt_vux9f0$(1,i),t.setLong_6svq3l$(2,o),t.setLong_6svq3l$(3,r),t.executeUpdate()}))},H0.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},H0.prototype=Object.create(N.prototype),H0.prototype.constructor=H0,H0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$accountPersonUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$contentEntryUid),this.local$_stmt.setString_vqvrqt$(3,this.local$closure$searchText),this.local$_stmt.setInt_vux9f0$(4,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(5,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(6,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(7,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(8,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(9,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,W0);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},K0.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},K0.prototype=Object.create(N.prototype),K0.prototype.constructor=K0,K0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$StatementDao_JdbcKt._db,new st(S("\n |SELECT * FROM (\n | SELECT ResultSource.personUid, ResultSource.firstNames, ResultSource.lastName,\n | COUNT(DISTINCT(ResultSource.contextRegistration)) AS attempts, \n | MIN(ResultSource.timestamp) AS startDate, \n | MAX(ResultSource.timestamp) AS endDate, \n | SUM(ResultSource.resultDuration) AS duration, \n | MAX(CASE WHEN ResultSource.contentEntryRoot \n | THEN resultScoreRaw\n | ELSE 0 END) AS resultScore, \n | MAX(CASE WHEN ResultSource.contentEntryRoot \n | THEN resultScoreMax\n | ELSE 0 END) AS resultMax, \n | MAX(CASE WHEN ResultSource.contentEntryRoot \n | THEN resultScoreScaled\n | ELSE 0 END) AS resultScaled, \n | MAX(ResultSource.extensionProgress) AS progress,\n | 0 AS penalty,\n | 0 as resultWeight,\n | 'FALSE' AS contentComplete,\n | 0 AS success,\n | \n | CASE WHEN ResultSource.resultCompletion \n | THEN 1 ELSE 0 END AS totalCompletedContent,\n | \n | 1 as totalContent, \n | \n | 0 as fileSubmissionStatus, \n | \n | '' AS latestPrivateComment\n | \n | FROM (SELECT Person.personUid, Person.firstNames, Person.lastName, \n | StatementEntity.contextRegistration, StatementEntity.timestamp, \n | StatementEntity.resultDuration, StatementEntity.resultScoreRaw, \n | StatementEntity.resultScoreMax, StatementEntity.resultScoreScaled,\n | StatementEntity.contentEntryRoot, StatementEntity.extensionProgress, \n | StatementEntity.resultCompletion\n | FROM PersonGroupMember\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & 549755813888 \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | LEFT JOIN StatementEntity \n | ON StatementEntity.statementPersonUid = Person.personUid \n | WHERE PersonGroupMember.groupMemberPersonUid = ? \n | AND PersonGroupMember.groupMemberActive \n | AND statementContentEntryUid = ?\n | AND Person.firstNames || ' ' || Person.lastName LIKE ? \n | GROUP BY StatementEntity.statementUid \n | ORDER BY resultScoreScaled DESC, extensionProgress DESC, resultSuccess DESC) AS ResultSource \n | GROUP BY ResultSource.personUid \n | ORDER BY CASE(?) \n | WHEN 1 THEN ResultSource.firstNames\n | WHEN 3 THEN ResultSource.lastName\n | ELSE ''\n | END ASC,\n | CASE(?)\n | WHEN 2 THEN ResultSource.firstNames\n | WHEN 4 THEN ResultSource.lastName\n | ELSE ''\n | END DESC,\n | CASE(?)\n | WHEN 5 THEN endDate \n | ELSE 0\n | END ASC,\n | CASE(?)\n | WHEN 6 then endDate\n | ELSE 0\n | END DESC\n | ) LIMIT ? OFFSET ?\n ")),V0(this.local$closure$accountPersonUid,this.local$closure$contentEntryUid,this.local$closure$searchText,this.local$closure$sortOrder,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},B0.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$StatementDao_JdbcKt._db,p(["PersonGroupMember","ScopedGrant","Person","StatementEntity"]),(n=this.this$StatementDao_JdbcKt,i=this.closure$accountPersonUid,o=this.closure$contentEntryUid,r=this.closure$searchText,s=this.closure$sortOrder,a=e,c=t,function(t,e){var l=new K0(n,i,o,r,s,a,c,t);return e?l:l.doResume(null)}));var n,i,o,r,s,a,c},J0.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},J0.prototype=Object.create(N.prototype),J0.prototype.constructor=J0,J0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$accountPersonUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$contentEntryUid),this.local$_stmt.setString_vqvrqt$(3,this.local$closure$searchText),this.local$_stmt.setInt_vux9f0$(4,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(5,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(6,this.local$closure$sortOrder),this.local$_stmt.setInt_vux9f0$(7,this.local$closure$sortOrder),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,X0);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Q0.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Q0.prototype=Object.create(N.prototype),Q0.prototype.constructor=Q0,Q0.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$StatementDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (\n | SELECT ResultSource.personUid, ResultSource.firstNames, ResultSource.lastName,\n | COUNT(DISTINCT(ResultSource.contextRegistration)) AS attempts, \n | MIN(ResultSource.timestamp) AS startDate, \n | MAX(ResultSource.timestamp) AS endDate, \n | SUM(ResultSource.resultDuration) AS duration, \n | MAX(CASE WHEN ResultSource.contentEntryRoot \n | THEN resultScoreRaw\n | ELSE 0 END) AS resultScore, \n | MAX(CASE WHEN ResultSource.contentEntryRoot \n | THEN resultScoreMax\n | ELSE 0 END) AS resultMax, \n | MAX(CASE WHEN ResultSource.contentEntryRoot \n | THEN resultScoreScaled\n | ELSE 0 END) AS resultScaled, \n | MAX(ResultSource.extensionProgress) AS progress,\n | 0 AS penalty,\n | 0 as resultWeight,\n | 'FALSE' AS contentComplete,\n | 0 AS success,\n | \n | CASE WHEN ResultSource.resultCompletion \n | THEN 1 ELSE 0 END AS totalCompletedContent,\n | \n | 1 as totalContent, \n | \n | 0 as fileSubmissionStatus, \n | \n | '' AS latestPrivateComment\n | \n | FROM (SELECT Person.personUid, Person.firstNames, Person.lastName, \n | StatementEntity.contextRegistration, StatementEntity.timestamp, \n | StatementEntity.resultDuration, StatementEntity.resultScoreRaw, \n | StatementEntity.resultScoreMax, StatementEntity.resultScoreScaled,\n | StatementEntity.contentEntryRoot, StatementEntity.extensionProgress, \n | StatementEntity.resultCompletion\n | FROM PersonGroupMember\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions & 549755813888 \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | LEFT JOIN StatementEntity \n | ON StatementEntity.statementPersonUid = Person.personUid \n | WHERE PersonGroupMember.groupMemberPersonUid = ? \n | AND PersonGroupMember.groupMemberActive \n | AND statementContentEntryUid = ?\n | AND Person.firstNames || ' ' || Person.lastName LIKE ? \n | GROUP BY StatementEntity.statementUid \n | ORDER BY resultScoreScaled DESC, extensionProgress DESC, resultSuccess DESC) AS ResultSource \n | GROUP BY ResultSource.personUid \n | ORDER BY CASE(?) \n | WHEN 1 THEN ResultSource.firstNames\n | WHEN 3 THEN ResultSource.lastName\n | ELSE ''\n | END ASC,\n | CASE(?)\n | WHEN 2 THEN ResultSource.firstNames\n | WHEN 4 THEN ResultSource.lastName\n | ELSE ''\n | END DESC,\n | CASE(?)\n | WHEN 5 THEN endDate \n | ELSE 0\n | END ASC,\n | CASE(?)\n | WHEN 6 then endDate\n | ELSE 0\n | END DESC\n | ) \n ")),Y0(this.local$closure$accountPersonUid,this.local$closure$contentEntryUid,this.local$closure$searchText,this.local$closure$sortOrder),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},B0.prototype.getLength=function(){return new ft(this.this$StatementDao_JdbcKt._db,p(["PersonGroupMember","ScopedGrant","Person","StatementEntity"]),(t=this.this$StatementDao_JdbcKt,e=this.closure$accountPersonUid,n=this.closure$contentEntryUid,i=this.closure$searchText,o=this.closure$sortOrder,function(r,s){var a=new Q0(t,e,n,i,o,r);return s?a:a.doResume(null)}));var t,e,n,i,o},B0.$metadata$={kind:c,interfaces:[gt]},_0.prototype.findPersonsWithContentEntryAttempts_vqkbx2$=function(t,e,n,i){return new B0(this,e,t,n,i)},t1.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},t1.prototype=Object.create(N.prototype),t1.prototype.constructor=t1,t1.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$accountPersonUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$contentEntryUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,Z0);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_0.prototype.getBestScoreForContentForPerson_3pjtqy$=function(t,e,n){return ct(this._db,new st(S("\n |\n | SELECT \n | COALESCE(StatementEntity.resultScoreMax,0) AS resultMax, \n | COALESCE(StatementEntity.resultScoreRaw,0) AS resultScore, \n | COALESCE(StatementEntity.resultScoreScaled,0) AS resultScaled, \n | COALESCE(StatementEntity.extensionProgress,0) AS progress, \n | COALESCE(StatementEntity.resultCompletion,'FALSE') AS contentComplete,\n | COALESCE(StatementEntity.resultSuccess, 0) AS success,\n | 0 as resultWeight,\n | \n | COALESCE((CASE WHEN resultCompletion \n | THEN 1 ELSE 0 END),0) AS totalCompletedContent,\n | \n | 1 as totalContent, \n | 0 as penalty\n | \n | FROM ContentEntry\n | LEFT JOIN StatementEntity\n |\t\t\t\t\t\t\tON StatementEntity.statementUid = \n | (SELECT statementUid \n |\t\t\t\t\t\t\t FROM StatementEntity \n | WHERE statementContentEntryUid = ContentEntry.contentEntryUid \n |\t\t\t\t\t\t\t AND StatementEntity.statementPersonUid = ?\n |\t\t\t\t\t\t\t AND contentEntryRoot \n | ORDER BY resultScoreScaled DESC, extensionProgress DESC, resultSuccess DESC LIMIT 1)\n | \n | WHERE contentEntryUid = ?\n | \n ")),(i=e,o=t,function(t,e,n){var r=new t1(i,o,t,e);return n?r:r.doResume(null)}),n);var i,o},n1.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},n1.prototype=Object.create(N.prototype),n1.prototype.constructor=n1,n1.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$assignmentUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$currentStudentUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,e1);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_0.prototype.findNextStudentNotMarkedForAssignment_3pjtqy$=function(t,e,n){return ct(this._db,new st(S("\n |\n | SELECT COALESCE((\n | SELECT DISTINCT(statementpersonUid)\n | FROM ClazzAssignment \n | JOIN ClazzEnrolment\n | ON ClazzEnrolment.clazzEnrolmentClazzUid = ClazzAssignment.caClazzUid\n | \n | JOIN CourseBlock\n | ON CourseBlock.cbEntityUid = ClazzAssignment.caUid\n | AND CourseBlock.cbType = 103\n | \n | \t JOIN StatementEntity AS SubmissionStatement\n | \t ON SubmissionStatement.statementUid = (SELECT statementUid \n | FROM StatementEntity\n | WHERE StatementEntity.statementContentEntryUid = 0\n | AND xObjectUid = ClazzAssignment.caXObjectUid\n | AND StatementEntity.statementPersonUid = ClazzEnrolment.clazzEnrolmentPersonUid\n | AND StatementEntity.timestamp \n | BETWEEN CourseBlock.cbHideUntilDate\n | AND CourseBlock.cbGracePeriodDate\n | ORDER BY timestamp DESC LIMIT 1)\n | \n | \t LEFT JOIN XObjectEntity\n | ON XObjectEntity.objectStatementRefUid = SubmissionStatement.statementUid \n | \n | WHERE ClazzAssignment.caUid = ?\n | AND XObjectEntity.xobjectUid IS NULL\n | AND ClazzEnrolment.clazzEnrolmentActive\n | AND ClazzEnrolment.clazzEnrolmentRole = 1000\n | AND ClazzEnrolment.clazzEnrolmentPersonUid != ?\n | LIMIT 1),0)\n | \n ")),(i=t,o=e,function(t,e,n){var r=new n1(i,o,t,e);return n?r:r.doResume(null)}),n);var i,o},o1.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},o1.prototype=Object.create(N.prototype),o1.prototype.constructor=o1,o1.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$studentUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$assignmentObjectUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,i1);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_0.prototype.findSubmittedStatementFromStudent_3pjtqy$=function(t,e,n){return ct(this._db,new st(S("\n |\n | SELECT * \n | FROM StatementEntity\n | WHERE statementPersonUid = ?\n | AND statementVerbUid = 10008\n | AND xObjectUid = ? \n | ORDER BY timestamp \n | \n ")),(i=t,o=e,function(t,e,n){var r=new o1(i,o,t,e);return n?r:r.doResume(null)}),n);var i,o},_0.prototype.findScoreStatementForStudent_s8cxhz$=function(t){return ht(this._db,new st(S("\n |\n | SELECT * \n | FROM StatementEntity\n | WHERE statementPersonUid = ?\n | AND statementVerbUid = 10009\n | ORDER BY timestamp \n | \n ")),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),r1)}));var e};c1.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},c1.prototype=Object.create(N.prototype),c1.prototype.constructor=c1,c1.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$accountPersonUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$contentEntryUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$personUid),this.local$_stmt.setInt_vux9f0$(4,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(5,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,a1);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},u1.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},u1.prototype=Object.create(N.prototype),u1.prototype.constructor=u1,u1.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$StatementDao_JdbcKt._db,new st(S("\n |SELECT * FROM (\n | SELECT MIN(timestamp) AS startDate, \n | MAX(CASE \n | WHEN StatementEntity.resultSuccess > 0 \n | AND StatementEntity.contentEntryRoot \n | THEN StatementEntity.resultSuccess \n | ELSE 0 END) AS resultSuccess, \n | SUM(CASE \n | WHEN CAST(resultCompletion AS INTEGER) > 0 \n | AND StatementEntity.contentEntryRoot \n | THEN 1 \n | ELSE 0 END) AS resultComplete, \n | SUM(resultDuration) AS duration, contextRegistration, \n | MAX(CASE WHEN contentEntryRoot \n | THEN resultScoreRaw ELSE 0 END) AS resultScore, \n | MAX(CASE WHEN contentEntryRoot \n | THEN resultScoreMax ELSE 0 END) AS resultMax,\n | MAX(CASE WHEN contentEntryRoot \n | THEN resultScoreScaled ELSE 0 END) AS resultScoreScaled,\n | \n | SUM(CASE WHEN resultCompletion AND StatementEntity.contentEntryRoot \n | THEN 1 ELSE 0 END) AS totalCompletedContent,\n | \n | 1 as totalContent \n | \n | FROM StatementEntity \n | JOIN ScopedGrant \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = StatementEntity.statementPersonUid)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = StatementEntity.statementClazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = (\n | SELECT clazzSchoolUid\n | FROM Clazz\n | WHERE clazzUid = StatementEntity.statementClazzUid))\n | )\n | \n | AND (ScopedGrant.sgPermissions & 549755813888) > 0\n | JOIN PersonGroupMember \n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid \n | AND PersonGroupMember.groupMemberPersonUid = ?\n | WHERE statementContentEntryUid = ? \n | AND statementPersonUid = ? \n | GROUP BY StatementEntity.contextRegistration \n | ORDER BY startDate DESC, resultScoreScaled DESC, extensionProgress DESC, resultSuccess DESC\n | ) LIMIT ? OFFSET ?\n ")),l1(this.local$closure$accountPersonUid,this.local$closure$contentEntryUid,this.local$closure$personUid,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},s1.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$StatementDao_JdbcKt._db,p(["StatementEntity","ScopedGrant","PersonGroupMember"]),(n=this.this$StatementDao_JdbcKt,i=this.closure$accountPersonUid,o=this.closure$contentEntryUid,r=this.closure$personUid,s=e,a=t,function(t,e){var c=new u1(n,i,o,r,s,a,t);return e?c:c.doResume(null)}));var n,i,o,r,s,a},d1.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},d1.prototype=Object.create(N.prototype),d1.prototype.constructor=d1,d1.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$accountPersonUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$contentEntryUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$personUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,h1);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_1.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_1.prototype=Object.create(N.prototype),_1.prototype.constructor=_1,_1.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$StatementDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (\n | SELECT MIN(timestamp) AS startDate, \n | MAX(CASE \n | WHEN StatementEntity.resultSuccess > 0 \n | AND StatementEntity.contentEntryRoot \n | THEN StatementEntity.resultSuccess \n | ELSE 0 END) AS resultSuccess, \n | SUM(CASE \n | WHEN CAST(resultCompletion AS INTEGER) > 0 \n | AND StatementEntity.contentEntryRoot \n | THEN 1 \n | ELSE 0 END) AS resultComplete, \n | SUM(resultDuration) AS duration, contextRegistration, \n | MAX(CASE WHEN contentEntryRoot \n | THEN resultScoreRaw ELSE 0 END) AS resultScore, \n | MAX(CASE WHEN contentEntryRoot \n | THEN resultScoreMax ELSE 0 END) AS resultMax,\n | MAX(CASE WHEN contentEntryRoot \n | THEN resultScoreScaled ELSE 0 END) AS resultScoreScaled,\n | \n | SUM(CASE WHEN resultCompletion AND StatementEntity.contentEntryRoot \n | THEN 1 ELSE 0 END) AS totalCompletedContent,\n | \n | 1 as totalContent \n | \n | FROM StatementEntity \n | JOIN ScopedGrant \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = StatementEntity.statementPersonUid)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = StatementEntity.statementClazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = (\n | SELECT clazzSchoolUid\n | FROM Clazz\n | WHERE clazzUid = StatementEntity.statementClazzUid))\n | )\n | \n | AND (ScopedGrant.sgPermissions & 549755813888) > 0\n | JOIN PersonGroupMember \n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid \n | AND PersonGroupMember.groupMemberPersonUid = ?\n | WHERE statementContentEntryUid = ? \n | AND statementPersonUid = ? \n | GROUP BY StatementEntity.contextRegistration \n | ORDER BY startDate DESC, resultScoreScaled DESC, extensionProgress DESC, resultSuccess DESC\n | ) \n ")),p1(this.local$closure$accountPersonUid,this.local$closure$contentEntryUid,this.local$closure$personUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},s1.prototype.getLength=function(){return new ft(this.this$StatementDao_JdbcKt._db,p(["StatementEntity","ScopedGrant","PersonGroupMember"]),(t=this.this$StatementDao_JdbcKt,e=this.closure$accountPersonUid,n=this.closure$contentEntryUid,i=this.closure$personUid,function(o,r){var s=new _1(t,e,n,i,o);return r?s:s.doResume(null)}));var t,e,n,i},s1.$metadata$={kind:c,interfaces:[gt]},_0.prototype.findSessionsForPerson_b9bd0d$=function(t,e,n){return new s1(this,e,t,n)},g1.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},g1.prototype=Object.create(N.prototype),g1.prototype.constructor=g1,g1.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$accountPersonUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$contentEntryUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$personUid),this.local$_stmt.setString_vqvrqt$(4,this.local$closure$contextRegistration),this.local$_stmt.setInt_vux9f0$(5,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(6,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,f1);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},E1.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},E1.prototype=Object.create(N.prototype),E1.prototype.constructor=E1,E1.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$StatementDao_JdbcKt._db,new st(S("\n |SELECT * FROM (\n | SELECT StatementEntity.*, VerbEntity.*, \n | verbLangMap.valueLangMap AS verbDisplay, \n | xobjectMap.valueLangMap AS objectDisplay \n | FROM StatementEntity\n | JOIN ScopedGrant \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = StatementEntity.statementPersonUid)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = StatementEntity.statementClazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = (\n | SELECT clazzSchoolUid\n | FROM Clazz\n | WHERE clazzUid = StatementEntity.statementClazzUid))\n | )\n | \n | AND (ScopedGrant.sgPermissions & 549755813888) > 0\n | JOIN PersonGroupMember \n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid \n | AND PersonGroupMember.groupMemberPersonUid = ?\n | LEFT JOIN VerbEntity \n | ON VerbEntity.verbUid = StatementEntity.statementVerbUid \n | LEFT JOIN XLangMapEntry verbLangMap \n | ON verbLangMap.verbLangMapUid = VerbEntity.verbUid\n | LEFT JOIN XLangMapEntry xobjectMap \n | ON xobjectMap.objectLangMapUid = StatementEntity.xObjectUid\n | WHERE statementContentEntryUid = ? \n | AND statementPersonUid = ? \n | AND contextRegistration = ? \n | ORDER BY StatementEntity.timestamp DESC\n | ) LIMIT ? OFFSET ?\n ")),$1(this.local$closure$accountPersonUid,this.local$closure$contentEntryUid,this.local$closure$personUid,this.local$closure$contextRegistration,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},m1.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$StatementDao_JdbcKt._db,p(["StatementEntity","ScopedGrant","PersonGroupMember","VerbEntity","XLangMapEntry"]),(n=this.this$StatementDao_JdbcKt,i=this.closure$accountPersonUid,o=this.closure$contentEntryUid,r=this.closure$personUid,s=this.closure$contextRegistration,a=e,c=t,function(t,e){var l=new E1(n,i,o,r,s,a,c,t);return e?l:l.doResume(null)}));var n,i,o,r,s,a,c},b1.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},b1.prototype=Object.create(N.prototype),b1.prototype.constructor=b1,b1.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$accountPersonUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$contentEntryUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$personUid),this.local$_stmt.setString_vqvrqt$(4,this.local$closure$contextRegistration),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,y1);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},v1.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},v1.prototype=Object.create(N.prototype),v1.prototype.constructor=v1,v1.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$StatementDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (\n | SELECT StatementEntity.*, VerbEntity.*, \n | verbLangMap.valueLangMap AS verbDisplay, \n | xobjectMap.valueLangMap AS objectDisplay \n | FROM StatementEntity\n | JOIN ScopedGrant \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = StatementEntity.statementPersonUid)\n | OR (ScopedGrant.sgTableId = 6\n | AND ScopedGrant.sgEntityUid = StatementEntity.statementClazzUid)\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid = (\n | SELECT clazzSchoolUid\n | FROM Clazz\n | WHERE clazzUid = StatementEntity.statementClazzUid))\n | )\n | \n | AND (ScopedGrant.sgPermissions & 549755813888) > 0\n | JOIN PersonGroupMember \n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid \n | AND PersonGroupMember.groupMemberPersonUid = ?\n | LEFT JOIN VerbEntity \n | ON VerbEntity.verbUid = StatementEntity.statementVerbUid \n | LEFT JOIN XLangMapEntry verbLangMap \n | ON verbLangMap.verbLangMapUid = VerbEntity.verbUid\n | LEFT JOIN XLangMapEntry xobjectMap \n | ON xobjectMap.objectLangMapUid = StatementEntity.xObjectUid\n | WHERE statementContentEntryUid = ? \n | AND statementPersonUid = ? \n | AND contextRegistration = ? \n | ORDER BY StatementEntity.timestamp DESC\n | ) \n ")),S1(this.local$closure$accountPersonUid,this.local$closure$contentEntryUid,this.local$closure$personUid,this.local$closure$contextRegistration),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},m1.prototype.getLength=function(){return new ft(this.this$StatementDao_JdbcKt._db,p(["StatementEntity","ScopedGrant","PersonGroupMember","VerbEntity","XLangMapEntry"]),(t=this.this$StatementDao_JdbcKt,e=this.closure$accountPersonUid,n=this.closure$contentEntryUid,i=this.closure$personUid,o=this.closure$contextRegistration,function(r,s){var a=new v1(t,e,n,i,o,r);return s?a:a.doResume(null)}));var t,e,n,i,o},m1.$metadata$={kind:c,interfaces:[gt]},_0.prototype.findSessionDetailForPerson_pkyi17$=function(t,e,n,i){return new m1(this,e,t,n,i)},N1.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},N1.prototype=Object.create(N.prototype),N1.prototype.constructor=N1,N1.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$contextRegistration),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,C1);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_0.prototype.calculateScoreForSession_61zpoe$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT SUM(resultScoreRaw) AS resultScore, \n | SUM(resultScoreMax) AS resultMax,\n | MAX(extensionProgress) AS progress,\n | 0 as resultWeight,\n | 0 as penalty,\n | 0 as success,\n | 'FALSE' as contentComplete,\n | 0 AS resultScaled, \n | COALESCE((CASE WHEN resultCompletion \n | THEN 1 ELSE 0 END),0) AS totalCompletedContent,\n | \n | 1 as totalContent\n | \n | FROM (SELECT * \n | FROM StatementEntity \n | WHERE contextRegistration = ?\n | AND NOT contentEntryRoot\n | AND statementVerbUid = 10007 \n | GROUP BY xObjectUid) AS SessionStatements\n | \n ")),(n=t,function(t,e,i){var o=new N1(n,t,e);return i?o:o.doResume(null)}),e);var n},L1.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},L1.prototype=Object.create(N.prototype),L1.prototype.constructor=L1,L1.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setString_vqvrqt$(1,this.local$closure$contextRegistration),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,T1);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_0.prototype.findCompletedScoreForSession_61zpoe$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT resultScoreRaw AS resultScore, \n | resultScoreMax AS resultMax,\n | extensionProgress AS progress,\n | 0 AS penalty,\n | 0 as resultWeight,\n | resultSuccess AS success,\n | resultCompletion AS contentComplete, \n | resultScoreScaled AS resultScaled,\n | 1 AS totalCompletedContent,\n | 1 as totalContent\n | \n | FROM StatementEntity\n | WHERE resultCompletion\n | AND contextRegistration = ?\n | AND contentEntryRoot\n | ORDER BY resultScoreScaled DESC, \n | extensionProgress DESC, \n | resultSuccess DESC \n | LIMIT 1\n | \n ")),(n=t,function(t,e,i){var o=new L1(n,t,e);return i?o:o.doResume(null)}),e);var n},w1.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},w1.prototype=Object.create(N.prototype),w1.prototype.constructor=w1,w1.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$accountPersonUid),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$entryUid),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$accountPersonUid),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$entryUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,z1);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_0.prototype.findLatestRegistrationStatement_3pjtqy$=function(t,e,n){return ct(this._db,new st(S("\n |\n | SELECT contextRegistration \n | FROM StatementEntity\n | WHERE statementPersonUid = ?\n | AND statementContentEntryUid = ?\n | AND NOT EXISTS (SELECT statementUid FROM StatementEntity\n | WHERE statementPersonUid = ?\n | AND statementContentEntryUid = ?\n | AND (statementVerbUid = 10001 \n | OR statementVerbUid = 10004))\n | ORDER BY timestamp DESC \n | \n ")),(i=t,o=e,function(t,e,n){var r=new w1(i,o,t,e);return n?r:r.doResume(null)}),n);var i,o},O1.prototype.makeSql_6taknv$=function(t){return"INSERT INTO StatementEntity (statementUid, statementId, statementPersonUid, statementVerbUid, xObjectUid, subStatementActorUid, substatementVerbUid, subStatementObjectUid, agentUid, instructorUid, authorityUid, teamUid, resultCompletion, resultSuccess, resultScoreScaled, resultScoreRaw, resultScoreMin, resultScoreMax, resultDuration, resultResponse, timestamp, stored, contextRegistration, contextPlatform, contextStatementId, fullStatement, statementMasterChangeSeqNum, statementLocalChangeSeqNum, statementLastChangedBy, statementLct, extensionProgress, contentEntryRoot, statementContentEntryUid, statementLearnerGroupUid, statementClazzUid) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},O1.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.statementUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.statementUid),t.setString_vqvrqt$(2,e.statementId),t.setLong_6svq3l$(3,e.statementPersonUid),t.setLong_6svq3l$(4,e.statementVerbUid),t.setLong_6svq3l$(5,e.xObjectUid),t.setLong_6svq3l$(6,e.subStatementActorUid),t.setLong_6svq3l$(7,e.substatementVerbUid),t.setLong_6svq3l$(8,e.subStatementObjectUid),t.setLong_6svq3l$(9,e.agentUid),t.setLong_6svq3l$(10,e.instructorUid),t.setLong_6svq3l$(11,e.authorityUid),t.setLong_6svq3l$(12,e.teamUid),t.setBoolean_fzusl$(13,e.resultCompletion),t.setByte_6t1wet$(14,e.resultSuccess),t.setFloat_24o109$(15,e.resultScoreScaled),t.setLong_6svq3l$(16,e.resultScoreRaw),t.setLong_6svq3l$(17,e.resultScoreMin),t.setLong_6svq3l$(18,e.resultScoreMax),t.setLong_6svq3l$(19,e.resultDuration),t.setString_vqvrqt$(20,e.resultResponse),t.setLong_6svq3l$(21,e.timestamp),t.setLong_6svq3l$(22,e.stored),t.setString_vqvrqt$(23,e.contextRegistration),t.setString_vqvrqt$(24,e.contextPlatform),t.setString_vqvrqt$(25,e.contextStatementId),t.setString_vqvrqt$(26,e.fullStatement),t.setLong_6svq3l$(27,e.statementMasterChangeSeqNum),t.setLong_6svq3l$(28,e.statementLocalChangeSeqNum),t.setInt_vux9f0$(29,e.statementLastChangedBy),t.setLong_6svq3l$(30,e.statementLct),t.setInt_vux9f0$(31,e.extensionProgress),t.setBoolean_fzusl$(32,e.contentEntryRoot),t.setLong_6svq3l$(33,e.statementContentEntryUid),t.setLong_6svq3l$(34,e.statementLearnerGroupUid),t.setLong_6svq3l$(35,e.statementClazzUid)},O1.$metadata$={kind:c,interfaces:[pt]},_0.$metadata$={kind:c,simpleName:"StatementDao_JdbcKt",interfaces:[p0]},A1.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},A1.prototype=Object.create(N.prototype),A1.prototype.constructor=A1,A1.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},R1.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new A1(this,t,e);return n?i:i.doResume(null)},x1.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},x1.prototype=Object.create(N.prototype),x1.prototype.constructor=x1,x1.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},R1.prototype.replicateOnChange=function(t,e){var n=new x1(this,t);return e?n:n.doResume(null)},I1.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},I1.prototype=Object.create(N.prototype),I1.prototype.constructor=I1,I1.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_pkManager=_t(w(this.$this._db_0)),this.local$_generatedPks=F(),this.local$$receiver=this.local$entityList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$$receiver.hasNext()){this.state_0=5;continue}if(this.local$element=this.local$$receiver.next(),O(this.local$element.statementUid,X)){if(this.state_0=3,this.result_0=this.local$_pkManager.nextIdAsync_za3lpa$(60,this),this.result_0===C)return C;continue}this.state_0=4;continue;case 3:var t=this.result_0;this.local$element.statementUid=t,this.local$_generatedPks.add_11rb$(t),this.state_0=4;continue;case 4:this.local$element.statementLct=J(),this.state_0=2;continue;case 5:if(this.state_0=6,this.result_0=this.$this._dao_0.insertListAsync_6agjaz$(this.local$entityList,this),this.result_0===C)return C;continue;case 6:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},R1.prototype.insertListAsync_6agjaz$=function(t,e,n){var i=new I1(this,t,e);return n?i:i.doResume(null)},R1.prototype.getOneStatement=function(){return this._dao_0.getOneStatement()},R1.prototype.findByStatementId_61zpoe$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},R1.prototype.findByStatementIdList_mhpeer$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},R1.prototype.getResults_j49vja$=function(t,e){return this._dao_0.getResults_j49vja$(t,e)},R1.prototype.getListResults_j49vja$=function(t){return this._dao_0.getListResults_j49vja$(t)},R1.prototype.getPerson=function(){throw v("Synchronous db access is NOT possible on Javascript!")},R1.prototype.getXLangMap=function(){throw v("Synchronous db access is NOT possible on Javascript!")},R1.prototype.updateProgress_ro19vi$=function(t,e,n){throw v("Synchronous db access is NOT possible on Javascript!")},R1.prototype.findPersonsWithContentEntryAttempts_vqkbx2$=function(t,e,n,i){return this._dao_0.findPersonsWithContentEntryAttempts_vqkbx2$(t,e,n,i)},R1.prototype.getBestScoreForContentForPerson_3pjtqy$=function(t,e,n){return this._dao_0.getBestScoreForContentForPerson_3pjtqy$(t,e,n)},R1.prototype.findNextStudentNotMarkedForAssignment_3pjtqy$=function(t,e,n){return this._dao_0.findNextStudentNotMarkedForAssignment_3pjtqy$(t,e,n)},R1.prototype.findSubmittedStatementFromStudent_3pjtqy$=function(t,e,n){return this._dao_0.findSubmittedStatementFromStudent_3pjtqy$(t,e,n)},R1.prototype.findScoreStatementForStudent_s8cxhz$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},R1.prototype.findSessionsForPerson_b9bd0d$=function(t,e,n){return this._dao_0.findSessionsForPerson_b9bd0d$(t,e,n)},R1.prototype.findSessionDetailForPerson_pkyi17$=function(t,e,n,i){return this._dao_0.findSessionDetailForPerson_pkyi17$(t,e,n,i)},R1.prototype.calculateScoreForSession_61zpoe$=function(t,e){return this._dao_0.calculateScoreForSession_61zpoe$(t,e)},R1.prototype.findCompletedScoreForSession_61zpoe$=function(t,e){return this._dao_0.findCompletedScoreForSession_61zpoe$(t,e)},R1.prototype.findLatestRegistrationStatement_3pjtqy$=function(t,e,n){return this._dao_0.findLatestRegistrationStatement_3pjtqy$(t,e,n)},R1.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},U1.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},U1.prototype=Object.create(N.prototype),U1.prototype.constructor=U1,U1.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.statementUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(60,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.statementUid=e,this.state_0=3;continue;case 3:if(this.local$entity.statementLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.statementUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},R1.prototype.insertAsync=function(t,e,n){var i=new U1(this,t,e);return n?i:i.doResume(null)},R1.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},R1.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},R1.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},R1.$metadata$={kind:c,simpleName:"StatementDao_ReplicateWrapper",interfaces:[p0]},P1.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},P1.prototype=Object.create(N.prototype),P1.prototype.constructor=P1,P1.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},D1.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new P1(this,t,e);return n?i:i.doResume(null)},M1.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},M1.prototype=Object.create(N.prototype),M1.prototype.constructor=M1,M1.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},D1.prototype.replicateOnChange=function(t,e){var n=new M1(this,t);return e?n:n.doResume(null)},k1.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},k1.prototype=Object.create(N.prototype),k1.prototype.constructor=k1,k1.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertListAsync_6agjaz$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},D1.prototype.insertListAsync_6agjaz$=function(t,e,n){var i=new k1(this,t,e);return n?i:i.doResume(null)},D1.prototype.getOneStatement=function(){return this._dao.getOneStatement()},D1.prototype.findByStatementId_61zpoe$=function(t){return this._dao.findByStatementId_61zpoe$(t)},D1.prototype.findByStatementIdList_mhpeer$=function(t){return this._dao.findByStatementIdList_mhpeer$(t)},j1.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},j1.prototype=Object.create(N.prototype),j1.prototype.constructor=j1,j1.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.getResults_j49vja$(this.local$query,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},D1.prototype.getResults_j49vja$=function(t,e,n){var i=new j1(this,t,e);return n?i:i.doResume(null)},D1.prototype.getListResults_j49vja$=function(t){return this._dao.getListResults_j49vja$(t)},D1.prototype.getPerson=function(){return this._dao.getPerson()},D1.prototype.getXLangMap=function(){return this._dao.getXLangMap()},D1.prototype.updateProgress_ro19vi$=function(t,e,n){this._dao.updateProgress_ro19vi$(t,e,n)},D1.prototype.findPersonsWithContentEntryAttempts_vqkbx2$=function(t,e,n,i){return this._dao.findPersonsWithContentEntryAttempts_vqkbx2$(t,e,n,i)},G1.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},G1.prototype=Object.create(N.prototype),G1.prototype.constructor=G1,G1.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.getBestScoreForContentForPerson_3pjtqy$(this.local$contentEntryUid,this.local$accountPersonUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},D1.prototype.getBestScoreForContentForPerson_3pjtqy$=function(t,e,n,i){var o=new G1(this,t,e,n);return i?o:o.doResume(null)},q1.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},q1.prototype=Object.create(N.prototype),q1.prototype.constructor=q1,q1.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findNextStudentNotMarkedForAssignment_3pjtqy$(this.local$assignmentUid,this.local$currentStudentUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},D1.prototype.findNextStudentNotMarkedForAssignment_3pjtqy$=function(t,e,n,i){var o=new q1(this,t,e,n);return i?o:o.doResume(null)},F1.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},F1.prototype=Object.create(N.prototype),F1.prototype.constructor=F1,F1.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findSubmittedStatementFromStudent_3pjtqy$(this.local$studentUid,this.local$assignmentObjectUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},D1.prototype.findSubmittedStatementFromStudent_3pjtqy$=function(t,e,n,i){var o=new F1(this,t,e,n);return i?o:o.doResume(null)},D1.prototype.findScoreStatementForStudent_s8cxhz$=function(t){return this._dao.findScoreStatementForStudent_s8cxhz$(t)},D1.prototype.findSessionsForPerson_b9bd0d$=function(t,e,n){return this._dao.findSessionsForPerson_b9bd0d$(t,e,n)},D1.prototype.findSessionDetailForPerson_pkyi17$=function(t,e,n,i){return this._dao.findSessionDetailForPerson_pkyi17$(t,e,n,i)},B1.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},B1.prototype=Object.create(N.prototype),B1.prototype.constructor=B1,B1.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.calculateScoreForSession_61zpoe$(this.local$contextRegistration,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},D1.prototype.calculateScoreForSession_61zpoe$=function(t,e,n){var i=new B1(this,t,e);return n?i:i.doResume(null)},W1.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},W1.prototype=Object.create(N.prototype),W1.prototype.constructor=W1,W1.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findCompletedScoreForSession_61zpoe$(this.local$contextRegistration,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},D1.prototype.findCompletedScoreForSession_61zpoe$=function(t,e,n){var i=new W1(this,t,e);return n?i:i.doResume(null)},H1.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},H1.prototype=Object.create(N.prototype),H1.prototype.constructor=H1,H1.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findLatestRegistrationStatement_3pjtqy$(this.local$accountPersonUid,this.local$entryUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},D1.prototype.findLatestRegistrationStatement_3pjtqy$=function(t,e,n,i){var o=new H1(this,t,e,n);return i?o:o.doResume(null)},D1.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},V1.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},V1.prototype=Object.create(N.prototype),V1.prototype.constructor=V1,V1.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},D1.prototype.insertAsync=function(t,e,n){var i=new V1(this,t,e);return n?i:i.doResume(null)},D1.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},D1.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},D1.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},D1.$metadata$={kind:c,simpleName:"StatementDao_Repo",interfaces:[p0]},K1.$metadata$={kind:c,simpleName:"SyncNodeDao",interfaces:[]},X1.prototype.replace_xzdt0j$=function(t){this._insertAdapterSyncNode_upsert.insert_11rb$(t)},Y1.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Y1.prototype=Object.create(N.prototype),Y1.prototype.constructor=Y1,Y1.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,J1);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},X1.prototype.getLocalNodeClientId=function(t){return ct(this._db,new st(S("\n |\n | SELECT COALESCE(\n | (SELECT nodeClientId \n | FROM SyncNode \n | LIMIT 1), 0)\n | \n ")),Q1,t)},Z1.prototype.makeSql_6taknv$=function(t){return"INSERT OR REPLACE INTO SyncNode (nodeClientId) VALUES(?)"},Z1.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){t.setLong_6svq3l$(1,e.nodeClientId)},Z1.$metadata$={kind:c,interfaces:[pt]},X1.$metadata$={kind:c,simpleName:"SyncNodeDao_JdbcKt",interfaces:[K1]},t2.$metadata$={kind:c,simpleName:"UserSessionDao",interfaces:[]},n2.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},n2.prototype=Object.create(N.prototype),n2.prototype.constructor=n2,n2.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterUserSession_.insertAndReturnIdAsync_11rb$(this.local$session,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},e2.prototype.insertSession_g3losl$=function(t,e,n){var i=new n2(this,t,e);return n?i:i.doResume(null)},i2.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},i2.prototype=Object.create(N.prototype),i2.prototype.constructor=i2,i2.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},r2.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},r2.prototype=Object.create(N.prototype),r2.prototype.constructor=r2,r2.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO UserSessionReplicate(usPk, usDestination)\n | SELECT DISTINCT UserSessionSubject.usUid AS usPk,\n | UserSession.usClientNodeId AS usDestination\n | FROM ChangeLog\n | JOIN UserSession UserSessionSubject\n | ON ChangeLog.chTableId = 679\n | AND ChangeLog.chEntityPk = UserSessionSubject.usUid\n | AND UserSessionSubject.usSessionType = 1\n | JOIN Person\n | ON UserSessionSubject.usPersonUid = Person.personUid\n | \n | JOIN ScopedGrant \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT clazzEnrolmentClazzUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentPersonUid = Person.personUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT schoolMemberSchoolUid\n | FROM SchoolMember\n | WHERE schoolMemberPersonUid = Person.personUid\n | AND schoolMemberActive))\n | )\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 64\n | /* Modify second part of query - remove requirement for session to be active.\n | * This ensures that deactivations are distributed\n | */\n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | WHERE UserSessionSubject.usClientNodeId = UserSessionSubject.usClientNodeId \n | --notpsql \n | AND UserSessionSubject.usLct != COALESCE(\n | (SELECT usVersionId\n | FROM UserSessionReplicate\n | WHERE UserSessionReplicate.usPk = UserSessionSubject.usUid\n | AND UserSessionReplicate.usDestination = UserSession.usClientNodeId), 0)\n | --endnotpsql \n | /*psql ON CONFLICT(usPk, usDestination) \n | DO UPDATE SET usPending = \n | (SELECT UserSession.usLct\n | FROM UserSession\n | WHERE UserSession.usUid = EXCLUDED.usPk ) \n | != UserSessionReplicate.usVersionId\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO UserSessionReplicate(usPk, usDestination)\n | SELECT DISTINCT UserSessionSubject.usUid AS usPk,\n | UserSession.usClientNodeId AS usDestination\n | FROM ChangeLog\n | JOIN UserSession UserSessionSubject\n | ON ChangeLog.chTableId = 679\n | AND ChangeLog.chEntityPk = UserSessionSubject.usUid\n | AND UserSessionSubject.usSessionType = 1\n | JOIN Person\n | ON UserSessionSubject.usPersonUid = Person.personUid\n | \n | JOIN ScopedGrant \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT clazzEnrolmentClazzUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentPersonUid = Person.personUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND ScopedGrant.sgEntityUid IN (\n | SELECT DISTINCT schoolMemberSchoolUid\n | FROM SchoolMember\n | WHERE schoolMemberPersonUid = Person.personUid\n | AND schoolMemberActive))\n | )\n | \n | AND (ScopedGrant.sgPermissions & \n | \n | 64\n | /* Modify second part of query - remove requirement for session to be active.\n | * This ensures that deactivations are distributed\n | */\n | ) > 0\n | JOIN PersonGroupMember AS PrsGrpMbr\n | ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n | WHERE UserSessionSubject.usClientNodeId = UserSessionSubject.usClientNodeId \n | ON CONFLICT(usPk, usDestination) \n | DO UPDATE SET usPending = \n | (SELECT UserSession.usLct\n | FROM UserSession\n | WHERE UserSession.usUid = EXCLUDED.usPk ) \n | != UserSessionReplicate.usVersionId\n | \n | \n |")),o2,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},e2.prototype.updateReplicationTrackers=function(t,e){var n=new r2(this,t);return e?n:n.doResume(null)},s2.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},s2.prototype=Object.create(N.prototype),s2.prototype.constructor=s2,s2.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},c2.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},c2.prototype=Object.create(N.prototype),c2.prototype.constructor=c2,c2.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO UserSessionReplicate(usPk, usDestination)\n | SELECT DISTINCT UserSessionSubject.usUid AS usPk,\n | UserSession.usClientNodeId AS usDestination\n | FROM UserSession \n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | 64\n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | JOIN UserSession UserSessionSubject\n | ON UserSessionSubject.usPersonUid = Person.personUid\n | AND UserSessionSubject.usSessionType = 1\n | AND UserSessionSubject.usClientNodeId = ?\n | WHERE UserSession.usClientNodeId = ?\n | --notpsql\n | AND UserSessionSubject.usLct != COALESCE(\n | (SELECT usVersionId\n | FROM UserSessionReplicate\n | WHERE UserSessionReplicate.usPk = UserSessionSubject.usUid\n | AND UserSessionReplicate.usDestination = UserSession.usClientNodeId), 0)\n | --endnotpsql \n | /*psql ON CONFLICT(usPk, usDestination) \n | DO UPDATE SET usPending = \n | (SELECT UserSession.usLct\n | FROM UserSession\n | WHERE UserSession.usUid = EXCLUDED.usPk ) \n | != UserSessionReplicate.usVersionId\n | */\n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO UserSessionReplicate(usPk, usDestination)\n | SELECT DISTINCT UserSessionSubject.usUid AS usPk,\n | UserSession.usClientNodeId AS usDestination\n | FROM UserSession \n | JOIN PersonGroupMember\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | \n | JOIN ScopedGrant\n | ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n | AND (ScopedGrant.sgPermissions &\n | 64\n | \n | ) > 0\n | JOIN Person \n | ON \n | ((ScopedGrant.sgTableId = -2\n | AND ScopedGrant.sgEntityUid = -2)\n | OR (ScopedGrant.sgTableId = 9\n | AND ScopedGrant.sgEntityUid = Person.personUid)\n | OR (ScopedGrant.sgTableId = 6 \n | AND Person.personUid IN (\n | SELECT DISTINCT clazzEnrolmentPersonUid\n | FROM ClazzEnrolment\n | WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n | AND ClazzEnrolment.clazzEnrolmentActive))\n | OR (ScopedGrant.sgTableId = 164\n | AND Person.personUid IN (\n | SELECT DISTINCT schoolMemberPersonUid\n | FROM SchoolMember\n | WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n | AND schoolMemberActive))\n | ) \n | \n | \n | JOIN UserSession UserSessionSubject\n | ON UserSessionSubject.usPersonUid = Person.personUid\n | AND UserSessionSubject.usSessionType = 1\n | AND UserSessionSubject.usClientNodeId = ?\n | WHERE UserSession.usClientNodeId = ?\n | ON CONFLICT(usPk, usDestination) \n | DO UPDATE SET usPending = \n | (SELECT UserSession.usLct\n | FROM UserSession\n | WHERE UserSession.usUid = EXCLUDED.usPk ) \n | != UserSessionReplicate.usVersionId\n | \n | \n |")),a2(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},e2.prototype.updateReplicationTrackersOnNewNode_s8cxhz$=function(t,e,n){var i=new c2(this,t,e);return n?i:i.doResume(null)},u2.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},u2.prototype=Object.create(N.prototype),u2.prototype.constructor=u2,u2.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$personUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,l2);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},e2.prototype.findSessionsByPerson_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT UserSession.*\n | FROM UserSession\n | WHERE usPersonUid = ? \n | \n ")),(n=t,function(t,e,i){var o=new u2(n,t,e);return i?o:o.doResume(null)}),e);var n},d2.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},d2.prototype=Object.create(N.prototype),d2.prototype.constructor=d2,d2.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,h2);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_2.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_2.prototype=Object.create(N.prototype),_2.prototype.constructor=_2,_2.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$UserSessionDao_JdbcKt._db,new st(S("\n |\n | SELECT UserSession.*, Person.*\n | FROM UserSession\n | JOIN Person ON UserSession.usPersonUid = Person.personUid\n | WHERE UserSession.usClientNodeId = (\n | SELECT COALESCE(\n | (SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1), 0))\n | AND UserSession.usStatus = 1 \n | \n ")),p2,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},e2.prototype.findAllLocalSessionsLive=function(){return new ft(this._db,p(["UserSession","Person","SyncNode"]),(t=this,function(e,n){var i=new _2(t,e);return n?i:i.doResume(null)}));var t},f2.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},f2.prototype=Object.create(N.prototype),f2.prototype.constructor=f2,f2.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,m2);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},e2.prototype.findAllLocalSessionsAsync=function(t){return ct(this._db,new st(S("\n |\n | SELECT UserSession.*, Person.*\n | FROM UserSession\n | JOIN Person ON UserSession.usPersonUid = Person.personUid\n | WHERE UserSession.usClientNodeId = (\n | SELECT COALESCE(\n | (SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1), 0))\n | AND UserSession.usStatus = 1 \n | \n ")),g2,t)},E2.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},E2.prototype=Object.create(N.prototype),E2.prototype.constructor=E2,E2.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$maxDateOfBirth),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$maxDateOfBirth),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,$2);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},e2.prototype.countAllLocalSessionsAsync_s8cxhz$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT COUNT(*)\n | FROM UserSession\n | JOIN Person \n | ON UserSession.usPersonUid = Person.personUid\n | WHERE UserSession.usClientNodeId = (\n | SELECT COALESCE(\n | (SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1), 0))\n | AND UserSession.usStatus = 1 \n | AND (? = 0 OR Person.dateOfBirth < ?) \n | \n ")),(n=t,function(t,e,i){var o=new E2(n,t,e);return i?o:o.doResume(null)}),e);var n},y2.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},y2.prototype=Object.create(N.prototype),y2.prototype.constructor=y2,y2.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setInt_vux9f0$(1,this.local$closure$newStatus),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$reason),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$sessionUid),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},S2.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},S2.prototype=Object.create(N.prototype),S2.prototype.constructor=S2,S2.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | UPDATE UserSession\n | SET usAuth = null,\n | usStatus = ?,\n | usReason = ?,\n | usLcb = COALESCE(\n | (SELECT nodeClientId\n | FROM SyncNode\n | LIMIT 1), 0)\n | WHERE UserSession.usUid = ? \n | \n | \n ")),b2(this.local$newStatus,this.local$reason,this.local$sessionUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},e2.prototype.endSession_liip7b$=function(t,e,n,i,o){var r=new S2(this,t,e,n,i);return o?r:r.doResume(null)},C2.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},C2.prototype=Object.create(N.prototype),C2.prototype.constructor=C2,C2.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$sessionUid),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,v2);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},T2.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},T2.prototype=Object.create(N.prototype),T2.prototype.constructor=T2,T2.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$UserSessionDao_JdbcKt._db,new st(S("\n |\n | SELECT UserSession.*\n | FROM UserSession\n | WHERE UserSession.usUid = ?\n | LIMIT 1\n | \n ")),N2(this.local$closure$sessionUid),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},e2.prototype.findByUidLive_s8cxhz$=function(t){return new ft(this._db,Et("UserSession"),(e=this,n=t,function(t,i){var o=new T2(e,n,t);return i?o:o.doResume(null)}));var e,n},L2.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},L2.prototype=Object.create(N.prototype),L2.prototype.constructor=L2,L2.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setInt_vux9f0$(1,this.local$closure$newStatus),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$reason),this.local$_stmt.setLong_6svq3l$(3,this.local$closure$changeTime),this.local$_stmt.setLong_6svq3l$(4,this.local$closure$personUid),this.local$_stmt.setLong_6svq3l$(5,this.local$closure$exemptNodeId),this.local$_stmt.setInt_vux9f0$(6,this.local$closure$newStatus),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},w2.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},w2.prototype=Object.create(N.prototype),w2.prototype.constructor=w2,w2.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | UPDATE UserSession\n | SET usAuth = null,\n | usStatus = ?,\n | usReason = ?,\n | usLct = ?\n | WHERE usPersonUid = ?\n | AND usClientNodeId != ?\n | AND usStatus != ? \n | \n ")),z2(this.local$newStatus,this.local$reason,this.local$changeTime,this.local$personUid,this.local$exemptNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},e2.prototype.endOtherSessions_d2c2sj$=function(t,e,n,i,o,r,s){var a=new w2(this,t,e,n,i,o,r);return s?a:a.doResume(null)},R2.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},R2.prototype=Object.create(N.prototype),R2.prototype.constructor=R2,R2.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setArray_wqp8hw$(1,yt(this.local$_stmt.getConnection(),"BIGINT",q(this.local$closure$personUids))),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,O2);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},e2.prototype.findActiveNodeIdsByPersonUids_gox9k8$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT DISTINCT UserSession.usClientNodeId\n | FROM UserSession\n | WHERE UserSession.usPersonUid IN (?)\n | AND UserSession.usStatus = 1\n | \n "),!0),(n=t,function(t,e,i){var o=new R2(n,t,e);return i?o:o.doResume(null)}),e);var n},x2.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},x2.prototype=Object.create(N.prototype),x2.prototype.constructor=x2,x2.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setArray_wqp8hw$(1,yt(this.local$_stmt.getConnection(),"BIGINT",q(this.local$closure$groupUids))),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,A2);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},e2.prototype.findActiveNodesIdsByGroupUids_gox9k8$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT DISTINCT UserSession.usClientNodeId\n | FROM UserSession\n | JOIN PersonGroupMember \n | ON PersonGroupMember.groupMemberPersonUid = UserSession.usPersonUid\n | WHERE PersonGroupMember.groupMemberGroupUid IN (?) \n | \n "),!0),(n=t,function(t,e,i){var o=new x2(n,t,e);return i?o:o.doResume(null)}),e);var n},U2.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},U2.prototype=Object.create(N.prototype),U2.prototype.constructor=U2,U2.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setArray_wqp8hw$(1,yt(this.local$_stmt.getConnection(),"BIGINT",q(this.local$closure$clazzUids))),this.local$_stmt.setArray_wqp8hw$(2,yt(this.local$_stmt.getConnection(),"BIGINT",q(this.local$closure$clazzUids))),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,I2);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},e2.prototype.findAllActiveNodeIdsWithClazzBasedPermission_gox9k8$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT UserSession.usClientNodeId\n | FROM ScopedGrant\n | JOIN PersonGroupMember \n | ON PersonGroupMember.groupMemberGroupUid = ScopedGrant.sgGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | WHERE (ScopedGrant.sgTableId = 6 AND ScopedGrant.sgEntityUid IN (?))\n | OR (ScopedGrant.sgTableId = 164 AND ScopedGrant.sgEntityUid IN \n | (SELECT clazzSchoolUid\n | FROM Clazz\n | WHERE clazzUid IN (?)))\n | \n | \n "),!0),(n=t,function(t,e,i){var o=new U2(n,t,e);return i?o:o.doResume(null)}),e);var n},P2.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},P2.prototype=Object.create(N.prototype),P2.prototype.constructor=P2,P2.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setArray_wqp8hw$(1,yt(this.local$_stmt.getConnection(),"BIGINT",q(this.local$closure$schoolUids))),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,D2);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},e2.prototype.findAllActiveNodeIdsWithSchoolBasedPermission_gox9k8$=function(t,e){return ct(this._db,new st(S("\n |\n | SELECT UserSession.usClientNodeId\n | FROM ScopedGrant\n | JOIN PersonGroupMember \n | ON PersonGroupMember.groupMemberGroupUid = ScopedGrant.sgGroupUid\n | JOIN UserSession\n | ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n | WHERE ScopedGrant.sgTableId = 164 \n | AND ScopedGrant.sgEntityUid IN (?) \n | \n "),!0),(n=t,function(t,e,i){var o=new P2(n,t,e);return i?o:o.doResume(null)}),e);var n},M2.prototype.makeSql_6taknv$=function(t){return"INSERT INTO UserSession (usUid, usPcsn, usLcsn, usLcb, usLct, usPersonUid, usClientNodeId, usStartTime, usEndTime, usStatus, usReason, usAuth, usSessionType) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},M2.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.usUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.usUid),t.setLong_6svq3l$(2,e.usPcsn),t.setLong_6svq3l$(3,e.usLcsn),t.setInt_vux9f0$(4,e.usLcb),t.setLong_6svq3l$(5,e.usLct),t.setLong_6svq3l$(6,e.usPersonUid),t.setLong_6svq3l$(7,e.usClientNodeId),t.setLong_6svq3l$(8,e.usStartTime),t.setLong_6svq3l$(9,e.usEndTime),t.setInt_vux9f0$(10,e.usStatus),t.setInt_vux9f0$(11,e.usReason),t.setString_vqvrqt$(12,e.usAuth),t.setInt_vux9f0$(13,e.usSessionType)},M2.$metadata$={kind:c,interfaces:[pt]},e2.$metadata$={kind:c,simpleName:"UserSessionDao_JdbcKt",interfaces:[t2]},j2.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},j2.prototype=Object.create(N.prototype),j2.prototype.constructor=j2,j2.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.updateReplicationTrackers(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},k2.prototype.updateReplicationTrackers=function(t,e){var n=new j2(this,t);return e?n:n.doResume(null)},G2.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},G2.prototype=Object.create(N.prototype),G2.prototype.constructor=G2,G2.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.updateReplicationTrackersOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},k2.prototype.updateReplicationTrackersOnNewNode_s8cxhz$=function(t,e,n){var i=new G2(this,t,e);return n?i:i.doResume(null)},q2.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},q2.prototype=Object.create(N.prototype),q2.prototype.constructor=q2,q2.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$session.usUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(679,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$session.usUid=e,this.state_0=3;continue;case 3:if(this.local$session.usLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertSession_g3losl$(this.local$session,this),this.result_0===C)return C;continue;case 4:return this.local$session.usUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},k2.prototype.insertSession_g3losl$=function(t,e,n){var i=new q2(this,t,e);return n?i:i.doResume(null)},k2.prototype.findSessionsByPerson_s8cxhz$=function(t,e){return this._dao_0.findSessionsByPerson_s8cxhz$(t,e)},k2.prototype.findAllLocalSessionsLive=function(){return this._dao_0.findAllLocalSessionsLive()},k2.prototype.findAllLocalSessionsAsync=function(t){return this._dao_0.findAllLocalSessionsAsync(t)},k2.prototype.countAllLocalSessionsAsync_s8cxhz$=function(t,e){return this._dao_0.countAllLocalSessionsAsync_s8cxhz$(t,e)},F2.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},F2.prototype=Object.create(N.prototype),F2.prototype.constructor=F2,F2.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.endSession_liip7b$(this.local$sessionUid,this.local$newStatus,this.local$reason,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},k2.prototype.endSession_liip7b$=function(t,e,n,i,o){var r=new F2(this,t,e,n,i);return o?r:r.doResume(null)},k2.prototype.findByUidLive_s8cxhz$=function(t){return this._dao_0.findByUidLive_s8cxhz$(t)},B2.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},B2.prototype=Object.create(N.prototype),B2.prototype.constructor=B2,B2.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.endOtherSessions_d2c2sj$(this.local$personUid,this.local$exemptNodeId,this.local$newStatus,this.local$reason,this.local$changeTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},k2.prototype.endOtherSessions_d2c2sj$=function(t,e,n,i,o,r,s){var a=new B2(this,t,e,n,i,o,r);return s?a:a.doResume(null)},k2.prototype.findActiveNodeIdsByPersonUids_gox9k8$=function(t,e){return this._dao_0.findActiveNodeIdsByPersonUids_gox9k8$(t,e)},k2.prototype.findActiveNodesIdsByGroupUids_gox9k8$=function(t,e){return this._dao_0.findActiveNodesIdsByGroupUids_gox9k8$(t,e)},k2.prototype.findAllActiveNodeIdsWithClazzBasedPermission_gox9k8$=function(t,e){return this._dao_0.findAllActiveNodeIdsWithClazzBasedPermission_gox9k8$(t,e)},k2.prototype.findAllActiveNodeIdsWithSchoolBasedPermission_gox9k8$=function(t,e){return this._dao_0.findAllActiveNodeIdsWithSchoolBasedPermission_gox9k8$(t,e)},k2.$metadata$={kind:c,simpleName:"UserSessionDao_ReplicateWrapper",interfaces:[t2]},H2.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},H2.prototype=Object.create(N.prototype),H2.prototype.constructor=H2,H2.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateReplicationTrackers(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},W2.prototype.updateReplicationTrackers=function(t,e){var n=new H2(this,t);return e?n:n.doResume(null)},V2.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},V2.prototype=Object.create(N.prototype),V2.prototype.constructor=V2,V2.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.updateReplicationTrackersOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},W2.prototype.updateReplicationTrackersOnNewNode_s8cxhz$=function(t,e,n){var i=new V2(this,t,e);return n?i:i.doResume(null)},K2.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},K2.prototype=Object.create(N.prototype),K2.prototype.constructor=K2,K2.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertSession_g3losl$(this.local$session,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},W2.prototype.insertSession_g3losl$=function(t,e,n){var i=new K2(this,t,e);return n?i:i.doResume(null)},X2.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},X2.prototype=Object.create(N.prototype),X2.prototype.constructor=X2,X2.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findSessionsByPerson_s8cxhz$(this.local$personUid,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},W2.prototype.findSessionsByPerson_s8cxhz$=function(t,e,n){var i=new X2(this,t,e);return n?i:i.doResume(null)},W2.prototype.findAllLocalSessionsLive=function(){return this._dao.findAllLocalSessionsLive()},J2.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},J2.prototype=Object.create(N.prototype),J2.prototype.constructor=J2,J2.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findAllLocalSessionsAsync(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},W2.prototype.findAllLocalSessionsAsync=function(t,e){var n=new J2(this,t);return e?n:n.doResume(null)},Y2.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Y2.prototype=Object.create(N.prototype),Y2.prototype.constructor=Y2,Y2.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.countAllLocalSessionsAsync_s8cxhz$(this.local$maxDateOfBirth,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},W2.prototype.countAllLocalSessionsAsync_s8cxhz$=function(t,e,n){var i=new Y2(this,t,e);return n?i:i.doResume(null)},Q2.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Q2.prototype=Object.create(N.prototype),Q2.prototype.constructor=Q2,Q2.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.endSession_liip7b$(this.local$sessionUid,this.local$newStatus,this.local$reason,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},W2.prototype.endSession_liip7b$=function(t,e,n,i,o){var r=new Q2(this,t,e,n,i);return o?r:r.doResume(null)},W2.prototype.findByUidLive_s8cxhz$=function(t){return this._dao.findByUidLive_s8cxhz$(t)},Z2.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Z2.prototype=Object.create(N.prototype),Z2.prototype.constructor=Z2,Z2.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.endOtherSessions_d2c2sj$(this.local$personUid,this.local$exemptNodeId,this.local$newStatus,this.local$reason,this.local$changeTime,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},W2.prototype.endOtherSessions_d2c2sj$=function(t,e,n,i,o,r,s){var a=new Z2(this,t,e,n,i,o,r);return s?a:a.doResume(null)},t3.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},t3.prototype=Object.create(N.prototype),t3.prototype.constructor=t3,t3.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findActiveNodeIdsByPersonUids_gox9k8$(this.local$personUids,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},W2.prototype.findActiveNodeIdsByPersonUids_gox9k8$=function(t,e,n){var i=new t3(this,t,e);return n?i:i.doResume(null)},e3.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},e3.prototype=Object.create(N.prototype),e3.prototype.constructor=e3,e3.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findActiveNodesIdsByGroupUids_gox9k8$(this.local$groupUids,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},W2.prototype.findActiveNodesIdsByGroupUids_gox9k8$=function(t,e,n){var i=new e3(this,t,e);return n?i:i.doResume(null)},n3.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},n3.prototype=Object.create(N.prototype),n3.prototype.constructor=n3,n3.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findAllActiveNodeIdsWithClazzBasedPermission_gox9k8$(this.local$clazzUids,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},W2.prototype.findAllActiveNodeIdsWithClazzBasedPermission_gox9k8$=function(t,e,n){var i=new n3(this,t,e);return n?i:i.doResume(null)},i3.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},i3.prototype=Object.create(N.prototype),i3.prototype.constructor=i3,i3.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findAllActiveNodeIdsWithSchoolBasedPermission_gox9k8$(this.local$schoolUids,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},W2.prototype.findAllActiveNodeIdsWithSchoolBasedPermission_gox9k8$=function(t,e,n){var i=new i3(this,t,e);return n?i:i.doResume(null)},W2.$metadata$={kind:c,simpleName:"UserSessionDao_Repo",interfaces:[t2]},o3.$metadata$={kind:c,simpleName:"VerbDao",interfaces:[X6]},s3.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},s3.prototype=Object.create(N.prototype),s3.prototype.constructor=s3,s3.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterVerbEntity_upsert.insertListAsync_4ezy5m$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},r3.prototype.replaceList_qj1loj$=function(t,e,n){var i=new s3(this,t,e);return n?i:i.doResume(null)},r3.prototype.insert_11rb$=function(t){return this._insertAdapterVerbEntity_.insertAndReturnId_11rb$(t)},a3.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},a3.prototype=Object.create(N.prototype),a3.prototype.constructor=a3,a3.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterVerbEntity_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},r3.prototype.insertAsync=function(t,e,n){var i=new a3(this,t,e);return n?i:i.doResume(null)},r3.prototype.insertList_4ezy5m$=function(t){this._insertAdapterVerbEntity_.insertList_4ezy5m$(t)},r3.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE VerbEntity SET urlId = ?, verbInActive = ?, verbMasterChangeSeqNum = ?, verbLocalChangeSeqNum = ?, verbLastChangedBy = ?, verbLct = ? WHERE verbUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setString_vqvrqt$(1,i.urlId),t.setBoolean_fzusl$(2,i.verbInActive),t.setLong_6svq3l$(3,i.verbMasterChangeSeqNum),t.setLong_6svq3l$(4,i.verbLocalChangeSeqNum),t.setInt_vux9f0$(5,i.verbLastChangedBy),t.setLong_6svq3l$(6,i.verbLct),t.setLong_6svq3l$(7,i.verbUid),t.executeUpdate()}return t.getConnection().commit(),V}))},r3.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE VerbEntity SET urlId = ?, verbInActive = ?, verbMasterChangeSeqNum = ?, verbLocalChangeSeqNum = ?, verbLastChangedBy = ?, verbLct = ? WHERE verbUid = ?",(e=t,function(t){return t.setString_vqvrqt$(1,e.urlId),t.setBoolean_fzusl$(2,e.verbInActive),t.setLong_6svq3l$(3,e.verbMasterChangeSeqNum),t.setLong_6svq3l$(4,e.verbLocalChangeSeqNum),t.setInt_vux9f0$(5,e.verbLastChangedBy),t.setLong_6svq3l$(6,e.verbLct),t.setLong_6svq3l$(7,e.verbUid),t.executeUpdate()}))},c3.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},c3.prototype=Object.create(N.prototype),c3.prototype.constructor=c3,c3.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},u3.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},u3.prototype=Object.create(N.prototype),u3.prototype.constructor=u3,u3.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO VerbEntityReplicate(vePk, veDestination)\n | SELECT DISTINCT VerbEntity.verbUid AS vePk,\n | ? AS veDestination\n | FROM VerbEntity\n | WHERE VerbEntity.verbLct != COALESCE(\n | (SELECT veVersionId\n | FROM VerbEntityReplicate\n | WHERE vePk = VerbEntity.verbUid\n | AND veDestination = ?), 0) \n | /*psql ON CONFLICT(vePk, veDestination) DO UPDATE\n | SET vePending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO VerbEntityReplicate(vePk, veDestination)\n | SELECT DISTINCT VerbEntity.verbUid AS vePk,\n | ? AS veDestination\n | FROM VerbEntity\n | WHERE VerbEntity.verbLct != COALESCE(\n | (SELECT veVersionId\n | FROM VerbEntityReplicate\n | WHERE vePk = VerbEntity.verbUid\n | AND veDestination = ?), 0) \n | ON CONFLICT(vePk, veDestination) DO UPDATE\n | SET vePending = true\n | \n | \n |")),l3(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},r3.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new u3(this,t,e);return n?i:i.doResume(null)},h3.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},h3.prototype=Object.create(N.prototype),h3.prototype.constructor=h3,h3.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},p3.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},p3.prototype=Object.create(N.prototype),p3.prototype.constructor=p3,p3.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO VerbEntityReplicate(vePk, veDestination)\n | SELECT DISTINCT VerbEntity.verbUid AS veUid,\n | UserSession.usClientNodeId AS veDestination\n | FROM ChangeLog\n | JOIN VerbEntity\n | ON ChangeLog.chTableId = 62\n | AND ChangeLog.chEntityPk = VerbEntity.verbUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND VerbEntity.verbLct != COALESCE(\n | (SELECT veVersionId\n | FROM VerbEntityReplicate\n | WHERE vePk = VerbEntity.verbUid\n | AND veDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(vePk, veDestination) DO UPDATE\n | SET vePending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO VerbEntityReplicate(vePk, veDestination)\n | SELECT DISTINCT VerbEntity.verbUid AS veUid,\n | UserSession.usClientNodeId AS veDestination\n | FROM ChangeLog\n | JOIN VerbEntity\n | ON ChangeLog.chTableId = 62\n | AND ChangeLog.chEntityPk = VerbEntity.verbUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND VerbEntity.verbLct != COALESCE(\n | (SELECT veVersionId\n | FROM VerbEntityReplicate\n | WHERE vePk = VerbEntity.verbUid\n | AND veDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(vePk, veDestination) DO UPDATE\n | SET vePending = true\n | \n | \n |")),d3,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},r3.prototype.replicateOnChange=function(t,e){var n=new p3(this,t);return e?n:n.doResume(null)},r3.prototype.findByUrl_pdl1vj$=function(t){return ht(this._db,new st("SELECT * FROM VerbEntity WHERE urlId = ?"),(e=t,function(t){return t.setString_vqvrqt$(1,e),ut(t.executeQuery(),_3)}));var e},f3.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},f3.prototype=Object.create(N.prototype),f3.prototype.constructor=f3,f3.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setArray_wqp8hw$(1,yt(this.local$_stmt.getConnection(),"BIGINT",q(this.local$closure$uidList))),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,m3);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},r3.prototype.findByUidList_gox9k8$=function(t,e){return ct(this._db,new st("SELECT verbUid FROM VerbEntity WHERE verbUid IN (?)",!0),(n=t,function(t,e,i){var o=new f3(n,t,e);return i?o:o.doResume(null)}),e);var n},r3.prototype.findAllVerbsAscList_gox9k8$=function(t){return ht(this._db,new st(S("\n |SELECT VerbEntity.verbUid, VerbEntity.urlId, XLangMapEntry.valueLangMap AS display\n | FROM VerbEntity LEFT JOIN XLangMapEntry on XLangMapEntry.verbLangMapUid = VerbEntity.verbUid WHERE \n | XLangMapEntry.verbLangMapUid NOT IN (?)\n "),!0),(e=t,function(t){return t.setArray_wqp8hw$(1,yt(t.getConnection(),"BIGINT",q(e))),ut(t.executeQuery(),g3)}));var e},y3.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},y3.prototype=Object.create(N.prototype),y3.prototype.constructor=y3,y3.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setArray_wqp8hw$(1,yt(this.local$_stmt.getConnection(),"BIGINT",q(this.local$closure$uidList))),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,E3);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},S3.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},S3.prototype=Object.create(N.prototype),S3.prototype.constructor=S3,S3.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$VerbDao_JdbcKt._db,new st(S("\n |SELECT * FROM (SELECT VerbEntity.verbUid, VerbEntity.urlId, XLangMapEntry.valueLangMap AS display \n | FROM VerbEntity LEFT JOIN XLangMapEntry on XLangMapEntry.verbLangMapUid = VerbEntity.verbUid WHERE \n | VerbEntity.verbUid NOT IN (?) ORDER BY display ASC) LIMIT ? OFFSET ?\n "),!0),b3(this.local$closure$uidList,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},$3.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$VerbDao_JdbcKt._db,p(["VerbEntity","XLangMapEntry"]),(n=this.this$VerbDao_JdbcKt,i=this.closure$uidList,o=e,r=t,function(t,e){var s=new S3(n,i,o,r,t);return e?s:s.doResume(null)}));var n,i,o,r},C3.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},C3.prototype=Object.create(N.prototype),C3.prototype.constructor=C3,C3.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setArray_wqp8hw$(1,yt(this.local$_stmt.getConnection(),"BIGINT",q(this.local$closure$uidList))),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,v3);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},T3.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},T3.prototype=Object.create(N.prototype),T3.prototype.constructor=T3,T3.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$VerbDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (SELECT VerbEntity.verbUid, VerbEntity.urlId, XLangMapEntry.valueLangMap AS display \n | FROM VerbEntity LEFT JOIN XLangMapEntry on XLangMapEntry.verbLangMapUid = VerbEntity.verbUid WHERE \n | VerbEntity.verbUid NOT IN (?) ORDER BY display ASC) \n "),!0),N3(this.local$closure$uidList),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},$3.prototype.getLength=function(){return new ft(this.this$VerbDao_JdbcKt._db,p(["VerbEntity","XLangMapEntry"]),(t=this.this$VerbDao_JdbcKt,e=this.closure$uidList,function(n,i){var o=new T3(t,e,n);return i?o:o.doResume(null)}));var t,e},$3.$metadata$={kind:c,interfaces:[gt]},r3.prototype.findAllVerbsAsc_gox9k8$=function(t){return new $3(this,t)},w3.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},w3.prototype=Object.create(N.prototype),w3.prototype.constructor=w3,w3.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setArray_wqp8hw$(1,yt(this.local$_stmt.getConnection(),"BIGINT",q(this.local$closure$uidList))),this.local$_stmt.setInt_vux9f0$(2,this.local$closure$_limit),this.local$_stmt.setInt_vux9f0$(3,this.local$closure$_offset),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,z3);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},R3.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},R3.prototype=Object.create(N.prototype),R3.prototype.constructor=R3,R3.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$VerbDao_JdbcKt._db,new st(S("\n |SELECT * FROM (SELECT VerbEntity.verbUid, VerbEntity.urlId, XLangMapEntry.valueLangMap AS display \n | FROM VerbEntity LEFT JOIN XLangMapEntry on XLangMapEntry.verbLangMapUid = VerbEntity.verbUid WHERE \n | VerbEntity.verbUid NOT IN (?) ORDER BY display DESC) LIMIT ? OFFSET ?\n "),!0),O3(this.local$closure$uidList,this.local$closure$_limit,this.local$closure$_offset),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},L3.prototype.getData_vux9f0$=function(t,e){return new ft(this.this$VerbDao_JdbcKt._db,p(["VerbEntity","XLangMapEntry"]),(n=this.this$VerbDao_JdbcKt,i=this.closure$uidList,o=e,r=t,function(t,e){var s=new R3(n,i,o,r,t);return e?s:s.doResume(null)}));var n,i,o,r},x3.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},x3.prototype=Object.create(N.prototype),x3.prototype.constructor=x3,x3.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setArray_wqp8hw$(1,yt(this.local$_stmt.getConnection(),"BIGINT",q(this.local$closure$uidList))),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,A3);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},U3.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},U3.prototype=Object.create(N.prototype),U3.prototype.constructor=U3,U3.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.local$this$VerbDao_JdbcKt._db,new st(S("\n |SELECT COUNT(*) FROM (SELECT VerbEntity.verbUid, VerbEntity.urlId, XLangMapEntry.valueLangMap AS display \n | FROM VerbEntity LEFT JOIN XLangMapEntry on XLangMapEntry.verbLangMapUid = VerbEntity.verbUid WHERE \n | VerbEntity.verbUid NOT IN (?) ORDER BY display DESC) \n "),!0),I3(this.local$closure$uidList),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},L3.prototype.getLength=function(){return new ft(this.this$VerbDao_JdbcKt._db,p(["VerbEntity","XLangMapEntry"]),(t=this.this$VerbDao_JdbcKt,e=this.closure$uidList,function(n,i){var o=new U3(t,e,n);return i?o:o.doResume(null)}));var t,e},L3.$metadata$={kind:c,interfaces:[gt]},r3.prototype.findAllVerbsDesc_gox9k8$=function(t){return new L3(this,t)},D3.prototype.makeSql_6taknv$=function(t){return"INSERT OR REPLACE INTO VerbEntity (verbUid, urlId, verbInActive, verbMasterChangeSeqNum, verbLocalChangeSeqNum, verbLastChangedBy, verbLct) VALUES(?, ?, ?, ?, ?, ?, ?)"},D3.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.verbUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.verbUid),t.setString_vqvrqt$(2,e.urlId),t.setBoolean_fzusl$(3,e.verbInActive),t.setLong_6svq3l$(4,e.verbMasterChangeSeqNum),t.setLong_6svq3l$(5,e.verbLocalChangeSeqNum),t.setInt_vux9f0$(6,e.verbLastChangedBy),t.setLong_6svq3l$(7,e.verbLct)},D3.$metadata$={kind:c,interfaces:[pt]},P3.prototype.makeSql_6taknv$=function(t){return"INSERT INTO VerbEntity (verbUid, urlId, verbInActive, verbMasterChangeSeqNum, verbLocalChangeSeqNum, verbLastChangedBy, verbLct) VALUES(?, ?, ?, ?, ?, ?, ?)"},P3.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.verbUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.verbUid),t.setString_vqvrqt$(2,e.urlId),t.setBoolean_fzusl$(3,e.verbInActive),t.setLong_6svq3l$(4,e.verbMasterChangeSeqNum),t.setLong_6svq3l$(5,e.verbLocalChangeSeqNum),t.setInt_vux9f0$(6,e.verbLastChangedBy),t.setLong_6svq3l$(7,e.verbLct)},P3.$metadata$={kind:c,interfaces:[pt]},r3.$metadata$={kind:c,simpleName:"VerbDao_JdbcKt",interfaces:[o3]},k3.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},k3.prototype=Object.create(N.prototype),k3.prototype.constructor=k3,k3.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},M3.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new k3(this,t,e);return n?i:i.doResume(null)},j3.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},j3.prototype=Object.create(N.prototype),j3.prototype.constructor=j3,j3.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},M3.prototype.replicateOnChange=function(t,e){var n=new j3(this,t);return e?n:n.doResume(null)},M3.prototype.findByUrl_pdl1vj$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},M3.prototype.findByUidList_gox9k8$=function(t,e){return this._dao_0.findByUidList_gox9k8$(t,e)},G3.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},G3.prototype=Object.create(N.prototype),G3.prototype.constructor=G3,G3.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$_pkManager=_t(w(this.$this._db_0)),this.local$_generatedPks=F(),this.local$$receiver=this.local$entityList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$$receiver.hasNext()){this.state_0=5;continue}if(this.local$element=this.local$$receiver.next(),O(this.local$element.verbUid,X)){if(this.state_0=3,this.result_0=this.local$_pkManager.nextIdAsync_za3lpa$(62,this),this.result_0===C)return C;continue}this.state_0=4;continue;case 3:var t=this.result_0;this.local$element.verbUid=t,this.local$_generatedPks.add_11rb$(t),this.state_0=4;continue;case 4:this.local$element.verbLct=J(),this.state_0=2;continue;case 5:if(this.state_0=6,this.result_0=this.$this._dao_0.replaceList_qj1loj$(this.local$entityList,this),this.result_0===C)return C;continue;case 6:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},M3.prototype.replaceList_qj1loj$=function(t,e,n){var i=new G3(this,t,e);return n?i:i.doResume(null)},M3.prototype.findAllVerbsAscList_gox9k8$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},M3.prototype.findAllVerbsAsc_gox9k8$=function(t){return this._dao_0.findAllVerbsAsc_gox9k8$(t)},M3.prototype.findAllVerbsDesc_gox9k8$=function(t){return this._dao_0.findAllVerbsDesc_gox9k8$(t)},M3.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},q3.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},q3.prototype=Object.create(N.prototype),q3.prototype.constructor=q3,q3.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.verbUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(62,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.verbUid=e,this.state_0=3;continue;case 3:if(this.local$entity.verbLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.verbUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},M3.prototype.insertAsync=function(t,e,n){var i=new q3(this,t,e);return n?i:i.doResume(null)},M3.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},M3.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},M3.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},M3.$metadata$={kind:c,simpleName:"VerbDao_ReplicateWrapper",interfaces:[o3]},B3.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},B3.prototype=Object.create(N.prototype),B3.prototype.constructor=B3,B3.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},F3.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new B3(this,t,e);return n?i:i.doResume(null)},W3.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},W3.prototype=Object.create(N.prototype),W3.prototype.constructor=W3,W3.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},F3.prototype.replicateOnChange=function(t,e){var n=new W3(this,t);return e?n:n.doResume(null)},F3.prototype.findByUrl_pdl1vj$=function(t){return this._dao.findByUrl_pdl1vj$(t)},H3.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},H3.prototype=Object.create(N.prototype),H3.prototype.constructor=H3,H3.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.findByUidList_gox9k8$(this.local$uidList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},F3.prototype.findByUidList_gox9k8$=function(t,e,n){var i=new H3(this,t,e);return n?i:i.doResume(null)},V3.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},V3.prototype=Object.create(N.prototype),V3.prototype.constructor=V3,V3.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replaceList_qj1loj$(this.local$entityList,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},F3.prototype.replaceList_qj1loj$=function(t,e,n){var i=new V3(this,t,e);return n?i:i.doResume(null)},F3.prototype.findAllVerbsAscList_gox9k8$=function(t){return this._dao.findAllVerbsAscList_gox9k8$(t)},F3.prototype.findAllVerbsAsc_gox9k8$=function(t){return this._dao.findAllVerbsAsc_gox9k8$(t)},F3.prototype.findAllVerbsDesc_gox9k8$=function(t){return this._dao.findAllVerbsDesc_gox9k8$(t)},F3.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},K3.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},K3.prototype=Object.create(N.prototype),K3.prototype.constructor=K3,K3.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},F3.prototype.insertAsync=function(t,e,n){var i=new K3(this,t,e);return n?i:i.doResume(null)},F3.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},F3.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},F3.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},F3.$metadata$={kind:c,simpleName:"VerbDao_Repo",interfaces:[o3]},X3.$metadata$={kind:c,simpleName:"XLangMapEntryDao",interfaces:[X6]},J3.prototype.insert_11rb$=function(t){return this._insertAdapterXLangMapEntry_.insertAndReturnId_11rb$(t)},Y3.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Y3.prototype=Object.create(N.prototype),Y3.prototype.constructor=Y3,Y3.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterXLangMapEntry_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},J3.prototype.insertAsync=function(t,e,n){var i=new Y3(this,t,e);return n?i:i.doResume(null)},J3.prototype.insertList_4ezy5m$=function(t){this._insertAdapterXLangMapEntry_.insertList_4ezy5m$(t)},J3.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE XLangMapEntry SET verbLangMapUid = ?, objectLangMapUid = ?, languageLangMapUid = ?, languageVariantLangMapUid = ?, valueLangMap = ?, statementLangMapMasterCsn = ?, statementLangMapLocalCsn = ?, statementLangMapLcb = ?, statementLangMapLct = ? WHERE statementLangMapUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setLong_6svq3l$(1,i.verbLangMapUid),t.setLong_6svq3l$(2,i.objectLangMapUid),t.setLong_6svq3l$(3,i.languageLangMapUid),t.setLong_6svq3l$(4,i.languageVariantLangMapUid),t.setString_vqvrqt$(5,i.valueLangMap),t.setInt_vux9f0$(6,i.statementLangMapMasterCsn),t.setInt_vux9f0$(7,i.statementLangMapLocalCsn),t.setInt_vux9f0$(8,i.statementLangMapLcb),t.setLong_6svq3l$(9,i.statementLangMapLct),t.setLong_6svq3l$(10,i.statementLangMapUid),t.executeUpdate()}return t.getConnection().commit(),V}))},J3.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE XLangMapEntry SET verbLangMapUid = ?, objectLangMapUid = ?, languageLangMapUid = ?, languageVariantLangMapUid = ?, valueLangMap = ?, statementLangMapMasterCsn = ?, statementLangMapLocalCsn = ?, statementLangMapLcb = ?, statementLangMapLct = ? WHERE statementLangMapUid = ?",(e=t,function(t){return t.setLong_6svq3l$(1,e.verbLangMapUid),t.setLong_6svq3l$(2,e.objectLangMapUid),t.setLong_6svq3l$(3,e.languageLangMapUid),t.setLong_6svq3l$(4,e.languageVariantLangMapUid),t.setString_vqvrqt$(5,e.valueLangMap),t.setInt_vux9f0$(6,e.statementLangMapMasterCsn),t.setInt_vux9f0$(7,e.statementLangMapLocalCsn),t.setInt_vux9f0$(8,e.statementLangMapLcb),t.setLong_6svq3l$(9,e.statementLangMapLct),t.setLong_6svq3l$(10,e.statementLangMapUid),t.executeUpdate()}))},Q3.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Q3.prototype=Object.create(N.prototype),Q3.prototype.constructor=Q3,Q3.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},t6.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},t6.prototype=Object.create(N.prototype),t6.prototype.constructor=t6,t6.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO XLangMapEntryReplicate(xlmePk, xlmeDestination)\n | SELECT DISTINCT XLangMapEntry.statementLangMapUid AS xlmePk,\n | ? AS xlmeDestination\n | FROM XLangMapEntry\n | JOIN UserSession ON UserSession.usClientNodeId = ?\n | --notpsql \n | WHERE XLangMapEntry.statementLangMapLct != COALESCE(\n | (SELECT xlmeVersionId\n | FROM XLangMapEntryReplicate\n | WHERE xlmePk = XLangMapEntry.statementLangMapUid\n | AND xlmeDestination = UserSession.usClientNodeId), 0)\n | --endnotpsql \n | /*psql ON CONFLICT(xlmePk, xlmeDestination) DO UPDATE\n | SET xlmePending = (SELECT XLangMapEntry.statementLangMapLct\n | FROM XLangmapEntry\n | WHERE XLangmapEntry.statementLangMapUid = EXCLUDED.xlmePk)\n | != XLangMapEntryReplicate.xlmeVersionId\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO XLangMapEntryReplicate(xlmePk, xlmeDestination)\n | SELECT DISTINCT XLangMapEntry.statementLangMapUid AS xlmePk,\n | ? AS xlmeDestination\n | FROM XLangMapEntry\n | JOIN UserSession ON UserSession.usClientNodeId = ?\n | ON CONFLICT(xlmePk, xlmeDestination) DO UPDATE\n | SET xlmePending = (SELECT XLangMapEntry.statementLangMapLct\n | FROM XLangmapEntry\n | WHERE XLangmapEntry.statementLangMapUid = EXCLUDED.xlmePk)\n | != XLangMapEntryReplicate.xlmeVersionId\n | \n | \n |")),Z3(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},J3.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new t6(this,t,e);return n?i:i.doResume(null)},e6.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},e6.prototype=Object.create(N.prototype),e6.prototype.constructor=e6,e6.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},i6.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},i6.prototype=Object.create(N.prototype),i6.prototype.constructor=i6,i6.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO XLangMapEntryReplicate(xlmePk, xlmeDestination)\n | SELECT DISTINCT XLangMapEntry.statementLangMapUid AS xlmeUid,\n | UserSession.usClientNodeId AS xlmeDestination\n | FROM ChangeLog\n | JOIN XLangMapEntry\n | ON ChangeLog.chTableId = 74\n | AND ChangeLog.chEntityPk = XLangMapEntry.statementLangMapUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND XLangMapEntry.statementLangMapLct != COALESCE(\n | (SELECT xlmeVersionId\n | FROM XLangMapEntryReplicate\n | WHERE xlmePk = XLangMapEntry.statementLangMapUid\n | AND xlmeDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(xlmePk, xlmeDestination) DO UPDATE\n | SET xlmePending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO XLangMapEntryReplicate(xlmePk, xlmeDestination)\n | SELECT DISTINCT XLangMapEntry.statementLangMapUid AS xlmeUid,\n | UserSession.usClientNodeId AS xlmeDestination\n | FROM ChangeLog\n | JOIN XLangMapEntry\n | ON ChangeLog.chTableId = 74\n | AND ChangeLog.chEntityPk = XLangMapEntry.statementLangMapUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND XLangMapEntry.statementLangMapLct != COALESCE(\n | (SELECT xlmeVersionId\n | FROM XLangMapEntryReplicate\n | WHERE xlmePk = XLangMapEntry.statementLangMapUid\n | AND xlmeDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(xlmePk, xlmeDestination) DO UPDATE\n | SET xlmePending = true\n | \n | \n |")),n6,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},J3.prototype.replicateOnChange=function(t,e){var n=new i6(this,t);return e?n:n.doResume(null)},r6.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},r6.prototype=Object.create(N.prototype),r6.prototype.constructor=r6,r6.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setArray_wqp8hw$(1,yt(this.local$_stmt.getConnection(),"INTEGER",q(this.local$closure$ids))),this.state_0=2,this.result_0=dt(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return ut(this.result_0,o6);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},J3.prototype.getValuesWithListOfId_pqoyrt$=function(t,e){return ct(this._db,new st("SELECT * FROM XLangMapEntry WHERE objectLangMapUid IN (?)",!0),(n=t,function(t,e,i){var o=new r6(n,t,e);return i?o:o.doResume(null)}),e);var n},J3.prototype.getXLangMapFromVerb_3pjtqy$=function(t,e){return ht(this._db,new st(S("\n |SELECT * FROM XLangMapEntry WHERE \n | verbLangMapUid = ? AND languageLangMapUid = ? LIMIT 1\n ")),(n=t,i=e,function(t){return t.setLong_6svq3l$(1,n),t.setLong_6svq3l$(2,i),ut(t.executeQuery(),s6)}));var n,i},J3.prototype.getXLangMapFromObject_3pjtqy$=function(t,e){return ht(this._db,new st(S("\n |SELECT * FROM XLangMapEntry WHERE \n | objectLangMapUid = ? AND languageLangMapUid = ? LIMIT 1\n ")),(n=t,i=e,function(t){return t.setLong_6svq3l$(1,n),t.setLong_6svq3l$(2,i),ut(t.executeQuery(),a6)}));var n,i},c6.prototype.makeSql_6taknv$=function(t){return"INSERT INTO XLangMapEntry (statementLangMapUid, verbLangMapUid, objectLangMapUid, languageLangMapUid, languageVariantLangMapUid, valueLangMap, statementLangMapMasterCsn, statementLangMapLocalCsn, statementLangMapLcb, statementLangMapLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},c6.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.statementLangMapUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.statementLangMapUid),t.setLong_6svq3l$(2,e.verbLangMapUid),t.setLong_6svq3l$(3,e.objectLangMapUid),t.setLong_6svq3l$(4,e.languageLangMapUid),t.setLong_6svq3l$(5,e.languageVariantLangMapUid),t.setString_vqvrqt$(6,e.valueLangMap),t.setInt_vux9f0$(7,e.statementLangMapMasterCsn),t.setInt_vux9f0$(8,e.statementLangMapLocalCsn),t.setInt_vux9f0$(9,e.statementLangMapLcb),t.setLong_6svq3l$(10,e.statementLangMapLct)},c6.$metadata$={kind:c,interfaces:[pt]},J3.$metadata$={kind:c,simpleName:"XLangMapEntryDao_JdbcKt",interfaces:[X3]},u6.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},u6.prototype=Object.create(N.prototype),u6.prototype.constructor=u6,u6.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},l6.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new u6(this,t,e);return n?i:i.doResume(null)},h6.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},h6.prototype=Object.create(N.prototype),h6.prototype.constructor=h6,h6.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},l6.prototype.replicateOnChange=function(t,e){var n=new h6(this,t);return e?n:n.doResume(null)},l6.prototype.getValuesWithListOfId_pqoyrt$=function(t,e){return this._dao_0.getValuesWithListOfId_pqoyrt$(t,e)},l6.prototype.getXLangMapFromVerb_3pjtqy$=function(t,e){throw v("Synchronous db access is NOT possible on Javascript!")},l6.prototype.getXLangMapFromObject_3pjtqy$=function(t,e){throw v("Synchronous db access is NOT possible on Javascript!")},l6.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},d6.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},d6.prototype=Object.create(N.prototype),d6.prototype.constructor=d6,d6.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.statementLangMapUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(74,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.statementLangMapUid=e,this.state_0=3;continue;case 3:if(this.local$entity.statementLangMapLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.statementLangMapUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},l6.prototype.insertAsync=function(t,e,n){var i=new d6(this,t,e);return n?i:i.doResume(null)},l6.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},l6.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},l6.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},l6.$metadata$={kind:c,simpleName:"XLangMapEntryDao_ReplicateWrapper",interfaces:[X3]},_6.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},_6.prototype=Object.create(N.prototype),_6.prototype.constructor=_6,_6.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},p6.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new _6(this,t,e);return n?i:i.doResume(null)},m6.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},m6.prototype=Object.create(N.prototype),m6.prototype.constructor=m6,m6.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},p6.prototype.replicateOnChange=function(t,e){var n=new m6(this,t);return e?n:n.doResume(null)},f6.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},f6.prototype=Object.create(N.prototype),f6.prototype.constructor=f6,f6.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.getValuesWithListOfId_pqoyrt$(this.local$ids,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},p6.prototype.getValuesWithListOfId_pqoyrt$=function(t,e,n){var i=new f6(this,t,e);return n?i:i.doResume(null)},p6.prototype.getXLangMapFromVerb_3pjtqy$=function(t,e){return this._dao.getXLangMapFromVerb_3pjtqy$(t,e)},p6.prototype.getXLangMapFromObject_3pjtqy$=function(t,e){return this._dao.getXLangMapFromObject_3pjtqy$(t,e)},p6.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},g6.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},g6.prototype=Object.create(N.prototype),g6.prototype.constructor=g6,g6.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},p6.prototype.insertAsync=function(t,e,n){var i=new g6(this,t,e);return n?i:i.doResume(null)},p6.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},p6.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},p6.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},p6.$metadata$={kind:c,simpleName:"XLangMapEntryDao_Repo",interfaces:[X3]},$6.$metadata$={kind:c,simpleName:"XObjectDao",interfaces:[X6]},E6.prototype.insert_11rb$=function(t){return this._insertAdapterXObjectEntity_.insertAndReturnId_11rb$(t)},y6.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},y6.prototype=Object.create(N.prototype),y6.prototype.constructor=y6,y6.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._insertAdapterXObjectEntity_.insertAndReturnIdAsync_11rb$(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},E6.prototype.insertAsync=function(t,e,n){var i=new y6(this,t,e);return n?i:i.doResume(null)},E6.prototype.insertList_4ezy5m$=function(t){this._insertAdapterXObjectEntity_.insertList_4ezy5m$(t)},E6.prototype.updateList_4ezy5m$=function(t){var e;rt(this._db,"UPDATE XObjectEntity SET objectType = ?, objectId = ?, definitionType = ?, interactionType = ?, correctResponsePattern = ?, objectContentEntryUid = ?, objectStatementRefUid = ?, xObjectMasterChangeSeqNum = ?, xObjectocalChangeSeqNum = ?, xObjectLastChangedBy = ?, xObjectLct = ? WHERE xObjectUid = ?",(e=t,function(t){var n;for(t.getConnection().setAutoCommit_6taknv$(!1),n=e.iterator();n.hasNext();){var i=n.next();t.setString_vqvrqt$(1,i.objectType),t.setString_vqvrqt$(2,i.objectId),t.setString_vqvrqt$(3,i.definitionType),t.setString_vqvrqt$(4,i.interactionType),t.setString_vqvrqt$(5,i.correctResponsePattern),t.setLong_6svq3l$(6,i.objectContentEntryUid),t.setLong_6svq3l$(7,i.objectStatementRefUid),t.setLong_6svq3l$(8,i.xObjectMasterChangeSeqNum),t.setLong_6svq3l$(9,i.xObjectocalChangeSeqNum),t.setInt_vux9f0$(10,i.xObjectLastChangedBy),t.setLong_6svq3l$(11,i.xObjectLct),t.setLong_6svq3l$(12,i.xObjectUid),t.executeUpdate()}return t.getConnection().commit(),V}))},E6.prototype.update_11rb$=function(t){var e;rt(this._db,"UPDATE XObjectEntity SET objectType = ?, objectId = ?, definitionType = ?, interactionType = ?, correctResponsePattern = ?, objectContentEntryUid = ?, objectStatementRefUid = ?, xObjectMasterChangeSeqNum = ?, xObjectocalChangeSeqNum = ?, xObjectLastChangedBy = ?, xObjectLct = ? WHERE xObjectUid = ?",(e=t,function(t){return t.setString_vqvrqt$(1,e.objectType),t.setString_vqvrqt$(2,e.objectId),t.setString_vqvrqt$(3,e.definitionType),t.setString_vqvrqt$(4,e.interactionType),t.setString_vqvrqt$(5,e.correctResponsePattern),t.setLong_6svq3l$(6,e.objectContentEntryUid),t.setLong_6svq3l$(7,e.objectStatementRefUid),t.setLong_6svq3l$(8,e.xObjectMasterChangeSeqNum),t.setLong_6svq3l$(9,e.xObjectocalChangeSeqNum),t.setInt_vux9f0$(10,e.xObjectLastChangedBy),t.setLong_6svq3l$(11,e.xObjectLct),t.setLong_6svq3l$(12,e.xObjectUid),t.executeUpdate()}))},b6.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},b6.prototype=Object.create(N.prototype),b6.prototype.constructor=b6,b6.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$_stmt.setLong_6svq3l$(1,this.local$closure$newNodeId),this.local$_stmt.setLong_6svq3l$(2,this.local$closure$newNodeId),this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},v6.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},v6.prototype=Object.create(N.prototype),v6.prototype.constructor=v6,v6.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO XObjectEntityReplicate(xoePk, xoeDestination)\n | SELECT DISTINCT XObjectEntity.xObjectUid AS xoePk,\n | ? AS xoeDestination\n | FROM XObjectEntity\n | WHERE XObjectEntity.xObjectLct != COALESCE(\n | (SELECT xoeVersionId\n | FROM XObjectEntityReplicate\n | WHERE xoePk = XObjectEntity.xObjectUid\n | AND xoeDestination = ?), 0) \n | /*psql ON CONFLICT(xoePk, xoeDestination) DO UPDATE\n | SET xoePending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO XObjectEntityReplicate(xoePk, xoeDestination)\n | SELECT DISTINCT XObjectEntity.xObjectUid AS xoePk,\n | ? AS xoeDestination\n | FROM XObjectEntity\n | WHERE XObjectEntity.xObjectLct != COALESCE(\n | (SELECT xoeVersionId\n | FROM XObjectEntityReplicate\n | WHERE xoePk = XObjectEntity.xObjectUid\n | AND xoeDestination = ?), 0) \n | ON CONFLICT(xoePk, xoeDestination) DO UPDATE\n | SET xoePending = true\n | \n | \n |")),S6(this.local$newNodeId),this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},E6.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new v6(this,t,e);return n?i:i.doResume(null)},C6.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},C6.prototype=Object.create(N.prototype),C6.prototype.constructor=C6,C6.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=at(this.local$_stmt,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},T6.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},T6.prototype=Object.create(N.prototype),T6.prototype.constructor=T6,T6.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ct(this.$this._db,new st(S("\n |\n | REPLACE INTO XObjectEntityReplicate(xoePk, xoeDestination)\n | SELECT DISTINCT XObjectEntity.xObjectUid AS xoeUid,\n | UserSession.usClientNodeId AS xoeDestination\n | FROM ChangeLog\n | JOIN XObjectEntity\n | ON ChangeLog.chTableId = 64\n | AND ChangeLog.chEntityPk = XObjectEntity.xObjectUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND XObjectEntity.xObjectLct != COALESCE(\n | (SELECT xoeVersionId\n | FROM XObjectEntityReplicate\n | WHERE xoePk = XObjectEntity.xObjectUid\n | AND xoeDestination = UserSession.usClientNodeId), 0)\n | /*psql ON CONFLICT(xoePk, xoeDestination) DO UPDATE\n | SET xoePending = true\n | */ \n | \n "),void 0,void 0,void 0,S("\n |INSERT INTO XObjectEntityReplicate(xoePk, xoeDestination)\n | SELECT DISTINCT XObjectEntity.xObjectUid AS xoeUid,\n | UserSession.usClientNodeId AS xoeDestination\n | FROM ChangeLog\n | JOIN XObjectEntity\n | ON ChangeLog.chTableId = 64\n | AND ChangeLog.chEntityPk = XObjectEntity.xObjectUid\n | JOIN UserSession ON UserSession.usStatus = 1\n | WHERE UserSession.usClientNodeId != (\n | SELECT nodeClientId \n | FROM SyncNode\n | LIMIT 1)\n | AND XObjectEntity.xObjectLct != COALESCE(\n | (SELECT xoeVersionId\n | FROM XObjectEntityReplicate\n | WHERE xoePk = XObjectEntity.xObjectUid\n | AND xoeDestination = UserSession.usClientNodeId), 0)\n | ON CONFLICT(xoePk, xoeDestination) DO UPDATE\n | SET xoePending = true\n | \n | \n |")),N6,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},E6.prototype.replicateOnChange=function(t,e){var n=new T6(this,t);return e?n:n.doResume(null)},E6.prototype.findByObjectId_pdl1vj$=function(t){return ht(this._db,new st("SELECT * from XObjectEntity WHERE objectId = ?"),(e=t,function(t){return t.setString_vqvrqt$(1,e),ut(t.executeQuery(),L6)}));var e},E6.prototype.findByXobjectUid_s8cxhz$=function(t){return ht(this._db,new st("SELECT * from XObjectEntity WHERE xObjectUid = ?"),(e=t,function(t){return t.setLong_6svq3l$(1,e),ut(t.executeQuery(),z6)}));var e},w6.prototype.makeSql_6taknv$=function(t){return"INSERT INTO XObjectEntity (xObjectUid, objectType, objectId, definitionType, interactionType, correctResponsePattern, objectContentEntryUid, objectStatementRefUid, xObjectMasterChangeSeqNum, xObjectocalChangeSeqNum, xObjectLastChangedBy, xObjectLct) VALUES(?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?, ?)"},w6.prototype.bindPreparedStmtToEntity_wfgq1m$=function(t,e){O(e.xObjectUid,X)?t.setObject_6t2rgq$(1,null):t.setLong_6svq3l$(1,e.xObjectUid),t.setString_vqvrqt$(2,e.objectType),t.setString_vqvrqt$(3,e.objectId),t.setString_vqvrqt$(4,e.definitionType),t.setString_vqvrqt$(5,e.interactionType),t.setString_vqvrqt$(6,e.correctResponsePattern),t.setLong_6svq3l$(7,e.objectContentEntryUid),t.setLong_6svq3l$(8,e.objectStatementRefUid),t.setLong_6svq3l$(9,e.xObjectMasterChangeSeqNum),t.setLong_6svq3l$(10,e.xObjectocalChangeSeqNum),t.setInt_vux9f0$(11,e.xObjectLastChangedBy),t.setLong_6svq3l$(12,e.xObjectLct)},w6.$metadata$={kind:c,interfaces:[pt]},E6.$metadata$={kind:c,simpleName:"XObjectDao_JdbcKt",interfaces:[$6]},R6.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},R6.prototype=Object.create(N.prototype),R6.prototype.constructor=R6,R6.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},O6.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new R6(this,t,e);return n?i:i.doResume(null)},A6.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},A6.prototype=Object.create(N.prototype),A6.prototype.constructor=A6,A6.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao_0.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},O6.prototype.replicateOnChange=function(t,e){var n=new A6(this,t);return e?n:n.doResume(null)},O6.prototype.findByObjectId_pdl1vj$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},O6.prototype.findByXobjectUid_s8cxhz$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},O6.prototype.insert_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},x6.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},x6.prototype=Object.create(N.prototype),x6.prototype.constructor=x6,x6.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=_t(w(this.$this._db_0));if(O(this.local$entity.xObjectUid,X)){if(this.state_0=2,this.result_0=t.nextIdAsync_za3lpa$(64,this),this.result_0===C)return C;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:var e=this.result_0;this.local$entity.xObjectUid=e,this.state_0=3;continue;case 3:if(this.local$entity.xObjectLct=J(),this.state_0=4,this.result_0=this.$this._dao_0.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 4:return this.local$entity.xObjectUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},O6.prototype.insertAsync=function(t,e,n){var i=new x6(this,t,e);return n?i:i.doResume(null)},O6.prototype.insertList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},O6.prototype.updateList_4ezy5m$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},O6.prototype.update_11rb$=function(t){throw v("Synchronous db access is NOT possible on Javascript!")},O6.$metadata$={kind:c,simpleName:"XObjectDao_ReplicateWrapper",interfaces:[$6]},U6.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},U6.prototype=Object.create(N.prototype),U6.prototype.constructor=U6,U6.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnNewNode_s8cxhz$(this.local$newNodeId,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},I6.prototype.replicateOnNewNode_s8cxhz$=function(t,e,n){var i=new U6(this,t,e);return n?i:i.doResume(null)},D6.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},D6.prototype=Object.create(N.prototype),D6.prototype.constructor=D6,D6.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.replicateOnChange(this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},I6.prototype.replicateOnChange=function(t,e){var n=new D6(this,t);return e?n:n.doResume(null)},I6.prototype.findByObjectId_pdl1vj$=function(t){return this._dao.findByObjectId_pdl1vj$(t)},I6.prototype.findByXobjectUid_s8cxhz$=function(t){return this._dao.findByXobjectUid_s8cxhz$(t)},I6.prototype.insert_11rb$=function(t){return this._dao.insert_11rb$(t)},P6.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},P6.prototype=Object.create(N.prototype),P6.prototype.constructor=P6,P6.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this._dao.insertAsync(this.local$entity,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},I6.prototype.insertAsync=function(t,e,n){var i=new P6(this,t,e);return n?i:i.doResume(null)},I6.prototype.insertList_4ezy5m$=function(t){this._dao.insertList_4ezy5m$(t)},I6.prototype.updateList_4ezy5m$=function(t){this._dao.updateList_4ezy5m$(t)},I6.prototype.update_11rb$=function(t){this._dao.update_11rb$(t)},I6.$metadata$={kind:c,simpleName:"XObjectDao_Repo",interfaces:[$6]},Object.defineProperty(M6.prototype,"attachmentUri",{configurable:!0,get:function(){return this.entity_0.cepUri},set:function(t){this.entity_0.cepUri=t}}),Object.defineProperty(M6.prototype,"attachmentMd5",{configurable:!0,get:function(){return this.entity_0.cepMd5},set:function(t){this.entity_0.cepMd5=t}}),Object.defineProperty(M6.prototype,"attachmentSize",{configurable:!0,get:function(){return this.entity_0.cepFileSize},set:function(t){this.entity_0.cepFileSize=t}}),Object.defineProperty(M6.prototype,"tableName",{configurable:!0,get:function(){return"ContentEntryPicture"}}),M6.$metadata$={kind:c,simpleName:"ContentEntryPicture_EwaAdapter",interfaces:[Nt]},M6.prototype.unbox=function(){return this.entity_0},M6.prototype.toString=function(){return"ContentEntryPicture_EwaAdapter(entity="+e.toString(this.entity_0)+")"},M6.prototype.hashCode=function(){var t=0;return t=31*t+e.hashCode(this.entity_0)|0},M6.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.entity_0,t.entity_0)},Object.defineProperty(k6.prototype,"attachmentUri",{configurable:!0,get:function(){return this.entity_0.casaUri},set:function(t){this.entity_0.casaUri=t}}),Object.defineProperty(k6.prototype,"attachmentMd5",{configurable:!0,get:function(){return this.entity_0.casaMd5},set:function(t){this.entity_0.casaMd5=t}}),Object.defineProperty(k6.prototype,"attachmentSize",{configurable:!0,get:function(){return this.entity_0.casaSize},set:function(t){this.entity_0.casaSize=t}}),Object.defineProperty(k6.prototype,"tableName",{configurable:!0,get:function(){return"CourseAssignmentSubmissionAttachment"}}),k6.$metadata$={kind:c,simpleName:"CourseAssignmentSubmissionAttachment_EwaAdapter",interfaces:[Nt]},k6.prototype.unbox=function(){return this.entity_0},k6.prototype.toString=function(){return"CourseAssignmentSubmissionAttachment_EwaAdapter(entity="+e.toString(this.entity_0)+")"},k6.prototype.hashCode=function(){var t=0;return t=31*t+e.hashCode(this.entity_0)|0},k6.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.entity_0,t.entity_0)},Object.defineProperty(j6.prototype,"attachmentUri",{configurable:!0,get:function(){return this.entity_0.coursePictureUri},set:function(t){this.entity_0.coursePictureUri=t}}),Object.defineProperty(j6.prototype,"attachmentMd5",{configurable:!0,get:function(){return this.entity_0.coursePictureMd5},set:function(t){this.entity_0.coursePictureMd5=t}}),Object.defineProperty(j6.prototype,"attachmentSize",{configurable:!0,get:function(){return this.entity_0.coursePictureFileSize},set:function(t){this.entity_0.coursePictureFileSize=t}}),Object.defineProperty(j6.prototype,"tableName",{configurable:!0,get:function(){return"CoursePicture"}}),j6.$metadata$={kind:c,simpleName:"CoursePicture_EwaAdapter",interfaces:[Nt]},j6.prototype.unbox=function(){return this.entity_0},j6.prototype.toString=function(){return"CoursePicture_EwaAdapter(entity="+e.toString(this.entity_0)+")"},j6.prototype.hashCode=function(){var t=0;return t=31*t+e.hashCode(this.entity_0)|0},j6.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.entity_0,t.entity_0)},Object.defineProperty(G6.prototype,"attachmentUri",{configurable:!0,get:function(){return this.entity_0.personPictureUri},set:function(t){this.entity_0.personPictureUri=t}}),Object.defineProperty(G6.prototype,"attachmentMd5",{configurable:!0,get:function(){return this.entity_0.personPictureMd5},set:function(t){this.entity_0.personPictureMd5=t}}),Object.defineProperty(G6.prototype,"attachmentSize",{configurable:!0,get:function(){return this.entity_0.fileSize},set:function(t){this.entity_0.fileSize=t}}),Object.defineProperty(G6.prototype,"tableName",{configurable:!0,get:function(){return"PersonPicture"}}),G6.$metadata$={kind:c,simpleName:"PersonPicture_EwaAdapter",interfaces:[Nt]},G6.prototype.unbox=function(){return this.entity_0},G6.prototype.toString=function(){return"PersonPicture_EwaAdapter(entity="+e.toString(this.entity_0)+")"},G6.prototype.hashCode=function(){var t=0;return t=31*t+e.hashCode(this.entity_0)|0},G6.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.entity_0,t.entity_0)},q6.prototype.onCreate_j4i37p$=function(t){return 1===Tt(t)?Lt(K6().sqliteContentJobItemTriggers_0):Lt(K6().postgresContentJobItemTriggers_0)},q6.prototype.onOpen_j4i37p$=function(t){return 1===Tt(t)?Et("\n PRAGMA recursive_triggers = ON;\n "):At()},F6.prototype.dumpSqlStatements=function(){zt("SQLITE:"),zt(Ot(this.sqliteContentJobItemTriggers_0,'",\n"','"','"',void 0,void 0,B6)),zt("POSTGRES"),zt(Ot(this.postgresContentJobItemTriggers_0,'",\n"','"','"',void 0,void 0,W6))},F6.prototype.getStatusOfItemAndChildrenSql_0=function(t){return"\n (SELECT cjiRecursiveStatus AS status \n FROM ContentJobItem \n WHERE cjiParentCjiUid = "+t+"\n UNION\n SELECT cjiStatus AS status\n FROM ContentJobItem \n WHERE cjiUid = "+t+") AS JobStatus\n "},F6.prototype.recursiveStatusCaseClause_61zpoe$=function(t){return"\n (CASE WHEN \n\t\t\t\t\t\t\t(SELECT Count(*) FROM "+this.getStatusOfItemAndChildrenSql_0(t)+") = \n\t\t\t\t\t\t\t(SELECT Count(*) \n\t\t\t\t\t\t\t FROM "+this.getStatusOfItemAndChildrenSql_0(t)+" \n\t\t\t\t\t\t\t WHERE status = 24) \n\t\t\t\t\t THEN 24 \n WHEN (SELECT Count(*) FROM "+this.getStatusOfItemAndChildrenSql_0(t)+") = \n (SELECT Count(*) \n\t\t\t\t\t\t\t FROM "+this.getStatusOfItemAndChildrenSql_0(t)+" \n\t\t\t\t\t\t\t WHERE status = 25) \n THEN 25\n WHEN(SELECT COUNT(*) FROM "+this.getStatusOfItemAndChildrenSql_0(t)+") = \n (SELECT COUNT(*)\n FROM "+this.getStatusOfItemAndChildrenSql_0(t)+"\n WHERE status = 28)\n THEN 28\n\t\t\t\t\t\t WHEN EXISTS (SELECT status \n\t\t\t\t\t\t\t\t\t\tFROM "+this.getStatusOfItemAndChildrenSql_0(t)+"\t\n\t\t\t\t\t\t\t\t\t\tWHERE status = 12)\n\t\t\t\t\t\t THEN 12\n WHEN EXISTS (SELECT status\n\t\t\t\t\t\t\t\t\t\tFROM "+this.getStatusOfItemAndChildrenSql_0(t)+" \n\t\t\t\t\t\t\t\t\t WHERE (status = 25\n OR status = 23))\n\t\t\t\t\t\t THEN 23\n\t\t\t\t\t\t WHEN EXISTS (SELECT status\n\t\t\t\t\t\t\t\t\t\tFROM "+this.getStatusOfItemAndChildrenSql_0(t)+" \n\t\t\t\t\t\t\t\t\t WHERE status = 5)\n\t\t\t\t\t\t THEN 5 \n\t\t\t\t\t\t ELSE 4 END) \n "},F6.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var H6,V6=null;function K6(){return null===V6&&new F6,V6}function X6(){}function J6(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$tmp$=void 0,this.local$$receiver=t,this.local$uidList=e,this.local$changeTime=n}function Y6(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$tmp$=void 0,this.local$$receiver=t,this.local$uidList=e,this.local$changeTime=n}function Q6(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$tmp$=void 0,this.local$$receiver=t,this.local$uidList=e,this.local$changeTime=n}function Z6(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$tmp$=void 0,this.local$$receiver=t,this.local$uidList=e,this.local$changeTime=n}function t4(){}function e4(){g4=this,this.ENCRYPTED_PASS_PREFIX="e:",this.PLAIN_PASS_PREFIX="p:"}q6.$metadata$={kind:c,simpleName:"ContentJobItemTriggersCallback",interfaces:[Rt]},X6.$metadata$={kind:Ut,simpleName:"BaseDao",interfaces:[]},J6.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},J6.prototype=Object.create(N.prototype),J6.prototype.constructor=J6,J6.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$tmp$=this.local$uidList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$tmp$.hasNext()){this.state_0=4;continue}var t=this.local$tmp$.next();if(this.state_0=3,this.result_0=this.local$$receiver.updateActiveByUid_zaz62j$(t,!1,this.local$changeTime,this),this.result_0===C)return C;continue;case 3:this.state_0=2;continue;case 4:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Y6.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Y6.prototype=Object.create(N.prototype),Y6.prototype.constructor=Y6,Y6.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$tmp$=this.local$uidList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$tmp$.hasNext()){this.state_0=4;continue}var t=this.local$tmp$.next();if(this.state_0=3,this.result_0=this.local$$receiver.updateActiveByUid_zaz62j$(t,!1,this.local$changeTime,this),this.result_0===C)return C;continue;case 3:this.state_0=2;continue;case 4:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Q6.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Q6.prototype=Object.create(N.prototype),Q6.prototype.constructor=Q6,Q6.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$tmp$=this.local$uidList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$tmp$.hasNext()){this.state_0=4;continue}var t=this.local$tmp$.next();if(this.state_0=3,this.result_0=this.local$$receiver.updateActiveByUid_zaz62j$(t,!1,this.local$changeTime,this),this.result_0===C)return C;continue;case 3:this.state_0=2;continue;case 4:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Z6.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Z6.prototype=Object.create(N.prototype),Z6.prototype.constructor=Z6,Z6.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$tmp$=this.local$uidList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$tmp$.hasNext()){this.state_0=4;continue}var t=this.local$tmp$.next();if(this.state_0=3,this.result_0=this.local$$receiver.updateActiveByUid_zaz62j$(t,!1,this.local$changeTime,this),this.result_0===C)return C;continue;case 3:this.state_0=2;continue;case 4:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},t4.$metadata$={kind:Ut,simpleName:"OneToManyJoinDao",interfaces:[]},e4.prototype.encryptThisPassword_61zpoe$=function(t){return kt(t)},e4.prototype.authenticateThisEncryptedPassword_jyasbz$=function(t,e){return O(this.encryptThisPassword_61zpoe$(t),e)},e4.$metadata$={kind:h,simpleName:"PersonAuthDaoCommon",interfaces:[]};var n4,i4,o4,r4,s4,a4,c4,l4,u4,h4,d4,p4,_4,m4,f4,g4=null;function $4(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$tmp$=void 0,this.local$$receiver=t,this.local$uidList=e,this.local$changeTime=n}function E4(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.local$tmp$=void 0,this.local$$receiver=t,this.local$uidList=e,this.local$changeTime=n}function y4(){v4(),this.agentUid=X,this.agentMbox=null,this.agentMbox_sha1sum=null,this.agentOpenid=null,this.agentAccountName=null,this.agentHomePage=null,this.agentPersonUid=X,this.statementMasterChangeSeqNum=X,this.statementLocalChangeSeqNum=X,this.statementLastChangedBy=0,this.agentLct=X}function b4(){S4=this,this.TABLE_ID=68}$4.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},$4.prototype=Object.create(N.prototype),$4.prototype.constructor=$4,$4.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$tmp$=this.local$uidList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$tmp$.hasNext()){this.state_0=4;continue}var t=this.local$tmp$.next();if(this.state_0=3,this.result_0=this.local$$receiver.updateScheduleActivated_zaz62j$(t,!1,this.local$changeTime,this),this.result_0===C)return C;continue;case 3:this.state_0=2;continue;case 4:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},E4.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},E4.prototype=Object.create(N.prototype),E4.prototype.constructor=E4,E4.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$tmp$=this.local$uidList.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$tmp$.hasNext()){this.state_0=4;continue}var t=this.local$tmp$.next();if(this.state_0=3,this.result_0=this.local$$receiver.updateActiveByUid_zaz62j$(t,!1,this.local$changeTime,this),this.result_0===C)return C;continue;case 3:this.state_0=2;continue;case 4:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},b4.prototype.serializer=function(){return T4()},b4.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var S4=null;function v4(){return null===S4&&new b4,S4}function C4(){this.descriptor_lbfb95$_0=new Wt("com.ustadmobile.lib.db.entities.AgentEntity",this,11),this.descriptor.addElement_ivxn3r$("agentUid",!0),this.descriptor.addElement_ivxn3r$("agentMbox",!0),this.descriptor.addElement_ivxn3r$("agentMbox_sha1sum",!0),this.descriptor.addElement_ivxn3r$("agentOpenid",!0),this.descriptor.addElement_ivxn3r$("agentAccountName",!0),this.descriptor.addElement_ivxn3r$("agentHomePage",!0),this.descriptor.addElement_ivxn3r$("agentPersonUid",!0),this.descriptor.addElement_ivxn3r$("statementMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("statementLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("statementLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("agentLct",!0),N4=this}Object.defineProperty(C4.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_lbfb95$_0}}),C4.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.agentUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.agentUid),O(e.agentMbox,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.agentMbox),O(e.agentMbox_sha1sum,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.agentMbox_sha1sum),O(e.agentOpenid,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,3,Ht.StringSerializer,e.agentOpenid),O(e.agentAccountName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,4,Ht.StringSerializer,e.agentAccountName),O(e.agentHomePage,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,5,Ht.StringSerializer,e.agentHomePage),O(e.agentPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.agentPersonUid),O(e.statementMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.statementMasterChangeSeqNum),O(e.statementLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.statementLocalChangeSeqNum),O(e.statementLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeIntElement_ptg7oe$(this.descriptor,9,e.statementLastChangedBy),O(e.agentLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeLongElement_j0o2mv$(this.descriptor,10,e.agentLct),n.endStructure_24f42q$(this.descriptor)},C4.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p=0,_=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=_.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=_.decodeLongElement_szpzho$(this.descriptor,0),p|=1;break;case 1:i=_.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),p|=2;break;case 2:o=_.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),p|=4;break;case 3:r=_.decodeNullableSerializableElement_8viuyw$(this.descriptor,3,Ht.StringSerializer,r),p|=8;break;case 4:s=_.decodeNullableSerializableElement_8viuyw$(this.descriptor,4,Ht.StringSerializer,s),p|=16;break;case 5:a=_.decodeNullableSerializableElement_8viuyw$(this.descriptor,5,Ht.StringSerializer,a),p|=32;break;case 6:c=_.decodeLongElement_szpzho$(this.descriptor,6),p|=64;break;case 7:l=_.decodeLongElement_szpzho$(this.descriptor,7),p|=128;break;case 8:u=_.decodeLongElement_szpzho$(this.descriptor,8),p|=256;break;case 9:h=_.decodeIntElement_szpzho$(this.descriptor,9),p|=512;break;case 10:d=_.decodeLongElement_szpzho$(this.descriptor,10),p|=1024;break;case-1:break t;default:throw new Vt(e)}return _.endStructure_24f42q$(this.descriptor),L4(p,n,i,o,r,s,a,c,l,u,h,d,null)},C4.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer]},C4.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var N4=null;function T4(){return null===N4&&new C4,N4}function L4(t,e,n,i,o,r,s,a,c,l,u,h,d){var p=d||Object.create(y4.prototype);return p.agentUid=0==(1&t)?X:e,p.agentMbox=0==(2&t)?null:n,p.agentMbox_sha1sum=0==(4&t)?null:i,p.agentOpenid=0==(8&t)?null:o,p.agentAccountName=0==(16&t)?null:r,p.agentHomePage=0==(32&t)?null:s,p.agentPersonUid=0==(64&t)?X:a,p.statementMasterChangeSeqNum=0==(128&t)?X:c,p.statementLocalChangeSeqNum=0==(256&t)?X:l,p.statementLastChangedBy=0==(512&t)?0:u,p.agentLct=0==(1024&t)?X:h,p}function z4(){R4(),this.notSubmittedStudents=0,this.submittedStudents=0,this.totalStudents=0,this.markedStudents=0,this.hasMetricsPermission=!1}function w4(){O4=this}y4.$metadata$={kind:c,simpleName:"AgentEntity",interfaces:[]},z4.prototype.calculateNotSubmittedStudents=function(){return this.notSubmittedStudents=this.totalStudents-this.markedStudents-this.submittedStudents|0,this.notSubmittedStudents},w4.prototype.serializer=function(){return I4()},w4.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var O4=null;function R4(){return null===O4&&new w4,O4}function A4(){this.descriptor_qpfaj$_0=new Wt("com.ustadmobile.lib.db.entities.AssignmentProgressSummary",this,5),this.descriptor.addElement_ivxn3r$("notSubmittedStudents",!0),this.descriptor.addElement_ivxn3r$("submittedStudents",!0),this.descriptor.addElement_ivxn3r$("totalStudents",!0),this.descriptor.addElement_ivxn3r$("markedStudents",!0),this.descriptor.addElement_ivxn3r$("hasMetricsPermission",!0),x4=this}Object.defineProperty(A4.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_qpfaj$_0}}),A4.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.notSubmittedStudents,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeIntElement_ptg7oe$(this.descriptor,0,e.notSubmittedStudents),O(e.submittedStudents,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeIntElement_ptg7oe$(this.descriptor,1,e.submittedStudents),O(e.totalStudents,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeIntElement_ptg7oe$(this.descriptor,2,e.totalStudents),O(e.markedStudents,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeIntElement_ptg7oe$(this.descriptor,3,e.markedStudents),O(e.hasMetricsPermission,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeBooleanElement_qh7jdn$(this.descriptor,4,e.hasMetricsPermission),n.endStructure_24f42q$(this.descriptor)},A4.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a=0,c=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=c.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=c.decodeIntElement_szpzho$(this.descriptor,0),a|=1;break;case 1:i=c.decodeIntElement_szpzho$(this.descriptor,1),a|=2;break;case 2:o=c.decodeIntElement_szpzho$(this.descriptor,2),a|=4;break;case 3:r=c.decodeIntElement_szpzho$(this.descriptor,3),a|=8;break;case 4:s=c.decodeBooleanElement_szpzho$(this.descriptor,4),a|=16;break;case-1:break t;default:throw new Vt(e)}return c.endStructure_24f42q$(this.descriptor),U4(a,n,i,o,r,s,null)},A4.prototype.childSerializers=function(){return[Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.BooleanSerializer]},A4.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var x4=null;function I4(){return null===x4&&new A4,x4}function U4(t,e,n,i,o,r,s){var a=s||Object.create(z4.prototype);return a.notSubmittedStudents=0==(1&t)?0:e,a.submittedStudents=0==(2&t)?0:n,a.totalStudents=0==(4&t)?0:i,a.markedStudents=0==(8&t)?0:o,a.hasMetricsPermission=0!=(16&t)&&r,a}function D4(){k4(),this.chatUid=X,this.chatStartDate=X,this.chatTitle=null,this.chatGroup=!1,this.chatLct=X}function P4(){M4=this,this.TABLE_ID=127}z4.$metadata$={kind:c,simpleName:"AssignmentProgressSummary",interfaces:[]},P4.prototype.serializer=function(){return q4()},P4.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var M4=null;function k4(){return null===M4&&new P4,M4}function j4(){this.descriptor_2fmgmb$_0=new Wt("com.ustadmobile.lib.db.entities.Chat",this,5),this.descriptor.addElement_ivxn3r$("chatUid",!0),this.descriptor.addElement_ivxn3r$("chatStartDate",!0),this.descriptor.addElement_ivxn3r$("chatTitle",!0),this.descriptor.addElement_ivxn3r$("chatGroup",!0),this.descriptor.addElement_ivxn3r$("chatLct",!0),G4=this}Object.defineProperty(j4.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_2fmgmb$_0}}),j4.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.chatUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.chatUid),O(e.chatStartDate,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.chatStartDate),O(e.chatTitle,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.chatTitle),O(e.chatGroup,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeBooleanElement_qh7jdn$(this.descriptor,3,e.chatGroup),O(e.chatLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.chatLct),n.endStructure_24f42q$(this.descriptor)},j4.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a=0,c=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=c.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=c.decodeLongElement_szpzho$(this.descriptor,0),a|=1;break;case 1:i=c.decodeLongElement_szpzho$(this.descriptor,1),a|=2;break;case 2:o=c.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),a|=4;break;case 3:r=c.decodeBooleanElement_szpzho$(this.descriptor,3),a|=8;break;case 4:s=c.decodeLongElement_szpzho$(this.descriptor,4),a|=16;break;case-1:break t;default:throw new Vt(e)}return c.endStructure_24f42q$(this.descriptor),F4(a,n,i,o,r,s,null)},j4.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.BooleanSerializer,Ht.LongSerializer]},j4.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var G4=null;function q4(){return null===G4&&new j4,G4}function F4(t,e,n,i,o,r,s){var a=s||Object.create(D4.prototype);return a.chatUid=0==(1&t)?X:e,a.chatStartDate=0==(2&t)?X:n,a.chatTitle=0==(4&t)?null:i,a.chatGroup=0!=(8&t)&&o,a.chatLct=0==(16&t)?X:r,a}function B4(){V4(),this.chatMemberUid=X,this.chatMemberChatUid=X,this.chatMemberPersonUid=X,this.chatMemberJoinedDate=X,this.chatMemberLeftDate=Xt,this.chatMemberLct=X}function W4(){H4=this,this.TABLE_ID=128}D4.$metadata$={kind:c,simpleName:"Chat",interfaces:[]},W4.prototype.serializer=function(){return J4()},W4.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var H4=null;function V4(){return null===H4&&new W4,H4}function K4(){this.descriptor_uhefxf$_0=new Wt("com.ustadmobile.lib.db.entities.ChatMember",this,6),this.descriptor.addElement_ivxn3r$("chatMemberUid",!0),this.descriptor.addElement_ivxn3r$("chatMemberChatUid",!0),this.descriptor.addElement_ivxn3r$("chatMemberPersonUid",!0),this.descriptor.addElement_ivxn3r$("chatMemberJoinedDate",!0),this.descriptor.addElement_ivxn3r$("chatMemberLeftDate",!0),this.descriptor.addElement_ivxn3r$("chatMemberLct",!0),X4=this}Object.defineProperty(K4.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_uhefxf$_0}}),K4.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.chatMemberUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.chatMemberUid),O(e.chatMemberChatUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.chatMemberChatUid),O(e.chatMemberPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.chatMemberPersonUid),O(e.chatMemberJoinedDate,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.chatMemberJoinedDate),O(e.chatMemberLeftDate,Xt)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.chatMemberLeftDate),O(e.chatMemberLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.chatMemberLct),n.endStructure_24f42q$(this.descriptor)},K4.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c=0,l=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=l.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=l.decodeLongElement_szpzho$(this.descriptor,0),c|=1;break;case 1:i=l.decodeLongElement_szpzho$(this.descriptor,1),c|=2;break;case 2:o=l.decodeLongElement_szpzho$(this.descriptor,2),c|=4;break;case 3:r=l.decodeLongElement_szpzho$(this.descriptor,3),c|=8;break;case 4:s=l.decodeLongElement_szpzho$(this.descriptor,4),c|=16;break;case 5:a=l.decodeLongElement_szpzho$(this.descriptor,5),c|=32;break;case-1:break t;default:throw new Vt(e)}return l.endStructure_24f42q$(this.descriptor),Y4(c,n,i,o,r,s,a,null)},K4.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer]},K4.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var X4=null;function J4(){return null===X4&&new K4,X4}function Y4(t,e,n,i,o,r,s,a){var c=a||Object.create(B4.prototype);return c.chatMemberUid=0==(1&t)?X:e,c.chatMemberChatUid=0==(2&t)?X:n,c.chatMemberPersonUid=0==(4&t)?X:i,c.chatMemberJoinedDate=0==(8&t)?X:o,c.chatMemberLeftDate=0==(16&t)?Xt:r,c.chatMemberLct=0==(32&t)?X:s,c}function Q4(){e5(),D4.call(this),this.unreadMessageCount=0,this.latestMessage=null,this.latestMessageTimestamp=X,this.otherPersonUid=X,this.otherPersonFirstNames=null,this.otherPersonLastName=null}function Z4(){t5=this}B4.$metadata$={kind:c,simpleName:"ChatMember",interfaces:[]},Object.defineProperty(Q4.prototype,"chatName",{configurable:!0,get:function(){var t,e;if(this.chatGroup)return this.chatTitle;var n="",i="";return null!=this.otherPersonFirstNames&&(n="string"==typeof(t=this.otherPersonFirstNames)?t:Jt()),null!=this.otherPersonLastName&&(i="string"==typeof(e=this.otherPersonLastName)?e:Jt()),n+" "+i}}),Q4.prototype.equals=function(t){var n;return this===t||!(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))&&(e.isType(t,Q4)||Jt(),!!(this.unreadMessageCount===t.unreadMessageCount&&O(this.latestMessage,t.latestMessage)&&O(this.otherPersonUid,t.otherPersonUid)&&O(this.otherPersonFirstNames,t.otherPersonFirstNames)&&O(this.otherPersonLastName,t.otherPersonLastName)))},Q4.prototype.hashCode=function(){var t,e,n,i,o,r,s=this.unreadMessageCount;return s=(31*(s=(31*(s=(31*(s=(31*s|0)+(null!=(e=null!=(t=this.latestMessage)?Yt(t):null)?e:0)|0)|0)+Yt(this.otherPersonUid)|0)|0)+(null!=(i=null!=(n=this.otherPersonFirstNames)?Yt(n):null)?i:0)|0)|0)+(null!=(r=null!=(o=this.otherPersonLastName)?Yt(o):null)?r:0)|0},Z4.prototype.serializer=function(){return o5()},Z4.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var t5=null;function e5(){return null===t5&&new Z4,t5}function n5(){this.descriptor_gcec55$_0=new Wt("com.ustadmobile.lib.db.entities.ChatWithLatestMessageAndCount",this,11),this.descriptor.addElement_ivxn3r$("chatUid",!0),this.descriptor.addElement_ivxn3r$("chatStartDate",!0),this.descriptor.addElement_ivxn3r$("chatTitle",!0),this.descriptor.addElement_ivxn3r$("chatGroup",!0),this.descriptor.addElement_ivxn3r$("chatLct",!0),this.descriptor.addElement_ivxn3r$("unreadMessageCount",!0),this.descriptor.addElement_ivxn3r$("latestMessage",!0),this.descriptor.addElement_ivxn3r$("latestMessageTimestamp",!0),this.descriptor.addElement_ivxn3r$("otherPersonUid",!0),this.descriptor.addElement_ivxn3r$("otherPersonFirstNames",!0),this.descriptor.addElement_ivxn3r$("otherPersonLastName",!0),i5=this}Object.defineProperty(n5.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_gcec55$_0}}),n5.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.chatUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.chatUid),O(e.chatStartDate,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.chatStartDate),O(e.chatTitle,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.chatTitle),O(e.chatGroup,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeBooleanElement_qh7jdn$(this.descriptor,3,e.chatGroup),O(e.chatLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.chatLct),O(e.unreadMessageCount,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeIntElement_ptg7oe$(this.descriptor,5,e.unreadMessageCount),O(e.latestMessage,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,6,Ht.StringSerializer,e.latestMessage),O(e.latestMessageTimestamp,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.latestMessageTimestamp),O(e.otherPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.otherPersonUid),O(e.otherPersonFirstNames,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,9,Ht.StringSerializer,e.otherPersonFirstNames),O(e.otherPersonLastName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,10,Ht.StringSerializer,e.otherPersonLastName),n.endStructure_24f42q$(this.descriptor)},n5.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p=0,_=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=_.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=_.decodeLongElement_szpzho$(this.descriptor,0),p|=1;break;case 1:i=_.decodeLongElement_szpzho$(this.descriptor,1),p|=2;break;case 2:o=_.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),p|=4;break;case 3:r=_.decodeBooleanElement_szpzho$(this.descriptor,3),p|=8;break;case 4:s=_.decodeLongElement_szpzho$(this.descriptor,4),p|=16;break;case 5:a=_.decodeIntElement_szpzho$(this.descriptor,5),p|=32;break;case 6:c=_.decodeNullableSerializableElement_8viuyw$(this.descriptor,6,Ht.StringSerializer,c),p|=64;break;case 7:l=_.decodeLongElement_szpzho$(this.descriptor,7),p|=128;break;case 8:u=_.decodeLongElement_szpzho$(this.descriptor,8),p|=256;break;case 9:h=_.decodeNullableSerializableElement_8viuyw$(this.descriptor,9,Ht.StringSerializer,h),p|=512;break;case 10:d=_.decodeNullableSerializableElement_8viuyw$(this.descriptor,10,Ht.StringSerializer,d),p|=1024;break;case-1:break t;default:throw new Vt(e)}return _.endStructure_24f42q$(this.descriptor),r5(p,n,i,o,r,s,a,c,l,u,h,d,null)},n5.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.BooleanSerializer,Ht.LongSerializer,Ht.IntSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer)]},n5.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var i5=null;function o5(){return null===i5&&new n5,i5}function r5(t,e,n,i,o,r,s,a,c,l,u,h,d){var p=d||Object.create(Q4.prototype);return(p=F4(t,e,n,i,o,r,p)).unreadMessageCount=0==(32&t)?0:s,p.latestMessage=0==(64&t)?null:a,p.latestMessageTimestamp=0==(128&t)?X:c,p.otherPersonUid=0==(256&t)?X:l,p.otherPersonFirstNames=0==(512&t)?null:u,p.otherPersonLastName=0==(1024&t)?null:h,p}function s5(){l5(),this.clazzUid=X,this.clazzName=null,this.clazzDesc=null,this.attendanceAverage=-1,this.clazzHolidayUMCalendarUid=X,this.clazzScheuleUMCalendarUid=X,this.isClazzActive=!1,this.clazzLocationUid=X,this.clazzStartTime=X,this.clazzEndTime=Xt,this.clazzFeatures=l5().CLAZZ_FEATURE_ATTENDANCE,this.clazzSchoolUid=X,this.clazzEnrolmentPolicy=102,this.clazzTerminologyUid=ee,this.clazzMasterChangeSeqNum=X,this.clazzLocalChangeSeqNum=X,this.clazzLastChangedBy=0,this.clazzLct=X,this.clazzTimeZone=null,this.clazzStudentsPersonGroupUid=X,this.clazzTeachersPersonGroupUid=X,this.clazzPendingStudentsPersonGroupUid=X,this.clazzParentsPersonGroupUid=X,this.clazzCode=null}function a5(){c5=this,this.TABLE_ID=6,this.CLAZZ_FEATURE_ATTENDANCE=Qt,this.CLAZZ_FEATURE_ACTIVITY=Zt,this.CLAZZ_FEATURE_CLAZZ_ASSIGNMENT=te,this.CLAZZ_CODE_DEFAULT_LENGTH=6,this.CLAZZ_ENROLMENT_POLICY_WITH_LINK=100,this.CLAZZ_ENROLMENT_POLICY_OPEN=102,this.JOIN_SCOPEDGRANT_ON_CLAUSE="\n ((ScopedGrant.sgTableId = -2\n AND ScopedGrant.sgEntityUid = -2)\n OR (ScopedGrant.sgTableId = 6\n AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n OR (ScopedGrant.sgTableId = 164\n AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n ",this.JOIN_FROM_CLAZZ_TO_USERSESSION_VIA_SCOPEDGRANT_PT1="\n JOIN ScopedGrant\n ON \n ((ScopedGrant.sgTableId = -2\n AND ScopedGrant.sgEntityUid = -2)\n OR (ScopedGrant.sgTableId = 6\n AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n OR (ScopedGrant.sgTableId = 164\n AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n \n AND (ScopedGrant.sgPermissions & \n ",this.JOIN_FROM_SCOPEDGRANT_TO_PERSONGROUPMEMBER="\n ) > 0\n JOIN PersonGroupMember AS PrsGrpMbr\n ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n ",this.JOIN_FROM_CLAZZ_TO_USERSESSION_VIA_SCOPEDGRANT_PT2="\n \n ) > 0\n JOIN PersonGroupMember AS PrsGrpMbr\n ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n \n JOIN UserSession\n ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n AND UserSession.usStatus = 1\n ",this.JOIN_FROM_PERSONGROUPMEMBER_TO_CLAZZ_VIA_SCOPEDGRANT_PT1="\n JOIN ScopedGrant\n ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n AND (ScopedGrant.sgPermissions & \n ",this.JOIN_FROM_PERSONGROUPMEMBER_TO_CLAZZ_VIA_SCOPEDGRANT_PT2="\n ) > 0\n JOIN Clazz \n ON \n ((ScopedGrant.sgTableId = -2\n AND ScopedGrant.sgEntityUid = -2)\n OR (ScopedGrant.sgTableId = 6\n AND ScopedGrant.sgEntityUid = Clazz.clazzUid)\n OR (ScopedGrant.sgTableId = 164\n AND ScopedGrant.sgEntityUid = Clazz.clazzSchoolUid))\n \n "}Q4.$metadata$={kind:c,simpleName:"ChatWithLatestMessageAndCount",interfaces:[D4]},s5.prototype.equals=function(t){var n;return this===t||!(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))&&(e.isType(t,s5)||Jt(),!!(O(this.clazzUid,t.clazzUid)&&O(this.clazzName,t.clazzName)&&O(this.clazzDesc,t.clazzDesc)&&this.attendanceAverage===t.attendanceAverage&&O(this.clazzHolidayUMCalendarUid,t.clazzHolidayUMCalendarUid)&&O(this.clazzScheuleUMCalendarUid,t.clazzScheuleUMCalendarUid)&&this.isClazzActive===t.isClazzActive&&O(this.clazzLocationUid,t.clazzLocationUid)&&O(this.clazzStartTime,t.clazzStartTime)&&O(this.clazzEndTime,t.clazzEndTime)&&O(this.clazzFeatures,t.clazzFeatures)&&O(this.clazzSchoolUid,t.clazzSchoolUid)&&O(this.clazzMasterChangeSeqNum,t.clazzMasterChangeSeqNum)&&O(this.clazzLocalChangeSeqNum,t.clazzLocalChangeSeqNum)&&this.clazzLastChangedBy===t.clazzLastChangedBy&&O(this.clazzLct,t.clazzLct)&&O(this.clazzTimeZone,t.clazzTimeZone)&&O(this.clazzStudentsPersonGroupUid,t.clazzStudentsPersonGroupUid)&&O(this.clazzTeachersPersonGroupUid,t.clazzTeachersPersonGroupUid)&&O(this.clazzPendingStudentsPersonGroupUid,t.clazzPendingStudentsPersonGroupUid)&&O(this.clazzParentsPersonGroupUid,t.clazzParentsPersonGroupUid)&&O(this.clazzCode,t.clazzCode)))},s5.prototype.hashCode=function(){var t,e,n,i,o,r,s,a,c=Yt(this.clazzUid);return c=(31*(c=(31*(c=(31*(c=(31*(c=(31*(c=(31*(c=(31*(c=(31*(c=(31*(c=(31*(c=(31*(c=(31*(c=(31*(c=(31*(c=(31*(c=(31*(c=(31*(c=(31*(c=(31*(c=(31*(c=(31*c|0)+(null!=(e=null!=(t=this.clazzName)?Yt(t):null)?e:0)|0)|0)+(null!=(i=null!=(n=this.clazzDesc)?Yt(n):null)?i:0)|0)|0)+Yt(this.attendanceAverage)|0)|0)+Yt(this.clazzHolidayUMCalendarUid)|0)|0)+Yt(this.clazzScheuleUMCalendarUid)|0)|0)+Yt(this.isClazzActive)|0)|0)+Yt(this.clazzLocationUid)|0)|0)+Yt(this.clazzStartTime)|0)|0)+Yt(this.clazzEndTime)|0)|0)+Yt(this.clazzFeatures)|0)|0)+Yt(this.clazzSchoolUid)|0)|0)+Yt(this.clazzMasterChangeSeqNum)|0)|0)+Yt(this.clazzLocalChangeSeqNum)|0)|0)+this.clazzLastChangedBy|0)|0)+Yt(this.clazzLct)|0)|0)+(null!=(r=null!=(o=this.clazzTimeZone)?Yt(o):null)?r:0)|0)|0)+Yt(this.clazzStudentsPersonGroupUid)|0)|0)+Yt(this.clazzTeachersPersonGroupUid)|0)|0)+Yt(this.clazzPendingStudentsPersonGroupUid)|0)|0)+Yt(this.clazzParentsPersonGroupUid)|0)|0)+(null!=(a=null!=(s=this.clazzCode)?Yt(s):null)?a:0)|0},a5.prototype.serializer=function(){return d5()},a5.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var c5=null;function l5(){return null===c5&&new a5,c5}function u5(){this.descriptor_vv0e95$_0=new Wt("com.ustadmobile.lib.db.entities.Clazz",this,24),this.descriptor.addElement_ivxn3r$("clazzUid",!0),this.descriptor.addElement_ivxn3r$("clazzName",!0),this.descriptor.addElement_ivxn3r$("clazzDesc",!0),this.descriptor.addElement_ivxn3r$("attendanceAverage",!0),this.descriptor.addElement_ivxn3r$("clazzHolidayUMCalendarUid",!0),this.descriptor.addElement_ivxn3r$("clazzScheuleUMCalendarUid",!0),this.descriptor.addElement_ivxn3r$("isClazzActive",!0),this.descriptor.addElement_ivxn3r$("clazzLocationUid",!0),this.descriptor.addElement_ivxn3r$("clazzStartTime",!0),this.descriptor.addElement_ivxn3r$("clazzEndTime",!0),this.descriptor.addElement_ivxn3r$("clazzFeatures",!0),this.descriptor.addElement_ivxn3r$("clazzSchoolUid",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentPolicy",!0),this.descriptor.addElement_ivxn3r$("clazzTerminologyUid",!0),this.descriptor.addElement_ivxn3r$("clazzMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("clazzLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("clazzLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("clazzLct",!0),this.descriptor.addElement_ivxn3r$("clazzTimeZone",!0),this.descriptor.addElement_ivxn3r$("clazzStudentsPersonGroupUid",!0),this.descriptor.addElement_ivxn3r$("clazzTeachersPersonGroupUid",!0),this.descriptor.addElement_ivxn3r$("clazzPendingStudentsPersonGroupUid",!0),this.descriptor.addElement_ivxn3r$("clazzParentsPersonGroupUid",!0),this.descriptor.addElement_ivxn3r$("clazzCode",!0),h5=this}Object.defineProperty(u5.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_vv0e95$_0}}),u5.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.clazzUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.clazzUid),O(e.clazzName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.clazzName),O(e.clazzDesc,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.clazzDesc),O(e.attendanceAverage,-1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeFloatElement_lf6hpt$(this.descriptor,3,e.attendanceAverage),O(e.clazzHolidayUMCalendarUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.clazzHolidayUMCalendarUid),O(e.clazzScheuleUMCalendarUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.clazzScheuleUMCalendarUid),O(e.isClazzActive,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeBooleanElement_qh7jdn$(this.descriptor,6,e.isClazzActive),O(e.clazzLocationUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.clazzLocationUid),O(e.clazzStartTime,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.clazzStartTime),O(e.clazzEndTime,Xt)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeLongElement_j0o2mv$(this.descriptor,9,e.clazzEndTime),O(e.clazzFeatures,l5().CLAZZ_FEATURE_ATTENDANCE)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeLongElement_j0o2mv$(this.descriptor,10,e.clazzFeatures),O(e.clazzSchoolUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeLongElement_j0o2mv$(this.descriptor,11,e.clazzSchoolUid),O(e.clazzEnrolmentPolicy,102)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeIntElement_ptg7oe$(this.descriptor,12,e.clazzEnrolmentPolicy),O(e.clazzTerminologyUid,ee)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeLongElement_j0o2mv$(this.descriptor,13,e.clazzTerminologyUid),O(e.clazzMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeLongElement_j0o2mv$(this.descriptor,14,e.clazzMasterChangeSeqNum),O(e.clazzLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeLongElement_j0o2mv$(this.descriptor,15,e.clazzLocalChangeSeqNum),O(e.clazzLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,16)||n.encodeIntElement_ptg7oe$(this.descriptor,16,e.clazzLastChangedBy),O(e.clazzLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,17)||n.encodeLongElement_j0o2mv$(this.descriptor,17,e.clazzLct),O(e.clazzTimeZone,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,18)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,18,Ht.StringSerializer,e.clazzTimeZone),O(e.clazzStudentsPersonGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,19)||n.encodeLongElement_j0o2mv$(this.descriptor,19,e.clazzStudentsPersonGroupUid),O(e.clazzTeachersPersonGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,20)||n.encodeLongElement_j0o2mv$(this.descriptor,20,e.clazzTeachersPersonGroupUid),O(e.clazzPendingStudentsPersonGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,21)||n.encodeLongElement_j0o2mv$(this.descriptor,21,e.clazzPendingStudentsPersonGroupUid),O(e.clazzParentsPersonGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,22)||n.encodeLongElement_j0o2mv$(this.descriptor,22,e.clazzParentsPersonGroupUid),O(e.clazzCode,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,23)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,23,Ht.StringSerializer,e.clazzCode),n.endStructure_24f42q$(this.descriptor)},u5.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T=0,L=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=L.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=L.decodeLongElement_szpzho$(this.descriptor,0),T|=1;break;case 1:i=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),T|=2;break;case 2:o=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),T|=4;break;case 3:r=L.decodeFloatElement_szpzho$(this.descriptor,3),T|=8;break;case 4:s=L.decodeLongElement_szpzho$(this.descriptor,4),T|=16;break;case 5:a=L.decodeLongElement_szpzho$(this.descriptor,5),T|=32;break;case 6:c=L.decodeBooleanElement_szpzho$(this.descriptor,6),T|=64;break;case 7:l=L.decodeLongElement_szpzho$(this.descriptor,7),T|=128;break;case 8:u=L.decodeLongElement_szpzho$(this.descriptor,8),T|=256;break;case 9:h=L.decodeLongElement_szpzho$(this.descriptor,9),T|=512;break;case 10:d=L.decodeLongElement_szpzho$(this.descriptor,10),T|=1024;break;case 11:p=L.decodeLongElement_szpzho$(this.descriptor,11),T|=2048;break;case 12:_=L.decodeIntElement_szpzho$(this.descriptor,12),T|=4096;break;case 13:m=L.decodeLongElement_szpzho$(this.descriptor,13),T|=8192;break;case 14:f=L.decodeLongElement_szpzho$(this.descriptor,14),T|=16384;break;case 15:g=L.decodeLongElement_szpzho$(this.descriptor,15),T|=32768;break;case 16:$=L.decodeIntElement_szpzho$(this.descriptor,16),T|=65536;break;case 17:E=L.decodeLongElement_szpzho$(this.descriptor,17),T|=131072;break;case 18:y=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,18,Ht.StringSerializer,y),T|=262144;break;case 19:b=L.decodeLongElement_szpzho$(this.descriptor,19),T|=524288;break;case 20:S=L.decodeLongElement_szpzho$(this.descriptor,20),T|=1048576;break;case 21:v=L.decodeLongElement_szpzho$(this.descriptor,21),T|=2097152;break;case 22:C=L.decodeLongElement_szpzho$(this.descriptor,22),T|=4194304;break;case 23:N=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,23,Ht.StringSerializer,N),T|=8388608;break;case-1:break t;default:throw new Vt(e)}return L.endStructure_24f42q$(this.descriptor),p5(T,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,null)},u5.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.FloatSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.BooleanSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer)]},u5.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var h5=null;function d5(){return null===h5&&new u5,h5}function p5(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N){var T=N||Object.create(s5.prototype);return T.clazzUid=0==(1&t)?X:e,T.clazzName=0==(2&t)?null:n,T.clazzDesc=0==(4&t)?null:i,T.attendanceAverage=0==(8&t)?-1:o,T.clazzHolidayUMCalendarUid=0==(16&t)?X:r,T.clazzScheuleUMCalendarUid=0==(32&t)?X:s,T.isClazzActive=0!=(64&t)&&a,T.clazzLocationUid=0==(128&t)?X:c,T.clazzStartTime=0==(256&t)?X:l,T.clazzEndTime=0==(512&t)?Xt:u,T.clazzFeatures=0==(1024&t)?l5().CLAZZ_FEATURE_ATTENDANCE:h,T.clazzSchoolUid=0==(2048&t)?X:d,T.clazzEnrolmentPolicy=0==(4096&t)?102:p,T.clazzTerminologyUid=0==(8192&t)?ee:_,T.clazzMasterChangeSeqNum=0==(16384&t)?X:m,T.clazzLocalChangeSeqNum=0==(32768&t)?X:f,T.clazzLastChangedBy=0==(65536&t)?0:g,T.clazzLct=0==(131072&t)?X:$,T.clazzTimeZone=0==(262144&t)?null:E,T.clazzStudentsPersonGroupUid=0==(524288&t)?X:y,T.clazzTeachersPersonGroupUid=0==(1048576&t)?X:b,T.clazzPendingStudentsPersonGroupUid=0==(2097152&t)?X:S,T.clazzParentsPersonGroupUid=0==(4194304&t)?X:v,T.clazzCode=0==(8388608&t)?null:C,T}function _5(){g5(),this.caUid=X,this.caTitle=null,this.caDescription=null,this.caGroupUid=X,this.caActive=!0,this.caClassCommentEnabled=!0,this.caPrivateCommentsEnabled=!0,this.caCompletionCriteria=100,this.caRequireFileSubmission=!0,this.caFileType=0,this.caSizeLimit=50,this.caNumberOfFiles=1,this.caSubmissionPolicy=1,this.caMarkingType=1,this.caRequireTextSubmission=!0,this.caTextLimitType=1,this.caTextLimit=500,this.caXObjectUid=X,this.caClazzUid=X,this.caLocalChangeSeqNum=X,this.caMasterChangeSeqNum=X,this.caLastChangedBy=0,this.caLct=X}function m5(){f5=this,this.TABLE_ID=520,this.SUBMISSION_POLICY_SUBMIT_ALL_AT_ONCE=1,this.SUBMISSION_POLICY_MULTIPLE_ALLOWED=2,this.MARKED_BY_COURSE_LEADER=1,this.MARKED_BY_PEERS=2,this.FILE_TYPE_ANY=0,this.FILE_TYPE_DOC=1,this.FILE_TYPE_IMAGE=2,this.FILE_TYPE_VIDEO=3,this.FILE_TYPE_AUDIO=4,this.FILE_SUBMISSION_NOT_REQUIRED=0,this.FILE_NOT_SUBMITTED=1,this.FILE_SUBMITTED=2,this.FILE_MARKED=3,this.TEXT_WORD_LIMIT=1,this.TEXT_CHAR_LIMIT=2,this.COMPLETION_CRITERIA_SUBMIT=100,this.COMPLETION_CRITERIA_GRADED=102}s5.$metadata$={kind:c,simpleName:"Clazz",interfaces:[]},m5.prototype.serializer=function(){return y5()},m5.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var f5=null;function g5(){return null===f5&&new m5,f5}function $5(){this.descriptor_vxkytg$_0=new Wt("com.ustadmobile.lib.db.entities.ClazzAssignment",this,23),this.descriptor.addElement_ivxn3r$("caUid",!0),this.descriptor.addElement_ivxn3r$("caTitle",!0),this.descriptor.addElement_ivxn3r$("caDescription",!0),this.descriptor.addElement_ivxn3r$("caGroupUid",!0),this.descriptor.addElement_ivxn3r$("caActive",!0),this.descriptor.addElement_ivxn3r$("caClassCommentEnabled",!0),this.descriptor.addElement_ivxn3r$("caPrivateCommentsEnabled",!0),this.descriptor.addElement_ivxn3r$("caCompletionCriteria",!0),this.descriptor.addElement_ivxn3r$("caRequireFileSubmission",!0),this.descriptor.addElement_ivxn3r$("caFileType",!0),this.descriptor.addElement_ivxn3r$("caSizeLimit",!0),this.descriptor.addElement_ivxn3r$("caNumberOfFiles",!0),this.descriptor.addElement_ivxn3r$("caSubmissionPolicy",!0),this.descriptor.addElement_ivxn3r$("caMarkingType",!0),this.descriptor.addElement_ivxn3r$("caRequireTextSubmission",!0),this.descriptor.addElement_ivxn3r$("caTextLimitType",!0),this.descriptor.addElement_ivxn3r$("caTextLimit",!0),this.descriptor.addElement_ivxn3r$("caXObjectUid",!0),this.descriptor.addElement_ivxn3r$("caClazzUid",!0),this.descriptor.addElement_ivxn3r$("caLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("caMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("caLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("caLct",!0),E5=this}Object.defineProperty($5.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_vxkytg$_0}}),$5.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.caUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.caUid),O(e.caTitle,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.caTitle),O(e.caDescription,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.caDescription),O(e.caGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.caGroupUid),O(e.caActive,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeBooleanElement_qh7jdn$(this.descriptor,4,e.caActive),O(e.caClassCommentEnabled,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeBooleanElement_qh7jdn$(this.descriptor,5,e.caClassCommentEnabled),O(e.caPrivateCommentsEnabled,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeBooleanElement_qh7jdn$(this.descriptor,6,e.caPrivateCommentsEnabled),O(e.caCompletionCriteria,100)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeIntElement_ptg7oe$(this.descriptor,7,e.caCompletionCriteria),O(e.caRequireFileSubmission,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeBooleanElement_qh7jdn$(this.descriptor,8,e.caRequireFileSubmission),O(e.caFileType,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeIntElement_ptg7oe$(this.descriptor,9,e.caFileType),O(e.caSizeLimit,50)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeIntElement_ptg7oe$(this.descriptor,10,e.caSizeLimit),O(e.caNumberOfFiles,1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeIntElement_ptg7oe$(this.descriptor,11,e.caNumberOfFiles),O(e.caSubmissionPolicy,1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeIntElement_ptg7oe$(this.descriptor,12,e.caSubmissionPolicy),O(e.caMarkingType,1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeIntElement_ptg7oe$(this.descriptor,13,e.caMarkingType),O(e.caRequireTextSubmission,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeBooleanElement_qh7jdn$(this.descriptor,14,e.caRequireTextSubmission),O(e.caTextLimitType,1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeIntElement_ptg7oe$(this.descriptor,15,e.caTextLimitType),O(e.caTextLimit,500)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,16)||n.encodeIntElement_ptg7oe$(this.descriptor,16,e.caTextLimit),O(e.caXObjectUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,17)||n.encodeLongElement_j0o2mv$(this.descriptor,17,e.caXObjectUid),O(e.caClazzUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,18)||n.encodeLongElement_j0o2mv$(this.descriptor,18,e.caClazzUid),O(e.caLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,19)||n.encodeLongElement_j0o2mv$(this.descriptor,19,e.caLocalChangeSeqNum),O(e.caMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,20)||n.encodeLongElement_j0o2mv$(this.descriptor,20,e.caMasterChangeSeqNum),O(e.caLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,21)||n.encodeIntElement_ptg7oe$(this.descriptor,21,e.caLastChangedBy),O(e.caLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,22)||n.encodeLongElement_j0o2mv$(this.descriptor,22,e.caLct),n.endStructure_24f42q$(this.descriptor)},$5.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N=0,T=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=T.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=T.decodeLongElement_szpzho$(this.descriptor,0),N|=1;break;case 1:i=T.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),N|=2;break;case 2:o=T.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),N|=4;break;case 3:r=T.decodeLongElement_szpzho$(this.descriptor,3),N|=8;break;case 4:s=T.decodeBooleanElement_szpzho$(this.descriptor,4),N|=16;break;case 5:a=T.decodeBooleanElement_szpzho$(this.descriptor,5),N|=32;break;case 6:c=T.decodeBooleanElement_szpzho$(this.descriptor,6),N|=64;break;case 7:l=T.decodeIntElement_szpzho$(this.descriptor,7),N|=128;break;case 8:u=T.decodeBooleanElement_szpzho$(this.descriptor,8),N|=256;break;case 9:h=T.decodeIntElement_szpzho$(this.descriptor,9),N|=512;break;case 10:d=T.decodeIntElement_szpzho$(this.descriptor,10),N|=1024;break;case 11:p=T.decodeIntElement_szpzho$(this.descriptor,11),N|=2048;break;case 12:_=T.decodeIntElement_szpzho$(this.descriptor,12),N|=4096;break;case 13:m=T.decodeIntElement_szpzho$(this.descriptor,13),N|=8192;break;case 14:f=T.decodeBooleanElement_szpzho$(this.descriptor,14),N|=16384;break;case 15:g=T.decodeIntElement_szpzho$(this.descriptor,15),N|=32768;break;case 16:$=T.decodeIntElement_szpzho$(this.descriptor,16),N|=65536;break;case 17:E=T.decodeLongElement_szpzho$(this.descriptor,17),N|=131072;break;case 18:y=T.decodeLongElement_szpzho$(this.descriptor,18),N|=262144;break;case 19:b=T.decodeLongElement_szpzho$(this.descriptor,19),N|=524288;break;case 20:S=T.decodeLongElement_szpzho$(this.descriptor,20),N|=1048576;break;case 21:v=T.decodeIntElement_szpzho$(this.descriptor,21),N|=2097152;break;case 22:C=T.decodeLongElement_szpzho$(this.descriptor,22),N|=4194304;break;case-1:break t;default:throw new Vt(e)}return T.endStructure_24f42q$(this.descriptor),b5(N,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,null)},$5.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.BooleanSerializer,Ht.BooleanSerializer,Ht.BooleanSerializer,Ht.IntSerializer,Ht.BooleanSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.BooleanSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer]},$5.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var E5=null;function y5(){return null===E5&&new $5,E5}function b5(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C){var N=C||Object.create(_5.prototype);return N.caUid=0==(1&t)?X:e,N.caTitle=0==(2&t)?null:n,N.caDescription=0==(4&t)?null:i,N.caGroupUid=0==(8&t)?X:o,N.caActive=0==(16&t)||r,N.caClassCommentEnabled=0==(32&t)||s,N.caPrivateCommentsEnabled=0==(64&t)||a,N.caCompletionCriteria=0==(128&t)?100:c,N.caRequireFileSubmission=0==(256&t)||l,N.caFileType=0==(512&t)?0:u,N.caSizeLimit=0==(1024&t)?50:h,N.caNumberOfFiles=0==(2048&t)?1:d,N.caSubmissionPolicy=0==(4096&t)?1:p,N.caMarkingType=0==(8192&t)?1:_,N.caRequireTextSubmission=0==(16384&t)||m,N.caTextLimitType=0==(32768&t)?1:f,N.caTextLimit=0==(65536&t)?500:g,N.caXObjectUid=0==(131072&t)?X:$,N.caClazzUid=0==(262144&t)?X:E,N.caLocalChangeSeqNum=0==(524288&t)?X:y,N.caMasterChangeSeqNum=0==(1048576&t)?X:b,N.caLastChangedBy=0==(2097152&t)?0:S,N.caLct=0==(4194304&t)?X:v,N}function S5(){N5(),_5.call(this),this.block=null}function v5(){C5=this}_5.$metadata$={kind:c,simpleName:"ClazzAssignment",interfaces:[]},v5.prototype.serializer=function(){return z5()},v5.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var C5=null;function N5(){return null===C5&&new v5,C5}function T5(){this.descriptor_pji0r6$_0=new Wt("com.ustadmobile.lib.db.entities.ClazzAssignmentWithCourseBlock",this,24),this.descriptor.addElement_ivxn3r$("caUid",!0),this.descriptor.addElement_ivxn3r$("caTitle",!0),this.descriptor.addElement_ivxn3r$("caDescription",!0),this.descriptor.addElement_ivxn3r$("caGroupUid",!0),this.descriptor.addElement_ivxn3r$("caActive",!0),this.descriptor.addElement_ivxn3r$("caClassCommentEnabled",!0),this.descriptor.addElement_ivxn3r$("caPrivateCommentsEnabled",!0),this.descriptor.addElement_ivxn3r$("caCompletionCriteria",!0),this.descriptor.addElement_ivxn3r$("caRequireFileSubmission",!0),this.descriptor.addElement_ivxn3r$("caFileType",!0),this.descriptor.addElement_ivxn3r$("caSizeLimit",!0),this.descriptor.addElement_ivxn3r$("caNumberOfFiles",!0),this.descriptor.addElement_ivxn3r$("caSubmissionPolicy",!0),this.descriptor.addElement_ivxn3r$("caMarkingType",!0),this.descriptor.addElement_ivxn3r$("caRequireTextSubmission",!0),this.descriptor.addElement_ivxn3r$("caTextLimitType",!0),this.descriptor.addElement_ivxn3r$("caTextLimit",!0),this.descriptor.addElement_ivxn3r$("caXObjectUid",!0),this.descriptor.addElement_ivxn3r$("caClazzUid",!0),this.descriptor.addElement_ivxn3r$("caLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("caMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("caLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("caLct",!0),this.descriptor.addElement_ivxn3r$("block",!0),L5=this}Object.defineProperty(T5.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_pji0r6$_0}}),T5.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.caUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.caUid),O(e.caTitle,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.caTitle),O(e.caDescription,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.caDescription),O(e.caGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.caGroupUid),O(e.caActive,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeBooleanElement_qh7jdn$(this.descriptor,4,e.caActive),O(e.caClassCommentEnabled,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeBooleanElement_qh7jdn$(this.descriptor,5,e.caClassCommentEnabled),O(e.caPrivateCommentsEnabled,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeBooleanElement_qh7jdn$(this.descriptor,6,e.caPrivateCommentsEnabled),O(e.caCompletionCriteria,100)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeIntElement_ptg7oe$(this.descriptor,7,e.caCompletionCriteria),O(e.caRequireFileSubmission,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeBooleanElement_qh7jdn$(this.descriptor,8,e.caRequireFileSubmission),O(e.caFileType,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeIntElement_ptg7oe$(this.descriptor,9,e.caFileType),O(e.caSizeLimit,50)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeIntElement_ptg7oe$(this.descriptor,10,e.caSizeLimit),O(e.caNumberOfFiles,1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeIntElement_ptg7oe$(this.descriptor,11,e.caNumberOfFiles),O(e.caSubmissionPolicy,1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeIntElement_ptg7oe$(this.descriptor,12,e.caSubmissionPolicy),O(e.caMarkingType,1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeIntElement_ptg7oe$(this.descriptor,13,e.caMarkingType),O(e.caRequireTextSubmission,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeBooleanElement_qh7jdn$(this.descriptor,14,e.caRequireTextSubmission),O(e.caTextLimitType,1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeIntElement_ptg7oe$(this.descriptor,15,e.caTextLimitType),O(e.caTextLimit,500)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,16)||n.encodeIntElement_ptg7oe$(this.descriptor,16,e.caTextLimit),O(e.caXObjectUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,17)||n.encodeLongElement_j0o2mv$(this.descriptor,17,e.caXObjectUid),O(e.caClazzUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,18)||n.encodeLongElement_j0o2mv$(this.descriptor,18,e.caClazzUid),O(e.caLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,19)||n.encodeLongElement_j0o2mv$(this.descriptor,19,e.caLocalChangeSeqNum),O(e.caMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,20)||n.encodeLongElement_j0o2mv$(this.descriptor,20,e.caMasterChangeSeqNum),O(e.caLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,21)||n.encodeIntElement_ptg7oe$(this.descriptor,21,e.caLastChangedBy),O(e.caLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,22)||n.encodeLongElement_j0o2mv$(this.descriptor,22,e.caLct),O(e.block,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,23)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,23,xit(),e.block),n.endStructure_24f42q$(this.descriptor)},T5.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T=0,L=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=L.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=L.decodeLongElement_szpzho$(this.descriptor,0),T|=1;break;case 1:i=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),T|=2;break;case 2:o=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),T|=4;break;case 3:r=L.decodeLongElement_szpzho$(this.descriptor,3),T|=8;break;case 4:s=L.decodeBooleanElement_szpzho$(this.descriptor,4),T|=16;break;case 5:a=L.decodeBooleanElement_szpzho$(this.descriptor,5),T|=32;break;case 6:c=L.decodeBooleanElement_szpzho$(this.descriptor,6),T|=64;break;case 7:l=L.decodeIntElement_szpzho$(this.descriptor,7),T|=128;break;case 8:u=L.decodeBooleanElement_szpzho$(this.descriptor,8),T|=256;break;case 9:h=L.decodeIntElement_szpzho$(this.descriptor,9),T|=512;break;case 10:d=L.decodeIntElement_szpzho$(this.descriptor,10),T|=1024;break;case 11:p=L.decodeIntElement_szpzho$(this.descriptor,11),T|=2048;break;case 12:_=L.decodeIntElement_szpzho$(this.descriptor,12),T|=4096;break;case 13:m=L.decodeIntElement_szpzho$(this.descriptor,13),T|=8192;break;case 14:f=L.decodeBooleanElement_szpzho$(this.descriptor,14),T|=16384;break;case 15:g=L.decodeIntElement_szpzho$(this.descriptor,15),T|=32768;break;case 16:$=L.decodeIntElement_szpzho$(this.descriptor,16),T|=65536;break;case 17:E=L.decodeLongElement_szpzho$(this.descriptor,17),T|=131072;break;case 18:y=L.decodeLongElement_szpzho$(this.descriptor,18),T|=262144;break;case 19:b=L.decodeLongElement_szpzho$(this.descriptor,19),T|=524288;break;case 20:S=L.decodeLongElement_szpzho$(this.descriptor,20),T|=1048576;break;case 21:v=L.decodeIntElement_szpzho$(this.descriptor,21),T|=2097152;break;case 22:C=L.decodeLongElement_szpzho$(this.descriptor,22),T|=4194304;break;case 23:N=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,23,xit(),N),T|=8388608;break;case-1:break t;default:throw new Vt(e)}return L.endStructure_24f42q$(this.descriptor),w5(T,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,null)},T5.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.BooleanSerializer,Ht.BooleanSerializer,Ht.BooleanSerializer,Ht.IntSerializer,Ht.BooleanSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.BooleanSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(xit())]},T5.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var L5=null;function z5(){return null===L5&&new T5,L5}function w5(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N){var T=N||Object.create(S5.prototype);return(T=b5(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,T)).block=0==(8388608&t)?null:C,T}function O5(){x5(),_5.call(this),this.progressSummary=null,this.mark=null,this.fileSubmissionStatus=0}function R5(){A5=this}S5.$metadata$={kind:c,simpleName:"ClazzAssignmentWithCourseBlock",interfaces:[_5]},R5.prototype.serializer=function(){return D5()},R5.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var A5=null;function x5(){return null===A5&&new R5,A5}function I5(){this.descriptor_n80hwd$_0=new Wt("com.ustadmobile.lib.db.entities.ClazzAssignmentWithMetrics",this,26),this.descriptor.addElement_ivxn3r$("caUid",!0),this.descriptor.addElement_ivxn3r$("caTitle",!0),this.descriptor.addElement_ivxn3r$("caDescription",!0),this.descriptor.addElement_ivxn3r$("caGroupUid",!0),this.descriptor.addElement_ivxn3r$("caActive",!0),this.descriptor.addElement_ivxn3r$("caClassCommentEnabled",!0),this.descriptor.addElement_ivxn3r$("caPrivateCommentsEnabled",!0),this.descriptor.addElement_ivxn3r$("caCompletionCriteria",!0),this.descriptor.addElement_ivxn3r$("caRequireFileSubmission",!0),this.descriptor.addElement_ivxn3r$("caFileType",!0),this.descriptor.addElement_ivxn3r$("caSizeLimit",!0),this.descriptor.addElement_ivxn3r$("caNumberOfFiles",!0),this.descriptor.addElement_ivxn3r$("caSubmissionPolicy",!0),this.descriptor.addElement_ivxn3r$("caMarkingType",!0),this.descriptor.addElement_ivxn3r$("caRequireTextSubmission",!0),this.descriptor.addElement_ivxn3r$("caTextLimitType",!0),this.descriptor.addElement_ivxn3r$("caTextLimit",!0),this.descriptor.addElement_ivxn3r$("caXObjectUid",!0),this.descriptor.addElement_ivxn3r$("caClazzUid",!0),this.descriptor.addElement_ivxn3r$("caLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("caMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("caLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("caLct",!0),this.descriptor.addElement_ivxn3r$("progressSummary",!0),this.descriptor.addElement_ivxn3r$("mark",!0),this.descriptor.addElement_ivxn3r$("fileSubmissionStatus",!0),U5=this}Object.defineProperty(I5.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_n80hwd$_0}}),I5.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.caUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.caUid),O(e.caTitle,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.caTitle),O(e.caDescription,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.caDescription),O(e.caGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.caGroupUid),O(e.caActive,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeBooleanElement_qh7jdn$(this.descriptor,4,e.caActive),O(e.caClassCommentEnabled,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeBooleanElement_qh7jdn$(this.descriptor,5,e.caClassCommentEnabled),O(e.caPrivateCommentsEnabled,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeBooleanElement_qh7jdn$(this.descriptor,6,e.caPrivateCommentsEnabled),O(e.caCompletionCriteria,100)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeIntElement_ptg7oe$(this.descriptor,7,e.caCompletionCriteria),O(e.caRequireFileSubmission,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeBooleanElement_qh7jdn$(this.descriptor,8,e.caRequireFileSubmission),O(e.caFileType,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeIntElement_ptg7oe$(this.descriptor,9,e.caFileType),O(e.caSizeLimit,50)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeIntElement_ptg7oe$(this.descriptor,10,e.caSizeLimit),O(e.caNumberOfFiles,1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeIntElement_ptg7oe$(this.descriptor,11,e.caNumberOfFiles),O(e.caSubmissionPolicy,1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeIntElement_ptg7oe$(this.descriptor,12,e.caSubmissionPolicy),O(e.caMarkingType,1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeIntElement_ptg7oe$(this.descriptor,13,e.caMarkingType),O(e.caRequireTextSubmission,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeBooleanElement_qh7jdn$(this.descriptor,14,e.caRequireTextSubmission),O(e.caTextLimitType,1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeIntElement_ptg7oe$(this.descriptor,15,e.caTextLimitType),O(e.caTextLimit,500)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,16)||n.encodeIntElement_ptg7oe$(this.descriptor,16,e.caTextLimit),O(e.caXObjectUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,17)||n.encodeLongElement_j0o2mv$(this.descriptor,17,e.caXObjectUid),O(e.caClazzUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,18)||n.encodeLongElement_j0o2mv$(this.descriptor,18,e.caClazzUid),O(e.caLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,19)||n.encodeLongElement_j0o2mv$(this.descriptor,19,e.caLocalChangeSeqNum),O(e.caMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,20)||n.encodeLongElement_j0o2mv$(this.descriptor,20,e.caMasterChangeSeqNum),O(e.caLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,21)||n.encodeIntElement_ptg7oe$(this.descriptor,21,e.caLastChangedBy),O(e.caLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,22)||n.encodeLongElement_j0o2mv$(this.descriptor,22,e.caLct),O(e.progressSummary,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,23)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,23,I4(),e.progressSummary),O(e.mark,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,24)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,24,eit(),e.mark),O(e.fileSubmissionStatus,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,25)||n.encodeIntElement_ptg7oe$(this.descriptor,25,e.fileSubmissionStatus),n.endStructure_24f42q$(this.descriptor)},I5.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z=0,w=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=w.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=w.decodeLongElement_szpzho$(this.descriptor,0),z|=1;break;case 1:i=w.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),z|=2;break;case 2:o=w.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),z|=4;break;case 3:r=w.decodeLongElement_szpzho$(this.descriptor,3),z|=8;break;case 4:s=w.decodeBooleanElement_szpzho$(this.descriptor,4),z|=16;break;case 5:a=w.decodeBooleanElement_szpzho$(this.descriptor,5),z|=32;break;case 6:c=w.decodeBooleanElement_szpzho$(this.descriptor,6),z|=64;break;case 7:l=w.decodeIntElement_szpzho$(this.descriptor,7),z|=128;break;case 8:u=w.decodeBooleanElement_szpzho$(this.descriptor,8),z|=256;break;case 9:h=w.decodeIntElement_szpzho$(this.descriptor,9),z|=512;break;case 10:d=w.decodeIntElement_szpzho$(this.descriptor,10),z|=1024;break;case 11:p=w.decodeIntElement_szpzho$(this.descriptor,11),z|=2048;break;case 12:_=w.decodeIntElement_szpzho$(this.descriptor,12),z|=4096;break;case 13:m=w.decodeIntElement_szpzho$(this.descriptor,13),z|=8192;break;case 14:f=w.decodeBooleanElement_szpzho$(this.descriptor,14),z|=16384;break;case 15:g=w.decodeIntElement_szpzho$(this.descriptor,15),z|=32768;break;case 16:$=w.decodeIntElement_szpzho$(this.descriptor,16),z|=65536;break;case 17:E=w.decodeLongElement_szpzho$(this.descriptor,17),z|=131072;break;case 18:y=w.decodeLongElement_szpzho$(this.descriptor,18),z|=262144;break;case 19:b=w.decodeLongElement_szpzho$(this.descriptor,19),z|=524288;break;case 20:S=w.decodeLongElement_szpzho$(this.descriptor,20),z|=1048576;break;case 21:v=w.decodeIntElement_szpzho$(this.descriptor,21),z|=2097152;break;case 22:C=w.decodeLongElement_szpzho$(this.descriptor,22),z|=4194304;break;case 23:N=w.decodeNullableSerializableElement_8viuyw$(this.descriptor,23,I4(),N),z|=8388608;break;case 24:T=w.decodeNullableSerializableElement_8viuyw$(this.descriptor,24,eit(),T),z|=16777216;break;case 25:L=w.decodeIntElement_szpzho$(this.descriptor,25),z|=33554432;break;case-1:break t;default:throw new Vt(e)}return w.endStructure_24f42q$(this.descriptor),P5(z,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,null)},I5.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.BooleanSerializer,Ht.BooleanSerializer,Ht.BooleanSerializer,Ht.IntSerializer,Ht.BooleanSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.BooleanSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(I4()),new Bt(eit()),Ht.IntSerializer]},I5.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var U5=null;function D5(){return null===U5&&new I5,U5}function P5(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L){var z=L||Object.create(O5.prototype);return(z=b5(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,z)).progressSummary=0==(8388608&t)?null:C,z.mark=0==(16777216&t)?null:N,z.fileSubmissionStatus=0==(33554432&t)?0:T,z}function M5(){G5(),this.clazzEnrolmentUid=X,this.clazzEnrolmentPersonUid=X,this.clazzEnrolmentClazzUid=X,this.clazzEnrolmentDateJoined=X,this.clazzEnrolmentDateLeft=Xt,this.clazzEnrolmentRole=0,this.clazzEnrolmentAttendancePercentage=0,this.clazzEnrolmentActive=!0,this.clazzEnrolmentLeavingReasonUid=X,this.clazzEnrolmentOutcome=200,this.clazzEnrolmentLocalChangeSeqNum=X,this.clazzEnrolmentMasterChangeSeqNum=X,this.clazzEnrolmentLastChangedBy=0,this.clazzEnrolmentLct=X}function k5(){j5=this,this.FROM_SCOPEDGRANT_TO_CLAZZENROLMENT_JOIN__ON_CLAUSE="\n ((ScopedGrant.sgTableId = -2\n AND ScopedGrant.sgEntityUid = -2)\n OR (ScopedGrant.sgTableId = 9\n AND ScopedGrant.sgEntityUid = ClazzEnrolment.clazzEnrolmentPersonUid)\n OR (ScopedGrant.sgTableId = 6\n AND ScopedGrant.sgEntityUid = ClazzEnrolment.clazzEnrolmentClazzUid)\n OR (ScopedGrant.sgTableId = 164\n AND ClazzEnrolment.clazzEnrolmentClazzUid IN (\n SELECT clazzUid \n FROM Clazz\n WHERE clazzSchoolUid = ScopedGrant.sgEntityUid))\n )\n ",this.FROM_CLAZZENROLMENT_TO_SCOPEDGRANT_JOIN_ON_CLAUSE="\n (ScopedGrant.sgTableId = 6\n AND ScopedGrant.sgEntityUid = ClazzEnrolment.clazzEnrolmentClazzUid)\n ",this.JOIN_FROM_CLAZZENROLMENT_TO_USERSESSION_VIA_SCOPEDGRANT_CLAZZSCOPE_ONLY_PT1="\n JOIN ScopedGrant \n ON \n (ScopedGrant.sgTableId = 6\n AND ScopedGrant.sgEntityUid = ClazzEnrolment.clazzEnrolmentClazzUid)\n \n AND (ScopedGrant.sgPermissions &\n ",this.JOIN_FROM_CLAZZENROLMENT_TO_USERSESSION_VIA_SCOPEDGRANT_PT2="\n ) > 0 \n JOIN PersonGroupMember \n ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n JOIN UserSession\n ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n AND UserSession.usStatus = 1\n ",this.ROLE_STUDENT=1e3,this.ROLE_TEACHER=1001,this.ROLE_STUDENT_PENDING=1002,this.ROLE_PARENT=1003,this.OUTCOME_IN_PROGRESS=200,this.OUTCOME_GRADUATED=201,this.OUTCOME_FAILED=202,this.OUTCOME_DROPPED_OUT=203,this.TABLE_ID=65}O5.$metadata$={kind:c,simpleName:"ClazzAssignmentWithMetrics",interfaces:[_5]},k5.prototype.serializer=function(){return B5()},k5.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var j5=null;function G5(){return null===j5&&new k5,j5}function q5(){this.descriptor_ugpeq1$_0=new Wt("com.ustadmobile.lib.db.entities.ClazzEnrolment",this,14),this.descriptor.addElement_ivxn3r$("clazzEnrolmentUid",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentPersonUid",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentClazzUid",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentDateJoined",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentDateLeft",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentRole",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentAttendancePercentage",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentActive",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentLeavingReasonUid",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentOutcome",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentLct",!0),F5=this}Object.defineProperty(q5.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_ugpeq1$_0}}),q5.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.clazzEnrolmentUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.clazzEnrolmentUid),O(e.clazzEnrolmentPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.clazzEnrolmentPersonUid),O(e.clazzEnrolmentClazzUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.clazzEnrolmentClazzUid),O(e.clazzEnrolmentDateJoined,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.clazzEnrolmentDateJoined),O(e.clazzEnrolmentDateLeft,Xt)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.clazzEnrolmentDateLeft),O(e.clazzEnrolmentRole,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeIntElement_ptg7oe$(this.descriptor,5,e.clazzEnrolmentRole),O(e.clazzEnrolmentAttendancePercentage,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeFloatElement_lf6hpt$(this.descriptor,6,e.clazzEnrolmentAttendancePercentage),O(e.clazzEnrolmentActive,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeBooleanElement_qh7jdn$(this.descriptor,7,e.clazzEnrolmentActive),O(e.clazzEnrolmentLeavingReasonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.clazzEnrolmentLeavingReasonUid),O(e.clazzEnrolmentOutcome,200)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeIntElement_ptg7oe$(this.descriptor,9,e.clazzEnrolmentOutcome),O(e.clazzEnrolmentLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeLongElement_j0o2mv$(this.descriptor,10,e.clazzEnrolmentLocalChangeSeqNum),O(e.clazzEnrolmentMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeLongElement_j0o2mv$(this.descriptor,11,e.clazzEnrolmentMasterChangeSeqNum),O(e.clazzEnrolmentLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeIntElement_ptg7oe$(this.descriptor,12,e.clazzEnrolmentLastChangedBy),O(e.clazzEnrolmentLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeLongElement_j0o2mv$(this.descriptor,13,e.clazzEnrolmentLct),n.endStructure_24f42q$(this.descriptor)},q5.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f=0,g=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=g.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=g.decodeLongElement_szpzho$(this.descriptor,0),f|=1;break;case 1:i=g.decodeLongElement_szpzho$(this.descriptor,1),f|=2;break;case 2:o=g.decodeLongElement_szpzho$(this.descriptor,2),f|=4;break;case 3:r=g.decodeLongElement_szpzho$(this.descriptor,3),f|=8;break;case 4:s=g.decodeLongElement_szpzho$(this.descriptor,4),f|=16;break;case 5:a=g.decodeIntElement_szpzho$(this.descriptor,5),f|=32;break;case 6:c=g.decodeFloatElement_szpzho$(this.descriptor,6),f|=64;break;case 7:l=g.decodeBooleanElement_szpzho$(this.descriptor,7),f|=128;break;case 8:u=g.decodeLongElement_szpzho$(this.descriptor,8),f|=256;break;case 9:h=g.decodeIntElement_szpzho$(this.descriptor,9),f|=512;break;case 10:d=g.decodeLongElement_szpzho$(this.descriptor,10),f|=1024;break;case 11:p=g.decodeLongElement_szpzho$(this.descriptor,11),f|=2048;break;case 12:_=g.decodeIntElement_szpzho$(this.descriptor,12),f|=4096;break;case 13:m=g.decodeLongElement_szpzho$(this.descriptor,13),f|=8192;break;case-1:break t;default:throw new Vt(e)}return g.endStructure_24f42q$(this.descriptor),W5(f,n,i,o,r,s,a,c,l,u,h,d,p,_,m,null)},q5.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.FloatSerializer,Ht.BooleanSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer]},q5.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var F5=null;function B5(){return null===F5&&new q5,F5}function W5(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m){var f=m||Object.create(M5.prototype);return f.clazzEnrolmentUid=0==(1&t)?X:e,f.clazzEnrolmentPersonUid=0==(2&t)?X:n,f.clazzEnrolmentClazzUid=0==(4&t)?X:i,f.clazzEnrolmentDateJoined=0==(8&t)?X:o,f.clazzEnrolmentDateLeft=0==(16&t)?Xt:r,f.clazzEnrolmentRole=0==(32&t)?0:s,f.clazzEnrolmentAttendancePercentage=0==(64&t)?0:a,f.clazzEnrolmentActive=0==(128&t)||c,f.clazzEnrolmentLeavingReasonUid=0==(256&t)?X:l,f.clazzEnrolmentOutcome=0==(512&t)?200:u,f.clazzEnrolmentLocalChangeSeqNum=0==(1024&t)?X:h,f.clazzEnrolmentMasterChangeSeqNum=0==(2048&t)?X:d,f.clazzEnrolmentLastChangedBy=0==(4096&t)?0:p,f.clazzEnrolmentLct=0==(8192&t)?X:_,f}function H5(){X5(),M5.call(this),this.clazz=null}function V5(){K5=this}M5.$metadata$={kind:c,simpleName:"ClazzEnrolment",interfaces:[]},V5.prototype.serializer=function(){return Q5()},V5.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var K5=null;function X5(){return null===K5&&new V5,K5}function J5(){this.descriptor_nrikv9$_0=new Wt("com.ustadmobile.lib.db.entities.ClazzEnrolmentWithClazz",this,15),this.descriptor.addElement_ivxn3r$("clazzEnrolmentUid",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentPersonUid",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentClazzUid",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentDateJoined",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentDateLeft",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentRole",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentAttendancePercentage",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentActive",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentLeavingReasonUid",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentOutcome",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentLct",!0),this.descriptor.addElement_ivxn3r$("clazz",!0),Y5=this}Object.defineProperty(J5.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_nrikv9$_0}}),J5.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.clazzEnrolmentUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.clazzEnrolmentUid),O(e.clazzEnrolmentPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.clazzEnrolmentPersonUid),O(e.clazzEnrolmentClazzUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.clazzEnrolmentClazzUid),O(e.clazzEnrolmentDateJoined,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.clazzEnrolmentDateJoined),O(e.clazzEnrolmentDateLeft,Xt)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.clazzEnrolmentDateLeft),O(e.clazzEnrolmentRole,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeIntElement_ptg7oe$(this.descriptor,5,e.clazzEnrolmentRole),O(e.clazzEnrolmentAttendancePercentage,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeFloatElement_lf6hpt$(this.descriptor,6,e.clazzEnrolmentAttendancePercentage),O(e.clazzEnrolmentActive,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeBooleanElement_qh7jdn$(this.descriptor,7,e.clazzEnrolmentActive),O(e.clazzEnrolmentLeavingReasonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.clazzEnrolmentLeavingReasonUid),O(e.clazzEnrolmentOutcome,200)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeIntElement_ptg7oe$(this.descriptor,9,e.clazzEnrolmentOutcome),O(e.clazzEnrolmentLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeLongElement_j0o2mv$(this.descriptor,10,e.clazzEnrolmentLocalChangeSeqNum),O(e.clazzEnrolmentMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeLongElement_j0o2mv$(this.descriptor,11,e.clazzEnrolmentMasterChangeSeqNum),O(e.clazzEnrolmentLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeIntElement_ptg7oe$(this.descriptor,12,e.clazzEnrolmentLastChangedBy),O(e.clazzEnrolmentLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeLongElement_j0o2mv$(this.descriptor,13,e.clazzEnrolmentLct),O(e.clazz,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,14,d5(),e.clazz),n.endStructure_24f42q$(this.descriptor)},J5.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g=0,$=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=$.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=$.decodeLongElement_szpzho$(this.descriptor,0),g|=1;break;case 1:i=$.decodeLongElement_szpzho$(this.descriptor,1),g|=2;break;case 2:o=$.decodeLongElement_szpzho$(this.descriptor,2),g|=4;break;case 3:r=$.decodeLongElement_szpzho$(this.descriptor,3),g|=8;break;case 4:s=$.decodeLongElement_szpzho$(this.descriptor,4),g|=16;break;case 5:a=$.decodeIntElement_szpzho$(this.descriptor,5),g|=32;break;case 6:c=$.decodeFloatElement_szpzho$(this.descriptor,6),g|=64;break;case 7:l=$.decodeBooleanElement_szpzho$(this.descriptor,7),g|=128;break;case 8:u=$.decodeLongElement_szpzho$(this.descriptor,8),g|=256;break;case 9:h=$.decodeIntElement_szpzho$(this.descriptor,9),g|=512;break;case 10:d=$.decodeLongElement_szpzho$(this.descriptor,10),g|=1024;break;case 11:p=$.decodeLongElement_szpzho$(this.descriptor,11),g|=2048;break;case 12:_=$.decodeIntElement_szpzho$(this.descriptor,12),g|=4096;break;case 13:m=$.decodeLongElement_szpzho$(this.descriptor,13),g|=8192;break;case 14:f=$.decodeNullableSerializableElement_8viuyw$(this.descriptor,14,d5(),f),g|=16384;break;case-1:break t;default:throw new Vt(e)}return $.endStructure_24f42q$(this.descriptor),Z5(g,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,null)},J5.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.FloatSerializer,Ht.BooleanSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(d5())]},J5.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Y5=null;function Q5(){return null===Y5&&new J5,Y5}function Z5(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f){var g=f||Object.create(H5.prototype);return(g=W5(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,g)).clazz=0==(16384&t)?null:m,g}function t8(){i8(),H5.call(this),this.attendance=0}function e8(){n8=this}H5.$metadata$={kind:c,simpleName:"ClazzEnrolmentWithClazz",interfaces:[M5]},e8.prototype.serializer=function(){return s8()},e8.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var n8=null;function i8(){return null===n8&&new e8,n8}function o8(){this.descriptor_ym5ntx$_0=new Wt("com.ustadmobile.lib.db.entities.ClazzEnrolmentWithClazzAndAttendance",this,16),this.descriptor.addElement_ivxn3r$("clazzEnrolmentUid",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentPersonUid",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentClazzUid",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentDateJoined",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentDateLeft",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentRole",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentAttendancePercentage",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentActive",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentLeavingReasonUid",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentOutcome",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentLct",!0),this.descriptor.addElement_ivxn3r$("clazz",!0),this.descriptor.addElement_ivxn3r$("attendance",!0),r8=this}Object.defineProperty(o8.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_ym5ntx$_0}}),o8.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.clazzEnrolmentUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.clazzEnrolmentUid),O(e.clazzEnrolmentPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.clazzEnrolmentPersonUid),O(e.clazzEnrolmentClazzUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.clazzEnrolmentClazzUid),O(e.clazzEnrolmentDateJoined,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.clazzEnrolmentDateJoined),O(e.clazzEnrolmentDateLeft,Xt)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.clazzEnrolmentDateLeft),O(e.clazzEnrolmentRole,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeIntElement_ptg7oe$(this.descriptor,5,e.clazzEnrolmentRole),O(e.clazzEnrolmentAttendancePercentage,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeFloatElement_lf6hpt$(this.descriptor,6,e.clazzEnrolmentAttendancePercentage),O(e.clazzEnrolmentActive,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeBooleanElement_qh7jdn$(this.descriptor,7,e.clazzEnrolmentActive),O(e.clazzEnrolmentLeavingReasonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.clazzEnrolmentLeavingReasonUid),O(e.clazzEnrolmentOutcome,200)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeIntElement_ptg7oe$(this.descriptor,9,e.clazzEnrolmentOutcome),O(e.clazzEnrolmentLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeLongElement_j0o2mv$(this.descriptor,10,e.clazzEnrolmentLocalChangeSeqNum),O(e.clazzEnrolmentMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeLongElement_j0o2mv$(this.descriptor,11,e.clazzEnrolmentMasterChangeSeqNum),O(e.clazzEnrolmentLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeIntElement_ptg7oe$(this.descriptor,12,e.clazzEnrolmentLastChangedBy),O(e.clazzEnrolmentLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeLongElement_j0o2mv$(this.descriptor,13,e.clazzEnrolmentLct),O(e.clazz,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,14,d5(),e.clazz),O(e.attendance,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeFloatElement_lf6hpt$(this.descriptor,15,e.attendance),n.endStructure_24f42q$(this.descriptor)},o8.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$=0,E=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=E.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=E.decodeLongElement_szpzho$(this.descriptor,0),$|=1;break;case 1:i=E.decodeLongElement_szpzho$(this.descriptor,1),$|=2;break;case 2:o=E.decodeLongElement_szpzho$(this.descriptor,2),$|=4;break;case 3:r=E.decodeLongElement_szpzho$(this.descriptor,3),$|=8;break;case 4:s=E.decodeLongElement_szpzho$(this.descriptor,4),$|=16;break;case 5:a=E.decodeIntElement_szpzho$(this.descriptor,5),$|=32;break;case 6:c=E.decodeFloatElement_szpzho$(this.descriptor,6),$|=64;break;case 7:l=E.decodeBooleanElement_szpzho$(this.descriptor,7),$|=128;break;case 8:u=E.decodeLongElement_szpzho$(this.descriptor,8),$|=256;break;case 9:h=E.decodeIntElement_szpzho$(this.descriptor,9),$|=512;break;case 10:d=E.decodeLongElement_szpzho$(this.descriptor,10),$|=1024;break;case 11:p=E.decodeLongElement_szpzho$(this.descriptor,11),$|=2048;break;case 12:_=E.decodeIntElement_szpzho$(this.descriptor,12),$|=4096;break;case 13:m=E.decodeLongElement_szpzho$(this.descriptor,13),$|=8192;break;case 14:f=E.decodeNullableSerializableElement_8viuyw$(this.descriptor,14,d5(),f),$|=16384;break;case 15:g=E.decodeFloatElement_szpzho$(this.descriptor,15),$|=32768;break;case-1:break t;default:throw new Vt(e)}return E.endStructure_24f42q$(this.descriptor),a8($,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,null)},o8.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.FloatSerializer,Ht.BooleanSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(d5()),Ht.FloatSerializer]},o8.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var r8=null;function s8(){return null===r8&&new o8,r8}function a8(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g){var $=g||Object.create(t8.prototype);return($=Z5(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,$)).attendance=0==(32768&t)?0:f,$}function c8(){h8(),M5.call(this),this.leavingReason=null,this.timeZone=null}function l8(){u8=this}t8.$metadata$={kind:c,simpleName:"ClazzEnrolmentWithClazzAndAttendance",interfaces:[H5]},l8.prototype.serializer=function(){return _8()},l8.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var u8=null;function h8(){return null===u8&&new l8,u8}function d8(){this.descriptor_kcg00r$_0=new Wt("com.ustadmobile.lib.db.entities.ClazzEnrolmentWithLeavingReason",this,16),this.descriptor.addElement_ivxn3r$("clazzEnrolmentUid",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentPersonUid",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentClazzUid",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentDateJoined",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentDateLeft",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentRole",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentAttendancePercentage",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentActive",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentLeavingReasonUid",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentOutcome",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentLct",!0),this.descriptor.addElement_ivxn3r$("leavingReason",!0),this.descriptor.addElement_ivxn3r$("timeZone",!0),p8=this}Object.defineProperty(d8.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_kcg00r$_0}}),d8.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.clazzEnrolmentUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.clazzEnrolmentUid),O(e.clazzEnrolmentPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.clazzEnrolmentPersonUid),O(e.clazzEnrolmentClazzUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.clazzEnrolmentClazzUid),O(e.clazzEnrolmentDateJoined,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.clazzEnrolmentDateJoined),O(e.clazzEnrolmentDateLeft,Xt)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.clazzEnrolmentDateLeft),O(e.clazzEnrolmentRole,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeIntElement_ptg7oe$(this.descriptor,5,e.clazzEnrolmentRole),O(e.clazzEnrolmentAttendancePercentage,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeFloatElement_lf6hpt$(this.descriptor,6,e.clazzEnrolmentAttendancePercentage),O(e.clazzEnrolmentActive,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeBooleanElement_qh7jdn$(this.descriptor,7,e.clazzEnrolmentActive),O(e.clazzEnrolmentLeavingReasonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.clazzEnrolmentLeavingReasonUid),O(e.clazzEnrolmentOutcome,200)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeIntElement_ptg7oe$(this.descriptor,9,e.clazzEnrolmentOutcome),O(e.clazzEnrolmentLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeLongElement_j0o2mv$(this.descriptor,10,e.clazzEnrolmentLocalChangeSeqNum),O(e.clazzEnrolmentMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeLongElement_j0o2mv$(this.descriptor,11,e.clazzEnrolmentMasterChangeSeqNum),O(e.clazzEnrolmentLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeIntElement_ptg7oe$(this.descriptor,12,e.clazzEnrolmentLastChangedBy),O(e.clazzEnrolmentLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeLongElement_j0o2mv$(this.descriptor,13,e.clazzEnrolmentLct),O(e.leavingReason,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,14,Rat(),e.leavingReason),O(e.timeZone,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,15,Ht.StringSerializer,e.timeZone),n.endStructure_24f42q$(this.descriptor)},d8.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$=0,E=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=E.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=E.decodeLongElement_szpzho$(this.descriptor,0),$|=1;break;case 1:i=E.decodeLongElement_szpzho$(this.descriptor,1),$|=2;break;case 2:o=E.decodeLongElement_szpzho$(this.descriptor,2),$|=4;break;case 3:r=E.decodeLongElement_szpzho$(this.descriptor,3),$|=8;break;case 4:s=E.decodeLongElement_szpzho$(this.descriptor,4),$|=16;break;case 5:a=E.decodeIntElement_szpzho$(this.descriptor,5),$|=32;break;case 6:c=E.decodeFloatElement_szpzho$(this.descriptor,6),$|=64;break;case 7:l=E.decodeBooleanElement_szpzho$(this.descriptor,7),$|=128;break;case 8:u=E.decodeLongElement_szpzho$(this.descriptor,8),$|=256;break;case 9:h=E.decodeIntElement_szpzho$(this.descriptor,9),$|=512;break;case 10:d=E.decodeLongElement_szpzho$(this.descriptor,10),$|=1024;break;case 11:p=E.decodeLongElement_szpzho$(this.descriptor,11),$|=2048;break;case 12:_=E.decodeIntElement_szpzho$(this.descriptor,12),$|=4096;break;case 13:m=E.decodeLongElement_szpzho$(this.descriptor,13),$|=8192;break;case 14:f=E.decodeNullableSerializableElement_8viuyw$(this.descriptor,14,Rat(),f),$|=16384;break;case 15:g=E.decodeNullableSerializableElement_8viuyw$(this.descriptor,15,Ht.StringSerializer,g),$|=32768;break;case-1:break t;default:throw new Vt(e)}return E.endStructure_24f42q$(this.descriptor),m8($,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,null)},d8.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.FloatSerializer,Ht.BooleanSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(Rat()),new Bt(Ht.StringSerializer)]},d8.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var p8=null;function _8(){return null===p8&&new d8,p8}function m8(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g){var $=g||Object.create(c8.prototype);return($=W5(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,$)).leavingReason=0==(16384&t)?null:m,$.timeZone=0==(32768&t)?null:f,$}function f8(){E8(),M5.call(this),this.person=null}function g8(){$8=this}c8.$metadata$={kind:c,simpleName:"ClazzEnrolmentWithLeavingReason",interfaces:[M5]},g8.prototype.serializer=function(){return S8()},g8.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var $8=null;function E8(){return null===$8&&new g8,$8}function y8(){this.descriptor_7ns32q$_0=new Wt("com.ustadmobile.lib.db.entities.ClazzEnrolmentWithPerson",this,15),this.descriptor.addElement_ivxn3r$("clazzEnrolmentUid",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentPersonUid",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentClazzUid",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentDateJoined",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentDateLeft",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentRole",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentAttendancePercentage",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentActive",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentLeavingReasonUid",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentOutcome",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentLct",!0),this.descriptor.addElement_ivxn3r$("person",!0),b8=this}Object.defineProperty(y8.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_7ns32q$_0}}),y8.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.clazzEnrolmentUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.clazzEnrolmentUid),O(e.clazzEnrolmentPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.clazzEnrolmentPersonUid),O(e.clazzEnrolmentClazzUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.clazzEnrolmentClazzUid),O(e.clazzEnrolmentDateJoined,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.clazzEnrolmentDateJoined),O(e.clazzEnrolmentDateLeft,Xt)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.clazzEnrolmentDateLeft),O(e.clazzEnrolmentRole,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeIntElement_ptg7oe$(this.descriptor,5,e.clazzEnrolmentRole),O(e.clazzEnrolmentAttendancePercentage,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeFloatElement_lf6hpt$(this.descriptor,6,e.clazzEnrolmentAttendancePercentage),O(e.clazzEnrolmentActive,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeBooleanElement_qh7jdn$(this.descriptor,7,e.clazzEnrolmentActive),O(e.clazzEnrolmentLeavingReasonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.clazzEnrolmentLeavingReasonUid),O(e.clazzEnrolmentOutcome,200)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeIntElement_ptg7oe$(this.descriptor,9,e.clazzEnrolmentOutcome),O(e.clazzEnrolmentLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeLongElement_j0o2mv$(this.descriptor,10,e.clazzEnrolmentLocalChangeSeqNum),O(e.clazzEnrolmentMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeLongElement_j0o2mv$(this.descriptor,11,e.clazzEnrolmentMasterChangeSeqNum),O(e.clazzEnrolmentLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeIntElement_ptg7oe$(this.descriptor,12,e.clazzEnrolmentLastChangedBy),O(e.clazzEnrolmentLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeLongElement_j0o2mv$(this.descriptor,13,e.clazzEnrolmentLct),O(e.person,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,14,Ict(),e.person),n.endStructure_24f42q$(this.descriptor)},y8.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g=0,$=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=$.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=$.decodeLongElement_szpzho$(this.descriptor,0),g|=1;break;case 1:i=$.decodeLongElement_szpzho$(this.descriptor,1),g|=2;break;case 2:o=$.decodeLongElement_szpzho$(this.descriptor,2),g|=4;break;case 3:r=$.decodeLongElement_szpzho$(this.descriptor,3),g|=8;break;case 4:s=$.decodeLongElement_szpzho$(this.descriptor,4),g|=16;break;case 5:a=$.decodeIntElement_szpzho$(this.descriptor,5),g|=32;break;case 6:c=$.decodeFloatElement_szpzho$(this.descriptor,6),g|=64;break;case 7:l=$.decodeBooleanElement_szpzho$(this.descriptor,7),g|=128;break;case 8:u=$.decodeLongElement_szpzho$(this.descriptor,8),g|=256;break;case 9:h=$.decodeIntElement_szpzho$(this.descriptor,9),g|=512;break;case 10:d=$.decodeLongElement_szpzho$(this.descriptor,10),g|=1024;break;case 11:p=$.decodeLongElement_szpzho$(this.descriptor,11),g|=2048;break;case 12:_=$.decodeIntElement_szpzho$(this.descriptor,12),g|=4096;break;case 13:m=$.decodeLongElement_szpzho$(this.descriptor,13),g|=8192;break;case 14:f=$.decodeNullableSerializableElement_8viuyw$(this.descriptor,14,Ict(),f),g|=16384;break;case-1:break t;default:throw new Vt(e)}return $.endStructure_24f42q$(this.descriptor),v8(g,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,null)},y8.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.FloatSerializer,Ht.BooleanSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(Ict())]},y8.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var b8=null;function S8(){return null===b8&&new y8,b8}function v8(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f){var g=f||Object.create(f8.prototype);return(g=W5(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,g)).person=0==(16384&t)?null:m,g}function C8(){L8(),this.clazzLogUid=X,this.clazzLogClazzUid=X,this.logDate=X,this.timeRecorded=X,this.clazzLogDone=!1,this.cancellationNote=null,this.clazzLogCancelled=!1,this.clazzLogNumPresent=0,this.clazzLogNumAbsent=0,this.clazzLogNumPartial=0,this.clazzLogScheduleUid=X,this.clazzLogStatusFlag=0,this.clazzLogMSQN=X,this.clazzLogLCSN=X,this.clazzLogLCB=0,this.clazzLogLastChangedTime=X}function N8(){T8=this,this.TABLE_ID=14,this.STATUS_CREATED=0,this.STATUS_HOLIDAY=1,this.STATUS_MANUALLYCANCELED=2,this.STATUS_RECORDED=4,this.STATUS_RESCHEDULED=8,this.STATUS_INACTIVE=16}f8.$metadata$={kind:c,simpleName:"ClazzEnrolmentWithPerson",interfaces:[M5]},N8.prototype.serializer=function(){return O8()},N8.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var T8=null;function L8(){return null===T8&&new N8,T8}function z8(){this.descriptor_ady8ev$_0=new Wt("com.ustadmobile.lib.db.entities.ClazzLog",this,16),this.descriptor.addElement_ivxn3r$("clazzLogUid",!0),this.descriptor.addElement_ivxn3r$("clazzLogClazzUid",!0),this.descriptor.addElement_ivxn3r$("logDate",!0),this.descriptor.addElement_ivxn3r$("timeRecorded",!0),this.descriptor.addElement_ivxn3r$("clazzLogDone",!0),this.descriptor.addElement_ivxn3r$("cancellationNote",!0),this.descriptor.addElement_ivxn3r$("clazzLogCancelled",!0),this.descriptor.addElement_ivxn3r$("clazzLogNumPresent",!0),this.descriptor.addElement_ivxn3r$("clazzLogNumAbsent",!0),this.descriptor.addElement_ivxn3r$("clazzLogNumPartial",!0),this.descriptor.addElement_ivxn3r$("clazzLogScheduleUid",!0),this.descriptor.addElement_ivxn3r$("clazzLogStatusFlag",!0),this.descriptor.addElement_ivxn3r$("clazzLogMSQN",!0),this.descriptor.addElement_ivxn3r$("clazzLogLCSN",!0),this.descriptor.addElement_ivxn3r$("clazzLogLCB",!0),this.descriptor.addElement_ivxn3r$("clazzLogLastChangedTime",!0),w8=this}C8.prototype.equals=function(t){var n;return this===t||!(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))&&(e.isType(t,C8)||Jt(),!!(O(this.clazzLogUid,t.clazzLogUid)&&O(this.clazzLogClazzUid,t.clazzLogClazzUid)&&O(this.logDate,t.logDate)&&O(this.timeRecorded,t.timeRecorded)&&this.clazzLogDone===t.clazzLogDone&&O(this.cancellationNote,t.cancellationNote)&&this.clazzLogCancelled===t.clazzLogCancelled&&this.clazzLogNumPresent===t.clazzLogNumPresent&&this.clazzLogNumAbsent===t.clazzLogNumAbsent&&this.clazzLogNumPartial===t.clazzLogNumPartial&&O(this.clazzLogScheduleUid,t.clazzLogScheduleUid)&&this.clazzLogStatusFlag===t.clazzLogStatusFlag&&O(this.clazzLogMSQN,t.clazzLogMSQN)&&O(this.clazzLogLCSN,t.clazzLogLCSN)&&this.clazzLogLCB===t.clazzLogLCB&&O(this.clazzLogLastChangedTime,t.clazzLogLastChangedTime)))},C8.prototype.hashCode=function(){var t,e,n=Yt(this.clazzLogUid);return n=(31*(n=(31*(n=(31*(n=(31*(n=(31*(n=(31*(n=(31*(n=(31*(n=(31*(n=(31*(n=(31*(n=(31*(n=(31*(n=(31*(n=(31*n|0)+Yt(this.clazzLogClazzUid)|0)|0)+Yt(this.logDate)|0)|0)+Yt(this.timeRecorded)|0)|0)+Yt(this.clazzLogDone)|0)|0)+(null!=(e=null!=(t=this.cancellationNote)?Yt(t):null)?e:0)|0)|0)+Yt(this.clazzLogCancelled)|0)|0)+this.clazzLogNumPresent|0)|0)+this.clazzLogNumAbsent|0)|0)+this.clazzLogNumPartial|0)|0)+Yt(this.clazzLogScheduleUid)|0)|0)+this.clazzLogStatusFlag|0)|0)+Yt(this.clazzLogMSQN)|0)|0)+Yt(this.clazzLogLCSN)|0)|0)+this.clazzLogLCB|0)|0)+Yt(this.clazzLogLastChangedTime)|0},Object.defineProperty(z8.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_ady8ev$_0}}),z8.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.clazzLogUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.clazzLogUid),O(e.clazzLogClazzUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.clazzLogClazzUid),O(e.logDate,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.logDate),O(e.timeRecorded,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.timeRecorded),O(e.clazzLogDone,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeBooleanElement_qh7jdn$(this.descriptor,4,e.clazzLogDone),O(e.cancellationNote,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,5,Ht.StringSerializer,e.cancellationNote),O(e.clazzLogCancelled,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeBooleanElement_qh7jdn$(this.descriptor,6,e.clazzLogCancelled),O(e.clazzLogNumPresent,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeIntElement_ptg7oe$(this.descriptor,7,e.clazzLogNumPresent),O(e.clazzLogNumAbsent,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeIntElement_ptg7oe$(this.descriptor,8,e.clazzLogNumAbsent),O(e.clazzLogNumPartial,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeIntElement_ptg7oe$(this.descriptor,9,e.clazzLogNumPartial),O(e.clazzLogScheduleUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeLongElement_j0o2mv$(this.descriptor,10,e.clazzLogScheduleUid),O(e.clazzLogStatusFlag,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeIntElement_ptg7oe$(this.descriptor,11,e.clazzLogStatusFlag),O(e.clazzLogMSQN,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeLongElement_j0o2mv$(this.descriptor,12,e.clazzLogMSQN),O(e.clazzLogLCSN,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeLongElement_j0o2mv$(this.descriptor,13,e.clazzLogLCSN),O(e.clazzLogLCB,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeIntElement_ptg7oe$(this.descriptor,14,e.clazzLogLCB),O(e.clazzLogLastChangedTime,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeLongElement_j0o2mv$(this.descriptor,15,e.clazzLogLastChangedTime),n.endStructure_24f42q$(this.descriptor)},z8.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$=0,E=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=E.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=E.decodeLongElement_szpzho$(this.descriptor,0),$|=1;break;case 1:i=E.decodeLongElement_szpzho$(this.descriptor,1),$|=2;break;case 2:o=E.decodeLongElement_szpzho$(this.descriptor,2),$|=4;break;case 3:r=E.decodeLongElement_szpzho$(this.descriptor,3),$|=8;break;case 4:s=E.decodeBooleanElement_szpzho$(this.descriptor,4),$|=16;break;case 5:a=E.decodeNullableSerializableElement_8viuyw$(this.descriptor,5,Ht.StringSerializer,a),$|=32;break;case 6:c=E.decodeBooleanElement_szpzho$(this.descriptor,6),$|=64;break;case 7:l=E.decodeIntElement_szpzho$(this.descriptor,7),$|=128;break;case 8:u=E.decodeIntElement_szpzho$(this.descriptor,8),$|=256;break;case 9:h=E.decodeIntElement_szpzho$(this.descriptor,9),$|=512;break;case 10:d=E.decodeLongElement_szpzho$(this.descriptor,10),$|=1024;break;case 11:p=E.decodeIntElement_szpzho$(this.descriptor,11),$|=2048;break;case 12:_=E.decodeLongElement_szpzho$(this.descriptor,12),$|=4096;break;case 13:m=E.decodeLongElement_szpzho$(this.descriptor,13),$|=8192;break;case 14:f=E.decodeIntElement_szpzho$(this.descriptor,14),$|=16384;break;case 15:g=E.decodeLongElement_szpzho$(this.descriptor,15),$|=32768;break;case-1:break t;default:throw new Vt(e)}return E.endStructure_24f42q$(this.descriptor),R8($,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,null)},z8.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.BooleanSerializer,new Bt(Ht.StringSerializer),Ht.BooleanSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer]},z8.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var w8=null;function O8(){return null===w8&&new z8,w8}function R8(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g){var $=g||Object.create(C8.prototype);return $.clazzLogUid=0==(1&t)?X:e,$.clazzLogClazzUid=0==(2&t)?X:n,$.logDate=0==(4&t)?X:i,$.timeRecorded=0==(8&t)?X:o,$.clazzLogDone=0!=(16&t)&&r,$.cancellationNote=0==(32&t)?null:s,$.clazzLogCancelled=0!=(64&t)&&a,$.clazzLogNumPresent=0==(128&t)?0:c,$.clazzLogNumAbsent=0==(256&t)?0:l,$.clazzLogNumPartial=0==(512&t)?0:u,$.clazzLogScheduleUid=0==(1024&t)?X:h,$.clazzLogStatusFlag=0==(2048&t)?0:d,$.clazzLogMSQN=0==(4096&t)?X:p,$.clazzLogLCSN=0==(8192&t)?X:_,$.clazzLogLCB=0==(16384&t)?0:m,$.clazzLogLastChangedTime=0==(32768&t)?X:f,$}function A8(){U8(),this.clazzLogAttendanceRecordUid=X,this.clazzLogAttendanceRecordClazzLogUid=X,this.clazzLogAttendanceRecordPersonUid=X,this.attendanceStatus=0,this.clazzLogAttendanceRecordMasterChangeSeqNum=X,this.clazzLogAttendanceRecordLocalChangeSeqNum=X,this.clazzLogAttendanceRecordLastChangedBy=0,this.clazzLogAttendanceRecordLastChangedTime=X}function x8(){I8=this,this.FROM_CLAZZLOGATTENDANCERECORD_TO_SCOPEDGRANT_JOIN_ON_CLAUSE="\n ((ScopedGrant.sgTableId = -2\n AND ScopedGrant.sgEntityUid = -2)\n OR (ScopedGrant.sgTableId = 9\n AND ScopedGrant.sgEntityUid = ClazzLogAttendanceRecord.clazzLogAttendanceRecordPersonUid)\n OR (ScopedGrant.sgTableId = 6\n AND ScopedGrant.sgEntityUid = (\n SELECT clazzLogClazzUid \n FROM ClazzLog\n WHERE clazzLogUid = ClazzLogAttendanceRecord.clazzLogAttendanceRecordClazzLogUid))\n OR (ScopedGrant.sgTableId = 164\n AND ScopedGrant.sgEntityUid = (\n SELECT clazzSchoolUid\n FROM Clazz\n WHERE clazzUid = (\n SELECT clazzLogClazzUid \n FROM ClazzLog\n WHERE clazzLogUid = ClazzLogAttendanceRecord.clazzLogAttendanceRecordClazzLogUid)))\n \n )\n \n ",this.FROM_SCOPEDGRANT_TO_CLAZZLOGATTENDANCERECORD_JOIN_ON_CLAUSE="\n ((ScopedGrant.sgTableId = -2\n AND ScopedGrant.sgEntityUid = -2)\n OR (ScopedGrant.sgTableId = 9\n AND ScopedGrant.sgEntityUid = ClazzLogAttendanceRecord.clazzLogAttendanceRecordPersonUid)\n OR (ScopedGrant.sgTableId = 6\n AND ClazzLogAttendanceRecord.clazzLogAttendanceRecordClazzLogUid IN (\n SELECT clazzLogUid \n FROM ClazzLog\n WHERE clazzLogClazzUid = ScopedGrant.sgEntityUid))\n OR (ScopedGrant.sgTableId = 164\n AND ClazzLogAttendanceRecord.clazzLogAttendanceRecordClazzLogUid IN (\n SELECT clazzLogUid\n FROM ClazzLog\n WHERE clazzLogClazzUid IN (\n SELECT clazzUid\n FROM Clazz\n WHERE clazzSchoolUid = ScopedGrant.sgEntityUid)))\n ) \n ",this.TABLE_ID=15,this.STATUS_ATTENDED=1,this.STATUS_ABSENT=2,this.STATUS_PARTIAL=4}C8.$metadata$={kind:c,simpleName:"ClazzLog",interfaces:[]},A8.prototype.equals=function(t){var n;return this===t||!(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))&&(e.isType(t,A8)||Jt(),!!(O(this.clazzLogAttendanceRecordUid,t.clazzLogAttendanceRecordUid)&&O(this.clazzLogAttendanceRecordClazzLogUid,t.clazzLogAttendanceRecordClazzLogUid)&&O(this.clazzLogAttendanceRecordPersonUid,t.clazzLogAttendanceRecordPersonUid)&&this.attendanceStatus===t.attendanceStatus&&O(this.clazzLogAttendanceRecordMasterChangeSeqNum,t.clazzLogAttendanceRecordMasterChangeSeqNum)&&O(this.clazzLogAttendanceRecordLocalChangeSeqNum,t.clazzLogAttendanceRecordLocalChangeSeqNum)&&this.clazzLogAttendanceRecordLastChangedBy===t.clazzLogAttendanceRecordLastChangedBy))},A8.prototype.hashCode=function(){var t=Yt(this.clazzLogAttendanceRecordUid);return t=(31*(t=(31*(t=(31*(t=(31*(t=(31*(t=(31*t|0)+Yt(this.clazzLogAttendanceRecordClazzLogUid)|0)|0)+Yt(this.clazzLogAttendanceRecordPersonUid)|0)|0)+this.attendanceStatus|0)|0)+Yt(this.clazzLogAttendanceRecordMasterChangeSeqNum)|0)|0)+Yt(this.clazzLogAttendanceRecordLocalChangeSeqNum)|0)|0)+this.clazzLogAttendanceRecordLastChangedBy|0},x8.prototype.serializer=function(){return M8()},x8.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var I8=null;function U8(){return null===I8&&new x8,I8}function D8(){this.descriptor_pq1oof$_0=new Wt("com.ustadmobile.lib.db.entities.ClazzLogAttendanceRecord",this,8),this.descriptor.addElement_ivxn3r$("clazzLogAttendanceRecordUid",!0),this.descriptor.addElement_ivxn3r$("clazzLogAttendanceRecordClazzLogUid",!0),this.descriptor.addElement_ivxn3r$("clazzLogAttendanceRecordPersonUid",!0),this.descriptor.addElement_ivxn3r$("attendanceStatus",!0),this.descriptor.addElement_ivxn3r$("clazzLogAttendanceRecordMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("clazzLogAttendanceRecordLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("clazzLogAttendanceRecordLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("clazzLogAttendanceRecordLastChangedTime",!0),P8=this}Object.defineProperty(D8.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_pq1oof$_0}}),D8.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.clazzLogAttendanceRecordUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.clazzLogAttendanceRecordUid),O(e.clazzLogAttendanceRecordClazzLogUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.clazzLogAttendanceRecordClazzLogUid),O(e.clazzLogAttendanceRecordPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.clazzLogAttendanceRecordPersonUid),O(e.attendanceStatus,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeIntElement_ptg7oe$(this.descriptor,3,e.attendanceStatus),O(e.clazzLogAttendanceRecordMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.clazzLogAttendanceRecordMasterChangeSeqNum),O(e.clazzLogAttendanceRecordLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.clazzLogAttendanceRecordLocalChangeSeqNum),O(e.clazzLogAttendanceRecordLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.clazzLogAttendanceRecordLastChangedBy),O(e.clazzLogAttendanceRecordLastChangedTime,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.clazzLogAttendanceRecordLastChangedTime),n.endStructure_24f42q$(this.descriptor)},D8.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u=0,h=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=h.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=h.decodeLongElement_szpzho$(this.descriptor,0),u|=1;break;case 1:i=h.decodeLongElement_szpzho$(this.descriptor,1),u|=2;break;case 2:o=h.decodeLongElement_szpzho$(this.descriptor,2),u|=4;break;case 3:r=h.decodeIntElement_szpzho$(this.descriptor,3),u|=8;break;case 4:s=h.decodeLongElement_szpzho$(this.descriptor,4),u|=16;break;case 5:a=h.decodeLongElement_szpzho$(this.descriptor,5),u|=32;break;case 6:c=h.decodeIntElement_szpzho$(this.descriptor,6),u|=64;break;case 7:l=h.decodeLongElement_szpzho$(this.descriptor,7),u|=128;break;case-1:break t;default:throw new Vt(e)}return h.endStructure_24f42q$(this.descriptor),k8(u,n,i,o,r,s,a,c,l,null)},D8.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer]},D8.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var P8=null;function M8(){return null===P8&&new D8,P8}function k8(t,e,n,i,o,r,s,a,c,l){var u=l||Object.create(A8.prototype);return u.clazzLogAttendanceRecordUid=0==(1&t)?X:e,u.clazzLogAttendanceRecordClazzLogUid=0==(2&t)?X:n,u.clazzLogAttendanceRecordPersonUid=0==(4&t)?X:i,u.attendanceStatus=0==(8&t)?0:o,u.clazzLogAttendanceRecordMasterChangeSeqNum=0==(16&t)?X:r,u.clazzLogAttendanceRecordLocalChangeSeqNum=0==(32&t)?X:s,u.clazzLogAttendanceRecordLastChangedBy=0==(64&t)?0:a,u.clazzLogAttendanceRecordLastChangedTime=0==(128&t)?X:c,u}function j8(){F8(),A8.call(this),this.person=null}function G8(){q8=this}A8.$metadata$={kind:c,simpleName:"ClazzLogAttendanceRecord",interfaces:[]},j8.prototype.copy=function(){var t=new j8;return t.person=this.person,t.clazzLogAttendanceRecordUid=this.clazzLogAttendanceRecordUid,t.clazzLogAttendanceRecordPersonUid=this.clazzLogAttendanceRecordPersonUid,t.clazzLogAttendanceRecordClazzLogUid=this.clazzLogAttendanceRecordClazzLogUid,t.clazzLogAttendanceRecordLastChangedBy=this.clazzLogAttendanceRecordLastChangedBy,t.clazzLogAttendanceRecordLocalChangeSeqNum=this.clazzLogAttendanceRecordLocalChangeSeqNum,t.clazzLogAttendanceRecordMasterChangeSeqNum=this.clazzLogAttendanceRecordMasterChangeSeqNum,t.attendanceStatus=this.attendanceStatus,t},G8.prototype.serializer=function(){return H8()},G8.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var q8=null;function F8(){return null===q8&&new G8,q8}function B8(){this.descriptor_kur6b0$_0=new Wt("com.ustadmobile.lib.db.entities.ClazzLogAttendanceRecordWithPerson",this,9),this.descriptor.addElement_ivxn3r$("clazzLogAttendanceRecordUid",!0),this.descriptor.addElement_ivxn3r$("clazzLogAttendanceRecordClazzLogUid",!0),this.descriptor.addElement_ivxn3r$("clazzLogAttendanceRecordPersonUid",!0),this.descriptor.addElement_ivxn3r$("attendanceStatus",!0),this.descriptor.addElement_ivxn3r$("clazzLogAttendanceRecordMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("clazzLogAttendanceRecordLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("clazzLogAttendanceRecordLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("clazzLogAttendanceRecordLastChangedTime",!0),this.descriptor.addElement_ivxn3r$("person",!0),W8=this}Object.defineProperty(B8.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_kur6b0$_0}}),B8.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.clazzLogAttendanceRecordUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.clazzLogAttendanceRecordUid),O(e.clazzLogAttendanceRecordClazzLogUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.clazzLogAttendanceRecordClazzLogUid),O(e.clazzLogAttendanceRecordPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.clazzLogAttendanceRecordPersonUid),O(e.attendanceStatus,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeIntElement_ptg7oe$(this.descriptor,3,e.attendanceStatus),O(e.clazzLogAttendanceRecordMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.clazzLogAttendanceRecordMasterChangeSeqNum),O(e.clazzLogAttendanceRecordLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.clazzLogAttendanceRecordLocalChangeSeqNum),O(e.clazzLogAttendanceRecordLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.clazzLogAttendanceRecordLastChangedBy),O(e.clazzLogAttendanceRecordLastChangedTime,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.clazzLogAttendanceRecordLastChangedTime),O(e.person,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,8,Ict(),e.person),n.endStructure_24f42q$(this.descriptor)},B8.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h=0,d=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=d.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=d.decodeLongElement_szpzho$(this.descriptor,0),h|=1;break;case 1:i=d.decodeLongElement_szpzho$(this.descriptor,1),h|=2;break;case 2:o=d.decodeLongElement_szpzho$(this.descriptor,2),h|=4;break;case 3:r=d.decodeIntElement_szpzho$(this.descriptor,3),h|=8;break;case 4:s=d.decodeLongElement_szpzho$(this.descriptor,4),h|=16;break;case 5:a=d.decodeLongElement_szpzho$(this.descriptor,5),h|=32;break;case 6:c=d.decodeIntElement_szpzho$(this.descriptor,6),h|=64;break;case 7:l=d.decodeLongElement_szpzho$(this.descriptor,7),h|=128;break;case 8:u=d.decodeNullableSerializableElement_8viuyw$(this.descriptor,8,Ict(),u),h|=256;break;case-1:break t;default:throw new Vt(e)}return d.endStructure_24f42q$(this.descriptor),V8(h,n,i,o,r,s,a,c,l,u,null)},B8.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(Ict())]},B8.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var W8=null;function H8(){return null===W8&&new B8,W8}function V8(t,e,n,i,o,r,s,a,c,l,u){var h=u||Object.create(j8.prototype);return(h=k8(t,e,n,i,o,r,s,a,c,h)).person=0==(256&t)?null:l,h}function K8(){Y8(),s5.call(this),this.clazzHolidayCalendar=null,this.clazzSchool=null,this.terminology=null,this.numStudents=0,this.numTeachers=0}function X8(){J8=this}j8.$metadata$={kind:c,simpleName:"ClazzLogAttendanceRecordWithPerson",interfaces:[A8]},X8.prototype.serializer=function(){return t9()},X8.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var J8=null;function Y8(){return null===J8&&new X8,J8}function Q8(){this.descriptor_bmce0t$_0=new Wt("com.ustadmobile.lib.db.entities.ClazzWithDisplayDetails",this,29),this.descriptor.addElement_ivxn3r$("clazzUid",!0),this.descriptor.addElement_ivxn3r$("clazzName",!0),this.descriptor.addElement_ivxn3r$("clazzDesc",!0),this.descriptor.addElement_ivxn3r$("attendanceAverage",!0),this.descriptor.addElement_ivxn3r$("clazzHolidayUMCalendarUid",!0),this.descriptor.addElement_ivxn3r$("clazzScheuleUMCalendarUid",!0),this.descriptor.addElement_ivxn3r$("isClazzActive",!0),this.descriptor.addElement_ivxn3r$("clazzLocationUid",!0),this.descriptor.addElement_ivxn3r$("clazzStartTime",!0),this.descriptor.addElement_ivxn3r$("clazzEndTime",!0),this.descriptor.addElement_ivxn3r$("clazzFeatures",!0),this.descriptor.addElement_ivxn3r$("clazzSchoolUid",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentPolicy",!0),this.descriptor.addElement_ivxn3r$("clazzTerminologyUid",!0),this.descriptor.addElement_ivxn3r$("clazzMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("clazzLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("clazzLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("clazzLct",!0),this.descriptor.addElement_ivxn3r$("clazzTimeZone",!0),this.descriptor.addElement_ivxn3r$("clazzStudentsPersonGroupUid",!0),this.descriptor.addElement_ivxn3r$("clazzTeachersPersonGroupUid",!0),this.descriptor.addElement_ivxn3r$("clazzPendingStudentsPersonGroupUid",!0),this.descriptor.addElement_ivxn3r$("clazzParentsPersonGroupUid",!0),this.descriptor.addElement_ivxn3r$("clazzCode",!0),this.descriptor.addElement_ivxn3r$("clazzHolidayCalendar",!0),this.descriptor.addElement_ivxn3r$("clazzSchool",!0),this.descriptor.addElement_ivxn3r$("terminology",!0),this.descriptor.addElement_ivxn3r$("numStudents",!0),this.descriptor.addElement_ivxn3r$("numTeachers",!0),Z8=this}Object.defineProperty(Q8.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_bmce0t$_0}}),Q8.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.clazzUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.clazzUid),O(e.clazzName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.clazzName),O(e.clazzDesc,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.clazzDesc),O(e.attendanceAverage,-1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeFloatElement_lf6hpt$(this.descriptor,3,e.attendanceAverage),O(e.clazzHolidayUMCalendarUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.clazzHolidayUMCalendarUid),O(e.clazzScheuleUMCalendarUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.clazzScheuleUMCalendarUid),O(e.isClazzActive,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeBooleanElement_qh7jdn$(this.descriptor,6,e.isClazzActive),O(e.clazzLocationUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.clazzLocationUid),O(e.clazzStartTime,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.clazzStartTime),O(e.clazzEndTime,Xt)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeLongElement_j0o2mv$(this.descriptor,9,e.clazzEndTime),O(e.clazzFeatures,l5().CLAZZ_FEATURE_ATTENDANCE)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeLongElement_j0o2mv$(this.descriptor,10,e.clazzFeatures),O(e.clazzSchoolUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeLongElement_j0o2mv$(this.descriptor,11,e.clazzSchoolUid),O(e.clazzEnrolmentPolicy,102)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeIntElement_ptg7oe$(this.descriptor,12,e.clazzEnrolmentPolicy),O(e.clazzTerminologyUid,ee)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeLongElement_j0o2mv$(this.descriptor,13,e.clazzTerminologyUid),O(e.clazzMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeLongElement_j0o2mv$(this.descriptor,14,e.clazzMasterChangeSeqNum),O(e.clazzLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeLongElement_j0o2mv$(this.descriptor,15,e.clazzLocalChangeSeqNum),O(e.clazzLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,16)||n.encodeIntElement_ptg7oe$(this.descriptor,16,e.clazzLastChangedBy),O(e.clazzLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,17)||n.encodeLongElement_j0o2mv$(this.descriptor,17,e.clazzLct),O(e.clazzTimeZone,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,18)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,18,Ht.StringSerializer,e.clazzTimeZone),O(e.clazzStudentsPersonGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,19)||n.encodeLongElement_j0o2mv$(this.descriptor,19,e.clazzStudentsPersonGroupUid),O(e.clazzTeachersPersonGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,20)||n.encodeLongElement_j0o2mv$(this.descriptor,20,e.clazzTeachersPersonGroupUid),O(e.clazzPendingStudentsPersonGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,21)||n.encodeLongElement_j0o2mv$(this.descriptor,21,e.clazzPendingStudentsPersonGroupUid),O(e.clazzParentsPersonGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,22)||n.encodeLongElement_j0o2mv$(this.descriptor,22,e.clazzParentsPersonGroupUid),O(e.clazzCode,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,23)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,23,Ht.StringSerializer,e.clazzCode),O(e.clazzHolidayCalendar,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,24)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,24,bst(),e.clazzHolidayCalendar),O(e.clazzSchool,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,25)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,25,Oht(),e.clazzSchool),O(e.terminology,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,26)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,26,Bot(),e.terminology),O(e.numStudents,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,27)||n.encodeIntElement_ptg7oe$(this.descriptor,27,e.numStudents),O(e.numTeachers,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,28)||n.encodeIntElement_ptg7oe$(this.descriptor,28,e.numTeachers),n.endStructure_24f42q$(this.descriptor)},Q8.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w,O,R=0,A=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=A.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=A.decodeLongElement_szpzho$(this.descriptor,0),R|=1;break;case 1:i=A.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),R|=2;break;case 2:o=A.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),R|=4;break;case 3:r=A.decodeFloatElement_szpzho$(this.descriptor,3),R|=8;break;case 4:s=A.decodeLongElement_szpzho$(this.descriptor,4),R|=16;break;case 5:a=A.decodeLongElement_szpzho$(this.descriptor,5),R|=32;break;case 6:c=A.decodeBooleanElement_szpzho$(this.descriptor,6),R|=64;break;case 7:l=A.decodeLongElement_szpzho$(this.descriptor,7),R|=128;break;case 8:u=A.decodeLongElement_szpzho$(this.descriptor,8),R|=256;break;case 9:h=A.decodeLongElement_szpzho$(this.descriptor,9),R|=512;break;case 10:d=A.decodeLongElement_szpzho$(this.descriptor,10),R|=1024;break;case 11:p=A.decodeLongElement_szpzho$(this.descriptor,11),R|=2048;break;case 12:_=A.decodeIntElement_szpzho$(this.descriptor,12),R|=4096;break;case 13:m=A.decodeLongElement_szpzho$(this.descriptor,13),R|=8192;break;case 14:f=A.decodeLongElement_szpzho$(this.descriptor,14),R|=16384;break;case 15:g=A.decodeLongElement_szpzho$(this.descriptor,15),R|=32768;break;case 16:$=A.decodeIntElement_szpzho$(this.descriptor,16),R|=65536;break;case 17:E=A.decodeLongElement_szpzho$(this.descriptor,17),R|=131072;break;case 18:y=A.decodeNullableSerializableElement_8viuyw$(this.descriptor,18,Ht.StringSerializer,y),R|=262144;break;case 19:b=A.decodeLongElement_szpzho$(this.descriptor,19),R|=524288;break;case 20:S=A.decodeLongElement_szpzho$(this.descriptor,20),R|=1048576;break;case 21:v=A.decodeLongElement_szpzho$(this.descriptor,21),R|=2097152;break;case 22:C=A.decodeLongElement_szpzho$(this.descriptor,22),R|=4194304;break;case 23:N=A.decodeNullableSerializableElement_8viuyw$(this.descriptor,23,Ht.StringSerializer,N),R|=8388608;break;case 24:T=A.decodeNullableSerializableElement_8viuyw$(this.descriptor,24,bst(),T),R|=16777216;break;case 25:L=A.decodeNullableSerializableElement_8viuyw$(this.descriptor,25,Oht(),L),R|=33554432;break;case 26:z=A.decodeNullableSerializableElement_8viuyw$(this.descriptor,26,Bot(),z),R|=67108864;break;case 27:w=A.decodeIntElement_szpzho$(this.descriptor,27),R|=134217728;break;case 28:O=A.decodeIntElement_szpzho$(this.descriptor,28),R|=268435456;break;case-1:break t;default:throw new Vt(e)}return A.endStructure_24f42q$(this.descriptor),e9(R,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w,O,null)},Q8.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.FloatSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.BooleanSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(bst()),new Bt(Oht()),new Bt(Bot()),Ht.IntSerializer,Ht.IntSerializer]},Q8.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Z8=null;function t9(){return null===Z8&&new Q8,Z8}function e9(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w,O){var R=O||Object.create(K8.prototype);return(R=p5(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,R)).clazzHolidayCalendar=0==(16777216&t)?null:N,R.clazzSchool=0==(33554432&t)?null:T,R.terminology=0==(67108864&t)?null:L,R.numStudents=0==(134217728&t)?0:z,R.numTeachers=0==(268435456&t)?0:w,R}function n9(){r9(),s5.call(this),this.holidayCalendar=null,this.school=null,this.terminology=null}function i9(){o9=this}K8.$metadata$={kind:c,simpleName:"ClazzWithDisplayDetails",interfaces:[s5]},i9.prototype.serializer=function(){return c9()},i9.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var o9=null;function r9(){return null===o9&&new i9,o9}function s9(){this.descriptor_w1t26q$_0=new Wt("com.ustadmobile.lib.db.entities.ClazzWithHolidayCalendarAndSchoolAndTerminology",this,27),this.descriptor.addElement_ivxn3r$("clazzUid",!0),this.descriptor.addElement_ivxn3r$("clazzName",!0),this.descriptor.addElement_ivxn3r$("clazzDesc",!0),this.descriptor.addElement_ivxn3r$("attendanceAverage",!0),this.descriptor.addElement_ivxn3r$("clazzHolidayUMCalendarUid",!0),this.descriptor.addElement_ivxn3r$("clazzScheuleUMCalendarUid",!0),this.descriptor.addElement_ivxn3r$("isClazzActive",!0),this.descriptor.addElement_ivxn3r$("clazzLocationUid",!0),this.descriptor.addElement_ivxn3r$("clazzStartTime",!0),this.descriptor.addElement_ivxn3r$("clazzEndTime",!0),this.descriptor.addElement_ivxn3r$("clazzFeatures",!0),this.descriptor.addElement_ivxn3r$("clazzSchoolUid",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentPolicy",!0),this.descriptor.addElement_ivxn3r$("clazzTerminologyUid",!0),this.descriptor.addElement_ivxn3r$("clazzMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("clazzLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("clazzLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("clazzLct",!0),this.descriptor.addElement_ivxn3r$("clazzTimeZone",!0),this.descriptor.addElement_ivxn3r$("clazzStudentsPersonGroupUid",!0),this.descriptor.addElement_ivxn3r$("clazzTeachersPersonGroupUid",!0),this.descriptor.addElement_ivxn3r$("clazzPendingStudentsPersonGroupUid",!0),this.descriptor.addElement_ivxn3r$("clazzParentsPersonGroupUid",!0),this.descriptor.addElement_ivxn3r$("clazzCode",!0),this.descriptor.addElement_ivxn3r$("holidayCalendar",!0),this.descriptor.addElement_ivxn3r$("school",!0),this.descriptor.addElement_ivxn3r$("terminology",!0),a9=this}Object.defineProperty(s9.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_w1t26q$_0}}),s9.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.clazzUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.clazzUid),O(e.clazzName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.clazzName),O(e.clazzDesc,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.clazzDesc),O(e.attendanceAverage,-1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeFloatElement_lf6hpt$(this.descriptor,3,e.attendanceAverage),O(e.clazzHolidayUMCalendarUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.clazzHolidayUMCalendarUid),O(e.clazzScheuleUMCalendarUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.clazzScheuleUMCalendarUid),O(e.isClazzActive,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeBooleanElement_qh7jdn$(this.descriptor,6,e.isClazzActive),O(e.clazzLocationUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.clazzLocationUid),O(e.clazzStartTime,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.clazzStartTime),O(e.clazzEndTime,Xt)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeLongElement_j0o2mv$(this.descriptor,9,e.clazzEndTime),O(e.clazzFeatures,l5().CLAZZ_FEATURE_ATTENDANCE)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeLongElement_j0o2mv$(this.descriptor,10,e.clazzFeatures),O(e.clazzSchoolUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeLongElement_j0o2mv$(this.descriptor,11,e.clazzSchoolUid),O(e.clazzEnrolmentPolicy,102)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeIntElement_ptg7oe$(this.descriptor,12,e.clazzEnrolmentPolicy),O(e.clazzTerminologyUid,ee)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeLongElement_j0o2mv$(this.descriptor,13,e.clazzTerminologyUid),O(e.clazzMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeLongElement_j0o2mv$(this.descriptor,14,e.clazzMasterChangeSeqNum),O(e.clazzLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeLongElement_j0o2mv$(this.descriptor,15,e.clazzLocalChangeSeqNum),O(e.clazzLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,16)||n.encodeIntElement_ptg7oe$(this.descriptor,16,e.clazzLastChangedBy),O(e.clazzLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,17)||n.encodeLongElement_j0o2mv$(this.descriptor,17,e.clazzLct),O(e.clazzTimeZone,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,18)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,18,Ht.StringSerializer,e.clazzTimeZone),O(e.clazzStudentsPersonGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,19)||n.encodeLongElement_j0o2mv$(this.descriptor,19,e.clazzStudentsPersonGroupUid),O(e.clazzTeachersPersonGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,20)||n.encodeLongElement_j0o2mv$(this.descriptor,20,e.clazzTeachersPersonGroupUid),O(e.clazzPendingStudentsPersonGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,21)||n.encodeLongElement_j0o2mv$(this.descriptor,21,e.clazzPendingStudentsPersonGroupUid),O(e.clazzParentsPersonGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,22)||n.encodeLongElement_j0o2mv$(this.descriptor,22,e.clazzParentsPersonGroupUid),O(e.clazzCode,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,23)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,23,Ht.StringSerializer,e.clazzCode),O(e.holidayCalendar,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,24)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,24,bst(),e.holidayCalendar),O(e.school,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,25)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,25,Oht(),e.school),O(e.terminology,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,26)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,26,Bot(),e.terminology),n.endStructure_24f42q$(this.descriptor)},s9.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w=0,O=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=O.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=O.decodeLongElement_szpzho$(this.descriptor,0),w|=1;break;case 1:i=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),w|=2;break;case 2:o=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),w|=4;break;case 3:r=O.decodeFloatElement_szpzho$(this.descriptor,3),w|=8;break;case 4:s=O.decodeLongElement_szpzho$(this.descriptor,4),w|=16;break;case 5:a=O.decodeLongElement_szpzho$(this.descriptor,5),w|=32;break;case 6:c=O.decodeBooleanElement_szpzho$(this.descriptor,6),w|=64;break;case 7:l=O.decodeLongElement_szpzho$(this.descriptor,7),w|=128;break;case 8:u=O.decodeLongElement_szpzho$(this.descriptor,8),w|=256;break;case 9:h=O.decodeLongElement_szpzho$(this.descriptor,9),w|=512;break;case 10:d=O.decodeLongElement_szpzho$(this.descriptor,10),w|=1024;break;case 11:p=O.decodeLongElement_szpzho$(this.descriptor,11),w|=2048;break;case 12:_=O.decodeIntElement_szpzho$(this.descriptor,12),w|=4096;break;case 13:m=O.decodeLongElement_szpzho$(this.descriptor,13),w|=8192;break;case 14:f=O.decodeLongElement_szpzho$(this.descriptor,14),w|=16384;break;case 15:g=O.decodeLongElement_szpzho$(this.descriptor,15),w|=32768;break;case 16:$=O.decodeIntElement_szpzho$(this.descriptor,16),w|=65536;break;case 17:E=O.decodeLongElement_szpzho$(this.descriptor,17),w|=131072;break;case 18:y=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,18,Ht.StringSerializer,y),w|=262144;break;case 19:b=O.decodeLongElement_szpzho$(this.descriptor,19),w|=524288;break;case 20:S=O.decodeLongElement_szpzho$(this.descriptor,20),w|=1048576;break;case 21:v=O.decodeLongElement_szpzho$(this.descriptor,21),w|=2097152;break;case 22:C=O.decodeLongElement_szpzho$(this.descriptor,22),w|=4194304;break;case 23:N=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,23,Ht.StringSerializer,N),w|=8388608;break;case 24:T=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,24,bst(),T),w|=16777216;break;case 25:L=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,25,Oht(),L),w|=33554432;break;case 26:z=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,26,Bot(),z),w|=67108864;break;case-1:break t;default:throw new Vt(e)}return O.endStructure_24f42q$(this.descriptor),l9(w,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,null)},s9.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.FloatSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.BooleanSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(bst()),new Bt(Oht()),new Bt(Bot())]},s9.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var a9=null;function c9(){return null===a9&&new s9,a9}function l9(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z){var w=z||Object.create(n9.prototype);return(w=p5(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,w)).holidayCalendar=0==(16777216&t)?null:N,w.school=0==(33554432&t)?null:T,w.terminology=0==(67108864&t)?null:L,w}function u9(){p9(),s5.call(this),this.numStudents=0,this.numTeachers=0,this.teacherNames=null,this.lastRecorded=X,this.clazzActiveEnrolment=null,this.terminology=null}function h9(){d9=this}n9.$metadata$={kind:c,simpleName:"ClazzWithHolidayCalendarAndSchoolAndTerminology",interfaces:[s5]},u9.prototype.equals=function(t){var n;return!!(this===t||null!=t&&null!=(n=e.getKClassFromExpression(this))&&n.equals(e.getKClassFromExpression(t))&&(e.isType(t,u9)||Jt(),this.numStudents===t.numStudents&&this.numTeachers===t.numTeachers&&O(this.teacherNames,t.teacherNames)&&O(this.lastRecorded,t.lastRecorded)&&O(this.clazzName,t.clazzName)))},u9.prototype.hashCode=function(){var t,e,n=this.numStudents;return n=(31*(n=(31*(n=(31*n|0)+this.numTeachers|0)|0)+(null!=(e=null!=(t=this.teacherNames)?Yt(t):null)?e:0)|0)|0)+Yt(this.lastRecorded)|0},h9.prototype.serializer=function(){return f9()},h9.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var d9=null;function p9(){return null===d9&&new h9,d9}function _9(){this.descriptor_8bnt4r$_0=new Wt("com.ustadmobile.lib.db.entities.ClazzWithListDisplayDetails",this,30),this.descriptor.addElement_ivxn3r$("clazzUid",!0),this.descriptor.addElement_ivxn3r$("clazzName",!0),this.descriptor.addElement_ivxn3r$("clazzDesc",!0),this.descriptor.addElement_ivxn3r$("attendanceAverage",!0),this.descriptor.addElement_ivxn3r$("clazzHolidayUMCalendarUid",!0),this.descriptor.addElement_ivxn3r$("clazzScheuleUMCalendarUid",!0),this.descriptor.addElement_ivxn3r$("isClazzActive",!0),this.descriptor.addElement_ivxn3r$("clazzLocationUid",!0),this.descriptor.addElement_ivxn3r$("clazzStartTime",!0),this.descriptor.addElement_ivxn3r$("clazzEndTime",!0),this.descriptor.addElement_ivxn3r$("clazzFeatures",!0),this.descriptor.addElement_ivxn3r$("clazzSchoolUid",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentPolicy",!0),this.descriptor.addElement_ivxn3r$("clazzTerminologyUid",!0),this.descriptor.addElement_ivxn3r$("clazzMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("clazzLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("clazzLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("clazzLct",!0),this.descriptor.addElement_ivxn3r$("clazzTimeZone",!0),this.descriptor.addElement_ivxn3r$("clazzStudentsPersonGroupUid",!0),this.descriptor.addElement_ivxn3r$("clazzTeachersPersonGroupUid",!0),this.descriptor.addElement_ivxn3r$("clazzPendingStudentsPersonGroupUid",!0),this.descriptor.addElement_ivxn3r$("clazzParentsPersonGroupUid",!0),this.descriptor.addElement_ivxn3r$("clazzCode",!0),this.descriptor.addElement_ivxn3r$("numStudents",!0),this.descriptor.addElement_ivxn3r$("numTeachers",!0),this.descriptor.addElement_ivxn3r$("teacherNames",!0),this.descriptor.addElement_ivxn3r$("lastRecorded",!0),this.descriptor.addElement_ivxn3r$("clazzActiveEnrolment",!0),this.descriptor.addElement_ivxn3r$("terminology",!0),m9=this}Object.defineProperty(_9.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_8bnt4r$_0}}),_9.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.clazzUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.clazzUid),O(e.clazzName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.clazzName),O(e.clazzDesc,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.clazzDesc),O(e.attendanceAverage,-1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeFloatElement_lf6hpt$(this.descriptor,3,e.attendanceAverage),O(e.clazzHolidayUMCalendarUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.clazzHolidayUMCalendarUid),O(e.clazzScheuleUMCalendarUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.clazzScheuleUMCalendarUid),O(e.isClazzActive,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeBooleanElement_qh7jdn$(this.descriptor,6,e.isClazzActive),O(e.clazzLocationUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.clazzLocationUid),O(e.clazzStartTime,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.clazzStartTime),O(e.clazzEndTime,Xt)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeLongElement_j0o2mv$(this.descriptor,9,e.clazzEndTime),O(e.clazzFeatures,l5().CLAZZ_FEATURE_ATTENDANCE)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeLongElement_j0o2mv$(this.descriptor,10,e.clazzFeatures),O(e.clazzSchoolUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeLongElement_j0o2mv$(this.descriptor,11,e.clazzSchoolUid),O(e.clazzEnrolmentPolicy,102)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeIntElement_ptg7oe$(this.descriptor,12,e.clazzEnrolmentPolicy),O(e.clazzTerminologyUid,ee)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeLongElement_j0o2mv$(this.descriptor,13,e.clazzTerminologyUid),O(e.clazzMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeLongElement_j0o2mv$(this.descriptor,14,e.clazzMasterChangeSeqNum),O(e.clazzLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeLongElement_j0o2mv$(this.descriptor,15,e.clazzLocalChangeSeqNum),O(e.clazzLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,16)||n.encodeIntElement_ptg7oe$(this.descriptor,16,e.clazzLastChangedBy),O(e.clazzLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,17)||n.encodeLongElement_j0o2mv$(this.descriptor,17,e.clazzLct),O(e.clazzTimeZone,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,18)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,18,Ht.StringSerializer,e.clazzTimeZone),O(e.clazzStudentsPersonGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,19)||n.encodeLongElement_j0o2mv$(this.descriptor,19,e.clazzStudentsPersonGroupUid),O(e.clazzTeachersPersonGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,20)||n.encodeLongElement_j0o2mv$(this.descriptor,20,e.clazzTeachersPersonGroupUid),O(e.clazzPendingStudentsPersonGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,21)||n.encodeLongElement_j0o2mv$(this.descriptor,21,e.clazzPendingStudentsPersonGroupUid),O(e.clazzParentsPersonGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,22)||n.encodeLongElement_j0o2mv$(this.descriptor,22,e.clazzParentsPersonGroupUid),O(e.clazzCode,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,23)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,23,Ht.StringSerializer,e.clazzCode),O(e.numStudents,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,24)||n.encodeIntElement_ptg7oe$(this.descriptor,24,e.numStudents),O(e.numTeachers,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,25)||n.encodeIntElement_ptg7oe$(this.descriptor,25,e.numTeachers),O(e.teacherNames,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,26)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,26,Ht.StringSerializer,e.teacherNames),O(e.lastRecorded,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,27)||n.encodeLongElement_j0o2mv$(this.descriptor,27,e.lastRecorded),O(e.clazzActiveEnrolment,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,28)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,28,B5(),e.clazzActiveEnrolment),O(e.terminology,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,29)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,29,Bot(),e.terminology),n.endStructure_24f42q$(this.descriptor)},_9.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w,O,R,A=0,x=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=x.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=x.decodeLongElement_szpzho$(this.descriptor,0),A|=1;break;case 1:i=x.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),A|=2;break;case 2:o=x.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),A|=4;break;case 3:r=x.decodeFloatElement_szpzho$(this.descriptor,3),A|=8;break;case 4:s=x.decodeLongElement_szpzho$(this.descriptor,4),A|=16;break;case 5:a=x.decodeLongElement_szpzho$(this.descriptor,5),A|=32;break;case 6:c=x.decodeBooleanElement_szpzho$(this.descriptor,6),A|=64;break;case 7:l=x.decodeLongElement_szpzho$(this.descriptor,7),A|=128;break;case 8:u=x.decodeLongElement_szpzho$(this.descriptor,8),A|=256;break;case 9:h=x.decodeLongElement_szpzho$(this.descriptor,9),A|=512;break;case 10:d=x.decodeLongElement_szpzho$(this.descriptor,10),A|=1024;break;case 11:p=x.decodeLongElement_szpzho$(this.descriptor,11),A|=2048;break;case 12:_=x.decodeIntElement_szpzho$(this.descriptor,12),A|=4096;break;case 13:m=x.decodeLongElement_szpzho$(this.descriptor,13),A|=8192;break;case 14:f=x.decodeLongElement_szpzho$(this.descriptor,14),A|=16384;break;case 15:g=x.decodeLongElement_szpzho$(this.descriptor,15),A|=32768;break;case 16:$=x.decodeIntElement_szpzho$(this.descriptor,16),A|=65536;break;case 17:E=x.decodeLongElement_szpzho$(this.descriptor,17),A|=131072;break;case 18:y=x.decodeNullableSerializableElement_8viuyw$(this.descriptor,18,Ht.StringSerializer,y),A|=262144;break;case 19:b=x.decodeLongElement_szpzho$(this.descriptor,19),A|=524288;break;case 20:S=x.decodeLongElement_szpzho$(this.descriptor,20),A|=1048576;break;case 21:v=x.decodeLongElement_szpzho$(this.descriptor,21),A|=2097152;break;case 22:C=x.decodeLongElement_szpzho$(this.descriptor,22),A|=4194304;break;case 23:N=x.decodeNullableSerializableElement_8viuyw$(this.descriptor,23,Ht.StringSerializer,N),A|=8388608;break;case 24:T=x.decodeIntElement_szpzho$(this.descriptor,24),A|=16777216;break;case 25:L=x.decodeIntElement_szpzho$(this.descriptor,25),A|=33554432;break;case 26:z=x.decodeNullableSerializableElement_8viuyw$(this.descriptor,26,Ht.StringSerializer,z),A|=67108864;break;case 27:w=x.decodeLongElement_szpzho$(this.descriptor,27),A|=134217728;break;case 28:O=x.decodeNullableSerializableElement_8viuyw$(this.descriptor,28,B5(),O),A|=268435456;break;case 29:R=x.decodeNullableSerializableElement_8viuyw$(this.descriptor,29,Bot(),R),A|=536870912;break;case-1:break t;default:throw new Vt(e)}return x.endStructure_24f42q$(this.descriptor),g9(A,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w,O,R,null)},_9.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.FloatSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.BooleanSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.IntSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer,new Bt(B5()),new Bt(Bot())]},_9.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var m9=null;function f9(){return null===m9&&new _9,m9}function g9(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w,O,R){var A=R||Object.create(u9.prototype);return(A=p5(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,A)).numStudents=0==(16777216&t)?0:N,A.numTeachers=0==(33554432&t)?0:T,A.teacherNames=0==(67108864&t)?null:L,A.lastRecorded=0==(134217728&t)?X:z,A.clazzActiveEnrolment=0==(268435456&t)?null:w,A.terminology=0==(536870912&t)?null:O,A}function $9(){b9(),s5.call(this),this.school=null}function E9(){y9=this}u9.$metadata$={kind:c,simpleName:"ClazzWithListDisplayDetails",interfaces:[s5]},E9.prototype.serializer=function(){return C9()},E9.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var y9=null;function b9(){return null===y9&&new E9,y9}function S9(){this.descriptor_cprwrz$_0=new Wt("com.ustadmobile.lib.db.entities.ClazzWithSchool",this,25),this.descriptor.addElement_ivxn3r$("clazzUid",!0),this.descriptor.addElement_ivxn3r$("clazzName",!0),this.descriptor.addElement_ivxn3r$("clazzDesc",!0),this.descriptor.addElement_ivxn3r$("attendanceAverage",!0),this.descriptor.addElement_ivxn3r$("clazzHolidayUMCalendarUid",!0),this.descriptor.addElement_ivxn3r$("clazzScheuleUMCalendarUid",!0),this.descriptor.addElement_ivxn3r$("isClazzActive",!0),this.descriptor.addElement_ivxn3r$("clazzLocationUid",!0),this.descriptor.addElement_ivxn3r$("clazzStartTime",!0),this.descriptor.addElement_ivxn3r$("clazzEndTime",!0),this.descriptor.addElement_ivxn3r$("clazzFeatures",!0),this.descriptor.addElement_ivxn3r$("clazzSchoolUid",!0),this.descriptor.addElement_ivxn3r$("clazzEnrolmentPolicy",!0),this.descriptor.addElement_ivxn3r$("clazzTerminologyUid",!0),this.descriptor.addElement_ivxn3r$("clazzMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("clazzLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("clazzLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("clazzLct",!0),this.descriptor.addElement_ivxn3r$("clazzTimeZone",!0),this.descriptor.addElement_ivxn3r$("clazzStudentsPersonGroupUid",!0),this.descriptor.addElement_ivxn3r$("clazzTeachersPersonGroupUid",!0),this.descriptor.addElement_ivxn3r$("clazzPendingStudentsPersonGroupUid",!0),this.descriptor.addElement_ivxn3r$("clazzParentsPersonGroupUid",!0),this.descriptor.addElement_ivxn3r$("clazzCode",!0),this.descriptor.addElement_ivxn3r$("school",!0),v9=this}Object.defineProperty(S9.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_cprwrz$_0}}),S9.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.clazzUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.clazzUid),O(e.clazzName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.clazzName),O(e.clazzDesc,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.clazzDesc),O(e.attendanceAverage,-1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeFloatElement_lf6hpt$(this.descriptor,3,e.attendanceAverage),O(e.clazzHolidayUMCalendarUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.clazzHolidayUMCalendarUid),O(e.clazzScheuleUMCalendarUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.clazzScheuleUMCalendarUid),O(e.isClazzActive,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeBooleanElement_qh7jdn$(this.descriptor,6,e.isClazzActive),O(e.clazzLocationUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.clazzLocationUid),O(e.clazzStartTime,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.clazzStartTime),O(e.clazzEndTime,Xt)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeLongElement_j0o2mv$(this.descriptor,9,e.clazzEndTime),O(e.clazzFeatures,l5().CLAZZ_FEATURE_ATTENDANCE)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeLongElement_j0o2mv$(this.descriptor,10,e.clazzFeatures),O(e.clazzSchoolUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeLongElement_j0o2mv$(this.descriptor,11,e.clazzSchoolUid),O(e.clazzEnrolmentPolicy,102)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeIntElement_ptg7oe$(this.descriptor,12,e.clazzEnrolmentPolicy),O(e.clazzTerminologyUid,ee)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeLongElement_j0o2mv$(this.descriptor,13,e.clazzTerminologyUid),O(e.clazzMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeLongElement_j0o2mv$(this.descriptor,14,e.clazzMasterChangeSeqNum),O(e.clazzLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeLongElement_j0o2mv$(this.descriptor,15,e.clazzLocalChangeSeqNum),O(e.clazzLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,16)||n.encodeIntElement_ptg7oe$(this.descriptor,16,e.clazzLastChangedBy),O(e.clazzLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,17)||n.encodeLongElement_j0o2mv$(this.descriptor,17,e.clazzLct),O(e.clazzTimeZone,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,18)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,18,Ht.StringSerializer,e.clazzTimeZone),O(e.clazzStudentsPersonGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,19)||n.encodeLongElement_j0o2mv$(this.descriptor,19,e.clazzStudentsPersonGroupUid),O(e.clazzTeachersPersonGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,20)||n.encodeLongElement_j0o2mv$(this.descriptor,20,e.clazzTeachersPersonGroupUid),O(e.clazzPendingStudentsPersonGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,21)||n.encodeLongElement_j0o2mv$(this.descriptor,21,e.clazzPendingStudentsPersonGroupUid),O(e.clazzParentsPersonGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,22)||n.encodeLongElement_j0o2mv$(this.descriptor,22,e.clazzParentsPersonGroupUid),O(e.clazzCode,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,23)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,23,Ht.StringSerializer,e.clazzCode),O(e.school,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,24)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,24,Oht(),e.school),n.endStructure_24f42q$(this.descriptor)},S9.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L=0,z=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=z.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=z.decodeLongElement_szpzho$(this.descriptor,0),L|=1;break;case 1:i=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),L|=2;break;case 2:o=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),L|=4;break;case 3:r=z.decodeFloatElement_szpzho$(this.descriptor,3),L|=8;break;case 4:s=z.decodeLongElement_szpzho$(this.descriptor,4),L|=16;break;case 5:a=z.decodeLongElement_szpzho$(this.descriptor,5),L|=32;break;case 6:c=z.decodeBooleanElement_szpzho$(this.descriptor,6),L|=64;break;case 7:l=z.decodeLongElement_szpzho$(this.descriptor,7),L|=128;break;case 8:u=z.decodeLongElement_szpzho$(this.descriptor,8),L|=256;break;case 9:h=z.decodeLongElement_szpzho$(this.descriptor,9),L|=512;break;case 10:d=z.decodeLongElement_szpzho$(this.descriptor,10),L|=1024;break;case 11:p=z.decodeLongElement_szpzho$(this.descriptor,11),L|=2048;break;case 12:_=z.decodeIntElement_szpzho$(this.descriptor,12),L|=4096;break;case 13:m=z.decodeLongElement_szpzho$(this.descriptor,13),L|=8192;break;case 14:f=z.decodeLongElement_szpzho$(this.descriptor,14),L|=16384;break;case 15:g=z.decodeLongElement_szpzho$(this.descriptor,15),L|=32768;break;case 16:$=z.decodeIntElement_szpzho$(this.descriptor,16),L|=65536;break;case 17:E=z.decodeLongElement_szpzho$(this.descriptor,17),L|=131072;break;case 18:y=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,18,Ht.StringSerializer,y),L|=262144;break;case 19:b=z.decodeLongElement_szpzho$(this.descriptor,19),L|=524288;break;case 20:S=z.decodeLongElement_szpzho$(this.descriptor,20),L|=1048576;break;case 21:v=z.decodeLongElement_szpzho$(this.descriptor,21),L|=2097152;break;case 22:C=z.decodeLongElement_szpzho$(this.descriptor,22),L|=4194304;break;case 23:N=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,23,Ht.StringSerializer,N),L|=8388608;break;case 24:T=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,24,Oht(),T),L|=16777216;break;case-1:break t;default:throw new Vt(e)}return z.endStructure_24f42q$(this.descriptor),N9(L,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,null)},S9.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.FloatSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.BooleanSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Oht())]},S9.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var v9=null;function C9(){return null===v9&&new S9,v9}function N9(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T){var L=T||Object.create($9.prototype);return(L=p5(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,L)).school=0==(16777216&t)?null:N,L}function T9(){w9(),this.commentsUid=X,this.commentsText=null,this.commentsEntityType=0,this.commentsEntityUid=X,this.commentsPublic=!1,this.commentsStatus=0,this.commentsPersonUid=X,this.commentsToPersonUid=X,this.commentSubmitterUid=X,this.commentsFlagged=!1,this.commentsInActive=!1,this.commentsDateTimeAdded=X,this.commentsDateTimeUpdated=X,this.commentsMCSN=X,this.commentsLCSN=X,this.commentsLCB=0,this.commentsLct=X}function L9(){z9=this,this.TABLE_ID=208,this.COMMENTS_STATUS_APPROVED=0,this.COMMENTS_STATUS_PENDING=1,this.COMMENTS_STATUS_REJECTED=2,this.COMMENTS_STATUS_INAPPROPRIATE_REPORTED=4}$9.$metadata$={kind:c,simpleName:"ClazzWithSchool",interfaces:[s5]},L9.prototype.serializer=function(){return A9()},L9.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var z9=null;function w9(){return null===z9&&new L9,z9}function O9(){this.descriptor_ti3scf$_0=new Wt("com.ustadmobile.lib.db.entities.Comments",this,17),this.descriptor.addElement_ivxn3r$("commentsUid",!0),this.descriptor.addElement_ivxn3r$("commentsText",!0),this.descriptor.addElement_ivxn3r$("commentsEntityType",!0),this.descriptor.addElement_ivxn3r$("commentsEntityUid",!0),this.descriptor.addElement_ivxn3r$("commentsPublic",!0),this.descriptor.addElement_ivxn3r$("commentsStatus",!0),this.descriptor.addElement_ivxn3r$("commentsPersonUid",!0),this.descriptor.addElement_ivxn3r$("commentsToPersonUid",!0),this.descriptor.addElement_ivxn3r$("commentSubmitterUid",!0),this.descriptor.addElement_ivxn3r$("commentsFlagged",!0),this.descriptor.addElement_ivxn3r$("commentsInActive",!0),this.descriptor.addElement_ivxn3r$("commentsDateTimeAdded",!0),this.descriptor.addElement_ivxn3r$("commentsDateTimeUpdated",!0),this.descriptor.addElement_ivxn3r$("commentsMCSN",!0),this.descriptor.addElement_ivxn3r$("commentsLCSN",!0),this.descriptor.addElement_ivxn3r$("commentsLCB",!0),this.descriptor.addElement_ivxn3r$("commentsLct",!0),R9=this}Object.defineProperty(O9.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_ti3scf$_0}}),O9.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.commentsUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.commentsUid),O(e.commentsText,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.commentsText),O(e.commentsEntityType,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeIntElement_ptg7oe$(this.descriptor,2,e.commentsEntityType),O(e.commentsEntityUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.commentsEntityUid),O(e.commentsPublic,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeBooleanElement_qh7jdn$(this.descriptor,4,e.commentsPublic),O(e.commentsStatus,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeIntElement_ptg7oe$(this.descriptor,5,e.commentsStatus),O(e.commentsPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.commentsPersonUid),O(e.commentsToPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.commentsToPersonUid),O(e.commentSubmitterUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.commentSubmitterUid),O(e.commentsFlagged,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeBooleanElement_qh7jdn$(this.descriptor,9,e.commentsFlagged),O(e.commentsInActive,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeBooleanElement_qh7jdn$(this.descriptor,10,e.commentsInActive),O(e.commentsDateTimeAdded,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeLongElement_j0o2mv$(this.descriptor,11,e.commentsDateTimeAdded),O(e.commentsDateTimeUpdated,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeLongElement_j0o2mv$(this.descriptor,12,e.commentsDateTimeUpdated),O(e.commentsMCSN,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeLongElement_j0o2mv$(this.descriptor,13,e.commentsMCSN),O(e.commentsLCSN,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeLongElement_j0o2mv$(this.descriptor,14,e.commentsLCSN),O(e.commentsLCB,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeIntElement_ptg7oe$(this.descriptor,15,e.commentsLCB),O(e.commentsLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,16)||n.encodeLongElement_j0o2mv$(this.descriptor,16,e.commentsLct),n.endStructure_24f42q$(this.descriptor)},O9.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E=0,y=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=y.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=y.decodeLongElement_szpzho$(this.descriptor,0),E|=1;break;case 1:i=y.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),E|=2;break;case 2:o=y.decodeIntElement_szpzho$(this.descriptor,2),E|=4;break;case 3:r=y.decodeLongElement_szpzho$(this.descriptor,3),E|=8;break;case 4:s=y.decodeBooleanElement_szpzho$(this.descriptor,4),E|=16;break;case 5:a=y.decodeIntElement_szpzho$(this.descriptor,5),E|=32;break;case 6:c=y.decodeLongElement_szpzho$(this.descriptor,6),E|=64;break;case 7:l=y.decodeLongElement_szpzho$(this.descriptor,7),E|=128;break;case 8:u=y.decodeLongElement_szpzho$(this.descriptor,8),E|=256;break;case 9:h=y.decodeBooleanElement_szpzho$(this.descriptor,9),E|=512;break;case 10:d=y.decodeBooleanElement_szpzho$(this.descriptor,10),E|=1024;break;case 11:p=y.decodeLongElement_szpzho$(this.descriptor,11),E|=2048;break;case 12:_=y.decodeLongElement_szpzho$(this.descriptor,12),E|=4096;break;case 13:m=y.decodeLongElement_szpzho$(this.descriptor,13),E|=8192;break;case 14:f=y.decodeLongElement_szpzho$(this.descriptor,14),E|=16384;break;case 15:g=y.decodeIntElement_szpzho$(this.descriptor,15),E|=32768;break;case 16:$=y.decodeLongElement_szpzho$(this.descriptor,16),E|=65536;break;case-1:break t;default:throw new Vt(e)}return y.endStructure_24f42q$(this.descriptor),x9(E,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,null)},O9.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.LongSerializer,Ht.BooleanSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.BooleanSerializer,Ht.BooleanSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer]},O9.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var R9=null;function A9(){return null===R9&&new O9,R9}function x9(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$){var E=$||Object.create(T9.prototype);return E.commentsUid=0==(1&t)?X:e,E.commentsText=0==(2&t)?null:n,E.commentsEntityType=0==(4&t)?0:i,E.commentsEntityUid=0==(8&t)?X:o,E.commentsPublic=0!=(16&t)&&r,E.commentsStatus=0==(32&t)?0:s,E.commentsPersonUid=0==(64&t)?X:a,E.commentsToPersonUid=0==(128&t)?X:c,E.commentSubmitterUid=0==(256&t)?X:l,E.commentsFlagged=0!=(512&t)&&u,E.commentsInActive=0!=(1024&t)&&h,E.commentsDateTimeAdded=0==(2048&t)?X:d,E.commentsDateTimeUpdated=0==(4096&t)?X:p,E.commentsMCSN=0==(8192&t)?X:_,E.commentsLCSN=0==(16384&t)?X:m,E.commentsLCB=0==(32768&t)?0:f,E.commentsLct=0==(65536&t)?X:g,E}function I9(){P9(),T9.call(this),this.commentsPerson=null}function U9(){D9=this}T9.$metadata$={kind:c,simpleName:"Comments",interfaces:[]},U9.prototype.serializer=function(){return j9()},U9.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var D9=null;function P9(){return null===D9&&new U9,D9}function M9(){this.descriptor_6hrp7q$_0=new Wt("com.ustadmobile.lib.db.entities.CommentsWithPerson",this,18),this.descriptor.addElement_ivxn3r$("commentsUid",!0),this.descriptor.addElement_ivxn3r$("commentsText",!0),this.descriptor.addElement_ivxn3r$("commentsEntityType",!0),this.descriptor.addElement_ivxn3r$("commentsEntityUid",!0),this.descriptor.addElement_ivxn3r$("commentsPublic",!0),this.descriptor.addElement_ivxn3r$("commentsStatus",!0),this.descriptor.addElement_ivxn3r$("commentsPersonUid",!0),this.descriptor.addElement_ivxn3r$("commentsToPersonUid",!0),this.descriptor.addElement_ivxn3r$("commentSubmitterUid",!0),this.descriptor.addElement_ivxn3r$("commentsFlagged",!0),this.descriptor.addElement_ivxn3r$("commentsInActive",!0),this.descriptor.addElement_ivxn3r$("commentsDateTimeAdded",!0),this.descriptor.addElement_ivxn3r$("commentsDateTimeUpdated",!0),this.descriptor.addElement_ivxn3r$("commentsMCSN",!0),this.descriptor.addElement_ivxn3r$("commentsLCSN",!0),this.descriptor.addElement_ivxn3r$("commentsLCB",!0),this.descriptor.addElement_ivxn3r$("commentsLct",!0),this.descriptor.addElement_ivxn3r$("commentsPerson",!0),k9=this}Object.defineProperty(M9.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_6hrp7q$_0}}),M9.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.commentsUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.commentsUid),O(e.commentsText,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.commentsText),O(e.commentsEntityType,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeIntElement_ptg7oe$(this.descriptor,2,e.commentsEntityType),O(e.commentsEntityUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.commentsEntityUid),O(e.commentsPublic,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeBooleanElement_qh7jdn$(this.descriptor,4,e.commentsPublic),O(e.commentsStatus,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeIntElement_ptg7oe$(this.descriptor,5,e.commentsStatus),O(e.commentsPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.commentsPersonUid),O(e.commentsToPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.commentsToPersonUid),O(e.commentSubmitterUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.commentSubmitterUid),O(e.commentsFlagged,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeBooleanElement_qh7jdn$(this.descriptor,9,e.commentsFlagged),O(e.commentsInActive,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeBooleanElement_qh7jdn$(this.descriptor,10,e.commentsInActive),O(e.commentsDateTimeAdded,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeLongElement_j0o2mv$(this.descriptor,11,e.commentsDateTimeAdded),O(e.commentsDateTimeUpdated,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeLongElement_j0o2mv$(this.descriptor,12,e.commentsDateTimeUpdated),O(e.commentsMCSN,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeLongElement_j0o2mv$(this.descriptor,13,e.commentsMCSN),O(e.commentsLCSN,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeLongElement_j0o2mv$(this.descriptor,14,e.commentsLCSN),O(e.commentsLCB,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeIntElement_ptg7oe$(this.descriptor,15,e.commentsLCB),O(e.commentsLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,16)||n.encodeLongElement_j0o2mv$(this.descriptor,16,e.commentsLct),O(e.commentsPerson,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,17)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,17,Ict(),e.commentsPerson),n.endStructure_24f42q$(this.descriptor)},M9.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y=0,b=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=b.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=b.decodeLongElement_szpzho$(this.descriptor,0),y|=1;break;case 1:i=b.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),y|=2;break;case 2:o=b.decodeIntElement_szpzho$(this.descriptor,2),y|=4;break;case 3:r=b.decodeLongElement_szpzho$(this.descriptor,3),y|=8;break;case 4:s=b.decodeBooleanElement_szpzho$(this.descriptor,4),y|=16;break;case 5:a=b.decodeIntElement_szpzho$(this.descriptor,5),y|=32;break;case 6:c=b.decodeLongElement_szpzho$(this.descriptor,6),y|=64;break;case 7:l=b.decodeLongElement_szpzho$(this.descriptor,7),y|=128;break;case 8:u=b.decodeLongElement_szpzho$(this.descriptor,8),y|=256;break;case 9:h=b.decodeBooleanElement_szpzho$(this.descriptor,9),y|=512;break;case 10:d=b.decodeBooleanElement_szpzho$(this.descriptor,10),y|=1024;break;case 11:p=b.decodeLongElement_szpzho$(this.descriptor,11),y|=2048;break;case 12:_=b.decodeLongElement_szpzho$(this.descriptor,12),y|=4096;break;case 13:m=b.decodeLongElement_szpzho$(this.descriptor,13),y|=8192;break;case 14:f=b.decodeLongElement_szpzho$(this.descriptor,14),y|=16384;break;case 15:g=b.decodeIntElement_szpzho$(this.descriptor,15),y|=32768;break;case 16:$=b.decodeLongElement_szpzho$(this.descriptor,16),y|=65536;break;case 17:E=b.decodeNullableSerializableElement_8viuyw$(this.descriptor,17,Ict(),E),y|=131072;break;case-1:break t;default:throw new Vt(e)}return b.endStructure_24f42q$(this.descriptor),G9(y,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,null)},M9.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.LongSerializer,Ht.BooleanSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.BooleanSerializer,Ht.BooleanSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(Ict())]},M9.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var k9=null;function j9(){return null===k9&&new M9,k9}function G9(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E){var y=E||Object.create(I9.prototype);return(y=x9(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,y)).commentsPerson=0==(131072&t)?null:$,y}function q9(){W9(),this.csUid=1,this.connectivityState=0,this.wifiSsid=null,this.connectedOrConnecting=!1}function F9(){B9=this,this.STATE_DISCONNECTED=0,this.STATE_CONNECTING_LOCAL=1,this.STATE_CONNECTED_LOCAL=2,this.STATE_METERED=3,this.STATE_UNMETERED=4}I9.$metadata$={kind:c,simpleName:"CommentsWithPerson",interfaces:[T9]},q9.prototype.toString=function(){var t="";switch(this.connectivityState){case 3:t+="METERED";break;case 4:t+="UNMETERED";break;case 0:t+="DISCONNECTED";break;case 2:t+="CONNECTED_LOCAL";break;case 1:t+="CONNECTING_LOCAL"}return null!=this.wifiSsid&&(t+=' SSID = "'+Q(this.wifiSsid)+'"'),t+=" connectedOrConnecting = "+this.connectedOrConnecting},F9.prototype.serializer=function(){return K9()},F9.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var B9=null;function W9(){return null===B9&&new F9,B9}function H9(){this.descriptor_hmi0d0$_0=new Wt("com.ustadmobile.lib.db.entities.ConnectivityStatus",this,4),this.descriptor.addElement_ivxn3r$("csUid",!0),this.descriptor.addElement_ivxn3r$("connectivityState",!0),this.descriptor.addElement_ivxn3r$("wifiSsid",!0),this.descriptor.addElement_ivxn3r$("connectedOrConnecting",!0),V9=this}Object.defineProperty(H9.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_hmi0d0$_0}}),H9.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.csUid,1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeIntElement_ptg7oe$(this.descriptor,0,e.csUid),O(e.connectivityState,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeIntElement_ptg7oe$(this.descriptor,1,e.connectivityState),O(e.wifiSsid,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.wifiSsid),O(e.connectedOrConnecting,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeBooleanElement_qh7jdn$(this.descriptor,3,e.connectedOrConnecting),n.endStructure_24f42q$(this.descriptor)},H9.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s=0,a=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=a.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=a.decodeIntElement_szpzho$(this.descriptor,0),s|=1;break;case 1:i=a.decodeIntElement_szpzho$(this.descriptor,1),s|=2;break;case 2:o=a.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),s|=4;break;case 3:r=a.decodeBooleanElement_szpzho$(this.descriptor,3),s|=8;break;case-1:break t;default:throw new Vt(e)}return a.endStructure_24f42q$(this.descriptor),X9(s,n,i,o,r,null)},H9.prototype.childSerializers=function(){return[Ht.IntSerializer,Ht.IntSerializer,new Bt(Ht.StringSerializer),Ht.BooleanSerializer]},H9.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var V9=null;function K9(){return null===V9&&new H9,V9}function X9(t,e,n,i,o,r){var s=r||Object.create(q9.prototype);return s.csUid=0==(1&t)?1:e,s.connectivityState=0==(2&t)?0:n,s.wifiSsid=0==(4&t)?null:i,s.connectedOrConnecting=0!=(8&t)&&o,s}function J9(){Z9(),this.containerUid=X,this.cntLocalCsn=X,this.cntMasterCsn=X,this.cntLastModBy=0,this.cntLct=X,this.fileSize=X,this.containerContentEntryUid=X,this.cntLastModified=X,this.mimeType=null,this.remarks=null,this.mobileOptimized=!1,this.cntNumEntries=0}function Y9(){Q9=this,this.TABLE_ID=51}q9.$metadata$={kind:c,simpleName:"ConnectivityStatus",interfaces:[]},J9.prototype.equals=function(t){return!!(this===t||e.isType(t,J9)&&O(this.containerUid,t.containerUid)&&O(this.cntLocalCsn,t.cntLocalCsn)&&O(this.cntMasterCsn,t.cntMasterCsn)&&this.cntLastModBy===t.cntLastModBy&&O(this.fileSize,t.fileSize)&&O(this.containerContentEntryUid,t.containerContentEntryUid)&&O(this.cntLastModified,t.cntLastModified)&&O(this.mimeType,t.mimeType)&&O(this.remarks,t.remarks)&&this.mobileOptimized===t.mobileOptimized&&this.cntNumEntries===t.cntNumEntries)},J9.prototype.hashCode=function(){var t,e,n,i,o=Yt(this.containerUid);return o=(31*(o=(31*(o=(31*(o=(31*(o=(31*(o=(31*(o=(31*(o=(31*(o=(31*(o=(31*o|0)+Yt(this.cntLocalCsn)|0)|0)+Yt(this.cntMasterCsn)|0)|0)+this.cntLastModBy|0)|0)+Yt(this.fileSize)|0)|0)+Yt(this.containerContentEntryUid)|0)|0)+Yt(this.cntLastModified)|0)|0)+(null!=(e=null!=(t=this.mimeType)?Yt(t):null)?e:0)|0)|0)+(null!=(i=null!=(n=this.remarks)?Yt(n):null)?i:0)|0)|0)+Yt(this.mobileOptimized)|0)|0)+this.cntNumEntries|0},Y9.prototype.serializer=function(){return n7()},Y9.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Q9=null;function Z9(){return null===Q9&&new Y9,Q9}function t7(){this.descriptor_iu1uyo$_0=new Wt("com.ustadmobile.lib.db.entities.Container",this,12),this.descriptor.addElement_ivxn3r$("containerUid",!0),this.descriptor.addElement_ivxn3r$("cntLocalCsn",!0),this.descriptor.addElement_ivxn3r$("cntMasterCsn",!0),this.descriptor.addElement_ivxn3r$("cntLastModBy",!0),this.descriptor.addElement_ivxn3r$("cntLct",!0),this.descriptor.addElement_ivxn3r$("fileSize",!0),this.descriptor.addElement_ivxn3r$("containerContentEntryUid",!0),this.descriptor.addElement_ivxn3r$("cntLastModified",!0),this.descriptor.addElement_ivxn3r$("mimeType",!0),this.descriptor.addElement_ivxn3r$("remarks",!0),this.descriptor.addElement_ivxn3r$("mobileOptimized",!0),this.descriptor.addElement_ivxn3r$("cntNumEntries",!0),e7=this}Object.defineProperty(t7.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_iu1uyo$_0}}),t7.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.containerUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.containerUid),O(e.cntLocalCsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.cntLocalCsn),O(e.cntMasterCsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.cntMasterCsn),O(e.cntLastModBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeIntElement_ptg7oe$(this.descriptor,3,e.cntLastModBy),O(e.cntLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.cntLct),O(e.fileSize,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.fileSize),O(e.containerContentEntryUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.containerContentEntryUid),O(e.cntLastModified,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.cntLastModified),O(e.mimeType,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,8,Ht.StringSerializer,e.mimeType),O(e.remarks,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,9,Ht.StringSerializer,e.remarks),O(e.mobileOptimized,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeBooleanElement_qh7jdn$(this.descriptor,10,e.mobileOptimized),O(e.cntNumEntries,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeIntElement_ptg7oe$(this.descriptor,11,e.cntNumEntries),n.endStructure_24f42q$(this.descriptor)},t7.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_=0,m=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=m.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=m.decodeLongElement_szpzho$(this.descriptor,0),_|=1;break;case 1:i=m.decodeLongElement_szpzho$(this.descriptor,1),_|=2;break;case 2:o=m.decodeLongElement_szpzho$(this.descriptor,2),_|=4;break;case 3:r=m.decodeIntElement_szpzho$(this.descriptor,3),_|=8;break;case 4:s=m.decodeLongElement_szpzho$(this.descriptor,4),_|=16;break;case 5:a=m.decodeLongElement_szpzho$(this.descriptor,5),_|=32;break;case 6:c=m.decodeLongElement_szpzho$(this.descriptor,6),_|=64;break;case 7:l=m.decodeLongElement_szpzho$(this.descriptor,7),_|=128;break;case 8:u=m.decodeNullableSerializableElement_8viuyw$(this.descriptor,8,Ht.StringSerializer,u),_|=256;break;case 9:h=m.decodeNullableSerializableElement_8viuyw$(this.descriptor,9,Ht.StringSerializer,h),_|=512;break;case 10:d=m.decodeBooleanElement_szpzho$(this.descriptor,10),_|=1024;break;case 11:p=m.decodeIntElement_szpzho$(this.descriptor,11),_|=2048;break;case-1:break t;default:throw new Vt(e)}return m.endStructure_24f42q$(this.descriptor),i7(_,n,i,o,r,s,a,c,l,u,h,d,p,null)},t7.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.BooleanSerializer,Ht.IntSerializer]},t7.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var e7=null;function n7(){return null===e7&&new t7,e7}function i7(t,e,n,i,o,r,s,a,c,l,u,h,d,p){var _=p||Object.create(J9.prototype);return _.containerUid=0==(1&t)?X:e,_.cntLocalCsn=0==(2&t)?X:n,_.cntMasterCsn=0==(4&t)?X:i,_.cntLastModBy=0==(8&t)?0:o,_.cntLct=0==(16&t)?X:r,_.fileSize=0==(32&t)?X:s,_.containerContentEntryUid=0==(64&t)?X:a,_.cntLastModified=0==(128&t)?X:c,_.mimeType=0==(256&t)?null:l,_.remarks=0==(512&t)?null:u,_.mobileOptimized=0!=(1024&t)&&h,_.cntNumEntries=0==(2048&t)?0:d,_}function o7(){a7(),this.ceUid=X,this.ceContainerUid=X,this.cePath=null,this.ceCefUid=X}function r7(){s7=this}J9.$metadata$={kind:c,simpleName:"Container",interfaces:[]},r7.prototype.serializer=function(){return u7()},r7.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var s7=null;function a7(){return null===s7&&new r7,s7}function c7(){this.descriptor_tk1qkk$_0=new Wt("com.ustadmobile.lib.db.entities.ContainerEntry",this,4),this.descriptor.addElement_ivxn3r$("ceUid",!0),this.descriptor.addElement_ivxn3r$("ceContainerUid",!0),this.descriptor.addElement_ivxn3r$("cePath",!0),this.descriptor.addElement_ivxn3r$("ceCefUid",!0),l7=this}Object.defineProperty(c7.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_tk1qkk$_0}}),c7.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.ceUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.ceUid),O(e.ceContainerUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.ceContainerUid),O(e.cePath,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.cePath),O(e.ceCefUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.ceCefUid),n.endStructure_24f42q$(this.descriptor)},c7.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s=0,a=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=a.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=a.decodeLongElement_szpzho$(this.descriptor,0),s|=1;break;case 1:i=a.decodeLongElement_szpzho$(this.descriptor,1),s|=2;break;case 2:o=a.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),s|=4;break;case 3:r=a.decodeLongElement_szpzho$(this.descriptor,3),s|=8;break;case-1:break t;default:throw new Vt(e)}return a.endStructure_24f42q$(this.descriptor),h7(s,n,i,o,r,null)},c7.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer]},c7.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var l7=null;function u7(){return null===l7&&new c7,l7}function h7(t,e,n,i,o,r){var s=r||Object.create(o7.prototype);return s.ceUid=0==(1&t)?X:e,s.ceContainerUid=0==(2&t)?X:n,s.cePath=0==(4&t)?null:i,s.ceCefUid=0==(8&t)?X:o,s}function d7(){m7(),this.cefUid=X,this.cefMd5=null,this.cefPath=null,this.ceTotalSize=X,this.ceCompressedSize=X,this.compression=0,this.lastModified=X}function p7(){_7=this,this.COMPRESSION_NONE=0,this.COMPRESSION_GZIP=1}o7.$metadata$={kind:c,simpleName:"ContainerEntry",interfaces:[]},p7.prototype.serializer=function(){return $7()},p7.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var _7=null;function m7(){return null===_7&&new p7,_7}function f7(){this.descriptor_3gimag$_0=new Wt("com.ustadmobile.lib.db.entities.ContainerEntryFile",this,7),this.descriptor.addElement_ivxn3r$("cefUid",!0),this.descriptor.addElement_ivxn3r$("cefMd5",!0),this.descriptor.addElement_ivxn3r$("cefPath",!0),this.descriptor.addElement_ivxn3r$("ceTotalSize",!0),this.descriptor.addElement_ivxn3r$("ceCompressedSize",!0),this.descriptor.addElement_ivxn3r$("compression",!0),this.descriptor.addElement_ivxn3r$("lastModified",!0),g7=this}Object.defineProperty(f7.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_3gimag$_0}}),f7.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.cefUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.cefUid),O(e.cefMd5,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.cefMd5),O(e.cefPath,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.cefPath),O(e.ceTotalSize,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.ceTotalSize),O(e.ceCompressedSize,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.ceCompressedSize),O(e.compression,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeIntElement_ptg7oe$(this.descriptor,5,e.compression),O(e.lastModified,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.lastModified),n.endStructure_24f42q$(this.descriptor)},f7.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l=0,u=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=u.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=u.decodeLongElement_szpzho$(this.descriptor,0),l|=1;break;case 1:i=u.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),l|=2;break;case 2:o=u.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),l|=4;break;case 3:r=u.decodeLongElement_szpzho$(this.descriptor,3),l|=8;break;case 4:s=u.decodeLongElement_szpzho$(this.descriptor,4),l|=16;break;case 5:a=u.decodeIntElement_szpzho$(this.descriptor,5),l|=32;break;case 6:c=u.decodeLongElement_szpzho$(this.descriptor,6),l|=64;break;case-1:break t;default:throw new Vt(e)}return u.endStructure_24f42q$(this.descriptor),E7(l,n,i,o,r,s,a,c,null)},f7.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer]},f7.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var g7=null;function $7(){return null===g7&&new f7,g7}function E7(t,e,n,i,o,r,s,a,c){var l=c||Object.create(d7.prototype);return l.cefUid=0==(1&t)?X:e,l.cefMd5=0==(2&t)?null:n,l.cefPath=0==(4&t)?null:i,l.ceTotalSize=0==(8&t)?X:o,l.ceCompressedSize=0==(16&t)?X:r,l.compression=0==(32&t)?0:s,l.lastModified=0==(64&t)?X:a,l}function y7(){v7(),this.cefUid=X,this.cefPath=null}function b7(){S7=this}d7.$metadata$={kind:c,simpleName:"ContainerEntryFile",interfaces:[]},b7.prototype.serializer=function(){return T7()},b7.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var S7=null;function v7(){return null===S7&&new b7,S7}function C7(){this.descriptor_rx3d2c$_0=new Wt("com.ustadmobile.lib.db.entities.ContainerEntryFileUidAndPath",this,2),this.descriptor.addElement_ivxn3r$("cefUid",!0),this.descriptor.addElement_ivxn3r$("cefPath",!0),N7=this}Object.defineProperty(C7.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_rx3d2c$_0}}),C7.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.cefUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.cefUid),O(e.cefPath,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.cefPath),n.endStructure_24f42q$(this.descriptor)},C7.prototype.deserialize_bq71mq$=function(t){var e,n,i,o=0,r=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=r.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=r.decodeLongElement_szpzho$(this.descriptor,0),o|=1;break;case 1:i=r.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),o|=2;break;case-1:break t;default:throw new Vt(e)}return r.endStructure_24f42q$(this.descriptor),L7(o,n,i,null)},C7.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer)]},C7.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var N7=null;function T7(){return null===N7&&new C7,N7}function L7(t,e,n,i){var o=i||Object.create(y7.prototype);return o.cefUid=0==(1&t)?X:e,o.cefPath=0==(2&t)?null:n,o}function z7(){R7(),o7.call(this),this.containerEntryFile=null}function w7(){O7=this}y7.$metadata$={kind:c,simpleName:"ContainerEntryFileUidAndPath",interfaces:[]},w7.prototype.serializer=function(){return I7()},w7.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var O7=null;function R7(){return null===O7&&new w7,O7}function A7(){this.descriptor_hyj6y9$_0=new Wt("com.ustadmobile.lib.db.entities.ContainerEntryWithContainerEntryFile",this,5),this.descriptor.addElement_ivxn3r$("ceUid",!0),this.descriptor.addElement_ivxn3r$("ceContainerUid",!0),this.descriptor.addElement_ivxn3r$("cePath",!0),this.descriptor.addElement_ivxn3r$("ceCefUid",!0),this.descriptor.addElement_ivxn3r$("containerEntryFile",!0),x7=this}Object.defineProperty(A7.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_hyj6y9$_0}}),A7.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.ceUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.ceUid),O(e.ceContainerUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.ceContainerUid),O(e.cePath,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.cePath),O(e.ceCefUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.ceCefUid),O(e.containerEntryFile,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,4,$7(),e.containerEntryFile),n.endStructure_24f42q$(this.descriptor)},A7.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a=0,c=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=c.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=c.decodeLongElement_szpzho$(this.descriptor,0),a|=1;break;case 1:i=c.decodeLongElement_szpzho$(this.descriptor,1),a|=2;break;case 2:o=c.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),a|=4;break;case 3:r=c.decodeLongElement_szpzho$(this.descriptor,3),a|=8;break;case 4:s=c.decodeNullableSerializableElement_8viuyw$(this.descriptor,4,$7(),s),a|=16;break;case-1:break t;default:throw new Vt(e)}return c.endStructure_24f42q$(this.descriptor),U7(a,n,i,o,r,s,null)},A7.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer,new Bt($7())]},A7.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var x7=null;function I7(){return null===x7&&new A7,x7}function U7(t,e,n,i,o,r,s){var a=s||Object.create(z7.prototype);return(a=h7(t,e,n,i,o,a)).containerEntryFile=0==(16&t)?null:r,a}function D7(t){k7(),void 0===t&&(t=null),o7.call(this),this.cefMd5=t}function P7(){M7=this}z7.$metadata$={kind:c,simpleName:"ContainerEntryWithContainerEntryFile",interfaces:[o7]},P7.prototype.serializer=function(){return q7()},P7.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var M7=null;function k7(){return null===M7&&new P7,M7}function j7(){this.descriptor_ss3vbu$_0=new Wt("com.ustadmobile.lib.db.entities.ContainerEntryWithMd5",this,5),this.descriptor.addElement_ivxn3r$("ceUid",!0),this.descriptor.addElement_ivxn3r$("ceContainerUid",!0),this.descriptor.addElement_ivxn3r$("cePath",!0),this.descriptor.addElement_ivxn3r$("ceCefUid",!0),this.descriptor.addElement_ivxn3r$("cefMd5",!0),G7=this}Object.defineProperty(j7.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_ss3vbu$_0}}),j7.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.ceUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.ceUid),O(e.ceContainerUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.ceContainerUid),O(e.cePath,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.cePath),O(e.ceCefUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.ceCefUid),O(e.cefMd5,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,4,Ht.StringSerializer,e.cefMd5),n.endStructure_24f42q$(this.descriptor)},j7.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a=0,c=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=c.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=c.decodeLongElement_szpzho$(this.descriptor,0),a|=1;break;case 1:i=c.decodeLongElement_szpzho$(this.descriptor,1),a|=2;break;case 2:o=c.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),a|=4;break;case 3:r=c.decodeLongElement_szpzho$(this.descriptor,3),a|=8;break;case 4:s=c.decodeNullableSerializableElement_8viuyw$(this.descriptor,4,Ht.StringSerializer,s),a|=16;break;case-1:break t;default:throw new Vt(e)}return c.endStructure_24f42q$(this.descriptor),F7(a,n,i,o,r,s,null)},j7.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer,new Bt(Ht.StringSerializer)]},j7.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var G7=null;function q7(){return null===G7&&new j7,G7}function F7(t,e,n,i,o,r,s){var a=s||Object.create(D7.prototype);return(a=h7(t,e,n,i,o,a)).cefMd5=0==(16&t)?null:r,a}function B7(){V7(),this.cijUid=X,this.cijContainerUid=X,this.cijUri=null,this.cijImportMode=0,this.cijContainerBaseDir=null,this.cijContentEntryUid=X,this.cijMimeType=null,this.cijSessionId=null,this.cijJobStatus=0,this.cijBytesSoFar=X,this.cijImportCompleted=!1,this.cijContentLength=X,this.cijContainerEntryFileUids=null,this.cijConversionParams=null}function W7(){H7=this,this.SERVER_IMPORT_MODE=1001,this.CLIENT_IMPORT_MODE=1002}D7.$metadata$={kind:c,simpleName:"ContainerEntryWithMd5",interfaces:[o7]},W7.prototype.serializer=function(){return J7()},W7.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var H7=null;function V7(){return null===H7&&new W7,H7}function K7(){this.descriptor_cm7tni$_0=new Wt("com.ustadmobile.lib.db.entities.ContainerImportJob",this,14),this.descriptor.addElement_ivxn3r$("cijUid",!0),this.descriptor.addElement_ivxn3r$("cijContainerUid",!0),this.descriptor.addElement_ivxn3r$("cijUri",!0),this.descriptor.addElement_ivxn3r$("cijImportMode",!0),this.descriptor.addElement_ivxn3r$("cijContainerBaseDir",!0),this.descriptor.addElement_ivxn3r$("cijContentEntryUid",!0),this.descriptor.addElement_ivxn3r$("cijMimeType",!0),this.descriptor.addElement_ivxn3r$("cijSessionId",!0),this.descriptor.addElement_ivxn3r$("cijJobStatus",!0),this.descriptor.addElement_ivxn3r$("cijBytesSoFar",!0),this.descriptor.addElement_ivxn3r$("cijImportCompleted",!0),this.descriptor.addElement_ivxn3r$("cijContentLength",!0),this.descriptor.addElement_ivxn3r$("cijContainerEntryFileUids",!0),this.descriptor.addElement_ivxn3r$("cijConversionParams",!0),X7=this}Object.defineProperty(K7.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_cm7tni$_0}}),K7.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.cijUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.cijUid),O(e.cijContainerUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.cijContainerUid),O(e.cijUri,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.cijUri),O(e.cijImportMode,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeIntElement_ptg7oe$(this.descriptor,3,e.cijImportMode),O(e.cijContainerBaseDir,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,4,Ht.StringSerializer,e.cijContainerBaseDir),O(e.cijContentEntryUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.cijContentEntryUid),O(e.cijMimeType,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,6,Ht.StringSerializer,e.cijMimeType),O(e.cijSessionId,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,7,Ht.StringSerializer,e.cijSessionId),O(e.cijJobStatus,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeIntElement_ptg7oe$(this.descriptor,8,e.cijJobStatus),O(e.cijBytesSoFar,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeLongElement_j0o2mv$(this.descriptor,9,e.cijBytesSoFar),O(e.cijImportCompleted,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeBooleanElement_qh7jdn$(this.descriptor,10,e.cijImportCompleted),O(e.cijContentLength,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeLongElement_j0o2mv$(this.descriptor,11,e.cijContentLength),O(e.cijContainerEntryFileUids,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,12,Ht.StringSerializer,e.cijContainerEntryFileUids),O(e.cijConversionParams,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,13,Ht.StringSerializer,e.cijConversionParams),n.endStructure_24f42q$(this.descriptor)},K7.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f=0,g=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=g.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=g.decodeLongElement_szpzho$(this.descriptor,0),f|=1;break;case 1:i=g.decodeLongElement_szpzho$(this.descriptor,1),f|=2;break;case 2:o=g.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),f|=4;break;case 3:r=g.decodeIntElement_szpzho$(this.descriptor,3),f|=8;break;case 4:s=g.decodeNullableSerializableElement_8viuyw$(this.descriptor,4,Ht.StringSerializer,s),f|=16;break;case 5:a=g.decodeLongElement_szpzho$(this.descriptor,5),f|=32;break;case 6:c=g.decodeNullableSerializableElement_8viuyw$(this.descriptor,6,Ht.StringSerializer,c),f|=64;break;case 7:l=g.decodeNullableSerializableElement_8viuyw$(this.descriptor,7,Ht.StringSerializer,l),f|=128;break;case 8:u=g.decodeIntElement_szpzho$(this.descriptor,8),f|=256;break;case 9:h=g.decodeLongElement_szpzho$(this.descriptor,9),f|=512;break;case 10:d=g.decodeBooleanElement_szpzho$(this.descriptor,10),f|=1024;break;case 11:p=g.decodeLongElement_szpzho$(this.descriptor,11),f|=2048;break;case 12:_=g.decodeNullableSerializableElement_8viuyw$(this.descriptor,12,Ht.StringSerializer,_),f|=4096;break;case 13:m=g.decodeNullableSerializableElement_8viuyw$(this.descriptor,13,Ht.StringSerializer,m),f|=8192;break;case-1:break t;default:throw new Vt(e)}return g.endStructure_24f42q$(this.descriptor),Y7(f,n,i,o,r,s,a,c,l,u,h,d,p,_,m,null)},K7.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.IntSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.LongSerializer,Ht.BooleanSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer)]},K7.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var X7=null;function J7(){return null===X7&&new K7,X7}function Y7(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m){var f=m||Object.create(B7.prototype);return f.cijUid=0==(1&t)?X:e,f.cijContainerUid=0==(2&t)?X:n,f.cijUri=0==(4&t)?null:i,f.cijImportMode=0==(8&t)?0:o,f.cijContainerBaseDir=0==(16&t)?null:r,f.cijContentEntryUid=0==(32&t)?X:s,f.cijMimeType=0==(64&t)?null:a,f.cijSessionId=0==(128&t)?null:c,f.cijJobStatus=0==(256&t)?0:l,f.cijBytesSoFar=0==(512&t)?X:u,f.cijImportCompleted=0!=(1024&t)&&h,f.cijContentLength=0==(2048&t)?X:d,f.cijContainerEntryFileUids=0==(4096&t)?null:p,f.cijConversionParams=0==(8192&t)?null:_,f}function Q7(){ett(),this.containerUid=X,this.mimeType=null}function Z7(){ttt=this}B7.$metadata$={kind:c,simpleName:"ContainerImportJob",interfaces:[]},Z7.prototype.serializer=function(){return ott()},Z7.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var ttt=null;function ett(){return null===ttt&&new Z7,ttt}function ntt(){this.descriptor_nvtqlx$_0=new Wt("com.ustadmobile.lib.db.entities.ContainerUidAndMimeType",this,2),this.descriptor.addElement_ivxn3r$("containerUid",!0),this.descriptor.addElement_ivxn3r$("mimeType",!0),itt=this}Object.defineProperty(ntt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_nvtqlx$_0}}),ntt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.containerUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.containerUid),O(e.mimeType,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.mimeType),n.endStructure_24f42q$(this.descriptor)},ntt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o=0,r=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=r.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=r.decodeLongElement_szpzho$(this.descriptor,0),o|=1;break;case 1:i=r.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),o|=2;break;case-1:break t;default:throw new Vt(e)}return r.endStructure_24f42q$(this.descriptor),rtt(o,n,i,null)},ntt.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer)]},ntt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var itt=null;function ott(){return null===itt&&new ntt,itt}function rtt(t,e,n,i){var o=i||Object.create(Q7.prototype);return o.containerUid=0==(1&t)?X:e,o.mimeType=0==(2&t)?null:n,o}function stt(){ltt(),J9.call(this),this.entryId=null,this.sourceUrl=null}function att(){ctt=this}Q7.$metadata$={kind:c,simpleName:"ContainerUidAndMimeType",interfaces:[]},att.prototype.serializer=function(){return dtt()},att.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var ctt=null;function ltt(){return null===ctt&&new att,ctt}function utt(){this.descriptor_ft7r3$_0=new Wt("com.ustadmobile.lib.db.entities.ContainerWithContentEntry",this,14),this.descriptor.addElement_ivxn3r$("containerUid",!0),this.descriptor.addElement_ivxn3r$("cntLocalCsn",!0),this.descriptor.addElement_ivxn3r$("cntMasterCsn",!0),this.descriptor.addElement_ivxn3r$("cntLastModBy",!0),this.descriptor.addElement_ivxn3r$("cntLct",!0),this.descriptor.addElement_ivxn3r$("fileSize",!0),this.descriptor.addElement_ivxn3r$("containerContentEntryUid",!0),this.descriptor.addElement_ivxn3r$("cntLastModified",!0),this.descriptor.addElement_ivxn3r$("mimeType",!0),this.descriptor.addElement_ivxn3r$("remarks",!0),this.descriptor.addElement_ivxn3r$("mobileOptimized",!0),this.descriptor.addElement_ivxn3r$("cntNumEntries",!0),this.descriptor.addElement_ivxn3r$("entryId",!0),this.descriptor.addElement_ivxn3r$("sourceUrl",!0),htt=this}Object.defineProperty(utt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_ft7r3$_0}}),utt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.containerUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.containerUid),O(e.cntLocalCsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.cntLocalCsn),O(e.cntMasterCsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.cntMasterCsn),O(e.cntLastModBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeIntElement_ptg7oe$(this.descriptor,3,e.cntLastModBy),O(e.cntLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.cntLct),O(e.fileSize,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.fileSize),O(e.containerContentEntryUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.containerContentEntryUid),O(e.cntLastModified,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.cntLastModified),O(e.mimeType,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,8,Ht.StringSerializer,e.mimeType),O(e.remarks,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,9,Ht.StringSerializer,e.remarks),O(e.mobileOptimized,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeBooleanElement_qh7jdn$(this.descriptor,10,e.mobileOptimized),O(e.cntNumEntries,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeIntElement_ptg7oe$(this.descriptor,11,e.cntNumEntries),O(e.entryId,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,12,Ht.StringSerializer,e.entryId),O(e.sourceUrl,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,13,Ht.StringSerializer,e.sourceUrl),n.endStructure_24f42q$(this.descriptor)},utt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f=0,g=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=g.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=g.decodeLongElement_szpzho$(this.descriptor,0),f|=1;break;case 1:i=g.decodeLongElement_szpzho$(this.descriptor,1),f|=2;break;case 2:o=g.decodeLongElement_szpzho$(this.descriptor,2),f|=4;break;case 3:r=g.decodeIntElement_szpzho$(this.descriptor,3),f|=8;break;case 4:s=g.decodeLongElement_szpzho$(this.descriptor,4),f|=16;break;case 5:a=g.decodeLongElement_szpzho$(this.descriptor,5),f|=32;break;case 6:c=g.decodeLongElement_szpzho$(this.descriptor,6),f|=64;break;case 7:l=g.decodeLongElement_szpzho$(this.descriptor,7),f|=128;break;case 8:u=g.decodeNullableSerializableElement_8viuyw$(this.descriptor,8,Ht.StringSerializer,u),f|=256;break;case 9:h=g.decodeNullableSerializableElement_8viuyw$(this.descriptor,9,Ht.StringSerializer,h),f|=512;break;case 10:d=g.decodeBooleanElement_szpzho$(this.descriptor,10),f|=1024;break;case 11:p=g.decodeIntElement_szpzho$(this.descriptor,11),f|=2048;break;case 12:_=g.decodeNullableSerializableElement_8viuyw$(this.descriptor,12,Ht.StringSerializer,_),f|=4096;break;case 13:m=g.decodeNullableSerializableElement_8viuyw$(this.descriptor,13,Ht.StringSerializer,m),f|=8192;break;case-1:break t;default:throw new Vt(e)}return g.endStructure_24f42q$(this.descriptor),ptt(f,n,i,o,r,s,a,c,l,u,h,d,p,_,m,null)},utt.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.BooleanSerializer,Ht.IntSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer)]},utt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var htt=null;function dtt(){return null===htt&&new utt,htt}function ptt(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m){var f=m||Object.create(stt.prototype);return(f=i7(t,e,n,i,o,r,s,a,c,l,u,h,d,f)).entryId=0==(4096&t)?null:p,f.sourceUrl=0==(8192&t)?null:_,f}function _tt(){gtt(),this.contentCategoryUid=X,this.ctnCatContentCategorySchemaUid=X,this.name=null,this.contentCategoryLocalChangeSeqNum=X,this.contentCategoryMasterChangeSeqNum=X,this.contentCategoryLastChangedBy=0,this.contentCategoryLct=X}function mtt(){ftt=this,this.TABLE_ID=1}stt.$metadata$={kind:c,simpleName:"ContainerWithContentEntry",interfaces:[J9]},_tt.prototype.equals=function(t){var n;if(this===t)return!0;var i=null==(n=t)||e.isType(n,_tt)?n:Jt();return!!O(this.contentCategoryUid,oe(i).contentCategoryUid)&&!!O(this.ctnCatContentCategorySchemaUid,i.ctnCatContentCategorySchemaUid)&&(null!=this.name?O(this.name,i.name):null==i.name)},_tt.prototype.hashCode=function(){var t=this.contentCategoryUid.xor(this.contentCategoryUid.shiftRightUnsigned(32)).toInt();return t=(31*(t=(31*t|0)+this.ctnCatContentCategorySchemaUid.xor(this.ctnCatContentCategorySchemaUid.shiftRightUnsigned(32)).toInt()|0)|0)+(null!=this.name?Yt(oe(this.name)):0)|0},mtt.prototype.serializer=function(){return ytt()},mtt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var ftt=null;function gtt(){return null===ftt&&new mtt,ftt}function $tt(){this.descriptor_il4l92$_0=new Wt("com.ustadmobile.lib.db.entities.ContentCategory",this,7),this.descriptor.addElement_ivxn3r$("contentCategoryUid",!0),this.descriptor.addElement_ivxn3r$("ctnCatContentCategorySchemaUid",!0),this.descriptor.addElement_ivxn3r$("name",!0),this.descriptor.addElement_ivxn3r$("contentCategoryLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("contentCategoryMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("contentCategoryLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("contentCategoryLct",!0),Ett=this}Object.defineProperty($tt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_il4l92$_0}}),$tt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.contentCategoryUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.contentCategoryUid),O(e.ctnCatContentCategorySchemaUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.ctnCatContentCategorySchemaUid),O(e.name,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.name),O(e.contentCategoryLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.contentCategoryLocalChangeSeqNum),O(e.contentCategoryMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.contentCategoryMasterChangeSeqNum),O(e.contentCategoryLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeIntElement_ptg7oe$(this.descriptor,5,e.contentCategoryLastChangedBy),O(e.contentCategoryLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.contentCategoryLct),n.endStructure_24f42q$(this.descriptor)},$tt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l=0,u=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=u.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=u.decodeLongElement_szpzho$(this.descriptor,0),l|=1;break;case 1:i=u.decodeLongElement_szpzho$(this.descriptor,1),l|=2;break;case 2:o=u.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),l|=4;break;case 3:r=u.decodeLongElement_szpzho$(this.descriptor,3),l|=8;break;case 4:s=u.decodeLongElement_szpzho$(this.descriptor,4),l|=16;break;case 5:a=u.decodeIntElement_szpzho$(this.descriptor,5),l|=32;break;case 6:c=u.decodeLongElement_szpzho$(this.descriptor,6),l|=64;break;case-1:break t;default:throw new Vt(e)}return u.endStructure_24f42q$(this.descriptor),btt(l,n,i,o,r,s,a,c,null)},$tt.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer]},$tt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Ett=null;function ytt(){return null===Ett&&new $tt,Ett}function btt(t,e,n,i,o,r,s,a,c){var l=c||Object.create(_tt.prototype);return l.contentCategoryUid=0==(1&t)?X:e,l.ctnCatContentCategorySchemaUid=0==(2&t)?X:n,l.name=0==(4&t)?null:i,l.contentCategoryLocalChangeSeqNum=0==(8&t)?X:o,l.contentCategoryMasterChangeSeqNum=0==(16&t)?X:r,l.contentCategoryLastChangedBy=0==(32&t)?0:s,l.contentCategoryLct=0==(64&t)?X:a,l}function Stt(){Ntt(),this.contentCategorySchemaUid=X,this.schemaName=null,this.schemaUrl=null,this.contentCategorySchemaLocalChangeSeqNum=X,this.contentCategorySchemaMasterChangeSeqNum=X,this.contentCategorySchemaLastChangedBy=0,this.contentCategorySchemaLct=X}function vtt(){Ctt=this,this.TABLE_ID=2}_tt.$metadata$={kind:c,simpleName:"ContentCategory",interfaces:[]},Stt.prototype.equals=function(t){var n;if(this===t)return!0;var i=null==(n=t)||e.isType(n,Stt)?n:Jt();return!!O(this.contentCategorySchemaUid,oe(i).contentCategorySchemaUid)&&!!(null!=this.schemaName?O(this.schemaName,i.schemaName):null==i.schemaName)&&(null!=this.schemaUrl?O(this.schemaUrl,i.schemaUrl):null==i.schemaUrl)},Stt.prototype.hashCode=function(){var t=this.contentCategorySchemaUid.xor(this.contentCategorySchemaUid.shiftRightUnsigned(32)).toInt();return t=(31*(t=(31*t|0)+(null!=this.schemaName?Yt(oe(this.schemaName)):0)|0)|0)+(null!=this.schemaUrl?Yt(oe(this.schemaUrl)):0)|0},vtt.prototype.serializer=function(){return ztt()},vtt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Ctt=null;function Ntt(){return null===Ctt&&new vtt,Ctt}function Ttt(){this.descriptor_x9l6cp$_0=new Wt("com.ustadmobile.lib.db.entities.ContentCategorySchema",this,7),this.descriptor.addElement_ivxn3r$("contentCategorySchemaUid",!0),this.descriptor.addElement_ivxn3r$("schemaName",!0),this.descriptor.addElement_ivxn3r$("schemaUrl",!0),this.descriptor.addElement_ivxn3r$("contentCategorySchemaLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("contentCategorySchemaMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("contentCategorySchemaLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("contentCategorySchemaLct",!0),Ltt=this}Object.defineProperty(Ttt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_x9l6cp$_0}}),Ttt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.contentCategorySchemaUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.contentCategorySchemaUid),O(e.schemaName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.schemaName),O(e.schemaUrl,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.schemaUrl),O(e.contentCategorySchemaLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.contentCategorySchemaLocalChangeSeqNum),O(e.contentCategorySchemaMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.contentCategorySchemaMasterChangeSeqNum),O(e.contentCategorySchemaLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeIntElement_ptg7oe$(this.descriptor,5,e.contentCategorySchemaLastChangedBy),O(e.contentCategorySchemaLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.contentCategorySchemaLct),n.endStructure_24f42q$(this.descriptor)},Ttt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l=0,u=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=u.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=u.decodeLongElement_szpzho$(this.descriptor,0),l|=1;break;case 1:i=u.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),l|=2;break;case 2:o=u.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),l|=4;break;case 3:r=u.decodeLongElement_szpzho$(this.descriptor,3),l|=8;break;case 4:s=u.decodeLongElement_szpzho$(this.descriptor,4),l|=16;break;case 5:a=u.decodeIntElement_szpzho$(this.descriptor,5),l|=32;break;case 6:c=u.decodeLongElement_szpzho$(this.descriptor,6),l|=64;break;case-1:break t;default:throw new Vt(e)}return u.endStructure_24f42q$(this.descriptor),wtt(l,n,i,o,r,s,a,c,null)},Ttt.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer]},Ttt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Ltt=null;function ztt(){return null===Ltt&&new Ttt,Ltt}function wtt(t,e,n,i,o,r,s,a,c){var l=c||Object.create(Stt.prototype);return l.contentCategorySchemaUid=0==(1&t)?X:e,l.schemaName=0==(2&t)?null:n,l.schemaUrl=0==(4&t)?null:i,l.contentCategorySchemaLocalChangeSeqNum=0==(8&t)?X:o,l.contentCategorySchemaMasterChangeSeqNum=0==(16&t)?X:r,l.contentCategorySchemaLastChangedBy=0==(32&t)?0:s,l.contentCategorySchemaLct=0==(64&t)?X:a,l}function Ott(){xtt(),this.contentEntryUid=X,this.title=null,this.description=null,this.entryId=null,this.author=null,this.publisher=null,this.licenseType=0,this.licenseName=null,this.licenseUrl=null,this.sourceUrl=null,this.thumbnailUrl=null,this.lastModified=X,this.primaryLanguageUid=X,this.languageVariantUid=X,this.contentFlags=0,this.leaf=!1,this.publik=!0,this.ceInactive=!1,this.completionCriteria=0,this.minScore=0,this.contentTypeFlag=0,this.contentOwner=X,this.contentEntryLocalChangeSeqNum=X,this.contentEntryMasterChangeSeqNum=X,this.contentEntryLastChangedBy=0,this.contentEntryLct=X}function Rtt(){Att=this,this.TABLE_ID=42,this.LICENSE_TYPE_CC_BY=1,this.LICENSE_TYPE_CC_BY_SA=2,this.LICENSE_TYPE_CC_BY_SA_NC=3,this.LICENSE_TYPE_CC_BY_NC=4,this.ALL_RIGHTS_RESERVED=5,this.LICENSE_TYPE_CC_BY_NC_SA=6,this.LICENSE_TYPE_PUBLIC_DOMAIN=7,this.LICENSE_TYPE_OTHER=8,this.LICENSE_TYPE_CC_BY_ND=10,this.LICENSE_TYPE_CC_BY_NC_ND=11,this.LICENSE_TYPE_CC_0=9,this.TYPE_UNDEFINED=0,this.TYPE_COLLECTION=1,this.TYPE_EBOOK=2,this.TYPE_INTERACTIVE_EXERCISE=3,this.TYPE_VIDEO=4,this.TYPE_AUDIO=5,this.TYPE_DOCUMENT=6,this.TYPE_ARTICLE=7,this.TYPE_PDF=8,this.FLAG_IMPORTED=1,this.FLAG_CONTENT_EDITOR=2,this.FLAG_SCRAPPED=4,this.COMPLETION_CRITERIA_AUTOMATIC=0,this.COMPLETION_CRITERIA_MIN_SCORE=1,this.COMPLETION_CRITERIA_MARKED_BY_STUDENT=2}Stt.$metadata$={kind:c,simpleName:"ContentCategorySchema",interfaces:[]},Rtt.prototype.serializer=function(){return Dtt()},Rtt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Att=null;function xtt(){return null===Att&&new Rtt,Att}function Itt(){this.descriptor_wwrnlo$_0=new Wt("com.ustadmobile.lib.db.entities.ContentEntry",this,26),this.descriptor.addElement_ivxn3r$("contentEntryUid",!0),this.descriptor.addElement_ivxn3r$("title",!0),this.descriptor.addElement_ivxn3r$("description",!0),this.descriptor.addElement_ivxn3r$("entryId",!0),this.descriptor.addElement_ivxn3r$("author",!0),this.descriptor.addElement_ivxn3r$("publisher",!0),this.descriptor.addElement_ivxn3r$("licenseType",!0),this.descriptor.addElement_ivxn3r$("licenseName",!0),this.descriptor.addElement_ivxn3r$("licenseUrl",!0),this.descriptor.addElement_ivxn3r$("sourceUrl",!0),this.descriptor.addElement_ivxn3r$("thumbnailUrl",!0),this.descriptor.addElement_ivxn3r$("lastModified",!0),this.descriptor.addElement_ivxn3r$("primaryLanguageUid",!0),this.descriptor.addElement_ivxn3r$("languageVariantUid",!0),this.descriptor.addElement_ivxn3r$("contentFlags",!0),this.descriptor.addElement_ivxn3r$("leaf",!0),this.descriptor.addElement_ivxn3r$("publik",!0),this.descriptor.addElement_ivxn3r$("ceInactive",!0),this.descriptor.addElement_ivxn3r$("completionCriteria",!0),this.descriptor.addElement_ivxn3r$("minScore",!0),this.descriptor.addElement_ivxn3r$("contentTypeFlag",!0),this.descriptor.addElement_ivxn3r$("contentOwner",!0),this.descriptor.addElement_ivxn3r$("contentEntryLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("contentEntryMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("contentEntryLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("contentEntryLct",!0),Utt=this}Ott.prototype.equals=function(t){return!!(this===t||e.isType(t,Ott)&&O(this.contentEntryUid,t.contentEntryUid)&&O(this.title,t.title)&&O(this.description,t.description)&&O(this.entryId,t.entryId)&&O(this.author,t.author)&&O(this.publisher,t.publisher)&&this.licenseType===t.licenseType&&O(this.licenseName,t.licenseName)&&O(this.licenseUrl,t.licenseUrl)&&O(this.sourceUrl,t.sourceUrl)&&O(this.thumbnailUrl,t.thumbnailUrl)&&O(this.lastModified,t.lastModified)&&O(this.primaryLanguageUid,t.primaryLanguageUid)&&O(this.languageVariantUid,t.languageVariantUid)&&this.contentFlags===t.contentFlags&&this.leaf===t.leaf&&this.publik===t.publik&&this.ceInactive===t.ceInactive&&this.contentTypeFlag===t.contentTypeFlag&&this.completionCriteria===t.completionCriteria&&this.minScore===t.minScore&&O(this.contentEntryLocalChangeSeqNum,t.contentEntryLocalChangeSeqNum)&&O(this.contentEntryMasterChangeSeqNum,t.contentEntryMasterChangeSeqNum)&&this.contentEntryLastChangedBy===t.contentEntryLastChangedBy)},Ott.prototype.hashCode=function(){var t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$=Yt(this.contentEntryUid);return $=(31*($=(31*($=(31*($=(31*($=(31*($=(31*($=(31*($=(31*($=(31*($=(31*($=(31*($=(31*($=(31*($=(31*($=(31*($=(31*($=(31*($=(31*($=(31*($=(31*($=(31*($=(31*($=(31*$|0)+(null!=(e=null!=(t=this.title)?Yt(t):null)?e:0)|0)|0)+(null!=(i=null!=(n=this.description)?Yt(n):null)?i:0)|0)|0)+(null!=(r=null!=(o=this.entryId)?Yt(o):null)?r:0)|0)|0)+(null!=(a=null!=(s=this.author)?Yt(s):null)?a:0)|0)|0)+(null!=(l=null!=(c=this.publisher)?Yt(c):null)?l:0)|0)|0)+this.licenseType|0)|0)+(null!=(h=null!=(u=this.licenseName)?Yt(u):null)?h:0)|0)|0)+(null!=(p=null!=(d=this.licenseUrl)?Yt(d):null)?p:0)|0)|0)+(null!=(m=null!=(_=this.sourceUrl)?Yt(_):null)?m:0)|0)|0)+(null!=(g=null!=(f=this.thumbnailUrl)?Yt(f):null)?g:0)|0)|0)+Yt(this.lastModified)|0)|0)+Yt(this.primaryLanguageUid)|0)|0)+Yt(this.languageVariantUid)|0)|0)+this.contentFlags|0)|0)+Yt(this.leaf)|0)|0)+Yt(this.publik)|0)|0)+Yt(this.ceInactive)|0)|0)+this.contentTypeFlag|0)|0)+this.completionCriteria|0)|0)+this.minScore|0)|0)+Yt(this.contentEntryLocalChangeSeqNum)|0)|0)+Yt(this.contentEntryMasterChangeSeqNum)|0)|0)+this.contentEntryLastChangedBy|0},Object.defineProperty(Itt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_wwrnlo$_0}}),Itt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.contentEntryUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.contentEntryUid),O(e.title,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.title),O(e.description,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.description),O(e.entryId,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,3,Ht.StringSerializer,e.entryId),O(e.author,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,4,Ht.StringSerializer,e.author),O(e.publisher,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,5,Ht.StringSerializer,e.publisher),O(e.licenseType,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.licenseType),O(e.licenseName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,7,Ht.StringSerializer,e.licenseName),O(e.licenseUrl,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,8,Ht.StringSerializer,e.licenseUrl),O(e.sourceUrl,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,9,Ht.StringSerializer,e.sourceUrl),O(e.thumbnailUrl,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,10,Ht.StringSerializer,e.thumbnailUrl),O(e.lastModified,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeLongElement_j0o2mv$(this.descriptor,11,e.lastModified),O(e.primaryLanguageUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeLongElement_j0o2mv$(this.descriptor,12,e.primaryLanguageUid),O(e.languageVariantUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeLongElement_j0o2mv$(this.descriptor,13,e.languageVariantUid),O(e.contentFlags,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeIntElement_ptg7oe$(this.descriptor,14,e.contentFlags),O(e.leaf,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeBooleanElement_qh7jdn$(this.descriptor,15,e.leaf),O(e.publik,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,16)||n.encodeBooleanElement_qh7jdn$(this.descriptor,16,e.publik),O(e.ceInactive,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,17)||n.encodeBooleanElement_qh7jdn$(this.descriptor,17,e.ceInactive),O(e.completionCriteria,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,18)||n.encodeIntElement_ptg7oe$(this.descriptor,18,e.completionCriteria),O(e.minScore,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,19)||n.encodeIntElement_ptg7oe$(this.descriptor,19,e.minScore),O(e.contentTypeFlag,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,20)||n.encodeIntElement_ptg7oe$(this.descriptor,20,e.contentTypeFlag),O(e.contentOwner,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,21)||n.encodeLongElement_j0o2mv$(this.descriptor,21,e.contentOwner),O(e.contentEntryLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,22)||n.encodeLongElement_j0o2mv$(this.descriptor,22,e.contentEntryLocalChangeSeqNum),O(e.contentEntryMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,23)||n.encodeLongElement_j0o2mv$(this.descriptor,23,e.contentEntryMasterChangeSeqNum),O(e.contentEntryLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,24)||n.encodeIntElement_ptg7oe$(this.descriptor,24,e.contentEntryLastChangedBy),O(e.contentEntryLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,25)||n.encodeLongElement_j0o2mv$(this.descriptor,25,e.contentEntryLct),n.endStructure_24f42q$(this.descriptor)},Itt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z=0,w=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=w.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=w.decodeLongElement_szpzho$(this.descriptor,0),z|=1;break;case 1:i=w.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),z|=2;break;case 2:o=w.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),z|=4;break;case 3:r=w.decodeNullableSerializableElement_8viuyw$(this.descriptor,3,Ht.StringSerializer,r),z|=8;break;case 4:s=w.decodeNullableSerializableElement_8viuyw$(this.descriptor,4,Ht.StringSerializer,s),z|=16;break;case 5:a=w.decodeNullableSerializableElement_8viuyw$(this.descriptor,5,Ht.StringSerializer,a),z|=32;break;case 6:c=w.decodeIntElement_szpzho$(this.descriptor,6),z|=64;break;case 7:l=w.decodeNullableSerializableElement_8viuyw$(this.descriptor,7,Ht.StringSerializer,l),z|=128;break;case 8:u=w.decodeNullableSerializableElement_8viuyw$(this.descriptor,8,Ht.StringSerializer,u),z|=256;break;case 9:h=w.decodeNullableSerializableElement_8viuyw$(this.descriptor,9,Ht.StringSerializer,h),z|=512;break;case 10:d=w.decodeNullableSerializableElement_8viuyw$(this.descriptor,10,Ht.StringSerializer,d),z|=1024;break;case 11:p=w.decodeLongElement_szpzho$(this.descriptor,11),z|=2048;break;case 12:_=w.decodeLongElement_szpzho$(this.descriptor,12),z|=4096;break;case 13:m=w.decodeLongElement_szpzho$(this.descriptor,13),z|=8192;break;case 14:f=w.decodeIntElement_szpzho$(this.descriptor,14),z|=16384;break;case 15:g=w.decodeBooleanElement_szpzho$(this.descriptor,15),z|=32768;break;case 16:$=w.decodeBooleanElement_szpzho$(this.descriptor,16),z|=65536;break;case 17:E=w.decodeBooleanElement_szpzho$(this.descriptor,17),z|=131072;break;case 18:y=w.decodeIntElement_szpzho$(this.descriptor,18),z|=262144;break;case 19:b=w.decodeIntElement_szpzho$(this.descriptor,19),z|=524288;break;case 20:S=w.decodeIntElement_szpzho$(this.descriptor,20),z|=1048576;break;case 21:v=w.decodeLongElement_szpzho$(this.descriptor,21),z|=2097152;break;case 22:C=w.decodeLongElement_szpzho$(this.descriptor,22),z|=4194304;break;case 23:N=w.decodeLongElement_szpzho$(this.descriptor,23),z|=8388608;break;case 24:T=w.decodeIntElement_szpzho$(this.descriptor,24),z|=16777216;break;case 25:L=w.decodeLongElement_szpzho$(this.descriptor,25),z|=33554432;break;case-1:break t;default:throw new Vt(e)}return w.endStructure_24f42q$(this.descriptor),Ptt(z,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,null)},Itt.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.IntSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.BooleanSerializer,Ht.BooleanSerializer,Ht.BooleanSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer]},Itt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Utt=null;function Dtt(){return null===Utt&&new Itt,Utt}function Ptt(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L){var z=L||Object.create(Ott.prototype);return z.contentEntryUid=0==(1&t)?X:e,z.title=0==(2&t)?null:n,z.description=0==(4&t)?null:i,z.entryId=0==(8&t)?null:o,z.author=0==(16&t)?null:r,z.publisher=0==(32&t)?null:s,z.licenseType=0==(64&t)?0:a,z.licenseName=0==(128&t)?null:c,z.licenseUrl=0==(256&t)?null:l,z.sourceUrl=0==(512&t)?null:u,z.thumbnailUrl=0==(1024&t)?null:h,z.lastModified=0==(2048&t)?X:d,z.primaryLanguageUid=0==(4096&t)?X:p,z.languageVariantUid=0==(8192&t)?X:_,z.contentFlags=0==(16384&t)?0:m,z.leaf=0!=(32768&t)&&f,z.publik=0==(65536&t)||g,z.ceInactive=0!=(131072&t)&&$,z.completionCriteria=0==(262144&t)?0:E,z.minScore=0==(524288&t)?0:y,z.contentTypeFlag=0==(1048576&t)?0:b,z.contentOwner=0==(2097152&t)?X:S,z.contentEntryLocalChangeSeqNum=0==(4194304&t)?X:v,z.contentEntryMasterChangeSeqNum=0==(8388608&t)?X:C,z.contentEntryLastChangedBy=0==(16777216&t)?0:N,z.contentEntryLct=0==(33554432&t)?X:T,z}function Mtt(){this.showDownloadButton=!1,this.showOpenButton=!1,this.showUpdateButton=!1,this.showDeleteButton=!1,this.showManageDownloadButton=!1}function ktt(){qtt(),this.ceccjUid=X,this.ceccjContentEntryUid=X,this.ceccjContentCategoryUid=X,this.ceccjLocalChangeSeqNum=X,this.ceccjMasterChangeSeqNum=X,this.ceccjLastChangedBy=0,this.ceccjLct=X}function jtt(){Gtt=this,this.TABLE_ID=3}Ott.$metadata$={kind:c,simpleName:"ContentEntry",interfaces:[]},Mtt.$metadata$={kind:c,simpleName:"ContentEntryButtonModel",interfaces:[]},ktt.prototype.equals=function(t){var n;if(this===t)return!0;var i=null==(n=t)||e.isType(n,ktt)?n:Jt();return!!O(this.ceccjUid,oe(i).ceccjUid)&&!!O(this.ceccjContentEntryUid,i.ceccjContentEntryUid)&&O(this.ceccjContentCategoryUid,i.ceccjContentCategoryUid)},ktt.prototype.hashCode=function(){var t=this.ceccjUid.xor(this.ceccjUid.shiftRightUnsigned(32)).toInt();return t=(31*(t=(31*t|0)+this.ceccjContentEntryUid.xor(this.ceccjContentEntryUid.shiftRightUnsigned(32)).toInt()|0)|0)+this.ceccjContentCategoryUid.xor(this.ceccjContentCategoryUid.shiftRightUnsigned(32)).toInt()|0},jtt.prototype.serializer=function(){return Wtt()},jtt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Gtt=null;function qtt(){return null===Gtt&&new jtt,Gtt}function Ftt(){this.descriptor_fnoes9$_0=new Wt("com.ustadmobile.lib.db.entities.ContentEntryContentCategoryJoin",this,7),this.descriptor.addElement_ivxn3r$("ceccjUid",!0),this.descriptor.addElement_ivxn3r$("ceccjContentEntryUid",!0),this.descriptor.addElement_ivxn3r$("ceccjContentCategoryUid",!0),this.descriptor.addElement_ivxn3r$("ceccjLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("ceccjMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("ceccjLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("ceccjLct",!0),Btt=this}Object.defineProperty(Ftt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_fnoes9$_0}}),Ftt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.ceccjUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.ceccjUid),O(e.ceccjContentEntryUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.ceccjContentEntryUid),O(e.ceccjContentCategoryUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.ceccjContentCategoryUid),O(e.ceccjLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.ceccjLocalChangeSeqNum),O(e.ceccjMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.ceccjMasterChangeSeqNum),O(e.ceccjLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeIntElement_ptg7oe$(this.descriptor,5,e.ceccjLastChangedBy),O(e.ceccjLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.ceccjLct),n.endStructure_24f42q$(this.descriptor)},Ftt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l=0,u=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=u.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=u.decodeLongElement_szpzho$(this.descriptor,0),l|=1;break;case 1:i=u.decodeLongElement_szpzho$(this.descriptor,1),l|=2;break;case 2:o=u.decodeLongElement_szpzho$(this.descriptor,2),l|=4;break;case 3:r=u.decodeLongElement_szpzho$(this.descriptor,3),l|=8;break;case 4:s=u.decodeLongElement_szpzho$(this.descriptor,4),l|=16;break;case 5:a=u.decodeIntElement_szpzho$(this.descriptor,5),l|=32;break;case 6:c=u.decodeLongElement_szpzho$(this.descriptor,6),l|=64;break;case-1:break t;default:throw new Vt(e)}return u.endStructure_24f42q$(this.descriptor),Htt(l,n,i,o,r,s,a,c,null)},Ftt.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer]},Ftt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Btt=null;function Wtt(){return null===Btt&&new Ftt,Btt}function Htt(t,e,n,i,o,r,s,a,c){var l=c||Object.create(ktt.prototype);return l.ceccjUid=0==(1&t)?X:e,l.ceccjContentEntryUid=0==(2&t)?X:n,l.ceccjContentCategoryUid=0==(4&t)?X:i,l.ceccjLocalChangeSeqNum=0==(8&t)?X:o,l.ceccjMasterChangeSeqNum=0==(16&t)?X:r,l.ceccjLastChangedBy=0==(32&t)?0:s,l.ceccjLct=0==(64&t)?X:a,l}function Vtt(){Jtt(),this.contentEntryUid=X,this.leaf=!1,this.mostRecentContainerUid=X,this.mostRecentContainerSize=X}function Ktt(){Xtt=this}ktt.$metadata$={kind:c,simpleName:"ContentEntryContentCategoryJoin",interfaces:[]},Ktt.prototype.serializer=function(){return Ztt()},Ktt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Xtt=null;function Jtt(){return null===Xtt&&new Ktt,Xtt}function Ytt(){this.descriptor_zcd6kf$_0=new Wt("com.ustadmobile.lib.db.entities.ContentEntryContentJobItemParams",this,4),this.descriptor.addElement_ivxn3r$("contentEntryUid",!0),this.descriptor.addElement_ivxn3r$("leaf",!0),this.descriptor.addElement_ivxn3r$("mostRecentContainerUid",!0),this.descriptor.addElement_ivxn3r$("mostRecentContainerSize",!0),Qtt=this}Object.defineProperty(Ytt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_zcd6kf$_0}}),Ytt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.contentEntryUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.contentEntryUid),O(e.leaf,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeBooleanElement_qh7jdn$(this.descriptor,1,e.leaf),O(e.mostRecentContainerUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.mostRecentContainerUid),O(e.mostRecentContainerSize,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.mostRecentContainerSize),n.endStructure_24f42q$(this.descriptor)},Ytt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s=0,a=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=a.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=a.decodeLongElement_szpzho$(this.descriptor,0),s|=1;break;case 1:i=a.decodeBooleanElement_szpzho$(this.descriptor,1),s|=2;break;case 2:o=a.decodeLongElement_szpzho$(this.descriptor,2),s|=4;break;case 3:r=a.decodeLongElement_szpzho$(this.descriptor,3),s|=8;break;case-1:break t;default:throw new Vt(e)}return a.endStructure_24f42q$(this.descriptor),tet(s,n,i,o,r,null)},Ytt.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.BooleanSerializer,Ht.LongSerializer,Ht.LongSerializer]},Ytt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Qtt=null;function Ztt(){return null===Qtt&&new Ytt,Qtt}function tet(t,e,n,i,o,r){var s=r||Object.create(Vtt.prototype);return s.contentEntryUid=0==(1&t)?X:e,s.leaf=0!=(2&t)&&n,s.mostRecentContainerUid=0==(4&t)?X:i,s.mostRecentContainerSize=0==(8&t)?X:o,s}function eet(t,e,n){oet(),void 0===t&&(t=X),void 0===e&&(e=X),void 0===n&&(n=0),this.cepcjParentContentEntryUid=t,this.cepcjChildContentEntryUid=e,this.childIndex=n,this.cepcjUid=X,this.cepcjLocalChangeSeqNum=X,this.cepcjMasterChangeSeqNum=X,this.cepcjLastChangedBy=0,this.cepcjLct=X}function net(){iet=this,this.TABLE_ID=7}Vtt.$metadata$={kind:c,simpleName:"ContentEntryContentJobItemParams",interfaces:[]},net.prototype.serializer=function(){return aet()},net.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var iet=null;function oet(){return null===iet&&new net,iet}function ret(){this.descriptor_49p3oe$_0=new Wt("com.ustadmobile.lib.db.entities.ContentEntryParentChildJoin",this,8),this.descriptor.addElement_ivxn3r$("cepcjParentContentEntryUid",!0),this.descriptor.addElement_ivxn3r$("cepcjChildContentEntryUid",!0),this.descriptor.addElement_ivxn3r$("childIndex",!0),this.descriptor.addElement_ivxn3r$("cepcjUid",!0),this.descriptor.addElement_ivxn3r$("cepcjLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("cepcjMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("cepcjLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("cepcjLct",!0),set=this}eet.prototype.equals=function(t){var n;return this===t||!(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))&&(e.isType(t,eet)||Jt(),!!(O(this.cepcjUid,t.cepcjUid)&&O(this.cepcjLocalChangeSeqNum,t.cepcjLocalChangeSeqNum)&&O(this.cepcjMasterChangeSeqNum,t.cepcjMasterChangeSeqNum)&&this.cepcjLastChangedBy===t.cepcjLastChangedBy&&O(this.cepcjParentContentEntryUid,t.cepcjParentContentEntryUid)&&O(this.cepcjChildContentEntryUid,t.cepcjChildContentEntryUid)&&this.childIndex===t.childIndex))},eet.prototype.hashCode=function(){var t=Yt(this.cepcjUid);return t=(31*(t=(31*(t=(31*(t=(31*(t=(31*(t=(31*t|0)+Yt(this.cepcjLocalChangeSeqNum)|0)|0)+Yt(this.cepcjMasterChangeSeqNum)|0)|0)+this.cepcjLastChangedBy|0)|0)+Yt(this.cepcjParentContentEntryUid)|0)|0)+Yt(this.cepcjChildContentEntryUid)|0)|0)+this.childIndex|0},Object.defineProperty(ret.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_49p3oe$_0}}),ret.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.cepcjParentContentEntryUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.cepcjParentContentEntryUid),O(e.cepcjChildContentEntryUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.cepcjChildContentEntryUid),O(e.childIndex,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeIntElement_ptg7oe$(this.descriptor,2,e.childIndex),O(e.cepcjUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.cepcjUid),O(e.cepcjLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.cepcjLocalChangeSeqNum),O(e.cepcjMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.cepcjMasterChangeSeqNum),O(e.cepcjLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.cepcjLastChangedBy),O(e.cepcjLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.cepcjLct),n.endStructure_24f42q$(this.descriptor)},ret.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u=0,h=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=h.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=h.decodeLongElement_szpzho$(this.descriptor,0),u|=1;break;case 1:i=h.decodeLongElement_szpzho$(this.descriptor,1),u|=2;break;case 2:o=h.decodeIntElement_szpzho$(this.descriptor,2),u|=4;break;case 3:r=h.decodeLongElement_szpzho$(this.descriptor,3),u|=8;break;case 4:s=h.decodeLongElement_szpzho$(this.descriptor,4),u|=16;break;case 5:a=h.decodeLongElement_szpzho$(this.descriptor,5),u|=32;break;case 6:c=h.decodeIntElement_szpzho$(this.descriptor,6),u|=64;break;case 7:l=h.decodeLongElement_szpzho$(this.descriptor,7),u|=128;break;case-1:break t;default:throw new Vt(e)}return h.endStructure_24f42q$(this.descriptor),cet(u,n,i,o,r,s,a,c,l,null)},ret.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer]},ret.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var set=null;function aet(){return null===set&&new ret,set}function cet(t,e,n,i,o,r,s,a,c,l){var u=l||Object.create(eet.prototype);return u.cepcjParentContentEntryUid=0==(1&t)?X:e,u.cepcjChildContentEntryUid=0==(2&t)?X:n,u.childIndex=0==(4&t)?0:i,u.cepcjUid=0==(8&t)?X:o,u.cepcjLocalChangeSeqNum=0==(16&t)?X:r,u.cepcjMasterChangeSeqNum=0==(32&t)?X:s,u.cepcjLastChangedBy=0==(64&t)?0:a,u.cepcjLct=0==(128&t)?X:c,u}function uet(){pet(),this.cepUid=X,this.cepContentEntryUid=X,this.cepUri=null,this.cepMd5=null,this.cepFileSize=0,this.cepTimestamp=X,this.cepMimeType=null,this.cepActive=!0}function het(){det=this,this.TABLE_ID=138}eet.$metadata$={kind:c,simpleName:"ContentEntryParentChildJoin",interfaces:[]},het.prototype.serializer=function(){return fet()},het.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var det=null;function pet(){return null===det&&new het,det}function _et(){this.descriptor_8lwvy4$_0=new Wt("com.ustadmobile.lib.db.entities.ContentEntryPicture",this,8),this.descriptor.addElement_ivxn3r$("cepUid",!0),this.descriptor.addElement_ivxn3r$("cepContentEntryUid",!0),this.descriptor.addElement_ivxn3r$("cepUri",!0),this.descriptor.addElement_ivxn3r$("cepMd5",!0),this.descriptor.addElement_ivxn3r$("cepFileSize",!0),this.descriptor.addElement_ivxn3r$("cepTimestamp",!0),this.descriptor.addElement_ivxn3r$("cepMimeType",!0),this.descriptor.addElement_ivxn3r$("cepActive",!0),met=this}uet.prototype.equals=function(t){var n;return this===t||!(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))&&(e.isType(t,uet)||Jt(),!!(O(this.cepUid,t.cepUid)&&O(this.cepContentEntryUid,t.cepContentEntryUid)&&O(this.cepUri,t.cepUri)&&O(this.cepMd5,t.cepMd5)&&this.cepFileSize===t.cepFileSize&&O(this.cepTimestamp,t.cepTimestamp)&&O(this.cepMimeType,t.cepMimeType)&&this.cepActive===t.cepActive))},uet.prototype.hashCode=function(){var t,e,n,i,o,r,s=Yt(this.cepUid);return s=(31*(s=(31*(s=(31*(s=(31*(s=(31*(s=(31*(s=(31*s|0)+Yt(this.cepContentEntryUid)|0)|0)+(null!=(e=null!=(t=this.cepUri)?Yt(t):null)?e:0)|0)|0)+(null!=(i=null!=(n=this.cepMd5)?Yt(n):null)?i:0)|0)|0)+this.cepFileSize|0)|0)+Yt(this.cepTimestamp)|0)|0)+(null!=(r=null!=(o=this.cepMimeType)?Yt(o):null)?r:0)|0)|0)+Yt(this.cepActive)|0},Object.defineProperty(_et.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_8lwvy4$_0}}),_et.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.cepUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.cepUid),O(e.cepContentEntryUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.cepContentEntryUid),O(e.cepUri,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.cepUri),O(e.cepMd5,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,3,Ht.StringSerializer,e.cepMd5),O(e.cepFileSize,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeIntElement_ptg7oe$(this.descriptor,4,e.cepFileSize),O(e.cepTimestamp,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.cepTimestamp),O(e.cepMimeType,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,6,Ht.StringSerializer,e.cepMimeType),O(e.cepActive,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeBooleanElement_qh7jdn$(this.descriptor,7,e.cepActive),n.endStructure_24f42q$(this.descriptor)},_et.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u=0,h=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=h.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=h.decodeLongElement_szpzho$(this.descriptor,0),u|=1;break;case 1:i=h.decodeLongElement_szpzho$(this.descriptor,1),u|=2;break;case 2:o=h.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),u|=4;break;case 3:r=h.decodeNullableSerializableElement_8viuyw$(this.descriptor,3,Ht.StringSerializer,r),u|=8;break;case 4:s=h.decodeIntElement_szpzho$(this.descriptor,4),u|=16;break;case 5:a=h.decodeLongElement_szpzho$(this.descriptor,5),u|=32;break;case 6:c=h.decodeNullableSerializableElement_8viuyw$(this.descriptor,6,Ht.StringSerializer,c),u|=64;break;case 7:l=h.decodeBooleanElement_szpzho$(this.descriptor,7),u|=128;break;case-1:break t;default:throw new Vt(e)}return h.endStructure_24f42q$(this.descriptor),get(u,n,i,o,r,s,a,c,l,null)},_et.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.BooleanSerializer]},_et.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var met=null;function fet(){return null===met&&new _et,met}function get(t,e,n,i,o,r,s,a,c,l){var u=l||Object.create(uet.prototype);return u.cepUid=0==(1&t)?X:e,u.cepContentEntryUid=0==(2&t)?X:n,u.cepUri=0==(4&t)?null:i,u.cepMd5=0==(8&t)?null:o,u.cepFileSize=0==(16&t)?0:r,u.cepTimestamp=0==(32&t)?X:s,u.cepMimeType=0==(64&t)?null:a,u.cepActive=0==(128&t)||c,u}function $et(){bet(),this.cerejUid=X,this.cerejContentEntryUid=X,this.cerejRelatedEntryUid=X,this.cerejLastChangedBy=0,this.relType=0,this.comment=null,this.cerejRelLanguageUid=X,this.cerejLocalChangeSeqNum=X,this.cerejMasterChangeSeqNum=X,this.cerejLct=X}function Eet(){yet=this,this.TABLE_ID=8,this.REL_TYPE_TRANSLATED_VERSION=1,this.REL_TYPE_SEE_ALSO=2}uet.$metadata$={kind:c,simpleName:"ContentEntryPicture",interfaces:[]},$et.prototype.equals=function(t){var n;if(this===t)return!0;var i=null==(n=t)||e.isType(n,$et)?n:Jt();return!!O(this.cerejUid,oe(i).cerejUid)&&!!O(this.cerejContentEntryUid,i.cerejContentEntryUid)&&!!O(this.cerejRelatedEntryUid,i.cerejRelatedEntryUid)&&this.relType===i.relType&&!!O(this.cerejRelLanguageUid,i.cerejRelLanguageUid)&&(null!=this.comment?O(this.comment,i.comment):null==i.comment)},$et.prototype.hashCode=function(){var t=this.cerejUid.xor(this.cerejUid.shiftRightUnsigned(32)).toInt();return t=(31*(t=(31*(t=(31*(t=(31*(t=(31*t|0)+this.cerejContentEntryUid.xor(this.cerejContentEntryUid.shiftRightUnsigned(32)).toInt()|0)|0)+this.cerejRelatedEntryUid.xor(this.cerejRelatedEntryUid.shiftRightUnsigned(32)).toInt()|0)|0)+this.relType|0)|0)+(null!=this.comment?Yt(oe(this.comment)):0)|0)|0)+this.cerejRelLanguageUid.xor(this.cerejRelLanguageUid.shiftRightUnsigned(32)).toInt()|0},Eet.prototype.serializer=function(){return Cet()},Eet.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var yet=null;function bet(){return null===yet&&new Eet,yet}function Set(){this.descriptor_nqjoej$_0=new Wt("com.ustadmobile.lib.db.entities.ContentEntryRelatedEntryJoin",this,10),this.descriptor.addElement_ivxn3r$("cerejUid",!0),this.descriptor.addElement_ivxn3r$("cerejContentEntryUid",!0),this.descriptor.addElement_ivxn3r$("cerejRelatedEntryUid",!0),this.descriptor.addElement_ivxn3r$("cerejLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("relType",!0),this.descriptor.addElement_ivxn3r$("comment",!0),this.descriptor.addElement_ivxn3r$("cerejRelLanguageUid",!0),this.descriptor.addElement_ivxn3r$("cerejLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("cerejMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("cerejLct",!0),vet=this}Object.defineProperty(Set.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_nqjoej$_0}}),Set.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.cerejUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.cerejUid),O(e.cerejContentEntryUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.cerejContentEntryUid),O(e.cerejRelatedEntryUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.cerejRelatedEntryUid),O(e.cerejLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeIntElement_ptg7oe$(this.descriptor,3,e.cerejLastChangedBy),O(e.relType,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeIntElement_ptg7oe$(this.descriptor,4,e.relType),O(e.comment,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,5,Ht.StringSerializer,e.comment),O(e.cerejRelLanguageUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.cerejRelLanguageUid),O(e.cerejLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.cerejLocalChangeSeqNum),O(e.cerejMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.cerejMasterChangeSeqNum),O(e.cerejLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeLongElement_j0o2mv$(this.descriptor,9,e.cerejLct),n.endStructure_24f42q$(this.descriptor)},Set.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d=0,p=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=p.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=p.decodeLongElement_szpzho$(this.descriptor,0),d|=1;break;case 1:i=p.decodeLongElement_szpzho$(this.descriptor,1),d|=2;break;case 2:o=p.decodeLongElement_szpzho$(this.descriptor,2),d|=4;break;case 3:r=p.decodeIntElement_szpzho$(this.descriptor,3),d|=8;break;case 4:s=p.decodeIntElement_szpzho$(this.descriptor,4),d|=16;break;case 5:a=p.decodeNullableSerializableElement_8viuyw$(this.descriptor,5,Ht.StringSerializer,a),d|=32;break;case 6:c=p.decodeLongElement_szpzho$(this.descriptor,6),d|=64;break;case 7:l=p.decodeLongElement_szpzho$(this.descriptor,7),d|=128;break;case 8:u=p.decodeLongElement_szpzho$(this.descriptor,8),d|=256;break;case 9:h=p.decodeLongElement_szpzho$(this.descriptor,9),d|=512;break;case-1:break t;default:throw new Vt(e)}return p.endStructure_24f42q$(this.descriptor),Net(d,n,i,o,r,s,a,c,l,u,h,null)},Set.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.IntSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer]},Set.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var vet=null;function Cet(){return null===vet&&new Set,vet}function Net(t,e,n,i,o,r,s,a,c,l,u,h){var d=h||Object.create($et.prototype);return d.cerejUid=0==(1&t)?X:e,d.cerejContentEntryUid=0==(2&t)?X:n,d.cerejRelatedEntryUid=0==(4&t)?X:i,d.cerejLastChangedBy=0==(8&t)?0:o,d.relType=0==(16&t)?0:r,d.comment=0==(32&t)?null:s,d.cerejRelLanguageUid=0==(64&t)?X:a,d.cerejLocalChangeSeqNum=0==(128&t)?X:c,d.cerejMasterChangeSeqNum=0==(256&t)?X:l,d.cerejLct=0==(512&t)?X:u,d}function Tet(){wet(),this.cerejContentEntryUid=X,this.cerejRelatedEntryUid=X,this.languageName=null}function Let(){zet=this}$et.$metadata$={kind:c,simpleName:"ContentEntryRelatedEntryJoin",interfaces:[]},Tet.prototype.equals=function(t){var n;return!!(this===t||null!=t&&null!=(n=e.getKClassFromExpression(this))&&n.equals(e.getKClassFromExpression(t))&&(e.isType(t,Tet)||Jt(),O(this.cerejContentEntryUid,t.cerejContentEntryUid)&&O(this.cerejRelatedEntryUid,t.cerejRelatedEntryUid)&&O(this.languageName,t.languageName)))},Tet.prototype.hashCode=function(){var t,e,n=Yt(this.cerejContentEntryUid);return n=(31*(n=(31*n|0)+Yt(this.cerejRelatedEntryUid)|0)|0)+(null!=(e=null!=(t=this.languageName)?Yt(t):null)?e:0)|0},Let.prototype.serializer=function(){return Aet()},Let.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var zet=null;function wet(){return null===zet&&new Let,zet}function Oet(){this.descriptor_6vvwwk$_0=new Wt("com.ustadmobile.lib.db.entities.ContentEntryRelatedEntryJoinWithLangName",this,3),this.descriptor.addElement_ivxn3r$("cerejContentEntryUid",!0),this.descriptor.addElement_ivxn3r$("cerejRelatedEntryUid",!0),this.descriptor.addElement_ivxn3r$("languageName",!0),Ret=this}Object.defineProperty(Oet.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_6vvwwk$_0}}),Oet.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.cerejContentEntryUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.cerejContentEntryUid),O(e.cerejRelatedEntryUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.cerejRelatedEntryUid),O(e.languageName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.languageName),n.endStructure_24f42q$(this.descriptor)},Oet.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r=0,s=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=s.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=s.decodeLongElement_szpzho$(this.descriptor,0),r|=1;break;case 1:i=s.decodeLongElement_szpzho$(this.descriptor,1),r|=2;break;case 2:o=s.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),r|=4;break;case-1:break t;default:throw new Vt(e)}return s.endStructure_24f42q$(this.descriptor),xet(r,n,i,o,null)},Oet.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer)]},Oet.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Ret=null;function Aet(){return null===Ret&&new Oet,Ret}function xet(t,e,n,i,o){var r=o||Object.create(Tet.prototype);return r.cerejContentEntryUid=0==(1&t)?X:e,r.cerejRelatedEntryUid=0==(2&t)?X:n,r.languageName=0==(4&t)?null:i,r}function Iet(){Pet(),$et.call(this),this.language=null}function Uet(){Det=this}Tet.$metadata$={kind:c,simpleName:"ContentEntryRelatedEntryJoinWithLangName",interfaces:[]},Iet.prototype.equals=function(t){var n;return this===t||!(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))&&!!$et.prototype.equals.call(this,t)&&(e.isType(t,Iet)||Jt(),!!O(this.language,t.language))},Iet.prototype.hashCode=function(){var t,e,n=$et.prototype.hashCode.call(this);return n=(31*n|0)+(null!=(e=null!=(t=this.language)?t.hashCode():null)?e:0)|0},Uet.prototype.serializer=function(){return jet()},Uet.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Det=null;function Pet(){return null===Det&&new Uet,Det}function Met(){this.descriptor_ifksfh$_0=new Wt("com.ustadmobile.lib.db.entities.ContentEntryRelatedEntryJoinWithLanguage",this,11),this.descriptor.addElement_ivxn3r$("cerejUid",!0),this.descriptor.addElement_ivxn3r$("cerejContentEntryUid",!0),this.descriptor.addElement_ivxn3r$("cerejRelatedEntryUid",!0),this.descriptor.addElement_ivxn3r$("cerejLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("relType",!0),this.descriptor.addElement_ivxn3r$("comment",!0),this.descriptor.addElement_ivxn3r$("cerejRelLanguageUid",!0),this.descriptor.addElement_ivxn3r$("cerejLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("cerejMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("cerejLct",!0),this.descriptor.addElement_ivxn3r$("language",!0),ket=this}Object.defineProperty(Met.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_ifksfh$_0}}),Met.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.cerejUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.cerejUid),O(e.cerejContentEntryUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.cerejContentEntryUid),O(e.cerejRelatedEntryUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.cerejRelatedEntryUid),O(e.cerejLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeIntElement_ptg7oe$(this.descriptor,3,e.cerejLastChangedBy),O(e.relType,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeIntElement_ptg7oe$(this.descriptor,4,e.relType),O(e.comment,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,5,Ht.StringSerializer,e.comment),O(e.cerejRelLanguageUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.cerejRelLanguageUid),O(e.cerejLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.cerejLocalChangeSeqNum),O(e.cerejMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.cerejMasterChangeSeqNum),O(e.cerejLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeLongElement_j0o2mv$(this.descriptor,9,e.cerejLct),O(e.language,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,10,Wst(),e.language),n.endStructure_24f42q$(this.descriptor)},Met.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p=0,_=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=_.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=_.decodeLongElement_szpzho$(this.descriptor,0),p|=1;break;case 1:i=_.decodeLongElement_szpzho$(this.descriptor,1),p|=2;break;case 2:o=_.decodeLongElement_szpzho$(this.descriptor,2),p|=4;break;case 3:r=_.decodeIntElement_szpzho$(this.descriptor,3),p|=8;break;case 4:s=_.decodeIntElement_szpzho$(this.descriptor,4),p|=16;break;case 5:a=_.decodeNullableSerializableElement_8viuyw$(this.descriptor,5,Ht.StringSerializer,a),p|=32;break;case 6:c=_.decodeLongElement_szpzho$(this.descriptor,6),p|=64;break;case 7:l=_.decodeLongElement_szpzho$(this.descriptor,7),p|=128;break;case 8:u=_.decodeLongElement_szpzho$(this.descriptor,8),p|=256;break;case 9:h=_.decodeLongElement_szpzho$(this.descriptor,9),p|=512;break;case 10:d=_.decodeNullableSerializableElement_8viuyw$(this.descriptor,10,Wst(),d),p|=1024;break;case-1:break t;default:throw new Vt(e)}return _.endStructure_24f42q$(this.descriptor),Get(p,n,i,o,r,s,a,c,l,u,h,d,null)},Met.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.IntSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,new Bt(Wst())]},Met.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var ket=null;function jet(){return null===ket&&new Met,ket}function Get(t,e,n,i,o,r,s,a,c,l,u,h,d){var p=d||Object.create(Iet.prototype);return(p=Net(t,e,n,i,o,r,s,a,c,l,u,p)).language=0==(1024&t)?null:h,p}function qet(){Wet(),this.resultScore=0,this.resultMax=0,this.resultScaled=0,this.resultWeight=0,this.contentComplete=!1,this.progress=0,this.success=Xpt().RESULT_UNSET,this.penalty=0,this.totalContent=0,this.totalCompletedContent=0}function Fet(){Bet=this}Iet.$metadata$={kind:c,simpleName:"ContentEntryRelatedEntryJoinWithLanguage",interfaces:[$et]},qet.prototype.equals=function(t){var n;return this===t||!(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))&&(e.isType(t,qet)||Jt(),this.resultScore===t.resultScore&&this.resultMax===t.resultMax&&this.resultScaled===t.resultScaled&&this.resultWeight===t.resultWeight&&this.contentComplete===t.contentComplete&&this.progress===t.progress&&this.success===t.success&&this.penalty===t.penalty&&this.totalContent===t.totalContent&&this.totalCompletedContent===t.totalCompletedContent)},qet.prototype.hashCode=function(){var t=this.resultScore;return t=(31*(t=(31*(t=(31*(t=(31*(t=(31*(t=(31*(t=(31*(t=(31*(t=(31*t|0)+this.resultMax|0)|0)+Yt(this.resultScaled)|0)|0)+this.resultWeight|0)|0)+Yt(this.contentComplete)|0)|0)+this.progress|0)|0)+this.success)|0)+this.penalty|0)|0)+this.totalContent|0)|0)+this.totalCompletedContent|0},Fet.prototype.serializer=function(){return Ket()},Fet.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Bet=null;function Wet(){return null===Bet&&new Fet,Bet}function Het(){this.descriptor_1bj0do$_0=new Wt("com.ustadmobile.lib.db.entities.ContentEntryStatementScoreProgress",this,10),this.descriptor.addElement_ivxn3r$("resultScore",!0),this.descriptor.addElement_ivxn3r$("resultMax",!0),this.descriptor.addElement_ivxn3r$("resultScaled",!0),this.descriptor.addElement_ivxn3r$("resultWeight",!0),this.descriptor.addElement_ivxn3r$("contentComplete",!0),this.descriptor.addElement_ivxn3r$("progress",!0),this.descriptor.addElement_ivxn3r$("success",!0),this.descriptor.addElement_ivxn3r$("penalty",!0),this.descriptor.addElement_ivxn3r$("totalContent",!0),this.descriptor.addElement_ivxn3r$("totalCompletedContent",!0),Vet=this}Object.defineProperty(Het.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_1bj0do$_0}}),Het.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.resultScore,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeIntElement_ptg7oe$(this.descriptor,0,e.resultScore),O(e.resultMax,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeIntElement_ptg7oe$(this.descriptor,1,e.resultMax),O(e.resultScaled,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeFloatElement_lf6hpt$(this.descriptor,2,e.resultScaled),O(e.resultWeight,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeIntElement_ptg7oe$(this.descriptor,3,e.resultWeight),O(e.contentComplete,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeBooleanElement_qh7jdn$(this.descriptor,4,e.contentComplete),O(e.progress,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeIntElement_ptg7oe$(this.descriptor,5,e.progress),O(e.success,Xpt().RESULT_UNSET)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeByteElement_j0u8y3$(this.descriptor,6,e.success),O(e.penalty,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeIntElement_ptg7oe$(this.descriptor,7,e.penalty),O(e.totalContent,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeIntElement_ptg7oe$(this.descriptor,8,e.totalContent),O(e.totalCompletedContent,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeIntElement_ptg7oe$(this.descriptor,9,e.totalCompletedContent),n.endStructure_24f42q$(this.descriptor)},Het.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d=0,p=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=p.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=p.decodeIntElement_szpzho$(this.descriptor,0),d|=1;break;case 1:i=p.decodeIntElement_szpzho$(this.descriptor,1),d|=2;break;case 2:o=p.decodeFloatElement_szpzho$(this.descriptor,2),d|=4;break;case 3:r=p.decodeIntElement_szpzho$(this.descriptor,3),d|=8;break;case 4:s=p.decodeBooleanElement_szpzho$(this.descriptor,4),d|=16;break;case 5:a=p.decodeIntElement_szpzho$(this.descriptor,5),d|=32;break;case 6:c=p.decodeByteElement_szpzho$(this.descriptor,6),d|=64;break;case 7:l=p.decodeIntElement_szpzho$(this.descriptor,7),d|=128;break;case 8:u=p.decodeIntElement_szpzho$(this.descriptor,8),d|=256;break;case 9:h=p.decodeIntElement_szpzho$(this.descriptor,9),d|=512;break;case-1:break t;default:throw new Vt(e)}return p.endStructure_24f42q$(this.descriptor),Xet(d,n,i,o,r,s,a,c,l,u,h,null)},Het.prototype.childSerializers=function(){return[Ht.IntSerializer,Ht.IntSerializer,Ht.FloatSerializer,Ht.IntSerializer,Ht.BooleanSerializer,Ht.IntSerializer,Ht.ByteSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer]},Het.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Vet=null;function Ket(){return null===Vet&&new Het,Vet}function Xet(t,e,n,i,o,r,s,a,c,l,u,h){var d=h||Object.create(qet.prototype);return d.resultScore=0==(1&t)?0:e,d.resultMax=0==(2&t)?0:n,d.resultScaled=0==(4&t)?0:i,d.resultWeight=0==(8&t)?0:o,d.contentComplete=0!=(16&t)&&r,d.progress=0==(32&t)?0:s,d.success=0==(64&t)?Xpt().RESULT_UNSET:a,d.penalty=0==(128&t)?0:c,d.totalContent=0==(256&t)?0:l,d.totalCompletedContent=0==(512&t)?0:u,d}function Jet(){Zet(),Ott.call(this),this.language=null,this.block=null}function Yet(){Qet=this}qet.$metadata$={kind:c,simpleName:"ContentEntryStatementScoreProgress",interfaces:[]},Yet.prototype.serializer=function(){return nnt()},Yet.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Qet=null;function Zet(){return null===Qet&&new Yet,Qet}function tnt(){this.descriptor_m2djck$_0=new Wt("com.ustadmobile.lib.db.entities.ContentEntryWithBlockAndLanguage",this,28),this.descriptor.addElement_ivxn3r$("contentEntryUid",!0),this.descriptor.addElement_ivxn3r$("title",!0),this.descriptor.addElement_ivxn3r$("description",!0),this.descriptor.addElement_ivxn3r$("entryId",!0),this.descriptor.addElement_ivxn3r$("author",!0),this.descriptor.addElement_ivxn3r$("publisher",!0),this.descriptor.addElement_ivxn3r$("licenseType",!0),this.descriptor.addElement_ivxn3r$("licenseName",!0),this.descriptor.addElement_ivxn3r$("licenseUrl",!0),this.descriptor.addElement_ivxn3r$("sourceUrl",!0),this.descriptor.addElement_ivxn3r$("thumbnailUrl",!0),this.descriptor.addElement_ivxn3r$("lastModified",!0),this.descriptor.addElement_ivxn3r$("primaryLanguageUid",!0),this.descriptor.addElement_ivxn3r$("languageVariantUid",!0),this.descriptor.addElement_ivxn3r$("contentFlags",!0),this.descriptor.addElement_ivxn3r$("leaf",!0),this.descriptor.addElement_ivxn3r$("publik",!0),this.descriptor.addElement_ivxn3r$("ceInactive",!0),this.descriptor.addElement_ivxn3r$("completionCriteria",!0),this.descriptor.addElement_ivxn3r$("minScore",!0),this.descriptor.addElement_ivxn3r$("contentTypeFlag",!0),this.descriptor.addElement_ivxn3r$("contentOwner",!0),this.descriptor.addElement_ivxn3r$("contentEntryLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("contentEntryMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("contentEntryLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("contentEntryLct",!0),this.descriptor.addElement_ivxn3r$("language",!0),this.descriptor.addElement_ivxn3r$("block",!0),ent=this}Object.defineProperty(tnt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_m2djck$_0}}),tnt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.contentEntryUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.contentEntryUid),O(e.title,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.title),O(e.description,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.description),O(e.entryId,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,3,Ht.StringSerializer,e.entryId),O(e.author,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,4,Ht.StringSerializer,e.author),O(e.publisher,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,5,Ht.StringSerializer,e.publisher),O(e.licenseType,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.licenseType),O(e.licenseName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,7,Ht.StringSerializer,e.licenseName),O(e.licenseUrl,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,8,Ht.StringSerializer,e.licenseUrl),O(e.sourceUrl,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,9,Ht.StringSerializer,e.sourceUrl),O(e.thumbnailUrl,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,10,Ht.StringSerializer,e.thumbnailUrl),O(e.lastModified,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeLongElement_j0o2mv$(this.descriptor,11,e.lastModified),O(e.primaryLanguageUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeLongElement_j0o2mv$(this.descriptor,12,e.primaryLanguageUid),O(e.languageVariantUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeLongElement_j0o2mv$(this.descriptor,13,e.languageVariantUid),O(e.contentFlags,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeIntElement_ptg7oe$(this.descriptor,14,e.contentFlags),O(e.leaf,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeBooleanElement_qh7jdn$(this.descriptor,15,e.leaf),O(e.publik,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,16)||n.encodeBooleanElement_qh7jdn$(this.descriptor,16,e.publik),O(e.ceInactive,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,17)||n.encodeBooleanElement_qh7jdn$(this.descriptor,17,e.ceInactive),O(e.completionCriteria,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,18)||n.encodeIntElement_ptg7oe$(this.descriptor,18,e.completionCriteria),O(e.minScore,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,19)||n.encodeIntElement_ptg7oe$(this.descriptor,19,e.minScore),O(e.contentTypeFlag,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,20)||n.encodeIntElement_ptg7oe$(this.descriptor,20,e.contentTypeFlag),O(e.contentOwner,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,21)||n.encodeLongElement_j0o2mv$(this.descriptor,21,e.contentOwner),O(e.contentEntryLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,22)||n.encodeLongElement_j0o2mv$(this.descriptor,22,e.contentEntryLocalChangeSeqNum),O(e.contentEntryMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,23)||n.encodeLongElement_j0o2mv$(this.descriptor,23,e.contentEntryMasterChangeSeqNum),O(e.contentEntryLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,24)||n.encodeIntElement_ptg7oe$(this.descriptor,24,e.contentEntryLastChangedBy),O(e.contentEntryLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,25)||n.encodeLongElement_j0o2mv$(this.descriptor,25,e.contentEntryLct),O(e.language,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,26)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,26,Wst(),e.language),O(e.block,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,27)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,27,xit(),e.block),n.endStructure_24f42q$(this.descriptor)},tnt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w,O=0,R=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=R.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=R.decodeLongElement_szpzho$(this.descriptor,0),O|=1;break;case 1:i=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),O|=2;break;case 2:o=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),O|=4;break;case 3:r=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,3,Ht.StringSerializer,r),O|=8;break;case 4:s=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,4,Ht.StringSerializer,s),O|=16;break;case 5:a=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,5,Ht.StringSerializer,a),O|=32;break;case 6:c=R.decodeIntElement_szpzho$(this.descriptor,6),O|=64;break;case 7:l=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,7,Ht.StringSerializer,l),O|=128;break;case 8:u=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,8,Ht.StringSerializer,u),O|=256;break;case 9:h=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,9,Ht.StringSerializer,h),O|=512;break;case 10:d=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,10,Ht.StringSerializer,d),O|=1024;break;case 11:p=R.decodeLongElement_szpzho$(this.descriptor,11),O|=2048;break;case 12:_=R.decodeLongElement_szpzho$(this.descriptor,12),O|=4096;break;case 13:m=R.decodeLongElement_szpzho$(this.descriptor,13),O|=8192;break;case 14:f=R.decodeIntElement_szpzho$(this.descriptor,14),O|=16384;break;case 15:g=R.decodeBooleanElement_szpzho$(this.descriptor,15),O|=32768;break;case 16:$=R.decodeBooleanElement_szpzho$(this.descriptor,16),O|=65536;break;case 17:E=R.decodeBooleanElement_szpzho$(this.descriptor,17),O|=131072;break;case 18:y=R.decodeIntElement_szpzho$(this.descriptor,18),O|=262144;break;case 19:b=R.decodeIntElement_szpzho$(this.descriptor,19),O|=524288;break;case 20:S=R.decodeIntElement_szpzho$(this.descriptor,20),O|=1048576;break;case 21:v=R.decodeLongElement_szpzho$(this.descriptor,21),O|=2097152;break;case 22:C=R.decodeLongElement_szpzho$(this.descriptor,22),O|=4194304;break;case 23:N=R.decodeLongElement_szpzho$(this.descriptor,23),O|=8388608;break;case 24:T=R.decodeIntElement_szpzho$(this.descriptor,24),O|=16777216;break;case 25:L=R.decodeLongElement_szpzho$(this.descriptor,25),O|=33554432;break;case 26:z=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,26,Wst(),z),O|=67108864;break;case 27:w=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,27,xit(),w),O|=134217728;break;case-1:break t;default:throw new Vt(e)}return R.endStructure_24f42q$(this.descriptor),int(O,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w,null)},tnt.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.IntSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.BooleanSerializer,Ht.BooleanSerializer,Ht.BooleanSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(Wst()),new Bt(xit())]},tnt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var ent=null;function nnt(){return null===ent&&new tnt,ent}function int(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w){var O=w||Object.create(Jet.prototype);return(O=Ptt(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,O)).language=0==(67108864&t)?null:L,O.block=0==(134217728&t)?null:z,O}function ont(){ant(),Ott.call(this),this.language=null}function rnt(){snt=this}Jet.$metadata$={kind:c,simpleName:"ContentEntryWithBlockAndLanguage",interfaces:[Ott]},rnt.prototype.serializer=function(){return unt()},rnt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var snt=null;function ant(){return null===snt&&new rnt,snt}function cnt(){this.descriptor_34i7c2$_0=new Wt("com.ustadmobile.lib.db.entities.ContentEntryWithLanguage",this,27),this.descriptor.addElement_ivxn3r$("contentEntryUid",!0),this.descriptor.addElement_ivxn3r$("title",!0),this.descriptor.addElement_ivxn3r$("description",!0),this.descriptor.addElement_ivxn3r$("entryId",!0),this.descriptor.addElement_ivxn3r$("author",!0),this.descriptor.addElement_ivxn3r$("publisher",!0),this.descriptor.addElement_ivxn3r$("licenseType",!0),this.descriptor.addElement_ivxn3r$("licenseName",!0),this.descriptor.addElement_ivxn3r$("licenseUrl",!0),this.descriptor.addElement_ivxn3r$("sourceUrl",!0),this.descriptor.addElement_ivxn3r$("thumbnailUrl",!0),this.descriptor.addElement_ivxn3r$("lastModified",!0),this.descriptor.addElement_ivxn3r$("primaryLanguageUid",!0),this.descriptor.addElement_ivxn3r$("languageVariantUid",!0),this.descriptor.addElement_ivxn3r$("contentFlags",!0),this.descriptor.addElement_ivxn3r$("leaf",!0),this.descriptor.addElement_ivxn3r$("publik",!0),this.descriptor.addElement_ivxn3r$("ceInactive",!0),this.descriptor.addElement_ivxn3r$("completionCriteria",!0),this.descriptor.addElement_ivxn3r$("minScore",!0),this.descriptor.addElement_ivxn3r$("contentTypeFlag",!0),this.descriptor.addElement_ivxn3r$("contentOwner",!0),this.descriptor.addElement_ivxn3r$("contentEntryLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("contentEntryMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("contentEntryLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("contentEntryLct",!0),this.descriptor.addElement_ivxn3r$("language",!0),lnt=this}Object.defineProperty(cnt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_34i7c2$_0}}),cnt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.contentEntryUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.contentEntryUid),O(e.title,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.title),O(e.description,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.description),O(e.entryId,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,3,Ht.StringSerializer,e.entryId),O(e.author,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,4,Ht.StringSerializer,e.author),O(e.publisher,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,5,Ht.StringSerializer,e.publisher),O(e.licenseType,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.licenseType),O(e.licenseName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,7,Ht.StringSerializer,e.licenseName),O(e.licenseUrl,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,8,Ht.StringSerializer,e.licenseUrl),O(e.sourceUrl,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,9,Ht.StringSerializer,e.sourceUrl),O(e.thumbnailUrl,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,10,Ht.StringSerializer,e.thumbnailUrl),O(e.lastModified,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeLongElement_j0o2mv$(this.descriptor,11,e.lastModified),O(e.primaryLanguageUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeLongElement_j0o2mv$(this.descriptor,12,e.primaryLanguageUid),O(e.languageVariantUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeLongElement_j0o2mv$(this.descriptor,13,e.languageVariantUid),O(e.contentFlags,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeIntElement_ptg7oe$(this.descriptor,14,e.contentFlags),O(e.leaf,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeBooleanElement_qh7jdn$(this.descriptor,15,e.leaf),O(e.publik,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,16)||n.encodeBooleanElement_qh7jdn$(this.descriptor,16,e.publik),O(e.ceInactive,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,17)||n.encodeBooleanElement_qh7jdn$(this.descriptor,17,e.ceInactive),O(e.completionCriteria,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,18)||n.encodeIntElement_ptg7oe$(this.descriptor,18,e.completionCriteria),O(e.minScore,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,19)||n.encodeIntElement_ptg7oe$(this.descriptor,19,e.minScore),O(e.contentTypeFlag,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,20)||n.encodeIntElement_ptg7oe$(this.descriptor,20,e.contentTypeFlag),O(e.contentOwner,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,21)||n.encodeLongElement_j0o2mv$(this.descriptor,21,e.contentOwner),O(e.contentEntryLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,22)||n.encodeLongElement_j0o2mv$(this.descriptor,22,e.contentEntryLocalChangeSeqNum),O(e.contentEntryMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,23)||n.encodeLongElement_j0o2mv$(this.descriptor,23,e.contentEntryMasterChangeSeqNum),O(e.contentEntryLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,24)||n.encodeIntElement_ptg7oe$(this.descriptor,24,e.contentEntryLastChangedBy),O(e.contentEntryLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,25)||n.encodeLongElement_j0o2mv$(this.descriptor,25,e.contentEntryLct),O(e.language,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,26)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,26,Wst(),e.language),n.endStructure_24f42q$(this.descriptor)},cnt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w=0,O=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=O.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=O.decodeLongElement_szpzho$(this.descriptor,0),w|=1;break;case 1:i=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),w|=2;break;case 2:o=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),w|=4;break;case 3:r=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,3,Ht.StringSerializer,r),w|=8;break;case 4:s=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,4,Ht.StringSerializer,s),w|=16;break;case 5:a=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,5,Ht.StringSerializer,a),w|=32;break;case 6:c=O.decodeIntElement_szpzho$(this.descriptor,6),w|=64;break;case 7:l=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,7,Ht.StringSerializer,l),w|=128;break;case 8:u=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,8,Ht.StringSerializer,u),w|=256;break;case 9:h=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,9,Ht.StringSerializer,h),w|=512;break;case 10:d=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,10,Ht.StringSerializer,d),w|=1024;break;case 11:p=O.decodeLongElement_szpzho$(this.descriptor,11),w|=2048;break;case 12:_=O.decodeLongElement_szpzho$(this.descriptor,12),w|=4096;break;case 13:m=O.decodeLongElement_szpzho$(this.descriptor,13),w|=8192;break;case 14:f=O.decodeIntElement_szpzho$(this.descriptor,14),w|=16384;break;case 15:g=O.decodeBooleanElement_szpzho$(this.descriptor,15),w|=32768;break;case 16:$=O.decodeBooleanElement_szpzho$(this.descriptor,16),w|=65536;break;case 17:E=O.decodeBooleanElement_szpzho$(this.descriptor,17),w|=131072;break;case 18:y=O.decodeIntElement_szpzho$(this.descriptor,18),w|=262144;break;case 19:b=O.decodeIntElement_szpzho$(this.descriptor,19),w|=524288;break;case 20:S=O.decodeIntElement_szpzho$(this.descriptor,20),w|=1048576;break;case 21:v=O.decodeLongElement_szpzho$(this.descriptor,21),w|=2097152;break;case 22:C=O.decodeLongElement_szpzho$(this.descriptor,22),w|=4194304;break;case 23:N=O.decodeLongElement_szpzho$(this.descriptor,23),w|=8388608;break;case 24:T=O.decodeIntElement_szpzho$(this.descriptor,24),w|=16777216;break;case 25:L=O.decodeLongElement_szpzho$(this.descriptor,25),w|=33554432;break;case 26:z=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,26,Wst(),z),w|=67108864;break;case-1:break t;default:throw new Vt(e)}return O.endStructure_24f42q$(this.descriptor),hnt(w,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,null)},cnt.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.IntSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.BooleanSerializer,Ht.BooleanSerializer,Ht.BooleanSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(Wst())]},cnt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var lnt=null;function unt(){return null===lnt&&new cnt,lnt}function hnt(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z){var w=z||Object.create(ont.prototype);return(w=Ptt(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,w)).language=0==(67108864&t)?null:L,w}function dnt(){mnt(),Ott.call(this),this.container=null}function pnt(){_nt=this}ont.$metadata$={kind:c,simpleName:"ContentEntryWithLanguage",interfaces:[Ott]},pnt.prototype.serializer=function(){return $nt()},pnt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var _nt=null;function mnt(){return null===_nt&&new pnt,_nt}function fnt(){this.descriptor_cgdvy5$_0=new Wt("com.ustadmobile.lib.db.entities.ContentEntryWithMostRecentContainer",this,27),this.descriptor.addElement_ivxn3r$("contentEntryUid",!0),this.descriptor.addElement_ivxn3r$("title",!0),this.descriptor.addElement_ivxn3r$("description",!0),this.descriptor.addElement_ivxn3r$("entryId",!0),this.descriptor.addElement_ivxn3r$("author",!0),this.descriptor.addElement_ivxn3r$("publisher",!0),this.descriptor.addElement_ivxn3r$("licenseType",!0),this.descriptor.addElement_ivxn3r$("licenseName",!0),this.descriptor.addElement_ivxn3r$("licenseUrl",!0),this.descriptor.addElement_ivxn3r$("sourceUrl",!0),this.descriptor.addElement_ivxn3r$("thumbnailUrl",!0),this.descriptor.addElement_ivxn3r$("lastModified",!0),this.descriptor.addElement_ivxn3r$("primaryLanguageUid",!0),this.descriptor.addElement_ivxn3r$("languageVariantUid",!0),this.descriptor.addElement_ivxn3r$("contentFlags",!0),this.descriptor.addElement_ivxn3r$("leaf",!0),this.descriptor.addElement_ivxn3r$("publik",!0),this.descriptor.addElement_ivxn3r$("ceInactive",!0),this.descriptor.addElement_ivxn3r$("completionCriteria",!0),this.descriptor.addElement_ivxn3r$("minScore",!0),this.descriptor.addElement_ivxn3r$("contentTypeFlag",!0),this.descriptor.addElement_ivxn3r$("contentOwner",!0),this.descriptor.addElement_ivxn3r$("contentEntryLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("contentEntryMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("contentEntryLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("contentEntryLct",!0),this.descriptor.addElement_ivxn3r$("container",!0),gnt=this}Object.defineProperty(fnt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_cgdvy5$_0}}),fnt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.contentEntryUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.contentEntryUid),O(e.title,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.title),O(e.description,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.description),O(e.entryId,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,3,Ht.StringSerializer,e.entryId),O(e.author,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,4,Ht.StringSerializer,e.author),O(e.publisher,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,5,Ht.StringSerializer,e.publisher),O(e.licenseType,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.licenseType),O(e.licenseName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,7,Ht.StringSerializer,e.licenseName),O(e.licenseUrl,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,8,Ht.StringSerializer,e.licenseUrl),O(e.sourceUrl,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,9,Ht.StringSerializer,e.sourceUrl),O(e.thumbnailUrl,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,10,Ht.StringSerializer,e.thumbnailUrl),O(e.lastModified,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeLongElement_j0o2mv$(this.descriptor,11,e.lastModified),O(e.primaryLanguageUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeLongElement_j0o2mv$(this.descriptor,12,e.primaryLanguageUid),O(e.languageVariantUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeLongElement_j0o2mv$(this.descriptor,13,e.languageVariantUid),O(e.contentFlags,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeIntElement_ptg7oe$(this.descriptor,14,e.contentFlags),O(e.leaf,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeBooleanElement_qh7jdn$(this.descriptor,15,e.leaf),O(e.publik,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,16)||n.encodeBooleanElement_qh7jdn$(this.descriptor,16,e.publik),O(e.ceInactive,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,17)||n.encodeBooleanElement_qh7jdn$(this.descriptor,17,e.ceInactive),O(e.completionCriteria,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,18)||n.encodeIntElement_ptg7oe$(this.descriptor,18,e.completionCriteria),O(e.minScore,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,19)||n.encodeIntElement_ptg7oe$(this.descriptor,19,e.minScore),O(e.contentTypeFlag,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,20)||n.encodeIntElement_ptg7oe$(this.descriptor,20,e.contentTypeFlag),O(e.contentOwner,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,21)||n.encodeLongElement_j0o2mv$(this.descriptor,21,e.contentOwner),O(e.contentEntryLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,22)||n.encodeLongElement_j0o2mv$(this.descriptor,22,e.contentEntryLocalChangeSeqNum),O(e.contentEntryMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,23)||n.encodeLongElement_j0o2mv$(this.descriptor,23,e.contentEntryMasterChangeSeqNum),O(e.contentEntryLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,24)||n.encodeIntElement_ptg7oe$(this.descriptor,24,e.contentEntryLastChangedBy),O(e.contentEntryLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,25)||n.encodeLongElement_j0o2mv$(this.descriptor,25,e.contentEntryLct),O(e.container,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,26)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,26,n7(),e.container),n.endStructure_24f42q$(this.descriptor)},fnt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w=0,O=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=O.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=O.decodeLongElement_szpzho$(this.descriptor,0),w|=1;break;case 1:i=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),w|=2;break;case 2:o=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),w|=4;break;case 3:r=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,3,Ht.StringSerializer,r),w|=8;break;case 4:s=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,4,Ht.StringSerializer,s),w|=16;break;case 5:a=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,5,Ht.StringSerializer,a),w|=32;break;case 6:c=O.decodeIntElement_szpzho$(this.descriptor,6),w|=64;break;case 7:l=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,7,Ht.StringSerializer,l),w|=128;break;case 8:u=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,8,Ht.StringSerializer,u),w|=256;break;case 9:h=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,9,Ht.StringSerializer,h),w|=512;break;case 10:d=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,10,Ht.StringSerializer,d),w|=1024;break;case 11:p=O.decodeLongElement_szpzho$(this.descriptor,11),w|=2048;break;case 12:_=O.decodeLongElement_szpzho$(this.descriptor,12),w|=4096;break;case 13:m=O.decodeLongElement_szpzho$(this.descriptor,13),w|=8192;break;case 14:f=O.decodeIntElement_szpzho$(this.descriptor,14),w|=16384;break;case 15:g=O.decodeBooleanElement_szpzho$(this.descriptor,15),w|=32768;break;case 16:$=O.decodeBooleanElement_szpzho$(this.descriptor,16),w|=65536;break;case 17:E=O.decodeBooleanElement_szpzho$(this.descriptor,17),w|=131072;break;case 18:y=O.decodeIntElement_szpzho$(this.descriptor,18),w|=262144;break;case 19:b=O.decodeIntElement_szpzho$(this.descriptor,19),w|=524288;break;case 20:S=O.decodeIntElement_szpzho$(this.descriptor,20),w|=1048576;break;case 21:v=O.decodeLongElement_szpzho$(this.descriptor,21),w|=2097152;break;case 22:C=O.decodeLongElement_szpzho$(this.descriptor,22),w|=4194304;break;case 23:N=O.decodeLongElement_szpzho$(this.descriptor,23),w|=8388608;break;case 24:T=O.decodeIntElement_szpzho$(this.descriptor,24),w|=16777216;break;case 25:L=O.decodeLongElement_szpzho$(this.descriptor,25),w|=33554432;break;case 26:z=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,26,n7(),z),w|=67108864;break;case-1:break t;default:throw new Vt(e)}return O.endStructure_24f42q$(this.descriptor),Ent(w,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,null)},fnt.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.IntSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.BooleanSerializer,Ht.BooleanSerializer,Ht.BooleanSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(n7())]},fnt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var gnt=null;function $nt(){return null===gnt&&new fnt,gnt}function Ent(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z){var w=z||Object.create(dnt.prototype);return(w=Ptt(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,w)).container=0==(67108864&t)?null:L,w}function ynt(){vnt(),Ott.call(this),this.mostRecentContainer=null,this.contentEntryParentChildJoin=null}function bnt(){Snt=this}dnt.$metadata$={kind:c,simpleName:"ContentEntryWithMostRecentContainer",interfaces:[Ott]},bnt.prototype.serializer=function(){return Tnt()},bnt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Snt=null;function vnt(){return null===Snt&&new bnt,Snt}function Cnt(){this.descriptor_gin57c$_0=new Wt("com.ustadmobile.lib.db.entities.ContentEntryWithParentChildJoinAndMostRecentContainer",this,28),this.descriptor.addElement_ivxn3r$("contentEntryUid",!0),this.descriptor.addElement_ivxn3r$("title",!0),this.descriptor.addElement_ivxn3r$("description",!0),this.descriptor.addElement_ivxn3r$("entryId",!0),this.descriptor.addElement_ivxn3r$("author",!0),this.descriptor.addElement_ivxn3r$("publisher",!0),this.descriptor.addElement_ivxn3r$("licenseType",!0),this.descriptor.addElement_ivxn3r$("licenseName",!0),this.descriptor.addElement_ivxn3r$("licenseUrl",!0),this.descriptor.addElement_ivxn3r$("sourceUrl",!0),this.descriptor.addElement_ivxn3r$("thumbnailUrl",!0),this.descriptor.addElement_ivxn3r$("lastModified",!0),this.descriptor.addElement_ivxn3r$("primaryLanguageUid",!0),this.descriptor.addElement_ivxn3r$("languageVariantUid",!0),this.descriptor.addElement_ivxn3r$("contentFlags",!0),this.descriptor.addElement_ivxn3r$("leaf",!0),this.descriptor.addElement_ivxn3r$("publik",!0),this.descriptor.addElement_ivxn3r$("ceInactive",!0),this.descriptor.addElement_ivxn3r$("completionCriteria",!0),this.descriptor.addElement_ivxn3r$("minScore",!0),this.descriptor.addElement_ivxn3r$("contentTypeFlag",!0),this.descriptor.addElement_ivxn3r$("contentOwner",!0),this.descriptor.addElement_ivxn3r$("contentEntryLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("contentEntryMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("contentEntryLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("contentEntryLct",!0),this.descriptor.addElement_ivxn3r$("mostRecentContainer",!0),this.descriptor.addElement_ivxn3r$("contentEntryParentChildJoin",!0),Nnt=this}Object.defineProperty(Cnt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_gin57c$_0}}),Cnt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.contentEntryUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.contentEntryUid),O(e.title,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.title),O(e.description,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.description),O(e.entryId,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,3,Ht.StringSerializer,e.entryId),O(e.author,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,4,Ht.StringSerializer,e.author),O(e.publisher,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,5,Ht.StringSerializer,e.publisher),O(e.licenseType,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.licenseType),O(e.licenseName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,7,Ht.StringSerializer,e.licenseName),O(e.licenseUrl,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,8,Ht.StringSerializer,e.licenseUrl),O(e.sourceUrl,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,9,Ht.StringSerializer,e.sourceUrl),O(e.thumbnailUrl,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,10,Ht.StringSerializer,e.thumbnailUrl),O(e.lastModified,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeLongElement_j0o2mv$(this.descriptor,11,e.lastModified),O(e.primaryLanguageUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeLongElement_j0o2mv$(this.descriptor,12,e.primaryLanguageUid),O(e.languageVariantUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeLongElement_j0o2mv$(this.descriptor,13,e.languageVariantUid),O(e.contentFlags,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeIntElement_ptg7oe$(this.descriptor,14,e.contentFlags),O(e.leaf,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeBooleanElement_qh7jdn$(this.descriptor,15,e.leaf),O(e.publik,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,16)||n.encodeBooleanElement_qh7jdn$(this.descriptor,16,e.publik),O(e.ceInactive,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,17)||n.encodeBooleanElement_qh7jdn$(this.descriptor,17,e.ceInactive),O(e.completionCriteria,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,18)||n.encodeIntElement_ptg7oe$(this.descriptor,18,e.completionCriteria),O(e.minScore,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,19)||n.encodeIntElement_ptg7oe$(this.descriptor,19,e.minScore),O(e.contentTypeFlag,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,20)||n.encodeIntElement_ptg7oe$(this.descriptor,20,e.contentTypeFlag),O(e.contentOwner,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,21)||n.encodeLongElement_j0o2mv$(this.descriptor,21,e.contentOwner),O(e.contentEntryLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,22)||n.encodeLongElement_j0o2mv$(this.descriptor,22,e.contentEntryLocalChangeSeqNum),O(e.contentEntryMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,23)||n.encodeLongElement_j0o2mv$(this.descriptor,23,e.contentEntryMasterChangeSeqNum),O(e.contentEntryLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,24)||n.encodeIntElement_ptg7oe$(this.descriptor,24,e.contentEntryLastChangedBy),O(e.contentEntryLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,25)||n.encodeLongElement_j0o2mv$(this.descriptor,25,e.contentEntryLct),O(e.mostRecentContainer,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,26)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,26,n7(),e.mostRecentContainer),O(e.contentEntryParentChildJoin,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,27)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,27,aet(),e.contentEntryParentChildJoin),n.endStructure_24f42q$(this.descriptor)},Cnt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w,O=0,R=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=R.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=R.decodeLongElement_szpzho$(this.descriptor,0),O|=1;break;case 1:i=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),O|=2;break;case 2:o=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),O|=4;break;case 3:r=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,3,Ht.StringSerializer,r),O|=8;break;case 4:s=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,4,Ht.StringSerializer,s),O|=16;break;case 5:a=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,5,Ht.StringSerializer,a),O|=32;break;case 6:c=R.decodeIntElement_szpzho$(this.descriptor,6),O|=64;break;case 7:l=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,7,Ht.StringSerializer,l),O|=128;break;case 8:u=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,8,Ht.StringSerializer,u),O|=256;break;case 9:h=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,9,Ht.StringSerializer,h),O|=512;break;case 10:d=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,10,Ht.StringSerializer,d),O|=1024;break;case 11:p=R.decodeLongElement_szpzho$(this.descriptor,11),O|=2048;break;case 12:_=R.decodeLongElement_szpzho$(this.descriptor,12),O|=4096;break;case 13:m=R.decodeLongElement_szpzho$(this.descriptor,13),O|=8192;break;case 14:f=R.decodeIntElement_szpzho$(this.descriptor,14),O|=16384;break;case 15:g=R.decodeBooleanElement_szpzho$(this.descriptor,15),O|=32768;break;case 16:$=R.decodeBooleanElement_szpzho$(this.descriptor,16),O|=65536;break;case 17:E=R.decodeBooleanElement_szpzho$(this.descriptor,17),O|=131072;break;case 18:y=R.decodeIntElement_szpzho$(this.descriptor,18),O|=262144;break;case 19:b=R.decodeIntElement_szpzho$(this.descriptor,19),O|=524288;break;case 20:S=R.decodeIntElement_szpzho$(this.descriptor,20),O|=1048576;break;case 21:v=R.decodeLongElement_szpzho$(this.descriptor,21),O|=2097152;break;case 22:C=R.decodeLongElement_szpzho$(this.descriptor,22),O|=4194304;break;case 23:N=R.decodeLongElement_szpzho$(this.descriptor,23),O|=8388608;break;case 24:T=R.decodeIntElement_szpzho$(this.descriptor,24),O|=16777216;break;case 25:L=R.decodeLongElement_szpzho$(this.descriptor,25),O|=33554432;break;case 26:z=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,26,n7(),z),O|=67108864;break;case 27:w=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,27,aet(),w),O|=134217728;break;case-1:break t;default:throw new Vt(e)}return R.endStructure_24f42q$(this.descriptor),Lnt(O,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w,null)},Cnt.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.IntSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.BooleanSerializer,Ht.BooleanSerializer,Ht.BooleanSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(n7()),new Bt(aet())]},Cnt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Nnt=null;function Tnt(){return null===Nnt&&new Cnt,Nnt}function Lnt(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w){var O=w||Object.create(ynt.prototype);return(O=Ptt(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,O)).mostRecentContainer=0==(67108864&t)?null:L,O.contentEntryParentChildJoin=0==(134217728&t)?null:z,O}function znt(){Rnt(),Ott.call(this),this.mostRecentContainer=null,this.contentEntryParentChildJoin=null,this.scoreProgress=null,this.assignmentContentWeight=0}function wnt(){Ont=this}ynt.$metadata$={kind:c,simpleName:"ContentEntryWithParentChildJoinAndMostRecentContainer",interfaces:[Ott]},znt.prototype.equals=function(t){return this===t||!!e.isType(t,znt)&&!!Ott.prototype.equals.call(this,t)&&!!O(this.mostRecentContainer,t.mostRecentContainer)&&!!O(this.contentEntryParentChildJoin,t.contentEntryParentChildJoin)&&!!O(this.scoreProgress,t.scoreProgress)&&this.assignmentContentWeight===t.assignmentContentWeight},znt.prototype.hashCode=function(){var t,e,n,i,o,r,s=Ott.prototype.hashCode.call(this);return s=(31*(s=(31*(s=(31*(s=(31*s|0)+(null!=(e=null!=(t=this.mostRecentContainer)?t.hashCode():null)?e:0)|0)|0)+(null!=(i=null!=(n=this.contentEntryParentChildJoin)?n.hashCode():null)?i:0)|0)|0)+(null!=(r=null!=(o=this.scoreProgress)?o.hashCode():null)?r:0)|0)|0)+Yt(this.assignmentContentWeight)|0},wnt.prototype.serializer=function(){return Int()},wnt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Ont=null;function Rnt(){return null===Ont&&new wnt,Ont}function Ant(){this.descriptor_b6spul$_0=new Wt("com.ustadmobile.lib.db.entities.ContentEntryWithParentChildJoinAndStatusAndMostRecentContainer",this,30),this.descriptor.addElement_ivxn3r$("contentEntryUid",!0),this.descriptor.addElement_ivxn3r$("title",!0),this.descriptor.addElement_ivxn3r$("description",!0),this.descriptor.addElement_ivxn3r$("entryId",!0),this.descriptor.addElement_ivxn3r$("author",!0),this.descriptor.addElement_ivxn3r$("publisher",!0),this.descriptor.addElement_ivxn3r$("licenseType",!0),this.descriptor.addElement_ivxn3r$("licenseName",!0),this.descriptor.addElement_ivxn3r$("licenseUrl",!0),this.descriptor.addElement_ivxn3r$("sourceUrl",!0),this.descriptor.addElement_ivxn3r$("thumbnailUrl",!0),this.descriptor.addElement_ivxn3r$("lastModified",!0),this.descriptor.addElement_ivxn3r$("primaryLanguageUid",!0),this.descriptor.addElement_ivxn3r$("languageVariantUid",!0),this.descriptor.addElement_ivxn3r$("contentFlags",!0),this.descriptor.addElement_ivxn3r$("leaf",!0),this.descriptor.addElement_ivxn3r$("publik",!0),this.descriptor.addElement_ivxn3r$("ceInactive",!0),this.descriptor.addElement_ivxn3r$("completionCriteria",!0),this.descriptor.addElement_ivxn3r$("minScore",!0),this.descriptor.addElement_ivxn3r$("contentTypeFlag",!0),this.descriptor.addElement_ivxn3r$("contentOwner",!0),this.descriptor.addElement_ivxn3r$("contentEntryLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("contentEntryMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("contentEntryLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("contentEntryLct",!0),this.descriptor.addElement_ivxn3r$("mostRecentContainer",!0),this.descriptor.addElement_ivxn3r$("contentEntryParentChildJoin",!0),this.descriptor.addElement_ivxn3r$("scoreProgress",!0),this.descriptor.addElement_ivxn3r$("assignmentContentWeight",!0),xnt=this}Object.defineProperty(Ant.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_b6spul$_0}}),Ant.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.contentEntryUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.contentEntryUid),O(e.title,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.title),O(e.description,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.description),O(e.entryId,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,3,Ht.StringSerializer,e.entryId),O(e.author,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,4,Ht.StringSerializer,e.author),O(e.publisher,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,5,Ht.StringSerializer,e.publisher),O(e.licenseType,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.licenseType),O(e.licenseName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,7,Ht.StringSerializer,e.licenseName),O(e.licenseUrl,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,8,Ht.StringSerializer,e.licenseUrl),O(e.sourceUrl,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,9,Ht.StringSerializer,e.sourceUrl),O(e.thumbnailUrl,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,10,Ht.StringSerializer,e.thumbnailUrl),O(e.lastModified,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeLongElement_j0o2mv$(this.descriptor,11,e.lastModified),O(e.primaryLanguageUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeLongElement_j0o2mv$(this.descriptor,12,e.primaryLanguageUid),O(e.languageVariantUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeLongElement_j0o2mv$(this.descriptor,13,e.languageVariantUid),O(e.contentFlags,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeIntElement_ptg7oe$(this.descriptor,14,e.contentFlags),O(e.leaf,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeBooleanElement_qh7jdn$(this.descriptor,15,e.leaf),O(e.publik,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,16)||n.encodeBooleanElement_qh7jdn$(this.descriptor,16,e.publik),O(e.ceInactive,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,17)||n.encodeBooleanElement_qh7jdn$(this.descriptor,17,e.ceInactive),O(e.completionCriteria,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,18)||n.encodeIntElement_ptg7oe$(this.descriptor,18,e.completionCriteria),O(e.minScore,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,19)||n.encodeIntElement_ptg7oe$(this.descriptor,19,e.minScore),O(e.contentTypeFlag,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,20)||n.encodeIntElement_ptg7oe$(this.descriptor,20,e.contentTypeFlag),O(e.contentOwner,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,21)||n.encodeLongElement_j0o2mv$(this.descriptor,21,e.contentOwner),O(e.contentEntryLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,22)||n.encodeLongElement_j0o2mv$(this.descriptor,22,e.contentEntryLocalChangeSeqNum),O(e.contentEntryMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,23)||n.encodeLongElement_j0o2mv$(this.descriptor,23,e.contentEntryMasterChangeSeqNum),O(e.contentEntryLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,24)||n.encodeIntElement_ptg7oe$(this.descriptor,24,e.contentEntryLastChangedBy),O(e.contentEntryLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,25)||n.encodeLongElement_j0o2mv$(this.descriptor,25,e.contentEntryLct),O(e.mostRecentContainer,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,26)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,26,n7(),e.mostRecentContainer),O(e.contentEntryParentChildJoin,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,27)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,27,aet(),e.contentEntryParentChildJoin),O(e.scoreProgress,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,28)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,28,Ket(),e.scoreProgress),O(e.assignmentContentWeight,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,29)||n.encodeIntElement_ptg7oe$(this.descriptor,29,e.assignmentContentWeight),n.endStructure_24f42q$(this.descriptor)},Ant.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w,O,R,A=0,x=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=x.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=x.decodeLongElement_szpzho$(this.descriptor,0),A|=1;break;case 1:i=x.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),A|=2;break;case 2:o=x.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),A|=4;break;case 3:r=x.decodeNullableSerializableElement_8viuyw$(this.descriptor,3,Ht.StringSerializer,r),A|=8;break;case 4:s=x.decodeNullableSerializableElement_8viuyw$(this.descriptor,4,Ht.StringSerializer,s),A|=16;break;case 5:a=x.decodeNullableSerializableElement_8viuyw$(this.descriptor,5,Ht.StringSerializer,a),A|=32;break;case 6:c=x.decodeIntElement_szpzho$(this.descriptor,6),A|=64;break;case 7:l=x.decodeNullableSerializableElement_8viuyw$(this.descriptor,7,Ht.StringSerializer,l),A|=128;break;case 8:u=x.decodeNullableSerializableElement_8viuyw$(this.descriptor,8,Ht.StringSerializer,u),A|=256;break;case 9:h=x.decodeNullableSerializableElement_8viuyw$(this.descriptor,9,Ht.StringSerializer,h),A|=512;break;case 10:d=x.decodeNullableSerializableElement_8viuyw$(this.descriptor,10,Ht.StringSerializer,d),A|=1024;break;case 11:p=x.decodeLongElement_szpzho$(this.descriptor,11),A|=2048;break;case 12:_=x.decodeLongElement_szpzho$(this.descriptor,12),A|=4096;break;case 13:m=x.decodeLongElement_szpzho$(this.descriptor,13),A|=8192;break;case 14:f=x.decodeIntElement_szpzho$(this.descriptor,14),A|=16384;break;case 15:g=x.decodeBooleanElement_szpzho$(this.descriptor,15),A|=32768;break;case 16:$=x.decodeBooleanElement_szpzho$(this.descriptor,16),A|=65536;break;case 17:E=x.decodeBooleanElement_szpzho$(this.descriptor,17),A|=131072;break;case 18:y=x.decodeIntElement_szpzho$(this.descriptor,18),A|=262144;break;case 19:b=x.decodeIntElement_szpzho$(this.descriptor,19),A|=524288;break;case 20:S=x.decodeIntElement_szpzho$(this.descriptor,20),A|=1048576;break;case 21:v=x.decodeLongElement_szpzho$(this.descriptor,21),A|=2097152;break;case 22:C=x.decodeLongElement_szpzho$(this.descriptor,22),A|=4194304;break;case 23:N=x.decodeLongElement_szpzho$(this.descriptor,23),A|=8388608;break;case 24:T=x.decodeIntElement_szpzho$(this.descriptor,24),A|=16777216;break;case 25:L=x.decodeLongElement_szpzho$(this.descriptor,25),A|=33554432;break;case 26:z=x.decodeNullableSerializableElement_8viuyw$(this.descriptor,26,n7(),z),A|=67108864;break;case 27:w=x.decodeNullableSerializableElement_8viuyw$(this.descriptor,27,aet(),w),A|=134217728;break;case 28:O=x.decodeNullableSerializableElement_8viuyw$(this.descriptor,28,Ket(),O),A|=268435456;break;case 29:R=x.decodeIntElement_szpzho$(this.descriptor,29),A|=536870912;break;case-1:break t;default:throw new Vt(e)}return x.endStructure_24f42q$(this.descriptor),Unt(A,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w,O,R,null)},Ant.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.IntSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.BooleanSerializer,Ht.BooleanSerializer,Ht.BooleanSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(n7()),new Bt(aet()),new Bt(Ket()),Ht.IntSerializer]},Ant.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var xnt=null;function Int(){return null===xnt&&new Ant,xnt}function Unt(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w,O,R){var A=R||Object.create(znt.prototype);return(A=Ptt(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,A)).mostRecentContainer=0==(67108864&t)?null:L,A.contentEntryParentChildJoin=0==(134217728&t)?null:z,A.scoreProgress=0==(268435456&t)?null:w,A.assignmentContentWeight=0==(536870912&t)?0:O,A}function Dnt(t,e,n,i,o,r,s){void 0===t&&(t=X),void 0===e&&(e=null),void 0===n&&(n=X),void 0===i&&(i=X),void 0===o&&(o=null),void 0===r&&(r=!1),void 0===s&&(s=null),this.cjUid=t,this.toUri=e,this.cjProgress=n,this.cjTotal=i,this.cjNotificationTitle=o,this.cjIsMeteredAllowed=r,this.params=s}function Pnt(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S){void 0===t&&(t=X),void 0===e&&(e=X),void 0===n&&(n=null),void 0===i&&(i=!0),void 0===o&&(o=X),void 0===r&&(r=X),void 0===s&&(s=X),void 0===a&&(a=X),void 0===c&&(c=X),void 0===l&&(l=X),void 0===u&&(u=X),void 0===h&&(h=4),void 0===d&&(d=4),void 0===p&&(p=!1),void 0===_&&(_=0),void 0===m&&(m=0),void 0===f&&(f=X),void 0===g&&(g=X),void 0===$&&($=X),void 0===E&&(E=X),void 0===y&&(y=null),void 0===b&&(b=!1),void 0===S&&(S=!1),this.cjiUid=t,this.cjiJobUid=e,this.sourceUri=n,this.cjiIsLeaf=i,this.cjiContentEntryUid=o,this.cjiParentContentEntryUid=r,this.cjiContainerUid=s,this.cjiItemProgress=a,this.cjiItemTotal=c,this.cjiRecursiveProgress=l,this.cjiRecursiveTotal=u,this.cjiStatus=h,this.cjiRecursiveStatus=d,this.cjiConnectivityNeeded=p,this.cjiPluginId=_,this.cjiAttemptCount=m,this.cjiParentCjiUid=f,this.cjiServerJobId=g,this.cjiStartTime=$,this.cjiFinishTime=E,this.cjiUploadSessionUid=y,this.cjiContentDeletedOnCancellation=b,this.cjiContainerProcessed=S}function Mnt(){this.contentJobItem=null,this.contentJob=null}function knt(){this.progress=0,this.total=0,this.progressTitle=null,this.cjiUid=X}function jnt(t,e,n){void 0===t&&(t=0),void 0===e&&(e=X),void 0===n&&(n=X),this.status=t,this.progress=e,this.total=n}function Gnt(){Bnt(),this.contextXObjectStatementJoinUid=X,this.contextActivityFlag=0,this.contextStatementUid=X,this.contextXObjectUid=X,this.verbMasterChangeSeqNum=X,this.verbLocalChangeSeqNum=X,this.verbLastChangedBy=0,this.contextXObjectLct=X}function qnt(){Fnt=this,this.TABLE_ID=66}znt.$metadata$={kind:c,simpleName:"ContentEntryWithParentChildJoinAndStatusAndMostRecentContainer",interfaces:[Ott]},Dnt.$metadata$={kind:c,simpleName:"ContentJob",interfaces:[]},Dnt.prototype.component1=function(){return this.cjUid},Dnt.prototype.component2=function(){return this.toUri},Dnt.prototype.component3=function(){return this.cjProgress},Dnt.prototype.component4=function(){return this.cjTotal},Dnt.prototype.component5=function(){return this.cjNotificationTitle},Dnt.prototype.component6=function(){return this.cjIsMeteredAllowed},Dnt.prototype.component7=function(){return this.params},Dnt.prototype.copy_sfjiz9$=function(t,e,n,i,o,r,s){return new Dnt(void 0===t?this.cjUid:t,void 0===e?this.toUri:e,void 0===n?this.cjProgress:n,void 0===i?this.cjTotal:i,void 0===o?this.cjNotificationTitle:o,void 0===r?this.cjIsMeteredAllowed:r,void 0===s?this.params:s)},Dnt.prototype.toString=function(){return"ContentJob(cjUid="+e.toString(this.cjUid)+", toUri="+e.toString(this.toUri)+", cjProgress="+e.toString(this.cjProgress)+", cjTotal="+e.toString(this.cjTotal)+", cjNotificationTitle="+e.toString(this.cjNotificationTitle)+", cjIsMeteredAllowed="+e.toString(this.cjIsMeteredAllowed)+", params="+e.toString(this.params)+")"},Dnt.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*(t=31*(t=31*(t=31*(t=31*t+e.hashCode(this.cjUid)|0)+e.hashCode(this.toUri)|0)+e.hashCode(this.cjProgress)|0)+e.hashCode(this.cjTotal)|0)+e.hashCode(this.cjNotificationTitle)|0)+e.hashCode(this.cjIsMeteredAllowed)|0)+e.hashCode(this.params)|0},Dnt.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.cjUid,t.cjUid)&&e.equals(this.toUri,t.toUri)&&e.equals(this.cjProgress,t.cjProgress)&&e.equals(this.cjTotal,t.cjTotal)&&e.equals(this.cjNotificationTitle,t.cjNotificationTitle)&&e.equals(this.cjIsMeteredAllowed,t.cjIsMeteredAllowed)&&e.equals(this.params,t.params)},Pnt.$metadata$={kind:c,simpleName:"ContentJobItem",interfaces:[]},Pnt.prototype.component1=function(){return this.cjiUid},Pnt.prototype.component2=function(){return this.cjiJobUid},Pnt.prototype.component3=function(){return this.sourceUri},Pnt.prototype.component4=function(){return this.cjiIsLeaf},Pnt.prototype.component5=function(){return this.cjiContentEntryUid},Pnt.prototype.component6=function(){return this.cjiParentContentEntryUid},Pnt.prototype.component7=function(){return this.cjiContainerUid},Pnt.prototype.component8=function(){return this.cjiItemProgress},Pnt.prototype.component9=function(){return this.cjiItemTotal},Pnt.prototype.component10=function(){return this.cjiRecursiveProgress},Pnt.prototype.component11=function(){return this.cjiRecursiveTotal},Pnt.prototype.component12=function(){return this.cjiStatus},Pnt.prototype.component13=function(){return this.cjiRecursiveStatus},Pnt.prototype.component14=function(){return this.cjiConnectivityNeeded},Pnt.prototype.component15=function(){return this.cjiPluginId},Pnt.prototype.component16=function(){return this.cjiAttemptCount},Pnt.prototype.component17=function(){return this.cjiParentCjiUid},Pnt.prototype.component18=function(){return this.cjiServerJobId},Pnt.prototype.component19=function(){return this.cjiStartTime},Pnt.prototype.component20=function(){return this.cjiFinishTime},Pnt.prototype.component21=function(){return this.cjiUploadSessionUid},Pnt.prototype.component22=function(){return this.cjiContentDeletedOnCancellation},Pnt.prototype.component23=function(){return this.cjiContainerProcessed},Pnt.prototype.copy_33jkg3$=function(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S){return new Pnt(void 0===t?this.cjiUid:t,void 0===e?this.cjiJobUid:e,void 0===n?this.sourceUri:n,void 0===i?this.cjiIsLeaf:i,void 0===o?this.cjiContentEntryUid:o,void 0===r?this.cjiParentContentEntryUid:r,void 0===s?this.cjiContainerUid:s,void 0===a?this.cjiItemProgress:a,void 0===c?this.cjiItemTotal:c,void 0===l?this.cjiRecursiveProgress:l,void 0===u?this.cjiRecursiveTotal:u,void 0===h?this.cjiStatus:h,void 0===d?this.cjiRecursiveStatus:d,void 0===p?this.cjiConnectivityNeeded:p,void 0===_?this.cjiPluginId:_,void 0===m?this.cjiAttemptCount:m,void 0===f?this.cjiParentCjiUid:f,void 0===g?this.cjiServerJobId:g,void 0===$?this.cjiStartTime:$,void 0===E?this.cjiFinishTime:E,void 0===y?this.cjiUploadSessionUid:y,void 0===b?this.cjiContentDeletedOnCancellation:b,void 0===S?this.cjiContainerProcessed:S)},Pnt.prototype.toString=function(){return"ContentJobItem(cjiUid="+e.toString(this.cjiUid)+", cjiJobUid="+e.toString(this.cjiJobUid)+", sourceUri="+e.toString(this.sourceUri)+", cjiIsLeaf="+e.toString(this.cjiIsLeaf)+", cjiContentEntryUid="+e.toString(this.cjiContentEntryUid)+", cjiParentContentEntryUid="+e.toString(this.cjiParentContentEntryUid)+", cjiContainerUid="+e.toString(this.cjiContainerUid)+", cjiItemProgress="+e.toString(this.cjiItemProgress)+", cjiItemTotal="+e.toString(this.cjiItemTotal)+", cjiRecursiveProgress="+e.toString(this.cjiRecursiveProgress)+", cjiRecursiveTotal="+e.toString(this.cjiRecursiveTotal)+", cjiStatus="+e.toString(this.cjiStatus)+", cjiRecursiveStatus="+e.toString(this.cjiRecursiveStatus)+", cjiConnectivityNeeded="+e.toString(this.cjiConnectivityNeeded)+", cjiPluginId="+e.toString(this.cjiPluginId)+", cjiAttemptCount="+e.toString(this.cjiAttemptCount)+", cjiParentCjiUid="+e.toString(this.cjiParentCjiUid)+", cjiServerJobId="+e.toString(this.cjiServerJobId)+", cjiStartTime="+e.toString(this.cjiStartTime)+", cjiFinishTime="+e.toString(this.cjiFinishTime)+", cjiUploadSessionUid="+e.toString(this.cjiUploadSessionUid)+", cjiContentDeletedOnCancellation="+e.toString(this.cjiContentDeletedOnCancellation)+", cjiContainerProcessed="+e.toString(this.cjiContainerProcessed)+")"},Pnt.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*(t=31*(t=31*(t=31*(t=31*(t=31*(t=31*(t=31*(t=31*(t=31*(t=31*(t=31*(t=31*(t=31*(t=31*(t=31*(t=31*(t=31*(t=31*(t=31*(t=31*t+e.hashCode(this.cjiUid)|0)+e.hashCode(this.cjiJobUid)|0)+e.hashCode(this.sourceUri)|0)+e.hashCode(this.cjiIsLeaf)|0)+e.hashCode(this.cjiContentEntryUid)|0)+e.hashCode(this.cjiParentContentEntryUid)|0)+e.hashCode(this.cjiContainerUid)|0)+e.hashCode(this.cjiItemProgress)|0)+e.hashCode(this.cjiItemTotal)|0)+e.hashCode(this.cjiRecursiveProgress)|0)+e.hashCode(this.cjiRecursiveTotal)|0)+e.hashCode(this.cjiStatus)|0)+e.hashCode(this.cjiRecursiveStatus)|0)+e.hashCode(this.cjiConnectivityNeeded)|0)+e.hashCode(this.cjiPluginId)|0)+e.hashCode(this.cjiAttemptCount)|0)+e.hashCode(this.cjiParentCjiUid)|0)+e.hashCode(this.cjiServerJobId)|0)+e.hashCode(this.cjiStartTime)|0)+e.hashCode(this.cjiFinishTime)|0)+e.hashCode(this.cjiUploadSessionUid)|0)+e.hashCode(this.cjiContentDeletedOnCancellation)|0)+e.hashCode(this.cjiContainerProcessed)|0},Pnt.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.cjiUid,t.cjiUid)&&e.equals(this.cjiJobUid,t.cjiJobUid)&&e.equals(this.sourceUri,t.sourceUri)&&e.equals(this.cjiIsLeaf,t.cjiIsLeaf)&&e.equals(this.cjiContentEntryUid,t.cjiContentEntryUid)&&e.equals(this.cjiParentContentEntryUid,t.cjiParentContentEntryUid)&&e.equals(this.cjiContainerUid,t.cjiContainerUid)&&e.equals(this.cjiItemProgress,t.cjiItemProgress)&&e.equals(this.cjiItemTotal,t.cjiItemTotal)&&e.equals(this.cjiRecursiveProgress,t.cjiRecursiveProgress)&&e.equals(this.cjiRecursiveTotal,t.cjiRecursiveTotal)&&e.equals(this.cjiStatus,t.cjiStatus)&&e.equals(this.cjiRecursiveStatus,t.cjiRecursiveStatus)&&e.equals(this.cjiConnectivityNeeded,t.cjiConnectivityNeeded)&&e.equals(this.cjiPluginId,t.cjiPluginId)&&e.equals(this.cjiAttemptCount,t.cjiAttemptCount)&&e.equals(this.cjiParentCjiUid,t.cjiParentCjiUid)&&e.equals(this.cjiServerJobId,t.cjiServerJobId)&&e.equals(this.cjiStartTime,t.cjiStartTime)&&e.equals(this.cjiFinishTime,t.cjiFinishTime)&&e.equals(this.cjiUploadSessionUid,t.cjiUploadSessionUid)&&e.equals(this.cjiContentDeletedOnCancellation,t.cjiContentDeletedOnCancellation)&&e.equals(this.cjiContainerProcessed,t.cjiContainerProcessed)},Mnt.$metadata$={kind:c,simpleName:"ContentJobItemAndContentJob",interfaces:[]},knt.$metadata$={kind:c,simpleName:"ContentJobItemProgress",interfaces:[]},jnt.$metadata$={kind:c,simpleName:"ContentJobItemProgressAndStatus",interfaces:[]},jnt.prototype.component1=function(){return this.status},jnt.prototype.component2=function(){return this.progress},jnt.prototype.component3=function(){return this.total},jnt.prototype.copy_h639zw$=function(t,e,n){return new jnt(void 0===t?this.status:t,void 0===e?this.progress:e,void 0===n?this.total:n)},jnt.prototype.toString=function(){return"ContentJobItemProgressAndStatus(status="+e.toString(this.status)+", progress="+e.toString(this.progress)+", total="+e.toString(this.total)+")"},jnt.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*t+e.hashCode(this.status)|0)+e.hashCode(this.progress)|0)+e.hashCode(this.total)|0},jnt.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.status,t.status)&&e.equals(this.progress,t.progress)&&e.equals(this.total,t.total)},qnt.prototype.serializer=function(){return Vnt()},qnt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Fnt=null;function Bnt(){return null===Fnt&&new qnt,Fnt}function Wnt(){this.descriptor_aws6b4$_0=new Wt("com.ustadmobile.lib.db.entities.ContextXObjectStatementJoin",this,8),this.descriptor.addElement_ivxn3r$("contextXObjectStatementJoinUid",!0),this.descriptor.addElement_ivxn3r$("contextActivityFlag",!0),this.descriptor.addElement_ivxn3r$("contextStatementUid",!0),this.descriptor.addElement_ivxn3r$("contextXObjectUid",!0),this.descriptor.addElement_ivxn3r$("verbMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("verbLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("verbLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("contextXObjectLct",!0),Hnt=this}Object.defineProperty(Wnt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_aws6b4$_0}}),Wnt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.contextXObjectStatementJoinUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.contextXObjectStatementJoinUid),O(e.contextActivityFlag,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeIntElement_ptg7oe$(this.descriptor,1,e.contextActivityFlag),O(e.contextStatementUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.contextStatementUid),O(e.contextXObjectUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.contextXObjectUid),O(e.verbMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.verbMasterChangeSeqNum),O(e.verbLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.verbLocalChangeSeqNum),O(e.verbLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.verbLastChangedBy),O(e.contextXObjectLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.contextXObjectLct),n.endStructure_24f42q$(this.descriptor)},Wnt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u=0,h=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=h.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=h.decodeLongElement_szpzho$(this.descriptor,0),u|=1;break;case 1:i=h.decodeIntElement_szpzho$(this.descriptor,1),u|=2;break;case 2:o=h.decodeLongElement_szpzho$(this.descriptor,2),u|=4;break;case 3:r=h.decodeLongElement_szpzho$(this.descriptor,3),u|=8;break;case 4:s=h.decodeLongElement_szpzho$(this.descriptor,4),u|=16;break;case 5:a=h.decodeLongElement_szpzho$(this.descriptor,5),u|=32;break;case 6:c=h.decodeIntElement_szpzho$(this.descriptor,6),u|=64;break;case 7:l=h.decodeLongElement_szpzho$(this.descriptor,7),u|=128;break;case-1:break t;default:throw new Vt(e)}return h.endStructure_24f42q$(this.descriptor),Knt(u,n,i,o,r,s,a,c,l,null)},Wnt.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer]},Wnt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Hnt=null;function Vnt(){return null===Hnt&&new Wnt,Hnt}function Knt(t,e,n,i,o,r,s,a,c,l){var u=l||Object.create(Gnt.prototype);return u.contextXObjectStatementJoinUid=0==(1&t)?X:e,u.contextActivityFlag=0==(2&t)?0:n,u.contextStatementUid=0==(4&t)?X:i,u.contextXObjectUid=0==(8&t)?X:o,u.verbMasterChangeSeqNum=0==(16&t)?X:r,u.verbLocalChangeSeqNum=0==(32&t)?X:s,u.verbLastChangedBy=0==(64&t)?0:a,u.contextXObjectLct=0==(128&t)?X:c,u}function Xnt(){Qnt(),this.camUid=X,this.camAssignmentUid=X,this.camSubmitterUid=X,this.camMark=0,this.camPenalty=0,this.camLct=X}function Jnt(){Ynt=this,this.TABLE_ID=523}Gnt.$metadata$={kind:c,simpleName:"ContextXObjectStatementJoin",interfaces:[]},Jnt.prototype.serializer=function(){return eit()},Jnt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Ynt=null;function Qnt(){return null===Ynt&&new Jnt,Ynt}function Znt(){this.descriptor_izkakg$_0=new Wt("com.ustadmobile.lib.db.entities.CourseAssignmentMark",this,6),this.descriptor.addElement_ivxn3r$("camUid",!0),this.descriptor.addElement_ivxn3r$("camAssignmentUid",!0),this.descriptor.addElement_ivxn3r$("camSubmitterUid",!0),this.descriptor.addElement_ivxn3r$("camMark",!0),this.descriptor.addElement_ivxn3r$("camPenalty",!0),this.descriptor.addElement_ivxn3r$("camLct",!0),tit=this}Object.defineProperty(Znt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_izkakg$_0}}),Znt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.camUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.camUid),O(e.camAssignmentUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.camAssignmentUid),O(e.camSubmitterUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.camSubmitterUid),O(e.camMark,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeFloatElement_lf6hpt$(this.descriptor,3,e.camMark),O(e.camPenalty,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeIntElement_ptg7oe$(this.descriptor,4,e.camPenalty),O(e.camLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.camLct),n.endStructure_24f42q$(this.descriptor)},Znt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c=0,l=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=l.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=l.decodeLongElement_szpzho$(this.descriptor,0),c|=1;break;case 1:i=l.decodeLongElement_szpzho$(this.descriptor,1),c|=2;break;case 2:o=l.decodeLongElement_szpzho$(this.descriptor,2),c|=4;break;case 3:r=l.decodeFloatElement_szpzho$(this.descriptor,3),c|=8;break;case 4:s=l.decodeIntElement_szpzho$(this.descriptor,4),c|=16;break;case 5:a=l.decodeLongElement_szpzho$(this.descriptor,5),c|=32;break;case-1:break t;default:throw new Vt(e)}return l.endStructure_24f42q$(this.descriptor),nit(c,n,i,o,r,s,a,null)},Znt.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.FloatSerializer,Ht.IntSerializer,Ht.LongSerializer]},Znt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var tit=null;function eit(){return null===tit&&new Znt,tit}function nit(t,e,n,i,o,r,s,a){var c=a||Object.create(Xnt.prototype);return c.camUid=0==(1&t)?X:e,c.camAssignmentUid=0==(2&t)?X:n,c.camSubmitterUid=0==(4&t)?X:i,c.camMark=0==(8&t)?0:o,c.camPenalty=0==(16&t)?0:r,c.camLct=0==(32&t)?X:s,c}function iit(){sit(),this.casUid=X,this.casAssignmentUid=X,this.casSubmitterUid=X,this.casSubmitterPersonUid=X,this.casText=null,this.casType=0,this.casTimestamp=X}function oit(){rit=this,this.TABLE_ID=522,this.SUBMISSION_TYPE_TEXT=1,this.SUBMISSION_TYPE_FILE=2,this.NOT_SUBMITTED=0,this.SUBMITTED=1,this.MARKED=2}Xnt.$metadata$={kind:c,simpleName:"CourseAssignmentMark",interfaces:[]},oit.prototype.serializer=function(){return lit()},oit.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var rit=null;function sit(){return null===rit&&new oit,rit}function ait(){this.descriptor_9n8jgf$_0=new Wt("com.ustadmobile.lib.db.entities.CourseAssignmentSubmission",this,7),this.descriptor.addElement_ivxn3r$("casUid",!0),this.descriptor.addElement_ivxn3r$("casAssignmentUid",!0),this.descriptor.addElement_ivxn3r$("casSubmitterUid",!0),this.descriptor.addElement_ivxn3r$("casSubmitterPersonUid",!0),this.descriptor.addElement_ivxn3r$("casText",!0),this.descriptor.addElement_ivxn3r$("casType",!0),this.descriptor.addElement_ivxn3r$("casTimestamp",!0),cit=this}Object.defineProperty(ait.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_9n8jgf$_0}}),ait.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.casUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.casUid),O(e.casAssignmentUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.casAssignmentUid),O(e.casSubmitterUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.casSubmitterUid),O(e.casSubmitterPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.casSubmitterPersonUid),O(e.casText,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,4,Ht.StringSerializer,e.casText),O(e.casType,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeIntElement_ptg7oe$(this.descriptor,5,e.casType),O(e.casTimestamp,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.casTimestamp),n.endStructure_24f42q$(this.descriptor)},ait.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l=0,u=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=u.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=u.decodeLongElement_szpzho$(this.descriptor,0),l|=1;break;case 1:i=u.decodeLongElement_szpzho$(this.descriptor,1),l|=2;break;case 2:o=u.decodeLongElement_szpzho$(this.descriptor,2),l|=4;break;case 3:r=u.decodeLongElement_szpzho$(this.descriptor,3),l|=8;break;case 4:s=u.decodeNullableSerializableElement_8viuyw$(this.descriptor,4,Ht.StringSerializer,s),l|=16;break;case 5:a=u.decodeIntElement_szpzho$(this.descriptor,5),l|=32;break;case 6:c=u.decodeLongElement_szpzho$(this.descriptor,6),l|=64;break;case-1:break t;default:throw new Vt(e)}return u.endStructure_24f42q$(this.descriptor),uit(l,n,i,o,r,s,a,c,null)},ait.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.LongSerializer]},ait.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var cit=null;function lit(){return null===cit&&new ait,cit}function uit(t,e,n,i,o,r,s,a,c){var l=c||Object.create(iit.prototype);return l.casUid=0==(1&t)?X:e,l.casAssignmentUid=0==(2&t)?X:n,l.casSubmitterUid=0==(4&t)?X:i,l.casSubmitterPersonUid=0==(8&t)?X:o,l.casText=0==(16&t)?null:r,l.casType=0==(32&t)?0:s,l.casTimestamp=0==(64&t)?X:a,l}function hit(){_it(),this.casaUid=X,this.casaSubmissionUid=X,this.casaMimeType=null,this.casaFileName=null,this.casaUri=null,this.casaMd5=null,this.casaSize=0,this.casaTimestamp=X}function dit(){pit=this,this.TABLE_ID=90}iit.$metadata$={kind:c,simpleName:"CourseAssignmentSubmission",interfaces:[]},dit.prototype.serializer=function(){return git()},dit.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var pit=null;function _it(){return null===pit&&new dit,pit}function mit(){this.descriptor_ymu27y$_0=new Wt("com.ustadmobile.lib.db.entities.CourseAssignmentSubmissionAttachment",this,8),this.descriptor.addElement_ivxn3r$("casaUid",!0),this.descriptor.addElement_ivxn3r$("casaSubmissionUid",!0),this.descriptor.addElement_ivxn3r$("casaMimeType",!0),this.descriptor.addElement_ivxn3r$("casaFileName",!0),this.descriptor.addElement_ivxn3r$("casaUri",!0),this.descriptor.addElement_ivxn3r$("casaMd5",!0),this.descriptor.addElement_ivxn3r$("casaSize",!0),this.descriptor.addElement_ivxn3r$("casaTimestamp",!0),fit=this}Object.defineProperty(mit.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_ymu27y$_0}}),mit.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.casaUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.casaUid),O(e.casaSubmissionUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.casaSubmissionUid),O(e.casaMimeType,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.casaMimeType),O(e.casaFileName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,3,Ht.StringSerializer,e.casaFileName),O(e.casaUri,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,4,Ht.StringSerializer,e.casaUri),O(e.casaMd5,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,5,Ht.StringSerializer,e.casaMd5),O(e.casaSize,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.casaSize),O(e.casaTimestamp,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.casaTimestamp),n.endStructure_24f42q$(this.descriptor)},mit.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u=0,h=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=h.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=h.decodeLongElement_szpzho$(this.descriptor,0),u|=1;break;case 1:i=h.decodeLongElement_szpzho$(this.descriptor,1),u|=2;break;case 2:o=h.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),u|=4;break;case 3:r=h.decodeNullableSerializableElement_8viuyw$(this.descriptor,3,Ht.StringSerializer,r),u|=8;break;case 4:s=h.decodeNullableSerializableElement_8viuyw$(this.descriptor,4,Ht.StringSerializer,s),u|=16;break;case 5:a=h.decodeNullableSerializableElement_8viuyw$(this.descriptor,5,Ht.StringSerializer,a),u|=32;break;case 6:c=h.decodeIntElement_szpzho$(this.descriptor,6),u|=64;break;case 7:l=h.decodeLongElement_szpzho$(this.descriptor,7),u|=128;break;case-1:break t;default:throw new Vt(e)}return h.endStructure_24f42q$(this.descriptor),$it(u,n,i,o,r,s,a,c,l,null)},mit.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.LongSerializer]},mit.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var fit=null;function git(){return null===fit&&new mit,fit}function $it(t,e,n,i,o,r,s,a,c,l){var u=l||Object.create(hit.prototype);return u.casaUid=0==(1&t)?X:e,u.casaSubmissionUid=0==(2&t)?X:n,u.casaMimeType=0==(4&t)?null:i,u.casaFileName=0==(8&t)?null:o,u.casaUri=0==(16&t)?null:r,u.casaMd5=0==(32&t)?null:s,u.casaSize=0==(64&t)?0:a,u.casaTimestamp=0==(128&t)?X:c,u}function Eit(){Sit(),iit.call(this),this.attachment=null}function yit(){bit=this}hit.$metadata$={kind:c,simpleName:"CourseAssignmentSubmissionAttachment",interfaces:[]},yit.prototype.serializer=function(){return Nit()},yit.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var bit=null;function Sit(){return null===bit&&new yit,bit}function vit(){this.descriptor_kkknu0$_0=new Wt("com.ustadmobile.lib.db.entities.CourseAssignmentSubmissionWithAttachment",this,8),this.descriptor.addElement_ivxn3r$("casUid",!0),this.descriptor.addElement_ivxn3r$("casAssignmentUid",!0),this.descriptor.addElement_ivxn3r$("casSubmitterUid",!0),this.descriptor.addElement_ivxn3r$("casSubmitterPersonUid",!0),this.descriptor.addElement_ivxn3r$("casText",!0),this.descriptor.addElement_ivxn3r$("casType",!0),this.descriptor.addElement_ivxn3r$("casTimestamp",!0),this.descriptor.addElement_ivxn3r$("attachment",!0),Cit=this}Object.defineProperty(vit.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_kkknu0$_0}}),vit.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.casUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.casUid),O(e.casAssignmentUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.casAssignmentUid),O(e.casSubmitterUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.casSubmitterUid),O(e.casSubmitterPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.casSubmitterPersonUid),O(e.casText,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,4,Ht.StringSerializer,e.casText),O(e.casType,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeIntElement_ptg7oe$(this.descriptor,5,e.casType),O(e.casTimestamp,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.casTimestamp),O(e.attachment,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,7,git(),e.attachment),n.endStructure_24f42q$(this.descriptor)},vit.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u=0,h=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=h.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=h.decodeLongElement_szpzho$(this.descriptor,0),u|=1;break;case 1:i=h.decodeLongElement_szpzho$(this.descriptor,1),u|=2;break;case 2:o=h.decodeLongElement_szpzho$(this.descriptor,2),u|=4;break;case 3:r=h.decodeLongElement_szpzho$(this.descriptor,3),u|=8;break;case 4:s=h.decodeNullableSerializableElement_8viuyw$(this.descriptor,4,Ht.StringSerializer,s),u|=16;break;case 5:a=h.decodeIntElement_szpzho$(this.descriptor,5),u|=32;break;case 6:c=h.decodeLongElement_szpzho$(this.descriptor,6),u|=64;break;case 7:l=h.decodeNullableSerializableElement_8viuyw$(this.descriptor,7,git(),l),u|=128;break;case-1:break t;default:throw new Vt(e)}return h.endStructure_24f42q$(this.descriptor),Tit(u,n,i,o,r,s,a,c,l,null)},vit.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.LongSerializer,new Bt(git())]},vit.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Cit=null;function Nit(){return null===Cit&&new vit,Cit}function Tit(t,e,n,i,o,r,s,a,c,l){var u=l||Object.create(Eit.prototype);return(u=uit(t,e,n,i,o,r,s,a,u)).attachment=0==(128&t)?null:c,u}function Lit(){Oit(),this.cbUid=X,this.cbType=0,this.cbIndentLevel=0,this.cbModuleParentBlockUid=X,this.cbTitle=null,this.cbDescription=null,this.cbCompletionCriteria=0,this.cbHideUntilDate=X,this.cbDeadlineDate=Xt,this.cbLateSubmissionPenalty=0,this.cbGracePeriodDate=Xt,this.cbMaxPoints=10,this.cbMinPoints=0,this.cbIndex=0,this.cbClazzUid=X,this.cbActive=!0,this.cbHidden=!1,this.cbEntityUid=X,this.cbLct=X}function zit(){wit=this,this.TABLE_ID=124,this.BLOCK_MODULE_TYPE=100,this.BLOCK_TEXT_TYPE=102,this.BLOCK_ASSIGNMENT_TYPE=103,this.BLOCK_CONTENT_TYPE=104,this.BLOCK_DISCUSSION_TYPE=105}Eit.$metadata$={kind:c,simpleName:"CourseAssignmentSubmissionWithAttachment",interfaces:[iit]},Lit.prototype.equals=function(t){return!!(this===t||e.isType(t,Lit)&&O(this.cbUid,t.cbUid)&&this.cbType===t.cbType&&this.cbIndentLevel===t.cbIndentLevel&&O(this.cbModuleParentBlockUid,t.cbModuleParentBlockUid)&&O(this.cbTitle,t.cbTitle)&&O(this.cbDescription,t.cbDescription)&&this.cbCompletionCriteria===t.cbCompletionCriteria&&O(this.cbHideUntilDate,t.cbHideUntilDate)&&O(this.cbDeadlineDate,t.cbDeadlineDate)&&this.cbLateSubmissionPenalty===t.cbLateSubmissionPenalty&&O(this.cbGracePeriodDate,t.cbGracePeriodDate)&&this.cbMaxPoints===t.cbMaxPoints&&this.cbMinPoints===t.cbMinPoints&&this.cbIndex===t.cbIndex&&O(this.cbClazzUid,t.cbClazzUid)&&this.cbActive===t.cbActive&&this.cbHidden===t.cbHidden&&O(this.cbEntityUid,t.cbEntityUid)&&O(this.cbLct,t.cbLct))},Lit.prototype.hashCode=function(){var t,e,n,i,o=Yt(this.cbUid);return o=(31*(o=(31*(o=(31*(o=(31*(o=(31*(o=(31*(o=(31*(o=(31*(o=(31*(o=(31*(o=(31*(o=(31*(o=(31*(o=(31*(o=(31*(o=(31*(o=(31*(o=(31*o|0)+this.cbType|0)|0)+this.cbIndentLevel|0)|0)+Yt(this.cbModuleParentBlockUid)|0)|0)+(null!=(e=null!=(t=this.cbTitle)?Yt(t):null)?e:0)|0)|0)+(null!=(i=null!=(n=this.cbDescription)?Yt(n):null)?i:0)|0)|0)+this.cbCompletionCriteria|0)|0)+Yt(this.cbHideUntilDate)|0)|0)+Yt(this.cbDeadlineDate)|0)|0)+this.cbLateSubmissionPenalty|0)|0)+Yt(this.cbGracePeriodDate)|0)|0)+this.cbMaxPoints|0)|0)+this.cbMinPoints|0)|0)+this.cbIndex|0)|0)+Yt(this.cbClazzUid)|0)|0)+Yt(this.cbActive)|0)|0)+Yt(this.cbHidden)|0)|0)+Yt(this.cbEntityUid)|0)|0)+Yt(this.cbLct)|0},zit.prototype.serializer=function(){return xit()},zit.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var wit=null;function Oit(){return null===wit&&new zit,wit}function Rit(){this.descriptor_g015fz$_0=new Wt("com.ustadmobile.lib.db.entities.CourseBlock",this,19),this.descriptor.addElement_ivxn3r$("cbUid",!0),this.descriptor.addElement_ivxn3r$("cbType",!0),this.descriptor.addElement_ivxn3r$("cbIndentLevel",!0),this.descriptor.addElement_ivxn3r$("cbModuleParentBlockUid",!0),this.descriptor.addElement_ivxn3r$("cbTitle",!0),this.descriptor.addElement_ivxn3r$("cbDescription",!0),this.descriptor.addElement_ivxn3r$("cbCompletionCriteria",!0),this.descriptor.addElement_ivxn3r$("cbHideUntilDate",!0),this.descriptor.addElement_ivxn3r$("cbDeadlineDate",!0),this.descriptor.addElement_ivxn3r$("cbLateSubmissionPenalty",!0),this.descriptor.addElement_ivxn3r$("cbGracePeriodDate",!0),this.descriptor.addElement_ivxn3r$("cbMaxPoints",!0),this.descriptor.addElement_ivxn3r$("cbMinPoints",!0),this.descriptor.addElement_ivxn3r$("cbIndex",!0),this.descriptor.addElement_ivxn3r$("cbClazzUid",!0),this.descriptor.addElement_ivxn3r$("cbActive",!0),this.descriptor.addElement_ivxn3r$("cbHidden",!0),this.descriptor.addElement_ivxn3r$("cbEntityUid",!0),this.descriptor.addElement_ivxn3r$("cbLct",!0),Ait=this}Object.defineProperty(Rit.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_g015fz$_0}}),Rit.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.cbUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.cbUid),O(e.cbType,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeIntElement_ptg7oe$(this.descriptor,1,e.cbType),O(e.cbIndentLevel,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeIntElement_ptg7oe$(this.descriptor,2,e.cbIndentLevel),O(e.cbModuleParentBlockUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.cbModuleParentBlockUid),O(e.cbTitle,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,4,Ht.StringSerializer,e.cbTitle),O(e.cbDescription,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,5,Ht.StringSerializer,e.cbDescription),O(e.cbCompletionCriteria,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.cbCompletionCriteria),O(e.cbHideUntilDate,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.cbHideUntilDate),O(e.cbDeadlineDate,Xt)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.cbDeadlineDate),O(e.cbLateSubmissionPenalty,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeIntElement_ptg7oe$(this.descriptor,9,e.cbLateSubmissionPenalty),O(e.cbGracePeriodDate,Xt)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeLongElement_j0o2mv$(this.descriptor,10,e.cbGracePeriodDate),O(e.cbMaxPoints,10)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeIntElement_ptg7oe$(this.descriptor,11,e.cbMaxPoints),O(e.cbMinPoints,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeIntElement_ptg7oe$(this.descriptor,12,e.cbMinPoints),O(e.cbIndex,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeIntElement_ptg7oe$(this.descriptor,13,e.cbIndex),O(e.cbClazzUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeLongElement_j0o2mv$(this.descriptor,14,e.cbClazzUid),O(e.cbActive,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeBooleanElement_qh7jdn$(this.descriptor,15,e.cbActive),O(e.cbHidden,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,16)||n.encodeBooleanElement_qh7jdn$(this.descriptor,16,e.cbHidden),O(e.cbEntityUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,17)||n.encodeLongElement_j0o2mv$(this.descriptor,17,e.cbEntityUid),O(e.cbLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,18)||n.encodeLongElement_j0o2mv$(this.descriptor,18,e.cbLct),n.endStructure_24f42q$(this.descriptor)},Rit.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b=0,S=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=S.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=S.decodeLongElement_szpzho$(this.descriptor,0),b|=1;break;case 1:i=S.decodeIntElement_szpzho$(this.descriptor,1),b|=2;break;case 2:o=S.decodeIntElement_szpzho$(this.descriptor,2),b|=4;break;case 3:r=S.decodeLongElement_szpzho$(this.descriptor,3),b|=8;break;case 4:s=S.decodeNullableSerializableElement_8viuyw$(this.descriptor,4,Ht.StringSerializer,s),b|=16;break;case 5:a=S.decodeNullableSerializableElement_8viuyw$(this.descriptor,5,Ht.StringSerializer,a),b|=32;break;case 6:c=S.decodeIntElement_szpzho$(this.descriptor,6),b|=64;break;case 7:l=S.decodeLongElement_szpzho$(this.descriptor,7),b|=128;break;case 8:u=S.decodeLongElement_szpzho$(this.descriptor,8),b|=256;break;case 9:h=S.decodeIntElement_szpzho$(this.descriptor,9),b|=512;break;case 10:d=S.decodeLongElement_szpzho$(this.descriptor,10),b|=1024;break;case 11:p=S.decodeIntElement_szpzho$(this.descriptor,11),b|=2048;break;case 12:_=S.decodeIntElement_szpzho$(this.descriptor,12),b|=4096;break;case 13:m=S.decodeIntElement_szpzho$(this.descriptor,13),b|=8192;break;case 14:f=S.decodeLongElement_szpzho$(this.descriptor,14),b|=16384;break;case 15:g=S.decodeBooleanElement_szpzho$(this.descriptor,15),b|=32768;break;case 16:$=S.decodeBooleanElement_szpzho$(this.descriptor,16),b|=65536;break;case 17:E=S.decodeLongElement_szpzho$(this.descriptor,17),b|=131072;break;case 18:y=S.decodeLongElement_szpzho$(this.descriptor,18),b|=262144;break;case-1:break t;default:throw new Vt(e)}return S.endStructure_24f42q$(this.descriptor),Iit(b,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,null)},Rit.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.BooleanSerializer,Ht.BooleanSerializer,Ht.LongSerializer,Ht.LongSerializer]},Rit.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Ait=null;function xit(){return null===Ait&&new Rit,Ait}function Iit(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y){var b=y||Object.create(Lit.prototype);return b.cbUid=0==(1&t)?X:e,b.cbType=0==(2&t)?0:n,b.cbIndentLevel=0==(4&t)?0:i,b.cbModuleParentBlockUid=0==(8&t)?X:o,b.cbTitle=0==(16&t)?null:r,b.cbDescription=0==(32&t)?null:s,b.cbCompletionCriteria=0==(64&t)?0:a,b.cbHideUntilDate=0==(128&t)?X:c,b.cbDeadlineDate=0==(256&t)?Xt:l,b.cbLateSubmissionPenalty=0==(512&t)?0:u,b.cbGracePeriodDate=0==(1024&t)?Xt:h,b.cbMaxPoints=0==(2048&t)?10:d,b.cbMinPoints=0==(4096&t)?0:p,b.cbIndex=0==(8192&t)?0:_,b.cbClazzUid=0==(16384&t)?X:m,b.cbActive=0==(32768&t)||f,b.cbHidden=0!=(65536&t)&&g,b.cbEntityUid=0==(131072&t)?X:$,b.cbLct=0==(262144&t)?X:E,b}function Uit(){Lit.call(this),this.assignment=null,this.entry=null,this.courseDiscussion=null,this.expanded=!0}function Dit(){kit(),Bit.call(this),this.topics=null,this.topicUidsToRemove=null}function Pit(){Mit=this}Lit.$metadata$={kind:c,simpleName:"CourseBlock",interfaces:[]},Uit.$metadata$={kind:c,simpleName:"CourseBlockWithCompleteEntity",interfaces:[Lit]},Dit.prototype.equals=function(t){var n;return!!(this===t||null!=t&&null!=(n=e.getKClassFromExpression(this))&&n.equals(e.getKClassFromExpression(t))&&Bit.prototype.equals.call(this,t)&&(e.isType(t,Dit)||Jt(),O(this.topics,t.topics)&&O(this.topicUidsToRemove,t.topicUidsToRemove)))},Dit.prototype.hashCode=function(){var t,e,n,i,o=Bit.prototype.hashCode.call(this);return o=(31*(o=(31*o|0)+(null!=(e=null!=(t=this.topics)?Yt(t):null)?e:0)|0)|0)+(null!=(i=null!=(n=this.topicUidsToRemove)?Yt(n):null)?i:0)|0},Dit.prototype.createFromDb_taxqj1$=function(t){this.assignment=t.assignment,this.entry=t.entry,this.courseDiscussion=t.courseDiscussion,this.language=t.language,this.cbUid=t.cbUid,this.cbType=t.cbType,this.cbIndentLevel=t.cbIndentLevel,this.cbModuleParentBlockUid=t.cbModuleParentBlockUid,this.cbTitle=t.cbTitle,this.cbDescription=t.cbDescription,this.cbCompletionCriteria=t.cbCompletionCriteria,this.cbHideUntilDate=t.cbHideUntilDate,this.cbDeadlineDate=t.cbDeadlineDate,this.cbLateSubmissionPenalty=t.cbLateSubmissionPenalty,this.cbGracePeriodDate=t.cbGracePeriodDate,this.cbMaxPoints=t.cbMaxPoints,this.cbIndex=t.cbIndex,this.cbClazzUid=t.cbClazzUid,this.cbActive=t.cbActive,this.cbHidden=t.cbHidden,this.cbEntityUid=t.cbEntityUid,this.cbLct=t.cbLct},Pit.prototype.serializer=function(){return qit()},Pit.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Mit=null;function kit(){return null===Mit&&new Pit,Mit}function jit(){this.descriptor_is2w6e$_0=new Wt("com.ustadmobile.lib.db.entities.CourseBlockWithEntity",this,25),this.descriptor.addElement_ivxn3r$("cbUid",!0),this.descriptor.addElement_ivxn3r$("cbType",!0),this.descriptor.addElement_ivxn3r$("cbIndentLevel",!0),this.descriptor.addElement_ivxn3r$("cbModuleParentBlockUid",!0),this.descriptor.addElement_ivxn3r$("cbTitle",!0),this.descriptor.addElement_ivxn3r$("cbDescription",!0),this.descriptor.addElement_ivxn3r$("cbCompletionCriteria",!0),this.descriptor.addElement_ivxn3r$("cbHideUntilDate",!0),this.descriptor.addElement_ivxn3r$("cbDeadlineDate",!0),this.descriptor.addElement_ivxn3r$("cbLateSubmissionPenalty",!0),this.descriptor.addElement_ivxn3r$("cbGracePeriodDate",!0),this.descriptor.addElement_ivxn3r$("cbMaxPoints",!0),this.descriptor.addElement_ivxn3r$("cbMinPoints",!0),this.descriptor.addElement_ivxn3r$("cbIndex",!0),this.descriptor.addElement_ivxn3r$("cbClazzUid",!0),this.descriptor.addElement_ivxn3r$("cbActive",!0),this.descriptor.addElement_ivxn3r$("cbHidden",!0),this.descriptor.addElement_ivxn3r$("cbEntityUid",!0),this.descriptor.addElement_ivxn3r$("cbLct",!0),this.descriptor.addElement_ivxn3r$("assignment",!0),this.descriptor.addElement_ivxn3r$("entry",!0),this.descriptor.addElement_ivxn3r$("courseDiscussion",!0),this.descriptor.addElement_ivxn3r$("language",!0),this.descriptor.addElement_ivxn3r$("topics",!0),this.descriptor.addElement_ivxn3r$("topicUidsToRemove",!0),Git=this}Object.defineProperty(jit.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_is2w6e$_0}}),jit.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.cbUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.cbUid),O(e.cbType,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeIntElement_ptg7oe$(this.descriptor,1,e.cbType),O(e.cbIndentLevel,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeIntElement_ptg7oe$(this.descriptor,2,e.cbIndentLevel),O(e.cbModuleParentBlockUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.cbModuleParentBlockUid),O(e.cbTitle,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,4,Ht.StringSerializer,e.cbTitle),O(e.cbDescription,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,5,Ht.StringSerializer,e.cbDescription),O(e.cbCompletionCriteria,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.cbCompletionCriteria),O(e.cbHideUntilDate,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.cbHideUntilDate),O(e.cbDeadlineDate,Xt)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.cbDeadlineDate),O(e.cbLateSubmissionPenalty,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeIntElement_ptg7oe$(this.descriptor,9,e.cbLateSubmissionPenalty),O(e.cbGracePeriodDate,Xt)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeLongElement_j0o2mv$(this.descriptor,10,e.cbGracePeriodDate),O(e.cbMaxPoints,10)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeIntElement_ptg7oe$(this.descriptor,11,e.cbMaxPoints),O(e.cbMinPoints,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeIntElement_ptg7oe$(this.descriptor,12,e.cbMinPoints),O(e.cbIndex,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeIntElement_ptg7oe$(this.descriptor,13,e.cbIndex),O(e.cbClazzUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeLongElement_j0o2mv$(this.descriptor,14,e.cbClazzUid),O(e.cbActive,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeBooleanElement_qh7jdn$(this.descriptor,15,e.cbActive),O(e.cbHidden,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,16)||n.encodeBooleanElement_qh7jdn$(this.descriptor,16,e.cbHidden),O(e.cbEntityUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,17)||n.encodeLongElement_j0o2mv$(this.descriptor,17,e.cbEntityUid),O(e.cbLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,18)||n.encodeLongElement_j0o2mv$(this.descriptor,18,e.cbLct),O(e.assignment,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,19)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,19,y5(),e.assignment),O(e.entry,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,20)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,20,Dtt(),e.entry),O(e.courseDiscussion,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,21)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,21,oot(),e.courseDiscussion),O(e.language,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,22)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,22,Wst(),e.language),O(e.topics,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,23)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,23,new ne(_rt()),e.topics),O(e.topicUidsToRemove,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,24)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,24,new ne(Ht.LongSerializer),e.topicUidsToRemove),n.endStructure_24f42q$(this.descriptor)},jit.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L=0,z=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=z.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=z.decodeLongElement_szpzho$(this.descriptor,0),L|=1;break;case 1:i=z.decodeIntElement_szpzho$(this.descriptor,1),L|=2;break;case 2:o=z.decodeIntElement_szpzho$(this.descriptor,2),L|=4;break;case 3:r=z.decodeLongElement_szpzho$(this.descriptor,3),L|=8;break;case 4:s=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,4,Ht.StringSerializer,s),L|=16;break;case 5:a=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,5,Ht.StringSerializer,a),L|=32;break;case 6:c=z.decodeIntElement_szpzho$(this.descriptor,6),L|=64;break;case 7:l=z.decodeLongElement_szpzho$(this.descriptor,7),L|=128;break;case 8:u=z.decodeLongElement_szpzho$(this.descriptor,8),L|=256;break;case 9:h=z.decodeIntElement_szpzho$(this.descriptor,9),L|=512;break;case 10:d=z.decodeLongElement_szpzho$(this.descriptor,10),L|=1024;break;case 11:p=z.decodeIntElement_szpzho$(this.descriptor,11),L|=2048;break;case 12:_=z.decodeIntElement_szpzho$(this.descriptor,12),L|=4096;break;case 13:m=z.decodeIntElement_szpzho$(this.descriptor,13),L|=8192;break;case 14:f=z.decodeLongElement_szpzho$(this.descriptor,14),L|=16384;break;case 15:g=z.decodeBooleanElement_szpzho$(this.descriptor,15),L|=32768;break;case 16:$=z.decodeBooleanElement_szpzho$(this.descriptor,16),L|=65536;break;case 17:E=z.decodeLongElement_szpzho$(this.descriptor,17),L|=131072;break;case 18:y=z.decodeLongElement_szpzho$(this.descriptor,18),L|=262144;break;case 19:b=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,19,y5(),b),L|=524288;break;case 20:S=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,20,Dtt(),S),L|=1048576;break;case 21:v=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,21,oot(),v),L|=2097152;break;case 22:C=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,22,Wst(),C),L|=4194304;break;case 23:N=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,23,new ne(_rt()),N),L|=8388608;break;case 24:T=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,24,new ne(Ht.LongSerializer),T),L|=16777216;break;case-1:break t;default:throw new Vt(e)}return z.endStructure_24f42q$(this.descriptor),Fit(L,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,null)},jit.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.BooleanSerializer,Ht.BooleanSerializer,Ht.LongSerializer,Ht.LongSerializer,new Bt(y5()),new Bt(Dtt()),new Bt(oot()),new Bt(Wst()),new Bt(new ne(_rt())),new Bt(new ne(Ht.LongSerializer))]},jit.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Git=null;function qit(){return null===Git&&new jit,Git}function Fit(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T){var L=T||Object.create(Dit.prototype);return(L=Yit(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,L)).topics=0==(8388608&t)?null:C,L.topicUidsToRemove=0==(16777216&t)?null:N,L}function Bit(){Vit(),Lit.call(this),this.assignment=null,this.entry=null,this.courseDiscussion=null,this.language=null}function Wit(){Hit=this}Dit.$metadata$={kind:c,simpleName:"CourseBlockWithEntity",interfaces:[Bit]},Bit.prototype.equals=function(t){var n;return this===t||!(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))&&!!Lit.prototype.equals.call(this,t)&&(e.isType(t,Bit)||Jt(),!!(O(this.assignment,t.assignment)&&O(this.entry,t.entry)&&O(this.courseDiscussion,t.courseDiscussion)&&O(this.language,t.language)))},Bit.prototype.hashCode=function(){var t,e,n,i,o,r,s,a,c=Lit.prototype.hashCode.call(this);return c=(31*(c=(31*(c=(31*(c=(31*c|0)+(null!=(e=null!=(t=this.assignment)?Yt(t):null)?e:0)|0)|0)+(null!=(i=null!=(n=this.entry)?n.hashCode():null)?i:0)|0)|0)+(null!=(r=null!=(o=this.courseDiscussion)?Yt(o):null)?r:0)|0)|0)+(null!=(a=null!=(s=this.language)?s.hashCode():null)?a:0)|0},Wit.prototype.serializer=function(){return Jit()},Wit.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Hit=null;function Vit(){return null===Hit&&new Wit,Hit}function Kit(){this.descriptor_cj0nc$_0=new Wt("com.ustadmobile.lib.db.entities.CourseBlockWithEntityDb",this,23),this.descriptor.addElement_ivxn3r$("cbUid",!0),this.descriptor.addElement_ivxn3r$("cbType",!0),this.descriptor.addElement_ivxn3r$("cbIndentLevel",!0),this.descriptor.addElement_ivxn3r$("cbModuleParentBlockUid",!0),this.descriptor.addElement_ivxn3r$("cbTitle",!0),this.descriptor.addElement_ivxn3r$("cbDescription",!0),this.descriptor.addElement_ivxn3r$("cbCompletionCriteria",!0),this.descriptor.addElement_ivxn3r$("cbHideUntilDate",!0),this.descriptor.addElement_ivxn3r$("cbDeadlineDate",!0),this.descriptor.addElement_ivxn3r$("cbLateSubmissionPenalty",!0),this.descriptor.addElement_ivxn3r$("cbGracePeriodDate",!0),this.descriptor.addElement_ivxn3r$("cbMaxPoints",!0),this.descriptor.addElement_ivxn3r$("cbMinPoints",!0),this.descriptor.addElement_ivxn3r$("cbIndex",!0),this.descriptor.addElement_ivxn3r$("cbClazzUid",!0),this.descriptor.addElement_ivxn3r$("cbActive",!0),this.descriptor.addElement_ivxn3r$("cbHidden",!0),this.descriptor.addElement_ivxn3r$("cbEntityUid",!0),this.descriptor.addElement_ivxn3r$("cbLct",!0),this.descriptor.addElement_ivxn3r$("assignment",!0),this.descriptor.addElement_ivxn3r$("entry",!0),this.descriptor.addElement_ivxn3r$("courseDiscussion",!0),this.descriptor.addElement_ivxn3r$("language",!0),Xit=this}Object.defineProperty(Kit.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_cj0nc$_0}}),Kit.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.cbUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.cbUid),O(e.cbType,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeIntElement_ptg7oe$(this.descriptor,1,e.cbType),O(e.cbIndentLevel,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeIntElement_ptg7oe$(this.descriptor,2,e.cbIndentLevel),O(e.cbModuleParentBlockUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.cbModuleParentBlockUid),O(e.cbTitle,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,4,Ht.StringSerializer,e.cbTitle),O(e.cbDescription,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,5,Ht.StringSerializer,e.cbDescription),O(e.cbCompletionCriteria,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.cbCompletionCriteria),O(e.cbHideUntilDate,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.cbHideUntilDate),O(e.cbDeadlineDate,Xt)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.cbDeadlineDate),O(e.cbLateSubmissionPenalty,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeIntElement_ptg7oe$(this.descriptor,9,e.cbLateSubmissionPenalty),O(e.cbGracePeriodDate,Xt)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeLongElement_j0o2mv$(this.descriptor,10,e.cbGracePeriodDate),O(e.cbMaxPoints,10)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeIntElement_ptg7oe$(this.descriptor,11,e.cbMaxPoints),O(e.cbMinPoints,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeIntElement_ptg7oe$(this.descriptor,12,e.cbMinPoints),O(e.cbIndex,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeIntElement_ptg7oe$(this.descriptor,13,e.cbIndex),O(e.cbClazzUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeLongElement_j0o2mv$(this.descriptor,14,e.cbClazzUid),O(e.cbActive,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeBooleanElement_qh7jdn$(this.descriptor,15,e.cbActive),O(e.cbHidden,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,16)||n.encodeBooleanElement_qh7jdn$(this.descriptor,16,e.cbHidden),O(e.cbEntityUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,17)||n.encodeLongElement_j0o2mv$(this.descriptor,17,e.cbEntityUid),O(e.cbLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,18)||n.encodeLongElement_j0o2mv$(this.descriptor,18,e.cbLct),O(e.assignment,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,19)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,19,y5(),e.assignment),O(e.entry,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,20)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,20,Dtt(),e.entry),O(e.courseDiscussion,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,21)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,21,oot(),e.courseDiscussion),O(e.language,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,22)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,22,Wst(),e.language),n.endStructure_24f42q$(this.descriptor)},Kit.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N=0,T=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=T.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=T.decodeLongElement_szpzho$(this.descriptor,0),N|=1;break;case 1:i=T.decodeIntElement_szpzho$(this.descriptor,1),N|=2;break;case 2:o=T.decodeIntElement_szpzho$(this.descriptor,2),N|=4;break;case 3:r=T.decodeLongElement_szpzho$(this.descriptor,3),N|=8;break;case 4:s=T.decodeNullableSerializableElement_8viuyw$(this.descriptor,4,Ht.StringSerializer,s),N|=16;break;case 5:a=T.decodeNullableSerializableElement_8viuyw$(this.descriptor,5,Ht.StringSerializer,a),N|=32;break;case 6:c=T.decodeIntElement_szpzho$(this.descriptor,6),N|=64;break;case 7:l=T.decodeLongElement_szpzho$(this.descriptor,7),N|=128;break;case 8:u=T.decodeLongElement_szpzho$(this.descriptor,8),N|=256;break;case 9:h=T.decodeIntElement_szpzho$(this.descriptor,9),N|=512;break;case 10:d=T.decodeLongElement_szpzho$(this.descriptor,10),N|=1024;break;case 11:p=T.decodeIntElement_szpzho$(this.descriptor,11),N|=2048;break;case 12:_=T.decodeIntElement_szpzho$(this.descriptor,12),N|=4096;break;case 13:m=T.decodeIntElement_szpzho$(this.descriptor,13),N|=8192;break;case 14:f=T.decodeLongElement_szpzho$(this.descriptor,14),N|=16384;break;case 15:g=T.decodeBooleanElement_szpzho$(this.descriptor,15),N|=32768;break;case 16:$=T.decodeBooleanElement_szpzho$(this.descriptor,16),N|=65536;break;case 17:E=T.decodeLongElement_szpzho$(this.descriptor,17),N|=131072;break;case 18:y=T.decodeLongElement_szpzho$(this.descriptor,18),N|=262144;break;case 19:b=T.decodeNullableSerializableElement_8viuyw$(this.descriptor,19,y5(),b),N|=524288;break;case 20:S=T.decodeNullableSerializableElement_8viuyw$(this.descriptor,20,Dtt(),S),N|=1048576;break;case 21:v=T.decodeNullableSerializableElement_8viuyw$(this.descriptor,21,oot(),v),N|=2097152;break;case 22:C=T.decodeNullableSerializableElement_8viuyw$(this.descriptor,22,Wst(),C),N|=4194304;break;case-1:break t;default:throw new Vt(e)}return T.endStructure_24f42q$(this.descriptor),Yit(N,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,null)},Kit.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.BooleanSerializer,Ht.BooleanSerializer,Ht.LongSerializer,Ht.LongSerializer,new Bt(y5()),new Bt(Dtt()),new Bt(oot()),new Bt(Wst())]},Kit.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Xit=null;function Jit(){return null===Xit&&new Kit,Xit}function Yit(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C){var N=C||Object.create(Bit.prototype);return(N=Iit(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,N)).assignment=0==(524288&t)?null:y,N.entry=0==(1048576&t)?null:b,N.courseDiscussion=0==(2097152&t)?null:S,N.language=0==(4194304&t)?null:v,N}function Qit(){eot(),this.courseDiscussionUid=X,this.courseDiscussionTitle=null,this.courseDiscussionDesc=null,this.courseDiscussionClazzUid=X,this.courseDiscussionActive=!0,this.courseDiscussionLct=X}function Zit(){tot=this,this.TABLE_ID=130}Bit.$metadata$={kind:c,simpleName:"CourseBlockWithEntityDb",interfaces:[Lit]},Zit.prototype.serializer=function(){return oot()},Zit.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var tot=null;function eot(){return null===tot&&new Zit,tot}function not(){this.descriptor_6it8gi$_0=new Wt("com.ustadmobile.lib.db.entities.CourseDiscussion",this,6),this.descriptor.addElement_ivxn3r$("courseDiscussionUid",!0),this.descriptor.addElement_ivxn3r$("courseDiscussionTitle",!0),this.descriptor.addElement_ivxn3r$("courseDiscussionDesc",!0),this.descriptor.addElement_ivxn3r$("courseDiscussionClazzUid",!0),this.descriptor.addElement_ivxn3r$("courseDiscussionActive",!0),this.descriptor.addElement_ivxn3r$("courseDiscussionLct",!0),iot=this}Object.defineProperty(not.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_6it8gi$_0}}),not.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.courseDiscussionUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.courseDiscussionUid),O(e.courseDiscussionTitle,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.courseDiscussionTitle),O(e.courseDiscussionDesc,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.courseDiscussionDesc),O(e.courseDiscussionClazzUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.courseDiscussionClazzUid),O(e.courseDiscussionActive,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeBooleanElement_qh7jdn$(this.descriptor,4,e.courseDiscussionActive),O(e.courseDiscussionLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.courseDiscussionLct),n.endStructure_24f42q$(this.descriptor)},not.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c=0,l=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=l.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=l.decodeLongElement_szpzho$(this.descriptor,0),c|=1;break;case 1:i=l.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),c|=2;break;case 2:o=l.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),c|=4;break;case 3:r=l.decodeLongElement_szpzho$(this.descriptor,3),c|=8;break;case 4:s=l.decodeBooleanElement_szpzho$(this.descriptor,4),c|=16;break;case 5:a=l.decodeLongElement_szpzho$(this.descriptor,5),c|=32;break;case-1:break t;default:throw new Vt(e)}return l.endStructure_24f42q$(this.descriptor),rot(c,n,i,o,r,s,a,null)},not.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.BooleanSerializer,Ht.LongSerializer]},not.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var iot=null;function oot(){return null===iot&&new not,iot}function rot(t,e,n,i,o,r,s,a){var c=a||Object.create(Qit.prototype);return c.courseDiscussionUid=0==(1&t)?X:e,c.courseDiscussionTitle=0==(2&t)?null:n,c.courseDiscussionDesc=0==(4&t)?null:i,c.courseDiscussionClazzUid=0==(8&t)?X:o,c.courseDiscussionActive=0==(16&t)||r,c.courseDiscussionLct=0==(32&t)?X:s,c}function sot(){lot(),this.cgmUid=X,this.cgmSetUid=X,this.cgmGroupNumber=0,this.cgmPersonUid=X,this.cgmLct=X}function aot(){cot=this,this.TABLE_ID=243}Qit.$metadata$={kind:c,simpleName:"CourseDiscussion",interfaces:[]},aot.prototype.serializer=function(){return dot()},aot.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var cot=null;function lot(){return null===cot&&new aot,cot}function uot(){this.descriptor_m4hk0z$_0=new Wt("com.ustadmobile.lib.db.entities.CourseGroupMember",this,5),this.descriptor.addElement_ivxn3r$("cgmUid",!0),this.descriptor.addElement_ivxn3r$("cgmSetUid",!0),this.descriptor.addElement_ivxn3r$("cgmGroupNumber",!0),this.descriptor.addElement_ivxn3r$("cgmPersonUid",!0),this.descriptor.addElement_ivxn3r$("cgmLct",!0),hot=this}Object.defineProperty(uot.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_m4hk0z$_0}}),uot.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.cgmUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.cgmUid),O(e.cgmSetUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.cgmSetUid),O(e.cgmGroupNumber,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeIntElement_ptg7oe$(this.descriptor,2,e.cgmGroupNumber),O(e.cgmPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.cgmPersonUid),O(e.cgmLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.cgmLct),n.endStructure_24f42q$(this.descriptor)},uot.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a=0,c=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=c.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=c.decodeLongElement_szpzho$(this.descriptor,0),a|=1;break;case 1:i=c.decodeLongElement_szpzho$(this.descriptor,1),a|=2;break;case 2:o=c.decodeIntElement_szpzho$(this.descriptor,2),a|=4;break;case 3:r=c.decodeLongElement_szpzho$(this.descriptor,3),a|=8;break;case 4:s=c.decodeLongElement_szpzho$(this.descriptor,4),a|=16;break;case-1:break t;default:throw new Vt(e)}return c.endStructure_24f42q$(this.descriptor),pot(a,n,i,o,r,s,null)},uot.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer]},uot.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var hot=null;function dot(){return null===hot&&new uot,hot}function pot(t,e,n,i,o,r,s){var a=s||Object.create(sot.prototype);return a.cgmUid=0==(1&t)?X:e,a.cgmSetUid=0==(2&t)?X:n,a.cgmGroupNumber=0==(4&t)?0:i,a.cgmPersonUid=0==(8&t)?X:o,a.cgmLct=0==(16&t)?X:r,a}function _ot(){got(),zct.call(this),this.member=null}function mot(){fot=this}sot.$metadata$={kind:c,simpleName:"CourseGroupMember",interfaces:[]},mot.prototype.serializer=function(){return yot()},mot.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var fot=null;function got(){return null===fot&&new mot,fot}function $ot(){this.descriptor_9i5n82$_0=new Wt("com.ustadmobile.lib.db.entities.CourseGroupMemberPerson",this,25),this.descriptor.addElement_ivxn3r$("personUid",!0),this.descriptor.addElement_ivxn3r$("username",!0),this.descriptor.addElement_ivxn3r$("firstNames",!0),this.descriptor.addElement_ivxn3r$("lastName",!0),this.descriptor.addElement_ivxn3r$("emailAddr",!0),this.descriptor.addElement_ivxn3r$("phoneNum",!0),this.descriptor.addElement_ivxn3r$("gender",!0),this.descriptor.addElement_ivxn3r$("active",!0),this.descriptor.addElement_ivxn3r$("admin",!0),this.descriptor.addElement_ivxn3r$("personNotes",!0),this.descriptor.addElement_ivxn3r$("fatherName",!0),this.descriptor.addElement_ivxn3r$("fatherNumber",!0),this.descriptor.addElement_ivxn3r$("motherName",!0),this.descriptor.addElement_ivxn3r$("motherNum",!0),this.descriptor.addElement_ivxn3r$("dateOfBirth",!0),this.descriptor.addElement_ivxn3r$("personAddress",!0),this.descriptor.addElement_ivxn3r$("personOrgId",!0),this.descriptor.addElement_ivxn3r$("personGroupUid",!0),this.descriptor.addElement_ivxn3r$("personMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("personLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("personLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("personLct",!0),this.descriptor.addElement_ivxn3r$("personCountry",!0),this.descriptor.addElement_ivxn3r$("personType",!0),this.descriptor.addElement_ivxn3r$("member",!0),Eot=this}Object.defineProperty($ot.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_9i5n82$_0}}),$ot.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.personUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.personUid),O(e.username,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.username),O(e.firstNames,"")&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.firstNames),O(e.lastName,"")&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,3,Ht.StringSerializer,e.lastName),O(e.emailAddr,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,4,Ht.StringSerializer,e.emailAddr),O(e.phoneNum,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,5,Ht.StringSerializer,e.phoneNum),O(e.gender,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.gender),O(e.active,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeBooleanElement_qh7jdn$(this.descriptor,7,e.active),O(e.admin,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeBooleanElement_qh7jdn$(this.descriptor,8,e.admin),O(e.personNotes,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,9,Ht.StringSerializer,e.personNotes),O(e.fatherName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,10,Ht.StringSerializer,e.fatherName),O(e.fatherNumber,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,11,Ht.StringSerializer,e.fatherNumber),O(e.motherName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,12,Ht.StringSerializer,e.motherName),O(e.motherNum,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,13,Ht.StringSerializer,e.motherNum),O(e.dateOfBirth,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeLongElement_j0o2mv$(this.descriptor,14,e.dateOfBirth),O(e.personAddress,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,15,Ht.StringSerializer,e.personAddress),O(e.personOrgId,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,16)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,16,Ht.StringSerializer,e.personOrgId),O(e.personGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,17)||n.encodeLongElement_j0o2mv$(this.descriptor,17,e.personGroupUid),O(e.personMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,18)||n.encodeLongElement_j0o2mv$(this.descriptor,18,e.personMasterChangeSeqNum),O(e.personLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,19)||n.encodeLongElement_j0o2mv$(this.descriptor,19,e.personLocalChangeSeqNum),O(e.personLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,20)||n.encodeIntElement_ptg7oe$(this.descriptor,20,e.personLastChangedBy),O(e.personLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,21)||n.encodeLongElement_j0o2mv$(this.descriptor,21,e.personLct),O(e.personCountry,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,22)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,22,Ht.StringSerializer,e.personCountry),O(e.personType,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,23)||n.encodeIntElement_ptg7oe$(this.descriptor,23,e.personType),O(e.member,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,24)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,24,dot(),e.member),n.endStructure_24f42q$(this.descriptor)},$ot.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L=0,z=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=z.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=z.decodeLongElement_szpzho$(this.descriptor,0),L|=1;break;case 1:i=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),L|=2;break;case 2:o=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),L|=4;break;case 3:r=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,3,Ht.StringSerializer,r),L|=8;break;case 4:s=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,4,Ht.StringSerializer,s),L|=16;break;case 5:a=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,5,Ht.StringSerializer,a),L|=32;break;case 6:c=z.decodeIntElement_szpzho$(this.descriptor,6),L|=64;break;case 7:l=z.decodeBooleanElement_szpzho$(this.descriptor,7),L|=128;break;case 8:u=z.decodeBooleanElement_szpzho$(this.descriptor,8),L|=256;break;case 9:h=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,9,Ht.StringSerializer,h),L|=512;break;case 10:d=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,10,Ht.StringSerializer,d),L|=1024;break;case 11:p=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,11,Ht.StringSerializer,p),L|=2048;break;case 12:_=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,12,Ht.StringSerializer,_),L|=4096;break;case 13:m=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,13,Ht.StringSerializer,m),L|=8192;break;case 14:f=z.decodeLongElement_szpzho$(this.descriptor,14),L|=16384;break;case 15:g=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,15,Ht.StringSerializer,g),L|=32768;break;case 16:$=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,16,Ht.StringSerializer,$),L|=65536;break;case 17:E=z.decodeLongElement_szpzho$(this.descriptor,17),L|=131072;break;case 18:y=z.decodeLongElement_szpzho$(this.descriptor,18),L|=262144;break;case 19:b=z.decodeLongElement_szpzho$(this.descriptor,19),L|=524288;break;case 20:S=z.decodeIntElement_szpzho$(this.descriptor,20),L|=1048576;break;case 21:v=z.decodeLongElement_szpzho$(this.descriptor,21),L|=2097152;break;case 22:C=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,22,Ht.StringSerializer,C),L|=4194304;break;case 23:N=z.decodeIntElement_szpzho$(this.descriptor,23),L|=8388608;break;case 24:T=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,24,dot(),T),L|=16777216;break;case-1:break t;default:throw new Vt(e)}return z.endStructure_24f42q$(this.descriptor),bot(L,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,null)},$ot.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.BooleanSerializer,Ht.BooleanSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.IntSerializer,new Bt(dot())]},$ot.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Eot=null;function yot(){return null===Eot&&new $ot,Eot}function bot(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T){var L=T||Object.create(_ot.prototype);return(L=Uct(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,L)).member=0==(16777216&t)?null:N,L}function Sot(){Not(),this.cgsUid=X,this.cgsName=null,this.cgsTotalGroups=4,this.cgsActive=!0,this.cgsClazzUid=X,this.cgsLct=X}function vot(){Cot=this,this.TABLE_ID=242}_ot.$metadata$={kind:c,simpleName:"CourseGroupMemberPerson",interfaces:[zct]},vot.prototype.serializer=function(){return zot()},vot.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Cot=null;function Not(){return null===Cot&&new vot,Cot}function Tot(){this.descriptor_bdkokp$_0=new Wt("com.ustadmobile.lib.db.entities.CourseGroupSet",this,6),this.descriptor.addElement_ivxn3r$("cgsUid",!0),this.descriptor.addElement_ivxn3r$("cgsName",!0),this.descriptor.addElement_ivxn3r$("cgsTotalGroups",!0),this.descriptor.addElement_ivxn3r$("cgsActive",!0),this.descriptor.addElement_ivxn3r$("cgsClazzUid",!0),this.descriptor.addElement_ivxn3r$("cgsLct",!0),Lot=this}Object.defineProperty(Tot.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_bdkokp$_0}}),Tot.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.cgsUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.cgsUid),O(e.cgsName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.cgsName),O(e.cgsTotalGroups,4)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeIntElement_ptg7oe$(this.descriptor,2,e.cgsTotalGroups),O(e.cgsActive,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeBooleanElement_qh7jdn$(this.descriptor,3,e.cgsActive),O(e.cgsClazzUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.cgsClazzUid),O(e.cgsLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.cgsLct),n.endStructure_24f42q$(this.descriptor)},Tot.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c=0,l=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=l.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=l.decodeLongElement_szpzho$(this.descriptor,0),c|=1;break;case 1:i=l.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),c|=2;break;case 2:o=l.decodeIntElement_szpzho$(this.descriptor,2),c|=4;break;case 3:r=l.decodeBooleanElement_szpzho$(this.descriptor,3),c|=8;break;case 4:s=l.decodeLongElement_szpzho$(this.descriptor,4),c|=16;break;case 5:a=l.decodeLongElement_szpzho$(this.descriptor,5),c|=32;break;case-1:break t;default:throw new Vt(e)}return l.endStructure_24f42q$(this.descriptor),wot(c,n,i,o,r,s,a,null)},Tot.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.BooleanSerializer,Ht.LongSerializer,Ht.LongSerializer]},Tot.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Lot=null;function zot(){return null===Lot&&new Tot,Lot}function wot(t,e,n,i,o,r,s,a){var c=a||Object.create(Sot.prototype);return c.cgsUid=0==(1&t)?X:e,c.cgsName=0==(2&t)?null:n,c.cgsTotalGroups=0==(4&t)?4:i,c.cgsActive=0==(8&t)||o,c.cgsClazzUid=0==(16&t)?X:r,c.cgsLct=0==(32&t)?X:s,c}function Oot(){xot(),this.coursePictureUid=X,this.coursePictureClazzUid=X,this.coursePictureMasterCsn=X,this.coursePictureLocalCsn=X,this.coursePictureLastChangedBy=0,this.coursePictureLct=X,this.coursePictureUri=null,this.coursePictureMd5=null,this.coursePictureFileSize=0,this.coursePictureTimestamp=X,this.coursePictureMimeType=null,this.coursePictureActive=!0}function Rot(){Aot=this,this.TABLE_ID=125}Sot.$metadata$={kind:c,simpleName:"CourseGroupSet",interfaces:[]},Rot.prototype.serializer=function(){return Dot()},Rot.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Aot=null;function xot(){return null===Aot&&new Rot,Aot}function Iot(){this.descriptor_6oxhr2$_0=new Wt("com.ustadmobile.lib.db.entities.CoursePicture",this,12),this.descriptor.addElement_ivxn3r$("coursePictureUid",!0),this.descriptor.addElement_ivxn3r$("coursePictureClazzUid",!0),this.descriptor.addElement_ivxn3r$("coursePictureMasterCsn",!0),this.descriptor.addElement_ivxn3r$("coursePictureLocalCsn",!0),this.descriptor.addElement_ivxn3r$("coursePictureLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("coursePictureLct",!0),this.descriptor.addElement_ivxn3r$("coursePictureUri",!0),this.descriptor.addElement_ivxn3r$("coursePictureMd5",!0),this.descriptor.addElement_ivxn3r$("coursePictureFileSize",!0),this.descriptor.addElement_ivxn3r$("coursePictureTimestamp",!0),this.descriptor.addElement_ivxn3r$("coursePictureMimeType",!0),this.descriptor.addElement_ivxn3r$("coursePictureActive",!0),Uot=this}Oot.prototype.equals=function(t){var n;return this===t||!(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))&&(e.isType(t,Oot)||Jt(),!!(O(this.coursePictureUid,t.coursePictureUid)&&O(this.coursePictureClazzUid,t.coursePictureClazzUid)&&O(this.coursePictureMasterCsn,t.coursePictureMasterCsn)&&O(this.coursePictureLocalCsn,t.coursePictureLocalCsn)&&this.coursePictureLastChangedBy===t.coursePictureLastChangedBy&&O(this.coursePictureLct,t.coursePictureLct)&&O(this.coursePictureUri,t.coursePictureUri)&&O(this.coursePictureMd5,t.coursePictureMd5)&&this.coursePictureFileSize===t.coursePictureFileSize&&O(this.coursePictureTimestamp,t.coursePictureTimestamp)&&O(this.coursePictureMimeType,t.coursePictureMimeType)&&this.coursePictureActive===t.coursePictureActive))},Oot.prototype.hashCode=function(){var t,e,n,i,o,r,s=Yt(this.coursePictureUid);return s=(31*(s=(31*(s=(31*(s=(31*(s=(31*(s=(31*(s=(31*(s=(31*(s=(31*(s=(31*(s=(31*s|0)+Yt(this.coursePictureClazzUid)|0)|0)+Yt(this.coursePictureMasterCsn)|0)|0)+Yt(this.coursePictureLocalCsn)|0)|0)+this.coursePictureLastChangedBy|0)|0)+Yt(this.coursePictureLct)|0)|0)+(null!=(e=null!=(t=this.coursePictureUri)?Yt(t):null)?e:0)|0)|0)+(null!=(i=null!=(n=this.coursePictureMd5)?Yt(n):null)?i:0)|0)|0)+this.coursePictureFileSize|0)|0)+Yt(this.coursePictureTimestamp)|0)|0)+(null!=(r=null!=(o=this.coursePictureMimeType)?Yt(o):null)?r:0)|0)|0)+Yt(this.coursePictureActive)|0},Object.defineProperty(Iot.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_6oxhr2$_0}}),Iot.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.coursePictureUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.coursePictureUid),O(e.coursePictureClazzUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.coursePictureClazzUid),O(e.coursePictureMasterCsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.coursePictureMasterCsn),O(e.coursePictureLocalCsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.coursePictureLocalCsn),O(e.coursePictureLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeIntElement_ptg7oe$(this.descriptor,4,e.coursePictureLastChangedBy),O(e.coursePictureLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.coursePictureLct),O(e.coursePictureUri,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,6,Ht.StringSerializer,e.coursePictureUri),O(e.coursePictureMd5,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,7,Ht.StringSerializer,e.coursePictureMd5),O(e.coursePictureFileSize,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeIntElement_ptg7oe$(this.descriptor,8,e.coursePictureFileSize),O(e.coursePictureTimestamp,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeLongElement_j0o2mv$(this.descriptor,9,e.coursePictureTimestamp),O(e.coursePictureMimeType,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,10,Ht.StringSerializer,e.coursePictureMimeType),O(e.coursePictureActive,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeBooleanElement_qh7jdn$(this.descriptor,11,e.coursePictureActive),n.endStructure_24f42q$(this.descriptor)},Iot.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_=0,m=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=m.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=m.decodeLongElement_szpzho$(this.descriptor,0),_|=1;break;case 1:i=m.decodeLongElement_szpzho$(this.descriptor,1),_|=2;break;case 2:o=m.decodeLongElement_szpzho$(this.descriptor,2),_|=4;break;case 3:r=m.decodeLongElement_szpzho$(this.descriptor,3),_|=8;break;case 4:s=m.decodeIntElement_szpzho$(this.descriptor,4),_|=16;break;case 5:a=m.decodeLongElement_szpzho$(this.descriptor,5),_|=32;break;case 6:c=m.decodeNullableSerializableElement_8viuyw$(this.descriptor,6,Ht.StringSerializer,c),_|=64;break;case 7:l=m.decodeNullableSerializableElement_8viuyw$(this.descriptor,7,Ht.StringSerializer,l),_|=128;break;case 8:u=m.decodeIntElement_szpzho$(this.descriptor,8),_|=256;break;case 9:h=m.decodeLongElement_szpzho$(this.descriptor,9),_|=512;break;case 10:d=m.decodeNullableSerializableElement_8viuyw$(this.descriptor,10,Ht.StringSerializer,d),_|=1024;break;case 11:p=m.decodeBooleanElement_szpzho$(this.descriptor,11),_|=2048;break;case-1:break t;default:throw new Vt(e)}return m.endStructure_24f42q$(this.descriptor),Pot(_,n,i,o,r,s,a,c,l,u,h,d,p,null)},Iot.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.BooleanSerializer]},Iot.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Uot=null;function Dot(){return null===Uot&&new Iot,Uot}function Pot(t,e,n,i,o,r,s,a,c,l,u,h,d,p){var _=p||Object.create(Oot.prototype);return _.coursePictureUid=0==(1&t)?X:e,_.coursePictureClazzUid=0==(2&t)?X:n,_.coursePictureMasterCsn=0==(4&t)?X:i,_.coursePictureLocalCsn=0==(8&t)?X:o,_.coursePictureLastChangedBy=0==(16&t)?0:r,_.coursePictureLct=0==(32&t)?X:s,_.coursePictureUri=0==(64&t)?null:a,_.coursePictureMd5=0==(128&t)?null:c,_.coursePictureFileSize=0==(256&t)?0:l,_.coursePictureTimestamp=0==(512&t)?X:u,_.coursePictureMimeType=0==(1024&t)?null:h,_.coursePictureActive=0==(2048&t)||d,_}function Mot(){Got(),this.ctUid=X,this.ctTitle=null,this.ctTerminology=null,this.ctLct=X}function kot(){jot=this,this.TABLE_ID=450}Oot.$metadata$={kind:c,simpleName:"CoursePicture",interfaces:[]},kot.prototype.serializer=function(){return Bot()},kot.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var jot=null;function Got(){return null===jot&&new kot,jot}function qot(){this.descriptor_hh7kkp$_0=new Wt("com.ustadmobile.lib.db.entities.CourseTerminology",this,4),this.descriptor.addElement_ivxn3r$("ctUid",!0),this.descriptor.addElement_ivxn3r$("ctTitle",!0),this.descriptor.addElement_ivxn3r$("ctTerminology",!0),this.descriptor.addElement_ivxn3r$("ctLct",!0),Fot=this}Object.defineProperty(qot.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_hh7kkp$_0}}),qot.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.ctUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.ctUid),O(e.ctTitle,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.ctTitle),O(e.ctTerminology,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.ctTerminology),O(e.ctLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.ctLct),n.endStructure_24f42q$(this.descriptor)},qot.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s=0,a=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=a.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=a.decodeLongElement_szpzho$(this.descriptor,0),s|=1;break;case 1:i=a.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),s|=2;break;case 2:o=a.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),s|=4;break;case 3:r=a.decodeLongElement_szpzho$(this.descriptor,3),s|=8;break;case-1:break t;default:throw new Vt(e)}return a.endStructure_24f42q$(this.descriptor),Wot(s,n,i,o,r,null)},qot.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer]},qot.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Fot=null;function Bot(){return null===Fot&&new qot,Fot}function Wot(t,e,n,i,o,r){var s=r||Object.create(Mot.prototype);return s.ctUid=0==(1&t)?X:e,s.ctTitle=0==(2&t)?null:n,s.ctTerminology=0==(4&t)?null:i,s.ctLct=0==(8&t)?X:o,s}function Hot(){Xot(),this.discussionPostUid=X,this.discussionPostTitle=null,this.discussionPostMessage=null,this.discussionPostStartDate=X,this.discussionPostDiscussionTopicUid=X,this.discussionPostVisible=!0,this.discussionPostArchive=!1,this.discussionPostStartedPersonUid=X,this.discussionPostClazzUid=X,this.discussionPostLct=X}function Vot(){Kot=this,this.TABLE_ID=132}Mot.$metadata$={kind:c,simpleName:"CourseTerminology",interfaces:[]},Vot.prototype.serializer=function(){return Qot()},Vot.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Kot=null;function Xot(){return null===Kot&&new Vot,Kot}function Jot(){this.descriptor_mf0i43$_0=new Wt("com.ustadmobile.lib.db.entities.DiscussionPost",this,10),this.descriptor.addElement_ivxn3r$("discussionPostUid",!0),this.descriptor.addElement_ivxn3r$("discussionPostTitle",!0),this.descriptor.addElement_ivxn3r$("discussionPostMessage",!0),this.descriptor.addElement_ivxn3r$("discussionPostStartDate",!0),this.descriptor.addElement_ivxn3r$("discussionPostDiscussionTopicUid",!0),this.descriptor.addElement_ivxn3r$("discussionPostVisible",!0),this.descriptor.addElement_ivxn3r$("discussionPostArchive",!0),this.descriptor.addElement_ivxn3r$("discussionPostStartedPersonUid",!0),this.descriptor.addElement_ivxn3r$("discussionPostClazzUid",!0),this.descriptor.addElement_ivxn3r$("discussionPostLct",!0),Yot=this}Object.defineProperty(Jot.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_mf0i43$_0}}),Jot.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.discussionPostUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.discussionPostUid),O(e.discussionPostTitle,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.discussionPostTitle),O(e.discussionPostMessage,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.discussionPostMessage),O(e.discussionPostStartDate,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.discussionPostStartDate),O(e.discussionPostDiscussionTopicUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.discussionPostDiscussionTopicUid),O(e.discussionPostVisible,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeBooleanElement_qh7jdn$(this.descriptor,5,e.discussionPostVisible),O(e.discussionPostArchive,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeBooleanElement_qh7jdn$(this.descriptor,6,e.discussionPostArchive),O(e.discussionPostStartedPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.discussionPostStartedPersonUid),O(e.discussionPostClazzUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.discussionPostClazzUid),O(e.discussionPostLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeLongElement_j0o2mv$(this.descriptor,9,e.discussionPostLct),n.endStructure_24f42q$(this.descriptor)},Jot.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d=0,p=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=p.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=p.decodeLongElement_szpzho$(this.descriptor,0),d|=1;break;case 1:i=p.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),d|=2;break;case 2:o=p.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),d|=4;break;case 3:r=p.decodeLongElement_szpzho$(this.descriptor,3),d|=8;break;case 4:s=p.decodeLongElement_szpzho$(this.descriptor,4),d|=16;break;case 5:a=p.decodeBooleanElement_szpzho$(this.descriptor,5),d|=32;break;case 6:c=p.decodeBooleanElement_szpzho$(this.descriptor,6),d|=64;break;case 7:l=p.decodeLongElement_szpzho$(this.descriptor,7),d|=128;break;case 8:u=p.decodeLongElement_szpzho$(this.descriptor,8),d|=256;break;case 9:h=p.decodeLongElement_szpzho$(this.descriptor,9),d|=512;break;case-1:break t;default:throw new Vt(e)}return p.endStructure_24f42q$(this.descriptor),Zot(d,n,i,o,r,s,a,c,l,u,h,null)},Jot.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.BooleanSerializer,Ht.BooleanSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer]},Jot.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Yot=null;function Qot(){return null===Yot&&new Jot,Yot}function Zot(t,e,n,i,o,r,s,a,c,l,u,h){var d=h||Object.create(Hot.prototype);return d.discussionPostUid=0==(1&t)?X:e,d.discussionPostTitle=0==(2&t)?null:n,d.discussionPostMessage=0==(4&t)?null:i,d.discussionPostStartDate=0==(8&t)?X:o,d.discussionPostDiscussionTopicUid=0==(16&t)?X:r,d.discussionPostVisible=0==(32&t)||s,d.discussionPostArchive=0!=(64&t)&&a,d.discussionPostStartedPersonUid=0==(128&t)?X:c,d.discussionPostClazzUid=0==(256&t)?X:l,d.discussionPostLct=0==(512&t)?X:u,d}function trt(){irt(),Hot.call(this),this.authorPersonFirstNames=null,this.authorPersonLastName=null,this.postLatestMessage=null,this.postRepliesCount=0,this.postLatestMessageTimestamp=X}function ert(){nrt=this}Hot.$metadata$={kind:c,simpleName:"DiscussionPost",interfaces:[]},ert.prototype.serializer=function(){return srt()},ert.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var nrt=null;function irt(){return null===nrt&&new ert,nrt}function ort(){this.descriptor_l7n6y5$_0=new Wt("com.ustadmobile.lib.db.entities.DiscussionPostWithDetails",this,15),this.descriptor.addElement_ivxn3r$("discussionPostUid",!0),this.descriptor.addElement_ivxn3r$("discussionPostTitle",!0),this.descriptor.addElement_ivxn3r$("discussionPostMessage",!0),this.descriptor.addElement_ivxn3r$("discussionPostStartDate",!0),this.descriptor.addElement_ivxn3r$("discussionPostDiscussionTopicUid",!0),this.descriptor.addElement_ivxn3r$("discussionPostVisible",!0),this.descriptor.addElement_ivxn3r$("discussionPostArchive",!0),this.descriptor.addElement_ivxn3r$("discussionPostStartedPersonUid",!0),this.descriptor.addElement_ivxn3r$("discussionPostClazzUid",!0),this.descriptor.addElement_ivxn3r$("discussionPostLct",!0),this.descriptor.addElement_ivxn3r$("authorPersonFirstNames",!0),this.descriptor.addElement_ivxn3r$("authorPersonLastName",!0),this.descriptor.addElement_ivxn3r$("postLatestMessage",!0),this.descriptor.addElement_ivxn3r$("postRepliesCount",!0),this.descriptor.addElement_ivxn3r$("postLatestMessageTimestamp",!0),rrt=this}Object.defineProperty(ort.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_l7n6y5$_0}}),ort.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.discussionPostUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.discussionPostUid),O(e.discussionPostTitle,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.discussionPostTitle),O(e.discussionPostMessage,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.discussionPostMessage),O(e.discussionPostStartDate,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.discussionPostStartDate),O(e.discussionPostDiscussionTopicUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.discussionPostDiscussionTopicUid),O(e.discussionPostVisible,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeBooleanElement_qh7jdn$(this.descriptor,5,e.discussionPostVisible),O(e.discussionPostArchive,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeBooleanElement_qh7jdn$(this.descriptor,6,e.discussionPostArchive),O(e.discussionPostStartedPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.discussionPostStartedPersonUid),O(e.discussionPostClazzUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.discussionPostClazzUid),O(e.discussionPostLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeLongElement_j0o2mv$(this.descriptor,9,e.discussionPostLct),O(e.authorPersonFirstNames,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,10,Ht.StringSerializer,e.authorPersonFirstNames),O(e.authorPersonLastName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,11,Ht.StringSerializer,e.authorPersonLastName),O(e.postLatestMessage,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,12,Ht.StringSerializer,e.postLatestMessage),O(e.postRepliesCount,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeIntElement_ptg7oe$(this.descriptor,13,e.postRepliesCount),O(e.postLatestMessageTimestamp,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeLongElement_j0o2mv$(this.descriptor,14,e.postLatestMessageTimestamp),n.endStructure_24f42q$(this.descriptor)},ort.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g=0,$=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=$.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=$.decodeLongElement_szpzho$(this.descriptor,0),g|=1;break;case 1:i=$.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),g|=2;break;case 2:o=$.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),g|=4;break;case 3:r=$.decodeLongElement_szpzho$(this.descriptor,3),g|=8;break;case 4:s=$.decodeLongElement_szpzho$(this.descriptor,4),g|=16;break;case 5:a=$.decodeBooleanElement_szpzho$(this.descriptor,5),g|=32;break;case 6:c=$.decodeBooleanElement_szpzho$(this.descriptor,6),g|=64;break;case 7:l=$.decodeLongElement_szpzho$(this.descriptor,7),g|=128;break;case 8:u=$.decodeLongElement_szpzho$(this.descriptor,8),g|=256;break;case 9:h=$.decodeLongElement_szpzho$(this.descriptor,9),g|=512;break;case 10:d=$.decodeNullableSerializableElement_8viuyw$(this.descriptor,10,Ht.StringSerializer,d),g|=1024;break;case 11:p=$.decodeNullableSerializableElement_8viuyw$(this.descriptor,11,Ht.StringSerializer,p),g|=2048;break;case 12:_=$.decodeNullableSerializableElement_8viuyw$(this.descriptor,12,Ht.StringSerializer,_),g|=4096;break;case 13:m=$.decodeIntElement_szpzho$(this.descriptor,13),g|=8192;break;case 14:f=$.decodeLongElement_szpzho$(this.descriptor,14),g|=16384;break;case-1:break t;default:throw new Vt(e)}return $.endStructure_24f42q$(this.descriptor),art(g,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,null)},ort.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.BooleanSerializer,Ht.BooleanSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.LongSerializer]},ort.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var rrt=null;function srt(){return null===rrt&&new ort,rrt}function art(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f){var g=f||Object.create(trt.prototype);return(g=Zot(t,e,n,i,o,r,s,a,c,l,u,g)).authorPersonFirstNames=0==(1024&t)?null:h,g.authorPersonLastName=0==(2048&t)?null:d,g.postLatestMessage=0==(4096&t)?null:p,g.postRepliesCount=0==(8192&t)?0:_,g.postLatestMessageTimestamp=0==(16384&t)?X:m,g}function crt(){hrt(),this.discussionTopicUid=X,this.discussionTopicTitle=null,this.discussionTopicDesc=null,this.discussionTopicStartDate=X,this.discussionTopicCourseDiscussionUid=X,this.discussionTopicVisible=!0,this.discussionTopicArchive=!1,this.discussionTopicIndex=0,this.discussionTopicClazzUid=X,this.discussionTopicLct=X}function lrt(){urt=this,this.TABLE_ID=131}trt.$metadata$={kind:c,simpleName:"DiscussionPostWithDetails",interfaces:[Hot]},lrt.prototype.serializer=function(){return _rt()},lrt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var urt=null;function hrt(){return null===urt&&new lrt,urt}function drt(){this.descriptor_yf6dwm$_0=new Wt("com.ustadmobile.lib.db.entities.DiscussionTopic",this,10),this.descriptor.addElement_ivxn3r$("discussionTopicUid",!0),this.descriptor.addElement_ivxn3r$("discussionTopicTitle",!0),this.descriptor.addElement_ivxn3r$("discussionTopicDesc",!0),this.descriptor.addElement_ivxn3r$("discussionTopicStartDate",!0),this.descriptor.addElement_ivxn3r$("discussionTopicCourseDiscussionUid",!0),this.descriptor.addElement_ivxn3r$("discussionTopicVisible",!0),this.descriptor.addElement_ivxn3r$("discussionTopicArchive",!0),this.descriptor.addElement_ivxn3r$("discussionTopicIndex",!0),this.descriptor.addElement_ivxn3r$("discussionTopicClazzUid",!0),this.descriptor.addElement_ivxn3r$("discussionTopicLct",!0),prt=this}Object.defineProperty(drt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_yf6dwm$_0}}),drt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.discussionTopicUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.discussionTopicUid),O(e.discussionTopicTitle,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.discussionTopicTitle),O(e.discussionTopicDesc,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.discussionTopicDesc),O(e.discussionTopicStartDate,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.discussionTopicStartDate),O(e.discussionTopicCourseDiscussionUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.discussionTopicCourseDiscussionUid),O(e.discussionTopicVisible,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeBooleanElement_qh7jdn$(this.descriptor,5,e.discussionTopicVisible),O(e.discussionTopicArchive,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeBooleanElement_qh7jdn$(this.descriptor,6,e.discussionTopicArchive),O(e.discussionTopicIndex,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeIntElement_ptg7oe$(this.descriptor,7,e.discussionTopicIndex),O(e.discussionTopicClazzUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.discussionTopicClazzUid),O(e.discussionTopicLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeLongElement_j0o2mv$(this.descriptor,9,e.discussionTopicLct),n.endStructure_24f42q$(this.descriptor)},drt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d=0,p=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=p.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=p.decodeLongElement_szpzho$(this.descriptor,0),d|=1;break;case 1:i=p.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),d|=2;break;case 2:o=p.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),d|=4;break;case 3:r=p.decodeLongElement_szpzho$(this.descriptor,3),d|=8;break;case 4:s=p.decodeLongElement_szpzho$(this.descriptor,4),d|=16;break;case 5:a=p.decodeBooleanElement_szpzho$(this.descriptor,5),d|=32;break;case 6:c=p.decodeBooleanElement_szpzho$(this.descriptor,6),d|=64;break;case 7:l=p.decodeIntElement_szpzho$(this.descriptor,7),d|=128;break;case 8:u=p.decodeLongElement_szpzho$(this.descriptor,8),d|=256;break;case 9:h=p.decodeLongElement_szpzho$(this.descriptor,9),d|=512;break;case-1:break t;default:throw new Vt(e)}return p.endStructure_24f42q$(this.descriptor),mrt(d,n,i,o,r,s,a,c,l,u,h,null)},drt.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.BooleanSerializer,Ht.BooleanSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer]},drt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var prt=null;function _rt(){return null===prt&&new drt,prt}function mrt(t,e,n,i,o,r,s,a,c,l,u,h){var d=h||Object.create(crt.prototype);return d.discussionTopicUid=0==(1&t)?X:e,d.discussionTopicTitle=0==(2&t)?null:n,d.discussionTopicDesc=0==(4&t)?null:i,d.discussionTopicStartDate=0==(8&t)?X:o,d.discussionTopicCourseDiscussionUid=0==(16&t)?X:r,d.discussionTopicVisible=0==(32&t)||s,d.discussionTopicArchive=0!=(64&t)&&a,d.discussionTopicIndex=0==(128&t)?0:c,d.discussionTopicClazzUid=0==(256&t)?X:l,d.discussionTopicLct=0==(512&t)?X:u,d}function frt(){Ert(),crt.call(this),this.numPosts=0,this.lastActiveTimestamp=X}function grt(){$rt=this}crt.$metadata$={kind:c,simpleName:"DiscussionTopic",interfaces:[]},frt.prototype.equals=function(t){var n;return this===t||!(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))&&(e.isType(t,frt)||Jt(),this.numPosts===t.numPosts&&!!O(this.lastActiveTimestamp,t.lastActiveTimestamp))},frt.prototype.hashCode=function(){var t=this.numPosts;return t=(31*t|0)+Yt(this.lastActiveTimestamp)|0},grt.prototype.serializer=function(){return Srt()},grt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var $rt=null;function Ert(){return null===$rt&&new grt,$rt}function yrt(){this.descriptor_d0t0ob$_0=new Wt("com.ustadmobile.lib.db.entities.DiscussionTopicListDetail",this,12),this.descriptor.addElement_ivxn3r$("discussionTopicUid",!0),this.descriptor.addElement_ivxn3r$("discussionTopicTitle",!0),this.descriptor.addElement_ivxn3r$("discussionTopicDesc",!0),this.descriptor.addElement_ivxn3r$("discussionTopicStartDate",!0),this.descriptor.addElement_ivxn3r$("discussionTopicCourseDiscussionUid",!0),this.descriptor.addElement_ivxn3r$("discussionTopicVisible",!0),this.descriptor.addElement_ivxn3r$("discussionTopicArchive",!0),this.descriptor.addElement_ivxn3r$("discussionTopicIndex",!0),this.descriptor.addElement_ivxn3r$("discussionTopicClazzUid",!0),this.descriptor.addElement_ivxn3r$("discussionTopicLct",!0),this.descriptor.addElement_ivxn3r$("numPosts",!0),this.descriptor.addElement_ivxn3r$("lastActiveTimestamp",!0),brt=this}Object.defineProperty(yrt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_d0t0ob$_0}}),yrt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.discussionTopicUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.discussionTopicUid),O(e.discussionTopicTitle,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.discussionTopicTitle),O(e.discussionTopicDesc,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.discussionTopicDesc),O(e.discussionTopicStartDate,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.discussionTopicStartDate),O(e.discussionTopicCourseDiscussionUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.discussionTopicCourseDiscussionUid),O(e.discussionTopicVisible,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeBooleanElement_qh7jdn$(this.descriptor,5,e.discussionTopicVisible),O(e.discussionTopicArchive,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeBooleanElement_qh7jdn$(this.descriptor,6,e.discussionTopicArchive),O(e.discussionTopicIndex,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeIntElement_ptg7oe$(this.descriptor,7,e.discussionTopicIndex),O(e.discussionTopicClazzUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.discussionTopicClazzUid),O(e.discussionTopicLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeLongElement_j0o2mv$(this.descriptor,9,e.discussionTopicLct),O(e.numPosts,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeIntElement_ptg7oe$(this.descriptor,10,e.numPosts),O(e.lastActiveTimestamp,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeLongElement_j0o2mv$(this.descriptor,11,e.lastActiveTimestamp),n.endStructure_24f42q$(this.descriptor)},yrt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_=0,m=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=m.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=m.decodeLongElement_szpzho$(this.descriptor,0),_|=1;break;case 1:i=m.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),_|=2;break;case 2:o=m.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),_|=4;break;case 3:r=m.decodeLongElement_szpzho$(this.descriptor,3),_|=8;break;case 4:s=m.decodeLongElement_szpzho$(this.descriptor,4),_|=16;break;case 5:a=m.decodeBooleanElement_szpzho$(this.descriptor,5),_|=32;break;case 6:c=m.decodeBooleanElement_szpzho$(this.descriptor,6),_|=64;break;case 7:l=m.decodeIntElement_szpzho$(this.descriptor,7),_|=128;break;case 8:u=m.decodeLongElement_szpzho$(this.descriptor,8),_|=256;break;case 9:h=m.decodeLongElement_szpzho$(this.descriptor,9),_|=512;break;case 10:d=m.decodeIntElement_szpzho$(this.descriptor,10),_|=1024;break;case 11:p=m.decodeLongElement_szpzho$(this.descriptor,11),_|=2048;break;case-1:break t;default:throw new Vt(e)}return m.endStructure_24f42q$(this.descriptor),vrt(_,n,i,o,r,s,a,c,l,u,h,d,p,null)},yrt.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.BooleanSerializer,Ht.BooleanSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer]},yrt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var brt=null;function Srt(){return null===brt&&new yrt,brt}function vrt(t,e,n,i,o,r,s,a,c,l,u,h,d,p){var _=p||Object.create(frt.prototype);return(_=mrt(t,e,n,i,o,r,s,a,c,l,u,_)).numPosts=0==(1024&t)?0:h,_.lastActiveTimestamp=0==(2048&t)?X:d,_}function Crt(){Lrt(),this.contentCategoryUid=X,this.categoryName=null,this.contentCategorySchemaUid=X,this.schemaName=null}function Nrt(){Trt=this}frt.$metadata$={kind:c,simpleName:"DiscussionTopicListDetail",interfaces:[crt]},Crt.prototype.toString=function(){return Q(this.categoryName)},Crt.prototype.equals=function(t){var n;return this===t||!(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))&&(e.isType(t,Crt)||Jt(),!!(O(this.contentCategoryUid,t.contentCategoryUid)&&O(this.categoryName,t.categoryName)&&O(this.contentCategorySchemaUid,t.contentCategorySchemaUid)&&O(this.schemaName,t.schemaName)))},Crt.prototype.hashCode=function(){var t,e,n,i,o=Yt(this.contentCategoryUid);return o=(31*(o=(31*(o=(31*o|0)+(null!=(e=null!=(t=this.categoryName)?Yt(t):null)?e:0)|0)|0)+Yt(this.contentCategorySchemaUid)|0)|0)+(null!=(i=null!=(n=this.schemaName)?Yt(n):null)?i:0)|0},Nrt.prototype.serializer=function(){return Ort()},Nrt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Trt=null;function Lrt(){return null===Trt&&new Nrt,Trt}function zrt(){this.descriptor_qlm4h2$_0=new Wt("com.ustadmobile.lib.db.entities.DistinctCategorySchema",this,4),this.descriptor.addElement_ivxn3r$("contentCategoryUid",!0),this.descriptor.addElement_ivxn3r$("categoryName",!0),this.descriptor.addElement_ivxn3r$("contentCategorySchemaUid",!0),this.descriptor.addElement_ivxn3r$("schemaName",!0),wrt=this}Object.defineProperty(zrt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_qlm4h2$_0}}),zrt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.contentCategoryUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.contentCategoryUid),O(e.categoryName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.categoryName),O(e.contentCategorySchemaUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.contentCategorySchemaUid),O(e.schemaName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,3,Ht.StringSerializer,e.schemaName),n.endStructure_24f42q$(this.descriptor)},zrt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s=0,a=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=a.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=a.decodeLongElement_szpzho$(this.descriptor,0),s|=1;break;case 1:i=a.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),s|=2;break;case 2:o=a.decodeLongElement_szpzho$(this.descriptor,2),s|=4;break;case 3:r=a.decodeNullableSerializableElement_8viuyw$(this.descriptor,3,Ht.StringSerializer,r),s|=8;break;case-1:break t;default:throw new Vt(e)}return a.endStructure_24f42q$(this.descriptor),Rrt(s,n,i,o,r,null)},zrt.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer,new Bt(Ht.StringSerializer)]},zrt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var wrt=null;function Ort(){return null===wrt&&new zrt,wrt}function Rrt(t,e,n,i,o,r){var s=r||Object.create(Crt.prototype);return s.contentCategoryUid=0==(1&t)?X:e,s.categoryName=0==(2&t)?null:n,s.contentCategorySchemaUid=0==(4&t)?X:i,s.schemaName=0==(8&t)?null:o,s}function Art(t,e){void 0===t&&(t=0),void 0===e&&(e=X),this.numEntries=t,this.totalSize=e}function xrt(){Drt(),this.erUid=X,this.erMasterCsn=X,this.erLocalCsn=X,this.erLastChangedBy=0,this.erLct=X,this.erTableId=0,this.erEntityUid=X,this.erGroupUid=X,this.erRoleUid=X,this.erActive=!1}function Irt(){Urt=this,this.TABLE_ID=47}Crt.$metadata$={kind:c,simpleName:"DistinctCategorySchema",interfaces:[]},Art.$metadata$={kind:c,simpleName:"DownloadJobSizeInfo",interfaces:[]},Art.prototype.component1=function(){return this.numEntries},Art.prototype.component2=function(){return this.totalSize},Art.prototype.copy_6svq3l$=function(t,e){return new Art(void 0===t?this.numEntries:t,void 0===e?this.totalSize:e)},Art.prototype.toString=function(){return"DownloadJobSizeInfo(numEntries="+e.toString(this.numEntries)+", totalSize="+e.toString(this.totalSize)+")"},Art.prototype.hashCode=function(){var t=0;return t=31*(t=31*t+e.hashCode(this.numEntries)|0)+e.hashCode(this.totalSize)|0},Art.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.numEntries,t.numEntries)&&e.equals(this.totalSize,t.totalSize)},Irt.prototype.serializer=function(){return krt()},Irt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Urt=null;function Drt(){return null===Urt&&new Irt,Urt}function Prt(){this.descriptor_ri570k$_0=new Wt("com.ustadmobile.lib.db.entities.EntityRole",this,10),this.descriptor.addElement_ivxn3r$("erUid",!0),this.descriptor.addElement_ivxn3r$("erMasterCsn",!0),this.descriptor.addElement_ivxn3r$("erLocalCsn",!0),this.descriptor.addElement_ivxn3r$("erLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("erLct",!0),this.descriptor.addElement_ivxn3r$("erTableId",!0),this.descriptor.addElement_ivxn3r$("erEntityUid",!0),this.descriptor.addElement_ivxn3r$("erGroupUid",!0),this.descriptor.addElement_ivxn3r$("erRoleUid",!0),this.descriptor.addElement_ivxn3r$("erActive",!0),Mrt=this}Object.defineProperty(Prt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_ri570k$_0}}),Prt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.erUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.erUid),O(e.erMasterCsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.erMasterCsn),O(e.erLocalCsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.erLocalCsn),O(e.erLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeIntElement_ptg7oe$(this.descriptor,3,e.erLastChangedBy),O(e.erLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.erLct),O(e.erTableId,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeIntElement_ptg7oe$(this.descriptor,5,e.erTableId),O(e.erEntityUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.erEntityUid),O(e.erGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.erGroupUid),O(e.erRoleUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.erRoleUid),O(e.erActive,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeBooleanElement_qh7jdn$(this.descriptor,9,e.erActive),n.endStructure_24f42q$(this.descriptor)},Prt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d=0,p=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=p.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=p.decodeLongElement_szpzho$(this.descriptor,0),d|=1;break;case 1:i=p.decodeLongElement_szpzho$(this.descriptor,1),d|=2;break;case 2:o=p.decodeLongElement_szpzho$(this.descriptor,2),d|=4;break;case 3:r=p.decodeIntElement_szpzho$(this.descriptor,3),d|=8;break;case 4:s=p.decodeLongElement_szpzho$(this.descriptor,4),d|=16;break;case 5:a=p.decodeIntElement_szpzho$(this.descriptor,5),d|=32;break;case 6:c=p.decodeLongElement_szpzho$(this.descriptor,6),d|=64;break;case 7:l=p.decodeLongElement_szpzho$(this.descriptor,7),d|=128;break;case 8:u=p.decodeLongElement_szpzho$(this.descriptor,8),d|=256;break;case 9:h=p.decodeBooleanElement_szpzho$(this.descriptor,9),d|=512;break;case-1:break t;default:throw new Vt(e)}return p.endStructure_24f42q$(this.descriptor),jrt(d,n,i,o,r,s,a,c,l,u,h,null)},Prt.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.BooleanSerializer]},Prt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Mrt=null;function krt(){return null===Mrt&&new Prt,Mrt}function jrt(t,e,n,i,o,r,s,a,c,l,u,h){var d=h||Object.create(xrt.prototype);return d.erUid=0==(1&t)?X:e,d.erMasterCsn=0==(2&t)?X:n,d.erLocalCsn=0==(4&t)?X:i,d.erLastChangedBy=0==(8&t)?0:o,d.erLct=0==(16&t)?X:r,d.erTableId=0==(32&t)?0:s,d.erEntityUid=0==(64&t)?X:a,d.erGroupUid=0==(128&t)?X:c,d.erRoleUid=0==(256&t)?X:l,d.erActive=0!=(512&t)&&u,d}function Grt(){Brt(),xrt.call(this),this.entityRoleRole=null,this.entityRoleScopeName=null}function qrt(){Frt=this}xrt.$metadata$={kind:c,simpleName:"EntityRole",interfaces:[]},Grt.prototype.equals=function(t){var n;return this===t||!(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))&&(e.isType(t,Grt)||Jt(),!!O(this.entityRoleRole,t.entityRoleRole)&&!!O(this.entityRoleScopeName,t.entityRoleScopeName))},Grt.prototype.hashCode=function(){var t,e,n,i,o=null!=(e=null!=(t=this.entityRoleRole)?t.hashCode():null)?e:0;return o=(31*o|0)+(null!=(i=null!=(n=this.entityRoleScopeName)?Yt(n):null)?i:0)|0},qrt.prototype.serializer=function(){return Vrt()},qrt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Frt=null;function Brt(){return null===Frt&&new qrt,Frt}function Wrt(){this.descriptor_qvh4u$_0=new Wt("com.ustadmobile.lib.db.entities.EntityRoleWithNameAndRole",this,12),this.descriptor.addElement_ivxn3r$("erUid",!0),this.descriptor.addElement_ivxn3r$("erMasterCsn",!0),this.descriptor.addElement_ivxn3r$("erLocalCsn",!0),this.descriptor.addElement_ivxn3r$("erLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("erLct",!0),this.descriptor.addElement_ivxn3r$("erTableId",!0),this.descriptor.addElement_ivxn3r$("erEntityUid",!0),this.descriptor.addElement_ivxn3r$("erGroupUid",!0),this.descriptor.addElement_ivxn3r$("erRoleUid",!0),this.descriptor.addElement_ivxn3r$("erActive",!0),this.descriptor.addElement_ivxn3r$("entityRoleRole",!0),this.descriptor.addElement_ivxn3r$("entityRoleScopeName",!0),Hrt=this}Object.defineProperty(Wrt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_qvh4u$_0}}),Wrt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.erUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.erUid),O(e.erMasterCsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.erMasterCsn),O(e.erLocalCsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.erLocalCsn),O(e.erLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeIntElement_ptg7oe$(this.descriptor,3,e.erLastChangedBy),O(e.erLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.erLct),O(e.erTableId,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeIntElement_ptg7oe$(this.descriptor,5,e.erTableId),O(e.erEntityUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.erEntityUid),O(e.erGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.erGroupUid),O(e.erRoleUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.erRoleUid),O(e.erActive,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeBooleanElement_qh7jdn$(this.descriptor,9,e.erActive),O(e.entityRoleRole,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,10,_ht(),e.entityRoleRole),O(e.entityRoleScopeName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,11,Ht.StringSerializer,e.entityRoleScopeName),n.endStructure_24f42q$(this.descriptor)},Wrt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_=0,m=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=m.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=m.decodeLongElement_szpzho$(this.descriptor,0),_|=1;break;case 1:i=m.decodeLongElement_szpzho$(this.descriptor,1),_|=2;break;case 2:o=m.decodeLongElement_szpzho$(this.descriptor,2),_|=4;break;case 3:r=m.decodeIntElement_szpzho$(this.descriptor,3),_|=8;break;case 4:s=m.decodeLongElement_szpzho$(this.descriptor,4),_|=16;break;case 5:a=m.decodeIntElement_szpzho$(this.descriptor,5),_|=32;break;case 6:c=m.decodeLongElement_szpzho$(this.descriptor,6),_|=64;break;case 7:l=m.decodeLongElement_szpzho$(this.descriptor,7),_|=128;break;case 8:u=m.decodeLongElement_szpzho$(this.descriptor,8),_|=256;break;case 9:h=m.decodeBooleanElement_szpzho$(this.descriptor,9),_|=512;break;case 10:d=m.decodeNullableSerializableElement_8viuyw$(this.descriptor,10,_ht(),d),_|=1024;break;case 11:p=m.decodeNullableSerializableElement_8viuyw$(this.descriptor,11,Ht.StringSerializer,p),_|=2048;break;case-1:break t;default:throw new Vt(e)}return m.endStructure_24f42q$(this.descriptor),Krt(_,n,i,o,r,s,a,c,l,u,h,d,p,null)},Wrt.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.BooleanSerializer,new Bt(_ht()),new Bt(Ht.StringSerializer)]},Wrt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Hrt=null;function Vrt(){return null===Hrt&&new Wrt,Hrt}function Krt(t,e,n,i,o,r,s,a,c,l,u,h,d,p){var _=p||Object.create(Grt.prototype);return(_=jrt(t,e,n,i,o,r,s,a,c,l,u,_)).entityRoleRole=0==(1024&t)?null:h,_.entityRoleScopeName=0==(2048&t)?null:d,_}function Xrt(){Qrt(),this.errUid=X,this.errPcsn=X,this.errLcsn=X,this.errLcb=0,this.errLct=X,this.severity=0,this.timestamp=X,this.presenterUri=null,this.appVersion=null,this.versionCode=0,this.errorCode=0,this.operatingSys=null,this.osVersion=null,this.stackTrace=null,this.message=null}function Jrt(){Yrt=this,this.SEVERITY_WARNING=1,this.SEVERITY_ERROR=2,this.SEVERITY_WTF=3}Grt.$metadata$={kind:c,simpleName:"EntityRoleWithNameAndRole",interfaces:[xrt]},Jrt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Yrt=null;function Qrt(){return null===Yrt&&new Jrt,Yrt}function Zrt(){nst(),this.groupLearningSessionUid=X,this.groupLearningSessionContentUid=X,this.groupLearningSessionLearnerGroupUid=X,this.groupLearningSessionInactive=!1,this.groupLearningSessionMCSN=X,this.groupLearningSessionCSN=X,this.groupLearningSessionLCB=0,this.groupLearningSessionLct=X}function tst(){est=this,this.TABLE_ID=302}Xrt.$metadata$={kind:c,simpleName:"ErrorReport",interfaces:[]},tst.prototype.serializer=function(){return rst()},tst.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var est=null;function nst(){return null===est&&new tst,est}function ist(){this.descriptor_b561zw$_0=new Wt("com.ustadmobile.lib.db.entities.GroupLearningSession",this,8),this.descriptor.addElement_ivxn3r$("groupLearningSessionUid",!0),this.descriptor.addElement_ivxn3r$("groupLearningSessionContentUid",!0),this.descriptor.addElement_ivxn3r$("groupLearningSessionLearnerGroupUid",!0),this.descriptor.addElement_ivxn3r$("groupLearningSessionInactive",!0),this.descriptor.addElement_ivxn3r$("groupLearningSessionMCSN",!0),this.descriptor.addElement_ivxn3r$("groupLearningSessionCSN",!0),this.descriptor.addElement_ivxn3r$("groupLearningSessionLCB",!0),this.descriptor.addElement_ivxn3r$("groupLearningSessionLct",!0),ost=this}Object.defineProperty(ist.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_b561zw$_0}}),ist.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.groupLearningSessionUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.groupLearningSessionUid),O(e.groupLearningSessionContentUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.groupLearningSessionContentUid),O(e.groupLearningSessionLearnerGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.groupLearningSessionLearnerGroupUid),O(e.groupLearningSessionInactive,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeBooleanElement_qh7jdn$(this.descriptor,3,e.groupLearningSessionInactive),O(e.groupLearningSessionMCSN,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.groupLearningSessionMCSN),O(e.groupLearningSessionCSN,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.groupLearningSessionCSN),O(e.groupLearningSessionLCB,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.groupLearningSessionLCB),O(e.groupLearningSessionLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.groupLearningSessionLct),n.endStructure_24f42q$(this.descriptor)},ist.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u=0,h=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=h.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=h.decodeLongElement_szpzho$(this.descriptor,0),u|=1;break;case 1:i=h.decodeLongElement_szpzho$(this.descriptor,1),u|=2;break;case 2:o=h.decodeLongElement_szpzho$(this.descriptor,2),u|=4;break;case 3:r=h.decodeBooleanElement_szpzho$(this.descriptor,3),u|=8;break;case 4:s=h.decodeLongElement_szpzho$(this.descriptor,4),u|=16;break;case 5:a=h.decodeLongElement_szpzho$(this.descriptor,5),u|=32;break;case 6:c=h.decodeIntElement_szpzho$(this.descriptor,6),u|=64;break;case 7:l=h.decodeLongElement_szpzho$(this.descriptor,7),u|=128;break;case-1:break t;default:throw new Vt(e)}return h.endStructure_24f42q$(this.descriptor),sst(u,n,i,o,r,s,a,c,l,null)},ist.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.BooleanSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer]},ist.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var ost=null;function rst(){return null===ost&&new ist,ost}function sst(t,e,n,i,o,r,s,a,c,l){var u=l||Object.create(Zrt.prototype);return u.groupLearningSessionUid=0==(1&t)?X:e,u.groupLearningSessionContentUid=0==(2&t)?X:n,u.groupLearningSessionLearnerGroupUid=0==(4&t)?X:i,u.groupLearningSessionInactive=0!=(8&t)&&o,u.groupLearningSessionMCSN=0==(16&t)?X:r,u.groupLearningSessionCSN=0==(32&t)?X:s,u.groupLearningSessionLCB=0==(64&t)?0:a,u.groupLearningSessionLct=0==(128&t)?X:c,u}function ast(){ust(),this.holUid=X,this.holMasterCsn=X,this.holLocalCsn=X,this.holLastModBy=0,this.holLct=X,this.holActive=!0,this.holHolidayCalendarUid=X,this.holStartTime=X,this.holEndTime=X,this.holName=null}function cst(){lst=this,this.TABLE_ID=99}Zrt.$metadata$={kind:c,simpleName:"GroupLearningSession",interfaces:[]},cst.prototype.serializer=function(){return pst()},cst.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var lst=null;function ust(){return null===lst&&new cst,lst}function hst(){this.descriptor_qg6qmv$_0=new Wt("com.ustadmobile.lib.db.entities.Holiday",this,10),this.descriptor.addElement_ivxn3r$("holUid",!0),this.descriptor.addElement_ivxn3r$("holMasterCsn",!0),this.descriptor.addElement_ivxn3r$("holLocalCsn",!0),this.descriptor.addElement_ivxn3r$("holLastModBy",!0),this.descriptor.addElement_ivxn3r$("holLct",!0),this.descriptor.addElement_ivxn3r$("holActive",!0),this.descriptor.addElement_ivxn3r$("holHolidayCalendarUid",!0),this.descriptor.addElement_ivxn3r$("holStartTime",!0),this.descriptor.addElement_ivxn3r$("holEndTime",!0),this.descriptor.addElement_ivxn3r$("holName",!0),dst=this}ast.prototype.equals=function(t){var n;return this===t||!(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))&&(e.isType(t,ast)||Jt(),!!(O(this.holUid,t.holUid)&&O(this.holMasterCsn,t.holMasterCsn)&&O(this.holLocalCsn,t.holLocalCsn)&&this.holLastModBy===t.holLastModBy&&this.holActive===t.holActive&&O(this.holHolidayCalendarUid,t.holHolidayCalendarUid)&&O(this.holStartTime,t.holStartTime)&&O(this.holEndTime,t.holEndTime)&&O(this.holName,t.holName)))},ast.prototype.hashCode=function(){var t,e,n=Yt(this.holUid);return n=(31*(n=(31*(n=(31*(n=(31*(n=(31*(n=(31*(n=(31*(n=(31*n|0)+Yt(this.holMasterCsn)|0)|0)+Yt(this.holLocalCsn)|0)|0)+this.holLastModBy|0)|0)+Yt(this.holActive)|0)|0)+Yt(this.holHolidayCalendarUid)|0)|0)+Yt(this.holStartTime)|0)|0)+Yt(this.holEndTime)|0)|0)+(null!=(e=null!=(t=this.holName)?Yt(t):null)?e:0)|0},Object.defineProperty(hst.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_qg6qmv$_0}}),hst.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.holUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.holUid),O(e.holMasterCsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.holMasterCsn),O(e.holLocalCsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.holLocalCsn),O(e.holLastModBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeIntElement_ptg7oe$(this.descriptor,3,e.holLastModBy),O(e.holLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.holLct),O(e.holActive,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeBooleanElement_qh7jdn$(this.descriptor,5,e.holActive),O(e.holHolidayCalendarUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.holHolidayCalendarUid),O(e.holStartTime,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.holStartTime),O(e.holEndTime,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.holEndTime),O(e.holName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,9,Ht.StringSerializer,e.holName),n.endStructure_24f42q$(this.descriptor)},hst.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d=0,p=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=p.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=p.decodeLongElement_szpzho$(this.descriptor,0),d|=1;break;case 1:i=p.decodeLongElement_szpzho$(this.descriptor,1),d|=2;break;case 2:o=p.decodeLongElement_szpzho$(this.descriptor,2),d|=4;break;case 3:r=p.decodeIntElement_szpzho$(this.descriptor,3),d|=8;break;case 4:s=p.decodeLongElement_szpzho$(this.descriptor,4),d|=16;break;case 5:a=p.decodeBooleanElement_szpzho$(this.descriptor,5),d|=32;break;case 6:c=p.decodeLongElement_szpzho$(this.descriptor,6),d|=64;break;case 7:l=p.decodeLongElement_szpzho$(this.descriptor,7),d|=128;break;case 8:u=p.decodeLongElement_szpzho$(this.descriptor,8),d|=256;break;case 9:h=p.decodeNullableSerializableElement_8viuyw$(this.descriptor,9,Ht.StringSerializer,h),d|=512;break;case-1:break t;default:throw new Vt(e)}return p.endStructure_24f42q$(this.descriptor),_st(d,n,i,o,r,s,a,c,l,u,h,null)},hst.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.BooleanSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer)]},hst.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var dst=null;function pst(){return null===dst&&new hst,dst}function _st(t,e,n,i,o,r,s,a,c,l,u,h){var d=h||Object.create(ast.prototype);return d.holUid=0==(1&t)?X:e,d.holMasterCsn=0==(2&t)?X:n,d.holLocalCsn=0==(4&t)?X:i,d.holLastModBy=0==(8&t)?0:o,d.holLct=0==(16&t)?X:r,d.holActive=0==(32&t)||s,d.holHolidayCalendarUid=0==(64&t)?X:a,d.holStartTime=0==(128&t)?X:c,d.holEndTime=0==(256&t)?X:l,d.holName=0==(512&t)?null:u,d}function mst(){$st(),this.umCalendarUid=X,this.umCalendarName=null,this.umCalendarCategory=1,this.umCalendarActive=!0,this.umCalendarMasterChangeSeqNum=X,this.umCalendarLocalChangeSeqNum=X,this.umCalendarLastChangedBy=0,this.umCalendarLct=X}function fst(){gst=this,this.TABLE_ID=28,this.CATEGORY_HOLIDAY=1}ast.$metadata$={kind:c,simpleName:"Holiday",interfaces:[]},fst.prototype.serializer=function(){return bst()},fst.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var gst=null;function $st(){return null===gst&&new fst,gst}function Est(){this.descriptor_p75c51$_0=new Wt("com.ustadmobile.lib.db.entities.HolidayCalendar",this,8),this.descriptor.addElement_ivxn3r$("umCalendarUid",!0),this.descriptor.addElement_ivxn3r$("umCalendarName",!0),this.descriptor.addElement_ivxn3r$("umCalendarCategory",!0),this.descriptor.addElement_ivxn3r$("umCalendarActive",!0),this.descriptor.addElement_ivxn3r$("umCalendarMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("umCalendarLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("umCalendarLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("umCalendarLct",!0),yst=this}Object.defineProperty(Est.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_p75c51$_0}}),Est.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.umCalendarUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.umCalendarUid),O(e.umCalendarName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.umCalendarName),O(e.umCalendarCategory,1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeIntElement_ptg7oe$(this.descriptor,2,e.umCalendarCategory),O(e.umCalendarActive,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeBooleanElement_qh7jdn$(this.descriptor,3,e.umCalendarActive),O(e.umCalendarMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.umCalendarMasterChangeSeqNum),O(e.umCalendarLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.umCalendarLocalChangeSeqNum),O(e.umCalendarLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.umCalendarLastChangedBy),O(e.umCalendarLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.umCalendarLct),n.endStructure_24f42q$(this.descriptor)},Est.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u=0,h=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=h.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=h.decodeLongElement_szpzho$(this.descriptor,0),u|=1;break;case 1:i=h.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),u|=2;break;case 2:o=h.decodeIntElement_szpzho$(this.descriptor,2),u|=4;break;case 3:r=h.decodeBooleanElement_szpzho$(this.descriptor,3),u|=8;break;case 4:s=h.decodeLongElement_szpzho$(this.descriptor,4),u|=16;break;case 5:a=h.decodeLongElement_szpzho$(this.descriptor,5),u|=32;break;case 6:c=h.decodeIntElement_szpzho$(this.descriptor,6),u|=64;break;case 7:l=h.decodeLongElement_szpzho$(this.descriptor,7),u|=128;break;case-1:break t;default:throw new Vt(e)}return h.endStructure_24f42q$(this.descriptor),Sst(u,n,i,o,r,s,a,c,l,null)},Est.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.BooleanSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer]},Est.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var yst=null;function bst(){return null===yst&&new Est,yst}function Sst(t,e,n,i,o,r,s,a,c,l){var u=l||Object.create(mst.prototype);return u.umCalendarUid=0==(1&t)?X:e,u.umCalendarName=0==(2&t)?null:n,u.umCalendarCategory=0==(4&t)?1:i,u.umCalendarActive=0==(8&t)||o,u.umCalendarMasterChangeSeqNum=0==(16&t)?X:r,u.umCalendarLocalChangeSeqNum=0==(32&t)?X:s,u.umCalendarLastChangedBy=0==(64&t)?0:a,u.umCalendarLct=0==(128&t)?X:c,u}function vst(){Tst(),mst.call(this),this.numEntries=0}function Cst(){Nst=this}mst.$metadata$={kind:c,simpleName:"HolidayCalendar",interfaces:[]},Cst.prototype.serializer=function(){return wst()},Cst.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Nst=null;function Tst(){return null===Nst&&new Cst,Nst}function Lst(){this.descriptor_j8zuxx$_0=new Wt("com.ustadmobile.lib.db.entities.HolidayCalendarWithNumEntries",this,9),this.descriptor.addElement_ivxn3r$("umCalendarUid",!0),this.descriptor.addElement_ivxn3r$("umCalendarName",!0),this.descriptor.addElement_ivxn3r$("umCalendarCategory",!0),this.descriptor.addElement_ivxn3r$("umCalendarActive",!0),this.descriptor.addElement_ivxn3r$("umCalendarMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("umCalendarLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("umCalendarLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("umCalendarLct",!0),this.descriptor.addElement_ivxn3r$("numEntries",!0),zst=this}Object.defineProperty(Lst.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_j8zuxx$_0}}),Lst.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.umCalendarUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.umCalendarUid),O(e.umCalendarName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.umCalendarName),O(e.umCalendarCategory,1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeIntElement_ptg7oe$(this.descriptor,2,e.umCalendarCategory),O(e.umCalendarActive,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeBooleanElement_qh7jdn$(this.descriptor,3,e.umCalendarActive),O(e.umCalendarMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.umCalendarMasterChangeSeqNum),O(e.umCalendarLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.umCalendarLocalChangeSeqNum),O(e.umCalendarLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.umCalendarLastChangedBy),O(e.umCalendarLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.umCalendarLct),O(e.numEntries,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeIntElement_ptg7oe$(this.descriptor,8,e.numEntries),n.endStructure_24f42q$(this.descriptor)},Lst.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h=0,d=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=d.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=d.decodeLongElement_szpzho$(this.descriptor,0),h|=1;break;case 1:i=d.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),h|=2;break;case 2:o=d.decodeIntElement_szpzho$(this.descriptor,2),h|=4;break;case 3:r=d.decodeBooleanElement_szpzho$(this.descriptor,3),h|=8;break;case 4:s=d.decodeLongElement_szpzho$(this.descriptor,4),h|=16;break;case 5:a=d.decodeLongElement_szpzho$(this.descriptor,5),h|=32;break;case 6:c=d.decodeIntElement_szpzho$(this.descriptor,6),h|=64;break;case 7:l=d.decodeLongElement_szpzho$(this.descriptor,7),h|=128;break;case 8:u=d.decodeIntElement_szpzho$(this.descriptor,8),h|=256;break;case-1:break t;default:throw new Vt(e)}return d.endStructure_24f42q$(this.descriptor),Ost(h,n,i,o,r,s,a,c,l,u,null)},Lst.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.BooleanSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.IntSerializer]},Lst.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var zst=null;function wst(){return null===zst&&new Lst,zst}function Ost(t,e,n,i,o,r,s,a,c,l,u){var h=u||Object.create(vst.prototype);return(h=Sst(t,e,n,i,o,r,s,a,c,h)).numEntries=0==(256&t)?0:l,h}function Rst(){Ist(),this.langUid=X,this.langName=null}function Ast(){xst=this}vst.$metadata$={kind:c,simpleName:"HolidayCalendarWithNumEntries",interfaces:[mst]},Rst.prototype.toString=function(){return Q(this.langName)},Rst.prototype.equals=function(t){var n;return this===t||!(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))&&(e.isType(t,Rst)||Jt(),!!O(this.langUid,t.langUid)&&!!O(this.langName,t.langName))},Rst.prototype.hashCode=function(){var t,e,n=Yt(this.langUid);return n=(31*n|0)+(null!=(e=null!=(t=this.langName)?Yt(t):null)?e:0)|0},Ast.prototype.serializer=function(){return Pst()},Ast.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var xst=null;function Ist(){return null===xst&&new Ast,xst}function Ust(){this.descriptor_aalamt$_0=new Wt("com.ustadmobile.lib.db.entities.LangUidAndName",this,2),this.descriptor.addElement_ivxn3r$("langUid",!0),this.descriptor.addElement_ivxn3r$("langName",!0),Dst=this}Object.defineProperty(Ust.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_aalamt$_0}}),Ust.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.langUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.langUid),O(e.langName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.langName),n.endStructure_24f42q$(this.descriptor)},Ust.prototype.deserialize_bq71mq$=function(t){var e,n,i,o=0,r=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=r.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=r.decodeLongElement_szpzho$(this.descriptor,0),o|=1;break;case 1:i=r.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),o|=2;break;case-1:break t;default:throw new Vt(e)}return r.endStructure_24f42q$(this.descriptor),Mst(o,n,i,null)},Ust.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer)]},Ust.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Dst=null;function Pst(){return null===Dst&&new Ust,Dst}function Mst(t,e,n,i){var o=i||Object.create(Rst.prototype);return o.langUid=0==(1&t)?X:e,o.langName=0==(2&t)?null:n,o}function kst(){qst(),this.langUid=X,this.name=null,this.iso_639_1_standard=null,this.iso_639_2_standard=null,this.iso_639_3_standard=null,this.Language_Type=null,this.languageActive=!0,this.langLocalChangeSeqNum=X,this.langMasterChangeSeqNum=X,this.langLastChangedBy=0,this.langLct=X}function jst(){Gst=this,this.TABLE_ID=13,this.ENGLISH_LANG_UID=re,this.ARABIC_LANG_UID=se,this.BENGALI_LANG_UID=ae,this.BURMESE_LANG_UID=ce,this.KINYARWANDA_LANG_UID=le,this.NEPALI_LANG_UID=ue,this.PASHTO_LANG_UID=he,this.PERSIAN_LANG_UID=de,this.RUSSIAN_LANG_UID=pe,this.TAJIK_LANG_UID=_e;var t=new kst;t.name="English",t.langUid=this.ENGLISH_LANG_UID,t.iso_639_1_standard="en",t.iso_639_2_standard="eng",t.iso_639_3_standard="eng";var e=new kst;e.name="العربية",e.langUid=this.ARABIC_LANG_UID,e.iso_639_1_standard="ar",e.iso_639_2_standard="ara",e.iso_639_3_standard="ara";var n=new kst;n.name="বাংলা",n.langUid=this.BENGALI_LANG_UID,n.iso_639_1_standard="bn",n.iso_639_2_standard="ben",n.iso_639_3_standard="ben";var i=new kst;i.name="မြန်မာ",i.langUid=this.BURMESE_LANG_UID,i.iso_639_1_standard="my",i.iso_639_2_standard="bur",i.iso_639_3_standard="mya";var o=new kst;o.name="Ikinyarwanda",o.langUid=this.KINYARWANDA_LANG_UID,o.iso_639_1_standard="rw",o.iso_639_2_standard="kin",o.iso_639_3_standard="kin";var r=new kst;r.name="नेपाली",r.langUid=this.NEPALI_LANG_UID,r.iso_639_1_standard="ne",r.iso_639_2_standard="nep",r.iso_639_3_standard="nep";var s=new kst;s.name="پښتو",s.langUid=this.PASHTO_LANG_UID,s.iso_639_1_standard="ps",s.iso_639_2_standard="pus",s.iso_639_3_standard="pus";var a=new kst;a.name="فارسی",a.langUid=this.PERSIAN_LANG_UID,a.iso_639_1_standard="fa",a.iso_639_2_standard="per",a.iso_639_3_standard="fas";var c=new kst;c.name="русский",c.langUid=this.RUSSIAN_LANG_UID,c.iso_639_1_standard="ru",c.iso_639_2_standard="rus",c.iso_639_3_standard="rus";var l=new kst;l.name="Тоҷикӣ",l.langUid=this.TAJIK_LANG_UID,l.iso_639_1_standard="tg",l.iso_639_2_standard="tgk",l.iso_639_3_standard="tgk",this.FIXED_LANGUAGES=p([t,e,n,i,o,r,s,a,c,l])}Rst.$metadata$={kind:c,simpleName:"LangUidAndName",interfaces:[]},kst.prototype.toString=function(){return Q(this.name)},kst.prototype.equals=function(t){var n;if(this===t)return!0;var i=null==(n=t)||e.isType(n,kst)?n:Jt();return!!O(this.langUid,oe(i).langUid)&&!!(null!=this.name?O(this.name,i.name):null==i.name)&&!!(null!=this.iso_639_1_standard?O(this.iso_639_1_standard,i.iso_639_1_standard):null==i.iso_639_1_standard)&&!!(null!=this.iso_639_2_standard?O(this.iso_639_2_standard,i.iso_639_2_standard):null==i.iso_639_2_standard)&&(null!=this.iso_639_3_standard?O(this.iso_639_3_standard,i.iso_639_3_standard):null==i.iso_639_3_standard)},kst.prototype.hashCode=function(){var t=this.langUid.xor(this.langUid.shiftRightUnsigned(32)).toInt();return t=(31*(t=(31*(t=(31*(t=(31*t|0)+(null!=this.name?Yt(oe(this.name)):0)|0)|0)+(null!=this.iso_639_1_standard?Yt(oe(this.iso_639_1_standard)):0)|0)|0)+(null!=this.iso_639_2_standard?Yt(oe(this.iso_639_2_standard)):0)|0)|0)+(null!=this.iso_639_3_standard?Yt(oe(this.iso_639_3_standard)):0)|0},jst.prototype.serializer=function(){return Wst()},jst.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Gst=null;function qst(){return null===Gst&&new jst,Gst}function Fst(){this.descriptor_6a234t$_0=new Wt("com.ustadmobile.lib.db.entities.Language",this,11),this.descriptor.addElement_ivxn3r$("langUid",!0),this.descriptor.addElement_ivxn3r$("name",!0),this.descriptor.addElement_ivxn3r$("iso_639_1_standard",!0),this.descriptor.addElement_ivxn3r$("iso_639_2_standard",!0),this.descriptor.addElement_ivxn3r$("iso_639_3_standard",!0),this.descriptor.addElement_ivxn3r$("Language_Type",!0),this.descriptor.addElement_ivxn3r$("languageActive",!0),this.descriptor.addElement_ivxn3r$("langLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("langMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("langLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("langLct",!0),Bst=this}Object.defineProperty(Fst.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_6a234t$_0}}),Fst.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.langUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.langUid),O(e.name,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.name),O(e.iso_639_1_standard,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.iso_639_1_standard),O(e.iso_639_2_standard,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,3,Ht.StringSerializer,e.iso_639_2_standard),O(e.iso_639_3_standard,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,4,Ht.StringSerializer,e.iso_639_3_standard),O(e.Language_Type,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,5,Ht.StringSerializer,e.Language_Type),O(e.languageActive,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeBooleanElement_qh7jdn$(this.descriptor,6,e.languageActive),O(e.langLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.langLocalChangeSeqNum),O(e.langMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.langMasterChangeSeqNum),O(e.langLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeIntElement_ptg7oe$(this.descriptor,9,e.langLastChangedBy),O(e.langLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeLongElement_j0o2mv$(this.descriptor,10,e.langLct),n.endStructure_24f42q$(this.descriptor)},Fst.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p=0,_=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=_.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=_.decodeLongElement_szpzho$(this.descriptor,0),p|=1;break;case 1:i=_.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),p|=2;break;case 2:o=_.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),p|=4;break;case 3:r=_.decodeNullableSerializableElement_8viuyw$(this.descriptor,3,Ht.StringSerializer,r),p|=8;break;case 4:s=_.decodeNullableSerializableElement_8viuyw$(this.descriptor,4,Ht.StringSerializer,s),p|=16;break;case 5:a=_.decodeNullableSerializableElement_8viuyw$(this.descriptor,5,Ht.StringSerializer,a),p|=32;break;case 6:c=_.decodeBooleanElement_szpzho$(this.descriptor,6),p|=64;break;case 7:l=_.decodeLongElement_szpzho$(this.descriptor,7),p|=128;break;case 8:u=_.decodeLongElement_szpzho$(this.descriptor,8),p|=256;break;case 9:h=_.decodeIntElement_szpzho$(this.descriptor,9),p|=512;break;case 10:d=_.decodeLongElement_szpzho$(this.descriptor,10),p|=1024;break;case-1:break t;default:throw new Vt(e)}return _.endStructure_24f42q$(this.descriptor),Hst(p,n,i,o,r,s,a,c,l,u,h,d,null)},Fst.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.BooleanSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer]},Fst.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Bst=null;function Wst(){return null===Bst&&new Fst,Bst}function Hst(t,e,n,i,o,r,s,a,c,l,u,h,d){var p=d||Object.create(kst.prototype);return p.langUid=0==(1&t)?X:e,p.name=0==(2&t)?null:n,p.iso_639_1_standard=0==(4&t)?null:i,p.iso_639_2_standard=0==(8&t)?null:o,p.iso_639_3_standard=0==(16&t)?null:r,p.Language_Type=0==(32&t)?null:s,p.languageActive=0==(64&t)||a,p.langLocalChangeSeqNum=0==(128&t)?X:c,p.langMasterChangeSeqNum=0==(256&t)?X:l,p.langLastChangedBy=0==(512&t)?0:u,p.langLct=0==(1024&t)?X:h,p}function Vst(){Jst(),this.langVariantUid=X,this.langUid=X,this.countryCode=null,this.name=null,this.langVariantLocalChangeSeqNum=X,this.langVariantMasterChangeSeqNum=X,this.langVariantLastChangedBy=0,this.langVariantLct=X}function Kst(){Xst=this,this.TABLE_ID=10}kst.$metadata$={kind:c,simpleName:"Language",interfaces:[]},Vst.prototype.equals=function(t){var n;if(this===t)return!0;var i=null==(n=t)||e.isType(n,Vst)?n:Jt();return!!O(this.langVariantUid,oe(i).langVariantUid)&&!!O(this.langUid,i.langUid)&&!!(null!=this.countryCode?O(this.countryCode,i.countryCode):null==i.countryCode)&&(null!=this.name?O(this.name,i.name):null==i.name)},Vst.prototype.hashCode=function(){var t=this.langVariantUid.xor(this.langVariantUid.shiftRightUnsigned(32)).toInt();return t=(31*(t=(31*(t=(31*t|0)+this.langUid.xor(this.langUid.shiftRightUnsigned(32)).toInt()|0)|0)+(null!=this.countryCode?Yt(oe(this.countryCode)):0)|0)|0)+(null!=this.name?Yt(oe(this.name)):0)|0},Kst.prototype.serializer=function(){return Zst()},Kst.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Xst=null;function Jst(){return null===Xst&&new Kst,Xst}function Yst(){this.descriptor_t2mgwc$_0=new Wt("com.ustadmobile.lib.db.entities.LanguageVariant",this,8),this.descriptor.addElement_ivxn3r$("langVariantUid",!0),this.descriptor.addElement_ivxn3r$("langUid",!0),this.descriptor.addElement_ivxn3r$("countryCode",!0),this.descriptor.addElement_ivxn3r$("name",!0),this.descriptor.addElement_ivxn3r$("langVariantLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("langVariantMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("langVariantLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("langVariantLct",!0),Qst=this}Object.defineProperty(Yst.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_t2mgwc$_0}}),Yst.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.langVariantUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.langVariantUid),O(e.langUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.langUid),O(e.countryCode,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.countryCode),O(e.name,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,3,Ht.StringSerializer,e.name),O(e.langVariantLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.langVariantLocalChangeSeqNum),O(e.langVariantMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.langVariantMasterChangeSeqNum),O(e.langVariantLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.langVariantLastChangedBy),O(e.langVariantLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.langVariantLct),n.endStructure_24f42q$(this.descriptor)},Yst.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u=0,h=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=h.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=h.decodeLongElement_szpzho$(this.descriptor,0),u|=1;break;case 1:i=h.decodeLongElement_szpzho$(this.descriptor,1),u|=2;break;case 2:o=h.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),u|=4;break;case 3:r=h.decodeNullableSerializableElement_8viuyw$(this.descriptor,3,Ht.StringSerializer,r),u|=8;break;case 4:s=h.decodeLongElement_szpzho$(this.descriptor,4),u|=16;break;case 5:a=h.decodeLongElement_szpzho$(this.descriptor,5),u|=32;break;case 6:c=h.decodeIntElement_szpzho$(this.descriptor,6),u|=64;break;case 7:l=h.decodeLongElement_szpzho$(this.descriptor,7),u|=128;break;case-1:break t;default:throw new Vt(e)}return h.endStructure_24f42q$(this.descriptor),tat(u,n,i,o,r,s,a,c,l,null)},Yst.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer]},Yst.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Qst=null;function Zst(){return null===Qst&&new Yst,Qst}function tat(t,e,n,i,o,r,s,a,c,l){var u=l||Object.create(Vst.prototype);return u.langVariantUid=0==(1&t)?X:e,u.langUid=0==(2&t)?X:n,u.countryCode=0==(4&t)?null:i,u.name=0==(8&t)?null:o,u.langVariantLocalChangeSeqNum=0==(16&t)?X:r,u.langVariantMasterChangeSeqNum=0==(32&t)?X:s,u.langVariantLastChangedBy=0==(64&t)?0:a,u.langVariantLct=0==(128&t)?X:c,u}function eat(){oat(),this.learnerGroupUid=X,this.learnerGroupName=null,this.learnerGroupDescription=null,this.learnerGroupActive=!0,this.learnerGroupMCSN=X,this.learnerGroupCSN=X,this.learnerGroupLCB=0,this.learnerGroupLct=X}function nat(){iat=this,this.TABLE_ID=301}Vst.$metadata$={kind:c,simpleName:"LanguageVariant",interfaces:[]},nat.prototype.serializer=function(){return aat()},nat.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var iat=null;function oat(){return null===iat&&new nat,iat}function rat(){this.descriptor_6m2mcn$_0=new Wt("com.ustadmobile.lib.db.entities.LearnerGroup",this,8),this.descriptor.addElement_ivxn3r$("learnerGroupUid",!0),this.descriptor.addElement_ivxn3r$("learnerGroupName",!0),this.descriptor.addElement_ivxn3r$("learnerGroupDescription",!0),this.descriptor.addElement_ivxn3r$("learnerGroupActive",!0),this.descriptor.addElement_ivxn3r$("learnerGroupMCSN",!0),this.descriptor.addElement_ivxn3r$("learnerGroupCSN",!0),this.descriptor.addElement_ivxn3r$("learnerGroupLCB",!0),this.descriptor.addElement_ivxn3r$("learnerGroupLct",!0),sat=this}Object.defineProperty(rat.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_6m2mcn$_0}}),rat.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.learnerGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.learnerGroupUid),O(e.learnerGroupName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.learnerGroupName),O(e.learnerGroupDescription,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.learnerGroupDescription),O(e.learnerGroupActive,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeBooleanElement_qh7jdn$(this.descriptor,3,e.learnerGroupActive),O(e.learnerGroupMCSN,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.learnerGroupMCSN),O(e.learnerGroupCSN,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.learnerGroupCSN),O(e.learnerGroupLCB,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.learnerGroupLCB),O(e.learnerGroupLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.learnerGroupLct),n.endStructure_24f42q$(this.descriptor)},rat.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u=0,h=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=h.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=h.decodeLongElement_szpzho$(this.descriptor,0),u|=1;break;case 1:i=h.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),u|=2;break;case 2:o=h.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),u|=4;break;case 3:r=h.decodeBooleanElement_szpzho$(this.descriptor,3),u|=8;break;case 4:s=h.decodeLongElement_szpzho$(this.descriptor,4),u|=16;break;case 5:a=h.decodeLongElement_szpzho$(this.descriptor,5),u|=32;break;case 6:c=h.decodeIntElement_szpzho$(this.descriptor,6),u|=64;break;case 7:l=h.decodeLongElement_szpzho$(this.descriptor,7),u|=128;break;case-1:break t;default:throw new Vt(e)}return h.endStructure_24f42q$(this.descriptor),cat(u,n,i,o,r,s,a,c,l,null)},rat.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.BooleanSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer]},rat.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var sat=null;function aat(){return null===sat&&new rat,sat}function cat(t,e,n,i,o,r,s,a,c,l){var u=l||Object.create(eat.prototype);return u.learnerGroupUid=0==(1&t)?X:e,u.learnerGroupName=0==(2&t)?null:n,u.learnerGroupDescription=0==(4&t)?null:i,u.learnerGroupActive=0==(8&t)||o,u.learnerGroupMCSN=0==(16&t)?X:r,u.learnerGroupCSN=0==(32&t)?X:s,u.learnerGroupLCB=0==(64&t)?0:a,u.learnerGroupLct=0==(128&t)?X:c,u}function lat(){dat(),this.learnerGroupMemberUid=X,this.learnerGroupMemberPersonUid=X,this.learnerGroupMemberLgUid=X,this.learnerGroupMemberRole=2,this.learnerGroupMemberActive=!0,this.learnerGroupMemberMCSN=X,this.learnerGroupMemberCSN=X,this.learnerGroupMemberLCB=0,this.learnerGroupMemberLct=X}function uat(){hat=this,this.TABLE_ID=300,this.PRIMARY_ROLE=1,this.PARTICIPANT_ROLE=2}eat.$metadata$={kind:c,simpleName:"LearnerGroup",interfaces:[]},uat.prototype.serializer=function(){return mat()},uat.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var hat=null;function dat(){return null===hat&&new uat,hat}function pat(){this.descriptor_jv19m5$_0=new Wt("com.ustadmobile.lib.db.entities.LearnerGroupMember",this,9),this.descriptor.addElement_ivxn3r$("learnerGroupMemberUid",!0),this.descriptor.addElement_ivxn3r$("learnerGroupMemberPersonUid",!0),this.descriptor.addElement_ivxn3r$("learnerGroupMemberLgUid",!0),this.descriptor.addElement_ivxn3r$("learnerGroupMemberRole",!0),this.descriptor.addElement_ivxn3r$("learnerGroupMemberActive",!0),this.descriptor.addElement_ivxn3r$("learnerGroupMemberMCSN",!0),this.descriptor.addElement_ivxn3r$("learnerGroupMemberCSN",!0),this.descriptor.addElement_ivxn3r$("learnerGroupMemberLCB",!0),this.descriptor.addElement_ivxn3r$("learnerGroupMemberLct",!0),_at=this}Object.defineProperty(pat.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_jv19m5$_0}}),pat.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.learnerGroupMemberUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.learnerGroupMemberUid),O(e.learnerGroupMemberPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.learnerGroupMemberPersonUid),O(e.learnerGroupMemberLgUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.learnerGroupMemberLgUid),O(e.learnerGroupMemberRole,2)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeIntElement_ptg7oe$(this.descriptor,3,e.learnerGroupMemberRole),O(e.learnerGroupMemberActive,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeBooleanElement_qh7jdn$(this.descriptor,4,e.learnerGroupMemberActive),O(e.learnerGroupMemberMCSN,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.learnerGroupMemberMCSN),O(e.learnerGroupMemberCSN,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.learnerGroupMemberCSN),O(e.learnerGroupMemberLCB,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeIntElement_ptg7oe$(this.descriptor,7,e.learnerGroupMemberLCB),O(e.learnerGroupMemberLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.learnerGroupMemberLct),n.endStructure_24f42q$(this.descriptor)},pat.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h=0,d=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=d.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=d.decodeLongElement_szpzho$(this.descriptor,0),h|=1;break;case 1:i=d.decodeLongElement_szpzho$(this.descriptor,1),h|=2;break;case 2:o=d.decodeLongElement_szpzho$(this.descriptor,2),h|=4;break;case 3:r=d.decodeIntElement_szpzho$(this.descriptor,3),h|=8;break;case 4:s=d.decodeBooleanElement_szpzho$(this.descriptor,4),h|=16;break;case 5:a=d.decodeLongElement_szpzho$(this.descriptor,5),h|=32;break;case 6:c=d.decodeLongElement_szpzho$(this.descriptor,6),h|=64;break;case 7:l=d.decodeIntElement_szpzho$(this.descriptor,7),h|=128;break;case 8:u=d.decodeLongElement_szpzho$(this.descriptor,8),h|=256;break;case-1:break t;default:throw new Vt(e)}return d.endStructure_24f42q$(this.descriptor),fat(h,n,i,o,r,s,a,c,l,u,null)},pat.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.BooleanSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer]},pat.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var _at=null;function mat(){return null===_at&&new pat,_at}function fat(t,e,n,i,o,r,s,a,c,l,u){var h=u||Object.create(lat.prototype);return h.learnerGroupMemberUid=0==(1&t)?X:e,h.learnerGroupMemberPersonUid=0==(2&t)?X:n,h.learnerGroupMemberLgUid=0==(4&t)?X:i,h.learnerGroupMemberRole=0==(8&t)?2:o,h.learnerGroupMemberActive=0==(16&t)||r,h.learnerGroupMemberMCSN=0==(32&t)?X:s,h.learnerGroupMemberCSN=0==(64&t)?X:a,h.learnerGroupMemberLCB=0==(128&t)?0:c,h.learnerGroupMemberLct=0==(256&t)?X:l,h}function gat(){yat(),lat.call(this),this.person=null}function $at(){Eat=this}lat.$metadata$={kind:c,simpleName:"LearnerGroupMember",interfaces:[]},$at.prototype.serializer=function(){return vat()},$at.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Eat=null;function yat(){return null===Eat&&new $at,Eat}function bat(){this.descriptor_2mes9e$_0=new Wt("com.ustadmobile.lib.db.entities.LearnerGroupMemberWithPerson",this,10),this.descriptor.addElement_ivxn3r$("learnerGroupMemberUid",!0),this.descriptor.addElement_ivxn3r$("learnerGroupMemberPersonUid",!0),this.descriptor.addElement_ivxn3r$("learnerGroupMemberLgUid",!0),this.descriptor.addElement_ivxn3r$("learnerGroupMemberRole",!0),this.descriptor.addElement_ivxn3r$("learnerGroupMemberActive",!0),this.descriptor.addElement_ivxn3r$("learnerGroupMemberMCSN",!0),this.descriptor.addElement_ivxn3r$("learnerGroupMemberCSN",!0),this.descriptor.addElement_ivxn3r$("learnerGroupMemberLCB",!0),this.descriptor.addElement_ivxn3r$("learnerGroupMemberLct",!0),this.descriptor.addElement_ivxn3r$("person",!0),Sat=this}Object.defineProperty(bat.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_2mes9e$_0}}),bat.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.learnerGroupMemberUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.learnerGroupMemberUid),O(e.learnerGroupMemberPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.learnerGroupMemberPersonUid),O(e.learnerGroupMemberLgUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.learnerGroupMemberLgUid),O(e.learnerGroupMemberRole,2)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeIntElement_ptg7oe$(this.descriptor,3,e.learnerGroupMemberRole),O(e.learnerGroupMemberActive,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeBooleanElement_qh7jdn$(this.descriptor,4,e.learnerGroupMemberActive),O(e.learnerGroupMemberMCSN,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.learnerGroupMemberMCSN),O(e.learnerGroupMemberCSN,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.learnerGroupMemberCSN),O(e.learnerGroupMemberLCB,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeIntElement_ptg7oe$(this.descriptor,7,e.learnerGroupMemberLCB),O(e.learnerGroupMemberLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.learnerGroupMemberLct),O(e.person,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,9,Ict(),e.person),n.endStructure_24f42q$(this.descriptor)},bat.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d=0,p=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=p.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=p.decodeLongElement_szpzho$(this.descriptor,0),d|=1;break;case 1:i=p.decodeLongElement_szpzho$(this.descriptor,1),d|=2;break;case 2:o=p.decodeLongElement_szpzho$(this.descriptor,2),d|=4;break;case 3:r=p.decodeIntElement_szpzho$(this.descriptor,3),d|=8;break;case 4:s=p.decodeBooleanElement_szpzho$(this.descriptor,4),d|=16;break;case 5:a=p.decodeLongElement_szpzho$(this.descriptor,5),d|=32;break;case 6:c=p.decodeLongElement_szpzho$(this.descriptor,6),d|=64;break;case 7:l=p.decodeIntElement_szpzho$(this.descriptor,7),d|=128;break;case 8:u=p.decodeLongElement_szpzho$(this.descriptor,8),d|=256;break;case 9:h=p.decodeNullableSerializableElement_8viuyw$(this.descriptor,9,Ict(),h),d|=512;break;case-1:break t;default:throw new Vt(e)}return p.endStructure_24f42q$(this.descriptor),Cat(d,n,i,o,r,s,a,c,l,u,h,null)},bat.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.BooleanSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(Ict())]},bat.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Sat=null;function vat(){return null===Sat&&new bat,Sat}function Cat(t,e,n,i,o,r,s,a,c,l,u,h){var d=h||Object.create(gat.prototype);return(d=fat(t,e,n,i,o,r,s,a,c,l,d)).person=0==(512&t)?null:u,d}function Nat(){zat(),this.leavingReasonUid=X,this.leavingReasonTitle=null,this.leavingReasonMCSN=X,this.leavingReasonCSN=X,this.leavingReasonLCB=0,this.leavingReasonLct=X}function Tat(){Lat=this,this.TABLE_ID=410,this.MOVED_TITLE="Moved",this.MOVED_UID=re,this.MEDICAL_TITLE="Medical",this.MEDICAL_UID=se,this.TRANSPORT_PROBLEM_TITLE="Transportation problem",this.TRANSPORT_PROBLEM_UID=ae,this.FAMILY_PROBLEM_TITLE="Family economic problem",this.FAMILY_PROBLEM_UID=ce,this.FAILED_TITLE="Failed test",this.FAILED_UID=le,this.PASSED_TITLE="Passed test",this.PASSED_UID=ue,this.FIXED_UIDS=$([g(this.MOVED_TITLE,this.MOVED_UID),g(this.MEDICAL_TITLE,this.MEDICAL_UID),g(this.TRANSPORT_PROBLEM_TITLE,this.TRANSPORT_PROBLEM_UID),g(this.FAMILY_PROBLEM_TITLE,this.FAMILY_PROBLEM_UID),g(this.FAILED_TITLE,this.FAILED_UID),g(this.PASSED_TITLE,this.PASSED_UID)])}gat.$metadata$={kind:c,simpleName:"LearnerGroupMemberWithPerson",interfaces:[lat]},Tat.prototype.serializer=function(){return Rat()},Tat.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Lat=null;function zat(){return null===Lat&&new Tat,Lat}function wat(){this.descriptor_kuv53r$_0=new Wt("com.ustadmobile.lib.db.entities.LeavingReason",this,6),this.descriptor.addElement_ivxn3r$("leavingReasonUid",!0),this.descriptor.addElement_ivxn3r$("leavingReasonTitle",!0),this.descriptor.addElement_ivxn3r$("leavingReasonMCSN",!0),this.descriptor.addElement_ivxn3r$("leavingReasonCSN",!0),this.descriptor.addElement_ivxn3r$("leavingReasonLCB",!0),this.descriptor.addElement_ivxn3r$("leavingReasonLct",!0),Oat=this}Object.defineProperty(wat.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_kuv53r$_0}}),wat.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.leavingReasonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.leavingReasonUid),O(e.leavingReasonTitle,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.leavingReasonTitle),O(e.leavingReasonMCSN,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.leavingReasonMCSN),O(e.leavingReasonCSN,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.leavingReasonCSN),O(e.leavingReasonLCB,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeIntElement_ptg7oe$(this.descriptor,4,e.leavingReasonLCB),O(e.leavingReasonLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.leavingReasonLct),n.endStructure_24f42q$(this.descriptor)},wat.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c=0,l=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=l.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=l.decodeLongElement_szpzho$(this.descriptor,0),c|=1;break;case 1:i=l.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),c|=2;break;case 2:o=l.decodeLongElement_szpzho$(this.descriptor,2),c|=4;break;case 3:r=l.decodeLongElement_szpzho$(this.descriptor,3),c|=8;break;case 4:s=l.decodeIntElement_szpzho$(this.descriptor,4),c|=16;break;case 5:a=l.decodeLongElement_szpzho$(this.descriptor,5),c|=32;break;case-1:break t;default:throw new Vt(e)}return l.endStructure_24f42q$(this.descriptor),Aat(c,n,i,o,r,s,a,null)},wat.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer]},wat.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Oat=null;function Rat(){return null===Oat&&new wat,Oat}function Aat(t,e,n,i,o,r,s,a){var c=a||Object.create(Nat.prototype);return c.leavingReasonUid=0==(1&t)?X:e,c.leavingReasonTitle=0==(2&t)?null:n,c.leavingReasonMCSN=0==(4&t)?X:i,c.leavingReasonCSN=0==(8&t)?X:o,c.leavingReasonLCB=0==(16&t)?0:r,c.leavingReasonLct=0==(32&t)?X:s,c}function xat(){Dat(),this.messageUid=X,this.messageSenderPersonUid=X,this.messageTableId=0,this.messageEntityUid=X,this.messageText=null,this.messageTimestamp=X,this.messageClazzUid=X,this.messageLct=X}function Iat(){Uat=this,this.TABLE_ID=126}Nat.$metadata$={kind:c,simpleName:"LeavingReason",interfaces:[]},Iat.prototype.serializer=function(){return kat()},Iat.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Uat=null;function Dat(){return null===Uat&&new Iat,Uat}function Pat(){this.descriptor_ntiakm$_0=new Wt("com.ustadmobile.lib.db.entities.Message",this,8),this.descriptor.addElement_ivxn3r$("messageUid",!0),this.descriptor.addElement_ivxn3r$("messageSenderPersonUid",!0),this.descriptor.addElement_ivxn3r$("messageTableId",!0),this.descriptor.addElement_ivxn3r$("messageEntityUid",!0),this.descriptor.addElement_ivxn3r$("messageText",!0),this.descriptor.addElement_ivxn3r$("messageTimestamp",!0),this.descriptor.addElement_ivxn3r$("messageClazzUid",!0),this.descriptor.addElement_ivxn3r$("messageLct",!0),Mat=this}Object.defineProperty(Pat.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_ntiakm$_0}}),Pat.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.messageUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.messageUid),O(e.messageSenderPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.messageSenderPersonUid),O(e.messageTableId,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeIntElement_ptg7oe$(this.descriptor,2,e.messageTableId),O(e.messageEntityUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.messageEntityUid),O(e.messageText,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,4,Ht.StringSerializer,e.messageText),O(e.messageTimestamp,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.messageTimestamp),O(e.messageClazzUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.messageClazzUid),O(e.messageLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.messageLct),n.endStructure_24f42q$(this.descriptor)},Pat.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u=0,h=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=h.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=h.decodeLongElement_szpzho$(this.descriptor,0),u|=1;break;case 1:i=h.decodeLongElement_szpzho$(this.descriptor,1),u|=2;break;case 2:o=h.decodeIntElement_szpzho$(this.descriptor,2),u|=4;break;case 3:r=h.decodeLongElement_szpzho$(this.descriptor,3),u|=8;break;case 4:s=h.decodeNullableSerializableElement_8viuyw$(this.descriptor,4,Ht.StringSerializer,s),u|=16;break;case 5:a=h.decodeLongElement_szpzho$(this.descriptor,5),u|=32;break;case 6:c=h.decodeLongElement_szpzho$(this.descriptor,6),u|=64;break;case 7:l=h.decodeLongElement_szpzho$(this.descriptor,7),u|=128;break;case-1:break t;default:throw new Vt(e)}return h.endStructure_24f42q$(this.descriptor),jat(u,n,i,o,r,s,a,c,l,null)},Pat.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer]},Pat.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Mat=null;function kat(){return null===Mat&&new Pat,Mat}function jat(t,e,n,i,o,r,s,a,c,l){var u=l||Object.create(xat.prototype);return u.messageUid=0==(1&t)?X:e,u.messageSenderPersonUid=0==(2&t)?X:n,u.messageTableId=0==(4&t)?0:i,u.messageEntityUid=0==(8&t)?X:o,u.messageText=0==(16&t)?null:r,u.messageTimestamp=0==(32&t)?X:s,u.messageClazzUid=0==(64&t)?X:a,u.messageLct=0==(128&t)?X:c,u}function Gat(){Bat(),this.messageReadUid=X,this.messageReadPersonUid=X,this.messageReadMessageUid=X,this.messageReadEntityUid=X,this.messageReadLct=X}function qat(){Fat=this,this.TABLE_ID=129}xat.$metadata$={kind:c,simpleName:"Message",interfaces:[]},qat.prototype.serializer=function(){return Vat()},qat.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Fat=null;function Bat(){return null===Fat&&new qat,Fat}function Wat(){this.descriptor_dfy7k4$_0=new Wt("com.ustadmobile.lib.db.entities.MessageRead",this,5),this.descriptor.addElement_ivxn3r$("messageReadUid",!0),this.descriptor.addElement_ivxn3r$("messageReadPersonUid",!0),this.descriptor.addElement_ivxn3r$("messageReadMessageUid",!0),this.descriptor.addElement_ivxn3r$("messageReadEntityUid",!0),this.descriptor.addElement_ivxn3r$("messageReadLct",!0),Hat=this}Object.defineProperty(Wat.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_dfy7k4$_0}}),Wat.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.messageReadUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.messageReadUid),O(e.messageReadPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.messageReadPersonUid),O(e.messageReadMessageUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.messageReadMessageUid),O(e.messageReadEntityUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.messageReadEntityUid),O(e.messageReadLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.messageReadLct),n.endStructure_24f42q$(this.descriptor)},Wat.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a=0,c=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=c.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=c.decodeLongElement_szpzho$(this.descriptor,0),a|=1;break;case 1:i=c.decodeLongElement_szpzho$(this.descriptor,1),a|=2;break;case 2:o=c.decodeLongElement_szpzho$(this.descriptor,2),a|=4;break;case 3:r=c.decodeLongElement_szpzho$(this.descriptor,3),a|=8;break;case 4:s=c.decodeLongElement_szpzho$(this.descriptor,4),a|=16;break;case-1:break t;default:throw new Vt(e)}return c.endStructure_24f42q$(this.descriptor),Kat(a,n,i,o,r,s,null)},Wat.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer]},Wat.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Hat=null;function Vat(){return null===Hat&&new Wat,Hat}function Kat(t,e,n,i,o,r,s){var a=s||Object.create(Gat.prototype);return a.messageReadUid=0==(1&t)?X:e,a.messageReadPersonUid=0==(2&t)?X:n,a.messageReadMessageUid=0==(4&t)?X:i,a.messageReadEntityUid=0==(8&t)?X:o,a.messageReadLct=0==(16&t)?X:r,a}function Xat(){Qat(),xat.call(this),this.messagePerson=null,this.messageRead=null}function Jat(){Yat=this}Gat.$metadata$={kind:c,simpleName:"MessageRead",interfaces:[]},Jat.prototype.serializer=function(){return ect()},Jat.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Yat=null;function Qat(){return null===Yat&&new Jat,Yat}function Zat(){this.descriptor_7sssrl$_0=new Wt("com.ustadmobile.lib.db.entities.MessageWithPerson",this,10),this.descriptor.addElement_ivxn3r$("messageUid",!0),this.descriptor.addElement_ivxn3r$("messageSenderPersonUid",!0),this.descriptor.addElement_ivxn3r$("messageTableId",!0),this.descriptor.addElement_ivxn3r$("messageEntityUid",!0),this.descriptor.addElement_ivxn3r$("messageText",!0),this.descriptor.addElement_ivxn3r$("messageTimestamp",!0),this.descriptor.addElement_ivxn3r$("messageClazzUid",!0),this.descriptor.addElement_ivxn3r$("messageLct",!0),this.descriptor.addElement_ivxn3r$("messagePerson",!0),this.descriptor.addElement_ivxn3r$("messageRead",!0),tct=this}Object.defineProperty(Zat.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_7sssrl$_0}}),Zat.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.messageUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.messageUid),O(e.messageSenderPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.messageSenderPersonUid),O(e.messageTableId,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeIntElement_ptg7oe$(this.descriptor,2,e.messageTableId),O(e.messageEntityUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.messageEntityUid),O(e.messageText,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,4,Ht.StringSerializer,e.messageText),O(e.messageTimestamp,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.messageTimestamp),O(e.messageClazzUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.messageClazzUid),O(e.messageLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.messageLct),O(e.messagePerson,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,8,Ict(),e.messagePerson),O(e.messageRead,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,9,Vat(),e.messageRead),n.endStructure_24f42q$(this.descriptor)},Zat.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d=0,p=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=p.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=p.decodeLongElement_szpzho$(this.descriptor,0),d|=1;break;case 1:i=p.decodeLongElement_szpzho$(this.descriptor,1),d|=2;break;case 2:o=p.decodeIntElement_szpzho$(this.descriptor,2),d|=4;break;case 3:r=p.decodeLongElement_szpzho$(this.descriptor,3),d|=8;break;case 4:s=p.decodeNullableSerializableElement_8viuyw$(this.descriptor,4,Ht.StringSerializer,s),d|=16;break;case 5:a=p.decodeLongElement_szpzho$(this.descriptor,5),d|=32;break;case 6:c=p.decodeLongElement_szpzho$(this.descriptor,6),d|=64;break;case 7:l=p.decodeLongElement_szpzho$(this.descriptor,7),d|=128;break;case 8:u=p.decodeNullableSerializableElement_8viuyw$(this.descriptor,8,Ict(),u),d|=256;break;case 9:h=p.decodeNullableSerializableElement_8viuyw$(this.descriptor,9,Vat(),h),d|=512;break;case-1:break t;default:throw new Vt(e)}return p.endStructure_24f42q$(this.descriptor),nct(d,n,i,o,r,s,a,c,l,u,h,null)},Zat.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,new Bt(Ict()),new Bt(Vat())]},Zat.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var tct=null;function ect(){return null===tct&&new Zat,tct}function nct(t,e,n,i,o,r,s,a,c,l,u,h){var d=h||Object.create(Xat.prototype);return(d=jat(t,e,n,i,o,r,s,a,c,d)).messagePerson=0==(256&t)?null:l,d.messageRead=0==(512&t)?null:u,d}function ict(){sct(),this.typeFlag=0,this.fixedTime=X,this.relTo=0,this.relOffSet=0,this.relUnit=1}function oct(){rct=this,this.TYPE_FLAG_FIXED=0,this.TYPE_FLAG_RELATIVE=1,this.DAYS_REL_UNIT=1,this.WEEKS_REL_UNIT=2,this.MONTHS_REL_UNIT=3,this.YEARS_REL_UNIT=4,this.TODAY_REL_TO=0}Xat.$metadata$={kind:c,simpleName:"MessageWithPerson",interfaces:[xat]},oct.prototype.serializer=function(){return lct()},oct.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var rct=null;function sct(){return null===rct&&new oct,rct}function act(){this.descriptor_m0sx11$_0=new Wt("com.ustadmobile.lib.db.entities.Moment",this,5),this.descriptor.addElement_ivxn3r$("typeFlag",!0),this.descriptor.addElement_ivxn3r$("fixedTime",!0),this.descriptor.addElement_ivxn3r$("relTo",!0),this.descriptor.addElement_ivxn3r$("relOffSet",!0),this.descriptor.addElement_ivxn3r$("relUnit",!0),cct=this}ict.prototype.equals=function(t){var n;return this===t||!(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))&&(e.isType(t,ict)||Jt(),this.typeFlag===t.typeFlag&&!!O(this.fixedTime,t.fixedTime)&&this.relTo===t.relTo&&this.relOffSet===t.relOffSet&&this.relUnit===t.relUnit)},ict.prototype.hashCode=function(){var t=this.typeFlag;return t=(31*(t=(31*(t=(31*(t=(31*t|0)+Yt(this.fixedTime)|0)|0)+this.relTo|0)|0)+this.relOffSet|0)|0)+this.relUnit|0},Object.defineProperty(act.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_m0sx11$_0}}),act.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.typeFlag,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeIntElement_ptg7oe$(this.descriptor,0,e.typeFlag),O(e.fixedTime,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.fixedTime),O(e.relTo,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeIntElement_ptg7oe$(this.descriptor,2,e.relTo),O(e.relOffSet,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeIntElement_ptg7oe$(this.descriptor,3,e.relOffSet),O(e.relUnit,1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeIntElement_ptg7oe$(this.descriptor,4,e.relUnit),n.endStructure_24f42q$(this.descriptor)},act.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a=0,c=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=c.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=c.decodeIntElement_szpzho$(this.descriptor,0),a|=1;break;case 1:i=c.decodeLongElement_szpzho$(this.descriptor,1),a|=2;break;case 2:o=c.decodeIntElement_szpzho$(this.descriptor,2),a|=4;break;case 3:r=c.decodeIntElement_szpzho$(this.descriptor,3),a|=8;break;case 4:s=c.decodeIntElement_szpzho$(this.descriptor,4),a|=16;break;case-1:break t;default:throw new Vt(e)}return c.endStructure_24f42q$(this.descriptor),uct(a,n,i,o,r,s,null)},act.prototype.childSerializers=function(){return[Ht.IntSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer]},act.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var cct=null;function lct(){return null===cct&&new act,cct}function uct(t,e,n,i,o,r,s){var a=s||Object.create(ict.prototype);return a.typeFlag=0==(1&t)?0:e,a.fixedTime=0==(2&t)?X:n,a.relTo=0==(4&t)?0:i,a.relOffSet=0==(8&t)?0:o,a.relUnit=0==(16&t)?1:r,a}function hct(t,e){_ct(),this.fromMoment=t,this.toMoment=e}function dct(){pct=this}ict.$metadata$={kind:c,simpleName:"Moment",interfaces:[]},dct.prototype.serializer=function(){return gct()},dct.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var pct=null;function _ct(){return null===pct&&new dct,pct}function mct(){this.descriptor_xgf9ji$_0=new Wt("com.ustadmobile.lib.db.entities.DateRangeMoment",this,2),this.descriptor.addElement_ivxn3r$("fromMoment",!1),this.descriptor.addElement_ivxn3r$("toMoment",!1),fct=this}Object.defineProperty(mct.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_xgf9ji$_0}}),mct.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);n.encodeSerializableElement_r4qlx7$(this.descriptor,0,lct(),e.fromMoment),n.encodeSerializableElement_r4qlx7$(this.descriptor,1,lct(),e.toMoment),n.endStructure_24f42q$(this.descriptor)},mct.prototype.deserialize_bq71mq$=function(t){var e,n,i,o=0,r=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=r.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=r.decodeSerializableElement_12e8id$(this.descriptor,0,lct(),n),o|=1;break;case 1:i=r.decodeSerializableElement_12e8id$(this.descriptor,1,lct(),i),o|=2;break;case-1:break t;default:throw new Vt(e)}return r.endStructure_24f42q$(this.descriptor),$ct(o,n,i,null)},mct.prototype.childSerializers=function(){return[lct(),lct()]},mct.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var fct=null;function gct(){return null===fct&&new mct,fct}function $ct(t,e,n,i){var o=i||Object.create(hct.prototype);if(0==(1&t))throw ie("fromMoment");if(o.fromMoment=e,0==(2&t))throw ie("toMoment");return o.toMoment=n,o}function Ect(){Sct(),this.nodeId=X,this.bluetoothMacAddress=null,this.ipAddress=null,this.wifiDirectMacAddress=null,this.deviceWifiDirectName=null,this.endpointUrl=null,this.lastUpdateTimeStamp=X,this.networkServiceLastUpdated=X,this.nsdServiceName=null,this.port=0,this.numFailureCount=0,this.wifiDirectDeviceStatus=0,this.groupSsid=null}function yct(){bct=this,this.STATUS_CONNECTED=0,this.STATUS_INVITED=1,this.STATUS_FAILED=2,this.STATUS_AVAILABLE=3,this.STATUS_UNAVAILABLE=4,this.WIFI_DIRECT_TIMEOUT=39e4}hct.$metadata$={kind:c,simpleName:"DateRangeMoment",interfaces:[]},hct.prototype.component1=function(){return this.fromMoment},hct.prototype.component2=function(){return this.toMoment},hct.prototype.copy_qz585w$=function(t,e){return new hct(void 0===t?this.fromMoment:t,void 0===e?this.toMoment:e)},hct.prototype.toString=function(){return"DateRangeMoment(fromMoment="+e.toString(this.fromMoment)+", toMoment="+e.toString(this.toMoment)+")"},hct.prototype.hashCode=function(){var t=0;return t=31*(t=31*t+e.hashCode(this.fromMoment)|0)+e.hashCode(this.toMoment)|0},hct.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.fromMoment,t.fromMoment)&&e.equals(this.toMoment,t.toMoment)},Ect.prototype.setNetworkNodeLastUpdated_s8cxhz$=function(t){this.lastUpdateTimeStamp=t},Ect.prototype.equals=function(t){return e.isType(t,Ect)&&(null!=this.wifiDirectMacAddress&&O(this.wifiDirectMacAddress,this.wifiDirectMacAddress)||null!=this.ipAddress&&O(this.ipAddress,this.ipAddress))},yct.prototype.serializer=function(){return Nct()},yct.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var bct=null;function Sct(){return null===bct&&new yct,bct}function vct(){this.descriptor_xfzqp$_0=new Wt("com.ustadmobile.lib.db.entities.NetworkNode",this,13),this.descriptor.addElement_ivxn3r$("nodeId",!0),this.descriptor.addElement_ivxn3r$("bluetoothMacAddress",!0),this.descriptor.addElement_ivxn3r$("ipAddress",!0),this.descriptor.addElement_ivxn3r$("wifiDirectMacAddress",!0),this.descriptor.addElement_ivxn3r$("deviceWifiDirectName",!0),this.descriptor.addElement_ivxn3r$("endpointUrl",!0),this.descriptor.addElement_ivxn3r$("lastUpdateTimeStamp",!0),this.descriptor.addElement_ivxn3r$("networkServiceLastUpdated",!0),this.descriptor.addElement_ivxn3r$("nsdServiceName",!0),this.descriptor.addElement_ivxn3r$("port",!0),this.descriptor.addElement_ivxn3r$("numFailureCount",!0),this.descriptor.addElement_ivxn3r$("wifiDirectDeviceStatus",!0),this.descriptor.addElement_ivxn3r$("groupSsid",!0),Cct=this}Object.defineProperty(vct.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_xfzqp$_0}}),vct.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.nodeId,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.nodeId),O(e.bluetoothMacAddress,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.bluetoothMacAddress),O(e.ipAddress,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.ipAddress),O(e.wifiDirectMacAddress,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,3,Ht.StringSerializer,e.wifiDirectMacAddress),O(e.deviceWifiDirectName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,4,Ht.StringSerializer,e.deviceWifiDirectName),O(e.endpointUrl,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,5,Ht.StringSerializer,e.endpointUrl),O(e.lastUpdateTimeStamp,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.lastUpdateTimeStamp),O(e.networkServiceLastUpdated,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.networkServiceLastUpdated),O(e.nsdServiceName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,8,Ht.StringSerializer,e.nsdServiceName),O(e.port,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeIntElement_ptg7oe$(this.descriptor,9,e.port),O(e.numFailureCount,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeIntElement_ptg7oe$(this.descriptor,10,e.numFailureCount),O(e.wifiDirectDeviceStatus,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeIntElement_ptg7oe$(this.descriptor,11,e.wifiDirectDeviceStatus),O(e.groupSsid,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,12,Ht.StringSerializer,e.groupSsid),n.endStructure_24f42q$(this.descriptor)},vct.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m=0,f=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=f.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=f.decodeLongElement_szpzho$(this.descriptor,0),m|=1;break;case 1:i=f.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),m|=2;break;case 2:o=f.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),m|=4;break;case 3:r=f.decodeNullableSerializableElement_8viuyw$(this.descriptor,3,Ht.StringSerializer,r),m|=8;break;case 4:s=f.decodeNullableSerializableElement_8viuyw$(this.descriptor,4,Ht.StringSerializer,s),m|=16;break;case 5:a=f.decodeNullableSerializableElement_8viuyw$(this.descriptor,5,Ht.StringSerializer,a),m|=32;break;case 6:c=f.decodeLongElement_szpzho$(this.descriptor,6),m|=64;break;case 7:l=f.decodeLongElement_szpzho$(this.descriptor,7),m|=128;break;case 8:u=f.decodeNullableSerializableElement_8viuyw$(this.descriptor,8,Ht.StringSerializer,u),m|=256;break;case 9:h=f.decodeIntElement_szpzho$(this.descriptor,9),m|=512;break;case 10:d=f.decodeIntElement_szpzho$(this.descriptor,10),m|=1024;break;case 11:p=f.decodeIntElement_szpzho$(this.descriptor,11),m|=2048;break;case 12:_=f.decodeNullableSerializableElement_8viuyw$(this.descriptor,12,Ht.StringSerializer,_),m|=4096;break;case-1:break t;default:throw new Vt(e)}return f.endStructure_24f42q$(this.descriptor),Tct(m,n,i,o,r,s,a,c,l,u,h,d,p,_,null)},vct.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,new Bt(Ht.StringSerializer)]},vct.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Cct=null;function Nct(){return null===Cct&&new vct,Cct}function Tct(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_){var m=_||Object.create(Ect.prototype);return m.nodeId=0==(1&t)?X:e,m.bluetoothMacAddress=0==(2&t)?null:n,m.ipAddress=0==(4&t)?null:i,m.wifiDirectMacAddress=0==(8&t)?null:o,m.deviceWifiDirectName=0==(16&t)?null:r,m.endpointUrl=0==(32&t)?null:s,m.lastUpdateTimeStamp=0==(64&t)?X:a,m.networkServiceLastUpdated=0==(128&t)?X:c,m.nsdServiceName=0==(256&t)?null:l,m.port=0==(512&t)?0:u,m.numFailureCount=0==(1024&t)?0:h,m.wifiDirectDeviceStatus=0==(2048&t)?0:d,m.groupSsid=0==(4096&t)?null:p,m}function Lct(t,e){void 0===t&&(t=X),void 0===e&&(e=X),this.parentPersonUid=t,this.clazzUid=e}function zct(){Rct(),this.personUid=X,this.username=null,this.firstNames="",this.lastName="",this.emailAddr=null,this.phoneNum=null,this.gender=0,this.active=!0,this.admin=!1,this.personNotes=null,this.fatherName=null,this.fatherNumber=null,this.motherName=null,this.motherNum=null,this.dateOfBirth=X,this.personAddress=null,this.personOrgId=null,this.personGroupUid=X,this.personMasterChangeSeqNum=X,this.personLocalChangeSeqNum=X,this.personLastChangedBy=0,this.personLct=X,this.personCountry=null,this.personType=0}function wct(){Oct=this,this.TABLE_ID=9,this.GENDER_UNSET=0,this.GENDER_FEMALE=1,this.GENDER_MALE=2,this.GENDER_OTHER=4,this.TYPE_NORMAL_PERSON=0,this.TYPE_SYSTEM=1,this.JOIN_FROM_PERSONGROUPMEMBER_TO_PERSON_VIA_SCOPEDGRANT_PT1="\n JOIN ScopedGrant\n ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n AND (ScopedGrant.sgPermissions &",this.FROM_PERSON_TO_SCOPEDGRANT_JOIN_ON_CLAUSE="\n ((ScopedGrant.sgTableId = -2\n AND ScopedGrant.sgEntityUid = -2)\n OR (ScopedGrant.sgTableId = 9\n AND ScopedGrant.sgEntityUid = Person.personUid)\n OR (ScopedGrant.sgTableId = 6 \n AND Person.personUid IN (\n SELECT DISTINCT clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n AND ClazzEnrolment.clazzEnrolmentActive))\n OR (ScopedGrant.sgTableId = 164\n AND Person.personUid IN (\n SELECT DISTINCT schoolMemberPersonUid\n FROM SchoolMember\n WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n AND schoolMemberActive))\n ) \n ",this.JOIN_FROM_PERSONGROUPMEMBER_TO_PERSON_VIA_SCOPEDGRANT_PT2="\n ) > 0\n JOIN Person \n ON \n ((ScopedGrant.sgTableId = -2\n AND ScopedGrant.sgEntityUid = -2)\n OR (ScopedGrant.sgTableId = 9\n AND ScopedGrant.sgEntityUid = Person.personUid)\n OR (ScopedGrant.sgTableId = 6 \n AND Person.personUid IN (\n SELECT DISTINCT clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n AND ClazzEnrolment.clazzEnrolmentActive))\n OR (ScopedGrant.sgTableId = 164\n AND Person.personUid IN (\n SELECT DISTINCT schoolMemberPersonUid\n FROM SchoolMember\n WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n AND schoolMemberActive))\n ) \n \n ",this.FROM_SCOPEDGRANT_TO_PERSON_JOIN_ON_CLAUSE="\n ((ScopedGrant.sgTableId = -2\n AND ScopedGrant.sgEntityUid = -2)\n OR (ScopedGrant.sgTableId = 9\n AND ScopedGrant.sgEntityUid = Person.personUid)\n OR (ScopedGrant.sgTableId = 6 \n AND ScopedGrant.sgEntityUid IN (\n SELECT DISTINCT clazzEnrolmentClazzUid\n FROM ClazzEnrolment\n WHERE clazzEnrolmentPersonUid = Person.personUid \n AND ClazzEnrolment.clazzEnrolmentActive))\n OR (ScopedGrant.sgTableId = 164\n AND ScopedGrant.sgEntityUid IN (\n SELECT DISTINCT schoolMemberSchoolUid\n FROM SchoolMember\n WHERE schoolMemberPersonUid = Person.personUid\n AND schoolMemberActive))\n )\n ",this.JOIN_FROM_PERSON_TO_USERSESSION_VIA_SCOPEDGRANT_PT1="\n JOIN ScopedGrant \n ON \n ((ScopedGrant.sgTableId = -2\n AND ScopedGrant.sgEntityUid = -2)\n OR (ScopedGrant.sgTableId = 9\n AND ScopedGrant.sgEntityUid = Person.personUid)\n OR (ScopedGrant.sgTableId = 6 \n AND ScopedGrant.sgEntityUid IN (\n SELECT DISTINCT clazzEnrolmentClazzUid\n FROM ClazzEnrolment\n WHERE clazzEnrolmentPersonUid = Person.personUid \n AND ClazzEnrolment.clazzEnrolmentActive))\n OR (ScopedGrant.sgTableId = 164\n AND ScopedGrant.sgEntityUid IN (\n SELECT DISTINCT schoolMemberSchoolUid\n FROM SchoolMember\n WHERE schoolMemberPersonUid = Person.personUid\n AND schoolMemberActive))\n )\n \n AND (ScopedGrant.sgPermissions & \n ",this.JOIN_FROM_PERSON_TO_USERSESSION_VIA_SCOPEDGRANT_PT2="\n ) > 0\n JOIN PersonGroupMember AS PrsGrpMbr\n ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n JOIN UserSession\n ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n AND UserSession.usStatus = 1\n "}Ect.$metadata$={kind:c,simpleName:"NetworkNode",interfaces:[]},Lct.$metadata$={kind:c,simpleName:"ParentEnrolmentRequired",interfaces:[]},Lct.prototype.component1=function(){return this.parentPersonUid},Lct.prototype.component2=function(){return this.clazzUid},Lct.prototype.copy_3pjtqy$=function(t,e){return new Lct(void 0===t?this.parentPersonUid:t,void 0===e?this.clazzUid:e)},Lct.prototype.toString=function(){return"ParentEnrolmentRequired(parentPersonUid="+e.toString(this.parentPersonUid)+", clazzUid="+e.toString(this.clazzUid)+")"},Lct.prototype.hashCode=function(){var t=0;return t=31*(t=31*t+e.hashCode(this.parentPersonUid)|0)+e.hashCode(this.clazzUid)|0},Lct.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.parentPersonUid,t.parentPersonUid)&&e.equals(this.clazzUid,t.clazzUid)},zct.prototype.fullName=function(){var t,e,n="",i="";return null!=this.firstNames&&(n="string"==typeof(t=this.firstNames)?t:Jt()),null!=this.lastName&&(i="string"==typeof(e=this.lastName)?e:Jt()),n+" "+i},zct.prototype.equals=function(t){var n;return this===t||!(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))&&(e.isType(t,zct)||Jt(),!!(O(this.personUid,t.personUid)&&O(this.username,t.username)&&O(this.firstNames,t.firstNames)&&O(this.lastName,t.lastName)&&O(this.emailAddr,t.emailAddr)&&O(this.phoneNum,t.phoneNum)&&this.gender===t.gender&&this.active===t.active&&this.admin===t.admin&&O(this.personNotes,t.personNotes)&&O(this.fatherName,t.fatherName)&&O(this.fatherNumber,t.fatherNumber)&&O(this.motherName,t.motherName)&&O(this.motherNum,t.motherNum)&&O(this.dateOfBirth,t.dateOfBirth)&&O(this.personAddress,t.personAddress)))},zct.prototype.hashCode=function(){var t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S=Yt(this.personUid);return S=(31*(S=(31*(S=(31*(S=(31*(S=(31*(S=(31*(S=(31*(S=(31*(S=(31*(S=(31*(S=(31*(S=(31*(S=(31*(S=(31*(S=(31*S|0)+(null!=(e=null!=(t=this.username)?Yt(t):null)?e:0)|0)|0)+(null!=(i=null!=(n=this.firstNames)?Yt(n):null)?i:0)|0)|0)+(null!=(r=null!=(o=this.lastName)?Yt(o):null)?r:0)|0)|0)+(null!=(a=null!=(s=this.emailAddr)?Yt(s):null)?a:0)|0)|0)+(null!=(l=null!=(c=this.phoneNum)?Yt(c):null)?l:0)|0)|0)+this.gender|0)|0)+Yt(this.active)|0)|0)+Yt(this.admin)|0)|0)+(null!=(h=null!=(u=this.personNotes)?Yt(u):null)?h:0)|0)|0)+(null!=(p=null!=(d=this.fatherName)?Yt(d):null)?p:0)|0)|0)+(null!=(m=null!=(_=this.fatherNumber)?Yt(_):null)?m:0)|0)|0)+(null!=(g=null!=(f=this.motherName)?Yt(f):null)?g:0)|0)|0)+(null!=(E=null!=($=this.motherNum)?Yt($):null)?E:0)|0)|0)+Yt(this.dateOfBirth)|0)|0)+(null!=(b=null!=(y=this.personAddress)?Yt(y):null)?b:0)|0},wct.prototype.serializer=function(){return Ict()},wct.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Oct=null;function Rct(){return null===Oct&&new wct,Oct}function Act(){this.descriptor_bzuuao$_0=new Wt("com.ustadmobile.lib.db.entities.Person",this,24),this.descriptor.addElement_ivxn3r$("personUid",!0),this.descriptor.addElement_ivxn3r$("username",!0),this.descriptor.addElement_ivxn3r$("firstNames",!0),this.descriptor.addElement_ivxn3r$("lastName",!0),this.descriptor.addElement_ivxn3r$("emailAddr",!0),this.descriptor.addElement_ivxn3r$("phoneNum",!0),this.descriptor.addElement_ivxn3r$("gender",!0),this.descriptor.addElement_ivxn3r$("active",!0),this.descriptor.addElement_ivxn3r$("admin",!0),this.descriptor.addElement_ivxn3r$("personNotes",!0),this.descriptor.addElement_ivxn3r$("fatherName",!0),this.descriptor.addElement_ivxn3r$("fatherNumber",!0),this.descriptor.addElement_ivxn3r$("motherName",!0),this.descriptor.addElement_ivxn3r$("motherNum",!0),this.descriptor.addElement_ivxn3r$("dateOfBirth",!0),this.descriptor.addElement_ivxn3r$("personAddress",!0),this.descriptor.addElement_ivxn3r$("personOrgId",!0),this.descriptor.addElement_ivxn3r$("personGroupUid",!0),this.descriptor.addElement_ivxn3r$("personMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("personLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("personLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("personLct",!0),this.descriptor.addElement_ivxn3r$("personCountry",!0),this.descriptor.addElement_ivxn3r$("personType",!0),xct=this}Object.defineProperty(Act.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_bzuuao$_0}}),Act.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.personUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.personUid),O(e.username,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.username),O(e.firstNames,"")&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.firstNames),O(e.lastName,"")&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,3,Ht.StringSerializer,e.lastName),O(e.emailAddr,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,4,Ht.StringSerializer,e.emailAddr),O(e.phoneNum,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,5,Ht.StringSerializer,e.phoneNum),O(e.gender,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.gender),O(e.active,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeBooleanElement_qh7jdn$(this.descriptor,7,e.active),O(e.admin,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeBooleanElement_qh7jdn$(this.descriptor,8,e.admin),O(e.personNotes,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,9,Ht.StringSerializer,e.personNotes),O(e.fatherName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,10,Ht.StringSerializer,e.fatherName),O(e.fatherNumber,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,11,Ht.StringSerializer,e.fatherNumber),O(e.motherName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,12,Ht.StringSerializer,e.motherName),O(e.motherNum,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,13,Ht.StringSerializer,e.motherNum),O(e.dateOfBirth,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeLongElement_j0o2mv$(this.descriptor,14,e.dateOfBirth),O(e.personAddress,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,15,Ht.StringSerializer,e.personAddress),O(e.personOrgId,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,16)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,16,Ht.StringSerializer,e.personOrgId),O(e.personGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,17)||n.encodeLongElement_j0o2mv$(this.descriptor,17,e.personGroupUid),O(e.personMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,18)||n.encodeLongElement_j0o2mv$(this.descriptor,18,e.personMasterChangeSeqNum),O(e.personLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,19)||n.encodeLongElement_j0o2mv$(this.descriptor,19,e.personLocalChangeSeqNum),O(e.personLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,20)||n.encodeIntElement_ptg7oe$(this.descriptor,20,e.personLastChangedBy),O(e.personLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,21)||n.encodeLongElement_j0o2mv$(this.descriptor,21,e.personLct),O(e.personCountry,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,22)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,22,Ht.StringSerializer,e.personCountry),O(e.personType,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,23)||n.encodeIntElement_ptg7oe$(this.descriptor,23,e.personType),n.endStructure_24f42q$(this.descriptor)},Act.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T=0,L=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=L.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=L.decodeLongElement_szpzho$(this.descriptor,0),T|=1;break;case 1:i=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),T|=2;break;case 2:o=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),T|=4;break;case 3:r=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,3,Ht.StringSerializer,r),T|=8;break;case 4:s=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,4,Ht.StringSerializer,s),T|=16;break;case 5:a=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,5,Ht.StringSerializer,a),T|=32;break;case 6:c=L.decodeIntElement_szpzho$(this.descriptor,6),T|=64;break;case 7:l=L.decodeBooleanElement_szpzho$(this.descriptor,7),T|=128;break;case 8:u=L.decodeBooleanElement_szpzho$(this.descriptor,8),T|=256;break;case 9:h=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,9,Ht.StringSerializer,h),T|=512;break;case 10:d=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,10,Ht.StringSerializer,d),T|=1024;break;case 11:p=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,11,Ht.StringSerializer,p),T|=2048;break;case 12:_=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,12,Ht.StringSerializer,_),T|=4096;break;case 13:m=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,13,Ht.StringSerializer,m),T|=8192;break;case 14:f=L.decodeLongElement_szpzho$(this.descriptor,14),T|=16384;break;case 15:g=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,15,Ht.StringSerializer,g),T|=32768;break;case 16:$=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,16,Ht.StringSerializer,$),T|=65536;break;case 17:E=L.decodeLongElement_szpzho$(this.descriptor,17),T|=131072;break;case 18:y=L.decodeLongElement_szpzho$(this.descriptor,18),T|=262144;break;case 19:b=L.decodeLongElement_szpzho$(this.descriptor,19),T|=524288;break;case 20:S=L.decodeIntElement_szpzho$(this.descriptor,20),T|=1048576;break;case 21:v=L.decodeLongElement_szpzho$(this.descriptor,21),T|=2097152;break;case 22:C=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,22,Ht.StringSerializer,C),T|=4194304;break;case 23:N=L.decodeIntElement_szpzho$(this.descriptor,23),T|=8388608;break;case-1:break t;default:throw new Vt(e)}return L.endStructure_24f42q$(this.descriptor),Uct(T,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,null)},Act.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.BooleanSerializer,Ht.BooleanSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.IntSerializer]},Act.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var xct=null;function Ict(){return null===xct&&new Act,xct}function Uct(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N){var T=N||Object.create(zct.prototype);return T.personUid=0==(1&t)?X:e,T.username=0==(2&t)?null:n,T.firstNames=0==(4&t)?"":i,T.lastName=0==(8&t)?"":o,T.emailAddr=0==(16&t)?null:r,T.phoneNum=0==(32&t)?null:s,T.gender=0==(64&t)?0:a,T.active=0==(128&t)||c,T.admin=0!=(256&t)&&l,T.personNotes=0==(512&t)?null:u,T.fatherName=0==(1024&t)?null:h,T.fatherNumber=0==(2048&t)?null:d,T.motherName=0==(4096&t)?null:p,T.motherNum=0==(8192&t)?null:_,T.dateOfBirth=0==(16384&t)?X:m,T.personAddress=0==(32768&t)?null:f,T.personOrgId=0==(65536&t)?null:g,T.personGroupUid=0==(131072&t)?X:$,T.personMasterChangeSeqNum=0==(262144&t)?X:E,T.personLocalChangeSeqNum=0==(524288&t)?X:y,T.personLastChangedBy=0==(1048576&t)?0:b,T.personLct=0==(2097152&t)?X:S,T.personCountry=0==(4194304&t)?null:v,T.personType=0==(8388608&t)?0:C,T}function Dct(){kct(),this.personAuthUid=X,this.passwordHash=null,this.personAuthStatus=0}function Pct(){Mct=this,this.STATUS_SENT=1,this.STATUS_NOT_SENT=0}zct.$metadata$={kind:c,simpleName:"Person",interfaces:[]},Pct.prototype.serializer=function(){return qct()},Pct.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Mct=null;function kct(){return null===Mct&&new Pct,Mct}function jct(){this.descriptor_ymng60$_0=new Wt("com.ustadmobile.lib.db.entities.PersonAuth",this,3),this.descriptor.addElement_ivxn3r$("personAuthUid",!0),this.descriptor.addElement_ivxn3r$("passwordHash",!0),this.descriptor.addElement_ivxn3r$("personAuthStatus",!0),Gct=this}Object.defineProperty(jct.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_ymng60$_0}}),jct.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.personAuthUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.personAuthUid),O(e.passwordHash,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.passwordHash),O(e.personAuthStatus,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeIntElement_ptg7oe$(this.descriptor,2,e.personAuthStatus),n.endStructure_24f42q$(this.descriptor)},jct.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r=0,s=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=s.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=s.decodeLongElement_szpzho$(this.descriptor,0),r|=1;break;case 1:i=s.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),r|=2;break;case 2:o=s.decodeIntElement_szpzho$(this.descriptor,2),r|=4;break;case-1:break t;default:throw new Vt(e)}return s.endStructure_24f42q$(this.descriptor),Fct(r,n,i,o,null)},jct.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.IntSerializer]},jct.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Gct=null;function qct(){return null===Gct&&new jct,Gct}function Fct(t,e,n,i,o){var r=o||Object.create(Dct.prototype);return r.personAuthUid=0==(1&t)?X:e,r.passwordHash=0==(2&t)?null:n,r.personAuthStatus=0==(4&t)?0:i,r}function Bct(){Vct(),this.pauthUid=X,this.pauthMechanism=null,this.pauthAuth=null,this.pauthLcsn=X,this.pauthPcsn=X,this.pauthLcb=X,this.pauthLct=X}function Wct(){Hct=this,this.AUTH_MECH_PBKDF2_DOUBLE="PBKDF2x2",this.TABLE_ID=678}Dct.$metadata$={kind:c,simpleName:"PersonAuth",interfaces:[]},Wct.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Hct=null;function Vct(){return null===Hct&&new Wct,Hct}function Kct(){Yct(),this.groupUid=X,this.groupMasterCsn=X,this.groupLocalCsn=X,this.groupLastChangedBy=0,this.groupLct=X,this.groupName=null,this.groupActive=!0,this.personGroupFlag=0}function Xct(){Jct=this,this.TABLE_ID=43,this.PERSONGROUP_FLAG_DEFAULT=0,this.PERSONGROUP_FLAG_PERSONGROUP=1,this.PERSONGROUP_FLAG_PARENT_GROUP=2,this.PERSONGROUP_FLAG_STUDENTGROUP=4,this.PERSONGROUP_FLAG_TEACHERGROUP=8,this.PERSONGROUP_FLAG_GUESTPERSON=16}Bct.$metadata$={kind:c,simpleName:"PersonAuth2",interfaces:[]},Xct.prototype.serializer=function(){return tlt()},Xct.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Jct=null;function Yct(){return null===Jct&&new Xct,Jct}function Qct(){this.descriptor_xlvwev$_0=new Wt("com.ustadmobile.lib.db.entities.PersonGroup",this,8),this.descriptor.addElement_ivxn3r$("groupUid",!0),this.descriptor.addElement_ivxn3r$("groupMasterCsn",!0),this.descriptor.addElement_ivxn3r$("groupLocalCsn",!0),this.descriptor.addElement_ivxn3r$("groupLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("groupLct",!0),this.descriptor.addElement_ivxn3r$("groupName",!0),this.descriptor.addElement_ivxn3r$("groupActive",!0),this.descriptor.addElement_ivxn3r$("personGroupFlag",!0),Zct=this}Object.defineProperty(Qct.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_xlvwev$_0}}),Qct.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.groupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.groupUid),O(e.groupMasterCsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.groupMasterCsn),O(e.groupLocalCsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.groupLocalCsn),O(e.groupLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeIntElement_ptg7oe$(this.descriptor,3,e.groupLastChangedBy),O(e.groupLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.groupLct),O(e.groupName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,5,Ht.StringSerializer,e.groupName),O(e.groupActive,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeBooleanElement_qh7jdn$(this.descriptor,6,e.groupActive),O(e.personGroupFlag,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeIntElement_ptg7oe$(this.descriptor,7,e.personGroupFlag),n.endStructure_24f42q$(this.descriptor)},Qct.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u=0,h=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=h.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=h.decodeLongElement_szpzho$(this.descriptor,0),u|=1;break;case 1:i=h.decodeLongElement_szpzho$(this.descriptor,1),u|=2;break;case 2:o=h.decodeLongElement_szpzho$(this.descriptor,2),u|=4;break;case 3:r=h.decodeIntElement_szpzho$(this.descriptor,3),u|=8;break;case 4:s=h.decodeLongElement_szpzho$(this.descriptor,4),u|=16;break;case 5:a=h.decodeNullableSerializableElement_8viuyw$(this.descriptor,5,Ht.StringSerializer,a),u|=32;break;case 6:c=h.decodeBooleanElement_szpzho$(this.descriptor,6),u|=64;break;case 7:l=h.decodeIntElement_szpzho$(this.descriptor,7),u|=128;break;case-1:break t;default:throw new Vt(e)}return h.endStructure_24f42q$(this.descriptor),elt(u,n,i,o,r,s,a,c,l,null)},Qct.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.BooleanSerializer,Ht.IntSerializer]},Qct.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Zct=null;function tlt(){return null===Zct&&new Qct,Zct}function elt(t,e,n,i,o,r,s,a,c,l){var u=l||Object.create(Kct.prototype);return u.groupUid=0==(1&t)?X:e,u.groupMasterCsn=0==(2&t)?X:n,u.groupLocalCsn=0==(4&t)?X:i,u.groupLastChangedBy=0==(8&t)?0:o,u.groupLct=0==(16&t)?X:r,u.groupName=0==(32&t)?null:s,u.groupActive=0==(64&t)||a,u.personGroupFlag=0==(128&t)?0:c,u}function nlt(){this.submitterUid=X,this.name=null,this.latestPrivateComment=null,this.fileSubmissionStatus=0,this.isGroupAssignment=!1}function ilt(){slt(),this.groupMemberUid=X,this.groupMemberActive=!0,this.groupMemberPersonUid=X,this.groupMemberGroupUid=X,this.groupMemberMasterCsn=X,this.groupMemberLocalCsn=X,this.groupMemberLastChangedBy=0,this.groupMemberLct=X}function olt(){rlt=this,this.TABLE_ID=44}Kct.$metadata$={kind:c,simpleName:"PersonGroup",interfaces:[]},nlt.$metadata$={kind:c,simpleName:"PersonGroupAssignmentSummary",interfaces:[]},olt.prototype.serializer=function(){return llt()},olt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var rlt=null;function slt(){return null===rlt&&new olt,rlt}function alt(){this.descriptor_gepaeb$_0=new Wt("com.ustadmobile.lib.db.entities.PersonGroupMember",this,8),this.descriptor.addElement_ivxn3r$("groupMemberUid",!0),this.descriptor.addElement_ivxn3r$("groupMemberActive",!0),this.descriptor.addElement_ivxn3r$("groupMemberPersonUid",!0),this.descriptor.addElement_ivxn3r$("groupMemberGroupUid",!0),this.descriptor.addElement_ivxn3r$("groupMemberMasterCsn",!0),this.descriptor.addElement_ivxn3r$("groupMemberLocalCsn",!0),this.descriptor.addElement_ivxn3r$("groupMemberLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("groupMemberLct",!0),clt=this}Object.defineProperty(alt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_gepaeb$_0}}),alt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.groupMemberUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.groupMemberUid),O(e.groupMemberActive,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeBooleanElement_qh7jdn$(this.descriptor,1,e.groupMemberActive),O(e.groupMemberPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.groupMemberPersonUid),O(e.groupMemberGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.groupMemberGroupUid),O(e.groupMemberMasterCsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.groupMemberMasterCsn),O(e.groupMemberLocalCsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.groupMemberLocalCsn),O(e.groupMemberLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.groupMemberLastChangedBy),O(e.groupMemberLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.groupMemberLct),n.endStructure_24f42q$(this.descriptor)},alt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u=0,h=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=h.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=h.decodeLongElement_szpzho$(this.descriptor,0),u|=1;break;case 1:i=h.decodeBooleanElement_szpzho$(this.descriptor,1),u|=2;break;case 2:o=h.decodeLongElement_szpzho$(this.descriptor,2),u|=4;break;case 3:r=h.decodeLongElement_szpzho$(this.descriptor,3),u|=8;break;case 4:s=h.decodeLongElement_szpzho$(this.descriptor,4),u|=16;break;case 5:a=h.decodeLongElement_szpzho$(this.descriptor,5),u|=32;break;case 6:c=h.decodeIntElement_szpzho$(this.descriptor,6),u|=64;break;case 7:l=h.decodeLongElement_szpzho$(this.descriptor,7),u|=128;break;case-1:break t;default:throw new Vt(e)}return h.endStructure_24f42q$(this.descriptor),ult(u,n,i,o,r,s,a,c,l,null)},alt.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.BooleanSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer]},alt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var clt=null;function llt(){return null===clt&&new alt,clt}function ult(t,e,n,i,o,r,s,a,c,l){var u=l||Object.create(ilt.prototype);return u.groupMemberUid=0==(1&t)?X:e,u.groupMemberActive=0==(2&t)||n,u.groupMemberPersonUid=0==(4&t)?X:i,u.groupMemberGroupUid=0==(8&t)?X:o,u.groupMemberMasterCsn=0==(16&t)?X:r,u.groupMemberLocalCsn=0==(32&t)?X:s,u.groupMemberLastChangedBy=0==(64&t)?0:a,u.groupMemberLct=0==(128&t)?X:c,u}function hlt(){_lt(),this.ppjUid=X,this.ppjPcsn=X,this.ppjLcsn=X,this.ppjLcb=0,this.ppjLct=X,this.ppjParentPersonUid=X,this.ppjMinorPersonUid=X,this.ppjRelationship=0,this.ppjEmail=null,this.ppjPhone=null,this.ppjInactive=!1,this.ppjStatus=0,this.ppjApprovalTiemstamp=X,this.ppjApprovalIpAddr=null}function dlt(){plt=this,this.TABLE_ID=512,this.STATUS_UNSET=0,this.STATUS_APPROVED=1,this.STATUS_REJECTED=2,this.RELATIONSHIP_MOTHER=1,this.RELATIONSHIP_FATHER=2,this.RELATIONSHIP_OTHER=4}ilt.$metadata$={kind:c,simpleName:"PersonGroupMember",interfaces:[]},dlt.prototype.serializer=function(){return glt()},dlt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var plt=null;function _lt(){return null===plt&&new dlt,plt}function mlt(){this.descriptor_oj2zrg$_0=new Wt("com.ustadmobile.lib.db.entities.PersonParentJoin",this,14),this.descriptor.addElement_ivxn3r$("ppjUid",!0),this.descriptor.addElement_ivxn3r$("ppjPcsn",!0),this.descriptor.addElement_ivxn3r$("ppjLcsn",!0),this.descriptor.addElement_ivxn3r$("ppjLcb",!0),this.descriptor.addElement_ivxn3r$("ppjLct",!0),this.descriptor.addElement_ivxn3r$("ppjParentPersonUid",!0),this.descriptor.addElement_ivxn3r$("ppjMinorPersonUid",!0),this.descriptor.addElement_ivxn3r$("ppjRelationship",!0),this.descriptor.addElement_ivxn3r$("ppjEmail",!0),this.descriptor.addElement_ivxn3r$("ppjPhone",!0),this.descriptor.addElement_ivxn3r$("ppjInactive",!0),this.descriptor.addElement_ivxn3r$("ppjStatus",!0),this.descriptor.addElement_ivxn3r$("ppjApprovalTiemstamp",!0),this.descriptor.addElement_ivxn3r$("ppjApprovalIpAddr",!0),flt=this}Object.defineProperty(mlt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_oj2zrg$_0}}),mlt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.ppjUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.ppjUid),O(e.ppjPcsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.ppjPcsn),O(e.ppjLcsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.ppjLcsn),O(e.ppjLcb,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeIntElement_ptg7oe$(this.descriptor,3,e.ppjLcb),O(e.ppjLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.ppjLct),O(e.ppjParentPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.ppjParentPersonUid),O(e.ppjMinorPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.ppjMinorPersonUid),O(e.ppjRelationship,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeIntElement_ptg7oe$(this.descriptor,7,e.ppjRelationship),O(e.ppjEmail,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,8,Ht.StringSerializer,e.ppjEmail),O(e.ppjPhone,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,9,Ht.StringSerializer,e.ppjPhone),O(e.ppjInactive,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeBooleanElement_qh7jdn$(this.descriptor,10,e.ppjInactive),O(e.ppjStatus,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeIntElement_ptg7oe$(this.descriptor,11,e.ppjStatus),O(e.ppjApprovalTiemstamp,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeLongElement_j0o2mv$(this.descriptor,12,e.ppjApprovalTiemstamp),O(e.ppjApprovalIpAddr,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,13,Ht.StringSerializer,e.ppjApprovalIpAddr),n.endStructure_24f42q$(this.descriptor)},mlt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f=0,g=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=g.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=g.decodeLongElement_szpzho$(this.descriptor,0),f|=1;break;case 1:i=g.decodeLongElement_szpzho$(this.descriptor,1),f|=2;break;case 2:o=g.decodeLongElement_szpzho$(this.descriptor,2),f|=4;break;case 3:r=g.decodeIntElement_szpzho$(this.descriptor,3),f|=8;break;case 4:s=g.decodeLongElement_szpzho$(this.descriptor,4),f|=16;break;case 5:a=g.decodeLongElement_szpzho$(this.descriptor,5),f|=32;break;case 6:c=g.decodeLongElement_szpzho$(this.descriptor,6),f|=64;break;case 7:l=g.decodeIntElement_szpzho$(this.descriptor,7),f|=128;break;case 8:u=g.decodeNullableSerializableElement_8viuyw$(this.descriptor,8,Ht.StringSerializer,u),f|=256;break;case 9:h=g.decodeNullableSerializableElement_8viuyw$(this.descriptor,9,Ht.StringSerializer,h),f|=512;break;case 10:d=g.decodeBooleanElement_szpzho$(this.descriptor,10),f|=1024;break;case 11:p=g.decodeIntElement_szpzho$(this.descriptor,11),f|=2048;break;case 12:_=g.decodeLongElement_szpzho$(this.descriptor,12),f|=4096;break;case 13:m=g.decodeNullableSerializableElement_8viuyw$(this.descriptor,13,Ht.StringSerializer,m),f|=8192;break;case-1:break t;default:throw new Vt(e)}return g.endStructure_24f42q$(this.descriptor),$lt(f,n,i,o,r,s,a,c,l,u,h,d,p,_,m,null)},mlt.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.BooleanSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer)]},mlt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var flt=null;function glt(){return null===flt&&new mlt,flt}function $lt(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m){var f=m||Object.create(hlt.prototype);return f.ppjUid=0==(1&t)?X:e,f.ppjPcsn=0==(2&t)?X:n,f.ppjLcsn=0==(4&t)?X:i,f.ppjLcb=0==(8&t)?0:o,f.ppjLct=0==(16&t)?X:r,f.ppjParentPersonUid=0==(32&t)?X:s,f.ppjMinorPersonUid=0==(64&t)?X:a,f.ppjRelationship=0==(128&t)?0:c,f.ppjEmail=0==(256&t)?null:l,f.ppjPhone=0==(512&t)?null:u,f.ppjInactive=0!=(1024&t)&&h,f.ppjStatus=0==(2048&t)?0:d,f.ppjApprovalTiemstamp=0==(4096&t)?X:p,f.ppjApprovalIpAddr=0==(8192&t)?null:_,f}function Elt(){Slt(),hlt.call(this),this.minorPerson=null}function ylt(){blt=this}hlt.$metadata$={kind:c,simpleName:"PersonParentJoin",interfaces:[]},ylt.prototype.serializer=function(){return Nlt()},ylt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var blt=null;function Slt(){return null===blt&&new ylt,blt}function vlt(){this.descriptor_vg1odi$_0=new Wt("com.ustadmobile.lib.db.entities.PersonParentJoinWithMinorPerson",this,15),this.descriptor.addElement_ivxn3r$("ppjUid",!0),this.descriptor.addElement_ivxn3r$("ppjPcsn",!0),this.descriptor.addElement_ivxn3r$("ppjLcsn",!0),this.descriptor.addElement_ivxn3r$("ppjLcb",!0),this.descriptor.addElement_ivxn3r$("ppjLct",!0),this.descriptor.addElement_ivxn3r$("ppjParentPersonUid",!0),this.descriptor.addElement_ivxn3r$("ppjMinorPersonUid",!0),this.descriptor.addElement_ivxn3r$("ppjRelationship",!0),this.descriptor.addElement_ivxn3r$("ppjEmail",!0),this.descriptor.addElement_ivxn3r$("ppjPhone",!0),this.descriptor.addElement_ivxn3r$("ppjInactive",!0),this.descriptor.addElement_ivxn3r$("ppjStatus",!0),this.descriptor.addElement_ivxn3r$("ppjApprovalTiemstamp",!0),this.descriptor.addElement_ivxn3r$("ppjApprovalIpAddr",!0),this.descriptor.addElement_ivxn3r$("minorPerson",!0),Clt=this}Object.defineProperty(vlt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_vg1odi$_0}}),vlt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.ppjUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.ppjUid),O(e.ppjPcsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.ppjPcsn),O(e.ppjLcsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.ppjLcsn),O(e.ppjLcb,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeIntElement_ptg7oe$(this.descriptor,3,e.ppjLcb),O(e.ppjLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.ppjLct),O(e.ppjParentPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.ppjParentPersonUid),O(e.ppjMinorPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.ppjMinorPersonUid),O(e.ppjRelationship,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeIntElement_ptg7oe$(this.descriptor,7,e.ppjRelationship),O(e.ppjEmail,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,8,Ht.StringSerializer,e.ppjEmail),O(e.ppjPhone,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,9,Ht.StringSerializer,e.ppjPhone),O(e.ppjInactive,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeBooleanElement_qh7jdn$(this.descriptor,10,e.ppjInactive),O(e.ppjStatus,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeIntElement_ptg7oe$(this.descriptor,11,e.ppjStatus),O(e.ppjApprovalTiemstamp,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeLongElement_j0o2mv$(this.descriptor,12,e.ppjApprovalTiemstamp),O(e.ppjApprovalIpAddr,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,13,Ht.StringSerializer,e.ppjApprovalIpAddr),O(e.minorPerson,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,14,Ict(),e.minorPerson),n.endStructure_24f42q$(this.descriptor)},vlt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g=0,$=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=$.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=$.decodeLongElement_szpzho$(this.descriptor,0),g|=1;break;case 1:i=$.decodeLongElement_szpzho$(this.descriptor,1),g|=2;break;case 2:o=$.decodeLongElement_szpzho$(this.descriptor,2),g|=4;break;case 3:r=$.decodeIntElement_szpzho$(this.descriptor,3),g|=8;break;case 4:s=$.decodeLongElement_szpzho$(this.descriptor,4),g|=16;break;case 5:a=$.decodeLongElement_szpzho$(this.descriptor,5),g|=32;break;case 6:c=$.decodeLongElement_szpzho$(this.descriptor,6),g|=64;break;case 7:l=$.decodeIntElement_szpzho$(this.descriptor,7),g|=128;break;case 8:u=$.decodeNullableSerializableElement_8viuyw$(this.descriptor,8,Ht.StringSerializer,u),g|=256;break;case 9:h=$.decodeNullableSerializableElement_8viuyw$(this.descriptor,9,Ht.StringSerializer,h),g|=512;break;case 10:d=$.decodeBooleanElement_szpzho$(this.descriptor,10),g|=1024;break;case 11:p=$.decodeIntElement_szpzho$(this.descriptor,11),g|=2048;break;case 12:_=$.decodeLongElement_szpzho$(this.descriptor,12),g|=4096;break;case 13:m=$.decodeNullableSerializableElement_8viuyw$(this.descriptor,13,Ht.StringSerializer,m),g|=8192;break;case 14:f=$.decodeNullableSerializableElement_8viuyw$(this.descriptor,14,Ict(),f),g|=16384;break;case-1:break t;default:throw new Vt(e)}return $.endStructure_24f42q$(this.descriptor),Tlt(g,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,null)},vlt.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.BooleanSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ict())]},vlt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Clt=null;function Nlt(){return null===Clt&&new vlt,Clt}function Tlt(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f){var g=f||Object.create(Elt.prototype);return(g=$lt(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,g)).minorPerson=0==(16384&t)?null:m,g}function Llt(){Olt(),this.personPictureUid=X,this.personPicturePersonUid=X,this.personPictureMasterCsn=X,this.personPictureLocalCsn=X,this.personPictureLastChangedBy=0,this.personPictureLct=X,this.personPictureUri=null,this.personPictureMd5=null,this.fileSize=0,this.picTimestamp=X,this.mimeType=null,this.personPictureActive=!0}function zlt(){wlt=this,this.TABLE_ID=50}Elt.$metadata$={kind:c,simpleName:"PersonParentJoinWithMinorPerson",interfaces:[hlt]},zlt.prototype.serializer=function(){return xlt()},zlt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var wlt=null;function Olt(){return null===wlt&&new zlt,wlt}function Rlt(){this.descriptor_fhshns$_0=new Wt("com.ustadmobile.lib.db.entities.PersonPicture",this,12),this.descriptor.addElement_ivxn3r$("personPictureUid",!0),this.descriptor.addElement_ivxn3r$("personPicturePersonUid",!0),this.descriptor.addElement_ivxn3r$("personPictureMasterCsn",!0),this.descriptor.addElement_ivxn3r$("personPictureLocalCsn",!0),this.descriptor.addElement_ivxn3r$("personPictureLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("personPictureLct",!0),this.descriptor.addElement_ivxn3r$("personPictureUri",!0),this.descriptor.addElement_ivxn3r$("personPictureMd5",!0),this.descriptor.addElement_ivxn3r$("fileSize",!0),this.descriptor.addElement_ivxn3r$("picTimestamp",!0),this.descriptor.addElement_ivxn3r$("mimeType",!0),this.descriptor.addElement_ivxn3r$("personPictureActive",!0),Alt=this}Llt.prototype.equals=function(t){var n;return this===t||!(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))&&(e.isType(t,Llt)||Jt(),!!(O(this.personPictureUid,t.personPictureUid)&&O(this.personPicturePersonUid,t.personPicturePersonUid)&&O(this.personPictureMasterCsn,t.personPictureMasterCsn)&&O(this.personPictureLocalCsn,t.personPictureLocalCsn)&&this.personPictureLastChangedBy===t.personPictureLastChangedBy&&this.fileSize===t.fileSize&&O(this.picTimestamp,t.picTimestamp)&&O(this.mimeType,t.mimeType)&&this.personPictureActive===t.personPictureActive))},Llt.prototype.hashCode=function(){var t,e,n=Yt(this.personPictureUid);return n=(31*(n=(31*(n=(31*(n=(31*(n=(31*(n=(31*(n=(31*(n=(31*n|0)+Yt(this.personPicturePersonUid)|0)|0)+Yt(this.personPictureMasterCsn)|0)|0)+Yt(this.personPictureLocalCsn)|0)|0)+this.personPictureLastChangedBy|0)|0)+this.fileSize|0)|0)+Yt(this.picTimestamp)|0)|0)+(null!=(e=null!=(t=this.mimeType)?Yt(t):null)?e:0)|0)|0)+(this.personPictureActive?1:0)|0},Object.defineProperty(Rlt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_fhshns$_0}}),Rlt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.personPictureUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.personPictureUid),O(e.personPicturePersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.personPicturePersonUid),O(e.personPictureMasterCsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.personPictureMasterCsn),O(e.personPictureLocalCsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.personPictureLocalCsn),O(e.personPictureLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeIntElement_ptg7oe$(this.descriptor,4,e.personPictureLastChangedBy),O(e.personPictureLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.personPictureLct),O(e.personPictureUri,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,6,Ht.StringSerializer,e.personPictureUri),O(e.personPictureMd5,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,7,Ht.StringSerializer,e.personPictureMd5),O(e.fileSize,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeIntElement_ptg7oe$(this.descriptor,8,e.fileSize),O(e.picTimestamp,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeLongElement_j0o2mv$(this.descriptor,9,e.picTimestamp),O(e.mimeType,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,10,Ht.StringSerializer,e.mimeType),O(e.personPictureActive,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeBooleanElement_qh7jdn$(this.descriptor,11,e.personPictureActive),n.endStructure_24f42q$(this.descriptor)},Rlt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_=0,m=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=m.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=m.decodeLongElement_szpzho$(this.descriptor,0),_|=1;break;case 1:i=m.decodeLongElement_szpzho$(this.descriptor,1),_|=2;break;case 2:o=m.decodeLongElement_szpzho$(this.descriptor,2),_|=4;break;case 3:r=m.decodeLongElement_szpzho$(this.descriptor,3),_|=8;break;case 4:s=m.decodeIntElement_szpzho$(this.descriptor,4),_|=16;break;case 5:a=m.decodeLongElement_szpzho$(this.descriptor,5),_|=32;break;case 6:c=m.decodeNullableSerializableElement_8viuyw$(this.descriptor,6,Ht.StringSerializer,c),_|=64;break;case 7:l=m.decodeNullableSerializableElement_8viuyw$(this.descriptor,7,Ht.StringSerializer,l),_|=128;break;case 8:u=m.decodeIntElement_szpzho$(this.descriptor,8),_|=256;break;case 9:h=m.decodeLongElement_szpzho$(this.descriptor,9),_|=512;break;case 10:d=m.decodeNullableSerializableElement_8viuyw$(this.descriptor,10,Ht.StringSerializer,d),_|=1024;break;case 11:p=m.decodeBooleanElement_szpzho$(this.descriptor,11),_|=2048;break;case-1:break t;default:throw new Vt(e)}return m.endStructure_24f42q$(this.descriptor),Ilt(_,n,i,o,r,s,a,c,l,u,h,d,p,null)},Rlt.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.BooleanSerializer]},Rlt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Alt=null;function xlt(){return null===Alt&&new Rlt,Alt}function Ilt(t,e,n,i,o,r,s,a,c,l,u,h,d,p){var _=p||Object.create(Llt.prototype);return _.personPictureUid=0==(1&t)?X:e,_.personPicturePersonUid=0==(2&t)?X:n,_.personPictureMasterCsn=0==(4&t)?X:i,_.personPictureLocalCsn=0==(8&t)?X:o,_.personPictureLastChangedBy=0==(16&t)?0:r,_.personPictureLct=0==(32&t)?X:s,_.personPictureUri=0==(64&t)?null:a,_.personPictureMd5=0==(128&t)?null:c,_.fileSize=0==(256&t)?0:l,_.picTimestamp=0==(512&t)?X:u,_.mimeType=0==(1024&t)?null:h,_.personPictureActive=0==(2048&t)||d,_}function Ult(){this.passwordHash=null,this.personUid=X,this.firstNames=null,this.lastName=null,this.admin=!1}function Dlt(){klt(),zct.call(this),this.currentPassword=null,this.newPassword=null,this.confirmedPassword=null}function Plt(){Mlt=this}Llt.$metadata$={kind:c,simpleName:"PersonPicture",interfaces:[]},Ult.$metadata$={kind:c,simpleName:"PersonUidAndPasswordHash",interfaces:[]},Plt.prototype.serializer=function(){return qlt()},Plt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Mlt=null;function klt(){return null===Mlt&&new Plt,Mlt}function jlt(){this.descriptor_cw84mp$_0=new Wt("com.ustadmobile.lib.db.entities.PersonWithAccount",this,27),this.descriptor.addElement_ivxn3r$("personUid",!0),this.descriptor.addElement_ivxn3r$("username",!0),this.descriptor.addElement_ivxn3r$("firstNames",!0),this.descriptor.addElement_ivxn3r$("lastName",!0),this.descriptor.addElement_ivxn3r$("emailAddr",!0),this.descriptor.addElement_ivxn3r$("phoneNum",!0),this.descriptor.addElement_ivxn3r$("gender",!0),this.descriptor.addElement_ivxn3r$("active",!0),this.descriptor.addElement_ivxn3r$("admin",!0),this.descriptor.addElement_ivxn3r$("personNotes",!0),this.descriptor.addElement_ivxn3r$("fatherName",!0),this.descriptor.addElement_ivxn3r$("fatherNumber",!0),this.descriptor.addElement_ivxn3r$("motherName",!0),this.descriptor.addElement_ivxn3r$("motherNum",!0),this.descriptor.addElement_ivxn3r$("dateOfBirth",!0),this.descriptor.addElement_ivxn3r$("personAddress",!0),this.descriptor.addElement_ivxn3r$("personOrgId",!0),this.descriptor.addElement_ivxn3r$("personGroupUid",!0),this.descriptor.addElement_ivxn3r$("personMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("personLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("personLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("personLct",!0),this.descriptor.addElement_ivxn3r$("personCountry",!0),this.descriptor.addElement_ivxn3r$("personType",!0),this.descriptor.addElement_ivxn3r$("currentPassword",!0),this.descriptor.addElement_ivxn3r$("newPassword",!0),this.descriptor.addElement_ivxn3r$("confirmedPassword",!0),Glt=this}Object.defineProperty(jlt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_cw84mp$_0}}),jlt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.personUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.personUid),O(e.username,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.username),O(e.firstNames,"")&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.firstNames),O(e.lastName,"")&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,3,Ht.StringSerializer,e.lastName),O(e.emailAddr,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,4,Ht.StringSerializer,e.emailAddr),O(e.phoneNum,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,5,Ht.StringSerializer,e.phoneNum),O(e.gender,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.gender),O(e.active,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeBooleanElement_qh7jdn$(this.descriptor,7,e.active),O(e.admin,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeBooleanElement_qh7jdn$(this.descriptor,8,e.admin),O(e.personNotes,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,9,Ht.StringSerializer,e.personNotes),O(e.fatherName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,10,Ht.StringSerializer,e.fatherName),O(e.fatherNumber,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,11,Ht.StringSerializer,e.fatherNumber),O(e.motherName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,12,Ht.StringSerializer,e.motherName),O(e.motherNum,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,13,Ht.StringSerializer,e.motherNum),O(e.dateOfBirth,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeLongElement_j0o2mv$(this.descriptor,14,e.dateOfBirth),O(e.personAddress,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,15,Ht.StringSerializer,e.personAddress),O(e.personOrgId,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,16)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,16,Ht.StringSerializer,e.personOrgId),O(e.personGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,17)||n.encodeLongElement_j0o2mv$(this.descriptor,17,e.personGroupUid),O(e.personMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,18)||n.encodeLongElement_j0o2mv$(this.descriptor,18,e.personMasterChangeSeqNum),O(e.personLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,19)||n.encodeLongElement_j0o2mv$(this.descriptor,19,e.personLocalChangeSeqNum),O(e.personLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,20)||n.encodeIntElement_ptg7oe$(this.descriptor,20,e.personLastChangedBy),O(e.personLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,21)||n.encodeLongElement_j0o2mv$(this.descriptor,21,e.personLct),O(e.personCountry,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,22)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,22,Ht.StringSerializer,e.personCountry),O(e.personType,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,23)||n.encodeIntElement_ptg7oe$(this.descriptor,23,e.personType),O(e.currentPassword,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,24)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,24,Ht.StringSerializer,e.currentPassword),O(e.newPassword,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,25)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,25,Ht.StringSerializer,e.newPassword),O(e.confirmedPassword,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,26)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,26,Ht.StringSerializer,e.confirmedPassword),n.endStructure_24f42q$(this.descriptor)},jlt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w=0,O=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=O.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=O.decodeLongElement_szpzho$(this.descriptor,0),w|=1;break;case 1:i=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),w|=2;break;case 2:o=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),w|=4;break;case 3:r=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,3,Ht.StringSerializer,r),w|=8;break;case 4:s=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,4,Ht.StringSerializer,s),w|=16;break;case 5:a=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,5,Ht.StringSerializer,a),w|=32;break;case 6:c=O.decodeIntElement_szpzho$(this.descriptor,6),w|=64;break;case 7:l=O.decodeBooleanElement_szpzho$(this.descriptor,7),w|=128;break;case 8:u=O.decodeBooleanElement_szpzho$(this.descriptor,8),w|=256;break;case 9:h=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,9,Ht.StringSerializer,h),w|=512;break;case 10:d=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,10,Ht.StringSerializer,d),w|=1024;break;case 11:p=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,11,Ht.StringSerializer,p),w|=2048;break;case 12:_=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,12,Ht.StringSerializer,_),w|=4096;break;case 13:m=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,13,Ht.StringSerializer,m),w|=8192;break;case 14:f=O.decodeLongElement_szpzho$(this.descriptor,14),w|=16384;break;case 15:g=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,15,Ht.StringSerializer,g),w|=32768;break;case 16:$=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,16,Ht.StringSerializer,$),w|=65536;break;case 17:E=O.decodeLongElement_szpzho$(this.descriptor,17),w|=131072;break;case 18:y=O.decodeLongElement_szpzho$(this.descriptor,18),w|=262144;break;case 19:b=O.decodeLongElement_szpzho$(this.descriptor,19),w|=524288;break;case 20:S=O.decodeIntElement_szpzho$(this.descriptor,20),w|=1048576;break;case 21:v=O.decodeLongElement_szpzho$(this.descriptor,21),w|=2097152;break;case 22:C=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,22,Ht.StringSerializer,C),w|=4194304;break;case 23:N=O.decodeIntElement_szpzho$(this.descriptor,23),w|=8388608;break;case 24:T=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,24,Ht.StringSerializer,T),w|=16777216;break;case 25:L=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,25,Ht.StringSerializer,L),w|=33554432;break;case 26:z=O.decodeNullableSerializableElement_8viuyw$(this.descriptor,26,Ht.StringSerializer,z),w|=67108864;break;case-1:break t;default:throw new Vt(e)}return O.endStructure_24f42q$(this.descriptor),Flt(w,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,null)},jlt.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.BooleanSerializer,Ht.BooleanSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.IntSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer)]},jlt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Glt=null;function qlt(){return null===Glt&&new jlt,Glt}function Flt(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z){var w=z||Object.create(Dlt.prototype);return(w=Uct(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,w)).currentPassword=0==(16777216&t)?null:N,w.newPassword=0==(33554432&t)?null:T,w.confirmedPassword=0==(67108864&t)?null:L,w}function Blt(){Vlt(),this.personUid=X,this.firstNames=null,this.lastName=null,this.attempts=0,this.startDate=X,this.endDate=Xt,this.duration=X,this.latestPrivateComment=null,this.fileSubmissionStatus=0,this.scoreProgress=null}function Wlt(){Hlt=this}Dlt.$metadata$={kind:c,simpleName:"PersonWithAccount",interfaces:[zct]},Wlt.prototype.serializer=function(){return Jlt()},Wlt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Hlt=null;function Vlt(){return null===Hlt&&new Wlt,Hlt}function Klt(){this.descriptor_pxo9j0$_0=new Wt("com.ustadmobile.lib.db.entities.PersonWithAttemptsSummary",this,10),this.descriptor.addElement_ivxn3r$("personUid",!0),this.descriptor.addElement_ivxn3r$("firstNames",!0),this.descriptor.addElement_ivxn3r$("lastName",!0),this.descriptor.addElement_ivxn3r$("attempts",!0),this.descriptor.addElement_ivxn3r$("startDate",!0),this.descriptor.addElement_ivxn3r$("endDate",!0),this.descriptor.addElement_ivxn3r$("duration",!0),this.descriptor.addElement_ivxn3r$("latestPrivateComment",!0),this.descriptor.addElement_ivxn3r$("fileSubmissionStatus",!0),this.descriptor.addElement_ivxn3r$("scoreProgress",!0),Xlt=this}Object.defineProperty(Klt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_pxo9j0$_0}}),Klt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.personUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.personUid),O(e.firstNames,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.firstNames),O(e.lastName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.lastName),O(e.attempts,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeIntElement_ptg7oe$(this.descriptor,3,e.attempts),O(e.startDate,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.startDate),O(e.endDate,Xt)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.endDate),O(e.duration,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.duration),O(e.latestPrivateComment,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,7,Ht.StringSerializer,e.latestPrivateComment),O(e.fileSubmissionStatus,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeIntElement_ptg7oe$(this.descriptor,8,e.fileSubmissionStatus),O(e.scoreProgress,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,9,Ket(),e.scoreProgress),n.endStructure_24f42q$(this.descriptor)},Klt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d=0,p=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=p.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=p.decodeLongElement_szpzho$(this.descriptor,0),d|=1;break;case 1:i=p.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),d|=2;break;case 2:o=p.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),d|=4;break;case 3:r=p.decodeIntElement_szpzho$(this.descriptor,3),d|=8;break;case 4:s=p.decodeLongElement_szpzho$(this.descriptor,4),d|=16;break;case 5:a=p.decodeLongElement_szpzho$(this.descriptor,5),d|=32;break;case 6:c=p.decodeLongElement_szpzho$(this.descriptor,6),d|=64;break;case 7:l=p.decodeNullableSerializableElement_8viuyw$(this.descriptor,7,Ht.StringSerializer,l),d|=128;break;case 8:u=p.decodeIntElement_szpzho$(this.descriptor,8),d|=256;break;case 9:h=p.decodeNullableSerializableElement_8viuyw$(this.descriptor,9,Ket(),h),d|=512;break;case-1:break t;default:throw new Vt(e)}return p.endStructure_24f42q$(this.descriptor),Ylt(d,n,i,o,r,s,a,c,l,u,h,null)},Klt.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.IntSerializer,new Bt(Ket())]},Klt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Xlt=null;function Jlt(){return null===Xlt&&new Klt,Xlt}function Ylt(t,e,n,i,o,r,s,a,c,l,u,h){var d=h||Object.create(Blt.prototype);return d.personUid=0==(1&t)?X:e,d.firstNames=0==(2&t)?null:n,d.lastName=0==(4&t)?null:i,d.attempts=0==(8&t)?0:o,d.startDate=0==(16&t)?X:r,d.endDate=0==(32&t)?Xt:s,d.duration=0==(64&t)?X:a,d.latestPrivateComment=0==(128&t)?null:c,d.fileSubmissionStatus=0==(256&t)?0:l,d.scoreProgress=0==(512&t)?null:u,d}function Qlt(){eut(),zct.call(this),this.attendance=0,this.earliestJoinDate=X,this.latestDateLeft=X,this.enrolmentRole=0}function Zlt(){tut=this}Blt.$metadata$={kind:c,simpleName:"PersonWithAttemptsSummary",interfaces:[]},Zlt.prototype.serializer=function(){return out()},Zlt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var tut=null;function eut(){return null===tut&&new Zlt,tut}function nut(){this.descriptor_e9g6re$_0=new Wt("com.ustadmobile.lib.db.entities.PersonWithClazzEnrolmentDetails",this,28),this.descriptor.addElement_ivxn3r$("personUid",!0),this.descriptor.addElement_ivxn3r$("username",!0),this.descriptor.addElement_ivxn3r$("firstNames",!0),this.descriptor.addElement_ivxn3r$("lastName",!0),this.descriptor.addElement_ivxn3r$("emailAddr",!0),this.descriptor.addElement_ivxn3r$("phoneNum",!0),this.descriptor.addElement_ivxn3r$("gender",!0),this.descriptor.addElement_ivxn3r$("active",!0),this.descriptor.addElement_ivxn3r$("admin",!0),this.descriptor.addElement_ivxn3r$("personNotes",!0),this.descriptor.addElement_ivxn3r$("fatherName",!0),this.descriptor.addElement_ivxn3r$("fatherNumber",!0),this.descriptor.addElement_ivxn3r$("motherName",!0),this.descriptor.addElement_ivxn3r$("motherNum",!0),this.descriptor.addElement_ivxn3r$("dateOfBirth",!0),this.descriptor.addElement_ivxn3r$("personAddress",!0),this.descriptor.addElement_ivxn3r$("personOrgId",!0),this.descriptor.addElement_ivxn3r$("personGroupUid",!0),this.descriptor.addElement_ivxn3r$("personMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("personLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("personLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("personLct",!0),this.descriptor.addElement_ivxn3r$("personCountry",!0),this.descriptor.addElement_ivxn3r$("personType",!0),this.descriptor.addElement_ivxn3r$("attendance",!0),this.descriptor.addElement_ivxn3r$("earliestJoinDate",!0),this.descriptor.addElement_ivxn3r$("latestDateLeft",!0),this.descriptor.addElement_ivxn3r$("enrolmentRole",!0),iut=this}Object.defineProperty(nut.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_e9g6re$_0}}),nut.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.personUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.personUid),O(e.username,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.username),O(e.firstNames,"")&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.firstNames),O(e.lastName,"")&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,3,Ht.StringSerializer,e.lastName),O(e.emailAddr,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,4,Ht.StringSerializer,e.emailAddr),O(e.phoneNum,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,5,Ht.StringSerializer,e.phoneNum),O(e.gender,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.gender),O(e.active,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeBooleanElement_qh7jdn$(this.descriptor,7,e.active),O(e.admin,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeBooleanElement_qh7jdn$(this.descriptor,8,e.admin),O(e.personNotes,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,9,Ht.StringSerializer,e.personNotes),O(e.fatherName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,10,Ht.StringSerializer,e.fatherName),O(e.fatherNumber,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,11,Ht.StringSerializer,e.fatherNumber),O(e.motherName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,12,Ht.StringSerializer,e.motherName),O(e.motherNum,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,13,Ht.StringSerializer,e.motherNum),O(e.dateOfBirth,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeLongElement_j0o2mv$(this.descriptor,14,e.dateOfBirth),O(e.personAddress,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,15,Ht.StringSerializer,e.personAddress),O(e.personOrgId,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,16)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,16,Ht.StringSerializer,e.personOrgId),O(e.personGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,17)||n.encodeLongElement_j0o2mv$(this.descriptor,17,e.personGroupUid),O(e.personMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,18)||n.encodeLongElement_j0o2mv$(this.descriptor,18,e.personMasterChangeSeqNum),O(e.personLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,19)||n.encodeLongElement_j0o2mv$(this.descriptor,19,e.personLocalChangeSeqNum),O(e.personLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,20)||n.encodeIntElement_ptg7oe$(this.descriptor,20,e.personLastChangedBy),O(e.personLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,21)||n.encodeLongElement_j0o2mv$(this.descriptor,21,e.personLct),O(e.personCountry,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,22)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,22,Ht.StringSerializer,e.personCountry),O(e.personType,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,23)||n.encodeIntElement_ptg7oe$(this.descriptor,23,e.personType),O(e.attendance,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,24)||n.encodeFloatElement_lf6hpt$(this.descriptor,24,e.attendance),O(e.earliestJoinDate,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,25)||n.encodeLongElement_j0o2mv$(this.descriptor,25,e.earliestJoinDate),O(e.latestDateLeft,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,26)||n.encodeLongElement_j0o2mv$(this.descriptor,26,e.latestDateLeft),O(e.enrolmentRole,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,27)||n.encodeIntElement_ptg7oe$(this.descriptor,27,e.enrolmentRole),n.endStructure_24f42q$(this.descriptor)},nut.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w,O=0,R=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=R.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=R.decodeLongElement_szpzho$(this.descriptor,0),O|=1;break;case 1:i=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),O|=2;break;case 2:o=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),O|=4;break;case 3:r=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,3,Ht.StringSerializer,r),O|=8;break;case 4:s=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,4,Ht.StringSerializer,s),O|=16;break;case 5:a=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,5,Ht.StringSerializer,a),O|=32;break;case 6:c=R.decodeIntElement_szpzho$(this.descriptor,6),O|=64;break;case 7:l=R.decodeBooleanElement_szpzho$(this.descriptor,7),O|=128;break;case 8:u=R.decodeBooleanElement_szpzho$(this.descriptor,8),O|=256;break;case 9:h=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,9,Ht.StringSerializer,h),O|=512;break;case 10:d=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,10,Ht.StringSerializer,d),O|=1024;break;case 11:p=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,11,Ht.StringSerializer,p),O|=2048;break;case 12:_=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,12,Ht.StringSerializer,_),O|=4096;break;case 13:m=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,13,Ht.StringSerializer,m),O|=8192;break;case 14:f=R.decodeLongElement_szpzho$(this.descriptor,14),O|=16384;break;case 15:g=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,15,Ht.StringSerializer,g),O|=32768;break;case 16:$=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,16,Ht.StringSerializer,$),O|=65536;break;case 17:E=R.decodeLongElement_szpzho$(this.descriptor,17),O|=131072;break;case 18:y=R.decodeLongElement_szpzho$(this.descriptor,18),O|=262144;break;case 19:b=R.decodeLongElement_szpzho$(this.descriptor,19),O|=524288;break;case 20:S=R.decodeIntElement_szpzho$(this.descriptor,20),O|=1048576;break;case 21:v=R.decodeLongElement_szpzho$(this.descriptor,21),O|=2097152;break;case 22:C=R.decodeNullableSerializableElement_8viuyw$(this.descriptor,22,Ht.StringSerializer,C),O|=4194304;break;case 23:N=R.decodeIntElement_szpzho$(this.descriptor,23),O|=8388608;break;case 24:T=R.decodeFloatElement_szpzho$(this.descriptor,24),O|=16777216;break;case 25:L=R.decodeLongElement_szpzho$(this.descriptor,25),O|=33554432;break;case 26:z=R.decodeLongElement_szpzho$(this.descriptor,26),O|=67108864;break;case 27:w=R.decodeIntElement_szpzho$(this.descriptor,27),O|=134217728;break;case-1:break t;default:throw new Vt(e)}return R.endStructure_24f42q$(this.descriptor),rut(O,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w,null)},nut.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.BooleanSerializer,Ht.BooleanSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.FloatSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer]},nut.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var iut=null;function out(){return null===iut&&new nut,iut}function rut(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w){var O=w||Object.create(Qlt.prototype);return(O=Uct(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,O)).attendance=0==(16777216&t)?0:N,O.earliestJoinDate=0==(33554432&t)?X:T,O.latestDateLeft=0==(67108864&t)?X:L,O.enrolmentRole=0==(134217728&t)?0:z,O}function sut(){lut(),zct.call(this)}function aut(){cut=this}Qlt.$metadata$={kind:c,simpleName:"PersonWithClazzEnrolmentDetails",interfaces:[zct]},aut.prototype.serializer=function(){return dut()},aut.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var cut=null;function lut(){return null===cut&&new aut,cut}function uut(){this.descriptor_ed61om$_0=new Wt("com.ustadmobile.lib.db.entities.PersonWithDisplayDetails",this,24),this.descriptor.addElement_ivxn3r$("personUid",!0),this.descriptor.addElement_ivxn3r$("username",!0),this.descriptor.addElement_ivxn3r$("firstNames",!0),this.descriptor.addElement_ivxn3r$("lastName",!0),this.descriptor.addElement_ivxn3r$("emailAddr",!0),this.descriptor.addElement_ivxn3r$("phoneNum",!0),this.descriptor.addElement_ivxn3r$("gender",!0),this.descriptor.addElement_ivxn3r$("active",!0),this.descriptor.addElement_ivxn3r$("admin",!0),this.descriptor.addElement_ivxn3r$("personNotes",!0),this.descriptor.addElement_ivxn3r$("fatherName",!0),this.descriptor.addElement_ivxn3r$("fatherNumber",!0),this.descriptor.addElement_ivxn3r$("motherName",!0),this.descriptor.addElement_ivxn3r$("motherNum",!0),this.descriptor.addElement_ivxn3r$("dateOfBirth",!0),this.descriptor.addElement_ivxn3r$("personAddress",!0),this.descriptor.addElement_ivxn3r$("personOrgId",!0),this.descriptor.addElement_ivxn3r$("personGroupUid",!0),this.descriptor.addElement_ivxn3r$("personMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("personLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("personLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("personLct",!0),this.descriptor.addElement_ivxn3r$("personCountry",!0),this.descriptor.addElement_ivxn3r$("personType",!0),hut=this}Object.defineProperty(uut.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_ed61om$_0}}),uut.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.personUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.personUid),O(e.username,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.username),O(e.firstNames,"")&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.firstNames),O(e.lastName,"")&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,3,Ht.StringSerializer,e.lastName),O(e.emailAddr,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,4,Ht.StringSerializer,e.emailAddr),O(e.phoneNum,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,5,Ht.StringSerializer,e.phoneNum),O(e.gender,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.gender),O(e.active,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeBooleanElement_qh7jdn$(this.descriptor,7,e.active),O(e.admin,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeBooleanElement_qh7jdn$(this.descriptor,8,e.admin),O(e.personNotes,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,9,Ht.StringSerializer,e.personNotes),O(e.fatherName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,10,Ht.StringSerializer,e.fatherName),O(e.fatherNumber,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,11,Ht.StringSerializer,e.fatherNumber),O(e.motherName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,12,Ht.StringSerializer,e.motherName),O(e.motherNum,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,13,Ht.StringSerializer,e.motherNum),O(e.dateOfBirth,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeLongElement_j0o2mv$(this.descriptor,14,e.dateOfBirth),O(e.personAddress,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,15,Ht.StringSerializer,e.personAddress),O(e.personOrgId,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,16)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,16,Ht.StringSerializer,e.personOrgId),O(e.personGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,17)||n.encodeLongElement_j0o2mv$(this.descriptor,17,e.personGroupUid),O(e.personMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,18)||n.encodeLongElement_j0o2mv$(this.descriptor,18,e.personMasterChangeSeqNum),O(e.personLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,19)||n.encodeLongElement_j0o2mv$(this.descriptor,19,e.personLocalChangeSeqNum),O(e.personLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,20)||n.encodeIntElement_ptg7oe$(this.descriptor,20,e.personLastChangedBy),O(e.personLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,21)||n.encodeLongElement_j0o2mv$(this.descriptor,21,e.personLct),O(e.personCountry,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,22)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,22,Ht.StringSerializer,e.personCountry),O(e.personType,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,23)||n.encodeIntElement_ptg7oe$(this.descriptor,23,e.personType),n.endStructure_24f42q$(this.descriptor)},uut.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T=0,L=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=L.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=L.decodeLongElement_szpzho$(this.descriptor,0),T|=1;break;case 1:i=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),T|=2;break;case 2:o=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),T|=4;break;case 3:r=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,3,Ht.StringSerializer,r),T|=8;break;case 4:s=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,4,Ht.StringSerializer,s),T|=16;break;case 5:a=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,5,Ht.StringSerializer,a),T|=32;break;case 6:c=L.decodeIntElement_szpzho$(this.descriptor,6),T|=64;break;case 7:l=L.decodeBooleanElement_szpzho$(this.descriptor,7),T|=128;break;case 8:u=L.decodeBooleanElement_szpzho$(this.descriptor,8),T|=256;break;case 9:h=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,9,Ht.StringSerializer,h),T|=512;break;case 10:d=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,10,Ht.StringSerializer,d),T|=1024;break;case 11:p=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,11,Ht.StringSerializer,p),T|=2048;break;case 12:_=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,12,Ht.StringSerializer,_),T|=4096;break;case 13:m=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,13,Ht.StringSerializer,m),T|=8192;break;case 14:f=L.decodeLongElement_szpzho$(this.descriptor,14),T|=16384;break;case 15:g=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,15,Ht.StringSerializer,g),T|=32768;break;case 16:$=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,16,Ht.StringSerializer,$),T|=65536;break;case 17:E=L.decodeLongElement_szpzho$(this.descriptor,17),T|=131072;break;case 18:y=L.decodeLongElement_szpzho$(this.descriptor,18),T|=262144;break;case 19:b=L.decodeLongElement_szpzho$(this.descriptor,19),T|=524288;break;case 20:S=L.decodeIntElement_szpzho$(this.descriptor,20),T|=1048576;break;case 21:v=L.decodeLongElement_szpzho$(this.descriptor,21),T|=2097152;break;case 22:C=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,22,Ht.StringSerializer,C),T|=4194304;break;case 23:N=L.decodeIntElement_szpzho$(this.descriptor,23),T|=8388608;break;case-1:break t;default:throw new Vt(e)}return L.endStructure_24f42q$(this.descriptor),put(T,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,null)},uut.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.BooleanSerializer,Ht.BooleanSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.IntSerializer]},uut.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var hut=null;function dut(){return null===hut&&new uut,hut}function put(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N){var T=N||Object.create(sut.prototype);return T=Uct(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,T)}function _ut(){gut(),zct.call(this),this.parentJoin=null}function mut(){fut=this}sut.$metadata$={kind:c,simpleName:"PersonWithDisplayDetails",interfaces:[zct]},mut.prototype.serializer=function(){return yut()},mut.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var fut=null;function gut(){return null===fut&&new mut,fut}function $ut(){this.descriptor_purrnz$_0=new Wt("com.ustadmobile.lib.db.entities.PersonWithPersonParentJoin",this,25),this.descriptor.addElement_ivxn3r$("personUid",!0),this.descriptor.addElement_ivxn3r$("username",!0),this.descriptor.addElement_ivxn3r$("firstNames",!0),this.descriptor.addElement_ivxn3r$("lastName",!0),this.descriptor.addElement_ivxn3r$("emailAddr",!0),this.descriptor.addElement_ivxn3r$("phoneNum",!0),this.descriptor.addElement_ivxn3r$("gender",!0),this.descriptor.addElement_ivxn3r$("active",!0),this.descriptor.addElement_ivxn3r$("admin",!0),this.descriptor.addElement_ivxn3r$("personNotes",!0),this.descriptor.addElement_ivxn3r$("fatherName",!0),this.descriptor.addElement_ivxn3r$("fatherNumber",!0),this.descriptor.addElement_ivxn3r$("motherName",!0),this.descriptor.addElement_ivxn3r$("motherNum",!0),this.descriptor.addElement_ivxn3r$("dateOfBirth",!0),this.descriptor.addElement_ivxn3r$("personAddress",!0),this.descriptor.addElement_ivxn3r$("personOrgId",!0),this.descriptor.addElement_ivxn3r$("personGroupUid",!0),this.descriptor.addElement_ivxn3r$("personMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("personLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("personLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("personLct",!0),this.descriptor.addElement_ivxn3r$("personCountry",!0),this.descriptor.addElement_ivxn3r$("personType",!0),this.descriptor.addElement_ivxn3r$("parentJoin",!0),Eut=this}Object.defineProperty($ut.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_purrnz$_0}}),$ut.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.personUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.personUid),O(e.username,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.username),O(e.firstNames,"")&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.firstNames),O(e.lastName,"")&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,3,Ht.StringSerializer,e.lastName),O(e.emailAddr,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,4,Ht.StringSerializer,e.emailAddr),O(e.phoneNum,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,5,Ht.StringSerializer,e.phoneNum),O(e.gender,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.gender),O(e.active,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeBooleanElement_qh7jdn$(this.descriptor,7,e.active),O(e.admin,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeBooleanElement_qh7jdn$(this.descriptor,8,e.admin),O(e.personNotes,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,9,Ht.StringSerializer,e.personNotes),O(e.fatherName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,10,Ht.StringSerializer,e.fatherName),O(e.fatherNumber,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,11,Ht.StringSerializer,e.fatherNumber),O(e.motherName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,12,Ht.StringSerializer,e.motherName),O(e.motherNum,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,13,Ht.StringSerializer,e.motherNum),O(e.dateOfBirth,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeLongElement_j0o2mv$(this.descriptor,14,e.dateOfBirth),O(e.personAddress,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,15,Ht.StringSerializer,e.personAddress),O(e.personOrgId,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,16)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,16,Ht.StringSerializer,e.personOrgId),O(e.personGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,17)||n.encodeLongElement_j0o2mv$(this.descriptor,17,e.personGroupUid),O(e.personMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,18)||n.encodeLongElement_j0o2mv$(this.descriptor,18,e.personMasterChangeSeqNum),O(e.personLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,19)||n.encodeLongElement_j0o2mv$(this.descriptor,19,e.personLocalChangeSeqNum),O(e.personLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,20)||n.encodeIntElement_ptg7oe$(this.descriptor,20,e.personLastChangedBy),O(e.personLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,21)||n.encodeLongElement_j0o2mv$(this.descriptor,21,e.personLct),O(e.personCountry,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,22)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,22,Ht.StringSerializer,e.personCountry),O(e.personType,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,23)||n.encodeIntElement_ptg7oe$(this.descriptor,23,e.personType),O(e.parentJoin,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,24)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,24,glt(),e.parentJoin),n.endStructure_24f42q$(this.descriptor)},$ut.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L=0,z=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=z.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=z.decodeLongElement_szpzho$(this.descriptor,0),L|=1;break;case 1:i=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),L|=2;break;case 2:o=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),L|=4;break;case 3:r=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,3,Ht.StringSerializer,r),L|=8;break;case 4:s=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,4,Ht.StringSerializer,s),L|=16;break;case 5:a=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,5,Ht.StringSerializer,a),L|=32;break;case 6:c=z.decodeIntElement_szpzho$(this.descriptor,6),L|=64;break;case 7:l=z.decodeBooleanElement_szpzho$(this.descriptor,7),L|=128;break;case 8:u=z.decodeBooleanElement_szpzho$(this.descriptor,8),L|=256;break;case 9:h=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,9,Ht.StringSerializer,h),L|=512;break;case 10:d=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,10,Ht.StringSerializer,d),L|=1024;break;case 11:p=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,11,Ht.StringSerializer,p),L|=2048;break;case 12:_=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,12,Ht.StringSerializer,_),L|=4096;break;case 13:m=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,13,Ht.StringSerializer,m),L|=8192;break;case 14:f=z.decodeLongElement_szpzho$(this.descriptor,14),L|=16384;break;case 15:g=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,15,Ht.StringSerializer,g),L|=32768;break;case 16:$=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,16,Ht.StringSerializer,$),L|=65536;break;case 17:E=z.decodeLongElement_szpzho$(this.descriptor,17),L|=131072;break;case 18:y=z.decodeLongElement_szpzho$(this.descriptor,18),L|=262144;break;case 19:b=z.decodeLongElement_szpzho$(this.descriptor,19),L|=524288;break;case 20:S=z.decodeIntElement_szpzho$(this.descriptor,20),L|=1048576;break;case 21:v=z.decodeLongElement_szpzho$(this.descriptor,21),L|=2097152;break;case 22:C=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,22,Ht.StringSerializer,C),L|=4194304;break;case 23:N=z.decodeIntElement_szpzho$(this.descriptor,23),L|=8388608;break;case 24:T=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,24,glt(),T),L|=16777216;break;case-1:break t;default:throw new Vt(e)}return z.endStructure_24f42q$(this.descriptor),but(L,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,null)},$ut.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.BooleanSerializer,Ht.BooleanSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.IntSerializer,new Bt(glt())]},$ut.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Eut=null;function yut(){return null===Eut&&new $ut,Eut}function but(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T){var L=T||Object.create(_ut.prototype);return(L=Uct(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,L)).parentJoin=0==(16777216&t)?null:N,L}function Sut(){Nut(),this.startDate=X,this.contextRegistration=null,this.duration=X,this.resultSuccess=Xpt().RESULT_UNSET,this.resultComplete=!1,this.resultScoreScaled=0,this.resultMax=0,this.resultScore=0}function vut(){Cut=this}_ut.$metadata$={kind:c,simpleName:"PersonWithPersonParentJoin",interfaces:[zct]},vut.prototype.serializer=function(){return zut()},vut.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Cut=null;function Nut(){return null===Cut&&new vut,Cut}function Tut(){this.descriptor_u52gmh$_0=new Wt("com.ustadmobile.lib.db.entities.PersonWithSessionsDisplay",this,8),this.descriptor.addElement_ivxn3r$("startDate",!0),this.descriptor.addElement_ivxn3r$("contextRegistration",!0),this.descriptor.addElement_ivxn3r$("duration",!0),this.descriptor.addElement_ivxn3r$("resultSuccess",!0),this.descriptor.addElement_ivxn3r$("resultComplete",!0),this.descriptor.addElement_ivxn3r$("resultScoreScaled",!0),this.descriptor.addElement_ivxn3r$("resultMax",!0),this.descriptor.addElement_ivxn3r$("resultScore",!0),Lut=this}Object.defineProperty(Tut.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_u52gmh$_0}}),Tut.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.startDate,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.startDate),O(e.contextRegistration,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.contextRegistration),O(e.duration,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.duration),O(e.resultSuccess,Xpt().RESULT_UNSET)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeByteElement_j0u8y3$(this.descriptor,3,e.resultSuccess),O(e.resultComplete,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeBooleanElement_qh7jdn$(this.descriptor,4,e.resultComplete),O(e.resultScoreScaled,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeFloatElement_lf6hpt$(this.descriptor,5,e.resultScoreScaled),O(e.resultMax,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.resultMax),O(e.resultScore,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeIntElement_ptg7oe$(this.descriptor,7,e.resultScore),n.endStructure_24f42q$(this.descriptor)},Tut.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u=0,h=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=h.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=h.decodeLongElement_szpzho$(this.descriptor,0),u|=1;break;case 1:i=h.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),u|=2;break;case 2:o=h.decodeLongElement_szpzho$(this.descriptor,2),u|=4;break;case 3:r=h.decodeByteElement_szpzho$(this.descriptor,3),u|=8;break;case 4:s=h.decodeBooleanElement_szpzho$(this.descriptor,4),u|=16;break;case 5:a=h.decodeFloatElement_szpzho$(this.descriptor,5),u|=32;break;case 6:c=h.decodeIntElement_szpzho$(this.descriptor,6),u|=64;break;case 7:l=h.decodeIntElement_szpzho$(this.descriptor,7),u|=128;break;case-1:break t;default:throw new Vt(e)}return h.endStructure_24f42q$(this.descriptor),wut(u,n,i,o,r,s,a,c,l,null)},Tut.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.ByteSerializer,Ht.BooleanSerializer,Ht.FloatSerializer,Ht.IntSerializer,Ht.IntSerializer]},Tut.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Lut=null;function zut(){return null===Lut&&new Tut,Lut}function wut(t,e,n,i,o,r,s,a,c,l){var u=l||Object.create(Sut.prototype);return u.startDate=0==(1&t)?X:e,u.contextRegistration=0==(2&t)?null:n,u.duration=0==(4&t)?X:i,u.resultSuccess=0==(8&t)?Xpt().RESULT_UNSET:o,u.resultComplete=0!=(16&t)&&r,u.resultScoreScaled=0==(32&t)?0:s,u.resultMax=0==(64&t)?0:a,u.resultScore=0==(128&t)?0:c,u}function Out(){xut(),this.reportUid=X,this.reportOwnerUid=X,this.xAxis=300,this.reportDateRangeSelection=0,this.fromDate=X,this.fromRelTo=0,this.fromRelOffSet=0,this.fromRelUnit=0,this.toDate=X,this.toRelTo=0,this.toRelOffSet=0,this.toRelUnit=0,this.reportTitle=null,this.reportDescription=null,this.reportSeries=null,this.reportInactive=!1,this.isTemplate=!1,this.priority=1,this.reportTitleId=0,this.reportDescId=0,this.reportMasterChangeSeqNum=X,this.reportLocalChangeSeqNum=X,this.reportLastChangedBy=0,this.reportLct=X}function Rut(){Aut=this,this.TABLE_ID=101,this.DAY=300,this.WEEK=301,this.MONTH=302,this.CONTENT_ENTRY=304,this.GENDER=306,this.CLASS=307,this.ENROLMENT_OUTCOME=308,this.ENROLMENT_LEAVING_REASON=309,this.EVERYTHING=0,this.LAST_WEEK_DATE=800,this.LAST_TWO_WEEKS_DATE=801,this.LAST_MONTH_DATE=802,this.LAST_THREE_MONTHS_DATE=803,this.NEW_CUSTOM_RANGE_DATE=804,this.CUSTOM_RANGE=805,this.TEMPLATE_BLANK_REPORT_UID=me,this.TEMPLATE_CONTENT_USAGE_OVER_TIME_UID=fe,this.TEMPLATE_UNIQUE_CONTENT_USERS_UID=ge,this.TEMPLATE_ATTENDANCE_OVER_TIME_BY_CLASS_UID=$e,this.TEMPLATE_CONTENT_USAGE_BY_CLASS_UID=Ee,this.TEMPLATE_CONTENT_COMPLETION_UID=ye,this.BLANK_REPORT=1,this.BLANK_REPORT_DESC=2,this.CONTENT_USAGE_OVER_TIME=3,this.CONTENT_USAGE_OVER_TIME_DESC=4,this.UNIQUE_CONTENT_USERS_OVER_TIME=5,this.UNIQUE_CONTENT_USERS_OVER_TIME_DESC=6,this.ATTENDANCE_OVER_TIME_BY_CLASS=7,this.ATTENDANCE_OVER_TIME_BY_CLASS_DESC=8,this.CONTENT_USAGE_BY_CLASS=9,this.CONTENT_USAGE_BY_CLASS_DESC=10,this.CONTENT_COMPLETION=11,this.CONTENT_COMPLETION_DESC=12;var t=new Out;t.reportUid=this.TEMPLATE_BLANK_REPORT_UID,t.reportTitle="Blank report",t.reportDescription="Start ",t.isTemplate=!0,t.priority=0,t.reportTitleId=1,t.reportDescId=2,t.reportSeries=be(' \n [{\n "reportSeriesUid": 0,\n "reportSeriesName": "Series 1",\n "reportSeriesYAxis": 200,\n "reportSeriesVisualType": 100,\n "reportSeriesSubGroup": 0\n }]\n ');var e=new Out;e.reportUid=this.TEMPLATE_CONTENT_USAGE_OVER_TIME_UID,e.reportTitle="Content usage over time",e.reportDescription="Total content ",e.xAxis=306,e.isTemplate=!0,e.reportTitleId=3,e.reportDescId=4,e.reportSeries=be(' \n [{\n "reportSeriesUid": 0,\n "reportSeriesName": "Series 1",\n "reportSeriesYAxis": 200,\n "reportSeriesVisualType": 100,\n "reportSeriesSubGroup": 0\n }]\n ');var n=new Out;n.reportUid=this.TEMPLATE_UNIQUE_CONTENT_USERS_UID,n.reportTitle="Unique content users over time",n.reportDescription="Number of active users over time",n.xAxis=302,n.isTemplate=!0,n.reportTitleId=5,n.reportDescId=6,n.reportSeries=be(' \n [{\n "reportSeriesUid": 0,\n "reportSeriesName": "Series 1",\n "reportSeriesYAxis": 204,\n "reportSeriesVisualType": 100,\n "reportSeriesSubGroup": 0\n }]\n ');var i=new Out;i.reportUid=this.TEMPLATE_ATTENDANCE_OVER_TIME_BY_CLASS_UID,i.reportTitle="Attendance over time by class",i.reportDescription="Percentage of students attending over time",i.isTemplate=!0,i.xAxis=307,i.reportTitleId=7,i.reportDescId=8,i.reportSeries=be(' \n [{\n "reportSeriesUid": 0,\n "reportSeriesName": "Series 1",\n "reportSeriesYAxis": 211,\n "reportSeriesVisualType": 100,\n "reportSeriesSubGroup": 0\n }]\n ');var o=new Out;o.reportUid=this.TEMPLATE_CONTENT_USAGE_BY_CLASS_UID,o.reportTitle="Content usage by class",o.reportDescription="Total content usage duration subgroup by class",o.xAxis=307,o.isTemplate=!0,o.reportTitleId=9,o.reportDescId=10,o.reportSeries=be('\n [{\n "reportSeriesUid ": 0,\n "reportSeriesName ": " Series 1",\n "reportSeriesYAxis": 200,\n "reportSeriesVisualType": 100,\n "reportSeriesSubGroup": 0\n }]\n ');var r=new Out;r.reportUid=this.TEMPLATE_CONTENT_COMPLETION_UID,r.reportTitle="Content completion",r.reportDescription="Number of students who have completed selected content",r.isTemplate=!0,r.xAxis=304,r.reportTitleId=11,r.reportDescId=12,r.reportSeries=be('\n [{\n "reportSeriesUid": 0,\n "reportSeriesName": "Series 1",\n "reportSeriesYAxis": 206,\n "reportSeriesVisualType": 100,\n "reportSeriesSubGroup": 0\n }]\n '),this.FIXED_TEMPLATES=p([t,e,n,i,o,r])}Sut.$metadata$={kind:c,simpleName:"PersonWithSessionsDisplay",interfaces:[]},Rut.prototype.serializer=function(){return Dut()},Rut.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Aut=null;function xut(){return null===Aut&&new Rut,Aut}function Iut(){this.descriptor_cqf3en$_0=new Wt("com.ustadmobile.lib.db.entities.Report",this,24),this.descriptor.addElement_ivxn3r$("reportUid",!0),this.descriptor.addElement_ivxn3r$("reportOwnerUid",!0),this.descriptor.addElement_ivxn3r$("xAxis",!0),this.descriptor.addElement_ivxn3r$("reportDateRangeSelection",!0),this.descriptor.addElement_ivxn3r$("fromDate",!0),this.descriptor.addElement_ivxn3r$("fromRelTo",!0),this.descriptor.addElement_ivxn3r$("fromRelOffSet",!0),this.descriptor.addElement_ivxn3r$("fromRelUnit",!0),this.descriptor.addElement_ivxn3r$("toDate",!0),this.descriptor.addElement_ivxn3r$("toRelTo",!0),this.descriptor.addElement_ivxn3r$("toRelOffSet",!0),this.descriptor.addElement_ivxn3r$("toRelUnit",!0),this.descriptor.addElement_ivxn3r$("reportTitle",!0),this.descriptor.addElement_ivxn3r$("reportDescription",!0),this.descriptor.addElement_ivxn3r$("reportSeries",!0),this.descriptor.addElement_ivxn3r$("reportInactive",!0),this.descriptor.addElement_ivxn3r$("isTemplate",!0),this.descriptor.addElement_ivxn3r$("priority",!0),this.descriptor.addElement_ivxn3r$("reportTitleId",!0),this.descriptor.addElement_ivxn3r$("reportDescId",!0),this.descriptor.addElement_ivxn3r$("reportMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("reportLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("reportLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("reportLct",!0),Uut=this}Out.prototype.equals=function(t){var n;return this===t||!(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))&&(e.isType(t,Out)||Jt(),!!(O(this.reportUid,t.reportUid)&&O(this.reportOwnerUid,t.reportOwnerUid)&&this.xAxis===t.xAxis&&O(this.fromDate,t.fromDate)&&this.fromRelTo===t.fromRelTo&&this.fromRelOffSet===t.fromRelOffSet&&this.fromRelUnit===t.fromRelUnit&&O(this.toDate,t.toDate)&&this.toRelTo===t.toRelTo&&this.toRelOffSet===t.toRelOffSet&&this.toRelUnit===t.toRelUnit&&O(this.reportTitle,t.reportTitle)&&O(this.reportDescription,t.reportDescription)&&O(this.reportSeries,t.reportSeries)&&this.reportInactive===t.reportInactive&&this.isTemplate===t.isTemplate&&this.priority===t.priority&&O(this.reportMasterChangeSeqNum,t.reportMasterChangeSeqNum)&&O(this.reportLocalChangeSeqNum,t.reportLocalChangeSeqNum)&&this.reportLastChangedBy===t.reportLastChangedBy))},Out.prototype.hashCode=function(){var t,e,n,i,o,r,s=Yt(this.reportUid);return s=(31*(s=(31*(s=(31*(s=(31*(s=(31*(s=(31*(s=(31*(s=(31*(s=(31*(s=(31*(s=(31*(s=(31*(s=(31*(s=(31*(s=(31*(s=(31*(s=(31*(s=(31*(s=(31*s|0)+Yt(this.reportOwnerUid)|0)|0)+this.xAxis|0)|0)+Yt(this.fromDate)|0)|0)+this.fromRelTo|0)|0)+this.fromRelOffSet|0)|0)+this.fromRelUnit|0)|0)+Yt(this.toDate)|0)|0)+this.toRelTo|0)|0)+this.toRelOffSet|0)|0)+this.toRelUnit|0)|0)+(null!=(e=null!=(t=this.reportTitle)?Yt(t):null)?e:0)|0)|0)+(null!=(i=null!=(n=this.reportDescription)?Yt(n):null)?i:0)|0)|0)+(null!=(r=null!=(o=this.reportSeries)?Yt(o):null)?r:0)|0)|0)+Yt(this.reportInactive)|0)|0)+Yt(this.isTemplate)|0)|0)+Yt(this.priority)|0)|0)+Yt(this.reportMasterChangeSeqNum)|0)|0)+Yt(this.reportLocalChangeSeqNum)|0)|0)+this.reportLastChangedBy|0},Object.defineProperty(Iut.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_cqf3en$_0}}),Iut.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.reportUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.reportUid),O(e.reportOwnerUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.reportOwnerUid),O(e.xAxis,300)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeIntElement_ptg7oe$(this.descriptor,2,e.xAxis),O(e.reportDateRangeSelection,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeIntElement_ptg7oe$(this.descriptor,3,e.reportDateRangeSelection),O(e.fromDate,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.fromDate),O(e.fromRelTo,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeIntElement_ptg7oe$(this.descriptor,5,e.fromRelTo),O(e.fromRelOffSet,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.fromRelOffSet),O(e.fromRelUnit,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeIntElement_ptg7oe$(this.descriptor,7,e.fromRelUnit),O(e.toDate,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.toDate),O(e.toRelTo,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeIntElement_ptg7oe$(this.descriptor,9,e.toRelTo),O(e.toRelOffSet,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeIntElement_ptg7oe$(this.descriptor,10,e.toRelOffSet),O(e.toRelUnit,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeIntElement_ptg7oe$(this.descriptor,11,e.toRelUnit),O(e.reportTitle,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,12,Ht.StringSerializer,e.reportTitle),O(e.reportDescription,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,13,Ht.StringSerializer,e.reportDescription),O(e.reportSeries,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,14,Ht.StringSerializer,e.reportSeries),O(e.reportInactive,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeBooleanElement_qh7jdn$(this.descriptor,15,e.reportInactive),O(e.isTemplate,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,16)||n.encodeBooleanElement_qh7jdn$(this.descriptor,16,e.isTemplate),O(e.priority,1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,17)||n.encodeIntElement_ptg7oe$(this.descriptor,17,e.priority),O(e.reportTitleId,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,18)||n.encodeIntElement_ptg7oe$(this.descriptor,18,e.reportTitleId),O(e.reportDescId,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,19)||n.encodeIntElement_ptg7oe$(this.descriptor,19,e.reportDescId),O(e.reportMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,20)||n.encodeLongElement_j0o2mv$(this.descriptor,20,e.reportMasterChangeSeqNum),O(e.reportLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,21)||n.encodeLongElement_j0o2mv$(this.descriptor,21,e.reportLocalChangeSeqNum),O(e.reportLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,22)||n.encodeIntElement_ptg7oe$(this.descriptor,22,e.reportLastChangedBy),O(e.reportLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,23)||n.encodeLongElement_j0o2mv$(this.descriptor,23,e.reportLct),n.endStructure_24f42q$(this.descriptor)},Iut.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T=0,L=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=L.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=L.decodeLongElement_szpzho$(this.descriptor,0),T|=1;break;case 1:i=L.decodeLongElement_szpzho$(this.descriptor,1),T|=2;break;case 2:o=L.decodeIntElement_szpzho$(this.descriptor,2),T|=4;break;case 3:r=L.decodeIntElement_szpzho$(this.descriptor,3),T|=8;break;case 4:s=L.decodeLongElement_szpzho$(this.descriptor,4),T|=16;break;case 5:a=L.decodeIntElement_szpzho$(this.descriptor,5),T|=32;break;case 6:c=L.decodeIntElement_szpzho$(this.descriptor,6),T|=64;break;case 7:l=L.decodeIntElement_szpzho$(this.descriptor,7),T|=128;break;case 8:u=L.decodeLongElement_szpzho$(this.descriptor,8),T|=256;break;case 9:h=L.decodeIntElement_szpzho$(this.descriptor,9),T|=512;break;case 10:d=L.decodeIntElement_szpzho$(this.descriptor,10),T|=1024;break;case 11:p=L.decodeIntElement_szpzho$(this.descriptor,11),T|=2048;break;case 12:_=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,12,Ht.StringSerializer,_),T|=4096;break;case 13:m=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,13,Ht.StringSerializer,m),T|=8192;break;case 14:f=L.decodeNullableSerializableElement_8viuyw$(this.descriptor,14,Ht.StringSerializer,f),T|=16384;break;case 15:g=L.decodeBooleanElement_szpzho$(this.descriptor,15),T|=32768;break;case 16:$=L.decodeBooleanElement_szpzho$(this.descriptor,16),T|=65536;break;case 17:E=L.decodeIntElement_szpzho$(this.descriptor,17),T|=131072;break;case 18:y=L.decodeIntElement_szpzho$(this.descriptor,18),T|=262144;break;case 19:b=L.decodeIntElement_szpzho$(this.descriptor,19),T|=524288;break;case 20:S=L.decodeLongElement_szpzho$(this.descriptor,20),T|=1048576;break;case 21:v=L.decodeLongElement_szpzho$(this.descriptor,21),T|=2097152;break;case 22:C=L.decodeIntElement_szpzho$(this.descriptor,22),T|=4194304;break;case 23:N=L.decodeLongElement_szpzho$(this.descriptor,23),T|=8388608;break;case-1:break t;default:throw new Vt(e)}return L.endStructure_24f42q$(this.descriptor),Put(T,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,null)},Iut.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.BooleanSerializer,Ht.BooleanSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer]},Iut.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Uut=null;function Dut(){return null===Uut&&new Iut,Uut}function Put(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N){var T=N||Object.create(Out.prototype);return T.reportUid=0==(1&t)?X:e,T.reportOwnerUid=0==(2&t)?X:n,T.xAxis=0==(4&t)?300:i,T.reportDateRangeSelection=0==(8&t)?0:o,T.fromDate=0==(16&t)?X:r,T.fromRelTo=0==(32&t)?0:s,T.fromRelOffSet=0==(64&t)?0:a,T.fromRelUnit=0==(128&t)?0:c,T.toDate=0==(256&t)?X:l,T.toRelTo=0==(512&t)?0:u,T.toRelOffSet=0==(1024&t)?0:h,T.toRelUnit=0==(2048&t)?0:d,T.reportTitle=0==(4096&t)?null:p,T.reportDescription=0==(8192&t)?null:_,T.reportSeries=0==(16384&t)?null:m,T.reportInactive=0!=(32768&t)&&f,T.isTemplate=0!=(65536&t)&&g,T.priority=0==(131072&t)?1:$,T.reportTitleId=0==(262144&t)?0:E,T.reportDescId=0==(524288&t)?0:y,T.reportMasterChangeSeqNum=0==(1048576&t)?X:b,T.reportLocalChangeSeqNum=0==(2097152&t)?X:S,T.reportLastChangedBy=0==(4194304&t)?0:v,T.reportLct=0==(8388608&t)?X:C,T}function Mut(){Gut(),this.reportFilterUid=0,this.reportFilterSeriesUid=0,this.reportFilterField=100,this.reportFilterCondition=0,this.reportFilterValue=null,this.reportFilterDropDownValue=0,this.reportFilterValueBetweenX=null,this.reportFilterValueBetweenY=null}function kut(){jut=this,this.FIELD_PERSON_GENDER=100,this.FIELD_PERSON_AGE=101,this.FIELD_CONTENT_COMPLETION=102,this.FIELD_CONTENT_ENTRY=103,this.FIELD_CONTENT_PROGRESS=104,this.FIELD_ATTENDANCE_PERCENTAGE=105,this.FIELD_CLAZZ_ENROLMENT_OUTCOME=106,this.FIELD_CLAZZ_ENROLMENT_LEAVING_REASON=107,this.CONDITION_IS=200,this.CONDITION_IS_NOT=201,this.CONDITION_GREATER_THAN=202,this.CONDITION_LESS_THAN=203,this.CONDITION_BETWEEN=205,this.CONDITION_IN_LIST=206,this.CONDITION_NOT_IN_LIST=207}Out.$metadata$={kind:c,simpleName:"Report",interfaces:[]},kut.prototype.serializer=function(){return But()},kut.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var jut=null;function Gut(){return null===jut&&new kut,jut}function qut(){this.descriptor_abpxwp$_0=new Wt("com.ustadmobile.lib.db.entities.ReportFilter",this,8),this.descriptor.addElement_ivxn3r$("reportFilterUid",!0),this.descriptor.addElement_ivxn3r$("reportFilterSeriesUid",!0),this.descriptor.addElement_ivxn3r$("reportFilterField",!0),this.descriptor.addElement_ivxn3r$("reportFilterCondition",!0),this.descriptor.addElement_ivxn3r$("reportFilterValue",!0),this.descriptor.addElement_ivxn3r$("reportFilterDropDownValue",!0),this.descriptor.addElement_ivxn3r$("reportFilterValueBetweenX",!0),this.descriptor.addElement_ivxn3r$("reportFilterValueBetweenY",!0),Fut=this}Mut.prototype.equals=function(t){var n;return!!(this===t||null!=t&&null!=(n=e.getKClassFromExpression(this))&&n.equals(e.getKClassFromExpression(t))&&(e.isType(t,Mut)||Jt(),this.reportFilterUid===t.reportFilterUid&&this.reportFilterSeriesUid===t.reportFilterSeriesUid&&this.reportFilterField===t.reportFilterField&&this.reportFilterCondition===t.reportFilterCondition&&O(this.reportFilterValue,t.reportFilterValue)&&this.reportFilterDropDownValue===t.reportFilterDropDownValue&&O(this.reportFilterValueBetweenX,t.reportFilterValueBetweenX)&&O(this.reportFilterValueBetweenY,t.reportFilterValueBetweenY)))},Mut.prototype.hashCode=function(){var t,e,n,i,o,r,s=this.reportFilterUid;return s=(31*(s=(31*(s=(31*(s=(31*(s=(31*(s=(31*(s=(31*s|0)+this.reportFilterSeriesUid|0)|0)+this.reportFilterField|0)|0)+this.reportFilterCondition|0)|0)+(null!=(e=null!=(t=this.reportFilterValue)?Yt(t):null)?e:0)|0)|0)+this.reportFilterDropDownValue|0)|0)+(null!=(i=null!=(n=this.reportFilterValueBetweenX)?Yt(n):null)?i:0)|0)|0)+(null!=(r=null!=(o=this.reportFilterValueBetweenY)?Yt(o):null)?r:0)|0},Object.defineProperty(qut.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_abpxwp$_0}}),qut.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.reportFilterUid,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeIntElement_ptg7oe$(this.descriptor,0,e.reportFilterUid),O(e.reportFilterSeriesUid,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeIntElement_ptg7oe$(this.descriptor,1,e.reportFilterSeriesUid),O(e.reportFilterField,100)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeIntElement_ptg7oe$(this.descriptor,2,e.reportFilterField),O(e.reportFilterCondition,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeIntElement_ptg7oe$(this.descriptor,3,e.reportFilterCondition),O(e.reportFilterValue,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,4,Ht.StringSerializer,e.reportFilterValue),O(e.reportFilterDropDownValue,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeIntElement_ptg7oe$(this.descriptor,5,e.reportFilterDropDownValue),O(e.reportFilterValueBetweenX,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,6,Ht.StringSerializer,e.reportFilterValueBetweenX),O(e.reportFilterValueBetweenY,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,7,Ht.StringSerializer,e.reportFilterValueBetweenY),n.endStructure_24f42q$(this.descriptor)},qut.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u=0,h=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=h.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=h.decodeIntElement_szpzho$(this.descriptor,0),u|=1;break;case 1:i=h.decodeIntElement_szpzho$(this.descriptor,1),u|=2;break;case 2:o=h.decodeIntElement_szpzho$(this.descriptor,2),u|=4;break;case 3:r=h.decodeIntElement_szpzho$(this.descriptor,3),u|=8;break;case 4:s=h.decodeNullableSerializableElement_8viuyw$(this.descriptor,4,Ht.StringSerializer,s),u|=16;break;case 5:a=h.decodeIntElement_szpzho$(this.descriptor,5),u|=32;break;case 6:c=h.decodeNullableSerializableElement_8viuyw$(this.descriptor,6,Ht.StringSerializer,c),u|=64;break;case 7:l=h.decodeNullableSerializableElement_8viuyw$(this.descriptor,7,Ht.StringSerializer,l),u|=128;break;case-1:break t;default:throw new Vt(e)}return h.endStructure_24f42q$(this.descriptor),Wut(u,n,i,o,r,s,a,c,l,null)},qut.prototype.childSerializers=function(){return[Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,new Bt(Ht.StringSerializer),Ht.IntSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer)]},qut.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Fut=null;function But(){return null===Fut&&new qut,Fut}function Wut(t,e,n,i,o,r,s,a,c,l){var u=l||Object.create(Mut.prototype);return u.reportFilterUid=0==(1&t)?0:e,u.reportFilterSeriesUid=0==(2&t)?0:n,u.reportFilterField=0==(4&t)?100:i,u.reportFilterCondition=0==(8&t)?0:o,u.reportFilterValue=0==(16&t)?null:r,u.reportFilterDropDownValue=0==(32&t)?0:s,u.reportFilterValueBetweenX=0==(64&t)?null:a,u.reportFilterValueBetweenY=0==(128&t)?null:c,u}function Hut(){Xut(),this.reportSeriesUid=0,this.reportSeriesName=null,this.reportSeriesYAxis=200,this.reportSeriesVisualType=100,this.reportSeriesSubGroup=0,this.reportSeriesFilters=null}function Vut(){Kut=this,this.BAR_CHART=100,this.LINE_GRAPH=101,this.STATEMENT_QUERY=100,this.ATTENDANCE_QUERY=101,this.TOTAL_DURATION=200,this.AVERAGE_DURATION=201,this.NUMBER_SESSIONS=202,this.INTERACTIONS_RECORDED=203,this.NUMBER_ACTIVE_USERS=204,this.AVERAGE_USAGE_TIME_PER_USER=205,this.NUMBER_OF_STUDENTS_COMPLETED_CONTENT=206,this.PERCENT_OF_STUDENTS_COMPLETED_CONTENT=207,this.TOTAL_ATTENDANCE=208,this.TOTAL_ABSENCES=209,this.TOTAL_LATES=210,this.PERCENTAGE_STUDENTS_ATTENDED=211,this.PERCENTAGE_STUDENTS_ATTENDED_OR_LATE=212,this.TOTAL_CLASSES=213,this.NUMBER_UNIQUE_STUDENTS_ATTENDING=214,this.NONE=0}Mut.$metadata$={kind:c,simpleName:"ReportFilter",interfaces:[]},Vut.prototype.serializer=function(){return Qut()},Vut.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Kut=null;function Xut(){return null===Kut&&new Vut,Kut}function Jut(){this.descriptor_46q2ga$_0=new Wt("com.ustadmobile.lib.db.entities.ReportSeries",this,6),this.descriptor.addElement_ivxn3r$("reportSeriesUid",!0),this.descriptor.addElement_ivxn3r$("reportSeriesName",!0),this.descriptor.addElement_ivxn3r$("reportSeriesYAxis",!0),this.descriptor.addElement_ivxn3r$("reportSeriesVisualType",!0),this.descriptor.addElement_ivxn3r$("reportSeriesSubGroup",!0),this.descriptor.addElement_ivxn3r$("reportSeriesFilters",!0),Yut=this}Hut.prototype.equals=function(t){var n;return this===t||!(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))&&(e.isType(t,Hut)||Jt(),this.reportSeriesUid===t.reportSeriesUid&&!!O(this.reportSeriesName,t.reportSeriesName)&&this.reportSeriesYAxis===t.reportSeriesYAxis&&this.reportSeriesVisualType===t.reportSeriesVisualType&&this.reportSeriesSubGroup===t.reportSeriesSubGroup&&!!O(this.reportSeriesFilters,t.reportSeriesFilters))},Hut.prototype.hashCode=function(){var t,e,n,i,o=this.reportSeriesUid;return o=(31*(o=(31*(o=(31*(o=(31*(o=(31*o|0)+(null!=(e=null!=(t=this.reportSeriesName)?Yt(t):null)?e:0)|0)|0)+this.reportSeriesYAxis|0)|0)+this.reportSeriesVisualType|0)|0)+this.reportSeriesSubGroup|0)|0)+(null!=(i=null!=(n=this.reportSeriesFilters)?Yt(n):null)?i:0)|0},Object.defineProperty(Jut.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_46q2ga$_0}}),Jut.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.reportSeriesUid,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeIntElement_ptg7oe$(this.descriptor,0,e.reportSeriesUid),O(e.reportSeriesName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.reportSeriesName),O(e.reportSeriesYAxis,200)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeIntElement_ptg7oe$(this.descriptor,2,e.reportSeriesYAxis),O(e.reportSeriesVisualType,100)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeIntElement_ptg7oe$(this.descriptor,3,e.reportSeriesVisualType),O(e.reportSeriesSubGroup,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeIntElement_ptg7oe$(this.descriptor,4,e.reportSeriesSubGroup),O(e.reportSeriesFilters,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,5,new ne(But()),e.reportSeriesFilters),n.endStructure_24f42q$(this.descriptor)},Jut.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c=0,l=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=l.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=l.decodeIntElement_szpzho$(this.descriptor,0),c|=1;break;case 1:i=l.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),c|=2;break;case 2:o=l.decodeIntElement_szpzho$(this.descriptor,2),c|=4;break;case 3:r=l.decodeIntElement_szpzho$(this.descriptor,3),c|=8;break;case 4:s=l.decodeIntElement_szpzho$(this.descriptor,4),c|=16;break;case 5:a=l.decodeNullableSerializableElement_8viuyw$(this.descriptor,5,new ne(But()),a),c|=32;break;case-1:break t;default:throw new Vt(e)}return l.endStructure_24f42q$(this.descriptor),Zut(c,n,i,o,r,s,a,null)},Jut.prototype.childSerializers=function(){return[Ht.IntSerializer,new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,new Bt(new ne(But()))]},Jut.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Yut=null;function Qut(){return null===Yut&&new Jut,Yut}function Zut(t,e,n,i,o,r,s,a){var c=a||Object.create(Hut.prototype);return c.reportSeriesUid=0==(1&t)?0:e,c.reportSeriesName=0==(2&t)?null:n,c.reportSeriesYAxis=0==(4&t)?200:i,c.reportSeriesVisualType=0==(8&t)?100:o,c.reportSeriesSubGroup=0==(16&t)?0:r,c.reportSeriesFilters=0==(32&t)?null:s,c}function tht(){iht(),Out.call(this),this.reportSeriesWithFiltersList=null}function eht(){nht=this}Hut.$metadata$={kind:c,simpleName:"ReportSeries",interfaces:[]},tht.prototype.equals=function(t){var n;return this===t||!(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))&&!!Out.prototype.equals.call(this,t)&&(e.isType(t,tht)||Jt(),!!O(this.reportSeriesWithFiltersList,t.reportSeriesWithFiltersList))},tht.prototype.hashCode=function(){var t,e=Out.prototype.hashCode.call(this),n=this.reportSeriesWithFiltersList;return e=(31*e|0)+(null!=(t=null!=n?Yt(n):null)?t:0)|0},eht.prototype.serializer=function(){return sht()},eht.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var nht=null;function iht(){return null===nht&&new eht,nht}function oht(){this.descriptor_r4ymoz$_0=new Wt("com.ustadmobile.lib.db.entities.ReportWithSeriesWithFilters",this,25),this.descriptor.addElement_ivxn3r$("reportUid",!0),this.descriptor.addElement_ivxn3r$("reportOwnerUid",!0),this.descriptor.addElement_ivxn3r$("xAxis",!0),this.descriptor.addElement_ivxn3r$("reportDateRangeSelection",!0),this.descriptor.addElement_ivxn3r$("fromDate",!0),this.descriptor.addElement_ivxn3r$("fromRelTo",!0),this.descriptor.addElement_ivxn3r$("fromRelOffSet",!0),this.descriptor.addElement_ivxn3r$("fromRelUnit",!0),this.descriptor.addElement_ivxn3r$("toDate",!0),this.descriptor.addElement_ivxn3r$("toRelTo",!0),this.descriptor.addElement_ivxn3r$("toRelOffSet",!0),this.descriptor.addElement_ivxn3r$("toRelUnit",!0),this.descriptor.addElement_ivxn3r$("reportTitle",!0),this.descriptor.addElement_ivxn3r$("reportDescription",!0),this.descriptor.addElement_ivxn3r$("reportSeries",!0),this.descriptor.addElement_ivxn3r$("reportInactive",!0),this.descriptor.addElement_ivxn3r$("isTemplate",!0),this.descriptor.addElement_ivxn3r$("priority",!0),this.descriptor.addElement_ivxn3r$("reportTitleId",!0),this.descriptor.addElement_ivxn3r$("reportDescId",!0),this.descriptor.addElement_ivxn3r$("reportMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("reportLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("reportLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("reportLct",!0),this.descriptor.addElement_ivxn3r$("reportSeriesWithFiltersList",!0),rht=this}Object.defineProperty(oht.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_r4ymoz$_0}}),oht.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.reportUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.reportUid),O(e.reportOwnerUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.reportOwnerUid),O(e.xAxis,300)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeIntElement_ptg7oe$(this.descriptor,2,e.xAxis),O(e.reportDateRangeSelection,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeIntElement_ptg7oe$(this.descriptor,3,e.reportDateRangeSelection),O(e.fromDate,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.fromDate),O(e.fromRelTo,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeIntElement_ptg7oe$(this.descriptor,5,e.fromRelTo),O(e.fromRelOffSet,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.fromRelOffSet),O(e.fromRelUnit,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeIntElement_ptg7oe$(this.descriptor,7,e.fromRelUnit),O(e.toDate,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.toDate),O(e.toRelTo,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeIntElement_ptg7oe$(this.descriptor,9,e.toRelTo),O(e.toRelOffSet,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeIntElement_ptg7oe$(this.descriptor,10,e.toRelOffSet),O(e.toRelUnit,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeIntElement_ptg7oe$(this.descriptor,11,e.toRelUnit),O(e.reportTitle,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,12,Ht.StringSerializer,e.reportTitle),O(e.reportDescription,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,13,Ht.StringSerializer,e.reportDescription),O(e.reportSeries,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,14,Ht.StringSerializer,e.reportSeries),O(e.reportInactive,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeBooleanElement_qh7jdn$(this.descriptor,15,e.reportInactive),O(e.isTemplate,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,16)||n.encodeBooleanElement_qh7jdn$(this.descriptor,16,e.isTemplate),O(e.priority,1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,17)||n.encodeIntElement_ptg7oe$(this.descriptor,17,e.priority),O(e.reportTitleId,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,18)||n.encodeIntElement_ptg7oe$(this.descriptor,18,e.reportTitleId),O(e.reportDescId,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,19)||n.encodeIntElement_ptg7oe$(this.descriptor,19,e.reportDescId),O(e.reportMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,20)||n.encodeLongElement_j0o2mv$(this.descriptor,20,e.reportMasterChangeSeqNum),O(e.reportLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,21)||n.encodeLongElement_j0o2mv$(this.descriptor,21,e.reportLocalChangeSeqNum),O(e.reportLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,22)||n.encodeIntElement_ptg7oe$(this.descriptor,22,e.reportLastChangedBy),O(e.reportLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,23)||n.encodeLongElement_j0o2mv$(this.descriptor,23,e.reportLct),O(e.reportSeriesWithFiltersList,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,24)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,24,new ne(Qut()),e.reportSeriesWithFiltersList),n.endStructure_24f42q$(this.descriptor)},oht.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L=0,z=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=z.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=z.decodeLongElement_szpzho$(this.descriptor,0),L|=1;break;case 1:i=z.decodeLongElement_szpzho$(this.descriptor,1),L|=2;break;case 2:o=z.decodeIntElement_szpzho$(this.descriptor,2),L|=4;break;case 3:r=z.decodeIntElement_szpzho$(this.descriptor,3),L|=8;break;case 4:s=z.decodeLongElement_szpzho$(this.descriptor,4),L|=16;break;case 5:a=z.decodeIntElement_szpzho$(this.descriptor,5),L|=32;break;case 6:c=z.decodeIntElement_szpzho$(this.descriptor,6),L|=64;break;case 7:l=z.decodeIntElement_szpzho$(this.descriptor,7),L|=128;break;case 8:u=z.decodeLongElement_szpzho$(this.descriptor,8),L|=256;break;case 9:h=z.decodeIntElement_szpzho$(this.descriptor,9),L|=512;break;case 10:d=z.decodeIntElement_szpzho$(this.descriptor,10),L|=1024;break;case 11:p=z.decodeIntElement_szpzho$(this.descriptor,11),L|=2048;break;case 12:_=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,12,Ht.StringSerializer,_),L|=4096;break;case 13:m=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,13,Ht.StringSerializer,m),L|=8192;break;case 14:f=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,14,Ht.StringSerializer,f),L|=16384;break;case 15:g=z.decodeBooleanElement_szpzho$(this.descriptor,15),L|=32768;break;case 16:$=z.decodeBooleanElement_szpzho$(this.descriptor,16),L|=65536;break;case 17:E=z.decodeIntElement_szpzho$(this.descriptor,17),L|=131072;break;case 18:y=z.decodeIntElement_szpzho$(this.descriptor,18),L|=262144;break;case 19:b=z.decodeIntElement_szpzho$(this.descriptor,19),L|=524288;break;case 20:S=z.decodeLongElement_szpzho$(this.descriptor,20),L|=1048576;break;case 21:v=z.decodeLongElement_szpzho$(this.descriptor,21),L|=2097152;break;case 22:C=z.decodeIntElement_szpzho$(this.descriptor,22),L|=4194304;break;case 23:N=z.decodeLongElement_szpzho$(this.descriptor,23),L|=8388608;break;case 24:T=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,24,new ne(Qut()),T),L|=16777216;break;case-1:break t;default:throw new Vt(e)}return z.endStructure_24f42q$(this.descriptor),aht(L,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,null)},oht.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.BooleanSerializer,Ht.BooleanSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(new ne(Qut()))]},oht.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var rht=null;function sht(){return null===rht&&new oht,rht}function aht(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T){var L=T||Object.create(tht.prototype);return(L=Put(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,L)).reportSeriesWithFiltersList=0==(16777216&t)?null:N,L}function cht(){hht(),this.roleUid=X,this.roleName=null,this.roleActive=!0,this.roleMasterCsn=X,this.roleLocalCsn=X,this.roleLastChangedBy=0,this.roleLct=X,this.rolePermissions=X}function lht(){uht=this,this.TABLE_ID=45,this.PERMISSION_CLAZZ_SELECT=Se,this.PERMISSION_CLAZZ_INSERT=Se,this.PERMISSION_CLAZZ_UPDATE=Zt,this.PERMISSION_CLAZZ_LOG_ATTENDANCE_INSERT=te,this.PERMISSION_CLAZZ_LOG_ACTIVITY_INSERT=ve,this.PERMISSION_SEL_QUESTION_RESPONSE_INSERT=Ce,this.PERMISSION_PERSON_SELECT=Ne,this.PERMISSION_PERSON_INSERT=Te,this.PERMISSION_PERSON_UPDATE=Le,this.PERMISSION_CLAZZ_ADD_TEACHER=ze,this.PERMISSION_CLAZZ_ADD_STUDENT=we,this.PERMISSION_CLAZZ_LOG_ATTENDANCE_SELECT=Oe,this.PERMISSION_CLAZZ_LOG_ATTENDANCE_UPDATE=Re,this.PERMISSION_CLAZZ_LOG_ACTIVITY_UPDATE=Ae,this.PERMISSION_CLAZZ_LOG_ACTIVITY_SELECT=xe,this.PERMISSION_SEL_QUESTION_RESPONSE_SELECT=Ie,this.PERMISSION_SEL_QUESTION_RESPONSE_UPDATE=Ue,this.PERMISSION_SEL_QUESTION_SELECT=De,this.PERMISSION_SEL_QUESTION_INSERT=Pe,this.PERMISSION_SEL_QUESTION_UPDATE=Me,this.PERMISSION_PERSON_PICTURE_SELECT=ke,this.PERMISSION_PERSON_PICTURE_INSERT=je,this.PERMISSION_PERSON_PICTURE_UPDATE=Ge,this.PERMISSION_ASSIGNMENT_SELECT=qe,this.PERMISSION_ASSIGNMENT_UPDATE=Fe,this.PERMISSION_ASSIGNMENT_VIEWSTUDENTPROGRESS=Be,this.PERMISSION_CONTENT_SELECT=We,this.PERMISSION_CONTENT_INSERT=He,this.PERMISSION_CONTENT_UPDATE=Ve,this.PERMISSION_SCHOOL_SELECT=Ke,this.PERMISSION_SCHOOL_INSERT=Xe,this.PERMISSION_SCHOOL_UPDATE=Je,this.PERMISSION_PERSON_DELEGATE=Ye,this.PERMISSION_CLAZZ_OPEN=Qe,this.PERMISSION_ROLE_SELECT=Ze,this.PERMISSION_ROLE_INSERT=tn,this.PERMISSION_RESET_PASSWORD=en,this.PERMISSION_SCHOOL_ADD_STAFF=nn,this.PERMISSION_SCHOOL_ADD_STUDENT=on,this.PERMISSION_PERSON_LEARNINGRECORD_SELECT=rn,this.PERMISSION_PERSON_LEARNINGRECORD_INSERT=sn,this.PERMISSION_PERSON_LEARNINGRECORD_UPDATE=an,this.PERMISSION_CLAZZ_CONTENT_SELECT=cn,this.PERMISSION_CLAZZ_CONTENT_UPDATE=ln,this.PERMISSION_PERSONCONTACT_SELECT=un,this.PERMISSION_PERSONCONTACT_UPDATE=hn,this.PERMISSION_PERSONSOCIOECONOMIC_SELECT=dn,this.PERMISSION_PERSONSOCIOECONOMIC_UPDATE=pn,this.PERMISSION_ADD_CLASS_TO_SCHOOL=_n,this.PERMISSION_AUTH_SELECT=mn,this.PERMISSION_AUTH_UPDATE=fn,this.ROLE_CLAZZ_TEACHER_NAME="Teacher",this.ROLE_CLAZZ_TEACHER_UID=1001,this.ROLE_CLAZZ_TEACHER_PERMISSIONS_DEFAULT=gn,this.ROLE_CLAZZ_STUDENT_NAME="Class Student",this.ROLE_CLAZZ_STUDENT_UID=1e3,this.ROLE_CLAZZ_STUDENT_PERMISSIONS_DEFAULT=$n,this.ROLE_CLAZZ_STUDENT_PENDING_NAME="Student Pending",this.ROLE_CLAZZ_STUDENT_PENDING_UID=1002,this.ROLE_CLAZZ_STUDENT_PENDING_PERMISSION_DEFAULT=this.PERMISSION_CLAZZ_SELECT,this.ROLE_SCHOOL_STUDENT_UID=1003,this.ROLE_SCHOOL_STUDENT_NAME="School Student",this.ROLE_SCHOOL_STUDENT_PERMISSION_DEFAULT=this.PERMISSION_SCHOOL_SELECT,this.ROLE_SCHOOL_STAFF_UID=1004,this.ROLE_SCHOOL_STAFF_NAME="School Staff",this.ROLE_SCHOOL_STAFF_PERMISSIONS_DEFAULT=En,this.ROLE_SCHOOL_STUDENT_PENDING_UID=1005,this.ROLE_SCHOOL_STUDENT_PENDING_NAME="School Student Pending",this.ROLE_SCHOOL_STUDENT_PENDING_PERMISSION_DEFAULT=this.PERMISSION_SCHOOL_SELECT,this.ROLE_PRINCIPAL_UID=1006,this.ROLE_PRINCIPAL_NAME="Principal",this.ROLE_PRINCIPAL_PERMISSIONS_DEFAULT=yn,this.ROLE_PARENT_PERSON_PERMISSIONS_DEFAULT=bn,this.ROLE_CLAZZ_PARENT_PERMISSION_DEFAULT=Sn,this.ALL_PERMISSIONS=Xt}tht.$metadata$={kind:c,simpleName:"ReportWithSeriesWithFilters",interfaces:[Out]},cht.prototype.equals=function(t){var n;return this===t||!(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))&&(e.isType(t,cht)||Jt(),!!(O(this.roleUid,t.roleUid)&&O(this.roleName,t.roleName)&&this.roleActive===t.roleActive&&O(this.roleMasterCsn,t.roleMasterCsn)&&O(this.roleLocalCsn,t.roleLocalCsn)&&this.roleLastChangedBy===t.roleLastChangedBy&&O(this.rolePermissions,t.rolePermissions)))},cht.prototype.hashCode=function(){var t,e,n=Yt(this.roleUid);return n=(31*(n=(31*(n=(31*(n=(31*(n=(31*(n=(31*n|0)+(null!=(e=null!=(t=this.roleName)?Yt(t):null)?e:0)|0)|0)+Yt(this.roleActive)|0)|0)+Yt(this.roleMasterCsn)|0)|0)+Yt(this.roleLocalCsn)|0)|0)+this.roleLastChangedBy|0)|0)+Yt(this.rolePermissions)|0},lht.prototype.serializer=function(){return _ht()},lht.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var uht=null;function hht(){return null===uht&&new lht,uht}function dht(){this.descriptor_39bc8x$_0=new Wt("com.ustadmobile.lib.db.entities.Role",this,8),this.descriptor.addElement_ivxn3r$("roleUid",!0),this.descriptor.addElement_ivxn3r$("roleName",!0),this.descriptor.addElement_ivxn3r$("roleActive",!0),this.descriptor.addElement_ivxn3r$("roleMasterCsn",!0),this.descriptor.addElement_ivxn3r$("roleLocalCsn",!0),this.descriptor.addElement_ivxn3r$("roleLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("roleLct",!0),this.descriptor.addElement_ivxn3r$("rolePermissions",!0),pht=this}Object.defineProperty(dht.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_39bc8x$_0}}),dht.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.roleUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.roleUid),O(e.roleName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.roleName),O(e.roleActive,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeBooleanElement_qh7jdn$(this.descriptor,2,e.roleActive),O(e.roleMasterCsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.roleMasterCsn),O(e.roleLocalCsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.roleLocalCsn),O(e.roleLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeIntElement_ptg7oe$(this.descriptor,5,e.roleLastChangedBy),O(e.roleLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.roleLct),O(e.rolePermissions,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.rolePermissions),n.endStructure_24f42q$(this.descriptor)},dht.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u=0,h=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=h.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=h.decodeLongElement_szpzho$(this.descriptor,0),u|=1;break;case 1:i=h.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),u|=2;break;case 2:o=h.decodeBooleanElement_szpzho$(this.descriptor,2),u|=4;break;case 3:r=h.decodeLongElement_szpzho$(this.descriptor,3),u|=8;break;case 4:s=h.decodeLongElement_szpzho$(this.descriptor,4),u|=16;break;case 5:a=h.decodeIntElement_szpzho$(this.descriptor,5),u|=32;break;case 6:c=h.decodeLongElement_szpzho$(this.descriptor,6),u|=64;break;case 7:l=h.decodeLongElement_szpzho$(this.descriptor,7),u|=128;break;case-1:break t;default:throw new Vt(e)}return h.endStructure_24f42q$(this.descriptor),mht(u,n,i,o,r,s,a,c,l,null)},dht.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.BooleanSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer]},dht.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var pht=null;function _ht(){return null===pht&&new dht,pht}function mht(t,e,n,i,o,r,s,a,c,l){var u=l||Object.create(cht.prototype);return u.roleUid=0==(1&t)?X:e,u.roleName=0==(2&t)?null:n,u.roleActive=0==(4&t)||i,u.roleMasterCsn=0==(8&t)?X:o,u.roleLocalCsn=0==(16&t)?X:r,u.roleLastChangedBy=0==(32&t)?0:s,u.roleLct=0==(64&t)?X:a,u.rolePermissions=0==(128&t)?X:c,u}function fht(){Eht(),this.scheduleUid=X,this.sceduleStartTime=X,this.scheduleEndTime=X,this.scheduleDay=0,this.scheduleMonth=0,this.scheduleFrequency=0,this.umCalendarUid=X,this.scheduleClazzUid=X,this.scheduleMasterChangeSeqNum=X,this.scheduleLocalChangeSeqNum=X,this.scheduleLastChangedBy=0,this.scheduleLastChangedTime=X,this.scheduleActive=!0}function ght(){$ht=this,this.TABLE_ID=21,this.SCHEDULE_FREQUENCY_DAILY=1,this.SCHEDULE_FREQUENCY_WEEKLY=2,this.SCHEDULE_FREQUENCY_ONCE=3,this.SCHEDULE_FREQUENCY_MONTHLY=4,this.SCHEDULE_FREQUENCY_YEARLY=5,this.DAY_SUNDAY=0,this.DAY_MONDAY=1,this.DAY_TUESDAY=2,this.DAY_WEDNESDAY=3,this.DAY_THURSDAY=4,this.DAY_FRIDAY=5,this.DAY_SATURDAY=6,this.MONTH_JANUARY=1,this.MONTH_FEBUARY=2,this.MONTH_MARCH=3,this.MONTH_APRIL=4,this.MONTH_MAY=5,this.MONTH_JUNE=6,this.MONTH_JULY=7,this.MONTH_AUGUST=8,this.MONTH_SEPTEMBER=9,this.MONTH_OCTOBER=10,this.MONTH_NOVEMBER=11,this.MONTH_DECEMBER=12}cht.$metadata$={kind:c,simpleName:"Role",interfaces:[]},fht.prototype.equals=function(t){var n;return this===t||!(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))&&(e.isType(t,fht)||Jt(),!!(O(this.scheduleUid,t.scheduleUid)&&O(this.sceduleStartTime,t.sceduleStartTime)&&O(this.scheduleEndTime,t.scheduleEndTime)&&this.scheduleDay===t.scheduleDay&&this.scheduleMonth===t.scheduleMonth&&this.scheduleFrequency===t.scheduleFrequency&&O(this.umCalendarUid,t.umCalendarUid)&&O(this.scheduleClazzUid,t.scheduleClazzUid)&&O(this.scheduleMasterChangeSeqNum,t.scheduleMasterChangeSeqNum)&&O(this.scheduleLocalChangeSeqNum,t.scheduleLocalChangeSeqNum)&&this.scheduleLastChangedBy===t.scheduleLastChangedBy&&this.scheduleActive===t.scheduleActive))},fht.prototype.hashCode=function(){var t=Yt(this.scheduleUid);return t=(31*(t=(31*(t=(31*(t=(31*(t=(31*(t=(31*(t=(31*(t=(31*(t=(31*(t=(31*(t=(31*t|0)+Yt(this.sceduleStartTime)|0)|0)+Yt(this.scheduleEndTime)|0)|0)+this.scheduleDay|0)|0)+this.scheduleMonth|0)|0)+this.scheduleFrequency|0)|0)+Yt(this.umCalendarUid)|0)|0)+Yt(this.scheduleClazzUid)|0)|0)+Yt(this.scheduleMasterChangeSeqNum)|0)|0)+Yt(this.scheduleLocalChangeSeqNum)|0)|0)+this.scheduleLastChangedBy|0)|0)+Yt(this.scheduleActive)|0},ght.prototype.serializer=function(){return Sht()},ght.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var $ht=null;function Eht(){return null===$ht&&new ght,$ht}function yht(){this.descriptor_18mh3y$_0=new Wt("com.ustadmobile.lib.db.entities.Schedule",this,13),this.descriptor.addElement_ivxn3r$("scheduleUid",!0),this.descriptor.addElement_ivxn3r$("sceduleStartTime",!0),this.descriptor.addElement_ivxn3r$("scheduleEndTime",!0),this.descriptor.addElement_ivxn3r$("scheduleDay",!0),this.descriptor.addElement_ivxn3r$("scheduleMonth",!0),this.descriptor.addElement_ivxn3r$("scheduleFrequency",!0),this.descriptor.addElement_ivxn3r$("umCalendarUid",!0),this.descriptor.addElement_ivxn3r$("scheduleClazzUid",!0),this.descriptor.addElement_ivxn3r$("scheduleMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("scheduleLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("scheduleLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("scheduleLastChangedTime",!0),this.descriptor.addElement_ivxn3r$("scheduleActive",!0),bht=this}Object.defineProperty(yht.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_18mh3y$_0}}),yht.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.scheduleUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.scheduleUid),O(e.sceduleStartTime,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.sceduleStartTime),O(e.scheduleEndTime,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.scheduleEndTime),O(e.scheduleDay,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeIntElement_ptg7oe$(this.descriptor,3,e.scheduleDay),O(e.scheduleMonth,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeIntElement_ptg7oe$(this.descriptor,4,e.scheduleMonth),O(e.scheduleFrequency,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeIntElement_ptg7oe$(this.descriptor,5,e.scheduleFrequency),O(e.umCalendarUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.umCalendarUid),O(e.scheduleClazzUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.scheduleClazzUid),O(e.scheduleMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.scheduleMasterChangeSeqNum),O(e.scheduleLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeLongElement_j0o2mv$(this.descriptor,9,e.scheduleLocalChangeSeqNum),O(e.scheduleLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeIntElement_ptg7oe$(this.descriptor,10,e.scheduleLastChangedBy),O(e.scheduleLastChangedTime,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeLongElement_j0o2mv$(this.descriptor,11,e.scheduleLastChangedTime),O(e.scheduleActive,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeBooleanElement_qh7jdn$(this.descriptor,12,e.scheduleActive),n.endStructure_24f42q$(this.descriptor)},yht.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m=0,f=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=f.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=f.decodeLongElement_szpzho$(this.descriptor,0),m|=1;break;case 1:i=f.decodeLongElement_szpzho$(this.descriptor,1),m|=2;break;case 2:o=f.decodeLongElement_szpzho$(this.descriptor,2),m|=4;break;case 3:r=f.decodeIntElement_szpzho$(this.descriptor,3),m|=8;break;case 4:s=f.decodeIntElement_szpzho$(this.descriptor,4),m|=16;break;case 5:a=f.decodeIntElement_szpzho$(this.descriptor,5),m|=32;break;case 6:c=f.decodeLongElement_szpzho$(this.descriptor,6),m|=64;break;case 7:l=f.decodeLongElement_szpzho$(this.descriptor,7),m|=128;break;case 8:u=f.decodeLongElement_szpzho$(this.descriptor,8),m|=256;break;case 9:h=f.decodeLongElement_szpzho$(this.descriptor,9),m|=512;break;case 10:d=f.decodeIntElement_szpzho$(this.descriptor,10),m|=1024;break;case 11:p=f.decodeLongElement_szpzho$(this.descriptor,11),m|=2048;break;case 12:_=f.decodeBooleanElement_szpzho$(this.descriptor,12),m|=4096;break;case-1:break t;default:throw new Vt(e)}return f.endStructure_24f42q$(this.descriptor),vht(m,n,i,o,r,s,a,c,l,u,h,d,p,_,null)},yht.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.BooleanSerializer]},yht.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var bht=null;function Sht(){return null===bht&&new yht,bht}function vht(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_){var m=_||Object.create(fht.prototype);return m.scheduleUid=0==(1&t)?X:e,m.sceduleStartTime=0==(2&t)?X:n,m.scheduleEndTime=0==(4&t)?X:i,m.scheduleDay=0==(8&t)?0:o,m.scheduleMonth=0==(16&t)?0:r,m.scheduleFrequency=0==(32&t)?0:s,m.umCalendarUid=0==(64&t)?X:a,m.scheduleClazzUid=0==(128&t)?X:c,m.scheduleMasterChangeSeqNum=0==(256&t)?X:l,m.scheduleLocalChangeSeqNum=0==(512&t)?X:u,m.scheduleLastChangedBy=0==(1024&t)?0:h,m.scheduleLastChangedTime=0==(2048&t)?X:d,m.scheduleActive=0==(4096&t)||p,m}function Cht(){Lht(),this.schoolUid=X,this.schoolName=null,this.schoolDesc=null,this.schoolAddress=null,this.schoolActive=!1,this.schoolPhoneNumber=null,this.schoolGender=0,this.schoolHolidayCalendarUid=X,this.schoolFeatures=X,this.schoolLocationLong=0,this.schoolLocationLatt=0,this.schoolEmailAddress=null,this.schoolTeachersPersonGroupUid=X,this.schoolStudentsPersonGroupUid=X,this.schoolPendingStudentsPersonGroupUid=X,this.schoolCode=null,this.schoolMasterChangeSeqNum=X,this.schoolLocalChangeSeqNum=X,this.schoolLastChangedBy=0,this.schoolLct=X,this.schoolTimeZone=null}function Nht(){Tht=this,this.TABLE_ID=164,this.SCHOOL_FEATURE_ATTENDANCE=Qt,this.SCHOOL_GENDER_MALE=1,this.SCHOOL_GENDER_FEMALE=2,this.SCHOOL_GENDER_MIXED=3,this.JOIN_SCOPEDGRANT_ON_CLAUSE="\n ((ScopedGrant.sgTableId = -2\n AND ScopedGrant.sgEntityUid = -2)\n OR (ScopedGrant.sgTableId = 164\n AND ScopedGrant.sgEntityUid = School.schoolUid))\n ",this.JOIN_FROM_SCHOOL_TO_USERSESSION_VIA_SCOPEDGRANT_PT1="\n JOIN ScopedGrant\n ON \n ((ScopedGrant.sgTableId = -2\n AND ScopedGrant.sgEntityUid = -2)\n OR (ScopedGrant.sgTableId = 164\n AND ScopedGrant.sgEntityUid = School.schoolUid))\n \n AND (SCopedGrant.sgPermissions &\n ",this.JOIN_FROM_SCHOOL_TO_USERSESSION_VIA_SCOPEDGRANT_PT2="\n ) > 0\n JOIN PersonGroupMember AS PrsGrpMbr\n ON ScopedGrant.sgGroupUid = PrsGrpMbr.groupMemberGroupUid\n JOIN UserSession\n ON UserSession.usPersonUid = PrsGrpMbr.groupMemberPersonUid\n AND UserSession.usStatus = 1\n \n ",this.JOIN_FROM_PERSONGROUPMEMBER_TO_SCHOOL_VIA_SCOPEDGRANT_PT1="\n JOIN ScopedGrant \n ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n AND (ScopedGrant.sgPermissions &\n \n ",this.JOIN_FROM_PERSONGROUPMEMBER_TO_SCHOOL_VIA_SCOPEDGRANT_PT2="\n ) > 0\n JOIN School\n ON \n ((ScopedGrant.sgTableId = -2\n AND ScopedGrant.sgEntityUid = -2)\n OR (ScopedGrant.sgTableId = 164\n AND ScopedGrant.sgEntityUid = School.schoolUid))\n \n "}fht.$metadata$={kind:c,simpleName:"Schedule",interfaces:[]},Cht.prototype.equals=function(t){var n;return this===t||!(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))&&(e.isType(t,Cht)||Jt(),!!(O(this.schoolUid,t.schoolUid)&&O(this.schoolName,t.schoolName)&&O(this.schoolDesc,t.schoolDesc)&&this.schoolActive===t.schoolActive&&O(this.schoolFeatures,t.schoolFeatures)&&this.schoolLocationLong===t.schoolLocationLong&&this.schoolLocationLatt===t.schoolLocationLatt&&O(this.schoolAddress,t.schoolAddress)))},Cht.prototype.hashCode=function(){var t,e,n,i,o=Yt(this.schoolUid);o=(31*(o=(31*(o=(31*(o=(31*(o=(31*(o=(31*o|0)+(null!=(e=null!=(t=this.schoolName)?Yt(t):null)?e:0)|0)|0)+(null!=(i=null!=(n=this.schoolDesc)?Yt(n):null)?i:0)|0)|0)+Yt(this.schoolActive)|0)|0)+Yt(this.schoolFeatures)|0)|0)+Yt(this.schoolLocationLong)|0)|0)+Yt(this.schoolLocationLatt)|0;var r,s=this.schoolAddress;return o=(31*o|0)+(null!=(r=null!=s?Yt(s):null)?r:0)|0},Nht.prototype.serializer=function(){return Oht()},Nht.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Tht=null;function Lht(){return null===Tht&&new Nht,Tht}function zht(){this.descriptor_cv18an$_0=new Wt("com.ustadmobile.lib.db.entities.School",this,21),this.descriptor.addElement_ivxn3r$("schoolUid",!0),this.descriptor.addElement_ivxn3r$("schoolName",!0),this.descriptor.addElement_ivxn3r$("schoolDesc",!0),this.descriptor.addElement_ivxn3r$("schoolAddress",!0),this.descriptor.addElement_ivxn3r$("schoolActive",!0),this.descriptor.addElement_ivxn3r$("schoolPhoneNumber",!0),this.descriptor.addElement_ivxn3r$("schoolGender",!0),this.descriptor.addElement_ivxn3r$("schoolHolidayCalendarUid",!0),this.descriptor.addElement_ivxn3r$("schoolFeatures",!0),this.descriptor.addElement_ivxn3r$("schoolLocationLong",!0),this.descriptor.addElement_ivxn3r$("schoolLocationLatt",!0),this.descriptor.addElement_ivxn3r$("schoolEmailAddress",!0),this.descriptor.addElement_ivxn3r$("schoolTeachersPersonGroupUid",!0),this.descriptor.addElement_ivxn3r$("schoolStudentsPersonGroupUid",!0),this.descriptor.addElement_ivxn3r$("schoolPendingStudentsPersonGroupUid",!0),this.descriptor.addElement_ivxn3r$("schoolCode",!0),this.descriptor.addElement_ivxn3r$("schoolMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("schoolLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("schoolLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("schoolLct",!0),this.descriptor.addElement_ivxn3r$("schoolTimeZone",!0),wht=this}Object.defineProperty(zht.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_cv18an$_0}}),zht.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.schoolUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.schoolUid),O(e.schoolName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.schoolName),O(e.schoolDesc,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.schoolDesc),O(e.schoolAddress,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,3,Ht.StringSerializer,e.schoolAddress),O(e.schoolActive,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeBooleanElement_qh7jdn$(this.descriptor,4,e.schoolActive),O(e.schoolPhoneNumber,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,5,Ht.StringSerializer,e.schoolPhoneNumber),O(e.schoolGender,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.schoolGender),O(e.schoolHolidayCalendarUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.schoolHolidayCalendarUid),O(e.schoolFeatures,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.schoolFeatures),O(e.schoolLocationLong,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeDoubleElement_powrwi$(this.descriptor,9,e.schoolLocationLong),O(e.schoolLocationLatt,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeDoubleElement_powrwi$(this.descriptor,10,e.schoolLocationLatt),O(e.schoolEmailAddress,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,11,Ht.StringSerializer,e.schoolEmailAddress),O(e.schoolTeachersPersonGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeLongElement_j0o2mv$(this.descriptor,12,e.schoolTeachersPersonGroupUid),O(e.schoolStudentsPersonGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeLongElement_j0o2mv$(this.descriptor,13,e.schoolStudentsPersonGroupUid),O(e.schoolPendingStudentsPersonGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeLongElement_j0o2mv$(this.descriptor,14,e.schoolPendingStudentsPersonGroupUid),O(e.schoolCode,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,15,Ht.StringSerializer,e.schoolCode),O(e.schoolMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,16)||n.encodeLongElement_j0o2mv$(this.descriptor,16,e.schoolMasterChangeSeqNum),O(e.schoolLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,17)||n.encodeLongElement_j0o2mv$(this.descriptor,17,e.schoolLocalChangeSeqNum),O(e.schoolLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,18)||n.encodeIntElement_ptg7oe$(this.descriptor,18,e.schoolLastChangedBy),O(e.schoolLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,19)||n.encodeLongElement_j0o2mv$(this.descriptor,19,e.schoolLct),O(e.schoolTimeZone,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,20)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,20,Ht.StringSerializer,e.schoolTimeZone),n.endStructure_24f42q$(this.descriptor)},zht.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v=0,C=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=C.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=C.decodeLongElement_szpzho$(this.descriptor,0),v|=1;break;case 1:i=C.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),v|=2;break;case 2:o=C.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),v|=4;break;case 3:r=C.decodeNullableSerializableElement_8viuyw$(this.descriptor,3,Ht.StringSerializer,r),v|=8;break;case 4:s=C.decodeBooleanElement_szpzho$(this.descriptor,4),v|=16;break;case 5:a=C.decodeNullableSerializableElement_8viuyw$(this.descriptor,5,Ht.StringSerializer,a),v|=32;break;case 6:c=C.decodeIntElement_szpzho$(this.descriptor,6),v|=64;break;case 7:l=C.decodeLongElement_szpzho$(this.descriptor,7),v|=128;break;case 8:u=C.decodeLongElement_szpzho$(this.descriptor,8),v|=256;break;case 9:h=C.decodeDoubleElement_szpzho$(this.descriptor,9),v|=512;break;case 10:d=C.decodeDoubleElement_szpzho$(this.descriptor,10),v|=1024;break;case 11:p=C.decodeNullableSerializableElement_8viuyw$(this.descriptor,11,Ht.StringSerializer,p),v|=2048;break;case 12:_=C.decodeLongElement_szpzho$(this.descriptor,12),v|=4096;break;case 13:m=C.decodeLongElement_szpzho$(this.descriptor,13),v|=8192;break;case 14:f=C.decodeLongElement_szpzho$(this.descriptor,14),v|=16384;break;case 15:g=C.decodeNullableSerializableElement_8viuyw$(this.descriptor,15,Ht.StringSerializer,g),v|=32768;break;case 16:$=C.decodeLongElement_szpzho$(this.descriptor,16),v|=65536;break;case 17:E=C.decodeLongElement_szpzho$(this.descriptor,17),v|=131072;break;case 18:y=C.decodeIntElement_szpzho$(this.descriptor,18),v|=262144;break;case 19:b=C.decodeLongElement_szpzho$(this.descriptor,19),v|=524288;break;case 20:S=C.decodeNullableSerializableElement_8viuyw$(this.descriptor,20,Ht.StringSerializer,S),v|=1048576;break;case-1:break t;default:throw new Vt(e)}return C.endStructure_24f42q$(this.descriptor),Rht(v,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,null)},zht.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.BooleanSerializer,new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.DoubleSerializer,Ht.DoubleSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer)]},zht.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var wht=null;function Oht(){return null===wht&&new zht,wht}function Rht(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S){var v=S||Object.create(Cht.prototype);return v.schoolUid=0==(1&t)?X:e,v.schoolName=0==(2&t)?null:n,v.schoolDesc=0==(4&t)?null:i,v.schoolAddress=0==(8&t)?null:o,v.schoolActive=0!=(16&t)&&r,v.schoolPhoneNumber=0==(32&t)?null:s,v.schoolGender=0==(64&t)?0:a,v.schoolHolidayCalendarUid=0==(128&t)?X:c,v.schoolFeatures=0==(256&t)?X:l,v.schoolLocationLong=0==(512&t)?0:u,v.schoolLocationLatt=0==(1024&t)?0:h,v.schoolEmailAddress=0==(2048&t)?null:d,v.schoolTeachersPersonGroupUid=0==(4096&t)?X:p,v.schoolStudentsPersonGroupUid=0==(8192&t)?X:_,v.schoolPendingStudentsPersonGroupUid=0==(16384&t)?X:m,v.schoolCode=0==(32768&t)?null:f,v.schoolMasterChangeSeqNum=0==(65536&t)?X:g,v.schoolLocalChangeSeqNum=0==(131072&t)?X:$,v.schoolLastChangedBy=0==(262144&t)?0:E,v.schoolLct=0==(524288&t)?X:y,v.schoolTimeZone=0==(1048576&t)?null:b,v}function Aht(){Uht(),this.schoolMemberUid=X,this.schoolMemberPersonUid=X,this.schoolMemberSchoolUid=X,this.schoolMemberJoinDate=X,this.schoolMemberLeftDate=Xt,this.schoolMemberRole=0,this.schoolMemberActive=!0,this.schoolMemberLocalChangeSeqNum=X,this.schoolMemberMasterChangeSeqNum=X,this.schoolMemberLastChangedBy=0,this.schoolMemberLct=X}function xht(){Iht=this,this.TABLE_ID=200,this.FROM_SCHOOLMEMBER_TO_SCOPEDGRANT_JOIN_ON_PERSON_OR_CLAZZ_PERMISSION_CLAUSE="\n ((ScopedGrant.sgTableId = -2\n AND ScopedGrant.sgEntityUid = -2)\n OR (ScopedGrant.sgTableId = 9\n AND ScopedGrant.sgEntityUid = SchoolMember.schoolMemberPersonUid)\n OR (ScopedGrant.sgTableId = 164\n AND ScopedGrant.sgEntityUid = SchoolMember.schoolMemberSchoolUid))\n ",this.JOIN_FROM_SCHOOLMEMBER_TO_USERSESSION_VIA_SCOPEDGRANT_PERSON_OR_CLAZZ_PERMISSION_PT1="\n JOIN ScopedGrant\n ON \n ((ScopedGrant.sgTableId = -2\n AND ScopedGrant.sgEntityUid = -2)\n OR (ScopedGrant.sgTableId = 9\n AND ScopedGrant.sgEntityUid = SchoolMember.schoolMemberPersonUid)\n OR (ScopedGrant.sgTableId = 164\n AND ScopedGrant.sgEntityUid = SchoolMember.schoolMemberSchoolUid))\n \n AND (ScopedGrant.sgPermissions &\n ",this.FROM_SCHOOLMEMBER_TO_SCOPEDGRANT_JOIN_ON_SCHOOL_PERMISSION_CLAUSE="\n (ScopedGrant.sgTableId = 164\n AND ScopedGrant.sgEntityUid = SchoolMember.schoolMemberSchoolUid)\n ",this.JOIN_FROM_SCHOOLMEMBER_TO_USERSESSION_VIA_SCOPEDGRANT_SCHOOOL_PERMISSION_PT1="\n JOIN ScopedGrant\n ON \n (ScopedGrant.sgTableId = 164\n AND ScopedGrant.sgEntityUid = SchoolMember.schoolMemberSchoolUid)\n \n AND (ScopedGrant.sgPermissions &\n ",this.JOIN_FROM_SCHOOLMEMBER_TO_USERSESSION_VIA_SCOPEDGRANT_PT2="\n ) > 0 \n JOIN PersonGroupMember \n ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n JOIN UserSession\n ON UserSession.usPersonUid = PersonGroupMember.groupMemberPersonUid\n AND UserSession.usStatus =1\n "}Cht.$metadata$={kind:c,simpleName:"School",interfaces:[]},xht.prototype.serializer=function(){return Mht()},xht.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Iht=null;function Uht(){return null===Iht&&new xht,Iht}function Dht(){this.descriptor_qbymx3$_0=new Wt("com.ustadmobile.lib.db.entities.SchoolMember",this,11),this.descriptor.addElement_ivxn3r$("schoolMemberUid",!0),this.descriptor.addElement_ivxn3r$("schoolMemberPersonUid",!0),this.descriptor.addElement_ivxn3r$("schoolMemberSchoolUid",!0),this.descriptor.addElement_ivxn3r$("schoolMemberJoinDate",!0),this.descriptor.addElement_ivxn3r$("schoolMemberLeftDate",!0),this.descriptor.addElement_ivxn3r$("schoolMemberRole",!0),this.descriptor.addElement_ivxn3r$("schoolMemberActive",!0),this.descriptor.addElement_ivxn3r$("schoolMemberLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("schoolMemberMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("schoolMemberLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("schoolMemberLct",!0),Pht=this}Object.defineProperty(Dht.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_qbymx3$_0}}),Dht.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.schoolMemberUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.schoolMemberUid),O(e.schoolMemberPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.schoolMemberPersonUid),O(e.schoolMemberSchoolUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.schoolMemberSchoolUid),O(e.schoolMemberJoinDate,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.schoolMemberJoinDate),O(e.schoolMemberLeftDate,Xt)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.schoolMemberLeftDate),O(e.schoolMemberRole,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeIntElement_ptg7oe$(this.descriptor,5,e.schoolMemberRole),O(e.schoolMemberActive,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeBooleanElement_qh7jdn$(this.descriptor,6,e.schoolMemberActive),O(e.schoolMemberLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.schoolMemberLocalChangeSeqNum),O(e.schoolMemberMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.schoolMemberMasterChangeSeqNum),O(e.schoolMemberLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeIntElement_ptg7oe$(this.descriptor,9,e.schoolMemberLastChangedBy),O(e.schoolMemberLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeLongElement_j0o2mv$(this.descriptor,10,e.schoolMemberLct),n.endStructure_24f42q$(this.descriptor)},Dht.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p=0,_=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=_.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=_.decodeLongElement_szpzho$(this.descriptor,0),p|=1;break;case 1:i=_.decodeLongElement_szpzho$(this.descriptor,1),p|=2;break;case 2:o=_.decodeLongElement_szpzho$(this.descriptor,2),p|=4;break;case 3:r=_.decodeLongElement_szpzho$(this.descriptor,3),p|=8;break;case 4:s=_.decodeLongElement_szpzho$(this.descriptor,4),p|=16;break;case 5:a=_.decodeIntElement_szpzho$(this.descriptor,5),p|=32;break;case 6:c=_.decodeBooleanElement_szpzho$(this.descriptor,6),p|=64;break;case 7:l=_.decodeLongElement_szpzho$(this.descriptor,7),p|=128;break;case 8:u=_.decodeLongElement_szpzho$(this.descriptor,8),p|=256;break;case 9:h=_.decodeIntElement_szpzho$(this.descriptor,9),p|=512;break;case 10:d=_.decodeLongElement_szpzho$(this.descriptor,10),p|=1024;break;case-1:break t;default:throw new Vt(e)}return _.endStructure_24f42q$(this.descriptor),kht(p,n,i,o,r,s,a,c,l,u,h,d,null)},Dht.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.BooleanSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer]},Dht.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Pht=null;function Mht(){return null===Pht&&new Dht,Pht}function kht(t,e,n,i,o,r,s,a,c,l,u,h,d){var p=d||Object.create(Aht.prototype);return p.schoolMemberUid=0==(1&t)?X:e,p.schoolMemberPersonUid=0==(2&t)?X:n,p.schoolMemberSchoolUid=0==(4&t)?X:i,p.schoolMemberJoinDate=0==(8&t)?X:o,p.schoolMemberLeftDate=0==(16&t)?Xt:r,p.schoolMemberRole=0==(32&t)?0:s,p.schoolMemberActive=0==(64&t)||a,p.schoolMemberLocalChangeSeqNum=0==(128&t)?X:c,p.schoolMemberMasterChangeSeqNum=0==(256&t)?X:l,p.schoolMemberLastChangedBy=0==(512&t)?0:u,p.schoolMemberLct=0==(1024&t)?X:h,p}function jht(t){return t=t||Object.create(Aht.prototype),Aht.call(t),t.schoolMemberActive=!0,t.schoolMemberLeftDate=Xt,t}function Ght(){Bht(),jht(this),this.person=null}function qht(){Fht=this}Aht.$metadata$={kind:c,simpleName:"SchoolMember",interfaces:[]},qht.prototype.serializer=function(){return Vht()},qht.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Fht=null;function Bht(){return null===Fht&&new qht,Fht}function Wht(){this.descriptor_y5lzu4$_0=new Wt("com.ustadmobile.lib.db.entities.SchoolMemberWithPerson",this,12),this.descriptor.addElement_ivxn3r$("schoolMemberUid",!0),this.descriptor.addElement_ivxn3r$("schoolMemberPersonUid",!0),this.descriptor.addElement_ivxn3r$("schoolMemberSchoolUid",!0),this.descriptor.addElement_ivxn3r$("schoolMemberJoinDate",!0),this.descriptor.addElement_ivxn3r$("schoolMemberLeftDate",!0),this.descriptor.addElement_ivxn3r$("schoolMemberRole",!0),this.descriptor.addElement_ivxn3r$("schoolMemberActive",!0),this.descriptor.addElement_ivxn3r$("schoolMemberLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("schoolMemberMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("schoolMemberLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("schoolMemberLct",!0),this.descriptor.addElement_ivxn3r$("person",!0),Hht=this}Object.defineProperty(Wht.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_y5lzu4$_0}}),Wht.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.schoolMemberUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.schoolMemberUid),O(e.schoolMemberPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.schoolMemberPersonUid),O(e.schoolMemberSchoolUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.schoolMemberSchoolUid),O(e.schoolMemberJoinDate,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.schoolMemberJoinDate),O(e.schoolMemberLeftDate,Xt)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.schoolMemberLeftDate),O(e.schoolMemberRole,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeIntElement_ptg7oe$(this.descriptor,5,e.schoolMemberRole),O(e.schoolMemberActive,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeBooleanElement_qh7jdn$(this.descriptor,6,e.schoolMemberActive),O(e.schoolMemberLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.schoolMemberLocalChangeSeqNum),O(e.schoolMemberMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.schoolMemberMasterChangeSeqNum),O(e.schoolMemberLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeIntElement_ptg7oe$(this.descriptor,9,e.schoolMemberLastChangedBy),O(e.schoolMemberLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeLongElement_j0o2mv$(this.descriptor,10,e.schoolMemberLct),O(e.person,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,11,Ict(),e.person),n.endStructure_24f42q$(this.descriptor)},Wht.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_=0,m=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=m.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=m.decodeLongElement_szpzho$(this.descriptor,0),_|=1;break;case 1:i=m.decodeLongElement_szpzho$(this.descriptor,1),_|=2;break;case 2:o=m.decodeLongElement_szpzho$(this.descriptor,2),_|=4;break;case 3:r=m.decodeLongElement_szpzho$(this.descriptor,3),_|=8;break;case 4:s=m.decodeLongElement_szpzho$(this.descriptor,4),_|=16;break;case 5:a=m.decodeIntElement_szpzho$(this.descriptor,5),_|=32;break;case 6:c=m.decodeBooleanElement_szpzho$(this.descriptor,6),_|=64;break;case 7:l=m.decodeLongElement_szpzho$(this.descriptor,7),_|=128;break;case 8:u=m.decodeLongElement_szpzho$(this.descriptor,8),_|=256;break;case 9:h=m.decodeIntElement_szpzho$(this.descriptor,9),_|=512;break;case 10:d=m.decodeLongElement_szpzho$(this.descriptor,10),_|=1024;break;case 11:p=m.decodeNullableSerializableElement_8viuyw$(this.descriptor,11,Ict(),p),_|=2048;break;case-1:break t;default:throw new Vt(e)}return m.endStructure_24f42q$(this.descriptor),Kht(_,n,i,o,r,s,a,c,l,u,h,d,p,null)},Wht.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.BooleanSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(Ict())]},Wht.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Hht=null;function Vht(){return null===Hht&&new Wht,Hht}function Kht(t,e,n,i,o,r,s,a,c,l,u,h,d,p){var _=p||Object.create(Ght.prototype);return(_=kht(t,e,n,i,o,r,s,a,c,l,u,h,_)).person=0==(2048&t)?null:d,_}function Xht(){Qht(),Cht.call(this),this.holidayCalendar=null}function Jht(){Yht=this}Ght.$metadata$={kind:c,simpleName:"SchoolMemberWithPerson",interfaces:[Aht]},Jht.prototype.serializer=function(){return edt()},Jht.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Yht=null;function Qht(){return null===Yht&&new Jht,Yht}function Zht(){this.descriptor_s1qzjv$_0=new Wt("com.ustadmobile.lib.db.entities.SchoolWithHolidayCalendar",this,22),this.descriptor.addElement_ivxn3r$("schoolUid",!0),this.descriptor.addElement_ivxn3r$("schoolName",!0),this.descriptor.addElement_ivxn3r$("schoolDesc",!0),this.descriptor.addElement_ivxn3r$("schoolAddress",!0),this.descriptor.addElement_ivxn3r$("schoolActive",!0),this.descriptor.addElement_ivxn3r$("schoolPhoneNumber",!0),this.descriptor.addElement_ivxn3r$("schoolGender",!0),this.descriptor.addElement_ivxn3r$("schoolHolidayCalendarUid",!0),this.descriptor.addElement_ivxn3r$("schoolFeatures",!0),this.descriptor.addElement_ivxn3r$("schoolLocationLong",!0),this.descriptor.addElement_ivxn3r$("schoolLocationLatt",!0),this.descriptor.addElement_ivxn3r$("schoolEmailAddress",!0),this.descriptor.addElement_ivxn3r$("schoolTeachersPersonGroupUid",!0),this.descriptor.addElement_ivxn3r$("schoolStudentsPersonGroupUid",!0),this.descriptor.addElement_ivxn3r$("schoolPendingStudentsPersonGroupUid",!0),this.descriptor.addElement_ivxn3r$("schoolCode",!0),this.descriptor.addElement_ivxn3r$("schoolMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("schoolLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("schoolLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("schoolLct",!0),this.descriptor.addElement_ivxn3r$("schoolTimeZone",!0),this.descriptor.addElement_ivxn3r$("holidayCalendar",!0),tdt=this}Object.defineProperty(Zht.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_s1qzjv$_0}}),Zht.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.schoolUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.schoolUid),O(e.schoolName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.schoolName),O(e.schoolDesc,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.schoolDesc),O(e.schoolAddress,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,3,Ht.StringSerializer,e.schoolAddress),O(e.schoolActive,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeBooleanElement_qh7jdn$(this.descriptor,4,e.schoolActive),O(e.schoolPhoneNumber,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,5,Ht.StringSerializer,e.schoolPhoneNumber),O(e.schoolGender,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.schoolGender),O(e.schoolHolidayCalendarUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.schoolHolidayCalendarUid),O(e.schoolFeatures,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.schoolFeatures),O(e.schoolLocationLong,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeDoubleElement_powrwi$(this.descriptor,9,e.schoolLocationLong),O(e.schoolLocationLatt,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeDoubleElement_powrwi$(this.descriptor,10,e.schoolLocationLatt),O(e.schoolEmailAddress,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,11,Ht.StringSerializer,e.schoolEmailAddress),O(e.schoolTeachersPersonGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeLongElement_j0o2mv$(this.descriptor,12,e.schoolTeachersPersonGroupUid),O(e.schoolStudentsPersonGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeLongElement_j0o2mv$(this.descriptor,13,e.schoolStudentsPersonGroupUid),O(e.schoolPendingStudentsPersonGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeLongElement_j0o2mv$(this.descriptor,14,e.schoolPendingStudentsPersonGroupUid),O(e.schoolCode,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,15,Ht.StringSerializer,e.schoolCode),O(e.schoolMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,16)||n.encodeLongElement_j0o2mv$(this.descriptor,16,e.schoolMasterChangeSeqNum),O(e.schoolLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,17)||n.encodeLongElement_j0o2mv$(this.descriptor,17,e.schoolLocalChangeSeqNum),O(e.schoolLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,18)||n.encodeIntElement_ptg7oe$(this.descriptor,18,e.schoolLastChangedBy),O(e.schoolLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,19)||n.encodeLongElement_j0o2mv$(this.descriptor,19,e.schoolLct),O(e.schoolTimeZone,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,20)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,20,Ht.StringSerializer,e.schoolTimeZone),O(e.holidayCalendar,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,21)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,21,bst(),e.holidayCalendar),n.endStructure_24f42q$(this.descriptor)},Zht.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C=0,N=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=N.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=N.decodeLongElement_szpzho$(this.descriptor,0),C|=1;break;case 1:i=N.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),C|=2;break;case 2:o=N.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),C|=4;break;case 3:r=N.decodeNullableSerializableElement_8viuyw$(this.descriptor,3,Ht.StringSerializer,r),C|=8;break;case 4:s=N.decodeBooleanElement_szpzho$(this.descriptor,4),C|=16;break;case 5:a=N.decodeNullableSerializableElement_8viuyw$(this.descriptor,5,Ht.StringSerializer,a),C|=32;break;case 6:c=N.decodeIntElement_szpzho$(this.descriptor,6),C|=64;break;case 7:l=N.decodeLongElement_szpzho$(this.descriptor,7),C|=128;break;case 8:u=N.decodeLongElement_szpzho$(this.descriptor,8),C|=256;break;case 9:h=N.decodeDoubleElement_szpzho$(this.descriptor,9),C|=512;break;case 10:d=N.decodeDoubleElement_szpzho$(this.descriptor,10),C|=1024;break;case 11:p=N.decodeNullableSerializableElement_8viuyw$(this.descriptor,11,Ht.StringSerializer,p),C|=2048;break;case 12:_=N.decodeLongElement_szpzho$(this.descriptor,12),C|=4096;break;case 13:m=N.decodeLongElement_szpzho$(this.descriptor,13),C|=8192;break;case 14:f=N.decodeLongElement_szpzho$(this.descriptor,14),C|=16384;break;case 15:g=N.decodeNullableSerializableElement_8viuyw$(this.descriptor,15,Ht.StringSerializer,g),C|=32768;break;case 16:$=N.decodeLongElement_szpzho$(this.descriptor,16),C|=65536;break;case 17:E=N.decodeLongElement_szpzho$(this.descriptor,17),C|=131072;break;case 18:y=N.decodeIntElement_szpzho$(this.descriptor,18),C|=262144;break;case 19:b=N.decodeLongElement_szpzho$(this.descriptor,19),C|=524288;break;case 20:S=N.decodeNullableSerializableElement_8viuyw$(this.descriptor,20,Ht.StringSerializer,S),C|=1048576;break;case 21:v=N.decodeNullableSerializableElement_8viuyw$(this.descriptor,21,bst(),v),C|=2097152;break;case-1:break t;default:throw new Vt(e)}return N.endStructure_24f42q$(this.descriptor),ndt(C,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,null)},Zht.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.BooleanSerializer,new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.DoubleSerializer,Ht.DoubleSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(bst())]},Zht.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var tdt=null;function edt(){return null===tdt&&new Zht,tdt}function ndt(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v){var C=v||Object.create(Xht.prototype);return(C=Rht(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,C)).holidayCalendar=0==(2097152&t)?null:S,C}function idt(){sdt(),Cht.call(this),this.numStudents=0,this.numTeachers=0,this.locationName=null,this.clazzCount=0}function odt(){rdt=this}Xht.$metadata$={kind:c,simpleName:"SchoolWithHolidayCalendar",interfaces:[Cht]},idt.prototype.equals=function(t){var n;return this===t||!(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))&&!!Cht.prototype.equals.call(this,t)&&(e.isType(t,idt)||Jt(),this.numStudents===t.numStudents&&this.numTeachers===t.numTeachers&&!!O(this.locationName,t.locationName))},idt.prototype.hashCode=function(){var t,e,n=Cht.prototype.hashCode.call(this);return n=(31*(n=(31*(n=(31*n|0)+this.numStudents|0)|0)+this.numTeachers|0)|0)+(null!=(e=null!=(t=this.locationName)?Yt(t):null)?e:0)|0},odt.prototype.serializer=function(){return ldt()},odt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var rdt=null;function sdt(){return null===rdt&&new odt,rdt}function adt(){this.descriptor_ryzgnw$_0=new Wt("com.ustadmobile.lib.db.entities.SchoolWithMemberCountAndLocation",this,25),this.descriptor.addElement_ivxn3r$("schoolUid",!0),this.descriptor.addElement_ivxn3r$("schoolName",!0),this.descriptor.addElement_ivxn3r$("schoolDesc",!0),this.descriptor.addElement_ivxn3r$("schoolAddress",!0),this.descriptor.addElement_ivxn3r$("schoolActive",!0),this.descriptor.addElement_ivxn3r$("schoolPhoneNumber",!0),this.descriptor.addElement_ivxn3r$("schoolGender",!0),this.descriptor.addElement_ivxn3r$("schoolHolidayCalendarUid",!0),this.descriptor.addElement_ivxn3r$("schoolFeatures",!0),this.descriptor.addElement_ivxn3r$("schoolLocationLong",!0),this.descriptor.addElement_ivxn3r$("schoolLocationLatt",!0),this.descriptor.addElement_ivxn3r$("schoolEmailAddress",!0),this.descriptor.addElement_ivxn3r$("schoolTeachersPersonGroupUid",!0),this.descriptor.addElement_ivxn3r$("schoolStudentsPersonGroupUid",!0),this.descriptor.addElement_ivxn3r$("schoolPendingStudentsPersonGroupUid",!0),this.descriptor.addElement_ivxn3r$("schoolCode",!0),this.descriptor.addElement_ivxn3r$("schoolMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("schoolLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("schoolLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("schoolLct",!0),this.descriptor.addElement_ivxn3r$("schoolTimeZone",!0),this.descriptor.addElement_ivxn3r$("numStudents",!0),this.descriptor.addElement_ivxn3r$("numTeachers",!0),this.descriptor.addElement_ivxn3r$("locationName",!0),this.descriptor.addElement_ivxn3r$("clazzCount",!0),cdt=this}Object.defineProperty(adt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_ryzgnw$_0}}),adt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.schoolUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.schoolUid),O(e.schoolName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.schoolName),O(e.schoolDesc,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.schoolDesc),O(e.schoolAddress,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,3,Ht.StringSerializer,e.schoolAddress),O(e.schoolActive,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeBooleanElement_qh7jdn$(this.descriptor,4,e.schoolActive),O(e.schoolPhoneNumber,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,5,Ht.StringSerializer,e.schoolPhoneNumber),O(e.schoolGender,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.schoolGender),O(e.schoolHolidayCalendarUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.schoolHolidayCalendarUid),O(e.schoolFeatures,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.schoolFeatures),O(e.schoolLocationLong,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeDoubleElement_powrwi$(this.descriptor,9,e.schoolLocationLong),O(e.schoolLocationLatt,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeDoubleElement_powrwi$(this.descriptor,10,e.schoolLocationLatt),O(e.schoolEmailAddress,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,11,Ht.StringSerializer,e.schoolEmailAddress),O(e.schoolTeachersPersonGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeLongElement_j0o2mv$(this.descriptor,12,e.schoolTeachersPersonGroupUid),O(e.schoolStudentsPersonGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeLongElement_j0o2mv$(this.descriptor,13,e.schoolStudentsPersonGroupUid),O(e.schoolPendingStudentsPersonGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeLongElement_j0o2mv$(this.descriptor,14,e.schoolPendingStudentsPersonGroupUid),O(e.schoolCode,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,15,Ht.StringSerializer,e.schoolCode),O(e.schoolMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,16)||n.encodeLongElement_j0o2mv$(this.descriptor,16,e.schoolMasterChangeSeqNum),O(e.schoolLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,17)||n.encodeLongElement_j0o2mv$(this.descriptor,17,e.schoolLocalChangeSeqNum),O(e.schoolLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,18)||n.encodeIntElement_ptg7oe$(this.descriptor,18,e.schoolLastChangedBy),O(e.schoolLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,19)||n.encodeLongElement_j0o2mv$(this.descriptor,19,e.schoolLct),O(e.schoolTimeZone,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,20)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,20,Ht.StringSerializer,e.schoolTimeZone),O(e.numStudents,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,21)||n.encodeIntElement_ptg7oe$(this.descriptor,21,e.numStudents),O(e.numTeachers,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,22)||n.encodeIntElement_ptg7oe$(this.descriptor,22,e.numTeachers),O(e.locationName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,23)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,23,Ht.StringSerializer,e.locationName),O(e.clazzCount,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,24)||n.encodeIntElement_ptg7oe$(this.descriptor,24,e.clazzCount),n.endStructure_24f42q$(this.descriptor)},adt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L=0,z=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=z.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=z.decodeLongElement_szpzho$(this.descriptor,0),L|=1;break;case 1:i=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),L|=2;break;case 2:o=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),L|=4;break;case 3:r=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,3,Ht.StringSerializer,r),L|=8;break;case 4:s=z.decodeBooleanElement_szpzho$(this.descriptor,4),L|=16;break;case 5:a=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,5,Ht.StringSerializer,a),L|=32;break;case 6:c=z.decodeIntElement_szpzho$(this.descriptor,6),L|=64;break;case 7:l=z.decodeLongElement_szpzho$(this.descriptor,7),L|=128;break;case 8:u=z.decodeLongElement_szpzho$(this.descriptor,8),L|=256;break;case 9:h=z.decodeDoubleElement_szpzho$(this.descriptor,9),L|=512;break;case 10:d=z.decodeDoubleElement_szpzho$(this.descriptor,10),L|=1024;break;case 11:p=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,11,Ht.StringSerializer,p),L|=2048;break;case 12:_=z.decodeLongElement_szpzho$(this.descriptor,12),L|=4096;break;case 13:m=z.decodeLongElement_szpzho$(this.descriptor,13),L|=8192;break;case 14:f=z.decodeLongElement_szpzho$(this.descriptor,14),L|=16384;break;case 15:g=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,15,Ht.StringSerializer,g),L|=32768;break;case 16:$=z.decodeLongElement_szpzho$(this.descriptor,16),L|=65536;break;case 17:E=z.decodeLongElement_szpzho$(this.descriptor,17),L|=131072;break;case 18:y=z.decodeIntElement_szpzho$(this.descriptor,18),L|=262144;break;case 19:b=z.decodeLongElement_szpzho$(this.descriptor,19),L|=524288;break;case 20:S=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,20,Ht.StringSerializer,S),L|=1048576;break;case 21:v=z.decodeIntElement_szpzho$(this.descriptor,21),L|=2097152;break;case 22:C=z.decodeIntElement_szpzho$(this.descriptor,22),L|=4194304;break;case 23:N=z.decodeNullableSerializableElement_8viuyw$(this.descriptor,23,Ht.StringSerializer,N),L|=8388608;break;case 24:T=z.decodeIntElement_szpzho$(this.descriptor,24),L|=16777216;break;case-1:break t;default:throw new Vt(e)}return z.endStructure_24f42q$(this.descriptor),udt(L,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,null)},adt.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.BooleanSerializer,new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.DoubleSerializer,Ht.DoubleSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.IntSerializer,new Bt(Ht.StringSerializer),Ht.IntSerializer]},adt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var cdt=null;function ldt(){return null===cdt&&new adt,cdt}function udt(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T){var L=T||Object.create(idt.prototype);return(L=Rht(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,L)).numStudents=0==(2097152&t)?0:S,L.numTeachers=0==(4194304&t)?0:v,L.locationName=0==(8388608&t)?null:C,L.clazzCount=0==(16777216&t)?0:N,L}function hdt(){_dt(),this.sgUid=X,this.sgPcsn=X,this.sgLcsn=X,this.sgLcb=0,this.sgLct=X,this.sgTableId=0,this.sgEntityUid=X,this.sgPermissions=X,this.sgGroupUid=X,this.sgIndex=0,this.sgFlags=0}function ddt(){pdt=this,this.TABLE_ID=48,this.ALL_TABLES=-2,this.ALL_ENTITIES=vn,this.FLAG_NO_DELETE=1,this.FLAG_NO_EDIT=2,this.FLAG_ADMIN_GROUP=4,this.FLAG_TEACHER_GROUP=8,this.FLAG_STUDENT_GROUP=16,this.FLAG_PARENT_GRANT=32,this.FLAG_PARENT_GROUP=64}idt.$metadata$={kind:c,simpleName:"SchoolWithMemberCountAndLocation",interfaces:[Cht]},ddt.prototype.serializer=function(){return gdt()},ddt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var pdt=null;function _dt(){return null===pdt&&new ddt,pdt}function mdt(){this.descriptor_fpi2cr$_0=new Wt("com.ustadmobile.lib.db.entities.ScopedGrant",this,11),this.descriptor.addElement_ivxn3r$("sgUid",!0),this.descriptor.addElement_ivxn3r$("sgPcsn",!0),this.descriptor.addElement_ivxn3r$("sgLcsn",!0),this.descriptor.addElement_ivxn3r$("sgLcb",!0),this.descriptor.addElement_ivxn3r$("sgLct",!0),this.descriptor.addElement_ivxn3r$("sgTableId",!0),this.descriptor.addElement_ivxn3r$("sgEntityUid",!0),this.descriptor.addElement_ivxn3r$("sgPermissions",!0),this.descriptor.addElement_ivxn3r$("sgGroupUid",!0),this.descriptor.addElement_ivxn3r$("sgIndex",!0),this.descriptor.addElement_ivxn3r$("sgFlags",!0),fdt=this}Object.defineProperty(mdt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_fpi2cr$_0}}),mdt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.sgUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.sgUid),O(e.sgPcsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.sgPcsn),O(e.sgLcsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.sgLcsn),O(e.sgLcb,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeIntElement_ptg7oe$(this.descriptor,3,e.sgLcb),O(e.sgLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.sgLct),O(e.sgTableId,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeIntElement_ptg7oe$(this.descriptor,5,e.sgTableId),O(e.sgEntityUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.sgEntityUid),O(e.sgPermissions,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.sgPermissions),O(e.sgGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.sgGroupUid),O(e.sgIndex,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeIntElement_ptg7oe$(this.descriptor,9,e.sgIndex),O(e.sgFlags,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeIntElement_ptg7oe$(this.descriptor,10,e.sgFlags),n.endStructure_24f42q$(this.descriptor)},mdt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p=0,_=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=_.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=_.decodeLongElement_szpzho$(this.descriptor,0),p|=1;break;case 1:i=_.decodeLongElement_szpzho$(this.descriptor,1),p|=2;break;case 2:o=_.decodeLongElement_szpzho$(this.descriptor,2),p|=4;break;case 3:r=_.decodeIntElement_szpzho$(this.descriptor,3),p|=8;break;case 4:s=_.decodeLongElement_szpzho$(this.descriptor,4),p|=16;break;case 5:a=_.decodeIntElement_szpzho$(this.descriptor,5),p|=32;break;case 6:c=_.decodeLongElement_szpzho$(this.descriptor,6),p|=64;break;case 7:l=_.decodeLongElement_szpzho$(this.descriptor,7),p|=128;break;case 8:u=_.decodeLongElement_szpzho$(this.descriptor,8),p|=256;break;case 9:h=_.decodeIntElement_szpzho$(this.descriptor,9),p|=512;break;case 10:d=_.decodeIntElement_szpzho$(this.descriptor,10),p|=1024;break;case-1:break t;default:throw new Vt(e)}return _.endStructure_24f42q$(this.descriptor),$dt(p,n,i,o,r,s,a,c,l,u,h,d,null)},mdt.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.IntSerializer]},mdt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var fdt=null;function gdt(){return null===fdt&&new mdt,fdt}function $dt(t,e,n,i,o,r,s,a,c,l,u,h,d){var p=d||Object.create(hdt.prototype);return p.sgUid=0==(1&t)?X:e,p.sgPcsn=0==(2&t)?X:n,p.sgLcsn=0==(4&t)?X:i,p.sgLcb=0==(8&t)?0:o,p.sgLct=0==(16&t)?X:r,p.sgTableId=0==(32&t)?0:s,p.sgEntityUid=0==(64&t)?X:a,p.sgPermissions=0==(128&t)?X:c,p.sgGroupUid=0==(256&t)?X:l,p.sgIndex=0==(512&t)?0:u,p.sgFlags=0==(1024&t)?0:h,p}function Edt(){Sdt(),this.scopedGrant=null,this.name=null}function ydt(){bdt=this}hdt.$metadata$={kind:c,simpleName:"ScopedGrant",interfaces:[]},ydt.prototype.serializer=function(){return Ndt()},ydt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var bdt=null;function Sdt(){return null===bdt&&new ydt,bdt}function vdt(){this.descriptor_gj098h$_0=new Wt("com.ustadmobile.lib.db.entities.ScopedGrantAndName",this,2),this.descriptor.addElement_ivxn3r$("scopedGrant",!0),this.descriptor.addElement_ivxn3r$("name",!0),Cdt=this}Object.defineProperty(vdt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_gj098h$_0}}),vdt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.scopedGrant,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,0,gdt(),e.scopedGrant),O(e.name,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.name),n.endStructure_24f42q$(this.descriptor)},vdt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o=0,r=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=r.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=r.decodeNullableSerializableElement_8viuyw$(this.descriptor,0,gdt(),n),o|=1;break;case 1:i=r.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),o|=2;break;case-1:break t;default:throw new Vt(e)}return r.endStructure_24f42q$(this.descriptor),Tdt(o,n,i,null)},vdt.prototype.childSerializers=function(){return[new Bt(gdt()),new Bt(Ht.StringSerializer)]},vdt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Cdt=null;function Ndt(){return null===Cdt&&new vdt,Cdt}function Tdt(t,e,n,i){var o=i||Object.create(Edt.prototype);return o.scopedGrant=0==(1&t)?null:e,o.name=0==(2&t)?null:n,o}function Ldt(){Odt(),hdt.call(this),this.name=null}function zdt(){wdt=this}Edt.$metadata$={kind:c,simpleName:"ScopedGrantAndName",interfaces:[]},zdt.prototype.serializer=function(){return xdt()},zdt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var wdt=null;function Odt(){return null===wdt&&new zdt,wdt}function Rdt(){this.descriptor_5yph4s$_0=new Wt("com.ustadmobile.lib.db.entities.ScopedGrantWithName",this,12),this.descriptor.addElement_ivxn3r$("sgUid",!0),this.descriptor.addElement_ivxn3r$("sgPcsn",!0),this.descriptor.addElement_ivxn3r$("sgLcsn",!0),this.descriptor.addElement_ivxn3r$("sgLcb",!0),this.descriptor.addElement_ivxn3r$("sgLct",!0),this.descriptor.addElement_ivxn3r$("sgTableId",!0),this.descriptor.addElement_ivxn3r$("sgEntityUid",!0),this.descriptor.addElement_ivxn3r$("sgPermissions",!0),this.descriptor.addElement_ivxn3r$("sgGroupUid",!0),this.descriptor.addElement_ivxn3r$("sgIndex",!0),this.descriptor.addElement_ivxn3r$("sgFlags",!0),this.descriptor.addElement_ivxn3r$("name",!0),Adt=this}Object.defineProperty(Rdt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_5yph4s$_0}}),Rdt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.sgUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.sgUid),O(e.sgPcsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.sgPcsn),O(e.sgLcsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.sgLcsn),O(e.sgLcb,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeIntElement_ptg7oe$(this.descriptor,3,e.sgLcb),O(e.sgLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.sgLct),O(e.sgTableId,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeIntElement_ptg7oe$(this.descriptor,5,e.sgTableId),O(e.sgEntityUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.sgEntityUid),O(e.sgPermissions,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.sgPermissions),O(e.sgGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.sgGroupUid),O(e.sgIndex,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeIntElement_ptg7oe$(this.descriptor,9,e.sgIndex),O(e.sgFlags,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeIntElement_ptg7oe$(this.descriptor,10,e.sgFlags),O(e.name,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,11,Ht.StringSerializer,e.name),n.endStructure_24f42q$(this.descriptor)},Rdt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_=0,m=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=m.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=m.decodeLongElement_szpzho$(this.descriptor,0),_|=1;break;case 1:i=m.decodeLongElement_szpzho$(this.descriptor,1),_|=2;break;case 2:o=m.decodeLongElement_szpzho$(this.descriptor,2),_|=4;break;case 3:r=m.decodeIntElement_szpzho$(this.descriptor,3),_|=8;break;case 4:s=m.decodeLongElement_szpzho$(this.descriptor,4),_|=16;break;case 5:a=m.decodeIntElement_szpzho$(this.descriptor,5),_|=32;break;case 6:c=m.decodeLongElement_szpzho$(this.descriptor,6),_|=64;break;case 7:l=m.decodeLongElement_szpzho$(this.descriptor,7),_|=128;break;case 8:u=m.decodeLongElement_szpzho$(this.descriptor,8),_|=256;break;case 9:h=m.decodeIntElement_szpzho$(this.descriptor,9),_|=512;break;case 10:d=m.decodeIntElement_szpzho$(this.descriptor,10),_|=1024;break;case 11:p=m.decodeNullableSerializableElement_8viuyw$(this.descriptor,11,Ht.StringSerializer,p),_|=2048;break;case-1:break t;default:throw new Vt(e)}return m.endStructure_24f42q$(this.descriptor),Idt(_,n,i,o,r,s,a,c,l,u,h,d,p,null)},Rdt.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.IntSerializer,new Bt(Ht.StringSerializer)]},Rdt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Adt=null;function xdt(){return null===Adt&&new Rdt,Adt}function Idt(t,e,n,i,o,r,s,a,c,l,u,h,d,p){var _=p||Object.create(Ldt.prototype);return(_=$dt(t,e,n,i,o,r,s,a,c,l,u,h,_)).name=0==(2048&t)?null:d,_}function Udt(){Mdt(),this.sqiUid=0,this.sqiContentEntryParentUid=X,this.sqiContentEntryUid=X,this.destDir=null,this.scrapeUrl=null,this.status=0,this.runId=0,this.itemType=0,this.errorCode=0,this.contentType=null,this.timeAdded=X,this.timeStarted=X,this.timeFinished=X,this.priority=0,this.overrideEntry=!1}function Ddt(){Pdt=this,this.ITEM_TYPE_INDEX=1,this.ITEM_TYPE_SCRAPE=2}Ldt.$metadata$={kind:c,simpleName:"ScopedGrantWithName",interfaces:[hdt]},Ddt.prototype.serializer=function(){return Gdt()},Ddt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Pdt=null;function Mdt(){return null===Pdt&&new Ddt,Pdt}function kdt(){this.descriptor_wddea9$_0=new Wt("com.ustadmobile.lib.db.entities.ScrapeQueueItem",this,15),this.descriptor.addElement_ivxn3r$("sqiUid",!0),this.descriptor.addElement_ivxn3r$("sqiContentEntryParentUid",!0),this.descriptor.addElement_ivxn3r$("sqiContentEntryUid",!0),this.descriptor.addElement_ivxn3r$("destDir",!0),this.descriptor.addElement_ivxn3r$("scrapeUrl",!0),this.descriptor.addElement_ivxn3r$("status",!0),this.descriptor.addElement_ivxn3r$("runId",!0),this.descriptor.addElement_ivxn3r$("itemType",!0),this.descriptor.addElement_ivxn3r$("errorCode",!0),this.descriptor.addElement_ivxn3r$("contentType",!0),this.descriptor.addElement_ivxn3r$("timeAdded",!0),this.descriptor.addElement_ivxn3r$("timeStarted",!0),this.descriptor.addElement_ivxn3r$("timeFinished",!0),this.descriptor.addElement_ivxn3r$("priority",!0),this.descriptor.addElement_ivxn3r$("overrideEntry",!0),jdt=this}Object.defineProperty(kdt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_wddea9$_0}}),kdt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.sqiUid,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeIntElement_ptg7oe$(this.descriptor,0,e.sqiUid),O(e.sqiContentEntryParentUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.sqiContentEntryParentUid),O(e.sqiContentEntryUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.sqiContentEntryUid),O(e.destDir,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,3,Ht.StringSerializer,e.destDir),O(e.scrapeUrl,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,4,Ht.StringSerializer,e.scrapeUrl),O(e.status,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeIntElement_ptg7oe$(this.descriptor,5,e.status),O(e.runId,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.runId),O(e.itemType,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeIntElement_ptg7oe$(this.descriptor,7,e.itemType),O(e.errorCode,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeIntElement_ptg7oe$(this.descriptor,8,e.errorCode),O(e.contentType,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,9,Ht.StringSerializer,e.contentType),O(e.timeAdded,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeLongElement_j0o2mv$(this.descriptor,10,e.timeAdded),O(e.timeStarted,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeLongElement_j0o2mv$(this.descriptor,11,e.timeStarted),O(e.timeFinished,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeLongElement_j0o2mv$(this.descriptor,12,e.timeFinished),O(e.priority,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeIntElement_ptg7oe$(this.descriptor,13,e.priority),O(e.overrideEntry,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeBooleanElement_qh7jdn$(this.descriptor,14,e.overrideEntry),n.endStructure_24f42q$(this.descriptor)},kdt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g=0,$=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=$.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=$.decodeIntElement_szpzho$(this.descriptor,0),g|=1;break;case 1:i=$.decodeLongElement_szpzho$(this.descriptor,1),g|=2;break;case 2:o=$.decodeLongElement_szpzho$(this.descriptor,2),g|=4;break;case 3:r=$.decodeNullableSerializableElement_8viuyw$(this.descriptor,3,Ht.StringSerializer,r),g|=8;break;case 4:s=$.decodeNullableSerializableElement_8viuyw$(this.descriptor,4,Ht.StringSerializer,s),g|=16;break;case 5:a=$.decodeIntElement_szpzho$(this.descriptor,5),g|=32;break;case 6:c=$.decodeIntElement_szpzho$(this.descriptor,6),g|=64;break;case 7:l=$.decodeIntElement_szpzho$(this.descriptor,7),g|=128;break;case 8:u=$.decodeIntElement_szpzho$(this.descriptor,8),g|=256;break;case 9:h=$.decodeNullableSerializableElement_8viuyw$(this.descriptor,9,Ht.StringSerializer,h),g|=512;break;case 10:d=$.decodeLongElement_szpzho$(this.descriptor,10),g|=1024;break;case 11:p=$.decodeLongElement_szpzho$(this.descriptor,11),g|=2048;break;case 12:_=$.decodeLongElement_szpzho$(this.descriptor,12),g|=4096;break;case 13:m=$.decodeIntElement_szpzho$(this.descriptor,13),g|=8192;break;case 14:f=$.decodeBooleanElement_szpzho$(this.descriptor,14),g|=16384;break;case-1:break t;default:throw new Vt(e)}return $.endStructure_24f42q$(this.descriptor),qdt(g,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,null)},kdt.prototype.childSerializers=function(){return[Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.BooleanSerializer]},kdt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var jdt=null;function Gdt(){return null===jdt&&new kdt,jdt}function qdt(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f){var g=f||Object.create(Udt.prototype);return g.sqiUid=0==(1&t)?0:e,g.sqiContentEntryParentUid=0==(2&t)?X:n,g.sqiContentEntryUid=0==(4&t)?X:i,g.destDir=0==(8&t)?null:o,g.scrapeUrl=0==(16&t)?null:r,g.status=0==(32&t)?0:s,g.runId=0==(64&t)?0:a,g.itemType=0==(128&t)?0:c,g.errorCode=0==(256&t)?0:l,g.contentType=0==(512&t)?null:u,g.timeAdded=0==(1024&t)?X:h,g.timeStarted=0==(2048&t)?X:d,g.timeFinished=0==(4096&t)?X:p,g.priority=0==(8192&t)?0:_,g.overrideEntry=0!=(16384&t)&&m,g}function Fdt(){Hdt(),Udt.call(this),this.scrapeRun=null}function Bdt(){Wdt=this}Udt.$metadata$={kind:c,simpleName:"ScrapeQueueItem",interfaces:[]},Bdt.prototype.serializer=function(){return Xdt()},Bdt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Wdt=null;function Hdt(){return null===Wdt&&new Bdt,Wdt}function Vdt(){this.descriptor_c2ofo$_0=new Wt("com.ustadmobile.lib.db.entities.ScrapeQueueItemWithScrapeRun",this,16),this.descriptor.addElement_ivxn3r$("sqiUid",!0),this.descriptor.addElement_ivxn3r$("sqiContentEntryParentUid",!0),this.descriptor.addElement_ivxn3r$("sqiContentEntryUid",!0),this.descriptor.addElement_ivxn3r$("destDir",!0),this.descriptor.addElement_ivxn3r$("scrapeUrl",!0),this.descriptor.addElement_ivxn3r$("status",!0),this.descriptor.addElement_ivxn3r$("runId",!0),this.descriptor.addElement_ivxn3r$("itemType",!0),this.descriptor.addElement_ivxn3r$("errorCode",!0),this.descriptor.addElement_ivxn3r$("contentType",!0),this.descriptor.addElement_ivxn3r$("timeAdded",!0),this.descriptor.addElement_ivxn3r$("timeStarted",!0),this.descriptor.addElement_ivxn3r$("timeFinished",!0),this.descriptor.addElement_ivxn3r$("priority",!0),this.descriptor.addElement_ivxn3r$("overrideEntry",!0),this.descriptor.addElement_ivxn3r$("scrapeRun",!0),Kdt=this}Object.defineProperty(Vdt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_c2ofo$_0}}),Vdt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.sqiUid,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeIntElement_ptg7oe$(this.descriptor,0,e.sqiUid),O(e.sqiContentEntryParentUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.sqiContentEntryParentUid),O(e.sqiContentEntryUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.sqiContentEntryUid),O(e.destDir,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,3,Ht.StringSerializer,e.destDir),O(e.scrapeUrl,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,4,Ht.StringSerializer,e.scrapeUrl),O(e.status,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeIntElement_ptg7oe$(this.descriptor,5,e.status),O(e.runId,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.runId),O(e.itemType,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeIntElement_ptg7oe$(this.descriptor,7,e.itemType),O(e.errorCode,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeIntElement_ptg7oe$(this.descriptor,8,e.errorCode),O(e.contentType,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,9,Ht.StringSerializer,e.contentType),O(e.timeAdded,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeLongElement_j0o2mv$(this.descriptor,10,e.timeAdded),O(e.timeStarted,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeLongElement_j0o2mv$(this.descriptor,11,e.timeStarted),O(e.timeFinished,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeLongElement_j0o2mv$(this.descriptor,12,e.timeFinished),O(e.priority,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeIntElement_ptg7oe$(this.descriptor,13,e.priority),O(e.overrideEntry,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeBooleanElement_qh7jdn$(this.descriptor,14,e.overrideEntry),O(e.scrapeRun,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,15,ipt(),e.scrapeRun),n.endStructure_24f42q$(this.descriptor)},Vdt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$=0,E=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=E.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=E.decodeIntElement_szpzho$(this.descriptor,0),$|=1;break;case 1:i=E.decodeLongElement_szpzho$(this.descriptor,1),$|=2;break;case 2:o=E.decodeLongElement_szpzho$(this.descriptor,2),$|=4;break;case 3:r=E.decodeNullableSerializableElement_8viuyw$(this.descriptor,3,Ht.StringSerializer,r),$|=8;break;case 4:s=E.decodeNullableSerializableElement_8viuyw$(this.descriptor,4,Ht.StringSerializer,s),$|=16;break;case 5:a=E.decodeIntElement_szpzho$(this.descriptor,5),$|=32;break;case 6:c=E.decodeIntElement_szpzho$(this.descriptor,6),$|=64;break;case 7:l=E.decodeIntElement_szpzho$(this.descriptor,7),$|=128;break;case 8:u=E.decodeIntElement_szpzho$(this.descriptor,8),$|=256;break;case 9:h=E.decodeNullableSerializableElement_8viuyw$(this.descriptor,9,Ht.StringSerializer,h),$|=512;break;case 10:d=E.decodeLongElement_szpzho$(this.descriptor,10),$|=1024;break;case 11:p=E.decodeLongElement_szpzho$(this.descriptor,11),$|=2048;break;case 12:_=E.decodeLongElement_szpzho$(this.descriptor,12),$|=4096;break;case 13:m=E.decodeIntElement_szpzho$(this.descriptor,13),$|=8192;break;case 14:f=E.decodeBooleanElement_szpzho$(this.descriptor,14),$|=16384;break;case 15:g=E.decodeNullableSerializableElement_8viuyw$(this.descriptor,15,ipt(),g),$|=32768;break;case-1:break t;default:throw new Vt(e)}return E.endStructure_24f42q$(this.descriptor),Jdt($,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,null)},Vdt.prototype.childSerializers=function(){return[Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.BooleanSerializer,new Bt(ipt())]},Vdt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Kdt=null;function Xdt(){return null===Kdt&&new Vdt,Kdt}function Jdt(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g){var $=g||Object.create(Fdt.prototype);return($=qdt(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,$)).scrapeRun=0==(32768&t)?null:f,$}function Ydt(){tpt(),this.scrapeRunUid=0,this.scrapeType=null,this.scrapeRunStatus=0,this.conversionParams=null}function Qdt(){Zdt=this}Fdt.$metadata$={kind:c,simpleName:"ScrapeQueueItemWithScrapeRun",interfaces:[Udt]},Qdt.prototype.serializer=function(){return ipt()},Qdt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Zdt=null;function tpt(){return null===Zdt&&new Qdt,Zdt}function ept(){this.descriptor_4uf1oq$_0=new Wt("com.ustadmobile.lib.db.entities.ScrapeRun",this,4),this.descriptor.addElement_ivxn3r$("scrapeRunUid",!0),this.descriptor.addElement_ivxn3r$("scrapeType",!0),this.descriptor.addElement_ivxn3r$("scrapeRunStatus",!0),this.descriptor.addElement_ivxn3r$("conversionParams",!0),npt=this}Object.defineProperty(ept.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_4uf1oq$_0}}),ept.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.scrapeRunUid,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeIntElement_ptg7oe$(this.descriptor,0,e.scrapeRunUid),O(e.scrapeType,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.scrapeType),O(e.scrapeRunStatus,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeIntElement_ptg7oe$(this.descriptor,2,e.scrapeRunStatus),O(e.conversionParams,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,3,Ht.StringSerializer,e.conversionParams),n.endStructure_24f42q$(this.descriptor)},ept.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s=0,a=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=a.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=a.decodeIntElement_szpzho$(this.descriptor,0),s|=1;break;case 1:i=a.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),s|=2;break;case 2:o=a.decodeIntElement_szpzho$(this.descriptor,2),s|=4;break;case 3:r=a.decodeNullableSerializableElement_8viuyw$(this.descriptor,3,Ht.StringSerializer,r),s|=8;break;case-1:break t;default:throw new Vt(e)}return a.endStructure_24f42q$(this.descriptor),opt(s,n,i,o,r,null)},ept.prototype.childSerializers=function(){return[Ht.IntSerializer,new Bt(Ht.StringSerializer),Ht.IntSerializer,new Bt(Ht.StringSerializer)]},ept.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var npt=null;function ipt(){return null===npt&&new ept,npt}function opt(t,e,n,i,o,r){var s=r||Object.create(Ydt.prototype);return s.scrapeRunUid=0==(1&t)?0:e,s.scrapeType=0==(2&t)?null:n,s.scrapeRunStatus=0==(4&t)?0:i,s.conversionParams=0==(8&t)?null:o,s}function rpt(){cpt(),this.siteUid=X,this.sitePcsn=X,this.siteLcsn=X,this.siteLcb=0,this.siteLct=X,this.siteName=null,this.guestLogin=!0,this.registrationAllowed=!0,this.authSalt=null}function spt(){apt=this}Ydt.$metadata$={kind:c,simpleName:"ScrapeRun",interfaces:[]},spt.prototype.serializer=function(){return hpt()},spt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var apt=null;function cpt(){return null===apt&&new spt,apt}function lpt(){this.descriptor_l8ly7i$_0=new Wt("com.ustadmobile.lib.db.entities.Site",this,9),this.descriptor.addElement_ivxn3r$("siteUid",!0),this.descriptor.addElement_ivxn3r$("sitePcsn",!0),this.descriptor.addElement_ivxn3r$("siteLcsn",!0),this.descriptor.addElement_ivxn3r$("siteLcb",!0),this.descriptor.addElement_ivxn3r$("siteLct",!0),this.descriptor.addElement_ivxn3r$("siteName",!0),this.descriptor.addElement_ivxn3r$("guestLogin",!0),this.descriptor.addElement_ivxn3r$("registrationAllowed",!0),this.descriptor.addElement_ivxn3r$("authSalt",!0),upt=this}Object.defineProperty(lpt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_l8ly7i$_0}}),lpt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.siteUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.siteUid),O(e.sitePcsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.sitePcsn),O(e.siteLcsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.siteLcsn),O(e.siteLcb,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeIntElement_ptg7oe$(this.descriptor,3,e.siteLcb),O(e.siteLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.siteLct),O(e.siteName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,5,Ht.StringSerializer,e.siteName),O(e.guestLogin,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeBooleanElement_qh7jdn$(this.descriptor,6,e.guestLogin),O(e.registrationAllowed,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeBooleanElement_qh7jdn$(this.descriptor,7,e.registrationAllowed),O(e.authSalt,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,8,Ht.StringSerializer,e.authSalt),n.endStructure_24f42q$(this.descriptor)},lpt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h=0,d=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=d.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=d.decodeLongElement_szpzho$(this.descriptor,0),h|=1;break;case 1:i=d.decodeLongElement_szpzho$(this.descriptor,1),h|=2;break;case 2:o=d.decodeLongElement_szpzho$(this.descriptor,2),h|=4;break;case 3:r=d.decodeIntElement_szpzho$(this.descriptor,3),h|=8;break;case 4:s=d.decodeLongElement_szpzho$(this.descriptor,4),h|=16;break;case 5:a=d.decodeNullableSerializableElement_8viuyw$(this.descriptor,5,Ht.StringSerializer,a),h|=32;break;case 6:c=d.decodeBooleanElement_szpzho$(this.descriptor,6),h|=64;break;case 7:l=d.decodeBooleanElement_szpzho$(this.descriptor,7),h|=128;break;case 8:u=d.decodeNullableSerializableElement_8viuyw$(this.descriptor,8,Ht.StringSerializer,u),h|=256;break;case-1:break t;default:throw new Vt(e)}return d.endStructure_24f42q$(this.descriptor),dpt(h,n,i,o,r,s,a,c,l,u,null)},lpt.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.BooleanSerializer,Ht.BooleanSerializer,new Bt(Ht.StringSerializer)]},lpt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var upt=null;function hpt(){return null===upt&&new lpt,upt}function dpt(t,e,n,i,o,r,s,a,c,l,u){var h=u||Object.create(rpt.prototype);return h.siteUid=0==(1&t)?X:e,h.sitePcsn=0==(2&t)?X:n,h.siteLcsn=0==(4&t)?X:i,h.siteLcb=0==(8&t)?0:o,h.siteLct=0==(16&t)?X:r,h.siteName=0==(32&t)?null:s,h.guestLogin=0==(64&t)||a,h.registrationAllowed=0==(128&t)||c,h.authSalt=0==(256&t)?null:l,h}function ppt(){fpt(),this.sTermsUid=X,this.termsHtml=null,this.sTermsLang=null,this.sTermsLangUid=X,this.sTermsActive=!0,this.sTermsLastChangedBy=0,this.sTermsPrimaryCsn=X,this.sTermsLocalCsn=X,this.sTermsLct=X}function _pt(){mpt=this,this.TABLE_ID=272}rpt.$metadata$={kind:c,simpleName:"Site",interfaces:[]},_pt.prototype.serializer=function(){return Ept()},_pt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var mpt=null;function fpt(){return null===mpt&&new _pt,mpt}function gpt(){this.descriptor_x7z7jz$_0=new Wt("com.ustadmobile.lib.db.entities.SiteTerms",this,9),this.descriptor.addElement_ivxn3r$("sTermsUid",!0),this.descriptor.addElement_ivxn3r$("termsHtml",!0),this.descriptor.addElement_ivxn3r$("sTermsLang",!0),this.descriptor.addElement_ivxn3r$("sTermsLangUid",!0),this.descriptor.addElement_ivxn3r$("sTermsActive",!0),this.descriptor.addElement_ivxn3r$("sTermsLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("sTermsPrimaryCsn",!0),this.descriptor.addElement_ivxn3r$("sTermsLocalCsn",!0),this.descriptor.addElement_ivxn3r$("sTermsLct",!0),$pt=this}Object.defineProperty(gpt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_x7z7jz$_0}}),gpt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.sTermsUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.sTermsUid),O(e.termsHtml,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.termsHtml),O(e.sTermsLang,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.sTermsLang),O(e.sTermsLangUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.sTermsLangUid),O(e.sTermsActive,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeBooleanElement_qh7jdn$(this.descriptor,4,e.sTermsActive),O(e.sTermsLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeIntElement_ptg7oe$(this.descriptor,5,e.sTermsLastChangedBy),O(e.sTermsPrimaryCsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.sTermsPrimaryCsn),O(e.sTermsLocalCsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.sTermsLocalCsn),O(e.sTermsLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.sTermsLct),n.endStructure_24f42q$(this.descriptor)},gpt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h=0,d=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=d.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=d.decodeLongElement_szpzho$(this.descriptor,0),h|=1;break;case 1:i=d.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),h|=2;break;case 2:o=d.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),h|=4;break;case 3:r=d.decodeLongElement_szpzho$(this.descriptor,3),h|=8;break;case 4:s=d.decodeBooleanElement_szpzho$(this.descriptor,4),h|=16;break;case 5:a=d.decodeIntElement_szpzho$(this.descriptor,5),h|=32;break;case 6:c=d.decodeLongElement_szpzho$(this.descriptor,6),h|=64;break;case 7:l=d.decodeLongElement_szpzho$(this.descriptor,7),h|=128;break;case 8:u=d.decodeLongElement_szpzho$(this.descriptor,8),h|=256;break;case-1:break t;default:throw new Vt(e)}return d.endStructure_24f42q$(this.descriptor),ypt(h,n,i,o,r,s,a,c,l,u,null)},gpt.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.BooleanSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer]},gpt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var $pt=null;function Ept(){return null===$pt&&new gpt,$pt}function ypt(t,e,n,i,o,r,s,a,c,l,u){var h=u||Object.create(ppt.prototype);return h.sTermsUid=0==(1&t)?X:e,h.termsHtml=0==(2&t)?null:n,h.sTermsLang=0==(4&t)?null:i,h.sTermsLangUid=0==(8&t)?X:o,h.sTermsActive=0==(16&t)||r,h.sTermsLastChangedBy=0==(32&t)?0:s,h.sTermsPrimaryCsn=0==(64&t)?X:a,h.sTermsLocalCsn=0==(128&t)?X:c,h.sTermsLct=0==(256&t)?X:l,h}function bpt(){Cpt(),ppt.call(this),this.stLanguage=null}function Spt(){vpt=this}ppt.$metadata$={kind:c,simpleName:"SiteTerms",interfaces:[]},Spt.prototype.serializer=function(){return Lpt()},Spt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var vpt=null;function Cpt(){return null===vpt&&new Spt,vpt}function Npt(){this.descriptor_42vesj$_0=new Wt("com.ustadmobile.lib.db.entities.SiteTermsWithLanguage",this,10),this.descriptor.addElement_ivxn3r$("sTermsUid",!0),this.descriptor.addElement_ivxn3r$("termsHtml",!0),this.descriptor.addElement_ivxn3r$("sTermsLang",!0),this.descriptor.addElement_ivxn3r$("sTermsLangUid",!0),this.descriptor.addElement_ivxn3r$("sTermsActive",!0),this.descriptor.addElement_ivxn3r$("sTermsLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("sTermsPrimaryCsn",!0),this.descriptor.addElement_ivxn3r$("sTermsLocalCsn",!0),this.descriptor.addElement_ivxn3r$("sTermsLct",!0),this.descriptor.addElement_ivxn3r$("stLanguage",!0),Tpt=this}Object.defineProperty(Npt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_42vesj$_0}}),Npt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.sTermsUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.sTermsUid),O(e.termsHtml,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.termsHtml),O(e.sTermsLang,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.sTermsLang),O(e.sTermsLangUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.sTermsLangUid),O(e.sTermsActive,!0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeBooleanElement_qh7jdn$(this.descriptor,4,e.sTermsActive),O(e.sTermsLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeIntElement_ptg7oe$(this.descriptor,5,e.sTermsLastChangedBy),O(e.sTermsPrimaryCsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.sTermsPrimaryCsn),O(e.sTermsLocalCsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.sTermsLocalCsn),O(e.sTermsLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.sTermsLct),O(e.stLanguage,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,9,Wst(),e.stLanguage),n.endStructure_24f42q$(this.descriptor)},Npt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d=0,p=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=p.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=p.decodeLongElement_szpzho$(this.descriptor,0),d|=1;break;case 1:i=p.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),d|=2;break;case 2:o=p.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),d|=4;break;case 3:r=p.decodeLongElement_szpzho$(this.descriptor,3),d|=8;break;case 4:s=p.decodeBooleanElement_szpzho$(this.descriptor,4),d|=16;break;case 5:a=p.decodeIntElement_szpzho$(this.descriptor,5),d|=32;break;case 6:c=p.decodeLongElement_szpzho$(this.descriptor,6),d|=64;break;case 7:l=p.decodeLongElement_szpzho$(this.descriptor,7),d|=128;break;case 8:u=p.decodeLongElement_szpzho$(this.descriptor,8),d|=256;break;case 9:h=p.decodeNullableSerializableElement_8viuyw$(this.descriptor,9,Wst(),h),d|=512;break;case-1:break t;default:throw new Vt(e)}return p.endStructure_24f42q$(this.descriptor),zpt(d,n,i,o,r,s,a,c,l,u,h,null)},Npt.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.BooleanSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,new Bt(Wst())]},Npt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Tpt=null;function Lpt(){return null===Tpt&&new Npt,Tpt}function zpt(t,e,n,i,o,r,s,a,c,l,u,h){var d=h||Object.create(bpt.prototype);return(d=ypt(t,e,n,i,o,r,s,a,c,l,d)).stLanguage=0==(512&t)?null:u,d}function wpt(){Apt(),this.stateContentUid=X,this.stateContentStateUid=X,this.stateContentKey=null,this.stateContentValue=null,this.isIsactive=!1,this.stateContentMasterChangeSeqNum=X,this.stateContentLocalChangeSeqNum=X,this.stateContentLastChangedBy=0,this.stateContentLct=X}function Opt(){Rpt=this,this.TABLE_ID=72}bpt.$metadata$={kind:c,simpleName:"SiteTermsWithLanguage",interfaces:[ppt]},wpt.prototype.equals=function(t){var n,i;if(this===t)return!0;if(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))return!1;var o=null==(i=t)||e.isType(i,wpt)?i:Jt();return!!O(this.stateContentUid,oe(o).stateContentUid)&&!!O(this.stateContentStateUid,o.stateContentStateUid)&&this.isIsactive===o.isIsactive&&!!O(this.stateContentKey,o.stateContentKey)&&O(this.stateContentValue,o.stateContentValue)},wpt.prototype.hashCode=function(){var t=this.stateContentUid.xor(this.stateContentUid.shiftRightUnsigned(32)).toInt();return t=(31*(t=(31*(t=(31*(t=(31*t|0)+this.stateContentStateUid.xor(this.stateContentStateUid.shiftRightUnsigned(32)).toInt()|0)|0)+(null!=this.stateContentKey?Yt(oe(this.stateContentKey)):0)|0)|0)+(null!=this.stateContentValue?Yt(oe(this.stateContentValue)):0)|0)|0)+(this.isIsactive?1:0)|0},Opt.prototype.serializer=function(){return Upt()},Opt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Rpt=null;function Apt(){return null===Rpt&&new Opt,Rpt}function xpt(){this.descriptor_xwmc1i$_0=new Wt("com.ustadmobile.lib.db.entities.StateContentEntity",this,9),this.descriptor.addElement_ivxn3r$("stateContentUid",!0),this.descriptor.addElement_ivxn3r$("stateContentStateUid",!0),this.descriptor.addElement_ivxn3r$("stateContentKey",!0),this.descriptor.addElement_ivxn3r$("stateContentValue",!0),this.descriptor.addElement_ivxn3r$("isIsactive",!0),this.descriptor.addElement_ivxn3r$("stateContentMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("stateContentLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("stateContentLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("stateContentLct",!0),Ipt=this}Object.defineProperty(xpt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_xwmc1i$_0}}),xpt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.stateContentUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.stateContentUid),O(e.stateContentStateUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.stateContentStateUid),O(e.stateContentKey,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.stateContentKey),O(e.stateContentValue,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,3,Ht.StringSerializer,e.stateContentValue),O(e.isIsactive,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeBooleanElement_qh7jdn$(this.descriptor,4,e.isIsactive),O(e.stateContentMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.stateContentMasterChangeSeqNum),O(e.stateContentLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.stateContentLocalChangeSeqNum),O(e.stateContentLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeIntElement_ptg7oe$(this.descriptor,7,e.stateContentLastChangedBy),O(e.stateContentLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.stateContentLct),n.endStructure_24f42q$(this.descriptor)},xpt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h=0,d=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=d.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=d.decodeLongElement_szpzho$(this.descriptor,0),h|=1;break;case 1:i=d.decodeLongElement_szpzho$(this.descriptor,1),h|=2;break;case 2:o=d.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),h|=4;break;case 3:r=d.decodeNullableSerializableElement_8viuyw$(this.descriptor,3,Ht.StringSerializer,r),h|=8;break;case 4:s=d.decodeBooleanElement_szpzho$(this.descriptor,4),h|=16;break;case 5:a=d.decodeLongElement_szpzho$(this.descriptor,5),h|=32;break;case 6:c=d.decodeLongElement_szpzho$(this.descriptor,6),h|=64;break;case 7:l=d.decodeIntElement_szpzho$(this.descriptor,7),h|=128;break;case 8:u=d.decodeLongElement_szpzho$(this.descriptor,8),h|=256;break;case-1:break t;default:throw new Vt(e)}return d.endStructure_24f42q$(this.descriptor),Dpt(h,n,i,o,r,s,a,c,l,u,null)},xpt.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.BooleanSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer]},xpt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Ipt=null;function Upt(){return null===Ipt&&new xpt,Ipt}function Dpt(t,e,n,i,o,r,s,a,c,l,u){var h=u||Object.create(wpt.prototype);return h.stateContentUid=0==(1&t)?X:e,h.stateContentStateUid=0==(2&t)?X:n,h.stateContentKey=0==(4&t)?null:i,h.stateContentValue=0==(8&t)?null:o,h.isIsactive=0!=(16&t)&&r,h.stateContentMasterChangeSeqNum=0==(32&t)?X:s,h.stateContentLocalChangeSeqNum=0==(64&t)?X:a,h.stateContentLastChangedBy=0==(128&t)?0:c,h.stateContentLct=0==(256&t)?X:l,h}function Ppt(t){return t=t||Object.create(wpt.prototype),wpt.call(t),t}function Mpt(){Gpt(),this.stateUid=X,this.stateId=null,this.agentUid=X,this.activityId=null,this.registration=null,this.isIsactive=!1,this.timestamp=X,this.stateMasterChangeSeqNum=X,this.stateLocalChangeSeqNum=X,this.stateLastChangedBy=0,this.stateLct=X}function kpt(){jpt=this,this.TABLE_ID=70}wpt.$metadata$={kind:c,simpleName:"StateContentEntity",interfaces:[]},Mpt.prototype.equals=function(t){var n,i;if(this===t)return!0;if(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))return!1;var o=null==(i=t)||e.isType(i,Mpt)?i:Jt();return!!O(this.stateUid,oe(o).stateUid)&&!!O(this.agentUid,o.agentUid)&&this.isIsactive===o.isIsactive&&!!O(this.stateId,o.stateId)&&!!O(this.activityId,o.activityId)&&O(this.registration,o.registration)},Mpt.prototype.hashCode=function(){var t=this.stateUid.xor(this.stateUid.shiftRightUnsigned(32)).toInt();return t=(31*(t=(31*(t=(31*(t=(31*(t=(31*t|0)+(null!=this.stateId?Yt(oe(this.stateId)):0)|0)|0)+this.agentUid.xor(this.agentUid.shiftRightUnsigned(32)).toInt()|0)|0)+(null!=this.activityId?Yt(oe(this.activityId)):0)|0)|0)+(null!=this.registration?Yt(oe(this.registration)):0)|0)|0)+(this.isIsactive?1:0)|0},kpt.prototype.serializer=function(){return Bpt()},kpt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var jpt=null;function Gpt(){return null===jpt&&new kpt,jpt}function qpt(){this.descriptor_2jcb83$_0=new Wt("com.ustadmobile.lib.db.entities.StateEntity",this,11),this.descriptor.addElement_ivxn3r$("stateUid",!0),this.descriptor.addElement_ivxn3r$("stateId",!0),this.descriptor.addElement_ivxn3r$("agentUid",!0),this.descriptor.addElement_ivxn3r$("activityId",!0),this.descriptor.addElement_ivxn3r$("registration",!0),this.descriptor.addElement_ivxn3r$("isIsactive",!0),this.descriptor.addElement_ivxn3r$("timestamp",!0),this.descriptor.addElement_ivxn3r$("stateMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("stateLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("stateLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("stateLct",!0),Fpt=this}Object.defineProperty(qpt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_2jcb83$_0}}),qpt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.stateUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.stateUid),O(e.stateId,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.stateId),O(e.agentUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.agentUid),O(e.activityId,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,3,Ht.StringSerializer,e.activityId),O(e.registration,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,4,Ht.StringSerializer,e.registration),O(e.isIsactive,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeBooleanElement_qh7jdn$(this.descriptor,5,e.isIsactive),O(e.timestamp,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.timestamp),O(e.stateMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.stateMasterChangeSeqNum),O(e.stateLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.stateLocalChangeSeqNum),O(e.stateLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeIntElement_ptg7oe$(this.descriptor,9,e.stateLastChangedBy),O(e.stateLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeLongElement_j0o2mv$(this.descriptor,10,e.stateLct),n.endStructure_24f42q$(this.descriptor)},qpt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p=0,_=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=_.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=_.decodeLongElement_szpzho$(this.descriptor,0),p|=1;break;case 1:i=_.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),p|=2;break;case 2:o=_.decodeLongElement_szpzho$(this.descriptor,2),p|=4;break;case 3:r=_.decodeNullableSerializableElement_8viuyw$(this.descriptor,3,Ht.StringSerializer,r),p|=8;break;case 4:s=_.decodeNullableSerializableElement_8viuyw$(this.descriptor,4,Ht.StringSerializer,s),p|=16;break;case 5:a=_.decodeBooleanElement_szpzho$(this.descriptor,5),p|=32;break;case 6:c=_.decodeLongElement_szpzho$(this.descriptor,6),p|=64;break;case 7:l=_.decodeLongElement_szpzho$(this.descriptor,7),p|=128;break;case 8:u=_.decodeLongElement_szpzho$(this.descriptor,8),p|=256;break;case 9:h=_.decodeIntElement_szpzho$(this.descriptor,9),p|=512;break;case 10:d=_.decodeLongElement_szpzho$(this.descriptor,10),p|=1024;break;case-1:break t;default:throw new Vt(e)}return _.endStructure_24f42q$(this.descriptor),Wpt(p,n,i,o,r,s,a,c,l,u,h,d,null)},qpt.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.BooleanSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer]},qpt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Fpt=null;function Bpt(){return null===Fpt&&new qpt,Fpt}function Wpt(t,e,n,i,o,r,s,a,c,l,u,h,d){var p=d||Object.create(Mpt.prototype);return p.stateUid=0==(1&t)?X:e,p.stateId=0==(2&t)?null:n,p.agentUid=0==(4&t)?X:i,p.activityId=0==(8&t)?null:o,p.registration=0==(16&t)?null:r,p.isIsactive=0!=(32&t)&&s,p.timestamp=0==(64&t)?X:a,p.stateMasterChangeSeqNum=0==(128&t)?X:c,p.stateLocalChangeSeqNum=0==(256&t)?X:l,p.stateLastChangedBy=0==(512&t)?0:u,p.stateLct=0==(1024&t)?X:h,p}function Hpt(){Xpt(),this.statementUid=X,this.statementId=null,this.statementPersonUid=X,this.statementVerbUid=X,this.xObjectUid=X,this.subStatementActorUid=X,this.substatementVerbUid=X,this.subStatementObjectUid=X,this.agentUid=X,this.instructorUid=X,this.authorityUid=X,this.teamUid=X,this.resultCompletion=!1,this.resultSuccess=Xpt().RESULT_UNSET,this.resultScoreScaled=0,this.resultScoreRaw=X,this.resultScoreMin=X,this.resultScoreMax=X,this.resultDuration=X,this.resultResponse=null,this.timestamp=X,this.stored=X,this.contextRegistration=null,this.contextPlatform=null,this.contextStatementId=null,this.fullStatement=null,this.statementMasterChangeSeqNum=X,this.statementLocalChangeSeqNum=X,this.statementLastChangedBy=0,this.statementLct=X,this.extensionProgress=0,this.contentEntryRoot=!1,this.statementContentEntryUid=X,this.statementLearnerGroupUid=X,this.statementClazzUid=X}function Vpt(){Kpt=this,this.TABLE_ID=60,this.RESULT_UNSET=Cn(0),this.RESULT_SUCCESS=Cn(2),this.RESULT_FAILURE=Cn(1),this.CONTENT_COMPLETE=100,this.CONTENT_INCOMPLETE=101,this.CONTENT_PASSED=102,this.CONTENT_FAILED=103,this.FROM_STATEMENT_TO_SCOPEDGRANT_JOIN_ON_CLAUSE="\n ((ScopedGrant.sgTableId = -2\n AND ScopedGrant.sgEntityUid = -2)\n OR (ScopedGrant.sgTableId = 9\n AND ScopedGrant.sgEntityUid = StatementEntity.statementPersonUid)\n OR (ScopedGrant.sgTableId = 6\n AND ScopedGrant.sgEntityUid = StatementEntity.statementClazzUid)\n OR (ScopedGrant.sgTableId = 164\n AND ScopedGrant.sgEntityUid = (\n SELECT clazzSchoolUid\n FROM Clazz\n WHERE clazzUid = StatementEntity.statementClazzUid))\n )\n ",this.FROM_SCOPEDGRANT_TO_STATEMENT_JOIN_ON_CLAUSE="\n ((ScopedGrant.sgTableId = -2\n AND ScopedGrant.sgEntityUid = -2)\n OR (ScopedGrant.sgTableId = 9\n AND ScopedGrant.sgEntityUid = StatementEntity.statementPersonUid)\n OR (ScopedGrant.sgTableId = 6\n AND ScopedGrant.sgEntityUid = StatementEntity.statementClazzUid)\n OR (ScopedGrant.sgTableId = 164\n AND ScopedGrant.sgEntityUid = (\n SELECT clazzSchoolUid\n FROM Clazz \n WHERE clazzUid = StatementEntity.statementClazzUid))\n ) \n "}Mpt.$metadata$={kind:c,simpleName:"StateEntity",interfaces:[]},Vpt.prototype.serializer=function(){return Qpt()},Vpt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var Kpt=null;function Xpt(){return null===Kpt&&new Vpt,Kpt}function Jpt(){this.descriptor_gako9b$_0=new Wt("com.ustadmobile.lib.db.entities.StatementEntity",this,35),this.descriptor.addElement_ivxn3r$("statementUid",!0),this.descriptor.addElement_ivxn3r$("statementId",!0),this.descriptor.addElement_ivxn3r$("statementPersonUid",!0),this.descriptor.addElement_ivxn3r$("statementVerbUid",!0),this.descriptor.addElement_ivxn3r$("xObjectUid",!0),this.descriptor.addElement_ivxn3r$("subStatementActorUid",!0),this.descriptor.addElement_ivxn3r$("substatementVerbUid",!0),this.descriptor.addElement_ivxn3r$("subStatementObjectUid",!0),this.descriptor.addElement_ivxn3r$("agentUid",!0),this.descriptor.addElement_ivxn3r$("instructorUid",!0),this.descriptor.addElement_ivxn3r$("authorityUid",!0),this.descriptor.addElement_ivxn3r$("teamUid",!0),this.descriptor.addElement_ivxn3r$("resultCompletion",!0),this.descriptor.addElement_ivxn3r$("resultSuccess",!0),this.descriptor.addElement_ivxn3r$("resultScoreScaled",!0),this.descriptor.addElement_ivxn3r$("resultScoreRaw",!0),this.descriptor.addElement_ivxn3r$("resultScoreMin",!0),this.descriptor.addElement_ivxn3r$("resultScoreMax",!0),this.descriptor.addElement_ivxn3r$("resultDuration",!0),this.descriptor.addElement_ivxn3r$("resultResponse",!0),this.descriptor.addElement_ivxn3r$("timestamp",!0),this.descriptor.addElement_ivxn3r$("stored",!0),this.descriptor.addElement_ivxn3r$("contextRegistration",!0),this.descriptor.addElement_ivxn3r$("contextPlatform",!0),this.descriptor.addElement_ivxn3r$("contextStatementId",!0),this.descriptor.addElement_ivxn3r$("fullStatement",!0),this.descriptor.addElement_ivxn3r$("statementMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("statementLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("statementLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("statementLct",!0),this.descriptor.addElement_ivxn3r$("extensionProgress",!0),this.descriptor.addElement_ivxn3r$("contentEntryRoot",!0),this.descriptor.addElement_ivxn3r$("statementContentEntryUid",!0),this.descriptor.addElement_ivxn3r$("statementLearnerGroupUid",!0),this.descriptor.addElement_ivxn3r$("statementClazzUid",!0),Ypt=this}Object.defineProperty(Jpt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_gako9b$_0}}),Jpt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.statementUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.statementUid),O(e.statementId,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.statementId),O(e.statementPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.statementPersonUid),O(e.statementVerbUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.statementVerbUid),O(e.xObjectUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.xObjectUid),O(e.subStatementActorUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.subStatementActorUid),O(e.substatementVerbUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.substatementVerbUid),O(e.subStatementObjectUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.subStatementObjectUid),O(e.agentUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.agentUid),O(e.instructorUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeLongElement_j0o2mv$(this.descriptor,9,e.instructorUid),O(e.authorityUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeLongElement_j0o2mv$(this.descriptor,10,e.authorityUid),O(e.teamUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeLongElement_j0o2mv$(this.descriptor,11,e.teamUid),O(e.resultCompletion,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeBooleanElement_qh7jdn$(this.descriptor,12,e.resultCompletion),O(e.resultSuccess,Xpt().RESULT_UNSET)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeByteElement_j0u8y3$(this.descriptor,13,e.resultSuccess),O(e.resultScoreScaled,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeFloatElement_lf6hpt$(this.descriptor,14,e.resultScoreScaled),O(e.resultScoreRaw,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeLongElement_j0o2mv$(this.descriptor,15,e.resultScoreRaw),O(e.resultScoreMin,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,16)||n.encodeLongElement_j0o2mv$(this.descriptor,16,e.resultScoreMin),O(e.resultScoreMax,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,17)||n.encodeLongElement_j0o2mv$(this.descriptor,17,e.resultScoreMax),O(e.resultDuration,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,18)||n.encodeLongElement_j0o2mv$(this.descriptor,18,e.resultDuration),O(e.resultResponse,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,19)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,19,Ht.StringSerializer,e.resultResponse),O(e.timestamp,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,20)||n.encodeLongElement_j0o2mv$(this.descriptor,20,e.timestamp),O(e.stored,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,21)||n.encodeLongElement_j0o2mv$(this.descriptor,21,e.stored),O(e.contextRegistration,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,22)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,22,Ht.StringSerializer,e.contextRegistration),O(e.contextPlatform,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,23)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,23,Ht.StringSerializer,e.contextPlatform),O(e.contextStatementId,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,24)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,24,Ht.StringSerializer,e.contextStatementId),O(e.fullStatement,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,25)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,25,Ht.StringSerializer,e.fullStatement),O(e.statementMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,26)||n.encodeLongElement_j0o2mv$(this.descriptor,26,e.statementMasterChangeSeqNum),O(e.statementLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,27)||n.encodeLongElement_j0o2mv$(this.descriptor,27,e.statementLocalChangeSeqNum),O(e.statementLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,28)||n.encodeIntElement_ptg7oe$(this.descriptor,28,e.statementLastChangedBy),O(e.statementLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,29)||n.encodeLongElement_j0o2mv$(this.descriptor,29,e.statementLct),O(e.extensionProgress,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,30)||n.encodeIntElement_ptg7oe$(this.descriptor,30,e.extensionProgress),O(e.contentEntryRoot,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,31)||n.encodeBooleanElement_qh7jdn$(this.descriptor,31,e.contentEntryRoot),O(e.statementContentEntryUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,32)||n.encodeLongElement_j0o2mv$(this.descriptor,32,e.statementContentEntryUid),O(e.statementLearnerGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,33)||n.encodeLongElement_j0o2mv$(this.descriptor,33,e.statementLearnerGroupUid),O(e.statementClazzUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,34)||n.encodeLongElement_j0o2mv$(this.descriptor,34,e.statementClazzUid),n.endStructure_24f42q$(this.descriptor)},Jpt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w,O,R,A,x,I,U,D,P=0,M=0,k=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=k.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=k.decodeLongElement_szpzho$(this.descriptor,0),P|=1;break;case 1:i=k.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),P|=2;break;case 2:o=k.decodeLongElement_szpzho$(this.descriptor,2),P|=4;break;case 3:r=k.decodeLongElement_szpzho$(this.descriptor,3),P|=8;break;case 4:s=k.decodeLongElement_szpzho$(this.descriptor,4),P|=16;break;case 5:a=k.decodeLongElement_szpzho$(this.descriptor,5),P|=32;break;case 6:c=k.decodeLongElement_szpzho$(this.descriptor,6),P|=64;break;case 7:l=k.decodeLongElement_szpzho$(this.descriptor,7),P|=128;break;case 8:u=k.decodeLongElement_szpzho$(this.descriptor,8),P|=256;break;case 9:h=k.decodeLongElement_szpzho$(this.descriptor,9),P|=512;break;case 10:d=k.decodeLongElement_szpzho$(this.descriptor,10),P|=1024;break;case 11:p=k.decodeLongElement_szpzho$(this.descriptor,11),P|=2048;break;case 12:_=k.decodeBooleanElement_szpzho$(this.descriptor,12),P|=4096;break;case 13:m=k.decodeByteElement_szpzho$(this.descriptor,13),P|=8192;break;case 14:f=k.decodeFloatElement_szpzho$(this.descriptor,14),P|=16384;break;case 15:g=k.decodeLongElement_szpzho$(this.descriptor,15),P|=32768;break;case 16:$=k.decodeLongElement_szpzho$(this.descriptor,16),P|=65536;break;case 17:E=k.decodeLongElement_szpzho$(this.descriptor,17),P|=131072;break;case 18:y=k.decodeLongElement_szpzho$(this.descriptor,18),P|=262144;break;case 19:b=k.decodeNullableSerializableElement_8viuyw$(this.descriptor,19,Ht.StringSerializer,b),P|=524288;break;case 20:S=k.decodeLongElement_szpzho$(this.descriptor,20),P|=1048576;break;case 21:v=k.decodeLongElement_szpzho$(this.descriptor,21),P|=2097152;break;case 22:C=k.decodeNullableSerializableElement_8viuyw$(this.descriptor,22,Ht.StringSerializer,C),P|=4194304;break;case 23:N=k.decodeNullableSerializableElement_8viuyw$(this.descriptor,23,Ht.StringSerializer,N),P|=8388608;break;case 24:T=k.decodeNullableSerializableElement_8viuyw$(this.descriptor,24,Ht.StringSerializer,T),P|=16777216;break;case 25:L=k.decodeNullableSerializableElement_8viuyw$(this.descriptor,25,Ht.StringSerializer,L),P|=33554432;break;case 26:z=k.decodeLongElement_szpzho$(this.descriptor,26),P|=67108864;break;case 27:w=k.decodeLongElement_szpzho$(this.descriptor,27),P|=134217728;break;case 28:O=k.decodeIntElement_szpzho$(this.descriptor,28),P|=268435456;break;case 29:R=k.decodeLongElement_szpzho$(this.descriptor,29),P|=536870912;break;case 30:A=k.decodeIntElement_szpzho$(this.descriptor,30),P|=1073741824;break;case 31:x=k.decodeBooleanElement_szpzho$(this.descriptor,31),P|=-2147483648;break;case 32:I=k.decodeLongElement_szpzho$(this.descriptor,32),M|=1;break;case 33:U=k.decodeLongElement_szpzho$(this.descriptor,33),M|=2;break;case 34:D=k.decodeLongElement_szpzho$(this.descriptor,34),M|=4;break;case-1:break t;default:throw new Vt(e)}return k.endStructure_24f42q$(this.descriptor),Zpt(P,M,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w,O,R,A,x,I,U,D,null)},Jpt.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.BooleanSerializer,Ht.ByteSerializer,Ht.FloatSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.BooleanSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer]},Jpt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Ypt=null;function Qpt(){return null===Ypt&&new Jpt,Ypt}function Zpt(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w,O,R,A,x,I,U,D,P){var M=P||Object.create(Hpt.prototype);return M.statementUid=0==(1&t)?X:n,M.statementId=0==(2&t)?null:i,M.statementPersonUid=0==(4&t)?X:o,M.statementVerbUid=0==(8&t)?X:r,M.xObjectUid=0==(16&t)?X:s,M.subStatementActorUid=0==(32&t)?X:a,M.substatementVerbUid=0==(64&t)?X:c,M.subStatementObjectUid=0==(128&t)?X:l,M.agentUid=0==(256&t)?X:u,M.instructorUid=0==(512&t)?X:h,M.authorityUid=0==(1024&t)?X:d,M.teamUid=0==(2048&t)?X:p,M.resultCompletion=0!=(4096&t)&&_,M.resultSuccess=0==(8192&t)?Xpt().RESULT_UNSET:m,M.resultScoreScaled=0==(16384&t)?0:f,M.resultScoreRaw=0==(32768&t)?X:g,M.resultScoreMin=0==(65536&t)?X:$,M.resultScoreMax=0==(131072&t)?X:E,M.resultDuration=0==(262144&t)?X:y,M.resultResponse=0==(524288&t)?null:b,M.timestamp=0==(1048576&t)?X:S,M.stored=0==(2097152&t)?X:v,M.contextRegistration=0==(4194304&t)?null:C,M.contextPlatform=0==(8388608&t)?null:N,M.contextStatementId=0==(16777216&t)?null:T,M.fullStatement=0==(33554432&t)?null:L,M.statementMasterChangeSeqNum=0==(67108864&t)?X:z,M.statementLocalChangeSeqNum=0==(134217728&t)?X:w,M.statementLastChangedBy=0==(268435456&t)?0:O,M.statementLct=0==(536870912&t)?X:R,M.extensionProgress=0==(1073741824&t)?0:A,M.contentEntryRoot=0!=(-2147483648&t)&&x,M.statementContentEntryUid=0==(1&e)?X:I,M.statementLearnerGroupUid=0==(2&e)?X:U,M.statementClazzUid=0==(4&e)?X:D,M}function t_t(){i_t(),Hpt.call(this),this.person=null,this.xlangMapEntry=null}function e_t(){n_t=this}Hpt.$metadata$={kind:c,simpleName:"StatementEntity",interfaces:[]},t_t.prototype.equals=function(t){var n;return this===t||!(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))&&(e.isType(t,t_t)||Jt(),!!O(this.person,t.person)&&!!O(this.xlangMapEntry,t.xlangMapEntry))},t_t.prototype.hashCode=function(){var t,e,n,i,o=null!=(e=null!=(t=this.person)?t.hashCode():null)?e:0;return o=(31*o|0)+(null!=(i=null!=(n=this.xlangMapEntry)?n.hashCode():null)?i:0)|0},e_t.prototype.serializer=function(){return s_t()},e_t.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var n_t=null;function i_t(){return null===n_t&&new e_t,n_t}function o_t(){this.descriptor_vky815$_0=new Wt("com.ustadmobile.lib.db.entities.StatementEntityWithDisplayDetails",this,37),this.descriptor.addElement_ivxn3r$("statementUid",!0),this.descriptor.addElement_ivxn3r$("statementId",!0),this.descriptor.addElement_ivxn3r$("statementPersonUid",!0),this.descriptor.addElement_ivxn3r$("statementVerbUid",!0),this.descriptor.addElement_ivxn3r$("xObjectUid",!0),this.descriptor.addElement_ivxn3r$("subStatementActorUid",!0),this.descriptor.addElement_ivxn3r$("substatementVerbUid",!0),this.descriptor.addElement_ivxn3r$("subStatementObjectUid",!0),this.descriptor.addElement_ivxn3r$("agentUid",!0),this.descriptor.addElement_ivxn3r$("instructorUid",!0),this.descriptor.addElement_ivxn3r$("authorityUid",!0),this.descriptor.addElement_ivxn3r$("teamUid",!0),this.descriptor.addElement_ivxn3r$("resultCompletion",!0),this.descriptor.addElement_ivxn3r$("resultSuccess",!0),this.descriptor.addElement_ivxn3r$("resultScoreScaled",!0),this.descriptor.addElement_ivxn3r$("resultScoreRaw",!0),this.descriptor.addElement_ivxn3r$("resultScoreMin",!0),this.descriptor.addElement_ivxn3r$("resultScoreMax",!0),this.descriptor.addElement_ivxn3r$("resultDuration",!0),this.descriptor.addElement_ivxn3r$("resultResponse",!0),this.descriptor.addElement_ivxn3r$("timestamp",!0),this.descriptor.addElement_ivxn3r$("stored",!0),this.descriptor.addElement_ivxn3r$("contextRegistration",!0),this.descriptor.addElement_ivxn3r$("contextPlatform",!0),this.descriptor.addElement_ivxn3r$("contextStatementId",!0),this.descriptor.addElement_ivxn3r$("fullStatement",!0),this.descriptor.addElement_ivxn3r$("statementMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("statementLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("statementLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("statementLct",!0),this.descriptor.addElement_ivxn3r$("extensionProgress",!0),this.descriptor.addElement_ivxn3r$("contentEntryRoot",!0),this.descriptor.addElement_ivxn3r$("statementContentEntryUid",!0),this.descriptor.addElement_ivxn3r$("statementLearnerGroupUid",!0),this.descriptor.addElement_ivxn3r$("statementClazzUid",!0),this.descriptor.addElement_ivxn3r$("person",!0),this.descriptor.addElement_ivxn3r$("xlangMapEntry",!0),r_t=this}Object.defineProperty(o_t.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_vky815$_0}}),o_t.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.statementUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.statementUid),O(e.statementId,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.statementId),O(e.statementPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.statementPersonUid),O(e.statementVerbUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.statementVerbUid),O(e.xObjectUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.xObjectUid),O(e.subStatementActorUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.subStatementActorUid),O(e.substatementVerbUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.substatementVerbUid),O(e.subStatementObjectUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.subStatementObjectUid),O(e.agentUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.agentUid),O(e.instructorUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeLongElement_j0o2mv$(this.descriptor,9,e.instructorUid),O(e.authorityUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeLongElement_j0o2mv$(this.descriptor,10,e.authorityUid),O(e.teamUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeLongElement_j0o2mv$(this.descriptor,11,e.teamUid),O(e.resultCompletion,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeBooleanElement_qh7jdn$(this.descriptor,12,e.resultCompletion),O(e.resultSuccess,Xpt().RESULT_UNSET)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeByteElement_j0u8y3$(this.descriptor,13,e.resultSuccess),O(e.resultScoreScaled,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeFloatElement_lf6hpt$(this.descriptor,14,e.resultScoreScaled),O(e.resultScoreRaw,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeLongElement_j0o2mv$(this.descriptor,15,e.resultScoreRaw),O(e.resultScoreMin,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,16)||n.encodeLongElement_j0o2mv$(this.descriptor,16,e.resultScoreMin),O(e.resultScoreMax,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,17)||n.encodeLongElement_j0o2mv$(this.descriptor,17,e.resultScoreMax),O(e.resultDuration,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,18)||n.encodeLongElement_j0o2mv$(this.descriptor,18,e.resultDuration),O(e.resultResponse,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,19)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,19,Ht.StringSerializer,e.resultResponse),O(e.timestamp,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,20)||n.encodeLongElement_j0o2mv$(this.descriptor,20,e.timestamp),O(e.stored,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,21)||n.encodeLongElement_j0o2mv$(this.descriptor,21,e.stored),O(e.contextRegistration,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,22)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,22,Ht.StringSerializer,e.contextRegistration),O(e.contextPlatform,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,23)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,23,Ht.StringSerializer,e.contextPlatform),O(e.contextStatementId,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,24)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,24,Ht.StringSerializer,e.contextStatementId),O(e.fullStatement,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,25)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,25,Ht.StringSerializer,e.fullStatement),O(e.statementMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,26)||n.encodeLongElement_j0o2mv$(this.descriptor,26,e.statementMasterChangeSeqNum),O(e.statementLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,27)||n.encodeLongElement_j0o2mv$(this.descriptor,27,e.statementLocalChangeSeqNum),O(e.statementLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,28)||n.encodeIntElement_ptg7oe$(this.descriptor,28,e.statementLastChangedBy),O(e.statementLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,29)||n.encodeLongElement_j0o2mv$(this.descriptor,29,e.statementLct),O(e.extensionProgress,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,30)||n.encodeIntElement_ptg7oe$(this.descriptor,30,e.extensionProgress),O(e.contentEntryRoot,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,31)||n.encodeBooleanElement_qh7jdn$(this.descriptor,31,e.contentEntryRoot),O(e.statementContentEntryUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,32)||n.encodeLongElement_j0o2mv$(this.descriptor,32,e.statementContentEntryUid),O(e.statementLearnerGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,33)||n.encodeLongElement_j0o2mv$(this.descriptor,33,e.statementLearnerGroupUid),O(e.statementClazzUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,34)||n.encodeLongElement_j0o2mv$(this.descriptor,34,e.statementClazzUid),O(e.person,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,35)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,35,Ict(),e.person),O(e.xlangMapEntry,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,36)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,36,Nmt(),e.xlangMapEntry),n.endStructure_24f42q$(this.descriptor)},o_t.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w,O,R,A,x,I,U,D,P,M,k=0,j=0,G=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=G.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=G.decodeLongElement_szpzho$(this.descriptor,0),k|=1;break;case 1:i=G.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),k|=2;break;case 2:o=G.decodeLongElement_szpzho$(this.descriptor,2),k|=4;break;case 3:r=G.decodeLongElement_szpzho$(this.descriptor,3),k|=8;break;case 4:s=G.decodeLongElement_szpzho$(this.descriptor,4),k|=16;break;case 5:a=G.decodeLongElement_szpzho$(this.descriptor,5),k|=32;break;case 6:c=G.decodeLongElement_szpzho$(this.descriptor,6),k|=64;break;case 7:l=G.decodeLongElement_szpzho$(this.descriptor,7),k|=128;break;case 8:u=G.decodeLongElement_szpzho$(this.descriptor,8),k|=256;break;case 9:h=G.decodeLongElement_szpzho$(this.descriptor,9),k|=512;break;case 10:d=G.decodeLongElement_szpzho$(this.descriptor,10),k|=1024;break;case 11:p=G.decodeLongElement_szpzho$(this.descriptor,11),k|=2048;break;case 12:_=G.decodeBooleanElement_szpzho$(this.descriptor,12),k|=4096;break;case 13:m=G.decodeByteElement_szpzho$(this.descriptor,13),k|=8192;break;case 14:f=G.decodeFloatElement_szpzho$(this.descriptor,14),k|=16384;break;case 15:g=G.decodeLongElement_szpzho$(this.descriptor,15),k|=32768;break;case 16:$=G.decodeLongElement_szpzho$(this.descriptor,16),k|=65536;break;case 17:E=G.decodeLongElement_szpzho$(this.descriptor,17),k|=131072;break;case 18:y=G.decodeLongElement_szpzho$(this.descriptor,18),k|=262144;break;case 19:b=G.decodeNullableSerializableElement_8viuyw$(this.descriptor,19,Ht.StringSerializer,b),k|=524288;break;case 20:S=G.decodeLongElement_szpzho$(this.descriptor,20),k|=1048576;break;case 21:v=G.decodeLongElement_szpzho$(this.descriptor,21),k|=2097152;break;case 22:C=G.decodeNullableSerializableElement_8viuyw$(this.descriptor,22,Ht.StringSerializer,C),k|=4194304;break;case 23:N=G.decodeNullableSerializableElement_8viuyw$(this.descriptor,23,Ht.StringSerializer,N),k|=8388608;break;case 24:T=G.decodeNullableSerializableElement_8viuyw$(this.descriptor,24,Ht.StringSerializer,T),k|=16777216;break;case 25:L=G.decodeNullableSerializableElement_8viuyw$(this.descriptor,25,Ht.StringSerializer,L),k|=33554432;break;case 26:z=G.decodeLongElement_szpzho$(this.descriptor,26),k|=67108864;break;case 27:w=G.decodeLongElement_szpzho$(this.descriptor,27),k|=134217728;break;case 28:O=G.decodeIntElement_szpzho$(this.descriptor,28),k|=268435456;break;case 29:R=G.decodeLongElement_szpzho$(this.descriptor,29),k|=536870912;break;case 30:A=G.decodeIntElement_szpzho$(this.descriptor,30),k|=1073741824;break;case 31:x=G.decodeBooleanElement_szpzho$(this.descriptor,31),k|=-2147483648;break;case 32:I=G.decodeLongElement_szpzho$(this.descriptor,32),j|=1;break;case 33:U=G.decodeLongElement_szpzho$(this.descriptor,33),j|=2;break;case 34:D=G.decodeLongElement_szpzho$(this.descriptor,34),j|=4;break;case 35:P=G.decodeNullableSerializableElement_8viuyw$(this.descriptor,35,Ict(),P),j|=8;break;case 36:M=G.decodeNullableSerializableElement_8viuyw$(this.descriptor,36,Nmt(),M),j|=16;break;case-1:break t;default:throw new Vt(e)}return G.endStructure_24f42q$(this.descriptor),a_t(k,j,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w,O,R,A,x,I,U,D,P,M,null)},o_t.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.BooleanSerializer,Ht.ByteSerializer,Ht.FloatSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.BooleanSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,new Bt(Ict()),new Bt(Nmt())]},o_t.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var r_t=null;function s_t(){return null===r_t&&new o_t,r_t}function a_t(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w,O,R,A,x,I,U,D,P,M,k){var j=k||Object.create(t_t.prototype);return(j=Zpt(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w,O,R,A,x,I,U,D,j)).person=0==(8&e)?null:P,j.xlangMapEntry=0==(16&e)?null:M,j}function c_t(t,e,n){h_t(),void 0===t&&(t=0),void 0===e&&(e=""),void 0===n&&(n=""),this.yAxis=t,this.xAxis=e,this.subgroup=n}function l_t(){u_t=this}t_t.$metadata$={kind:c,simpleName:"StatementEntityWithDisplayDetails",interfaces:[Hpt]},l_t.prototype.serializer=function(){return __t()},l_t.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var u_t=null;function h_t(){return null===u_t&&new l_t,u_t}function d_t(){this.descriptor_1ykxcc$_0=new Wt("com.ustadmobile.lib.db.entities.StatementReportData",this,3),this.descriptor.addElement_ivxn3r$("yAxis",!0),this.descriptor.addElement_ivxn3r$("xAxis",!0),this.descriptor.addElement_ivxn3r$("subgroup",!0),p_t=this}Object.defineProperty(d_t.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_1ykxcc$_0}}),d_t.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.yAxis,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeFloatElement_lf6hpt$(this.descriptor,0,e.yAxis),O(e.xAxis,"")&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.xAxis),O(e.subgroup,"")&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.subgroup),n.endStructure_24f42q$(this.descriptor)},d_t.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r=0,s=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=s.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=s.decodeFloatElement_szpzho$(this.descriptor,0),r|=1;break;case 1:i=s.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),r|=2;break;case 2:o=s.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),r|=4;break;case-1:break t;default:throw new Vt(e)}return s.endStructure_24f42q$(this.descriptor),m_t(r,n,i,o,null)},d_t.prototype.childSerializers=function(){return[Ht.FloatSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer)]},d_t.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var p_t=null;function __t(){return null===p_t&&new d_t,p_t}function m_t(t,e,n,i,o){var r=o||Object.create(c_t.prototype);return r.yAxis=0==(1&t)?0:e,r.xAxis=0==(2&t)?"":n,r.subgroup=0==(4&t)?"":i,r}function f_t(){E_t(),Hpt.call(this),this.verb=null,this.verbDisplay=null,this.objectDisplay=null}function g_t(){$_t=this}c_t.$metadata$={kind:c,simpleName:"StatementReportData",interfaces:[]},c_t.prototype.component1=function(){return this.yAxis},c_t.prototype.component2=function(){return this.xAxis},c_t.prototype.component3=function(){return this.subgroup},c_t.prototype.copy_9c0xch$=function(t,e,n){return new c_t(void 0===t?this.yAxis:t,void 0===e?this.xAxis:e,void 0===n?this.subgroup:n)},c_t.prototype.toString=function(){return"StatementReportData(yAxis="+e.toString(this.yAxis)+", xAxis="+e.toString(this.xAxis)+", subgroup="+e.toString(this.subgroup)+")"},c_t.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*t+e.hashCode(this.yAxis)|0)+e.hashCode(this.xAxis)|0)+e.hashCode(this.subgroup)|0},c_t.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.yAxis,t.yAxis)&&e.equals(this.xAxis,t.xAxis)&&e.equals(this.subgroup,t.subgroup)},g_t.prototype.serializer=function(){return S_t()},g_t.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var $_t=null;function E_t(){return null===$_t&&new g_t,$_t}function y_t(){this.descriptor_axrcq7$_0=new Wt("com.ustadmobile.lib.db.entities.StatementWithSessionDetailDisplay",this,38),this.descriptor.addElement_ivxn3r$("statementUid",!0),this.descriptor.addElement_ivxn3r$("statementId",!0),this.descriptor.addElement_ivxn3r$("statementPersonUid",!0),this.descriptor.addElement_ivxn3r$("statementVerbUid",!0),this.descriptor.addElement_ivxn3r$("xObjectUid",!0),this.descriptor.addElement_ivxn3r$("subStatementActorUid",!0),this.descriptor.addElement_ivxn3r$("substatementVerbUid",!0),this.descriptor.addElement_ivxn3r$("subStatementObjectUid",!0),this.descriptor.addElement_ivxn3r$("agentUid",!0),this.descriptor.addElement_ivxn3r$("instructorUid",!0),this.descriptor.addElement_ivxn3r$("authorityUid",!0),this.descriptor.addElement_ivxn3r$("teamUid",!0),this.descriptor.addElement_ivxn3r$("resultCompletion",!0),this.descriptor.addElement_ivxn3r$("resultSuccess",!0),this.descriptor.addElement_ivxn3r$("resultScoreScaled",!0),this.descriptor.addElement_ivxn3r$("resultScoreRaw",!0),this.descriptor.addElement_ivxn3r$("resultScoreMin",!0),this.descriptor.addElement_ivxn3r$("resultScoreMax",!0),this.descriptor.addElement_ivxn3r$("resultDuration",!0),this.descriptor.addElement_ivxn3r$("resultResponse",!0),this.descriptor.addElement_ivxn3r$("timestamp",!0),this.descriptor.addElement_ivxn3r$("stored",!0),this.descriptor.addElement_ivxn3r$("contextRegistration",!0),this.descriptor.addElement_ivxn3r$("contextPlatform",!0),this.descriptor.addElement_ivxn3r$("contextStatementId",!0),this.descriptor.addElement_ivxn3r$("fullStatement",!0),this.descriptor.addElement_ivxn3r$("statementMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("statementLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("statementLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("statementLct",!0),this.descriptor.addElement_ivxn3r$("extensionProgress",!0),this.descriptor.addElement_ivxn3r$("contentEntryRoot",!0),this.descriptor.addElement_ivxn3r$("statementContentEntryUid",!0),this.descriptor.addElement_ivxn3r$("statementLearnerGroupUid",!0),this.descriptor.addElement_ivxn3r$("statementClazzUid",!0),this.descriptor.addElement_ivxn3r$("verb",!0),this.descriptor.addElement_ivxn3r$("verbDisplay",!0),this.descriptor.addElement_ivxn3r$("objectDisplay",!0),b_t=this}Object.defineProperty(y_t.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_axrcq7$_0}}),y_t.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.statementUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.statementUid),O(e.statementId,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.statementId),O(e.statementPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.statementPersonUid),O(e.statementVerbUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.statementVerbUid),O(e.xObjectUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.xObjectUid),O(e.subStatementActorUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.subStatementActorUid),O(e.substatementVerbUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.substatementVerbUid),O(e.subStatementObjectUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.subStatementObjectUid),O(e.agentUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.agentUid),O(e.instructorUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeLongElement_j0o2mv$(this.descriptor,9,e.instructorUid),O(e.authorityUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeLongElement_j0o2mv$(this.descriptor,10,e.authorityUid),O(e.teamUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeLongElement_j0o2mv$(this.descriptor,11,e.teamUid),O(e.resultCompletion,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeBooleanElement_qh7jdn$(this.descriptor,12,e.resultCompletion),O(e.resultSuccess,Xpt().RESULT_UNSET)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,13)||n.encodeByteElement_j0u8y3$(this.descriptor,13,e.resultSuccess),O(e.resultScoreScaled,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,14)||n.encodeFloatElement_lf6hpt$(this.descriptor,14,e.resultScoreScaled),O(e.resultScoreRaw,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,15)||n.encodeLongElement_j0o2mv$(this.descriptor,15,e.resultScoreRaw),O(e.resultScoreMin,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,16)||n.encodeLongElement_j0o2mv$(this.descriptor,16,e.resultScoreMin),O(e.resultScoreMax,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,17)||n.encodeLongElement_j0o2mv$(this.descriptor,17,e.resultScoreMax),O(e.resultDuration,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,18)||n.encodeLongElement_j0o2mv$(this.descriptor,18,e.resultDuration),O(e.resultResponse,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,19)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,19,Ht.StringSerializer,e.resultResponse),O(e.timestamp,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,20)||n.encodeLongElement_j0o2mv$(this.descriptor,20,e.timestamp),O(e.stored,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,21)||n.encodeLongElement_j0o2mv$(this.descriptor,21,e.stored),O(e.contextRegistration,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,22)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,22,Ht.StringSerializer,e.contextRegistration),O(e.contextPlatform,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,23)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,23,Ht.StringSerializer,e.contextPlatform),O(e.contextStatementId,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,24)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,24,Ht.StringSerializer,e.contextStatementId),O(e.fullStatement,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,25)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,25,Ht.StringSerializer,e.fullStatement),O(e.statementMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,26)||n.encodeLongElement_j0o2mv$(this.descriptor,26,e.statementMasterChangeSeqNum),O(e.statementLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,27)||n.encodeLongElement_j0o2mv$(this.descriptor,27,e.statementLocalChangeSeqNum),O(e.statementLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,28)||n.encodeIntElement_ptg7oe$(this.descriptor,28,e.statementLastChangedBy),O(e.statementLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,29)||n.encodeLongElement_j0o2mv$(this.descriptor,29,e.statementLct),O(e.extensionProgress,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,30)||n.encodeIntElement_ptg7oe$(this.descriptor,30,e.extensionProgress),O(e.contentEntryRoot,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,31)||n.encodeBooleanElement_qh7jdn$(this.descriptor,31,e.contentEntryRoot),O(e.statementContentEntryUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,32)||n.encodeLongElement_j0o2mv$(this.descriptor,32,e.statementContentEntryUid),O(e.statementLearnerGroupUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,33)||n.encodeLongElement_j0o2mv$(this.descriptor,33,e.statementLearnerGroupUid),O(e.statementClazzUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,34)||n.encodeLongElement_j0o2mv$(this.descriptor,34,e.statementClazzUid),O(e.verb,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,35)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,35,gmt(),e.verb),O(e.verbDisplay,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,36)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,36,Ht.StringSerializer,e.verbDisplay),O(e.objectDisplay,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,37)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,37,Ht.StringSerializer,e.objectDisplay),n.endStructure_24f42q$(this.descriptor)},y_t.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w,O,R,A,x,I,U,D,P,M,k,j=0,G=0,q=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=q.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=q.decodeLongElement_szpzho$(this.descriptor,0),j|=1;break;case 1:i=q.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),j|=2;break;case 2:o=q.decodeLongElement_szpzho$(this.descriptor,2),j|=4;break;case 3:r=q.decodeLongElement_szpzho$(this.descriptor,3),j|=8;break;case 4:s=q.decodeLongElement_szpzho$(this.descriptor,4),j|=16;break;case 5:a=q.decodeLongElement_szpzho$(this.descriptor,5),j|=32;break;case 6:c=q.decodeLongElement_szpzho$(this.descriptor,6),j|=64;break;case 7:l=q.decodeLongElement_szpzho$(this.descriptor,7),j|=128;break;case 8:u=q.decodeLongElement_szpzho$(this.descriptor,8),j|=256;break;case 9:h=q.decodeLongElement_szpzho$(this.descriptor,9),j|=512;break;case 10:d=q.decodeLongElement_szpzho$(this.descriptor,10),j|=1024;break;case 11:p=q.decodeLongElement_szpzho$(this.descriptor,11),j|=2048;break;case 12:_=q.decodeBooleanElement_szpzho$(this.descriptor,12),j|=4096;break;case 13:m=q.decodeByteElement_szpzho$(this.descriptor,13),j|=8192;break;case 14:f=q.decodeFloatElement_szpzho$(this.descriptor,14),j|=16384;break;case 15:g=q.decodeLongElement_szpzho$(this.descriptor,15),j|=32768;break;case 16:$=q.decodeLongElement_szpzho$(this.descriptor,16),j|=65536;break;case 17:E=q.decodeLongElement_szpzho$(this.descriptor,17),j|=131072;break;case 18:y=q.decodeLongElement_szpzho$(this.descriptor,18),j|=262144;break;case 19:b=q.decodeNullableSerializableElement_8viuyw$(this.descriptor,19,Ht.StringSerializer,b),j|=524288;break;case 20:S=q.decodeLongElement_szpzho$(this.descriptor,20),j|=1048576;break;case 21:v=q.decodeLongElement_szpzho$(this.descriptor,21),j|=2097152;break;case 22:C=q.decodeNullableSerializableElement_8viuyw$(this.descriptor,22,Ht.StringSerializer,C),j|=4194304;break;case 23:N=q.decodeNullableSerializableElement_8viuyw$(this.descriptor,23,Ht.StringSerializer,N),j|=8388608;break;case 24:T=q.decodeNullableSerializableElement_8viuyw$(this.descriptor,24,Ht.StringSerializer,T),j|=16777216;break;case 25:L=q.decodeNullableSerializableElement_8viuyw$(this.descriptor,25,Ht.StringSerializer,L),j|=33554432;break;case 26:z=q.decodeLongElement_szpzho$(this.descriptor,26),j|=67108864;break;case 27:w=q.decodeLongElement_szpzho$(this.descriptor,27),j|=134217728;break;case 28:O=q.decodeIntElement_szpzho$(this.descriptor,28),j|=268435456;break;case 29:R=q.decodeLongElement_szpzho$(this.descriptor,29),j|=536870912;break;case 30:A=q.decodeIntElement_szpzho$(this.descriptor,30),j|=1073741824;break;case 31:x=q.decodeBooleanElement_szpzho$(this.descriptor,31),j|=-2147483648;break;case 32:I=q.decodeLongElement_szpzho$(this.descriptor,32),G|=1;break;case 33:U=q.decodeLongElement_szpzho$(this.descriptor,33),G|=2;break;case 34:D=q.decodeLongElement_szpzho$(this.descriptor,34),G|=4;break;case 35:P=q.decodeNullableSerializableElement_8viuyw$(this.descriptor,35,gmt(),P),G|=8;break;case 36:M=q.decodeNullableSerializableElement_8viuyw$(this.descriptor,36,Ht.StringSerializer,M),G|=16;break;case 37:k=q.decodeNullableSerializableElement_8viuyw$(this.descriptor,37,Ht.StringSerializer,k),G|=32;break;case-1:break t;default:throw new Vt(e)}return q.endStructure_24f42q$(this.descriptor),v_t(j,G,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w,O,R,A,x,I,U,D,P,M,k,null)},y_t.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.BooleanSerializer,Ht.ByteSerializer,Ht.FloatSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.BooleanSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,new Bt(gmt()),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer)]},y_t.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var b_t=null;function S_t(){return null===b_t&&new y_t,b_t}function v_t(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w,O,R,A,x,I,U,D,P,M,k,j){var G=j||Object.create(f_t.prototype);return(G=Zpt(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w,O,R,A,x,I,U,D,G)).verb=0==(8&e)?null:P,G.verbDisplay=0==(16&e)?null:M,G.objectDisplay=0==(32&e)?null:k,G}function C_t(t,e,n,i){L_t(),void 0===i&&(i=null),this.id=t,this.messageId=e,this.term=n,this.errorMessage=i}function N_t(){T_t=this}f_t.$metadata$={kind:c,simpleName:"StatementWithSessionDetailDisplay",interfaces:[Hpt]},N_t.prototype.serializer=function(){return O_t()},N_t.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var T_t=null;function L_t(){return null===T_t&&new N_t,T_t}function z_t(){this.descriptor_r1hxhm$_0=new Wt("com.ustadmobile.lib.db.entities.TerminologyEntry",this,4),this.descriptor.addElement_ivxn3r$("id",!1),this.descriptor.addElement_ivxn3r$("messageId",!1),this.descriptor.addElement_ivxn3r$("term",!1),this.descriptor.addElement_ivxn3r$("errorMessage",!0),w_t=this}Object.defineProperty(z_t.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_r1hxhm$_0}}),z_t.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);n.encodeStringElement_iij8qq$(this.descriptor,0,e.id),n.encodeIntElement_ptg7oe$(this.descriptor,1,e.messageId),n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.term),O(e.errorMessage,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,3,Ht.StringSerializer,e.errorMessage),n.endStructure_24f42q$(this.descriptor)},z_t.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s=0,a=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=a.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=a.decodeStringElement_szpzho$(this.descriptor,0),s|=1;break;case 1:i=a.decodeIntElement_szpzho$(this.descriptor,1),s|=2;break;case 2:o=a.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),s|=4;break;case 3:r=a.decodeNullableSerializableElement_8viuyw$(this.descriptor,3,Ht.StringSerializer,r),s|=8;break;case-1:break t;default:throw new Vt(e)}return a.endStructure_24f42q$(this.descriptor),R_t(s,n,i,o,r,null)},z_t.prototype.childSerializers=function(){return[Ht.StringSerializer,Ht.IntSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer)]},z_t.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var w_t=null;function O_t(){return null===w_t&&new z_t,w_t}function R_t(t,e,n,i,o,r){var s=r||Object.create(C_t.prototype);if(0==(1&t))throw ie("id");if(s.id=e,0==(2&t))throw ie("messageId");if(s.messageId=n,0==(4&t))throw ie("term");return s.term=i,s.errorMessage=0==(8&t)?null:o,s}function A_t(){U_t(),this.uid=X,this.labelName=null}function x_t(){I_t=this}C_t.$metadata$={kind:c,simpleName:"TerminologyEntry",interfaces:[]},C_t.prototype.component1=function(){return this.id},C_t.prototype.component2=function(){return this.messageId},C_t.prototype.component3=function(){return this.term},C_t.prototype.component4=function(){return this.errorMessage},C_t.prototype.copy_j9igls$=function(t,e,n,i){return new C_t(void 0===t?this.id:t,void 0===e?this.messageId:e,void 0===n?this.term:n,void 0===i?this.errorMessage:i)},C_t.prototype.toString=function(){return"TerminologyEntry(id="+e.toString(this.id)+", messageId="+e.toString(this.messageId)+", term="+e.toString(this.term)+", errorMessage="+e.toString(this.errorMessage)+")"},C_t.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*(t=31*t+e.hashCode(this.id)|0)+e.hashCode(this.messageId)|0)+e.hashCode(this.term)|0)+e.hashCode(this.errorMessage)|0},C_t.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.id,t.id)&&e.equals(this.messageId,t.messageId)&&e.equals(this.term,t.term)&&e.equals(this.errorMessage,t.errorMessage)},x_t.prototype.serializer=function(){return M_t()},x_t.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var I_t=null;function U_t(){return null===I_t&&new x_t,I_t}function D_t(){this.descriptor_qndjqs$_0=new Wt("com.ustadmobile.lib.db.entities.UidAndLabel",this,2),this.descriptor.addElement_ivxn3r$("uid",!0),this.descriptor.addElement_ivxn3r$("labelName",!0),P_t=this}Object.defineProperty(D_t.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_qndjqs$_0}}),D_t.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.uid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.uid),O(e.labelName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.labelName),n.endStructure_24f42q$(this.descriptor)},D_t.prototype.deserialize_bq71mq$=function(t){var e,n,i,o=0,r=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=r.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=r.decodeLongElement_szpzho$(this.descriptor,0),o|=1;break;case 1:i=r.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),o|=2;break;case-1:break t;default:throw new Vt(e)}return r.endStructure_24f42q$(this.descriptor),k_t(o,n,i,null)},D_t.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer)]},D_t.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var P_t=null;function M_t(){return null===P_t&&new D_t,P_t}function k_t(t,e,n,i){var o=i||Object.create(A_t.prototype);return o.uid=0==(1&t)?X:e,o.labelName=0==(2&t)?null:n,o}function j_t(t,e,n,i,o,r,s){F_t(),void 0===e&&(e=null),void 0===n&&(n=null),void 0===i&&(i=""),void 0===o&&(o=null),void 0===r&&(r=null),void 0===s&&(s=!1),this.personUid=t,this.username=e,this.auth=n,this.endpointUrl=i,this.firstName=o,this.lastName=r,this.admin=s}function G_t(){q_t=this}A_t.$metadata$={kind:c,simpleName:"UidAndLabel",interfaces:[]},j_t.prototype.toPerson=function(){var t=new zct;return t.personUid=this.personUid,t.username=this.username,t.firstNames=this.firstName,t.lastName=this.lastName,t.admin=this.admin,t},G_t.prototype.serializer=function(){return H_t()},G_t.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var q_t=null;function F_t(){return null===q_t&&new G_t,q_t}function B_t(){this.descriptor_ulky5w$_0=new Wt("com.ustadmobile.lib.db.entities.UmAccount",this,7),this.descriptor.addElement_ivxn3r$("personUid",!1),this.descriptor.addElement_ivxn3r$("username",!0),this.descriptor.addElement_ivxn3r$("auth",!0),this.descriptor.addElement_ivxn3r$("endpointUrl",!0),this.descriptor.addElement_ivxn3r$("firstName",!0),this.descriptor.addElement_ivxn3r$("lastName",!0),this.descriptor.addElement_ivxn3r$("admin",!0),W_t=this}Object.defineProperty(B_t.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_ulky5w$_0}}),B_t.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);n.encodeLongElement_j0o2mv$(this.descriptor,0,e.personUid),O(e.username,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.username),O(e.auth,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.auth),O(e.endpointUrl,"")&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeStringElement_iij8qq$(this.descriptor,3,e.endpointUrl),O(e.firstName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,4,Ht.StringSerializer,e.firstName),O(e.lastName,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,5,Ht.StringSerializer,e.lastName),O(e.admin,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeBooleanElement_qh7jdn$(this.descriptor,6,e.admin),n.endStructure_24f42q$(this.descriptor)},B_t.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l=0,u=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=u.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=u.decodeLongElement_szpzho$(this.descriptor,0),l|=1;break;case 1:i=u.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),l|=2;break;case 2:o=u.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),l|=4;break;case 3:r=u.decodeStringElement_szpzho$(this.descriptor,3),l|=8;break;case 4:s=u.decodeNullableSerializableElement_8viuyw$(this.descriptor,4,Ht.StringSerializer,s),l|=16;break;case 5:a=u.decodeNullableSerializableElement_8viuyw$(this.descriptor,5,Ht.StringSerializer,a),l|=32;break;case 6:c=u.decodeBooleanElement_szpzho$(this.descriptor,6),l|=64;break;case-1:break t;default:throw new Vt(e)}return u.endStructure_24f42q$(this.descriptor),V_t(l,n,i,o,r,s,a,c,null)},B_t.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.StringSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.BooleanSerializer]},B_t.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var W_t=null;function H_t(){return null===W_t&&new B_t,W_t}function V_t(t,e,n,i,o,r,s,a,c){var l=c||Object.create(j_t.prototype);if(0==(1&t))throw ie("personUid");return l.personUid=e,l.username=0==(2&t)?null:n,l.auth=0==(4&t)?null:i,l.endpointUrl=0==(8&t)?"":o,l.firstName=0==(16&t)?null:r,l.lastName=0==(32&t)?null:s,l.admin=0!=(64&t)&&a,l}function K_t(){Y_t(),this.usUid=X,this.usPcsn=X,this.usLcsn=X,this.usLcb=0,this.usLct=X,this.usPersonUid=X,this.usClientNodeId=X,this.usStartTime=X,this.usEndTime=Xt,this.usStatus=0,this.usReason=0,this.usAuth=null,this.usSessionType=1}function X_t(){J_t=this,this.TABLE_ID=679,this.TYPE_STANDARD=1,this.TYPE_UPSTREAM=2,this.STATUS_ACTIVE=1,this.STATUS_NEEDS_REAUTH=2,this.STATUS_LOGGED_OUT=4,this.REASON_LOGGED_OUT=1,this.REASON_CONSENT_REVOKED=2,this.REASON_PASSWORD_CHANGED=3,this.USER_SESSION_NOT_LOCAL_DEVICE_SQL="\n UserSession.usClientNodeId != (\n SELECT nodeClientId \n FROM SyncNode\n LIMIT 1)\n "}j_t.$metadata$={kind:c,simpleName:"UmAccount",interfaces:[]},j_t.prototype.component1=function(){return this.personUid},j_t.prototype.component2=function(){return this.username},j_t.prototype.component3=function(){return this.auth},j_t.prototype.component4=function(){return this.endpointUrl},j_t.prototype.component5=function(){return this.firstName},j_t.prototype.component6=function(){return this.lastName},j_t.prototype.component7=function(){return this.admin},j_t.prototype.copy_i1i8k$=function(t,e,n,i,o,r,s){return new j_t(void 0===t?this.personUid:t,void 0===e?this.username:e,void 0===n?this.auth:n,void 0===i?this.endpointUrl:i,void 0===o?this.firstName:o,void 0===r?this.lastName:r,void 0===s?this.admin:s)},j_t.prototype.toString=function(){return"UmAccount(personUid="+e.toString(this.personUid)+", username="+e.toString(this.username)+", auth="+e.toString(this.auth)+", endpointUrl="+e.toString(this.endpointUrl)+", firstName="+e.toString(this.firstName)+", lastName="+e.toString(this.lastName)+", admin="+e.toString(this.admin)+")"},j_t.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*(t=31*(t=31*(t=31*(t=31*t+e.hashCode(this.personUid)|0)+e.hashCode(this.username)|0)+e.hashCode(this.auth)|0)+e.hashCode(this.endpointUrl)|0)+e.hashCode(this.firstName)|0)+e.hashCode(this.lastName)|0)+e.hashCode(this.admin)|0},j_t.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.personUid,t.personUid)&&e.equals(this.username,t.username)&&e.equals(this.auth,t.auth)&&e.equals(this.endpointUrl,t.endpointUrl)&&e.equals(this.firstName,t.firstName)&&e.equals(this.lastName,t.lastName)&&e.equals(this.admin,t.admin)},X_t.prototype.serializer=function(){return tmt()},X_t.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var J_t=null;function Y_t(){return null===J_t&&new X_t,J_t}function Q_t(){this.descriptor_iypglm$_0=new Wt("com.ustadmobile.lib.db.entities.UserSession",this,13),this.descriptor.addElement_ivxn3r$("usUid",!0),this.descriptor.addElement_ivxn3r$("usPcsn",!0),this.descriptor.addElement_ivxn3r$("usLcsn",!0),this.descriptor.addElement_ivxn3r$("usLcb",!0),this.descriptor.addElement_ivxn3r$("usLct",!0),this.descriptor.addElement_ivxn3r$("usPersonUid",!0),this.descriptor.addElement_ivxn3r$("usClientNodeId",!0),this.descriptor.addElement_ivxn3r$("usStartTime",!0),this.descriptor.addElement_ivxn3r$("usEndTime",!0),this.descriptor.addElement_ivxn3r$("usStatus",!0),this.descriptor.addElement_ivxn3r$("usReason",!0),this.descriptor.addElement_ivxn3r$("usAuth",!0),this.descriptor.addElement_ivxn3r$("usSessionType",!0),Z_t=this}Object.defineProperty(Q_t.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_iypglm$_0}}),Q_t.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.usUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.usUid),O(e.usPcsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.usPcsn),O(e.usLcsn,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.usLcsn),O(e.usLcb,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeIntElement_ptg7oe$(this.descriptor,3,e.usLcb),O(e.usLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.usLct),O(e.usPersonUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeLongElement_j0o2mv$(this.descriptor,5,e.usPersonUid),O(e.usClientNodeId,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.usClientNodeId),O(e.usStartTime,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.usStartTime),O(e.usEndTime,Xt)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.usEndTime),O(e.usStatus,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeIntElement_ptg7oe$(this.descriptor,9,e.usStatus),O(e.usReason,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeIntElement_ptg7oe$(this.descriptor,10,e.usReason),O(e.usAuth,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,11,Ht.StringSerializer,e.usAuth),O(e.usSessionType,1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,12)||n.encodeIntElement_ptg7oe$(this.descriptor,12,e.usSessionType),n.endStructure_24f42q$(this.descriptor)},Q_t.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m=0,f=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=f.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=f.decodeLongElement_szpzho$(this.descriptor,0),m|=1;break;case 1:i=f.decodeLongElement_szpzho$(this.descriptor,1),m|=2;break;case 2:o=f.decodeLongElement_szpzho$(this.descriptor,2),m|=4;break;case 3:r=f.decodeIntElement_szpzho$(this.descriptor,3),m|=8;break;case 4:s=f.decodeLongElement_szpzho$(this.descriptor,4),m|=16;break;case 5:a=f.decodeLongElement_szpzho$(this.descriptor,5),m|=32;break;case 6:c=f.decodeLongElement_szpzho$(this.descriptor,6),m|=64;break;case 7:l=f.decodeLongElement_szpzho$(this.descriptor,7),m|=128;break;case 8:u=f.decodeLongElement_szpzho$(this.descriptor,8),m|=256;break;case 9:h=f.decodeIntElement_szpzho$(this.descriptor,9),m|=512;break;case 10:d=f.decodeIntElement_szpzho$(this.descriptor,10),m|=1024;break;case 11:p=f.decodeNullableSerializableElement_8viuyw$(this.descriptor,11,Ht.StringSerializer,p),m|=2048;break;case 12:_=f.decodeIntElement_szpzho$(this.descriptor,12),m|=4096;break;case-1:break t;default:throw new Vt(e)}return f.endStructure_24f42q$(this.descriptor),emt(m,n,i,o,r,s,a,c,l,u,h,d,p,_,null)},Q_t.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.IntSerializer,new Bt(Ht.StringSerializer),Ht.IntSerializer]},Q_t.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Z_t=null;function tmt(){return null===Z_t&&new Q_t,Z_t}function emt(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_){var m=_||Object.create(K_t.prototype);return m.usUid=0==(1&t)?X:e,m.usPcsn=0==(2&t)?X:n,m.usLcsn=0==(4&t)?X:i,m.usLcb=0==(8&t)?0:o,m.usLct=0==(16&t)?X:r,m.usPersonUid=0==(32&t)?X:s,m.usClientNodeId=0==(64&t)?X:a,m.usStartTime=0==(128&t)?X:c,m.usEndTime=0==(256&t)?Xt:l,m.usStatus=0==(512&t)?0:u,m.usReason=0==(1024&t)?0:h,m.usAuth=0==(2048&t)?null:d,m.usSessionType=0==(4096&t)?1:p,m}function nmt(){this.person=null,this.userSession=null}function imt(){smt(),this.verbUid=X,this.urlId=null,this.display=null}function omt(){rmt=this}K_t.$metadata$={kind:c,simpleName:"UserSession",interfaces:[]},nmt.$metadata$={kind:c,simpleName:"UserSessionAndPerson",interfaces:[]},omt.prototype.serializer=function(){return lmt()},omt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var rmt=null;function smt(){return null===rmt&&new omt,rmt}function amt(){this.descriptor_tq957m$_0=new Wt("com.ustadmobile.lib.db.entities.VerbDisplay",this,3),this.descriptor.addElement_ivxn3r$("verbUid",!0),this.descriptor.addElement_ivxn3r$("urlId",!0),this.descriptor.addElement_ivxn3r$("display",!0),cmt=this}Object.defineProperty(amt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_tq957m$_0}}),amt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.verbUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.verbUid),O(e.urlId,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.urlId),O(e.display,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.display),n.endStructure_24f42q$(this.descriptor)},amt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r=0,s=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=s.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=s.decodeLongElement_szpzho$(this.descriptor,0),r|=1;break;case 1:i=s.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),r|=2;break;case 2:o=s.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),r|=4;break;case-1:break t;default:throw new Vt(e)}return s.endStructure_24f42q$(this.descriptor),umt(r,n,i,o,null)},amt.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer)]},amt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var cmt=null;function lmt(){return null===cmt&&new amt,cmt}function umt(t,e,n,i,o){var r=o||Object.create(imt.prototype);return r.verbUid=0==(1&t)?X:e,r.urlId=0==(2&t)?null:n,r.display=0==(4&t)?null:i,r}function hmt(){_mt(),this.verbUid=X,this.urlId=null,this.verbInActive=!1,this.verbMasterChangeSeqNum=X,this.verbLocalChangeSeqNum=X,this.verbLastChangedBy=0,this.verbLct=X}function dmt(){pmt=this,this.TABLE_ID=62,this.VERB_PROGRESSED_URL="http://adlnet.gov/expapi/verbs/progressed",this.VERB_PROGRESSED_UID=re,this.VERB_COMPLETED_URL="http://adlnet.gov/expapi/verbs/completed",this.VERB_COMPLETED_UID=se,this.VERB_PASSED_URL="http://adlnet.gov/expapi/verbs/passed",this.VERB_PASSED_UID=ae,this.VERB_FAILED_URL="http://adlnet.gov/expapi/verbs/failed",this.VERB_FAILED_UID=ce,this.VERB_SATISFIED_URL="https://w3id.org/xapi/adl/verbs/satisfied",this.VERB_SATISFIED_UID=le,this.VERB_ATTEMPTED_URL="http://adlnet.gov/expapi/verbs/attempted",this.VERB_ATTEMPTED_UID=ue,this.VERB_INTERACTED_URL="http://adlnet.gov/expapi/verbs/interacted",this.VERB_INTERACTED_UID=he,this.VERB_ANSWERED_URL="http://adlnet.gov/expapi/verbs/answered",this.VERB_ANSWERED_UID=de,this.VERB_SUBMITTED_URL="http://activitystrea.ms/schema/1.0/submit",this.VERB_SUBMITTED_UID=pe,this.VERB_SCORED_URL="http://adlnet.gov/expapi/verbs/scored",this.VERB_SCORED_UID=_e,this.FIXED_UIDS=$([g(this.VERB_PROGRESSED_URL,this.VERB_PROGRESSED_UID),g(this.VERB_COMPLETED_URL,this.VERB_COMPLETED_UID),g(this.VERB_PASSED_URL,this.VERB_PASSED_UID),g(this.VERB_FAILED_URL,this.VERB_FAILED_UID),g(this.VERB_SATISFIED_URL,this.VERB_SATISFIED_UID),g(this.VERB_ANSWERED_URL,this.VERB_ANSWERED_UID),g(this.VERB_ATTEMPTED_URL,this.VERB_ATTEMPTED_UID),g(this.VERB_INTERACTED_URL,this.VERB_INTERACTED_UID),g(this.VERB_SUBMITTED_URL,this.VERB_SUBMITTED_UID),g(this.VERB_SCORED_URL,this.VERB_SCORED_UID)])}imt.$metadata$={kind:c,simpleName:"VerbDisplay",interfaces:[]},dmt.prototype.serializer=function(){return gmt()},dmt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var pmt=null;function _mt(){return null===pmt&&new dmt,pmt}function mmt(){this.descriptor_ymkq4z$_0=new Wt("com.ustadmobile.lib.db.entities.VerbEntity",this,7),this.descriptor.addElement_ivxn3r$("verbUid",!0),this.descriptor.addElement_ivxn3r$("urlId",!0),this.descriptor.addElement_ivxn3r$("verbInActive",!0),this.descriptor.addElement_ivxn3r$("verbMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("verbLocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("verbLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("verbLct",!0),fmt=this}Object.defineProperty(mmt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_ymkq4z$_0}}),mmt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.verbUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.verbUid),O(e.urlId,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.urlId),O(e.verbInActive,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeBooleanElement_qh7jdn$(this.descriptor,2,e.verbInActive),O(e.verbMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.verbMasterChangeSeqNum),O(e.verbLocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeLongElement_j0o2mv$(this.descriptor,4,e.verbLocalChangeSeqNum),O(e.verbLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeIntElement_ptg7oe$(this.descriptor,5,e.verbLastChangedBy),O(e.verbLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.verbLct),n.endStructure_24f42q$(this.descriptor)},mmt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l=0,u=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=u.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=u.decodeLongElement_szpzho$(this.descriptor,0),l|=1;break;case 1:i=u.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),l|=2;break;case 2:o=u.decodeBooleanElement_szpzho$(this.descriptor,2),l|=4;break;case 3:r=u.decodeLongElement_szpzho$(this.descriptor,3),l|=8;break;case 4:s=u.decodeLongElement_szpzho$(this.descriptor,4),l|=16;break;case 5:a=u.decodeIntElement_szpzho$(this.descriptor,5),l|=32;break;case 6:c=u.decodeLongElement_szpzho$(this.descriptor,6),l|=64;break;case-1:break t;default:throw new Vt(e)}return u.endStructure_24f42q$(this.descriptor),$mt(l,n,i,o,r,s,a,c,null)},mmt.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.BooleanSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer]},mmt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var fmt=null;function gmt(){return null===fmt&&new mmt,fmt}function $mt(t,e,n,i,o,r,s,a,c){var l=c||Object.create(hmt.prototype);return l.verbUid=0==(1&t)?X:e,l.urlId=0==(2&t)?null:n,l.verbInActive=0!=(4&t)&&i,l.verbMasterChangeSeqNum=0==(8&t)?X:o,l.verbLocalChangeSeqNum=0==(16&t)?X:r,l.verbLastChangedBy=0==(32&t)?0:s,l.verbLct=0==(64&t)?X:a,l}function Emt(t,e,n,i,o,r,s,a,c){Smt(),void 0===t&&(t=X),void 0===e&&(e=X),void 0===n&&(n=X),void 0===i&&(i=X),void 0===o&&(o=""),void 0===r&&(r=0),void 0===s&&(s=0),void 0===a&&(a=0),void 0===c&&(c=X),this.verbLangMapUid=t,this.objectLangMapUid=e,this.languageLangMapUid=n,this.languageVariantLangMapUid=i,this.valueLangMap=o,this.statementLangMapMasterCsn=r,this.statementLangMapLocalCsn=s,this.statementLangMapLcb=a,this.statementLangMapLct=c,this.statementLangMapUid=X}function ymt(){bmt=this,this.TABLE_ID=74}hmt.$metadata$={kind:c,simpleName:"VerbEntity",interfaces:[]},ymt.prototype.serializer=function(){return Nmt()},ymt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var bmt=null;function Smt(){return null===bmt&&new ymt,bmt}function vmt(){this.descriptor_gut0l$_0=new Wt("com.ustadmobile.lib.db.entities.XLangMapEntry",this,10),this.descriptor.addElement_ivxn3r$("verbLangMapUid",!0),this.descriptor.addElement_ivxn3r$("objectLangMapUid",!0),this.descriptor.addElement_ivxn3r$("languageLangMapUid",!0),this.descriptor.addElement_ivxn3r$("languageVariantLangMapUid",!0),this.descriptor.addElement_ivxn3r$("valueLangMap",!0),this.descriptor.addElement_ivxn3r$("statementLangMapMasterCsn",!0),this.descriptor.addElement_ivxn3r$("statementLangMapLocalCsn",!0),this.descriptor.addElement_ivxn3r$("statementLangMapLcb",!0),this.descriptor.addElement_ivxn3r$("statementLangMapLct",!0),this.descriptor.addElement_ivxn3r$("statementLangMapUid",!0),Cmt=this}Object.defineProperty(vmt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_gut0l$_0}}),vmt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.verbLangMapUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.verbLangMapUid),O(e.objectLangMapUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeLongElement_j0o2mv$(this.descriptor,1,e.objectLangMapUid),O(e.languageLangMapUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeLongElement_j0o2mv$(this.descriptor,2,e.languageLangMapUid),O(e.languageVariantLangMapUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeLongElement_j0o2mv$(this.descriptor,3,e.languageVariantLangMapUid),O(e.valueLangMap,"")&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,4,Ht.StringSerializer,e.valueLangMap),O(e.statementLangMapMasterCsn,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeIntElement_ptg7oe$(this.descriptor,5,e.statementLangMapMasterCsn),O(e.statementLangMapLocalCsn,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeIntElement_ptg7oe$(this.descriptor,6,e.statementLangMapLocalCsn),O(e.statementLangMapLcb,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeIntElement_ptg7oe$(this.descriptor,7,e.statementLangMapLcb),O(e.statementLangMapLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.statementLangMapLct),O(e.statementLangMapUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeLongElement_j0o2mv$(this.descriptor,9,e.statementLangMapUid),n.endStructure_24f42q$(this.descriptor)},vmt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d=0,p=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=p.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=p.decodeLongElement_szpzho$(this.descriptor,0),d|=1;break;case 1:i=p.decodeLongElement_szpzho$(this.descriptor,1),d|=2;break;case 2:o=p.decodeLongElement_szpzho$(this.descriptor,2),d|=4;break;case 3:r=p.decodeLongElement_szpzho$(this.descriptor,3),d|=8;break;case 4:s=p.decodeNullableSerializableElement_8viuyw$(this.descriptor,4,Ht.StringSerializer,s),d|=16;break;case 5:a=p.decodeIntElement_szpzho$(this.descriptor,5),d|=32;break;case 6:c=p.decodeIntElement_szpzho$(this.descriptor,6),d|=64;break;case 7:l=p.decodeIntElement_szpzho$(this.descriptor,7),d|=128;break;case 8:u=p.decodeLongElement_szpzho$(this.descriptor,8),d|=256;break;case 9:h=p.decodeLongElement_szpzho$(this.descriptor,9),d|=512;break;case-1:break t;default:throw new Vt(e)}return p.endStructure_24f42q$(this.descriptor),Tmt(d,n,i,o,r,s,a,c,l,u,h,null)},vmt.prototype.childSerializers=function(){return[Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,new Bt(Ht.StringSerializer),Ht.IntSerializer,Ht.IntSerializer,Ht.IntSerializer,Ht.LongSerializer,Ht.LongSerializer]},vmt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Cmt=null;function Nmt(){return null===Cmt&&new vmt,Cmt}function Tmt(t,e,n,i,o,r,s,a,c,l,u,h){var d=h||Object.create(Emt.prototype);return d.verbLangMapUid=0==(1&t)?X:e,d.objectLangMapUid=0==(2&t)?X:n,d.languageLangMapUid=0==(4&t)?X:i,d.languageVariantLangMapUid=0==(8&t)?X:o,d.valueLangMap=0==(16&t)?"":r,d.statementLangMapMasterCsn=0==(32&t)?0:s,d.statementLangMapLocalCsn=0==(64&t)?0:a,d.statementLangMapLcb=0==(128&t)?0:c,d.statementLangMapLct=0==(256&t)?X:l,d.statementLangMapUid=0==(512&t)?X:u,d}function Lmt(){Omt(),this.xObjectUid=X,this.objectType=null,this.objectId=null,this.definitionType=null,this.interactionType=null,this.correctResponsePattern=null,this.objectContentEntryUid=X,this.objectStatementRefUid=X,this.xObjectMasterChangeSeqNum=X,this.xObjectocalChangeSeqNum=X,this.xObjectLastChangedBy=0,this.xObjectLct=X}function zmt(){wmt=this,this.TABLE_ID=64}Emt.$metadata$={kind:c,simpleName:"XLangMapEntry",interfaces:[]},Emt.prototype.component1=function(){return this.verbLangMapUid},Emt.prototype.component2=function(){return this.objectLangMapUid},Emt.prototype.component3=function(){return this.languageLangMapUid},Emt.prototype.component4=function(){return this.languageVariantLangMapUid},Emt.prototype.component5=function(){return this.valueLangMap},Emt.prototype.component6=function(){return this.statementLangMapMasterCsn},Emt.prototype.component7=function(){return this.statementLangMapLocalCsn},Emt.prototype.component8=function(){return this.statementLangMapLcb},Emt.prototype.component9=function(){return this.statementLangMapLct},Emt.prototype.copy_9nwdwe$=function(t,e,n,i,o,r,s,a,c){return new Emt(void 0===t?this.verbLangMapUid:t,void 0===e?this.objectLangMapUid:e,void 0===n?this.languageLangMapUid:n,void 0===i?this.languageVariantLangMapUid:i,void 0===o?this.valueLangMap:o,void 0===r?this.statementLangMapMasterCsn:r,void 0===s?this.statementLangMapLocalCsn:s,void 0===a?this.statementLangMapLcb:a,void 0===c?this.statementLangMapLct:c)},Emt.prototype.toString=function(){return"XLangMapEntry(verbLangMapUid="+e.toString(this.verbLangMapUid)+", objectLangMapUid="+e.toString(this.objectLangMapUid)+", languageLangMapUid="+e.toString(this.languageLangMapUid)+", languageVariantLangMapUid="+e.toString(this.languageVariantLangMapUid)+", valueLangMap="+e.toString(this.valueLangMap)+", statementLangMapMasterCsn="+e.toString(this.statementLangMapMasterCsn)+", statementLangMapLocalCsn="+e.toString(this.statementLangMapLocalCsn)+", statementLangMapLcb="+e.toString(this.statementLangMapLcb)+", statementLangMapLct="+e.toString(this.statementLangMapLct)+")"},Emt.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*(t=31*(t=31*(t=31*(t=31*(t=31*(t=31*t+e.hashCode(this.verbLangMapUid)|0)+e.hashCode(this.objectLangMapUid)|0)+e.hashCode(this.languageLangMapUid)|0)+e.hashCode(this.languageVariantLangMapUid)|0)+e.hashCode(this.valueLangMap)|0)+e.hashCode(this.statementLangMapMasterCsn)|0)+e.hashCode(this.statementLangMapLocalCsn)|0)+e.hashCode(this.statementLangMapLcb)|0)+e.hashCode(this.statementLangMapLct)|0},Emt.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.verbLangMapUid,t.verbLangMapUid)&&e.equals(this.objectLangMapUid,t.objectLangMapUid)&&e.equals(this.languageLangMapUid,t.languageLangMapUid)&&e.equals(this.languageVariantLangMapUid,t.languageVariantLangMapUid)&&e.equals(this.valueLangMap,t.valueLangMap)&&e.equals(this.statementLangMapMasterCsn,t.statementLangMapMasterCsn)&&e.equals(this.statementLangMapLocalCsn,t.statementLangMapLocalCsn)&&e.equals(this.statementLangMapLcb,t.statementLangMapLcb)&&e.equals(this.statementLangMapLct,t.statementLangMapLct)},Lmt.prototype.hashCode=function(){var t,e,n,i,o,r,s,a,c,l,u=this.xObjectUid.xor(this.xObjectUid.shiftRightUnsigned(32)).toInt();return u=(31*(u=(31*(u=(31*(u=(31*(u=(31*(u=(31*(u=(31*u|0)+(null!=(e=null!=(t=this.objectType)?Yt(t):null)?e:0)|0)|0)+(null!=(i=null!=(n=this.objectId)?Yt(n):null)?i:0)|0)|0)+(null!=(r=null!=(o=this.definitionType)?Yt(o):null)?r:0)|0)|0)+(null!=(a=null!=(s=this.interactionType)?Yt(s):null)?a:0)|0)|0)+(null!=(l=null!=(c=this.correctResponsePattern)?Yt(c):null)?l:0)|0)|0)+Yt(this.objectContentEntryUid)|0)|0)+Yt(this.objectStatementRefUid)|0},Lmt.prototype.equals=function(t){var n;return this===t||!(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))&&(e.isType(t,Lmt)||Jt(),!!(O(this.xObjectUid,t.xObjectUid)&&O(this.objectType,t.objectType)&&O(this.objectId,t.objectId)&&O(this.definitionType,t.definitionType)&&O(this.interactionType,t.interactionType)&&O(this.correctResponsePattern,t.correctResponsePattern)&&O(this.objectContentEntryUid,t.objectContentEntryUid)&&O(this.objectStatementRefUid,t.objectStatementRefUid)))},zmt.prototype.serializer=function(){return xmt()},zmt.$metadata$={kind:h,simpleName:"Companion",interfaces:[]};var wmt=null;function Omt(){return null===wmt&&new zmt,wmt}function Rmt(){this.descriptor_g2vg13$_0=new Wt("com.ustadmobile.lib.db.entities.XObjectEntity",this,12),this.descriptor.addElement_ivxn3r$("xObjectUid",!0),this.descriptor.addElement_ivxn3r$("objectType",!0),this.descriptor.addElement_ivxn3r$("objectId",!0),this.descriptor.addElement_ivxn3r$("definitionType",!0),this.descriptor.addElement_ivxn3r$("interactionType",!0),this.descriptor.addElement_ivxn3r$("correctResponsePattern",!0),this.descriptor.addElement_ivxn3r$("objectContentEntryUid",!0),this.descriptor.addElement_ivxn3r$("objectStatementRefUid",!0),this.descriptor.addElement_ivxn3r$("xObjectMasterChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("xObjectocalChangeSeqNum",!0),this.descriptor.addElement_ivxn3r$("xObjectLastChangedBy",!0),this.descriptor.addElement_ivxn3r$("xObjectLct",!0),Amt=this}Object.defineProperty(Rmt.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_g2vg13$_0}}),Rmt.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);O(e.xObjectUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeLongElement_j0o2mv$(this.descriptor,0,e.xObjectUid),O(e.objectType,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,1,Ht.StringSerializer,e.objectType),O(e.objectId,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,2,Ht.StringSerializer,e.objectId),O(e.definitionType,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,3)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,3,Ht.StringSerializer,e.definitionType),O(e.interactionType,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,4)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,4,Ht.StringSerializer,e.interactionType),O(e.correctResponsePattern,null)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,5)||n.encodeNullableSerializableElement_qw92s8$(this.descriptor,5,Ht.StringSerializer,e.correctResponsePattern),O(e.objectContentEntryUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,6)||n.encodeLongElement_j0o2mv$(this.descriptor,6,e.objectContentEntryUid),O(e.objectStatementRefUid,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,7)||n.encodeLongElement_j0o2mv$(this.descriptor,7,e.objectStatementRefUid),O(e.xObjectMasterChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,8)||n.encodeLongElement_j0o2mv$(this.descriptor,8,e.xObjectMasterChangeSeqNum),O(e.xObjectocalChangeSeqNum,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,9)||n.encodeLongElement_j0o2mv$(this.descriptor,9,e.xObjectocalChangeSeqNum),O(e.xObjectLastChangedBy,0)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,10)||n.encodeIntElement_ptg7oe$(this.descriptor,10,e.xObjectLastChangedBy),O(e.xObjectLct,X)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,11)||n.encodeLongElement_j0o2mv$(this.descriptor,11,e.xObjectLct),n.endStructure_24f42q$(this.descriptor)},Rmt.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_=0,m=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=m.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=m.decodeLongElement_szpzho$(this.descriptor,0),_|=1;break;case 1:i=m.decodeNullableSerializableElement_8viuyw$(this.descriptor,1,Ht.StringSerializer,i),_|=2;break;case 2:o=m.decodeNullableSerializableElement_8viuyw$(this.descriptor,2,Ht.StringSerializer,o),_|=4;break;case 3:r=m.decodeNullableSerializableElement_8viuyw$(this.descriptor,3,Ht.StringSerializer,r),_|=8;break;case 4:s=m.decodeNullableSerializableElement_8viuyw$(this.descriptor,4,Ht.StringSerializer,s),_|=16;break;case 5:a=m.decodeNullableSerializableElement_8viuyw$(this.descriptor,5,Ht.StringSerializer,a),_|=32;break;case 6:c=m.decodeLongElement_szpzho$(this.descriptor,6),_|=64;break;case 7:l=m.decodeLongElement_szpzho$(this.descriptor,7),_|=128;break;case 8:u=m.decodeLongElement_szpzho$(this.descriptor,8),_|=256;break;case 9:h=m.decodeLongElement_szpzho$(this.descriptor,9),_|=512;break;case 10:d=m.decodeIntElement_szpzho$(this.descriptor,10),_|=1024;break;case 11:p=m.decodeLongElement_szpzho$(this.descriptor,11),_|=2048;break;case-1:break t;default:throw new Vt(e)}return m.endStructure_24f42q$(this.descriptor),Imt(_,n,i,o,r,s,a,c,l,u,h,d,p,null)},Rmt.prototype.childSerializers=function(){return[Ht.LongSerializer,new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),new Bt(Ht.StringSerializer),Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.LongSerializer,Ht.IntSerializer,Ht.LongSerializer]},Rmt.$metadata$={kind:h,simpleName:"$serializer",interfaces:[Kt]};var Amt=null;function xmt(){return null===Amt&&new Rmt,Amt}function Imt(t,e,n,i,o,r,s,a,c,l,u,h,d,p){var _=p||Object.create(Lmt.prototype);return _.xObjectUid=0==(1&t)?X:e,_.objectType=0==(2&t)?null:n,_.objectId=0==(4&t)?null:i,_.definitionType=0==(8&t)?null:o,_.interactionType=0==(16&t)?null:r,_.correctResponsePattern=0==(32&t)?null:s,_.objectContentEntryUid=0==(64&t)?X:a,_.objectStatementRefUid=0==(128&t)?X:c,_.xObjectMasterChangeSeqNum=0==(256&t)?X:l,_.xObjectocalChangeSeqNum=0==(512&t)?X:u,_.xObjectLastChangedBy=0==(1024&t)?0:h,_.xObjectLct=0==(2048&t)?X:d,_}function Umt(t){return t=t||Object.create(Lmt.prototype),Lmt.call(t),t}function Dmt(t){return function(e){return t.complete_11rb$(e),V}}function Pmt(t,e){N.call(this,e),this.exceptionState_0=6,this.local$observer=void 0,this.local$$receiver=t}Lmt.$metadata$={kind:c,simpleName:"XObjectEntity",interfaces:[]},Pmt.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},Pmt.prototype=Object.create(N.prototype),Pmt.prototype.constructor=Pmt,Pmt.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=Tn();if(this.local$observer=new Dt(Dmt(t)),this.exceptionState_0=4,this.local$$receiver.observeForever_fujmse$(this.local$observer),this.state_0=1,this.result_0=t.await(this),this.result_0===C)return C;continue;case 1:this.exceptionState_0=6,this.finallyPath_0=[2],this.state_0=5,this.$returnValue=this.result_0;continue;case 2:return this.$returnValue;case 3:return;case 4:this.finallyPath_0=[6],this.state_0=5;continue;case 5:this.exceptionState_0=6,this.local$$receiver.removeObserver_fujmse$(this.local$observer),this.state_0=this.finallyPath_0.shift();continue;case 6:throw this.exception_0;default:throw this.state_0=6,new Error("State Machine Unreachable execution")}}catch(t){if(6===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}};var Mmt=t.com||(t.com={}),kmt=Mmt.ustadmobile||(Mmt.ustadmobile={}),jmt=kmt.core||(kmt.core={}),Gmt=jmt.db||(jmt.db={});Gmt.UmAppDatabase=Ln,Object.defineProperty(Gmt,"UmAppDatabaseJsImplementations",{get:function(){return null===wn&&new zn,wn}}),Object.defineProperty(On,"Companion",{get:xn}),Gmt.UmAppDatabase_DoorMetadata=On,Gmt.UmAppDatabase_JdbcKt=Un,Gmt.UmAppDatabase_ReplicateWrapper=Mn,Gmt.UmAppDatabase_ReplicationRunOnChangeRunner=jn,Object.defineProperty(eo,"Companion",{get:oo}),Gmt.UmAppDatabase_Repo=eo;var qmt=Gmt.dao||(Gmt.dao={});qmt.AgentDao=ro,qmt.AgentDao_JdbcKt=so,qmt.AgentDao_ReplicateWrapper=Eo,qmt.AgentDao_Repo=vo,qmt.ChatDao=zo,qmt.ChatDao_JdbcKt=wo,qmt.ChatDao_ReplicateWrapper=Yo,qmt.ChatDao_Repo=er,qmt.ChatMemberDao=ar,qmt.ChatMemberDao_JdbcKt=cr,qmt.ChatMemberDao_ReplicateWrapper=gr,qmt.ChatMemberDao_Repo=br,qmt.ClazzAssignmentContentJoinDao=Nr,qmt.ClazzAssignmentContentJoinDao_JdbcKt=Tr,qmt.ClazzAssignmentContentJoinDao_ReplicateWrapper=Hr,qmt.ClazzAssignmentContentJoinDao_Repo=Jr,qmt.ClazzAssignmentDao=es,qmt.ClazzAssignmentDao_JdbcKt=ns,qmt.ClazzAssignmentDao_ReplicateWrapper=Js,qmt.ClazzAssignmentDao_Repo=oa,qmt.ClazzAssignmentRollUpDao=ga,qmt.ClazzAssignmentRollUpDao_JdbcKt=$a,qmt.ClazzAssignmentRollUpDao_Repo=xa,qmt.ClazzContentJoinDao=ka,qmt.ClazzContentJoinDao_JdbcKt=ja,qmt.ClazzContentJoinDao_ReplicateWrapper=tc,qmt.ClazzContentJoinDao_Repo=rc,qmt.ClazzDao=hc,qmt.ClazzDao_JdbcKt=dc,qmt.ClazzDao_ReplicateWrapper=Tl,qmt.ClazzDao_Repo=Rl,qmt.ClazzEnrolmentDao=Wl,qmt.ClazzEnrolmentDao_JdbcKt=Hl,qmt.ClazzEnrolmentDao_ReplicateWrapper=Qu,qmt.ClazzEnrolmentDao_Repo=ih,qmt.ClazzLogAttendanceRecordDao=gh,qmt.ClazzLogAttendanceRecordDao_JdbcKt=$h,qmt.ClazzLogAttendanceRecordDao_ReplicateWrapper=Ih,qmt.ClazzLogAttendanceRecordDao_Repo=jh,qmt.ClazzLogDao=Vh,qmt.ClazzLogDao_JdbcKt=Kh,qmt.ClazzLogDao_ReplicateWrapper=Dd,qmt.ClazzLogDao_Repo=Gd,qmt.CommentsDao=Xd,qmt.CommentsDao_JdbcKt=Jd,qmt.CommentsDao_ReplicateWrapper=r_,qmt.CommentsDao_Repo=d_,qmt.ConnectivityStatusDao=E_,qmt.ConnectivityStatusDao_JdbcKt=y_,qmt.ContainerDao=U_,qmt.ContainerDao_JdbcKt=D_,qmt.ContainerDao_ReplicateWrapper=zm,qmt.ContainerDao_Repo=Im,qmt.ContainerETagDao=Jm,qmt.ContainerETagDao_JdbcKt=Ym,qmt.ContainerEntryDao=ef,qmt.ContainerEntryDao_JdbcKt=nf,qmt.ContainerEntryFileDao=$f,qmt.ContainerEntryFileDao_JdbcKt=Ef,qmt.ContainerImportJobDao=Ff,qmt.ContainerImportJobDao_JdbcKt=Bf,qmt.ContentCategoryDao=hg,qmt.ContentCategoryDao_JdbcKt=dg,qmt.ContentCategoryDao_ReplicateWrapper=Cg,qmt.ContentCategoryDao_Repo=zg,qmt.ContentCategorySchemaDao=Ag,qmt.ContentCategorySchemaDao_JdbcKt=xg,qmt.ContentCategorySchemaDao_ReplicateWrapper=Wg,qmt.ContentCategorySchemaDao_Repo=Xg,qmt.ContentEntryContentCategoryJoinDao=Zg,qmt.ContentEntryContentCategoryJoinDao_JdbcKt=t$,qmt.ContentEntryContentCategoryJoinDao_ReplicateWrapper=d$,qmt.ContentEntryContentCategoryJoinDao_Repo=f$,qmt.ContentEntryDao=y$,qmt.ContentEntryDao_JdbcKt=b$,qmt.ContentEntryDao_ReplicateWrapper=Vy,qmt.ContentEntryDao_Repo=tb,qmt.ContentEntryParentChildJoinDao=zb,qmt.ContentEntryParentChildJoinDao_JdbcKt=wb,qmt.ContentEntryParentChildJoinDao_ReplicateWrapper=tS,qmt.ContentEntryParentChildJoinDao_Repo=sS,qmt.ContentEntryPictureDao=pS,qmt.ContentEntryPictureDao_JdbcKt=_S,qmt.ContentEntryPictureDao_ReplicateWrapper=AS,qmt.ContentEntryPictureDao_Repo=PS,qmt.ContentEntryRelatedEntryJoinDao=FS,qmt.ContentEntryRelatedEntryJoinDao_JdbcKt=BS,qmt.ContentEntryRelatedEntryJoinDao_ReplicateWrapper=pv,qmt.ContentEntryRelatedEntryJoinDao_Repo=gv,qmt.ContentJobDao=Sv,qmt.ContentJobDao_JdbcKt=vv,qmt.ContentJobItemDao=Wv,qmt.ContentJobItemDao_JdbcKt=Hv,qmt.ContextXObjectStatementJoinDao=QC,qmt.ContextXObjectStatementJoinDao_JdbcKt=ZC,qmt.ContextXObjectStatementJoinDao_ReplicateWrapper=lN,qmt.ContextXObjectStatementJoinDao_Repo=pN,qmt.CourseAssignmentMarkDao=gN,qmt.CourseAssignmentMarkDao_JdbcKt=$N,qmt.CourseAssignmentMarkDao_ReplicateWrapper=IN,qmt.CourseAssignmentMarkDao_Repo=MN,qmt.CourseAssignmentSubmissionAttachmentDao=FN,qmt.CourseAssignmentSubmissionAttachmentDao_JdbcKt=BN,qmt.CourseAssignmentSubmissionAttachmentDao_ReplicateWrapper=tT,qmt.CourseAssignmentSubmissionAttachmentDao_Repo=rT,qmt.CourseAssignmentSubmissionDao=uT,qmt.CourseAssignmentSubmissionDao_JdbcKt=hT,qmt.CourseAssignmentSubmissionDao_ReplicateWrapper=BT,qmt.CourseAssignmentSubmissionDao_Repo=XT,qmt.CourseBlockDao=iL,qmt.CourseBlockDao_JdbcKt=oL,qmt.CourseBlockDao_ReplicateWrapper=ML,qmt.CourseBlockDao_Repo=HL,qmt.CourseDiscussionDao=iz,qmt.CourseDiscussionDao_JdbcKt=oz,qmt.CourseDiscussionDao_ReplicateWrapper=Tz,qmt.CourseDiscussionDao_Repo=Iz,qmt.CourseGroupMemberDao=qz,qmt.CourseGroupMemberDao_JdbcKt=Fz,qmt.CourseGroupMemberDao_ReplicateWrapper=cw,qmt.CourseGroupMemberDao_Repo=_w,qmt.CourseGroupSetDao=vw,qmt.CourseGroupSetDao_JdbcKt=Cw,qmt.CourseGroupSetDao_ReplicateWrapper=Kw,qmt.CourseGroupSetDao_Repo=Qw,qmt.CoursePictureDao=oO,qmt.CoursePictureDao_JdbcKt=rO,qmt.CoursePictureDao_ReplicateWrapper=vO,qmt.CoursePictureDao_Repo=zO,qmt.CourseTerminologyDao=IO,qmt.CourseTerminologyDao_JdbcKt=UO,qmt.CourseTerminologyDao_ReplicateWrapper=cR,qmt.CourseTerminologyDao_Repo=dR,qmt.DiscussionPostDao=ER,qmt.DiscussionPostDao_JdbcKt=yR,qmt.DiscussionPostDao_ReplicateWrapper=YR,qmt.DiscussionPostDao_Repo=eA,qmt.DiscussionTopicDao=lA,qmt.DiscussionTopicDao_JdbcKt=uA,qmt.DiscussionTopicDao_ReplicateWrapper=FA,qmt.DiscussionTopicDao_Repo=YA,qmt.EntityRoleDao=sx,qmt.EntityRoleDao_JdbcKt=ax,qmt.EntityRoleDao_Repo=Ix,qmt.ErrorReportDao=Gx,qmt.ErrorReportDao_JdbcKt=qx,qmt.ErrorReportDao_ReplicateWrapper=Qx,qmt.ErrorReportDao_Repo=eI,qmt.GroupLearningSessionDao=sI,qmt.GroupLearningSessionDao_JdbcKt=aI,qmt.GroupLearningSessionDao_ReplicateWrapper=fI,qmt.GroupLearningSessionDao_Repo=yI,qmt.HolidayCalendarDao=CI,qmt.HolidayCalendarDao_JdbcKt=NI,qmt.HolidayCalendarDao_ReplicateWrapper=rU,qmt.HolidayCalendarDao_Repo=lU,qmt.HolidayDao=fU,qmt.HolidayDao_JdbcKt=gU,qmt.HolidayDao_ReplicateWrapper=IU,qmt.HolidayDao_Repo=GU,qmt.LanguageDao=XU,qmt.LanguageDao_JdbcKt=JU,qmt.LanguageDao_ReplicateWrapper=kD,qmt.LanguageDao_Repo=WD,qmt.LanguageVariantDao=tP,qmt.LanguageVariantDao_JdbcKt=eP,qmt.LanguageVariantDao_ReplicateWrapper=hP,qmt.LanguageVariantDao_Repo=mP,qmt.LearnerGroupDao=EP,qmt.LearnerGroupDao_JdbcKt=yP,qmt.LearnerGroupDao_ReplicateWrapper=kP,qmt.LearnerGroupDao_Repo=FP,qmt.LearnerGroupMemberDao=VP,qmt.LearnerGroupMemberDao_JdbcKt=KP,qmt.LearnerGroupMemberDao_ReplicateWrapper=_M,qmt.LearnerGroupMemberDao_Repo=$M,qmt.LeavingReasonDao=vM,qmt.LeavingReasonDao_JdbcKt=CM,qmt.LeavingReasonDao_ReplicateWrapper=rk,qmt.LeavingReasonDao_Repo=uk,qmt.LocallyAvailableContainerDao=Ek,qmt.LocallyAvailableContainerDao_JdbcKt=yk,qmt.MessageDao=Lk,qmt.MessageDao_JdbcKt=zk,qmt.MessageDao_ReplicateWrapper=Qk,qmt.MessageDao_Repo=oj,qmt.MessageReadDao=uj,qmt.MessageReadDao_JdbcKt=hj,qmt.MessageReadDao_ReplicateWrapper=yj,qmt.MessageReadDao_Repo=Cj,qmt.NetworkNodeDao=zj,qmt.NetworkNodeDao_JdbcKt=wj,qmt.PersonAuth2Dao=Vj,qmt.PersonAuth2Dao_JdbcKt=Kj,qmt.PersonAuth2Dao_ReplicateWrapper=lG,qmt.PersonAuth2Dao_Repo=pG,qmt.PersonAuthDao=yG,qmt.PersonAuthDao_JdbcKt=bG,qmt.PersonDao=IG,qmt.PersonDao_JdbcKt=UG,qmt.PersonDao_ReplicateWrapper=qq,qmt.PersonDao_Repo=Jq,qmt.PersonGroupDao=pF,qmt.PersonGroupDao_JdbcKt=_F,qmt.PersonGroupDao_ReplicateWrapper=ZF,qmt.PersonGroupDao_Repo=lB,qmt.PersonGroupMemberDao=SB,qmt.PersonGroupMemberDao_JdbcKt=vB,qmt.PersonGroupMemberDao_ReplicateWrapper=tW,qmt.PersonGroupMemberDao_Repo=lW,qmt.PersonParentJoinDao=SW,qmt.PersonParentJoinDao_JdbcKt=vW,qmt.PersonParentJoinDao_ReplicateWrapper=VW,qmt.PersonParentJoinDao_Repo=QW,qmt.PersonPictureDao=cH,qmt.PersonPictureDao_JdbcKt=lH,qmt.PersonPictureDao_ReplicateWrapper=LH,qmt.PersonPictureDao_Repo=AH,qmt.ReportDao=MH,qmt.ReportDao_JdbcKt=kH,qmt.ReportDao_ReplicateWrapper=vV,qmt.ReportDao_Repo=wV,qmt.ScheduleDao=DV,qmt.ScheduleDao_JdbcKt=PV,qmt.ScheduleDao_ReplicateWrapper=bK,qmt.ScheduleDao_Repo=zK,qmt.SchoolDao=MK,qmt.SchoolDao_JdbcKt=kK,qmt.SchoolDao_ReplicateWrapper=fX,qmt.SchoolDao_Repo=yX,qmt.SchoolMemberDao=wX,qmt.SchoolMemberDao_JdbcKt=OX,qmt.SchoolMemberDao_ReplicateWrapper=nJ,qmt.SchoolMemberDao_Repo=sJ,qmt.ScopedGrantDao=pJ,qmt.ScopedGrantDao_JdbcKt=_J,qmt.ScopedGrantDao_ReplicateWrapper=dY,qmt.ScopedGrantDao_Repo=NY,qmt.ScrapeQueueItemDao=jY,qmt.ScrapeQueueItemDao_JdbcKt=GY,qmt.SiteDao=YY,qmt.SiteDao_JdbcKt=QY,qmt.SiteDao_ReplicateWrapper=EQ,qmt.SiteDao_Repo=CQ,qmt.SiteTermsDao=RQ,qmt.SiteTermsDao_JdbcKt=AQ,qmt.SiteTermsDao_ReplicateWrapper=uZ,qmt.SiteTermsDao_Repo=gZ,qmt.StateContentDao=LZ,qmt.StateContentDao_JdbcKt=zZ,qmt.StateContentDao_ReplicateWrapper=kZ,qmt.StateContentDao_Repo=FZ,qmt.StateDao=VZ,qmt.StateDao_JdbcKt=KZ,qmt.StateDao_ReplicateWrapper=r0,qmt.StateDao_Repo=l0,qmt.StatementDao=p0,qmt.StatementDao_JdbcKt=_0,qmt.StatementDao_ReplicateWrapper=R1,qmt.StatementDao_Repo=D1,qmt.SyncNodeDao=K1,qmt.SyncNodeDao_JdbcKt=X1,qmt.UserSessionDao=t2,qmt.UserSessionDao_JdbcKt=e2,qmt.UserSessionDao_ReplicateWrapper=k2,qmt.UserSessionDao_Repo=W2,qmt.VerbDao=o3,qmt.VerbDao_JdbcKt=r3,qmt.VerbDao_ReplicateWrapper=M3,qmt.VerbDao_Repo=F3,qmt.XLangMapEntryDao=X3,qmt.XLangMapEntryDao_JdbcKt=J3,qmt.XLangMapEntryDao_ReplicateWrapper=l6,qmt.XLangMapEntryDao_Repo=p6,qmt.XObjectDao=$6,qmt.XObjectDao_JdbcKt=E6,qmt.XObjectDao_ReplicateWrapper=O6,qmt.XObjectDao_Repo=I6;var Fmt=kmt.lib||(kmt.lib={}),Bmt=Fmt.db||(Fmt.db={}),Wmt=Bmt.entities||(Bmt.entities={});Wmt.ContentEntryPicture_EwaAdapter=M6,Wmt.CourseAssignmentSubmissionAttachment_EwaAdapter=k6,Wmt.CoursePicture_EwaAdapter=j6,Wmt.PersonPicture_EwaAdapter=G6,Object.defineProperty(q6,"Companion",{get:K6}),Gmt.ContentJobItemTriggersCallback=q6,qmt.BaseDao=X6,qmt.deactivateByUids_aw1xkw$=function(t,e,n,i,o){var r=new J6(t,e,n,i);return o?r:r.doResume(null)},qmt.deactivateByUids_w29pf7$=function(t,e,n,i,o){var r=new Y6(t,e,n,i);return o?r:r.doResume(null)},qmt.deactivateByUids_5h527s$=function(t,e,n,i,o){var r=new Q6(t,e,n,i);return o?r:r.doResume(null)},qmt.deactivateByUids_txvfhe$=function(t,e,n,i,o){var r=new Z6(t,e,n,i);return o?r:r.doResume(null)},qmt.deactivateByUids_3z24gd$=function(t,e,n,i){var o;for(o=e.iterator();o.hasNext();){var r=o.next();t.updateActiveByUid_zaz62j$(r,!1,n)}},qmt.OneToManyJoinDao=t4,Object.defineProperty(qmt,"PersonAuthDaoCommon",{get:function(){return null===g4&&new e4,g4}}),qmt.deactivateByUids_hzprtg$=function(t,e,n,i,o){var r=new $4(t,e,n,i);return o?r:r.doResume(null)},qmt.deactivateByUids_ozash1$=function(t,e,n,i,o){var r=new E4(t,e,n,i);return o?r:r.doResume(null)},qmt.getResults_qgp830$=function(t,e,n,i){return t.getResults_j49vja$(new jt(e,n),i)};var Hmt=Gmt.ext||(Gmt.ext={});return Hmt.migrationList=function(){return p([H6,n4,i4,o4,r4,s4,a4,c4,l4,u4,h4,d4,p4,_4,m4,f4])},Object.defineProperty(y4,"Companion",{get:v4}),Object.defineProperty(y4,"$serializer",{get:T4}),Wmt.AgentEntity_init_i2xni3$=L4,Wmt.AgentEntity=y4,Object.defineProperty(z4,"Companion",{get:R4}),Object.defineProperty(z4,"$serializer",{get:I4}),Wmt.AssignmentProgressSummary_init_na46m2$=U4,Wmt.AssignmentProgressSummary=z4,Object.defineProperty(D4,"Companion",{get:k4}),Object.defineProperty(D4,"$serializer",{get:q4}),Wmt.Chat_init_hho6eg$=F4,Wmt.Chat_init_ivxn3r$=function(t,e,n){return n=n||Object.create(D4.prototype),D4.call(n),n.chatTitle=t,n.chatGroup=e,n.chatStartDate=J(),n},Wmt.Chat=D4,Object.defineProperty(B4,"Companion",{get:V4}),Object.defineProperty(B4,"$serializer",{get:J4}),Wmt.ChatMember_init_y5rxtx$=Y4,Wmt.ChatMember_init_3pjtqy$=function(t,e,n){return n=n||Object.create(B4.prototype),B4.call(n),n.chatMemberChatUid=t,n.chatMemberPersonUid=e,n.chatMemberJoinedDate=J(),n},Wmt.ChatMember=B4,Object.defineProperty(Q4,"Companion",{get:e5}),Object.defineProperty(Q4,"$serializer",{get:o5}),Wmt.ChatWithLatestMessageAndCount_init_eqwren$=r5,Wmt.ChatWithLatestMessageAndCount=Q4,Object.defineProperty(s5,"Companion",{get:l5}),Object.defineProperty(s5,"$serializer",{get:d5}),Wmt.Clazz_init_dljzbr$=p5,Wmt.Clazz=s5,Object.defineProperty(_5,"Companion",{get:g5}),Object.defineProperty(_5,"$serializer",{get:y5}),Wmt.ClazzAssignment_init_3gtwkx$=b5,Wmt.ClazzAssignment=_5,Object.defineProperty(S5,"Companion",{get:N5}),Object.defineProperty(S5,"$serializer",{get:z5}),Wmt.ClazzAssignmentWithCourseBlock_init_wy7ocm$=w5,Wmt.ClazzAssignmentWithCourseBlock=S5,Object.defineProperty(O5,"Companion",{get:x5}),Object.defineProperty(O5,"$serializer",{get:D5}),Wmt.ClazzAssignmentWithMetrics_init_xiubz4$=P5,Wmt.ClazzAssignmentWithMetrics=O5,Object.defineProperty(M5,"Companion",{get:G5}),Object.defineProperty(M5,"$serializer",{get:B5}),Wmt.ClazzEnrolment_init_u3urac$=W5,Wmt.ClazzEnrolment=M5,Object.defineProperty(H5,"Companion",{get:X5}),Object.defineProperty(H5,"$serializer",{get:Q5}),Wmt.ClazzEnrolmentWithClazz_init_r6ondl$=Z5,Wmt.ClazzEnrolmentWithClazz=H5,Object.defineProperty(t8,"Companion",{get:i8}),Object.defineProperty(t8,"$serializer",{get:s8}),Wmt.ClazzEnrolmentWithClazzAndAttendance_init_w05voe$=a8,Wmt.ClazzEnrolmentWithClazzAndAttendance=t8,Object.defineProperty(c8,"Companion",{get:h8}),Object.defineProperty(c8,"$serializer",{get:_8}),Wmt.ClazzEnrolmentWithLeavingReason_init_2gkl2o$=m8,Wmt.ClazzEnrolmentWithLeavingReason=c8,Object.defineProperty(f8,"Companion",{get:E8}),Object.defineProperty(f8,"$serializer",{get:S8}),Wmt.ClazzEnrolmentWithPerson_init_2ryz78$=v8,Wmt.ClazzEnrolmentWithPerson=f8,Object.defineProperty(C8,"Companion",{get:L8}),Object.defineProperty(C8,"$serializer",{get:O8}),Wmt.ClazzLog_init_sart3s$=R8,Wmt.ClazzLog=C8,Object.defineProperty(A8,"Companion",{get:U8}),Object.defineProperty(A8,"$serializer",{get:M8}),Wmt.ClazzLogAttendanceRecord_init_j55olt$=k8,Wmt.ClazzLogAttendanceRecord=A8,Object.defineProperty(j8,"Companion",{get:F8}),Object.defineProperty(j8,"$serializer",{get:H8}),Wmt.ClazzLogAttendanceRecordWithPerson_init_m3rv87$=V8,Wmt.ClazzLogAttendanceRecordWithPerson=j8,Object.defineProperty(K8,"Companion",{get:Y8}),Object.defineProperty(K8,"$serializer",{get:t9}),Wmt.ClazzWithDisplayDetails_init_jfreia$=e9,Wmt.ClazzWithDisplayDetails=K8,Object.defineProperty(n9,"Companion",{get:r9}),Object.defineProperty(n9,"$serializer",{get:c9}),Wmt.ClazzWithHolidayCalendarAndSchoolAndTerminology_init_cp23pq$=l9,Wmt.ClazzWithHolidayCalendarAndSchoolAndTerminology=n9,Object.defineProperty(u9,"Companion",{get:p9}),Object.defineProperty(u9,"$serializer",{get:f9}),Wmt.ClazzWithListDisplayDetails_init_1l4oix$=g9,Wmt.ClazzWithListDisplayDetails=u9,Object.defineProperty($9,"Companion",{get:b9}),Object.defineProperty($9,"$serializer",{get:C9}),Wmt.ClazzWithSchool_init_6oyrtq$=N9,Wmt.ClazzWithSchool=$9,Object.defineProperty(T9,"Companion",{get:w9}),Object.defineProperty(T9,"$serializer",{get:A9}),Wmt.Comments_init_z65qjz$=x9,Wmt.Comments_init_crfs04$=function(t,e,n,i,o,r,s){return s=s||Object.create(T9.prototype),T9.call(s),s.commentsText=o,s.commentsEntityType=t,s.commentsEntityUid=e,s.commentsPublic=r,s.commentsPersonUid=n,s.commentsDateTimeAdded=i,s},Wmt.Comments=T9,Object.defineProperty(I9,"Companion",{get:P9}),Object.defineProperty(I9,"$serializer",{get:j9}),Wmt.CommentsWithPerson_init_hhsml3$=G9,Wmt.CommentsWithPerson=I9,Object.defineProperty(q9,"Companion",{get:W9}),Object.defineProperty(q9,"$serializer",{get:K9}),Wmt.ConnectivityStatus_init_1fsxe9$=X9,Wmt.ConnectivityStatus=q9,Object.defineProperty(J9,"Companion",{get:Z9}),Object.defineProperty(J9,"$serializer",{get:n7}),Wmt.Container_init_5cc2x1$=i7,Wmt.Container=J9,Object.defineProperty(o7,"Companion",{get:a7}),Object.defineProperty(o7,"$serializer",{get:u7}),Wmt.ContainerEntry_init_rxixqb$=h7,Wmt.ContainerEntry=o7,Object.defineProperty(d7,"Companion",{get:m7}),Object.defineProperty(d7,"$serializer",{get:$7}),Wmt.ContainerEntryFile_init_39zgnt$=E7,Wmt.ContainerEntryFile=d7,Object.defineProperty(y7,"Companion",{get:v7}),Object.defineProperty(y7,"$serializer",{get:T7}),Wmt.ContainerEntryFileUidAndPath_init_wok9wd$=L7,Wmt.ContainerEntryFileUidAndPath=y7,Object.defineProperty(z7,"Companion",{get:R7}),Object.defineProperty(z7,"$serializer",{get:I7}),Wmt.ContainerEntryWithContainerEntryFile_init_jrhsv7$=U7,Wmt.ContainerEntryWithContainerEntryFile_init_t4nsby$=function(t,n,i,o){return void 0===t&&(t=""),void 0===n&&(n=new J9),void 0===i&&(i=new d7),o=o||Object.create(z7.prototype),z7.call(o),e.callSetter(o,o7.prototype,"cePath",t),e.callSetter(o,o7.prototype,"ceCefUid",i.cefUid),e.callSetter(o,o7.prototype,"ceContainerUid",n.containerUid),o.containerEntryFile=i,o},Wmt.ContainerEntryWithContainerEntryFile=z7,Object.defineProperty(D7,"Companion",{get:k7}),Object.defineProperty(D7,"$serializer",{get:q7}),Wmt.ContainerEntryWithMd5_init_8lnkb0$=F7,Wmt.ContainerEntryWithMd5=D7,Object.defineProperty(B7,"Companion",{get:V7}),Object.defineProperty(B7,"$serializer",{get:J7}),Wmt.ContainerImportJob_init_5npc5h$=Y7,Wmt.ContainerImportJob=B7,Object.defineProperty(Q7,"Companion",{get:ett}),Object.defineProperty(Q7,"$serializer",{get:ott}),Wmt.ContainerUidAndMimeType_init_wok9wd$=rtt,Wmt.ContainerUidAndMimeType=Q7,Object.defineProperty(stt,"Companion",{get:ltt}),Object.defineProperty(stt,"$serializer",{get:dtt}),Wmt.ContainerWithContentEntry_init_nzu7tx$=ptt,Wmt.ContainerWithContentEntry=stt,Object.defineProperty(_tt,"Companion",{get:gtt}),Object.defineProperty(_tt,"$serializer",{get:ytt}),Wmt.ContentCategory_init_c2widx$=btt,Wmt.ContentCategory=_tt,Object.defineProperty(Stt,"Companion",{get:Ntt}),Object.defineProperty(Stt,"$serializer",{get:ztt}),Wmt.ContentCategorySchema_init_39zgnt$=wtt,Wmt.ContentCategorySchema=Stt,Object.defineProperty(Ott,"Companion",{get:xtt}),Object.defineProperty(Ott,"$serializer",{get:Dtt}),Wmt.ContentEntry_init_dpigsr$=Ptt,Wmt.ContentEntry=Ott,Wmt.ContentEntryButtonModel=Mtt,Object.defineProperty(ktt,"Companion",{get:qtt}),Object.defineProperty(ktt,"$serializer",{get:Wtt}),Wmt.ContentEntryContentCategoryJoin_init_9f3e5v$=Htt,Wmt.ContentEntryContentCategoryJoin=ktt,Object.defineProperty(Vtt,"Companion",{get:Jtt}),Object.defineProperty(Vtt,"$serializer",{get:Ztt}),Wmt.ContentEntryContentJobItemParams_init_2r64vr$=tet,Wmt.ContentEntryContentJobItemParams=Vtt,Object.defineProperty(eet,"Companion",{get:oet}),Object.defineProperty(eet,"$serializer",{get:aet}),Wmt.ContentEntryParentChildJoin_init_i0trgp$=cet,Wmt.ContentEntryParentChildJoin=eet,Object.defineProperty(uet,"Companion",{get:pet}),Object.defineProperty(uet,"$serializer",{get:fet}),Wmt.ContentEntryPicture_init_9c231a$=get,Wmt.ContentEntryPicture=uet,Object.defineProperty($et,"Companion",{get:bet}),Object.defineProperty($et,"$serializer",{get:Cet}),Wmt.ContentEntryRelatedEntryJoin_init_er2an1$=Net,Wmt.ContentEntryRelatedEntryJoin=$et,Object.defineProperty(Tet,"Companion",{get:wet}),Object.defineProperty(Tet,"$serializer",{get:Aet}),Wmt.ContentEntryRelatedEntryJoinWithLangName_init_l1ugyu$=xet,Wmt.ContentEntryRelatedEntryJoinWithLangName=Tet,Object.defineProperty(Iet,"Companion",{get:Pet}),Object.defineProperty(Iet,"$serializer",{get:jet}),Wmt.ContentEntryRelatedEntryJoinWithLanguage_init_cg6wni$=Get,Wmt.ContentEntryRelatedEntryJoinWithLanguage=Iet,Object.defineProperty(qet,"Companion",{get:Wet}),Object.defineProperty(qet,"$serializer",{get:Ket}),Wmt.ContentEntryStatementScoreProgress_init_jqycla$=Xet,Wmt.ContentEntryStatementScoreProgress=qet,Object.defineProperty(Jet,"Companion",{get:Zet}),Object.defineProperty(Jet,"$serializer",{get:nnt}),Wmt.ContentEntryWithBlockAndLanguage_init_bou361$=int,Wmt.ContentEntryWithBlockAndLanguage=Jet,Object.defineProperty(ont,"Companion",{get:ant}),Object.defineProperty(ont,"$serializer",{get:unt}),Wmt.ContentEntryWithLanguage_init_xwmo0w$=hnt,Wmt.ContentEntryWithLanguage=ont,Object.defineProperty(dnt,"Companion",{get:mnt}),Object.defineProperty(dnt,"$serializer",{get:$nt}),Wmt.ContentEntryWithMostRecentContainer_init_4h8fbl$=Ent,Wmt.ContentEntryWithMostRecentContainer=dnt,Object.defineProperty(ynt,"Companion",{get:vnt}),Object.defineProperty(ynt,"$serializer",{get:Tnt}),Wmt.ContentEntryWithParentChildJoinAndMostRecentContainer_init_nqvxxz$=Lnt,Wmt.ContentEntryWithParentChildJoinAndMostRecentContainer=ynt,Object.defineProperty(znt,"Companion",{get:Rnt}),Object.defineProperty(znt,"$serializer",{get:Int}),Wmt.ContentEntryWithParentChildJoinAndStatusAndMostRecentContainer_init_ae3x79$=Unt,Wmt.ContentEntryWithParentChildJoinAndStatusAndMostRecentContainer=znt,Wmt.ContentJob=Dnt,Wmt.ContentJobItem=Pnt,Wmt.ContentJobItemAndContentJob=Mnt,Wmt.ContentJobItemProgress=knt,Wmt.ContentJobItemProgressAndStatus=jnt,Object.defineProperty(Gnt,"Companion",{get:Bnt}),Object.defineProperty(Gnt,"$serializer",{get:Vnt}),Wmt.ContextXObjectStatementJoin_init_tr8ztv$=Knt,Wmt.ContextXObjectStatementJoin=Gnt,Object.defineProperty(Xnt,"Companion",{get:Qnt}),Object.defineProperty(Xnt,"$serializer",{get:eit}),Wmt.CourseAssignmentMark_init_d3gmw2$=nit,Wmt.CourseAssignmentMark=Xnt,Object.defineProperty(iit,"Companion",{get:sit}),Object.defineProperty(iit,"$serializer",{get:lit}),Wmt.CourseAssignmentSubmission_init_x3a94n$=uit,Wmt.CourseAssignmentSubmission=iit,Object.defineProperty(hit,"Companion",{get:_it}),Object.defineProperty(hit,"$serializer",{get:git}),Wmt.CourseAssignmentSubmissionAttachment_init_ujuyx0$=$it,Wmt.CourseAssignmentSubmissionAttachment=hit,Object.defineProperty(Eit,"Companion",{get:Sit}),Object.defineProperty(Eit,"$serializer",{get:Nit}),Wmt.CourseAssignmentSubmissionWithAttachment_init_caiyn$=Tit,Wmt.CourseAssignmentSubmissionWithAttachment=Eit,Object.defineProperty(Lit,"Companion",{get:Oit}),Object.defineProperty(Lit,"$serializer",{get:xit}),Wmt.CourseBlock_init_gibxq3$=Iit,Wmt.CourseBlock=Lit,Wmt.CourseBlockWithCompleteEntity=Uit,Object.defineProperty(Dit,"Companion",{get:kit}),Object.defineProperty(Dit,"$serializer",{get:qit}),Wmt.CourseBlockWithEntity_init_uvhwzu$=Fit,Wmt.CourseBlockWithEntity=Dit,Object.defineProperty(Bit,"Companion",{get:Vit}),Object.defineProperty(Bit,"$serializer",{get:Jit}),Wmt.CourseBlockWithEntityDb_init_nnoj76$=Yit,Wmt.CourseBlockWithEntityDb=Bit,Object.defineProperty(Qit,"Companion",{get:eot}),Object.defineProperty(Qit,"$serializer",{get:oot}),Wmt.CourseDiscussion_init_cv9kt$=rot,Wmt.CourseDiscussion=Qit,Object.defineProperty(sot,"Companion",{get:lot}),Object.defineProperty(sot,"$serializer",{get:dot}),Wmt.CourseGroupMember_init_bos1zz$=pot,Wmt.CourseGroupMember=sot,Object.defineProperty(_ot,"Companion",{get:got}),Object.defineProperty(_ot,"$serializer",{get:yot}),Wmt.CourseGroupMemberPerson_init_ds5ugt$=bot,Wmt.CourseGroupMemberPerson=_ot,Object.defineProperty(Sot,"Companion",{get:Not}),Object.defineProperty(Sot,"$serializer",{get:zot}),Wmt.CourseGroupSet_init_vqss6u$=wot,Wmt.CourseGroupSet=Sot,Object.defineProperty(Oot,"Companion",{get:xot}),Object.defineProperty(Oot,"$serializer",{get:Dot}),Wmt.CoursePicture_init_u6ccw5$=Pot,Wmt.CoursePicture=Oot,Object.defineProperty(Mot,"Companion",{get:Got}),Object.defineProperty(Mot,"$serializer",{get:Bot}),Wmt.CourseTerminology_init_srk0xd$=Wot,Wmt.CourseTerminology=Mot,Object.defineProperty(Hot,"Companion",{get:Xot}),Object.defineProperty(Hot,"$serializer",{get:Qot}),Wmt.DiscussionPost_init_92kn7p$=Zot,Wmt.DiscussionPost=Hot,Object.defineProperty(trt,"Companion",{get:irt}),Object.defineProperty(trt,"$serializer",{get:srt}),Wmt.DiscussionPostWithDetails_init_l7rnc3$=art,Wmt.DiscussionPostWithDetails=trt,Object.defineProperty(crt,"Companion",{get:hrt}),Object.defineProperty(crt,"$serializer",{get:_rt}),Wmt.DiscussionTopic_init_32b204$=mrt,Wmt.DiscussionTopic=crt,Object.defineProperty(frt,"Companion",{get:Ert}),Object.defineProperty(frt,"$serializer",{get:Srt}),Wmt.DiscussionTopicListDetail_init_17zyhd$=vrt,Wmt.DiscussionTopicListDetail=frt,Object.defineProperty(Crt,"Companion",{get:Lrt}),Object.defineProperty(Crt,"$serializer",{get:Ort}),Wmt.DistinctCategorySchema_init_dxjhgp$=Rrt,Wmt.DistinctCategorySchema=Crt,Wmt.DownloadJobSizeInfo=Art,Object.defineProperty(xrt,"Companion",{get:Drt}),Object.defineProperty(xrt,"$serializer",{get:krt}),Wmt.EntityRole_init_bblqnd$=jrt,Wmt.EntityRole=xrt,Object.defineProperty(Grt,"Companion",{get:Brt}),Object.defineProperty(Grt,"$serializer",{get:Vrt}),Wmt.EntityRoleWithNameAndRole_init_iopo7d$=Krt,Wmt.EntityRoleWithNameAndRole=Grt,Object.defineProperty(Xrt,"Companion",{get:Qrt}),Wmt.ErrorReport=Xrt,Object.defineProperty(Zrt,"Companion",{get:nst}),Object.defineProperty(Zrt,"$serializer",{get:rst}),Wmt.GroupLearningSession_init_s2lemw$=sst,Wmt.GroupLearningSession=Zrt,Object.defineProperty(ast,"Companion",{get:ust}),Object.defineProperty(ast,"$serializer",{get:pst}),Wmt.Holiday_init_3tvbti$=_st,Wmt.Holiday=ast,Object.defineProperty(mst,"Companion",{get:$st}),Object.defineProperty(mst,"$serializer",{get:bst}),Wmt.HolidayCalendar_init_qqafy7$=Sst,Wmt.HolidayCalendar=mst,Object.defineProperty(vst,"Companion",{get:Tst}),Object.defineProperty(vst,"$serializer",{get:wst}),Wmt.HolidayCalendarWithNumEntries_init_gr0z09$=Ost,Wmt.HolidayCalendarWithNumEntries=vst,Object.defineProperty(Rst,"Companion",{get:Ist}),Object.defineProperty(Rst,"$serializer",{get:Pst}),Wmt.LangUidAndName_init_wok9wd$=Mst,Wmt.LangUidAndName=Rst,Object.defineProperty(kst,"Companion",{get:qst}),Object.defineProperty(kst,"$serializer",{get:Wst}),Wmt.Language_init_jyfex9$=Hst,Wmt.Language=kst,Object.defineProperty(Vst,"Companion",{get:Jst}),Object.defineProperty(Vst,"$serializer",{get:Zst}),Wmt.LanguageVariant_init_lz0lyi$=tat,Wmt.LanguageVariant=Vst,Object.defineProperty(eat,"Companion",{get:oat}),Object.defineProperty(eat,"$serializer",{get:aat}),Wmt.LearnerGroup_init_a6twsi$=cat,Wmt.LearnerGroup=eat,Object.defineProperty(lat,"Companion",{get:dat}),Object.defineProperty(lat,"$serializer",{get:mat}),Wmt.LearnerGroupMember_init_rad0to$=fat,Wmt.LearnerGroupMember=lat,Object.defineProperty(gat,"Companion",{get:yat}),Object.defineProperty(gat,"$serializer",{get:vat}),Wmt.LearnerGroupMemberWithPerson_init_8rfpck$=Cat,Wmt.LearnerGroupMemberWithPerson=gat,Object.defineProperty(Nat,"Companion",{get:zat}),Object.defineProperty(Nat,"$serializer",{get:Rat}),Wmt.LeavingReason_init_154yko$=Aat,Wmt.LeavingReason=Nat,Object.defineProperty(xat,"Companion",{get:Dat}),Object.defineProperty(xat,"$serializer",{get:kat}),Wmt.Message_init_zb79hy$=jat,Wmt.Message_init_cd114f$=function(t,e,n,i,o,r){return r=r||Object.create(xat.prototype),xat.call(r),r.messageSenderPersonUid=t,r.messageTableId=e,r.messageEntityUid=n,r.messageText=i,r.messageTimestamp=J(),r.messageClazzUid=o,r},Wmt.Message_init_65ss6k$=function(t,e,n,i,o){return o=o||Object.create(xat.prototype),xat.call(o),o.messageSenderPersonUid=t,o.messageTableId=e,o.messageEntityUid=n,o.messageText=i,o.messageTimestamp=J(),o},Wmt.Message=xat,Object.defineProperty(Gat,"Companion",{get:Bat}),Object.defineProperty(Gat,"$serializer",{get:Vat}),Wmt.MessageRead_init_m2fh08$=Kat,Wmt.MessageRead_init_b9bd0d$=function(t,e,n,i){return i=i||Object.create(Gat.prototype),Gat.call(i),i.messageReadPersonUid=t,i.messageReadMessageUid=e,i.messageReadEntityUid=n,i},Wmt.MessageRead=Gat,Object.defineProperty(Xat,"Companion",{get:Qat}),Object.defineProperty(Xat,"$serializer",{get:ect}),Wmt.MessageWithPerson_init_ux2gik$=nct,Wmt.MessageWithPerson=Xat,Object.defineProperty(ict,"Companion",{get:sct}),Object.defineProperty(ict,"$serializer",{get:lct}),Wmt.Moment_init_ahr5ei$=uct,Wmt.Moment=ict,Object.defineProperty(hct,"Companion",{get:_ct}),Object.defineProperty(hct,"$serializer",{get:gct}),Wmt.DateRangeMoment_init_4tfctt$=$ct,Wmt.DateRangeMoment=hct,Object.defineProperty(Ect,"Companion",{get:Sct}),Object.defineProperty(Ect,"$serializer",{get:Nct}),Wmt.NetworkNode_init_81onh5$=Tct,Wmt.NetworkNode=Ect,Wmt.ParentEnrolmentRequired=Lct,Object.defineProperty(zct,"Companion",{get:Rct}),Object.defineProperty(zct,"$serializer",{get:Ict}),Wmt.Person_init_qnckxs$=Uct,Wmt.Person=zct,Object.defineProperty(Dct,"Companion",{get:kct}),Object.defineProperty(Dct,"$serializer",{get:qct}),Wmt.PersonAuth_init_831c0l$=Fct,Wmt.PersonAuth=Dct,Object.defineProperty(Bct,"Companion",{get:Vct}),Wmt.PersonAuth2=Bct,Object.defineProperty(Kct,"Companion",{get:Yct}),Object.defineProperty(Kct,"$serializer",{get:tlt}),Wmt.PersonGroup_init_n7br9l$=elt,Wmt.PersonGroup_init_61zpoe$=function(t,e){return e=e||Object.create(Kct.prototype),Kct.call(e),e.groupName=t,e},Wmt.PersonGroup=Kct,Wmt.PersonGroupAssignmentSummary=nlt,Object.defineProperty(ilt,"Companion",{get:slt}),Object.defineProperty(ilt,"$serializer",{get:llt}),Wmt.PersonGroupMember_init_ivbeas$=ult,Wmt.PersonGroupMember_init_3pjtqy$=function(t,e,n){return n=n||Object.create(ilt.prototype),ilt.call(n),n.groupMemberPersonUid=t,n.groupMemberGroupUid=e,n},Wmt.PersonGroupMember=ilt,Object.defineProperty(hlt,"Companion",{get:_lt}),Object.defineProperty(hlt,"$serializer",{get:glt}),Wmt.PersonParentJoin_init_d7x67w$=$lt,Wmt.PersonParentJoin=hlt,Object.defineProperty(Elt,"Companion",{get:Slt}),Object.defineProperty(Elt,"$serializer",{get:Nlt}),Wmt.PersonParentJoinWithMinorPerson_init_r55ib0$=Tlt,Wmt.PersonParentJoinWithMinorPerson=Elt,Object.defineProperty(Llt,"Companion",{get:Olt}),Object.defineProperty(Llt,"$serializer",{get:xlt}),Wmt.PersonPicture_init_u6ccw5$=Ilt,Wmt.PersonPicture=Llt,Wmt.PersonUidAndPasswordHash=Ult,Object.defineProperty(Dlt,"Companion",{get:klt}),Object.defineProperty(Dlt,"$serializer",{get:qlt}),Wmt.PersonWithAccount_init_px30uh$=Flt,Wmt.PersonWithAccount=Dlt,Object.defineProperty(Blt,"Companion",{get:Vlt}),Object.defineProperty(Blt,"$serializer",{get:Jlt}),Wmt.PersonWithAttemptsSummary_init_douqjk$=Ylt,Wmt.PersonWithAttemptsSummary=Blt,Object.defineProperty(Qlt,"Companion",{get:eut}),Object.defineProperty(Qlt,"$serializer",{get:out}),Wmt.PersonWithClazzEnrolmentDetails_init_p9duft$=rut,Wmt.PersonWithClazzEnrolmentDetails=Qlt,Object.defineProperty(sut,"Companion",{get:lut}),Object.defineProperty(sut,"$serializer",{get:dut}),Wmt.PersonWithDisplayDetails_init_qnckxs$=put,Wmt.PersonWithDisplayDetails=sut,Object.defineProperty(_ut,"Companion",{get:gut}),Object.defineProperty(_ut,"$serializer",{get:yut}),Wmt.PersonWithPersonParentJoin_init_1l43lw$=but,Wmt.PersonWithPersonParentJoin=_ut,Object.defineProperty(Sut,"Companion",{get:Nut}),Object.defineProperty(Sut,"$serializer",{get:zut}),Wmt.PersonWithSessionsDisplay_init_j33i2l$=wut,Wmt.PersonWithSessionsDisplay=Sut,Object.defineProperty(Out,"Companion",{get:xut}),Object.defineProperty(Out,"$serializer",{get:Dut}),Wmt.Report_init_7oz21j$=Put,Wmt.Report=Out,Object.defineProperty(Mut,"Companion",{get:Gut}),Object.defineProperty(Mut,"$serializer",{get:But}),Wmt.ReportFilter_init_5nv23s$=Wut,Wmt.ReportFilter=Mut,Object.defineProperty(Hut,"Companion",{get:Xut}),Object.defineProperty(Hut,"$serializer",{get:Qut}),Wmt.ReportSeries_init_d33ox0$=Zut,Wmt.ReportSeries=Hut,Object.defineProperty(tht,"Companion",{get:iht}),Object.defineProperty(tht,"$serializer",{get:sht}),Wmt.ReportWithSeriesWithFilters_init_216vz6$=aht,Wmt.ReportWithSeriesWithFilters_init_bj006k$=function(t,e,n){return void 0===e&&(e=At()),n=n||Object.create(tht.prototype),tht.call(n),n.reportUid=t.reportUid,n.reportTitle=t.reportTitle,n.reportOwnerUid=t.reportOwnerUid,n.reportInactive=t.reportInactive,n.fromDate=t.fromDate,n.toDate=t.toDate,n.xAxis=t.xAxis,n.reportSeries=t.reportSeries,n.reportSeriesWithFiltersList=e,n},Wmt.ReportWithSeriesWithFilters=tht,Object.defineProperty(cht,"Companion",{get:hht}),Object.defineProperty(cht,"$serializer",{get:_ht}),Wmt.Role_init_1ppb12$=mht,Wmt.Role=cht,Object.defineProperty(fht,"Companion",{get:Eht}),Object.defineProperty(fht,"$serializer",{get:Sht}),Wmt.Schedule_init_5i1y12$=vht,Wmt.Schedule=fht,Object.defineProperty(Cht,"Companion",{get:Lht}),Object.defineProperty(Cht,"$serializer",{get:Oht}),Wmt.School_init_xis46q$=Rht,Wmt.School=Cht,Object.defineProperty(Aht,"Companion",{get:Uht}),Object.defineProperty(Aht,"$serializer",{get:Mht}),Wmt.SchoolMember_init_4enaee$=kht,Wmt.SchoolMember_init=jht,Wmt.SchoolMember=Aht,Object.defineProperty(Ght,"Companion",{get:Bht}),Object.defineProperty(Ght,"$serializer",{get:Vht}),Wmt.SchoolMemberWithPerson_init_6lho8i$=Kht,Wmt.SchoolMemberWithPerson=Ght,Object.defineProperty(Xht,"Companion",{get:Qht}),Object.defineProperty(Xht,"$serializer",{get:edt}),Wmt.SchoolWithHolidayCalendar_init_dmiohf$=ndt,Wmt.SchoolWithHolidayCalendar=Xht,Object.defineProperty(idt,"Companion",{get:sdt}),Object.defineProperty(idt,"$serializer",{get:ldt}),Wmt.SchoolWithMemberCountAndLocation_init_7nhm5p$=udt,Wmt.SchoolWithMemberCountAndLocation=idt,Object.defineProperty(hdt,"Companion",{get:_dt}),Object.defineProperty(hdt,"$serializer",{get:gdt}),Wmt.ScopedGrant_init_lqgq9k$=$dt,Wmt.ScopedGrant=hdt,Object.defineProperty(Edt,"Companion",{get:Sdt}),Object.defineProperty(Edt,"$serializer",{get:Ndt}),Wmt.ScopedGrantAndName_init_nyvobj$=Tdt,Wmt.ScopedGrantAndName=Edt,Object.defineProperty(Ldt,"Companion",{get:Odt}),Object.defineProperty(Ldt,"$serializer",{get:xdt}),Wmt.ScopedGrantWithName_init_4xluz3$=Idt,Wmt.ScopedGrantWithName=Ldt,Object.defineProperty(Udt,"Companion",{get:Mdt}),Object.defineProperty(Udt,"$serializer",{get:Gdt}),Wmt.ScrapeQueueItem_init_m1ua1g$=qdt,Wmt.ScrapeQueueItem=Udt,Object.defineProperty(Fdt,"Companion",{get:Hdt}),Object.defineProperty(Fdt,"$serializer",{get:Xdt}),Wmt.ScrapeQueueItemWithScrapeRun_init_wbynt4$=Jdt,Wmt.ScrapeQueueItemWithScrapeRun=Fdt,Object.defineProperty(Ydt,"Companion",{get:tpt}),Object.defineProperty(Ydt,"$serializer",{get:ipt}),Wmt.ScrapeRun_init_lun91x$=opt,Wmt.ScrapeRun=Ydt,Object.defineProperty(rpt,"Companion",{get:cpt}),Object.defineProperty(rpt,"$serializer",{get:hpt}),Wmt.Site_init_48f30n$=dpt,Wmt.Site=rpt,Object.defineProperty(ppt,"Companion",{get:fpt}),Object.defineProperty(ppt,"$serializer",{get:Ept}),Wmt.SiteTerms_init_t45fgv$=ypt,Wmt.SiteTerms=ppt,Object.defineProperty(bpt,"Companion",{get:Cpt}),Object.defineProperty(bpt,"$serializer",{get:Lpt}),Wmt.SiteTermsWithLanguage_init_r8z4ro$=zpt,Wmt.SiteTermsWithLanguage=bpt,Object.defineProperty(wpt,"Companion",{get:Apt}),Object.defineProperty(wpt,"$serializer",{get:Upt}),Wmt.StateContentEntity_init_a64tuj$=Dpt,Wmt.StateContentEntity_init=Ppt,Wmt.StateContentEntity=wpt,Object.defineProperty(Mpt,"Companion",{get:Gpt}),Object.defineProperty(Mpt,"$serializer",{get:Bpt}),Wmt.StateEntity_init_pvro0d$=Wpt,Wmt.StateEntity=Mpt,Object.defineProperty(Hpt,"Companion",{get:Xpt}),Object.defineProperty(Hpt,"$serializer",{get:Qpt}),Wmt.StatementEntity_init_v10nt8$=Zpt,Wmt.StatementEntity=Hpt,Object.defineProperty(t_t,"Companion",{get:i_t}),Object.defineProperty(t_t,"$serializer",{get:s_t}),Wmt.StatementEntityWithDisplayDetails_init_kicpsd$=a_t,Wmt.StatementEntityWithDisplayDetails=t_t,Object.defineProperty(c_t,"Companion",{get:h_t}),Object.defineProperty(c_t,"$serializer",{get:__t}),Wmt.StatementReportData_init_hn5lyq$=m_t,Wmt.StatementReportData=c_t,Object.defineProperty(f_t,"Companion",{get:E_t}),Object.defineProperty(f_t,"$serializer",{get:S_t}),Wmt.StatementWithSessionDetailDisplay_init_woa8gx$=v_t,Wmt.StatementWithSessionDetailDisplay=f_t,Object.defineProperty(C_t,"Companion",{get:L_t}),Object.defineProperty(C_t,"$serializer",{get:O_t}),Wmt.TerminologyEntry_init_7574dk$=R_t,Wmt.TerminologyEntry=C_t,Object.defineProperty(A_t,"Companion",{get:U_t}),Object.defineProperty(A_t,"$serializer",{get:M_t}),Wmt.UidAndLabel_init_wok9wd$=k_t,Wmt.UidAndLabel=A_t,Object.defineProperty(j_t,"Companion",{get:F_t}),Object.defineProperty(j_t,"$serializer",{get:H_t}),Wmt.UmAccount_init_3u1mmq$=V_t,Wmt.UmAccount=j_t,Object.defineProperty(K_t,"Companion",{get:Y_t}),Object.defineProperty(K_t,"$serializer",{get:tmt}),Wmt.UserSession_init_4px92c$=emt,Wmt.UserSession=K_t,Wmt.UserSessionAndPerson=nmt,Object.defineProperty(imt,"Companion",{get:smt}),Object.defineProperty(imt,"$serializer",{get:lmt}),Wmt.VerbDisplay_init_qq2z10$=umt,Wmt.VerbDisplay=imt,Object.defineProperty(hmt,"Companion",{get:_mt}),Object.defineProperty(hmt,"$serializer",{get:gmt}),Wmt.VerbEntity_init_1h4mlv$=$mt,Wmt.VerbEntity=hmt,Object.defineProperty(Emt,"Companion",{get:Smt}),Object.defineProperty(Emt,"$serializer",{get:Nmt}),Wmt.XLangMapEntry_init_keqouy$=Tmt,Wmt.XLangMapEntry=Emt,Object.defineProperty(Lmt,"Companion",{get:Omt}),Object.defineProperty(Lmt,"$serializer",{get:xmt}),Wmt.XObjectEntity_init_92etha$=Imt,Wmt.XObjectEntity_init=Umt,Wmt.XObjectEntity=Lmt,Hmt.addSyncCallback_oam1fn$=function(t,e){return t.addCallback_zdc9ji$(new Nn(e.nodeId)),t},Hmt.getFirstValue_z9yzxd$=function(t,e,n){var i=new Pmt(t,e);return n?i:i.doResume(null)},C4.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,A4.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,j4.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,K4.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,n5.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,u5.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,$5.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,T5.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,I5.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,q5.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,J5.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,o8.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,d8.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,y8.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,z8.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,D8.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,B8.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Q8.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,s9.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,_9.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,S9.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,O9.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,M9.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,H9.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,t7.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,c7.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,f7.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,C7.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,A7.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,j7.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,K7.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,ntt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,utt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,$tt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Ttt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Itt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Ftt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Ytt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,ret.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,_et.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Set.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Oet.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Met.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Het.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,tnt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,cnt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,fnt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Cnt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Ant.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Wnt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Znt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,ait.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,mit.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,vit.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Rit.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,jit.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kit.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,not.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,uot.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,$ot.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Tot.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Iot.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,qot.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Jot.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,ort.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,drt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,yrt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,zrt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Prt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Wrt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,ist.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,hst.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Est.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Lst.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Ust.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Fst.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Yst.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,rat.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,pat.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,bat.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,wat.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Pat.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Wat.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Zat.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,act.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,mct.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,vct.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Act.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,jct.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Qct.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,alt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,mlt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,vlt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Rlt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,jlt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Klt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,nut.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,uut.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,$ut.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Tut.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Iut.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,qut.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Jut.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,oht.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,dht.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,yht.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,zht.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Dht.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Wht.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Zht.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,adt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,mdt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,vdt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Rdt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,kdt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Vdt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,ept.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,lpt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,gpt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Npt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,xpt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,qpt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Jpt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,o_t.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,d_t.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,y_t.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,z_t.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,D_t.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,B_t.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Q_t.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,amt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,mmt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,vmt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Rmt.prototype.typeParametersSerializers=Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,Kt.prototype.typeParametersSerializers,H6=new It(91,92,(function(t){var e;return t.execSQL_61zpoe$("ALTER TABLE DoorNode ADD COLUMN rel INTEGER NOT NULL DEFAULT 2"),t.execSQL_61zpoe$("ALTER TABLE Person ADD COLUMN personType INTEGER NOT NULL DEFAULT 0"),t.execSQL_61zpoe$("DROP TABLE ChangeLog"),t.execSQL_61zpoe$("DROP TABLE SyncResult"),t.execSQL_61zpoe$("DROP TABLE TableSyncStatus"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS ClazzLog_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS ClazzLogAttendanceRecord_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS Schedule_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS DateRange_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS HolidayCalendar_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS Holiday_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS ScheduledCheck_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS AuditLog_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS CustomField_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS CustomFieldValue_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS CustomFieldValueOption_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS Person_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS Clazz_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS ClazzEnrolment_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS LeavingReason_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS PersonCustomFieldValue_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS ContentEntry_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS ContentEntryContentCategoryJoin_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS ContentEntryParentChildJoin_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS ContentEntryRelatedEntryJoin_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS ContentCategorySchema_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS ContentCategory_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS Language_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS LanguageVariant_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS Role_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS EntityRole_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS PersonGroup_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS PersonGroupMember_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS PersonPicture_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS Container_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS VerbEntity_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS XObjectEntity_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS StatementEntity_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS ContextXObjectStatementJoin_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS AgentEntity_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS StateEntity_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS StateContentEntity_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS XLangMapEntry_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS School_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS SchoolMember_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS Comments_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS Report_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS Site_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS LearnerGroup_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS LearnerGroupMember_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS GroupLearningSession_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS SiteTerms_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS ClazzContentJoin_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS PersonParentJoin_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS ScopedGrant_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS ErrorReport_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS ClazzAssignment_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS ClazzAssignmentContentJoin_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS PersonAuth2_trk"),t.execSQL_61zpoe$("DROP TABLE IF EXISTS UserSession_trk"),1===Tt(t)?(function(t){var e=t;e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_14"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_14"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_14"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_14"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_15"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_15"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_15"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_15"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_21"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_21"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_21"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_21"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_17"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_17"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_17"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_17"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_28"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_28"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_28"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_28"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_99"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_99"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_99"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_99"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_173"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_173"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_173"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_173"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_53"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_53"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_53"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_53"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_56"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_56"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_56"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_56"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_57"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_57"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_57"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_57"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_55"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_55"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_55"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_55"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_9"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_9"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_9"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_9"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_6"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_6"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_6"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_6"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_65"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_65"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_65"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_65"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_410"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_410"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_410"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_410"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_178"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_178"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_178"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_178"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_42"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_42"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_42"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_42"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_3"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_3"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_3"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_3"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_7"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_7"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_7"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_7"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_8"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_8"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_8"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_8"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_2"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_2"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_2"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_2"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_1"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_1"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_1"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_1"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_13"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_13"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_13"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_13"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_10"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_10"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_10"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_10"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_45"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_45"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_45"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_45"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_47"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_47"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_47"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_47"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_43"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_43"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_43"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_43"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_44"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_44"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_44"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_44"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_50"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_50"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_50"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_50"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_51"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_51"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_51"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_51"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_62"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_62"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_62"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_62"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_64"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_64"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_64"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_64"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_60"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_60"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_60"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_60"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_66"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_66"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_66"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_66"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_68"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_68"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_68"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_68"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_70"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_70"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_70"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_70"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_72"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_72"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_72"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_72"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_74"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_74"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_74"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_74"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_164"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_164"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_164"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_164"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_200"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_200"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_200"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_200"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_208"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_208"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_208"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_208"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_101"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_101"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_101"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_101"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_189"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_189"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_189"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_189"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_301"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_301"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_301"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_301"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_300"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_300"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_300"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_300"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_302"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_302"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_302"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_302"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_272"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_272"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_272"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_272"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_134"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_134"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_134"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_134"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_512"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_512"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_512"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_512"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_48"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_48"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_48"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_48"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_419"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_419"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_419"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_419"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_520"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_520"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_520"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_520"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_521"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_521"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_521"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_521"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_678"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_678"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_678"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_678"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_LOC_679"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS INS_PRI_679"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_LOC_679"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS UPD_PRI_679")}(t),t.execSQL_61zpoe$("CREATE TABLE IF NOT EXISTS ReplicationStatus ( tableId INTEGER NOT NULL , priority INTEGER NOT NULL , nodeId INTEGER NOT NULL , lastRemoteChangeTime INTEGER NOT NULL , lastFetchReplicationCompleteTime INTEGER NOT NULL , lastLocalChangeTime INTEGER NOT NULL , lastSendReplicationCompleteTime INTEGER NOT NULL , repStatusId INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),t.execSQL_61zpoe$("CREATE UNIQUE INDEX table_node_idx ON ReplicationStatus (tableId, nodeId)"),t.execSQL_61zpoe$("CREATE TABLE IF NOT EXISTS ChangeLog ( chTableId INTEGER NOT NULL , chEntityPk INTEGER NOT NULL , chType INTEGER NOT NULL , PRIMARY KEY (chTableId, chEntityPk) )")):(function(t){var e=t;e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_14_trig ON clazzlog"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_15_trig ON clazzlogattendancerecord"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_15_trig ON clazzlogattendancerecord"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_21_trig ON schedule"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_21_trig ON schedule"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_17_trig ON daterange"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_17_trig ON daterange"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_28_trig ON holidaycalendar"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_28_trig ON holidaycalendar"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_99_trig ON holiday"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_99_trig ON holiday"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_173_trig ON scheduledcheck"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_173_trig ON scheduledcheck"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_53_trig ON auditlog"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_53_trig ON auditlog"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_56_trig ON customfield"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_56_trig ON customfield"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_57_trig ON customfieldvalue"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_57_trig ON customfieldvalue"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_55_trig ON customfieldvalueoption"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_55_trig ON customfieldvalueoption"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_9_trig ON person"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_9_trig ON person"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_6_trig ON clazz"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_6_trig ON clazz"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_65_trig ON clazzenrolment"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_65_trig ON clazzenrolment"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_410_trig ON leavingreason"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_410_trig ON leavingreason"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_178_trig ON personcustomfieldvalue"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_178_trig ON personcustomfieldvalue"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_42_trig ON contententry"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_42_trig ON contententry"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_3_trig ON contententrycontentcategoryjoin"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_3_trig ON contententrycontentcategoryjoin"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_7_trig ON contententryparentchildjoin"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_7_trig ON contententryparentchildjoin"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_8_trig ON contententryrelatedentryjoin"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_8_trig ON contententryrelatedentryjoin"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_2_trig ON contentcategoryschema"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_2_trig ON contentcategoryschema"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_1_trig ON contentcategory"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_1_trig ON contentcategory"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_13_trig ON language"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_13_trig ON language"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_10_trig ON languagevariant"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_10_trig ON languagevariant"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_45_trig ON role"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_45_trig ON role"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_47_trig ON entityrole"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_47_trig ON entityrole"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_43_trig ON persongroup"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_43_trig ON persongroup"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_44_trig ON persongroupmember"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_44_trig ON persongroupmember"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_50_trig ON personpicture"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_50_trig ON personpicture"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_51_trig ON container"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_51_trig ON container"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_62_trig ON verbentity"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_62_trig ON verbentity"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_64_trig ON xobjectentity"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_64_trig ON xobjectentity"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_60_trig ON statemententity"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_60_trig ON statemententity"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_66_trig ON contextxobjectstatementjoin"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_66_trig ON contextxobjectstatementjoin"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_68_trig ON agententity"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_68_trig ON agententity"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_70_trig ON stateentity"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_70_trig ON stateentity"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_72_trig ON statecontententity"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_72_trig ON statecontententity"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_74_trig ON xlangmapentry"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_74_trig ON xlangmapentry"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_164_trig ON school"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_164_trig ON school"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_200_trig ON schoolmember"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_200_trig ON schoolmember"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_208_trig ON comments"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_208_trig ON comments"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_101_trig ON report"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_101_trig ON report"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_189_trig ON site"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_189_trig ON site"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_301_trig ON learnergroup"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_301_trig ON learnergroup"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_300_trig ON learnergroupmember"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_300_trig ON learnergroupmember"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_302_trig ON grouplearningsession"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_302_trig ON grouplearningsession"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_272_trig ON siteterms"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_272_trig ON siteterms"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_134_trig ON clazzcontentjoin"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_134_trig ON clazzcontentjoin"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_512_trig ON personparentjoin"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_512_trig ON personparentjoin"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_48_trig ON scopedgrant"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_48_trig ON scopedgrant"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_419_trig ON errorreport"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_419_trig ON errorreport"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_520_trig ON clazzassignment"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_520_trig ON clazzassignment"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_521_trig ON clazzassignmentcontentjoin"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_521_trig ON clazzassignmentcontentjoin"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_678_trig ON personauth2"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_678_trig ON personauth2"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_679_trig ON usersession"),e.execSQL_61zpoe$("DROP TRIGGER IF EXISTS inccsn_679_trig ON usersession")}(t),(e=t).execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_101_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_10_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_134_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_13_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_14_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_15_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_164_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_173_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_178_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_17_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_189_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_1_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_200_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_208_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_21_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_272_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_28_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_2_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_300_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_301_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_302_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_3_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_410_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_419_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_42_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_43_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_44_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_45_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_47_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_48_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_50_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_512_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_51_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_520_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_521_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_53_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_55_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_56_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_57_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_60_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_62_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_64_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_65_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_66_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_678_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_679_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_68_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_6_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_70_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_72_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_74_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_7_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_8_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_99_fn"),e.execSQL_61zpoe$("DROP FUNCTION IF EXISTS inccsn_9_fn"),t.execSQL_61zpoe$("CREATE TABLE IF NOT EXISTS ChangeLog ( chTableId INTEGER NOT NULL , chEntityPk BIGINT NOT NULL , chType INTEGER NOT NULL , PRIMARY KEY (chTableId, chEntityPk) )"),t.execSQL_61zpoe$("CREATE TABLE IF NOT EXISTS ReplicationStatus ( tableId INTEGER NOT NULL , priority INTEGER NOT NULL , nodeId BIGINT NOT NULL , lastRemoteChangeTime BIGINT NOT NULL , lastFetchReplicationCompleteTime BIGINT NOT NULL , lastLocalChangeTime BIGINT NOT NULL , lastSendReplicationCompleteTime BIGINT NOT NULL , repStatusId SERIAL PRIMARY KEY NOT NULL )"),t.execSQL_61zpoe$("CREATE UNIQUE INDEX table_node_idx ON ReplicationStatus (tableId, nodeId)"),t.execSQL_61zpoe$("ALTER TABLE DoorNode ALTER COLUMN nodeId TYPE BIGINT"),t.execSQL_61zpoe$("ALTER TABLE SyncNode ALTER COLUMN nodeClientId TYPE BIGINT"),t.execSQL_61zpoe$("ALTER TABLE UserSession ALTER COLUMN usClientNodeId TYPE BIGINT")),function(t){var e=F();e.add_11rb$("DROP TABLE IF EXISTS PersonCustomFieldValue");var n=t;if(1===Tt(n))e.add_11rb$(" CREATE TABLE IF NOT EXISTS ClazzLogReplicate ( clPk INTEGER NOT NULL, clVersionId INTEGER NOT NULL DEFAULT 0, clDestination INTEGER NOT NULL, clPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (clPk, clDestination)) "),e.add_11rb$(" CREATE INDEX index_ClazzLogReplicate_clPk_clDestination_clVersionId ON ClazzLogReplicate (clPk, clDestination, clVersionId) "),e.add_11rb$(" CREATE INDEX index_ClazzLogReplicate_clDestination_clPending ON ClazzLogReplicate (clDestination, clPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_14 AFTER INSERT ON ClazzLog BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 14 AS chTableId, NEW.clazzLogUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 14 AND chEntityPk = NEW.clazzLogUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_14 AFTER UPDATE ON ClazzLog BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 14 AS chTableId, NEW.clazzLogUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 14 AND chEntityPk = NEW.clazzLogUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_14 AFTER DELETE ON ClazzLog BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 14 AS chTableId, OLD.clazzLogUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 14 AND chEntityPk = OLD.clazzLogUid); END "),e.add_11rb$("CREATE VIEW ClazzLog_ReceiveView AS SELECT ClazzLog.*, ClazzLogReplicate.* FROM ClazzLog LEFT JOIN ClazzLogReplicate ON ClazzLogReplicate.clPk = ClazzLog.clazzLogUid "),e.add_11rb$(" CREATE TRIGGER clazzlog_remote_insert_ins INSTEAD OF INSERT ON ClazzLog_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ClazzLog(clazzLogUid, clazzLogClazzUid, logDate, timeRecorded, clazzLogDone, cancellationNote, clazzLogCancelled, clazzLogNumPresent, clazzLogNumAbsent, clazzLogNumPartial, clazzLogScheduleUid, clazzLogStatusFlag, clazzLogMSQN, clazzLogLCSN, clazzLogLCB, clazzLogLastChangedTime) VALUES (NEW.clazzLogUid, NEW.clazzLogClazzUid, NEW.logDate, NEW.timeRecorded, NEW.clazzLogDone, NEW.cancellationNote, NEW.clazzLogCancelled, NEW.clazzLogNumPresent, NEW.clazzLogNumAbsent, NEW.clazzLogNumPartial, NEW.clazzLogScheduleUid, NEW.clazzLogStatusFlag, NEW.clazzLogMSQN, NEW.clazzLogLCSN, NEW.clazzLogLCB, NEW.clazzLogLastChangedTime) /*psql ON CONFLICT (clazzLogUid) DO UPDATE SET clazzLogClazzUid = EXCLUDED.clazzLogClazzUid, logDate = EXCLUDED.logDate, timeRecorded = EXCLUDED.timeRecorded, clazzLogDone = EXCLUDED.clazzLogDone, cancellationNote = EXCLUDED.cancellationNote, clazzLogCancelled = EXCLUDED.clazzLogCancelled, clazzLogNumPresent = EXCLUDED.clazzLogNumPresent, clazzLogNumAbsent = EXCLUDED.clazzLogNumAbsent, clazzLogNumPartial = EXCLUDED.clazzLogNumPartial, clazzLogScheduleUid = EXCLUDED.clazzLogScheduleUid, clazzLogStatusFlag = EXCLUDED.clazzLogStatusFlag, clazzLogMSQN = EXCLUDED.clazzLogMSQN, clazzLogLCSN = EXCLUDED.clazzLogLCSN, clazzLogLCB = EXCLUDED.clazzLogLCB, clazzLogLastChangedTime = EXCLUDED.clazzLogLastChangedTime */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ClazzLogAttendanceRecordReplicate ( clarPk INTEGER NOT NULL, clarVersionId INTEGER NOT NULL DEFAULT 0, clarDestination INTEGER NOT NULL, clarPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (clarPk, clarDestination)) "),e.add_11rb$(" CREATE INDEX index_ClazzLogAttendanceRecordReplicate_clarPk_clarDestination_clarVersionId ON ClazzLogAttendanceRecordReplicate (clarPk, clarDestination, clarVersionId) "),e.add_11rb$(" CREATE INDEX index_ClazzLogAttendanceRecordReplicate_clarDestination_clarPending ON ClazzLogAttendanceRecordReplicate (clarDestination, clarPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_15 AFTER INSERT ON ClazzLogAttendanceRecord BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 15 AS chTableId, NEW.clazzLogAttendanceRecordUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 15 AND chEntityPk = NEW.clazzLogAttendanceRecordUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_15 AFTER UPDATE ON ClazzLogAttendanceRecord BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 15 AS chTableId, NEW.clazzLogAttendanceRecordUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 15 AND chEntityPk = NEW.clazzLogAttendanceRecordUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_15 AFTER DELETE ON ClazzLogAttendanceRecord BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 15 AS chTableId, OLD.clazzLogAttendanceRecordUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 15 AND chEntityPk = OLD.clazzLogAttendanceRecordUid); END "),e.add_11rb$("CREATE VIEW ClazzLogAttendanceRecord_ReceiveView AS SELECT ClazzLogAttendanceRecord.*, ClazzLogAttendanceRecordReplicate.* FROM ClazzLogAttendanceRecord LEFT JOIN ClazzLogAttendanceRecordReplicate ON ClazzLogAttendanceRecordReplicate.clarPk = ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid "),e.add_11rb$(" CREATE TRIGGER clazzlogattendancerecord_remote_insert_ins INSTEAD OF INSERT ON ClazzLogAttendanceRecord_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ClazzLogAttendanceRecord(clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime) VALUES (NEW.clazzLogAttendanceRecordUid, NEW.clazzLogAttendanceRecordClazzLogUid, NEW.clazzLogAttendanceRecordPersonUid, NEW.attendanceStatus, NEW.clazzLogAttendanceRecordMasterChangeSeqNum, NEW.clazzLogAttendanceRecordLocalChangeSeqNum, NEW.clazzLogAttendanceRecordLastChangedBy, NEW.clazzLogAttendanceRecordLastChangedTime) /*psql ON CONFLICT (clazzLogAttendanceRecordUid) DO UPDATE SET clazzLogAttendanceRecordClazzLogUid = EXCLUDED.clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid = EXCLUDED.clazzLogAttendanceRecordPersonUid, attendanceStatus = EXCLUDED.attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum = EXCLUDED.clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum = EXCLUDED.clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy = EXCLUDED.clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime = EXCLUDED.clazzLogAttendanceRecordLastChangedTime */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ScheduleReplicate ( schedulePk INTEGER NOT NULL, scheduleVersionId INTEGER NOT NULL DEFAULT 0, scheduleDestination INTEGER NOT NULL, schedulePending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (schedulePk, scheduleDestination)) "),e.add_11rb$(" CREATE INDEX index_ScheduleReplicate_schedulePk_scheduleDestination_scheduleVersionId ON ScheduleReplicate (schedulePk, scheduleDestination, scheduleVersionId) "),e.add_11rb$(" CREATE INDEX index_ScheduleReplicate_scheduleDestination_schedulePending ON ScheduleReplicate (scheduleDestination, schedulePending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_21 AFTER INSERT ON Schedule BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 21 AS chTableId, NEW.scheduleUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 21 AND chEntityPk = NEW.scheduleUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_21 AFTER UPDATE ON Schedule BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 21 AS chTableId, NEW.scheduleUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 21 AND chEntityPk = NEW.scheduleUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_21 AFTER DELETE ON Schedule BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 21 AS chTableId, OLD.scheduleUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 21 AND chEntityPk = OLD.scheduleUid); END "),e.add_11rb$("CREATE VIEW Schedule_ReceiveView AS SELECT Schedule.*, ScheduleReplicate.* FROM Schedule LEFT JOIN ScheduleReplicate ON ScheduleReplicate.schedulePk = Schedule.scheduleUid "),e.add_11rb$(" CREATE TRIGGER schedule_remote_insert_ins INSTEAD OF INSERT ON Schedule_ReceiveView FOR EACH ROW BEGIN REPLACE INTO Schedule(scheduleUid, sceduleStartTime, scheduleEndTime, scheduleDay, scheduleMonth, scheduleFrequency, umCalendarUid, scheduleClazzUid, scheduleMasterChangeSeqNum, scheduleLocalChangeSeqNum, scheduleLastChangedBy, scheduleLastChangedTime, scheduleActive) VALUES (NEW.scheduleUid, NEW.sceduleStartTime, NEW.scheduleEndTime, NEW.scheduleDay, NEW.scheduleMonth, NEW.scheduleFrequency, NEW.umCalendarUid, NEW.scheduleClazzUid, NEW.scheduleMasterChangeSeqNum, NEW.scheduleLocalChangeSeqNum, NEW.scheduleLastChangedBy, NEW.scheduleLastChangedTime, NEW.scheduleActive) /*psql ON CONFLICT (scheduleUid) DO UPDATE SET sceduleStartTime = EXCLUDED.sceduleStartTime, scheduleEndTime = EXCLUDED.scheduleEndTime, scheduleDay = EXCLUDED.scheduleDay, scheduleMonth = EXCLUDED.scheduleMonth, scheduleFrequency = EXCLUDED.scheduleFrequency, umCalendarUid = EXCLUDED.umCalendarUid, scheduleClazzUid = EXCLUDED.scheduleClazzUid, scheduleMasterChangeSeqNum = EXCLUDED.scheduleMasterChangeSeqNum, scheduleLocalChangeSeqNum = EXCLUDED.scheduleLocalChangeSeqNum, scheduleLastChangedBy = EXCLUDED.scheduleLastChangedBy, scheduleLastChangedTime = EXCLUDED.scheduleLastChangedTime, scheduleActive = EXCLUDED.scheduleActive */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS HolidayCalendarReplicate ( hcPk INTEGER NOT NULL, hcVersionId INTEGER NOT NULL DEFAULT 0, hcDestination INTEGER NOT NULL, hcPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (hcPk, hcDestination)) "),e.add_11rb$(" CREATE INDEX index_HolidayCalendarReplicate_hcPk_hcDestination_hcVersionId ON HolidayCalendarReplicate (hcPk, hcDestination, hcVersionId) "),e.add_11rb$(" CREATE INDEX index_HolidayCalendarReplicate_hcDestination_hcPending ON HolidayCalendarReplicate (hcDestination, hcPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_28 AFTER INSERT ON HolidayCalendar BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 28 AS chTableId, NEW.umCalendarUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 28 AND chEntityPk = NEW.umCalendarUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_28 AFTER UPDATE ON HolidayCalendar BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 28 AS chTableId, NEW.umCalendarUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 28 AND chEntityPk = NEW.umCalendarUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_28 AFTER DELETE ON HolidayCalendar BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 28 AS chTableId, OLD.umCalendarUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 28 AND chEntityPk = OLD.umCalendarUid); END "),e.add_11rb$("CREATE VIEW HolidayCalendar_ReceiveView AS SELECT HolidayCalendar.*, HolidayCalendarReplicate.* FROM HolidayCalendar LEFT JOIN HolidayCalendarReplicate ON HolidayCalendarReplicate.hcPk = HolidayCalendar.umCalendarUid "),e.add_11rb$(" CREATE TRIGGER holidaycalendar_remote_insert_ins INSTEAD OF INSERT ON HolidayCalendar_ReceiveView FOR EACH ROW BEGIN REPLACE INTO HolidayCalendar(umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct) VALUES (NEW.umCalendarUid, NEW.umCalendarName, NEW.umCalendarCategory, NEW.umCalendarActive, NEW.umCalendarMasterChangeSeqNum, NEW.umCalendarLocalChangeSeqNum, NEW.umCalendarLastChangedBy, NEW.umCalendarLct) /*psql ON CONFLICT (umCalendarUid) DO UPDATE SET umCalendarName = EXCLUDED.umCalendarName, umCalendarCategory = EXCLUDED.umCalendarCategory, umCalendarActive = EXCLUDED.umCalendarActive, umCalendarMasterChangeSeqNum = EXCLUDED.umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum = EXCLUDED.umCalendarLocalChangeSeqNum, umCalendarLastChangedBy = EXCLUDED.umCalendarLastChangedBy, umCalendarLct = EXCLUDED.umCalendarLct */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS HolidayReplicate ( holidayPk INTEGER NOT NULL, holidayVersionId INTEGER NOT NULL DEFAULT 0, holidayDestination INTEGER NOT NULL, holidayPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (holidayPk, holidayDestination)) "),e.add_11rb$(" CREATE INDEX index_HolidayReplicate_holidayPk_holidayDestination_holidayVersionId ON HolidayReplicate (holidayPk, holidayDestination, holidayVersionId) "),e.add_11rb$(" CREATE INDEX index_HolidayReplicate_holidayDestination_holidayPending ON HolidayReplicate (holidayDestination, holidayPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_99 AFTER INSERT ON Holiday BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 99 AS chTableId, NEW.holUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 99 AND chEntityPk = NEW.holUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_99 AFTER UPDATE ON Holiday BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 99 AS chTableId, NEW.holUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 99 AND chEntityPk = NEW.holUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_99 AFTER DELETE ON Holiday BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 99 AS chTableId, OLD.holUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 99 AND chEntityPk = OLD.holUid); END "),e.add_11rb$("CREATE VIEW Holiday_ReceiveView AS SELECT Holiday.*, HolidayReplicate.* FROM Holiday LEFT JOIN HolidayReplicate ON HolidayReplicate.holidayPk = Holiday.holUid "),e.add_11rb$(" CREATE TRIGGER holiday_remote_insert_ins INSTEAD OF INSERT ON Holiday_ReceiveView FOR EACH ROW BEGIN REPLACE INTO Holiday(holUid, holMasterCsn, holLocalCsn, holLastModBy, holLct, holActive, holHolidayCalendarUid, holStartTime, holEndTime, holName) VALUES (NEW.holUid, NEW.holMasterCsn, NEW.holLocalCsn, NEW.holLastModBy, NEW.holLct, NEW.holActive, NEW.holHolidayCalendarUid, NEW.holStartTime, NEW.holEndTime, NEW.holName) /*psql ON CONFLICT (holUid) DO UPDATE SET holMasterCsn = EXCLUDED.holMasterCsn, holLocalCsn = EXCLUDED.holLocalCsn, holLastModBy = EXCLUDED.holLastModBy, holLct = EXCLUDED.holLct, holActive = EXCLUDED.holActive, holHolidayCalendarUid = EXCLUDED.holHolidayCalendarUid, holStartTime = EXCLUDED.holStartTime, holEndTime = EXCLUDED.holEndTime, holName = EXCLUDED.holName */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS PersonReplicate ( personPk INTEGER NOT NULL, personVersionId INTEGER NOT NULL DEFAULT 0, personDestination INTEGER NOT NULL, personPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (personPk, personDestination)) "),e.add_11rb$(" CREATE INDEX index_PersonReplicate_personPk_personDestination_personVersionId ON PersonReplicate (personPk, personDestination, personVersionId) "),e.add_11rb$(" CREATE INDEX index_PersonReplicate_personDestination_personPending ON PersonReplicate (personDestination, personPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_9 AFTER INSERT ON Person BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 9 AS chTableId, NEW.personUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 9 AND chEntityPk = NEW.personUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_9 AFTER UPDATE ON Person BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 9 AS chTableId, NEW.personUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 9 AND chEntityPk = NEW.personUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_9 AFTER DELETE ON Person BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 9 AS chTableId, OLD.personUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 9 AND chEntityPk = OLD.personUid); END "),e.add_11rb$("CREATE VIEW Person_ReceiveView AS SELECT Person.*, PersonReplicate.* FROM Person LEFT JOIN PersonReplicate ON PersonReplicate.personPk = Person.personUid "),e.add_11rb$(" CREATE TRIGGER person_remote_insert_ins INSTEAD OF INSERT ON Person_ReceiveView FOR EACH ROW BEGIN REPLACE INTO Person(personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, admin, personNotes, fatherName, fatherNumber, motherName, motherNum, dateOfBirth, personAddress, personOrgId, personGroupUid, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, personLct, personCountry, personType) VALUES (NEW.personUid, NEW.username, NEW.firstNames, NEW.lastName, NEW.emailAddr, NEW.phoneNum, NEW.gender, NEW.active, NEW.admin, NEW.personNotes, NEW.fatherName, NEW.fatherNumber, NEW.motherName, NEW.motherNum, NEW.dateOfBirth, NEW.personAddress, NEW.personOrgId, NEW.personGroupUid, NEW.personMasterChangeSeqNum, NEW.personLocalChangeSeqNum, NEW.personLastChangedBy, NEW.personLct, NEW.personCountry, NEW.personType) /*psql ON CONFLICT (personUid) DO UPDATE SET username = EXCLUDED.username, firstNames = EXCLUDED.firstNames, lastName = EXCLUDED.lastName, emailAddr = EXCLUDED.emailAddr, phoneNum = EXCLUDED.phoneNum, gender = EXCLUDED.gender, active = EXCLUDED.active, admin = EXCLUDED.admin, personNotes = EXCLUDED.personNotes, fatherName = EXCLUDED.fatherName, fatherNumber = EXCLUDED.fatherNumber, motherName = EXCLUDED.motherName, motherNum = EXCLUDED.motherNum, dateOfBirth = EXCLUDED.dateOfBirth, personAddress = EXCLUDED.personAddress, personOrgId = EXCLUDED.personOrgId, personGroupUid = EXCLUDED.personGroupUid, personMasterChangeSeqNum = EXCLUDED.personMasterChangeSeqNum, personLocalChangeSeqNum = EXCLUDED.personLocalChangeSeqNum, personLastChangedBy = EXCLUDED.personLastChangedBy, personLct = EXCLUDED.personLct, personCountry = EXCLUDED.personCountry, personType = EXCLUDED.personType */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ClazzReplicate ( clazzPk INTEGER NOT NULL, clazzVersionId INTEGER NOT NULL DEFAULT 0, clazzDestination INTEGER NOT NULL, clazzPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (clazzPk, clazzDestination)) "),e.add_11rb$(" CREATE INDEX index_ClazzReplicate_clazzPk_clazzDestination_clazzVersionId ON ClazzReplicate (clazzPk, clazzDestination, clazzVersionId) "),e.add_11rb$(" CREATE INDEX index_ClazzReplicate_clazzDestination_clazzPending ON ClazzReplicate (clazzDestination, clazzPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_6 AFTER INSERT ON Clazz BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 6 AS chTableId, NEW.clazzUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 6 AND chEntityPk = NEW.clazzUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_6 AFTER UPDATE ON Clazz BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 6 AS chTableId, NEW.clazzUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 6 AND chEntityPk = NEW.clazzUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_6 AFTER DELETE ON Clazz BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 6 AS chTableId, OLD.clazzUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 6 AND chEntityPk = OLD.clazzUid); END "),e.add_11rb$("CREATE VIEW Clazz_ReceiveView AS SELECT Clazz.*, ClazzReplicate.* FROM Clazz LEFT JOIN ClazzReplicate ON ClazzReplicate.clazzPk = Clazz.clazzUid "),e.add_11rb$(" CREATE TRIGGER clazz_remote_insert_ins INSTEAD OF INSERT ON Clazz_ReceiveView FOR EACH ROW BEGIN REPLACE INTO Clazz(clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode) VALUES (NEW.clazzUid, NEW.clazzName, NEW.clazzDesc, NEW.attendanceAverage, NEW.clazzHolidayUMCalendarUid, NEW.clazzScheuleUMCalendarUid, NEW.isClazzActive, NEW.clazzLocationUid, NEW.clazzStartTime, NEW.clazzEndTime, NEW.clazzFeatures, NEW.clazzSchoolUid, NEW.clazzMasterChangeSeqNum, NEW.clazzLocalChangeSeqNum, NEW.clazzLastChangedBy, NEW.clazzLct, NEW.clazzTimeZone, NEW.clazzStudentsPersonGroupUid, NEW.clazzTeachersPersonGroupUid, NEW.clazzPendingStudentsPersonGroupUid, NEW.clazzParentsPersonGroupUid, NEW.clazzCode) /*psql ON CONFLICT (clazzUid) DO UPDATE SET clazzName = EXCLUDED.clazzName, clazzDesc = EXCLUDED.clazzDesc, attendanceAverage = EXCLUDED.attendanceAverage, clazzHolidayUMCalendarUid = EXCLUDED.clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid = EXCLUDED.clazzScheuleUMCalendarUid, isClazzActive = EXCLUDED.isClazzActive, clazzLocationUid = EXCLUDED.clazzLocationUid, clazzStartTime = EXCLUDED.clazzStartTime, clazzEndTime = EXCLUDED.clazzEndTime, clazzFeatures = EXCLUDED.clazzFeatures, clazzSchoolUid = EXCLUDED.clazzSchoolUid, clazzMasterChangeSeqNum = EXCLUDED.clazzMasterChangeSeqNum, clazzLocalChangeSeqNum = EXCLUDED.clazzLocalChangeSeqNum, clazzLastChangedBy = EXCLUDED.clazzLastChangedBy, clazzLct = EXCLUDED.clazzLct, clazzTimeZone = EXCLUDED.clazzTimeZone, clazzStudentsPersonGroupUid = EXCLUDED.clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid = EXCLUDED.clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid = EXCLUDED.clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid = EXCLUDED.clazzParentsPersonGroupUid, clazzCode = EXCLUDED.clazzCode */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ClazzEnrolmentReplicate ( cePk INTEGER NOT NULL, ceVersionId INTEGER NOT NULL DEFAULT 0, ceDestination INTEGER NOT NULL, cePending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (cePk, ceDestination)) "),e.add_11rb$(" CREATE INDEX index_ClazzEnrolmentReplicate_cePk_ceDestination_ceVersionId ON ClazzEnrolmentReplicate (cePk, ceDestination, ceVersionId) "),e.add_11rb$(" CREATE INDEX index_ClazzEnrolmentReplicate_ceDestination_cePending ON ClazzEnrolmentReplicate (ceDestination, cePending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_65 AFTER INSERT ON ClazzEnrolment BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 65 AS chTableId, NEW.clazzEnrolmentUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 65 AND chEntityPk = NEW.clazzEnrolmentUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_65 AFTER UPDATE ON ClazzEnrolment BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 65 AS chTableId, NEW.clazzEnrolmentUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 65 AND chEntityPk = NEW.clazzEnrolmentUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_65 AFTER DELETE ON ClazzEnrolment BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 65 AS chTableId, OLD.clazzEnrolmentUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 65 AND chEntityPk = OLD.clazzEnrolmentUid); END "),e.add_11rb$("CREATE VIEW ClazzEnrolment_ReceiveView AS SELECT ClazzEnrolment.*, ClazzEnrolmentReplicate.* FROM ClazzEnrolment LEFT JOIN ClazzEnrolmentReplicate ON ClazzEnrolmentReplicate.cePk = ClazzEnrolment.clazzEnrolmentUid "),e.add_11rb$(" CREATE TRIGGER clazzenrolment_remote_insert_ins INSTEAD OF INSERT ON ClazzEnrolment_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ClazzEnrolment(clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct) VALUES (NEW.clazzEnrolmentUid, NEW.clazzEnrolmentPersonUid, NEW.clazzEnrolmentClazzUid, NEW.clazzEnrolmentDateJoined, NEW.clazzEnrolmentDateLeft, NEW.clazzEnrolmentRole, NEW.clazzEnrolmentAttendancePercentage, NEW.clazzEnrolmentActive, NEW.clazzEnrolmentLeavingReasonUid, NEW.clazzEnrolmentOutcome, NEW.clazzEnrolmentLocalChangeSeqNum, NEW.clazzEnrolmentMasterChangeSeqNum, NEW.clazzEnrolmentLastChangedBy, NEW.clazzEnrolmentLct) /*psql ON CONFLICT (clazzEnrolmentUid) DO UPDATE SET clazzEnrolmentPersonUid = EXCLUDED.clazzEnrolmentPersonUid, clazzEnrolmentClazzUid = EXCLUDED.clazzEnrolmentClazzUid, clazzEnrolmentDateJoined = EXCLUDED.clazzEnrolmentDateJoined, clazzEnrolmentDateLeft = EXCLUDED.clazzEnrolmentDateLeft, clazzEnrolmentRole = EXCLUDED.clazzEnrolmentRole, clazzEnrolmentAttendancePercentage = EXCLUDED.clazzEnrolmentAttendancePercentage, clazzEnrolmentActive = EXCLUDED.clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid = EXCLUDED.clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome = EXCLUDED.clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum = EXCLUDED.clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum = EXCLUDED.clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy = EXCLUDED.clazzEnrolmentLastChangedBy, clazzEnrolmentLct = EXCLUDED.clazzEnrolmentLct */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS LeavingReasonReplicate ( lrPk INTEGER NOT NULL, lrVersionId INTEGER NOT NULL DEFAULT 0, lrDestination INTEGER NOT NULL, lrPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (lrPk, lrDestination)) "),e.add_11rb$(" CREATE INDEX index_LeavingReasonReplicate_lrPk_lrDestination_lrVersionId ON LeavingReasonReplicate (lrPk, lrDestination, lrVersionId) "),e.add_11rb$(" CREATE INDEX index_LeavingReasonReplicate_lrDestination_lrPending ON LeavingReasonReplicate (lrDestination, lrPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_410 AFTER INSERT ON LeavingReason BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 410 AS chTableId, NEW.leavingReasonUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 410 AND chEntityPk = NEW.leavingReasonUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_410 AFTER UPDATE ON LeavingReason BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 410 AS chTableId, NEW.leavingReasonUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 410 AND chEntityPk = NEW.leavingReasonUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_410 AFTER DELETE ON LeavingReason BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 410 AS chTableId, OLD.leavingReasonUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 410 AND chEntityPk = OLD.leavingReasonUid); END "),e.add_11rb$("CREATE VIEW LeavingReason_ReceiveView AS SELECT LeavingReason.*, LeavingReasonReplicate.* FROM LeavingReason LEFT JOIN LeavingReasonReplicate ON LeavingReasonReplicate.lrPk = LeavingReason.leavingReasonUid "),e.add_11rb$(" CREATE TRIGGER leavingreason_remote_insert_ins INSTEAD OF INSERT ON LeavingReason_ReceiveView FOR EACH ROW BEGIN REPLACE INTO LeavingReason(leavingReasonUid, leavingReasonTitle, leavingReasonMCSN, leavingReasonCSN, leavingReasonLCB, leavingReasonLct) VALUES (NEW.leavingReasonUid, NEW.leavingReasonTitle, NEW.leavingReasonMCSN, NEW.leavingReasonCSN, NEW.leavingReasonLCB, NEW.leavingReasonLct) /*psql ON CONFLICT (leavingReasonUid) DO UPDATE SET leavingReasonTitle = EXCLUDED.leavingReasonTitle, leavingReasonMCSN = EXCLUDED.leavingReasonMCSN, leavingReasonCSN = EXCLUDED.leavingReasonCSN, leavingReasonLCB = EXCLUDED.leavingReasonLCB, leavingReasonLct = EXCLUDED.leavingReasonLct */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ContentEntryReplicate ( cePk INTEGER NOT NULL, ceVersionId INTEGER NOT NULL DEFAULT 0, ceDestination INTEGER NOT NULL, cePending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (cePk, ceDestination)) "),e.add_11rb$(" CREATE INDEX index_ContentEntryReplicate_cePk_ceDestination_ceVersionId ON ContentEntryReplicate (cePk, ceDestination, ceVersionId) "),e.add_11rb$(" CREATE INDEX index_ContentEntryReplicate_ceDestination_cePending ON ContentEntryReplicate (ceDestination, cePending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_42 AFTER INSERT ON ContentEntry BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 42 AS chTableId, NEW.contentEntryUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 42 AND chEntityPk = NEW.contentEntryUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_42 AFTER UPDATE ON ContentEntry BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 42 AS chTableId, NEW.contentEntryUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 42 AND chEntityPk = NEW.contentEntryUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_42 AFTER DELETE ON ContentEntry BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 42 AS chTableId, OLD.contentEntryUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 42 AND chEntityPk = OLD.contentEntryUid); END "),e.add_11rb$("CREATE VIEW ContentEntry_ReceiveView AS SELECT ContentEntry.*, ContentEntryReplicate.* FROM ContentEntry LEFT JOIN ContentEntryReplicate ON ContentEntryReplicate.cePk = ContentEntry.contentEntryUid "),e.add_11rb$(" CREATE TRIGGER contententry_remote_insert_ins INSTEAD OF INSERT ON ContentEntry_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ContentEntry(contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct) VALUES (NEW.contentEntryUid, NEW.title, NEW.description, NEW.entryId, NEW.author, NEW.publisher, NEW.licenseType, NEW.licenseName, NEW.licenseUrl, NEW.sourceUrl, NEW.thumbnailUrl, NEW.lastModified, NEW.primaryLanguageUid, NEW.languageVariantUid, NEW.contentFlags, NEW.leaf, NEW.publik, NEW.ceInactive, NEW.completionCriteria, NEW.minScore, NEW.contentTypeFlag, NEW.contentOwner, NEW.contentEntryLocalChangeSeqNum, NEW.contentEntryMasterChangeSeqNum, NEW.contentEntryLastChangedBy, NEW.contentEntryLct) /*psql ON CONFLICT (contentEntryUid) DO UPDATE SET title = EXCLUDED.title, description = EXCLUDED.description, entryId = EXCLUDED.entryId, author = EXCLUDED.author, publisher = EXCLUDED.publisher, licenseType = EXCLUDED.licenseType, licenseName = EXCLUDED.licenseName, licenseUrl = EXCLUDED.licenseUrl, sourceUrl = EXCLUDED.sourceUrl, thumbnailUrl = EXCLUDED.thumbnailUrl, lastModified = EXCLUDED.lastModified, primaryLanguageUid = EXCLUDED.primaryLanguageUid, languageVariantUid = EXCLUDED.languageVariantUid, contentFlags = EXCLUDED.contentFlags, leaf = EXCLUDED.leaf, publik = EXCLUDED.publik, ceInactive = EXCLUDED.ceInactive, completionCriteria = EXCLUDED.completionCriteria, minScore = EXCLUDED.minScore, contentTypeFlag = EXCLUDED.contentTypeFlag, contentOwner = EXCLUDED.contentOwner, contentEntryLocalChangeSeqNum = EXCLUDED.contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum = EXCLUDED.contentEntryMasterChangeSeqNum, contentEntryLastChangedBy = EXCLUDED.contentEntryLastChangedBy, contentEntryLct = EXCLUDED.contentEntryLct*/; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ContentEntryContentCategoryJoinReplicate ( ceccjPk INTEGER NOT NULL, ceccjVersionId INTEGER NOT NULL DEFAULT 0, ceccjDestination INTEGER NOT NULL, ceccjPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (ceccjPk, ceccjDestination)) "),e.add_11rb$(" CREATE INDEX index_ContentEntryContentCategoryJoinReplicate_ceccjPk_ceccjDestination_ceccjVersionId ON ContentEntryContentCategoryJoinReplicate (ceccjPk, ceccjDestination, ceccjVersionId) "),e.add_11rb$(" CREATE INDEX index_ContentEntryContentCategoryJoinReplicate_ceccjDestination_ceccjPending ON ContentEntryContentCategoryJoinReplicate (ceccjDestination, ceccjPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_3 AFTER INSERT ON ContentEntryContentCategoryJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 3 AS chTableId, NEW.ceccjUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 3 AND chEntityPk = NEW.ceccjUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_3 AFTER UPDATE ON ContentEntryContentCategoryJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 3 AS chTableId, NEW.ceccjUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 3 AND chEntityPk = NEW.ceccjUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_3 AFTER DELETE ON ContentEntryContentCategoryJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 3 AS chTableId, OLD.ceccjUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 3 AND chEntityPk = OLD.ceccjUid); END "),e.add_11rb$("CREATE VIEW ContentEntryContentCategoryJoin_ReceiveView AS SELECT ContentEntryContentCategoryJoin.*, ContentEntryContentCategoryJoinReplicate.* FROM ContentEntryContentCategoryJoin LEFT JOIN ContentEntryContentCategoryJoinReplicate ON ContentEntryContentCategoryJoinReplicate.ceccjPk = ContentEntryContentCategoryJoin.ceccjUid "),e.add_11rb$(" CREATE TRIGGER contententrycontentcategoryjoin_remote_insert_ins INSTEAD OF INSERT ON ContentEntryContentCategoryJoin_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ContentEntryContentCategoryJoin(ceccjUid, ceccjContentEntryUid, ceccjContentCategoryUid, ceccjLocalChangeSeqNum, ceccjMasterChangeSeqNum, ceccjLastChangedBy, ceccjLct) VALUES (NEW.ceccjUid, NEW.ceccjContentEntryUid, NEW.ceccjContentCategoryUid, NEW.ceccjLocalChangeSeqNum, NEW.ceccjMasterChangeSeqNum, NEW.ceccjLastChangedBy, NEW.ceccjLct) /*psql ON CONFLICT (ceccjUid) DO UPDATE SET ceccjContentEntryUid = EXCLUDED.ceccjContentEntryUid, ceccjContentCategoryUid = EXCLUDED.ceccjContentCategoryUid, ceccjLocalChangeSeqNum = EXCLUDED.ceccjLocalChangeSeqNum, ceccjMasterChangeSeqNum = EXCLUDED.ceccjMasterChangeSeqNum, ceccjLastChangedBy = EXCLUDED.ceccjLastChangedBy, ceccjLct = EXCLUDED.ceccjLct */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ContentEntryParentChildJoinReplicate ( cepcjPk INTEGER NOT NULL, cepcjVersionId INTEGER NOT NULL DEFAULT 0, cepcjDestination INTEGER NOT NULL, cepcjPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (cepcjPk, cepcjDestination)) "),e.add_11rb$(" CREATE INDEX index_ContentEntryParentChildJoinReplicate_cepcjPk_cepcjDestination_cepcjVersionId ON ContentEntryParentChildJoinReplicate (cepcjPk, cepcjDestination, cepcjVersionId) "),e.add_11rb$(" CREATE INDEX index_ContentEntryParentChildJoinReplicate_cepcjDestination_cepcjPending ON ContentEntryParentChildJoinReplicate (cepcjDestination, cepcjPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_7 AFTER INSERT ON ContentEntryParentChildJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 7 AS chTableId, NEW.cepcjUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 7 AND chEntityPk = NEW.cepcjUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_7 AFTER UPDATE ON ContentEntryParentChildJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 7 AS chTableId, NEW.cepcjUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 7 AND chEntityPk = NEW.cepcjUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_7 AFTER DELETE ON ContentEntryParentChildJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 7 AS chTableId, OLD.cepcjUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 7 AND chEntityPk = OLD.cepcjUid); END "),e.add_11rb$("CREATE VIEW ContentEntryParentChildJoin_ReceiveView AS SELECT ContentEntryParentChildJoin.*, ContentEntryParentChildJoinReplicate.* FROM ContentEntryParentChildJoin LEFT JOIN ContentEntryParentChildJoinReplicate ON ContentEntryParentChildJoinReplicate.cepcjPk = ContentEntryParentChildJoin.cepcjUid "),e.add_11rb$(" CREATE TRIGGER contententryparentchildjoin_remote_insert_ins INSTEAD OF INSERT ON ContentEntryParentChildJoin_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ContentEntryParentChildJoin(cepcjParentContentEntryUid, cepcjChildContentEntryUid, childIndex, cepcjUid, cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum, cepcjLastChangedBy, cepcjLct) VALUES (NEW.cepcjParentContentEntryUid, NEW.cepcjChildContentEntryUid, NEW.childIndex, NEW.cepcjUid, NEW.cepcjLocalChangeSeqNum, NEW.cepcjMasterChangeSeqNum, NEW.cepcjLastChangedBy, NEW.cepcjLct) /*psql ON CONFLICT (cepcjUid) DO UPDATE SET cepcjParentContentEntryUid = EXCLUDED.cepcjParentContentEntryUid, cepcjChildContentEntryUid = EXCLUDED.cepcjChildContentEntryUid, childIndex = EXCLUDED.childIndex, cepcjLocalChangeSeqNum = EXCLUDED.cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum = EXCLUDED.cepcjMasterChangeSeqNum, cepcjLastChangedBy = EXCLUDED.cepcjLastChangedBy, cepcjLct = EXCLUDED.cepcjLct */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ContentEntryRelatedEntryJoinReplicate ( cerejPk INTEGER NOT NULL, cerejVersionId INTEGER NOT NULL DEFAULT 0, cerejDestination INTEGER NOT NULL, cerejPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (cerejPk, cerejDestination)) "),e.add_11rb$(" CREATE INDEX index_ContentEntryRelatedEntryJoinReplicate_cerejPk_cerejDestination_cerejVersionId ON ContentEntryRelatedEntryJoinReplicate (cerejPk, cerejDestination, cerejVersionId) "),e.add_11rb$(" CREATE INDEX index_ContentEntryRelatedEntryJoinReplicate_cerejDestination_cerejPending ON ContentEntryRelatedEntryJoinReplicate (cerejDestination, cerejPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_8 AFTER INSERT ON ContentEntryRelatedEntryJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 8 AS chTableId, NEW.cerejUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 8 AND chEntityPk = NEW.cerejUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_8 AFTER UPDATE ON ContentEntryRelatedEntryJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 8 AS chTableId, NEW.cerejUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 8 AND chEntityPk = NEW.cerejUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_8 AFTER DELETE ON ContentEntryRelatedEntryJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 8 AS chTableId, OLD.cerejUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 8 AND chEntityPk = OLD.cerejUid); END "),e.add_11rb$("CREATE VIEW ContentEntryRelatedEntryJoin_ReceiveView AS SELECT ContentEntryRelatedEntryJoin.*, ContentEntryRelatedEntryJoinReplicate.* FROM ContentEntryRelatedEntryJoin LEFT JOIN ContentEntryRelatedEntryJoinReplicate ON ContentEntryRelatedEntryJoinReplicate.cerejPk = ContentEntryRelatedEntryJoin.cerejUid "),e.add_11rb$(" CREATE TRIGGER contententryrelatedentryjoin_remote_insert_ins INSTEAD OF INSERT ON ContentEntryRelatedEntryJoin_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ContentEntryRelatedEntryJoin(cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct) VALUES (NEW.cerejUid, NEW.cerejContentEntryUid, NEW.cerejRelatedEntryUid, NEW.cerejLastChangedBy, NEW.relType, NEW.comment, NEW.cerejRelLanguageUid, NEW.cerejLocalChangeSeqNum, NEW.cerejMasterChangeSeqNum, NEW.cerejLct) /*psql ON CONFLICT (cerejUid) DO UPDATE SET cerejContentEntryUid = EXCLUDED.cerejContentEntryUid, cerejRelatedEntryUid = EXCLUDED.cerejRelatedEntryUid, cerejLastChangedBy = EXCLUDED.cerejLastChangedBy, relType = EXCLUDED.relType, comment = EXCLUDED.comment, cerejRelLanguageUid = EXCLUDED.cerejRelLanguageUid, cerejLocalChangeSeqNum = EXCLUDED.cerejLocalChangeSeqNum, cerejMasterChangeSeqNum = EXCLUDED.cerejMasterChangeSeqNum, cerejLct = EXCLUDED.cerejLct */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ContentCategorySchemaReplicate ( ccsPk INTEGER NOT NULL, ccsVersionId INTEGER NOT NULL DEFAULT 0, ccsDestination INTEGER NOT NULL, ccsPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (ccsPk, ccsDestination)) "),e.add_11rb$(" CREATE INDEX index_ContentCategorySchemaReplicate_ccsPk_ccsDestination_ccsVersionId ON ContentCategorySchemaReplicate (ccsPk, ccsDestination, ccsVersionId) "),e.add_11rb$(" CREATE INDEX index_ContentCategorySchemaReplicate_ccsDestination_ccsPending ON ContentCategorySchemaReplicate (ccsDestination, ccsPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_2 AFTER INSERT ON ContentCategorySchema BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 2 AS chTableId, NEW.contentCategorySchemaUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 2 AND chEntityPk = NEW.contentCategorySchemaUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_2 AFTER UPDATE ON ContentCategorySchema BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 2 AS chTableId, NEW.contentCategorySchemaUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 2 AND chEntityPk = NEW.contentCategorySchemaUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_2 AFTER DELETE ON ContentCategorySchema BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 2 AS chTableId, OLD.contentCategorySchemaUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 2 AND chEntityPk = OLD.contentCategorySchemaUid); END "),e.add_11rb$("CREATE VIEW ContentCategorySchema_ReceiveView AS SELECT ContentCategorySchema.*, ContentCategorySchemaReplicate.* FROM ContentCategorySchema LEFT JOIN ContentCategorySchemaReplicate ON ContentCategorySchemaReplicate.ccsPk = ContentCategorySchema.contentCategorySchemaUid "),e.add_11rb$(" CREATE TRIGGER contentcategoryschema_remote_insert_ins INSTEAD OF INSERT ON ContentCategorySchema_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ContentCategorySchema(contentCategorySchemaUid, schemaName, schemaUrl, contentCategorySchemaLocalChangeSeqNum, contentCategorySchemaMasterChangeSeqNum, contentCategorySchemaLastChangedBy, contentCategorySchemaLct) VALUES (NEW.contentCategorySchemaUid, NEW.schemaName, NEW.schemaUrl, NEW.contentCategorySchemaLocalChangeSeqNum, NEW.contentCategorySchemaMasterChangeSeqNum, NEW.contentCategorySchemaLastChangedBy, NEW.contentCategorySchemaLct) /*psql ON CONFLICT (contentCategorySchemaUid) DO UPDATE SET schemaName = EXCLUDED.schemaName, schemaUrl = EXCLUDED.schemaUrl, contentCategorySchemaLocalChangeSeqNum = EXCLUDED.contentCategorySchemaLocalChangeSeqNum, contentCategorySchemaMasterChangeSeqNum = EXCLUDED.contentCategorySchemaMasterChangeSeqNum, contentCategorySchemaLastChangedBy = EXCLUDED.contentCategorySchemaLastChangedBy, contentCategorySchemaLct = EXCLUDED.contentCategorySchemaLct */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ContentCategoryReplicate ( ccPk INTEGER NOT NULL, ccVersionId INTEGER NOT NULL DEFAULT 0, ccDestination INTEGER NOT NULL, ccPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (ccPk, ccDestination)) "),e.add_11rb$(" CREATE INDEX index_ContentCategoryReplicate_ccPk_ccDestination_ccVersionId ON ContentCategoryReplicate (ccPk, ccDestination, ccVersionId) "),e.add_11rb$(" CREATE INDEX index_ContentCategoryReplicate_ccDestination_ccPending ON ContentCategoryReplicate (ccDestination, ccPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_1 AFTER INSERT ON ContentCategory BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 1 AS chTableId, NEW.contentCategoryUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 1 AND chEntityPk = NEW.contentCategoryUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_1 AFTER UPDATE ON ContentCategory BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 1 AS chTableId, NEW.contentCategoryUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 1 AND chEntityPk = NEW.contentCategoryUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_1 AFTER DELETE ON ContentCategory BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 1 AS chTableId, OLD.contentCategoryUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 1 AND chEntityPk = OLD.contentCategoryUid); END "),e.add_11rb$("CREATE VIEW ContentCategory_ReceiveView AS SELECT ContentCategory.*, ContentCategoryReplicate.* FROM ContentCategory LEFT JOIN ContentCategoryReplicate ON ContentCategoryReplicate.ccPk = ContentCategory.contentCategoryUid "),e.add_11rb$(" CREATE TRIGGER contentcategory_remote_insert_ins INSTEAD OF INSERT ON ContentCategory_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ContentCategory(contentCategoryUid, ctnCatContentCategorySchemaUid, name, contentCategoryLocalChangeSeqNum, contentCategoryMasterChangeSeqNum, contentCategoryLastChangedBy, contentCategoryLct) VALUES (NEW.contentCategoryUid, NEW.ctnCatContentCategorySchemaUid, NEW.name, NEW.contentCategoryLocalChangeSeqNum, NEW.contentCategoryMasterChangeSeqNum, NEW.contentCategoryLastChangedBy, NEW.contentCategoryLct) /*psql ON CONFLICT (contentCategoryUid) DO UPDATE SET ctnCatContentCategorySchemaUid = EXCLUDED.ctnCatContentCategorySchemaUid, name = EXCLUDED.name, contentCategoryLocalChangeSeqNum = EXCLUDED.contentCategoryLocalChangeSeqNum, contentCategoryMasterChangeSeqNum = EXCLUDED.contentCategoryMasterChangeSeqNum, contentCategoryLastChangedBy = EXCLUDED.contentCategoryLastChangedBy, contentCategoryLct = EXCLUDED.contentCategoryLct */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS LanguageReplicate ( languagePk INTEGER NOT NULL, languageVersionId INTEGER NOT NULL DEFAULT 0, languageDestination INTEGER NOT NULL, languagePending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (languagePk, languageDestination)) "),e.add_11rb$(" CREATE INDEX index_LanguageReplicate_languagePk_languageDestination_languageVersionId ON LanguageReplicate (languagePk, languageDestination, languageVersionId) "),e.add_11rb$(" CREATE INDEX index_LanguageReplicate_languageDestination_languagePending ON LanguageReplicate (languageDestination, languagePending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_13 AFTER INSERT ON Language BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 13 AS chTableId, NEW.langUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 13 AND chEntityPk = NEW.langUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_13 AFTER UPDATE ON Language BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 13 AS chTableId, NEW.langUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 13 AND chEntityPk = NEW.langUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_13 AFTER DELETE ON Language BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 13 AS chTableId, OLD.langUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 13 AND chEntityPk = OLD.langUid); END "),e.add_11rb$("CREATE VIEW Language_ReceiveView AS SELECT Language.*, LanguageReplicate.* FROM Language LEFT JOIN LanguageReplicate ON LanguageReplicate.languagePk = Language.langUid "),e.add_11rb$(" CREATE TRIGGER language_remote_insert_ins INSTEAD OF INSERT ON Language_ReceiveView FOR EACH ROW BEGIN REPLACE INTO Language(langUid, name, iso_639_1_standard, iso_639_2_standard, iso_639_3_standard, Language_Type, languageActive, langLocalChangeSeqNum, langMasterChangeSeqNum, langLastChangedBy, langLct) VALUES (NEW.langUid, NEW.name, NEW.iso_639_1_standard, NEW.iso_639_2_standard, NEW.iso_639_3_standard, NEW.Language_Type, NEW.languageActive, NEW.langLocalChangeSeqNum, NEW.langMasterChangeSeqNum, NEW.langLastChangedBy, NEW.langLct) /*psql ON CONFLICT (langUid) DO UPDATE SET name = EXCLUDED.name, iso_639_1_standard = EXCLUDED.iso_639_1_standard, iso_639_2_standard = EXCLUDED.iso_639_2_standard, iso_639_3_standard = EXCLUDED.iso_639_3_standard, Language_Type = EXCLUDED.Language_Type, languageActive = EXCLUDED.languageActive, langLocalChangeSeqNum = EXCLUDED.langLocalChangeSeqNum, langMasterChangeSeqNum = EXCLUDED.langMasterChangeSeqNum, langLastChangedBy = EXCLUDED.langLastChangedBy, langLct = EXCLUDED.langLct */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS LanguageVariantReplicate ( lvPk INTEGER NOT NULL, lvVersionId INTEGER NOT NULL DEFAULT 0, lvDestination INTEGER NOT NULL, lvPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (lvPk, lvDestination)) "),e.add_11rb$(" CREATE INDEX index_LanguageVariantReplicate_lvPk_lvDestination_lvVersionId ON LanguageVariantReplicate (lvPk, lvDestination, lvVersionId) "),e.add_11rb$(" CREATE INDEX index_LanguageVariantReplicate_lvDestination_lvPending ON LanguageVariantReplicate (lvDestination, lvPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_10 AFTER INSERT ON LanguageVariant BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 10 AS chTableId, NEW.langVariantUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 10 AND chEntityPk = NEW.langVariantUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_10 AFTER UPDATE ON LanguageVariant BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 10 AS chTableId, NEW.langVariantUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 10 AND chEntityPk = NEW.langVariantUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_10 AFTER DELETE ON LanguageVariant BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 10 AS chTableId, OLD.langVariantUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 10 AND chEntityPk = OLD.langVariantUid); END "),e.add_11rb$("CREATE VIEW LanguageVariant_ReceiveView AS SELECT LanguageVariant.*, LanguageVariantReplicate.* FROM LanguageVariant LEFT JOIN LanguageVariantReplicate ON LanguageVariantReplicate.lvPk = LanguageVariant.langVariantUid "),e.add_11rb$(" CREATE TRIGGER languagevariant_remote_insert_ins INSTEAD OF INSERT ON LanguageVariant_ReceiveView FOR EACH ROW BEGIN REPLACE INTO LanguageVariant(langVariantUid, langUid, countryCode, name, langVariantLocalChangeSeqNum, langVariantMasterChangeSeqNum, langVariantLastChangedBy, langVariantLct) VALUES (NEW.langVariantUid, NEW.langUid, NEW.countryCode, NEW.name, NEW.langVariantLocalChangeSeqNum, NEW.langVariantMasterChangeSeqNum, NEW.langVariantLastChangedBy, NEW.langVariantLct) /*psql ON CONFLICT (langVariantUid) DO UPDATE SET langUid = EXCLUDED.langUid, countryCode = EXCLUDED.countryCode, name = EXCLUDED.name, langVariantLocalChangeSeqNum = EXCLUDED.langVariantLocalChangeSeqNum, langVariantMasterChangeSeqNum = EXCLUDED.langVariantMasterChangeSeqNum, langVariantLastChangedBy = EXCLUDED.langVariantLastChangedBy, langVariantLct = EXCLUDED.langVariantLct */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS PersonGroupReplicate ( pgPk INTEGER NOT NULL, pgVersionId INTEGER NOT NULL DEFAULT 0, pgDestination INTEGER NOT NULL, pgPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (pgPk, pgDestination)) "),e.add_11rb$(" CREATE INDEX index_PersonGroupReplicate_pgPk_pgDestination_pgVersionId ON PersonGroupReplicate (pgPk, pgDestination, pgVersionId) "),e.add_11rb$(" CREATE INDEX index_PersonGroupReplicate_pgDestination_pgPending ON PersonGroupReplicate (pgDestination, pgPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_43 AFTER INSERT ON PersonGroup BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 43 AS chTableId, NEW.groupUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 43 AND chEntityPk = NEW.groupUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_43 AFTER UPDATE ON PersonGroup BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 43 AS chTableId, NEW.groupUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 43 AND chEntityPk = NEW.groupUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_43 AFTER DELETE ON PersonGroup BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 43 AS chTableId, OLD.groupUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 43 AND chEntityPk = OLD.groupUid); END "),e.add_11rb$("CREATE VIEW PersonGroup_ReceiveView AS SELECT PersonGroup.*, PersonGroupReplicate.* FROM PersonGroup LEFT JOIN PersonGroupReplicate ON PersonGroupReplicate.pgPk = PersonGroup.groupUid "),e.add_11rb$(" CREATE TRIGGER persongroup_remote_insert_ins INSTEAD OF INSERT ON PersonGroup_ReceiveView FOR EACH ROW BEGIN REPLACE INTO PersonGroup(groupUid, groupMasterCsn, groupLocalCsn, groupLastChangedBy, groupLct, groupName, groupActive, personGroupFlag) VALUES (NEW.groupUid, NEW.groupMasterCsn, NEW.groupLocalCsn, NEW.groupLastChangedBy, NEW.groupLct, NEW.groupName, NEW.groupActive, NEW.personGroupFlag) /*psql ON CONFLICT (groupUid) DO UPDATE SET groupMasterCsn = EXCLUDED.groupMasterCsn, groupLocalCsn = EXCLUDED.groupLocalCsn, groupLastChangedBy = EXCLUDED.groupLastChangedBy, groupLct = EXCLUDED.groupLct, groupName = EXCLUDED.groupName, groupActive = EXCLUDED.groupActive, personGroupFlag = EXCLUDED.personGroupFlag */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS PersonGroupMemberReplicate ( pgmPk INTEGER NOT NULL, pgmVersionId INTEGER NOT NULL DEFAULT 0, pgmDestination INTEGER NOT NULL, pgmPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (pgmPk, pgmDestination)) "),e.add_11rb$(" CREATE INDEX index_PersonGroupMemberReplicate_pgmPk_pgmDestination_pgmVersionId ON PersonGroupMemberReplicate (pgmPk, pgmDestination, pgmVersionId) "),e.add_11rb$(" CREATE INDEX index_PersonGroupMemberReplicate_pgmDestination_pgmPending ON PersonGroupMemberReplicate (pgmDestination, pgmPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_44 AFTER INSERT ON PersonGroupMember BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 44 AS chTableId, NEW.groupMemberUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 44 AND chEntityPk = NEW.groupMemberUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_44 AFTER UPDATE ON PersonGroupMember BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 44 AS chTableId, NEW.groupMemberUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 44 AND chEntityPk = NEW.groupMemberUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_44 AFTER DELETE ON PersonGroupMember BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 44 AS chTableId, OLD.groupMemberUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 44 AND chEntityPk = OLD.groupMemberUid); END "),e.add_11rb$("CREATE VIEW PersonGroupMember_ReceiveView AS SELECT PersonGroupMember.*, PersonGroupMemberReplicate.* FROM PersonGroupMember LEFT JOIN PersonGroupMemberReplicate ON PersonGroupMemberReplicate.pgmPk = PersonGroupMember.groupMemberUid "),e.add_11rb$(" CREATE TRIGGER persongroupmember_remote_insert_ins INSTEAD OF INSERT ON PersonGroupMember_ReceiveView FOR EACH ROW BEGIN REPLACE INTO PersonGroupMember(groupMemberUid, groupMemberActive, groupMemberPersonUid, groupMemberGroupUid, groupMemberMasterCsn, groupMemberLocalCsn, groupMemberLastChangedBy, groupMemberLct) VALUES (NEW.groupMemberUid, NEW.groupMemberActive, NEW.groupMemberPersonUid, NEW.groupMemberGroupUid, NEW.groupMemberMasterCsn, NEW.groupMemberLocalCsn, NEW.groupMemberLastChangedBy, NEW.groupMemberLct) /*psql ON CONFLICT (groupMemberUid) DO UPDATE SET groupMemberActive = EXCLUDED.groupMemberActive, groupMemberPersonUid = EXCLUDED.groupMemberPersonUid, groupMemberGroupUid = EXCLUDED.groupMemberGroupUid, groupMemberMasterCsn = EXCLUDED.groupMemberMasterCsn, groupMemberLocalCsn = EXCLUDED.groupMemberLocalCsn, groupMemberLastChangedBy = EXCLUDED.groupMemberLastChangedBy, groupMemberLct = EXCLUDED.groupMemberLct */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS PersonPictureReplicate ( ppPk INTEGER NOT NULL, ppVersionId INTEGER NOT NULL DEFAULT 0, ppDestination INTEGER NOT NULL, ppPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (ppPk, ppDestination)) "),e.add_11rb$(" CREATE INDEX index_PersonPictureReplicate_ppPk_ppDestination_ppVersionId ON PersonPictureReplicate (ppPk, ppDestination, ppVersionId) "),e.add_11rb$(" CREATE INDEX index_PersonPictureReplicate_ppDestination_ppPending ON PersonPictureReplicate (ppDestination, ppPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_50 AFTER INSERT ON PersonPicture BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 50 AS chTableId, NEW.personPictureUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 50 AND chEntityPk = NEW.personPictureUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_50 AFTER UPDATE ON PersonPicture BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 50 AS chTableId, NEW.personPictureUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 50 AND chEntityPk = NEW.personPictureUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_50 AFTER DELETE ON PersonPicture BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 50 AS chTableId, OLD.personPictureUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 50 AND chEntityPk = OLD.personPictureUid); END "),e.add_11rb$("CREATE VIEW PersonPicture_ReceiveView AS SELECT PersonPicture.*, PersonPictureReplicate.* FROM PersonPicture LEFT JOIN PersonPictureReplicate ON PersonPictureReplicate.ppPk = PersonPicture.personPictureUid "),e.add_11rb$(" CREATE TRIGGER personpicture_remote_insert_ins INSTEAD OF INSERT ON PersonPicture_ReceiveView FOR EACH ROW BEGIN REPLACE INTO PersonPicture(personPictureUid, personPicturePersonUid, personPictureMasterCsn, personPictureLocalCsn, personPictureLastChangedBy, personPictureLct, personPictureUri, personPictureMd5, fileSize, picTimestamp, mimeType, personPictureActive) VALUES (NEW.personPictureUid, NEW.personPicturePersonUid, NEW.personPictureMasterCsn, NEW.personPictureLocalCsn, NEW.personPictureLastChangedBy, NEW.personPictureLct, NEW.personPictureUri, NEW.personPictureMd5, NEW.fileSize, NEW.picTimestamp, NEW.mimeType, NEW.personPictureActive) /*psql ON CONFLICT (personPictureUid) DO UPDATE SET personPicturePersonUid = EXCLUDED.personPicturePersonUid, personPictureMasterCsn = EXCLUDED.personPictureMasterCsn, personPictureLocalCsn = EXCLUDED.personPictureLocalCsn, personPictureLastChangedBy = EXCLUDED.personPictureLastChangedBy, personPictureLct = EXCLUDED.personPictureLct, personPictureUri = EXCLUDED.personPictureUri, personPictureMd5 = EXCLUDED.personPictureMd5, fileSize = EXCLUDED.fileSize, picTimestamp = EXCLUDED.picTimestamp, mimeType = EXCLUDED.mimeType, personPictureActive = EXCLUDED.personPictureActive */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ContainerReplicate ( containerPk INTEGER NOT NULL, containerVersionId INTEGER NOT NULL DEFAULT 0, containerDestination INTEGER NOT NULL, containerPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (containerPk, containerDestination)) "),e.add_11rb$(" CREATE INDEX index_ContainerReplicate_containerPk_containerDestination_containerVersionId ON ContainerReplicate (containerPk, containerDestination, containerVersionId) "),e.add_11rb$(" CREATE INDEX index_ContainerReplicate_containerDestination_containerPending ON ContainerReplicate (containerDestination, containerPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_51 AFTER INSERT ON Container BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 51 AS chTableId, NEW.containerUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 51 AND chEntityPk = NEW.containerUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_51 AFTER UPDATE ON Container BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 51 AS chTableId, NEW.containerUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 51 AND chEntityPk = NEW.containerUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_51 AFTER DELETE ON Container BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 51 AS chTableId, OLD.containerUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 51 AND chEntityPk = OLD.containerUid); END "),e.add_11rb$("CREATE VIEW Container_ReceiveView AS SELECT Container.*, ContainerReplicate.* FROM Container LEFT JOIN ContainerReplicate ON ContainerReplicate.containerPk = Container.containerUid "),e.add_11rb$(" CREATE TRIGGER container_remote_insert_ins INSTEAD OF INSERT ON Container_ReceiveView FOR EACH ROW BEGIN REPLACE INTO Container(containerUid, cntLocalCsn, cntMasterCsn, cntLastModBy, cntLct, fileSize, containerContentEntryUid, cntLastModified, mimeType, remarks, mobileOptimized, cntNumEntries) VALUES (NEW.containerUid, NEW.cntLocalCsn, NEW.cntMasterCsn, NEW.cntLastModBy, NEW.cntLct, NEW.fileSize, NEW.containerContentEntryUid, NEW.cntLastModified, NEW.mimeType, NEW.remarks, NEW.mobileOptimized, NEW.cntNumEntries) /*psql ON CONFLICT (containerUid) DO UPDATE SET cntLocalCsn = EXCLUDED.cntLocalCsn, cntMasterCsn = EXCLUDED.cntMasterCsn, cntLastModBy = EXCLUDED.cntLastModBy, cntLct = EXCLUDED.cntLct, fileSize = EXCLUDED.fileSize, containerContentEntryUid = EXCLUDED.containerContentEntryUid, cntLastModified = EXCLUDED.cntLastModified, mimeType = EXCLUDED.mimeType, remarks = EXCLUDED.remarks, mobileOptimized = EXCLUDED.mobileOptimized, cntNumEntries = EXCLUDED.cntNumEntries */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS VerbEntityReplicate ( vePk INTEGER NOT NULL, veVersionId INTEGER NOT NULL DEFAULT 0, veDestination INTEGER NOT NULL, vePending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (vePk, veDestination)) "),e.add_11rb$(" CREATE INDEX index_VerbEntityReplicate_vePk_veDestination_veVersionId ON VerbEntityReplicate (vePk, veDestination, veVersionId) "),e.add_11rb$(" CREATE INDEX index_VerbEntityReplicate_veDestination_vePending ON VerbEntityReplicate (veDestination, vePending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_62 AFTER INSERT ON VerbEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 62 AS chTableId, NEW.verbUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 62 AND chEntityPk = NEW.verbUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_62 AFTER UPDATE ON VerbEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 62 AS chTableId, NEW.verbUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 62 AND chEntityPk = NEW.verbUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_62 AFTER DELETE ON VerbEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 62 AS chTableId, OLD.verbUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 62 AND chEntityPk = OLD.verbUid); END "),e.add_11rb$("CREATE VIEW VerbEntity_ReceiveView AS SELECT VerbEntity.*, VerbEntityReplicate.* FROM VerbEntity LEFT JOIN VerbEntityReplicate ON VerbEntityReplicate.vePk = VerbEntity.verbUid "),e.add_11rb$(" CREATE TRIGGER verbentity_remote_insert_ins INSTEAD OF INSERT ON VerbEntity_ReceiveView FOR EACH ROW BEGIN REPLACE INTO VerbEntity(verbUid, urlId, verbInActive, verbMasterChangeSeqNum, verbLocalChangeSeqNum, verbLastChangedBy, verbLct) VALUES (NEW.verbUid, NEW.urlId, NEW.verbInActive, NEW.verbMasterChangeSeqNum, NEW.verbLocalChangeSeqNum, NEW.verbLastChangedBy, NEW.verbLct) /*psql ON CONFLICT (verbUid) DO UPDATE SET urlId = EXCLUDED.urlId, verbInActive = EXCLUDED.verbInActive, verbMasterChangeSeqNum = EXCLUDED.verbMasterChangeSeqNum, verbLocalChangeSeqNum = EXCLUDED.verbLocalChangeSeqNum, verbLastChangedBy = EXCLUDED.verbLastChangedBy, verbLct = EXCLUDED.verbLct */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS XObjectEntityReplicate ( xoePk INTEGER NOT NULL, xoeVersionId INTEGER NOT NULL DEFAULT 0, xoeDestination INTEGER NOT NULL, xoePending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (xoePk, xoeDestination)) "),e.add_11rb$(" CREATE INDEX index_XObjectEntityReplicate_xoePk_xoeDestination_xoeVersionId ON XObjectEntityReplicate (xoePk, xoeDestination, xoeVersionId) "),e.add_11rb$(" CREATE INDEX index_XObjectEntityReplicate_xoeDestination_xoePending ON XObjectEntityReplicate (xoeDestination, xoePending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_64 AFTER INSERT ON XObjectEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 64 AS chTableId, NEW.xObjectUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 64 AND chEntityPk = NEW.xObjectUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_64 AFTER UPDATE ON XObjectEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 64 AS chTableId, NEW.xObjectUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 64 AND chEntityPk = NEW.xObjectUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_64 AFTER DELETE ON XObjectEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 64 AS chTableId, OLD.xObjectUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 64 AND chEntityPk = OLD.xObjectUid); END "),e.add_11rb$("CREATE VIEW XObjectEntity_ReceiveView AS SELECT XObjectEntity.*, XObjectEntityReplicate.* FROM XObjectEntity LEFT JOIN XObjectEntityReplicate ON XObjectEntityReplicate.xoePk = XObjectEntity.xObjectUid "),e.add_11rb$(" CREATE TRIGGER xobjectentity_remote_insert_ins INSTEAD OF INSERT ON XObjectEntity_ReceiveView FOR EACH ROW BEGIN REPLACE INTO XObjectEntity(xObjectUid, objectType, objectId, definitionType, interactionType, correctResponsePattern, objectContentEntryUid, xObjectMasterChangeSeqNum, xObjectocalChangeSeqNum, xObjectLastChangedBy, xObjectLct) VALUES (NEW.xObjectUid, NEW.objectType, NEW.objectId, NEW.definitionType, NEW.interactionType, NEW.correctResponsePattern, NEW.objectContentEntryUid, NEW.xObjectMasterChangeSeqNum, NEW.xObjectocalChangeSeqNum, NEW.xObjectLastChangedBy, NEW.xObjectLct) /*psql ON CONFLICT (xObjectUid) DO UPDATE SET objectType = EXCLUDED.objectType, objectId = EXCLUDED.objectId, definitionType = EXCLUDED.definitionType, interactionType = EXCLUDED.interactionType, correctResponsePattern = EXCLUDED.correctResponsePattern, objectContentEntryUid = EXCLUDED.objectContentEntryUid, xObjectMasterChangeSeqNum = EXCLUDED.xObjectMasterChangeSeqNum, xObjectocalChangeSeqNum = EXCLUDED.xObjectocalChangeSeqNum, xObjectLastChangedBy = EXCLUDED.xObjectLastChangedBy, xObjectLct = EXCLUDED.xObjectLct */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS StatementEntityReplicate ( sePk INTEGER NOT NULL, seVersionId INTEGER NOT NULL DEFAULT 0, seDestination INTEGER NOT NULL, sePending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (sePk, seDestination)) "),e.add_11rb$(" CREATE INDEX index_StatementEntityReplicate_sePk_seDestination_seVersionId ON StatementEntityReplicate (sePk, seDestination, seVersionId) "),e.add_11rb$(" CREATE INDEX index_StatementEntityReplicate_seDestination_sePending ON StatementEntityReplicate (seDestination, sePending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_60 AFTER INSERT ON StatementEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 60 AS chTableId, NEW.statementUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 60 AND chEntityPk = NEW.statementUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_60 AFTER UPDATE ON StatementEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 60 AS chTableId, NEW.statementUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 60 AND chEntityPk = NEW.statementUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_60 AFTER DELETE ON StatementEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 60 AS chTableId, OLD.statementUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 60 AND chEntityPk = OLD.statementUid); END "),e.add_11rb$("CREATE VIEW StatementEntity_ReceiveView AS SELECT StatementEntity.*, StatementEntityReplicate.* FROM StatementEntity LEFT JOIN StatementEntityReplicate ON StatementEntityReplicate.sePk = StatementEntity.statementUid "),e.add_11rb$(" CREATE TRIGGER statemententity_remote_insert_ins INSTEAD OF INSERT ON StatementEntity_ReceiveView FOR EACH ROW BEGIN REPLACE INTO StatementEntity(statementUid, statementId, statementPersonUid, statementVerbUid, xObjectUid, subStatementActorUid, substatementVerbUid, subStatementObjectUid, agentUid, instructorUid, authorityUid, teamUid, resultCompletion, resultSuccess, resultScoreScaled, resultScoreRaw, resultScoreMin, resultScoreMax, resultDuration, resultResponse, timestamp, stored, contextRegistration, contextPlatform, contextStatementId, fullStatement, statementMasterChangeSeqNum, statementLocalChangeSeqNum, statementLastChangedBy, statementLct, extensionProgress, contentEntryRoot, statementContentEntryUid, statementLearnerGroupUid, statementClazzUid) VALUES (NEW.statementUid, NEW.statementId, NEW.statementPersonUid, NEW.statementVerbUid, NEW.xObjectUid, NEW.subStatementActorUid, NEW.substatementVerbUid, NEW.subStatementObjectUid, NEW.agentUid, NEW.instructorUid, NEW.authorityUid, NEW.teamUid, NEW.resultCompletion, NEW.resultSuccess, NEW.resultScoreScaled, NEW.resultScoreRaw, NEW.resultScoreMin, NEW.resultScoreMax, NEW.resultDuration, NEW.resultResponse, NEW.timestamp, NEW.stored, NEW.contextRegistration, NEW.contextPlatform, NEW.contextStatementId, NEW.fullStatement, NEW.statementMasterChangeSeqNum, NEW.statementLocalChangeSeqNum, NEW.statementLastChangedBy, NEW.statementLct, NEW.extensionProgress, NEW.contentEntryRoot, NEW.statementContentEntryUid, NEW.statementLearnerGroupUid, NEW.statementClazzUid) /*psql ON CONFLICT (statementUid) DO UPDATE SET statementId = EXCLUDED.statementId, statementPersonUid = EXCLUDED.statementPersonUid, statementVerbUid = EXCLUDED.statementVerbUid, xObjectUid = EXCLUDED.xObjectUid, subStatementActorUid = EXCLUDED.subStatementActorUid, substatementVerbUid = EXCLUDED.substatementVerbUid, subStatementObjectUid = EXCLUDED.subStatementObjectUid, agentUid = EXCLUDED.agentUid, instructorUid = EXCLUDED.instructorUid, authorityUid = EXCLUDED.authorityUid, teamUid = EXCLUDED.teamUid, resultCompletion = EXCLUDED.resultCompletion, resultSuccess = EXCLUDED.resultSuccess, resultScoreScaled = EXCLUDED.resultScoreScaled, resultScoreRaw = EXCLUDED.resultScoreRaw, resultScoreMin = EXCLUDED.resultScoreMin, resultScoreMax = EXCLUDED.resultScoreMax, resultDuration = EXCLUDED.resultDuration, resultResponse = EXCLUDED.resultResponse, timestamp = EXCLUDED.timestamp, stored = EXCLUDED.stored, contextRegistration = EXCLUDED.contextRegistration, contextPlatform = EXCLUDED.contextPlatform, contextStatementId = EXCLUDED.contextStatementId, fullStatement = EXCLUDED.fullStatement, statementMasterChangeSeqNum = EXCLUDED.statementMasterChangeSeqNum, statementLocalChangeSeqNum = EXCLUDED.statementLocalChangeSeqNum, statementLastChangedBy = EXCLUDED.statementLastChangedBy, statementLct = EXCLUDED.statementLct, extensionProgress = EXCLUDED.extensionProgress, contentEntryRoot = EXCLUDED.contentEntryRoot, statementContentEntryUid = EXCLUDED.statementContentEntryUid, statementLearnerGroupUid = EXCLUDED.statementLearnerGroupUid, statementClazzUid = EXCLUDED.statementClazzUid */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ContextXObjectStatementJoinReplicate ( cxosjPk INTEGER NOT NULL, cxosjVersionId INTEGER NOT NULL DEFAULT 0, cxosjDestination INTEGER NOT NULL, cxosjPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (cxosjPk, cxosjDestination)) "),e.add_11rb$(" CREATE INDEX index_ContextXObjectStatementJoinReplicate_cxosjPk_cxosjDestination_cxosjVersionId ON ContextXObjectStatementJoinReplicate (cxosjPk, cxosjDestination, cxosjVersionId) "),e.add_11rb$(" CREATE INDEX index_ContextXObjectStatementJoinReplicate_cxosjDestination_cxosjPending ON ContextXObjectStatementJoinReplicate (cxosjDestination, cxosjPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_66 AFTER INSERT ON ContextXObjectStatementJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 66 AS chTableId, NEW.contextXObjectStatementJoinUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 66 AND chEntityPk = NEW.contextXObjectStatementJoinUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_66 AFTER UPDATE ON ContextXObjectStatementJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 66 AS chTableId, NEW.contextXObjectStatementJoinUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 66 AND chEntityPk = NEW.contextXObjectStatementJoinUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_66 AFTER DELETE ON ContextXObjectStatementJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 66 AS chTableId, OLD.contextXObjectStatementJoinUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 66 AND chEntityPk = OLD.contextXObjectStatementJoinUid); END "),e.add_11rb$("CREATE VIEW ContextXObjectStatementJoin_ReceiveView AS SELECT ContextXObjectStatementJoin.*, ContextXObjectStatementJoinReplicate.* FROM ContextXObjectStatementJoin LEFT JOIN ContextXObjectStatementJoinReplicate ON ContextXObjectStatementJoinReplicate.cxosjPk = ContextXObjectStatementJoin.contextXObjectStatementJoinUid "),e.add_11rb$(" CREATE TRIGGER contextxobjectstatementjoin_remote_insert_ins INSTEAD OF INSERT ON ContextXObjectStatementJoin_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ContextXObjectStatementJoin(contextXObjectStatementJoinUid, contextActivityFlag, contextStatementUid, contextXObjectUid, verbMasterChangeSeqNum, verbLocalChangeSeqNum, verbLastChangedBy, contextXObjectLct) VALUES (NEW.contextXObjectStatementJoinUid, NEW.contextActivityFlag, NEW.contextStatementUid, NEW.contextXObjectUid, NEW.verbMasterChangeSeqNum, NEW.verbLocalChangeSeqNum, NEW.verbLastChangedBy, NEW.contextXObjectLct) /*psql ON CONFLICT (contextXObjectStatementJoinUid) DO UPDATE SET contextActivityFlag = EXCLUDED.contextActivityFlag, contextStatementUid = EXCLUDED.contextStatementUid, contextXObjectUid = EXCLUDED.contextXObjectUid, verbMasterChangeSeqNum = EXCLUDED.verbMasterChangeSeqNum, verbLocalChangeSeqNum = EXCLUDED.verbLocalChangeSeqNum, verbLastChangedBy = EXCLUDED.verbLastChangedBy, contextXObjectLct = EXCLUDED.contextXObjectLct */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS AgentEntityReplicate ( aePk INTEGER NOT NULL, aeVersionId INTEGER NOT NULL DEFAULT 0, aeDestination INTEGER NOT NULL, aePending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (aePk, aeDestination)) "),e.add_11rb$(" CREATE INDEX index_AgentEntityReplicate_aePk_aeDestination_aeVersionId ON AgentEntityReplicate (aePk, aeDestination, aeVersionId) "),e.add_11rb$(" CREATE INDEX index_AgentEntityReplicate_aeDestination_aePending ON AgentEntityReplicate (aeDestination, aePending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_68 AFTER INSERT ON AgentEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 68 AS chTableId, NEW.agentUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 68 AND chEntityPk = NEW.agentUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_68 AFTER UPDATE ON AgentEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 68 AS chTableId, NEW.agentUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 68 AND chEntityPk = NEW.agentUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_68 AFTER DELETE ON AgentEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 68 AS chTableId, OLD.agentUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 68 AND chEntityPk = OLD.agentUid); END "),e.add_11rb$("CREATE VIEW AgentEntity_ReceiveView AS SELECT AgentEntity.*, AgentEntityReplicate.* FROM AgentEntity LEFT JOIN AgentEntityReplicate ON AgentEntityReplicate.aePk = AgentEntity.agentUid "),e.add_11rb$(" CREATE TRIGGER agententity_remote_insert_ins INSTEAD OF INSERT ON AgentEntity_ReceiveView FOR EACH ROW BEGIN REPLACE INTO AgentEntity(agentUid, agentMbox, agentMbox_sha1sum, agentOpenid, agentAccountName, agentHomePage, agentPersonUid, statementMasterChangeSeqNum, statementLocalChangeSeqNum, statementLastChangedBy, agentLct) VALUES (NEW.agentUid, NEW.agentMbox, NEW.agentMbox_sha1sum, NEW.agentOpenid, NEW.agentAccountName, NEW.agentHomePage, NEW.agentPersonUid, NEW.statementMasterChangeSeqNum, NEW.statementLocalChangeSeqNum, NEW.statementLastChangedBy, NEW.agentLct) /*psql ON CONFLICT (agentUid) DO UPDATE SET agentMbox = EXCLUDED.agentMbox, agentMbox_sha1sum = EXCLUDED.agentMbox_sha1sum, agentOpenid = EXCLUDED.agentOpenid, agentAccountName = EXCLUDED.agentAccountName, agentHomePage = EXCLUDED.agentHomePage, agentPersonUid = EXCLUDED.agentPersonUid, statementMasterChangeSeqNum = EXCLUDED.statementMasterChangeSeqNum, statementLocalChangeSeqNum = EXCLUDED.statementLocalChangeSeqNum, statementLastChangedBy = EXCLUDED.statementLastChangedBy, agentLct = EXCLUDED.agentLct*/; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS StateEntityReplicate ( sePk INTEGER NOT NULL, seVersionId INTEGER NOT NULL DEFAULT 0, seDestination INTEGER NOT NULL, sePending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (sePk, seDestination)) "),e.add_11rb$(" CREATE INDEX index_StateEntityReplicate_sePk_seDestination_seVersionId ON StateEntityReplicate (sePk, seDestination, seVersionId) "),e.add_11rb$(" CREATE INDEX index_StateEntityReplicate_seDestination_sePending ON StateEntityReplicate (seDestination, sePending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_70 AFTER INSERT ON StateEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 70 AS chTableId, NEW.stateUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 70 AND chEntityPk = NEW.stateUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_70 AFTER UPDATE ON StateEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 70 AS chTableId, NEW.stateUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 70 AND chEntityPk = NEW.stateUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_70 AFTER DELETE ON StateEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 70 AS chTableId, OLD.stateUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 70 AND chEntityPk = OLD.stateUid); END "),e.add_11rb$("CREATE VIEW StateEntity_ReceiveView AS SELECT StateEntity.*, StateEntityReplicate.* FROM StateEntity LEFT JOIN StateEntityReplicate ON StateEntityReplicate.sePk = StateEntity.stateUid "),e.add_11rb$(" CREATE TRIGGER stateentity_remote_insert_ins INSTEAD OF INSERT ON StateEntity_ReceiveView FOR EACH ROW BEGIN REPLACE INTO StateEntity(stateUid, stateId, agentUid, activityId, registration, isIsactive, timestamp, stateMasterChangeSeqNum, stateLocalChangeSeqNum, stateLastChangedBy, stateLct) VALUES (NEW.stateUid, NEW.stateId, NEW.agentUid, NEW.activityId, NEW.registration, NEW.isIsactive, NEW.timestamp, NEW.stateMasterChangeSeqNum, NEW.stateLocalChangeSeqNum, NEW.stateLastChangedBy, NEW.stateLct) /*psql ON CONFLICT (stateUid) DO UPDATE SET stateId = EXCLUDED.stateId, agentUid = EXCLUDED.agentUid, activityId = EXCLUDED.activityId, registration = EXCLUDED.registration, isIsactive = EXCLUDED.isIsactive, timestamp = EXCLUDED.timestamp, stateMasterChangeSeqNum = EXCLUDED.stateMasterChangeSeqNum, stateLocalChangeSeqNum = EXCLUDED.stateLocalChangeSeqNum, stateLastChangedBy = EXCLUDED.stateLastChangedBy, stateLct = EXCLUDED.stateLct */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS StateContentEntityReplicate ( scePk INTEGER NOT NULL, sceVersionId INTEGER NOT NULL DEFAULT 0, sceDestination INTEGER NOT NULL, scePending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (scePk, sceDestination)) "),e.add_11rb$(" CREATE INDEX index_StateContentEntityReplicate_scePk_sceDestination_sceVersionId ON StateContentEntityReplicate (scePk, sceDestination, sceVersionId) "),e.add_11rb$(" CREATE INDEX index_StateContentEntityReplicate_sceDestination_scePending ON StateContentEntityReplicate (sceDestination, scePending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_72 AFTER INSERT ON StateContentEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 72 AS chTableId, NEW.stateContentUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 72 AND chEntityPk = NEW.stateContentUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_72 AFTER UPDATE ON StateContentEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 72 AS chTableId, NEW.stateContentUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 72 AND chEntityPk = NEW.stateContentUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_72 AFTER DELETE ON StateContentEntity BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 72 AS chTableId, OLD.stateContentUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 72 AND chEntityPk = OLD.stateContentUid); END "),e.add_11rb$("CREATE VIEW StateContentEntity_ReceiveView AS SELECT StateContentEntity.*, StateContentEntityReplicate.* FROM StateContentEntity LEFT JOIN StateContentEntityReplicate ON StateContentEntityReplicate.scePk = StateContentEntity.stateContentUid "),e.add_11rb$(" CREATE TRIGGER statecontententity_remote_insert_ins INSTEAD OF INSERT ON StateContentEntity_ReceiveView FOR EACH ROW BEGIN REPLACE INTO StateContentEntity(stateContentUid, stateContentStateUid, stateContentKey, stateContentValue, isIsactive, stateContentMasterChangeSeqNum, stateContentLocalChangeSeqNum, stateContentLastChangedBy, stateContentLct) VALUES (NEW.stateContentUid, NEW.stateContentStateUid, NEW.stateContentKey, NEW.stateContentValue, NEW.isIsactive, NEW.stateContentMasterChangeSeqNum, NEW.stateContentLocalChangeSeqNum, NEW.stateContentLastChangedBy, NEW.stateContentLct) /*psql ON CONFLICT (stateContentUid) DO UPDATE SET stateContentStateUid = EXCLUDED.stateContentStateUid, stateContentKey = EXCLUDED.stateContentKey, stateContentValue = EXCLUDED.stateContentValue, isIsactive = EXCLUDED.isIsactive, stateContentMasterChangeSeqNum = EXCLUDED.stateContentMasterChangeSeqNum, stateContentLocalChangeSeqNum = EXCLUDED.stateContentLocalChangeSeqNum, stateContentLastChangedBy = EXCLUDED.stateContentLastChangedBy, stateContentLct = EXCLUDED.stateContentLct */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS XLangMapEntryReplicate ( xlmePk INTEGER NOT NULL, xlmeVersionId INTEGER NOT NULL DEFAULT 0, xlmeDestination INTEGER NOT NULL, xlmePending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (xlmePk, xlmeDestination)) "),e.add_11rb$(" CREATE INDEX index_XLangMapEntryReplicate_xlmePk_xlmeDestination_xlmeVersionId ON XLangMapEntryReplicate (xlmePk, xlmeDestination, xlmeVersionId) "),e.add_11rb$(" CREATE INDEX index_XLangMapEntryReplicate_xlmeDestination_xlmePending ON XLangMapEntryReplicate (xlmeDestination, xlmePending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_74 AFTER INSERT ON XLangMapEntry BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 74 AS chTableId, NEW.statementLangMapUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 74 AND chEntityPk = NEW.statementLangMapUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_74 AFTER UPDATE ON XLangMapEntry BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 74 AS chTableId, NEW.statementLangMapUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 74 AND chEntityPk = NEW.statementLangMapUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_74 AFTER DELETE ON XLangMapEntry BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 74 AS chTableId, OLD.statementLangMapUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 74 AND chEntityPk = OLD.statementLangMapUid); END "),e.add_11rb$("CREATE VIEW XLangMapEntry_ReceiveView AS SELECT XLangMapEntry.*, XLangMapEntryReplicate.* FROM XLangMapEntry LEFT JOIN XLangMapEntryReplicate ON XLangMapEntryReplicate.xlmePk = XLangMapEntry.statementLangMapUid "),e.add_11rb$(" CREATE TRIGGER xlangmapentry_remote_insert_ins INSTEAD OF INSERT ON XLangMapEntry_ReceiveView FOR EACH ROW BEGIN REPLACE INTO XLangMapEntry(verbLangMapUid, objectLangMapUid, languageLangMapUid, languageVariantLangMapUid, valueLangMap, statementLangMapMasterCsn, statementLangMapLocalCsn, statementLangMapLcb, statementLangMapLct, statementLangMapUid) VALUES (NEW.verbLangMapUid, NEW.objectLangMapUid, NEW.languageLangMapUid, NEW.languageVariantLangMapUid, NEW.valueLangMap, NEW.statementLangMapMasterCsn, NEW.statementLangMapLocalCsn, NEW.statementLangMapLcb, NEW.statementLangMapLct, NEW.statementLangMapUid) /*psql ON CONFLICT (statementLangMapUid) DO UPDATE SET verbLangMapUid = EXCLUDED.verbLangMapUid, objectLangMapUid = EXCLUDED.objectLangMapUid, languageLangMapUid = EXCLUDED.languageLangMapUid, languageVariantLangMapUid = EXCLUDED.languageVariantLangMapUid, valueLangMap = EXCLUDED.valueLangMap, statementLangMapMasterCsn = EXCLUDED.statementLangMapMasterCsn, statementLangMapLocalCsn = EXCLUDED.statementLangMapLocalCsn, statementLangMapLcb = EXCLUDED.statementLangMapLcb, statementLangMapLct = EXCLUDED.statementLangMapLct */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS SchoolReplicate ( schoolPk INTEGER NOT NULL, schoolVersionId INTEGER NOT NULL DEFAULT 0, schoolDestination INTEGER NOT NULL, schoolPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (schoolPk, schoolDestination)) "),e.add_11rb$(" CREATE INDEX index_SchoolReplicate_schoolPk_schoolDestination_schoolVersionId ON SchoolReplicate (schoolPk, schoolDestination, schoolVersionId) "),e.add_11rb$(" CREATE INDEX index_SchoolReplicate_schoolDestination_schoolPending ON SchoolReplicate (schoolDestination, schoolPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_164 AFTER INSERT ON School BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 164 AS chTableId, NEW.schoolUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 164 AND chEntityPk = NEW.schoolUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_164 AFTER UPDATE ON School BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 164 AS chTableId, NEW.schoolUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 164 AND chEntityPk = NEW.schoolUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_164 AFTER DELETE ON School BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 164 AS chTableId, OLD.schoolUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 164 AND chEntityPk = OLD.schoolUid); END "),e.add_11rb$("CREATE VIEW School_ReceiveView AS SELECT School.*, SchoolReplicate.* FROM School LEFT JOIN SchoolReplicate ON SchoolReplicate.schoolPk = School.schoolUid "),e.add_11rb$(" CREATE TRIGGER school_remote_insert_ins INSTEAD OF INSERT ON School_ReceiveView FOR EACH ROW BEGIN REPLACE INTO School(schoolUid, schoolName, schoolDesc, schoolAddress, schoolActive, schoolPhoneNumber, schoolGender, schoolHolidayCalendarUid, schoolFeatures, schoolLocationLong, schoolLocationLatt, schoolEmailAddress, schoolTeachersPersonGroupUid, schoolStudentsPersonGroupUid, schoolPendingStudentsPersonGroupUid, schoolCode, schoolMasterChangeSeqNum, schoolLocalChangeSeqNum, schoolLastChangedBy, schoolLct, schoolTimeZone) VALUES (NEW.schoolUid, NEW.schoolName, NEW.schoolDesc, NEW.schoolAddress, NEW.schoolActive, NEW.schoolPhoneNumber, NEW.schoolGender, NEW.schoolHolidayCalendarUid, NEW.schoolFeatures, NEW.schoolLocationLong, NEW.schoolLocationLatt, NEW.schoolEmailAddress, NEW.schoolTeachersPersonGroupUid, NEW.schoolStudentsPersonGroupUid, NEW.schoolPendingStudentsPersonGroupUid, NEW.schoolCode, NEW.schoolMasterChangeSeqNum, NEW.schoolLocalChangeSeqNum, NEW.schoolLastChangedBy, NEW.schoolLct, NEW.schoolTimeZone) /*psql ON CONFLICT (schoolUid) DO UPDATE SET schoolName = EXCLUDED.schoolName, schoolDesc = EXCLUDED.schoolDesc, schoolAddress = EXCLUDED.schoolAddress, schoolActive = EXCLUDED.schoolActive, schoolPhoneNumber = EXCLUDED.schoolPhoneNumber, schoolGender = EXCLUDED.schoolGender, schoolHolidayCalendarUid = EXCLUDED.schoolHolidayCalendarUid, schoolFeatures = EXCLUDED.schoolFeatures, schoolLocationLong = EXCLUDED.schoolLocationLong, schoolLocationLatt = EXCLUDED.schoolLocationLatt, schoolEmailAddress = EXCLUDED.schoolEmailAddress, schoolTeachersPersonGroupUid = EXCLUDED.schoolTeachersPersonGroupUid, schoolStudentsPersonGroupUid = EXCLUDED.schoolStudentsPersonGroupUid, schoolPendingStudentsPersonGroupUid = EXCLUDED.schoolPendingStudentsPersonGroupUid, schoolCode = EXCLUDED.schoolCode, schoolMasterChangeSeqNum = EXCLUDED.schoolMasterChangeSeqNum, schoolLocalChangeSeqNum = EXCLUDED.schoolLocalChangeSeqNum, schoolLastChangedBy = EXCLUDED.schoolLastChangedBy, schoolLct = EXCLUDED.schoolLct, schoolTimeZone = EXCLUDED.schoolTimeZone */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS SchoolMemberReplicate ( smPk INTEGER NOT NULL, smVersionId INTEGER NOT NULL DEFAULT 0, smDestination INTEGER NOT NULL, smPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (smPk, smDestination)) "),e.add_11rb$(" CREATE INDEX index_SchoolMemberReplicate_smPk_smDestination_smVersionId ON SchoolMemberReplicate (smPk, smDestination, smVersionId) "),e.add_11rb$(" CREATE INDEX index_SchoolMemberReplicate_smDestination_smPending ON SchoolMemberReplicate (smDestination, smPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_200 AFTER INSERT ON SchoolMember BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 200 AS chTableId, NEW.schoolMemberUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 200 AND chEntityPk = NEW.schoolMemberUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_200 AFTER UPDATE ON SchoolMember BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 200 AS chTableId, NEW.schoolMemberUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 200 AND chEntityPk = NEW.schoolMemberUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_200 AFTER DELETE ON SchoolMember BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 200 AS chTableId, OLD.schoolMemberUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 200 AND chEntityPk = OLD.schoolMemberUid); END "),e.add_11rb$("CREATE VIEW SchoolMember_ReceiveView AS SELECT SchoolMember.*, SchoolMemberReplicate.* FROM SchoolMember LEFT JOIN SchoolMemberReplicate ON SchoolMemberReplicate.smPk = SchoolMember.schoolMemberUid "),e.add_11rb$(" CREATE TRIGGER schoolmember_remote_insert_ins INSTEAD OF INSERT ON SchoolMember_ReceiveView FOR EACH ROW BEGIN REPLACE INTO SchoolMember(schoolMemberUid, schoolMemberPersonUid, schoolMemberSchoolUid, schoolMemberJoinDate, schoolMemberLeftDate, schoolMemberRole, schoolMemberActive, schoolMemberLocalChangeSeqNum, schoolMemberMasterChangeSeqNum, schoolMemberLastChangedBy, schoolMemberLct) VALUES (NEW.schoolMemberUid, NEW.schoolMemberPersonUid, NEW.schoolMemberSchoolUid, NEW.schoolMemberJoinDate, NEW.schoolMemberLeftDate, NEW.schoolMemberRole, NEW.schoolMemberActive, NEW.schoolMemberLocalChangeSeqNum, NEW.schoolMemberMasterChangeSeqNum, NEW.schoolMemberLastChangedBy, NEW.schoolMemberLct) /*psql ON CONFLICT (schoolMemberUid) DO UPDATE SET schoolMemberPersonUid = EXCLUDED.schoolMemberPersonUid, schoolMemberSchoolUid = EXCLUDED.schoolMemberSchoolUid, schoolMemberJoinDate = EXCLUDED.schoolMemberJoinDate, schoolMemberLeftDate = EXCLUDED.schoolMemberLeftDate, schoolMemberRole = EXCLUDED.schoolMemberRole, schoolMemberActive = EXCLUDED.schoolMemberActive, schoolMemberLocalChangeSeqNum = EXCLUDED.schoolMemberLocalChangeSeqNum, schoolMemberMasterChangeSeqNum = EXCLUDED.schoolMemberMasterChangeSeqNum, schoolMemberLastChangedBy = EXCLUDED.schoolMemberLastChangedBy, schoolMemberLct = EXCLUDED.schoolMemberLct */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS CommentsReplicate ( commentsPk INTEGER NOT NULL, commentsVersionId INTEGER NOT NULL DEFAULT 0, commentsDestination INTEGER NOT NULL, commentsPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (commentsPk, commentsDestination)) "),e.add_11rb$(" CREATE INDEX index_CommentsReplicate_commentsPk_commentsDestination_commentsVersionId ON CommentsReplicate (commentsPk, commentsDestination, commentsVersionId) "),e.add_11rb$(" CREATE INDEX index_CommentsReplicate_commentsDestination_commentsPending ON CommentsReplicate (commentsDestination, commentsPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_208 AFTER INSERT ON Comments BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 208 AS chTableId, NEW.commentsUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 208 AND chEntityPk = NEW.commentsUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_208 AFTER UPDATE ON Comments BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 208 AS chTableId, NEW.commentsUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 208 AND chEntityPk = NEW.commentsUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_208 AFTER DELETE ON Comments BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 208 AS chTableId, OLD.commentsUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 208 AND chEntityPk = OLD.commentsUid); END "),e.add_11rb$("CREATE VIEW Comments_ReceiveView AS SELECT Comments.*, CommentsReplicate.* FROM Comments LEFT JOIN CommentsReplicate ON CommentsReplicate.commentsPk = Comments.commentsUid "),e.add_11rb$(" CREATE TRIGGER comments_remote_insert_ins INSTEAD OF INSERT ON Comments_ReceiveView FOR EACH ROW BEGIN REPLACE INTO Comments(commentsUid, commentsText, commentsEntityType, commentsEntityUid, commentsPublic, commentsStatus, commentsPersonUid, commentsToPersonUid, commentsFlagged, commentsInActive, commentsDateTimeAdded, commentsDateTimeUpdated, commentsMCSN, commentsLCSN, commentsLCB, commentsLct) VALUES (NEW.commentsUid, NEW.commentsText, NEW.commentsEntityType, NEW.commentsEntityUid, NEW.commentsPublic, NEW.commentsStatus, NEW.commentsPersonUid, NEW.commentsToPersonUid, NEW.commentsFlagged, NEW.commentsInActive, NEW.commentsDateTimeAdded, NEW.commentsDateTimeUpdated, NEW.commentsMCSN, NEW.commentsLCSN, NEW.commentsLCB, NEW.commentsLct) /*psql ON CONFLICT (commentsUid) DO UPDATE SET commentsText = EXCLUDED.commentsText, commentsEntityType = EXCLUDED.commentsEntityType, commentsEntityUid = EXCLUDED.commentsEntityUid, commentsPublic = EXCLUDED.commentsPublic, commentsStatus = EXCLUDED.commentsStatus, commentsPersonUid = EXCLUDED.commentsPersonUid, commentsToPersonUid = EXCLUDED.commentsToPersonUid, commentsFlagged = EXCLUDED.commentsFlagged, commentsInActive = EXCLUDED.commentsInActive, commentsDateTimeAdded = EXCLUDED.commentsDateTimeAdded, commentsDateTimeUpdated = EXCLUDED.commentsDateTimeUpdated, commentsMCSN = EXCLUDED.commentsMCSN, commentsLCSN = EXCLUDED.commentsLCSN, commentsLCB = EXCLUDED.commentsLCB, commentsLct = EXCLUDED.commentsLct */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ReportReplicate ( reportPk INTEGER NOT NULL, reportVersionId INTEGER NOT NULL DEFAULT 0, reportDestination INTEGER NOT NULL, reportPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (reportPk, reportDestination)) "),e.add_11rb$(" CREATE INDEX index_ReportReplicate_reportPk_reportDestination_reportVersionId ON ReportReplicate (reportPk, reportDestination, reportVersionId) "),e.add_11rb$(" CREATE INDEX index_ReportReplicate_reportDestination_reportPending ON ReportReplicate (reportDestination, reportPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_101 AFTER INSERT ON Report BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 101 AS chTableId, NEW.reportUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 101 AND chEntityPk = NEW.reportUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_101 AFTER UPDATE ON Report BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 101 AS chTableId, NEW.reportUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 101 AND chEntityPk = NEW.reportUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_101 AFTER DELETE ON Report BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 101 AS chTableId, OLD.reportUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 101 AND chEntityPk = OLD.reportUid); END "),e.add_11rb$("CREATE VIEW Report_ReceiveView AS SELECT Report.*, ReportReplicate.* FROM Report LEFT JOIN ReportReplicate ON ReportReplicate.reportPk = Report.reportUid "),e.add_11rb$(" CREATE TRIGGER report_remote_insert_ins INSTEAD OF INSERT ON Report_ReceiveView FOR EACH ROW BEGIN REPLACE INTO Report(reportUid, reportOwnerUid, xAxis, reportDateRangeSelection, fromDate, fromRelTo, fromRelOffSet, fromRelUnit, toDate, toRelTo, toRelOffSet, toRelUnit, reportTitle, reportDescription, reportSeries, reportInactive, isTemplate, priority, reportTitleId, reportDescId, reportMasterChangeSeqNum, reportLocalChangeSeqNum, reportLastChangedBy, reportLct) VALUES (NEW.reportUid, NEW.reportOwnerUid, NEW.xAxis, NEW.reportDateRangeSelection, NEW.fromDate, NEW.fromRelTo, NEW.fromRelOffSet, NEW.fromRelUnit, NEW.toDate, NEW.toRelTo, NEW.toRelOffSet, NEW.toRelUnit, NEW.reportTitle, NEW.reportDescription, NEW.reportSeries, NEW.reportInactive, NEW.isTemplate, NEW.priority, NEW.reportTitleId, NEW.reportDescId, NEW.reportMasterChangeSeqNum, NEW.reportLocalChangeSeqNum, NEW.reportLastChangedBy, NEW.reportLct) /*psql ON CONFLICT (reportUid) DO UPDATE SET reportOwnerUid = EXCLUDED.reportOwnerUid, xAxis = EXCLUDED.xAxis, reportDateRangeSelection = EXCLUDED.reportDateRangeSelection, fromDate = EXCLUDED.fromDate, fromRelTo = EXCLUDED.fromRelTo, fromRelOffSet = EXCLUDED.fromRelOffSet, fromRelUnit = EXCLUDED.fromRelUnit, toDate = EXCLUDED.toDate, toRelTo = EXCLUDED.toRelTo, toRelOffSet = EXCLUDED.toRelOffSet, toRelUnit = EXCLUDED.toRelUnit, reportTitle = EXCLUDED.reportTitle, reportDescription = EXCLUDED.reportDescription, reportSeries = EXCLUDED.reportSeries, reportInactive = EXCLUDED.reportInactive, isTemplate = EXCLUDED.isTemplate, priority = EXCLUDED.priority, reportTitleId = EXCLUDED.reportTitleId, reportDescId = EXCLUDED.reportDescId, reportMasterChangeSeqNum = EXCLUDED.reportMasterChangeSeqNum, reportLocalChangeSeqNum = EXCLUDED.reportLocalChangeSeqNum, reportLastChangedBy = EXCLUDED.reportLastChangedBy, reportLct = EXCLUDED.reportLct */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS SiteReplicate ( sitePk INTEGER NOT NULL, siteVersionId INTEGER NOT NULL DEFAULT 0, siteDestination INTEGER NOT NULL, sitePending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (sitePk, siteDestination)) "),e.add_11rb$(" CREATE INDEX index_SiteReplicate_sitePk_siteDestination_siteVersionId ON SiteReplicate (sitePk, siteDestination, siteVersionId) "),e.add_11rb$(" CREATE INDEX index_SiteReplicate_siteDestination_sitePending ON SiteReplicate (siteDestination, sitePending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_189 AFTER INSERT ON Site BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 189 AS chTableId, NEW.siteUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 189 AND chEntityPk = NEW.siteUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_189 AFTER UPDATE ON Site BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 189 AS chTableId, NEW.siteUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 189 AND chEntityPk = NEW.siteUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_189 AFTER DELETE ON Site BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 189 AS chTableId, OLD.siteUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 189 AND chEntityPk = OLD.siteUid); END "),e.add_11rb$("CREATE VIEW Site_ReceiveView AS SELECT Site.*, SiteReplicate.* FROM Site LEFT JOIN SiteReplicate ON SiteReplicate.sitePk = Site.siteUid "),e.add_11rb$(" CREATE TRIGGER site_remote_insert_ins INSTEAD OF INSERT ON Site_ReceiveView FOR EACH ROW BEGIN REPLACE INTO Site(siteUid, sitePcsn, siteLcsn, siteLcb, siteLct, siteName, guestLogin, registrationAllowed, authSalt) VALUES (NEW.siteUid, NEW.sitePcsn, NEW.siteLcsn, NEW.siteLcb, NEW.siteLct, NEW.siteName, NEW.guestLogin, NEW.registrationAllowed, NEW.authSalt) /*psql ON CONFLICT (siteUid) DO UPDATE SET sitePcsn = EXCLUDED.sitePcsn, siteLcsn = EXCLUDED.siteLcsn, siteLcb = EXCLUDED.siteLcb, siteLct = EXCLUDED.siteLct, siteName = EXCLUDED.siteName, guestLogin = EXCLUDED.guestLogin, registrationAllowed = EXCLUDED.registrationAllowed, authSalt = EXCLUDED.authSalt*/; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS LearnerGroupReplicate ( lgPk INTEGER NOT NULL, lgVersionId INTEGER NOT NULL DEFAULT 0, lgDestination INTEGER NOT NULL, lgPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (lgPk, lgDestination)) "),e.add_11rb$(" CREATE INDEX index_LearnerGroupReplicate_lgPk_lgDestination_lgVersionId ON LearnerGroupReplicate (lgPk, lgDestination, lgVersionId) "),e.add_11rb$(" CREATE INDEX index_LearnerGroupReplicate_lgDestination_lgPending ON LearnerGroupReplicate (lgDestination, lgPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_301 AFTER INSERT ON LearnerGroup BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 301 AS chTableId, NEW.learnerGroupUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 301 AND chEntityPk = NEW.learnerGroupUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_301 AFTER UPDATE ON LearnerGroup BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 301 AS chTableId, NEW.learnerGroupUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 301 AND chEntityPk = NEW.learnerGroupUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_301 AFTER DELETE ON LearnerGroup BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 301 AS chTableId, OLD.learnerGroupUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 301 AND chEntityPk = OLD.learnerGroupUid); END "),e.add_11rb$("CREATE VIEW LearnerGroup_ReceiveView AS SELECT LearnerGroup.*, LearnerGroupReplicate.* FROM LearnerGroup LEFT JOIN LearnerGroupReplicate ON LearnerGroupReplicate.lgPk = LearnerGroup.learnerGroupUid "),e.add_11rb$(" CREATE TRIGGER learnergroup_remote_insert_ins INSTEAD OF INSERT ON LearnerGroup_ReceiveView FOR EACH ROW BEGIN REPLACE INTO LearnerGroup(learnerGroupUid, learnerGroupName, learnerGroupDescription, learnerGroupActive, learnerGroupMCSN, learnerGroupCSN, learnerGroupLCB, learnerGroupLct) VALUES (NEW.learnerGroupUid, NEW.learnerGroupName, NEW.learnerGroupDescription, NEW.learnerGroupActive, NEW.learnerGroupMCSN, NEW.learnerGroupCSN, NEW.learnerGroupLCB, NEW.learnerGroupLct) /*psql ON CONFLICT (learnerGroupUid) DO UPDATE SET learnerGroupName = EXCLUDED.learnerGroupName, learnerGroupDescription = EXCLUDED.learnerGroupDescription, learnerGroupActive = EXCLUDED.learnerGroupActive, learnerGroupMCSN = EXCLUDED.learnerGroupMCSN, learnerGroupCSN = EXCLUDED.learnerGroupCSN, learnerGroupLCB = EXCLUDED.learnerGroupLCB, learnerGroupLct = EXCLUDED.learnerGroupLct */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS LearnerGroupMemberReplicate ( lgmPk INTEGER NOT NULL, lgmVersionId INTEGER NOT NULL DEFAULT 0, lgmDestination INTEGER NOT NULL, lgmPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (lgmPk, lgmDestination)) "),e.add_11rb$(" CREATE INDEX index_LearnerGroupMemberReplicate_lgmPk_lgmDestination_lgmVersionId ON LearnerGroupMemberReplicate (lgmPk, lgmDestination, lgmVersionId) "),e.add_11rb$(" CREATE INDEX index_LearnerGroupMemberReplicate_lgmDestination_lgmPending ON LearnerGroupMemberReplicate (lgmDestination, lgmPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_300 AFTER INSERT ON LearnerGroupMember BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 300 AS chTableId, NEW.learnerGroupMemberUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 300 AND chEntityPk = NEW.learnerGroupMemberUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_300 AFTER UPDATE ON LearnerGroupMember BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 300 AS chTableId, NEW.learnerGroupMemberUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 300 AND chEntityPk = NEW.learnerGroupMemberUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_300 AFTER DELETE ON LearnerGroupMember BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 300 AS chTableId, OLD.learnerGroupMemberUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 300 AND chEntityPk = OLD.learnerGroupMemberUid); END "),e.add_11rb$("CREATE VIEW LearnerGroupMember_ReceiveView AS SELECT LearnerGroupMember.*, LearnerGroupMemberReplicate.* FROM LearnerGroupMember LEFT JOIN LearnerGroupMemberReplicate ON LearnerGroupMemberReplicate.lgmPk = LearnerGroupMember.learnerGroupMemberUid "),e.add_11rb$(" CREATE TRIGGER learnergroupmember_remote_insert_ins INSTEAD OF INSERT ON LearnerGroupMember_ReceiveView FOR EACH ROW BEGIN REPLACE INTO LearnerGroupMember(learnerGroupMemberUid, learnerGroupMemberPersonUid, learnerGroupMemberLgUid, learnerGroupMemberRole, learnerGroupMemberActive, learnerGroupMemberMCSN, learnerGroupMemberCSN, learnerGroupMemberLCB, learnerGroupMemberLct) VALUES (NEW.learnerGroupMemberUid, NEW.learnerGroupMemberPersonUid, NEW.learnerGroupMemberLgUid, NEW.learnerGroupMemberRole, NEW.learnerGroupMemberActive, NEW.learnerGroupMemberMCSN, NEW.learnerGroupMemberCSN, NEW.learnerGroupMemberLCB, NEW.learnerGroupMemberLct) /*psql ON CONFLICT (learnerGroupMemberUid) DO UPDATE SET learnerGroupMemberPersonUid = EXCLUDED.learnerGroupMemberPersonUid, learnerGroupMemberLgUid = EXCLUDED.learnerGroupMemberLgUid, learnerGroupMemberRole = EXCLUDED.learnerGroupMemberRole, learnerGroupMemberActive = EXCLUDED.learnerGroupMemberActive, learnerGroupMemberMCSN = EXCLUDED.learnerGroupMemberMCSN, learnerGroupMemberCSN = EXCLUDED.learnerGroupMemberCSN, learnerGroupMemberLCB = EXCLUDED.learnerGroupMemberLCB, learnerGroupMemberLct = EXCLUDED.learnerGroupMemberLct */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS GroupLearningSessionReplicate ( glsPk INTEGER NOT NULL, glsVersionId INTEGER NOT NULL DEFAULT 0, glsDestination INTEGER NOT NULL, glsPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (glsPk, glsDestination)) "),e.add_11rb$(" CREATE INDEX index_GroupLearningSessionReplicate_glsPk_glsDestination_glsVersionId ON GroupLearningSessionReplicate (glsPk, glsDestination, glsVersionId) "),e.add_11rb$(" CREATE INDEX index_GroupLearningSessionReplicate_glsDestination_glsPending ON GroupLearningSessionReplicate (glsDestination, glsPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_302 AFTER INSERT ON GroupLearningSession BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 302 AS chTableId, NEW.groupLearningSessionUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 302 AND chEntityPk = NEW.groupLearningSessionUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_302 AFTER UPDATE ON GroupLearningSession BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 302 AS chTableId, NEW.groupLearningSessionUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 302 AND chEntityPk = NEW.groupLearningSessionUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_302 AFTER DELETE ON GroupLearningSession BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 302 AS chTableId, OLD.groupLearningSessionUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 302 AND chEntityPk = OLD.groupLearningSessionUid); END "),e.add_11rb$("CREATE VIEW GroupLearningSession_ReceiveView AS SELECT GroupLearningSession.*, GroupLearningSessionReplicate.* FROM GroupLearningSession LEFT JOIN GroupLearningSessionReplicate ON GroupLearningSessionReplicate.glsPk = GroupLearningSession.groupLearningSessionUid "),e.add_11rb$(" CREATE TRIGGER grouplearningsession_remote_insert_ins INSTEAD OF INSERT ON GroupLearningSession_ReceiveView FOR EACH ROW BEGIN REPLACE INTO GroupLearningSession(groupLearningSessionUid, groupLearningSessionContentUid, groupLearningSessionLearnerGroupUid, groupLearningSessionInactive, groupLearningSessionMCSN, groupLearningSessionCSN, groupLearningSessionLCB, groupLearningSessionLct) VALUES (NEW.groupLearningSessionUid, NEW.groupLearningSessionContentUid, NEW.groupLearningSessionLearnerGroupUid, NEW.groupLearningSessionInactive, NEW.groupLearningSessionMCSN, NEW.groupLearningSessionCSN, NEW.groupLearningSessionLCB, NEW.groupLearningSessionLct) /*psql ON CONFLICT (groupLearningSessionUid) DO UPDATE SET groupLearningSessionContentUid = EXCLUDED.groupLearningSessionContentUid, groupLearningSessionLearnerGroupUid = EXCLUDED.groupLearningSessionLearnerGroupUid, groupLearningSessionInactive = EXCLUDED.groupLearningSessionInactive, groupLearningSessionMCSN = EXCLUDED.groupLearningSessionMCSN, groupLearningSessionCSN = EXCLUDED.groupLearningSessionCSN, groupLearningSessionLCB = EXCLUDED.groupLearningSessionLCB, groupLearningSessionLct = EXCLUDED.groupLearningSessionLct */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS SiteTermsReplicate ( stPk INTEGER NOT NULL, stVersionId INTEGER NOT NULL DEFAULT 0, stDestination INTEGER NOT NULL, stPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (stPk, stDestination)) "),e.add_11rb$(" CREATE INDEX index_SiteTermsReplicate_stPk_stDestination_stVersionId ON SiteTermsReplicate (stPk, stDestination, stVersionId) "),e.add_11rb$(" CREATE INDEX index_SiteTermsReplicate_stDestination_stPending ON SiteTermsReplicate (stDestination, stPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_272 AFTER INSERT ON SiteTerms BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 272 AS chTableId, NEW.sTermsUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 272 AND chEntityPk = NEW.sTermsUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_272 AFTER UPDATE ON SiteTerms BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 272 AS chTableId, NEW.sTermsUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 272 AND chEntityPk = NEW.sTermsUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_272 AFTER DELETE ON SiteTerms BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 272 AS chTableId, OLD.sTermsUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 272 AND chEntityPk = OLD.sTermsUid); END "),e.add_11rb$("CREATE VIEW SiteTerms_ReceiveView AS SELECT SiteTerms.*, SiteTermsReplicate.* FROM SiteTerms LEFT JOIN SiteTermsReplicate ON SiteTermsReplicate.stPk = SiteTerms.sTermsUid "),e.add_11rb$(" CREATE TRIGGER siteterms_remote_insert_ins INSTEAD OF INSERT ON SiteTerms_ReceiveView FOR EACH ROW BEGIN REPLACE INTO SiteTerms(sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct) VALUES (NEW.sTermsUid, NEW.termsHtml, NEW.sTermsLang, NEW.sTermsLangUid, NEW.sTermsActive, NEW.sTermsLastChangedBy, NEW.sTermsPrimaryCsn, NEW.sTermsLocalCsn, NEW.sTermsLct) /*psql ON CONFLICT (sTermsUid) DO UPDATE SET termsHtml = EXCLUDED.termsHtml, sTermsLang = EXCLUDED.sTermsLang, sTermsLangUid = EXCLUDED.sTermsLangUid, sTermsActive = EXCLUDED.sTermsActive, sTermsLastChangedBy = EXCLUDED.sTermsLastChangedBy, sTermsPrimaryCsn = EXCLUDED.sTermsPrimaryCsn, sTermsLocalCsn = EXCLUDED.sTermsLocalCsn, sTermsLct = EXCLUDED.sTermsLct */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ClazzContentJoinReplicate ( ccjPk INTEGER NOT NULL, ccjVersionId INTEGER NOT NULL DEFAULT 0, ccjDestination INTEGER NOT NULL, ccjPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (ccjPk, ccjDestination)) "),e.add_11rb$(" CREATE INDEX index_ClazzContentJoinReplicate_ccjPk_ccjDestination_ccjVersionId ON ClazzContentJoinReplicate (ccjPk, ccjDestination, ccjVersionId) "),e.add_11rb$(" CREATE INDEX index_ClazzContentJoinReplicate_ccjDestination_ccjPending ON ClazzContentJoinReplicate (ccjDestination, ccjPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_134 AFTER INSERT ON ClazzContentJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 134 AS chTableId, NEW.ccjUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 134 AND chEntityPk = NEW.ccjUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_134 AFTER UPDATE ON ClazzContentJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 134 AS chTableId, NEW.ccjUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 134 AND chEntityPk = NEW.ccjUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_134 AFTER DELETE ON ClazzContentJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 134 AS chTableId, OLD.ccjUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 134 AND chEntityPk = OLD.ccjUid); END "),e.add_11rb$("CREATE VIEW ClazzContentJoin_ReceiveView AS SELECT ClazzContentJoin.*, ClazzContentJoinReplicate.* FROM ClazzContentJoin LEFT JOIN ClazzContentJoinReplicate ON ClazzContentJoinReplicate.ccjPk = ClazzContentJoin.ccjUid "),e.add_11rb$(" CREATE TRIGGER clazzcontentjoin_remote_insert_ins INSTEAD OF INSERT ON ClazzContentJoin_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ClazzContentJoin(ccjUid, ccjContentEntryUid, ccjClazzUid, ccjActive, ccjLocalChangeSeqNum, ccjMasterChangeSeqNum, ccjLastChangedBy, ccjLct) VALUES (NEW.ccjUid, NEW.ccjContentEntryUid, NEW.ccjClazzUid, NEW.ccjActive, NEW.ccjLocalChangeSeqNum, NEW.ccjMasterChangeSeqNum, NEW.ccjLastChangedBy, NEW.ccjLct) /*psql ON CONFLICT (ccjUid) DO UPDATE SET ccjContentEntryUid = EXCLUDED.ccjContentEntryUid, ccjClazzUid = EXCLUDED.ccjClazzUid, ccjActive = EXCLUDED.ccjActive, ccjLocalChangeSeqNum = EXCLUDED.ccjLocalChangeSeqNum, ccjMasterChangeSeqNum = EXCLUDED.ccjMasterChangeSeqNum, ccjLastChangedBy = EXCLUDED.ccjLastChangedBy, ccjLct = EXCLUDED.ccjLct */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS PersonParentJoinReplicate ( ppjPk INTEGER NOT NULL, ppjVersionId INTEGER NOT NULL DEFAULT 0, ppjDestination INTEGER NOT NULL, ppjPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (ppjPk, ppjDestination)) "),e.add_11rb$(" CREATE INDEX index_PersonParentJoinReplicate_ppjPk_ppjDestination_ppjVersionId ON PersonParentJoinReplicate (ppjPk, ppjDestination, ppjVersionId) "),e.add_11rb$(" CREATE INDEX index_PersonParentJoinReplicate_ppjDestination_ppjPending ON PersonParentJoinReplicate (ppjDestination, ppjPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_512 AFTER INSERT ON PersonParentJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 512 AS chTableId, NEW.ppjUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 512 AND chEntityPk = NEW.ppjUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_512 AFTER UPDATE ON PersonParentJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 512 AS chTableId, NEW.ppjUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 512 AND chEntityPk = NEW.ppjUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_512 AFTER DELETE ON PersonParentJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 512 AS chTableId, OLD.ppjUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 512 AND chEntityPk = OLD.ppjUid); END "),e.add_11rb$("CREATE VIEW PersonParentJoin_ReceiveView AS SELECT PersonParentJoin.*, PersonParentJoinReplicate.* FROM PersonParentJoin LEFT JOIN PersonParentJoinReplicate ON PersonParentJoinReplicate.ppjPk = PersonParentJoin.ppjUid "),e.add_11rb$(" CREATE TRIGGER personparentjoin_remote_insert_ins INSTEAD OF INSERT ON PersonParentJoin_ReceiveView FOR EACH ROW BEGIN REPLACE INTO PersonParentJoin(ppjUid, ppjPcsn, ppjLcsn, ppjLcb, ppjLct, ppjParentPersonUid, ppjMinorPersonUid, ppjRelationship, ppjEmail, ppjPhone, ppjInactive, ppjStatus, ppjApprovalTiemstamp, ppjApprovalIpAddr) VALUES (NEW.ppjUid, NEW.ppjPcsn, NEW.ppjLcsn, NEW.ppjLcb, NEW.ppjLct, NEW.ppjParentPersonUid, NEW.ppjMinorPersonUid, NEW.ppjRelationship, NEW.ppjEmail, NEW.ppjPhone, NEW.ppjInactive, NEW.ppjStatus, NEW.ppjApprovalTiemstamp, NEW.ppjApprovalIpAddr) /*psql ON CONFLICT (ppjUid) DO UPDATE SET ppjPcsn = EXCLUDED.ppjPcsn, ppjLcsn = EXCLUDED.ppjLcsn, ppjLcb = EXCLUDED.ppjLcb, ppjLct = EXCLUDED.ppjLct, ppjParentPersonUid = EXCLUDED.ppjParentPersonUid, ppjMinorPersonUid = EXCLUDED.ppjMinorPersonUid, ppjRelationship = EXCLUDED.ppjRelationship, ppjEmail = EXCLUDED.ppjEmail, ppjPhone = EXCLUDED.ppjPhone, ppjInactive = EXCLUDED.ppjInactive, ppjStatus = EXCLUDED.ppjStatus, ppjApprovalTiemstamp = EXCLUDED.ppjApprovalTiemstamp, ppjApprovalIpAddr = EXCLUDED.ppjApprovalIpAddr */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ScopedGrantReplicate ( sgPk INTEGER NOT NULL, sgVersionId INTEGER NOT NULL DEFAULT 0, sgDestination INTEGER NOT NULL, sgPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (sgPk, sgDestination)) "),e.add_11rb$(" CREATE INDEX index_ScopedGrantReplicate_sgPk_sgDestination_sgVersionId ON ScopedGrantReplicate (sgPk, sgDestination, sgVersionId) "),e.add_11rb$(" CREATE INDEX index_ScopedGrantReplicate_sgDestination_sgPending ON ScopedGrantReplicate (sgDestination, sgPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_48 AFTER INSERT ON ScopedGrant BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 48 AS chTableId, NEW.sgUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 48 AND chEntityPk = NEW.sgUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_48 AFTER UPDATE ON ScopedGrant BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 48 AS chTableId, NEW.sgUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 48 AND chEntityPk = NEW.sgUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_48 AFTER DELETE ON ScopedGrant BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 48 AS chTableId, OLD.sgUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 48 AND chEntityPk = OLD.sgUid); END "),e.add_11rb$("CREATE VIEW ScopedGrant_ReceiveView AS SELECT ScopedGrant.*, ScopedGrantReplicate.* FROM ScopedGrant LEFT JOIN ScopedGrantReplicate ON ScopedGrantReplicate.sgPk = ScopedGrant.sgUid "),e.add_11rb$(" CREATE TRIGGER sg_remote_insert_ins INSTEAD OF INSERT ON ScopedGrant_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ScopedGrant(sgUid, sgPcsn, sgLcsn, sgLcb, sgLct, sgTableId, sgEntityUid, sgPermissions, sgGroupUid, sgIndex, sgFlags) VALUES (NEW.sgUid, NEW.sgPcsn, NEW.sgLcsn, NEW.sgLcb, NEW.sgLct, NEW.sgTableId, NEW.sgEntityUid, NEW.sgPermissions, NEW.sgGroupUid, NEW.sgIndex, NEW.sgFlags) /*psql ON CONFLICT(sgUid) DO UPDATE SET sgLct = EXCLUDED.sgLct, sgPermissions = EXCLUDED.sgPermissions */ ; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ErrorReportReplicate ( erPk INTEGER NOT NULL, erVersionId INTEGER NOT NULL DEFAULT 0, erDestination INTEGER NOT NULL, erPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (erPk, erDestination)) "),e.add_11rb$(" CREATE INDEX index_ErrorReportReplicate_erPk_erDestination_erVersionId ON ErrorReportReplicate (erPk, erDestination, erVersionId) "),e.add_11rb$(" CREATE INDEX index_ErrorReportReplicate_erDestination_erPending ON ErrorReportReplicate (erDestination, erPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_419 AFTER INSERT ON ErrorReport BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 419 AS chTableId, NEW.errUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 419 AND chEntityPk = NEW.errUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_419 AFTER UPDATE ON ErrorReport BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 419 AS chTableId, NEW.errUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 419 AND chEntityPk = NEW.errUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_419 AFTER DELETE ON ErrorReport BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 419 AS chTableId, OLD.errUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 419 AND chEntityPk = OLD.errUid); END "),e.add_11rb$("CREATE VIEW ErrorReport_ReceiveView AS SELECT ErrorReport.*, ErrorReportReplicate.* FROM ErrorReport LEFT JOIN ErrorReportReplicate ON ErrorReportReplicate.erPk = ErrorReport.errUid "),e.add_11rb$(" CREATE TRIGGER errorreport_remote_insert_ins INSTEAD OF INSERT ON ErrorReport_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ErrorReport(errUid, errPcsn, errLcsn, errLcb, errLct, severity, timestamp, presenterUri, appVersion, versionCode, errorCode, operatingSys, osVersion, stackTrace, message) VALUES (NEW.errUid, NEW.errPcsn, NEW.errLcsn, NEW.errLcb, NEW.errLct, NEW.severity, NEW.timestamp, NEW.presenterUri, NEW.appVersion, NEW.versionCode, NEW.errorCode, NEW.operatingSys, NEW.osVersion, NEW.stackTrace, NEW.message) /*psql ON CONFLICT (errUid) DO UPDATE SET errPcsn = EXCLUDED.errPcsn, errLcsn = EXCLUDED.errLcsn, errLcb = EXCLUDED.errLcb, errLct = EXCLUDED.errLct, severity = EXCLUDED.severity, timestamp = EXCLUDED.timestamp, presenterUri = EXCLUDED.presenterUri, appVersion = EXCLUDED.appVersion, versionCode = EXCLUDED.versionCode, errorCode = EXCLUDED.errorCode, operatingSys = EXCLUDED.operatingSys, osVersion = EXCLUDED.osVersion, stackTrace = EXCLUDED.stackTrace, message = EXCLUDED.message */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ClazzAssignmentReplicate ( caPk INTEGER NOT NULL, caVersionId INTEGER NOT NULL DEFAULT 0, caDestination INTEGER NOT NULL, caPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (caPk, caDestination)) "),e.add_11rb$(" CREATE INDEX index_ClazzAssignmentReplicate_caPk_caDestination_caVersionId ON ClazzAssignmentReplicate (caPk, caDestination, caVersionId) "),e.add_11rb$(" CREATE INDEX index_ClazzAssignmentReplicate_caDestination_caPending ON ClazzAssignmentReplicate (caDestination, caPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_520 AFTER INSERT ON ClazzAssignment BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 520 AS chTableId, NEW.caUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 520 AND chEntityPk = NEW.caUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_520 AFTER UPDATE ON ClazzAssignment BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 520 AS chTableId, NEW.caUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 520 AND chEntityPk = NEW.caUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_520 AFTER DELETE ON ClazzAssignment BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 520 AS chTableId, OLD.caUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 520 AND chEntityPk = OLD.caUid); END "),e.add_11rb$("CREATE VIEW ClazzAssignment_ReceiveView AS SELECT ClazzAssignment.*, ClazzAssignmentReplicate.* FROM ClazzAssignment LEFT JOIN ClazzAssignmentReplicate ON ClazzAssignmentReplicate.caPk = ClazzAssignment.caUid "),e.add_11rb$(" CREATE TRIGGER clazzassignment_remote_insert_ins INSTEAD OF INSERT ON ClazzAssignment_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ClazzAssignment(caUid, caTitle, caDescription, caDeadlineDate, caStartDate, caLateSubmissionType, caLateSubmissionPenalty, caGracePeriodDate, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caClazzUid, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct) VALUES (NEW.caUid, NEW.caTitle, NEW.caDescription, NEW.caDeadlineDate, NEW.caStartDate, NEW.caLateSubmissionType, NEW.caLateSubmissionPenalty, NEW.caGracePeriodDate, NEW.caActive, NEW.caClassCommentEnabled, NEW.caPrivateCommentsEnabled, NEW.caClazzUid, NEW.caLocalChangeSeqNum, NEW.caMasterChangeSeqNum, NEW.caLastChangedBy, NEW.caLct) /*psql ON CONFLICT (caUid) DO UPDATE SET caTitle = EXCLUDED.caTitle, caDescription = EXCLUDED.caDescription, caDeadlineDate = EXCLUDED.caDeadlineDate, caStartDate = EXCLUDED.caStartDate, caLateSubmissionType = EXCLUDED.caLateSubmissionType, caLateSubmissionPenalty = EXCLUDED.caLateSubmissionPenalty, caGracePeriodDate = EXCLUDED.caGracePeriodDate, caActive = EXCLUDED.caActive, caClassCommentEnabled = EXCLUDED.caClassCommentEnabled, caPrivateCommentsEnabled = EXCLUDED.caPrivateCommentsEnabled, caClazzUid = EXCLUDED.caClazzUid, caLocalChangeSeqNum = EXCLUDED.caLocalChangeSeqNum, caMasterChangeSeqNum = EXCLUDED.caMasterChangeSeqNum, caLastChangedBy = EXCLUDED.caLastChangedBy, caLct = EXCLUDED.caLct */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ClazzAssignmentContentJoinReplicate ( cacjPk INTEGER NOT NULL, cacjVersionId INTEGER NOT NULL DEFAULT 0, cacjDestination INTEGER NOT NULL, cacjPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (cacjPk, cacjDestination)) "),e.add_11rb$(" CREATE INDEX index_ClazzAssignmentContentJoinReplicate_cacjPk_cacjDestination_cacjVersionId ON ClazzAssignmentContentJoinReplicate (cacjPk, cacjDestination, cacjVersionId) "),e.add_11rb$(" CREATE INDEX index_ClazzAssignmentContentJoinReplicate_cacjDestination_cacjPending ON ClazzAssignmentContentJoinReplicate (cacjDestination, cacjPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_521 AFTER INSERT ON ClazzAssignmentContentJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 521 AS chTableId, NEW.cacjUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 521 AND chEntityPk = NEW.cacjUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_521 AFTER UPDATE ON ClazzAssignmentContentJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 521 AS chTableId, NEW.cacjUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 521 AND chEntityPk = NEW.cacjUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_521 AFTER DELETE ON ClazzAssignmentContentJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 521 AS chTableId, OLD.cacjUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 521 AND chEntityPk = OLD.cacjUid); END "),e.add_11rb$("CREATE VIEW ClazzAssignmentContentJoin_ReceiveView AS SELECT ClazzAssignmentContentJoin.*, ClazzAssignmentContentJoinReplicate.* FROM ClazzAssignmentContentJoin LEFT JOIN ClazzAssignmentContentJoinReplicate ON ClazzAssignmentContentJoinReplicate.cacjPk = ClazzAssignmentContentJoin.cacjUid "),e.add_11rb$(" CREATE TRIGGER clazzassignmentcontentjoin_remote_insert_ins INSTEAD OF INSERT ON ClazzAssignmentContentJoin_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ClazzAssignmentContentJoin(cacjUid, cacjContentUid, cacjAssignmentUid, cacjActive, cacjMCSN, cacjLCSN, cacjLCB, cacjLct) VALUES (NEW.cacjUid, NEW.cacjContentUid, NEW.cacjAssignmentUid, NEW.cacjActive, NEW.cacjMCSN, NEW.cacjLCSN, NEW.cacjLCB, NEW.cacjLct) /*psql ON CONFLICT (cacjUid) DO UPDATE SET cacjContentUid = EXCLUDED.cacjContentUid, cacjAssignmentUid = EXCLUDED.cacjAssignmentUid, cacjActive = EXCLUDED.cacjActive, cacjMCSN = EXCLUDED.cacjMCSN, cacjLCSN = EXCLUDED.cacjLCSN, cacjLCB = EXCLUDED.cacjLCB, cacjLct = EXCLUDED.cacjLct */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS PersonAuth2Replicate ( paPk INTEGER NOT NULL, paVersionId INTEGER NOT NULL DEFAULT 0, paDestination INTEGER NOT NULL, paPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (paPk, paDestination)) "),e.add_11rb$(" CREATE INDEX index_PersonAuth2Replicate_paPk_paDestination_paVersionId ON PersonAuth2Replicate (paPk, paDestination, paVersionId) "),e.add_11rb$(" CREATE INDEX index_PersonAuth2Replicate_paDestination_paPending ON PersonAuth2Replicate (paDestination, paPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_678 AFTER INSERT ON PersonAuth2 BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 678 AS chTableId, NEW.pauthUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 678 AND chEntityPk = NEW.pauthUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_678 AFTER UPDATE ON PersonAuth2 BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 678 AS chTableId, NEW.pauthUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 678 AND chEntityPk = NEW.pauthUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_678 AFTER DELETE ON PersonAuth2 BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 678 AS chTableId, OLD.pauthUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 678 AND chEntityPk = OLD.pauthUid); END "),e.add_11rb$("CREATE VIEW PersonAuth2_ReceiveView AS SELECT PersonAuth2.*, PersonAuth2Replicate.* FROM PersonAuth2 LEFT JOIN PersonAuth2Replicate ON PersonAuth2Replicate.paPk = PersonAuth2.pauthUid "),e.add_11rb$(" CREATE TRIGGER personauth2_remote_insert_ins INSTEAD OF INSERT ON PersonAuth2_ReceiveView FOR EACH ROW BEGIN REPLACE INTO PersonAuth2(pauthUid, pauthMechanism, pauthAuth, pauthLcsn, pauthPcsn, pauthLcb, pauthLct) VALUES (NEW.pauthUid, NEW.pauthMechanism, NEW.pauthAuth, NEW.pauthLcsn, NEW.pauthPcsn, NEW.pauthLcb, NEW.pauthLct) /*psql ON CONFLICT (pauthUid) DO UPDATE SET pauthMechanism = EXCLUDED.pauthMechanism, pauthAuth = EXCLUDED.pauthAuth, pauthLcsn = EXCLUDED.pauthLcsn, pauthPcsn = EXCLUDED.pauthPcsn, pauthLcb = EXCLUDED.pauthLcb, pauthLct = EXCLUDED.pauthLct */; END "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS UserSessionReplicate ( usPk INTEGER NOT NULL, usVersionId INTEGER NOT NULL DEFAULT 0, usDestination INTEGER NOT NULL, usPending INTEGER NOT NULL DEFAULT 1, PRIMARY KEY (usPk, usDestination)) "),e.add_11rb$(" CREATE INDEX index_UserSessionReplicate_usPk_usDestination_usVersionId ON UserSessionReplicate (usPk, usDestination, usVersionId) "),e.add_11rb$(" CREATE INDEX index_UserSessionReplicate_usDestination_usPending ON UserSessionReplicate (usDestination, usPending) "),e.add_11rb$(" CREATE TRIGGER ch_ins_679 AFTER INSERT ON UserSession BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 679 AS chTableId, NEW.usUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 679 AND chEntityPk = NEW.usUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_679 AFTER UPDATE ON UserSession BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 679 AS chTableId, NEW.usUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 679 AND chEntityPk = NEW.usUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_679 AFTER DELETE ON UserSession BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 679 AS chTableId, OLD.usUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 679 AND chEntityPk = OLD.usUid); END "),e.add_11rb$("CREATE VIEW UserSession_ReceiveView AS SELECT UserSession.*, UserSessionReplicate.* FROM UserSession LEFT JOIN UserSessionReplicate ON UserSessionReplicate.usPk = UserSession.usUid "),e.add_11rb$(" CREATE TRIGGER usersession_remote_ins_ins INSTEAD OF INSERT ON UserSession_ReceiveView FOR EACH ROW BEGIN REPLACE INTO UserSession(usUid, usPcsn, usLcsn, usLcb, usLct, usPersonUid, usClientNodeId, usStartTime, usEndTime, usStatus, usReason, usAuth, usSessionType) VALUES (NEW.usUid, NEW.usPcsn, NEW.usLcsn, NEW.usLcb, NEW.usLct, NEW.usPersonUid, NEW.usClientNodeId, NEW.usStartTime, NEW.usEndTime, NEW.usStatus, NEW.usReason, NEW.usAuth, NEW.usSessionType) /*postgres ON CONFLICT (usUid) DO UPDATE SET usStatus = EXCLUDED.usStatus, usEndTime = EXCLUDED.usEndTime, usReason = EXCLUDED.usReason */ ; END ");else{var i="UPDATE ClazzLog SET clazzLogLastChangedTime = "+J().toString()+" WHERE clazzLogLastChangedTime = 0";e.add_11rb$(i);var o="UPDATE ClazzLogAttendanceRecord SET clazzLogAttendanceRecordLastChangedTime = "+J().toString()+" WHERE clazzLogAttendanceRecordLastChangedTime = 0";e.add_11rb$(o);var r="UPDATE Schedule SET scheduleLastChangedTime = "+J().toString()+" WHERE scheduleLastChangedTime = 0";e.add_11rb$(r);var s="UPDATE HolidayCalendar SET umCalendarLct = "+J().toString()+" WHERE umCalendarLct = 0";e.add_11rb$(s);var a="UPDATE Holiday SET holLct = "+J().toString()+" WHERE holLct = 0";e.add_11rb$(a);var c="UPDATE Person SET personLct = "+J().toString()+" WHERE personLct = 0";e.add_11rb$(c);var l="UPDATE Clazz SET clazzLct = "+J().toString()+" WHERE clazzLct = 0";e.add_11rb$(l);var u="UPDATE ClazzEnrolment SET clazzEnrolmentLct = "+J().toString()+" WHERE clazzEnrolmentLct = 0";e.add_11rb$(u);var h="UPDATE LeavingReason SET leavingReasonLct = "+J().toString()+" WHERE leavingReasonLct = 0";e.add_11rb$(h);var d="UPDATE ContentEntry SET contentEntryLct = "+J().toString()+" WHERE contentEntryLct = 0";e.add_11rb$(d);var p="UPDATE ContentEntryContentCategoryJoin SET ceccjLct = "+J().toString()+" WHERE ceccjLct = 0";e.add_11rb$(p);var _="UPDATE ContentEntryParentChildJoin SET cepcjLct = "+J().toString()+" WHERE cepcjLct = 0";e.add_11rb$(_);var m="UPDATE ContentEntryRelatedEntryJoin SET cerejLct = "+J().toString()+" WHERE cerejLct = 0";e.add_11rb$(m);var f="UPDATE ContentCategorySchema SET contentCategorySchemaLct = "+J().toString()+" WHERE contentCategorySchemaLct = 0";e.add_11rb$(f);var g="UPDATE ContentCategory SET contentCategoryLct = "+J().toString()+" WHERE contentCategoryLct = 0";e.add_11rb$(g);var $="UPDATE Language SET langLct = "+J().toString()+" WHERE langLct = 0";e.add_11rb$($);var E="UPDATE LanguageVariant SET langVariantLct = "+J().toString()+" WHERE langVariantLct = 0";e.add_11rb$(E);var y="UPDATE PersonGroup SET groupLct = "+J().toString()+" WHERE groupLct = 0";e.add_11rb$(y);var b="UPDATE PersonGroupMember SET groupMemberLct = "+J().toString()+" WHERE groupMemberLct = 0";e.add_11rb$(b);var S="UPDATE PersonPicture SET personPictureLct = "+J().toString()+" WHERE personPictureLct = 0";e.add_11rb$(S);var v="UPDATE Container SET cntLct = "+J().toString()+" WHERE cntLct = 0";e.add_11rb$(v);var C="UPDATE VerbEntity SET verbLct = "+J().toString()+" WHERE verbLct = 0";e.add_11rb$(C);var N="UPDATE XObjectEntity SET xObjectLct = "+J().toString()+" WHERE xObjectLct = 0";e.add_11rb$(N);var T="UPDATE StatementEntity SET statementLct = "+J().toString()+" WHERE statementLct = 0";e.add_11rb$(T);var L="UPDATE ContextXObjectStatementJoin SET contextXObjectLct = "+J().toString()+" WHERE contextXObjectLct = 0";e.add_11rb$(L);var z="UPDATE AgentEntity SET agentLct = "+J().toString()+" WHERE agentLct = 0";e.add_11rb$(z);var w="UPDATE StateEntity SET stateLct = "+J().toString()+" WHERE stateLct = 0";e.add_11rb$(w);var O="UPDATE StateContentEntity SET stateContentLct = "+J().toString()+" WHERE stateContentLct = 0";e.add_11rb$(O);var R="UPDATE XLangMapEntry SET statementLangMapLct = "+J().toString()+" WHERE statementLangMapLct = 0";e.add_11rb$(R);var A="UPDATE School SET schoolLct = "+J().toString()+" WHERE schoolLct = 0";e.add_11rb$(A);var x="UPDATE SchoolMember SET schoolMemberLct = "+J().toString()+" WHERE schoolMemberLct = 0";e.add_11rb$(x);var I="UPDATE Comments SET commentsLct = "+J().toString()+" WHERE commentsLct = 0";e.add_11rb$(I);var U="UPDATE Report SET reportLct = "+J().toString()+" WHERE reportLct = 0";e.add_11rb$(U);var D="UPDATE Site SET siteLct = "+J().toString()+" WHERE siteLct = 0";e.add_11rb$(D);var P="UPDATE LearnerGroup SET learnerGroupLct = "+J().toString()+" WHERE learnerGroupLct = 0";e.add_11rb$(P);var M="UPDATE LearnerGroupMember SET learnerGroupMemberLct = "+J().toString()+" WHERE learnerGroupMemberLct = 0";e.add_11rb$(M);var k="UPDATE GroupLearningSession SET groupLearningSessionLct = "+J().toString()+" WHERE groupLearningSessionLct = 0";e.add_11rb$(k);var j="UPDATE SiteTerms SET sTermsLct = "+J().toString()+" WHERE sTermsLct = 0";e.add_11rb$(j);var G="UPDATE ClazzContentJoin SET ccjLct = "+J().toString()+" WHERE ccjLct = 0";e.add_11rb$(G);var B="UPDATE PersonParentJoin SET ppjLct = "+J().toString()+" WHERE ppjLct = 0";e.add_11rb$(B);var W="UPDATE ScopedGrant SET sgLct = "+J().toString()+" WHERE sgLct = 0";e.add_11rb$(W);var H="UPDATE ErrorReport SET errLct = "+J().toString()+" WHERE errLct = 0";e.add_11rb$(H);var V="UPDATE ClazzAssignment SET caLct = "+J().toString()+" WHERE caLct = 0";e.add_11rb$(V);var K="UPDATE ClazzAssignmentContentJoin SET cacjLct = "+J().toString()+" WHERE cacjLct = 0";e.add_11rb$(K);var X="UPDATE PersonAuth2 SET pauthLct = "+J().toString()+" WHERE pauthLct = 0";e.add_11rb$(X);var Y="UPDATE UserSession SET usLct = "+J().toString()+" WHERE usLct = 0";e.add_11rb$(Y),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ClazzLogReplicate ( clPk BIGINT NOT NULL, clVersionId BIGINT NOT NULL DEFAULT 0, clDestination BIGINT NOT NULL, clPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (clPk, clDestination)) "),e.add_11rb$(" CREATE INDEX index_ClazzLogReplicate_clPk_clDestination_clVersionId ON ClazzLogReplicate (clPk, clDestination, clVersionId) "),e.add_11rb$(" CREATE INDEX index_ClazzLogReplicate_clDestination_clPending ON ClazzLogReplicate (clDestination, clPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_14_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (14, NEW.clazzLogUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_14_trig AFTER UPDATE OR INSERT ON ClazzLog FOR EACH ROW EXECUTE PROCEDURE ch_upd_14_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_14_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (14, OLD.clazzLogUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_14_trig AFTER DELETE ON ClazzLog FOR EACH ROW EXECUTE PROCEDURE ch_del_14_fn(); "),e.add_11rb$("CREATE VIEW ClazzLog_ReceiveView AS SELECT ClazzLog.*, ClazzLogReplicate.* FROM ClazzLog LEFT JOIN ClazzLogReplicate ON ClazzLogReplicate.clPk = ClazzLog.clazzLogUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION clazzlog_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ClazzLog(clazzLogUid, clazzLogClazzUid, logDate, timeRecorded, clazzLogDone, cancellationNote, clazzLogCancelled, clazzLogNumPresent, clazzLogNumAbsent, clazzLogNumPartial, clazzLogScheduleUid, clazzLogStatusFlag, clazzLogMSQN, clazzLogLCSN, clazzLogLCB, clazzLogLastChangedTime) VALUES (NEW.clazzLogUid, NEW.clazzLogClazzUid, NEW.logDate, NEW.timeRecorded, NEW.clazzLogDone, NEW.cancellationNote, NEW.clazzLogCancelled, NEW.clazzLogNumPresent, NEW.clazzLogNumAbsent, NEW.clazzLogNumPartial, NEW.clazzLogScheduleUid, NEW.clazzLogStatusFlag, NEW.clazzLogMSQN, NEW.clazzLogLCSN, NEW.clazzLogLCB, NEW.clazzLogLastChangedTime) ON CONFLICT (clazzLogUid) DO UPDATE SET clazzLogClazzUid = EXCLUDED.clazzLogClazzUid, logDate = EXCLUDED.logDate, timeRecorded = EXCLUDED.timeRecorded, clazzLogDone = EXCLUDED.clazzLogDone, cancellationNote = EXCLUDED.cancellationNote, clazzLogCancelled = EXCLUDED.clazzLogCancelled, clazzLogNumPresent = EXCLUDED.clazzLogNumPresent, clazzLogNumAbsent = EXCLUDED.clazzLogNumAbsent, clazzLogNumPartial = EXCLUDED.clazzLogNumPartial, clazzLogScheduleUid = EXCLUDED.clazzLogScheduleUid, clazzLogStatusFlag = EXCLUDED.clazzLogStatusFlag, clazzLogMSQN = EXCLUDED.clazzLogMSQN, clazzLogLCSN = EXCLUDED.clazzLogLCSN, clazzLogLCB = EXCLUDED.clazzLogLCB, clazzLogLastChangedTime = EXCLUDED.clazzLogLastChangedTime ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER clazzlog_remote_insert_trig INSTEAD OF INSERT ON ClazzLog_ReceiveView FOR EACH ROW EXECUTE PROCEDURE clazzlog_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ClazzLogAttendanceRecordReplicate ( clarPk BIGINT NOT NULL, clarVersionId BIGINT NOT NULL DEFAULT 0, clarDestination BIGINT NOT NULL, clarPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (clarPk, clarDestination)) "),e.add_11rb$(" CREATE INDEX index_ClazzLogAttendanceRecordReplicate_clarPk_clarDestination_clarVersionId ON ClazzLogAttendanceRecordReplicate (clarPk, clarDestination, clarVersionId) "),e.add_11rb$(" CREATE INDEX index_ClazzLogAttendanceRecordReplicate_clarDestination_clarPending ON ClazzLogAttendanceRecordReplicate (clarDestination, clarPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_15_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (15, NEW.clazzLogAttendanceRecordUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_15_trig AFTER UPDATE OR INSERT ON ClazzLogAttendanceRecord FOR EACH ROW EXECUTE PROCEDURE ch_upd_15_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_15_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (15, OLD.clazzLogAttendanceRecordUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_15_trig AFTER DELETE ON ClazzLogAttendanceRecord FOR EACH ROW EXECUTE PROCEDURE ch_del_15_fn(); "),e.add_11rb$("CREATE VIEW ClazzLogAttendanceRecord_ReceiveView AS SELECT ClazzLogAttendanceRecord.*, ClazzLogAttendanceRecordReplicate.* FROM ClazzLogAttendanceRecord LEFT JOIN ClazzLogAttendanceRecordReplicate ON ClazzLogAttendanceRecordReplicate.clarPk = ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION clazzlogattendancerecord_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ClazzLogAttendanceRecord(clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime) VALUES (NEW.clazzLogAttendanceRecordUid, NEW.clazzLogAttendanceRecordClazzLogUid, NEW.clazzLogAttendanceRecordPersonUid, NEW.attendanceStatus, NEW.clazzLogAttendanceRecordMasterChangeSeqNum, NEW.clazzLogAttendanceRecordLocalChangeSeqNum, NEW.clazzLogAttendanceRecordLastChangedBy, NEW.clazzLogAttendanceRecordLastChangedTime) ON CONFLICT (clazzLogAttendanceRecordUid) DO UPDATE SET clazzLogAttendanceRecordClazzLogUid = EXCLUDED.clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid = EXCLUDED.clazzLogAttendanceRecordPersonUid, attendanceStatus = EXCLUDED.attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum = EXCLUDED.clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum = EXCLUDED.clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy = EXCLUDED.clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime = EXCLUDED.clazzLogAttendanceRecordLastChangedTime ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER clazzlogattendancerecord_remote_insert_trig INSTEAD OF INSERT ON ClazzLogAttendanceRecord_ReceiveView FOR EACH ROW EXECUTE PROCEDURE clazzlogattendancerecord_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ScheduleReplicate ( schedulePk BIGINT NOT NULL, scheduleVersionId BIGINT NOT NULL DEFAULT 0, scheduleDestination BIGINT NOT NULL, schedulePending BOOL NOT NULL DEFAULT true, PRIMARY KEY (schedulePk, scheduleDestination)) "),e.add_11rb$(" CREATE INDEX index_ScheduleReplicate_schedulePk_scheduleDestination_scheduleVersionId ON ScheduleReplicate (schedulePk, scheduleDestination, scheduleVersionId) "),e.add_11rb$(" CREATE INDEX index_ScheduleReplicate_scheduleDestination_schedulePending ON ScheduleReplicate (scheduleDestination, schedulePending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_21_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (21, NEW.scheduleUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_21_trig AFTER UPDATE OR INSERT ON Schedule FOR EACH ROW EXECUTE PROCEDURE ch_upd_21_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_21_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (21, OLD.scheduleUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_21_trig AFTER DELETE ON Schedule FOR EACH ROW EXECUTE PROCEDURE ch_del_21_fn(); "),e.add_11rb$("CREATE VIEW Schedule_ReceiveView AS SELECT Schedule.*, ScheduleReplicate.* FROM Schedule LEFT JOIN ScheduleReplicate ON ScheduleReplicate.schedulePk = Schedule.scheduleUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION schedule_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO Schedule(scheduleUid, sceduleStartTime, scheduleEndTime, scheduleDay, scheduleMonth, scheduleFrequency, umCalendarUid, scheduleClazzUid, scheduleMasterChangeSeqNum, scheduleLocalChangeSeqNum, scheduleLastChangedBy, scheduleLastChangedTime, scheduleActive) VALUES (NEW.scheduleUid, NEW.sceduleStartTime, NEW.scheduleEndTime, NEW.scheduleDay, NEW.scheduleMonth, NEW.scheduleFrequency, NEW.umCalendarUid, NEW.scheduleClazzUid, NEW.scheduleMasterChangeSeqNum, NEW.scheduleLocalChangeSeqNum, NEW.scheduleLastChangedBy, NEW.scheduleLastChangedTime, NEW.scheduleActive) ON CONFLICT (scheduleUid) DO UPDATE SET sceduleStartTime = EXCLUDED.sceduleStartTime, scheduleEndTime = EXCLUDED.scheduleEndTime, scheduleDay = EXCLUDED.scheduleDay, scheduleMonth = EXCLUDED.scheduleMonth, scheduleFrequency = EXCLUDED.scheduleFrequency, umCalendarUid = EXCLUDED.umCalendarUid, scheduleClazzUid = EXCLUDED.scheduleClazzUid, scheduleMasterChangeSeqNum = EXCLUDED.scheduleMasterChangeSeqNum, scheduleLocalChangeSeqNum = EXCLUDED.scheduleLocalChangeSeqNum, scheduleLastChangedBy = EXCLUDED.scheduleLastChangedBy, scheduleLastChangedTime = EXCLUDED.scheduleLastChangedTime, scheduleActive = EXCLUDED.scheduleActive ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER schedule_remote_insert_trig INSTEAD OF INSERT ON Schedule_ReceiveView FOR EACH ROW EXECUTE PROCEDURE schedule_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS HolidayCalendarReplicate ( hcPk BIGINT NOT NULL, hcVersionId BIGINT NOT NULL DEFAULT 0, hcDestination BIGINT NOT NULL, hcPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (hcPk, hcDestination)) "),e.add_11rb$(" CREATE INDEX index_HolidayCalendarReplicate_hcPk_hcDestination_hcVersionId ON HolidayCalendarReplicate (hcPk, hcDestination, hcVersionId) "),e.add_11rb$(" CREATE INDEX index_HolidayCalendarReplicate_hcDestination_hcPending ON HolidayCalendarReplicate (hcDestination, hcPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_28_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (28, NEW.umCalendarUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_28_trig AFTER UPDATE OR INSERT ON HolidayCalendar FOR EACH ROW EXECUTE PROCEDURE ch_upd_28_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_28_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (28, OLD.umCalendarUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_28_trig AFTER DELETE ON HolidayCalendar FOR EACH ROW EXECUTE PROCEDURE ch_del_28_fn(); "),e.add_11rb$("CREATE VIEW HolidayCalendar_ReceiveView AS SELECT HolidayCalendar.*, HolidayCalendarReplicate.* FROM HolidayCalendar LEFT JOIN HolidayCalendarReplicate ON HolidayCalendarReplicate.hcPk = HolidayCalendar.umCalendarUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION holidaycalendar_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO HolidayCalendar(umCalendarUid, umCalendarName, umCalendarCategory, umCalendarActive, umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum, umCalendarLastChangedBy, umCalendarLct) VALUES (NEW.umCalendarUid, NEW.umCalendarName, NEW.umCalendarCategory, NEW.umCalendarActive, NEW.umCalendarMasterChangeSeqNum, NEW.umCalendarLocalChangeSeqNum, NEW.umCalendarLastChangedBy, NEW.umCalendarLct) ON CONFLICT (umCalendarUid) DO UPDATE SET umCalendarName = EXCLUDED.umCalendarName, umCalendarCategory = EXCLUDED.umCalendarCategory, umCalendarActive = EXCLUDED.umCalendarActive, umCalendarMasterChangeSeqNum = EXCLUDED.umCalendarMasterChangeSeqNum, umCalendarLocalChangeSeqNum = EXCLUDED.umCalendarLocalChangeSeqNum, umCalendarLastChangedBy = EXCLUDED.umCalendarLastChangedBy, umCalendarLct = EXCLUDED.umCalendarLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER holidaycalendar_remote_insert_trig INSTEAD OF INSERT ON HolidayCalendar_ReceiveView FOR EACH ROW EXECUTE PROCEDURE holidaycalendar_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS HolidayReplicate ( holidayPk BIGINT NOT NULL, holidayVersionId BIGINT NOT NULL DEFAULT 0, holidayDestination BIGINT NOT NULL, holidayPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (holidayPk, holidayDestination)) "),e.add_11rb$(" CREATE INDEX index_HolidayReplicate_holidayPk_holidayDestination_holidayVersionId ON HolidayReplicate (holidayPk, holidayDestination, holidayVersionId) "),e.add_11rb$(" CREATE INDEX index_HolidayReplicate_holidayDestination_holidayPending ON HolidayReplicate (holidayDestination, holidayPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_99_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (99, NEW.holUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_99_trig AFTER UPDATE OR INSERT ON Holiday FOR EACH ROW EXECUTE PROCEDURE ch_upd_99_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_99_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (99, OLD.holUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_99_trig AFTER DELETE ON Holiday FOR EACH ROW EXECUTE PROCEDURE ch_del_99_fn(); "),e.add_11rb$("CREATE VIEW Holiday_ReceiveView AS SELECT Holiday.*, HolidayReplicate.* FROM Holiday LEFT JOIN HolidayReplicate ON HolidayReplicate.holidayPk = Holiday.holUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION holiday_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO Holiday(holUid, holMasterCsn, holLocalCsn, holLastModBy, holLct, holActive, holHolidayCalendarUid, holStartTime, holEndTime, holName) VALUES (NEW.holUid, NEW.holMasterCsn, NEW.holLocalCsn, NEW.holLastModBy, NEW.holLct, NEW.holActive, NEW.holHolidayCalendarUid, NEW.holStartTime, NEW.holEndTime, NEW.holName) ON CONFLICT (holUid) DO UPDATE SET holMasterCsn = EXCLUDED.holMasterCsn, holLocalCsn = EXCLUDED.holLocalCsn, holLastModBy = EXCLUDED.holLastModBy, holLct = EXCLUDED.holLct, holActive = EXCLUDED.holActive, holHolidayCalendarUid = EXCLUDED.holHolidayCalendarUid, holStartTime = EXCLUDED.holStartTime, holEndTime = EXCLUDED.holEndTime, holName = EXCLUDED.holName ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER holiday_remote_insert_trig INSTEAD OF INSERT ON Holiday_ReceiveView FOR EACH ROW EXECUTE PROCEDURE holiday_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS PersonReplicate ( personPk BIGINT NOT NULL, personVersionId BIGINT NOT NULL DEFAULT 0, personDestination BIGINT NOT NULL, personPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (personPk, personDestination)) "),e.add_11rb$(" CREATE INDEX index_PersonReplicate_personPk_personDestination_personVersionId ON PersonReplicate (personPk, personDestination, personVersionId) "),e.add_11rb$(" CREATE INDEX index_PersonReplicate_personDestination_personPending ON PersonReplicate (personDestination, personPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_9_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (9, NEW.personUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_9_trig AFTER UPDATE OR INSERT ON Person FOR EACH ROW EXECUTE PROCEDURE ch_upd_9_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_9_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (9, OLD.personUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_9_trig AFTER DELETE ON Person FOR EACH ROW EXECUTE PROCEDURE ch_del_9_fn(); "),e.add_11rb$("CREATE VIEW Person_ReceiveView AS SELECT Person.*, PersonReplicate.* FROM Person LEFT JOIN PersonReplicate ON PersonReplicate.personPk = Person.personUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION person_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO Person(personUid, username, firstNames, lastName, emailAddr, phoneNum, gender, active, admin, personNotes, fatherName, fatherNumber, motherName, motherNum, dateOfBirth, personAddress, personOrgId, personGroupUid, personMasterChangeSeqNum, personLocalChangeSeqNum, personLastChangedBy, personLct, personCountry, personType) VALUES (NEW.personUid, NEW.username, NEW.firstNames, NEW.lastName, NEW.emailAddr, NEW.phoneNum, NEW.gender, NEW.active, NEW.admin, NEW.personNotes, NEW.fatherName, NEW.fatherNumber, NEW.motherName, NEW.motherNum, NEW.dateOfBirth, NEW.personAddress, NEW.personOrgId, NEW.personGroupUid, NEW.personMasterChangeSeqNum, NEW.personLocalChangeSeqNum, NEW.personLastChangedBy, NEW.personLct, NEW.personCountry, NEW.personType) ON CONFLICT (personUid) DO UPDATE SET username = EXCLUDED.username, firstNames = EXCLUDED.firstNames, lastName = EXCLUDED.lastName, emailAddr = EXCLUDED.emailAddr, phoneNum = EXCLUDED.phoneNum, gender = EXCLUDED.gender, active = EXCLUDED.active, admin = EXCLUDED.admin, personNotes = EXCLUDED.personNotes, fatherName = EXCLUDED.fatherName, fatherNumber = EXCLUDED.fatherNumber, motherName = EXCLUDED.motherName, motherNum = EXCLUDED.motherNum, dateOfBirth = EXCLUDED.dateOfBirth, personAddress = EXCLUDED.personAddress, personOrgId = EXCLUDED.personOrgId, personGroupUid = EXCLUDED.personGroupUid, personMasterChangeSeqNum = EXCLUDED.personMasterChangeSeqNum, personLocalChangeSeqNum = EXCLUDED.personLocalChangeSeqNum, personLastChangedBy = EXCLUDED.personLastChangedBy, personLct = EXCLUDED.personLct, personCountry = EXCLUDED.personCountry, personType = EXCLUDED.personType ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER person_remote_insert_trig INSTEAD OF INSERT ON Person_ReceiveView FOR EACH ROW EXECUTE PROCEDURE person_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ClazzReplicate ( clazzPk BIGINT NOT NULL, clazzVersionId BIGINT NOT NULL DEFAULT 0, clazzDestination BIGINT NOT NULL, clazzPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (clazzPk, clazzDestination)) "),e.add_11rb$(" CREATE INDEX index_ClazzReplicate_clazzPk_clazzDestination_clazzVersionId ON ClazzReplicate (clazzPk, clazzDestination, clazzVersionId) "),e.add_11rb$(" CREATE INDEX index_ClazzReplicate_clazzDestination_clazzPending ON ClazzReplicate (clazzDestination, clazzPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_6_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (6, NEW.clazzUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_6_trig AFTER UPDATE OR INSERT ON Clazz FOR EACH ROW EXECUTE PROCEDURE ch_upd_6_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_6_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (6, OLD.clazzUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_6_trig AFTER DELETE ON Clazz FOR EACH ROW EXECUTE PROCEDURE ch_del_6_fn(); "),e.add_11rb$("CREATE VIEW Clazz_ReceiveView AS SELECT Clazz.*, ClazzReplicate.* FROM Clazz LEFT JOIN ClazzReplicate ON ClazzReplicate.clazzPk = Clazz.clazzUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION clazz_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO Clazz(clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode) VALUES (NEW.clazzUid, NEW.clazzName, NEW.clazzDesc, NEW.attendanceAverage, NEW.clazzHolidayUMCalendarUid, NEW.clazzScheuleUMCalendarUid, NEW.isClazzActive, NEW.clazzLocationUid, NEW.clazzStartTime, NEW.clazzEndTime, NEW.clazzFeatures, NEW.clazzSchoolUid, NEW.clazzMasterChangeSeqNum, NEW.clazzLocalChangeSeqNum, NEW.clazzLastChangedBy, NEW.clazzLct, NEW.clazzTimeZone, NEW.clazzStudentsPersonGroupUid, NEW.clazzTeachersPersonGroupUid, NEW.clazzPendingStudentsPersonGroupUid, NEW.clazzParentsPersonGroupUid, NEW.clazzCode) ON CONFLICT (clazzUid) DO UPDATE SET clazzName = EXCLUDED.clazzName, clazzDesc = EXCLUDED.clazzDesc, attendanceAverage = EXCLUDED.attendanceAverage, clazzHolidayUMCalendarUid = EXCLUDED.clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid = EXCLUDED.clazzScheuleUMCalendarUid, isClazzActive = EXCLUDED.isClazzActive, clazzLocationUid = EXCLUDED.clazzLocationUid, clazzStartTime = EXCLUDED.clazzStartTime, clazzEndTime = EXCLUDED.clazzEndTime, clazzFeatures = EXCLUDED.clazzFeatures, clazzSchoolUid = EXCLUDED.clazzSchoolUid, clazzMasterChangeSeqNum = EXCLUDED.clazzMasterChangeSeqNum, clazzLocalChangeSeqNum = EXCLUDED.clazzLocalChangeSeqNum, clazzLastChangedBy = EXCLUDED.clazzLastChangedBy, clazzLct = EXCLUDED.clazzLct, clazzTimeZone = EXCLUDED.clazzTimeZone, clazzStudentsPersonGroupUid = EXCLUDED.clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid = EXCLUDED.clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid = EXCLUDED.clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid = EXCLUDED.clazzParentsPersonGroupUid, clazzCode = EXCLUDED.clazzCode ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER clazz_remote_insert_trig INSTEAD OF INSERT ON Clazz_ReceiveView FOR EACH ROW EXECUTE PROCEDURE clazz_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ClazzEnrolmentReplicate ( cePk BIGINT NOT NULL, ceVersionId BIGINT NOT NULL DEFAULT 0, ceDestination BIGINT NOT NULL, cePending BOOL NOT NULL DEFAULT true, PRIMARY KEY (cePk, ceDestination)) "),e.add_11rb$(" CREATE INDEX index_ClazzEnrolmentReplicate_cePk_ceDestination_ceVersionId ON ClazzEnrolmentReplicate (cePk, ceDestination, ceVersionId) "),e.add_11rb$(" CREATE INDEX index_ClazzEnrolmentReplicate_ceDestination_cePending ON ClazzEnrolmentReplicate (ceDestination, cePending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_65_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (65, NEW.clazzEnrolmentUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_65_trig AFTER UPDATE OR INSERT ON ClazzEnrolment FOR EACH ROW EXECUTE PROCEDURE ch_upd_65_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_65_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (65, OLD.clazzEnrolmentUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_65_trig AFTER DELETE ON ClazzEnrolment FOR EACH ROW EXECUTE PROCEDURE ch_del_65_fn(); "),e.add_11rb$("CREATE VIEW ClazzEnrolment_ReceiveView AS SELECT ClazzEnrolment.*, ClazzEnrolmentReplicate.* FROM ClazzEnrolment LEFT JOIN ClazzEnrolmentReplicate ON ClazzEnrolmentReplicate.cePk = ClazzEnrolment.clazzEnrolmentUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION clazzenrolment_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ClazzEnrolment(clazzEnrolmentUid, clazzEnrolmentPersonUid, clazzEnrolmentClazzUid, clazzEnrolmentDateJoined, clazzEnrolmentDateLeft, clazzEnrolmentRole, clazzEnrolmentAttendancePercentage, clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy, clazzEnrolmentLct) VALUES (NEW.clazzEnrolmentUid, NEW.clazzEnrolmentPersonUid, NEW.clazzEnrolmentClazzUid, NEW.clazzEnrolmentDateJoined, NEW.clazzEnrolmentDateLeft, NEW.clazzEnrolmentRole, NEW.clazzEnrolmentAttendancePercentage, NEW.clazzEnrolmentActive, NEW.clazzEnrolmentLeavingReasonUid, NEW.clazzEnrolmentOutcome, NEW.clazzEnrolmentLocalChangeSeqNum, NEW.clazzEnrolmentMasterChangeSeqNum, NEW.clazzEnrolmentLastChangedBy, NEW.clazzEnrolmentLct) ON CONFLICT (clazzEnrolmentUid) DO UPDATE SET clazzEnrolmentPersonUid = EXCLUDED.clazzEnrolmentPersonUid, clazzEnrolmentClazzUid = EXCLUDED.clazzEnrolmentClazzUid, clazzEnrolmentDateJoined = EXCLUDED.clazzEnrolmentDateJoined, clazzEnrolmentDateLeft = EXCLUDED.clazzEnrolmentDateLeft, clazzEnrolmentRole = EXCLUDED.clazzEnrolmentRole, clazzEnrolmentAttendancePercentage = EXCLUDED.clazzEnrolmentAttendancePercentage, clazzEnrolmentActive = EXCLUDED.clazzEnrolmentActive, clazzEnrolmentLeavingReasonUid = EXCLUDED.clazzEnrolmentLeavingReasonUid, clazzEnrolmentOutcome = EXCLUDED.clazzEnrolmentOutcome, clazzEnrolmentLocalChangeSeqNum = EXCLUDED.clazzEnrolmentLocalChangeSeqNum, clazzEnrolmentMasterChangeSeqNum = EXCLUDED.clazzEnrolmentMasterChangeSeqNum, clazzEnrolmentLastChangedBy = EXCLUDED.clazzEnrolmentLastChangedBy, clazzEnrolmentLct = EXCLUDED.clazzEnrolmentLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER clazzenrolment_remote_insert_trig INSTEAD OF INSERT ON ClazzEnrolment_ReceiveView FOR EACH ROW EXECUTE PROCEDURE clazzenrolment_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS LeavingReasonReplicate ( lrPk BIGINT NOT NULL, lrVersionId BIGINT NOT NULL DEFAULT 0, lrDestination BIGINT NOT NULL, lrPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (lrPk, lrDestination)) "),e.add_11rb$(" CREATE INDEX index_LeavingReasonReplicate_lrPk_lrDestination_lrVersionId ON LeavingReasonReplicate (lrPk, lrDestination, lrVersionId) "),e.add_11rb$(" CREATE INDEX index_LeavingReasonReplicate_lrDestination_lrPending ON LeavingReasonReplicate (lrDestination, lrPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_410_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (410, NEW.leavingReasonUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_410_trig AFTER UPDATE OR INSERT ON LeavingReason FOR EACH ROW EXECUTE PROCEDURE ch_upd_410_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_410_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (410, OLD.leavingReasonUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_410_trig AFTER DELETE ON LeavingReason FOR EACH ROW EXECUTE PROCEDURE ch_del_410_fn(); "),e.add_11rb$("CREATE VIEW LeavingReason_ReceiveView AS SELECT LeavingReason.*, LeavingReasonReplicate.* FROM LeavingReason LEFT JOIN LeavingReasonReplicate ON LeavingReasonReplicate.lrPk = LeavingReason.leavingReasonUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION leavingreason_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO LeavingReason(leavingReasonUid, leavingReasonTitle, leavingReasonMCSN, leavingReasonCSN, leavingReasonLCB, leavingReasonLct) VALUES (NEW.leavingReasonUid, NEW.leavingReasonTitle, NEW.leavingReasonMCSN, NEW.leavingReasonCSN, NEW.leavingReasonLCB, NEW.leavingReasonLct) ON CONFLICT (leavingReasonUid) DO UPDATE SET leavingReasonTitle = EXCLUDED.leavingReasonTitle, leavingReasonMCSN = EXCLUDED.leavingReasonMCSN, leavingReasonCSN = EXCLUDED.leavingReasonCSN, leavingReasonLCB = EXCLUDED.leavingReasonLCB, leavingReasonLct = EXCLUDED.leavingReasonLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER leavingreason_remote_insert_trig INSTEAD OF INSERT ON LeavingReason_ReceiveView FOR EACH ROW EXECUTE PROCEDURE leavingreason_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ContentEntryReplicate ( cePk BIGINT NOT NULL, ceVersionId BIGINT NOT NULL DEFAULT 0, ceDestination BIGINT NOT NULL, cePending BOOL NOT NULL DEFAULT true, PRIMARY KEY (cePk, ceDestination)) "),e.add_11rb$(" CREATE INDEX index_ContentEntryReplicate_cePk_ceDestination_ceVersionId ON ContentEntryReplicate (cePk, ceDestination, ceVersionId) "),e.add_11rb$(" CREATE INDEX index_ContentEntryReplicate_ceDestination_cePending ON ContentEntryReplicate (ceDestination, cePending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_42_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (42, NEW.contentEntryUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_42_trig AFTER UPDATE OR INSERT ON ContentEntry FOR EACH ROW EXECUTE PROCEDURE ch_upd_42_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_42_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (42, OLD.contentEntryUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_42_trig AFTER DELETE ON ContentEntry FOR EACH ROW EXECUTE PROCEDURE ch_del_42_fn(); "),e.add_11rb$("CREATE VIEW ContentEntry_ReceiveView AS SELECT ContentEntry.*, ContentEntryReplicate.* FROM ContentEntry LEFT JOIN ContentEntryReplicate ON ContentEntryReplicate.cePk = ContentEntry.contentEntryUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION contententry_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ContentEntry(contentEntryUid, title, description, entryId, author, publisher, licenseType, licenseName, licenseUrl, sourceUrl, thumbnailUrl, lastModified, primaryLanguageUid, languageVariantUid, contentFlags, leaf, publik, ceInactive, completionCriteria, minScore, contentTypeFlag, contentOwner, contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum, contentEntryLastChangedBy, contentEntryLct) VALUES (NEW.contentEntryUid, NEW.title, NEW.description, NEW.entryId, NEW.author, NEW.publisher, NEW.licenseType, NEW.licenseName, NEW.licenseUrl, NEW.sourceUrl, NEW.thumbnailUrl, NEW.lastModified, NEW.primaryLanguageUid, NEW.languageVariantUid, NEW.contentFlags, NEW.leaf, NEW.publik, NEW.ceInactive, NEW.completionCriteria, NEW.minScore, NEW.contentTypeFlag, NEW.contentOwner, NEW.contentEntryLocalChangeSeqNum, NEW.contentEntryMasterChangeSeqNum, NEW.contentEntryLastChangedBy, NEW.contentEntryLct) ON CONFLICT (contentEntryUid) DO UPDATE SET title = EXCLUDED.title, description = EXCLUDED.description, entryId = EXCLUDED.entryId, author = EXCLUDED.author, publisher = EXCLUDED.publisher, licenseType = EXCLUDED.licenseType, licenseName = EXCLUDED.licenseName, licenseUrl = EXCLUDED.licenseUrl, sourceUrl = EXCLUDED.sourceUrl, thumbnailUrl = EXCLUDED.thumbnailUrl, lastModified = EXCLUDED.lastModified, primaryLanguageUid = EXCLUDED.primaryLanguageUid, languageVariantUid = EXCLUDED.languageVariantUid, contentFlags = EXCLUDED.contentFlags, leaf = EXCLUDED.leaf, publik = EXCLUDED.publik, ceInactive = EXCLUDED.ceInactive, completionCriteria = EXCLUDED.completionCriteria, minScore = EXCLUDED.minScore, contentTypeFlag = EXCLUDED.contentTypeFlag, contentOwner = EXCLUDED.contentOwner, contentEntryLocalChangeSeqNum = EXCLUDED.contentEntryLocalChangeSeqNum, contentEntryMasterChangeSeqNum = EXCLUDED.contentEntryMasterChangeSeqNum, contentEntryLastChangedBy = EXCLUDED.contentEntryLastChangedBy, contentEntryLct = EXCLUDED.contentEntryLct; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER contententry_remote_insert_trig INSTEAD OF INSERT ON ContentEntry_ReceiveView FOR EACH ROW EXECUTE PROCEDURE contententry_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ContentEntryContentCategoryJoinReplicate ( ceccjPk BIGINT NOT NULL, ceccjVersionId BIGINT NOT NULL DEFAULT 0, ceccjDestination BIGINT NOT NULL, ceccjPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (ceccjPk, ceccjDestination)) "),e.add_11rb$(" CREATE INDEX index_ContentEntryContentCategoryJoinReplicate_ceccjPk_ceccjDestination_ceccjVersionId ON ContentEntryContentCategoryJoinReplicate (ceccjPk, ceccjDestination, ceccjVersionId) "),e.add_11rb$(" CREATE INDEX index_ContentEntryContentCategoryJoinReplicate_ceccjDestination_ceccjPending ON ContentEntryContentCategoryJoinReplicate (ceccjDestination, ceccjPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_3_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (3, NEW.ceccjUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_3_trig AFTER UPDATE OR INSERT ON ContentEntryContentCategoryJoin FOR EACH ROW EXECUTE PROCEDURE ch_upd_3_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_3_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (3, OLD.ceccjUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_3_trig AFTER DELETE ON ContentEntryContentCategoryJoin FOR EACH ROW EXECUTE PROCEDURE ch_del_3_fn(); "),e.add_11rb$("CREATE VIEW ContentEntryContentCategoryJoin_ReceiveView AS SELECT ContentEntryContentCategoryJoin.*, ContentEntryContentCategoryJoinReplicate.* FROM ContentEntryContentCategoryJoin LEFT JOIN ContentEntryContentCategoryJoinReplicate ON ContentEntryContentCategoryJoinReplicate.ceccjPk = ContentEntryContentCategoryJoin.ceccjUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION contententrycontentcategoryjoin_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ContentEntryContentCategoryJoin(ceccjUid, ceccjContentEntryUid, ceccjContentCategoryUid, ceccjLocalChangeSeqNum, ceccjMasterChangeSeqNum, ceccjLastChangedBy, ceccjLct) VALUES (NEW.ceccjUid, NEW.ceccjContentEntryUid, NEW.ceccjContentCategoryUid, NEW.ceccjLocalChangeSeqNum, NEW.ceccjMasterChangeSeqNum, NEW.ceccjLastChangedBy, NEW.ceccjLct) ON CONFLICT (ceccjUid) DO UPDATE SET ceccjContentEntryUid = EXCLUDED.ceccjContentEntryUid, ceccjContentCategoryUid = EXCLUDED.ceccjContentCategoryUid, ceccjLocalChangeSeqNum = EXCLUDED.ceccjLocalChangeSeqNum, ceccjMasterChangeSeqNum = EXCLUDED.ceccjMasterChangeSeqNum, ceccjLastChangedBy = EXCLUDED.ceccjLastChangedBy, ceccjLct = EXCLUDED.ceccjLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER contententrycontentcategoryjoin_remote_insert_trig INSTEAD OF INSERT ON ContentEntryContentCategoryJoin_ReceiveView FOR EACH ROW EXECUTE PROCEDURE contententrycontentcategoryjoin_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ContentEntryParentChildJoinReplicate ( cepcjPk BIGINT NOT NULL, cepcjVersionId BIGINT NOT NULL DEFAULT 0, cepcjDestination BIGINT NOT NULL, cepcjPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (cepcjPk, cepcjDestination)) "),e.add_11rb$(" CREATE INDEX index_ContentEntryParentChildJoinReplicate_cepcjPk_cepcjDestination_cepcjVersionId ON ContentEntryParentChildJoinReplicate (cepcjPk, cepcjDestination, cepcjVersionId) "),e.add_11rb$(" CREATE INDEX index_ContentEntryParentChildJoinReplicate_cepcjDestination_cepcjPending ON ContentEntryParentChildJoinReplicate (cepcjDestination, cepcjPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_7_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (7, NEW.cepcjUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_7_trig AFTER UPDATE OR INSERT ON ContentEntryParentChildJoin FOR EACH ROW EXECUTE PROCEDURE ch_upd_7_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_7_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (7, OLD.cepcjUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_7_trig AFTER DELETE ON ContentEntryParentChildJoin FOR EACH ROW EXECUTE PROCEDURE ch_del_7_fn(); "),e.add_11rb$("CREATE VIEW ContentEntryParentChildJoin_ReceiveView AS SELECT ContentEntryParentChildJoin.*, ContentEntryParentChildJoinReplicate.* FROM ContentEntryParentChildJoin LEFT JOIN ContentEntryParentChildJoinReplicate ON ContentEntryParentChildJoinReplicate.cepcjPk = ContentEntryParentChildJoin.cepcjUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION contententryparentchildjoin_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ContentEntryParentChildJoin(cepcjParentContentEntryUid, cepcjChildContentEntryUid, childIndex, cepcjUid, cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum, cepcjLastChangedBy, cepcjLct) VALUES (NEW.cepcjParentContentEntryUid, NEW.cepcjChildContentEntryUid, NEW.childIndex, NEW.cepcjUid, NEW.cepcjLocalChangeSeqNum, NEW.cepcjMasterChangeSeqNum, NEW.cepcjLastChangedBy, NEW.cepcjLct) ON CONFLICT (cepcjUid) DO UPDATE SET cepcjParentContentEntryUid = EXCLUDED.cepcjParentContentEntryUid, cepcjChildContentEntryUid = EXCLUDED.cepcjChildContentEntryUid, childIndex = EXCLUDED.childIndex, cepcjLocalChangeSeqNum = EXCLUDED.cepcjLocalChangeSeqNum, cepcjMasterChangeSeqNum = EXCLUDED.cepcjMasterChangeSeqNum, cepcjLastChangedBy = EXCLUDED.cepcjLastChangedBy, cepcjLct = EXCLUDED.cepcjLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER contententryparentchildjoin_remote_insert_trig INSTEAD OF INSERT ON ContentEntryParentChildJoin_ReceiveView FOR EACH ROW EXECUTE PROCEDURE contententryparentchildjoin_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ContentEntryRelatedEntryJoinReplicate ( cerejPk BIGINT NOT NULL, cerejVersionId BIGINT NOT NULL DEFAULT 0, cerejDestination BIGINT NOT NULL, cerejPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (cerejPk, cerejDestination)) "),e.add_11rb$(" CREATE INDEX index_ContentEntryRelatedEntryJoinReplicate_cerejPk_cerejDestination_cerejVersionId ON ContentEntryRelatedEntryJoinReplicate (cerejPk, cerejDestination, cerejVersionId) "),e.add_11rb$(" CREATE INDEX index_ContentEntryRelatedEntryJoinReplicate_cerejDestination_cerejPending ON ContentEntryRelatedEntryJoinReplicate (cerejDestination, cerejPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_8_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (8, NEW.cerejUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_8_trig AFTER UPDATE OR INSERT ON ContentEntryRelatedEntryJoin FOR EACH ROW EXECUTE PROCEDURE ch_upd_8_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_8_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (8, OLD.cerejUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_8_trig AFTER DELETE ON ContentEntryRelatedEntryJoin FOR EACH ROW EXECUTE PROCEDURE ch_del_8_fn(); "),e.add_11rb$("CREATE VIEW ContentEntryRelatedEntryJoin_ReceiveView AS SELECT ContentEntryRelatedEntryJoin.*, ContentEntryRelatedEntryJoinReplicate.* FROM ContentEntryRelatedEntryJoin LEFT JOIN ContentEntryRelatedEntryJoinReplicate ON ContentEntryRelatedEntryJoinReplicate.cerejPk = ContentEntryRelatedEntryJoin.cerejUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION contententryrelatedentryjoin_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ContentEntryRelatedEntryJoin(cerejUid, cerejContentEntryUid, cerejRelatedEntryUid, cerejLastChangedBy, relType, comment, cerejRelLanguageUid, cerejLocalChangeSeqNum, cerejMasterChangeSeqNum, cerejLct) VALUES (NEW.cerejUid, NEW.cerejContentEntryUid, NEW.cerejRelatedEntryUid, NEW.cerejLastChangedBy, NEW.relType, NEW.comment, NEW.cerejRelLanguageUid, NEW.cerejLocalChangeSeqNum, NEW.cerejMasterChangeSeqNum, NEW.cerejLct) ON CONFLICT (cerejUid) DO UPDATE SET cerejContentEntryUid = EXCLUDED.cerejContentEntryUid, cerejRelatedEntryUid = EXCLUDED.cerejRelatedEntryUid, cerejLastChangedBy = EXCLUDED.cerejLastChangedBy, relType = EXCLUDED.relType, comment = EXCLUDED.comment, cerejRelLanguageUid = EXCLUDED.cerejRelLanguageUid, cerejLocalChangeSeqNum = EXCLUDED.cerejLocalChangeSeqNum, cerejMasterChangeSeqNum = EXCLUDED.cerejMasterChangeSeqNum, cerejLct = EXCLUDED.cerejLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER contententryrelatedentryjoin_remote_insert_trig INSTEAD OF INSERT ON ContentEntryRelatedEntryJoin_ReceiveView FOR EACH ROW EXECUTE PROCEDURE contententryrelatedentryjoin_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ContentCategorySchemaReplicate ( ccsPk BIGINT NOT NULL, ccsVersionId BIGINT NOT NULL DEFAULT 0, ccsDestination BIGINT NOT NULL, ccsPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (ccsPk, ccsDestination)) "),e.add_11rb$(" CREATE INDEX index_ContentCategorySchemaReplicate_ccsPk_ccsDestination_ccsVersionId ON ContentCategorySchemaReplicate (ccsPk, ccsDestination, ccsVersionId) "),e.add_11rb$(" CREATE INDEX index_ContentCategorySchemaReplicate_ccsDestination_ccsPending ON ContentCategorySchemaReplicate (ccsDestination, ccsPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_2_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (2, NEW.contentCategorySchemaUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_2_trig AFTER UPDATE OR INSERT ON ContentCategorySchema FOR EACH ROW EXECUTE PROCEDURE ch_upd_2_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_2_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (2, OLD.contentCategorySchemaUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_2_trig AFTER DELETE ON ContentCategorySchema FOR EACH ROW EXECUTE PROCEDURE ch_del_2_fn(); "),e.add_11rb$("CREATE VIEW ContentCategorySchema_ReceiveView AS SELECT ContentCategorySchema.*, ContentCategorySchemaReplicate.* FROM ContentCategorySchema LEFT JOIN ContentCategorySchemaReplicate ON ContentCategorySchemaReplicate.ccsPk = ContentCategorySchema.contentCategorySchemaUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION contentcategoryschema_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ContentCategorySchema(contentCategorySchemaUid, schemaName, schemaUrl, contentCategorySchemaLocalChangeSeqNum, contentCategorySchemaMasterChangeSeqNum, contentCategorySchemaLastChangedBy, contentCategorySchemaLct) VALUES (NEW.contentCategorySchemaUid, NEW.schemaName, NEW.schemaUrl, NEW.contentCategorySchemaLocalChangeSeqNum, NEW.contentCategorySchemaMasterChangeSeqNum, NEW.contentCategorySchemaLastChangedBy, NEW.contentCategorySchemaLct) ON CONFLICT (contentCategorySchemaUid) DO UPDATE SET schemaName = EXCLUDED.schemaName, schemaUrl = EXCLUDED.schemaUrl, contentCategorySchemaLocalChangeSeqNum = EXCLUDED.contentCategorySchemaLocalChangeSeqNum, contentCategorySchemaMasterChangeSeqNum = EXCLUDED.contentCategorySchemaMasterChangeSeqNum, contentCategorySchemaLastChangedBy = EXCLUDED.contentCategorySchemaLastChangedBy, contentCategorySchemaLct = EXCLUDED.contentCategorySchemaLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER contentcategoryschema_remote_insert_trig INSTEAD OF INSERT ON ContentCategorySchema_ReceiveView FOR EACH ROW EXECUTE PROCEDURE contentcategoryschema_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ContentCategoryReplicate ( ccPk BIGINT NOT NULL, ccVersionId BIGINT NOT NULL DEFAULT 0, ccDestination BIGINT NOT NULL, ccPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (ccPk, ccDestination)) "),e.add_11rb$(" CREATE INDEX index_ContentCategoryReplicate_ccPk_ccDestination_ccVersionId ON ContentCategoryReplicate (ccPk, ccDestination, ccVersionId) "),e.add_11rb$(" CREATE INDEX index_ContentCategoryReplicate_ccDestination_ccPending ON ContentCategoryReplicate (ccDestination, ccPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_1_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (1, NEW.contentCategoryUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_1_trig AFTER UPDATE OR INSERT ON ContentCategory FOR EACH ROW EXECUTE PROCEDURE ch_upd_1_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_1_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (1, OLD.contentCategoryUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_1_trig AFTER DELETE ON ContentCategory FOR EACH ROW EXECUTE PROCEDURE ch_del_1_fn(); "),e.add_11rb$("CREATE VIEW ContentCategory_ReceiveView AS SELECT ContentCategory.*, ContentCategoryReplicate.* FROM ContentCategory LEFT JOIN ContentCategoryReplicate ON ContentCategoryReplicate.ccPk = ContentCategory.contentCategoryUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION contentcategory_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ContentCategory(contentCategoryUid, ctnCatContentCategorySchemaUid, name, contentCategoryLocalChangeSeqNum, contentCategoryMasterChangeSeqNum, contentCategoryLastChangedBy, contentCategoryLct) VALUES (NEW.contentCategoryUid, NEW.ctnCatContentCategorySchemaUid, NEW.name, NEW.contentCategoryLocalChangeSeqNum, NEW.contentCategoryMasterChangeSeqNum, NEW.contentCategoryLastChangedBy, NEW.contentCategoryLct) ON CONFLICT (contentCategoryUid) DO UPDATE SET ctnCatContentCategorySchemaUid = EXCLUDED.ctnCatContentCategorySchemaUid, name = EXCLUDED.name, contentCategoryLocalChangeSeqNum = EXCLUDED.contentCategoryLocalChangeSeqNum, contentCategoryMasterChangeSeqNum = EXCLUDED.contentCategoryMasterChangeSeqNum, contentCategoryLastChangedBy = EXCLUDED.contentCategoryLastChangedBy, contentCategoryLct = EXCLUDED.contentCategoryLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER contentcategory_remote_insert_trig INSTEAD OF INSERT ON ContentCategory_ReceiveView FOR EACH ROW EXECUTE PROCEDURE contentcategory_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS LanguageReplicate ( languagePk BIGINT NOT NULL, languageVersionId BIGINT NOT NULL DEFAULT 0, languageDestination BIGINT NOT NULL, languagePending BOOL NOT NULL DEFAULT true, PRIMARY KEY (languagePk, languageDestination)) "),e.add_11rb$(" CREATE INDEX index_LanguageReplicate_languagePk_languageDestination_languageVersionId ON LanguageReplicate (languagePk, languageDestination, languageVersionId) "),e.add_11rb$(" CREATE INDEX index_LanguageReplicate_languageDestination_languagePending ON LanguageReplicate (languageDestination, languagePending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_13_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (13, NEW.langUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_13_trig AFTER UPDATE OR INSERT ON Language FOR EACH ROW EXECUTE PROCEDURE ch_upd_13_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_13_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (13, OLD.langUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_13_trig AFTER DELETE ON Language FOR EACH ROW EXECUTE PROCEDURE ch_del_13_fn(); "),e.add_11rb$("CREATE VIEW Language_ReceiveView AS SELECT Language.*, LanguageReplicate.* FROM Language LEFT JOIN LanguageReplicate ON LanguageReplicate.languagePk = Language.langUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION language_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO Language(langUid, name, iso_639_1_standard, iso_639_2_standard, iso_639_3_standard, Language_Type, languageActive, langLocalChangeSeqNum, langMasterChangeSeqNum, langLastChangedBy, langLct) VALUES (NEW.langUid, NEW.name, NEW.iso_639_1_standard, NEW.iso_639_2_standard, NEW.iso_639_3_standard, NEW.Language_Type, NEW.languageActive, NEW.langLocalChangeSeqNum, NEW.langMasterChangeSeqNum, NEW.langLastChangedBy, NEW.langLct) ON CONFLICT (langUid) DO UPDATE SET name = EXCLUDED.name, iso_639_1_standard = EXCLUDED.iso_639_1_standard, iso_639_2_standard = EXCLUDED.iso_639_2_standard, iso_639_3_standard = EXCLUDED.iso_639_3_standard, Language_Type = EXCLUDED.Language_Type, languageActive = EXCLUDED.languageActive, langLocalChangeSeqNum = EXCLUDED.langLocalChangeSeqNum, langMasterChangeSeqNum = EXCLUDED.langMasterChangeSeqNum, langLastChangedBy = EXCLUDED.langLastChangedBy, langLct = EXCLUDED.langLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER language_remote_insert_trig INSTEAD OF INSERT ON Language_ReceiveView FOR EACH ROW EXECUTE PROCEDURE language_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS LanguageVariantReplicate ( lvPk BIGINT NOT NULL, lvVersionId BIGINT NOT NULL DEFAULT 0, lvDestination BIGINT NOT NULL, lvPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (lvPk, lvDestination)) "),e.add_11rb$(" CREATE INDEX index_LanguageVariantReplicate_lvPk_lvDestination_lvVersionId ON LanguageVariantReplicate (lvPk, lvDestination, lvVersionId) "),e.add_11rb$(" CREATE INDEX index_LanguageVariantReplicate_lvDestination_lvPending ON LanguageVariantReplicate (lvDestination, lvPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_10_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (10, NEW.langVariantUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_10_trig AFTER UPDATE OR INSERT ON LanguageVariant FOR EACH ROW EXECUTE PROCEDURE ch_upd_10_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_10_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (10, OLD.langVariantUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_10_trig AFTER DELETE ON LanguageVariant FOR EACH ROW EXECUTE PROCEDURE ch_del_10_fn(); "),e.add_11rb$("CREATE VIEW LanguageVariant_ReceiveView AS SELECT LanguageVariant.*, LanguageVariantReplicate.* FROM LanguageVariant LEFT JOIN LanguageVariantReplicate ON LanguageVariantReplicate.lvPk = LanguageVariant.langVariantUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION languagevariant_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO LanguageVariant(langVariantUid, langUid, countryCode, name, langVariantLocalChangeSeqNum, langVariantMasterChangeSeqNum, langVariantLastChangedBy, langVariantLct) VALUES (NEW.langVariantUid, NEW.langUid, NEW.countryCode, NEW.name, NEW.langVariantLocalChangeSeqNum, NEW.langVariantMasterChangeSeqNum, NEW.langVariantLastChangedBy, NEW.langVariantLct) ON CONFLICT (langVariantUid) DO UPDATE SET langUid = EXCLUDED.langUid, countryCode = EXCLUDED.countryCode, name = EXCLUDED.name, langVariantLocalChangeSeqNum = EXCLUDED.langVariantLocalChangeSeqNum, langVariantMasterChangeSeqNum = EXCLUDED.langVariantMasterChangeSeqNum, langVariantLastChangedBy = EXCLUDED.langVariantLastChangedBy, langVariantLct = EXCLUDED.langVariantLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER languagevariant_remote_insert_trig INSTEAD OF INSERT ON LanguageVariant_ReceiveView FOR EACH ROW EXECUTE PROCEDURE languagevariant_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS PersonGroupReplicate ( pgPk BIGINT NOT NULL, pgVersionId BIGINT NOT NULL DEFAULT 0, pgDestination BIGINT NOT NULL, pgPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (pgPk, pgDestination)) "),e.add_11rb$(" CREATE INDEX index_PersonGroupReplicate_pgPk_pgDestination_pgVersionId ON PersonGroupReplicate (pgPk, pgDestination, pgVersionId) "),e.add_11rb$(" CREATE INDEX index_PersonGroupReplicate_pgDestination_pgPending ON PersonGroupReplicate (pgDestination, pgPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_43_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (43, NEW.groupUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_43_trig AFTER UPDATE OR INSERT ON PersonGroup FOR EACH ROW EXECUTE PROCEDURE ch_upd_43_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_43_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (43, OLD.groupUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_43_trig AFTER DELETE ON PersonGroup FOR EACH ROW EXECUTE PROCEDURE ch_del_43_fn(); "),e.add_11rb$("CREATE VIEW PersonGroup_ReceiveView AS SELECT PersonGroup.*, PersonGroupReplicate.* FROM PersonGroup LEFT JOIN PersonGroupReplicate ON PersonGroupReplicate.pgPk = PersonGroup.groupUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION persongroup_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO PersonGroup(groupUid, groupMasterCsn, groupLocalCsn, groupLastChangedBy, groupLct, groupName, groupActive, personGroupFlag) VALUES (NEW.groupUid, NEW.groupMasterCsn, NEW.groupLocalCsn, NEW.groupLastChangedBy, NEW.groupLct, NEW.groupName, NEW.groupActive, NEW.personGroupFlag) ON CONFLICT (groupUid) DO UPDATE SET groupMasterCsn = EXCLUDED.groupMasterCsn, groupLocalCsn = EXCLUDED.groupLocalCsn, groupLastChangedBy = EXCLUDED.groupLastChangedBy, groupLct = EXCLUDED.groupLct, groupName = EXCLUDED.groupName, groupActive = EXCLUDED.groupActive, personGroupFlag = EXCLUDED.personGroupFlag ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER persongroup_remote_insert_trig INSTEAD OF INSERT ON PersonGroup_ReceiveView FOR EACH ROW EXECUTE PROCEDURE persongroup_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS PersonGroupMemberReplicate ( pgmPk BIGINT NOT NULL, pgmVersionId BIGINT NOT NULL DEFAULT 0, pgmDestination BIGINT NOT NULL, pgmPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (pgmPk, pgmDestination)) "),e.add_11rb$(" CREATE INDEX index_PersonGroupMemberReplicate_pgmPk_pgmDestination_pgmVersionId ON PersonGroupMemberReplicate (pgmPk, pgmDestination, pgmVersionId) "),e.add_11rb$(" CREATE INDEX index_PersonGroupMemberReplicate_pgmDestination_pgmPending ON PersonGroupMemberReplicate (pgmDestination, pgmPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_44_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (44, NEW.groupMemberUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_44_trig AFTER UPDATE OR INSERT ON PersonGroupMember FOR EACH ROW EXECUTE PROCEDURE ch_upd_44_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_44_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (44, OLD.groupMemberUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_44_trig AFTER DELETE ON PersonGroupMember FOR EACH ROW EXECUTE PROCEDURE ch_del_44_fn(); "),e.add_11rb$("CREATE VIEW PersonGroupMember_ReceiveView AS SELECT PersonGroupMember.*, PersonGroupMemberReplicate.* FROM PersonGroupMember LEFT JOIN PersonGroupMemberReplicate ON PersonGroupMemberReplicate.pgmPk = PersonGroupMember.groupMemberUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION persongroupmember_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO PersonGroupMember(groupMemberUid, groupMemberActive, groupMemberPersonUid, groupMemberGroupUid, groupMemberMasterCsn, groupMemberLocalCsn, groupMemberLastChangedBy, groupMemberLct) VALUES (NEW.groupMemberUid, NEW.groupMemberActive, NEW.groupMemberPersonUid, NEW.groupMemberGroupUid, NEW.groupMemberMasterCsn, NEW.groupMemberLocalCsn, NEW.groupMemberLastChangedBy, NEW.groupMemberLct) ON CONFLICT (groupMemberUid) DO UPDATE SET groupMemberActive = EXCLUDED.groupMemberActive, groupMemberPersonUid = EXCLUDED.groupMemberPersonUid, groupMemberGroupUid = EXCLUDED.groupMemberGroupUid, groupMemberMasterCsn = EXCLUDED.groupMemberMasterCsn, groupMemberLocalCsn = EXCLUDED.groupMemberLocalCsn, groupMemberLastChangedBy = EXCLUDED.groupMemberLastChangedBy, groupMemberLct = EXCLUDED.groupMemberLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER persongroupmember_remote_insert_trig INSTEAD OF INSERT ON PersonGroupMember_ReceiveView FOR EACH ROW EXECUTE PROCEDURE persongroupmember_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS PersonPictureReplicate ( ppPk BIGINT NOT NULL, ppVersionId BIGINT NOT NULL DEFAULT 0, ppDestination BIGINT NOT NULL, ppPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (ppPk, ppDestination)) "),e.add_11rb$(" CREATE INDEX index_PersonPictureReplicate_ppPk_ppDestination_ppVersionId ON PersonPictureReplicate (ppPk, ppDestination, ppVersionId) "),e.add_11rb$(" CREATE INDEX index_PersonPictureReplicate_ppDestination_ppPending ON PersonPictureReplicate (ppDestination, ppPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_50_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (50, NEW.personPictureUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_50_trig AFTER UPDATE OR INSERT ON PersonPicture FOR EACH ROW EXECUTE PROCEDURE ch_upd_50_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_50_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (50, OLD.personPictureUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_50_trig AFTER DELETE ON PersonPicture FOR EACH ROW EXECUTE PROCEDURE ch_del_50_fn(); "),e.add_11rb$("CREATE VIEW PersonPicture_ReceiveView AS SELECT PersonPicture.*, PersonPictureReplicate.* FROM PersonPicture LEFT JOIN PersonPictureReplicate ON PersonPictureReplicate.ppPk = PersonPicture.personPictureUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION personpicture_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO PersonPicture(personPictureUid, personPicturePersonUid, personPictureMasterCsn, personPictureLocalCsn, personPictureLastChangedBy, personPictureLct, personPictureUri, personPictureMd5, fileSize, picTimestamp, mimeType, personPictureActive) VALUES (NEW.personPictureUid, NEW.personPicturePersonUid, NEW.personPictureMasterCsn, NEW.personPictureLocalCsn, NEW.personPictureLastChangedBy, NEW.personPictureLct, NEW.personPictureUri, NEW.personPictureMd5, NEW.fileSize, NEW.picTimestamp, NEW.mimeType, NEW.personPictureActive) ON CONFLICT (personPictureUid) DO UPDATE SET personPicturePersonUid = EXCLUDED.personPicturePersonUid, personPictureMasterCsn = EXCLUDED.personPictureMasterCsn, personPictureLocalCsn = EXCLUDED.personPictureLocalCsn, personPictureLastChangedBy = EXCLUDED.personPictureLastChangedBy, personPictureLct = EXCLUDED.personPictureLct, personPictureUri = EXCLUDED.personPictureUri, personPictureMd5 = EXCLUDED.personPictureMd5, fileSize = EXCLUDED.fileSize, picTimestamp = EXCLUDED.picTimestamp, mimeType = EXCLUDED.mimeType, personPictureActive = EXCLUDED.personPictureActive ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER personpicture_remote_insert_trig INSTEAD OF INSERT ON PersonPicture_ReceiveView FOR EACH ROW EXECUTE PROCEDURE personpicture_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ContainerReplicate ( containerPk BIGINT NOT NULL, containerVersionId BIGINT NOT NULL DEFAULT 0, containerDestination BIGINT NOT NULL, containerPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (containerPk, containerDestination)) "),e.add_11rb$(" CREATE INDEX index_ContainerReplicate_containerPk_containerDestination_containerVersionId ON ContainerReplicate (containerPk, containerDestination, containerVersionId) "),e.add_11rb$(" CREATE INDEX index_ContainerReplicate_containerDestination_containerPending ON ContainerReplicate (containerDestination, containerPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_51_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (51, NEW.containerUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_51_trig AFTER UPDATE OR INSERT ON Container FOR EACH ROW EXECUTE PROCEDURE ch_upd_51_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_51_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (51, OLD.containerUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_51_trig AFTER DELETE ON Container FOR EACH ROW EXECUTE PROCEDURE ch_del_51_fn(); "),e.add_11rb$("CREATE VIEW Container_ReceiveView AS SELECT Container.*, ContainerReplicate.* FROM Container LEFT JOIN ContainerReplicate ON ContainerReplicate.containerPk = Container.containerUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION container_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO Container(containerUid, cntLocalCsn, cntMasterCsn, cntLastModBy, cntLct, fileSize, containerContentEntryUid, cntLastModified, mimeType, remarks, mobileOptimized, cntNumEntries) VALUES (NEW.containerUid, NEW.cntLocalCsn, NEW.cntMasterCsn, NEW.cntLastModBy, NEW.cntLct, NEW.fileSize, NEW.containerContentEntryUid, NEW.cntLastModified, NEW.mimeType, NEW.remarks, NEW.mobileOptimized, NEW.cntNumEntries) ON CONFLICT (containerUid) DO UPDATE SET cntLocalCsn = EXCLUDED.cntLocalCsn, cntMasterCsn = EXCLUDED.cntMasterCsn, cntLastModBy = EXCLUDED.cntLastModBy, cntLct = EXCLUDED.cntLct, fileSize = EXCLUDED.fileSize, containerContentEntryUid = EXCLUDED.containerContentEntryUid, cntLastModified = EXCLUDED.cntLastModified, mimeType = EXCLUDED.mimeType, remarks = EXCLUDED.remarks, mobileOptimized = EXCLUDED.mobileOptimized, cntNumEntries = EXCLUDED.cntNumEntries ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER container_remote_insert_trig INSTEAD OF INSERT ON Container_ReceiveView FOR EACH ROW EXECUTE PROCEDURE container_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS VerbEntityReplicate ( vePk BIGINT NOT NULL, veVersionId BIGINT NOT NULL DEFAULT 0, veDestination BIGINT NOT NULL, vePending BOOL NOT NULL DEFAULT true, PRIMARY KEY (vePk, veDestination)) "),e.add_11rb$(" CREATE INDEX index_VerbEntityReplicate_vePk_veDestination_veVersionId ON VerbEntityReplicate (vePk, veDestination, veVersionId) "),e.add_11rb$(" CREATE INDEX index_VerbEntityReplicate_veDestination_vePending ON VerbEntityReplicate (veDestination, vePending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_62_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (62, NEW.verbUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_62_trig AFTER UPDATE OR INSERT ON VerbEntity FOR EACH ROW EXECUTE PROCEDURE ch_upd_62_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_62_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (62, OLD.verbUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_62_trig AFTER DELETE ON VerbEntity FOR EACH ROW EXECUTE PROCEDURE ch_del_62_fn(); "),e.add_11rb$("CREATE VIEW VerbEntity_ReceiveView AS SELECT VerbEntity.*, VerbEntityReplicate.* FROM VerbEntity LEFT JOIN VerbEntityReplicate ON VerbEntityReplicate.vePk = VerbEntity.verbUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION verbentity_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO VerbEntity(verbUid, urlId, verbInActive, verbMasterChangeSeqNum, verbLocalChangeSeqNum, verbLastChangedBy, verbLct) VALUES (NEW.verbUid, NEW.urlId, NEW.verbInActive, NEW.verbMasterChangeSeqNum, NEW.verbLocalChangeSeqNum, NEW.verbLastChangedBy, NEW.verbLct) ON CONFLICT (verbUid) DO UPDATE SET urlId = EXCLUDED.urlId, verbInActive = EXCLUDED.verbInActive, verbMasterChangeSeqNum = EXCLUDED.verbMasterChangeSeqNum, verbLocalChangeSeqNum = EXCLUDED.verbLocalChangeSeqNum, verbLastChangedBy = EXCLUDED.verbLastChangedBy, verbLct = EXCLUDED.verbLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER verbentity_remote_insert_trig INSTEAD OF INSERT ON VerbEntity_ReceiveView FOR EACH ROW EXECUTE PROCEDURE verbentity_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS XObjectEntityReplicate ( xoePk BIGINT NOT NULL, xoeVersionId BIGINT NOT NULL DEFAULT 0, xoeDestination BIGINT NOT NULL, xoePending BOOL NOT NULL DEFAULT true, PRIMARY KEY (xoePk, xoeDestination)) "),e.add_11rb$(" CREATE INDEX index_XObjectEntityReplicate_xoePk_xoeDestination_xoeVersionId ON XObjectEntityReplicate (xoePk, xoeDestination, xoeVersionId) "),e.add_11rb$(" CREATE INDEX index_XObjectEntityReplicate_xoeDestination_xoePending ON XObjectEntityReplicate (xoeDestination, xoePending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_64_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (64, NEW.xObjectUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_64_trig AFTER UPDATE OR INSERT ON XObjectEntity FOR EACH ROW EXECUTE PROCEDURE ch_upd_64_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_64_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (64, OLD.xObjectUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_64_trig AFTER DELETE ON XObjectEntity FOR EACH ROW EXECUTE PROCEDURE ch_del_64_fn(); "),e.add_11rb$("CREATE VIEW XObjectEntity_ReceiveView AS SELECT XObjectEntity.*, XObjectEntityReplicate.* FROM XObjectEntity LEFT JOIN XObjectEntityReplicate ON XObjectEntityReplicate.xoePk = XObjectEntity.xObjectUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION xobjectentity_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO XObjectEntity(xObjectUid, objectType, objectId, definitionType, interactionType, correctResponsePattern, objectContentEntryUid, xObjectMasterChangeSeqNum, xObjectocalChangeSeqNum, xObjectLastChangedBy, xObjectLct) VALUES (NEW.xObjectUid, NEW.objectType, NEW.objectId, NEW.definitionType, NEW.interactionType, NEW.correctResponsePattern, NEW.objectContentEntryUid, NEW.xObjectMasterChangeSeqNum, NEW.xObjectocalChangeSeqNum, NEW.xObjectLastChangedBy, NEW.xObjectLct) ON CONFLICT (xObjectUid) DO UPDATE SET objectType = EXCLUDED.objectType, objectId = EXCLUDED.objectId, definitionType = EXCLUDED.definitionType, interactionType = EXCLUDED.interactionType, correctResponsePattern = EXCLUDED.correctResponsePattern, objectContentEntryUid = EXCLUDED.objectContentEntryUid, xObjectMasterChangeSeqNum = EXCLUDED.xObjectMasterChangeSeqNum, xObjectocalChangeSeqNum = EXCLUDED.xObjectocalChangeSeqNum, xObjectLastChangedBy = EXCLUDED.xObjectLastChangedBy, xObjectLct = EXCLUDED.xObjectLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER xobjectentity_remote_insert_trig INSTEAD OF INSERT ON XObjectEntity_ReceiveView FOR EACH ROW EXECUTE PROCEDURE xobjectentity_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS StatementEntityReplicate ( sePk BIGINT NOT NULL, seVersionId BIGINT NOT NULL DEFAULT 0, seDestination BIGINT NOT NULL, sePending BOOL NOT NULL DEFAULT true, PRIMARY KEY (sePk, seDestination)) "),e.add_11rb$(" CREATE INDEX index_StatementEntityReplicate_sePk_seDestination_seVersionId ON StatementEntityReplicate (sePk, seDestination, seVersionId) "),e.add_11rb$(" CREATE INDEX index_StatementEntityReplicate_seDestination_sePending ON StatementEntityReplicate (seDestination, sePending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_60_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (60, NEW.statementUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_60_trig AFTER UPDATE OR INSERT ON StatementEntity FOR EACH ROW EXECUTE PROCEDURE ch_upd_60_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_60_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (60, OLD.statementUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_60_trig AFTER DELETE ON StatementEntity FOR EACH ROW EXECUTE PROCEDURE ch_del_60_fn(); "),e.add_11rb$("CREATE VIEW StatementEntity_ReceiveView AS SELECT StatementEntity.*, StatementEntityReplicate.* FROM StatementEntity LEFT JOIN StatementEntityReplicate ON StatementEntityReplicate.sePk = StatementEntity.statementUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION statemententity_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO StatementEntity(statementUid, statementId, statementPersonUid, statementVerbUid, xObjectUid, subStatementActorUid, substatementVerbUid, subStatementObjectUid, agentUid, instructorUid, authorityUid, teamUid, resultCompletion, resultSuccess, resultScoreScaled, resultScoreRaw, resultScoreMin, resultScoreMax, resultDuration, resultResponse, timestamp, stored, contextRegistration, contextPlatform, contextStatementId, fullStatement, statementMasterChangeSeqNum, statementLocalChangeSeqNum, statementLastChangedBy, statementLct, extensionProgress, contentEntryRoot, statementContentEntryUid, statementLearnerGroupUid, statementClazzUid) VALUES (NEW.statementUid, NEW.statementId, NEW.statementPersonUid, NEW.statementVerbUid, NEW.xObjectUid, NEW.subStatementActorUid, NEW.substatementVerbUid, NEW.subStatementObjectUid, NEW.agentUid, NEW.instructorUid, NEW.authorityUid, NEW.teamUid, NEW.resultCompletion, NEW.resultSuccess, NEW.resultScoreScaled, NEW.resultScoreRaw, NEW.resultScoreMin, NEW.resultScoreMax, NEW.resultDuration, NEW.resultResponse, NEW.timestamp, NEW.stored, NEW.contextRegistration, NEW.contextPlatform, NEW.contextStatementId, NEW.fullStatement, NEW.statementMasterChangeSeqNum, NEW.statementLocalChangeSeqNum, NEW.statementLastChangedBy, NEW.statementLct, NEW.extensionProgress, NEW.contentEntryRoot, NEW.statementContentEntryUid, NEW.statementLearnerGroupUid, NEW.statementClazzUid) ON CONFLICT (statementUid) DO UPDATE SET statementId = EXCLUDED.statementId, statementPersonUid = EXCLUDED.statementPersonUid, statementVerbUid = EXCLUDED.statementVerbUid, xObjectUid = EXCLUDED.xObjectUid, subStatementActorUid = EXCLUDED.subStatementActorUid, substatementVerbUid = EXCLUDED.substatementVerbUid, subStatementObjectUid = EXCLUDED.subStatementObjectUid, agentUid = EXCLUDED.agentUid, instructorUid = EXCLUDED.instructorUid, authorityUid = EXCLUDED.authorityUid, teamUid = EXCLUDED.teamUid, resultCompletion = EXCLUDED.resultCompletion, resultSuccess = EXCLUDED.resultSuccess, resultScoreScaled = EXCLUDED.resultScoreScaled, resultScoreRaw = EXCLUDED.resultScoreRaw, resultScoreMin = EXCLUDED.resultScoreMin, resultScoreMax = EXCLUDED.resultScoreMax, resultDuration = EXCLUDED.resultDuration, resultResponse = EXCLUDED.resultResponse, timestamp = EXCLUDED.timestamp, stored = EXCLUDED.stored, contextRegistration = EXCLUDED.contextRegistration, contextPlatform = EXCLUDED.contextPlatform, contextStatementId = EXCLUDED.contextStatementId, fullStatement = EXCLUDED.fullStatement, statementMasterChangeSeqNum = EXCLUDED.statementMasterChangeSeqNum, statementLocalChangeSeqNum = EXCLUDED.statementLocalChangeSeqNum, statementLastChangedBy = EXCLUDED.statementLastChangedBy, statementLct = EXCLUDED.statementLct, extensionProgress = EXCLUDED.extensionProgress, contentEntryRoot = EXCLUDED.contentEntryRoot, statementContentEntryUid = EXCLUDED.statementContentEntryUid, statementLearnerGroupUid = EXCLUDED.statementLearnerGroupUid, statementClazzUid = EXCLUDED.statementClazzUid ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER statemententity_remote_insert_trig INSTEAD OF INSERT ON StatementEntity_ReceiveView FOR EACH ROW EXECUTE PROCEDURE statemententity_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ContextXObjectStatementJoinReplicate ( cxosjPk BIGINT NOT NULL, cxosjVersionId BIGINT NOT NULL DEFAULT 0, cxosjDestination BIGINT NOT NULL, cxosjPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (cxosjPk, cxosjDestination)) "),e.add_11rb$(" CREATE INDEX index_ContextXObjectStatementJoinReplicate_cxosjPk_cxosjDestination_cxosjVersionId ON ContextXObjectStatementJoinReplicate (cxosjPk, cxosjDestination, cxosjVersionId) "),e.add_11rb$(" CREATE INDEX index_ContextXObjectStatementJoinReplicate_cxosjDestination_cxosjPending ON ContextXObjectStatementJoinReplicate (cxosjDestination, cxosjPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_66_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (66, NEW.contextXObjectStatementJoinUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_66_trig AFTER UPDATE OR INSERT ON ContextXObjectStatementJoin FOR EACH ROW EXECUTE PROCEDURE ch_upd_66_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_66_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (66, OLD.contextXObjectStatementJoinUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_66_trig AFTER DELETE ON ContextXObjectStatementJoin FOR EACH ROW EXECUTE PROCEDURE ch_del_66_fn(); "),e.add_11rb$("CREATE VIEW ContextXObjectStatementJoin_ReceiveView AS SELECT ContextXObjectStatementJoin.*, ContextXObjectStatementJoinReplicate.* FROM ContextXObjectStatementJoin LEFT JOIN ContextXObjectStatementJoinReplicate ON ContextXObjectStatementJoinReplicate.cxosjPk = ContextXObjectStatementJoin.contextXObjectStatementJoinUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION contextxobjectstatementjoin_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ContextXObjectStatementJoin(contextXObjectStatementJoinUid, contextActivityFlag, contextStatementUid, contextXObjectUid, verbMasterChangeSeqNum, verbLocalChangeSeqNum, verbLastChangedBy, contextXObjectLct) VALUES (NEW.contextXObjectStatementJoinUid, NEW.contextActivityFlag, NEW.contextStatementUid, NEW.contextXObjectUid, NEW.verbMasterChangeSeqNum, NEW.verbLocalChangeSeqNum, NEW.verbLastChangedBy, NEW.contextXObjectLct) ON CONFLICT (contextXObjectStatementJoinUid) DO UPDATE SET contextActivityFlag = EXCLUDED.contextActivityFlag, contextStatementUid = EXCLUDED.contextStatementUid, contextXObjectUid = EXCLUDED.contextXObjectUid, verbMasterChangeSeqNum = EXCLUDED.verbMasterChangeSeqNum, verbLocalChangeSeqNum = EXCLUDED.verbLocalChangeSeqNum, verbLastChangedBy = EXCLUDED.verbLastChangedBy, contextXObjectLct = EXCLUDED.contextXObjectLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER contextxobjectstatementjoin_remote_insert_trig INSTEAD OF INSERT ON ContextXObjectStatementJoin_ReceiveView FOR EACH ROW EXECUTE PROCEDURE contextxobjectstatementjoin_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS AgentEntityReplicate ( aePk BIGINT NOT NULL, aeVersionId BIGINT NOT NULL DEFAULT 0, aeDestination BIGINT NOT NULL, aePending BOOL NOT NULL DEFAULT true, PRIMARY KEY (aePk, aeDestination)) "),e.add_11rb$(" CREATE INDEX index_AgentEntityReplicate_aePk_aeDestination_aeVersionId ON AgentEntityReplicate (aePk, aeDestination, aeVersionId) "),e.add_11rb$(" CREATE INDEX index_AgentEntityReplicate_aeDestination_aePending ON AgentEntityReplicate (aeDestination, aePending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_68_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (68, NEW.agentUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_68_trig AFTER UPDATE OR INSERT ON AgentEntity FOR EACH ROW EXECUTE PROCEDURE ch_upd_68_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_68_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (68, OLD.agentUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_68_trig AFTER DELETE ON AgentEntity FOR EACH ROW EXECUTE PROCEDURE ch_del_68_fn(); "),e.add_11rb$("CREATE VIEW AgentEntity_ReceiveView AS SELECT AgentEntity.*, AgentEntityReplicate.* FROM AgentEntity LEFT JOIN AgentEntityReplicate ON AgentEntityReplicate.aePk = AgentEntity.agentUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION agententity_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO AgentEntity(agentUid, agentMbox, agentMbox_sha1sum, agentOpenid, agentAccountName, agentHomePage, agentPersonUid, statementMasterChangeSeqNum, statementLocalChangeSeqNum, statementLastChangedBy, agentLct) VALUES (NEW.agentUid, NEW.agentMbox, NEW.agentMbox_sha1sum, NEW.agentOpenid, NEW.agentAccountName, NEW.agentHomePage, NEW.agentPersonUid, NEW.statementMasterChangeSeqNum, NEW.statementLocalChangeSeqNum, NEW.statementLastChangedBy, NEW.agentLct) ON CONFLICT (agentUid) DO UPDATE SET agentMbox = EXCLUDED.agentMbox, agentMbox_sha1sum = EXCLUDED.agentMbox_sha1sum, agentOpenid = EXCLUDED.agentOpenid, agentAccountName = EXCLUDED.agentAccountName, agentHomePage = EXCLUDED.agentHomePage, agentPersonUid = EXCLUDED.agentPersonUid, statementMasterChangeSeqNum = EXCLUDED.statementMasterChangeSeqNum, statementLocalChangeSeqNum = EXCLUDED.statementLocalChangeSeqNum, statementLastChangedBy = EXCLUDED.statementLastChangedBy, agentLct = EXCLUDED.agentLct; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER agententity_remote_insert_trig INSTEAD OF INSERT ON AgentEntity_ReceiveView FOR EACH ROW EXECUTE PROCEDURE agententity_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS StateEntityReplicate ( sePk BIGINT NOT NULL, seVersionId BIGINT NOT NULL DEFAULT 0, seDestination BIGINT NOT NULL, sePending BOOL NOT NULL DEFAULT true, PRIMARY KEY (sePk, seDestination)) "),e.add_11rb$(" CREATE INDEX index_StateEntityReplicate_sePk_seDestination_seVersionId ON StateEntityReplicate (sePk, seDestination, seVersionId) "),e.add_11rb$(" CREATE INDEX index_StateEntityReplicate_seDestination_sePending ON StateEntityReplicate (seDestination, sePending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_70_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (70, NEW.stateUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_70_trig AFTER UPDATE OR INSERT ON StateEntity FOR EACH ROW EXECUTE PROCEDURE ch_upd_70_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_70_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (70, OLD.stateUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_70_trig AFTER DELETE ON StateEntity FOR EACH ROW EXECUTE PROCEDURE ch_del_70_fn(); "),e.add_11rb$("CREATE VIEW StateEntity_ReceiveView AS SELECT StateEntity.*, StateEntityReplicate.* FROM StateEntity LEFT JOIN StateEntityReplicate ON StateEntityReplicate.sePk = StateEntity.stateUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION stateentity_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO StateEntity(stateUid, stateId, agentUid, activityId, registration, isIsactive, timestamp, stateMasterChangeSeqNum, stateLocalChangeSeqNum, stateLastChangedBy, stateLct) VALUES (NEW.stateUid, NEW.stateId, NEW.agentUid, NEW.activityId, NEW.registration, NEW.isIsactive, NEW.timestamp, NEW.stateMasterChangeSeqNum, NEW.stateLocalChangeSeqNum, NEW.stateLastChangedBy, NEW.stateLct) ON CONFLICT (stateUid) DO UPDATE SET stateId = EXCLUDED.stateId, agentUid = EXCLUDED.agentUid, activityId = EXCLUDED.activityId, registration = EXCLUDED.registration, isIsactive = EXCLUDED.isIsactive, timestamp = EXCLUDED.timestamp, stateMasterChangeSeqNum = EXCLUDED.stateMasterChangeSeqNum, stateLocalChangeSeqNum = EXCLUDED.stateLocalChangeSeqNum, stateLastChangedBy = EXCLUDED.stateLastChangedBy, stateLct = EXCLUDED.stateLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER stateentity_remote_insert_trig INSTEAD OF INSERT ON StateEntity_ReceiveView FOR EACH ROW EXECUTE PROCEDURE stateentity_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS StateContentEntityReplicate ( scePk BIGINT NOT NULL, sceVersionId BIGINT NOT NULL DEFAULT 0, sceDestination BIGINT NOT NULL, scePending BOOL NOT NULL DEFAULT true, PRIMARY KEY (scePk, sceDestination)) "),e.add_11rb$(" CREATE INDEX index_StateContentEntityReplicate_scePk_sceDestination_sceVersionId ON StateContentEntityReplicate (scePk, sceDestination, sceVersionId) "),e.add_11rb$(" CREATE INDEX index_StateContentEntityReplicate_sceDestination_scePending ON StateContentEntityReplicate (sceDestination, scePending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_72_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (72, NEW.stateContentUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_72_trig AFTER UPDATE OR INSERT ON StateContentEntity FOR EACH ROW EXECUTE PROCEDURE ch_upd_72_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_72_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (72, OLD.stateContentUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_72_trig AFTER DELETE ON StateContentEntity FOR EACH ROW EXECUTE PROCEDURE ch_del_72_fn(); "),e.add_11rb$("CREATE VIEW StateContentEntity_ReceiveView AS SELECT StateContentEntity.*, StateContentEntityReplicate.* FROM StateContentEntity LEFT JOIN StateContentEntityReplicate ON StateContentEntityReplicate.scePk = StateContentEntity.stateContentUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION statecontententity_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO StateContentEntity(stateContentUid, stateContentStateUid, stateContentKey, stateContentValue, isIsactive, stateContentMasterChangeSeqNum, stateContentLocalChangeSeqNum, stateContentLastChangedBy, stateContentLct) VALUES (NEW.stateContentUid, NEW.stateContentStateUid, NEW.stateContentKey, NEW.stateContentValue, NEW.isIsactive, NEW.stateContentMasterChangeSeqNum, NEW.stateContentLocalChangeSeqNum, NEW.stateContentLastChangedBy, NEW.stateContentLct) ON CONFLICT (stateContentUid) DO UPDATE SET stateContentStateUid = EXCLUDED.stateContentStateUid, stateContentKey = EXCLUDED.stateContentKey, stateContentValue = EXCLUDED.stateContentValue, isIsactive = EXCLUDED.isIsactive, stateContentMasterChangeSeqNum = EXCLUDED.stateContentMasterChangeSeqNum, stateContentLocalChangeSeqNum = EXCLUDED.stateContentLocalChangeSeqNum, stateContentLastChangedBy = EXCLUDED.stateContentLastChangedBy, stateContentLct = EXCLUDED.stateContentLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER statecontententity_remote_insert_trig INSTEAD OF INSERT ON StateContentEntity_ReceiveView FOR EACH ROW EXECUTE PROCEDURE statecontententity_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS XLangMapEntryReplicate ( xlmePk BIGINT NOT NULL, xlmeVersionId BIGINT NOT NULL DEFAULT 0, xlmeDestination BIGINT NOT NULL, xlmePending BOOL NOT NULL DEFAULT true, PRIMARY KEY (xlmePk, xlmeDestination)) "),e.add_11rb$(" CREATE INDEX index_XLangMapEntryReplicate_xlmePk_xlmeDestination_xlmeVersionId ON XLangMapEntryReplicate (xlmePk, xlmeDestination, xlmeVersionId) "),e.add_11rb$(" CREATE INDEX index_XLangMapEntryReplicate_xlmeDestination_xlmePending ON XLangMapEntryReplicate (xlmeDestination, xlmePending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_74_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (74, NEW.statementLangMapUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_74_trig AFTER UPDATE OR INSERT ON XLangMapEntry FOR EACH ROW EXECUTE PROCEDURE ch_upd_74_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_74_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (74, OLD.statementLangMapUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_74_trig AFTER DELETE ON XLangMapEntry FOR EACH ROW EXECUTE PROCEDURE ch_del_74_fn(); "),e.add_11rb$("CREATE VIEW XLangMapEntry_ReceiveView AS SELECT XLangMapEntry.*, XLangMapEntryReplicate.* FROM XLangMapEntry LEFT JOIN XLangMapEntryReplicate ON XLangMapEntryReplicate.xlmePk = XLangMapEntry.statementLangMapUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION xlangmapentry_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO XLangMapEntry(verbLangMapUid, objectLangMapUid, languageLangMapUid, languageVariantLangMapUid, valueLangMap, statementLangMapMasterCsn, statementLangMapLocalCsn, statementLangMapLcb, statementLangMapLct, statementLangMapUid) VALUES (NEW.verbLangMapUid, NEW.objectLangMapUid, NEW.languageLangMapUid, NEW.languageVariantLangMapUid, NEW.valueLangMap, NEW.statementLangMapMasterCsn, NEW.statementLangMapLocalCsn, NEW.statementLangMapLcb, NEW.statementLangMapLct, NEW.statementLangMapUid) ON CONFLICT (statementLangMapUid) DO UPDATE SET verbLangMapUid = EXCLUDED.verbLangMapUid, objectLangMapUid = EXCLUDED.objectLangMapUid, languageLangMapUid = EXCLUDED.languageLangMapUid, languageVariantLangMapUid = EXCLUDED.languageVariantLangMapUid, valueLangMap = EXCLUDED.valueLangMap, statementLangMapMasterCsn = EXCLUDED.statementLangMapMasterCsn, statementLangMapLocalCsn = EXCLUDED.statementLangMapLocalCsn, statementLangMapLcb = EXCLUDED.statementLangMapLcb, statementLangMapLct = EXCLUDED.statementLangMapLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER xlangmapentry_remote_insert_trig INSTEAD OF INSERT ON XLangMapEntry_ReceiveView FOR EACH ROW EXECUTE PROCEDURE xlangmapentry_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS SchoolReplicate ( schoolPk BIGINT NOT NULL, schoolVersionId BIGINT NOT NULL DEFAULT 0, schoolDestination BIGINT NOT NULL, schoolPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (schoolPk, schoolDestination)) "),e.add_11rb$(" CREATE INDEX index_SchoolReplicate_schoolPk_schoolDestination_schoolVersionId ON SchoolReplicate (schoolPk, schoolDestination, schoolVersionId) "),e.add_11rb$(" CREATE INDEX index_SchoolReplicate_schoolDestination_schoolPending ON SchoolReplicate (schoolDestination, schoolPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_164_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (164, NEW.schoolUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_164_trig AFTER UPDATE OR INSERT ON School FOR EACH ROW EXECUTE PROCEDURE ch_upd_164_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_164_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (164, OLD.schoolUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_164_trig AFTER DELETE ON School FOR EACH ROW EXECUTE PROCEDURE ch_del_164_fn(); "),e.add_11rb$("CREATE VIEW School_ReceiveView AS SELECT School.*, SchoolReplicate.* FROM School LEFT JOIN SchoolReplicate ON SchoolReplicate.schoolPk = School.schoolUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION school_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO School(schoolUid, schoolName, schoolDesc, schoolAddress, schoolActive, schoolPhoneNumber, schoolGender, schoolHolidayCalendarUid, schoolFeatures, schoolLocationLong, schoolLocationLatt, schoolEmailAddress, schoolTeachersPersonGroupUid, schoolStudentsPersonGroupUid, schoolPendingStudentsPersonGroupUid, schoolCode, schoolMasterChangeSeqNum, schoolLocalChangeSeqNum, schoolLastChangedBy, schoolLct, schoolTimeZone) VALUES (NEW.schoolUid, NEW.schoolName, NEW.schoolDesc, NEW.schoolAddress, NEW.schoolActive, NEW.schoolPhoneNumber, NEW.schoolGender, NEW.schoolHolidayCalendarUid, NEW.schoolFeatures, NEW.schoolLocationLong, NEW.schoolLocationLatt, NEW.schoolEmailAddress, NEW.schoolTeachersPersonGroupUid, NEW.schoolStudentsPersonGroupUid, NEW.schoolPendingStudentsPersonGroupUid, NEW.schoolCode, NEW.schoolMasterChangeSeqNum, NEW.schoolLocalChangeSeqNum, NEW.schoolLastChangedBy, NEW.schoolLct, NEW.schoolTimeZone) ON CONFLICT (schoolUid) DO UPDATE SET schoolName = EXCLUDED.schoolName, schoolDesc = EXCLUDED.schoolDesc, schoolAddress = EXCLUDED.schoolAddress, schoolActive = EXCLUDED.schoolActive, schoolPhoneNumber = EXCLUDED.schoolPhoneNumber, schoolGender = EXCLUDED.schoolGender, schoolHolidayCalendarUid = EXCLUDED.schoolHolidayCalendarUid, schoolFeatures = EXCLUDED.schoolFeatures, schoolLocationLong = EXCLUDED.schoolLocationLong, schoolLocationLatt = EXCLUDED.schoolLocationLatt, schoolEmailAddress = EXCLUDED.schoolEmailAddress, schoolTeachersPersonGroupUid = EXCLUDED.schoolTeachersPersonGroupUid, schoolStudentsPersonGroupUid = EXCLUDED.schoolStudentsPersonGroupUid, schoolPendingStudentsPersonGroupUid = EXCLUDED.schoolPendingStudentsPersonGroupUid, schoolCode = EXCLUDED.schoolCode, schoolMasterChangeSeqNum = EXCLUDED.schoolMasterChangeSeqNum, schoolLocalChangeSeqNum = EXCLUDED.schoolLocalChangeSeqNum, schoolLastChangedBy = EXCLUDED.schoolLastChangedBy, schoolLct = EXCLUDED.schoolLct, schoolTimeZone = EXCLUDED.schoolTimeZone ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER school_remote_insert_trig INSTEAD OF INSERT ON School_ReceiveView FOR EACH ROW EXECUTE PROCEDURE school_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS SchoolMemberReplicate ( smPk BIGINT NOT NULL, smVersionId BIGINT NOT NULL DEFAULT 0, smDestination BIGINT NOT NULL, smPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (smPk, smDestination)) "),e.add_11rb$(" CREATE INDEX index_SchoolMemberReplicate_smPk_smDestination_smVersionId ON SchoolMemberReplicate (smPk, smDestination, smVersionId) "),e.add_11rb$(" CREATE INDEX index_SchoolMemberReplicate_smDestination_smPending ON SchoolMemberReplicate (smDestination, smPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_200_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (200, NEW.schoolMemberUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_200_trig AFTER UPDATE OR INSERT ON SchoolMember FOR EACH ROW EXECUTE PROCEDURE ch_upd_200_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_200_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (200, OLD.schoolMemberUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_200_trig AFTER DELETE ON SchoolMember FOR EACH ROW EXECUTE PROCEDURE ch_del_200_fn(); "),e.add_11rb$("CREATE VIEW SchoolMember_ReceiveView AS SELECT SchoolMember.*, SchoolMemberReplicate.* FROM SchoolMember LEFT JOIN SchoolMemberReplicate ON SchoolMemberReplicate.smPk = SchoolMember.schoolMemberUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION schoolmember_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO SchoolMember(schoolMemberUid, schoolMemberPersonUid, schoolMemberSchoolUid, schoolMemberJoinDate, schoolMemberLeftDate, schoolMemberRole, schoolMemberActive, schoolMemberLocalChangeSeqNum, schoolMemberMasterChangeSeqNum, schoolMemberLastChangedBy, schoolMemberLct) VALUES (NEW.schoolMemberUid, NEW.schoolMemberPersonUid, NEW.schoolMemberSchoolUid, NEW.schoolMemberJoinDate, NEW.schoolMemberLeftDate, NEW.schoolMemberRole, NEW.schoolMemberActive, NEW.schoolMemberLocalChangeSeqNum, NEW.schoolMemberMasterChangeSeqNum, NEW.schoolMemberLastChangedBy, NEW.schoolMemberLct) ON CONFLICT (schoolMemberUid) DO UPDATE SET schoolMemberPersonUid = EXCLUDED.schoolMemberPersonUid, schoolMemberSchoolUid = EXCLUDED.schoolMemberSchoolUid, schoolMemberJoinDate = EXCLUDED.schoolMemberJoinDate, schoolMemberLeftDate = EXCLUDED.schoolMemberLeftDate, schoolMemberRole = EXCLUDED.schoolMemberRole, schoolMemberActive = EXCLUDED.schoolMemberActive, schoolMemberLocalChangeSeqNum = EXCLUDED.schoolMemberLocalChangeSeqNum, schoolMemberMasterChangeSeqNum = EXCLUDED.schoolMemberMasterChangeSeqNum, schoolMemberLastChangedBy = EXCLUDED.schoolMemberLastChangedBy, schoolMemberLct = EXCLUDED.schoolMemberLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER schoolmember_remote_insert_trig INSTEAD OF INSERT ON SchoolMember_ReceiveView FOR EACH ROW EXECUTE PROCEDURE schoolmember_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS CommentsReplicate ( commentsPk BIGINT NOT NULL, commentsVersionId BIGINT NOT NULL DEFAULT 0, commentsDestination BIGINT NOT NULL, commentsPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (commentsPk, commentsDestination)) "),e.add_11rb$(" CREATE INDEX index_CommentsReplicate_commentsPk_commentsDestination_commentsVersionId ON CommentsReplicate (commentsPk, commentsDestination, commentsVersionId) "),e.add_11rb$(" CREATE INDEX index_CommentsReplicate_commentsDestination_commentsPending ON CommentsReplicate (commentsDestination, commentsPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_208_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (208, NEW.commentsUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_208_trig AFTER UPDATE OR INSERT ON Comments FOR EACH ROW EXECUTE PROCEDURE ch_upd_208_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_208_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (208, OLD.commentsUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_208_trig AFTER DELETE ON Comments FOR EACH ROW EXECUTE PROCEDURE ch_del_208_fn(); "),e.add_11rb$("CREATE VIEW Comments_ReceiveView AS SELECT Comments.*, CommentsReplicate.* FROM Comments LEFT JOIN CommentsReplicate ON CommentsReplicate.commentsPk = Comments.commentsUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION comments_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO Comments(commentsUid, commentsText, commentsEntityType, commentsEntityUid, commentsPublic, commentsStatus, commentsPersonUid, commentsToPersonUid, commentsFlagged, commentsInActive, commentsDateTimeAdded, commentsDateTimeUpdated, commentsMCSN, commentsLCSN, commentsLCB, commentsLct) VALUES (NEW.commentsUid, NEW.commentsText, NEW.commentsEntityType, NEW.commentsEntityUid, NEW.commentsPublic, NEW.commentsStatus, NEW.commentsPersonUid, NEW.commentsToPersonUid, NEW.commentsFlagged, NEW.commentsInActive, NEW.commentsDateTimeAdded, NEW.commentsDateTimeUpdated, NEW.commentsMCSN, NEW.commentsLCSN, NEW.commentsLCB, NEW.commentsLct) ON CONFLICT (commentsUid) DO UPDATE SET commentsText = EXCLUDED.commentsText, commentsEntityType = EXCLUDED.commentsEntityType, commentsEntityUid = EXCLUDED.commentsEntityUid, commentsPublic = EXCLUDED.commentsPublic, commentsStatus = EXCLUDED.commentsStatus, commentsPersonUid = EXCLUDED.commentsPersonUid, commentsToPersonUid = EXCLUDED.commentsToPersonUid, commentsFlagged = EXCLUDED.commentsFlagged, commentsInActive = EXCLUDED.commentsInActive, commentsDateTimeAdded = EXCLUDED.commentsDateTimeAdded, commentsDateTimeUpdated = EXCLUDED.commentsDateTimeUpdated, commentsMCSN = EXCLUDED.commentsMCSN, commentsLCSN = EXCLUDED.commentsLCSN, commentsLCB = EXCLUDED.commentsLCB, commentsLct = EXCLUDED.commentsLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER comments_remote_insert_trig INSTEAD OF INSERT ON Comments_ReceiveView FOR EACH ROW EXECUTE PROCEDURE comments_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ReportReplicate ( reportPk BIGINT NOT NULL, reportVersionId BIGINT NOT NULL DEFAULT 0, reportDestination BIGINT NOT NULL, reportPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (reportPk, reportDestination)) "),e.add_11rb$(" CREATE INDEX index_ReportReplicate_reportPk_reportDestination_reportVersionId ON ReportReplicate (reportPk, reportDestination, reportVersionId) "),e.add_11rb$(" CREATE INDEX index_ReportReplicate_reportDestination_reportPending ON ReportReplicate (reportDestination, reportPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_101_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (101, NEW.reportUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_101_trig AFTER UPDATE OR INSERT ON Report FOR EACH ROW EXECUTE PROCEDURE ch_upd_101_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_101_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (101, OLD.reportUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_101_trig AFTER DELETE ON Report FOR EACH ROW EXECUTE PROCEDURE ch_del_101_fn(); "),e.add_11rb$("CREATE VIEW Report_ReceiveView AS SELECT Report.*, ReportReplicate.* FROM Report LEFT JOIN ReportReplicate ON ReportReplicate.reportPk = Report.reportUid "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS SiteReplicate ( sitePk BIGINT NOT NULL, siteVersionId BIGINT NOT NULL DEFAULT 0, siteDestination BIGINT NOT NULL, sitePending BOOL NOT NULL DEFAULT true, PRIMARY KEY (sitePk, siteDestination)) "),e.add_11rb$(" CREATE INDEX index_SiteReplicate_sitePk_siteDestination_siteVersionId ON SiteReplicate (sitePk, siteDestination, siteVersionId) "),e.add_11rb$(" CREATE INDEX index_SiteReplicate_siteDestination_sitePending ON SiteReplicate (siteDestination, sitePending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_189_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (189, NEW.siteUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_189_trig AFTER UPDATE OR INSERT ON Site FOR EACH ROW EXECUTE PROCEDURE ch_upd_189_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_189_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (189, OLD.siteUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_189_trig AFTER DELETE ON Site FOR EACH ROW EXECUTE PROCEDURE ch_del_189_fn(); "),e.add_11rb$("CREATE VIEW Site_ReceiveView AS SELECT Site.*, SiteReplicate.* FROM Site LEFT JOIN SiteReplicate ON SiteReplicate.sitePk = Site.siteUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION site_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO Site(siteUid, sitePcsn, siteLcsn, siteLcb, siteLct, siteName, guestLogin, registrationAllowed, authSalt) VALUES (NEW.siteUid, NEW.sitePcsn, NEW.siteLcsn, NEW.siteLcb, NEW.siteLct, NEW.siteName, NEW.guestLogin, NEW.registrationAllowed, NEW.authSalt) ON CONFLICT (siteUid) DO UPDATE SET sitePcsn = EXCLUDED.sitePcsn, siteLcsn = EXCLUDED.siteLcsn, siteLcb = EXCLUDED.siteLcb, siteLct = EXCLUDED.siteLct, siteName = EXCLUDED.siteName, guestLogin = EXCLUDED.guestLogin, registrationAllowed = EXCLUDED.registrationAllowed, authSalt = EXCLUDED.authSalt; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER site_remote_insert_trig INSTEAD OF INSERT ON Site_ReceiveView FOR EACH ROW EXECUTE PROCEDURE site_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS LearnerGroupReplicate ( lgPk BIGINT NOT NULL, lgVersionId BIGINT NOT NULL DEFAULT 0, lgDestination BIGINT NOT NULL, lgPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (lgPk, lgDestination)) "),e.add_11rb$(" CREATE INDEX index_LearnerGroupReplicate_lgPk_lgDestination_lgVersionId ON LearnerGroupReplicate (lgPk, lgDestination, lgVersionId) "),e.add_11rb$(" CREATE INDEX index_LearnerGroupReplicate_lgDestination_lgPending ON LearnerGroupReplicate (lgDestination, lgPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_301_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (301, NEW.learnerGroupUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_301_trig AFTER UPDATE OR INSERT ON LearnerGroup FOR EACH ROW EXECUTE PROCEDURE ch_upd_301_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_301_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (301, OLD.learnerGroupUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_301_trig AFTER DELETE ON LearnerGroup FOR EACH ROW EXECUTE PROCEDURE ch_del_301_fn(); "),e.add_11rb$("CREATE VIEW LearnerGroup_ReceiveView AS SELECT LearnerGroup.*, LearnerGroupReplicate.* FROM LearnerGroup LEFT JOIN LearnerGroupReplicate ON LearnerGroupReplicate.lgPk = LearnerGroup.learnerGroupUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION learnergroup_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO LearnerGroup(learnerGroupUid, learnerGroupName, learnerGroupDescription, learnerGroupActive, learnerGroupMCSN, learnerGroupCSN, learnerGroupLCB, learnerGroupLct) VALUES (NEW.learnerGroupUid, NEW.learnerGroupName, NEW.learnerGroupDescription, NEW.learnerGroupActive, NEW.learnerGroupMCSN, NEW.learnerGroupCSN, NEW.learnerGroupLCB, NEW.learnerGroupLct) ON CONFLICT (learnerGroupUid) DO UPDATE SET learnerGroupName = EXCLUDED.learnerGroupName, learnerGroupDescription = EXCLUDED.learnerGroupDescription, learnerGroupActive = EXCLUDED.learnerGroupActive, learnerGroupMCSN = EXCLUDED.learnerGroupMCSN, learnerGroupCSN = EXCLUDED.learnerGroupCSN, learnerGroupLCB = EXCLUDED.learnerGroupLCB, learnerGroupLct = EXCLUDED.learnerGroupLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER learnergroup_remote_insert_trig INSTEAD OF INSERT ON LearnerGroup_ReceiveView FOR EACH ROW EXECUTE PROCEDURE learnergroup_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS LearnerGroupMemberReplicate ( lgmPk BIGINT NOT NULL, lgmVersionId BIGINT NOT NULL DEFAULT 0, lgmDestination BIGINT NOT NULL, lgmPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (lgmPk, lgmDestination)) "),e.add_11rb$(" CREATE INDEX index_LearnerGroupMemberReplicate_lgmPk_lgmDestination_lgmVersionId ON LearnerGroupMemberReplicate (lgmPk, lgmDestination, lgmVersionId) "),e.add_11rb$(" CREATE INDEX index_LearnerGroupMemberReplicate_lgmDestination_lgmPending ON LearnerGroupMemberReplicate (lgmDestination, lgmPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_300_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (300, NEW.learnerGroupMemberUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_300_trig AFTER UPDATE OR INSERT ON LearnerGroupMember FOR EACH ROW EXECUTE PROCEDURE ch_upd_300_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_300_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (300, OLD.learnerGroupMemberUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_300_trig AFTER DELETE ON LearnerGroupMember FOR EACH ROW EXECUTE PROCEDURE ch_del_300_fn(); "),e.add_11rb$("CREATE VIEW LearnerGroupMember_ReceiveView AS SELECT LearnerGroupMember.*, LearnerGroupMemberReplicate.* FROM LearnerGroupMember LEFT JOIN LearnerGroupMemberReplicate ON LearnerGroupMemberReplicate.lgmPk = LearnerGroupMember.learnerGroupMemberUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION learnergroupmember_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO LearnerGroupMember(learnerGroupMemberUid, learnerGroupMemberPersonUid, learnerGroupMemberLgUid, learnerGroupMemberRole, learnerGroupMemberActive, learnerGroupMemberMCSN, learnerGroupMemberCSN, learnerGroupMemberLCB, learnerGroupMemberLct) VALUES (NEW.learnerGroupMemberUid, NEW.learnerGroupMemberPersonUid, NEW.learnerGroupMemberLgUid, NEW.learnerGroupMemberRole, NEW.learnerGroupMemberActive, NEW.learnerGroupMemberMCSN, NEW.learnerGroupMemberCSN, NEW.learnerGroupMemberLCB, NEW.learnerGroupMemberLct) ON CONFLICT (learnerGroupMemberUid) DO UPDATE SET learnerGroupMemberPersonUid = EXCLUDED.learnerGroupMemberPersonUid, learnerGroupMemberLgUid = EXCLUDED.learnerGroupMemberLgUid, learnerGroupMemberRole = EXCLUDED.learnerGroupMemberRole, learnerGroupMemberActive = EXCLUDED.learnerGroupMemberActive, learnerGroupMemberMCSN = EXCLUDED.learnerGroupMemberMCSN, learnerGroupMemberCSN = EXCLUDED.learnerGroupMemberCSN, learnerGroupMemberLCB = EXCLUDED.learnerGroupMemberLCB, learnerGroupMemberLct = EXCLUDED.learnerGroupMemberLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER learnergroupmember_remote_insert_trig INSTEAD OF INSERT ON LearnerGroupMember_ReceiveView FOR EACH ROW EXECUTE PROCEDURE learnergroupmember_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS GroupLearningSessionReplicate ( glsPk BIGINT NOT NULL, glsVersionId BIGINT NOT NULL DEFAULT 0, glsDestination BIGINT NOT NULL, glsPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (glsPk, glsDestination)) "),e.add_11rb$(" CREATE INDEX index_GroupLearningSessionReplicate_glsPk_glsDestination_glsVersionId ON GroupLearningSessionReplicate (glsPk, glsDestination, glsVersionId) "),e.add_11rb$(" CREATE INDEX index_GroupLearningSessionReplicate_glsDestination_glsPending ON GroupLearningSessionReplicate (glsDestination, glsPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_302_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (302, NEW.groupLearningSessionUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_302_trig AFTER UPDATE OR INSERT ON GroupLearningSession FOR EACH ROW EXECUTE PROCEDURE ch_upd_302_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_302_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (302, OLD.groupLearningSessionUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_302_trig AFTER DELETE ON GroupLearningSession FOR EACH ROW EXECUTE PROCEDURE ch_del_302_fn(); "),e.add_11rb$("CREATE VIEW GroupLearningSession_ReceiveView AS SELECT GroupLearningSession.*, GroupLearningSessionReplicate.* FROM GroupLearningSession LEFT JOIN GroupLearningSessionReplicate ON GroupLearningSessionReplicate.glsPk = GroupLearningSession.groupLearningSessionUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION grouplearningsession_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO GroupLearningSession(groupLearningSessionUid, groupLearningSessionContentUid, groupLearningSessionLearnerGroupUid, groupLearningSessionInactive, groupLearningSessionMCSN, groupLearningSessionCSN, groupLearningSessionLCB, groupLearningSessionLct) VALUES (NEW.groupLearningSessionUid, NEW.groupLearningSessionContentUid, NEW.groupLearningSessionLearnerGroupUid, NEW.groupLearningSessionInactive, NEW.groupLearningSessionMCSN, NEW.groupLearningSessionCSN, NEW.groupLearningSessionLCB, NEW.groupLearningSessionLct) ON CONFLICT (groupLearningSessionUid) DO UPDATE SET groupLearningSessionContentUid = EXCLUDED.groupLearningSessionContentUid, groupLearningSessionLearnerGroupUid = EXCLUDED.groupLearningSessionLearnerGroupUid, groupLearningSessionInactive = EXCLUDED.groupLearningSessionInactive, groupLearningSessionMCSN = EXCLUDED.groupLearningSessionMCSN, groupLearningSessionCSN = EXCLUDED.groupLearningSessionCSN, groupLearningSessionLCB = EXCLUDED.groupLearningSessionLCB, groupLearningSessionLct = EXCLUDED.groupLearningSessionLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER grouplearningsession_remote_insert_trig INSTEAD OF INSERT ON GroupLearningSession_ReceiveView FOR EACH ROW EXECUTE PROCEDURE grouplearningsession_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS SiteTermsReplicate ( stPk BIGINT NOT NULL, stVersionId BIGINT NOT NULL DEFAULT 0, stDestination BIGINT NOT NULL, stPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (stPk, stDestination)) "),e.add_11rb$(" CREATE INDEX index_SiteTermsReplicate_stPk_stDestination_stVersionId ON SiteTermsReplicate (stPk, stDestination, stVersionId) "),e.add_11rb$(" CREATE INDEX index_SiteTermsReplicate_stDestination_stPending ON SiteTermsReplicate (stDestination, stPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_272_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (272, NEW.sTermsUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_272_trig AFTER UPDATE OR INSERT ON SiteTerms FOR EACH ROW EXECUTE PROCEDURE ch_upd_272_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_272_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (272, OLD.sTermsUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_272_trig AFTER DELETE ON SiteTerms FOR EACH ROW EXECUTE PROCEDURE ch_del_272_fn(); "),e.add_11rb$("CREATE VIEW SiteTerms_ReceiveView AS SELECT SiteTerms.*, SiteTermsReplicate.* FROM SiteTerms LEFT JOIN SiteTermsReplicate ON SiteTermsReplicate.stPk = SiteTerms.sTermsUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION siteterms_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO SiteTerms(sTermsUid, termsHtml, sTermsLang, sTermsLangUid, sTermsActive, sTermsLastChangedBy, sTermsPrimaryCsn, sTermsLocalCsn, sTermsLct) VALUES (NEW.sTermsUid, NEW.termsHtml, NEW.sTermsLang, NEW.sTermsLangUid, NEW.sTermsActive, NEW.sTermsLastChangedBy, NEW.sTermsPrimaryCsn, NEW.sTermsLocalCsn, NEW.sTermsLct) ON CONFLICT (sTermsUid) DO UPDATE SET termsHtml = EXCLUDED.termsHtml, sTermsLang = EXCLUDED.sTermsLang, sTermsLangUid = EXCLUDED.sTermsLangUid, sTermsActive = EXCLUDED.sTermsActive, sTermsLastChangedBy = EXCLUDED.sTermsLastChangedBy, sTermsPrimaryCsn = EXCLUDED.sTermsPrimaryCsn, sTermsLocalCsn = EXCLUDED.sTermsLocalCsn, sTermsLct = EXCLUDED.sTermsLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER siteterms_remote_insert_trig INSTEAD OF INSERT ON SiteTerms_ReceiveView FOR EACH ROW EXECUTE PROCEDURE siteterms_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ClazzContentJoinReplicate ( ccjPk BIGINT NOT NULL, ccjVersionId BIGINT NOT NULL DEFAULT 0, ccjDestination BIGINT NOT NULL, ccjPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (ccjPk, ccjDestination)) "),e.add_11rb$(" CREATE INDEX index_ClazzContentJoinReplicate_ccjPk_ccjDestination_ccjVersionId ON ClazzContentJoinReplicate (ccjPk, ccjDestination, ccjVersionId) "),e.add_11rb$(" CREATE INDEX index_ClazzContentJoinReplicate_ccjDestination_ccjPending ON ClazzContentJoinReplicate (ccjDestination, ccjPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_134_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (134, NEW.ccjUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_134_trig AFTER UPDATE OR INSERT ON ClazzContentJoin FOR EACH ROW EXECUTE PROCEDURE ch_upd_134_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_134_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (134, OLD.ccjUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_134_trig AFTER DELETE ON ClazzContentJoin FOR EACH ROW EXECUTE PROCEDURE ch_del_134_fn(); "),e.add_11rb$("CREATE VIEW ClazzContentJoin_ReceiveView AS SELECT ClazzContentJoin.*, ClazzContentJoinReplicate.* FROM ClazzContentJoin LEFT JOIN ClazzContentJoinReplicate ON ClazzContentJoinReplicate.ccjPk = ClazzContentJoin.ccjUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION clazzcontentjoin_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ClazzContentJoin(ccjUid, ccjContentEntryUid, ccjClazzUid, ccjActive, ccjLocalChangeSeqNum, ccjMasterChangeSeqNum, ccjLastChangedBy, ccjLct) VALUES (NEW.ccjUid, NEW.ccjContentEntryUid, NEW.ccjClazzUid, NEW.ccjActive, NEW.ccjLocalChangeSeqNum, NEW.ccjMasterChangeSeqNum, NEW.ccjLastChangedBy, NEW.ccjLct) ON CONFLICT (ccjUid) DO UPDATE SET ccjContentEntryUid = EXCLUDED.ccjContentEntryUid, ccjClazzUid = EXCLUDED.ccjClazzUid, ccjActive = EXCLUDED.ccjActive, ccjLocalChangeSeqNum = EXCLUDED.ccjLocalChangeSeqNum, ccjMasterChangeSeqNum = EXCLUDED.ccjMasterChangeSeqNum, ccjLastChangedBy = EXCLUDED.ccjLastChangedBy, ccjLct = EXCLUDED.ccjLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER clazzcontentjoin_remote_insert_trig INSTEAD OF INSERT ON ClazzContentJoin_ReceiveView FOR EACH ROW EXECUTE PROCEDURE clazzcontentjoin_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS PersonParentJoinReplicate ( ppjPk BIGINT NOT NULL, ppjVersionId BIGINT NOT NULL DEFAULT 0, ppjDestination BIGINT NOT NULL, ppjPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (ppjPk, ppjDestination)) "),e.add_11rb$(" CREATE INDEX index_PersonParentJoinReplicate_ppjPk_ppjDestination_ppjVersionId ON PersonParentJoinReplicate (ppjPk, ppjDestination, ppjVersionId) "),e.add_11rb$(" CREATE INDEX index_PersonParentJoinReplicate_ppjDestination_ppjPending ON PersonParentJoinReplicate (ppjDestination, ppjPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_512_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (512, NEW.ppjUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_512_trig AFTER UPDATE OR INSERT ON PersonParentJoin FOR EACH ROW EXECUTE PROCEDURE ch_upd_512_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_512_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (512, OLD.ppjUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_512_trig AFTER DELETE ON PersonParentJoin FOR EACH ROW EXECUTE PROCEDURE ch_del_512_fn(); "),e.add_11rb$("CREATE VIEW PersonParentJoin_ReceiveView AS SELECT PersonParentJoin.*, PersonParentJoinReplicate.* FROM PersonParentJoin LEFT JOIN PersonParentJoinReplicate ON PersonParentJoinReplicate.ppjPk = PersonParentJoin.ppjUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION personparentjoin_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO PersonParentJoin(ppjUid, ppjPcsn, ppjLcsn, ppjLcb, ppjLct, ppjParentPersonUid, ppjMinorPersonUid, ppjRelationship, ppjEmail, ppjPhone, ppjInactive, ppjStatus, ppjApprovalTiemstamp, ppjApprovalIpAddr) VALUES (NEW.ppjUid, NEW.ppjPcsn, NEW.ppjLcsn, NEW.ppjLcb, NEW.ppjLct, NEW.ppjParentPersonUid, NEW.ppjMinorPersonUid, NEW.ppjRelationship, NEW.ppjEmail, NEW.ppjPhone, NEW.ppjInactive, NEW.ppjStatus, NEW.ppjApprovalTiemstamp, NEW.ppjApprovalIpAddr) ON CONFLICT (ppjUid) DO UPDATE SET ppjPcsn = EXCLUDED.ppjPcsn, ppjLcsn = EXCLUDED.ppjLcsn, ppjLcb = EXCLUDED.ppjLcb, ppjLct = EXCLUDED.ppjLct, ppjParentPersonUid = EXCLUDED.ppjParentPersonUid, ppjMinorPersonUid = EXCLUDED.ppjMinorPersonUid, ppjRelationship = EXCLUDED.ppjRelationship, ppjEmail = EXCLUDED.ppjEmail, ppjPhone = EXCLUDED.ppjPhone, ppjInactive = EXCLUDED.ppjInactive, ppjStatus = EXCLUDED.ppjStatus, ppjApprovalTiemstamp = EXCLUDED.ppjApprovalTiemstamp, ppjApprovalIpAddr = EXCLUDED.ppjApprovalIpAddr ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER personparentjoin_remote_insert_trig INSTEAD OF INSERT ON PersonParentJoin_ReceiveView FOR EACH ROW EXECUTE PROCEDURE personparentjoin_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ScopedGrantReplicate ( sgPk BIGINT NOT NULL, sgVersionId BIGINT NOT NULL DEFAULT 0, sgDestination BIGINT NOT NULL, sgPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (sgPk, sgDestination)) "),e.add_11rb$(" CREATE INDEX index_ScopedGrantReplicate_sgPk_sgDestination_sgVersionId ON ScopedGrantReplicate (sgPk, sgDestination, sgVersionId) "),e.add_11rb$(" CREATE INDEX index_ScopedGrantReplicate_sgDestination_sgPending ON ScopedGrantReplicate (sgDestination, sgPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_48_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (48, NEW.sgUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_48_trig AFTER UPDATE OR INSERT ON ScopedGrant FOR EACH ROW EXECUTE PROCEDURE ch_upd_48_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_48_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (48, OLD.sgUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_48_trig AFTER DELETE ON ScopedGrant FOR EACH ROW EXECUTE PROCEDURE ch_del_48_fn(); "),e.add_11rb$("CREATE VIEW ScopedGrant_ReceiveView AS SELECT ScopedGrant.*, ScopedGrantReplicate.* FROM ScopedGrant LEFT JOIN ScopedGrantReplicate ON ScopedGrantReplicate.sgPk = ScopedGrant.sgUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION sg_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ScopedGrant(sgUid, sgPcsn, sgLcsn, sgLcb, sgLct, sgTableId, sgEntityUid, sgPermissions, sgGroupUid, sgIndex, sgFlags) VALUES (NEW.sgUid, NEW.sgPcsn, NEW.sgLcsn, NEW.sgLcb, NEW.sgLct, NEW.sgTableId, NEW.sgEntityUid, NEW.sgPermissions, NEW.sgGroupUid, NEW.sgIndex, NEW.sgFlags) ON CONFLICT(sgUid) DO UPDATE SET sgLct = EXCLUDED.sgLct, sgPermissions = EXCLUDED.sgPermissions ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER sg_remote_insert_trig INSTEAD OF INSERT ON ScopedGrant_ReceiveView FOR EACH ROW EXECUTE PROCEDURE sg_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ErrorReportReplicate ( erPk BIGINT NOT NULL, erVersionId BIGINT NOT NULL DEFAULT 0, erDestination BIGINT NOT NULL, erPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (erPk, erDestination)) "),e.add_11rb$(" CREATE INDEX index_ErrorReportReplicate_erPk_erDestination_erVersionId ON ErrorReportReplicate (erPk, erDestination, erVersionId) "),e.add_11rb$(" CREATE INDEX index_ErrorReportReplicate_erDestination_erPending ON ErrorReportReplicate (erDestination, erPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_419_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (419, NEW.errUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_419_trig AFTER UPDATE OR INSERT ON ErrorReport FOR EACH ROW EXECUTE PROCEDURE ch_upd_419_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_419_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (419, OLD.errUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_419_trig AFTER DELETE ON ErrorReport FOR EACH ROW EXECUTE PROCEDURE ch_del_419_fn(); "),e.add_11rb$("CREATE VIEW ErrorReport_ReceiveView AS SELECT ErrorReport.*, ErrorReportReplicate.* FROM ErrorReport LEFT JOIN ErrorReportReplicate ON ErrorReportReplicate.erPk = ErrorReport.errUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION errorreport_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ErrorReport(errUid, errPcsn, errLcsn, errLcb, errLct, severity, timestamp, presenterUri, appVersion, versionCode, errorCode, operatingSys, osVersion, stackTrace, message) VALUES (NEW.errUid, NEW.errPcsn, NEW.errLcsn, NEW.errLcb, NEW.errLct, NEW.severity, NEW.timestamp, NEW.presenterUri, NEW.appVersion, NEW.versionCode, NEW.errorCode, NEW.operatingSys, NEW.osVersion, NEW.stackTrace, NEW.message) ON CONFLICT (errUid) DO UPDATE SET errPcsn = EXCLUDED.errPcsn, errLcsn = EXCLUDED.errLcsn, errLcb = EXCLUDED.errLcb, errLct = EXCLUDED.errLct, severity = EXCLUDED.severity, timestamp = EXCLUDED.timestamp, presenterUri = EXCLUDED.presenterUri, appVersion = EXCLUDED.appVersion, versionCode = EXCLUDED.versionCode, errorCode = EXCLUDED.errorCode, operatingSys = EXCLUDED.operatingSys, osVersion = EXCLUDED.osVersion, stackTrace = EXCLUDED.stackTrace, message = EXCLUDED.message ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER errorreport_remote_insert_trig INSTEAD OF INSERT ON ErrorReport_ReceiveView FOR EACH ROW EXECUTE PROCEDURE errorreport_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ClazzAssignmentReplicate ( caPk BIGINT NOT NULL, caVersionId BIGINT NOT NULL DEFAULT 0, caDestination BIGINT NOT NULL, caPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (caPk, caDestination)) "),e.add_11rb$(" CREATE INDEX index_ClazzAssignmentReplicate_caPk_caDestination_caVersionId ON ClazzAssignmentReplicate (caPk, caDestination, caVersionId) "),e.add_11rb$(" CREATE INDEX index_ClazzAssignmentReplicate_caDestination_caPending ON ClazzAssignmentReplicate (caDestination, caPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_520_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (520, NEW.caUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_520_trig AFTER UPDATE OR INSERT ON ClazzAssignment FOR EACH ROW EXECUTE PROCEDURE ch_upd_520_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_520_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (520, OLD.caUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_520_trig AFTER DELETE ON ClazzAssignment FOR EACH ROW EXECUTE PROCEDURE ch_del_520_fn(); "),e.add_11rb$("CREATE VIEW ClazzAssignment_ReceiveView AS SELECT ClazzAssignment.*, ClazzAssignmentReplicate.* FROM ClazzAssignment LEFT JOIN ClazzAssignmentReplicate ON ClazzAssignmentReplicate.caPk = ClazzAssignment.caUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION clazzassignment_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ClazzAssignment(caUid, caTitle, caDescription, caDeadlineDate, caStartDate, caLateSubmissionType, caLateSubmissionPenalty, caGracePeriodDate, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caClazzUid, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct) VALUES (NEW.caUid, NEW.caTitle, NEW.caDescription, NEW.caDeadlineDate, NEW.caStartDate, NEW.caLateSubmissionType, NEW.caLateSubmissionPenalty, NEW.caGracePeriodDate, NEW.caActive, NEW.caClassCommentEnabled, NEW.caPrivateCommentsEnabled, NEW.caClazzUid, NEW.caLocalChangeSeqNum, NEW.caMasterChangeSeqNum, NEW.caLastChangedBy, NEW.caLct) ON CONFLICT (caUid) DO UPDATE SET caTitle = EXCLUDED.caTitle, caDescription = EXCLUDED.caDescription, caDeadlineDate = EXCLUDED.caDeadlineDate, caStartDate = EXCLUDED.caStartDate, caLateSubmissionType = EXCLUDED.caLateSubmissionType, caLateSubmissionPenalty = EXCLUDED.caLateSubmissionPenalty, caGracePeriodDate = EXCLUDED.caGracePeriodDate, caActive = EXCLUDED.caActive, caClassCommentEnabled = EXCLUDED.caClassCommentEnabled, caPrivateCommentsEnabled = EXCLUDED.caPrivateCommentsEnabled, caClazzUid = EXCLUDED.caClazzUid, caLocalChangeSeqNum = EXCLUDED.caLocalChangeSeqNum, caMasterChangeSeqNum = EXCLUDED.caMasterChangeSeqNum, caLastChangedBy = EXCLUDED.caLastChangedBy, caLct = EXCLUDED.caLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER clazzassignment_remote_insert_trig INSTEAD OF INSERT ON ClazzAssignment_ReceiveView FOR EACH ROW EXECUTE PROCEDURE clazzassignment_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS ClazzAssignmentContentJoinReplicate ( cacjPk BIGINT NOT NULL, cacjVersionId BIGINT NOT NULL DEFAULT 0, cacjDestination BIGINT NOT NULL, cacjPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (cacjPk, cacjDestination)) "),e.add_11rb$(" CREATE INDEX index_ClazzAssignmentContentJoinReplicate_cacjPk_cacjDestination_cacjVersionId ON ClazzAssignmentContentJoinReplicate (cacjPk, cacjDestination, cacjVersionId) "),e.add_11rb$(" CREATE INDEX index_ClazzAssignmentContentJoinReplicate_cacjDestination_cacjPending ON ClazzAssignmentContentJoinReplicate (cacjDestination, cacjPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_521_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (521, NEW.cacjUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_521_trig AFTER UPDATE OR INSERT ON ClazzAssignmentContentJoin FOR EACH ROW EXECUTE PROCEDURE ch_upd_521_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_521_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (521, OLD.cacjUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_521_trig AFTER DELETE ON ClazzAssignmentContentJoin FOR EACH ROW EXECUTE PROCEDURE ch_del_521_fn(); "),e.add_11rb$("CREATE VIEW ClazzAssignmentContentJoin_ReceiveView AS SELECT ClazzAssignmentContentJoin.*, ClazzAssignmentContentJoinReplicate.* FROM ClazzAssignmentContentJoin LEFT JOIN ClazzAssignmentContentJoinReplicate ON ClazzAssignmentContentJoinReplicate.cacjPk = ClazzAssignmentContentJoin.cacjUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION clazzassignmentcontentjoin_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ClazzAssignmentContentJoin(cacjUid, cacjContentUid, cacjAssignmentUid, cacjActive, cacjMCSN, cacjLCSN, cacjLCB, cacjLct) VALUES (NEW.cacjUid, NEW.cacjContentUid, NEW.cacjAssignmentUid, NEW.cacjActive, NEW.cacjMCSN, NEW.cacjLCSN, NEW.cacjLCB, NEW.cacjLct) ON CONFLICT (cacjUid) DO UPDATE SET cacjContentUid = EXCLUDED.cacjContentUid, cacjAssignmentUid = EXCLUDED.cacjAssignmentUid, cacjActive = EXCLUDED.cacjActive, cacjMCSN = EXCLUDED.cacjMCSN, cacjLCSN = EXCLUDED.cacjLCSN, cacjLCB = EXCLUDED.cacjLCB, cacjLct = EXCLUDED.cacjLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER clazzassignmentcontentjoin_remote_insert_trig INSTEAD OF INSERT ON ClazzAssignmentContentJoin_ReceiveView FOR EACH ROW EXECUTE PROCEDURE clazzassignmentcontentjoin_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS PersonAuth2Replicate ( paPk BIGINT NOT NULL, paVersionId BIGINT NOT NULL DEFAULT 0, paDestination BIGINT NOT NULL, paPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (paPk, paDestination)) "),e.add_11rb$(" CREATE INDEX index_PersonAuth2Replicate_paPk_paDestination_paVersionId ON PersonAuth2Replicate (paPk, paDestination, paVersionId) "),e.add_11rb$(" CREATE INDEX index_PersonAuth2Replicate_paDestination_paPending ON PersonAuth2Replicate (paDestination, paPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_678_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (678, NEW.pauthUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_678_trig AFTER UPDATE OR INSERT ON PersonAuth2 FOR EACH ROW EXECUTE PROCEDURE ch_upd_678_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_678_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (678, OLD.pauthUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_678_trig AFTER DELETE ON PersonAuth2 FOR EACH ROW EXECUTE PROCEDURE ch_del_678_fn(); "),e.add_11rb$("CREATE VIEW PersonAuth2_ReceiveView AS SELECT PersonAuth2.*, PersonAuth2Replicate.* FROM PersonAuth2 LEFT JOIN PersonAuth2Replicate ON PersonAuth2Replicate.paPk = PersonAuth2.pauthUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION personauth2_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO PersonAuth2(pauthUid, pauthMechanism, pauthAuth, pauthLcsn, pauthPcsn, pauthLcb, pauthLct) VALUES (NEW.pauthUid, NEW.pauthMechanism, NEW.pauthAuth, NEW.pauthLcsn, NEW.pauthPcsn, NEW.pauthLcb, NEW.pauthLct) ON CONFLICT (pauthUid) DO UPDATE SET pauthMechanism = EXCLUDED.pauthMechanism, pauthAuth = EXCLUDED.pauthAuth, pauthLcsn = EXCLUDED.pauthLcsn, pauthPcsn = EXCLUDED.pauthPcsn, pauthLcb = EXCLUDED.pauthLcb, pauthLct = EXCLUDED.pauthLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER personauth2_remote_insert_trig INSTEAD OF INSERT ON PersonAuth2_ReceiveView FOR EACH ROW EXECUTE PROCEDURE personauth2_remote_insert_fn() "),e.add_11rb$(" CREATE TABLE IF NOT EXISTS UserSessionReplicate ( usPk BIGINT NOT NULL, usVersionId BIGINT NOT NULL DEFAULT 0, usDestination BIGINT NOT NULL, usPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (usPk, usDestination)) "),e.add_11rb$(" CREATE INDEX index_UserSessionReplicate_usPk_usDestination_usVersionId ON UserSessionReplicate (usPk, usDestination, usVersionId) "),e.add_11rb$(" CREATE INDEX index_UserSessionReplicate_usDestination_usPending ON UserSessionReplicate (usDestination, usPending) "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_679_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (679, NEW.usUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_679_trig AFTER UPDATE OR INSERT ON UserSession FOR EACH ROW EXECUTE PROCEDURE ch_upd_679_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_679_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (679, OLD.usUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_679_trig AFTER DELETE ON UserSession FOR EACH ROW EXECUTE PROCEDURE ch_del_679_fn(); "),e.add_11rb$("CREATE VIEW UserSession_ReceiveView AS SELECT UserSession.*, UserSessionReplicate.* FROM UserSession LEFT JOIN UserSessionReplicate ON UserSessionReplicate.usPk = UserSession.usUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION usersession_remote_ins_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO UserSession(usUid, usPcsn, usLcsn, usLcb, usLct, usPersonUid, usClientNodeId, usStartTime, usEndTime, usStatus, usReason, usAuth, usSessionType) VALUES (NEW.usUid, NEW.usPcsn, NEW.usLcsn, NEW.usLcb, NEW.usLct, NEW.usPersonUid, NEW.usClientNodeId, NEW.usStartTime, NEW.usEndTime, NEW.usStatus, NEW.usReason, NEW.usAuth, NEW.usSessionType) /*postgres ON CONFLICT (usUid) DO UPDATE SET usStatus = EXCLUDED.usStatus, usEndTime = EXCLUDED.usEndTime, usReason = EXCLUDED.usReason */ ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER usersession_remote_ins_trig INSTEAD OF INSERT ON UserSession_ReceiveView FOR EACH ROW EXECUTE PROCEDURE usersession_remote_ins_fn() ")}xt(n,q(e))}(t),V})),n4=new Gt(92,93,(function(t){return 1===Tt(t)?p(["ALTER TABLE SyncNode RENAME to SyncNode_OLD","CREATE TABLE IF NOT EXISTS SyncNode ( nodeClientId INTEGER PRIMARY KEY NOT NULL)","INSERT INTO SyncNode (nodeClientId) SELECT nodeClientId FROM SyncNode_OLD","DROP TABLE SyncNode_OLD"]):Et("ALTER TABLE SyncNode DROP COLUMN master")})),i4=new Gt(93,94,(function(t){return 1===Tt(t)?p(["CREATE VIEW IF NOT EXISTS ClazzLogAttendanceRecord_ReceiveView AS SELECT ClazzLogAttendanceRecord.*, ClazzLogAttendanceRecordReplicate.* FROM ClazzLogAttendanceRecord LEFT JOIN ClazzLogAttendanceRecordReplicate ON ClazzLogAttendanceRecordReplicate.clarPk = ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid ","DROP TRIGGER IF EXISTS clazzlogattendancerecord_remote_insert_ins","CREATE TRIGGER clazzlogattendancerecord_remote_insert_ins INSTEAD OF INSERT ON ClazzLogAttendanceRecord_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ClazzLogAttendanceRecord(clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime) VALUES (NEW.clazzLogAttendanceRecordUid, NEW.clazzLogAttendanceRecordClazzLogUid, NEW.clazzLogAttendanceRecordPersonUid, NEW.attendanceStatus, NEW.clazzLogAttendanceRecordMasterChangeSeqNum, NEW.clazzLogAttendanceRecordLocalChangeSeqNum, NEW.clazzLogAttendanceRecordLastChangedBy, NEW.clazzLogAttendanceRecordLastChangedTime) /*psql ON CONFLICT (clazzLogAttendanceRecordUid) DO UPDATE SET clazzLogAttendanceRecordClazzLogUid = EXCLUDED.clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid = EXCLUDED.clazzLogAttendanceRecordPersonUid, attendanceStatus = EXCLUDED.attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum = EXCLUDED.clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum = EXCLUDED.clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy = EXCLUDED.clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime = EXCLUDED.clazzLogAttendanceRecordLastChangedTime */; END"]):p(["CREATE OR REPLACE FUNCTION clazzlogattendancerecord_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ClazzLogAttendanceRecord(clazzLogAttendanceRecordUid, clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid, attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime) VALUES (NEW.clazzLogAttendanceRecordUid, NEW.clazzLogAttendanceRecordClazzLogUid, NEW.clazzLogAttendanceRecordPersonUid, NEW.attendanceStatus, NEW.clazzLogAttendanceRecordMasterChangeSeqNum, NEW.clazzLogAttendanceRecordLocalChangeSeqNum, NEW.clazzLogAttendanceRecordLastChangedBy, NEW.clazzLogAttendanceRecordLastChangedTime) ON CONFLICT (clazzLogAttendanceRecordUid) DO UPDATE SET clazzLogAttendanceRecordClazzLogUid = EXCLUDED.clazzLogAttendanceRecordClazzLogUid, clazzLogAttendanceRecordPersonUid = EXCLUDED.clazzLogAttendanceRecordPersonUid, attendanceStatus = EXCLUDED.attendanceStatus, clazzLogAttendanceRecordMasterChangeSeqNum = EXCLUDED.clazzLogAttendanceRecordMasterChangeSeqNum, clazzLogAttendanceRecordLocalChangeSeqNum = EXCLUDED.clazzLogAttendanceRecordLocalChangeSeqNum, clazzLogAttendanceRecordLastChangedBy = EXCLUDED.clazzLogAttendanceRecordLastChangedBy, clazzLogAttendanceRecordLastChangedTime = EXCLUDED.clazzLogAttendanceRecordLastChangedTime ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql","DROP TRIGGER IF EXISTS clazzlogattendancerecord_remote_insert_trig ON ClazzLogAttendanceRecord_ReceiveView"," CREATE TRIGGER clazzlogattendancerecord_remote_insert_trig INSTEAD OF INSERT ON ClazzLogAttendanceRecord_ReceiveView FOR EACH ROW EXECUTE PROCEDURE clazzlogattendancerecord_remote_insert_fn() "])})),o4=new Gt(94,95,(function(t){return 1===Tt(t)?p(["DROP TRIGGER IF EXISTS ATTUPD_PersonPicture","DROP TABLE IF EXISTS ZombieAttachmentData","CREATE TABLE IF NOT EXISTS ZombieAttachmentData ( zaTableId INTEGER NOT NULL , zaPrimaryKey INTEGER NOT NULL , zaMd5 TEXT , zaUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )",S("\n |\n | CREATE TRIGGER ATTUPD_PersonPicture\n | AFTER UPDATE ON PersonPicture FOR EACH ROW WHEN\n | OLD.personPictureMd5 IS NOT NULL\n | BEGIN\n | \n | INSERT INTO ZombieAttachmentData(zaTableId, zaPrimaryKey, zaMd5) \n | SELECT 50 AS zaTableId, OLD.personPictureUid AS zaPrimaryKey, OLD.personPictureMd5 AS zaMd5\n | FROM PersonPicture \n | WHERE PersonPicture.personPictureUid = OLD.personPictureUid\n | AND (SELECT COUNT(*) \n | FROM PersonPicture\n | WHERE personPictureMd5 = OLD.personPictureMd5) = 0\n | ; \n | END\n | \n ")]):p(["DROP TRIGGER IF EXISTS attach_PersonPicture_trig ON PersonPicture","DROP TABLE IF EXISTS ZombieAttachmentData","CREATE TABLE IF NOT EXISTS ZombieAttachmentData ( zaTableId INTEGER NOT NULL , zaPrimaryKey BIGINT NOT NULL , zaMd5 TEXT , zaUid BIGSERIAL PRIMARY KEY NOT NULL )",S("\n | CREATE OR REPLACE FUNCTION attach_PersonPicture_fn() RETURNS trigger AS $$\n | BEGIN\n | \n | INSERT INTO ZombieAttachmentData(zaTableId, zaPrimaryKey, zaMd5) \n | SELECT 50 AS zaTableId, OLD.personPictureUid AS zaPrimaryKey, OLD.personPictureMd5 AS zaMd5\n | FROM PersonPicture \n | WHERE PersonPicture.personPictureUid = OLD.personPictureUid\n | AND (SELECT COUNT(*) \n | FROM PersonPicture\n | WHERE personPictureMd5 = OLD.personPictureMd5) = 0\n |;\n | RETURN NEW;\n | END $$\n | LANGUAGE plpgsql\n "),S("\n |CREATE TRIGGER attach_PersonPicture_trig\n |AFTER UPDATE ON PersonPicture\n |FOR EACH ROW WHEN (OLD.personPictureMd5 IS NOT NULL)\n |EXECUTE PROCEDURE attach_PersonPicture_fn();\n ")])})),r4=new Gt(95,96,(function(t){return 2===Tt(t)?p(["DROP VIEW PersonAuth2_receiveview","ALTER TABLE PersonAuth2 ALTER COLUMN pauthLcb TYPE BIGINT","CREATE VIEW PersonAuth2_ReceiveView AS SELECT PersonAuth2.*, PersonAuth2Replicate.* FROM PersonAuth2 LEFT JOIN PersonAuth2Replicate ON PersonAuth2Replicate.paPk = PersonAuth2.pauthUid","CREATE OR REPLACE FUNCTION personauth2_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO PersonAuth2(pauthUid, pauthMechanism, pauthAuth, pauthLcsn, pauthPcsn, pauthLcb, pauthLct) VALUES (NEW.pauthUid, NEW.pauthMechanism, NEW.pauthAuth, NEW.pauthLcsn, NEW.pauthPcsn, NEW.pauthLcb, NEW.pauthLct) ON CONFLICT (pauthUid) DO UPDATE SET pauthMechanism = EXCLUDED.pauthMechanism, pauthAuth = EXCLUDED.pauthAuth, pauthLcsn = EXCLUDED.pauthLcsn, pauthPcsn = EXCLUDED.pauthPcsn, pauthLcb = EXCLUDED.pauthLcb, pauthLct = EXCLUDED.pauthLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql","CREATE TRIGGER personauth2_remote_insert_trig INSTEAD OF INSERT ON PersonAuth2_ReceiveView FOR EACH ROW EXECUTE PROCEDURE personauth2_remote_insert_fn()"]):At()})),s4=new Gt(96,97,(function(t){return 1===Tt(t)?p(["DROP TABLE ZombieAttachmentData","CREATE TABLE ZombieAttachmentData ( zaUri TEXT , zaUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )","DROP TRIGGER IF EXISTS ATTUPD_PersonPicture",S("\n |\n | CREATE TRIGGER ATTUPD_PersonPicture\n | AFTER UPDATE ON PersonPicture FOR EACH ROW WHEN\n | OLD.personPictureMd5 IS NOT NULL\n | BEGIN\n | \n | INSERT INTO ZombieAttachmentData(zaUri) \n | SELECT OLD.personPictureUri AS zaUri\n | FROM PersonPicture \n | WHERE PersonPicture.personPictureUid = OLD.personPictureUid\n | AND (SELECT COUNT(*) \n | FROM PersonPicture\n | WHERE personPictureMd5 = OLD.personPictureMd5) = 0\n | ; \n | END\n | \n ")]):p(["DROP TABLE IF EXISTS ZombieAttachmentData","CREATE TABLE IF NOT EXISTS ZombieAttachmentData ( zaUri TEXT , zaUid SERIAL PRIMARY KEY NOT NULL )",S("\n | CREATE OR REPLACE FUNCTION attach_PersonPicture_fn() RETURNS trigger AS $$\n | BEGIN\n | \n | INSERT INTO ZombieAttachmentData(zaUri) \n | SELECT OLD.personPictureUri AS zaUri\n | FROM PersonPicture \n | WHERE PersonPicture.personPictureUid = OLD.personPictureUid\n | AND (SELECT COUNT(*) \n | FROM PersonPicture\n | WHERE personPictureMd5 = OLD.personPictureMd5) = 0\n |;\n | RETURN NEW;\n | END $$\n | LANGUAGE plpgsql\n ")])})),a4=new Gt(97,98,(function(t){return 2===Tt(t)?(qt(t),At()):At()})),c4=new Gt(98,99,(function(t){return 2===Tt(t)?Et("ALTER TABLE ContentJobItem ALTER COLUMN cjiFinishTime TYPE BIGINT"):At()})),l4=new Gt(99,100,(function(t){return p(["\n UPDATE ContainerEntry\n SET ceCefUid = \n (SELECT CefOuter.cefUid\n FROM ContainerEntryFile CefOuter\n WHERE CefOuter.cefMd5 = \n\t\t (SELECT CefInner.cefMd5\n\t\t\t\t FROM ContainerEntryFile CefInner\n\t\t\t\t WHERE CefInner.cefUid = ContainerEntry.ceCefUid)\n\t\tORDER BY CefOuter.cefUid\n LIMIT 1)\n ","\nDELETE FROM ContainerEntryFile \n WHERE ContainerEntryFile.cefUid != \n (SELECT CefInner.cefUid \n FROM ContainerEntryFile CefInner\n WHERE CefInner.cefMd5 = ContainerEntryFile.cefMd5\n ORDER BY CefInner.cefUid\n LIMIT 1)\n "])})),u4=new Gt(100,101,(function(t){return 1===Tt(t)?p(["CREATE VIEW IF NOT EXISTS Container_ReceiveView AS SELECT Container.*, ContainerReplicate.* FROM Container LEFT JOIN ContainerReplicate ON ContainerReplicate.containerPk = Container.containerUid ","DROP TRIGGER IF EXISTS container_remote_insert_ins","CREATE TRIGGER container_remote_insert_ins INSTEAD OF INSERT ON Container_ReceiveView FOR EACH ROW BEGIN REPLACE INTO Container(containerUid, cntLocalCsn, cntMasterCsn, cntLastModBy, cntLct, fileSize, containerContentEntryUid, cntLastModified, mimeType, remarks, mobileOptimized, cntNumEntries) SELECT NEW.containerUid, NEW.cntLocalCsn, NEW.cntMasterCsn, NEW.cntLastModBy, NEW.cntLct, NEW.fileSize, NEW.containerContentEntryUid, NEW.cntLastModified, NEW.mimeType, NEW.remarks, NEW.mobileOptimized, NEW.cntNumEntries WHERE NEW.cntLct > (SELECT COALESCE( (SELECT ContainerInt.cntLct FROM Container ContainerInt WHERE ContainerInt.containerUid = NEW.containerUid), 0)) /*psql ON CONFLICT (containerUid) DO UPDATE SET cntLocalCsn = EXCLUDED.cntLocalCsn, cntMasterCsn = EXCLUDED.cntMasterCsn, cntLastModBy = EXCLUDED.cntLastModBy, cntLct = EXCLUDED.cntLct, fileSize = EXCLUDED.fileSize, containerContentEntryUid = EXCLUDED.containerContentEntryUid, cntLastModified = EXCLUDED.cntLastModified, mimeType = EXCLUDED.mimeType, remarks = EXCLUDED.remarks, mobileOptimized = EXCLUDED.mobileOptimized, cntNumEntries = EXCLUDED.cntNumEntries */; END "]):Et("CREATE OR REPLACE FUNCTION container_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO Container(containerUid, cntLocalCsn, cntMasterCsn, cntLastModBy, cntLct, fileSize, containerContentEntryUid, cntLastModified, mimeType, remarks, mobileOptimized, cntNumEntries) SELECT NEW.containerUid, NEW.cntLocalCsn, NEW.cntMasterCsn, NEW.cntLastModBy, NEW.cntLct, NEW.fileSize, NEW.containerContentEntryUid, NEW.cntLastModified, NEW.mimeType, NEW.remarks, NEW.mobileOptimized, NEW.cntNumEntries WHERE NEW.cntLct > (SELECT COALESCE( (SELECT ContainerInt.cntLct FROM Container ContainerInt WHERE ContainerInt.containerUid = NEW.containerUid), 0)) ON CONFLICT (containerUid) DO UPDATE SET cntLocalCsn = EXCLUDED.cntLocalCsn, cntMasterCsn = EXCLUDED.cntMasterCsn, cntLastModBy = EXCLUDED.cntLastModBy, cntLct = EXCLUDED.cntLct, fileSize = EXCLUDED.fileSize, containerContentEntryUid = EXCLUDED.containerContentEntryUid, cntLastModified = EXCLUDED.cntLastModified, mimeType = EXCLUDED.mimeType, remarks = EXCLUDED.remarks, mobileOptimized = EXCLUDED.mobileOptimized, cntNumEntries = EXCLUDED.cntNumEntries ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql")})),h4=new Gt(101,102,(function(t){if(1===Tt(t)){var e,n=p(["ContentJobItem_InsertTrigger","ContentJobItem_UpdateRecursiveTotals","ContentJobItem_UpdateRecursiveStatus","ContentJobItem_UpdateParents","ContentJobItem_UpdateStatusParent"]),i=Mt(Pt(n,10));for(e=n.iterator();e.hasNext();){var o=e.next();i.add_11rb$("DROP TRIGGER IF EXISTS "+o)}return Ft(i,p([" CREATE TRIGGER ContentJobItem_InsertTrigger AFTER INSERT ON ContentJobItem BEGIN UPDATE ContentJobItem SET cjiRecursiveProgress = NEW.cjiItemProgress, cjiRecursiveTotal = NEW.cjiItemTotal WHERE ContentJobItem.cjiUid = NEW.cjiUid; END; "," CREATE TRIGGER ContentJobItem_UpdateRecursiveTotals AFTER UPDATE ON ContentJobItem FOR EACH ROW WHEN ( NEW.cjiItemProgress != OLD.cjiItemProgress OR NEW.cjiItemTotal != OLD.cjiItemTotal) BEGIN UPDATE ContentJobItem SET cjiRecursiveProgress = (cjiRecursiveProgress + (NEW.cjiItemProgress - OLD.cjiItemProgress)), cjiRecursiveTotal = (cjiRecursiveTotal + (NEW.cjiItemTotal - OLD.cjiItemTotal)) WHERE ContentJobItem.cjiUid = NEW.cjiUid; END; "," CREATE TRIGGER ContentJobItem_UpdateRecursiveStatus AFTER UPDATE ON ContentJobItem FOR EACH ROW WHEN (NEW.cjiStatus != OLD.cjiStatus) BEGIN UPDATE ContentJobItem SET cjiRecursiveStatus = (CASE WHEN (SELECT Count(*) FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiUid) AS JobStatus ) = (SELECT Count(*) FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiUid) AS JobStatus WHERE status = 24) THEN 24 WHEN (SELECT Count(*) FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiUid) AS JobStatus ) = (SELECT Count(*) FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiUid) AS JobStatus WHERE status = 25) THEN 25 WHEN(SELECT COUNT(*) FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiUid) AS JobStatus ) = (SELECT COUNT(*) FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiUid) AS JobStatus WHERE status = 28) THEN 28 WHEN EXISTS (SELECT status FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiUid) AS JobStatus WHERE status = 12) THEN 12 WHEN EXISTS (SELECT status FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiUid) AS JobStatus WHERE (status = 25 OR status = 23)) THEN 23 WHEN EXISTS (SELECT status FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiUid) AS JobStatus WHERE status = 5) THEN 5 ELSE 4 END) WHERE contentJobItem.cjiUid = NEW.cjiUid; END; "," CREATE TRIGGER ContentJobItem_UpdateParents AFTER UPDATE ON ContentJobItem FOR EACH ROW WHEN ( NEW.cjiParentCjiUid != 0 AND (NEW.cjiRecursiveProgress != OLD.cjiRecursiveProgress OR NEW.cjiRecursiveTotal != OLD.cjiRecursiveTotal)) BEGIN UPDATE ContentJobItem SET cjiRecursiveProgress = (cjiRecursiveProgress + (NEW.cjiRecursiveProgress - OLD.cjiRecursiveProgress)), cjiRecursiveTotal = (cjiRecursiveTotal + (NEW.cjiRecursiveTotal - OLD.cjiRecursiveTotal)) WHERE ContentJobItem.cjiUid = NEW.cjiParentCjiUid; END; "," CREATE TRIGGER ContentJobItem_UpdateStatusParent AFTER UPDATE ON ContentJobItem FOR EACH ROW WHEN ( NEW.cjiParentCjiUid != 0 AND (New.cjiRecursiveStatus != OLD.cjiRecursiveStatus)) BEGIN UPDATE ContentJobItem SET cjiRecursiveStatus = (CASE WHEN (SELECT Count(*) FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiParentCjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiParentCjiUid) AS JobStatus ) = (SELECT Count(*) FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiParentCjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiParentCjiUid) AS JobStatus WHERE status = 24) THEN 24 WHEN (SELECT Count(*) FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiParentCjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiParentCjiUid) AS JobStatus ) = (SELECT Count(*) FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiParentCjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiParentCjiUid) AS JobStatus WHERE status = 25) THEN 25 WHEN(SELECT COUNT(*) FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiParentCjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiParentCjiUid) AS JobStatus ) = (SELECT COUNT(*) FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiParentCjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiParentCjiUid) AS JobStatus WHERE status = 28) THEN 28 WHEN EXISTS (SELECT status FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiParentCjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiParentCjiUid) AS JobStatus WHERE status = 12) THEN 12 WHEN EXISTS (SELECT status FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiParentCjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiParentCjiUid) AS JobStatus WHERE (status = 25 OR status = 23)) THEN 23 WHEN EXISTS (SELECT status FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiParentCjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiParentCjiUid) AS JobStatus WHERE status = 5) THEN 5 ELSE 4 END) WHERE ContentJobItem.cjiUid = NEW.cjiParentCjiUid; END; "]))}var r,s=p(["contentjobiteminsert_trig","contentjobitem_updaterecursivetotals_trig","contentjobitem_updateparents_trig","contentjobitem_updatestatus_trig","contentjobitem_updatestatusparents_trig"]),a=Mt(Pt(s,10));for(r=s.iterator();r.hasNext();){var c=r.next();a.add_11rb$("DROP TRIGGER IF EXISTS "+c+" ON ContentJobItem")}return Ft(a,p([" CREATE OR REPLACE FUNCTION contentjobiteminsert_fn() RETURNS TRIGGER AS $$ BEGIN UPDATE ContentJobItem SET cjiRecursiveProgress = NEW.cjiItemProgress, cjiRecursiveTotal = NEW.cjiItemTotal WHERE ContentJobItem.cjiUid = NEW.cjiUid; RETURN NEW; END $$ LANGUAGE plpgsql "," CREATE TRIGGER contentjobiteminsert_trig AFTER INSERT ON ContentJobItem FOR EACH ROW EXECUTE PROCEDURE contentjobiteminsert_fn() "," CREATE OR REPLACE FUNCTION contentjobitem_updaterecursivetotals_fn() RETURNS TRIGGER AS $$ BEGIN UPDATE ContentJobItem SET cjiRecursiveProgress = (cjiRecursiveProgress + (NEW.cjiItemProgress - OLD.cjiItemProgress)), cjiRecursiveTotal = (cjiRecursiveTotal + (NEW.cjiItemTotal - OLD.cjiItemTotal)) WHERE (NEW.cjiItemProgress != OLD.cjiItemProgress OR NEW.cjiItemTotal != OLD.cjiItemTotal) AND ContentJobItem.cjiUid = NEW.cjiUid; RETURN NEW; END $$ LANGUAGE plpgsql "," CREATE TRIGGER contentjobitem_updaterecursivetotals_trig AFTER UPDATE ON ContentJobItem FOR EACH ROW EXECUTE PROCEDURE contentjobitem_updaterecursivetotals_fn(); "," CREATE OR REPLACE FUNCTION contentjobitem_updateparents_fn() RETURNS TRIGGER AS $$ BEGIN UPDATE ContentJobItem SET cjiRecursiveProgress = (cjiRecursiveProgress + (NEW.cjiRecursiveProgress - OLD.cjiRecursiveProgress)), cjiRecursiveTotal = (cjiRecursiveTotal + (NEW.cjiRecursiveTotal - OLD.cjiRecursiveTotal)) WHERE (NEW.cjiRecursiveProgress != OLD.cjiRecursiveProgress OR NEW.cjiRecursiveTotal != OLD.cjiRecursiveTotal) AND ContentJobItem.cjiUid = NEW.cjiParentCjiUid AND NEW.cjiParentCjiUid != 0; RETURN NEW; END $$ LANGUAGE plpgsql "," CREATE TRIGGER contentjobitem_updateparents_trig AFTER UPDATE ON ContentJobItem FOR EACH ROW EXECUTE PROCEDURE contentjobitem_updateparents_fn(); "," CREATE OR REPLACE FUNCTION contentjobitem_updatestatus_fn() RETURNS TRIGGER AS $$ BEGIN UPDATE ContentJobItem SET cjiRecursiveStatus = (CASE WHEN (SELECT Count(*) FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiUid) AS JobStatus ) = (SELECT Count(*) FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiUid) AS JobStatus WHERE status = 24) THEN 24 WHEN (SELECT Count(*) FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiUid) AS JobStatus ) = (SELECT Count(*) FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiUid) AS JobStatus WHERE status = 25) THEN 25 WHEN(SELECT COUNT(*) FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiUid) AS JobStatus ) = (SELECT COUNT(*) FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiUid) AS JobStatus WHERE status = 28) THEN 28 WHEN EXISTS (SELECT status FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiUid) AS JobStatus WHERE status = 12) THEN 12 WHEN EXISTS (SELECT status FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiUid) AS JobStatus WHERE (status = 25 OR status = 23)) THEN 23 WHEN EXISTS (SELECT status FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiUid) AS JobStatus WHERE status = 5) THEN 5 ELSE 4 END) WHERE contentJobItem.cjiUid = NEW.cjiUid AND NEW.cjiStatus != OLD.cjiStatus; RETURN NEW; END $$ LANGUAGE plpgsql "," CREATE TRIGGER contentjobitem_updatestatus_trig AFTER UPDATE ON ContentJobItem FOR EACH ROW EXECUTE PROCEDURE contentjobitem_updatestatus_fn(); "," CREATE OR REPLACE FUNCTION contentjobitem_updatestatusparents_fn() RETURNS TRIGGER AS $$ BEGIN UPDATE ContentJobItem SET cjiRecursiveStatus = (CASE WHEN (SELECT Count(*) FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiParentCjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiParentCjiUid) AS JobStatus ) = (SELECT Count(*) FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiParentCjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiParentCjiUid) AS JobStatus WHERE status = 24) THEN 24 WHEN (SELECT Count(*) FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiParentCjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiParentCjiUid) AS JobStatus ) = (SELECT Count(*) FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiParentCjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiParentCjiUid) AS JobStatus WHERE status = 25) THEN 25 WHEN(SELECT COUNT(*) FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiParentCjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiParentCjiUid) AS JobStatus ) = (SELECT COUNT(*) FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiParentCjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiParentCjiUid) AS JobStatus WHERE status = 28) THEN 28 WHEN EXISTS (SELECT status FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiParentCjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiParentCjiUid) AS JobStatus WHERE status = 12) THEN 12 WHEN EXISTS (SELECT status FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiParentCjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiParentCjiUid) AS JobStatus WHERE (status = 25 OR status = 23)) THEN 23 WHEN EXISTS (SELECT status FROM (SELECT cjiRecursiveStatus AS status FROM ContentJobItem WHERE cjiParentCjiUid = NEW.cjiParentCjiUid UNION SELECT cjiStatus AS status FROM ContentJobItem WHERE cjiUid = NEW.cjiParentCjiUid) AS JobStatus WHERE status = 5) THEN 5 ELSE 4 END) WHERE NEW.cjiParentCjiUid != 0 AND NEW.cjiRecursiveStatus != OLD.cjiRecursiveStatus AND ContentJobItem.cjiUid = NEW.cjiParentCjiUid; RETURN NEW; END $$ LANGUAGE plpgsql "," CREATE TRIGGER contentjobitem_updatestatusparents_trig AFTER UPDATE ON ContentJobItem FOR EACH ROW EXECUTE PROCEDURE contentjobitem_updatestatusparents_fn(); "]))})),d4=new Gt(102,103,(function(t){var e=F();if(1===Tt(t)){e.add_11rb$("CREATE TABLE IF NOT EXISTS Chat ( chatStartDate INTEGER NOT NULL , chatTitle TEXT , chatGroup INTEGER NOT NULL , chatLct INTEGER NOT NULL , chatUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),e.add_11rb$("CREATE TABLE IF NOT EXISTS ChatReplicate ( chatPk INTEGER NOT NULL , chatVersionId INTEGER NOT NULL DEFAULT 0 , chatDestination INTEGER NOT NULL , chatPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (chatPk, chatDestination) )"),e.add_11rb$("CREATE INDEX index_ChatReplicate_chatPk_chatDestination_chatVersionId ON ChatReplicate (chatPk, chatDestination, chatVersionId)"),e.add_11rb$("CREATE INDEX index_ChatReplicate_chatDestination_chatPending ON ChatReplicate (chatDestination, chatPending)"),e.add_11rb$("CREATE TABLE IF NOT EXISTS ChatMember ( chatMemberChatUid INTEGER NOT NULL , chatMemberPersonUid INTEGER NOT NULL , chatMemberJoinedDate INTEGER NOT NULL , chatMemberLeftDate INTEGER NOT NULL , chatMemberLct INTEGER NOT NULL , chatMemberUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),e.add_11rb$("CREATE TABLE IF NOT EXISTS ChatMemberReplicate ( chatMemberPk INTEGER NOT NULL , chatMemberVersionId INTEGER NOT NULL DEFAULT 0 , chatMemberDestination INTEGER NOT NULL , chatMemberPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (chatMemberPk, chatMemberDestination) )"),e.add_11rb$("CREATE INDEX index_ChatMemberReplicate_chatMemberPk_chatMemberDestination_chatMemberVersionId ON ChatMemberReplicate (chatMemberPk, chatMemberDestination, chatMemberVersionId)"),e.add_11rb$("CREATE INDEX index_ChatMemberReplicate_chatMemberDestination_chatMemberPending ON ChatMemberReplicate (chatMemberDestination, chatMemberPending)"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CourseAssignmentMark ( camAssignmentUid INTEGER NOT NULL , camSubmitterUid INTEGER NOT NULL , camMark REAL NOT NULL , camPenalty INTEGER NOT NULL , camLct INTEGER NOT NULL , camUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CourseAssignmentMarkReplicate ( camPk INTEGER NOT NULL , camVersionId INTEGER NOT NULL DEFAULT 0 , camDestination INTEGER NOT NULL , camPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (camPk, camDestination) )"),e.add_11rb$("CREATE INDEX index_CourseAssignmentMarkReplicate_camPk_camDestination_camVersionId ON CourseAssignmentMarkReplicate (camPk, camDestination, camVersionId)"),e.add_11rb$("CREATE INDEX index_CourseAssignmentMarkReplicate_camDestination_camPending ON CourseAssignmentMarkReplicate (camDestination, camPending)"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CourseAssignmentSubmission ( casAssignmentUid INTEGER NOT NULL , casSubmitterUid INTEGER NOT NULL , casSubmitterPersonUid INTEGER NOT NULL , casText TEXT , casType INTEGER NOT NULL , casTimestamp INTEGER NOT NULL , casUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CourseAssignmentSubmissionAttachment ( casaSubmissionUid INTEGER NOT NULL , casaMimeType TEXT , casaUri TEXT , casaMd5 TEXT , casaSize INTEGER NOT NULL , casaTimestamp INTEGER NOT NULL , casaUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CourseAssignmentSubmissionAttachmentReplicate ( casaPk INTEGER NOT NULL , casaVersionId INTEGER NOT NULL DEFAULT 0 , casaDestination INTEGER NOT NULL , casaPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (casaPk, casaDestination) )"),e.add_11rb$("CREATE INDEX index_CourseAssignmentSubmissionAttachmentReplicate_casaPk_casaDestination_casaVersionId ON CourseAssignmentSubmissionAttachmentReplicate (casaPk, casaDestination, casaVersionId)"),e.add_11rb$("CREATE INDEX index_CourseAssignmentSubmissionAttachmentReplicate_casaDestination_casaPending ON CourseAssignmentSubmissionAttachmentReplicate (casaDestination, casaPending)"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CourseAssignmentSubmissionReplicate ( casPk INTEGER NOT NULL , casVersionId INTEGER NOT NULL DEFAULT 0 , casDestination INTEGER NOT NULL , casPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (casPk, casDestination) )"),e.add_11rb$("CREATE INDEX index_CourseAssignmentSubmissionReplicate_casPk_casDestination_casVersionId ON CourseAssignmentSubmissionReplicate (casPk, casDestination, casVersionId)"),e.add_11rb$("CREATE INDEX index_CourseAssignmentSubmissionReplicate_casDestination_casPending ON CourseAssignmentSubmissionReplicate (casDestination, casPending)"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CourseBlock ( cbType INTEGER NOT NULL , cbIndentLevel INTEGER NOT NULL , cbModuleParentBlockUid INTEGER NOT NULL , cbTitle TEXT , cbDescription TEXT , cbCompletionCriteria INTEGER NOT NULL , cbHideUntilDate INTEGER NOT NULL , cbDeadlineDate INTEGER NOT NULL , cbLateSubmissionPenalty INTEGER NOT NULL , cbGracePeriodDate INTEGER NOT NULL , cbMaxPoints INTEGER NOT NULL , cbMinPoints INTEGER NOT NULL , cbIndex INTEGER NOT NULL , cbClazzUid INTEGER NOT NULL , cbActive INTEGER NOT NULL , cbHidden INTEGER NOT NULL , cbEntityUid INTEGER NOT NULL , cbLct INTEGER NOT NULL , cbUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),e.add_11rb$("CREATE INDEX index_CourseBlock_cbClazzUid ON CourseBlock (cbClazzUid)"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CourseBlockReplicate ( cbPk INTEGER NOT NULL , cbVersionId INTEGER NOT NULL DEFAULT 0 , cbDestination INTEGER NOT NULL , cbPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (cbPk, cbDestination) )"),e.add_11rb$("CREATE INDEX index_CourseBlockReplicate_cbPk_cbDestination_cbVersionId ON CourseBlockReplicate (cbPk, cbDestination, cbVersionId)"),e.add_11rb$("CREATE INDEX index_CourseBlockReplicate_cbDestination_cbPending ON CourseBlockReplicate (cbDestination, cbPending)"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CourseDiscussion ( courseDiscussionTitle TEXT , courseDiscussionDesc TEXT , courseDiscussionClazzUid INTEGER NOT NULL , courseDiscussionActive INTEGER NOT NULL , courseDiscussionLct INTEGER NOT NULL , courseDiscussionUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CourseDiscussionReplicate ( courseDiscussionPk INTEGER NOT NULL , courseDiscussionVersionId INTEGER NOT NULL DEFAULT 0 , courseDiscussionDestination INTEGER NOT NULL , courseDiscussionPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (courseDiscussionPk, courseDiscussionDestination) )"),e.add_11rb$("CREATE INDEX index_CourseDiscussionReplicate_courseDiscussionPk_courseDiscussionDestination_courseDiscussionVersionId ON CourseDiscussionReplicate (courseDiscussionPk, courseDiscussionDestination, courseDiscussionVersionId)"),e.add_11rb$("CREATE INDEX index_CourseDiscussionReplicate_courseDiscussionDestination_courseDiscussionPending ON CourseDiscussionReplicate (courseDiscussionDestination, courseDiscussionPending)"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CourseGroupMember ( cgmSetUid INTEGER NOT NULL , cgmGroupNumber INTEGER NOT NULL , cgmPersonUid INTEGER NOT NULL , cgmLct INTEGER NOT NULL , cgmUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CourseGroupMemberReplicate ( cgmPk INTEGER NOT NULL , cgmVersionId INTEGER NOT NULL DEFAULT 0 , cgmDestination INTEGER NOT NULL , cgmPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (cgmPk, cgmDestination) )"),e.add_11rb$("CREATE INDEX index_CourseGroupMemberReplicate_cgmPk_cgmDestination_cgmVersionId ON CourseGroupMemberReplicate (cgmPk, cgmDestination, cgmVersionId)"),e.add_11rb$("CREATE INDEX index_CourseGroupMemberReplicate_cgmDestination_cgmPending ON CourseGroupMemberReplicate (cgmDestination, cgmPending)"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CourseGroupSet ( cgsName TEXT , cgsTotalGroups INTEGER NOT NULL , cgsActive INTEGER NOT NULL , cgsClazzUid INTEGER NOT NULL , cgsLct INTEGER NOT NULL , cgsUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),e.add_11rb$("CREATE INDEX index_CourseGroupSet_cgsClazzUid ON CourseGroupSet (cgsClazzUid)"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CourseGroupSetReplicate ( cgsPk INTEGER NOT NULL , cgsVersionId INTEGER NOT NULL DEFAULT 0 , cgsDestination INTEGER NOT NULL , cgsPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (cgsPk, cgsDestination) )"),e.add_11rb$("CREATE INDEX index_CourseGroupSetReplicate_cgsPk_cgsDestination_cgsVersionId ON CourseGroupSetReplicate (cgsPk, cgsDestination, cgsVersionId)"),e.add_11rb$("CREATE INDEX index_CourseGroupSetReplicate_cgsDestination_cgsPending ON CourseGroupSetReplicate (cgsDestination, cgsPending)"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CoursePicture ( coursePictureClazzUid INTEGER NOT NULL , coursePictureMasterCsn INTEGER NOT NULL , coursePictureLocalCsn INTEGER NOT NULL , coursePictureLastChangedBy INTEGER NOT NULL , coursePictureLct INTEGER NOT NULL , coursePictureUri TEXT , coursePictureMd5 TEXT , coursePictureFileSize INTEGER NOT NULL , coursePictureTimestamp INTEGER NOT NULL , coursePictureMimeType TEXT , coursePictureActive INTEGER NOT NULL , coursePictureUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CoursePictureReplicate ( cpPk INTEGER NOT NULL , cpVersionId INTEGER NOT NULL DEFAULT 0 , cpDestination INTEGER NOT NULL , cpPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (cpPk, cpDestination) )"),e.add_11rb$("CREATE INDEX index_CoursePictureReplicate_cpPk_cpDestination_cpVersionId ON CoursePictureReplicate (cpPk, cpDestination, cpVersionId)"),e.add_11rb$("CREATE INDEX index_CoursePictureReplicate_cpDestination_cpPending ON CoursePictureReplicate (cpDestination, cpPending)"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CourseTerminology ( ctTitle TEXT , ctTerminology TEXT , ctLct INTEGER NOT NULL , ctUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CourseTerminologyReplicate ( ctPk INTEGER NOT NULL , ctVersionId INTEGER NOT NULL DEFAULT 0 , ctDestination INTEGER NOT NULL , ctPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (ctPk, ctDestination) )"),e.add_11rb$("CREATE INDEX index_CourseTerminologyReplicate_ctPk_ctDestination_ctVersionId ON CourseTerminologyReplicate (ctPk, ctDestination, ctVersionId)"),e.add_11rb$("CREATE INDEX index_CourseTerminologyReplicate_ctDestination_ctPending ON CourseTerminologyReplicate (ctDestination, ctPending)"),e.add_11rb$("CREATE TABLE IF NOT EXISTS DiscussionPost ( discussionPostTitle TEXT , discussionPostMessage TEXT , discussionPostStartDate INTEGER NOT NULL , discussionPostDiscussionTopicUid INTEGER NOT NULL , discussionPostVisible INTEGER NOT NULL , discussionPostArchive INTEGER NOT NULL , discussionPostStartedPersonUid INTEGER NOT NULL , discussionPostClazzUid INTEGER NOT NULL , discussionPostLct INTEGER NOT NULL , discussionPostUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),e.add_11rb$("CREATE TABLE IF NOT EXISTS DiscussionPostReplicate ( discussionPostPk INTEGER NOT NULL , discussionPostVersionId INTEGER NOT NULL DEFAULT 0 , discussionPostDestination INTEGER NOT NULL , discussionPostPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (discussionPostPk, discussionPostDestination) )"),e.add_11rb$("CREATE INDEX index_DiscussionPostReplicate_discussionPostPk_discussionPostDestination_discussionPostVersionId ON DiscussionPostReplicate (discussionPostPk, discussionPostDestination, discussionPostVersionId)"),e.add_11rb$("CREATE INDEX index_DiscussionPostReplicate_discussionPostDestination_discussionPostPending ON DiscussionPostReplicate (discussionPostDestination, discussionPostPending)"),e.add_11rb$("CREATE TABLE IF NOT EXISTS DiscussionTopic ( discussionTopicTitle TEXT , discussionTopicDesc TEXT , discussionTopicStartDate INTEGER NOT NULL , discussionTopicCourseDiscussionUid INTEGER NOT NULL , discussionTopicVisible INTEGER NOT NULL , discussionTopicArchive INTEGER NOT NULL , discussionTopicIndex INTEGER NOT NULL , discussionTopicClazzUid INTEGER NOT NULL , discussionTopicLct INTEGER NOT NULL , discussionTopicUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),e.add_11rb$("CREATE TABLE IF NOT EXISTS DiscussionTopicReplicate ( discussionTopicPk INTEGER NOT NULL , discussionTopicVersionId INTEGER NOT NULL DEFAULT 0 , discussionTopicDestination INTEGER NOT NULL , discussionTopicPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (discussionTopicPk, discussionTopicDestination) )"),e.add_11rb$("CREATE INDEX index_DiscussionTopicReplicate_discussionTopicPk_discussionTopicDestination_discussionTopicVersionId ON DiscussionTopicReplicate (discussionTopicPk, discussionTopicDestination, discussionTopicVersionId)"),e.add_11rb$("CREATE INDEX index_DiscussionTopicReplicate_discussionTopicDestination_discussionTopicPending ON DiscussionTopicReplicate (discussionTopicDestination, discussionTopicPending)"),e.add_11rb$("CREATE TABLE IF NOT EXISTS Message ( messageSenderPersonUid INTEGER NOT NULL , messageTableId INTEGER NOT NULL , messageEntityUid INTEGER NOT NULL , messageText TEXT , messageTimestamp INTEGER NOT NULL , messageClazzUid INTEGER NOT NULL , messageLct INTEGER NOT NULL , messageUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),e.add_11rb$("CREATE TABLE IF NOT EXISTS MessageRead ( messageReadPersonUid INTEGER NOT NULL , messageReadMessageUid INTEGER NOT NULL , messageReadEntityUid INTEGER NOT NULL , messageReadLct INTEGER NOT NULL , messageReadUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),e.add_11rb$("CREATE TABLE IF NOT EXISTS MessageReadReplicate ( messageReadPk INTEGER NOT NULL , messageReadVersionId INTEGER NOT NULL DEFAULT 0 , messageReadDestination INTEGER NOT NULL , messageReadPending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (messageReadPk, messageReadDestination) )"),e.add_11rb$("CREATE INDEX index_MessageReadReplicate_messageReadPk_messageReadDestination_messageReadVersionId ON MessageReadReplicate (messageReadPk, messageReadDestination, messageReadVersionId)"),e.add_11rb$("CREATE INDEX index_MessageReadReplicate_messageReadDestination_messageReadPending ON MessageReadReplicate (messageReadDestination, messageReadPending)"),e.add_11rb$("CREATE TABLE IF NOT EXISTS MessageReplicate ( messagePk INTEGER NOT NULL , messageVersionId INTEGER NOT NULL DEFAULT 0 , messageDestination INTEGER NOT NULL , messagePending INTEGER NOT NULL DEFAULT 1 , PRIMARY KEY (messagePk, messageDestination) )"),e.add_11rb$("CREATE INDEX index_MessageReplicate_messagePk_messageDestination_messageVersionId ON MessageReplicate (messagePk, messageDestination, messageVersionId)"),e.add_11rb$("CREATE INDEX index_MessageReplicate_messageDestination_messagePending ON MessageReplicate (messageDestination, messagePending)"),e.add_11rb$("DROP TABLE ClazzAssignment"),e.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzAssignment ( caTitle TEXT , caDescription TEXT , caGroupUid INTEGER NOT NULL DEFAULT 0 , caActive INTEGER NOT NULL , caClassCommentEnabled INTEGER NOT NULL , caPrivateCommentsEnabled INTEGER NOT NULL DEFAULT 1 , caCompletionCriteria INTEGER NOT NULL DEFAULT 100 , caRequireFileSubmission INTEGER NOT NULL DEFAULT 1 , caFileType INTEGER NOT NULL DEFAULT 0 , caSizeLimit INTEGER NOT NULL DEFAULT 50 , caNumberOfFiles INTEGER NOT NULL DEFAULT 1 , caSubmissionPolicy INTEGER NOT NULL DEFAULT 1 , caMarkingType INTEGER NOT NULL DEFAULT 1 , caRequireTextSubmission INTEGER NOT NULL DEFAULT 1 , caTextLimitType INTEGER NOT NULL DEFAULT 1 , caTextLimit INTEGER NOT NULL DEFAULT 500 , caXObjectUid INTEGER NOT NULL DEFAULT 0 , caClazzUid INTEGER NOT NULL , caLocalChangeSeqNum INTEGER NOT NULL , caMasterChangeSeqNum INTEGER NOT NULL , caLastChangedBy INTEGER NOT NULL , caLct INTEGER NOT NULL , caUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),e.add_11rb$("CREATE INDEX index_ClazzAssignment_caClazzUid ON ClazzAssignment (caClazzUid)"),e.add_11rb$("DROP TABLE ClazzAssignmentContentJoin"),e.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzAssignmentContentJoin ( cacjContentUid INTEGER NOT NULL , cacjAssignmentUid INTEGER NOT NULL , cacjActive INTEGER NOT NULL , cacjWeight INTEGER NOT NULL DEFAULT 0 , cacjMCSN INTEGER NOT NULL , cacjLCSN INTEGER NOT NULL , cacjLCB INTEGER NOT NULL , cacjLct INTEGER NOT NULL , cacjUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),e.add_11rb$("DROP TABLE ClazzAssignmentRollUp"),e.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzAssignmentRollUp ( cachePersonUid INTEGER NOT NULL , cacheContentEntryUid INTEGER NOT NULL , cacheClazzAssignmentUid INTEGER NOT NULL , cacheStudentScore INTEGER NOT NULL , cacheMaxScore INTEGER NOT NULL , cacheFinalWeightScoreWithPenalty REAL NOT NULL DEFAULT 0 , cacheWeight INTEGER NOT NULL DEFAULT 0 , cacheProgress INTEGER NOT NULL , cacheContentComplete INTEGER NOT NULL , cacheSuccess INTEGER NOT NULL , cachePenalty INTEGER NOT NULL , lastCsnChecked INTEGER NOT NULL , cacheUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),e.add_11rb$("CREATE UNIQUE INDEX index_ClazzAssignmentRollUp_cachePersonUid_cacheContentEntryUid_cacheClazzAssignmentUid ON ClazzAssignmentRollUp (cachePersonUid, cacheContentEntryUid, cacheClazzAssignmentUid)"),e.add_11rb$("DROP TABLE Comments"),e.add_11rb$("CREATE TABLE IF NOT EXISTS Comments ( commentsText TEXT , commentsEntityType INTEGER NOT NULL , commentsEntityUid INTEGER NOT NULL , commentsPublic INTEGER NOT NULL , commentsStatus INTEGER NOT NULL , commentsPersonUid INTEGER NOT NULL , commentsToPersonUid INTEGER NOT NULL , commentSubmitterUid INTEGER NOT NULL , commentsFlagged INTEGER NOT NULL , commentsInActive INTEGER NOT NULL , commentsDateTimeAdded INTEGER NOT NULL , commentsDateTimeUpdated INTEGER NOT NULL , commentsMCSN INTEGER NOT NULL , commentsLCSN INTEGER NOT NULL , commentsLCB INTEGER NOT NULL , commentsLct INTEGER NOT NULL , commentsUid INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL )"),e.add_11rb$("ALTER TABLE Clazz ADD COLUMN clazzEnrolmentPolicy INTEGER NOT NULL DEFAULT 102 "),e.add_11rb$("ALTER TABLE Clazz ADD COLUMN clazzTerminologyUid INTEGER NOT NULL DEFAULT 25966"),e.add_11rb$("ALTER TABLE XObjectEntity ADD COLUMN objectStatementRefUid INTEGER NOT NULL DEFAULT 0"),e.add_11rb$(" CREATE TRIGGER ch_ins_127 AFTER INSERT ON Chat BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 127 AS chTableId, NEW.chatUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 127 AND chEntityPk = NEW.chatUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_127 AFTER UPDATE ON Chat BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 127 AS chTableId, NEW.chatUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 127 AND chEntityPk = NEW.chatUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_127 AFTER DELETE ON Chat BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 127 AS chTableId, OLD.chatUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 127 AND chEntityPk = OLD.chatUid); END "),e.add_11rb$("CREATE VIEW Chat_ReceiveView AS SELECT Chat.*, ChatReplicate.* FROM Chat LEFT JOIN ChatReplicate ON ChatReplicate.chatPk = Chat.chatUid "),e.add_11rb$(" CREATE TRIGGER chat_remote_insert_ins INSTEAD OF INSERT ON Chat_ReceiveView FOR EACH ROW BEGIN REPLACE INTO Chat(chatUid, chatStartDate, chatTitle, chatGroup, chatLct) VALUES(NEW.chatUid, NEW.chatStartDate, NEW.chatTitle, NEW.chatGroup, NEW.chatLct) /*psql ON CONFLICT (chatUid) DO UPDATE SET chatStartDate = EXCLUDED.chatStartDate, chatTitle = EXCLUDED.chatTitle, chatGroup = EXCLUDED.chatGroup, chatLct = EXCLUDED.chatLct */ ; END "),e.add_11rb$(" CREATE TRIGGER ch_ins_128 AFTER INSERT ON ChatMember BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 128 AS chTableId, NEW.chatMemberUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 128 AND chEntityPk = NEW.chatMemberUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_128 AFTER UPDATE ON ChatMember BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 128 AS chTableId, NEW.chatMemberUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 128 AND chEntityPk = NEW.chatMemberUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_128 AFTER DELETE ON ChatMember BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 128 AS chTableId, OLD.chatMemberUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 128 AND chEntityPk = OLD.chatMemberUid); END "),e.add_11rb$("CREATE VIEW ChatMember_ReceiveView AS SELECT ChatMember.*, ChatMemberReplicate.* FROM ChatMember LEFT JOIN ChatMemberReplicate ON ChatMemberReplicate.chatMemberPk = ChatMember.chatMemberUid "),e.add_11rb$(" CREATE TRIGGER chatmember_remote_insert_ins INSTEAD OF INSERT ON ChatMember_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ChatMember(chatMemberUid, chatMemberChatUid, chatMemberPersonUid, chatMemberJoinedDate, chatMemberLeftDate, chatMemberLct) VALUES(NEW.chatMemberUid, NEW.chatMemberChatUid, NEW.chatMemberPersonUid, NEW.chatMemberJoinedDate, NEW.chatMemberLeftDate, NEW.chatMemberLct) /*psql ON CONFLICT (chatMemberUid) DO UPDATE SET chatMemberChatUid = EXCLUDED.chatMemberChatUid, chatMemberPersonUid = EXCLUDED.chatMemberPersonUid, chatMemberJoinedDate = EXCLUDED.chatMemberJoinedDate, chatMemberLeftDate = EXCLUDED.chatMemberLeftDate, chatMemberLct = EXCLUDED.chatMemberLct */ ; END "),e.add_11rb$(" CREATE TRIGGER ch_ins_523 AFTER INSERT ON CourseAssignmentMark BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 523 AS chTableId, NEW.camUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 523 AND chEntityPk = NEW.camUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_523 AFTER UPDATE ON CourseAssignmentMark BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 523 AS chTableId, NEW.camUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 523 AND chEntityPk = NEW.camUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_523 AFTER DELETE ON CourseAssignmentMark BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 523 AS chTableId, OLD.camUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 523 AND chEntityPk = OLD.camUid); END "),e.add_11rb$("CREATE VIEW CourseAssignmentMark_ReceiveView AS SELECT CourseAssignmentMark.*, CourseAssignmentMarkReplicate.* FROM CourseAssignmentMark LEFT JOIN CourseAssignmentMarkReplicate ON CourseAssignmentMarkReplicate.camPk = CourseAssignmentMark.camUid "),e.add_11rb$(" CREATE TRIGGER courseassignmentmark_remote_insert_ins INSTEAD OF INSERT ON CourseAssignmentMark_ReceiveView FOR EACH ROW BEGIN REPLACE INTO CourseAssignmentMark(camUid, camAssignmentUid, camSubmitterUid, camMark, camPenalty, camLct) VALUES (NEW.camUid, NEW.camAssignmentUid, NEW.camSubmitterUid, NEW.camMark, NEW.camPenalty, NEW.camLct) /*psql ON CONFLICT (camUid) DO UPDATE SET camAssignmentUid = EXCLUDED.camAssignmentUid, camSubmitterUid = EXCLUDED.camSubmitterUid, camMark = EXCLUDED.camMark, camPenalty = EXCLUDED.camPenalty, camLct = EXCLUDED.camLct */; END "),e.add_11rb$(" CREATE TRIGGER ch_ins_522 AFTER INSERT ON CourseAssignmentSubmission BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 522 AS chTableId, NEW.casUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 522 AND chEntityPk = NEW.casUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_522 AFTER UPDATE ON CourseAssignmentSubmission BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 522 AS chTableId, NEW.casUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 522 AND chEntityPk = NEW.casUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_522 AFTER DELETE ON CourseAssignmentSubmission BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 522 AS chTableId, OLD.casUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 522 AND chEntityPk = OLD.casUid); END "),e.add_11rb$("CREATE VIEW CourseAssignmentSubmission_ReceiveView AS SELECT CourseAssignmentSubmission.*, CourseAssignmentSubmissionReplicate.* FROM CourseAssignmentSubmission LEFT JOIN CourseAssignmentSubmissionReplicate ON CourseAssignmentSubmissionReplicate.casPk = CourseAssignmentSubmission.casUid "),e.add_11rb$(" CREATE TRIGGER courseassignmentsubmission_remote_insert_ins INSTEAD OF INSERT ON CourseAssignmentSubmission_ReceiveView FOR EACH ROW BEGIN REPLACE INTO CourseAssignmentSubmission(casUid, casAssignmentUid, casSubmitterUid, casSubmitterPersonUid, casText, casType, casTimestamp) VALUES (NEW.casUid, NEW.casAssignmentUid, NEW.casSubmitterUid, NEW.casSubmitterPersonUid, NEW.casText, NEW.casType, NEW.casTimestamp) /*psql ON CONFLICT (casUid) DO UPDATE SET casAssignmentUid = EXCLUDED.casAssignmentUid, casSubmitterUid = EXCLUDED.casSubmitterUid, casSubmitterPersonUid = EXCLUDED.casSubmitterPersonUid, casText = EXCLUDED.casText, casType = EXCLUDED.casType, casTimestamp = EXCLUDED.casTimestamp */; END "),e.add_11rb$(" CREATE TRIGGER ch_ins_90 AFTER INSERT ON CourseAssignmentSubmissionAttachment BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 90 AS chTableId, NEW.casaUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 90 AND chEntityPk = NEW.casaUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_90 AFTER UPDATE ON CourseAssignmentSubmissionAttachment BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 90 AS chTableId, NEW.casaUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 90 AND chEntityPk = NEW.casaUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_90 AFTER DELETE ON CourseAssignmentSubmissionAttachment BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 90 AS chTableId, OLD.casaUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 90 AND chEntityPk = OLD.casaUid); END "),e.add_11rb$("CREATE VIEW CourseAssignmentSubmissionAttachment_ReceiveView AS SELECT CourseAssignmentSubmissionAttachment.*, CourseAssignmentSubmissionAttachmentReplicate.* FROM CourseAssignmentSubmissionAttachment LEFT JOIN CourseAssignmentSubmissionAttachmentReplicate ON CourseAssignmentSubmissionAttachmentReplicate.casaPk = CourseAssignmentSubmissionAttachment.casaUid "),e.add_11rb$(" CREATE TRIGGER courseassignmentsubmissionattachment_remote_insert_ins INSTEAD OF INSERT ON CourseAssignmentSubmissionAttachment_ReceiveView FOR EACH ROW BEGIN REPLACE INTO CourseAssignmentSubmissionAttachment(casaUid, casaSubmissionUid, casaMimeType, casaUri, casaMd5, casaSize, casaTimestamp) VALUES (NEW.casaUid, NEW.casaSubmissionUid, NEW.casaMimeType, NEW.casaUri, NEW.casaMd5, NEW.casaSize, NEW.casaTimestamp) /*psql ON CONFLICT (casaUid) DO UPDATE SET casaSubmissionUid = EXCLUDED.casaSubmissionUid, casaMimeType = EXCLUDED.casaMimeType, casaUri = EXCLUDED.casaUri, casaMd5 = EXCLUDED.casaMd5, casaSize = EXCLUDED.casaSize, casaTimestamp = EXCLUDED.casaTimestamp */; END ");var n=S("\n |\n | CREATE TRIGGER ATTUPD_CourseAssignmentSubmissionAttachment\n | AFTER UPDATE ON CourseAssignmentSubmissionAttachment FOR EACH ROW WHEN\n | OLD.casaMd5 IS NOT NULL\n | BEGIN\n | \n | INSERT INTO ZombieAttachmentData(zaUri) \n | SELECT OLD.casaUri AS zaUri\n | FROM CourseAssignmentSubmissionAttachment \n | WHERE CourseAssignmentSubmissionAttachment.casaUid = OLD.casaUid\n | AND (SELECT COUNT(*) \n | FROM CourseAssignmentSubmissionAttachment\n | WHERE casaMd5 = OLD.casaMd5) = 0\n | ; \n | END\n | \n ");e.add_11rb$(n),e.add_11rb$(" CREATE TRIGGER ch_ins_124 AFTER INSERT ON CourseBlock BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 124 AS chTableId, NEW.cbUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 124 AND chEntityPk = NEW.cbUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_124 AFTER UPDATE ON CourseBlock BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 124 AS chTableId, NEW.cbUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 124 AND chEntityPk = NEW.cbUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_124 AFTER DELETE ON CourseBlock BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 124 AS chTableId, OLD.cbUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 124 AND chEntityPk = OLD.cbUid); END "),e.add_11rb$("CREATE VIEW CourseBlock_ReceiveView AS SELECT CourseBlock.*, CourseBlockReplicate.* FROM CourseBlock LEFT JOIN CourseBlockReplicate ON CourseBlockReplicate.cbPk = CourseBlock.cbUid "),e.add_11rb$(" CREATE TRIGGER courseblock_remote_insert_ins INSTEAD OF INSERT ON CourseBlock_ReceiveView FOR EACH ROW BEGIN REPLACE INTO CourseBlock(cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints,cbMinPoints, cbIndex, cbClazzUid, cbActive,cbHidden, cbEntityUid, cbLct) VALUES (NEW.cbUid, NEW.cbType, NEW.cbIndentLevel, NEW.cbModuleParentBlockUid, NEW.cbTitle, NEW.cbDescription, NEW.cbCompletionCriteria, NEW.cbHideUntilDate, NEW.cbDeadlineDate, NEW.cbLateSubmissionPenalty, NEW.cbGracePeriodDate, NEW.cbMaxPoints,NEW.cbMinPoints, NEW.cbIndex, NEW.cbClazzUid,NEW.cbActive, NEW.cbHidden, NEW.cbEntityUid, NEW.cbLct) /*psql ON CONFLICT (cbUid) DO UPDATE SET cbType = EXCLUDED.cbType, cbIndentLevel = EXCLUDED.cbIndentLevel, cbModuleParentBlockUid = EXCLUDED.cbModuleParentBlockUid, cbTitle = EXCLUDED.cbTitle, cbDescription = EXCLUDED.cbDescription, cbCompletionCriteria = EXCLUDED.cbCompletionCriteria, cbHideUntilDate = EXCLUDED.cbHideUntilDate,cbDeadlineDate = EXCLUDED.cbDeadlineDate, cbLateSubmissionPenalty = EXCLUDED.cbLateSubmissionPenalty, cbGracePeriodDate= EXCLUDED.cbGracePeriodDate, cbMaxPoints = EXCLUDED.cbMaxPoints, cbMinPoints = EXCLUDED.cbMinPoints, cbIndex = EXCLUDED.cbIndex,cbClazzUid = EXCLUDED.cbClazzUid, cbActive = EXCLUDED.cbActive, cbHidden = EXCLUDED.cbHidden, cbEntityUid = EXCLUDED.cbEntityUid, cbLct = EXCLUDED.cbLct */; END "),e.add_11rb$(" CREATE TRIGGER ch_ins_130 AFTER INSERT ON CourseDiscussion BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 130 AS chTableId, NEW.courseDiscussionUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 130 AND chEntityPk = NEW.courseDiscussionUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_130 AFTER UPDATE ON CourseDiscussion BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 130 AS chTableId, NEW.courseDiscussionUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 130 AND chEntityPk = NEW.courseDiscussionUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_130 AFTER DELETE ON CourseDiscussion BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 130 AS chTableId, OLD.courseDiscussionUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 130 AND chEntityPk = OLD.courseDiscussionUid); END "),e.add_11rb$("CREATE VIEW CourseDiscussion_ReceiveView AS SELECT CourseDiscussion.*, CourseDiscussionReplicate.* FROM CourseDiscussion LEFT JOIN CourseDiscussionReplicate ON CourseDiscussionReplicate.courseDiscussionPk = CourseDiscussion.courseDiscussionUid "),e.add_11rb$(" CREATE TRIGGER coursediscussion_remote_insert_ins INSTEAD OF INSERT ON CourseDiscussion_ReceiveView FOR EACH ROW BEGIN REPLACE INTO CourseDiscussion(courseDiscussionUid, courseDiscussionActive, courseDiscussionTitle, courseDiscussionDesc, courseDiscussionClazzUid, courseDiscussionLct) VALUES(NEW.courseDiscussionUid, NEW.courseDiscussionActive, NEW.courseDiscussionTitle, NEW.courseDiscussionDesc, NEW.courseDiscussionClazzUid, NEW.courseDiscussionLct) /*psql ON CONFLICT (courseDiscussionUid) DO UPDATE SET courseDiscussionActive = EXCLUDED.courseDiscussionActive, courseDiscussionTitle = EXCLUDED.courseDiscussionTitle, courseDiscussionDesc = EXCLUDED.courseDiscussionDesc, courseDiscussionClazzUid = EXCLUDED.courseDiscussionClazzUid, courseDiscussionLct = EXCLUDED.courseDiscussionLct */ ; END "),e.add_11rb$(" CREATE TRIGGER ch_ins_243 AFTER INSERT ON CourseGroupMember BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 243 AS chTableId, NEW.cgmUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 243 AND chEntityPk = NEW.cgmUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_243 AFTER UPDATE ON CourseGroupMember BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 243 AS chTableId, NEW.cgmUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 243 AND chEntityPk = NEW.cgmUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_243 AFTER DELETE ON CourseGroupMember BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 243 AS chTableId, OLD.cgmUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 243 AND chEntityPk = OLD.cgmUid); END "),e.add_11rb$("CREATE VIEW CourseGroupMember_ReceiveView AS SELECT CourseGroupMember.*, CourseGroupMemberReplicate.* FROM CourseGroupMember LEFT JOIN CourseGroupMemberReplicate ON CourseGroupMemberReplicate.cgmPk = CourseGroupMember.cgmUid "),e.add_11rb$(" CREATE TRIGGER coursegroupmember_remote_insert_ins INSTEAD OF INSERT ON CourseGroupMember_ReceiveView FOR EACH ROW BEGIN REPLACE INTO CourseGroupMember(cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct) VALUES (NEW.cgmUid, NEW.cgmSetUid, NEW.cgmGroupNumber, NEW.cgmPersonUid, NEW.cgmLct) /*psql ON CONFLICT (cgmUid) DO UPDATE SET cgmSetUid = EXCLUDED.cgmSetUid, cgmGroupNumber = EXCLUDED.cgmGroupNumber, cgmPersonUid = EXCLUDED.cgmPersonUid, cgmLct = EXCLUDED.cgmLct */; END "),e.add_11rb$(" CREATE TRIGGER ch_ins_242 AFTER INSERT ON CourseGroupSet BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 242 AS chTableId, NEW.cgsUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 242 AND chEntityPk = NEW.cgsUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_242 AFTER UPDATE ON CourseGroupSet BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 242 AS chTableId, NEW.cgsUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 242 AND chEntityPk = NEW.cgsUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_242 AFTER DELETE ON CourseGroupSet BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 242 AS chTableId, OLD.cgsUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 242 AND chEntityPk = OLD.cgsUid); END "),e.add_11rb$("CREATE VIEW CourseGroupSet_ReceiveView AS SELECT CourseGroupSet.*, CourseGroupSetReplicate.* FROM CourseGroupSet LEFT JOIN CourseGroupSetReplicate ON CourseGroupSetReplicate.cgsPk = CourseGroupSet.cgsUid "),e.add_11rb$(" CREATE TRIGGER coursegroupset_remote_insert_ins INSTEAD OF INSERT ON CourseGroupSet_ReceiveView FOR EACH ROW BEGIN REPLACE INTO CourseGroupSet(cgsUid, cgsName, cgsTotalGroups, cgsActive, cgsClazzUid, cgsLct) VALUES (NEW.cgsUid, NEW.cgsName, NEW.cgsTotalGroups, NEW.cgsActive, NEW.cgsClazzUid, NEW.cgsLct) /*psql ON CONFLICT (cgsUid) DO UPDATE SET cgsName = EXCLUDED.cgsName, cgsTotalGroups = EXCLUDED.cgsTotalGroups, cgsActive = EXCLUDED.cgsActive, cgsClazzUid = EXCLUDED.cgsClazzUid, cgsLct = EXCLUDED.cgsLct */; END "),e.add_11rb$(" CREATE TRIGGER ch_ins_125 AFTER INSERT ON CoursePicture BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 125 AS chTableId, NEW.coursePictureUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 125 AND chEntityPk = NEW.coursePictureUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_125 AFTER UPDATE ON CoursePicture BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 125 AS chTableId, NEW.coursePictureUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 125 AND chEntityPk = NEW.coursePictureUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_125 AFTER DELETE ON CoursePicture BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 125 AS chTableId, OLD.coursePictureUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 125 AND chEntityPk = OLD.coursePictureUid); END "),e.add_11rb$("CREATE VIEW CoursePicture_ReceiveView AS SELECT CoursePicture.*, CoursePictureReplicate.* FROM CoursePicture LEFT JOIN CoursePictureReplicate ON CoursePictureReplicate.cpPk = CoursePicture.coursePictureUid "),e.add_11rb$(" CREATE TRIGGER coursepicture_remote_insert_ins INSTEAD OF INSERT ON CoursePicture_ReceiveView FOR EACH ROW BEGIN REPLACE INTO CoursePicture(coursePictureUid, coursePictureClazzUid, coursePictureMasterCsn, coursePictureLocalCsn, coursePictureLastChangedBy, coursePictureLct, coursePictureUri, coursePictureMd5, coursePictureFileSize, coursePictureTimestamp, coursePictureMimeType, coursePictureActive) VALUES (NEW.coursePictureUid, NEW.coursePictureClazzUid, NEW.coursePictureMasterCsn, NEW.coursePictureLocalCsn, NEW.coursePictureLastChangedBy, NEW.coursePictureLct, NEW.coursePictureUri, NEW.coursePictureMd5, NEW.coursePictureFileSize, NEW.coursePictureTimestamp, NEW.coursePictureMimeType, NEW.coursePictureActive) /*psql ON CONFLICT (coursePictureUid) DO UPDATE SET coursePictureClazzUid = EXCLUDED.coursePictureClazzUid, coursePictureMasterCsn = EXCLUDED.coursePictureMasterCsn, coursePictureLocalCsn = EXCLUDED.coursePictureLocalCsn, coursePictureLastChangedBy = EXCLUDED.coursePictureLastChangedBy, coursePictureLct = EXCLUDED.coursePictureLct, coursePictureUri = EXCLUDED.coursePictureUri, coursePictureMd5 = EXCLUDED.coursePictureMd5, coursePictureFileSize = EXCLUDED.coursePictureFileSize, coursePictureTimestamp = EXCLUDED.coursePictureTimestamp, coursePictureMimeType = EXCLUDED.coursePictureMimeType, coursePictureActive = EXCLUDED.coursePictureActive */; END ");var i=S("\n |\n | CREATE TRIGGER ATTUPD_CoursePicture\n | AFTER UPDATE ON CoursePicture FOR EACH ROW WHEN\n | OLD.coursePictureMd5 IS NOT NULL\n | BEGIN\n | \n | INSERT INTO ZombieAttachmentData(zaUri) \n | SELECT OLD.coursePictureUri AS zaUri\n | FROM CoursePicture \n | WHERE CoursePicture.coursePictureUid = OLD.coursePictureUid\n | AND (SELECT COUNT(*) \n | FROM CoursePicture\n | WHERE coursePictureMd5 = OLD.coursePictureMd5) = 0\n | ; \n | END\n | \n ");e.add_11rb$(i),e.add_11rb$(" CREATE TRIGGER ch_ins_450 AFTER INSERT ON CourseTerminology BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 450 AS chTableId, NEW.ctUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 450 AND chEntityPk = NEW.ctUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_450 AFTER UPDATE ON CourseTerminology BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 450 AS chTableId, NEW.ctUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 450 AND chEntityPk = NEW.ctUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_450 AFTER DELETE ON CourseTerminology BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 450 AS chTableId, OLD.ctUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 450 AND chEntityPk = OLD.ctUid); END "),e.add_11rb$("CREATE VIEW CourseTerminology_ReceiveView AS SELECT CourseTerminology.*, CourseTerminologyReplicate.* FROM CourseTerminology LEFT JOIN CourseTerminologyReplicate ON CourseTerminologyReplicate.ctPk = CourseTerminology.ctUid "),e.add_11rb$(" CREATE TRIGGER courseterminology_remote_insert_ins INSTEAD OF INSERT ON CourseTerminology_ReceiveView FOR EACH ROW BEGIN REPLACE INTO CourseTerminology(ctUid, ctTitle, ctTerminology, ctLct) VALUES (NEW.ctUid, NEW.ctTitle, NEW.ctTerminology, NEW.ctLct) /*psql ON CONFLICT (ctUid) DO UPDATE SET ctTitle = EXCLUDED.ctTitle, ctTerminology = EXCLUDED.ctTerminology, ctLct = EXCLUDED.ctLct */; END "),e.add_11rb$(" CREATE TRIGGER ch_ins_132 AFTER INSERT ON DiscussionPost BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 132 AS chTableId, NEW.discussionPostUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 132 AND chEntityPk = NEW.discussionPostUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_132 AFTER UPDATE ON DiscussionPost BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 132 AS chTableId, NEW.discussionPostUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 132 AND chEntityPk = NEW.discussionPostUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_132 AFTER DELETE ON DiscussionPost BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 132 AS chTableId, OLD.discussionPostUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 132 AND chEntityPk = OLD.discussionPostUid); END "),e.add_11rb$("CREATE VIEW DiscussionPost_ReceiveView AS SELECT DiscussionPost.*, DiscussionPostReplicate.* FROM DiscussionPost LEFT JOIN DiscussionPostReplicate ON DiscussionPostReplicate.discussionPostPk = DiscussionPost.discussionPostUid "),e.add_11rb$(" CREATE TRIGGER discussionpost_remote_insert_ins INSTEAD OF INSERT ON DiscussionPost_ReceiveView FOR EACH ROW BEGIN REPLACE INTO DiscussionPost(discussionPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostDiscussionTopicUid, discussionPostVisible, discussionPostArchive, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct) VALUES(NEW.discussionPostUid, NEW.discussionPostTitle, NEW.discussionPostMessage, NEW.discussionPostStartDate, NEW.discussionPostDiscussionTopicUid, NEW.discussionPostVisible, NEW.discussionPostArchive, NEW.discussionPostStartedPersonUid, NEW.discussionPostClazzUid, NEW.discussionPostLct) /*psql ON CONFLICT (discussionPostUid) DO UPDATE SET discussionPostTitle = EXCLUDED.discussionPostTitle , discussionPostMessage = EXCLUDED.discussionPostMessage , discussionPostStartDate = EXCLUDED.discussionPostStartDate , discussionPostDiscussionTopicUid = EXCLUDED.discussionPostDiscussionTopicUid, discussionPostVisible = EXCLUDED.discussionPostVisible , discussionPostArchive = EXCLUDED.discussionPostArchive , discussionPostStartedPersonUid = EXCLUDED.discussionPostStartedPersonUid , discussionPostClazzUid = EXCLUDED.discussionPostClazzUid, discussionPostLct = EXCLUDED.discussionPostLct */ ; END "),e.add_11rb$(" CREATE TRIGGER ch_ins_131 AFTER INSERT ON DiscussionTopic BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 131 AS chTableId, NEW.discussionTopicUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 131 AND chEntityPk = NEW.discussionTopicUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_131 AFTER UPDATE ON DiscussionTopic BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 131 AS chTableId, NEW.discussionTopicUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 131 AND chEntityPk = NEW.discussionTopicUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_131 AFTER DELETE ON DiscussionTopic BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 131 AS chTableId, OLD.discussionTopicUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 131 AND chEntityPk = OLD.discussionTopicUid); END "),e.add_11rb$("CREATE VIEW DiscussionTopic_ReceiveView AS SELECT DiscussionTopic.*, DiscussionTopicReplicate.* FROM DiscussionTopic LEFT JOIN DiscussionTopicReplicate ON DiscussionTopicReplicate.discussionTopicPk = DiscussionTopic.discussionTopicUid "),e.add_11rb$(" CREATE TRIGGER discussiontopic_remote_insert_ins INSTEAD OF INSERT ON DiscussionTopic_ReceiveView FOR EACH ROW BEGIN REPLACE INTO DiscussionTopic(discussionTopicUid, discussionTopicTitle, discussionTopicDesc, discussionTopicStartDate, discussionTopicCourseDiscussionUid, discussionTopicVisible, discussionTopicArchive, discussionTopicIndex, discussionTopicClazzUid, discussionTopicLct) VALUES(NEW.discussionTopicUid, NEW.discussionTopicTitle, NEW.discussionTopicDesc, NEW.discussionTopicStartDate, NEW.discussionTopicCourseDiscussionUid, NEW.discussionTopicVisible, NEW.discussionTopicArchive, NEW.discussionTopicIndex, NEW.discussionTopicClazzUid, NEW.discussionTopicLct) /*psql ON CONFLICT (discussionTopicUid) DO UPDATE SET discussionTopicTitle = EXCLUDED.discussionTopicTitle, discussionTopicDesc = EXCLUDED.discussionTopicDesc, discussionTopicStartDate = EXCLUDED.discussionTopicStartDate, discussionTopicCourseDiscussionUid = EXCLUDED.discussionTopicCourseDiscussionUid, discussionTopicVisible = EXCLUDED.discussionTopicVisible, discussionTopicArchive = EXCLUDED.discussionTopicArchive, discussionTopicIndex = EXCLUDED.discussionTopicIndex, discussionTopicClazzUid = EXCLUDED.discussionTopicClazzUid, discussionTopicLct = EXCLUDED.discussionTopicLct */ ; END "),e.add_11rb$(" CREATE TRIGGER ch_ins_126 AFTER INSERT ON Message BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 126 AS chTableId, NEW.messageUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 126 AND chEntityPk = NEW.messageUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_126 AFTER UPDATE ON Message BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 126 AS chTableId, NEW.messageUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 126 AND chEntityPk = NEW.messageUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_126 AFTER DELETE ON Message BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 126 AS chTableId, OLD.messageUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 126 AND chEntityPk = OLD.messageUid); END "),e.add_11rb$("CREATE VIEW Message_ReceiveView AS SELECT Message.*, MessageReplicate.* FROM Message LEFT JOIN MessageReplicate ON MessageReplicate.messagePk = Message.messageUid "),e.add_11rb$(" CREATE TRIGGER message_remote_insert_ins INSTEAD OF INSERT ON Message_ReceiveView FOR EACH ROW BEGIN REPLACE INTO Message(messageUid, messageSenderPersonUid, messageTableId, messageEntityUid, messageText, messageTimestamp, messageClazzUid, messageLct) VALUES(NEW.messageUid, NEW.messageSenderPersonUid, NEW.messageTableId, NEW.messageEntityUid, NEW.messageText, NEW.messageTimestamp, NEW.messageClazzUid, NEW.messageLct) /*psql ON CONFLICT (messageUid) DO UPDATE SET messageSenderPersonUid = EXCLUDED.messageSenderPersonUid, messageTableId = EXCLUDED.messageTableId, messageEntityUid = EXCLUDED.messageEntityUid, messageText = EXCLUDED.messageText, messageTimestamp = EXCLUDED.messageTimestamp, messageClazzUid = EXCLUDED.messageClazzUid, messageLct = EXCLUDED.messageLct */ ; END "),e.add_11rb$(" CREATE TRIGGER ch_ins_129 AFTER INSERT ON MessageRead BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 129 AS chTableId, NEW.messageReadUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 129 AND chEntityPk = NEW.messageReadUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_129 AFTER UPDATE ON MessageRead BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 129 AS chTableId, NEW.messageReadUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 129 AND chEntityPk = NEW.messageReadUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_129 AFTER DELETE ON MessageRead BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 129 AS chTableId, OLD.messageReadUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 129 AND chEntityPk = OLD.messageReadUid); END "),e.add_11rb$("CREATE VIEW MessageRead_ReceiveView AS SELECT MessageRead.*, MessageReadReplicate.* FROM MessageRead LEFT JOIN MessageReadReplicate ON MessageReadReplicate.messageReadPk = MessageRead.messageReadUid "),e.add_11rb$(" CREATE TRIGGER messageread_remote_insert_ins INSTEAD OF INSERT ON MessageRead_ReceiveView FOR EACH ROW BEGIN REPLACE INTO MessageRead(messageReadUid, messageReadPersonUid, messageReadMessageUid, messageReadEntityUid, messageReadLct) VALUES(NEW.messageReadUid, NEW.messageReadPersonUid, NEW.messageReadMessageUid, NEW.messageReadEntityUid, NEW.messageReadLct) /*psql ON CONFLICT (messageReadUid) DO UPDATE SET messageReadPersonUid = EXCLUDED.messageReadPersonUid, messageReadMessageUid = EXCLUDED.messageReadMessageUid, messageReadEntityUid = EXCLUDED.messageReadEntityUid, messageReadLct = EXCLUDED.messageReadLct */ ; END "),e.add_11rb$("DROP VIEW IF EXISTS ClazzAssignment_ReceiveView"),e.add_11rb$("DROP TRIGGER IF EXISTS clazzassignment_remote_insert_ins"),e.add_11rb$("DROP TRIGGER IF EXISTS ch_ins_521"),e.add_11rb$("DROP TRIGGER IF EXISTS ch_upd_521"),e.add_11rb$("DROP TRIGGER IF EXISTS ch_del_521"),e.add_11rb$("CREATE VIEW ClazzAssignment_ReceiveView AS SELECT ClazzAssignment.*, ClazzAssignmentReplicate.* FROM ClazzAssignment LEFT JOIN ClazzAssignmentReplicate ON ClazzAssignmentReplicate.caPk = ClazzAssignment.caUid "),e.add_11rb$(" CREATE TRIGGER clazzassignment_remote_insert_ins INSTEAD OF INSERT ON ClazzAssignment_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ClazzAssignment(caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct) VALUES (NEW.caUid, NEW.caTitle, NEW.caDescription, NEW.caGroupUid, NEW.caActive, NEW.caClassCommentEnabled, NEW.caPrivateCommentsEnabled, NEW.caRequireFileSubmission, NEW.caFileType, NEW.caSizeLimit, NEW.caNumberOfFiles, NEW.caSubmissionPolicy, NEW.caMarkingType,NEW.caRequireTextSubmission, NEW.caTextLimitType, NEW.caTextLimit, NEW.caXObjectUid, NEW.caClazzUid, NEW.caLocalChangeSeqNum, NEW.caMasterChangeSeqNum, NEW.caLastChangedBy, NEW.caLct) /*psql ON CONFLICT (caUid) DO UPDATE SET caTitle = EXCLUDED.caTitle, caDescription = EXCLUDED.caDescription, caGroupUid = EXCLUDED.caGroupUid, caActive = EXCLUDED.caActive, caClassCommentEnabled = EXCLUDED.caClassCommentEnabled, caPrivateCommentsEnabled = EXCLUDED.caPrivateCommentsEnabled, caRequireFileSubmission = EXCLUDED.caRequireFileSubmission, caFileType = EXCLUDED.caFileType, caSizeLimit = EXCLUDED.caSizeLimit, caNumberOfFiles = EXCLUDED.caNumberOfFiles, caSubmissionPolicy = EXCLUDED.caSubmissionPolicy, caMarkingType = EXCLUDED.caMarkingType, caRequireTextSubmission = EXCLUDED.caRequireTextSubmission, caTextLimitType = EXCLUDED.caTextLimitType, caTextLimit = EXCLUDED.caTextLimit, caXObjectUid = EXCLUDED.caXObjectUid, caClazzUid = EXCLUDED.caClazzUid, caLocalChangeSeqNum = EXCLUDED.caLocalChangeSeqNum, caMasterChangeSeqNum = EXCLUDED.caMasterChangeSeqNum, caLastChangedBy = EXCLUDED.caLastChangedBy, caLct = EXCLUDED.caLct */; END "),e.add_11rb$(" CREATE TRIGGER ch_ins_521 AFTER INSERT ON ClazzAssignmentContentJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 521 AS chTableId, NEW.cacjUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 521 AND chEntityPk = NEW.cacjUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_521 AFTER UPDATE ON ClazzAssignmentContentJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 521 AS chTableId, NEW.cacjUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 521 AND chEntityPk = NEW.cacjUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_521 AFTER DELETE ON ClazzAssignmentContentJoin BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 521 AS chTableId, OLD.cacjUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 521 AND chEntityPk = OLD.cacjUid); END "),e.add_11rb$("DROP VIEW IF EXISTS ClazzAssignmentContentJoin_ReceiveView"),e.add_11rb$("DROP TRIGGER IF EXISTS clazzassignmentcontentjoin_remote_insert_ins"),e.add_11rb$("DROP TRIGGER IF EXISTS ch_ins_522"),e.add_11rb$("DROP TRIGGER IF EXISTS ch_upd_522"),e.add_11rb$("DROP TRIGGER IF EXISTS ch_del_522"),e.add_11rb$("DROP VIEW IF EXISTS Comments_ReceiveView"),e.add_11rb$("DROP TRIGGER IF EXISTS comments_remote_insert_ins"),e.add_11rb$("DROP TRIGGER IF EXISTS ch_ins_101"),e.add_11rb$("DROP TRIGGER IF EXISTS ch_upd_101"),e.add_11rb$("DROP TRIGGER IF EXISTS ch_del_101"),e.add_11rb$("CREATE VIEW Comments_ReceiveView AS SELECT Comments.*, CommentsReplicate.* FROM Comments LEFT JOIN CommentsReplicate ON CommentsReplicate.commentsPk = Comments.commentsUid "),e.add_11rb$(" CREATE TRIGGER comments_remote_insert_ins INSTEAD OF INSERT ON Comments_ReceiveView FOR EACH ROW BEGIN REPLACE INTO Comments(commentsUid, commentsText, commentsEntityType, commentsEntityUid, commentsPublic, commentsStatus, commentsPersonUid, commentsToPersonUid, commentSubmitterUid, commentsFlagged, commentsInActive, commentsDateTimeAdded, commentsDateTimeUpdated, commentsMCSN, commentsLCSN, commentsLCB, commentsLct) VALUES (NEW.commentsUid, NEW.commentsText, NEW.commentsEntityType, NEW.commentsEntityUid, NEW.commentsPublic, NEW.commentsStatus, NEW.commentsPersonUid, NEW.commentsToPersonUid, NEW.commentSubmitterUid, NEW.commentsFlagged, NEW.commentsInActive, NEW.commentsDateTimeAdded, NEW.commentsDateTimeUpdated, NEW.commentsMCSN, NEW.commentsLCSN, NEW.commentsLCB, NEW.commentsLct) /*psql ON CONFLICT (commentsUid) DO UPDATE SET commentsText = EXCLUDED.commentsText, commentsEntityType = EXCLUDED.commentsEntityType, commentsEntityUid = EXCLUDED.commentsEntityUid, commentsPublic = EXCLUDED.commentsPublic, commentsStatus = EXCLUDED.commentsStatus, commentsPersonUid = EXCLUDED.commentsPersonUid, commentsToPersonUid = EXCLUDED.commentsToPersonUid, commentSubmitterUid = EXCLUDED.commentSubmitterUid, commentsFlagged = EXCLUDED.commentsFlagged, commentsInActive = EXCLUDED.commentsInActive, commentsDateTimeAdded = EXCLUDED.commentsDateTimeAdded, commentsDateTimeUpdated = EXCLUDED.commentsDateTimeUpdated, commentsMCSN = EXCLUDED.commentsMCSN, commentsLCSN = EXCLUDED.commentsLCSN, commentsLCB = EXCLUDED.commentsLCB, commentsLct = EXCLUDED.commentsLct */; END "),e.add_11rb$(" CREATE TRIGGER ch_ins_101 AFTER INSERT ON Report BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 101 AS chTableId, NEW.reportUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 101 AND chEntityPk = NEW.reportUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_101 AFTER UPDATE ON Report BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 101 AS chTableId, NEW.reportUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 101 AND chEntityPk = NEW.reportUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_101 AFTER DELETE ON Report BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 101 AS chTableId, OLD.reportUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 101 AND chEntityPk = OLD.reportUid); END ")}else{e.add_11rb$("CREATE TABLE IF NOT EXISTS Chat ( chatStartDate BIGINT NOT NULL , chatTitle TEXT , chatGroup BOOL NOT NULL , chatLct BIGINT NOT NULL , chatUid BIGSERIAL PRIMARY KEY NOT NULL )"),e.add_11rb$("CREATE TABLE IF NOT EXISTS ChatMember ( chatMemberChatUid BIGINT NOT NULL , chatMemberPersonUid BIGINT NOT NULL , chatMemberJoinedDate BIGINT NOT NULL , chatMemberLeftDate BIGINT NOT NULL , chatMemberLct BIGINT NOT NULL , chatMemberUid BIGSERIAL PRIMARY KEY NOT NULL )"),e.add_11rb$("CREATE TABLE IF NOT EXISTS ChatReplicate ( chatPk BIGINT NOT NULL , chatVersionId BIGINT NOT NULL DEFAULT 0 , chatDestination BIGINT NOT NULL , chatPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (chatPk, chatDestination) )"),e.add_11rb$("CREATE INDEX index_ChatReplicate_chatPk_chatDestination_chatVersionId ON ChatReplicate (chatPk, chatDestination, chatVersionId)"),e.add_11rb$("CREATE INDEX index_ChatReplicate_chatDestination_chatPending ON ChatReplicate (chatDestination, chatPending)"),e.add_11rb$("CREATE TABLE IF NOT EXISTS ChatMemberReplicate ( chatMemberPk BIGINT NOT NULL , chatMemberVersionId BIGINT NOT NULL DEFAULT 0 , chatMemberDestination BIGINT NOT NULL , chatMemberPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (chatMemberPk, chatMemberDestination) )"),e.add_11rb$("CREATE INDEX index_ChatMemberReplicate_chatMemberPk_chatMemberDestination_chatMemberVersionId ON ChatMemberReplicate (chatMemberPk, chatMemberDestination, chatMemberVersionId)"),e.add_11rb$("CREATE INDEX index_ChatMemberReplicate_chatMemberDestination_chatMemberPending ON ChatMemberReplicate (chatMemberDestination, chatMemberPending)"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CourseAssignmentMark ( camAssignmentUid BIGINT NOT NULL , camSubmitterUid BIGINT NOT NULL , camMark FLOAT NOT NULL , camPenalty INTEGER NOT NULL , camLct BIGINT NOT NULL , camUid BIGSERIAL PRIMARY KEY NOT NULL )"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CourseAssignmentMarkReplicate ( camPk BIGINT NOT NULL , camVersionId BIGINT NOT NULL DEFAULT 0 , camDestination BIGINT NOT NULL , camPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (camPk, camDestination) )"),e.add_11rb$("CREATE INDEX index_CourseAssignmentMarkReplicate_camPk_camDestination_camVersionId ON CourseAssignmentMarkReplicate (camPk, camDestination, camVersionId)"),e.add_11rb$("CREATE INDEX index_CourseAssignmentMarkReplicate_camDestination_camPending ON CourseAssignmentMarkReplicate (camDestination, camPending)"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CourseAssignmentSubmission ( casAssignmentUid BIGINT NOT NULL , casSubmitterUid BIGINT NOT NULL , casSubmitterPersonUid BIGINT NOT NULL , casText TEXT , casType INTEGER NOT NULL , casTimestamp BIGINT NOT NULL , casUid BIGSERIAL PRIMARY KEY NOT NULL )"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CourseAssignmentSubmissionAttachment ( casaSubmissionUid BIGINT NOT NULL , casaMimeType TEXT , casaUri TEXT , casaMd5 TEXT , casaSize INTEGER NOT NULL , casaTimestamp BIGINT NOT NULL , casaUid BIGSERIAL PRIMARY KEY NOT NULL )"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CourseAssignmentSubmissionAttachmentReplicate ( casaPk BIGINT NOT NULL , casaVersionId BIGINT NOT NULL DEFAULT 0 , casaDestination BIGINT NOT NULL , casaPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (casaPk, casaDestination) )"),e.add_11rb$("CREATE INDEX index_CourseAssignmentSubmissionAttachmentReplicate_casaPk_casaDestination_casaVersionId ON CourseAssignmentSubmissionAttachmentReplicate (casaPk, casaDestination, casaVersionId)"),e.add_11rb$("CREATE INDEX index_CourseAssignmentSubmissionAttachmentReplicate_casaDestination_casaPending ON CourseAssignmentSubmissionAttachmentReplicate (casaDestination, casaPending)"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CourseAssignmentSubmissionReplicate ( casPk BIGINT NOT NULL , casVersionId BIGINT NOT NULL DEFAULT 0 , casDestination BIGINT NOT NULL , casPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (casPk, casDestination) )"),e.add_11rb$("CREATE INDEX index_CourseAssignmentSubmissionReplicate_casPk_casDestination_casVersionId ON CourseAssignmentSubmissionReplicate (casPk, casDestination, casVersionId)"),e.add_11rb$("CREATE INDEX index_CourseAssignmentSubmissionReplicate_casDestination_casPending ON CourseAssignmentSubmissionReplicate (casDestination, casPending)"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CourseBlock ( cbType INTEGER NOT NULL , cbIndentLevel INTEGER NOT NULL , cbModuleParentBlockUid BIGINT NOT NULL , cbTitle TEXT , cbDescription TEXT , cbCompletionCriteria INTEGER NOT NULL , cbHideUntilDate BIGINT NOT NULL , cbDeadlineDate BIGINT NOT NULL , cbLateSubmissionPenalty INTEGER NOT NULL , cbGracePeriodDate BIGINT NOT NULL , cbMaxPoints INTEGER NOT NULL , cbMinPoints INTEGER NOT NULL , cbIndex INTEGER NOT NULL , cbClazzUid BIGINT NOT NULL , cbActive BOOL NOT NULL , cbHidden BOOL NOT NULL , cbEntityUid BIGINT NOT NULL , cbLct BIGINT NOT NULL , cbUid BIGSERIAL PRIMARY KEY NOT NULL )"),e.add_11rb$("CREATE INDEX index_CourseBlock_cbClazzUid ON CourseBlock (cbClazzUid)"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CourseBlockReplicate ( cbPk BIGINT NOT NULL , cbVersionId BIGINT NOT NULL DEFAULT 0 , cbDestination BIGINT NOT NULL , cbPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (cbPk, cbDestination) )"),e.add_11rb$("CREATE INDEX index_CourseBlockReplicate_cbPk_cbDestination_cbVersionId ON CourseBlockReplicate (cbPk, cbDestination, cbVersionId)"),e.add_11rb$("CREATE INDEX index_CourseBlockReplicate_cbDestination_cbPending ON CourseBlockReplicate (cbDestination, cbPending)"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CourseDiscussion ( courseDiscussionTitle TEXT , courseDiscussionDesc TEXT , courseDiscussionClazzUid BIGINT NOT NULL , courseDiscussionActive BOOL NOT NULL , courseDiscussionLct BIGINT NOT NULL , courseDiscussionUid BIGSERIAL PRIMARY KEY NOT NULL )"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CourseDiscussionReplicate ( courseDiscussionPk BIGINT NOT NULL , courseDiscussionVersionId BIGINT NOT NULL DEFAULT 0 , courseDiscussionDestination BIGINT NOT NULL , courseDiscussionPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (courseDiscussionPk, courseDiscussionDestination) )"),e.add_11rb$("CREATE INDEX index_CourseDiscussionReplicate_courseDiscussionPk_courseDiscussionDestination_courseDiscussionVersionId ON CourseDiscussionReplicate (courseDiscussionPk, courseDiscussionDestination, courseDiscussionVersionId)"),e.add_11rb$("CREATE INDEX index_CourseDiscussionReplicate_courseDiscussionDestination_courseDiscussionPending ON CourseDiscussionReplicate (courseDiscussionDestination, courseDiscussionPending)"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CourseGroupMember ( cgmSetUid BIGINT NOT NULL , cgmGroupNumber INTEGER NOT NULL , cgmPersonUid BIGINT NOT NULL , cgmLct BIGINT NOT NULL , cgmUid BIGSERIAL PRIMARY KEY NOT NULL )"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CourseGroupMemberReplicate ( cgmPk BIGINT NOT NULL , cgmVersionId BIGINT NOT NULL DEFAULT 0 , cgmDestination BIGINT NOT NULL , cgmPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (cgmPk, cgmDestination) )"),e.add_11rb$("CREATE INDEX index_CourseGroupMemberReplicate_cgmPk_cgmDestination_cgmVersionId ON CourseGroupMemberReplicate (cgmPk, cgmDestination, cgmVersionId)"),e.add_11rb$("CREATE INDEX index_CourseGroupMemberReplicate_cgmDestination_cgmPending ON CourseGroupMemberReplicate (cgmDestination, cgmPending)"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CourseGroupSet ( cgsName TEXT , cgsTotalGroups INTEGER NOT NULL , cgsActive BOOL NOT NULL , cgsClazzUid BIGINT NOT NULL , cgsLct BIGINT NOT NULL , cgsUid BIGSERIAL PRIMARY KEY NOT NULL )"),e.add_11rb$("CREATE INDEX index_CourseGroupSet_cgsClazzUid ON CourseGroupSet (cgsClazzUid)"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CourseGroupSetReplicate ( cgsPk BIGINT NOT NULL , cgsVersionId BIGINT NOT NULL DEFAULT 0 , cgsDestination BIGINT NOT NULL , cgsPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (cgsPk, cgsDestination) )"),e.add_11rb$("CREATE INDEX index_CourseGroupSetReplicate_cgsPk_cgsDestination_cgsVersionId ON CourseGroupSetReplicate (cgsPk, cgsDestination, cgsVersionId)"),e.add_11rb$("CREATE INDEX index_CourseGroupSetReplicate_cgsDestination_cgsPending ON CourseGroupSetReplicate (cgsDestination, cgsPending)"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CoursePicture ( coursePictureClazzUid BIGINT NOT NULL , coursePictureMasterCsn BIGINT NOT NULL , coursePictureLocalCsn BIGINT NOT NULL , coursePictureLastChangedBy INTEGER NOT NULL , coursePictureLct BIGINT NOT NULL , coursePictureUri TEXT , coursePictureMd5 TEXT , coursePictureFileSize INTEGER NOT NULL , coursePictureTimestamp BIGINT NOT NULL , coursePictureMimeType TEXT , coursePictureActive BOOL NOT NULL , coursePictureUid BIGSERIAL PRIMARY KEY NOT NULL )"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CoursePictureReplicate ( cpPk BIGINT NOT NULL , cpVersionId BIGINT NOT NULL DEFAULT 0 , cpDestination BIGINT NOT NULL , cpPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (cpPk, cpDestination) )"),e.add_11rb$("CREATE INDEX index_CoursePictureReplicate_cpPk_cpDestination_cpVersionId ON CoursePictureReplicate (cpPk, cpDestination, cpVersionId)"),e.add_11rb$("CREATE INDEX index_CoursePictureReplicate_cpDestination_cpPending ON CoursePictureReplicate (cpDestination, cpPending)"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CourseTerminology ( ctTitle TEXT , ctTerminology TEXT , ctLct BIGINT NOT NULL , ctUid BIGSERIAL PRIMARY KEY NOT NULL )"),e.add_11rb$("CREATE TABLE IF NOT EXISTS CourseTerminologyReplicate ( ctPk BIGINT NOT NULL , ctVersionId BIGINT NOT NULL DEFAULT 0 , ctDestination BIGINT NOT NULL , ctPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (ctPk, ctDestination) )"),e.add_11rb$("CREATE INDEX index_CourseTerminologyReplicate_ctPk_ctDestination_ctVersionId ON CourseTerminologyReplicate (ctPk, ctDestination, ctVersionId)"),e.add_11rb$("CREATE INDEX index_CourseTerminologyReplicate_ctDestination_ctPending ON CourseTerminologyReplicate (ctDestination, ctPending)"),e.add_11rb$("CREATE TABLE IF NOT EXISTS DiscussionPost ( discussionPostTitle TEXT , discussionPostMessage TEXT , discussionPostStartDate BIGINT NOT NULL , discussionPostDiscussionTopicUid BIGINT NOT NULL , discussionPostVisible BOOL NOT NULL , discussionPostArchive BOOL NOT NULL , discussionPostStartedPersonUid BIGINT NOT NULL , discussionPostClazzUid BIGINT NOT NULL , discussionPostLct BIGINT NOT NULL , discussionPostUid BIGSERIAL PRIMARY KEY NOT NULL )"),e.add_11rb$("CREATE TABLE IF NOT EXISTS DiscussionPostReplicate ( discussionPostPk BIGINT NOT NULL , discussionPostVersionId BIGINT NOT NULL DEFAULT 0 , discussionPostDestination BIGINT NOT NULL , discussionPostPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (discussionPostPk, discussionPostDestination) )"),e.add_11rb$("CREATE INDEX index_DiscussionPostReplicate_discussionPostPk_discussionPostDestination_discussionPostVersionId ON DiscussionPostReplicate (discussionPostPk, discussionPostDestination, discussionPostVersionId)"),e.add_11rb$("CREATE INDEX index_DiscussionPostReplicate_discussionPostDestination_discussionPostPending ON DiscussionPostReplicate (discussionPostDestination, discussionPostPending)"),e.add_11rb$("CREATE TABLE IF NOT EXISTS DiscussionTopic ( discussionTopicTitle TEXT , discussionTopicDesc TEXT , discussionTopicStartDate BIGINT NOT NULL , discussionTopicCourseDiscussionUid BIGINT NOT NULL , discussionTopicVisible BOOL NOT NULL , discussionTopicArchive BOOL NOT NULL , discussionTopicIndex INTEGER NOT NULL , discussionTopicClazzUid BIGINT NOT NULL , discussionTopicLct BIGINT NOT NULL , discussionTopicUid BIGSERIAL PRIMARY KEY NOT NULL )"),e.add_11rb$("CREATE TABLE IF NOT EXISTS DiscussionTopicReplicate ( discussionTopicPk BIGINT NOT NULL , discussionTopicVersionId BIGINT NOT NULL DEFAULT 0 , discussionTopicDestination BIGINT NOT NULL , discussionTopicPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (discussionTopicPk, discussionTopicDestination) )"),e.add_11rb$("CREATE INDEX index_DiscussionTopicReplicate_discussionTopicPk_discussionTopicDestination_discussionTopicVersionId ON DiscussionTopicReplicate (discussionTopicPk, discussionTopicDestination, discussionTopicVersionId)"),e.add_11rb$("CREATE INDEX index_DiscussionTopicReplicate_discussionTopicDestination_discussionTopicPending ON DiscussionTopicReplicate (discussionTopicDestination, discussionTopicPending)"),e.add_11rb$("CREATE TABLE IF NOT EXISTS Message ( messageSenderPersonUid BIGINT NOT NULL , messageTableId INTEGER NOT NULL , messageEntityUid BIGINT NOT NULL , messageText TEXT , messageTimestamp BIGINT NOT NULL , messageClazzUid BIGINT NOT NULL , messageLct BIGINT NOT NULL , messageUid BIGSERIAL PRIMARY KEY NOT NULL )"),e.add_11rb$("CREATE TABLE IF NOT EXISTS MessageRead ( messageReadPersonUid BIGINT NOT NULL , messageReadMessageUid BIGINT NOT NULL , messageReadEntityUid BIGINT NOT NULL , messageReadLct BIGINT NOT NULL , messageReadUid BIGSERIAL PRIMARY KEY NOT NULL )"),e.add_11rb$("CREATE TABLE IF NOT EXISTS MessageReadReplicate ( messageReadPk BIGINT NOT NULL , messageReadVersionId BIGINT NOT NULL DEFAULT 0 , messageReadDestination BIGINT NOT NULL , messageReadPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (messageReadPk, messageReadDestination) )"),e.add_11rb$("CREATE INDEX index_MessageReadReplicate_messageReadPk_messageReadDestination_messageReadVersionId ON MessageReadReplicate (messageReadPk, messageReadDestination, messageReadVersionId)"),e.add_11rb$("CREATE INDEX index_MessageReadReplicate_messageReadDestination_messageReadPending ON MessageReadReplicate (messageReadDestination, messageReadPending)"),e.add_11rb$("CREATE TABLE IF NOT EXISTS MessageReplicate ( messagePk BIGINT NOT NULL , messageVersionId BIGINT NOT NULL DEFAULT 0 , messageDestination BIGINT NOT NULL , messagePending BOOL NOT NULL DEFAULT true, PRIMARY KEY (messagePk, messageDestination) )"),e.add_11rb$("CREATE INDEX index_MessageReplicate_messagePk_messageDestination_messageVersionId ON MessageReplicate (messagePk, messageDestination, messageVersionId)"),e.add_11rb$("CREATE INDEX index_MessageReplicate_messageDestination_messagePending ON MessageReplicate (messageDestination, messagePending)"),e.add_11rb$("DROP VIEW ClazzAssignment_ReceiveView"),e.add_11rb$("DROP TABLE ClazzAssignment"),e.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzAssignment ( caTitle TEXT , caDescription TEXT , caGroupUid BIGINT NOT NULL DEFAULT 0 , caActive BOOL NOT NULL , caClassCommentEnabled BOOL NOT NULL , caPrivateCommentsEnabled BOOL NOT NULL DEFAULT true, caCompletionCriteria INTEGER NOT NULL DEFAULT 100 , caRequireFileSubmission BOOL NOT NULL DEFAULT true, caFileType INTEGER NOT NULL DEFAULT 0 , caSizeLimit INTEGER NOT NULL DEFAULT 50 , caNumberOfFiles INTEGER NOT NULL DEFAULT 1 , caSubmissionPolicy INTEGER NOT NULL DEFAULT 1 , caMarkingType INTEGER NOT NULL DEFAULT 1 , caRequireTextSubmission BOOL NOT NULL DEFAULT true, caTextLimitType INTEGER NOT NULL DEFAULT 1 , caTextLimit INTEGER NOT NULL DEFAULT 500 , caXObjectUid BIGINT NOT NULL DEFAULT 0 , caClazzUid BIGINT NOT NULL , caLocalChangeSeqNum BIGINT NOT NULL , caMasterChangeSeqNum BIGINT NOT NULL , caLastChangedBy INTEGER NOT NULL , caLct BIGINT NOT NULL , caUid BIGSERIAL PRIMARY KEY NOT NULL )"),e.add_11rb$("CREATE INDEX index_ClazzAssignment_caClazzUid ON ClazzAssignment (caClazzUid)"),e.add_11rb$("DROP VIEW ClazzAssignmentContentJoin_ReceiveView"),e.add_11rb$("DROP TABLE ClazzAssignmentContentJoin"),e.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzAssignmentContentJoin ( cacjContentUid BIGINT NOT NULL , cacjAssignmentUid BIGINT NOT NULL , cacjActive BOOL NOT NULL , cacjWeight INTEGER NOT NULL DEFAULT 0 , cacjMCSN BIGINT NOT NULL , cacjLCSN BIGINT NOT NULL , cacjLCB INTEGER NOT NULL , cacjLct BIGINT NOT NULL , cacjUid BIGSERIAL PRIMARY KEY NOT NULL )"),e.add_11rb$("DROP TABLE ClazzAssignmentRollUp"),e.add_11rb$("CREATE TABLE IF NOT EXISTS ClazzAssignmentRollUp ( cachePersonUid BIGINT NOT NULL , cacheContentEntryUid BIGINT NOT NULL , cacheClazzAssignmentUid BIGINT NOT NULL , cacheStudentScore INTEGER NOT NULL , cacheMaxScore INTEGER NOT NULL , cacheFinalWeightScoreWithPenalty FLOAT NOT NULL DEFAULT 0 , cacheWeight INTEGER NOT NULL DEFAULT 0 , cacheProgress INTEGER NOT NULL , cacheContentComplete BOOL NOT NULL , cacheSuccess SMALLINT NOT NULL , cachePenalty INTEGER NOT NULL , lastCsnChecked BIGINT NOT NULL , cacheUid BIGSERIAL PRIMARY KEY NOT NULL )"),e.add_11rb$("CREATE UNIQUE INDEX index_ClazzAssignmentRollUp_cachePersonUid_cacheContentEntryUid_cacheClazzAssignmentUid ON ClazzAssignmentRollUp (cachePersonUid, cacheContentEntryUid, cacheClazzAssignmentUid)"),e.add_11rb$("DROP VIEW Comments_ReceiveView"),e.add_11rb$("CREATE TABLE IF NOT EXISTS Comments ( commentsText TEXT , commentsEntityType INTEGER NOT NULL , commentsEntityUid BIGINT NOT NULL , commentsPublic BOOL NOT NULL , commentsStatus INTEGER NOT NULL , commentsPersonUid BIGINT NOT NULL , commentsToPersonUid BIGINT NOT NULL , commentSubmitterUid BIGINT NOT NULL , commentsFlagged BOOL NOT NULL , commentsInActive BOOL NOT NULL , commentsDateTimeAdded BIGINT NOT NULL , commentsDateTimeUpdated BIGINT NOT NULL , commentsMCSN BIGINT NOT NULL , commentsLCSN BIGINT NOT NULL , commentsLCB INTEGER NOT NULL , commentsLct BIGINT NOT NULL , commentsUid BIGSERIAL PRIMARY KEY NOT NULL )"),e.add_11rb$("ALTER TABLE Clazz ADD COLUMN clazzEnrolmentPolicy INTEGER NOT NULL DEFAULT 102 "),e.add_11rb$("ALTER TABLE Clazz ADD COLUMN clazzTerminologyUid BIGINT NOT NULL DEFAULT 25966"),e.add_11rb$("ALTER TABLE XObjectEntity ADD COLUMN objectStatementRefUid INTEGER NOT NULL DEFAULT 0"),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_127_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (127, NEW.chatUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_127_trig AFTER UPDATE OR INSERT ON Chat FOR EACH ROW EXECUTE PROCEDURE ch_upd_127_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_127_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (127, OLD.chatUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_127_trig AFTER DELETE ON Chat FOR EACH ROW EXECUTE PROCEDURE ch_del_127_fn(); "),e.add_11rb$("CREATE VIEW Chat_ReceiveView AS SELECT Chat.*, ChatReplicate.* FROM Chat LEFT JOIN ChatReplicate ON ChatReplicate.chatPk = Chat.chatUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION chat_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO Chat(chatUid, chatStartDate, chatTitle, chatGroup, chatLct) VALUES(NEW.chatUid, NEW.chatStartDate, NEW.chatTitle, NEW.chatGroup, NEW.chatLct) ON CONFLICT (chatUid) DO UPDATE SET chatStartDate = EXCLUDED.chatStartDate, chatTitle = EXCLUDED.chatTitle, chatGroup = EXCLUDED.chatGroup, chatLct = EXCLUDED.chatLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER chat_remote_insert_trig INSTEAD OF INSERT ON Chat_ReceiveView FOR EACH ROW EXECUTE PROCEDURE chat_remote_insert_fn() "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_128_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (128, NEW.chatMemberUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_128_trig AFTER UPDATE OR INSERT ON ChatMember FOR EACH ROW EXECUTE PROCEDURE ch_upd_128_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_128_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (128, OLD.chatMemberUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_128_trig AFTER DELETE ON ChatMember FOR EACH ROW EXECUTE PROCEDURE ch_del_128_fn(); "),e.add_11rb$("CREATE VIEW ChatMember_ReceiveView AS SELECT ChatMember.*, ChatMemberReplicate.* FROM ChatMember LEFT JOIN ChatMemberReplicate ON ChatMemberReplicate.chatMemberPk = ChatMember.chatMemberUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION chatmember_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChatMember(chatMemberUid, chatMemberChatUid, chatMemberPersonUid, chatMemberJoinedDate, chatMemberLeftDate, chatMemberLct) VALUES(NEW.chatMemberUid, NEW.chatMemberChatUid, NEW.chatMemberPersonUid, NEW.chatMemberJoinedDate, NEW.chatMemberLeftDate, NEW.chatMemberLct) ON CONFLICT (chatMemberUid) DO UPDATE SET chatMemberChatUid = EXCLUDED.chatMemberChatUid, chatMemberPersonUid = EXCLUDED.chatMemberPersonUid, chatMemberJoinedDate = EXCLUDED.chatMemberJoinedDate, chatMemberLeftDate = EXCLUDED.chatMemberLeftDate, chatMemberLct = EXCLUDED.chatMemberLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER chatmember_remote_insert_trig INSTEAD OF INSERT ON ChatMember_ReceiveView FOR EACH ROW EXECUTE PROCEDURE chatmember_remote_insert_fn() "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_523_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (523, NEW.camUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_523_trig AFTER UPDATE OR INSERT ON CourseAssignmentMark FOR EACH ROW EXECUTE PROCEDURE ch_upd_523_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_523_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (523, OLD.camUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_523_trig AFTER DELETE ON CourseAssignmentMark FOR EACH ROW EXECUTE PROCEDURE ch_del_523_fn(); "),e.add_11rb$("CREATE VIEW CourseAssignmentMark_ReceiveView AS SELECT CourseAssignmentMark.*, CourseAssignmentMarkReplicate.* FROM CourseAssignmentMark LEFT JOIN CourseAssignmentMarkReplicate ON CourseAssignmentMarkReplicate.camPk = CourseAssignmentMark.camUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION courseassignmentmark_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO CourseAssignmentMark(camUid, camAssignmentUid, camSubmitterUid, camMark, camPenalty, camLct) VALUES (NEW.camUid, NEW.camAssignmentUid, NEW.camSubmitterUid, NEW.camMark, NEW.camPenalty, NEW.camLct) ON CONFLICT (camUid) DO UPDATE SET camAssignmentUid = EXCLUDED.camAssignmentUid, camSubmitterUid = EXCLUDED.camSubmitterUid, camMark = EXCLUDED.camMark, camPenalty = EXCLUDED.camPenalty, camLct = EXCLUDED.camLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER courseassignmentmark_remote_insert_trig INSTEAD OF INSERT ON CourseAssignmentMark_ReceiveView FOR EACH ROW EXECUTE PROCEDURE courseassignmentmark_remote_insert_fn() "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_522_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (522, NEW.casUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_522_trig AFTER UPDATE OR INSERT ON CourseAssignmentSubmission FOR EACH ROW EXECUTE PROCEDURE ch_upd_522_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_522_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (522, OLD.casUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_522_trig AFTER DELETE ON CourseAssignmentSubmission FOR EACH ROW EXECUTE PROCEDURE ch_del_522_fn(); "),e.add_11rb$("CREATE VIEW CourseAssignmentSubmission_ReceiveView AS SELECT CourseAssignmentSubmission.*, CourseAssignmentSubmissionReplicate.* FROM CourseAssignmentSubmission LEFT JOIN CourseAssignmentSubmissionReplicate ON CourseAssignmentSubmissionReplicate.casPk = CourseAssignmentSubmission.casUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION courseassignmentsubmission_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO CourseAssignmentSubmission(casUid, casAssignmentUid, casSubmitterUid, casSubmitterPersonUid, casText, casType, casTimestamp) VALUES (NEW.casUid, NEW.casAssignmentUid, NEW.casSubmitterUid, NEW.casSubmitterPersonUid, NEW.casText, NEW.casType, NEW.casTimestamp) ON CONFLICT (casUid) DO UPDATE SET casAssignmentUid = EXCLUDED.casAssignmentUid, casSubmitterUid = EXCLUDED.casSubmitterUid, casSubmitterPersonUid = EXCLUDED.casSubmitterPersonUid, casText = EXCLUDED.casText, casType = EXCLUDED.casType, casTimestamp = EXCLUDED.casTimestamp ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER courseassignmentsubmission_remote_insert_trig INSTEAD OF INSERT ON CourseAssignmentSubmission_ReceiveView FOR EACH ROW EXECUTE PROCEDURE courseassignmentsubmission_remote_insert_fn() "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_90_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (90, NEW.casaUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_90_trig AFTER UPDATE OR INSERT ON CourseAssignmentSubmissionAttachment FOR EACH ROW EXECUTE PROCEDURE ch_upd_90_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_90_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (90, OLD.casaUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_90_trig AFTER DELETE ON CourseAssignmentSubmissionAttachment FOR EACH ROW EXECUTE PROCEDURE ch_del_90_fn(); "),e.add_11rb$("CREATE VIEW CourseAssignmentSubmissionAttachment_ReceiveView AS SELECT CourseAssignmentSubmissionAttachment.*, CourseAssignmentSubmissionAttachmentReplicate.* FROM CourseAssignmentSubmissionAttachment LEFT JOIN CourseAssignmentSubmissionAttachmentReplicate ON CourseAssignmentSubmissionAttachmentReplicate.casaPk = CourseAssignmentSubmissionAttachment.casaUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION courseassignmentsubmissionattachment_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO CourseAssignmentSubmissionAttachment(casaUid, casaSubmissionUid, casaMimeType, casaUri, casaMd5, casaSize, casaTimestamp) VALUES (NEW.casaUid, NEW.casaSubmissionUid, NEW.casaMimeType, NEW.casaUri, NEW.casaMd5, NEW.casaSize, NEW.casaTimestamp) ON CONFLICT (casaUid) DO UPDATE SET casaSubmissionUid = EXCLUDED.casaSubmissionUid, casaMimeType = EXCLUDED.casaMimeType, casaUri = EXCLUDED.casaUri, casaMd5 = EXCLUDED.casaMd5, casaSize = EXCLUDED.casaSize, casaTimestamp = EXCLUDED.casaTimestamp ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER courseassignmentsubmissionattachment_remote_insert_trig INSTEAD OF INSERT ON CourseAssignmentSubmissionAttachment_ReceiveView FOR EACH ROW EXECUTE PROCEDURE courseassignmentsubmissionattachment_remote_insert_fn() ");var o=S("\n | CREATE OR REPLACE FUNCTION attach_CourseAssignmentSubmissionAttachment_fn() RETURNS trigger AS $$\n | BEGIN\n | \n | INSERT INTO ZombieAttachmentData(zaUri) \n | SELECT OLD.casaUri AS zaUri\n | FROM CourseAssignmentSubmissionAttachment \n | WHERE CourseAssignmentSubmissionAttachment.casaUid = OLD.casaUid\n | AND (SELECT COUNT(*) \n | FROM CourseAssignmentSubmissionAttachment\n | WHERE casaMd5 = OLD.casaMd5) = 0\n |;\n | RETURN NEW;\n | END $$\n | LANGUAGE plpgsql\n ");e.add_11rb$(o);var r=S("\n |CREATE TRIGGER attach_CourseAssignmentSubmissionAttachment_trig\n |AFTER UPDATE ON CourseAssignmentSubmissionAttachment\n |FOR EACH ROW WHEN (OLD.casaMd5 IS NOT NULL)\n |EXECUTE PROCEDURE attach_CourseAssignmentSubmissionAttachment_fn();\n ");e.add_11rb$(r),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_124_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (124, NEW.cbUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_124_trig AFTER UPDATE OR INSERT ON CourseBlock FOR EACH ROW EXECUTE PROCEDURE ch_upd_124_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_124_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (124, OLD.cbUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_124_trig AFTER DELETE ON CourseBlock FOR EACH ROW EXECUTE PROCEDURE ch_del_124_fn(); "),e.add_11rb$("CREATE VIEW CourseBlock_ReceiveView AS SELECT CourseBlock.*, CourseBlockReplicate.* FROM CourseBlock LEFT JOIN CourseBlockReplicate ON CourseBlockReplicate.cbPk = CourseBlock.cbUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION courseblock_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO CourseBlock(cbUid, cbType, cbIndentLevel, cbModuleParentBlockUid, cbTitle, cbDescription, cbCompletionCriteria, cbHideUntilDate, cbDeadlineDate, cbLateSubmissionPenalty, cbGracePeriodDate, cbMaxPoints,cbMinPoints, cbIndex, cbClazzUid, cbActive,cbHidden, cbEntityUid, cbLct) VALUES (NEW.cbUid, NEW.cbType, NEW.cbIndentLevel, NEW.cbModuleParentBlockUid, NEW.cbTitle, NEW.cbDescription, NEW.cbCompletionCriteria, NEW.cbHideUntilDate, NEW.cbDeadlineDate, NEW.cbLateSubmissionPenalty, NEW.cbGracePeriodDate, NEW.cbMaxPoints,NEW.cbMinPoints, NEW.cbIndex, NEW.cbClazzUid,NEW.cbActive, NEW.cbHidden, NEW.cbEntityUid, NEW.cbLct) ON CONFLICT (cbUid) DO UPDATE SET cbType = EXCLUDED.cbType, cbIndentLevel = EXCLUDED.cbIndentLevel, cbModuleParentBlockUid = EXCLUDED.cbModuleParentBlockUid, cbTitle = EXCLUDED.cbTitle, cbDescription = EXCLUDED.cbDescription, cbCompletionCriteria = EXCLUDED.cbCompletionCriteria, cbHideUntilDate = EXCLUDED.cbHideUntilDate,cbDeadlineDate = EXCLUDED.cbDeadlineDate, cbLateSubmissionPenalty = EXCLUDED.cbLateSubmissionPenalty, cbGracePeriodDate= EXCLUDED.cbGracePeriodDate, cbMaxPoints = EXCLUDED.cbMaxPoints, cbMinPoints = EXCLUDED.cbMinPoints, cbIndex = EXCLUDED.cbIndex,cbClazzUid = EXCLUDED.cbClazzUid, cbActive = EXCLUDED.cbActive, cbHidden = EXCLUDED.cbHidden, cbEntityUid = EXCLUDED.cbEntityUid, cbLct = EXCLUDED.cbLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER courseblock_remote_insert_trig INSTEAD OF INSERT ON CourseBlock_ReceiveView FOR EACH ROW EXECUTE PROCEDURE courseblock_remote_insert_fn() "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_130_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (130, NEW.courseDiscussionUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_130_trig AFTER UPDATE OR INSERT ON CourseDiscussion FOR EACH ROW EXECUTE PROCEDURE ch_upd_130_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_130_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (130, OLD.courseDiscussionUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_130_trig AFTER DELETE ON CourseDiscussion FOR EACH ROW EXECUTE PROCEDURE ch_del_130_fn(); "),e.add_11rb$("CREATE VIEW CourseDiscussion_ReceiveView AS SELECT CourseDiscussion.*, CourseDiscussionReplicate.* FROM CourseDiscussion LEFT JOIN CourseDiscussionReplicate ON CourseDiscussionReplicate.courseDiscussionPk = CourseDiscussion.courseDiscussionUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION coursediscussion_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO CourseDiscussion(courseDiscussionUid, courseDiscussionActive, courseDiscussionTitle, courseDiscussionDesc, courseDiscussionClazzUid, courseDiscussionLct) VALUES(NEW.courseDiscussionUid, NEW.courseDiscussionActive, NEW.courseDiscussionTitle, NEW.courseDiscussionDesc, NEW.courseDiscussionClazzUid, NEW.courseDiscussionLct) ON CONFLICT (courseDiscussionUid) DO UPDATE SET courseDiscussionActive = EXCLUDED.courseDiscussionActive, courseDiscussionTitle = EXCLUDED.courseDiscussionTitle, courseDiscussionDesc = EXCLUDED.courseDiscussionDesc, courseDiscussionClazzUid = EXCLUDED.courseDiscussionClazzUid, courseDiscussionLct = EXCLUDED.courseDiscussionLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER coursediscussion_remote_insert_trig INSTEAD OF INSERT ON CourseDiscussion_ReceiveView FOR EACH ROW EXECUTE PROCEDURE coursediscussion_remote_insert_fn() "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_243_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (243, NEW.cgmUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_243_trig AFTER UPDATE OR INSERT ON CourseGroupMember FOR EACH ROW EXECUTE PROCEDURE ch_upd_243_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_243_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (243, OLD.cgmUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_243_trig AFTER DELETE ON CourseGroupMember FOR EACH ROW EXECUTE PROCEDURE ch_del_243_fn(); "),e.add_11rb$("CREATE VIEW CourseGroupMember_ReceiveView AS SELECT CourseGroupMember.*, CourseGroupMemberReplicate.* FROM CourseGroupMember LEFT JOIN CourseGroupMemberReplicate ON CourseGroupMemberReplicate.cgmPk = CourseGroupMember.cgmUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION coursegroupmember_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO CourseGroupMember(cgmUid, cgmSetUid, cgmGroupNumber, cgmPersonUid, cgmLct) VALUES (NEW.cgmUid, NEW.cgmSetUid, NEW.cgmGroupNumber, NEW.cgmPersonUid, NEW.cgmLct) ON CONFLICT (cgmUid) DO UPDATE SET cgmSetUid = EXCLUDED.cgmSetUid, cgmGroupNumber = EXCLUDED.cgmGroupNumber, cgmPersonUid = EXCLUDED.cgmPersonUid, cgmLct = EXCLUDED.cgmLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER coursegroupmember_remote_insert_trig INSTEAD OF INSERT ON CourseGroupMember_ReceiveView FOR EACH ROW EXECUTE PROCEDURE coursegroupmember_remote_insert_fn() "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_242_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (242, NEW.cgsUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_242_trig AFTER UPDATE OR INSERT ON CourseGroupSet FOR EACH ROW EXECUTE PROCEDURE ch_upd_242_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_242_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (242, OLD.cgsUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_242_trig AFTER DELETE ON CourseGroupSet FOR EACH ROW EXECUTE PROCEDURE ch_del_242_fn(); "),e.add_11rb$("CREATE VIEW CourseGroupSet_ReceiveView AS SELECT CourseGroupSet.*, CourseGroupSetReplicate.* FROM CourseGroupSet LEFT JOIN CourseGroupSetReplicate ON CourseGroupSetReplicate.cgsPk = CourseGroupSet.cgsUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION coursegroupset_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO CourseGroupSet(cgsUid, cgsName, cgsTotalGroups, cgsActive, cgsClazzUid, cgsLct) VALUES (NEW.cgsUid, NEW.cgsName, NEW.cgsTotalGroups, NEW.cgsActive, NEW.cgsClazzUid, NEW.cgsLct) ON CONFLICT (cgsUid) DO UPDATE SET cgsName = EXCLUDED.cgsName, cgsTotalGroups = EXCLUDED.cgsTotalGroups, cgsActive = EXCLUDED.cgsActive, cgsClazzUid = EXCLUDED.cgsClazzUid, cgsLct = EXCLUDED.cgsLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER coursegroupset_remote_insert_trig INSTEAD OF INSERT ON CourseGroupSet_ReceiveView FOR EACH ROW EXECUTE PROCEDURE coursegroupset_remote_insert_fn() "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_125_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (125, NEW.coursePictureUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_125_trig AFTER UPDATE OR INSERT ON CoursePicture FOR EACH ROW EXECUTE PROCEDURE ch_upd_125_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_125_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (125, OLD.coursePictureUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_125_trig AFTER DELETE ON CoursePicture FOR EACH ROW EXECUTE PROCEDURE ch_del_125_fn(); "),e.add_11rb$("CREATE VIEW CoursePicture_ReceiveView AS SELECT CoursePicture.*, CoursePictureReplicate.* FROM CoursePicture LEFT JOIN CoursePictureReplicate ON CoursePictureReplicate.cpPk = CoursePicture.coursePictureUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION coursepicture_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO CoursePicture(coursePictureUid, coursePictureClazzUid, coursePictureMasterCsn, coursePictureLocalCsn, coursePictureLastChangedBy, coursePictureLct, coursePictureUri, coursePictureMd5, coursePictureFileSize, coursePictureTimestamp, coursePictureMimeType, coursePictureActive) VALUES (NEW.coursePictureUid, NEW.coursePictureClazzUid, NEW.coursePictureMasterCsn, NEW.coursePictureLocalCsn, NEW.coursePictureLastChangedBy, NEW.coursePictureLct, NEW.coursePictureUri, NEW.coursePictureMd5, NEW.coursePictureFileSize, NEW.coursePictureTimestamp, NEW.coursePictureMimeType, NEW.coursePictureActive) ON CONFLICT (coursePictureUid) DO UPDATE SET coursePictureClazzUid = EXCLUDED.coursePictureClazzUid, coursePictureMasterCsn = EXCLUDED.coursePictureMasterCsn, coursePictureLocalCsn = EXCLUDED.coursePictureLocalCsn, coursePictureLastChangedBy = EXCLUDED.coursePictureLastChangedBy, coursePictureLct = EXCLUDED.coursePictureLct, coursePictureUri = EXCLUDED.coursePictureUri, coursePictureMd5 = EXCLUDED.coursePictureMd5, coursePictureFileSize = EXCLUDED.coursePictureFileSize, coursePictureTimestamp = EXCLUDED.coursePictureTimestamp, coursePictureMimeType = EXCLUDED.coursePictureMimeType, coursePictureActive = EXCLUDED.coursePictureActive ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER coursepicture_remote_insert_trig INSTEAD OF INSERT ON CoursePicture_ReceiveView FOR EACH ROW EXECUTE PROCEDURE coursepicture_remote_insert_fn() ");var s=S("\n | CREATE OR REPLACE FUNCTION attach_CoursePicture_fn() RETURNS trigger AS $$\n | BEGIN\n | \n | INSERT INTO ZombieAttachmentData(zaUri) \n | SELECT OLD.coursePictureUri AS zaUri\n | FROM CoursePicture \n | WHERE CoursePicture.coursePictureUid = OLD.coursePictureUid\n | AND (SELECT COUNT(*) \n | FROM CoursePicture\n | WHERE coursePictureMd5 = OLD.coursePictureMd5) = 0\n |;\n | RETURN NEW;\n | END $$\n | LANGUAGE plpgsql\n ");e.add_11rb$(s);var a=S("\n |CREATE TRIGGER attach_CoursePicture_trig\n |AFTER UPDATE ON CoursePicture\n |FOR EACH ROW WHEN (OLD.coursePictureMd5 IS NOT NULL)\n |EXECUTE PROCEDURE attach_CoursePicture_fn();\n ");e.add_11rb$(a),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_450_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (450, NEW.ctUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_450_trig AFTER UPDATE OR INSERT ON CourseTerminology FOR EACH ROW EXECUTE PROCEDURE ch_upd_450_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_450_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (450, OLD.ctUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_450_trig AFTER DELETE ON CourseTerminology FOR EACH ROW EXECUTE PROCEDURE ch_del_450_fn(); "),e.add_11rb$("CREATE VIEW CourseTerminology_ReceiveView AS SELECT CourseTerminology.*, CourseTerminologyReplicate.* FROM CourseTerminology LEFT JOIN CourseTerminologyReplicate ON CourseTerminologyReplicate.ctPk = CourseTerminology.ctUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION courseterminology_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO CourseTerminology(ctUid, ctTitle, ctTerminology, ctLct) VALUES (NEW.ctUid, NEW.ctTitle, NEW.ctTerminology, NEW.ctLct) ON CONFLICT (ctUid) DO UPDATE SET ctTitle = EXCLUDED.ctTitle, ctTerminology = EXCLUDED.ctTerminology, ctLct = EXCLUDED.ctLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER courseterminology_remote_insert_trig INSTEAD OF INSERT ON CourseTerminology_ReceiveView FOR EACH ROW EXECUTE PROCEDURE courseterminology_remote_insert_fn() "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_132_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (132, NEW.discussionPostUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_132_trig AFTER UPDATE OR INSERT ON DiscussionPost FOR EACH ROW EXECUTE PROCEDURE ch_upd_132_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_132_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (132, OLD.discussionPostUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_132_trig AFTER DELETE ON DiscussionPost FOR EACH ROW EXECUTE PROCEDURE ch_del_132_fn(); "),e.add_11rb$("CREATE VIEW DiscussionPost_ReceiveView AS SELECT DiscussionPost.*, DiscussionPostReplicate.* FROM DiscussionPost LEFT JOIN DiscussionPostReplicate ON DiscussionPostReplicate.discussionPostPk = DiscussionPost.discussionPostUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION discussionpost_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO DiscussionPost(discussionPostUid, discussionPostTitle, discussionPostMessage, discussionPostStartDate, discussionPostDiscussionTopicUid, discussionPostVisible, discussionPostArchive, discussionPostStartedPersonUid, discussionPostClazzUid, discussionPostLct) VALUES(NEW.discussionPostUid, NEW.discussionPostTitle, NEW.discussionPostMessage, NEW.discussionPostStartDate, NEW.discussionPostDiscussionTopicUid, NEW.discussionPostVisible, NEW.discussionPostArchive, NEW.discussionPostStartedPersonUid, NEW.discussionPostClazzUid, NEW.discussionPostLct) ON CONFLICT (discussionPostUid) DO UPDATE SET discussionPostTitle = EXCLUDED.discussionPostTitle , discussionPostMessage = EXCLUDED.discussionPostMessage , discussionPostStartDate = EXCLUDED.discussionPostStartDate , discussionPostDiscussionTopicUid = EXCLUDED.discussionPostDiscussionTopicUid, discussionPostVisible = EXCLUDED.discussionPostVisible , discussionPostArchive = EXCLUDED.discussionPostArchive , discussionPostStartedPersonUid = EXCLUDED.discussionPostStartedPersonUid , discussionPostClazzUid = EXCLUDED.discussionPostClazzUid, discussionPostLct = EXCLUDED.discussionPostLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER discussionpost_remote_insert_trig INSTEAD OF INSERT ON DiscussionPost_ReceiveView FOR EACH ROW EXECUTE PROCEDURE discussionpost_remote_insert_fn() "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_131_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (131, NEW.discussionTopicUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_131_trig AFTER UPDATE OR INSERT ON DiscussionTopic FOR EACH ROW EXECUTE PROCEDURE ch_upd_131_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_131_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (131, OLD.discussionTopicUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_131_trig AFTER DELETE ON DiscussionTopic FOR EACH ROW EXECUTE PROCEDURE ch_del_131_fn(); "),e.add_11rb$("CREATE VIEW DiscussionTopic_ReceiveView AS SELECT DiscussionTopic.*, DiscussionTopicReplicate.* FROM DiscussionTopic LEFT JOIN DiscussionTopicReplicate ON DiscussionTopicReplicate.discussionTopicPk = DiscussionTopic.discussionTopicUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION discussiontopic_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO DiscussionTopic(discussionTopicUid, discussionTopicTitle, discussionTopicDesc, discussionTopicStartDate, discussionTopicCourseDiscussionUid, discussionTopicVisible, discussionTopicArchive, discussionTopicIndex, discussionTopicClazzUid, discussionTopicLct) VALUES(NEW.discussionTopicUid, NEW.discussionTopicTitle, NEW.discussionTopicDesc, NEW.discussionTopicStartDate, NEW.discussionTopicCourseDiscussionUid, NEW.discussionTopicVisible, NEW.discussionTopicArchive, NEW.discussionTopicIndex, NEW.discussionTopicClazzUid, NEW.discussionTopicLct) ON CONFLICT (discussionTopicUid) DO UPDATE SET discussionTopicTitle = EXCLUDED.discussionTopicTitle, discussionTopicDesc = EXCLUDED.discussionTopicDesc, discussionTopicStartDate = EXCLUDED.discussionTopicStartDate, discussionTopicCourseDiscussionUid = EXCLUDED.discussionTopicCourseDiscussionUid, discussionTopicVisible = EXCLUDED.discussionTopicVisible, discussionTopicArchive = EXCLUDED.discussionTopicArchive, discussionTopicIndex = EXCLUDED.discussionTopicIndex, discussionTopicClazzUid = EXCLUDED.discussionTopicClazzUid, discussionTopicLct = EXCLUDED.discussionTopicLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER discussiontopic_remote_insert_trig INSTEAD OF INSERT ON DiscussionTopic_ReceiveView FOR EACH ROW EXECUTE PROCEDURE discussiontopic_remote_insert_fn() "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_126_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (126, NEW.messageUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_126_trig AFTER UPDATE OR INSERT ON Message FOR EACH ROW EXECUTE PROCEDURE ch_upd_126_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_126_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (126, OLD.messageUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_126_trig AFTER DELETE ON Message FOR EACH ROW EXECUTE PROCEDURE ch_del_126_fn(); "),e.add_11rb$("CREATE VIEW Message_ReceiveView AS SELECT Message.*, MessageReplicate.* FROM Message LEFT JOIN MessageReplicate ON MessageReplicate.messagePk = Message.messageUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION message_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO Message(messageUid, messageSenderPersonUid, messageTableId, messageEntityUid, messageText, messageTimestamp, messageClazzUid, messageLct) VALUES(NEW.messageUid, NEW.messageSenderPersonUid, NEW.messageTableId, NEW.messageEntityUid, NEW.messageText, NEW.messageTimestamp, NEW.messageClazzUid, NEW.messageLct) ON CONFLICT (messageUid) DO UPDATE SET messageSenderPersonUid = EXCLUDED.messageSenderPersonUid, messageTableId = EXCLUDED.messageTableId, messageEntityUid = EXCLUDED.messageEntityUid, messageText = EXCLUDED.messageText, messageTimestamp = EXCLUDED.messageTimestamp, messageClazzUid = EXCLUDED.messageClazzUid, messageLct = EXCLUDED.messageLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER message_remote_insert_trig INSTEAD OF INSERT ON Message_ReceiveView FOR EACH ROW EXECUTE PROCEDURE message_remote_insert_fn() "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_129_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (129, NEW.messageReadUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_129_trig AFTER UPDATE OR INSERT ON MessageRead FOR EACH ROW EXECUTE PROCEDURE ch_upd_129_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_129_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (129, OLD.messageReadUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_129_trig AFTER DELETE ON MessageRead FOR EACH ROW EXECUTE PROCEDURE ch_del_129_fn(); "),e.add_11rb$("CREATE VIEW MessageRead_ReceiveView AS SELECT MessageRead.*, MessageReadReplicate.* FROM MessageRead LEFT JOIN MessageReadReplicate ON MessageReadReplicate.messageReadPk = MessageRead.messageReadUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION messageread_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO MessageRead(messageReadUid, messageReadPersonUid, messageReadMessageUid, messageReadEntityUid, messageReadLct) VALUES(NEW.messageReadUid, NEW.messageReadPersonUid, NEW.messageReadMessageUid, NEW.messageReadEntityUid, NEW.messageReadLct) ON CONFLICT (messageReadUid) DO UPDATE SET messageReadPersonUid = EXCLUDED.messageReadPersonUid, messageReadMessageUid = EXCLUDED.messageReadMessageUid, messageReadEntityUid = EXCLUDED.messageReadEntityUid, messageReadLct = EXCLUDED.messageReadLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER messageread_remote_insert_trig INSTEAD OF INSERT ON MessageRead_ReceiveView FOR EACH ROW EXECUTE PROCEDURE messageread_remote_insert_fn() "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_520_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (520, NEW.caUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_520_trig AFTER UPDATE OR INSERT ON ClazzAssignment FOR EACH ROW EXECUTE PROCEDURE ch_upd_520_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_520_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (520, OLD.caUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_520_trig AFTER DELETE ON ClazzAssignment FOR EACH ROW EXECUTE PROCEDURE ch_del_520_fn(); "),e.add_11rb$("CREATE VIEW ClazzAssignment_ReceiveView AS SELECT ClazzAssignment.*, ClazzAssignmentReplicate.* FROM ClazzAssignment LEFT JOIN ClazzAssignmentReplicate ON ClazzAssignmentReplicate.caPk = ClazzAssignment.caUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION clazzassignment_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ClazzAssignment(caUid, caTitle, caDescription, caGroupUid, caActive, caClassCommentEnabled, caPrivateCommentsEnabled, caRequireFileSubmission, caFileType, caSizeLimit, caNumberOfFiles, caSubmissionPolicy, caMarkingType, caRequireTextSubmission, caTextLimitType, caTextLimit, caXObjectUid, caClazzUid, caLocalChangeSeqNum, caMasterChangeSeqNum, caLastChangedBy, caLct) VALUES (NEW.caUid, NEW.caTitle, NEW.caDescription, NEW.caGroupUid, NEW.caActive, NEW.caClassCommentEnabled, NEW.caPrivateCommentsEnabled, NEW.caRequireFileSubmission, NEW.caFileType, NEW.caSizeLimit, NEW.caNumberOfFiles, NEW.caSubmissionPolicy, NEW.caMarkingType,NEW.caRequireTextSubmission, NEW.caTextLimitType, NEW.caTextLimit, NEW.caXObjectUid, NEW.caClazzUid, NEW.caLocalChangeSeqNum, NEW.caMasterChangeSeqNum, NEW.caLastChangedBy, NEW.caLct) ON CONFLICT (caUid) DO UPDATE SET caTitle = EXCLUDED.caTitle, caDescription = EXCLUDED.caDescription, caGroupUid = EXCLUDED.caGroupUid, caActive = EXCLUDED.caActive, caClassCommentEnabled = EXCLUDED.caClassCommentEnabled, caPrivateCommentsEnabled = EXCLUDED.caPrivateCommentsEnabled, caRequireFileSubmission = EXCLUDED.caRequireFileSubmission, caFileType = EXCLUDED.caFileType, caSizeLimit = EXCLUDED.caSizeLimit, caNumberOfFiles = EXCLUDED.caNumberOfFiles, caSubmissionPolicy = EXCLUDED.caSubmissionPolicy, caMarkingType = EXCLUDED.caMarkingType, caRequireTextSubmission = EXCLUDED.caRequireTextSubmission, caTextLimitType = EXCLUDED.caTextLimitType, caTextLimit = EXCLUDED.caTextLimit, caXObjectUid = EXCLUDED.caXObjectUid, caClazzUid = EXCLUDED.caClazzUid, caLocalChangeSeqNum = EXCLUDED.caLocalChangeSeqNum, caMasterChangeSeqNum = EXCLUDED.caMasterChangeSeqNum, caLastChangedBy = EXCLUDED.caLastChangedBy, caLct = EXCLUDED.caLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER clazzassignment_remote_insert_trig INSTEAD OF INSERT ON ClazzAssignment_ReceiveView FOR EACH ROW EXECUTE PROCEDURE clazzassignment_remote_insert_fn() "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_521_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (521, NEW.cacjUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_521_trig AFTER UPDATE OR INSERT ON ClazzAssignmentContentJoin FOR EACH ROW EXECUTE PROCEDURE ch_upd_521_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_521_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (521, OLD.cacjUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_521_trig AFTER DELETE ON ClazzAssignmentContentJoin FOR EACH ROW EXECUTE PROCEDURE ch_del_521_fn(); "),e.add_11rb$("CREATE VIEW ClazzAssignmentContentJoin_ReceiveView AS SELECT ClazzAssignmentContentJoin.*, ClazzAssignmentContentJoinReplicate.* FROM ClazzAssignmentContentJoin LEFT JOIN ClazzAssignmentContentJoinReplicate ON ClazzAssignmentContentJoinReplicate.cacjPk = ClazzAssignmentContentJoin.cacjUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION clazzassignmentcontentjoin_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ClazzAssignmentContentJoin(cacjUid, cacjContentUid, cacjAssignmentUid, cacjActive,cacjWeight, cacjMCSN, cacjLCSN, cacjLCB, cacjLct) VALUES (NEW.cacjUid, NEW.cacjContentUid, NEW.cacjAssignmentUid, NEW.cacjActive, NEW.cacjWeight, NEW.cacjMCSN, NEW.cacjLCSN, NEW.cacjLCB, NEW.cacjLct) ON CONFLICT (cacjUid) DO UPDATE SET cacjContentUid = EXCLUDED.cacjContentUid, cacjAssignmentUid = EXCLUDED.cacjAssignmentUid, cacjActive = EXCLUDED.cacjActive, cacjWeight = EXCLUDED.cacjWeight, cacjMCSN = EXCLUDED.cacjMCSN, cacjLCSN = EXCLUDED.cacjLCSN, cacjLCB = EXCLUDED.cacjLCB, cacjLct = EXCLUDED.cacjLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER clazzassignmentcontentjoin_remote_insert_trig INSTEAD OF INSERT ON ClazzAssignmentContentJoin_ReceiveView FOR EACH ROW EXECUTE PROCEDURE clazzassignmentcontentjoin_remote_insert_fn() "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_208_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (208, NEW.commentsUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$("DROP TRIGGER IF EXISTS ch_upd_208_trig ON Comments"),e.add_11rb$(" CREATE TRIGGER ch_upd_208_trig AFTER UPDATE OR INSERT ON Comments FOR EACH ROW EXECUTE PROCEDURE ch_upd_208_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_208_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (208, OLD.commentsUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$("DROP TRIGGER IF EXISTS ch_del_208_trig ON Comments"),e.add_11rb$(" CREATE TRIGGER ch_del_208_trig AFTER DELETE ON Comments FOR EACH ROW EXECUTE PROCEDURE ch_del_208_fn(); "),e.add_11rb$("CREATE VIEW Comments_ReceiveView AS SELECT Comments.*, CommentsReplicate.* FROM Comments LEFT JOIN CommentsReplicate ON CommentsReplicate.commentsPk = Comments.commentsUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION comments_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO Comments(commentsUid, commentsText, commentsEntityType, commentsEntityUid, commentsPublic, commentsStatus, commentsPersonUid, commentsToPersonUid, commentSubmitterUid, commentsFlagged, commentsInActive, commentsDateTimeAdded, commentsDateTimeUpdated, commentsMCSN, commentsLCSN, commentsLCB, commentsLct) VALUES (NEW.commentsUid, NEW.commentsText, NEW.commentsEntityType, NEW.commentsEntityUid, NEW.commentsPublic, NEW.commentsStatus, NEW.commentsPersonUid, NEW.commentsToPersonUid, NEW.commentSubmitterUid, NEW.commentsFlagged, NEW.commentsInActive, NEW.commentsDateTimeAdded, NEW.commentsDateTimeUpdated, NEW.commentsMCSN, NEW.commentsLCSN, NEW.commentsLCB, NEW.commentsLct) ON CONFLICT (commentsUid) DO UPDATE SET commentsText = EXCLUDED.commentsText, commentsEntityType = EXCLUDED.commentsEntityType, commentsEntityUid = EXCLUDED.commentsEntityUid, commentsPublic = EXCLUDED.commentsPublic, commentsStatus = EXCLUDED.commentsStatus, commentsPersonUid = EXCLUDED.commentsPersonUid, commentsToPersonUid = EXCLUDED.commentsToPersonUid, commentSubmitterUid = EXCLUDED.commentSubmitterUid, commentsFlagged = EXCLUDED.commentsFlagged, commentsInActive = EXCLUDED.commentsInActive, commentsDateTimeAdded = EXCLUDED.commentsDateTimeAdded, commentsDateTimeUpdated = EXCLUDED.commentsDateTimeUpdated, commentsMCSN = EXCLUDED.commentsMCSN, commentsLCSN = EXCLUDED.commentsLCSN, commentsLCB = EXCLUDED.commentsLCB, commentsLct = EXCLUDED.commentsLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$("DROP TRIGGER IF EXISTS comments_remote_insert_trig ON Comments_ReceiveView"),e.add_11rb$(" CREATE TRIGGER comments_remote_insert_trig INSTEAD OF INSERT ON Comments_ReceiveView FOR EACH ROW EXECUTE PROCEDURE comments_remote_insert_fn() ")}return e})),p4=new Gt(103,104,(function(t){var e=F();return 1===Tt(t)?(e.add_11rb$("DROP VIEW IF EXISTS Clazz_ReceiveView"),e.add_11rb$("DROP TRIGGER IF EXISTS clazz_remote_insert_ins"),e.add_11rb$("CREATE VIEW Clazz_ReceiveView AS SELECT Clazz.*, ClazzReplicate.* FROM Clazz LEFT JOIN ClazzReplicate ON ClazzReplicate.clazzPk = Clazz.clazzUid "),e.add_11rb$(" CREATE TRIGGER clazz_remote_insert_ins INSTEAD OF INSERT ON Clazz_ReceiveView FOR EACH ROW BEGIN REPLACE INTO Clazz(clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode) VALUES (NEW.clazzUid, NEW.clazzName, NEW.clazzDesc, NEW.attendanceAverage, NEW.clazzHolidayUMCalendarUid, NEW.clazzScheuleUMCalendarUid, NEW.isClazzActive, NEW.clazzLocationUid, NEW.clazzStartTime, NEW.clazzEndTime, NEW.clazzFeatures, NEW.clazzSchoolUid, NEW.clazzEnrolmentPolicy, NEW.clazzTerminologyUid, NEW.clazzMasterChangeSeqNum, NEW.clazzLocalChangeSeqNum, NEW.clazzLastChangedBy, NEW.clazzLct, NEW.clazzTimeZone, NEW.clazzStudentsPersonGroupUid, NEW.clazzTeachersPersonGroupUid, NEW.clazzPendingStudentsPersonGroupUid, NEW.clazzParentsPersonGroupUid, NEW.clazzCode) /*psql ON CONFLICT (clazzUid) DO UPDATE SET clazzName = EXCLUDED.clazzName, clazzDesc = EXCLUDED.clazzDesc, attendanceAverage = EXCLUDED.attendanceAverage, clazzHolidayUMCalendarUid = EXCLUDED.clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid = EXCLUDED.clazzScheuleUMCalendarUid, isClazzActive = EXCLUDED.isClazzActive, clazzLocationUid = EXCLUDED.clazzLocationUid, clazzStartTime = EXCLUDED.clazzStartTime, clazzEndTime = EXCLUDED.clazzEndTime, clazzFeatures = EXCLUDED.clazzFeatures, clazzSchoolUid = EXCLUDED.clazzSchoolUid, clazzEnrolmentPolicy = EXCLUDED.clazzEnrolmentPolicy, clazzTerminologyUid = EXCLUDED.clazzTerminologyUid, clazzMasterChangeSeqNum = EXCLUDED.clazzMasterChangeSeqNum, clazzLocalChangeSeqNum = EXCLUDED.clazzLocalChangeSeqNum, clazzLastChangedBy = EXCLUDED.clazzLastChangedBy, clazzLct = EXCLUDED.clazzLct, clazzTimeZone = EXCLUDED.clazzTimeZone, clazzStudentsPersonGroupUid = EXCLUDED.clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid = EXCLUDED.clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid = EXCLUDED.clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid = EXCLUDED.clazzParentsPersonGroupUid, clazzCode = EXCLUDED.clazzCode */; END "),e.add_11rb$("DROP VIEW IF EXISTS XObjectEntity_ReceiveView"),e.add_11rb$("DROP TRIGGER IF EXISTS xobjectentity_remote_insert_ins"),e.add_11rb$("CREATE VIEW XObjectEntity_ReceiveView AS SELECT XObjectEntity.*, XObjectEntityReplicate.* FROM XObjectEntity LEFT JOIN XObjectEntityReplicate ON XObjectEntityReplicate.xoePk = XObjectEntity.xObjectUid "),e.add_11rb$(" CREATE TRIGGER xobjectentity_remote_insert_ins INSTEAD OF INSERT ON XObjectEntity_ReceiveView FOR EACH ROW BEGIN REPLACE INTO XObjectEntity(xObjectUid, objectType, objectId, definitionType, interactionType, correctResponsePattern, objectContentEntryUid, objectStatementRefUid, xObjectMasterChangeSeqNum, xObjectocalChangeSeqNum, xObjectLastChangedBy, xObjectLct) VALUES (NEW.xObjectUid, NEW.objectType, NEW.objectId, NEW.definitionType, NEW.interactionType, NEW.correctResponsePattern, NEW.objectContentEntryUid, NEW.objectStatementRefUid, NEW.xObjectMasterChangeSeqNum, NEW.xObjectocalChangeSeqNum, NEW.xObjectLastChangedBy, NEW.xObjectLct) /*psql ON CONFLICT (xObjectUid) DO UPDATE SET objectType = EXCLUDED.objectType, objectId = EXCLUDED.objectId, definitionType = EXCLUDED.definitionType, interactionType = EXCLUDED.interactionType, correctResponsePattern = EXCLUDED.correctResponsePattern, objectContentEntryUid = EXCLUDED.objectContentEntryUid,objectStatementRefUid = EXCLUDED.objectStatementRefUid, xObjectMasterChangeSeqNum = EXCLUDED.xObjectMasterChangeSeqNum, xObjectocalChangeSeqNum = EXCLUDED.xObjectocalChangeSeqNum, xObjectLastChangedBy = EXCLUDED.xObjectLastChangedBy, xObjectLct = EXCLUDED.xObjectLct */; END ")):(e.add_11rb$("DROP TRIGGER IF EXISTS clazz_remote_insert_trig ON Clazz_ReceiveView"),e.add_11rb$("DROP VIEW IF EXISTS Clazz_ReceiveView"),e.add_11rb$("CREATE VIEW Clazz_ReceiveView AS SELECT Clazz.*, ClazzReplicate.* FROM Clazz LEFT JOIN ClazzReplicate ON ClazzReplicate.clazzPk = Clazz.clazzUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION clazz_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO Clazz(clazzUid, clazzName, clazzDesc, attendanceAverage, clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid, isClazzActive, clazzLocationUid, clazzStartTime, clazzEndTime, clazzFeatures, clazzSchoolUid, clazzEnrolmentPolicy, clazzTerminologyUid, clazzMasterChangeSeqNum, clazzLocalChangeSeqNum, clazzLastChangedBy, clazzLct, clazzTimeZone, clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid, clazzCode) VALUES (NEW.clazzUid, NEW.clazzName, NEW.clazzDesc, NEW.attendanceAverage, NEW.clazzHolidayUMCalendarUid, NEW.clazzScheuleUMCalendarUid, NEW.isClazzActive, NEW.clazzLocationUid, NEW.clazzStartTime, NEW.clazzEndTime, NEW.clazzFeatures, NEW.clazzSchoolUid, NEW.clazzEnrolmentPolicy, NEW.clazzTerminologyUid, NEW.clazzMasterChangeSeqNum, NEW.clazzLocalChangeSeqNum, NEW.clazzLastChangedBy, NEW.clazzLct, NEW.clazzTimeZone, NEW.clazzStudentsPersonGroupUid, NEW.clazzTeachersPersonGroupUid, NEW.clazzPendingStudentsPersonGroupUid, NEW.clazzParentsPersonGroupUid, NEW.clazzCode) ON CONFLICT (clazzUid) DO UPDATE SET clazzName = EXCLUDED.clazzName, clazzDesc = EXCLUDED.clazzDesc, attendanceAverage = EXCLUDED.attendanceAverage, clazzHolidayUMCalendarUid = EXCLUDED.clazzHolidayUMCalendarUid, clazzScheuleUMCalendarUid = EXCLUDED.clazzScheuleUMCalendarUid, isClazzActive = EXCLUDED.isClazzActive, clazzLocationUid = EXCLUDED.clazzLocationUid, clazzStartTime = EXCLUDED.clazzStartTime, clazzEndTime = EXCLUDED.clazzEndTime, clazzFeatures = EXCLUDED.clazzFeatures, clazzSchoolUid = EXCLUDED.clazzSchoolUid, clazzEnrolmentPolicy = EXCLUDED.clazzEnrolmentPolicy, clazzTerminologyUid = EXCLUDED.clazzTerminologyUid, clazzMasterChangeSeqNum = EXCLUDED.clazzMasterChangeSeqNum, clazzLocalChangeSeqNum = EXCLUDED.clazzLocalChangeSeqNum, clazzLastChangedBy = EXCLUDED.clazzLastChangedBy, clazzLct = EXCLUDED.clazzLct, clazzTimeZone = EXCLUDED.clazzTimeZone, clazzStudentsPersonGroupUid = EXCLUDED.clazzStudentsPersonGroupUid, clazzTeachersPersonGroupUid = EXCLUDED.clazzTeachersPersonGroupUid, clazzPendingStudentsPersonGroupUid = EXCLUDED.clazzPendingStudentsPersonGroupUid, clazzParentsPersonGroupUid = EXCLUDED.clazzParentsPersonGroupUid, clazzCode = EXCLUDED.clazzCode ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER clazz_remote_insert_trig INSTEAD OF INSERT ON Clazz_ReceiveView FOR EACH ROW EXECUTE PROCEDURE clazz_remote_insert_fn() "),e.add_11rb$("DROP TRIGGER IF EXISTS xobjectentity_remote_insert_trig ON XObjectEntity_ReceiveView"),e.add_11rb$("DROP VIEW IF EXISTS XObjectEntity_ReceiveView"),e.add_11rb$("CREATE VIEW XObjectEntity_ReceiveView AS SELECT XObjectEntity.*, XObjectEntityReplicate.* FROM XObjectEntity LEFT JOIN XObjectEntityReplicate ON XObjectEntityReplicate.xoePk = XObjectEntity.xObjectUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION xobjectentity_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO XObjectEntity(xObjectUid, objectType, objectId, definitionType, interactionType, correctResponsePattern, objectContentEntryUid, objectStatementRefUid, xObjectMasterChangeSeqNum, xObjectocalChangeSeqNum, xObjectLastChangedBy, xObjectLct) VALUES (NEW.xObjectUid, NEW.objectType, NEW.objectId, NEW.definitionType, NEW.interactionType, NEW.correctResponsePattern, NEW.objectContentEntryUid, NEW.objectStatementRefUid, NEW.xObjectMasterChangeSeqNum, NEW.xObjectocalChangeSeqNum, NEW.xObjectLastChangedBy, NEW.xObjectLct) ON CONFLICT (xObjectUid) DO UPDATE SET objectType = EXCLUDED.objectType, objectId = EXCLUDED.objectId, definitionType = EXCLUDED.definitionType, interactionType = EXCLUDED.interactionType, correctResponsePattern = EXCLUDED.correctResponsePattern, objectContentEntryUid = EXCLUDED.objectContentEntryUid,objectStatementRefUid = EXCLUDED.objectStatementRefUid, xObjectMasterChangeSeqNum = EXCLUDED.xObjectMasterChangeSeqNum, xObjectocalChangeSeqNum = EXCLUDED.xObjectocalChangeSeqNum, xObjectLastChangedBy = EXCLUDED.xObjectLastChangedBy, xObjectLct = EXCLUDED.xObjectLct ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER xobjectentity_remote_insert_trig INSTEAD OF INSERT ON XObjectEntity_ReceiveView FOR EACH ROW EXECUTE PROCEDURE xobjectentity_remote_insert_fn() ")),e})),_4=new Gt(104,105,(function(t){var e=F();if(1===Tt(t)){e.add_11rb$("CREATE TABLE IF NOT EXISTS ContentEntryPicture (`cepUid` INTEGER PRIMARY KEY AUTOINCREMENT NOT NULL, `cepContentEntryUid` INTEGER NOT NULL, `cepUri` TEXT, `cepMd5` TEXT, `cepFileSize` INTEGER NOT NULL, `cepTimestamp` INTEGER NOT NULL, `cepMimeType` TEXT, `cepActive` INTEGER NOT NULL)"),e.add_11rb$("CREATE TABLE IF NOT EXISTS ContentEntryPictureReplicate (`cepPk` INTEGER NOT NULL, `cepVersionId` INTEGER NOT NULL DEFAULT 0, `cepDestination` INTEGER NOT NULL, `cepPending` INTEGER NOT NULL DEFAULT 1, PRIMARY KEY(`cepPk`, `cepDestination`))"),e.add_11rb$("CREATE INDEX IF NOT EXISTS `index_ContentEntryPictureReplicate_cepPk_cepDestination_cepVersionId` ON ContentEntryPictureReplicate (`cepPk`, `cepDestination`, `cepVersionId`)"),e.add_11rb$("CREATE INDEX IF NOT EXISTS `index_ContentEntryPictureReplicate_cepDestination_cepPending` ON ContentEntryPictureReplicate (`cepDestination`, `cepPending`)"),e.add_11rb$(" CREATE TRIGGER ch_ins_138 AFTER INSERT ON ContentEntryPicture BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 138 AS chTableId, NEW.cepUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 138 AND chEntityPk = NEW.cepUid); END "),e.add_11rb$(" CREATE TRIGGER ch_upd_138 AFTER UPDATE ON ContentEntryPicture BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 138 AS chTableId, NEW.cepUid AS chEntityPk, 1 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 138 AND chEntityPk = NEW.cepUid); END "),e.add_11rb$(" CREATE TRIGGER ch_del_138 AFTER DELETE ON ContentEntryPicture BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) SELECT 138 AS chTableId, OLD.cepUid AS chEntityPk, 2 AS chType WHERE NOT EXISTS( SELECT chTableId FROM ChangeLog WHERE chTableId = 138 AND chEntityPk = OLD.cepUid); END "),e.add_11rb$("CREATE VIEW ContentEntryPicture_ReceiveView AS SELECT ContentEntryPicture.*, ContentEntryPictureReplicate.* FROM ContentEntryPicture LEFT JOIN ContentEntryPictureReplicate ON ContentEntryPictureReplicate.cepPk = ContentEntryPicture.cepUid "),e.add_11rb$(" CREATE TRIGGER ceppicture_remote_insert_ins INSTEAD OF INSERT ON ContentEntryPicture_ReceiveView FOR EACH ROW BEGIN REPLACE INTO ContentEntryPicture(cepUid, cepContentEntryUid, cepUri, cepMd5, cepFileSize, cepTimestamp, cepMimeType, cepActive) VALUES (NEW.cepUid, NEW.cepContentEntryUid, NEW.cepUri, NEW.cepMd5, NEW.cepFileSize, NEW.cepTimestamp, NEW.cepMimeType, NEW.cepActive) /*psql ON CONFLICT (cepUid) DO UPDATE SET cepContentEntryUid = EXCLUDED.cepContentEntryUid, cepUri = EXCLUDED.cepUri, cepMd5 = EXCLUDED.cepMd5, cepFileSize = EXCLUDED.cepFileSize, cepTimestamp = EXCLUDED.cepTimestamp, cepMimeType = EXCLUDED.cepMimeType, cepActive = EXCLUDED.cepActive */; END ");var n=S("\n |\n | CREATE TRIGGER ATTUPD_ContentEntryPicture\n | AFTER UPDATE ON ContentEntryPicture FOR EACH ROW WHEN\n | OLD.cepMd5 IS NOT NULL\n | BEGIN\n | \n | INSERT INTO ZombieAttachmentData(zaUri) \n | SELECT OLD.cepUri AS zaUri\n | FROM ContentEntryPicture \n | WHERE ContentEntryPicture.cepUid = OLD.cepUid\n | AND (SELECT COUNT(*) \n | FROM ContentEntryPicture\n | WHERE cepMd5 = OLD.cepMd5) = 0\n | ; \n | END\n | \n ");e.add_11rb$(n)}else{e.add_11rb$("CREATE TABLE IF NOT EXISTS ContentEntryPicture ( cepContentEntryUid BIGINT NOT NULL , cepUri TEXT , cepMd5 TEXT , cepFileSize INTEGER NOT NULL , cepTimestamp BIGINT NOT NULL , cepMimeType TEXT , cepActive BOOL NOT NULL , cepUid BIGSERIAL PRIMARY KEY NOT NULL )"),e.add_11rb$("CREATE TABLE IF NOT EXISTS ContentEntryPictureReplicate ( cepPk BIGINT NOT NULL , cepVersionId BIGINT NOT NULL DEFAULT 0 , cepDestination BIGINT NOT NULL , cepPending BOOL NOT NULL DEFAULT true, PRIMARY KEY (cepPk, cepDestination) )"),e.add_11rb$("CREATE INDEX index_ContentEntryPictureReplicate_cepPk_cepDestination_cepVersionId ON ContentEntryPictureReplicate (cepPk, cepDestination, cepVersionId)"),e.add_11rb$("CREATE INDEX index_ContentEntryPictureReplicate_cepDestination_cepPending ON ContentEntryPictureReplicate (cepDestination, cepPending)"),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_upd_138_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (138, NEW.cepUid, 1) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 1; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_upd_138_trig AFTER UPDATE OR INSERT ON ContentEntryPicture FOR EACH ROW EXECUTE PROCEDURE ch_upd_138_fn(); "),e.add_11rb$(" CREATE OR REPLACE FUNCTION ch_del_138_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ChangeLog(chTableId, chEntityPk, chType) VALUES (138, OLD.cepUid, 2) ON CONFLICT(chTableId, chEntityPk) DO UPDATE SET chType = 2; RETURN NULL; END $$ LANGUAGE plpgsql "),e.add_11rb$(" CREATE TRIGGER ch_del_138_trig AFTER DELETE ON ContentEntryPicture FOR EACH ROW EXECUTE PROCEDURE ch_del_138_fn(); "),e.add_11rb$("CREATE VIEW ContentEntryPicture_ReceiveView AS SELECT ContentEntryPicture.*, ContentEntryPictureReplicate.* FROM ContentEntryPicture LEFT JOIN ContentEntryPictureReplicate ON ContentEntryPictureReplicate.cepPk = ContentEntryPicture.cepUid "),e.add_11rb$("CREATE OR REPLACE FUNCTION ceppicture_remote_insert_fn() RETURNS TRIGGER AS $$ BEGIN INSERT INTO ContentEntryPicture(cepUid, cepContentEntryUid, cepUri, cepMd5, cepFileSize, cepTimestamp, cepMimeType, cepActive) VALUES (NEW.cepUid, NEW.cepContentEntryUid, NEW.cepUri, NEW.cepMd5, NEW.cepFileSize, NEW.cepTimestamp, NEW.cepMimeType, NEW.cepActive) ON CONFLICT (cepUid) DO UPDATE SET cepContentEntryUid = EXCLUDED.cepContentEntryUid, cepUri = EXCLUDED.cepUri, cepMd5 = EXCLUDED.cepMd5, cepFileSize = EXCLUDED.cepFileSize, cepTimestamp = EXCLUDED.cepTimestamp, cepMimeType = EXCLUDED.cepMimeType, cepActive = EXCLUDED.cepActive ; IF (TG_OP = 'INSERT' OR TG_OP = 'UPDATE') THEN RETURN NEW; ELSE RETURN OLD; END IF; END $$ LANGUAGE plpgsql"),e.add_11rb$(" CREATE TRIGGER ceppicture_remote_insert_trig INSTEAD OF INSERT ON ContentEntryPicture_ReceiveView FOR EACH ROW EXECUTE PROCEDURE ceppicture_remote_insert_fn() ");var i=S("\n | CREATE OR REPLACE FUNCTION attach_ContentEntryPicture_fn() RETURNS trigger AS $$\n | BEGIN\n | \n | INSERT INTO ZombieAttachmentData(zaUri) \n | SELECT OLD.cepUri AS zaUri\n | FROM ContentEntryPicture \n | WHERE ContentEntryPicture.cepUid = OLD.cepUid\n | AND (SELECT COUNT(*) \n | FROM ContentEntryPicture\n | WHERE cepMd5 = OLD.cepMd5) = 0\n |;\n | RETURN NEW;\n | END $$\n | LANGUAGE plpgsql\n ");e.add_11rb$(i);var o=S("\n |CREATE TRIGGER attach_ContentEntryPicture_trig\n |AFTER UPDATE ON ContentEntryPicture\n |FOR EACH ROW WHEN (OLD.cepMd5 IS NOT NULL)\n |EXECUTE PROCEDURE attach_ContentEntryPicture_fn();\n ");e.add_11rb$(o)}return e})),m4=new Gt(105,106,(function(t){var e=F();return e.add_11rb$("ALTER TABLE CourseAssignmentSubmissionAttachment ADD COLUMN casaFileName TEXT"),e})),f4=new Gt(106,107,(function(t){var e=F();return e.add_11rb$("DROP TABLE IF EXISTS SqliteChangeSeqNums"),e.add_11rb$("DROP TABLE IF EXISTS UpdateNotification"),e})),t})?i.apply(e,o):i)||(t.exports=r)},function(t,e,n){var i,o,r;o=[e,n(31),n(85),n(129),n(151),n(128)],void 0===(r="function"==typeof(i=function(t,e,n,i,o,r){"use strict";var s,a,c,l,u,h,d,p,_,m,f,g,$=t.$$importsForInline$$||(t.$$importsForInline$$={}),E=e.Kind.OBJECT,y=e.kotlin.Enum,b=e.Kind.CLASS,S=e.throwISE,v=e.kotlin.collections.mapCapacity_za3lpa$,C=e.kotlin.ranges.coerceAtLeast_dqglrj$,N=e.kotlin.collections.LinkedHashMap_init_bwtc7$,T=e.kotlin.collections.emptyList_287e2$,L=e.Kind.INTERFACE,z=e.Long.NEG_ONE,w=e.Long.fromInt(15e3),O=n.kotlinx.coroutines.CoroutineName,R=e.kotlin.coroutines.intrinsics.COROUTINE_SUSPENDED,A=e.kotlin.coroutines.CoroutineImpl,x=n.kotlinx.coroutines.cancel_q2ti5d$,I=n.kotlinx.coroutines,U=e.kotlin.Unit,D=i.io.ktor.utils.io.core.BytePacketBuilder,P=e.ensureNotNull,M=i.io.ktor.utils.io.core.writeFully_i6snlg$,k=i.io.ktor.utils.io.core.readBytes_xc9h3n$,j=n.kotlinx.coroutines.channels.ClosedSendChannelException,G=Error,q=n.kotlinx.coroutines.launch_s496o7$,F=n.kotlinx.coroutines.CoroutineStart,B=n.kotlinx.coroutines.channels.ClosedReceiveChannelException,W=e.kotlin.coroutines.cancellation.CancellationException,H=o.io.ktor.util.cio.ChannelIOException,V=e.kotlin.coroutines.cancellation.CancellationException_init_wspj0f$,K=e.Long.ZERO,X=r.kotlinx.atomicfu.atomic$ref$1,J=n.kotlinx.coroutines.CompletableDeferred_xptg6w$,Y=n.kotlinx.coroutines.channels.Channel_lsve6m$,Q=r.kotlinx.atomicfu.atomic$boolean$1,Z=n.kotlinx.coroutines.Job,tt=n.kotlinx.coroutines.Job_5dx9e$,et=e.kotlin.IllegalArgumentException_init_pdl1vj$,nt=e.kotlin.collections.ArrayList_init_287e2$,it=e.kotlin.IllegalStateException_init_pdl1vj$,ot=n.kotlinx.coroutines.channels.cancelConsumed_v57n85$,rt=i.io.ktor.utils.io.charsets,st=(i.io.ktor.utils.io.charsets.decode_lb8wo3$,i.io.ktor.utils.io.core.readShort_7wsnj1$),at=n.kotlinx.coroutines.DisposableHandle,ct=o.io.ktor.util.internal.initCauseBridge_oh0dqn$,lt=e.kotlin.Exception_init,ut=e.kotlin.Exception,ht=n.kotlinx.coroutines.CopyableThrowable,dt=e.kotlin.collections.get_lastIndex_m7z4lg$,pt=Array,_t=o.io.ktor.util.date.getTimeMillis,mt=e.kotlin.random.Random_s8cxhz$,ft=n.kotlinx.coroutines.withTimeoutOrNull_ms3uf5$,gt=o.io.ktor.util.hex_fqrh44$,$t=i.io.ktor.utils.io.core.String_xge8xe$,Et=e.equals,yt=e.kotlin.text.encodeToByteArray_pdl1vz$,bt=i.io.ktor.utils.io.charsets.encodeToByteArray_fj4osb$,St=e.Long.fromInt(2147483647),vt=(i.io.ktor.utils.io.close_x5qia6$,i.io.ktor.utils.io.errors.EOFException,e.toByte,e.toShort,e.kotlin.random.Random,e.Long.fromInt(65535),i.io.ktor.utils.io.bits,e.defineInlineFunction,e.wrapFunction,e.kotlin.collections.collectionSizeOrDefault_ba2ldo$),Ct=e.kotlin.collections.ArrayList_init_ww73n8$,Nt=e.kotlin.collections.asSequence_7wnvza$,Tt=e.kotlin.text.indexOf_8eortd$,Lt=e.kotlin.to_ujzrz7$,zt=e.kotlin.ranges.until_dqglrj$,wt=e.kotlin.text.substring_fc3b62$,Ot=e.kotlin.sequences.map_z5avom$,Rt=e.kotlin.collections.joinToString_fmv235$,At=e.kotlin.text.split_ip8yn$,xt=e.kotlin.collections.first_2p1efm$,It=e.kotlin.collections.drop_ba2ldo$,Ut=e.throwCCE,Dt=e.kotlin.text.trim_gw00vp$,Pt=n.kotlinx.coroutines.CoroutineScope,Mt=i.io.ktor.utils.io.core.writeShort_9kfkzl$,kt=i.io.ktor.utils.io.core.writeText_t153jy$;function jt(t,e){this.code=t,this.message=e}function Gt(t,e,n){y.call(this),this.code=n,this.name$=t,this.ordinal$=e}function qt(){qt=function(){},s=new Gt("NORMAL",0,1e3),a=new Gt("GOING_AWAY",1,1001),c=new Gt("PROTOCOL_ERROR",2,1002),l=new Gt("CANNOT_ACCEPT",3,1003),u=new Gt("CLOSED_ABNORMALLY",4,1006),h=new Gt("NOT_CONSISTENT",5,1007),d=new Gt("VIOLATED_POLICY",6,1008),p=new Gt("TOO_BIG",7,1009),_=new Gt("NO_EXTENSION",8,1010),m=new Gt("INTERNAL_ERROR",9,1011),f=new Gt("SERVICE_RESTART",10,1012),g=new Gt("TRY_AGAIN_LATER",11,1013),se()}function Ft(){return qt(),s}function Bt(){return qt(),a}function Wt(){return qt(),c}function Ht(){return qt(),l}function Vt(){return qt(),u}function Kt(){return qt(),h}function Xt(){return qt(),d}function Jt(){return qt(),p}function Yt(){return qt(),_}function Qt(){return qt(),m}function Zt(){return qt(),f}function te(){return qt(),g}function ee(){re=this;var t,e=ae(),n=C(v(e.length),16),i=N(n);for(t=0;t!==e.length;++t){var o=e[t];i.put_xwzc9p$(o.code,o)}this.byCodeMap_0=i,this.UNEXPECTED_CONDITION=Qt()}Gt.prototype=Object.create(y.prototype),Gt.prototype.constructor=Gt,Oe.prototype=Object.create(ut.prototype),Oe.prototype.constructor=Oe,Re.prototype=Object.create(y.prototype),Re.prototype.constructor=Re,hn.prototype=Object.create(un.prototype),hn.prototype.constructor=hn,pn.prototype=Object.create(un.prototype),pn.prototype.constructor=pn,mn.prototype=Object.create(un.prototype),mn.prototype.constructor=mn,$n.prototype=Object.create(un.prototype),$n.prototype.constructor=$n,En.prototype=Object.create(un.prototype),En.prototype.constructor=En,Object.defineProperty(jt.prototype,"knownReason",{configurable:!0,get:function(){return se().byCode_mq22fl$(this.code)}}),jt.prototype.toString=function(){var t;return"CloseReason(reason="+(null!=(t=this.knownReason)?t:this.code).toString()+", message="+this.message+")"},ee.prototype.byCode_mq22fl$=function(t){return this.byCodeMap_0.get_11rb$(t)},ee.$metadata$={kind:E,simpleName:"Companion",interfaces:[]};var ne,ie,oe,re=null;function se(){return qt(),null===re&&new ee,re}function ae(){return[Ft(),Bt(),Wt(),Ht(),Vt(),Kt(),Xt(),Jt(),Yt(),Qt(),Zt(),te()]}function ce(t,e,n){return n=n||Object.create(jt.prototype),jt.call(n,t.code,e),n}function le(){}function ue(t,e,n){ye(),this.raw_0=t,this.pinger_0=X(null),this.closeReasonRef_0=J(),this.filtered_0=Y(8),this.outgoingToBeProcessed_0=Y(8),this.closed_0=Q(!1),this.context_0=tt(this.raw_0.coroutineContext.get_j3r2sn$(Z.Key)),this._extensions_0=nt(),this.started_0=Q(!1),this.coroutineContext_e1jcv0$_0=this.raw_0.coroutineContext.plus_1fupul$(this.context_0).plus_1fupul$(new O("ws-default")),this.pingIntervalMillis_3oq8ke$_0=e,this.timeoutMillis_jqpwcu$_0=n,this.closeReason_rkke7x$_0=this.closeReasonRef_0}function he(t,e,n){A.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$message=e}function de(t,e){A.call(this,e),this.exceptionState_0=1,this.$this=t}function pe(t,e,n,i,o){A.call(this,o),this.$controller=i,this.exceptionState_0=32,this.local$this$DefaultWebSocketSessionImpl=t,this.local$closure$ponger=e,this.local$last=void 0,this.local$closeFramePresented=void 0,this.local$$receiver=void 0,this.local$cause=void 0,this.local$tmp$=void 0,this.local$e=void 0,this.local$this$DefaultWebSocketSessionImpl_0=void 0,this.local$closure$ponger_0=void 0}function _e(t,e,n,i){A.call(this,i),this.$controller=n,this.exceptionState_0=18,this.local$this$DefaultWebSocketSessionImpl=t}function me(t,e){A.call(this,e),this.exceptionState_0=1,this.$this=t,this.local$tmp$=void 0,this.local$tmp$_0=void 0}function fe(t,e,n){A.call(this,n),this.exceptionState_0=7,this.$this=t,this.local$reasonToSend=void 0,this.local$reason=e}function ge(t,e,n,i){A.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$size=void 0,this.local$packet=e,this.local$frame=n}function $e(){Ee=this,this.EmptyPong_0=new En(new Int8Array(0),we())}Gt.$metadata$={kind:b,simpleName:"Codes",interfaces:[y]},Gt.values=ae,Gt.valueOf_61zpoe$=function(t){switch(t){case"NORMAL":return Ft();case"GOING_AWAY":return Bt();case"PROTOCOL_ERROR":return Wt();case"CANNOT_ACCEPT":return Ht();case"CLOSED_ABNORMALLY":return Vt();case"NOT_CONSISTENT":return Kt();case"VIOLATED_POLICY":return Xt();case"TOO_BIG":return Jt();case"NO_EXTENSION":return Yt();case"INTERNAL_ERROR":return Qt();case"SERVICE_RESTART":return Zt();case"TRY_AGAIN_LATER":return te();default:S("No enum constant io.ktor.websocket.CloseReason.Codes."+t)}},jt.$metadata$={kind:b,simpleName:"CloseReason",interfaces:[]},jt.prototype.component1=function(){return this.code},jt.prototype.component2=function(){return this.message},jt.prototype.copy_qid81t$=function(t,e){return new jt(void 0===t?this.code:t,void 0===e?this.message:e)},jt.prototype.hashCode=function(){var t=0;return t=31*(t=31*t+e.hashCode(this.code)|0)+e.hashCode(this.message)|0},jt.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.code,t.code)&&e.equals(this.message,t.message)},le.prototype.start_wwqcjq$=function(t,e){void 0===t&&(t=T()),e?e(t):this.start_wwqcjq$$default(t)},le.$metadata$={kind:L,simpleName:"DefaultWebSocketSession",interfaces:[on]},Object.defineProperty(ue.prototype,"incoming",{configurable:!0,get:function(){return this.filtered_0}}),Object.defineProperty(ue.prototype,"outgoing",{configurable:!0,get:function(){return this.outgoingToBeProcessed_0}}),Object.defineProperty(ue.prototype,"extensions",{configurable:!0,get:function(){return this._extensions_0}}),Object.defineProperty(ue.prototype,"coroutineContext",{configurable:!0,get:function(){return this.coroutineContext_e1jcv0$_0}}),Object.defineProperty(ue.prototype,"masking",{configurable:!0,get:function(){return this.raw_0.masking},set:function(t){this.raw_0.masking=t}}),Object.defineProperty(ue.prototype,"maxFrameSize",{configurable:!0,get:function(){return this.raw_0.maxFrameSize},set:function(t){this.raw_0.maxFrameSize=t}}),Object.defineProperty(ue.prototype,"pingIntervalMillis",{configurable:!0,get:function(){return this.pingIntervalMillis_3oq8ke$_0},set:function(t){this.pingIntervalMillis_3oq8ke$_0=t,this.runOrCancelPinger_0()}}),Object.defineProperty(ue.prototype,"timeoutMillis",{configurable:!0,get:function(){return this.timeoutMillis_jqpwcu$_0},set:function(t){this.timeoutMillis_jqpwcu$_0=t,this.runOrCancelPinger_0()}}),Object.defineProperty(ue.prototype,"closeReason",{configurable:!0,get:function(){return this.closeReason_rkke7x$_0}}),ue.prototype.start_wwqcjq$$default=function(t){if(!this.started_0.atomicfu$compareAndSet(!1,!0))throw it("WebSocket session is already started.".toString());this._extensions_0.addAll_brywnq$(t),this.runOrCancelPinger_0(),this.runIncomingProcessor_0(We(this,this.outgoing)),this.runOutgoingProcessor_0()},he.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[A]},he.prototype=Object.create(A.prototype),he.prototype.constructor=he,he.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(void 0===this.local$message&&(this.local$message="Server is going down"),this.state_0=2,this.result_0=this.$this.sendCloseSequence_0(ce(Bt(),this.local$message),this),this.result_0===R)return R;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ue.prototype.goingAway_61zpoe$=function(t,e,n){var i=new he(this,t,e);return n?i:i.doResume(null)},de.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[A]},de.prototype=Object.create(A.prototype),de.prototype.constructor=de,de.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this.raw_0.flush(this),this.result_0===R)return R;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ue.prototype.flush=function(t,e){var n=new de(this,t);return e?n:n.doResume(null)},ue.prototype.terminate=function(){this.context_0.cancel_x5z25k$(),x(this.raw_0)},pe.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[A]},pe.prototype=Object.create(A.prototype),pe.prototype.constructor=pe,pe.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;this.local$last={v:null},this.local$closeFramePresented={v:!1},this.exceptionState_0=2,this.local$$receiver=this.local$this$DefaultWebSocketSessionImpl.raw_0.incoming,this.local$cause=null,this.exceptionState_0=1,this.local$tmp$=this.local$$receiver.iterator(),this.state_0=11;continue;case 1:this.finallyPath_0=[2],this.exceptionState_0=26;var n=this.exception_0;throw e.isType(n,G)?(this.local$cause=n,n):n;case 2:this.finallyPath_0=[32],this.exceptionState_0=7;var i=this.exception_0;if(e.isType(i,j)){this.exceptionState_0=32,this.finallyPath_0=[5],this.state_0=7,this.$returnValue=U;continue}if(e.isType(i,G)){var o=i;this.local$closure$ponger.close_dbl4no$(),this.exceptionState_0=32,this.finallyPath_0=[3],this.state_0=7,this.$returnValue=this.local$this$DefaultWebSocketSessionImpl.filtered_0.close_dbl4no$(o);continue}throw i;case 3:return this.$returnValue;case 4:this.state_0=6;continue;case 5:return this.$returnValue;case 6:this.finallyPath_0=[31],this.state_0=7;continue;case 7:if(this.exceptionState_0=32,this.local$closure$ponger.close_dbl4no$(),null!=(t=this.local$last.v)&&t.release(),this.local$this$DefaultWebSocketSessionImpl.filtered_0.close_dbl4no$(),this.local$closeFramePresented.v){this.state_0=30;continue}if(this.state_0=29,this.result_0=an(this.local$this$DefaultWebSocketSessionImpl,ce(Vt(),"Connection was closed without close frame"),this),this.result_0===R)return R;continue;case 8:return;case 9:this.state_0=10;continue;case 10:this.state_0=11;continue;case 11:if(this.state_0=12,this.result_0=this.local$tmp$.hasNext(this),this.result_0===R)return R;continue;case 12:if(this.result_0){this.state_0=13;continue}this.state_0=25;continue;case 13:this.local$e=this.local$tmp$.next(),this.local$this$DefaultWebSocketSessionImpl_0=this.local$this$DefaultWebSocketSessionImpl,this.local$closure$ponger_0=this.local$closure$ponger,this.state_0=14;continue;case 14:var r,s,a,c;if(e.isType(this.local$e,mn)){if(this.local$this$DefaultWebSocketSessionImpl_0.outgoing.isClosedForSend){this.state_0=24;continue}if(this.state_0=23,this.result_0=this.local$this$DefaultWebSocketSessionImpl_0.outgoing.send_11rb$(fn(null!=(r=be(this.local$e))?r:oe),this),this.result_0===R)return R;continue}if(e.isType(this.local$e,En)){if(null!=(s=this.local$this$DefaultWebSocketSessionImpl_0.pinger_0.kotlinx$atomicfu$value)){if(this.state_0=20,this.result_0=s.send_11rb$(this.local$e,this),this.result_0===R)return R;continue}this.result_0=null,this.state_0=21;continue}if(e.isType(this.local$e,$n)){if(this.state_0=18,this.result_0=this.local$closure$ponger_0.send_11rb$(this.local$e,this),this.result_0===R)return R;continue}if(this.state_0=15,this.result_0=this.local$this$DefaultWebSocketSessionImpl_0.checkMaxFrameSize_0(this.local$last.v,this.local$e,this),this.result_0===R)return R;continue;case 15:if(this.local$e.fin){this.state_0=16;continue}null==this.local$last.v&&(this.local$last.v=new D),M(P(this.local$last.v),this.local$e.data),this.state_0=10;continue;case 16:var l;null!=(a=this.local$last.v)?(M(a,this.local$e.data),l=Sn().byType_da1xm4$(!0,this.local$e.frameType,k(a.build()),this.local$e.rsv1,this.local$e.rsv2,this.local$e.rsv3)):l=null;var u=null!=(c=l)?c:this.local$e;if(this.local$last.v=null,this.state_0=17,this.result_0=this.local$this$DefaultWebSocketSessionImpl_0.filtered_0.send_11rb$(this.local$this$DefaultWebSocketSessionImpl_0.processIncomingExtensions_0(u),this),this.result_0===R)return R;continue;case 17:case 18:this.state_0=19;continue;case 19:this.state_0=22;continue;case 20:this.result_0=U,this.state_0=21;continue;case 21:this.state_0=22;continue;case 22:this.state_0=9;continue;case 23:this.state_0=24;continue;case 24:this.local$closeFramePresented.v=!0,this.exceptionState_0=32,this.finallyPath_0=[7,8],this.state_0=26;continue;case 25:this.exceptionState_0=2,this.finallyPath_0=[27],this.state_0=26;continue;case 26:this.exceptionState_0=2,ot(this.local$$receiver,this.local$cause),this.state_0=this.finallyPath_0.shift();continue;case 27:this.result_0=U,this.exceptionState_0=32,this.finallyPath_0=[28],this.state_0=7,this.$returnValue=this.result_0;continue;case 28:return this.$returnValue;case 29:this.state_0=30;continue;case 30:this.state_0=this.finallyPath_0.shift();continue;case 31:return;case 32:throw this.exception_0;default:throw this.state_0=32,new Error("State Machine Unreachable execution")}}catch(t){if(32===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ue.prototype.runIncomingProcessor_0=function(t){return q(this,ne.plus_1fupul$(I.Dispatchers.Unconfined),void 0,(e=this,n=t,function(t,i,o){var r=new pe(e,n,t,this,i);return o?r:r.doResume(null)}));var e,n},_e.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[A]},_e.prototype=Object.create(A.prototype),_e.prototype.constructor=_e,_e.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.exceptionState_0=3,this.state_0=1,this.result_0=this.local$this$DefaultWebSocketSessionImpl.outgoingProcessorLoop_0(this),this.result_0===R)return R;continue;case 1:this.exceptionState_0=18,this.finallyPath_0=[2],this.state_0=15,this.$returnValue=this.result_0;continue;case 2:return this.$returnValue;case 3:this.finallyPath_0=[18],this.exceptionState_0=15;var t=this.exception_0;if(e.isType(t,j)){this.exceptionState_0=18,this.finallyPath_0=[13],this.state_0=15,this.$returnValue=U;continue}if(e.isType(t,B)){this.exceptionState_0=18,this.finallyPath_0=[11],this.state_0=15,this.$returnValue=U;continue}if(e.isType(t,W)){this.exceptionState_0=18,this.finallyPath_0=[9],this.state_0=15,this.$returnValue=U;continue}if(e.isType(t,H)){this.exceptionState_0=18,this.finallyPath_0=[7],this.state_0=15,this.$returnValue=U;continue}if(e.isType(t,G)){var n=t;if(this.local$this$DefaultWebSocketSessionImpl.outgoingToBeProcessed_0.cancel_x5z25k$(V("Failed to send frame",n)),this.state_0=4,this.result_0=ln(this.local$this$DefaultWebSocketSessionImpl.raw_0,n,this),this.result_0===R)return R;continue}throw t;case 4:this.exceptionState_0=18,this.finallyPath_0=[5],this.state_0=15,this.$returnValue=this.result_0;continue;case 5:return this.$returnValue;case 6:this.state_0=8;continue;case 7:return this.$returnValue;case 8:this.state_0=10;continue;case 9:return this.$returnValue;case 10:this.state_0=12;continue;case 11:return this.$returnValue;case 12:this.state_0=14;continue;case 13:return this.$returnValue;case 14:this.finallyPath_0=[17],this.state_0=15;continue;case 15:if(this.exceptionState_0=18,this.local$this$DefaultWebSocketSessionImpl.outgoingToBeProcessed_0.cancel_x5z25k$(),this.state_0=16,this.result_0=an(this.local$this$DefaultWebSocketSessionImpl.raw_0,void 0,this),this.result_0===R)return R;continue;case 16:this.state_0=this.finallyPath_0.shift();continue;case 17:return;case 18:throw this.exception_0;default:throw this.state_0=18,new Error("State Machine Unreachable execution")}}catch(t){if(18===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ue.prototype.runOutgoingProcessor_0=function(){return q(this,ie.plus_1fupul$(I.Dispatchers.Unconfined),F.UNDISPATCHED,(t=this,function(e,n,i){var o=new _e(t,e,this,n);return i?o:o.doResume(null)}));var t},me.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[A]},me.prototype=Object.create(A.prototype),me.prototype.constructor=me,me.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$tmp$=this.$this.outgoingToBeProcessed_0.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=this.local$tmp$.hasNext(this),this.result_0===R)return R;continue;case 3:if(this.result_0){this.state_0=4;continue}this.state_0=8;continue;case 4:var t=this.local$tmp$.next();if(e.isType(t,mn)){if(this.state_0=5,this.result_0=this.$this.sendCloseSequence_0(be(t),this),this.result_0===R)return R;continue}e.isType(t,pn)||e.isType(t,hn)?this.local$tmp$_0=this.$this.processOutgoingExtensions_0(t):this.local$tmp$_0=t,this.state_0=6;continue;case 5:this.state_0=8;continue;case 6:var n=this.local$tmp$_0;if(this.state_0=7,this.result_0=this.$this.raw_0.outgoing.send_11rb$(n,this),this.result_0===R)return R;continue;case 7:this.state_0=2;continue;case 8:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ue.prototype.outgoingProcessorLoop_0=function(t,e){var n=new me(this,t);return e?n:n.doResume(null)},fe.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[A]},fe.prototype=Object.create(A.prototype),fe.prototype.constructor=fe,fe.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.$this.tryClose_0()){this.state_0=1;continue}return;case 1:if(this.$this.context_0.complete(),this.local$reasonToSend=null!=this.local$reason?this.local$reason:ce(Ft(),""),this.exceptionState_0=5,this.$this.runOrCancelPinger_0(),this.local$reasonToSend.code!==Vt().code){if(this.state_0=2,this.result_0=this.$this.raw_0.outgoing.send_11rb$(fn(this.local$reasonToSend),this),this.result_0===R)return R;continue}this.state_0=3;continue;case 2:this.state_0=3;continue;case 3:this.exceptionState_0=7,this.finallyPath_0=[4],this.state_0=6;continue;case 4:return;case 5:this.finallyPath_0=[7],this.state_0=6;continue;case 6:this.exceptionState_0=7,this.$this.closeReasonRef_0.complete_11rb$(this.local$reasonToSend),this.state_0=this.finallyPath_0.shift();continue;case 7:throw this.exception_0;default:throw this.state_0=7,new Error("State Machine Unreachable execution")}}catch(t){if(7===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ue.prototype.sendCloseSequence_0=function(t,e,n){var i=new fe(this,t,e);return n?i:i.doResume(null)},ue.prototype.tryClose_0=function(){return this.closed_0.atomicfu$compareAndSet(!1,!0)},ue.prototype.runOrCancelPinger_0=function(){var t,e,n=this.pingIntervalMillis,i=this.closed_0.kotlinx$atomicfu$value?null:n.compareTo_11rb$(K)>0?Ye(this,this.raw_0.outgoing,n,this.timeoutMillis):null;null!=(t=this.pinger_0.atomicfu$getAndSet(i))&&t.close_dbl4no$(),null!=(e=null!=i?i.trySend_11rb$(ye().EmptyPong_0):null)&&e.isSuccess,this.closed_0.kotlinx$atomicfu$value&&null!=i&&this.runOrCancelPinger_0()},ge.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[A]},ge.prototype=Object.create(A.prototype),ge.prototype.constructor=ge,ge.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(this.local$size=this.local$frame.data.length+(null!=(t=null!=this.local$packet?this.local$packet.size:null)?t:0)|0,this.local$size>this.$this.maxFrameSize.toNumber()){if(null!=this.local$packet&&this.local$packet.release(),this.state_0=2,this.result_0=an(this.$this,ce(Jt(),"Frame is too big: "+this.local$size+". Max size is "+this.$this.maxFrameSize.toString()),this),this.result_0===R)return R;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:throw new Oe(e.Long.fromInt(this.local$size));case 3:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ue.prototype.checkMaxFrameSize_0=function(t,e,n,i){var o=new ge(this,t,e,n);return i?o:o.doResume(null)},ue.prototype.processIncomingExtensions_0=function(t){var e,n=t;for(e=this.extensions.iterator();e.hasNext();)n=e.next().processIncomingFrame_q1ubw4$(n);return n},ue.prototype.processOutgoingExtensions_0=function(t){var e,n=t;for(e=this.extensions.iterator();e.hasNext();)n=e.next().processOutgoingFrame_q1ubw4$(n);return n},$e.$metadata$={kind:E,simpleName:"Companion",interfaces:[]};var Ee=null;function ye(){return null===Ee&&new $e,Ee}function be(t){if(t.data.length<2)return null;var n,i=new D;try{M(i,t.data),n=i.build()}catch(t){throw e.isType(t,G)?(i.release(),t):t}var o=n;return new jt(st(o),o.readText_vux9f0$())}function Se(){ze=this}ue.$metadata$={kind:b,simpleName:"DefaultWebSocketSessionImpl",interfaces:[le,on]},Se.prototype.dispose=function(){},Se.prototype.toString=function(){return"NonDisposableHandle"},Se.$metadata$={kind:E,simpleName:"NonDisposableHandle",interfaces:[at]};var ve,Ce,Ne,Te,Le,ze=null;function we(){return null===ze&&new Se,ze}function Oe(t){lt(this),this.frameSize=t,this.name="FrameTooBigException"}function Re(t,e,n,i){y.call(this),this.controlFrame=n,this.opcode=i,this.name$=t,this.ordinal$=e}function Ae(){Ae=function(){},ve=new Re("TEXT",0,!1,1),Ce=new Re("BINARY",1,!1,2),Ne=new Re("CLOSE",2,!0,8),Te=new Re("PING",3,!0,9),Le=new Re("PONG",4,!0,10),qe()}function xe(){return Ae(),ve}function Ie(){return Ae(),Ce}function Ue(){return Ae(),Ne}function De(){return Ae(),Te}function Pe(){return Ae(),Le}function Me(){Ge=this;var t,n=Fe();t:do{if(0===n.length){t=null;break t}var i=n[0],o=dt(n);if(0===o){t=i;break t}for(var r=i.opcode,s=1;s<=o;s++){var a=n[s],c=a.opcode;e.compareTo(r,c)<0&&(i=a,r=c)}t=i}while(0);this.maxOpcode_0=P(t).opcode;var l,u=pt(this.maxOpcode_0+1|0);l=u.length-1|0;for(var h=0;h<=l;h++){var d,p=Fe();t:do{var _,m=null,f=!1;for(_=0;_!==p.length;++_){var g=p[_];if(g.opcode===h){if(f){d=null;break t}m=g,f=!0}}if(!f){d=null;break t}d=m}while(0);u[h]=d}this.byOpcodeArray_0=u}Object.defineProperty(Oe.prototype,"message",{configurable:!0,get:function(){return"Frame is too big: "+this.frameSize.toString()}}),Oe.prototype.createCopy=function(){var t=new Oe(this.frameSize);return ct(t,this),t},Oe.$metadata$={kind:b,simpleName:"FrameTooBigException",interfaces:[ht,ut]},Me.prototype.get_za3lpa$=function(t){var e;return e=this.maxOpcode_0,0<=t&&t<=e?this.byOpcodeArray_0[t]:null},Me.$metadata$={kind:E,simpleName:"Companion",interfaces:[]};var ke,je,Ge=null;function qe(){return Ae(),null===Ge&&new Me,Ge}function Fe(){return[xe(),Ie(),Ue(),De(),Pe()]}function Be(t,e,n,i,o){A.call(this,o),this.$controller=i,this.exceptionState_0=12,this.local$closure$channel=t,this.local$closure$outgoing=e,this.local$$receiver=void 0,this.local$cause=void 0,this.local$tmp$=void 0}function We(t,e){var n,i,o=Y(5);return q(t,ke,void 0,(n=o,i=e,function(t,e,o){var r=new Be(n,i,t,this,e);return o?r:r.doResume(null)})),o}function He(t,e,n,i){A.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$closure$channel=t}function Ve(t){return function(e,n,i){var o=new He(t,e,this,n);return i?o:o.doResume(null)}}function Ke(t,e,n,i,o,r){A.call(this,r),this.$controller=o,this.exceptionState_0=1,this.local$closure$outgoing=t,this.local$closure$pingMessage=e,this.local$closure$channel=n}function Xe(t,e,n){return function(i,o,r){var s=new Ke(t,e,n,i,this,o);return r?s:s.doResume(null)}}function Je(t,e,n,i,o,r,s){A.call(this,s),this.$controller=r,this.exceptionState_0=12,this.local$closure$periodMillis=t,this.local$closure$channel=e,this.local$closure$timeoutMillis=n,this.local$closure$outgoing=i,this.local$random=void 0,this.local$pingIdBytes=void 0}function Ye(t,e,n,i){var o,r,s,a,c,l=tt(),u=Y(2147483647);return q(t,l.plus_1fupul$(je),void 0,(o=n,r=u,s=i,a=e,function(t,e,n){var i=new Je(o,r,s,a,t,this,e);return n?i:i.doResume(null)})),P(t.coroutineContext.get_j3r2sn$(Z.Key)).invokeOnCompletion_f05bi3$((c=l,function(t){return c.cancel_x5z25k$(),U})),u}function Qe(t,e,n,i,o){void 0===n&&(n=St),void 0===i&&(i=!1),this.input_0=t,this.output_0=e,this.maxFrameSize_bk9yz7$_0=n,this.masking_w8hg6f$_0=i,this.socketJob_0=tt(o.get_j3r2sn$(Z.Key)),this._incoming_0=Y(8),this._outgoing_0=Y(8),this.lastOpcode_0=0,this.coroutineContext_2cg00w$_0=o.plus_1fupul$(this.socketJob_0).plus_1fupul$(new O("raw-ws")),this.writerJob_0=q(this,new O("ws-writer"),F.ATOMIC,RawWebSocketCommon$writerJob$lambda(this)),this.readerJob_0=q(this,new O("ws-reader"),F.ATOMIC,RawWebSocketCommon$readerJob$lambda(this)),this.socketJob_0.complete()}function Ze(){this.installers_0=nt(),this.rcv_0=[!1,!1,!1]}function tn(t){return U}function en(t,e){this.name=t,this.parameters=e}function nn(t){var e=Tt(t,61);if(e<0)return Lt(t,"");var n,i=wt(t,zt(0,e));if((e+1|0)=20?"ste":"de")},week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},i=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},o={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},r=function(t){return function(e,n,r,s){var a=i(e),c=o[t][i(e)];return 2===a&&(c=c[n?0:1]),c.replace(/%d/i,e)}},s=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];t.defineLocale("ar",{months:s,monthsShort:s,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,n){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:r("s"),ss:r("s"),m:r("m"),mm:r("m"),h:r("h"),hh:r("h"),d:r("d"),dd:r("d"),M:r("M"),MM:r("M"),y:r("y"),yy:r("y")},preparse:function(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(t){return n[t]})).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},n={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},i=function(t){return function(i,o,r,s){var a=e(i),c=n[t][e(i)];return 2===a&&(c=c[o?0:1]),c.replace(/%d/i,i)}},o=["جانفي","فيفري","مارس","أفريل","ماي","جوان","جويلية","أوت","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];t.defineLocale("ar-dz",{months:o,monthsShort:o,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,n){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:i("s"),ss:i("s"),m:i("m"),mm:i("m"),h:i("h"),hh:i("h"),d:i("d"),dd:i("d"),M:i("M"),MM:i("M"),y:i("y"),yy:i("y")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:0,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("ar-kw",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإتنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اتنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:0,doy:12}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e={1:"1",2:"2",3:"3",4:"4",5:"5",6:"6",7:"7",8:"8",9:"9",0:"0"},n=function(t){return 0===t?0:1===t?1:2===t?2:t%100>=3&&t%100<=10?3:t%100>=11?4:5},i={s:["أقل من ثانية","ثانية واحدة",["ثانيتان","ثانيتين"],"%d ثوان","%d ثانية","%d ثانية"],m:["أقل من دقيقة","دقيقة واحدة",["دقيقتان","دقيقتين"],"%d دقائق","%d دقيقة","%d دقيقة"],h:["أقل من ساعة","ساعة واحدة",["ساعتان","ساعتين"],"%d ساعات","%d ساعة","%d ساعة"],d:["أقل من يوم","يوم واحد",["يومان","يومين"],"%d أيام","%d يومًا","%d يوم"],M:["أقل من شهر","شهر واحد",["شهران","شهرين"],"%d أشهر","%d شهرا","%d شهر"],y:["أقل من عام","عام واحد",["عامان","عامين"],"%d أعوام","%d عامًا","%d عام"]},o=function(t){return function(e,o,r,s){var a=n(e),c=i[t][n(e)];return 2===a&&(c=c[o?0:1]),c.replace(/%d/i,e)}},r=["يناير","فبراير","مارس","أبريل","مايو","يونيو","يوليو","أغسطس","سبتمبر","أكتوبر","نوفمبر","ديسمبر"];t.defineLocale("ar-ly",{months:r,monthsShort:r,weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/‏M/‏YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,n){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم عند الساعة] LT",nextDay:"[غدًا عند الساعة] LT",nextWeek:"dddd [عند الساعة] LT",lastDay:"[أمس عند الساعة] LT",lastWeek:"dddd [عند الساعة] LT",sameElse:"L"},relativeTime:{future:"بعد %s",past:"منذ %s",s:o("s"),ss:o("s"),m:o("m"),mm:o("m"),h:o("h"),hh:o("h"),d:o("d"),dd:o("d"),M:o("M"),MM:o("M"),y:o("y"),yy:o("y")},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("ar-ma",{months:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_ماي_يونيو_يوليوز_غشت_شتنبر_أكتوبر_نونبر_دجنبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"احد_اثنين_ثلاثاء_اربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"};t.defineLocale("ar-sa",{months:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"يناير_فبراير_مارس_أبريل_مايو_يونيو_يوليو_أغسطس_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/ص|م/,isPM:function(t){return"م"===t},meridiem:function(t,e,n){return t<12?"ص":"م"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},preparse:function(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(t){return n[t]})).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},week:{dow:0,doy:6}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("ar-tn",{months:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),monthsShort:"جانفي_فيفري_مارس_أفريل_ماي_جوان_جويلية_أوت_سبتمبر_أكتوبر_نوفمبر_ديسمبر".split("_"),weekdays:"الأحد_الإثنين_الثلاثاء_الأربعاء_الخميس_الجمعة_السبت".split("_"),weekdaysShort:"أحد_إثنين_ثلاثاء_أربعاء_خميس_جمعة_سبت".split("_"),weekdaysMin:"ح_ن_ث_ر_خ_ج_س".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[اليوم على الساعة] LT",nextDay:"[غدا على الساعة] LT",nextWeek:"dddd [على الساعة] LT",lastDay:"[أمس على الساعة] LT",lastWeek:"dddd [على الساعة] LT",sameElse:"L"},relativeTime:{future:"في %s",past:"منذ %s",s:"ثوان",ss:"%d ثانية",m:"دقيقة",mm:"%d دقائق",h:"ساعة",hh:"%d ساعات",d:"يوم",dd:"%d أيام",M:"شهر",MM:"%d أشهر",y:"سنة",yy:"%d سنوات"},week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e={1:"-inci",5:"-inci",8:"-inci",70:"-inci",80:"-inci",2:"-nci",7:"-nci",20:"-nci",50:"-nci",3:"-üncü",4:"-üncü",100:"-üncü",6:"-ncı",9:"-uncu",10:"-uncu",30:"-uncu",60:"-ıncı",90:"-ıncı"};t.defineLocale("az",{months:"yanvar_fevral_mart_aprel_may_iyun_iyul_avqust_sentyabr_oktyabr_noyabr_dekabr".split("_"),monthsShort:"yan_fev_mar_apr_may_iyn_iyl_avq_sen_okt_noy_dek".split("_"),weekdays:"Bazar_Bazar ertəsi_Çərşənbə axşamı_Çərşənbə_Cümə axşamı_Cümə_Şənbə".split("_"),weekdaysShort:"Baz_BzE_ÇAx_Çər_CAx_Cüm_Şən".split("_"),weekdaysMin:"Bz_BE_ÇA_Çə_CA_Cü_Şə".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[sabah saat] LT",nextWeek:"[gələn həftə] dddd [saat] LT",lastDay:"[dünən] LT",lastWeek:"[keçən həftə] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s əvvəl",s:"bir neçə saniyə",ss:"%d saniyə",m:"bir dəqiqə",mm:"%d dəqiqə",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",M:"bir ay",MM:"%d ay",y:"bir il",yy:"%d il"},meridiemParse:/gecə|səhər|gündüz|axşam/,isPM:function(t){return/^(gündüz|axşam)$/.test(t)},meridiem:function(t,e,n){return t<4?"gecə":t<12?"səhər":t<17?"gündüz":"axşam"},dayOfMonthOrdinalParse:/\d{1,2}-(ıncı|inci|nci|üncü|ncı|uncu)/,ordinal:function(t){if(0===t)return t+"-ıncı";var n=t%10;return t+(e[n]||e[t%100-n]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration function e(t,e,n){var i,o;return"m"===n?e?"хвіліна":"хвіліну":"h"===n?e?"гадзіна":"гадзіну":t+" "+(i=+t,o={ss:e?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:e?"хвіліна_хвіліны_хвілін":"хвіліну_хвіліны_хвілін",hh:e?"гадзіна_гадзіны_гадзін":"гадзіну_гадзіны_гадзін",dd:"дзень_дні_дзён",MM:"месяц_месяцы_месяцаў",yy:"год_гады_гадоў"}[n].split("_"),i%10==1&&i%100!=11?o[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?o[1]:o[2])}t.defineLocale("be",{months:{format:"студзеня_лютага_сакавіка_красавіка_траўня_чэрвеня_ліпеня_жніўня_верасня_кастрычніка_лістапада_снежня".split("_"),standalone:"студзень_люты_сакавік_красавік_травень_чэрвень_ліпень_жнівень_верасень_кастрычнік_лістапад_снежань".split("_")},monthsShort:"студ_лют_сак_крас_трав_чэрв_ліп_жнів_вер_каст_ліст_снеж".split("_"),weekdays:{format:"нядзелю_панядзелак_аўторак_сераду_чацвер_пятніцу_суботу".split("_"),standalone:"нядзеля_панядзелак_аўторак_серада_чацвер_пятніца_субота".split("_"),isFormat:/\[ ?[Ууў] ?(?:мінулую|наступную)? ?\] ?dddd/},weekdaysShort:"нд_пн_ат_ср_чц_пт_сб".split("_"),weekdaysMin:"нд_пн_ат_ср_чц_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., HH:mm",LLLL:"dddd, D MMMM YYYY г., HH:mm"},calendar:{sameDay:"[Сёння ў] LT",nextDay:"[Заўтра ў] LT",lastDay:"[Учора ў] LT",nextWeek:function(){return"[У] dddd [ў] LT"},lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return"[У мінулую] dddd [ў] LT";case 1:case 2:case 4:return"[У мінулы] dddd [ў] LT"}},sameElse:"L"},relativeTime:{future:"праз %s",past:"%s таму",s:"некалькі секунд",m:e,mm:e,h:e,hh:e,d:"дзень",dd:e,M:"месяц",MM:e,y:"год",yy:e},meridiemParse:/ночы|раніцы|дня|вечара/,isPM:function(t){return/^(дня|вечара)$/.test(t)},meridiem:function(t,e,n){return t<4?"ночы":t<12?"раніцы":t<17?"дня":"вечара"},dayOfMonthOrdinalParse:/\d{1,2}-(і|ы|га)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t%10!=2&&t%10!=3||t%100==12||t%100==13?t+"-ы":t+"-і";case"D":return t+"-га";default:return t}},week:{dow:1,doy:7}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("bg",{months:"януари_февруари_март_април_май_юни_юли_август_септември_октомври_ноември_декември".split("_"),monthsShort:"яну_фев_мар_апр_май_юни_юли_авг_сеп_окт_ное_дек".split("_"),weekdays:"неделя_понеделник_вторник_сряда_четвъртък_петък_събота".split("_"),weekdaysShort:"нед_пон_вто_сря_чет_пет_съб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Днес в] LT",nextDay:"[Утре в] LT",nextWeek:"dddd [в] LT",lastDay:"[Вчера в] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Миналата] dddd [в] LT";case 1:case 2:case 4:case 5:return"[Миналия] dddd [в] LT"}},sameElse:"L"},relativeTime:{future:"след %s",past:"преди %s",s:"няколко секунди",ss:"%d секунди",m:"минута",mm:"%d минути",h:"час",hh:"%d часа",d:"ден",dd:"%d дена",w:"седмица",ww:"%d седмици",M:"месец",MM:"%d месеца",y:"година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(t){var e=t%10,n=t%100;return 0===t?t+"-ев":0===n?t+"-ен":n>10&&n<20?t+"-ти":1===e?t+"-ви":2===e?t+"-ри":7===e||8===e?t+"-ми":t+"-ти"},week:{dow:1,doy:7}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("bm",{months:"Zanwuyekalo_Fewuruyekalo_Marisikalo_Awirilikalo_Mɛkalo_Zuwɛnkalo_Zuluyekalo_Utikalo_Sɛtanburukalo_ɔkutɔburukalo_Nowanburukalo_Desanburukalo".split("_"),monthsShort:"Zan_Few_Mar_Awi_Mɛ_Zuw_Zul_Uti_Sɛt_ɔku_Now_Des".split("_"),weekdays:"Kari_Ntɛnɛn_Tarata_Araba_Alamisa_Juma_Sibiri".split("_"),weekdaysShort:"Kar_Ntɛ_Tar_Ara_Ala_Jum_Sib".split("_"),weekdaysMin:"Ka_Nt_Ta_Ar_Al_Ju_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"MMMM [tile] D [san] YYYY",LLL:"MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm",LLLL:"dddd MMMM [tile] D [san] YYYY [lɛrɛ] HH:mm"},calendar:{sameDay:"[Bi lɛrɛ] LT",nextDay:"[Sini lɛrɛ] LT",nextWeek:"dddd [don lɛrɛ] LT",lastDay:"[Kunu lɛrɛ] LT",lastWeek:"dddd [tɛmɛnen lɛrɛ] LT",sameElse:"L"},relativeTime:{future:"%s kɔnɔ",past:"a bɛ %s bɔ",s:"sanga dama dama",ss:"sekondi %d",m:"miniti kelen",mm:"miniti %d",h:"lɛrɛ kelen",hh:"lɛrɛ %d",d:"tile kelen",dd:"tile %d",M:"kalo kelen",MM:"kalo %d",y:"san kelen",yy:"san %d"},week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};t.defineLocale("bn",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(t){return t.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/রাত|সকাল|দুপুর|বিকাল|রাত/,meridiemHour:function(t,e){return 12===t&&(t=0),"রাত"===e&&t>=4||"দুপুর"===e&&t<5||"বিকাল"===e?t+12:t},meridiem:function(t,e,n){return t<4?"রাত":t<10?"সকাল":t<17?"দুপুর":t<20?"বিকাল":"রাত"},week:{dow:0,doy:6}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e={1:"১",2:"২",3:"৩",4:"৪",5:"৫",6:"৬",7:"৭",8:"৮",9:"৯",0:"০"},n={"১":"1","২":"2","৩":"3","৪":"4","৫":"5","৬":"6","৭":"7","৮":"8","৯":"9","০":"0"};t.defineLocale("bn-bd",{months:"জানুয়ারি_ফেব্রুয়ারি_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্টেম্বর_অক্টোবর_নভেম্বর_ডিসেম্বর".split("_"),monthsShort:"জানু_ফেব্রু_মার্চ_এপ্রিল_মে_জুন_জুলাই_আগস্ট_সেপ্ট_অক্টো_নভে_ডিসে".split("_"),weekdays:"রবিবার_সোমবার_মঙ্গলবার_বুধবার_বৃহস্পতিবার_শুক্রবার_শনিবার".split("_"),weekdaysShort:"রবি_সোম_মঙ্গল_বুধ_বৃহস্পতি_শুক্র_শনি".split("_"),weekdaysMin:"রবি_সোম_মঙ্গল_বুধ_বৃহ_শুক্র_শনি".split("_"),longDateFormat:{LT:"A h:mm সময়",LTS:"A h:mm:ss সময়",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm সময়",LLLL:"dddd, D MMMM YYYY, A h:mm সময়"},calendar:{sameDay:"[আজ] LT",nextDay:"[আগামীকাল] LT",nextWeek:"dddd, LT",lastDay:"[গতকাল] LT",lastWeek:"[গত] dddd, LT",sameElse:"L"},relativeTime:{future:"%s পরে",past:"%s আগে",s:"কয়েক সেকেন্ড",ss:"%d সেকেন্ড",m:"এক মিনিট",mm:"%d মিনিট",h:"এক ঘন্টা",hh:"%d ঘন্টা",d:"এক দিন",dd:"%d দিন",M:"এক মাস",MM:"%d মাস",y:"এক বছর",yy:"%d বছর"},preparse:function(t){return t.replace(/[১২৩৪৫৬৭৮৯০]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/রাত|ভোর|সকাল|দুপুর|বিকাল|সন্ধ্যা|রাত/,meridiemHour:function(t,e){return 12===t&&(t=0),"রাত"===e?t<4?t:t+12:"ভোর"===e||"সকাল"===e?t:"দুপুর"===e?t>=3?t:t+12:"বিকাল"===e||"সন্ধ্যা"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"রাত":t<6?"ভোর":t<12?"সকাল":t<15?"দুপুর":t<18?"বিকাল":t<20?"সন্ধ্যা":"রাত"},week:{dow:0,doy:6}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e={1:"༡",2:"༢",3:"༣",4:"༤",5:"༥",6:"༦",7:"༧",8:"༨",9:"༩",0:"༠"},n={"༡":"1","༢":"2","༣":"3","༤":"4","༥":"5","༦":"6","༧":"7","༨":"8","༩":"9","༠":"0"};t.defineLocale("bo",{months:"ཟླ་བ་དང་པོ_ཟླ་བ་གཉིས་པ_ཟླ་བ་གསུམ་པ_ཟླ་བ་བཞི་པ_ཟླ་བ་ལྔ་པ_ཟླ་བ་དྲུག་པ_ཟླ་བ་བདུན་པ_ཟླ་བ་བརྒྱད་པ_ཟླ་བ་དགུ་པ_ཟླ་བ་བཅུ་པ_ཟླ་བ་བཅུ་གཅིག་པ_ཟླ་བ་བཅུ་གཉིས་པ".split("_"),monthsShort:"ཟླ་1_ཟླ་2_ཟླ་3_ཟླ་4_ཟླ་5_ཟླ་6_ཟླ་7_ཟླ་8_ཟླ་9_ཟླ་10_ཟླ་11_ཟླ་12".split("_"),monthsShortRegex:/^(ཟླ་\d{1,2})/,monthsParseExact:!0,weekdays:"གཟའ་ཉི་མ་_གཟའ་ཟླ་བ་_གཟའ་མིག་དམར་_གཟའ་ལྷག་པ་_གཟའ་ཕུར་བུ_གཟའ་པ་སངས་_གཟའ་སྤེན་པ་".split("_"),weekdaysShort:"ཉི་མ་_ཟླ་བ་_མིག་དམར་_ལྷག་པ་_ཕུར་བུ_པ་སངས་_སྤེན་པ་".split("_"),weekdaysMin:"ཉི_ཟླ_མིག_ལྷག_ཕུར_སངས_སྤེན".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[དི་རིང] LT",nextDay:"[སང་ཉིན] LT",nextWeek:"[བདུན་ཕྲག་རྗེས་མ], LT",lastDay:"[ཁ་སང] LT",lastWeek:"[བདུན་ཕྲག་མཐའ་མ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ལ་",past:"%s སྔན་ལ",s:"ལམ་སང",ss:"%d སྐར་ཆ།",m:"སྐར་མ་གཅིག",mm:"%d སྐར་མ",h:"ཆུ་ཚོད་གཅིག",hh:"%d ཆུ་ཚོད",d:"ཉིན་གཅིག",dd:"%d ཉིན་",M:"ཟླ་བ་གཅིག",MM:"%d ཟླ་བ",y:"ལོ་གཅིག",yy:"%d ལོ"},preparse:function(t){return t.replace(/[༡༢༣༤༥༦༧༨༩༠]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/མཚན་མོ|ཞོགས་ཀས|ཉིན་གུང|དགོང་དག|མཚན་མོ/,meridiemHour:function(t,e){return 12===t&&(t=0),"མཚན་མོ"===e&&t>=4||"ཉིན་གུང"===e&&t<5||"དགོང་དག"===e?t+12:t},meridiem:function(t,e,n){return t<4?"མཚན་མོ":t<10?"ཞོགས་ཀས":t<17?"ཉིན་གུང":t<20?"དགོང་དག":"མཚན་མོ"},week:{dow:0,doy:6}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration function e(t,e,n){return t+" "+function(t,e){return 2===e?function(t){var e={m:"v",b:"v",d:"z"};return void 0===e[t.charAt(0)]?t:e[t.charAt(0)]+t.substring(1)}(t):t}({mm:"munutenn",MM:"miz",dd:"devezh"}[n],t)}var n=[/^gen/i,/^c[ʼ\']hwe/i,/^meu/i,/^ebr/i,/^mae/i,/^(mez|eve)/i,/^gou/i,/^eos/i,/^gwe/i,/^her/i,/^du/i,/^ker/i],i=/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu|gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,o=[/^Su/i,/^Lu/i,/^Me([^r]|$)/i,/^Mer/i,/^Ya/i,/^Gw/i,/^Sa/i];t.defineLocale("br",{months:"Genver_Cʼhwevrer_Meurzh_Ebrel_Mae_Mezheven_Gouere_Eost_Gwengolo_Here_Du_Kerzu".split("_"),monthsShort:"Gen_Cʼhwe_Meu_Ebr_Mae_Eve_Gou_Eos_Gwe_Her_Du_Ker".split("_"),weekdays:"Sul_Lun_Meurzh_Mercʼher_Yaou_Gwener_Sadorn".split("_"),weekdaysShort:"Sul_Lun_Meu_Mer_Yao_Gwe_Sad".split("_"),weekdaysMin:"Su_Lu_Me_Mer_Ya_Gw_Sa".split("_"),weekdaysParse:o,fullWeekdaysParse:[/^sul/i,/^lun/i,/^meurzh/i,/^merc[ʼ\']her/i,/^yaou/i,/^gwener/i,/^sadorn/i],shortWeekdaysParse:[/^Sul/i,/^Lun/i,/^Meu/i,/^Mer/i,/^Yao/i,/^Gwe/i,/^Sad/i],minWeekdaysParse:o,monthsRegex:i,monthsShortRegex:i,monthsStrictRegex:/^(genver|c[ʼ\']hwevrer|meurzh|ebrel|mae|mezheven|gouere|eost|gwengolo|here|du|kerzu)/i,monthsShortStrictRegex:/^(gen|c[ʼ\']hwe|meu|ebr|mae|eve|gou|eos|gwe|her|du|ker)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [a viz] MMMM YYYY",LLL:"D [a viz] MMMM YYYY HH:mm",LLLL:"dddd, D [a viz] MMMM YYYY HH:mm"},calendar:{sameDay:"[Hiziv da] LT",nextDay:"[Warcʼhoazh da] LT",nextWeek:"dddd [da] LT",lastDay:"[Decʼh da] LT",lastWeek:"dddd [paset da] LT",sameElse:"L"},relativeTime:{future:"a-benn %s",past:"%s ʼzo",s:"un nebeud segondennoù",ss:"%d eilenn",m:"ur vunutenn",mm:e,h:"un eur",hh:"%d eur",d:"un devezh",dd:e,M:"ur miz",MM:e,y:"ur bloaz",yy:function(t){switch(function t(e){return e>9?t(e%10):e}(t)){case 1:case 3:case 4:case 5:case 9:return t+" bloaz";default:return t+" vloaz"}}},dayOfMonthOrdinalParse:/\d{1,2}(añ|vet)/,ordinal:function(t){return t+(1===t?"añ":"vet")},week:{dow:1,doy:4},meridiemParse:/a.m.|g.m./,isPM:function(t){return"g.m."===t},meridiem:function(t,e,n){return t<12?"a.m.":"g.m."}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration function e(t,e,n){var i=t+" ";switch(n){case"ss":return i+=1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi";case"m":return e?"jedna minuta":"jedne minute";case"mm":return i+=1===t?"minuta":2===t||3===t||4===t?"minute":"minuta";case"h":return e?"jedan sat":"jednog sata";case"hh":return i+=1===t?"sat":2===t||3===t||4===t?"sata":"sati";case"dd":return i+=1===t?"dan":"dana";case"MM":return i+=1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci";case"yy":return i+=1===t?"godina":2===t||3===t||4===t?"godine":"godina"}}t.defineLocale("bs",{months:"januar_februar_mart_april_maj_juni_juli_august_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._aug._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:case 3:return"[prošlu] dddd [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("ca",{months:{standalone:"gener_febrer_març_abril_maig_juny_juliol_agost_setembre_octubre_novembre_desembre".split("_"),format:"de gener_de febrer_de març_d'abril_de maig_de juny_de juliol_d'agost_de setembre_d'octubre_de novembre_de desembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._maig_juny_jul._ag._set._oct._nov._des.".split("_"),monthsParseExact:!0,weekdays:"diumenge_dilluns_dimarts_dimecres_dijous_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dt._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dt_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a les] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a les] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:function(){return"[avui a "+(1!==this.hours()?"les":"la")+"] LT"},nextDay:function(){return"[demà a "+(1!==this.hours()?"les":"la")+"] LT"},nextWeek:function(){return"dddd [a "+(1!==this.hours()?"les":"la")+"] LT"},lastDay:function(){return"[ahir a "+(1!==this.hours()?"les":"la")+"] LT"},lastWeek:function(){return"[el] dddd [passat a "+(1!==this.hours()?"les":"la")+"] LT"},sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"uns segons",ss:"%d segons",m:"un minut",mm:"%d minuts",h:"una hora",hh:"%d hores",d:"un dia",dd:"%d dies",M:"un mes",MM:"%d mesos",y:"un any",yy:"%d anys"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(t,e){var n=1===t?"r":2===t?"n":3===t?"r":4===t?"t":"è";return"w"!==e&&"W"!==e||(n="a"),t+n},week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e={format:"leden_únor_březen_duben_květen_červen_červenec_srpen_září_říjen_listopad_prosinec".split("_"),standalone:"ledna_února_března_dubna_května_června_července_srpna_září_října_listopadu_prosince".split("_")},n="led_úno_bře_dub_kvě_čvn_čvc_srp_zář_říj_lis_pro".split("_"),i=[/^led/i,/^úno/i,/^bře/i,/^dub/i,/^kvě/i,/^(čvn|červen$|června)/i,/^(čvc|červenec|července)/i,/^srp/i,/^zář/i,/^říj/i,/^lis/i,/^pro/i],o=/^(leden|únor|březen|duben|květen|červenec|července|červen|června|srpen|září|říjen|listopad|prosinec|led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i;function r(t){return t>1&&t<5&&1!=~~(t/10)}function s(t,e,n,i){var o=t+" ";switch(n){case"s":return e||i?"pár sekund":"pár sekundami";case"ss":return e||i?o+(r(t)?"sekundy":"sekund"):o+"sekundami";case"m":return e?"minuta":i?"minutu":"minutou";case"mm":return e||i?o+(r(t)?"minuty":"minut"):o+"minutami";case"h":return e?"hodina":i?"hodinu":"hodinou";case"hh":return e||i?o+(r(t)?"hodiny":"hodin"):o+"hodinami";case"d":return e||i?"den":"dnem";case"dd":return e||i?o+(r(t)?"dny":"dní"):o+"dny";case"M":return e||i?"měsíc":"měsícem";case"MM":return e||i?o+(r(t)?"měsíce":"měsíců"):o+"měsíci";case"y":return e||i?"rok":"rokem";case"yy":return e||i?o+(r(t)?"roky":"let"):o+"lety"}}t.defineLocale("cs",{months:e,monthsShort:n,monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(leden|ledna|února|únor|březen|března|duben|dubna|květen|května|červenec|července|červen|června|srpen|srpna|září|říjen|října|listopadu|listopad|prosinec|prosince)/i,monthsShortStrictRegex:/^(led|úno|bře|dub|kvě|čvn|čvc|srp|zář|říj|lis|pro)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"neděle_pondělí_úterý_středa_čtvrtek_pátek_sobota".split("_"),weekdaysShort:"ne_po_út_st_čt_pá_so".split("_"),weekdaysMin:"ne_po_út_st_čt_pá_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm",l:"D. M. YYYY"},calendar:{sameDay:"[dnes v] LT",nextDay:"[zítra v] LT",nextWeek:function(){switch(this.day()){case 0:return"[v neděli v] LT";case 1:case 2:return"[v] dddd [v] LT";case 3:return"[ve středu v] LT";case 4:return"[ve čtvrtek v] LT";case 5:return"[v pátek v] LT";case 6:return"[v sobotu v] LT"}},lastDay:"[včera v] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulou neděli v] LT";case 1:case 2:return"[minulé] dddd [v] LT";case 3:return"[minulou středu v] LT";case 4:case 5:return"[minulý] dddd [v] LT";case 6:return"[minulou sobotu v] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"před %s",s:s,ss:s,m:s,mm:s,h:s,hh:s,d:s,dd:s,M:s,MM:s,y:s,yy:s},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("cv",{months:"кӑрлач_нарӑс_пуш_ака_май_ҫӗртме_утӑ_ҫурла_авӑн_юпа_чӳк_раштав".split("_"),monthsShort:"кӑр_нар_пуш_ака_май_ҫӗр_утӑ_ҫур_авн_юпа_чӳк_раш".split("_"),weekdays:"вырсарникун_тунтикун_ытларикун_юнкун_кӗҫнерникун_эрнекун_шӑматкун".split("_"),weekdaysShort:"выр_тун_ытл_юн_кӗҫ_эрн_шӑм".split("_"),weekdaysMin:"вр_тн_ыт_юн_кҫ_эр_шм".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ]",LLL:"YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm",LLLL:"dddd, YYYY [ҫулхи] MMMM [уйӑхӗн] D[-мӗшӗ], HH:mm"},calendar:{sameDay:"[Паян] LT [сехетре]",nextDay:"[Ыран] LT [сехетре]",lastDay:"[Ӗнер] LT [сехетре]",nextWeek:"[Ҫитес] dddd LT [сехетре]",lastWeek:"[Иртнӗ] dddd LT [сехетре]",sameElse:"L"},relativeTime:{future:function(t){return t+(/сехет$/i.exec(t)?"рен":/ҫул$/i.exec(t)?"тан":"ран")},past:"%s каялла",s:"пӗр-ик ҫеккунт",ss:"%d ҫеккунт",m:"пӗр минут",mm:"%d минут",h:"пӗр сехет",hh:"%d сехет",d:"пӗр кун",dd:"%d кун",M:"пӗр уйӑх",MM:"%d уйӑх",y:"пӗр ҫул",yy:"%d ҫул"},dayOfMonthOrdinalParse:/\d{1,2}-мӗш/,ordinal:"%d-мӗш",week:{dow:1,doy:7}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("cy",{months:"Ionawr_Chwefror_Mawrth_Ebrill_Mai_Mehefin_Gorffennaf_Awst_Medi_Hydref_Tachwedd_Rhagfyr".split("_"),monthsShort:"Ion_Chwe_Maw_Ebr_Mai_Meh_Gor_Aws_Med_Hyd_Tach_Rhag".split("_"),weekdays:"Dydd Sul_Dydd Llun_Dydd Mawrth_Dydd Mercher_Dydd Iau_Dydd Gwener_Dydd Sadwrn".split("_"),weekdaysShort:"Sul_Llun_Maw_Mer_Iau_Gwe_Sad".split("_"),weekdaysMin:"Su_Ll_Ma_Me_Ia_Gw_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Heddiw am] LT",nextDay:"[Yfory am] LT",nextWeek:"dddd [am] LT",lastDay:"[Ddoe am] LT",lastWeek:"dddd [diwethaf am] LT",sameElse:"L"},relativeTime:{future:"mewn %s",past:"%s yn ôl",s:"ychydig eiliadau",ss:"%d eiliad",m:"munud",mm:"%d munud",h:"awr",hh:"%d awr",d:"diwrnod",dd:"%d diwrnod",M:"mis",MM:"%d mis",y:"blwyddyn",yy:"%d flynedd"},dayOfMonthOrdinalParse:/\d{1,2}(fed|ain|af|il|ydd|ed|eg)/,ordinal:function(t){var e="";return t>20?e=40===t||50===t||60===t||80===t||100===t?"fed":"ain":t>0&&(e=["","af","il","ydd","ydd","ed","ed","ed","fed","fed","fed","eg","fed","eg","eg","fed","eg","eg","fed","eg","fed"][t]),t+e},week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("da",{months:"januar_februar_marts_april_maj_juni_juli_august_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"søn_man_tir_ons_tor_fre_lør".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd [d.] D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"på dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[i] dddd[s kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"få sekunder",ss:"%d sekunder",m:"et minut",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dage",M:"en måned",MM:"%d måneder",y:"et år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration function e(t,e,n,i){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?o[n][0]:o[n][1]}t.defineLocale("de",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,w:e,ww:"%d Wochen",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration function e(t,e,n,i){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?o[n][0]:o[n][1]}t.defineLocale("de-at",{months:"Jänner_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jän._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So._Mo._Di._Mi._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,w:e,ww:"%d Wochen",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration function e(t,e,n,i){var o={m:["eine Minute","einer Minute"],h:["eine Stunde","einer Stunde"],d:["ein Tag","einem Tag"],dd:[t+" Tage",t+" Tagen"],w:["eine Woche","einer Woche"],M:["ein Monat","einem Monat"],MM:[t+" Monate",t+" Monaten"],y:["ein Jahr","einem Jahr"],yy:[t+" Jahre",t+" Jahren"]};return e?o[n][0]:o[n][1]}t.defineLocale("de-ch",{months:"Januar_Februar_März_April_Mai_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Feb._März_Apr._Mai_Juni_Juli_Aug._Sep._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonntag_Montag_Dienstag_Mittwoch_Donnerstag_Freitag_Samstag".split("_"),weekdaysShort:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysMin:"So_Mo_Di_Mi_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY HH:mm",LLLL:"dddd, D. MMMM YYYY HH:mm"},calendar:{sameDay:"[heute um] LT [Uhr]",sameElse:"L",nextDay:"[morgen um] LT [Uhr]",nextWeek:"dddd [um] LT [Uhr]",lastDay:"[gestern um] LT [Uhr]",lastWeek:"[letzten] dddd [um] LT [Uhr]"},relativeTime:{future:"in %s",past:"vor %s",s:"ein paar Sekunden",ss:"%d Sekunden",m:e,mm:"%d Minuten",h:e,hh:"%d Stunden",d:e,dd:e,w:e,ww:"%d Wochen",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e=["ޖެނުއަރީ","ފެބްރުއަރީ","މާރިޗު","އޭޕްރީލު","މޭ","ޖޫން","ޖުލައި","އޯގަސްޓު","ސެޕްޓެމްބަރު","އޮކްޓޯބަރު","ނޮވެމްބަރު","ޑިސެމްބަރު"],n=["އާދިއްތަ","ހޯމަ","އަންގާރަ","ބުދަ","ބުރާސްފަތި","ހުކުރު","ހޮނިހިރު"];t.defineLocale("dv",{months:e,monthsShort:e,weekdays:n,weekdaysShort:n,weekdaysMin:"އާދި_ހޯމަ_އަން_ބުދަ_ބުރާ_ހުކު_ހޮނި".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"D/M/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},meridiemParse:/މކ|މފ/,isPM:function(t){return"މފ"===t},meridiem:function(t,e,n){return t<12?"މކ":"މފ"},calendar:{sameDay:"[މިއަދު] LT",nextDay:"[މާދަމާ] LT",nextWeek:"dddd LT",lastDay:"[އިއްޔެ] LT",lastWeek:"[ފާއިތުވި] dddd LT",sameElse:"L"},relativeTime:{future:"ތެރޭގައި %s",past:"ކުރިން %s",s:"ސިކުންތުކޮޅެއް",ss:"d% ސިކުންތު",m:"މިނިޓެއް",mm:"މިނިޓު %d",h:"ގަޑިއިރެއް",hh:"ގަޑިއިރު %d",d:"ދުވަހެއް",dd:"ދުވަސް %d",M:"މަހެއް",MM:"މަސް %d",y:"އަހަރެއް",yy:"އަހަރު %d"},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:7,doy:12}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("el",{monthsNominativeEl:"Ιανουάριος_Φεβρουάριος_Μάρτιος_Απρίλιος_Μάιος_Ιούνιος_Ιούλιος_Αύγουστος_Σεπτέμβριος_Οκτώβριος_Νοέμβριος_Δεκέμβριος".split("_"),monthsGenitiveEl:"Ιανουαρίου_Φεβρουαρίου_Μαρτίου_Απριλίου_Μαΐου_Ιουνίου_Ιουλίου_Αυγούστου_Σεπτεμβρίου_Οκτωβρίου_Νοεμβρίου_Δεκεμβρίου".split("_"),months:function(t,e){return t?"string"==typeof e&&/D/.test(e.substring(0,e.indexOf("MMMM")))?this._monthsGenitiveEl[t.month()]:this._monthsNominativeEl[t.month()]:this._monthsNominativeEl},monthsShort:"Ιαν_Φεβ_Μαρ_Απρ_Μαϊ_Ιουν_Ιουλ_Αυγ_Σεπ_Οκτ_Νοε_Δεκ".split("_"),weekdays:"Κυριακή_Δευτέρα_Τρίτη_Τετάρτη_Πέμπτη_Παρασκευή_Σάββατο".split("_"),weekdaysShort:"Κυρ_Δευ_Τρι_Τετ_Πεμ_Παρ_Σαβ".split("_"),weekdaysMin:"Κυ_Δε_Τρ_Τε_Πε_Πα_Σα".split("_"),meridiem:function(t,e,n){return t>11?n?"μμ":"ΜΜ":n?"πμ":"ΠΜ"},isPM:function(t){return"μ"===(t+"").toLowerCase()[0]},meridiemParse:/[ΠΜ]\.?Μ?\.?/i,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendarEl:{sameDay:"[Σήμερα {}] LT",nextDay:"[Αύριο {}] LT",nextWeek:"dddd [{}] LT",lastDay:"[Χθες {}] LT",lastWeek:function(){switch(this.day()){case 6:return"[το προηγούμενο] dddd [{}] LT";default:return"[την προηγούμενη] dddd [{}] LT"}},sameElse:"L"},calendar:function(t,e){var n,i=this._calendarEl[t],o=e&&e.hours();return n=i,("undefined"!=typeof Function&&n instanceof Function||"[object Function]"===Object.prototype.toString.call(n))&&(i=i.apply(e)),i.replace("{}",o%12==1?"στη":"στις")},relativeTime:{future:"σε %s",past:"%s πριν",s:"λίγα δευτερόλεπτα",ss:"%d δευτερόλεπτα",m:"ένα λεπτό",mm:"%d λεπτά",h:"μία ώρα",hh:"%d ώρες",d:"μία μέρα",dd:"%d μέρες",M:"ένας μήνας",MM:"%d μήνες",y:"ένας χρόνος",yy:"%d χρόνια"},dayOfMonthOrdinalParse:/\d{1,2}η/,ordinal:"%dη",week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("en-au",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:0,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("en-ca",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"YYYY-MM-DD",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY h:mm A",LLLL:"dddd, MMMM D, YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("en-gb",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("en-ie",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("en-il",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("en-in",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:0,doy:6}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("en-nz",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("en-sg",{months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),monthsShort:"Jan_Feb_Mar_Apr_May_Jun_Jul_Aug_Sep_Oct_Nov_Dec".split("_"),weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),weekdaysShort:"Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),weekdaysMin:"Su_Mo_Tu_We_Th_Fr_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Today at] LT",nextDay:"[Tomorrow at] LT",nextWeek:"dddd [at] LT",lastDay:"[Yesterday at] LT",lastWeek:"[Last] dddd [at] LT",sameElse:"L"},relativeTime:{future:"in %s",past:"%s ago",s:"a few seconds",ss:"%d seconds",m:"a minute",mm:"%d minutes",h:"an hour",hh:"%d hours",d:"a day",dd:"%d days",M:"a month",MM:"%d months",y:"a year",yy:"%d years"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("eo",{months:"januaro_februaro_marto_aprilo_majo_junio_julio_aŭgusto_septembro_oktobro_novembro_decembro".split("_"),monthsShort:"jan_feb_mart_apr_maj_jun_jul_aŭg_sept_okt_nov_dec".split("_"),weekdays:"dimanĉo_lundo_mardo_merkredo_ĵaŭdo_vendredo_sabato".split("_"),weekdaysShort:"dim_lun_mard_merk_ĵaŭ_ven_sab".split("_"),weekdaysMin:"di_lu_ma_me_ĵa_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"[la] D[-an de] MMMM, YYYY",LLL:"[la] D[-an de] MMMM, YYYY HH:mm",LLLL:"dddd[n], [la] D[-an de] MMMM, YYYY HH:mm",llll:"ddd, [la] D[-an de] MMM, YYYY HH:mm"},meridiemParse:/[ap]\.t\.m/i,isPM:function(t){return"p"===t.charAt(0).toLowerCase()},meridiem:function(t,e,n){return t>11?n?"p.t.m.":"P.T.M.":n?"a.t.m.":"A.T.M."},calendar:{sameDay:"[Hodiaŭ je] LT",nextDay:"[Morgaŭ je] LT",nextWeek:"dddd[n je] LT",lastDay:"[Hieraŭ je] LT",lastWeek:"[pasintan] dddd[n je] LT",sameElse:"L"},relativeTime:{future:"post %s",past:"antaŭ %s",s:"kelkaj sekundoj",ss:"%d sekundoj",m:"unu minuto",mm:"%d minutoj",h:"unu horo",hh:"%d horoj",d:"unu tago",dd:"%d tagoj",M:"unu monato",MM:"%d monatoj",y:"unu jaro",yy:"%d jaroj"},dayOfMonthOrdinalParse:/\d{1,2}a/,ordinal:"%da",week:{dow:1,doy:7}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,i){return t?/-MMM-/.test(i)?n[t.month()]:e[t.month()]:e},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4},invalidDate:"Fecha inválida"})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es-do",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,i){return t?/-MMM-/.test(i)?n[t.month()]:e[t.month()]:e},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es-mx",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,i){return t?/-MMM-/.test(i)?n[t.month()]:e[t.month()]:e},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:4},invalidDate:"Fecha inválida"})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e="ene._feb._mar._abr._may._jun._jul._ago._sep._oct._nov._dic.".split("_"),n="ene_feb_mar_abr_may_jun_jul_ago_sep_oct_nov_dic".split("_"),i=[/^ene/i,/^feb/i,/^mar/i,/^abr/i,/^may/i,/^jun/i,/^jul/i,/^ago/i,/^sep/i,/^oct/i,/^nov/i,/^dic/i],o=/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre|ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i;t.defineLocale("es-us",{months:"enero_febrero_marzo_abril_mayo_junio_julio_agosto_septiembre_octubre_noviembre_diciembre".split("_"),monthsShort:function(t,i){return t?/-MMM-/.test(i)?n[t.month()]:e[t.month()]:e},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(enero|febrero|marzo|abril|mayo|junio|julio|agosto|septiembre|octubre|noviembre|diciembre)/i,monthsShortStrictRegex:/^(ene\.?|feb\.?|mar\.?|abr\.?|may\.?|jun\.?|jul\.?|ago\.?|sep\.?|oct\.?|nov\.?|dic\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"domingo_lunes_martes_miércoles_jueves_viernes_sábado".split("_"),weekdaysShort:"dom._lun._mar._mié._jue._vie._sáb.".split("_"),weekdaysMin:"do_lu_ma_mi_ju_vi_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"MM/DD/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY h:mm A",LLLL:"dddd, D [de] MMMM [de] YYYY h:mm A"},calendar:{sameDay:function(){return"[hoy a la"+(1!==this.hours()?"s":"")+"] LT"},nextDay:function(){return"[mañana a la"+(1!==this.hours()?"s":"")+"] LT"},nextWeek:function(){return"dddd [a la"+(1!==this.hours()?"s":"")+"] LT"},lastDay:function(){return"[ayer a la"+(1!==this.hours()?"s":"")+"] LT"},lastWeek:function(){return"[el] dddd [pasado a la"+(1!==this.hours()?"s":"")+"] LT"},sameElse:"L"},relativeTime:{future:"en %s",past:"hace %s",s:"unos segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"una hora",hh:"%d horas",d:"un día",dd:"%d días",w:"una semana",ww:"%d semanas",M:"un mes",MM:"%d meses",y:"un año",yy:"%d años"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:0,doy:6}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration function e(t,e,n,i){var o={s:["mõne sekundi","mõni sekund","paar sekundit"],ss:[t+"sekundi",t+"sekundit"],m:["ühe minuti","üks minut"],mm:[t+" minuti",t+" minutit"],h:["ühe tunni","tund aega","üks tund"],hh:[t+" tunni",t+" tundi"],d:["ühe päeva","üks päev"],M:["kuu aja","kuu aega","üks kuu"],MM:[t+" kuu",t+" kuud"],y:["ühe aasta","aasta","üks aasta"],yy:[t+" aasta",t+" aastat"]};return e?o[n][2]?o[n][2]:o[n][1]:i?o[n][0]:o[n][1]}t.defineLocale("et",{months:"jaanuar_veebruar_märts_aprill_mai_juuni_juuli_august_september_oktoober_november_detsember".split("_"),monthsShort:"jaan_veebr_märts_apr_mai_juuni_juuli_aug_sept_okt_nov_dets".split("_"),weekdays:"pühapäev_esmaspäev_teisipäev_kolmapäev_neljapäev_reede_laupäev".split("_"),weekdaysShort:"P_E_T_K_N_R_L".split("_"),weekdaysMin:"P_E_T_K_N_R_L".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[Täna,] LT",nextDay:"[Homme,] LT",nextWeek:"[Järgmine] dddd LT",lastDay:"[Eile,] LT",lastWeek:"[Eelmine] dddd LT",sameElse:"L"},relativeTime:{future:"%s pärast",past:"%s tagasi",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:"%d päeva",M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("eu",{months:"urtarrila_otsaila_martxoa_apirila_maiatza_ekaina_uztaila_abuztua_iraila_urria_azaroa_abendua".split("_"),monthsShort:"urt._ots._mar._api._mai._eka._uzt._abu._ira._urr._aza._abe.".split("_"),monthsParseExact:!0,weekdays:"igandea_astelehena_asteartea_asteazkena_osteguna_ostirala_larunbata".split("_"),weekdaysShort:"ig._al._ar._az._og._ol._lr.".split("_"),weekdaysMin:"ig_al_ar_az_og_ol_lr".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY[ko] MMMM[ren] D[a]",LLL:"YYYY[ko] MMMM[ren] D[a] HH:mm",LLLL:"dddd, YYYY[ko] MMMM[ren] D[a] HH:mm",l:"YYYY-M-D",ll:"YYYY[ko] MMM D[a]",lll:"YYYY[ko] MMM D[a] HH:mm",llll:"ddd, YYYY[ko] MMM D[a] HH:mm"},calendar:{sameDay:"[gaur] LT[etan]",nextDay:"[bihar] LT[etan]",nextWeek:"dddd LT[etan]",lastDay:"[atzo] LT[etan]",lastWeek:"[aurreko] dddd LT[etan]",sameElse:"L"},relativeTime:{future:"%s barru",past:"duela %s",s:"segundo batzuk",ss:"%d segundo",m:"minutu bat",mm:"%d minutu",h:"ordu bat",hh:"%d ordu",d:"egun bat",dd:"%d egun",M:"hilabete bat",MM:"%d hilabete",y:"urte bat",yy:"%d urte"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e={1:"۱",2:"۲",3:"۳",4:"۴",5:"۵",6:"۶",7:"۷",8:"۸",9:"۹",0:"۰"},n={"۱":"1","۲":"2","۳":"3","۴":"4","۵":"5","۶":"6","۷":"7","۸":"8","۹":"9","۰":"0"};t.defineLocale("fa",{months:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),monthsShort:"ژانویه_فوریه_مارس_آوریل_مه_ژوئن_ژوئیه_اوت_سپتامبر_اکتبر_نوامبر_دسامبر".split("_"),weekdays:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysShort:"یک‌شنبه_دوشنبه_سه‌شنبه_چهارشنبه_پنج‌شنبه_جمعه_شنبه".split("_"),weekdaysMin:"ی_د_س_چ_پ_ج_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/قبل از ظهر|بعد از ظهر/,isPM:function(t){return/بعد از ظهر/.test(t)},meridiem:function(t,e,n){return t<12?"قبل از ظهر":"بعد از ظهر"},calendar:{sameDay:"[امروز ساعت] LT",nextDay:"[فردا ساعت] LT",nextWeek:"dddd [ساعت] LT",lastDay:"[دیروز ساعت] LT",lastWeek:"dddd [پیش] [ساعت] LT",sameElse:"L"},relativeTime:{future:"در %s",past:"%s پیش",s:"چند ثانیه",ss:"%d ثانیه",m:"یک دقیقه",mm:"%d دقیقه",h:"یک ساعت",hh:"%d ساعت",d:"یک روز",dd:"%d روز",M:"یک ماه",MM:"%d ماه",y:"یک سال",yy:"%d سال"},preparse:function(t){return t.replace(/[۰-۹]/g,(function(t){return n[t]})).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},dayOfMonthOrdinalParse:/\d{1,2}م/,ordinal:"%dم",week:{dow:6,doy:12}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e="nolla yksi kaksi kolme neljä viisi kuusi seitsemän kahdeksan yhdeksän".split(" "),n=["nolla","yhden","kahden","kolmen","neljän","viiden","kuuden",e[7],e[8],e[9]];function i(t,i,o,r){var s="";switch(o){case"s":return r?"muutaman sekunnin":"muutama sekunti";case"ss":s=r?"sekunnin":"sekuntia";break;case"m":return r?"minuutin":"minuutti";case"mm":s=r?"minuutin":"minuuttia";break;case"h":return r?"tunnin":"tunti";case"hh":s=r?"tunnin":"tuntia";break;case"d":return r?"päivän":"päivä";case"dd":s=r?"päivän":"päivää";break;case"M":return r?"kuukauden":"kuukausi";case"MM":s=r?"kuukauden":"kuukautta";break;case"y":return r?"vuoden":"vuosi";case"yy":s=r?"vuoden":"vuotta"}return s=function(t,i){return t<10?i?n[t]:e[t]:t}(t,r)+" "+s}t.defineLocale("fi",{months:"tammikuu_helmikuu_maaliskuu_huhtikuu_toukokuu_kesäkuu_heinäkuu_elokuu_syyskuu_lokakuu_marraskuu_joulukuu".split("_"),monthsShort:"tammi_helmi_maalis_huhti_touko_kesä_heinä_elo_syys_loka_marras_joulu".split("_"),weekdays:"sunnuntai_maanantai_tiistai_keskiviikko_torstai_perjantai_lauantai".split("_"),weekdaysShort:"su_ma_ti_ke_to_pe_la".split("_"),weekdaysMin:"su_ma_ti_ke_to_pe_la".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"Do MMMM[ta] YYYY",LLL:"Do MMMM[ta] YYYY, [klo] HH.mm",LLLL:"dddd, Do MMMM[ta] YYYY, [klo] HH.mm",l:"D.M.YYYY",ll:"Do MMM YYYY",lll:"Do MMM YYYY, [klo] HH.mm",llll:"ddd, Do MMM YYYY, [klo] HH.mm"},calendar:{sameDay:"[tänään] [klo] LT",nextDay:"[huomenna] [klo] LT",nextWeek:"dddd [klo] LT",lastDay:"[eilen] [klo] LT",lastWeek:"[viime] dddd[na] [klo] LT",sameElse:"L"},relativeTime:{future:"%s päästä",past:"%s sitten",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("fil",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("fo",{months:"januar_februar_mars_apríl_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan_feb_mar_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_"),weekdays:"sunnudagur_mánadagur_týsdagur_mikudagur_hósdagur_fríggjadagur_leygardagur".split("_"),weekdaysShort:"sun_mán_týs_mik_hós_frí_ley".split("_"),weekdaysMin:"su_má_tý_mi_hó_fr_le".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D. MMMM, YYYY HH:mm"},calendar:{sameDay:"[Í dag kl.] LT",nextDay:"[Í morgin kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[Í gjár kl.] LT",lastWeek:"[síðstu] dddd [kl] LT",sameElse:"L"},relativeTime:{future:"um %s",past:"%s síðani",s:"fá sekund",ss:"%d sekundir",m:"ein minuttur",mm:"%d minuttir",h:"ein tími",hh:"%d tímar",d:"ein dagur",dd:"%d dagar",M:"ein mánaður",MM:"%d mánaðir",y:"eitt ár",yy:"%d ár"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e=/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?|janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,n=[/^janv/i,/^févr/i,/^mars/i,/^avr/i,/^mai/i,/^juin/i,/^juil/i,/^août/i,/^sept/i,/^oct/i,/^nov/i,/^déc/i];t.defineLocale("fr",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsRegex:e,monthsShortRegex:e,monthsStrictRegex:/^(janvier|février|mars|avril|mai|juin|juillet|août|septembre|octobre|novembre|décembre)/i,monthsShortStrictRegex:/(janv\.?|févr\.?|mars|avr\.?|mai|juin|juil\.?|août|sept\.?|oct\.?|nov\.?|déc\.?)/i,monthsParse:n,longMonthsParse:n,shortMonthsParse:n,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",w:"une semaine",ww:"%d semaines",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|)/,ordinal:function(t,e){switch(e){case"D":return t+(1===t?"er":"");default:case"M":case"Q":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("fr-ca",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("fr-ch",{months:"janvier_février_mars_avril_mai_juin_juillet_août_septembre_octobre_novembre_décembre".split("_"),monthsShort:"janv._févr._mars_avr._mai_juin_juil._août_sept._oct._nov._déc.".split("_"),monthsParseExact:!0,weekdays:"dimanche_lundi_mardi_mercredi_jeudi_vendredi_samedi".split("_"),weekdaysShort:"dim._lun._mar._mer._jeu._ven._sam.".split("_"),weekdaysMin:"di_lu_ma_me_je_ve_sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Aujourd’hui à] LT",nextDay:"[Demain à] LT",nextWeek:"dddd [à] LT",lastDay:"[Hier à] LT",lastWeek:"dddd [dernier à] LT",sameElse:"L"},relativeTime:{future:"dans %s",past:"il y a %s",s:"quelques secondes",ss:"%d secondes",m:"une minute",mm:"%d minutes",h:"une heure",hh:"%d heures",d:"un jour",dd:"%d jours",M:"un mois",MM:"%d mois",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(er|e)/,ordinal:function(t,e){switch(e){default:case"M":case"Q":case"D":case"DDD":case"d":return t+(1===t?"er":"e");case"w":case"W":return t+(1===t?"re":"e")}},week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e="jan._feb._mrt._apr._mai_jun._jul._aug._sep._okt._nov._des.".split("_"),n="jan_feb_mrt_apr_mai_jun_jul_aug_sep_okt_nov_des".split("_");t.defineLocale("fy",{months:"jannewaris_febrewaris_maart_april_maaie_juny_july_augustus_septimber_oktober_novimber_desimber".split("_"),monthsShort:function(t,i){return t?/-MMM-/.test(i)?n[t.month()]:e[t.month()]:e},monthsParseExact:!0,weekdays:"snein_moandei_tiisdei_woansdei_tongersdei_freed_sneon".split("_"),weekdaysShort:"si._mo._ti._wo._to._fr._so.".split("_"),weekdaysMin:"Si_Mo_Ti_Wo_To_Fr_So".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[hjoed om] LT",nextDay:"[moarn om] LT",nextWeek:"dddd [om] LT",lastDay:"[juster om] LT",lastWeek:"[ôfrûne] dddd [om] LT",sameElse:"L"},relativeTime:{future:"oer %s",past:"%s lyn",s:"in pear sekonden",ss:"%d sekonden",m:"ien minút",mm:"%d minuten",h:"ien oere",hh:"%d oeren",d:"ien dei",dd:"%d dagen",M:"ien moanne",MM:"%d moannen",y:"ien jier",yy:"%d jierren"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("ga",{months:["Eanáir","Feabhra","Márta","Aibreán","Bealtaine","Meitheamh","Iúil","Lúnasa","Meán Fómhair","Deireadh Fómhair","Samhain","Nollaig"],monthsShort:["Ean","Feabh","Márt","Aib","Beal","Meith","Iúil","Lún","M.F.","D.F.","Samh","Noll"],monthsParseExact:!0,weekdays:["Dé Domhnaigh","Dé Luain","Dé Máirt","Dé Céadaoin","Déardaoin","Dé hAoine","Dé Sathairn"],weekdaysShort:["Domh","Luan","Máirt","Céad","Déar","Aoine","Sath"],weekdaysMin:["Do","Lu","Má","Cé","Dé","A","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Inniu ag] LT",nextDay:"[Amárach ag] LT",nextWeek:"dddd [ag] LT",lastDay:"[Inné ag] LT",lastWeek:"dddd [seo caite] [ag] LT",sameElse:"L"},relativeTime:{future:"i %s",past:"%s ó shin",s:"cúpla soicind",ss:"%d soicind",m:"nóiméad",mm:"%d nóiméad",h:"uair an chloig",hh:"%d uair an chloig",d:"lá",dd:"%d lá",M:"mí",MM:"%d míonna",y:"bliain",yy:"%d bliain"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(t){return t+(1===t?"d":t%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("gd",{months:["Am Faoilleach","An Gearran","Am Màrt","An Giblean","An Cèitean","An t-Ògmhios","An t-Iuchar","An Lùnastal","An t-Sultain","An Dàmhair","An t-Samhain","An Dùbhlachd"],monthsShort:["Faoi","Gear","Màrt","Gibl","Cèit","Ògmh","Iuch","Lùn","Sult","Dàmh","Samh","Dùbh"],monthsParseExact:!0,weekdays:["Didòmhnaich","Diluain","Dimàirt","Diciadain","Diardaoin","Dihaoine","Disathairne"],weekdaysShort:["Did","Dil","Dim","Dic","Dia","Dih","Dis"],weekdaysMin:["Dò","Lu","Mà","Ci","Ar","Ha","Sa"],longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[An-diugh aig] LT",nextDay:"[A-màireach aig] LT",nextWeek:"dddd [aig] LT",lastDay:"[An-dè aig] LT",lastWeek:"dddd [seo chaidh] [aig] LT",sameElse:"L"},relativeTime:{future:"ann an %s",past:"bho chionn %s",s:"beagan diogan",ss:"%d diogan",m:"mionaid",mm:"%d mionaidean",h:"uair",hh:"%d uairean",d:"latha",dd:"%d latha",M:"mìos",MM:"%d mìosan",y:"bliadhna",yy:"%d bliadhna"},dayOfMonthOrdinalParse:/\d{1,2}(d|na|mh)/,ordinal:function(t){return t+(1===t?"d":t%10==2?"na":"mh")},week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("gl",{months:"xaneiro_febreiro_marzo_abril_maio_xuño_xullo_agosto_setembro_outubro_novembro_decembro".split("_"),monthsShort:"xan._feb._mar._abr._mai._xuñ._xul._ago._set._out._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"domingo_luns_martes_mércores_xoves_venres_sábado".split("_"),weekdaysShort:"dom._lun._mar._mér._xov._ven._sáb.".split("_"),weekdaysMin:"do_lu_ma_mé_xo_ve_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY H:mm",LLLL:"dddd, D [de] MMMM [de] YYYY H:mm"},calendar:{sameDay:function(){return"[hoxe "+(1!==this.hours()?"ás":"á")+"] LT"},nextDay:function(){return"[mañá "+(1!==this.hours()?"ás":"á")+"] LT"},nextWeek:function(){return"dddd ["+(1!==this.hours()?"ás":"a")+"] LT"},lastDay:function(){return"[onte "+(1!==this.hours()?"á":"a")+"] LT"},lastWeek:function(){return"[o] dddd [pasado "+(1!==this.hours()?"ás":"a")+"] LT"},sameElse:"L"},relativeTime:{future:function(t){return 0===t.indexOf("un")?"n"+t:"en "+t},past:"hai %s",s:"uns segundos",ss:"%d segundos",m:"un minuto",mm:"%d minutos",h:"unha hora",hh:"%d horas",d:"un día",dd:"%d días",M:"un mes",MM:"%d meses",y:"un ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration function e(t,e,n,i){var o={s:["थोडया सॅकंडांनी","थोडे सॅकंड"],ss:[t+" सॅकंडांनी",t+" सॅकंड"],m:["एका मिणटान","एक मिनूट"],mm:[t+" मिणटांनी",t+" मिणटां"],h:["एका वरान","एक वर"],hh:[t+" वरांनी",t+" वरां"],d:["एका दिसान","एक दीस"],dd:[t+" दिसांनी",t+" दीस"],M:["एका म्हयन्यान","एक म्हयनो"],MM:[t+" म्हयन्यानी",t+" म्हयने"],y:["एका वर्सान","एक वर्स"],yy:[t+" वर्सांनी",t+" वर्सां"]};return i?o[n][0]:o[n][1]}t.defineLocale("gom-deva",{months:{standalone:"जानेवारी_फेब्रुवारी_मार्च_एप्रील_मे_जून_जुलय_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),format:"जानेवारीच्या_फेब्रुवारीच्या_मार्चाच्या_एप्रीलाच्या_मेयाच्या_जूनाच्या_जुलयाच्या_ऑगस्टाच्या_सप्टेंबराच्या_ऑक्टोबराच्या_नोव्हेंबराच्या_डिसेंबराच्या".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"जाने._फेब्रु._मार्च_एप्री._मे_जून_जुल._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"आयतार_सोमार_मंगळार_बुधवार_बिरेस्तार_सुक्रार_शेनवार".split("_"),weekdaysShort:"आयत._सोम._मंगळ._बुध._ब्रेस्त._सुक्र._शेन.".split("_"),weekdaysMin:"आ_सो_मं_बु_ब्रे_सु_शे".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [वाजतां]",LTS:"A h:mm:ss [वाजतां]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [वाजतां]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [वाजतां]",llll:"ddd, D MMM YYYY, A h:mm [वाजतां]"},calendar:{sameDay:"[आयज] LT",nextDay:"[फाल्यां] LT",nextWeek:"[फुडलो] dddd[,] LT",lastDay:"[काल] LT",lastWeek:"[फाटलो] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s आदीं",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}(वेर)/,ordinal:function(t,e){switch(e){case"D":return t+"वेर";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return t}},week:{dow:0,doy:3},meridiemParse:/राती|सकाळीं|दनपारां|सांजे/,meridiemHour:function(t,e){return 12===t&&(t=0),"राती"===e?t<4?t:t+12:"सकाळीं"===e?t:"दनपारां"===e?t>12?t:t+12:"सांजे"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"राती":t<12?"सकाळीं":t<16?"दनपारां":t<20?"सांजे":"राती"}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration function e(t,e,n,i){var o={s:["thoddea sekondamni","thodde sekond"],ss:[t+" sekondamni",t+" sekond"],m:["eka mintan","ek minut"],mm:[t+" mintamni",t+" mintam"],h:["eka voran","ek vor"],hh:[t+" voramni",t+" voram"],d:["eka disan","ek dis"],dd:[t+" disamni",t+" dis"],M:["eka mhoinean","ek mhoino"],MM:[t+" mhoineamni",t+" mhoine"],y:["eka vorsan","ek voros"],yy:[t+" vorsamni",t+" vorsam"]};return i?o[n][0]:o[n][1]}t.defineLocale("gom-latn",{months:{standalone:"Janer_Febrer_Mars_Abril_Mai_Jun_Julai_Agost_Setembr_Otubr_Novembr_Dezembr".split("_"),format:"Janerachea_Febrerachea_Marsachea_Abrilachea_Maiachea_Junachea_Julaiachea_Agostachea_Setembrachea_Otubrachea_Novembrachea_Dezembrachea".split("_"),isFormat:/MMMM(\s)+D[oD]?/},monthsShort:"Jan._Feb._Mars_Abr._Mai_Jun_Jul._Ago._Set._Otu._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Aitar_Somar_Mongllar_Budhvar_Birestar_Sukrar_Son'var".split("_"),weekdaysShort:"Ait._Som._Mon._Bud._Bre._Suk._Son.".split("_"),weekdaysMin:"Ai_Sm_Mo_Bu_Br_Su_Sn".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"A h:mm [vazta]",LTS:"A h:mm:ss [vazta]",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY A h:mm [vazta]",LLLL:"dddd, MMMM Do, YYYY, A h:mm [vazta]",llll:"ddd, D MMM YYYY, A h:mm [vazta]"},calendar:{sameDay:"[Aiz] LT",nextDay:"[Faleam] LT",nextWeek:"[Fuddlo] dddd[,] LT",lastDay:"[Kal] LT",lastWeek:"[Fattlo] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%s",past:"%s adim",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}(er)/,ordinal:function(t,e){switch(e){case"D":return t+"er";default:case"M":case"Q":case"DDD":case"d":case"w":case"W":return t}},week:{dow:0,doy:3},meridiemParse:/rati|sokallim|donparam|sanje/,meridiemHour:function(t,e){return 12===t&&(t=0),"rati"===e?t<4?t:t+12:"sokallim"===e?t:"donparam"===e?t>12?t:t+12:"sanje"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"rati":t<12?"sokallim":t<16?"donparam":t<20?"sanje":"rati"}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e={1:"૧",2:"૨",3:"૩",4:"૪",5:"૫",6:"૬",7:"૭",8:"૮",9:"૯",0:"૦"},n={"૧":"1","૨":"2","૩":"3","૪":"4","૫":"5","૬":"6","૭":"7","૮":"8","૯":"9","૦":"0"};t.defineLocale("gu",{months:"જાન્યુઆરી_ફેબ્રુઆરી_માર્ચ_એપ્રિલ_મે_જૂન_જુલાઈ_ઑગસ્ટ_સપ્ટેમ્બર_ઑક્ટ્બર_નવેમ્બર_ડિસેમ્બર".split("_"),monthsShort:"જાન્યુ._ફેબ્રુ._માર્ચ_એપ્રિ._મે_જૂન_જુલા._ઑગ._સપ્ટે._ઑક્ટ્._નવે._ડિસે.".split("_"),monthsParseExact:!0,weekdays:"રવિવાર_સોમવાર_મંગળવાર_બુધ્વાર_ગુરુવાર_શુક્રવાર_શનિવાર".split("_"),weekdaysShort:"રવિ_સોમ_મંગળ_બુધ્_ગુરુ_શુક્ર_શનિ".split("_"),weekdaysMin:"ર_સો_મં_બુ_ગુ_શુ_શ".split("_"),longDateFormat:{LT:"A h:mm વાગ્યે",LTS:"A h:mm:ss વાગ્યે",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm વાગ્યે",LLLL:"dddd, D MMMM YYYY, A h:mm વાગ્યે"},calendar:{sameDay:"[આજ] LT",nextDay:"[કાલે] LT",nextWeek:"dddd, LT",lastDay:"[ગઇકાલે] LT",lastWeek:"[પાછલા] dddd, LT",sameElse:"L"},relativeTime:{future:"%s મા",past:"%s પહેલા",s:"અમુક પળો",ss:"%d સેકંડ",m:"એક મિનિટ",mm:"%d મિનિટ",h:"એક કલાક",hh:"%d કલાક",d:"એક દિવસ",dd:"%d દિવસ",M:"એક મહિનો",MM:"%d મહિનો",y:"એક વર્ષ",yy:"%d વર્ષ"},preparse:function(t){return t.replace(/[૧૨૩૪૫૬૭૮૯૦]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/રાત|બપોર|સવાર|સાંજ/,meridiemHour:function(t,e){return 12===t&&(t=0),"રાત"===e?t<4?t:t+12:"સવાર"===e?t:"બપોર"===e?t>=10?t:t+12:"સાંજ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"રાત":t<10?"સવાર":t<17?"બપોર":t<20?"સાંજ":"રાત"},week:{dow:0,doy:6}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("he",{months:"ינואר_פברואר_מרץ_אפריל_מאי_יוני_יולי_אוגוסט_ספטמבר_אוקטובר_נובמבר_דצמבר".split("_"),monthsShort:"ינו׳_פבר׳_מרץ_אפר׳_מאי_יוני_יולי_אוג׳_ספט׳_אוק׳_נוב׳_דצמ׳".split("_"),weekdays:"ראשון_שני_שלישי_רביעי_חמישי_שישי_שבת".split("_"),weekdaysShort:"א׳_ב׳_ג׳_ד׳_ה׳_ו׳_ש׳".split("_"),weekdaysMin:"א_ב_ג_ד_ה_ו_ש".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [ב]MMMM YYYY",LLL:"D [ב]MMMM YYYY HH:mm",LLLL:"dddd, D [ב]MMMM YYYY HH:mm",l:"D/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[היום ב־]LT",nextDay:"[מחר ב־]LT",nextWeek:"dddd [בשעה] LT",lastDay:"[אתמול ב־]LT",lastWeek:"[ביום] dddd [האחרון בשעה] LT",sameElse:"L"},relativeTime:{future:"בעוד %s",past:"לפני %s",s:"מספר שניות",ss:"%d שניות",m:"דקה",mm:"%d דקות",h:"שעה",hh:function(t){return 2===t?"שעתיים":t+" שעות"},d:"יום",dd:function(t){return 2===t?"יומיים":t+" ימים"},M:"חודש",MM:function(t){return 2===t?"חודשיים":t+" חודשים"},y:"שנה",yy:function(t){return 2===t?"שנתיים":t%10==0&&10!==t?t+" שנה":t+" שנים"}},meridiemParse:/אחה"צ|לפנה"צ|אחרי הצהריים|לפני הצהריים|לפנות בוקר|בבוקר|בערב/i,isPM:function(t){return/^(אחה"צ|אחרי הצהריים|בערב)$/.test(t)},meridiem:function(t,e,n){return t<5?"לפנות בוקר":t<10?"בבוקר":t<12?n?'לפנה"צ':"לפני הצהריים":t<18?n?'אחה"צ':"אחרי הצהריים":"בערב"}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"},i=[/^जन/i,/^फ़र|फर/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सितं|सित/i,/^अक्टू/i,/^नव|नवं/i,/^दिसं|दिस/i];t.defineLocale("hi",{months:{format:"जनवरी_फ़रवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितम्बर_अक्टूबर_नवम्बर_दिसम्बर".split("_"),standalone:"जनवरी_फरवरी_मार्च_अप्रैल_मई_जून_जुलाई_अगस्त_सितंबर_अक्टूबर_नवंबर_दिसंबर".split("_")},monthsShort:"जन._फ़र._मार्च_अप्रै._मई_जून_जुल._अग._सित._अक्टू._नव._दिस.".split("_"),weekdays:"रविवार_सोमवार_मंगलवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगल_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm बजे",LTS:"A h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm बजे",LLLL:"dddd, D MMMM YYYY, A h:mm बजे"},monthsParse:i,longMonthsParse:i,shortMonthsParse:[/^जन/i,/^फ़र/i,/^मार्च/i,/^अप्रै/i,/^मई/i,/^जून/i,/^जुल/i,/^अग/i,/^सित/i,/^अक्टू/i,/^नव/i,/^दिस/i],monthsRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsShortRegex:/^(जनवरी|जन\.?|फ़रवरी|फरवरी|फ़र\.?|मार्च?|अप्रैल|अप्रै\.?|मई?|जून?|जुलाई|जुल\.?|अगस्त|अग\.?|सितम्बर|सितंबर|सित\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर|नव\.?|दिसम्बर|दिसंबर|दिस\.?)/i,monthsStrictRegex:/^(जनवरी?|फ़रवरी|फरवरी?|मार्च?|अप्रैल?|मई?|जून?|जुलाई?|अगस्त?|सितम्बर|सितंबर|सित?\.?|अक्टूबर|अक्टू\.?|नवम्बर|नवंबर?|दिसम्बर|दिसंबर?)/i,monthsShortStrictRegex:/^(जन\.?|फ़र\.?|मार्च?|अप्रै\.?|मई?|जून?|जुल\.?|अग\.?|सित\.?|अक्टू\.?|नव\.?|दिस\.?)/i,calendar:{sameDay:"[आज] LT",nextDay:"[कल] LT",nextWeek:"dddd, LT",lastDay:"[कल] LT",lastWeek:"[पिछले] dddd, LT",sameElse:"L"},relativeTime:{future:"%s में",past:"%s पहले",s:"कुछ ही क्षण",ss:"%d सेकंड",m:"एक मिनट",mm:"%d मिनट",h:"एक घंटा",hh:"%d घंटे",d:"एक दिन",dd:"%d दिन",M:"एक महीने",MM:"%d महीने",y:"एक वर्ष",yy:"%d वर्ष"},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/रात|सुबह|दोपहर|शाम/,meridiemHour:function(t,e){return 12===t&&(t=0),"रात"===e?t<4?t:t+12:"सुबह"===e?t:"दोपहर"===e?t>=10?t:t+12:"शाम"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"रात":t<10?"सुबह":t<17?"दोपहर":t<20?"शाम":"रात"},week:{dow:0,doy:6}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration function e(t,e,n){var i=t+" ";switch(n){case"ss":return i+=1===t?"sekunda":2===t||3===t||4===t?"sekunde":"sekundi";case"m":return e?"jedna minuta":"jedne minute";case"mm":return i+=1===t?"minuta":2===t||3===t||4===t?"minute":"minuta";case"h":return e?"jedan sat":"jednog sata";case"hh":return i+=1===t?"sat":2===t||3===t||4===t?"sata":"sati";case"dd":return i+=1===t?"dan":"dana";case"MM":return i+=1===t?"mjesec":2===t||3===t||4===t?"mjeseca":"mjeseci";case"yy":return i+=1===t?"godina":2===t||3===t||4===t?"godine":"godina"}}t.defineLocale("hr",{months:{format:"siječnja_veljače_ožujka_travnja_svibnja_lipnja_srpnja_kolovoza_rujna_listopada_studenoga_prosinca".split("_"),standalone:"siječanj_veljača_ožujak_travanj_svibanj_lipanj_srpanj_kolovoz_rujan_listopad_studeni_prosinac".split("_")},monthsShort:"sij._velj._ožu._tra._svi._lip._srp._kol._ruj._lis._stu._pro.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"Do MMMM YYYY",LLL:"Do MMMM YYYY H:mm",LLLL:"dddd, Do MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[jučer u] LT",lastWeek:function(){switch(this.day()){case 0:return"[prošlu] [nedjelju] [u] LT";case 3:return"[prošlu] [srijedu] [u] LT";case 6:return"[prošle] [subote] [u] LT";case 1:case 2:case 4:case 5:return"[prošli] dddd [u] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"par sekundi",ss:e,m:e,mm:e,h:e,hh:e,d:"dan",dd:e,M:"mjesec",MM:e,y:"godinu",yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e="vasárnap hétfőn kedden szerdán csütörtökön pénteken szombaton".split(" ");function n(t,e,n,i){var o=t;switch(n){case"s":return i||e?"néhány másodperc":"néhány másodperce";case"ss":return o+(i||e)?" másodperc":" másodperce";case"m":return"egy"+(i||e?" perc":" perce");case"mm":return o+(i||e?" perc":" perce");case"h":return"egy"+(i||e?" óra":" órája");case"hh":return o+(i||e?" óra":" órája");case"d":return"egy"+(i||e?" nap":" napja");case"dd":return o+(i||e?" nap":" napja");case"M":return"egy"+(i||e?" hónap":" hónapja");case"MM":return o+(i||e?" hónap":" hónapja");case"y":return"egy"+(i||e?" év":" éve");case"yy":return o+(i||e?" év":" éve")}return""}function i(t){return(t?"":"[múlt] ")+"["+e[this.day()]+"] LT[-kor]"}t.defineLocale("hu",{months:"január_február_március_április_május_június_július_augusztus_szeptember_október_november_december".split("_"),monthsShort:"jan._feb._márc._ápr._máj._jún._júl._aug._szept._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"vasárnap_hétfő_kedd_szerda_csütörtök_péntek_szombat".split("_"),weekdaysShort:"vas_hét_kedd_sze_csüt_pén_szo".split("_"),weekdaysMin:"v_h_k_sze_cs_p_szo".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY. MMMM D.",LLL:"YYYY. MMMM D. H:mm",LLLL:"YYYY. MMMM D., dddd H:mm"},meridiemParse:/de|du/i,isPM:function(t){return"u"===t.charAt(1).toLowerCase()},meridiem:function(t,e,n){return t<12?!0===n?"de":"DE":!0===n?"du":"DU"},calendar:{sameDay:"[ma] LT[-kor]",nextDay:"[holnap] LT[-kor]",nextWeek:function(){return i.call(this,!0)},lastDay:"[tegnap] LT[-kor]",lastWeek:function(){return i.call(this,!1)},sameElse:"L"},relativeTime:{future:"%s múlva",past:"%s",s:n,ss:n,m:n,mm:n,h:n,hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("hy-am",{months:{format:"հունվարի_փետրվարի_մարտի_ապրիլի_մայիսի_հունիսի_հուլիսի_օգոստոսի_սեպտեմբերի_հոկտեմբերի_նոյեմբերի_դեկտեմբերի".split("_"),standalone:"հունվար_փետրվար_մարտ_ապրիլ_մայիս_հունիս_հուլիս_օգոստոս_սեպտեմբեր_հոկտեմբեր_նոյեմբեր_դեկտեմբեր".split("_")},monthsShort:"հնվ_փտր_մրտ_ապր_մյս_հնս_հլս_օգս_սպտ_հկտ_նմբ_դկտ".split("_"),weekdays:"կիրակի_երկուշաբթի_երեքշաբթի_չորեքշաբթի_հինգշաբթի_ուրբաթ_շաբաթ".split("_"),weekdaysShort:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),weekdaysMin:"կրկ_երկ_երք_չրք_հնգ_ուրբ_շբթ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY թ.",LLL:"D MMMM YYYY թ., HH:mm",LLLL:"dddd, D MMMM YYYY թ., HH:mm"},calendar:{sameDay:"[այսօր] LT",nextDay:"[վաղը] LT",lastDay:"[երեկ] LT",nextWeek:function(){return"dddd [օրը ժամը] LT"},lastWeek:function(){return"[անցած] dddd [օրը ժամը] LT"},sameElse:"L"},relativeTime:{future:"%s հետո",past:"%s առաջ",s:"մի քանի վայրկյան",ss:"%d վայրկյան",m:"րոպե",mm:"%d րոպե",h:"ժամ",hh:"%d ժամ",d:"օր",dd:"%d օր",M:"ամիս",MM:"%d ամիս",y:"տարի",yy:"%d տարի"},meridiemParse:/գիշերվա|առավոտվա|ցերեկվա|երեկոյան/,isPM:function(t){return/^(ցերեկվա|երեկոյան)$/.test(t)},meridiem:function(t){return t<4?"գիշերվա":t<12?"առավոտվա":t<17?"ցերեկվա":"երեկոյան"},dayOfMonthOrdinalParse:/\d{1,2}|\d{1,2}-(ին|րդ)/,ordinal:function(t,e){switch(e){case"DDD":case"w":case"W":case"DDDo":return 1===t?t+"-ին":t+"-րդ";default:return t}},week:{dow:1,doy:7}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("id",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_November_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Agt_Sep_Okt_Nov_Des".split("_"),weekdays:"Minggu_Senin_Selasa_Rabu_Kamis_Jumat_Sabtu".split("_"),weekdaysShort:"Min_Sen_Sel_Rab_Kam_Jum_Sab".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|siang|sore|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"siang"===e?t>=11?t:t+12:"sore"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"pagi":t<15?"siang":t<19?"sore":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Besok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kemarin pukul] LT",lastWeek:"dddd [lalu pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lalu",s:"beberapa detik",ss:"%d detik",m:"semenit",mm:"%d menit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:0,doy:6}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration function e(t){return t%100==11||t%10!=1}function n(t,n,i,o){var r=t+" ";switch(i){case"s":return n||o?"nokkrar sekúndur":"nokkrum sekúndum";case"ss":return e(t)?r+(n||o?"sekúndur":"sekúndum"):r+"sekúnda";case"m":return n?"mínúta":"mínútu";case"mm":return e(t)?r+(n||o?"mínútur":"mínútum"):n?r+"mínúta":r+"mínútu";case"hh":return e(t)?r+(n||o?"klukkustundir":"klukkustundum"):r+"klukkustund";case"d":return n?"dagur":o?"dag":"degi";case"dd":return e(t)?n?r+"dagar":r+(o?"daga":"dögum"):n?r+"dagur":r+(o?"dag":"degi");case"M":return n?"mánuður":o?"mánuð":"mánuði";case"MM":return e(t)?n?r+"mánuðir":r+(o?"mánuði":"mánuðum"):n?r+"mánuður":r+(o?"mánuð":"mánuði");case"y":return n||o?"ár":"ári";case"yy":return e(t)?r+(n||o?"ár":"árum"):r+(n||o?"ár":"ári")}}t.defineLocale("is",{months:"janúar_febrúar_mars_apríl_maí_júní_júlí_ágúst_september_október_nóvember_desember".split("_"),monthsShort:"jan_feb_mar_apr_maí_jún_júl_ágú_sep_okt_nóv_des".split("_"),weekdays:"sunnudagur_mánudagur_þriðjudagur_miðvikudagur_fimmtudagur_föstudagur_laugardagur".split("_"),weekdaysShort:"sun_mán_þri_mið_fim_fös_lau".split("_"),weekdaysMin:"Su_Má_Þr_Mi_Fi_Fö_La".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd, D. MMMM YYYY [kl.] H:mm"},calendar:{sameDay:"[í dag kl.] LT",nextDay:"[á morgun kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[í gær kl.] LT",lastWeek:"[síðasta] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"eftir %s",past:"fyrir %s síðan",s:n,ss:n,m:n,mm:n,h:"klukkustund",hh:n,d:n,dd:n,M:n,MM:n,y:n,yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("it",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:function(){return"[Oggi a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextDay:function(){return"[Domani a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},nextWeek:function(){return"dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastDay:function(){return"[Ieri a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"},lastWeek:function(){switch(this.day()){case 0:return"[La scorsa] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT";default:return"[Lo scorso] dddd [a"+(this.hours()>1?"lle ":0===this.hours()?" ":"ll'")+"]LT"}},sameElse:"L"},relativeTime:{future:"tra %s",past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",w:"una settimana",ww:"%d settimane",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("it-ch",{months:"gennaio_febbraio_marzo_aprile_maggio_giugno_luglio_agosto_settembre_ottobre_novembre_dicembre".split("_"),monthsShort:"gen_feb_mar_apr_mag_giu_lug_ago_set_ott_nov_dic".split("_"),weekdays:"domenica_lunedì_martedì_mercoledì_giovedì_venerdì_sabato".split("_"),weekdaysShort:"dom_lun_mar_mer_gio_ven_sab".split("_"),weekdaysMin:"do_lu_ma_me_gi_ve_sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[Oggi alle] LT",nextDay:"[Domani alle] LT",nextWeek:"dddd [alle] LT",lastDay:"[Ieri alle] LT",lastWeek:function(){switch(this.day()){case 0:return"[la scorsa] dddd [alle] LT";default:return"[lo scorso] dddd [alle] LT"}},sameElse:"L"},relativeTime:{future:function(t){return(/^[0-9].+$/.test(t)?"tra":"in")+" "+t},past:"%s fa",s:"alcuni secondi",ss:"%d secondi",m:"un minuto",mm:"%d minuti",h:"un'ora",hh:"%d ore",d:"un giorno",dd:"%d giorni",M:"un mese",MM:"%d mesi",y:"un anno",yy:"%d anni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("ja",{eras:[{since:"2019-05-01",offset:1,name:"令和",narrow:"㋿",abbr:"R"},{since:"1989-01-08",until:"2019-04-30",offset:1,name:"平成",narrow:"㍻",abbr:"H"},{since:"1926-12-25",until:"1989-01-07",offset:1,name:"昭和",narrow:"㍼",abbr:"S"},{since:"1912-07-30",until:"1926-12-24",offset:1,name:"大正",narrow:"㍽",abbr:"T"},{since:"1873-01-01",until:"1912-07-29",offset:6,name:"明治",narrow:"㍾",abbr:"M"},{since:"0001-01-01",until:"1873-12-31",offset:1,name:"西暦",narrow:"AD",abbr:"AD"},{since:"0000-12-31",until:-1/0,offset:1,name:"紀元前",narrow:"BC",abbr:"BC"}],eraYearOrdinalRegex:/(元|\d+)年/,eraYearOrdinalParse:function(t,e){return"元"===e[1]?1:parseInt(e[1]||t,10)},months:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"日曜日_月曜日_火曜日_水曜日_木曜日_金曜日_土曜日".split("_"),weekdaysShort:"日_月_火_水_木_金_土".split("_"),weekdaysMin:"日_月_火_水_木_金_土".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日 dddd HH:mm",l:"YYYY/MM/DD",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日(ddd) HH:mm"},meridiemParse:/午前|午後/i,isPM:function(t){return"午後"===t},meridiem:function(t,e,n){return t<12?"午前":"午後"},calendar:{sameDay:"[今日] LT",nextDay:"[明日] LT",nextWeek:function(t){return t.week()!==this.week()?"[来週]dddd LT":"dddd LT"},lastDay:"[昨日] LT",lastWeek:function(t){return this.week()!==t.week()?"[先週]dddd LT":"dddd LT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}日/,ordinal:function(t,e){switch(e){case"y":return 1===t?"元年":t+"年";case"d":case"D":case"DDD":return t+"日";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"数秒",ss:"%d秒",m:"1分",mm:"%d分",h:"1時間",hh:"%d時間",d:"1日",dd:"%d日",M:"1ヶ月",MM:"%dヶ月",y:"1年",yy:"%d年"}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("jv",{months:"Januari_Februari_Maret_April_Mei_Juni_Juli_Agustus_September_Oktober_Nopember_Desember".split("_"),monthsShort:"Jan_Feb_Mar_Apr_Mei_Jun_Jul_Ags_Sep_Okt_Nop_Des".split("_"),weekdays:"Minggu_Senen_Seloso_Rebu_Kemis_Jemuwah_Septu".split("_"),weekdaysShort:"Min_Sen_Sel_Reb_Kem_Jem_Sep".split("_"),weekdaysMin:"Mg_Sn_Sl_Rb_Km_Jm_Sp".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/enjing|siyang|sonten|ndalu/,meridiemHour:function(t,e){return 12===t&&(t=0),"enjing"===e?t:"siyang"===e?t>=11?t:t+12:"sonten"===e||"ndalu"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"enjing":t<15?"siyang":t<19?"sonten":"ndalu"},calendar:{sameDay:"[Dinten puniko pukul] LT",nextDay:"[Mbenjang pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kala wingi pukul] LT",lastWeek:"dddd [kepengker pukul] LT",sameElse:"L"},relativeTime:{future:"wonten ing %s",past:"%s ingkang kepengker",s:"sawetawis detik",ss:"%d detik",m:"setunggal menit",mm:"%d menit",h:"setunggal jam",hh:"%d jam",d:"sedinten",dd:"%d dinten",M:"sewulan",MM:"%d wulan",y:"setaun",yy:"%d taun"},week:{dow:1,doy:7}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("ka",{months:"იანვარი_თებერვალი_მარტი_აპრილი_მაისი_ივნისი_ივლისი_აგვისტო_სექტემბერი_ოქტომბერი_ნოემბერი_დეკემბერი".split("_"),monthsShort:"იან_თებ_მარ_აპრ_მაი_ივნ_ივლ_აგვ_სექ_ოქტ_ნოე_დეკ".split("_"),weekdays:{standalone:"კვირა_ორშაბათი_სამშაბათი_ოთხშაბათი_ხუთშაბათი_პარასკევი_შაბათი".split("_"),format:"კვირას_ორშაბათს_სამშაბათს_ოთხშაბათს_ხუთშაბათს_პარასკევს_შაბათს".split("_"),isFormat:/(წინა|შემდეგ)/},weekdaysShort:"კვი_ორშ_სამ_ოთხ_ხუთ_პარ_შაბ".split("_"),weekdaysMin:"კვ_ორ_სა_ოთ_ხუ_პა_შა".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[დღეს] LT[-ზე]",nextDay:"[ხვალ] LT[-ზე]",lastDay:"[გუშინ] LT[-ზე]",nextWeek:"[შემდეგ] dddd LT[-ზე]",lastWeek:"[წინა] dddd LT-ზე",sameElse:"L"},relativeTime:{future:function(t){return t.replace(/(წამ|წუთ|საათ|წელ|დღ|თვ)(ი|ე)/,(function(t,e,n){return"ი"===n?e+"ში":e+n+"ში"}))},past:function(t){return/(წამი|წუთი|საათი|დღე|თვე)/.test(t)?t.replace(/(ი|ე)$/,"ის წინ"):/წელი/.test(t)?t.replace(/წელი$/,"წლის წინ"):t},s:"რამდენიმე წამი",ss:"%d წამი",m:"წუთი",mm:"%d წუთი",h:"საათი",hh:"%d საათი",d:"დღე",dd:"%d დღე",M:"თვე",MM:"%d თვე",y:"წელი",yy:"%d წელი"},dayOfMonthOrdinalParse:/0|1-ლი|მე-\d{1,2}|\d{1,2}-ე/,ordinal:function(t){return 0===t?t:1===t?t+"-ლი":t<20||t<=100&&t%20==0||t%100==0?"მე-"+t:t+"-ე"},week:{dow:1,doy:7}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e={0:"-ші",1:"-ші",2:"-ші",3:"-ші",4:"-ші",5:"-ші",6:"-шы",7:"-ші",8:"-ші",9:"-шы",10:"-шы",20:"-шы",30:"-шы",40:"-шы",50:"-ші",60:"-шы",70:"-ші",80:"-ші",90:"-шы",100:"-ші"};t.defineLocale("kk",{months:"қаңтар_ақпан_наурыз_сәуір_мамыр_маусым_шілде_тамыз_қыркүйек_қазан_қараша_желтоқсан".split("_"),monthsShort:"қаң_ақп_нау_сәу_мам_мау_шіл_там_қыр_қаз_қар_жел".split("_"),weekdays:"жексенбі_дүйсенбі_сейсенбі_сәрсенбі_бейсенбі_жұма_сенбі".split("_"),weekdaysShort:"жек_дүй_сей_сәр_бей_жұм_сен".split("_"),weekdaysMin:"жк_дй_сй_ср_бй_жм_сн".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгін сағат] LT",nextDay:"[Ертең сағат] LT",nextWeek:"dddd [сағат] LT",lastDay:"[Кеше сағат] LT",lastWeek:"[Өткен аптаның] dddd [сағат] LT",sameElse:"L"},relativeTime:{future:"%s ішінде",past:"%s бұрын",s:"бірнеше секунд",ss:"%d секунд",m:"бір минут",mm:"%d минут",h:"бір сағат",hh:"%d сағат",d:"бір күн",dd:"%d күн",M:"бір ай",MM:"%d ай",y:"бір жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(ші|шы)/,ordinal:function(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e={1:"១",2:"២",3:"៣",4:"៤",5:"៥",6:"៦",7:"៧",8:"៨",9:"៩",0:"០"},n={"១":"1","២":"2","៣":"3","៤":"4","៥":"5","៦":"6","៧":"7","៨":"8","៩":"9","០":"0"};t.defineLocale("km",{months:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),monthsShort:"មករា_កុម្ភៈ_មីនា_មេសា_ឧសភា_មិថុនា_កក្កដា_សីហា_កញ្ញា_តុលា_វិច្ឆិកា_ធ្នូ".split("_"),weekdays:"អាទិត្យ_ច័ន្ទ_អង្គារ_ពុធ_ព្រហស្បតិ៍_សុក្រ_សៅរ៍".split("_"),weekdaysShort:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysMin:"អា_ច_អ_ព_ព្រ_សុ_ស".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ព្រឹក|ល្ងាច/,isPM:function(t){return"ល្ងាច"===t},meridiem:function(t,e,n){return t<12?"ព្រឹក":"ល្ងាច"},calendar:{sameDay:"[ថ្ងៃនេះ ម៉ោង] LT",nextDay:"[ស្អែក ម៉ោង] LT",nextWeek:"dddd [ម៉ោង] LT",lastDay:"[ម្សិលមិញ ម៉ោង] LT",lastWeek:"dddd [សប្តាហ៍មុន] [ម៉ោង] LT",sameElse:"L"},relativeTime:{future:"%sទៀត",past:"%sមុន",s:"ប៉ុន្មានវិនាទី",ss:"%d វិនាទី",m:"មួយនាទី",mm:"%d នាទី",h:"មួយម៉ោង",hh:"%d ម៉ោង",d:"មួយថ្ងៃ",dd:"%d ថ្ងៃ",M:"មួយខែ",MM:"%d ខែ",y:"មួយឆ្នាំ",yy:"%d ឆ្នាំ"},dayOfMonthOrdinalParse:/ទី\d{1,2}/,ordinal:"ទី%d",preparse:function(t){return t.replace(/[១២៣៤៥៦៧៨៩០]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e={1:"೧",2:"೨",3:"೩",4:"೪",5:"೫",6:"೬",7:"೭",8:"೮",9:"೯",0:"೦"},n={"೧":"1","೨":"2","೩":"3","೪":"4","೫":"5","೬":"6","೭":"7","೮":"8","೯":"9","೦":"0"};t.defineLocale("kn",{months:"ಜನವರಿ_ಫೆಬ್ರವರಿ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂಬರ್_ಅಕ್ಟೋಬರ್_ನವೆಂಬರ್_ಡಿಸೆಂಬರ್".split("_"),monthsShort:"ಜನ_ಫೆಬ್ರ_ಮಾರ್ಚ್_ಏಪ್ರಿಲ್_ಮೇ_ಜೂನ್_ಜುಲೈ_ಆಗಸ್ಟ್_ಸೆಪ್ಟೆಂ_ಅಕ್ಟೋ_ನವೆಂ_ಡಿಸೆಂ".split("_"),monthsParseExact:!0,weekdays:"ಭಾನುವಾರ_ಸೋಮವಾರ_ಮಂಗಳವಾರ_ಬುಧವಾರ_ಗುರುವಾರ_ಶುಕ್ರವಾರ_ಶನಿವಾರ".split("_"),weekdaysShort:"ಭಾನು_ಸೋಮ_ಮಂಗಳ_ಬುಧ_ಗುರು_ಶುಕ್ರ_ಶನಿ".split("_"),weekdaysMin:"ಭಾ_ಸೋ_ಮಂ_ಬು_ಗು_ಶು_ಶ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[ಇಂದು] LT",nextDay:"[ನಾಳೆ] LT",nextWeek:"dddd, LT",lastDay:"[ನಿನ್ನೆ] LT",lastWeek:"[ಕೊನೆಯ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ನಂತರ",past:"%s ಹಿಂದೆ",s:"ಕೆಲವು ಕ್ಷಣಗಳು",ss:"%d ಸೆಕೆಂಡುಗಳು",m:"ಒಂದು ನಿಮಿಷ",mm:"%d ನಿಮಿಷ",h:"ಒಂದು ಗಂಟೆ",hh:"%d ಗಂಟೆ",d:"ಒಂದು ದಿನ",dd:"%d ದಿನ",M:"ಒಂದು ತಿಂಗಳು",MM:"%d ತಿಂಗಳು",y:"ಒಂದು ವರ್ಷ",yy:"%d ವರ್ಷ"},preparse:function(t){return t.replace(/[೧೨೩೪೫೬೭೮೯೦]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/ರಾತ್ರಿ|ಬೆಳಿಗ್ಗೆ|ಮಧ್ಯಾಹ್ನ|ಸಂಜೆ/,meridiemHour:function(t,e){return 12===t&&(t=0),"ರಾತ್ರಿ"===e?t<4?t:t+12:"ಬೆಳಿಗ್ಗೆ"===e?t:"ಮಧ್ಯಾಹ್ನ"===e?t>=10?t:t+12:"ಸಂಜೆ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"ರಾತ್ರಿ":t<10?"ಬೆಳಿಗ್ಗೆ":t<17?"ಮಧ್ಯಾಹ್ನ":t<20?"ಸಂಜೆ":"ರಾತ್ರಿ"},dayOfMonthOrdinalParse:/\d{1,2}(ನೇ)/,ordinal:function(t){return t+"ನೇ"},week:{dow:0,doy:6}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("ko",{months:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),monthsShort:"1월_2월_3월_4월_5월_6월_7월_8월_9월_10월_11월_12월".split("_"),weekdays:"일요일_월요일_화요일_수요일_목요일_금요일_토요일".split("_"),weekdaysShort:"일_월_화_수_목_금_토".split("_"),weekdaysMin:"일_월_화_수_목_금_토".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"YYYY.MM.DD.",LL:"YYYY년 MMMM D일",LLL:"YYYY년 MMMM D일 A h:mm",LLLL:"YYYY년 MMMM D일 dddd A h:mm",l:"YYYY.MM.DD.",ll:"YYYY년 MMMM D일",lll:"YYYY년 MMMM D일 A h:mm",llll:"YYYY년 MMMM D일 dddd A h:mm"},calendar:{sameDay:"오늘 LT",nextDay:"내일 LT",nextWeek:"dddd LT",lastDay:"어제 LT",lastWeek:"지난주 dddd LT",sameElse:"L"},relativeTime:{future:"%s 후",past:"%s 전",s:"몇 초",ss:"%d초",m:"1분",mm:"%d분",h:"한 시간",hh:"%d시간",d:"하루",dd:"%d일",M:"한 달",MM:"%d달",y:"일 년",yy:"%d년"},dayOfMonthOrdinalParse:/\d{1,2}(일|월|주)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"일";case"M":return t+"월";case"w":case"W":return t+"주";default:return t}},meridiemParse:/오전|오후/,isPM:function(t){return"오후"===t},meridiem:function(t,e,n){return t<12?"오전":"오후"}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e={1:"١",2:"٢",3:"٣",4:"٤",5:"٥",6:"٦",7:"٧",8:"٨",9:"٩",0:"٠"},n={"١":"1","٢":"2","٣":"3","٤":"4","٥":"5","٦":"6","٧":"7","٨":"8","٩":"9","٠":"0"},i=["کانونی دووەم","شوبات","ئازار","نیسان","ئایار","حوزەیران","تەمموز","ئاب","ئەیلوول","تشرینی یەكەم","تشرینی دووەم","كانونی یەکەم"];t.defineLocale("ku",{months:i,monthsShort:i,weekdays:"یه‌كشه‌ممه‌_دووشه‌ممه‌_سێشه‌ممه‌_چوارشه‌ممه‌_پێنجشه‌ممه‌_هه‌ینی_شه‌ممه‌".split("_"),weekdaysShort:"یه‌كشه‌م_دووشه‌م_سێشه‌م_چوارشه‌م_پێنجشه‌م_هه‌ینی_شه‌ممه‌".split("_"),weekdaysMin:"ی_د_س_چ_پ_ه_ش".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},meridiemParse:/ئێواره‌|به‌یانی/,isPM:function(t){return/ئێواره‌/.test(t)},meridiem:function(t,e,n){return t<12?"به‌یانی":"ئێواره‌"},calendar:{sameDay:"[ئه‌مرۆ كاتژمێر] LT",nextDay:"[به‌یانی كاتژمێر] LT",nextWeek:"dddd [كاتژمێر] LT",lastDay:"[دوێنێ كاتژمێر] LT",lastWeek:"dddd [كاتژمێر] LT",sameElse:"L"},relativeTime:{future:"له‌ %s",past:"%s",s:"چه‌ند چركه‌یه‌ك",ss:"چركه‌ %d",m:"یه‌ك خوله‌ك",mm:"%d خوله‌ك",h:"یه‌ك كاتژمێر",hh:"%d كاتژمێر",d:"یه‌ك ڕۆژ",dd:"%d ڕۆژ",M:"یه‌ك مانگ",MM:"%d مانگ",y:"یه‌ك ساڵ",yy:"%d ساڵ"},preparse:function(t){return t.replace(/[١٢٣٤٥٦٧٨٩٠]/g,(function(t){return n[t]})).replace(/،/g,",")},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]})).replace(/,/g,"،")},week:{dow:6,doy:12}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e={0:"-чү",1:"-чи",2:"-чи",3:"-чү",4:"-чү",5:"-чи",6:"-чы",7:"-чи",8:"-чи",9:"-чу",10:"-чу",20:"-чы",30:"-чу",40:"-чы",50:"-чү",60:"-чы",70:"-чи",80:"-чи",90:"-чу",100:"-чү"};t.defineLocale("ky",{months:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_"),monthsShort:"янв_фев_март_апр_май_июнь_июль_авг_сен_окт_ноя_дек".split("_"),weekdays:"Жекшемби_Дүйшөмбү_Шейшемби_Шаршемби_Бейшемби_Жума_Ишемби".split("_"),weekdaysShort:"Жек_Дүй_Шей_Шар_Бей_Жум_Ише".split("_"),weekdaysMin:"Жк_Дй_Шй_Шр_Бй_Жм_Иш".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Бүгүн саат] LT",nextDay:"[Эртең саат] LT",nextWeek:"dddd [саат] LT",lastDay:"[Кечээ саат] LT",lastWeek:"[Өткөн аптанын] dddd [күнү] [саат] LT",sameElse:"L"},relativeTime:{future:"%s ичинде",past:"%s мурун",s:"бирнече секунд",ss:"%d секунд",m:"бир мүнөт",mm:"%d мүнөт",h:"бир саат",hh:"%d саат",d:"бир күн",dd:"%d күн",M:"бир ай",MM:"%d ай",y:"бир жыл",yy:"%d жыл"},dayOfMonthOrdinalParse:/\d{1,2}-(чи|чы|чү|чу)/,ordinal:function(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration function e(t,e,n,i){var o={m:["eng Minutt","enger Minutt"],h:["eng Stonn","enger Stonn"],d:["een Dag","engem Dag"],M:["ee Mount","engem Mount"],y:["ee Joer","engem Joer"]};return e?o[n][0]:o[n][1]}function n(t){if(t=parseInt(t,10),isNaN(t))return!1;if(t<0)return!0;if(t<10)return 4<=t&&t<=7;if(t<100){var e=t%10;return n(0===e?t/10:e)}if(t<1e4){for(;t>=10;)t/=10;return n(t)}return n(t/=1e3)}t.defineLocale("lb",{months:"Januar_Februar_Mäerz_Abrëll_Mee_Juni_Juli_August_September_Oktober_November_Dezember".split("_"),monthsShort:"Jan._Febr._Mrz._Abr._Mee_Jun._Jul._Aug._Sept._Okt._Nov._Dez.".split("_"),monthsParseExact:!0,weekdays:"Sonndeg_Méindeg_Dënschdeg_Mëttwoch_Donneschdeg_Freideg_Samschdeg".split("_"),weekdaysShort:"So._Mé._Dë._Më._Do._Fr._Sa.".split("_"),weekdaysMin:"So_Mé_Dë_Më_Do_Fr_Sa".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm [Auer]",LTS:"H:mm:ss [Auer]",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm [Auer]",LLLL:"dddd, D. MMMM YYYY H:mm [Auer]"},calendar:{sameDay:"[Haut um] LT",sameElse:"L",nextDay:"[Muer um] LT",nextWeek:"dddd [um] LT",lastDay:"[Gëschter um] LT",lastWeek:function(){switch(this.day()){case 2:case 4:return"[Leschten] dddd [um] LT";default:return"[Leschte] dddd [um] LT"}}},relativeTime:{future:function(t){return n(t.substr(0,t.indexOf(" ")))?"a "+t:"an "+t},past:function(t){return n(t.substr(0,t.indexOf(" ")))?"viru "+t:"virun "+t},s:"e puer Sekonnen",ss:"%d Sekonnen",m:e,mm:"%d Minutten",h:e,hh:"%d Stonnen",d:e,dd:"%d Deeg",M:e,MM:"%d Méint",y:e,yy:"%d Joer"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("lo",{months:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),monthsShort:"ມັງກອນ_ກຸມພາ_ມີນາ_ເມສາ_ພຶດສະພາ_ມິຖຸນາ_ກໍລະກົດ_ສິງຫາ_ກັນຍາ_ຕຸລາ_ພະຈິກ_ທັນວາ".split("_"),weekdays:"ອາທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysShort:"ທິດ_ຈັນ_ອັງຄານ_ພຸດ_ພະຫັດ_ສຸກ_ເສົາ".split("_"),weekdaysMin:"ທ_ຈ_ອຄ_ພ_ພຫ_ສກ_ສ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"ວັນdddd D MMMM YYYY HH:mm"},meridiemParse:/ຕອນເຊົ້າ|ຕອນແລງ/,isPM:function(t){return"ຕອນແລງ"===t},meridiem:function(t,e,n){return t<12?"ຕອນເຊົ້າ":"ຕອນແລງ"},calendar:{sameDay:"[ມື້ນີ້ເວລາ] LT",nextDay:"[ມື້ອື່ນເວລາ] LT",nextWeek:"[ວັນ]dddd[ໜ້າເວລາ] LT",lastDay:"[ມື້ວານນີ້ເວລາ] LT",lastWeek:"[ວັນ]dddd[ແລ້ວນີ້ເວລາ] LT",sameElse:"L"},relativeTime:{future:"ອີກ %s",past:"%sຜ່ານມາ",s:"ບໍ່ເທົ່າໃດວິນາທີ",ss:"%d ວິນາທີ",m:"1 ນາທີ",mm:"%d ນາທີ",h:"1 ຊົ່ວໂມງ",hh:"%d ຊົ່ວໂມງ",d:"1 ມື້",dd:"%d ມື້",M:"1 ເດືອນ",MM:"%d ເດືອນ",y:"1 ປີ",yy:"%d ປີ"},dayOfMonthOrdinalParse:/(ທີ່)\d{1,2}/,ordinal:function(t){return"ທີ່"+t}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e={ss:"sekundė_sekundžių_sekundes",m:"minutė_minutės_minutę",mm:"minutės_minučių_minutes",h:"valanda_valandos_valandą",hh:"valandos_valandų_valandas",d:"diena_dienos_dieną",dd:"dienos_dienų_dienas",M:"mėnuo_mėnesio_mėnesį",MM:"mėnesiai_mėnesių_mėnesius",y:"metai_metų_metus",yy:"metai_metų_metus"};function n(t,e,n,i){return e?o(n)[0]:i?o(n)[1]:o(n)[2]}function i(t){return t%10==0||t>10&&t<20}function o(t){return e[t].split("_")}function r(t,e,r,s){var a=t+" ";return 1===t?a+n(0,e,r[0],s):e?a+(i(t)?o(r)[1]:o(r)[0]):s?a+o(r)[1]:a+(i(t)?o(r)[1]:o(r)[2])}t.defineLocale("lt",{months:{format:"sausio_vasario_kovo_balandžio_gegužės_birželio_liepos_rugpjūčio_rugsėjo_spalio_lapkričio_gruodžio".split("_"),standalone:"sausis_vasaris_kovas_balandis_gegužė_birželis_liepa_rugpjūtis_rugsėjis_spalis_lapkritis_gruodis".split("_"),isFormat:/D[oD]?(\[[^\[\]]*\]|\s)+MMMM?|MMMM?(\[[^\[\]]*\]|\s)+D[oD]?/},monthsShort:"sau_vas_kov_bal_geg_bir_lie_rgp_rgs_spa_lap_grd".split("_"),weekdays:{format:"sekmadienį_pirmadienį_antradienį_trečiadienį_ketvirtadienį_penktadienį_šeštadienį".split("_"),standalone:"sekmadienis_pirmadienis_antradienis_trečiadienis_ketvirtadienis_penktadienis_šeštadienis".split("_"),isFormat:/dddd HH:mm/},weekdaysShort:"Sek_Pir_Ant_Tre_Ket_Pen_Šeš".split("_"),weekdaysMin:"S_P_A_T_K_Pn_Š".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY [m.] MMMM D [d.]",LLL:"YYYY [m.] MMMM D [d.], HH:mm [val.]",LLLL:"YYYY [m.] MMMM D [d.], dddd, HH:mm [val.]",l:"YYYY-MM-DD",ll:"YYYY [m.] MMMM D [d.]",lll:"YYYY [m.] MMMM D [d.], HH:mm [val.]",llll:"YYYY [m.] MMMM D [d.], ddd, HH:mm [val.]"},calendar:{sameDay:"[Šiandien] LT",nextDay:"[Rytoj] LT",nextWeek:"dddd LT",lastDay:"[Vakar] LT",lastWeek:"[Praėjusį] dddd LT",sameElse:"L"},relativeTime:{future:"po %s",past:"prieš %s",s:function(t,e,n,i){return e?"kelios sekundės":i?"kelių sekundžių":"kelias sekundes"},ss:r,m:n,mm:r,h:n,hh:r,d:n,dd:r,M:n,MM:r,y:n,yy:r},dayOfMonthOrdinalParse:/\d{1,2}-oji/,ordinal:function(t){return t+"-oji"},week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e={ss:"sekundes_sekundēm_sekunde_sekundes".split("_"),m:"minūtes_minūtēm_minūte_minūtes".split("_"),mm:"minūtes_minūtēm_minūte_minūtes".split("_"),h:"stundas_stundām_stunda_stundas".split("_"),hh:"stundas_stundām_stunda_stundas".split("_"),d:"dienas_dienām_diena_dienas".split("_"),dd:"dienas_dienām_diena_dienas".split("_"),M:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),MM:"mēneša_mēnešiem_mēnesis_mēneši".split("_"),y:"gada_gadiem_gads_gadi".split("_"),yy:"gada_gadiem_gads_gadi".split("_")};function n(t,e,n){return n?e%10==1&&e%100!=11?t[2]:t[3]:e%10==1&&e%100!=11?t[0]:t[1]}function i(t,i,o){return t+" "+n(e[o],t,i)}function o(t,i,o){return n(e[o],t,i)}t.defineLocale("lv",{months:"janvāris_februāris_marts_aprīlis_maijs_jūnijs_jūlijs_augusts_septembris_oktobris_novembris_decembris".split("_"),monthsShort:"jan_feb_mar_apr_mai_jūn_jūl_aug_sep_okt_nov_dec".split("_"),weekdays:"svētdiena_pirmdiena_otrdiena_trešdiena_ceturtdiena_piektdiena_sestdiena".split("_"),weekdaysShort:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysMin:"Sv_P_O_T_C_Pk_S".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY.",LL:"YYYY. [gada] D. MMMM",LLL:"YYYY. [gada] D. MMMM, HH:mm",LLLL:"YYYY. [gada] D. MMMM, dddd, HH:mm"},calendar:{sameDay:"[Šodien pulksten] LT",nextDay:"[Rīt pulksten] LT",nextWeek:"dddd [pulksten] LT",lastDay:"[Vakar pulksten] LT",lastWeek:"[Pagājušā] dddd [pulksten] LT",sameElse:"L"},relativeTime:{future:"pēc %s",past:"pirms %s",s:function(t,e){return e?"dažas sekundes":"dažām sekundēm"},ss:i,m:o,mm:i,h:o,hh:i,d:o,dd:i,M:o,MM:i,y:o,yy:i},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e={words:{ss:["sekund","sekunda","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],dd:["dan","dana","dana"],MM:["mjesec","mjeseca","mjeseci"],yy:["godina","godine","godina"]},correctGrammaticalCase:function(t,e){return 1===t?e[0]:t>=2&&t<=4?e[1]:e[2]},translate:function(t,n,i){var o=e.words[i];return 1===i.length?n?o[0]:o[1]:t+" "+e.correctGrammaticalCase(t,o)}};t.defineLocale("me",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedjelja_ponedjeljak_utorak_srijeda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sri._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sjutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedjelju] [u] LT";case 3:return"[u] [srijedu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedjelje] [u] LT","[prošlog] [ponedjeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srijede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"prije %s",s:"nekoliko sekundi",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:"dan",dd:e.translate,M:"mjesec",MM:e.translate,y:"godinu",yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("mi",{months:"Kohi-tāte_Hui-tanguru_Poutū-te-rangi_Paenga-whāwhā_Haratua_Pipiri_Hōngoingoi_Here-turi-kōkā_Mahuru_Whiringa-ā-nuku_Whiringa-ā-rangi_Hakihea".split("_"),monthsShort:"Kohi_Hui_Pou_Pae_Hara_Pipi_Hōngoi_Here_Mahu_Whi-nu_Whi-ra_Haki".split("_"),monthsRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,3}/i,monthsShortStrictRegex:/(?:['a-z\u0101\u014D\u016B]+\-?){1,2}/i,weekdays:"Rātapu_Mane_Tūrei_Wenerei_Tāite_Paraire_Hātarei".split("_"),weekdaysShort:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),weekdaysMin:"Ta_Ma_Tū_We_Tāi_Pa_Hā".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [i] HH:mm",LLLL:"dddd, D MMMM YYYY [i] HH:mm"},calendar:{sameDay:"[i teie mahana, i] LT",nextDay:"[apopo i] LT",nextWeek:"dddd [i] LT",lastDay:"[inanahi i] LT",lastWeek:"dddd [whakamutunga i] LT",sameElse:"L"},relativeTime:{future:"i roto i %s",past:"%s i mua",s:"te hēkona ruarua",ss:"%d hēkona",m:"he meneti",mm:"%d meneti",h:"te haora",hh:"%d haora",d:"he ra",dd:"%d ra",M:"he marama",MM:"%d marama",y:"he tau",yy:"%d tau"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("mk",{months:"јануари_февруари_март_април_мај_јуни_јули_август_септември_октомври_ноември_декември".split("_"),monthsShort:"јан_фев_мар_апр_мај_јун_јул_авг_сеп_окт_ное_дек".split("_"),weekdays:"недела_понеделник_вторник_среда_четврток_петок_сабота".split("_"),weekdaysShort:"нед_пон_вто_сре_чет_пет_саб".split("_"),weekdaysMin:"нe_пo_вт_ср_че_пе_сa".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[Денес во] LT",nextDay:"[Утре во] LT",nextWeek:"[Во] dddd [во] LT",lastDay:"[Вчера во] LT",lastWeek:function(){switch(this.day()){case 0:case 3:case 6:return"[Изминатата] dddd [во] LT";case 1:case 2:case 4:case 5:return"[Изминатиот] dddd [во] LT"}},sameElse:"L"},relativeTime:{future:"за %s",past:"пред %s",s:"неколку секунди",ss:"%d секунди",m:"една минута",mm:"%d минути",h:"еден час",hh:"%d часа",d:"еден ден",dd:"%d дена",M:"еден месец",MM:"%d месеци",y:"една година",yy:"%d години"},dayOfMonthOrdinalParse:/\d{1,2}-(ев|ен|ти|ви|ри|ми)/,ordinal:function(t){var e=t%10,n=t%100;return 0===t?t+"-ев":0===n?t+"-ен":n>10&&n<20?t+"-ти":1===e?t+"-ви":2===e?t+"-ри":7===e||8===e?t+"-ми":t+"-ти"},week:{dow:1,doy:7}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("ml",{months:"ജനുവരി_ഫെബ്രുവരി_മാർച്ച്_ഏപ്രിൽ_മേയ്_ജൂൺ_ജൂലൈ_ഓഗസ്റ്റ്_സെപ്റ്റംബർ_ഒക്ടോബർ_നവംബർ_ഡിസംബർ".split("_"),monthsShort:"ജനു._ഫെബ്രു._മാർ._ഏപ്രി._മേയ്_ജൂൺ_ജൂലൈ._ഓഗ._സെപ്റ്റ._ഒക്ടോ._നവം._ഡിസം.".split("_"),monthsParseExact:!0,weekdays:"ഞായറാഴ്ച_തിങ്കളാഴ്ച_ചൊവ്വാഴ്ച_ബുധനാഴ്ച_വ്യാഴാഴ്ച_വെള്ളിയാഴ്ച_ശനിയാഴ്ച".split("_"),weekdaysShort:"ഞായർ_തിങ്കൾ_ചൊവ്വ_ബുധൻ_വ്യാഴം_വെള്ളി_ശനി".split("_"),weekdaysMin:"ഞാ_തി_ചൊ_ബു_വ്യാ_വെ_ശ".split("_"),longDateFormat:{LT:"A h:mm -നു",LTS:"A h:mm:ss -നു",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm -നു",LLLL:"dddd, D MMMM YYYY, A h:mm -നു"},calendar:{sameDay:"[ഇന്ന്] LT",nextDay:"[നാളെ] LT",nextWeek:"dddd, LT",lastDay:"[ഇന്നലെ] LT",lastWeek:"[കഴിഞ്ഞ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s കഴിഞ്ഞ്",past:"%s മുൻപ്",s:"അൽപ നിമിഷങ്ങൾ",ss:"%d സെക്കൻഡ്",m:"ഒരു മിനിറ്റ്",mm:"%d മിനിറ്റ്",h:"ഒരു മണിക്കൂർ",hh:"%d മണിക്കൂർ",d:"ഒരു ദിവസം",dd:"%d ദിവസം",M:"ഒരു മാസം",MM:"%d മാസം",y:"ഒരു വർഷം",yy:"%d വർഷം"},meridiemParse:/രാത്രി|രാവിലെ|ഉച്ച കഴിഞ്ഞ്|വൈകുന്നേരം|രാത്രി/i,meridiemHour:function(t,e){return 12===t&&(t=0),"രാത്രി"===e&&t>=4||"ഉച്ച കഴിഞ്ഞ്"===e||"വൈകുന്നേരം"===e?t+12:t},meridiem:function(t,e,n){return t<4?"രാത്രി":t<12?"രാവിലെ":t<17?"ഉച്ച കഴിഞ്ഞ്":t<20?"വൈകുന്നേരം":"രാത്രി"}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration function e(t,e,n,i){switch(n){case"s":return e?"хэдхэн секунд":"хэдхэн секундын";case"ss":return t+(e?" секунд":" секундын");case"m":case"mm":return t+(e?" минут":" минутын");case"h":case"hh":return t+(e?" цаг":" цагийн");case"d":case"dd":return t+(e?" өдөр":" өдрийн");case"M":case"MM":return t+(e?" сар":" сарын");case"y":case"yy":return t+(e?" жил":" жилийн");default:return t}}t.defineLocale("mn",{months:"Нэгдүгээр сар_Хоёрдугаар сар_Гуравдугаар сар_Дөрөвдүгээр сар_Тавдугаар сар_Зургадугаар сар_Долдугаар сар_Наймдугаар сар_Есдүгээр сар_Аравдугаар сар_Арван нэгдүгээр сар_Арван хоёрдугаар сар".split("_"),monthsShort:"1 сар_2 сар_3 сар_4 сар_5 сар_6 сар_7 сар_8 сар_9 сар_10 сар_11 сар_12 сар".split("_"),monthsParseExact:!0,weekdays:"Ням_Даваа_Мягмар_Лхагва_Пүрэв_Баасан_Бямба".split("_"),weekdaysShort:"Ням_Дав_Мяг_Лха_Пүр_Баа_Бям".split("_"),weekdaysMin:"Ня_Да_Мя_Лх_Пү_Ба_Бя".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY оны MMMMын D",LLL:"YYYY оны MMMMын D HH:mm",LLLL:"dddd, YYYY оны MMMMын D HH:mm"},meridiemParse:/ҮӨ|ҮХ/i,isPM:function(t){return"ҮХ"===t},meridiem:function(t,e,n){return t<12?"ҮӨ":"ҮХ"},calendar:{sameDay:"[Өнөөдөр] LT",nextDay:"[Маргааш] LT",nextWeek:"[Ирэх] dddd LT",lastDay:"[Өчигдөр] LT",lastWeek:"[Өнгөрсөн] dddd LT",sameElse:"L"},relativeTime:{future:"%s дараа",past:"%s өмнө",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2} өдөр/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+" өдөр";default:return t}}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};function i(t,e,n,i){var o="";if(e)switch(n){case"s":o="काही सेकंद";break;case"ss":o="%d सेकंद";break;case"m":o="एक मिनिट";break;case"mm":o="%d मिनिटे";break;case"h":o="एक तास";break;case"hh":o="%d तास";break;case"d":o="एक दिवस";break;case"dd":o="%d दिवस";break;case"M":o="एक महिना";break;case"MM":o="%d महिने";break;case"y":o="एक वर्ष";break;case"yy":o="%d वर्षे"}else switch(n){case"s":o="काही सेकंदां";break;case"ss":o="%d सेकंदां";break;case"m":o="एका मिनिटा";break;case"mm":o="%d मिनिटां";break;case"h":o="एका तासा";break;case"hh":o="%d तासां";break;case"d":o="एका दिवसा";break;case"dd":o="%d दिवसां";break;case"M":o="एका महिन्या";break;case"MM":o="%d महिन्यां";break;case"y":o="एका वर्षा";break;case"yy":o="%d वर्षां"}return o.replace(/%d/i,t)}t.defineLocale("mr",{months:"जानेवारी_फेब्रुवारी_मार्च_एप्रिल_मे_जून_जुलै_ऑगस्ट_सप्टेंबर_ऑक्टोबर_नोव्हेंबर_डिसेंबर".split("_"),monthsShort:"जाने._फेब्रु._मार्च._एप्रि._मे._जून._जुलै._ऑग._सप्टें._ऑक्टो._नोव्हें._डिसें.".split("_"),monthsParseExact:!0,weekdays:"रविवार_सोमवार_मंगळवार_बुधवार_गुरूवार_शुक्रवार_शनिवार".split("_"),weekdaysShort:"रवि_सोम_मंगळ_बुध_गुरू_शुक्र_शनि".split("_"),weekdaysMin:"र_सो_मं_बु_गु_शु_श".split("_"),longDateFormat:{LT:"A h:mm वाजता",LTS:"A h:mm:ss वाजता",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm वाजता",LLLL:"dddd, D MMMM YYYY, A h:mm वाजता"},calendar:{sameDay:"[आज] LT",nextDay:"[उद्या] LT",nextWeek:"dddd, LT",lastDay:"[काल] LT",lastWeek:"[मागील] dddd, LT",sameElse:"L"},relativeTime:{future:"%sमध्ये",past:"%sपूर्वी",s:i,ss:i,m:i,mm:i,h:i,hh:i,d:i,dd:i,M:i,MM:i,y:i,yy:i},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/पहाटे|सकाळी|दुपारी|सायंकाळी|रात्री/,meridiemHour:function(t,e){return 12===t&&(t=0),"पहाटे"===e||"सकाळी"===e?t:"दुपारी"===e||"सायंकाळी"===e||"रात्री"===e?t>=12?t:t+12:void 0},meridiem:function(t,e,n){return t>=0&&t<6?"पहाटे":t<12?"सकाळी":t<17?"दुपारी":t<20?"सायंकाळी":"रात्री"},week:{dow:0,doy:6}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("ms",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"pagi":t<15?"tengahari":t<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("ms-my",{months:"Januari_Februari_Mac_April_Mei_Jun_Julai_Ogos_September_Oktober_November_Disember".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ogs_Sep_Okt_Nov_Dis".split("_"),weekdays:"Ahad_Isnin_Selasa_Rabu_Khamis_Jumaat_Sabtu".split("_"),weekdaysShort:"Ahd_Isn_Sel_Rab_Kha_Jum_Sab".split("_"),weekdaysMin:"Ah_Is_Sl_Rb_Km_Jm_Sb".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [pukul] HH.mm",LLLL:"dddd, D MMMM YYYY [pukul] HH.mm"},meridiemParse:/pagi|tengahari|petang|malam/,meridiemHour:function(t,e){return 12===t&&(t=0),"pagi"===e?t:"tengahari"===e?t>=11?t:t+12:"petang"===e||"malam"===e?t+12:void 0},meridiem:function(t,e,n){return t<11?"pagi":t<15?"tengahari":t<19?"petang":"malam"},calendar:{sameDay:"[Hari ini pukul] LT",nextDay:"[Esok pukul] LT",nextWeek:"dddd [pukul] LT",lastDay:"[Kelmarin pukul] LT",lastWeek:"dddd [lepas pukul] LT",sameElse:"L"},relativeTime:{future:"dalam %s",past:"%s yang lepas",s:"beberapa saat",ss:"%d saat",m:"seminit",mm:"%d minit",h:"sejam",hh:"%d jam",d:"sehari",dd:"%d hari",M:"sebulan",MM:"%d bulan",y:"setahun",yy:"%d tahun"},week:{dow:1,doy:7}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("mt",{months:"Jannar_Frar_Marzu_April_Mejju_Ġunju_Lulju_Awwissu_Settembru_Ottubru_Novembru_Diċembru".split("_"),monthsShort:"Jan_Fra_Mar_Apr_Mej_Ġun_Lul_Aww_Set_Ott_Nov_Diċ".split("_"),weekdays:"Il-Ħadd_It-Tnejn_It-Tlieta_L-Erbgħa_Il-Ħamis_Il-Ġimgħa_Is-Sibt".split("_"),weekdaysShort:"Ħad_Tne_Tli_Erb_Ħam_Ġim_Sib".split("_"),weekdaysMin:"Ħa_Tn_Tl_Er_Ħa_Ġi_Si".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Illum fil-]LT",nextDay:"[Għada fil-]LT",nextWeek:"dddd [fil-]LT",lastDay:"[Il-bieraħ fil-]LT",lastWeek:"dddd [li għadda] [fil-]LT",sameElse:"L"},relativeTime:{future:"f’ %s",past:"%s ilu",s:"ftit sekondi",ss:"%d sekondi",m:"minuta",mm:"%d minuti",h:"siegħa",hh:"%d siegħat",d:"ġurnata",dd:"%d ġranet",M:"xahar",MM:"%d xhur",y:"sena",yy:"%d sni"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e={1:"၁",2:"၂",3:"၃",4:"၄",5:"၅",6:"၆",7:"၇",8:"၈",9:"၉",0:"၀"},n={"၁":"1","၂":"2","၃":"3","၄":"4","၅":"5","၆":"6","၇":"7","၈":"8","၉":"9","၀":"0"};t.defineLocale("my",{months:"ဇန်နဝါရီ_ဖေဖော်ဝါရီ_မတ်_ဧပြီ_မေ_ဇွန်_ဇူလိုင်_သြဂုတ်_စက်တင်ဘာ_အောက်တိုဘာ_နိုဝင်ဘာ_ဒီဇင်ဘာ".split("_"),monthsShort:"ဇန်_ဖေ_မတ်_ပြီ_မေ_ဇွန်_လိုင်_သြ_စက်_အောက်_နို_ဒီ".split("_"),weekdays:"တနင်္ဂနွေ_တနင်္လာ_အင်္ဂါ_ဗုဒ္ဓဟူး_ကြာသပတေး_သောကြာ_စနေ".split("_"),weekdaysShort:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),weekdaysMin:"နွေ_လာ_ဂါ_ဟူး_ကြာ_သော_နေ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ယနေ.] LT [မှာ]",nextDay:"[မနက်ဖြန်] LT [မှာ]",nextWeek:"dddd LT [မှာ]",lastDay:"[မနေ.က] LT [မှာ]",lastWeek:"[ပြီးခဲ့သော] dddd LT [မှာ]",sameElse:"L"},relativeTime:{future:"လာမည့် %s မှာ",past:"လွန်ခဲ့သော %s က",s:"စက္ကန်.အနည်းငယ်",ss:"%d စက္ကန့်",m:"တစ်မိနစ်",mm:"%d မိနစ်",h:"တစ်နာရီ",hh:"%d နာရီ",d:"တစ်ရက်",dd:"%d ရက်",M:"တစ်လ",MM:"%d လ",y:"တစ်နှစ်",yy:"%d နှစ်"},preparse:function(t){return t.replace(/[၁၂၃၄၅၆၇၈၉၀]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("nb",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"søndag_mandag_tirsdag_onsdag_torsdag_fredag_lørdag".split("_"),weekdaysShort:"sø._ma._ti._on._to._fr._lø.".split("_"),weekdaysMin:"sø_ma_ti_on_to_fr_lø".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] HH:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[i dag kl.] LT",nextDay:"[i morgen kl.] LT",nextWeek:"dddd [kl.] LT",lastDay:"[i går kl.] LT",lastWeek:"[forrige] dddd [kl.] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s siden",s:"noen sekunder",ss:"%d sekunder",m:"ett minutt",mm:"%d minutter",h:"en time",hh:"%d timer",d:"en dag",dd:"%d dager",w:"en uke",ww:"%d uker",M:"en måned",MM:"%d måneder",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e={1:"१",2:"२",3:"३",4:"४",5:"५",6:"६",7:"७",8:"८",9:"९",0:"०"},n={"१":"1","२":"2","३":"3","४":"4","५":"5","६":"6","७":"7","८":"8","९":"9","०":"0"};t.defineLocale("ne",{months:"जनवरी_फेब्रुवरी_मार्च_अप्रिल_मई_जुन_जुलाई_अगष्ट_सेप्टेम्बर_अक्टोबर_नोभेम्बर_डिसेम्बर".split("_"),monthsShort:"जन._फेब्रु._मार्च_अप्रि._मई_जुन_जुलाई._अग._सेप्ट._अक्टो._नोभे._डिसे.".split("_"),monthsParseExact:!0,weekdays:"आइतबार_सोमबार_मङ्गलबार_बुधबार_बिहिबार_शुक्रबार_शनिबार".split("_"),weekdaysShort:"आइत._सोम._मङ्गल._बुध._बिहि._शुक्र._शनि.".split("_"),weekdaysMin:"आ._सो._मं._बु._बि._शु._श.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"Aको h:mm बजे",LTS:"Aको h:mm:ss बजे",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, Aको h:mm बजे",LLLL:"dddd, D MMMM YYYY, Aको h:mm बजे"},preparse:function(t){return t.replace(/[१२३४५६७८९०]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/राति|बिहान|दिउँसो|साँझ/,meridiemHour:function(t,e){return 12===t&&(t=0),"राति"===e?t<4?t:t+12:"बिहान"===e?t:"दिउँसो"===e?t>=10?t:t+12:"साँझ"===e?t+12:void 0},meridiem:function(t,e,n){return t<3?"राति":t<12?"बिहान":t<16?"दिउँसो":t<20?"साँझ":"राति"},calendar:{sameDay:"[आज] LT",nextDay:"[भोलि] LT",nextWeek:"[आउँदो] dddd[,] LT",lastDay:"[हिजो] LT",lastWeek:"[गएको] dddd[,] LT",sameElse:"L"},relativeTime:{future:"%sमा",past:"%s अगाडि",s:"केही क्षण",ss:"%d सेकेण्ड",m:"एक मिनेट",mm:"%d मिनेट",h:"एक घण्टा",hh:"%d घण्टा",d:"एक दिन",dd:"%d दिन",M:"एक महिना",MM:"%d महिना",y:"एक बर्ष",yy:"%d बर्ष"},week:{dow:0,doy:6}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;t.defineLocale("nl",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,i){return t?/-MMM-/.test(i)?n[t.month()]:e[t.month()]:e},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD-MM-YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",w:"één week",ww:"%d weken",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e="jan._feb._mrt._apr._mei_jun._jul._aug._sep._okt._nov._dec.".split("_"),n="jan_feb_mrt_apr_mei_jun_jul_aug_sep_okt_nov_dec".split("_"),i=[/^jan/i,/^feb/i,/^maart|mrt.?$/i,/^apr/i,/^mei$/i,/^jun[i.]?$/i,/^jul[i.]?$/i,/^aug/i,/^sep/i,/^okt/i,/^nov/i,/^dec/i],o=/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december|jan\.?|feb\.?|mrt\.?|apr\.?|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i;t.defineLocale("nl-be",{months:"januari_februari_maart_april_mei_juni_juli_augustus_september_oktober_november_december".split("_"),monthsShort:function(t,i){return t?/-MMM-/.test(i)?n[t.month()]:e[t.month()]:e},monthsRegex:o,monthsShortRegex:o,monthsStrictRegex:/^(januari|februari|maart|april|mei|ju[nl]i|augustus|september|oktober|november|december)/i,monthsShortStrictRegex:/^(jan\.?|feb\.?|mrt\.?|apr\.?|mei|ju[nl]\.?|aug\.?|sep\.?|okt\.?|nov\.?|dec\.?)/i,monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"zondag_maandag_dinsdag_woensdag_donderdag_vrijdag_zaterdag".split("_"),weekdaysShort:"zo._ma._di._wo._do._vr._za.".split("_"),weekdaysMin:"zo_ma_di_wo_do_vr_za".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[vandaag om] LT",nextDay:"[morgen om] LT",nextWeek:"dddd [om] LT",lastDay:"[gisteren om] LT",lastWeek:"[afgelopen] dddd [om] LT",sameElse:"L"},relativeTime:{future:"over %s",past:"%s geleden",s:"een paar seconden",ss:"%d seconden",m:"één minuut",mm:"%d minuten",h:"één uur",hh:"%d uur",d:"één dag",dd:"%d dagen",M:"één maand",MM:"%d maanden",y:"één jaar",yy:"%d jaar"},dayOfMonthOrdinalParse:/\d{1,2}(ste|de)/,ordinal:function(t){return t+(1===t||8===t||t>=20?"ste":"de")},week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("nn",{months:"januar_februar_mars_april_mai_juni_juli_august_september_oktober_november_desember".split("_"),monthsShort:"jan._feb._mars_apr._mai_juni_juli_aug._sep._okt._nov._des.".split("_"),monthsParseExact:!0,weekdays:"sundag_måndag_tysdag_onsdag_torsdag_fredag_laurdag".split("_"),weekdaysShort:"su._må._ty._on._to._fr._lau.".split("_"),weekdaysMin:"su_må_ty_on_to_fr_la".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY [kl.] H:mm",LLLL:"dddd D. MMMM YYYY [kl.] HH:mm"},calendar:{sameDay:"[I dag klokka] LT",nextDay:"[I morgon klokka] LT",nextWeek:"dddd [klokka] LT",lastDay:"[I går klokka] LT",lastWeek:"[Føregåande] dddd [klokka] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"%s sidan",s:"nokre sekund",ss:"%d sekund",m:"eit minutt",mm:"%d minutt",h:"ein time",hh:"%d timar",d:"ein dag",dd:"%d dagar",w:"ei veke",ww:"%d veker",M:"ein månad",MM:"%d månader",y:"eit år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("oc-lnc",{months:{standalone:"genièr_febrièr_març_abril_mai_junh_julhet_agost_setembre_octòbre_novembre_decembre".split("_"),format:"de genièr_de febrièr_de març_d'abril_de mai_de junh_de julhet_d'agost_de setembre_d'octòbre_de novembre_de decembre".split("_"),isFormat:/D[oD]?(\s)+MMMM/},monthsShort:"gen._febr._març_abr._mai_junh_julh._ago._set._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"dimenge_diluns_dimars_dimècres_dijòus_divendres_dissabte".split("_"),weekdaysShort:"dg._dl._dm._dc._dj._dv._ds.".split("_"),weekdaysMin:"dg_dl_dm_dc_dj_dv_ds".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [de] YYYY",ll:"D MMM YYYY",LLL:"D MMMM [de] YYYY [a] H:mm",lll:"D MMM YYYY, H:mm",LLLL:"dddd D MMMM [de] YYYY [a] H:mm",llll:"ddd D MMM YYYY, H:mm"},calendar:{sameDay:"[uèi a] LT",nextDay:"[deman a] LT",nextWeek:"dddd [a] LT",lastDay:"[ièr a] LT",lastWeek:"dddd [passat a] LT",sameElse:"L"},relativeTime:{future:"d'aquí %s",past:"fa %s",s:"unas segondas",ss:"%d segondas",m:"una minuta",mm:"%d minutas",h:"una ora",hh:"%d oras",d:"un jorn",dd:"%d jorns",M:"un mes",MM:"%d meses",y:"un an",yy:"%d ans"},dayOfMonthOrdinalParse:/\d{1,2}(r|n|t|è|a)/,ordinal:function(t,e){var n=1===t?"r":2===t?"n":3===t?"r":4===t?"t":"è";return"w"!==e&&"W"!==e||(n="a"),t+n},week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e={1:"੧",2:"੨",3:"੩",4:"੪",5:"੫",6:"੬",7:"੭",8:"੮",9:"੯",0:"੦"},n={"੧":"1","੨":"2","੩":"3","੪":"4","੫":"5","੬":"6","੭":"7","੮":"8","੯":"9","੦":"0"};t.defineLocale("pa-in",{months:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),monthsShort:"ਜਨਵਰੀ_ਫ਼ਰਵਰੀ_ਮਾਰਚ_ਅਪ੍ਰੈਲ_ਮਈ_ਜੂਨ_ਜੁਲਾਈ_ਅਗਸਤ_ਸਤੰਬਰ_ਅਕਤੂਬਰ_ਨਵੰਬਰ_ਦਸੰਬਰ".split("_"),weekdays:"ਐਤਵਾਰ_ਸੋਮਵਾਰ_ਮੰਗਲਵਾਰ_ਬੁਧਵਾਰ_ਵੀਰਵਾਰ_ਸ਼ੁੱਕਰਵਾਰ_ਸ਼ਨੀਚਰਵਾਰ".split("_"),weekdaysShort:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),weekdaysMin:"ਐਤ_ਸੋਮ_ਮੰਗਲ_ਬੁਧ_ਵੀਰ_ਸ਼ੁਕਰ_ਸ਼ਨੀ".split("_"),longDateFormat:{LT:"A h:mm ਵਜੇ",LTS:"A h:mm:ss ਵਜੇ",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm ਵਜੇ",LLLL:"dddd, D MMMM YYYY, A h:mm ਵਜੇ"},calendar:{sameDay:"[ਅਜ] LT",nextDay:"[ਕਲ] LT",nextWeek:"[ਅਗਲਾ] dddd, LT",lastDay:"[ਕਲ] LT",lastWeek:"[ਪਿਛਲੇ] dddd, LT",sameElse:"L"},relativeTime:{future:"%s ਵਿੱਚ",past:"%s ਪਿਛਲੇ",s:"ਕੁਝ ਸਕਿੰਟ",ss:"%d ਸਕਿੰਟ",m:"ਇਕ ਮਿੰਟ",mm:"%d ਮਿੰਟ",h:"ਇੱਕ ਘੰਟਾ",hh:"%d ਘੰਟੇ",d:"ਇੱਕ ਦਿਨ",dd:"%d ਦਿਨ",M:"ਇੱਕ ਮਹੀਨਾ",MM:"%d ਮਹੀਨੇ",y:"ਇੱਕ ਸਾਲ",yy:"%d ਸਾਲ"},preparse:function(t){return t.replace(/[੧੨੩੪੫੬੭੮੯੦]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/ਰਾਤ|ਸਵੇਰ|ਦੁਪਹਿਰ|ਸ਼ਾਮ/,meridiemHour:function(t,e){return 12===t&&(t=0),"ਰਾਤ"===e?t<4?t:t+12:"ਸਵੇਰ"===e?t:"ਦੁਪਹਿਰ"===e?t>=10?t:t+12:"ਸ਼ਾਮ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"ਰਾਤ":t<10?"ਸਵੇਰ":t<17?"ਦੁਪਹਿਰ":t<20?"ਸ਼ਾਮ":"ਰਾਤ"},week:{dow:0,doy:6}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e="styczeń_luty_marzec_kwiecień_maj_czerwiec_lipiec_sierpień_wrzesień_październik_listopad_grudzień".split("_"),n="stycznia_lutego_marca_kwietnia_maja_czerwca_lipca_sierpnia_września_października_listopada_grudnia".split("_"),i=[/^sty/i,/^lut/i,/^mar/i,/^kwi/i,/^maj/i,/^cze/i,/^lip/i,/^sie/i,/^wrz/i,/^paź/i,/^lis/i,/^gru/i];function o(t){return t%10<5&&t%10>1&&~~(t/10)%10!=1}function r(t,e,n){var i=t+" ";switch(n){case"ss":return i+(o(t)?"sekundy":"sekund");case"m":return e?"minuta":"minutę";case"mm":return i+(o(t)?"minuty":"minut");case"h":return e?"godzina":"godzinę";case"hh":return i+(o(t)?"godziny":"godzin");case"ww":return i+(o(t)?"tygodnie":"tygodni");case"MM":return i+(o(t)?"miesiące":"miesięcy");case"yy":return i+(o(t)?"lata":"lat")}}t.defineLocale("pl",{months:function(t,i){return t?/D MMMM/.test(i)?n[t.month()]:e[t.month()]:e},monthsShort:"sty_lut_mar_kwi_maj_cze_lip_sie_wrz_paź_lis_gru".split("_"),monthsParse:i,longMonthsParse:i,shortMonthsParse:i,weekdays:"niedziela_poniedziałek_wtorek_środa_czwartek_piątek_sobota".split("_"),weekdaysShort:"ndz_pon_wt_śr_czw_pt_sob".split("_"),weekdaysMin:"Nd_Pn_Wt_Śr_Cz_Pt_So".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Dziś o] LT",nextDay:"[Jutro o] LT",nextWeek:function(){switch(this.day()){case 0:return"[W niedzielę o] LT";case 2:return"[We wtorek o] LT";case 3:return"[W środę o] LT";case 6:return"[W sobotę o] LT";default:return"[W] dddd [o] LT"}},lastDay:"[Wczoraj o] LT",lastWeek:function(){switch(this.day()){case 0:return"[W zeszłą niedzielę o] LT";case 3:return"[W zeszłą środę o] LT";case 6:return"[W zeszłą sobotę o] LT";default:return"[W zeszły] dddd [o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"%s temu",s:"kilka sekund",ss:r,m:r,mm:r,h:r,hh:r,d:"1 dzień",dd:"%d dni",w:"tydzień",ww:r,M:"miesiąc",MM:r,y:"rok",yy:r},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("pt",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"Domingo_Segunda-feira_Terça-feira_Quarta-feira_Quinta-feira_Sexta-feira_Sábado".split("_"),weekdaysShort:"Dom_Seg_Ter_Qua_Qui_Sex_Sáb".split("_"),weekdaysMin:"Do_2ª_3ª_4ª_5ª_6ª_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",w:"uma semana",ww:"%d semanas",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("pt-br",{months:"janeiro_fevereiro_março_abril_maio_junho_julho_agosto_setembro_outubro_novembro_dezembro".split("_"),monthsShort:"jan_fev_mar_abr_mai_jun_jul_ago_set_out_nov_dez".split("_"),weekdays:"domingo_segunda-feira_terça-feira_quarta-feira_quinta-feira_sexta-feira_sábado".split("_"),weekdaysShort:"dom_seg_ter_qua_qui_sex_sáb".split("_"),weekdaysMin:"do_2ª_3ª_4ª_5ª_6ª_sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D [de] MMMM [de] YYYY",LLL:"D [de] MMMM [de] YYYY [às] HH:mm",LLLL:"dddd, D [de] MMMM [de] YYYY [às] HH:mm"},calendar:{sameDay:"[Hoje às] LT",nextDay:"[Amanhã às] LT",nextWeek:"dddd [às] LT",lastDay:"[Ontem às] LT",lastWeek:function(){return 0===this.day()||6===this.day()?"[Último] dddd [às] LT":"[Última] dddd [às] LT"},sameElse:"L"},relativeTime:{future:"em %s",past:"há %s",s:"poucos segundos",ss:"%d segundos",m:"um minuto",mm:"%d minutos",h:"uma hora",hh:"%d horas",d:"um dia",dd:"%d dias",M:"um mês",MM:"%d meses",y:"um ano",yy:"%d anos"},dayOfMonthOrdinalParse:/\d{1,2}º/,ordinal:"%dº",invalidDate:"Data inválida"})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration function e(t,e,n){var i=" ";return(t%100>=20||t>=100&&t%100==0)&&(i=" de "),t+i+{ss:"secunde",mm:"minute",hh:"ore",dd:"zile",ww:"săptămâni",MM:"luni",yy:"ani"}[n]}t.defineLocale("ro",{months:"ianuarie_februarie_martie_aprilie_mai_iunie_iulie_august_septembrie_octombrie_noiembrie_decembrie".split("_"),monthsShort:"ian._feb._mart._apr._mai_iun._iul._aug._sept._oct._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"duminică_luni_marți_miercuri_joi_vineri_sâmbătă".split("_"),weekdaysShort:"Dum_Lun_Mar_Mie_Joi_Vin_Sâm".split("_"),weekdaysMin:"Du_Lu_Ma_Mi_Jo_Vi_Sâ".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY H:mm",LLLL:"dddd, D MMMM YYYY H:mm"},calendar:{sameDay:"[azi la] LT",nextDay:"[mâine la] LT",nextWeek:"dddd [la] LT",lastDay:"[ieri la] LT",lastWeek:"[fosta] dddd [la] LT",sameElse:"L"},relativeTime:{future:"peste %s",past:"%s în urmă",s:"câteva secunde",ss:e,m:"un minut",mm:e,h:"o oră",hh:e,d:"o zi",dd:e,w:"o săptămână",ww:e,M:"o lună",MM:e,y:"un an",yy:e},week:{dow:1,doy:7}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration function e(t,e,n){var i,o;return"m"===n?e?"минута":"минуту":t+" "+(i=+t,o={ss:e?"секунда_секунды_секунд":"секунду_секунды_секунд",mm:e?"минута_минуты_минут":"минуту_минуты_минут",hh:"час_часа_часов",dd:"день_дня_дней",ww:"неделя_недели_недель",MM:"месяц_месяца_месяцев",yy:"год_года_лет"}[n].split("_"),i%10==1&&i%100!=11?o[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?o[1]:o[2])}var n=[/^янв/i,/^фев/i,/^мар/i,/^апр/i,/^ма[йя]/i,/^июн/i,/^июл/i,/^авг/i,/^сен/i,/^окт/i,/^ноя/i,/^дек/i];t.defineLocale("ru",{months:{format:"января_февраля_марта_апреля_мая_июня_июля_августа_сентября_октября_ноября_декабря".split("_"),standalone:"январь_февраль_март_апрель_май_июнь_июль_август_сентябрь_октябрь_ноябрь_декабрь".split("_")},monthsShort:{format:"янв._февр._мар._апр._мая_июня_июля_авг._сент._окт._нояб._дек.".split("_"),standalone:"янв._февр._март_апр._май_июнь_июль_авг._сент._окт._нояб._дек.".split("_")},weekdays:{standalone:"воскресенье_понедельник_вторник_среда_четверг_пятница_суббота".split("_"),format:"воскресенье_понедельник_вторник_среду_четверг_пятницу_субботу".split("_"),isFormat:/\[ ?[Вв] ?(?:прошлую|следующую|эту)? ?] ?dddd/},weekdaysShort:"вс_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"вс_пн_вт_ср_чт_пт_сб".split("_"),monthsParse:n,longMonthsParse:n,shortMonthsParse:n,monthsRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsShortRegex:/^(январ[ья]|янв\.?|феврал[ья]|февр?\.?|марта?|мар\.?|апрел[ья]|апр\.?|ма[йя]|июн[ья]|июн\.?|июл[ья]|июл\.?|августа?|авг\.?|сентябр[ья]|сент?\.?|октябр[ья]|окт\.?|ноябр[ья]|нояб?\.?|декабр[ья]|дек\.?)/i,monthsStrictRegex:/^(январ[яь]|феврал[яь]|марта?|апрел[яь]|ма[яй]|июн[яь]|июл[яь]|августа?|сентябр[яь]|октябр[яь]|ноябр[яь]|декабр[яь])/i,monthsShortStrictRegex:/^(янв\.|февр?\.|мар[т.]|апр\.|ма[яй]|июн[ья.]|июл[ья.]|авг\.|сент?\.|окт\.|нояб?\.|дек\.)/i,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY г.",LLL:"D MMMM YYYY г., H:mm",LLLL:"dddd, D MMMM YYYY г., H:mm"},calendar:{sameDay:"[Сегодня, в] LT",nextDay:"[Завтра, в] LT",lastDay:"[Вчера, в] LT",nextWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В следующее] dddd, [в] LT";case 1:case 2:case 4:return"[В следующий] dddd, [в] LT";case 3:case 5:case 6:return"[В следующую] dddd, [в] LT"}},lastWeek:function(t){if(t.week()===this.week())return 2===this.day()?"[Во] dddd, [в] LT":"[В] dddd, [в] LT";switch(this.day()){case 0:return"[В прошлое] dddd, [в] LT";case 1:case 2:case 4:return"[В прошлый] dddd, [в] LT";case 3:case 5:case 6:return"[В прошлую] dddd, [в] LT"}},sameElse:"L"},relativeTime:{future:"через %s",past:"%s назад",s:"несколько секунд",ss:e,m:e,mm:e,h:"час",hh:e,d:"день",dd:e,w:"неделя",ww:e,M:"месяц",MM:e,y:"год",yy:e},meridiemParse:/ночи|утра|дня|вечера/i,isPM:function(t){return/^(дня|вечера)$/.test(t)},meridiem:function(t,e,n){return t<4?"ночи":t<12?"утра":t<17?"дня":"вечера"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го|я)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":return t+"-й";case"D":return t+"-го";case"w":case"W":return t+"-я";default:return t}},week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e=["جنوري","فيبروري","مارچ","اپريل","مئي","جون","جولاءِ","آگسٽ","سيپٽمبر","آڪٽوبر","نومبر","ڊسمبر"],n=["آچر","سومر","اڱارو","اربع","خميس","جمع","ڇنڇر"];t.defineLocale("sd",{months:e,monthsShort:e,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(t){return"شام"===t},meridiem:function(t,e,n){return t<12?"صبح":"شام"},calendar:{sameDay:"[اڄ] LT",nextDay:"[سڀاڻي] LT",nextWeek:"dddd [اڳين هفتي تي] LT",lastDay:"[ڪالهه] LT",lastWeek:"[گزريل هفتي] dddd [تي] LT",sameElse:"L"},relativeTime:{future:"%s پوء",past:"%s اڳ",s:"چند سيڪنڊ",ss:"%d سيڪنڊ",m:"هڪ منٽ",mm:"%d منٽ",h:"هڪ ڪلاڪ",hh:"%d ڪلاڪ",d:"هڪ ڏينهن",dd:"%d ڏينهن",M:"هڪ مهينو",MM:"%d مهينا",y:"هڪ سال",yy:"%d سال"},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("se",{months:"ođđajagemánnu_guovvamánnu_njukčamánnu_cuoŋománnu_miessemánnu_geassemánnu_suoidnemánnu_borgemánnu_čakčamánnu_golggotmánnu_skábmamánnu_juovlamánnu".split("_"),monthsShort:"ođđj_guov_njuk_cuo_mies_geas_suoi_borg_čakč_golg_skáb_juov".split("_"),weekdays:"sotnabeaivi_vuossárga_maŋŋebárga_gaskavahkku_duorastat_bearjadat_lávvardat".split("_"),weekdaysShort:"sotn_vuos_maŋ_gask_duor_bear_láv".split("_"),weekdaysMin:"s_v_m_g_d_b_L".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"MMMM D. [b.] YYYY",LLL:"MMMM D. [b.] YYYY [ti.] HH:mm",LLLL:"dddd, MMMM D. [b.] YYYY [ti.] HH:mm"},calendar:{sameDay:"[otne ti] LT",nextDay:"[ihttin ti] LT",nextWeek:"dddd [ti] LT",lastDay:"[ikte ti] LT",lastWeek:"[ovddit] dddd [ti] LT",sameElse:"L"},relativeTime:{future:"%s geažes",past:"maŋit %s",s:"moadde sekunddat",ss:"%d sekunddat",m:"okta minuhta",mm:"%d minuhtat",h:"okta diimmu",hh:"%d diimmut",d:"okta beaivi",dd:"%d beaivvit",M:"okta mánnu",MM:"%d mánut",y:"okta jahki",yy:"%d jagit"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("si",{months:"ජනවාරි_පෙබරවාරි_මාර්තු_අප්‍රේල්_මැයි_ජූනි_ජූලි_අගෝස්තු_සැප්තැම්බර්_ඔක්තෝබර්_නොවැම්බර්_දෙසැම්බර්".split("_"),monthsShort:"ජන_පෙබ_මාර්_අප්_මැයි_ජූනි_ජූලි_අගෝ_සැප්_ඔක්_නොවැ_දෙසැ".split("_"),weekdays:"ඉරිදා_සඳුදා_අඟහරුවාදා_බදාදා_බ්‍රහස්පතින්දා_සිකුරාදා_සෙනසුරාදා".split("_"),weekdaysShort:"ඉරි_සඳු_අඟ_බදා_බ්‍රහ_සිකු_සෙන".split("_"),weekdaysMin:"ඉ_ස_අ_බ_බ්‍ර_සි_සෙ".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"a h:mm",LTS:"a h:mm:ss",L:"YYYY/MM/DD",LL:"YYYY MMMM D",LLL:"YYYY MMMM D, a h:mm",LLLL:"YYYY MMMM D [වැනි] dddd, a h:mm:ss"},calendar:{sameDay:"[අද] LT[ට]",nextDay:"[හෙට] LT[ට]",nextWeek:"dddd LT[ට]",lastDay:"[ඊයේ] LT[ට]",lastWeek:"[පසුගිය] dddd LT[ට]",sameElse:"L"},relativeTime:{future:"%sකින්",past:"%sකට පෙර",s:"තත්පර කිහිපය",ss:"තත්පර %d",m:"මිනිත්තුව",mm:"මිනිත්තු %d",h:"පැය",hh:"පැය %d",d:"දිනය",dd:"දින %d",M:"මාසය",MM:"මාස %d",y:"වසර",yy:"වසර %d"},dayOfMonthOrdinalParse:/\d{1,2} වැනි/,ordinal:function(t){return t+" වැනි"},meridiemParse:/පෙර වරු|පස් වරු|පෙ.ව|ප.ව./,isPM:function(t){return"ප.ව."===t||"පස් වරු"===t},meridiem:function(t,e,n){return t>11?n?"ප.ව.":"පස් වරු":n?"පෙ.ව.":"පෙර වරු"}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e="január_február_marec_apríl_máj_jún_júl_august_september_október_november_december".split("_"),n="jan_feb_mar_apr_máj_jún_júl_aug_sep_okt_nov_dec".split("_");function i(t){return t>1&&t<5}function o(t,e,n,o){var r=t+" ";switch(n){case"s":return e||o?"pár sekúnd":"pár sekundami";case"ss":return e||o?r+(i(t)?"sekundy":"sekúnd"):r+"sekundami";case"m":return e?"minúta":o?"minútu":"minútou";case"mm":return e||o?r+(i(t)?"minúty":"minút"):r+"minútami";case"h":return e?"hodina":o?"hodinu":"hodinou";case"hh":return e||o?r+(i(t)?"hodiny":"hodín"):r+"hodinami";case"d":return e||o?"deň":"dňom";case"dd":return e||o?r+(i(t)?"dni":"dní"):r+"dňami";case"M":return e||o?"mesiac":"mesiacom";case"MM":return e||o?r+(i(t)?"mesiace":"mesiacov"):r+"mesiacmi";case"y":return e||o?"rok":"rokom";case"yy":return e||o?r+(i(t)?"roky":"rokov"):r+"rokmi"}}t.defineLocale("sk",{months:e,monthsShort:n,weekdays:"nedeľa_pondelok_utorok_streda_štvrtok_piatok_sobota".split("_"),weekdaysShort:"ne_po_ut_st_št_pi_so".split("_"),weekdaysMin:"ne_po_ut_st_št_pi_so".split("_"),longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD.MM.YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd D. MMMM YYYY H:mm"},calendar:{sameDay:"[dnes o] LT",nextDay:"[zajtra o] LT",nextWeek:function(){switch(this.day()){case 0:return"[v nedeľu o] LT";case 1:case 2:return"[v] dddd [o] LT";case 3:return"[v stredu o] LT";case 4:return"[vo štvrtok o] LT";case 5:return"[v piatok o] LT";case 6:return"[v sobotu o] LT"}},lastDay:"[včera o] LT",lastWeek:function(){switch(this.day()){case 0:return"[minulú nedeľu o] LT";case 1:case 2:return"[minulý] dddd [o] LT";case 3:return"[minulú stredu o] LT";case 4:case 5:return"[minulý] dddd [o] LT";case 6:return"[minulú sobotu o] LT"}},sameElse:"L"},relativeTime:{future:"za %s",past:"pred %s",s:o,ss:o,m:o,mm:o,h:o,hh:o,d:o,dd:o,M:o,MM:o,y:o,yy:o},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration function e(t,e,n,i){var o=t+" ";switch(n){case"s":return e||i?"nekaj sekund":"nekaj sekundami";case"ss":return o+=1===t?e?"sekundo":"sekundi":2===t?e||i?"sekundi":"sekundah":t<5?e||i?"sekunde":"sekundah":"sekund";case"m":return e?"ena minuta":"eno minuto";case"mm":return o+=1===t?e?"minuta":"minuto":2===t?e||i?"minuti":"minutama":t<5?e||i?"minute":"minutami":e||i?"minut":"minutami";case"h":return e?"ena ura":"eno uro";case"hh":return o+=1===t?e?"ura":"uro":2===t?e||i?"uri":"urama":t<5?e||i?"ure":"urami":e||i?"ur":"urami";case"d":return e||i?"en dan":"enim dnem";case"dd":return o+=1===t?e||i?"dan":"dnem":2===t?e||i?"dni":"dnevoma":e||i?"dni":"dnevi";case"M":return e||i?"en mesec":"enim mesecem";case"MM":return o+=1===t?e||i?"mesec":"mesecem":2===t?e||i?"meseca":"mesecema":t<5?e||i?"mesece":"meseci":e||i?"mesecev":"meseci";case"y":return e||i?"eno leto":"enim letom";case"yy":return o+=1===t?e||i?"leto":"letom":2===t?e||i?"leti":"letoma":t<5?e||i?"leta":"leti":e||i?"let":"leti"}}t.defineLocale("sl",{months:"januar_februar_marec_april_maj_junij_julij_avgust_september_oktober_november_december".split("_"),monthsShort:"jan._feb._mar._apr._maj._jun._jul._avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljek_torek_sreda_četrtek_petek_sobota".split("_"),weekdaysShort:"ned._pon._tor._sre._čet._pet._sob.".split("_"),weekdaysMin:"ne_po_to_sr_če_pe_so".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD. MM. YYYY",LL:"D. MMMM YYYY",LLL:"D. MMMM YYYY H:mm",LLLL:"dddd, D. MMMM YYYY H:mm"},calendar:{sameDay:"[danes ob] LT",nextDay:"[jutri ob] LT",nextWeek:function(){switch(this.day()){case 0:return"[v] [nedeljo] [ob] LT";case 3:return"[v] [sredo] [ob] LT";case 6:return"[v] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[v] dddd [ob] LT"}},lastDay:"[včeraj ob] LT",lastWeek:function(){switch(this.day()){case 0:return"[prejšnjo] [nedeljo] [ob] LT";case 3:return"[prejšnjo] [sredo] [ob] LT";case 6:return"[prejšnjo] [soboto] [ob] LT";case 1:case 2:case 4:case 5:return"[prejšnji] dddd [ob] LT"}},sameElse:"L"},relativeTime:{future:"čez %s",past:"pred %s",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("sq",{months:"Janar_Shkurt_Mars_Prill_Maj_Qershor_Korrik_Gusht_Shtator_Tetor_Nëntor_Dhjetor".split("_"),monthsShort:"Jan_Shk_Mar_Pri_Maj_Qer_Kor_Gus_Sht_Tet_Nën_Dhj".split("_"),weekdays:"E Diel_E Hënë_E Martë_E Mërkurë_E Enjte_E Premte_E Shtunë".split("_"),weekdaysShort:"Die_Hën_Mar_Mër_Enj_Pre_Sht".split("_"),weekdaysMin:"D_H_Ma_Më_E_P_Sh".split("_"),weekdaysParseExact:!0,meridiemParse:/PD|MD/,isPM:function(t){return"M"===t.charAt(0)},meridiem:function(t,e,n){return t<12?"PD":"MD"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Sot në] LT",nextDay:"[Nesër në] LT",nextWeek:"dddd [në] LT",lastDay:"[Dje në] LT",lastWeek:"dddd [e kaluar në] LT",sameElse:"L"},relativeTime:{future:"në %s",past:"%s më parë",s:"disa sekonda",ss:"%d sekonda",m:"një minutë",mm:"%d minuta",h:"një orë",hh:"%d orë",d:"një ditë",dd:"%d ditë",M:"një muaj",MM:"%d muaj",y:"një vit",yy:"%d vite"},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e={words:{ss:["sekunda","sekunde","sekundi"],m:["jedan minut","jednog minuta"],mm:["minut","minuta","minuta"],h:["jedan sat","jednog sata"],hh:["sat","sata","sati"],d:["jedan dan","jednog dana"],dd:["dan","dana","dana"],M:["jedan mesec","jednog meseca"],MM:["mesec","meseca","meseci"],y:["jednu godinu","jedne godine"],yy:["godinu","godine","godina"]},correctGrammaticalCase:function(t,e){return t%10>=1&&t%10<=4&&(t%100<10||t%100>=20)?t%10==1?e[0]:e[1]:e[2]},translate:function(t,n,i,o){var r,s=e.words[i];return 1===i.length?"y"===i&&n?"jedna godina":o||n?s[0]:s[1]:(r=e.correctGrammaticalCase(t,s),"yy"===i&&n&&"godinu"===r?t+" godina":t+" "+r)}};t.defineLocale("sr",{months:"januar_februar_mart_april_maj_jun_jul_avgust_septembar_oktobar_novembar_decembar".split("_"),monthsShort:"jan._feb._mar._apr._maj_jun_jul_avg._sep._okt._nov._dec.".split("_"),monthsParseExact:!0,weekdays:"nedelja_ponedeljak_utorak_sreda_četvrtak_petak_subota".split("_"),weekdaysShort:"ned._pon._uto._sre._čet._pet._sub.".split("_"),weekdaysMin:"ne_po_ut_sr_če_pe_su".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[danas u] LT",nextDay:"[sutra u] LT",nextWeek:function(){switch(this.day()){case 0:return"[u] [nedelju] [u] LT";case 3:return"[u] [sredu] [u] LT";case 6:return"[u] [subotu] [u] LT";case 1:case 2:case 4:case 5:return"[u] dddd [u] LT"}},lastDay:"[juče u] LT",lastWeek:function(){return["[prošle] [nedelje] [u] LT","[prošlog] [ponedeljka] [u] LT","[prošlog] [utorka] [u] LT","[prošle] [srede] [u] LT","[prošlog] [četvrtka] [u] LT","[prošlog] [petka] [u] LT","[prošle] [subote] [u] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"za %s",past:"pre %s",s:"nekoliko sekundi",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:e.translate,dd:e.translate,M:e.translate,MM:e.translate,y:e.translate,yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e={words:{ss:["секунда","секунде","секунди"],m:["један минут","једног минута"],mm:["минут","минута","минута"],h:["један сат","једног сата"],hh:["сат","сата","сати"],d:["један дан","једног дана"],dd:["дан","дана","дана"],M:["један месец","једног месеца"],MM:["месец","месеца","месеци"],y:["једну годину","једне године"],yy:["годину","године","година"]},correctGrammaticalCase:function(t,e){return t%10>=1&&t%10<=4&&(t%100<10||t%100>=20)?t%10==1?e[0]:e[1]:e[2]},translate:function(t,n,i,o){var r,s=e.words[i];return 1===i.length?"y"===i&&n?"једна година":o||n?s[0]:s[1]:(r=e.correctGrammaticalCase(t,s),"yy"===i&&n&&"годину"===r?t+" година":t+" "+r)}};t.defineLocale("sr-cyrl",{months:"јануар_фебруар_март_април_мај_јун_јул_август_септембар_октобар_новембар_децембар".split("_"),monthsShort:"јан._феб._мар._апр._мај_јун_јул_авг._сеп._окт._нов._дец.".split("_"),monthsParseExact:!0,weekdays:"недеља_понедељак_уторак_среда_четвртак_петак_субота".split("_"),weekdaysShort:"нед._пон._уто._сре._чет._пет._суб.".split("_"),weekdaysMin:"не_по_ут_ср_че_пе_су".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"D. M. YYYY.",LL:"D. MMMM YYYY.",LLL:"D. MMMM YYYY. H:mm",LLLL:"dddd, D. MMMM YYYY. H:mm"},calendar:{sameDay:"[данас у] LT",nextDay:"[сутра у] LT",nextWeek:function(){switch(this.day()){case 0:return"[у] [недељу] [у] LT";case 3:return"[у] [среду] [у] LT";case 6:return"[у] [суботу] [у] LT";case 1:case 2:case 4:case 5:return"[у] dddd [у] LT"}},lastDay:"[јуче у] LT",lastWeek:function(){return["[прошле] [недеље] [у] LT","[прошлог] [понедељка] [у] LT","[прошлог] [уторка] [у] LT","[прошле] [среде] [у] LT","[прошлог] [четвртка] [у] LT","[прошлог] [петка] [у] LT","[прошле] [суботе] [у] LT"][this.day()]},sameElse:"L"},relativeTime:{future:"за %s",past:"пре %s",s:"неколико секунди",ss:e.translate,m:e.translate,mm:e.translate,h:e.translate,hh:e.translate,d:e.translate,dd:e.translate,M:e.translate,MM:e.translate,y:e.translate,yy:e.translate},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:7}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("ss",{months:"Bhimbidvwane_Indlovana_Indlov'lenkhulu_Mabasa_Inkhwekhweti_Inhlaba_Kholwane_Ingci_Inyoni_Imphala_Lweti_Ingongoni".split("_"),monthsShort:"Bhi_Ina_Inu_Mab_Ink_Inh_Kho_Igc_Iny_Imp_Lwe_Igo".split("_"),weekdays:"Lisontfo_Umsombuluko_Lesibili_Lesitsatfu_Lesine_Lesihlanu_Umgcibelo".split("_"),weekdaysShort:"Lis_Umb_Lsb_Les_Lsi_Lsh_Umg".split("_"),weekdaysMin:"Li_Us_Lb_Lt_Ls_Lh_Ug".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Namuhla nga] LT",nextDay:"[Kusasa nga] LT",nextWeek:"dddd [nga] LT",lastDay:"[Itolo nga] LT",lastWeek:"dddd [leliphelile] [nga] LT",sameElse:"L"},relativeTime:{future:"nga %s",past:"wenteka nga %s",s:"emizuzwana lomcane",ss:"%d mzuzwana",m:"umzuzu",mm:"%d emizuzu",h:"lihora",hh:"%d emahora",d:"lilanga",dd:"%d emalanga",M:"inyanga",MM:"%d tinyanga",y:"umnyaka",yy:"%d iminyaka"},meridiemParse:/ekuseni|emini|entsambama|ebusuku/,meridiem:function(t,e,n){return t<11?"ekuseni":t<15?"emini":t<19?"entsambama":"ebusuku"},meridiemHour:function(t,e){return 12===t&&(t=0),"ekuseni"===e?t:"emini"===e?t>=11?t:t+12:"entsambama"===e||"ebusuku"===e?0===t?0:t+12:void 0},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:"%d",week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("sv",{months:"januari_februari_mars_april_maj_juni_juli_augusti_september_oktober_november_december".split("_"),monthsShort:"jan_feb_mar_apr_maj_jun_jul_aug_sep_okt_nov_dec".split("_"),weekdays:"söndag_måndag_tisdag_onsdag_torsdag_fredag_lördag".split("_"),weekdaysShort:"sön_mån_tis_ons_tor_fre_lör".split("_"),weekdaysMin:"sö_må_ti_on_to_fr_lö".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"D MMMM YYYY",LLL:"D MMMM YYYY [kl.] HH:mm",LLLL:"dddd D MMMM YYYY [kl.] HH:mm",lll:"D MMM YYYY HH:mm",llll:"ddd D MMM YYYY HH:mm"},calendar:{sameDay:"[Idag] LT",nextDay:"[Imorgon] LT",lastDay:"[Igår] LT",nextWeek:"[På] dddd LT",lastWeek:"[I] dddd[s] LT",sameElse:"L"},relativeTime:{future:"om %s",past:"för %s sedan",s:"några sekunder",ss:"%d sekunder",m:"en minut",mm:"%d minuter",h:"en timme",hh:"%d timmar",d:"en dag",dd:"%d dagar",M:"en månad",MM:"%d månader",y:"ett år",yy:"%d år"},dayOfMonthOrdinalParse:/\d{1,2}(\:e|\:a)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?":e":1===e||2===e?":a":":e")},week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("sw",{months:"Januari_Februari_Machi_Aprili_Mei_Juni_Julai_Agosti_Septemba_Oktoba_Novemba_Desemba".split("_"),monthsShort:"Jan_Feb_Mac_Apr_Mei_Jun_Jul_Ago_Sep_Okt_Nov_Des".split("_"),weekdays:"Jumapili_Jumatatu_Jumanne_Jumatano_Alhamisi_Ijumaa_Jumamosi".split("_"),weekdaysShort:"Jpl_Jtat_Jnne_Jtan_Alh_Ijm_Jmos".split("_"),weekdaysMin:"J2_J3_J4_J5_Al_Ij_J1".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"hh:mm A",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[leo saa] LT",nextDay:"[kesho saa] LT",nextWeek:"[wiki ijayo] dddd [saat] LT",lastDay:"[jana] LT",lastWeek:"[wiki iliyopita] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s baadaye",past:"tokea %s",s:"hivi punde",ss:"sekunde %d",m:"dakika moja",mm:"dakika %d",h:"saa limoja",hh:"masaa %d",d:"siku moja",dd:"siku %d",M:"mwezi mmoja",MM:"miezi %d",y:"mwaka mmoja",yy:"miaka %d"},week:{dow:1,doy:7}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e={1:"௧",2:"௨",3:"௩",4:"௪",5:"௫",6:"௬",7:"௭",8:"௮",9:"௯",0:"௦"},n={"௧":"1","௨":"2","௩":"3","௪":"4","௫":"5","௬":"6","௭":"7","௮":"8","௯":"9","௦":"0"};t.defineLocale("ta",{months:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),monthsShort:"ஜனவரி_பிப்ரவரி_மார்ச்_ஏப்ரல்_மே_ஜூன்_ஜூலை_ஆகஸ்ட்_செப்டெம்பர்_அக்டோபர்_நவம்பர்_டிசம்பர்".split("_"),weekdays:"ஞாயிற்றுக்கிழமை_திங்கட்கிழமை_செவ்வாய்கிழமை_புதன்கிழமை_வியாழக்கிழமை_வெள்ளிக்கிழமை_சனிக்கிழமை".split("_"),weekdaysShort:"ஞாயிறு_திங்கள்_செவ்வாய்_புதன்_வியாழன்_வெள்ளி_சனி".split("_"),weekdaysMin:"ஞா_தி_செ_பு_வி_வெ_ச".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, HH:mm",LLLL:"dddd, D MMMM YYYY, HH:mm"},calendar:{sameDay:"[இன்று] LT",nextDay:"[நாளை] LT",nextWeek:"dddd, LT",lastDay:"[நேற்று] LT",lastWeek:"[கடந்த வாரம்] dddd, LT",sameElse:"L"},relativeTime:{future:"%s இல்",past:"%s முன்",s:"ஒரு சில விநாடிகள்",ss:"%d விநாடிகள்",m:"ஒரு நிமிடம்",mm:"%d நிமிடங்கள்",h:"ஒரு மணி நேரம்",hh:"%d மணி நேரம்",d:"ஒரு நாள்",dd:"%d நாட்கள்",M:"ஒரு மாதம்",MM:"%d மாதங்கள்",y:"ஒரு வருடம்",yy:"%d ஆண்டுகள்"},dayOfMonthOrdinalParse:/\d{1,2}வது/,ordinal:function(t){return t+"வது"},preparse:function(t){return t.replace(/[௧௨௩௪௫௬௭௮௯௦]/g,(function(t){return n[t]}))},postformat:function(t){return t.replace(/\d/g,(function(t){return e[t]}))},meridiemParse:/யாமம்|வைகறை|காலை|நண்பகல்|எற்பாடு|மாலை/,meridiem:function(t,e,n){return t<2?" யாமம்":t<6?" வைகறை":t<10?" காலை":t<14?" நண்பகல்":t<18?" எற்பாடு":t<22?" மாலை":" யாமம்"},meridiemHour:function(t,e){return 12===t&&(t=0),"யாமம்"===e?t<2?t:t+12:"வைகறை"===e||"காலை"===e||"நண்பகல்"===e&&t>=10?t:t+12},week:{dow:0,doy:6}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("te",{months:"జనవరి_ఫిబ్రవరి_మార్చి_ఏప్రిల్_మే_జూన్_జులై_ఆగస్టు_సెప్టెంబర్_అక్టోబర్_నవంబర్_డిసెంబర్".split("_"),monthsShort:"జన._ఫిబ్ర._మార్చి_ఏప్రి._మే_జూన్_జులై_ఆగ._సెప్._అక్టో._నవ._డిసె.".split("_"),monthsParseExact:!0,weekdays:"ఆదివారం_సోమవారం_మంగళవారం_బుధవారం_గురువారం_శుక్రవారం_శనివారం".split("_"),weekdaysShort:"ఆది_సోమ_మంగళ_బుధ_గురు_శుక్ర_శని".split("_"),weekdaysMin:"ఆ_సో_మం_బు_గు_శు_శ".split("_"),longDateFormat:{LT:"A h:mm",LTS:"A h:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY, A h:mm",LLLL:"dddd, D MMMM YYYY, A h:mm"},calendar:{sameDay:"[నేడు] LT",nextDay:"[రేపు] LT",nextWeek:"dddd, LT",lastDay:"[నిన్న] LT",lastWeek:"[గత] dddd, LT",sameElse:"L"},relativeTime:{future:"%s లో",past:"%s క్రితం",s:"కొన్ని క్షణాలు",ss:"%d సెకన్లు",m:"ఒక నిమిషం",mm:"%d నిమిషాలు",h:"ఒక గంట",hh:"%d గంటలు",d:"ఒక రోజు",dd:"%d రోజులు",M:"ఒక నెల",MM:"%d నెలలు",y:"ఒక సంవత్సరం",yy:"%d సంవత్సరాలు"},dayOfMonthOrdinalParse:/\d{1,2}వ/,ordinal:"%dవ",meridiemParse:/రాత్రి|ఉదయం|మధ్యాహ్నం|సాయంత్రం/,meridiemHour:function(t,e){return 12===t&&(t=0),"రాత్రి"===e?t<4?t:t+12:"ఉదయం"===e?t:"మధ్యాహ్నం"===e?t>=10?t:t+12:"సాయంత్రం"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"రాత్రి":t<10?"ఉదయం":t<17?"మధ్యాహ్నం":t<20?"సాయంత్రం":"రాత్రి"},week:{dow:0,doy:6}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("tet",{months:"Janeiru_Fevereiru_Marsu_Abril_Maiu_Juñu_Jullu_Agustu_Setembru_Outubru_Novembru_Dezembru".split("_"),monthsShort:"Jan_Fev_Mar_Abr_Mai_Jun_Jul_Ago_Set_Out_Nov_Dez".split("_"),weekdays:"Domingu_Segunda_Tersa_Kuarta_Kinta_Sesta_Sabadu".split("_"),weekdaysShort:"Dom_Seg_Ters_Kua_Kint_Sest_Sab".split("_"),weekdaysMin:"Do_Seg_Te_Ku_Ki_Ses_Sa".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Ohin iha] LT",nextDay:"[Aban iha] LT",nextWeek:"dddd [iha] LT",lastDay:"[Horiseik iha] LT",lastWeek:"dddd [semana kotuk] [iha] LT",sameElse:"L"},relativeTime:{future:"iha %s",past:"%s liuba",s:"segundu balun",ss:"segundu %d",m:"minutu ida",mm:"minutu %d",h:"oras ida",hh:"oras %d",d:"loron ida",dd:"loron %d",M:"fulan ida",MM:"fulan %d",y:"tinan ida",yy:"tinan %d"},dayOfMonthOrdinalParse:/\d{1,2}(st|nd|rd|th)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e={0:"-ум",1:"-ум",2:"-юм",3:"-юм",4:"-ум",5:"-ум",6:"-ум",7:"-ум",8:"-ум",9:"-ум",10:"-ум",12:"-ум",13:"-ум",20:"-ум",30:"-юм",40:"-ум",50:"-ум",60:"-ум",70:"-ум",80:"-ум",90:"-ум",100:"-ум"};t.defineLocale("tg",{months:{format:"январи_феврали_марти_апрели_майи_июни_июли_августи_сентябри_октябри_ноябри_декабри".split("_"),standalone:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_")},monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"якшанбе_душанбе_сешанбе_чоршанбе_панҷшанбе_ҷумъа_шанбе".split("_"),weekdaysShort:"яшб_дшб_сшб_чшб_пшб_ҷум_шнб".split("_"),weekdaysMin:"яш_дш_сш_чш_пш_ҷм_шб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[Имрӯз соати] LT",nextDay:"[Фардо соати] LT",lastDay:"[Дирӯз соати] LT",nextWeek:"dddd[и] [ҳафтаи оянда соати] LT",lastWeek:"dddd[и] [ҳафтаи гузашта соати] LT",sameElse:"L"},relativeTime:{future:"баъди %s",past:"%s пеш",s:"якчанд сония",m:"як дақиқа",mm:"%d дақиқа",h:"як соат",hh:"%d соат",d:"як рӯз",dd:"%d рӯз",M:"як моҳ",MM:"%d моҳ",y:"як сол",yy:"%d сол"},meridiemParse:/шаб|субҳ|рӯз|бегоҳ/,meridiemHour:function(t,e){return 12===t&&(t=0),"шаб"===e?t<4?t:t+12:"субҳ"===e?t:"рӯз"===e?t>=11?t:t+12:"бегоҳ"===e?t+12:void 0},meridiem:function(t,e,n){return t<4?"шаб":t<11?"субҳ":t<16?"рӯз":t<19?"бегоҳ":"шаб"},dayOfMonthOrdinalParse:/\d{1,2}-(ум|юм)/,ordinal:function(t){return t+(e[t]||e[t%10]||e[t>=100?100:null])},week:{dow:1,doy:7}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("th",{months:"มกราคม_กุมภาพันธ์_มีนาคม_เมษายน_พฤษภาคม_มิถุนายน_กรกฎาคม_สิงหาคม_กันยายน_ตุลาคม_พฤศจิกายน_ธันวาคม".split("_"),monthsShort:"ม.ค._ก.พ._มี.ค._เม.ย._พ.ค._มิ.ย._ก.ค._ส.ค._ก.ย._ต.ค._พ.ย._ธ.ค.".split("_"),monthsParseExact:!0,weekdays:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัสบดี_ศุกร์_เสาร์".split("_"),weekdaysShort:"อาทิตย์_จันทร์_อังคาร_พุธ_พฤหัส_ศุกร์_เสาร์".split("_"),weekdaysMin:"อา._จ._อ._พ._พฤ._ศ._ส.".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"H:mm",LTS:"H:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY เวลา H:mm",LLLL:"วันddddที่ D MMMM YYYY เวลา H:mm"},meridiemParse:/ก่อนเที่ยง|หลังเที่ยง/,isPM:function(t){return"หลังเที่ยง"===t},meridiem:function(t,e,n){return t<12?"ก่อนเที่ยง":"หลังเที่ยง"},calendar:{sameDay:"[วันนี้ เวลา] LT",nextDay:"[พรุ่งนี้ เวลา] LT",nextWeek:"dddd[หน้า เวลา] LT",lastDay:"[เมื่อวานนี้ เวลา] LT",lastWeek:"[วัน]dddd[ที่แล้ว เวลา] LT",sameElse:"L"},relativeTime:{future:"อีก %s",past:"%sที่แล้ว",s:"ไม่กี่วินาที",ss:"%d วินาที",m:"1 นาที",mm:"%d นาที",h:"1 ชั่วโมง",hh:"%d ชั่วโมง",d:"1 วัน",dd:"%d วัน",w:"1 สัปดาห์",ww:"%d สัปดาห์",M:"1 เดือน",MM:"%d เดือน",y:"1 ปี",yy:"%d ปี"}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e={1:"'inji",5:"'inji",8:"'inji",70:"'inji",80:"'inji",2:"'nji",7:"'nji",20:"'nji",50:"'nji",3:"'ünji",4:"'ünji",100:"'ünji",6:"'njy",9:"'unjy",10:"'unjy",30:"'unjy",60:"'ynjy",90:"'ynjy"};t.defineLocale("tk",{months:"Ýanwar_Fewral_Mart_Aprel_Maý_Iýun_Iýul_Awgust_Sentýabr_Oktýabr_Noýabr_Dekabr".split("_"),monthsShort:"Ýan_Few_Mar_Apr_Maý_Iýn_Iýl_Awg_Sen_Okt_Noý_Dek".split("_"),weekdays:"Ýekşenbe_Duşenbe_Sişenbe_Çarşenbe_Penşenbe_Anna_Şenbe".split("_"),weekdaysShort:"Ýek_Duş_Siş_Çar_Pen_Ann_Şen".split("_"),weekdaysMin:"Ýk_Dş_Sş_Çr_Pn_An_Şn".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün sagat] LT",nextDay:"[ertir sagat] LT",nextWeek:"[indiki] dddd [sagat] LT",lastDay:"[düýn] LT",lastWeek:"[geçen] dddd [sagat] LT",sameElse:"L"},relativeTime:{future:"%s soň",past:"%s öň",s:"birnäçe sekunt",m:"bir minut",mm:"%d minut",h:"bir sagat",hh:"%d sagat",d:"bir gün",dd:"%d gün",M:"bir aý",MM:"%d aý",y:"bir ýyl",yy:"%d ýyl"},ordinal:function(t,n){switch(n){case"d":case"D":case"Do":case"DD":return t;default:if(0===t)return t+"'unjy";var i=t%10;return t+(e[i]||e[t%100-i]||e[t>=100?100:null])}},week:{dow:1,doy:7}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("tl-ph",{months:"Enero_Pebrero_Marso_Abril_Mayo_Hunyo_Hulyo_Agosto_Setyembre_Oktubre_Nobyembre_Disyembre".split("_"),monthsShort:"Ene_Peb_Mar_Abr_May_Hun_Hul_Ago_Set_Okt_Nob_Dis".split("_"),weekdays:"Linggo_Lunes_Martes_Miyerkules_Huwebes_Biyernes_Sabado".split("_"),weekdaysShort:"Lin_Lun_Mar_Miy_Huw_Biy_Sab".split("_"),weekdaysMin:"Li_Lu_Ma_Mi_Hu_Bi_Sab".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"MM/D/YYYY",LL:"MMMM D, YYYY",LLL:"MMMM D, YYYY HH:mm",LLLL:"dddd, MMMM DD, YYYY HH:mm"},calendar:{sameDay:"LT [ngayong araw]",nextDay:"[Bukas ng] LT",nextWeek:"LT [sa susunod na] dddd",lastDay:"LT [kahapon]",lastWeek:"LT [noong nakaraang] dddd",sameElse:"L"},relativeTime:{future:"sa loob ng %s",past:"%s ang nakalipas",s:"ilang segundo",ss:"%d segundo",m:"isang minuto",mm:"%d minuto",h:"isang oras",hh:"%d oras",d:"isang araw",dd:"%d araw",M:"isang buwan",MM:"%d buwan",y:"isang taon",yy:"%d taon"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e="pagh_wa’_cha’_wej_loS_vagh_jav_Soch_chorgh_Hut".split("_");function n(t,n,i,o){var r=function(t){var n=Math.floor(t%1e3/100),i=Math.floor(t%100/10),o=t%10,r="";return n>0&&(r+=e[n]+"vatlh"),i>0&&(r+=(""!==r?" ":"")+e[i]+"maH"),o>0&&(r+=(""!==r?" ":"")+e[o]),""===r?"pagh":r}(t);switch(i){case"ss":return r+" lup";case"mm":return r+" tup";case"hh":return r+" rep";case"dd":return r+" jaj";case"MM":return r+" jar";case"yy":return r+" DIS"}}t.defineLocale("tlh",{months:"tera’ jar wa’_tera’ jar cha’_tera’ jar wej_tera’ jar loS_tera’ jar vagh_tera’ jar jav_tera’ jar Soch_tera’ jar chorgh_tera’ jar Hut_tera’ jar wa’maH_tera’ jar wa’maH wa’_tera’ jar wa’maH cha’".split("_"),monthsShort:"jar wa’_jar cha’_jar wej_jar loS_jar vagh_jar jav_jar Soch_jar chorgh_jar Hut_jar wa’maH_jar wa’maH wa’_jar wa’maH cha’".split("_"),monthsParseExact:!0,weekdays:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysShort:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),weekdaysMin:"lojmItjaj_DaSjaj_povjaj_ghItlhjaj_loghjaj_buqjaj_ghInjaj".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[DaHjaj] LT",nextDay:"[wa’leS] LT",nextWeek:"LLL",lastDay:"[wa’Hu’] LT",lastWeek:"LLL",sameElse:"L"},relativeTime:{future:function(t){var e=t;return e=-1!==t.indexOf("jaj")?e.slice(0,-3)+"leS":-1!==t.indexOf("jar")?e.slice(0,-3)+"waQ":-1!==t.indexOf("DIS")?e.slice(0,-3)+"nem":e+" pIq"},past:function(t){var e=t;return e=-1!==t.indexOf("jaj")?e.slice(0,-3)+"Hu’":-1!==t.indexOf("jar")?e.slice(0,-3)+"wen":-1!==t.indexOf("DIS")?e.slice(0,-3)+"ben":e+" ret"},s:"puS lup",ss:n,m:"wa’ tup",mm:n,h:"wa’ rep",hh:n,d:"wa’ jaj",dd:n,M:"wa’ jar",MM:n,y:"wa’ DIS",yy:n},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e={1:"'inci",5:"'inci",8:"'inci",70:"'inci",80:"'inci",2:"'nci",7:"'nci",20:"'nci",50:"'nci",3:"'üncü",4:"'üncü",100:"'üncü",6:"'ncı",9:"'uncu",10:"'uncu",30:"'uncu",60:"'ıncı",90:"'ıncı"};t.defineLocale("tr",{months:"Ocak_Şubat_Mart_Nisan_Mayıs_Haziran_Temmuz_Ağustos_Eylül_Ekim_Kasım_Aralık".split("_"),monthsShort:"Oca_Şub_Mar_Nis_May_Haz_Tem_Ağu_Eyl_Eki_Kas_Ara".split("_"),weekdays:"Pazar_Pazartesi_Salı_Çarşamba_Perşembe_Cuma_Cumartesi".split("_"),weekdaysShort:"Paz_Pzt_Sal_Çar_Per_Cum_Cmt".split("_"),weekdaysMin:"Pz_Pt_Sa_Ça_Pe_Cu_Ct".split("_"),meridiem:function(t,e,n){return t<12?n?"öö":"ÖÖ":n?"ös":"ÖS"},meridiemParse:/öö|ÖÖ|ös|ÖS/,isPM:function(t){return"ös"===t||"ÖS"===t},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[bugün saat] LT",nextDay:"[yarın saat] LT",nextWeek:"[gelecek] dddd [saat] LT",lastDay:"[dün] LT",lastWeek:"[geçen] dddd [saat] LT",sameElse:"L"},relativeTime:{future:"%s sonra",past:"%s önce",s:"birkaç saniye",ss:"%d saniye",m:"bir dakika",mm:"%d dakika",h:"bir saat",hh:"%d saat",d:"bir gün",dd:"%d gün",w:"bir hafta",ww:"%d hafta",M:"bir ay",MM:"%d ay",y:"bir yıl",yy:"%d yıl"},ordinal:function(t,n){switch(n){case"d":case"D":case"Do":case"DD":return t;default:if(0===t)return t+"'ıncı";var i=t%10;return t+(e[i]||e[t%100-i]||e[t>=100?100:null])}},week:{dow:1,doy:7}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration function e(t,e,n,i){var o={s:["viensas secunds","'iensas secunds"],ss:[t+" secunds",t+" secunds"],m:["'n míut","'iens míut"],mm:[t+" míuts",t+" míuts"],h:["'n þora","'iensa þora"],hh:[t+" þoras",t+" þoras"],d:["'n ziua","'iensa ziua"],dd:[t+" ziuas",t+" ziuas"],M:["'n mes","'iens mes"],MM:[t+" mesen",t+" mesen"],y:["'n ar","'iens ar"],yy:[t+" ars",t+" ars"]};return i||e?o[n][0]:o[n][1]}t.defineLocale("tzl",{months:"Januar_Fevraglh_Març_Avrïu_Mai_Gün_Julia_Guscht_Setemvar_Listopäts_Noemvar_Zecemvar".split("_"),monthsShort:"Jan_Fev_Mar_Avr_Mai_Gün_Jul_Gus_Set_Lis_Noe_Zec".split("_"),weekdays:"Súladi_Lúneçi_Maitzi_Márcuri_Xhúadi_Viénerçi_Sáturi".split("_"),weekdaysShort:"Súl_Lún_Mai_Már_Xhú_Vié_Sát".split("_"),weekdaysMin:"Sú_Lú_Ma_Má_Xh_Vi_Sá".split("_"),longDateFormat:{LT:"HH.mm",LTS:"HH.mm.ss",L:"DD.MM.YYYY",LL:"D. MMMM [dallas] YYYY",LLL:"D. MMMM [dallas] YYYY HH.mm",LLLL:"dddd, [li] D. MMMM [dallas] YYYY HH.mm"},meridiemParse:/d\'o|d\'a/i,isPM:function(t){return"d'o"===t.toLowerCase()},meridiem:function(t,e,n){return t>11?n?"d'o":"D'O":n?"d'a":"D'A"},calendar:{sameDay:"[oxhi à] LT",nextDay:"[demà à] LT",nextWeek:"dddd [à] LT",lastDay:"[ieiri à] LT",lastWeek:"[sür el] dddd [lasteu à] LT",sameElse:"L"},relativeTime:{future:"osprei %s",past:"ja%s",s:e,ss:e,m:e,mm:e,h:e,hh:e,d:e,dd:e,M:e,MM:e,y:e,yy:e},dayOfMonthOrdinalParse:/\d{1,2}\./,ordinal:"%d.",week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("tzm",{months:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),monthsShort:"ⵉⵏⵏⴰⵢⵔ_ⴱⵕⴰⵢⵕ_ⵎⴰⵕⵚ_ⵉⴱⵔⵉⵔ_ⵎⴰⵢⵢⵓ_ⵢⵓⵏⵢⵓ_ⵢⵓⵍⵢⵓⵣ_ⵖⵓⵛⵜ_ⵛⵓⵜⴰⵏⴱⵉⵔ_ⴽⵟⵓⴱⵕ_ⵏⵓⵡⴰⵏⴱⵉⵔ_ⴷⵓⵊⵏⴱⵉⵔ".split("_"),weekdays:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysShort:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),weekdaysMin:"ⴰⵙⴰⵎⴰⵙ_ⴰⵢⵏⴰⵙ_ⴰⵙⵉⵏⴰⵙ_ⴰⴽⵔⴰⵙ_ⴰⴽⵡⴰⵙ_ⴰⵙⵉⵎⵡⴰⵙ_ⴰⵙⵉⴹⵢⴰⵙ".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[ⴰⵙⴷⵅ ⴴ] LT",nextDay:"[ⴰⵙⴽⴰ ⴴ] LT",nextWeek:"dddd [ⴴ] LT",lastDay:"[ⴰⵚⴰⵏⵜ ⴴ] LT",lastWeek:"dddd [ⴴ] LT",sameElse:"L"},relativeTime:{future:"ⴷⴰⴷⵅ ⵙ ⵢⴰⵏ %s",past:"ⵢⴰⵏ %s",s:"ⵉⵎⵉⴽ",ss:"%d ⵉⵎⵉⴽ",m:"ⵎⵉⵏⵓⴺ",mm:"%d ⵎⵉⵏⵓⴺ",h:"ⵙⴰⵄⴰ",hh:"%d ⵜⴰⵙⵙⴰⵄⵉⵏ",d:"ⴰⵙⵙ",dd:"%d oⵙⵙⴰⵏ",M:"ⴰⵢoⵓⵔ",MM:"%d ⵉⵢⵢⵉⵔⵏ",y:"ⴰⵙⴳⴰⵙ",yy:"%d ⵉⵙⴳⴰⵙⵏ"},week:{dow:6,doy:12}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("tzm-latn",{months:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),monthsShort:"innayr_brˤayrˤ_marˤsˤ_ibrir_mayyw_ywnyw_ywlywz_ɣwšt_šwtanbir_ktˤwbrˤ_nwwanbir_dwjnbir".split("_"),weekdays:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysShort:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),weekdaysMin:"asamas_aynas_asinas_akras_akwas_asimwas_asiḍyas".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd D MMMM YYYY HH:mm"},calendar:{sameDay:"[asdkh g] LT",nextDay:"[aska g] LT",nextWeek:"dddd [g] LT",lastDay:"[assant g] LT",lastWeek:"dddd [g] LT",sameElse:"L"},relativeTime:{future:"dadkh s yan %s",past:"yan %s",s:"imik",ss:"%d imik",m:"minuḍ",mm:"%d minuḍ",h:"saɛa",hh:"%d tassaɛin",d:"ass",dd:"%d ossan",M:"ayowr",MM:"%d iyyirn",y:"asgas",yy:"%d isgasn"},week:{dow:6,doy:12}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("ug-cn",{months:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),monthsShort:"يانۋار_فېۋرال_مارت_ئاپرېل_ماي_ئىيۇن_ئىيۇل_ئاۋغۇست_سېنتەبىر_ئۆكتەبىر_نويابىر_دېكابىر".split("_"),weekdays:"يەكشەنبە_دۈشەنبە_سەيشەنبە_چارشەنبە_پەيشەنبە_جۈمە_شەنبە".split("_"),weekdaysShort:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),weekdaysMin:"يە_دۈ_سە_چا_پە_جۈ_شە".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY-MM-DD",LL:"YYYY-يىلىM-ئاينىڭD-كۈنى",LLL:"YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm",LLLL:"dddd، YYYY-يىلىM-ئاينىڭD-كۈنى، HH:mm"},meridiemParse:/يېرىم كېچە|سەھەر|چۈشتىن بۇرۇن|چۈش|چۈشتىن كېيىن|كەچ/,meridiemHour:function(t,e){return 12===t&&(t=0),"يېرىم كېچە"===e||"سەھەر"===e||"چۈشتىن بۇرۇن"===e?t:"چۈشتىن كېيىن"===e||"كەچ"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,n){var i=100*t+e;return i<600?"يېرىم كېچە":i<900?"سەھەر":i<1130?"چۈشتىن بۇرۇن":i<1230?"چۈش":i<1800?"چۈشتىن كېيىن":"كەچ"},calendar:{sameDay:"[بۈگۈن سائەت] LT",nextDay:"[ئەتە سائەت] LT",nextWeek:"[كېلەركى] dddd [سائەت] LT",lastDay:"[تۆنۈگۈن] LT",lastWeek:"[ئالدىنقى] dddd [سائەت] LT",sameElse:"L"},relativeTime:{future:"%s كېيىن",past:"%s بۇرۇن",s:"نەچچە سېكونت",ss:"%d سېكونت",m:"بىر مىنۇت",mm:"%d مىنۇت",h:"بىر سائەت",hh:"%d سائەت",d:"بىر كۈن",dd:"%d كۈن",M:"بىر ئاي",MM:"%d ئاي",y:"بىر يىل",yy:"%d يىل"},dayOfMonthOrdinalParse:/\d{1,2}(-كۈنى|-ئاي|-ھەپتە)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"-كۈنى";case"w":case"W":return t+"-ھەپتە";default:return t}},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:1,doy:7}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration function e(t,e,n){var i,o;return"m"===n?e?"хвилина":"хвилину":"h"===n?e?"година":"годину":t+" "+(i=+t,o={ss:e?"секунда_секунди_секунд":"секунду_секунди_секунд",mm:e?"хвилина_хвилини_хвилин":"хвилину_хвилини_хвилин",hh:e?"година_години_годин":"годину_години_годин",dd:"день_дні_днів",MM:"місяць_місяці_місяців",yy:"рік_роки_років"}[n].split("_"),i%10==1&&i%100!=11?o[0]:i%10>=2&&i%10<=4&&(i%100<10||i%100>=20)?o[1]:o[2])}function n(t){return function(){return t+"о"+(11===this.hours()?"б":"")+"] LT"}}t.defineLocale("uk",{months:{format:"січня_лютого_березня_квітня_травня_червня_липня_серпня_вересня_жовтня_листопада_грудня".split("_"),standalone:"січень_лютий_березень_квітень_травень_червень_липень_серпень_вересень_жовтень_листопад_грудень".split("_")},monthsShort:"січ_лют_бер_квіт_трав_черв_лип_серп_вер_жовт_лист_груд".split("_"),weekdays:function(t,e){var n={nominative:"неділя_понеділок_вівторок_середа_четвер_п’ятниця_субота".split("_"),accusative:"неділю_понеділок_вівторок_середу_четвер_п’ятницю_суботу".split("_"),genitive:"неділі_понеділка_вівторка_середи_четверга_п’ятниці_суботи".split("_")};return!0===t?n.nominative.slice(1,7).concat(n.nominative.slice(0,1)):t?n[/(\[[ВвУу]\]) ?dddd/.test(e)?"accusative":/\[?(?:минулої|наступної)? ?\] ?dddd/.test(e)?"genitive":"nominative"][t.day()]:n.nominative},weekdaysShort:"нд_пн_вт_ср_чт_пт_сб".split("_"),weekdaysMin:"нд_пн_вт_ср_чт_пт_сб".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD.MM.YYYY",LL:"D MMMM YYYY р.",LLL:"D MMMM YYYY р., HH:mm",LLLL:"dddd, D MMMM YYYY р., HH:mm"},calendar:{sameDay:n("[Сьогодні "),nextDay:n("[Завтра "),lastDay:n("[Вчора "),nextWeek:n("[У] dddd ["),lastWeek:function(){switch(this.day()){case 0:case 3:case 5:case 6:return n("[Минулої] dddd [").call(this);case 1:case 2:case 4:return n("[Минулого] dddd [").call(this)}},sameElse:"L"},relativeTime:{future:"за %s",past:"%s тому",s:"декілька секунд",ss:e,m:e,mm:e,h:"годину",hh:e,d:"день",dd:e,M:"місяць",MM:e,y:"рік",yy:e},meridiemParse:/ночі|ранку|дня|вечора/,isPM:function(t){return/^(дня|вечора)$/.test(t)},meridiem:function(t,e,n){return t<4?"ночі":t<12?"ранку":t<17?"дня":"вечора"},dayOfMonthOrdinalParse:/\d{1,2}-(й|го)/,ordinal:function(t,e){switch(e){case"M":case"d":case"DDD":case"w":case"W":return t+"-й";case"D":return t+"-го";default:return t}},week:{dow:1,doy:7}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration var e=["جنوری","فروری","مارچ","اپریل","مئی","جون","جولائی","اگست","ستمبر","اکتوبر","نومبر","دسمبر"],n=["اتوار","پیر","منگل","بدھ","جمعرات","جمعہ","ہفتہ"];t.defineLocale("ur",{months:e,monthsShort:e,weekdays:n,weekdaysShort:n,weekdaysMin:n,longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd، D MMMM YYYY HH:mm"},meridiemParse:/صبح|شام/,isPM:function(t){return"شام"===t},meridiem:function(t,e,n){return t<12?"صبح":"شام"},calendar:{sameDay:"[آج بوقت] LT",nextDay:"[کل بوقت] LT",nextWeek:"dddd [بوقت] LT",lastDay:"[گذشتہ روز بوقت] LT",lastWeek:"[گذشتہ] dddd [بوقت] LT",sameElse:"L"},relativeTime:{future:"%s بعد",past:"%s قبل",s:"چند سیکنڈ",ss:"%d سیکنڈ",m:"ایک منٹ",mm:"%d منٹ",h:"ایک گھنٹہ",hh:"%d گھنٹے",d:"ایک دن",dd:"%d دن",M:"ایک ماہ",MM:"%d ماہ",y:"ایک سال",yy:"%d سال"},preparse:function(t){return t.replace(/،/g,",")},postformat:function(t){return t.replace(/,/g,"،")},week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("uz",{months:"январ_феврал_март_апрел_май_июн_июл_август_сентябр_октябр_ноябр_декабр".split("_"),monthsShort:"янв_фев_мар_апр_май_июн_июл_авг_сен_окт_ноя_дек".split("_"),weekdays:"Якшанба_Душанба_Сешанба_Чоршанба_Пайшанба_Жума_Шанба".split("_"),weekdaysShort:"Якш_Душ_Сеш_Чор_Пай_Жум_Шан".split("_"),weekdaysMin:"Як_Ду_Се_Чо_Па_Жу_Ша".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Бугун соат] LT [да]",nextDay:"[Эртага] LT [да]",nextWeek:"dddd [куни соат] LT [да]",lastDay:"[Кеча соат] LT [да]",lastWeek:"[Утган] dddd [куни соат] LT [да]",sameElse:"L"},relativeTime:{future:"Якин %s ичида",past:"Бир неча %s олдин",s:"фурсат",ss:"%d фурсат",m:"бир дакика",mm:"%d дакика",h:"бир соат",hh:"%d соат",d:"бир кун",dd:"%d кун",M:"бир ой",MM:"%d ой",y:"бир йил",yy:"%d йил"},week:{dow:1,doy:7}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("uz-latn",{months:"Yanvar_Fevral_Mart_Aprel_May_Iyun_Iyul_Avgust_Sentabr_Oktabr_Noyabr_Dekabr".split("_"),monthsShort:"Yan_Fev_Mar_Apr_May_Iyun_Iyul_Avg_Sen_Okt_Noy_Dek".split("_"),weekdays:"Yakshanba_Dushanba_Seshanba_Chorshanba_Payshanba_Juma_Shanba".split("_"),weekdaysShort:"Yak_Dush_Sesh_Chor_Pay_Jum_Shan".split("_"),weekdaysMin:"Ya_Du_Se_Cho_Pa_Ju_Sha".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"D MMMM YYYY, dddd HH:mm"},calendar:{sameDay:"[Bugun soat] LT [da]",nextDay:"[Ertaga] LT [da]",nextWeek:"dddd [kuni soat] LT [da]",lastDay:"[Kecha soat] LT [da]",lastWeek:"[O'tgan] dddd [kuni soat] LT [da]",sameElse:"L"},relativeTime:{future:"Yaqin %s ichida",past:"Bir necha %s oldin",s:"soniya",ss:"%d soniya",m:"bir daqiqa",mm:"%d daqiqa",h:"bir soat",hh:"%d soat",d:"bir kun",dd:"%d kun",M:"bir oy",MM:"%d oy",y:"bir yil",yy:"%d yil"},week:{dow:1,doy:7}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("vi",{months:"tháng 1_tháng 2_tháng 3_tháng 4_tháng 5_tháng 6_tháng 7_tháng 8_tháng 9_tháng 10_tháng 11_tháng 12".split("_"),monthsShort:"Thg 01_Thg 02_Thg 03_Thg 04_Thg 05_Thg 06_Thg 07_Thg 08_Thg 09_Thg 10_Thg 11_Thg 12".split("_"),monthsParseExact:!0,weekdays:"chủ nhật_thứ hai_thứ ba_thứ tư_thứ năm_thứ sáu_thứ bảy".split("_"),weekdaysShort:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysMin:"CN_T2_T3_T4_T5_T6_T7".split("_"),weekdaysParseExact:!0,meridiemParse:/sa|ch/i,isPM:function(t){return/^ch$/i.test(t)},meridiem:function(t,e,n){return t<12?n?"sa":"SA":n?"ch":"CH"},longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"D MMMM [năm] YYYY",LLL:"D MMMM [năm] YYYY HH:mm",LLLL:"dddd, D MMMM [năm] YYYY HH:mm",l:"DD/M/YYYY",ll:"D MMM YYYY",lll:"D MMM YYYY HH:mm",llll:"ddd, D MMM YYYY HH:mm"},calendar:{sameDay:"[Hôm nay lúc] LT",nextDay:"[Ngày mai lúc] LT",nextWeek:"dddd [tuần tới lúc] LT",lastDay:"[Hôm qua lúc] LT",lastWeek:"dddd [tuần trước lúc] LT",sameElse:"L"},relativeTime:{future:"%s tới",past:"%s trước",s:"vài giây",ss:"%d giây",m:"một phút",mm:"%d phút",h:"một giờ",hh:"%d giờ",d:"một ngày",dd:"%d ngày",w:"một tuần",ww:"%d tuần",M:"một tháng",MM:"%d tháng",y:"một năm",yy:"%d năm"},dayOfMonthOrdinalParse:/\d{1,2}/,ordinal:function(t){return t},week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("x-pseudo",{months:"J~áñúá~rý_F~ébrú~árý_~Márc~h_Áp~ríl_~Máý_~Júñé~_Júl~ý_Áú~gúst~_Sép~témb~ér_Ó~ctób~ér_Ñ~óvém~bér_~Décé~mbér".split("_"),monthsShort:"J~áñ_~Féb_~Már_~Ápr_~Máý_~Júñ_~Júl_~Áúg_~Sép_~Óct_~Ñóv_~Déc".split("_"),monthsParseExact:!0,weekdays:"S~úñdá~ý_Mó~ñdáý~_Túé~sdáý~_Wéd~ñésd~áý_T~húrs~dáý_~Fríd~áý_S~átúr~dáý".split("_"),weekdaysShort:"S~úñ_~Móñ_~Túé_~Wéd_~Thú_~Frí_~Sát".split("_"),weekdaysMin:"S~ú_Mó~_Tú_~Wé_T~h_Fr~_Sá".split("_"),weekdaysParseExact:!0,longDateFormat:{LT:"HH:mm",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY HH:mm",LLLL:"dddd, D MMMM YYYY HH:mm"},calendar:{sameDay:"[T~ódá~ý át] LT",nextDay:"[T~ómó~rró~w át] LT",nextWeek:"dddd [át] LT",lastDay:"[Ý~ést~érdá~ý át] LT",lastWeek:"[L~ást] dddd [át] LT",sameElse:"L"},relativeTime:{future:"í~ñ %s",past:"%s á~gó",s:"á ~féw ~sécó~ñds",ss:"%d s~écóñ~ds",m:"á ~míñ~úté",mm:"%d m~íñú~tés",h:"á~ñ hó~úr",hh:"%d h~óúrs",d:"á ~dáý",dd:"%d d~áýs",M:"á ~móñ~th",MM:"%d m~óñt~hs",y:"á ~ýéár",yy:"%d ý~éárs"},dayOfMonthOrdinalParse:/\d{1,2}(th|st|nd|rd)/,ordinal:function(t){var e=t%10;return t+(1==~~(t%100/10)?"th":1===e?"st":2===e?"nd":3===e?"rd":"th")},week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("yo",{months:"Sẹ́rẹ́_Èrèlè_Ẹrẹ̀nà_Ìgbé_Èbibi_Òkùdu_Agẹmo_Ògún_Owewe_Ọ̀wàrà_Bélú_Ọ̀pẹ̀̀".split("_"),monthsShort:"Sẹ́r_Èrl_Ẹrn_Ìgb_Èbi_Òkù_Agẹ_Ògú_Owe_Ọ̀wà_Bél_Ọ̀pẹ̀̀".split("_"),weekdays:"Àìkú_Ajé_Ìsẹ́gun_Ọjọ́rú_Ọjọ́bọ_Ẹtì_Àbámẹ́ta".split("_"),weekdaysShort:"Àìk_Ajé_Ìsẹ́_Ọjr_Ọjb_Ẹtì_Àbá".split("_"),weekdaysMin:"Àì_Aj_Ìs_Ọr_Ọb_Ẹt_Àb".split("_"),longDateFormat:{LT:"h:mm A",LTS:"h:mm:ss A",L:"DD/MM/YYYY",LL:"D MMMM YYYY",LLL:"D MMMM YYYY h:mm A",LLLL:"dddd, D MMMM YYYY h:mm A"},calendar:{sameDay:"[Ònì ni] LT",nextDay:"[Ọ̀la ni] LT",nextWeek:"dddd [Ọsẹ̀ tón'bọ] [ni] LT",lastDay:"[Àna ni] LT",lastWeek:"dddd [Ọsẹ̀ tólọ́] [ni] LT",sameElse:"L"},relativeTime:{future:"ní %s",past:"%s kọjá",s:"ìsẹjú aayá die",ss:"aayá %d",m:"ìsẹjú kan",mm:"ìsẹjú %d",h:"wákati kan",hh:"wákati %d",d:"ọjọ́ kan",dd:"ọjọ́ %d",M:"osù kan",MM:"osù %d",y:"ọdún kan",yy:"ọdún %d"},dayOfMonthOrdinalParse:/ọjọ́\s\d{1,2}/,ordinal:"ọjọ́ %d",week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("zh-cn",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"周日_周一_周二_周三_周四_周五_周六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日Ah点mm分",LLLL:"YYYY年M月D日ddddAh点mm分",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"下午"===e||"晚上"===e?t+12:t>=11?t:t+12},meridiem:function(t,e,n){var i=100*t+e;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:function(t){return t.week()!==this.week()?"[下]dddLT":"[本]dddLT"},lastDay:"[昨天]LT",lastWeek:function(t){return this.week()!==t.week()?"[上]dddLT":"[本]dddLT"},sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|周)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"周";default:return t}},relativeTime:{future:"%s后",past:"%s前",s:"几秒",ss:"%d 秒",m:"1 分钟",mm:"%d 分钟",h:"1 小时",hh:"%d 小时",d:"1 天",dd:"%d 天",w:"1 周",ww:"%d 周",M:"1 个月",MM:"%d 个月",y:"1 年",yy:"%d 年"},week:{dow:1,doy:4}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("zh-hk",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,n){var i=100*t+e;return i<600?"凌晨":i<900?"早上":i<1200?"上午":1200===i?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天]LT",nextDay:"[明天]LT",nextWeek:"[下]ddddLT",lastDay:"[昨天]LT",lastWeek:"[上]ddddLT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("zh-mo",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"DD/MM/YYYY",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"D/M/YYYY",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,n){var i=100*t+e;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s內",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(10))},function(t,e,n){!function(t){"use strict"; //! moment.js locale configuration t.defineLocale("zh-tw",{months:"一月_二月_三月_四月_五月_六月_七月_八月_九月_十月_十一月_十二月".split("_"),monthsShort:"1月_2月_3月_4月_5月_6月_7月_8月_9月_10月_11月_12月".split("_"),weekdays:"星期日_星期一_星期二_星期三_星期四_星期五_星期六".split("_"),weekdaysShort:"週日_週一_週二_週三_週四_週五_週六".split("_"),weekdaysMin:"日_一_二_三_四_五_六".split("_"),longDateFormat:{LT:"HH:mm",LTS:"HH:mm:ss",L:"YYYY/MM/DD",LL:"YYYY年M月D日",LLL:"YYYY年M月D日 HH:mm",LLLL:"YYYY年M月D日dddd HH:mm",l:"YYYY/M/D",ll:"YYYY年M月D日",lll:"YYYY年M月D日 HH:mm",llll:"YYYY年M月D日dddd HH:mm"},meridiemParse:/凌晨|早上|上午|中午|下午|晚上/,meridiemHour:function(t,e){return 12===t&&(t=0),"凌晨"===e||"早上"===e||"上午"===e?t:"中午"===e?t>=11?t:t+12:"下午"===e||"晚上"===e?t+12:void 0},meridiem:function(t,e,n){var i=100*t+e;return i<600?"凌晨":i<900?"早上":i<1130?"上午":i<1230?"中午":i<1800?"下午":"晚上"},calendar:{sameDay:"[今天] LT",nextDay:"[明天] LT",nextWeek:"[下]dddd LT",lastDay:"[昨天] LT",lastWeek:"[上]dddd LT",sameElse:"L"},dayOfMonthOrdinalParse:/\d{1,2}(日|月|週)/,ordinal:function(t,e){switch(e){case"d":case"D":case"DDD":return t+"日";case"M":return t+"月";case"w":case"W":return t+"週";default:return t}},relativeTime:{future:"%s後",past:"%s前",s:"幾秒",ss:"%d 秒",m:"1 分鐘",mm:"%d 分鐘",h:"1 小時",hh:"%d 小時",d:"1 天",dd:"%d 天",M:"1 個月",MM:"%d 個月",y:"1 年",yy:"%d 年"}})}(n(10))},function(t,e,n){"use strict";var i=n(27).Buffer,o=n(764).Transform;function r(t){o.call(this),this._block=i.allocUnsafe(t),this._blockSize=t,this._blockOffset=0,this._length=[0,0,0,0],this._finalized=!1}n(20)(r,o),r.prototype._transform=function(t,e,n){var i=null;try{this.update(t,e)}catch(t){i=t}n(i)},r.prototype._flush=function(t){var e=null;try{this.push(this.digest())}catch(t){e=t}t(e)},r.prototype.update=function(t,e){if(function(t,e){if(!i.isBuffer(t)&&"string"!=typeof t)throw new TypeError(e+" must be a string or a buffer")}(t,"Data"),this._finalized)throw new Error("Digest already called");i.isBuffer(t)||(t=i.from(t,e));for(var n=this._block,o=0;this._blockOffset+t.length-o>=this._blockSize;){for(var r=this._blockOffset;r0;++s)this._length[s]+=a,(a=this._length[s]/4294967296|0)>0&&(this._length[s]-=4294967296*a);return this},r.prototype._update=function(){throw new Error("_update is not implemented")},r.prototype.digest=function(t){if(this._finalized)throw new Error("Digest already called");this._finalized=!0;var e=this._digest();void 0!==t&&(e=e.toString(t)),this._block.fill(0),this._blockOffset=0;for(var n=0;n<4;++n)this._length[n]=0;return e},r.prototype._digest=function(){throw new Error("_digest is not implemented")},t.exports=r},function(t,e,n){"use strict";(function(e,i){var o;t.exports=N,N.ReadableState=C;n(152).EventEmitter;var r=function(t,e){return t.listeners(e).length},s=n(578),a=n(50).Buffer,c=e.Uint8Array||function(){};var l,u=n(765);l=u&&u.debuglog?u.debuglog("stream"):function(){};var h,d,p,_=n(766),m=n(579),f=n(580).getHighWaterMark,g=n(176).codes,$=g.ERR_INVALID_ARG_TYPE,E=g.ERR_STREAM_PUSH_AFTER_EOF,y=g.ERR_METHOD_NOT_IMPLEMENTED,b=g.ERR_STREAM_UNSHIFT_AFTER_END_EVENT;n(20)(N,s);var S=m.errorOrDestroy,v=["error","close","destroy","pause","resume"];function C(t,e,i){o=o||n(177),t=t||{},"boolean"!=typeof i&&(i=e instanceof o),this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode),this.highWaterMark=f(this,t,"readableHighWaterMark",i),this.buffer=new _,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.paused=!0,this.emitClose=!1!==t.emitClose,this.autoDestroy=!!t.autoDestroy,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(h||(h=n(153).StringDecoder),this.decoder=new h(t.encoding),this.encoding=t.encoding)}function N(t){if(o=o||n(177),!(this instanceof N))return new N(t);var e=this instanceof o;this._readableState=new C(t,this,e),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),s.call(this)}function T(t,e,n,i,o){l("readableAddChunk",e);var r,s=t._readableState;if(null===e)s.reading=!1,function(t,e){if(l("onEofChunk"),e.ended)return;if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,e.sync?w(t):(e.needReadable=!1,e.emittedReadable||(e.emittedReadable=!0,O(t)))}(t,s);else if(o||(r=function(t,e){var n;i=e,a.isBuffer(i)||i instanceof c||"string"==typeof e||void 0===e||t.objectMode||(n=new $("chunk",["string","Buffer","Uint8Array"],e));var i;return n}(s,e)),r)S(t,r);else if(s.objectMode||e&&e.length>0)if("string"==typeof e||s.objectMode||Object.getPrototypeOf(e)===a.prototype||(e=function(t){return a.from(t)}(e)),i)s.endEmitted?S(t,new b):L(t,s,e,!0);else if(s.ended)S(t,new E);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(e=s.decoder.write(e),s.objectMode||0!==e.length?L(t,s,e,!1):R(t,s)):L(t,s,e,!1)}else i||(s.reading=!1,R(t,s));return!s.ended&&(s.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=1073741824?t=1073741824:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function w(t){var e=t._readableState;l("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(l("emitReadable",e.flowing),e.emittedReadable=!0,i.nextTick(O,t))}function O(t){var e=t._readableState;l("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,D(t)}function R(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(A,t,e))}function A(t,e){for(;!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function I(t){l("readable nexttick read 0"),t.read(0)}function U(t,e){l("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),D(t),e.flowing&&!e.reading&&t.read(0)}function D(t){var e=t._readableState;for(l("flow",e.flowing);e.flowing&&null!==t.read(););}function P(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n);var n}function M(t){var e=t._readableState;l("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,i.nextTick(k,e,t))}function k(t,e){if(l("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}function j(t,e){for(var n=0,i=t.length;n=e.highWaterMark:e.length>0)||e.ended))return l("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?M(this):w(this),null;if(0===(t=z(t,e))&&e.ended)return 0===e.length&&M(this),null;var i,o=e.needReadable;return l("need readable",o),(0===e.length||e.length-t0?P(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&M(this)),null!==i&&this.emit("data",i),i},N.prototype._read=function(t){S(this,new y("_read()"))},N.prototype.pipe=function(t,e){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,l("pipe count=%d opts=%j",o.pipesCount,e);var s=(!e||!1!==e.end)&&t!==i.stdout&&t!==i.stderr?c:f;function a(e,i){l("onunpipe"),e===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,l("cleanup"),t.removeListener("close",_),t.removeListener("finish",m),t.removeListener("drain",u),t.removeListener("error",p),t.removeListener("unpipe",a),n.removeListener("end",c),n.removeListener("end",f),n.removeListener("data",d),h=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||u())}function c(){l("onend"),t.end()}o.endEmitted?i.nextTick(s):n.once("end",s),t.on("unpipe",a);var u=function(t){return function(){var e=t._readableState;l("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&r(t,"data")&&(e.flowing=!0,D(t))}}(n);t.on("drain",u);var h=!1;function d(e){l("ondata");var i=t.write(e);l("dest.write",i),!1===i&&((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==j(o.pipes,t))&&!h&&(l("false write response, pause",o.awaitDrain),o.awaitDrain++),n.pause())}function p(e){l("onerror",e),f(),t.removeListener("error",p),0===r(t,"error")&&S(t,e)}function _(){t.removeListener("finish",m),f()}function m(){l("onfinish"),t.removeListener("close",_),f()}function f(){l("unpipe"),n.unpipe(t)}return n.on("data",d),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",p),t.once("close",_),t.once("finish",m),t.emit("pipe",n),o.flowing||(l("pipe resume"),n.resume()),t},N.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var i=e.pipes,o=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var r=0;r0,!1!==o.flowing&&this.resume()):"readable"===t&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,l("on readable",o.length,o.reading),o.length?w(this):o.reading||i.nextTick(I,this))),n},N.prototype.addListener=N.prototype.on,N.prototype.removeListener=function(t,e){var n=s.prototype.removeListener.call(this,t,e);return"readable"===t&&i.nextTick(x,this),n},N.prototype.removeAllListeners=function(t){var e=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||i.nextTick(x,this),e},N.prototype.resume=function(){var t=this._readableState;return t.flowing||(l("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(U,t,e))}(this,t)),t.paused=!1,this},N.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},N.prototype.wrap=function(t){var e=this,n=this._readableState,i=!1;for(var o in t.on("end",(function(){if(l("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(o){(l("wrapped data"),n.decoder&&(o=n.decoder.write(o)),n.objectMode&&null==o)||(n.objectMode||o&&o.length)&&(e.push(o)||(i=!0,t.pause()))})),t)void 0===this[o]&&"function"==typeof t[o]&&(this[o]=function(e){return function(){return t[e].apply(t,arguments)}}(o));for(var r=0;r-1))throw new b(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(N.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(N.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),N.prototype._write=function(t,e,n){n(new m("_write()"))},N.prototype._writev=null,N.prototype.end=function(t,e,n){var o=this._writableState;return"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),o.corked&&(o.corked=1,this.uncork()),o.ending||function(t,e,n){e.ending=!0,R(t,e),n&&(e.finished?i.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,o,n),this},Object.defineProperty(N.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(N.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),N.prototype.destroy=h.destroy,N.prototype._undestroy=h.undestroy,N.prototype._destroy=function(t,e){e(t)}}).call(this,n(55),n(37))},function(t,e,n){"use strict";t.exports=u;var i=n(176).codes,o=i.ERR_METHOD_NOT_IMPLEMENTED,r=i.ERR_MULTIPLE_CALLBACK,s=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=i.ERR_TRANSFORM_WITH_LENGTH_0,c=n(177);function l(t,e){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(null===i)return this.emit("error",new r);n.writechunk=null,n.writecb=null,null!=e&&this.push(e),i(t);var o=this._readableState;o.reading=!1,(o.needReadable||o.length>>2|t<<30)^(t>>>13|t<<19)^(t>>>22|t<<10)}function d(t){return(t>>>6|t<<26)^(t>>>11|t<<21)^(t>>>25|t<<7)}function p(t){return(t>>>7|t<<25)^(t>>>18|t<<14)^t>>>3}i(c,o),c.prototype.init=function(){return this._a=1779033703,this._b=3144134277,this._c=1013904242,this._d=2773480762,this._e=1359893119,this._f=2600822924,this._g=528734635,this._h=1541459225,this},c.prototype._update=function(t){for(var e,n=this._w,i=0|this._a,o=0|this._b,r=0|this._c,a=0|this._d,c=0|this._e,_=0|this._f,m=0|this._g,f=0|this._h,g=0;g<16;++g)n[g]=t.readInt32BE(4*g);for(;g<64;++g)n[g]=0|(((e=n[g-2])>>>17|e<<15)^(e>>>19|e<<13)^e>>>10)+n[g-7]+p(n[g-15])+n[g-16];for(var $=0;$<64;++$){var E=f+d(c)+l(c,_,m)+s[$]+n[$]|0,y=h(i)+u(i,o,r)|0;f=m,m=_,_=c,c=a+E|0,a=r,r=o,o=i,i=E+y|0}this._a=i+this._a|0,this._b=o+this._b|0,this._c=r+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0,this._f=_+this._f|0,this._g=m+this._g|0,this._h=f+this._h|0},c.prototype._hash=function(){var t=r.allocUnsafe(32);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t.writeInt32BE(this._h,28),t},t.exports=c},function(t,e,n){var i=n(20),o=n(178),r=n(27).Buffer,s=[1116352408,3609767458,1899447441,602891725,3049323471,3964484399,3921009573,2173295548,961987163,4081628472,1508970993,3053834265,2453635748,2937671579,2870763221,3664609560,3624381080,2734883394,310598401,1164996542,607225278,1323610764,1426881987,3590304994,1925078388,4068182383,2162078206,991336113,2614888103,633803317,3248222580,3479774868,3835390401,2666613458,4022224774,944711139,264347078,2341262773,604807628,2007800933,770255983,1495990901,1249150122,1856431235,1555081692,3175218132,1996064986,2198950837,2554220882,3999719339,2821834349,766784016,2952996808,2566594879,3210313671,3203337956,3336571891,1034457026,3584528711,2466948901,113926993,3758326383,338241895,168717936,666307205,1188179964,773529912,1546045734,1294757372,1522805485,1396182291,2643833823,1695183700,2343527390,1986661051,1014477480,2177026350,1206759142,2456956037,344077627,2730485921,1290863460,2820302411,3158454273,3259730800,3505952657,3345764771,106217008,3516065817,3606008344,3600352804,1432725776,4094571909,1467031594,275423344,851169720,430227734,3100823752,506948616,1363258195,659060556,3750685593,883997877,3785050280,958139571,3318307427,1322822218,3812723403,1537002063,2003034995,1747873779,3602036899,1955562222,1575990012,2024104815,1125592928,2227730452,2716904306,2361852424,442776044,2428436474,593698344,2756734187,3733110249,3204031479,2999351573,3329325298,3815920427,3391569614,3928383900,3515267271,566280711,3940187606,3454069534,4118630271,4000239992,116418474,1914138554,174292421,2731055270,289380356,3203993006,460393269,320620315,685471733,587496836,852142971,1086792851,1017036298,365543100,1126000580,2618297676,1288033470,3409855158,1501505948,4234509866,1607167915,987167468,1816402316,1246189591],a=new Array(160);function c(){this.init(),this._w=a,o.call(this,128,112)}function l(t,e,n){return n^t&(e^n)}function u(t,e,n){return t&e|n&(t|e)}function h(t,e){return(t>>>28|e<<4)^(e>>>2|t<<30)^(e>>>7|t<<25)}function d(t,e){return(t>>>14|e<<18)^(t>>>18|e<<14)^(e>>>9|t<<23)}function p(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7}function _(t,e){return(t>>>1|e<<31)^(t>>>8|e<<24)^(t>>>7|e<<25)}function m(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^t>>>6}function f(t,e){return(t>>>19|e<<13)^(e>>>29|t<<3)^(t>>>6|e<<26)}function g(t,e){return t>>>0>>0?1:0}i(c,o),c.prototype.init=function(){return this._ah=1779033703,this._bh=3144134277,this._ch=1013904242,this._dh=2773480762,this._eh=1359893119,this._fh=2600822924,this._gh=528734635,this._hh=1541459225,this._al=4089235720,this._bl=2227873595,this._cl=4271175723,this._dl=1595750129,this._el=2917565137,this._fl=725511199,this._gl=4215389547,this._hl=327033209,this},c.prototype._update=function(t){for(var e=this._w,n=0|this._ah,i=0|this._bh,o=0|this._ch,r=0|this._dh,a=0|this._eh,c=0|this._fh,$=0|this._gh,E=0|this._hh,y=0|this._al,b=0|this._bl,S=0|this._cl,v=0|this._dl,C=0|this._el,N=0|this._fl,T=0|this._gl,L=0|this._hl,z=0;z<32;z+=2)e[z]=t.readInt32BE(4*z),e[z+1]=t.readInt32BE(4*z+4);for(;z<160;z+=2){var w=e[z-30],O=e[z-30+1],R=p(w,O),A=_(O,w),x=m(w=e[z-4],O=e[z-4+1]),I=f(O,w),U=e[z-14],D=e[z-14+1],P=e[z-32],M=e[z-32+1],k=A+D|0,j=R+U+g(k,A)|0;j=(j=j+x+g(k=k+I|0,I)|0)+P+g(k=k+M|0,M)|0,e[z]=j,e[z+1]=k}for(var G=0;G<160;G+=2){j=e[G],k=e[G+1];var q=u(n,i,o),F=u(y,b,S),B=h(n,y),W=h(y,n),H=d(a,C),V=d(C,a),K=s[G],X=s[G+1],J=l(a,c,$),Y=l(C,N,T),Q=L+V|0,Z=E+H+g(Q,L)|0;Z=(Z=(Z=Z+J+g(Q=Q+Y|0,Y)|0)+K+g(Q=Q+X|0,X)|0)+j+g(Q=Q+k|0,k)|0;var tt=W+F|0,et=B+q+g(tt,W)|0;E=$,L=T,$=c,T=N,c=a,N=C,a=r+Z+g(C=v+Q|0,v)|0,r=o,v=S,o=i,S=b,i=n,b=y,n=Z+et+g(y=Q+tt|0,Q)|0}this._al=this._al+y|0,this._bl=this._bl+b|0,this._cl=this._cl+S|0,this._dl=this._dl+v|0,this._el=this._el+C|0,this._fl=this._fl+N|0,this._gl=this._gl+T|0,this._hl=this._hl+L|0,this._ah=this._ah+n+g(this._al,y)|0,this._bh=this._bh+i+g(this._bl,b)|0,this._ch=this._ch+o+g(this._cl,S)|0,this._dh=this._dh+r+g(this._dl,v)|0,this._eh=this._eh+a+g(this._el,C)|0,this._fh=this._fh+c+g(this._fl,N)|0,this._gh=this._gh+$+g(this._gl,T)|0,this._hh=this._hh+E+g(this._hl,L)|0},c.prototype._hash=function(){var t=r.allocUnsafe(64);function e(e,n,i){t.writeInt32BE(e,i),t.writeInt32BE(n,i+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),e(this._gh,this._gl,48),e(this._hh,this._hl,56),t},t.exports=c},function(t,e,n){"use strict";(function(e,i){var o=n(287);t.exports=E;var r,s=n(437);E.ReadableState=$;n(152).EventEmitter;var a=function(t,e){return t.listeners(e).length},c=n(586),l=n(374).Buffer,u=e.Uint8Array||function(){};var h=Object.create(n(233));h.inherits=n(20);var d=n(777),p=void 0;p=d&&d.debuglog?d.debuglog("stream"):function(){};var _,m=n(778),f=n(587);h.inherits(E,c);var g=["error","close","destroy","pause","resume"];function $(t,e){t=t||{};var i=e instanceof(r=r||n(154));this.objectMode=!!t.objectMode,i&&(this.objectMode=this.objectMode||!!t.readableObjectMode);var o=t.highWaterMark,s=t.readableHighWaterMark,a=this.objectMode?16:16384;this.highWaterMark=o||0===o?o:i&&(s||0===s)?s:a,this.highWaterMark=Math.floor(this.highWaterMark),this.buffer=new m,this.length=0,this.pipes=null,this.pipesCount=0,this.flowing=null,this.ended=!1,this.endEmitted=!1,this.reading=!1,this.sync=!0,this.needReadable=!1,this.emittedReadable=!1,this.readableListening=!1,this.resumeScheduled=!1,this.destroyed=!1,this.defaultEncoding=t.defaultEncoding||"utf8",this.awaitDrain=0,this.readingMore=!1,this.decoder=null,this.encoding=null,t.encoding&&(_||(_=n(153).StringDecoder),this.decoder=new _(t.encoding),this.encoding=t.encoding)}function E(t){if(r=r||n(154),!(this instanceof E))return new E(t);this._readableState=new $(t,this),this.readable=!0,t&&("function"==typeof t.read&&(this._read=t.read),"function"==typeof t.destroy&&(this._destroy=t.destroy)),c.call(this)}function y(t,e,n,i,o){var r,s=t._readableState;null===e?(s.reading=!1,function(t,e){if(e.ended)return;if(e.decoder){var n=e.decoder.end();n&&n.length&&(e.buffer.push(n),e.length+=e.objectMode?1:n.length)}e.ended=!0,v(t)}(t,s)):(o||(r=function(t,e){var n;i=e,l.isBuffer(i)||i instanceof u||"string"==typeof e||void 0===e||t.objectMode||(n=new TypeError("Invalid non-string/buffer chunk"));var i;return n}(s,e)),r?t.emit("error",r):s.objectMode||e&&e.length>0?("string"==typeof e||s.objectMode||Object.getPrototypeOf(e)===l.prototype||(e=function(t){return l.from(t)}(e)),i?s.endEmitted?t.emit("error",new Error("stream.unshift() after end event")):b(t,s,e,!0):s.ended?t.emit("error",new Error("stream.push() after EOF")):(s.reading=!1,s.decoder&&!n?(e=s.decoder.write(e),s.objectMode||0!==e.length?b(t,s,e,!1):N(t,s)):b(t,s,e,!1))):i||(s.reading=!1));return function(t){return!t.ended&&(t.needReadable||t.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=8388608?t=8388608:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function v(t){var e=t._readableState;e.needReadable=!1,e.emittedReadable||(p("emitReadable",e.flowing),e.emittedReadable=!0,e.sync?o.nextTick(C,t):C(t))}function C(t){p("emit readable"),t.emit("readable"),w(t)}function N(t,e){e.readingMore||(e.readingMore=!0,o.nextTick(T,t,e))}function T(t,e){for(var n=e.length;!e.reading&&!e.flowing&&!e.ended&&e.length=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.head.data:e.buffer.concat(e.length),e.buffer.clear()):n=function(t,e,n){var i;tr.length?r.length:t;if(s===r.length?o+=r:o+=r.slice(0,t),0===(t-=s)){s===r.length?(++i,n.next?e.head=n.next:e.head=e.tail=null):(e.head=n,n.data=r.slice(s));break}++i}return e.length-=i,o}(t,e):function(t,e){var n=l.allocUnsafe(t),i=e.head,o=1;i.data.copy(n),t-=i.data.length;for(;i=i.next;){var r=i.data,s=t>r.length?r.length:t;if(r.copy(n,n.length-t,0,s),0===(t-=s)){s===r.length?(++o,i.next?e.head=i.next:e.head=e.tail=null):(e.head=i,i.data=r.slice(s));break}++o}return e.length-=o,n}(t,e);return i}(t,e.buffer,e.decoder),n);var n}function R(t){var e=t._readableState;if(e.length>0)throw new Error('"endReadable()" called on non-empty stream');e.endEmitted||(e.ended=!0,o.nextTick(A,e,t))}function A(t,e){t.endEmitted||0!==t.length||(t.endEmitted=!0,e.readable=!1,e.emit("end"))}function x(t,e){for(var n=0,i=t.length;n=e.highWaterMark||e.ended))return p("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?R(this):v(this),null;if(0===(t=S(t,e))&&e.ended)return 0===e.length&&R(this),null;var i,o=e.needReadable;return p("need readable",o),(0===e.length||e.length-t0?O(t,e):null)?(e.needReadable=!0,t=0):e.length-=t,0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&R(this)),null!==i&&this.emit("data",i),i},E.prototype._read=function(t){this.emit("error",new Error("_read() is not implemented"))},E.prototype.pipe=function(t,e){var n=this,r=this._readableState;switch(r.pipesCount){case 0:r.pipes=t;break;case 1:r.pipes=[r.pipes,t];break;default:r.pipes.push(t)}r.pipesCount+=1,p("pipe count=%d opts=%j",r.pipesCount,e);var c=(!e||!1!==e.end)&&t!==i.stdout&&t!==i.stderr?u:E;function l(e,i){p("onunpipe"),e===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,p("cleanup"),t.removeListener("close",g),t.removeListener("finish",$),t.removeListener("drain",h),t.removeListener("error",f),t.removeListener("unpipe",l),n.removeListener("end",u),n.removeListener("end",E),n.removeListener("data",m),d=!0,!r.awaitDrain||t._writableState&&!t._writableState.needDrain||h())}function u(){p("onend"),t.end()}r.endEmitted?o.nextTick(c):n.once("end",c),t.on("unpipe",l);var h=function(t){return function(){var e=t._readableState;p("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&a(t,"data")&&(e.flowing=!0,w(t))}}(n);t.on("drain",h);var d=!1;var _=!1;function m(e){p("ondata"),_=!1,!1!==t.write(e)||_||((1===r.pipesCount&&r.pipes===t||r.pipesCount>1&&-1!==x(r.pipes,t))&&!d&&(p("false write response, pause",n._readableState.awaitDrain),n._readableState.awaitDrain++,_=!0),n.pause())}function f(e){p("onerror",e),E(),t.removeListener("error",f),0===a(t,"error")&&t.emit("error",e)}function g(){t.removeListener("finish",$),E()}function $(){p("onfinish"),t.removeListener("close",g),E()}function E(){p("unpipe"),n.unpipe(t)}return n.on("data",m),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?s(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",f),t.once("close",g),t.once("finish",$),t.emit("pipe",n),r.flowing||(p("pipe resume"),n.resume()),t},E.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var i=e.pipes,o=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var r=0;r=0&&(t._idleTimeoutId=setTimeout((function(){t._onTimeout&&t._onTimeout()}),e))},n(589),e.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==t&&t.setImmediate||this&&this.setImmediate,e.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==t&&t.clearImmediate||this&&this.clearImmediate}).call(this,n(55))},function(t,e,n){(function(t,e){!function(t,n){"use strict";if(!t.setImmediate){var i,o,r,s,a,c=1,l={},u=!1,h=t.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(t);d=d&&d.setTimeout?d:t,"[object process]"==={}.toString.call(t.process)?i=function(t){e.nextTick((function(){_(t)}))}:!function(){if(t.postMessage&&!t.importScripts){var e=!0,n=t.onmessage;return t.onmessage=function(){e=!1},t.postMessage("","*"),t.onmessage=n,e}}()?t.MessageChannel?((r=new MessageChannel).port1.onmessage=function(t){_(t.data)},i=function(t){r.port2.postMessage(t)}):h&&"onreadystatechange"in h.createElement("script")?(o=h.documentElement,i=function(t){var e=h.createElement("script");e.onreadystatechange=function(){_(t),e.onreadystatechange=null,o.removeChild(e),e=null},o.appendChild(e)}):i=function(t){setTimeout(_,0,t)}:(s="setImmediate$"+Math.random()+"$",a=function(e){e.source===t&&"string"==typeof e.data&&0===e.data.indexOf(s)&&_(+e.data.slice(s.length))},t.addEventListener?t.addEventListener("message",a,!1):t.attachEvent("onmessage",a),i=function(e){t.postMessage(s+e,"*")}),d.setImmediate=function(t){"function"!=typeof t&&(t=new Function(""+t));for(var e=new Array(arguments.length-1),n=0;nn)?e=("rmd160"===t?new c:l(t)).update(e).digest():e.lengthn||e!=e)throw new TypeError("Bad key length")}},function(t,e,n){(function(e,n){var i;if(e.process&&e.process.browser)i="utf-8";else if(e.process&&e.process.version){i=parseInt(n.version.split(".")[0].slice(1),10)>=6?"utf-8":"binary"}else i="utf-8";t.exports=i}).call(this,n(55),n(37))},function(t,e,n){var i=n(592),o=n(371),r=n(372),s=n(27).Buffer,a=n(595),c=n(596),l=n(598),u=s.alloc(128),h={md5:16,sha1:20,sha224:28,sha256:32,sha384:48,sha512:64,rmd160:20,ripemd160:20};function d(t,e,n){var a=function(t){function e(e){return r(t).update(e).digest()}return"rmd160"===t||"ripemd160"===t?function(t){return(new o).update(t).digest()}:"md5"===t?i:e}(t),c="sha512"===t||"sha384"===t?128:64;e.length>c?e=a(e):e.length>>0},e.writeUInt32BE=function(t,e,n){t[0+n]=e>>>24,t[1+n]=e>>>16&255,t[2+n]=e>>>8&255,t[3+n]=255&e},e.ip=function(t,e,n,i){for(var o=0,r=0,s=6;s>=0;s-=2){for(var a=0;a<=24;a+=8)o<<=1,o|=e>>>a+s&1;for(a=0;a<=24;a+=8)o<<=1,o|=t>>>a+s&1}for(s=6;s>=0;s-=2){for(a=1;a<=25;a+=8)r<<=1,r|=e>>>a+s&1;for(a=1;a<=25;a+=8)r<<=1,r|=t>>>a+s&1}n[i+0]=o>>>0,n[i+1]=r>>>0},e.rip=function(t,e,n,i){for(var o=0,r=0,s=0;s<4;s++)for(var a=24;a>=0;a-=8)o<<=1,o|=e>>>a+s&1,o<<=1,o|=t>>>a+s&1;for(s=4;s<8;s++)for(a=24;a>=0;a-=8)r<<=1,r|=e>>>a+s&1,r<<=1,r|=t>>>a+s&1;n[i+0]=o>>>0,n[i+1]=r>>>0},e.pc1=function(t,e,n,i){for(var o=0,r=0,s=7;s>=5;s--){for(var a=0;a<=24;a+=8)o<<=1,o|=e>>a+s&1;for(a=0;a<=24;a+=8)o<<=1,o|=t>>a+s&1}for(a=0;a<=24;a+=8)o<<=1,o|=e>>a+s&1;for(s=1;s<=3;s++){for(a=0;a<=24;a+=8)r<<=1,r|=e>>a+s&1;for(a=0;a<=24;a+=8)r<<=1,r|=t>>a+s&1}for(a=0;a<=24;a+=8)r<<=1,r|=t>>a+s&1;n[i+0]=o>>>0,n[i+1]=r>>>0},e.r28shl=function(t,e){return t<>>28-e};var i=[14,11,17,4,27,23,25,0,13,22,7,18,5,9,16,24,2,20,12,21,1,8,15,26,15,4,25,19,9,1,26,16,5,11,23,8,12,7,17,0,22,3,10,14,6,20,27,24];e.pc2=function(t,e,n,o){for(var r=0,s=0,a=i.length>>>1,c=0;c>>i[c]&1;for(c=a;c>>i[c]&1;n[o+0]=r>>>0,n[o+1]=s>>>0},e.expand=function(t,e,n){var i=0,o=0;i=(1&t)<<5|t>>>27;for(var r=23;r>=15;r-=4)i<<=6,i|=t>>>r&63;for(r=11;r>=3;r-=4)o|=t>>>r&63,o<<=6;o|=(31&t)<<1|t>>>31,e[n+0]=i>>>0,e[n+1]=o>>>0};var o=[14,0,4,15,13,7,1,4,2,14,15,2,11,13,8,1,3,10,10,6,6,12,12,11,5,9,9,5,0,3,7,8,4,15,1,12,14,8,8,2,13,4,6,9,2,1,11,7,15,5,12,11,9,3,7,14,3,10,10,0,5,6,0,13,15,3,1,13,8,4,14,7,6,15,11,2,3,8,4,14,9,12,7,0,2,1,13,10,12,6,0,9,5,11,10,5,0,13,14,8,7,10,11,1,10,3,4,15,13,4,1,2,5,11,8,6,12,7,6,12,9,0,3,5,2,14,15,9,10,13,0,7,9,0,14,9,6,3,3,4,15,6,5,10,1,2,13,8,12,5,7,14,11,12,4,11,2,15,8,1,13,1,6,10,4,13,9,0,8,6,15,9,3,8,0,7,11,4,1,15,2,14,12,3,5,11,10,5,14,2,7,12,7,13,13,8,14,11,3,5,0,6,6,15,9,0,10,3,1,4,2,7,8,2,5,12,11,1,12,10,4,14,15,9,10,3,6,15,9,0,0,6,12,10,11,1,7,13,13,8,15,9,1,4,3,5,14,11,5,12,2,7,8,2,4,14,2,14,12,11,4,2,1,12,7,4,10,7,11,13,6,1,8,5,5,0,3,15,15,10,13,3,0,9,14,8,9,6,4,11,2,8,1,12,11,7,10,1,13,14,7,2,8,13,15,6,9,15,12,0,5,9,6,10,3,4,0,5,14,3,12,10,1,15,10,4,15,2,9,7,2,12,6,9,8,5,0,6,13,1,3,13,4,14,14,0,7,11,5,3,11,8,9,4,14,3,15,2,5,12,2,9,8,5,12,15,3,10,7,11,0,14,4,1,10,7,1,6,13,0,11,8,6,13,4,13,11,0,2,11,14,7,15,4,0,9,8,1,13,10,3,14,12,3,9,5,7,12,5,2,10,15,6,8,1,6,1,6,4,11,11,13,13,8,12,1,3,4,7,10,14,7,10,9,15,5,6,0,8,15,0,14,5,2,9,3,2,12,13,1,2,15,8,13,4,8,6,10,15,3,11,7,1,4,10,12,9,5,3,6,14,11,5,0,0,14,12,9,7,2,7,2,11,1,4,14,1,7,9,4,12,10,14,8,2,13,0,15,6,12,10,9,13,0,15,3,3,5,5,6,8,11];e.substitute=function(t,e){for(var n=0,i=0;i<4;i++){n<<=4,n|=o[64*i+(t>>>18-6*i&63)]}for(i=0;i<4;i++){n<<=4,n|=o[256+64*i+(e>>>18-6*i&63)]}return n>>>0};var r=[16,25,12,11,3,20,4,15,31,17,9,6,27,14,1,22,30,24,8,18,0,5,29,23,13,19,2,26,10,21,28,7];e.permute=function(t){for(var e=0,n=0;n>>r[n]&1;return e>>>0},e.padSplit=function(t,e,n){for(var i=t.toString(2);i.length>>1];n=r.r28shl(n,a),o=r.r28shl(o,a),r.pc2(n,o,t.keys,s)}},c.prototype._update=function(t,e,n,i){var o=this._desState,s=r.readUInt32BE(t,e),a=r.readUInt32BE(t,e+4);r.ip(s,a,o.tmp,0),s=o.tmp[0],a=o.tmp[1],"encrypt"===this.type?this._encrypt(o,s,a,o.tmp,0):this._decrypt(o,s,a,o.tmp,0),s=o.tmp[0],a=o.tmp[1],r.writeUInt32BE(n,s,i),r.writeUInt32BE(n,a,i+4)},c.prototype._pad=function(t,e){for(var n=t.length-e,i=e;i>>0,s=d}r.rip(a,s,i,o)},c.prototype._decrypt=function(t,e,n,i,o){for(var s=n,a=e,c=t.keys.length-2;c>=0;c-=2){var l=t.keys[c],u=t.keys[c+1];r.expand(s,t.tmp,0),l^=t.tmp[0],u^=t.tmp[1];var h=r.substitute(l,u),d=s;s=(a^r.permute(h))>>>0,a=d}r.rip(s,a,i,o)}},function(t,e,n){var i=n(234),o=n(27).Buffer,r=n(602);function s(t){var e=t._cipher.encryptBlockRaw(t._prev);return r(t._prev),e}e.encrypt=function(t,e){var n=Math.ceil(e.length/16),r=t._cache.length;t._cache=o.concat([t._cache,o.allocUnsafe(16*n)]);for(var a=0;at;)n.ishrn(1);if(n.isEven()&&n.iadd(a),n.testn(1)||n.iadd(c),e.cmp(c)){if(!e.cmp(l))for(;n.mod(u).cmp(h);)n.iadd(p)}else for(;n.mod(r).cmp(d);)n.iadd(p);if(f(_=n.shrn(1))&&f(n)&&g(_)&&g(n)&&s.test(_)&&s.test(n))return n}}},function(t,e,n){var i=n(51),o=n(379);function r(t){this.rand=t||new o.Rand}t.exports=r,r.create=function(t){return new r(t)},r.prototype._randbelow=function(t){var e=t.bitLength(),n=Math.ceil(e/8);do{var o=new i(this.rand.generate(n))}while(o.cmp(t)>=0);return o},r.prototype._randrange=function(t,e){var n=e.sub(t);return t.add(this._randbelow(n))},r.prototype.test=function(t,e,n){var o=t.bitLength(),r=i.mont(t),s=new i(1).toRed(r);e||(e=Math.max(1,o/48|0));for(var a=t.subn(1),c=0;!a.testn(c);c++);for(var l=t.shrn(c),u=a.toRed(r);e>0;e--){var h=this._randrange(new i(2),a);n&&n(h);var d=h.toRed(r).redPow(l);if(0!==d.cmp(s)&&0!==d.cmp(u)){for(var p=1;p0;e--){var u=this._randrange(new i(2),s),h=t.gcd(u);if(0!==h.cmpn(1))return h;var d=u.toRed(o).redPow(c);if(0!==d.cmp(r)&&0!==d.cmp(l)){for(var p=1;p0)if("string"==typeof e||s.objectMode||Object.getPrototypeOf(e)===a.prototype||(e=function(t){return a.from(t)}(e)),i)s.endEmitted?S(t,new b):L(t,s,e,!0);else if(s.ended)S(t,new E);else{if(s.destroyed)return!1;s.reading=!1,s.decoder&&!n?(e=s.decoder.write(e),s.objectMode||0!==e.length?L(t,s,e,!1):R(t,s)):L(t,s,e,!1)}else i||(s.reading=!1,R(t,s));return!s.ended&&(s.lengthe.highWaterMark&&(e.highWaterMark=function(t){return t>=1073741824?t=1073741824:(t--,t|=t>>>1,t|=t>>>2,t|=t>>>4,t|=t>>>8,t|=t>>>16,t++),t}(t)),t<=e.length?t:e.ended?e.length:(e.needReadable=!0,0))}function w(t){var e=t._readableState;l("emitReadable",e.needReadable,e.emittedReadable),e.needReadable=!1,e.emittedReadable||(l("emitReadable",e.flowing),e.emittedReadable=!0,i.nextTick(O,t))}function O(t){var e=t._readableState;l("emitReadable_",e.destroyed,e.length,e.ended),e.destroyed||!e.length&&!e.ended||(t.emit("readable"),e.emittedReadable=!1),e.needReadable=!e.flowing&&!e.ended&&e.length<=e.highWaterMark,D(t)}function R(t,e){e.readingMore||(e.readingMore=!0,i.nextTick(A,t,e))}function A(t,e){for(;!e.reading&&!e.ended&&(e.length0,e.resumeScheduled&&!e.paused?e.flowing=!0:t.listenerCount("data")>0&&t.resume()}function I(t){l("readable nexttick read 0"),t.read(0)}function U(t,e){l("resume",e.reading),e.reading||t.read(0),e.resumeScheduled=!1,t.emit("resume"),D(t),e.flowing&&!e.reading&&t.read(0)}function D(t){var e=t._readableState;for(l("flow",e.flowing);e.flowing&&null!==t.read(););}function P(t,e){return 0===e.length?null:(e.objectMode?n=e.buffer.shift():!t||t>=e.length?(n=e.decoder?e.buffer.join(""):1===e.buffer.length?e.buffer.first():e.buffer.concat(e.length),e.buffer.clear()):n=e.buffer.consume(t,e.decoder),n);var n}function M(t){var e=t._readableState;l("endReadable",e.endEmitted),e.endEmitted||(e.ended=!0,i.nextTick(k,e,t))}function k(t,e){if(l("endReadableNT",t.endEmitted,t.length),!t.endEmitted&&0===t.length&&(t.endEmitted=!0,e.readable=!1,e.emit("end"),t.autoDestroy)){var n=e._writableState;(!n||n.autoDestroy&&n.finished)&&e.destroy()}}function j(t,e){for(var n=0,i=t.length;n=e.highWaterMark:e.length>0)||e.ended))return l("read: emitReadable",e.length,e.ended),0===e.length&&e.ended?M(this):w(this),null;if(0===(t=z(t,e))&&e.ended)return 0===e.length&&M(this),null;var i,o=e.needReadable;return l("need readable",o),(0===e.length||e.length-t0?P(t,e):null)?(e.needReadable=e.length<=e.highWaterMark,t=0):(e.length-=t,e.awaitDrain=0),0===e.length&&(e.ended||(e.needReadable=!0),n!==t&&e.ended&&M(this)),null!==i&&this.emit("data",i),i},N.prototype._read=function(t){S(this,new y("_read()"))},N.prototype.pipe=function(t,e){var n=this,o=this._readableState;switch(o.pipesCount){case 0:o.pipes=t;break;case 1:o.pipes=[o.pipes,t];break;default:o.pipes.push(t)}o.pipesCount+=1,l("pipe count=%d opts=%j",o.pipesCount,e);var s=(!e||!1!==e.end)&&t!==i.stdout&&t!==i.stderr?c:f;function a(e,i){l("onunpipe"),e===n&&i&&!1===i.hasUnpiped&&(i.hasUnpiped=!0,l("cleanup"),t.removeListener("close",_),t.removeListener("finish",m),t.removeListener("drain",u),t.removeListener("error",p),t.removeListener("unpipe",a),n.removeListener("end",c),n.removeListener("end",f),n.removeListener("data",d),h=!0,!o.awaitDrain||t._writableState&&!t._writableState.needDrain||u())}function c(){l("onend"),t.end()}o.endEmitted?i.nextTick(s):n.once("end",s),t.on("unpipe",a);var u=function(t){return function(){var e=t._readableState;l("pipeOnDrain",e.awaitDrain),e.awaitDrain&&e.awaitDrain--,0===e.awaitDrain&&r(t,"data")&&(e.flowing=!0,D(t))}}(n);t.on("drain",u);var h=!1;function d(e){l("ondata");var i=t.write(e);l("dest.write",i),!1===i&&((1===o.pipesCount&&o.pipes===t||o.pipesCount>1&&-1!==j(o.pipes,t))&&!h&&(l("false write response, pause",o.awaitDrain),o.awaitDrain++),n.pause())}function p(e){l("onerror",e),f(),t.removeListener("error",p),0===r(t,"error")&&S(t,e)}function _(){t.removeListener("finish",m),f()}function m(){l("onfinish"),t.removeListener("close",_),f()}function f(){l("unpipe"),n.unpipe(t)}return n.on("data",d),function(t,e,n){if("function"==typeof t.prependListener)return t.prependListener(e,n);t._events&&t._events[e]?Array.isArray(t._events[e])?t._events[e].unshift(n):t._events[e]=[n,t._events[e]]:t.on(e,n)}(t,"error",p),t.once("close",_),t.once("finish",m),t.emit("pipe",n),o.flowing||(l("pipe resume"),n.resume()),t},N.prototype.unpipe=function(t){var e=this._readableState,n={hasUnpiped:!1};if(0===e.pipesCount)return this;if(1===e.pipesCount)return t&&t!==e.pipes||(t||(t=e.pipes),e.pipes=null,e.pipesCount=0,e.flowing=!1,t&&t.emit("unpipe",this,n)),this;if(!t){var i=e.pipes,o=e.pipesCount;e.pipes=null,e.pipesCount=0,e.flowing=!1;for(var r=0;r0,!1!==o.flowing&&this.resume()):"readable"===t&&(o.endEmitted||o.readableListening||(o.readableListening=o.needReadable=!0,o.flowing=!1,o.emittedReadable=!1,l("on readable",o.length,o.reading),o.length?w(this):o.reading||i.nextTick(I,this))),n},N.prototype.addListener=N.prototype.on,N.prototype.removeListener=function(t,e){var n=s.prototype.removeListener.call(this,t,e);return"readable"===t&&i.nextTick(x,this),n},N.prototype.removeAllListeners=function(t){var e=s.prototype.removeAllListeners.apply(this,arguments);return"readable"!==t&&void 0!==t||i.nextTick(x,this),e},N.prototype.resume=function(){var t=this._readableState;return t.flowing||(l("resume"),t.flowing=!t.readableListening,function(t,e){e.resumeScheduled||(e.resumeScheduled=!0,i.nextTick(U,t,e))}(this,t)),t.paused=!1,this},N.prototype.pause=function(){return l("call pause flowing=%j",this._readableState.flowing),!1!==this._readableState.flowing&&(l("pause"),this._readableState.flowing=!1,this.emit("pause")),this._readableState.paused=!0,this},N.prototype.wrap=function(t){var e=this,n=this._readableState,i=!1;for(var o in t.on("end",(function(){if(l("wrapped end"),n.decoder&&!n.ended){var t=n.decoder.end();t&&t.length&&e.push(t)}e.push(null)})),t.on("data",(function(o){(l("wrapped data"),n.decoder&&(o=n.decoder.write(o)),n.objectMode&&null==o)||(n.objectMode||o&&o.length)&&(e.push(o)||(i=!0,t.pause()))})),t)void 0===this[o]&&"function"==typeof t[o]&&(this[o]=function(e){return function(){return t[e].apply(t,arguments)}}(o));for(var r=0;r-1))throw new b(t);return this._writableState.defaultEncoding=t,this},Object.defineProperty(N.prototype,"writableBuffer",{enumerable:!1,get:function(){return this._writableState&&this._writableState.getBuffer()}}),Object.defineProperty(N.prototype,"writableHighWaterMark",{enumerable:!1,get:function(){return this._writableState.highWaterMark}}),N.prototype._write=function(t,e,n){n(new m("_write()"))},N.prototype._writev=null,N.prototype.end=function(t,e,n){var o=this._writableState;return"function"==typeof t?(n=t,t=null,e=null):"function"==typeof e&&(n=e,e=null),null!=t&&this.write(t,e),o.corked&&(o.corked=1,this.uncork()),o.ending||function(t,e,n){e.ending=!0,R(t,e),n&&(e.finished?i.nextTick(n):t.once("finish",n));e.ended=!0,t.writable=!1}(this,o,n),this},Object.defineProperty(N.prototype,"writableLength",{enumerable:!1,get:function(){return this._writableState.length}}),Object.defineProperty(N.prototype,"destroyed",{enumerable:!1,get:function(){return void 0!==this._writableState&&this._writableState.destroyed},set:function(t){this._writableState&&(this._writableState.destroyed=t)}}),N.prototype.destroy=h.destroy,N.prototype._undestroy=h.undestroy,N.prototype._destroy=function(t,e){e(t)}}).call(this,n(55),n(37))},function(t,e,n){"use strict";t.exports=u;var i=n(179).codes,o=i.ERR_METHOD_NOT_IMPLEMENTED,r=i.ERR_MULTIPLE_CALLBACK,s=i.ERR_TRANSFORM_ALREADY_TRANSFORMING,a=i.ERR_TRANSFORM_WITH_LENGTH_0,c=n(180);function l(t,e){var n=this._transformState;n.transforming=!1;var i=n.writecb;if(null===i)return this.emit("error",new r);n.writechunk=null,n.writecb=null,null!=e&&this.push(e),i(t);var o=this._readableState;o.reading=!1,(o.needReadable||o.length>8,s=255&o;r?n.push(r,s):n.push(s)}return n},i.zero2=o,i.toHex=r,i.encode=function(t,e){return"hex"===e?r(t):t}},function(t,e,n){"use strict";var i=e;i.base=n(290),i.short=n(821),i.mont=n(822),i.edwards=n(823)},function(t,e,n){"use strict";var i=n(102).rotr32;function o(t,e,n){return t&e^~t&n}function r(t,e,n){return t&e^t&n^e&n}function s(t,e,n){return t^e^n}e.ft_1=function(t,e,n,i){return 0===t?o(e,n,i):1===t||3===t?s(e,n,i):2===t?r(e,n,i):void 0},e.ch32=o,e.maj32=r,e.p32=s,e.s0_256=function(t){return i(t,2)^i(t,13)^i(t,22)},e.s1_256=function(t){return i(t,6)^i(t,11)^i(t,25)},e.g0_256=function(t){return i(t,7)^i(t,18)^t>>>3},e.g1_256=function(t){return i(t,17)^i(t,19)^t>>>10}},function(t,e,n){"use strict";var i=n(102),o=n(235),r=n(616),s=n(86),a=i.sum32,c=i.sum32_4,l=i.sum32_5,u=r.ch32,h=r.maj32,d=r.s0_256,p=r.s1_256,_=r.g0_256,m=r.g1_256,f=o.BlockHash,g=[1116352408,1899447441,3049323471,3921009573,961987163,1508970993,2453635748,2870763221,3624381080,310598401,607225278,1426881987,1925078388,2162078206,2614888103,3248222580,3835390401,4022224774,264347078,604807628,770255983,1249150122,1555081692,1996064986,2554220882,2821834349,2952996808,3210313671,3336571891,3584528711,113926993,338241895,666307205,773529912,1294757372,1396182291,1695183700,1986661051,2177026350,2456956037,2730485921,2820302411,3259730800,3345764771,3516065817,3600352804,4094571909,275423344,430227734,506948616,659060556,883997877,958139571,1322822218,1537002063,1747873779,1955562222,2024104815,2227730452,2361852424,2428436474,2756734187,3204031479,3329325298];function $(){if(!(this instanceof $))return new $;f.call(this),this.h=[1779033703,3144134277,1013904242,2773480762,1359893119,2600822924,528734635,1541459225],this.k=g,this.W=new Array(64)}i.inherits($,f),t.exports=$,$.blockSize=512,$.outSize=256,$.hmacStrength=192,$.padLength=64,$.prototype._update=function(t,e){for(var n=this.W,i=0;i<16;i++)n[i]=t[e+i];for(;i=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void i(!1,"Invalid character in "+t)}function c(t,e,n){var i=a(t,n);return n-1>=e&&(i|=a(t,n-1)<<4),i}function l(t,e,n,o){for(var r=0,s=0,a=Math.min(t.length,n),c=e;c=49?l-49+10:l>=17?l-17+10:l,i(l>=0&&s0?t:e},r.min=function(t,e){return t.cmp(e)<0?t:e},r.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),i(e===(0|e)&&e>=2&&e<=36);var o=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(o++,this.negative=1),o=0;o-=3)s=t[o]|t[o-1]<<8|t[o-2]<<16,this.words[r]|=s<>>26-a&67108863,(a+=24)>=26&&(a-=26,r++);else if("le"===n)for(o=0,r=0;o>>26-a&67108863,(a+=24)>=26&&(a-=26,r++);return this._strip()},r.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i=e;i-=2)o=c(t,e,i)<=18?(r-=18,s+=1,this.words[s]|=o>>>26):r+=8;else for(i=(t.length-e)%2==0?e+1:e;i=18?(r-=18,s+=1,this.words[s]|=o>>>26):r+=8;this._strip()},r.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var i=0,o=1;o<=67108863;o*=e)i++;i--,o=o/e|0;for(var r=t.length-n,s=r%i,a=Math.min(r,r-s)+n,c=0,u=n;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},r.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{r.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch(t){r.prototype.inspect=h}else r.prototype.inspect=h;function h(){return(this.red?""}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],_=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];r.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var o=0,r=0,s=0;s>>24-o&16777215)||s!==this.length-1?d[6-c.length]+c+n:c+n,(o+=2)>=26&&(o-=26,s--)}for(0!==r&&(n=r.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var l=p[t],u=_[t];n="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modrn(u).toString(t);n=(h=h.idivn(u)).isZero()?m+n:d[l-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!1,"Base should be between 2 and 36")},r.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},r.prototype.toJSON=function(){return this.toString(16,2)},s&&(r.prototype.toBuffer=function(t,e){return this.toArrayLike(s,t,e)}),r.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function m(t,e,n){n.negative=e.negative^t.negative;var i=t.length+e.length|0;n.length=i,i=i-1|0;var o=0|t.words[0],r=0|e.words[0],s=o*r,a=67108863&s,c=s/67108864|0;n.words[0]=a;for(var l=1;l>>26,h=67108863&c,d=Math.min(l,e.length-1),p=Math.max(0,l-t.length+1);p<=d;p++){var _=l-p|0;u+=(s=(o=0|t.words[_])*(r=0|e.words[p])+h)/67108864|0,h=67108863&s}n.words[l]=0|h,c=0|u}return 0!==c?n.words[l]=0|c:n.length--,n._strip()}r.prototype.toArrayLike=function(t,e,n){this._strip();var o=this.byteLength(),r=n||Math.max(1,o);i(o<=r,"byte array longer than desired length"),i(r>0,"Requested array length <= 0");var s=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,r);return this["_toArrayLike"+("le"===e?"LE":"BE")](s,o),s},r.prototype._toArrayLikeLE=function(t,e){for(var n=0,i=0,o=0,r=0;o>8&255),n>16&255),6===r?(n>24&255),i=0,r=0):(i=s>>>24,r+=2)}if(n=0&&(t[n--]=s>>8&255),n>=0&&(t[n--]=s>>16&255),6===r?(n>=0&&(t[n--]=s>>24&255),i=0,r=0):(i=s>>>24,r+=2)}if(n>=0)for(t[n--]=i;n>=0;)t[n--]=0},Math.clz32?r.prototype._countBits=function(t){return 32-Math.clz32(t)}:r.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},r.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},r.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},r.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},r.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},r.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},r.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},r.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var i=0;it.length?this.clone().ixor(t):t.clone().ixor(this)},r.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},r.prototype.inotn=function(t){i("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var o=0;o0&&(this.words[o]=~this.words[o]&67108863>>26-n),this._strip()},r.prototype.notn=function(t){return this.clone().inotn(t)},r.prototype.setn=function(t,e){i("number"==typeof t&&t>=0);var n=t/26|0,o=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(n=this,i=t):(n=t,i=this);for(var o=0,r=0;r>>26;for(;0!==o&&r>>26;if(this.length=n.length,0!==o)this.words[this.length]=o,this.length++;else if(n!==this)for(;rt.length?this.clone().iadd(t):t.clone().iadd(this)},r.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,i,o=this.cmp(t);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(n=this,i=t):(n=t,i=this);for(var r=0,s=0;s>26,this.words[s]=67108863&e;for(;0!==r&&s>26,this.words[s]=67108863&e;if(0===r&&s>>13,p=0|s[1],_=8191&p,m=p>>>13,f=0|s[2],g=8191&f,$=f>>>13,E=0|s[3],y=8191&E,b=E>>>13,S=0|s[4],v=8191&S,C=S>>>13,N=0|s[5],T=8191&N,L=N>>>13,z=0|s[6],w=8191&z,O=z>>>13,R=0|s[7],A=8191&R,x=R>>>13,I=0|s[8],U=8191&I,D=I>>>13,P=0|s[9],M=8191&P,k=P>>>13,j=0|a[0],G=8191&j,q=j>>>13,F=0|a[1],B=8191&F,W=F>>>13,H=0|a[2],V=8191&H,K=H>>>13,X=0|a[3],J=8191&X,Y=X>>>13,Q=0|a[4],Z=8191&Q,tt=Q>>>13,et=0|a[5],nt=8191&et,it=et>>>13,ot=0|a[6],rt=8191&ot,st=ot>>>13,at=0|a[7],ct=8191&at,lt=at>>>13,ut=0|a[8],ht=8191&ut,dt=ut>>>13,pt=0|a[9],_t=8191&pt,mt=pt>>>13;n.negative=t.negative^e.negative,n.length=19;var ft=(l+(i=Math.imul(h,G))|0)+((8191&(o=(o=Math.imul(h,q))+Math.imul(d,G)|0))<<13)|0;l=((r=Math.imul(d,q))+(o>>>13)|0)+(ft>>>26)|0,ft&=67108863,i=Math.imul(_,G),o=(o=Math.imul(_,q))+Math.imul(m,G)|0,r=Math.imul(m,q);var gt=(l+(i=i+Math.imul(h,B)|0)|0)+((8191&(o=(o=o+Math.imul(h,W)|0)+Math.imul(d,B)|0))<<13)|0;l=((r=r+Math.imul(d,W)|0)+(o>>>13)|0)+(gt>>>26)|0,gt&=67108863,i=Math.imul(g,G),o=(o=Math.imul(g,q))+Math.imul($,G)|0,r=Math.imul($,q),i=i+Math.imul(_,B)|0,o=(o=o+Math.imul(_,W)|0)+Math.imul(m,B)|0,r=r+Math.imul(m,W)|0;var $t=(l+(i=i+Math.imul(h,V)|0)|0)+((8191&(o=(o=o+Math.imul(h,K)|0)+Math.imul(d,V)|0))<<13)|0;l=((r=r+Math.imul(d,K)|0)+(o>>>13)|0)+($t>>>26)|0,$t&=67108863,i=Math.imul(y,G),o=(o=Math.imul(y,q))+Math.imul(b,G)|0,r=Math.imul(b,q),i=i+Math.imul(g,B)|0,o=(o=o+Math.imul(g,W)|0)+Math.imul($,B)|0,r=r+Math.imul($,W)|0,i=i+Math.imul(_,V)|0,o=(o=o+Math.imul(_,K)|0)+Math.imul(m,V)|0,r=r+Math.imul(m,K)|0;var Et=(l+(i=i+Math.imul(h,J)|0)|0)+((8191&(o=(o=o+Math.imul(h,Y)|0)+Math.imul(d,J)|0))<<13)|0;l=((r=r+Math.imul(d,Y)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,i=Math.imul(v,G),o=(o=Math.imul(v,q))+Math.imul(C,G)|0,r=Math.imul(C,q),i=i+Math.imul(y,B)|0,o=(o=o+Math.imul(y,W)|0)+Math.imul(b,B)|0,r=r+Math.imul(b,W)|0,i=i+Math.imul(g,V)|0,o=(o=o+Math.imul(g,K)|0)+Math.imul($,V)|0,r=r+Math.imul($,K)|0,i=i+Math.imul(_,J)|0,o=(o=o+Math.imul(_,Y)|0)+Math.imul(m,J)|0,r=r+Math.imul(m,Y)|0;var yt=(l+(i=i+Math.imul(h,Z)|0)|0)+((8191&(o=(o=o+Math.imul(h,tt)|0)+Math.imul(d,Z)|0))<<13)|0;l=((r=r+Math.imul(d,tt)|0)+(o>>>13)|0)+(yt>>>26)|0,yt&=67108863,i=Math.imul(T,G),o=(o=Math.imul(T,q))+Math.imul(L,G)|0,r=Math.imul(L,q),i=i+Math.imul(v,B)|0,o=(o=o+Math.imul(v,W)|0)+Math.imul(C,B)|0,r=r+Math.imul(C,W)|0,i=i+Math.imul(y,V)|0,o=(o=o+Math.imul(y,K)|0)+Math.imul(b,V)|0,r=r+Math.imul(b,K)|0,i=i+Math.imul(g,J)|0,o=(o=o+Math.imul(g,Y)|0)+Math.imul($,J)|0,r=r+Math.imul($,Y)|0,i=i+Math.imul(_,Z)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(m,Z)|0,r=r+Math.imul(m,tt)|0;var bt=(l+(i=i+Math.imul(h,nt)|0)|0)+((8191&(o=(o=o+Math.imul(h,it)|0)+Math.imul(d,nt)|0))<<13)|0;l=((r=r+Math.imul(d,it)|0)+(o>>>13)|0)+(bt>>>26)|0,bt&=67108863,i=Math.imul(w,G),o=(o=Math.imul(w,q))+Math.imul(O,G)|0,r=Math.imul(O,q),i=i+Math.imul(T,B)|0,o=(o=o+Math.imul(T,W)|0)+Math.imul(L,B)|0,r=r+Math.imul(L,W)|0,i=i+Math.imul(v,V)|0,o=(o=o+Math.imul(v,K)|0)+Math.imul(C,V)|0,r=r+Math.imul(C,K)|0,i=i+Math.imul(y,J)|0,o=(o=o+Math.imul(y,Y)|0)+Math.imul(b,J)|0,r=r+Math.imul(b,Y)|0,i=i+Math.imul(g,Z)|0,o=(o=o+Math.imul(g,tt)|0)+Math.imul($,Z)|0,r=r+Math.imul($,tt)|0,i=i+Math.imul(_,nt)|0,o=(o=o+Math.imul(_,it)|0)+Math.imul(m,nt)|0,r=r+Math.imul(m,it)|0;var St=(l+(i=i+Math.imul(h,rt)|0)|0)+((8191&(o=(o=o+Math.imul(h,st)|0)+Math.imul(d,rt)|0))<<13)|0;l=((r=r+Math.imul(d,st)|0)+(o>>>13)|0)+(St>>>26)|0,St&=67108863,i=Math.imul(A,G),o=(o=Math.imul(A,q))+Math.imul(x,G)|0,r=Math.imul(x,q),i=i+Math.imul(w,B)|0,o=(o=o+Math.imul(w,W)|0)+Math.imul(O,B)|0,r=r+Math.imul(O,W)|0,i=i+Math.imul(T,V)|0,o=(o=o+Math.imul(T,K)|0)+Math.imul(L,V)|0,r=r+Math.imul(L,K)|0,i=i+Math.imul(v,J)|0,o=(o=o+Math.imul(v,Y)|0)+Math.imul(C,J)|0,r=r+Math.imul(C,Y)|0,i=i+Math.imul(y,Z)|0,o=(o=o+Math.imul(y,tt)|0)+Math.imul(b,Z)|0,r=r+Math.imul(b,tt)|0,i=i+Math.imul(g,nt)|0,o=(o=o+Math.imul(g,it)|0)+Math.imul($,nt)|0,r=r+Math.imul($,it)|0,i=i+Math.imul(_,rt)|0,o=(o=o+Math.imul(_,st)|0)+Math.imul(m,rt)|0,r=r+Math.imul(m,st)|0;var vt=(l+(i=i+Math.imul(h,ct)|0)|0)+((8191&(o=(o=o+Math.imul(h,lt)|0)+Math.imul(d,ct)|0))<<13)|0;l=((r=r+Math.imul(d,lt)|0)+(o>>>13)|0)+(vt>>>26)|0,vt&=67108863,i=Math.imul(U,G),o=(o=Math.imul(U,q))+Math.imul(D,G)|0,r=Math.imul(D,q),i=i+Math.imul(A,B)|0,o=(o=o+Math.imul(A,W)|0)+Math.imul(x,B)|0,r=r+Math.imul(x,W)|0,i=i+Math.imul(w,V)|0,o=(o=o+Math.imul(w,K)|0)+Math.imul(O,V)|0,r=r+Math.imul(O,K)|0,i=i+Math.imul(T,J)|0,o=(o=o+Math.imul(T,Y)|0)+Math.imul(L,J)|0,r=r+Math.imul(L,Y)|0,i=i+Math.imul(v,Z)|0,o=(o=o+Math.imul(v,tt)|0)+Math.imul(C,Z)|0,r=r+Math.imul(C,tt)|0,i=i+Math.imul(y,nt)|0,o=(o=o+Math.imul(y,it)|0)+Math.imul(b,nt)|0,r=r+Math.imul(b,it)|0,i=i+Math.imul(g,rt)|0,o=(o=o+Math.imul(g,st)|0)+Math.imul($,rt)|0,r=r+Math.imul($,st)|0,i=i+Math.imul(_,ct)|0,o=(o=o+Math.imul(_,lt)|0)+Math.imul(m,ct)|0,r=r+Math.imul(m,lt)|0;var Ct=(l+(i=i+Math.imul(h,ht)|0)|0)+((8191&(o=(o=o+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;l=((r=r+Math.imul(d,dt)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,i=Math.imul(M,G),o=(o=Math.imul(M,q))+Math.imul(k,G)|0,r=Math.imul(k,q),i=i+Math.imul(U,B)|0,o=(o=o+Math.imul(U,W)|0)+Math.imul(D,B)|0,r=r+Math.imul(D,W)|0,i=i+Math.imul(A,V)|0,o=(o=o+Math.imul(A,K)|0)+Math.imul(x,V)|0,r=r+Math.imul(x,K)|0,i=i+Math.imul(w,J)|0,o=(o=o+Math.imul(w,Y)|0)+Math.imul(O,J)|0,r=r+Math.imul(O,Y)|0,i=i+Math.imul(T,Z)|0,o=(o=o+Math.imul(T,tt)|0)+Math.imul(L,Z)|0,r=r+Math.imul(L,tt)|0,i=i+Math.imul(v,nt)|0,o=(o=o+Math.imul(v,it)|0)+Math.imul(C,nt)|0,r=r+Math.imul(C,it)|0,i=i+Math.imul(y,rt)|0,o=(o=o+Math.imul(y,st)|0)+Math.imul(b,rt)|0,r=r+Math.imul(b,st)|0,i=i+Math.imul(g,ct)|0,o=(o=o+Math.imul(g,lt)|0)+Math.imul($,ct)|0,r=r+Math.imul($,lt)|0,i=i+Math.imul(_,ht)|0,o=(o=o+Math.imul(_,dt)|0)+Math.imul(m,ht)|0,r=r+Math.imul(m,dt)|0;var Nt=(l+(i=i+Math.imul(h,_t)|0)|0)+((8191&(o=(o=o+Math.imul(h,mt)|0)+Math.imul(d,_t)|0))<<13)|0;l=((r=r+Math.imul(d,mt)|0)+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,i=Math.imul(M,B),o=(o=Math.imul(M,W))+Math.imul(k,B)|0,r=Math.imul(k,W),i=i+Math.imul(U,V)|0,o=(o=o+Math.imul(U,K)|0)+Math.imul(D,V)|0,r=r+Math.imul(D,K)|0,i=i+Math.imul(A,J)|0,o=(o=o+Math.imul(A,Y)|0)+Math.imul(x,J)|0,r=r+Math.imul(x,Y)|0,i=i+Math.imul(w,Z)|0,o=(o=o+Math.imul(w,tt)|0)+Math.imul(O,Z)|0,r=r+Math.imul(O,tt)|0,i=i+Math.imul(T,nt)|0,o=(o=o+Math.imul(T,it)|0)+Math.imul(L,nt)|0,r=r+Math.imul(L,it)|0,i=i+Math.imul(v,rt)|0,o=(o=o+Math.imul(v,st)|0)+Math.imul(C,rt)|0,r=r+Math.imul(C,st)|0,i=i+Math.imul(y,ct)|0,o=(o=o+Math.imul(y,lt)|0)+Math.imul(b,ct)|0,r=r+Math.imul(b,lt)|0,i=i+Math.imul(g,ht)|0,o=(o=o+Math.imul(g,dt)|0)+Math.imul($,ht)|0,r=r+Math.imul($,dt)|0;var Tt=(l+(i=i+Math.imul(_,_t)|0)|0)+((8191&(o=(o=o+Math.imul(_,mt)|0)+Math.imul(m,_t)|0))<<13)|0;l=((r=r+Math.imul(m,mt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,i=Math.imul(M,V),o=(o=Math.imul(M,K))+Math.imul(k,V)|0,r=Math.imul(k,K),i=i+Math.imul(U,J)|0,o=(o=o+Math.imul(U,Y)|0)+Math.imul(D,J)|0,r=r+Math.imul(D,Y)|0,i=i+Math.imul(A,Z)|0,o=(o=o+Math.imul(A,tt)|0)+Math.imul(x,Z)|0,r=r+Math.imul(x,tt)|0,i=i+Math.imul(w,nt)|0,o=(o=o+Math.imul(w,it)|0)+Math.imul(O,nt)|0,r=r+Math.imul(O,it)|0,i=i+Math.imul(T,rt)|0,o=(o=o+Math.imul(T,st)|0)+Math.imul(L,rt)|0,r=r+Math.imul(L,st)|0,i=i+Math.imul(v,ct)|0,o=(o=o+Math.imul(v,lt)|0)+Math.imul(C,ct)|0,r=r+Math.imul(C,lt)|0,i=i+Math.imul(y,ht)|0,o=(o=o+Math.imul(y,dt)|0)+Math.imul(b,ht)|0,r=r+Math.imul(b,dt)|0;var Lt=(l+(i=i+Math.imul(g,_t)|0)|0)+((8191&(o=(o=o+Math.imul(g,mt)|0)+Math.imul($,_t)|0))<<13)|0;l=((r=r+Math.imul($,mt)|0)+(o>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,i=Math.imul(M,J),o=(o=Math.imul(M,Y))+Math.imul(k,J)|0,r=Math.imul(k,Y),i=i+Math.imul(U,Z)|0,o=(o=o+Math.imul(U,tt)|0)+Math.imul(D,Z)|0,r=r+Math.imul(D,tt)|0,i=i+Math.imul(A,nt)|0,o=(o=o+Math.imul(A,it)|0)+Math.imul(x,nt)|0,r=r+Math.imul(x,it)|0,i=i+Math.imul(w,rt)|0,o=(o=o+Math.imul(w,st)|0)+Math.imul(O,rt)|0,r=r+Math.imul(O,st)|0,i=i+Math.imul(T,ct)|0,o=(o=o+Math.imul(T,lt)|0)+Math.imul(L,ct)|0,r=r+Math.imul(L,lt)|0,i=i+Math.imul(v,ht)|0,o=(o=o+Math.imul(v,dt)|0)+Math.imul(C,ht)|0,r=r+Math.imul(C,dt)|0;var zt=(l+(i=i+Math.imul(y,_t)|0)|0)+((8191&(o=(o=o+Math.imul(y,mt)|0)+Math.imul(b,_t)|0))<<13)|0;l=((r=r+Math.imul(b,mt)|0)+(o>>>13)|0)+(zt>>>26)|0,zt&=67108863,i=Math.imul(M,Z),o=(o=Math.imul(M,tt))+Math.imul(k,Z)|0,r=Math.imul(k,tt),i=i+Math.imul(U,nt)|0,o=(o=o+Math.imul(U,it)|0)+Math.imul(D,nt)|0,r=r+Math.imul(D,it)|0,i=i+Math.imul(A,rt)|0,o=(o=o+Math.imul(A,st)|0)+Math.imul(x,rt)|0,r=r+Math.imul(x,st)|0,i=i+Math.imul(w,ct)|0,o=(o=o+Math.imul(w,lt)|0)+Math.imul(O,ct)|0,r=r+Math.imul(O,lt)|0,i=i+Math.imul(T,ht)|0,o=(o=o+Math.imul(T,dt)|0)+Math.imul(L,ht)|0,r=r+Math.imul(L,dt)|0;var wt=(l+(i=i+Math.imul(v,_t)|0)|0)+((8191&(o=(o=o+Math.imul(v,mt)|0)+Math.imul(C,_t)|0))<<13)|0;l=((r=r+Math.imul(C,mt)|0)+(o>>>13)|0)+(wt>>>26)|0,wt&=67108863,i=Math.imul(M,nt),o=(o=Math.imul(M,it))+Math.imul(k,nt)|0,r=Math.imul(k,it),i=i+Math.imul(U,rt)|0,o=(o=o+Math.imul(U,st)|0)+Math.imul(D,rt)|0,r=r+Math.imul(D,st)|0,i=i+Math.imul(A,ct)|0,o=(o=o+Math.imul(A,lt)|0)+Math.imul(x,ct)|0,r=r+Math.imul(x,lt)|0,i=i+Math.imul(w,ht)|0,o=(o=o+Math.imul(w,dt)|0)+Math.imul(O,ht)|0,r=r+Math.imul(O,dt)|0;var Ot=(l+(i=i+Math.imul(T,_t)|0)|0)+((8191&(o=(o=o+Math.imul(T,mt)|0)+Math.imul(L,_t)|0))<<13)|0;l=((r=r+Math.imul(L,mt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,i=Math.imul(M,rt),o=(o=Math.imul(M,st))+Math.imul(k,rt)|0,r=Math.imul(k,st),i=i+Math.imul(U,ct)|0,o=(o=o+Math.imul(U,lt)|0)+Math.imul(D,ct)|0,r=r+Math.imul(D,lt)|0,i=i+Math.imul(A,ht)|0,o=(o=o+Math.imul(A,dt)|0)+Math.imul(x,ht)|0,r=r+Math.imul(x,dt)|0;var Rt=(l+(i=i+Math.imul(w,_t)|0)|0)+((8191&(o=(o=o+Math.imul(w,mt)|0)+Math.imul(O,_t)|0))<<13)|0;l=((r=r+Math.imul(O,mt)|0)+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,i=Math.imul(M,ct),o=(o=Math.imul(M,lt))+Math.imul(k,ct)|0,r=Math.imul(k,lt),i=i+Math.imul(U,ht)|0,o=(o=o+Math.imul(U,dt)|0)+Math.imul(D,ht)|0,r=r+Math.imul(D,dt)|0;var At=(l+(i=i+Math.imul(A,_t)|0)|0)+((8191&(o=(o=o+Math.imul(A,mt)|0)+Math.imul(x,_t)|0))<<13)|0;l=((r=r+Math.imul(x,mt)|0)+(o>>>13)|0)+(At>>>26)|0,At&=67108863,i=Math.imul(M,ht),o=(o=Math.imul(M,dt))+Math.imul(k,ht)|0,r=Math.imul(k,dt);var xt=(l+(i=i+Math.imul(U,_t)|0)|0)+((8191&(o=(o=o+Math.imul(U,mt)|0)+Math.imul(D,_t)|0))<<13)|0;l=((r=r+Math.imul(D,mt)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863;var It=(l+(i=Math.imul(M,_t))|0)+((8191&(o=(o=Math.imul(M,mt))+Math.imul(k,_t)|0))<<13)|0;return l=((r=Math.imul(k,mt))+(o>>>13)|0)+(It>>>26)|0,It&=67108863,c[0]=ft,c[1]=gt,c[2]=$t,c[3]=Et,c[4]=yt,c[5]=bt,c[6]=St,c[7]=vt,c[8]=Ct,c[9]=Nt,c[10]=Tt,c[11]=Lt,c[12]=zt,c[13]=wt,c[14]=Ot,c[15]=Rt,c[16]=At,c[17]=xt,c[18]=It,0!==l&&(c[19]=l,n.length++),n};function g(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var i=0,o=0,r=0;r>>26)|0)>>>26,s&=67108863}n.words[r]=a,i=s,s=o}return 0!==i?n.words[r]=i:n.length--,n._strip()}function $(t,e,n){return g(t,e,n)}function E(t,e){this.x=t,this.y=e}Math.imul||(f=m),r.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?f(this,t,e):n<63?m(this,t,e):n<1024?g(this,t,e):$(this,t,e)},E.prototype.makeRBT=function(t){for(var e=new Array(t),n=r.prototype._countBits(t)-1,i=0;i>=1;return i},E.prototype.permute=function(t,e,n,i,o,r){for(var s=0;s>>=1)o++;return 1<>>=13,n[2*s+1]=8191&r,r>>>=13;for(s=2*e;s>=26,n+=r/67108864|0,n+=s>>>26,this.words[o]=67108863&s}return 0!==n&&(this.words[o]=n,this.length++),e?this.ineg():this},r.prototype.muln=function(t){return this.clone().imuln(t)},r.prototype.sqr=function(){return this.mul(this)},r.prototype.isqr=function(){return this.imul(this.clone())},r.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n>>o&1}return e}(t);if(0===e.length)return new r(1);for(var n=this,i=0;i=0);var e,n=t%26,o=(t-n)/26,r=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(e=0;e>>26-n}s&&(this.words[e]=s,this.length++)}if(0!==o){for(e=this.length-1;e>=0;e--)this.words[e+o]=this.words[e];for(e=0;e=0),o=e?(e-e%26)/26:0;var r=t%26,s=Math.min((t-r)/26,this.length),a=67108863^67108863>>>r<s)for(this.length-=s,l=0;l=0&&(0!==u||l>=o);l--){var h=0|this.words[l];this.words[l]=u<<26-r|h>>>r,u=h&a}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},r.prototype.ishrn=function(t,e,n){return i(0===this.negative),this.iushrn(t,e,n)},r.prototype.shln=function(t){return this.clone().ishln(t)},r.prototype.ushln=function(t){return this.clone().iushln(t)},r.prototype.shrn=function(t){return this.clone().ishrn(t)},r.prototype.ushrn=function(t){return this.clone().iushrn(t)},r.prototype.testn=function(t){i("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,o=1<=0);var e=t%26,n=(t-e)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var o=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},r.prototype.isubn=function(t){if(i("number"==typeof t),i(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(c/67108864|0),this.words[o+n]=67108863&r}for(;o>26,this.words[o+n]=67108863&r;if(0===a)return this._strip();for(i(-1===a),a=0,o=0;o>26,this.words[o]=67108863&r;return this.negative=1,this._strip()},r.prototype._wordDiv=function(t,e){var n=(this.length,t.length),i=this.clone(),o=t,s=0|o.words[o.length-1];0!==(n=26-this._countBits(s))&&(o=o.ushln(n),i.iushln(n),s=0|o.words[o.length-1]);var a,c=i.length-o.length;if("mod"!==e){(a=new r(null)).length=c+1,a.words=new Array(a.length);for(var l=0;l=0;h--){var d=67108864*(0|i.words[o.length+h])+(0|i.words[o.length+h-1]);for(d=Math.min(d/s|0,67108863),i._ishlnsubmul(o,d,h);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(o,1,h),i.isZero()||(i.negative^=1);a&&(a.words[h]=d)}return a&&a._strip(),i._strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:a||null,mod:i}},r.prototype.divmod=function(t,e,n){return i(!t.isZero()),this.isZero()?{div:new r(0),mod:new r(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(o=a.div.neg()),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.iadd(t)),{div:o,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(o=a.div.neg()),{div:o,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new r(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new r(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new r(this.modrn(t.words[0]))}:this._wordDiv(t,e);var o,s,a},r.prototype.div=function(t){return this.divmod(t,"div",!1).div},r.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},r.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},r.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,i=t.ushrn(1),o=t.andln(1),r=n.cmp(i);return r<0||1===o&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},r.prototype.modrn=function(t){var e=t<0;e&&(t=-t),i(t<=67108863);for(var n=(1<<26)%t,o=0,r=this.length-1;r>=0;r--)o=(n*o+(0|this.words[r]))%t;return e?-o:o},r.prototype.modn=function(t){return this.modrn(t)},r.prototype.idivn=function(t){var e=t<0;e&&(t=-t),i(t<=67108863);for(var n=0,o=this.length-1;o>=0;o--){var r=(0|this.words[o])+67108864*n;this.words[o]=r/t|0,n=r%t}return this._strip(),e?this.ineg():this},r.prototype.divn=function(t){return this.clone().idivn(t)},r.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new r(1),s=new r(0),a=new r(0),c=new r(1),l=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++l;for(var u=n.clone(),h=e.clone();!e.isZero();){for(var d=0,p=1;0==(e.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(u),s.isub(h)),o.iushrn(1),s.iushrn(1);for(var _=0,m=1;0==(n.words[0]&m)&&_<26;++_,m<<=1);if(_>0)for(n.iushrn(_);_-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(u),c.isub(h)),a.iushrn(1),c.iushrn(1);e.cmp(n)>=0?(e.isub(n),o.isub(a),s.isub(c)):(n.isub(e),a.isub(o),c.isub(s))}return{a:a,b:c,gcd:n.iushln(l)}},r.prototype._invmp=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,s=new r(1),a=new r(0),c=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,u=1;0==(e.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(e.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var h=0,d=1;0==(n.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(n.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);e.cmp(n)>=0?(e.isub(n),s.isub(a)):(n.isub(e),a.isub(s))}return(o=0===e.cmpn(1)?s:a).cmpn(0)<0&&o.iadd(t),o},r.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var i=0;e.isEven()&&n.isEven();i++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=e.cmp(n);if(o<0){var r=e;e=n,n=r}else if(0===o||0===n.cmpn(1))break;e.isub(n)}return n.iushln(i)},r.prototype.invm=function(t){return this.egcd(t).a.umod(t)},r.prototype.isEven=function(){return 0==(1&this.words[0])},r.prototype.isOdd=function(){return 1==(1&this.words[0])},r.prototype.andln=function(t){return this.words[0]&t},r.prototype.bincn=function(t){i("number"==typeof t);var e=t%26,n=(t-e)/26,o=1<>>26,a&=67108863,this.words[s]=a}return 0!==r&&(this.words[s]=r,this.length++),this},r.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},r.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)e=1;else{n&&(t=-t),i(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:ot.length)return 1;if(this.length=0;n--){var i=0|this.words[n],o=0|t.words[n];if(i!==o){io&&(e=1);break}}return e},r.prototype.gtn=function(t){return 1===this.cmpn(t)},r.prototype.gt=function(t){return 1===this.cmp(t)},r.prototype.gten=function(t){return this.cmpn(t)>=0},r.prototype.gte=function(t){return this.cmp(t)>=0},r.prototype.ltn=function(t){return-1===this.cmpn(t)},r.prototype.lt=function(t){return-1===this.cmp(t)},r.prototype.lten=function(t){return this.cmpn(t)<=0},r.prototype.lte=function(t){return this.cmp(t)<=0},r.prototype.eqn=function(t){return 0===this.cmpn(t)},r.prototype.eq=function(t){return 0===this.cmp(t)},r.red=function(t){return new T(t)},r.prototype.toRed=function(t){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},r.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},r.prototype._forceRed=function(t){return this.red=t,this},r.prototype.forceRed=function(t){return i(!this.red,"Already a number in reduction context"),this._forceRed(t)},r.prototype.redAdd=function(t){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},r.prototype.redIAdd=function(t){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},r.prototype.redSub=function(t){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},r.prototype.redISub=function(t){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},r.prototype.redShl=function(t){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},r.prototype.redMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},r.prototype.redIMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},r.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},r.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},r.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},r.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},r.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},r.prototype.redPow=function(t){return i(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new r(e,16),this.n=this.p.bitLength(),this.k=new r(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function S(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function C(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function N(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function T(t){if("string"==typeof t){var e=r._prime(t);this.m=e.p,this.prime=e}else i(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function L(t){T.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new r(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var t=new r(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var i=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},o(S,b),S.prototype.split=function(t,e){for(var n=Math.min(t.length,9),i=0;i>>22,o=r}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},S.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=o,e=i}return 0!==e&&(t.words[t.length++]=e),t},r._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new S;else if("p224"===t)e=new v;else if("p192"===t)e=new C;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new N}return y[t]=e,e},T.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},T.prototype._verify2=function(t,e){i(0==(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},T.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(u(t,t.umod(this.m)._forceRed(this)),t)},T.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},T.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},T.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},T.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},T.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},T.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},T.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},T.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},T.prototype.isqr=function(t){return this.imul(t,t.clone())},T.prototype.sqr=function(t){return this.mul(t,t)},T.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2==1),3===e){var n=this.m.add(new r(1)).iushrn(2);return this.pow(t,n)}for(var o=this.m.subn(1),s=0;!o.isZero()&&0===o.andln(1);)s++,o.iushrn(1);i(!o.isZero());var a=new r(1).toRed(this),c=a.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new r(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var h=this.pow(u,o),d=this.pow(t,o.addn(1).iushrn(1)),p=this.pow(t,o),_=s;0!==p.cmp(a);){for(var m=p,f=0;0!==m.cmp(a);f++)m=m.redSqr();i(f<_);var g=this.pow(h,new r(1).iushln(_-f-1));d=d.redMul(g),h=g.redSqr(),p=p.redMul(h),_=f}return d},T.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},T.prototype.pow=function(t,e){if(e.isZero())return new r(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new r(1).toRed(this),n[1]=t;for(var i=2;i=0;i--){for(var l=e.words[i],u=c-1;u>=0;u--){var h=l>>u&1;o!==n[0]&&(o=this.sqr(o)),0!==h||0!==s?(s<<=1,s|=h,(4===++a||0===i&&0===u)&&(o=this.mul(o,n[s]),a=0,s=0)):a=0}c=26}return o},T.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},T.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},r.mont=function(t){return new L(t)},o(L,T),L.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},L.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},L.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(i).iushrn(this.shift),r=o;return o.cmp(this.m)>=0?r=o.isub(this.m):o.cmpn(0)<0&&(r=o.iadd(this.m)),r._forceRed(this)},L.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new r(0)._forceRed(this);var n=t.mul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(i).iushrn(this.shift),s=o;return o.cmp(this.m)>=0?s=o.isub(this.m):o.cmpn(0)<0&&(s=o.iadd(this.m)),s._forceRed(this)},L.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(286)(t))},function(t,e,n){"use strict";const i=e;i.bignum=n(51),i.define=n(840).define,i.base=n(843),i.constants=n(844),i.decoders=n(623),i.encoders=n(621)},function(t,e,n){"use strict";const i=e;i.der=n(622),i.pem=n(841)},function(t,e,n){"use strict";const i=n(20),o=n(385).Buffer,r=n(386),s=n(388);function a(t){this.enc="der",this.name=t.name,this.entity=t,this.tree=new c,this.tree._init(t.body)}function c(t){r.call(this,"der",t)}function l(t){return t<10?"0"+t:t}t.exports=a,a.prototype.encode=function(t,e){return this.tree._encode(t,e).join()},i(c,r),c.prototype._encodeComposite=function(t,e,n,i){const r=function(t,e,n,i){let o;"seqof"===t?t="seq":"setof"===t&&(t="set");if(s.tagByName.hasOwnProperty(t))o=s.tagByName[t];else{if("number"!=typeof t||(0|t)!==t)return i.error("Unknown tag: "+t);o=t}if(o>=31)return i.error("Multi-octet tag encoding unsupported");e||(o|=32);return o|=s.tagClassByName[n||"universal"]<<6,o}(t,e,n,this.reporter);if(i.length<128){const t=o.alloc(2);return t[0]=r,t[1]=i.length,this._createEncoderBuffer([t,i])}let a=1;for(let t=i.length;t>=256;t>>=8)a++;const c=o.alloc(2+a);c[0]=r,c[1]=128|a;for(let t=1+a,e=i.length;e>0;t--,e>>=8)c[t]=255&e;return this._createEncoderBuffer([c,i])},c.prototype._encodeStr=function(t,e){if("bitstr"===e)return this._createEncoderBuffer([0|t.unused,t.data]);if("bmpstr"===e){const e=o.alloc(2*t.length);for(let n=0;n=40)return this.reporter.error("Second objid identifier OOB");t.splice(0,2,40*t[0]+t[1])}let i=0;for(let e=0;e=128;n>>=7)i++}const r=o.alloc(i);let s=r.length-1;for(let e=t.length-1;e>=0;e--){let n=t[e];for(r[s--]=127&n;(n>>=7)>0;)r[s--]=128|127&n}return this._createEncoderBuffer(r)},c.prototype._encodeTime=function(t,e){let n;const i=new Date(t);return"gentime"===e?n=[l(i.getUTCFullYear()),l(i.getUTCMonth()+1),l(i.getUTCDate()),l(i.getUTCHours()),l(i.getUTCMinutes()),l(i.getUTCSeconds()),"Z"].join(""):"utctime"===e?n=[l(i.getUTCFullYear()%100),l(i.getUTCMonth()+1),l(i.getUTCDate()),l(i.getUTCHours()),l(i.getUTCMinutes()),l(i.getUTCSeconds()),"Z"].join(""):this.reporter.error("Encoding "+e+" time is not supported yet"),this._encodeStr(n,"octstr")},c.prototype._encodeNull=function(){return this._createEncoderBuffer("")},c.prototype._encodeInt=function(t,e){if("string"==typeof t){if(!e)return this.reporter.error("String int or enum given, but no values map");if(!e.hasOwnProperty(t))return this.reporter.error("Values map doesn't contain: "+JSON.stringify(t));t=e[t]}if("number"!=typeof t&&!o.isBuffer(t)){const e=t.toArray();!t.sign&&128&e[0]&&e.unshift(0),t=o.from(e)}if(o.isBuffer(t)){let e=t.length;0===t.length&&e++;const n=o.alloc(e);return t.copy(n),0===t.length&&(n[0]=0),this._createEncoderBuffer(n)}if(t<128)return this._createEncoderBuffer(t);if(t<256)return this._createEncoderBuffer([0,t]);let n=1;for(let e=t;e>=256;e>>=8)n++;const i=new Array(n);for(let e=i.length-1;e>=0;e--)i[e]=255&t,t>>=8;return 128&i[0]&&i.unshift(0),this._createEncoderBuffer(o.from(i))},c.prototype._encodeBool=function(t){return this._createEncoderBuffer(t?255:0)},c.prototype._use=function(t,e){return"function"==typeof t&&(t=t(e)),t._getEncoder("der").tree},c.prototype._skipDefault=function(t,e,n){const i=this._baseState;let o;if(null===i.default)return!1;const r=t.join();if(void 0===i.defaultBuffer&&(i.defaultBuffer=this._encodeValue(i.default,e,n).join()),r.length!==i.defaultBuffer.length)return!1;for(o=0;o>6],o=0==(32&n);if(31==(31&n)){let i=n;for(n=0;128==(128&i);){if(i=t.readUInt8(e),t.isError(i))return i;n<<=7,n|=127&i}}else n&=31;return{cls:i,primitive:o,tag:n,tagStr:a.tag[n]}}function h(t,e,n){let i=t.readUInt8(n);if(t.isError(i))return i;if(!e&&128===i)return null;if(0==(128&i))return i;const o=127&i;if(o>4)return t.error("length octect is too long");i=0;for(let e=0;e`${null==t?void 0:t.replace(")","")}, ${e})`,f=Object(c.a)(h.a,{name:"MuiAppBar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e["position"+Object(u.a)(n.position)],e["color"+Object(u.a)(n.color)]]}})(({theme:t,ownerState:e})=>{const n="light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[900];return Object(o.a)({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},"fixed"===e.position&&{position:"fixed",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},"absolute"===e.position&&{position:"absolute",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"sticky"===e.position&&{position:"sticky",zIndex:(t.vars||t).zIndex.appBar,top:0,left:"auto",right:0},"static"===e.position&&{position:"static"},"relative"===e.position&&{position:"relative"},!t.vars&&Object(o.a)({},"default"===e.color&&{backgroundColor:n,color:t.palette.getContrastText(n)},e.color&&"default"!==e.color&&"inherit"!==e.color&&"transparent"!==e.color&&{backgroundColor:t.palette[e.color].main,color:t.palette[e.color].contrastText},"inherit"===e.color&&{color:"inherit"},"dark"===t.palette.mode&&!e.enableColorOnDark&&{backgroundColor:null,color:null},"transparent"===e.color&&Object(o.a)({backgroundColor:"transparent",color:"inherit"},"dark"===t.palette.mode&&{backgroundImage:"none"})),t.vars&&Object(o.a)({},"default"===e.color&&{"--AppBar-background":e.enableColorOnDark?t.vars.palette.AppBar.defaultBg:m(t.vars.palette.AppBar.darkBg,t.vars.palette.AppBar.defaultBg),"--AppBar-color":e.enableColorOnDark?t.vars.palette.text.primary:m(t.vars.palette.AppBar.darkColor,t.vars.palette.text.primary)},e.color&&!e.color.match(/^(default|inherit|transparent)$/)&&{"--AppBar-background":e.enableColorOnDark?t.vars.palette[e.color].main:m(t.vars.palette.AppBar.darkBg,t.vars.palette[e.color].main),"--AppBar-color":e.enableColorOnDark?t.vars.palette[e.color].contrastText:m(t.vars.palette.AppBar.darkColor,t.vars.palette[e.color].contrastText)},{backgroundColor:"var(--AppBar-background)",color:"inherit"===e.color?"inherit":"var(--AppBar-color)"},"transparent"===e.color&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),g=r.forwardRef((function(t,e){const n=Object(l.a)({props:t,name:"MuiAppBar"}),{className:r,color:c="primary",enableColorOnDark:h=!1,position:m="fixed"}=n,g=Object(i.a)(n,_),$=Object(o.a)({},n,{color:c,position:m,enableColorOnDark:h}),E=(t=>{const{color:e,position:n,classes:i}=t,o={root:["root","color"+Object(u.a)(e),"position"+Object(u.a)(n)]};return Object(a.a)(o,d.b,i)})($);return Object(p.jsx)(f,Object(o.a)({square:!0,component:"header",ownerState:$,elevation:4,className:Object(s.a)(E.root,r,"fixed"===m&&"mui-fixed"),ref:e},g))}));e.a=g},function(t,e){function n(){return t.exports=n=Object.assign||function(t){for(var e=1;ee.root})(({theme:t})=>({display:"flex",justifyContent:"center",height:56,backgroundColor:(t.vars||t).palette.background.paper})),_=r.forwardRef((function(t,e){const n=Object(l.a)({props:t,name:"MuiBottomNavigation"}),{children:c,className:_,component:m="div",onChange:f,showLabels:g=!1,value:$}=n,E=Object(o.a)(n,d),y=Object(i.a)({},n,{component:m,showLabels:g}),b=(t=>{const{classes:e}=t;return Object(a.a)({root:["root"]},u.b,e)})(y);return Object(h.jsx)(p,Object(i.a)({as:m,className:Object(s.a)(b.root,_),ref:e,ownerState:y},E,{children:r.Children.map(c,(t,e)=>{if(!r.isValidElement(t))return null;const n=void 0===t.props.value?e:t.props.value;return r.cloneElement(t,{selected:n===$,showLabel:void 0!==t.props.showLabel?t.props.showLabel:g,value:n,onChange:f})})}))}));e.a=_},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(4),a=n(18),c=n(3),l=n(7),u=n(93),h=n(133),d=n(2);const p=["className","icon","label","onChange","onClick","selected","showLabel","value"],_=Object(c.a)(u.a,{name:"MuiBottomNavigationAction",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.showLabel&&!n.selected&&e.iconOnly]}})(({theme:t,ownerState:e})=>Object(o.a)({transition:t.transitions.create(["color","padding-top"],{duration:t.transitions.duration.short}),padding:"0px 12px",minWidth:80,maxWidth:168,color:(t.vars||t).palette.text.secondary,flexDirection:"column",flex:"1"},!e.showLabel&&!e.selected&&{paddingTop:14},!e.showLabel&&!e.selected&&!e.label&&{paddingTop:0},{["&."+h.a.selected]:{color:(t.vars||t).palette.primary.main}})),m=Object(c.a)("span",{name:"MuiBottomNavigationAction",slot:"Label",overridesResolver:(t,e)=>e.label})(({theme:t,ownerState:e})=>Object(o.a)({fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(12),opacity:1,transition:"font-size 0.2s, opacity 0.2s",transitionDelay:"0.1s"},!e.showLabel&&!e.selected&&{opacity:0,transitionDelay:"0s"},{["&."+h.a.selected]:{fontSize:t.typography.pxToRem(14)}})),f=r.forwardRef((function(t,e){const n=Object(l.a)({props:t,name:"MuiBottomNavigationAction"}),{className:r,icon:c,label:u,onChange:f,onClick:g,value:$}=n,E=Object(i.a)(n,p),y=n,b=(t=>{const{classes:e,showLabel:n,selected:i}=t,o={root:["root",!n&&!i&&"iconOnly",i&&"selected"],label:["label",!n&&!i&&"iconOnly",i&&"selected"]};return Object(a.a)(o,h.b,e)})(y);return Object(d.jsxs)(_,Object(o.a)({ref:e,className:Object(s.a)(b.root,r),focusRipple:!0,onClick:t=>{f&&f(t,$),g&&g(t)},ownerState:y},E,{children:[c,Object(d.jsx)(m,{className:b.label,ownerState:y,children:u})]}))}));e.a=f},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(4),a=n(735),c=n(18),l=n(28),u=n(3),h=n(7),d=n(93),p=n(6),_=n(105),m=n(339),f=n(2);const g=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],$=["root"],E=t=>Object(o.a)({},"small"===t.size&&{"& > *:nth-of-type(1)":{fontSize:18}},"medium"===t.size&&{"& > *:nth-of-type(1)":{fontSize:20}},"large"===t.size&&{"& > *:nth-of-type(1)":{fontSize:22}}),y=Object(u.a)(d.a,{shouldForwardProp:t=>Object(u.b)(t)||"classes"===t,name:"MuiButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e[`${n.variant}${Object(p.a)(n.color)}`],e["size"+Object(p.a)(n.size)],e[`${n.variant}Size${Object(p.a)(n.size)}`],"inherit"===n.color&&e.colorInherit,n.disableElevation&&e.disableElevation,n.fullWidth&&e.fullWidth]}})(({theme:t,ownerState:e})=>{var n,i;return Object(o.a)({},t.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(t.vars||t).shape.borderRadius,transition:t.transitions.create(["background-color","box-shadow","border-color","color"],{duration:t.transitions.duration.short}),"&:hover":Object(o.a)({textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Object(l.a)(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"text"===e.variant&&"inherit"!==e.color&&{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Object(l.a)(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"outlined"===e.variant&&"inherit"!==e.color&&{border:"1px solid "+(t.vars||t).palette[e.color].main,backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Object(l.a)(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},"contained"===e.variant&&{backgroundColor:(t.vars||t).palette.grey.A100,boxShadow:(t.vars||t).shadows[4],"@media (hover: none)":{boxShadow:(t.vars||t).shadows[2],backgroundColor:(t.vars||t).palette.grey[300]}},"contained"===e.variant&&"inherit"!==e.color&&{backgroundColor:(t.vars||t).palette[e.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e.color].main}}),"&:active":Object(o.a)({},"contained"===e.variant&&{boxShadow:(t.vars||t).shadows[8]}),["&."+_.a.focusVisible]:Object(o.a)({},"contained"===e.variant&&{boxShadow:(t.vars||t).shadows[6]}),["&."+_.a.disabled]:Object(o.a)({color:(t.vars||t).palette.action.disabled},"outlined"===e.variant&&{border:"1px solid "+(t.vars||t).palette.action.disabledBackground},"outlined"===e.variant&&"secondary"===e.color&&{border:"1px solid "+(t.vars||t).palette.action.disabled},"contained"===e.variant&&{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground})},"text"===e.variant&&{padding:"6px 8px"},"text"===e.variant&&"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].main},"outlined"===e.variant&&{padding:"5px 15px",border:"1px solid currentColor"},"outlined"===e.variant&&"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].main,border:t.vars?`1px solid rgba(${t.vars.palette[e.color].mainChannel} / 0.5)`:"1px solid "+Object(l.a)(t.palette[e.color].main,.5)},"contained"===e.variant&&{color:t.vars?t.vars.palette.text.primary:null==(n=(i=t.palette).getContrastText)?void 0:n.call(i,t.palette.grey[300]),backgroundColor:(t.vars||t).palette.grey[300],boxShadow:(t.vars||t).shadows[2]},"contained"===e.variant&&"inherit"!==e.color&&{color:(t.vars||t).palette[e.color].contrastText,backgroundColor:(t.vars||t).palette[e.color].main},"inherit"===e.color&&{color:"inherit",borderColor:"currentColor"},"small"===e.size&&"text"===e.variant&&{padding:"4px 5px",fontSize:t.typography.pxToRem(13)},"large"===e.size&&"text"===e.variant&&{padding:"8px 11px",fontSize:t.typography.pxToRem(15)},"small"===e.size&&"outlined"===e.variant&&{padding:"3px 9px",fontSize:t.typography.pxToRem(13)},"large"===e.size&&"outlined"===e.variant&&{padding:"7px 21px",fontSize:t.typography.pxToRem(15)},"small"===e.size&&"contained"===e.variant&&{padding:"4px 10px",fontSize:t.typography.pxToRem(13)},"large"===e.size&&"contained"===e.variant&&{padding:"8px 22px",fontSize:t.typography.pxToRem(15)},e.fullWidth&&{width:"100%"})},({ownerState:t})=>t.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},["&."+_.a.focusVisible]:{boxShadow:"none"},"&:active":{boxShadow:"none"},["&."+_.a.disabled]:{boxShadow:"none"}}),b=Object(u.a)("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.startIcon,e["iconSize"+Object(p.a)(n.size)]]}})(({ownerState:t})=>Object(o.a)({display:"inherit",marginRight:8,marginLeft:-4},"small"===t.size&&{marginLeft:-2},E(t))),S=Object(u.a)("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.endIcon,e["iconSize"+Object(p.a)(n.size)]]}})(({ownerState:t})=>Object(o.a)({display:"inherit",marginRight:-4,marginLeft:8},"small"===t.size&&{marginRight:-2},E(t))),v=r.forwardRef((function(t,e){const n=r.useContext(m.a),l=Object(a.a)(n,t),u=Object(h.a)({props:l,name:"MuiButton"}),{children:d,color:E="primary",component:v="button",className:C,disabled:N=!1,disableElevation:T=!1,disableFocusRipple:L=!1,endIcon:z,focusVisibleClassName:w,fullWidth:O=!1,size:R="medium",startIcon:A,type:x,variant:I="text"}=u,U=Object(i.a)(u,g),D=Object(o.a)({},u,{color:E,component:v,disabled:N,disableElevation:T,disableFocusRipple:L,fullWidth:O,size:R,type:x,variant:I}),P=(t=>{const{color:e,disableElevation:n,fullWidth:i,size:r,variant:s,classes:a}=t,l={root:["root",s,`${s}${Object(p.a)(e)}`,"size"+Object(p.a)(r),`${s}Size${Object(p.a)(r)}`,"inherit"===e&&"colorInherit",n&&"disableElevation",i&&"fullWidth"],label:["label"],startIcon:["startIcon","iconSize"+Object(p.a)(r)],endIcon:["endIcon","iconSize"+Object(p.a)(r)]},u=Object(c.a)(l,_.b,a);return Object(o.a)({},a,u)})(D),{root:M}=P,k=Object(i.a)(P,$),j=A&&Object(f.jsx)(b,{className:k.startIcon,ownerState:D,children:A}),G=z&&Object(f.jsx)(S,{className:k.endIcon,ownerState:D,children:z});return Object(f.jsxs)(y,Object(o.a)({ownerState:D,className:Object(s.a)(n.className,M,C),component:v,disabled:N,focusRipple:!L,focusVisibleClassName:Object(s.a)(k.focusVisible,w),ref:e,type:x},U,{classes:k,children:[j,d,G]}))}));e.a=v},function(t,e,n){var i,o,r;o=[e,n(31)],void 0===(r="function"==typeof(i=function(t,e){"use strict";var n=e.kotlin.collections.joinToString_cgipc5$,i=e.kotlin.Unit,o=e.kotlin.collections.get_lastIndex_55thoc$,r=e.kotlin.text.repeat_94bcnn$,s=e.getCallableRef,a=e.kotlin.text.Regex_init_61zpoe$,c=e.kotlin.lazy_klfg04$,l=e.Kind.OBJECT,u=e.Kind.INTERFACE,h=e.equals,d=e.Kind.CLASS,p=e.kotlin.collections.ArrayList_init_287e2$,_=e.kotlin.text.StringBuilder_init,m=e.throwCCE,f=e.hashCode,g=(e.kotlin.Annotation,e.defineInlineFunction,e.wrapFunction,e.kotlin.collections.LinkedHashMap_init_q3lmfv$),$=e.kotlin.collections.plus_mydzjv$,E=e.kotlin.text.startsWith_sgbm27$,y=e.kotlin.text.startsWith_7epoxm$,b=e.kotlin.Enum,S=e.throwISE,v=e.kotlin.ranges.coerceIn_nig4hr$,C=e.kotlin.ranges.coerceIn_e4yvb3$,N=e.kotlin.math.roundToInt_yrwdxr$,T=e.kotlin.text.RegexOption,L=e.kotlin.text.Regex_init_sb3q2$,z=e.kotlin.IllegalArgumentException_init_pdl1vj$,w=e.kotlin.text.substringBefore_j4ogox$,O=e.kotlin.text.toDouble_pdl1vz$,R=e.kotlin.text.endsWith_7epoxm$,A=e.kotlin.math,x=e.kotlin.text.toInt_pdl1vz$,I=e.kotlin.text.substringBefore_8cymmc$,U=e.numberToInt,D=e.kotlin.text.endsWith_sgbm27$,P=e.kotlin.text.toInt_6ic1pp$,M=e.kotlin.ranges.IntRange,k=e.kotlin.text.substring_fc3b62$,j=(e.kotlin.text.toString_dqglrj$,e.kotlin.text.contains_li3zpu$),G=Math,q=e.kotlin.IllegalStateException_init_pdl1vj$,F=e.kotlin.collections.joinToString_fmv235$,B=e.ensureNotNull,W=e.kotlin.collections.MutableMap,H=Object,V=e.PropertyMetadata,K=e.toString;function X(t,e,n,i,o){return void 0===t&&(t=""),void 0===e&&(e=!0),void 0===n&&(n=null),void 0===i&&(i=!1),void 0===o&&(o=!1),new _t(t,e,n,i,o)}function J(){pt()}function Y(t){return"&:not("+t+")"}function Q(t){return"&:nth-child("+t+")"}function Z(t){return"&:nth-last-child("+t+")"}function tt(t){return"&:nth-last-of-type("+t+")"}function et(t){return"&:nth-of-type("+t+")"}function nt(t){return"& > "+t}function it(t){return"& "+t}function ot(t){return"> "+t}function rt(t){return"> "+t}function st(t){return"~ "+t}function at(t){return"+ "+t}function ct(){dt=this,this.NOT_REGEX_v10gwb$_0=c(lt)}function lt(){return a("^(&?)(.*)$")}e.kotlin.collections.checkIndexOverflow_za3lpa$,e.kotlin.collections.toSet_us0mfu$,e.kotlin.collections.emptySet_287e2$,yt.prototype=Object.create(ie.prototype),yt.prototype.constructor=yt,ne.prototype=Object.create(yt.prototype),ne.prototype.constructor=ne,oe.prototype=Object.create(b.prototype),oe.prototype.constructor=oe,Ee.prototype=Object.create(b.prototype),Ee.prototype.constructor=Ee,je.prototype=Object.create(ie.prototype),je.prototype.constructor=je,lo.prototype=Object.create(b.prototype),lo.prototype.constructor=lo,Yo.prototype=Object.create(ie.prototype),Yo.prototype.constructor=Yo,Zo.prototype=Object.create(b.prototype),Zo.prototype.constructor=Zo,wr.prototype=Object.create(b.prototype),wr.prototype.constructor=wr,Pr.prototype=Object.create(b.prototype),Pr.prototype.constructor=Pr,Hr.prototype=Object.create(b.prototype),Hr.prototype.constructor=Hr,es.prototype=Object.create(b.prototype),es.prototype.constructor=es,cs.prototype=Object.create(b.prototype),cs.prototype.constructor=cs,$s.prototype=Object.create(b.prototype),$s.prototype.constructor=$s,Rs.prototype=Object.create(b.prototype),Rs.prototype.constructor=Rs,Ms.prototype=Object.create(ie.prototype),Ms.prototype.constructor=Ms,ua.prototype=Object.create(b.prototype),ua.prototype.constructor=ua,$a.prototype=Object.create(b.prototype),$a.prototype.constructor=$a,za.prototype=Object.create(b.prototype),za.prototype.constructor=za,Zl.prototype=Object.create(Pa.prototype),Zl.prototype.constructor=Zl,iu.prototype=Object.create(Pa.prototype),iu.prototype.constructor=iu,lu.prototype=Object.create(ie.prototype),lu.prototype.constructor=lu,pu.prototype=Object.create(ie.prototype),pu.prototype.constructor=pu,_u.prototype=Object.create(ie.prototype),_u.prototype.constructor=_u,Eu.prototype=Object.create(Pa.prototype),Eu.prototype.constructor=Eu,Cu.prototype=Object.create(Pa.prototype),Cu.prototype.constructor=Cu,J.prototype.invoke_3ad21g$=function(t,e){return this.rule_1q2hwx$(t,!1,void 0,e)},J.prototype.invoke_x7exez$=function(t,e){return this.rule_jindqg$(t,!1,void 0,e)},J.prototype.invoke_3c2457$=function(t,e){return this.invoke_3ad21g$(t.tagName,e)},J.prototype.active_lx8bml$=function(t){return this.invoke_3ad21g$("&:active",t)},J.prototype.checked_lx8bml$=function(t){return this.invoke_3ad21g$("&:checked",t)},J.prototype.default_lx8bml$=function(t){return this.invoke_3ad21g$("&:default",t)},J.prototype.defined_lx8bml$=function(t){return this.invoke_3ad21g$("&:defined",t)},J.prototype.disabled_lx8bml$=function(t){return this.invoke_3ad21g$("&:disabled",t)},J.prototype.empty_lx8bml$=function(t){return this.invoke_3ad21g$("&:empty",t)},J.prototype.enabled_lx8bml$=function(t){return this.invoke_3ad21g$("&:enabled",t)},J.prototype.firstChild_lx8bml$=function(t){return this.invoke_3ad21g$("&:first-child",t)},J.prototype.firstOfType_lx8bml$=function(t){return this.invoke_3ad21g$("&:first-of-type",t)},J.prototype.fullscreen_lx8bml$=function(t){return this.invoke_3ad21g$("&:fullscreen",t)},J.prototype.focus_lx8bml$=function(t){return this.invoke_3ad21g$("&:focus",t)},J.prototype.focusVisible_lx8bml$=function(t){return this.invoke_3ad21g$("&:focus-visible",t)},J.prototype.focusWithin_lx8bml$=function(t){return this.invoke_3ad21g$("&:focus-within",t)},J.prototype.hover_lx8bml$=function(t){return this.invoke_3ad21g$("&:hover",t)},J.prototype.indeterminate_lx8bml$=function(t){return this.invoke_3ad21g$("&:indeterminate",t)},J.prototype.inRange_lx8bml$=function(t){return this.invoke_3ad21g$("&:in-range",t)},J.prototype.invalid_lx8bml$=function(t){return this.invoke_3ad21g$("&:invalid",t)},J.prototype.lastChild_lx8bml$=function(t){return this.invoke_3ad21g$("&:last-child",t)},J.prototype.lastOfType_lx8bml$=function(t){return this.invoke_3ad21g$("&:last-of-type",t)},J.prototype.link_lx8bml$=function(t){return this.invoke_3ad21g$("&:link",t)},J.prototype.not_xqeqkq$=function(t,e){var i=n(t,void 0,void 0,void 0,void 0,void 0,Y);return this.invoke_3ad21g$(i,e)},J.prototype.nthChild_xqeqkq$=function(t,e){var i=n(t,void 0,void 0,void 0,void 0,void 0,Q);return this.invoke_3ad21g$(i,e)},J.prototype.nthLastChild_xqeqkq$=function(t,e){var i=n(t,void 0,void 0,void 0,void 0,void 0,Z);return this.invoke_3ad21g$(i,e)},J.prototype.nthLastOfType_xqeqkq$=function(t,e){var i=n(t,void 0,void 0,void 0,void 0,void 0,tt);return this.invoke_3ad21g$(i,e)},J.prototype.nthOfType_xqeqkq$=function(t,e){var i=n(t,void 0,void 0,void 0,void 0,void 0,et);return this.invoke_3ad21g$(i,e)},J.prototype.onlyChild_lx8bml$=function(t){return this.invoke_3ad21g$("&:only-child",t)},J.prototype.onlyOfType_lx8bml$=function(t){return this.invoke_3ad21g$("&:only-of-type",t)},J.prototype.optional_lx8bml$=function(t){return this.invoke_3ad21g$("&:optional",t)},J.prototype.outOfRange_lx8bml$=function(t){return this.invoke_3ad21g$("&:out-of-range",t)},J.prototype.placeholderShown_lx8bml$=function(t){return this.invoke_3ad21g$("&:placeholder-shown",t)},J.prototype.readOnly_lx8bml$=function(t){return this.invoke_3ad21g$("&:read-only",t)},J.prototype.readWrite_lx8bml$=function(t){return this.invoke_3ad21g$("&:read-write",t)},J.prototype.required_lx8bml$=function(t){return this.invoke_3ad21g$("&:required",t)},J.prototype.valid_lx8bml$=function(t){return this.invoke_3ad21g$("&:valid",t)},J.prototype.visited_lx8bml$=function(t){return this.invoke_3ad21g$("&:visited",t)},J.prototype.children_xqeqkq$$default=function(t,e){var i=n(t,void 0,void 0,void 0,void 0,void 0,nt);return this.invoke_3ad21g$(i,e)},J.prototype.children_xqeqkq$=function(t,e,n){return void 0===t&&(t=["*"]),n?n(t,e):this.children_xqeqkq$$default(t,e)},J.prototype.descendants_xqeqkq$$default=function(t,e){var i=n(t,void 0,void 0,void 0,void 0,void 0,it);return this.invoke_3ad21g$(i,e)},J.prototype.descendants_xqeqkq$=function(t,e,n){return void 0===t&&(t=["*"]),n?n(t,e):this.descendants_xqeqkq$$default(t,e)},J.prototype.has_v44dnz$=function(t,e){return this.invoke_3ad21g$("&:has("+t+")",e)},J.prototype.ancestorHover_xqeqkq$=function(t,e){var i,o=this.isStyledComponent?"&&":"&",r=n(t,void 0,void 0,void 0,void 0,void 0,(i=o,function(t){return t+":hover "+i}));return this.invoke_3ad21g$(r,e)},J.prototype.after_lx8bml$=function(t){return this.invoke_3ad21g$("&::after",(e=t,function(t){return fc(t,Qo("")),e(t),i}));var e},J.prototype.before_lx8bml$=function(t){return this.invoke_3ad21g$("&::before",(e=t,function(t){return fc(t,Qo("")),e(t),i}));var e},J.prototype.firstLetter_lx8bml$=function(t){return this.invoke_3ad21g$("&::first-letter",t)},J.prototype.firstLine_lx8bml$=function(t){return this.invoke_3ad21g$("&::first-line",t)},J.prototype.placeholder_lx8bml$=function(t){this.invoke_3ad21g$("&::placeholder",t),this.invoke_3ad21g$("&::-webkit-input-placeholder",t),this.invoke_3ad21g$("&::-moz-placeholder",t),this.invoke_3ad21g$("&::-ms-input-placeholder",t),this.invoke_3ad21g$("&:-moz-placeholder",t)},J.prototype.selection_lx8bml$=function(t){return this.invoke_3ad21g$("&::selection",t)},J.prototype.child_xqeqkq$=function(t,e){var i=n(t,void 0,void 0,void 0,void 0,void 0,ot);return this.invoke_3ad21g$(i,e)},J.prototype.child_v077kx$=function(t,e){var i=n(t,void 0,void 0,void 0,void 0,void 0,rt);return this.invoke_x7exez$(i,e)},J.prototype.sibling_xqeqkq$=function(t,e){var i=n(t,void 0,void 0,void 0,void 0,void 0,st);return this.invoke_3ad21g$(i,e)},J.prototype.adjacentSibling_xqeqkq$=function(t,e){var i=n(t,void 0,void 0,void 0,void 0,void 0,at);return this.invoke_3ad21g$(i,e)},J.prototype.universal_lx8bml$=function(t){return this.invoke_3ad21g$("*",t)},J.prototype.compareTo_er05um$=function(t){return this.rules.removeAt_za3lpa$(o(this.rules)),this.child_v077kx$([t.selector],t.css),0},J.prototype.not_v2gpjl$=function(t){this.rules.removeAt_za3lpa$(o(this.rules));var e=t.selector,n=pt().NOT_REGEX_0;this.invoke_x7exez$(n.replace_x2uqeu$(e,"$1:not($2)"),t.css)},J.prototype.unaryPlus_v2gpjl$=function(t){this.rules.removeAt_za3lpa$(o(this.rules)),this.invoke_x7exez$("&."+t.selector,t.css)},J.prototype.specific_4clrgz$$default=function(t,e){return this.rule_1q2hwx$(r("&",t),!0,void 0,e)},J.prototype.specific_4clrgz$=function(t,e,n){return void 0===t&&(t=2),n?n(t,e):this.specific_4clrgz$$default(t,e)},J.prototype.prefix_xqeqkq$=function(t,e){var i,o=this.isStyledComponent?"&&":"&",r=n(t,void 0,void 0,void 0,void 0,void 0,(i=o,function(t){return t+" "+i}));return this.invoke_3ad21g$(r,e)},J.prototype.media_v44dnz$=function(t,e){return this.invoke_3ad21g$("@media "+t,e)},J.prototype.supports_v44dnz$=function(t,e){return this.invoke_3ad21g$("@supports "+t,e)},J.prototype.supportsSelector_v44dnz$=function(t,e){return this.invoke_3ad21g$("@supports selector("+t+")",e)},J.prototype.container_v44dnz$=function(t,e){return this.invoke_3ad21g$("@container "+t,e)},J.prototype.fontFace_lx8bml$=function(t){return this.rule_1q2hwx$("@font-face",!1,!0,t)},J.prototype.retina_lx8bml$=function(t){var e;this.media_v44dnz$("(-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi)",(e=t,function(t){return e(t),i}))},J.prototype.root_lx8bml$=function(t){var e;this.invoke_3ad21g$(":root",(e=t,function(t){return e(t),i}))},J.prototype.setCustomProperty_lwowle$=function(t,e){this.put_puj7f4$("--"+t,e.value)},J.prototype.min_5utlym$=function(t,e){return new yt("min("+t+", "+e+")")},J.prototype.max_5utlym$=function(t,e){return new yt("max("+t+", "+e+")")},J.prototype.clamp_me7l17$=function(t,e,n){return new yt("clamp("+t+", "+e+", "+n+")")},J.prototype.unaryPlus_pdl1vz$=function(t){this.addClass_v4ob8x$_0(t)},J.prototype.unaryPlus_a3w2bl$=function(t){var e;for(e=0;e!==t.length;++e){var n=t[e];this.addClass_v4ob8x$_0(n)}},J.prototype.unaryPlus_sdeqdk$=function(t){var e;for(e=t.iterator();e.hasNext();){var n=e.next();this.addClass_v4ob8x$_0(n)}},J.prototype.addClass_v4ob8x$_0=function(t){var n,i;this.allowClasses?this.classes.add_11rb$(t):null!=(i=e.isType(n=this.parent,J)?n:null)&&i.addClass_v4ob8x$_0(t)},J.prototype.append_5cyqpy$=function(t){this.declarations.putAll_a2k3zr$(t.declarations);var e,n=t.classes,o=s("addClass",function(t,e){return t.addClass_v4ob8x$_0(e),i}.bind(null,this));for(e=n.iterator();e.hasNext();)o(e.next());this.styleName.addAll_brywnq$(t.styleName),this.rules.addAll_brywnq$(t.rules),this.multiRules.addAll_brywnq$(t.multiRules)},Object.defineProperty(ct.prototype,"NOT_REGEX_0",{configurable:!0,get:function(){return this.NOT_REGEX_v10gwb$_0.value}}),ct.$metadata$={kind:l,simpleName:"Companion",interfaces:[]};var ut,ht,dt=null;function pt(){return null===dt&&new ct,dt}function _t(t,e,n,i,o){void 0===t&&(t=""),void 0===e&&(e=!0),void 0===n&&(n=null),void 0===i&&(i=!1),void 0===o&&(o=!1),this.indent_5a7fkq$_0=t,this.allowClasses_b1jqk7$_0=e,this.parent_v1zecc$_0=n,this.isHolder_et55gw$_0=i,this.isStyledComponent_ajdlma$_0=o,this.classes_vbm8co$_0=p(),this.declarations_ykhz6b$_0=new Ma,this.styleName_97z50u$_0=p(),this.memoizedHashCode_oma9nl$_0=null,this.rules_g2usq1$_0=p(),this.multiRules_116og8$_0=p()}function mt(t){return"-"+t.value.toLowerCase()}function ft(t){return ut.replace_20wsma$(t,mt)}function gt(t,e){return r(t,e)}function $t(t,e){this.selector=t,this.css=e,this.memoizedHashCode_0=null}function Et(){}function yt(t){ee(),ie.call(this,t),this.value_nj4rtk$_0=t}function bt(){te=this,this.none=new yt("none"),this.auto=new yt("auto"),this.initial=new yt("initial"),this.inherit=new yt("inherit"),this.available=new yt("available"),this.fillAvailable=new yt("fill-available"),this.borderBox=new yt("border-box"),this.contentBox=new yt("content-box"),this.maxContent=new yt("max-content"),this.minContent=new yt("min-content"),this.fitContent=new yt("fit-content")}J.$metadata$={kind:u,simpleName:"CssBuilder",interfaces:[Et,ka]},Object.defineProperty(_t.prototype,"indent",{get:function(){return this.indent_5a7fkq$_0}}),Object.defineProperty(_t.prototype,"allowClasses",{get:function(){return this.allowClasses_b1jqk7$_0}}),Object.defineProperty(_t.prototype,"parent",{get:function(){return this.parent_v1zecc$_0},set:function(t){this.parent_v1zecc$_0=t}}),Object.defineProperty(_t.prototype,"isHolder",{get:function(){return this.isHolder_et55gw$_0}}),Object.defineProperty(_t.prototype,"isStyledComponent",{get:function(){return this.isStyledComponent_ajdlma$_0}}),Object.defineProperty(_t.prototype,"classes",{configurable:!0,get:function(){return this.classes_vbm8co$_0}}),_t.prototype.unaryPlus_uoyjcc$=function(t){t(this)},Object.defineProperty(_t.prototype,"declarations",{configurable:!0,get:function(){return this.declarations_ykhz6b$_0}}),Object.defineProperty(_t.prototype,"styleName",{configurable:!0,get:function(){return this.styleName_97z50u$_0}}),_t.prototype.toString=function(){var t=_();return t.append_s8jyv4$(this.declarations),this.buildRules_s47sd7$(t,this.indent),t.toString()},_t.prototype.hashCode=function(){var t,e;if(null!=(t=this.memoizedHashCode_oma9nl$_0))e=t;else{var n,i=0;for(n=this.rules.iterator();n.hasNext();)i=i+n.next().hashCode()|0;var o,r=i,s=0;for(o=this.multiRules.iterator();o.hasNext();)s=s+o.next().hashCode()|0;var a=r+s+this.declarations.hashCode()|0;this.memoizedHashCode_oma9nl$_0=a,e=a}return e},_t.prototype.equals=function(t){var n;t:do{var i;if(this===t){n=!0;break t}if(null==t||null==(i=e.getKClassFromExpression(this))||!i.equals(e.getKClassFromExpression(t))){n=!1;break t}e.isType(t,_t)||m();var o,r=f(this)===f(t);r&&(r=h(this.rules,t.rules)&&h(this.multiRules,t.multiRules)&&(null!=(o=this.declarations)?o.equals(t.declarations):null)),n=r}while(0);return n},Object.defineProperty(_t.prototype,"rules",{configurable:!0,get:function(){return this.rules_g2usq1$_0}}),Object.defineProperty(_t.prototype,"multiRules",{configurable:!0,get:function(){return this.multiRules_116og8$_0}}),_t.$metadata$={kind:d,simpleName:"CssBuilderImpl",interfaces:[J]},$t.prototype.hashCode=function(){var t,e;if(null!=(t=this.memoizedHashCode_0))e=t;else{var n=f(this.selector)+f(this.css)|0;this.memoizedHashCode_0=n,e=n}return e},$t.prototype.equals=function(t){var n;t:do{var i;if(this===t){n=!0;break t}if(null==t||null==(i=e.getKClassFromExpression(this))||!i.equals(e.getKClassFromExpression(t))){n=!1;break t}e.isType(t,$t)||m();var o=f(this)===f(t);o&&(o=h(this.selector,t.selector)&&h(this.css,t.css)),n=o}while(0);return n},$t.$metadata$={kind:d,simpleName:"Rule",interfaces:[]},$t.prototype.component1=function(){return this.selector},$t.prototype.component2=function(){return this.css},$t.prototype.copy_sjvxug$=function(t,e){return new $t(void 0===t?this.selector:t,void 0===e?this.css:e)},$t.prototype.toString=function(){return"Rule(selector="+e.toString(this.selector)+", css="+e.toString(this.css)+")"},Et.prototype.buildRules_s47sd7$=function(t,e){var n;for(n=this.resolveRules_ry1ed0$(this.rules,this.multiRules).iterator();n.hasNext();){var i=n.next(),o=i.selector+" {";t.append_pdl1vj$(o).append_s8itvh$(10),t.append_s8jyv4$(i.css),t.append_pdl1vj$("}").append_s8itvh$(10)}},Et.prototype.resolveRules_ry1ed0$=function(t,e){var n,i=g();for(n=t.iterator();n.hasNext();){var o=n.next(),r=i.get_11rb$(o.selector);if(null==r){var s=o.selector,a=o.selector,c=X();c.append_5cyqpy$(o.css);var l=new $t(a,c);i.put_xwzc9p$(s,l)}else r.css.append_5cyqpy$(o.css)}return $(e,i.values)},Et.prototype.rule_v44dnz$=function(t,e){return this.rule_1q2hwx$(t,!1,void 0,e)},Et.prototype.rule_1q2hwx$$default=function(t,e,n,i){var o=X(this.indent+" ",!1,e?this:null);i(o);var r=o;return this.rule_jindqg$(t,e,n,r)},Et.prototype.rule_1q2hwx$=function(t,e,n,i,o){return void 0===n&&(n=!1),o?o(t,e,n,i):this.rule_1q2hwx$$default(t,e,n,i)},Et.prototype.rule_jindqg$$default=function(t,e,n,i){var o=new $t(t,i);return i.parent=e?this:null,(n?this.multiRules:this.rules).add_11rb$(o),o},Et.prototype.rule_jindqg$=function(t,e,n,i,o){return void 0===n&&(n=!1),o?o(t,e,n,i):this.rule_jindqg$$default(t,e,n,i)},Et.$metadata$={kind:u,simpleName:"RuleContainer",interfaces:[]},Object.defineProperty(yt.prototype,"value",{get:function(){return this.value_nj4rtk$_0}}),bt.$metadata$={kind:l,simpleName:"Companion",interfaces:[]};var St,vt,Ct,Nt,Tt,Lt,zt,wt,Ot,Rt,At,xt,It,Ut,Dt,Pt,Mt,kt,jt,Gt,qt,Ft,Bt,Wt,Ht,Vt,Kt,Xt,Jt,Yt,Qt,Zt,te=null;function ee(){return null===te&&new bt,te}function ne(t,e){yt.call(this,h(t,0)?ht:t.toString()+e),this.number=t,this.unit=e}function ie(t){this.value_tqttmh$_0=t}function oe(t,e){b.call(this),this.name$=t,this.ordinal$=e}function re(){re=function(){},St=new oe("initial",0),vt=new oe("inherit",1),Ct=new oe("unset",2),Nt=new oe("auto",3),Tt=new oe("stretch",4),Lt=new oe("center",5),zt=new oe("start",6),wt=new oe("end",7),Ot=new oe("selfStart",8),Rt=new oe("selfEnd",9),At=new oe("flexStart",10),xt=new oe("flexEnd",11),It=new oe("baseline",12)}function se(){return re(),St}function ae(){return re(),vt}function ce(){return re(),Ct}function le(){return re(),Nt}function ue(){return re(),Tt}function he(){return re(),Lt}function de(){return re(),zt}function pe(){return re(),wt}function _e(){return re(),Ot}function me(){return re(),Rt}function fe(){return re(),At}function ge(){return re(),xt}function $e(){return re(),It}function Ee(t,e){b.call(this),this.name$=t,this.ordinal$=e}function ye(){ye=function(){},Ut=new Ee("initial",0),Dt=new Ee("inherit",1),Pt=new Ee("unset",2),Mt=new Ee("center",3),kt=new Ee("start",4),jt=new Ee("end",5),Gt=new Ee("flexStart",6),qt=new Ee("flexEnd",7),Ft=new Ee("left",8),Bt=new Ee("right",9),Wt=new Ee("baseline",10),Ht=new Ee("firstBaseline",11),Vt=new Ee("lastBaseline",12),Kt=new Ee("spaceBetween",13),Xt=new Ee("spaceAround",14),Jt=new Ee("spaceEvenly",15),Yt=new Ee("stretch",16),Qt=new Ee("safeCenter",17),Zt=new Ee("unsafeCenter",18)}function be(){return ye(),Ut}function Se(){return ye(),Dt}function ve(){return ye(),Pt}function Ce(){return ye(),Mt}function Ne(){return ye(),kt}function Te(){return ye(),jt}function Le(){return ye(),Gt}function ze(){return ye(),qt}function we(){return ye(),Ft}function Oe(){return ye(),Bt}function Re(){return ye(),Wt}function Ae(){return ye(),Ht}function xe(){return ye(),Vt}function Ie(){return ye(),Kt}function Ue(){return ye(),Xt}function De(){return ye(),Jt}function Pe(){return ye(),Yt}function Me(){return ye(),Qt}function ke(){return ye(),Zt}function je(t){to(),ie.call(this,t),this.value_dt80hi$_0=t,this.rgb_0=null}function Ge(){Zi=this,this.initial=new je("initial"),this.inherit=new je("inherit"),this.unset=new je("unset"),this.transparent=new je("transparent"),this.currentColor=new je("currentColor"),this.aliceBlue=oo("aliceblue","#f0f8ff"),this.antiqueWhite=oo("antiquewhite","#faebd7"),this.aqua=oo("aqua","#00ffff"),this.aquamarine=oo("aquamarine","#7fffd4"),this.azure=oo("azure","#f0ffff"),this.beige=oo("beige","#f5f5dc"),this.bisque=oo("bisque","#ffe4c4"),this.black=oo("black","#000000"),this.blanchedAlmond=oo("blanchedalmond","#ffebcd"),this.blue=oo("blue","#0000ff"),this.blueViolet=oo("blueviolet","#8a2be2"),this.brown=oo("brown","#a52a2a"),this.burlyWood=oo("burlywood","#deb887"),this.cadetBlue=oo("cadetblue","#5f9ea0"),this.chartreuse=oo("chartreuse","#7fff00"),this.chocolate=oo("chocolate","#d2691e"),this.coral=oo("coral","#ff7f50"),this.cornflowerBlue=oo("cornflowerblue","#6495ed"),this.cornsilk=oo("cornsilk","#fff8dc"),this.crimson=oo("crimson","#dc143c"),this.cyan=oo("cyan","#00ffff"),this.darkBlue=oo("darkblue","#00008b"),this.darkCyan=oo("darkcyan","#008b8b"),this.darkGoldenrod=oo("darkgoldenrod","#b8860b"),this.darkGray=oo("darkgray","#a9a9a9"),this.darkGreen=oo("darkgreen","#006400"),this.darkGrey=oo("darkgrey","#a9a9a9"),this.darkKhaki=oo("darkkhaki","#bdb76b"),this.darkMagenta=oo("darkmagenta","#8b008b"),this.darkOliveGreen=oo("darkolivegreen","#556b2f"),this.darkOrange=oo("darkorange","#ff8c00"),this.darkOrchid=oo("darkorchid","#9932cc"),this.darkRed=oo("darkred","#8b0000"),this.darkSalmon=oo("darksalmon","#e9967a"),this.darkSeaGreen=oo("darkseagreen","#8fbc8f"),this.darkSlateBlue=oo("darkslateblue","#483d8b"),this.darkSlateGray=oo("darkslategray","#2f4f4f"),this.darkSlateGrey=oo("darkslategrey","#2f4f4f"),this.darkTurquoise=oo("darkturquoise","#00ced1"),this.darkViolet=oo("darkviolet","#9400d3"),this.deepPink=oo("deeppink","#ff1493"),this.deepSkyBlue=oo("deepskyblue","#00bfff"),this.dimGray=oo("dimgray","#696969"),this.dimGrey=oo("dimgrey","#696969"),this.dodgerBlue=oo("dodgerblue","#1e90ff"),this.firebrick=oo("firebrick","#b22222"),this.floralWhite=oo("floralwhite","#fffaf0"),this.forestGreen=oo("forestgreen","#228b22"),this.fuchsia=oo("fuchsia","#ff00ff"),this.gainsboro=oo("gainsboro","#dcdcdc"),this.ghostWhite=oo("ghostwhite","#f8f8ff"),this.gold=oo("gold","#ffd700"),this.goldenrod=oo("goldenrod","#daa520"),this.gray=oo("gray","#808080"),this.green=oo("green","#008000"),this.greenYellow=oo("greenyellow","#adff2f"),this.grey=oo("grey","#808080"),this.honeydew=oo("honeydew","#f0fff0"),this.hotPink=oo("hotpink","#ff69b4"),this.indianRed=oo("indianred","#cd5c5c"),this.indigo=oo("indigo","#4b0082"),this.ivory=oo("ivory","#fffff0"),this.khaki=oo("khaki","#f0e68c"),this.lavender=oo("lavender","#e6e6fa"),this.lavenderBlush=oo("lavenderblush","#fff0f5"),this.lawnGreen=oo("lawngreen","#7cfc00"),this.lemonChiffon=oo("lemonchiffon","#fffacd"),this.lightBlue=oo("lightblue","#add8e6"),this.lightCoral=oo("lightcoral","#f08080"),this.lightCyan=oo("lightcyan","#e0ffff"),this.lightGoldenrodYellow=oo("lightgoldenrodyellow","#fafad2"),this.lightGray=oo("lightgray","#d3d3d3"),this.lightGreen=oo("lightgreen","#90ee90"),this.lightGrey=oo("lightgrey","#d3d3d3"),this.lightPink=oo("lightpink","#ffb6c1"),this.lightSalmon=oo("lightsalmon","#ffa07a"),this.lightSeaGreen=oo("lightseagreen","#20b2aa"),this.lightSkyBlue=oo("lightskyblue","#87cefa"),this.lightSlateGray=oo("lightslategray","#778899"),this.lightSlateGrey=oo("lightslategrey","#778899"),this.lightSteelBlue=oo("lightsteelblue","#b0c4de"),this.lightYellow=oo("lightyellow","#ffffe0"),this.lime=oo("lime","#00ff00"),this.limeGreen=oo("limegreen","#32cd32"),this.linen=oo("linen","#faf0e6"),this.magenta=oo("magenta","#ff00ff"),this.maroon=oo("maroon","#800000"),this.mediumAquamarine=oo("mediumaquamarine","#66cdaa"),this.mediumBlue=oo("mediumblue","#0000cd"),this.mediumOrchid=oo("mediumorchid","#ba55d3"),this.mediumPurple=oo("mediumpurple","#9370d8"),this.mediumSeaGreen=oo("mediumseagreen","#3cb371"),this.mediumSlateBlue=oo("mediumslateblue","#7b68ee"),this.mediumSpringGreen=oo("mediumspringgreen","#00fa9a"),this.mediumTurquoise=oo("mediumturquoise","#48d1cc"),this.mediumVioletRed=oo("mediumvioletred","#c71585"),this.midnightBlue=oo("midnightblue","#191970"),this.mintCream=oo("mintcream","#f5fffa"),this.mistyRose=oo("mistyrose","#ffe4e1"),this.moccasin=oo("moccasin","#ffe4b5"),this.navajoWhite=oo("navajowhite","#ffdead"),this.navy=oo("navy","#000080"),this.oldLace=oo("oldlace","#fdf5e6"),this.olive=oo("olive","#808000"),this.oliveDrab=oo("olivedrab","#6b8e23"),this.orange=oo("orange","#ffa500"),this.orangeRed=oo("orangered","#ff4500"),this.orchid=oo("orchid","#da70d6"),this.paleGoldenrod=oo("palegoldenrod","#eee8aa"),this.paleGreen=oo("palegreen","#98fb98"),this.paleTurquoise=oo("paleturquoise","#afeeee"),this.paleVioletRed=oo("palevioletred","#db7093"),this.papayaWhip=oo("papayawhip","#ffefd5"),this.peachPuff=oo("peachpuff","#ffdab9"),this.peru=oo("peru","#cd853f"),this.pink=oo("pink","#ffc0cb"),this.plum=oo("plum","#dda0dd"),this.powderBlue=oo("powderblue","#b0e0e6"),this.purple=oo("purple","#800080"),this.red=oo("red","#ff0000"),this.rosyBrown=oo("rosybrown","#bc8f8f"),this.royalBlue=oo("royalblue","#4169e1"),this.saddleBrown=oo("saddlebrown","#8b4513"),this.salmon=oo("salmon","#fa8072"),this.sandyBrown=oo("sandybrown","#f4a460"),this.seaGreen=oo("seagreen","#2e8b57"),this.seaShell=oo("seashell","#fff5ee"),this.sienna=oo("sienna","#a0522d"),this.silver=oo("silver","#c0c0c0"),this.skyBlue=oo("skyblue","#87ceeb"),this.slateBlue=oo("slateblue","#6a5acd"),this.slateGray=oo("slategray","#708090"),this.slateGrey=oo("slategrey","#708090"),this.snow=oo("snow","#fffafa"),this.springGreen=oo("springgreen","#00ff7f"),this.steelBlue=oo("steelblue","#4682b4"),this.tan=oo("tan","#d2b48c"),this.teal=oo("teal","#008080"),this.thistle=oo("thistle","#d8bfd8"),this.tomato=oo("tomato","#ff6347"),this.turquoise=oo("turquoise","#40e0d0"),this.violet=oo("violet","#ee82ee"),this.wheat=oo("wheat","#f5deb3"),this.white=oo("white","#ffffff"),this.whiteSmoke=oo("whitesmoke","#f5f5f5"),this.yellow=oo("yellow","#ffff00"),this.yellowGreen=oo("yellowgreen","#9acd32"),this.HSLA_REGEX_vl7rxf$_0=c(qe),this.RGBA_REGEX_1amhwv$_0=c(Fe)}function qe(){return L("^hsla?\\((-?[0-9]+\\.?[0-9]*(?:deg|grad|rad|turn)?)\\s*[, ]?\\s*(\\d{1,3})%\\s*[, ]\\s*(\\d{1,3})%\\s*[, ]?\\s*(\\d|(?:\\d?\\.\\d+))?\\)$",T.IGNORE_CASE)}function Fe(){return L("^rgba?\\((\\d{1,3}%?)\\s*[, ]\\s*(\\d{1,3}%?)\\s*[, ]\\s*(\\d{1,3}%?)[, ]?\\s*(\\d|(?:\\d?\\.\\d+))?\\)$",T.IGNORE_CASE)}Object.defineProperty(yt.prototype,"valueCalcSafe_75baly$_0",{configurable:!0,get:function(){return h(this.value,ht)?"0px":this.value}}),yt.prototype.unaryMinus=function(){return new yt(E(this.value,45)?this.value.substring(1):y(this.value,"calc")?"calc(0px - "+this.value+")":h(this.value,ht)?this.value:"-"+this.value)},yt.prototype.plus_tco10h$=function(t){return new yt("calc("+this.valueCalcSafe_75baly$_0+" + "+t.valueCalcSafe_75baly$_0+")")},yt.prototype.minus_tco10h$=function(t){return new yt("calc("+this.valueCalcSafe_75baly$_0+" - "+t.valueCalcSafe_75baly$_0+")")},yt.prototype.times_3p81yu$=function(t){return new yt("calc("+this.valueCalcSafe_75baly$_0+" * "+t.toString()+")")},yt.prototype.div_3p81yu$=function(t){return new yt("calc("+this.valueCalcSafe_75baly$_0+" / "+t.toString()+")")},yt.prototype.equals=function(t){var n;return this===t||!(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))&&(e.isType(t,yt)||m(),h(this.value,t.value))},yt.prototype.hashCode=function(){return f(this.value)},yt.$metadata$={kind:d,simpleName:"LinearDimension",interfaces:[ie]},ne.$metadata$={kind:d,simpleName:"NumericLinearDimension",interfaces:[yt]},Object.defineProperty(ie.prototype,"value",{get:function(){return this.value_tqttmh$_0}}),ie.prototype.toString=function(){return this.value},ie.$metadata$={kind:d,simpleName:"CssValue",interfaces:[]},oe.prototype.toString=function(){return ft(this.name)},oe.$metadata$={kind:d,simpleName:"Align",interfaces:[b]},oe.values=function(){return[se(),ae(),ce(),le(),ue(),he(),de(),pe(),_e(),me(),fe(),ge(),$e()]},oe.valueOf_61zpoe$=function(t){switch(t){case"initial":return se();case"inherit":return ae();case"unset":return ce();case"auto":return le();case"stretch":return ue();case"center":return he();case"start":return de();case"end":return pe();case"selfStart":return _e();case"selfEnd":return me();case"flexStart":return fe();case"flexEnd":return ge();case"baseline":return $e();default:S("No enum constant kotlinx.css.Align."+t)}},Ee.prototype.toString=function(){return ft(this.name)},Ee.$metadata$={kind:d,simpleName:"JustifyContent",interfaces:[b]},Ee.values=function(){return[be(),Se(),ve(),Ce(),Ne(),Te(),Le(),ze(),we(),Oe(),Re(),Ae(),xe(),Ie(),Ue(),De(),Pe(),Me(),ke()]},Ee.valueOf_61zpoe$=function(t){switch(t){case"initial":return be();case"inherit":return Se();case"unset":return ve();case"center":return Ce();case"start":return Ne();case"end":return Te();case"flexStart":return Le();case"flexEnd":return ze();case"left":return we();case"right":return Oe();case"baseline":return Re();case"firstBaseline":return Ae();case"lastBaseline":return xe();case"spaceBetween":return Ie();case"spaceAround":return Ue();case"spaceEvenly":return De();case"stretch":return Pe();case"safeCenter":return Me();case"unsafeCenter":return ke();default:S("No enum constant kotlinx.css.JustifyContent."+t)}},Object.defineProperty(je.prototype,"value",{get:function(){return this.value_dt80hi$_0}}),Ge.prototype.normalizeFractionalPercent_14dthe$=function(t){return v(t,0,1)},Ge.prototype.normalizePercent_za3lpa$=function(t){return C(t,0,100)},Ge.prototype.normalizeRGB_za3lpa$=function(t){return C(t,0,255)},Ge.prototype.normalizeHue_14dthe$=function(t){return N((t%360+360)%360)},Ge.prototype.normalizeAlpha_14dthe$=function(t){return this.normalizeFractionalPercent_14dthe$(t)},Object.defineProperty(Ge.prototype,"HSLA_REGEX_0",{configurable:!0,get:function(){return this.HSLA_REGEX_vl7rxf$_0.value}}),Object.defineProperty(Ge.prototype,"RGBA_REGEX_0",{configurable:!0,get:function(){return this.RGBA_REGEX_1amhwv$_0.value}}),Ge.$metadata$={kind:l,simpleName:"Companion",interfaces:[]};var Be,We,He,Ve,Ke,Xe,Je,Ye,Qe,Ze,tn,en,nn,on,rn,sn,an,cn,ln,un,hn,dn,pn,_n,mn,fn,gn,$n,En,yn,bn,Sn,vn,Cn,Nn,Tn,Ln,zn,wn,On,Rn,An,xn,In,Un,Dn,Pn,Mn,kn,jn,Gn,qn,Fn,Bn,Wn,Hn,Vn,Kn,Xn,Jn,Yn,Qn,Zn,ti,ei,ni,ii,oi,ri,si,ai,ci,li,ui,hi,di,pi,_i,mi,fi,gi,$i,Ei,yi,bi,Si,vi,Ci,Ni,Ti,Li,zi,wi,Oi,Ri,Ai,xi,Ii,Ui,Di,Pi,Mi,ki,ji,Gi,qi,Fi,Bi,Wi,Hi,Vi,Ki,Xi,Ji,Yi,Qi,Zi=null;function to(){return null===Zi&&new Ge,Zi}function eo(t,e,n,i){void 0===i&&(i=1),this.red=t,this.green=e,this.blue=n,this.alpha=i}function no(t,e,n,i){void 0===i&&(i=1),this.hue=t,this.saturation=e,this.lightness=n,this.alpha=i}function io(t,e,n){var i=n<0?n+1:n>1?n-1:n;return i<1/6?t+6*(e-t)*i:i<.5?e:i<2/3?t+6*(e-t)*(2/3-i):t}function oo(t,e,n){return n=n||Object.create(je.prototype),je.call(n,t),n.rgb_0=e,n}function ro(t,e,n){return new je("rgb("+t+", "+e+", "+n+")")}function so(t,e,n,i){return new je("rgba("+t+", "+e+", "+n+", "+co(i)+")")}function ao(t,e,n,i){return new je("hsla("+t+", "+e+"%, "+n+"%, "+co(i)+")")}function co(t){var e=t.toString();return j(e,".")?e:e+".0"}function lo(t,e){b.call(this),this.name$=t,this.ordinal$=e}function uo(){uo=function(){},Be=new lo("initial",0),We=new lo("inherit",1),He=new lo("unset",2),Ve=new lo("auto",3),Ke=new lo("default",4),Xe=new lo("none",5),Je=new lo("contextMenu",6),Ye=new lo("help",7),Qe=new lo("pointer",8),Ze=new lo("progress",9),tn=new lo("wait",10),en=new lo("cell",11),nn=new lo("crosshair",12),on=new lo("text",13),rn=new lo("verticalText",14),sn=new lo("alias",15),an=new lo("copy",16),cn=new lo("move",17),ln=new lo("noDrop",18),un=new lo("notAllowed",19),hn=new lo("grab",20),dn=new lo("grabbing",21),pn=new lo("colResize",22),_n=new lo("rowResize",23),mn=new lo("allScroll",24),fn=new lo("eResize",25),gn=new lo("nResize",26),$n=new lo("neResize",27),En=new lo("nwResize",28),yn=new lo("sResize",29),bn=new lo("seResize",30),Sn=new lo("swResize",31),vn=new lo("wResize",32),Cn=new lo("ewResize",33),Nn=new lo("nsResize",34),Tn=new lo("neswResize",35),Ln=new lo("nwseResize",36),zn=new lo("zoomIn",37),wn=new lo("zoomOut",38)}function ho(){return uo(),Be}function po(){return uo(),We}function _o(){return uo(),He}function mo(){return uo(),Ve}function fo(){return uo(),Ke}function go(){return uo(),Xe}function $o(){return uo(),Je}function Eo(){return uo(),Ye}function yo(){return uo(),Qe}function bo(){return uo(),Ze}function So(){return uo(),tn}function vo(){return uo(),en}function Co(){return uo(),nn}function No(){return uo(),on}function To(){return uo(),rn}function Lo(){return uo(),sn}function zo(){return uo(),an}function wo(){return uo(),cn}function Oo(){return uo(),ln}function Ro(){return uo(),un}function Ao(){return uo(),hn}function xo(){return uo(),dn}function Io(){return uo(),pn}function Uo(){return uo(),_n}function Do(){return uo(),mn}function Po(){return uo(),fn}function Mo(){return uo(),gn}function ko(){return uo(),$n}function jo(){return uo(),En}function Go(){return uo(),yn}function qo(){return uo(),bn}function Fo(){return uo(),Sn}function Bo(){return uo(),vn}function Wo(){return uo(),Cn}function Ho(){return uo(),Nn}function Vo(){return uo(),Tn}function Ko(){return uo(),Ln}function Xo(){return uo(),zn}function Jo(){return uo(),wn}function Yo(t){ie.call(this,t),this.value_eybwfw$_0=t}function Qo(t){return new Yo(t)}function Zo(t,e){b.call(this),this.name$=t,this.ordinal$=e}function tr(){tr=function(){},On=new Zo("initial",0),Rn=new Zo("inherit",1),An=new Zo("unset",2),xn=new Zo("block",3),In=new Zo("inline",4),Un=new Zo("runIn",5),Dn=new Zo("flow",6),Pn=new Zo("flowRoot",7),Mn=new Zo("table",8),kn=new Zo("flex",9),jn=new Zo("grid",10),Gn=new Zo("subgrid",11),qn=new Zo("listItem",12),Fn=new Zo("tableRowGroup",13),Bn=new Zo("tableHeaderGroup",14),Wn=new Zo("tableFooterGroup",15),Hn=new Zo("tableRow",16),Vn=new Zo("tableCell",17),Kn=new Zo("tableColumnGroup",18),Xn=new Zo("tableColumn",19),Jn=new Zo("tableCaption",20),Yn=new Zo("contents",21),Qn=new Zo("none",22),Zn=new Zo("inlineBlock",23),ti=new Zo("inlineListItem",24),ei=new Zo("inlineTable",25),ni=new Zo("inlineFlex",26),ii=new Zo("inlineGrid",27)}function er(){return tr(),On}function nr(){return tr(),Rn}function ir(){return tr(),An}function or(){return tr(),xn}function rr(){return tr(),In}function sr(){return tr(),Un}function ar(){return tr(),Dn}function cr(){return tr(),Pn}function lr(){return tr(),Mn}function ur(){return tr(),kn}function hr(){return tr(),jn}function dr(){return tr(),Gn}function pr(){return tr(),qn}function _r(){return tr(),Fn}function mr(){return tr(),Bn}function fr(){return tr(),Wn}function gr(){return tr(),Hn}function $r(){return tr(),Vn}function Er(){return tr(),Kn}function yr(){return tr(),Xn}function br(){return tr(),Jn}function Sr(){return tr(),Yn}function vr(){return tr(),Qn}function Cr(){return tr(),Zn}function Nr(){return tr(),ti}function Tr(){return tr(),ei}function Lr(){return tr(),ni}function zr(){return tr(),ii}function wr(t,e){b.call(this),this.name$=t,this.ordinal$=e}function Or(){Or=function(){},oi=new wr("initial",0),ri=new wr("inherit",1),si=new wr("unset",2),ai=new wr("nowrap",3),ci=new wr("wrap",4),li=new wr("wrapReverse",5)}function Rr(){return Or(),oi}function Ar(){return Or(),ri}function xr(){return Or(),si}function Ir(){return Or(),ai}function Ur(){return Or(),ci}function Dr(){return Or(),li}function Pr(t,e){b.call(this),this.name$=t,this.ordinal$=e}function Mr(){Mr=function(){},ui=new Pr("initial",0),hi=new Pr("inherit",1),di=new Pr("unset",2),pi=new Pr("column",3),_i=new Pr("columnReverse",4),mi=new Pr("row",5),fi=new Pr("rowReverse",6)}function kr(){return Mr(),ui}function jr(){return Mr(),hi}function Gr(){return Mr(),di}function qr(){return Mr(),pi}function Fr(){return Mr(),_i}function Br(){return Mr(),mi}function Wr(){return Mr(),fi}function Hr(t,e){b.call(this),this.name$=t,this.ordinal$=e}function Vr(){Vr=function(){},gi=new Hr("initial",0),$i=new Hr("inherit",1),Ei=new Hr("unset",2),yi=new Hr("visible",3),bi=new Hr("hidden",4),Si=new Hr("scroll",5),vi=new Hr("auto",6)}function Kr(){return Vr(),gi}function Xr(){return Vr(),$i}function Jr(){return Vr(),Ei}function Yr(){return Vr(),yi}function Qr(){return Vr(),bi}function Zr(){return Vr(),Si}function ts(){return Vr(),vi}function es(t,e){b.call(this),this.name$=t,this.ordinal$=e}function ns(){ns=function(){},Ci=new es("initial",0),Ni=new es("inherit",1),Ti=new es("unset",2),Li=new es("auto",3),zi=new es("none",4)}function is(){return ns(),Ci}function os(){return ns(),Ni}function rs(){return ns(),Ti}function ss(){return ns(),Li}function as(){return ns(),zi}function cs(t,e){b.call(this),this.name$=t,this.ordinal$=e}function ls(){ls=function(){},wi=new cs("initial",0),Oi=new cs("inherit",1),Ri=new cs("unset",2),Ai=new cs("static",3),xi=new cs("relative",4),Ii=new cs("absolute",5),Ui=new cs("fixed",6),Di=new cs("sticky",7)}function us(){return ls(),wi}function hs(){return ls(),Oi}function ds(){return ls(),Ri}function ps(){return ls(),Ai}function _s(){return ls(),xi}function ms(){return ls(),Ii}function fs(){return ls(),Ui}function gs(){return ls(),Di}function $s(t,e){b.call(this),this.name$=t,this.ordinal$=e}function Es(){Es=function(){},Pi=new $s("initial",0),Mi=new $s("inherit",1),ki=new $s("unset",2),ji=new $s("left",3),Gi=new $s("right",4),qi=new $s("center",5),Fi=new $s("justify",6),Bi=new $s("justifyAll",7),Wi=new $s("start",8),Hi=new $s("end",9),Vi=new $s("matchParent",10)}function ys(){return Es(),Pi}function bs(){return Es(),Mi}function Ss(){return Es(),ki}function vs(){return Es(),ji}function Cs(){return Es(),Gi}function Ns(){return Es(),qi}function Ts(){return Es(),Fi}function Ls(){return Es(),Bi}function zs(){return Es(),Wi}function ws(){return Es(),Hi}function Os(){return Es(),Vi}function Rs(t,e){b.call(this),this.name$=t,this.ordinal$=e}function As(){As=function(){},Ki=new Rs("initial",0),Xi=new Rs("inherit",1),Ji=new Rs("unset",2),Yi=new Rs("clip",3),Qi=new Rs("ellipsis",4)}function xs(){return As(),Ki}function Is(){return As(),Xi}function Us(){return As(),Ji}function Ds(){return As(),Yi}function Ps(){return As(),Qi}function Ms(t){la(),ie.call(this,t),this.value_lgzlm2$_0=t}function ks(){ca=this,this.initial=new Ms("initial"),this.inherit=new Ms("inherit"),this.unset=new Ms("unset"),this.baseline=new Ms("baseline"),this.sub=new Ms("sub"),this.super=new Ms("super"),this.textTop=new Ms("text-top"),this.textBottom=new Ms("text-bottom"),this.middle=new Ms("middle"),this.top=new Ms("top"),this.bottom=new Ms("bottom")}je.prototype.withAlpha_14dthe$=function(t){if(y(this.value,"hsl",!0)){var e=this.fromHSLANotation_8be2vx$();return ao(e.hue,e.saturation,e.lightness,to().normalizeAlpha_14dthe$(t)*e.alpha)}var n=this.toRGBA_8be2vx$();return so(n.red,n.green,n.blue,to().normalizeAlpha_14dthe$(t)*n.alpha)},je.prototype.changeAlpha_14dthe$=function(t){if(y(this.value,"hsl",!0)){var e=this.fromHSLANotation_8be2vx$();return ao(e.hue,e.saturation,e.lightness,to().normalizeAlpha_14dthe$(t))}var n=this.toRGBA_8be2vx$();return so(n.red,n.green,n.blue,to().normalizeAlpha_14dthe$(t))},je.prototype.blend_uu3z0h$=function(t){var e=this.toRGBA_8be2vx$(),n=t.toRGBA_8be2vx$(),i=(1-e.alpha)*n.red+e.alpha*e.red,o=(1-e.alpha)*n.green+e.alpha*e.green,r=(1-e.alpha)*n.blue+e.alpha*e.blue;return ro(N(i),N(o),N(r))},je.prototype.lighten_za3lpa$=function(t){var e,n=y(this.value,"hsl",!0),i=n?this.fromHSLANotation_8be2vx$():this.toRGBA_8be2vx$().asHSLA(),o=i.lightness+N(i.lightness*(to().normalizePercent_za3lpa$(t)/100))|0,r=i.copy_gb4hak$(void 0,void 0,to().normalizePercent_za3lpa$(o));if(n)e=ao(r.hue,r.saturation,r.lightness,r.alpha);else{var s=r.asRGBA();e=so(s.red,s.green,s.blue,s.alpha)}return e},je.prototype.darken_za3lpa$=function(t){var e,n=y(this.value,"hsl",!0),i=n?this.fromHSLANotation_8be2vx$():this.toRGBA_8be2vx$().asHSLA(),o=i.lightness-N(i.lightness*(to().normalizePercent_za3lpa$(t)/100))|0,r=i.copy_gb4hak$(void 0,void 0,to().normalizePercent_za3lpa$(o));if(n)e=ao(r.hue,r.saturation,r.lightness,r.alpha);else{var s=r.asRGBA();e=so(s.red,s.green,s.blue,s.alpha)}return e},je.prototype.saturate_za3lpa$=function(t){var e,n=y(this.value,"hsl",!0),i=n?this.fromHSLANotation_8be2vx$():this.toRGBA_8be2vx$().asHSLA(),o=i.saturation+N(i.saturation*(to().normalizePercent_za3lpa$(t)/100))|0,r=i.copy_gb4hak$(void 0,to().normalizePercent_za3lpa$(o));if(n)e=ao(r.hue,r.saturation,r.lightness,r.alpha);else{var s=r.asRGBA();e=so(s.red,s.green,s.blue,s.alpha)}return e},je.prototype.desaturate_za3lpa$=function(t){var e,n=y(this.value,"hsl",!0),i=n?this.fromHSLANotation_8be2vx$():this.toRGBA_8be2vx$().asHSLA(),o=i.saturation-N(i.saturation*(to().normalizePercent_za3lpa$(t)/100))|0,r=i.copy_gb4hak$(void 0,to().normalizePercent_za3lpa$(o));if(n)e=ao(r.hue,r.saturation,r.lightness,r.alpha);else{var s=r.asRGBA();e=so(s.red,s.green,s.blue,s.alpha)}return e},eo.prototype.asHSLA=function(){var t,e,n=this.red/255,i=this.green/255,o=this.blue/255,r=G.max(n,i,o),s=G.min(n,i,o),a=r-s,c=to().normalizeFractionalPercent_14dthe$((r+s)/2);if(0!==a){var l=2*c-1;e=to().normalizeFractionalPercent_14dthe$(a/(1-G.abs(l)))}else e=0;var u=e;if(r===s)t=0;else if(r===n)t=(i-o)/a%6*60;else if(r===i)t=60*((o-n)/a+2);else{if(r!==o)throw q("Unexpected value for max".toString());t=60*((n-i)/a+4)}var h=t;return new no(to().normalizeHue_14dthe$(h),N(100*u),N(100*c),this.alpha)},eo.$metadata$={kind:d,simpleName:"RGBA",interfaces:[]},eo.prototype.component1=function(){return this.red},eo.prototype.component2=function(){return this.green},eo.prototype.component3=function(){return this.blue},eo.prototype.component4=function(){return this.alpha},eo.prototype.copy_gb4hak$=function(t,e,n,i){return new eo(void 0===t?this.red:t,void 0===e?this.green:e,void 0===n?this.blue:n,void 0===i?this.alpha:i)},eo.prototype.toString=function(){return"RGBA(red="+e.toString(this.red)+", green="+e.toString(this.green)+", blue="+e.toString(this.blue)+", alpha="+e.toString(this.alpha)+")"},eo.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*(t=31*t+e.hashCode(this.red)|0)+e.hashCode(this.green)|0)+e.hashCode(this.blue)|0)+e.hashCode(this.alpha)|0},eo.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.red,t.red)&&e.equals(this.green,t.green)&&e.equals(this.blue,t.blue)&&e.equals(this.alpha,t.alpha)},no.prototype.asRGBA=function(){var t=io;if(0===this.saturation)return new eo(this.lightness,this.lightness,this.lightness);var e=this.hue%360/360,n=this.saturation/100,i=this.lightness/100,o=i<.5?i*(1+n):i+n-i*n,r=2*i-o,s=to().normalizeFractionalPercent_14dthe$(t(r,o,e+1/3)),a=to().normalizeFractionalPercent_14dthe$(t(r,o,e)),c=to().normalizeFractionalPercent_14dthe$(t(r,o,e-1/3));return new eo(N(255*s),N(255*a),N(255*c),this.alpha)},no.$metadata$={kind:d,simpleName:"HSLA",interfaces:[]},no.prototype.component1=function(){return this.hue},no.prototype.component2=function(){return this.saturation},no.prototype.component3=function(){return this.lightness},no.prototype.component4=function(){return this.alpha},no.prototype.copy_gb4hak$=function(t,e,n,i){return new no(void 0===t?this.hue:t,void 0===e?this.saturation:e,void 0===n?this.lightness:n,void 0===i?this.alpha:i)},no.prototype.toString=function(){return"HSLA(hue="+e.toString(this.hue)+", saturation="+e.toString(this.saturation)+", lightness="+e.toString(this.lightness)+", alpha="+e.toString(this.alpha)+")"},no.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*(t=31*t+e.hashCode(this.hue)|0)+e.hashCode(this.saturation)|0)+e.hashCode(this.lightness)|0)+e.hashCode(this.alpha)|0},no.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.hue,t.hue)&&e.equals(this.saturation,t.saturation)&&e.equals(this.lightness,t.lightness)&&e.equals(this.alpha,t.alpha)},je.prototype.fromHSLANotation_8be2vx$=function(){var t,e,n,i,o,r,s,a,c=to().HSLA_REGEX_0.find_905azu$(this.value),l=(s=c,a=this,function(t){var e,n,i;if(null==(i=null!=(n=null!=(e=null!=s?s.groups:null)?e.get_za3lpa$(t):null)?n.value:null))throw z("Expected hsl or hsla notation, got "+a.value);return i}),u=l(1);t=R(u,"grad",!0)?.9*O(w(u,"grad")):R(u,"rad",!0)?180*O(w(u,"rad"))/A.PI:R(u,"turn",!0)?360*O(w(u,"turn")):R(u,"deg",!0)?O(w(u,"deg")):O(u);var h=to().normalizeHue_14dthe$(t),d=to().normalizePercent_za3lpa$(x(l(2))),p=to().normalizePercent_za3lpa$(x(l(3)));return r=null!=(o=null!=(i=null!=(n=null!=(e=null!=c?c.groups:null)?e.get_za3lpa$(4):null)?n.value:null)?O(i):null)?o:1,new no(h,d,p,to().normalizeAlpha_14dthe$(r))},je.prototype.fromRGBANotation_8be2vx$=function(){var t,e,n,i,o,r,s,a=to().RGBA_REGEX_0.find_905azu$(this.value),c=(r=a,s=this,function(t){var e,n,i;if(null==(i=null!=(n=null!=(e=null!=r?r.groups:null)?e.get_za3lpa$(t):null)?n.value:null))throw z("Expected rgb or rgba notation, got "+s.value);var o=i;return D(o,37)?U(255*to().normalizeFractionalPercent_14dthe$(O(I(o,37))/100)):to().normalizeRGB_za3lpa$(x(o))}),l=c(1),u=c(2),h=c(3);return o=null!=(i=null!=(n=null!=(e=null!=(t=null!=a?a.groups:null)?t.get_za3lpa$(4):null)?e.value:null)?O(n):null)?i:1,new eo(l,u,h,to().normalizeAlpha_14dthe$(o))},je.prototype.toRGBA_8be2vx$=function(){var t,e,n=null!=(t=this.rgb_0)?t:this.value;if(y(n,"rgb"))e=this.fromRGBANotation_8be2vx$();else if(y(n,"#")&&4===n.length)e=new eo(P(gt(String.fromCharCode(n.charCodeAt(1)),2),16),P(gt(String.fromCharCode(n.charCodeAt(2)),2),16),P(gt(String.fromCharCode(n.charCodeAt(3)),2),16));else{if(!y(n,"#")||7!==n.length&&9!==n.length)throw z("Only hexadecimal, rgb, and rgba notations are accepted, got "+n);e=new eo(P(k(n,new M(1,2)),16),P(k(n,new M(3,4)),16),P(k(n,new M(5,6)),16))}return e},je.$metadata$={kind:d,simpleName:"Color",interfaces:[ie]},lo.prototype.toString=function(){return ft(this.name)},lo.$metadata$={kind:d,simpleName:"Cursor",interfaces:[b]},lo.values=function(){return[ho(),po(),_o(),mo(),fo(),go(),$o(),Eo(),yo(),bo(),So(),vo(),Co(),No(),To(),Lo(),zo(),wo(),Oo(),Ro(),Ao(),xo(),Io(),Uo(),Do(),Po(),Mo(),ko(),jo(),Go(),qo(),Fo(),Bo(),Wo(),Ho(),Vo(),Ko(),Xo(),Jo()]},lo.valueOf_61zpoe$=function(t){switch(t){case"initial":return ho();case"inherit":return po();case"unset":return _o();case"auto":return mo();case"default":return fo();case"none":return go();case"contextMenu":return $o();case"help":return Eo();case"pointer":return yo();case"progress":return bo();case"wait":return So();case"cell":return vo();case"crosshair":return Co();case"text":return No();case"verticalText":return To();case"alias":return Lo();case"copy":return zo();case"move":return wo();case"noDrop":return Oo();case"notAllowed":return Ro();case"grab":return Ao();case"grabbing":return xo();case"colResize":return Io();case"rowResize":return Uo();case"allScroll":return Do();case"eResize":return Po();case"nResize":return Mo();case"neResize":return ko();case"nwResize":return jo();case"sResize":return Go();case"seResize":return qo();case"swResize":return Fo();case"wResize":return Bo();case"ewResize":return Wo();case"nsResize":return Ho();case"neswResize":return Vo();case"nwseResize":return Ko();case"zoomIn":return Xo();case"zoomOut":return Jo();default:S("No enum constant kotlinx.css.Cursor."+t)}},Object.defineProperty(Yo.prototype,"value",{get:function(){return this.value_eybwfw$_0}}),Yo.prototype.toString=function(){return"'"+this.value+"'"},Yo.$metadata$={kind:d,simpleName:"QuotedString",interfaces:[ie]},Zo.prototype.toString=function(){return ft(this.name)},Zo.$metadata$={kind:d,simpleName:"Display",interfaces:[b]},Zo.values=function(){return[er(),nr(),ir(),or(),rr(),sr(),ar(),cr(),lr(),ur(),hr(),dr(),pr(),_r(),mr(),fr(),gr(),$r(),Er(),yr(),br(),Sr(),vr(),Cr(),Nr(),Tr(),Lr(),zr()]},Zo.valueOf_61zpoe$=function(t){switch(t){case"initial":return er();case"inherit":return nr();case"unset":return ir();case"block":return or();case"inline":return rr();case"runIn":return sr();case"flow":return ar();case"flowRoot":return cr();case"table":return lr();case"flex":return ur();case"grid":return hr();case"subgrid":return dr();case"listItem":return pr();case"tableRowGroup":return _r();case"tableHeaderGroup":return mr();case"tableFooterGroup":return fr();case"tableRow":return gr();case"tableCell":return $r();case"tableColumnGroup":return Er();case"tableColumn":return yr();case"tableCaption":return br();case"contents":return Sr();case"none":return vr();case"inlineBlock":return Cr();case"inlineListItem":return Nr();case"inlineTable":return Tr();case"inlineFlex":return Lr();case"inlineGrid":return zr();default:S("No enum constant kotlinx.css.Display."+t)}},wr.prototype.toString=function(){return ft(this.name)},wr.$metadata$={kind:d,simpleName:"FlexWrap",interfaces:[b]},wr.values=function(){return[Rr(),Ar(),xr(),Ir(),Ur(),Dr()]},wr.valueOf_61zpoe$=function(t){switch(t){case"initial":return Rr();case"inherit":return Ar();case"unset":return xr();case"nowrap":return Ir();case"wrap":return Ur();case"wrapReverse":return Dr();default:S("No enum constant kotlinx.css.FlexWrap."+t)}},Pr.prototype.toString=function(){return ft(this.name)},Pr.$metadata$={kind:d,simpleName:"FlexDirection",interfaces:[b]},Pr.values=function(){return[kr(),jr(),Gr(),qr(),Fr(),Br(),Wr()]},Pr.valueOf_61zpoe$=function(t){switch(t){case"initial":return kr();case"inherit":return jr();case"unset":return Gr();case"column":return qr();case"columnReverse":return Fr();case"row":return Br();case"rowReverse":return Wr();default:S("No enum constant kotlinx.css.FlexDirection."+t)}},Hr.prototype.toString=function(){return this.name},Hr.$metadata$={kind:d,simpleName:"Overflow",interfaces:[b]},Hr.values=function(){return[Kr(),Xr(),Jr(),Yr(),Qr(),Zr(),ts()]},Hr.valueOf_61zpoe$=function(t){switch(t){case"initial":return Kr();case"inherit":return Xr();case"unset":return Jr();case"visible":return Yr();case"hidden":return Qr();case"scroll":return Zr();case"auto":return ts();default:S("No enum constant kotlinx.css.Overflow."+t)}},es.prototype.toString=function(){return this.name},es.$metadata$={kind:d,simpleName:"PointerEvents",interfaces:[b]},es.values=function(){return[is(),os(),rs(),ss(),as()]},es.valueOf_61zpoe$=function(t){switch(t){case"initial":return is();case"inherit":return os();case"unset":return rs();case"auto":return ss();case"none":return as();default:S("No enum constant kotlinx.css.PointerEvents."+t)}},cs.prototype.toString=function(){return this.name},cs.$metadata$={kind:d,simpleName:"Position",interfaces:[b]},cs.values=function(){return[us(),hs(),ds(),ps(),_s(),ms(),fs(),gs()]},cs.valueOf_61zpoe$=function(t){switch(t){case"initial":return us();case"inherit":return hs();case"unset":return ds();case"static":return ps();case"relative":return _s();case"absolute":return ms();case"fixed":return fs();case"sticky":return gs();default:S("No enum constant kotlinx.css.Position."+t)}},$s.prototype.toString=function(){return ft(this.name)},$s.$metadata$={kind:d,simpleName:"TextAlign",interfaces:[b]},$s.values=function(){return[ys(),bs(),Ss(),vs(),Cs(),Ns(),Ts(),Ls(),zs(),ws(),Os()]},$s.valueOf_61zpoe$=function(t){switch(t){case"initial":return ys();case"inherit":return bs();case"unset":return Ss();case"left":return vs();case"right":return Cs();case"center":return Ns();case"justify":return Ts();case"justifyAll":return Ls();case"start":return zs();case"end":return ws();case"matchParent":return Os();default:S("No enum constant kotlinx.css.TextAlign."+t)}},Rs.prototype.toString=function(){return this.name},Rs.$metadata$={kind:d,simpleName:"TextOverflow",interfaces:[b]},Rs.values=function(){return[xs(),Is(),Us(),Ds(),Ps()]},Rs.valueOf_61zpoe$=function(t){switch(t){case"initial":return xs();case"inherit":return Is();case"unset":return Us();case"clip":return Ds();case"ellipsis":return Ps();default:S("No enum constant kotlinx.css.TextOverflow."+t)}},Object.defineProperty(Ms.prototype,"value",{get:function(){return this.value_lgzlm2$_0}}),ks.$metadata$={kind:l,simpleName:"Companion",interfaces:[]};var js,Gs,qs,Fs,Bs,Ws,Hs,Vs,Ks,Xs,Js,Ys,Qs,Zs,ta,ea,na,ia,oa,ra,sa,aa,ca=null;function la(){return null===ca&&new ks,ca}function ua(t,e){b.call(this),this.name$=t,this.ordinal$=e}function ha(){ha=function(){},js=new ua("initial",0),Gs=new ua("inherit",1),qs=new ua("unset",2),Fs=new ua("visible",3),Bs=new ua("hidden",4),Ws=new ua("collapse",5)}function da(){return ha(),js}function pa(){return ha(),Gs}function _a(){return ha(),qs}function ma(){return ha(),Fs}function fa(){return ha(),Bs}function ga(){return ha(),Ws}function $a(t,e){b.call(this),this.name$=t,this.ordinal$=e}function Ea(){Ea=function(){},Hs=new $a("initial",0),Vs=new $a("inherit",1),Ks=new $a("unset",2),Xs=new $a("normal",3),Js=new $a("nowrap",4),Ys=new $a("pre",5),Qs=new $a("preWrap",6),Zs=new $a("preLine",7)}function ya(){return Ea(),Hs}function ba(){return Ea(),Vs}function Sa(){return Ea(),Ks}function va(){return Ea(),Xs}function Ca(){return Ea(),Js}function Na(){return Ea(),Ys}function Ta(){return Ea(),Qs}function La(){return Ea(),Zs}function za(t,e){b.call(this),this.name$=t,this.ordinal$=e}function wa(){wa=function(){},ta=new za("initial",0),ea=new za("inherit",1),na=new za("unset",2),ia=new za("normal",3),oa=new za("breakAll",4),ra=new za("breakWord",5),sa=new za("keepAll",6)}function Oa(){return wa(),ta}function Ra(){return wa(),ea}function Aa(){return wa(),na}function xa(){return wa(),ia}function Ia(){return wa(),oa}function Ua(){return wa(),ra}function Da(){return wa(),sa}function Pa(t){this.delimiter_o62vis$_0=t,this.list_behuth$_0=p()}function Ma(){this.$delegate_a29c06$_0=g(),this.stringDecl_9g0u2z$_0=null}function ka(){}function ja(){this.declarations_xtyr2e$_0=new Ma}function Ga(t){void 0===t&&(t=null),this.default_0=t}Ms.$metadata$={kind:d,simpleName:"VerticalAlign",interfaces:[ie]},ua.prototype.toString=function(){return this.name},ua.$metadata$={kind:d,simpleName:"Visibility",interfaces:[b]},ua.values=function(){return[da(),pa(),_a(),ma(),fa(),ga()]},ua.valueOf_61zpoe$=function(t){switch(t){case"initial":return da();case"inherit":return pa();case"unset":return _a();case"visible":return ma();case"hidden":return fa();case"collapse":return ga();default:S("No enum constant kotlinx.css.Visibility."+t)}},$a.prototype.toString=function(){return ft(this.name)},$a.$metadata$={kind:d,simpleName:"WhiteSpace",interfaces:[b]},$a.values=function(){return[ya(),ba(),Sa(),va(),Ca(),Na(),Ta(),La()]},$a.valueOf_61zpoe$=function(t){switch(t){case"initial":return ya();case"inherit":return ba();case"unset":return Sa();case"normal":return va();case"nowrap":return Ca();case"pre":return Na();case"preWrap":return Ta();case"preLine":return La();default:S("No enum constant kotlinx.css.WhiteSpace."+t)}},za.prototype.toString=function(){return ft(this.name)},za.$metadata$={kind:d,simpleName:"WordBreak",interfaces:[b]},za.values=function(){return[Oa(),Ra(),Aa(),xa(),Ia(),Ua(),Da()]},za.valueOf_61zpoe$=function(t){switch(t){case"initial":return Oa();case"inherit":return Ra();case"unset":return Aa();case"normal":return xa();case"breakAll":return Ia();case"breakWord":return Ua();case"keepAll":return Da();default:S("No enum constant kotlinx.css.WordBreak."+t)}},Pa.prototype.toString=function(){return this.list_behuth$_0.isEmpty()?"none":F(this.list_behuth$_0,this.delimiter_o62vis$_0)},Pa.prototype.clear=function(){this.list_behuth$_0.clear()},Pa.prototype.plusAssign_11rb$=function(t){this.list_behuth$_0.add_11rb$(t)},Pa.$metadata$={kind:d,simpleName:"StyleList",interfaces:[]},Object.defineProperty(Ma.prototype,"stringDecl_0",{configurable:!0,get:function(){var t,e;if(null!=(t=this.stringDecl_9g0u2z$_0))e=t;else{var n,i=_();for(n=this.entries.iterator();n.hasNext();){var o=n.next(),r=o.key,s=o.value;i.append_pdl1vj$(ft(r)+": "+s.toString()+";\n")}var a=i.toString();this.stringDecl_9g0u2z$_0=a,e=a}return e},set:function(t){this.stringDecl_9g0u2z$_0=t}}),Ma.prototype.equals=function(t){var n;t:do{var i;if(this===t){n=!0;break t}if(null==t||null==(i=e.getKClassFromExpression(this))||!i.equals(e.getKClassFromExpression(t))){n=!1;break t}e.isType(t,Ma)||m();var o=f(this)===f(t);o&&(o=h(this.stringDecl_0,t.stringDecl_0)),n=o}while(0);return n},Ma.prototype.hashCode=function(){var t,e=this.stringDecl_0;return null!=(t=null!=e?f(e):null)?t:0},Ma.prototype.toString=function(){return B(this.stringDecl_0)},Ma.prototype.set_bm4g0d$=function(t,e){this.put_xwzc9p$(t,e),this.stringDecl_0=null},Object.defineProperty(Ma.prototype,"entries",{configurable:!0,get:function(){return this.$delegate_a29c06$_0.entries}}),Object.defineProperty(Ma.prototype,"keys",{configurable:!0,get:function(){return this.$delegate_a29c06$_0.keys}}),Object.defineProperty(Ma.prototype,"size",{configurable:!0,get:function(){return this.$delegate_a29c06$_0.size}}),Object.defineProperty(Ma.prototype,"values",{configurable:!0,get:function(){return this.$delegate_a29c06$_0.values}}),Ma.prototype.clear=function(){return this.$delegate_a29c06$_0.clear()},Ma.prototype.containsKey_11rb$=function(t){return this.$delegate_a29c06$_0.containsKey_11rb$(t)},Ma.prototype.containsValue_11rc$=function(t){return this.$delegate_a29c06$_0.containsValue_11rc$(t)},Ma.prototype.get_11rb$=function(t){return this.$delegate_a29c06$_0.get_11rb$(t)},Ma.prototype.isEmpty=function(){return this.$delegate_a29c06$_0.isEmpty()},Ma.prototype.put_xwzc9p$=function(t,e){return this.$delegate_a29c06$_0.put_xwzc9p$(t,e)},Ma.prototype.putAll_a2k3zr$=function(t){return this.$delegate_a29c06$_0.putAll_a2k3zr$(t)},Ma.prototype.remove_11rb$=function(t){return this.$delegate_a29c06$_0.remove_11rb$(t)},Ma.$metadata$={kind:d,simpleName:"CssDeclarations",interfaces:[W]},ka.prototype.put_puj7f4$=function(t,e){this.declarations.set_bm4g0d$(t,e)},ka.$metadata$={kind:u,simpleName:"StyledElement",interfaces:[]},Ga.prototype.getValue_jto6o9$=function(t,n){var i,o,r;return null!=(i=this.default_0)&&(t.declarations.containsKey_11rb$(n.callableName)||t.declarations.set_bm4g0d$(n.callableName,e.isType(r=i(),H)?r:m())),null==(o=t.declarations.get_11rb$(n.callableName))||e.isType(o,H)?o:m()},Ga.prototype.setValue_6qj5c4$=function(t,n,i){var o;t.declarations.set_bm4g0d$(n.callableName,e.isType(o=i,H)?o:m())},Ga.$metadata$={kind:d,simpleName:"CssProperty",interfaces:[]};var qa,Fa=new V("alignContent"),Ba=new V("alignItems");new V("alignSelf"),new V("animation"),new V("animationDelay"),new V("animationDirection"),new V("animationDuration"),new V("animationFillMode"),new V("animationIterationCount"),new V("animationName"),new V("animationPlayState"),new V("animationTimingFunction"),new V("appearance"),new V("aspectRatio"),new V("backfaceVisibility"),new V("background"),new V("backgroundAttachment"),new V("backgroundClip");var Wa,Ha=new V("backgroundColor");new V("backgroundImage"),new V("backgroundOrigin"),new V("backgroundPosition"),new V("backgroundRepeat"),new V("backgroundSize");var Va,Ka,Xa=new V("border"),Ja=new V("borderTop");new V("borderRight");var Ya,Qa=new V("borderBottom");new V("borderLeft"),new V("borderCollapse"),new V("borderSpacing");var Za,tc,ec,nc,ic,oc=new V("borderRadius"),rc=new V("borderTopLeftRadius"),sc=new V("borderTopRightRadius"),ac=new V("borderBottomLeftRadius"),cc=new V("borderBottomRightRadius");new V("borderStyle"),new V("borderTopStyle"),new V("borderRightStyle"),new V("borderBottomStyle"),new V("borderLeftStyle"),new V("borderWidth"),new V("borderTopWidth"),new V("borderRightWidth"),new V("borderBottomWidth"),new V("borderLeftWidth"),new V("borderColor"),new V("borderTopColor"),new V("borderRightColor"),new V("borderBottomColor"),new V("borderLeftColor");var lc,uc=new V("bottom");new V("boxShadow"),new V("boxSizing"),new V("clear");var hc,dc=new V("color");new V("columnGap"),new V("contain");var pc,_c,mc=new V("content");function fc(t,e){pc.setValue_6qj5c4$(t,mc,e)}var gc=new V("cursor");new V("direction");var $c,Ec=new V("display");new V("filter"),new V("flexBasis");var yc,bc,Sc,vc,Cc=new V("flexDirection"),Nc=new V("flexGrow"),Tc=new V("flexShrink"),Lc=new V("flexWrap");new V("float"),new V("fontFamily");var zc,wc=new V("fontSize");new V("fontSizeAdjust"),new V("fontStyle"),new V("fontWeight"),new V("gap"),new V("gridAutoColumns"),new V("gridAutoFlow"),new V("gridAutoRows"),new V("gridColumn"),new V("gridColumnEnd"),new V("gridColumnStart"),new V("gridRow"),new V("gridRowEnd"),new V("gridRowStart"),new V("gridTemplate"),new V("gridTemplateAreas"),new V("gridTemplateColumns"),new V("gridTemplateRows");var Oc,Rc=new V("height");new V("hyphens"),new V("inset"),new V("isolation");var Ac,xc=new V("justifyContent");new V("justifyItems");var Ic,Uc=new V("left");new V("letterSpacing");var Dc,Pc=new V("lineHeight");new V("listStyleType");var Mc,kc,jc=new V("margin");function Gc(t,e){Mc.setValue_6qj5c4$(t,jc,e)}var qc,Fc=new V("marginTop");function Bc(t,e){kc.setValue_6qj5c4$(t,Fc,e)}var Wc,Hc=new V("marginRight");function Vc(t,e){qc.setValue_6qj5c4$(t,Hc,e)}var Kc,Xc=new V("marginBottom");function Jc(t,e){Wc.setValue_6qj5c4$(t,Xc,e)}var Yc,Qc=new V("marginLeft");function Zc(t,e){Kc.setValue_6qj5c4$(t,Qc,e)}var tl=new V("minWidth");new V("maxWidth");var el,nl=new V("minHeight");new V("maxHeight"),new V("objectFit"),new V("objectPosition"),new V("opacity"),new V("outline"),new V("outlineColor"),new V("outlineOffset"),new V("outlineWidth");var il,ol=new V("overflow");new V("overflowX"),new V("overflowY"),new V("overflowWrap"),new V("overscrollBehavior");var rl,sl,al=new V("padding");function cl(t,e){rl.setValue_6qj5c4$(t,al,e)}var ll,ul=new V("paddingTop");function hl(t,e){sl.setValue_6qj5c4$(t,ul,e)}var dl,pl=new V("paddingRight");function _l(t,e){ll.setValue_6qj5c4$(t,pl,e)}var ml,fl=new V("paddingBottom");function gl(t,e){dl.setValue_6qj5c4$(t,fl,e)}var $l,El=new V("paddingLeft");function yl(t,e){ml.setValue_6qj5c4$(t,El,e)}var bl,Sl=new V("pointerEvents"),vl=new V("position");new V("resize");var Cl,Nl=new V("right");new V("rowGap"),new V("scrollBehavior"),new V("src"),new V("tableLayout");var Tl,Ll=new V("textAlign");new V("textDecoration");var zl,wl=new V("textOverflow");new V("textTransform");var Ol,Rl,Al=new V("top");new V("transform");var xl=new V("transition");new V("transitionDelay"),new V("transitionDuration"),new V("transitionProperty"),new V("transitionTimingFunction"),new V("userSelect");var Il,Ul,Dl,Pl,Ml,kl=new V("verticalAlign"),jl=new V("visibility"),Gl=new V("whiteSpace"),ql=new V("width"),Fl=new V("wordBreak");new V("wordSpacing"),new V("wordWrap");var Bl,Wl=new V("zIndex");function Hl(t,e,n,i){return h(t,n)&&h(e,i)?h(t,e)?K(t):K(t)+" "+K(e):h(e,i)?K(t)+" "+K(e)+" "+K(n):K(t)+" "+K(e)+" "+K(n)+" "+K(i)}function Vl(t,e,n,i,o){void 0===e&&(e=null),void 0===n&&(n=null),void 0===i&&(i=null),void 0===o&&(o=null),null!=e&&null!=n&&null!=i&&null!=o?Gc(t,Hl(e,n,i,o)):(null!=e&&Bc(t,e),null!=n&&Vc(t,n),null!=i&&Jc(t,i),null!=o&&Zc(t,o))}function Kl(t,e,n,i,o){void 0===e&&(e=null),void 0===n&&(n=null),void 0===i&&(i=null),void 0===o&&(o=null),null!=e&&null!=n&&null!=i&&null!=o?cl(t,Hl(e,n,i,o)):(null!=e&&hl(t,e),null!=n&&_l(t,n),null!=i&&gl(t,i),null!=o&&yl(t,o))}function Xl(t){this.tagName=t}function Jl(){Yl=this}Xl.$metadata$={kind:d,simpleName:"TagSelector",interfaces:[]},Jl.prototype.getValue_d6mtq7$=function(t,e){return new Xl(e.callableName)},Jl.$metadata$={kind:l,simpleName:"TagSelectorFactory",interfaces:[]};var Yl=null;function Ql(){return null===Yl&&new Jl,Yl}function Zl(){nu(),Pa.call(this,", ")}function tu(){eu=this,this.none=new Zl}new V("html"),new V("base"),new V("head"),new V("link"),new V("meta"),new V("style"),new V("title"),new V("body"),new V("address"),new V("article"),new V("aside"),new V("footer"),new V("header"),new V("h1"),new V("h2"),new V("h3"),new V("h4"),new V("h5"),new V("h6"),new V("main"),new V("nav"),new V("section"),new V("blockquote"),new V("dd"),new V("div"),new V("dl"),new V("dt"),new V("figcaption"),new V("figure"),new V("hr"),new V("li"),new V("ol"),new V("p"),new V("pre"),new V("ul"),new V("a"),new V("abbr"),new V("b"),new V("bdi"),new V("bdo"),new V("br"),new V("cite"),new V("code"),new V("data"),new V("dfn"),new V("em"),new V("i"),new V("kbd"),new V("mark"),new V("q"),new V("rb"),new V("rp"),new V("rt"),new V("rtc"),new V("ruby"),new V("s"),new V("samp"),new V("small"),new V("span"),new V("strong"),new V("sub"),new V("sup"),new V("time"),new V("u"),new V("wbr"),new V("area"),new V("audio"),new V("img"),new V("map"),new V("track"),new V("video"),new V("embed"),new V("iframe"),new V("param"),new V("picture"),new V("portal"),new V("source"),new V("svg"),new V("math"),new V("canvas"),new V("noscript"),new V("script"),new V("del"),new V("ins"),new V("caption"),new V("col"),new V("colgroup"),new V("table"),new V("tbody"),new V("td"),new V("tfoot"),new V("th"),new V("thead"),new V("tr"),new V("button"),new V("datalist"),new V("fieldset"),new V("form"),new V("input"),new V("label"),new V("legend"),new V("meter"),new V("optgroup"),new V("option"),new V("output"),new V("progress"),new V("select"),new V("textarea"),new V("details"),new V("dialog"),new V("menu"),new V("summary"),new V("slot"),new V("template"),tu.$metadata$={kind:l,simpleName:"Companion",interfaces:[]};var eu=null;function nu(){return null===eu&&new tu,eu}function iu(){su(),Pa.call(this,", ")}function ou(){ru=this,this.none=new iu}Zl.$metadata$={kind:d,simpleName:"Animations",interfaces:[Pa]},ou.$metadata$={kind:l,simpleName:"Companion",interfaces:[]};var ru=null;function su(){return null===ru&&new ou,ru}function au(){}function cu(t){void 0===t&&(t=""),this.indent_lo30wh$_0=t,this.rules_5hpu3i$_0=p(),this.multiRules_76a4m5$_0=p(),this.memoizedHashCode_0=null}function lu(t){du(),ie.call(this,t),this.value_p94ztv$_0=t}function uu(){hu=this,this.normal=new lu("normal"),this.initial=new lu("initial"),this.inherit=new lu("inherit")}iu.$metadata$={kind:d,simpleName:"BoxShadows",interfaces:[Pa]},Object.defineProperty(lu.prototype,"value",{get:function(){return this.value_p94ztv$_0}}),uu.$metadata$={kind:l,simpleName:"Companion",interfaces:[]};var hu=null;function du(){return null===hu&&new uu,hu}function pu(t){ie.call(this,t),this.value_1ggx5d$_0=t}function _u(t){gu(),ie.call(this,t),this.value_2u9fqs$_0=t}function mu(){fu=this,this.ease=new _u("ease"),this.linear=new _u("linear"),this.easeIn=new _u("ease-in"),this.easeOut=new _u("ease-out"),this.easeInOut=new _u("ease-in-out"),this.stepStart=new _u("step-start"),this.stepEnd=new _u("step-end"),this.materialStandard=$u(.4,0,.2,1),this.materialDeceleration=$u(0,0,.2,1),this.materialAcceleration=$u(.4,0,1,1),this.materialSharp=$u(.4,0,.6,1)}lu.$metadata$={kind:d,simpleName:"LineHeight",interfaces:[ie]},Object.defineProperty(pu.prototype,"value",{get:function(){return this.value_1ggx5d$_0}}),pu.$metadata$={kind:d,simpleName:"Time",interfaces:[ie]},Object.defineProperty(_u.prototype,"value",{get:function(){return this.value_2u9fqs$_0}}),mu.$metadata$={kind:l,simpleName:"Companion",interfaces:[]};var fu=null;function gu(){return null===fu&&new mu,fu}function $u(t,e,n,i){return new _u("cubic-bezier("+t+", "+e+", "+n+", "+i+")")}function Eu(){Su(),Pa.call(this," ")}function yu(){bu=this,this.none=new Eu}_u.$metadata$={kind:d,simpleName:"Timing",interfaces:[ie]},yu.$metadata$={kind:l,simpleName:"Companion",interfaces:[]};var bu=null;function Su(){return null===bu&&new yu,bu}function vu(t,e,n,i){this.property=t,this.duration=e,this.timing_0=n,this.delay_0=i}function Cu(){Lu(),Pa.call(this,", ")}function Nu(){Tu=this,this.none=new Cu}Eu.$metadata$={kind:d,simpleName:"Transforms",interfaces:[Pa]},vu.prototype.toString=function(){return this.property+" "+this.duration+" "+this.timing_0+" "+this.delay_0},vu.$metadata$={kind:d,simpleName:"Transition",interfaces:[]},Nu.$metadata$={kind:l,simpleName:"Companion",interfaces:[]};var Tu=null;function Lu(){return null===Tu&&new Nu,Tu}Cu.$metadata$={kind:d,simpleName:"Transitions",interfaces:[Pa]};var zu=t.kotlinx||(t.kotlinx={}),wu=zu.css||(zu.css={});wu.CssBuilder_ld8ri9$=X,Object.defineProperty(J,"Companion",{get:pt}),wu.CssBuilder=J,wu.CssBuilderImpl=_t,wu.hyphenize_pdl1vz$=ft,wu.times_6ic1pp$=gt,wu.Rule=$t,wu.RuleContainer=Et,Object.defineProperty(yt,"Companion",{get:ee}),wu.LinearDimension=yt,wu.NumericLinearDimension=ne,wu.get_em_rcaex3$=function(t){return new ne(t,"em")},wu.get_pct_rcaex3$=function(t){return new ne(t,"%")},wu.get_px_rcaex3$=function(t){return new ne(t,"px")},wu.get_rem_rcaex3$=function(t){return new ne(t,"rem")},wu.get_vh_rcaex3$=function(t){return new ne(t,"vh")},wu.get_vw_rcaex3$=function(t){return new ne(t,"vw")},wu.CssValue=ie,Object.defineProperty(oe,"initial",{get:se}),Object.defineProperty(oe,"inherit",{get:ae}),Object.defineProperty(oe,"unset",{get:ce}),Object.defineProperty(oe,"auto",{get:le}),Object.defineProperty(oe,"stretch",{get:ue}),Object.defineProperty(oe,"center",{get:he}),Object.defineProperty(oe,"start",{get:de}),Object.defineProperty(oe,"end",{get:pe}),Object.defineProperty(oe,"selfStart",{get:_e}),Object.defineProperty(oe,"selfEnd",{get:me}),Object.defineProperty(oe,"flexStart",{get:fe}),Object.defineProperty(oe,"flexEnd",{get:ge}),Object.defineProperty(oe,"baseline",{get:$e}),wu.Align=oe,Object.defineProperty(Ee,"initial",{get:be}),Object.defineProperty(Ee,"inherit",{get:Se}),Object.defineProperty(Ee,"unset",{get:ve}),Object.defineProperty(Ee,"center",{get:Ce}),Object.defineProperty(Ee,"start",{get:Ne}),Object.defineProperty(Ee,"end",{get:Te}),Object.defineProperty(Ee,"flexStart",{get:Le}),Object.defineProperty(Ee,"flexEnd",{get:ze}),Object.defineProperty(Ee,"left",{get:we}),Object.defineProperty(Ee,"right",{get:Oe}),Object.defineProperty(Ee,"baseline",{get:Re}),Object.defineProperty(Ee,"firstBaseline",{get:Ae}),Object.defineProperty(Ee,"lastBaseline",{get:xe}),Object.defineProperty(Ee,"spaceBetween",{get:Ie}),Object.defineProperty(Ee,"spaceAround",{get:Ue}),Object.defineProperty(Ee,"spaceEvenly",{get:De}),Object.defineProperty(Ee,"stretch",{get:Pe}),Object.defineProperty(Ee,"safeCenter",{get:Me}),Object.defineProperty(Ee,"unsafeCenter",{get:ke}),wu.JustifyContent=Ee,Object.defineProperty(je,"Companion",{get:to}),je.RGBA=eo,je.HSLA=no,wu.Color=je,wu.rgb_qt1dr2$=ro,wu.rgba_gb4hak$=so,wu.hsla_gb4hak$=ao,Object.defineProperty(lo,"initial",{get:ho}),Object.defineProperty(lo,"inherit",{get:po}),Object.defineProperty(lo,"unset",{get:_o}),Object.defineProperty(lo,"auto",{get:mo}),Object.defineProperty(lo,"default",{get:fo}),Object.defineProperty(lo,"none",{get:go}),Object.defineProperty(lo,"contextMenu",{get:$o}),Object.defineProperty(lo,"help",{get:Eo}),Object.defineProperty(lo,"pointer",{get:yo}),Object.defineProperty(lo,"progress",{get:bo}),Object.defineProperty(lo,"wait",{get:So}),Object.defineProperty(lo,"cell",{get:vo}),Object.defineProperty(lo,"crosshair",{get:Co}),Object.defineProperty(lo,"text",{get:No}),Object.defineProperty(lo,"verticalText",{get:To}),Object.defineProperty(lo,"alias",{get:Lo}),Object.defineProperty(lo,"copy",{get:zo}),Object.defineProperty(lo,"move",{get:wo}),Object.defineProperty(lo,"noDrop",{get:Oo}),Object.defineProperty(lo,"notAllowed",{get:Ro}),Object.defineProperty(lo,"grab",{get:Ao}),Object.defineProperty(lo,"grabbing",{get:xo}),Object.defineProperty(lo,"colResize",{get:Io}),Object.defineProperty(lo,"rowResize",{get:Uo}),Object.defineProperty(lo,"allScroll",{get:Do}),Object.defineProperty(lo,"eResize",{get:Po}),Object.defineProperty(lo,"nResize",{get:Mo}),Object.defineProperty(lo,"neResize",{get:ko}),Object.defineProperty(lo,"nwResize",{get:jo}),Object.defineProperty(lo,"sResize",{get:Go}),Object.defineProperty(lo,"seResize",{get:qo}),Object.defineProperty(lo,"swResize",{get:Fo}),Object.defineProperty(lo,"wResize",{get:Bo}),Object.defineProperty(lo,"ewResize",{get:Wo}),Object.defineProperty(lo,"nsResize",{get:Ho}),Object.defineProperty(lo,"neswResize",{get:Vo}),Object.defineProperty(lo,"nwseResize",{get:Ko}),Object.defineProperty(lo,"zoomIn",{get:Xo}),Object.defineProperty(lo,"zoomOut",{get:Jo}),wu.Cursor=lo,wu.QuotedString=Yo,wu.get_quoted_pdl1vz$=Qo,Object.defineProperty(Zo,"initial",{get:er}),Object.defineProperty(Zo,"inherit",{get:nr}),Object.defineProperty(Zo,"unset",{get:ir}),Object.defineProperty(Zo,"block",{get:or}),Object.defineProperty(Zo,"inline",{get:rr}),Object.defineProperty(Zo,"runIn",{get:sr}),Object.defineProperty(Zo,"flow",{get:ar}),Object.defineProperty(Zo,"flowRoot",{get:cr}),Object.defineProperty(Zo,"table",{get:lr}),Object.defineProperty(Zo,"flex",{get:ur}),Object.defineProperty(Zo,"grid",{get:hr}),Object.defineProperty(Zo,"subgrid",{get:dr}),Object.defineProperty(Zo,"listItem",{get:pr}),Object.defineProperty(Zo,"tableRowGroup",{get:_r}),Object.defineProperty(Zo,"tableHeaderGroup",{get:mr}),Object.defineProperty(Zo,"tableFooterGroup",{get:fr}),Object.defineProperty(Zo,"tableRow",{get:gr}),Object.defineProperty(Zo,"tableCell",{get:$r}),Object.defineProperty(Zo,"tableColumnGroup",{get:Er}),Object.defineProperty(Zo,"tableColumn",{get:yr}),Object.defineProperty(Zo,"tableCaption",{get:br}),Object.defineProperty(Zo,"contents",{get:Sr}),Object.defineProperty(Zo,"none",{get:vr}),Object.defineProperty(Zo,"inlineBlock",{get:Cr}),Object.defineProperty(Zo,"inlineListItem",{get:Nr}),Object.defineProperty(Zo,"inlineTable",{get:Tr}),Object.defineProperty(Zo,"inlineFlex",{get:Lr}),Object.defineProperty(Zo,"inlineGrid",{get:zr}),wu.Display=Zo,Object.defineProperty(wr,"initial",{get:Rr}),Object.defineProperty(wr,"inherit",{get:Ar}),Object.defineProperty(wr,"unset",{get:xr}),Object.defineProperty(wr,"nowrap",{get:Ir}),Object.defineProperty(wr,"wrap",{get:Ur}),Object.defineProperty(wr,"wrapReverse",{get:Dr}),wu.FlexWrap=wr,Object.defineProperty(Pr,"initial",{get:kr}),Object.defineProperty(Pr,"inherit",{get:jr}),Object.defineProperty(Pr,"unset",{get:Gr}),Object.defineProperty(Pr,"column",{get:qr}),Object.defineProperty(Pr,"columnReverse",{get:Fr}),Object.defineProperty(Pr,"row",{get:Br}),Object.defineProperty(Pr,"rowReverse",{get:Wr}),wu.FlexDirection=Pr,Object.defineProperty(Hr,"initial",{get:Kr}),Object.defineProperty(Hr,"inherit",{get:Xr}),Object.defineProperty(Hr,"unset",{get:Jr}),Object.defineProperty(Hr,"visible",{get:Yr}),Object.defineProperty(Hr,"hidden",{get:Qr}),Object.defineProperty(Hr,"scroll",{get:Zr}),Object.defineProperty(Hr,"auto",{get:ts}),wu.Overflow=Hr,Object.defineProperty(es,"initial",{get:is}),Object.defineProperty(es,"inherit",{get:os}),Object.defineProperty(es,"unset",{get:rs}),Object.defineProperty(es,"auto",{get:ss}),Object.defineProperty(es,"none",{get:as}),wu.PointerEvents=es,Object.defineProperty(cs,"initial",{get:us}),Object.defineProperty(cs,"inherit",{get:hs}),Object.defineProperty(cs,"unset",{get:ds}),Object.defineProperty(cs,"static",{get:ps}),Object.defineProperty(cs,"relative",{get:_s}),Object.defineProperty(cs,"absolute",{get:ms}),Object.defineProperty(cs,"fixed",{get:fs}),Object.defineProperty(cs,"sticky",{get:gs}),wu.Position=cs,Object.defineProperty($s,"initial",{get:ys}),Object.defineProperty($s,"inherit",{get:bs}),Object.defineProperty($s,"unset",{get:Ss}),Object.defineProperty($s,"left",{get:vs}),Object.defineProperty($s,"right",{get:Cs}),Object.defineProperty($s,"center",{get:Ns}),Object.defineProperty($s,"justify",{get:Ts}),Object.defineProperty($s,"justifyAll",{get:Ls}),Object.defineProperty($s,"start",{get:zs}),Object.defineProperty($s,"end",{get:ws}),Object.defineProperty($s,"matchParent",{get:Os}),wu.TextAlign=$s,Object.defineProperty(Rs,"initial",{get:xs}),Object.defineProperty(Rs,"inherit",{get:Is}),Object.defineProperty(Rs,"unset",{get:Us}),Object.defineProperty(Rs,"clip",{get:Ds}),Object.defineProperty(Rs,"ellipsis",{get:Ps}),wu.TextOverflow=Rs,Object.defineProperty(Ms,"Companion",{get:la}),wu.VerticalAlign=Ms,Object.defineProperty(ua,"initial",{get:da}),Object.defineProperty(ua,"inherit",{get:pa}),Object.defineProperty(ua,"unset",{get:_a}),Object.defineProperty(ua,"visible",{get:ma}),Object.defineProperty(ua,"hidden",{get:fa}),Object.defineProperty(ua,"collapse",{get:ga}),wu.Visibility=ua,Object.defineProperty($a,"initial",{get:ya}),Object.defineProperty($a,"inherit",{get:ba}),Object.defineProperty($a,"unset",{get:Sa}),Object.defineProperty($a,"normal",{get:va}),Object.defineProperty($a,"nowrap",{get:Ca}),Object.defineProperty($a,"pre",{get:Na}),Object.defineProperty($a,"preWrap",{get:Ta}),Object.defineProperty($a,"preLine",{get:La}),wu.WhiteSpace=$a,Object.defineProperty(za,"initial",{get:Oa}),Object.defineProperty(za,"inherit",{get:Ra}),Object.defineProperty(za,"unset",{get:Aa}),Object.defineProperty(za,"normal",{get:xa}),Object.defineProperty(za,"breakAll",{get:Ia}),Object.defineProperty(za,"breakWord",{get:Ua}),Object.defineProperty(za,"keepAll",{get:Da}),wu.WordBreak=za,wu.StyleList=Pa,wu.CssDeclarations=Ma,wu.StyledElement=ka,wu.StyledElementImpl=ja,wu.set_alignContent_olgsez$=function(t,e){aa.setValue_6qj5c4$(t,Fa,e)},wu.set_alignItems_olgsez$=function(t,e){qa.setValue_6qj5c4$(t,Ba,e)},wu.set_backgroundColor_ommczd$=function(t,e){Wa.setValue_6qj5c4$(t,Ha,e)},wu.set_border_krvuuu$=function(t,e){Va.setValue_6qj5c4$(t,Xa,e)},wu.set_borderTop_krvuuu$=function(t,e){Ka.setValue_6qj5c4$(t,Ja,e)},wu.set_borderBottom_krvuuu$=function(t,e){Ya.setValue_6qj5c4$(t,Qa,e)},wu.set_borderRadius_n8chyh$=function(t,e){Za.setValue_6qj5c4$(t,oc,e)},wu.set_borderTopLeftRadius_n8chyh$=function(t,e){tc.setValue_6qj5c4$(t,rc,e)},wu.set_borderTopRightRadius_n8chyh$=function(t,e){ec.setValue_6qj5c4$(t,sc,e)},wu.set_borderBottomLeftRadius_n8chyh$=function(t,e){nc.setValue_6qj5c4$(t,ac,e)},wu.set_borderBottomRightRadius_n8chyh$=function(t,e){ic.setValue_6qj5c4$(t,cc,e)},wu.set_bottom_n8chyh$=function(t,e){lc.setValue_6qj5c4$(t,uc,e)},wu.set_color_ommczd$=function(t,e){hc.setValue_6qj5c4$(t,dc,e)},wu.set_content_qf37ct$=fc,wu.set_cursor_hrkqtc$=function(t,e){_c.setValue_6qj5c4$(t,gc,e)},wu.set_display_qidz4o$=function(t,e){$c.setValue_6qj5c4$(t,Ec,e)},wu.set_flexDirection_c4dh0c$=function(t,e){yc.setValue_6qj5c4$(t,Cc,e)},wu.set_flexGrow_if475a$=function(t,e){bc.setValue_6qj5c4$(t,Nc,e)},wu.set_flexShrink_if475a$=function(t,e){Sc.setValue_6qj5c4$(t,Tc,e)},wu.set_flexWrap_6el38z$=function(t,e){vc.setValue_6qj5c4$(t,Lc,e)},wu.set_fontSize_n8chyh$=function(t,e){zc.setValue_6qj5c4$(t,wc,e)},wu.set_height_n8chyh$=function(t,e){Oc.setValue_6qj5c4$(t,Rc,e)},wu.set_justifyContent_gwpzrh$=function(t,e){Ac.setValue_6qj5c4$(t,xc,e)},wu.set_left_n8chyh$=function(t,e){Ic.setValue_6qj5c4$(t,Uc,e)},wu.set_lineHeight_ftzj10$=function(t,e){Dc.setValue_6qj5c4$(t,Pc,e)},wu.set_margin_krvuuu$=Gc,wu.set_marginTop_n8chyh$=Bc,wu.set_marginRight_n8chyh$=Vc,wu.set_marginBottom_n8chyh$=Jc,wu.set_marginLeft_n8chyh$=Zc,wu.set_minWidth_n8chyh$=function(t,e){Yc.setValue_6qj5c4$(t,tl,e)},wu.set_minHeight_n8chyh$=function(t,e){el.setValue_6qj5c4$(t,nl,e)},wu.set_overflow_qhpm6s$=function(t,e){il.setValue_6qj5c4$(t,ol,e)},wu.set_padding_krvuuu$=cl,wu.set_paddingTop_n8chyh$=hl,wu.set_paddingRight_n8chyh$=_l,wu.set_paddingBottom_n8chyh$=gl,wu.set_paddingLeft_n8chyh$=yl,wu.set_pointerEvents_ne887g$=function(t,e){$l.setValue_6qj5c4$(t,Sl,e)},wu.set_position_mvtmy5$=function(t,e){bl.setValue_6qj5c4$(t,vl,e)},wu.set_right_n8chyh$=function(t,e){Cl.setValue_6qj5c4$(t,Nl,e)},wu.set_textAlign_q2ys32$=function(t,e){Tl.setValue_6qj5c4$(t,Ll,e)},wu.set_textOverflow_67zq6f$=function(t,e){zl.setValue_6qj5c4$(t,wl,e)},wu.set_top_n8chyh$=function(t,e){Ol.setValue_6qj5c4$(t,Al,e)},wu.get_transition_z7t51k$=function(t){return Rl.getValue_jto6o9$(t,xl)},wu.set_verticalAlign_9eaq6d$=function(t,e){Il.setValue_6qj5c4$(t,kl,e)},wu.set_visibility_xorjt0$=function(t,e){Ul.setValue_6qj5c4$(t,jl,e)},wu.set_whiteSpace_9bsrpj$=function(t,e){Dl.setValue_6qj5c4$(t,Gl,e)},wu.set_width_n8chyh$=function(t,e){Pl.setValue_6qj5c4$(t,ql,e)},wu.set_wordBreak_d1srv9$=function(t,e){Ml.setValue_6qj5c4$(t,Fl,e)},wu.set_zIndex_a6g65m$=function(t,e){Bl.setValue_6qj5c4$(t,Wl,e)},wu.margin_fjjo64$=Vl,wu.margin_9vmwvs$=function(t,e){Vl(t,e,e,e,e)},wu.margin_cx3uck$=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=null),Vl(t,e,n,e,n)},wu.padding_fjjo64$=Kl,wu.padding_9vmwvs$=function(t,e){Kl(t,e,e,e,e)},wu.padding_cx3uck$=function(t,e,n){void 0===e&&(e=null),void 0===n&&(n=null),Kl(t,e,n,e,n)},wu.padding_njam0t$=function(t,e,n,i){Kl(t,e,n,i,n)},wu.TagSelector=Xl;var Ou=wu.properties||(wu.properties={});return Object.defineProperty(Zl,"Companion",{get:nu}),Ou.Animations=Zl,Object.defineProperty(iu,"Companion",{get:su}),Ou.BoxShadows=iu,Ou.KeyframesBuilder=au,Ou.KeyframesBuilderImpl=cu,Object.defineProperty(lu,"Companion",{get:du}),Ou.LineHeight=lu,Ou.Time=pu,Ou.get_ms_rcaex3$=function(t){return new pu(t.toString()+"ms")},Object.defineProperty(_u,"Companion",{get:gu}),Ou.Timing=_u,Ou.cubicBezier_6y0v78$=$u,Object.defineProperty(Eu,"Companion",{get:Su}),Ou.Transforms=Eu,Ou.Transition=vu,Object.defineProperty(Cu,"Companion",{get:Lu}),Ou.Transitions=Cu,J.prototype.put_puj7f4$=ka.prototype.put_puj7f4$,J.prototype.buildRules_s47sd7$=Et.prototype.buildRules_s47sd7$,J.prototype.resolveRules_ry1ed0$=Et.prototype.resolveRules_ry1ed0$,J.prototype.rule_v44dnz$=Et.prototype.rule_v44dnz$,J.prototype.rule_1q2hwx$$default=Et.prototype.rule_1q2hwx$$default,J.prototype.rule_jindqg$$default=Et.prototype.rule_jindqg$$default,J.prototype.rule_1q2hwx$=Et.prototype.rule_1q2hwx$,J.prototype.rule_jindqg$=Et.prototype.rule_jindqg$,_t.prototype.unaryPlus_v2gpjl$=J.prototype.unaryPlus_v2gpjl$,_t.prototype.unaryPlus_pdl1vz$=J.prototype.unaryPlus_pdl1vz$,_t.prototype.unaryPlus_a3w2bl$=J.prototype.unaryPlus_a3w2bl$,_t.prototype.unaryPlus_sdeqdk$=J.prototype.unaryPlus_sdeqdk$,_t.prototype.invoke_3ad21g$=J.prototype.invoke_3ad21g$,_t.prototype.invoke_x7exez$=J.prototype.invoke_x7exez$,_t.prototype.invoke_3c2457$=J.prototype.invoke_3c2457$,_t.prototype.active_lx8bml$=J.prototype.active_lx8bml$,_t.prototype.checked_lx8bml$=J.prototype.checked_lx8bml$,_t.prototype.default_lx8bml$=J.prototype.default_lx8bml$,_t.prototype.defined_lx8bml$=J.prototype.defined_lx8bml$,_t.prototype.disabled_lx8bml$=J.prototype.disabled_lx8bml$,_t.prototype.empty_lx8bml$=J.prototype.empty_lx8bml$,_t.prototype.enabled_lx8bml$=J.prototype.enabled_lx8bml$,_t.prototype.firstChild_lx8bml$=J.prototype.firstChild_lx8bml$,_t.prototype.firstOfType_lx8bml$=J.prototype.firstOfType_lx8bml$,_t.prototype.fullscreen_lx8bml$=J.prototype.fullscreen_lx8bml$,_t.prototype.focus_lx8bml$=J.prototype.focus_lx8bml$,_t.prototype.focusVisible_lx8bml$=J.prototype.focusVisible_lx8bml$,_t.prototype.focusWithin_lx8bml$=J.prototype.focusWithin_lx8bml$,_t.prototype.hover_lx8bml$=J.prototype.hover_lx8bml$,_t.prototype.indeterminate_lx8bml$=J.prototype.indeterminate_lx8bml$,_t.prototype.inRange_lx8bml$=J.prototype.inRange_lx8bml$,_t.prototype.invalid_lx8bml$=J.prototype.invalid_lx8bml$,_t.prototype.lastChild_lx8bml$=J.prototype.lastChild_lx8bml$,_t.prototype.lastOfType_lx8bml$=J.prototype.lastOfType_lx8bml$,_t.prototype.link_lx8bml$=J.prototype.link_lx8bml$,_t.prototype.not_xqeqkq$=J.prototype.not_xqeqkq$,_t.prototype.not_v2gpjl$=J.prototype.not_v2gpjl$,_t.prototype.nthChild_xqeqkq$=J.prototype.nthChild_xqeqkq$,_t.prototype.nthLastChild_xqeqkq$=J.prototype.nthLastChild_xqeqkq$,_t.prototype.nthLastOfType_xqeqkq$=J.prototype.nthLastOfType_xqeqkq$,_t.prototype.nthOfType_xqeqkq$=J.prototype.nthOfType_xqeqkq$,_t.prototype.onlyChild_lx8bml$=J.prototype.onlyChild_lx8bml$,_t.prototype.onlyOfType_lx8bml$=J.prototype.onlyOfType_lx8bml$,_t.prototype.optional_lx8bml$=J.prototype.optional_lx8bml$,_t.prototype.outOfRange_lx8bml$=J.prototype.outOfRange_lx8bml$,_t.prototype.placeholderShown_lx8bml$=J.prototype.placeholderShown_lx8bml$,_t.prototype.readOnly_lx8bml$=J.prototype.readOnly_lx8bml$,_t.prototype.readWrite_lx8bml$=J.prototype.readWrite_lx8bml$,_t.prototype.required_lx8bml$=J.prototype.required_lx8bml$,_t.prototype.valid_lx8bml$=J.prototype.valid_lx8bml$,_t.prototype.visited_lx8bml$=J.prototype.visited_lx8bml$,_t.prototype.children_xqeqkq$$default=J.prototype.children_xqeqkq$$default,_t.prototype.descendants_xqeqkq$$default=J.prototype.descendants_xqeqkq$$default,_t.prototype.has_v44dnz$=J.prototype.has_v44dnz$,_t.prototype.ancestorHover_xqeqkq$=J.prototype.ancestorHover_xqeqkq$,_t.prototype.after_lx8bml$=J.prototype.after_lx8bml$,_t.prototype.before_lx8bml$=J.prototype.before_lx8bml$,_t.prototype.firstLetter_lx8bml$=J.prototype.firstLetter_lx8bml$,_t.prototype.firstLine_lx8bml$=J.prototype.firstLine_lx8bml$,_t.prototype.placeholder_lx8bml$=J.prototype.placeholder_lx8bml$,_t.prototype.selection_lx8bml$=J.prototype.selection_lx8bml$,_t.prototype.child_xqeqkq$=J.prototype.child_xqeqkq$,_t.prototype.child_v077kx$=J.prototype.child_v077kx$,_t.prototype.sibling_xqeqkq$=J.prototype.sibling_xqeqkq$,_t.prototype.adjacentSibling_xqeqkq$=J.prototype.adjacentSibling_xqeqkq$,_t.prototype.universal_lx8bml$=J.prototype.universal_lx8bml$,_t.prototype.compareTo_er05um$=J.prototype.compareTo_er05um$,_t.prototype.specific_4clrgz$$default=J.prototype.specific_4clrgz$$default,_t.prototype.prefix_xqeqkq$=J.prototype.prefix_xqeqkq$,_t.prototype.media_v44dnz$=J.prototype.media_v44dnz$,_t.prototype.supports_v44dnz$=J.prototype.supports_v44dnz$,_t.prototype.supportsSelector_v44dnz$=J.prototype.supportsSelector_v44dnz$,_t.prototype.container_v44dnz$=J.prototype.container_v44dnz$,_t.prototype.fontFace_lx8bml$=J.prototype.fontFace_lx8bml$,_t.prototype.retina_lx8bml$=J.prototype.retina_lx8bml$,_t.prototype.root_lx8bml$=J.prototype.root_lx8bml$,_t.prototype.setCustomProperty_lwowle$=J.prototype.setCustomProperty_lwowle$,_t.prototype.min_5utlym$=J.prototype.min_5utlym$,_t.prototype.max_5utlym$=J.prototype.max_5utlym$,_t.prototype.clamp_me7l17$=J.prototype.clamp_me7l17$,_t.prototype.addClass_v4ob8x$_0=J.prototype.addClass_v4ob8x$_0,_t.prototype.append_5cyqpy$=J.prototype.append_5cyqpy$,_t.prototype.put_puj7f4$=J.prototype.put_puj7f4$,_t.prototype.buildRules_s47sd7$=J.prototype.buildRules_s47sd7$,_t.prototype.resolveRules_ry1ed0$=J.prototype.resolveRules_ry1ed0$,_t.prototype.rule_v44dnz$=J.prototype.rule_v44dnz$,_t.prototype.rule_1q2hwx$$default=J.prototype.rule_1q2hwx$$default,_t.prototype.rule_jindqg$$default=J.prototype.rule_jindqg$$default,_t.prototype.children_xqeqkq$=J.prototype.children_xqeqkq$,_t.prototype.descendants_xqeqkq$=J.prototype.descendants_xqeqkq$,_t.prototype.specific_4clrgz$=J.prototype.specific_4clrgz$,_t.prototype.rule_1q2hwx$=J.prototype.rule_1q2hwx$,_t.prototype.rule_jindqg$=J.prototype.rule_jindqg$,ja.prototype.put_puj7f4$=ka.prototype.put_puj7f4$,au.prototype.buildRules_s47sd7$=Et.prototype.buildRules_s47sd7$,au.prototype.resolveRules_ry1ed0$=Et.prototype.resolveRules_ry1ed0$,au.prototype.rule_v44dnz$=Et.prototype.rule_v44dnz$,au.prototype.rule_1q2hwx$$default=Et.prototype.rule_1q2hwx$$default,au.prototype.rule_jindqg$$default=Et.prototype.rule_jindqg$$default,au.prototype.rule_1q2hwx$=Et.prototype.rule_1q2hwx$,au.prototype.rule_jindqg$=Et.prototype.rule_jindqg$,cu.prototype.buildRules_s47sd7$=au.prototype.buildRules_s47sd7$,cu.prototype.resolveRules_ry1ed0$=au.prototype.resolveRules_ry1ed0$,cu.prototype.rule_v44dnz$=au.prototype.rule_v44dnz$,cu.prototype.rule_1q2hwx$$default=au.prototype.rule_1q2hwx$$default,cu.prototype.rule_jindqg$$default=au.prototype.rule_jindqg$$default,cu.prototype.rule_1q2hwx$=au.prototype.rule_1q2hwx$,cu.prototype.rule_jindqg$=au.prototype.rule_jindqg$,ut=a("[A-Z]"),ht="0",aa=new Ga,qa=new Ga,new Ga,new Ga((function(){return new Zl})),new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,Wa=new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,Va=new Ga,Ka=new Ga,new Ga,Ya=new Ga,new Ga,new Ga,new Ga,Za=new Ga,tc=new Ga,ec=new Ga,nc=new Ga,ic=new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,lc=new Ga,new Ga((function(){return new iu})),new Ga,new Ga,hc=new Ga,new Ga,new Ga,pc=new Ga,_c=new Ga,new Ga,$c=new Ga,new Ga,new Ga,yc=new Ga,bc=new Ga,Sc=new Ga,vc=new Ga,new Ga,new Ga,zc=new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,Oc=new Ga,new Ga,new Ga,new Ga,Ac=new Ga,new Ga,Ic=new Ga,new Ga,Dc=new Ga,new Ga,Mc=new Ga,kc=new Ga,qc=new Ga,Wc=new Ga,Kc=new Ga,Yc=new Ga,new Ga,el=new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,new Ga,il=new Ga,new Ga,new Ga,new Ga,new Ga,rl=new Ga,sl=new Ga,ll=new Ga,dl=new Ga,ml=new Ga,$l=new Ga,bl=new Ga,new Ga,Cl=new Ga,new Ga,new Ga,new Ga,new Ga,Tl=new Ga,new Ga,zl=new Ga,new Ga,Ol=new Ga,new Ga((function(){return new Eu})),Rl=new Ga((function(){return new Cu})),new Ga,new Ga,new Ga,new Ga,new Ga,Il=new Ga,Ul=new Ga,Dl=new Ga,Pl=new Ga,Ml=new Ga,new Ga,new Ga,Bl=new Ga,Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),Ql(),t})?i.apply(e,o):i)||(t.exports=r)},function(t,e,n){var i,o,r;o=[e,n(31),n(389),n(238),n(0),n(390),n(182),n(181),n(74),n(866)],void 0===(r="function"==typeof(i=function(t,e,n,i,o,r,s,a,c,l){"use strict";var u=t.$$importsForInline$$||(t.$$importsForInline$$={}),h=e.kotlin.IllegalStateException_init_pdl1vj$,d=o.createElement,p=e.Kind.OBJECT,_=e.Kind.INTERFACE,m=n.react.RBuilder,f=(e.defineInlineFunction,n.react.RBuilderImpl),g=e.equals,$=e.kotlin.text.StringBuilder_init,E=e.Kind.CLASS,y=r.kotlinx.html.Unsafe,b=e.kotlin.Unit,S=r.kotlinx.html.TagConsumer,v=e.kotlin.collections.copyToArray,C=e.kotlin.collections.ArrayList_init_287e2$,N=e.kotlin.collections.listOf_i5x0yv$,T=e.kotlin.collections.toMutableMap_abgq59$,L=e.PropertyMetadata,z=e.hashCode,w=(e.wrapFunction,e.kotlin.collections.collectionSizeOrDefault_ba2ldo$),O=e.kotlin.collections.mapCapacity_za3lpa$,R=e.kotlin.ranges.coerceAtLeast_dqglrj$,A=e.kotlin.collections.LinkedHashMap_init_bwtc7$,x=n.react.createElement_38u3nc$,I=c.render;function U(t,e,n){t.consumer.onTagEvent_j30qsv$(t,e,n)}function D(){j()}function P(){k=this}G.prototype=Object.create(f.prototype),G.prototype.constructor=G,D.prototype.get_g0n3bx$=function(t,e){return this.domProps[e]},D.prototype.set_hpg2xa$=function(t,e,n){this.domProps[e]=n},D.prototype.get_defaultChecked_a2ovwx$=function(t){var e;return null!=(e=this.get_g0n3bx$(t,"defaultChecked"))&&e},D.prototype.set_defaultChecked_47da7g$=function(t,e){this.set_hpg2xa$(t,"defaultChecked",e)},D.prototype.get_values_sktobr$=function(t){var e;return(null!=(e=this.get_g0n3bx$(t,"value"))?e:[]).toSet()},D.prototype.set_values_d8zj82$=function(t,e){this.set_hpg2xa$(t,"value",v(e))},D.prototype.get_value_sktobr$=function(t){return this.get_g0n3bx$(t,"value")},D.prototype.set_value_g9clh3$=function(t,e){this.set_hpg2xa$(t,"value",e)},Object.defineProperty(D.prototype,"key",{configurable:!0,get:function(){throw h("".toString())},set:function(t){this.domProps.key=t}}),Object.defineProperty(D.prototype,"ref",{configurable:!0,get:function(){throw h("".toString())},set:function(t){this.domProps.ref=t}}),D.prototype.create=function(){return d.apply(null,[this.attrs.tagName,this.domProps].concat(v(this.childList)))},P.prototype.invoke_f6ihu2$=function(t){return new G(t)},P.$metadata$={kind:p,simpleName:"Companion",interfaces:[]};var M,k=null;function j(){return null===k&&new P,k}function G(t){f.call(this),this.consumer_pncnru$_0=new q(this),this.attrs_45o9rq$_0=t(this.consumer),this.domProps_fsxk8i$_0={};var e,n,i=this.attrs.attributesEntries,o=C();for(e=i.iterator();e.hasNext();){var r=e.next();g(r.key,V)||o.add_11rb$(r)}for(n=o.iterator();n.hasNext();){var s=n.next();B(this,s.key,s.value)}var a=J(this.attrs);null!=a&&B(this,"style",a)}function q(t){this.this$RDOMBuilderImpl=t}function F(t){this.closure$sb=t}function B(t,e,n){var i=W(e);t.domProps[i]=n}function W(t){var e;return null!=(e=M.get_11rb$(t))?e:t}function H(){K=this}D.$metadata$={kind:_,simpleName:"RDOMBuilder",interfaces:[m]},Object.defineProperty(G.prototype,"consumer",{configurable:!0,get:function(){return this.consumer_pncnru$_0}}),Object.defineProperty(G.prototype,"attrs",{configurable:!0,get:function(){return this.attrs_45o9rq$_0}}),Object.defineProperty(G.prototype,"domProps",{configurable:!0,get:function(){return this.domProps_fsxk8i$_0}}),q.prototype.onTagAttributeChange_5n2z71$=function(t,e,n){g(e,V)?B(this.this$RDOMBuilderImpl,"style",J(this.this$RDOMBuilderImpl.attrs)):B(this.this$RDOMBuilderImpl,e,n)},q.prototype.onTagComment_6bul2c$=function(t){throw h("Comments are not supported")},q.prototype.onTagContent_6bul2c$=function(t){this.this$RDOMBuilderImpl.unaryPlus_pdl1vz$(t.toString())},q.prototype.onTagContentEntity_ws8or7$=function(t){this.this$RDOMBuilderImpl.unaryPlus_m8hz4t$(t.text)},F.prototype.unaryPlus_pdl1vz$=function(t){this.closure$sb.append_pdl1vj$(t)},F.$metadata$={kind:E,interfaces:[y]},q.prototype.onTagContentUnsafe_kntra7$=function(t){var e=$();t(new F(e));var n=this.this$RDOMBuilderImpl.domProps,i={};i.__html=e.toString(),n.dangerouslySetInnerHTML=i},q.prototype.onTagStart_tkgjla$=function(t){throw h("Don't nest tags inside props block")},q.prototype.onTagEnd_tkgjla$=function(t){throw h("Don't nest tags inside props block")},q.prototype.onTagEvent_j30qsv$=function(t,e,n){B(this.this$RDOMBuilderImpl,e,n)},q.prototype.finalize=function(){return b},q.$metadata$={kind:E,interfaces:[S]},G.$metadata$={kind:E,simpleName:"RDOMBuilderImpl",interfaces:[f,D]},H.prototype.getValue_pt3q5s$=function(t,e){var n;return null!=(n=t.attributes.get_11rb$(e.callableName))?n:""},H.prototype.setValue_wi26v6$=function(t,e,n){var i=t.attributes,o=e.callableName;i.put_xwzc9p$(o,n)},H.$metadata$={kind:p,simpleName:"StringAttr",interfaces:[]};var V,K=null;function X(){return null===K&&new H,K}function J(t){var e,n=null!=(e=t[V])?e:{};return Y(t,n),n}function Y(t,e){t[V]=e;var n=t.attributes,i=V,o=z(e).toString();n.put_xwzc9p$(i,o)}function Q(){return b}new L("key"),new L("defaultValue"),new L("defaultValue"),new L("value");var Z=t.react||(t.react={}),tt=Z.dom||(Z.dom={});tt.set_onChange_48e8z8$=function(t,e){U(t,"onchange",e)},tt.set_onClick_evmc4n$=function(t,e){U(t,"onclick",e)},u["kotlin-react-legacy"]=n,u["kotlin-react-core"]=i,Object.defineProperty(D,"Companion",{get:j}),tt.RDOMBuilder=D,tt.RDOMBuilderImpl=G,tt.setProp_v86kls$=B,tt.fixAttributeName_61zpoe$=W,Object.defineProperty(tt,"StringAttr",{get:X}),u["kotlin-extensions"]=a,tt.get_jsStyle_6s7ubj$=J,tt.set_jsStyle_uekstc$=Y,u["kotlinx-html-js"]=r,tt.render_9jwdg9$=function(t,e,n){void 0===e&&(e=Q),I(x(n),t,e)},D.prototype.child_up9nw1$=m.prototype.child_up9nw1$,D.prototype.child_1mw94g$$default=m.prototype.child_1mw94g$$default,D.prototype.child_30b5ua$=m.prototype.child_30b5ua$,D.prototype.children_w8hwhj$=m.prototype.children_w8hwhj$,D.prototype.invoke_c0v1gl$=m.prototype.invoke_c0v1gl$,D.prototype.invoke_r7bapy$=m.prototype.invoke_r7bapy$,D.prototype.invoke_qk0v40$=m.prototype.invoke_qk0v40$,D.prototype.invoke_snhqu5$=m.prototype.invoke_snhqu5$,D.prototype.unaryPlus_pdl1vz$=m.prototype.unaryPlus_pdl1vz$,D.prototype.unaryPlus_m8hz4t$=m.prototype.unaryPlus_m8hz4t$,D.prototype.child_1mw94g$=m.prototype.child_1mw94g$,F.prototype.unaryPlus_lvwjq6$=y.prototype.unaryPlus_lvwjq6$,F.prototype.raw_3p81yu$=y.prototype.raw_3p81yu$,F.prototype.raw_61zpoe$=y.prototype.raw_61zpoe$,F.prototype.raw_ws8or7$=y.prototype.raw_ws8or7$,q.prototype.onTagError_cjwpn3$=S.prototype.onTagError_cjwpn3$,G.prototype.get_g0n3bx$=D.prototype.get_g0n3bx$,G.prototype.set_hpg2xa$=D.prototype.set_hpg2xa$,G.prototype.get_defaultChecked_a2ovwx$=D.prototype.get_defaultChecked_a2ovwx$,G.prototype.set_defaultChecked_47da7g$=D.prototype.set_defaultChecked_47da7g$,G.prototype.get_values_sktobr$=D.prototype.get_values_sktobr$,G.prototype.set_values_d8zj82$=D.prototype.set_values_d8zj82$,G.prototype.get_value_sktobr$=D.prototype.get_value_sktobr$,G.prototype.set_value_g9clh3$=D.prototype.set_value_g9clh3$,Object.defineProperty(G.prototype,"key",Object.getOwnPropertyDescriptor(D.prototype,"key")),Object.defineProperty(G.prototype,"ref",Object.getOwnPropertyDescriptor(D.prototype,"ref")),G.prototype.create=D.prototype.create,G.prototype.child_up9nw1$=D.prototype.child_up9nw1$,G.prototype.child_1mw94g$$default=D.prototype.child_1mw94g$$default,G.prototype.child_30b5ua$=D.prototype.child_30b5ua$,G.prototype.children_w8hwhj$=D.prototype.children_w8hwhj$,G.prototype.invoke_c0v1gl$=D.prototype.invoke_c0v1gl$,G.prototype.invoke_r7bapy$=D.prototype.invoke_r7bapy$,G.prototype.invoke_qk0v40$=D.prototype.invoke_qk0v40$,G.prototype.invoke_snhqu5$=D.prototype.invoke_snhqu5$,G.prototype.unaryPlus_pdl1vz$=D.prototype.unaryPlus_pdl1vz$,G.prototype.unaryPlus_m8hz4t$=D.prototype.unaryPlus_m8hz4t$,G.prototype.child_1mw94g$=D.prototype.child_1mw94g$;var et,nt=N(["onCopy","onCut","onPaste","onCompositionEnd","onCompositionStart","onCompositionUpdate","onKeyDown","onKeyPress","onKeyUp","onFocus","onBlur","onChange","onInput","onInvalid","onReset","onSubmit","onClick","onContextMenu","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPointerDown","onPointerMove","onPointerUp","onPointerCancel","onGotPointerCapture","onLostPointerCapture","onPointerEnter","onPointerLeave","onPointerOver","onPointerOut","onSelect","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","onScroll","onWheel","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onError","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onLoad","onError","onAnimationStart","onAnimationEnd","onAnimationIteration","onTransitionEnd","onToggle","accept","acceptCharset","accessKey","action","allowFullScreen","alt","async","autoComplete","autoFocus","autoPlay","capture","cellPadding","cellSpacing","challenge","charSet","checked","cite","classID","className","colSpan","cols","content","contentEditable","contextMenu","controls","controlsList","coords","crossOrigin","data","dateTime","default","defer","dir","disabled","download","draggable","encType","form","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","headers","height","hidden","high","href","hrefLang","htmlFor","httpEquiv","icon","id","inputMode","integrity","is","keyParams","keyType","kind","label","lang","list","loop","low","manifest","marginHeight","marginWidth","max","maxLength","media","mediaGroup","method","min","minLength","multiple","muted","name","noValidate","nonce","open","optimum","pattern","placeholder","poster","preload","profile","radioGroup","readOnly","rel","required","reversed","role","rowSpan","rows","sandbox","scope","scoped","scrolling","seamless","selected","shape","size","sizes","span","spellCheck","src","srcDoc","srcLang","srcSet","start","step","style","summary","tabIndex","target","title","type","useMap","value","width","wmode","wrap"]),it=R(O(w(nt,10)),16),ot=A(it);for(et=nt.iterator();et.hasNext();){var rt=et.next();ot.put_xwzc9p$(rt.toLowerCase(),rt)}var st=T(ot);return st.put_xwzc9p$("class","className"),st.put_xwzc9p$("ondblclick","onDoubleClick"),M=st,X(),X(),X(),X(),V="$style$",t})?i.apply(e,o):i)||(t.exports=r)},function(t,e,n){"use strict";n.r(e),function(t){n.d(e,"ServerStyleSheet",(function(){return jt})),n.d(e,"StyleSheetConsumer",(function(){return ot})),n.d(e,"StyleSheetContext",(function(){return it})),n.d(e,"StyleSheetManager",(function(){return ut})),n.d(e,"ThemeConsumer",(function(){return At})),n.d(e,"ThemeContext",(function(){return Rt})),n.d(e,"ThemeProvider",(function(){return xt})),n.d(e,"__PRIVATE__",(function(){return Ft})),n.d(e,"createGlobalStyle",(function(){return Mt})),n.d(e,"css",(function(){return yt})),n.d(e,"isStyledComponent",(function(){return y})),n.d(e,"keyframes",(function(){return kt})),n.d(e,"useTheme",(function(){return qt})),n.d(e,"version",(function(){return S})),n.d(e,"withTheme",(function(){return Gt}));var i=n(72),o=n(0),r=n.n(o),s=n(727),a=n.n(s),c=n(728),l=n(334),u=n(220),h=n(66),d=n.n(h);function p(){return(p=Object.assign||function(t){for(var e=1;e1?e-1:0),i=1;i0?" Args: "+n.join(", "):""))}var L=function(){function t(t){this.groupSizes=new Uint32Array(512),this.length=512,this.tag=t}var e=t.prototype;return e.indexOfGroup=function(t){for(var e=0,n=0;n=this.groupSizes.length){for(var n=this.groupSizes,i=n.length,o=i;t>=o;)(o<<=1)<0&&T(16,""+t);this.groupSizes=new Uint32Array(o),this.groupSizes.set(n),this.length=o;for(var r=i;r=this.length||0===this.groupSizes[t])return e;for(var n=this.groupSizes[t],i=this.indexOfGroup(t),o=i+n,r=i;r=O&&(O=e+1),z.set(t,e),w.set(e,t)},I="style["+b+'][data-styled-version="5.3.6"]',U=new RegExp("^"+b+'\\.g(\\d+)\\[id="([\\w\\d-]+)"\\].*?"([^"]*)'),D=function(t,e,n){for(var i,o=n.split(","),r=0,s=o.length;r=0;n--){var i=e[n];if(i&&1===i.nodeType&&i.hasAttribute(b))return i}}(n),r=void 0!==o?o.nextSibling:null;i.setAttribute(b,"active"),i.setAttribute("data-styled-version","5.3.6");var s=M();return s&&i.setAttribute("nonce",s),n.insertBefore(i,r),i},j=function(){function t(t){var e=this.element=k(t);e.appendChild(document.createTextNode("")),this.sheet=function(t){if(t.sheet)return t.sheet;for(var e=document.styleSheets,n=0,i=e.length;n=0){var n=document.createTextNode(e),i=this.nodes[t];return this.element.insertBefore(n,i||null),this.length++,!0}return!1},e.deleteRule=function(t){this.element.removeChild(this.nodes[t]),this.length--},e.getRule=function(t){return t0&&(l+=t+",")})),i+=""+a+c+'{content:"'+l+'"}/*!sc*/\n'}}}return i}(this)},t}(),H=/(a)(d)/gi,V=function(t){return String.fromCharCode(t+(t>25?39:97))};function K(t){var e,n="";for(e=Math.abs(t);e>52;e=e/52|0)n=V(e%52)+n;return(V(e%52)+n).replace(H,"$1-$2")}var X=function(t,e){for(var n=e.length;n;)t=33*t^e.charCodeAt(--n);return t},J=function(t){return X(5381,t)};function Y(t){for(var e=0;e>>0);if(!e.hasNameForId(i,s)){var a=n(r,"."+s,void 0,i);e.insertRules(i,s,a)}o.push(s),this.staticRulesId=s}else{for(var c=this.rules.length,l=X(this.baseHash,n.hash),u="",h=0;h>>0);if(!e.hasNameForId(i,m)){var f=n(u,"."+m,void 0,i);e.insertRules(i,m,f)}o.push(m)}}return o.join(" ")},t}(),tt=/^\s*\/\/.*$/gm,et=[":","[",".","#"];function nt(t){var e,n,i,o,r=void 0===t?g:t,s=r.options,a=void 0===s?g:s,l=r.plugins,u=void 0===l?f:l,h=new c.a(a),d=[],p=function(t){function e(e){if(e)try{t(e+"}")}catch(t){}}return function(n,i,o,r,s,a,c,l,u,h){switch(n){case 1:if(0===u&&64===i.charCodeAt(0))return t(i+";"),"";break;case 2:if(0===l)return i+"/*|*/";break;case 3:switch(l){case 102:case 112:return t(o[0]+i),"";default:return i+(0===h?"/*|*/":"")}case-2:i.split("/*|*/}").forEach(e)}}}((function(t){d.push(t)})),_=function(t,i,r){return 0===i&&-1!==et.indexOf(r[n.length])||r.match(o)?t:"."+e};function m(t,r,s,a){void 0===a&&(a="&");var c=t.replace(tt,""),l=r&&s?s+" "+r+" { "+c+" }":c;return e=a,n=r,i=new RegExp("\\"+n+"\\b","g"),o=new RegExp("(\\"+n+"\\b){2,}"),h(s||!r?"":r,l)}return h.use([].concat(u,[function(t,e,o){2===t&&o.length&&o[0].lastIndexOf(n)>0&&(o[0]=o[0].replace(i,_))},p,function(t){if(-2===t){var e=d;return d=[],e}}])),m.hash=u.length?u.reduce((function(t,e){return e.name||T(15),X(t,e.name)}),5381).toString():"",m}var it=r.a.createContext(),ot=it.Consumer,rt=r.a.createContext(),st=(rt.Consumer,new W),at=nt();function ct(){return Object(o.useContext)(it)||st}function lt(){return Object(o.useContext)(rt)||at}function ut(t){var e=Object(o.useState)(t.stylisPlugins),n=e[0],i=e[1],s=ct(),c=Object(o.useMemo)((function(){var e=s;return t.sheet?e=t.sheet:t.target&&(e=e.reconstructWithOptions({target:t.target},!1)),t.disableCSSOMInjection&&(e=e.reconstructWithOptions({useCSSOMInjection:!1})),e}),[t.disableCSSOMInjection,t.sheet,t.target]),l=Object(o.useMemo)((function(){return nt({options:{prefix:!t.disableVendorPrefixes},plugins:n})}),[t.disableVendorPrefixes,n]);return Object(o.useEffect)((function(){a()(n,t.stylisPlugins)||i(t.stylisPlugins)}),[t.stylisPlugins]),r.a.createElement(it.Provider,{value:c},r.a.createElement(rt.Provider,{value:l},t.children))}var ht=function(){function t(t,e){var n=this;this.inject=function(t,e){void 0===e&&(e=at);var i=n.name+e.hash;t.hasNameForId(n.id,i)||t.insertRules(n.id,i,e(n.rules,i,"@keyframes"))},this.toString=function(){return T(12,String(n.name))},this.name=t,this.id="sc-keyframes-"+t,this.rules=e}return t.prototype.getName=function(t){return void 0===t&&(t=at),this.name+t.hash},t}(),dt=/([A-Z])/,pt=/([A-Z])/g,_t=/^ms-/,mt=function(t){return"-"+t.toLowerCase()};function ft(t){return dt.test(t)?t.replace(pt,mt).replace(_t,"-ms-"):t}var gt=function(t){return null==t||!1===t||""===t};function $t(t,e,n,i){if(Array.isArray(t)){for(var o,r=[],s=0,a=t.length;s1?e-1:0),i=1;i?@[\\\]^`{|}~-]+/g,vt=/(^-|-$)/g;function Ct(t){return t.replace(St,"-").replace(vt,"")}var Nt=function(t){return K(J(t)>>>0)};function Tt(t){return"string"==typeof t&&!0}var Lt=function(t){return"function"==typeof t||"object"==typeof t&&null!==t&&!Array.isArray(t)},zt=function(t){return"__proto__"!==t&&"constructor"!==t&&"prototype"!==t};function wt(t,e,n){var i=t[n];Lt(e)&&Lt(i)?Ot(i,e):t[n]=e}function Ot(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i=0||(o[n]=t[n]);return o}(e,["componentId"]),r=i&&i+"-"+(Tt(t)?t:Ct(E(t)));return Ut(t,p({},o,{attrs:S,componentId:r}),n)},Object.defineProperty(C,"defaultProps",{get:function(){return this._foldedDefaultProps},set:function(e){this._foldedDefaultProps=i?Ot({},t.defaultProps,e):e}}),C.toString=function(){return"."+C.styledComponentId},s&&d()(C,t,{attrs:!0,componentStyle:!0,displayName:!0,foldedComponentIds:!0,shouldForwardProp:!0,styledComponentId:!0,target:!0,withComponent:!0}),C}var Dt=function(t){return function t(e,n,o){if(void 0===o&&(o=g),!Object(i.isValidElementType)(n))return T(1,String(n));var r=function(){return e(n,o,yt.apply(void 0,arguments))};return r.withConfig=function(i){return t(e,n,p({},o,{},i))},r.attrs=function(i){return t(e,n,p({},o,{attrs:Array.prototype.concat(o.attrs,i).filter(Boolean)}))},r}(Ut,t)};["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","marker","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","textPath","tspan"].forEach((function(t){Dt[t]=Dt(t)}));var Pt=function(){function t(t,e){this.rules=t,this.componentId=e,this.isStatic=Y(t),W.registerId(this.componentId+1)}var e=t.prototype;return e.createStyles=function(t,e,n,i){var o=i($t(this.rules,e,n,i).join(""),""),r=this.componentId+t;n.insertRules(r,r,o)},e.removeStyles=function(t,e){e.clearRules(this.componentId+t)},e.renderStyles=function(t,e,n,i){t>2&&W.registerId(this.componentId+t),this.removeStyles(t,n),this.createStyles(t,e,n,i)},t}();function Mt(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),i=1;i1?e-1:0),i=1;i"+e+""},this.getStyleTags=function(){return t.sealed?T(2):t._emitSheetCSS()},this.getStyleElement=function(){var e;if(t.sealed)return T(2);var n=((e={})[b]="",e["data-styled-version"]="5.3.6",e.dangerouslySetInnerHTML={__html:t.instance.toString()},e),i=M();return i&&(n.nonce=i),[r.a.createElement("style",p({},n,{key:"sc-0-0"}))]},this.seal=function(){t.sealed=!0},this.instance=new W({isServer:!0}),this.sealed=!1}var e=t.prototype;return e.collectStyles=function(t){return this.sealed?T(2):r.a.createElement(ut,{sheet:this.instance},t)},e.interleaveWithNodeStream=function(t){return T(3)},t}(),Gt=function(t){var e=r.a.forwardRef((function(e,n){var i=Object(o.useContext)(Rt),s=t.defaultProps,a=bt(e,i,s);return r.a.createElement(t,p({},e,{theme:a,ref:n}))}));return d()(e,t),e.displayName="WithTheme("+E(t)+")",e},qt=function(){return Object(o.useContext)(Rt)},Ft={StyleSheet:W,masterSheet:st};e.default=Dt}.call(this,n(37))},function(t,e,n){var i,o,r;o=[e,n(31),n(182)],void 0===(r="function"==typeof(i=function(t,e,n){"use strict";return e.defineInlineFunction,e.Kind.INTERFACE,e.kotlin.collections.joinToString_cgipc5$,e.wrapFunction,e.Kind.CLASS,t})?i.apply(e,o):i)||(t.exports=r)},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(4),a=n(18),c=n(419),l=n(6),u=n(167),h=n(738),d=n(100),p=n(7),_=n(3),m=n(114),f=n(345),g=n(343),$=n(19),E=n(2);const y=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],b=Object(_.a)(g.a,{name:"MuiDialog",slot:"Backdrop",overrides:(t,e)=>e.backdrop})({zIndex:-1}),S=Object(_.a)(u.a,{name:"MuiDialog",slot:"Root",overridesResolver:(t,e)=>e.root})({"@media print":{position:"absolute !important"}}),v=Object(_.a)("div",{name:"MuiDialog",slot:"Container",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.container,e["scroll"+Object(l.a)(n.scroll)]]}})(({ownerState:t})=>Object(o.a)({height:"100%","@media print":{height:"auto"},outline:0},"paper"===t.scroll&&{display:"flex",justifyContent:"center",alignItems:"center"},"body"===t.scroll&&{overflowY:"auto",overflowX:"hidden",textAlign:"center","&:after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}})),C=Object(_.a)(d.a,{name:"MuiDialog",slot:"Paper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.paper,e["scrollPaper"+Object(l.a)(n.scroll)],e["paperWidth"+Object(l.a)(String(n.maxWidth))],n.fullWidth&&e.paperFullWidth,n.fullScreen&&e.paperFullScreen]}})(({theme:t,ownerState:e})=>Object(o.a)({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"}},"paper"===e.scroll&&{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"},"body"===e.scroll&&{display:"inline-block",verticalAlign:"middle",textAlign:"left"},!e.maxWidth&&{maxWidth:"calc(100% - 64px)"},"xs"===e.maxWidth&&{maxWidth:"px"===t.breakpoints.unit?Math.max(t.breakpoints.values.xs,444):`${t.breakpoints.values.xs}${t.breakpoints.unit}`,["&."+m.a.paperScrollBody]:{[t.breakpoints.down(Math.max(t.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}},e.maxWidth&&"xs"!==e.maxWidth&&{maxWidth:`${t.breakpoints.values[e.maxWidth]}${t.breakpoints.unit}`,["&."+m.a.paperScrollBody]:{[t.breakpoints.down(t.breakpoints.values[e.maxWidth]+64)]:{maxWidth:"calc(100% - 64px)"}}},e.fullWidth&&{width:"calc(100% - 64px)"},e.fullScreen&&{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,["&."+m.a.paperScrollBody]:{margin:0,maxWidth:"100%"}})),N=r.forwardRef((function(t,e){const n=Object(p.a)({props:t,name:"MuiDialog"}),u=Object($.default)(),_={enter:u.transitions.duration.enteringScreen,exit:u.transitions.duration.leavingScreen},{"aria-describedby":g,"aria-labelledby":N,BackdropComponent:T,BackdropProps:L,children:z,className:w,disableEscapeKeyDown:O=!1,fullScreen:R=!1,fullWidth:A=!1,maxWidth:x="sm",onBackdropClick:I,onClose:U,open:D,PaperComponent:P=d.a,PaperProps:M={},scroll:k="paper",TransitionComponent:j=h.a,transitionDuration:G=_,TransitionProps:q}=n,F=Object(i.a)(n,y),B=Object(o.a)({},n,{disableEscapeKeyDown:O,fullScreen:R,fullWidth:A,maxWidth:x,scroll:k}),W=(t=>{const{classes:e,scroll:n,maxWidth:i,fullWidth:o,fullScreen:r}=t,s={root:["root"],container:["container","scroll"+Object(l.a)(n)],paper:["paper","paperScroll"+Object(l.a)(n),"paperWidth"+Object(l.a)(String(i)),o&&"paperFullWidth",r&&"paperFullScreen"]};return Object(a.a)(s,m.b,e)})(B),H=r.useRef(),V=Object(c.a)(N),K=r.useMemo(()=>({titleId:V}),[V]);return Object(E.jsx)(S,Object(o.a)({className:Object(s.a)(W.root,w),closeAfterTransition:!0,components:{Backdrop:b},componentsProps:{backdrop:Object(o.a)({transitionDuration:G,as:T},L)},disableEscapeKeyDown:O,onClose:U,open:D,ref:e,onClick:t=>{H.current&&(H.current=null,I&&I(t),U&&U(t,"backdropClick"))},ownerState:B},F,{children:Object(E.jsx)(j,Object(o.a)({appear:!0,in:D,timeout:G,role:"presentation"},q,{children:Object(E.jsx)(v,{className:Object(s.a)(W.container),onMouseDown:t=>{H.current=t.target===t.currentTarget},ownerState:B,children:Object(E.jsx)(C,Object(o.a)({as:P,elevation:24,role:"dialog","aria-describedby":g,"aria-labelledby":V},M,{className:Object(s.a)(W.paper,M.className),ownerState:B,children:Object(E.jsx)(f.a.Provider,{value:K,children:z})}))})}))}))}));e.a=N},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(4),a=n(18),c=n(3),l=n(7),u=n(196),h=n(132),d=n(2);const p=["className","dividers"],_=Object(c.a)("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.dividers&&e.dividers]}})(({theme:t,ownerState:e})=>Object(o.a)({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px"},e.dividers?{padding:"16px 24px",borderTop:"1px solid "+(t.vars||t).palette.divider,borderBottom:"1px solid "+(t.vars||t).palette.divider}:{[`.${h.a.root} + &`]:{paddingTop:0}})),m=r.forwardRef((function(t,e){const n=Object(l.a)({props:t,name:"MuiDialogContent"}),{className:r,dividers:c=!1}=n,h=Object(i.a)(n,p),m=Object(o.a)({},n,{dividers:c}),f=(t=>{const{classes:e,dividers:n}=t,i={root:["root",n&&"dividers"]};return Object(a.a)(i,u.b,e)})(m);return Object(d.jsx)(_,Object(o.a)({className:Object(s.a)(f.root,r),ownerState:m,ref:e},h))}));e.a=m},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(4),a=n(18),c=n(3),l=n(7),u=n(197),h=n(2);const d=["className","disableSpacing"],p=Object(c.a)("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disableSpacing&&e.spacing]}})(({ownerState:t})=>Object(o.a)({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!t.disableSpacing&&{"& > :not(:first-of-type)":{marginLeft:8}})),_=r.forwardRef((function(t,e){const n=Object(l.a)({props:t,name:"MuiDialogActions"}),{className:r,disableSpacing:c=!1}=n,_=Object(i.a)(n,d),m=Object(o.a)({},n,{disableSpacing:c}),f=(t=>{const{classes:e,disableSpacing:n}=t,i={root:["root",!n&&"spacing"]};return Object(a.a)(i,u.b,e)})(m);return Object(h.jsx)(p,Object(o.a)({className:Object(s.a)(f.root,r),ownerState:m,ref:e},_))}));e.a=_},function(t,e,n){"use strict";var i,o=n(5),r=n(1),s=n(0),a=n(4),c=n(18),l=n(6),u=n(126),h=n(143),d=n(41),p=n(3),_=n(135),m=n(7),f=n(2);const g=["children","className","component","disablePointerEvents","disableTypography","position","variant"],$=Object(p.a)("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e["position"+Object(l.a)(n.position)],!0===n.disablePointerEvents&&e.disablePointerEvents,e[n.variant]]}})(({theme:t,ownerState:e})=>Object(r.a)({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(t.vars||t).palette.action.active},"filled"===e.variant&&{[`&.${_.a.positionStart}&:not(.${_.a.hiddenLabel})`]:{marginTop:16}},"start"===e.position&&{marginRight:8},"end"===e.position&&{marginLeft:8},!0===e.disablePointerEvents&&{pointerEvents:"none"})),E=s.forwardRef((function(t,e){const n=Object(m.a)({props:t,name:"MuiInputAdornment"}),{children:p,className:E,component:y="div",disablePointerEvents:b=!1,disableTypography:S=!1,position:v,variant:C}=n,N=Object(o.a)(n,g),T=Object(d.a)()||{};let L=C;C&&T.variant,T&&!L&&(L=T.variant);const z=Object(r.a)({},n,{hiddenLabel:T.hiddenLabel,size:T.size,disablePointerEvents:b,position:v,variant:L}),w=(t=>{const{classes:e,disablePointerEvents:n,hiddenLabel:i,position:o,size:r,variant:s}=t,a={root:["root",n&&"disablePointerEvents",o&&"position"+Object(l.a)(o),s,i&&"hiddenLabel",r&&"size"+Object(l.a)(r)]};return Object(c.a)(a,_.b,e)})(z);return Object(f.jsx)(h.a.Provider,{value:null,children:Object(f.jsx)($,Object(r.a)({as:y,ownerState:z,className:Object(a.a)(w.root,E),ref:e},N,{children:"string"!=typeof p||S?Object(f.jsxs)(s.Fragment,{children:["start"===v?i||(i=Object(f.jsx)("span",{className:"notranslate",children:"​"})):null,p]}):Object(f.jsx)(u.a,{color:"text.secondary",children:p})}))})}));e.a=E},function(t,e,n){"use strict";var i=n(1),o=n(5),r=n(0),s=n(4),a=n(18),c=n(126),l=n(3),u=n(7),h=n(132),d=n(345),p=n(2);const _=["className","id"],m=Object(l.a)(c.a,{name:"MuiDialogTitle",slot:"Root",overridesResolver:(t,e)=>e.root})({padding:"16px 24px",flex:"0 0 auto"}),f=r.forwardRef((function(t,e){const n=Object(u.a)({props:t,name:"MuiDialogTitle"}),{className:c,id:l}=n,f=Object(o.a)(n,_),g=n,$=(t=>{const{classes:e}=t;return Object(a.a)({root:["root"]},h.b,e)})(g),{titleId:E=l}=r.useContext(d.a);return Object(p.jsx)(m,Object(i.a)({component:"h2",className:Object(s.a)($.root,c),ownerState:g,ref:e,variant:"h6",id:E},f))}));e.a=f},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(4),a=n(18),c=n(28),l=n(3),u=n(7),h=n(136),d=n(2);const p=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],_=Object(l.a)("div",{name:"MuiDivider",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.absolute&&e.absolute,e[n.variant],n.light&&e.light,"vertical"===n.orientation&&e.vertical,n.flexItem&&e.flexItem,n.children&&e.withChildren,n.children&&"vertical"===n.orientation&&e.withChildrenVertical,"right"===n.textAlign&&"vertical"!==n.orientation&&e.textAlignRight,"left"===n.textAlign&&"vertical"!==n.orientation&&e.textAlignLeft]}})(({theme:t,ownerState:e})=>Object(o.a)({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(t.vars||t).palette.divider,borderBottomWidth:"thin"},e.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},e.light&&{borderColor:t.vars?`rgba(${t.vars.palette.dividerChannel} / 0.08)`:Object(c.a)(t.palette.divider,.08)},"inset"===e.variant&&{marginLeft:72},"middle"===e.variant&&"horizontal"===e.orientation&&{marginLeft:t.spacing(2),marginRight:t.spacing(2)},"middle"===e.variant&&"vertical"===e.orientation&&{marginTop:t.spacing(1),marginBottom:t.spacing(1)},"vertical"===e.orientation&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},e.flexItem&&{alignSelf:"stretch",height:"auto"}),({theme:t,ownerState:e})=>Object(o.a)({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{position:"relative",width:"100%",borderTop:"thin solid "+(t.vars||t).palette.divider,top:"50%",content:'""',transform:"translateY(50%)"}}),({theme:t,ownerState:e})=>Object(o.a)({},e.children&&"vertical"===e.orientation&&{flexDirection:"column","&::before, &::after":{height:"100%",top:"0%",left:"50%",borderTop:0,borderLeft:"thin solid "+(t.vars||t).palette.divider,transform:"translateX(0%)"}}),({ownerState:t})=>Object(o.a)({},"right"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},"left"===t.textAlign&&"vertical"!==t.orientation&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),m=Object(l.a)("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.wrapper,"vertical"===n.orientation&&e.wrapperVertical]}})(({theme:t,ownerState:e})=>Object(o.a)({display:"inline-block",paddingLeft:`calc(${t.spacing(1)} * 1.2)`,paddingRight:`calc(${t.spacing(1)} * 1.2)`},"vertical"===e.orientation&&{paddingTop:`calc(${t.spacing(1)} * 1.2)`,paddingBottom:`calc(${t.spacing(1)} * 1.2)`})),f=r.forwardRef((function(t,e){const n=Object(u.a)({props:t,name:"MuiDivider"}),{absolute:r=!1,children:c,className:l,component:f=(c?"div":"hr"),flexItem:g=!1,light:$=!1,orientation:E="horizontal",role:y=("hr"!==f?"separator":void 0),textAlign:b="center",variant:S="fullWidth"}=n,v=Object(i.a)(n,p),C=Object(o.a)({},n,{absolute:r,component:f,flexItem:g,light:$,orientation:E,role:y,textAlign:b,variant:S}),N=(t=>{const{absolute:e,children:n,classes:i,flexItem:o,light:r,orientation:s,textAlign:c,variant:l}=t,u={root:["root",e&&"absolute",l,r&&"light","vertical"===s&&"vertical",o&&"flexItem",n&&"withChildren",n&&"vertical"===s&&"withChildrenVertical","right"===c&&"vertical"!==s&&"textAlignRight","left"===c&&"vertical"!==s&&"textAlignLeft"],wrapper:["wrapper","vertical"===s&&"wrapperVertical"]};return Object(a.a)(u,h.b,i)})(C);return Object(d.jsx)(_,Object(o.a)({as:f,className:Object(s.a)(N.root,l),role:y,ref:e,ownerState:C},v,{children:c?Object(d.jsx)(m,{className:N.wrapper,ownerState:C,children:c}):null}))}));e.a=f},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(4),a=n(18),c=n(93),l=n(6),u=n(7),h=n(137),d=n(3),p=n(2);const _=["children","className","color","component","disabled","disableFocusRipple","focusVisibleClassName","size","variant"],m=Object(d.a)(c.a,{name:"MuiFab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e["size"+Object(l.a)(n.size)],"inherit"===n.color&&e.colorInherit,e[Object(l.a)(n.size)],e[n.color]]}})(({theme:t,ownerState:e})=>{var n,i;return Object(o.a)({},t.typography.button,{minHeight:36,transition:t.transitions.create(["background-color","box-shadow","border-color"],{duration:t.transitions.duration.short}),borderRadius:"50%",padding:0,minWidth:0,width:56,height:56,zIndex:(t.vars||t).zIndex.fab,boxShadow:(t.vars||t).shadows[6],"&:active":{boxShadow:(t.vars||t).shadows[12]},color:t.vars?t.vars.palette.text.primary:null==(n=(i=t.palette).getContrastText)?void 0:n.call(i,t.palette.grey[300]),backgroundColor:(t.vars||t).palette.grey[300],"&:hover":{backgroundColor:(t.vars||t).palette.grey.A100,"@media (hover: none)":{backgroundColor:(t.vars||t).palette.grey[300]},textDecoration:"none"},["&."+h.a.focusVisible]:{boxShadow:(t.vars||t).shadows[6]},["&."+h.a.disabled]:{color:(t.vars||t).palette.action.disabled,boxShadow:(t.vars||t).shadows[0],backgroundColor:(t.vars||t).palette.action.disabledBackground}},"small"===e.size&&{width:40,height:40},"medium"===e.size&&{width:48,height:48},"extended"===e.variant&&{borderRadius:24,padding:"0 16px",width:"auto",minHeight:"auto",minWidth:48,height:48},"extended"===e.variant&&"small"===e.size&&{width:"auto",padding:"0 8px",borderRadius:17,minWidth:34,height:34},"extended"===e.variant&&"medium"===e.size&&{width:"auto",padding:"0 16px",borderRadius:20,minWidth:40,height:40},"inherit"===e.color&&{color:"inherit"})},({theme:t,ownerState:e})=>Object(o.a)({},"inherit"!==e.color&&"default"!==e.color&&null!=(t.vars||t).palette[e.color]&&{color:(t.vars||t).palette[e.color].contrastText,backgroundColor:(t.vars||t).palette[e.color].main,"&:hover":{backgroundColor:(t.vars||t).palette[e.color].dark,"@media (hover: none)":{backgroundColor:(t.vars||t).palette[e.color].main}}})),f=r.forwardRef((function(t,e){const n=Object(u.a)({props:t,name:"MuiFab"}),{children:r,className:c,color:d="default",component:f="button",disabled:g=!1,disableFocusRipple:$=!1,focusVisibleClassName:E,size:y="large",variant:b="circular"}=n,S=Object(i.a)(n,_),v=Object(o.a)({},n,{color:d,component:f,disabled:g,disableFocusRipple:$,size:y,variant:b}),C=(t=>{const{color:e,variant:n,classes:i,size:o}=t,r={root:["root",n,"size"+Object(l.a)(o),"inherit"===e?"colorInherit":e]};return Object(a.a)(r,h.b,i)})(v);return Object(p.jsx)(m,Object(o.a)({className:Object(s.a)(C.root,c),component:f,disabled:g,focusRipple:!$,focusVisibleClassName:Object(s.a)(C.focusVisible,E),ownerState:v,ref:e},S,{children:r}))}));e.a=f},function(t,e,n){"use strict";var i=n(1),o=n(5),r=n(0),s=n(4),a=n(18),c=n(3),l=n(7),u=n(6),h=n(200),d=n(2);const p=["baseClassName","className","color","component","fontSize"],_=Object(c.a)("span",{name:"MuiIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,"inherit"!==n.color&&e["color"+Object(u.a)(n.color)],e["fontSize"+Object(u.a)(n.fontSize)]]}})(({theme:t,ownerState:e})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:t.typography.pxToRem(20),medium:t.typography.pxToRem(24),large:t.typography.pxToRem(36)}[e.fontSize],color:{primary:(t.vars||t).palette.primary.main,secondary:(t.vars||t).palette.secondary.main,info:(t.vars||t).palette.info.main,success:(t.vars||t).palette.success.main,warning:(t.vars||t).palette.warning.main,action:(t.vars||t).palette.action.active,error:(t.vars||t).palette.error.main,disabled:(t.vars||t).palette.action.disabled,inherit:void 0}[e.color]})),m=r.forwardRef((function(t,e){const n=Object(l.a)({props:t,name:"MuiIcon"}),{baseClassName:r="material-icons",className:c,color:m="inherit",component:f="span",fontSize:g="medium"}=n,$=Object(o.a)(n,p),E=Object(i.a)({},n,{baseClassName:r,color:m,component:f,fontSize:g}),y=(t=>{const{color:e,fontSize:n,classes:i}=t,o={root:["root","inherit"!==e&&"color"+Object(u.a)(e),"fontSize"+Object(u.a)(n)]};return Object(a.a)(o,h.b,i)})(E);return Object(d.jsx)(_,Object(i.a)({as:f,className:Object(s.a)(r,"notranslate",y.root,c),ownerState:E,"aria-hidden":!0,ref:e},$))}));m.muiName="Icon",e.a=m},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(4),a=n(18),c=n(3),l=n(7),u=n(48),h=n(202),d=n(2);const p=["children","className","component","dense","disablePadding","subheader"],_=Object(c.a)("ul",{name:"MuiList",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disablePadding&&e.padding,n.dense&&e.dense,n.subheader&&e.subheader]}})(({ownerState:t})=>Object(o.a)({listStyle:"none",margin:0,padding:0,position:"relative"},!t.disablePadding&&{paddingTop:8,paddingBottom:8},t.subheader&&{paddingTop:0})),m=r.forwardRef((function(t,e){const n=Object(l.a)({props:t,name:"MuiList"}),{children:c,className:m,component:f="ul",dense:g=!1,disablePadding:$=!1,subheader:E}=n,y=Object(i.a)(n,p),b=r.useMemo(()=>({dense:g}),[g]),S=Object(o.a)({},n,{component:f,dense:g,disablePadding:$}),v=(t=>{const{classes:e,disablePadding:n,dense:i,subheader:o}=t,r={root:["root",!n&&"padding",i&&"dense",o&&"subheader"]};return Object(a.a)(r,h.b,e)})(S);return Object(d.jsx)(u.a.Provider,{value:b,children:Object(d.jsxs)(_,Object(o.a)({as:f,className:Object(s.a)(v.root,m),ref:e,ownerState:S},y,{children:[E,c]}))})}));e.a=m},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(4),a=n(18),c=n(101),l=n(28),u=n(3),h=n(7),d=n(93),p=n(75),_=n(52),m=n(21),f=n(48),g=n(91),$=n(92),E=n(410),y=n(2);const b=["className"],S=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected"],v=Object(u.a)("div",{name:"MuiListItem",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.dense&&e.dense,"flex-start"===n.alignItems&&e.alignItemsFlexStart,n.divider&&e.divider,!n.disableGutters&&e.gutters,!n.disablePadding&&e.padding,n.button&&e.button,n.hasSecondaryAction&&e.secondaryAction]}})(({theme:t,ownerState:e})=>Object(o.a)({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!e.disablePadding&&Object(o.a)({paddingTop:8,paddingBottom:8},e.dense&&{paddingTop:4,paddingBottom:4},!e.disableGutters&&{paddingLeft:16,paddingRight:16},!!e.secondaryAction&&{paddingRight:48}),!!e.secondaryAction&&{["& > ."+$.a.root]:{paddingRight:48}},{["&."+g.a.focusVisible]:{backgroundColor:(t.vars||t).palette.action.focus},["&."+g.a.selected]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Object(l.a)(t.palette.primary.main,t.palette.action.selectedOpacity),["&."+g.a.focusVisible]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Object(l.a)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},["&."+g.a.disabled]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"flex-start"===e.alignItems&&{alignItems:"flex-start"},e.divider&&{borderBottom:"1px solid "+(t.vars||t).palette.divider,backgroundClip:"padding-box"},e.button&&{transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${g.a.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Object(l.a)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Object(l.a)(t.palette.primary.main,t.palette.action.selectedOpacity)}}},e.hasSecondaryAction&&{paddingRight:48})),C=Object(u.a)("li",{name:"MuiListItem",slot:"Container",overridesResolver:(t,e)=>e.container})({position:"relative"}),N=r.forwardRef((function(t,e){const n=Object(h.a)({props:t,name:"MuiListItem"}),{alignItems:l="center",autoFocus:u=!1,button:$=!1,children:N,className:T,component:L,components:z={},componentsProps:w={},ContainerComponent:O="li",ContainerProps:{className:R}={},dense:A=!1,disabled:x=!1,disableGutters:I=!1,disablePadding:U=!1,divider:D=!1,focusVisibleClassName:P,secondaryAction:M,selected:k=!1}=n,j=Object(i.a)(n.ContainerProps,b),G=Object(i.a)(n,S),q=r.useContext(f.a),F={dense:A||q.dense||!1,alignItems:l,disableGutters:I},B=r.useRef(null);Object(_.a)(()=>{u&&B.current&&B.current.focus()},[u]);const W=r.Children.toArray(N),H=W.length&&Object(p.a)(W[W.length-1],["ListItemSecondaryAction"]),V=Object(o.a)({},n,{alignItems:l,autoFocus:u,button:$,dense:F.dense,disabled:x,disableGutters:I,disablePadding:U,divider:D,hasSecondaryAction:H,selected:k}),K=(t=>{const{alignItems:e,button:n,classes:i,dense:o,disabled:r,disableGutters:s,disablePadding:c,divider:l,hasSecondaryAction:u,selected:h}=t,d={root:["root",o&&"dense",!s&&"gutters",!c&&"padding",l&&"divider",r&&"disabled",n&&"button","flex-start"===e&&"alignItemsFlexStart",u&&"secondaryAction",h&&"selected"],container:["container"]};return Object(a.a)(d,g.b,i)})(V),X=Object(m.a)(B,e),J=z.Root||v,Y=w.root||{},Q=Object(o.a)({className:Object(s.a)(K.root,Y.className,T),disabled:x},G);let Z=L||"li";return $&&(Q.component=L||"div",Q.focusVisibleClassName=Object(s.a)(g.a.focusVisible,P),Z=d.a),H?(Z=Q.component||L?Z:"div","li"===O&&("li"===Z?Z="div":"li"===Q.component&&(Q.component="div")),Object(y.jsx)(f.a.Provider,{value:F,children:Object(y.jsxs)(C,Object(o.a)({as:O,className:Object(s.a)(K.container,R),ref:X,ownerState:V},j,{children:[Object(y.jsx)(J,Object(o.a)({},Y,!Object(c.a)(J)&&{as:Z,ownerState:Object(o.a)({},V,Y.ownerState)},Q,{children:W})),W.pop()]}))})):Object(y.jsx)(f.a.Provider,{value:F,children:Object(y.jsxs)(J,Object(o.a)({},Y,{as:Z,ref:X,ownerState:V},!Object(c.a)(J)&&{ownerState:Object(o.a)({},V,Y.ownerState)},Q,{children:[W,M&&Object(y.jsx)(E.a,{children:M})]}))})}));e.a=N},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(4),a=n(18),c=n(48),l=n(3),u=n(7),h=n(204),d=n(2);const p=["className"],_=Object(l.a)("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,"flex-start"===n.alignItems&&e.alignItemsFlexStart]}})(({ownerState:t})=>Object(o.a)({minWidth:56,flexShrink:0},"flex-start"===t.alignItems&&{marginTop:8})),m=r.forwardRef((function(t,e){const n=Object(u.a)({props:t,name:"MuiListItemAvatar"}),{className:l}=n,m=Object(i.a)(n,p),f=r.useContext(c.a),g=Object(o.a)({},n,{alignItems:f.alignItems}),$=(t=>{const{alignItems:e,classes:n}=t,i={root:["root","flex-start"===e&&"alignItemsFlexStart"]};return Object(a.a)(i,h.b,n)})(g);return Object(d.jsx)(_,Object(o.a)({className:Object(s.a)($.root,l),ownerState:g,ref:e},m))}));e.a=m},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(4),a=n(18),c=n(3),l=n(7),u=n(139),h=n(48),d=n(2);const p=["className"],_=Object(c.a)("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,"flex-start"===n.alignItems&&e.alignItemsFlexStart]}})(({theme:t,ownerState:e})=>Object(o.a)({minWidth:56,color:(t.vars||t).palette.action.active,flexShrink:0,display:"inline-flex"},"flex-start"===e.alignItems&&{marginTop:8})),m=r.forwardRef((function(t,e){const n=Object(l.a)({props:t,name:"MuiListItemIcon"}),{className:c}=n,m=Object(i.a)(n,p),f=r.useContext(h.a),g=Object(o.a)({},n,{alignItems:f.alignItems}),$=(t=>{const{alignItems:e,classes:n}=t,i={root:["root","flex-start"===e&&"alignItemsFlexStart"]};return Object(a.a)(i,u.b,n)})(g);return Object(d.jsx)(_,Object(o.a)({className:Object(s.a)($.root,c),ownerState:g,ref:e},m))}));e.a=m},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(4),a=n(18),c=n(126),l=n(48),u=n(7),h=n(3),d=n(106),p=n(2);const _=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],m=Object(h.a)("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{["& ."+d.a.primary]:e.primary},{["& ."+d.a.secondary]:e.secondary},e.root,n.inset&&e.inset,n.primary&&n.secondary&&e.multiline,n.dense&&e.dense]}})(({ownerState:t})=>Object(o.a)({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},t.primary&&t.secondary&&{marginTop:6,marginBottom:6},t.inset&&{paddingLeft:56})),f=r.forwardRef((function(t,e){const n=Object(u.a)({props:t,name:"MuiListItemText"}),{children:h,className:f,disableTypography:g=!1,inset:$=!1,primary:E,primaryTypographyProps:y,secondary:b,secondaryTypographyProps:S}=n,v=Object(i.a)(n,_),{dense:C}=r.useContext(l.a);let N=null!=E?E:h,T=b;const L=Object(o.a)({},n,{disableTypography:g,inset:$,primary:!!N,secondary:!!T,dense:C}),z=(t=>{const{classes:e,inset:n,primary:i,secondary:o,dense:r}=t,s={root:["root",n&&"inset",r&&"dense",i&&o&&"multiline"],primary:["primary"],secondary:["secondary"]};return Object(a.a)(s,d.b,e)})(L);return null==N||N.type===c.a||g||(N=Object(p.jsx)(c.a,Object(o.a)({variant:C?"body2":"body1",className:z.primary,component:"span",display:"block"},y,{children:N}))),null==T||T.type===c.a||g||(T=Object(p.jsx)(c.a,Object(o.a)({variant:"body2",className:z.secondary,color:"text.secondary",display:"block"},S,{children:T}))),Object(p.jsxs)(m,Object(o.a)({className:Object(s.a)(z.root,f),ownerState:L,ref:e},v,{children:[N,T]}))}));e.a=f},function(t,e,n){"use strict";n.d(e,"a",(function(){return u}));var i=n(0),o=n(417),r=n(418),s=n(52);function a(t,e,n,o,r){const a="undefined"!=typeof window&&void 0!==window.matchMedia,[c,l]=i.useState(()=>r&&a?n(t).matches:o?o(t).matches:e);return Object(s.a)(()=>{let e=!0;if(!a)return;const i=n(t),o=()=>{e&&l(i.matches)};return o(),i.addListener(o),()=>{e=!1,i.removeListener(o)}},[t,n,a]),c}const c=i.useSyncExternalStore;function l(t,e,n,o){const r=i.useCallback(()=>e,[e]),s=i.useMemo(()=>{if(null!==o){const{matches:e}=o(t);return()=>e}return r},[r,t,o]),[a,l]=i.useMemo(()=>{if(null===n)return[r,()=>()=>{}];const e=n(t);return[()=>e.matches,t=>(e.addListener(t),()=>{e.removeListener(t)})]},[r,n,t]);return c(l,a,s)}function u(t,e={}){const n=Object(o.a)(),i="undefined"!=typeof window&&void 0!==window.matchMedia,{defaultMatches:s=!1,matchMedia:u=(i?window.matchMedia:null),ssrMatchMedia:h=null,noSsr:d}=Object(r.a)({name:"MuiUseMediaQuery",props:e,theme:n});let p="function"==typeof t?t(n):t;p=p.replace(/^@media( ?)/m,"");return(void 0!==c?l:a)(p,s,u,h,d)}},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(4),a=n(18),c=n(28),l=n(3),u=n(7),h=n(48),d=n(93),p=n(52),_=n(21),m=n(136),f=n(139),g=n(106),$=n(98),E=n(2);const y=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex"],b=Object(l.a)(d.a,{shouldForwardProp:t=>Object(l.b)(t)||"classes"===t,name:"MuiMenuItem",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.dense&&e.dense,n.divider&&e.divider,!n.disableGutters&&e.gutters]}})(({theme:t,ownerState:e})=>Object(o.a)({},t.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!e.disableGutters&&{paddingLeft:16,paddingRight:16},e.divider&&{borderBottom:"1px solid "+(t.vars||t).palette.divider,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&."+$.a.selected]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Object(c.a)(t.palette.primary.main,t.palette.action.selectedOpacity),["&."+$.a.focusVisible]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Object(c.a)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${$.a.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Object(c.a)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Object(c.a)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&."+$.a.focusVisible]:{backgroundColor:(t.vars||t).palette.action.focus},["&."+$.a.disabled]:{opacity:(t.vars||t).palette.action.disabledOpacity},["& + ."+m.a.root]:{marginTop:t.spacing(1),marginBottom:t.spacing(1)},["& + ."+m.a.inset]:{marginLeft:52},["& ."+g.a.root]:{marginTop:0,marginBottom:0},["& ."+g.a.inset]:{paddingLeft:36},["& ."+f.a.root]:{minWidth:36}},!e.dense&&{[t.breakpoints.up("sm")]:{minHeight:"auto"}},e.dense&&Object(o.a)({minHeight:32,paddingTop:4,paddingBottom:4},t.typography.body2,{[`& .${f.a.root} svg`]:{fontSize:"1.25rem"}}))),S=r.forwardRef((function(t,e){const n=Object(u.a)({props:t,name:"MuiMenuItem"}),{autoFocus:c=!1,component:l="li",dense:d=!1,divider:m=!1,disableGutters:f=!1,focusVisibleClassName:g,role:S="menuitem",tabIndex:v}=n,C=Object(i.a)(n,y),N=r.useContext(h.a),T={dense:d||N.dense||!1,disableGutters:f},L=r.useRef(null);Object(p.a)(()=>{c&&L.current&&L.current.focus()},[c]);const z=Object(o.a)({},n,{dense:T.dense,divider:m,disableGutters:f}),w=(t=>{const{disabled:e,dense:n,divider:i,disableGutters:r,selected:s,classes:c}=t,l={root:["root",n&&"dense",e&&"disabled",!r&&"gutters",i&&"divider",s&&"selected"]},u=Object(a.a)(l,$.b,c);return Object(o.a)({},c,u)})(n),O=Object(_.a)(L,e);let R;return n.disabled||(R=void 0!==v?v:-1),Object(E.jsx)(h.a.Provider,{value:T,children:Object(E.jsx)(b,Object(o.a)({ref:O,role:S,tabIndex:R,component:l,focusVisibleClassName:Object(s.a)(w.focusVisible,g)},C,{ownerState:z,classes:w}))})}));e.a=S},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(4),a=n(18),c=n(54),l=n(28),u=n(6),h=n(19),d=n(3),p=n(7),_=n(207),m=n(2);const f=["className","color","value","valueBuffer","variant"];let g,$,E,y,b,S,v=t=>t;const C=Object(c.c)(g||(g=v` 0% { left: -35%; right: 100%; } 60% { left: 100%; right: -90%; } 100% { left: 100%; right: -90%; } `)),N=Object(c.c)($||($=v` 0% { left: -200%; right: 100%; } 60% { left: 107%; right: -8%; } 100% { left: 107%; right: -8%; } `)),T=Object(c.c)(E||(E=v` 0% { opacity: 1; background-position: 0 -23px; } 60% { opacity: 0; background-position: 0 -23px; } 100% { opacity: 1; background-position: -200px -23px; } `)),L=(t,e)=>"inherit"===e?"currentColor":t.vars?t.vars.palette.LinearProgress[e+"Bg"]:"light"===t.palette.mode?Object(l.j)(t.palette[e].main,.62):Object(l.c)(t.palette[e].main,.5),z=Object(d.a)("span",{name:"MuiLinearProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e["color"+Object(u.a)(n.color)],e[n.variant]]}})(({ownerState:t,theme:e})=>Object(o.a)({position:"relative",overflow:"hidden",display:"block",height:4,zIndex:0,"@media print":{colorAdjust:"exact"},backgroundColor:L(e,t.color)},"inherit"===t.color&&"buffer"!==t.variant&&{backgroundColor:"none","&::before":{content:'""',position:"absolute",left:0,top:0,right:0,bottom:0,backgroundColor:"currentColor",opacity:.3}},"buffer"===t.variant&&{backgroundColor:"transparent"},"query"===t.variant&&{transform:"rotate(180deg)"})),w=Object(d.a)("span",{name:"MuiLinearProgress",slot:"Dashed",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.dashed,e["dashedColor"+Object(u.a)(n.color)]]}})(({ownerState:t,theme:e})=>{const n=L(e,t.color);return Object(o.a)({position:"absolute",marginTop:0,height:"100%",width:"100%"},"inherit"===t.color&&{opacity:.3},{backgroundImage:`radial-gradient(${n} 0%, ${n} 16%, transparent 42%)`,backgroundSize:"10px 10px",backgroundPosition:"0 -23px"})},Object(c.b)(y||(y=v` animation: ${0} 3s infinite linear; `),T)),O=Object(d.a)("span",{name:"MuiLinearProgress",slot:"Bar1",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.bar,e["barColor"+Object(u.a)(n.color)],("indeterminate"===n.variant||"query"===n.variant)&&e.bar1Indeterminate,"determinate"===n.variant&&e.bar1Determinate,"buffer"===n.variant&&e.bar1Buffer]}})(({ownerState:t,theme:e})=>Object(o.a)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left",backgroundColor:"inherit"===t.color?"currentColor":(e.vars||e).palette[t.color].main},"determinate"===t.variant&&{transition:"transform .4s linear"},"buffer"===t.variant&&{zIndex:1,transition:"transform .4s linear"}),({ownerState:t})=>("indeterminate"===t.variant||"query"===t.variant)&&Object(c.b)(b||(b=v` width: auto; animation: ${0} 2.1s cubic-bezier(0.65, 0.815, 0.735, 0.395) infinite; `),C)),R=Object(d.a)("span",{name:"MuiLinearProgress",slot:"Bar2",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.bar,e["barColor"+Object(u.a)(n.color)],("indeterminate"===n.variant||"query"===n.variant)&&e.bar2Indeterminate,"buffer"===n.variant&&e.bar2Buffer]}})(({ownerState:t,theme:e})=>Object(o.a)({width:"100%",position:"absolute",left:0,bottom:0,top:0,transition:"transform 0.2s linear",transformOrigin:"left"},"buffer"!==t.variant&&{backgroundColor:"inherit"===t.color?"currentColor":(e.vars||e).palette[t.color].main},"inherit"===t.color&&{opacity:.3},"buffer"===t.variant&&{backgroundColor:L(e,t.color),transition:"transform .4s linear"}),({ownerState:t})=>("indeterminate"===t.variant||"query"===t.variant)&&Object(c.b)(S||(S=v` width: auto; animation: ${0} 2.1s cubic-bezier(0.165, 0.84, 0.44, 1) 1.15s infinite; `),N)),A=r.forwardRef((function(t,e){const n=Object(p.a)({props:t,name:"MuiLinearProgress"}),{className:r,color:c="primary",value:l,valueBuffer:d,variant:g="indeterminate"}=n,$=Object(i.a)(n,f),E=Object(o.a)({},n,{color:c,variant:g}),y=(t=>{const{classes:e,variant:n,color:i}=t,o={root:["root","color"+Object(u.a)(i),n],dashed:["dashed","dashedColor"+Object(u.a)(i)],bar1:["bar","barColor"+Object(u.a)(i),("indeterminate"===n||"query"===n)&&"bar1Indeterminate","determinate"===n&&"bar1Determinate","buffer"===n&&"bar1Buffer"],bar2:["bar","buffer"!==n&&"barColor"+Object(u.a)(i),"buffer"===n&&"color"+Object(u.a)(i),("indeterminate"===n||"query"===n)&&"bar2Indeterminate","buffer"===n&&"bar2Buffer"]};return Object(a.a)(o,_.b,e)})(E),b=Object(h.default)(),S={},v={bar1:{},bar2:{}};if("determinate"===g||"buffer"===g)if(void 0!==l){S["aria-valuenow"]=Math.round(l),S["aria-valuemin"]=0,S["aria-valuemax"]=100;let t=l-100;"rtl"===b.direction&&(t=-t),v.bar1.transform=`translateX(${t}%)`}else 0;if("buffer"===g)if(void 0!==d){let t=(d||0)-100;"rtl"===b.direction&&(t=-t),v.bar2.transform=`translateX(${t}%)`}else 0;return Object(m.jsxs)(z,Object(o.a)({className:Object(s.a)(y.root,r),ownerState:E,role:"progressbar"},S,{ref:e},$,{children:["buffer"===g?Object(m.jsx)(w,{className:y.dashed,ownerState:E}):null,Object(m.jsx)(O,{className:y.bar1,ownerState:E,style:v.bar1}),"determinate"===g?null:Object(m.jsx)(R,{className:y.bar2,ownerState:E,style:v.bar2})]}))}));e.a=A},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(4),a=n(18),c=n(54),l=n(6),u=n(7),h=n(3),d=n(208),p=n(2);const _=["className","color","disableShrink","size","style","thickness","value","variant"];let m,f,g,$,E=t=>t;const y=Object(c.c)(m||(m=E` 0% { transform: rotate(0deg); } 100% { transform: rotate(360deg); } `)),b=Object(c.c)(f||(f=E` 0% { stroke-dasharray: 1px, 200px; stroke-dashoffset: 0; } 50% { stroke-dasharray: 100px, 200px; stroke-dashoffset: -15px; } 100% { stroke-dasharray: 100px, 200px; stroke-dashoffset: -125px; } `)),S=Object(h.a)("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e["color"+Object(l.a)(n.color)]]}})(({ownerState:t,theme:e})=>Object(o.a)({display:"inline-block"},"determinate"===t.variant&&{transition:e.transitions.create("transform")},"inherit"!==t.color&&{color:(e.vars||e).palette[t.color].main}),({ownerState:t})=>"indeterminate"===t.variant&&Object(c.b)(g||(g=E` animation: ${0} 1.4s linear infinite; `),y)),v=Object(h.a)("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(t,e)=>e.svg})({display:"block"}),C=Object(h.a)("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.circle,e["circle"+Object(l.a)(n.variant)],n.disableShrink&&e.circleDisableShrink]}})(({ownerState:t,theme:e})=>Object(o.a)({stroke:"currentColor"},"determinate"===t.variant&&{transition:e.transitions.create("stroke-dashoffset")},"indeterminate"===t.variant&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:t})=>"indeterminate"===t.variant&&!t.disableShrink&&Object(c.b)($||($=E` animation: ${0} 1.4s ease-in-out infinite; `),b)),N=r.forwardRef((function(t,e){const n=Object(u.a)({props:t,name:"MuiCircularProgress"}),{className:r,color:c="primary",disableShrink:h=!1,size:m=40,style:f,thickness:g=3.6,value:$=0,variant:E="indeterminate"}=n,y=Object(i.a)(n,_),b=Object(o.a)({},n,{color:c,disableShrink:h,size:m,thickness:g,value:$,variant:E}),N=(t=>{const{classes:e,variant:n,color:i,disableShrink:o}=t,r={root:["root",n,"color"+Object(l.a)(i)],svg:["svg"],circle:["circle","circle"+Object(l.a)(n),o&&"circleDisableShrink"]};return Object(a.a)(r,d.b,e)})(b),T={},L={},z={};if("determinate"===E){const t=2*Math.PI*((44-g)/2);T.strokeDasharray=t.toFixed(3),z["aria-valuenow"]=Math.round($),T.strokeDashoffset=((100-$)/100*t).toFixed(3)+"px",L.transform="rotate(-90deg)"}return Object(p.jsx)(S,Object(o.a)({className:Object(s.a)(N.root,r),style:Object(o.a)({width:m,height:m},L,f),ownerState:b,ref:e,role:"progressbar"},z,y,{children:Object(p.jsx)(v,{className:N.svg,ownerState:b,viewBox:"22 22 44 44",children:Object(p.jsx)(C,{className:N.circle,style:T,ownerState:b,cx:44,cy:44,r:(44-g)/2,fill:"none",strokeWidth:g})})}))}));e.a=N},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(4),a=n(18),c=n(1029),l=n(3),u=n(19),h=n(7),d=n(43),p=n(6),_=n(740),m=n(411),f=n(209),g=n(2);const $=["onEnter","onExited"],E=["action","anchorOrigin","autoHideDuration","children","className","ClickAwayListenerProps","ContentProps","disableWindowBlurListener","message","onBlur","onClose","onFocus","onMouseEnter","onMouseLeave","open","resumeHideDuration","TransitionComponent","transitionDuration","TransitionProps"],y=Object(l.a)("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[`anchorOrigin${Object(p.a)(n.anchorOrigin.vertical)}${Object(p.a)(n.anchorOrigin.horizontal)}`]]}})(({theme:t,ownerState:e})=>Object(o.a)({zIndex:(t.vars||t).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center"},"top"===e.anchorOrigin.vertical?{top:8}:{bottom:8},"left"===e.anchorOrigin.horizontal&&{justifyContent:"flex-start"},"right"===e.anchorOrigin.horizontal&&{justifyContent:"flex-end"},{[t.breakpoints.up("sm")]:Object(o.a)({},"top"===e.anchorOrigin.vertical?{top:24}:{bottom:24},"center"===e.anchorOrigin.horizontal&&{left:"50%",right:"auto",transform:"translateX(-50%)"},"left"===e.anchorOrigin.horizontal&&{left:24,right:"auto"},"right"===e.anchorOrigin.horizontal&&{right:24,left:"auto"})})),b=r.forwardRef((function(t,e){const n=Object(h.a)({props:t,name:"MuiSnackbar"}),l=Object(u.default)(),b={enter:l.transitions.duration.enteringScreen,exit:l.transitions.duration.leavingScreen},{action:S,anchorOrigin:{vertical:v,horizontal:C}={vertical:"bottom",horizontal:"left"},autoHideDuration:N=null,children:T,className:L,ClickAwayListenerProps:z,ContentProps:w,disableWindowBlurListener:O=!1,message:R,onBlur:A,onClose:x,onFocus:I,onMouseEnter:U,onMouseLeave:D,open:P,resumeHideDuration:M,TransitionComponent:k=_.a,transitionDuration:j=b,TransitionProps:{onEnter:G,onExited:q}={}}=n,F=Object(i.a)(n.TransitionProps,$),B=Object(i.a)(n,E),W=Object(o.a)({},n,{anchorOrigin:{vertical:v,horizontal:C}}),H=(t=>{const{classes:e,anchorOrigin:n}=t,i={root:["root",`anchorOrigin${Object(p.a)(n.vertical)}${Object(p.a)(n.horizontal)}`]};return Object(a.a)(i,f.b,e)})(W),V=r.useRef(),[K,X]=r.useState(!0),J=Object(d.a)((...t)=>{x&&x(...t)}),Y=Object(d.a)(t=>{x&&null!=t&&(clearTimeout(V.current),V.current=setTimeout(()=>{J(null,"timeout")},t))});r.useEffect(()=>(P&&Y(N),()=>{clearTimeout(V.current)}),[P,N,Y]);const Q=()=>{clearTimeout(V.current)},Z=r.useCallback(()=>{null!=N&&Y(null!=M?M:.5*N)},[N,M,Y]);return r.useEffect(()=>{if(!O&&P)return window.addEventListener("focus",Z),window.addEventListener("blur",Q),()=>{window.removeEventListener("focus",Z),window.removeEventListener("blur",Q)}},[O,Z,P]),r.useEffect(()=>{if(P)return document.addEventListener("keydown",t),()=>{document.removeEventListener("keydown",t)};function t(t){t.defaultPrevented||"Escape"!==t.key&&"Esc"!==t.key||x&&x(t,"escapeKeyDown")}},[K,P,x]),!P&&K?null:Object(g.jsx)(c.a,Object(o.a)({onClickAway:t=>{x&&x(t,"clickaway")}},z,{children:Object(g.jsx)(y,Object(o.a)({className:Object(s.a)(H.root,L),onBlur:t=>{A&&A(t),Z()},onFocus:t=>{I&&I(t),Q()},onMouseEnter:t=>{U&&U(t),Q()},onMouseLeave:t=>{D&&D(t),Z()},ownerState:W,ref:e,role:"presentation"},B,{children:Object(g.jsx)(k,Object(o.a)({appear:!0,in:P,timeout:j,direction:"top"===v?"down":"up",onEnter:(t,e)=>{X(!1),G&&G(t,e)},onExited:t=>{X(!0),q&&q(t)}},F,{children:T||Object(g.jsx)(m.a,Object(o.a)({message:R,action:S},w))}))}))}))}));e.a=b},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(4),a=n(18),c=n(28),l=n(6),u=n(223),h=n(7),d=n(3),p=n(45),_=n(2);const m=["className","color","edge","size","sx"],f=Object(d.a)("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.edge&&e["edge"+Object(l.a)(n.edge)],e["size"+Object(l.a)(n.size)]]}})(({ownerState:t})=>Object(o.a)({display:"inline-flex",width:58,height:38,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"}},"start"===t.edge&&{marginLeft:-8},"end"===t.edge&&{marginRight:-8},"small"===t.size&&{width:40,height:24,padding:7,["& ."+p.a.thumb]:{width:16,height:16},["& ."+p.a.switchBase]:{padding:4,["&."+p.a.checked]:{transform:"translateX(16px)"}}})),g=Object(d.a)(u.a,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.switchBase,{["& ."+p.a.input]:e.input},"default"!==n.color&&e["color"+Object(l.a)(n.color)]]}})(({theme:t})=>({position:"absolute",top:0,left:0,zIndex:1,color:t.vars?t.vars.palette.Switch.defaultColor:""+("light"===t.palette.mode?t.palette.common.white:t.palette.grey[300]),transition:t.transitions.create(["left","transform"],{duration:t.transitions.duration.shortest}),["&."+p.a.checked]:{transform:"translateX(20px)"},["&."+p.a.disabled]:{color:t.vars?t.vars.palette.Switch.defaultDisabledColor:""+("light"===t.palette.mode?t.palette.grey[100]:t.palette.grey[600])},[`&.${p.a.checked} + .${p.a.track}`]:{opacity:.5},[`&.${p.a.disabled} + .${p.a.track}`]:{opacity:t.vars?t.vars.opacity.switchTrackDisabled:""+("light"===t.palette.mode?.12:.2)},["& ."+p.a.input]:{left:"-100%",width:"300%"}}),({theme:t,ownerState:e})=>Object(o.a)({"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.activeChannel} / ${t.vars.palette.action.hoverOpacity})`:Object(c.a)(t.palette.action.active,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},"default"!==e.color&&{["&."+p.a.checked]:{color:(t.vars||t).palette[e.color].main,"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Object(c.a)(t.palette[e.color].main,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&."+p.a.disabled]:{color:t.vars?t.vars.palette.Switch[e.color+"DisabledColor"]:""+("light"===t.palette.mode?Object(c.j)(t.palette[e.color].main,.62):Object(c.c)(t.palette[e.color].main,.55))}},[`&.${p.a.checked} + .${p.a.track}`]:{backgroundColor:(t.vars||t).palette[e.color].main}})),$=Object(d.a)("span",{name:"MuiSwitch",slot:"Track",overridesResolver:(t,e)=>e.track})(({theme:t})=>({height:"100%",width:"100%",borderRadius:7,zIndex:-1,transition:t.transitions.create(["opacity","background-color"],{duration:t.transitions.duration.shortest}),backgroundColor:t.vars?t.vars.palette.common.onBackground:""+("light"===t.palette.mode?t.palette.common.black:t.palette.common.white),opacity:t.vars?t.vars.opacity.switchTrack:""+("light"===t.palette.mode?.38:.3)})),E=Object(d.a)("span",{name:"MuiSwitch",slot:"Thumb",overridesResolver:(t,e)=>e.thumb})(({theme:t})=>({boxShadow:(t.vars||t).shadows[1],backgroundColor:"currentColor",width:20,height:20,borderRadius:"50%"})),y=r.forwardRef((function(t,e){const n=Object(h.a)({props:t,name:"MuiSwitch"}),{className:r,color:c="primary",edge:u=!1,size:d="medium",sx:y}=n,b=Object(i.a)(n,m),S=Object(o.a)({},n,{color:c,edge:u,size:d}),v=(t=>{const{classes:e,edge:n,size:i,color:r,checked:s,disabled:c}=t,u={root:["root",n&&"edge"+Object(l.a)(n),"size"+Object(l.a)(i)],switchBase:["switchBase","color"+Object(l.a)(r),s&&"checked",c&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},h=Object(a.a)(u,p.b,e);return Object(o.a)({},e,h)})(S),C=Object(_.jsx)(E,{className:v.thumb,ownerState:S});return Object(_.jsxs)(f,{className:Object(s.a)(v.root,r),sx:y,ownerState:S,children:[Object(_.jsx)(g,Object(o.a)({type:"checkbox",icon:C,checkedIcon:C,ref:e,ownerState:S},b,{classes:Object(o.a)({},v,{root:v.switchBase})})),Object(_.jsx)($,{className:v.track,ownerState:S})]})}));e.a=y},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(4),a=n(18),c=n(348),l=n(7),u=n(3),h=n(211),d=n(2);const p=["className","component","padding","size","stickyHeader"],_=Object(u.a)("table",{name:"MuiTable",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.stickyHeader&&e.stickyHeader]}})(({theme:t,ownerState:e})=>Object(o.a)({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Object(o.a)({},t.typography.body2,{padding:t.spacing(2),color:(t.vars||t).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},e.stickyHeader&&{borderCollapse:"separate"})),m="table",f=r.forwardRef((function(t,e){const n=Object(l.a)({props:t,name:"MuiTable"}),{className:u,component:f=m,padding:g="normal",size:$="medium",stickyHeader:E=!1}=n,y=Object(i.a)(n,p),b=Object(o.a)({},n,{component:f,padding:g,size:$,stickyHeader:E}),S=(t=>{const{classes:e,stickyHeader:n}=t,i={root:["root",n&&"stickyHeader"]};return Object(a.a)(i,h.b,e)})(b),v=r.useMemo(()=>({padding:g,size:$,stickyHeader:E}),[g,$,E]);return Object(d.jsx)(c.a.Provider,{value:v,children:Object(d.jsx)(_,Object(o.a)({as:f,role:f===m?null:"table",ref:e,className:Object(s.a)(S.root,u),ownerState:b},y))})}));e.a=f},function(t,e,n){"use strict";var i=n(1),o=n(5),r=n(0),s=n(4),a=n(18),c=n(107),l=n(7),u=n(3),h=n(212),d=n(2);const p=["className","component"],_=Object(u.a)("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"table-row-group"}),m={variant:"body"},f="tbody",g=r.forwardRef((function(t,e){const n=Object(l.a)({props:t,name:"MuiTableBody"}),{className:r,component:u=f}=n,g=Object(o.a)(n,p),$=Object(i.a)({},n,{component:u}),E=(t=>{const{classes:e}=t;return Object(a.a)({root:["root"]},h.b,e)})($);return Object(d.jsx)(c.a.Provider,{value:m,children:Object(d.jsx)(_,Object(i.a)({className:Object(s.a)(E.root,r),as:u,ref:e,role:u===f?null:"rowgroup",ownerState:$},g))})}));e.a=g},function(t,e,n){"use strict";var i=n(1),o=n(5),r=n(0),s=n(4),a=n(18),c=n(107),l=n(7),u=n(3),h=n(213),d=n(2);const p=["className","component"],_=Object(u.a)("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(t,e)=>e.root})({display:"table-header-group"}),m={variant:"head"},f="thead",g=r.forwardRef((function(t,e){const n=Object(l.a)({props:t,name:"MuiTableHead"}),{className:r,component:u=f}=n,g=Object(o.a)(n,p),$=Object(i.a)({},n,{component:u}),E=(t=>{const{classes:e}=t;return Object(a.a)({root:["root"]},h.b,e)})($);return Object(d.jsx)(c.a.Provider,{value:m,children:Object(d.jsx)(_,Object(i.a)({as:u,className:Object(s.a)(E.root,r),ref:e,role:u===f?null:"rowgroup",ownerState:$},g))})}));e.a=g},function(t,e,n){"use strict";var i=n(1),o=n(5),r=n(0),s=n(4),a=n(18),c=n(28),l=n(107),u=n(7),h=n(3),d=n(140),p=n(2);const _=["className","component","hover","selected"],m=Object(h.a)("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.head&&e.head,n.footer&&e.footer]}})(({theme:t})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${d.a.hover}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},["&."+d.a.selected]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Object(c.a)(t.palette.primary.main,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Object(c.a)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)}}})),f="tr",g=r.forwardRef((function(t,e){const n=Object(u.a)({props:t,name:"MuiTableRow"}),{className:c,component:h=f,hover:g=!1,selected:$=!1}=n,E=Object(o.a)(n,_),y=r.useContext(l.a),b=Object(i.a)({},n,{component:h,hover:g,selected:$,head:y&&"head"===y.variant,footer:y&&"footer"===y.variant}),S=(t=>{const{classes:e,selected:n,hover:i,head:o,footer:r}=t,s={root:["root",n&&"selected",i&&"hover",o&&"head",r&&"footer"]};return Object(a.a)(s,d.b,e)})(b);return Object(p.jsx)(m,Object(i.a)({as:h,ref:e,className:Object(s.a)(S.root,c),role:h===f?null:"row",ownerState:b},E))}));e.a=g},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(4),a=n(18),c=n(28),l=n(6),u=n(348),h=n(107),d=n(7),p=n(3),_=n(165),m=n(2);const f=["align","className","component","padding","scope","size","sortDirection","variant"],g=Object(p.a)("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e[n.variant],e["size"+Object(l.a)(n.size)],"normal"!==n.padding&&e["padding"+Object(l.a)(n.padding)],"inherit"!==n.align&&e["align"+Object(l.a)(n.align)],n.stickyHeader&&e.stickyHeader]}})(({theme:t,ownerState:e})=>Object(o.a)({},t.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:t.vars?"1px solid "+t.vars.palette.TableCell.border:"1px solid\n "+("light"===t.palette.mode?Object(c.j)(Object(c.a)(t.palette.divider,1),.88):Object(c.c)(Object(c.a)(t.palette.divider,1),.68)),textAlign:"left",padding:16},"head"===e.variant&&{color:(t.vars||t).palette.text.primary,lineHeight:t.typography.pxToRem(24),fontWeight:t.typography.fontWeightMedium},"body"===e.variant&&{color:(t.vars||t).palette.text.primary},"footer"===e.variant&&{color:(t.vars||t).palette.text.secondary,lineHeight:t.typography.pxToRem(21),fontSize:t.typography.pxToRem(12)},"small"===e.size&&{padding:"6px 16px",["&."+_.a.paddingCheckbox]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},"checkbox"===e.padding&&{width:48,padding:"0 0 0 4px"},"none"===e.padding&&{padding:0},"left"===e.align&&{textAlign:"left"},"center"===e.align&&{textAlign:"center"},"right"===e.align&&{textAlign:"right",flexDirection:"row-reverse"},"justify"===e.align&&{textAlign:"justify"},e.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(t.vars||t).palette.background.default})),$=r.forwardRef((function(t,e){const n=Object(d.a)({props:t,name:"MuiTableCell"}),{align:c="inherit",className:p,component:$,padding:E,scope:y,size:b,sortDirection:S,variant:v}=n,C=Object(i.a)(n,f),N=r.useContext(u.a),T=r.useContext(h.a),L=T&&"head"===T.variant;let z;z=$||(L?"th":"td");let w=y;!w&&L&&(w="col");const O=v||T&&T.variant,R=Object(o.a)({},n,{align:c,component:z,padding:E||(N&&N.padding?N.padding:"normal"),size:b||(N&&N.size?N.size:"medium"),sortDirection:S,stickyHeader:"head"===O&&N&&N.stickyHeader,variant:O}),A=(t=>{const{classes:e,variant:n,align:i,padding:o,size:r,stickyHeader:s}=t,c={root:["root",n,s&&"stickyHeader","inherit"!==i&&"align"+Object(l.a)(i),"normal"!==o&&"padding"+Object(l.a)(o),"size"+Object(l.a)(r)]};return Object(a.a)(c,_.b,e)})(R);let x=null;return S&&(x="asc"===S?"ascending":"descending"),Object(m.jsx)(g,Object(o.a)({as:z,ref:e,className:Object(s.a)(A.root,p),"aria-sort":x,scope:w,ownerState:R},C))}));e.a=$},function(t,e,n){"use strict";var i=n(1),o=n(5),r=n(0),s=n(4),a=n(18),c=n(7),l=n(3),u=n(214),h=n(2);const d=["className","component"],p=Object(l.a)("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(t,e)=>e.root})({width:"100%",overflowX:"auto"}),_=r.forwardRef((function(t,e){const n=Object(c.a)({props:t,name:"MuiTableContainer"}),{className:r,component:l="div"}=n,_=Object(o.a)(n,d),m=Object(i.a)({},n,{component:l}),f=(t=>{const{classes:e}=t;return Object(a.a)({root:["root"]},u.b,e)})(m);return Object(h.jsx)(p,Object(i.a)({ref:e,as:l,className:Object(s.a)(f.root,r),ownerState:m},_))}));e.a=_},function(t,e,n){"use strict";var i,o,r=n(5),s=n(1),a=n(0),c=n(4),l=n(18),u=n(272),h=n(273),d=n(93),p=n(19),_=n(7),m=n(3),f=n(166),g=n(2);const $=["className","direction","orientation","disabled"],E=Object(m.a)(d.a,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.orientation&&e[n.orientation]]}})(({ownerState:t})=>Object(s.a)({width:40,flexShrink:0,opacity:.8,["&."+f.a.disabled]:{opacity:0}},"vertical"===t.orientation&&{width:"100%",height:40,"& svg":{transform:`rotate(${t.isRtl?-90:90}deg)`}})),y=a.forwardRef((function(t,e){const n=Object(_.a)({props:t,name:"MuiTabScrollButton"}),{className:a,direction:d}=n,m=Object(r.a)(n,$),y="rtl"===Object(p.default)().direction,b=Object(s.a)({isRtl:y},n),S=(t=>{const{classes:e,orientation:n,disabled:i}=t,o={root:["root",n,i&&"disabled"]};return Object(l.a)(o,f.b,e)})(b);return Object(g.jsx)(E,Object(s.a)({component:"div",className:Object(c.a)(S.root,a),ref:e,role:null,ownerState:b,tabIndex:null},m,{children:"left"===d?i||(i=Object(g.jsx)(u.a,{fontSize:"small"})):o||(o=Object(g.jsx)(h.a,{fontSize:"small"}))}))}));e.a=y},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(4),a=n(18),c=n(93),l=n(6),u=n(7),h=n(3),d=n(83),p=n(2);const _=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],m=Object(h.a)(c.a,{name:"MuiTab",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.label&&n.icon&&e.labelIcon,e["textColor"+Object(l.a)(n.textColor)],n.fullWidth&&e.fullWidth,n.wrapped&&e.wrapped]}})(({theme:t,ownerState:e})=>Object(o.a)({},t.typography.button,{maxWidth:360,minWidth:90,position:"relative",minHeight:48,flexShrink:0,padding:"12px 16px",overflow:"hidden",whiteSpace:"normal",textAlign:"center"},e.label&&{flexDirection:"top"===e.iconPosition||"bottom"===e.iconPosition?"column":"row"},{lineHeight:1.25},e.icon&&e.label&&{minHeight:72,paddingTop:9,paddingBottom:9,["& > ."+d.a.iconWrapper]:Object(o.a)({},"top"===e.iconPosition&&{marginBottom:6},"bottom"===e.iconPosition&&{marginTop:6},"start"===e.iconPosition&&{marginRight:t.spacing(1)},"end"===e.iconPosition&&{marginLeft:t.spacing(1)})},"inherit"===e.textColor&&{color:"inherit",opacity:.6,["&."+d.a.selected]:{opacity:1},["&."+d.a.disabled]:{opacity:(t.vars||t).palette.action.disabledOpacity}},"primary"===e.textColor&&{color:(t.vars||t).palette.text.secondary,["&."+d.a.selected]:{color:(t.vars||t).palette.primary.main},["&."+d.a.disabled]:{color:(t.vars||t).palette.text.disabled}},"secondary"===e.textColor&&{color:(t.vars||t).palette.text.secondary,["&."+d.a.selected]:{color:(t.vars||t).palette.secondary.main},["&."+d.a.disabled]:{color:(t.vars||t).palette.text.disabled}},e.fullWidth&&{flexShrink:1,flexGrow:1,flexBasis:0,maxWidth:"none"},e.wrapped&&{fontSize:t.typography.pxToRem(12)})),f=r.forwardRef((function(t,e){const n=Object(u.a)({props:t,name:"MuiTab"}),{className:c,disabled:h=!1,disableFocusRipple:f=!1,fullWidth:g,icon:$,iconPosition:E="top",indicator:y,label:b,onChange:S,onClick:v,onFocus:C,selected:N,selectionFollowsFocus:T,textColor:L="inherit",value:z,wrapped:w=!1}=n,O=Object(i.a)(n,_),R=Object(o.a)({},n,{disabled:h,disableFocusRipple:f,selected:N,icon:!!$,iconPosition:E,label:!!b,fullWidth:g,textColor:L,wrapped:w}),A=(t=>{const{classes:e,textColor:n,fullWidth:i,wrapped:o,icon:r,label:s,selected:c,disabled:u}=t,h={root:["root",r&&s&&"labelIcon","textColor"+Object(l.a)(n),i&&"fullWidth",o&&"wrapped",c&&"selected",u&&"disabled"],iconWrapper:["iconWrapper"]};return Object(a.a)(h,d.b,e)})(R),x=$&&b&&r.isValidElement($)?r.cloneElement($,{className:Object(s.a)(A.iconWrapper,$.props.className)}):$;return Object(p.jsxs)(m,Object(o.a)({focusRipple:!f,className:Object(s.a)(A.root,c),ref:e,role:"tab","aria-selected":N,disabled:h,onClick:t=>{!N&&S&&S(t,z),v&&v(t)},onFocus:t=>{T&&!N&&S&&S(t,z),C&&C(t)},ownerState:R,tabIndex:N?0:-1},O,{children:["top"===E||"start"===E?Object(p.jsxs)(r.Fragment,{children:[x,b]}):Object(p.jsxs)(r.Fragment,{children:[b,x]}),y]}))}));e.a=f},function(t,e,n){"use strict";var i=n(1),o=n(5),r=n(0),s=n(4),a=n(18),c=n(419),l=n(3),u=n(7),h=n(409),d=n(412),p=n(414),_=n(408),m=n(406),f=n(407),g=n(415),$=n(215),E=n(2);const y=["autoComplete","autoFocus","children","className","color","defaultValue","disabled","error","FormHelperTextProps","fullWidth","helperText","id","InputLabelProps","inputProps","InputProps","inputRef","label","maxRows","minRows","multiline","name","onBlur","onChange","onFocus","placeholder","required","rows","select","SelectProps","type","value","variant"],b={standard:h.a,filled:d.a,outlined:p.a},S=Object(l.a)(m.a,{name:"MuiTextField",slot:"Root",overridesResolver:(t,e)=>e.root})({}),v=r.forwardRef((function(t,e){const n=Object(u.a)({props:t,name:"MuiTextField"}),{autoComplete:r,autoFocus:l=!1,children:h,className:d,color:p="primary",defaultValue:m,disabled:v=!1,error:C=!1,FormHelperTextProps:N,fullWidth:T=!1,helperText:L,id:z,InputLabelProps:w,inputProps:O,InputProps:R,inputRef:A,label:x,maxRows:I,minRows:U,multiline:D=!1,name:P,onBlur:M,onChange:k,onFocus:j,placeholder:G,required:q=!1,rows:F,select:B=!1,SelectProps:W,type:H,value:V,variant:K="outlined"}=n,X=Object(o.a)(n,y),J=Object(i.a)({},n,{autoFocus:l,color:p,disabled:v,error:C,fullWidth:T,multiline:D,required:q,select:B,variant:K}),Y=(t=>{const{classes:e}=t;return Object(a.a)({root:["root"]},$.b,e)})(J);const Q={};"outlined"===K&&(w&&void 0!==w.shrink&&(Q.notched=w.shrink),Q.label=x),B&&(W&&W.native||(Q.id=void 0),Q["aria-describedby"]=void 0);const Z=Object(c.a)(z),tt=L&&Z?Z+"-helper-text":void 0,et=x&&Z?Z+"-label":void 0,nt=b[K],it=Object(E.jsx)(nt,Object(i.a)({"aria-describedby":tt,autoComplete:r,autoFocus:l,defaultValue:m,fullWidth:T,multiline:D,name:P,rows:F,maxRows:I,minRows:U,type:H,value:V,id:Z,inputRef:A,onBlur:M,onChange:k,onFocus:j,placeholder:G,inputProps:O},Q,R));return Object(E.jsxs)(S,Object(i.a)({className:Object(s.a)(Y.root,d),disabled:v,error:C,fullWidth:T,ref:e,required:q,color:p,variant:K,ownerState:J},X,{children:[null!=x&&""!==x&&Object(E.jsx)(_.a,Object(i.a)({htmlFor:Z,id:et},w,{children:x})),B?Object(E.jsx)(g.a,Object(i.a)({"aria-describedby":tt,id:Z,labelId:et,value:V,input:it},W,{children:h})):it,L&&Object(E.jsx)(f.a,Object(i.a)({id:tt},N,{children:L}))]}))}));e.a=v},function(t,e,n){"use strict";n.r(e);var i=n(667);n.d(e,"default",(function(){return i.a}))},function(t,e,n){"use strict";n(0);var i=n(1032),o=n(57),r=n(117),s=n(2);function a(t){const e=Object(r.a)();return Object(s.jsx)(o.c.Provider,{value:"object"==typeof e?e:{},children:t.children})}e.a=function(t){const{children:e,theme:n}=t;return Object(s.jsx)(i.a,{theme:n,children:Object(s.jsx)(a,{children:e})})}},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(4),a=n(18),c=n(28),l=n(93),u=n(6),h=n(7),d=n(3),p=n(141),_=n(2);const m=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],f=Object(d.a)(l.a,{name:"MuiToggleButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,e["size"+Object(u.a)(n.size)]]}})(({theme:t,ownerState:e})=>{let n,i="standard"===e.color?t.palette.text.primary:t.palette[e.color].main;return t.vars&&(i="standard"===e.color?t.vars.palette.text.primary:t.vars.palette[e.color].main,n="standard"===e.color?t.vars.palette.text.primaryChannel:t.vars.palette[e.color].mainChannel),Object(o.a)({},t.typography.button,{borderRadius:(t.vars||t).shape.borderRadius,padding:11,border:"1px solid "+(t.vars||t).palette.divider,color:(t.vars||t).palette.action.active},e.fullWidth&&{width:"100%"},{["&."+p.a.disabled]:{color:(t.vars||t).palette.action.disabled,border:"1px solid "+(t.vars||t).palette.action.disabledBackground},"&:hover":{textDecoration:"none",backgroundColor:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / ${t.vars.palette.action.hoverOpacity})`:Object(c.a)(t.palette.text.primary,t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},["&."+p.a.selected]:{color:i,backgroundColor:t.vars?`rgba(${n} / ${t.vars.palette.action.selectedOpacity})`:Object(c.a)(i,t.palette.action.selectedOpacity),"&:hover":{backgroundColor:t.vars?`rgba(${n} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Object(c.a)(i,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${n} / ${t.vars.palette.action.selectedOpacity})`:Object(c.a)(i,t.palette.action.selectedOpacity)}}}},"small"===e.size&&{padding:7,fontSize:t.typography.pxToRem(13)},"large"===e.size&&{padding:15,fontSize:t.typography.pxToRem(15)})}),g=r.forwardRef((function(t,e){const n=Object(h.a)({props:t,name:"MuiToggleButton"}),{children:r,className:c,color:l="standard",disabled:d=!1,disableFocusRipple:g=!1,fullWidth:$=!1,onChange:E,onClick:y,selected:b,size:S="medium",value:v}=n,C=Object(i.a)(n,m),N=Object(o.a)({},n,{color:l,disabled:d,disableFocusRipple:g,fullWidth:$,size:S}),T=(t=>{const{classes:e,fullWidth:n,selected:i,disabled:o,size:r,color:s}=t,c={root:["root",i&&"selected",o&&"disabled",n&&"fullWidth","size"+Object(u.a)(r),s]};return Object(a.a)(c,p.b,e)})(N);return Object(_.jsx)(f,Object(o.a)({className:Object(s.a)(T.root,c),disabled:d,focusRipple:!g,ref:e,onClick:t=>{y&&(y(t,v),t.defaultPrevented)||E&&E(t,v)},onChange:E,value:v,ownerState:N,"aria-pressed":b},C,{children:r}))}));e.a=g},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(4),a=n(18),c=n(7),l=n(3),u=n(216),h=n(2);const d=["className","component","disableGutters","variant"],p=Object(l.a)("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,!n.disableGutters&&e.gutters,e[n.variant]]}})(({theme:t,ownerState:e})=>Object(o.a)({position:"relative",display:"flex",alignItems:"center"},!e.disableGutters&&{paddingLeft:t.spacing(2),paddingRight:t.spacing(2),[t.breakpoints.up("sm")]:{paddingLeft:t.spacing(3),paddingRight:t.spacing(3)}},"dense"===e.variant&&{minHeight:48}),({theme:t,ownerState:e})=>"regular"===e.variant&&t.mixins.toolbar),_=r.forwardRef((function(t,e){const n=Object(c.a)({props:t,name:"MuiToolbar"}),{className:r,component:l="div",disableGutters:_=!1,variant:m="regular"}=n,f=Object(i.a)(n,d),g=Object(o.a)({},n,{component:l,disableGutters:_,variant:m}),$=(t=>{const{classes:e,disableGutters:n,variant:i}=t,o={root:["root",!n&&"gutters",i]};return Object(a.a)(o,u.b,e)})(g);return Object(h.jsx)(p,Object(o.a)({as:l,className:Object(s.a)($.root,r),ref:e,ownerState:g},f))}));e.a=_},function(t,e,n){"use strict";var i=n(89),o=n(103),r=n(33).OrderedMap;t.exports=function(t){return t.first()instanceof i?function(t){var e,n={};return r(t.withMutations((function(t){t.forEach((function(i,r){var s=i.getKey(),a=i.getNextSiblingKey(),c=i.getPrevSiblingKey(),l=i.getChildKeys(),u=i.getParentKey(),h=o();(n[s]=h,a)&&(t.get(a)?t.setIn([a,"prevSibling"],h):t.setIn([s,"nextSibling"],null));c&&(t.get(c)?t.setIn([c,"nextSibling"],h):t.setIn([s,"prevSibling"],null));if(u&&t.get(u)){var d=t.get(u).getChildKeys();t.setIn([u,"children"],d.set(d.indexOf(i.getKey()),h))}else t.setIn([s,"parent"],null),e&&(t.setIn([e.getKey(),"nextSibling"],h),t.setIn([s,"prevSibling"],n[e.getKey()])),e=t.get(s);l.forEach((function(e){t.get(e)?t.setIn([e,"parent"],h):t.setIn([s,"children"],i.getChildKeys().filter((function(t){return t!==e})))}))}))})).toArray().map((function(t){return[n[t.getKey()],t.set("key",n[t.getKey()])]})))}(t):function(t){return r(t.toArray().map((function(t){var e=o();return[e,t.set("key",e)]})))}(t)}},function(t,e,n){"use strict";var i=n(88),o=n(256),r=n(34);function s(t,e,n){var s=e.getCharacterList(),a=n>0?s.get(n-1):void 0,c=n=n&&(i={start:t,end:e})})),"object"!=typeof i&&r(!1),i}(s,u,n),p=d.start,_=d.end;p<_;)h=s.get(p),s=s.set(p,i.applyEntity(h,null)),p++;return e.set("characterList",s)}return e}t.exports=function(t,e){var n=t.getBlockMap(),i=t.getEntityMap(),o={},r=e.getStartKey(),a=e.getStartOffset(),c=n.get(r),l=s(i,c,a);l!==c&&(o[r]=l);var u=e.getEndKey(),h=e.getEndOffset(),d=n.get(u);r===u&&(d=l);var p=s(i,d,h);return p!==d&&(o[u]=p),Object.keys(o).length?t.merge({blockMap:n.merge(o),selectionAfter:e}):t.set("selectionAfter",e)}},function(t,e,n){"use strict";t.exports=function(t,e,n){var i=t;if(n===i.count())e.forEach((function(t){i=i.push(t)}));else if(0===n)e.reverse().forEach((function(t){i=i.unshift(t)}));else{var o=i.slice(0,n),r=i.slice(n);i=o.concat(e,r).toList()}return i}},function(t,e,n){"use strict";var i=n(33).Map;t.exports=function(t,e,n){var o=e.getStartKey(),r=e.getEndKey(),s=t.getBlockMap(),a=s.toSeq().skipUntil((function(t,e){return e===o})).takeUntil((function(t,e){return e===r})).concat(i([[r,s.get(r)]])).map(n);return t.merge({blockMap:s.merge(a),selectionBefore:e,selectionAfter:e})}},function(t,e,n){"use strict";var i=n(89);t.exports=function(t,e){if(!(t instanceof i))return null;var n=t.getNextSiblingKey();if(n)return n;var o=t.getParentKey();if(!o)return null;for(var r=e.get(o);r&&!r.getNextSiblingKey();){var s=r.getParentKey();r=s?e.get(s):null}return r?r.getNextSiblingKey():null}},function(t,e,n){"use strict";t.exports=function(t){return Object.keys(t).map((function(e){return t[e]}))}},function(t,e,n){"use strict";var i=function(t){var e,n;function i(){return t.apply(this,arguments)||this}n=t,(e=i).prototype=Object.create(n.prototype),e.prototype.constructor=e,e.__proto__=n;var o=i.prototype;return o.getType=function(){return this.get("type")},o.getMutability=function(){return this.get("mutability")},o.getData=function(){return this.get("data")},i}((0,n(33).Record)({type:"TOKEN",mutability:"IMMUTABLE",data:Object}));t.exports=i},function(t,e,n){"use strict";var i=new RegExp("\r","g");t.exports=function(t){return t.replace(i,"")}},function(t,e,n){"use strict";t.exports={BOLD:{fontWeight:"bold"},CODE:{fontFamily:"monospace",wordWrap:"break-word"},ITALIC:{fontStyle:"italic"},STRIKETHROUGH:{textDecoration:"line-through"},UNDERLINE:{textDecoration:"underline"}}},function(t,e,n){"use strict";var i=n(160);t.exports=function t(e){if(i(e)){var n=e,o=n.getAttribute("data-offset-key");if(o)return o;for(var r=0;r0&&(n=r.childNodes.length));if(0===n){var h=null;if(null!=l)h=l;else{var d=function(t){for(;t.firstChild&&(a(t.firstChild)&&"true"===t.firstChild.getAttribute("data-blocks")||o(t.firstChild));)t=t.firstChild;return t}(r);h=c(o(d))}return{key:h,offset:0}}var p=r.childNodes[n-1],_=null,m=null;if(o(p)){var f=function(t){for(;t.lastChild&&(a(t.lastChild)&&"true"===t.lastChild.getAttribute("data-blocks")||o(t.lastChild));)t=t.lastChild;return t}(p);_=c(o(f)),m=u(f)}else _=c(l),m=u(p);return{key:_,offset:m}}function u(t){var e=t.textContent;return"\n"===e?0:e.length}t.exports=function(t,e,n,o,s,a){var u=n.nodeType===Node.TEXT_NODE,h=s.nodeType===Node.TEXT_NODE;if(u&&h)return{selectionState:r(t,c(i(n)),o,c(i(s)),a),needsRecovery:!1};var d=null,p=null,_=!0;return u?(d={key:c(i(n)),offset:o},p=l(e,s,a)):h?(p={key:c(i(s)),offset:a},d=l(e,n,o)):(d=l(e,n,o),p=l(e,s,a),n===s&&o===a&&(_=!!n.firstChild&&"BR"!==n.firstChild.nodeName)),{selectionState:r(t,d.key,d.offset,p.key,p.offset),needsRecovery:_}}},function(t,e,n){"use strict";var i=n(112),o=n(70);t.exports=function(t,e,n,r,s){var a=o(t.getSelection());if(!e||!r)return a;var c=i.decode(e),l=c.blockKey,u=t.getBlockTree(l),h=u&&u.getIn([c.decoratorKey,"leaves",c.leafKey]),d=i.decode(r),p=d.blockKey,_=t.getBlockTree(p),m=_&&_.getIn([d.decoratorKey,"leaves",d.leafKey]);if(!h||!m)return a;var f=h.get("start"),g=m.get("start"),$=h?f+n:null,E=m?g+s:null;if(a.getAnchorKey()===l&&a.getAnchorOffset()===$&&a.getFocusKey()===p&&a.getFocusOffset()===E)return a;var y=!1;if(l===p){var b=h.get("end"),S=m.get("end");y=g===f&&S===b?s0&&window.scrollTo(r.x,r.y+i+10)}else{E(n)||$(!1),(i=n.offsetHeight+n.offsetTop-(o.offsetTop+o.offsetHeight+r.y))>0&&u.setTop(o,u.getTop(o)+i+10)}}}}},S._renderChildren=function(){var t=this,e=this.props.block,n=e.getKey(),i=e.getText(),r=this.props.tree.size-1,s=b(this.props.selection,n);return this.props.tree.map((function(u,h){var _=u.get("leaves");if(0===_.size)return null;var m=_.size-1,f=_.map((function(o,u){var d=c.encode(n,h,u),p=o.get("start"),_=o.get("end");return l.createElement(a,{key:d,offsetKey:d,block:e,start:p,selection:s?t.props.selection:null,forceSelection:t.props.forceSelection,text:i.slice(p,_),styleSet:e.getInlineStyleAt(p),customStyleMap:t.props.customStyleMap,customStyleFn:t.props.customStyleFn,isLast:h===r&&u===m})})).toArray(),g=u.get("decoratorKey");if(null==g)return f;if(!t.props.decorator)return f;var $=y(t.props.decorator),E=$.getComponentForKey(g);if(!E)return f;var b=$.getPropsForKey(g),S=c.encode(n,h,0),v=_.first().get("start"),C=_.last().get("end"),N=i.slice(v,C),T=e.getEntityAt(u.get("start")),L=p.getHTMLDirIfDifferent(d.getDirection(N),t.props.direction),z={contentState:t.props.contentState,decoratedText:N,dir:L,start:v,end:C,blockKey:n,entityKey:T,offsetKey:S};return l.createElement(E,o({},b,z,{key:S}),f)})).toArray()},S.render=function(){var t=this,e=this.props,n=e.direction,i=e.offsetKey,o=_({"public/DraftStyleDefault/block":!0,"public/DraftStyleDefault/ltr":"LTR"===n,"public/DraftStyleDefault/rtl":"RTL"===n});return l.createElement("div",{"data-offset-key":i,className:o,ref:function(e){return t._node=e}},this._renderChildren())},i}(l.Component);t.exports=S},function(t,e,n){"use strict";var i=n(917),o=n(918),r=n(696),s=new RegExp("\r\n","g"),a={"text/rtf":1,"text/html":1};function c(t){if("file"==t.kind)return t.getAsFile()}var l=function(){function t(t){this.data=t,this.types=t.types?o(t.types):[]}var e=t.prototype;return e.isRichText=function(){return!(!this.getHTML()||!this.getText())||!this.isImage()&&this.types.some((function(t){return a[t]}))},e.getText=function(){var t;return this.data.getData&&(this.types.length?-1!=this.types.indexOf("text/plain")&&(t=this.data.getData("text/plain")):t=this.data.getData("Text")),t?t.replace(s,"\n"):null},e.getHTML=function(){if(this.data.getData){if(!this.types.length)return this.data.getData("Text");if(-1!=this.types.indexOf("text/html"))return this.data.getData("text/html")}},e.isLink=function(){return this.types.some((function(t){return-1!=t.indexOf("Url")||-1!=t.indexOf("text/uri-list")||t.indexOf("text/x-moz-url")}))},e.getLink=function(){return this.data.getData?-1!=this.types.indexOf("text/x-moz-url")?this.data.getData("text/x-moz-url").split("\n")[0]:-1!=this.types.indexOf("text/uri-list")?this.data.getData("text/uri-list"):this.data.getData("url"):null},e.isImage=function(){var t=this.types.some((function(t){return-1!=t.indexOf("application/x-moz-file")}));if(t)return!0;for(var e=this.getFiles(),n=0;n0},t}();t.exports=l},function(t,e,n){"use strict";function i(t){return function(){return t}}var o=function(){};o.thatReturns=i,o.thatReturnsFalse=i(!1),o.thatReturnsTrue=i(!0),o.thatReturnsNull=i(null),o.thatReturnsThis=function(){return this},o.thatReturnsArgument=function(t){return t},t.exports=o},function(t,e,n){"use strict";(function(e){var i=n(34),o=/\.textClipping$/,r={"text/plain":!0,"text/html":!0,"text/rtf":!0};t.exports=function(t,n){var s=0,a=[];t.forEach((function(c){!function(t,n){if(!e.FileReader||t.type&&!(t.type in r))return void n("");if(""===t.type){var s="";return o.test(t.name)&&(s=t.name.replace(o,"")),void n(s)}var a=new FileReader;a.onload=function(){var t=a.result;"string"!=typeof t&&i(!1),n(t)},a.onerror=function(){n("")},a.readAsText(t)}(c,(function(e){s++,e&&a.push(e.slice(0,5e3)),s==t.length&&n(a.join("\r"))}))}))}}).call(this,n(55))},function(t,e,n){"use strict";var i=n(314);t.exports=function(t){var e=t.getSelection();return e.isCollapsed()?null:i(t.getCurrentContent(),e)}},function(t,e,n){"use strict";var i=n(35),o=n(161),r=n(397),s=n(258);t.exports=function(t){var e=s(t,(function(t){var e=t.getSelection(),n=t.getCurrentContent(),i=e.getAnchorKey(),s=e.getAnchorOffset(),a=n.getBlockForKey(i).getText()[s-1];return r(t,a?o.getUTF16Length(a,0):1)}),"backward");if(e===t.getCurrentContent())return t;var n=t.getSelection();return i.push(t,e.set("selectionBefore",n),n.isCollapsed()?"backspace-character":"remove-range")}},function(t,e,n){"use strict";var i=n(71),o=n(34);var r=i.isBrowser("Chrome")?function(t){for(var e=t.cloneRange(),n=[],i=t.endContainer;null!=i;i=i.parentNode){var r=i===t.commonAncestorContainer;r?e.setStart(t.startContainer,t.startOffset):e.setStart(e.endContainer,0);var s,a=Array.from(e.getClientRects());if(n.push(a),r)return n.reverse(),(s=[]).concat.apply(s,n);e.setEndBefore(i)}o(!1)}:function(t){return Array.from(t.getClientRects())};t.exports=r},function(t,e,n){"use strict";var i="\\s|(?![_])"+n(938).getPunctuation(),o=new RegExp("^(?:"+i+")*(?:['‘’]|(?!"+i+").)*(?:(?!"+i+").)"),r=new RegExp("(?:(?!"+i+").)(?:['‘’]|(?!"+i+").)*(?:"+i+")*$");function s(t,e){var n=e?r.exec(t):o.exec(t);return n?n[0]:t}var a={getBackward:function(t){return s(t,!0)},getForward:function(t){return s(t,!1)}};t.exports=a},function(t,e,n){"use strict";n(398);t.exports=function(t,e){var n,i=t.getSelection(),o=i.getStartKey(),r=i.getStartOffset(),s=t.getCurrentContent(),a=o;return e>s.getBlockForKey(o).getText().length-r?(a=s.getKeyAfter(o),n=0):n=r+e,i.merge({focusKey:a,focusOffset:n})}},function(t,e,n){"use strict";var i;function o(t){for(var e=1;e1&&void 0!==arguments[1]?arguments[1]:0;return Object.keys(U).some((function(n){t.classList.contains(n)&&(e=U[n])})),e},j=function(t){if(!y(t))return!1;var e=t;if(!e.href||"http:"!==e.protocol&&"https:"!==e.protocol&&"mailto:"!==e.protocol&&"tel:"!==e.protocol)return!1;try{new h(e.href);return!0}catch(t){return!1}},G=function(t){if(!v(t))return!1;var e=t;return!(!e.attributes.getNamedItem("src")||!e.attributes.getNamedItem("src").value)},q=function(t,e){if(!S(t))return e;var n=t,i=n.style.fontWeight,o=n.style.fontStyle,r=n.style.textDecoration;return e.withMutations((function(t){R.indexOf(i)>=0?t.add("BOLD"):A.indexOf(i)>=0&&t.remove("BOLD"),"italic"===o?t.add("ITALIC"):"normal"===o&&t.remove("ITALIC"),"underline"===r&&t.add("UNDERLINE"),"line-through"===r&&t.add("STRIKETHROUGH"),"none"===r&&(t.remove("UNDERLINE"),t.remove("STRIKETHROUGH"))}))},F=function(t){return"ul"===t||"ol"===t},B=function(){function t(t,e){r(this,"characterList",g()),r(this,"currentBlockType","unstyled"),r(this,"currentDepth",0),r(this,"currentEntity",null),r(this,"currentText",""),r(this,"wrapper",null),r(this,"blockConfigs",[]),r(this,"contentBlocks",[]),r(this,"entityMap",u),r(this,"blockTypeMap",void 0),r(this,"disambiguate",void 0),this.clear(),this.blockTypeMap=t,this.disambiguate=e}var e=t.prototype;return e.clear=function(){this.characterList=g(),this.blockConfigs=[],this.currentBlockType="unstyled",this.currentDepth=0,this.currentEntity=null,this.currentText="",this.entityMap=u,this.wrapper=null,this.contentBlocks=[]},e.addDOMNode=function(t){var e;return this.contentBlocks=[],this.currentDepth=0,(e=this.blockConfigs).push.apply(e,this._toBlockConfigs([t],E())),this._trimCurrentText(),""!==this.currentText&&this.blockConfigs.push(this._makeBlockConfig()),this},e.getContentBlocks=function(){return 0===this.contentBlocks.length&&(C?this._toContentBlocks(this.blockConfigs):this._toFlatContentBlocks(this.blockConfigs)),{contentBlocks:this.contentBlocks,entityMap:this.entityMap}},e._makeBlockConfig=function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=t.key||p(),n=o({key:e,type:this.currentBlockType,text:this.currentText,characterList:this.characterList,depth:this.currentDepth,parent:null,children:g(),prevSibling:null,nextSibling:null,childConfigs:[]},t);return this.characterList=g(),this.currentBlockType="unstyled",this.currentText="",n},e._toBlockConfigs=function(t,e){for(var n=[],i=0;i(n=void 0!==(i=this.characterList.reverse().findEntry((function(t){return null!==t.getEntity()})))?Math.max(n,t-i[0]):n)?(this.currentText="",this.characterList=g()):(this.currentText=this.currentText.slice(e,n),this.characterList=this.characterList.slice(e,n))},e._addTextNode=function(t,e){var n=t.textContent;""===n.trim()&&"pre"!==this.wrapper&&(n=" "),"pre"!==this.wrapper&&(n=(n=n.replace(L,"")).replace(T," ")),this._appendText(n,e)},e._addBreakNode=function(t,e){b(t)&&this._appendText("\n",e)},e._addImgNode=function(t,e){if(v(t)){var n=t,i={};I.forEach((function(t){var e=n.getAttribute(t);e&&(i[t]=e)})),this.currentEntity=this.entityMap.__create("IMAGE","IMMUTABLE",i),m("draftjs_fix_paste_for_img")?"presentation"!==n.getAttribute("role")&&this._appendText("📷",e):this._appendText("📷",e),this.currentEntity=null}},e._addAnchorNode=function(t,e,n){if(y(t)){var i=t,o={};x.forEach((function(t){var e=i.getAttribute(t);e&&(o[t]=e)})),o.url=new h(i.href).toString(),this.currentEntity=this.entityMap.__create("LINK","MUTABLE",o||{}),e.push.apply(e,this._toBlockConfigs(Array.from(t.childNodes),n)),this.currentEntity=null}},e._toContentBlocks=function(t){for(var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=t.length-1,i=0;i<=n;i++){var r=t[i];r.parent=e,r.prevSibling=i>0?t[i-1].key:null,r.nextSibling=i1&&void 0!==arguments[1]?arguments[1]:_,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l,i=e(t=t.trim().replace(N,"").replace(z," ").replace(w,"").replace(O,""));if(!i)return null;var o=P(n),r=function(t,e){return"li"===t?"ol"===e?"ordered-list-item":"unordered-list-item":null};return new B(o,r).addDOMNode(i).getContentBlocks()}},function(t,e,n){"use strict";var i=n(71),o=n(34),r=i.isBrowser("IE <= 9");t.exports=function(t){var e,n=null;return!r&&document.implementation&&document.implementation.createHTMLDocument&&((e=document.implementation.createHTMLDocument("foo")).documentElement||o(!1),e.documentElement.innerHTML=t,n=e.getElementsByTagName("body")[0]),n}},function(t,e,n){"use strict";var i=n(69),o=n(35),r=n(951),s=n(70),a={currentBlockContainsLink:function(t){var e=t.getSelection(),n=t.getCurrentContent(),i=n.getEntityMap();return n.getBlockForKey(e.getAnchorKey()).getCharacterList().slice(e.getStartOffset(),e.getEndOffset()).some((function(t){var e=t.getEntity();return!!e&&"LINK"===i.__get(e).getType()}))},getCurrentBlockType:function(t){var e=t.getSelection();return t.getCurrentContent().getBlockForKey(e.getStartKey()).getType()},getDataObjectForLinkURL:function(t){return{url:t.toString()}},handleKeyCommand:function(t,e,n){switch(e){case"bold":return a.toggleInlineStyle(t,"BOLD");case"italic":return a.toggleInlineStyle(t,"ITALIC");case"underline":return a.toggleInlineStyle(t,"UNDERLINE");case"code":return a.toggleCode(t);case"backspace":case"backspace-word":case"backspace-to-start-of-line":return a.onBackspace(t);case"delete":case"delete-word":case"delete-to-end-of-block":return a.onDelete(t);default:return null}},insertSoftNewline:function(t){var e=i.insertText(t.getCurrentContent(),t.getSelection(),"\n",t.getCurrentInlineStyle(),null),n=o.push(t,e,"insert-characters");return o.forceSelection(n,e.getSelectionAfter())},onBackspace:function(t){var e=t.getSelection();if(!e.isCollapsed()||e.getAnchorOffset()||e.getFocusOffset())return null;var n=t.getCurrentContent(),i=e.getStartKey(),r=n.getBlockBefore(i);if(r&&"atomic"===r.getType()){var s=n.getBlockMap().delete(r.getKey()),c=n.merge({blockMap:s,selectionAfter:e});if(c!==n)return o.push(t,c,"remove-range")}var l=a.tryToRemoveBlockStyle(t);return l?o.push(t,l,"change-block-type"):null},onDelete:function(t){var e=t.getSelection();if(!e.isCollapsed())return null;var n=t.getCurrentContent(),r=e.getStartKey(),s=n.getBlockForKey(r).getLength();if(e.getStartOffset()n){var o=i[n],r=V.current,s=r.getFocusOffset()+R.length+1,a=r.merge({focusOffset:s});if(H.current.atomicBlockName)!function(e,n,i){if((0,b.atomicBlockExists)(e,t.customControls)){var o=p.Modifier.removeRange(W.current.getCurrentContent(),n,"forward"),r=p.EditorState.push(W.current,o,"remove-range"),s=wt(r,e.toUpperCase(),{value:i},{selection:r.getCurrentContent().getSelectionAfter()});at(s)}}(H.current.atomicBlockName,a,o.value);else!function(t,e){var n=P.getCurrentContent().createEntity("AC_ITEM","IMMUTABLE").getLastCreatedEntityKey(),i=p.Modifier.replaceText(W.current.getCurrentContent(),t,e,W.current.getCurrentInlineStyle(),n),o=p.EditorState.push(W.current,i,"insert-characters");if(!1===H.current.insertSpaceAfter)at(o);else{var r=p.Modifier.insertText(o.getCurrentContent(),o.getSelection()," ",o.getCurrentInlineStyle());at(p.EditorState.push(o,r,"insert-characters"))}}(a,o.value)}rt()},rt=function(){et(),U(0),vt()},st=function(){return R.length<2?[]:H.current.items.filter((function(t){return t.keys.filter((function(t){return t.includes(R)})).length>0})).splice(0,X)},at=function(t){M(t)},ct=function(){lt(),t.onFocus&&t.onFocus()},lt=function(){w(!0),setTimeout((function(){var t;return null===(t=q.current)||void 0===t?void 0:t.focus()}),0)},ut=function(){t.onSave&&t.onSave(JSON.stringify((0,p.convertToRaw)(P.getCurrentContent())))},ht=function(e,n){var i=(0,b.atomicBlockExists)(e,t.customControls);if(i){var o=wt(P,i.name.toUpperCase(),n,{selection:P.getCurrentContent().getSelectionAfter()});bt(o)}},dt=function(t,e,n){var i=pt(t,n),o=i.getFocusOffset()+1,r=i.merge({focusOffset:o});e.then((function(e){var n=wt(W.current,t,e.data,{selection:r});at(n)})).catch((function(t){if(!t){var e=p.Modifier.removeRange(W.current.getCurrentContent(),r,"forward");at(p.EditorState.push(W.current,e,"remove-range"))}}))},pt=function(t,e){var n=e||t+"...",i=W.current.getCurrentContent(),o=i.createEntity("ASYNC_ATOMICBLOCK","IMMUTABLE").getLastCreatedEntityKey(),r=p.Modifier.insertText(W.current.getCurrentContent(),i.getSelectionAfter(),n,void 0,o),s=i.getSelectionAfter(),a=p.EditorState.push(W.current,r,"insert-characters");return at(a),s},_t=function(t,e,n){var i=(0,b.getSelectionInfo)(t),o=t.getCurrentContent(),r=i.linkKey,s=void 0;r&&(s=o.getEntity(r).getData());$({urlData:s,urlKey:r,toolbarPosition:n?g.toolbarPosition:void 0,anchorUrlPopover:n?document.getElementById(F+"-"+e+"-control-button-toolbar"):document.getElementById(F+"-"+e+"-control-button"),urlIsMedia:"media"===e||void 0})},mt=function(t,e){_t(e||P,"media",t)},ft=function(e,n,i,o){if("inline"===n)return Nt(e);if("block"===n)return Ct(e);switch(e){case"UNDO":M(p.EditorState.undo(P));break;case"REDO":M(p.EditorState.redo(P));break;case"LINK":!function(t){P.getSelection().isCollapsed()||_t(P,"link",t)}(o);break;case"IMAGE":mt(o);break;case"clear":!function(){if(void 0!==Q.current){var t=(0,b.clearInlineStyles)(P,Q.current),e=(0,b.getSelectionInfo)(P),n=p.EditorState.push(P,t,"change-inline-style");M(p.RichUtils.toggleBlockType(n,e.blockType))}}();break;case"save":ut();break;default:!function(e,n){if(t.customControls)for(var i=0,o=t.customControls;ie?e:X;switch(t.key){case"ArrowDown":return U(0===I&&1===e||I+1===n?0:I+1{const{ownerState:n}=t;return[{["& ."+d.a.grouped]:e.grouped},{["& ."+d.a.grouped]:e["grouped"+Object(l.a)(n.orientation)]},{["& ."+d.a.grouped]:e["grouped"+Object(l.a)(n.variant)]},{["& ."+d.a.grouped]:e[`grouped${Object(l.a)(n.variant)}${Object(l.a)(n.orientation)}`]},{["& ."+d.a.grouped]:e[`grouped${Object(l.a)(n.variant)}${Object(l.a)(n.color)}`]},e.root,e[n.variant],!0===n.disableElevation&&e.disableElevation,n.fullWidth&&e.fullWidth,"vertical"===n.orientation&&e.vertical]}})(({theme:t,ownerState:e})=>Object(o.a)({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},"contained"===e.variant&&{boxShadow:(t.vars||t).shadows[2]},e.disableElevation&&{boxShadow:"none"},e.fullWidth&&{width:"100%"},"vertical"===e.orientation&&{flexDirection:"column"},{["& ."+d.a.grouped]:Object(o.a)({minWidth:40,"&:not(:first-of-type)":Object(o.a)({},"horizontal"===e.orientation&&{borderTopLeftRadius:0,borderBottomLeftRadius:0},"vertical"===e.orientation&&{borderTopRightRadius:0,borderTopLeftRadius:0},"outlined"===e.variant&&"horizontal"===e.orientation&&{marginLeft:-1},"outlined"===e.variant&&"vertical"===e.orientation&&{marginTop:-1}),"&:not(:last-of-type)":Object(o.a)({},"horizontal"===e.orientation&&{borderTopRightRadius:0,borderBottomRightRadius:0},"vertical"===e.orientation&&{borderBottomRightRadius:0,borderBottomLeftRadius:0},"text"===e.variant&&"horizontal"===e.orientation&&{borderRight:t.vars?`1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:"1px solid "+("light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")},"text"===e.variant&&"vertical"===e.orientation&&{borderBottom:t.vars?`1px solid rgba(${t.vars.palette.common.onBackgroundChannel} / 0.23)`:"1px solid "+("light"===t.palette.mode?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)")},"text"===e.variant&&"inherit"!==e.color&&{borderColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / 0.5)`:Object(c.a)(t.palette[e.color].main,.5)},"outlined"===e.variant&&"horizontal"===e.orientation&&{borderRightColor:"transparent"},"outlined"===e.variant&&"vertical"===e.orientation&&{borderBottomColor:"transparent"},"contained"===e.variant&&"horizontal"===e.orientation&&{borderRight:"1px solid "+(t.vars||t).palette.grey[400],["&."+d.a.disabled]:{borderRight:"1px solid "+(t.vars||t).palette.action.disabled}},"contained"===e.variant&&"vertical"===e.orientation&&{borderBottom:"1px solid "+(t.vars||t).palette.grey[400],["&."+d.a.disabled]:{borderBottom:"1px solid "+(t.vars||t).palette.action.disabled}},"contained"===e.variant&&"inherit"!==e.color&&{borderColor:(t.vars||t).palette[e.color].dark},{"&:hover":Object(o.a)({},"outlined"===e.variant&&"horizontal"===e.orientation&&{borderRightColor:"currentColor"},"outlined"===e.variant&&"vertical"===e.orientation&&{borderBottomColor:"currentColor"})}),"&:hover":Object(o.a)({},"contained"===e.variant&&{boxShadow:"none"})},"contained"===e.variant&&{boxShadow:"none"})})),g=r.forwardRef((function(t,e){const n=Object(h.a)({props:t,name:"MuiButtonGroup"}),{children:c,className:u,color:g="primary",component:$="div",disabled:E=!1,disableElevation:y=!1,disableFocusRipple:b=!1,disableRipple:S=!1,fullWidth:v=!1,orientation:C="horizontal",size:N="medium",variant:T="outlined"}=n,L=Object(i.a)(n,m),z=Object(o.a)({},n,{color:g,component:$,disabled:E,disableElevation:y,disableFocusRipple:b,disableRipple:S,fullWidth:v,orientation:C,size:N,variant:T}),w=(t=>{const{classes:e,color:n,disabled:i,disableElevation:o,fullWidth:r,orientation:s,variant:c}=t,u={root:["root",c,"vertical"===s&&"vertical",r&&"fullWidth",o&&"disableElevation"],grouped:["grouped","grouped"+Object(l.a)(s),"grouped"+Object(l.a)(c),`grouped${Object(l.a)(c)}${Object(l.a)(s)}`,`grouped${Object(l.a)(c)}${Object(l.a)(n)}`,i&&"disabled"]};return Object(a.a)(u,d.b,e)})(z),O=r.useMemo(()=>({className:w.grouped,color:g,disabled:E,disableElevation:y,disableFocusRipple:b,disableRipple:S,fullWidth:v,size:N,variant:T}),[g,E,y,b,S,v,N,T,w.grouped]);return Object(_.jsx)(f,Object(o.a)({as:$,role:"group",className:Object(s.a)(w.root,u),ref:e,ownerState:z},L,{children:Object(_.jsx)(p.a.Provider,{value:O,children:c})}))}));e.a=g},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(4),a=n(18),c=n(28),l=n(3),u=n(7),h=n(93),d=n(52),p=n(21),_=n(48),m=n(92),f=n(2);const g=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected"],$=Object(l.a)(h.a,{shouldForwardProp:t=>Object(l.b)(t)||"classes"===t,name:"MuiListItemButton",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.root,n.dense&&e.dense,"flex-start"===n.alignItems&&e.alignItemsFlexStart,n.divider&&e.divider,!n.disableGutters&&e.gutters]}})(({theme:t,ownerState:e})=>Object(o.a)({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:t.transitions.create("background-color",{duration:t.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(t.vars||t).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},["&."+m.a.selected]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Object(c.a)(t.palette.primary.main,t.palette.action.selectedOpacity),["&."+m.a.focusVisible]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.focusOpacity}))`:Object(c.a)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},[`&.${m.a.selected}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / calc(${t.vars.palette.action.selectedOpacity} + ${t.vars.palette.action.hoverOpacity}))`:Object(c.a)(t.palette.primary.main,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:t.vars?`rgba(${t.vars.palette.primary.mainChannel} / ${t.vars.palette.action.selectedOpacity})`:Object(c.a)(t.palette.primary.main,t.palette.action.selectedOpacity)}},["&."+m.a.focusVisible]:{backgroundColor:(t.vars||t).palette.action.focus},["&."+m.a.disabled]:{opacity:(t.vars||t).palette.action.disabledOpacity}},e.divider&&{borderBottom:"1px solid "+(t.vars||t).palette.divider,backgroundClip:"padding-box"},"flex-start"===e.alignItems&&{alignItems:"flex-start"},!e.disableGutters&&{paddingLeft:16,paddingRight:16},e.dense&&{paddingTop:4,paddingBottom:4})),E=r.forwardRef((function(t,e){const n=Object(u.a)({props:t,name:"MuiListItemButton"}),{alignItems:c="center",autoFocus:l=!1,component:h="div",children:E,dense:y=!1,disableGutters:b=!1,divider:S=!1,focusVisibleClassName:v,selected:C=!1}=n,N=Object(i.a)(n,g),T=r.useContext(_.a),L={dense:y||T.dense||!1,alignItems:c,disableGutters:b},z=r.useRef(null);Object(d.a)(()=>{l&&z.current&&z.current.focus()},[l]);const w=Object(o.a)({},n,{alignItems:c,dense:L.dense,disableGutters:b,divider:S,selected:C}),O=(t=>{const{alignItems:e,classes:n,dense:i,disabled:r,disableGutters:s,divider:c,selected:l}=t,u={root:["root",i&&"dense",!s&&"gutters",c&&"divider",r&&"disabled","flex-start"===e&&"alignItemsFlexStart",l&&"selected"]},h=Object(a.a)(u,m.b,n);return Object(o.a)({},n,h)})(w),R=Object(p.a)(z,e);return Object(f.jsx)(_.a.Provider,{value:L,children:Object(f.jsx)($,Object(o.a)({ref:R,href:N.href||N.to,component:(N.href||N.to)&&"div"===h?"a":h,focusVisibleClassName:Object(s.a)(O.focusVisible,v),ownerState:w},N,{classes:O,children:E}))})}));e.a=E},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.getLineNumber=e.getEditorBounds=e.clearInlineStyles=e.isGreaterThan=e.atomicBlockExists=e.removeBlockFromMap=e.getSelectionInfo=void 0;var i=n(218);e.getSelectionInfo=function(t){var e=t.getSelection(),n=e.getStartOffset(),i=t.getCurrentContent(),o=i.getBlockForKey(e.getStartKey()),r=t.getCurrentInlineStyle(),s=o.getEntityAt(n),a="";s&&(a=i.getEntity(s).getType());return{inlineStyle:r,blockType:o.getType(),entityType:a,linkKey:s,block:o}};e.removeBlockFromMap=function(t,e){var n=t.getCurrentContent(),o=i.Modifier.removeRange(n,new i.SelectionState({anchorKey:e.getKey(),anchorOffset:0,focusKey:e.getKey(),focusOffset:e.getLength()}),"backward"),r=o.getBlockMap().delete(e.getKey());return o.merge({blockMap:r,selectionAfter:n.getSelectionAfter()})};e.atomicBlockExists=function(t,e){if(e)return e.find((function(e){return"atomic"===e.type&&e.name===t&&void 0!==e.atomicComponent}))};e.isGreaterThan=function(t,e){return!!e&&t>e};e.clearInlineStyles=function(t,e){var n=["BOLD","ITALIC","UNDERLINE"];return e&&(n=n.concat(Object.getOwnPropertyNames(e))),n.reduce((function(e,n){return i.Modifier.removeInlineStyle(e,t.getSelection(),n)}),t.getCurrentContent())};e.getEditorBounds=function(t){var e=(0,i.getVisibleSelectionRect)(window);return{selectionRect:e?{top:null==e?void 0:e.top,left:null==e?void 0:e.left}:null,editorRect:t.getBoundingClientRect()}};e.getLineNumber=function(t){var e=t.getSelection().getStartKey();return t.getCurrentContent().getBlockMap().keySeq().findIndex((function(t){return t===e}))}},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=(n(72),n(4)),a=n(18),c=n(3),l=n(7),u=n(19),h=n(94);let d;function p(){if(d)return d;const t=document.createElement("div"),e=document.createElement("div");return e.style.width="10px",e.style.height="1px",t.appendChild(e),t.dir="rtl",t.style.fontSize="14px",t.style.width="4px",t.style.height="1px",t.style.position="absolute",t.style.top="-1000px",t.style.overflow="scroll",document.body.appendChild(t),d="reverse",t.scrollLeft>0?d="default":(t.scrollLeft=1,0===t.scrollLeft&&(d="negative")),document.body.removeChild(t),d}function _(t,e){const n=t.scrollLeft;if("rtl"!==e)return n;switch(p()){case"negative":return t.scrollWidth-t.clientWidth+n;case"reverse":return t.scrollWidth-t.clientWidth-n;default:return n}}function m(t){return(1+Math.sin(Math.PI*t-Math.PI/2))/2}var f=n(78),g=n(2);const $=["onChange"],E={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};var y=n(663),b=n(43),S=n(116),v=n(58);const C=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],N=(t,e)=>t===e?t.firstChild:e&&e.nextElementSibling?e.nextElementSibling:t.firstChild,T=(t,e)=>t===e?t.lastChild:e&&e.previousElementSibling?e.previousElementSibling:t.lastChild,L=(t,e,n)=>{let i=!1,o=n(t,e);for(;o;){if(o===t.firstChild){if(i)return;i=!0}const e=o.disabled||"true"===o.getAttribute("aria-disabled");if(o.hasAttribute("tabindex")&&!e)return void o.focus();o=n(t,o)}},z=Object(c.a)("div",{name:"MuiTabs",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{["& ."+S.a.scrollButtons]:e.scrollButtons},{["& ."+S.a.scrollButtons]:n.scrollButtonsHideMobile&&e.scrollButtonsHideMobile},e.root,n.vertical&&e.vertical]}})(({ownerState:t,theme:e})=>Object(o.a)({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},t.vertical&&{flexDirection:"column"},t.scrollButtonsHideMobile&&{["& ."+S.a.scrollButtons]:{[e.breakpoints.down("sm")]:{display:"none"}}})),w=Object(c.a)("div",{name:"MuiTabs",slot:"Scroller",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.scroller,n.fixed&&e.fixed,n.hideScrollbar&&e.hideScrollbar,n.scrollableX&&e.scrollableX,n.scrollableY&&e.scrollableY]}})(({ownerState:t})=>Object(o.a)({position:"relative",display:"inline-block",flex:"1 1 auto",whiteSpace:"nowrap"},t.fixed&&{overflowX:"hidden",width:"100%"},t.hideScrollbar&&{scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}},t.scrollableX&&{overflowX:"auto",overflowY:"hidden"},t.scrollableY&&{overflowY:"auto",overflowX:"hidden"})),O=Object(c.a)("div",{name:"MuiTabs",slot:"FlexContainer",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[e.flexContainer,n.vertical&&e.flexContainerVertical,n.centered&&e.centered]}})(({ownerState:t})=>Object(o.a)({display:"flex"},t.vertical&&{flexDirection:"column"},t.centered&&{justifyContent:"center"})),R=Object(c.a)("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(t,e)=>e.indicator})(({ownerState:t,theme:e})=>Object(o.a)({position:"absolute",height:2,bottom:0,width:"100%",transition:e.transitions.create()},"primary"===t.indicatorColor&&{backgroundColor:(e.vars||e).palette.primary.main},"secondary"===t.indicatorColor&&{backgroundColor:(e.vars||e).palette.secondary.main},t.vertical&&{height:"100%",width:2,right:0})),A=Object(c.a)((function(t){const{onChange:e}=t,n=Object(i.a)(t,$),s=r.useRef(),a=r.useRef(null),c=()=>{s.current=a.current.offsetHeight-a.current.clientHeight};return r.useEffect(()=>{const t=Object(h.a)(()=>{const t=s.current;c(),t!==s.current&&e(s.current)}),n=Object(f.a)(a.current);return n.addEventListener("resize",t),()=>{t.clear(),n.removeEventListener("resize",t)}},[e]),r.useEffect(()=>{c(),e(s.current)},[e]),Object(g.jsx)("div",Object(o.a)({style:E,ref:a},n))}),{name:"MuiTabs",slot:"ScrollbarSize"})({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),x={};const I=r.forwardRef((function(t,e){const n=Object(l.a)({props:t,name:"MuiTabs"}),c=Object(u.default)(),d="rtl"===c.direction,{"aria-label":$,"aria-labelledby":E,action:I,centered:U=!1,children:D,className:P,component:M="div",allowScrollButtonsMobile:k=!1,indicatorColor:j="primary",onChange:G,orientation:q="horizontal",ScrollButtonComponent:F=y.a,scrollButtons:B="auto",selectionFollowsFocus:W,TabIndicatorProps:H={},TabScrollButtonProps:V={},textColor:K="primary",value:X,variant:J="standard",visibleScrollbar:Y=!1}=n,Q=Object(i.a)(n,C),Z="scrollable"===J,tt="vertical"===q,et=tt?"scrollTop":"scrollLeft",nt=tt?"top":"left",it=tt?"bottom":"right",ot=tt?"clientHeight":"clientWidth",rt=tt?"height":"width",st=Object(o.a)({},n,{component:M,allowScrollButtonsMobile:k,indicatorColor:j,orientation:q,vertical:tt,scrollButtons:B,textColor:K,variant:J,visibleScrollbar:Y,fixed:!Z,hideScrollbar:Z&&!Y,scrollableX:Z&&!tt,scrollableY:Z&&tt,centered:U&&!Z,scrollButtonsHideMobile:!k}),at=(t=>{const{vertical:e,fixed:n,hideScrollbar:i,scrollableX:o,scrollableY:r,centered:s,scrollButtonsHideMobile:c,classes:l}=t,u={root:["root",e&&"vertical"],scroller:["scroller",n&&"fixed",i&&"hideScrollbar",o&&"scrollableX",r&&"scrollableY"],flexContainer:["flexContainer",e&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",c&&"scrollButtonsHideMobile"],scrollableX:[o&&"scrollableX"],hideScrollbar:[i&&"hideScrollbar"]};return Object(a.a)(u,S.b,l)})(st);const[ct,lt]=r.useState(!1),[ut,ht]=r.useState(x),[dt,pt]=r.useState({start:!1,end:!1}),[_t,mt]=r.useState({overflow:"hidden",scrollbarWidth:0}),ft=new Map,gt=r.useRef(null),$t=r.useRef(null),Et=()=>{const t=gt.current;let e,n;if(t){const n=t.getBoundingClientRect();e={clientWidth:t.clientWidth,scrollLeft:t.scrollLeft,scrollTop:t.scrollTop,scrollLeftNormalized:_(t,c.direction),scrollWidth:t.scrollWidth,top:n.top,bottom:n.bottom,left:n.left,right:n.right}}if(t&&!1!==X){const t=$t.current.children;if(t.length>0){const e=t[ft.get(X)];0,n=e?e.getBoundingClientRect():null}}return{tabsMeta:e,tabMeta:n}},yt=Object(b.a)(()=>{const{tabsMeta:t,tabMeta:e}=Et();let n,i=0;if(tt)n="top",e&&t&&(i=e.top-t.top+t.scrollTop);else if(n=d?"right":"left",e&&t){const o=d?t.scrollLeftNormalized+t.clientWidth-t.scrollWidth:t.scrollLeft;i=(d?-1:1)*(e[n]-t[n]+o)}const o={[n]:i,[rt]:e?e[rt]:0};if(isNaN(ut[n])||isNaN(ut[rt]))ht(o);else{const t=Math.abs(ut[n]-o[n]),e=Math.abs(ut[rt]-o[rt]);(t>=1||e>=1)&&ht(o)}}),bt=(t,{animation:e=!0}={})=>{e?function(t,e,n,i={},o=(()=>{})){const{ease:r=m,duration:s=300}=i;let a=null;const c=e[t];let l=!1;const u=()=>{l=!0},h=i=>{if(l)return void o(new Error("Animation cancelled"));null===a&&(a=i);const u=Math.min(1,(i-a)/s);e[t]=r(u)*(n-c)+c,u>=1?requestAnimationFrame(()=>{o(null)}):requestAnimationFrame(h)};c===n?o(new Error("Element already at target position")):requestAnimationFrame(h)}(et,gt.current,t,{duration:c.transitions.duration.standard}):gt.current[et]=t},St=t=>{let e=gt.current[et];tt?e+=t:(e+=t*(d?-1:1),e*=d&&"reverse"===p()?-1:1),bt(e)},vt=()=>{const t=gt.current[ot];let e=0;const n=Array.from($t.current.children);for(let i=0;it){0===i&&(e=t);break}e+=o[ot]}return e},Ct=()=>{St(-1*vt())},Nt=()=>{St(vt())},Tt=r.useCallback(t=>{mt({overflow:null,scrollbarWidth:t})},[]),Lt=Object(b.a)(t=>{const{tabsMeta:e,tabMeta:n}=Et();if(n&&e)if(n[nt]e[it]){const i=e[et]+(n[it]-e[it]);bt(i,{animation:t})}}),zt=Object(b.a)(()=>{if(Z&&!1!==B){const{scrollTop:t,scrollHeight:e,clientHeight:n,scrollWidth:i,clientWidth:o}=gt.current;let r,s;if(tt)r=t>1,s=t1,s=d?t>1:t{const t=Object(h.a)(()=>{gt.current&&(yt(),zt())}),e=Object(f.a)(gt.current);let n;return e.addEventListener("resize",t),"undefined"!=typeof ResizeObserver&&(n=new ResizeObserver(t),Array.from($t.current.children).forEach(t=>{n.observe(t)})),()=>{t.clear(),e.removeEventListener("resize",t),n&&n.disconnect()}},[yt,zt]);const wt=r.useMemo(()=>Object(h.a)(()=>{zt()}),[zt]);r.useEffect(()=>()=>{wt.clear()},[wt]),r.useEffect(()=>{lt(!0)},[]),r.useEffect(()=>{yt(),zt()}),r.useEffect(()=>{Lt(x!==ut)},[Lt,ut]),r.useImperativeHandle(I,()=>({updateIndicator:yt,updateScrollButtons:zt}),[yt,zt]);const Ot=Object(g.jsx)(R,Object(o.a)({},H,{className:Object(s.a)(at.indicator,H.className),ownerState:st,style:Object(o.a)({},ut,H.style)}));let Rt=0;const At=r.Children.map(D,t=>{if(!r.isValidElement(t))return null;const e=void 0===t.props.value?Rt:t.props.value;ft.set(e,Rt);const n=e===X;return Rt+=1,r.cloneElement(t,Object(o.a)({fullWidth:"fullWidth"===J,indicator:n&&!ct&&Ot,selected:n,selectionFollowsFocus:W,onChange:G,textColor:K,value:e},1!==Rt||!1!==X||t.props.tabIndex?{}:{tabIndex:0}))}),xt=(()=>{const t={};t.scrollbarSizeListener=Z?Object(g.jsx)(A,{onChange:Tt,className:Object(s.a)(at.scrollableX,at.hideScrollbar)}):null;const e=dt.start||dt.end,n=Z&&("auto"===B&&e||!0===B);return t.scrollButtonStart=n?Object(g.jsx)(F,Object(o.a)({orientation:q,direction:d?"right":"left",onClick:Ct,disabled:!dt.start},V,{className:Object(s.a)(at.scrollButtons,V.className)})):null,t.scrollButtonEnd=n?Object(g.jsx)(F,Object(o.a)({orientation:q,direction:d?"left":"right",onClick:Nt,disabled:!dt.end},V,{className:Object(s.a)(at.scrollButtons,V.className)})):null,t})();return Object(g.jsxs)(z,Object(o.a)({className:Object(s.a)(at.root,P),ownerState:st,ref:e,as:M},Q,{children:[xt.scrollButtonStart,xt.scrollbarSizeListener,Object(g.jsxs)(w,{className:at.scroller,ownerState:st,style:{overflow:_t.overflow,[tt?"margin"+(d?"Left":"Right"):"marginBottom"]:Y?void 0:-_t.scrollbarWidth},ref:gt,onScroll:wt,children:[Object(g.jsx)(O,{"aria-label":$,"aria-labelledby":E,"aria-orientation":"vertical"===q?"vertical":null,className:at.flexContainer,ownerState:st,onKeyDown:t=>{const e=$t.current,n=Object(v.a)(e).activeElement;if("tab"!==n.getAttribute("role"))return;let i="horizontal"===q?"ArrowLeft":"ArrowUp",o="horizontal"===q?"ArrowRight":"ArrowDown";switch("horizontal"===q&&d&&(i="ArrowRight",o="ArrowLeft"),t.key){case i:t.preventDefault(),L(e,n,T);break;case o:t.preventDefault(),L(e,n,N);break;case"Home":t.preventDefault(),L(e,null,N);break;case"End":t.preventDefault(),L(e,null,T)}},ref:$t,role:"tablist",children:At}),ct&&Ot]}),xt.scrollButtonEnd]}))}));e.a=I},function(t,e,n){"use strict";function i(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,i)}return n}function r(t){for(var e=1;e{const{ownerState:n}=t;return[e.root,e[n.variant],n.colorDefault&&e.colorDefault]}})(({theme:t,ownerState:e})=>Object(o.a)({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none"},"rounded"===e.variant&&{borderRadius:(t.vars||t).shape.borderRadius},"square"===e.variant&&{borderRadius:0},e.colorDefault&&Object(o.a)({color:(t.vars||t).palette.background.default},t.vars?{backgroundColor:t.vars.palette.Avatar.defaultBg}:{backgroundColor:"light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[600]}))),f=Object(c.a)("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(t,e)=>e.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),g=Object(c.a)(d,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(t,e)=>e.fallback})({width:"75%",height:"75%"});const $=r.forwardRef((function(t,e){const n=Object(l.a)({props:t,name:"MuiAvatar"}),{alt:c,children:u,className:d,component:$="div",imgProps:E,sizes:y,src:b,srcSet:S,variant:v="circular"}=n,C=Object(i.a)(n,_);let N=null;const T=function({crossOrigin:t,referrerPolicy:e,src:n,srcSet:i}){const[o,s]=r.useState(!1);return r.useEffect(()=>{if(!n&&!i)return;s(!1);let o=!0;const r=new Image;return r.onload=()=>{o&&s("loaded")},r.onerror=()=>{o&&s("error")},r.crossOrigin=t,r.referrerPolicy=e,r.src=n,i&&(r.srcset=i),()=>{o=!1}},[t,e,n,i]),o}(Object(o.a)({},E,{src:b,srcSet:S})),L=b||S,z=L&&"error"!==T,w=Object(o.a)({},n,{colorDefault:!z,component:$,variant:v}),O=(t=>{const{classes:e,variant:n,colorDefault:i}=t,o={root:["root",n,i&&"colorDefault"],img:["img"],fallback:["fallback"]};return Object(a.a)(o,p.b,e)})(w);return N=z?Object(h.jsx)(f,Object(o.a)({alt:c,src:b,srcSet:S,sizes:y,ownerState:w,className:O.img},E)):null!=u?u:L&&c?c[0]:Object(h.jsx)(g,{className:O.fallback}),Object(h.jsx)(m,Object(o.a)({as:$,ownerState:w,className:Object(s.a)(O.root,d),ref:e},C,{children:N}))}));e.a=$},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=n(4),a=n(18),c=n(28),l=n(17),u=n(2),h=Object(l.a)(Object(u.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}),"Cancel"),d=n(21),p=n(6),_=n(93),m=n(7),f=n(3),g=n(30);const $=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant"],E=Object(f.a)("div",{name:"MuiChip",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t,{color:i,clickable:o,onDelete:r,size:s,variant:a}=n;return[{["& ."+g.a.avatar]:e.avatar},{["& ."+g.a.avatar]:e["avatar"+Object(p.a)(s)]},{["& ."+g.a.avatar]:e["avatarColor"+Object(p.a)(i)]},{["& ."+g.a.icon]:e.icon},{["& ."+g.a.icon]:e["icon"+Object(p.a)(s)]},{["& ."+g.a.icon]:e["iconColor"+Object(p.a)(i)]},{["& ."+g.a.deleteIcon]:e.deleteIcon},{["& ."+g.a.deleteIcon]:e["deleteIcon"+Object(p.a)(s)]},{["& ."+g.a.deleteIcon]:e["deleteIconColor"+Object(p.a)(i)]},{["& ."+g.a.deleteIcon]:e[`deleteIcon${Object(p.a)(a)}Color${Object(p.a)(i)}`]},e.root,e["size"+Object(p.a)(s)],e["color"+Object(p.a)(i)],o&&e.clickable,o&&"default"!==i&&e[`clickableColor${Object(p.a)(i)})`],r&&e.deletable,r&&"default"!==i&&e["deletableColor"+Object(p.a)(i)],e[a],e[`${a}${Object(p.a)(i)}`]]}})(({theme:t,ownerState:e})=>{const n=Object(c.a)(t.palette.text.primary,.26),i="light"===t.palette.mode?t.palette.grey[700]:t.palette.grey[300];return Object(o.a)({maxWidth:"100%",fontFamily:t.typography.fontFamily,fontSize:t.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(t.vars||t).palette.text.primary,backgroundColor:(t.vars||t).palette.action.selected,borderRadius:16,whiteSpace:"nowrap",transition:t.transitions.create(["background-color","box-shadow"]),cursor:"default",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",["&."+g.a.disabled]:{opacity:(t.vars||t).palette.action.disabledOpacity,pointerEvents:"none"},["& ."+g.a.avatar]:{marginLeft:5,marginRight:-6,width:24,height:24,color:t.vars?t.vars.palette.Chip.defaultAvatarColor:i,fontSize:t.typography.pxToRem(12)},["& ."+g.a.avatarColorPrimary]:{color:(t.vars||t).palette.primary.contrastText,backgroundColor:(t.vars||t).palette.primary.dark},["& ."+g.a.avatarColorSecondary]:{color:(t.vars||t).palette.secondary.contrastText,backgroundColor:(t.vars||t).palette.secondary.dark},["& ."+g.a.avatarSmall]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:t.typography.pxToRem(10)},["& ."+g.a.icon]:Object(o.a)({color:t.vars?t.vars.palette.Chip.defaultIconColor:i,marginLeft:5,marginRight:-6},"small"===e.size&&{fontSize:18,marginLeft:4,marginRight:-4},"default"!==e.color&&{color:"inherit"}),["& ."+g.a.deleteIcon]:Object(o.a)({WebkitTapHighlightColor:"transparent",color:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.26)`:n,fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:t.vars?`rgba(${t.vars.palette.text.primaryChannel} / 0.4)`:Object(c.a)(n,.4)}},"small"===e.size&&{fontSize:16,marginRight:4,marginLeft:-4},"default"!==e.color&&{color:t.vars?`rgba(${t.vars.palette[e.color].contrastTextChannel} / 0.7)`:Object(c.a)(t.palette[e.color].contrastText,.7),"&:hover, &:active":{color:(t.vars||t).palette[e.color].contrastText}})},"small"===e.size&&{height:24},"default"!==e.color&&{backgroundColor:(t.vars||t).palette[e.color].main,color:(t.vars||t).palette[e.color].contrastText},e.onDelete&&{["&."+g.a.focusVisible]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity+t.vars.palette.action.focusOpacity}))`:Object(c.a)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)}},e.onDelete&&"default"!==e.color&&{["&."+g.a.focusVisible]:{backgroundColor:(t.vars||t).palette[e.color].dark}})},({theme:t,ownerState:e})=>Object(o.a)({},e.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity+t.vars.palette.action.hoverOpacity}))`:Object(c.a)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.hoverOpacity)},["&."+g.a.focusVisible]:{backgroundColor:t.vars?`rgba(${t.vars.palette.action.selectedChannel} / calc(${t.vars.palette.action.selectedOpacity+t.vars.palette.action.focusOpacity}))`:Object(c.a)(t.palette.action.selected,t.palette.action.selectedOpacity+t.palette.action.focusOpacity)},"&:active":{boxShadow:(t.vars||t).shadows[1]}},e.clickable&&"default"!==e.color&&{["&:hover, &."+g.a.focusVisible]:{backgroundColor:(t.vars||t).palette[e.color].dark}}),({theme:t,ownerState:e})=>Object(o.a)({},"outlined"===e.variant&&{backgroundColor:"transparent",border:t.vars?"1px solid "+t.vars.palette.Chip.defaultBorder:"1px solid "+("light"===t.palette.mode?t.palette.grey[400]:t.palette.grey[700]),[`&.${g.a.clickable}:hover`]:{backgroundColor:(t.vars||t).palette.action.hover},["&."+g.a.focusVisible]:{backgroundColor:(t.vars||t).palette.action.focus},["& ."+g.a.avatar]:{marginLeft:4},["& ."+g.a.avatarSmall]:{marginLeft:2},["& ."+g.a.icon]:{marginLeft:4},["& ."+g.a.iconSmall]:{marginLeft:2},["& ."+g.a.deleteIcon]:{marginRight:5},["& ."+g.a.deleteIconSmall]:{marginRight:3}},"outlined"===e.variant&&"default"!==e.color&&{color:(t.vars||t).palette[e.color].main,border:"1px solid "+(t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / 0.7)`:Object(c.a)(t.palette[e.color].main,.7)),[`&.${g.a.clickable}:hover`]:{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.hoverOpacity})`:Object(c.a)(t.palette[e.color].main,t.palette.action.hoverOpacity)},["&."+g.a.focusVisible]:{backgroundColor:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / ${t.vars.palette.action.focusOpacity})`:Object(c.a)(t.palette[e.color].main,t.palette.action.focusOpacity)},["& ."+g.a.deleteIcon]:{color:t.vars?`rgba(${t.vars.palette[e.color].mainChannel} / 0.7)`:Object(c.a)(t.palette[e.color].main,.7),"&:hover, &:active":{color:(t.vars||t).palette[e.color].main}}})),y=Object(f.a)("span",{name:"MuiChip",slot:"Label",overridesResolver:(t,e)=>{const{ownerState:n}=t,{size:i}=n;return[e.label,e["label"+Object(p.a)(i)]]}})(({ownerState:t})=>Object(o.a)({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},"small"===t.size&&{paddingLeft:8,paddingRight:8}));function b(t){return"Backspace"===t.key||"Delete"===t.key}const S=r.forwardRef((function(t,e){const n=Object(m.a)({props:t,name:"MuiChip"}),{avatar:c,className:l,clickable:f,color:S="default",component:v,deleteIcon:C,disabled:N=!1,icon:T,label:L,onClick:z,onDelete:w,onKeyDown:O,onKeyUp:R,size:A="medium",variant:x="filled"}=n,I=Object(i.a)(n,$),U=r.useRef(null),D=Object(d.a)(U,e),P=t=>{t.stopPropagation(),w&&w(t)},M=!(!1===f||!z)||f,k=M||w?_.a:v||"div",j=Object(o.a)({},n,{component:k,disabled:N,size:A,color:S,onDelete:!!w,clickable:M,variant:x}),G=(t=>{const{classes:e,disabled:n,size:i,color:o,onDelete:r,clickable:s,variant:c}=t,l={root:["root",c,n&&"disabled","size"+Object(p.a)(i),"color"+Object(p.a)(o),s&&"clickable",s&&"clickableColor"+Object(p.a)(o),r&&"deletable",r&&"deletableColor"+Object(p.a)(o),`${c}${Object(p.a)(o)}`],label:["label","label"+Object(p.a)(i)],avatar:["avatar","avatar"+Object(p.a)(i),"avatarColor"+Object(p.a)(o)],icon:["icon","icon"+Object(p.a)(i),"iconColor"+Object(p.a)(o)],deleteIcon:["deleteIcon","deleteIcon"+Object(p.a)(i),"deleteIconColor"+Object(p.a)(o),`deleteIcon${Object(p.a)(c)}Color${Object(p.a)(o)}`]};return Object(a.a)(l,g.b,e)})(j),q=k===_.a?Object(o.a)({component:v||"div",focusVisibleClassName:G.focusVisible},w&&{disableRipple:!0}):{};let F=null;w&&(F=C&&r.isValidElement(C)?r.cloneElement(C,{className:Object(s.a)(C.props.className,G.deleteIcon),onClick:P}):Object(u.jsx)(h,{className:Object(s.a)(G.deleteIcon),onClick:P}));let B=null;c&&r.isValidElement(c)&&(B=r.cloneElement(c,{className:Object(s.a)(G.avatar,c.props.className)}));let W=null;return T&&r.isValidElement(T)&&(W=r.cloneElement(T,{className:Object(s.a)(G.icon,T.props.className)})),Object(u.jsxs)(E,Object(o.a)({as:k,className:Object(s.a)(G.root,l),disabled:!(!M||!N)||void 0,onClick:z,onKeyDown:t=>{t.currentTarget===t.target&&b(t)&&t.preventDefault(),O&&O(t)},onKeyUp:t=>{t.currentTarget===t.target&&(w&&b(t)?w(t):"Escape"===t.key&&U.current&&U.current.blur()),R&&R(t)},ref:D,ownerState:j},q,I,{children:[B||W,Object(u.jsx)(y,{className:Object(s.a)(G.label),ownerState:j,children:L}),F]}))}));e.a=S},function(t,e,n){"use strict";var i=n(5),o=n(1),r=n(0),s=(n(72),n(4)),a=n(18),c=n(3),l=n(7),u=n(6);function h(t,e){return void 0!==e&&void 0!==t&&(Array.isArray(e)?e.indexOf(t)>=0:t===e)}var d=n(67),p=n(2);const _=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],m=Object(c.a)("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(t,e)=>{const{ownerState:n}=t;return[{["& ."+d.a.grouped]:e.grouped},{["& ."+d.a.grouped]:e["grouped"+Object(u.a)(n.orientation)]},e.root,"vertical"===n.orientation&&e.vertical,n.fullWidth&&e.fullWidth]}})(({ownerState:t,theme:e})=>Object(o.a)({display:"inline-flex",borderRadius:(e.vars||e).shape.borderRadius},"vertical"===t.orientation&&{flexDirection:"column"},t.fullWidth&&{width:"100%"},{["& ."+d.a.grouped]:Object(o.a)({},"horizontal"===t.orientation?{"&:not(:first-of-type)":{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0},"&:not(:last-of-type)":{borderTopRightRadius:0,borderBottomRightRadius:0},[`&.${d.a.selected} + .${d.a.grouped}.${d.a.selected}`]:{borderLeft:0,marginLeft:0}}:{"&:not(:first-of-type)":{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0},"&:not(:last-of-type)":{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`&.${d.a.selected} + .${d.a.grouped}.${d.a.selected}`]:{borderTop:0,marginTop:0}})})),f=r.forwardRef((function(t,e){const n=Object(l.a)({props:t,name:"MuiToggleButtonGroup"}),{children:c,className:f,color:g="standard",disabled:$=!1,exclusive:E=!1,fullWidth:y=!1,onChange:b,orientation:S="horizontal",size:v="medium",value:C}=n,N=Object(i.a)(n,_),T=Object(o.a)({},n,{disabled:$,fullWidth:y,orientation:S,size:v}),L=(t=>{const{classes:e,orientation:n,fullWidth:i,disabled:o}=t,r={root:["root","vertical"===n&&"vertical",i&&"fullWidth"],grouped:["grouped","grouped"+Object(u.a)(n),o&&"disabled"]};return Object(a.a)(r,d.b,e)})(T),z=(t,e)=>{if(!b)return;const n=C&&C.indexOf(e);let i;C&&n>=0?(i=C.slice(),i.splice(n,1)):i=C?C.concat(e):[e],b(t,i)},w=(t,e)=>{b&&b(t,C===e?null:e)};return Object(p.jsx)(m,Object(o.a)({role:"group",className:Object(s.a)(L.root,f),ref:e,ownerState:T},N,{children:r.Children.map(c,t=>r.isValidElement(t)?r.cloneElement(t,{className:Object(s.a)(L.grouped,t.props.className),onChange:E?w:z,selected:void 0===t.props.selected?h(t.props.value,C):t.props.selected,size:t.props.size||v,fullWidth:y,color:t.props.color||g,disabled:t.props.disabled||$}):null)}))}));e.a=f},function(t,e,n){"use strict";n.d(e,"a",(function(){return s}));var i=n(47),o=n(23);const r=["values","unit","step"];function s(t){const{values:e={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:s=5}=t,a=Object(i.a)(t,r),c=(t=>{const e=Object.keys(t).map(e=>({key:e,val:t[e]}))||[];return e.sort((t,e)=>t.val-e.val),e.reduce((t,e)=>Object(o.a)({},t,{[e.key]:e.val}),{})})(e),l=Object.keys(c);function u(t){return`@media (min-width:${"number"==typeof e[t]?e[t]:t}${n})`}function h(t){return`@media (max-width:${("number"==typeof e[t]?e[t]:t)-s/100}${n})`}function d(t,i){const o=l.indexOf(i);return`@media (min-width:${"number"==typeof e[t]?e[t]:t}${n}) and (max-width:${(-1!==o&&"number"==typeof e[l[o]]?e[l[o]]:i)-s/100}${n})`}return Object(o.a)({keys:l,values:c,up:u,down:h,between:d,only:function(t){return l.indexOf(t)+1{return(0===t.length?[1]:t).map(t=>{const n=e(t);return"number"==typeof n?n+"px":n}).join(" ")};return n.mui=!0,n}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if("string"==typeof e&&"text"===e)return["-webkit-text","text"]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if("string"==typeof e&&!(0,r.default)(e)&&e.indexOf("cross-fade(")>-1)return s.map((function(t){return e.replace(/cross-fade\(/g,t+"cross-fade(")}))};var i,o=n(73),r=(i=o)&&i.__esModule?i:{default:i};var s=["-webkit-",""]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if("string"==typeof e&&!(0,r.default)(e)&&a.test(e))return s.map((function(t){return e.replace(a,(function(e){return t+e}))}))};var i,o=n(73),r=(i=o)&&i.__esModule?i:{default:i};var s=["-webkit-","-moz-",""],a=/linear-gradient|radial-gradient|repeating-linear-gradient|repeating-radial-gradient/gi},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if("string"==typeof e&&!(0,r.default)(e)&&e.indexOf("image-set(")>-1)return s.map((function(t){return e.replace(/image-set\(/g,t+"image-set(")}))};var i,o=n(73),r=(i=o)&&i.__esModule?i:{default:i};var s=["-webkit-",""]},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if("position"===t&&"sticky"===e)return["-webkit-sticky","sticky"]}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(o.hasOwnProperty(t)&&r.hasOwnProperty(e))return i.map((function(t){return t+e}))};var i=["-webkit-","-moz-",""],o={maxHeight:!0,maxWidth:!0,width:!0,height:!0,columnWidth:!0,minWidth:!0,minHeight:!0},r={"min-content":!0,"max-content":!0,"fill-available":!0,"fit-content":!0,"contain-floats":!0}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e,n,s){if("string"==typeof e&&a.hasOwnProperty(t)){var l=function(t,e){if((0,o.default)(t))return t;for(var n=t.split(/,(?![^()]*(?:\([^()]*\))?\))/g),r=0,s=n.length;r-1&&"order"!==h)for(var d=e[u],p=0,_=d.length;p<_;++p)l.unshift(a.replace(h,c[d[p]]+h))}n[r]=l.join(",")}return n.join(",")}(e,s),u=l.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter((function(t){return!/-moz-|-ms-/.test(t)})).join(",");if(t.indexOf("Webkit")>-1)return u;var h=l.split(/,(?![^()]*(?:\([^()]*\))?\))/g).filter((function(t){return!/-webkit-|-ms-/.test(t)})).join(",");return t.indexOf("Moz")>-1?h:(n["Webkit"+(0,r.default)(t)]=u,n["Moz"+(0,r.default)(t)]=h,l)}};var i=s(n(404)),o=s(n(73)),r=s(n(869));function s(t){return t&&t.__esModule?t:{default:t}}var a={transition:!0,transitionProperty:!0,WebkitTransition:!0,WebkitTransitionProperty:!0,MozTransition:!0,MozTransitionProperty:!0},c={Webkit:"-webkit-",Moz:"-moz-",ms:"-ms-"}},function(t,e){t.exports=function(t,e,n,i){var o=n?n.call(i,t,e):void 0;if(void 0!==o)return!!o;if(t===e)return!0;if("object"!=typeof t||!t||"object"!=typeof e||!e)return!1;var r=Object.keys(t),s=Object.keys(e);if(r.length!==s.length)return!1;for(var a=Object.prototype.hasOwnProperty.bind(e),c=0;ci&&(i=(e=e.trim()).charCodeAt(0)),i){case 38:return e.replace(m,"$1"+t.trim());case 58:return t.trim()+e.replace(m,"$1"+t.trim());default:if(0<1*n&&0c.charCodeAt(8))break;case 115:s=s.replace(c,"-webkit-"+c)+";"+s;break;case 207:case 102:s=s.replace(c,"-webkit-"+(102a.charCodeAt(0)&&(a=a.trim()),a=[a],0p)&&(k=(q=q.replace(" ",":")).length),0{const i=e<0?t.length+e:e;if(i>=0&&i(t=[...t],i(t,e,n),t),t.exports.mutate=i},function(t,e,n){"use strict";const i="function"==typeof Symbol&&Symbol.for;e.a=i?Symbol.for("mui.nested"):"__THEME_NESTED__"},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i,o=function(){function t(t,e){for(var n=0;n{void 0===n[e]&&(n[e]=t[e])}),n}},function(t,e,n){"use strict";n.d(e,"a",(function(){return r}));var i=n(0),o=n(226);function r(t){const e=i.useRef(t);return Object(o.a)(()=>{e.current=t}),i.useCallback((...t)=>(0,e.current)(...t),[])}},function(t,e,n){"use strict";var i=n(1),o=(n(0),n(1022)),r=n(142),s=n(2);e.a=function(t){return Object(s.jsx)(o.a,Object(i.a)({},t,{defaultTheme:r.a}))}},function(t,e,n){"use strict";var i=n(1),o=n(5),r=n(0),s=n(276),a=n(19),c=n(44),l=n(21),u=n(2);const h=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],d={entering:{opacity:1},entered:{opacity:1}},p=r.forwardRef((function(t,e){const n=Object(a.default)(),p={enter:n.transitions.duration.enteringScreen,exit:n.transitions.duration.leavingScreen},{addEndListener:_,appear:m=!0,children:f,easing:g,in:$,onEnter:E,onEntered:y,onEntering:b,onExit:S,onExited:v,onExiting:C,style:N,timeout:T=p,TransitionComponent:L=s.a}=t,z=Object(o.a)(t,h),w=r.useRef(null),O=Object(l.a)(f.ref,e),R=Object(l.a)(w,O),A=t=>e=>{if(t){const n=w.current;void 0===e?t(n):t(n,e)}},x=A(b),I=A((t,e)=>{Object(c.b)(t);const i=Object(c.a)({style:N,timeout:T,easing:g},{mode:"enter"});t.style.webkitTransition=n.transitions.create("opacity",i),t.style.transition=n.transitions.create("opacity",i),E&&E(t,e)}),U=A(y),D=A(C),P=A(t=>{const e=Object(c.a)({style:N,timeout:T,easing:g},{mode:"exit"});t.style.webkitTransition=n.transitions.create("opacity",e),t.style.transition=n.transitions.create("opacity",e),S&&S(t)}),M=A(v);return Object(u.jsx)(L,Object(i.a)({appear:m,in:$,nodeRef:w,onEnter:I,onEntered:U,onEntering:x,onExit:P,onExited:M,onExiting:D,addEndListener:t=>{_&&_(w.current,t)},timeout:T},z,{children:(t,e)=>r.cloneElement(f,Object(i.a)({style:Object(i.a)({opacity:0,visibility:"exited"!==t||$?void 0:"hidden"},d[t],N,f.props.style),ref:R},e))}))}));e.a=p},function(t,e,n){"use strict";function i(t,e=166){let n;function i(...i){clearTimeout(n),n=setTimeout(()=>{t.apply(this,i)},e)}return i.clear=()=>{clearTimeout(n)},i}n.d(e,"a",(function(){return i}))},function(t,e,n){"use strict";var i=n(1),o=n(5),r=n(0),s=n(276),a=n(19),c=n(44),l=n(21),u=n(2);const h=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function d(t){return`scale(${t}, ${t**2})`}const p={entering:{opacity:1,transform:d(1)},entered:{opacity:1,transform:"none"}},_="undefined"!=typeof navigator&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),m=r.forwardRef((function(t,e){const{addEndListener:n,appear:m=!0,children:f,easing:g,in:$,onEnter:E,onEntered:y,onEntering:b,onExit:S,onExited:v,onExiting:C,style:N,timeout:T="auto",TransitionComponent:L=s.a}=t,z=Object(o.a)(t,h),w=r.useRef(),O=r.useRef(),R=Object(a.default)(),A=r.useRef(null),x=Object(l.a)(f.ref,e),I=Object(l.a)(A,x),U=t=>e=>{if(t){const n=A.current;void 0===e?t(n):t(n,e)}},D=U(b),P=U((t,e)=>{Object(c.b)(t);const{duration:n,delay:i,easing:o}=Object(c.a)({style:N,timeout:T,easing:g},{mode:"enter"});let r;"auto"===T?(r=R.transitions.getAutoHeightDuration(t.clientHeight),O.current=r):r=n,t.style.transition=[R.transitions.create("opacity",{duration:r,delay:i}),R.transitions.create("transform",{duration:_?r:.666*r,delay:i,easing:o})].join(","),E&&E(t,e)}),M=U(y),k=U(C),j=U(t=>{const{duration:e,delay:n,easing:i}=Object(c.a)({style:N,timeout:T,easing:g},{mode:"exit"});let o;"auto"===T?(o=R.transitions.getAutoHeightDuration(t.clientHeight),O.current=o):o=e,t.style.transition=[R.transitions.create("opacity",{duration:o,delay:n}),R.transitions.create("transform",{duration:_?o:.666*o,delay:_?n:n||.333*o,easing:i})].join(","),t.style.opacity=0,t.style.transform=d(.75),S&&S(t)}),G=U(v);return r.useEffect(()=>()=>{clearTimeout(w.current)},[]),Object(u.jsx)(L,Object(i.a)({appear:m,in:$,nodeRef:A,onEnter:P,onEntered:M,onEntering:D,onExit:j,onExited:G,onExiting:k,addEndListener:t=>{"auto"===T&&(w.current=setTimeout(t,O.current||0)),n&&n(A.current,t)},timeout:"auto"===T?null:T},z,{children:(t,e)=>r.cloneElement(f,Object(i.a)({style:Object(i.a)({opacity:0,transform:d(.75),visibility:"exited"!==t||$?void 0:"hidden"},p[t],N,f.props.style),ref:I},e))}))}));m.muiSupportAuto=!0,e.a=m},,,,,,,,,function(t,e,n){t.exports=n(750)},function(t,e,n){var i,o,r;o=[e,n(31),n(436),n(752),n(367),n(282),n(85),n(438),n(284),n(231),n(854),n(855),n(292),n(237),n(293),n(294),n(238),n(155),n(862),n(239),n(295),n(1013),n(1015),n(870),n(1009),n(240),n(296),n(241),n(242),n(243),n(297),n(183),n(184),n(244),n(634),n(185),n(298),n(81),n(245),n(156),n(246),n(299),n(300),n(247),n(248),n(249),n(182),n(301),n(250),n(186),n(64),n(251),n(302),n(303),n(1016),n(304),n(305),n(306),n(307),n(308),n(252),n(309),n(310),n(311),n(253),n(871),n(0),n(19),n(666),n(312),n(313),n(254),n(46),n(637),n(32),n(872),n(714),n(149),n(218),n(1012),n(967),n(968),n(440),n(1014),n(389),n(283),n(970),n(366),n(390),n(635),n(1017),n(181),n(973),n(128),n(1006),n(26),n(1007)],void 0===(r="function"==typeof(i=function(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w,O,R,A,x,I,U,D,P,M,k,j,G,q,F,B,W,H,V,K,X,J,Y,Q,Z,tt,et,nt,it,ot,rt,st,at,ct,lt,ut,ht,dt,pt,_t,mt,ft,gt,$t,Et,yt,bt,St,vt,Ct,Nt,Tt,Lt,zt,wt,Ot,Rt,At,xt,It,Ut,Dt,Pt,Mt,kt,jt,Gt,qt){"use strict";var Ft,Bt,Wt,Ht,Vt,Kt,Xt,Jt,Yt,Qt,Zt,te,ee,ne,ie,oe,re,se,ae,ce,le,ue,he,de,pe,_e,me,fe,ge,$e,Ee,ye,be,Se,ve,Ce,Ne,Te,Le,ze,we,Oe,Re,Ae,xe,Ie,Ue,De,Pe,Me,ke,je,Ge,qe=t.$$importsForInline$$||(t.$$importsForInline$$={}),Fe=n.org.kodein.di.DI,Be=i.com.ustadmobile.core.impl.UstadMobileSystemImpl,We=e.getKClass,He=e.createKType,Ve=o.com.ustadmobile.xmlpullparserkmp.XmlPullParserFactory,Ke=i.com.ustadmobile.core.impl.nav.UstadNavController,Xe=i.com.ustadmobile.core.impl,Je=e.equals,Ye=e.kotlin.Unit,Qe=i.com.ustadmobile.core.account.UstadAccountManager,Ze=r.com.ustadmobile.door.entities.NodeIdAndAuth,tn=i.com.ustadmobile.core.account.EndpointScope,en=i.com.ustadmobile.core.account.Endpoint,nn=s.kotlinx.coroutines.CoroutineScope,on=s.kotlinx.coroutines,rn=a.com.ustadmobile.core.db.UmAppDatabase,sn=r.com.ustadmobile.door.RepositoryConfig,an=c.io.ktor.client.HttpClient,cn=l.kotlinx.serialization.json.Json,ln=i.com.ustadmobile.core.db.RepSubscriptionInitListener,un=i.com.ustadmobile.core.impl.UstadMobileSystemCommon,hn=e.kotlin.reflect.js.internal.PrimitiveClasses.booleanClass,dn=i.com.ustadmobile.core.view.ContainerMounter,pn=o.com.ustadmobile.xmlpullparserkmp.XmlSerializer,_n=s.kotlinx.coroutines.CoroutineDispatcher,mn=s.kotlinx.coroutines.MainCoroutineDispatcher,fn=i.com.ustadmobile.core.util.ContentEntryOpener,gn=c.io.ktor.client.engine.js,$n=u.io.ktor.client.plugins.contentnegotiation.ContentNegotiation,En=h.io.ktor.serialization.kotlinx.json.json_mhw46j$,yn=c.io.ktor.client.plugins.HttpTimeout,bn=c.io.ktor.client.HttpClient_744i18$,Sn=i.com.ustadmobile.core.navigation.NavControllerJs,vn=i.com.ustadmobile.core.impl.ContainerStorageManager,Cn=a.com.ustadmobile.lib.db.entities.UmAccount,Nn=i.com.ustadmobile.core.account.AuthManager,Tn=i.com.ustadmobile.core.account.Pbkdf2Params,Ln=i.com.ustadmobile.core.schedule.ClazzLogCreatorManager,zn=i.com.ustadmobile.core.schedule.ClazzLogCreatorManagerJs,wn=l.kotlinx.serialization.json.Json_x26noe$,On=n.$$importsForInline$$["Kaverit-kaverit"].org.kodein.type.typeToken_saj79j$,Rn=n.$$importsForInline$$["Kaverit-kaverit"].org.kodein.type.TypeToken,An=e.throwCCE,xn=r.com.ustadmobile.door.DatabaseBuilder,In=e.toString,Un=e.kotlin.IllegalArgumentException_init_pdl1vj$,Dn=r.com.ustadmobile.door.DoorDatabaseReplicateWrapper,Pn=r.com.ustadmobile.door.ext.unwrap_2kwlb7$,Mn=e.kotlin.js.get_js_1yb8b7$,kn=r.com.ustadmobile.door.ext.createInstance_q4owj1$,jn=r.$$importsForInline$$["Napier-napier-js-legacy"].io.github.aakira.napier,Gn=r.com.ustadmobile.door.ext.DoorTag,qn=n.org.kodein.di.bindings.Singleton,Fn=n.org.kodein.di.DI.BindBuilder.ImplWithScope,Bn=n.org.kodein.di.bindings.Provider,Wn=n.org.kodein.di.bindings.SimpleContextTranslator,Hn=e.kotlin.Enum,Vn=e.Kind.CLASS,Kn=e.throwISE,Xn=$.styled.StyledElementBuilder,Jn=I.kotlinx.css.hyphenize_pdl1vz$,Yn=I.kotlinx.css.FlexDirection,Qn=I.kotlinx.css.Display,Zn=I.kotlinx.css.set_display_qidz4o$,ti=I.kotlinx.css.set_flexDirection_c4dh0c$,ei=I.kotlinx.css.set_color_ommczd$,ni=e.kotlin.to_ujzrz7$,ii=e.kotlin.js.json_pyyo18$,oi=e.kotlin.text.contains_li3zpu$,ri=e.kotlin.collections.emptyList_287e2$,si=dt.createContext,ai=I.kotlinx.css.LinearDimension,ci=Object,li=I.kotlinx.css.WhiteSpace,ui=I.kotlinx.css.set_whiteSpace_9bsrpj$,hi=e.kotlin.text.startsWith_7epoxm$,di=e.kotlin.text.trim_gw00vp$,pi=i.com.ustadmobile.core.view.ClazzList2View,_i=i.com.ustadmobile.core.view.ContentEntryList2View,mi=i.com.ustadmobile.core.view.SchoolListView,fi=i.com.ustadmobile.core.view.PersonListView,gi=i.com.ustadmobile.core.view.ChatListView,$i=i.com.ustadmobile.core.view.ReportListView,Ei=i.com.ustadmobile.core.view.SettingsView,yi=i.com.ustadmobile.core.view.AccountListView,bi=i.com.ustadmobile.core.view.Login2View,Si=i.com.ustadmobile.core.view.ContentEntryDetailView,vi=i.com.ustadmobile.core.view.ContentEntryDetailOverviewView,Ci=i.com.ustadmobile.core.view.ContentEntryDetailAttemptsListView,Ni=i.com.ustadmobile.core.view.EpubContentView,Ti=i.com.ustadmobile.core.view.PersonDetailView,Li=i.com.ustadmobile.core.view.PersonAccountEditView,zi=i.com.ustadmobile.core.view.PersonEditView,wi=i.com.ustadmobile.core.view.XapiPackageContentView,Oi=i.com.ustadmobile.core.view.VideoContentView,Ri=i.com.ustadmobile.core.view.PDFContentView,Ai=i.com.ustadmobile.core.view.TimeZoneListView,xi=i.com.ustadmobile.core.view.HolidayCalendarListView,Ii=i.com.ustadmobile.core.view.HolidayCalendarEditView,Ui=i.com.ustadmobile.core.view.HolidayEditView,Di=i.com.ustadmobile.core.view.WebChunkView,Pi=i.com.ustadmobile.core.view.RedirectView,Mi=i.com.ustadmobile.core.view.RegisterAgeRedirectView,ki=i.com.ustadmobile.core.view.SiteTermsDetailView,ji=i.com.ustadmobile.core.view.SiteTermsEditView,Gi=i.com.ustadmobile.core.view.SiteDetailView,qi=i.com.ustadmobile.core.view.SiteEditView,Fi=i.com.ustadmobile.core.view.ClazzDetailView,Bi=i.com.ustadmobile.core.view.ClazzEdit2View,Wi=i.com.ustadmobile.core.view.ClazzMemberListView,Hi=i.com.ustadmobile.core.view.ClazzDetailOverviewView,Vi=i.com.ustadmobile.core.view.ClazzLogListAttendanceView,Ki=i.com.ustadmobile.core.view.ClazzLogEditView,Xi=i.com.ustadmobile.core.view.ClazzLogEditAttendanceView,Ji=i.com.ustadmobile.core.view.SchoolDetailView,Yi=i.com.ustadmobile.core.view.SchoolDetailOverviewView,Qi=i.com.ustadmobile.core.view.SchoolMemberListView,Zi=i.com.ustadmobile.core.view.ClazzEnrolmentEditView,to=i.com.ustadmobile.core.view.TextCourseBlockEditView,eo=i.com.ustadmobile.core.view.ModuleCourseBlockEditView,no=i.com.ustadmobile.core.view.CourseTerminologyListView,io=i.com.ustadmobile.core.view.CourseTerminologyEditView,oo=i.com.ustadmobile.core.view.ScheduleEditView,ro=i.com.ustadmobile.core.view.JoinWithCodeView,so=i.com.ustadmobile.core.view.SchoolEditView,ao=i.com.ustadmobile.core.view.ScopedGrantEditView,co=i.com.ustadmobile.core.view.ParentalConsentManagementView,lo=i.com.ustadmobile.core.view.BitmaskEditView,uo=i.com.ustadmobile.core.view.ContentEntryEdit2View,ho=i.com.ustadmobile.core.view.LanguageListView,po=i.com.ustadmobile.core.view.LanguageEditView,_o=i.com.ustadmobile.core.view.ContentEntryImportLinkView,mo=i.com.ustadmobile.core.view.InviteViaLinkView,fo=i.com.ustadmobile.core.view.ClazzEnrolmentListView,go=i.com.ustadmobile.core.view.LeavingReasonListView,$o=i.com.ustadmobile.core.view.LeavingReasonEditView,Eo=i.com.ustadmobile.core.view.ClazzAssignmentEditView,yo=i.com.ustadmobile.core.view.ClazzAssignmentDetailView,bo=i.com.ustadmobile.core.view.ClazzAssignmentDetailOverviewView,So=i.com.ustadmobile.core.view.ClazzAssignmentDetailStudentProgressOverviewListView,vo=i.com.ustadmobile.core.view.ClazzAssignmentDetailStudentProgressView,Co=i.com.ustadmobile.core.view.SessionListView,No=i.com.ustadmobile.core.view.TextAssignmentEditView,To=i.com.ustadmobile.core.view.HtmlTextViewDetailView,Lo=i.com.ustadmobile.core.view.SelectFileView,zo=i.com.ustadmobile.core.view.StatementListView,wo=i.com.ustadmobile.core.view.ReportTemplateListView,Oo=i.com.ustadmobile.core.view.ReportEditView,Ro=i.com.ustadmobile.core.view.ReportFilterEditView,Ao=i.com.ustadmobile.core.view.CourseGroupSetListView,xo=i.com.ustadmobile.core.view.CourseGroupSetEditView,Io=i.com.ustadmobile.core.view.CourseGroupSetDetailView,Uo=i.com.ustadmobile.core.view.ChatDetailView,Do=i.com.ustadmobile.core.view.ReportDetailView,Po=i.com.ustadmobile.core.view.CourseDiscussionEditView,Mo=i.com.ustadmobile.core.view.DiscussionTopicEditView,ko=i.com.ustadmobile.core.view.CourseDiscussionDetailView,jo=i.com.ustadmobile.core.view.DiscussionTopicDetailView,Go=i.com.ustadmobile.core.view.DiscussionPostEditView,qo=i.com.ustadmobile.core.view.DiscussionPostDetailView,Fo=i.com.ustadmobile.core.view.SelectExtractFileView,Bo=e.kotlin.collections.listOf_i5x0yv$,Wo=e.kotlin.lazy_klfg04$,Ho=e.Kind.OBJECT,Vo=e.kotlin.NoSuchElementException,Ko=e.kotlin.collections.collectionSizeOrDefault_ba2ldo$,Xo=e.kotlin.collections.ArrayList_init_ww73n8$,Jo=e.kotlin.collections.LinkedHashMap_init_q3lmfv$,Yo=e.kotlin.collections.ArrayList_init_287e2$,Qo=e.kotlin.collections.mapCapacity_za3lpa$,Zo=e.kotlin.ranges.coerceAtLeast_dqglrj$,tr=e.kotlin.collections.LinkedHashMap_init_bwtc7$,er=bt.redux.combineReducers_ip98tz$,nr=e.getPropertyCallableRef,ir=e.getCallableRef,or=e.kotlin.collections.mapOf_x2b85n$,rr=bt.redux.rEnhancer_287e2$,sr=St.createStore,ar=vt.kotlinx.serialization.internal.PluginGeneratedSerialDescriptor,cr=vt.kotlinx.serialization.internal,lr=vt.kotlinx.serialization.internal.LinkedHashMapSerializer,ur=vt.kotlinx.serialization.UnknownFieldException,hr=vt.kotlinx.serialization.internal.GeneratedSerializer,dr=e.kotlin.collections.removeAll_qafx1e$,pr=e.kotlin.text.toBoolean_5cw0du$,_r=e.kotlin.collections.toMutableList_4c7yge$,mr=vt.kotlinx.serialization.builtins.ListSerializer_swdriu$,fr=e.kotlin.collections.emptyMap_q3lmfv$,gr=i.com.ustadmobile.core.util,$r=e.Kind.INTERFACE,Er=e.kotlin.collections.indexOf_bv23uc$,yr=e.kotlin.collections.toList_7wnvza$,br=e.kotlin.text.Regex_init_61zpoe$,Sr=e.kotlin.text.toDouble_pdl1vz$,vr=e.kotlin.text.toInt_pdl1vz$,Cr=e.PropertyMetadata,Nr=I.kotlinx.css.properties.LineHeight,Tr=I.kotlinx.css.set_lineHeight_ftzj10$,Lr=I.kotlinx.css.set_height_n8chyh$,zr=I.kotlinx.css.TextOverflow,wr=I.kotlinx.css.set_textOverflow_67zq6f$,Or=I.kotlinx.css.Overflow,Rr=I.kotlinx.css.set_overflow_qhpm6s$,Ar=$.styled.StyleSheet,xr=e.ensureNotNull,Ir=I.kotlinx.css.get_pct_rcaex3$,Ur=I.kotlinx.css.TextAlign,Dr=I.kotlinx.css.set_textAlign_q2ys32$,Pr=I.kotlinx.css.set_marginLeft_n8chyh$,Mr=I.kotlinx.css.set_width_n8chyh$,kr=I.kotlinx.css.set_marginTop_n8chyh$,jr=I.kotlinx.css.set_marginBottom_n8chyh$,Gr=I.kotlinx.css.set_paddingTop_n8chyh$,qr=I.kotlinx.css.set_paddingBottom_n8chyh$,Fr=I.kotlinx.css.Color,Br=I.kotlinx.css.get_px_rcaex3$,Wr=I.kotlinx.css.set_marginRight_n8chyh$,Hr=I.kotlinx.css.set_flexGrow_if475a$,Vr=I.kotlinx.css.set_zIndex_a6g65m$,Kr=I.kotlinx.css.Position,Xr=I.kotlinx.css.set_position_mvtmy5$,Jr=I.kotlinx.css.set_left_n8chyh$,Yr=I.kotlinx.css.set_top_n8chyh$,Qr=I.kotlinx.css.padding_9vmwvs$,Zr=I.kotlinx.css.set_backgroundColor_ommczd$,ts=I.kotlinx.css.padding_fjjo64$,es=I.kotlinx.css.set_paddingRight_n8chyh$,ns=I.kotlinx.css.get_vh_rcaex3$,is=I.kotlinx.css.set_minWidth_n8chyh$,os=I.kotlinx.css.set_bottom_n8chyh$,rs=I.kotlinx.css.set_right_n8chyh$,ss=I.kotlinx.css.Cursor,as=I.kotlinx.css.set_cursor_hrkqtc$,cs=I.kotlinx.css.margin_fjjo64$,ls=I.kotlinx.css.Align,us=I.kotlinx.css.set_alignItems_olgsez$,hs=I.kotlinx.css.set_alignContent_olgsez$,ds=I.kotlinx.css.get_transition_z7t51k$,ps=I.kotlinx.css.properties.get_ms_rcaex3$,_s=I.kotlinx.css.properties.Timing,ms=I.kotlinx.css.properties.Transition,fs=I.kotlinx.css.set_borderRadius_n8chyh$,gs=I.kotlinx.css.set_padding_krvuuu$,$s=I.kotlinx.css.PointerEvents,Es=I.kotlinx.css.set_pointerEvents_ne887g$,ys=I.kotlinx.css.JustifyContent,bs=I.kotlinx.css.set_justifyContent_gwpzrh$,Ss=I.kotlinx.css.set_paddingLeft_n8chyh$,vs=I.kotlinx.css.margin_9vmwvs$,Cs=I.kotlinx.css.get_em_rcaex3$,Ns=I.kotlinx.css.set_fontSize_n8chyh$,Ts=I.kotlinx.css.get_vw_rcaex3$,Ls=I.kotlinx.css.set_flexShrink_if475a$,zs=I.kotlinx.css.padding_njam0t$,ws=I.kotlinx.css.FlexWrap,Os=I.kotlinx.css.set_flexWrap_6el38z$,Rs=I.kotlinx.css.set_margin_krvuuu$,As=I.kotlinx.css.margin_cx3uck$,xs=I.kotlinx.css.set_border_krvuuu$,Is=I.kotlinx.css.set_minHeight_n8chyh$,Us=I.kotlinx.css.get_rem_rcaex3$,Ds=I.kotlinx.css.VerticalAlign,Ps=I.kotlinx.css.set_verticalAlign_9eaq6d$,Ms=I.kotlinx.css.padding_cx3uck$,ks=I.kotlinx.css.WordBreak,js=I.kotlinx.css.set_wordBreak_d1srv9$,Gs=I.kotlinx.css.set_borderTopRightRadius_n8chyh$,qs=I.kotlinx.css.set_borderBottomRightRadius_n8chyh$,Fs=I.kotlinx.css.set_borderTopLeftRadius_n8chyh$,Bs=I.kotlinx.css.set_borderBottomLeftRadius_n8chyh$,Ws=n.org.kodein.di.DIAware,Hs=n.org.kodein.di.Instance_l95o76$,Vs=vt.kotlinx.serialization.MissingFieldException_init_61zpoe$,Ks=e.kotlin.text.split_ip8yn$,Xs=e.kotlin.text.substringBefore_j4ogox$,Js=e.kotlin.collections.checkIndexOverflow_za3lpa$,Ys=e.kotlin.text.substringAfter_j4ogox$,Qs=e.kotlin.collections.toMap_6hr0sd$,Zs=e.kotlin.coroutines.intrinsics.COROUTINE_SUSPENDED,ta=e.kotlin.coroutines.CoroutineImpl,ea=s.kotlinx.coroutines.await_t11jrl$,na=e.kotlin.text.substringAfterLast_j4ogox$,ia=e.kotlin.text.substringBeforeLast_j4ogox$,oa=new e.Long(-1025769472,2011656),ra=e.Long.ZERO,sa=e.Long.MAX_VALUE,aa=i.com.ustadmobile.core.navigation.UstadSavedStateHandleJs,ca=i.com.ustadmobile.core.util.ext.toStringMap_pvbo06$,la=e.kotlin.ranges.IntRange,ua=e.kotlin.io.println,ha=e.kotlin.text.substring_fc3b62$,da=e.kotlin.text.replace_680rmw$,pa=e.kotlin.collections.joinToString_cgipc5$,_a=e.kotlin.collections.take_ba2ldo$,ma=e.kotlin.collections.joinToString_fmv235$,fa=i.com.ustadmobile.core.controller.AccountListPresenter,ga=e.kotlin.collections.listOf_mh5how$,$a=Ot.react.setState_nm1tvw$,Ea=r.com.ustadmobile.door.ObserverFnWrapper,ya=$.$$importsForInline$$["kotlinx-html-js"].kotlinx.html,ba=$.$$importsForInline$$["kotlinx-html-js"].kotlinx.html.DIV,Sa=$.styled.StyledDOMBuilder,va=$.$$importsForInline$$["kotlinx-html-js"].kotlinx.html.SPAN,Ca=i.com.ustadmobile.core.controller.BitmaskEditPresenter,Na=i.com.ustadmobile.core.model.BitmaskFlag,Ta=i.com.ustadmobile.core.controller.ChatDetailPresenter,La=a.com.ustadmobile.lib.db.entities.MessageRead_init_b9bd0d$,za=e.kotlin.collections.reversed_7wnvza$,wa=i.com.ustadmobile.core.view.EditButtonMode,Oa=i.com.ustadmobile.core.controller.ChatListPresenter,Ra=e.kotlin.text.lastIndexOf_l5u8uk$,Aa=i.com.ustadmobile.core.controller.ClazzAssignmentDetailPresenter,xa=i.com.ustadmobile.core.view.UstadView,Ia=e.kotlin.collections.mapOf_qfcya0$,Ua=i.com.ustadmobile.core.controller.ClazzAssignmentDetailOverviewPresenter,Da=i.com.ustadmobile.core.controller,Pa=e.kotlin.text.isBlank_gw00vp$,Ma=e.kotlin.collections.Map,ka=i.com.ustadmobile.core.controller.ClazzAssignmentDetailStudentProgressPresenter,ja=i.com.ustadmobile.core.controller.ClazzAssignmentDetailStudentProgressOverviewListPresenter,Ga=i.com.ustadmobile.core.controller.ClazzAssignmentEditPresenter,qa=e.kotlin.Pair,Fa=e.kotlin.text.toIntOrNull_pdl1vz$,Ba=i.com.ustadmobile.core.controller.ClazzDetailPresenter,Wa=i.com.ustadmobile.core.controller.ClazzDetailOverviewPresenter,Ha=a.com.ustadmobile.lib.db.entities.ClazzAssignment,Va=r.com.ustadmobile.door.DoorMediatorLiveData,Ka=r.com.ustadmobile.door.lifecycle.Observer,Xa=Rt.io.github.aakira.napier,Ja=i.com.ustadmobile.core.util.ext.isAttendanceEnabledAndRecorded_a89p9$,Ya=i.com.ustadmobile.core.controller.ClazzEdit2Presenter,Qa=i.com.ustadmobile.core.impl.nav.get_viewUri_valqi9$,Za=e.kotlin.collections.toSet_7wnvza$,tc=e.Long.ONE,ec=e.kotlin.collections.mutableListOf_i5x0yv$,nc=i.com.ustadmobile.core.controller.ClazzEnrolmentEditPresenter,ic=i.com.ustadmobile.core.util.ext.personFullName_gj5mh8$,oc=e.kotlin.text.toLong_pdl1vz$,rc=i.com.ustadmobile.core.controller.ClazzEnrolmentListPresenter,sc=i.com.ustadmobile.core.util.ext.roleToString_jnztfp$,ac=i.com.ustadmobile.core.util.ext.outcomeToString_jnztfp$,cc=i.com.ustadmobile.core.controller.ClazzListPresenter,lc=i.com.ustadmobile.core.util.ext.roundTo_lcymw2$,uc=e.kotlin.collections.mutableMapOf_qfcya0$,hc=e.kotlin.collections.plus_mydzjv$,dc=e.kotlin.collections.get_lastIndex_55thoc$,pc=i.com.ustadmobile.core.controller.ClazzLogEditAttendancePresenter,_c=e.kotlin.collections.first_us0mfu$,mc=i.com.ustadmobile.core.controller.ClazzLogEditPresenter,fc=i.com.ustadmobile.core.controller.ClazzLogListAttendancePresenter,gc=i.com.ustadmobile.core.controller.ClazzLogListAttendancePresenter.RecordAttendanceOption.values,$c=e.kotlin.collections.first_2p1efm$,Ec=i.com.ustadmobile.core.controller.ClazzMemberListPresenter,yc=i.com.ustadmobile.core.controller.ContentEntryDetailAttemptsListPresenter,bc=i.com.ustadmobile.core.controller.ContentEntryDetailPresenter,Sc=i.com.ustadmobile.core.controller.ContentEntryDetailOverviewPresenter,vc=i.com.ustadmobile.core.util.ext.calculateScoreWithPenalty_jw4k00$,Cc=e.kotlin.NotImplementedError,Nc=i.com.ustadmobile.core.controller.ContentEntryEdit2Presenter,Tc=i.com.ustadmobile.core.controller.ContentEntryImportLinkPresenter,Lc=i.com.ustadmobile.core.controller.ContentEntryList2Presenter,zc=i.com.ustadmobile.core.util.ext.determineListMode_alv72w$,wc=i.com.ustadmobile.core.view.ListViewMode,Oc=i.com.ustadmobile.core.controller.CourseDiscussionDetailPresenter,Rc=i.com.ustadmobile.core.controller.CourseDiscussionEditPresenter,Ac=i.com.ustadmobile.core.controller.CourseGroupSetDetailPresenter,xc=i.com.ustadmobile.core.controller.CourseGroupSetEditPresenter,Ic=i.com.ustadmobile.core.controller.CourseGroupSetListPresenter,Uc=i.com.ustadmobile.core.controller.CourseTerminologyEditPresenter,Dc=i.com.ustadmobile.core.controller.CourseTerminologyListPresenter,Pc=i.com.ustadmobile.core.controller.DiscussionPostDetailPresenter,Mc=i.com.ustadmobile.core.controller.DiscussionPostEditPresenter,kc=i.com.ustadmobile.core.controller.DiscussionTopicDetailPresenter,jc=a.com.ustadmobile.lib.db.entities.DiscussionPostWithDetails,Gc=i.com.ustadmobile.core.controller.DiscussionTopicEditPresenter,qc=i.com.ustadmobile.core.controller.EpubContentPresenter,Fc=Ot.react.RComponent_init_5xgh2u$,Bc=Ot.react.RComponent,Wc=i.com.ustadmobile.core.controller.HolidayCalendarEditPresenter,Hc=a.com.ustadmobile.lib.db.entities.Holiday,Vc=i.com.ustadmobile.core.controller.HolidayCalendarListPresenter,Kc=a.com.ustadmobile.lib.db.entities.HolidayCalendar,Xc=i.com.ustadmobile.core.controller.HolidayEditPresenter,Jc=i.com.ustadmobile.core.controller.HtmlTextViewDetailPresenter,Yc=xt.com.ustadmobile.lib.util.randomString_19mbxw$,Qc=It.kotlinx.html.set_id_ueiko3$,Zc=It.kotlinx.html.js.set_onLoadFunction_7odi1u$,tl=e.kotlin.collections.slice_6bjbi1$,el=e.kotlin.collections.distinct_7wnvza$,nl=$.$$importsForInline$$["kotlinx-html-js"].kotlinx.html.attributes.enumEncode_m4whry$,il=$.$$importsForInline$$["kotlinx-html-js"].kotlinx.html.attributesMapOf_jyasbz$,ol=$.$$importsForInline$$["kotlinx-html-js"].kotlinx.html.IFRAME,rl=i.com.ustadmobile.core.controller.InviteViaLinkPresenter,sl=i.com.ustadmobile.core.controller.JoinWithCodePresenter,al=i.com.ustadmobile.core.controller.LanguageEditPresenter,cl=i.com.ustadmobile.core.controller.LanguageListPresenter,ll=e.throwUPAE,ul=i.com.ustadmobile.core.controller.LeavingReasonEditPresenter,hl=i.com.ustadmobile.core.controller.LeavingReasonListPresenter,dl=i.com.ustadmobile.core.controller.Login2Presenter,pl=i.com.ustadmobile.core.util.UstadUrlComponents,_l=e.kotlin.Exception,ml=$.$$importsForInline$$["kotlinx-html-js"].kotlinx.html.attributesMapOf_alerag$,fl=$.$$importsForInline$$["kotlinx-html-js"].kotlinx.html.IMG,gl=i.com.ustadmobile.core.controller.ModuleCourseBlockEditPresenter,$l=i.com.ustadmobile.core.controller.PDFContentPresenter,El=i.com.ustadmobile.core.controller.ParentalConsentManagementPresenter,yl=i.com.ustadmobile.core.controller.PersonAccountEditPresenter,bl=i.com.ustadmobile.core.controller.PersonDetailPresenter,Sl=i.com.ustadmobile.core.util.ext.hasFlag_dqglrj$,vl=i.com.ustadmobile.core.controller.PersonEditPresenter,Cl=i.com.ustadmobile.core.controller.PersonListPresenter,Nl=e.kotlin.collections.toMutableMap_abgq59$,Tl=i.com.ustadmobile.core.controller.RedirectPresenter,Ll=i.com.ustadmobile.core.controller.RegisterAgeRedirectPresenter,zl=i.com.ustadmobile.core.controller.ReportDetailPresenter,wl=I.kotlinx.css.set_borderBottom_krvuuu$,Ol=I.kotlinx.css.set_borderTop_krvuuu$,Rl=i.com.ustadmobile.core.controller.ReportEditPresenter,Al=i.com.ustadmobile.core.controller.ReportEditPresenter.DateRangeOptions,xl=i.com.ustadmobile.core.util.IdOption,Il=i.com.ustadmobile.core.util.ext.toDisplayString_c3h9dv$,Ul=a.com.ustadmobile.lib.db.entities.ReportFilter,Dl=i.com.ustadmobile.core.controller.ReportFilterEditPresenter,Pl=i.com.ustadmobile.core.controller.ReportFilterEditPresenter.FilterValueType,Ml=i.com.ustadmobile.core.controller.ReportListPresenter,kl=a.com.ustadmobile.lib.db.entities.ReportSeries,jl=i.com.ustadmobile.core.util.safeParseList_478ej0$,Gl=n.org.kodein.di.get_direct_utb36t$,ql=a.com.ustadmobile.lib.db.entities.ReportWithSeriesWithFilters_init_bj006k$,Fl=i.com.ustadmobile.core.util.ext.generateChartData_nbeg7f$,Bl=s.kotlinx.coroutines.launch_s496o7$,Wl=i.com.ustadmobile.core.controller.ReportTemplateListPresenter,Hl=e.kotlin.collections.hashMapOf_qfcya0$,Vl=i.com.ustadmobile.core.controller.ScheduleEditPresenter,Kl=i.com.ustadmobile.core.controller.ScheduleEditPresenter.FrequencyOption.values,Xl=i.com.ustadmobile.core.controller.ScheduleEditPresenter.DayOptions.values,Jl=i.com.ustadmobile.core.controller.SchoolDetailPresenter,Yl=e.kotlin.collections.plus_iwxh38$,Ql=i.com.ustadmobile.core.util.ext.appendQueryArgs_nnfx2g$,Zl=i.com.ustadmobile.core.controller.SchoolDetailOverviewPresenter,tu=i.com.ustadmobile.core.controller.SchoolEditPresenter,eu=e.kotlin.collections.HashSet_init_287e2$,nu=i.com.ustadmobile.core.controller.SchoolListPresenter,iu=a.com.ustadmobile.lib.db.entities.Person,ou=e.kotlin.collections.firstOrNull_2p1efm$,ru=i.com.ustadmobile.core.util.ext.observeResult_d44pqb$,su=i.com.ustadmobile.core.controller.SchoolMemberListPresenter,au=i.com.ustadmobile.core.controller.ScopedGrantEditPresenter,cu=i.com.ustadmobile.core.controller.SelectExtractFilePresenter,lu=I.kotlinx.css.Visibility,uu=I.kotlinx.css.set_visibility_xorjt0$,hu=It.kotlinx.html.InputType,du=$.$$importsForInline$$["kotlinx-html-js"].kotlinx.html.HEADER,pu=$.$$importsForInline$$["kotlinx-html-js"].kotlinx.html.INPUT,_u=i.com.ustadmobile.core.controller.SelectFilePresenterCommon,mu=r.com.ustadmobile.door.ext.toDoorUri_fu744r$,fu=i.com.ustadmobile.core.controller.SessionListPresenter,gu=i.com.ustadmobile.core.controller.SettingsPresenter,$u=i.com.ustadmobile.core.controller.SiteDetailPresenter,Eu=i.com.ustadmobile.core.controller.SiteEditPresenter,yu=i.com.ustadmobile.core.controller.SiteTermsDetailPresenter,bu=i.com.ustadmobile.core.controller.SiteTermsEditPresenter,Su=i.com.ustadmobile.core.view.SplashScreenView,vu=e.Long.fromInt(10007),Cu=i.com.ustadmobile.core.controller.StatementListPresenter,Nu=i.com.ustadmobile.core.util.ext.countWords_pdl1vz$,Tu=i.com.ustadmobile.core.controller.TextAssignmentEditPresenter,Lu=i.com.ustadmobile.core.controller.TextCourseBlockEditPresenter,zu=i.com.ustadmobile.core.controller.TimeZoneListPresenter,wu=s.kotlinx.coroutines.withContext_i5cbzn$,Ou=i.com.ustadmobile.core.controller.OnSearchSubmitted,Ru=e.kotlin.collections.Collection,Au=r.com.ustadmobile.door.lifecycle.Lifecycle,xu=r.com.ustadmobile.door.ext.concurrentSafeListOf_i5x0yv$,Iu=r.com.ustadmobile.door.lifecycle.DoorState,Uu=r.com.ustadmobile.door.lifecycle.DefaultLifecycleObserver,Du=kt.kotlinx.atomicfu.atomic$int$1,Pu=e.kotlin.IllegalArgumentException,Mu=r.com.ustadmobile.door.lifecycle.LifecycleOwner,ku=n.org.kodein.di.On_e2mfxv$,ju=n.org.kodein.di.DIContext,Gu=i.com.ustadmobile.core.view.UstadDetailView,qu=i.com.ustadmobile.core.controller.UstadSingleEntityPresenter.PersistenceMode,Fu=i.com.ustadmobile.core.view.UstadEditView,Bu=r.com.ustadmobile.door.util.systemTimeInMillis,Wu=i.com.ustadmobile.core.view.ListViewAddMode,Hu=xt.com.ustadmobile.lib.util.copyOnWriteListOf_i5x0yv$,Vu=i.com.ustadmobile.core.view.SelectionOption,Ku=i.com.ustadmobile.core.view.UstadListView,Xu=i.com.ustadmobile.core.controller.OnSortOptionSelected,Ju=i.com.ustadmobile.core.controller.VideoContentPresenter,Yu=$.$$importsForInline$$["kotlinx-html-js"].kotlinx.html.VIDEO,Qu=i.com.ustadmobile.core.controller.WebChunkPresenter,Zu=i.com.ustadmobile.core.controller.XapiPackageContentPresenter,th=r.com.ustadmobile.door.DoorDatabaseRepository,eh=r.com.ustadmobile.door.attachments.retrieveAttachment_ujc7t4$,nh=r.com.ustadmobile.door.DoorUri,ih=Ut.react.dom.set_onClick_evmc4n$,oh=Ut.react.dom.set_onChange_48e8z8$,rh=(Ot.react.createBuilder,i.com.ustadmobile.core.view.RegisterMinorWaitForParentView),sh=Ot.react.createElement_38u3nc$,ah=It.kotlinx.html.js.set_onClickFunction_7odi1u$,ch=e.Long.NEG_ONE,lh=e.kotlin.text.first_gw00vp$,uh=e.kotlin.collections.last_us0mfu$,hh=e.kotlin.collections.copyToArray,dh=e.kotlin.collections.addAll_ipc267$,ph=e.kotlin.collections.sortedWith_eknfly$,_h=e.wrapFunction,mh=e.kotlin.Comparator,fh=i.com.ustadmobile.core.util.defaultJsonSerializer,gh=i.com.ustadmobile.core.util.UstadAntilog,$h=e.kotlin.text.indexOf_l5u8uk$,Eh=xt.com.ustadmobile.lib.util.sanitizeDbNameFromUrl_61zpoe$,yh=e.kotlin.random.Random,bh=i.com.ustadmobile.core.util.ext.getOrPut_kxerl3$,Sh=r.com.ustadmobile.door.util.randomUuid,vh=a.com.ustadmobile.core.db,Ch=r.com.ustadmobile.door.DatabaseBuilderOptions,Nh=a.com.ustadmobile.core.db.ContentJobItemTriggersCallback,Th=a.com.ustadmobile.core.db.ext.addSyncCallback_oam1fn$,Lh=a.com.ustadmobile.core.db.ext.migrationList,zh=e.kotlin.collections.contains_mjy6jw$,wh=qt.react.redux.provider_lppopv$,Oh=Ut.react.dom.render_9jwdg9$;function Rh(t){var n;return new Qe(t.directDI.Instance_ohrpre$(e.isType(n=On(He(We(Be),[],!1)),Rn)?n:An(),null),t,t.di)}function Ah(t){return on.GlobalScope}function xh(t){return t.replicationSubscriptionInitListener=new ln,Ye}function Ih(t){var n,i,o,r,s,a,c=t.directDI.Instance_ohrpre$(e.isType(n=On(He(We(Ze),[],!1)),Rn)?n:An(),null),l=t.directDI.Instance_ohrpre$(e.isType(i=On(He(We(rn),[],!1)),Rn)?i:An(),1),u=sn.Companion.repositoryConfig_z3dmi1$(t,t.context.url+"UmAppDatabase/",c.auth,c.nodeId,t.directDI.Instance_ohrpre$(e.isType(o=On(He(We(an),[],!1)),Rn)?o:An(),null),t.directDI.Instance_ohrpre$(e.isType(r=On(He(We(cn),[],!1)),Rn)?r:An(),null),xh),h=We(rn);if(null==(s=xn.Companion.lookupImplementations_azn0ti$(h).repositoryImplClass))throw Un("Database "+In(h.simpleName)+" does not have a repository!");var d=s,p=e.isType(l,Dn)?Pn(l,h):l,_=e.isType(a=kn(Mn(d),[l,p,u,!0]),rn)?a:An();return jn.Napier.d_82mfvz$("Created JS repo "+_+" Node Id "+u.nodeId.toString(),void 0,Gn.Companion.LOG_TAG),_}function Uh(t){var e;return new cm(null!=(e=tm().getCurrentState().appTheme)?e.theme:null)}function Dh(t){return new bm}function Ph(t){var e=Ve.Companion.newInstance();return e.setNamespaceAware_6taknv$(!0),e}function Mh(t){return Ve.Companion.newInstance()}function kh(t){var n;return t.directDI.Instance_ohrpre$(e.isType(n=On(He(We(Ve),[],!1)),Rn)?n:An(),null).newSerializer()}function jh(t){return on.Dispatchers.Main}function Gh(t){return new fn(t.di,t.context)}function qh(t){return function(n){return n.install_dq2y33$($n.Plugin,function(t){return function(n){var i;return En(n,t.directDI.Instance_ohrpre$(e.isType(i=On(He(We(cn),[],!1)),Rn)?i:An(),null)),Ye}}(t)),n.install_dq2y33$(yn.Plugin),Ye}}function Fh(t){return bn(gn.Js,qh(t))}function Bh(t){var n;return new Sn(void 0,void 0,t.directDI.Instance_ohrpre$(e.isType(n=On(He(We(cn),[],!1)),Rn)?n:An(),null))}function Wh(t){return new vn(t.context,t.di)}function Hh(t,e){return new en(e.endpointUrl)}function Vh(t){return new Nn(t.context,t.di)}function Kh(t){var n,i=t.directDI.Instance_ohrpre$(e.isType(n=On(He(We(Be),[],!1)),Rn)?n:An(),null),o=i.getAppConfigInt_3m4wor$(Xe.AppConfig.KEY_PBKDF2_ITERATIONS,1e4,t),r=i.getAppConfigInt_3m4wor$(Xe.AppConfig.KEY_PBKDF2_KEYLENGTH,512,t);return new Tn(o,r)}function Xh(t){return new zn}function Jh(t){return t.encodeDefaults=!0,t.ignoreUnknownKeys=!0,Ye}function Yh(t){return wn(void 0,Jh)}function Qh(t,n,i,o,r,s){return function(a){var c,l,u,h,d,p=a.Bind_exja01$(e.isType(c=On(He(We(Be),[],!1)),Rn)?c:An(),null,null),_=function(t,n,i,o){return function(r){var s,a,c=new Be(Ve.Companion.newInstance(),r.directDI.Instance_ohrpre$(e.isType(s=On(He(We(Ke),[],!1)),Rn)?s:An(),null),t,n),l=o;for(a=i.entries.iterator();a.hasNext();){var u=a.next(),h=Je(u.key,Xe.AppConfig.KEY_API_URL)?l:u.value;c.setAppPref_5pkmrg$(u.key,h,r)}return c}}(t,n,i,o);p.with_4xqrlc$(new qn(a.scope,a.contextType,a.explicitContext,e.isType(l=On(He(We(Be),[],!1)),Rn)?l:An(),null,!0,_)),a.Bind_exja01$(e.isType(u=On(He(We(Qe),[],!1)),Rn)?u:An(),null,null).with_4xqrlc$(new qn(a.scope,a.contextType,a.explicitContext,e.isType(h=On(He(We(Qe),[],!1)),Rn)?h:An(),null,!0,Rh));var m,f,g,$=a.Bind_exja01$(e.isType(d=On(He(We(Ze),[],!1)),Rn)?d:An(),null,null),E=tn.Companion.Default,y=new Fn(e.isType(m=On(He(We(en),[],!1)),Rn)?m:An(),E),b=function(t){return function(e){return t}}(r);$.with_4xqrlc$(new qn(y.scope,y.contextType,y.explicitContext,e.isType(f=On(He(We(Ze),[],!1)),Rn)?f:An(),null,!0,b));var S,v,C=a.Bind_exja01$(e.isType(g=On(He(We(nn),[],!1)),Rn)?g:An(),14,null);Object.getPrototypeOf(on.GlobalScope).constructor,on.GlobalScope,C.with_4xqrlc$(new Bn(a.contextType,e.isType(S=On(He(We(Object.getPrototypeOf(on.GlobalScope).constructor),[],!1)),Rn)?S:An(),Ah));var N,T,L,z=a.Bind_exja01$(e.isType(v=On(He(We(rn),[],!1)),Rn)?v:An(),1,null),w=tn.Companion.Default,O=new Fn(e.isType(N=On(He(We(en),[],!1)),Rn)?N:An(),w),R=function(t){return function(e){return t}}(s);z.with_4xqrlc$(new qn(O.scope,O.contextType,O.explicitContext,e.isType(T=On(He(We(rn),[],!1)),Rn)?T:An(),null,!0,R));var A,x,I,U,D,P,M,k,j,G,q,F,B,W,H,V,K=a.Bind_exja01$(e.isType(L=On(He(We(rn),[],!1)),Rn)?L:An(),2,null),X=tn.Companion.Default,J=new Fn(e.isType(A=On(He(We(en),[],!1)),Rn)?A:An(),X);K.with_4xqrlc$(new qn(J.scope,J.contextType,J.explicitContext,e.isType(x=On(He(We(rn),[],!1)),Rn)?x:An(),null,!0,Ih)),a.constant_obdoaf$(un.Companion.TAG_DOWNLOAD_ENABLED).With_q0tj0z$(e.isType(I=On(He(hn,[],!1)),Rn)?I:An(),!1),a.Bind_exja01$(e.isType(U=On(He(We(cm),[],!1)),Rn)?U:An(),null,null).with_4xqrlc$(new qn(a.scope,a.contextType,a.explicitContext,e.isType(D=On(He(We(cm),[],!1)),Rn)?D:An(),null,!0,Uh)),a.Bind_exja01$(e.isType(P=On(He(We(dn),[],!1)),Rn)?P:An(),null,null).with_4xqrlc$(new qn(a.scope,a.contextType,a.explicitContext,e.isType(M=On(He(We(bm),[],!1)),Rn)?M:An(),null,!0,Dh)),a.Bind_exja01$(e.isType(k=On(He(We(Ve),[],!1)),Rn)?k:An(),1,null).with_4xqrlc$(new qn(a.scope,a.contextType,a.explicitContext,e.isType(j=On(He(We(Ve),[],!1)),Rn)?j:An(),null,!0,Ph)),a.Bind_exja01$(e.isType(G=On(He(We(Ve),[],!1)),Rn)?G:An(),0,null).with_4xqrlc$(new qn(a.scope,a.contextType,a.explicitContext,e.isType(q=On(He(We(Ve),[],!1)),Rn)?q:An(),null,!0,Mh)),a.Bind_exja01$(e.isType(F=On(He(We(pn),[],!1)),Rn)?F:An(),null,null).with_4xqrlc$(new Bn(a.contextType,e.isType(B=On(He(We(pn),[],!1)),Rn)?B:An(),kh)),a.Bind_exja01$(e.isType(W=On(He(We(_n),[],!1)),Rn)?W:An(),16,null).with_4xqrlc$(new qn(a.scope,a.contextType,a.explicitContext,e.isType(H=On(He(We(mn),[],!1)),Rn)?H:An(),null,!0,jh));var Y,Q,Z,tt,et,nt,it,ot=a.Bind_exja01$(e.isType(V=On(He(We(fn),[],!1)),Rn)?V:An(),null,null),rt=tn.Companion.Default,st=new Fn(e.isType(Y=On(He(We(en),[],!1)),Rn)?Y:An(),rt);ot.with_4xqrlc$(new qn(st.scope,st.contextType,st.explicitContext,e.isType(Q=On(He(We(fn),[],!1)),Rn)?Q:An(),null,!0,Gh)),a.Bind_exja01$(e.isType(Z=On(He(We(an),[],!1)),Rn)?Z:An(),null,null).with_4xqrlc$(new qn(a.scope,a.contextType,a.explicitContext,e.isType(tt=On(He(We(an),[],!1)),Rn)?tt:An(),null,!0,Fh)),a.Bind_exja01$(e.isType(et=On(He(We(Ke),[],!1)),Rn)?et:An(),null,null).with_4xqrlc$(new qn(a.scope,a.contextType,a.explicitContext,e.isType(nt=On(He(We(Sn),[],!1)),Rn)?nt:An(),null,!0,Bh));var at,ct,lt,ut,ht,dt=a.Bind_exja01$(e.isType(it=On(He(We(vn),[],!1)),Rn)?it:An(),null,null),pt=tn.Companion.Default,_t=new Fn(e.isType(at=On(He(We(en),[],!1)),Rn)?at:An(),pt);dt.with_4xqrlc$(new qn(_t.scope,_t.contextType,_t.explicitContext,e.isType(ct=On(He(We(vn),[],!1)),Rn)?ct:An(),null,!0,Wh)),a.RegisterContextTranslator_5jq22i$(new Wn(e.isType(lt=On(He(We(Cn),[],!1)),Rn)?lt:An(),e.isType(ut=On(He(We(en),[],!1)),Rn)?ut:An(),Hh));var mt,ft,gt,$t,Et,yt,bt,St,vt=a.Bind_exja01$(e.isType(ht=On(He(We(Nn),[],!1)),Rn)?ht:An(),null,null),Ct=tn.Companion.Default,Nt=new Fn(e.isType(mt=On(He(We(en),[],!1)),Rn)?mt:An(),Ct);return vt.with_4xqrlc$(new qn(Nt.scope,Nt.contextType,Nt.explicitContext,e.isType(ft=On(He(We(Nn),[],!1)),Rn)?ft:An(),null,!0,Vh)),a.Bind_exja01$(e.isType(gt=On(He(We(Tn),[],!1)),Rn)?gt:An(),null,null).with_4xqrlc$(new qn(a.scope,a.contextType,a.explicitContext,e.isType($t=On(He(We(Tn),[],!1)),Rn)?$t:An(),null,!0,Kh)),a.Bind_exja01$(e.isType(Et=On(He(We(Ln),[],!1)),Rn)?Et:An(),null,null).with_4xqrlc$(new qn(a.scope,a.contextType,a.explicitContext,e.isType(yt=On(He(We(zn),[],!1)),Rn)?yt:An(),null,!0,Xh)),a.Bind_exja01$(e.isType(bt=On(He(We(cn),[],!1)),Rn)?bt:An(),null,null).with_4xqrlc$(new qn(a.scope,a.contextType,a.explicitContext,e.isType(St=On(He(We(cn),[],!1)),Rn)?St:An(),null,!0,Yh)),Ye}}function Zh(t,e,n,i,o,r){return Fe.Companion.invoke_ys71a$(void 0,Qh(o,r,n,i,e,t))}function td(t,e,n,i,o,r){return void 0===e&&(e="primary"),void 0===n&&(n="fixed"),void 0===i&&(i=null),void 0===o&&(o=!1),void 0===r&&(r=null),U_(t,d.default,i,r,(s=e,a=n,c=o,function(t){return t.attrs.color=s,t.attrs.position=a,t.attrs.enableColorOnDark=c,Ye}));var s,a,c}function ed(t,e,n,i,o,r,s,a,c){return void 0===e&&(e=null),void 0===n&&(n=null),void 0===i&&(i=null),void 0===o&&(o="circular"),void 0===r&&(r=null),void 0===s&&(s=null),void 0===a&&(a=null),void 0===c&&(c=null),U_(t,p.default,a,c,(l=r,u=n,h=s,d=e,_=i,m=o,function(t){if(null!=l){var e=l;t.attrs.imgProps=e}if(null!=u){var n=u;t.attrs.alt=n}if(null!=h){var i=h;t.attrs.sizes=i}if(null!=d){var o=d;t.attrs.src=o}if(null!=_){var r=_;t.attrs.srcSet=r}return t.attrs.variant=m,Ye}));var l,u,h,d,_,m}function nd(t,e,n){return function(i){return i.attrs.onChange=function(t){return function(e,n){return null!=t&&t(e.nativeEvent,n),Ye}}(t),i.attrs.showLabels=e,i.attrs.value=n,Ye}}function id(t,e,n,i,o,r){return void 0===e&&(e=!1),void 0===n&&(n=!1),void 0===i&&(i=null),void 0===o&&(o=null),void 0===r&&(r=null),U_(t,_.default,o,r,nd(i,n,e))}function od(t,e,n,i,o,r,s){return void 0===e&&(e=null),void 0===n&&(n=null),void 0===i&&(i=null),void 0===o&&(o=null),void 0===r&&(r=null),void 0===s&&(s=null),U_(t,m.default,r,s,(a=n,c=e,l=i,u=o,function(t){if(null!=a){var e=a;t.attrs.icon=Rp(t,e)}if(null!=c){var n=c;t.attrs.label=n}if(null!=l){var i=l;t.attrs.showLabel=i}if(null!=u){var o=u;t.attrs.value=o}return Ye}));var a,c,l,u}function rd(t){return TE().startIcon(t.css),Ye}function sd(t){return TE().endIcon(t.css),Ye}function ad(t,e,n,i,o,r,s,a,c){return function(l){return l.childList.add_11rb$(t),l.attrs.color=e,l.attrs.disabled=n,l.attrs.size=i,l.attrs.variant=o,l.attrs.id=r,l.attrs.startIcon=null!=s?Rp(l,s,void 0,void 0,void 0,rd):null,null!=a&&Rp(l,a,void 0,void 0,void 0,sd),l.attrs.onClick=function(t){return function(e){return ty().stopEventPropagation_za3rmp$(e),null!=t&&t(e.nativeEvent),Ye}}(c),Ye}}function cd(t,n,i,o,r,s,a,c,l,u,h,d){return void 0===i&&(i="secondary"),void 0===o&&(o=null),void 0===r&&(r=!1),void 0===s&&(s=null),void 0===a&&(a="medium"),void 0===c&&(c=null),void 0===l&&(l=null),void 0===u&&(u=Mn(e.getKClassFromExpression(t)).name),void 0===h&&(h=null),void 0===d&&(d=null),U_(t,g.default,h,d,ad(n,i,r,a,o,u,c,l,s))}function ld(t,e,n,i,o,r,s,a,c,l,u){return void 0===n&&(n=null),void 0===i&&(i=null),void 0===o&&(o=null),void 0===r&&(r=null),void 0===s&&(s="default"),void 0===a&&(a="medium"),void 0===c&&(c="filled"),void 0===l&&(l=null),void 0===u&&(u=null),U_(t,E.default,l,u,(h=n,d=s,p=e,_=r,m=i,f=o,g=a,$=c,function(t){if(null!=h){var e=h;t.attrs.avatar=e}if(t.attrs.color=d,t.attrs.label=p,null!=_){var n=_;t.attrs.key=n}if(null!=m){var i=m;t.attrs.onClick=i}if(null!=f){var o=f;t.attrs.onDelete=o}return t.attrs.size=g,t.attrs.variant=$,Ye}));var h,d,p,_,m,f,g,$}function ud(t){return U_(t,y.default)}function hd(t,e){Hn.call(this),this.name$=t,this.ordinal$=e}function dd(){dd=function(){},Ft=new hd("day",0),Bt=new hd("month",1),Wt=new hd("year",2),Ht=new hd("hours",3),Vt=new hd("minutes",4),Kt=new hd("seconds",5)}function pd(){return dd(),Ft}function _d(){return dd(),Bt}function md(){return dd(),Wt}function fd(){return dd(),Ht}function gd(){return dd(),Vt}function $d(){return dd(),Kt}function Ed(t,e,n,i){return function(o){if(o.attrs.onClick=function(t){return function(e){var n,i;return null!=(i=null!=(n=t.inputProps)?n.onClick:null)&&i(e),Ye}}(t),null!=e){var r=e,s=n;o.attrs.value=ny(r,s)}return o.attrs.variant=t.variant,null!=i&&i(o.css),Ye}}function yd(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,S){return void 0===i&&(i=null),void 0===o&&(o=!0),void 0===r&&(r=!1),void 0===s&&(s=null),void 0===a&&(a=null),void 0===c&&(c=!1),void 0===l&&(l=null),void 0===u&&(u=null),void 0===h&&(h=null),void 0===d&&(d=null),void 0===p&&(p=null),void 0===_&&(_=null),void 0===m&&(m=null),void 0===f&&(f="outlined"),void 0===g&&(g=gd()),void 0===$&&($=null),void 0===E&&(E=null),void 0===y&&(y=null),void 0===S&&(S=null),U_(t,b.MobileTimePicker,y,S,(v=e,C=n,N=i,T=s,L=a,z=c,w=l,O=u,R=h,A=d,x=p,I=m,U=_,D=f,P=g,M=$,k=E,j=o,G=r,function(t){return vd(t,t,!0,v,C,N,T,L,z,w,O,R,A,x,I,U,D,P,M,k,j,G),Ye}));var v,C,N,T,L,z,w,O,R,A,x,I,U,D,P,M,k,j,G}function bd(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E){return void 0===i&&(i=null),void 0===o&&(o=null),void 0===r&&(r=null),void 0===s&&(s=!1),void 0===a&&(a=null),void 0===c&&(c=null),void 0===l&&(l=null),void 0===u&&(u=null),void 0===h&&(h=null),void 0===d&&(d=null),void 0===p&&(p=null),void 0===_&&(_="outlined"),void 0===m&&(m=pd()),void 0===f&&(f=null),void 0===g&&(g=null),void 0===$&&($=null),void 0===E&&(E=null),U_(t,S.MobileDatePicker,$,E,(y=e,b=n,v=i,C=o,N=r,T=s,L=a,z=c,w=l,O=u,R=h,A=p,x=d,I=_,U=m,D=f,P=g,function(t){return vd(t,t,!1,y,b,v,C,N,T,L,z,w,O,R,A,x,I,U,D,P),Ye}));var y,b,v,C,N,T,L,z,w,O,R,A,x,I,U,D,P}function Sd(t,e,n,i,o,r,s){return function(a){return a.variant=t,function(t,e,n,i,o,r,s,a){return void 0===i&&(i=null),void 0===o&&(o=null),void 0===r&&(r=!1),void 0===s&&(s=null),void 0===a&&(a=TE().defaultFullWidth),$_(t,n,void 0,s,void 0,void 0,void 0,void 0,void 0,void 0,r,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Ed(e,i,o,a))}(s,a,e,n,i,o,r)}}function vd(t,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S){var v;void 0===s&&(s=null),void 0===a&&(a=null),void 0===c&&(c=null),void 0===l&&(l=!1),void 0===u&&(u=null),void 0===h&&(h=null),void 0===d&&(d=null),void 0===p&&(p=null),void 0===_&&(_=null),void 0===m&&(m=null),void 0===f&&(f=null),void 0===g&&(g="outlined"),void 0===$&&($=pd()),void 0===E&&(E=null),void 0===y&&(y=null),void 0===b&&(b=!0),void 0===S&&(S=!1);var C,N=e.isType(v=n,Xn)?v:An();N.attrs.value=null!=s?s:new Date,N.attrs.onChange=(C=r,function(t){return C(t),Ye}),N.attrs.views=y,N.attrs.openTo=In($),N.attrs.renderInput=Sd(g,o,s,a,l,c,t),null!=_&&(N.attrs.onError=_),null!=d&&(N.attrs.onAccept=d),null!=p&&(N.attrs.onClose=p),N.attrs.inputFormat=null!=a?a.toLowerCase():null,null!=E&&(N.attrs.toolbarTitle=E),i?(null!=u&&(N.attrs.minTime=u),null!=h&&(N.attrs.maxTime=h),N.attrs.ampm=b,N.attrs.ampmInClock=S):(null!=u&&(N.attrs.minDate=u),null!=h&&(N.attrs.maxDate=h))}function Cd(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E){var y,b,S,N,T,L,z,w,O,R,A,x,I,U,D,P,M,k,j;void 0===i&&(i=null),void 0===o&&(o=JE),void 0===r&&(r=null),void 0===s&&(s=!1),void 0===a&&(a=null),void 0===c&&(c=null),void 0===l&&(l=null),void 0===u&&(u=null),void 0===h&&(h=null),void 0===d&&(d=null),void 0===p&&(p=null),void 0===_&&(_="outlined"),void 0===m&&(m=pd()),void 0===f&&(f=null),void 0===g&&(g=["day","year","month"]),void 0===$&&($=null),void 0===E&&(E=null),t.invoke_qk0v40$(v.LocalizationProvider,(y=e,b=n,S=i,N=o,T=r,L=s,z=a,w=c,O=l,R=u,A=h,x=p,I=d,U=_,D=m,P=f,M=g,k=$,j=E,function(t){return t.attrs.dateAdapter=C.AdapterDateFns,bd(t,y,b,S,N,T,L,z,w,O,R,A,x,I,U,D,P,M,k,j),Ye}))}function Nd(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b){var S,N,T,L,z,w,O,R,A,x,I,U,D,P,M,k,j,G,q,F,B;void 0===i&&(i=null),void 0===o&&(o=HE),void 0===r&&(r=null),void 0===s&&(s=!1),void 0===a&&(a=null),void 0===c&&(c=null),void 0===l&&(l=null),void 0===u&&(u=null),void 0===h&&(h=null),void 0===d&&(d=null),void 0===p&&(p=null),void 0===_&&(_="outlined"),void 0===m&&(m=pd()),void 0===f&&(f=null),void 0===g&&(g=["hours","minutes","seconds"]),void 0===$&&($=null),void 0===E&&(E=!1),void 0===y&&(y=!1),void 0===b&&(b=null),t.invoke_qk0v40$(v.LocalizationProvider,(S=e,N=n,T=i,L=E,z=y,w=o,O=r,R=s,A=a,x=c,I=l,U=u,D=h,P=p,M=d,k=_,j=m,G=f,q=g,F=$,B=b,function(t){return t.attrs.dateAdapter=C.AdapterDateFns,yd(t,S,N,T,L,z,w,O,R,A,x,I,U,D,P,M,k,j,G,q,F,B),Ye}))}function Td(t,e,n,i){return function(o){return o.attrs.open=t,o.attrs.fullWidth=e,o.attrs.maxWidth=n,o.attrs.onClose=function(t){return function(e,n){return t(),Ye}}(i),Ye}}function Ld(t,e,n,i,o,r,s){return void 0===i&&(i=!0),void 0===o&&(o=k_()),void 0===r&&(r=null),void 0===s&&(s=null),U_(t,N.default,r,s,Td(e,i,o,n))}function zd(t,e,n,i){return void 0===n&&(n=null),void 0===i&&(i=null),U_(t,T.default,n,i,(o=e,function(t){return t.attrs.children=o,Ye}));var o}function wd(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),U_(t,L.default,e,n)}function Od(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),U_(t,z.default,e,n)}function Rd(t,e,n,i,o,r,s,a){return void 0===e&&(e="fullWidth"),void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===o&&(o="horizontal"),void 0===r&&(r="hr"),void 0===s&&(s=null),void 0===a&&(a=null),U_(t,w.default,s,a,(c=i,l=r,u=n,h=o,d=e,function(t){return t.attrs.absolute=c,t.attrs.component=l,t.attrs.light=u,t.attrs.orientation=h,t.attrs.variant=d,Ye}));var c,l,u,h,d}function Ad(t,e,n,i,o,r,s,a,c){return function(l){if(l.attrs.anchor=t,l.attrs.elevation=e,null!=n){var u=n;l.attrs.ModalProps=u}if(l.attrs.onClose=function(t){return function(e,n){return null!=t&&t(e),Ye}}(i),l.attrs.open=o,null!=r){var h=r;l.attrs.PaperProps=h}if(null!=s){var d=s;l.attrs.SlideProps=d}if(l.attrs.variant=a,null!=c){var p=c;l.attrs.transitionDuration=p}return Ye}}function xd(t,e,n,i,o,r,s,a,c,l,u,h){return void 0===e&&(e=!1),void 0===n&&(n="left"),void 0===i&&(i="temporary"),void 0===o&&(o=null),void 0===r&&(r=16),void 0===s&&(s=null),void 0===a&&(a=null),void 0===c&&(c=null),void 0===l&&(l=null),void 0===u&&(u=null),U_(t,O.default,u,h,Ad(n,r,s,o,e,a,c,i,l))}function Id(t,e,n,i,o,r,s,a){return function(c){if(c.attrs.color=t,c.attrs.disabled=e,c.attrs.onClick=function(t){return function(e){return null!=t&&t(e.nativeEvent),Ye}}(n),null!=i){var l=i;c.attrs.id=l}return c.attrs.size=o,c.attrs.variant=r,Rp(c,s),O_(c,a,"button"),Ye}}function Ud(t,e,n,i,o,r,s,a,c,l,u){return void 0===i&&(i="default"),void 0===o&&(o=!1),void 0===r&&(r=null),void 0===s&&(s="medium"),void 0===a&&(a=null),void 0===c&&(c=null),void 0===l&&(l="extended"),void 0===u&&(u=null),U_(t,R.default,a,u,Id(i,o,r,c,s,l,e,n))}function Dd(t,e,n,i,o,r,s,a,c,l){var u,h,d,p,_,m,f;void 0===e&&(e=!1),void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===o&&(o="none"),void 0===r&&(r=!1),void 0===s&&(s="standard"),void 0===a&&(a=!1),void 0===c&&(c=null),void 0===l&&(l=null),U_(t,A.default,c,l,(u=e,h=n,d=i,p=a,_=o,m=r,f=s,function(t){return t.attrs.disabled=u,t.attrs.error=h,t.attrs.fullWidth=d,t.attrs.hiddenLabel=p,t.attrs.margin=_,t.attrs.required=m,t.attrs.variant=f,TE().defaultFullWidth(t.css),Ye}))}function Pd(t,e,n,i,o,r,s,a,c,l,u,h){var d,p,_,m,f,g,$,E,y;void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===o&&(o=!1),void 0===r&&(r=!1),void 0===s&&(s=!1),void 0===a&&(a="standard"),void 0===c&&(c=null),void 0===l&&(l=null),void 0===u&&(u=null),void 0===h&&(h=null),U_(t,x.default,u,h,(d=l,p=n,_=i,m=o,f=r,g=c,$=s,E=a,y=e,function(t){if(null!=d){var e=d;t.attrs.component=e}if(t.attrs.disabled=p,t.attrs.error=_,t.attrs.filled=m,t.attrs.focused=f,null!=g){var n=g;t.attrs.margin=n}return t.attrs.required=$,t.attrs.variant=E,t.childList.add_11rb$(y),Ye}))}function Md(t,e){Hn.call(this),this.name$=t,this.ordinal$=e}function kd(){kd=function(){},Xt=new Md("stretch",0),Jt=new Md("center",1),Yt=new Md("flexStart",2),Qt=new Md("flexEnd",3),Zt=new Md("spaceBetween",4),te=new Md("spaceAround",5)}function jd(){return kd(),Xt}function Gd(){return kd(),Jt}function qd(){return kd(),Yt}function Fd(){return kd(),Qt}function Bd(){return kd(),Zt}function Wd(){return kd(),te}function Hd(t,e){Hn.call(this),this.name$=t,this.ordinal$=e}function Vd(){Vd=function(){},ee=new Hd("stretch",0),ne=new Hd("center",1),ie=new Hd("flexStart",2),oe=new Hd("flexEnd",3),re=new Hd("baseline",4)}function Kd(){return Vd(),ee}function Xd(){return Vd(),ne}function Jd(){return Vd(),ie}function Yd(){return Vd(),oe}function Qd(){return Vd(),re}function Zd(t,e,n){Hn.call(this),this.sizeVal_8be2vx$=n,this.name$=t,this.ordinal$=e}function tp(){tp=function(){},se=new Zd("cellsFalse",0,!1),ae=new Zd("cellsAuto",1,"auto"),ce=new Zd("cellsTrue",2,!0),le=new Zd("cells1",3,1),ue=new Zd("cells2",4,2),he=new Zd("cells3",5,3),de=new Zd("cells4",6,4),pe=new Zd("cells5",7,5),_e=new Zd("cells6",8,6),me=new Zd("cells7",9,7),fe=new Zd("cells8",10,8),ge=new Zd("cells9",11,9),$e=new Zd("cells10",12,10),Ee=new Zd("cells11",13,11),ye=new Zd("cells12",14,12)}function ep(){return tp(),se}function np(){return tp(),ae}function ip(){return tp(),ce}function op(){return tp(),le}function rp(){return tp(),ue}function sp(){return tp(),he}function ap(){return tp(),de}function cp(){return tp(),pe}function lp(){return tp(),_e}function up(){return tp(),me}function hp(){return tp(),fe}function dp(){return tp(),ge}function pp(){return tp(),$e}function _p(){return tp(),Ee}function mp(){return tp(),ye}function fp(t,e,n){Hn.call(this),this.size_8be2vx$=n,this.name$=t,this.ordinal$=e}function gp(){gp=function(){},be=new fp("spacing0",0,0),Se=new fp("spacing1",1,1),ve=new fp("spacing2",2,2),Ce=new fp("spacing3",3,3),Ne=new fp("spacing4",4,4),Te=new fp("spacing5",5,5),Le=new fp("spacing6",6,6),ze=new fp("spacing7",7,7),we=new fp("spacing8",8,8),Oe=new fp("spacing9",9,9),Re=new fp("spacing10",10,10)}function $p(){return gp(),be}function Ep(){return gp(),Se}function yp(){return gp(),ve}function bp(){return gp(),Ce}function Sp(){return gp(),Ne}function vp(){return gp(),Te}function Cp(){return gp(),Le}function Np(){return gp(),ze}function Tp(){return gp(),we}function Lp(){return gp(),Oe}function zp(){return gp(),Re}function wp(t,e,n,i,o,r,s,a,c,l){return void 0===e&&(e=$p()),void 0===n&&(n=jd()),void 0===i&&(i=Kd()),void 0===o&&(o=Yn.row),void 0===r&&(r="wrap"),void 0===s&&(s=null),void 0===a&&(a=null),void 0===c&&(c=null),void 0===l&&(l=null),U_(t,U.default,c,l,(u=n,h=i,d=o,p=e,_=s,m=a,f=r,function(t){if(t.attrs.alignContent=u,t.attrs.alignItems=h,t.attrs.container=!0,t.attrs.direction=d.toString(),t.attrs.spacing=p.size_8be2vx$,null!=_){var e=_;t.attrs.columnSpacing=e.size_8be2vx$}if(null!=m){var n=m;t.attrs.rowSpacing=n.size_8be2vx$}return t.attrs.wrap=f,Ye}));var u,h,d,p,_,m,f}function Op(t,e,n,i,o,r,s,a,c,l,u,h){return void 0===e&&(e=ep()),void 0===n&&(n=ep()),void 0===i&&(i=ep()),void 0===o&&(o=ep()),void 0===r&&(r=ep()),void 0===s&&(s=Jd()),void 0===a&&(a=null),void 0===c&&(c=null),void 0===l&&(l=Qn.flex),void 0===u&&(u=Yn.column),void 0===h&&(h=null),U_(t,U.default,c,h,(d=n,p=i,_=e,m=r,f=o,g=s,$=a,E=l,y=u,function(t){if(t.attrs.item=!0,null!=d){var e=d;t.attrs.sm=e.sizeVal_8be2vx$}if(null!=p){var n=p;t.attrs.md=n.sizeVal_8be2vx$}if(null!=_){var i=_;t.attrs.xs=i.sizeVal_8be2vx$}if(null!=m){var o=m;t.attrs.xl=o.sizeVal_8be2vx$}if(null!=f){var r=f;t.attrs.lg=r.sizeVal_8be2vx$}if(t.attrs.textAlign=In(g),null!=$){var s=$;t.attrs.zeroMinWidth=s}var a=E,c=y,l=t.css;return Zn(l,a),ti(l,c),Ye}));var d,p,_,m,f,g,$,E,y}function Rp(t,e,n,i,o,r){return void 0===n&&(n="inherit"),void 0===i&&(i="medium"),void 0===o&&(o=null),void 0===r&&(r=null),U_(t,D.default,o,r,(s=e,a=n,c=i,function(t){return t.childList.add_11rb$(s),t.attrs.color=a,t.attrs.fontSize=c,Ye}));var s,a,c}function Ap(t,e,n,i,o,r,s,a,c){return function(l){if(l.attrs.color=t,l.attrs.disabled=e,l.attrs.disableFocusRipple=e,l.attrs.size=n,null!=i){var u=i;l.attrs.edge=u}if(l.attrs.onClick=function(t){return function(e){return ty().stopEventPropagation_za3rmp$(e),null!=t&&t(e.nativeEvent),Ye}}(o),null!=r){var h=r;l.attrs.id=h}return null!=s&&Rp(l,s,a,c),Ye}}function xp(t,e,n,i,o,r,s,a,c,l,u,h){return void 0===e&&(e=null),void 0===n&&(n="default"),void 0===i&&(i=!1),void 0===o&&(o=null),void 0===r&&(r="medium"),void 0===s&&(s="medium"),void 0===a&&(a="inherit"),void 0===c&&(c=null),void 0===l&&(l=null),void 0===u&&(u=null),void 0===h&&(h=null),U_(t,P.default,u,h,Ap(n,i,r,l,o,c,e,a,s))}function Ip(t,e,n,i,o,r,s,a,c,l,u,h,d,p){return void 0===n&&(n=null),void 0===i&&(i=null),void 0===o&&(o=null),void 0===r&&(r=null),void 0===s&&(s=null),void 0===a&&(a=null),void 0===c&&(c="standard"),void 0===l&&(l=null),void 0===u&&(u=!1),void 0===h&&(h=null),void 0===d&&(d=null),void 0===p&&(p=null),U_(t,M.default,d,p,(_=r,m=u,f=n,g=s,$=i,E=a,y=h,b=o,S=l,v=c,C=e,function(t){if(null!=_){var e=_;t.attrs.disabled=e}if(t.attrs.disableAnimation=m,null!=f){var n=f;t.attrs.htmlFor=n}if(null!=g){var i=g;t.attrs.error=i}if(t.attrs.id=$,null!=E){var o=E;t.attrs.focused=o}if(null!=y){var r=y;t.attrs.margin=r}if(null!=b){var s=b;t.attrs.required=s}if(null!=S){var a=S;a&&(t.attrs.shrink=a)}return t.attrs.variant=v,t.childList.add_11rb$(C),Ye}));var _,m,f,g,$,E,y,b,S,v,C}function Up(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y){return function(b){if(null!=t){var S=t;b.attrs.autoFocus=S}if(null!=e){var v=e;b.attrs.defaultValue=v}if(null!=n){var C=n;b.attrs.disabled=C}if(null!=i){var N=i;b.attrs.disableUnderline=N}if(null!=o){var T=o;b.attrs.error=T}if(b.attrs.fullWidth=r,null!=s){var L=s;b.attrs.id=L}if(b.attrs.multiline=a,null!=c){var z=c;b.attrs.name=z}if(null!=l){var w=l;b.attrs.endAdornment=w}if(b.attrs.onChange=function(t){return function(e){return e.persist(),null!=t&&t(e.nativeEvent),Ye}}(u),null!=h){var O=h;b.attrs.placeholder=O}if(null!=d){var R=d;b.attrs.readOnly=R}if(null!=p){var A=p;b.attrs.required=A}if(null!=_){var x=_;b.attrs.rows=x}if(null!=m){var I=m;b.attrs.maxRows=I}if(b.attrs.type=f.toString(),b.attrs.startAdornment=null,null!=g){var U=g;b.attrs.value=U}var D=$;return ei(b.css,D),b.attrs.onKeyDown=function(t){return function(e){return null!=t&&t(e),Ye}}(E),b.attrs.onInput=function(t){return function(e){return null!=t&&t(e),Ye}}(y),Ye}}function Dp(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v){return void 0===e&&(e=null),void 0===n&&(n=null),void 0===i&&(i=null),void 0===o&&(o=null),void 0===r&&(r=null),void 0===s&&(s=!1),void 0===a&&(a=null),void 0===c&&(c=null),void 0===l&&(l=null),void 0===u&&(u=null),void 0===h&&(h="text"),void 0===d&&(d=null),void 0===p&&(p=null),void 0===_&&(_=!1),void 0===m&&(m=null),void 0===g&&(g=null),void 0===$&&($=null),void 0===E&&(E=null),void 0===y&&(y=null),void 0===b&&(b=null),void 0===S&&(S=null),void 0===v&&(v=null),U_(t,k.default,b,v,Up(u,a,i,l,r,s,d,_,p,S,$,c,o,n,m,g,h,e,f,y,E))}function Pp(t,e,n,i,o,r){return void 0===e&&(e=!1),void 0===n&&(n=!1),void 0===i&&(i="ul"),void 0===o&&(o=null),void 0===r&&(r=null),U_(t,j.default,o,r,(s=i,a=e,c=n,function(t){return t.attrs.component=s,t.attrs.dense=a,t.attrs.disablePadding=c,Ye}));var s,a,c}function Mp(t,e,n,i,o,r,s,a){return void 0===e&&(e=!1),void 0===n&&(n=null),void 0===i&&(i="center"),void 0===o&&(o=!0),void 0===r&&(r=null),void 0===s&&(s=null),void 0===a&&(a=null),qp(t,!0,void 0,e,n,void 0,i,void 0,void 0,void 0,o,void 0,r,s,(c=a,function(t){return null!=c&&c(t),Ye}));var c}function kp(t){return function(e){return ed(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return Rp(e,t),Ye}}(t)),Ye}}function jp(t,e,n,i,o,r,s,a,c,l,u,h,d){return void 0===i&&(i=null),void 0===o&&(o=!1),void 0===r&&(r=null),void 0===s&&(s=null),void 0===a&&(a="center"),void 0===c&&(c=!0),void 0===l&&(l=!1),void 0===u&&(u=null),void 0===h&&(h=null),void 0===d&&(d=null),qp(t,!0,void 0,o,r,s,a,void 0,void 0,void 0,c,void 0,u,h,(p=l,_=e,m=n,f=i,g=d,function(t){return p?Fp(t,void 0,kp(_)):Bp(t,_),Wp(t,m,f),null!=g&&g(t),Ye}));var p,_,m,f,g}function Gp(t,e,n,i,o,r,s,a,c,l,u,h){return function(d){if(d.attrs.alignItems=t,d.attrs.autoFocus=e,d.attrs.button=n,null!=i){var p=i;d.attrs.component=p}if(null!=o){var _=o;d.attrs.ContainerProps=_}if(d.attrs.dense=r,d.attrs.disableGutters=s,d.attrs.divider=a,d.attrs.onClick=function(t){return function(e){return ty().stopEventPropagation_za3rmp$(e),null!=t&&t(e.nativeEvent),Ye}}(c),null!=l){var m=l;d.attrs.id=m}if(d.attrs.selected=u,null!=h){var f=h;d.attrs.key=f}return d.attrs.selected=u,Ye}}function qp(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_){return void 0===e&&(e=!1),void 0===n&&(n=null),void 0===i&&(i=!1),void 0===o&&(o=null),void 0===r&&(r=null),void 0===s&&(s="center"),void 0===a&&(a=null),void 0===c&&(c=!1),void 0===l&&(l=!1),void 0===u&&(u=!1),void 0===h&&(h=!1),void 0===d&&(d=null),void 0===p&&(p=null),void 0===_&&(_=null),U_(t,G.default,p,_,Gp(s,h,e,n,a,c,l,u,d,r,i,o))}function Fp(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),U_(t,q.default,e,n)}function Bp(t,e,n,i){return void 0===e&&(e=null),void 0===n&&(n=null),void 0===i&&(i=null),U_(t,F.default,n,i,(o=e,function(t){return null!=o&&Rp(t,o),Ye}));var o}function Wp(t,e,n,i,o,r,s){return void 0===e&&(e=null),void 0===n&&(n=null),void 0===i&&(i=!1),void 0===o&&(o=!1),void 0===r&&(r=null),void 0===s&&(s=null),U_(t,B.default,r,s,(a=o,c=i,l=e,u=n,function(t){if(t.attrs.disableTypography=a,t.attrs.inset=c,null!=l){var e=l;t.attrs.primary=e}if(null!=u){var n=u;t.attrs.secondary=n}return Ye}));var a,c,l,u}function Hp(t,e,n,i,o,r,s){return void 0===n&&(n=null),void 0===i&&(i=null),void 0===o&&(o=null),void 0===r&&(r="menu"),void 0===s&&(s=null),U_(t,V.default,o,s,(a=e,c=i,l=r,u=n,function(t){if(t.attrs.open=a,t.attrs.onClose=function(t){return function(){return null!=t?t():null}}(c),t.attrs.MenuListProps=ii([ni("aria-labelledby","basic-button")]),t.attrs.variant=l,null!=u){var e=u;t.attrs.anchorEl=e}return Ye}));var a,c,l,u}function Vp(t,e,n,i,o,r,s,a,c,l,u){var h,d,p;void 0===n&&(n=null),void 0===i&&(i=!1),void 0===o&&(o=null),void 0===r&&(r=null),void 0===s&&(s=!1),void 0===a&&(a=!1),void 0===c&&(c=null),void 0===l&&(l=null),void 0===u&&(u=null),Xp(t,i,!0,void 0,void 0,o,r,s,a,void 0,void 0,void 0,c,l,(h=n,d=e,p=u,function(t){return null==h?t.unaryPlus_pdl1vz$(d):Wp(t,d,h),null!=p&&p(t),Ye}))}function Kp(t,e,n,i,o,r,s,a,c,l,u,h){return function(d){if(d.attrs.button=t,null!=e){var p=e;d.attrs.component=p}if(d.attrs.containerComponent=n,null!=i){var _=i;d.attrs.containerProps=_}if(d.attrs.dense=o,d.attrs.disabled=r,d.attrs.disableGutters=s,d.attrs.divider=a,d.attrs.onClick=function(t){return function(e){return null!=t&&t(e.nativeEvent),Ye}}(c),null!=l){var m=l;d.attrs.key=m}if(d.attrs.selected=u,null!=h){var f=h;d.attrs.value=f}return Ye}}function Xp(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_){void 0===e&&(e=!1),void 0===n&&(n=!1),void 0===i&&(i=null),void 0===o&&(o="li"),void 0===r&&(r=null),void 0===s&&(s=null),void 0===a&&(a=!1),void 0===c&&(c=!1),void 0===l&&(l=null),void 0===u&&(u=!1),void 0===h&&(h=!1),void 0===d&&(d=null),void 0===p&&(p=null),void 0===_&&(_=null),U_(t,K.default,p,_,Kp(n,i,o,l,u,c,h,a,d,r,e,s))}function Jp(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g){return function($){if(null!=t){var E=t;$.attrs.autoFocus=E}if(null!=e){var y=e;$.attrs.defaultValue=y}if(null!=n){var b=n;$.attrs.disabled=b}if(null!=i){var S=i;$.attrs.error=S}if(null!=o){var v=o;$.attrs.label=v}if($.attrs.fullWidth=r,null!=s){var C=s;$.attrs.id=C}if($.attrs.multiline=a,null!=c){var N=c;$.attrs.name=N}if(null!=l){var T=l;$.attrs.notched=T}if($.attrs.onChange=function(t){return function(e){return null!=t&&t(e.target.value.toString()),Ye}}(u),null!=h){var L=h;$.attrs.placeholder=L}if(null!=d){var z=d;$.attrs.readOnly=z}if(null!=p){var w=p;$.attrs.required=w}if(null!=_){var O=_;$.attrs.rows=O}if(null!=m){var R=m;$.attrs.maxRows=R}if($.attrs.type=f.toString(),null!=g){var A=g;$.attrs.value=A}return Ye}}function Yp(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y){return void 0===e&&(e=null),void 0===n&&(n=null),void 0===i&&(i=null),void 0===o&&(o=null),void 0===r&&(r=null),void 0===s&&(s=null),void 0===a&&(a=!1),void 0===c&&(c=null),void 0===l&&(l=null),void 0===u&&(u=null),void 0===h&&(h=null),void 0===d&&(d="text"),void 0===p&&(p=null),void 0===_&&(_=null),void 0===m&&(m=!1),void 0===f&&(f=null),void 0===g&&(g=null),void 0===$&&($=null),void 0===E&&(E=null),void 0===y&&(y=null),U_(t,X.default,E,y,Jp(h,c,o,s,i,a,p,m,_,u,$,l,r,n,f,g,d,e))}function Qp(t,e,n,i,o,r){return void 0===e&&(e=2),void 0===n&&(n=!1),void 0===i&&(i="elevation"),void 0===o&&(o=null),void 0===r&&(r=null),U_(t,J.default,o,r,(s=e,a=n,c=i,function(t){return t.attrs.elevation=s,t.attrs.square=a,t.attrs.variant=c,Ye}));var s,a,c}function Zp(t,e,n,i,o,r,s){return void 0===e&&(e=null),void 0===n&&(n=null),void 0===i&&(i="indeterminate"),void 0===o&&(o="primary"),void 0===r&&(r=null),U_(t,Y.default,r,s,(a=o,c=i,l=e,u=n,function(t){return t.attrs.color=a,t.attrs.variant=c,t.attrs.value=l,t.attrs.valueBuffer=u,Ye}));var a,c,l,u}function t_(t,e,n,i,o,r,s,a){return void 0===e&&(e=null),void 0===n&&(n="indeterminate"),void 0===i&&(i="primary"),void 0===o&&(o=40),void 0===r&&(r=3.6),void 0===s&&(s=null),U_(t,Q.default,s,a,(c=i,l=n,u=e,h=o,d=r,function(t){return t.attrs.color=c,t.attrs.variant=l,t.attrs.value=u,t.attrs.size=h,t.attrs.thickness=d,Ye}));var c,l,u,h,d}function e_(t,e,n,i,o,r,s,a){return function(c){var l,u;if(null!=t){var h=t;c.attrs.autoHideDuration=h}if(c.attrs.key="horizontal+"+e.name,null!=(l=c.attrs.anchorOrigin)&&(l.horizontal=e),null!=(u=c.attrs.anchorOrigin)&&(u.vertical=n),null!=i){var d=i;c.attrs.key=d}if(c.attrs.message=o,c.attrs.onClose=function(t){return function(e,n){return null!=t&&t(),Ye}}(r),null!=s){var p=s;c.attrs.open=p}if(null!=a){var _=a;c.attrs.resumeHideDuration=_}return Ye}}function n_(t,e,n,i,o,r,s,a,c,l,u){return void 0===n&&(n=null),void 0===i&&(i=null),void 0===o&&(o="center"),void 0===r&&(r="top"),void 0===s&&(s=null),void 0===a&&(a=null),void 0===c&&(c=null),void 0===l&&(l=null),void 0===u&&(u=null),U_(t,Z.default,l,u,e_(a,o,r,s,e,i,n,c))}function i_(t,e,n,i,o){return void 0===n&&(n=!0),void 0===i&&(i=null),void 0===o&&(o=null),U_(t,Ae,i,o,(r=e,s=n,function(t){if(null!=r){var e=r;t.attrs.onSortEnd=e}return t.attrs.allowDrag=s,t.create(),Ye}));var r,s}function o_(t,e,n,i){return void 0===n&&(n=null),void 0===i&&(i=null),U_(t,xe,n,i,(o=e,function(t){return t.attrs.key=o,Ye}));var o}function r_(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),U_(t,Ie,e,n)}function s_(t,e,n,i,o,r,s){return void 0===e&&(e=!1),void 0===n&&(n=!1),void 0===i&&(i="secondary"),void 0===o&&(o="medium"),void 0===r&&(r=null),void 0===s&&(s=null),U_(t,et.default,r,s,(a=e,c=n,l=o,u=i,function(t){if(t.attrs.checked=a,t.attrs.disabled=c,t.attrs.size=l,null!=u){var e=u;t.attrs.color=e}return Ye}));var a,c,l,u}function a_(t,n,i,o,r,s){return void 0===n&&(n=!1),void 0===i&&(i="medium"),void 0===o&&(o="normal"),void 0===r&&(r=null),void 0===s&&(s=null),U_(t,nt.default,r,s,(a=o,c=i,l=n,function(t){var n;return t.attrs.padding=a,t.attrs.size=e.isType(n=c,Object)?n:An(),t.attrs.stickyHeader=l,Ye}));var a,c,l}function c_(t){return Ye}function l_(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),U_(t,it.default,e,n,c_)}function u_(t){return Ye}function h_(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),U_(t,ot.default,e,n,u_)}function d_(t,e,n,i,o){return void 0===e&&(e=null),void 0===n&&(n=!1),void 0===i&&(i=!1),void 0===o&&(o=null),U_(t,rt.default,e,o,(r=n,s=i,function(t){return t.attrs.hover=r,t.attrs.selected=s,Ye}));var r,s}function p_(t,n,i,o,r,s,a,c){return void 0===n&&(n="left"),void 0===i&&(i="normal"),void 0===o&&(o="row"),void 0===r&&(r=1),void 0===s&&(s="medium"),void 0===a&&(a=null),void 0===c&&(c=null),U_(t,st.default,a,c,(l=i,u=s,h=n,d=o,p=r,function(t){var n;return t.attrs.padding=l,t.attrs.size=e.isType(n=u,Object)?n:null,t.attrs.align=h,t.attrs.scope=d,t.attrs.colSpan=p,Ye}));var l,u,h,d,p}function __(t){return Ye}function m_(t,e,n){return void 0===e&&(e=null),void 0===n&&(n=null),U_(t,at.default,e,n,__)}function f_(t,e,n,i,o,r,s,a,c,l,u,h,d,p){return void 0===e&&(e=!1),void 0===n&&(n=!1),void 0===i&&(i="standard"),void 0===o&&(o="horizontal"),void 0===r&&(r="secondary"),void 0===s&&(s="inherit"),void 0===a&&(a=null),void 0===c&&(c="auto"),void 0===l&&(l=null),void 0===u&&(u=null),void 0===h&&(h=null),void 0===d&&(d=null),void 0===p&&(p=null),U_(t,ct.default,d,p,(_=h,m=n,f=r,g=u,$=o,E=l,y=c,b=a,S=s,v=e,C=i,function(t){if(null!=_){var e=_;t.attrs.action=e}if(t.attrs.centered=m,t.attrs.indicatorColor=f,null!=g){var n=g;t.attrs.onChange=n}if(t.attrs.orientation=$,null!=E){var i=E;t.attrs.ScrollButtonComponent=i}if(t.attrs.scrollButtons=y,null!=b){var o=b;t.attrs.TabIndicatorProps=o}return t.attrs.textColor=S,t.attrs.value=v,t.attrs.variant=C,Ye}));var _,m,f,g,$,E,y,b,S,v,C}function g_(t,e,n,i,o,r,s){return void 0===n&&(n=e),void 0===i&&(i=null),void 0===o&&(o=!1),void 0===r&&(r=null),void 0===s&&(s=null),U_(t,lt.default,r,s,(a=o,c=i,l=e,u=n,function(t){if(t.attrs.disabled=a,null!=c){var e=c;t.attrs.icon=e}return t.attrs.label=l,t.attrs.value=u,Ye}));var a,c,l,u}function $_(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b){return void 0===n&&(n=null),void 0===i&&(i=null),void 0===o&&(o=null),void 0===r&&(r="outlined"),void 0===s&&(s=null),void 0===a&&(a="text"),void 0===c&&(c=!1),void 0===l&&(l=!1),void 0===u&&(u=!1),void 0===h&&(h=!1),void 0===d&&(d=!1),void 0===p&&(p="normal"),void 0===_&&(_=null),void 0===m&&(m=null),void 0===f&&(f=null),void 0===g&&(g=null),void 0===$&&($=null),void 0===E&&(E=!0),void 0===y&&(y=null),void 0===b&&(b=null),U_(t,ut.default,g,b,(S=_,v=h,C=l,N=u,T=d,L=i,z=m,w=e,O=p,R=f,A=s,x=o,I=c,U=a,D=n,P=r,M=$,k=E,j=y,function(t){return TE().defaultFullWidth(t.css),v_(t,S,v,C,N,T,L,z,w,O,!1,R,A,x,I,null,null,!1,U,D,P,M,k,j),Ye}));var S,v,C,N,T,L,z,w,O,R,A,x,I,U,D,P,M,k,j}function E_(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y){return void 0===n&&(n=null),void 0===i&&(i=null),void 0===o&&(o=null),void 0===r&&(r="standard"),void 0===s&&(s=null),void 0===a&&(a=!1),void 0===c&&(c=!1),void 0===l&&(l=!1),void 0===u&&(u=!1),void 0===h&&(h=!1),void 0===d&&(d="normal"),void 0===p&&(p=null),void 0===_&&(_=null),void 0===m&&(m=null),void 0===f&&(f=null),void 0===g&&(g=null),void 0===$&&($=null),void 0===E&&(E=!0),void 0===y&&(y=null),U_(t,ut.default,g,y,(b=u,S=c,v=l,C=h,N=i,T=m,L=e,z=d,w=f,O=s,R=o,A=a,x=p,I=_,U=n,D=r,P=$,M=E,function(t){return TE().defaultFullWidth(t.css),v_(t,null,b,S,v,C,N,T,L,z,!0,w,O,R,A,x,I,!1,"text",U,D,P,M),Ye}));var b,S,v,C,N,T,L,z,w,O,R,A,x,I,U,D,P,M}function y_(t){return TE().alignTextToStart(t.css),Ye}function b_(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$){return void 0===n&&(n=null),void 0===i&&(i=null),void 0===o&&(o=null),void 0===r&&(r=ri()),void 0===s&&(s="outlined"),void 0===a&&(a=null),void 0===c&&(c=!1),void 0===l&&(l=!1),void 0===u&&(u=!1),void 0===h&&(h=!1),void 0===d&&(d=!1),void 0===p&&(p="normal"),void 0===_&&(_=null),void 0===m&&(m=null),void 0===f&&(f=null),void 0===g&&(g=null),void 0===$&&($=null),U_(t,ut.default,g,$,(E=_,y=h,b=l,S=u,v=d,C=i,N=m,T=e,L=p,z=f,w=a,O=o,R=c,A=n,x=s,I=r,function(t){v_(t,E,y,b,S,v,C,N,T,L,!1,z,w,O,R,null,null,!0,"text",A,x);var e,n=t.css;if(n.unaryPlus_uoyjcc$(TE().defaultFullWidth),n.unaryPlus_uoyjcc$(TE().alignTextToStart),null!=I&&!I.isEmpty())for(e=I.iterator();e.hasNext();){var i=e.next();Vp(t,i.second,void 0,void 0,void 0,i.first,void 0,void 0,void 0,void 0,y_)}return Ye}));var E,y,b,S,v,C,N,T,L,z,w,O,R,A,x,I}function S_(t){var e,n=t.target.value;return t.target.value=(null!=(e=null!=n?n.toString():null)?e:"").toLowerCase(),Ye}function v_(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v){var C,N,T,L;void 0===b&&(b=null),void 0===S&&(S=!0),void 0===v&&(v=null),null!=e&&(t.attrs.autoComplete=e),t.attrs.autoFocus=n,t.attrs.disabled=i,t.attrs.error=o,t.attrs.fullWidth=r,null!=s&&(t.attrs.helperText=s),null!=a&&(t.attrs.id=a),t.attrs.label=c,t.attrs.margin=l,t.attrs.multiline=u,null!=h&&(t.attrs.name=h),t.attrs.onChange=(C=g,N=d,function(t){var e,n;C||t.persist();var i=t.target.value;return n=null!=(e=null!=i?i.toString():null)?e:"",null!=N&&N(n),Ye}),null!=p&&(t.attrs.placeholder=p),t.attrs.required=_,null!=m&&(t.attrs.rows=m),null!=f&&(t.attrs.maxRows=f),t.attrs.select=g,t.attrs.type=$,t.attrs.value=null!=E?E:"",t.attrs.onClick=(T=v,function(t){return null!=T&&T(),Ye}),t.attrs.variant=y,S||(t.attrs.onInput=S_),null!=b&&0!==b.length&&(t.attrs.onKeyDown=(L=b,function(t){return oi(L,t.key)&&t.preventDefault(),Ye}))}function C_(t){return new ai(Ue.spacing(t).toString())}function N_(t,e,n){var i,o;void 0===e&&(e=Ue),void 0===n&&(n=null),t.invoke_qk0v40$(_t.default,(i=e,o=n,function(t){return t.attrs.theme=i,null!=o&&o(t),Ye}))}function T_(t,n,i,o,r,s){return function(a){return a.attrs.orientation=t,a.attrs.size=n,a.attrs.disabled=i,a.attrs.value=o,a.attrs.onChange=function(t){return function(n,i){var o,r;return r=e.isType(o=i,ci)?o:An(),null!=t&&t(r),Ye}}(r),a.attrs.color=s,Ye}}function L_(t,e,n,i,o,r,s,a,c){return void 0===e&&(e=null),void 0===n&&(n="horizontal"),void 0===i&&(i="medium"),void 0===o&&(o="standard"),void 0===r&&(r=!1),void 0===s&&(s=null),void 0===a&&(a=null),void 0===c&&(c=null),U_(t,mt.default,s,c,T_(n,i,r,e,a,o))}function z_(t,e,n,i,o,r,s,a){return void 0===n&&(n="medium"),void 0===i&&(i="standard"),void 0===o&&(o=!1),void 0===r&&(r=!1),void 0===s&&(s=null),void 0===a&&(a=null),U_(t,ft.default,s,a,(c=o,l=n,u=r,h=e,d=i,function(t){return t.attrs.selected=c,t.attrs.size=l,t.attrs.disabled=u,t.attrs.value=h,t.attrs.color=d,Ye}));var c,l,u,h,d}function w_(t,e,n,i,o){return void 0===e&&(e=!1),void 0===n&&(n="regular"),void 0===i&&(i=null),void 0===o&&(o=null),U_(t,gt.default,i,o,(r=e,s=n,function(t){return t.attrs.disableGutters=r,t.attrs.variant=s,Ye}));var r,s}function O_(t,e,n,i,o,r,s,a,c,l){return void 0===e&&(e=null),void 0===n&&(n="body1"),void 0===i&&(i="left"),void 0===o&&(o=!1),void 0===r&&(r=!1),void 0===s&&(s=null),void 0===a&&(a=!1),void 0===c&&(c=null),void 0===l&&(l=null),U_(t,$t.default,c,l,(u=i,h=o,d=r,p=s,_=a,m=n,f=e,function(t){if(t.attrs.align=u.toString(),t.attrs.gutterBottom=h,t.attrs.noWrap=d,null!=p){var e=p;t.attrs.component=e}if(t.attrs.paragraph=_,t.attrs.variant=m,null!=f){var n=f;t.childList.add_11rb$(n)}return ui(t.css,li.preLine),Ye}));var u,h,d,p,_,m,f}function R_(t,e){return oi(t,"height",!0)||oi(t,"width",!0)?e+"px":e}function A_(t,e){return function(n){var i,o=Object.keys(t);for(i=0;i!==o.length;++i){var r=o[i],s=e,a=t[r];n.put_puj7f4$(r,s(r,a))}return Ye}}function x_(t,n){var i,o=R_,r=Object.keys(n);for(i=0;i!==r.length;++i){var s=r[i],a=n[s],c=null!=a;if(c&&(c=Je(typeof a,"object")),c)if(hi(s,"@media",!0)){var l,u=s.substring(6),h=di(e.isCharSequence(l=u)?l:An()).toString();t.media_v44dnz$(h,A_(a,o))}else console.error("Don't know how to handle non query sub-object");else t.put_puj7f4$(s,o(s,a))}}function I_(t){var n,i,o,r,s,a;return null!=(a=null!=(s=null!=(i=e.isType(n=t.target,HTMLInputElement)?n:null)?i.value:null)?s:null!=(r=e.isType(o=t.target,HTMLTextAreaElement)?o:null)?r.value:null)?a:t.target.value.toString()}function U_(t,e,n,i,o){void 0===n&&(n=null),void 0===i&&(i=null),void 0===o&&(o=null);var r=Xn.Companion.invoke_k87xji$(e);r.attrs.className=null!=n?n:null,null!=o&&o(r),null!=i&&i(r);var s=r.create();return t.child_30b5ua$(s),s}function D_(t,e){Hn.call(this),this.name$=t,this.ordinal$=e}function P_(){P_=function(){},Pe=new D_("xs",0),Me=new D_("sm",1),ke=new D_("md",2),je=new D_("lg",3),Ge=new D_("xl",4)}function M_(){return P_(),Pe}function k_(){return P_(),Me}function j_(){return P_(),ke}function G_(){return P_(),je}function q_(){return P_(),Ge}function F_(t){return hi(t,"@media")?t.substring(6):t}function B_(t,e){return F_(t.up(e.toString()))}function W_(t,e){return F_(t.down(e.toString()))}function H_(t,e){void 0===t&&(t=null),void 0===e&&(e=null);var n=null!=t?t:{};return yt.createTheme(n,e)}function V_(){var t;K_=this,this.destinationList=Bo([new J_("school",2910,pi.Companion.VIEW_NAME,We(xv),!0),new J_("library_books",2909,_i.Companion.VIEW_NAME_HOME,We(cT),!0),new J_(void 0,void 0,_i.Companion.VIEW_NAME,We(cT),!0),new J_(void 0,void 0,mi.Companion.VIEW_NAME,We(Lx)),new J_("person",2293,fi.Companion.VIEW_NAME,We(RR),!0),new J_("message",2907,gi.Companion.VIEW_NAME,We(Yy),!0),new J_("pie_chart",2071,$i.Companion.VIEW_NAME,We(RA),void 0,void 0,!0),new J_("settings",2052,Ei.Companion.VIEW_NAME,We(gI)),new J_(void 0,void 0,yi.Companion.VIEW_NAME,We(Sy)),new J_(void 0,2001,bi.Companion.VIEW_NAME,We(iw),void 0,!1),new J_(void 0,void 0,Si.Companion.VIEW_NAME,We(jC)),new J_(void 0,void 0,vi.Companion.VIEW_NAME,We(WC)),new J_(void 0,void 0,Ci.Companion.VIEW_NAME,We(kC),!0),new J_(void 0,void 0,Ni.Companion.VIEW_NAME,We(xL)),new J_(void 0,void 0,Ti.Companion.VIEW_NAME,We(PO)),new J_(void 0,void 0,Li.Companion.VIEW_NAME,We($O)),new J_(void 0,void 0,zi.Companion.VIEW_NAME,We(rR)),new J_(void 0,void 0,zi.Companion.VIEW_NAME_REGISTER,We(rR),void 0,!1),new J_(void 0,void 0,wi.Companion.VIEW_NAME,We(qD)),new J_(void 0,void 0,Oi.Companion.VIEW_NAME,We(MD)),new J_(void 0,void 0,Ri.Companion.VIEW_NAME,We(Qw)),new J_(void 0,void 0,Ai.Companion.VIEW_NAME,We(OU),!0),new J_(void 0,void 0,xi.Companion.VIEW_NAME,We(sz),!0),new J_(void 0,void 0,Ii.Companion.VIEW_NAME,We(tz)),new J_(void 0,void 0,Ui.Companion.VIEW_NAME,We(cz)),new J_(void 0,void 0,Di.Companion.VIEW_NAME,We(jD)),new J_(void 0,void 0,Pi.Companion.VIEW_NAME,We(AR)),new J_(void 0,void 0,Mi.Companion.VIEW_NAME,We(xR),void 0,!1),new J_(void 0,void 0,ki.Companion.VIEW_NAME,We(xI)),new J_(void 0,void 0,ki.Companion.VIEW_NAME_ACCEPT_TERMS,We(xI),void 0,!1),new J_(void 0,void 0,ji.Companion.VIEW_NAME,We(DI)),new J_(void 0,void 0,Gi.Companion.VIEW_NAME,We(CI)),new J_(void 0,void 0,qi.Companion.VIEW_NAME,We(zI)),new J_(void 0,void 0,Fi.Companion.VIEW_NAME,We(pS)),new J_(void 0,void 0,Bi.Companion.VIEW_NAME,We(IS)),new J_(void 0,void 0,Wi.Companion.VIEW_NAME,We(OC),!0),new J_(void 0,void 0,Hi.Companion.VIEW_NAME,We($S)),new J_(void 0,void 0,Vi.Companion.VIEW_NAME,We(_C)),new J_(void 0,void 0,Ki.Companion.VIEW_NAME,We(lC)),new J_(void 0,void 0,Xi.Companion.VIEW_NAME,We(Wv)),new J_(void 0,void 0,Ji.Companion.VIEW_NAME,We(JA)),new J_(void 0,void 0,Yi.Companion.VIEW_NAME,We(QA)),new J_(void 0,void 0,Qi.Companion.VIEW_NAME,We(Px),!0),new J_(void 0,void 0,Zi.Companion.VIEW_NAME,We(gv)),new J_(void 0,void 0,to.Companion.VIEW_NAME,We(CU)),new J_(void 0,void 0,eo.Companion.VIEW_NAME,We(Uw)),new J_(void 0,void 0,no.Companion.VIEW_NAME,We(rL)),new J_(void 0,void 0,io.Companion.VIEW_NAME,We(eL)),new J_(void 0,void 0,oo.Companion.VIEW_NAME,We(GA)),new J_(void 0,void 0,ro.Companion.VIEW_NAME,We(wz)),new J_(void 0,void 0,so.Companion.VIEW_NAME,We(px)),new J_(void 0,void 0,ao.Companion.VIEW_NAME,We(Wx)),new J_(void 0,void 0,co.Companion.VIEW_NAME,We(rO)),new J_(void 0,void 0,lo.Companion.VIEW_NAME,We(jy)),new J_(void 0,void 0,uo.Companion.VIEW_NAME,We(yN)),new J_(void 0,void 0,ho.Companion.VIEW_NAME,We(qz),!0),new J_(void 0,void 0,po.Companion.VIEW_NAME,We(Pz)),new J_(void 0,void 0,_o.Companion.VIEW_NAME,We(iT)),new J_(void 0,void 0,mo.Companion.VIEW_NAME,We(Sz)),new J_(void 0,void 0,fo.Companion.VIEW_NAME,We(zv)),new J_(void 0,void 0,go.Companion.VIEW_NAME,We(Xz)),new J_(void 0,void 0,$o.Companion.VIEW_NAME,We(Hz)),new J_(void 0,void 0,Eo.Companion.VIEW_NAME,We(Bb)),new J_(void 0,void 0,yo.Companion.VIEW_NAME,We(eb)),new J_(void 0,void 0,bo.Companion.VIEW_NAME,We(ab)),new J_(void 0,void 0,So.Companion.VIEW_NAME,We(jb)),new J_(void 0,void 0,vo.Companion.VIEW_NAME,We(Lb)),new J_(void 0,void 0,Co.Companion.VIEW_NAME,We(lI),!0),new J_(void 0,void 0,No.Companion.VIEW_NAME,We(bU)),new J_(void 0,void 0,To.Companion.VIEW_NAME,We(mz)),new J_(void 0,void 0,Lo.Companion.VIEW_NAME,We(oI)),new J_(void 0,void 0,zo.Companion.VIEW_NAME,We(tU)),new J_(void 0,void 0,wo.Companion.VIEW_NAME,We(DA)),new J_(void 0,void 0,Oo.Companion.VIEW_NAME,We(tA)),new J_(void 0,void 0,Ro.Companion.VIEW_NAME,We($A)),new J_(void 0,void 0,_i.Companion.FOLDER_VIEW_NAME,We(cT)),new J_(void 0,void 0,Lo.Companion.VIEW_NAME,We(oI)),new J_(void 0,void 0,Ao.Companion.VIEW_NAME,We(QT)),new J_(void 0,void 0,xo.Companion.VIEW_NAME,We(FT)),new J_(void 0,void 0,Io.Companion.VIEW_NAME,We(kT)),new J_(void 0,void 0,Uo.Companion.VIEW_NAME,We(Fy)),new J_(void 0,void 0,Do.Companion.VIEW_NAME,We(jR)),new J_(void 0,void 0,Po.Companion.VIEW_NAME,We(LT)),new J_(void 0,void 0,Mo.Companion.VIEW_NAME,We(OL)),new J_(void 0,void 0,ko.Companion.VIEW_NAME,We(gT)),new J_(void 0,void 0,jo.Companion.VIEW_NAME,We(bL)),new J_(void 0,void 0,Go.Companion.VIEW_NAME,We(gL)),new J_(void 0,void 0,qo.Companion.VIEW_NAME,We(sL)),new J_(void 0,void 0,Fo.Companion.VIEW_NAME,We(Yx))]),this.componentClassToViewNamesMap_rhgr2z$_0=Wo((t=this,function(){var e,n=t.destinationList,i=Jo();for(e=n.iterator();e.hasNext();){var o,r=e.next(),s=r.component,a=i.get_11rb$(s);if(null==a){var c=Yo();i.put_xwzc9p$(s,c),o=c}else o=a;o.add_11rb$(r)}var l,u=i.entries,h=Zo(Qo(Ko(u,10)),16),d=tr(h);for(l=u.iterator();l.hasNext();){var p,_=l.next(),m=_.key,f=_.value,g=Xo(Ko(f,10));for(p=f.iterator();p.hasNext();){var $=p.next();g.add_11rb$($.view)}var E=ni(m,g);d.put_xwzc9p$(E.first,E.second)}return d}));var e,n=this.destinationList;t:do{var i;for(i=n.iterator();i.hasNext();){var o=i.next();if(Je(o.view,Pi.Companion.VIEW_NAME)){e=o;break t}}throw new Vo("Collection contains no element matching the predicate.")}while(0);var r=e;r.component=We(AR),this.defaultDestination=r;var s,a=this.destinationList;t:do{var c;for(c=a.iterator();c.hasNext();){var l=c.next();if(Je(l.view,_i.Companion.VIEW_NAME_HOME)){s=l;break t}}throw new Vo("Collection contains no element matching the predicate.")}while(0);this.firstDestination=s}hd.prototype=Object.create(Hn.prototype),hd.prototype.constructor=hd,Md.prototype=Object.create(Hn.prototype),Md.prototype.constructor=Md,Hd.prototype=Object.create(Hn.prototype),Hd.prototype.constructor=Hd,Zd.prototype=Object.create(Hn.prototype),Zd.prototype.constructor=Zd,fp.prototype=Object.create(Hn.prototype),fp.prototype.constructor=fp,D_.prototype=Object.create(Hn.prototype),D_.prototype.constructor=D_,Pm.prototype=Object.create(Ar.prototype),Pm.prototype.constructor=Pm,VU.prototype=Object.create(Bc.prototype),VU.prototype.constructor=VU,AD.prototype=Object.create(VU.prototype),AD.prototype.constructor=AD,Ty.prototype=Object.create(AD.prototype),Ty.prototype.constructor=Ty,Sy.prototype=Object.create(VU.prototype),Sy.prototype.constructor=Sy,oD.prototype=Object.create(VU.prototype),oD.prototype.constructor=oD,jy.prototype=Object.create(oD.prototype),jy.prototype.constructor=jy,Fy.prototype=Object.create(VU.prototype),Fy.prototype.constructor=Fy,uD.prototype=Object.create(VU.prototype),uD.prototype.constructor=uD,Yy.prototype=Object.create(uD.prototype),Yy.prototype.constructor=Yy,iD.prototype=Object.create(VU.prototype),iD.prototype.constructor=iD,eb.prototype=Object.create(iD.prototype),eb.prototype.constructor=eb,ab.prototype=Object.create(iD.prototype),ab.prototype.constructor=ab,Lb.prototype=Object.create(iD.prototype),Lb.prototype.constructor=Lb,jb.prototype=Object.create(uD.prototype),jb.prototype.constructor=jb,Bb.prototype=Object.create(oD.prototype),Bb.prototype.constructor=Bb,pS.prototype=Object.create(iD.prototype),pS.prototype.constructor=pS,TS.prototype=Object.create(AD.prototype),TS.prototype.constructor=TS,wS.prototype=Object.create(Va.prototype),wS.prototype.constructor=wS,$S.prototype=Object.create(iD.prototype),$S.prototype.constructor=$S,sv.prototype=Object.create(AD.prototype),sv.prototype.constructor=sv,IS.prototype=Object.create(oD.prototype),IS.prototype.constructor=IS,gv.prototype=Object.create(oD.prototype),gv.prototype.constructor=gv,zv.prototype=Object.create(uD.prototype),zv.prototype.constructor=zv,xv.prototype=Object.create(uD.prototype),xv.prototype.constructor=xv,Wv.prototype=Object.create(oD.prototype),Wv.prototype.constructor=Wv,lC.prototype=Object.create(oD.prototype),lC.prototype.constructor=lC,_C.prototype=Object.create(uD.prototype),_C.prototype.constructor=_C,OC.prototype=Object.create(uD.prototype),OC.prototype.constructor=OC,xC.prototype=Object.create(AD.prototype),xC.prototype.constructor=xC,DC.prototype=Object.create(AD.prototype),DC.prototype.constructor=DC,kC.prototype=Object.create(uD.prototype),kC.prototype.constructor=kC,jC.prototype=Object.create(iD.prototype),jC.prototype.constructor=jC,mN.prototype=Object.create(Va.prototype),mN.prototype.constructor=mN,WC.prototype=Object.create(iD.prototype),WC.prototype.constructor=WC,yN.prototype=Object.create(oD.prototype),yN.prototype.constructor=yN,iT.prototype=Object.create(VU.prototype),iT.prototype.constructor=iT,cT.prototype=Object.create(uD.prototype),cT.prototype.constructor=cT,yT.prototype=Object.create(AD.prototype),yT.prototype.constructor=yT,gT.prototype=Object.create(iD.prototype),gT.prototype.constructor=gT,UT.prototype=Object.create(AD.prototype),UT.prototype.constructor=UT,LT.prototype=Object.create(oD.prototype),LT.prototype.constructor=LT,kT.prototype=Object.create(iD.prototype),kT.prototype.constructor=kT,FT.prototype=Object.create(oD.prototype),FT.prototype.constructor=FT,QT.prototype=Object.create(uD.prototype),QT.prototype.constructor=QT,eL.prototype=Object.create(oD.prototype),eL.prototype.constructor=eL,rL.prototype=Object.create(uD.prototype),rL.prototype.constructor=rL,sL.prototype=Object.create(VU.prototype),sL.prototype.constructor=sL,gL.prototype=Object.create(oD.prototype),gL.prototype.constructor=gL,vL.prototype=Object.create(AD.prototype),vL.prototype.constructor=vL,bL.prototype=Object.create(iD.prototype),bL.prototype.constructor=bL,OL.prototype=Object.create(oD.prototype),OL.prototype.constructor=OL,xL.prototype=Object.create(VU.prototype),xL.prototype.constructor=xL,UL.prototype=Object.create(Bc.prototype),UL.prototype.constructor=UL,VL.prototype=Object.create(Hn.prototype),VL.prototype.constructor=VL,tz.prototype=Object.create(oD.prototype),tz.prototype.constructor=tz,iz.prototype=Object.create(AD.prototype),iz.prototype.constructor=iz,sz.prototype=Object.create(uD.prototype),sz.prototype.constructor=sz,cz.prototype=Object.create(oD.prototype),cz.prototype.constructor=cz,mz.prototype=Object.create(iD.prototype),mz.prototype.constructor=mz,$z.prototype=Object.create(Bc.prototype),$z.prototype.constructor=$z,Sz.prototype=Object.create(VU.prototype),Sz.prototype.constructor=Sz,wz.prototype=Object.create(VU.prototype),wz.prototype.constructor=wz,Pz.prototype=Object.create(oD.prototype),Pz.prototype.constructor=Pz,qz.prototype=Object.create(uD.prototype),qz.prototype.constructor=qz,Fz.prototype=Object.create(Bc.prototype),Fz.prototype.constructor=Fz,Hz.prototype=Object.create(oD.prototype),Hz.prototype.constructor=Hz,Xz.prototype=Object.create(uD.prototype),Xz.prototype.constructor=Xz,iw.prototype=Object.create(VU.prototype),iw.prototype.constructor=iw,Ew.prototype=Object.create(VU.prototype),Ew.prototype.constructor=Ew,Uw.prototype=Object.create(oD.prototype),Uw.prototype.constructor=Uw,Bw.prototype=Object.create(Bc.prototype),Bw.prototype.constructor=Bw,Qw.prototype=Object.create(VU.prototype),Qw.prototype.constructor=Qw,eO.prototype=Object.create(Bc.prototype),eO.prototype.constructor=eO,rO.prototype=Object.create(oD.prototype),rO.prototype.constructor=rO,$O.prototype=Object.create(oD.prototype),$O.prototype.constructor=$O,YO.prototype=Object.create(AD.prototype),YO.prototype.constructor=YO,tR.prototype=Object.create(Va.prototype),tR.prototype.constructor=tR,PO.prototype=Object.create(iD.prototype),PO.prototype.constructor=PO,rR.prototype=Object.create(oD.prototype),rR.prototype.constructor=rR,RR.prototype=Object.create(uD.prototype),RR.prototype.constructor=RR,AR.prototype=Object.create(VU.prototype),AR.prototype.constructor=AR,xR.prototype=Object.create(VU.prototype),xR.prototype.constructor=xR,jR.prototype=Object.create(iD.prototype),jR.prototype.constructor=jR,tA.prototype=Object.create(oD.prototype),tA.prototype.constructor=tA,$A.prototype=Object.create(oD.prototype),$A.prototype.constructor=$A,RA.prototype=Object.create(uD.prototype),RA.prototype.constructor=RA,DA.prototype=Object.create(uD.prototype),DA.prototype.constructor=DA,GA.prototype=Object.create(oD.prototype),GA.prototype.constructor=GA,VA.prototype=Object.create(AD.prototype),VA.prototype.constructor=VA,JA.prototype=Object.create(iD.prototype),JA.prototype.constructor=JA,sx.prototype=Object.create(AD.prototype),sx.prototype.constructor=sx,QA.prototype=Object.create(iD.prototype),QA.prototype.constructor=QA,px.prototype=Object.create(oD.prototype),px.prototype.constructor=px,Lx.prototype=Object.create(uD.prototype),Lx.prototype.constructor=Lx,kx.prototype=Object.create(AD.prototype),kx.prototype.constructor=kx,Px.prototype=Object.create(uD.prototype),Px.prototype.constructor=Px,jx.prototype=Object.create(AD.prototype),jx.prototype.constructor=jx,Kx.prototype=Object.create(AD.prototype),Kx.prototype.constructor=Kx,Wx.prototype=Object.create(oD.prototype),Wx.prototype.constructor=Wx,Yx.prototype=Object.create(VU.prototype),Yx.prototype.constructor=Yx,oI.prototype=Object.create(VU.prototype),oI.prototype.constructor=oI,lI.prototype=Object.create(uD.prototype),lI.prototype.constructor=lI,gI.prototype=Object.create(VU.prototype),gI.prototype.constructor=gI,CI.prototype=Object.create(iD.prototype),CI.prototype.constructor=CI,zI.prototype=Object.create(oD.prototype),zI.prototype.constructor=zI,xI.prototype=Object.create(iD.prototype),xI.prototype.constructor=xI,DI.prototype=Object.create(oD.prototype),DI.prototype.constructor=DI,kI.prototype=Object.create(AD.prototype),kI.prototype.constructor=kI,FI.prototype=Object.create(Bc.prototype),FI.prototype.constructor=FI,tU.prototype=Object.create(uD.prototype),tU.prototype.constructor=tU,fU.prototype=Object.create(VU.prototype),fU.prototype.constructor=fU,bU.prototype=Object.create(oD.prototype),bU.prototype.constructor=bU,CU.prototype=Object.create(oD.prototype),CU.prototype.constructor=CU,OU.prototype=Object.create(VU.prototype),OU.prototype.constructor=OU,UU.prototype=Object.create(AD.prototype),UU.prototype.constructor=UU,jU.prototype=Object.create(Bc.prototype),jU.prototype.constructor=jU,YU.prototype=Object.create(Au.prototype),YU.prototype.constructor=YU,MD.prototype=Object.create(VU.prototype),MD.prototype.constructor=MD,jD.prototype=Object.create(VU.prototype),jD.prototype.constructor=jD,qD.prototype=Object.create(VU.prototype),qD.prototype.constructor=qD,BD.prototype=Object.create(VU.prototype),BD.prototype.constructor=BD,tP.prototype=Object.create(VU.prototype),tP.prototype.constructor=tP,tG.prototype=Object.create(Bc.prototype),tG.prototype.constructor=tG,hd.$metadata$={kind:Vn,simpleName:"DateTimePickerOpenTo",interfaces:[Hn]},hd.values=function(){return[pd(),_d(),md(),fd(),gd(),$d()]},hd.valueOf_61zpoe$=function(t){switch(t){case"day":return pd();case"month":return _d();case"year":return md();case"hours":return fd();case"minutes":return gd();case"seconds":return $d();default:Kn("No enum constant com.ustadmobile.mui.components.DateTimePickerOpenTo."+t)}},Md.prototype.toString=function(){return Jn(Hn.prototype.toString.call(this))},Md.$metadata$={kind:Vn,simpleName:"GridAlignContent",interfaces:[Hn]},Md.values=function(){return[jd(),Gd(),qd(),Fd(),Bd(),Wd()]},Md.valueOf_61zpoe$=function(t){switch(t){case"stretch":return jd();case"center":return Gd();case"flexStart":return qd();case"flexEnd":return Fd();case"spaceBetween":return Bd();case"spaceAround":return Wd();default:Kn("No enum constant com.ustadmobile.mui.components.GridAlignContent."+t)}},Hd.prototype.toString=function(){return Jn(Hn.prototype.toString.call(this))},Hd.$metadata$={kind:Vn,simpleName:"GridAlignItems",interfaces:[Hn]},Hd.values=function(){return[Kd(),Xd(),Jd(),Yd(),Qd()]},Hd.valueOf_61zpoe$=function(t){switch(t){case"stretch":return Kd();case"center":return Xd();case"flexStart":return Jd();case"flexEnd":return Yd();case"baseline":return Qd();default:Kn("No enum constant com.ustadmobile.mui.components.GridAlignItems."+t)}},Zd.$metadata$={kind:Vn,simpleName:"GridSize",interfaces:[Hn]},Zd.values=function(){return[ep(),np(),ip(),op(),rp(),sp(),ap(),cp(),lp(),up(),hp(),dp(),pp(),_p(),mp()]},Zd.valueOf_61zpoe$=function(t){switch(t){case"cellsFalse":return ep();case"cellsAuto":return np();case"cellsTrue":return ip();case"cells1":return op();case"cells2":return rp();case"cells3":return sp();case"cells4":return ap();case"cells5":return cp();case"cells6":return lp();case"cells7":return up();case"cells8":return hp();case"cells9":return dp();case"cells10":return pp();case"cells11":return _p();case"cells12":return mp();default:Kn("No enum constant com.ustadmobile.mui.components.GridSize."+t)}},fp.$metadata$={kind:Vn,simpleName:"GridSpacing",interfaces:[Hn]},fp.values=function(){return[$p(),Ep(),yp(),bp(),Sp(),vp(),Cp(),Np(),Tp(),Lp(),zp()]},fp.valueOf_61zpoe$=function(t){switch(t){case"spacing0":return $p();case"spacing1":return Ep();case"spacing2":return yp();case"spacing3":return bp();case"spacing4":return Sp();case"spacing5":return vp();case"spacing6":return Cp();case"spacing7":return Np();case"spacing8":return Tp();case"spacing9":return Lp();case"spacing10":return zp();default:Kn("No enum constant com.ustadmobile.mui.components.GridSpacing."+t)}},D_.$metadata$={kind:Vn,simpleName:"Breakpoint",interfaces:[Hn]},D_.values=function(){return[M_(),k_(),j_(),G_(),q_()]},D_.valueOf_61zpoe$=function(t){switch(t){case"xs":return M_();case"sm":return k_();case"md":return j_();case"lg":return G_();case"xl":return q_();default:Kn("No enum constant Breakpoint."+t)}},Object.defineProperty(V_.prototype,"componentClassToViewNamesMap_0",{configurable:!0,get:function(){return this.componentClassToViewNamesMap_rhgr2z$_0.value}}),V_.prototype.lookupDestinationName_pdl1vj$=function(t){var e,n=this.destinationList;t:do{var i;for(i=n.iterator();i.hasNext();){var o=i.next();if(Je(o.view,t)){e=o;break t}}e=null}while(0);return e},V_.prototype.lookupViewNamesByComponent_xo1ogr$=function(t){return this.componentClassToViewNamesMap_0.get_11rb$(t)},V_.$metadata$={kind:Ho,simpleName:"RouteManager",interfaces:[]};var K_=null;function X_(){return null===K_&&new V_,K_}function J_(t,e,n,i,o,r,s){void 0===t&&(t=null),void 0===e&&(e=0),void 0===o&&(o=!1),void 0===r&&(r=!0),void 0===s&&(s=!1),this.icon=t,this.labelId=e,this.view=n,this.component=i,this.showSearch=o,this.showNavigation=r,this.divider=s}function Y_(t,e,n,i,o,r){void 0===t&&(t=new cm),void 0===e&&(e=new nm),void 0===n&&(n=new em),void 0===i&&(i=new lm),void 0===o&&(o=ym().navStackState),void 0===r&&(r=new rm),this.appTheme=t,this.di=e,this.db=n,this.appToolbar=i,this.navStack=o,this.appSnackBar=r}function Q_(){Z_=this,this.storeState_0=null}J_.$metadata$={kind:Vn,simpleName:"UstadDestination",interfaces:[]},J_.prototype.component1=function(){return this.icon},J_.prototype.component2=function(){return this.labelId},J_.prototype.component3=function(){return this.view},J_.prototype.component4=function(){return this.component},J_.prototype.component5=function(){return this.showSearch},J_.prototype.component6=function(){return this.showNavigation},J_.prototype.component7=function(){return this.divider},J_.prototype.copy_4maoou$=function(t,e,n,i,o,r,s){return new J_(void 0===t?this.icon:t,void 0===e?this.labelId:e,void 0===n?this.view:n,void 0===i?this.component:i,void 0===o?this.showSearch:o,void 0===r?this.showNavigation:r,void 0===s?this.divider:s)},J_.prototype.toString=function(){return"UstadDestination(icon="+e.toString(this.icon)+", labelId="+e.toString(this.labelId)+", view="+e.toString(this.view)+", component="+e.toString(this.component)+", showSearch="+e.toString(this.showSearch)+", showNavigation="+e.toString(this.showNavigation)+", divider="+e.toString(this.divider)+")"},J_.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*(t=31*(t=31*(t=31*(t=31*t+e.hashCode(this.icon)|0)+e.hashCode(this.labelId)|0)+e.hashCode(this.view)|0)+e.hashCode(this.component)|0)+e.hashCode(this.showSearch)|0)+e.hashCode(this.showNavigation)|0)+e.hashCode(this.divider)|0},J_.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.icon,t.icon)&&e.equals(this.labelId,t.labelId)&&e.equals(this.view,t.view)&&e.equals(this.component,t.component)&&e.equals(this.showSearch,t.showSearch)&&e.equals(this.showNavigation,t.showNavigation)&&e.equals(this.divider,t.divider)},Y_.$metadata$={kind:Vn,simpleName:"ReduxAppState",interfaces:[]},Y_.prototype.component1=function(){return this.appTheme},Y_.prototype.component2=function(){return this.di},Y_.prototype.component3=function(){return this.db},Y_.prototype.component4=function(){return this.appToolbar},Y_.prototype.component5=function(){return this.navStack},Y_.prototype.component6=function(){return this.appSnackBar},Y_.prototype.copy_slc2ko$=function(t,e,n,i,o,r){return new Y_(void 0===t?this.appTheme:t,void 0===e?this.di:e,void 0===n?this.db:n,void 0===i?this.appToolbar:i,void 0===o?this.navStack:o,void 0===r?this.appSnackBar:r)},Y_.prototype.toString=function(){return"ReduxAppState(appTheme="+e.toString(this.appTheme)+", di="+e.toString(this.di)+", db="+e.toString(this.db)+", appToolbar="+e.toString(this.appToolbar)+", navStack="+e.toString(this.navStack)+", appSnackBar="+e.toString(this.appSnackBar)+")"},Y_.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*(t=31*(t=31*(t=31*t+e.hashCode(this.appTheme)|0)+e.hashCode(this.di)|0)+e.hashCode(this.db)|0)+e.hashCode(this.appToolbar)|0)+e.hashCode(this.navStack)|0)+e.hashCode(this.appSnackBar)|0},Y_.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.appTheme,t.appTheme)&&e.equals(this.di,t.di)&&e.equals(this.db,t.db)&&e.equals(this.appToolbar,t.appToolbar)&&e.equals(this.navStack,t.navStack)&&e.equals(this.appSnackBar,t.appSnackBar)},Q_.prototype.combineReducersInferred_0=function(t){var e,n=tr(Qo(t.size));for(e=t.entries.iterator();e.hasNext();){var i=e.next();n.put_xwzc9p$(i.key.callableName,i.value)}return er(n)},Q_.prototype.reducer_0=function(t,n){var i;return void 0===t&&(t=new Y_),e.isType(n,cm)?i=t.copy_slc2ko$(n):e.isType(n,nm)?i=t.copy_slc2ko$(void 0,n):e.isType(n,em)?i=t.copy_slc2ko$(void 0,void 0,n):e.isType(n,lm)?i=t.copy_slc2ko$(void 0,void 0,void 0,n):e.isType(n,om)?(ym().navStackState=n,i=t.copy_slc2ko$(void 0,void 0,void 0,void 0,n)):i=e.isType(n,rm)?t.copy_slc2ko$(void 0,void 0,void 0,void 0,void 0,n):t,i},Q_.prototype.dispatch_quwr82$=function(t){var e;null!=(e=this.storeState_0)&&e.dispatch(t)},Q_.prototype.subscribe_w8v70w$=function(t){var e,n,i;null!=(e=this.storeState_0)&&e.subscribe((n=this,i=t,function(){var t,e;return null!=(e=null!=(t=n.storeState_0)?t.getState():null)&&i(e),Ye}))},Q_.prototype.getCurrentState=function(){var t,e,n;return null!=(n=null!=(e=null!=(t=this.storeState_0)?t.getState():null)?e.appState:null)?n:new Y_},Q_.prototype.createStore_7xsz26$=function(t){return this.storeState_0=sr(this.combineReducersInferred_0(or(ni(nr("appState",1,(function(t){return t.appState}),(function(t,e){t.appState=e})),ir("reducer",function(t,e,n){return t.reducer_0(e,n)}.bind(null,tm()))))),new am,rr()),this.dispatch_quwr82$(t),this.storeState_0},Q_.$metadata$={kind:Ho,simpleName:"ReduxAppStateManager",interfaces:[]};var Z_=null;function tm(){return null===Z_&&new Q_,Z_}function em(t){void 0===t&&(t=null),this.instance=t}function nm(t){void 0===t&&(t=Fe.Companion.lazy_ys71a$(void 0,im)),this.instance=t}function im(t){return Ye}function om(t){void 0===t&&(t=Yo()),this.stack=t}function rm(t,e,n){void 0===t&&(t=null),void 0===e&&(e=null),void 0===n&&(n=sm),this.message=t,this.actionLabel=e,this.onClick=n}function sm(){return Ye}function am(t){void 0===t&&(t=new Y_),this.appState=t}function cm(t){void 0===t&&(t=null),this.theme=t}function lm(t){void 0===t&&(t=null),this.title=t}function um(t,e,n){pm(),void 0===t&&(t=""),void 0===e&&(e=fr()),void 0===n&&(n=1),this.viewName=t,this.arguments=e,this.id=n}function hm(){dm=this}em.$metadata$={kind:Vn,simpleName:"ReduxDbState",interfaces:[]},em.prototype.component1=function(){return this.instance},em.prototype.copy_j4q3k4$=function(t){return new em(void 0===t?this.instance:t)},em.prototype.toString=function(){return"ReduxDbState(instance="+e.toString(this.instance)+")"},em.prototype.hashCode=function(){var t=0;return t=31*t+e.hashCode(this.instance)|0},em.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.instance,t.instance)},nm.$metadata$={kind:Vn,simpleName:"ReduxDiState",interfaces:[]},nm.prototype.component1=function(){return this.instance},nm.prototype.copy_60ocek$=function(t){return new nm(void 0===t?this.instance:t)},nm.prototype.toString=function(){return"ReduxDiState(instance="+e.toString(this.instance)+")"},nm.prototype.hashCode=function(){var t=0;return t=31*t+e.hashCode(this.instance)|0},nm.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.instance,t.instance)},om.$metadata$={kind:Vn,simpleName:"ReduxNavStackState",interfaces:[]},om.prototype.component1=function(){return this.stack},om.prototype.copy_6xmpro$=function(t){return new om(void 0===t?this.stack:t)},om.prototype.toString=function(){return"ReduxNavStackState(stack="+e.toString(this.stack)+")"},om.prototype.hashCode=function(){var t=0;return t=31*t+e.hashCode(this.stack)|0},om.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.stack,t.stack)},rm.$metadata$={kind:Vn,simpleName:"ReduxSnackBarState",interfaces:[]},rm.prototype.component1=function(){return this.message},rm.prototype.component2=function(){return this.actionLabel},rm.prototype.component3=function(){return this.onClick},rm.prototype.copy_amwjif$=function(t,e,n){return new rm(void 0===t?this.message:t,void 0===e?this.actionLabel:e,void 0===n?this.onClick:n)},rm.prototype.toString=function(){return"ReduxSnackBarState(message="+e.toString(this.message)+", actionLabel="+e.toString(this.actionLabel)+", onClick="+e.toString(this.onClick)+")"},rm.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*t+e.hashCode(this.message)|0)+e.hashCode(this.actionLabel)|0)+e.hashCode(this.onClick)|0},rm.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.message,t.message)&&e.equals(this.actionLabel,t.actionLabel)&&e.equals(this.onClick,t.onClick)},am.$metadata$={kind:Vn,simpleName:"ReduxStore",interfaces:[]},am.prototype.component1=function(){return this.appState},am.prototype.copy_pwv7hm$=function(t){return new am(void 0===t?this.appState:t)},am.prototype.toString=function(){return"ReduxStore(appState="+e.toString(this.appState)+")"},am.prototype.hashCode=function(){var t=0;return t=31*t+e.hashCode(this.appState)|0},am.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.appState,t.appState)},cm.$metadata$={kind:Vn,simpleName:"ReduxThemeState",interfaces:[]},cm.prototype.component1=function(){return this.theme},cm.prototype.copy_o1pzk8$=function(t){return new cm(void 0===t?this.theme:t)},cm.prototype.toString=function(){return"ReduxThemeState(theme="+e.toString(this.theme)+")"},cm.prototype.hashCode=function(){var t=0;return t=31*t+e.hashCode(this.theme)|0},cm.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.theme,t.theme)},lm.$metadata$={kind:Vn,simpleName:"ReduxToolbarState",interfaces:[]},lm.prototype.component1=function(){return this.title},lm.prototype.copy_pdl1vj$=function(t){return new lm(void 0===t?this.title:t)},lm.prototype.toString=function(){return"ReduxToolbarState(title="+e.toString(this.title)+")"},lm.prototype.hashCode=function(){var t=0;return t=31*t+e.hashCode(this.title)|0},lm.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.title,t.title)},hm.prototype.serializer=function(){return fm()},hm.$metadata$={kind:Ho,simpleName:"Companion",interfaces:[]};var dm=null;function pm(){return null===dm&&new hm,dm}function _m(){this.descriptor_7nysoj$_0=new ar("com.ustadmobile.util.TabState",this,3),this.descriptor.addElement_ivxn3r$("viewName",!0),this.descriptor.addElement_ivxn3r$("arguments",!0),this.descriptor.addElement_ivxn3r$("id",!0),mm=this}Object.defineProperty(_m.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_7nysoj$_0}}),_m.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);Je(e.viewName,"")&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeStringElement_iij8qq$(this.descriptor,0,e.viewName),Je(e.arguments,fr())&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeSerializableElement_r4qlx7$(this.descriptor,1,new lr(cr.StringSerializer,cr.StringSerializer),e.arguments),Je(e.id,1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeIntElement_ptg7oe$(this.descriptor,2,e.id),n.endStructure_24f42q$(this.descriptor)},_m.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r=0,s=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=s.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=s.decodeStringElement_szpzho$(this.descriptor,0),r|=1;break;case 1:i=s.decodeSerializableElement_12e8id$(this.descriptor,1,new lr(cr.StringSerializer,cr.StringSerializer),i),r|=2;break;case 2:o=s.decodeIntElement_szpzho$(this.descriptor,2),r|=4;break;case-1:break t;default:throw new ur(e)}return s.endStructure_24f42q$(this.descriptor),gm(r,n,i,o,null)},_m.prototype.childSerializers=function(){return[cr.StringSerializer,new lr(cr.StringSerializer,cr.StringSerializer),cr.IntSerializer]},_m.$metadata$={kind:Ho,simpleName:"$serializer",interfaces:[hr]};var mm=null;function fm(){return null===mm&&new _m,mm}function gm(t,e,n,i,o){var r=o||Object.create(um.prototype);return r.viewName=0==(1&t)?"":e,r.arguments=0==(2&t)?fr():n,r.id=0==(4&t)?1:i,r}function $m(){Em=this,this.KEY_STATE_STORAGE_0="key_tab_state_tracker",this.KEY_ACTIVE_TAB_0="key_active",this.serializer_0=mr(pm().serializer()),this.activeTabRunning_wqt5gb$_0=!1}um.$metadata$={kind:Vn,simpleName:"TabState",interfaces:[]},um.prototype.component1=function(){return this.viewName},um.prototype.component2=function(){return this.arguments},um.prototype.component3=function(){return this.id},um.prototype.copy_9s8wcp$=function(t,e,n){return new um(void 0===t?this.viewName:t,void 0===e?this.arguments:e,void 0===n?this.id:n)},um.prototype.toString=function(){return"TabState(viewName="+e.toString(this.viewName)+", arguments="+e.toString(this.arguments)+", id="+e.toString(this.id)+")"},um.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*t+e.hashCode(this.viewName)|0)+e.hashCode(this.arguments)|0)+e.hashCode(this.id)|0},um.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.viewName,t.viewName)&&e.equals(this.arguments,t.arguments)&&e.equals(this.id,t.id)},Object.defineProperty($m.prototype,"activeTabRunning",{configurable:!0,get:function(){return this.activeTabRunning_wqt5gb$_0},set:function(t){this.activeTabRunning_wqt5gb$_0=t}}),Object.defineProperty($m.prototype,"navStackState",{configurable:!0,get:function(){var t,e=this.getStoredTabStateList_0(),n=new om,i=Xo(Ko(e,10));for(t=e.iterator();t.hasNext();)t.next(),i.add_11rb$(Ye);return n},set:function(t){var e,n,i=this.getStoredTabStateList_0();for((null==i||i.isEmpty())&&localStorage.setItem(this.KEY_STATE_STORAGE_0,""),dr(i,(e=t,function(t){return!e.stack.isEmpty()})),n=t.stack.iterator();n.hasNext();){var o=n.next();i.add_11rb$(new um(o.viewName,o.arguments))}localStorage.setItem(this.KEY_STATE_STORAGE_0,cn.Default.encodeToString_tf03ej$(this.serializer_0,i))}}),$m.prototype.init_y8twos$=function(t){var e,n,i;this.activeTabRunning=null!=(n=null!=(e=localStorage.getItem(this.KEY_ACTIVE_TAB_0))?pr(e):null)&&n,this.activeTabRunning?t(!0):(localStorage.setItem(this.KEY_ACTIVE_TAB_0,(!0).toString()),this.activeTabRunning=!0,t(!1)),tm().dispatch_quwr82$(tm().getCurrentState().navStack),window.onbeforeunload=(i=this,function(t){return localStorage.removeItem(i.KEY_ACTIVE_TAB_0),null})},$m.prototype.getStoredTabStateList_0=function(){var t=localStorage.getItem(this.KEY_STATE_STORAGE_0);return null==t||0===t.length?Yo():_r(cn.Default.decodeFromString_awif5v$(this.serializer_0,t))},$m.$metadata$={kind:Ho,simpleName:"BrowserTabTracker",interfaces:[]};var Em=null;function ym(){return null===Em&&new $m,Em}function bm(){}function Sm(){vm=this}bm.prototype.mountContainer_dckg8j$$default=function(t,e,n,i){return gr.UMFileUtil.joinPaths_vqirvp$([t,"ContainerMount",e.toString()])},bm.prototype.unMountContainer_puj7f4$=function(t,e,n){},bm.$metadata$={kind:Vn,simpleName:"ContainerMounterJs",interfaces:[dn]},Sm.prototype.convertDataToEditorState_61zpoe$=function(t){var e=Ct.convertFromHTML(t),n=Ct.ContentState.createFromBlockArray(e.contentBlocks,e.entityMap);return JSON.stringify(Ct.convertToRaw(n))},Sm.prototype.convertEditorContentToHtml_za3rmp$=function(t){return Nt.stateToHTML(t).toString()},Sm.prototype.clean_pdl1vj$=function(t){return Tt(null!=t?t:"").toString()},Sm.$metadata$={kind:Ho,simpleName:"DraftJsUtil",interfaces:[]};var vm=null;function Cm(){return null===vm&&new Sm,vm}function Nm(t,e){void 0===t&&(t=null),void 0===e&&(e=null),this.text=t,this.icon=e}function Tm(t,e){var n,i;void 0===t&&(t="um-fab"),void 0===e&&(e=!1),this.viewId_0=t,this.fabView_0=null,this.viewInitTimeoutId_0=-1,this.clickEventHandler_0=(n=this,function(t){var e;return null!=(e=n.onClickListener)&&e(),Ye}),this.fabView_0=document.getElementById(this.viewId_0),null!=(i=this.fabView_0)&&i.addEventListener("click",this.clickEventHandler_0),this.onClickListener_u1jysn$_0=null,this.visible_qvq518$_0=e,this.icon_d7ip3v$_0=null,this.text_d1fhsf$_0=null}function Lm(t,e,n,i){var o,r;void 0===t&&(t=null),void 0===e&&(e=null),void 0===n&&(n=null),void 0===i&&(i=null),this.text=t,this.errorText=e,this.hint=n,this.id=i,this.error=null!=this.errorText,this.width=8*(null!=(r=null!=(o=this.text)?o.length:null)?r:1)|0}function zm(){}function wm(t,n){var i,o,r,s,a,c,l;void 0===t&&(t="um-dropzone"),this.acceptedMimeTypesAndExtensions=n,this.mimeTypeMatcher_0=new Rm(this.acceptedMimeTypesAndExtensions),this.dropZoneElement_0=null,this.dropZoneInput_0=null,this.onFileInputChangedHandler_0=(i=this,function(t){var n,o;return ty().stopEventPropagation_za3rmp$(t),o=e.isType(n=t.target.files[0],File)?n:An(),i.handleSelectedFile_0(o),Ye}),this.onFileDragOverHandler_0=function(t){return function(e){var n,i,o,r,s,a;return ty().stopEventPropagation_za3rmp$(e),null!=(i=null!=(n=t.dropZoneElement_0)?n.classList:null)&&i.remove(TE().name+"-dropZoneAreaSuccess"),null!=(r=null!=(o=t.dropZoneElement_0)?o.classList:null)&&r.remove(TE().name+"-dropZoneAreaError"),null!=(a=null!=(s=t.dropZoneElement_0)?s.classList:null)&&a.add(TE().name+"-dropZoneAreaActive"),Ye}}(this),this.onFileDragLeaveHandler_0=function(t){return function(e){var n,i;return ty().stopEventPropagation_za3rmp$(e),null!=(i=null!=(n=t.dropZoneElement_0)?n.classList:null)&&i.remove(TE().name+"-dropZoneAreaActive"),Ye}}(this),this.onFileDropHandler_0=function(t){return function(n){var i,o;return ty().stopEventPropagation_za3rmp$(n),o=e.isType(i=n.dataTransfer.files[0],File)?i:An(),t.handleSelectedFile_0(o),Ye}}(this),this.onFileBrowseHandler_0=function(t){return function(e){var n,i,o,r;return null!=(i=null!=(n=t.dropZoneElement_0)?n.classList:null)&&i.add(TE().name+"-dropZoneAreaActive"),(null!=(o=t.dropZoneInput_0)?o:null).click(),window.setTimeout((r=e,function(){return ty().stopEventPropagation_za3rmp$(r),Ye}),2e3),Ye}}(this),this.onFileAttached_1uf4l3$_0=null,this.dropZoneElement_0=document.getElementById(t),this.dropZoneInput_0=null!=(o=this.dropZoneElement_0)?o.querySelector("input"):null,null!=(r=this.dropZoneElement_0)&&r.addEventListener("click",this.onFileBrowseHandler_0),null!=(s=this.dropZoneElement_0)&&s.addEventListener("dragover",this.onFileDragOverHandler_0),null!=(a=this.dropZoneElement_0)&&a.addEventListener("dragleave",this.onFileDragLeaveHandler_0),null!=(c=this.dropZoneElement_0)&&c.addEventListener("drop",this.onFileDropHandler_0),null!=(l=this.dropZoneInput_0)&&l.addEventListener("change",this.onFileInputChangedHandler_0)}function Om(t,e,n){this.valid=t,this.type=e,this.subType=n}function Rm(t){this.mimeTypesToMatch_0=t,this.validatedMimeTypes_0=null;var e,n=this.mimeTypesToMatch_0,i=Xo(Ko(n,10));for(e=n.iterator();e.hasNext();){var o=e.next();i.add_11rb$(this.parse_0(o))}this.validatedMimeTypes_0=yr(i)}function Am(t,n){var i;this.totalItemCount_0=t,this.pageSize_0=n,this.pageNumber_0=1,this.scrollManager_0=null,this.totalPages_0=this.totalItemCount_0/this.pageSize_0,this.startIndex=(i=this,function(){return e.imul(i.pageNumber_0-1|0,i.pageSize_0)>i.totalItemCount_0?0:e.imul(i.pageNumber_0-1|0,i.pageSize_0)}),this.endIndex=function(t){return function(){return e.imul(t.pageNumber_0,t.pageSize_0)o.lastScrollPercentage_0:o.lastScrollPercentage_0>t;return null!=(e=o.scrollListener)&&e(n&&t>=o.triggerThreshold_0,t),o.lastScrollPercentage_0=t,Ye}),this.scrollListener_oq0va9$_0=null,this.scrollEventCallback_0=function(t){return function(e){var n=e.target,i=vr(Math.ceil(n.scrollTop/n.scrollHeight*100).toString());return-1!==t.scrollHandlerTimeOutId_0&&window.clearTimeout(t.scrollHandlerTimeOutId_0),t.scrollHandlerTimeOutId_0=window.setTimeout(t.scrollHandler_0,t.delay_0,i),Ye}}(this)}function Dm(t){var e;void 0===t&&(t="um-search"),this.viewId_0=t,this.searchView_0=null,this.searchHandlerId_0=-1,this.viewInitTimeoutId_0=-1,this.searchListener_94llux$_0=null,this.searchHandler_0=(e=this,function(t){return window.clearTimeout(e.searchHandlerId_0),e.searchHandlerId_0=window.setTimeout(function(t,e){return function(){var n;return null!=(n=t.searchListener)?(n.onSearchSubmitted_pdl1vj$(I_(e)),Ye):null}}(e,t),500),Ye})}function Pm(){var t,n,i;NE=this,Ar.call(this,"ComponentStyles",!0),this.theme=xr(null!=(t=tm().getCurrentState().appTheme)?t.theme:null),this.systemImpl_b40aij$_0=Hs(this,e.isType(n=On(He(We(Be),[],!1)),Rn)?n:An(),null).provideDelegate_tpuvb9$(this,Mm),this.fullWidth_0=Ir(100),this.drawerWidth_0=240,this.tabletAndHighEnd_0=k_(),this.alignTextToStart_p5422n$_0=this.css_uisso7$([],Gg).provideDelegate_n5byny$(this,km),this.contentAfterIconMarginLeft_9cutf$_0=this.css_uisso7$([],qg).provideDelegate_n5byny$(this,jm),this.umItemWithIconAndText_ffzu7a$_0=this.css_uisso7$([],Fg).provideDelegate_n5byny$(this,Gm),this.alignTextCenter_f1vy0p$_0=this.css_uisso7$([],Bg).provideDelegate_n5byny$(this,qm),this.defaultFullWidth_gwv8rm$_0=this.css_uisso7$([],Wg).provideDelegate_n5byny$(this,Fm),this.defaultMarginTop_r1e7pq$_0=this.css_uisso7$([],Hg).provideDelegate_n5byny$(this,Bm),this.defaultMarginBottom_u82mnu$_0=this.css_uisso7$([],Vg).provideDelegate_n5byny$(this,Wm),this.defaultPaddingTop_fvmuzf$_0=this.css_uisso7$([],Kg).provideDelegate_n5byny$(this,Hm),this.defaultPaddingTopBottom_pb7v00$_0=this.css_uisso7$([],Xg).provideDelegate_n5byny$(this,Vm),this.defaultDoubleMarginTop_pbnxtr$_0=this.css_uisso7$([],Jg).provideDelegate_n5byny$(this,Km),this.errorTextClass_heumzz$_0=this.css_uisso7$([],(i=this,function(t){return ei(t,new Fr(i.theme.palette.error.main)),Pr(t,Br(i.systemImpl_0.isRtlActive()?0:16)),Wr(t,Br(i.systemImpl_0.isRtlActive()?16:0)),Ye})).provideDelegate_n5byny$(this,Xm),this.errorClass_cahu2k$_0=this.css_uisso7$([],function(t){return function(e){return ei(e,new Fr(t.theme.palette.error.main)),Ye}}(this)).provideDelegate_n5byny$(this,Jm),this.successClass_a9gm69$_0=this.css_uisso7$([],Yg).provideDelegate_n5byny$(this,Ym),this.splashComponentContainer_nvcuzt$_0=this.css_uisso7$([],Qg).provideDelegate_n5byny$(this,Qm),this.splashComponentPreloadContainer_9acrsi$_0=this.css_uisso7$([],Zg).provideDelegate_n5byny$(this,Zm),this.mainComponentErrorPaper_rr327c$_0=this.css_uisso7$([],t$).provideDelegate_n5byny$(this,tf),this.mainComponentProgressIndicator_562tqu$_0=this.css_uisso7$([],e$).provideDelegate_n5byny$(this,ef),this.mainComponentContainer_vyvcuv$_0=this.css_uisso7$([],n$).provideDelegate_n5byny$(this,nf),this.mainComponentWrapperContainer_m8b2mm$_0=this.css_uisso7$([],function(t){return function(e){return Hr(e,1),Mr(e,Ir(100)),Vr(e,1),Rr(e,Or.hidden),Xr(e,Kr.relative),Zn(e,Qn.flex),ti(e,Yn.column),Zr(e,new Fr(t.theme.palette.background.paper)),Ye}}(this)).provideDelegate_n5byny$(this,of),this.mainComponentAppBar_oyk06u$_0=this.css_uisso7$([],function(t){return function(e){var n;return Xr(e,Kr.absolute),n=t.systemImpl_0.isRtlActive()?Br(0):Br(240),Pr(e,n),Mr(e,t.fullWidth_0),e.media_v44dnz$(B_(t.theme.breakpoints,t.tabletAndHighEnd_0),function(t){return function(e){var n,i;return i=t.fullWidth_0,n=t.systemImpl_0.isRtlActive()?Br(0):Br(240),Mr(e,i.minus_tco10h$(n)),Ye}}(t)),Ye}}(this)).provideDelegate_n5byny$(this,rf),this.detailPaddingBottom_x4slfv$_0=this.css_uisso7$([],function(t){return function(e){return ts(e,void 0,void 0,C_(3)),e.media_v44dnz$(B_(t.theme.breakpoints,t.tabletAndHighEnd_0),i$),Ye}}(this)).provideDelegate_n5byny$(this,sf),this.entryDetailRightSection_3nz7zo$_0=this.css_uisso7$([],function(t){return function(e){var n;return n=C_(3),ts(e,C_(8),void 0,n),e.media_v44dnz$(B_(t.theme.breakpoints,t.tabletAndHighEnd_0),o$),Ye}}(this)).provideDelegate_n5byny$(this,af),this.switchMargin_p6ttoy$_0=this.css_uisso7$([],function(t){return function(e){return es(e,C_(5)),e.media_v44dnz$(B_(t.theme.breakpoints,t.tabletAndHighEnd_0),r$),Ye}}(this)).provideDelegate_n5byny$(this,cf),this.screenWithChartOnLeft_5bsg26$_0=this.css_uisso7$([],function(t){return function(e){return Wr(e,C_(0)),e.media_v44dnz$(B_(t.theme.breakpoints,t.tabletAndHighEnd_0),s$),Ye}}(this)).provideDelegate_n5byny$(this,lf),this.mainComponentAppBarWithNoNav_6st9xq$_0=this.css_uisso7$([],function(t){return function(e){return Xr(e,Kr.absolute),Pr(e,Br(0)),Mr(e,t.fullWidth_0),Ye}}(this)).provideDelegate_n5byny$(this,uf),this.mainComponentContentContainer_p7gwwc$_0=this.css_uisso7$([],function(t){return function(e){return Lr(e,ns(100)),Hr(e,1),is(e,Br(0)),Zr(e,new Fr(t.theme.palette.background.default)),e.media_v44dnz$(W_(t.theme.breakpoints,M_()),a$),Ye}}(this)).provideDelegate_n5byny$(this,hf),this.mainComponentBottomNav_1qjdj4$_0=this.css_uisso7$([],c$).provideDelegate_n5byny$(this,df),this.mainComponentBrandIconContainer_yaoyhx$_0=this.css_uisso7$([],function(t){return function(e){return Lr(e,Br(43)),kr(e,Br(20)),Mr(e,Ir(100)),ts(e,Br(0),Br(t.systemImpl_0.isRtlActive()?20:0),Br(0),Br(t.systemImpl_0.isRtlActive()?0:20)),Ye}}(this)).provideDelegate_n5byny$(this,pf),this.mainComponentBrandIcon_j2tld4$_0=this.css_uisso7$([],l$).provideDelegate_n5byny$(this,_f),this.mainComponentSideNavMenuList_bvkeup$_0=this.css_uisso7$([],function(t){return function(e){return Zr(e,new Fr(t.theme.palette.background.paper)),Mr(e,Br(240)),Ye}}(this)).provideDelegate_n5byny$(this,mf),this.toolbarTitle_2ry4pj$_0=this.css_uisso7$([],function(t){return function(e){return t.systemImpl_0.isRtlActive()&&(Dr(e,Ur.start),Wr(e,Br(240)),e.media_v44dnz$(W_(t.theme.breakpoints,t.tabletAndHighEnd_0),u$)),Ye}}(this)).provideDelegate_n5byny$(this,ff),this.mainComponentProfileOuterAvatar_5e6967$_0=this.css_uisso7$([],function(t){return function(e){return Mr(e,Br(40)),Lr(e,Br(40)),as(e,ss.pointer),cs(e,Br(0),Ir(t.systemImpl_0.isRtlActive()?10:0),Br(0),Ir(t.systemImpl_0.isRtlActive()?0:10)),e.media_v44dnz$(W_(t.theme.breakpoints,t.tabletAndHighEnd_0),function(t){return function(e){return cs(e,Br(0),Ir(t.systemImpl_0.isRtlActive()?10:3),Br(0),Ir(t.systemImpl_0.isRtlActive()?0:10)),Ye}}(t)),Zr(e,new Fr(t.theme.palette.primary.light)),us(e,ls.center),hs(e,ls.center),Ye}}(this)).provideDelegate_n5byny$(this,gf),this.mainComponentProfileInnerAvatar_3rmfqi$_0=this.css_uisso7$([],function(t){return function(e){return Mr(e,Br(36)),Lr(e,Br(36)),ei(e,Fr.Companion.white),t.systemImpl_0.isRtlActive()?Wr(e,Br(2.5)):Pr(e,Br(2.5)),kr(e,Br(2)),Zr(e,new Fr(t.theme.palette.primary.dark)),Ye}}(this)).provideDelegate_n5byny$(this,$f),this.mainComponentInputSearchClass_71yyiy$_0=this.css_uisso7$([],function(t){return function(e){return ts(e,Br(8),Br(8),Br(8),Br(50)),ds(e).plusAssign_11rb$(new ms("width",ps(t.theme.transitions.duration.standard),_s.Companion.easeInOut,ps(0))),Mr(e,new ai("30ch")),e.media_v44dnz$(B_(t.theme.breakpoints,t.tabletAndHighEnd_0),d$),Hr(e,1),ei(e,Fr.Companion.inherit),es(e,Br(t.systemImpl_0.isRtlActive()?60:0)),Ye}}(this)).provideDelegate_n5byny$(this,Ef),this.chatInputMessageClass_6htvtv$_0=this.css_uisso7$([],function(t){return function(e){return Qr(e,C_(2)),ds(e).plusAssign_11rb$(new ms("width",ps(t.theme.transitions.duration.standard),_s.Companion.easeInOut,ps(0))),Hr(e,1),ei(e,Fr.Companion.inherit),Ye}}(this)).provideDelegate_n5byny$(this,yf),this.mainComponentSearch_kqcv9w$_0=this.css_uisso7$([],function(t){return function(e){return Xr(e,Kr.relative),fs(e,Br(t.theme.shape.borderRadius)),Zr(e,yt.alpha(t.theme.palette.common.white,.15)),e.hover_lx8bml$(function(t){return function(e){return Zr(e,yt.alpha(t.theme.palette.common.white,.25)),Ye}}(t)),Pr(e,Br(0)),Mr(e,Ir(100)),e.media_v44dnz$(B_(t.theme.breakpoints,t.tabletAndHighEnd_0),p$),e.media_v44dnz$(W_(t.theme.breakpoints,t.tabletAndHighEnd_0),_$),Ye}}(this)).provideDelegate_n5byny$(this,bf),this.typingMessage_lo4rf4$_0=this.css_uisso7$([],function(t){return function(e){return e.media_v44dnz$(B_(t.theme.breakpoints,G_()),m$),e.media_v44dnz$(W_(t.theme.breakpoints,G_()),f$),Ye}}(this)).provideDelegate_n5byny$(this,Sf),this.messageSendButton_z8yy4f$_0=this.css_uisso7$([],function(t){return function(e){return e.media_v44dnz$(B_(t.theme.breakpoints,G_()),function(t){return function(e){return Zn(e,Qn.block),t.systemImpl_0.isRtlActive()||rs(e,C_(2)),t.systemImpl_0.isRtlActive()&&Jr(e,C_(2)),Ye}}(t)),e.media_v44dnz$(W_(t.theme.breakpoints,G_()),g$),Ye}}(this)).provideDelegate_n5byny$(this,vf),this.messageContainer_jd1gh2$_0=this.css_uisso7$([],function(t){return function(e){return Xr(e,Kr.fixed),e.media_v44dnz$(B_(t.theme.breakpoints,t.tabletAndHighEnd_0),$$),e.media_v44dnz$(W_(t.theme.breakpoints,t.tabletAndHighEnd_0),E$),Ye}}(this)).provideDelegate_n5byny$(this,Cf),this.chatDetailNewMessage_s5gm8s$_0=this.css_uisso7$([],function(t){return function(e){return fs(e,Br(t.theme.shape.borderRadius)),Zr(e,yt.alpha(t.theme.palette.primary.dark,.8)),e.hover_lx8bml$(function(t){return function(e){return Zr(e,yt.alpha(t.theme.palette.primary.dark,.5)),Ye}}(t)),e.media_v44dnz$(B_(t.theme.breakpoints,t.tabletAndHighEnd_0),y$),Ye}}(this)).provideDelegate_n5byny$(this,Nf),this.mainComponentSearchIcon_g3mujp$_0=this.css_uisso7$([],b$).provideDelegate_n5byny$(this,Tf),this.mainComponentToolbarMargins_dml86q$_0=this.css_uisso7$([],function(t){return function(e){return t.systemImpl_0.isRtlActive()?es(e,Br(30)):Ss(e,Br(30)),Ye}}(this)).provideDelegate_n5byny$(this,Lf),this.mainComponentFab_aypw9d$_0=this.css_uisso7$([],function(t){return function(e){return t.systemImpl_0.isRtlActive()||rs(e,Br(15)),t.systemImpl_0.isRtlActive()&&Jr(e,Br(15)),Xr(e,Kr.fixed),os(e,Br(70)),e.media_v44dnz$(B_(t.theme.breakpoints,t.tabletAndHighEnd_0),S$),Ye}}(this)).provideDelegate_n5byny$(this,zf),this.languageComponentLanguageSelectorFormControl_um3nu1$_0=this.css_uisso7$([],v$).provideDelegate_n5byny$(this,wf),this.tabsContainer_ly89wd$_0=this.css_uisso7$([],function(t){return function(e){return Hr(e,1),Lr(e,Ir(100)),e.unaryPlus_uoyjcc$(t.defaultFullWidth),Ye}}(this)).provideDelegate_n5byny$(this,Of),this.fieldsOnlyFormScreen_2e4ev5$_0=this.css_uisso7$([],function(t){return function(e){return Ss(e,C_(4)),es(e,C_(4)),Gr(e,C_(4)),Lr(e,ns(100)),Rr(e,Or.scroll),qr(e,C_(16)),Mr(e,Ir(99.5)),e.media_v44dnz$(B_(t.theme.breakpoints,t.tabletAndHighEnd_0),C$),Ye}}(this)).provideDelegate_n5byny$(this,Rf),this.scrollOnMobile_juvg3q$_0=this.css_uisso7$([],function(t){return function(e){return Rr(e,Or.scroll),e.media_v44dnz$(B_(t.theme.breakpoints,t.tabletAndHighEnd_0),N$),Ye}}(this)).provideDelegate_n5byny$(this,Af),this.contentContainer_cj5b9o$_0=this.css_uisso7$([],function(t){return function(e){return Pr(e,C_(1)),Wr(e,C_(1)),Lr(e,ns(100)),Rr(e,Or.scroll),Ss(e,C_(2)),es(e,C_(2)),qr(e,C_(16)),Mr(e,Ir(95.5)),e.media_v44dnz$(B_(t.theme.breakpoints,t.tabletAndHighEnd_0),T$),Ye}}(this)).provideDelegate_n5byny$(this,xf),this.reportActionText_wxlt99$_0=this.css_uisso7$([],L$).provideDelegate_n5byny$(this,If),this.startIcon_fcqshx$_0=this.css_uisso7$([],function(t){return function(e){return Wr(e,C_(6)),e.media_v44dnz$(B_(t.theme.breakpoints,t.tabletAndHighEnd_0),z$),Ye}}(this)).provideDelegate_n5byny$(this,Uf),this.endIcon_67km0c$_0=this.css_uisso7$([],function(t){return function(e){return Pr(e,C_(4)),e.media_v44dnz$(B_(t.theme.breakpoints,t.tabletAndHighEnd_0),w$),Ye}}(this)).provideDelegate_n5byny$(this,Df),this.centerContainer_fxue9g$_0=this.css_uisso7$([],O$).provideDelegate_n5byny$(this,Pf),this.videoPlayerWrapper_82vsot$_0=this.css_uisso7$([],R$).provideDelegate_n5byny$(this,Mf),this.alignCenterItems_hlvbiq$_0=this.css_uisso7$([],A$).provideDelegate_n5byny$(this,kf),this.alignStartItems_hnua77$_0=this.css_uisso7$([],x$).provideDelegate_n5byny$(this,jf),this.alignEndItems_j2yifq$_0=this.css_uisso7$([],I$).provideDelegate_n5byny$(this,Gf),this.listComponentContainer_k8vpaq$_0=this.css_uisso7$([],U$).provideDelegate_n5byny$(this,qf),this.listComponentContainerWithScroll_n6e0pt$_0=this.css_uisso7$([],D$).provideDelegate_n5byny$(this,Ff),this.entryListItemContainer_h74czu$_0=this.css_uisso7$([],P$).provideDelegate_n5byny$(this,Bf),this.listCreateNewContainer_kjendz$_0=this.css_uisso7$([],M$).provideDelegate_n5byny$(this,Wf),this.contentEntryListContentAvatarClass_qnv095$_0=this.css_uisso7$([],k$).provideDelegate_n5byny$(this,Hf),this.contentEntryListContentTyeIconClass_cwe9r$_0=this.css_uisso7$([],j$).provideDelegate_n5byny$(this,Vf),this.horizontalList_nao56a$_0=this.css_uisso7$([],function(t){return function(e){return Mr(e,Ir(100)),Zr(e,new Fr(t.theme.palette.background.paper)),Ye}}(this)).provideDelegate_n5byny$(this,Kf),this.horizontalListEmpty_kgz25x$_0=this.css_uisso7$([],G$).provideDelegate_n5byny$(this,Xf),this.listItemCreateNewDiv_1dfx6e$_0=this.css_uisso7$([],q$).provideDelegate_n5byny$(this,Jf),this.listCreateNewIconClass_w5x4nv$_0=this.css_uisso7$([],F$).provideDelegate_n5byny$(this,Yf),this.dragToReorderClass_7wzuzs$_0=this.css_uisso7$([],B$).provideDelegate_n5byny$(this,Qf),this.textGrayedOut_r8mcvz$_0=this.css_uisso7$([],function(t){return function(e){return ei(e,new Fr(t.theme.palette.action.disabled)),Ye}}(this)).provideDelegate_n5byny$(this,Zf),this.chipSetFilter_h9c2ni$_0=this.css_uisso7$([],W$).provideDelegate_n5byny$(this,tg),this.selectionContainer_z3ilun$_0=this.css_uisso7$([],function(t){return function(e){return Gr(e,Br(12)),qr(e,Br(12)),Mr(e,Ir(100)),Zr(e,new Fr(t.theme.palette.background.default)),Ye}}(this)).provideDelegate_n5byny$(this,eg),this.entityImageClass_w73pys$_0=this.css_uisso7$([],H$).provideDelegate_n5byny$(this,ng),this.entityThumbnailClass_d38qkb$_0=this.css_uisso7$([],function(t){return function(e){return Dr(e,Ur.center),Xr(e,Kr.relative),Mr(e,Ir(100)),Lr(e,Br(80)),e.media_v44dnz$(B_(t.theme.breakpoints,t.tabletAndHighEnd_0),V$),Ye}}(this)).provideDelegate_n5byny$(this,ig),this.entityImageIconClass_9yn03$_0=this.css_uisso7$([],K$).provideDelegate_n5byny$(this,og),this.emptyListIcon_sebcjg$_0=this.css_uisso7$([],X$).provideDelegate_n5byny$(this,rg),this.tabWarningIconClass_10b8d4$_0=this.css_uisso7$([],J$).provideDelegate_n5byny$(this,sg),this.entryItemImageContainer_n94lyj$_0=this.css_uisso7$([],Y$).provideDelegate_n5byny$(this,ag),this.fallBackAvatarClass_hed2gt$_0=this.css_uisso7$([],Q$).provideDelegate_n5byny$(this,cg),this.maxThumbnailClass_qq78j4$_0=this.css_uisso7$([],Z$).provideDelegate_n5byny$(this,lg),this.mediumThumbnailClass_3ayqml$_0=this.css_uisso7$([],tE).provideDelegate_n5byny$(this,ug),this.defaultThumbnailClass_bjx0fn$_0=this.css_uisso7$([],eE).provideDelegate_n5byny$(this,hg),this.secondaryActionBtn_p622hq$_0=this.css_uisso7$([],nE).provideDelegate_n5byny$(this,dg),this.personListItemAvatar_14uk1h$_0=this.css_uisso7$([],function(t){return function(e){return Mr(e,Br(50)),Lr(e,Br(50)),cs(e,Br(2),Br(t.systemImpl_0.isRtlActive()?2.4:0),Br(0),Br(t.systemImpl_0.isRtlActive()?0:2.4)),ei(e,new Fr(t.theme.palette.background.paper)),Zr(e,new Fr(t.theme.palette.action.disabled)),Ye}}(this)).provideDelegate_n5byny$(this,pg),this.contentEntryDetailOverviewComponentOpenBtn_3uopok$_0=this.css_uisso7$([],function(t){return function(e){return As(e,Ir(3),Ir(1.5)),Mr(e,Ir(98)),e.media_v44dnz$(B_(t.theme.breakpoints,t.tabletAndHighEnd_0),iE),Ye}}(this)).provideDelegate_n5byny$(this,_g),this.detailContentProgress_t7otsb$_0=this.css_uisso7$([],oE).provideDelegate_n5byny$(this,mg),this.itemContentProgress_f0dreb$_0=this.css_uisso7$([],function(t){return function(e){var n,i;return n=C_(2),i=Ir(1.5),cs(e,n,Ir(1.5),void 0,i),Mr(e,Ir(43)),e.media_v44dnz$(B_(t.theme.breakpoints,t.tabletAndHighEnd_0),rE),Ye}}(this)).provideDelegate_n5byny$(this,fg),this.detailIconClass_4ycm7m$_0=this.css_uisso7$([],sE).provideDelegate_n5byny$(this,gg),this.iframeComponentResponsiveIframe_h46xf3$_0=this.css_uisso7$([],function(t){return function(e){return Rr(e,Or.hidden),Mr(e,Ir(100)),Zr(e,Fr.Companion.transparent),xs(e,"0px"),Is(e,Ir(75)),cs(e,Ir(10)),e.media_v44dnz$(B_(t.theme.breakpoints,t.tabletAndHighEnd_0),aE),Ye}}(this)).provideDelegate_n5byny$(this,$g),this.personDetailComponentActions_ivh8z2$_0=this.css_uisso7$([],function(t){return function(e){return Zn(e,Qn.flex),ti(e,Yn.column),hs(e,ls.center),us(e,ls.center),qr(e,Br(16)),ts(e,Br(16),Br(30),Br(16),Br(30)),as(e,ss.pointer),Mr(e,Ir(100)),e.hover_lx8bml$(function(t){return function(e){return Zr(e,new Fr(t.theme.palette.action.selected)),Ye}}(t)),Ye}}(this)).provideDelegate_n5byny$(this,Eg),this.personDetailComponentActionIcon_6lbvfe$_0=this.css_uisso7$([],cE).provideDelegate_n5byny$(this,yg),this.videoComponentResponsiveMedia_elj6mm$_0=this.css_uisso7$([],function(t){return function(e){return Rr(e,Or.hidden),Mr(e,Ir(95)),Is(e,Ir(70)),Lr(e,Ir(70)),cs(e,Ir(10)),Zr(e,Fr.Companion.transparent),e.media_v44dnz$(B_(t.theme.breakpoints,t.tabletAndHighEnd_0),lE),Ye}}(this)).provideDelegate_n5byny$(this,bg),this.clazzItemClass_4d8y7t$_0=this.css_uisso7$([],uE).provideDelegate_n5byny$(this,Sg),this.clazzDetailExtraInfo_smm59d$_0=this.css_uisso7$([],hE).provideDelegate_n5byny$(this,vg),this.clazzListRoleChip_qooqq0$_0=this.css_uisso7$([],dE).provideDelegate_n5byny$(this,Cg),this.gridListSecondaryItemIcons_mz1p0d$_0=this.css_uisso7$([],pE).provideDelegate_n5byny$(this,Ng),this.gridListSecondaryItemDesc_1miq8k$_0=this.css_uisso7$([],_E).provideDelegate_n5byny$(this,Tg),this.hideOnMobile_sqz3zl$_0=this.css_uisso7$([],function(t){return function(e){return Zn(e,Qn.none),e.media_v44dnz$(B_(t.theme.breakpoints,t.tabletAndHighEnd_0),mE),Ye}}(this)).provideDelegate_n5byny$(this,Lg),this.showOnMobile_e0ubh2$_0=this.css_uisso7$([],function(t){return function(e){return Zn(e,Qn.block),e.media_v44dnz$(B_(t.theme.breakpoints,t.tabletAndHighEnd_0),fE),Ye}}(this)).provideDelegate_n5byny$(this,zg),this.partnerItem_t9ki11$_0=this.css_uisso7$([],function(t){return function(e){return Lr(e,Br(40)),ts(e,void 0,void 0,void 0,C_(1)),Ps(e,Ds.Companion.middle),e.media_v44dnz$(B_(t.theme.breakpoints,t.tabletAndHighEnd_0),gE),Ye}}(this)).provideDelegate_n5byny$(this,wg),this.partnersList_345vuz$_0=this.css_uisso7$([],function(t){return function(e){return Xr(e,Kr.fixed),rs(e,C_(2)),os(e,C_(2)),Mr(e,ns(100)),e.media_v44dnz$(B_(t.theme.breakpoints,t.tabletAndHighEnd_0),$E),Ye}}(this)).provideDelegate_n5byny$(this,Og),this.studentProgressBar_17h22x$_0=this.css_uisso7$([],function(t){return function(e){return Mr(e,Ir(50)),es(e,C_(2)),kr(e,Br(10)),e.media_v44dnz$(B_(t.theme.breakpoints,t.tabletAndHighEnd_0),EE),Ye}}(this)).provideDelegate_n5byny$(this,Rg),this.dropZoneArea_px87os$_0=this.css_uisso7$([],function(t){return function(e){return Zr(e,new Fr("transparent !important")),Mr(e,Ir(90)),Is(e,ns(70)),xs(e,"10px dashed "+t.theme.palette.action.selected+" !important"),us(e,ls.center),Zn(e,Qn.flex),as(e,ss.pointer),bs(e,ys.center),ti(e,Yn.column),Ye}}(this)).provideDelegate_n5byny$(this,Ag),this.dropZoneAreaActive_4f45x6$_0=this.css_uisso7$([],function(t){return function(e){return xs(e,"10px dashed "+t.theme.palette.info.main+" !important"),Ye}}(this)).provideDelegate_n5byny$(this,xg),this.dropZoneAreaSuccess_1fkth7$_0=this.css_uisso7$([],function(t){return function(e){return xs(e,"10px dashed "+t.theme.palette.success.main+" !important"),Ye}}(this)).provideDelegate_n5byny$(this,Ig),this.dropZoneAreaError_u3k8io$_0=this.css_uisso7$([],function(t){return function(e){return xs(e,"10px dashed "+t.theme.palette.error.main+" !important"),Ye}}(this)).provideDelegate_n5byny$(this,Ug),this.dropZoneIcon_q1d7cw$_0=this.css_uisso7$([],function(t){return function(e){return kr(e,Ir(15)),Ns(e,Cs(16)),ei(e,new Fr(t.theme.palette.action.selected+" !important")),e.media_v44dnz$(B_(t.theme.breakpoints,t.tabletAndHighEnd_0),yE),Ye}}(this)).provideDelegate_n5byny$(this,Dg),this.dropZoneTxt_m2fhkl$_0=this.css_uisso7$([],bE).provideDelegate_n5byny$(this,Pg),this.chatMessageContent_ffyms6$_0=this.css_uisso7$([],SE).provideDelegate_n5byny$(this,Mg),this.chatLeft_foys7f$_0=this.css_uisso7$([],vE).provideDelegate_n5byny$(this,kg),this.chatRight_dmbfp8$_0=this.css_uisso7$([],CE).provideDelegate_n5byny$(this,jg)}Nm.$metadata$={kind:Vn,simpleName:"EmptyList",interfaces:[]},Nm.prototype.component1=function(){return this.text},Nm.prototype.component2=function(){return this.icon},Nm.prototype.copy_rkkr90$=function(t,e){return new Nm(void 0===t?this.text:t,void 0===e?this.icon:e)},Nm.prototype.toString=function(){return"EmptyList(text="+e.toString(this.text)+", icon="+e.toString(this.icon)+")"},Nm.prototype.hashCode=function(){var t=0;return t=31*(t=31*t+e.hashCode(this.text)|0)+e.hashCode(this.icon)|0},Nm.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.text,t.text)&&e.equals(this.icon,t.icon)},Object.defineProperty(Tm.prototype,"onClickListener",{configurable:!0,get:function(){return this.onClickListener_u1jysn$_0},set:function(t){this.onClickListener_u1jysn$_0=t}}),Object.defineProperty(Tm.prototype,"visible",{configurable:!0,get:function(){return this.visible_qvq518$_0},set:function(t){this.visible_qvq518$_0=t,this.updateIconAndFabText_0(t)}}),Object.defineProperty(Tm.prototype,"icon",{configurable:!0,get:function(){return this.icon_d7ip3v$_0},set:function(t){this.icon_d7ip3v$_0=t,this.updateIconAndFabText_0(this.visible)}}),Object.defineProperty(Tm.prototype,"text",{configurable:!0,get:function(){return this.text_d1fhsf$_0},set:function(t){this.text_d1fhsf$_0=t,this.updateIconAndFabText_0(this.visible)}}),Tm.prototype.updateIconAndFabText_0=function(t){var e,n,i,o,r,s,a;if(null!=(i=null!=(n=null!=(e=this.fabView_0)?e.childNodes:null)?n.item(0):null)&&(i.textContent=this.icon),null!=(s=null!=(r=null!=(o=this.fabView_0)?o.childNodes:null)?r.item(1):null)&&(s.textContent=this.text),null!=this.fabView_0){var c=(null!=(a=this.fabView_0)?a:null).style;null!=c&&(c.display=t?"flex":"none")}},Tm.prototype.onDestroy=function(){window.removeEventListener("click",this.clickEventHandler_0),window.clearTimeout(this.viewInitTimeoutId_0),this.onClickListener=null,this.fabView_0=null},Tm.$metadata$={kind:Vn,simpleName:"FabManager",interfaces:[]},Lm.$metadata$={kind:Vn,simpleName:"FieldLabel",interfaces:[]},Lm.prototype.component1=function(){return this.text},Lm.prototype.component2=function(){return this.errorText},Lm.prototype.component3=function(){return this.hint},Lm.prototype.component4=function(){return this.id},Lm.prototype.copy_d8n4vg$=function(t,e,n,i){return new Lm(void 0===t?this.text:t,void 0===e?this.errorText:e,void 0===n?this.hint:n,void 0===i?this.id:i)},Lm.prototype.toString=function(){return"FieldLabel(text="+e.toString(this.text)+", errorText="+e.toString(this.errorText)+", hint="+e.toString(this.hint)+", id="+e.toString(this.id)+")"},Lm.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*(t=31*t+e.hashCode(this.text)|0)+e.hashCode(this.errorText)|0)+e.hashCode(this.hint)|0)+e.hashCode(this.id)|0},Lm.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.text,t.text)&&e.equals(this.errorText,t.errorText)&&e.equals(this.hint,t.hint)&&e.equals(this.id,t.id)},zm.$metadata$={kind:$r,simpleName:"OnFileAttached",interfaces:[]},Object.defineProperty(wm.prototype,"onFileAttached",{configurable:!0,get:function(){return this.onFileAttached_1uf4l3$_0},set:function(t){this.onFileAttached_1uf4l3$_0=t}}),wm.prototype.handleSelectedFile_0=function(t){var e,n,i,o,r,s=t.type;if(0===s.length){var a=gr.UMFileUtil.getExtension_61zpoe$(t.name);r=null!=a?"."+In(a):null}else r=s;var c=r,l=this.mimeTypeMatcher_0.match_pdl1vj$(c);l?null!=(e=this.onFileAttached)&&e.onValidFileAttached_6d2hh8$(t):null!=(n=this.onFileAttached)&&n.onInvalidFileAttached(),null!=(o=null!=(i=this.dropZoneElement_0)?i.classList:null)&&o.add(TE().name+"-dropZoneArea"+(l?"Success":"Error"))},wm.prototype.onDestroy=function(){var t,e,n,i,o;this.onFileAttached=null,null!=(t=this.dropZoneElement_0)&&t.removeEventListener("click",this.onFileBrowseHandler_0),null!=(e=this.dropZoneElement_0)&&e.removeEventListener("dragover",this.onFileDragOverHandler_0),null!=(n=this.dropZoneElement_0)&&n.removeEventListener("dragleave",this.onFileDragLeaveHandler_0),null!=(i=this.dropZoneElement_0)&&i.removeEventListener("drop",this.onFileDropHandler_0),null!=(o=this.dropZoneInput_0)&&o.removeEventListener("change",this.onFileInputChangedHandler_0),this.dropZoneElement_0=null,this.dropZoneInput_0=null},wm.$metadata$={kind:Vn,simpleName:"FileDropZoneManager",interfaces:[]},Om.$metadata$={kind:Vn,simpleName:"MatchGroup",interfaces:[]},Om.prototype.component1=function(){return this.valid},Om.prototype.component2=function(){return this.type},Om.prototype.component3=function(){return this.subType},Om.prototype.copy_32fsn9$=function(t,e,n){return new Om(void 0===t?this.valid:t,void 0===e?this.type:e,void 0===n?this.subType:n)},Om.prototype.toString=function(){return"MatchGroup(valid="+e.toString(this.valid)+", type="+e.toString(this.type)+", subType="+e.toString(this.subType)+")"},Om.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*t+e.hashCode(this.valid)|0)+e.hashCode(this.type)|0)+e.hashCode(this.subType)|0},Om.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.valid,t.valid)&&e.equals(this.type,t.type)&&e.equals(this.subType,t.subType)},Rm.prototype.parse_0=function(t){var e,n,i,o,r=br("(\\S+|\\*|\\.S)/(\\S+|\\*|\\S-\\S)(\\s*;\\s*(\\w+)=\\s*=\\s*(\\S+))?"),s=null!=(e=null!=t?r.matches_6bul2c$(t):null)&&e,a=null!=(n=r.matchEntire_6bul2c$(null!=t?t:""))?n.groups:null;return new Om(s,null!=(i=null!=a?a.get_za3lpa$(1):null)?i.value:null,null!=(o=null!=a?a.get_za3lpa$(2):null)?o.value:null)},Rm.prototype.validateMimeType_0=function(t,e){return!!Je(e,"*")||Je(null!=e?e.toLowerCase():null,null!=t?t.toLowerCase():null)},Rm.prototype.match_pdl1vj$=function(t){var e,n=this.parse_0(t),i=this.validatedMimeTypes_0;t:do{var o;for(o=i.iterator();o.hasNext();){var r=o.next();if(this.validateMimeType_0(n.type,r.type)&&this.validateMimeType_0(n.subType,r.subType)){e=r;break t}}e=null}while(0);return null!=e||-1!==Er(this.mimeTypesToMatch_0,t)},Rm.$metadata$={kind:Vn,simpleName:"MimeTypeMatcher",interfaces:[]},Object.defineProperty(Am.prototype,"onScrollPageChanged",{configurable:!0,get:function(){return this.onScrollPageChanged_wifbf5$_0},set:function(t){var e;null!=t&&t(this.pageNumber_0,this.startIndex(),this.endIndex()),this.pageSize_0!==this.totalItemCount_0&&this.totalPages_0>1&&(this.scrollManager_0=new Um("main-content"),null!=(e=this.scrollManager_0)&&(e.scrollListener=this.onScroll_0)),this.onScrollPageChanged_wifbf5$_0=t}}),Am.prototype.onDestroy=function(){var t;null!=(t=this.scrollManager_0)&&t.onDestroy(),this.scrollManager_0=null,this.onScrollPageChanged=null},Am.$metadata$={kind:Vn,simpleName:"PaginateOnScrollManager",interfaces:[]},Object.defineProperty(xm.prototype,"progressBarVisibility",{configurable:!0,get:function(){return this.progressBarVisibility_jqlph9$_0},set:function(t){var e;if(this.progressBarVisibility_jqlph9$_0=t,null!=this.progressView_0){var n=(null!=(e=this.progressView_0)?e:null).style;null!=n&&(n.display=t?"block":"none")}}}),xm.prototype.onDestroy=function(){this.progressView_0=null},xm.$metadata$={kind:Vn,simpleName:"ProgressBarManager",interfaces:[]},Im.$metadata$={kind:$r,simpleName:"UmProps",interfaces:[]},Object.defineProperty(Um.prototype,"scrollListener",{configurable:!0,get:function(){return this.scrollListener_oq0va9$_0},set:function(t){var e;null!=t&&(this.scrollElement_0=document.getElementById(this.viewToObserve_0),null!=(e=this.scrollElement_0)&&e.addEventListener("scroll",this.scrollEventCallback_0)),this.scrollListener_oq0va9$_0=t}}),Um.prototype.onDestroy=function(){var t;null!=(t=this.scrollElement_0)&&t.removeEventListener("scroll",this.scrollEventCallback_0),this.scrollElement_0=null,this.lastScrollPercentage_0=0,window.clearTimeout(this.scrollHandlerTimeOutId_0),this.scrollHandlerTimeOutId_0=-1,this.scrollListener=null},Um.$metadata$={kind:Vn,simpleName:"ScrollManager",interfaces:[]},Object.defineProperty(Dm.prototype,"searchListener",{configurable:!0,get:function(){return this.searchListener_94llux$_0},set:function(t){var e;this.viewInitTimeoutId_0=window.setTimeout((e=this,function(){var t;return e.searchView_0=document.getElementById(e.viewId_0),null!=(t=e.searchView_0)?(t.addEventListener("input",e.searchHandler_0),Ye):null}),1e3),this.searchListener_94llux$_0=t}}),Dm.prototype.onDestroy=function(){window.removeEventListener("input",this.searchHandler_0),window.clearTimeout(this.searchHandlerId_0),window.clearTimeout(this.viewInitTimeoutId_0),this.searchListener=null,this.searchView_0=null},Dm.$metadata$={kind:Vn,simpleName:"SearchManager",interfaces:[]};var Mm=new Cr("systemImpl");Object.defineProperty(Pm.prototype,"systemImpl_0",{configurable:!0,get:function(){return this.systemImpl_b40aij$_0.value}});var km=new Cr("alignTextToStart");Object.defineProperty(Pm.prototype,"alignTextToStart",{configurable:!0,get:function(){return this.alignTextToStart_p5422n$_0.getValue_lrcp0p$(this,km)}});var jm=new Cr("contentAfterIconMarginLeft");Object.defineProperty(Pm.prototype,"contentAfterIconMarginLeft",{configurable:!0,get:function(){return this.contentAfterIconMarginLeft_9cutf$_0.getValue_lrcp0p$(this,jm)}});var Gm=new Cr("umItemWithIconAndText");Object.defineProperty(Pm.prototype,"umItemWithIconAndText",{configurable:!0,get:function(){return this.umItemWithIconAndText_ffzu7a$_0.getValue_lrcp0p$(this,Gm)}});var qm=new Cr("alignTextCenter");Object.defineProperty(Pm.prototype,"alignTextCenter",{configurable:!0,get:function(){return this.alignTextCenter_f1vy0p$_0.getValue_lrcp0p$(this,qm)}});var Fm=new Cr("defaultFullWidth");Object.defineProperty(Pm.prototype,"defaultFullWidth",{configurable:!0,get:function(){return this.defaultFullWidth_gwv8rm$_0.getValue_lrcp0p$(this,Fm)}});var Bm=new Cr("defaultMarginTop");Object.defineProperty(Pm.prototype,"defaultMarginTop",{configurable:!0,get:function(){return this.defaultMarginTop_r1e7pq$_0.getValue_lrcp0p$(this,Bm)}});var Wm=new Cr("defaultMarginBottom");Object.defineProperty(Pm.prototype,"defaultMarginBottom",{configurable:!0,get:function(){return this.defaultMarginBottom_u82mnu$_0.getValue_lrcp0p$(this,Wm)}});var Hm=new Cr("defaultPaddingTop");Object.defineProperty(Pm.prototype,"defaultPaddingTop",{configurable:!0,get:function(){return this.defaultPaddingTop_fvmuzf$_0.getValue_lrcp0p$(this,Hm)}});var Vm=new Cr("defaultPaddingTopBottom");Object.defineProperty(Pm.prototype,"defaultPaddingTopBottom",{configurable:!0,get:function(){return this.defaultPaddingTopBottom_pb7v00$_0.getValue_lrcp0p$(this,Vm)}});var Km=new Cr("defaultDoubleMarginTop");Object.defineProperty(Pm.prototype,"defaultDoubleMarginTop",{configurable:!0,get:function(){return this.defaultDoubleMarginTop_pbnxtr$_0.getValue_lrcp0p$(this,Km)}});var Xm=new Cr("errorTextClass");Object.defineProperty(Pm.prototype,"errorTextClass",{configurable:!0,get:function(){return this.errorTextClass_heumzz$_0.getValue_lrcp0p$(this,Xm)}});var Jm=new Cr("errorClass");Object.defineProperty(Pm.prototype,"errorClass",{configurable:!0,get:function(){return this.errorClass_cahu2k$_0.getValue_lrcp0p$(this,Jm)}});var Ym=new Cr("successClass");Object.defineProperty(Pm.prototype,"successClass",{configurable:!0,get:function(){return this.successClass_a9gm69$_0.getValue_lrcp0p$(this,Ym)}});var Qm=new Cr("splashComponentContainer");Object.defineProperty(Pm.prototype,"splashComponentContainer",{configurable:!0,get:function(){return this.splashComponentContainer_nvcuzt$_0.getValue_lrcp0p$(this,Qm)}});var Zm=new Cr("splashComponentPreloadContainer");Object.defineProperty(Pm.prototype,"splashComponentPreloadContainer",{configurable:!0,get:function(){return this.splashComponentPreloadContainer_9acrsi$_0.getValue_lrcp0p$(this,Zm)}});var tf=new Cr("mainComponentErrorPaper");Object.defineProperty(Pm.prototype,"mainComponentErrorPaper",{configurable:!0,get:function(){return this.mainComponentErrorPaper_rr327c$_0.getValue_lrcp0p$(this,tf)}});var ef=new Cr("mainComponentProgressIndicator");Object.defineProperty(Pm.prototype,"mainComponentProgressIndicator",{configurable:!0,get:function(){return this.mainComponentProgressIndicator_562tqu$_0.getValue_lrcp0p$(this,ef)}});var nf=new Cr("mainComponentContainer");Object.defineProperty(Pm.prototype,"mainComponentContainer",{configurable:!0,get:function(){return this.mainComponentContainer_vyvcuv$_0.getValue_lrcp0p$(this,nf)}});var of=new Cr("mainComponentWrapperContainer");Object.defineProperty(Pm.prototype,"mainComponentWrapperContainer",{configurable:!0,get:function(){return this.mainComponentWrapperContainer_m8b2mm$_0.getValue_lrcp0p$(this,of)}});var rf=new Cr("mainComponentAppBar");Object.defineProperty(Pm.prototype,"mainComponentAppBar",{configurable:!0,get:function(){return this.mainComponentAppBar_oyk06u$_0.getValue_lrcp0p$(this,rf)}});var sf=new Cr("detailPaddingBottom");Object.defineProperty(Pm.prototype,"detailPaddingBottom",{configurable:!0,get:function(){return this.detailPaddingBottom_x4slfv$_0.getValue_lrcp0p$(this,sf)}});var af=new Cr("entryDetailRightSection");Object.defineProperty(Pm.prototype,"entryDetailRightSection",{configurable:!0,get:function(){return this.entryDetailRightSection_3nz7zo$_0.getValue_lrcp0p$(this,af)}});var cf=new Cr("switchMargin");Object.defineProperty(Pm.prototype,"switchMargin",{configurable:!0,get:function(){return this.switchMargin_p6ttoy$_0.getValue_lrcp0p$(this,cf)}});var lf=new Cr("screenWithChartOnLeft");Object.defineProperty(Pm.prototype,"screenWithChartOnLeft",{configurable:!0,get:function(){return this.screenWithChartOnLeft_5bsg26$_0.getValue_lrcp0p$(this,lf)}});var uf=new Cr("mainComponentAppBarWithNoNav");Object.defineProperty(Pm.prototype,"mainComponentAppBarWithNoNav",{configurable:!0,get:function(){return this.mainComponentAppBarWithNoNav_6st9xq$_0.getValue_lrcp0p$(this,uf)}});var hf=new Cr("mainComponentContentContainer");Object.defineProperty(Pm.prototype,"mainComponentContentContainer",{configurable:!0,get:function(){return this.mainComponentContentContainer_p7gwwc$_0.getValue_lrcp0p$(this,hf)}});var df=new Cr("mainComponentBottomNav");Object.defineProperty(Pm.prototype,"mainComponentBottomNav",{configurable:!0,get:function(){return this.mainComponentBottomNav_1qjdj4$_0.getValue_lrcp0p$(this,df)}});var pf=new Cr("mainComponentBrandIconContainer");Object.defineProperty(Pm.prototype,"mainComponentBrandIconContainer",{configurable:!0,get:function(){return this.mainComponentBrandIconContainer_yaoyhx$_0.getValue_lrcp0p$(this,pf)}});var _f=new Cr("mainComponentBrandIcon");Object.defineProperty(Pm.prototype,"mainComponentBrandIcon",{configurable:!0,get:function(){return this.mainComponentBrandIcon_j2tld4$_0.getValue_lrcp0p$(this,_f)}});var mf=new Cr("mainComponentSideNavMenuList");Object.defineProperty(Pm.prototype,"mainComponentSideNavMenuList",{configurable:!0,get:function(){return this.mainComponentSideNavMenuList_bvkeup$_0.getValue_lrcp0p$(this,mf)}});var ff=new Cr("toolbarTitle");Object.defineProperty(Pm.prototype,"toolbarTitle",{configurable:!0,get:function(){return this.toolbarTitle_2ry4pj$_0.getValue_lrcp0p$(this,ff)}});var gf=new Cr("mainComponentProfileOuterAvatar");Object.defineProperty(Pm.prototype,"mainComponentProfileOuterAvatar",{configurable:!0,get:function(){return this.mainComponentProfileOuterAvatar_5e6967$_0.getValue_lrcp0p$(this,gf)}});var $f=new Cr("mainComponentProfileInnerAvatar");Object.defineProperty(Pm.prototype,"mainComponentProfileInnerAvatar",{configurable:!0,get:function(){return this.mainComponentProfileInnerAvatar_3rmfqi$_0.getValue_lrcp0p$(this,$f)}});var Ef=new Cr("mainComponentInputSearchClass");Object.defineProperty(Pm.prototype,"mainComponentInputSearchClass",{configurable:!0,get:function(){return this.mainComponentInputSearchClass_71yyiy$_0.getValue_lrcp0p$(this,Ef)}});var yf=new Cr("chatInputMessageClass");Object.defineProperty(Pm.prototype,"chatInputMessageClass",{configurable:!0,get:function(){return this.chatInputMessageClass_6htvtv$_0.getValue_lrcp0p$(this,yf)}});var bf=new Cr("mainComponentSearch");Object.defineProperty(Pm.prototype,"mainComponentSearch",{configurable:!0,get:function(){return this.mainComponentSearch_kqcv9w$_0.getValue_lrcp0p$(this,bf)}});var Sf=new Cr("typingMessage");Object.defineProperty(Pm.prototype,"typingMessage",{configurable:!0,get:function(){return this.typingMessage_lo4rf4$_0.getValue_lrcp0p$(this,Sf)}});var vf=new Cr("messageSendButton");Object.defineProperty(Pm.prototype,"messageSendButton",{configurable:!0,get:function(){return this.messageSendButton_z8yy4f$_0.getValue_lrcp0p$(this,vf)}});var Cf=new Cr("messageContainer");Object.defineProperty(Pm.prototype,"messageContainer",{configurable:!0,get:function(){return this.messageContainer_jd1gh2$_0.getValue_lrcp0p$(this,Cf)}});var Nf=new Cr("chatDetailNewMessage");Object.defineProperty(Pm.prototype,"chatDetailNewMessage",{configurable:!0,get:function(){return this.chatDetailNewMessage_s5gm8s$_0.getValue_lrcp0p$(this,Nf)}});var Tf=new Cr("mainComponentSearchIcon");Object.defineProperty(Pm.prototype,"mainComponentSearchIcon",{configurable:!0,get:function(){return this.mainComponentSearchIcon_g3mujp$_0.getValue_lrcp0p$(this,Tf)}});var Lf=new Cr("mainComponentToolbarMargins");Object.defineProperty(Pm.prototype,"mainComponentToolbarMargins",{configurable:!0,get:function(){return this.mainComponentToolbarMargins_dml86q$_0.getValue_lrcp0p$(this,Lf)}});var zf=new Cr("mainComponentFab");Object.defineProperty(Pm.prototype,"mainComponentFab",{configurable:!0,get:function(){return this.mainComponentFab_aypw9d$_0.getValue_lrcp0p$(this,zf)}});var wf=new Cr("languageComponentLanguageSelectorFormControl");Object.defineProperty(Pm.prototype,"languageComponentLanguageSelectorFormControl",{configurable:!0,get:function(){return this.languageComponentLanguageSelectorFormControl_um3nu1$_0.getValue_lrcp0p$(this,wf)}}),Pm.prototype.displayProperty_dqye30$=function(t,e){return void 0===e&&(e=!1),t?e?Qn.flex:Qn.block:Qn.none},Pm.prototype.maxLines_th7wno$=function(t,e){Tr(t,new Nr("1.5em")),Lr(t,new ai((1.5*e).toString()+"em")),wr(t,zr.ellipsis),Rr(t,Or.hidden)};var Of=new Cr("tabsContainer");Object.defineProperty(Pm.prototype,"tabsContainer",{configurable:!0,get:function(){return this.tabsContainer_ly89wd$_0.getValue_lrcp0p$(this,Of)}});var Rf=new Cr("fieldsOnlyFormScreen");Object.defineProperty(Pm.prototype,"fieldsOnlyFormScreen",{configurable:!0,get:function(){return this.fieldsOnlyFormScreen_2e4ev5$_0.getValue_lrcp0p$(this,Rf)}});var Af=new Cr("scrollOnMobile");Object.defineProperty(Pm.prototype,"scrollOnMobile",{configurable:!0,get:function(){return this.scrollOnMobile_juvg3q$_0.getValue_lrcp0p$(this,Af)}});var xf=new Cr("contentContainer");Object.defineProperty(Pm.prototype,"contentContainer",{configurable:!0,get:function(){return this.contentContainer_cj5b9o$_0.getValue_lrcp0p$(this,xf)}});var If=new Cr("reportActionText");Object.defineProperty(Pm.prototype,"reportActionText",{configurable:!0,get:function(){return this.reportActionText_wxlt99$_0.getValue_lrcp0p$(this,If)}});var Uf=new Cr("startIcon");Object.defineProperty(Pm.prototype,"startIcon",{configurable:!0,get:function(){return this.startIcon_fcqshx$_0.getValue_lrcp0p$(this,Uf)}});var Df=new Cr("endIcon");Object.defineProperty(Pm.prototype,"endIcon",{configurable:!0,get:function(){return this.endIcon_67km0c$_0.getValue_lrcp0p$(this,Df)}});var Pf=new Cr("centerContainer");Object.defineProperty(Pm.prototype,"centerContainer",{configurable:!0,get:function(){return this.centerContainer_fxue9g$_0.getValue_lrcp0p$(this,Pf)}});var Mf=new Cr("videoPlayerWrapper");Object.defineProperty(Pm.prototype,"videoPlayerWrapper",{configurable:!0,get:function(){return this.videoPlayerWrapper_82vsot$_0.getValue_lrcp0p$(this,Mf)}});var kf=new Cr("alignCenterItems");Object.defineProperty(Pm.prototype,"alignCenterItems",{configurable:!0,get:function(){return this.alignCenterItems_hlvbiq$_0.getValue_lrcp0p$(this,kf)}});var jf=new Cr("alignStartItems");Object.defineProperty(Pm.prototype,"alignStartItems",{configurable:!0,get:function(){return this.alignStartItems_hnua77$_0.getValue_lrcp0p$(this,jf)}});var Gf=new Cr("alignEndItems");Object.defineProperty(Pm.prototype,"alignEndItems",{configurable:!0,get:function(){return this.alignEndItems_j2yifq$_0.getValue_lrcp0p$(this,Gf)}});var qf=new Cr("listComponentContainer");Object.defineProperty(Pm.prototype,"listComponentContainer",{configurable:!0,get:function(){return this.listComponentContainer_k8vpaq$_0.getValue_lrcp0p$(this,qf)}});var Ff=new Cr("listComponentContainerWithScroll");Object.defineProperty(Pm.prototype,"listComponentContainerWithScroll",{configurable:!0,get:function(){return this.listComponentContainerWithScroll_n6e0pt$_0.getValue_lrcp0p$(this,Ff)}});var Bf=new Cr("entryListItemContainer");Object.defineProperty(Pm.prototype,"entryListItemContainer",{configurable:!0,get:function(){return this.entryListItemContainer_h74czu$_0.getValue_lrcp0p$(this,Bf)}});var Wf=new Cr("listCreateNewContainer");Object.defineProperty(Pm.prototype,"listCreateNewContainer",{configurable:!0,get:function(){return this.listCreateNewContainer_kjendz$_0.getValue_lrcp0p$(this,Wf)}});var Hf=new Cr("contentEntryListContentAvatarClass");Object.defineProperty(Pm.prototype,"contentEntryListContentAvatarClass",{configurable:!0,get:function(){return this.contentEntryListContentAvatarClass_qnv095$_0.getValue_lrcp0p$(this,Hf)}});var Vf=new Cr("contentEntryListContentTyeIconClass");Object.defineProperty(Pm.prototype,"contentEntryListContentTyeIconClass",{configurable:!0,get:function(){return this.contentEntryListContentTyeIconClass_cwe9r$_0.getValue_lrcp0p$(this,Vf)}});var Kf=new Cr("horizontalList");Object.defineProperty(Pm.prototype,"horizontalList",{configurable:!0,get:function(){return this.horizontalList_nao56a$_0.getValue_lrcp0p$(this,Kf)}});var Xf=new Cr("horizontalListEmpty");Object.defineProperty(Pm.prototype,"horizontalListEmpty",{configurable:!0,get:function(){return this.horizontalListEmpty_kgz25x$_0.getValue_lrcp0p$(this,Xf)}});var Jf=new Cr("listItemCreateNewDiv");Object.defineProperty(Pm.prototype,"listItemCreateNewDiv",{configurable:!0,get:function(){return this.listItemCreateNewDiv_1dfx6e$_0.getValue_lrcp0p$(this,Jf)}});var Yf=new Cr("listCreateNewIconClass");Object.defineProperty(Pm.prototype,"listCreateNewIconClass",{configurable:!0,get:function(){return this.listCreateNewIconClass_w5x4nv$_0.getValue_lrcp0p$(this,Yf)}});var Qf=new Cr("dragToReorderClass");Object.defineProperty(Pm.prototype,"dragToReorderClass",{configurable:!0,get:function(){return this.dragToReorderClass_7wzuzs$_0.getValue_lrcp0p$(this,Qf)}});var Zf=new Cr("textGrayedOut");Object.defineProperty(Pm.prototype,"textGrayedOut",{configurable:!0,get:function(){return this.textGrayedOut_r8mcvz$_0.getValue_lrcp0p$(this,Zf)}});var tg=new Cr("chipSetFilter");Object.defineProperty(Pm.prototype,"chipSetFilter",{configurable:!0,get:function(){return this.chipSetFilter_h9c2ni$_0.getValue_lrcp0p$(this,tg)}});var eg=new Cr("selectionContainer");Object.defineProperty(Pm.prototype,"selectionContainer",{configurable:!0,get:function(){return this.selectionContainer_z3ilun$_0.getValue_lrcp0p$(this,eg)}});var ng=new Cr("entityImageClass");Object.defineProperty(Pm.prototype,"entityImageClass",{configurable:!0,get:function(){return this.entityImageClass_w73pys$_0.getValue_lrcp0p$(this,ng)}});var ig=new Cr("entityThumbnailClass");Object.defineProperty(Pm.prototype,"entityThumbnailClass",{configurable:!0,get:function(){return this.entityThumbnailClass_d38qkb$_0.getValue_lrcp0p$(this,ig)}});var og=new Cr("entityImageIconClass");Object.defineProperty(Pm.prototype,"entityImageIconClass",{configurable:!0,get:function(){return this.entityImageIconClass_9yn03$_0.getValue_lrcp0p$(this,og)}});var rg=new Cr("emptyListIcon");Object.defineProperty(Pm.prototype,"emptyListIcon",{configurable:!0,get:function(){return this.emptyListIcon_sebcjg$_0.getValue_lrcp0p$(this,rg)}});var sg=new Cr("tabWarningIconClass");Object.defineProperty(Pm.prototype,"tabWarningIconClass",{configurable:!0,get:function(){return this.tabWarningIconClass_10b8d4$_0.getValue_lrcp0p$(this,sg)}});var ag=new Cr("entryItemImageContainer");Object.defineProperty(Pm.prototype,"entryItemImageContainer",{configurable:!0,get:function(){return this.entryItemImageContainer_n94lyj$_0.getValue_lrcp0p$(this,ag)}});var cg=new Cr("fallBackAvatarClass");Object.defineProperty(Pm.prototype,"fallBackAvatarClass",{configurable:!0,get:function(){return this.fallBackAvatarClass_hed2gt$_0.getValue_lrcp0p$(this,cg)}});var lg=new Cr("maxThumbnailClass");Object.defineProperty(Pm.prototype,"maxThumbnailClass",{configurable:!0,get:function(){return this.maxThumbnailClass_qq78j4$_0.getValue_lrcp0p$(this,lg)}});var ug=new Cr("mediumThumbnailClass");Object.defineProperty(Pm.prototype,"mediumThumbnailClass",{configurable:!0,get:function(){return this.mediumThumbnailClass_3ayqml$_0.getValue_lrcp0p$(this,ug)}});var hg=new Cr("defaultThumbnailClass");Object.defineProperty(Pm.prototype,"defaultThumbnailClass",{configurable:!0,get:function(){return this.defaultThumbnailClass_bjx0fn$_0.getValue_lrcp0p$(this,hg)}});var dg=new Cr("secondaryActionBtn");Object.defineProperty(Pm.prototype,"secondaryActionBtn",{configurable:!0,get:function(){return this.secondaryActionBtn_p622hq$_0.getValue_lrcp0p$(this,dg)}});var pg=new Cr("personListItemAvatar");Object.defineProperty(Pm.prototype,"personListItemAvatar",{configurable:!0,get:function(){return this.personListItemAvatar_14uk1h$_0.getValue_lrcp0p$(this,pg)}});var _g=new Cr("contentEntryDetailOverviewComponentOpenBtn");Object.defineProperty(Pm.prototype,"contentEntryDetailOverviewComponentOpenBtn",{configurable:!0,get:function(){return this.contentEntryDetailOverviewComponentOpenBtn_3uopok$_0.getValue_lrcp0p$(this,_g)}});var mg=new Cr("detailContentProgress");Object.defineProperty(Pm.prototype,"detailContentProgress",{configurable:!0,get:function(){return this.detailContentProgress_t7otsb$_0.getValue_lrcp0p$(this,mg)}});var fg=new Cr("itemContentProgress");Object.defineProperty(Pm.prototype,"itemContentProgress",{configurable:!0,get:function(){return this.itemContentProgress_f0dreb$_0.getValue_lrcp0p$(this,fg)}});var gg=new Cr("detailIconClass");Object.defineProperty(Pm.prototype,"detailIconClass",{configurable:!0,get:function(){return this.detailIconClass_4ycm7m$_0.getValue_lrcp0p$(this,gg)}});var $g=new Cr("iframeComponentResponsiveIframe");Object.defineProperty(Pm.prototype,"iframeComponentResponsiveIframe",{configurable:!0,get:function(){return this.iframeComponentResponsiveIframe_h46xf3$_0.getValue_lrcp0p$(this,$g)}});var Eg=new Cr("personDetailComponentActions");Object.defineProperty(Pm.prototype,"personDetailComponentActions",{configurable:!0,get:function(){return this.personDetailComponentActions_ivh8z2$_0.getValue_lrcp0p$(this,Eg)}});var yg=new Cr("personDetailComponentActionIcon");Object.defineProperty(Pm.prototype,"personDetailComponentActionIcon",{configurable:!0,get:function(){return this.personDetailComponentActionIcon_6lbvfe$_0.getValue_lrcp0p$(this,yg)}});var bg=new Cr("videoComponentResponsiveMedia");Object.defineProperty(Pm.prototype,"videoComponentResponsiveMedia",{configurable:!0,get:function(){return this.videoComponentResponsiveMedia_elj6mm$_0.getValue_lrcp0p$(this,bg)}});var Sg=new Cr("clazzItemClass");Object.defineProperty(Pm.prototype,"clazzItemClass",{configurable:!0,get:function(){return this.clazzItemClass_4d8y7t$_0.getValue_lrcp0p$(this,Sg)}});var vg=new Cr("clazzDetailExtraInfo");Object.defineProperty(Pm.prototype,"clazzDetailExtraInfo",{configurable:!0,get:function(){return this.clazzDetailExtraInfo_smm59d$_0.getValue_lrcp0p$(this,vg)}});var Cg=new Cr("clazzListRoleChip");Object.defineProperty(Pm.prototype,"clazzListRoleChip",{configurable:!0,get:function(){return this.clazzListRoleChip_qooqq0$_0.getValue_lrcp0p$(this,Cg)}});var Ng=new Cr("gridListSecondaryItemIcons");Object.defineProperty(Pm.prototype,"gridListSecondaryItemIcons",{configurable:!0,get:function(){return this.gridListSecondaryItemIcons_mz1p0d$_0.getValue_lrcp0p$(this,Ng)}});var Tg=new Cr("gridListSecondaryItemDesc");Object.defineProperty(Pm.prototype,"gridListSecondaryItemDesc",{configurable:!0,get:function(){return this.gridListSecondaryItemDesc_1miq8k$_0.getValue_lrcp0p$(this,Tg)}});var Lg=new Cr("hideOnMobile");Object.defineProperty(Pm.prototype,"hideOnMobile",{configurable:!0,get:function(){return this.hideOnMobile_sqz3zl$_0.getValue_lrcp0p$(this,Lg)}});var zg=new Cr("showOnMobile");Object.defineProperty(Pm.prototype,"showOnMobile",{configurable:!0,get:function(){return this.showOnMobile_e0ubh2$_0.getValue_lrcp0p$(this,zg)}});var wg=new Cr("partnerItem");Object.defineProperty(Pm.prototype,"partnerItem",{configurable:!0,get:function(){return this.partnerItem_t9ki11$_0.getValue_lrcp0p$(this,wg)}});var Og=new Cr("partnersList");Object.defineProperty(Pm.prototype,"partnersList",{configurable:!0,get:function(){return this.partnersList_345vuz$_0.getValue_lrcp0p$(this,Og)}});var Rg=new Cr("studentProgressBar");Object.defineProperty(Pm.prototype,"studentProgressBar",{configurable:!0,get:function(){return this.studentProgressBar_17h22x$_0.getValue_lrcp0p$(this,Rg)}});var Ag=new Cr("dropZoneArea");Object.defineProperty(Pm.prototype,"dropZoneArea",{configurable:!0,get:function(){return this.dropZoneArea_px87os$_0.getValue_lrcp0p$(this,Ag)}});var xg=new Cr("dropZoneAreaActive");Object.defineProperty(Pm.prototype,"dropZoneAreaActive",{configurable:!0,get:function(){return this.dropZoneAreaActive_4f45x6$_0.getValue_lrcp0p$(this,xg)}});var Ig=new Cr("dropZoneAreaSuccess");Object.defineProperty(Pm.prototype,"dropZoneAreaSuccess",{configurable:!0,get:function(){return this.dropZoneAreaSuccess_1fkth7$_0.getValue_lrcp0p$(this,Ig)}});var Ug=new Cr("dropZoneAreaError");Object.defineProperty(Pm.prototype,"dropZoneAreaError",{configurable:!0,get:function(){return this.dropZoneAreaError_u3k8io$_0.getValue_lrcp0p$(this,Ug)}});var Dg=new Cr("dropZoneIcon");Object.defineProperty(Pm.prototype,"dropZoneIcon",{configurable:!0,get:function(){return this.dropZoneIcon_q1d7cw$_0.getValue_lrcp0p$(this,Dg)}});var Pg=new Cr("dropZoneTxt");Object.defineProperty(Pm.prototype,"dropZoneTxt",{configurable:!0,get:function(){return this.dropZoneTxt_m2fhkl$_0.getValue_lrcp0p$(this,Pg)}});var Mg=new Cr("chatMessageContent");Object.defineProperty(Pm.prototype,"chatMessageContent",{configurable:!0,get:function(){return this.chatMessageContent_ffyms6$_0.getValue_lrcp0p$(this,Mg)}});var kg=new Cr("chatLeft");Object.defineProperty(Pm.prototype,"chatLeft",{configurable:!0,get:function(){return this.chatLeft_foys7f$_0.getValue_lrcp0p$(this,kg)}});var jg=new Cr("chatRight");function Gg(t){return Dr(t,Ur.start),Ye}function qg(t){return Pr(t,Ir(2)),Ye}function Fg(t){return Zn(t,Qn.flex),ti(t,Yn.row),Ye}function Bg(t){return Dr(t,Ur.center),Ye}function Wg(t){return Mr(t,Ir(100)),Ye}function Hg(t){return kr(t,C_(2)),Ye}function Vg(t){return jr(t,C_(2)),Ye}function Kg(t){return Gr(t,C_(3)),Ye}function Xg(t){return Gr(t,C_(2)),qr(t,C_(2)),Ye}function Jg(t){return kr(t,C_(4)),Ye}function Yg(t){return ei(t,Fr.Companion.green.lighten_za3lpa$(500)),Ye}function Qg(t){return Hr(t,1),Mr(t,Ir(100)),Vr(t,1),Rr(t,Or.hidden),Xr(t,Kr.relative),Zn(t,Qn.flex),ti(t,Yn.column),Ye}function Zg(t){return Jr(t,Ir(50)),Yr(t,Ir(50)),Pr(t,Br(-100)),kr(t,Br(-50)),Xr(t,Kr.fixed),Lr(t,Br(200)),Mr(t,Br(200)),Ye}function t$(t){return Qr(t,C_(2)),jr(t,C_(2)),ei(t,Fr.Companion.red),Ye}function e$(t){return Mr(t,Ir(100)),Zn(t,Qn.none),Ye}function n$(t){return Rr(t,Or.hidden),Xr(t,Kr.relative),Zn(t,Qn.flex),Mr(t,Ir(100)),Ye}function i$(t){return ts(t,void 0,void 0,C_(2)),Ye}function o$(t){return ts(t,void 0,void 0,C_(2)),Ye}function r$(t){return es(t,C_(1)),Ye}function s$(t){return Wr(t,C_(2)),Ye}function a$(t){return Lr(t,ns(91)),Ye}function c$(t){return Xr(t,Kr.fixed),os(t,Br(0)),Jr(t,Br(0)),rs(t,Br(0)),Ye}function l$(t){return Mr(t,Ir(80)),Lr(t,Ir(60)),Ye}function u$(t){return Wr(t,Br(0)),Ye}function h$(t){return Mr(t,new ai("50ch")),Ye}function d$(t){return Mr(t,new ai("40ch")),t.focus_lx8bml$(h$),Ye}function p$(t){return Pr(t,C_(1)),Mr(t,new ai("auto")),Ye}function _$(t){return Mr(t,Ir(80)),Ye}function m$(t){return Mr(t,Ir(75)),Ye}function f$(t){return Mr(t,Ir(80)),Ye}function g$(t){return Zn(t,Qn.none),Ye}function $$(t){return os(t,Br(15)),Mr(t,Ir(81.5)),Ye}function E$(t){return os(t,Br(70)),Mr(t,Ir(84)),Ye}function y$(t){return Wr(t,C_(3)),Ye}function b$(t){return gs(t,"0 16px"),Lr(t,Ir(100)),Xr(t,Kr.absolute),Es(t,$s.none),Zn(t,Qn.flex),us(t,ls.center),bs(t,ys.center),Ye}function S$(t){return os(t,Br(15)),Ye}function v$(t){return vs(t,C_(1)),is(t,Br(216)),Mr(t,ai.Companion.auto),Zn(t,Qn.flex),Xr(t,Kr.fixed),Lr(t,ai.Companion.auto),os(t,Br(16)),Ye}function C$(t){return Mr(t,Ir(99.5)),Ye}function N$(t){return Rr(t,Or.hidden),Ye}function T$(t){return Mr(t,Ir(95.5)),Pr(t,C_(3)),Wr(t,C_(3)),Ye}function L$(t){return Ns(t,Cs(1)),Dr(t,Ur.center),Ye}function z$(t){return Wr(t,C_(2)),Ye}function w$(t){return Pr(t,C_(2)),Ye}function O$(t){return Zn(t,Qn.flex),bs(t,ys.center),Lr(t,ns(70)),us(t,ls.center),Ye}function R$(t){return Zn(t,Qn.flex),bs(t,ys.center),Lr(t,ns(80)),Mr(t,Ts(90)),us(t,ls.center),Ye}function A$(t){return us(t,ls.center),Dr(t,Ur.center),Ls(t,0),Ye}function x$(t){return us(t,ls.start),Dr(t,Ur.start),Ls(t,0),Ye}function I$(t){return us(t,ls.end),Dr(t,Ur.end),Ls(t,0),Ye}function U$(t){return Zn(t,Qn.inlineFlex),ti(t,Yn.column),Ye}function D$(t){return Zn(t,Qn.inlineFlex),ti(t,Yn.column),Lr(t,ns(100)),Rr(t,Or.scroll),zs(t,C_(2),C_(2),C_(0)),Mr(t,Ir(100)),Ye}function P$(t){return Mr(t,Ir(100)),Zn(t,Qn.flex),ti(t,Yn.row),Ye}function M$(t){return Qr(t,Br(10)),jr(t,C_(2)),Ye}function k$(t){return Lr(t,C_(3)),Mr(t,C_(3)),Ye}function j$(t){return Ns(t,Cs(.65)),jr(t,Br(4)),Ye}function G$(t){return Mr(t,Ir(100)),Ye}function q$(t){return Zn(t,Qn.inlineFlex),Pr(t,Br(16)),Gr(t,Br(10)),qr(t,Br(10)),Ye}function F$(t){return Ns(t,Cs(2.5)),kr(t,Br(5)),Ye}function B$(t){return Ns(t,Cs(2)),kr(t,C_(1)),Ye}function W$(t){return Zn(t,Qn.flex),bs(t,ys.start),Os(t,ws.wrap),Ye}function H$(t){return Dr(t,Ur.center),Xr(t,Kr.relative),Mr(t,Ir(98)),Lr(t,Br(300)),Ye}function V$(t){return Mr(t,Ir(70)),Lr(t,Br(120)),Ye}function K$(t){return Ns(t,Cs(3)),Ye}function X$(t){return Zn(t,Qn.table),Rs(t,"0 auto"),Ns(t,Cs(7)),Ye}function J$(t){return Zn(t,Qn.table),Rs(t,"0 auto"),Ns(t,Cs(10)),Ye}function Y$(t){return Mr(t,Ir(100)),Dr(t,Ur.center),Ye}function Q$(t){return Ns(t,Cs(2)),jr(t,Br(4)),Ye}function Z$(t){return Ns(t,Cs(5)),Ye}function tE(t){return Ns(t,Cs(2)),Ye}function eE(t){return Ns(t,Cs(1.2)),Ye}function nE(t){return Mr(t,Br(60)),Qr(t,Br(16)),Ye}function iE(t){return cs(t,Ir(2),Ir(1.5),Ir(0),Ir(1.5)),Ye}function oE(t){var e;return e=Ir(1.5),cs(t,void 0,Ir(1.5),void 0,e),Mr(t,Ir(98)),Ye}function rE(t){var e,n;return e=C_(1),n=Ir(1.5),cs(t,e,Ir(1.5),void 0,n),Ye}function sE(t){return Ns(t,Cs(2)),kr(t,Br(3)),Ye}function aE(t){return Is(t,Ir(100)),cs(t,Ir(5)),Ye}function cE(t){return jr(t,Br(10)),Ye}function lE(t){return Lr(t,Ir(100)),Is(t,Ir(100)),cs(t,Ir(5)),Ye}function uE(t){return Lr(t,Br(200)),Mr(t,Ir(100)),Ye}function hE(t){return Mr(t,Ir(100)),cs(t,Br(0),Ir(2),Br(0),Ir(2)),qr(t,C_(10)),Ye}function dE(t){return Xr(t,Kr.absolute),rs(t,Br(10)),Yr(t,Br(10)),Ye}function pE(t){return kr(t,Br(4)),Ns(t,Cs(1)),Ye}function _E(t){return kr(t,Br(4)),Ns(t,Us(.68)),Ye}function mE(t){return Zn(t,Qn.block),Ye}function fE(t){return Zn(t,Qn.none),Ye}function gE(t){return ts(t,void 0,void 0,void 0,C_(2)),Lr(t,Br(60)),Ye}function $E(t){return os(t,C_(4)),rs(t,C_(3)),Ye}function EE(t){return Mr(t,Ir(70)),Ye}function yE(t){return kr(t,Ir(5)),Ye}function bE(t){return Ns(t,Cs(2)),Ye}function SE(t){return Ms(t,C_(1),C_(2)),fs(t,Br(4)),jr(t,Br(4)),Zn(t,Qn.inlineBlock),js(t,ks.breakWord),Ns(t,Cs(1.2)),Ye}function vE(t){return Gs(t,Br(20)),qs(t,Br(20)),Ye}function CE(t){return Fs(t,Br(20)),Bs(t,Br(20)),Ye}Object.defineProperty(Pm.prototype,"chatRight",{configurable:!0,get:function(){return this.chatRight_dmbfp8$_0.getValue_lrcp0p$(this,jg)}}),Object.defineProperty(Pm.prototype,"di",{configurable:!0,get:function(){return tm().getCurrentState().di.instance}}),Pm.$metadata$={kind:Ho,simpleName:"StyleManager",interfaces:[Ws,Ar]};var NE=null;function TE(){return null===NE&&new Pm,NE}function LE(){wE=this,this.themeOptions_0={palette:{type:"placeholder",primary:{main:"placeholder"},secondary:{main:"placeholder"}}},this.isDarkModeActive=zE}function zE(){return window.matchMedia("(prefers-color-scheme: dark)").matches}LE.prototype.createAppTheme=function(){var t,e,n,i,o,r,s;return null!=(t=this.themeOptions_0.palette)&&(t.mode=this.isDarkModeActive()?"dark":"light"),(null!=(e=this.themeOptions_0.palette)?e.primary:null).light="#aef6dc",(null!=(n=this.themeOptions_0.palette)?n.primary:null).main="#7dc3aa",(null!=(i=this.themeOptions_0.palette)?i.primary:null).dark="#4d927b",(null!=(o=this.themeOptions_0.palette)?o.primary:null).contrastText="#fff",(null!=(r=this.themeOptions_0.palette)?r.secondary:null).main="#f79e76",(null!=(s=this.themeOptions_0.palette)?s.secondary:null).contrastText="#000000",H_(this.themeOptions_0)},LE.$metadata$={kind:Ho,simpleName:"ThemeManager",interfaces:[]};var wE=null;function OE(){return null===wE&&new LE,wE}function RE(t,e,n,i,o,r){IE(),this.timeName=t,this.name=e,this.offset=n,this.abbreviation=i,this.isDst=o,this.id=r}function AE(){xE=this}AE.prototype.serializer=function(){return PE()},AE.$metadata$={kind:Ho,simpleName:"Companion",interfaces:[]};var xE=null;function IE(){return null===xE&&new AE,xE}function UE(){this.descriptor_7zm1yi$_0=new ar("com.ustadmobile.util.TimeZone",this,6),this.descriptor.addElement_ivxn3r$("timeName",!1),this.descriptor.addElement_ivxn3r$("name",!1),this.descriptor.addElement_ivxn3r$("offset",!1),this.descriptor.addElement_ivxn3r$("abbreviation",!1),this.descriptor.addElement_ivxn3r$("isDst",!1),this.descriptor.addElement_ivxn3r$("id",!1),DE=this}Object.defineProperty(UE.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_7zm1yi$_0}}),UE.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);n.encodeStringElement_iij8qq$(this.descriptor,0,e.timeName),n.encodeStringElement_iij8qq$(this.descriptor,1,e.name),n.encodeDoubleElement_powrwi$(this.descriptor,2,e.offset),n.encodeStringElement_iij8qq$(this.descriptor,3,e.abbreviation),n.encodeBooleanElement_qh7jdn$(this.descriptor,4,e.isDst),n.encodeStringElement_iij8qq$(this.descriptor,5,e.id),n.endStructure_24f42q$(this.descriptor)},UE.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s,a,c=0,l=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=l.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=l.decodeStringElement_szpzho$(this.descriptor,0),c|=1;break;case 1:i=l.decodeStringElement_szpzho$(this.descriptor,1),c|=2;break;case 2:o=l.decodeDoubleElement_szpzho$(this.descriptor,2),c|=4;break;case 3:r=l.decodeStringElement_szpzho$(this.descriptor,3),c|=8;break;case 4:s=l.decodeBooleanElement_szpzho$(this.descriptor,4),c|=16;break;case 5:a=l.decodeStringElement_szpzho$(this.descriptor,5),c|=32;break;case-1:break t;default:throw new ur(e)}return l.endStructure_24f42q$(this.descriptor),ME(c,n,i,o,r,s,a,null)},UE.prototype.childSerializers=function(){return[cr.StringSerializer,cr.StringSerializer,cr.DoubleSerializer,cr.StringSerializer,cr.BooleanSerializer,cr.StringSerializer]},UE.$metadata$={kind:Ho,simpleName:"$serializer",interfaces:[hr]};var DE=null;function PE(){return null===DE&&new UE,DE}function ME(t,e,n,i,o,r,s,a){var c=a||Object.create(RE.prototype);if(0==(1&t))throw Vs("timeName");if(c.timeName=e,0==(2&t))throw Vs("name");if(c.name=n,0==(4&t))throw Vs("offset");if(c.offset=i,0==(8&t))throw Vs("abbreviation");if(c.abbreviation=o,0==(16&t))throw Vs("isDst");if(c.isDst=r,0==(32&t))throw Vs("id");return c.id=s,c}function kE(){jE=this}RE.$metadata$={kind:Vn,simpleName:"TimeZone",interfaces:[]},RE.prototype.component1=function(){return this.timeName},RE.prototype.component2=function(){return this.name},RE.prototype.component3=function(){return this.offset},RE.prototype.component4=function(){return this.abbreviation},RE.prototype.component5=function(){return this.isDst},RE.prototype.component6=function(){return this.id},RE.prototype.copy_a8736t$=function(t,e,n,i,o,r){return new RE(void 0===t?this.timeName:t,void 0===e?this.name:e,void 0===n?this.offset:n,void 0===i?this.abbreviation:i,void 0===o?this.isDst:o,void 0===r?this.id:r)},RE.prototype.toString=function(){return"TimeZone(timeName="+e.toString(this.timeName)+", name="+e.toString(this.name)+", offset="+e.toString(this.offset)+", abbreviation="+e.toString(this.abbreviation)+", isDst="+e.toString(this.isDst)+", id="+e.toString(this.id)+")"},RE.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*(t=31*(t=31*(t=31*t+e.hashCode(this.timeName)|0)+e.hashCode(this.name)|0)+e.hashCode(this.offset)|0)+e.hashCode(this.abbreviation)|0)+e.hashCode(this.isDst)|0)+e.hashCode(this.id)|0},RE.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.timeName,t.timeName)&&e.equals(this.name,t.name)&&e.equals(this.offset,t.offset)&&e.equals(this.abbreviation,t.abbreviation)&&e.equals(this.isDst,t.isDst)&&e.equals(this.id,t.id)},kE.prototype.getTimeZones=function(){var t,e=Yo();return Lt.forEach((t=e,function(e){var n,i,o=0;for(n=Ks(e.utc.join(",").toString(),[","]).iterator();n.hasNext();){var r=n.next(),s=t;if(0!==Js((o=(i=o)+1|0,i))){var a=Xs(e.text.toString(),")")+")";s.add_11rb$(new RE(a,a+" "+r,Sr(e.offset.toString()),e.abbr,pr(e.isdst.toString()),r))}}return Ye})),yr(e)},kE.$metadata$={kind:Ho,simpleName:"TimeZonesUtil",interfaces:[]};var jE=null;function GE(){return null===jE&&new kE,jE}function qE(t){var e,n;void 0===t&&(t=null);var i=Ys(null!=t?t:window.location.href,"?","");if(0===i.length==1)n=fr();else{var o,r=("function"==typeof(e=Object.entries)?e:An())(Object.fromEntries(new URLSearchParams(i))),s=Xo(r.length);for(o=0;o!==r.length;++o){var a,c,l=r[o];s.add_11rb$(ni("string"==typeof(a=l[0])?a:An(),"string"==typeof(c=l[1])?c:An()))}n=Qs(s)}return n}function FE(){ZE=this,this.ASSET_ENTRY="assets/entry_placeholder.jpeg",this.ASSET_ACCOUNT="assets/account.jpg",this.ASSET_BOOK="assets/book.png",this.ASSET_FOLDER="assets/folder.png"}function BE(t,e,n){ta.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$fileName=e}function WE(t,e,n){ta.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$fileName=e}BE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[ta]},BE.prototype=Object.create(ta.prototype),BE.prototype.constructor=BE,BE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n,i;if(this.state_0=2,this.result_0=ea(e.isType(t=window.fetch(this.local$fileName),Promise)?t:An(),this),this.result_0===Zs)return Zs;continue;case 1:throw this.exception_0;case 2:var o=this.result_0;if(this.state_0=3,this.result_0=ea(e.isType(n=o.text(),Promise)?n:An(),this),this.result_0===Zs)return Zs;continue;case 3:return"string"==typeof(i=this.result_0)?i:An();default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},FE.prototype.loadAssetsAsText_61zpoe$=function(t,e,n){var i=new BE(this,t,e);return n?i:i.doResume(null)},WE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[ta]},WE.prototype=Object.create(ta.prototype),WE.prototype.constructor=WE,WE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n,i,o;if(this.state_0=2,this.result_0=ea(e.isType(t=window.fetch(this.local$fileName),Promise)?t:An(),this),this.result_0===Zs)return Zs;continue;case 1:throw this.exception_0;case 2:var r=this.result_0;if(this.state_0=3,this.result_0=ea(e.isType(n=r.json(),Promise)?n:An(),this),this.result_0===Zs)return Zs;continue;case 3:var s,a=this.result_0,c=("function"==typeof(i=Object.entries)?i:An())(a),l=Xo(c.length);for(s=0;s!==c.length;++s){var u,h=c[s];l.add_11rb$(ni("string"==typeof(u=h[0])?u:An(),h[1]))}return null==(o=Qs(l))||e.isType(o,ci)?o:An();default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},FE.prototype.loadFileContentAsMap_ytbaoo$=function(t,e,n){var i=new WE(this,t,e);return n?i:i.doResume(null)},FE.prototype.isMobile=function(){var t,e=!1;return t=navigator.userAgent||navigator.vendor||window.opera,(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(t)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(t.substr(0,4)))&&(e=!0),e},FE.prototype.stopEventPropagation_za3rmp$=function(t){t.preventDefault(),t.stopPropagation()},FE.prototype.copyToClipboard_a4mwiz$=function(t,e){var n,i;if(pr((void 0!==navigator.clipboard&&window.isSecureContext).toString()))window.navigator.clipboard.writeText(t).then((i=e,function(t){return i(),Ye}));else{var o=document.createElement("textarea");o.value=t,o.style.position="fixed",o.style.left="-999999px",o.style.top="-999999px",null!=(n=document.body)&&n.appendChild(o),o.focus(),o.select(),document.execCommand("copy")&&e(),o.remove()}},FE.$metadata$={kind:Ho,simpleName:"Util",interfaces:[]};var HE,VE,KE,XE,JE,YE,QE,ZE=null;function ty(){return null===ZE&&new FE,ZE}function ey(t){void 0===t&&(t=null);var e=null!=t?t:window.location.href,n=ia(na(e,"#/",""),"?");return 0===n.length||hi(n,"http")?null:n}function ny(t,e,n){var i;void 0===e&&(e=JE),void 0===n&&(n=null);var o=zt.utc(t).toDate();return"string"==typeof(i=zt(o).utcOffset(null!=n?n:"").format(e))?i:An()}function iy(t,e){return void 0===e&&(e=null),ny(t,JE,e)}function oy(t,e,n){return void 0===e&&(e=QE),void 0===n&&(n=null),ny(t,e,n)}function ry(t,e){return void 0===e&&(e=null),ny(t,HE,e)}function sy(t,e){return void 0===e&&(e=null),ny(t,XE,e)}function ay(t,e){void 0===e&&(e=null);var n=zt.utc(t).toDate();return zt(n).utcOffset(null!=e?e:"").startOf("day").toDate()}function cy(t,e,n){void 0===e&&(e="en"),void 0===n&&(n=!0),zt.locale(e);var i=zt.utc(t).toDate();return zt(i).fromNow(!n).toString()}function ly(t,n){return void 0===n&&(n=null),e.Long.fromNumber(t.getTime()-ay(t,n).getTime())}function uy(t,n){var i,o,r=wt.toPng(document.getElementById(t)),s="chart-"+(null!=(i=null!=n?n.toLowerCase():null)?i:(new Date).getTime()).toString()+".png",a=br("\\s").replace_x2uqeu$(s,"-"),c=(o=a,function(t){var n,i,r,s=e.isType(n=document.createElement("a"),HTMLAnchorElement)?n:An();return null!=(i=document.body)&&i.appendChild(s),s.href=t,s.name,s.download=o,s.click(),null!=(r=document.body)&&r.removeChild(s),Ye});r.then((function(t){c(t)}))}function hy(){return oa}function dy(t,e){return void 0===e&&(e=!0),Je(null!=t?t:ra,ra)||null==t?null:Je(t,sa)?e?null:new Date(hy()):new Date(t)}function py(t,e){var n=new ci,i=zt.duration(null!=t?t:ra),o=vr(i.hours().toString()),r=vr(i.minutes().toString()),s=vr(i.seconds().toString()),a="";return o>0&&(a+=o.toString()+e.getString(2262,n)),r>0&&(a+=r.toString()+e.getString(2263,n)),s>0&&(a+=s.toString()+e.getString(2264,n)),a}function _y(t,e){var n,i,o,r=null!=(i=null!=(n=dy(e))?iy(n):null)?i:"",s=0===r.length?"":" - ";return(null!=(o=dy(t))?iy(o):null)+s+r}function my(t){var n,i;return ca(e.isType(i=null!=(n=t.currentBackStackEntry)?n.savedStateHandle:null,aa)?i:An())}function fy(t,e){var n,i,o={v:t},r=Yo(),s=br("%\\d.\\df%|%\\d\\$d%|%\\d\\$d|%\\d\\$s%|%\\d\\$s").find_905azu$(t);do{if(null!=(null!=s?s.value:null)){var a=new la(s.range.first,s.range.last);ua(),r.add_11rb$(ha(o.v,a))}s=null!=s?s.next():null}while(null!=(null!=s?s.value:null));var c=0;for(n=r.iterator();n.hasNext();){var l=n.next();o.v=da(o.v,l,e[Js((i=c,c=i+1|0,i))].toString())}return o.v}function gy(t,e){return t+" "+pa(e," ")}function $y(t){return da(t,"\\","")}function Ey(t,e){void 0===e&&(e=10);var n,i=br("\\s+").split_905azu$(t,0),o=Xo(Ko(i,10));for(n=i.iterator();n.hasNext();){var r=n.next();o.add_11rb$(br("^[,\\.]|[,\\.]$").replace_x2uqeu$(r,""))}var s=o;return ma(_a(s,s.sizee?"...":"")}function yy(t){return new ba(ya.emptyMap,t)}function by(t){return new va(ya.emptyMap,t)}function Sy(t){var e;VU.call(this,t),this.mPresenter_0=null,this.mCurrentStoredAccounts_0=null,this.mActiveAccount_0=null,this.accountListObserver_0=new Ea((e=this,function(t){return $a(e,function(t,e){return function(n){return e.mCurrentStoredAccounts_0=t,Ye}}(t,e)),Ye})),this.activeAccountObserver_0=new Ea(function(t){return function(e){return null!=e&&$a(t,function(t,e){return function(n){return e.mActiveAccount_0=t,Ye}}(e,t)),Ye}}(this)),this.accountListLive_yhw6ae$_0=null,this.activeAccountLive_rpbm4a$_0=null,this.intentMessage_3ijn7m$_0=null,this.title_m1c0gl$_0=null}function vy(t){return function(e){return e.attrs.onClick=function(t){return function(e){var n;return ty().stopEventPropagation_za3rmp$(e),null!=(n=t.mPresenter_0)&&n.handleClickAddAccount(),Ye}}(t),UP(e,fy(t.getString_za3lpa$(2631),[t.getString_za3lpa$(2079)])),Ye}}function Cy(t,e,n){return function(i){var o;return i.attrs.entries=t,i.attrs.activeAccount=e,null!=(o=n.mPresenter_0)&&(i.attrs.presenter=o),i.attrs.onEntryClicked=function(t){return function(e){return t.mPresenter_0,Ye}}(n),Ye}}function Ny(){}function Ty(t){AD.call(this,t)}function Ly(t){return TE().alignTextToStart(t.css),Ye}function zy(t){return Rp(t,"person"),Ye}function wy(t){return TE().alignTextToStart(t.css),Ye}function Oy(t){return Rp(t,"link"),Ye}function Ry(t){return TE().alignTextToStart(t.css),Ye}function Ay(t){return function(e){return $P(e,rp(),op(),void 0,void 0,void 0,void 0,void 0,zy),$P(e,pp(),sp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t.person.username,"body2",void 0,void 0,void 0,void 0,void 0,void 0,wy),Ye}}(t)),$P(e,rp(),op(),void 0,void 0,void 0,void 0,void 0,Oy),$P(e,pp(),up(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t.endpoint.url,"body2",void 0,void 0,void 0,void 0,void 0,void 0,Ry),Ye}}(t)),Ye}}function xy(t,e,n){return function(i){return cd(i,fy(t.getString_za3lpa$(2630),[t.getString_za3lpa$(2130)]),"primary","outlined",void 0,function(t,e){return function(n){return n.stopPropagation(),t.handleClickProfile_s8cxhz$(e.person.personUid),Ye}}(e,n),"large"),Ye}}function Iy(t,e,n){return function(i){return cd(i,t.getString_za3lpa$(2028),"primary","outlined",void 0,function(t,e){return function(n){return t.handleClickLogout_n02xme$(e),Ye}}(e,n),"large"),Ye}}function Uy(t,e,n){return function(i){return TE().defaultMarginTop(i.css),gP(i,yp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t,e,n){return function(i){return $P(i,up(),ap(),void 0,void 0,void 0,void 0,void 0,xy(t,e,n)),t.props.activeAccount&&$P(i,cp(),ap(),void 0,void 0,void 0,void 0,void 0,Iy(t,e,n)),Ye}}(t,e,n)),Ye}}function Dy(t,e,n){return function(i){return $P(i,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t.person.fullName(),"body1",void 0,void 0,void 0,void 0,void 0,void 0,Ly),Ye}}(t)),$P(i,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return gP(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Ay(t)),Ye}}(t)),$P(i,mp(),void 0,void 0,void 0,void 0,void 0,void 0,Uy(e,n,t)),Ye}}function Py(t,e){return function(n){var i=Sa.Companion.invoke_f6ihu2$(by),o=t,r=e;return Mr(i.css,Br(50)),xp(i,"delete",void 0,void 0,function(t,e){return function(n){return t.handleClickDeleteSession_n02xme$(e),Ye}}(o,r),void 0,void 0,void 0,"delete_account_btn"),n.child_30b5ua$(i.create()),Ye}}function My(t,e,n){return function(i){return TE().defaultPaddingTopBottom(i.css),i.attrs.onClick=function(t,e){return function(n){return ty().stopEventPropagation_za3rmp$(n),t.handleClickUserSession_n02xme$(e),Ye}}(t,e),$P(i,sp(),rp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return SP(e,t.person.personUid,"person"),Ye}}(e)),$P(i,n.props.activeAccount?dp():up(),n.props.activeAccount?pp():hp(),void 0,void 0,void 0,void 0,void 0,Dy(e,n,t)),n.props.activeAccount||$P(i,rp(),void 0,void 0,void 0,void 0,void 0,void 0,Py(t,e)),Ye}}function ky(t){return new ba(ya.emptyMap,t)}function jy(t){var e;oD.call(this,t),this.mPresenter_0=null,this.scopeList_0=null,this.scopedGrantListObserver_0=new Ea((e=this,function(t){return $a(e,function(t,e){return function(n){return e.scopeList_0=t,Ye}}(t,e)),Ye})),this.bitmaskList_vzw3w2$_0=null,this.fieldsEnabled_rpjx9$_0=!1,this.entity_3wi9rg$_0=null}function Gy(t){return Ye}function qy(t,n){return function(i){return i.attrs.entries=t,i.attrs.mainList=!0,i.attrs.onEntryClicked=function(t){return function(n){var i,o,r;if(e.isType(n,Na)||An(),null!=(i=t.scopeList_0)){var s;t:do{var a;for(a=i.iterator();a.hasNext();){var c=a.next();if(c.messageId===n.messageId){s=c;break t}}throw new Vo("Collection contains no element matching the predicate.")}while(0);r=s}else r=null;var l=r;return null!=l&&(l.enabled=!(null!=(o=null!=l?l.enabled:null)&&o)),$a(t,Gy),Ye}}(n),Ye}}function Fy(t){var e;VU.call(this,t),this.mPresenter_0=null,this.typedMessage_0="",this.messages_0=Yo(),this.enterNewLine_0=!1,this.observer_0=new Ea((e=this,function(t){if(!t.isEmpty())return $a(e,function(t,e){return function(n){return e.messages_0=za(t),Ye}}(t,e)),Ye})),this.messageList_5blwns$_0=null,this.editButtonMode_ha60yw$_0=wa.GONE,this.entity_vjedhw$_0=null}function By(t){return function(e){return $a(t,function(t,e){return function(n){return e.typedMessage_0=I_(t),Ye}}(e,t)),Ye}}function Wy(){this.key_m2u7pj$_0=TE().name+"-chatInputMessageClass",this.className=TE().name+"-chatInputMessageClass"}function Hy(t){return Ns(t.css,Cs(1.3)),t.attrs.inputProps=new Wy,Ye}function Vy(t){return function(e){return TE().chatDetailNewMessage(e.css),Dp(e,t.typedMessage_0,void 0,void 0,void 0,void 0,void 0,void 0,t.getString_za3lpa$(2952),!0,void 0,void 0,"um-message-input",void 0,!0,void 0,Fr.Companion.white,2,By(t),void 0,function(t){return function(e){var n=e.shiftKey;n&&(n=Je(e.key.toLowerCase(),"enter")),n&&(e.preventDefault(),e.target.value+="\n");var i=!e.shiftKey;return i&&(i=Je(e.key.toLowerCase(),"enter")),i&&(e.preventDefault(),t.handleSendMessage_0()),Ye}}(t),void 0,null,Hy),Ye}}function Ky(t){return kr(t.css,C_(1)),Ye}function Xy(t){return function(e){return TE().messageSendButton(e.css),Ud(e,"send","","secondary",void 0,function(t){return function(e){return ty().stopEventPropagation_za3rmp$(e),t.typedMessage_0.length>0&&t.handleSendMessage_0(),Ye}}(t),"large",void 0,"um-chat-send","circular",Ky),Ye}}function Jy(t){return function(e){var n=e.css;return n.unaryPlus_uoyjcc$(TE().contentContainer),n.unaryPlus_uoyjcc$(TE().defaultPaddingTop),$P(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n;for(cs(e.css,void 0,void 0,C_(10)),n=t.messages_0.iterator();n.hasNext();){var i,o,r,s,a=n.next(),c=t,l=Je(c.accountManager.activeAccount.personUid,null!=(i=a.messagePerson)?i.personUid:null);if(null==a.messageRead){var u=La(c.accountManager.activeAccount.personUid,a.messageUid,null!=(o=a.messageEntityUid)?o:ra);null!=(r=c.mPresenter_0)&&r.updateMessageRead_q6ck09$(u),a.messageRead=u}ZM(e,!l,l?c.getString_za3lpa$(2933):null!=(s=a.messagePerson)&&s.fullName(),a.messageText,c.systemImpl,c.accountManager,e,a.messageTimestamp)}return Ye}}(t)),gP(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return TE().messageContainer(e.css),$P(e,mp(),t.typedMessage_0.length>0?pp():mp(),void 0,void 0,void 0,void 0,void 0,Vy(t)),t.typedMessage_0.length>0&&$P(e,op(),void 0,void 0,void 0,void 0,void 0,Yn.rowReverse,Xy(t)),Ye}}(t)),Ye}}function Yy(t){uD.call(this,t),this.mPresenter_0=null}function Qy(t){return function(){return $a(t,function(t){return function(e){return t.showAddEntryOptions=!0,Ye}}(t)),Ye}}function Zy(){return Ye}function tb(t){return function(){return $a(t,function(t){return function(e){return t.showAddEntryOptions=!1,Ye}}(t)),Ye}}function eb(t){ob(),iD.call(this,t),this.mPresenter_0=null,this.tabsToRender_0=null,this.tabs_i0caym$_0=null,this.entity_p2all3$_0=null}function nb(){ib=this,this.VIEWNAME_TO_TITLE_MAP=Ia([ni(bo.Companion.VIEW_NAME,2558),ni(So.Companion.VIEW_NAME,2869)])}Object.defineProperty(Sy.prototype,"accountListLive",{configurable:!0,get:function(){return this.accountListLive_yhw6ae$_0},set:function(t){var e;null!=(e=this.accountListLive_yhw6ae$_0)&&e.removeObserver_fujmse$(this.accountListObserver_0),this.accountListLive_yhw6ae$_0=t,null!=t&&t.observe_bi6zy5$(this,this.accountListObserver_0)}}),Object.defineProperty(Sy.prototype,"activeAccountLive",{configurable:!0,get:function(){return this.activeAccountLive_rpbm4a$_0},set:function(t){var e;null!=(e=this.activeAccountLive_rpbm4a$_0)&&e.removeObserver_fujmse$(this.activeAccountObserver_0),this.activeAccountLive_rpbm4a$_0=t,null!=t&&t.observe_bi6zy5$(this,this.activeAccountObserver_0)}}),Object.defineProperty(Sy.prototype,"intentMessage",{configurable:!0,get:function(){return this.intentMessage_3ijn7m$_0},set:function(t){this.intentMessage_3ijn7m$_0=t}}),Object.defineProperty(Sy.prototype,"title",{configurable:!0,get:function(){return this.title_m1c0gl$_0},set:function(t){this.ustadComponentTitle=t,this.title_m1c0gl$_0=t}}),Sy.prototype.onCreateView=function(){var t;VU.prototype.onCreateView.call(this),this.mPresenter_0=new fa(this,this.arguments,this,this.di,this),null!=(t=this.mPresenter_0)&&t.onCreate(fr())},Sy.prototype.render_ss14n$=function(t){var e,n,i=Sa.Companion.invoke_f6ihu2$(yy),o=i.css;o.unaryPlus_uoyjcc$(TE().defaultPaddingTop),o.unaryPlus_uoyjcc$(TE().contentContainer),null!=(e=this.mActiveAccount_0)&&this.renderAccountList_0(i,ga(e),!0),null!=(n=this.mCurrentStoredAccounts_0)&&this.renderAccountList_0(i,n);var r=Sa.Companion.invoke_f6ihu2$(yy),s=r.css;kr(s,C_(3)),as(s,ss.pointer),qp(r,!0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,vy(this)),i.child_30b5ua$(r.create()),t.child_30b5ua$(i.create())},Sy.prototype.onDestroyView=function(){VU.prototype.onDestroyView.call(this),this.mPresenter_0=null,this.mActiveAccount_0=null},Sy.prototype.renderAccountList_0=function(t,e,n){void 0===n&&(n=!1),t.child_up9nw1$(We(Ty),Cy(e,n,this))},Ny.$metadata$={kind:$r,simpleName:"AccountPros",interfaces:[OD]},Ty.prototype.renderListItem_f4dmsf$=function(t,n,i){var o;gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,My(e.isType(o=this.props.presenter,fa)?o:An(),n,this))},Ty.$metadata$={kind:Vn,simpleName:"AccountListComponent",interfaces:[AD]},Sy.$metadata$={kind:Vn,simpleName:"AccountListComponent",interfaces:[yi,VU]},Object.defineProperty(jy.prototype,"mEditPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(jy.prototype,"bitmaskList",{configurable:!0,get:function(){return this.bitmaskList_vzw3w2$_0},set:function(t){var e,n;null!=(e=this.bitmaskList_vzw3w2$_0)&&e.removeObserver_fujmse$(this.scopedGrantListObserver_0),this.bitmaskList_vzw3w2$_0=t,null!=(n=this.bitmaskList_vzw3w2$_0)&&n.observe_bi6zy5$(this,this.scopedGrantListObserver_0)}}),Object.defineProperty(jy.prototype,"fieldsEnabled",{configurable:!0,get:function(){return this.fieldsEnabled_rpjx9$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.fieldsEnabled_rpjx9$_0=e,Ye}))}}),Object.defineProperty(jy.prototype,"entity",{configurable:!0,get:function(){return this.entity_3wi9rg$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.entity_3wi9rg$_0=e,Ye}))}}),jy.prototype.onCreateView=function(){var t;oD.prototype.onCreateView.call(this),this.setEditTitle_vux9f0$(2340,2340),this.mPresenter_0=new Ca(this,this.arguments,this,this.di,this),null!=(t=this.mPresenter_0)&&t.onCreate(my(this.navController))},jy.prototype.render_ss14n$=function(t){var e,n=Sa.Companion.invoke_f6ihu2$(ky),i=n.css;i.unaryPlus_uoyjcc$(TE().contentContainer),i.unaryPlus_uoyjcc$(TE().defaultPaddingTop),gP(n,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,(e=this,function(t){var n;if(null!=(n=e.scopeList_0)){var i=e;t.child_up9nw1$(We(Kx),qy(n,i))}return Ye})),t.child_30b5ua$(n.create())},jy.prototype.onDestroyView=function(){var t;oD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null},jy.$metadata$={kind:Vn,simpleName:"BitmaskEditComponent",interfaces:[lo,oD]},Object.defineProperty(Fy.prototype,"title",{configurable:!0,get:function(){return this.ustadComponentTitle},set:function(t){this.ustadComponentTitle=t}}),Object.defineProperty(Fy.prototype,"messageList",{configurable:!0,get:function(){return this.messageList_5blwns$_0},set:function(t){this.messageList_5blwns$_0=t;var e=null!=t?t.getData_vux9f0$(0,2147483647):null;null!=e&&e.removeObserver_fujmse$(this.observer_0),null!=e&&e.observe_bi6zy5$(this,this.observer_0)}}),Object.defineProperty(Fy.prototype,"editButtonMode",{configurable:!0,get:function(){return this.editButtonMode_ha60yw$_0},set:function(t){this.editButtonMode_ha60yw$_0=t}}),Object.defineProperty(Fy.prototype,"entity",{configurable:!0,get:function(){return this.entity_vjedhw$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.entity_vjedhw$_0=e,Ye})),null!=(null!=t?t.chatTitle:null)&&this.updateUiWithStateChangeDelay_n53o35$(void 0,function(t,e){return function(){return e.ustadComponentTitle=t.chatTitle,Ye}}(t,this))}}),Fy.prototype.onCreateView=function(){var t,e;VU.prototype.onCreateView.call(this),null!=(t=this.fabManager)&&(t.visible=!1),this.mPresenter_0=new Ta(this,this.arguments,this,this.di),null!=(e=this.mPresenter_0)&&e.onCreate(fr())},Object.defineProperty(Wy.prototype,"key",{configurable:!0,get:function(){return this.key_m2u7pj$_0},set:function(t){this.key_m2u7pj$_0=t}}),Wy.$metadata$={kind:Vn,interfaces:[]},Fy.prototype.render_ss14n$=function(t){gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Jy(this))},Fy.prototype.handleSendMessage_0=function(){var t,e;this.typedMessage_0.length>0&&(null!=(t=this.mPresenter_0)&&t.addMessage_61zpoe$(this.typedMessage_0),$a(this,(e=this,function(t){return e.typedMessage_0="",Ye})))},Fy.prototype.onDestroyView=function(){VU.prototype.onDestroyView.call(this),this.mPresenter_0=null},Fy.$metadata$={kind:Vn,simpleName:"ChatDetailComponent",interfaces:[Uo,VU]},Object.defineProperty(Yy.prototype,"displayTypeRepo",{configurable:!0,get:function(){var t;return null!=(t=this.dbRepo)?t.chatDao:null}}),Object.defineProperty(Yy.prototype,"listPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Yy.prototype.onCreateView=function(){var t,e,n;uD.prototype.onCreateView.call(this),this.ustadComponentTitle=this.getString_za3lpa$(2907),this.showCreateNewItem=!1,null!=(t=this.fabManager)&&(t.text=this.getString_za3lpa$(2932)),null!=(e=this.fabManager)&&(e.onClickListener=Qy(this)),this.mPresenter_0=new Oa(this,this.arguments,this,this.di,this),null!=(n=this.mPresenter_0)&&n.onCreate(fr())},Yy.prototype.renderAddContentOptionsDialog_ss14n$=function(t){if(this.showAddEntryOptions){var e=Bo([new kU("add",2930,void 0,(n=this,function(){var t;return null!=(t=n.mPresenter_0)&&t.handleClickCreateNewFab_pdl1vj$(Oa.Companion.CHAT_RESULT_KEY),Ye})),new kU("group",2931,void 0,Zy)]);HU(t,this.systemImpl,e,void 0,void 0,tb(this))}var n},Yy.prototype.renderListItem_js0tu9$=function(t,e){var n;ck(t,e.chatName,e.latestMessage,null!=(n=dy(e.latestMessageTimestamp))?cy(n,this.systemImpl.getDisplayedLocale_za3rmp$(t)):null,e.unreadMessageCount)},Yy.prototype.handleClickEntry_11rc$=function(t){var e;null!=(e=this.mPresenter_0)&&e.handleClickEntry_11rc$(t)},Yy.prototype.onDestroyView=function(){var t;uD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null},Yy.$metadata$={kind:Vn,simpleName:"ChatListComponent",interfaces:[gi,uD]},Object.defineProperty(eb.prototype,"detailPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(eb.prototype,"tabs",{configurable:!0,get:function(){return this.tabs_i0caym$_0},set:function(t){var e,n;if(this.tabs_i0caym$_0=t,null!=t){var i,o,r=Xo(Ko(t,10)),s=0;for(i=t.iterator();i.hasNext();){var a,c=i.next(),l=r.add_11rb$,u=Js((s=(o=s)+1|0,o)),h=null!=(a=ob().VIEWNAME_TO_TITLE_MAP.get_11rb$(Xs(c,"?")))?a:0,d=Xs(c,"?"),p=Ra(c,"?");l.call(r,new mU(u,d,qE(c.substring(p)),this.getString_za3lpa$(h)))}n=r}else n=null;this.tabsToRender_0=null!=(e=n)?yr(e):null}}),Object.defineProperty(eb.prototype,"entity",{configurable:!0,get:function(){return this.entity_p2all3$_0},set:function(t){var e,n,i;this.ustadComponentTitle=null!=(e=this.entity)?e.caTitle:null,$a(this,(n=t,i=this,function(t){return i.entity_p2all3$_0=n,Ye}))}}),eb.prototype.onCreateView=function(){var t;iD.prototype.onCreateView.call(this),this.mPresenter_0=new Aa(this,this.arguments,this,this.di,this),null!=(t=this.mPresenter_0)&&t.onCreate(fr())},eb.prototype.render_ss14n$=function(t){var e,n,i;null!=(e=this.tabsToRender_0)&&EU(t,e,void 0,null!=(i=null!=(n=this.arguments.get_11rb$(xa.Companion.ARG_ACTIVE_TAB_INDEX))?vr(n):null)?i:0)},eb.prototype.onDestroyView=function(){iD.prototype.onDestroyView.call(this),this.mPresenter_0=null,this.entity=null,this.tabsToRender_0=null,this.tabs=null},nb.$metadata$={kind:Ho,simpleName:"Companion",interfaces:[]};var ib=null;function ob(){return null===ib&&new nb,ib}function rb(t){return new va(ya.emptyMap,t)}function sb(t){return new ba(ya.emptyMap,t)}function ab(t){var e;Nb(),iD.call(this,t),this.mPresenter_0=null,this.classComments_0=ri(),this.privateComments_0=ri(),this.courseAssignmentSubmissions_0=ri(),this.classCommentsObserver_0=new Ea((e=this,function(t){if(!t.isEmpty())return $a(e,function(t,e){return function(n){return e.classComments_0=t,Ye}}(t,e)),Ye})),this.privateCommentsObserver_0=new Ea(function(t){return function(e){if(!e.isEmpty())return $a(t,function(t,e){return function(n){return e.privateComments_0=t,Ye}}(e,t)),Ye}}(this)),this.assignmentSubmissionObserver_0=new Ea(function(t){return function(e){if(!e.isEmpty())return $a(t,function(t,e){return function(n){return e.courseAssignmentSubmissions_0=t,Ye}}(e,t)),Ye}}(this)),this.submittedCourseAssignmentSubmission_4iyd2a$_0=null,this.addedCourseAssignmentSubmission_gtq4n7$_0=ri(),this.timeZone_1mb0fq$_0=null,this.clazzAssignmentClazzComments_8ybo70$_0=null,this.clazzAssignmentPrivateComments_po3ab5$_0=null,this.showPrivateComments_lfg8xj$_0=!1,this.showSubmission_325um2$_0=!1,this.addTextSubmissionVisible_iofgs5$_0=!1,this.addFileSubmissionVisible_nj5r8m$_0=!1,this.submissionMark_t0g2ei$_0=null,this.submissionStatus_8gef17$_0=0,this.unassignedError_ukjqmo$_0=null,this.entity_fcxb5s$_0=null}function cb(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().defaultFullWidth),e.unaryPlus_uoyjcc$(TE().defaultDoubleMarginTop),Lr(e,Br(50)),Ye}function lb(t){return function(e){return cd(e,t.getString_za3lpa$(2870),void 0,"contained",void 0,function(t){return function(e){var n;return null!=(n=t.mPresenter_0)&&n.handleAddTextClicked(),Ye}}(t),void 0,void 0,void 0,void 0,void 0,cb),Ye}}function ub(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().defaultFullWidth),e.unaryPlus_uoyjcc$(TE().defaultDoubleMarginTop),Lr(e,Br(50)),Ye}function hb(t){return function(e){return cd(e,t.getString_za3lpa$(2746),void 0,"contained",void 0,function(t){return function(e){var n;return null!=(n=t.mPresenter_0)&&n.handleAddFileClicked(),Ye}}(t),void 0,void 0,void 0,void 0,void 0,ub),Ye}}function db(t){return TE().alignTextToStart(t.css),Ye}function pb(t){return TE().alignTextToStart(t.css),Ye}function _b(t){return TE().alignTextToStart(t.css),Ye}function mb(t){return function(e){return TE().defaultDoubleMarginTop(e.css),t.addTextSubmissionVisible&&$P(e,mp(),ap(),void 0,void 0,void 0,void 0,void 0,lb(t)),t.addFileSubmissionVisible&&$P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return $P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,hb(t)),Ye}}(t)),Fk(e,void 0,void 0,C_(2)),t.addFileSubmissionVisible&&$P(e,void 0,void 0,void 0,void 0,void 0,void 0,Yn.row,function(t){return function(e){var n=Sa.Companion.invoke_f6ihu2$(rb),i=t;ts(n.css,void 0,C_(2)),O_(n,i.getString_za3lpa$(2797)+": ","body1",void 0,void 0,void 0,void 0,!0,void 0,db),e.child_30b5ua$(n.create());var o,r,s,a=Sa.Companion.invoke_f6ihu2$(rb),c=t;ts(a.css,void 0,C_(4)),O_(a,c.getString_za3lpa$(null!=(s=Da.SubmissionConstants.FILE_TYPE_MAP.get_11rb$(null!=(r=null!=(o=c.entity)?o.caFileType:null)?r:0))?s:0),"body1",void 0,void 0,void 0,void 0,!0,void 0,pb),e.child_30b5ua$(a.create());var l,u,h=Sa.Companion.invoke_f6ihu2$(rb),d=t;return ts(h.css,void 0,C_(4)),O_(h,fy(d.getString_za3lpa$(2859),[null!=(u=null!=(l=d.entity)?l.caNumberOfFiles:null)?u:0]),"body1",void 0,void 0,void 0,void 0,!0,void 0,_b),e.child_30b5ua$(h.create()),Ye}}(t)),Ye}}function fb(t,e){return function(n){var i,o,r,s,a=dy(t.casTimestamp);return VP(n,"class","delete",Cm().clean_pdl1vj$(null!=(r=null!=(o=null!=(i=t.attachment)?i.casaFileName:null)?o:t.casText)?r:""),null==a?"":e.getString_za3lpa$(2569)+" : "+In(null!=(s=dy(t.casTimestamp))?iy(s,e.timeZone):null),!0,function(t,e){return function(n,i){var o,r;return n&&null!=(o=t.mPresenter_0)&&o.handleDeleteSubmission_gh2dp9$(e),n||null!=(r=t.mPresenter_0)&&r.handleOpenSubmission_gh2dp9$(e),Ye}}(e,t)),Ye}}function gb(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().defaultFullWidth),e.unaryPlus_uoyjcc$(TE().defaultDoubleMarginTop),Lr(e,Br(50)),Ye}function $b(t){return function(e){return cd(e,t.getString_za3lpa$(2619),void 0,"contained",void 0,function(t){return function(e){var n;return null!=(n=t.mPresenter_0)&&n.handleSubmitButtonClicked(),Ye}}(t),void 0,void 0,void 0,void 0,void 0,gb),Ye}}function Eb(t,e){return function(n){var i,o,r;return n.attrs.onClick=function(t,e){return function(n){var i;return ty().stopEventPropagation_za3rmp$(n),null!=(i=t.mPresenter_0)&&i.handleOpenSubmission_gh2dp9$(e),Ye}}(t,e),jP(n,"class",Cm().clean_pdl1vj$(null!=(o=null!=(i=e.attachment)?i.casaFileName:null)?o:e.casText),t.getString_za3lpa$(2569)+" : "+In(null!=(r=dy(e.casTimestamp))?iy(r,t.timeZone):null),!0),Ye}}function yb(t){return function(e){var n;return $P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return TP(e,t.getString_za3lpa$(2618),"h6"),Ye}}(t)),Yw(e,t.getString_za3lpa$(2616),null!=(n=t.mPresenter_0)?n.newClassCommentListener:null),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return MC(e,t.classComments_0),Ye}}(t)),Ye}}function bb(t){return function(e){var n;return TE().defaultDoubleMarginTop(e.css),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return TP(e,t.getString_za3lpa$(2614),"h6"),Ye}}(t)),Yw(e,t.getString_za3lpa$(2617),null!=(n=t.mPresenter_0)?n.newPrivateCommentListener:null),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return MC(e,t.privateComments_0),Ye}}(t)),Ye}}function Sb(t){return function(n){var i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S=null!=(i=t.entity)?i.caDescription:null;null==S||Pa(S)||$P(n,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n;return O_(e,null!=(n=t.entity)?n.caDescription:null),Ye}}(t));var v=dy(null!=(r=null!=(o=t.entity)?o.block:null)?r.cbDeadlineDate:null);null!=v&&RP(n,"event_available",oy(v)+" - "+ry(v)+" ("+In(t.timeZone)+")",t.getString_za3lpa$(2607),!0),a=Nb().SUBMISSION_POLICY_MAP;var C,N=null!=(s=t.entity)?s.caSubmissionPolicy:null;c=(e.isType(C=a,Ma)?C:An()).get_11rb$(N),u=Ua.Companion.SUBMISSION_POLICY_OPTIONS;var T,L=null!=(l=t.entity)?l.caSubmissionPolicy:null;if(d=null!=(h=(e.isType(T=u,Ma)?T:An()).get_11rb$(L))?h:0,RP(n,c,t.getString_za3lpa$(d),t.getString_za3lpa$(2945),!0),t.showSubmission){p=0===t.submissionStatus?null:Nb().ASSIGNMENT_STATUS_MAP.get_11rb$(t.submissionStatus),m=null!=(_=Da.SubmissionConstants.STATUS_MAP.get_11rb$(t.submissionStatus))?_:0,RP(n,p,t.getString_za3lpa$(m),t.getString_za3lpa$(2543),!0);var z=t.submissionMark;null!=z&&RP(n,"emoji_events",z.camMark.toString()+" / "+In(null!=(g=null!=(f=t.entity)?f.block:null)?g.cbMaxPoints:null)+" "+t.getString_za3lpa$(2590)+(0!==z.camPenalty?" "+fy(t.getString_za3lpa$(2596),[null!=(y=null!=(E=null!=($=t.entity)?$.block:null)?E.cbLateSubmissionPenalty:null)?y:""]):""),t.getString_za3lpa$(2266),!0),gP(n,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,mb(t));var w=t.addedCourseAssignmentSubmission;null==w||w.isEmpty()||($P(n,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i;if(null!=(n=t.addedCourseAssignmentSubmission))for(i=n.iterator();i.hasNext();)Mp(e,void 0,void 0,void 0,void 0,void 0,void 0,fb(i.next(),t));return Ye}}(t)),gP(n,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return $P(e,mp(),ap(),void 0,void 0,void 0,void 0,void 0,$b(t)),Ye}}(t)));var O,R=t.courseAssignmentSubmissions_0;if(null!=R&&!R.isEmpty())for(Fk(n,void 0,void 0,C_(2)),TP(n,t.getString_za3lpa$(2869)),O=t.courseAssignmentSubmissions_0.iterator();O.hasNext();){var A=O.next();Mp(n,void 0,void 0,void 0,void 0,void 0,void 0,Eb(t,A))}}return!0===(null!=(b=t.entity)?b.caClassCommentEnabled:null)&&gP(n,void 0,void 0,void 0,void 0,void 0,yp(),void 0,void 0,yb(t)),t.showPrivateComments&&gP(n,void 0,void 0,void 0,void 0,void 0,yp(),void 0,void 0,bb(t)),Ye}}function vb(){Cb=this,this.ASSIGNMENT_STATUS_MAP=Ia([ni(0,"timer"),ni(1,"done"),ni(2,"done_all")]),this.SUBMISSION_POLICY_MAP=Ia([ni(1,"task_alt"),ni(2,"add_task")])}eb.$metadata$={kind:Vn,simpleName:"ClazzAssignmentDetailComponent",interfaces:[yo,iD]},Object.defineProperty(ab.prototype,"detailPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(ab.prototype,"submittedCourseAssignmentSubmission",{configurable:!0,get:function(){return this.submittedCourseAssignmentSubmission_4iyd2a$_0},set:function(t){this.submittedCourseAssignmentSubmission_4iyd2a$_0=t;var e=null!=t?t.getData_vux9f0$(0,2147483647):null;null!=e&&e.removeObserver_fujmse$(this.assignmentSubmissionObserver_0),null!=e&&e.observe_bi6zy5$(this,this.assignmentSubmissionObserver_0)}}),Object.defineProperty(ab.prototype,"addedCourseAssignmentSubmission",{configurable:!0,get:function(){return this.addedCourseAssignmentSubmission_gtq4n7$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.addedCourseAssignmentSubmission_gtq4n7$_0=e,Ye}))}}),Object.defineProperty(ab.prototype,"timeZone",{configurable:!0,get:function(){return this.timeZone_1mb0fq$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.timeZone_1mb0fq$_0=e,Ye}))}}),Object.defineProperty(ab.prototype,"clazzAssignmentClazzComments",{configurable:!0,get:function(){return this.clazzAssignmentClazzComments_8ybo70$_0},set:function(t){this.clazzAssignmentClazzComments_8ybo70$_0=t;var e=null!=t?t.getData_vux9f0$(0,2147483647):null;null!=e&&e.removeObserver_fujmse$(this.classCommentsObserver_0),null!=e&&e.observe_bi6zy5$(this,this.classCommentsObserver_0)}}),Object.defineProperty(ab.prototype,"clazzAssignmentPrivateComments",{configurable:!0,get:function(){return this.clazzAssignmentPrivateComments_po3ab5$_0},set:function(t){this.clazzAssignmentPrivateComments_po3ab5$_0=t;var e=null!=t?t.getData_vux9f0$(0,2147483647):null;null!=e&&e.removeObserver_fujmse$(this.privateCommentsObserver_0),null!=e&&e.observe_bi6zy5$(this,this.privateCommentsObserver_0)}}),Object.defineProperty(ab.prototype,"showPrivateComments",{configurable:!0,get:function(){return this.showPrivateComments_lfg8xj$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.showPrivateComments_lfg8xj$_0=e,Ye}))}}),Object.defineProperty(ab.prototype,"showSubmission",{configurable:!0,get:function(){return this.showSubmission_325um2$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.showSubmission_325um2$_0=e,Ye}))}}),Object.defineProperty(ab.prototype,"addTextSubmissionVisible",{configurable:!0,get:function(){return this.addTextSubmissionVisible_iofgs5$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.addTextSubmissionVisible_iofgs5$_0=e,Ye}))}}),Object.defineProperty(ab.prototype,"addFileSubmissionVisible",{configurable:!0,get:function(){return this.addFileSubmissionVisible_nj5r8m$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.addFileSubmissionVisible_nj5r8m$_0=e,Ye}))}}),Object.defineProperty(ab.prototype,"submissionMark",{configurable:!0,get:function(){return this.submissionMark_t0g2ei$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.submissionMark_t0g2ei$_0=e,Ye}))}}),Object.defineProperty(ab.prototype,"submissionStatus",{configurable:!0,get:function(){return this.submissionStatus_8gef17$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.submissionStatus_8gef17$_0=e,Ye}))}}),Object.defineProperty(ab.prototype,"unassignedError",{configurable:!0,get:function(){return this.unassignedError_ukjqmo$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.unassignedError_ukjqmo$_0=e,Ye}))}}),Object.defineProperty(ab.prototype,"entity",{configurable:!0,get:function(){return this.entity_fcxb5s$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.entity_fcxb5s$_0=e,Ye}))}}),ab.prototype.onCreateView=function(){var t,e,n,i,o;iD.prototype.onCreateView.call(this),null!=(t=this.fabManager)&&(t.text=this.getString_za3lpa$(2619)),null!=(e=this.fabManager)&&(e.icon="check"),this.mPresenter_0=new Ua(this,this.arguments,this,this,this.di),null!=(n=this.mPresenter_0)&&n.onCreate(fr()),null!=(i=this.fabManager)&&(i.onClickListener=(o=this,function(){var t;return null!=(t=o.mPresenter_0)&&t.handleSubmitButtonClicked(),Ye}))},ab.prototype.render_ss14n$=function(t){if(null!=this.entity){var e=Sa.Companion.invoke_f6ihu2$(sb),n=e.css;n.unaryPlus_uoyjcc$(TE().defaultPaddingTop),n.unaryPlus_uoyjcc$(TE().defaultDoubleMarginTop),n.unaryPlus_uoyjcc$(TE().contentContainer),gP(e,void 0,void 0,void 0,void 0,void 0,bp(),void 0,void 0,Sb(this)),t.child_30b5ua$(e.create())}},ab.prototype.onDestroyView=function(){var t;iD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null},vb.$metadata$={kind:Ho,simpleName:"Companion",interfaces:[]};var Cb=null;function Nb(){return null===Cb&&new vb,Cb}function Tb(t){return new ba(ya.emptyMap,t)}function Lb(t){var e;iD.call(this,t),this.mPresenter_0=null,this.markGrade_0="",this.markLabel_0=new Lm(this.getString_za3lpa$(2590)),this.privateComments_0=ri(),this.contents_0=ri(),this.submissions_0=ri(),this.privateCommentsObserver_0=new Ea((e=this,function(t){if(!t.isEmpty())return $a(e,function(t,e){return function(n){return e.privateComments_0=t,Ye}}(t,e)),Ye})),this.contentsObserver_0=new Ea(function(t){return function(e){if(!e.isEmpty())return $a(t,function(t,e){return function(n){return e.contents_0=t,Ye}}(e,t)),Ye}}(this)),this.submissionsObserver_0=new Ea(function(t){return function(e){if(!e.isEmpty())return $a(t,function(t,e){return function(n){return e.submissions_0=t,Ye}}(e,t)),Ye}}(this)),this.submitMarkError_r0agsj$_0=null,this.submitterName_kk09de$_0=null,this.clazzCourseAssignmentSubmissionAttachment_ypxbpz$_0=null,this.clazzAssignmentPrivateComments_9jipvo$_0=null,this.submissionScore_d7i3wg$_0=null,this.submissionStatus_8vyv9s$_0=0,this.markNextStudentVisible_rs1piv$_0=!1,this.submitButtonVisible_k2psoy$_0=!1,this.entity_4tnk23$_0=null}function zb(t,e){return function(n){var i,o,r,s;return n.attrs.onClick=function(t,e){return function(n){var i;return ty().stopEventPropagation_za3rmp$(n),null!=(i=t.mPresenter_0)&&i.onClickOpenSubmission_gh2dp9$(e),Ye}}(t,e),r=null!=(o=null!=(i=e.attachment)?i.casaFileName:null)?o:e.casText,jP(n,"class",Cm().clean_pdl1vj$(r),t.getString_za3lpa$(2569)+" : "+In(null!=(s=dy(e.casTimestamp))?sy(s):null),!0),Ye}}function wb(t){return function(e){return Pp(e,void 0,void 0,void 0,void 0,function(t){return function(e){var n;for(n=t.submissions_0.iterator();n.hasNext();){var i=n.next();Mp(e,void 0,void 0,void 0,void 0,void 0,void 0,zb(t,i))}return Ye}}(t)),Ye}}function Ob(t){return function(e){return $a(t,function(t,e){return function(n){return e.markGrade_0=t,e.submitMarkError=null,Ye}}(e,t)),Ye}}function Rb(t){return TE().errorTextClass(t.css),Ye}function Ab(t){return function(e){var n,i,o,r,s;return e.css.unaryPlus_uoyjcc$(TE().defaultMarginTop),n=In(t.markLabel_0.text),i=t.markLabel_0.id,o=t.markLabel_0.error,Ip(e,n,t.markLabel_0.id,i,void 0,void 0,o,void 0,"outlined"),r=t.markLabel_0.id,Yp(e,t.markGrade_0,void 0,t.markLabel_0.text,void 0,void 0,t.markLabel_0.error,void 0,void 0,void 0,void 0,void 0,"number",r,void 0,void 0,void 0,void 0,Ob(t),void 0,function(t){return function(e){var n,i,o;return e.attrs.endAdornment=O_(e,"/"+(null!=(o=null!=(i=null!=(n=t.entity)?n.block:null)?i.cbMaxPoints:null)?o:10),"h6"),Ye}}(t)),null!=(s=t.markLabel_0.errorText)&&Pd(e,s,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Rb),Ye}}function xb(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().defaultFullWidth),e.unaryPlus_uoyjcc$(TE().defaultMarginTop),Lr(e,Br(50)),Ye}function Ib(t){return function(e){return cd(e,null==t.submissionScore?t.getString_za3lpa$(2860):t.getString_za3lpa$(2948),void 0,"contained",void 0,function(t){return function(e){var n;return t.markGrade_0.length>0&&null!=(n=t.mPresenter_0)&&n.onClickSubmitGrade_mx4ult$(Sr(t.markGrade_0)),Ye}}(t),void 0,void 0,void 0,void 0,void 0,xb),Ye}}function Ub(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().defaultFullWidth),e.unaryPlus_uoyjcc$(TE().defaultMarginTop),Lr(e,Br(50)),Ye}function Db(t){return function(e){return cd(e,null==t.submissionScore?t.getString_za3lpa$(2861):t.getString_za3lpa$(2949),void 0,"contained",void 0,function(t){return function(e){var n;return t.markGrade_0.length>0&&null!=(n=t.mPresenter_0)&&n.onClickSubmitGradeAndMarkNext_mx4ult$(Sr(t.markGrade_0)),Ye}}(t),void 0,void 0,void 0,void 0,void 0,Ub),Ye}}function Pb(t){return function(e){return TE().defaultDoubleMarginTop(e.css),t.submitButtonVisible&&($P(e,mp(),ap(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return Dd(e,void 0,void 0,void 0,void 0,void 0,"outlined",void 0,void 0,Ab(t)),Ye}}(t)),$P(e,mp(),ap(),void 0,void 0,void 0,void 0,void 0,Ib(t))),t.markNextStudentVisible&&$P(e,mp(),ap(),void 0,void 0,void 0,void 0,void 0,Db(t)),Ye}}function Mb(t){return function(e){return $P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return TP(e,t.getString_za3lpa$(2614),"h6"),Ye}}(t)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n;return Yw(e,t.getString_za3lpa$(2617),null!=(n=t.mPresenter_0)?n.newPrivateCommentListener:null),Ye}}(t)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return MC(e,t.privateComments_0),Ye}}(t)),Ye}}function kb(t){return function(e){var n;return $P(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return TP(e,t.getString_za3lpa$(2869),"h6"),Ye}}(t)),$P(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a,c,l;n=0===t.submissionStatus?null:Nb().ASSIGNMENT_STATUS_MAP.get_11rb$(t.submissionStatus),o=null!=(i=Da.SubmissionConstants.STATUS_MAP.get_11rb$(t.submissionStatus))?i:0,RP(e,n,t.getString_za3lpa$(o),t.getString_za3lpa$(2543),!0);var u=t.submissionScore;return null!=u&&RP(e,"emoji_events",u.camMark.toString()+" / "+In(null!=(s=null!=(r=t.entity)?r.block:null)?s.cbMaxPoints:null)+" "+t.getString_za3lpa$(2590)+(0!==u.camPenalty?" "+fy(t.getString_za3lpa$(2596),[null!=(l=null!=(c=null!=(a=t.entity)?a.block:null)?c.cbLateSubmissionPenalty:null)?l:""]):""),t.getString_za3lpa$(2266),!0),Ye}}(t)),t.submissions_0.isEmpty()||$P(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,wb(t)),gP(e,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,Pb(t)),!0===(null!=(n=t.entity)?n.caPrivateCommentsEnabled:null)&&$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return gP(e,void 0,void 0,void 0,void 0,void 0,Ep(),void 0,void 0,Mb(t)),Ye}}(t)),Ye}}function jb(t){var e;uD.call(this,t),this.mPresenter_0=null,this.summary_0=null,this.progressObserver_0=new Ea((e=this,function(t){return $a(e,function(t,e){return function(n){return e.summary_0=t,Ye}}(t,e)),Ye})),this.progressSummary_mqdizg$_0=null}function Gb(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().defaultFullWidth),e.unaryPlus_uoyjcc$(TE().defaultMarginBottom),Ye}function qb(t){return Rd(t,void 0,void 0,void 0,void 0,void 0,void 0,Gb),Ye}function Fb(t){return new ba(ya.emptyMap,t)}function Bb(t){oD.call(this,t),this.mPresenter_0=null,this.nameLabel_0=new Lm(this.getString_za3lpa$(2102)),this.descriptionLabel_0=new Lm(this.getStringWithOptionalLabel_za3lpa$(2047)),this.doNotShowBeforeLabel_0=new Lm($y(this.getString_za3lpa$(2841))),this.startTimeLabel_0=new Lm(this.getString_za3lpa$(2611)),this.deadlineDateLabel_0=new Lm(this.getStringWithOptionalLabel_za3lpa$(2607)),this.deadlineTimeLabel_0=new Lm(this.getString_za3lpa$(2611)),this.gracePeriodDateLabel_0=new Lm(this.getStringWithOptionalLabel_za3lpa$(2587)),this.gracePeriodTimeLabel_0=new Lm(this.getString_za3lpa$(2611)),this.completionCriteriaLabel_0=new Lm(this.getString_za3lpa$(2594)),this.submissionTypeLabel_0=new Lm(this.getString_za3lpa$(2601)),this.fileTypeLabel_0=new Lm(this.getString_za3lpa$(2854)),this.maxPointsLabel_0=new Lm(this.getString_za3lpa$(2867)),this.fileSizeLimitLabel_0=new Lm(this.getString_za3lpa$(2845)),this.fileNumberLimitLabel_0=new Lm(fy(this.getString_za3lpa$(2859),[""])),this.textLimitTypeLabel_0=new Lm(this.getString_za3lpa$(2846)),this.textLimitMaxLabel_0=new Lm(this.getString_za3lpa$(2844)),this.penaltyLabel_0=new Lm(this.getString_za3lpa$(2586)),this.submissionPolicyLabel_0=new Lm(this.getString_za3lpa$(2945)),this.markedByLabel_0=new Lm(this.getString_za3lpa$(2852)),this.caGracePeriodError_w2lh3q$_0=null,this.caDeadlineError_kzweg1$_0=null,this.caTitleError_l623jf$_0=null,this.caStartDateError_1z5lhv$_0=null,this.caMaxPointsError_nhp23o$_0=null,this.startDate_hpsghr$_0=ra,this.startTime_hgusam$_0=ra,this.deadlineDate_hbxxc3$_0=ra,this.deadlineTime_h3094y$_0=ra,this.gracePeriodDate_ccn1be$_0=ra,this.gracePeriodTime_clkpij$_0=ra,this.timeZone_his00m$_0=null,this.groupSet_sgdzvk$_0=null,this.submissionPolicyOptions_86ca0f$_0=null,this.fileTypeOptions_fwgign$_0=null,this.textLimitTypeOptions_qp9zt9$_0=null,this.completionCriteriaOptions_ux387i$_0=null,this.markingTypeOptions_u3bdxo$_0=null,this.groupSetEnabled_l68m5p$_0=!1,this.fieldsEnabled_jhjj6x$_0=!1,this.entity_xtjulc$_0=null,this.requireFileSubmission_8n7rh8$_0=!1,this.requireTextSubmission_7ieywd$_0=!1,this.gracePeriodVisiblity_aw58ov$_0=!1}function Wb(t){return function(e){return $a(t,function(t,e){return function(n){var i,o;return null!=(o=null!=(i=e.entity)?i.assignment:null)&&(o.caTitle=t),e.caTitleError=null,Ye}}(e,t)),Ye}}function Hb(t){return function(e){return $a(t,function(t,e){return function(n){var i,o;return null!=(o=null!=(i=e.entity)?i.assignment:null)&&(o.caDescription=t),Ye}}(e,t)),Ye}}function Vb(t){return function(n){return $a(t,function(t,n){return function(i){return n.startDate=e.Long.fromNumber(t.getTime()),n.caStartDateError=null,Ye}}(n,t)),Ye}}function Kb(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.cbCompletionCriteria=t),e.completionCriteriaLabel_0.errorText=null,Ye}}(e,t)),Ye}}function Xb(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.cbMaxPoints=t),e.caMaxPointsError=null,Ye}}(e,t)),Ye}}function Jb(t){return function(n){return $a(t,function(t,n){return function(i){return n.deadlineDate=e.Long.fromNumber(t.getTime()),n.caDeadlineError=null,n.gracePeriodVisiblity_0=!0,Ye}}(n,t)),Ye}}function Yb(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.cbLateSubmissionPenalty=t),Ye}}(e,t)),Ye}}function Qb(t){return function(e){return $a(t,function(t){return function(e){var n,i,o,r,s,a,c,l;return null!=(s=null!=(r=t.entity)?r.assignment:null)&&(s.caRequireFileSubmission=!(null!=(o=null!=(i=null!=(n=t.entity)?n.assignment:null)?i.caRequireFileSubmission:null)&&o)),t.requireFileSubmission_0=null!=(l=null!=(c=null!=(a=t.entity)?a.assignment:null)?c.caRequireFileSubmission:null)&&l,Ye}}(t)),Ye}}function Zb(t){return function(e){return $a(t,function(t,e){return function(n){var i,o;return null!=(o=null!=(i=e.entity)?i.assignment:null)&&(o.caFileType=vr(t)),Ye}}(e,t)),Ye}}function tS(t){return function(e){return $a(t,function(t,e){return function(n){var i,o;return null!=(o=null!=(i=e.entity)?i.assignment:null)&&(o.caSizeLimit=vr(t)),Ye}}(e,t)),Ye}}function eS(t){return function(e){return $a(t,function(t,e){return function(n){var i,o,r;return null!=(r=null!=(o=e.entity)?o.assignment:null)&&(r.caNumberOfFiles=null!=(i=Fa(t))?i:0),Ye}}(e,t)),Ye}}function nS(t){return function(e){return $P(e,mp(),ap(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a,c,l,u,h;if(n=In(t.fileTypeLabel_0.text),r=In(null!=(o=null!=(i=t.entity)?i.assignment:null)?o.caFileType:null),a=null!=(s=t.fileTypeLabel_0.errorText)?s:"",c=t.fileTypeLabel_0.error,null!=(l=t.fileTypeOptions)){var d,p=Xo(Ko(l,10));for(d=l.iterator();d.hasNext();){var _=d.next();p.add_11rb$(new qa(_.code.toString(),_.toString()))}h=p}else h=null;return b_(e,n,r,a,void 0,null!=(u=h)?yr(u):null,void 0,Zb(t),void 0,void 0,c),Ye}}(t)),$P(e,mp(),ap(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a,c;return n=In(t.fileSizeLimitLabel_0.text),i=t.fileSizeLimitLabel_0.errorText,s=In(null!=(r=null!=(o=t.entity)?o.assignment:null)?r.caSizeLimit:null),a=t.fileSizeLimitLabel_0.error,c=!t.fieldsEnabled,$_(e,n,s,i,void 0,"outlined",tS(t),void 0,void 0,c,a),Ye}}(t)),$P(e,mp(),ap(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a,c;return n=In(t.fileNumberLimitLabel_0.text),i=t.fileNumberLimitLabel_0.errorText,s=In(null!=(r=null!=(o=t.entity)?o.assignment:null)?r.caNumberOfFiles:null),a=t.fileNumberLimitLabel_0.error,c=!t.fieldsEnabled,$_(e,n,s,i,void 0,"outlined",eS(t),void 0,void 0,c,a),Ye}}(t)),Ye}}function iS(t){return function(e){return $a(t,function(t){return function(e){var n,i,o,r,s,a,c,l;return null!=(s=null!=(r=t.entity)?r.assignment:null)&&(s.caRequireTextSubmission=!(null!=(o=null!=(i=null!=(n=t.entity)?n.assignment:null)?i.caRequireTextSubmission:null)&&o)),t.requireTextSubmission_0=null!=(l=null!=(c=null!=(a=t.entity)?a.assignment:null)?c.caRequireTextSubmission:null)&&l,Ye}}(t)),Ye}}function oS(t){return function(e){return $a(t,function(t,e){return function(n){var i,o;return null!=(o=null!=(i=e.entity)?i.assignment:null)&&(o.caTextLimitType=vr(t)),Ye}}(e,t)),Ye}}function rS(t){return function(e){return $a(t,function(t,e){return function(n){var i,o,r;return null!=(r=null!=(o=e.entity)?o.assignment:null)&&(r.caTextLimit=null!=(i=Fa(t))?i:0),Ye}}(e,t)),Ye}}function sS(t){return function(e){return $P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a,c,l,u,h;if(n=In(t.textLimitTypeLabel_0.text),r=In(null!=(o=null!=(i=t.entity)?i.assignment:null)?o.caTextLimitType:null),a=null!=(s=t.textLimitTypeLabel_0.errorText)?s:"",c=t.textLimitTypeLabel_0.error,null!=(l=t.textLimitTypeOptions)){var d,p=Xo(Ko(l,10));for(d=l.iterator();d.hasNext();){var _=d.next();p.add_11rb$(new qa(_.code.toString(),_.toString()))}h=p}else h=null;return b_(e,n,r,a,void 0,null!=(u=h)?yr(u):null,void 0,oS(t),void 0,void 0,c),Ye}}(t)),$P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a,c;return n=In(t.textLimitMaxLabel_0.text),i=t.textLimitMaxLabel_0.errorText,s=In(null!=(r=null!=(o=t.entity)?o.assignment:null)?r.caTextLimit:null),a=t.textLimitMaxLabel_0.error,c=!t.fieldsEnabled,$_(e,n,s,i,void 0,"outlined",rS(t),void 0,void 0,c,a),Ye}}(t)),Ye}}function aS(t){return function(e){return $a(t,function(t,e){return function(n){var i,o;return null!=(o=null!=(i=e.entity)?i.assignment:null)&&(o.caSubmissionPolicy=vr(t)),Ye}}(e,t)),Ye}}function cS(t){return function(e){return $a(t,function(t,e){return function(n){var i,o;return null!=(o=null!=(i=e.entity)?i.assignment:null)&&(o.caMarkingType=vr(t)),Ye}}(e,t)),Ye}}function lS(t){return function(e){return $P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a,c,l,u,h;if(n=In(t.submissionPolicyLabel_0.text),r=In(null!=(o=null!=(i=t.entity)?i.assignment:null)?o.caSubmissionPolicy:null),a=null!=(s=t.submissionPolicyLabel_0.errorText)?s:"",c=t.submissionPolicyLabel_0.error,null!=(l=t.submissionPolicyOptions)){var d,p=Xo(Ko(l,10));for(d=l.iterator();d.hasNext();){var _=d.next();p.add_11rb$(new qa(_.code.toString(),_.toString()))}h=p}else h=null;return b_(e,n,r,a,void 0,null!=(u=h)?yr(u):null,void 0,aS(t),void 0,void 0,c),Ye}}(t)),$P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a,c,l,u,h;if(n=In(t.markedByLabel_0.text),r=In(null!=(o=null!=(i=t.entity)?i.assignment:null)?o.caMarkingType:null),a=null!=(s=t.markedByLabel_0.errorText)?s:"",c=t.markedByLabel_0.error,null!=(l=t.markingTypeOptions)){var d,p=Xo(Ko(l,10));for(d=l.iterator();d.hasNext();){var _=d.next();p.add_11rb$(new qa(_.optionId.toString(),_.toString()))}h=p}else h=null;return b_(e,n,r,a,void 0,null!=(u=h)?yr(u):null,void 0,cS(t),void 0,void 0,c),Ye}}(t)),Ye}}function uS(t){return function(e){return $a(t,function(t){return function(e){var n,i,o,r,s;return null!=(s=null!=(r=t.entity)?r.assignment:null)&&(s.caClassCommentEnabled=!(null!=(o=null!=(i=null!=(n=t.entity)?n.assignment:null)?i.caClassCommentEnabled:null)&&o)),Ye}}(t)),Ye}}function hS(t){return function(e){return $a(t,function(t){return function(e){var n,i,o,r,s;return null!=(s=null!=(r=t.entity)?r.assignment:null)&&(s.caPrivateCommentsEnabled=!(null!=(o=null!=(i=null!=(n=t.entity)?n.assignment:null)?i.caPrivateCommentsEnabled:null)&&o)),Ye}}(t)),Ye}}function dS(t){return function(n){var i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b;return i=In(t.nameLabel_0.text),o=t.nameLabel_0.errorText,a=null!=(s=null!=(r=t.entity)?r.assignment:null)?s.caTitle:null,c=t.nameLabel_0.error,l=!t.fieldsEnabled,$_(n,i,a,o,void 0,"outlined",Wb(t),void 0,void 0,l,c),u=In(t.descriptionLabel_0.text),h=t.descriptionLabel_0.errorText,_=null!=(p=null!=(d=t.entity)?d.assignment:null)?p.caDescription:null,m=t.descriptionLabel_0.error,f=!t.fieldsEnabled,$_(n,u,_,h,void 0,"outlined",Hb(t),void 0,void 0,f,m),dj(n,t.entity,t.doNotShowBeforeLabel_0,t.startDate,t.startTimeLabel_0,Vb(t),t.timeZone,t.completionCriteriaLabel_0,t.completionCriteriaOptions,Kb(t),t.maxPointsLabel_0,Xb(t),t.deadlineDateLabel_0,t.deadlineTimeLabel_0,t.deadlineDate,Jb(t),t.gracePeriodDateLabel_0,t.gracePeriodTimeLabel_0,t.gracePeriodDate,t.gracePeriodVisiblity_0,function(t){return function(n){return t.gracePeriodDate=e.Long.fromNumber(n.getTime()),t.caGracePeriodError=null,Ye}}(t),t.penaltyLabel_0,Yb(t),t.getString_za3lpa$(2868),!1),g=In(t.submissionTypeLabel_0.text),$=t.submissionTypeLabel_0.errorText,y=null!=(E=t.groupSet)?E.cgsName:null,b=t.nameLabel_0.error,$_(n,g,y,$,void 0,"outlined",void 0,void 0,void 0,!t.groupSetEnabled,b,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(){var e;return null!=(e=t.mPresenter_0)&&e.handleSubmissionTypeClicked(),Ye}}(t)),$P(n,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o;return TE().defaultMarginTop(e.css),mj(e,t.getString_za3lpa$(2842),null!=(o=null!=(i=null!=(n=t.entity)?n.assignment:null)?i.caRequireFileSubmission:null)&&o,Qb(t)),Ye}}(t)),t.requireFileSubmission_0&&gP(n,void 0,void 0,void 0,void 0,Sp(),void 0,void 0,void 0,nS(t)),$P(n,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o;return TE().defaultMarginTop(e.css),mj(e,t.getString_za3lpa$(2843),null!=(o=null!=(i=null!=(n=t.entity)?n.assignment:null)?i.caRequireTextSubmission:null)&&o,iS(t)),Ye}}(t)),t.requireTextSubmission_0&&gP(n,void 0,void 0,void 0,void 0,Sp(),void 0,void 0,void 0,sS(t)),gP(n,void 0,void 0,void 0,void 0,Sp(),void 0,void 0,void 0,lS(t)),$P(n,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o;return TE().defaultMarginTop(e.css),mj(e,t.getString_za3lpa$(2588),null!=(o=null!=(i=null!=(n=t.entity)?n.assignment:null)?i.caClassCommentEnabled:null)&&o,uS(t)),Ye}}(t)),$P(n,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o;return mj(e,t.getString_za3lpa$(2606),null!=(o=null!=(i=null!=(n=t.entity)?n.assignment:null)?i.caPrivateCommentsEnabled:null)&&o,hS(t)),Ye}}(t)),Ye}}function pS(t){fS(),iD.call(this,t),this.mPresenter_0=null,this.tabsToRender_0=null,this.tabs_hxdo5n$_0=null,this.entity_x3pb0a$_0=null}function _S(){mS=this,this.VIEWNAME_TO_TITLE_MAP=Ia([ni(Hi.Companion.VIEW_NAME,2558),ni(_i.Companion.VIEW_NAME,2539),ni(Wi.Companion.VIEW_NAME,2467),ni(Vi.Companion.VIEW_NAME,2068),ni(Ao.Companion.VIEW_NAME,2451)])}ab.$metadata$={kind:Vn,simpleName:"ClazzAssignmentDetailOverviewComponent",interfaces:[bo,iD]},Object.defineProperty(Lb.prototype,"detailPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(Lb.prototype,"submitMarkError",{configurable:!0,get:function(){return this.submitMarkError_r0agsj$_0},set:function(t){var e,n;$a(this,(e=this,n=t,function(t){return e.markLabel_0=e.markLabel_0.copy_d8n4vg$(void 0,n),Ye}))}}),Object.defineProperty(Lb.prototype,"submitterName",{configurable:!0,get:function(){return this.submitterName_kk09de$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.submitterName_kk09de$_0=e,n.ustadComponentTitle=e,Ye}))}}),Object.defineProperty(Lb.prototype,"clazzCourseAssignmentSubmissionAttachment",{configurable:!0,get:function(){return this.clazzCourseAssignmentSubmissionAttachment_ypxbpz$_0},set:function(t){this.clazzCourseAssignmentSubmissionAttachment_ypxbpz$_0=t;var e=null!=t?t.getData_vux9f0$(0,2147483647):null;null!=e&&e.removeObserver_fujmse$(this.submissionsObserver_0),null!=e&&e.observe_bi6zy5$(this,this.submissionsObserver_0)}}),Object.defineProperty(Lb.prototype,"clazzAssignmentPrivateComments",{configurable:!0,get:function(){return this.clazzAssignmentPrivateComments_9jipvo$_0},set:function(t){this.clazzAssignmentPrivateComments_9jipvo$_0=t;var e=null!=t?t.getData_vux9f0$(0,2147483647):null;null!=e&&e.removeObserver_fujmse$(this.privateCommentsObserver_0),null!=e&&e.observe_bi6zy5$(this,this.privateCommentsObserver_0)}}),Object.defineProperty(Lb.prototype,"submissionScore",{configurable:!0,get:function(){return this.submissionScore_d7i3wg$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.submissionScore_d7i3wg$_0=e,Ye}))}}),Object.defineProperty(Lb.prototype,"submissionStatus",{configurable:!0,get:function(){return this.submissionStatus_8vyv9s$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.submissionStatus_8vyv9s$_0=e,Ye}))}}),Object.defineProperty(Lb.prototype,"markNextStudentVisible",{configurable:!0,get:function(){return this.markNextStudentVisible_rs1piv$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.markNextStudentVisible_rs1piv$_0=e,Ye}))}}),Object.defineProperty(Lb.prototype,"submitButtonVisible",{configurable:!0,get:function(){return this.submitButtonVisible_k2psoy$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.submitButtonVisible_k2psoy$_0=e,Ye}))}}),Object.defineProperty(Lb.prototype,"entity",{configurable:!0,get:function(){return this.entity_4tnk23$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.entity_4tnk23$_0=e,Ye}))}}),Lb.prototype.onCreateView=function(){var t;iD.prototype.onCreateView.call(this),this.editButtonMode=wa.GONE,this.mPresenter_0=new ka(this,this.arguments,this,this.di,this),null!=(t=this.mPresenter_0)&&t.onCreate(fr())},Lb.prototype.render_ss14n$=function(t){var e=Sa.Companion.invoke_f6ihu2$(Tb),n=e.css;n.unaryPlus_uoyjcc$(TE().listComponentContainer),n.unaryPlus_uoyjcc$(TE().contentContainer),gP(e,void 0,void 0,void 0,void 0,void 0,bp(),void 0,void 0,kb(this)),t.child_30b5ua$(e.create())},Lb.prototype.onDestroyView=function(){var t;iD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null},Lb.$metadata$={kind:Vn,simpleName:"ClazzAssignmentDetailStudentProgressComponent",interfaces:[vo,iD]},Object.defineProperty(jb.prototype,"displayTypeRepo",{configurable:!0,get:function(){var t;return null!=(t=this.dbRepo)?t.clazzDao:null}}),Object.defineProperty(jb.prototype,"listPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(jb.prototype,"progressSummary",{configurable:!0,get:function(){return this.progressSummary_mqdizg$_0},set:function(t){this.progressSummary_mqdizg$_0=t,null!=t&&t.removeObserver_fujmse$(this.progressObserver_0),null!=t&&t.observe_bi6zy5$(this,this.progressObserver_0)}}),jb.prototype.onCreateView=function(){var t,e;uD.prototype.onCreateView.call(this),null!=(t=this.fabManager)&&(t.text=this.getString_za3lpa$(2318)),this.linearLayout=!1,this.useCardsOnGridLayout=!1,this.columnSize=lp(),this.mPresenter_0=new ja(this,this.arguments,this,this.di,this),null!=(e=this.mPresenter_0)&&e.onCreate(fr())},jb.prototype.renderListHeaderView_ss14n$=function(t){var e;gP(t,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,(e=this,function(t){var n,i,o;return Pj(t,null!=(n=e.summary_0)?n.calculateNotSubmittedStudents():null,e.getString_za3lpa$(2529)),Pj(t,null!=(i=e.summary_0)?i.submittedStudents:null,e.getString_za3lpa$(2598)),Pj(t,null!=(o=e.summary_0)?o.markedStudents:null,e.getString_za3lpa$(2568)),$P(t,mp(),void 0,void 0,void 0,void 0,void 0,void 0,qb),Ye}))},jb.prototype.renderListItem_js0tu9$=function(t,e){CM(t,e,this.systemImpl,!1)},jb.prototype.handleClickEntry_11rc$=function(t){var e;null!=(e=this.mPresenter_0)&&e.onClickPerson_ylddm3$(t)},jb.prototype.onFabClicked=function(){},jb.prototype.renderAddContentOptionsDialog_ss14n$=function(t){},jb.prototype.onDestroyView=function(){var t;uD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null},jb.$metadata$={kind:Vn,simpleName:"ClazzAssignmentDetailStudentProgressListOverviewComponent",interfaces:[So,uD]},Object.defineProperty(Bb.prototype,"mEditPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(Bb.prototype,"caGracePeriodError",{configurable:!0,get:function(){return this.caGracePeriodError_w2lh3q$_0},set:function(t){var e,n;this.caGracePeriodError_w2lh3q$_0=t,$a(this,(e=this,n=t,function(t){return e.gracePeriodDateLabel_0=e.gracePeriodDateLabel_0.copy_d8n4vg$(void 0,n),Ye}))}}),Object.defineProperty(Bb.prototype,"caDeadlineError",{configurable:!0,get:function(){return this.caDeadlineError_kzweg1$_0},set:function(t){var e,n;this.caDeadlineError_kzweg1$_0=t,$a(this,(e=this,n=t,function(t){return e.deadlineDateLabel_0=e.deadlineDateLabel_0.copy_d8n4vg$(void 0,n),Ye}))}}),Object.defineProperty(Bb.prototype,"caTitleError",{configurable:!0,get:function(){return this.caTitleError_l623jf$_0},set:function(t){var e,n;this.caTitleError_l623jf$_0=t,$a(this,(e=this,n=t,function(t){return e.nameLabel_0=e.nameLabel_0.copy_d8n4vg$(void 0,n),Ye}))}}),Object.defineProperty(Bb.prototype,"caStartDateError",{configurable:!0,get:function(){return this.caStartDateError_1z5lhv$_0},set:function(t){var e,n;this.caStartDateError_1z5lhv$_0=t,$a(this,(e=this,n=t,function(t){return e.doNotShowBeforeLabel_0=e.doNotShowBeforeLabel_0.copy_d8n4vg$(void 0,n),Ye}))}}),Object.defineProperty(Bb.prototype,"caMaxPointsError",{configurable:!0,get:function(){return this.caMaxPointsError_nhp23o$_0},set:function(t){var e,n;this.caMaxPointsError_nhp23o$_0=t,$a(this,(e=this,n=t,function(t){return e.maxPointsLabel_0=e.maxPointsLabel_0.copy_d8n4vg$(void 0,n),Ye}))}}),Object.defineProperty(Bb.prototype,"startDate",{configurable:!0,get:function(){return this.startDate_hpsghr$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.startDate_hpsghr$_0=e,Ye}))}}),Object.defineProperty(Bb.prototype,"startTime",{configurable:!0,get:function(){return this.startTime_hgusam$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.startTime_hgusam$_0=e,Ye}))}}),Object.defineProperty(Bb.prototype,"deadlineDate",{configurable:!0,get:function(){return this.deadlineDate_hbxxc3$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.deadlineDate_hbxxc3$_0=e,Ye}))}}),Object.defineProperty(Bb.prototype,"deadlineTime",{configurable:!0,get:function(){return this.deadlineTime_h3094y$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.deadlineTime_h3094y$_0=e,Ye}))}}),Object.defineProperty(Bb.prototype,"gracePeriodDate",{configurable:!0,get:function(){return this.gracePeriodDate_ccn1be$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.gracePeriodDate_ccn1be$_0=e,Ye}))}}),Object.defineProperty(Bb.prototype,"gracePeriodTime",{configurable:!0,get:function(){return this.gracePeriodTime_clkpij$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.gracePeriodTime_clkpij$_0=e,Ye}))}}),Object.defineProperty(Bb.prototype,"timeZone",{configurable:!0,get:function(){return this.timeZone_his00m$_0},set:function(t){var e,n,i=this.getString_za3lpa$(2608)+" "+t;$a(this,(e=i,n=this,function(t){return n.timeZone_his00m$_0=e,Ye}))}}),Object.defineProperty(Bb.prototype,"groupSet",{configurable:!0,get:function(){return this.groupSet_sgdzvk$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.groupSet_sgdzvk$_0=e,Ye}))}}),Object.defineProperty(Bb.prototype,"submissionPolicyOptions",{configurable:!0,get:function(){return this.submissionPolicyOptions_86ca0f$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.submissionPolicyOptions_86ca0f$_0=e,Ye}))}}),Object.defineProperty(Bb.prototype,"fileTypeOptions",{configurable:!0,get:function(){return this.fileTypeOptions_fwgign$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.fileTypeOptions_fwgign$_0=e,Ye}))}}),Object.defineProperty(Bb.prototype,"textLimitTypeOptions",{configurable:!0,get:function(){return this.textLimitTypeOptions_qp9zt9$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.textLimitTypeOptions_qp9zt9$_0=e,Ye}))}}),Object.defineProperty(Bb.prototype,"completionCriteriaOptions",{configurable:!0,get:function(){return this.completionCriteriaOptions_ux387i$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.completionCriteriaOptions_ux387i$_0=e,Ye}))}}),Object.defineProperty(Bb.prototype,"markingTypeOptions",{configurable:!0,get:function(){return this.markingTypeOptions_u3bdxo$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.markingTypeOptions_u3bdxo$_0=e,Ye}))}}),Object.defineProperty(Bb.prototype,"groupSetEnabled",{configurable:!0,get:function(){return this.groupSetEnabled_l68m5p$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.groupSetEnabled_l68m5p$_0=e,Ye}))}}),Object.defineProperty(Bb.prototype,"fieldsEnabled",{configurable:!0,get:function(){return this.fieldsEnabled_jhjj6x$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.fieldsEnabled_jhjj6x$_0=e,Ye}))}}),Object.defineProperty(Bb.prototype,"entity",{configurable:!0,get:function(){return this.entity_xtjulc$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){var i,o,r,s;return n.entity_xtjulc$_0=e,n.requireFileSubmission_0=null==(o=null!=(i=null!=e?e.assignment:null)?i.caRequireFileSubmission:null)||o,n.requireTextSubmission_0=null==(s=null!=(r=null!=e?e.assignment:null)?r.caRequireTextSubmission:null)||s,Je(null!=e?e.cbDeadlineDate:null,sa)||(n.gracePeriodVisiblity_0=!0),Ye}))}}),Object.defineProperty(Bb.prototype,"requireFileSubmission_0",{configurable:!0,get:function(){return this.requireFileSubmission_8n7rh8$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.requireFileSubmission_8n7rh8$_0=e,Ye}))}}),Object.defineProperty(Bb.prototype,"requireTextSubmission_0",{configurable:!0,get:function(){return this.requireTextSubmission_7ieywd$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.requireTextSubmission_7ieywd$_0=e,Ye}))}}),Object.defineProperty(Bb.prototype,"gracePeriodVisiblity_0",{configurable:!0,get:function(){return this.gracePeriodVisiblity_aw58ov$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.gracePeriodVisiblity_aw58ov$_0=e,Ye}))}}),Bb.prototype.onCreateView=function(){var t;oD.prototype.onCreateView.call(this),this.setEditTitle_vux9f0$(2581,2582),this.mPresenter_0=new Ga(this,this.arguments,this,this,this.di),null!=(t=this.mPresenter_0)&&t.onCreate(my(this.navController))},Bb.prototype.render_ss14n$=function(t){var e,n=Sa.Companion.invoke_f6ihu2$(Fb);n.css.unaryPlus_uoyjcc$(TE().fieldsOnlyFormScreen),gP(n,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,(e=this,function(t){return $P(t,mp(),void 0,void 0,void 0,void 0,void 0,void 0,dS(e)),Ye})),t.child_30b5ua$(n.create())},Bb.$metadata$={kind:Vn,simpleName:"ClazzAssignmentEditComponent",interfaces:[Eo,oD]},Object.defineProperty(pS.prototype,"detailPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(pS.prototype,"tabs",{configurable:!0,get:function(){return this.tabs_hxdo5n$_0},set:function(t){var e,n;if(this.tabs_hxdo5n$_0=t,null!=t){var i,o,r=Xo(Ko(t,10)),s=0;for(i=t.iterator();i.hasNext();){var a,c=i.next(),l=r.add_11rb$,u=Js((s=(o=s)+1|0,o)),h=null!=(a=fS().VIEWNAME_TO_TITLE_MAP.get_11rb$(Xs(c,"?")))?a:0,d=Xs(c,"?"),p=Ra(c,"?");l.call(r,new mU(u,d,qE(c.substring(p)),this.getString_za3lpa$(h)))}n=r}else n=null;this.tabsToRender_0=null!=(e=n)?yr(e):null}}),Object.defineProperty(pS.prototype,"entity",{configurable:!0,get:function(){return this.entity_x3pb0a$_0},set:function(t){var e,n,i;this.ustadComponentTitle=null!=(e=this.entity)?e.clazzName:null,$a(this,(n=t,i=this,function(t){return i.entity_x3pb0a$_0=n,Ye}))}}),pS.prototype.onCreateView=function(){var t;iD.prototype.onCreateView.call(this),this.mPresenter_0=new Ba(this,this.arguments,this,this.di,this),null!=(t=this.mPresenter_0)&&t.onCreate(fr())},pS.prototype.render_ss14n$=function(t){var e,n,i;null!=(e=this.tabsToRender_0)&&EU(t,e,void 0,null!=(i=null!=(n=this.arguments.get_11rb$(xa.Companion.ARG_ACTIVE_TAB_INDEX))?vr(n):null)?i:0)},pS.prototype.onDestroyView=function(){iD.prototype.onDestroyView.call(this),this.mPresenter_0=null,this.entity=null,this.tabsToRender_0=null,this.tabs=null},_S.$metadata$={kind:Ho,simpleName:"Companion",interfaces:[]};var mS=null;function fS(){return null===mS&&new _S,mS}function gS(t){return new ba(ya.emptyMap,t)}function $S(t){var e;AS(),iD.call(this,t),this.mPresenter_0=null,this.schedules_0=ri(),this.courseBlocks_0=ri(),this.scheduleObserver_0=new Ea((e=this,function(t){if(!t.isEmpty())return $a(e,function(t,e){return function(n){return e.schedules_0=t,Ye}}(t,e)),Ye})),this.courseBlockObserver_0=new Ea(function(t){return function(e){if(!e.isEmpty())return $a(t,function(t,e){return function(n){return e.courseBlocks_0=t,Ye}}(e,t)),Ye}}(this)),this.scheduleList_2t3bfp$_0=null,this.courseBlockList_28gzws$_0=null,this.clazzCodeVisible_gvqqxv$_0=!1,this.showPermissionButton_u7g6um$_0=!1,this.entity_pta83x$_0=null}function ES(t,e){return yP(t,e,ty().ASSET_ENTRY,void 0,void 0,void 0,void 0,!0),Ye}function yS(t){return TE().alignTextToStart(t.css),Ye}function bS(t){return function(){var e,n;return ty().copyToClipboard_a4mwiz$(null!=(n=null!=(e=t.entity)?e.clazzCode:null)?n:"",function(t){return function(){return t.showSnackBar_9pu0dj$(t.getString_za3lpa$(2653)),Ye}}(t)),Ye}}function SS(t){return function(n){var i=t.courseBlocks_0;return null==i||i.isEmpty()||t.renderCourseBlocks_0(n,t.courseBlocks_0,void 0,function(t){return function(n){var i,o,r,s,a,c,l,u;switch(n.cbType){case 100:null!=(i=t.mPresenter_0)&&i.handleModuleExpandCollapseClicked_dk05ec$(n);break;case 103:s=t.mPresenter_0,r=e.isType(o=n.assignment,Ha)?o:An(),null!=s&&s.handleClickAssignment_etrmwv$(r);break;case 104:null!=(c=null!=(a=t.mPresenter_0)?a.contentEntryListItemListener:null)&&c.onClickContentEntry_dup0gu$(xr(n.entry));break;case 105:var h;null!=(l=n.courseDiscussion)&&null!=(h=t.mPresenter_0)&&h.handleClickCourseDiscussion_5tqe7d$(l);break;case 102:null!=(u=t.mPresenter_0)&&u.handleClickTextBlock_guofji$(n)}return Ye}}(t)),Ye}}function vS(t){return function(e){var n,i,o,r,s,a,c,l,u,h,d,p;$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n;return O_(e,null!=(n=t.entity)?n.clazzDesc:null,"body1",void 0,!0,void 0,void 0,void 0,void 0,yS),Ye}}(t)),RP(e,"people",fy(t.getString_za3lpa$(2561),[null!=(i=null!=(n=t.entity)?n.numTeachers:null)?i:0,null!=(r=null!=(o=t.entity)?o.numStudents:null)?r:0]),t.getString_za3lpa$(2467)),RP(e,"login",null!=(a=null!=(s=t.entity)?s.clazzCode:null)?a:"",t.getString_za3lpa$(2647),void 0,bS(t)),RP(e,"school",null!=(l=null!=(c=t.entity)?c.clazzSchool:null)?l.schoolName:null),RP(e,"event",_y(null!=(u=t.entity)?u.clazzStartTime:null,null!=(h=t.entity)?h.clazzEndTime:null)),RP(e,"event",null!=(p=null!=(d=t.entity)?d.clazzHolidayCalendar:null)?p.umCalendarName:null);var _=t.schedules_0;return null==_||_.isEmpty()||($P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return TE().defaultDoubleMarginTop(e.css),TP(e,t.getString_za3lpa$(2298)),Ye}}(t)),XA(e,void 0,t.schedules_0,!1)),Fk(e),gP(e,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,SS(t)),Ye}}function CS(t){return function(e){return $P(e,mp(),ap(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i;return Wj(e,null!=(i=null!=(n=t.entity)?n.clazzUid:null)?i:ra,AS().CLAZZ_PICTURE_LOOKUP_ADAPTER,ES),Ye}}(t)),$P(e,mp(),hp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return gP(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,vS(t)),Ye}}(t)),Ye}}function NS(){}function TS(t){AD.call(this,t)}function LS(t,e,n){return function(i){var o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S;if(i.attrs.onClick=function(t){return function(e){return ty().stopEventPropagation_za3rmp$(e),t(e.nativeEvent),Ye}}(t),o=e.cbType,Bo([100,102]).contains_11rb$(o))r=e.cbType,s=e.cbIndentLevel,c=null!=(a=e.cbTitle)?a:"",l=100===e.cbType,u=e.expanded?"expand_less":"expand_more",d=null!=(h=e.cbDescription)?h:"",Nk(i,r,s,c,Cm().clean_pdl1vj$(d),!1,l,u,void 0,void 0,function(t){return function(e){return ty().stopEventPropagation_za3rmp$(e),t(e),Ye}}(t));else switch(o){case 103:HM(i,e,n.systemImpl);break;case 104:if(null!=(p=e.entry)){var v=e;Oj(i,p,n.systemImpl,void 0,!0,void 0,void 0,void 0,v)}break;case 105:_=e.cbType,m=e.cbIndentLevel,$=null!=(g=null!=(f=e.courseDiscussion)?f.courseDiscussionTitle:null)?g:"",E=105===e.cbType,S=null!=(b=null!=(y=e.courseDiscussion)?y.courseDiscussionDesc:null)?b:"",Nk(i,_,m,$,Cm().clean_pdl1vj$(S),!1,E,void 0,void 0,void 0,function(t){return function(e){return ty().stopEventPropagation_za3rmp$(e),t(e),Ye}}(t))}return Ye}}function zS(){RS=this,this.CLAZZ_PICTURE_LOOKUP_ADAPTER=new ZD(OS)}function wS(t,e){Va.call(this),this.addSource_mmltu2$(t.coursePictureDao.findByClazzUidLive_s8cxhz$(e),this)}function OS(t,e){return new wS(t,e)}pS.$metadata$={kind:Vn,simpleName:"ClazzDetailComponent",interfaces:[Fi,iD]},Object.defineProperty($S.prototype,"detailPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty($S.prototype,"scheduleList",{configurable:!0,get:function(){return this.scheduleList_2t3bfp$_0},set:function(t){this.scheduleList_2t3bfp$_0=t;var e=null!=t?t.getData_vux9f0$(0,2147483647):null;null!=e&&e.removeObserver_fujmse$(this.scheduleObserver_0),null!=e&&e.observe_bi6zy5$(this,this.scheduleObserver_0)}}),Object.defineProperty($S.prototype,"courseBlockList",{configurable:!0,get:function(){return this.courseBlockList_28gzws$_0},set:function(t){this.courseBlockList_28gzws$_0=t;var e=null!=t?t.getData_vux9f0$(0,2147483647):null;null!=e&&e.removeObserver_fujmse$(this.courseBlockObserver_0),null!=e&&e.observe_bi6zy5$(this,this.courseBlockObserver_0)}}),Object.defineProperty($S.prototype,"clazzCodeVisible",{configurable:!0,get:function(){return this.clazzCodeVisible_gvqqxv$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.clazzCodeVisible_gvqqxv$_0=e,Ye}))}}),Object.defineProperty($S.prototype,"showPermissionButton",{configurable:!0,get:function(){return this.showPermissionButton_u7g6um$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.showPermissionButton_u7g6um$_0=e,Ye}))}}),Object.defineProperty($S.prototype,"entity",{configurable:!0,get:function(){return this.entity_pta83x$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.entity_pta83x$_0=e,Ye}))}}),$S.prototype.onCreateView=function(){var t;iD.prototype.onCreateView.call(this),this.editButtonMode=wa.FAB,this.mPresenter_0=new Wa(this,this.arguments,this,this.di,this),null!=(t=this.mPresenter_0)&&t.onCreate(fr())},$S.prototype.render_ss14n$=function(t){var e=Sa.Companion.invoke_f6ihu2$(gS),n=e.css;n.unaryPlus_uoyjcc$(TE().defaultPaddingTop),n.unaryPlus_uoyjcc$(TE().contentContainer),gP(e,void 0,void 0,void 0,void 0,Cp(),void 0,void 0,void 0,CS(this)),t.child_30b5ua$(e.create())},NS.$metadata$={kind:$r,simpleName:"CourseBlockWithCompleteListProps",interfaces:[OD]},TS.prototype.renderListItem_f4dmsf$=function(t,e,n){gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,LS(n,e,this))},TS.$metadata$={kind:Vn,simpleName:"CourseBlockWithCompleteListComponent",interfaces:[AD]},$S.prototype.renderCourseBlocks_0=function(t,e,n,i){var o,r,s;void 0===n&&(n=new RD),void 0===i&&(i=null),t.child_up9nw1$(We(TS),(o=e,r=i,s=n,function(t){return t.attrs.entries=o,t.attrs.onEntryClicked=r,t.attrs.createNewItem=s,Ye}))},$S.prototype.onDestroyView=function(){var t;iD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null},wS.prototype.onChanged_11rb$=function(t){this.postValue_11rb$(null!=t?t.coursePictureUri:null)},wS.$metadata$={kind:Vn,interfaces:[Ka,Va]},zS.$metadata$={kind:Ho,simpleName:"Companion",interfaces:[]};var RS=null;function AS(){return null===RS&&new zS,RS}function xS(t){return new ba(ya.emptyMap,t)}function IS(t){var e;iv(),oD.call(this,t),this.mPresenter_0=null,this.nameLabel_0=new Lm(this.getString_za3lpa$(2046)),this.descriptionLabel_0=new Lm(this.getStringWithOptionalLabel_za3lpa$(2047)),this.institutionLabel_0=new Lm(this.getStringWithOptionalLabel_za3lpa$(2885)),this.startDateLabel_0=new Lm(this.getString_za3lpa$(2510)),this.endDateLabel_0=new Lm(this.getString_za3lpa$(2511)),this.timeZoneLabel_0=new Lm(this.getString_za3lpa$(2517)),this.holidayCalenderLabel_0=new Lm(this.getString_za3lpa$(2337)),this.terminologyLabel_0=new Lm(this.getString_za3lpa$(2894)),this.enrolmentPolicyLabel_0=new Lm(this.getString_za3lpa$(2944)),this.scheduleList_0=ri(),this.courseBlockList_0=ri(),this.attandenceEnabled_0=!1,this.scheduleObserver_0=new Ea((e=this,function(t){return $a(e,function(t,e){return function(n){return e.scheduleList_0=t,Ye}}(t,e)),Ye})),this.courseBlockObserver_0=new Ea(function(t){return function(e){return $a(t,function(t,e){return function(n){return e.courseBlockList_0=t,Ye}}(e,t)),Ye}}(this)),this.clazzSchedules_kn09yk$_0=null,this.courseBlocks_rv5xzj$_0=null,this.clazzEndDateError_7n3xwz$_0=null,this.clazzStartDateError_txh6ms$_0=null,this.coursePicture_adqjr5$_0=null,this.fieldsEnabled_tvko1w$_0=!1,this.enrolmentPolicyOptions_sb3xrc$_0=null,this.entity_xql7sd$_0=null}function US(t){return t.key+"="+t.value}function DS(t){return function(e){return $a(t,function(t,e){return function(n){var i;return console.log("ClazzEditComponent: setting course picture uri = "+In(t)),null!=(i=e.coursePicture)&&(i.coursePictureUri=t),Ye}}(e,t)),Ye}}function PS(t,e){return yP(t,e,ty().ASSET_ENTRY,void 0,void 0,void 0,void 0,!0),Ye}function MS(t){return function(e){return e.child_up9nw1$(We(BD),function(t){return function(e){var n;return e.attrs.attachmentUri=null!=(n=t.coursePicture)?n.coursePictureUri:null,e.attrs.onNewImageSelected=DS(t),e.attrs.contentBlock=PS,Ye}}(t)),Ye}}function kS(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.clazzName=t),Ye}}(e,t)),Ye}}function jS(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.clazzDesc=t),Ye}}(e,t)),Ye}}function GS(t){return function(n){return $a(t,function(t,n){return function(i){var o;return null!=(o=n.entity)&&(o.clazzStartTime=e.Long.fromNumber(t.getTime())),n.clazzStartDateError=null,Ye}}(n,t)),Ye}}function qS(t){return function(n){return $a(t,function(t,n){return function(i){var o;return null!=(o=n.entity)&&(o.clazzEndTime=e.Long.fromNumber(t.getTime())),n.clazzEndDateError=null,Ye}}(n,t)),Ye}}function FS(t){return function(e){return $P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s;return n=In(t.startDateLabel_0.text),i=t.startDateLabel_0.error,o=t.startDateLabel_0.errorText,s=dy(null!=(r=t.entity)?r.clazzStartTime:null),Cd(e,n,GS(t),s,void 0,o,i,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"outlined"),Ye}}(t)),$P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s;return n=In(t.endDateLabel_0.text),i=t.endDateLabel_0.error,o=t.endDateLabel_0.errorText,s=dy(null!=(r=t.entity)?r.clazzEndTime:null),Cd(e,n,qS(t),s,void 0,o,i,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"outlined"),Ye}}(t)),Ye}}function BS(t){return function(){return $a(t,function(t){return function(e){return t.showAddEntryOptions=!0,Ye}}(t)),Ye}}function WS(t){return function(e){var n,i,o,r,s;return n=In(t.timeZoneLabel_0.text),o=null!=(i=t.entity)?i.clazzTimeZone:null,r=t.timeZoneLabel_0.error,s=!t.fieldsEnabled,$_(e,n,o,t.timeZoneLabel_0.errorText,void 0,"outlined",void 0,void 0,void 0,s,r,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(){var e;return null!=(e=t.mPresenter_0)&&e.handleClickTimezone(),Ye}}(t)),Ye}}function HS(t){return function(e){var n,i,o,r,s,a;return n=In(t.holidayCalenderLabel_0.text),r=null!=(o=null!=(i=t.entity)?i.holidayCalendar:null)?o.umCalendarName:null,s=t.holidayCalenderLabel_0.error,a=!t.fieldsEnabled,$_(e,n,r,t.holidayCalenderLabel_0.errorText,void 0,"outlined",void 0,void 0,void 0,a,s,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(){var e;return null!=(e=t.mPresenter_0)&&e.handleHolidayCalendarClicked(),Ye}}(t)),Ye}}function VS(t){return function(e){return $a(t,function(t){return function(e){var n;return t.attandenceEnabled_0=!t.attandenceEnabled_0,null!=(n=t.entity)&&(n.clazzFeatures=t.attandenceEnabled_0?tc:ra),Ye}}(t)),Ye}}function KS(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.clazzEnrolmentPolicy=vr(t)),Ye}}(e,t)),Ye}}function XS(t){return function(e){var n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T,L,z,w,O,R,A,x,I;TP(e,t.getString_za3lpa$(2314)),n=In(t.nameLabel_0.text),i=t.nameLabel_0.errorText,r=null!=(o=t.entity)?o.clazzName:null,s=t.nameLabel_0.error,a=!t.fieldsEnabled,$_(e,n,r,i,void 0,"outlined",kS(t),void 0,void 0,a,s,void 0,!0),c=In(t.descriptionLabel_0.text),u=null!=(l=t.entity)?l.clazzDesc:null,h=t.descriptionLabel_0.error,d=!t.fieldsEnabled,$_(e,c,u,t.descriptionLabel_0.errorText,void 0,"outlined",jS(t),void 0,void 0,d,h),p=In(t.institutionLabel_0.text),_=t.institutionLabel_0.errorText,g=null!=(f=null!=(m=t.entity)?m.school:null)?f.schoolName:null,$=t.nameLabel_0.error,$_(e,p,g,_,void 0,"outlined",void 0,void 0,void 0,!t.fieldsEnabled,$,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(){var e;return null!=(e=t.mPresenter_0)&&e.handleClickSchool(),Ye}}(t)),gP(e,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,FS(t)),TP(e,t.getString_za3lpa$(2871));var U=new RD(!0,t.getString_za3lpa$(2872),BS(t));if(null!=(E=t.mPresenter_0)){var D=t;D.renderCourseBlocks_0(e,E,yr(Za(D.courseBlockList_0)),U,function(t){return function(e,n){var i;return null!=(i=t.mPresenter_0)&&i.onItemMove_vux9f0$(e,n),Ye}}(D),function(t){return function(e){var n;return null!=(n=t.mPresenter_0)&&n.onClickEdit_11rb$(e),Ye}}(D))}Fk(e),TP(e,t.getString_za3lpa$(2298));var P,M=new RD(!0,t.getString_za3lpa$(2299),function(t){return function(){var e,n;return null!=(n=null!=(e=t.mPresenter_0)?e.scheduleOneToManyJoinListener:null)&&n.onClickNew(),Ye}}(t));if(null!=(y=t.mPresenter_0)){var k=t;XA(e,y.scheduleOneToManyJoinListener,yr(Za(k.scheduleList_0)),void 0,M,function(t){return function(e){var n,i;return null!=(i=null!=(n=t.mPresenter_0)?n.scheduleOneToManyJoinListener:null)&&i.onClickEdit_11rb$(e),Ye}}(k))}if(Fk(e),gP(e,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return $P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,WS(t)),$P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,HS(t)),Ye}}(t)),TP(e,t.getString_za3lpa$(2899)),$P(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return TE().defaultMarginTop(e.css),mj(e,t.getString_za3lpa$(2068),t.attandenceEnabled_0,VS(t)),Ye}}(t)),b=In(t.enrolmentPolicyLabel_0.text),v=In(null!=(S=t.entity)?S.clazzEnrolmentPolicy:null),N=null!=(C=t.enrolmentPolicyLabel_0.errorText)?C:"",T=t.enrolmentPolicyLabel_0.error,null!=(L=t.enrolmentPolicyOptions)){var j,G=Xo(Ko(L,10));for(j=L.iterator();j.hasNext();){var q=j.next();G.add_11rb$(new qa(q.code.toString(),q.toString()))}P=G}else P=null;return b_(e,b,v,N,void 0,null!=(z=P)?yr(z):null,void 0,KS(t),void 0,void 0,T),w=In(t.terminologyLabel_0.text),A=null!=(R=null!=(O=t.entity)?O.terminology:null)?R.ctTitle:null,x=t.terminologyLabel_0.error,I=!t.fieldsEnabled,$_(e,w,A,t.terminologyLabel_0.errorText,void 0,"outlined",void 0,void 0,void 0,I,x,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(){var e;return null!=(e=t.mPresenter_0)&&e.handleTerminologyClicked(),Ye}}(t)),Ye}}function JS(t){return function(){var e;return null!=(e=t.mPresenter_0)&&e.handleClickAddText(),Ye}}function YS(t){return function(){var e;return null!=(e=t.mPresenter_0)&&e.handleClickAddContent(),Ye}}function QS(t){return function(){var e;return null!=(e=t.mPresenter_0)&&e.handleClickAddAssignment(),Ye}}function ZS(t){return function(){var e;return null!=(e=t.mPresenter_0)&&e.handleClickAddDiscussion(),Ye}}function tv(t){return function(){return $a(t,function(t){return function(e){return t.showAddEntryOptions=!1,Ye}}(t)),Ye}}function ev(){nv=this,this.BLOCK_ICON_MAP=Ia([ni(100,"folder"),ni(103,"assignment_turned_in"),ni(104,"smart_display"),ni(102,"title"),ni(105,"forum")])}$S.$metadata$={kind:Vn,simpleName:"ClazzDetailOverviewComponent",interfaces:[Hi,iD]},Object.defineProperty(IS.prototype,"mEditPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(IS.prototype,"clazzSchedules",{configurable:!0,get:function(){return this.clazzSchedules_kn09yk$_0},set:function(t){var e;null!=(e=this.clazzSchedules_kn09yk$_0)&&e.removeObserver_fujmse$(this.scheduleObserver_0),this.clazzSchedules_kn09yk$_0=t,null!=t&&t.observe_bi6zy5$(this,this.scheduleObserver_0)}}),Object.defineProperty(IS.prototype,"courseBlocks",{configurable:!0,get:function(){return this.courseBlocks_rv5xzj$_0},set:function(t){var e;null!=(e=this.courseBlocks_rv5xzj$_0)&&e.removeObserver_fujmse$(this.courseBlockObserver_0),this.courseBlocks_rv5xzj$_0=t,null!=t&&t.observe_bi6zy5$(this,this.courseBlockObserver_0)}}),Object.defineProperty(IS.prototype,"clazzEndDateError",{configurable:!0,get:function(){return this.clazzEndDateError_7n3xwz$_0},set:function(t){var e,n;$a(this,(e=this,n=t,function(t){return e.endDateLabel_0=e.endDateLabel_0.copy_d8n4vg$(void 0,n),Ye}))}}),Object.defineProperty(IS.prototype,"clazzStartDateError",{configurable:!0,get:function(){return this.clazzStartDateError_txh6ms$_0},set:function(t){var e,n;$a(this,(e=this,n=t,function(t){return e.startDateLabel_0=e.startDateLabel_0.copy_d8n4vg$(void 0,n),Ye}))}}),Object.defineProperty(IS.prototype,"coursePicture",{configurable:!0,get:function(){return this.coursePicture_adqjr5$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.coursePicture_adqjr5$_0=e,Ye}))}}),Object.defineProperty(IS.prototype,"fieldsEnabled",{configurable:!0,get:function(){return this.fieldsEnabled_tvko1w$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.fieldsEnabled_tvko1w$_0=e,Ye}))}}),Object.defineProperty(IS.prototype,"enrolmentPolicyOptions",{configurable:!0,get:function(){return this.enrolmentPolicyOptions_sb3xrc$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.enrolmentPolicyOptions_sb3xrc$_0=e,Ye}))}}),Object.defineProperty(IS.prototype,"entity",{configurable:!0,get:function(){return this.entity_xql7sd$_0},set:function(t){var e,n;null!=(null!=t?t.clazzName:null)&&this.updateUiWithStateChangeDelay_n53o35$(void 0,(e=t,n=this,function(){return n.ustadComponentTitle=e.clazzName,Ye})),$a(this,function(t,e){return function(n){return Xa.Napier.d_82mfvz$("ClazzEdit: entity set to name="+In(null!=t?t.clazzName:null)),e.entity_xql7sd$_0=t,e.attandenceEnabled_0=!0===(null!=t?Ja(t):null),Ye}}(t,this))}}),IS.prototype.onCreateView=function(){var t;oD.prototype.onCreateView.call(this),this.setEditTitle_vux9f0$(2924,2926),this.mPresenter_0=new Ya(this,this.arguments,this,this.di,this);var e=this.navController.currentBackStackEntry,n=null!=e?Qa(e):null,i=my(this.navController);Xa.Napier.d_82mfvz$("ClazzEdit: backStackUri="+In(n)+" state = "+ma(i.entries,void 0,void 0,void 0,void 0,void 0,US)),null!=(t=this.mPresenter_0)&&t.onCreate(i)},IS.prototype.render_ss14n$=function(t){var e,n=Sa.Companion.invoke_f6ihu2$(xS),i=n.css;i.unaryPlus_uoyjcc$(TE().contentContainer),i.unaryPlus_uoyjcc$(TE().defaultPaddingTop),this.renderAddContentOptionsDialog_0(n),gP(n,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,(e=this,function(t){return $P(t,mp(),ap(),void 0,void 0,void 0,void 0,void 0,MS(e)),$P(t,mp(),hp(),void 0,void 0,void 0,void 0,void 0,XS(e)),Ye})),t.child_30b5ua$(n.create())},IS.prototype.renderAddContentOptionsDialog_0=function(t){if(this.showAddEntryOptions){var n=Bo([new kU("apps",2874,2875,(i=this,function(){var t;return null!=(t=i.mPresenter_0)&&t.handleClickAddModule(),Ye})),new kU("text_snippet",2501,2876,JS(this)),new kU("library_books",2539,2877,YS(this)),new kU("assignment",2526,2878,QS(this)),new kU("forum",2879,2880,ZS(this))]);HU(t,this.systemImpl,n,e.Long.fromNumber((new Date).getTime()),void 0,tv(this))}var i},IS.prototype.onDestroyView=function(){var t;oD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null},ev.$metadata$={kind:Ho,simpleName:"Companion",interfaces:[]};var nv=null;function iv(){return null===nv&&new ev,nv}function ov(){}function rv(t,e,n){void 0===e&&(e=!0),this.titleId=t,this.show=e,this.onClick=n}function sv(t){AD.call(this,t),this.menuOptions_0=Yo(),this.showPopOverOptions_0=!1,this.anchorElement_0=null}function av(t){return function(){return $a(t,function(t){return function(e){return t.showPopOverOptions_0=!1,t.anchorElement_0=null,Ye}}(t)),Ye}}function cv(t,e){return function(n){return t.onClick(n),$a(e,function(t){return function(e){return t.showPopOverOptions_0=!1,t.anchorElement_0=null,Ye}}(e)),Ye}}function lv(t,e){return function(n){return t.onClickHide_11rb$(e),Ye}}function uv(t,e){return function(n){return t.onClickHide_11rb$(e),Ye}}function hv(t,e){return function(n){return t.onClickIndent_11rb$(e),Ye}}function dv(t,e){return function(n){return t.onClickUnIndent_11rb$(e),Ye}}function pv(t,e){return function(n){return t.onClickDelete_11rb$(e),Ye}}function _v(t,e,n){return function(i){if(n.menuOptions_0=ec([new rv(2111,void 0,lv(t,e)),new rv(2112,void 0,uv(t,e)),new rv(2883,void 0,hv(t,e)),new rv(2884,void 0,dv(t,e)),new rv(2020,void 0,pv(t,e))]),100===e.cbType){var o,r=n.menuOptions_0;t:do{var s;for(s=r.iterator();s.hasNext();){var a=s.next();if(2883===a.titleId){o=a;break t}}throw new Vo("Collection contains no element matching the predicate.")}while(0);o.show=!1;var c,l=n.menuOptions_0;t:do{var u;for(u=l.iterator();u.hasNext();){var h=u.next();if(2884===h.titleId){c=h;break t}}throw new Vo("Collection contains no element matching the predicate.")}while(0);c.show=!1}if(2===e.cbIndentLevel){var d,p=n.menuOptions_0;t:do{var _;for(_=p.iterator();_.hasNext();){var m=_.next();if(2883===m.titleId){d=m;break t}}throw new Vo("Collection contains no element matching the predicate.")}while(0);d.show=!1}if(0===e.cbIndentLevel){var f,g=n.menuOptions_0;t:do{var $;for($=g.iterator();$.hasNext();){var E=$.next();if(2884===E.titleId){f=E;break t}}throw new Vo("Collection contains no element matching the predicate.")}while(0);f.show=!1}if(e.cbHidden){var y,b=n.menuOptions_0;t:do{var S;for(S=b.iterator();S.hasNext();){var v=S.next();if(2111===v.titleId){y=v;break t}}throw new Vo("Collection contains no element matching the predicate.")}while(0);y.show=!1;var C,N=n.menuOptions_0;t:do{var T;for(T=N.iterator();T.hasNext();){var L=T.next();if(2112===L.titleId){C=L;break t}}throw new Vo("Collection contains no element matching the predicate.")}while(0);C.show=!0}if(!e.cbHidden){var z,w=n.menuOptions_0;t:do{var O;for(O=w.iterator();O.hasNext();){var R=O.next();if(2111===R.titleId){z=R;break t}}throw new Vo("Collection contains no element matching the predicate.")}while(0);z.show=!0;var A,x=n.menuOptions_0;t:do{var I;for(I=x.iterator();I.hasNext();){var U=I.next();if(2112===U.titleId){A=U;break t}}throw new Vo("Collection contains no element matching the predicate.")}while(0);A.show=!1}return $a(n,function(t,e){return function(n){return e.anchorElement_0=document.getElementById(t.cbUid.toString()),e.showPopOverOptions_0=!0,Ye}}(e,n)),Ye}}function mv(t,n,i){return function(o){var r,s,a,c,l,u,h,d;o.attrs.onClick=function(t){return function(e){return ty().stopEventPropagation_za3rmp$(e),t(e.nativeEvent),Ye}}(t);var p=e.isType(r=n.props.presenter,Ya)?r:An();return s=i.cbType,a=i.cbIndentLevel,c=i.cbTitle,u=null!=(l=i.cbDescription)?l:"",h=Cm().clean_pdl1vj$(u),d=i.cbUid.toString(),Nk(o,s,a,c,h,!0,!0,"more_vert",i.cbHidden,d,_v(p,i,n)),Ye}}function fv(t){return new ba(ya.emptyMap,t)}function gv(t){oD.call(this,t),this.mPresenter_0=null,this.startDateLabel_0=new Lm(this.getString_za3lpa$(2510)),this.endDateLabel_0=new Lm(this.getString_za3lpa$(2511)),this.roleLabel_0=new Lm(this.getString_za3lpa$(2454),void 0,void 0,"role-label"),this.outcomeLabel_0=new Lm(this.getString_za3lpa$(2385),void 0,void 0,"outcome-label"),this.leavingLabel_0=new Lm(this.getString_za3lpa$(2378)),this.roleList_vtcay$_0=null,this.statusList_pe73pi$_0=null,this.startDateErrorWithDate_86329q$_0=null,this.endDateError_7c7pzp$_0=null,this.roleSelectionError_n9ftzc$_0=null,this.fieldsEnabled_2680se$_0=!1,this.entity_rrsyp3$_0=null}function $v(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.clazzEnrolmentRole=vr(t)),Ye}}(e,t)),Ye}}function Ev(t){return TE().alignTextToStart(t.css),Ye}function yv(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.clazzEnrolmentOutcome=vr(t)),Ye}}(e,t)),Ye}}function bv(t){return function(e){return $P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a,c,l,u,h;if(n=In(t.roleLabel_0.text),o=In(null!=(i=t.entity)?i.clazzEnrolmentRole:null),s=null!=(r=t.roleLabel_0.errorText)?r:"",null!=(a=t.roleList)){var d,p=Xo(Ko(a,10));for(d=a.iterator();d.hasNext();){var _=d.next();p.add_11rb$(new qa(_.optionId.toString(),_.toString()))}h=p}else h=null;return l=null!=(c=h)?yr(c):null,u=t.roleLabel_0.error,b_(e,n,o,s,void 0,l,"outlined",$v(t),void 0,void 0,u,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Ev),Ye}}(t)),$P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a,c,l,u,h;if(n=In(t.outcomeLabel_0.text),o=In(null!=(i=t.entity)?i.clazzEnrolmentOutcome:null),s=null!=(r=t.outcomeLabel_0.errorText)?r:"",null!=(a=t.statusList)){var d,p=Xo(Ko(a,10));for(d=a.iterator();d.hasNext();){var _=d.next();p.add_11rb$(new qa(_.optionId.toString(),_.toString()))}h=p}else h=null;return l=null!=(c=h)?yr(c):null,u=t.outcomeLabel_0.error,b_(e,n,o,s,void 0,l,"outlined",yv(t),void 0,void 0,u),Ye}}(t)),Ye}}function Sv(t){return function(n){return $a(t,function(t,n){return function(i){var o;return null!=(o=n.entity)&&(o.clazzEnrolmentDateJoined=e.Long.fromNumber(t.getTime())),n.startDateErrorWithDate=null,Ye}}(n,t)),Ye}}function vv(t){return function(n){return $a(t,function(t,n){return function(i){var o;return null!=(o=n.entity)&&(o.clazzEnrolmentDateLeft=e.Long.fromNumber(t.getTime())),n.endDateError=null,Ye}}(n,t)),Ye}}function Cv(t){return function(e){return $P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s;return n=In(t.startDateLabel_0.text),i=t.startDateLabel_0.error,o=t.startDateLabel_0.errorText,s=dy(null!=(r=t.entity)?r.clazzEnrolmentDateJoined:null),Cd(e,n,Sv(t),s,void 0,o,i,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"outlined"),Ye}}(t)),$P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s;return n=In(t.endDateLabel_0.text),i=t.endDateLabel_0.error,o=t.endDateLabel_0.errorText,s=dy(null!=(r=t.entity)?r.clazzEnrolmentDateLeft:null),Cd(e,n,vv(t),s,void 0,o,i,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"outlined"),Ye}}(t)),Ye}}function Nv(t){return function(e){return $a(t,function(t,e){return function(n){var i,o;return null!=(o=null!=(i=e.entity)?i.leavingReason:null)&&(o.leavingReasonTitle=t),Ye}}(e,t)),Ye}}function Tv(t,e){return function(n){return n.attrs.onClick=function(t,e){return function(n){var i;return t&&null!=(i=e.mPresenter_0)&&i.handleReasonLeavingClicked(),Ye}}(t,e),TE().defaultFullWidth(n.css),Ye}}function Lv(t){return function(e){return $P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a,c;gP(e,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,bv(t)),gP(e,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,Cv(t));var l=!t.fieldsEnabled||200===(null!=(n=t.entity)?n.clazzEnrolmentOutcome:null);return i=In(t.leavingLabel_0.text),o=t.leavingLabel_0.errorText,a=null!=(s=null!=(r=t.entity)?r.leavingReason:null)?s.leavingReasonTitle:null,c=t.leavingLabel_0.error,$_(e,i,a,o,void 0,"outlined",Nv(t),void 0,void 0,l,c,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Tv(l,t)),Ye}}(t)),Ye}}function zv(t){uD.call(this,t),this.mPresenter_0=null,this.selectedPersonUid_0=ra,this.headerText_0="",this.person_z388f3$_0=null,this.clazz_ow1hty$_0=null,this.enrolmentList_5ftll0$_0=null,this.isStudentEnrolmentEditVisible_f04g2f$_0=!1,this.isTeacherEnrolmentEditVisible_ajote$_0=!1}function wv(t){return function(e){return tj(e,"person",t.getString_za3lpa$(2381),lp(),rp(),!0,void 0,void 0,void 0,function(t){return function(){var e;return null!=(e=t.mPresenter_0)&&e.handleClickProfile_s8cxhz$(t.selectedPersonUid_0),Ye}}(t)),Ye}}function Ov(t){return function(e){return $P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,wv(t)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return TP(e,t.headerText_0,"h6"),Ye}}(t)),Ye}}function Rv(t,e){return function(n){var i,o,r,s=In(null!=(i=dy(t.clazzEnrolmentDateJoined))?iy(i):null)+" - "+(null!=(r=null!=(o=dy(t.clazzEnrolmentDateLeft,!0))?iy(o):null)?r:e.getString_za3lpa$(2307));return Ok(n,sc(t,n,e.systemImpl)+" - "+ac(t,n,e.systemImpl),"edit",e.isTeacherEnrolmentEditVisible||e.isStudentEnrolmentEditVisible,s,function(t,e){return function(n){var i;return null!=(i=t.mPresenter_0)&&i.handleClickClazzEnrolment_oewacg$(e),Ye}}(e,t)),Ye}}function Av(t){return new ba(ya.emptyMap,t)}function xv(t){uD.call(this,t),this.mPresenter_0=null,this.newClazzListOptionVisible_5q0u4v$_0=!1}function Iv(t,e){return yP(t,e,"assets/entry_placeholder.jpeg",void 0,void 0,void 0,void 0,!0,TE().name+"-clazzItemClass"),Ye}function Uv(t){return Ns(t.css,new ai("1.2em")),Ye}function Dv(t){return TE().clazzListRoleChip(t.css),t.attrs.icon=Rp(t,"badge",void 0,void 0,void 0,Uv),Ye}function Pv(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().alignTextToStart),TE().maxLines_th7wno$(e,1),Ye}function Mv(t){return TE().gridListSecondaryItemIcons(t.css),Ye}function kv(t){return Rp(t,"people","inherit",void 0,void 0,Mv),Ye}function jv(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().alignTextToStart),e.unaryPlus_uoyjcc$(TE().gridListSecondaryItemDesc),Ye}function Gv(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().alignTextToStart),e.unaryPlus_uoyjcc$(TE().gridListSecondaryItemDesc),Ye}function qv(t,e){return function(n){return $P(n,op(),void 0,void 0,void 0,void 0,void 0,void 0,kv),$P(n,lp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t,e){return function(n){return O_(n,fy(t.getString_za3lpa$(2561),[e.numTeachers,e.numStudents]),void 0,void 0,void 0,void 0,void 0,void 0,void 0,jv),Ye}}(t,e)),$P(n,op(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return xP(e,t.attendanceAverage),Ye}}(e)),$P(n,ap(),void 0,void 0,void 0,void 0,void 0,void 0,function(t,e){return function(n){return O_(n,fy(t.getString_za3lpa$(2572),[lc(e.attendanceAverage>=0?100*e.attendanceAverage:0)]),void 0,void 0,void 0,void 0,void 0,void 0,void 0,Gv),Ye}}(t,e)),Ye}}function Fv(t){return function(){return $a(t,function(t){return function(e){return t.showAddEntryOptions=!1,Ye}}(t)),Ye}}function Bv(t){return new ba(ya.emptyMap,t)}function Wv(t){var e;oD.call(this,t),this.mPresenter_0=null,this.disablePrevBtn_0=!1,this.disableNextBtn_0=!1,this.activeLogIndex_0=0,this.recordWithPersonList=ri(),this.clazzLogAttendanceRecordListObserver_0=new Ea((e=this,function(t){return $a(e,function(t,e){return function(n){return e.recordWithPersonList=t,Ye}}(t,e)),Ye})),this.clazzLogAttendanceRecordList_a5bzz1$_0=null,this.clazzLogTimezone_xca5no$_0=null,this.clazzLogsList_8106pa$_0=null,this.fieldsEnabled_cf6c2d$_0=!1,this.entity_x5l2g2$_0=null}function Hv(t){return function(e){return e.attrs.onClick=function(t){return function(e,n){return ty().stopEventPropagation_za3rmp$(e),t.handleOnDateChange_0(!1),Ye}}(t),Rp(e,"arrow_back_ios"),Ye}}function Vv(t){return cs(t.css,C_(1)),Ye}function Kv(t){return function(e){return e.attrs.onClick=function(t){return function(e,n){return ty().stopEventPropagation_za3rmp$(e),t.handleOnDateChange_0(!0),Ye}}(t),Rp(e,"arrow_forward_ios"),Ye}}function Xv(t){return function(e){return $P(e,op(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return TE().alignStartItems(e.css),z_(e,0,"medium",void 0,void 0,t.disablePrevBtn_0,void 0,Hv(t)),Ye}}(t)),$P(e,pp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i;return e.css.unaryPlus_uoyjcc$(TE().alignCenterItems),O_(e,null!=(i=dy(null!=(n=t.entity)?n.logDate:null))?ny(i,VE,t.clazzLogTimezone):null,"h6",void 0,void 0,void 0,void 0,void 0,void 0,Vv),Ye}}(t)),$P(e,op(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return TE().alignEndItems(e.css),z_(e,0,"medium",void 0,void 0,t.disableNextBtn_0,void 0,Kv(t)),Ye}}(t)),Ye}}function Jv(t){return function(e){return e.attrs.onClick=function(t){return function(e){var n;return ty().stopEventPropagation_za3rmp$(e),null!=(n=t.mPresenter_0)&&n.handleClickMarkAll_za3lpa$(1),Ye}}(t),UP(e,t.getString_za3lpa$(2305),"library_add_check"),Ye}}function Yv(t){return function(e){return e.attrs.onClick=function(t){return function(e){var n;return ty().stopEventPropagation_za3rmp$(e),null!=(n=t.mPresenter_0)&&n.handleClickMarkAll_za3lpa$(2),Ye}}(t),UP(e,t.getString_za3lpa$(2306),"content_copy"),Ye}}function Qv(t){return TE().alignTextToStart(t.css),Ye}function Zv(t,e,n){return function(i){var o=_c(i);return $a(e,function(t,e,n,i){return function(o){return n.recordWithPersonList.get_za3lpa$(i).attendanceStatus=t.attendanceStatus===e?0:e,Ye}}(t,o,e,n)),Ye}}function tC(t){return Rp(t,"check"),Ye}function eC(t){return Rp(t,"close"),Ye}function nC(t){return Rp(t,"query_builder"),Ye}function iC(t,e,n){return function(i){return L_(i,void 0,void 0,ty().isMobile()?"small":"medium",void 0,void 0,void 0,Zv(t,e,n),function(t,e){return function(n){var i=1===t.attendanceStatus,o=2===t.attendanceStatus,r=4===t.attendanceStatus;return z_(n,1,void 0,e.setSelectedColor_0(i),i,void 0,void 0,tC),z_(n,2,void 0,e.setSelectedColor_0(o),o,void 0,void 0,eC),z_(n,4,void 0,e.setSelectedColor_0(r),r,void 0,void 0,nC),Ye}}(t,e)),Ye}}function oC(t,e,n){return function(i){return $P(i,sp(),op(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i;return SP(e,null!=(i=null!=(n=t.person)?n.personUid:null)?i:ra,"person"),Ye}}(t)),$P(i,lp(),hp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i;return O_(e,null!=(i=null!=(n=t.person)?n.fullName():null)?i:"","h6",void 0,void 0,void 0,void 0,void 0,void 0,Qv),Ye}}(t)),$P(i,sp(),void 0,void 0,void 0,void 0,void 0,void 0,iC(t,e,n)),Ye}}function rC(t,e,n){return function(i){return gP(i,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,oC(t,e,n)),Ye}}function sC(t){return function(e){return TE().tabsContainer(e.css),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){qp(e,!0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Jv(t)),qp(e,!0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Yv(t)),Fk(e);var n,i,o=0;for(n=t.recordWithPersonList.iterator();n.hasNext();)qp(e,!0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,rC(n.next(),t,Js((o=(i=o)+1|0,i))));return Ye}}(t)),Ye}}function aC(t){return function(e){return gP(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Xv(t)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return TE().defaultMarginTop(e.css),gP(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,sC(t)),Ye}}(t)),Ye}}function cC(t){return new ba(ya.emptyMap,t)}function lC(t){oD.call(this,t),this.mPresenter_0=null,this.dateLabel_0=new Lm(this.getString_za3lpa$(2421)),this.timeLabel_0=new Lm(this.getString_za3lpa$(2611)),this.date_j5o99g$_0=ra,this.time_iwql2b$_0=ra,this.dateError_b6b7w0$_0=null,this.timeZone_33z1u9$_0=null,this.timeError_fhunbj$_0=null,this.fieldsEnabled_rn1jqa$_0=!1,this.dateFieldValue=e.Long.fromNumber((new Date).getTime()),this.timeFieldValue=e.Long.fromNumber((new Date).getTime()),this.entity_7dq5qf$_0=null}function uC(t){return function(n){return $a(t,function(t,n){return function(i){return n.date=e.Long.fromNumber(t.getTime()),n.dateFieldValue=e.Long.fromNumber(t.getTime()),n.dateError=null,Ye}}(n,t)),Ye}}function hC(t){return function(n){return $a(t,function(t,n){return function(i){return n.time=ly(t),n.timeFieldValue=e.Long.fromNumber(t.getTime()),n.timeError=null,Ye}}(n,t)),Ye}}function dC(t){return function(e){return $P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r;return n=In(t.dateLabel_0.text),i=t.dateLabel_0.error,o=t.dateLabel_0.errorText,r=dy(t.dateFieldValue),Cd(e,n,uC(t),r,KE,o,i,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"outlined"),Ye}}(t)),$P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r;return n=In(t.timeLabel_0.text),i=t.timeLabel_0.error,o=t.timeLabel_0.errorText,r=dy(t.timeFieldValue),Nd(e,n,hC(t),r,void 0,o,i,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"outlined"),Ye}}(t)),Ye}}function pC(t){return new ba(ya.emptyMap,t)}function _C(t){zC(),uD.call(this,t),this.mPresenter_0=null,this.selectedFilter=$c(yr(zC().VIEW_ID_TO_NUMDAYS_MAP.entries)).key,this.graphRawData_0=[],this.clazzTimeZone_3cql06$_0=null,this.graphDataObserver_0=new Ea(wC),this.graphData_hgajwx$_0=null,this.recordAttendanceOptions_xg4knx$_0=null}function mC(t){return Ye}function fC(t,e){return function(n){var i;return $a(e,function(t,e){return function(n){return e.selectedFilter=t.key,Ye}}(t,e)),null!=(i=e.mPresenter_0)&&i.handleClickGraphDuration_za3lpa$(t.value),Ye}}function gC(t){var e,n=t.css;return e=C_(1),cs(n,void 0,C_(1),void 0,e),Ye}function $C(t){return function(e){return 0!==t.graphRawData_0.length&&$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return QL(e,t.graphRawData_0,void 0,void 0,void 0,void 0,void 0,mC),Ye}}(t)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,Yn.row,function(t){return function(e){var n,i,o,r=e.css;for(r.unaryPlus_uoyjcc$(TE().alignCenterItems),Qr(r,C_(2)),n=zC().VIEW_ID_TO_NUMDAYS_MAP.entries.iterator();n.hasNext();){var s=n.next();i=t.getString_za3lpa$(s.key),o=s.key===t.selectedFilter?"primary":"default",ld(e,i,void 0,fC(s,t),void 0,void 0,o,void 0,void 0,void 0,gC)}return Ye}}(t)),Ye}}function EC(t){return CP(t,"calendar_today",void 0,void 0,void 0,void 0,void 0,"circular"),Ye}function yC(t){return TE().alignTextToStart(t.css),Ye}function bC(t){return TE().alignTextToStart(t.css),Ye}function SC(t,e,n){return function(i){return $P(i,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t,e){return function(n){return O_(n,sy(new Date(t.logDate),e.clazzTimeZone),"body1",void 0,void 0,void 0,void 0,void 0,void 0,yC),Ye}}(t,e)),$P(i,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t,e,n){return function(i){var o=i.css;return Zn(o,Qn.flex),kr(o,Br(5)),jr(o,Br(5)),ti(o,Yn.row),n.createAttendanceIndicator_0(i,t.clazzLogNumPresent/e,Fr.Companion.green),n.createAttendanceIndicator_0(i,t.clazzLogNumPartial/e,Fr.Companion.orange),n.createAttendanceIndicator_0(i,t.clazzLogNumAbsent/e,Fr.Companion.red),Ye}}(t,n,e)),$P(i,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t,e){return function(n){return O_(n,e.makeStatus_0(t),"body2",void 0,void 0,void 0,void 0,void 0,void 0,bC),Ye}}(t,e)),Ye}}function vC(t,e,n){return function(i){return $P(i,sp(),op(),void 0,void 0,void 0,void 0,void 0,EC),$P(i,dp(),_p(),void 0,void 0,void 0,void 0,void 0,function(t,e,n){return function(i){return gP(i,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,SC(t,e,n)),Ye}}(t,e,n)),Ye}}function CC(t,e){return function(){var n;return null!=(n=t.mPresenter_0)&&n.handleClickRecordAttendance_ng2yy3$(e),Ye}}function NC(t){return function(){return $a(t,function(t){return function(e){return t.showAddEntryOptions=!1,Ye}}(t)),Ye}}function TC(){LC=this,this.VIEW_ID_TO_NUMDAYS_MAP=Ia([ni(2303,7),ni(2355,30),ni(2419,90)])}ov.$metadata$={kind:$r,simpleName:"CourseBlockListProps",interfaces:[OD]},rv.$metadata$={kind:Vn,simpleName:"CourseOption",interfaces:[]},rv.prototype.component1=function(){return this.titleId},rv.prototype.component2=function(){return this.show},rv.prototype.component3=function(){return this.onClick},rv.prototype.copy_pqh3w2$=function(t,e,n){return new rv(void 0===t?this.titleId:t,void 0===e?this.show:e,void 0===n?this.onClick:n)},rv.prototype.toString=function(){return"CourseOption(titleId="+e.toString(this.titleId)+", show="+e.toString(this.show)+", onClick="+e.toString(this.onClick)+")"},rv.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*t+e.hashCode(this.titleId)|0)+e.hashCode(this.show)|0)+e.hashCode(this.onClick)|0},rv.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.titleId,t.titleId)&&e.equals(this.show,t.show)&&e.equals(this.onClick,t.onClick)},sv.prototype.renderMoreDialogOptions_ss14n$=function(t){var e;Hp(t,this.showPopOverOptions_0,this.anchorElement_0,av(this),void 0,void 0,(e=this,function(t){var n,i,o=e.menuOptions_0,r=Yo();for(n=o.iterator();n.hasNext();){var s=n.next();s.show&&r.add_11rb$(s)}for(i=r.iterator();i.hasNext();){var a=i.next(),c=e;Vp(t," "+c.getString_za3lpa$(a.titleId)+" ",void 0,void 0,void 0,void 0,void 0,void 0,cv(a,c))}return Ye}))},sv.prototype.renderListItem_f4dmsf$=function(t,e,n){gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,mv(n,this,e))},sv.$metadata$={kind:Vn,simpleName:"CourseBlockListComponent",interfaces:[AD]},IS.prototype.renderCourseBlocks_0=function(t,e,n,i,o,r){var s,a,c,l,u;void 0===i&&(i=new RD),void 0===r&&(r=null),t.child_up9nw1$(We(sv),(s=n,a=e,c=r,l=i,u=o,function(t){return t.attrs.entries=s,t.attrs.presenter=a,t.attrs.draggable=!0,t.attrs.onEntryClicked=c,t.attrs.createNewItem=l,t.attrs.onSortEnd=u,Ye}))},IS.$metadata$={kind:Vn,simpleName:"ClazzEditComponent",interfaces:[Bi,oD]},Object.defineProperty(gv.prototype,"mEditPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(gv.prototype,"roleList",{configurable:!0,get:function(){return this.roleList_vtcay$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.roleList_vtcay$_0=e,Ye}))}}),Object.defineProperty(gv.prototype,"statusList",{configurable:!0,get:function(){return this.statusList_pe73pi$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.statusList_pe73pi$_0=e,Ye}))}}),Object.defineProperty(gv.prototype,"startDateErrorWithDate",{configurable:!0,get:function(){return this.startDateErrorWithDate_86329q$_0},set:function(t){var e,n,i,o;this.startDateErrorWithDate_86329q$_0=t,n=!0===(null!=(e=null!=t?t.first:null)?oi(e,"%1$s"):null)?da(t.first,"%1$s",iy(new Date(t.second))):null!=t?t.first:null,$a(this,(i=this,o=n,function(t){return i.startDateLabel_0=i.startDateLabel_0.copy_d8n4vg$(void 0,o),Ye}))}}),Object.defineProperty(gv.prototype,"endDateError",{configurable:!0,get:function(){return this.endDateError_7c7pzp$_0},set:function(t){var e,n;$a(this,(e=this,n=t,function(t){return e.endDateLabel_0=e.endDateLabel_0.copy_d8n4vg$(void 0,n),Ye}))}}),Object.defineProperty(gv.prototype,"roleSelectionError",{configurable:!0,get:function(){return this.roleSelectionError_n9ftzc$_0},set:function(t){var e,n;$a(this,(e=this,n=t,function(t){return e.roleLabel_0=e.roleLabel_0.copy_d8n4vg$(void 0,n),Ye}))}}),Object.defineProperty(gv.prototype,"fieldsEnabled",{configurable:!0,get:function(){return this.fieldsEnabled_2680se$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.fieldsEnabled_2680se$_0=e,Ye}))}}),Object.defineProperty(gv.prototype,"entity",{configurable:!0,get:function(){return this.entity_rrsyp3$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.entity_rrsyp3$_0=e,Ye}))}}),gv.prototype.onCreateView=function(){var t;oD.prototype.onCreateView.call(this),this.ustadComponentTitle=this.getString_za3lpa$(2374),this.mPresenter_0=new nc(this,this.arguments,this,this,this.di),null!=(t=this.mPresenter_0)&&t.onCreate(my(this.navController))},gv.prototype.render_ss14n$=function(t){var e=Sa.Companion.invoke_f6ihu2$(fv);e.css.unaryPlus_uoyjcc$(TE().fieldsOnlyFormScreen),gP(e,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,Lv(this)),t.child_30b5ua$(e.create())},gv.prototype.onDestroyView=function(){var t;oD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null},gv.$metadata$={kind:Vn,simpleName:"ClazzEnrolmentEditComponent",interfaces:[Zi,oD]},Object.defineProperty(zv.prototype,"displayTypeRepo",{configurable:!0,get:function(){var t;return null!=(t=this.dbRepo)?t.clazzEnrolmentDao:null}}),Object.defineProperty(zv.prototype,"listPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(zv.prototype,"person",{configurable:!0,get:function(){return this.person_z388f3$_0},set:function(t){this.person_z388f3$_0=t,this.ustadComponentTitle=null!=t?ic(t):null}}),Object.defineProperty(zv.prototype,"clazz",{configurable:!0,get:function(){return this.clazz_ow1hty$_0},set:function(t){var e,n,i;this.clazz_ow1hty$_0=t;var o,r,s=fy(this.getString_za3lpa$(2386),[null!=(n=null!=(e=this.person)?ic(e):null)?n:"",null!=(i=null!=t?t.clazzName:null)?i:""]);$a(this,(o=s,r=this,function(t){return r.headerText_0=o,Ye}))}}),Object.defineProperty(zv.prototype,"enrolmentList",{configurable:!0,get:function(){return this.enrolmentList_5ftll0$_0},set:function(t){var e,n;this.enrolmentList_5ftll0$_0=t,$a(this,(e=t,n=this,function(t){return n.list=e,Ye}))}}),Object.defineProperty(zv.prototype,"isStudentEnrolmentEditVisible",{configurable:!0,get:function(){return this.isStudentEnrolmentEditVisible_f04g2f$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.isStudentEnrolmentEditVisible_f04g2f$_0=e,Ye}))}}),Object.defineProperty(zv.prototype,"isTeacherEnrolmentEditVisible",{configurable:!0,get:function(){return this.isTeacherEnrolmentEditVisible_ajote$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.isTeacherEnrolmentEditVisible_ajote$_0=e,Ye}))}}),zv.prototype.handleClickEntry_11rc$=function(t){},zv.prototype.onCreateView=function(){var t,e,n,i;uD.prototype.onCreateView.call(this),null!=(t=this.fabManager)&&(t.visible=!1),this.selectedPersonUid_0=null!=(n=null!=(e=this.arguments.get_11rb$(xa.Companion.ARG_PERSON_UID))?oc(e):null)?n:ra,this.mPresenter_0=new rc(this,this.arguments,this,this.di,this),null!=(i=this.mPresenter_0)&&i.onCreate(fr())},zv.prototype.renderListHeaderView_ss14n$=function(t){gP(t,void 0,void 0,void 0,void 0,void 0,yp(),void 0,void 0,Ov(this))},zv.prototype.renderListItem_js0tu9$=function(t,e){gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Rv(e,this))},zv.prototype.onDestroyView=function(){var t;uD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null},zv.$metadata$={kind:Vn,simpleName:"ClazzEnrolmentListComponent",interfaces:[fo,uD]},Object.defineProperty(xv.prototype,"displayTypeRepo",{configurable:!0,get:function(){var t;return null!=(t=this.dbRepo)?t.clazzDao:null}}),Object.defineProperty(xv.prototype,"listPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),xv.prototype.onCreateView=function(){var t,e;uD.prototype.onCreateView.call(this),null!=(t=this.fabManager)&&(t.text=this.getString_za3lpa$(2911)),this.ustadComponentTitle=this.getString_za3lpa$(2910),this.linearLayout=!1,this.addNewEntryText=this.getString_za3lpa$(2319),this.mPresenter_0=new cc(this,this.arguments,this,this.di,this),null!=(e=this.mPresenter_0)&&e.onCreate(fr())},xv.prototype.renderListItem_js0tu9$=function(t,e){var n,i=Sa.Companion.invoke_f6ihu2$(Av);Xr(i.css,Kr.relative),Wj(i,e.clazzUid,AS().CLAZZ_PICTURE_LOOKUP_ADAPTER,Iv);var o=In(null!=(n=e.clazzActiveEnrolment)?sc(n,i,this.systemImpl):null);null!=e.clazzActiveEnrolment&&ld(i,o,void 0,void 0,void 0,void 0,"primary",void 0,void 0,void 0,Dv),t.child_30b5ua$(i.create());var r,s,a=Sa.Companion.invoke_f6ihu2$(Av);Qr(a.css,C_(2)),O_(a,e.clazzName,"h6",void 0,void 0,void 0,void 0,void 0,void 0,Pv),O_(a,null!=(r=e.clazzDesc)?Ey(r):null,"body1",void 0,void 0,void 0,void 0,void 0,void 0,(s=e,function(t){var e=s,n=t.css;n.unaryPlus_uoyjcc$(TE().alignTextToStart);var i=e.clazzDesc;return null!=i&&0!==i.length&&TE().maxLines_th7wno$(n,2),Ye})),gP(a,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,qv(this,e)),t.child_30b5ua$(a.create())},xv.prototype.handleClickAddNewEntry=function(){var t,e,n,i=Jo(),o=null!=(e=null!=(t=this.arguments.get_11rb$(fi.Companion.ARG_FILTER_EXCLUDE_MEMBERSOFSCHOOL))?oc(t):null)?e:ra;Je(o,ra)||(i=uc([ni(xa.Companion.ARG_SCHOOL_UID,o.toString())])),i.putAll_a2k3zr$(this.arguments),null!=(n=this.mPresenter_0)&&n.handleClickAddNewItem_a4m1mt$(i)},xv.prototype.handleClickEntry_11rc$=function(t){var e;null!=(e=this.mPresenter_0)&&e.onClickClazz_yczdf2$(t)},xv.prototype.onFabClicked=function(){var t;$a(this,(t=this,function(e){return t.showAddEntryOptions=!0,Ye}))},xv.prototype.renderAddContentOptionsDialog_ss14n$=function(t){var n,i;if(this.showAddEntryOptions){n=this.newClazzListOptionVisible?ga(new kU("add",2924,void 0,(i=this,function(){var t;return null!=(t=i.mPresenter_0)&&t.handleClickCreateNewFab(),Ye}))):ri();var o=hc(n,ga(new kU("login",2925,void 0,function(t){return function(){var e;return null!=(e=t.mPresenter_0)&&e.handleClickJoinClazz(),Ye}}(this))));HU(t,this.systemImpl,o,e.Long.fromNumber((new Date).getTime()),void 0,Fv(this))}},Object.defineProperty(xv.prototype,"newClazzListOptionVisible",{configurable:!0,get:function(){return this.newClazzListOptionVisible_5q0u4v$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.newClazzListOptionVisible_5q0u4v$_0=e,Ye}))}}),xv.prototype.onDestroyView=function(){var t;uD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null},xv.$metadata$={kind:Vn,simpleName:"ClazzListComponent",interfaces:[pi,uD]},Object.defineProperty(Wv.prototype,"mEditPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(Wv.prototype,"clazzLogAttendanceRecordList",{configurable:!0,get:function(){return this.clazzLogAttendanceRecordList_a5bzz1$_0},set:function(t){var e;null!=(e=this.clazzLogAttendanceRecordList_a5bzz1$_0)&&e.removeObserver_fujmse$(this.clazzLogAttendanceRecordListObserver_0),this.clazzLogAttendanceRecordList_a5bzz1$_0=t,null!=t&&t.observe_bi6zy5$(this,this.clazzLogAttendanceRecordListObserver_0)}}),Object.defineProperty(Wv.prototype,"clazzLogTimezone",{configurable:!0,get:function(){return this.clazzLogTimezone_xca5no$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.clazzLogTimezone_xca5no$_0=e,Ye}))}}),Object.defineProperty(Wv.prototype,"clazzLogsList",{configurable:!0,get:function(){return this.clazzLogsList_8106pa$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.clazzLogsList_8106pa$_0=e,Ye}))}}),Object.defineProperty(Wv.prototype,"fieldsEnabled",{configurable:!0,get:function(){return this.fieldsEnabled_cf6c2d$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.fieldsEnabled_cf6c2d$_0=e,Ye}))}}),Wv.prototype.handleOnDateChange_0=function(t){var e,n,i,o,r,s=this.activeLogIndex_0;this.activeLogIndex_0=this.activeLogIndex_0===(null!=(e=this.clazzLogsList)?dc(e):null)&&t?null!=(i=null!=(n=this.clazzLogsList)?dc(n):null)?i:0:0!==this.activeLogIndex_0||t?this.activeLogIndex_0+(t?1:-1)|0:0,null!=(o=this.clazzLogsList)&&null!=(r=this.mPresenter_0)&&r.handleSelectClazzLog_3aopzo$(o.get_za3lpa$(s),o.get_za3lpa$(this.activeLogIndex_0))},Object.defineProperty(Wv.prototype,"entity",{configurable:!0,get:function(){return this.entity_x5l2g2$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){var i,o;if(null!=e){var r,s,a=n,c=e;a.activeLogIndex_0=null!=(s=null!=(r=a.clazzLogsList)?r.indexOf_11rb$(c):null)?s:0}return n.entity_x5l2g2$_0=e,n.disableNextBtn_0=n.activeLogIndex_0>=(null!=(o=null!=(i=n.clazzLogsList)?dc(i):null)?o:0),n.disablePrevBtn_0=0===n.activeLogIndex_0,Ye}))}}),Wv.prototype.onCreateView=function(){var t;oD.prototype.onCreateView.call(this),this.ustadComponentTitle=this.getString_za3lpa$(2068),this.mPresenter_0=new pc(this,this.arguments,this,this.di,this),null!=(t=this.mPresenter_0)&&t.onCreate(my(this.navController))},Wv.prototype.render_ss14n$=function(t){var e=null==this.entity;if(!e){var n=this.clazzLogsList;e=null==n||n.isEmpty()}if(!e){var i=Sa.Companion.invoke_f6ihu2$(Bv),o=i.css;o.unaryPlus_uoyjcc$(TE().contentContainer),o.unaryPlus_uoyjcc$(TE().defaultPaddingTop),gP(i,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,aC(this)),t.child_30b5ua$(i.create())}},Wv.prototype.setSelectedColor_0=function(t){return t?"primary":"standard"},Wv.prototype.onDestroyView=function(){var t;oD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null},Wv.$metadata$={kind:Vn,simpleName:"ClazzLogEditAttendanceComponent",interfaces:[Xi,oD]},Object.defineProperty(lC.prototype,"mEditPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(lC.prototype,"date",{configurable:!0,get:function(){return this.date_j5o99g$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.date_j5o99g$_0=e,Ye}))}}),Object.defineProperty(lC.prototype,"time",{configurable:!0,get:function(){return this.time_iwql2b$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.time_iwql2b$_0=e,Ye}))}}),Object.defineProperty(lC.prototype,"dateError",{configurable:!0,get:function(){return this.dateError_b6b7w0$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.dateError_b6b7w0$_0=e,n.dateLabel_0=n.dateLabel_0.copy_d8n4vg$(void 0,e),Ye}))}}),Object.defineProperty(lC.prototype,"timeZone",{configurable:!0,get:function(){return this.timeZone_33z1u9$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.timeZone_33z1u9$_0=e,Ye}))}}),Object.defineProperty(lC.prototype,"timeError",{configurable:!0,get:function(){return this.timeError_fhunbj$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.timeError_fhunbj$_0=e,n.timeLabel_0=n.timeLabel_0.copy_d8n4vg$(void 0,e),Ye}))}}),Object.defineProperty(lC.prototype,"fieldsEnabled",{configurable:!0,get:function(){return this.fieldsEnabled_rn1jqa$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.fieldsEnabled_rn1jqa$_0=e,Ye}))}}),Object.defineProperty(lC.prototype,"entity",{configurable:!0,get:function(){return this.entity_7dq5qf$_0},set:function(t){this.entity_7dq5qf$_0=t}}),lC.prototype.onCreateView=function(){var t;oD.prototype.onCreateView.call(this),this.ustadComponentTitle=this.getString_za3lpa$(2677),this.mPresenter_0=new mc(this,this.arguments,this,this,this.di),null!=(t=this.mPresenter_0)&&t.onCreate(my(this.navController))},lC.prototype.render_ss14n$=function(t){var e=Sa.Companion.invoke_f6ihu2$(cC),n=e.css;n.unaryPlus_uoyjcc$(TE().contentContainer),n.unaryPlus_uoyjcc$(TE().defaultPaddingTop),gP(e,void 0,void 0,void 0,void 0,Sp(),void 0,void 0,void 0,dC(this)),t.child_30b5ua$(e.create())},lC.prototype.onDestroyView=function(){var t;oD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null},lC.$metadata$={kind:Vn,simpleName:"ClazzLogEditComponent",interfaces:[Ki,oD]},Object.defineProperty(_C.prototype,"displayTypeRepo",{configurable:!0,get:function(){var t;return null!=(t=this.dbRepo)?t.clazzLogDao:null}}),Object.defineProperty(_C.prototype,"listPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(_C.prototype,"clazzTimeZone",{configurable:!0,get:function(){return this.clazzTimeZone_3cql06$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.clazzTimeZone_3cql06$_0=e,Ye}))}}),Object.defineProperty(_C.prototype,"graphData",{configurable:!0,get:function(){return this.graphData_hgajwx$_0},set:function(t){var e,n;null!=(e=this.graphData_hgajwx$_0)&&e.removeObserver_fujmse$(this.graphDataObserver_0),this.graphData_hgajwx$_0=t,null!=(n=this.graphData_hgajwx$_0)&&n.observe_bi6zy5$(this,this.graphDataObserver_0)}}),Object.defineProperty(_C.prototype,"recordAttendanceOptions",{configurable:!0,get:function(){return this.recordAttendanceOptions_xg4knx$_0},set:function(t){var e,n;this.recordAttendanceOptions_xg4knx$_0=t,this.updateUiWithStateChangeDelay_n53o35$(void 0,(e=t,n=this,function(){var t;if(null!=(t=n.fabManager)){var i=e;t.visible=!(null==i||i.isEmpty())}return Ye}))}}),_C.prototype.onCreateView=function(){var t,e,n;uD.prototype.onCreateView.call(this),null!=(t=this.fabManager)&&(t.text=this.getString_za3lpa$(2294)),null!=(e=this.fabManager)&&(e.icon="assignment_turned_in"),this.mPresenter_0=new fc(this,this.arguments,this,this.di,this),null!=(n=this.mPresenter_0)&&n.onCreate(fr())},_C.prototype.renderListHeaderView_ss14n$=function(t){gP(t,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,$C(this))},_C.prototype.renderListItem_js0tu9$=function(t,e){var n=e.clazzLogNumPresent+e.clazzLogNumPartial+e.clazzLogNumAbsent|0;gP(t,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,vC(e,this,n))},_C.prototype.handleClickEntry_11rc$=function(t){var e;null!=(e=this.mPresenter_0)&&e.handleClickEntry_11rc$(t)},_C.prototype.renderAddContentOptionsDialog_ss14n$=function(t){var e,n;if(this.showAddEntryOptions){var i;if(null!=(e=this.recordAttendanceOptions)){var o,r=Xo(Ko(e,10));for(o=e.iterator();o.hasNext();){var s,a=o.next(),c=r.add_11rb$,l=2677===a.messageId?2:1,u=2677===a.messageId,h=gc();t:do{var d;for(d=0;d!==h.length;++d){var p=h[d];if(p.commandId===l){s=p;break t}}throw new Vo("Array contains no element matching the predicate.")}while(0);var _=s;c.call(r,new kU(u?"add":"calendar_today",a.messageId,void 0,CC(this,_)))}i=r}else i=null;var m=null!=(n=i)?n:ri();HU(t,this.systemImpl,m,void 0,void 0,NC(this))}},_C.prototype.onFabClicked=function(){var t;$a(this,(t=this,function(e){return t.showAddEntryOptions=!0,Ye}))},_C.prototype.makeStatus_0=function(t){var e;switch(t.clazzLogStatusFlag){case 0:e=this.getString_za3lpa$(2450);break;case 1:e=this.getString_za3lpa$(2333)+" - "+In(t.cancellationNote);break;case 4:e=fy(this.getString_za3lpa$(2567),[t.clazzLogNumPresent,t.clazzLogNumPartial,t.clazzLogNumAbsent]);break;default:e=""}return e},_C.prototype.createAttendanceIndicator_0=function(t,e,n){var i=Sa.Companion.invoke_f6ihu2$(pC),o=i.css;Zr(o,n),Lr(o,new ai("4px")),Mr(o,new ai((100*e).toString()+"%")),t.child_30b5ua$(i.create())},_C.prototype.onDestroyView=function(){var t;uD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null},TC.$metadata$={kind:Ho,simpleName:"Companion",interfaces:[]};var LC=null;function zC(){return null===LC&&new TC,LC}function wC(t){return Ye}function OC(t){var e;uD.call(this,t),this.mPresenter_0=null,this.addNewStudentText_0=this.getString_za3lpa$(2076),this.teacherSectionHeaderText_0=this.getString_za3lpa$(2399),this.studentSectionHeaderText_0=this.getString_za3lpa$(2075),this.students_0=ri(),this.studentListObserver_0=new Ea((e=this,function(t){return $a(e,function(t,e){return function(n){return e.students_0=t,Ye}}(t,e)),Ye})),this.studentList_aq77zt$_0=null,this.pendingStudents_0=ri(),this.pendingStudentObserver_0=new Ea(function(t){return function(e){return $a(t,function(t,e){return function(n){return e.pendingStudents_0=t,Ye}}(e,t)),Ye}}(this)),this.pendingStudentList_wxm69s$_0=null,this.addTeacherVisible_xgzwqn$_0=!1,this.addStudentVisible_5igvdm$_0=!1,this.termMap_h73agu$_0=null,this.filterByClazzUid_0=ra}function RC(t,e,n,i,o,r){return function(s){var a,c=new RD(t,e,function(t,e){return function(){var n;return null!=(n=t.mPresenter_0)&&n.handlePickNewMemberClicked_za3lpa$(e),Ye}}(n,i));return null!=(a=n.mPresenter_0)&&UC(s,a,o,c,r,function(t){return function(e){return t.handleClickEntry_11rc$(e),Ye}}(n)),Ye}}function AC(t,e,n,i,o,r,s){return function(a){return TE().defaultDoubleMarginTop(a.css),$P(a,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return TP(e,t),Ye}}(t)),$P(a,mp(),void 0,void 0,void 0,void 0,void 0,void 0,RC(e,n,i,o,r,s)),Ye}}function xC(t){AD.call(this,t)}function IC(t,n,i){return function(o){var r,s,a,c,l,u,h;o.attrs.onClick=function(t){return function(e){return ty().stopEventPropagation_za3rmp$(e),t(e.nativeEvent),Ye}}(t);var d=e.isType(r=n.props.presenter,Ec)?r:An();return s=i.personUid,a=i.fullName(),c=n.props.pending,l=i.attendance,u=n.getString_za3lpa$(2572),h=function(t,e){return function(){return t.handleClickPendingRequest_7mxlo2$(e,!0),Ye}}(d,i),nM(o,s,a,c,l,u,void 0,function(t,e){return function(){return t.handleClickPendingRequest_7mxlo2$(e,!1),Ye}}(d,i),h),Ye}}function UC(t,e,n,i,o,r){var s,a,c,l,u;void 0===i&&(i=new RD),void 0===o&&(o=!1),void 0===r&&(r=null),t.child_up9nw1$(We(xC),(s=n,a=r,c=i,l=e,u=o,function(t){return t.attrs.entries=s,t.attrs.onEntryClicked=a,t.attrs.createNewItem=c,t.attrs.presenter=l,t.attrs.pending=u,Ye}))}function DC(t){AD.call(this,t)}function PC(t,e,n){return function(i){var o,r;return i.attrs.onClick=function(t){return function(e){return ty().stopEventPropagation_za3rmp$(e),t(e.nativeEvent),Ye}}(t),xM(i,null!=(r=null!=(o=e.commentsPerson)?o.fullName():null)?r:"",e.commentsText,"person",n.systemImpl,n.accountManager,i),Ye}}function MC(t,e,n){var i,o;void 0===n&&(n=null),t.child_up9nw1$(We(DC),(i=e,o=n,function(t){return t.attrs.entries=i,t.attrs.hideDivider=!0,t.attrs.onEntryClicked=o,Ye}))}function kC(t){uD.call(this,t),this.mPresenter_0=null}function jC(t){FC(),iD.call(this,t),this.mPresenter_0=null,this.tabsToRender_0=null,this.tabs_2i2iqg$_0=null,this.entity_bbtkrx$_0=null}function GC(){qC=this,this.viewNameToTitleMap=Ia([ni(vi.Companion.VIEW_NAME,2558),ni(Ci.Companion.VIEW_NAME,2116)])}_C.$metadata$={kind:Vn,simpleName:"ClazzLogListAttendanceComponent",interfaces:[Vi,uD]},Object.defineProperty(OC.prototype,"displayTypeRepo",{configurable:!0,get:function(){var t;return null!=(t=this.dbRepo)?t.personDao:null}}),Object.defineProperty(OC.prototype,"listPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(OC.prototype,"studentList",{configurable:!0,get:function(){return this.studentList_aq77zt$_0},set:function(t){this.studentList_aq77zt$_0=t;var e=null!=t?t.getData_vux9f0$(0,2147483647):null;null!=e&&e.removeObserver_fujmse$(this.studentListObserver_0),null!=e&&e.observe_bi6zy5$(this,this.studentListObserver_0)}}),Object.defineProperty(OC.prototype,"pendingStudentList",{configurable:!0,get:function(){return this.pendingStudentList_wxm69s$_0},set:function(t){this.pendingStudentList_wxm69s$_0=t;var e=null!=t?t.getData_vux9f0$(0,2147483647):null;null!=e&&e.removeObserver_fujmse$(this.pendingStudentObserver_0),null!=e&&e.observe_bi6zy5$(this,this.pendingStudentObserver_0)}}),Object.defineProperty(OC.prototype,"addTeacherVisible",{configurable:!0,get:function(){return this.addTeacherVisible_xgzwqn$_0},set:function(t){this.addTeacherVisible_xgzwqn$_0=t,this.showCreateNewItem=t}}),Object.defineProperty(OC.prototype,"addStudentVisible",{configurable:!0,get:function(){return this.addStudentVisible_5igvdm$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.addStudentVisible_5igvdm$_0=e,Ye}))}}),Object.defineProperty(OC.prototype,"termMap",{configurable:!0,get:function(){return this.termMap_h73agu$_0},set:function(t){var e,n;this.termMap_h73agu$_0=t,$a(this,(e=t,n=this,function(t){return n.addNewEntryText=In(null!=e?e.get_11rb$(Da.TerminologyKeys.ADD_TEACHER_KEY):null),n.teacherSectionHeaderText_0=In(null!=e?e.get_11rb$(Da.TerminologyKeys.TEACHERS_KEY):null),n.addNewStudentText_0=In(null!=e?e.get_11rb$(Da.TerminologyKeys.ADD_STUDENT_KEY):null),n.studentSectionHeaderText_0=In(null!=e?e.get_11rb$(Da.TerminologyKeys.STUDENTS_KEY):null),Ye}))}}),OC.prototype.onCreateView=function(){var t,e,n;uD.prototype.onCreateView.call(this),this.showEmptyState=!1,this.addNewEntryText=this.getString_za3lpa$(2397),this.filterByClazzUid_0=null!=(e=null!=(t=this.arguments.get_11rb$(xa.Companion.ARG_CLAZZUID))?oc(t):null)?e:ra,this.mPresenter_0=new Ec(this,this.arguments,this,this.di,this),null!=(n=this.mPresenter_0)&&n.onCreate(fr())},OC.prototype.renderListHeaderView_ss14n$=function(t){TP(t,this.teacherSectionHeaderText_0)},OC.prototype.renderListItem_js0tu9$=function(t,e){nM(t,e.personUid,e.fullName(),void 0,e.attendance,this.getString_za3lpa$(2572),!1)},OC.prototype.renderListFooterView_ss14n$=function(t){var e;gP(t,void 0,void 0,void 0,void 0,void 0,yp(),void 0,void 0,(e=this,function(t){return e.createMemberList_0(t,e.students_0,e.studentSectionHeaderText_0,1e3,e.addNewStudentText_0,e.addStudentVisible),e.pendingStudents_0.isEmpty()||e.createMemberList_0(t,e.pendingStudents_0,e.getString_za3lpa$(2648),1002,void 0,e.addTeacherVisible,!0),Ye}))},OC.prototype.handleClickEntry_11rc$=function(t){var e;null!=(e=this.mPresenter_0)&&e.handleClickEntry_11rc$(t)},OC.prototype.handleClickAddNewEntry=function(){var t;null!=(t=this.mPresenter_0)&&t.handlePickNewMemberClicked_za3lpa$(1001)},OC.prototype.createMemberList_0=function(t,e,n,i,o,r,s){void 0===o&&(o=""),void 0===r&&(r=!0),void 0===s&&(s=!1),gP(t,void 0,void 0,void 0,void 0,void 0,Ep(),void 0,void 0,AC(n,r,o,this,i,e,s))},OC.prototype.onDestroyView=function(){var t;uD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null},OC.$metadata$={kind:Vn,simpleName:"ClazzMemberListComponent",interfaces:[Wi,uD]},xC.prototype.renderListItem_f4dmsf$=function(t,e,n){gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,IC(n,this,e))},xC.$metadata$={kind:Vn,simpleName:"MembersListComponent",interfaces:[AD]},DC.prototype.renderListItem_f4dmsf$=function(t,e,n){gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,PC(n,e,this))},DC.$metadata$={kind:Vn,simpleName:"CommentsListComponent",interfaces:[AD]},Object.defineProperty(kC.prototype,"listPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(kC.prototype,"displayTypeRepo",{configurable:!0,get:function(){var t;return null!=(t=this.dbRepo)?t.statementDao:null}}),kC.prototype.onCreateView=function(){var t,e;uD.prototype.onCreateView.call(this),null!=(t=this.fabManager)&&(t.visible=!1),this.mPresenter_0=new yc(this,this.arguments,this,this.di,this),null!=(e=this.mPresenter_0)&&e.onCreate(fr())},kC.prototype.renderListItem_js0tu9$=function(t,e){fM(t,e,this.systemImpl)},kC.prototype.handleClickEntry_11rc$=function(t){var e;null!=(e=this.mPresenter_0)&&e.onClickPersonWithStatementDisplay_nhm5s1$(t)},kC.prototype.onDestroyView=function(){var t;uD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null},kC.$metadata$={kind:Vn,simpleName:"ContentEntryDetailAttemptsListComponent",interfaces:[Ci,uD]},Object.defineProperty(jC.prototype,"detailPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(jC.prototype,"tabs",{configurable:!0,get:function(){return this.tabs_2i2iqg$_0},set:function(t){var e;if(this.tabs_2i2iqg$_0=t,null!=t){var n,i,o=Xo(Ko(t,10)),r=0;for(n=t.iterator();n.hasNext();){var s,a=n.next(),c=o.add_11rb$,l=Js((r=(i=r)+1|0,i)),u=null!=(s=FC().viewNameToTitleMap.get_11rb$(Xs(a,"?")))?s:0,h=Xs(a,"?"),d=Ra(a,"?");c.call(o,new mU(l,h,qE(a.substring(d)),this.getString_za3lpa$(u)))}e=o}else e=null;this.tabsToRender_0=e}}),Object.defineProperty(jC.prototype,"entity",{configurable:!0,get:function(){return this.entity_bbtkrx$_0},set:function(t){this.entity_bbtkrx$_0=t,this.ustadComponentTitle=null!=t?t.title:null}}),jC.prototype.onCreateView=function(){var t;iD.prototype.onCreateView.call(this),this.mPresenter_0=new bc(this,this.arguments,this,this.di,this),null!=(t=this.mPresenter_0)&&t.onCreate(fr())},jC.prototype.render_ss14n$=function(t){var e,n,i;null!=(e=this.tabsToRender_0)&&EU(t,e,!0,null!=(i=null!=(n=this.arguments.get_11rb$(xa.Companion.ARG_ACTIVE_TAB_INDEX))?vr(n):null)?i:0)},jC.prototype.onDestroyView=function(){var t;iD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null},GC.$metadata$={kind:Ho,simpleName:"Companion",interfaces:[]};var qC=null;function FC(){return null===qC&&new GC,qC}function BC(t){return new ba(ya.emptyMap,t)}function WC(t){var e;$N(),iD.call(this,t),this.mPresenter_0=null,this.translations_0=ri(),this.observer_0=new Ea((e=this,function(t){if(!e.translations_0.isEmpty())return $a(e,function(t,e){return function(n){return e.translations_0=t,Ye}}(t,e)),Ye})),this.availableTranslationsList_oxir9q$_0=null,this.scoreProgress_xvpwnc$_0=null,this.locallyAvailable_fwkd58$_0=!1,this.markCompleteVisible_yl1xaj$_0=!1,this.contentEntryButtons_a0kxb$_0=null,this.activeContentJobItems_y8x27z$_0=null,this.entity_up1x46$_0=null}function HC(t){return TE().detailContentProgress(t.css),Ye}function VC(t){return TE().contentEntryDetailOverviewComponentOpenBtn(t.css),Ye}function KC(t){return function(e){var n,i,o,r,s,a,c;ti(e.css,Yn.column),Wj(e,null!=(i=null!=(n=t.entity)?n.contentEntryUid:null)?i:ra,$N().ATTACHMENT_URI_LOOKUP_ADAPTER,function(t){return function(e,n){var i;return yP(e,n,!0===(null!=(i=t.entity)?i.leaf:null)?ty().ASSET_BOOK:ty().ASSET_FOLDER,void 0,void 0,void 0,!1),Ye}}(t)),(null!=(r=null!=(o=t.scoreProgress)?o.progress:null)?r:0)>0&&Zp(e,null!=(a=null!=(s=t.scoreProgress)?s.progress:null)?a:0,void 0,"determinate",void 0,void 0,HC);var l=!0===(null!=(c=t.contentEntryButtons)?c.showDownloadButton:null)?2011:2084;return cd(e,t.getString_za3lpa$(l),"secondary","contained",void 0,function(t){return function(e){var n,i,o;return!0===(null!=(n=t.contentEntryButtons)?n.showDownloadButton:null)?null!=(i=t.mPresenter_0)&&i.handleClickDownloadButton():null!=(o=t.mPresenter_0)&&o.handleClickOpenButton(),Ye}}(t),"large",void 0,void 0,void 0,void 0,VC),Ye}}function XC(t){return TE().alignTextToStart(t.css),Ye}function JC(t){return TE().alignTextToStart(t.css),Ye}function YC(t){return TE().alignTextToStart(t.css),Ye}function QC(t){return TE().alignTextToStart(t.css),Ye}function ZC(t){return kr(t.css,Br(4)),Ye}function tN(t){return Rp(t,"emoji_events",void 0,void 0,TE().name+"-contentEntryListContentTyeIconClass",ZC),Ye}function eN(t){return ed(t,void 0,void 0,void 0,void 0,void 0,void 0,TE().name+"-contentEntryListContentAvatarClass",tN),Ye}function nN(t){return TE().alignTextToStart(t.css),Ye}function iN(t){return TE().alignTextToStart(t.css),Ye}function oN(t){return function(e){return $P(e,op(),void 0,void 0,void 0,void 0,void 0,void 0,eN),$P(e,op(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n;return O_(e,In(null!=(n=t.scoreProgress)?vc(n):null)+"%","subtitle1",void 0,!0,void 0,void 0,void 0,void 0,nN),Ye}}(t)),$P(e,rp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i;return O_(e,"( "+In(null!=(n=t.scoreProgress)?n.resultScore:null)+" / "+In(null!=(i=t.scoreProgress)?i.resultMax:null)+" )","subtitle1",void 0,!0,void 0,void 0,void 0,void 0,iN),Ye}}(t)),Ye}}function rN(t){return function(e){return $P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a=t,c=e.css,l=null!=(o=a.entity)?o.licenseName:null;if(r=!(null==l||0===l.length),Zn(c,TE().displayProperty_dqye30$(r)),null!=(i=null!=(n=t.entity)?n.licenseName:null)){var u,h,d,p,_=t;s=gy(gy(_.getString_za3lpa$(2165),[i]),[" "+(null!=(p=null!=(d=null!=(h=null!=(u=_.entity)?u.container:null)?h.fileSize:null)?", "+gr.UMFileUtil.formatFileSize_s8cxhz$(d):null)?p:"")])}else s=null;return O_(e,s,"subtitle1",void 0,!0,void 0,void 0,void 0,void 0,QC),Ye}}(t)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r=t,s=e.css;return o=(null!=(i=null!=(n=r.scoreProgress)?n.progress:null)?i:0)>0,Zn(s,TE().displayProperty_dqye30$(o)),gP(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,oN(t)),Ye}}(t)),Ye}}function sN(t){return TE().alignTextToStart(t.css),Ye}function aN(t){return TE().alignTextToStart(t.css),Ye}function cN(t){return function(e){return TE().defaultPaddingTop(e.css),tj(e,"library_add_check",t.getString_za3lpa$(2595),ap(),ap(),t.markCompleteVisible,"body2",void 0,void 0,function(t){return function(){var e;return null!=(e=t.mPresenter_0)&&e.handleOnClickMarkComplete(),Ye}}(t)),tj(e,"delete",t.getString_za3lpa$(2020),ap(),ap(),t.markCompleteVisible,"body2",void 0,void 0,function(t){return function(){var e;return null!=(e=t.mPresenter_0)&&e.handleOnClickConfirmDelete(),Ye}}(t)),tj(e,"download",t.getString_za3lpa$(2699),ap(),ap(),t.markCompleteVisible,"body2",void 0,void 0,function(t){return function(){var e;return null!=(e=t.mPresenter_0)&&e.handleOnClickManageDownload(),Ye}}(t)),Ye}}function lN(t){return TE().alignTextToStart(t.css),Ye}function uN(t,e){return function(n){var i,o,r,s;return s=t.mPresenter_0,r=null!=(o=null!=(i=e.language)?i.langUid:null)?o:ra,null!=s&&s.handleOnTranslationClicked_s8cxhz$(r),Ye}}function hN(t){return vs(t.css,C_(1)),Ye}function dN(t){return function(e){return $P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n;return O_(e,null!=(n=t.entity)?n.title:null,"h4",void 0,!0,void 0,void 0,void 0,void 0,XC),Ye}}(t)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s=t,a=e.css,c=null!=(o=s.entity)?o.author:null;return r=!(null==c||0===c.length),Zn(a,TE().displayProperty_dqye30$(r)),O_(e,null!=(i=null!=(n=t.entity)?n.author:null)?gy(t.getString_za3lpa$(2163),[i]):null,"h6",void 0,!0,void 0,void 0,void 0,void 0,JC),Ye}}(t)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s=t,a=e.css,c=null!=(o=s.entity)?o.publisher:null;return r=!(null==c||0===c.length),Zn(a,TE().displayProperty_dqye30$(r)),O_(e,null!=(i=null!=(n=t.entity)?n.publisher:null)?gy(t.getString_za3lpa$(2164),[":",i]):null,"subtitle1",void 0,!0,void 0,void 0,void 0,void 0,YC),Ye}}(t)),gP(e,bp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,rN(t)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r=t,s=e.css;Gr(s,C_(2));var a=null!=(i=r.entity)?i.description:null;return o=!(null==a||0===a.length),Zn(s,TE().displayProperty_dqye30$(o)),O_(e,t.getString_za3lpa$(2047),"caption",void 0,void 0,void 0,void 0,!0,void 0,sN),O_(e,null!=(n=t.entity)?n.description:null,void 0,void 0,void 0,void 0,void 0,!0,void 0,aN),Ye}}(t)),gP(e,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,cN(t)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n=t;Zn(e.css,TE().displayProperty_dqye30$(!n.translations_0.isEmpty())),O_(e,t.getString_za3lpa$(2135),"caption",void 0,void 0,void 0,void 0,!0,void 0,lN);var i,o=Sa.Companion.invoke_f6ihu2$(BC),r=t;for(TE().chipSetFilter(o.css),i=r.translations_0.iterator();i.hasNext();){var s,a=i.next();ld(o,In(null!=(s=a.language)?s.name:null),void 0,uN(r,a),void 0,void 0,void 0,void 0,void 0,void 0,hN)}return e.child_30b5ua$(o.create()),Ye}}(t)),Ye}}function pN(t){return function(e){return $P(e,mp(),ap(),void 0,void 0,void 0,void 0,void 0,KC(t)),$P(e,mp(),hp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return TE().entryDetailRightSection(e.css),gP(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,dN(t)),Ye}}(t)),Ye}}function _N(){gN=this,this.ATTACHMENT_URI_LOOKUP_ADAPTER=new ZD(fN)}function mN(t,e){Va.call(this),this.addSource_mmltu2$(t.contentEntryPictureDao.findByContentEntryUidLive_s8cxhz$(e),this)}function fN(t,e){return new mN(t,e)}jC.$metadata$={kind:Vn,simpleName:"ContentEntryDetailComponent",interfaces:[Si,iD]},Object.defineProperty(WC.prototype,"detailPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(WC.prototype,"availableTranslationsList",{configurable:!0,get:function(){return this.availableTranslationsList_oxir9q$_0},set:function(t){this.availableTranslationsList_oxir9q$_0=t;var e=null!=t?t.getData_vux9f0$(0,2147483647):null;null!=e&&e.removeObserver_fujmse$(this.observer_0),null!=e&&e.observe_bi6zy5$(this,this.observer_0)}}),Object.defineProperty(WC.prototype,"scoreProgress",{configurable:!0,get:function(){return this.scoreProgress_xvpwnc$_0},set:function(t){this.scoreProgress_xvpwnc$_0=t}}),Object.defineProperty(WC.prototype,"locallyAvailable",{configurable:!0,get:function(){return this.locallyAvailable_fwkd58$_0},set:function(t){this.locallyAvailable_fwkd58$_0=t}}),Object.defineProperty(WC.prototype,"markCompleteVisible",{configurable:!0,get:function(){return this.markCompleteVisible_yl1xaj$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.markCompleteVisible_yl1xaj$_0=e,Ye}))}}),Object.defineProperty(WC.prototype,"contentEntryButtons",{configurable:!0,get:function(){return this.contentEntryButtons_a0kxb$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.contentEntryButtons_a0kxb$_0=e,Ye}))}}),Object.defineProperty(WC.prototype,"activeContentJobItems",{configurable:!0,get:function(){return this.activeContentJobItems_y8x27z$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.activeContentJobItems_y8x27z$_0=e,Ye}))}}),Object.defineProperty(WC.prototype,"entity",{configurable:!0,get:function(){return this.entity_up1x46$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.entity_up1x46$_0=e,Ye}))}}),WC.prototype.onCreateView=function(){var t;iD.prototype.onCreateView.call(this),this.mPresenter_0=new Sc(this,this.arguments,this,this.di,this),null!=(t=this.mPresenter_0)&&t.onCreate(fr())},WC.prototype.render_ss14n$=function(t){var e=Sa.Companion.invoke_f6ihu2$(BC),n=e.css;n.unaryPlus_uoyjcc$(TE().defaultMarginTop),n.unaryPlus_uoyjcc$(TE().contentContainer),gP(e,void 0,void 0,void 0,void 0,Sp(),void 0,void 0,void 0,pN(this)),t.child_30b5ua$(e.create())},WC.prototype.onFabClicked=function(){var t;iD.prototype.onFabClicked.call(this),null!=(t=this.mPresenter_0)&&t.handleClickEdit()},WC.prototype.showDownloadDialog_y0zsll$=function(t){throw new Cc("An operation is not implemented: showDownloadDialog: Not yet implemented")},WC.prototype.onDestroyView=function(){var t;iD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null},mN.prototype.onChanged_11rb$=function(t){this.postValue_11rb$(null!=t?t.cepUri:null)},mN.$metadata$={kind:Vn,interfaces:[Ka,Va]},_N.$metadata$={kind:Ho,simpleName:"Companion",interfaces:[]};var gN=null;function $N(){return null===gN&&new _N,gN}function EN(t){return new ba(ya.emptyMap,t)}function yN(t){oD.call(this,t),this.mPresenter_0=null,this.titleLabel_0=new Lm(this.getString_za3lpa$(2102)),this.descLabel_0=new Lm(this.getString_za3lpa$(2047)),this.minScoreLabel_0=new Lm(this.getString_za3lpa$(2591)),this.authorLabel_0=new Lm(this.getString_za3lpa$(2163)),this.publisherLabel_0=new Lm(this.getString_za3lpa$(2164)),this.languageLabel_0=new Lm(this.getString_za3lpa$(2053)),this.doNotShowBeforeLabel_0=new Lm($y(this.getString_za3lpa$(2841))),this.startTimeLabel_0=new Lm(this.getString_za3lpa$(2611)),this.deadlineDateLabel_0=new Lm(this.getStringWithOptionalLabel_za3lpa$(2607)),this.deadlineTimeLabel_0=new Lm(this.getString_za3lpa$(2611)),this.gracePeriodDateLabel_0=new Lm(this.getStringWithOptionalLabel_za3lpa$(2587)),this.gracePeriodTimeLabel_0=new Lm(this.getString_za3lpa$(2611)),this.completionCriteriaLabel_0=new Lm(this.getString_za3lpa$(2594)),this.penaltyLabel_0=new Lm(this.getString_za3lpa$(2586)),this.licenseLabel_0=new Lm(this.getString_za3lpa$(2103)),this.maxPointsLabel_0=new Lm(this.getString_za3lpa$(2867)),this.contentEntryPicture_pykgc2$_0=null,this.licenceOptions_rpcgpc$_0=null,this.completionCriteriaOptions_f59ioc$_0=null,this.selectedStorageIndex_iwz1yj$_0=0,this.titleErrorEnabled_hr0qfu$_0=!1,this.fileImportErrorVisible_kts1ma$_0=!1,this.storageOptions_qxn3ju$_0=null,this.metadataResult_72vkq7$_0=null,this.compressionEnabled_kbu5ni$_0=!1,this.videoDimensions_o1mcdr$_0=new qa(0,0),this.showVideoPreview=!1,this.showWebPreview_0=!1,this.videoUri_hqbqzw$_0=null,this.showUpdateContentButton_ofuqr6$_0=!1,this.caGracePeriodError_pibq9c$_0=null,this.caDeadlineError_flx58b$_0=null,this.caStartDateError_mzz87b$_0=null,this.caMaxPointsError_mka66a$_0=null,this.startDate_i3t389$_0=ra,this.startTime_huvf14$_0=ra,this.deadlineDate_vtwb4n$_0=ra,this.deadlineTime_w2tzbs$_0=ra,this.gracePeriodDate_hqmaj4$_0=ra,this.gracePeriodTime_hzjyq9$_0=ra,this.gracePeriodVisiblity_3qq1wb$_0=!1,this.timeZone_3saz7g$_0=null,this.fieldsEnabled_j5wdv5$_0=!1,this.minScoreVisible_3xujmj$_0=!1,this.entity_iba2d6$_0=null,this.updateItemOptionsDialogVisible_h4irf9$_0=!1}function bN(t){return function(){return $a(t,function(t){return function(e){return t.updateItemOptionsDialogVisible_0=!1,Ye}}(t)),Ye}}function SN(t){return function(e){return $a(t,function(t,e){return function(n){var i;return console.log("ClazzEditComponent: setting course picture uri = "+In(t)),null!=(i=e.contentEntryPicture)&&(i.cepUri=t),Ye}}(e,t)),Ye}}function vN(t,e){return yP(t,e,ty().ASSET_ENTRY,void 0,void 0,void 0,void 0,!0),Ye}function CN(t){return function(e){return e.child_up9nw1$(We(BD),function(t){return function(e){var n;return e.attrs.attachmentUri=null!=(n=t.contentEntryPicture)?n.cepUri:null,e.attrs.onNewImageSelected=SN(t),e.attrs.contentBlock=vN,Ye}}(t)),Ye}}function NN(t){return function(e){return $a(t,function(t){return function(e){return t.updateItemOptionsDialogVisible_0=!0,Ye}}(t)),Ye}}function TN(t){var e=t.css;return gs(e,"15px"),kr(e,new ai("13px")),e.unaryPlus_uoyjcc$(TE().defaultFullWidth),Ye}function LN(t){return TE().alignTextToStart(t.css),Ye}function zN(t){return function(e){var n,i;return kr(e.css,Br(12)),null!=t.videoUri&&(t.showWebPreview_0||t.showVideoPreview)&&null!=(n=t.videoUri)&&yz(e,ga(n),1),t.showUpdateContentButton&&!0===(null!=(i=t.entity)?i.leaf:null)&&$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o=t,r=e.css;return i=!0===(null!=(n=o.entity)?n.leaf:null),Zn(r,TE().displayProperty_dqye30$(i)),r.unaryPlus_uoyjcc$(TE().defaultMarginTop),O_(e,t.getString_za3lpa$(2175),"body2",void 0,void 0,void 0,void 0,void 0,void 0,LN),Ye}}(t)),Ye}}function wN(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.title=t),Ye}}(e,t)),Ye}}function ON(t){return TE().defaultFullWidth(t.css),Ye}function RN(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.description=t),Ye}}(e,t)),Ye}}function AN(t){return TE().defaultFullWidth(t.css),Ye}function xN(t){return function(n){return $a(t,function(t,n){return function(i){return n.startDate=e.Long.fromNumber(t.getTime()),n.caStartDateError=null,Ye}}(n,t)),Ye}}function IN(t){return function(e){return $a(t,function(t,e){return function(n){var i,o;return null!=(o=null!=(i=e.entity)?i.block:null)&&(o.cbCompletionCriteria=t),e.completionCriteriaLabel_0.errorText=null,e.minScoreVisible=1===t,Ye}}(e,t)),Ye}}function UN(t){return function(e){return $a(t,function(t,e){return function(n){var i,o;return null!=(o=null!=(i=e.entity)?i.block:null)&&(o.cbMaxPoints=t),e.caMaxPointsError=null,Ye}}(e,t)),Ye}}function DN(t){return function(n){return $a(t,function(t,n){return function(i){return n.deadlineDate=e.Long.fromNumber(t.getTime()),n.caDeadlineError=null,n.gracePeriodVisiblity_0=!0,Ye}}(n,t)),Ye}}function PN(t){return function(e){return $a(t,function(t,e){return function(n){var i,o;return null!=(o=null!=(i=e.entity)?i.block:null)&&(o.cbLateSubmissionPenalty=t),Ye}}(e,t)),Ye}}function MN(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.author=t),Ye}}(e,t)),Ye}}function kN(t){return TE().defaultFullWidth(t.css),Ye}function jN(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.publisher=t),Ye}}(e,t)),Ye}}function GN(t){return TE().defaultFullWidth(t.css),Ye}function qN(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.licenseType=vr(t)),Ye}}(e,t)),Ye}}function FN(t){return Ye}function BN(t){return function(e){return e.attrs.onClick=function(t){return function(){var e;return null!=(e=t.mPresenter_0)?(e.handleClickLanguage(),Ye):null}}(t),Ye}}function WN(t){return function(e){var n,i,o,r,s,a,c;return n=In(t.languageLabel_0.text),i=t.languageLabel_0.errorText,s=null!=(r=null!=(o=t.entity)?o.language:null)?r.name:null,a=t.languageLabel_0.error,c=!t.fieldsEnabled,$_(e,n,s,i,void 0,"outlined",function(t){return function(e){return $a(t,FN),Ye}}(t),void 0,void 0,c,a,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,BN(t)),Ye}}function HN(t){return function(e){return $P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a,c,l,u;if(n=In(t.licenseLabel_0.text),o=In(null!=(i=t.entity)?i.licenseType:null),r=t.licenseLabel_0.error,s=!t.fieldsEnabled,a=t.licenseLabel_0.errorText,null!=(c=t.licenceOptions)){var h,d=Xo(Ko(c,10));for(h=c.iterator();h.hasNext();){var p=h.next();d.add_11rb$(new qa(p.code.toString(),p.toString()))}u=d}else u=null;return b_(e,n,o,a,void 0,null!=(l=u)?yr(l):null,"outlined",qN(t),void 0,s,r),Ye}}(t)),$P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,WN(t)),Ye}}function VN(t){return function(e){return $a(t,function(t){return function(e){return t.compressionEnabled=!t.compressionEnabled,Ye}}(t)),Ye}}function KN(t){return function(e){return $a(t,function(t){return function(e){var n,i,o;return null!=(o=t.entity)&&(o.publik=!(null!=(i=null!=(n=t.entity)?n.publik:null)&&i)),Ye}}(t)),Ye}}function XN(t){return function(e){return null!=t.metadataResult&&$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return TE().defaultDoubleMarginTop(e.css),eT(e,t.getString_za3lpa$(2113),t.compressionEnabled,VN(t)),Ye}}(t)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n;return eT(e,t.getString_za3lpa$(2101),!0===(null!=(n=t.entity)?n.publik:null),KN(t)),Ye}}(t)),Ye}}function JN(t){return function(n){var i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N;return i=In(t.titleLabel_0.text),o=t.titleLabel_0.errorText,s=null!=(r=t.entity)?r.title:null,a=t.titleLabel_0.error,c=!t.fieldsEnabled,$_(n,i,s,o,void 0,"outlined",wN(t),void 0,void 0,c,a,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,ON),l=In(t.descLabel_0.text),h=null!=(u=t.entity)?u.description:null,d=t.descLabel_0.error,p=!t.fieldsEnabled,$_(n,l,h,t.descLabel_0.errorText,void 0,"outlined",RN(t),void 0,void 0,p,d,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,AN),null!=(null!=(_=t.entity)?_.block:null)&&dj(n,null!=(m=t.entity)?m.block:null,t.doNotShowBeforeLabel_0,t.startDate,t.startTimeLabel_0,xN(t),t.timeZone,t.completionCriteriaLabel_0,t.completionCriteriaOptions,IN(t),t.maxPointsLabel_0,UN(t),t.deadlineDateLabel_0,t.deadlineTimeLabel_0,t.deadlineDate,DN(t),t.gracePeriodDateLabel_0,t.gracePeriodTimeLabel_0,t.gracePeriodDate,t.gracePeriodVisiblity_0,function(t){return function(n){return t.gracePeriodDate=e.Long.fromNumber(n.getTime()),t.caGracePeriodError=null,Ye}}(t),t.penaltyLabel_0,PN(t),t.getString_za3lpa$(2868),t.minScoreVisible,t.minScoreLabel_0,function(t){return function(e){var n,i;return null!=(i=null!=(n=t.entity)?n.block:null)&&(i.cbMinPoints=e),Ye}}(t)),f=In(t.authorLabel_0.text),$=null!=(g=t.entity)?g.author:null,E=t.authorLabel_0.error,y=!t.fieldsEnabled,$_(n,f,$,t.authorLabel_0.errorText,void 0,"outlined",MN(t),void 0,void 0,y,E,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,kN),b=In(t.publisherLabel_0.text),v=null!=(S=t.entity)?S.publisher:null,C=t.publisherLabel_0.error,N=!t.fieldsEnabled,$_(n,b,v,t.publisherLabel_0.errorText,void 0,"outlined",jN(t),void 0,void 0,N,C,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,GN),gP(n,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,HN(t)),gP(n,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,XN(t)),Ye}}function YN(t){return function(e){var n;$P(e,mp(),ap(),void 0,void 0,void 0,void 0,void 0,CN(t));var i=!0===(null!=(n=t.entity)?n.leaf:null)&&null!=t.videoUri&&(t.showWebPreview_0||t.showVideoPreview);return t.showUpdateContentButton&&$P(e,mp(),ap(),void 0,void 0,Xd(),void 0,void 0,function(t){return function(e){return cd(e,t.getString_za3lpa$(2100),"secondary","contained",void 0,NN(t),"large",void 0,void 0,void 0,void 0,TN),Ye}}(t)),i&&$P(e,mp(),ap(),void 0,void 0,void 0,void 0,void 0,zN(t)),$P(e,mp(),i?hp():mp(),void 0,void 0,void 0,void 0,void 0,JN(t)),Ye}}function QN(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().alignTextToStart),kr(e,new ai("3px")),Wr(e,new ai("10px")),Ye}function ZN(t){return function(e){return e.attrs.onClick=function(t){return function(e){return t(e.nativeEvent),Ye}}(t),Ye}}function tT(t,e,n){return function(i){$P(i,_p(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t,"body1",void 0,!0,void 0,void 0,void 0,void 0,QN),Ye}}(t)),$P(i,op(),void 0,void 0,void 0,void 0,void 0,void 0,function(t,e){return function(n){return s_(n,t,void 0,void 0,void 0,void 0,ZN(e)),Ye}}(e,n));var o=i.css;return o.unaryPlus_uoyjcc$(TE().switchMargin),kr(o,new ai("16px")),jr(o,new ai("16px")),Ye}}function eT(t,e,n,i){gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,tT(e,n,i))}function nT(t){return new ba(ya.emptyMap,t)}function iT(t){VU.call(this,t),this.mPresenter_0=null,this.importLinkLabel=new Lm(this.getString_za3lpa$(2270)),this.importLink="",this.inProgress_r80lh2$_0=!1,this.validLink_c9ecui$_0=!1}function oT(t){return function(e){return $a(t,function(t,e){return function(n){return e.importLink=t,Ye}}(e,t)),Ye}}function rT(t){return TE().alignTextToStart(t.css),Ye}function sT(t){return function(e){return $P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s;return n=In(t.importLinkLabel.text),i=t.importLinkLabel.errorText,o=t.importLink,r=t.importLinkLabel.error,s=t.inProgress,$_(e,n,o,i,void 0,"outlined",oT(t),void 0,void 0,s,r),Ye}}(t)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return TE().defaultMarginTop(e.css),O_(e,t.getString_za3lpa$(2275),"body1","center",void 0,void 0,void 0,void 0,void 0,rT),Ye}}(t)),Ye}}function aT(t){return new ba(ya.emptyMap,t)}function cT(t){mT(),uD.call(this,t),this.mPresenter_0=null,this.showingEditOptions_0=!1,this.anchorElement_0=null,this.editOptionVisible_5l1h6g$_0=!1,this.title_1rt6lp$_0=null}function lT(t){return function(){return $a(t,function(t){return function(e){return t.showAddEntryOptions=!1,Ye}}(t)),Ye}}function uT(t){return function(e){return $a(t,function(t){return function(e){return t.showingEditOptions_0=!0,t.anchorElement_0=document.getElementById("more-option"),Ye}}(t)),Ye}}function hT(t){return function(){return $a(t,function(t){return function(e){return t.showingEditOptions_0=!1,t.anchorElement_0=null,Ye}}(t)),Ye}}function dT(t){return function(e){return Vp(e,t.getString_za3lpa$(2317),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n;return null!=(n=t.mPresenter_0)&&n.handleClickEditFolder(),Ye}}(t)),Vp(e,t.getString_za3lpa$(2179),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n;return null!=(n=t.mPresenter_0)&&n.handleClickShowHiddenItems(),Ye}}(t)),Ye}}function pT(){_T=this,this.CONTENT_ENTRY_TYPE_ICON_MAP=Ia([ni(2,"book"),ni(4,"smart_display"),ni(6,"description"),ni(7,"article"),ni(1,"collections"),ni(3,"touch_app"),ni(5,"audiotrack"),ni(8,"artcle")]),this.CONTENT_ENTRY_TYPE_LABEL_MAP=Ia([ni(2,2104),ni(4,2695),ni(6,2107),ni(7,2108),ni(1,2106),ni(3,2105),ni(5,2109),ni(8,2107)])}WC.$metadata$={kind:Vn,simpleName:"ContentEntryDetailOverviewComponent",interfaces:[vi,iD]},Object.defineProperty(yN.prototype,"mEditPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(yN.prototype,"contentEntryPicture",{configurable:!0,get:function(){return this.contentEntryPicture_pykgc2$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.contentEntryPicture_pykgc2$_0=e,Ye}))}}),Object.defineProperty(yN.prototype,"licenceOptions",{configurable:!0,get:function(){return this.licenceOptions_rpcgpc$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.licenceOptions_rpcgpc$_0=e,Ye}))}}),Object.defineProperty(yN.prototype,"completionCriteriaOptions",{configurable:!0,get:function(){return this.completionCriteriaOptions_f59ioc$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.completionCriteriaOptions_f59ioc$_0=e,Ye}))}}),Object.defineProperty(yN.prototype,"selectedStorageIndex",{configurable:!0,get:function(){return this.selectedStorageIndex_iwz1yj$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.selectedStorageIndex_iwz1yj$_0=e,Ye}))}}),Object.defineProperty(yN.prototype,"titleErrorEnabled",{configurable:!0,get:function(){return this.titleErrorEnabled_hr0qfu$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.titleErrorEnabled_hr0qfu$_0=e,e&&(n.titleLabel_0=n.titleLabel_0.copy_d8n4vg$(void 0,n.getString_za3lpa$(2126))),Ye}))}}),Object.defineProperty(yN.prototype,"fileImportErrorVisible",{configurable:!0,get:function(){return this.fileImportErrorVisible_kts1ma$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.fileImportErrorVisible_kts1ma$_0=e,Ye}))}}),Object.defineProperty(yN.prototype,"storageOptions",{configurable:!0,get:function(){return this.storageOptions_qxn3ju$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.storageOptions_qxn3ju$_0=e,Ye}))}}),Object.defineProperty(yN.prototype,"metadataResult",{configurable:!0,get:function(){return this.metadataResult_72vkq7$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.metadataResult_72vkq7$_0=e,Ye}))}}),Object.defineProperty(yN.prototype,"compressionEnabled",{configurable:!0,get:function(){return this.compressionEnabled_kbu5ni$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.compressionEnabled_kbu5ni$_0=e,Ye}))}}),Object.defineProperty(yN.prototype,"videoDimensions",{configurable:!0,get:function(){return this.videoDimensions_o1mcdr$_0}}),Object.defineProperty(yN.prototype,"videoUri",{configurable:!0,get:function(){return this.videoUri_hqbqzw$_0},set:function(t){var e,n;null!=t&&$a(this,(e=t,n=this,function(t){return n.videoUri_hqbqzw$_0=e,n.showVideoPreview=!hi(e,"http"),n.showWebPreview_0=hi(e,"http"),Ye}))}}),Object.defineProperty(yN.prototype,"showUpdateContentButton",{configurable:!0,get:function(){return this.showUpdateContentButton_ofuqr6$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.showUpdateContentButton_ofuqr6$_0=e,Ye}))}}),Object.defineProperty(yN.prototype,"caGracePeriodError",{configurable:!0,get:function(){return this.caGracePeriodError_pibq9c$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.caGracePeriodError_pibq9c$_0=e,Ye}))}}),Object.defineProperty(yN.prototype,"caDeadlineError",{configurable:!0,get:function(){return this.caDeadlineError_flx58b$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.caDeadlineError_flx58b$_0=e,Ye}))}}),Object.defineProperty(yN.prototype,"caStartDateError",{configurable:!0,get:function(){return this.caStartDateError_mzz87b$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.caStartDateError_mzz87b$_0=e,Ye}))}}),Object.defineProperty(yN.prototype,"caMaxPointsError",{configurable:!0,get:function(){return this.caMaxPointsError_mka66a$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.caMaxPointsError_mka66a$_0=e,Ye}))}}),Object.defineProperty(yN.prototype,"startDate",{configurable:!0,get:function(){return this.startDate_i3t389$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.startDate_i3t389$_0=e,Ye}))}}),Object.defineProperty(yN.prototype,"startTime",{configurable:!0,get:function(){return this.startTime_huvf14$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.startTime_huvf14$_0=e,Ye}))}}),Object.defineProperty(yN.prototype,"deadlineDate",{configurable:!0,get:function(){return this.deadlineDate_vtwb4n$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.deadlineDate_vtwb4n$_0=e,Ye}))}}),Object.defineProperty(yN.prototype,"deadlineTime",{configurable:!0,get:function(){return this.deadlineTime_w2tzbs$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.deadlineTime_w2tzbs$_0=e,Ye}))}}),Object.defineProperty(yN.prototype,"gracePeriodDate",{configurable:!0,get:function(){return this.gracePeriodDate_hqmaj4$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.gracePeriodDate_hqmaj4$_0=e,Ye}))}}),Object.defineProperty(yN.prototype,"gracePeriodTime",{configurable:!0,get:function(){return this.gracePeriodTime_hzjyq9$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.gracePeriodTime_hzjyq9$_0=e,Ye}))}}),Object.defineProperty(yN.prototype,"gracePeriodVisiblity_0",{configurable:!0,get:function(){return this.gracePeriodVisiblity_3qq1wb$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.gracePeriodVisiblity_3qq1wb$_0=e,Ye}))}}),Object.defineProperty(yN.prototype,"timeZone",{configurable:!0,get:function(){return this.timeZone_3saz7g$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.timeZone_3saz7g$_0=e,Ye}))}}),Object.defineProperty(yN.prototype,"fieldsEnabled",{configurable:!0,get:function(){return this.fieldsEnabled_j5wdv5$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.fieldsEnabled_j5wdv5$_0=e,Ye}))}}),Object.defineProperty(yN.prototype,"minScoreVisible",{configurable:!0,get:function(){return this.minScoreVisible_3xujmj$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.minScoreVisible_3xujmj$_0=e,Ye}))}}),Object.defineProperty(yN.prototype,"entity",{configurable:!0,get:function(){return this.entity_iba2d6$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){var i,o;return n.entity_iba2d6$_0=e,Je(null!=(i=null!=e?e.block:null)?i.cbDeadlineDate:null,sa)||(n.gracePeriodVisiblity_0=!0),n.minScoreVisible=1===(null!=(o=null!=e?e.block:null)?o.cbCompletionCriteria:null),Ye}))}}),Object.defineProperty(yN.prototype,"updateItemOptionsDialogVisible_0",{configurable:!0,get:function(){return this.updateItemOptionsDialogVisible_h4irf9$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.updateItemOptionsDialogVisible_h4irf9$_0=e,Ye}))}}),yN.prototype.onCreateView=function(){var t;oD.prototype.onCreateView.call(this),this.ustadComponentTitle=this.getString_za3lpa$(2539),this.mPresenter_0=new Nc(this,this.arguments,this,this,this.di),null!=(t=this.mPresenter_0)&&t.onCreate(my(this.navController))},yN.prototype.render_ss14n$=function(t){var e,n,i=Sa.Companion.invoke_f6ihu2$(EN),o=i.css;!0===(null!=(e=this.entity)?e.leaf:null)?o.unaryPlus_uoyjcc$(TE().contentContainer):o.unaryPlus_uoyjcc$(TE().fieldsOnlyFormScreen),o.unaryPlus_uoyjcc$(TE().defaultPaddingTop),this.updateItemOptionsDialogVisible_0&&Fj(i,this.systemImpl,!1,void 0,(n=this,function(){var t;return null!=(t=n.mPresenter_0)&&t.onClickImportLink(),Ye}),function(t){return function(){var e;return null!=(e=t.mPresenter_0)&&e.onClickImportFile(),Ye}}(this),bN(this)),gP(i,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,YN(this)),t.child_30b5ua$(i.create())},yN.prototype.onDestroyView=function(){var t;oD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null},yN.$metadata$={kind:Vn,simpleName:"ContentEntryEditComponent",interfaces:[uo,oD]},Object.defineProperty(iT.prototype,"inProgress",{configurable:!0,get:function(){return this.inProgress_r80lh2$_0},set:function(t){var e,n;this.loading=t,$a(this,(e=t,n=this,function(t){return n.inProgress_r80lh2$_0=e,Ye}))}}),Object.defineProperty(iT.prototype,"validLink",{configurable:!0,get:function(){return this.validLink_c9ecui$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.validLink_c9ecui$_0=e,n.importLinkLabel=n.importLinkLabel.copy_d8n4vg$(void 0,e?null:n.getString_za3lpa$(2271)),Ye}))}}),iT.prototype.onCreateView=function(){var t,e,n,i,o,r;VU.prototype.onCreateView.call(this),this.ustadComponentTitle=this.getString_za3lpa$(2270),null!=(t=this.fabManager)&&(t.visible=!0),null!=(e=this.fabManager)&&(e.icon="done"),null!=(n=this.fabManager)&&(n.text=this.getString_za3lpa$(2031)),null!=(i=this.fabManager)&&(i.onClickListener=(r=this,function(){var t;return null!=(t=r.mPresenter_0)&&t.handleClickDone_61zpoe$(r.importLink),Ye})),this.mPresenter_0=new Tc(this,this.arguments,this,this.di),null!=(o=this.mPresenter_0)&&o.onCreate(fr())},iT.prototype.render_ss14n$=function(t){var e=Sa.Companion.invoke_f6ihu2$(nT),n=e.css;n.unaryPlus_uoyjcc$(TE().contentContainer),kr(n,C_(4)),gP(e,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,sT(this)),t.child_30b5ua$(e.create())},iT.prototype.onDestroyView=function(){var t;VU.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null},iT.$metadata$={kind:Vn,simpleName:"ContentEntryImportLinkComponent",interfaces:[_o,VU]},Object.defineProperty(cT.prototype,"listPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(cT.prototype,"displayTypeRepo",{configurable:!0,get:function(){var t;return null!=(t=this.dbRepo)?t.contentEntryDao:null}}),Object.defineProperty(cT.prototype,"editOptionVisible",{configurable:!0,get:function(){return this.editOptionVisible_5l1h6g$_0},set:function(t){var e,n;this.showEditOptionsMenu=t,$a(this,(e=t,n=this,function(t){return n.editOptionVisible_5l1h6g$_0=e,Ye}))}}),Object.defineProperty(cT.prototype,"title",{configurable:!0,get:function(){return this.title_1rt6lp$_0},set:function(t){this.ustadComponentTitle=t,this.title_1rt6lp$_0=t}}),cT.prototype.onCreateView=function(){var t,e,n;uD.prototype.onCreateView.call(this),this.ustadComponentTitle=null!=(t=this.arguments.get_11rb$(xa.Companion.ARG_PARENT_ENTRY_TITLE))?t:this.getString_za3lpa$(2539),null!=(e=this.fabManager)&&(e.text=this.getString_za3lpa$(2539)),this.mPresenter_0=new Lc(this,this.arguments,this,this.di,this),null!=(n=this.mPresenter_0)&&n.onCreate(fr())},cT.prototype.renderListItem_js0tu9$=function(t,e){var n,i,o,r,s,a=Je(zc(this.arguments).toString(),wc.PICKER.toString())&&(null==(i=null!=(n=this.arguments.get_11rb$(_i.Companion.ARG_SELECT_FOLDER_VISIBLE))?pr(n):null)||i||e.leaf),c=!Je(zc(this.arguments).toString(),wc.PICKER.toString());Oj(t,e,this.systemImpl,a,c,void 0,void 0,void 0,void 0,(o=a,r=this,s=e,function(){var t,e;return o?null!=(t=r.mPresenter_0)&&t.onClickSelectContentEntry_dup0gu$(s):null!=(e=r.mPresenter_0)&&e.onClickDownloadContentEntry_dup0gu$(s),Ye}))},cT.prototype.handleClickEntry_11rc$=function(t){var e;null!=(e=this.mPresenter_0)&&e.onClickContentEntry_dup0gu$(t)},cT.prototype.showContentEntryAddOptions=function(){var t;$a(this,(t=this,function(e){return t.showAddEntryOptions=!0,Ye}))},cT.prototype.renderAddContentOptionsDialog_ss14n$=function(t){var e;this.showAddEntryOptions&&Fj(t,this.systemImpl,void 0,(e=this,function(){var t;return null!=(t=e.mPresenter_0)&&t.onClickNewFolder(),Ye}),function(t){return function(){var e;return null!=(e=t.mPresenter_0)&&e.onClickImportLink(),Ye}}(this),function(t){return function(){var e;return null!=(e=t.mPresenter_0)&&e.onClickImportFile(),Ye}}(this),lT(this))},cT.prototype.showDownloadDialog_y0zsll$=function(t){throw new Cc("An operation is not implemented: showDownloadDialog: Not yet implemented")},cT.prototype.renderEditOptionMenu_ss14n$=function(t){var e;$P(t,op(),void 0,void 0,void 0,void 0,void 0,void 0,(e=this,function(t){var n=e;return Zn(t.css,TE().displayProperty_dqye30$(n.editOptionVisible)),xp(t,"more_vert",void 0,void 0,uT(e),void 0,void 0,void 0,"more-option"),Ye}));var n=Sa.Companion.invoke_f6ihu2$(aT);Hp(n,this.showingEditOptions_0,this.anchorElement_0,hT(this),void 0,void 0,dT(this)),t.child_30b5ua$(n.create())},cT.prototype.onDestroyView=function(){var t;uD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null},pT.$metadata$={kind:Ho,simpleName:"Companion",interfaces:[]};var _T=null;function mT(){return null===_T&&new pT,_T}function fT(t){return new ba(ya.emptyMap,t)}function gT(t){var e;NT(),iD.call(this,t),this.mPresenter_0=null,this.topicList_0=ri(),this.topicsObserver_0=new Ea((e=this,function(t){if(!t.isEmpty())return $a(e,function(t,e){return function(n){return e.topicList_0=t,Ye}}(t,e)),Ye})),this.topics_qc0hh4$_0=null,this.entity_xtgo5z$_0=null}function $T(){return Ye}function ET(t){return function(e){var n,i=null!=(n=t.entity)?n.courseDiscussionDesc:null;return null==i||Pa(i)||$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n;return O_(e,null!=(n=t.entity)?n.courseDiscussionDesc:null),Ye}}(t)),TP(e,t.getString_za3lpa$(2904)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return t.renderTopicListDetail_tf3go2$(e,t.topicList_0),Ye}}(t)),Ye}}function yT(t){AD.call(this,t)}function bT(t,e){return function(n){var i,o;return n.attrs.onClick=function(t){return function(e){return ty().stopEventPropagation_za3rmp$(e),t(e.nativeEvent),Ye}}(t),jP(n,"featured_play_list",null!=(i=e.discussionTopicTitle)?i:"",null!=(o=e.discussionTopicDesc)?o:""),Ye}}function ST(t,e){return function(n){return n.attrs.entries=t,n.attrs.hideDivider=!0,n.attrs.onEntryClicked=function(t){return function(e){var n;return null!=(n=t.mPresenter_0)&&n.onClickTopic_5oep0w$(e),Ye}}(e),Ye}}function vT(){CT=this}cT.$metadata$={kind:Vn,simpleName:"ContentEntryListComponent",interfaces:[_i,uD]},Object.defineProperty(gT.prototype,"detailPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(gT.prototype,"topics",{configurable:!0,get:function(){return this.topics_qc0hh4$_0},set:function(t){this.topics_qc0hh4$_0=t;var e=null!=t?t.getData_vux9f0$(0,2147483647):null;null!=e&&e.removeObserver_fujmse$(this.topicsObserver_0),null!=e&&e.observe_bi6zy5$(this,this.topicsObserver_0)}}),Object.defineProperty(gT.prototype,"entity",{configurable:!0,get:function(){return this.entity_xtgo5z$_0},set:function(t){var e,n;this.ustadComponentTitle=null!=t?t.courseDiscussionTitle:null,$a(this,(e=t,n=this,function(t){return n.entity_xtgo5z$_0=e,Ye}))}}),gT.prototype.onCreateView=function(){var t,e,n,i;iD.prototype.onCreateView.call(this),null!=(t=this.fabManager)&&(t.text=this.getString_za3lpa$(2619)),null!=(e=this.fabManager)&&(e.icon="check"),this.mPresenter_0=new Oc(this,this.arguments,this,this.di,this),null!=(n=this.mPresenter_0)&&n.onCreate(fr()),null!=(i=this.fabManager)&&(i.onClickListener=$T)},gT.prototype.render_ss14n$=function(t){if(null!=this.entity){var e=Sa.Companion.invoke_f6ihu2$(fT),n=e.css;n.unaryPlus_uoyjcc$(TE().defaultDoubleMarginTop),n.unaryPlus_uoyjcc$(TE().contentContainer),gP(e,void 0,void 0,void 0,void 0,void 0,bp(),void 0,void 0,ET(this)),t.child_30b5ua$(e.create())}},yT.prototype.renderListItem_f4dmsf$=function(t,e,n){gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,bT(n,e))},yT.$metadata$={kind:Vn,simpleName:"TopicListDetailComponent",interfaces:[AD]},gT.prototype.renderTopicListDetail_tf3go2$=function(t,e,n){void 0===n&&(n=null),t.child_up9nw1$(We(yT),ST(e,this))},gT.prototype.onDestroyView=function(){var t;iD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null},vT.$metadata$={kind:Ho,simpleName:"Companion",interfaces:[]};var CT=null;function NT(){return null===CT&&new vT,CT}function TT(t){return new ba(ya.emptyMap,t)}function LT(t){var e;oD.call(this,t),this.mPresenter_0=null,this.titleLabel_0=new Lm(this.getString_za3lpa$(2102)),this.descriptionLabel_0=new Lm(this.getStringWithOptionalLabel_za3lpa$(2047)),this.doNotShowBeforeLabel_0=new Lm($y(this.getString_za3lpa$(2841))),this.startTimeLabel_0=new Lm(this.getString_za3lpa$(2611)),this.topicsList_0=ri(),this.topicListObserver_0=new Ea((e=this,function(t){return $a(e,function(t,e){return function(n){return e.topicsList_0=t,Ye}}(t,e)),Ye})),this.blockTitleError_u6nmp0$_0=null,this.startDate_4zkgkv$_0=ra,this.startTime_4qmsdq$_0=ra,this.timeZone_q9y2li$_0=null,this.topicList_7cvs6s$_0=null,this.fieldsEnabled_hu9v2f$_0=!1,this.entity_mr01c$_0=null}function zT(t){return function(e){return $a(t,function(t,e){return function(n){var i,o;return null!=(o=null!=(i=e.entity)?i.courseDiscussion:null)&&(o.courseDiscussionTitle=t),e.blockTitleError=null,Ye}}(e,t)),Ye}}function wT(t){return function(e){return $a(t,function(t,e){return function(n){var i,o;return null!=(o=null!=(i=e.entity)?i.courseDiscussion:null)&&(o.courseDiscussionDesc=t),e.blockTitleError=null,Ye}}(e,t)),Ye}}function OT(t){return function(n){return $a(t,function(t,n){return function(i){return n.startDate=e.Long.fromNumber(t.getTime()),Ye}}(n,t)),Ye}}function RT(t){return function(n){return $a(t,function(t,n){return function(i){return n.startDate=e.Long.fromNumber(t.getTime()),Ye}}(n,t)),Ye}}function AT(t){return function(e){return $P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r;return n=In(t.doNotShowBeforeLabel_0.text),i=t.doNotShowBeforeLabel_0.error,o=t.doNotShowBeforeLabel_0.errorText,r=dy(t.startDate,!0),Cd(e,n,OT(t),r,void 0,o,i,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"outlined"),Ye}}(t)),$P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r;return n=In(t.startTimeLabel_0.text),i=t.startTimeLabel_0.error,o=t.startTimeLabel_0.errorText,r=dy(t.startDate,!0),Nd(e,n,RT(t),r,void 0,o,i,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"outlined"),Ye}}(t)),Ye}}function xT(t){return function(){var e;return $a(t,function(t){return function(e){return t.showAddEntryOptions=!0,Ye}}(t)),null!=(e=t.mPresenter_0)&&e.handleClickAddTopic(),Ye}}function IT(){}function UT(t){AD.call(this,t),this.menuOptions_0=Yo(),this.showPopOverOptions_0=!1,this.anchorElement_0=null}function DT(t){return function(){return $a(t,function(t){return function(e){return t.showPopOverOptions_0=!1,t.anchorElement_0=null,Ye}}(t)),Ye}}function PT(t,e){return function(n){return t.onClick(n),$a(e,function(t){return function(e){return t.showPopOverOptions_0=!1,t.anchorElement_0=null,Ye}}(e)),Ye}}function MT(t,n,i){return function(o){var r;o.attrs.onClick=function(t){return function(e){return ty().stopEventPropagation_za3rmp$(e),t(e.nativeEvent),Ye}}(t);var s=e.isType(r=n.props.presenter,Rc)?r:An();return Ok(o,In(i.discussionTopicTitle),"delete",n.props.withDelete,void 0,function(t,e){return function(n){return t.handleClickDeleteTopic_1ddffl$(e),Ye}}(s,i)),Ye}}function kT(t){iD.call(this,t),this.mPresenter_0=null,this.memberList_o95irr$_0=null,this.entity_488jda$_0=null}function jT(t){return function(e){return jP(e,"person",t.fullName(),void 0,!0,void 0,"h6"),Ye}}function GT(t){return function(e){return TE().contentContainer(e.css),Pp(e,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i;if(TE().horizontalList(e.css),null!=(n=t.memberList))for(i=n.iterator();i.hasNext();){var o,r=i.next(),s=t;Je(r.personUid,ra)?(Fk(e),TP(e,fy(s.getString_za3lpa$(2917),[In(null!=(o=r.member)?o.cgmGroupNumber:null)]))):Mp(e,void 0,void 0,void 0,void 0,void 0,void 0,jT(r))}return Ye}}(t)),Ye}}function qT(t){return new ba(ya.emptyMap,t)}function FT(t){oD.call(this,t),this.mPresenter_0=null,this.groupLabel_0=new Lm(this.getString_za3lpa$(2840)),this.numberOfGroups_0=0,this.memberList_ur3f8g$_0=null,this.groupList_eaxsv3$_0=null,this.fieldsEnabled_hfqqj0$_0=!1,this.groupNumberChangeTaskId=-1,this.entity_ddkzhx$_0=null,this.titleLabel_0=new Lm(this.getString_za3lpa$(2102)),this.numberOfLabel_0=new Lm(this.getString_za3lpa$(2900))}function BT(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.cgsName=t),Ye}}(e,t)),Ye}}function WT(t){return function(e){var n=vr(0===e.length?"0":e);return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.cgsTotalGroups=t),Ye}}(n,t)),window.clearTimeout(t.groupNumberChangeTaskId),t.groupNumberChangeTaskId=window.setTimeout(function(t,e){return function(){var n;return null!=(n=t.mPresenter_0)?(n.handleNumberOfGroupsChanged_za3lpa$(e),Ye):null}}(t,n),1e3),Ye}}function HT(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().defaultFullWidth),e.unaryPlus_uoyjcc$(TE().defaultMarginTop),Lr(e,Br(50)),Ye}function VT(t){return function(e){return cd(e,t.getString_za3lpa$(2901),"secondary","contained",void 0,function(t){return function(e){var n;return null!=(n=t.mPresenter_0)&&n.handleAssignRandomGroupsClicked(),Ye}}(t),"large",void 0,void 0,void 0,void 0,HT),Ye}}function KT(t){return function(e){return $P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a;return n=In(t.titleLabel_0.text),i=t.titleLabel_0.errorText,r=null!=(o=t.entity)?o.cgsName:null,s=t.titleLabel_0.error,a=!t.fieldsEnabled,$_(e,n,r,i,void 0,"outlined",BT(t),void 0,void 0,a,s),Ye}}(t)),$P(e,mp(),sp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a;return n=In(t.numberOfLabel_0.text),i=t.numberOfLabel_0.errorText,r=In(null!=(o=t.entity)?o.cgsTotalGroups:null),s=t.numberOfLabel_0.error,a=!t.fieldsEnabled,$_(e,n,r,i,void 0,"outlined",WT(t),void 0,void 0,a,s),Ye}}(t)),$P(e,mp(),sp(),void 0,void 0,void 0,void 0,void 0,VT(t)),Ye}}function XT(t){return Ye}function JT(t,e,n){return function(i){var o;return JM(i,In(null!=(o=t.member)?o.cgmGroupNumber:null),"person",In(t.firstNames)+" "+In(t.lastName),e.groupList,e.groupLabel_0,function(t,e){return function(n){var i;return null!=(i=xr(t.memberList).get_za3lpa$(e).member)&&(i.cgmGroupNumber=vr(n)),$a(t,XT),Ye}}(e,n)),Ye}}function YT(t){return function(e){return Pp(e,void 0,void 0,void 0,void 0,function(t){return function(e){var n;if(TE().horizontalList(e.css),null!=(n=t.memberList)){var i,o,r=0;for(i=n.iterator();i.hasNext();)Mp(e,void 0,void 0,void 0,void 0,void 0,void 0,JT(i.next(),t,Js((r=(o=r)+1|0,o))))}return Ye}}(t)),Ye}}function QT(t){uD.call(this,t),this.mPresenter_0=null,this.individualList_mbzpw3$_0=null}function ZT(t,e){return function(n){return n.attrs.onClick=function(t,e){return function(n){return ty().stopEventPropagation_za3rmp$(n),e.handleClickEntry_11rc$(t),Ye}}(t,e),jP(n,"groups",t.cgsName,void 0,!0,void 0,"h6"),Ye}}function tL(t){return new ba(ya.emptyMap,t)}function eL(t){oD.call(this,t),this.mPresenter_0=null,this.titleLabel_0=new Lm(this.getString_za3lpa$(2046)),this.titleErrorText_1f17t9$_0=null,this.terminologyTermList_mqaftl$_0=null,this.fieldsEnabled_pu41l0$_0=!1,this.entity_2mbjmb$_0=null}function nL(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.ctTitle=t),e.titleErrorText=null,Ye}}(e,t)),Ye}}function iL(t,e){return function(n){return $a(t,function(t,e,n){return function(i){return xr(e.terminologyTermList).get_za3lpa$(n).term=t,xr(e.terminologyTermList).get_za3lpa$(n).errorMessage=null,Ye}}(n,t,e)),Ye}}function oL(t,e,n,i){return function(o){var r,s,a,c,l;return r=In(t.text),s=t.errorText,a=e.term,c=t.error,l=!n.fieldsEnabled,$_(o,r,a,s,void 0,"outlined",iL(n,i),void 0,void 0,l,c),Ye}}function rL(t){uD.call(this,t),this.mPresenter_0=null}function sL(t){var e;VU.call(this,t),this.mPresenter_0=null,this.typedMessage_0="",this.messages_0=Yo(),this.enterNewLine_0=!1,this.observer_0=new Ea((e=this,function(t){if(!t.isEmpty())return $a(e,function(t,e){return function(n){return e.messages_0=za(t),Ye}}(t,e)),Ye})),this.replies_rq1bt1$_0=null,this.editButtonMode_pkicoo$_0=wa.GONE,this.entity_kmayyk$_0=null}function aL(t){return CP(t,"person",void 0,void 0,void 0,void 0,void 0,"circular"),Ye}function cL(t){return t.css.unaryPlus_uoyjcc$(TE().alignTextToStart),Ye}function lL(t){return function(e){return $a(t,function(t,e){return function(n){return e.typedMessage_0=I_(t),Ye}}(e,t)),Ye}}function uL(){this.key_lgc7r$_0=TE().name+"-chatInputMessageClass",this.className=TE().name+"-chatInputMessageClass"}function hL(t){return Ns(t.css,Cs(1.3)),t.attrs.inputProps=new uL,Ye}function dL(t){return function(e){return TE().chatDetailNewMessage(e.css),Dp(e,t.typedMessage_0,void 0,void 0,void 0,void 0,void 0,void 0,t.getString_za3lpa$(2952),!0,void 0,void 0,"um-message-input",void 0,!0,void 0,Fr.Companion.white,2,lL(t),void 0,function(t){return function(e){var n=e.shiftKey;n&&(n=Je(e.key.toLowerCase(),"enter")),n&&(e.preventDefault(),e.target.value+="\n");var i=!e.shiftKey;return i&&(i=Je(e.key.toLowerCase(),"enter")),i&&(e.preventDefault(),t.handleSendMessage_0()),Ye}}(t),void 0,null,hL),Ye}}function pL(t){return kr(t.css,C_(1)),Ye}function _L(t){return function(e){return TE().messageSendButton(e.css),Ud(e,"send","","secondary",void 0,function(t){return function(e){return ty().stopEventPropagation_za3rmp$(e),t.typedMessage_0.length>0&&t.handleSendMessage_0(),Ye}}(t),"large",void 0,"um-chat-send","circular",pL),Ye}}function mL(t){return function(e){var n=e.css;return n.unaryPlus_uoyjcc$(TE().contentContainer),n.unaryPlus_uoyjcc$(TE().defaultPaddingTop),$P(e,rp(),op(),void 0,void 0,void 0,void 0,void 0,aL),$P(e,hp(),dp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o;return O_(e,(null!=(n=t.entity)?n.authorPersonFirstNames:null)+" "+(null!=(i=t.entity)?i.authorPersonLastName:null),"h6",void 0,void 0,void 0,void 0,void 0,void 0,cL),nw(e,null!=(o=t.entity)?o.discussionPostMessage:null,t.systemImpl,t.accountManager,e),Ye}}(t)),$P(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n;for(cs(e.css,void 0,void 0,C_(10)),n=t.messages_0.iterator();n.hasNext();){var i,o,r=n.next(),s=t,a=Je(s.accountManager.activeAccount.personUid,null!=(i=r.messagePerson)?i.personUid:null);ZM(e,!a,a?s.getString_za3lpa$(2933):null!=(o=r.messagePerson)&&o.fullName(),r.messageText,s.systemImpl,s.accountManager,e,r.messageTimestamp)}return Ye}}(t)),gP(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return TE().messageContainer(e.css),$P(e,mp(),t.typedMessage_0.length>0?pp():mp(),void 0,void 0,void 0,void 0,void 0,dL(t)),t.typedMessage_0.length>0&&$P(e,op(),void 0,void 0,void 0,void 0,void 0,Yn.rowReverse,_L(t)),Ye}}(t)),Ye}}function fL(t){return new ba(ya.emptyMap,t)}function gL(t){oD.call(this,t),this.mPresenter_0=null,this.titleLabel_0=new Lm(this.getString_za3lpa$(2102)),this.descriptionLabel_0=new Lm(this.getStringWithOptionalLabel_za3lpa$(2908)),this.blockTitleError_vmao2x$_0=null,this.fieldsEnabled_6988se$_0=!1,this.entity_5d9y23$_0=null}function $L(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.discussionPostTitle=t),e.blockTitleError=null,Ye}}(e,t)),Ye}}function EL(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.discussionPostMessage=t),e.blockTitleError=null,Ye}}(e,t)),Ye}}function yL(t){return new ba(ya.emptyMap,t)}function bL(t){var e;zL(),iD.call(this,t),this.mPresenter_0=null,this.postList_0=ri(),this.postsObserver_0=new Ea((e=this,function(t){if(!t.isEmpty())return $a(e,function(t,e){return function(n){return e.postList_0=t,Ye}}(t,e)),Ye})),this.posts_177fmh$_0=null,this.entity_dyvsrb$_0=null}function SL(t){return function(e){var n,i=null!=(n=t.entity)?n.discussionTopicDesc:null;return null==i||Pa(i)||$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n;return O_(e,null!=(n=t.entity)?n.discussionTopicDesc:null),Ye}}(t)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return t.renderPostListDetail_0(e,t.postList_0),Ye}}(t)),Ye}}function vL(t){AD.call(this,t)}function CL(t,e,n){return function(i){var o;return i.attrs.onClick=function(t){return function(e){return ty().stopEventPropagation_za3rmp$(e),t(e.nativeEvent),Ye}}(t),$k(i,e.authorPersonFirstNames+" "+e.authorPersonLastName,e.discussionPostMessage,e.postLatestMessage,null!=(o=dy(e.postLatestMessageTimestamp))?cy(o,n.systemImpl.getDisplayedLocale_za3rmp$(i)):null,e.postRepliesCount,n.systemImpl),Ye}}function NL(t,n){return function(i){return i.attrs.entries=t,i.attrs.hideDivider=!0,i.attrs.onEntryClicked=function(t){return function(n){var i,o,r;return r=t.mPresenter_0,o=e.isType(i=n,jc)?i:An(),null!=r&&r.onClickPost_w5x7jm$(o),Ye}}(n),Ye}}function TL(){LL=this}gT.$metadata$={kind:Vn,simpleName:"CourseDiscussionDetailComponent",interfaces:[ko,iD]},Object.defineProperty(LT.prototype,"mEditPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(LT.prototype,"blockTitleError",{configurable:!0,get:function(){return this.blockTitleError_u6nmp0$_0},set:function(t){var e;this.blockTitleError_u6nmp0$_0=t,$a(this,(e=this,function(t){return e.titleLabel_0=e.titleLabel_0.copy_d8n4vg$(void 0,e.blockTitleError_u6nmp0$_0),Ye}))}}),Object.defineProperty(LT.prototype,"startDate",{configurable:!0,get:function(){return this.startDate_4zkgkv$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.startDate_4zkgkv$_0=e,Ye}))}}),Object.defineProperty(LT.prototype,"startTime",{configurable:!0,get:function(){return this.startTime_4qmsdq$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.startTime_4qmsdq$_0=e,Ye}))}}),Object.defineProperty(LT.prototype,"timeZone",{configurable:!0,get:function(){return this.timeZone_q9y2li$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.timeZone_q9y2li$_0=e,Ye}))}}),Object.defineProperty(LT.prototype,"topicList",{configurable:!0,get:function(){return this.topicList_7cvs6s$_0},set:function(t){var e;null!=(e=this.topicList_7cvs6s$_0)&&e.removeObserver_fujmse$(this.topicListObserver_0),this.topicList_7cvs6s$_0=t,null!=t&&t.observe_bi6zy5$(this,this.topicListObserver_0)}}),Object.defineProperty(LT.prototype,"fieldsEnabled",{configurable:!0,get:function(){return this.fieldsEnabled_hu9v2f$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.fieldsEnabled_hu9v2f$_0=e,Ye}))}}),Object.defineProperty(LT.prototype,"entity",{configurable:!0,get:function(){return this.entity_mr01c$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.entity_mr01c$_0=e,Ye}))}}),LT.prototype.onCreateView=function(){var t,n,i,o,r;oD.prototype.onCreateView.call(this),this.mPresenter_0=new Rc(this,this.arguments,this,this,this.di),this.setEditTitle_vux9f0$(2950,2951),Xa.Napier.d_82mfvz$("CourseDiscussionEditComponent: navController viewName = "+In(null!=(t=this.navController.currentBackStackEntry)?t.viewName:null)+"stateHandle="+In(null!=(o=e.isType(i=null!=(n=this.navController.currentBackStackEntry)?n.savedStateHandle:null,aa)?i:null)?o.dumpToString():null)),null!=(r=this.mPresenter_0)&&r.onCreate(my(this.navController))},LT.prototype.render_ss14n$=function(t){var e,n,i=Sa.Companion.invoke_f6ihu2$(TT);i.css.unaryPlus_uoyjcc$(TE().fieldsOnlyFormScreen),$P(i,mp(),void 0,void 0,void 0,void 0,void 0,void 0,(n=this,function(t){var e,i,o,r,s,a,c;return e=In(n.titleLabel_0.text),i=n.titleLabel_0.errorText,s=null!=(r=null!=(o=n.entity)?o.courseDiscussion:null)?r.courseDiscussionTitle:null,a=n.titleLabel_0.error,c=!n.fieldsEnabled,$_(t,e,s,i,void 0,"outlined",zT(n),void 0,void 0,c,a),Ye})),$P(i,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a,c;return n=In(t.descriptionLabel_0.text),i=t.descriptionLabel_0.errorText,s=null!=(r=null!=(o=t.entity)?o.courseDiscussion:null)?r.courseDiscussionDesc:null,a=t.descriptionLabel_0.error,c=!t.fieldsEnabled,$_(e,n,s,i,void 0,"outlined",wT(t),void 0,void 0,c,a),Ye}}(this)),gP(i,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,AT(this)),TP(i,this.getString_za3lpa$(2904));var o=new RD(!0,this.getString_za3lpa$(2905),xT(this));null!=(e=this.mPresenter_0)&&this.renderTopics_0(i,e,yr(Za(this.topicsList_0)),o,function(t){return function(e,n){var i;return null!=(i=t.mPresenter_0)&&i.onItemMove_vux9f0$(e,n),Ye}}(this),function(t){return function(e){var n;return null!=(n=t.mPresenter_0)&&n.handleClickTopic_1ddffl$(e),Ye}}(this)),Fk(i),t.child_30b5ua$(i.create())},LT.prototype.renderTopics_0=function(t,e,n,i,o,r){var s,a,c,l,u;void 0===i&&(i=new RD),void 0===r&&(r=null),t.child_up9nw1$(We(UT),(s=n,a=e,c=r,l=i,u=o,function(t){return t.attrs.entries=s,t.attrs.presenter=a,t.attrs.draggable=!0,t.attrs.onEntryClicked=c,t.attrs.createNewItem=l,t.attrs.onSortEnd=u,Ye}))},IT.$metadata$={kind:$r,simpleName:"DiscussionTopicListProps",interfaces:[OD]},UT.prototype.renderMoreDialogOptions_ss14n$=function(t){var e;Hp(t,this.showPopOverOptions_0,this.anchorElement_0,DT(this),void 0,void 0,(e=this,function(t){var n,i,o=e.menuOptions_0,r=Yo();for(n=o.iterator();n.hasNext();){var s=n.next();s.show&&r.add_11rb$(s)}for(i=r.iterator();i.hasNext();){var a=i.next(),c=e;Vp(t," "+c.getString_za3lpa$(a.titleId)+" ",void 0,void 0,void 0,void 0,void 0,void 0,PT(a,c))}return Ye}))},UT.prototype.renderListItem_f4dmsf$=function(t,e,n){gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,MT(n,this,e))},UT.$metadata$={kind:Vn,simpleName:"DiscussionTopicListComponent",interfaces:[AD]},LT.prototype.onDestroyView=function(){var t;oD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null,this.blockTitleError=null},LT.$metadata$={kind:Vn,simpleName:"CourseDiscussionEditComponent",interfaces:[Po,oD]},Object.defineProperty(kT.prototype,"detailPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(kT.prototype,"memberList",{configurable:!0,get:function(){return this.memberList_o95irr$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.memberList_o95irr$_0=e,Ye}))}}),Object.defineProperty(kT.prototype,"entity",{configurable:!0,get:function(){return this.entity_488jda$_0},set:function(t){var e,n;this.entity_488jda$_0=t,this.updateUiWithStateChangeDelay_n53o35$(void 0,(e=t,n=this,function(){return n.ustadComponentTitle=null!=e?e.cgsName:null,Ye}))}}),kT.prototype.onCreateView=function(){var t;iD.prototype.onCreateView.call(this),this.mPresenter_0=new Ac(this,this.arguments,this,this,this.di),null!=(t=this.mPresenter_0)&&t.onCreate(my(this.navController))},kT.prototype.render_ss14n$=function(t){gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,GT(this))},kT.prototype.onDestroyView=function(){iD.prototype.onDestroyView.call(this),this.mPresenter_0=null},kT.$metadata$={kind:Vn,simpleName:"CourseGroupSetDetailComponent",interfaces:[Io,iD]},Object.defineProperty(FT.prototype,"mEditPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(FT.prototype,"memberList",{configurable:!0,get:function(){return this.memberList_ur3f8g$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.memberList_ur3f8g$_0=e,Ye}))}}),Object.defineProperty(FT.prototype,"groupList",{configurable:!0,get:function(){return this.groupList_eaxsv3$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.groupList_eaxsv3$_0=e,Ye}))}}),Object.defineProperty(FT.prototype,"fieldsEnabled",{configurable:!0,get:function(){return this.fieldsEnabled_hfqqj0$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.fieldsEnabled_hfqqj0$_0=e,Ye}))}}),Object.defineProperty(FT.prototype,"entity",{configurable:!0,get:function(){return this.entity_ddkzhx$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.entity_ddkzhx$_0=e,Ye}))}}),FT.prototype.onCreateView=function(){var t;oD.prototype.onCreateView.call(this),this.mPresenter_0=new xc(this,this.arguments,this,this,this.di),this.setEditTitle_vux9f0$(2902,2920),null!=(t=this.mPresenter_0)&&t.onCreate(my(this.navController))},FT.prototype.render_ss14n$=function(t){var e=Sa.Companion.invoke_f6ihu2$(qT),n=e.css;n.unaryPlus_uoyjcc$(TE().contentContainer),n.unaryPlus_uoyjcc$(TE().defaultPaddingTop),gP(e,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,KT(this)),Fk(e),$P(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,YT(this)),t.child_30b5ua$(e.create())},FT.prototype.onDestroyView=function(){var t;oD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null},FT.$metadata$={kind:Vn,simpleName:"CourseGroupSetEditComponent",interfaces:[xo,oD]},Object.defineProperty(QT.prototype,"displayTypeRepo",{configurable:!0,get:function(){var t;return null!=(t=this.dbRepo)?t.courseGroupSetDao:null}}),Object.defineProperty(QT.prototype,"listPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(QT.prototype,"individualList",{configurable:!0,get:function(){return this.individualList_mbzpw3$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.individualList_mbzpw3$_0=e,Ye}))}}),QT.prototype.onCreateView=function(){var t,e;uD.prototype.onCreateView.call(this),this.ustadComponentTitle=this.getString_za3lpa$(2451),this.showCreateNewItem=!0,this.addNewEntryText=this.getString_za3lpa$(2902),null!=(t=this.fabManager)&&(t.text=this.getString_za3lpa$(2451)),this.mPresenter_0=new Ic(this,this.arguments,this,this.di,this),null!=(e=this.mPresenter_0)&&e.onCreate(fr())},QT.prototype.renderListJoinView_ss14n$=function(t){var e;Pp(t,void 0,void 0,void 0,void 0,(e=this,function(t){var n,i;if(TE().horizontalList(t.css),null!=(n=e.individualList))for(i=n.iterator();i.hasNext();)Mp(t,void 0,void 0,void 0,void 0,void 0,void 0,ZT(i.next(),e));return Ye}))},QT.prototype.renderListItem_js0tu9$=function(t,e){jP(t,"groups",e.cgsName,void 0,!0,void 0,"h6")},QT.prototype.handleClickEntry_11rc$=function(t){var e;null!=(e=this.mPresenter_0)&&e.handleClickEntry_11rc$(t)},QT.prototype.onDestroyView=function(){var t;uD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null},QT.$metadata$={kind:Vn,simpleName:"CourseGroupSetListComponent",interfaces:[Ao,uD]},Object.defineProperty(eL.prototype,"mEditPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(eL.prototype,"titleErrorText",{configurable:!0,get:function(){return this.titleErrorText_1f17t9$_0},set:function(t){var e,n;this.titleErrorText_1f17t9$_0=t,$a(this,(e=this,n=t,function(t){return e.titleLabel_0=e.titleLabel_0.copy_d8n4vg$(void 0,n),Ye}))}}),Object.defineProperty(eL.prototype,"terminologyTermList",{configurable:!0,get:function(){return this.terminologyTermList_mqaftl$_0},set:function(t){var e,n;this.terminologyTermList_mqaftl$_0=t,$a(this,(e=t,n=this,function(t){return n.terminologyTermList_mqaftl$_0=e,Ye}))}}),Object.defineProperty(eL.prototype,"fieldsEnabled",{configurable:!0,get:function(){return this.fieldsEnabled_pu41l0$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.fieldsEnabled_pu41l0$_0=e,Ye}))}}),Object.defineProperty(eL.prototype,"entity",{configurable:!0,get:function(){return this.entity_2mbjmb$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.entity_2mbjmb$_0=e,Ye}))}}),eL.prototype.onCreateView=function(){var t;oD.prototype.onCreateView.call(this),this.mPresenter_0=new Uc(this,this.arguments,this,this,this.di),this.setEditTitle_vux9f0$(2896,2897),null!=(t=this.mPresenter_0)&&t.onCreate(my(this.navController))},eL.prototype.render_ss14n$=function(t){var e,n=Sa.Companion.invoke_f6ihu2$(tL);n.css.unaryPlus_uoyjcc$(TE().fieldsOnlyFormScreen),$P(n,mp(),void 0,void 0,void 0,void 0,void 0,void 0,(e=this,function(t){var n,i,o,r,s,a;return n=In(e.titleLabel_0.text),i=e.titleLabel_0.errorText,r=null!=(o=e.entity)?o.ctTitle:null,s=e.titleLabel_0.error,a=!e.fieldsEnabled,$_(t,n,r,i,void 0,"outlined",nL(e),void 0,void 0,a,s),Ye})),Fk(n),TP(n,this.getString_za3lpa$(2898)),Fk(n),gP(n,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n;if(null!=(n=t.terminologyTermList)){var i,o,r=0;for(i=n.iterator();i.hasNext();){var s=i.next(),a=t,c=Js((r=(o=r)+1|0,o)),l=new Lm(a.getString_za3lpa$(s.messageId),s.errorMessage);$P(e,lp(),void 0,void 0,void 0,void 0,void 0,void 0,oL(l,s,a,c))}}return Ye}}(this)),t.child_30b5ua$(n.create())},eL.prototype.onDestroyView=function(){var t;oD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null,this.titleErrorText=null},eL.$metadata$={kind:Vn,simpleName:"CourseTerminologyEditComponent",interfaces:[io,oD]},Object.defineProperty(rL.prototype,"displayTypeRepo",{configurable:!0,get:function(){var t;return null!=(t=this.dbRepo)?t.courseTerminologyDao:null}}),Object.defineProperty(rL.prototype,"listPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),rL.prototype.onCreateView=function(){var t,e;uD.prototype.onCreateView.call(this),this.ustadComponentTitle=this.getString_za3lpa$(2895),this.showCreateNewItem=!0,this.addNewEntryText=this.getString_za3lpa$(2896),null!=(t=this.fabManager)&&(t.visible=!1),this.mPresenter_0=new Dc(this,this.arguments,this,this.di,this),null!=(e=this.mPresenter_0)&&e.onCreate(fr())},rL.prototype.renderListItem_js0tu9$=function(t,e){jP(t,"language",e.ctTitle,void 0,!0)},rL.prototype.handleClickEntry_11rc$=function(t){var e;null!=(e=this.mPresenter_0)&&e.onClickCourseTerminology_9k9ym$(t)},rL.prototype.onDestroyView=function(){var t;uD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null},rL.$metadata$={kind:Vn,simpleName:"CourseTerminologyListComponent",interfaces:[no,uD]},Object.defineProperty(sL.prototype,"title",{configurable:!0,get:function(){return this.ustadComponentTitle},set:function(t){this.ustadComponentTitle=t}}),Object.defineProperty(sL.prototype,"replies",{configurable:!0,get:function(){return this.replies_rq1bt1$_0},set:function(t){this.replies_rq1bt1$_0=t;var e=null!=t?t.getData_vux9f0$(0,2147483647):null;null!=e&&e.removeObserver_fujmse$(this.observer_0),null!=e&&e.observe_bi6zy5$(this,this.observer_0)}}),Object.defineProperty(sL.prototype,"editButtonMode",{configurable:!0,get:function(){return this.editButtonMode_pkicoo$_0},set:function(t){this.editButtonMode_pkicoo$_0=t}}),Object.defineProperty(sL.prototype,"entity",{configurable:!0,get:function(){return this.entity_kmayyk$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.entity_kmayyk$_0=e,Ye})),null!=(null!=t?t.discussionPostTitle:null)&&this.updateUiWithStateChangeDelay_n53o35$(void 0,function(t,e){return function(){return e.ustadComponentTitle=t.discussionPostTitle,Ye}}(t,this))}}),sL.prototype.onCreateView=function(){var t,e;VU.prototype.onCreateView.call(this),null!=(t=this.fabManager)&&(t.visible=!1),this.mPresenter_0=new Pc(this,this.arguments,this,this.di),null!=(e=this.mPresenter_0)&&e.onCreate(fr())},Object.defineProperty(uL.prototype,"key",{configurable:!0,get:function(){return this.key_lgc7r$_0},set:function(t){this.key_lgc7r$_0=t}}),uL.$metadata$={kind:Vn,interfaces:[]},sL.prototype.render_ss14n$=function(t){gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,mL(this))},sL.prototype.handleSendMessage_0=function(){var t,e;this.typedMessage_0.length>0&&(null!=(t=this.mPresenter_0)&&t.addMessage_61zpoe$(this.typedMessage_0),$a(this,(e=this,function(t){return e.typedMessage_0="",Ye})))},sL.prototype.onDestroyView=function(){VU.prototype.onDestroyView.call(this),this.mPresenter_0=null},sL.$metadata$={kind:Vn,simpleName:"DiscussionPostDetailComponent",interfaces:[qo,VU]},Object.defineProperty(gL.prototype,"mEditPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(gL.prototype,"blockTitleError",{configurable:!0,get:function(){return this.blockTitleError_vmao2x$_0},set:function(t){var e;this.blockTitleError_vmao2x$_0=t,$a(this,(e=this,function(t){return e.titleLabel_0=e.titleLabel_0.copy_d8n4vg$(void 0,e.blockTitleError_vmao2x$_0),Ye}))}}),Object.defineProperty(gL.prototype,"fieldsEnabled",{configurable:!0,get:function(){return this.fieldsEnabled_6988se$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.fieldsEnabled_6988se$_0=e,Ye}))}}),Object.defineProperty(gL.prototype,"entity",{configurable:!0,get:function(){return this.entity_5d9y23$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.entity_5d9y23$_0=e,Ye}))}}),gL.prototype.onCreateView=function(){var t,n,i,o,r;oD.prototype.onCreateView.call(this),this.mPresenter_0=new Mc(this,this.arguments,this,this.di,this),this.setEditTitle_vux9f0$(2936,2936),Xa.Napier.d_82mfvz$("DiscussionPostEditComponent: navController viewName = "+In(null!=(t=this.navController.currentBackStackEntry)?t.viewName:null)+"stateHandle="+In(null!=(o=e.isType(i=null!=(n=this.navController.currentBackStackEntry)?n.savedStateHandle:null,aa)?i:null)?o.dumpToString():null)),null!=(r=this.mPresenter_0)&&r.onCreate(my(this.navController))},gL.prototype.render_ss14n$=function(t){var e,n=Sa.Companion.invoke_f6ihu2$(fL);n.css.unaryPlus_uoyjcc$(TE().fieldsOnlyFormScreen),$P(n,mp(),void 0,void 0,void 0,void 0,void 0,void 0,(e=this,function(t){var n,i,o,r,s,a;return n=In(e.titleLabel_0.text),i=e.titleLabel_0.errorText,r=null!=(o=e.entity)?o.discussionPostTitle:null,s=e.titleLabel_0.error,a=!e.fieldsEnabled,$_(t,n,r,i,void 0,"outlined",$L(e),void 0,void 0,a,s),Ye})),$P(n,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a;return n=In(t.descriptionLabel_0.text),i=t.descriptionLabel_0.errorText,r=null!=(o=t.entity)?o.discussionPostMessage:null,s=t.descriptionLabel_0.error,a=!t.fieldsEnabled,$_(e,n,r,i,void 0,"outlined",EL(t),void 0,void 0,a,s),Ye}}(this)),t.child_30b5ua$(n.create())},gL.prototype.onDestroyView=function(){var t;oD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null,this.blockTitleError=null},gL.$metadata$={kind:Vn,simpleName:"DiscussionPostEditComponent",interfaces:[Go,oD]},Object.defineProperty(bL.prototype,"detailPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(bL.prototype,"posts",{configurable:!0,get:function(){return this.posts_177fmh$_0},set:function(t){this.posts_177fmh$_0=t;var e=null!=t?t.getData_vux9f0$(0,2147483647):null;null!=e&&e.removeObserver_fujmse$(this.postsObserver_0),null!=e&&e.observe_bi6zy5$(this,this.postsObserver_0)}}),Object.defineProperty(bL.prototype,"entity",{configurable:!0,get:function(){return this.entity_dyvsrb$_0},set:function(t){var e,n;this.ustadComponentTitle=null!=t?t.discussionTopicTitle:null,$a(this,(e=t,n=this,function(t){return n.entity_dyvsrb$_0=e,Ye}))}}),bL.prototype.onCreateView=function(){var t,e,n,i,o,r,s,a,c,l,u;iD.prototype.onCreateView.call(this),null!=(t=this.fabManager)&&(t.visible=!0),null!=(e=this.fabManager)&&(e.text=this.getString_za3lpa$(2936)),null!=(n=this.fabManager)&&(n.icon="add"),null!=(i=this.fabManager)&&(i.visible=!0),this.mPresenter_0=new kc(this,this.arguments,this,this.di,this),null!=(o=this.mPresenter_0)&&o.onCreate(fr()),null!=(r=this.fabManager)&&(r.visible=!0),null!=(s=this.fabManager)&&(s.text=this.getString_za3lpa$(2936)),null!=(a=this.fabManager)&&(a.icon="add"),null!=(c=this.fabManager)&&(c.visible=!0),null!=(l=this.fabManager)&&(l.onClickListener=(u=this,function(){var t;return null!=(t=u.mPresenter_0)&&t.onClickAddPost(),Ye}))},bL.prototype.render_ss14n$=function(t){if(null!=this.entity){var e=Sa.Companion.invoke_f6ihu2$(yL),n=e.css;n.unaryPlus_uoyjcc$(TE().defaultDoubleMarginTop),n.unaryPlus_uoyjcc$(TE().contentContainer),gP(e,void 0,void 0,void 0,void 0,void 0,bp(),void 0,void 0,SL(this)),t.child_30b5ua$(e.create())}},vL.prototype.renderListItem_f4dmsf$=function(t,e,n){gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,CL(n,e,this))},vL.$metadata$={kind:Vn,simpleName:"PostListDetailComponent",interfaces:[AD]},bL.prototype.renderPostListDetail_0=function(t,e,n){void 0===n&&(n=null),t.child_up9nw1$(We(vL),NL(e,this))},bL.prototype.onDestroyView=function(){var t;iD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null},TL.$metadata$={kind:Ho,simpleName:"Companion",interfaces:[]};var LL=null;function zL(){return null===LL&&new TL,LL}function wL(t){return new ba(ya.emptyMap,t)}function OL(t){oD.call(this,t),this.mPresenter_0=null,this.titleLabel_0=new Lm(this.getString_za3lpa$(2905)),this.descriptionLabel_0=new Lm(this.getStringWithOptionalLabel_za3lpa$(2047)),this.blockTitleError_jp65sa$_0=null,this.fieldsEnabled_do20sr$_0=!1,this.entity_22tyda$_0=null}function RL(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.discussionTopicTitle=t),e.blockTitleError=null,Ye}}(e,t)),Ye}}function AL(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.discussionTopicDesc=t),e.blockTitleError=null,Ye}}(e,t)),Ye}}function xL(t){VU.call(this,t),this.setContainerTitle_46e63u$_0=null,this.windowTitle_lbb1lx$_0=null,this.setSpineUrls_pacq3w$_0=null,this.setTableOfContents_i392cs$_0=null,this.setCoverImage_id1rst$_0=null,this.setAuthorName_xmurh1$_0="",this.setProgressBarVisible_3pk7pn$_0=!1,this.setProgressBarProgress_jska00$_0=-1,this.mPresenter_0=null}function IL(t){return new ba(ya.emptyMap,t)}function UL(t){var n;Fc(t,this),this.impl_d2p97v$_0=Hs(t.di,e.isType(n=On(He(We(Be),[],!1)),Rn)?n:An(),null).provideDelegate_tpuvb9$(this,qL)}bL.$metadata$={kind:Vn,simpleName:"DiscussionTopicDetailComponent",interfaces:[jo,iD]},Object.defineProperty(OL.prototype,"mEditPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(OL.prototype,"blockTitleError",{configurable:!0,get:function(){return this.blockTitleError_jp65sa$_0},set:function(t){var e;this.blockTitleError_jp65sa$_0=t,$a(this,(e=this,function(t){return e.titleLabel_0=e.titleLabel_0.copy_d8n4vg$(void 0,e.blockTitleError_jp65sa$_0),Ye}))}}),Object.defineProperty(OL.prototype,"fieldsEnabled",{configurable:!0,get:function(){return this.fieldsEnabled_do20sr$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.fieldsEnabled_do20sr$_0=e,Ye}))}}),Object.defineProperty(OL.prototype,"entity",{configurable:!0,get:function(){return this.entity_22tyda$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.entity_22tyda$_0=e,Ye}))}}),OL.prototype.onCreateView=function(){var t,n,i,o,r;oD.prototype.onCreateView.call(this),this.mPresenter_0=new Gc(this,this.arguments,this,this,this.di),this.setEditTitle_vux9f0$(2923,2882),Xa.Napier.d_82mfvz$("DiscussionTopicEditComponent: navController viewName = "+In(null!=(t=this.navController.currentBackStackEntry)?t.viewName:null)+"stateHandle="+In(null!=(o=e.isType(i=null!=(n=this.navController.currentBackStackEntry)?n.savedStateHandle:null,aa)?i:null)?o.dumpToString():null)),null!=(r=this.mPresenter_0)&&r.onCreate(my(this.navController))},OL.prototype.render_ss14n$=function(t){var e,n=Sa.Companion.invoke_f6ihu2$(wL);n.css.unaryPlus_uoyjcc$(TE().fieldsOnlyFormScreen),$P(n,mp(),void 0,void 0,void 0,void 0,void 0,void 0,(e=this,function(t){var n,i,o,r,s,a;return n=In(e.titleLabel_0.text),i=e.titleLabel_0.errorText,r=null!=(o=e.entity)?o.discussionTopicTitle:null,s=e.titleLabel_0.error,a=!e.fieldsEnabled,$_(t,n,r,i,void 0,"outlined",RL(e),void 0,void 0,a,s),Ye})),$P(n,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a;return n=In(t.descriptionLabel_0.text),i=t.descriptionLabel_0.errorText,r=null!=(o=t.entity)?o.discussionTopicDesc:null,s=t.descriptionLabel_0.error,a=!t.fieldsEnabled,$_(e,n,r,i,void 0,"outlined",AL(t),void 0,void 0,a,s),Ye}}(this)),t.child_30b5ua$(n.create())},OL.prototype.onDestroyView=function(){var t;oD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null,this.blockTitleError=null},OL.$metadata$={kind:Vn,simpleName:"DiscussionTopicEditComponent",interfaces:[Mo,oD]},Object.defineProperty(xL.prototype,"setContainerTitle",{configurable:!0,get:function(){return this.setContainerTitle_46e63u$_0},set:function(t){this.ustadComponentTitle=t,this.setContainerTitle_46e63u$_0=t}}),Object.defineProperty(xL.prototype,"windowTitle",{configurable:!0,get:function(){return this.windowTitle_lbb1lx$_0},set:function(t){this.windowTitle_lbb1lx$_0=t}}),Object.defineProperty(xL.prototype,"setSpineUrls",{configurable:!0,get:function(){return this.setSpineUrls_pacq3w$_0},set:function(t){var e,n;this.loading=null==t,$a(this,(e=t,n=this,function(t){return n.setSpineUrls_pacq3w$_0=e,Ye}))}}),Object.defineProperty(xL.prototype,"setTableOfContents",{configurable:!0,get:function(){return this.setTableOfContents_i392cs$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.setTableOfContents_i392cs$_0=e,Ye}))}}),Object.defineProperty(xL.prototype,"setCoverImage",{configurable:!0,get:function(){return this.setCoverImage_id1rst$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.setCoverImage_id1rst$_0=e,Ye}))}}),Object.defineProperty(xL.prototype,"setAuthorName",{configurable:!0,get:function(){return this.setAuthorName_xmurh1$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.setAuthorName_xmurh1$_0=e,Ye}))}}),Object.defineProperty(xL.prototype,"setProgressBarVisible",{configurable:!0,get:function(){return this.setProgressBarVisible_3pk7pn$_0},set:function(t){this.loading=t,this.setProgressBarVisible_3pk7pn$_0=t}}),Object.defineProperty(xL.prototype,"setProgressBarProgress",{configurable:!0,get:function(){return this.setProgressBarProgress_jska00$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.setProgressBarProgress_jska00$_0=e,Ye}))}}),xL.prototype.scrollToSpinePosition_vqvrqt$$default=function(t,e){},xL.prototype.onCreateView=function(){var t,e;VU.prototype.onCreateView.call(this),null!=(t=this.fabManager)&&(t.visible=!1),this.mPresenter_0=new qc(this,this.arguments,this,this.di),null!=(e=this.mPresenter_0)&&e.onCreate(fr())},xL.prototype.render_ss14n$=function(t){var e=this.setSpineUrls;null!=e&&yz(t,e,void 0,!0)},xL.prototype.onDestroyView=function(){var t;VU.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.setTableOfContents=null,this.setSpineUrls=null,this.windowTitle=null,this.setContainerTitle=null},xL.$metadata$={kind:Vn,simpleName:"EpubContentComponent",interfaces:[Ni,VU]};var DL,PL,ML,kL,jL,GL,qL=new Cr("impl");function FL(t){return kr(t.css,Br(20)),Ye}function BL(t){return function(e,n){return gP(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){TE().centerContainer(e.css);var n=Sa.Companion.invoke_f6ihu2$(IL),i=t,o=n.css;return o.unaryPlus_uoyjcc$(TE().alignCenterItems),cs(o,C_(12)),Mr(o,new ai("30% !important")),Rp(n,"warning",void 0,void 0,TE().name+"-tabWarningIconClass"),O_(n,i.impl.getString(2837,n),"h5","center",void 0,void 0,void 0,void 0,void 0,FL),e.child_30b5ua$(n.create()),Ye}}(t)),Ye}}function WL(t,e){var n;t.child_up9nw1$(We(UL),(n=e,function(t){return t.attrs.di=n,Ye}))}function HL(t,e,n,i,o,r){void 0===t&&(t=null),void 0===e&&(e=null),void 0===n&&(n=null),void 0===i&&(i=null),void 0===o&&(o=null),void 0===r&&(r=null),this.title=t,this.hAxis=e,this.xAxis=n,this.seriesType=i,this.series=o,this.colors=r}function VL(t,e){Hn.call(this),this.name$=t,this.ordinal$=e}function KL(){KL=function(){},PL=new VL("ColumnChart",0),ML=new VL("ComboChart",1),kL=new VL("LineChart",2)}function XL(){return KL(),PL}function JL(){return KL(),ML}function YL(){return KL(),kL}function QL(t,e,n,i,o,r,s,a){return void 0===n&&(n="100%"),void 0===i&&(i="400px"),void 0===o&&(o=XL()),void 0===r&&(r=null),void 0===s&&(s=null),void 0===a&&(a=null),U_(t,DL,s,a,(c=n,l=i,u=o,h=e,d=r,function(t){return t.attrs.width=In(c),t.attrs.height=In(l),t.attrs.chartType=u.toString(),t.attrs.data=h,t.attrs.options=d,Ye}));var c,l,u,h,d}function ZL(t){return new ba(ya.emptyMap,t)}function tz(t){var e;oD.call(this,t),this.mPresenter_0=null,this.holidays_0=ri(),this.holidayObserver_0=new Ea((e=this,function(t){return $a(e,function(t,e){return function(n){return e.holidays_0=t,Ye}}(t,e)),Ye})),this.holidayList_7ejnsk$_0=null,this.holidayLabel_0=new Lm(this.getString_za3lpa$(2046)),this.fieldsEnabled_ldrnq2$_0=!1,this.entity_pbf9kh$_0=null}function ez(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.umCalendarName=t),Ye}}(e,t)),Ye}}function nz(t){return function(e){return zs(e.css,C_(2),C_(2),C_(0)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a;return n=In(t.holidayLabel_0.text),i=t.holidayLabel_0.errorText,r=null!=(o=t.entity)?o.umCalendarName:null,s=t.holidayLabel_0.error,a=!t.fieldsEnabled,$_(e,n,r,i,void 0,"outlined",ez(t),void 0,void 0,a,s),Ye}}(t)),Ye}}function iz(t){AD.call(this,t)}function oz(t,e){return function(n){return n.attrs.onClick=function(t){return function(e){return t(e.nativeEvent),Ye}}(t),jP(n,"date_range",e.holName,iy(new Date(e.holStartTime))+" - "+iy(new Date(e.holEndTime)),!0),Ye}}function rz(t,e,n,i){var o,r,s;void 0===n&&(n=new RD),void 0===i&&(i=null),t.child_up9nw1$(We(iz),(o=e,r=i,s=n,function(t){return t.attrs.entries=o,t.attrs.onEntryClicked=r,t.attrs.createNewItem=s,t.attrs.mainList=!0,Ye}))}function sz(t){uD.call(this,t),this.mPresenter_0=null}function az(t){return new ba(ya.emptyMap,t)}function cz(t){oD.call(this,t),this.mPresenter_0=null,this.holidayName_0=new Lm(this.getString_za3lpa$(2046)),this.holidayStart_0=new Lm(this.getString_za3lpa$(2510)),this.holidayEnd_0=new Lm(this.getString_za3lpa$(2511)),this.fieldsEnabled_hrvbek$_0=!1,this.entity_vlo4t$_0=null,this.loading_lha7ig$_0=!1}function lz(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.holName=t),Ye}}(e,t)),Ye}}function uz(t){return Ye}function hz(t){return function(n){return $a(t,function(t,n){return function(i){var o;return null!=(o=n.entity)&&(o.holStartTime=e.Long.fromNumber(t.getTime())),Ye}}(n,t)),Ye}}function dz(t){return function(n){return $a(t,function(t,n){return function(i){var o;return null!=(o=n.entity)&&(o.holEndTime=e.Long.fromNumber(t.getTime())),Ye}}(n,t)),Ye}}function pz(t){return function(e){return $P(e,lp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s;return n=In(t.holidayStart_0.text),i=t.holidayStart_0.error,o=t.holidayStart_0.errorText,s=dy(null!=(r=t.entity)?r.holStartTime:null),Cd(e,n,hz(t),s,void 0,o,i,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"outlined"),Ye}}(t)),$P(e,lp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s;return n=In(t.holidayEnd_0.text),i=t.holidayEnd_0.error,o=t.holidayEnd_0.errorText,s=dy(null!=(r=t.entity)?r.holEndTime:null),Cd(e,n,dz(t),s,void 0,o,i,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"outlined"),Ye}}(t)),Ye}}function _z(t){return function(e){return zs(e.css,C_(2),C_(2),C_(0)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a;return n=In(t.holidayName_0.text),i=t.holidayName_0.errorText,r=null!=(o=t.entity)?o.holName:null,s=t.holidayName_0.error,a=!t.fieldsEnabled,$_(e,n,r,i,void 0,"outlined",lz(t),void 0,void 0,a,s,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,uz),Ye}}(t)),gP(e,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,pz(t)),Ye}}function mz(t){iD.call(this,t),this.mPresenter_0=null,this.title_tv39nr$_0=null,this.entity_72s5i8$_0=null}function fz(t){return function(e){return new ol(il("sandbox",null!=t?nl(t):null),e)}}function gz(t){return new ba(ya.emptyMap,t)}function $z(t){Fc(t,this),this.sourcesUrlToLoad_0=ri(),this.paginateOnScrollManager_0=null}function Ez(t,e){return function(n){if(t.props.contentTypeEpub){n.target.contentWindow;var i=document.getElementById(e),o=i.contentDocument||i.contentWindow.document,r=vr(o.body.scrollHeight.toString());i.style.height=(r+.1*r).toString()+"px"}return Ye}}function yz(t,e,n,i){var o,r,s;void 0===n&&(n=10),void 0===i&&(i=!1),t.child_up9nw1$(We($z),(o=n,r=e,s=i,function(t){return t.attrs.pageSize=o,t.attrs.sources=el(r),t.attrs.contentTypeEpub=s,Ye}))}function bz(t){return new ba(ya.emptyMap,t)}function Sz(t){VU.call(this,t),this.mPresenter_0=null,this.inviteLink_xwulzk$_0=null,this.entityName_c6fu3p$_0=null,this.inviteCode_y1p4yr$_0=null}function vz(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().defaultPaddingTopBottom),e.unaryPlus_uoyjcc$(TE().alignTextToStart),Ye}function Cz(t){return function(e){var n,i,o;return i=null!=(n=t.inviteLink)?n:"",o=function(t){return function(){return t.showSnackBar_9pu0dj$(t.getString_za3lpa$(2653)),Ye}}(t),ty().copyToClipboard_a4mwiz$(i,o),Ye}}function Nz(t){return function(e){var n,i,o;return i=null!=(n=t.inviteCode)?n:"",o=function(t){return function(){return t.showSnackBar_9pu0dj$(t.getString_za3lpa$(2653)),Ye}}(t),ty().copyToClipboard_a4mwiz$(i,o),Ye}}function Tz(t){return function(e){return TE().defaultDoubleMarginTop(e.css),$P(e,mp(),sp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return TE().alignCenterItems(e.css),cd(e,t.getString_za3lpa$(2655),"secondary","contained",void 0,Cz(t),"large","content_copy"),Ye}}(t)),$P(e,mp(),sp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return TE().alignCenterItems(e.css),cd(e,t.getString_za3lpa$(2656),"secondary","contained",void 0,Nz(t),"large","content_copy"),Ye}}(t)),Ye}}function Lz(t){return function(e){return $P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n;return O_(e,fy(t.getString_za3lpa$(2654),[null!=(n=t.entityName)?n:""]),"body2",void 0,void 0,void 0,void 0,void 0,void 0,vz),Ye}}(t)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n;return qk(e,"link",null!=(n=t.inviteLink)?n:""),Ye}}(t)),gP(e,Cp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,Tz(t)),Ye}}function zz(t){return new ba(ya.emptyMap,t)}function wz(t){VU.call(this,t),this.mPresenter_0=null,this.buttonEnabled=!0,this.entityType="",this.codeLabel_0=new Lm,this.controlsEnabled_7si1za$_0=null,this.errorText_x39m04$_0=null,this.code_4xymoa$_0=null,this.buttonLabel_hyj1w1$_0=null}function Oz(t){return function(e){return $a(t,function(t,e){return function(n){return e.code=t,e.errorText=null,Ye}}(e,t)),Ye}}function Rz(t){return TE().defaultFullWidth(t.css),Ye}function Az(t){var e=t.css;return gs(e,"15px"),kr(e,new ai("13px")),e.unaryPlus_uoyjcc$(TE().defaultFullWidth),Ye}function xz(t){return function(e){var n,i;i=null!=(n=t.buttonLabel)?n:"";var o=t.code;return cd(e,i,"secondary","contained",null==o||0===o.length,function(t){return function(e){var n,i;return null!=(n=t.code)&&null!=(i=t.mPresenter_0)&&i.handleClickDone_61zpoe$(n),Ye}}(t),"large",void 0,void 0,void 0,void 0,Az),Ye}}function Iz(t){return function(e){return $P(e,mp(),hp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s;return n=In(t.codeLabel_0.text),i=t.codeLabel_0.errorText,o=t.code,r=t.codeLabel_0.error,s=!t.buttonEnabled,$_(e,n,o,i,void 0,"outlined",Oz(t),void 0,void 0,s,r,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Rz),Ye}}(t)),$P(e,mp(),ap(),void 0,void 0,void 0,void 0,void 0,xz(t)),Ye}}function Uz(t){return function(e){return $P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t.getString_za3lpa$(2672),"body2"),Ye}}(t)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return gP(e,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,Iz(t)),Ye}}(t)),Ye}}function Dz(t){return new ba(ya.emptyMap,t)}function Pz(t){oD.call(this,t),this.mPresenter_0=null,this.nameLabel_0=new Lm(this.getString_za3lpa$(2046)),this.twoLetterLabel_0=new Lm(this.getString_za3lpa$(2059)),this.threeLetterLabel_0=new Lm(this.getString_za3lpa$(2060)),this.langNameError_z6d061$_0=null,this.fieldsEnabled_x81nwy$_0=!1,this.entity_l32tmt$_0=null}function Mz(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.name=t),e.langNameError=null,Ye}}(e,t)),Ye}}function kz(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.iso_639_2_standard=t),Ye}}(e,t)),Ye}}function jz(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.iso_639_3_standard=t),Ye}}(e,t)),Ye}}function Gz(t){return function(e){return $P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a;return n=In(t.twoLetterLabel_0.text),i=t.twoLetterLabel_0.errorText,r=null!=(o=t.entity)?o.iso_639_2_standard:null,s=t.twoLetterLabel_0.error,a=!t.fieldsEnabled,$_(e,n,r,i,void 0,"outlined",kz(t),void 0,void 0,a,s),Ye}}(t)),$P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a;return n=In(t.threeLetterLabel_0.text),i=t.threeLetterLabel_0.errorText,r=null!=(o=t.entity)?o.iso_639_3_standard:null,s=t.threeLetterLabel_0.error,a=!t.fieldsEnabled,$_(e,n,r,i,void 0,"outlined",jz(t),void 0,void 0,a,s),Ye}}(t)),Ye}}function qz(t){uD.call(this,t),this.mPresenter_0=null}function Fz(t){Fc(t,this),this.languageOptions_ocmtbv$_0=this.languageOptions_ocmtbv$_0,this.selectedLanguage_zdnz9c$_0=this.selectedLanguage_zdnz9c$_0}function Bz(t){return function(e){var n,i,o,r;TE().languageComponentLanguageSelectorFormControl(e.css);var s=null!=(n=t.props.label)?n:t.props.systemImpl.getString(2053,e);i=t.props.systemImpl.getDisplayedLocale_za3rmp$(e),r=null!=(o=t.props.caption)?o:"";var a,c=t.languageOptions_0,l=Xo(Ko(c,10));for(a=c.iterator();a.hasNext();){var u=a.next();l.add_11rb$(ni(u.langCode,u.langDisplay))}return b_(e,s,i,r,void 0,l,"outlined",function(t){return function(e){return t.handleOnLanguageChange_0(e),Ye}}(t)),Ye}}function Wz(t,e,n,i,o){var r,s,a,c;void 0===n&&(n=C_(40)),void 0===i&&(i=null),void 0===o&&(o=null),t.child_up9nw1$(We(Fz),(r=e,s=n,a=i,c=o,function(t){return t.attrs.systemImpl=r,t.attrs.width=s,t.attrs.label=a,t.attrs.caption=c,Ye}))}function Hz(t){oD.call(this,t),this.mPresenter_0=null,this.reasonTitle_0=new Lm(this.getString_za3lpa$(2047)),this.reasonTitleError_6u07ek$_0=null,this.fieldsEnabled_xf8jo$_0=!1,this.entity_38iuj7$_0=null}function Vz(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.leavingReasonTitle=t),e.reasonTitleError=null,Ye}}(e,t)),Ye}}function Kz(t){return function(e){return e.css.unaryPlus_uoyjcc$(TE().fieldsOnlyFormScreen),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a;return n=In(t.reasonTitle_0.text),i=t.reasonTitle_0.errorText,r=null!=(o=t.entity)?o.leavingReasonTitle:null,s=t.reasonTitle_0.error,a=!t.fieldsEnabled,$_(e,n,r,i,void 0,"outlined",Vz(t),void 0,void 0,a,s),Ye}}(t)),Ye}}function Xz(t){uD.call(this,t),this.mPresenter_0=null}function Jz(){this.onClick=null,this.title=null}function Yz(){this.tagName="a",this.className=null,this.attributes=null}function Qz(t,e,n,i,o,r){return function(s){s.attrs.id="Linkify",s.attrs.options=t;var a=new Yz,c=new Jz;return c.onClick=function(t,e,n){return function(i){return i.preventDefault(),i.stopPropagation(),t.handleClickLink_dfpk30$(In(i.target),e,n),Ye}}(e,n,i),a.attributes=c,s.attrs.options=a,O_(s,o,"body1",void 0,void 0,void 0,void 0,void 0,void 0,function(t,e){return function(n){var i=t,o=e,r=n.css;return r.unaryPlus_uoyjcc$(TE().chatMessageContent),i?o.isRtlActive()?r.unaryPlus_uoyjcc$(TE().chatRight):r.unaryPlus_uoyjcc$(TE().chatLeft):o.isRtlActive()?r.unaryPlus_uoyjcc$(TE().chatLeft):r.unaryPlus_uoyjcc$(TE().chatRight),i?Zr(r,new Fr(TE().theme.palette.action.selected)):(Zr(r,new Fr(TE().theme.palette.primary.dark)),ei(r,Fr.Companion.white)),Ye}}(r,e)),Ye}}function Zz(t,e,n,i,o,r,s){return void 0===n&&(n=!0),U_(t,jL,"Linkify",void 0,Qz(i,o,r,s,e,n))}function tw(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().alignTextToStart),kr(e,C_(1)),Ye}function ew(t,e,n,i){return function(o){var r=new Yz,s=new Jz;return s.onClick=function(t,e,n){return function(i){return i.preventDefault(),i.stopPropagation(),t.handleClickLink_dfpk30$(In(i.target),e,n),Ye}}(t,e,n),r.attributes=s,o.attrs.options=r,O_(o,i,"body1",void 0,void 0,void 0,void 0,void 0,void 0,tw),Ye}}function nw(t,e,n,i,o){return U_(t,jL,"Linkify",void 0,ew(n,i,o,e))}function iw(t){VU.call(this,t),this.mPresenter_0=null,this.username_0="",this.password_0="",this.showPassword_0=!1,this.passwordLabel_0=new Lm(this.getString_za3lpa$(2035),void 0,void 0,"password-input"),this.usernameLabel_0=new Lm(this.getString_za3lpa$(2034),void 0,void 0,"username-input"),this.errorText_0=this.getString_za3lpa$(2126),this.errorMessage_za89ee$_0="",this.versionInfo_baqnnp$_0=null,this.loginIntentMessage_158yh3$_0=null,this.isEmptyPassword_hdde37$_0=!1,this.isEmptyUsername_3ta4r6$_0=!1,this.inProgress_h0qh5$_0=!1,this.createAccountVisible_b5yi0$_0=!1,this.connectAsGuestVisible_h6rqnf$_0=!1}function ow(t){return function(e){return $a(t,function(t,e){return function(n){return e.username_0=t,e.isEmptyUsername=!1,e.errorMessage="",Ye}}(e,t)),Ye}}function rw(t){return TE().defaultFullWidth(t.css),Ye}function sw(t){return function(e){return $a(t,function(t,e){return function(n){return e.password_0=t,e.isEmptyPassword=!1,e.errorMessage="",Ye}}(e,t)),Ye}}function aw(t){return function(e){return $a(t,function(t){return function(e){return t.showPassword_0=!t.showPassword_0,Ye}}(t)),Ye}}function cw(t){return TE().errorTextClass(t.css),Ye}function lw(t){return function(e){var n,i,o,r,s;return e.css.unaryPlus_uoyjcc$(TE().defaultMarginTop),n=In(t.passwordLabel_0.text),i=t.passwordLabel_0.id,o=t.passwordLabel_0.error,Ip(e,n,t.passwordLabel_0.id,i,void 0,void 0,o,void 0,"outlined"),r=t.passwordLabel_0.id,Yp(e,t.password_0,void 0,t.passwordLabel_0.text,t.inProgress,void 0,t.passwordLabel_0.error,void 0,void 0,void 0,void 0,void 0,t.showPassword_0?"text":"password",r,void 0,void 0,void 0,void 0,sw(t),void 0,function(t){return function(e){return e.attrs.endAdornment=xp(e,t.showPassword_0?"visibility_off":"visibility",void 0,void 0,aw(t),void 0,void 0,void 0,void 0,"end"),Ye}}(t)),null!=(s=t.passwordLabel_0.errorText)&&Pd(e,s,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,cw),Ye}}function uw(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().defaultFullWidth),e.unaryPlus_uoyjcc$(TE().defaultDoubleMarginTop),Lr(e,Br(50)),Ye}function hw(t){return function(e){return cd(e,t.getString_za3lpa$(2001),"secondary","contained",t.inProgress,function(t){return function(e){var n;return null!=(n=t.mPresenter_0)&&n.handleLogin_rkkr90$(t.username_0,t.password_0),Ye}}(t),"large",void 0,void 0,"login-btn",void 0,uw),Ye}}function dw(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().defaultFullWidth),kr(e,C_(2)),Lr(e,Br(50)),Ye}function pw(t){return function(e){return cd(e,t.getString_za3lpa$(2629),"primary","outlined",t.inProgress,function(t){return function(e){var n;return null!=(n=t.mPresenter_0)&&n.handleCreateAccount(),Ye}}(t),"large",void 0,void 0,void 0,void 0,dw),Ye}}function _w(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().defaultFullWidth),kr(e,C_(2)),Lr(e,Br(50)),Ye}function mw(t){return function(e){return cd(e,t.getString_za3lpa$(2628),"primary","outlined",t.inProgress,function(t){return function(e){var n;return null!=(n=t.mPresenter_0)&&n.handleConnectAsGuest(),Ye}}(t),"large",void 0,void 0,void 0,void 0,_w),Ye}}function fw(t){return function(e){return $P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t.loginIntentMessage,"body2","center",!0),Ye}}(t)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a;return n=In(t.usernameLabel_0.text),i=t.usernameLabel_0.errorText,o=t.username_0,r=t.usernameLabel_0.error,s=t.usernameLabel_0.id,a=t.inProgress,$_(e,n,o,i,void 0,"outlined",ow(t),void 0,void 0,a,r,void 0,void 0,void 0,void 0,s,void 0,void 0,void 0,void 0,void 0,rw),Ye}}(t)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return Dd(e,void 0,void 0,void 0,void 0,void 0,"outlined",void 0,void 0,lw(t)),Ye}}(t)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t.errorMessage,"subtitle2","center",void 0,void 0,void 0,void 0,TE().name+"-errorTextClass"),kr(e.css,C_(2)),Ye}}(t)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,hw(t)),t.createAccountVisible&&$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,pw(t)),t.connectAsGuestVisible&&$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,mw(t)),Ye}}function gw(t){return function(e){var n=t,i=e.css;return i.unaryPlus_uoyjcc$(TE().centerContainer),kr(i,C_(n.createAccountVisible||n.connectAsGuestVisible?1:3)),$P(e,pp(),ap(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return gP(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,fw(t)),Ye}}(t)),Ye}}function $w(t){return new ba(ya.emptyMap,t)}function Ew(t){var e;VU.call(this,t),this.activeAccount_0=null,this.appState_0=new Y_,this.currentDestination_joln2m$_0=this.currentDestination_joln2m$_0,this.appStateChangeListener_0=(e=this,function(t){return $a(e,function(t,e){return function(n){return e.appState_0=t.appState,Ye}}(t,e)),Ye})}function yw(t){return TE().mainComponentProgressIndicator(t.css),t.attrs.id="um-progress",Ye}function bw(t){var e=t.css;return Zn(e,Qn.none),e.unaryPlus_uoyjcc$(TE().mainComponentFab),Ye}function Sw(t){return function(e,n){var i=Sa.Companion.invoke_f6ihu2$($w),o=t;TE().mainComponentWrapperContainer(i.css),Zp(i,void 0,void 0,void 0,OE().isDarkModeActive()?"secondary":"primary",void 0,yw);var r,s=Sa.Companion.invoke_f6ihu2$($w);TE().mainComponentContainer(s.css),Yk(s,o.appState_0,o.currentDestination_0,o.systemImpl.isRtlActive()?"...":o.getString_za3lpa$(2445)+" "+(o.systemImpl.isRtlActive()?"":"..."),null!=(r=o.activeAccount_0)?r.firstName:null,function(t,e){return function(){return t.systemImpl.go_gofqk3$(yi.Companion.VIEW_NAME,fr(),e),Ye}}(o,s)),o.currentDestination_0.showNavigation&&o.renderSideNavigation_0(s);var a=Sa.Companion.invoke_f6ihu2$($w);TE().mainComponentContentContainer(a.css),cP(a);var c=Sa.Companion.invoke_f6ihu2$($w);return c.attrs.id="main-content",fP(c,o.di),a.child_30b5ua$(c.create()),s.child_30b5ua$(a.create()),o.currentDestination_0.showNavigation&&o.renderBottomNavigation_0(s),Ud(s,"","","secondary",void 0,void 0,void 0,void 0,"um-fab","extended",bw),i.child_30b5ua$(s.create()),o.renderSnackBar_0(i),e.child_30b5ua$(i.create()),Ye}}function vw(t){return function(n,i){return $a(t,function(t,n){return function(i){var o,r=e.isType(o=t,J_)?o:An();return n.systemImpl.go_gofqk3$(r.view,fr(),i),Ye}}(i,t)),Ye}}function Cw(t){return TE().defaultFullWidth(t.css),Ye}function Nw(t,e,n){return function(i){return t.systemImpl.go_gofqk3$(e.view,fr(),n),Ye}}function Tw(t){return function(e){var n=t,i=e.css;return i.unaryPlus_uoyjcc$(TE().alignTextToStart),gs(i,"8px 16px"),Zn(i,2052===n.labelId?Qn.none:Qn.flex),Ye}}function Lw(t){return function(e,n){return Pp(e,void 0,void 0,void 0,void 0,function(t){return function(e){TE().mainComponentSideNavMenuList(e.css);var n,i,o=X_().destinationList,r=Yo();for(n=o.iterator();n.hasNext();){var s=n.next();null!=s.icon&&r.add_11rb$(s)}for(i=r.iterator();i.hasNext();){var a,c,l,u,h,d=i.next(),p=t;null!=(a=d.icon)&&(c=p.getString_za3lpa$(d.labelId),l=d.divider,u="home-"+d.labelId,jp(e,a,c,void 0,null!=(h=p.currentDestination_0)?h.equals(d):null,void 0,u,void 0,l,void 0,Nw(p,d,e),void 0,Tw(d)))}return Ye}}(t)),Wz(e,t.systemImpl),Ye}}function zw(t){return function(e){TE().hideOnMobile(e.css);var n=Sa.Companion.invoke_f6ihu2$($w);TE().mainComponentBrandIconContainer(n.css);var i,o,r=Sa.Companion.invoke_f6ihu2$((i=null,o="assets/brand-logo.png",function(t){return new fl(ml(["alt",i,"src",o]),t)}));return TE().mainComponentBrandIcon(r.css),n.child_30b5ua$(r.create()),e.child_30b5ua$(n.create()),Rd(e,void 0,void 0,void 0,void 0,void 0,void 0,Cw),e.invoke_c0v1gl$(De.Consumer,Lw(t)),Ye}}function ww(){return tm().dispatch_quwr82$(new rm),Ye}function Ow(t){return function(e){var n=t.appState_0.appSnackBar.actionLabel;return null==n||Pa(n)||(e.attrs.action=cd(e,In(t.appState_0.appSnackBar.actionLabel),void 0,"text",void 0,function(t){return function(e){return t.appState_0.appSnackBar.onClick,tm().dispatch_quwr82$(new rm),Ye}}(t),"medium")),Ye}}function Rw(t){return Ye}function Aw(t){return Ye}function xw(t){t.child_up9nw1$(We(Ew),Aw)}function Iw(t){return new ba(ya.emptyMap,t)}function Uw(t){oD.call(this,t),this.mPresenter_0=null,this.titleLabel_0=new Lm(this.getString_za3lpa$(2102)),this.descriptionLabel_0=new Lm(this.getStringWithOptionalLabel_za3lpa$(2047)),this.doNotShowBeforeLabel_0=new Lm($y(this.getString_za3lpa$(2841))),this.startTimeLabel_0=new Lm(this.getString_za3lpa$(2611)),this.blockTitleError_h013ed$_0=null,this.startDate_c86ula$_0=ra,this.startTime_bz96e5$_0=ra,this.timeZone_1azoev$_0=null,this.fieldsEnabled_8z4txm$_0=!1,this.entity_k1mlsx$_0=null}function Dw(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.cbTitle=t),e.blockTitleError=null,Ye}}(e,t)),Ye}}function Pw(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.cbDescription=t),e.blockTitleError=null,Ye}}(e,t)),Ye}}function Mw(t){return function(n){return $a(t,function(t,n){return function(i){return n.startDate=e.Long.fromNumber(t.getTime()),Ye}}(n,t)),Ye}}function kw(t){return function(n){return $a(t,function(t,n){return function(i){return n.startDate=e.Long.fromNumber(t.getTime()),Ye}}(n,t)),Ye}}function jw(t){return function(e){return $P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r;return n=In(t.doNotShowBeforeLabel_0.text),i=t.doNotShowBeforeLabel_0.error,o=t.doNotShowBeforeLabel_0.errorText,r=dy(t.startDate,!0),Cd(e,n,Mw(t),r,void 0,o,i,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"outlined"),Ye}}(t)),$P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r;return n=In(t.startTimeLabel_0.text),i=t.startTimeLabel_0.error,o=t.startTimeLabel_0.errorText,r=dy(t.startDate,!0),Nd(e,n,kw(t),r,void 0,o,i,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"outlined"),Ye}}(t)),Ye}}function Gw(t,e,n,i,o,r,s){return function(a){if(a.attrs.defaultValue=Cm().convertDataToEditorState_61zpoe$(null!=t?t:""),a.attrs.toolbarButtonSize="medium",a.attrs.inheritFontSize=!0,a.attrs.readOnly=e,a.attrs.id="um-html-editor",null!=n){var c=n;a.attrs.onSave=c}if(null!=i){var l=i;a.attrs.maxLength=l}if(null!=o){var u=o;a.attrs.label=u}return a.attrs.toolbar=r,a.attrs.onChange=function(t){return function(e){return null!=t&&t(Cm().convertEditorContentToHtml_za3rmp$(e.getCurrentContent())),Ye}}(s),Ye}}function qw(t,e,n,i,o,r,s,a,c,l){return void 0===n&&(n=!1),void 0===i&&(i=!0),void 0===o&&(o=null),void 0===r&&(r=null),void 0===s&&(s=null),void 0===a&&(a=null),void 0===c&&(c=null),void 0===l&&(l=null),U_(t,GL,a,l,Gw(e,n,r,c,o,i,s))}function Fw(t){return new va(ya.emptyMap,t)}function Bw(t){Fc(t,this),this.commentLabel_0=new Lm(this.props.label),this.commentText_0=""}function Ww(t){return kr(t.css,new ai("20px")),Ye}function Hw(t){return function(e){return $a(t,function(t,e){return function(n){return e.commentText_0=t,Ye}}(e,t)),Ye}}function Vw(t){return function(e){return e.attrs.onKeyDown=function(t){return function(e){var n=e.shiftKey;n&&(n=Je(e.key.toLowerCase(),"enter")),n&&(e.preventDefault(),e.target.value+="\n");var i=!e.shiftKey;return i&&(i=Je(e.key.toLowerCase(),"enter")),i&&(e.preventDefault(),t.handleSendComment_0()),Ye}}(t),Ye}}function Kw(t){return t.css.unaryPlus_uoyjcc$(TE().defaultMarginTop),Ye}function Xw(t){return function(e){return Ud(e,"send","","secondary",void 0,function(t){return function(e){return ty().stopEventPropagation_za3rmp$(e),t.handleSendComment_0(),Ye}}(t),"large",void 0,void 0,"circular",Kw),Ye}}function Jw(t){return function(e){e.css.unaryPlus_uoyjcc$(TE().defaultMarginBottom);var n=Sa.Companion.invoke_f6ihu2$(Fw);return ts(n.css,void 0,C_(4)),Rp(n,"person",void 0,void 0,void 0,Ww),e.child_30b5ua$(n.create()),$P(e,t.commentText_0.length>0?_p():mp(),t.commentText_0.length>0?pp():_p(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n;return n=t.commentText_0,E_(e,In(t.commentLabel_0.text),n,void 0,void 0,"outlined",Hw(t),void 0,void 0,void 0,void 0,void 0,void 0,void 0,3,void 0,void 0,void 0,void 0,void 0,Vw(t)),Ye}}(t)),t.commentText_0.length>0&&$P(e,rp(),op(),void 0,void 0,void 0,void 0,Yn.rowReverse,Xw(t)),Ye}}function Yw(t,e,n){var i,o;t.child_up9nw1$(We(Bw),(i=e,o=n,function(t){return t.attrs.label=i,t.attrs.listener=o,Ye}))}function Qw(t){VU.call(this,t),this.entry_8wp86h$_0=null,this.pdfContainerUid_ys615y$_0=ra,this.mPresenter_0=null,this.containerUid_0=ra}function Zw(t){return function(e){return new ol(il("sandbox",null!=t?nl(t):null),e)}}function tO(t){return new ba(ya.emptyMap,t)}function eO(t){Fc(t,this),this.sourcesUrlToLoad_0=ri(),this.paginateOnScrollManager_0=null}function nO(t,e){return function(n){if(t.props.contentTypeEpub){n.target.contentWindow;var i=document.getElementById(e),o=i.contentDocument||i.contentWindow.document,r=vr(o.body.scrollHeight.toString());i.style.height=(r+.1*r).toString()+"px"}return Ye}}function iO(t,e,n,i){var o,r,s;void 0===n&&(n=10),void 0===i&&(i=!1),t.child_up9nw1$(We(eO),(o=n,r=e,s=i,function(t){return t.attrs.pageSize=o,t.attrs.sources=el(r),t.attrs.contentTypeEpub=s,Ye}))}function oO(t){return new ba(ya.emptyMap,t)}function rO(t){oD.call(this,t),this.mPresenter_0=null,this.relationshipLabel_0=new Lm(this.getString_za3lpa$(2717)),this.infoText_hus0xb$_0=null,this.siteTerms_3swdyi$_0=null,this.relationshipFieldOptions_vc949e$_0=null,this.relationshipFieldError_hqcp6s$_0=null,this.fieldsEnabled_ixqpem$_0=!1,this.entity_y1mfb$_0=null}function sO(t){return Ns(t.css,Cs(1.2)),Ye}function aO(t){return function(e){return $P(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t.infoText,"body1",void 0,void 0,void 0,void 0,void 0,void 0,sO),Ye}}(t)),TP(e,t.getString_za3lpa$(2679),void 0,4),$P(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n;return TE().defaultMarginTop(e.css),Gj(e,null!=(n=t.siteTerms)?n.termsHtml:null),Ye}}(t)),Ye}}function cO(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.ppjRelationship=vr(t)),e.relationshipFieldError=null,Ye}}(e,t)),Ye}}function lO(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().defaultFullWidth),e.unaryPlus_uoyjcc$(TE().defaultDoubleMarginTop),Lr(e,Br(50)),Ye}function uO(t){return function(e){return cd(e,t.getString_za3lpa$(2718),"secondary","contained",void 0,function(t){return function(e){var n;if(null!=(n=t.entity)){var i,o=t;n.ppjStatus=1,null!=(i=o.mPresenter_0)&&i.handleClickSave_nqi3in$(n)}return Ye}}(t),"large",void 0,void 0,void 0,void 0,lO),Ye}}function hO(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().defaultFullWidth),e.unaryPlus_uoyjcc$(TE().defaultDoubleMarginTop),Lr(e,Br(50)),Ye}function dO(t){return function(e){return cd(e,t.getString_za3lpa$(2719),"secondary","outlined",void 0,function(t){return function(e){var n;if(null!=(n=t.entity)){var i,o=t;n.ppjStatus=2,null!=(i=o.mPresenter_0)&&i.handleClickSave_nqi3in$(n)}return Ye}}(t),"large",void 0,void 0,void 0,void 0,hO),Ye}}function pO(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().defaultFullWidth),e.unaryPlus_uoyjcc$(TE().defaultDoubleMarginTop),Lr(e,Br(50)),Ye}function _O(t){return function(e){return cd(e,t.getString_za3lpa$(2720),"secondary","contained",void 0,function(t){return function(e){var n;if(null!=(n=t.entity)){var i,o,r=t;i=1===n.ppjStatus?2:1,n.ppjStatus=i,null!=(o=r.mPresenter_0)&&o.handleClickSave_nqi3in$(n)}return Ye}}(t),"large",void 0,void 0,void 0,void 0,pO),Ye}}function mO(t){return function(e){var n,i,o,r;return Je(null!=(n=t.entity)?n.ppjParentPersonUid:null,ra)&&$P(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a,c,l,u;if(n=In(t.relationshipLabel_0.text),o=In(null!=(i=t.entity)?i.ppjRelationship:null),s=null!=(r=t.relationshipLabel_0.errorText)?r:"",a=t.relationshipLabel_0.error,null!=(c=t.relationshipFieldOptions)){var h,d=Xo(Ko(c,10));for(h=c.iterator();h.hasNext();){var p=h.next();d.add_11rb$(new qa(p.optionId.toString(),p.toString()))}u=d}else u=null;return b_(e,n,o,s,void 0,null!=(l=u)?yr(l):null,void 0,cO(t),void 0,void 0,a),Ye}}(t)),Je(null!=(i=t.entity)?i.ppjParentPersonUid:null,ra)&&$P(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,uO(t)),Je(null!=(o=t.entity)?o.ppjParentPersonUid:null,ra)&&$P(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,dO(t)),Je(null!=(r=t.entity)?r.ppjParentPersonUid:null,ra)||$P(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,_O(t)),Ye}}function fO(t){return function(e){return $P(e,mp(),hp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return gP(e,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,aO(t)),Ye}}(t)),$P(e,mp(),ap(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return gP(e,yp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,mO(t)),Ye}}(t)),Ye}}function gO(t){return new ba(ya.emptyMap,t)}function $O(t){oD.call(this,t),this.mPresenter_0=null,this.showCurrentPassword_0=!1,this.showNewPassword_0=!1,this.showConfirmPassword_0=!1,this.confirmPasswordLabel_0=new Lm(this.getString_za3lpa$(2036),void 0,void 0,"confirm-password"),this.newPasswordLabel_0=new Lm(this.getString_za3lpa$(2040),void 0,void 0,"new-password"),this.currentPasswordLabel_0=new Lm(this.getString_za3lpa$(2515),void 0,void 0,"current-password"),this.usernameLabel_0=new Lm(this.getString_za3lpa$(2034)),this.fieldsEnabled_gy85x8$_0=!1,this.currentPasswordError_y463es$_0=null,this.newPasswordError_dh9h5v$_0=null,this.confirmedPasswordError_q90xy6$_0=null,this.noPasswordMatchError_tda581$_0=null,this.usernameError_tgkb4e$_0=null,this.errorMessage_u6qr5$_0=null,this.currentPasswordVisible_y3b9ua$_0=!1,this.usernameVisible_x9ryq0$_0=!1,this.entity_c1gaoj$_0=null}function EO(t){return TE().hideOnMobile(t.css),Ye}function yO(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.username=t),e.usernameError=null,e.errorMessage="",Ye}}(e,t)),Ye}}function bO(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.currentPassword=t),e.currentPasswordError=null,Ye}}(e,t)),Ye}}function SO(t){return function(e){return $a(t,function(t){return function(e){return t.showCurrentPassword_0=!t.showCurrentPassword_0,Ye}}(t)),Ye}}function vO(t){return TE().errorTextClass(t.css),Ye}function CO(t){return function(e){var n,i,o,r,s,a,c;return n=In(t.currentPasswordLabel_0.text),i=t.currentPasswordLabel_0.id,o=t.currentPasswordLabel_0.error,Ip(e,n,t.currentPasswordLabel_0.id,i,void 0,void 0,o,void 0,"outlined"),r=t.currentPasswordLabel_0.id,s=In(t.currentPasswordLabel_0.text),Yp(e,null!=(a=t.entity)?a.currentPassword:null,void 0,s,!t.fieldsEnabled,void 0,t.currentPasswordLabel_0.error,void 0,void 0,void 0,void 0,void 0,t.showCurrentPassword_0?"text":"password",r,void 0,void 0,void 0,void 0,bO(t),void 0,function(t){return function(e){return e.attrs.endAdornment=xp(e,t.showCurrentPassword_0?"visibility":"visibility_off",void 0,void 0,SO(t),void 0,void 0,void 0,void 0,"end"),Ye}}(t)),null!=(c=t.currentPasswordLabel_0.errorText)&&Pd(e,c,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,vO),Ye}}function NO(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.newPassword=t),e.newPasswordError=null,Ye}}(e,t)),Ye}}function TO(t){return function(e){return $a(t,function(t){return function(e){return t.showNewPassword_0=!t.showNewPassword_0,Ye}}(t)),Ye}}function LO(t){return TE().errorTextClass(t.css),Ye}function zO(t){return function(e){var n,i,o,r,s,a;return TE().defaultFullWidth(e.css),n=In(t.newPasswordLabel_0.text),i=t.newPasswordLabel_0.id,o=t.newPasswordLabel_0.error,Ip(e,n,t.newPasswordLabel_0.id,i,void 0,void 0,o,void 0,"outlined"),r=t.newPasswordLabel_0.id,Yp(e,null!=(s=t.entity)?s.newPassword:null,void 0,In(t.newPasswordLabel_0.text),!t.fieldsEnabled,void 0,t.newPasswordLabel_0.error,void 0,void 0,void 0,void 0,void 0,t.showNewPassword_0?"text":"password",r,void 0,void 0,void 0,void 0,NO(t),void 0,function(t){return function(e){return e.attrs.endAdornment=xp(e,t.showNewPassword_0?"visibility":"visibility_off",void 0,void 0,TO(t),void 0,void 0,void 0,void 0,"end"),Ye}}(t)),null!=(a=t.newPasswordLabel_0.errorText)&&Pd(e,a,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,LO),Ye}}function wO(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.confirmedPassword=t),e.confirmedPasswordError=null,e.noPasswordMatchError=null,Ye}}(e,t)),Ye}}function OO(t){return function(e){return $a(t,function(t){return function(e){return t.showConfirmPassword_0=!t.showConfirmPassword_0,Ye}}(t)),Ye}}function RO(t){return TE().errorTextClass(t.css),Ye}function AO(t){return function(e){var n,i,o,r,s,a,c,l;return n=In(t.confirmPasswordLabel_0.text),i=t.confirmPasswordLabel_0.error,o=t.confirmPasswordLabel_0.id,Ip(e,n,t.confirmPasswordLabel_0.id,o,void 0,void 0,i,void 0,"outlined"),r=t.confirmPasswordLabel_0.id,a=null!=(s=t.entity)?s.confirmedPassword:null,c=!t.fieldsEnabled,Yp(e,a,void 0,In(t.confirmPasswordLabel_0.text),c,void 0,t.confirmPasswordLabel_0.error,void 0,void 0,void 0,void 0,void 0,t.showConfirmPassword_0?"text":"password",r,void 0,void 0,void 0,void 0,wO(t),void 0,function(t){return function(e){return e.attrs.endAdornment=xp(e,t.showConfirmPassword_0?"visibility":"visibility_off",void 0,void 0,OO(t),void 0,void 0,void 0,void 0,"end"),Ye}}(t)),null!=(l=t.confirmPasswordLabel_0.errorText)&&Pd(e,l,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,RO),Ye}}function xO(t){return function(e){return t.usernameVisible&&$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a,c;return n=In(t.usernameLabel_0.text),o=null!=(i=t.entity)?i.username:null,r=t.usernameLabel_0.error,s=!t.fieldsEnabled,a=t.usernameLabel_0.errorText,c=Li.Companion.BLOCK_CHARACTER_SET,$_(e,n,o,a,void 0,"outlined",yO(t),void 0,void 0,s,r,void 0,void 0,void 0,void 0,void 0,void 0,void 0,c,!1),Ye}}(t)),t.currentPasswordVisible&&$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return Dd(e,void 0,void 0,void 0,void 0,void 0,"outlined",void 0,void 0,CO(t)),Ye}}(t)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return Dd(e,void 0,void 0,void 0,void 0,void 0,"outlined",void 0,void 0,zO(t)),Ye}}(t)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return Dd(e,void 0,void 0,void 0,void 0,void 0,"outlined",void 0,void 0,AO(t)),Ye}}(t)),null!=t.errorMessage&&$P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t.errorMessage,"subtitle2","center",void 0,void 0,void 0,void 0,TE().name+"-errorTextClass"),Ye}}(t)),Ye}}function IO(t){return TE().hideOnMobile(t.css),Ye}function UO(t){return function(e){return $P(e,sp(),void 0,void 0,void 0,void 0,void 0,void 0,EO),$P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return TE().defaultDoubleMarginTop(e.css),gP(e,void 0,void 0,void 0,void 0,void 0,yp(),void 0,void 0,xO(t)),Ye}}(t)),$P(e,sp(),void 0,void 0,void 0,void 0,void 0,void 0,IO),Ye}}function DO(t){return new ba(ya.emptyMap,t)}function PO(t){var e;iR(),iD.call(this,t),this.mPresenter_0=null,this.classList_0=null,this.observer_0=new Ea((e=this,function(t){return $a(e,function(t,e){return function(n){return e.classList_0=t,Ye}}(t,e)),Ye})),this.clazzes_7k3u8c$_0=null,this.changePasswordVisible_yawzir$_0=!1,this.chatVisibility_nl411s$_0=!1,this.showCreateAccountVisible_3godxg$_0=!1,this.entity_7fdfuf$_0=null}function MO(){return Ye}function kO(){return Ye}function jO(t){return function(e){var n,i,o;return tj(e,"call",t.getString_za3lpa$(2562),ap(),rp(),null!=(null!=(n=t.entity)?n.phoneNum:null),void 0,void 0,void 0,MO),tj(e,"message",t.getString_za3lpa$(2932),ap(),rp(),null!=(null!=(i=t.entity)?i.phoneNum:null),void 0,void 0,void 0,function(t){return function(){var e;return null!=(e=t.mPresenter_0)&&e.handleClickChat(),Ye}}(t)),tj(e,"email",t.getString_za3lpa$(2064),ap(),rp(),null!=(null!=(o=t.entity)?o.emailAddr:null),void 0,void 0,void 0,kO),tj(e,"vpn_key",t.getString_za3lpa$(2514),lp(),sp(),t.changePasswordVisible,void 0,void 0,void 0,function(t){return function(){var e;return null!=(e=t.mPresenter_0)&&e.handleChangePassword(),Ye}}(t)),tj(e,"person_add",t.getString_za3lpa$(2629),lp(),sp(),t.showCreateAccountVisible,void 0,void 0,void 0,function(t){return function(){var e;return null!=(e=t.mPresenter_0)&&e.handleCreateAccount(),Ye}}(t)),Ye}}function GO(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().defaultFullWidth),e.unaryPlus_uoyjcc$(TE().defaultMarginTop),Ye}function qO(t){return Rd(t,void 0,void 0,void 0,void 0,void 0,void 0,GO),Ye}function FO(t){return Ye}function BO(t,e){return yP(t,e,void 0,void 0,void 0,void 0,!1,void 0,void 0,void 0,FO),Ye}function WO(t){return TE().alignTextToStart(t.css),Ye}function HO(t){return TE().alignTextToStart(t.css),Ye}function VO(t,e){return function(n){return n.attrs.entries=t,n.attrs.onEntryClicked=function(t){return function(e){var n;return null!=(n=t.mPresenter_0)&&n.handleClickClazz_yflbhc$(e),Ye}}(e),Ye}}function KO(t){return function(e){var n;$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t.getString_za3lpa$(2314),"caption",void 0,void 0,void 0,void 0,void 0,void 0,WO),Ye}}(t)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a;RP(e,"event",null!=(i=dy(null!=(n=t.entity)?n.dateOfBirth:null))?iy(i):null,t.getString_za3lpa$(2312));var c=Da.PersonConstants.GENDER_MESSAGE_ID_MAP.get_11rb$(null!=(r=null!=(o=t.entity)?o.gender:null)?r:0);return RP(e,"person",null==c?"":t.getString_za3lpa$(c),t.getString_za3lpa$(2244)),RP(e,"badge",null!=(s=t.entity)?s.personOrgId:null,t.getString_za3lpa$(2563)),RP(e,"account_circle",null!=(a=t.entity)?a.username:null,t.getString_za3lpa$(2034)),Ye}}(t)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t.getString_za3lpa$(2565),"caption",void 0,void 0,void 0,void 0,void 0,void 0,HO),Ye}}(t)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o;return RP(e,"call",null!=(n=t.entity)?n.phoneNum:null,t.getString_za3lpa$(2045)),RP(e,"email",null!=(i=t.entity)?i.emailAddr:null,t.getString_za3lpa$(2064)),RP(e,"place",null!=(o=t.entity)?o.personAddress:null,t.getString_za3lpa$(2315)),Ye}}(t));var i=null!=t.classList_0;return i&&(i=!0===(null!=(n=t.classList_0)?!n.isEmpty():null)),i&&$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n;if(TP(e,t.getString_za3lpa$(2069)),null!=(n=t.classList_0)){var i=t;e.child_up9nw1$(We(YO),VO(n,i))}return Ye}}(t)),Ye}}function XO(t){return function(e){return $P(e,mp(),ap(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i;return kr(e.css,new ai("12px")),Wj(e,null!=(i=null!=(n=t.entity)?n.personUid:null)?i:ra,iR().PERSON_PICTURE_LOOKUP_ADAPTER,BO),Ye}}(t)),$P(e,mp(),hp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n=e.css;return n.unaryPlus_uoyjcc$(TE().defaultMarginTop),gs(n,"16px"),gP(e,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,KO(t)),Ye}}(t)),Ye}}function JO(t){return function(e){return $P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return gP(e,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,jO(t)),Ye}}(t)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,qO),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return gP(e,Cp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,XO(t)),Ye}}(t)),Ye}}function YO(t){AD.call(this,t)}function QO(t,e,n){return function(i){var o,r,s,a;return i.attrs.onClick=function(t){return function(e){return t(e.nativeEvent),Ye}}(t),Pk(i,"people",In(null!=(o=e.clazz)?o.clazzName:null)+" ("+sc(e,i,n.systemImpl)+") - "+ac(e,i,n.systemImpl),In(null!=(r=dy(e.clazzEnrolmentDateJoined))?iy(r):null)+" - "+(null!=(a=null!=(s=dy(e.clazzEnrolmentDateLeft,!0))?iy(s):null)?a:n.getString_za3lpa$(2307)),e.attendance,n.getString_za3lpa$(2572)),Ye}}function ZO(){nR=this,this.PERSON_PICTURE_LOOKUP_ADAPTER=new ZD(eR)}function tR(t,e){Va.call(this),this.addSource_mmltu2$(t.personPictureDao.findByPersonUidLive_s8cxhz$(e),this)}function eR(t,e){return new tR(t,e)}Object.defineProperty(UL.prototype,"impl",{configurable:!0,get:function(){return this.impl_d2p97v$_0.value}}),UL.prototype.render_ss14n$=function(t){ud(t),t.invoke_c0v1gl$(De.Consumer,BL(this))},UL.$metadata$={kind:Vn,simpleName:"ExtraActiveTabWarningComponent",interfaces:[Bc]},HL.$metadata$={kind:Vn,simpleName:"ChartOptions",interfaces:[]},HL.prototype.component1=function(){return this.title},HL.prototype.component2=function(){return this.hAxis},HL.prototype.component3=function(){return this.xAxis},HL.prototype.component4=function(){return this.seriesType},HL.prototype.component5=function(){return this.series},HL.prototype.component6=function(){return this.colors},HL.prototype.copy_x7t11x$=function(t,e,n,i,o,r){return new HL(void 0===t?this.title:t,void 0===e?this.hAxis:e,void 0===n?this.xAxis:n,void 0===i?this.seriesType:i,void 0===o?this.series:o,void 0===r?this.colors:r)},HL.prototype.toString=function(){return"ChartOptions(title="+e.toString(this.title)+", hAxis="+e.toString(this.hAxis)+", xAxis="+e.toString(this.xAxis)+", seriesType="+e.toString(this.seriesType)+", series="+e.toString(this.series)+", colors="+e.toString(this.colors)+")"},HL.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*(t=31*(t=31*(t=31*t+e.hashCode(this.title)|0)+e.hashCode(this.hAxis)|0)+e.hashCode(this.xAxis)|0)+e.hashCode(this.seriesType)|0)+e.hashCode(this.series)|0)+e.hashCode(this.colors)|0},HL.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.title,t.title)&&e.equals(this.hAxis,t.hAxis)&&e.equals(this.xAxis,t.xAxis)&&e.equals(this.seriesType,t.seriesType)&&e.equals(this.series,t.series)&&e.equals(this.colors,t.colors)},VL.$metadata$={kind:Vn,simpleName:"ChartType",interfaces:[Hn]},VL.values=function(){return[XL(),JL(),YL()]},VL.valueOf_61zpoe$=function(t){switch(t){case"ColumnChart":return XL();case"ComboChart":return JL();case"LineChart":return YL();default:Kn("No enum constant com.ustadmobile.view.ChartType."+t)}},Object.defineProperty(tz.prototype,"mEditPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(tz.prototype,"holidayList",{configurable:!0,get:function(){return this.holidayList_7ejnsk$_0},set:function(t){var e;this.holidayList_7ejnsk$_0=t,null!=(e=this.holidayList_7ejnsk$_0)&&e.removeObserver_fujmse$(this.holidayObserver_0),null!=t&&t.observe_bi6zy5$(this,this.holidayObserver_0)}}),Object.defineProperty(tz.prototype,"fieldsEnabled",{configurable:!0,get:function(){return this.fieldsEnabled_ldrnq2$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.fieldsEnabled_ldrnq2$_0=e,Ye}))}}),Object.defineProperty(tz.prototype,"entity",{configurable:!0,get:function(){return this.entity_pbf9kh$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.entity_pbf9kh$_0=e,Ye}))}}),tz.prototype.onCreateView=function(){var t;oD.prototype.onCreateView.call(this),this.mPresenter_0=new Wc(this,this.arguments,this,this,this.di),null!=(t=this.mPresenter_0)&&t.onCreate(my(this.navController)),this.setEditTitle_vux9f0$(2334,2335)},tz.prototype.render_ss14n$=function(t){var e=Sa.Companion.invoke_f6ihu2$(ZL),n=e.css;n.unaryPlus_uoyjcc$(TE().contentContainer),n.unaryPlus_uoyjcc$(TE().defaultPaddingTop),gP(e,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,nz(this));var i,o=new RD(!0,this.getString_za3lpa$(2334),(i=this,function(){var t,e;return null!=(e=null!=(t=i.mPresenter_0)?t.holidayToManyJoinListener:null)&&e.onClickEdit_11rb$(new Hc),Ye}));rz(e,this.holidays_0,o,function(t){return function(e){var n,i;return null!=(i=null!=(n=t.mPresenter_0)?n.holidayToManyJoinListener:null)&&i.onClickEdit_11rb$(e),Ye}}(this)),t.child_30b5ua$(e.create())},tz.prototype.onDestroyView=function(){var t;oD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null},tz.$metadata$={kind:Vn,simpleName:"HolidayCalendarEditComponent",interfaces:[Ii,oD]},iz.prototype.renderListItem_f4dmsf$=function(t,e,n){gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,oz(n,e))},iz.$metadata$={kind:Vn,simpleName:"HolidayListComponent",interfaces:[AD]},Object.defineProperty(sz.prototype,"displayTypeRepo",{configurable:!0,get:function(){var t;return null!=(t=this.dbRepo)?t.holidayCalendarDao:null}}),Object.defineProperty(sz.prototype,"listPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),sz.prototype.onCreateView=function(){var t,e;uD.prototype.onCreateView.call(this),this.showCreateNewItem=!0,null!=(t=this.fabManager)&&(t.text=this.getString_za3lpa$(2337)),this.addNewEntryText=this.getString_za3lpa$(2338),this.mPresenter_0=new Vc(this,this.arguments,this,this.di,this),null!=(e=this.mPresenter_0)&&e.onCreate(fr())},sz.prototype.renderListItem_js0tu9$=function(t,e){var n=fy(this.getString_za3lpa$(2547),[e.numEntries,this.getString_za3lpa$(2336)]);jP(t,"calendar_today",e.umCalendarName,n,!0)},sz.prototype.handleClickEntry_11rc$=function(t){var n,i,o;o=this.mPresenter_0,i=e.isType(n=t,Kc)?n:An(),null!=o&&o.handleClickEntry_11rc$(i)},sz.$metadata$={kind:Vn,simpleName:"HolidayCalendarListComponent",interfaces:[xi,uD]},Object.defineProperty(cz.prototype,"mEditPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(cz.prototype,"fieldsEnabled",{configurable:!0,get:function(){return this.fieldsEnabled_hrvbek$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.fieldsEnabled_hrvbek$_0=e,Ye}))}}),Object.defineProperty(cz.prototype,"entity",{configurable:!0,get:function(){return this.entity_vlo4t$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.entity_vlo4t$_0=e,Ye}))}}),Object.defineProperty(cz.prototype,"loading",{configurable:!0,get:function(){return this.loading_lha7ig$_0},set:function(t){this.loading_lha7ig$_0=t}}),cz.prototype.onCreateView=function(){var t;oD.prototype.onCreateView.call(this),this.setEditTitle_vux9f0$(2334,2335),this.mPresenter_0=new Xc(this,this.arguments,this,this.di,this),null!=(t=this.mPresenter_0)&&t.onCreate(fr())},cz.prototype.render_ss14n$=function(t){var e=Sa.Companion.invoke_f6ihu2$(az),n=e.css;n.unaryPlus_uoyjcc$(TE().contentContainer),n.unaryPlus_uoyjcc$(TE().defaultPaddingTop),gP(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,_z(this)),t.child_30b5ua$(e.create())},cz.prototype.onDestroyView=function(){var t;oD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null},cz.$metadata$={kind:Vn,simpleName:"HolidayEditComponent",interfaces:[Ui,oD]},Object.defineProperty(mz.prototype,"detailPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),mz.prototype.onCreateView=function(){var t;iD.prototype.onCreateView.call(this),this.mPresenter_0=new Jc(this,this.arguments,this,this,this.di),null!=(t=this.mPresenter_0)&&t.onCreate(my(this.navController))},mz.prototype.render_ss14n$=function(t){var e;gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,(e=this,function(t){var n=t.css;return n.unaryPlus_uoyjcc$(TE().contentContainer),n.unaryPlus_uoyjcc$(TE().defaultDoubleMarginTop),qw(t,e.entity,!0,!1),Ye}))},Object.defineProperty(mz.prototype,"title",{configurable:!0,get:function(){return this.title_tv39nr$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.title_tv39nr$_0=e,Ye})),this.updateUiWithStateChangeDelay_n53o35$(void 0,function(t,e){return function(){return e.ustadComponentTitle=t,Ye}}(t,this))}}),Object.defineProperty(mz.prototype,"entity",{configurable:!0,get:function(){return this.entity_72s5i8$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.entity_72s5i8$_0=e,Ye}))}}),mz.prototype.onDestroyView=function(){var t;iD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null},mz.$metadata$={kind:Vn,simpleName:"HtmlTextViewComponent",interfaces:[To,iD]},$z.prototype.render_ss14n$=function(t){var e,n=Sa.Companion.invoke_f6ihu2$(gz);for(TE().contentContainer(n.css),e=this.sourcesUrlToLoad_0.iterator();e.hasNext();){var i=e.next(),o=Yc(25),r=Sa.Companion.invoke_f6ihu2$(fz(null));TE().iframeComponentResponsiveIframe(r.css);var s=r.attrs;s.src=i+(this.props.contentTypeEpub?"?contentTypeEpub="+this.props.contentTypeEpub:""),Qc(s,o),Zc(s,Ez(this,o)),n.child_30b5ua$(r.create())}t.child_30b5ua$(n.create())},$z.prototype.componentDidUpdate=function(t,e,n){var i,o,r;t.sources.isEmpty()||this.sourcesUrlToLoad_0.containsAll_brywnq$(t.sources)||(this.paginateOnScrollManager_0=new Am(t.sources.size,t.pageSize),null!=(i=this.paginateOnScrollManager_0)&&(i.onScrollPageChanged=(o=t,r=this,function(t,e,n){return r.sourcesUrlToLoad_0=tl(o.sources,new la(0,n)),Ye})))},$z.prototype.componentWillUnmount=function(){var t;null!=(t=this.paginateOnScrollManager_0)&&t.onDestroy()},$z.$metadata$={kind:Vn,simpleName:"IframeComponent",interfaces:[Bc]},Object.defineProperty(Sz.prototype,"inviteLink",{configurable:!0,get:function(){return this.inviteLink_xwulzk$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.inviteLink_xwulzk$_0=e,Ye}))}}),Object.defineProperty(Sz.prototype,"entityName",{configurable:!0,get:function(){return this.entityName_c6fu3p$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.entityName_c6fu3p$_0=e,Ye}))}}),Object.defineProperty(Sz.prototype,"inviteCode",{configurable:!0,get:function(){return this.inviteCode_y1p4yr$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.inviteCode_y1p4yr$_0=e,Ye}))}}),Sz.prototype.onCreateView=function(){var t;VU.prototype.onCreateView.call(this),this.ustadComponentTitle=this.getString_za3lpa$(2658),this.mPresenter_0=new rl(this,this.arguments,this,this.di),null!=(t=this.mPresenter_0)&&t.onCreate(fr())},Sz.prototype.render_ss14n$=function(t){var e=Sa.Companion.invoke_f6ihu2$(bz),n=e.css;n.unaryPlus_uoyjcc$(TE().contentContainer),kr(n,C_(4)),gP(e,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,Lz(this)),t.child_30b5ua$(e.create())},Sz.prototype.onDestroyView=function(){var t;VU.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.inviteLink=null,this.inviteCode=null},Sz.$metadata$={kind:Vn,simpleName:"InviteViaLinkComponent",interfaces:[mo,VU]},Object.defineProperty(wz.prototype,"controlsEnabled",{configurable:!0,get:function(){return this.controlsEnabled_7si1za$_0},set:function(t){this.controlsEnabled_7si1za$_0=t}}),Object.defineProperty(wz.prototype,"errorText",{configurable:!0,get:function(){return this.errorText_x39m04$_0},set:function(t){var e,n;$a(this,(e=this,n=t,function(t){return e.codeLabel_0=e.codeLabel_0.copy_d8n4vg$(void 0,n),Ye}))}}),Object.defineProperty(wz.prototype,"code",{configurable:!0,get:function(){return this.code_4xymoa$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.code_4xymoa$_0=e,Ye}))}}),wz.prototype.finish=function(){var t;(e.isType(t=this.navController,Sn)?t:An()).navigateUp()},Object.defineProperty(wz.prototype,"buttonLabel",{configurable:!0,get:function(){return this.buttonLabel_hyj1w1$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.buttonLabel_hyj1w1$_0=e,Ye}))}}),Object.defineProperty(wz.prototype,"loading",{configurable:!0,get:function(){return e.callGetter(this,VU.prototype,"loading")},set:function(t){var n,i;$a(this,(n=t,i=this,function(t){return e.callSetter(i,VU.prototype,"loading",n),i.buttonEnabled=!n,Ye}))}}),wz.prototype.onCreateView=function(){var t,e,n;switch(VU.prototype.onCreateView.call(this),this.mPresenter_0=new sl(this,this.arguments,this,this.di),vr(In(this.arguments.get_11rb$(xa.Companion.ARG_CODE_TABLE)))){case 6:$a(this,(n=this,function(t){return n.entityType=n.getString_za3lpa$(2911),Ye})),t=this.getString_za3lpa$(2925);break;case 164:$a(this,function(t){return function(e){return t.entityType=t.getString_za3lpa$(2521),Ye}}(this)),t=this.getString_za3lpa$(2524);break;default:t="ERR - Unknown entity type"}this.ustadComponentTitle=t,$a(this,function(t){return function(e){return t.codeLabel_0=t.codeLabel_0.copy_d8n4vg$(fy(t.getString_za3lpa$(2671),[t.entityType])),Ye}}(this)),null!=(e=this.mPresenter_0)&&e.onCreate(fr())},wz.prototype.render_ss14n$=function(t){var e=Sa.Companion.invoke_f6ihu2$(zz);e.css.unaryPlus_uoyjcc$(TE().fieldsOnlyFormScreen),gP(e,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,Uz(this)),t.child_30b5ua$(e.create())},wz.prototype.onDestroyView=function(){VU.prototype.onDestroyView.call(this),this.mPresenter_0=null,this.controlsEnabled=null,this.errorText=null,this.code=null,this.buttonLabel=null},wz.$metadata$={kind:Vn,simpleName:"JoinWithCodeComponent",interfaces:[ro,VU]},Object.defineProperty(Pz.prototype,"mEditPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(Pz.prototype,"langNameError",{configurable:!0,get:function(){return this.langNameError_z6d061$_0},set:function(t){var e,n;$a(this,(e=this,n=t,function(t){return e.nameLabel_0=e.nameLabel_0.copy_d8n4vg$(void 0,n),Ye}))}}),Object.defineProperty(Pz.prototype,"fieldsEnabled",{configurable:!0,get:function(){return this.fieldsEnabled_x81nwy$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.fieldsEnabled_x81nwy$_0=e,Ye}))}}),Object.defineProperty(Pz.prototype,"entity",{configurable:!0,get:function(){return this.entity_l32tmt$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.entity_l32tmt$_0=e,Ye}))}}),Pz.prototype.onCreateView=function(){var t;oD.prototype.onCreateView.call(this),this.mPresenter_0=new al(this,this.arguments,this,this,this.di),this.setEditTitle_vux9f0$(2055,2058),null!=(t=this.mPresenter_0)&&t.onCreate(my(this.navController))},Pz.prototype.render_ss14n$=function(t){var e,n=Sa.Companion.invoke_f6ihu2$(Dz);n.css.unaryPlus_uoyjcc$(TE().fieldsOnlyFormScreen),$P(n,mp(),void 0,void 0,void 0,void 0,void 0,void 0,(e=this,function(t){var n,i,o,r,s,a;return n=In(e.nameLabel_0.text),i=e.nameLabel_0.errorText,r=null!=(o=e.entity)?o.name:null,s=e.nameLabel_0.error,a=!e.fieldsEnabled,$_(t,n,r,i,void 0,"outlined",Mz(e),void 0,void 0,a,s),Ye})),gP(n,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,Gz(this)),t.child_30b5ua$(n.create())},Pz.prototype.onDestroyView=function(){var t;oD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null,this.langNameError=null},Pz.$metadata$={kind:Vn,simpleName:"LanguageEditComponent",interfaces:[po,oD]},Object.defineProperty(qz.prototype,"displayTypeRepo",{configurable:!0,get:function(){var t;return null!=(t=this.dbRepo)?t.languageDao:null}}),Object.defineProperty(qz.prototype,"listPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),qz.prototype.onCreateView=function(){var t,e;uD.prototype.onCreateView.call(this),this.ustadComponentTitle=this.getString_za3lpa$(2057),this.showCreateNewItem=!0,this.addNewEntryText=this.getString_za3lpa$(2054),null!=(t=this.fabManager)&&(t.text=this.getString_za3lpa$(2053)),this.mPresenter_0=new cl(this,this.arguments,this,this.di,this),null!=(e=this.mPresenter_0)&&e.onCreate(fr())},qz.prototype.renderListItem_js0tu9$=function(t,e){jP(t,"language",e.name,In(e.iso_639_2_standard)+"/"+In(e.iso_639_3_standard),!0)},qz.prototype.handleClickEntry_11rc$=function(t){var e;null!=(e=this.mPresenter_0)&&e.handleClickEntry_11rc$(t)},qz.prototype.onDestroyView=function(){var t;uD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null},qz.$metadata$={kind:Vn,simpleName:"LanguageListComponent",interfaces:[ho,uD]},Object.defineProperty(Fz.prototype,"languageOptions_0",{configurable:!0,get:function(){return null==this.languageOptions_ocmtbv$_0?ll("languageOptions"):this.languageOptions_ocmtbv$_0},set:function(t){this.languageOptions_ocmtbv$_0=t}}),Object.defineProperty(Fz.prototype,"selectedLanguage_0",{configurable:!0,get:function(){return null==this.selectedLanguage_zdnz9c$_0?ll("selectedLanguage"):this.selectedLanguage_zdnz9c$_0},set:function(t){this.selectedLanguage_zdnz9c$_0=t}}),Fz.prototype.init_xibzyo$=function(t,e){this.languageOptions_0=e.systemImpl.getAllUiLanguagesList(t);var n,i=this.languageOptions_0;t:do{var o,r=0;for(o=i.iterator();o.hasNext();){var s=o.next();if(Je(s.langCode,e.systemImpl.getDisplayedLocale_za3rmp$(t))){n=r;break t}r=r+1|0}n=-1}while(0);var a=n;this.selectedLanguage_0=this.languageOptions_0.get_za3lpa$(a).langCode},Fz.prototype.render_ss14n$=function(t){Dd(t,void 0,void 0,void 0,void 0,void 0,"outlined",void 0,void 0,Bz(this))},Fz.prototype.handleOnLanguageChange_0=function(t){var e,n;this.props.systemImpl.setLocale(t,this),$a(this,(e=t,n=this,function(t){return n.selectedLanguage_0=e,Ye})),window.location.reload()},Fz.$metadata$={kind:Vn,simpleName:"LanguageOptionComponent",interfaces:[Bc]},Object.defineProperty(Hz.prototype,"mEditPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(Hz.prototype,"reasonTitleError",{configurable:!0,get:function(){return this.reasonTitleError_6u07ek$_0},set:function(t){var e,n;$a(this,(e=this,n=t,function(t){return e.reasonTitle_0=e.reasonTitle_0.copy_d8n4vg$(void 0,n),Ye}))}}),Object.defineProperty(Hz.prototype,"fieldsEnabled",{configurable:!0,get:function(){return this.fieldsEnabled_xf8jo$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.fieldsEnabled_xf8jo$_0=e,Ye}))}}),Object.defineProperty(Hz.prototype,"entity",{configurable:!0,get:function(){return this.entity_38iuj7$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.entity_38iuj7$_0=e,Ye}))}}),Hz.prototype.onCreateView=function(){var t;oD.prototype.onCreateView.call(this),this.mPresenter_0=new ul(this,this.arguments,this,this,this.di),this.setEditTitle_vux9f0$(2372,2373),null!=(t=this.mPresenter_0)&&t.onCreate(my(this.navController))},Hz.prototype.render_ss14n$=function(t){gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Kz(this))},Hz.prototype.onDestroyView=function(){var t;oD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null,this.reasonTitleError=null},Hz.$metadata$={kind:Vn,simpleName:"LeavingReasonEditComponent",interfaces:[$o,oD]},Object.defineProperty(Xz.prototype,"displayTypeRepo",{configurable:!0,get:function(){var t;return null!=(t=this.dbRepo)?t.leavingReasonDao:null}}),Object.defineProperty(Xz.prototype,"listPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Xz.prototype.onCreateView=function(){var t,e;uD.prototype.onCreateView.call(this),this.addNewEntryText=this.getString_za3lpa$(2377),this.showCreateNewItem=!0,null!=(t=this.fabManager)&&(t.text=this.getString_za3lpa$(2378)),this.ustadComponentTitle=this.getString_za3lpa$(2376),this.mPresenter_0=new hl(this,this.arguments,this,this.di,this),null!=(e=this.mPresenter_0)&&e.onCreate(fr())},Xz.prototype.renderListItem_js0tu9$=function(t,e){var n;qk(t,"question_mark",null!=(n=e.leavingReasonTitle)?n:"")},Xz.prototype.handleClickEntry_11rc$=function(t){var e;null!=(e=this.mPresenter_0)&&e.onClickLeavingReason_e9c2s2$(t)},Xz.prototype.onDestroyView=function(){uD.prototype.onDestroyView.call(this),this.mPresenter_0=null,this.dbRepo=null},Xz.$metadata$={kind:Vn,simpleName:"LeavingReasonListComponent",interfaces:[go,uD]},Jz.$metadata$={kind:Vn,simpleName:"LinkifyOptionsAttributes",interfaces:[]},Yz.$metadata$={kind:Vn,simpleName:"LinkifyOptions",interfaces:[]},Object.defineProperty(iw.prototype,"errorMessage",{configurable:!0,get:function(){return this.errorMessage_za89ee$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.errorMessage_za89ee$_0=e,Ye}))}}),Object.defineProperty(iw.prototype,"versionInfo",{configurable:!0,get:function(){return this.versionInfo_baqnnp$_0},set:function(t){this.versionInfo_baqnnp$_0=t}}),Object.defineProperty(iw.prototype,"loginIntentMessage",{configurable:!0,get:function(){return this.loginIntentMessage_158yh3$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.loginIntentMessage_158yh3$_0=e,Ye}))}}),Object.defineProperty(iw.prototype,"isEmptyPassword",{configurable:!0,get:function(){return this.isEmptyPassword_hdde37$_0},set:function(t){var e;this.isEmptyPassword_hdde37$_0=t,t&&$a(this,(e=this,function(t){return e.passwordLabel_0=e.passwordLabel_0.copy_d8n4vg$(void 0,e.errorText_0),Ye}))}}),Object.defineProperty(iw.prototype,"isEmptyUsername",{configurable:!0,get:function(){return this.isEmptyUsername_3ta4r6$_0},set:function(t){var e;this.isEmptyUsername_3ta4r6$_0=t,t&&$a(this,(e=this,function(t){return e.usernameLabel_0=e.usernameLabel_0.copy_d8n4vg$(void 0,e.errorText_0),Ye}))}}),Object.defineProperty(iw.prototype,"inProgress",{configurable:!0,get:function(){return this.inProgress_h0qh5$_0},set:function(t){var e,n;this.inProgress_h0qh5$_0=t,$a(this,(e=t,n=this,function(t){return n.loading=e,Ye}))}}),Object.defineProperty(iw.prototype,"createAccountVisible",{configurable:!0,get:function(){return this.createAccountVisible_b5yi0$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.createAccountVisible_b5yi0$_0=e,Ye}))}}),Object.defineProperty(iw.prototype,"connectAsGuestVisible",{configurable:!0,get:function(){return this.connectAsGuestVisible_h6rqnf$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.connectAsGuestVisible_h6rqnf$_0=e,Ye}))}}),iw.prototype.onCreateView=function(){var t;VU.prototype.onCreateView.call(this),this.ustadComponentTitle=this.getString_za3lpa$(2001),this.mPresenter_0=new dl(this,this.arguments,this,this.di),null!=(t=this.mPresenter_0)&&t.onCreate(fr())},iw.prototype.render_ss14n$=function(t){gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,gw(this))},iw.prototype.clearFields=function(){var t;$a(this,(t=this,function(e){return t.username_0="",t.password_0="",Ye}))},iw.prototype.onDestroyView=function(){var t;VU.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null},iw.$metadata$={kind:Vn,simpleName:"LoginComponent",interfaces:[bi,VU]},Object.defineProperty(Ew.prototype,"currentDestination_0",{configurable:!0,get:function(){return null==this.currentDestination_joln2m$_0?ll("currentDestination"):this.currentDestination_joln2m$_0},set:function(t){this.currentDestination_joln2m$_0=t}}),Ew.prototype.componentWillMount=function(){var t;VU.prototype.componentWillMount.call(this),tm().subscribe_w8v70w$(this.appStateChangeListener_0),window.addEventListener("hashchange",(t=this,function(e){return t.onDestinationChanged_0(),Ye})),this.onDestinationChanged_0()},Ew.prototype.onDestinationChanged_0=function(){var t,n,i=null;try{i=pl.Companion.parse_puj7f4$(window.location.href).viewName}catch(t){if(!e.isType(t,_l))throw t}var o,r,s=null!=(t=X_().lookupDestinationName_pdl1vj$(i))?t:X_().defaultDestination;null!=(n=0!==s.labelId&&2539!==s.labelId?s:null)&&(this.ustadComponentTitle=this.getString_za3lpa$(n.labelId)),$a(this,(o=s,r=this,function(t){return r.currentDestination_0=o,r.activeAccount_0=r.accountManager.activeAccount,Ye})),window.setTimeout(function(t){return function(){var e,n,i,o=document.getElementById("home-2052");return null!=(i=null!=(n=null!=o?o:null)?n.style:null)&&(i.display=!1===(null!=(e=t.activeAccount_0)?e.admin:null)?"none":"flex"),Ye}}(this),500)},Ew.prototype.render_ss14n$=function(t){t.invoke_c0v1gl$(De.Consumer,Sw(this))},Ew.prototype.renderBottomNavigation_0=function(t){var e;id(t,this.currentDestination_0,!0,void 0,void 0,(e=this,function(t){var n=t.css;n.unaryPlus_uoyjcc$(TE().mainComponentBottomNav),n.unaryPlus_uoyjcc$(TE().showOnMobile),t.attrs.onChange=vw(e);var i=ec([Ei.Companion.VIEW_NAME]);if(!e.accountManager.activeAccount.admin){var o=$i.Companion.VIEW_NAME;i.add_11rb$(o)}var r,s,a=X_().destinationList,c=Yo();for(r=a.iterator();r.hasNext();){var l=r.next();null!=l.icon&&-1===i.indexOf_11rb$(l.view)&&c.add_11rb$(l)}for(s=c.iterator();s.hasNext();){var u,h=s.next(),d=e;null!=(u=h.icon)&&od(t,d.getString_za3lpa$(h.labelId),u,!0,h)}return Ye}))},Ew.prototype.renderSideNavigation_0=function(t){var e={},n={position:"relative",display:"block",height:"100%",minHeight:"100vh"};e.style=n,xd(t,!0,"left","permanent",void 0,void 0,void 0,e,void 0,void 0,void 0,zw(this))},Ew.prototype.renderSnackBar_0=function(t){n_(t,In(this.appState_0.appSnackBar.message),null!=this.appState_0.appSnackBar.message,ww,void 0,void 0,void 0,3e3,void 0,void 0,Ow(this))},Ew.prototype.componentWillUnmount=function(){this.appStateChangeListener_0=Rw},Ew.$metadata$={kind:Vn,simpleName:"MainComponent",interfaces:[VU]},Object.defineProperty(Uw.prototype,"mEditPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(Uw.prototype,"blockTitleError",{configurable:!0,get:function(){return this.blockTitleError_h013ed$_0},set:function(t){var e;this.blockTitleError_h013ed$_0=t,$a(this,(e=this,function(t){return e.titleLabel_0=e.titleLabel_0.copy_d8n4vg$(void 0,e.blockTitleError_h013ed$_0),Ye}))}}),Object.defineProperty(Uw.prototype,"startDate",{configurable:!0,get:function(){return this.startDate_c86ula$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.startDate_c86ula$_0=e,Ye}))}}),Object.defineProperty(Uw.prototype,"startTime",{configurable:!0,get:function(){return this.startTime_bz96e5$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.startTime_bz96e5$_0=e,Ye}))}}),Object.defineProperty(Uw.prototype,"timeZone",{configurable:!0,get:function(){return this.timeZone_1azoev$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.timeZone_1azoev$_0=e,Ye}))}}),Object.defineProperty(Uw.prototype,"fieldsEnabled",{configurable:!0,get:function(){return this.fieldsEnabled_8z4txm$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.fieldsEnabled_8z4txm$_0=e,Ye}))}}),Object.defineProperty(Uw.prototype,"entity",{configurable:!0,get:function(){return this.entity_k1mlsx$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.entity_k1mlsx$_0=e,Ye}))}}),Uw.prototype.onCreateView=function(){var t,n,i,o,r;oD.prototype.onCreateView.call(this),this.mPresenter_0=new gl(this,this.arguments,this,this.di,this),this.setEditTitle_vux9f0$(2923,2882),Xa.Napier.d_82mfvz$("ModuleCourseBlockEditComponent: navController viewName = "+In(null!=(t=this.navController.currentBackStackEntry)?t.viewName:null)+"stateHandle="+In(null!=(o=e.isType(i=null!=(n=this.navController.currentBackStackEntry)?n.savedStateHandle:null,aa)?i:null)?o.dumpToString():null)),null!=(r=this.mPresenter_0)&&r.onCreate(my(this.navController))},Uw.prototype.render_ss14n$=function(t){var e,n=Sa.Companion.invoke_f6ihu2$(Iw);n.css.unaryPlus_uoyjcc$(TE().fieldsOnlyFormScreen),$P(n,mp(),void 0,void 0,void 0,void 0,void 0,void 0,(e=this,function(t){var n,i,o,r,s,a;return n=In(e.titleLabel_0.text),i=e.titleLabel_0.errorText,r=null!=(o=e.entity)?o.cbTitle:null,s=e.titleLabel_0.error,a=!e.fieldsEnabled,$_(t,n,r,i,void 0,"outlined",Dw(e),void 0,void 0,a,s),Ye})),$P(n,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a;return n=In(t.descriptionLabel_0.text),i=t.descriptionLabel_0.errorText,r=null!=(o=t.entity)?o.cbDescription:null,s=t.descriptionLabel_0.error,a=!t.fieldsEnabled,$_(e,n,r,i,void 0,"outlined",Pw(t),void 0,void 0,a,s),Ye}}(this)),gP(n,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,jw(this)),t.child_30b5ua$(n.create())},Uw.prototype.onDestroyView=function(){var t;oD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null,this.blockTitleError=null},Uw.$metadata$={kind:Vn,simpleName:"ModuleCourseBlockEditComponent",interfaces:[eo,oD]},Bw.prototype.render_ss14n$=function(t){$P(t,mp(),void 0,void 0,void 0,void 0,void 0,Yn.row,Jw(this))},Bw.prototype.handleSendComment_0=function(){var t,e;this.commentText_0.length>0?(null!=(t=this.props.listener)&&t.addComment_61zpoe$(this.commentText_0),$a(this,(e=this,function(t){return e.commentText_0="",Ye}))):$a(this,function(t){return function(e){return t.commentLabel_0=t.commentLabel_0.copy_d8n4vg$(void 0,""),Ye}}(this))},Bw.$metadata$={kind:Vn,simpleName:"NewCommentsComponent",interfaces:[Bc]},Object.defineProperty(Qw.prototype,"entry",{configurable:!0,get:function(){return this.entry_8wp86h$_0},set:function(t){var e;this.entry_8wp86h$_0=t,this.ustadComponentTitle=null!=t?t.title:null,null!=(e=this.mPresenter_0)&&e.onResume()}}),Object.defineProperty(Qw.prototype,"pdfContainerUid",{configurable:!0,get:function(){return this.pdfContainerUid_ys615y$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.pdfContainerUid_ys615y$_0=e,Ye}))}}),Qw.prototype.onCreateView=function(){var t,e,n,i;VU.prototype.onCreateView.call(this),null!=(t=this.fabManager)&&(t.visible=!1),this.containerUid_0=null!=(n=null!=(e=this.arguments.get_11rb$(xa.Companion.ARG_CONTAINER_UID))?oc(e):null)?n:ra,this.mPresenter_0=new $l(this,this.arguments,this,this.di),null!=(i=this.mPresenter_0)&&i.onCreate(fr())},Qw.prototype.render_ss14n$=function(t){Je(this.pdfContainerUid,ra)||iO(t,ga("/pdf/"+In(this.pdfContainerUid)),void 0,!1)},Qw.prototype.onDestroyView=function(){var t;VU.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entry=null},Qw.$metadata$={kind:Vn,simpleName:"PDFContentComponent",interfaces:[Ri,VU]},eO.prototype.render_ss14n$=function(t){var e,n=Sa.Companion.invoke_f6ihu2$(tO);for(TE().contentContainer(n.css),this.sourcesUrlToLoad_0=this.props.sources,e=this.sourcesUrlToLoad_0.iterator();e.hasNext();){var i=e.next(),o=Yc(25),r=Sa.Companion.invoke_f6ihu2$(Zw(null));TE().iframeComponentResponsiveIframe(r.css);var s=r.attrs;s.src=i+(this.props.contentTypeEpub?"?contentTypeEpub="+this.props.contentTypeEpub:""),Qc(s,o),Zc(s,nO(this,o)),n.child_30b5ua$(r.create())}t.child_30b5ua$(n.create())},eO.prototype.componentDidUpdate=function(t,e,n){t.sources.isEmpty()||this.sourcesUrlToLoad_0.containsAll_brywnq$(t.sources)||(this.sourcesUrlToLoad_0=t.sources)},eO.prototype.componentWillUnmount=function(){var t;null!=(t=this.paginateOnScrollManager_0)&&t.onDestroy()},eO.$metadata$={kind:Vn,simpleName:"PDFIframeComponent",interfaces:[Bc]},Object.defineProperty(rO.prototype,"mEditPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(rO.prototype,"infoText",{configurable:!0,get:function(){return this.infoText_hus0xb$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.infoText_hus0xb$_0=e,Ye}))}}),Object.defineProperty(rO.prototype,"siteTerms",{configurable:!0,get:function(){return this.siteTerms_3swdyi$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.siteTerms_3swdyi$_0=e,Ye}))}}),Object.defineProperty(rO.prototype,"relationshipFieldOptions",{configurable:!0,get:function(){return this.relationshipFieldOptions_vc949e$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.relationshipFieldOptions_vc949e$_0=e,Ye}))}}),Object.defineProperty(rO.prototype,"relationshipFieldError",{configurable:!0,get:function(){return this.relationshipFieldError_hqcp6s$_0},set:function(t){var e,n;this.relationshipFieldError_hqcp6s$_0=t,$a(this,(e=this,n=t,function(t){return e.relationshipLabel_0=e.relationshipLabel_0.copy_d8n4vg$(void 0,n),Ye}))}}),Object.defineProperty(rO.prototype,"fieldsEnabled",{configurable:!0,get:function(){return this.fieldsEnabled_ixqpem$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.fieldsEnabled_ixqpem$_0=e,Ye}))}}),Object.defineProperty(rO.prototype,"entity",{configurable:!0,get:function(){return this.entity_y1mfb$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return null!=e&&(e.ppjParentPersonUid=ra),n.entity_y1mfb$_0=e,Ye}))}}),rO.prototype.onCreateView=function(){var t,e;oD.prototype.onCreateView.call(this),this.mPresenter_0=new El(this,this.arguments,this,this,this.di),this.ustadComponentTitle=this.getString_za3lpa$(2713),null!=(t=this.mPresenter_0)&&t.onCreate(my(this.navController)),this.updateUiWithStateChangeDelay_n53o35$(void 0,(e=this,function(){var t;return null!=(t=e.fabManager)&&(t.visible=!1),Ye}))},rO.prototype.render_ss14n$=function(t){var e=Sa.Companion.invoke_f6ihu2$(oO),n=e.css;n.unaryPlus_uoyjcc$(TE().contentContainer),n.unaryPlus_uoyjcc$(TE().defaultPaddingTop),gP(e,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,fO(this)),t.child_30b5ua$(e.create())},rO.prototype.onDestroyView=function(){var t;oD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null,this.relationshipFieldError=null},rO.$metadata$={kind:Vn,simpleName:"ParentalConsentManagementComponent",interfaces:[co,oD]},Object.defineProperty($O.prototype,"fieldsEnabled",{configurable:!0,get:function(){return this.fieldsEnabled_gy85x8$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.fieldsEnabled_gy85x8$_0=e,Ye}))}}),Object.defineProperty($O.prototype,"mEditPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty($O.prototype,"currentPasswordError",{configurable:!0,get:function(){return this.currentPasswordError_y463es$_0},set:function(t){var e,n;this.currentPasswordError_y463es$_0=t,$a(this,(e=this,n=t,function(t){return e.currentPasswordLabel_0=e.currentPasswordLabel_0.copy_d8n4vg$(void 0,n),Ye}))}}),Object.defineProperty($O.prototype,"newPasswordError",{configurable:!0,get:function(){return this.newPasswordError_dh9h5v$_0},set:function(t){var e,n;this.newPasswordError_dh9h5v$_0=t,$a(this,(e=this,n=t,function(t){return e.newPasswordLabel_0=e.newPasswordLabel_0.copy_d8n4vg$(void 0,null!=n?$y(n):null),Ye}))}}),Object.defineProperty($O.prototype,"confirmedPasswordError",{configurable:!0,get:function(){return this.confirmedPasswordError_q90xy6$_0},set:function(t){var e,n;this.confirmedPasswordError_q90xy6$_0=t,null==this.noPasswordMatchError&&$a(this,(e=this,n=t,function(t){return e.confirmPasswordLabel_0=e.confirmPasswordLabel_0.copy_d8n4vg$(void 0,null!=n?$y(n):null),Ye}))}}),Object.defineProperty($O.prototype,"noPasswordMatchError",{configurable:!0,get:function(){return this.noPasswordMatchError_tda581$_0},set:function(t){var e,n;$a(this,(e=this,n=t,function(t){return e.confirmPasswordLabel_0=e.confirmPasswordLabel_0.copy_d8n4vg$(void 0,null!=n?$y(n):null),Ye})),this.noPasswordMatchError_tda581$_0=t}}),Object.defineProperty($O.prototype,"usernameError",{configurable:!0,get:function(){return this.usernameError_tgkb4e$_0},set:function(t){var e,n;this.usernameError_tgkb4e$_0=t,$a(this,(e=this,n=t,function(t){return e.usernameLabel_0=e.usernameLabel_0.copy_d8n4vg$(void 0,null!=n?$y(n):null),Ye}))}}),Object.defineProperty($O.prototype,"errorMessage",{configurable:!0,get:function(){return this.errorMessage_u6qr5$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.errorMessage_u6qr5$_0=e,Ye}))}}),Object.defineProperty($O.prototype,"currentPasswordVisible",{configurable:!0,get:function(){return this.currentPasswordVisible_y3b9ua$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.currentPasswordVisible_y3b9ua$_0=e,Ye}))}}),Object.defineProperty($O.prototype,"usernameVisible",{configurable:!0,get:function(){return this.usernameVisible_x9ryq0$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.usernameVisible_x9ryq0$_0=e,Ye}))}}),Object.defineProperty($O.prototype,"entity",{configurable:!0,get:function(){return this.entity_c1gaoj$_0},set:function(t){var e,n;this.ustadComponentTitle=null!=t?t.fullName():null,$a(this,(e=t,n=this,function(t){return n.entity_c1gaoj$_0=e,Ye}))}}),$O.prototype.onCreateView=function(){var t;oD.prototype.onCreateView.call(this),this.mPresenter_0=new yl(this,this.arguments,this,this.di,this),null!=(t=this.mPresenter_0)&&t.onCreate(fr())},$O.prototype.render_ss14n$=function(t){var e=Sa.Companion.invoke_f6ihu2$(gO),n=e.css;n.unaryPlus_uoyjcc$(TE().contentContainer),n.unaryPlus_uoyjcc$(TE().defaultDoubleMarginTop),gP(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,UO(this)),t.child_30b5ua$(e.create())},$O.prototype.onDestroyView=function(){var t;oD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null},$O.$metadata$={kind:Vn,simpleName:"PersonAccountEditComponent",interfaces:[Li,oD]},Object.defineProperty(PO.prototype,"detailPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(PO.prototype,"clazzes",{configurable:!0,get:function(){return this.clazzes_7k3u8c$_0},set:function(t){this.clazzes_7k3u8c$_0=t;var e=null!=t?t.getData_vux9f0$(0,2147483647):null;null!=e&&e.removeObserver_fujmse$(this.observer_0),null!=e&&e.observe_bi6zy5$(this,this.observer_0)}}),Object.defineProperty(PO.prototype,"changePasswordVisible",{configurable:!0,get:function(){return this.changePasswordVisible_yawzir$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.changePasswordVisible_yawzir$_0=e,Ye}))}}),Object.defineProperty(PO.prototype,"chatVisibility",{configurable:!0,get:function(){return this.chatVisibility_nl411s$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.chatVisibility_nl411s$_0=e,Ye}))}}),Object.defineProperty(PO.prototype,"showCreateAccountVisible",{configurable:!0,get:function(){return this.showCreateAccountVisible_3godxg$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.showCreateAccountVisible_3godxg$_0=e,Ye}))}}),Object.defineProperty(PO.prototype,"entity",{configurable:!0,get:function(){return this.entity_7fdfuf$_0},set:function(t){var e,n;this.ustadComponentTitle=(null!=t?t.firstNames:null)+" "+(null!=t?t.lastName:null),$a(this,(e=t,n=this,function(t){return n.entity_7fdfuf$_0=e,Ye}))}}),PO.prototype.onCreateView=function(){var t;iD.prototype.onCreateView.call(this),this.mPresenter_0=new bl(this,this.arguments,this,this.di,this),null!=(t=this.mPresenter_0)&&t.onCreate(fr())},PO.prototype.render_ss14n$=function(t){var e=Sa.Companion.invoke_f6ihu2$(DO),n=e.css;n.unaryPlus_uoyjcc$(TE().contentContainer),n.unaryPlus_uoyjcc$(TE().defaultPaddingTop),gP(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,JO(this)),t.child_30b5ua$(e.create())},PO.prototype.onDestroyView=function(){var t;iD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null},YO.prototype.renderListItem_f4dmsf$=function(t,e,n){gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,QO(n,e,this))},YO.$metadata$={kind:Vn,simpleName:"ClazzEnrolmentWithClazzSimpleListComponent",interfaces:[AD]},tR.prototype.onChanged_11rb$=function(t){this.postValue_11rb$(null!=t?t.personPictureUri:null)},tR.$metadata$={kind:Vn,interfaces:[Ka,Va]},ZO.$metadata$={kind:Ho,simpleName:"Companion",interfaces:[]};var nR=null;function iR(){return null===nR&&new ZO,nR}function oR(t){return new ba(ya.emptyMap,t)}function rR(t){oD.call(this,t),this.mPresenter_0=null,this.showPassword_0=!1,this.showConfirmPassword_0=!1,this.registrationEnabled_0=!1,this.minorRegistrationModeEnabled_0=!1,this.genderOptions_pi0zhy$_0=null,this.personPicture_fi2nze$_0=null,this.approvalPersonParentJoin_ud0iy3$_0=null,this.registrationMode_doslej$_0=0,this.usernameLabel_0=new Lm(this.getString_za3lpa$(2034)),this.usernameError_2yxzvj$_0=null,this.noMatchPasswordError_sf10ag$_0=null,this.passwordLabel_0=new Lm(this.getString_za3lpa$(2035),void 0,void 0,"password-field"),this.passwordError_l4xzxi$_0=null,this.emailLabel_0=new Lm(this.getString_za3lpa$(2064)),this.parentEmailLabel_0=new Lm($y(this.getString_za3lpa$(2710))),this.emailError_j8ysq3$_0=null,this.confirmPasswordLabel_0=new Lm(this.getString_za3lpa$(2036),void 0,void 0,"confirm-password-field"),this.confirmError_oa2vt3$_0=null,this.dobLabel_0=new Lm(this.getString_za3lpa$(2312)),this.dateOfBirthError_i0z7f7$_0=null,this.parentContactError_b743yn$_0=null,this.firstNameLabel_0=new Lm(this.getString_za3lpa$(2038)),this.firstNamesFieldError_k1ioh1$_0=null,this.lastNameFieldError_f2727m$_0=null,this.genderLabel_0=new Lm(this.getString_za3lpa$(2244)),this.genderFieldError_mjwzea$_0=null,this.firstNameError_jim8ks$_0=null,this.lastNameLabel_0=new Lm(this.getString_za3lpa$(2037)),this.lastNameError_kz7424$_0=null,this.fieldsEnabled_rl9kt1$_0=!0,this.entity_9r5kte$_0=null}function sR(t){return function(e){return $a(t,function(t,e){return function(n){var i;return console.log("ClazzEditComponent: setting course picture uri = "+In(t)),null!=(i=e.personPicture)&&(i.personPictureUri=t),Ye}}(e,t)),Ye}}function aR(t){return Ye}function cR(t,e){return yP(t,e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,aR),Ye}function lR(t){return function(e){return kr(e.css,new ai("12px")),e.child_up9nw1$(We(BD),function(t){return function(e){var n;return e.attrs.attachmentUri=null!=(n=t.personPicture)?n.personPictureUri:null,e.attrs.onNewImageSelected=sR(t),e.attrs.contentBlock=cR,Ye}}(t)),Ye}}function uR(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.firstNames=t),e.firstNameError=null,Ye}}(e,t)),Ye}}function hR(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.lastName=t),e.lastNameError=null,Ye}}(e,t)),Ye}}function dR(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.approvalPersonParentJoin)&&(i.ppjEmail=t),e.parentContactError=null,Ye}}(e,t)),Ye}}function pR(t){return function(n){return $a(t,function(t,n){return function(i){var o;return null!=(o=n.entity)&&(o.dateOfBirth=e.Long.fromNumber(t.getTime())),n.dateOfBirthError=null,Ye}}(n,t)),Ye}}function _R(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.gender=vr(t)),e.genderFieldError=null,Ye}}(e,t)),Ye}}function mR(t){return function(e){return t.minorRegistrationModeEnabled_0&&$P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s;return n=In(t.parentEmailLabel_0.text),o=null!=(i=t.approvalPersonParentJoin)?i.ppjEmail:null,r=t.parentEmailLabel_0.error,s=!t.fieldsEnabled,$_(e,n,o,void 0,void 0,"outlined",dR(t),void 0,void 0,s,r),Ye}}(t)),t.registrationEnabled_0||$P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s;return n=In(t.dobLabel_0.text),i=t.dobLabel_0.error,o=t.dobLabel_0.errorText,s=dy(null!=(r=t.entity)?r.dateOfBirth:null),Cd(e,n,pR(t),s,void 0,o,i,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"outlined"),Ye}}(t)),$P(e,mp(),t.registrationEnabled_0&&!t.minorRegistrationModeEnabled_0?mp():lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a,c,l,u;if(n=In(t.genderLabel_0.text),o=In(null!=(i=t.entity)?i.gender:null),s=null!=(r=t.genderLabel_0.errorText)?r:"",a=t.genderLabel_0.error,null!=(c=t.genderOptions)){var h,d=Xo(Ko(c,10));for(h=c.iterator();h.hasNext();){var p=h.next();d.add_11rb$(new qa(p.code.toString(),p.toString()))}u=d}else u=null;return b_(e,n,o,s,void 0,null!=(l=u)?yr(l):null,void 0,_R(t),void 0,void 0,a),Ye}}(t)),Ye}}function fR(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.personAddress=t),Ye}}(e,t)),Ye}}function gR(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.phoneNum=t),Ye}}(e,t)),Ye}}function $R(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.emailAddr=t),e.emailError=null,Ye}}(e,t)),Ye}}function ER(t){return function(e){var n=t;return cs(e.css,void 0,void 0,C_(n.registrationEnabled_0&&!n.minorRegistrationModeEnabled_0?0:4)),t.minorRegistrationModeEnabled_0||$P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r;return n=t.getString_za3lpa$(2045),o=null!=(i=t.entity)?i.phoneNum:null,r=!t.fieldsEnabled,$_(e,n,o,void 0,void 0,"outlined",gR(t),void 0,void 0,r),Ye}}(t)),t.minorRegistrationModeEnabled_0||$P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s;return n=In(t.emailLabel_0.text),o=null!=(i=t.entity)?i.emailAddr:null,r=t.emailLabel_0.error,s=!t.fieldsEnabled,$_(e,n,o,void 0,void 0,"outlined",$R(t),void 0,void 0,s,r),Ye}}(t)),Ye}}function yR(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.username=t),e.usernameError=null,Ye}}(e,t)),Ye}}function bR(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.newPassword=t),e.passwordError=null,Ye}}(e,t)),Ye}}function SR(t){return function(e){return $a(t,function(t){return function(e){return t.showPassword_0=!t.showPassword_0,Ye}}(t)),Ye}}function vR(t){return TE().errorTextClass(t.css),Ye}function CR(t){return function(e){var n,i,o,r,s,a,c,l;return n=In(t.passwordLabel_0.text),i=t.passwordLabel_0.id,o=t.passwordLabel_0.error,Ip(e,n,t.passwordLabel_0.id,i,void 0,void 0,o,void 0,"outlined"),r=t.passwordLabel_0.id,a=null!=(s=t.entity)?s.newPassword:null,c=!t.fieldsEnabled,Yp(e,a,void 0,t.passwordLabel_0.text,c,void 0,t.passwordLabel_0.error,void 0,void 0,void 0,void 0,void 0,t.showPassword_0?"text":"password",r,void 0,void 0,void 0,void 0,bR(t),void 0,function(t){return function(e){return e.attrs.endAdornment=xp(e,t.showPassword_0?"visibility_off":"visibility",void 0,void 0,SR(t),void 0,void 0,void 0,void 0,"end"),Ye}}(t)),null!=(l=t.passwordLabel_0.errorText)&&Pd(e,l,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,vR),Ye}}function NR(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.confirmedPassword=t),e.confirmError=null,Ye}}(e,t)),Ye}}function TR(t){return function(e){return $a(t,function(t){return function(e){return t.showConfirmPassword_0=!t.showConfirmPassword_0,Ye}}(t)),Ye}}function LR(t){return TE().errorTextClass(t.css),Ye}function zR(t){return function(e){var n,i,o,r,s,a,c,l,u;return n=In(t.confirmPasswordLabel_0.text),i=t.confirmPasswordLabel_0.id,o=t.confirmPasswordLabel_0.error,Ip(e,n,t.confirmPasswordLabel_0.id,i,void 0,void 0,o,void 0,"outlined"),r=t.confirmPasswordLabel_0.id,a=null!=(s=t.entity)?s.confirmedPassword:null,c=!t.fieldsEnabled,l=t.confirmPasswordLabel_0.error,Yp(e,a,void 0,t.confirmPasswordLabel_0.text,c,void 0,l,void 0,void 0,void 0,void 0,void 0,t.showConfirmPassword_0?"text":"password",r,void 0,void 0,void 0,void 0,NR(t),void 0,function(t){return function(e){return e.attrs.endAdornment=xp(e,t.showConfirmPassword_0?"visibility_off":"visibility",void 0,void 0,TR(t),void 0,void 0,void 0,void 0,"end"),Ye}}(t)),null!=(u=t.confirmPasswordLabel_0.errorText)&&Pd(e,u,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,LR),Ye}}function wR(t){return function(e){return t.registrationEnabled_0&&($P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return TE().defaultMarginTop(e.css),Dd(e,void 0,void 0,void 0,void 0,void 0,"outlined",void 0,void 0,CR(t)),Ye}}(t)),$P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return TE().defaultMarginTop(e.css),Dd(e,void 0,void 0,void 0,void 0,void 0,"outlined",void 0,void 0,zR(t)),Ye}}(t))),Ye}}function OR(t){return function(e){return $P(e,mp(),ap(),void 0,void 0,void 0,void 0,void 0,lR(t)),$P(e,mp(),hp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b;return n=In(t.firstNameLabel_0.text),i=t.firstNameLabel_0.errorText,r=null!=(o=t.entity)?o.firstNames:null,s=t.firstNameLabel_0.error,a=!t.fieldsEnabled,$_(e,n,r,i,void 0,"outlined",uR(t),void 0,void 0,a,s),c=In(t.lastNameLabel_0.text),u=null!=(l=t.entity)?l.lastName:null,h=t.lastNameLabel_0.error,d=!t.fieldsEnabled,$_(e,c,u,t.lastNameLabel_0.errorText,void 0,"outlined",hR(t),void 0,void 0,d,h),gP(e,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,mR(t)),t.minorRegistrationModeEnabled_0||(p=t.getString_za3lpa$(2315),m=null!=(_=t.entity)?_.personAddress:null,f=!t.fieldsEnabled,$_(e,p,m,void 0,void 0,"outlined",fR(t),void 0,void 0,f)),gP(e,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,ER(t)),t.registrationEnabled_0&&(g=In(t.usernameLabel_0.text),E=null!=($=t.entity)?$.username:null,y=t.usernameLabel_0.error,b=!t.fieldsEnabled,$_(e,g,E,void 0,void 0,"outlined",yR(t),void 0,void 0,b,y,!1)),gP(e,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,wR(t)),Ye}}(t)),Ye}}function RR(t){uD.call(this,t),this.mPresenter_0=null}function AR(t){VU.call(this,t),this.mPresenter_0=null}function xR(t){VU.call(this,t),this.mPresenter_0=null,this.dateLabel_0=new Lm(this.getString_za3lpa$(2709)),this.dateOfBirth_nb00qo$_0=e.Long.fromNumber((new Date).getTime())}function IR(t){return function(n){return $a(t,function(t,n){return function(i){return n.dateOfBirth=e.Long.fromNumber(t.getTime()),Ye}}(n,t)),Ye}}function UR(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().defaultFullWidth),e.unaryPlus_uoyjcc$(TE().defaultDoubleMarginTop),Lr(e,new ai("50px")),Ye}function DR(t){return function(e){return cd(e,t.getString_za3lpa$(2031),"secondary","contained",void 0,function(t){return function(e){var n;return null!=(n=t.mPresenter_0)&&n.handleClickNext(),Ye}}(t),"large",void 0,void 0,void 0,void 0,UR),Ye}}function PR(t){return function(e){return $P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s=e.css;return s.unaryPlus_uoyjcc$(TE().defaultFullWidth),s.unaryPlus_uoyjcc$(TE().defaultDoubleMarginTop),n=In(t.dateLabel_0.text),i=t.dateLabel_0.error,o=t.dateLabel_0.errorText,r=dy(t.dateOfBirth),Cd(e,n,IR(t),r,KE,o,i,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"outlined"),Ye}}(t)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,DR(t)),Ye}}function MR(t){return function(e){return TE().centerContainer(e.css),$P(e,dp(),ap(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return gP(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,PR(t)),Ye}}(t)),Ye}}function kR(t){return new ba(ya.emptyMap,t)}function jR(t){iD.call(this,t),this.mPresenter_0=null,this.showChart=!0,this.saveAsTemplateVisible_so4njk$_0=!1,this.seriesTitle_0=Yo(),this.statementSeriesList_0=Yo(),this.statementListDetails_jnqn5m$_0=null,this.chartData_lb6ktt$_0=null,this.entity_suh9dk$_0=null}function GR(t){return Ye}function qR(t){return function(e){return t.statementSeriesList_0.add_11rb$(e),$a(t,GR),Ye}}function FR(t){return function(e){var n,i,o;return t.showChart&&tj(e,"exit_to_app",t.getString_za3lpa$(2420)+" "+t.getString_za3lpa$(2237),mp(),ap(),!0,void 0,void 0,void 0,function(t){return function(){var e;return uy("chat-area",null!=(e=t.entity)?e.reportTitle:null),Ye}}(t)),tj(e,"addchart",fy(t.getString_za3lpa$(2549),[t.getString_za3lpa$(2260)]),mp(),ap(),Je(null!=(o=null!=(i=null!=(n=t.chartData)?n.reportWithFilters:null)?i.reportUid:null)?o:ra,ra),void 0,void 0,void 0,function(t){return function(){var e,n;if(null!=(n=null!=(e=t.chartData)?e.reportWithFilters:null)){var i,o=t;null!=(i=o.mPresenter_0)&&i.handleOnClickAddFromDashboard_281ov6$(n),Je(n.reportUid,ra)&&(o.navController.popBackStack_ivxn3r$(Oo.Companion.VIEW_NAME,!0),o.navController.popBackStack_ivxn3r$(wo.Companion.VIEW_NAME,!0))}return Ye}}(t)),tj(e,"post_add",t.getString_za3lpa$(2073),mp(),ap(),t.saveAsTemplateVisible,void 0,void 0,void 0,function(t){return function(){var e,n;if(null!=(n=null!=(e=t.chartData)?e.reportWithFilters:null)){var i,o=t;null!=(i=o.mPresenter_0)&&i.handleOnClickAddAsTemplate_281ov6$(n),o.showSnackBar_9pu0dj$(o.getString_za3lpa$(2115))}return Ye}}(t)),Ye}}function BR(t){return function(e){var n=e.css;return n.unaryPlus_uoyjcc$(TE().defaultDoubleMarginTop),n.unaryPlus_uoyjcc$(TE().alignCenterItems),e.attrs.id="chat-area",jj(e,t.chartData,void 0,void 0,function(t){return function(e){return t.showChart=e,Ye}}(t)),Ye}}function WR(t){return function(e){return $P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return gP(e,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,FR(t)),t.showChart&&$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,BR(t)),Ye}}(t)),Ye}}function HR(t){return function(e){return p_(e,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t.getString_za3lpa$(2472)),Ye}}(t)),p_(e,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t.getString_za3lpa$(2265)),Ye}}(t)),p_(e,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t.getString_za3lpa$(2266)),Ye}}(t)),p_(e,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t.getString_za3lpa$(2231)),Ye}}(t)),Ye}}function VR(t,e){return function(n){var i=n.css;return wl(i,"0px solid transparent"),Ol(i,"0px solid transparent"),p_(n,void 0,void 0,void 0,4,void 0,void 0,function(t,e){return function(n){return O_(n,t.seriesTitle_0.get_za3lpa$(e),"h6"),Ye}}(t,e)),Ye}}function KR(t,e){return function(n){return p_(n,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n;return O_(e,null!=(n=t.person)?n.fullName():null,"body1"),Ye}}(t)),p_(n,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n;return O_(e,null!=(n=t.xlangMapEntry)?n.valueLangMap:null,"body1"),Ye}}(t)),p_(n,void 0,void 0,void 0,void 0,void 0,void 0,function(t,e){return function(n){var i,o;return o=null!=(i=Da.StatementConstants.STATEMENT_RESULT_OPTIONS.get_11rb$(t.resultSuccess))?i:0,O_(n,e.getString_za3lpa$(o),"body1"),Ye}}(t,e)),p_(n,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n;return O_(e,null!=(n=dy(t.timestamp))?iy(n):null,"body1"),Ye}}(t)),Ye}}function XR(t,e,n){return function(i){var o;for(d_(i,void 0,void 0,void 0,VR(t,e)),o=n.iterator();o.hasNext();)d_(i,void 0,void 0,void 0,KR(o.next(),t));return Ye}}function JR(t){return function(e){h_(e,void 0,function(t){return function(e){return d_(e,void 0,void 0,void 0,HR(t)),Ye}}(t));var n,i,o=0;for(n=t.statementSeriesList_0.iterator();n.hasNext();){var r=n.next();l_(e,void 0,XR(t,Js((o=(i=o)+1|0,i)),r))}return Ye}}function YR(t){return function(e){return m_(e,void 0,function(t){return function(e){return e.attrs.sx=ii([new qa("maxHeight","500px")]),a_(e,!0,void 0,void 0,void 0,JR(t)),Ye}}(t)),Ye}}function QR(t){return function(e){return $P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,WR(t)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return Rr(e.css,Or.scroll),Qp(e,void 0,void 0,void 0,void 0,YR(t)),Ye}}(t)),Ye}}function ZR(t){return new va(ya.emptyMap,t)}function tA(t){oD.call(this,t),this.mPresenter_0=null,this.showSeriesDeleteButton_0=!1,this.reportTitleLabel_0=new Lm(this.getString_za3lpa$(2219)),this.reportDescLabel_0=new Lm(this.getString_za3lpa$(2047)),this.seriesYAxisLabel_0=new Lm(this.getString_za3lpa$(2224)),this.seriesTitleLabel_0=new Lm(this.getString_za3lpa$(2102)),this.seriesVisualLabel_0=new Lm(this.getString_za3lpa$(2220)),this.seriesSubGroupLabel_0=new Lm(this.getString_za3lpa$(2226)),this.xAxisLabel_0=new Lm(this.getString_za3lpa$(2225)),this.timeRangeLabel_0=new Lm(this.getString_za3lpa$(2214)),this.seriesList_0=ri(),this.visualTypeOptions_nfrffy$_0=null,this.xAxisOptions_1jvk0z$_0=null,this.subGroupOptions_yjkfpp$_0=null,this.yAxisOptions_6ek78i$_0=null,this.dateRangeOptions_4k34k3$_0=null,this.selectedDateRangeMoment_7tt8ym$_0=null,this.titleErrorText_bwqjvp$_0=null,this.fieldsEnabled_n45c8m$_0=!1,this.entity_pqvftr$_0=null}function eA(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.reportTitle=t),e.titleErrorText=null,Ye}}(e,t)),Ye}}function nA(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.reportDescription=t),Ye}}(e,t)),Ye}}function iA(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.xAxis=vr(t)),Ye}}(e,t)),Ye}}function oA(t){return function(e){var n,i,o;$a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.reportDateRangeSelection=vr(t)),Ye}}(e,t)),vr(e)===Al.NEW_CUSTOM_RANGE.code&&null!=(n=t.mPresenter_0)&&n.handleDateRangeChange();var r=new xl("",vr(e));return null!=(i=t.mPresenter_0)&&i.handleDateRangeSelected_iowaj7$(r),null!=(o=t.mPresenter_0)&&o.handleXAxisSelected_iowaj7$(r),Ye}}function rA(t){return function(e){return $P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a,c,l,u;if(n=In(t.xAxisLabel_0.text),o=In(null!=(i=t.entity)?i.xAxis:null),s=null!=(r=t.xAxisLabel_0.errorText)?r:"",a=t.xAxisLabel_0.error,null!=(c=t.xAxisOptions)){var h,d=Xo(Ko(c,10));for(h=c.iterator();h.hasNext();){var p=h.next();d.add_11rb$(new qa(p.code.toString(),p.toString()))}u=d}else u=null;return b_(e,n,o,s,void 0,null!=(l=u)?yr(l):null,void 0,iA(t),void 0,void 0,a),Ye}}(t)),$P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a,c,l,u;if(n=In(t.timeRangeLabel_0.text),o=In(null!=(i=t.entity)?i.reportDateRangeSelection:null),s=null!=(r=t.timeRangeLabel_0.errorText)?r:"",a=t.timeRangeLabel_0.error,null!=(c=t.dateRangeOptions)){var h,d=Xo(Ko(c,10));for(h=c.iterator();h.hasNext();){var p=h.next();d.add_11rb$(new qa(p.code.toString(),p.toString()))}u=d}else u=null;return b_(e,n,o,s,void 0,null!=(l=u)?yr(l):null,void 0,oA(t),void 0,void 0,a),Ye}}(t)),Ye}}function sA(t){return function(e){return e.attrs.onClick=function(t){return function(e){var n;return null!=(n=t.mPresenter_0)&&n.handleClickAddSeries(),Ye}}(t),UP(e,t.getString_za3lpa$(2222)),Ye}}function aA(t){return function(e){var n,i,o,r,s,a,c,l,u,h,d;return n=In(t.reportTitleLabel_0.text),i=t.reportTitleLabel_0.errorText,r=null!=(o=t.entity)?o.reportTitle:null,s=t.reportTitleLabel_0.error,a=!t.fieldsEnabled,$_(e,n,r,i,void 0,"outlined",eA(t),void 0,void 0,a,s,void 0,!0),c=In(t.reportDescLabel_0.text),u=null!=(l=t.entity)?l.reportDescription:null,h=t.reportDescLabel_0.error,d=!t.fieldsEnabled,$_(e,c,u,t.reportDescLabel_0.errorText,void 0,"outlined",nA(t),void 0,void 0,d,h),gP(e,void 0,void 0,void 0,void 0,Sp(),void 0,void 0,void 0,rA(t)),t.seriesList_0.isEmpty()||$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n;for(TE().horizontalList(e.css),n=t.seriesList_0.iterator();n.hasNext();){var i=n.next();t.renderSeriesItem_0(e,i,t.seriesList_0.size>1&&t.showSeriesDeleteButton_0)}return Ye}}(t)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return qp(e,!0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,sA(t)),Ye}}(t)),Ye}}function cA(t,e){return function(n){return $a(e,function(t,e){return function(n){return e.reportSeriesName=t,Ye}}(n,t)),Ye}}function lA(t,e,n){return function(i){var o,r,s,a,c;if(o=In(t.seriesTitleLabel_0.text),r=t.seriesTitleLabel_0.errorText,s=e.reportSeriesName,a=t.seriesTitleLabel_0.error,c=!t.fieldsEnabled,$_(i,o,s,r,void 0,"outlined",cA(e,t),void 0,void 0,c,a,void 0,!0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n=t;return Mr(e.css,new ai(n?"95%":"100%")),Ye}}(n)),n){var l,u=Sa.Companion.invoke_f6ihu2$(ZR),h=t,d=e,p=u.css;l=C_(3),cs(p,C_(2),void 0,void 0,l),Mr(p,Br(40)),xp(u,"close",void 0,void 0,function(t,e){return function(n){var i;return null!=(i=t.mPresenter_0)&&i.handleRemoveSeries_13jbm9$(e),Ye}}(h,d)),i.child_30b5ua$(u.create())}return Ye}}function uA(t,e){return function(n){return $a(e,function(t,e){return function(n){return e.reportSeriesYAxis=vr(t),Ye}}(n,t)),Ye}}function hA(t,e){return function(n){return $a(e,function(t,e){return function(n){return e.reportSeriesVisualType=vr(t),Ye}}(n,t)),Ye}}function dA(t,e){return function(n){return $a(e,function(t,e){return function(n){return e.reportSeriesSubGroup=vr(t),Ye}}(n,t)),Ye}}function pA(t,e){return function(n){return $P(n,mp(),ap(),void 0,void 0,void 0,void 0,void 0,function(t,e){return function(n){var i,o,r,s,a,c,l,u;if(i=In(t.seriesYAxisLabel_0.text),o=e.reportSeriesYAxis.toString(),s=null!=(r=t.seriesYAxisLabel_0.errorText)?r:"",a=t.seriesYAxisLabel_0.error,null!=(c=t.yAxisOptions)){var h,d=Xo(Ko(c,10));for(h=c.iterator();h.hasNext();){var p=h.next();d.add_11rb$(new qa(p.code.toString(),p.toString()))}u=d}else u=null;return b_(n,i,o,s,void 0,null!=(l=u)?yr(l):null,void 0,uA(e,t),void 0,void 0,a),Ye}}(t,e)),$P(n,mp(),ap(),void 0,void 0,void 0,void 0,void 0,function(t,e){return function(n){var i,o,r,s,a,c,l,u;if(i=In(t.seriesVisualLabel_0.text),o=e.reportSeriesVisualType.toString(),s=null!=(r=t.seriesVisualLabel_0.errorText)?r:"",a=t.seriesVisualLabel_0.error,null!=(c=t.visualTypeOptions)){var h,d=Xo(Ko(c,10));for(h=c.iterator();h.hasNext();){var p=h.next();d.add_11rb$(new qa(p.code.toString(),p.toString()))}u=d}else u=null;return b_(n,i,o,s,void 0,null!=(l=u)?yr(l):null,void 0,hA(e,t),void 0,void 0,a),Ye}}(t,e)),$P(n,mp(),ap(),void 0,void 0,void 0,void 0,void 0,function(t,e){return function(n){var i,o,r,s,a,c,l,u;if(i=In(t.seriesSubGroupLabel_0.text),o=e.reportSeriesSubGroup.toString(),s=null!=(r=t.seriesSubGroupLabel_0.errorText)?r:"",a=t.seriesSubGroupLabel_0.error,null!=(c=t.subGroupOptions)){var h,d=Xo(Ko(c,10));for(h=c.iterator();h.hasNext();){var p=h.next();d.add_11rb$(new qa(p.code.toString(),p.toString()))}u=d}else u=null;return b_(n,i,o,s,void 0,null!=(l=u)?yr(l):null,void 0,dA(e,t),void 0,void 0,a),Ye}}(t,e)),Ye}}function _A(t,e,n){return function(i){return gP(i,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t,e,n){return function(i){return $P(i,mp(),void 0,void 0,void 0,void 0,void 0,Yn.row,lA(t,e,n)),Ye}}(t,e,n)),gP(i,void 0,void 0,void 0,void 0,Sp(),void 0,void 0,void 0,pA(t,e)),Ye}}function mA(t,e){return function(n){return n.attrs.onClick=function(t,e){return function(n){var i;return ty().stopEventPropagation_za3rmp$(n),null!=(i=t.mPresenter_0)&&i.handleOnFilterClicked_4zy6we$(e),Ye}}(t,e),Ok(n,Il(e,t.systemImpl,new ci),"delete",!0,void 0,function(t,e){return function(n){var i;return ty().stopEventPropagation_za3rmp$(n),null!=(i=t.mPresenter_0)&&i.handleRemoveFilter_4zy6we$(e),Ye}}(t,e)),Ye}}function fA(t,e){return function(n){return n.attrs.onClick=function(t,e){return function(n){var i;if(ty().stopEventPropagation_za3rmp$(n),null!=(i=t.mPresenter_0)){var o=new Ul;o.reportFilterSeriesUid=e.reportSeriesUid,i.handleOnFilterClicked_4zy6we$(o)}return Ye}}(t,e),UP(n,t.getString_za3lpa$(2447)),Ye}}function gA(t,e,n){return function(i){var o;$P(i,mp(),void 0,void 0,void 0,void 0,void 0,void 0,_A(t,e,n)),$P(i,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return TP(e,t.getString_za3lpa$(2447)),Ye}}(t));var r=null!=(o=e.reportSeriesFilters)?o:ri();return r.isEmpty()||$P(i,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t,e){return function(n){var i;for(TE().horizontalList(n.css),i=t.iterator();i.hasNext();){var o=i.next();qp(n,!0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,mA(e,o))}return Ye}}(r,t)),$P(i,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t,e){return function(n){return qp(n,!0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,fA(t,e)),Ye}}(t,e)),Ye}}function $A(t){var e;oD.call(this,t),this.mPresenter_0=null,this.fieldLabel_0=new Lm(this.getString_za3lpa$(2234)),this.conditionLabel_0=new Lm(this.getString_za3lpa$(2235)),this.valueLabel_0=new Lm(this.getString_za3lpa$(2236)),this.fromLabel_0=new Lm(this.getString_za3lpa$(2216)),this.toLabel_0=new Lm(this.getString_za3lpa$(2332)),this.fieldOptions_4glnp6$_0=null,this.conditionsOptions_hehs0s$_0=null,this.dropDownValueOptions_mifxpw$_0=null,this.valueType_6hhvy9$_0=null,this.fieldErrorText_l5vc0h$_0=null,this.conditionsErrorText_rhl4ab$_0=null,this.valuesErrorText_hwcy5z$_0=null,this.uidAndLabels_0=ri(),this.uidAndLabelFilterItemObserver_0=new Ea((e=this,function(t){if(null!=t)return $a(e,function(t,e){return function(n){return e.uidAndLabels_0=t,Ye}}(t,e)),Ye})),this.uidAndLabelList_w4w7cv$_0=null,this.createNewFilter_wvwx0y$_0=null,this.fieldsEnabled_b9luw2$_0=!1,this.entity_mb2cjd$_0=null}function EA(t){return function(e){var n,i,o,r;(null!=(n=t.entity)?n.reportFilterField:null)!==vr(e)&&null!=(i=t.mPresenter_0)&&i.clearUidAndLabelList(),$a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.reportFilterField=vr(t)),e.fieldErrorText=null,Ye}}(e,t));var s=new xl("",vr(e));return null!=(o=t.mPresenter_0)&&o.handleFieldOptionSelected_iowaj7$(s),null!=(r=t.mPresenter_0)&&r.handleConditionOptionSelected_iowaj7$(s),Ye}}function yA(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.reportFilterCondition=vr(t)),e.conditionsErrorText=null,Ye}}(e,t)),Ye}}function bA(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.reportFilterValue=t),Ye}}(e,t)),Ye}}function SA(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.reportFilterDropDownValue=vr(t)),e.valuesErrorText=null,Ye}}(e,t)),Ye}}function vA(t){return function(e){var n=!Je(t.valueType,Pl.INTEGER)&&!Je(t.valueType,Pl.DROPDOWN);return $P(e,mp(),n?mp():lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a,c,l,u;if(n=In(t.conditionLabel_0.text),o=In(null!=(i=t.entity)?i.reportFilterCondition:null),s=null!=(r=t.conditionLabel_0.errorText)?r:"",a=t.conditionLabel_0.error,null!=(c=t.conditionsOptions)){var h,d=Xo(Ko(c,10));for(h=c.iterator();h.hasNext();){var p=h.next();d.add_11rb$(new qa(p.code.toString(),p.toString()))}u=d}else u=null;return b_(e,n,o,s,void 0,null!=(l=u)?yr(l):null,void 0,yA(t),void 0,void 0,a),Ye}}(t)),$P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a,c,l,u,h,d,p,_,m;if(Je(t.valueType,Pl.INTEGER)&&(n=In(t.valueLabel_0.text),i=t.valueLabel_0.errorText,r=null!=(o=t.entity)?o.reportFilterValue:null,s=t.valueLabel_0.error,a=!t.fieldsEnabled,$_(e,n,r,i,void 0,"outlined",bA(t),"number",void 0,a,s,void 0,!0)),Je(t.valueType,Pl.DROPDOWN)){var f;if(c=In(t.valueLabel_0.text),u=In(null!=(l=t.entity)?l.reportFilterDropDownValue:null),d=null!=(h=t.valueLabel_0.errorText)?h:"",p=t.valueLabel_0.error,null!=(_=t.dropDownValueOptions)){var g,$=Xo(Ko(_,10));for(g=_.iterator();g.hasNext();){var E=g.next();$.add_11rb$(new qa(E.code.toString(),E.toString()))}f=$}else f=null;b_(e,c,u,d,void 0,null!=(m=f)?yr(m):null,void 0,SA(t),void 0,void 0,p)}return Ye}}(t)),Ye}}function CA(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.reportFilterValueBetweenX=t),Ye}}(e,t)),Ye}}function NA(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.reportFilterValueBetweenY=t),Ye}}(e,t)),Ye}}function TA(t){return function(e){return $P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a;return n=In(t.fromLabel_0.text),i=t.fromLabel_0.errorText,r=null!=(o=t.entity)?o.reportFilterValueBetweenX:null,s=t.fromLabel_0.error,a=!t.fieldsEnabled,$_(e,n,r,i,void 0,"outlined",CA(t),"number",void 0,a,s,void 0,!0),Ye}}(t)),$P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a;return n=In(t.toLabel_0.text),i=t.toLabel_0.errorText,r=null!=(o=t.entity)?o.reportFilterValueBetweenY:null,s=t.toLabel_0.error,a=!t.fieldsEnabled,$_(e,n,r,i,void 0,"outlined",NA(t),"number",void 0,a,s,void 0,!0),Ye}}(t)),Ye}}function LA(t,e){return function(n){var i;return Ok(n,null!=(i=t.labelName)?i:"","delete",!0,void 0,function(t,e){return function(n){var i;return ty().stopEventPropagation_za3rmp$(n),null!=(i=t.mPresenter_0)&&i.handleRemoveUidAndLabel_f7ipix$(e),Ye}}(e,t)),Ye}}function zA(t){return function(e){var n;return e.attrs.onClick=function(t){return function(e){var n,i,o,r;return ty().stopEventPropagation_za3rmp$(e),103===(null!=(n=t.entity)?n.reportFilterField:null)?null!=(i=t.mPresenter_0)&&i.handleAddContentClicked():107===(null!=(o=t.entity)?o.reportFilterField:null)&&null!=(r=t.mPresenter_0)&&r.handleAddLeavingReasonClicked(),Ye}}(t),UP(e,null!=(n=t.createNewFilter)?n:""),Ye}}function wA(t){return function(e){var n,i,o,r,s,a,c,l,u;if(n=In(t.fieldLabel_0.text),o=In(null!=(i=t.entity)?i.reportFilterField:null),s=null!=(r=t.fieldLabel_0.errorText)?r:"",a=t.fieldLabel_0.error,null!=(c=t.fieldOptions)){var h,d=Xo(Ko(c,10));for(h=c.iterator();h.hasNext();){var p=h.next();d.add_11rb$(new qa(p.code.toString(),p.toString()))}u=d}else u=null;return b_(e,n,o,s,void 0,null!=(l=u)?yr(l):null,void 0,EA(t),void 0,void 0,a),gP(e,void 0,void 0,void 0,void 0,Sp(),void 0,void 0,void 0,vA(t)),Je(t.valueType,Pl.BETWEEN)&&gP(e,void 0,void 0,void 0,void 0,Sp(),void 0,void 0,void 0,TA(t)),Je(t.valueType,Pl.LIST)&&(t.uidAndLabels_0.isEmpty()||$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i=e.css;for(i.unaryPlus_uoyjcc$(TE().horizontalList),i.unaryPlus_uoyjcc$(TE().defaultPaddingTop),n=t.uidAndLabels_0.iterator();n.hasNext();)qp(e,!0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,LA(n.next(),t));return Ye}}(t)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return TE().defaultMarginTop(e.css),qp(e,!0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,zA(t)),Ye}}(t))),Ye}}function OA(t){return new ba(ya.emptyMap,t)}function RA(t){uD.call(this,t),this.mPresenter_0=null,this.chartDataMap_0=Jo()}function AA(t){return Ye}function xA(t,e,n,i){ta.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$ReportListComponent=t,this.local$tmp$=void 0,this.local$element=void 0,this.local$this$ReportListComponent_0=void 0,this.local$$receiver=e}function IA(t){return Ye}function UA(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().alignTextToStart),TE().maxLines_th7wno$(e,2),Ye}function DA(t){kA(),uD.call(this,t),this.mPresenter_0=null}function PA(){MA=this,this.REPORT_TITLE_TO_ID=Hl([ni(1,2822),ni(2,2738),ni(3,2829),ni(4,2828),ni(5,2831),ni(6,2832),ni(7,2823),ni(8,2824),ni(9,2827),ni(10,2828),ni(11,2825),ni(12,2826)])}PO.$metadata$={kind:Vn,simpleName:"PersonDetailComponent",interfaces:[Ti,iD]},Object.defineProperty(rR.prototype,"mEditPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(rR.prototype,"genderOptions",{configurable:!0,get:function(){return this.genderOptions_pi0zhy$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.genderOptions_pi0zhy$_0=e,Ye}))}}),Object.defineProperty(rR.prototype,"personPicture",{configurable:!0,get:function(){return this.personPicture_fi2nze$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.personPicture_fi2nze$_0=e,Ye}))}}),Object.defineProperty(rR.prototype,"approvalPersonParentJoin",{configurable:!0,get:function(){return this.approvalPersonParentJoin_ud0iy3$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.approvalPersonParentJoin_ud0iy3$_0=e,Ye}))}}),Object.defineProperty(rR.prototype,"registrationMode",{configurable:!0,get:function(){return this.registrationMode_doslej$_0},set:function(t){var e,n;this.registrationEnabled_0=Sl(t,1),this.minorRegistrationModeEnabled_0=Sl(t,2),this.registrationEnabled_0?this.ustadComponentTitle=this.getString_za3lpa$(2044):this.setEditTitle_vux9f0$(2473,2474),$a(this,(e=t,n=this,function(t){return n.registrationMode_doslej$_0=e,Ye}))}}),Object.defineProperty(rR.prototype,"usernameError",{configurable:!0,get:function(){return this.usernameError_2yxzvj$_0},set:function(t){var e,n;$a(this,(e=this,n=t,function(t){return e.usernameLabel_0=e.usernameLabel_0.copy_d8n4vg$(void 0,n),Ye})),this.usernameError_2yxzvj$_0=t}}),Object.defineProperty(rR.prototype,"noMatchPasswordError",{configurable:!0,get:function(){return this.noMatchPasswordError_sf10ag$_0},set:function(t){var e,n;this.noMatchPasswordError_sf10ag$_0=t,$a(this,(e=this,n=t,function(t){return e.confirmPasswordLabel_0=e.confirmPasswordLabel_0.copy_d8n4vg$(void 0,n),Ye}))}}),Object.defineProperty(rR.prototype,"passwordError",{configurable:!0,get:function(){return this.passwordError_l4xzxi$_0},set:function(t){var e,n;this.passwordError_l4xzxi$_0=t,$a(this,(e=this,n=t,function(t){return e.passwordLabel_0=e.passwordLabel_0.copy_d8n4vg$(void 0,n),Ye}))}}),Object.defineProperty(rR.prototype,"emailError",{configurable:!0,get:function(){return this.emailError_j8ysq3$_0},set:function(t){var e,n;$a(this,(e=this,n=t,function(t){return e.emailLabel_0=e.emailLabel_0.copy_d8n4vg$(void 0,n),Ye})),this.emailError_j8ysq3$_0=t}}),Object.defineProperty(rR.prototype,"confirmError",{configurable:!0,get:function(){return this.confirmError_oa2vt3$_0},set:function(t){var e,n;$a(this,(e=this,n=t,function(t){return e.confirmPasswordLabel_0=e.confirmPasswordLabel_0.copy_d8n4vg$(void 0,n),Ye})),this.confirmError_oa2vt3$_0=t}}),Object.defineProperty(rR.prototype,"dateOfBirthError",{configurable:!0,get:function(){return this.dateOfBirthError_i0z7f7$_0},set:function(t){var e,n;$a(this,(e=this,n=t,function(t){return e.dobLabel_0=e.dobLabel_0.copy_d8n4vg$(void 0,n),Ye})),this.dateOfBirthError_i0z7f7$_0=t}}),Object.defineProperty(rR.prototype,"parentContactError",{configurable:!0,get:function(){return this.parentContactError_b743yn$_0},set:function(t){var e,n;this.parentContactError_b743yn$_0=t,$a(this,(e=this,n=t,function(t){return e.parentEmailLabel_0=e.parentEmailLabel_0.copy_d8n4vg$(void 0,n),Ye}))}}),Object.defineProperty(rR.prototype,"firstNamesFieldError",{configurable:!0,get:function(){return this.firstNamesFieldError_k1ioh1$_0},set:function(t){var e,n;this.firstNamesFieldError_k1ioh1$_0=t,$a(this,(e=this,n=t,function(t){return e.firstNameLabel_0=e.firstNameLabel_0.copy_d8n4vg$(void 0,n),Ye}))}}),Object.defineProperty(rR.prototype,"lastNameFieldError",{configurable:!0,get:function(){return this.lastNameFieldError_f2727m$_0},set:function(t){this.lastNameFieldError_f2727m$_0=t}}),Object.defineProperty(rR.prototype,"genderFieldError",{configurable:!0,get:function(){return this.genderFieldError_mjwzea$_0},set:function(t){var e,n;$a(this,(e=this,n=t,function(t){return e.genderLabel_0=e.genderLabel_0.copy_d8n4vg$(void 0,n),Ye})),this.genderFieldError_mjwzea$_0=t}}),Object.defineProperty(rR.prototype,"firstNameError",{configurable:!0,get:function(){return this.firstNameError_jim8ks$_0},set:function(t){var e,n;$a(this,(e=this,n=t,function(t){return e.firstNameLabel_0=e.firstNameLabel_0.copy_d8n4vg$(void 0,n),e.firstNameError_jim8ks$_0=n,Ye}))}}),Object.defineProperty(rR.prototype,"lastNameError",{configurable:!0,get:function(){return this.lastNameError_kz7424$_0},set:function(t){var e,n;$a(this,(e=this,n=t,function(t){return e.lastNameLabel_0=e.lastNameLabel_0.copy_d8n4vg$(void 0,n),Ye})),this.lastNameError_kz7424$_0=t}}),rR.prototype.navigateToNextDestination_m117we$=function(t,e){this.systemImpl.go_gofqk3$(e,fr(),this)},Object.defineProperty(rR.prototype,"fieldsEnabled",{configurable:!0,get:function(){return this.fieldsEnabled_rl9kt1$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.fieldsEnabled_rl9kt1$_0=e,Ye}))}}),Object.defineProperty(rR.prototype,"entity",{configurable:!0,get:function(){return this.entity_9r5kte$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.entity_9r5kte$_0=e,Ye}))}}),rR.prototype.onCreateView=function(){var t;oD.prototype.onCreateView.call(this),this.loading=!1,this.mPresenter_0=new vl(this,this.arguments,this,this.di,this),null!=(t=this.mPresenter_0)&&t.onCreate(my(this.navController))},rR.prototype.render_ss14n$=function(t){var e=Sa.Companion.invoke_f6ihu2$(oR),n=e.css;n.unaryPlus_uoyjcc$(TE().contentContainer),n.unaryPlus_uoyjcc$(TE().defaultPaddingTop),gP(e,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,OR(this)),t.child_30b5ua$(e.create())},rR.prototype.onDestroyView=function(){var t;oD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null},rR.$metadata$={kind:Vn,simpleName:"PersonEditComponent",interfaces:[zi,oD]},Object.defineProperty(RR.prototype,"displayTypeRepo",{configurable:!0,get:function(){var t;return null!=(t=this.dbRepo)?t.personDao:null}}),Object.defineProperty(RR.prototype,"listPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(RR.prototype,"inviteViaLinkVisibile",{configurable:!0,get:function(){return this.inviteNewText.length>0},set:function(t){var e;e=t?this.getString_za3lpa$(2658):"",this.inviteNewText=e}}),RR.prototype.onCreateView=function(){var t,e;uD.prototype.onCreateView.call(this),null!=(t=this.fabManager)&&(t.text=this.getString_za3lpa$(2472)),this.arguments.containsKey_11rb$(xa.Companion.ARG_CODE_TABLE)&&(this.inviteNewText=this.getString_za3lpa$(2658)),this.addNewEntryText=this.getString_za3lpa$(2473),this.ustadComponentTitle=this.getString_za3lpa$(2293),this.mPresenter_0=new Cl(this,this.arguments,this,this.di,this),null!=(e=this.mPresenter_0)&&e.onCreate(fr())},RR.prototype.renderListItem_js0tu9$=function(t,e){wM(t,e)},RR.prototype.handleClickEntry_11rc$=function(t){var e;null!=(e=this.mPresenter_0)&&e.handleClickEntry_11rc$(t)},RR.prototype.handleInviteClicked=function(){var t;null!=(t=this.mPresenter_0)&&t.handleClickInviteWithLink()},RR.prototype.onDestroyView=function(){var t;uD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null},RR.$metadata$={kind:Vn,simpleName:"PersonListComponent",interfaces:[fi,uD]},AR.prototype.onCreateView=function(){var t;VU.prototype.onCreateView.call(this);var e=Nl(this.arguments);this.mPresenter_0=new Tl(this,e,this,this.di),null!=(t=this.mPresenter_0)&&t.onCreate(fr())},AR.prototype.render_ss14n$=function(t){},AR.prototype.onDestroyView=function(){var t;VU.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null},AR.$metadata$={kind:Vn,simpleName:"RedirectComponent",interfaces:[Pi,VU]},Object.defineProperty(xR.prototype,"dateOfBirth",{configurable:!0,get:function(){return this.dateOfBirth_nb00qo$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.dateOfBirth_nb00qo$_0=e,Ye}))}}),xR.prototype.onCreateView=function(){var t;VU.prototype.onCreateView.call(this),this.ustadComponentTitle=this.getString_za3lpa$(2044),this.mPresenter_0=new Ll(this,this.arguments,this,this.di),null!=(t=this.mPresenter_0)&&t.onCreate(my(this.navController))},xR.prototype.render_ss14n$=function(t){gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,MR(this))},xR.prototype.onDestroyView=function(){VU.prototype.onDestroyView.call(this),this.mPresenter_0=null},xR.$metadata$={kind:Vn,simpleName:"RegisterAgeRedirectComponent",interfaces:[Mi,VU]},Object.defineProperty(jR.prototype,"detailPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(jR.prototype,"saveAsTemplateVisible",{configurable:!0,get:function(){return this.saveAsTemplateVisible_so4njk$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.saveAsTemplateVisible_so4njk$_0=e,Ye}))}}),Object.defineProperty(jR.prototype,"statementListDetails",{configurable:!0,get:function(){return this.statementListDetails_jnqn5m$_0},set:function(t){if(this.statementListDetails_jnqn5m$_0=t,!0===(null!=t?!t.isEmpty():null))for(var e=t.size,n=0;n1,n.seriesList_0=null!=(r=null!=e?e.reportSeriesWithFiltersList:null)?r:ri(),Ye}))}}),tA.prototype.onCreateView=function(){var t;oD.prototype.onCreateView.call(this),this.setEditTitle_vux9f0$(2238,2239),this.mPresenter_0=new Rl(this,this.arguments,this,this.di,this),null!=(t=this.mPresenter_0)&&t.onCreate(my(this.navController))},tA.prototype.render_ss14n$=function(t){var e;gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,(e=this,function(t){var n=t.css;return n.unaryPlus_uoyjcc$(TE().fieldsOnlyFormScreen),n.unaryPlus_uoyjcc$(TE().defaultPaddingTop),$P(t,mp(),void 0,void 0,void 0,void 0,void 0,void 0,aA(e)),Ye}))},tA.prototype.onDestroyView=function(){var t;oD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null},tA.prototype.renderSeriesItem_0=function(t,e,n){gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,gA(this,e,n))},tA.$metadata$={kind:Vn,simpleName:"ReportEditComponent",interfaces:[Oo,oD]},Object.defineProperty($A.prototype,"mEditPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty($A.prototype,"fieldOptions",{configurable:!0,get:function(){return this.fieldOptions_4glnp6$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.fieldOptions_4glnp6$_0=e,Ye}))}}),Object.defineProperty($A.prototype,"conditionsOptions",{configurable:!0,get:function(){return this.conditionsOptions_hehs0s$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.conditionsOptions_hehs0s$_0=e,Ye}))}}),Object.defineProperty($A.prototype,"dropDownValueOptions",{configurable:!0,get:function(){return this.dropDownValueOptions_mifxpw$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.dropDownValueOptions_mifxpw$_0=e,Ye}))}}),Object.defineProperty($A.prototype,"valueType",{configurable:!0,get:function(){return this.valueType_6hhvy9$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.valueType_6hhvy9$_0=e,Ye}))}}),Object.defineProperty($A.prototype,"fieldErrorText",{configurable:!0,get:function(){return this.fieldErrorText_l5vc0h$_0},set:function(t){var e,n;$a(this,(e=this,n=t,function(t){return e.fieldLabel_0=e.fieldLabel_0.copy_d8n4vg$(void 0,n),Ye}))}}),Object.defineProperty($A.prototype,"conditionsErrorText",{configurable:!0,get:function(){return this.conditionsErrorText_rhl4ab$_0},set:function(t){var e,n;$a(this,(e=this,n=t,function(t){return e.conditionLabel_0=e.conditionLabel_0.copy_d8n4vg$(void 0,n),Ye}))}}),Object.defineProperty($A.prototype,"valuesErrorText",{configurable:!0,get:function(){return this.valuesErrorText_hwcy5z$_0},set:function(t){var e,n;$a(this,(e=this,n=t,function(t){return e.valueLabel_0=e.valueLabel_0.copy_d8n4vg$(void 0,n),Ye}))}}),Object.defineProperty($A.prototype,"uidAndLabelList",{configurable:!0,get:function(){return this.uidAndLabelList_w4w7cv$_0},set:function(t){var e,n;null!=(e=this.uidAndLabelList_w4w7cv$_0)&&e.removeObserver_fujmse$(this.uidAndLabelFilterItemObserver_0),this.uidAndLabelList_w4w7cv$_0=t,null!=(n=this.uidAndLabelList_w4w7cv$_0)&&n.observe_bi6zy5$(this,this.uidAndLabelFilterItemObserver_0)}}),Object.defineProperty($A.prototype,"createNewFilter",{configurable:!0,get:function(){return this.createNewFilter_wvwx0y$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.createNewFilter_wvwx0y$_0=e,Ye}))}}),Object.defineProperty($A.prototype,"fieldsEnabled",{configurable:!0,get:function(){return this.fieldsEnabled_b9luw2$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.fieldsEnabled_b9luw2$_0=e,Ye}))}}),Object.defineProperty($A.prototype,"entity",{configurable:!0,get:function(){return this.entity_mb2cjd$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.entity_mb2cjd$_0=e,Ye}))}}),$A.prototype.onCreateView=function(){var t;oD.prototype.onCreateView.call(this),this.setEditTitle_vux9f0$(2243,2243),this.mPresenter_0=new Dl(this,this.arguments,this,this.di,this),null!=(t=this.mPresenter_0)&&t.onCreate(my(this.navController))},$A.prototype.render_ss14n$=function(t){var e;gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,(e=this,function(t){var n=t.css;return n.unaryPlus_uoyjcc$(TE().fieldsOnlyFormScreen),n.unaryPlus_uoyjcc$(TE().defaultPaddingTop),$P(t,mp(),void 0,void 0,void 0,void 0,void 0,void 0,wA(e)),Ye}))},$A.prototype.onDestroyView=function(){var t;oD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null},$A.$metadata$={kind:Vn,simpleName:"ReportFilterEditComponent",interfaces:[Ro,oD]},Object.defineProperty(RA.prototype,"displayTypeRepo",{configurable:!0,get:function(){var t;return null!=(t=this.dbRepo)?t.reportDao:null}}),Object.defineProperty(RA.prototype,"listPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),RA.prototype.onCreateView=function(){var t,e;uD.prototype.onCreateView.call(this),this.linearLayout=!1,this.addNewEntryText=this.getString_za3lpa$(2238),null!=(t=this.fabManager)&&(t.text=this.getString_za3lpa$(2237)),this.mPresenter_0=new Ml(this,this.arguments,this,this.di,this),null!=(e=this.mPresenter_0)&&e.onCreate(fr())},xA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[ta]},xA.prototype=Object.create(ta.prototype),xA.prototype.constructor=xA,xA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$tmp$=this.local$this$ReportListComponent.dataListItems.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$tmp$.hasNext()){this.state_0=5;continue}var t,n;this.local$element=this.local$tmp$.next(),this.local$this$ReportListComponent_0=this.local$this$ReportListComponent;var i,o=this.local$element.reportSeries,r=null!=o&&0!==o.length?jl(this.local$this$ReportListComponent_0.di,mr(kl.Companion.serializer()),We(kl),null!=(t=this.local$element.reportSeries)?t:""):ri(),s=Gl(this.local$this$ReportListComponent_0.di).directDI.Instance_ohrpre$(e.isType(i=On(He(We(Qe),[],!1)),Rn)?i:An(),null),a=ql(this.local$element,r);if(null!=(n=this.local$this$ReportListComponent_0.dbRepo)){var c;if(this.state_0=3,this.result_0=Fl(n,a,this.local$$receiver,Gl(this.local$this$ReportListComponent_0.di).directDI.Instance_ohrpre$(e.isType(c=On(He(We(Be),[],!1)),Rn)?c:An(),null),s.activeAccount.personUid,this),this.result_0===Zs)return Zs;continue}this.result_0=null,this.state_0=4;continue;case 3:this.state_0=4;continue;case 4:var l=this.result_0,u=this.local$this$ReportListComponent_0.chartDataMap_0,h=this.local$element.reportUid;u.put_xwzc9p$(h,l),$a(this.local$this$ReportListComponent_0,AA),this.state_0=2;continue;case 5:return Ye;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},RA.prototype.onDataListLoaded=function(){var t;uD.prototype.onDataListLoaded.call(this),Bl(on.GlobalScope,on.Dispatchers.Main,void 0,(t=this,function(e,n,i){var o=new xA(t,e,this,n);return i?o:o.doResume(null)}))},RA.prototype.renderListItem_js0tu9$=function(t,e){var n,i,o=this.chartDataMap_0.get_11rb$(e.reportUid);if(null==o){var r=Sa.Companion.invoke_f6ihu2$(OA),s=r.css;s.unaryPlus_uoyjcc$(TE().alignCenterItems),Mr(s,new ai("100%")),Lr(s,Br(300)),ts(s,new ai("30%")),t_(r,void 0,void 0,OE().isDarkModeActive()?"secondary":"primary",80,5,void 0,IA),t.child_30b5ua$(r.create())}else{var a=Sa.Companion.invoke_f6ihu2$(OA);Xr(a.css,Kr.relative),jj(a,o,200,void 0,(n=this,i=e,function(t){return t||n.chartDataMap_0.remove_11rb$(i.reportUid),Ye})),t.child_30b5ua$(a.create());var c=Sa.Companion.invoke_f6ihu2$(OA);Qr(c.css,C_(2)),O_(c,e.reportTitle,"h6",void 0,void 0,void 0,void 0,void 0,void 0,UA),t.child_30b5ua$(c.create())}},RA.prototype.handleClickEntry_11rc$=function(t){var e;null!=(e=this.mPresenter_0)&&e.handleClickEntry_11rc$(t)},RA.prototype.onDestroyView=function(){var t;uD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null},RA.$metadata$={kind:Vn,simpleName:"ReportListComponent",interfaces:[$i,uD]},Object.defineProperty(DA.prototype,"listPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(DA.prototype,"displayTypeRepo",{configurable:!0,get:function(){var t;return null!=(t=this.dbRepo)?t.reportDao:null}}),DA.prototype.onCreateView=function(){var t,e;uD.prototype.onCreateView.call(this),this.ustadComponentTitle=this.getString_za3lpa$(2072),null!=(t=this.fabManager)&&(t.text=this.getString_za3lpa$(2539)),this.mPresenter_0=new Wl(this,this.arguments,this,this.di,this),null!=(e=this.mPresenter_0)&&e.onCreate(fr())},DA.prototype.renderListItem_js0tu9$=function(t,e){var n,i,o,r,s=null!=(i=null!=(n=kA().REPORT_TITLE_TO_ID.get_11rb$(e.reportTitleId))?this.getString_za3lpa$(n):null)?i:e.reportTitle;jP(t,"pie_chart",null!=s?s:"",null!=(r=null!=(o=kA().REPORT_TITLE_TO_ID.get_11rb$(e.reportDescId))?this.getString_za3lpa$(o):null)?r:e.reportDescription,!0)},DA.prototype.handleClickEntry_11rc$=function(t){var e;null!=(e=this.mPresenter_0)&&e.handleClickEntry_11rc$(t)},DA.prototype.onFabClicked=function(){var t;$a(this,(t=this,function(e){return t.showAddEntryOptions=!0,Ye}))},DA.prototype.onDestroyView=function(){var t;uD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null},PA.$metadata$={kind:Ho,simpleName:"Companion",interfaces:[]};var MA=null;function kA(){return null===MA&&new PA,MA}function jA(t){return new ba(ya.emptyMap,t)}function GA(t){oD.call(this,t),this.mPresenter_0=null,this.okText_0=this.getString_za3lpa$(2016),this.cancelText_0=this.getString_za3lpa$(2018),this.fromTimeLabel_0=new Lm(this.getString_za3lpa$(2216)),this.toTimeLabel_0=new Lm(this.getString_za3lpa$(2332)),this.daysOptionLabel_0=new Lm(this.getString_za3lpa$(2353)),this.dayOptions_nk1chv$_0=null,this.fromTimeError_6xk55w$_0=null,this.toTimeError_wtxrpn$_0=null,this.fieldsEnabled_l72hlf$_0=!1,this.entity_k833ac$_0=null}function qA(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.scheduleDay=vr(t)),Ye}}(e,t)),Ye}}function FA(t){return function(n){return $a(t,function(t,n){return function(i){var o;return null!=(o=n.entity)&&(o.sceduleStartTime=e.Long.fromNumber(t.getTime())),n.fromTimeError=null,Ye}}(n,t)),Ye}}function BA(t){return function(n){return $a(t,function(t,n){return function(i){var o;return null!=(o=n.entity)&&(o.scheduleEndTime=e.Long.fromNumber(t.getTime())),n.toTimeError=null,Ye}}(n,t)),Ye}}function WA(t){return function(e){return $P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a,c;return n=In(t.fromTimeLabel_0.text),i=t.fromTimeLabel_0.error,o=t.okText_0,r=t.cancelText_0,s=t.fromTimeLabel_0.errorText,c=dy(null!=(a=t.entity)?a.sceduleStartTime:null),Nd(e,n,FA(t),c,void 0,s,i,void 0,void 0,void 0,void 0,void 0,o,r,"outlined"),Ye}}(t)),$P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a,c;return n=In(t.toTimeLabel_0.text),i=t.toTimeLabel_0.error,o=t.okText_0,r=t.cancelText_0,s=t.toTimeLabel_0.errorText,c=dy(null!=(a=t.entity)?a.scheduleEndTime:null),Nd(e,n,BA(t),c,void 0,s,i,void 0,void 0,void 0,void 0,void 0,o,r,"outlined"),Ye}}(t)),Ye}}function HA(t){return function(e){return $P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a,c,l,u;if(n=In(t.daysOptionLabel_0.text),o=In(null!=(i=t.entity)?i.scheduleDay:null),s=null!=(r=t.daysOptionLabel_0.errorText)?r:"",a=t.daysOptionLabel_0.error,null!=(c=t.dayOptions)){var h,d=Xo(Ko(c,10));for(h=c.iterator();h.hasNext();){var p=h.next();d.add_11rb$(new qa(p.code.toString(),p.toString()))}u=d}else u=null;return b_(e,n,o,s,void 0,null!=(l=u)?yr(l):null,void 0,qA(t),void 0,void 0,a),Ye}}(t)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return gP(e,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,WA(t)),Ye}}(t)),Ye}}function VA(t){AD.call(this,t)}function KA(t,e,n){return function(i){var o,r,s,a;i.attrs.onClick=function(t){return function(e){return ty().stopEventPropagation_za3rmp$(e),t(e.nativeEvent),Ye}}(t);var c,l=Kl();t:do{var u;for(u=0;u!==l.length;++u){var h=l[u];if(h.optionVal===e.scheduleFrequency){c=h;break t}}c=null}while(0);var d,p=null!=(r=null!=(o=c)?o.messageId:null)?r:2527,_=Xl();t:do{var m;for(m=0;m!==_.length;++m){var f=_[m];if(f.optionVal===e.scheduleDay){d=f;break t}}d=null}while(0);var g=null!=(a=null!=(s=d)?s.messageId:null)?a:2527;return Ok(i,n.systemImpl.getString(p,i)+" - "+n.systemImpl.getString(g,i)+" "+ry(new Date(e.sceduleStartTime))+" - "+ry(new Date(e.scheduleEndTime)),"delete",n.props.withDelete,void 0,function(t,e){return function(n){var i;return null!=(i=t.props.listener)&&i.onClickDelete_11rb$(e),Ye}}(n,e)),Ye}}function XA(t,e,n,i,o,r){var s,a,c,l,u;void 0===e&&(e=null),void 0===i&&(i=!0),void 0===o&&(o=new RD),void 0===r&&(r=null),t.child_up9nw1$(We(VA),(s=n,a=r,c=o,l=e,u=i,function(t){return t.attrs.entries=s,t.attrs.onEntryClicked=a,t.attrs.createNewItem=c,t.attrs.listener=l,t.attrs.withDelete=u,Ye}))}function JA(t){iD.call(this,t),this.mPresenter_0=null,this.entity_xflpx4$_0=null,this.title_zfib5r$_0=null,this.tabsToRender_0=null}function YA(t){return new ba(ya.emptyMap,t)}function QA(t){var e;iD.call(this,t),this.mPresenter_0=null,this.schoolClazzList_0=null,this.observer_0=new Ea((e=this,function(t){return $a(e,function(t,e){return function(n){return e.schoolClazzList_0=t,Ye}}(t,e)),Ye})),this.schoolClazzes_x2fglc$_0=null,this.schoolCodeVisible_9gd127$_0=!1,this.entity_vcx2wx$_0=null}function ZA(t){return yP(t,void 0,ty().ASSET_ENTRY,"school",void 0,void 0,!0,!0),Ye}function tx(t){return TE().alignTextToStart(t.css),Ye}function ex(t){return function(){var e,n;return ty().copyToClipboard_a4mwiz$(null!=(n=null!=(e=t.entity)?e.schoolCode:null)?n:"",function(t){return function(){return t.showSnackBar_9pu0dj$(t.getString_za3lpa$(2653)),Ye}}(t)),Ye}}function nx(){return Ye}function ix(t,e){return function(n){return n.attrs.entries=t,n.attrs.onEntryClicked=function(t){return function(e){var n;return null!=(n=t.mPresenter_0)&&n.handleClickClazz_yczdf2$(e),Ye}}(e),Ye}}function ox(t){return function(e){var n,i,o,r,s,a,c,l,u;$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n;return O_(e,null!=(n=t.entity)?n.schoolDesc:null,"body1",void 0,!0,void 0,void 0,void 0,void 0,tx),Ye}}(t)),RP(e,"login",null!=(i=null!=(n=t.entity)?n.schoolCode:null)?i:"",t.getString_za3lpa$(2670),void 0,ex(t)),RP(e,"place",null!=(o=t.entity)?o.schoolAddress:null,t.getString_za3lpa$(2315)),RP(e,"call",null!=(r=t.entity)?r.schoolPhoneNumber:null,t.getString_za3lpa$(2045)),RP(e,"perm_contact_calendar",null!=(a=null!=(s=t.entity)?s.holidayCalendar:null)?a.umCalendarName:null,t.getString_za3lpa$(2337)),RP(e,"email",null!=(c=t.entity)?c.schoolEmailAddress:null,t.getString_za3lpa$(2064),void 0,nx),RP(e,"language",null!=(l=t.entity)?l.schoolTimeZone:null,t.getString_za3lpa$(2517));var h=t.schoolClazzList_0;if(null!=h&&!h.isEmpty()&&($P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return TP(e,t.getString_za3lpa$(2069)),Ye}}(t)),null!=(u=t.schoolClazzList_0))){var d=t;e.child_up9nw1$(We(sx),ix(u,d))}return Ye}}function rx(t){return function(e){return $P(e,mp(),ap(),void 0,void 0,void 0,void 0,void 0,ZA),$P(e,mp(),hp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return gP(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,ox(t)),Ye}}(t)),Ye}}function sx(t){AD.call(this,t)}function ax(t){return TE().alignTextToStart(t.css),Ye}function cx(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().alignTextToStart),e.unaryPlus_uoyjcc$(TE().contentAfterIconMarginLeft),Ye}function lx(t,e){return function(n){return TE().defaultMarginTop(n.css),$P(n,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t,e){return function(n){return TE().umItemWithIconAndText(n.css),Rp(n,"people",void 0,"small"),O_(n,fy(t.getString_za3lpa$(2561),[e.numTeachers,e.numStudents]),"body1",void 0,void 0,void 0,void 0,!0,void 0,cx),Ye}}(t,e)),Ye}}function ux(t,e){return function(n){return $P(n,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t.clazzName,"body1",void 0,void 0,void 0,void 0,void 0,void 0,ax),Ye}}(t)),gP(n,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,lx(e,t)),Ye}}function hx(t,e,n){return function(i){i.attrs.onClick=function(t){return function(e){return t(e.nativeEvent),Ye}}(t);var o=i.css;return Gr(o,Br(4)),qr(o,Br(4)),$P(i,sp(),rp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return SP(e,t.clazzUid,"group"),Ye}}(e)),$P(i,dp(),pp(),void 0,void 0,void 0,void 0,void 0,ux(e,n)),Ye}}function dx(t){return new ba(ya.emptyMap,t)}function px(t){var e;oD.call(this,t),this.mPresenter_0=null,this.nameLabel_0=new Lm(this.getString_za3lpa$(2046)),this.descLabel_0=new Lm(this.getString_za3lpa$(2047)),this.timeZoneLabel_0=new Lm(this.getString_za3lpa$(2517)),this.holidayCalenderLabel_0=new Lm(this.getString_za3lpa$(2337)),this.phoneLabel_0=new Lm(this.getString_za3lpa$(2067)),this.addressLabel_0=new Lm(this.getString_za3lpa$(2315)),this.emailLabel_0=new Lm(this.getString_za3lpa$(2064)),this.scopeList_0=null,this.scopedGrantListObserver_0=new Ea((e=this,function(t){return $a(e,function(t,e){return function(n){return e.scopeList_0=t,Ye}}(t,e)),Ye})),this.scopedGrants_xvy7az$_0=null,this.fieldsEnabled_qnxoga$_0=!1,this.entity_q4cl27$_0=null}function _x(t){return yP(t,void 0,ty().ASSET_ENTRY,void 0,void 0,void 0,void 0,!0),Ye}function mx(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.schoolName=t),Ye}}(e,t)),Ye}}function fx(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.schoolDesc=t),Ye}}(e,t)),Ye}}function gx(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.schoolTimeZone=t),Ye}}(e,t)),Ye}}function $x(t){return function(e){return e.attrs.onClick=function(t){return function(){var e;return null!=(e=t.mPresenter_0)?(e.handleTimeZoneClicked(),Ye):null}}(t),Ye}}function Ex(t){return function(e){return e.attrs.onClick=function(t){return function(){var e;return null!=(e=t.mPresenter_0)?(e.handleHolidayCalendarClicked(),Ye):null}}(t),Ye}}function yx(t){return function(e){return $P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s;return n=In(t.timeZoneLabel_0.text),o=null!=(i=t.entity)?i.schoolTimeZone:null,r=t.timeZoneLabel_0.error,s=!t.fieldsEnabled,$_(e,n,o,t.timeZoneLabel_0.errorText,void 0,"outlined",gx(t),void 0,void 0,s,r,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,$x(t)),Ye}}(t)),$P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a;return n=In(t.holidayCalenderLabel_0.text),r=null!=(o=null!=(i=t.entity)?i.holidayCalendar:null)?o.umCalendarName:null,s=t.holidayCalenderLabel_0.error,a=!t.fieldsEnabled,$_(e,n,r,t.holidayCalenderLabel_0.errorText,void 0,"outlined",void 0,void 0,void 0,a,s,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Ex(t)),Ye}}(t)),Ye}}function bx(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.schoolAddress=t),Ye}}(e,t)),Ye}}function Sx(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.schoolEmailAddress=t),Ye}}(e,t)),Ye}}function vx(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.schoolPhoneNumber=t),Ye}}(e,t)),Ye}}function Cx(t){return function(e){return $P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a;return n=In(t.emailLabel_0.text),i=t.emailLabel_0.errorText,r=null!=(o=t.entity)?o.schoolEmailAddress:null,s=t.emailLabel_0.error,a=!t.fieldsEnabled,$_(e,n,r,i,void 0,"outlined",Sx(t),"email",void 0,a,s),Ye}}(t)),$P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r,s,a;return n=In(t.phoneLabel_0.text),i=t.phoneLabel_0.errorText,r=null!=(o=t.entity)?o.schoolPhoneNumber:null,s=t.phoneLabel_0.error,a=!t.fieldsEnabled,$_(e,n,r,i,void 0,"outlined",vx(t),void 0,void 0,a,s),Ye}}(t)),Ye}}function Nx(t){return function(e){var n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E;if(TP(e,t.getString_za3lpa$(2314)),n=In(t.nameLabel_0.text),i=t.nameLabel_0.errorText,r=null!=(o=t.entity)?o.schoolName:null,s=t.nameLabel_0.error,a=!t.fieldsEnabled,$_(e,n,r,i,void 0,"outlined",mx(t),void 0,void 0,a,s),c=In(t.descLabel_0.text),u=null!=(l=t.entity)?l.schoolDesc:null,h=t.descLabel_0.error,d=!t.fieldsEnabled,$_(e,c,u,t.descLabel_0.errorText,void 0,"outlined",fx(t),void 0,void 0,d,h),gP(e,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,yx(t)),p=In(t.addressLabel_0.text),_=t.addressLabel_0.errorText,f=null!=(m=t.entity)?m.schoolAddress:null,g=t.nameLabel_0.error,$=!t.fieldsEnabled,$_(e,p,f,_,void 0,"outlined",bx(t),void 0,void 0,$,g),gP(e,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,Cx(t)),Fk(e),TP(e,t.getString_za3lpa$(2465)),null!=(E=t.mPresenter_0)){var y,b=t;if(null!=(y=b.scopeList_0)){var S,v=new RD(!0,b.getString_za3lpa$(2733),function(t){return function(){var e,n;return null!=(n=null!=(e=t.mPresenter_0)?e.scopedGrantOneToManyHelper:null)&&n.onClickNew(),Ye}}(b)),C=E.scopedGrantOneToManyHelper,N=eu(),T=Yo();for(S=y.iterator();S.hasNext();){var L=S.next(),z=L.name;N.add_11rb$(z)&&T.add_11rb$(L)}Fx(e,C,T,v,function(t){return function(e){var n,i;return null!=(i=null!=(n=t.mPresenter_0)?n.scopedGrantOneToManyHelper:null)&&i.onClickEdit_11rb$(e),Ye}}(b))}}return Ye}}function Tx(t){return new ba(ya.emptyMap,t)}function Lx(t){uD.call(this,t),this.mPresenter_0=null,this.newSchoolListOptionVisible_ja98u5$_0=!1}function zx(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().alignTextToStart),TE().maxLines_th7wno$(e,1),Ye}function wx(t){return TE().gridListSecondaryItemIcons(t.css),Ye}function Ox(t){return Rp(t,"place","inherit",void 0,void 0,wx),Ye}function Rx(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().alignTextToStart),e.unaryPlus_uoyjcc$(TE().gridListSecondaryItemDesc),Ye}function Ax(t){return TE().gridListSecondaryItemIcons(t.css),Ye}function xx(t){return Rp(t,"people","inherit",void 0,void 0,Ax),Ye}function Ix(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().alignTextToStart),e.unaryPlus_uoyjcc$(TE().gridListSecondaryItemDesc),Ye}function Ux(t,e){return function(n){var i;return!0===(null!=(i=t.schoolAddress)?i.length>0:null)&&($P(n,op(),void 0,void 0,void 0,void 0,void 0,void 0,Ox),$P(n,_p(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t.schoolAddress,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Rx),Ye}}(t))),$P(n,op(),void 0,void 0,void 0,void 0,void 0,void 0,xx),$P(n,_p(),void 0,void 0,void 0,void 0,void 0,void 0,function(t,e){return function(n){return O_(n,fy(t.getString_za3lpa$(2561),[e.numTeachers,e.numStudents]),void 0,void 0,void 0,void 0,void 0,void 0,void 0,Ix),Ye}}(e,t)),Ye}}function Dx(t){return function(){return $a(t,function(t){return function(e){return t.showAddEntryOptions=!1,Ye}}(t)),Ye}}function Px(t){var e;uD.call(this,t),this.mPresenter_0=null,this.addPersonKeyName_3qoa2o$_0=this.addPersonKeyName_3qoa2o$_0,this.roleStudent=!1,this.addNewStringId_0=0,this.filterBySchoolUid_0=ra,this.pendingStudents_0=ri(),this.observer_0=new Ea((e=this,function(t){if(null!=t&&!t.isEmpty())return $a(e,function(t,e){return function(n){return e.pendingStudents_0=t,Ye}}(t,e)),Ye})),this.pendingStudentList_v3o3ea$_0=null}function Mx(t){return function(e){var n;return e.attrs.entries=t.pendingStudents_0,e.attrs.onEntryClicked=function(t){return function(e){var n;return null!=(n=t.mPresenter_0)&&n.handleClickEntry_11rc$(e),Ye}}(t),null!=(n=t.mPresenter_0)&&(e.attrs.presenter=n),e.attrs.createNewItem=new RD,Ye}}function kx(t){AD.call(this,t)}function jx(t){AD.call(this,t)}function Gx(t,e,n){return function(i){return i.attrs.onClick=function(t){return function(e){return t(e.nativeEvent),Ye}}(t),jP(i,"admin_panel_settings",e.name,n),Ye}}function qx(t,e,n,i){var o,r,s,a,c,l,u=au.Companion.PERMISSION_LIST_MAP.get_11rb$(n);if(null!=u){var h,d=Xo(Ko(u,10));for(h=u.iterator();h.hasNext();){var p=h.next();d.add_11rb$(p.toBitmaskFlag_s8cxhz$(i))}s=d}else s=null;if(null!=(o=s)){var _,m=Yo();for(_=o.iterator();_.hasNext();){var f=_.next();f.enabled&&m.add_11rb$(f)}a=m}else a=null;return null!=(r=a)?ma(r,void 0,void 0,void 0,void 0,void 0,(c=e,l=t,function(t){return c.getString(t.messageId,l)})):null}function Fx(t,e,n,i,o){var r,s,a,c;void 0===i&&(i=new RD),void 0===o&&(o=null),t.child_up9nw1$(We(jx),(r=n,s=o,a=i,c=e,function(t){return t.attrs.entries=r,t.attrs.onEntryClicked=s,t.attrs.createNewItem=a,t.attrs.listener=c,Ye}))}function Bx(t){return new ba(ya.emptyMap,t)}function Wx(t){var e;oD.call(this,t),this.mPresenter_0=null,this.scopeList_0=null,this.scopedGrantListObserver_0=new Ea((e=this,function(t){return $a(e,function(t,e){return function(n){return e.scopeList_0=t,Ye}}(t,e)),Ye})),this.bitmaskList_1ctben$_0=null,this.fieldsEnabled_v0iuwg$_0=!1,this.entity_2vi1cp$_0=null}function Hx(t){return Ye}function Vx(t,n){return function(i){return i.attrs.entries=t,i.attrs.mainList=!0,i.attrs.onEntryClicked=function(t){return function(n){var i,o,r;if(e.isType(n,Na)||An(),null!=(i=t.scopeList_0)){var s;t:do{var a;for(a=i.iterator();a.hasNext();){var c=a.next();if(c.messageId===n.messageId){s=c;break t}}throw new Vo("Collection contains no element matching the predicate.")}while(0);r=s}else r=null;var l=r;return null!=l&&(l.enabled=!(null!=(o=null!=l?l.enabled:null)&&o)),$a(t,Hx),Ye}}(n),Ye}}function Kx(t){AD.call(this,t)}function Xx(t){return new du(ya.emptyMap,t)}function Jx(t){return new ba(ya.emptyMap,t)}function Yx(t){VU.call(this,t),this.mPresenter_0=null,this.fileDropZoneManager_0=null,this.dropZoneText_0=this.getString_za3lpa$(2836),this.acceptedMimeTypes_iu6tfp$_0=ga("*/"),this.noFileSelectedError_vksglp$_0=null,this.unSupportedFileError_tnxn3a$_0=null,this.fieldsEnabled_6tcdad$_0=!0,this.entity_8y025u$_0=null,this.selectedFiles_aqldd3$_0=ri()}function Qx(t){return function(){var e,n,i,o,r,s=null!=(e=ou(t.selectedFiles_0))?URL.createObjectURL(e):null;return Xa.Napier.d_9h2hdn$(void 0,void 0,(r=s,function(){return"SelectExtractFileComponent: objectUrl = "+In(r)})),o=t.mPresenter_0,i=null!=(n=ou(t.selectedFiles_0))?n.name:null,null!=o&&o.handleUriSelected_rkkr90$(s,i),Ye}}function Zx(t){this.this$SelectExtractFileComponent=t}function tI(t){return function(e){var n=e.css;n.unaryPlus_uoyjcc$(TE().centerContainer),Is(n,ns(92));var i=Sa.Companion.invoke_f6ihu2$(Jx),o=t;TE().dropZoneArea(i.css),Qc(i.attrs,"um-dropzone"),Rp(i,"cloud_upload",void 0,void 0,TE().name+"-dropZoneIcon");var r=Sa.Companion.invoke_f6ihu2$(Xx);TE().dropZoneTxt(r.css),r.unaryPlus_pdl1vz$(o.dropZoneText_0),i.child_30b5ua$(r.create());var s,a,c,l,u=Sa.Companion.invoke_f6ihu2$((s=null,a=null,c=null,l=null,function(t){return new pu(ml(["type",null!=s?nl(s):null,"formenctype",null!=a?nl(a):null,"formmethod",null!=c?nl(c):null,"name",l]),t)}));return uu(u.css,lu.hidden),u.attrs.type=hu.file,Qc(u.attrs,"um-file-select"),u.attrs.accept=ma(o.acceptedMimeTypes,","),i.child_30b5ua$(u.create()),e.child_30b5ua$(i.create()),Ye}}function eI(t){return function(e,n){return gP(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return $P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,tI(t)),Ye}}(t)),Ye}}function nI(t){return new du(ya.emptyMap,t)}function iI(t){return new ba(ya.emptyMap,t)}function oI(t){VU.call(this,t),this.mPresenter_y328lp$_0=this.mPresenter_y328lp$_0,this.dropZoneText_0=this.getString_za3lpa$(2836),this.fileDropZoneManager_0=null,this.selectedFiles_ym9n80$_0=ri(),this.acceptedMimeTypes_ma29wy$_0=ri(),this.noFileSelectedError_i47n98$_0=null,this.unSupportedFileError_j7sj1t$_0=null,this.fieldsEnabled_iuwo3o$_0=!1,this.entity_ejgu8r$_0=null}function rI(t){this.this$SelectFileComponent=t}function sI(t){return function(e){var n=e.css;n.unaryPlus_uoyjcc$(TE().centerContainer),Is(n,ns(92));var i=Sa.Companion.invoke_f6ihu2$(iI),o=t;TE().dropZoneArea(i.css),Qc(i.attrs,"um-dropzone"),Rp(i,"cloud_upload",void 0,void 0,TE().name+"-dropZoneIcon");var r=Sa.Companion.invoke_f6ihu2$(nI);TE().dropZoneTxt(r.css),r.unaryPlus_pdl1vz$(o.dropZoneText_0),i.child_30b5ua$(r.create());var s,a,c,l,u=Sa.Companion.invoke_f6ihu2$((s=null,a=null,c=null,l=null,function(t){return new pu(ml(["type",null!=s?nl(s):null,"formenctype",null!=a?nl(a):null,"formmethod",null!=c?nl(c):null,"name",l]),t)}));return uu(u.css,lu.hidden),u.attrs.type=hu.file,Qc(u.attrs,"um-file-select"),u.attrs.accept=ma(o.acceptedMimeTypes,","),i.child_30b5ua$(u.create()),e.child_30b5ua$(i.create()),Ye}}function aI(t){return function(e,n){return gP(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return $P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,sI(t)),Ye}}(t)),Ye}}function cI(t){return new va(ya.emptyMap,t)}function lI(t){uD.call(this,t),this.mPresenter_0=null,this.personWithContentTitle_atdeqs$_0=null}function uI(t){return TE().alignTextToStart(t.css),Ye}function hI(t){return TE().alignTextToStart(t.css),Ye}function dI(t){return TE().alignTextToStart(t.css),Ye}function pI(t){return TE().alignTextToStart(t.css),Ye}function _I(t,e){return function(n){return $P(n,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t,e){return function(n){return O_(n,Aj(t.systemImpl,e)+" "+py(e.duration,t.systemImpl),"h6",void 0,void 0,void 0,void 0,void 0,void 0,uI),Ye}}(t,e)),$P(n,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i;return O_(e,In(null!=(n=dy(t.startDate))?iy(n):null)+" - "+In(null!=(i=dy(t.startDate))?ry(i):null),"body1",void 0,void 0,void 0,void 0,!0,void 0,hI),Ye}}(e)),$P(n,mp(),void 0,void 0,void 0,void 0,void 0,Yn.row,function(t,e){return function(n){var i=Sa.Companion.invoke_f6ihu2$(cI),o=t,r=e;ts(i.css,void 0,C_(4)),O_(i,fy(o.getString_za3lpa$(2531),[(100*r.resultScoreScaled).toString()]),"body1",void 0,void 0,void 0,void 0,!0,void 0,dI),n.child_30b5ua$(i.create());var s=Sa.Companion.invoke_f6ihu2$(cI),a=e;return ts(s.css,void 0,C_(4)),O_(s,"("+a.resultScore+" / "+a.resultMax+")","body1",void 0,void 0,void 0,void 0,!0,void 0,pI),n.child_30b5ua$(s.create()),Ye}}(t,e)),Ye}}function mI(t,e){return function(n){var i=new ai("4px");return ts(n.css,i,void 0,i),$P(n,sp(),op(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return CP(e,Rj(t),void 0,void 0,void 0,50,void 0,"circular"),Ye}}(t)),$P(n,dp(),_p(),void 0,void 0,void 0,void 0,void 0,_I(e,t)),Ye}}function fI(t){return new ba(ya.emptyMap,t)}function gI(t){VU.call(this,t),this.mPresenter=null,this.displayLanguage_7lapct$_0=null,this.workspaceSettingsVisible_r584xv$_0=!1,this.holidayCalendarVisible_p5x93z$_0=!0,this.reasonLeavingVisible_9o6m3$_0=!0,this.langListVisible_is2f01$_0=!0}function $I(t){return function(e){return e.attrs.onClick=function(t){return function(e){var n;return ty().stopEventPropagation_za3rmp$(e),null!=(n=t.mPresenter)&&n.goToHolidayCalendarList(),Ye}}(t),jP(e,"date_range",t.getString_za3lpa$(2428),t.getString_za3lpa$(2429),!0),Ye}}function EI(t){return function(e){return e.attrs.onClick=function(t){return function(e){var n;return ty().stopEventPropagation_za3rmp$(e),null!=(n=t.mPresenter)&&n.handleClickWorkspace(),Ye}}(t),jP(e,"account_balance",t.getString_za3lpa$(2686),t.getString_za3lpa$(2680),!0),Ye}}function yI(t){return function(e){return e.attrs.onClick=function(t){return function(e){var n;return ty().stopEventPropagation_za3rmp$(e),null!=(n=t.mPresenter)&&n.handleClickLeavingReason(),Ye}}(t),jP(e,"logout",t.getString_za3lpa$(2378),t.getString_za3lpa$(2380),!0),Ye}}function bI(t){return function(e){return e.attrs.onClick=function(t){return function(e){var n;return ty().stopEventPropagation_za3rmp$(e),null!=(n=t.mPresenter)&&n.handleClickLangList(),Ye}}(t),jP(e,"language",t.getString_za3lpa$(2057),t.getString_za3lpa$(2061),!0),Ye}}function SI(t){return function(e){return t.holidayCalendarVisible&&$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return qp(e,!0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,$I(t)),Ye}}(t)),t.workspaceSettingsVisible&&$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return qp(e,!0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,EI(t)),Ye}}(t)),t.reasonLeavingVisible&&$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return qp(e,!0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,yI(t)),Ye}}(t)),t.langListVisible&&$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return qp(e,!0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,bI(t)),Ye}}(t)),Ye}}function vI(t){return new ba(ya.emptyMap,t)}function CI(t){var e;iD.call(this,t),this.mPresenter_0=null,this.siteTermsWithLanguageList_0=ri(),this.currentSiteList_0=Yo(),this.observer_0=new Ea((e=this,function(t){if(!t.isEmpty())return $a(e,function(t,e){return function(n){return e.siteTermsWithLanguageList_0=t,Ye}}(t,e)),Ye})),this.siteTermsList_l9w6z6$_0=null,this.entity_5kjmrp$_0=null}function NI(t){return Ye}function TI(t,e){return function(n){return RP(n,"account_balance",t.siteName,e.getString_za3lpa$(2046),!0),RP(n,"meeting_room",e.getString_za3lpa$(t.guestLogin?2683:2684),e.getString_za3lpa$(2681),!0),RP(n,"person_add_alt_1",e.getString_za3lpa$(t.registrationAllowed?2683:2684),e.getString_za3lpa$(2682),!0),Ye}}function LI(t){return new ba(ya.emptyMap,t)}function zI(t){var e;oD.call(this,t),this.mPresenter_0=null,this.siteTermsWithLanguageList_0=ri(),this.siteTermsObserver_0=new Ea((e=this,function(t){if(!t.isEmpty())return $a(e,function(t,e){return function(n){return e.siteTermsWithLanguageList_0=t,Ye}}(t,e)),Ye})),this.siteTermsList_vio21z$_0=null,this.fieldsEnabled_e25qhv$_0=!1,this.entity_me9euk$_0=null,this.nameLabel_0=new Lm(this.getString_za3lpa$(2046))}function wI(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.siteName=t),Ye}}(e,t)),Ye}}function OI(t){return function(e){return $a(t,function(t){return function(e){var n,i,o;return null!=(o=t.entity)&&(o.guestLogin=!(null!=(i=null!=(n=t.entity)?n.guestLogin:null)&&i)),Ye}}(t)),Ye}}function RI(t){return function(e){return $a(t,function(t){return function(e){var n,i,o;return null!=(o=t.entity)&&(o.registrationAllowed=!(null!=(i=null!=(n=t.entity)?n.registrationAllowed:null)&&i)),Ye}}(t)),Ye}}function AI(t){return function(e){var n;TP(e,t.getString_za3lpa$(2679));var i=new RD(!0,t.getString_za3lpa$(2679),function(t){return function(){var e,n;return null!=(n=null!=(e=t.mPresenter_0)?e.siteTermsOneToManyJoinListener:null)&&n.onClickNew(),Ye}}(t));return GI(e,null!=(n=t.mPresenter_0)?n.siteTermsOneToManyJoinListener:null,t.siteTermsWithLanguageList_0,!0,i,function(t){return function(e){var n,i;return null!=(i=null!=(n=t.mPresenter_0)?n.siteTermsOneToManyJoinListener:null)&&i.onClickEdit_11rb$(e),Ye}}(t)),Ye}}function xI(t){iD.call(this,t),this.mPresenter_0=null,this.acceptButtonVisible_24e9ff$_0=!1,this.entity_aoe9pe$_0=null}function II(t){return function(e){return TE().centerContainer(e.css),$P(e,dp(),up(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n;return Gj(e,null!=(n=t.entity)?n.termsHtml:null),Ye}}(t)),Ye}}function UI(t){return new ba(ya.emptyMap,t)}function DI(t){oD.call(this,t),this.mPresenter_0=null,this.languageError_x3iquc$_0=null,this.fieldsEnabled_fky3a4$_0=!1,this.entity_ycpslh$_0=null,this.languageLabel_0=new Lm(this.getString_za3lpa$(2053))}function PI(t){return function(e){return e.attrs.onClick=function(t){return function(){var e;return null!=(e=t.mPresenter_0)?(e.handleClickLanguage(),Ye):null}}(t),Ye}}function MI(t){return function(e){var n;return TE().defaultDoubleMarginTop(e.css),qw(e,null!=(n=t.entity)?n.termsHtml:null,void 0,void 0,t.getString_za3lpa$(2952),void 0,function(t){return function(e){var n;return null!=(n=t.entity)&&(n.termsHtml=e),Ye}}(t)),Ye}}function kI(t){AD.call(this,t)}function jI(t,e,n){return function(i){var o,r;return i.attrs.onClick=function(t){return function(e){return ty().stopEventPropagation_za3rmp$(e),t(e.nativeEvent),Ye}}(t),Ok(i,null!=(r=null!=(o=e.stLanguage)?o.name:null)?r:"","delete",n.props.withDelete,void 0,function(t,e){return function(n){var i;return null!=(i=t.props.listener)&&i.onClickDelete_11rb$(e),Ye}}(n,e)),Ye}}function GI(t,e,n,i,o,r){var s,a,c,l,u;void 0===e&&(e=null),void 0===i&&(i=!0),void 0===o&&(o=new RD),void 0===r&&(r=null),t.child_up9nw1$(We(kI),(s=n,a=r,c=o,l=e,u=i,function(t){return t.attrs.entries=s,t.attrs.onEntryClicked=a,t.attrs.createNewItem=c,t.attrs.listener=l,t.attrs.withDelete=u,Ye}))}function qI(t){return new ba(ya.emptyMap,t)}function FI(t){Fc(t,this)}function BI(t){TE().alignCenterItems(t.css);var e,n,i=Sa.Companion.invoke_f6ihu2$((e=null,n=null,function(t){return new fl(ml(["alt",e,"src",n]),t)}));return Mr(i.css,new ai("90%")),i.attrs.src="assets/logo.png",t.child_30b5ua$(i.create()),Ye}function WI(t){return Mr(t.css,new ai("100%")),Ye}function HI(t){return TE().alignCenterItems(t.css),Zp(t,void 0,void 0,void 0,OE().isDarkModeActive()?"secondary":"primary",void 0,WI),Ye}function VI(t){return TE().alignCenterItems(t.css),$P(t,mp(),void 0,void 0,void 0,void 0,void 0,void 0,BI),$P(t,mp(),void 0,void 0,void 0,void 0,void 0,void 0,HI),Ye}function KI(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().partnersList),e.unaryPlus_uoyjcc$(TE().alignEndItems),fj(t,"irc.png"),fj(t,"expo.png"),Ye}function XI(t,e){var n=Sa.Companion.invoke_f6ihu2$(qI);TE().splashComponentContainer(n.css);var i=Sa.Companion.invoke_f6ihu2$(qI);return TE().splashComponentPreloadContainer(i.css),gP(i,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,VI),n.child_30b5ua$(i.create()),$P(n,mp(),void 0,void 0,void 0,void 0,void 0,Yn.rowReverse,KI),t.child_30b5ua$(n.create()),Ye}function JI(t){return Ye}function YI(t){t.child_up9nw1$(We(FI),JI)}function QI(){SplashView$Companion_getInstance()}function ZI(t){return new va(ya.emptyMap,t)}function tU(t){pU(),uD.call(this,t),this.mPresenter_0=null,this.personWithContentTitle_izx7jf$_0=null}function eU(t){return TE().alignTextToStart(t.css),Ye}function nU(t){return TE().alignTextToStart(t.css),Ye}function iU(t){return TE().alignTextToStart(t.css),Ye}function oU(t){return TE().alignTextToStart(t.css),Ye}function rU(t){return TE().alignTextToStart(t.css),Ye}function sU(t,e){return function(n){return $P(n,mp(),sp(),void 0,void 0,void 0,void 0,Yn.row,function(t){return function(e){var n,i,o=Sa.Companion.invoke_f6ihu2$(ZI);return ts(o.css,void 0,C_(1)),Rp(o,"calendar_today",void 0,"small"),e.child_30b5ua$(o.create()),O_(e,In(null!=(n=dy(t.timestamp))?iy(n):null)+" - "+In(null!=(i=dy(t.timestamp))?ry(i):null),"body1",void 0,void 0,void 0,void 0,!0,void 0,oU),Ye}}(t)),t.resultDuration.toNumber()>1e3&&$P(n,mp(),sp(),void 0,void 0,void 0,void 0,Yn.row,function(t,e){return function(n){var i=Sa.Companion.invoke_f6ihu2$(ZI);return ts(i.css,void 0,C_(1)),Rp(i,"timer",void 0,"small"),n.child_30b5ua$(i.create()),O_(n,py(t.resultDuration,e.systemImpl),"body1",void 0,void 0,void 0,void 0,!0,void 0,rU),Ye}}(t,e)),Ye}}function aU(t){return TE().alignTextToStart(t.css),Ye}function cU(t){return TE().alignTextToStart(t.css),Ye}function lU(t,e){return function(n){return $P(n,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t.verbDisplay,"h6",void 0,void 0,void 0,void 0,void 0,void 0,eU),Ye}}(t)),$P(n,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t.objectDisplay,"body1",void 0,void 0,void 0,void 0,!0,void 0,nU),Ye}}(t)),Je(t.statementVerbUid,vu)||$P(n,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,xj(t),"body1",void 0,void 0,void 0,void 0,!0,void 0,iU),Ye}}(t)),$P(n,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t,e){return function(n){return gP(n,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,sU(t,e)),Ye}}(t,e)),$P(n,mp(),void 0,void 0,void 0,void 0,void 0,Yn.row,function(t,e){return function(n){var i=Sa.Companion.invoke_f6ihu2$(ZI);ts(i.css,void 0,C_(1)),Rp(i,"check",void 0,"small"),n.child_30b5ua$(i.create());var o=Sa.Companion.invoke_f6ihu2$(ZI),r=t,s=e;if(ts(o.css,void 0,C_(4)),O_(o,fy(r.getString_za3lpa$(2531),[(100*s.resultScoreScaled).toString()]),"body1",void 0,void 0,void 0,void 0,!0,void 0,aU),n.child_30b5ua$(o.create()),e.resultScoreMax.toNumber()>0){var a=Sa.Companion.invoke_f6ihu2$(ZI),c=e;ts(a.css,void 0,C_(4)),O_(a,"("+c.resultScoreRaw.toString()+" / "+c.resultScoreMax.toString()+")","body1",void 0,void 0,void 0,void 0,!0,void 0,cU),n.child_30b5ua$(a.create())}return Ye}}(e,t)),Ye}}function uU(t,e){return function(n){var i=new ai("4px");return ts(n.css,i,void 0,i),$P(n,sp(),op(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n;return CP(e,null!=(n=pU().VERB_ICON_MAP.get_11rb$(t.statementVerbUid.toInt()))?n:"",void 0,void 0,void 0,50,void 0,"circular"),Ye}}(t)),$P(n,dp(),_p(),void 0,void 0,void 0,void 0,void 0,function(t,e){return function(n){return gP(n,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,lU(t,e)),Ye}}(t,e)),Ye}}function hU(){dU=this,this.VERB_ICON_MAP=Ia([ni(10001,"fact_check"),ni(1e4,"show_chart"),ni(10005,"ballot"),ni(10006,"touch_app"),ni(10007,"contact_support"),ni(10004,"checklist"),ni(10002,"checklist"),ni(10003,"close")])}DA.$metadata$={kind:Vn,simpleName:"ReportTemplateListComponent",interfaces:[wo,uD]},Object.defineProperty(GA.prototype,"mEditPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(GA.prototype,"dayOptions",{configurable:!0,get:function(){return this.dayOptions_nk1chv$_0},set:function(t){this.dayOptions_nk1chv$_0=t}}),Object.defineProperty(GA.prototype,"fromTimeError",{configurable:!0,get:function(){return this.fromTimeError_6xk55w$_0},set:function(t){var e,n;$a(this,(e=this,n=t,function(t){return e.fromTimeLabel_0=e.fromTimeLabel_0.copy_d8n4vg$(void 0,n),Ye}))}}),Object.defineProperty(GA.prototype,"toTimeError",{configurable:!0,get:function(){return this.toTimeError_wtxrpn$_0},set:function(t){var e,n;$a(this,(e=this,n=t,function(t){return e.toTimeLabel_0=e.toTimeLabel_0.copy_d8n4vg$(void 0,n),Ye}))}}),Object.defineProperty(GA.prototype,"fieldsEnabled",{configurable:!0,get:function(){return this.fieldsEnabled_l72hlf$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.fieldsEnabled_l72hlf$_0=e,Ye}))}}),Object.defineProperty(GA.prototype,"entity",{configurable:!0,get:function(){return this.entity_k833ac$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.entity_k833ac$_0=e,Ye}))}}),GA.prototype.onCreateView=function(){var t;oD.prototype.onCreateView.call(this),this.mPresenter_0=new Vl(this,this.arguments,this,this.di,this),this.setEditTitle_vux9f0$(2299,2300),null!=(t=this.mPresenter_0)&&t.onCreate(my(this.navController))},GA.prototype.render_ss14n$=function(t){var e=Sa.Companion.invoke_f6ihu2$(jA);e.css.unaryPlus_uoyjcc$(TE().fieldsOnlyFormScreen),gP(e,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,HA(this)),t.child_30b5ua$(e.create())},GA.prototype.onDestroyView=function(){var t;oD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null,this.toTimeError=null,this.fromTimeError=null},GA.$metadata$={kind:Vn,simpleName:"ScheduleEditComponent",interfaces:[oo,oD]},VA.prototype.renderListItem_f4dmsf$=function(t,e,n){gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,KA(n,e,this))},VA.$metadata$={kind:Vn,simpleName:"ScheduleListComponent",interfaces:[AD]},Object.defineProperty(JA.prototype,"detailPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(JA.prototype,"entity",{configurable:!0,get:function(){return this.entity_xflpx4$_0},set:function(t){this.entity_xflpx4$_0=t,this.ustadComponentTitle=null!=t?t.schoolName:null}}),Object.defineProperty(JA.prototype,"title",{configurable:!0,get:function(){return this.title_zfib5r$_0},set:function(t){this.ustadComponentTitle=t,this.title_zfib5r$_0=t}}),JA.prototype.onCreateView=function(){var t,e,n;iD.prototype.onCreateView.call(this),null!=(t=this.fabManager)&&(t.visible=!1),this.mPresenter_0=new Jl(this,this.arguments,this,this.di,this),null!=(e=this.mPresenter_0)&&e.onCreate(my(this.navController));var i,o,r=null!=(n=this.arguments.get_11rb$(xa.Companion.ARG_ENTITY_UID))?n:"0",s=or(ni(xa.Companion.ARG_NAV_CHILD,(!0).toString())),a=Bo([Ql(Yi.Companion.VIEW_NAME,Yl(s,or(ni(xa.Companion.ARG_ENTITY_UID,r)))),Ql(Qi.Companion.VIEW_NAME,Yl(s,Ia([ni(xa.Companion.ARG_FILTER_BY_ROLE,1004..toString()),ni(xa.Companion.ARG_FILTER_BY_SCHOOLUID,r)]))),Ql(Qi.Companion.VIEW_NAME,Yl(s,Ia([ni(xa.Companion.ARG_FILTER_BY_ROLE,1003..toString()),ni(xa.Companion.ARG_FILTER_BY_SCHOOLUID,r)])))]);$a(this,(i=a,o=this,function(t){var e,n,r=o,s=i,a=Xo(Ko(s,10)),c=0;for(e=s.iterator();e.hasNext();){var l=e.next(),u=a.add_11rb$,h=i,d=o,p=Js((c=(n=c)+1|0,n)),_=Bo([2558,2560,2075]),m=Xs(l,"?"),f=Ra(l,"?");u.call(a,new mU(p,m,qE(l.substring(f)),d.getString_za3lpa$(_.get_za3lpa$(h.indexOf_11rb$(l)))))}return r.tabsToRender_0=a,Ye}))},JA.prototype.render_ss14n$=function(t){var e,n,i;null!=(e=this.tabsToRender_0)&&EU(t,e,void 0,null!=(i=null!=(n=this.arguments.get_11rb$(xa.Companion.ARG_ACTIVE_TAB_INDEX))?vr(n):null)?i:0)},JA.prototype.onDestroyView=function(){var t;iD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null,this.tabsToRender_0=null},JA.$metadata$={kind:Vn,simpleName:"SchoolDetailComponent",interfaces:[Ji,iD]},Object.defineProperty(QA.prototype,"detailPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(QA.prototype,"schoolClazzes",{configurable:!0,get:function(){return this.schoolClazzes_x2fglc$_0},set:function(t){this.schoolClazzes_x2fglc$_0=t;var e=null!=t?t.getData_vux9f0$(0,2147483647):null;null!=e&&e.removeObserver_fujmse$(this.observer_0),null!=e&&e.observe_bi6zy5$(this,this.observer_0)}}),Object.defineProperty(QA.prototype,"schoolCodeVisible",{configurable:!0,get:function(){return this.schoolCodeVisible_9gd127$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.schoolCodeVisible_9gd127$_0=e,Ye}))}}),Object.defineProperty(QA.prototype,"entity",{configurable:!0,get:function(){return this.entity_vcx2wx$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.entity_vcx2wx$_0=e,Ye}))}}),QA.prototype.onCreateView=function(){var t;iD.prototype.onCreateView.call(this),this.mPresenter_0=new Zl(this,this.arguments,this,this.di,this),null!=(t=this.mPresenter_0)&&t.onCreate(fr())},QA.prototype.render_ss14n$=function(t){var e=Sa.Companion.invoke_f6ihu2$(YA),n=e.css;n.unaryPlus_uoyjcc$(TE().defaultPaddingTop),n.unaryPlus_uoyjcc$(TE().contentContainer),gP(e,void 0,void 0,void 0,void 0,Cp(),void 0,void 0,void 0,rx(this)),t.child_30b5ua$(e.create())},QA.prototype.onDestroyView=function(){var t;iD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.schoolClazzList_0=null,this.entity=null},sx.prototype.renderListItem_f4dmsf$=function(t,e,n){gP(t,vp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,hx(n,e,this))},sx.$metadata$={kind:Vn,simpleName:"SchoolClazzesComponent",interfaces:[AD]},QA.$metadata$={kind:Vn,simpleName:"SchoolDetailOverviewComponent",interfaces:[Yi,iD]},Object.defineProperty(px.prototype,"mEditPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(px.prototype,"scopedGrants",{configurable:!0,get:function(){return this.scopedGrants_xvy7az$_0},set:function(t){var e,n;this.scopedGrants_xvy7az$_0=t,null!=(e=this.scopedGrants_xvy7az$_0)&&e.removeObserver_fujmse$(this.scopedGrantListObserver_0),null!=(n=this.scopedGrants_xvy7az$_0)&&n.observe_bi6zy5$(this,this.scopedGrantListObserver_0)}}),Object.defineProperty(px.prototype,"fieldsEnabled",{configurable:!0,get:function(){return this.fieldsEnabled_qnxoga$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.fieldsEnabled_qnxoga$_0=e,Ye}))}}),Object.defineProperty(px.prototype,"entity",{configurable:!0,get:function(){return this.entity_q4cl27$_0},set:function(t){var e,n;null!=(null!=t?t.schoolName:null)&&(this.ustadComponentTitle=t.schoolName),$a(this,(e=t,n=this,function(t){return n.entity_q4cl27$_0=e,Ye}))}}),px.prototype.onCreateView=function(){var t;oD.prototype.onCreateView.call(this),this.setEditTitle_vux9f0$(2522,2523),this.mPresenter_0=new tu(this,this.arguments,this,this.di,this),null!=(t=this.mPresenter_0)&&t.onCreate(my(this.navController))},px.prototype.render_ss14n$=function(t){var e,n=Sa.Companion.invoke_f6ihu2$(dx),i=n.css;i.unaryPlus_uoyjcc$(TE().contentContainer),i.unaryPlus_uoyjcc$(TE().defaultPaddingTop),gP(n,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,(e=this,function(t){return $P(t,mp(),ap(),void 0,void 0,void 0,void 0,void 0,_x),$P(t,mp(),hp(),void 0,void 0,void 0,void 0,void 0,Nx(e)),Ye})),t.child_30b5ua$(n.create())},px.prototype.onDestroyView=function(){var t;oD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null},px.$metadata$={kind:Vn,simpleName:"SchoolEditComponent",interfaces:[so,oD]},Object.defineProperty(Lx.prototype,"displayTypeRepo",{configurable:!0,get:function(){var t;return null!=(t=this.dbRepo)?t.schoolDao:null}}),Object.defineProperty(Lx.prototype,"listPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(Lx.prototype,"newSchoolListOptionVisible",{configurable:!0,get:function(){return this.newSchoolListOptionVisible_ja98u5$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.newSchoolListOptionVisible_ja98u5$_0=e,Ye}))}}),Lx.prototype.onCreateView=function(){var t,e;uD.prototype.onCreateView.call(this),this.linearLayout=!1,this.ustadComponentTitle=this.getString_za3lpa$(2885),null!=(t=this.fabManager)&&(t.text=this.getString_za3lpa$(2521)),this.mPresenter_0=new nu(this,this.arguments,this,this.di,this),this.addNewEntryText=this.getString_za3lpa$(2522),this.showCreateNewItem=!0,null!=(e=this.mPresenter_0)&&e.onCreate(fr())},Lx.prototype.renderListItem_js0tu9$=function(t,e){var n=Sa.Companion.invoke_f6ihu2$(Tx);Xr(n.css,Kr.relative),yP(n,void 0,"assets/entry_placeholder.jpeg",void 0,void 0,void 0,void 0,!0,TE().name+"-clazzItemClass"),t.child_30b5ua$(n.create());var i,o,r=Sa.Companion.invoke_f6ihu2$(Tx);Qr(r.css,C_(2)),O_(r,e.schoolName,"h6",void 0,void 0,void 0,void 0,void 0,void 0,zx),O_(r,null!=(i=e.schoolDesc)?Ey(i):null,"body1",void 0,void 0,void 0,void 0,void 0,void 0,(o=e,function(t){var e,n=o,i=t.css;return Zn(i,TE().displayProperty_dqye30$(null!=n.schoolDesc,!0)),i.unaryPlus_uoyjcc$(TE().alignTextToStart),!0===(null!=(e=n.schoolDesc)?e.length>0:null)&&TE().maxLines_th7wno$(i,1),Ye})),gP(r,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Ux(e,this)),t.child_30b5ua$(r.create())},Lx.prototype.onFabClicked=function(){var t;$a(this,(t=this,function(e){return t.showAddEntryOptions=!0,Ye}))},Lx.prototype.renderAddContentOptionsDialog_ss14n$=function(t){var n,i;if(this.showAddEntryOptions){n=this.newSchoolListOptionVisible?ga(new kU("add",2522,void 0,(i=this,function(){var t;return null!=(t=i.mPresenter_0)&&t.handleClickCreateNewFab(),Ye}))):ri();var o=hc(n,ga(new kU("login",2524,void 0,function(t){return function(){var e;return null!=(e=t.mPresenter_0)&&e.handleClickJoinSchool(),Ye}}(this))));HU(t,this.systemImpl,o,e.Long.fromNumber((new Date).getTime()),void 0,Dx(this))}},Lx.prototype.handleClickEntry_11rc$=function(t){var e;null!=(e=this.mPresenter_0)&&e.handleClickEntry_11rc$(t)},Lx.prototype.onDestroyView=function(){var t;uD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null},Lx.$metadata$={kind:Vn,simpleName:"SchoolListComponent",interfaces:[mi,uD]},Object.defineProperty(Px.prototype,"addPersonKeyName_0",{configurable:!0,get:function(){return null==this.addPersonKeyName_3qoa2o$_0?ll("addPersonKeyName"):this.addPersonKeyName_3qoa2o$_0},set:function(t){this.addPersonKeyName_3qoa2o$_0=t}}),Object.defineProperty(Px.prototype,"displayTypeRepo",{configurable:!0,get:function(){var t;return null!=(t=this.dbRepo)?t.schoolMemberDao:null}}),Object.defineProperty(Px.prototype,"listPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Px.prototype.addMember=function(){var t,e=Je(this.addPersonKeyName_0,"Person_"+1004..toString())?or(ni(fi.Companion.ARG_FILTER_EXCLUDE_MEMBERSOFSCHOOL,this.filterBySchoolUid_0.toString())):Ia([ni(fi.Companion.ARG_FILTER_EXCLUDE_MEMBERSOFSCHOOL,this.filterBySchoolUid_0.toString()),ni(xa.Companion.ARG_CODE_TABLE,164..toString())]);null!=(t=this.mPresenter_0)&&t.handleClickAddNewItem_a4m1mt$(e,this.addPersonKeyName_0)},Object.defineProperty(Px.prototype,"pendingStudentList",{configurable:!0,get:function(){return this.pendingStudentList_v3o3ea$_0},set:function(t){this.pendingStudentList_v3o3ea$_0=t;var e=null!=t?t.getData_vux9f0$(0,2147483647):null;null!=e&&e.removeObserver_fujmse$(this.observer_0),null!=e&&e.observe_bi6zy5$(this,this.observer_0)}}),Px.prototype.onCreateView=function(){var t,e,n,i,o,r,s,a,c,l;uD.prototype.onCreateView.call(this);var u,h,d=null!=(e=null!=(t=this.arguments.get_11rb$(xa.Companion.ARG_FILTER_BY_ROLE))?vr(t):null)?e:0;this.addPersonKeyName_0="Person_"+d,this.filterBySchoolUid_0=null!=(i=null!=(n=this.arguments.get_11rb$(xa.Companion.ARG_FILTER_BY_SCHOOLUID))?oc(n):null)?i:ra,this.roleStudent=1004!==d,this.showEmptyState=!0,o=1004===d?2396:2564,this.addNewStringId_0=o,this.addNewEntryText=this.getString_za3lpa$(2559)+" "+this.addNewStringId_0,null!=(r=this.fabManager)&&(r.visible=!0),null!=(s=this.fabManager)&&(s.icon="add"),null!=(a=this.fabManager)&&(a.text=this.getString_za3lpa$(this.addNewStringId_0)),null!=(c=this.savedStateHandle)&&ru(c,this,iu.Companion.serializer(),this.addPersonKeyName_0,(u=this,h=d,function(t){var e,n;if(null!=(e=ou(t))){var i=e;return null!=(n=u.mPresenter_0)&&n.handleEnrolMember_foc3l4$(u.filterBySchoolUid_0,i.personUid,h),Ye}})),this.mPresenter_0=new su(this,this.arguments,this,this.di,this),null!=(l=this.mPresenter_0)&&l.onCreate(fr())},Px.prototype.renderListItem_js0tu9$=function(t,e){var n,i,o,r;nM(t,null!=(i=null!=(n=e.person)?n.personUid:null)?i:ra,null!=(r=null!=(o=e.person)?o.fullName():null)?r:"",void 0,void 0,void 0,this.roleStudent)},Px.prototype.handleClickEntry_11rc$=function(t){var e;null!=(e=this.mPresenter_0)&&e.handleClickEntry_11rc$(t)},Px.prototype.handleClickCreateNewEntry=function(){var t;null!=(t=this.mPresenter_0)&&t.handleClickAddNewItem_a4m1mt$(this.arguments,this.addPersonKeyName_0)},Px.prototype.renderListFooterView_ss14n$=function(t){this.roleStudent&&(this.pendingStudents_0.isEmpty()||TP(t,this.getString_za3lpa$(2648)),t.child_up9nw1$(We(kx),Mx(this)))},Px.prototype.onDestroyView=function(){var t;uD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null},kx.prototype.renderListItem_f4dmsf$=function(t,n,i){var o,r,s,a,c,l,u,h=e.isType(o=this.props.presenter,su)?o:An();nM(t,null!=(s=null!=(r=n.person)?r.personUid:null)?s:ra,null!=(c=null!=(a=n.person)?a.fullName():null)?c:"",!0,void 0,void 0,void 0,(l=h,u=n,function(){return l.handleClickPendingRequest_k3brcd$(u,!1),Ye}),function(t,e){return function(){return t.handleClickPendingRequest_k3brcd$(e,!0),Ye}}(h,n))},kx.$metadata$={kind:Vn,simpleName:"MembersListComponent",interfaces:[AD]},Px.$metadata$={kind:Vn,simpleName:"SchoolMemberListComponent",interfaces:[Qi,uD]},jx.prototype.renderListItem_f4dmsf$=function(t,e,n){var i,o,r,s,a,c,l,u=!1===(null!=(o=null!=(i=e.scopedGrant)?i.sgFlags:null)?Sl(o,1):null),h=qx(t,this.systemImpl,6,null!=(s=null!=(r=e.scopedGrant)?r.sgPermissions:null)?s:ra);u?VP(t,"admin_panel_settings","delete",e.name,h,void 0,(a=this,c=e,l=n,function(t,e){var n;return t?null!=(n=a.props.listener)&&n.onClickDelete_11rb$(c):l(e),Ye})):gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Gx(n,e,h))},jx.$metadata$={kind:Vn,simpleName:"ScopeGrantListComponent",interfaces:[AD]},Object.defineProperty(Wx.prototype,"mEditPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(Wx.prototype,"bitmaskList",{configurable:!0,get:function(){return this.bitmaskList_1ctben$_0},set:function(t){var e,n;null!=(e=this.bitmaskList_1ctben$_0)&&e.removeObserver_fujmse$(this.scopedGrantListObserver_0),this.bitmaskList_1ctben$_0=t,null!=(n=this.bitmaskList_1ctben$_0)&&n.observe_bi6zy5$(this,this.scopedGrantListObserver_0)}}),Object.defineProperty(Wx.prototype,"fieldsEnabled",{configurable:!0,get:function(){return this.fieldsEnabled_v0iuwg$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.fieldsEnabled_v0iuwg$_0=e,Ye}))}}),Object.defineProperty(Wx.prototype,"entity",{configurable:!0,get:function(){return this.entity_2vi1cp$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.entity_2vi1cp$_0=e,Ye}))}}),Wx.prototype.onCreateView=function(){var t;oD.prototype.onCreateView.call(this),this.ustadComponentTitle=this.getString_za3lpa$(2293),this.mPresenter_0=new au(this,this.arguments,this,this,this.di),null!=(t=this.mPresenter_0)&&t.onCreate(my(this.navController))},Wx.prototype.render_ss14n$=function(t){var e,n=Sa.Companion.invoke_f6ihu2$(Bx),i=n.css;i.unaryPlus_uoyjcc$(TE().contentContainer),i.unaryPlus_uoyjcc$(TE().defaultPaddingTop),gP(n,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,(e=this,function(t){var n;if(null!=(n=e.scopeList_0)){var i=e;t.child_up9nw1$(We(Kx),Vx(n,i))}return Ye})),t.child_30b5ua$(n.create())},Wx.prototype.onDestroyView=function(){var t;oD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null},Kx.prototype.renderListItem_f4dmsf$=function(t,e,n){var i,o;mj(t,this.getString_za3lpa$("number"==typeof(i=e.messageId)?i:An()),"boolean"==typeof(o=e.enabled)?o:An(),n)},Kx.$metadata$={kind:Vn,simpleName:"ScopedGrantComponent",interfaces:[AD]},Wx.$metadata$={kind:Vn,simpleName:"ScopedGrantEditComponent",interfaces:[ao,oD]},Object.defineProperty(Yx.prototype,"acceptedMimeTypes",{configurable:!0,get:function(){return this.acceptedMimeTypes_iu6tfp$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.acceptedMimeTypes_iu6tfp$_0=e,Ye}))}}),Object.defineProperty(Yx.prototype,"noFileSelectedError",{configurable:!0,get:function(){return this.noFileSelectedError_vksglp$_0},set:function(t){}}),Object.defineProperty(Yx.prototype,"unSupportedFileError",{configurable:!0,get:function(){return this.unSupportedFileError_tnxn3a$_0},set:function(t){}}),Object.defineProperty(Yx.prototype,"fieldsEnabled",{configurable:!0,get:function(){return this.fieldsEnabled_6tcdad$_0},set:function(t){}}),Object.defineProperty(Yx.prototype,"entity",{configurable:!0,get:function(){return this.entity_8y025u$_0},set:function(t){}}),Object.defineProperty(Yx.prototype,"selectedFiles_0",{configurable:!0,get:function(){return this.selectedFiles_aqldd3$_0},set:function(t){this.selectedFiles_aqldd3$_0=t,this.noFileSelectedError=null}}),Zx.prototype.onValidFileAttached_6d2hh8$=function(t){var e,n;$a(this.this$SelectExtractFileComponent,(e=t,n=this.this$SelectExtractFileComponent,function(t){return n.selectedFiles_0=ga(e),n.dropZoneText_0=fy(n.getString_za3lpa$(2835),[e.name,gr.UMFileUtil.formatFileSize_s8cxhz$(oc(e.size.toString()))]),Ye}))},Zx.prototype.onInvalidFileAttached=function(){var t;$a(this.this$SelectExtractFileComponent,(t=this.this$SelectExtractFileComponent,function(e){return t.dropZoneText_0=t.getString_za3lpa$(2836),t.unSupportedFileError=t.getString_za3lpa$(2272),Ye}))},Zx.$metadata$={kind:Vn,interfaces:[zm]},Yx.prototype.onCreateView=function(){var t,e,n,i,o,r;VU.prototype.onCreateView.call(this),this.mPresenter_0=new cu(this,this.arguments,this,this.di),null!=(t=this.fabManager)&&(t.icon="upload"),null!=(e=this.fabManager)&&(e.text=this.getString_za3lpa$(2834)),null!=(n=this.fabManager)&&(n.visible=!0),null!=(i=this.fabManager)&&(i.onClickListener=Qx(this)),null!=(o=this.mPresenter_0)&&o.onCreate(fr()),this.fileDropZoneManager_0=new wm(void 0,ga("*/*")),null!=(r=this.fileDropZoneManager_0)&&(r.onFileAttached=new Zx(this))},Yx.prototype.render_ss14n$=function(t){t.invoke_c0v1gl$(De.Consumer,eI(this))},Yx.prototype.onDestroyView=function(){VU.prototype.onDestroyView.call(this),this.entity=null},Yx.$metadata$={kind:Vn,simpleName:"SelectExtractFileComponent",interfaces:[Fo,VU]},Object.defineProperty(oI.prototype,"mPresenter_0",{configurable:!0,get:function(){return null==this.mPresenter_y328lp$_0?ll("mPresenter"):this.mPresenter_y328lp$_0},set:function(t){this.mPresenter_y328lp$_0=t}}),Object.defineProperty(oI.prototype,"selectedFiles_0",{configurable:!0,get:function(){return this.selectedFiles_ym9n80$_0},set:function(t){this.selectedFiles_ym9n80$_0=t,this.noFileSelectedError=null}}),rI.prototype.onValidFileAttached_6d2hh8$=function(t){var e,n;$a(this.this$SelectFileComponent,(e=t,n=this.this$SelectFileComponent,function(t){return n.selectedFiles_0=ga(e),n.dropZoneText_0=fy(n.getString_za3lpa$(2835),[e.name,gr.UMFileUtil.formatFileSize_s8cxhz$(oc(e.size.toString()))]),Ye}))},rI.prototype.onInvalidFileAttached=function(){var t;$a(this.this$SelectFileComponent,(t=this.this$SelectFileComponent,function(e){return t.dropZoneText_0=t.getString_za3lpa$(2836),t.unSupportedFileError=t.getString_za3lpa$(2272),Ye}))},rI.$metadata$={kind:Vn,interfaces:[zm]},Object.defineProperty(oI.prototype,"acceptedMimeTypes",{configurable:!0,get:function(){return this.acceptedMimeTypes_ma29wy$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.acceptedMimeTypes_ma29wy$_0=e,Ye})),window.setTimeout(function(t,e){return function(){var n;return e.fileDropZoneManager_0=new wm(void 0,t),null!=(n=e.fileDropZoneManager_0)&&(n.onFileAttached=new rI(e)),Ye}}(t,this),200)}}),Object.defineProperty(oI.prototype,"noFileSelectedError",{configurable:!0,get:function(){return this.noFileSelectedError_i47n98$_0},set:function(t){this.noFileSelectedError_i47n98$_0=t,null!=t&&this.showSnackBar_9pu0dj$(t)}}),Object.defineProperty(oI.prototype,"unSupportedFileError",{configurable:!0,get:function(){return this.unSupportedFileError_j7sj1t$_0},set:function(t){this.unSupportedFileError_j7sj1t$_0=t,null!=t&&this.showSnackBar_9pu0dj$(t)}}),Object.defineProperty(oI.prototype,"fieldsEnabled",{configurable:!0,get:function(){return this.fieldsEnabled_iuwo3o$_0},set:function(t){this.fieldsEnabled_iuwo3o$_0=t}}),Object.defineProperty(oI.prototype,"entity",{configurable:!0,get:function(){return this.selectedFiles_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.entity_ejgu8r$_0=e,Ye}))}}),oI.prototype.onCreateView=function(){var t,e,n,i,o;VU.prototype.onCreateView.call(this),this.mPresenter_0=new _u(this,this.arguments,this,this.di),null!=(t=this.fabManager)&&(t.icon="upload"),null!=(e=this.fabManager)&&(e.text=this.getString_za3lpa$(2834)),null!=(n=this.fabManager)&&(n.visible=!0),null!=(i=this.fabManager)&&(i.onClickListener=(o=this,function(){var t,e;return o.mPresenter_0.handleUriSelected_pdl1vj$(null!=(e=null!=(t=ou(o.selectedFiles_0))?mu(t):null)?e.toString():null),Ye})),this.mPresenter_0.onCreate(fr())},oI.prototype.render_ss14n$=function(t){this.acceptedMimeTypes.isEmpty()||t.invoke_c0v1gl$(De.Consumer,aI(this))},oI.prototype.onDestroyView=function(){var t;VU.prototype.onDestroyView.call(this),this.noFileSelectedError=null,this.unSupportedFileError=null,null!=(t=this.fileDropZoneManager_0)&&t.onDestroy(),this.fileDropZoneManager_0=null,this.entity=null},oI.$metadata$={kind:Vn,simpleName:"SelectFileComponent",interfaces:[Lo,VU]},Object.defineProperty(lI.prototype,"listPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(lI.prototype,"displayTypeRepo",{configurable:!0,get:function(){var t;return null!=(t=this.dbRepo)?t.userSessionDao:null}}),lI.prototype.renderListItem_js0tu9$=function(t,e){gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,mI(e,this))},lI.prototype.handleClickEntry_11rc$=function(t){var e;null!=(e=this.mPresenter_0)&&e.onClickPersonWithSessionDisplay_lvxw6c$(t)},Object.defineProperty(lI.prototype,"personWithContentTitle",{configurable:!0,get:function(){return this.personWithContentTitle_atdeqs$_0},set:function(t){this.personWithContentTitle_atdeqs$_0=t,this.ustadComponentTitle=t}}),lI.prototype.onCreateView=function(){var t,e;uD.prototype.onCreateView.call(this),null!=(t=this.fabManager)&&(t.visible=!1),this.mPresenter_0=new fu(this,this.arguments,this,this.di,this),null!=(e=this.mPresenter_0)&&e.onCreate(fr())},lI.prototype.onFabClicked=function(){},lI.prototype.renderAddContentOptionsDialog_ss14n$=function(t){},lI.prototype.onDestroyView=function(){var t;uD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null},lI.$metadata$={kind:Vn,simpleName:"SessionListComponent",interfaces:[Co,uD]},Object.defineProperty(gI.prototype,"displayLanguage",{configurable:!0,get:function(){return this.displayLanguage_7lapct$_0},set:function(t){this.displayLanguage_7lapct$_0=t}}),Object.defineProperty(gI.prototype,"workspaceSettingsVisible",{configurable:!0,get:function(){return this.workspaceSettingsVisible_r584xv$_0},set:function(t){this.workspaceSettingsVisible_r584xv$_0=t}}),Object.defineProperty(gI.prototype,"holidayCalendarVisible",{configurable:!0,get:function(){return this.holidayCalendarVisible_p5x93z$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.holidayCalendarVisible_p5x93z$_0=e,Ye}))}}),Object.defineProperty(gI.prototype,"reasonLeavingVisible",{configurable:!0,get:function(){return this.reasonLeavingVisible_9o6m3$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.reasonLeavingVisible_9o6m3$_0=e,Ye}))}}),Object.defineProperty(gI.prototype,"langListVisible",{configurable:!0,get:function(){return this.langListVisible_is2f01$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.langListVisible_is2f01$_0=e,Ye}))}}),gI.prototype.onCreateView=function(){var t,e;VU.prototype.onCreateView.call(this),null!=(t=this.fabManager)&&(t.visible=!1),this.ustadComponentTitle=this.getString_za3lpa$(2052),this.mPresenter=new gu(this,this.arguments,this,this.di),null!=(e=this.mPresenter)&&e.onCreate(fr())},gI.prototype.render_ss14n$=function(t){var e=Sa.Companion.invoke_f6ihu2$(fI),n=e.css;n.unaryPlus_uoyjcc$(TE().contentContainer),n.unaryPlus_uoyjcc$(TE().defaultPaddingTop),gP(e,void 0,void 0,void 0,void 0,void 0,Ep(),void 0,void 0,SI(this)),t.child_30b5ua$(e.create())},gI.prototype.onDestroyView=function(){VU.prototype.onDestroyView.call(this),this.mPresenter=null},gI.$metadata$={kind:Vn,simpleName:"SettingsComponent",interfaces:[Ei,VU]},Object.defineProperty(CI.prototype,"detailPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(CI.prototype,"siteTermsList",{configurable:!0,get:function(){return this.siteTermsList_l9w6z6$_0},set:function(t){this.siteTermsList_l9w6z6$_0=t;var e=null!=t?t.getData_vux9f0$(0,2147483647):null;null!=e&&e.removeObserver_fujmse$(this.observer_0),null!=e&&e.observe_bi6zy5$(this,this.observer_0)}}),Object.defineProperty(CI.prototype,"entity",{configurable:!0,get:function(){return this.entity_5kjmrp$_0},set:function(t){this.entity_5kjmrp$_0=t;var e=null!=t;if(e){var n,i=this.currentSiteList_0;t:do{var o;for(o=i.iterator();o.hasNext();){var r=o.next();if(Je(r.siteUid,t.siteUid)){n=r;break t}}n=null}while(0);e=null==n}e&&this.currentSiteList_0.add_11rb$(t),$a(this,NI)}}),CI.prototype.onCreateView=function(){var t;iD.prototype.onCreateView.call(this),this.ustadComponentTitle=this.getString_za3lpa$(2686),this.mPresenter_0=new $u(this,this.arguments,this,this,this.di),null!=(t=this.mPresenter_0)&&t.onCreate(my(this.navController))},CI.prototype.render_ss14n$=function(t){var e,n,i=Sa.Companion.invoke_f6ihu2$(vI),o=i.css;for(o.unaryPlus_uoyjcc$(TE().contentContainer),o.unaryPlus_uoyjcc$(TE().defaultPaddingTop),e=this.currentSiteList_0.iterator();e.hasNext();){var r=e.next();$P(i,mp(),ap(),void 0,void 0,void 0,void 0,void 0,TI(r,this))}$P(i,void 0,void 0,void 0,void 0,void 0,void 0,void 0,(n=this,function(t){return TE().defaultDoubleMarginTop(t.css),TP(t,n.getString_za3lpa$(2679)),GI(t,void 0,n.siteTermsWithLanguageList_0,!1),Ye})),t.child_30b5ua$(i.create())},CI.prototype.onDestroyView=function(){iD.prototype.onDestroyView.call(this),this.mPresenter_0=null},CI.$metadata$={kind:Vn,simpleName:"SiteDetailComponent",interfaces:[Gi,iD]},Object.defineProperty(zI.prototype,"mEditPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(zI.prototype,"siteTermsList",{configurable:!0,get:function(){return this.siteTermsList_vio21z$_0},set:function(t){null!=t&&t.removeObserver_fujmse$(this.siteTermsObserver_0),null!=t&&t.observe_bi6zy5$(this,this.siteTermsObserver_0),this.siteTermsList_vio21z$_0=t}}),Object.defineProperty(zI.prototype,"fieldsEnabled",{configurable:!0,get:function(){return this.fieldsEnabled_e25qhv$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.fieldsEnabled_e25qhv$_0=e,Ye}))}}),Object.defineProperty(zI.prototype,"entity",{configurable:!0,get:function(){return this.entity_me9euk$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.entity_me9euk$_0=e,n.ustadComponentTitle=null!=e?e.siteName:null,Ye}))}}),zI.prototype.onCreateView=function(){var t;oD.prototype.onCreateView.call(this),this.mPresenter_0=new Eu(this,this.arguments,this,this,this.di),null!=(t=this.mPresenter_0)&&t.onCreate(my(this.navController))},zI.prototype.render_ss14n$=function(t){var e,n,i,o=Sa.Companion.invoke_f6ihu2$(LI),r=o.css;r.unaryPlus_uoyjcc$(TE().contentContainer),r.unaryPlus_uoyjcc$(TE().defaultPaddingTop),$P(o,mp(),void 0,void 0,void 0,void 0,void 0,void 0,(i=this,function(t){var e,n,o,r,s,a;return e=In(i.nameLabel_0.text),n=i.nameLabel_0.errorText,r=null!=(o=i.entity)?o.siteName:null,s=i.nameLabel_0.error,a=!i.fieldsEnabled,$_(t,e,r,n,void 0,"outlined",wI(i),void 0,void 0,a,s),Ye})),eT(o,this.getString_za3lpa$(2681),!0===(null!=(e=this.entity)?e.guestLogin:null),OI(this)),eT(o,this.getString_za3lpa$(2682),!0===(null!=(n=this.entity)?n.registrationAllowed:null),RI(this)),$P(o,mp(),void 0,void 0,void 0,void 0,void 0,void 0,AI(this)),t.child_30b5ua$(o.create())},zI.prototype.onDestroyView=function(){oD.prototype.onDestroyView.call(this),this.mPresenter_0=null},zI.$metadata$={kind:Vn,simpleName:"SiteEditComponent",interfaces:[qi,oD]},Object.defineProperty(xI.prototype,"detailPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(xI.prototype,"acceptButtonVisible",{configurable:!0,get:function(){return this.acceptButtonVisible_24e9ff$_0},set:function(t){var e,n;this.acceptButtonVisible_24e9ff$_0=t,this.updateUiWithStateChangeDelay_n53o35$(1e3,(e=t,n=this,function(){var t;return null!=(t=n.fabManager)&&(t.visible=e),Ye}))}}),Object.defineProperty(xI.prototype,"entity",{configurable:!0,get:function(){return this.entity_aoe9pe$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.entity_aoe9pe$_0=e,Ye}))}}),xI.prototype.onCreateView=function(){var t,e,n,i,o;iD.prototype.onCreateView.call(this),this.ustadComponentTitle=this.getString_za3lpa$(2679),this.mPresenter_0=new yu(this,this.arguments,this,this,this.di),null!=(t=this.mPresenter_0)&&t.onCreate(my(this.navController)),null!=(e=this.fabManager)&&(e.onClickListener=(o=this,function(){var t;return null!=(t=o.mPresenter_0)&&t.handleClickAccept(),Ye})),null!=(n=this.fabManager)&&(n.text=this.getString_za3lpa$(2134)),null!=(i=this.fabManager)&&(i.icon="done")},xI.prototype.render_ss14n$=function(t){gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,II(this))},xI.prototype.onDestroyView=function(){iD.prototype.onDestroyView.call(this),this.mPresenter_0=null},xI.$metadata$={kind:Vn,simpleName:"SiteTermsDetailComponent",interfaces:[ki,iD]},Object.defineProperty(DI.prototype,"mEditPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(DI.prototype,"languageError",{configurable:!0,get:function(){return this.languageError_x3iquc$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.languageError_x3iquc$_0=e,Ye}))}}),Object.defineProperty(DI.prototype,"fieldsEnabled",{configurable:!0,get:function(){return this.fieldsEnabled_fky3a4$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.fieldsEnabled_fky3a4$_0=e,Ye}))}}),Object.defineProperty(DI.prototype,"entity",{configurable:!0,get:function(){return this.entity_ycpslh$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.entity_ycpslh$_0=e,Ye}))}}),DI.prototype.onCreateView=function(){var t;oD.prototype.onCreateView.call(this),this.ustadComponentTitle=this.getString_za3lpa$(2692),this.mPresenter_0=new bu(this,this.arguments,this,this,this.di),null!=(t=this.mPresenter_0)&&t.onCreate(my(this.navController))},DI.prototype.render_ss14n$=function(t){var e,n=Sa.Companion.invoke_f6ihu2$(UI),i=n.css;i.unaryPlus_uoyjcc$(TE().contentContainer),i.unaryPlus_uoyjcc$(TE().defaultPaddingTop),$P(n,void 0,void 0,void 0,void 0,void 0,void 0,void 0,(e=this,function(t){var n,i,o,r,s,a;return n=In(e.languageLabel_0.text),i=e.languageLabel_0.errorText,s=null!=(r=null!=(o=e.entity)?o.stLanguage:null)?r.name:null,a=e.languageLabel_0.error,$_(t,n,s,i,void 0,"outlined",void 0,void 0,void 0,!e.fieldsEnabled,a,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,PI(e)),Ye})),Fk(n),Fk(n),$P(n,void 0,void 0,void 0,void 0,void 0,void 0,void 0,MI(this)),t.child_30b5ua$(n.create())},DI.prototype.onDestroyView=function(){oD.prototype.onDestroyView.call(this),this.mPresenter_0=null},DI.$metadata$={kind:Vn,simpleName:"SiteTermsEditComponent",interfaces:[ji,oD]},kI.prototype.renderListItem_f4dmsf$=function(t,e,n){gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,jI(n,e,this))},kI.$metadata$={kind:Vn,simpleName:"SiteTermsListComponent",interfaces:[AD]},FI.prototype.render_ss14n$=function(t){t.invoke_c0v1gl$(De.Consumer,XI)},FI.$metadata$={kind:Vn,simpleName:"SplashComponent",interfaces:[Bc]},Object.defineProperty(tU.prototype,"listPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(tU.prototype,"displayTypeRepo",{configurable:!0,get:function(){var t;return null!=(t=this.dbRepo)?t.statementDao:null}}),tU.prototype.renderListItem_js0tu9$=function(t,e){gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,uU(e,this))},tU.prototype.handleClickEntry_11rc$=function(t){},Object.defineProperty(tU.prototype,"personWithContentTitle",{configurable:!0,get:function(){return this.personWithContentTitle_izx7jf$_0},set:function(t){this.personWithContentTitle_izx7jf$_0=t,this.ustadComponentTitle=t}}),tU.prototype.onCreateView=function(){var t,e;uD.prototype.onCreateView.call(this),null!=(t=this.fabManager)&&(t.visible=!1),this.mPresenter_0=new Cu(this,this.arguments,this,this.di,this),null!=(e=this.mPresenter_0)&&e.onCreate(fr())},tU.prototype.onFabClicked=function(){},tU.prototype.renderAddContentOptionsDialog_ss14n$=function(t){},tU.prototype.onDestroyView=function(){var t;uD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null},hU.$metadata$={kind:Ho,simpleName:"Companion",interfaces:[]};var dU=null;function pU(){return null===dU&&new hU,dU}function _U(t){return new ba(ya.emptyMap,t)}function mU(t,e,n,i){this.index=t,this.viewName=e,this.args=n,this.title=i}function fU(t){var e;VU.call(this,t),this.selectedTabTitle_bsdoec$_0=this.selectedTabTitle_bsdoec$_0,this.tabChangeListener_0=(e=this,function(t){return $a(e,function(t,e){return function(n){return e.updateTabIndexState_0(t.toString()),e.selectedTabTitle_0=t.toString(),Ye}}(t,e)),Ye})}function gU(t){var e=t.css;return Zn(e,Qn.block),Mr(e,new ai("100%")),Ye}function $U(t){return function(e){var n=t;return Zn(e.css,TE().displayProperty_dqye30$(n.props.showTabs)),f_(e,t.selectedTabTitle_0,void 0,"scrollable",void 0,void 0,void 0,void 0,"auto",void 0,function(t){return function(e,n){return t.tabChangeListener_0(n),Ye}}(t),void 0,void 0,function(t){return function(e){var n,i;gs(e.css,"0 20px 0 20px"),e.attrs.id="um-tabs";var o=0;for(n=t.props.tabs.iterator();n.hasNext();){var r=n.next();Js((o=(i=o)+1|0,i)),g_(e,r.title,r.title,void 0,void 0,void 0,gU)}return Ye}}(t)),Ye}}function EU(t,e,n,i){var o,r,s;void 0===n&&(n=!0),t.child_up9nw1$(We(fU),(o=e,r=n,s=i,function(t){return t.attrs.tabs=o,t.attrs.showTabs=r,t.attrs.activeTabIndex=s,Ye}))}function yU(t){return new ba(ya.emptyMap,t)}function bU(t){oD.call(this,t),this.mPresenter_0=null,this.limitType=2,this.limitTypeText_0="",this.limitTextLabel="",this.editEnabled=!0,this.charWordLimit=0,this.maxCharOnEditor=null,this.editorContent="",this.editorContentChangedTo_cj6xdz$_0=null,this.clazzAssignment_o0q8pf$_0=null,this.fieldsEnabled_mtjkhc$_0=!1,this.entity_lsoutj$_0=null}function SU(t){return function(e){var n;return null!=(n=t.entity)&&(n.casText=e),$a(t,function(t,e){return function(n){return e.editorContentChangedTo=t,Ye}}(e,t)),Ye}}function vU(t){return new ba(ya.emptyMap,t)}function CU(t){oD.call(this,t),this.mPresenter_0=null,this.titleLabel_0=new Lm(this.getString_za3lpa$(2102)),this.doNotShowBeforeLabel_0=new Lm($y(this.getString_za3lpa$(2841))),this.startTimeLabel_0=new Lm(this.getString_za3lpa$(2611)),this.blockTitleError_k34yuk$_0=null,this.startDate_72uxhd$_0=ra,this.startTime_7bsloi$_0=ra,this.timeZone_efhtp2$_0=null,this.fieldsEnabled_s0p5lj$_0=!1,this.entity_mnvfog$_0=null}function NU(t){return function(e){return $a(t,function(t,e){return function(n){var i;return null!=(i=e.entity)&&(i.cbTitle=t),e.blockTitleError=null,Ye}}(e,t)),Ye}}function TU(t){return function(n){return $a(t,function(t,n){return function(i){return n.startDate=e.Long.fromNumber(t.getTime()),Ye}}(n,t)),Ye}}function LU(t){return function(n){return $a(t,function(t,n){return function(i){return n.startDate=e.Long.fromNumber(t.getTime()),Ye}}(n,t)),Ye}}function zU(t){return function(e){return $P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r;return n=In(t.doNotShowBeforeLabel_0.text),i=t.doNotShowBeforeLabel_0.error,o=t.doNotShowBeforeLabel_0.errorText,r=dy(t.startDate,!0),Cd(e,n,TU(t),r,void 0,o,i,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"outlined"),Ye}}(t)),$P(e,mp(),lp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n,i,o,r;return n=In(t.startTimeLabel_0.text),i=t.startTimeLabel_0.error,o=t.startTimeLabel_0.errorText,r=dy(t.startDate,!0),Nd(e,n,LU(t),r,void 0,o,i,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"outlined"),Ye}}(t)),Ye}}function wU(t){return function(e){var n;return Fk(e),qw(e,null!=(n=t.entity)?n.cbDescription:null,void 0,void 0,t.getString_za3lpa$(2952),void 0,function(t){return function(e){var n;return null!=(n=t.entity)&&(n.cbDescription=e),Ye}}(t)),Ye}}function OU(t){VU.call(this,t),this.mPresenter_0=null,this.timeZoneList_0=GE().getTimeZones()}function RU(t,e){return function(n){return e.timeZoneList_0=t,Ye}}function AU(t,e,n,i,o){ta.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$filteredItems=t,this.local$this$TimeZoneListComponent=e}function xU(t,e){return function(n,i,o){var r=new AU(t,e,n,this,i);return o?r:r.doResume(null)}}function IU(t,e,n,i,o){ta.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$text=t,this.local$this$TimeZoneListComponent=e}function UU(t){AD.call(this,t)}function DU(t,e){return function(n){return n.attrs.onClick=function(t){return function(e){return t(e.nativeEvent),Ye}}(t),jP(n,"query_builder",e.name,e.timeName,!0),Ye}}function PU(t,e,n){var i,o;void 0===n&&(n=null),t.child_up9nw1$(We(UU),(i=e,o=n,function(t){return t.attrs.entries=i,t.attrs.onEntryClicked=o,t.attrs.mainList=!0,Ye}))}function MU(t){return new ba(ya.emptyMap,t)}function kU(t,e,n,i){void 0===n&&(n=0),void 0===i&&(i=null),this.icon=t,this.primaryText=e,this.secondaryText=n,this.onOptionItemClicked=i}function jU(t){Fc(t,this),this.showDialog_0=!0,this.lastShownAt_0=ra}function GU(t){return function(e){var n;return null!=(n=t.onOptionItemClicked)&&n(),Ye}}function qU(t){return function(e){return ed(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return Rp(e,In(t.icon)),Ye}}(t)),Ye}}function FU(t,e){return function(n){return null!=t.icon&&Fp(n,void 0,qU(t)),Wp(n,e.props.systemImpl.getString(t.primaryText,n),0!==t.secondaryText?e.props.systemImpl.getString(t.secondaryText,n):""),Ye}}function BU(t){return function(e){Mr(e.css,new ai("100%"));var n=Sa.Companion.invoke_f6ihu2$(MU),i=t;return Mr(n.css,new ai("100%")),Pp(n,void 0,void 0,void 0,void 0,function(t){return function(e){var n;for(n=t.props.optionItems.iterator();n.hasNext();){var i=n.next();qp(e,!0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,GU(i),void 0,FU(i,t))}return Ye}}(i)),e.child_30b5ua$(n.create()),Ye}}function WU(t){return function(e){return cd(e,t.props.systemImpl.getString(2018,e),"secondary",void 0,void 0,function(t){return function(e){return t.handleDialogClosed_0(),Ye}}(t)),Ye}}function HU(t,n,i,o,r,s){var a,c,l,u,h;void 0===o&&(o=e.Long.fromNumber((new Date).getTime())),void 0===r&&(r=null),t.child_up9nw1$(We(jU),(a=i,c=n,l=o,u=s,h=r,function(t){return t.attrs.optionItems=a,t.attrs.systemImpl=c,t.attrs.shownAt=l,t.attrs.onDialogClosed=u,t.attrs.title=h,Ye}))}function VU(t){var n,i,o,r;eD(),Fc(t,this),this.systemImpl_yo8ttl$_0=Hs(this,e.isType(n=On(He(We(Be),[],!1)),Rn)?n:An(),null).provideDelegate_tpuvb9$(this,KU),this.accountManager_iwdz94$_0=Hs(this,e.isType(i=On(He(We(Qe),[],!1)),Rn)?i:An(),null).provideDelegate_tpuvb9$(this,XU),this.database=null,this.navController_fb61eb$_0=Hs(this,e.isType(o=On(He(We(Ke),[],!1)),Rn)?o:An(),null).provideDelegate_tpuvb9$(this,JU),this.showAddEntryOptions=!1,this.progressBarManager_2e294x$_97sjba$_0=this.progressBarManager_2e294x$_97sjba$_0,this.searchManager=null,this.fabManager=null,this.arguments_ctovsa$_0=this.arguments_ctovsa$_0,this.lifecycleStatus_povz2o$_0=Du(0),this.compLifecycle_kboult$_0=new YU(this),this.hashChangeListener_qkui3a$_0=(r=this,function(t){e.isType(t,HashChangeEvent)||An();var n=X_().lookupViewNamesByComponent_xo1ogr$(e.getKClassFromExpression(r));if(null!=n)try{var i=pl.Companion.parse_puj7f4$(t.newURL);-1!==n.indexOf_11rb$(i.viewName)&&-1!==n.indexOf_11rb$(pl.Companion.parse_puj7f4$(t.oldURL).viewName)&&(Xa.Napier.d_82mfvz$("UstadBaseComponent: hashChange: trigger onCreateView (oldUrl="+t.oldURL+" newUrl="+t.newURL+")"),r.arguments=i.arguments,r.onCreateView())}catch(t){if(!e.isType(t,Pu))throw t;Xa.Napier.d_82mfvz$("old or new url on hash change was not an ustad url:",t)}return Ye}),this.ustadComponentTitle_2brako$_0=null,this.loading_clec9c$_0=!1,this.di_rly6g3$_0=Fe.Companion.lazy_ys71a$(void 0,nD)}tU.$metadata$={kind:Vn,simpleName:"StatementListComponent",interfaces:[zo,uD]},mU.$metadata$={kind:Vn,simpleName:"UmTab",interfaces:[]},mU.prototype.component1=function(){return this.index},mU.prototype.component2=function(){return this.viewName},mU.prototype.component3=function(){return this.args},mU.prototype.component4=function(){return this.title},mU.prototype.copy_wlk0lb$=function(t,e,n,i){return new mU(void 0===t?this.index:t,void 0===e?this.viewName:e,void 0===n?this.args:n,void 0===i?this.title:i)},mU.prototype.toString=function(){return"UmTab(index="+e.toString(this.index)+", viewName="+e.toString(this.viewName)+", args="+e.toString(this.args)+", title="+e.toString(this.title)+")"},mU.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*(t=31*t+e.hashCode(this.index)|0)+e.hashCode(this.viewName)|0)+e.hashCode(this.args)|0)+e.hashCode(this.title)|0},mU.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.index,t.index)&&e.equals(this.viewName,t.viewName)&&e.equals(this.args,t.args)&&e.equals(this.title,t.title)},Object.defineProperty(fU.prototype,"selectedTabTitle_0",{configurable:!0,get:function(){return null==this.selectedTabTitle_bsdoec$_0?ll("selectedTabTitle"):this.selectedTabTitle_bsdoec$_0},set:function(t){this.selectedTabTitle_bsdoec$_0=t}}),fU.prototype.updateTabIndexState_0=function(t){var e,n,i=this.props.tabs;t:do{var o,r=0;for(o=i.iterator();o.hasNext();){var s=o.next();if(Je(s.title,t)){n=r;break t}r=r+1|0}n=-1}while(0);var a=n,c=null!=(e=window.history.state)?e:{};c.tabIndex=a,window.history.replaceState(c,"")},fU.prototype.init_xibzyo$=function(t,e){this.selectedTabTitle_0=e.tabs.get_za3lpa$(e.activeTabIndex).title},fU.prototype.onCreateView=function(){var t,e;VU.prototype.onCreateView.call(this);var n,i,o=null!=(e=null!=(t=window.history.state)?t:null)?e.tabIndex:null;null!=o&&0!=o&&$a(this,(n=o,i=this,function(t){var e=n;return i.selectedTabTitle_0=i.props.tabs.get_za3lpa$(e).title,Ye}))},fU.prototype.render_ss14n$=function(t){var e;td(t,void 0,"static",void 0,void 0,$U(this));var n,i=this.props.tabs;t:do{var o;for(o=i.iterator();o.hasNext();){var r=o.next();if(Je(r.title,this.selectedTabTitle_0)){n=r;break t}}throw new Vo("Collection contains no element matching the predicate.")}while(0);var s,a=n,c=null!=(e=X_().lookupDestinationName_pdl1vj$(a.viewName))?e.component:null,l=Sa.Companion.invoke_f6ihu2$(_U);TE().tabsContainer(l.css),null!=c&&l.child_up9nw1$(c,(s=a,function(t){return t.attrs.arguments=s.args,Ye})),t.child_30b5ua$(l.create())},fU.$metadata$={kind:Vn,simpleName:"TabsComponent",interfaces:[VU]},Object.defineProperty(bU.prototype,"mEditPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(bU.prototype,"editorContentChangedTo",{configurable:!0,get:function(){return this.editorContentChangedTo_cj6xdz$_0},set:function(t){this.editorContentChangedTo_cj6xdz$_0=t,this.updateWordsFilter_0()}}),Object.defineProperty(bU.prototype,"clazzAssignment",{configurable:!0,get:function(){return this.clazzAssignment_o0q8pf$_0},set:function(t){var e,n,i,o;$a(this,(i=t,o=this,function(t){return o.clazzAssignment_o0q8pf$_0=i,Ye})),this.charWordLimit=null!=(e=null!=t?t.caTextLimit:null)?e:0,this.limitType=null!=(n=null!=t?t.caTextLimitType:null)?n:2,this.limitTypeText_0=2===this.limitType?this.getString_za3lpa$(2865):this.getString_za3lpa$(2864),this.updateWordsFilter_0()}}),Object.defineProperty(bU.prototype,"fieldsEnabled",{configurable:!0,get:function(){return this.fieldsEnabled_mtjkhc$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.fieldsEnabled_mtjkhc$_0=e,Ye}))}}),Object.defineProperty(bU.prototype,"entity",{configurable:!0,get:function(){return this.entity_lsoutj$_0},set:function(t){var e;this.editorContentChangedTo=null!=t?t.casText:null,this.editorContent=null!=(e=this.editorContentChangedTo)?e:"",this.entity_lsoutj$_0=t}}),bU.prototype.updateWordsFilter_0=function(){var t;$a(this,(t=this,function(e){var n,i;t.editEnabled=pr(In(t.arguments.get_11rb$(No.Companion.EDIT_ENABLED)));var o=null!=(n=t.editorContentChangedTo)?n:"";t.ustadComponentTitle=null!=(i=t.clazzAssignment)?i.caTitle:null;var r=1===t.limitType?Nu(o):o.length;return 1==(r/t.charWordLimit|0)&&(t.maxCharOnEditor=o.length),t.limitTextLabel=r.toString()+"/"+t.charWordLimit+" "+t.limitTypeText_0,Ye}))},bU.prototype.onCreateView=function(){var t,e;oD.prototype.onCreateView.call(this),this.mPresenter_0=new Tu(this,this.arguments,this,this,this.di),null!=(t=this.mPresenter_0)&&t.onCreate(my(this.navController)),this.updateUiWithStateChangeDelay_n53o35$(void 0,(e=this,function(){var t;return null!=(t=e.fabManager)&&(t.visible=pr(In(e.arguments.get_11rb$(No.Companion.EDIT_ENABLED)))),Ye}))},bU.prototype.render_ss14n$=function(t){var e,n=Sa.Companion.invoke_f6ihu2$(yU);n.css.unaryPlus_uoyjcc$(TE().fieldsOnlyFormScreen),$P(n,void 0,void 0,void 0,void 0,void 0,void 0,void 0,(e=this,function(t){var n,i,o,r;return n=e.editorContent,i=!e.editEnabled,o=e.getString_za3lpa$(2952),r=e.maxCharOnEditor,qw(t,n,i,void 0,o,void 0,SU(e),void 0,r),Ye})),Fk(n,void 0,void 0,C_(6)),$P(n,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t.limitTextLabel,"body1"),Ye}}(this)),t.child_30b5ua$(n.create())},bU.prototype.onDestroyView=function(){var t;oD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null},bU.$metadata$={kind:Vn,simpleName:"TextAssignmentEditComponent",interfaces:[No,oD]},Object.defineProperty(CU.prototype,"mEditPresenter",{configurable:!0,get:function(){return this.mPresenter_0}}),Object.defineProperty(CU.prototype,"blockTitleError",{configurable:!0,get:function(){return this.blockTitleError_k34yuk$_0},set:function(t){var e;this.blockTitleError_k34yuk$_0=t,$a(this,(e=this,function(t){return e.titleLabel_0=e.titleLabel_0.copy_d8n4vg$(void 0,e.blockTitleError_k34yuk$_0),Ye}))}}),Object.defineProperty(CU.prototype,"startDate",{configurable:!0,get:function(){return this.startDate_72uxhd$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.startDate_72uxhd$_0=e,Ye}))}}),Object.defineProperty(CU.prototype,"startTime",{configurable:!0,get:function(){return this.startTime_7bsloi$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.startTime_7bsloi$_0=e,Ye}))}}),Object.defineProperty(CU.prototype,"timeZone",{configurable:!0,get:function(){return this.timeZone_efhtp2$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.timeZone_efhtp2$_0=e,Ye}))}}),Object.defineProperty(CU.prototype,"fieldsEnabled",{configurable:!0,get:function(){return this.fieldsEnabled_s0p5lj$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.fieldsEnabled_s0p5lj$_0=e,Ye}))}}),Object.defineProperty(CU.prototype,"entity",{configurable:!0,get:function(){return this.entity_mnvfog$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.entity_mnvfog$_0=e,Ye}))}}),CU.prototype.onCreateView=function(){var t;oD.prototype.onCreateView.call(this),this.mPresenter_0=new Lu(this,this.arguments,this,this.di,this),this.setEditTitle_vux9f0$(2870,2922),null!=(t=this.mPresenter_0)&&t.onCreate(my(this.navController))},CU.prototype.render_ss14n$=function(t){var e,n=Sa.Companion.invoke_f6ihu2$(vU);n.css.unaryPlus_uoyjcc$(TE().fieldsOnlyFormScreen),$P(n,mp(),void 0,void 0,void 0,void 0,void 0,void 0,(e=this,function(t){var n,i,o,r,s,a;return n=In(e.titleLabel_0.text),i=e.titleLabel_0.errorText,r=null!=(o=e.entity)?o.cbTitle:null,s=e.titleLabel_0.error,a=!e.fieldsEnabled,$_(t,n,r,i,void 0,"outlined",NU(e),void 0,void 0,a,s),Ye})),gP(n,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,zU(this)),$P(n,void 0,void 0,void 0,void 0,void 0,void 0,void 0,wU(this)),t.child_30b5ua$(n.create())},CU.prototype.onDestroyView=function(){var t;oD.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entity=null,this.blockTitleError=null},CU.$metadata$={kind:Vn,simpleName:"TextCourseBlockEditComponent",interfaces:[to,oD]},OU.prototype.onCreateView=function(){var t,e;VU.prototype.onCreateView.call(this),this.ustadComponentTitle=this.getString_za3lpa$(2517),this.mPresenter_0=new zu(this,this.arguments,this,this.di),null!=(t=this.searchManager)&&(t.searchListener=this),null!=(e=this.mPresenter_0)&&e.onCreate(fr())},OU.prototype.render_ss14n$=function(t){var e;PU(t,this.timeZoneList_0,(e=this,function(t){var n;return null!=(n=e.mPresenter_0)&&n.handleClickTimeZone_61zpoe$(t.id),Ye}))},AU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[ta]},AU.prototype=Object.create(ta.prototype),AU.prototype.constructor=AU,AU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:return $a(this.local$this$TimeZoneListComponent,RU(this.local$closure$filteredItems,this.local$this$TimeZoneListComponent)),Ye;case 1:throw this.exception_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},IU.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[ta]},IU.prototype=Object.create(ta.prototype),IU.prototype.constructor=IU,IU.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n=this.local$closure$text,i=br("\\s+").split_905azu$(n,0),o=GE().getTimeZones(),r=Yo();for(t=o.iterator();t.hasNext();){var s,a=t.next();t:do{var c;if(e.isType(i,Ru)&&i.isEmpty()){s=!1;break t}for(c=i.iterator();c.hasNext();){var l=c.next();if(oi(a.id,l,!0)){s=!0;break t}}s=!1}while(0);var u=s;if(!u){var h;t:do{var d;if(e.isType(i,Ru)&&i.isEmpty()){h=!1;break t}for(d=i.iterator();d.hasNext();){var p=d.next();if(oi(a.timeName,p,!0)){h=!0;break t}}h=!1}while(0);u=h}u&&r.add_11rb$(a)}var _=r;if(this.state_0=2,this.result_0=wu(on.Dispatchers.Main,xU(_,this.local$this$TimeZoneListComponent),this),this.result_0===Zs)return Zs;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},OU.prototype.onSearchSubmitted_pdl1vj$=function(t){var e,n;null!=t&&Bl(on.GlobalScope,void 0,void 0,(e=t,n=this,function(t,i,o){var r=new IU(e,n,t,this,i);return o?r:r.doResume(null)}))},OU.prototype.onDestroyView=function(){var t;VU.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null},OU.$metadata$={kind:Vn,simpleName:"TimeZoneListComponent",interfaces:[Ou,Ai,VU]},UU.prototype.renderListItem_f4dmsf$=function(t,e,n){gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,DU(n,e))},UU.$metadata$={kind:Vn,simpleName:"ZonesListComponent",interfaces:[AD]},kU.$metadata$={kind:Vn,simpleName:"UmDialogOptionItem",interfaces:[]},kU.prototype.component1=function(){return this.icon},kU.prototype.component2=function(){return this.primaryText},kU.prototype.component3=function(){return this.secondaryText},kU.prototype.component4=function(){return this.onOptionItemClicked},kU.prototype.copy_eb06wj$=function(t,e,n,i){return new kU(void 0===t?this.icon:t,void 0===e?this.primaryText:e,void 0===n?this.secondaryText:n,void 0===i?this.onOptionItemClicked:i)},kU.prototype.toString=function(){return"UmDialogOptionItem(icon="+e.toString(this.icon)+", primaryText="+e.toString(this.primaryText)+", secondaryText="+e.toString(this.secondaryText)+", onOptionItemClicked="+e.toString(this.onOptionItemClicked)+")"},kU.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*(t=31*t+e.hashCode(this.icon)|0)+e.hashCode(this.primaryText)|0)+e.hashCode(this.secondaryText)|0)+e.hashCode(this.onOptionItemClicked)|0},kU.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.icon,t.icon)&&e.equals(this.primaryText,t.primaryText)&&e.equals(this.secondaryText,t.secondaryText)&&e.equals(this.onOptionItemClicked,t.onOptionItemClicked)},jU.prototype.render_ss14n$=function(t){var e;Ld(t,this.showDialog_0,(e=this,function(){return e.handleDialogClosed_0(),Ye}),!0,k_(),void 0,function(t){return function(e){return null!=t.props.title&&zd(e,In(t.props.title)),Od(e,void 0,BU(t)),wd(e,void 0,WU(t)),Ye}}(this))},jU.prototype.handleDialogClosed_0=function(){var t;this.props.onDialogClosed(),$a(this,(t=this,function(e){return t.showDialog_0=!1,t.lastShownAt_0=t.props.shownAt,Ye}))},jU.prototype.componentDidUpdate=function(t,e,n){},jU.prototype.componentWillUpdate=function(t,e){this.showDialog_0=!Je(t.shownAt,this.props.shownAt)},jU.$metadata$={kind:Vn,simpleName:"UmBottomSheetOptionsComponent",interfaces:[Bc]};var KU=new Cr("systemImpl");Object.defineProperty(VU.prototype,"systemImpl",{configurable:!0,get:function(){return this.systemImpl_yo8ttl$_0.value}});var XU=new Cr("accountManager");Object.defineProperty(VU.prototype,"accountManager",{configurable:!0,get:function(){return this.accountManager_iwdz94$_0.value}});var JU=new Cr("navController");function YU(t){this.$outer=t,Au.call(this),this.lifecycleObservers=xu([]),this.lifecyleStatus=Iu.DESTROYED}Object.defineProperty(VU.prototype,"navController",{configurable:!0,get:function(){return this.navController_fb61eb$_0.value}}),Object.defineProperty(VU.prototype,"progressBarManager_2e294x$_0",{configurable:!0,get:function(){return null==this.progressBarManager_2e294x$_97sjba$_0?ll("progressBarManager"):this.progressBarManager_2e294x$_97sjba$_0},set:function(t){this.progressBarManager_2e294x$_97sjba$_0=t}}),Object.defineProperty(VU.prototype,"arguments",{configurable:!0,get:function(){return null==this.arguments_ctovsa$_0?ll("arguments"):this.arguments_ctovsa$_0},set:function(t){this.arguments_ctovsa$_0=t}}),Object.defineProperty(YU.prototype,"realCurrentDoorState",{configurable:!0,get:function(){return this.lifecyleStatus}}),YU.prototype.addObserver_3lbrus$=function(t){this.lifecycleObservers.add_11rb$(t)},YU.prototype.removeObserver_3lbrus$=function(t){this.lifecycleObservers.remove_11rb$(t)},YU.$metadata$={kind:Vn,simpleName:"UstadComponentLifecycle",interfaces:[Au]},VU.prototype.getLifecycle=function(){return this.compLifecycle_kboult$_0},Object.defineProperty(VU.prototype,"savedStateHandle",{configurable:!0,get:function(){var t;return null!=(t=this.navController.currentBackStackEntry)?t.savedStateHandle:null}}),Object.defineProperty(VU.prototype,"ustadComponentTitle",{configurable:!0,get:function(){return this.ustadComponentTitle_2brako$_0},set:function(t){var e;this.ustadComponentTitle_2brako$_0=t,window.setTimeout((e=this,function(){return tm().dispatch_quwr82$(new lm(e.ustadComponentTitle)),Ye}),200)}}),Object.defineProperty(VU.prototype,"loading",{configurable:!0,get:function(){return this.loading_clec9c$_0},set:function(t){this.loading_clec9c$_0=t,this.progressBarManager_2e294x$_0.progressBarVisibility=t}}),VU.prototype.onCreateView=function(){var t;this.compLifecycle_kboult$_0.lifecyleStatus=Iu.STARTED;var n,i,o,r=this.compLifecycle_kboult$_0.lifecycleObservers,s=Yo();for(n=r.iterator();n.hasNext();){var a,c,l=n.next();null!=(a=e.isType(c=l,Uu)?c:null)&&s.add_11rb$(a)}for(i=s.iterator();i.hasNext();)i.next().onStart_6298mr$(this);null!=(t=this.fabManager)&&(t.onClickListener=(o=this,function(){return o.onFabClicked(),Ye}));var u,h,d,p=this.di,_=this.accountManager.activeAccount;u=p.diTrigger,this.database=Gl(ku(p,ju.Companion.invoke_np530x$(e.isType(h=On(He(We(Cn),[],!1)),Rn)?h:An(),_),u)).directDI.Instance_ohrpre$(e.isType(d=On(He(We(rn),[],!1)),Rn)?d:An(),1)},VU.prototype.onDestroyView=function(){},VU.prototype.componentWillMount=function(){window.addEventListener("hashchange",this.hashChangeListener_qkui3a$_0)},VU.prototype.componentDidMount=function(){var t,n;Xa.Napier.d_82mfvz$("UstadBaseComponent: componentDidMount: "+In(e.getKClassFromExpression(this).simpleName)),this.progressBarManager_2e294x$_0=new xm,this.searchManager=new Dm,this.fabManager=new Tm,n=null!=this.props.arguments?e.isType(t=this.props.arguments,Ma)?t:An():qE(),this.arguments=n,this.onCreateView()},VU.prototype.componentDidUpdate=function(t,n,i){var o,r=null!=this.props.arguments&&!Je(this.props.arguments.values,t.arguments.values),s=this.systemImpl.getAppPref(Qe.Companion.ACCOUNTS_ACTIVE_SESSION_PREFKEY,this),a=pr(this.systemImpl.getAppPref_rjah4r$(Pi.Companion.TAG_REDIRECTED,"false",this)),c=null!=s&&a;r&&(Xa.Napier.d_82mfvz$("UstadBaseComponent: componentDidUpdate: CHANGED: "+In(e.getKClassFromExpression(this).simpleName)),r&&(this.arguments=e.isType(o=this.props.arguments,Ma)?o:An()),c&&this.systemImpl.setAppPref_5pkmrg$(Pi.Companion.TAG_REDIRECTED,"false",this),this.onCreateView())},VU.prototype.render_ss14n$=function(t){},VU.prototype.onFabClicked=function(){},VU.prototype.showSnackBar_9pu0dj$$default=function(t,e,n){tm().dispatch_quwr82$(new rm(t,this.getString_za3lpa$(n),e))},VU.prototype.runOnUiThread_9ywmpy$=function(t){null!=t&&t.run()};var QU=new Cr("di");function ZU(){tD=this,this.MIN_STATE_CHANGE_DELAY_TIME=200,this.MAX_STATE_CHANGE_DELAY_TIME=500}Object.defineProperty(VU.prototype,"di",{configurable:!0,get:function(){return this.di_rly6g3$_0.getValue_n5byny$(this,QU)}}),VU.prototype.getString_za3lpa$=function(t){return 0===t?"":this.systemImpl.getString(t,this)},VU.prototype.getStringWithOptionalLabel_za3lpa$=function(t){return this.getString_za3lpa$(t)+" ("+this.getString_za3lpa$(2063)+")"},VU.prototype.updateUiWithStateChangeDelay_n53o35$=function(t,e){void 0===t&&(t=200),window.setTimeout(e,t)},VU.prototype.componentWillUnmount=function(){var t,n;this.compLifecycle_kboult$_0.lifecyleStatus=Iu.DESTROYED;var i,o,r=this.compLifecycle_kboult$_0.lifecycleObservers,s=Yo();for(i=r.iterator();i.hasNext();){var a,c,l=i.next();null!=(a=e.isType(c=l,Uu)?c:null)&&s.add_11rb$(a)}for(o=s.iterator();o.hasNext();)o.next().onStop_6298mr$(this);window.removeEventListener("hashchange",this.hashChangeListener_qkui3a$_0),this.progressBarManager_2e294x$_0.onDestroy(),null!=(t=this.searchManager)&&t.onDestroy(),this.searchManager=null,null!=(n=this.fabManager)&&n.onDestroy(),this.fabManager=null,this.database=null,this.onDestroyView()},ZU.$metadata$={kind:Ho,simpleName:"Companion",interfaces:[]};var tD=null;function eD(){return null===tD&&new ZU,tD}function nD(t){return t.extend_nltjgj$(tm().getCurrentState().di.instance),Ye}function iD(t){VU.call(this,t),this.editButtonMode_ypesp5$_0=wa.GONE}function oD(t){aD(),VU.call(this,t)}function rD(){sD=this,this.LAST_SAVE_CHECK_WINDOW=100}VU.$metadata$={kind:Vn,simpleName:"UstadBaseComponent",interfaces:[Mu,Ws,xa,Bc]},Object.defineProperty(iD.prototype,"editButtonMode",{configurable:!0,get:function(){return this.editButtonMode_ypesp5$_0},set:function(t){var e,n;window.setTimeout((e=t,n=this,function(){var t;return n.editButtonMode_ypesp5$_0=e,null!=(t=n.fabManager)&&(t.visible=e===wa.FAB),Ye}),200)}}),iD.prototype.onCreateView=function(){var t,e;VU.prototype.onCreateView.call(this),null!=(t=this.fabManager)&&(t.icon="edit"),null!=(e=this.fabManager)&&(e.text=this.getString_za3lpa$(2317))},iD.prototype.onFabClicked=function(){var t;null!=(t=this.detailPresenter)&&t.handleClickEdit()},iD.$metadata$={kind:Vn,simpleName:"UstadDetailComponent",interfaces:[Gu,VU]},oD.prototype.onCreateView=function(){var t,e,n,i;Xa.Napier.d_82mfvz$("UstadEditComponent: navController viewName = "+In(null!=(t=this.navController.currentBackStackEntry)?t.viewName:null)+" "),VU.prototype.onCreateView.call(this);var o,r=Je(null!=(e=this.mEditPresenter)?e.persistenceMode:null,qu.DB)?this.getString_za3lpa$(2513):this.getString_za3lpa$(2217);null!=(n=this.fabManager)&&(n.icon="check"),null!=(i=this.fabManager)&&(i.text=r),this.updateUiWithStateChangeDelay_n53o35$(void 0,(o=this,function(){var t;return null!=(t=o.fabManager)&&(t.visible=!0),Ye}))},oD.prototype.onFabClicked=function(){var t,e;if(null!=(t=this.entity)){var n=t;null!=(e=this.mEditPresenter)&&e.handleClickSave_nqi3in$(n)}},oD.prototype.setEditTitle_vux9f0$=function(t,e){var n,i,o;window.setTimeout((n=this,i=e,o=t,function(){var t,e,r,s=null!=(e=null!=(t=n.arguments.get_11rb$(xa.Companion.ARG_ENTITY_UID))?oc(t):null)?e:ra,a=n.arguments.get_11rb$(Fu.Companion.ARG_ENTITY_JSON);return r=Je(s,ra)&&null==a?n.getString_za3lpa$(o):n.getString_za3lpa$(i),n.ustadComponentTitle=r,Ye}),500)},oD.prototype.onDestroyView=function(){var t=this.mEditPresenter;null!=t&&t.persistenceMode===qu.DB&&Bu().subtract(t.lastStateSaveTime).toNumber()>100&&t.saveStateToNavController(),VU.prototype.onDestroyView.call(this)},rD.$metadata$={kind:Ho,simpleName:"Companion",interfaces:[]};var sD=null;function aD(){return null===sD&&new rD,sD}function cD(t){return new ba(ya.emptyMap,t)}function lD(t){return new va(ya.emptyMap,t)}function uD(t){var n;zD(),VU.call(this,t),this.isPressEventHandled_gwjzb2$_0=!1,this.selectedListItems_5g120i$_0=xu([]),this.dataListItems=xu([]),this.showEditOptionsMenu=!1,this.listItemPressTimer_iby9u0$_0=-1,this.dbRepo=null,this.showEmptyState_vtbyue$_0=!0,this.showCreateNewItem_cpzy0v$_0=!1,this.addNewEntryText_qpkvif$_0=this.getString_za3lpa$(2540),this.inviteNewText_26ezit$_0="",this.columnSize_u8htto$_0=ap(),this.useCardsOnGridLayout_vb6qz4$_0=!0,this.linearLayout_ea1vf0$_0=!0,this.itemPressEventHandler_sk9sm1$_0=(n=this,function(t){var i,o;return n.isPressEventHandled_gwjzb2$_0||(o=null==(i=t)||e.isType(i,ci)?i:An(),n.handleSelectedEntry_7n6ndu$_0(o)),n.isPressEventHandled_gwjzb2$_0=!0,Ye}),this.dataObserver_olpim3$_0=new Ea(function(t){return function(e){return $a(t,function(t,e){return function(n){return e.dataListItems=t,Ye}}(e,t)),t.onDataListLoaded(),Ye}}(this)),this.list_4jtoeb$_0=null,this.selectionOptions_rjv82f$_0=null,this.sortOptions_7qj0fb$_0=null,this.addMode_e6igff$_0=Wu.NONE,this.listFilterOptionChips_80ps2l$_0=null,this.checkedFilterOptionChip_igjv2f$_0=null,this.emptyList_bg95u6$_0=new Nm}function hD(t){return kr(t.css,Br(20)),Ye}function dD(t){return function(e){return e.attrs.onClick=function(t){return function(e){return ty().stopEventPropagation_za3rmp$(e),t.handleClickAddNewEntry(),Ye}}(t),UP(e,t.addNewEntryText),Ye}}function pD(t){return function(e){var n=e.css;return n.unaryPlus_uoyjcc$(TE().listCreateNewContainer),n.unaryPlus_uoyjcc$(TE().horizontalList),e.attrs.onClick=function(t){return function(){return t.handleInviteClicked(),Ye}}(t),UP(e,t.inviteNewText),Ye}}function _D(t){return function(e){return TE().listCreateNewContainer(e.css),e.attrs.divider=!0,e.attrs.onClick=function(t){return function(e){return ty().stopEventPropagation_za3rmp$(e),t.handleClickAddNewEntry(),Ye}}(t),UP(e,t.addNewEntryText),Ye}}function mD(t){return function(e){return TE().listCreateNewContainer(e.css),e.attrs.divider=!0,e.attrs.onClick=function(t){return function(e){return t.handleInviteClicked(),Ye}}(t),UP(e,t.inviteNewText,""),Ye}}function fD(t,e){return function(n){var i=t,o=e,r=n.css;return as(r,ss.pointer),Zr(r,new Fr(-1!==i.selectedListItems_5g120i$_0.indexOf_11rb$(o)?TE().theme.palette.action.selected:TE().theme.palette.background.default)),r.unaryPlus_uoyjcc$(TE().alignCenterItems),Qr(r,C_(1)),n.attrs.onMouseDown=function(t,e){return function(n){return ty().stopEventPropagation_za3rmp$(n),e.handleListItemPress_buifw9$_0(t),Ye}}(e,t),n.attrs.onMouseUp=function(t,e){return function(n){return ty().stopEventPropagation_za3rmp$(n),e.handleListItemRelease_6kdv3x$_0(t),Ye}}(e,t),t.useCardsOnGridLayout?Qp(n,4,void 0,void 0,void 0,function(t,e){return function(n){return Mr(n.css,Ir(97)),e.renderListItem_js0tu9$(n,t),Ye}}(e,t)):qp(n,!0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t,e){return function(n){return e.renderListItem_js0tu9$(n,t),Ye}}(e,t)),Ye}}function gD(t){return function(e){return t.showCreateNewItem&&t.renderNewItem_t5csie$_0(e),t.dataListItems.isEmpty()||t.renderListJoinView_ss14n$(e),t.dataListItems.isEmpty()?t.renderEmptyList_vv6veb$_0(e):gP(e,Sp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n;for(n=t.dataListItems.iterator();n.hasNext();){var i=n.next(),o=t;$P(e,mp(),o.columnSize,void 0,void 0,void 0,void 0,void 0,fD(o,i))}return Ye}}(t)),Ye}}function $D(t,e){return function(n){var i=t,o=e,r=n.css;return Zr(r,new Fr(-1!==i.selectedListItems_5g120i$_0.indexOf_11rb$(o)?TE().theme.palette.action.selected:TE().theme.palette.background.paper)),Mr(r,Ir(100)),n.attrs.alignItems="flex-start",n.attrs.divider=!0,n.attrs.onMouseDown=function(t,e){return function(){return e.handleListItemPress_buifw9$_0(t),Ye}}(e,t),n.attrs.onMouseUp=function(t,e){return function(){return e.handleListItemRelease_6kdv3x$_0(t),Ye}}(e,t),t.renderListItem_js0tu9$(n,e),Ye}}function ED(t,e){return function(n){var i;return $a(e,function(t,e){return function(n){return e.checkedFilterOptionChip=t,Ye}}(t,e)),null!=(i=e.listPresenter)&&i.onListFilterOptionSelected_5mmfk3$(t),Ye}}function yD(t,e){return function(n){return vs(n.css,C_(1)),n.attrs.onClick=ED(t,e),Ye}}function bD(t){return function(e){return ty().stopEventPropagation_za3rmp$(e),$a(t,function(t){return function(e){return t.selectedListItems_5g120i$_0=Yo(),Ye}}(t)),Ye}}function SD(t,e){return function(n){if(!t.selectedListItems_5g120i$_0.isEmpty()){var i=Sa.Companion.invoke_f6ihu2$(lD),o=t;Wr(i.css,C_(2)),xp(i,"close","default",void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return kr(e.css,Br(4)),e.attrs.onClick=bD(t),Ye}}(o)),n.child_30b5ua$(i.create());var r=Sa.Companion.invoke_f6ihu2$(lD);O_(r,void 0,"subtitle1",void 0,void 0,void 0,void 0,void 0,void 0,function(t,e){return function(n){var i=t,o=n.css;return kr(o,Br(10)),Pr(o,C_(2)),Ns(o,Cs(1.2)),Zn(o,TE().displayProperty_dqye30$(!i)),n.unaryPlus_pdl1vz$(fy(e.getString_za3lpa$(2551),[e.selectedListItems_5g120i$_0.size])),Ye}}(e,t)),n.child_30b5ua$(r.create())}return Ye}}function vD(t,e){return function(n){var i;ty().stopEventPropagation_za3rmp$(n);var o=Hu([t.selectedListItems_5g120i$_0]);return null!=(i=t.listPresenter)&&i.handleClickSelectionOption_psq284$($c(o),e),$a(t,function(t){return function(e){return t.selectedListItems_5g120i$_0.clear(),Ye}}(t)),Ye}}function CD(t,e){return function(n){return n.attrs.onClick=vD(t,e),Ye}}function ND(t,e){return function(n){return n.css.unaryPlus_uoyjcc$(TE().selectionContainer),$P(n,up(),void 0,void 0,void 0,void 0,void 0,Yn.row,SD(t,e)),$P(n,cp(),void 0,void 0,void 0,void 0,void 0,Yn.rowReverse,function(t){return function(e){var n,i,o;if(t.selectedListItems_5g120i$_0.isEmpty()){var r=Sa.Companion.invoke_f6ihu2$(lD),s=t;Pr(r.css,C_(2)),s.renderEditOptionMenu_ss14n$(r),e.child_30b5ua$(r.create())}if(!t.selectedListItems_5g120i$_0.isEmpty()&&null!=(i=null!=(n=t.selectionOptions)?za(n):null))for(o=i.iterator();o.hasNext();){var a,c=o.next(),l=t,u=Sa.Companion.invoke_f6ihu2$(lD);Pr(u.css,C_(2)),xp(u,null!=(a=zD().SELECTION_ICONS_MAP.get_11rb$(c))?a:"delete","default",void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,CD(l,c)),e.child_30b5ua$(u.create())}return Ye}}(t)),Ye}}function TD(){LD=this,this.SELECTION_ICONS_MAP=Ia([ni(Vu.EDIT,"edit"),ni(Vu.DELETE,"delete"),ni(Vu.MOVE,"drive_file_move"),ni(Vu.HIDE,"visibility_off"),ni(Vu.UNHIDE,"visibility")]),this.UI_EVENT_LISTENER_TIMEOUT_0=100}oD.$metadata$={kind:Vn,simpleName:"UstadEditComponent",interfaces:[Fu,VU]},Object.defineProperty(uD.prototype,"showEmptyState",{configurable:!0,get:function(){return this.showEmptyState_vtbyue$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.showEmptyState_vtbyue$_0=e,Ye}))}}),Object.defineProperty(uD.prototype,"showCreateNewItem",{configurable:!0,get:function(){return this.showCreateNewItem_cpzy0v$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.showCreateNewItem_cpzy0v$_0=e,Ye}))}}),Object.defineProperty(uD.prototype,"addNewEntryText",{configurable:!0,get:function(){return this.addNewEntryText_qpkvif$_0},set:function(t){this.addNewEntryText_qpkvif$_0=t}}),Object.defineProperty(uD.prototype,"inviteNewText",{configurable:!0,get:function(){return this.inviteNewText_26ezit$_0},set:function(t){this.inviteNewText_26ezit$_0=t}}),Object.defineProperty(uD.prototype,"columnSize",{configurable:!0,get:function(){return this.columnSize_u8htto$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.columnSize_u8htto$_0=e,Ye}))}}),Object.defineProperty(uD.prototype,"useCardsOnGridLayout",{configurable:!0,get:function(){return this.useCardsOnGridLayout_vb6qz4$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.useCardsOnGridLayout_vb6qz4$_0=e,Ye}))}}),Object.defineProperty(uD.prototype,"linearLayout",{configurable:!0,get:function(){return this.linearLayout_ea1vf0$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.linearLayout_ea1vf0$_0=e,Ye}))}}),Object.defineProperty(uD.prototype,"list",{configurable:!0,get:function(){return this.list_4jtoeb$_0},set:function(t){this.list_4jtoeb$_0=t;var e=null!=t?t.getData_vux9f0$(0,2147483647):null;null!=e&&e.removeObserver_fujmse$(this.dataObserver_olpim3$_0),null!=e&&e.observe_bi6zy5$(this,this.dataObserver_olpim3$_0)}}),Object.defineProperty(uD.prototype,"selectionOptions",{configurable:!0,get:function(){return this.selectionOptions_rjv82f$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.selectionOptions_rjv82f$_0=e,Ye}))}}),Object.defineProperty(uD.prototype,"sortOptions",{configurable:!0,get:function(){return this.sortOptions_7qj0fb$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.sortOptions_7qj0fb$_0=e,Ye}))}}),Object.defineProperty(uD.prototype,"addMode",{configurable:!0,get:function(){return this.addMode_e6igff$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.addMode_e6igff$_0=e,n.showCreateNewItem=e===Wu.FIRST_ITEM,Ye})),this.updateUiWithStateChangeDelay_n53o35$(void 0,function(t,e){return function(){var n;return null!=(n=e.fabManager)&&(n.visible=t===Wu.FAB),Ye}}(t,this))}}),Object.defineProperty(uD.prototype,"listFilterOptionChips",{configurable:!0,get:function(){return this.listFilterOptionChips_80ps2l$_0},set:function(t){var e,n,i;null==this.checkedFilterOptionChip&&(this.checkedFilterOptionChip=null!=(e=this.listFilterOptionChips)?ou(e):null),$a(this,(n=t,i=this,function(t){return i.listFilterOptionChips_80ps2l$_0=n,Ye}))}}),Object.defineProperty(uD.prototype,"checkedFilterOptionChip",{configurable:!0,get:function(){return this.checkedFilterOptionChip_igjv2f$_0},set:function(t){var e,n;$a(this,(e=t,n=this,function(t){return n.checkedFilterOptionChip_igjv2f$_0=e,Ye}))}}),uD.prototype.onCreateView=function(){var t;VU.prototype.onCreateView.call(this),null!=(t=this.fabManager)&&(t.icon="add");var n,i,o,r,s=this.accountManager.activeAccount;n=this.diTrigger,this.dbRepo=Gl(ku(this,ju.Companion.invoke_np530x$(e.isType(i=On(He(We(Cn),[],!1)),Rn)?i:An(),s),n)).directDI.Instance_ohrpre$(e.isType(o=On(He(We(rn),[],!1)),Rn)?o:An(),2),window.setTimeout((r=this,function(){var t;return null!=(t=r.searchManager)&&(t.searchListener=r.listPresenter),Ye}),100)},uD.prototype.render_ss14n$=function(t){var e=Sa.Companion.invoke_f6ihu2$(cD),n=e.css;this.linearLayout&&n.unaryPlus_uoyjcc$(TE().listComponentContainer),n.unaryPlus_uoyjcc$(TE().contentContainer),this.renderEntrySelectionMenuOptions_5gsf3n$_0(e),this.renderEntriesFilterOptions_n0rhfs$_0(e);var i=Sa.Companion.invoke_f6ihu2$(cD);qr(i.css,C_(2)),this.renderListHeaderView_ss14n$(i),e.child_30b5ua$(i.create()),this.linearLayout?this.renderSingleColumnList_qg23e6$_0(e):this.renderMultiColumnList_97phrf$_0(e),this.renderListFooterView_ss14n$(e),t.child_30b5ua$(e.create()),this.renderAddContentOptionsDialog_ss14n$(t)},uD.prototype.onDataListLoaded=function(){},uD.prototype.renderEmptyList_vv6veb$_0=function(t){var e;this.showEmptyState&&(gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,(e=this,function(t){TE().centerContainer(t.css);var n,i,o=Sa.Companion.invoke_f6ihu2$(cD),r=e,s=o.css;return s.unaryPlus_uoyjcc$(TE().alignCenterItems),Mr(s,Br(200)),Rp(o,null!=(n=r.emptyList.icon)?n:"crop_free",void 0,void 0,TE().name+"-emptyListIcon"),O_(o,null!=(i=r.emptyList.text)?i:r.getString_za3lpa$(2575),"h6","center",void 0,void 0,void 0,void 0,void 0,hD),t.child_30b5ua$(o.create()),Ye})),window.setTimeout(function(t){return function(){return t.loading=!1,Ye}}(this),100))},uD.prototype.renderNewItem_t5csie$_0=function(t,e){var n;void 0===e&&(e=!1),this.showCreateNewItem&&(e?($P(t,mp(),void 0,void 0,void 0,void 0,void 0,void 0,(n=this,function(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().listCreateNewContainer),e.unaryPlus_uoyjcc$(TE().horizontalList),qp(t,!0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,dD(n)),Ye})),this.inviteNewText.length>0&&$P(t,mp(),void 0,void 0,void 0,void 0,void 0,void 0,pD(this))):(qp(t,!0,void 0,void 0,void 0,void 0,"flex-start",void 0,void 0,void 0,void 0,void 0,void 0,void 0,_D(this)),this.inviteNewText.length>0&&qp(t,!0,void 0,void 0,void 0,void 0,"flex-start",void 0,void 0,void 0,void 0,void 0,void 0,void 0,mD(this))))},uD.prototype.renderMultiColumnList_97phrf$_0=function(t){gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,gD(this))},uD.prototype.renderSingleColumnList_qg23e6$_0=function(t){var e;Pp(t,void 0,void 0,void 0,void 0,(e=this,function(t){var n,i=e;if(t.css,i.dataListItems.isEmpty()?TE().horizontalListEmpty:TE().horizontalList,e.renderNewItem_t5csie$_0(t,!1),e.dataListItems.isEmpty()||e.renderListJoinView_ss14n$(t),e.dataListItems.isEmpty())e.renderEmptyList_vv6veb$_0(t);else for(n=e.dataListItems.iterator();n.hasNext();){var o=n.next();qp(t,!0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,$D(e,o))}return Ye}))},uD.prototype.handleListItemPress_buifw9$_0=function(t){-1!==this.listItemPressTimer_iby9u0$_0&&window.clearTimeout(this.listItemPressTimer_iby9u0$_0),this.listItemPressTimer_iby9u0$_0=window.setTimeout(this.itemPressEventHandler_sk9sm1$_0,1e3,t),this.isPressEventHandled_gwjzb2$_0=!1},uD.prototype.handleListItemRelease_6kdv3x$_0=function(t){this.showEditOptionsMenu?this.isPressEventHandled_gwjzb2$_0||(this.isPressEventHandled_gwjzb2$_0=!0,this.selectedListItems_5g120i$_0.isEmpty()?this.handleClickEntry_11rc$(t):this.handleSelectedEntry_7n6ndu$_0(t)):this.handleClickEntry_11rc$(t),window.clearTimeout(this.listItemPressTimer_iby9u0$_0)},uD.prototype.handleSelectedEntry_7n6ndu$_0=function(t){var e,n,i,o=-1!==this.selectedListItems_5g120i$_0.indexOf_11rb$(t);$a(this,(e=o,n=this,i=t,function(t){var o;return e?n.selectedListItems_5g120i$_0.remove_11rb$(i):n.selectedListItems_5g120i$_0.add_11rb$(i),null!=(o=n.listPresenter)&&o.handleSelectionOptionChanged_4ezy6h$(n.selectedListItems_5g120i$_0),Ye}))},uD.prototype.renderEntriesFilterOptions_n0rhfs$_0=function(t){if(null!=this.listFilterOptionChips){var e,n,i=Sa.Companion.invoke_f6ihu2$(cD),o=i.css;if(vs(o,C_(2)),o.unaryPlus_uoyjcc$(TE().chipSetFilter),null!=(e=this.listFilterOptionChips))for(n=e.iterator();n.hasNext();){var r=n.next(),s=Je(r,this.checkedFilterOptionChip)?OE().isDarkModeActive()?"secondary":"primary":"default";ld(i,r.description,void 0,void 0,void 0,void 0,s,void 0,void 0,void 0,yD(r,this))}t.child_30b5ua$(i.create())}},uD.prototype.renderEntrySelectionMenuOptions_5gsf3n$_0=function(t){var e=this.selectedListItems_5g120i$_0;gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,ND(this,(null==e||e.isEmpty())|!this.showEditOptionsMenu))},uD.prototype.renderAddContentOptionsDialog_ss14n$=function(t){},Object.defineProperty(uD.prototype,"emptyList",{configurable:!0,get:function(){return this.emptyList_bg95u6$_0}}),uD.prototype.renderEditOptionMenu_ss14n$=function(t){},uD.prototype.renderListHeaderView_ss14n$=function(t){},uD.prototype.renderListJoinView_ss14n$=function(t){},uD.prototype.renderListFooterView_ss14n$=function(t){},uD.prototype.handleClickCreateNewEntry=function(){var t;null!=(t=this.listPresenter)&&t.handleClickCreateNewFab()},uD.prototype.handleClickAddNewEntry=function(){var t;null!=(t=this.listPresenter)&&t.handleClickAddNewItem_a4m1mt$()},uD.prototype.handleInviteClicked=function(){},uD.prototype.onClickSort_o8nuns$=function(t){var e;null!=(e=this.listPresenter)&&e.onClickSort_o8nuns$(t)},uD.prototype.onFabClicked=function(){VU.prototype.onFabClicked.call(this),this.handleClickCreateNewEntry()},uD.prototype.onDestroyView=function(){var t;VU.prototype.onDestroyView.call(this),this.dbRepo=null,null!=(t=this.listPresenter)&&t.onDestroy(),this.selectedListItems_5g120i$_0.clear()},TD.$metadata$={kind:Ho,simpleName:"Companion",interfaces:[]};var LD=null;function zD(){return null===LD&&new TD,LD}function wD(t){return new ba(ya.emptyMap,t)}function OD(){}function RD(t,e,n){void 0===t&&(t=!1),void 0===e&&(e=""),void 0===n&&(n=null),this.visible=t,this.text=e,this.onClickCreateNew=n}function AD(t){VU.call(this,t)}function xD(t){return function(e){var n,i,o=e.css;return o.unaryPlus_uoyjcc$(TE().listCreateNewContainer),jr(o,C_(1)),e.attrs.onClick=function(t){return function(e){var n,i;return ty().stopEventPropagation_za3rmp$(e),null!=(i=null!=(n=t.props.createNewItem)?n.onClickCreateNew:null)&&i(),Ye}}(t),UP(e,null!=(i=null!=(n=t.props.createNewItem)?n.text:null)?i:""),Ye}}function ID(t,e){return function(n){var i=n.css;return Zr(i,new Fr(TE().theme.palette.background.paper)),Mr(i,Ir(100)),n.attrs.divider=!0,e.renderListItem_f4dmsf$(n,t,function(t,e){return function(n){var i;return n.stopPropagation(),null!=(i=t.props.onEntryClicked)&&i(e),Ye}}(e,t)),Ye}}function UD(t,e){return function(n){return qp(n,!0,void 0,void 0,void 0,void 0,"flex-start",void 0,void 0,void 0,void 0,void 0,void 0,void 0,ID(t,e)),Ye}}function DD(t,e){return function(n){var i=n.css;return Zr(i,new Fr(TE().theme.palette.background.paper)),Mr(i,Ir(100)),n.attrs.divider=!0,e.renderListItem_f4dmsf$(n,t,function(t,e){return function(n){var i;return n.stopPropagation(),null!=(i=t.props.onEntryClicked)&&i(e),Ye}}(e,t)),Ye}}function PD(t){return new Yu(ya.emptyMap,t)}function MD(t){VU.call(this,t),this.entry_7fdeio$_0=null,this.videoParams_bzznbj$_0=null,this.mPresenter_0=null,this.containerUid_0=ra}function kD(t){return function(e){return $P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){TE().videoPlayerWrapper(e.css);var n,i,o=Sa.Companion.invoke_f6ihu2$(PD),r=t;return TE().videoComponentResponsiveMedia(o.css),o.attrs.src=null!=(i=null!=(n=r.videoParams)?n.videoPath:null)?i:"",o.attrs.autoPlay=!1,o.attrs.autoBuffer=!0,o.attrs.controls=!0,e.child_30b5ua$(o.create()),Ye}}(t)),Ye}}function jD(t){VU.call(this,t),this.mPresenter_0=null,this.entry_v3ekvv$_0=null,this.url_xalxsy$_0=""}function GD(){return Ye}function qD(t){VU.call(this,t),this.setTitle_1pusuj$_0="",this.url_bwq2re$_0="",this.mPresenter_0=null}function FD(t){return new ba(ya.emptyMap,t)}function BD(t){VU.call(this,t);var n,i,o,r=this.di,s=this.accountManager.activeAccount;n=r.diTrigger,this.db_dhhva6$_0=Hs(ku(r,ju.Companion.invoke_np530x$(e.isType(i=On(He(We(Cn),[],!1)),Rn)?i:An(),s),n),e.isType(o=On(He(We(rn),[],!1)),Rn)?o:An(),1).provideDelegate_tpuvb9$(this,WD)}uD.$metadata$={kind:Vn,simpleName:"UstadListComponent",interfaces:[Xu,Ku,VU]},OD.$metadata$={kind:$r,simpleName:"SimpleListProps",interfaces:[Im]},RD.$metadata$={kind:Vn,simpleName:"CreateNewItem",interfaces:[]},RD.prototype.component1=function(){return this.visible},RD.prototype.component2=function(){return this.text},RD.prototype.component3=function(){return this.onClickCreateNew},RD.prototype.copy_stch53$=function(t,e,n){return new RD(void 0===t?this.visible:t,void 0===e?this.text:e,void 0===n?this.onClickCreateNew:n)},RD.prototype.toString=function(){return"CreateNewItem(visible="+e.toString(this.visible)+", text="+e.toString(this.text)+", onClickCreateNew="+e.toString(this.onClickCreateNew)+")"},RD.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*t+e.hashCode(this.visible)|0)+e.hashCode(this.text)|0)+e.hashCode(this.onClickCreateNew)|0},RD.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.visible,t.visible)&&e.equals(this.text,t.text)&&e.equals(this.onClickCreateNew,t.onClickCreateNew)},AD.prototype.render_ss14n$=function(t){var e=Sa.Companion.invoke_f6ihu2$(wD),n=e.css;this.props.mainList?n.unaryPlus_uoyjcc$(TE().listComponentContainerWithScroll):(n.unaryPlus_uoyjcc$(TE().listComponentContainer),Mr(n,Ir(98))),this.renderMoreDialogOptions_ss14n$(e),this.renderList_wzp5y7$_0(e),t.child_30b5ua$(e.create())},AD.prototype.renderMoreDialogOptions_ss14n$=function(t){},AD.prototype.renderItems_m09ek9$_0=function(t){var e,n,i,o,r=!0===(null!=(e=this.props.createNewItem)?e.visible:null);if(r){var s=null!=(n=this.props.createNewItem)?n.text:null;r=!(null==s||0===s.length)}r&&qp(t,!0,void 0,void 0,void 0,void 0,"flex-start",void 0,void 0,void 0,void 0,void 0,void 0,void 0,xD(this));var a=0;for(i=this.props.entries.iterator();i.hasNext();){var c=i.next(),l=Js((a=(o=a)+1|0,o));this.props.draggable?o_(t,"key_"+l,void 0,UD(c,this)):qp(t,!0,void 0,void 0,void 0,void 0,"flex-start",void 0,void 0,void 0,void 0,void 0,void 0,void 0,DD(c,this))}return null},AD.prototype.renderList_wzp5y7$_0=function(t){var e;this.props.draggable?i_(t,this.props.onSortEnd,void 0,void 0,function(t){return function(e){return TE().horizontalList(e.css),t.renderItems_m09ek9$_0(e),Ye}}(this)):Pp(t,void 0,void 0,void 0,void 0,(e=this,function(t){return TE().horizontalList(t.css),e.renderItems_m09ek9$_0(t),Ye}))},AD.$metadata$={kind:Vn,simpleName:"UstadSimpleList",interfaces:[VU]},Object.defineProperty(MD.prototype,"entry",{configurable:!0,get:function(){return this.entry_7fdeio$_0},set:function(t){var e;this.entry_7fdeio$_0=t,this.ustadComponentTitle=null!=t?t.title:null,null!=(e=this.mPresenter_0)&&e.onResume()}}),Object.defineProperty(MD.prototype,"videoParams",{configurable:!0,get:function(){return this.videoParams_bzznbj$_0},set:function(t){var e,n;this.loading=null==t,$a(this,(e=t,n=this,function(t){return n.videoParams_bzznbj$_0=e,Ye}))}}),MD.prototype.onCreateView=function(){var t,e,n,i;VU.prototype.onCreateView.call(this),null!=(t=this.fabManager)&&(t.visible=!1),this.containerUid_0=null!=(n=null!=(e=this.arguments.get_11rb$(xa.Companion.ARG_CONTAINER_UID))?oc(e):null)?n:ra,this.mPresenter_0=new Ju(this,this.arguments,this,this.di),null!=(i=this.mPresenter_0)&&i.onCreate(fr())},MD.prototype.render_ss14n$=function(t){gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,kD(this))},MD.prototype.onDestroyView=function(){var t;VU.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entry=null,this.videoParams=null},MD.$metadata$={kind:Vn,simpleName:"VideoContentComponent",interfaces:[Oi,VU]},Object.defineProperty(jD.prototype,"entry",{configurable:!0,get:function(){return this.entry_v3ekvv$_0},set:function(t){this.entry_v3ekvv$_0=t,this.ustadComponentTitle=null!=t?t.title:null}}),Object.defineProperty(jD.prototype,"url",{configurable:!0,get:function(){return this.url_xalxsy$_0},set:function(t){this.loading=0===t.length,this.url_xalxsy$_0=t}}),jD.prototype.onCreateView=function(){var t,e;VU.prototype.onCreateView.call(this),null!=(t=this.fabManager)&&(t.visible=!1),this.mPresenter_0=new Qu(this,this.arguments,this,this.di),null!=(e=this.mPresenter_0)&&e.onCreate(fr())},jD.prototype.render_ss14n$=function(t){this.url.length>0&&yz(t,ga(this.url),1)},jD.prototype.showNoAppFoundError_h6sd2a$=function(t,e,n){this.showSnackBar_9pu0dj$(t,GD,e)},jD.prototype.onDestroyView=function(){var t;VU.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null,this.entry=null},jD.$metadata$={kind:Vn,simpleName:"WebChunkComponent",interfaces:[Di,VU]},Object.defineProperty(qD.prototype,"setTitle",{configurable:!0,get:function(){return this.setTitle_1pusuj$_0},set:function(t){this.setTitle_1pusuj$_0=t,this.ustadComponentTitle=t}}),Object.defineProperty(qD.prototype,"url",{configurable:!0,get:function(){return this.url_bwq2re$_0},set:function(t){var e,n;this.loading=0===t.length,$a(this,(e=t,n=this,function(t){return n.url_bwq2re$_0=e,Ye}))}}),qD.prototype.onCreateView=function(){var t,e;VU.prototype.onCreateView.call(this),null!=(t=this.fabManager)&&(t.visible=!1),this.mPresenter_0=new Zu(this,this.arguments,this,this.di),null!=(e=this.mPresenter_0)&&e.onCreate(fr())},qD.prototype.render_ss14n$=function(t){if(this.url.length>0){var e=Sa.Companion.invoke_f6ihu2$((n=null,function(t){return new ol(il("sandbox",null!=n?nl(n):null),t)}));TE().iframeComponentResponsiveIframe(e.css),Lr(e.css,ns(80)),e.attrs.src=this.url,t.child_30b5ua$(e.create())}var n},qD.prototype.onDestroyView=function(){var t;VU.prototype.onDestroyView.call(this),null!=(t=this.mPresenter_0)&&t.onDestroy(),this.mPresenter_0=null},qD.$metadata$={kind:Vn,simpleName:"XapiPackageContentComponent",interfaces:[wi,VU]};var WD=new Cr("db");function HD(t,e,n,i){ta.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$AttachmentImageComponent=t}function VD(t,e,n,i){ta.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$AttachmentImageComponent=t}function KD(t){return function(e){return e.imageSrc=t.toString(),Ye}}function XD(t,e){ta.call(this,e),this.exceptionState_0=1,this.$this=t,this.local$tmp$=void 0}function JD(t){return document.getElementById("imguploadfile").click(),Ye}function YD(t,e,n,i,o){ta.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$evt=t,this.local$this$AttachmentImageComponent=e}function QD(t){return function(e){var n,i;return e.stopPropagation(),e.preventDefault(),Bl(on.GlobalScope,void 0,void 0,(n=e,i=t,function(t,e,o){var r=new YD(n,i,t,this,e);return o?r:r.doResume(null)})),Ye}}function ZD(t){this.function$=t}function tP(t){var e,n;VU.call(this,t),this.lastAttachmentUri_gybgxn$_0=null,this.imageLookupJob_ufjr5u$_0=null,this.currentLiveData_5w1drz$_0=null,this.db_115ryg$_qpalce$_0=this.db_115ryg$_qpalce$_0,this.uriObserver_d7wdw$_0=new Ka((e=this,n=t,function(t){var i,o,r,s;if(!Je(t,e.lastAttachmentUri_gybgxn$_0))return null!=(i=e.imageLookupJob_ufjr5u$_0)&&i.cancel_x5z25k$(),e.lastAttachmentUri_gybgxn$_0=t,e.imageLookupJob_ufjr5u$_0=Bl(on.GlobalScope,void 0,void 0,(o=n,r=e,s=t,function(t,e,n){var i=new nP(o,r,s,t,this,e);return n?i:i.doResume(null)})),Ye}))}function eP(t){return function(e){return e.imgSrc=null!=t?t.toString():null,Ye}}function nP(t,e,n,i,o,r){ta.call(this,r),this.$controller=o,this.exceptionState_0=1,this.local$closure$props=t,this.local$this$AttachmentImageLookupComponent=e,this.local$closure$attachmentUri=n,this.local$tmp$=void 0}function iP(t){return new ba(ya.emptyMap,t)}function oP(t){return new va(ya.emptyMap,t)}Object.defineProperty(BD.prototype,"db_0",{configurable:!0,get:function(){return this.db_dhhva6$_0.value}}),HD.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[ta]},HD.prototype=Object.create(ta.prototype),HD.prototype.constructor=HD,HD.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$AttachmentImageComponent.resolveUrl(this),this.result_0===Zs)return Zs;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},BD.prototype.componentDidMount=function(){var t;Bl(on.GlobalScope,void 0,void 0,(t=this,function(e,n,i){var o=new HD(t,e,this,n);return i?o:o.doResume(null)}))},VD.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[ta]},VD.prototype=Object.create(ta.prototype),VD.prototype.constructor=VD,VD.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$AttachmentImageComponent.resolveUrl(this),this.result_0===Zs)return Zs;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},BD.prototype.componentDidUpdate=function(t,e,n){var i;VU.prototype.componentDidUpdate.call(this,t,e,n),Je(t.attachmentUri,this.props.attachmentUri)||Bl(on.GlobalScope,void 0,void 0,(i=this,function(t,e,n){var o=new VD(i,t,this,e);return n?o:o.doResume(null)}))},BD.prototype.componentWillUnmount=function(){},XD.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[ta]},XD.prototype=Object.create(ta.prototype),XD.prototype.constructor=XD,XD.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=this.$this.props.attachmentUri;if(console.log("AttachmentImage: resolving "+In(t)),null!=t){if(hi(t,th.Companion.DOOR_ATTACHMENT_URI_PREFIX)){if(this.state_0=2,this.result_0=eh(this.$this.db_0,t,this),this.result_0===Zs)return Zs;continue}this.local$tmp$=nh.Companion.parse_61zpoe$(t),this.state_0=3;continue}this.state_0=4;continue;case 1:throw this.exception_0;case 2:this.local$tmp$=this.result_0,this.state_0=3;continue;case 3:var e=this.local$tmp$;$a(this.$this,KD(e)),this.state_0=4;continue;case 4:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},BD.prototype.resolveUrl=function(t,e){var n=new XD(this,t);return e?n:n.doResume(null)},YD.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[ta]},YD.prototype=Object.create(ta.prototype),YD.prototype.constructor=YD,YD.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n=e.isType(t=this.local$closure$evt.target.files[0],File)?t:An(),i=URL.createObjectURL(n);return this.local$this$AttachmentImageComponent.props.onNewImageSelected(i);case 1:throw this.exception_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},BD.prototype.render_ss14n$=function(t){var e,n=Sa.Companion.invoke_f6ihu2$(FD);ih(n.attrs,JD),null!=(e=this.props.contentBlock)&&e(n,this.state.imageSrc);var i,o,r,s,a=hu.file,c=Sa.Companion.invoke_f6ihu2$((i=a,o=null,r=null,s=null,function(t){return new pu(ml(["type",null!=i?nl(i):null,"formenctype",null!=o?nl(o):null,"formmethod",null!=r?nl(r):null,"name",s]),t)}));uu(c.css,lu.hidden),c.attrs.accept=".jpg,.webp,.png,image/jpg,image/webp,image/png",Qc(c.attrs,"imguploadfile"),oh(c.attrs,QD(this)),n.child_30b5ua$(c.create()),t.child_30b5ua$(n.create())},BD.$metadata$={kind:Vn,simpleName:"AttachmentImageComponent",interfaces:[VU]},ZD.prototype.lookupAttachmentUri_nhes9s$=function(t,e){return this.function$(t,e)},ZD.$metadata$={kind:$r,simpleName:"AttachmentImageLookupAdapter",interfaces:[]},Object.defineProperty(tP.prototype,"db_115ryg$_0",{configurable:!0,get:function(){return null==this.db_115ryg$_qpalce$_0?ll("db"):this.db_115ryg$_qpalce$_0},set:function(t){this.db_115ryg$_qpalce$_0=t}}),tP.prototype.setupLiveData_m4u3yd$_0=function(){var t,e,n;null!=(t=this.currentLiveData_5w1drz$_0)&&t.removeObserver_fujmse$(this.uriObserver_d7wdw$_0),this.currentLiveData_5w1drz$_0=null!=(e=this.props.lookupAdapter)?e.lookupAttachmentUri_nhes9s$(this.db_115ryg$_0,this.props.entityUid):null,null!=(n=this.currentLiveData_5w1drz$_0)&&n.observe_bi6zy5$(this,this.uriObserver_d7wdw$_0)},tP.prototype.onCreateView=function(){VU.prototype.onCreateView.call(this);var t,n,i,o=this.di,r=this.accountManager.activeAccount;t=o.diTrigger,this.db_115ryg$_0=Gl(ku(o,ju.Companion.invoke_np530x$(e.isType(n=On(He(We(Cn),[],!1)),Rn)?n:An(),r),t)).directDI.Instance_ohrpre$(e.isType(i=On(He(We(rn),[],!1)),Rn)?i:An(),1),this.setupLiveData_m4u3yd$_0()},tP.prototype.componentDidUpdate=function(t,e,n){VU.prototype.componentDidUpdate.call(this,t,e,n),Je(t.entityUid,this.props.entityUid)&&Je(t.lookupAdapter,this.props.lookupAdapter)||this.setupLiveData_m4u3yd$_0()},tP.prototype.componentWillUnmount=function(){var t,e;VU.prototype.componentWillUnmount.call(this),null!=(t=this.currentLiveData_5w1drz$_0)&&t.removeObserver_fujmse$(this.uriObserver_d7wdw$_0),null!=(e=this.state.imgSrc)&&(console.log("AttachmentImageLookupComp: unmount / revoke "+e),URL.revokeObjectURL(e))},tP.prototype.render_ss14n$=function(t){var e;null!=(e=this.props.contentBlock)&&e(t,this.state.imgSrc)},nP.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[ta]},nP.prototype=Object.create(ta.prototype),nP.prototype.constructor=nP,nP.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(console.log("AttachmentImageLookupComp: Lookup entity uid = "+this.local$closure$props.entityUid.toString()),null!=(t=this.local$this$AttachmentImageLookupComponent.state.imgSrc)&&(console.log("AttachmentImageLookupComp: revoke "+t),URL.revokeObjectURL(t)),null!=this.local$closure$attachmentUri){var e=this.local$closure$attachmentUri;if(this.state_0=2,this.result_0=eh(this.local$this$AttachmentImageLookupComponent.db_115ryg$_0,e,this),this.result_0===Zs)return Zs;continue}this.local$tmp$=null,this.state_0=3;continue;case 1:throw this.exception_0;case 2:this.local$tmp$=this.result_0,this.state_0=3;continue;case 3:var n=this.local$tmp$;return console.log("AttachmentImageLookupComp: imgSrcUrl= "+In(n)),$a(this.local$this$AttachmentImageLookupComponent,eP(n)),Ye;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tP.$metadata$={kind:Vn,simpleName:"AttachmentImageLookupComponent",interfaces:[VU]};var rP,sP=_h((function(){var t=e.kotlin.comparisons.compareValues_s00gnj$;return function(e){return function(n,i){var o=e;return t(o(n),o(i))}}}));function aP(t,e){var n=Sa.Companion.invoke_f6ihu2$(iP);return x_(n.css,e.mixins.toolbar),t.child_30b5ua$(n.create()),Ye}function cP(t){t.invoke_c0v1gl$(De.Consumer,aP)}function lP(){return window.location.href+" not an UstadUrl, not doing anything"}function uP(t){return Ye}function hP(t,n,i){return sh((o=i,r=t,function(t){var n,i,s=!1;try{var a=pl.Companion.parse_puj7f4$(window.location.href),c=Bo([bi.Companion.VIEW_NAME,zi.Companion.VIEW_NAME_REGISTER,Pi.Companion.VIEW_NAME,Mi.Companion.VIEW_NAME,ki.Companion.VIEW_NAME_ACCEPT_TERMS,rh.Companion.VIEW_NAME]);if((s=null==o.getAppPref(Qe.Companion.ACCOUNTS_ACTIVE_SESSION_PREFKEY,t)&&!c.contains_11rb$(a.viewName))&&!rP){var l=pl.Companion.parse_puj7f4$(window.location.href),u=l.endpoint+"#/"+bi.Companion.VIEW_NAME+"?"+xa.Companion.ARG_NEXT+"="+encodeURIComponent(l.viewUri);Xa.Napier.d_9h2hdn$(void 0,void 0,(n=a,i=u,function(){return"User is not logged in : should not see "+n.viewName+" . Go to "+i})),rP=!0,window.location.href=u}}catch(t){if(!e.isType(t,_l))throw t;Xa.Napier.d_9h2hdn$(void 0,void 0,lP)}return s||t.child_up9nw1$(r,uP),Ye}));var o,r}var dP=new Cr("systemImpl"),pP=new Cr("accountManager");function _P(t,e,n){return function(i){return i.attrs.path="/"+t.view,i.attrs.element=hP(t.component,e.value,n.value),Ye}}function mP(t,e){return function(n){var i;for(n.invoke_qk0v40$(Gt.Route,function(t,e){return function(n){return n.attrs.path="/",n.attrs.element=hP(X_().defaultDestination.component,t.value,e.value),Ye}}(t,e)),i=X_().destinationList.iterator();i.hasNext();){var o=i.next(),r=t,s=e;n.invoke_qk0v40$(Gt.Route,_P(o,r,s))}return Ye}}function fP(t,n){var i,o,r,s,a=Hs(n,e.isType(i=On(He(We(Be),[],!1)),Rn)?i:An(),null).provideDelegate_tpuvb9$(this,dP),c=Hs(n,e.isType(o=On(He(We(Qe),[],!1)),Rn)?o:An(),null).provideDelegate_tpuvb9$(this,pP);t.invoke_qk0v40$(jt.HashRouter,(r=c,s=a,function(t){return t.invoke_qk0v40$(Gt.Routes,mP(r,s)),Ye}))}function gP(t,e,n,i,o,r,s,a,c,l){void 0===e&&(e=$p()),void 0===n&&(n=jd()),void 0===i&&(i=Kd()),void 0===o&&(o=Yn.row),void 0===r&&(r=$p()),void 0===s&&(s=$p()),void 0===a&&(a="wrap"),void 0===c&&(c=null),void 0===l&&(l=null),wp(t,e,n,i,o,a,r,s,c,l)}function $P(t,e,n,i,o,r,s,a,c){void 0===e&&(e=mp()),void 0===n&&(n=null),void 0===i&&(i=null),void 0===o&&(o=null),void 0===r&&(r=null),void 0===s&&(s=Qn.flex),void 0===a&&(a=Yn.column),void 0===c&&(c=null),Op(t,e,n,void 0,i,void 0,r,void 0,o,s,a,c)}function EP(t,e,n,i){return function(o){var r=Sa.Companion.invoke_f6ihu2$(oP),s=t,a=e,c=n,l=i,u=r.css;return Xr(u,Kr.absolute),as(u,ss.pointer),null!=s&&ah(r.attrs,function(t){return function(e){return t(e),Ye}}(s)),a&&Rp(r,c,void 0,void 0,l),o.child_30b5ua$(r.create()),Ye}}function yP(t,e,n,i,o,r,s,a,c,l,u){void 0===e&&(e=null),void 0===n&&(n=ty().ASSET_ACCOUNT),void 0===i&&(i="add_a_photo"),void 0===o&&(o=null),void 0===r&&(r="rounded"),void 0===s&&(s=!0),void 0===a&&(a=!1),void 0===c&&(c=TE().name+"-entityImageClass"),void 0===l&&(l=TE().name+"-entityImageIconClass"),void 0===u&&(u=null);var h=Sa.Companion.invoke_f6ihu2$(iP),d=h.css;d.unaryPlus_uoyjcc$(TE().entryItemImageContainer),a||Rs(d,"1.5%"),ed(h,null==e||0===e.length?n:e,void 0,void 0,r,o,void 0,c,EP(u,s,i,l)),t.child_30b5ua$(h.create())}function bP(t){return function(e,n){return ed(e,n,void 0,void 0,"circular",void 0,void 0,void 0,function(t,e){return function(n){return TE().personListItemAvatar(n.css),null==t&&Rp(n,e,void 0,void 0,TE().name+"-fallBackAvatarClass"),Ye}}(n,t)),Ye}}function SP(t,e,n){Wj(t,e,iR().PERSON_PICTURE_LOOKUP_ADAPTER,bP(n))}function vP(t,e,n,i,o,r,s,a){return function(c){c.attrs.onClick=function(t){return function(e){return ty().stopEventPropagation_za3rmp$(e),null!=t&&t(),Ye}}(t);var l=e,u=n,h=i,d=o,p=c.css;return kr(p,l),Mr(p,new ai(u.toString()+"px")),Lr(p,new ai(u.toString()+"px")),Zr(p,h),ei(p,d),null==r&&Rp(c,s,void 0,void 0,a),Ye}}function CP(t,e,n,i,o,r,s,a,c,l){void 0===n&&(n=null),void 0===i&&(i=new Fr(TE().theme.palette.background.paper)),void 0===o&&(o=new Fr(TE().theme.palette.action.disabled)),void 0===r&&(r=50),void 0===s&&(s=C_(1)),void 0===a&&(a="square"),void 0===c&&(c=TE().name+"-"+(r<=50?"defaultThumbnailClass":51<=r&&r<=69?"mediumThumbnailClass":"maxThumbnailClass")),void 0===l&&(l=null),ed(t,n,void 0,void 0,a,void 0,void 0,void 0,vP(l,s,r,o,i,n,e,c))}function NP(t){return TE().alignTextToStart(t.css),Ye}function TP(t,e,n,i){void 0===n&&(n=null),void 0===i&&(i=0);var o=Sa.Companion.invoke_f6ihu2$(iP),r=o.css;r.unaryPlus_uoyjcc$(TE().defaultMarginBottom),r.unaryPlus_uoyjcc$(TE().defaultMarginTop),i>0&&Pr(r,C_(i)),O_(o,e,null!=n?n:"body2",void 0,void 0,void 0,void 0,void 0,void 0,NP),t.child_30b5ua$(o.create())}function LP(t){return TE().alignTextToStart(t.css),Ye}function zP(t){return TE().alignTextToStart(t.css),Ye}function wP(t,e,n){return function(i){return null!=t&&(i.attrs.onClick=function(t){return function(){return t(),Ye}}(t)),O_(i,In(e),"body1",void 0,void 0,void 0,void 0,void 0,void 0,LP),null==n||Pa(n)||O_(i,n,"body2",void 0,void 0,void 0,void 0,void 0,void 0,zP),Ye}}function OP(t,e,n,i,o){return function(r){var s=t,a=r.css;a.unaryPlus_uoyjcc$(TE().defaultMarginTop);var c=TE(),l=!Je(s,"0");return l&&(l=!(null==s||0===s.length)),Zn(a,c.displayProperty_dqye30$(l,!0)),$P(r,rp(),e?op():rp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return null!=t&&Rp(e,t,void 0,void 0,TE().name+"-detailIconClass"),Ye}}(n)),$P(r,pp(),e?_p():pp(),void 0,void 0,void 0,void 0,void 0,wP(i,t,o)),Ye}}function RP(t,e,n,i,o,r){void 0===e&&(e=null),void 0===i&&(i=null),void 0===o&&(o=!1),void 0===r&&(r=null),gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,OP(n,o,e,r,i))}function AP(t){return TE().gridListSecondaryItemIcons(t.css),Ye}function xP(t,e){Rp(t,"circle",e>.8?"primary":e>.6?"inherit":"error",void 0,void 0,AP)}function IP(t){return kr(t.css,Br(4)),Ye}function UP(t,e,n){void 0===n&&(n="add");var i=Sa.Companion.invoke_f6ihu2$(iP);TE().listItemCreateNewDiv(i.css),Bp(i,n,TE().name+"-listCreateNewIconClass"),O_(i,e,"button",void 0,void 0,void 0,void 0,void 0,void 0,IP),t.child_30b5ua$(i.create())}function DP(t,e,n){return function(i){return O_(i,t,e,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n=t,i=e.css;return i.unaryPlus_uoyjcc$(TE().alignTextToStart),null!=n&&0!==n.length||kr(i,C_(2)),Ye}}(n)),Ye}}function PP(t){return TE().alignTextToStart(t.css),Ye}function MP(t,e,n){return function(i){return null!=t&&$P(i,mp(),void 0,void 0,void 0,void 0,void 0,void 0,DP(t,e,n)),null!=n&&$P(i,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t,"body2",void 0,void 0,void 0,void 0,void 0,void 0,PP),Ye}}(n)),Ye}}function kP(t,e,n,i,o,r){return function(s){return $P(s,sp(),t?op():rp(),void 0,void 0,void 0,void 0,void 0,function(t,e){return function(n){return CP(n,t,void 0,void 0,void 0,void 0,void 0,e),Ye}}(e,n)),$P(s,dp(),t?_p():pp(),void 0,void 0,void 0,void 0,void 0,function(t,e,n){return function(i){return gP(i,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,MP(t,e,n)),Ye}}(i,o,r)),Ye}}function jP(t,e,n,i,o,r,s){void 0===n&&(n=null),void 0===i&&(i=null),void 0===o&&(o=!1),void 0===r&&(r="circular"),void 0===s&&(s="body1"),gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,kP(o,e,r,n,s,i))}function GP(t){return TE().alignTextToStart(t.css),Ye}function qP(t){return TE().alignTextToStart(t.css),Ye}function FP(t,e){return function(n){return $P(n,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t,"body1",void 0,void 0,void 0,void 0,void 0,void 0,GP),Ye}}(t)),$P(n,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t,"body2",void 0,void 0,void 0,void 0,void 0,void 0,qP),Ye}}(e)),Ye}}function BP(t){return TE().defaultMarginTop(t.css),Ye}function WP(t,e){return function(n){TE().alignCenterItems(n.css);var i=Sa.Companion.invoke_f6ihu2$(oP),o=t,r=e;return Mr(i.css,Br(40)),xp(i,o,void 0,void 0,function(t){return function(e){return ty().stopEventPropagation_za3rmp$(e),t(!0,e),Ye}}(r),"medium",void 0,void 0,void 0,void 0,void 0,BP),n.child_30b5ua$(i.create()),Ye}}function HP(t,e,n,i,o,r){return function(s){return s.attrs.onClick=function(t){return function(e){return ty().stopEventPropagation_za3rmp$(e),t(!1,e.nativeEvent),Ye}}(t),$P(s,rp(),e?op():rp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return SP(e,ch,t),Ye}}(n)),$P(s,hp(),e?pp():hp(),void 0,void 0,void 0,void 0,void 0,function(t,e){return function(n){return gP(n,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,FP(t,e)),Ye}}(i,o)),$P(s,rp(),e?op():rp(),void 0,void 0,void 0,void 0,void 0,WP(r,t)),Ye}}function VP(t,e,n,i,o,r,s){void 0===r&&(r=!1),gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,HP(s,r,e,i,o,n))}function KP(t){return TE().alignTextToStart(t.css),Ye}function XP(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().alignTextToStart),e.unaryPlus_uoyjcc$(TE().gridListSecondaryItemDesc),Ye}function JP(t){return function(e){var n=Sa.Companion.invoke_f6ihu2$(oP),i=t;return Mr(n.css,Br(50)),xp(n,"check",void 0,void 0,function(t){return function(e){return ty().stopEventPropagation_za3rmp$(e),null!=t&&t(),Ye}}(i),"small",void 0,void 0,void 0,void 0,TE().name+"-successClass"),e.child_30b5ua$(n.create()),Ye}}function YP(t){return function(e){var n=Sa.Companion.invoke_f6ihu2$(oP),i=t;return Mr(n.css,Br(50)),xp(n,"close",void 0,void 0,function(t){return function(e){return ty().stopEventPropagation_za3rmp$(e),null!=t&&t(),Ye}}(i),"small",void 0,void 0,void 0,void 0,TE().name+"-errorClass"),e.child_30b5ua$(n.create()),Ye}}function QP(t,e){return function(n){return gP(n,void 0,void 0,void 0,void 0,yp(),void 0,void 0,void 0,function(t,e){return function(n){return $P(n,ap(),void 0,void 0,void 0,void 0,void 0,void 0,JP(t)),$P(n,ap(),void 0,void 0,void 0,void 0,void 0,void 0,YP(e)),Ye}}(t,e)),Ye}}function ZP(t,e,n,i,o){return function(r){return t>=0&&$P(r,hp(),void 0,void 0,void 0,void 0,void 0,Yn.row,function(t,e){return function(n){var i=Sa.Companion.invoke_f6ihu2$(oP),o=t;return ts(i.css,void 0,C_(2)),xP(i,o),n.child_30b5ua$(i.create()),O_(n,null!=e?fy(e,[lc(t)]):null,void 0,void 0,void 0,void 0,void 0,void 0,void 0,XP),Ye}}(t,e)),n&&$P(r,sp(),void 0,void 0,void 0,void 0,void 0,void 0,QP(i,o)),Ye}}function tM(t,e,n,i,o,r,s){return function(a){return $P(a,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t,"h6",void 0,void 0,void 0,void 0,void 0,void 0,KP),Ye}}(t)),e&&gP(a,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,ZP(n,i,o,r,s)),Ye}}function eM(t,e,n,i,o,r,s,a){return function(c){return $P(c,sp(),op(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return SP(e,t,"person"),Ye}}(t)),$P(c,dp(),_p(),void 0,void 0,void 0,void 0,void 0,function(t,e,n,i,o,r,s){return function(a){return gP(a,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,tM(t,e,n,i,o,r,s)),Ye}}(e,n,i,o,r,s,a)),Ye}}function nM(t,e,n,i,o,r,s,a,c){void 0===i&&(i=!1),void 0===o&&(o=-1),void 0===r&&(r=null),void 0===s&&(s=!0),void 0===a&&(a=null),void 0===c&&(c=null),gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,eM(e,n,s,o,r,i,c,a))}function iM(t){return TE().alignTextToStart(t.css),Ye}function oM(t){return TE().alignTextToStart(t.css),Ye}function rM(t){return kr(t.css,Br(1)),Ye}function sM(t){return TE().alignTextToStart(t.css),Ye}function aM(t){return TE().alignTextToStart(t.css),Ye}function cM(t){return TE().studentProgressBar(t.css),Ye}function lM(t){return TE().alignTextToStart(t.css),Ye}function uM(t){return TE().studentProgressBar(t.css),Ye}function hM(t){return TE().alignTextToStart(t.css),Ye}function dM(t){return kr(t.css,Br(1)),Ye}function pM(t){return TE().alignTextToStart(t.css),Ye}function _M(t,e){return function(n){var i,o,r,s;$P(n,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,In(t.firstNames)+" "+In(t.lastName),"h6",void 0,void 0,void 0,void 0,void 0,void 0,iM),Ye}}(t)),$P(n,mp(),void 0,void 0,void 0,void 0,void 0,Yn.row,function(t,e){return function(n){var i=Sa.Companion.invoke_f6ihu2$(oP),o=t,r=e;if(ts(i.css,void 0,C_(4)),O_(i,o.attempts.toString()+" "+r.getString(2116,i),"body1",void 0,void 0,void 0,void 0,!0,void 0,oM),n.child_30b5ua$(i.create()),t.duration.toNumber()>6e4){var s=Sa.Companion.invoke_f6ihu2$(oP);ts(s.css,void 0,C_(2)),Rp(s,"timer",void 0,"small",void 0,rM),n.child_30b5ua$(s.create());var a=Sa.Companion.invoke_f6ihu2$(oP),c=t,l=e;ts(a.css,void 0,C_(2)),O_(a,py(c.duration,l),"body1",void 0,void 0,void 0,void 0,!0,void 0,sM),n.child_30b5ua$(a.create())}return Ye}}(t,e)),t.startDate.compareTo_11rb$(ra)>0&&$P(n,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,_y(t.startDate,t.endDate),"body1",void 0,void 0,void 0,void 0,void 0,void 0,aM),Ye}}(t)),(null!=(o=null!=(i=t.scoreProgress)?i.progress:null)?o:0)>0&&$P(n,mp(),void 0,void 0,void 0,void 0,void 0,Yn.row,function(t,e){return function(n){var i,o;Zp(n,null!=(o=null!=(i=t.scoreProgress)?i.progress:null)?o:null,void 0,"determinate",void 0,void 0,cM);var r,s,a=Sa.Companion.invoke_f6ihu2$(oP),c=e,l=t;return ts(a.css,void 0,void 0,void 0,C_(4)),O_(a,fy(c.getString(2530,a),[null!=(s=null!=(r=l.scoreProgress)?r.progress:null)?s:0]),"body1",void 0,void 0,void 0,void 0,!0,void 0,lM),n.child_30b5ua$(a.create()),Ye}}(t,e)),(null!=(s=null!=(r=t.scoreProgress)?r.resultMax:null)?s:0)>0&&$P(n,mp(),void 0,void 0,void 0,void 0,void 0,Yn.row,function(t,e){return function(n){var i,o;Zp(n,null!=(o=null!=(i=t.scoreProgress)?i.resultMax:null)?o:null,void 0,"determinate",void 0,void 0,uM);var r,s,a=Sa.Companion.invoke_f6ihu2$(oP),c=e,l=t;return ts(a.css,void 0,void 0,void 0,C_(4)),O_(a,fy(c.getString(2531,a),[null!=(s=null!=(r=l.scoreProgress)?vc(r):null)?s:0]),"body1",void 0,void 0,void 0,void 0,!0,void 0,hM),n.child_30b5ua$(a.create()),Ye}}(t,e));var a=t.latestPrivateComment;return null!=a&&0!==a.length&&$P(n,mp(),void 0,void 0,void 0,void 0,void 0,Yn.row,function(t){return function(e){var n=Sa.Companion.invoke_f6ihu2$(oP);return ts(n.css,void 0,C_(4)),Rp(n,"comment",void 0,"small",void 0,dM),e.child_30b5ua$(n.create()),O_(e,t.latestPrivateComment,"body2",void 0,void 0,void 0,void 0,!0,void 0,pM),Ye}}(t)),Ye}}function mM(t,e,n){return function(i){var o=new ai("4px");return ts(i.css,o,void 0,o),$P(i,sp(),t?op():rp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return SP(e,t.personUid,"person"),Ye}}(e)),$P(i,dp(),t?_p():pp(),void 0,void 0,void 0,void 0,void 0,function(t,e){return function(n){return gP(n,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,_M(t,e)),Ye}}(e,n)),Ye}}function fM(t,e,n,i){void 0===i&&(i=!1),gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,mM(i,e,n))}function gM(t){return TE().alignTextToStart(t.css),Ye}function $M(t){return kr(t.css,Br(1)),Ye}function EM(t){return TE().alignTextToStart(t.css),Ye}function yM(t){return function(e){$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,In(t.name),"h6",void 0,void 0,void 0,void 0,void 0,void 0,gM),Ye}}(t));var n=t.latestPrivateComment;return null!=n&&0!==n.length&&$P(e,mp(),void 0,void 0,void 0,void 0,void 0,Yn.row,function(t){return function(e){var n=Sa.Companion.invoke_f6ihu2$(oP);return ts(n.css,void 0,C_(4)),Rp(n,"comment",void 0,"small",void 0,$M),e.child_30b5ua$(n.create()),O_(e,t.latestPrivateComment,"body2",void 0,void 0,void 0,void 0,!0,void 0,EM),Ye}}(t)),Ye}}function bM(t){return kr(t.css,Br(1)),Ye}function SM(t){return TE().alignTextToStart(t.css),Ye}function vM(t,e,n){return function(i){var o=new ai("4px");return ts(i.css,o,void 0,o),$P(i,sp(),t?op():rp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return SP(e,t.submitterUid,"person"),Ye}}(e)),$P(i,lp(),t?hp():up(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return gP(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,yM(t)),Ye}}(e)),0!==e.fileSubmissionStatus&&$P(i,sp(),void 0,void 0,void 0,void 0,void 0,Yn.row,function(t,e){return function(n){var i,o,r=Sa.Companion.invoke_f6ihu2$(oP);return ts(r.css,void 0,C_(1)),Rp(r,"check",void 0,"small",void 0,bM),n.child_30b5ua$(r.create()),o=null!=(i=Da.SubmissionConstants.STATUS_MAP.get_11rb$(e.fileSubmissionStatus))?i:0,O_(n,t.getString(o,n),"body2",void 0,void 0,void 0,void 0,!0,void 0,SM),Ye}}(n,e)),Ye}}function CM(t,e,n,i){void 0===i&&(i=!1),gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,vM(i,e,n))}function NM(t){return TE().alignTextToStart(t.css),Ye}function TM(t){return TE().alignTextToStart(t.css),Ye}function LM(t){return function(e){return $P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t.fullName(),"h6",void 0,void 0,void 0,void 0,void 0,void 0,NM),Ye}}(t)),$P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n=t.username;return O_(e,null==n||0===n.length?"":"@"+In(t.username),"body1",void 0,void 0,void 0,void 0,!0,void 0,TM),Ye}}(t)),Ye}}function zM(t){return function(e){var n=new ai("4px");return ts(e.css,n,void 0,n),$P(e,sp(),op(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return SP(e,t.personUid,"person"),Ye}}(t)),$P(e,dp(),_p(),void 0,void 0,void 0,void 0,void 0,LM(t)),Ye}}function wM(t,e){gP(t,vp(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,zM(e))}function OM(t){return TE().alignTextToStart(t.css),Ye}function RM(t,e,n,i,o){return function(r){return $P(r,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t,"h6",void 0,void 0,void 0,void 0,void 0,void 0,OM),Ye}}(t)),$P(r,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t,e,n,i){return function(o){return nw(o,t,e,n,i),Ye}}(e,n,i,o)),Ye}}function AM(t,e,n,i,o,r,s,a){return function(c){c.attrs.onClick=function(t){return function(e){return null!=t&&t(),Ye}}(t);var l=new ai("4px");return ts(c.css,l,void 0,l),$P(c,sp(),op(),void 0,void 0,void 0,void 0,void 0,function(t,e){return function(n){return SP(n,t,e),Ye}}(e,n)),$P(c,dp(),_p(),void 0,void 0,void 0,void 0,void 0,RM(i,o,r,s,a)),Ye}}function xM(t,e,n,i,o,r,s,a,c){void 0===n&&(n=null),void 0===a&&(a=ch),void 0===c&&(c=null),gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,AM(c,a,i,e,n,o,r,s))}function IM(t){return CP(t,"assignment",void 0,void 0,void 0,void 0,void 0,"circular"),Ye}function UM(t,e){return function(n){var i,o;return O_(n,null!=(o=null!=(i=t.assignment)?i.caTitle:null)?o:"","body1",void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n=t,i=e.css;return i.unaryPlus_uoyjcc$(TE().alignTextToStart),Ns(i,Cs(n?1.2:1.4)),Ye}}(e)),Ye}}function DM(t,e){return function(n){var i,o;return o=null!=(i=t.assignment)?i.caDescription:null,O_(n,Cm().clean_pdl1vj$(o),"body2",void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n=t,i=e.css;return i.unaryPlus_uoyjcc$(TE().alignTextToStart),Ns(i,Cs(n?1:1.1)),Ye}}(e)),Ye}}function PM(t){return kr(t.css,Br(1)),Ye}function MM(t){return TE().alignTextToStart(t.css),Ye}function kM(t){return TE().alignTextToStart(t.css),Ye}function jM(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().alignTextToStart),ei(e,Fr.Companion.red),Ye}function GM(t){return kr(t.css,Br(1)),Ye}function qM(t){return TE().alignTextToStart(t.css),Ye}function FM(t){return TE().alignTextToStart(t.css),Ye}function BM(t,e,n,i){return function(o){var r;$P(o,mp(),void 0,void 0,void 0,void 0,void 0,void 0,UM(t,e));var s=null!=(r=t.assignment)?r.caDescription:null;return null!=s&&0!==s.length&&$P(o,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t,e){return function(n){return $P(n,mp(),void 0,void 0,void 0,void 0,void 0,void 0,DM(t,e)),Ye}}(t,e)),$P(o,mp(),void 0,void 0,void 0,void 0,void 0,Yn.row,function(t,e,n){return function(i){var o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v=dy(t.cbDeadlineDate,!0);if(null!=v){var C=Sa.Companion.invoke_f6ihu2$(oP);ts(C.css,void 0,C_(1)),Rp(C,"event",void 0,"small",void 0,PM),i.child_30b5ua$(C.create());var N=Sa.Companion.invoke_f6ihu2$(oP),T=e;ts(N.css,void 0,C_(4)),O_(N,iy(v,T),"body1",void 0,void 0,void 0,void 0,!0,void 0,MM),i.child_30b5ua$(N.create())}if(null!=(null!=(o=t.assignment)?o.mark:null)){var L,z,w=Sa.Companion.invoke_f6ihu2$(oP),O=t,R=n;ts(w.css,void 0,C_(4)),O_(w,In(null!=(z=null!=(L=O.assignment)?L.mark:null)?z.camMark:null)+" / "+O.cbMaxPoints+" "+R.getString(2590,w),"body1",void 0,void 0,void 0,void 0,!0,void 0,kM),i.child_30b5ua$(w.create())}if(null!=(null!=(r=t.assignment)?r.mark:null)&&0!==(null!=(a=null!=(s=t.assignment)?s.mark:null)?a.camPenalty:null)){var A=Sa.Companion.invoke_f6ihu2$(oP),x=n,I=t;ts(A.css,void 0,C_(4)),O_(A,fy(x.getString(2596,A),[I.cbLateSubmissionPenalty]),"body1",void 0,void 0,void 0,void 0,!0,void 0,jM),i.child_30b5ua$(A.create())}if(!1===(null!=(l=null!=(c=t.assignment)?c.progressSummary:null)?l.hasMetricsPermission:null)){if(0!==(null!=(u=t.assignment)?u.fileSubmissionStatus:null)){var U,D,P,M=Sa.Companion.invoke_f6ihu2$(oP),k=t;ts(M.css,void 0,C_(1)),Rp(M,null!=(P=Nb().ASSIGNMENT_STATUS_MAP.get_11rb$(null!=(D=null!=(U=k.assignment)?U.fileSubmissionStatus:null)?D:0))?P:"",void 0,"small",void 0,GM),i.child_30b5ua$(M.create())}_=null!=(p=Da.SubmissionConstants.STATUS_MAP.get_11rb$(null!=(d=null!=(h=t.assignment)?h.fileSubmissionStatus:null)?d:0))?p:0,O_(i,n.getString(_,i),"body1",void 0,void 0,void 0,void 0,!0,void 0,qM)}return!0===(null!=(f=null!=(m=t.assignment)?m.progressSummary:null)?f.hasMetricsPermission:null)&&O_(i,fy(n.getString(2620,i),[In(null!=($=null!=(g=t.assignment)?g.progressSummary:null)?$.calculateNotSubmittedStudents():null),n.getString(2570,i),In(null!=(y=null!=(E=t.assignment)?E.progressSummary:null)?y.submittedStudents:null),n.getString(2569,i),In(null!=(S=null!=(b=t.assignment)?b.progressSummary:null)?S.markedStudents:null),n.getString(2597,i)]),"body1",void 0,void 0,void 0,void 0,!0,void 0,FM),Ye}}(t,n,i)),Ye}}function WM(t,e,n,i){return function(o){var r=new ai("4px"),s=C_(3*t.cbIndentLevel|0);return ts(o.css,r,void 0,r,s),$P(o,rp(),op(),void 0,void 0,void 0,void 0,void 0,IM),$P(o,pp(),_p(),void 0,void 0,void 0,void 0,void 0,function(t,e,n,i){return function(o){return gP(o,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,BM(t,e,n,i)),Ye}}(t,e,n,i)),Ye}}function HM(t,e,n,i,o){void 0===i&&(i=null),void 0===o&&(o=!1),gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,WM(e,o,i,n))}function VM(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().alignTextToStart),kr(e,C_(2)),Ye}function KM(t,e,n,i){return function(o){var r,s,a,c,l,u,h,d;if(r=In(t.text),a=null!=(s=t.errorText)?s:"",c=t.error,null!=n){var p,_=n,m=Xo(Ko(_,10));for(p=_.iterator();p.hasNext();){var f=p.next();m.add_11rb$(new qa(f.optionId.toString(),f.toString()))}d=m}else d=null;return u=null!=(l=d)?yr(l):null,h=function(t){return function(e){return t(e),Ye}}(i),b_(o,r,e,a,void 0,u,void 0,h,void 0,void 0,c),Ye}}function XM(t,e,n,i,o,r){return function(s){return $P(s,rp(),op(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return CP(e,t,void 0,void 0,void 0,void 0,void 0,"circular"),Ye}}(t)),$P(s,hp(),dp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,null!=t?t:"","h6",void 0,void 0,void 0,void 0,void 0,void 0,VM),Ye}}(e)),$P(s,rp(),void 0,void 0,void 0,void 0,void 0,void 0,KM(n,i,o,r)),Ye}}function JM(t,e,n,i,o,r,s){gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,XM(n,i,r,e,o,s))}function YM(t){return CP(t,"person",void 0,void 0,void 0,void 0,void 0,"circular"),Ye}function QM(t,e,n,i,o,r){return function(s){var a,c=Sa.Companion.invoke_f6ihu2$(iP),l=t,u=e,h=n,d=i,p=o,_=r;return Dr(c.css,l?u.isRtlActive()?Ur.right:Ur.left:u.isRtlActive()?Ur.left:Ur.right),Zz(c,h,l,new Yz,u,d,p),O_(c,null!=(a=dy(_))?cy(a,u.getDisplayedLocale_za3rmp$(c)):null,"body2",void 0,void 0,void 0,void 0,void 0,void 0,function(t,e){return function(n){var i=t,o=e,r=n.css;return Ns(r,Cs(.9)),ei(r,new Fr(TE().theme.palette.action.disabled)),Ms(r,C_(0),C_(1)),cs(r,Br(4)),Dr(r,i?o.isRtlActive()?Ur.right:Ur.left:o.isRtlActive()?Ur.left:Ur.right),Ye}}(l,u)),s.child_30b5ua$(c.create()),Ye}}function ZM(t,e,n,i,o,r,s,a){var c,l,u,h,d,p;void 0===e&&(e=!0),gP(t,Ep(),void 0,void 0,e?Yn.row:Yn.rowReverse,void 0,void 0,void 0,void 0,(c=e,l=o,u=i,h=r,d=s,p=a,function(t){return cs(t.css,C_(2)),c&&$P(t,rp(),op(),void 0,void 0,void 0,void 0,void 0,YM),$P(t,hp(),void 0,void 0,void 0,void 0,void 0,void 0,QM(c,l,u,h,d,p)),Ye}))}function tk(t){return CP(t,"person",void 0,void 0,void 0,void 0,void 0,"circular"),Ye}function ek(t){return t.css.unaryPlus_uoyjcc$(TE().alignTextToStart),Ye}function nk(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().alignTextToStart),kr(e,C_(1)),Ye}function ik(t){return t.css.unaryPlus_uoyjcc$(TE().alignCenterItems),Ye}function ok(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().alignTextToStart),Ns(e,Cs(.8)),Ye}function rk(t){return function(e){var n=e.css;return Zn(n,Qn.flex),us(n,ls.center),bs(n,ys.center),t>0&&ed(e,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n=e.css;return Mr(n,C_(3)),Lr(n,C_(3)),ei(n,Fr.Companion.white),Zr(n,new Fr(TE().theme.palette.primary.dark)),O_(e,(t>9?"9+":t).toString(),"body1",void 0,void 0,void 0,void 0,void 0,void 0,ok),Ye}}(t)),Ye}}function sk(t,e){return function(n){return $P(n,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t,"body1",void 0,void 0,void 0,void 0,void 0,void 0,ik),Ye}}(t)),$P(n,void 0,void 0,void 0,void 0,void 0,void 0,void 0,rk(e)),Ye}}function ak(t,e,n,i){return function(o){return $P(o,rp(),op(),void 0,void 0,void 0,void 0,void 0,tk),$P(o,hp(),dp(),void 0,void 0,void 0,void 0,void 0,function(t,e){return function(n){return O_(n,t,"h6",void 0,void 0,void 0,void 0,void 0,void 0,ek),O_(n,e,"body1",void 0,void 0,void 0,void 0,void 0,void 0,nk),Ye}}(t,e)),$P(o,rp(),void 0,void 0,void 0,Yd(),void 0,void 0,sk(n,i)),Ye}}function ck(t,e,n,i,o){void 0===o&&(o=0),gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,ak(e,n,i,o))}function lk(t){return CP(t,"person",void 0,void 0,void 0,void 0,void 0,"circular"),Ye}function uk(t){return t.css.unaryPlus_uoyjcc$(TE().alignTextToStart),Ye}function hk(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().alignTextToStart),kr(e,C_(1)),Ye}function dk(t){return t.css.unaryPlus_uoyjcc$(TE().alignCenterItems),Ye}function pk(t){return t.css.unaryPlus_uoyjcc$(TE().alignCenterItems),Ye}function _k(t,e,n){return function(i){return $P(i,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t,"body1",void 0,void 0,void 0,void 0,void 0,void 0,dk),Ye}}(t)),$P(i,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t,e){return function(n){return O_(n,fy(t.getString(2903,n),[e]),"body1",void 0,void 0,void 0,void 0,void 0,void 0,pk),Ye}}(e,n)),Ye}}function mk(t){return kr(t.css,Br(1)),Ye}function fk(t){return TE().alignTextToStart(t.css),Ye}function gk(t,e,n,i,o,r){return function(s){return $P(s,rp(),op(),void 0,void 0,void 0,void 0,void 0,lk),$P(s,hp(),dp(),void 0,void 0,void 0,void 0,void 0,function(t,e){return function(n){return O_(n,t,"h6",void 0,void 0,void 0,void 0,void 0,void 0,uk),O_(n,e,"body1",void 0,void 0,void 0,void 0,void 0,void 0,hk),Ye}}(t,e)),$P(s,rp(),void 0,void 0,void 0,Yd(),void 0,void 0,_k(n,i,o)),$P(s,mp(),void 0,void 0,void 0,void 0,void 0,Yn.row,function(t){return function(e){if(null!=t){var n=Sa.Companion.invoke_f6ihu2$(oP);ts(n.css,void 0,C_(1)),Rp(n,"chat",void 0,"small",void 0,mk),e.child_30b5ua$(n.create());var i=Sa.Companion.invoke_f6ihu2$(oP),o=t;ts(i.css,void 0,C_(4)),O_(i,o,"body1",void 0,void 0,void 0,void 0,!0,void 0,fk),e.child_30b5ua$(i.create())}return Ye}}(r)),Ye}}function $k(t,e,n,i,o,r,s){void 0===r&&(r=0),gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,gk(e,n,o,s,r,i))}function Ek(t){return Wr(t.css,C_(2)),Ye}function yk(t,e,n,i){return function(o){t&&r_(o,void 0,function(t){return function(e){return Rp(e,"reorder",t?"disabled":"inherit",void 0,TE().name+"-dragToReorderClass",Ek),Ye}}(e));var r=Sa.Companion.invoke_f6ihu2$(iP),s=n,a=i;return Ss(r.css,s),CP(r,a,void 0,void 0,void 0,void 0,void 0,"circular"),o.child_30b5ua$(r.create()),Ye}}function bk(t,e,n){return function(i){return O_(i,null!=t?t:"","body1",void 0,void 0,void 0,void 0,void 0,void 0,function(t,e){return function(n){var i=t,o=e,r=n.css;return r.unaryPlus_uoyjcc$(TE().alignTextToStart),i&&o&&r.unaryPlus_uoyjcc$(TE().textGrayedOut),Ns(r,Cs(1.2)),Ye}}(e,n)),Ye}}function Sk(t,e,n){return function(i){return O_(i,t,"body2",void 0,void 0,void 0,void 0,void 0,void 0,function(t,e){return function(n){var i=t,o=e,r=n.css;return r.unaryPlus_uoyjcc$(TE().alignTextToStart),i&&o&&r.unaryPlus_uoyjcc$(TE().textGrayedOut),Ns(r,Cs(1)),Ye}}(e,n)),Ye}}function vk(t,e,n,i,o){return function(r){return gP(r,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t,e,n,i,o){return function(r){var s=t;return Ss(r.css,s),$P(r,mp(),void 0,void 0,void 0,void 0,void 0,void 0,bk(e,n,i)),null!=o&&$P(r,mp(),void 0,void 0,void 0,void 0,void 0,void 0,Sk(o,n,i)),Ye}}(t,e,n,i,o)),Ye}}function Ck(t,e,n,i,o){return function(r){TE().alignEndItems(r.css);var s=Sa.Companion.invoke_f6ihu2$(oP),a=t,c=e,l=n,u=i,h=o,d=s.css;return Pr(d,Ir(50)),kr(d,Ir(15)),Mr(d,Br(40)),xp(s,a,void 0,void 0,function(t){return function(e){return ty().stopEventPropagation_za3rmp$(e),null!=t&&t(e),Ye}}(h),void 0,void 0,l&&u?"disabled":"inherit",c),r.child_30b5ua$(s.create()),Ye}}function Nk(t,e,n,i,o,r,s,a,c,l,u){var h;void 0===o&&(o=null),void 0===r&&(r=!1),void 0===s&&(s=!1),void 0===a&&(a=""),void 0===c&&(c=!1),void 0===l&&(l=""),void 0===u&&(u=null);var d,p,_,m,f,g,$,E,y,b,S=null!=(h=iv().BLOCK_ICON_MAP.get_11rb$(e))?h:"",v=C_(3*n|0);gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,(d=r,p=c,_=v,m=S,f=s,g=i,$=o,E=a,y=l,b=u,function(t){return $P(t,rp(),d?rp():op(),void 0,void 0,void 0,void 0,Yn.row,yk(d,p,_,m)),$P(t,f?hp():pp(),f?d?dp():pp():_p(),void 0,void 0,void 0,void 0,void 0,vk(_,g,d,p,$)),f&&$P(t,rp(),op(),void 0,void 0,void 0,void 0,void 0,Ck(E,y,p,d,b)),Ye}))}function Tk(t){return TE().alignTextToStart(t.css),Ye}function Lk(t){return TE().alignTextToStart(t.css),Ye}function zk(t,e){return function(n){return Gr(n.css,new ai("8px")),$P(n,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t,"body1",void 0,!0,void 0,void 0,void 0,void 0,Tk),Ye}}(t)),null!=e&&$P(n,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t,"body2",void 0,!0,void 0,void 0,void 0,void 0,Lk),Ye}}(e)),Ye}}function wk(t,e){return function(n){TE().alignCenterItems(n.css);var i=Sa.Companion.invoke_f6ihu2$(oP),o=t,r=e;return Mr(i.css,Br(40)),xp(i,o,void 0,void 0,function(t){return function(e){return ty().stopEventPropagation_za3rmp$(e),null!=t&&t(e),Ye}}(r)),n.child_30b5ua$(i.create()),Ye}}function Ok(t,e,n,i,o,r){var s,a,c,l,u;void 0===i&&(i=!1),void 0===o&&(o=null),void 0===r&&(r=null),gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,(s=i,a=e,c=o,l=n,u=r,function(t){return $P(t,s?pp():mp(),s?_p():mp(),void 0,void 0,void 0,void 0,void 0,zk(a,c)),s&&$P(t,rp(),op(),void 0,void 0,void 0,void 0,void 0,wk(l,u)),Ye}))}function Rk(t){return TE().alignTextToStart(t.css),Ye}function Ak(t){return TE().alignTextToStart(t.css),Ye}function xk(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().alignTextToStart),e.unaryPlus_uoyjcc$(TE().gridListSecondaryItemDesc),Ye}function Ik(t,e){return function(n){return $P(n,op(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return xP(e,t),Ye}}(t)),$P(n,ap(),void 0,void 0,void 0,void 0,void 0,void 0,function(t,e){return function(n){return O_(n,fy(t,[lc(e)]),void 0,void 0,void 0,void 0,void 0,void 0,void 0,xk),Ye}}(e,t)),Ye}}function Uk(t,e,n,i){return function(o){return $P(o,mp(),mp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t,"body1",void 0,void 0,void 0,void 0,void 0,void 0,Rk),Ye}}(t)),e.length>0&&$P(o,mp(),mp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t,"body2",void 0,void 0,void 0,void 0,void 0,void 0,Ak),Ye}}(e)),$P(o,mp(),mp(),void 0,void 0,void 0,void 0,void 0,function(t,e){return function(n){return gP(n,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Ik(t,e)),Ye}}(n,i)),Ye}}function Dk(t,e,n,i,o){return function(r){return $P(r,sp(),rp(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return SP(e,ch,t),Ye}}(t)),$P(r,dp(),pp(),void 0,void 0,void 0,void 0,void 0,Uk(e,n,i,o)),Ye}}function Pk(t,e,n,i,o,r){void 0===o&&(o=-1),gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Dk(e,n,i,o,r))}function Mk(t){return function(e){return ed(e,void 0,void 0,void 0,"circular",void 0,void 0,void 0,function(t){return function(e){return Rp(e,t),Ye}}(t)),Ye}}function kk(t){var e=t.css;return bs(e,ys.left),us(e,ls.center),e.unaryPlus_uoyjcc$(TE().alignTextToStart),Ye}function jk(t){return function(e){return $P(e,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t,"body1",void 0,void 0,void 0,void 0,void 0,void 0,kk),Ye}}(t)),Ye}}function Gk(t,e,n){return function(i){return i.attrs.onClick=function(t){return function(e){return null!=t&&t(),Ye}}(t),$P(i,rp(),op(),void 0,void 0,void 0,void 0,void 0,Mk(e)),$P(i,pp(),_p(),void 0,void 0,void 0,void 0,void 0,jk(n)),Ye}}function qk(t,e,n,i){void 0===i&&(i=null),gP(t,Ep(),void 0,void 0,void 0,void 0,void 0,void 0,void 0,Gk(i,e,n))}function Fk(t,e,n,i,o){void 0===e&&(e=null),void 0===n&&(n=null),void 0===i&&(i=C_(1)),void 0===o&&(o=C_(1));var r=Sa.Companion.invoke_f6ihu2$(iP),s=r.css;null!=e&&Pr(s,e),null!=n&&Wr(s,n),null!=i&&kr(s,i),null!=o&&jr(s,o),t.child_30b5ua$(r.create())}function Bk(){return Ye}function Wk(t){var e,n=Bk,i={flexGrow:1};i.display=(e=i,function(){return e.sm="block",Ye}),n.style=i,t.attrs.sx=n;var o=t.css;return Hr(o,1),o.unaryPlus_uoyjcc$(TE().toolbarTitle),Ye}function Hk(){this.key_z74pom$_0=TE().name+"-mainComponentInputSearchClass",this.className=TE().name+"-mainComponentInputSearchClass",this.id="um-search"}function Vk(t){return t.attrs.inputProps=new Hk,Ye}function Kk(t){return kr(t.css,new ai("1.5px")),Ye}function Xk(t,e,n){return function(i){var o=t,r=i.css;return Zn(r,TE().displayProperty_dqye30$(o.showNavigation)),r.unaryPlus_uoyjcc$(TE().mainComponentProfileOuterAvatar),i.attrs.onClick=function(t){return function(e){return null!=t&&t(),Ye}}(e),ed(i,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n;return TE().mainComponentProfileInnerAvatar(e.css),O_(e,null===(n=null!=t?lh(t):null)?null:String.fromCharCode(n),"h5","center",void 0,void 0,void 0,void 0,void 0,Kk),Ye}}(n)),Ye}}function Jk(t,e,n,i,o){return function(r){return(t.showNavigation?TE().mainComponentAppBar:TE().mainComponentAppBarWithNoNav)(r.css),w_(r,void 0,void 0,void 0,function(t,e,n,i,o){return function(r){var s;r.attrs.id="um-toolbar",O_(r,null!=(s=t.appToolbar.title)?s:"","h6",void 0,void 0,!0,"div",void 0,void 0,Wk);var a=Sa.Companion.invoke_f6ihu2$(iP),c=e,l=n,u=a.css;u.unaryPlus_uoyjcc$(TE().mainComponentSearch),Zn(u,TE().displayProperty_dqye30$(c.showSearch));var h=Sa.Companion.invoke_f6ihu2$(iP);return TE().mainComponentSearchIcon(h.css),Rp(h,"search"),a.child_30b5ua$(h.create()),Dp(a,void 0,void 0,void 0,void 0,void 0,void 0,void 0,l,!0,void 0,void 0,void 0,void 0,void 0,void 0,Fr.Companion.white,void 0,void 0,void 0,void 0,void 0,void 0,Vk),r.child_30b5ua$(a.create()),ed(r,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Xk(e,i,o)),Ye}}(e,t,n,i,o)),Ye}}function Yk(t,e,n,i,o,r){void 0===o&&(o=null),td(t,void 0,"fixed",void 0,void 0,Jk(n,e,i,r,o))}function Qk(t){return t.css.unaryPlus_uoyjcc$(TE().personDetailComponentActionIcon),Ye}function Zk(t,e,n,i,o,r){return function(s){return s.attrs.onClick=function(t){return function(e){return t(),Ye}}(t),s.css.unaryPlus_uoyjcc$(TE().personDetailComponentActions),Rp(s,e,void 0,void 0,void 0,Qk),O_(s,n,i,o,!0,void 0,void 0,void 0,r),Ye}}function tj(t,e,n,i,o,r,s,a,c,l){var u,h,d,p,_,m;void 0===o&&(o=null),void 0===r&&(r=!1),void 0===s&&(s="body1"),void 0===a&&(a="left"),void 0===c&&(c=null),r&&$P(t,i,o,void 0,void 0,void 0,void 0,void 0,(u=l,h=e,d=n,p=s,_=a,m=c,function(t){return Qp(t,void 0,void 0,"elevation",void 0,Zk(u,h,d,p,_,m)),Ye}))}function ej(t,e,n){return function(i){var o,r,s,a;return o=In(t.text),r=t.error,s=t.errorText,a=dy(e,!0),Cd(i,o,function(t){return function(e){return t(e),Ye}}(n),a,void 0,s,r,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"outlined"),Ye}}function nj(t,e,n){return function(i){var o,r,s,a;return o=In(t.text),r=t.error,s=t.errorText,a=dy(e,!0),Nd(i,o,function(t){return function(e){return t(e),Ye}}(n),a,void 0,s,r,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"outlined"),Ye}}function ij(t,e,n,i){return function(o){var r,s,a,c,l,u,h;if(r=In(t.text),s=In(null!=e?e.cbCompletionCriteria:null),c=null!=(a=t.errorText)?a:"",l=t.error,null!=n){var d,p=n,_=Xo(Ko(p,10));for(d=p.iterator();d.hasNext();){var m=d.next();_.add_11rb$(new qa(m.optionId.toString(),m.toString()))}h=_}else h=null;return b_(o,r,s,c,void 0,null!=(u=h)?yr(u):null,void 0,function(t){return function(e){var n,i;return i=null!=(n=Fa(e))?n:0,t(i),Ye}}(i),void 0,void 0,l),Ye}}function oj(t,e,n){return function(i){var o,r,s,a,c;return o=In(null!=t?t.text:null),r=null!=t?t.errorText:null,s=In(null!=e?e.cbMinPoints:null),c=null!=(a=null!=t?t.error:null)&&a,$_(i,o,s,r,void 0,"outlined",function(t){return function(e){var n,i;return i=null!=(n=Fa(e))?n:0,null!=t&&t(i),Ye}}(n),void 0,void 0,void 0,c),Ye}}function rj(t,e,n){return function(i){var o,r,s,a;return o=In(t.text),r=t.errorText,s=In(null!=e?e.cbMaxPoints:null),a=t.error,$_(i,o,s,r,void 0,"outlined",function(t){return function(e){var n,i;return i=null!=(n=Fa(e))?n:0,t(i),Ye}}(n),void 0,void 0,void 0,a),Ye}}function sj(t,e,n){return function(i){var o,r,s,a;return o=In(t.text),r=t.error,s=t.errorText,a=dy(e,!0),Cd(i,o,function(t){return function(e){return t(e),Ye}}(n),a,void 0,s,r,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"outlined"),Ye}}function aj(t,e,n){return function(i){var o,r,s,a;return o=In(t.text),r=t.error,s=t.errorText,a=dy(e,!0),Nd(i,o,function(t){return function(e){return t(e),Ye}}(n),a,void 0,s,r,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"outlined"),Ye}}function cj(t,e,n){return function(i){var o,r,s,a;return o=In(t.text),r=t.error,s=t.errorText,a=dy(e,!0),Cd(i,o,function(t){return function(e){return t(e),Ye}}(n),a,void 0,s,r,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"outlined"),Ye}}function lj(t,e,n){return function(i){var o,r,s,a;return o=In(t.text),r=t.error,s=t.errorText,a=dy(e,!0),Nd(i,o,function(t){return function(e){return t(e),Ye}}(n),a,void 0,s,r,void 0,void 0,void 0,void 0,void 0,void 0,void 0,"outlined"),Ye}}function uj(t,e,n){return function(i){var o,r,s,a;return o=In(t.text),r=t.errorText,s=In(null!=e?e.cbLateSubmissionPenalty:null),a=t.error,$_(i,o,s,r,void 0,"outlined",function(t){return function(e){var n,i;return i=null!=(n=Fa(e))?n:0,t(i),Ye}}(n),void 0,void 0,void 0,a),Ye}}function hj(t,e,n,i,o,r,s,a){return function(c){return $P(c,mp(),lp(),void 0,void 0,void 0,void 0,void 0,cj(t,e,n)),$P(c,mp(),lp(),void 0,void 0,void 0,void 0,void 0,lj(i,e,n)),$P(c,mp(),ap(),void 0,void 0,void 0,void 0,void 0,uj(o,r,s)),$P(c,void 0,void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return TP(e,t,"body2"),Ye}}(a)),Ye}}function dj(t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E,y,b,S,v,C,N,T){var L,z,w,O,R,A,x,I,U,D,P,M,k,j,G,q;void 0===N&&(N=null),void 0===T&&(T=null),gP(t,void 0,void 0,void 0,void 0,Sp(),void 0,void 0,void 0,(L=n,z=i,w=r,O=o,function(t){return $P(t,mp(),lp(),void 0,void 0,void 0,void 0,void 0,ej(L,z,w)),$P(t,mp(),lp(),void 0,void 0,void 0,void 0,void 0,nj(O,z,w)),Ye})),$P(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,(R=s,function(t){return TP(t,null!=R?R:"","h6"),Ye})),gP(t,void 0,void 0,void 0,void 0,Sp(),void 0,void 0,void 0,(A=C,x=a,I=e,U=c,D=l,P=N,M=T,function(t){return $P(t,mp(),A?lp():null,void 0,void 0,void 0,void 0,void 0,ij(x,I,U,D)),A&&$P(t,mp(),lp(),void 0,void 0,void 0,void 0,void 0,oj(P,I,M)),Ye})),$P(t,mp(),void 0,void 0,void 0,void 0,void 0,void 0,rj(u,e,h)),gP(t,void 0,void 0,void 0,void 0,Sp(),void 0,void 0,void 0,(k=d,j=_,G=m,q=p,function(t){return $P(t,mp(),lp(),void 0,void 0,void 0,void 0,void 0,sj(k,j,G)),$P(t,mp(),lp(),void 0,void 0,void 0,void 0,void 0,aj(q,j,G)),Ye})),E&&gP(t,void 0,void 0,void 0,void 0,Sp(),void 0,void 0,void 0,hj(f,$,y,g,b,e,S,v))}function pj(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().alignTextToStart),kr(e,new ai("3px")),Ye}function _j(t,e,n){return function(i){i.attrs.onClick=function(t){return function(e){return t(e.nativeEvent),Ye}}(t),$P(i,pp(),_p(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t,"body1",void 0,!0,void 0,void 0,void 0,void 0,pj),Ye}}(e)),$P(i,rp(),op(),void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return e.css.unaryPlus_uoyjcc$(TE().switchMargin),s_(e,t,void 0,"secondary"),Ye}}(n));var o=i.css;return Pr(o,new ai("20px")),kr(o,new ai("16px")),jr(o,new ai("16px")),Ye}}function mj(t,e,n,i){gP(t,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,_j(i,e,n))}function fj(t,e){var n=Sa.Companion.invoke_f6ihu2$(oP),i=n.css;i.unaryPlus_uoyjcc$(TE().alignCenterItems),ts(i,void 0,void 0,void 0,C_(3));var o,r,s=Sa.Companion.invoke_f6ihu2$((o=null,r=null,function(t){return new fl(ml(["alt",o,"src",r]),t)}));TE().partnerItem(s.css),s.attrs.src="assets/"+e,n.child_30b5ua$(s.create()),t.child_30b5ua$(n.create())}function gj(t){return TE().itemContentProgress(t.css),Ye}function $j(t){return function(e){return Wj(e,t.contentEntryUid,$N().ATTACHMENT_URI_LOOKUP_ADAPTER,function(t){return function(e,n){var i,o;CP(e,t.leaf?"class":"folder",n,new Fr(TE().theme.palette.action.disabled),Fr.Companion.transparent,80);var r=null!=(o=null!=(i=t.scoreProgress)?i.progress:null)?o:0;return r>0&&Zp(e,r,void 0,"determinate",void 0,void 0,gj),Ye}}(t)),Ye}}function Ej(t){var e=t.css;return e.unaryPlus_uoyjcc$(TE().alignTextToStart),jr(e,new ai("10px")),Ye}function yj(t){return TE().alignTextToStart(t.css),Ye}function bj(t){return kr(t.css,Br(4)),Ye}function Sj(t,e){return function(n){return t.leaf&&ed(n,void 0,void 0,void 0,void 0,void 0,void 0,TE().name+"-contentEntryListContentAvatarClass",function(t){return function(e){return Rp(e,t,void 0,void 0,TE().name+"-contentEntryListContentTyeIconClass",bj),Ye}}(e)),Ye}}function vj(t){return ty().stopEventPropagation_za3rmp$(t),Ye}function Cj(t){return TE().secondaryActionBtn(t.css),Ye}function Nj(t,e){return function(n){return TE().alignCenterItems(n.css),cd(n,fy(t.getString(2545,n),[""]),"secondary","outlined",void 0,function(t){return function(e){return ty().stopEventPropagation_za3rmp$(e),null!=t&&t(),Ye}}(e)),Ye}}function Tj(t,e,n,i,o){return function(r){return t&&$P(r,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){TE().alignCenterItems(e.css);var n=Sa.Companion.invoke_f6ihu2$(oP),i=t;return Mr(n.css,Br(45)),xp(n,i?"check_circle":"download",void 0,void 0,vj,"medium",void 0,void 0,void 0,void 0,void 0,Cj),e.child_30b5ua$(n.create()),Ye}}(e)),n&&$P(r,mp(),void 0,void 0,void 0,void 0,void 0,void 0,Nj(i,o)),Ye}}function Lj(t,e,n,i,o,r){return function(s){var a,c,l=null!=(a=mT().CONTENT_ENTRY_TYPE_LABEL_MAP.get_11rb$(t.contentTypeFlag))?a:2566,u=null!=(c=mT().CONTENT_ENTRY_TYPE_ICON_MAP.get_11rb$(t.contentTypeFlag))?c:"";return $P(s,rp(),op(),void 0,void 0,void 0,void 0,void 0,Sj(t,u)),$P(s,hp(),dp(),void 0,void 0,void 0,void 0,void 0,function(t,e,n){return function(i){return t.leaf&&O_(i,e.getString(n,i),"body2",void 0,!0),Ye}}(t,e,l)),$P(s,rp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t,e,n,i,o){return function(r){return gP(r,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,Tj(t,e,n,i,o)),Ye}}(n,i,o,e,r)),Ye}}function zj(t,e,n,i,o,r){return function(s){return $P(s,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){return O_(e,t.title,"h6",void 0,void 0,void 0,void 0,void 0,void 0,Ej),Ye}}(t)),$P(s,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t){return function(e){var n;return O_(e,null!=(n=t.description)?Ey(n,ty().isMobile()?8:50):null,"body1",void 0,void 0,void 0,void 0,!0,void 0,yj),Ye}}(t)),$P(s,mp(),void 0,void 0,void 0,void 0,void 0,void 0,function(t,e,n,i,o,r){return function(s){return gP(s,void 0,void 0,void 0,void 0,Ep(),void 0,void 0,void 0,Lj(t,e,n,i,o,r)),Ye}}(t,e,n,i,o,r)),Ye}}function wj(t,e,n,i,o,r,s,a,c){return function(l){var u,h=C_(3*(null!=(u=null!=t?t.cbIndentLevel:null)?u:0)|0);return ts(l.css,void 0,void 0,void 0,h),null!=e&&(l.attrs.onClick=function(t,e){return function(n){return ty().stopEventPropagation_za3rmp$(n),t(e),Ye}}(e,n)),$P(l,ap(),i?rp():op(),void 0,void 0,void 0,void 0,void 0,$j(n)),$P(l,hp(),i?pp():_p(),void 0,void 0,void 0,void 0,void 0,function(t,e,n,i,o,r){return function(s){return gP(s,void 0,void 0,void 0,void 0,void 0,void 0,void 0,void 0,zj(t,e,n,i,o,r)),Ye}}(n,o,r,s,a,c)),Ye}}function Oj(t,e,n,i,o,r,s,a,c,l){void 0===i&&(i=!1),void 0===o&&(o=!1),void 0===r&&(r=!0),void 0===s&&(s=null),void 0===a&&(a=!0),void 0===c&&(c=null),void 0===l&&(l=null),gP(t,void 0,void 0,void 0,void 0,Sp(),void 0,void 0,void 0,wj(c,s,e,a,n,o,r,i,l))}function Rj(t){var e;if(t.resultComplete)switch(t.resultSuccess){case 2:e="done";break;case 1:e="close";break;default:e="query_builder"}else e="query_builder";return e}function Aj(t,e){var n,i=new ci;if(e.resultComplete)switch(e.resultSuccess){case 2:n=t.getString(2090,i);break;case 1:n=t.getString(2089,i);break;case 0:n=t.getString(2093,i);break;default:n=""}else n=t.getString(2092,i);return n+" - "}function xj(t){var n,i,o,r,s,a,c,l,u,h;try{if(null==(n=t.fullStatement))return"";var d=n,p=JSON.parse(d),_={v:(null!=(o=null!=(i=p.object)?i.definition:null)?o.description:null)["en-US"].toString()},m=null!=(r=p.result)?r.response:null;if(!0===(null!=m?m.length>0:null)||!0===(null!=m?oi(m,"[,]"):null)){var f,g,$=Ks(m,["[,]"]),E=null!=(a=null!=(s=p.object)?s.definition:null)?a.choices:null,y=null!=(l=null!=(c=p.object)?c.definition:null)?l.source:null,b=null!=(h=null!=(u=p.object)?u.definition:null)?h.target:null;_.v+="\n";var S=0;for(f=$.iterator();f.hasNext();){var v,C,N,T,L,z,w,O=f.next(),R=Js((S=(g=S)+1|0,g));if(null!=E){var A;t:do{var x;for(x=E.iterator();x.hasNext();){var I=x.next();if(Je(I.id,O)){A=I;break t}}A=null}while(0);w=A}else w=null;var U=null!=(C=null!=(v=w)?v.description:null)?C.get_11rb$("en-US"):null;if(oi(O,"[.]")){var D,P,M=Ks(O,["[.]"]);if(U="",null!=y){var k;t:do{var j;for(j=y.iterator();j.hasNext();){var G=j.next();if(Je(G.id,M.get_za3lpa$(0))){k=G;break t}}k=null}while(0);D=k}else D=null;if(U+=null!=(T=null!=(N=D)?N.description:null)?T.get_11rb$("en-US"):null,U+=" on ",null!=b){var q;t:do{var F;for(F=b.iterator();F.hasNext();){var B=F.next();if(Je(B.id,M.get_za3lpa$(1))){q=B;break t}}q=null}while(0);P=q}else P=null;U+=null!=(z=null!=(L=P)?L.description:null)?z.get_11rb$("en-US"):null}var W=U;_.v+=(R+1|0).toString()+": "+(null==W||0===W.length?O:U)+" \n"}}return _.v}catch(t){if(e.isType(t,_l))return"";throw t}}function Ij(t){return TE().alignTextCenter(t.css),Ye}function Uj(t){return TE().alignTextToStart(t.css),Ye}function Dj(t,e){return function(n){return Qp(n,void 0,void 0,"elevation",void 0,function(t,e){return function(n){var i,o=n.css;return o.unaryPlus_uoyjcc$(TE().personDetailComponentActions),o.unaryPlus_uoyjcc$(TE().alignCenterItems),O_(n,null!=(i=null!=t?t.toString():null)?i:"","h4",void 0,!0,void 0,void 0,void 0,void 0,Ij),O_(n,e,"body1",void 0,!0,void 0,void 0,void 0,void 0,Uj),Ye}}(t,e)),Ye}}function Pj(t,e,n){$P(t,mp(),ap(),void 0,void 0,void 0,void 0,void 0,Dj(e,n))}function Mj(t){return ny(new Date(t),YE)}function kj(t){return Ye}function jj(t,e,n,i,o){if(void 0===e&&(e=null),void 0===n&&(n=400),void 0===i&&(i=JL()),void 0===o&&(o=null),null!=e){var r=Yo(),s=new HL;s.colors=["#009999","#FF9900","#0099FF","#FF3333","#663399","#669999","#FF3366","#990099","#996666","#339933","#FFCC00","#9966CC","#FFCC99","#99FFCC","#0066CC","#66CCFF","#FF66FF","#4D4D4D","#0066FF","#FF6600","#33FFFF","#669933","#808080","#AF4CAB","#0040FF","#99CC66","#B1DEFB","#FF7FAA","#FF8000","#F0AA89","#6AFF6A","#339999","#CCCCCC"];var a,c=s,l=e.seriesData,u=Yo();for(a=l.iterator();a.hasNext();){var h=a.next().dataList;dh(u,h)}var d,p=Yo();for(d=u.iterator();d.hasNext();){var _;null!=(_=d.next().xAxis)&&p.add_11rb$(_)}var m={v:Za(p)};302===e.reportWithFilters.xAxis&&(m.v=Za(ph(m.v,new mh(sP(Mj)))));var f,g=ec([""]),$=e.seriesData,E=Xo(Ko($,10));for(f=$.iterator();f.hasNext();){var y,b=f.next();E.add_11rb$(null!=(y=b.series.reportSeriesName)?y:"")}g.addAll_brywnq$(yr(E)),r.add_11rb$(g);var S,v,C,N=ii([ni("","")]),T=Jo();for(S=m.v.iterator();S.hasNext();){var L,z,w=S.next(),O=ec([null!=(z=null!=(L=e.xAxisValueFormatter)?L.format_za3rmp$(w):null)?z:""]);T.put_xwzc9p$(w,O)}var R,A=0;for(v=e.seriesData.iterator();v.hasNext();){var x=v.next(),I=Js((A=(C=A)+1|0,C)),U=100===x.series.reportSeriesVisualType?"bars":"line";1===e.seriesData.size&&0===I&&(c.seriesType=U),e.seriesData.size>1&&(N[I.toString()]=ii([ni("type",U)]));var D,P=x.dataList,M=Yo();for(D=P.iterator();D.hasNext();){var k=D.next();null!=k.xAxis&&M.add_11rb$(k)}var j,G=Jo();for(j=M.iterator();j.hasNext();){var q,F=j.next(),B=F.xAxis,W=G.get_11rb$(B);if(null==W){var H=Yo();G.put_xwzc9p$(B,H),q=H}else q=W;q.add_11rb$(F)}var V,K=G,X=x.dataList,J=Yo();for(V=X.iterator();V.hasNext();){var Y;null!=(Y=V.next().subgroup)&&J.add_11rb$(Y)}var Q,Z,tt=Za(J);for(Q=m.v.iterator();Q.hasNext();){var et,nt,it,ot,rt,st=Q.next();rt=T.get_11rb$(st),ot=null!=(it=null!=(nt=null!=(et=K.get_11rb$(st))?ou(et):null)?nt.yAxis:null)?it:0,null!=rt&&rt.add_11rb$(ot)}if(!tt.isEmpty())for(Z=tt.iterator();Z.hasNext();){var at,ct,lt=Z.next(),ut=In(x.series.reportSeriesName)+" - "+(null!=(at=x.subGroupFormatter)?at.format_za3rmp$(lt):null);for($c(r).add_11rb$(ut),ct=m.v.iterator();ct.hasNext();){var ht,dt,pt,_t=ct.next();if(null!=(ht=K.get_11rb$(_t))){var mt;t:do{var ft;for(ft=ht.iterator();ft.hasNext();){var gt=ft.next();if(Je(gt.subgroup,lt)){mt=gt;break t}}mt=null}while(0);pt=mt}else pt=null;var $t=pt;null!=$t&&null!=(dt=T.get_11rb$(_t))&&dt.add_11rb$($t.yAxis)}}}for(R=T.values.iterator();R.hasNext();){var Et=R.next();r.add_11rb$(Et)}var yt,bt=Xo(Ko(r,10));for(yt=r.iterator();yt.hasNext();){var St=yt.next();bt.add_11rb$(hh(St))}var vt=hh(bt),Ct=_c(vt).length===uh(vt).length&&vt.length>1;Ct&&QL(t,vt,void 0,Br(n),i,c,void 0,kj),null!=o&&o(Ct)}}function Gj(t,e){var n,i=Sa.Companion.invoke_f6ihu2$((n=null,function(t){return new ol(il("sandbox",null!=n?nl(n):null),t)}));TE().iframeComponentResponsiveIframe(i.css),i.attrs.src="data:text/html;charset=utf-8,
"+In(e)+"
",t.child_30b5ua$(i.create())}function qj(){return Ye}function Fj(t,e,n,i,o,r,s){var a;void 0===n&&(n=!0),void 0===i&&(i=qj),a=n?ga(new kU("create_new_folder",2696,void 0,i)):ri(),HU(t,e,hc(a,Bo([new kU("link",2742,2117,o),new kU("note_add",2746,2119,r)])),Bu(),void 0,s)}function Bj(t,e,n){return function(i){return i.attrs.entityUid=t,i.attrs.lookupAdapter=e,i.attrs.contentBlock=function(t){return function(e,n){return t(e,n),Ye}}(n),Ye}}function Wj(t,e,n,i){t.child_up9nw1$(We(tP),Bj(e,n,i))}function Hj(){return yh.Default.nextLong_3pjtqy$(ra,sa).toString()}function Vj(){return Sh().toString()}function Kj(t,e){return function(n){return e.child_up9nw1$(We(tG),function(t,e){return function(n){return n.attrs.di=t,n.attrs.activeTabRunning=e,Ye}}(t,n)),Ye}}function Xj(t,e){return function(n){return N_(n,t,function(t){return function(e){return tm().dispatch_quwr82$(new nm(t)),ym().init_y8twos$(Kj(t,e)),Ye}}(e)),Ye}}function Jj(t){return function(e){var n=OE().createAppTheme();return wh(e,tm().createStore_7xsz26$(new cm(n)),void 0,Xj(n,t)),Ye}}function Yj(t,e,n,i,o,r,s){ta.call(this,s),this.$controller=r,this.exceptionState_0=1,this.local$closure$dbBuilder=t,this.local$closure$defaultAssetPath=e,this.local$closure$dbNodeIdAndAuth=n,this.local$closure$apiUrl=i,this.local$tmp$_3=void 0,this.local$dbBuilt=void 0,this.local$appConfigs=void 0,this.local$availableLanguages=void 0,this.local$defaultStringsXmlStr=void 0,this.local$displayedLocale=void 0}function Qj(t){var e;Xa.Napier.d_82mfvz$("Index: Window.onLoad");var n,i,o,r,s=window.location.href,a=null!=(e=qE().get_11rb$(Xe.AppConfig.KEY_API_URL))?e:Xs(s,-1!==$h(s,"umapp/")?"umapp/":"#/"),c=Eh(window.location.origin),l="sqlite:"+c,u=oc(bh(localStorage,c+"_nodeId",Hj)),h=bh(localStorage,c+"_nodeAuth",Vj),d=new Ze(u,h),p=new Ch(We(rn),vh.UmAppDatabaseJsImplementations,l,"./worker.sql-wasm.js"),_=Th(xn.Companion.databaseBuilder_un4bw9$(p).addCallback_zdc9ji$(new Nh),d).addMigrations_q7ft3$(hh(Lh()).slice());return Bl(on.GlobalScope,void 0,void 0,(n=_,i="locales/en.xml",o=d,r=a,function(t,e,s){var a=new Yj(n,i,o,r,t,this,e);return s?a:a.doResume(null)}))}function Zj(){fh(),Xa.Napier.base_gqnbhx$(new gh),window.onload=Qj}function tG(t){Fc(t,this),this.showMainComponent_0=!1}Object.defineProperty(Hk.prototype,"key",{configurable:!0,get:function(){return this.key_z74pom$_0},set:function(t){this.key_z74pom$_0=t}}),Hk.$metadata$={kind:Vn,interfaces:[]},Yj.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[ta]},Yj.prototype=Object.create(ta.prototype),Yj.prototype.constructor=Yj,Yj.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n,i,o,r;if(this.state_0=2,this.result_0=this.local$closure$dbBuilder.build(this),this.result_0===Zs)return Zs;continue;case 1:throw this.exception_0;case 2:if(this.local$dbBuilt=this.result_0,Xa.Napier.d_82mfvz$("Index: built db"),this.state_0=3,this.result_0=ty().loadFileContentAsMap_ytbaoo$("appconfig.json",this),this.result_0===Zs)return Zs;continue;case 3:var s;if(this.local$appConfigs=this.result_0,Xa.Napier.d_82mfvz$("Index: loaded appConfig"),null!=(n=null!=(t=this.local$appConfigs.get_11rb$(Xe.AppConfig.KEY_SUPPORTED_LANGUAGES))?Ks(t,[","]):null)){var a,c=Xo(Ko(n,10));for(a=n.iterator();a.hasNext();){var l,u=a.next();c.add_11rb$(di(e.isCharSequence(l=u)?l:An()).toString())}s=c}else s=null;if(this.local$availableLanguages=null!=(i=s)?i:ga("en"),this.state_0=4,this.result_0=ty().loadAssetsAsText_61zpoe$(this.local$closure$defaultAssetPath,this),this.result_0===Zs)return Zs;continue;case 4:this.local$defaultStringsXmlStr=this.result_0;var h,d=Be.Companion.displayedLocale;t:do{var p;for(p=this.local$availableLanguages.iterator();p.hasNext();){var _=p.next();if(Je(_,d)){h=_;break t}}h=null}while(0);if(this.local$displayedLocale=null!=(o=h)?o:"en",Je(this.local$displayedLocale,"en")){this.local$tmp$_3=null,this.state_0=6;continue}if(this.state_0=5,this.result_0=ty().loadAssetsAsText_61zpoe$("locales/"+this.local$displayedLocale+".xml",this),this.result_0===Zs)return Zs;continue;case 5:this.local$tmp$_3=this.result_0,this.state_0=6;continue;case 6:var m=this.local$tmp$_3,f=xr(document.getElementById("root")),g=zh(Xe.UstadMobileConstants.RTL_LANGUAGES,this.local$displayedLocale)?"rtl":"ltr";f.setAttribute("dir",g);var $,E=Zh(this.local$dbBuilt,this.local$closure$dbNodeIdAndAuth,this.local$appConfigs,this.local$closure$apiUrl,this.local$defaultStringsXmlStr,m),y=Gl(E).directDI.Instance_ohrpre$(e.isType($=On(He(We(Be),[],!1)),Rn)?$:An(),null);return document.title=y.getString(2e3,new ci),null!=(r=document.getElementById("loading"))&&r.remove(),Oh(f,void 0,Jj(E)),Xa.Napier.d_82mfvz$("Index: Made DI"),Ye;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tG.prototype.componentDidMount=function(){var t;$a(this,(t=this,function(e){return t.showMainComponent_0=!0,Ye}))},tG.prototype.render_ss14n$=function(t){var e;ud(t),t.invoke_c0v1gl$(De.Consumer,(e=this,function(t,n){return e.showMainComponent_0&&!e.props.activeTabRunning?xw(t):e.showMainComponent_0&&e.props.activeTabRunning?WL(t,e.props.di):YI(t),Ye}))},tG.$metadata$={kind:Vn,simpleName:"IndexComponent",interfaces:[Bc]},qe["Kodein-kodein-di"]=n,qe["door-door-runtime-js-legacy"]=r,t.ustadJsDi_5hb57o$=Zh;var eG=t.com||(t.com={}),nG=eG.ustadmobile||(eG.ustadmobile={}),iG=nG.mui||(nG.mui={}),oG=iG.components||(iG.components={});oG.umAppBar_mxvj8g$=td,oG.umAvatar_vrniqn$=ed,oG.umBottomNavigation_3uh5ip$=id,qe["kotlin-react-core"]=f,oG.umBottomNavigationAction_66yg9z$=od,qe["kotlin-styled"]=$,oG.umButton_ab2pnm$=cd,oG.umChip_gxz9ww$=ld,oG.umCssBaseline_ss14n$=ud,Object.defineProperty(hd,"day",{get:pd}),Object.defineProperty(hd,"month",{get:_d}),Object.defineProperty(hd,"year",{get:md}),Object.defineProperty(hd,"hours",{get:fd}),Object.defineProperty(hd,"minutes",{get:gd}),Object.defineProperty(hd,"seconds",{get:$d}),oG.DateTimePickerOpenTo=hd,oG.timePicker_lbp4r0$=yd,oG.datePicker_3xzpoz$=bd,oG.umDatePicker_3xzpoz$=Cd,oG.umTimePicker_en2sfo$=Nd,oG.umDialog_hqycu3$=Ld,oG.umDialogTitle_tdw8jq$=zd,oG.umDialogActions_pcli16$=wd,oG.umDialogContent_h9otji$=Od,oG.umDivider_c37t29$=Rd,oG.umDrawer_c3yjrh$=xd,oG.umFab_9hd5nd$=Ud,oG.umFormControl_r1t1pq$=Dd,oG.umFormHelperText_jh1o0o$=Pd,Object.defineProperty(Md,"stretch",{get:jd}),Object.defineProperty(Md,"center",{get:Gd}),Object.defineProperty(Md,"flexStart",{get:qd}),Object.defineProperty(Md,"flexEnd",{get:Fd}),Object.defineProperty(Md,"spaceBetween",{get:Bd}),Object.defineProperty(Md,"spaceAround",{get:Wd}),oG.GridAlignContent=Md,Object.defineProperty(Hd,"stretch",{get:Kd}),Object.defineProperty(Hd,"center",{get:Xd}),Object.defineProperty(Hd,"flexStart",{get:Jd}),Object.defineProperty(Hd,"flexEnd",{get:Yd}),Object.defineProperty(Hd,"baseline",{get:Qd}),oG.GridAlignItems=Hd,Object.defineProperty(Zd,"cellsFalse",{get:ep}),Object.defineProperty(Zd,"cellsAuto",{get:np}),Object.defineProperty(Zd,"cellsTrue",{get:ip}),Object.defineProperty(Zd,"cells1",{get:op}),Object.defineProperty(Zd,"cells2",{get:rp}),Object.defineProperty(Zd,"cells3",{get:sp}),Object.defineProperty(Zd,"cells4",{get:ap}),Object.defineProperty(Zd,"cells5",{get:cp}),Object.defineProperty(Zd,"cells6",{get:lp}),Object.defineProperty(Zd,"cells7",{get:up}),Object.defineProperty(Zd,"cells8",{get:hp}),Object.defineProperty(Zd,"cells9",{get:dp}),Object.defineProperty(Zd,"cells10",{get:pp}),Object.defineProperty(Zd,"cells11",{get:_p}),Object.defineProperty(Zd,"cells12",{get:mp}),oG.GridSize=Zd,Object.defineProperty(fp,"spacing0",{get:$p}),Object.defineProperty(fp,"spacing1",{get:Ep}),Object.defineProperty(fp,"spacing2",{get:yp}),Object.defineProperty(fp,"spacing3",{get:bp}),Object.defineProperty(fp,"spacing4",{get:Sp}),Object.defineProperty(fp,"spacing5",{get:vp}),Object.defineProperty(fp,"spacing6",{get:Cp}),Object.defineProperty(fp,"spacing7",{get:Np}),Object.defineProperty(fp,"spacing8",{get:Tp}),Object.defineProperty(fp,"spacing9",{get:Lp}),Object.defineProperty(fp,"spacing10",{get:zp}),oG.GridSpacing=fp,oG.gridContainer_jzceju$=wp,oG.gridItem_m78rdj$=Op,oG.umIcon_rg6jdy$=Rp,oG.umIconButton_werv73$=xp,oG.umInputLabel_c1exj0$=Ip,oG.umInput_qgg3nt$=Dp,oG.umList_kmjrc1$=Pp,oG.umListItem_dlouzl$=Mp,oG.umListItemWithIcon_ytpgl6$=jp,oG.umListItem_sa9cif$=qp,oG.umListItemAvatar_s9mog1$=Fp,oG.umListItemIcon_sykc5g$=Bp,oG.umListItemText_gp1n0z$=Wp,oG.umMenu_o4337x$=Hp,oG.umMenuItem_5q89eb$=Vp,oG.umMenuItem_9bholw$=Xp,oG.umOutlinedInput_j9ztcv$=Yp,oG.umPaper_y64s25$=Qp,oG.umLinearProgress_17tyev$=Zp,oG.umCircularProgress_6raqwk$=t_,oG.umSnackbar_7yidyh$=n_,oG.umSortableList_gfx6yl$=i_,oG.umSortableItem_61xnlr$=o_,oG.umSortableKnob_r0gr1o$=r_,oG.umSwitch_p45st8$=s_,oG.umTable_vk95p0$=a_,oG.umTableBody_y516y7$=l_,oG.umTableHead_c1w0en$=h_,oG.umTableRow_8gr0h$=d_,oG.umTableCell_1h30ch$=p_,oG.umTableContainer_w44c9k$=m_,oG.umTabs_34j0bz$=f_,oG.umTab_gobukf$=g_,oG.umTextField_507iij$=$_,oG.umTextFieldMultiLine_n6tsbc$=E_,oG.umTextFieldSelect_bpnvo$=b_,qe["kotlin-react-dom"]=ht,oG.get_spacingUnits_s8ev3n$=C_,oG.umThemeProvider_dvfucy$=N_,oG.umToggleButtonGroup_uifli7$=L_,oG.umToggleButton_dmlpty$=z_,oG.umToolbar_fdruxb$=w_,oG.umTypography_7a1wg7$=O_;var rG=iG.ext||(iG.ext={});rG.toolbarJsCssToPartialCss_pia4jc$=x_,rG.get_targetInputValue_g0pdir$=I_,rG.convertFunctionalToClassElement_5sz0lf$=U_,Object.defineProperty(D_,"xs",{get:M_}),Object.defineProperty(D_,"sm",{get:k_}),Object.defineProperty(D_,"md",{get:j_}),Object.defineProperty(D_,"lg",{get:G_}),Object.defineProperty(D_,"xl",{get:q_}),t.Breakpoint=D_,t.up_sz5e4e$=B_,t.down_sz5e4e$=W_,(iG.theme||(iG.theme={})).createMuiTheme_72cybx$=H_;var sG=nG.navigation||(nG.navigation={});Object.defineProperty(sG,"RouteManager",{get:X_}),sG.UstadDestination=J_;var aG=nG.redux||(nG.redux={});aG.ReduxAppState=Y_,Object.defineProperty(aG,"ReduxAppStateManager",{get:tm}),aG.ReduxDbState=em,aG.ReduxDiState=nm,aG.ReduxNavStackState=om,aG.ReduxSnackBarState=rm,aG.ReduxStore=am,aG.ReduxThemeState=cm,aG.ReduxToolbarState=lm,Object.defineProperty(um,"Companion",{get:pm}),Object.defineProperty(um,"$serializer",{get:fm});var cG=nG.util||(nG.util={});cG.TabState_init_8miwjg$=gm,cG.TabState=um,Object.defineProperty(cG,"BrowserTabTracker",{get:ym}),cG.ContainerMounterJs=bm,Object.defineProperty(cG,"DraftJsUtil",{get:Cm}),cG.EmptyList=Nm,cG.FabManager=Tm,cG.FieldLabel=Lm,cG.OnFileAttached=zm,cG.FileDropZoneManager=wm,cG.MatchGroup=Om,cG.MimeTypeMatcher=Rm,cG.PaginateOnScrollManager=Am,cG.ProgressBarManager=xm,cG.UmProps=Im,cG.ScrollManager=Um,cG.SearchManager=Dm,Object.defineProperty(cG,"StyleManager",{get:TE}),Object.defineProperty(cG,"ThemeManager",{get:OE}),Object.defineProperty(RE,"Companion",{get:IE}),Object.defineProperty(RE,"$serializer",{get:PE}),cG.TimeZone_init_wrzq18$=ME,cG.TimeZone=RE,Object.defineProperty(cG,"TimeZonesUtil",{get:GE}),cG.urlSearchParamsToMap_pdl1vj$=qE,Object.defineProperty(cG,"Util",{get:ty}),cG.getViewNameFromUrl_pdl1vj$=ey;var lG=cG.ext||(cG.ext={});lG.formatDate_ssrefx$=ny,lG.standardFormat_3am96y$=iy,lG.fullDateFormat_hmdxbs$=oy,lG.formattedInHoursAndMinutes_3am96y$=ry,lG.formatFullDate_3am96y$=sy,lG.startOfDay_3am96y$=ay,lG.fromNow_l7ui3y$=cy,lG.timeInMillsFromStartOfDay_3am96y$=ly,lG.exportToPng_jyasbz$=uy,Object.defineProperty(lG,"MAX_VALUE",{get:hy}),lG.toDate_up3qdw$=dy,lG.formatToStringHoursMinutesSeconds_vkn4lq$=py,lG.formatDateRange_9b3vz$=_y,lG.currentBackStackEntrySavedStateMap_klq9oh$=my,lG.format_e33kwl$=fy,lG.joinString_e33kwl$=gy,lG.clean_pdl1vz$=$y,lG.wordBreakLimit_6ic1pp$=Ey,Sy.AccountPros=Ny,Sy.AccountListComponent=Ty;var uG=nG.view||(nG.view={});uG.AccountListComponent=Sy,uG.BitmaskEditComponent=jy,uG.ChatDetailComponent=Fy,uG.ChatListComponent=Yy,Object.defineProperty(eb,"Companion",{get:ob}),uG.ClazzAssignmentDetailComponent=eb,Object.defineProperty(ab,"Companion",{get:Nb}),uG.ClazzAssignmentDetailOverviewComponent=ab,uG.ClazzAssignmentDetailStudentProgressComponent=Lb,uG.ClazzAssignmentDetailStudentProgressListOverviewComponent=jb,uG.ClazzAssignmentEditComponent=Bb,Object.defineProperty(pS,"Companion",{get:fS}),uG.ClazzDetailComponent=pS,$S.CourseBlockWithCompleteListProps=NS,$S.CourseBlockWithCompleteListComponent=TS,Object.defineProperty($S,"Companion",{get:AS}),uG.ClazzDetailOverviewComponent=$S,Object.defineProperty(IS,"Companion",{get:iv}),IS.CourseBlockListProps=ov,IS.CourseOption=rv,IS.CourseBlockListComponent=sv,uG.ClazzEditComponent=IS,uG.ClazzEnrolmentEditComponent=gv,uG.ClazzEnrolmentListComponent=zv,uG.ClazzListComponent=xv,uG.ClazzLogEditAttendanceComponent=Wv,uG.ClazzLogEditComponent=lC,Object.defineProperty(_C,"Companion",{get:zC}),uG.ClazzLogListAttendanceComponent=_C,uG.ClazzMemberListComponent=OC,uG.MembersListComponent=xC,uG.renderMembers_6248oo$=UC,uG.CommentsListComponent=DC,uG.renderComments_tjo70e$=MC,uG.ContentEntryDetailAttemptsListComponent=kC,Object.defineProperty(jC,"Companion",{get:FC}),uG.ContentEntryDetailComponent=jC,Object.defineProperty(WC,"Companion",{get:$N}),uG.ContentEntryDetailOverviewComponent=WC,uG.ContentEntryEditComponent=yN,uG.createSwitchItem_3iz48g$=eT,uG.ContentEntryImportLinkComponent=iT,Object.defineProperty(cT,"Companion",{get:mT}),uG.ContentEntryListComponent=cT,gT.TopicListDetailComponent=yT,Object.defineProperty(gT,"Companion",{get:NT}),uG.CourseDiscussionDetailComponent=gT,LT.DiscussionTopicListProps=IT,LT.DiscussionTopicListComponent=UT,uG.CourseDiscussionEditComponent=LT,uG.CourseGroupSetDetailComponent=kT,uG.CourseGroupSetEditComponent=FT,uG.CourseGroupSetListComponent=QT,uG.CourseTerminologyEditComponent=eL,uG.CourseTerminologyListComponent=rL,uG.DiscussionPostDetailComponent=sL,uG.DiscussionPostEditComponent=gL,bL.PostListDetailComponent=vL,Object.defineProperty(bL,"Companion",{get:zL}),uG.DiscussionTopicDetailComponent=bL,uG.DiscussionTopicEditComponent=OL,uG.EpubContentComponent=xL,uG.ExtraActiveTabWarningComponent=UL,uG.renderExtraActiveTabWarningComponent_i66prf$=WL,uG.ChartOptions=HL,Object.defineProperty(VL,"ColumnChart",{get:XL}),Object.defineProperty(VL,"ComboChart",{get:JL}),Object.defineProperty(VL,"LineChart",{get:YL}),uG.ChartType=VL,uG.umChart_yhzypq$=QL,uG.HolidayCalendarEditComponent=tz,uG.HolidayListComponent=iz,uG.renderHolidays_3586ig$=rz,uG.HolidayCalendarListComponent=sz,uG.HolidayEditComponent=cz,uG.HtmlTextViewComponent=mz,qe["kotlin-react-dom-legacy"]=Ut,uG.IframeComponent=$z,uG.renderIframe_rjjqzv$=yz,uG.InviteViaLinkComponent=Sz,uG.JoinWithCodeComponent=wz,uG.LanguageEditComponent=Pz,uG.LanguageListComponent=qz,uG.LanguageOptionComponent=Fz,uG.renderLanguages_qlyll3$=Wz,uG.LeavingReasonEditComponent=Hz,uG.LeavingReasonListComponent=Xz,uG.LinkifyOptionsAttributes=Jz,uG.LinkifyOptions=Yz,uG.linkifyReactMessage_9i9zod$=Zz,uG.linkifyReactTextView_xzu3u5$=nw,uG.LoginComponent=iw,qe["kotlin-extensions"]=Pt,uG.MainComponent=Ew,uG.renderMainComponent_ss14n$=xw,uG.ModuleCourseBlockEditComponent=Uw,uG.umMuiHtmlEditor_ye6ir3$=qw,uG.NewCommentsComponent=Bw,uG.renderCreateNewComment_2q7w2o$=Yw,uG.PDFContentComponent=Qw,uG.PDFIframeComponent=eO,uG.renderPDFIframe_rjjqzv$=iO,uG.ParentalConsentManagementComponent=rO,uG.PersonAccountEditComponent=$O,PO.ClazzEnrolmentWithClazzSimpleListComponent=YO,Object.defineProperty(PO,"Companion",{get:iR}),uG.PersonDetailComponent=PO,uG.PersonEditComponent=rR,uG.PersonListComponent=RR,uG.RedirectComponent=AR,uG.RegisterAgeRedirectComponent=xR,uG.ReportDetailComponent=jR,uG.ReportEditComponent=tA,uG.ReportFilterEditComponent=$A,uG.ReportListComponent=RA,Object.defineProperty(DA,"Companion",{get:kA}),uG.ReportTemplateListComponent=DA,uG.ScheduleEditComponent=GA,uG.ScheduleListComponent=VA,uG.renderSchedules_1n09pw$=XA,uG.SchoolDetailComponent=JA,QA.SchoolClazzesComponent=sx,uG.SchoolDetailOverviewComponent=QA,uG.SchoolEditComponent=px,uG.SchoolListComponent=Lx,Px.MembersListComponent=kx,uG.SchoolMemberListComponent=Px,uG.ScopeGrantListComponent=jx,uG.permissionListText_obxc4p$=qx,uG.renderScopedGrants_urfo5f$=Fx,Wx.ScopedGrantComponent=Kx,uG.ScopedGrantEditComponent=Wx,uG.SelectExtractFileComponent=Yx,uG.SelectFileComponent=oI,uG.SessionListComponent=lI,uG.SettingsComponent=gI,uG.SiteDetailComponent=CI,uG.SiteEditComponent=zI,uG.SiteTermsDetailComponent=xI,uG.SiteTermsEditComponent=DI,uG.SiteTermsListComponent=kI,uG.renderSiteTerms_k4195f$=GI,uG.SplashComponent=FI,uG.renderSplashComponent_ss14n$=YI,uG.SplashView=QI,Object.defineProperty(tU,"Companion",{get:pU}),uG.StatementListComponent=tU,uG.UmTab=mU,uG.TabsComponent=fU,uG.renderTabs_nc3a23$=EU,uG.TextAssignmentEditComponent=bU,uG.TextCourseBlockEditComponent=CU,uG.TimeZoneListComponent=OU,uG.ZonesListComponent=UU,uG.renderZoneList_3ircw2$=PU,uG.UmDialogOptionItem=kU,uG.UmBottomSheetOptionsComponent=jU,uG.renderDialogOptions_nxu8sr$=HU,VU.UstadComponentLifecycle=YU,Object.defineProperty(VU,"Companion",{get:eD}),uG.UstadBaseComponent=VU,uG.UstadDetailComponent=iD,Object.defineProperty(oD,"Companion",{get:aD}),uG.UstadEditComponent=oD,Object.defineProperty(uD,"Companion",{get:zD}),uG.UstadListComponent=uD,uG.SimpleListProps=OD,uG.CreateNewItem=RD,uG.UstadSimpleList=AD,uG.VideoContentComponent=MD,uG.WebChunkComponent=jD,uG.XapiPackageContentComponent=qD;var hG=uG.components||(uG.components={});hG.AttachmentImageComponent=BD,hG.AttachmentImageLookupAdapter=ZD,hG.AttachmentImageLookupComponent=tP;var dG=uG.ext||(uG.ext={});return dG.appBarSpacer_ss14n$=cP,dG.renderRoutes_i66prf$=fP,dG.umGridContainer_hjiu6w$=gP,dG.umItem_tprmv0$=$P,dG.umEntityAvatar_gev88s$=yP,dG.umProfileAvatar_jqjjmk$=SP,dG.umItemThumbnail_ks0tp0$=CP,dG.renderListSectionTitle_d0wn4e$=TP,dG.renderInformationOnDetailScreen_mx9qd$=RP,dG.statusCircleIndicator_s9wzwa$=xP,dG.renderCreateNewItemOnList_lzccvt$=UP,dG.renderListItemWithLeftIconTitleAndDescription_b06wmi$=jP,dG.renderItemWithLeftIconTitleDescriptionAndIconBtnOnRight_xpj0e2$=VP,dG.renderListItemWithPersonAttendanceAndPendingRequests_ykdyx6$=nM,dG.renderPersonWithAttemptProgress_j79v1c$=fM,dG.renderAssignmentSubmittedProgress_fw4xa4$=CM,dG.renderPersonListItemWithNameAndUserName_9x44ya$=wM,dG.renderListItemWithPersonTitleDescriptionAndAvatarOnLeft_xllrw6$=xM,dG.renderCourseBlockAssignment_57vw5s$=HM,dG.renderListItemWithLeftIconTitleAndOptionOnRight_v94j2l$=JM,dG.renderConversationListItem_tkb4t8$=ZM,dG.renderChatListItemWithCounter_x67fxy$=ck,dG.renderPostsDetail_lqgsjs$=$k,dG.renderCourseBlockTextOrModuleListItem_9kp4na$=Nk,dG.renderListItemWithTitleDescriptionAndRightAction_9bumzd$=Ok,dG.renderListItemWithAttendance_8v4l9e$=Pk,dG.renderListItemWithIconAndTitle_w9o58b$=qk,dG.umSpacer_plx3f9$=Fk,dG.umTopBar_fvuy7l$=Yk,dG.renderTopMainAction_bz1dnt$=tj,dG.renderCourseBlockCommonFields_3xbevs$=dj,dG.renderListItemWithTitleAndSwitch_rixypj$=mj,dG.umPartner_hw0qe1$=fj,dG.renderContentEntryListItem_emtrpb$=Oj,dG.isContentCompleteImage_lvxw6c$=Rj,dG.setContentComplete_o86awz$=Aj,dG.setStatementQuestionAnswer_rc5k18$=xj,dG.renderSummaryCard_rhpfd1$=Pj,dG.renderChart_cpv22c$=jj,dG.renderRawHtmlOnIframe_do9prs$=Gj,dG.renderAddContentEntryOptionsDialog_yxogj$=Fj,dG.withAttachmentLocalUrlLookup_pvkdzq$=Wj,t.main=Zj,t.IndexComponent=tG,_m.prototype.typeParametersSerializers=hr.prototype.typeParametersSerializers,bm.prototype.mountContainer_dckg8j$=dn.prototype.mountContainer_dckg8j$,Object.defineProperty(Pm.prototype,"diContext",Object.getOwnPropertyDescriptor(Ws.prototype,"diContext")),Object.defineProperty(Pm.prototype,"diTrigger",Object.getOwnPropertyDescriptor(Ws.prototype,"diTrigger")),UE.prototype.typeParametersSerializers=hr.prototype.typeParametersSerializers,Object.defineProperty(VU.prototype,"diContext",Object.getOwnPropertyDescriptor(Ws.prototype,"diContext")),Object.defineProperty(VU.prototype,"diTrigger",Object.getOwnPropertyDescriptor(Ws.prototype,"diTrigger")),VU.prototype.showSnackBar_9pu0dj$=xa.prototype.showSnackBar_9pu0dj$,xL.prototype.scrollToSpinePosition_vqvrqt$=Ni.prototype.scrollToSpinePosition_vqvrqt$,QI.prototype.showSnackBar_9pu0dj$=Su.prototype.showSnackBar_9pu0dj$,Ae=tt.default,xe=tt.SortableItem,Ie=tt.SortableKnob,Ue=H_({typography:{useNextVariants:!0}}),De=si(Ue),HE="HH:mm",VE="DD MMM YYYY - HH:mm",KE="DD MMM YYYY",XE="dddd, MMMM DD HH:mm",JE="DD/MM/YYYY",YE="MM/YYYY",QE="MMMM DD, YYYY",DL=At.default,jL=Dt.default,GL=Mt.default,rP=!1,Zj(),t})?i.apply(e,o):i)||(t.exports=r)},function(t,e,n){var i,o,r;o=[e,n(31)],void 0===(r="function"==typeof(i=function(t,e){"use strict";var n=e.kotlin.collections.emptyList_287e2$,i=e.kotlin.reflect.js.internal.PrimitiveClasses.anyClass,o=e.Kind.CLASS,r=e.kotlin.IllegalArgumentException_init_pdl1vj$,s=e.kotlin.collections.joinToString_cgipc5$,a=e.equals,c=e.throwCCE,l=e.arrayEquals,u=e.hashCode,h=e.arrayHashCode,d=e.kotlin.IllegalStateException_init_pdl1vj$,p=e.kotlin,_=e.getKClass,m=e.Kind.OBJECT,f=e.Kind.INTERFACE,g=e.kotlin.collections.Collection,$=e.kotlin.reflect.KClass,E=e.kotlin.reflect.KTypeProjection,y=e.kotlin.collections.collectionSizeOrDefault_ba2ldo$,b=e.kotlin.collections.ArrayList_init_ww73n8$,S=e.kotlin.collections.copyToArray;function v(t){R.call(this),this.type_0=t}function C(t,e){if(R.call(this),this.main=t,this.params=e,0===this.params.length)throw d("CompositeTypeToken must be given at least one type parameter")}function N(t){return t.simpleDispString()}function T(t){return t.qualifiedDispString()}function L(){O()}function z(){w=this;var t=Object.getPrototypeOf(p.Unit).constructor;p.Unit,this.Unit=P(_(t)),this.Any=P(i)}e.defineInlineFunction,e.wrapFunction,v.prototype=Object.create(R.prototype),v.prototype.constructor=v,C.prototype=Object.create(R.prototype),C.prototype.constructor=C,U.prototype=Object.create(v.prototype),U.prototype.constructor=U,D.prototype=Object.create(R.prototype),D.prototype.constructor=D,v.prototype.simpleDispString=function(){return this.simpleErasedDispString()},v.prototype.qualifiedDispString=function(){return this.qualifiedErasedDispString()},v.prototype.getRaw=function(){return this},v.prototype.isGeneric=function(){return!1},v.prototype.isWildcard=function(){return!0},v.prototype.getSuper=function(){return n()},v.prototype.getGenericParameters=function(){return[]},v.prototype.isAssignableFrom_q3o5v9$=function(t){var e;return!(null==this||!this.equals(t))||!(null==(e=this.type_0)||!e.equals(i))},v.prototype.typeEquals_q3o5v9$=function(t){var n;if(!e.isType(t,v))throw r("Failed requirement.".toString());return!(null==(n=this.type_0)||!n.equals(t.type_0))},v.prototype.typeHashCode=function(){return this.type_0.hashCode()},v.$metadata$={kind:o,simpleName:"AbstractKClassTypeToken",interfaces:[R]},C.prototype.simpleDispString=function(){return this.main.simpleErasedDispString()+"<"+s(this.params,", ",void 0,void 0,void 0,void 0,N)+">"},C.prototype.simpleErasedDispString=function(){return this.main.simpleErasedDispString()},C.prototype.qualifiedDispString=function(){return this.main.qualifiedErasedDispString()+"<"+s(this.params,", ",void 0,void 0,void 0,void 0,T)+">"},C.prototype.qualifiedErasedDispString=function(){return this.main.qualifiedErasedDispString()},C.prototype.getRaw=function(){return this.main.getRaw()},C.prototype.isGeneric=function(){return!0},C.prototype.isWildcard=function(){var t,e=this.params;t:do{var n;for(n=0;n!==e.length;++n){var i=e[n];if(!a(i,I().Any)){t=!1;break t}}t=!0}while(0);return t},C.prototype.getSuper=function(){return this.main.getSuper()},C.prototype.getGenericParameters=function(){var t;return e.isArray(t=this.params)?t:c()},C.prototype.typeEquals_q3o5v9$=function(t){if(!e.isType(t,C))throw r("Failed requirement.".toString());return a(this.main,t.main)&&l(this.params,t.params)},C.prototype.typeHashCode=function(){return(31*u(this.main)|0)+h(this.params)|0},C.$metadata$={kind:o,simpleName:"CompositeTypeToken",interfaces:[R]},z.$metadata$={kind:m,simpleName:"Companion",interfaces:[]};var w=null;function O(){return null===w&&new z,w}function R(){I()}function A(){x=this;var t=Object.getPrototypeOf(p.Unit).constructor;p.Unit,this.Unit=P(_(t)),this.Any=P(i)}L.$metadata$={kind:f,simpleName:"TypeToken",interfaces:[]},R.prototype.isAssignableFrom_q3o5v9$=function(t){if(null!=this&&this.equals(t)||null!=this&&this.equals(I().Any))return!0;var n=this.getRaw();if(a(n,t.getRaw())){var i=this.getGenericParameters();if(0===i.length)return!0;var o,r,s=t.getGenericParameters(),c=0;for(o=0;o!==i.length;++o){var l=i[o],u=s[(r=c,c=r+1|0,r)];if(!l.isAssignableFrom_q3o5v9$(u))return!1}return!0}var h,d=t.getSuper();t:do{var p;if(e.isType(d,g)&&d.isEmpty()){h=!1;break t}for(p=d.iterator();p.hasNext();){var _=p.next();if(this.isAssignableFrom_q3o5v9$(_)){h=!0;break t}}h=!1}while(0);return h},R.prototype.toString=function(){return this.qualifiedDispString()},R.prototype.equals=function(t){var n;if(this===t)return!0;if(!e.isType(t,L))return!1;if(null!=(n=e.getKClassFromExpression(this))&&n.equals(e.getKClassFromExpression(t)))return this.typeEquals_q3o5v9$(t);if(!a(this.getRaw(),t.getRaw()))return!1;if(!this.isWildcard()||!t.isWildcard()){var i=this.getGenericParameters(),o=t.getGenericParameters();if(i.length!==o.length)return!1;for(var r=0;r!==i.length;++r)if(!a(i[r],o[r]))return!1}return!0},R.prototype.hashCode=function(){return this.typeHashCode()},A.$metadata$={kind:m,simpleName:"Companion",interfaces:[]};var x=null;function I(){return null===x&&new A,x}function U(t){v.call(this,t)}function D(t){R.call(this),this.type_0=t}function P(t){return new U(t)}function M(t){var n;return t.arguments.isEmpty()?new U(e.isType(n=t.classifier,$)?n:c()):new D(t)}R.$metadata$={kind:o,simpleName:"AbstractTypeToken",interfaces:[L]},U.prototype.simpleErasedDispString=function(){var t;return null!=(t=this.type_0.simpleName)?t:"(non-denotable type)"},U.prototype.qualifiedErasedDispString=function(){var t;return null!=(t=this.type_0.simpleName)?t:"(non-denotable type)"},U.$metadata$={kind:o,simpleName:"JSKClassTypeToken",interfaces:[v]},D.prototype.simpleDispString=function(){return this.type_0.toString()},D.prototype.simpleErasedDispString=function(){var t,n,i;return null!=(i=null!=(n=e.isType(t=this.type_0.classifier,$)?t:null)?n.simpleName:null)?i:"(non-denotable type)"},D.prototype.qualifiedDispString=function(){return this.type_0.toString()},D.prototype.qualifiedErasedDispString=function(){var t,n,i;return null!=(i=null!=(n=e.isType(t=this.type_0.classifier,$)?t:null)?n.simpleName:null)?i:"(non-denotable type)"},D.prototype.getRaw=function(){var t;return new U(e.isType(t=this.type_0.classifier,$)?t:c())},D.prototype.isGeneric=function(){return!0},D.prototype.getGenericParameters=function(){var t,e=this.type_0.arguments,n=b(y(e,10));for(t=e.iterator();t.hasNext();){var i,o,r=t.next();n.add_11rb$(null!=(o=null!=(i=r.type)?M(i):null)?o:I().Any)}return S(n)},D.prototype.isWildcard=function(){var t,n=this.type_0.arguments;t:do{var i;if(e.isType(n,g)&&n.isEmpty()){t=!0;break t}for(i=n.iterator();i.hasNext();){var o=i.next();if(null==o||!o.equals(E.Companion.STAR)){t=!1;break t}}t=!0}while(0);return t},D.prototype.getSuper=function(){return n()},D.prototype.typeEquals_q3o5v9$=function(t){if(!e.isType(t,D))throw r("Failed requirement.".toString());return a(this.type_0,t.type_0)},D.prototype.typeHashCode=function(){return u(this.type_0)},D.$metadata$={kind:o,simpleName:"JSKTypeTypeToken",interfaces:[R]};var k=t.org||(t.org={}),j=k.kodein||(k.kodein={}),G=j.type||(j.type={});return G.AbstractKClassTypeToken=v,G.CompositeTypeToken=C,G.erasedComp_6wtypk$=function(t,e){return 0===e.length?P(t):new C(P(t),e.slice())},Object.defineProperty(L,"Companion",{get:O}),G.TypeToken=L,Object.defineProperty(R,"Companion",{get:I}),G.AbstractTypeToken=R,G.JSKClassTypeToken=U,G.JSKTypeTypeToken=D,G.erasedOf_issdgt$=function(t){return new U(e.getKClassFromExpression(t))},G.erased_lmshww$=P,G.typeToken_saj79j$=M,t})?i.apply(e,o):i)||(t.exports=r)},function(t,e,n){(function(i){var o,r,s;r=[e,n(31),n(438),n(366),n(758),n(436),n(149),n(85),n(282),n(231),n(283),n(284),n(150),n(128),n(367),n(440),n(762)],void 0===(s="function"==typeof(o=function(t,e,n,o,r,s,a,c,l,u,h,d,p,_,m,f,g){"use strict";var $=t.$$importsForInline$$||(t.$$importsForInline$$={}),E=e.kotlin.to_ujzrz7$,y=e.kotlin.collections.mapOf_qfcya0$,b=e.kotlin.collections.toMap_abgq59$,S=e.Kind.OBJECT,v=e.Kind.CLASS,C=e.kotlin.IllegalStateException,N=e.PropertyMetadata,T=e.kotlin.coroutines.intrinsics.COROUTINE_SUSPENDED,L=e.kotlin.coroutines.CoroutineImpl,z=e.kotlin.IllegalStateException_init_pdl1vj$,w=e.arrayEquals,O=e.Long.ZERO,R=n.com.ustadmobile.core.db.dao,A=e.kotlin.text.startsWith_7epoxm$,x=e.equals,I=o.com.ustadmobile.lib.util.authenticateEncryptedPassword_puj7f4$,U=n.com.ustadmobile.lib.db.entities.PersonAuth2,D=r.com.soywiz.klock.DateTime,P=e.getKClass,M=e.createKType,k=n.com.ustadmobile.core.db.UmAppDatabase,j=s.org.kodein.di.DIAware,G=s.org.kodein.di.On_e2mfxv$,q=s.org.kodein.di.DIContext,F=s.$$importsForInline$$["Kaverit-kaverit"].org.kodein.type.typeToken_saj79j$,B=s.$$importsForInline$$["Kaverit-kaverit"].org.kodein.type.TypeToken,W=e.throwCCE,H=s.org.kodein.di.Instance_l95o76$,V=e.kotlin.collections.Collection,K=a.kotlinx.serialization.internal.NullableSerializer,X=a.kotlinx.serialization.internal.PluginGeneratedSerialDescriptor,J=n.com.ustadmobile.lib.db.entities.Person,Y=a.kotlinx.serialization.UnknownFieldException,Q=a.kotlinx.serialization.internal,Z=a.kotlinx.serialization.internal.GeneratedSerializer,tt=c.kotlinx.coroutines,et=l.com.ustadmobile.door.util.systemTimeInMillis,nt=e.kotlin.Unit,it=c.kotlinx.coroutines.launch_s496o7$,ot=e.kotlin.collections.ArrayList_init_287e2$,rt=e.kotlin.collections.collectionSizeOrDefault_ba2ldo$,st=e.kotlin.collections.ArrayList_init_ww73n8$,at=u.kotlinx.serialization.json.get_jsonObject_u3sd3g$,ct=u.kotlinx.serialization.json.get_jsonPrimitive_u3sd3g$,lt=(u.kotlinx.serialization.json.get_long_59esu7$,h.io.github.aakira.napier),ut=l.com.ustadmobile.door.ext.withDoorTransactionAsync_743ax9$,ht=l.com.ustadmobile.door.IncomingReplicationListener,dt=a.kotlinx.serialization.MissingFieldException_init_61zpoe$,pt=s.org.kodein.di.bindings.StandardScopeRegistry,_t=s.org.kodein.di.bindings.Scope,mt=e.kotlin.collections.LinkedHashMap_init_q3lmfv$,ft=n.com.ustadmobile.lib.db.entities.PersonWithAccount,gt=n.com.ustadmobile.lib.db.entities.PersonParentJoin,$t=n.com.ustadmobile.lib.db.entities.UserSession,Et=s.org.kodein.di.get_direct_utb36t$,yt=e.kotlin.collections.flatten_u0ad8z$,bt=l.com.ustadmobile.door.lifecycle.Observer,St=l.com.ustadmobile.door.DoorMediatorLiveData,vt=e.kotlin.text.removeSuffix_gsj5wt$,Ct=d.io.ktor.client.request.url_g8iu3v$,Nt=p.io.ktor.http.ContentType,Tt=p.io.ktor.http.contentType_41kwpe$,Lt=e.kotlin.Pair,zt=e.kotlin.Exception_init_pdl1vj$,wt=c.kotlinx.coroutines.withContext_i5cbzn$,Ot=e.Long.fromInt(2e3),Rt=l.com.ustadmobile.door.ext.onRepoWithFallbackToDb_m34hzb$,At=l.com.ustadmobile.door.DoorDatabaseRepository,xt=l.com.ustadmobile.door.ext.toHexString_964n91$,It=l.com.ustadmobile.door.doorMainDispatcher,Ut=l.com.ustadmobile.door.ext.addIncomingReplicationListener_8omfwg$,Dt=l.com.ustadmobile.door.ext.removeIncomingReplicationListener_8omfwg$,Pt=u.kotlinx.serialization.json.Json,Mt=e.kotlin.js.internal.StringCompanionObject,kt=a.kotlinx.serialization.builtins.serializer_6eet4j$,jt=a.kotlinx.serialization.builtins.ListSerializer_swdriu$,Gt=e.kotlin.collections.toSet_7wnvza$,qt=e.kotlin.collections.toList_7wnvza$,Ft=u.kotlinx.serialization.json.get_longOrNull_59esu7$,Bt=u.kotlinx.serialization.json.get_intOrNull_59esu7$,Wt=d.io.ktor.client.request.parameter_xadl6p$,Ht=d.io.ktor.client.request.header_rpxout$,Vt=d.io.ktor.client.plugins.set_expectSuccess_wpsvw2$,Kt=p.io.ktor.http.HttpStatusCode,Xt=n.com.ustadmobile.lib.db.entities.UmAccount,Jt=l.com.ustadmobile.door.ext.doorNodeAndVersionHeaders_rq8txc$,Yt=n.com.ustadmobile.lib.db.entities.Site,Qt=l.com.ustadmobile.door.lifecycle.MutableLiveData_init_287e2$,Zt=d.io.ktor.client.HttpClient,te=l.com.ustadmobile.door.ext.concurrentSafeListOf_i5x0yv$,ee=_.kotlinx.atomicfu.atomic$ref$1,ne=e.kotlin.reflect.js.internal.PrimitiveClasses.stringClass,ie=e.kotlin.collections.addAll_ipc267$,oe=d.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.content,re=d.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.content.OutgoingContent,se=d.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect,ae=d.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect.typeInfoImpl_1lvkm8$,ce=Error,le=d.io.ktor.client.request.HttpRequestBuilder,ue=d.$$importsForInline$$["ktor-ktor-http-js-legacy"].io.ktor.http.HttpMethod,he=d.io.ktor.client.statement.HttpStatement,de=e.kotlin.text.toLong_pdl1vz$,pe=e.kotlin.IllegalArgumentException_init_pdl1vj$,_e=e.kotlin.text.contains_li3zpu$,me=n.com.ustadmobile.lib.db.entities.ContentJobItem,fe=e.kotlin.collections.emptyList_287e2$,ge=e.Kind.INTERFACE,$e=e.kotlin.collections.listOf_mh5how$,Ee=e.kotlin.NotImplementedError,ye=(e.kotlin.text.removePrefix_gsj5wt$,e.kotlin.text.endsWith_7epoxm$),be=e.kotlin.collections.listOf_i5x0yv$,Se=e.ensureNotNull,ve=e.kotlin.collections.contains_mjy6jw$,Ce=m.com.ustadmobile.xmlpullparserkmp,Ne=e.kotlin.text.equals_igcy3c$,Te=e.kotlin.collections.asSequence_7wnvza$,Le=e.kotlin.sequences.map_z5avom$,ze=e.kotlin.text.Regex_init_61zpoe$,we=e.kotlin.collections.take_ba2ldo$,Oe=e.kotlin.collections.copyToArray,Re=e.kotlin.text.StringBuilder_init,Ae=e.kotlin.text.lastIndexOf_8eortd$,xe=e.kotlin.collections.HashMap_init_q3lmfv$,Ie=e.kotlin.collections.Map,Ue=e.throwUPAE,De=e.kotlin.collections.toMap_6hr0sd$,Pe=c.kotlinx.coroutines.CompletableDeferred_xptg6w$,Me=(u.kotlinx.serialization.json.Json_x26noe$,e.kotlin.Exception_init),ke=e.kotlin.collections.getValue_t9ocha$,je=e.kotlin.collections.mutableListOf_i5x0yv$,Ge=(n.com.ustadmobile.lib.db.entities.ContainerEntryFile,a.kotlinx.serialization.internal.ArrayListSerializer),qe=e.hashCode,Fe=e.kotlin.text.substringBefore_j4ogox$,Be=e.kotlin.text.substringAfter_j4ogox$,We=(p.io.ktor.http.Url_61zpoe$,p.io.ktor.http.URLProtocol,p.io.ktor.http.URLBuilder,e.kotlin.text.trimIndent_pdl1vz$),He=e.toString,Ve=e.numberToInt,Ke=(p.io.ktor.http.takeFrom_jl1sg7$,p.io.ktor.http.get_encodedPath_3q1sfd$,p.io.ktor.http.set_encodedPath_jl1sg7$,n.com.ustadmobile.lib.db.entities.ContentEntryWithLanguage),Xe=e.kotlin.text.toBoolean_5cw0du$,Je=e.kotlin.collections.mapOf_x2b85n$,Ye=(n.com.ustadmobile.lib.db.entities.VerbEntity,e.kotlin.coroutines.cancellation.CancellationException_init_pdl1vj$,e.kotlin.coroutines.cancellation.CancellationException),Qe=l.com.ustadmobile.door.DoorUri,Ze=e.kotlin.collections.first_2p1efm$,tn=c.kotlinx.coroutines.sync.Mutex_6taknv$,en=e.kotlin.lazy_klfg04$,nn=e.kotlin.stackTraceToString_dbl4o4$,on=e.kotlin.Exception,rn=(c.kotlinx.coroutines.channels.produce_f6xzli$,e.kotlin.collections.toMutableMap_abgq59$),sn=o.com.ustadmobile.lib.util.getSystemTimeInMillis,an=n.com.ustadmobile.lib.db.entities.ContentEntryParentChildJoin,cn=(c.kotlinx.coroutines.async_pda6u4$,e.kotlin.printStackTrace_dbl4o4$),ln=e.Long.fromInt(1e3),un=c.kotlinx.coroutines.delay_s8cxhz$,hn=(l.com.ustadmobile.door.util.TransactionMode,l.com.ustadmobile.door.ext.dbType_jv9r7q$),dn=c.kotlinx.coroutines.channels.Channel_lsve6m$,pn=e.Long.fromInt(500),_n=e.getCallableRef,mn=Math,fn=e.kotlin.collections.joinToString_fmv235$,gn=e.kotlin.collections.checkCountOverflow_za3lpa$,$n=l.com.ustadmobile.door.util.randomUuid,En=e.kotlin.collections.toMutableList_4c7yge$,yn=e.kotlin.collections.removeAll_qafx1e$,bn=e.kotlin.text.replace_680rmw$,Sn=l.com.ustadmobile.door.lifecycle.MutableLiveData_init_mh5how$,vn=e.Long.ONE,Cn=e.Long.fromInt(8),Nn=n.com.ustadmobile.lib.db.entities.Chat_init_ivxn3r$,Tn=n.com.ustadmobile.lib.db.entities.ChatMember_init_3pjtqy$,Ln=n.com.ustadmobile.lib.db.entities.Message_init_65ss6k$,zn=n.com.ustadmobile.lib.db.entities.ChatWithLatestMessageAndCount,wn=n.com.ustadmobile.lib.db.entities.Chat,On=n.com.ustadmobile.lib.db.entities.ClazzAssignmentWithCourseBlock,Rn=n.com.ustadmobile.lib.db.entities.ClazzWithSchool,An=n.com.ustadmobile.lib.db.entities.CourseAssignmentSubmissionWithAttachment,xn=n.com.ustadmobile.lib.db.entities.ClazzAssignment,In=e.Long.MAX_VALUE,Un=e.kotlin.collections.firstOrNull_2p1efm$,Dn=l.com.ustadmobile.door.ext.get_doorPrimaryKeyManager_jv9r7q$,Pn=n.com.ustadmobile.lib.db.entities.CourseAssignmentSubmissionAttachment,Mn=n.com.ustadmobile.lib.db.entities.CourseAssignmentSubmission,kn=l.com.ustadmobile.door.attachments.retrieveAttachment_ujc7t4$,jn=e.kotlin.collections.mutableMapOf_qfcya0$,Gn=e.kotlin.collections.MutableCollection,qn=new e.Long(0,128),Fn=e.Long.NEG_ONE,Bn=n.com.ustadmobile.lib.db.entities.CourseAssignmentMark,Wn=e.kotlin.Enum,Hn=e.throwISE,Vn=n.com.ustadmobile.lib.db.entities.CourseGroupSet,Kn=n.com.ustadmobile.lib.db.entities.CourseBlockWithEntity,Xn=e.kotlin.text.toLongOrNull_pdl1vz$,Jn=n.com.ustadmobile.core.db.ext.getFirstValue_z9yzxd$,Yn=r.com.soywiz.klock.TimeSpan,Qn=e.Long.fromInt(4),Zn=e.Long.fromInt(1024),ti=new e.Long(0,1),ei=n.com.ustadmobile.lib.db.entities.ClazzWithHolidayCalendarAndSchoolAndTerminology,ni=e.kotlin.collections.LinkedHashSet_init_287e2$,ii=n.com.ustadmobile.lib.db.entities.Clazz,oi=e.kotlin.collections.plus_iwxh38$,ri=e.kotlin.collections.plus_mydzjv$,si=e.kotlin.collections.plus_qloxvw$,ai=e.Long.fromInt(2048),ci=c.kotlinx.coroutines.CoroutineScope,li=n.com.ustadmobile.lib.db.entities.School,ui=n.com.ustadmobile.lib.db.entities.HolidayCalendar,hi=n.com.ustadmobile.lib.db.entities.CourseTerminology,di=n.com.ustadmobile.lib.db.entities.ContentEntryWithBlockAndLanguage,pi=n.com.ustadmobile.lib.db.entities.CourseBlock,_i=o.com.ustadmobile.lib.util.getDefaultTimeZoneId,mi=l.com.ustadmobile.door.ext.onDbThenRepoWithTimeout_9kp7da$,fi=n.com.ustadmobile.lib.db.entities.CoursePicture,gi=n.com.ustadmobile.core.db.dao.deactivateByUids_hzprtg$,$i=n.com.ustadmobile.core.db.dao.deactivateByUids_aw1xkw$,Ei=n.com.ustadmobile.lib.db.entities.XObjectEntity_init,yi=n.com.ustadmobile.core.db.dao.deactivateByUids_5h527s$,bi=n.com.ustadmobile.core.db.dao.deactivateByUids_txvfhe$,Si=n.com.ustadmobile.core.db.dao.deactivateByUids_w29pf7$,vi=n.com.ustadmobile.lib.db.entities.CourseDiscussion,Ci=e.kotlin.collections.getOrNull_yzln2o$,Ni=e.getPropertyCallableRef,Ti=n.com.ustadmobile.lib.db.entities.Schedule,Li=e.kotlin.collections.sortedWith_eknfly$,zi=e.wrapFunction,wi=e.kotlin.Comparator,Oi=e.kotlin.text.trim_gw00vp$,Ri=e.kotlin.collections.checkIndexOverflow_za3lpa$,Ai=e.kotlin.text.toInt_pdl1vz$,xi=n.com.ustadmobile.lib.db.entities.ClazzEnrolmentWithLeavingReason,Ii=n.com.ustadmobile.lib.db.entities.LeavingReason,Ui=e.Long.fromInt(512),Di=e.kotlin.collections.plus_e8164j$,Pi=e.kotlin.text.split_ip8yn$,Mi=e.Long.fromInt(2),ki=e.Long.fromInt(2),ji=e.kotlin.collections.emptyMap_q3lmfv$,Gi=n.com.ustadmobile.lib.db.entities.ClazzLog,qi=c.kotlinx.coroutines.withTimeoutOrNull_ms3uf5$,Fi=n.com.ustadmobile.lib.db.entities.ClazzLogAttendanceRecordWithPerson,Bi=o.com.ustadmobile.lib.util.copyOnWriteListOf_i5x0yv$,Wi=e.kotlin.collections.sortWith_nqfjgj$,Hi=e.kotlin.collections.toList_us0mfu$,Vi=e.Long.fromInt(8),Ki=n.com.ustadmobile.lib.db.entities.ClazzEnrolment,Xi=n.com.ustadmobile.lib.db.entities.ContentEntryWithMostRecentContainer,Ji=n.com.ustadmobile.lib.db.entities.ContentEntry,Yi=e.Long.fromInt(268435456),Qi=n.com.ustadmobile.lib.db.entities.ContentJob,Zi=n.com.ustadmobile.lib.db.entities.LearnerGroup,to=n.com.ustadmobile.lib.db.entities.GroupLearningSession,eo=n.com.ustadmobile.lib.db.entities.LearnerGroupMember,no=e.kotlin.reflect.js.internal.PrimitiveClasses.booleanClass,io=n.com.ustadmobile.lib.db.entities.ContentEntryPicture,oo=n.com.ustadmobile.lib.db.entities.Language,ro=a.kotlinx.serialization.builtins.MapSerializer_2yqygg$,so=s.org.kodein.di.InstanceOrNull_l95o76$,ao=e.kotlin.collections.lastOrNull_2p1efm$,co=e.Long.fromInt(134217728),lo=n.com.ustadmobile.lib.db.entities.ContentEntryWithParentChildJoinAndStatusAndMostRecentContainer,uo=e.kotlin.text.isBlank_gw00vp$,ho=n.com.ustadmobile.lib.db.entities.DiscussionTopic,po=n.com.ustadmobile.lib.db.entities.CourseGroupMemberPerson,_o=n.com.ustadmobile.lib.db.entities.CourseGroupMember,mo=e.kotlin.collections.shuffled_7wnvza$,fo=n.com.ustadmobile.lib.db.entities.TerminologyEntry,go=e.kotlin.collections.mapCapacity_za3lpa$,$o=e.kotlin.ranges.coerceAtLeast_dqglrj$,Eo=e.kotlin.collections.LinkedHashMap_init_bwtc7$,yo=n.com.ustadmobile.lib.db.entities.DateRangeMoment,bo=n.com.ustadmobile.lib.db.entities.Moment,So=new e.Long(0,2),vo=n.com.ustadmobile.lib.db.entities.Comments_init_crfs04$,Co=n.com.ustadmobile.lib.db.entities.Message_init_cd114f$,No=n.com.ustadmobile.lib.db.entities.DiscussionPost,To=e.Long.fromInt(100),Lo=m.com.ustadmobile.xmlpullparserkmp.XmlPullParserFactory,zo=m.com.ustadmobile.xmlpullparserkmp.setInputString_fde4c1$,wo=e.kotlin.text.substringBeforeLast_j4ogox$,Oo=e.kotlin.collections.indexOf_bv23uc$,Ro=e.kotlin.text.substringAfterLast_j4ogox$,Ao=Array,xo=c.kotlinx.coroutines.Runnable,Io=n.com.ustadmobile.lib.db.entities.ErrorReport,Uo=n.com.ustadmobile.core.db.dao.deactivateByUids_3z24gd$,Do=n.com.ustadmobile.lib.db.entities.Holiday,Po=e.kotlin.text.toIntOrNull_pdl1vz$,Mo=e.Long.fromInt(1e4),ko=e.Long.fromInt(5e3),jo=n.com.ustadmobile.lib.db.entities.PersonParentJoinWithMinorPerson,Go=new e.Long(1048640,20624),qo=new e.Long(0,16),Fo=e.Long.fromInt(256),Bo=n.com.ustadmobile.lib.db.entities.PersonPicture,Wo=n.com.ustadmobile.lib.db.entities.PersonGroup,Ho=e.Long.fromInt(64),Vo=e.Long.fromInt(128),Ko=n.com.ustadmobile.lib.db.entities.Report,Xo=n.com.ustadmobile.lib.db.entities.ReportSeries,Jo=n.com.ustadmobile.lib.db.entities.ReportWithSeriesWithFilters_init_bj006k$,Yo=n.com.ustadmobile.lib.db.entities.ReportWithSeriesWithFilters,Qo=n.com.ustadmobile.lib.db.entities.ReportFilter,Zo=_.kotlinx.atomicfu.atomic$int$1,tr=n.com.ustadmobile.lib.db.entities.UidAndLabel,er=e.Long.fromInt(1e5),nr=new e.Long(-2147483648,0),ir=n.com.ustadmobile.lib.db.entities.SchoolWithHolidayCalendar,or=n.com.ustadmobile.lib.db.entities.ScopedGrantAndName,rr=n.com.ustadmobile.lib.db.entities.ScopedGrant,sr=new e.Long(545279430,66),ar=e.Long.fromInt(536870912),cr=e.Long.fromInt(536870912),lr=e.Long.fromInt(1073741824),ur=new e.Long(0,64),hr=new e.Long(0,32),dr=n.com.ustadmobile.lib.db.entities.SchoolMember,pr=new e.Long(0,65536),_r=e.Long.fromInt(4096),mr=new e.Long(0,1024),fr=new e.Long(0,2048),gr=e.Long.fromInt(8388608),$r=e.Long.fromInt(16777216),Er=new e.Long(0,4096),yr=new e.Long(0,8192),br=new e.Long(0,16384),Sr=new e.Long(0,32768),vr=new e.Long(25173838,64641),Cr=n.com.ustadmobile.core.db.dao.deactivateByUids_ozash1$,Nr=n.com.ustadmobile.lib.db.entities.SiteTerms,Tr=n.com.ustadmobile.lib.db.entities.SiteTermsWithLanguage,Lr=l.com.ustadmobile.door.lifecycle.LifecycleOwner,zr=o.com.ustadmobile.core.impl.UmLifecycleOwner,wr=(n.com.ustadmobile.lib.db.entities.VerbDisplay,l.com.ustadmobile.door.ext.get_replicationNotificationDispatcher_jv9r7q$,e.Long.fromInt(-2)),Or=l.com.ustadmobile.door.replication.ReplicationSubscriptionManager.SubscriptionInitializedListener,Rr=e.kotlin.text.indexOf_8eortd$,Ar=e.kotlin.collections.sorted_exjks8$,xr=r.com.soywiz.klock.MonthSpan,Ir=(e.arrayHashCode,e.toByte,n.com.ustadmobile.lib.db.entities.ContainerEntryWithMd5,r.com.soywiz.klock.TimezoneOffset),Ur=(e.defineInlineFunction,r.com.soywiz.klock.DayOfWeek,u.kotlinx.serialization.json.JsonPrimitive_pdl1vj$),Dr=u.kotlinx.serialization.json.JsonObject,Pr=e.kotlin.text.split_o64adg$,Mr=e.kotlin.collections.minOrNull_exjks8$,kr=_.kotlinx.atomicfu.atomic$long$1,jr=(c.kotlinx.coroutines.cancel_xz8be$,e.kotlin.text.indexOf_l5u8uk$),Gr=l.com.ustadmobile.door.lifecycle.MutableLiveData,qr=l.com.ustadmobile.door.room.InvalidationTrackerObserver,Fr=(r.com.soywiz.klock.parse_mabgv2$,r.com.soywiz.klock.DateException,r.com.soywiz.klock.Year,r.com.soywiz.klock.Month,r.com.soywiz.klock.DateFormat,e.toBoxedChar),Br=e.unboxChar,Wr=e.kotlin.ranges.CharRange,Hr=e.toChar,Vr=e.kotlin.text.StringBuilder_init_za3lpa$,Kr=e.kotlin.math.round_14dthe$,Xr=e.kotlin.text.lastIndexOf_l5u8uk$,Jr=p.io.ktor.http.ContentType_init_bo4f5s$,Yr=e.Long.fromInt(1073741824),Qr=e.Long.fromInt(1048576),Zr=e.Long.fromInt(1024),ts=r.com.soywiz.klock.ISO8601.IsoIntervalFormat,es=e.kotlin.LazyThreadSafetyMode,ns=e.kotlin.lazy_kls4a0$,is=e.kotlin.math.roundToInt_yrwdxr$,os=(e.kotlin.collections.distinct_7wnvza$,e.kotlin.math.abs_za3lpa$),rs=d.io.ktor.client.plugins.timeout_xuctv$,ss=e.kotlin.text.trimMargin_rjktp$,as=n.com.ustadmobile.lib.db.entities.StatementEntity,cs=e.kotlin.text,ls=(e.kotlin.text.isLowerCase_myv2d0$,e.kotlin.text.titlecase_myv2d0$,e.kotlin.sequences.count_veqyi0$),us=n.com.ustadmobile.lib.db.entities.PersonGroup_init_61zpoe$,hs=o.com.ustadmobile.lib.util.randomString_19mbxw$,ds=new e.Long(25198046,3970),ps=new e.Long(8388674,1026),_s=new e.Long(8388674,2),ms=n.com.ustadmobile.lib.db.entities.PersonGroupMember,fs=e.Long.fromInt(2500),gs=n.com.ustadmobile.lib.db.entities.SchoolMemberWithPerson,$s=e.kotlin.io.println_s8jyv4$,Es=n.com.ustadmobile.lib.db.entities.PersonGroupMember_init_3pjtqy$,ys=n.com.ustadmobile.core.db.dao.getResults_qgp830$,bs=l.com.ustadmobile.door.SimpleDoorQuery,Ss=n.com.ustadmobile.lib.db.entities.SchoolMember_init,vs=(e.kotlin.collections.contains_2ws7j4$,n.com.ustadmobile.lib.db.entities.ContainerEntryWithContainerEntryFile,e.Long.fromInt(200),e.kotlin.NoSuchElementException,e.kotlin.random.Random,l.com.ustadmobile.door.entities.NodeIdAndAuth,new e.Long(1,-955361223)),Cs=c.kotlinx.coroutines.await_t11jrl$,Ns=n.com.ustadmobile.lib.db.entities.ContainerEntryWithContainerEntryFile_init_t4nsby$,Ts=e.kotlin.IllegalArgumentException,Ls=l.com.ustadmobile.door.ext.toUrlQueryString_alv72w$,zs=u.kotlinx.serialization.json.JsonObjectBuilder,ws=a.kotlinx.serialization.internal.LinkedHashMapSerializer,Os=l.com.ustadmobile.door.ext.DoorTag,Rs=h.io.github.aakira.napier.LogLevel,As=h.io.github.aakira.napier.Antilog;function xs(){Is=this,this.strMap_0=y([E(2018,"cancel"),E(2783,"my_content"),E(2636,"sel_question_type_multiple_choice"),E(2215,"year"),E(2834,"upload"),E(2838,"saved"),E(2096,"no_video_file_found"),E(2546,"from_to_date"),E(2186,"score"),E(2165,"entry_details_license"),E(2528,"instructions_for_students"),E(2308,"absent"),E(2450,"not_recorded"),E(2003,"err_registering_new_user"),E(2566,"untitled"),E(2355,"last_month"),E(2595,"mark_complete"),E(2506,"shake_feedback"),E(2958,"assign_reviewers"),E(2063,"optional"),E(2094,"select_subtitle_video"),E(2780,"anyone_with_this_can_join_school"),E(2613,"public_comments"),E(2768,"folder"),E(2693,"strings_not_allowed"),E(2716,"parent_consent_explanation"),E(2454,"role"),E(2341,"weekly"),E(2865,"characters"),E(2674,"moved_x_entries"),E(2628,"connect_as_guest"),E(2582,"edit_assignment"),E(2178,"content_entry_export_message"),E(2690,"connect"),E(2315,"address"),E(2095,"no_subtitle"),E(2577,"clazz_work"),E(2e3,"app_name"),E(2474,"edit_person"),E(2184,"bar_chart"),E(2424,"days"),E(2812,"add_or_edit_assignment"),E(2158,"download_cloud_availability"),E(2044,"register"),E(2916,"standard"),E(2071,"reports"),E(2248,"field_content_progress"),E(2882,"edit_module"),E(2360,"notes"),E(2736,"continue_using_link_recommended"),E(2371,"moved"),E(2708,"join_school"),E(2765,"content_entries_completed"),E(2879,"discussion_board"),E(2252,"condition_greater_than"),E(2946,"submission_already_made"),E(2491,"permission_activity_update"),E(2258,"add_verb_filter"),E(2514,"change_password"),E(2885,"institution"),E(2446,"attendance_percentage"),E(2609,"maximum_score"),E(2785,"grades_class_age"),E(2905,"add_topic"),E(2936,"post"),E(2667,"add_student_to_school"),E(2685,"edit_site"),E(2750,"deleting_content"),E(2049,"female"),E(2276,"offline_sharing_enable_bluetooth_prompt"),E(2420,"export"),E(2828,"total_content_usage_duration_class"),E(2519,"add"),E(2668,"add_staff_to_school"),E(2176,"content_editor_save_error"),E(2545,"select_item"),E(2891,"visibility"),E(2473,"add_a_new_person"),E(2212,"new_custom_date_range"),E(2452,"group_setting_desc"),E(2108,"article"),E(2432,"users"),E(2466,"role_name"),E(2406,"activity_enter_any_notes"),E(2578,"add_a_new_clazzwork"),E(2646,"more_information"),E(2091,"success"),E(2672,"join_code_instructions"),E(2738,"start_from_scratch"),E(2489,"permission_activity_select"),E(2045,"phone_number"),E(2805,"error_code"),E(2508,"send_feedback"),E(2125,"relative_date"),E(2901,"assign_to_random_groups"),E(2453,"roles"),E(2773,"use_the_public_lib_env"),E(2171,"content_creation_folder_new_message"),E(2036,"confirm_password"),E(2816,"edit_clazzes"),E(2470,"scope_by"),E(2694,"undo"),E(2013,"recycled"),E(2087,"waiting_for_connection"),E(2253,"condition_less_than"),E(2642,"scope"),E(2192,"average_usage_time_per_user"),E(2300,"edit_schedule"),E(2038,"first_name"),E(2504,"option_value"),E(2872,"add_block"),E(2616,"add_class_comment"),E(2908,"message"),E(2944,"enrolment_policy"),E(2895,"select_terminology"),E(2119,"add_file_description"),E(2963,"pdf"),E(2378,"leaving_reason"),E(2423,"age"),E(2034,"username"),E(2246,"field_content_completion"),E(2863,"score_greater_than_zero"),E(2194,"percent_students_completed"),E(2299,"add_a_schedule"),E(2873,"edit_block"),E(2224,"xapi_options_y_axes"),E(2495,"permission_sel_select"),E(2309,"attendance_report"),E(2290,"license_type_cc_0"),E(2744,"add_from_gallery"),E(2354,"toC"),E(2789,"create_my_account"),E(2283,"licence_type_cc_by"),E(2927,"currently_enrolled"),E(2635,"sel_question_type_free_text"),E(2167,"multiple_choice"),E(2657,"share_link"),E(2387,"enrolment"),E(2525,"schools"),E(2890,"accept_enrolment_requests_automatically"),E(2398,"partial"),E(2500,"field_type"),E(2669,"permission_password_reset"),E(2861,"submit_grade_and_mark_next"),E(2027,"error_opening_file"),E(2050,"other"),E(2187,"content_total_duration"),E(2331,"class_description"),E(2513,"save"),E(2436,"gender_literal"),E(2832,"number_of_active_users_over_time"),E(2610,"quiz_questions"),E(2001,"login"),E(2333,"holiday"),E(2456,"edit_role"),E(2496,"permission_sel_update"),E(2697,"content_pieces_completed"),E(2766,"content_usage_time"),E(2082,"share"),E(2583,"total_score"),E(2412,"add_activity_literal"),E(2385,"outcome"),E(2745,"add_video_or_audio_from_the_device_gallery"),E(2347,"monday"),E(2709,"what_is_your_date_of_birth"),E(2324,"question"),E(2638,"question_type"),E(2037,"last_name"),E(2285,"licence_type_cc_by_sa_nc"),E(2391,"ascending"),E(2703,"opening_link"),E(2334,"add_a_holiday"),E(2594,"completion_criteria"),E(2614,"private_comments"),E(2556,"permission_clazz_assignment_view"),E(2632,"logged_in_as"),E(2942,"submit_all_at_once_submission_policy"),E(2244,"field_person_gender"),E(2706,"you_are_already_in_school"),E(2590,"points"),E(2752,"add_educational_content_using_supported_formats_eg_pdf_xapi_h5p"),E(2854,"file_type"),E(2467,"members"),E(2767,"all_permissions"),E(2427,"all"),E(2052,"settings"),E(2969,"panic_button_explanation"),E(2202,"xapi_day"),E(2497,"custom_fields"),E(2943,"multiple_submission_allowed_submission_policy"),E(2133,"dialog_download_from_playstore_cancel"),E(2769,"create_a_new_learning_env"),E(2681,"guest_login_enabled"),E(2397,"add_a_teacher"),E(2344,"monthly"),E(2656,"copy_code"),E(2888,"open_enrolment"),E(2883,"indent"),E(2152,"download_downloading_placeholder"),E(2731,"view_socioeconomic_details_of_members"),E(2296,"sort_by"),E(2375,"new_enrolment"),E(2544,"use_device_language"),E(2644,"role_description"),E(2442,"connectivity_full"),E(2396,"teacher"),E(2824,"percentage_of_students_attending_over_time"),E(2114,"and"),E(2295,"today"),E(2351,"friday"),E(2692,"edit_terms_and_policies"),E(2733,"add_person_or_group"),E(2272,"import_link_content_not_supported"),E(2538,"due_date"),E(2592,"automatic"),E(2073,"save_as_template"),E(2549,"add_to"),E(2413,"select_one"),E(2070,"exams"),E(2154,"download_cancel_label"),E(2325,"add_question"),E(2455,"add_a_new_role"),E(2896,"add_new_terminology"),E(2077,"forgot_password"),E(2163,"entry_details_author"),E(2431,"sel_question_set_desc"),E(2273,"import_link_big_size"),E(2314,"basic_details"),E(2120,"error_this_device_doesnt_support_bluetooth_sharing"),E(2225,"xapi_options_x_axes"),E(2776,"you_must_comply_with_license"),E(2335,"edit_holiday"),E(2035,"password"),E(2957,"from_my_courses"),E(2950,"add_discussion"),E(2743,"add_using_a_web_link_then"),E(2928,"past_enrollments"),E(2076,"add_a_student"),E(2093,"completed"),E(2814,"edit_basic_profile_of_members"),E(2502,"dropdown"),E(2269,"no_account"),E(2004,"register_empty_fields"),E(2227,"xapi_options_filters"),E(2266,"xapi_result_header"),E(2441,"connectivity_limited"),E(2857,"file_document"),E(2369,"graduated"),E(2160,"download_entry_state_paused"),E(2393,"sort_by_text"),E(2242,"id_verbentity_urlid"),E(2645,"assign_role"),E(2481,"permission_clazz_select"),E(2603,"short_text"),E(2107,"document"),E(2926,"edit_course"),E(2075,"students"),E(2201,"number_unique_students_attending"),E(2841,"dont_show_before"),E(2876,"formatted_text_to_show_to_course_participants"),E(2956,"disabled"),E(2330,"class_name"),E(2605,"quiz"),E(2967,"delete_app_data_from_device"),E(2057,"languages"),E(2262,"xapi_hours"),E(2547,"num_items_with_name"),E(2494,"permission_sel_question_update"),E(2520,"refresh"),E(2570,"not_submitted_cap"),E(2263,"xapi_minutes"),E(2915,"past_enrolments"),E(2234,"report_filter_edit_field"),E(2524,"join_existing_school"),E(2562,"call"),E(2770,"add_educational_content_to_new_learning_env"),E(2145,"download_continue_stacked_label"),E(2483,"permission_clazz_update"),E(2209,"last_two_week_date_range"),E(2417,"time_period"),E(2099,"import_content"),E(2401,"primary_user"),E(2827,"content_usage_by_class"),E(2356,"activity_change"),E(2625,"organisation"),E(2559,"add_new"),E(2848,"edit_after_submission"),E(2400,"participant"),E(2058,"edit_language"),E(2311,"mother"),E(2092,"incomplete"),E(2336,"holidays"),E(2762,"app_store_link"),E(2521,"school"),E(2381,"view_profile"),E(2784,"learning_environment"),E(2877,"add_course_block_content_desc"),E(2760,"nearby_share"),E(2364,"sort_by_name_desc"),E(2250,"condition_is"),E(2367,"enroled"),E(2702,"select_account"),E(2910,"courses"),E(2588,"allow_class_comments"),E(2302,"last"),E(2759,"recommended_for_advanced_users"),E(2012,"downloaded"),E(2449,"sync"),E(2740,"add_permission_for_a_person"),E(2660,"permission_person_delegate"),E(2140,"onboarding_no_internet_subheadline"),E(2370,"dropped_out"),E(2117,"add_link_description"),E(2046,"name"),E(2137,"onboarding_get_started_label"),E(2112,"unhide"),E(2711,"we_sent_a_message_to_your_parent"),E(2031,"next"),E(2531,"percentage_score"),E(2793,"almost_done"),E(2619,"submit"),E(2788,"add_remove_and_modify_subjects"),E(2069,"classes"),E(2572,"x_percent_attended"),E(2633,"person_exists"),E(2047,"description"),E(2695,"video"),E(2622,"return_and_mark_next"),E(2860,"submit_grade"),E(2055,"add_new_language"),E(2641,"add_role_permission"),E(2214,"time_range"),E(2180,"open_folder"),E(2691,"terms_and_policies_text"),E(2775,"revoking_consent_will"),E(2277,"offline_sharing_enable_wifi_promot"),E(2569,"submitted_cap"),E(2558,"overview"),E(2796,"search_in"),E(2683,"yes"),E(2014,"libraries"),E(2323,"student_image"),E(2428,"holiday_calendars"),E(2193,"number_students_completed"),E(2677,"add_a_new_occurrence"),E(2322,"join_existing_class"),E(2737,"continue_using_the_link"),E(2819,"content_already_added_to_class"),E(2843,"require_text_submission"),E(2611,"time"),E(2830,"total_content_duration_gender"),E(2966,"exit_app"),E(2526,"assignments"),E(2042,"memory_card"),E(2105,"interactive"),E(2540,"add_new_content"),E(2339,"edit_holiday_calendar"),E(2532,"started_date"),E(2386,"person_enrolment_in_class"),E(2551,"items_selected"),E(2028,"logout"),E(2384,"in_progress"),E(2718,"i_consent"),E(2438,"connectivity"),E(2440,"mobile_internet_access"),E(2503,"options"),E(2147,"download_wifi_only"),E(2523,"edit_school"),E(2213,"selected_custom_range"),E(2260,"dashboard"),E(2382,"class_enrolment_outcome"),E(2487,"permission_attendance_insert"),E(2408,"uom_duration_title"),E(2259,"add_content_filter"),E(2346,"sunday"),E(2067,"phone"),E(2952,"type_here"),E(2373,"edit_leaving_reason"),E(2162,"no_app_found"),E(2462,"audit_log_setting_desc"),E(2655,"copy_link"),E(2291,"syncing"),E(2297,"log"),E(2471,"assign_to"),E(2579,"edit_clazzwork"),E(2955,"enabled"),E(2771,"connect_to_an_existing_learning_environment"),E(2892,"hidden_enrolment_via_links_code_or_invitation"),E(2144,"onboarding_stay_organized_subheading"),E(2948,"update_grade"),E(2267,"xapi_score"),E(2149,"download_state_download"),E(2510,"start_date"),E(2851,"not_allowed"),E(2931,"new_group"),E(2461,"audit_log"),E(2270,"enter_url"),E(2008,"confirm_delete_message"),E(2230,"xapi_options_what"),E(2368,"class_enrolment"),E(2443,"prefer_not_to_say"),E(2372,"new_leaving_reason"),E(2433,"nomination"),E(2836,"drag_and_drop_or_click_to_add_file"),E(2637,"question_text"),E(2742,"add_using_link"),E(2024,"deleting"),E(2589,"after_deadline_date_error"),E(2182,"invalid_register_code"),E(2932,"chat"),E(2010,"login_network_error"),E(2779,"class_setup"),E(2080,"accounts"),E(2871,"course_blocks"),E(2527,"None"),E(2207,"xapi_clear"),E(2337,"holiday_calendar"),E(2509,"feedback_thanks"),E(2727,"edit_class_content"),E(2823,"attendance_over_time_by_class"),E(2903,"num_replies"),E(2923,"add_module"),E(2221,"xapi_options_data_set"),E(2680,"manage_site_settings"),E(2121,"share_offline_zip_checkbox_label"),E(2159,"insufficient_space"),E(2231,"xapi_options_when"),E(2600,"visible_from_date"),E(2210,"last_month_date_range"),E(2357,"change_implemented_if_any"),E(2725,"manage_parental_consent"),E(2353,"day"),E(2122,"share_offline_dialog_message"),E(2363,"sort_by_name_asc"),E(2383,"class_enrolment_leaving"),E(2840,"group"),E(2597,"marked"),E(2103,"licence"),E(2772,"does_your_class_already_have_learning_env"),E(2205,"xapi_custom_date"),E(2492,"permission_sel_question_select"),E(2015,"pause_download"),E(2652,"ask_your_teacher_for_code"),E(2826,"number_of_students_completed_time"),E(2217,"done"),E(2181,"action_hidden"),E(2185,"line_chart"),E(2284,"licence_type_cc_by_sa"),E(2343,"daily"),E(2803,"sorry_something_went_wrong"),E(2626,"use_public_library_site"),E(2517,"timezone"),E(2666,"permission_school_update"),E(2868,"penalty_label"),E(2239,"edit_report"),E(2859,"max_number_of_files"),E(2274,"import_link_error"),E(2189,"count_session"),E(2329,"add_class"),E(2164,"entry_details_publisher"),E(2485,"permission_clazz_add_student"),E(2604,"attachment"),E(2651,"reject"),E(2407,"uom_frequency_title"),E(2802,"oops"),E(2782,"from_my_classes"),E(2899,"course_setup"),E(2893,"visible_for_all"),E(2110,"move"),E(2128,"filed_password_no_match"),E(2399,"teachers_literal"),E(2858,"file_image"),E(2243,"edit_filters"),E(2411,"add_activity"),E(2968,"hide_app"),E(2732,"edit_socioeconomic_details_of_members"),E(2621,"marking"),E(2949,"update_grade_and_mark_next"),E(2303,"last_week"),E(2664,"permission_school_select"),E(2068,"attendance"),E(2079,"account"),E(2833,"parent"),E(2962,"app_language"),E(2255,"condition_not_in_list"),E(2435,"class_id"),E(2404,"activity_went_good"),E(2746,"add_file"),E(2479,"permission_person_picture_insert"),E(2951,"edit_discussion"),E(2426,"file_selected"),E(2648,"pending_requests"),E(2804,"incident_id"),E(2889,"enrolment_requests_must_be_approved"),E(2482,"permission_clazz_insert"),E(2041,"phone_memory"),E(2548,"num_items_with_name_with_comma"),E(2881,"new_module"),E(2933,"you"),E(2282,"repo_loading_status_failed_connection_error"),E(2130,"profile"),E(2434,"active"),E(2175,"supported_files"),E(2662,"permission_role_select"),E(2763,"everything_works_offline"),E(2761,"recommended_for_offline_installation"),E(2019,"canceled"),E(2598,"submitted"),E(2654,"invite_link_desc"),E(2869,"submissions"),E(2065,"regcode"),E(2714,"parent_child_register_message_subject"),E(2499,"custom_fields_desc"),E(2707,"join_class"),E(2422,"average"),E(2179,"show_hidden_items"),E(2458,"role_assignment_setting_desc"),E(2172,"content_creation_folder_update_message"),E(2734,"lets_get_started"),E(2921,"new_group_set"),E(2445,"search"),E(2460,"locations_setting_desc"),E(2377,"add_leaving_reason"),E(2349,"wednesday"),E(2561,"x_teachers_y_students"),E(2124,"fixed_date"),E(2607,"deadline"),E(2870,"add_text"),E(2940,"managed_enrolment"),E(2498,"custom_field"),E(2249,"field_attendance_percentage"),E(2730,"edit_contact_details_of_members"),E(2405,"activity_went_bad"),E(2787,"subjects"),E(2864,"words"),E(2326,"edit_question"),E(2350,"thursday"),E(2560,"staff"),E(2856,"file_type_any"),E(2328,"add_person"),E(2439,"home_internet_access"),E(2542,"student_progress"),E(2629,"create_account"),E(2855,"file_type_chosen"),E(2183,"enter_register_code"),E(2021,"deleted"),E(2059,"two_letter_code"),E(2573,"answer"),E(2844,"maximum"),E(2141,"onboarding_offline_sharing"),E(2723,"status_consent_denied"),E(2567,"present_late_absent"),E(2808,"view_clazzes"),E(2072,"choose_template"),E(2568,"marked_cap"),E(2115,"added"),E(2700,"powered_by"),E(2930,"new_chat"),E(2327,"questions"),E(2053,"language"),E(2156,"download_storage_option_device"),E(2403,"down"),E(2845,"size_limit"),E(2878,"add_assignment_block_content_desc"),E(2281,"repo_loading_status_failed_noconnection"),E(2705,"you_are_already_in_class"),E(2671,"entity_code"),E(2918,"course_code"),E(2591,"minimum_score"),E(2150,"download_state_downloading"),E(2374,"edit_enrolment"),E(2155,"download_pause_download"),E(2061,"languages_description"),E(2563,"organization_id"),E(2807,"view_clazz"),E(2191,"number_active_users"),E(2097,"content_from_file"),E(2670,"school_code"),E(2704,"select_account_to_continue"),E(2756,"add_subject"),E(2086,"waiting"),E(2507,"feedback_hint"),E(2236,"report_filter_edit_values"),E(2320,"edit_clazz"),E(2033,"back"),E(2817,"add_new_clazz_to_school"),E(2102,"title"),E(2286,"licence_type_cc_by_nc"),E(2539,"content"),E(2358,"duration"),E(2866,"class_timezone_set"),E(2894,"terminology"),E(2138,"lets_get_started_label"),E(2090,"passed"),E(2774,"just_want_to_browse"),E(2366,"date_left"),E(2448,"over"),E(2245,"field_person_age"),E(2941,"text_file_submission_error"),E(2464,"permission"),E(2066,"home"),E(2682,"registration_allowed"),E(2126,"field_required_prompt"),E(2298,"schedule"),E(2395,"attendance_low_to_high"),E(2724,"other_legal_guardian"),E(2287,"licence_type_cc_by_nc_sa"),E(2799,"alternatively_you_can_download_the_apk"),E(2515,"current_password"),E(2550,"remove_from"),E(2039,"register_now"),E(2338,"add_a_new_holiday_calendar"),E(2146,"download_continue_btn_label"),E(2062,"advanced"),E(2853,"peers"),E(2900,"number_of_groups"),E(2241,"add_a_new_verb"),E(2852,"marked_by"),E(2501,"text"),E(2735,"looks_like_installed_app_from_link"),E(2240,"verb"),E(2023,"loading"),E(2898,"your_words_for"),E(2220,"xapi_options_visual_type"),E(2256,"condition_between"),E(2074,"contents"),E(2219,"xapi_options_report_title"),E(2907,"messages"),E(2196,"total_absences"),E(2543,"status"),E(2081,"share_application"),E(2475,"permission_person_select"),E(2571,"submitliteral"),E(2909,"library"),E(2468,"member"),E(2608,"class_timezone"),E(2862,"graded"),E(2151,"download_state_downloaded"),E(2379,"leaving_reasons"),E(2238,"create_a_new_report"),E(2275,"supported_link"),E(2530,"percentage_complete"),E(2904,"topics"),E(2801,"limited_i_avoid_downloading_too_much"),E(2148,"download_calculating"),E(2758,"share_apk_file"),E(2111,"hide"),E(2104,"ebook"),E(2679,"terms_and_policies"),E(2389,"error_start_date_before_previous_enrolment_date"),E(2190,"interaction_recorded"),E(2237,"report"),E(2512,"last_active"),E(2661,"this_field_is_mandatory"),E(2280,"repo_loading_status_loading_mirror"),E(2294,"record_attendance"),E(2477,"permission_person_update"),E(2136,"created_partnership"),E(2798,"please_download_the_app"),E(2541,"add_content"),E(2602,"no_submission_required"),E(2429,"holiday_calendars_desc"),E(2792,"add_from_contacts"),E(2965,"actions_to_be_taken_in_case_of_emergency"),E(2753,"current_status_consent_granted"),E(2409,"uom_boolean_title"),E(2051,"unset"),E(2935,"posts"),E(2748,"importing"),E(2011,"download"),E(2726,"view_class_content"),E(2388,"error_start_date_before_clazz_date"),E(2688,"please_enter_the_linK"),E(2085,"downloading"),E(2457,"rols_assignment"),E(2947,"grade_out_of_range"),E(2846,"limit"),E(2522,"add_a_new_school"),E(2177,"content_entry_export_inprogress"),E(2747,"add_folder"),E(2906,"add_a_reply"),E(2659,"role_not_selected_error"),E(2584,"late_submission"),E(2630,"my"),E(2292,"feed"),E(2463,"entry"),E(2953,"deadline_has_passed"),E(2307,"present"),E(2505,"errors"),E(2312,"birthday"),E(2687,"site_link"),E(2684,"no"),E(2564,"student"),E(2728,"view_class_learning_records"),E(2815,"view_school"),E(2534,"mixed"),E(2020,"delete"),E(2739,"ignore_the_link"),E(2653,"copied_to_clipboard"),E(2902,"add_new_groups"),E(2376,"select_leaving_reason"),E(2751,"add_folder_description"),E(2016,"ok"),E(2640,"roles_and_permissions"),E(2754,"select_country"),E(2606,"allow_private_comments_from_students"),E(2689,"or"),E(2195,"total_attendances"),E(2419,"last_three_months"),E(2698,"content_usage_duration"),E(2554,"take_new_photo_from_camera"),E(2197,"total_lates"),E(2663,"permission_role_insert"),E(2264,"xapi_seconds"),E(2535,"store_title"),E(2518,"users_settings_desc"),E(2650,"please_wait_for_approval"),E(2088,"queued"),E(2029,"about"),E(2701,"invalid_email"),E(2254,"condition_in_list"),E(2557,"permission_clazz_asignment_edit"),E(2634,"incorrect_current_password"),E(2757,"share_via"),E(2795,"select_content"),E(2132,"dialog_download_from_playstore_ok"),E(2696,"content_editor_create_new_category"),E(2959,"reviews_per_user_group"),E(2317,"edit"),E(2416,"yes_no"),E(2643,"scope_description"),E(2874,"module"),E(2271,"invalid_link"),E(2222,"xapi_options_series"),E(2134,"accept"),E(2809,"enrol_and_unenrol_students"),E(2188,"content_average_duration"),E(2536,"store_description_short"),E(2778,"see_supported_sites"),E(2161,"get_app"),E(2755,"enter_link"),E(2025,"processing"),E(2960,"assign_random_reviewers"),E(2623,"return_only"),E(2043,"device"),E(2208,"last_week_date_range"),E(2954,"unassigned_error"),E(2005,"register_incorrect_email"),E(2048,"male"),E(2627,"create_site"),E(2511,"end_date"),E(2831,"unique_content_users_over_time"),E(2924,"add_a_new_course"),E(2352,"saturday"),E(2361,"activity"),E(2430,"sel_question_set"),E(2929,"unread"),E(2100,"update_content"),E(2849,"allowed_till_deadline"),E(2394,"attendance_high_to_low"),E(2596,"late_penalty"),E(2581,"new_assignment"),E(2365,"date_enroll"),E(2806,"take_me_home"),E(2109,"audio"),E(2142,"onboarding_offline_sharing_subheading"),E(2717,"relationship"),E(2064,"email"),E(2552,"change_photo"),E(2741,"add_permission_for_a_group"),E(2488,"permission_attendance_update"),E(2127,"field_password_error_min"),E(2056,"select_language"),E(2306,"mark_all_absent"),E(2587,"end_of_grace_period"),E(2305,"mark_all_present"),E(2939,"error_too_long_text"),E(2713,"parental_consent"),E(2533,"started"),E(2565,"contact_details"),E(2961,"reviewer"),E(2639,"add_option"),E(2293,"people"),E(2017,"confirm"),E(2478,"permission_person_picture_select"),E(2173,"error_message_load_page"),E(2574,"of_content"),E(2313,"first_names"),E(2022,"new_tab"),E(2200,"total_number_of_classes"),E(2811,"view_assignments"),E(2722,"status_consent_granted"),E(2265,"xapi_verb_header"),E(2332,"to"),E(2084,"open"),E(2437,"country"),E(2624,"workspace"),E(2174,"error_message_update_document"),E(2631,"add_another"),E(2922,"edit_text"),E(2850,"allowed_till_grace"),E(2617,"add_private_comment"),E(2170,"file_required_prompt"),E(2837,"extra_active_tab_warning"),E(2415,"frequency"),E(2821,"adult_account_required"),E(2402,"up"),E(2229,"xapi_options_did"),E(2106,"collection"),E(2934,"edit_topic"),E(2576,"not_answered"),E(2913,"course_comments"),E(2235,"report_filter_edit_condition"),E(2486,"permission_attendance_select"),E(2964,"panic_button_app"),E(2919,"add_group"),E(2410,"uom_default_title"),E(2143,"onboarding_stay_organized_headline"),E(2342,"once"),E(2917,"group_number"),E(2268,"import_title_not_entered"),E(2345,"yearly"),E(2970,"hide_app_explanation"),E(2168,"preview"),E(2880,"add_discussion_board_desc"),E(2884,"unindent"),E(2166,"file_not_found"),E(2288,"licence_type_public_domain"),E(2310,"father"),E(2649,"pending"),E(2129,"update"),E(2665,"permission_school_insert"),E(2786,"add_remove_and_modify_grades"),E(2251,"condition_is_not"),E(2203,"xapi_week"),E(2601,"submission_type"),E(2721,"restore_consent"),E(2032,"previous"),E(2425,"apply"),E(2153,"download_summary_title"),E(2822,"blank_report"),E(2232,"xapi_options_where"),E(2444,"sel_question_set_to_use"),E(2777,"you_can_copypaste_a_link"),E(2040,"new_password"),E(2418,"location"),E(2647,"class_code"),E(2131,"dialog_download_from_playstore_message"),E(2414,"measurement_type"),E(2813,"view_basic_profile_of_members"),E(2835,"selected_file_summary"),E(2781,"this_class"),E(2797,"type"),E(2054,"add_a_new_language"),E(2490,"permission_activity_insert"),E(2060,"three_letter_code"),E(2157,"download_locally_availability"),E(2897,"edit_terminology"),E(2278,"enable"),E(2465,"permissions"),E(2720,"revoke_consent"),E(2218,"xapi_options_general"),E(2476,"permission_person_insert"),E(2810,"enrol_and_unenrol_teachers"),E(2116,"attempts"),E(2113,"compress"),E(2484,"permission_clazz_add_teacher"),E(2493,"permission_sel_question_insert"),E(2575,"nothing_here"),E(2764,"swipe_to_next"),E(2875,"course_module"),E(2580,"clazz_assignment"),E(2261,"activity_import_link"),E(2586,"late_submission_penalty"),E(2006,"group_activity"),E(2937,"individual_submission"),E(2842,"require_file_submission"),E(2078,"notifications"),E(2204,"xapi_month"),E(2233,"time_range_all"),E(2101,"publicly_accessible"),E(2206,"xapi_content_entry"),E(2098,"content_from_link"),E(2211,"last_three_months_date_range"),E(2847,"number_of_files"),E(2914,"currently_enroled"),E(2340,"features_enabled"),E(2618,"class_comments"),E(2886,"student_enrolment_policy"),E(2555,"select_new_photo_from_gallery"),E(2820,"your_account_needs_approved"),E(2710,"parents_email_address"),E(2911,"course"),E(2390,"time_present"),E(2925,"join_existing_course"),E(2228,"xapi_options_who"),E(2790,"recommend_it"),E(2920,"edit_group"),E(2658,"invite_with_link"),E(2007,"select_group_members"),E(2199,"percent_students_attended_or_late"),E(2585,"mark_penalty"),E(2447,"filter"),E(2469,"role_assignment"),E(2712,"toggle_visibility"),E(2825,"content_completion"),E(2009,"wrong_user_pass_combo"),E(2599,"not_submitted"),E(2686,"site"),E(2030,"download_all"),E(2800,"full_i_can_download_as_much_as_i_like"),E(2829,"content_usage_over_time"),E(2198,"percent_students_attended"),E(2612,"submission"),E(2359,"how_did_it_go"),E(2676,"record_attendance_for_most_recent_occurrence"),E(2301,"first"),E(2421,"date"),E(2593,"student_marks_content"),E(2938,"unassigned"),E(2480,"permission_person_picture_update"),E(2867,"maximum_points"),E(2392,"descending"),E(2529,"not_started"),E(2139,"onboarding_no_internet_headline"),E(2719,"i_do_not_consent"),E(2912,"reports_and_analytics"),E(2026,"uploading"),E(2169,"content_creation_storage_option_title"),E(2216,"from"),E(2304,"mark_all"),E(2362,"sort_by_name"),E(2945,"submission_policy"),E(2516,"password_unchanged"),E(2839,"individual"),E(2279,"repo_loading_status_loading_cloud"),E(2620,"three_num_items_with_name_with_comma"),E(2678,"active_classes"),E(2316,"add_person_to_class"),E(2226,"xapi_options_subgroup"),E(2537,"store_description_full"),E(2089,"failed"),E(2135,"also_available_in"),E(2675,"end_is_before_start_error"),E(2699,"manage_download"),E(2118,"add_gallery_description"),E(2123,"preparing"),E(2673,"record_for_student"),E(2472,"person"),E(2715,"parent_child_register_message"),E(2887,"teacher_enrolment_policy"),E(2083,"send"),E(2223,"xapi_options_axes"),E(2615,"submit_your_answer"),E(2002,"error"),E(2319,"add_a_new_class"),E(2791,"edit_permissions"),E(2289,"licence_type_all_rights"),E(2247,"field_content_entry"),E(2321,"add_a_class"),E(2794,"your_username"),E(2553,"remove_photo"),E(2451,"groups"),E(2380,"leaving_reason_manage"),E(2729,"view_contact_details_of_members"),E(2348,"tuesday"),E(2749,"downloading_content"),E(2459,"locations"),E(2257,"add_person_filter"),E(2318,"clazz"),E(2818,"added_to_class_content")]),this.idMap=b(this.strMap_0)}Ps.prototype=Object.create(C.prototype),Ps.prototype.constructor=Ps,Qs.prototype=Object.create(C.prototype),Qs.prototype.constructor=Qs,ya.prototype=Object.create(C.prototype),ya.prototype.constructor=ya,Ra.prototype=Object.create(St.prototype),Ra.prototype.constructor=Ra,ul.prototype=Object.create(on.prototype),ul.prototype.constructor=ul,dl.prototype=Object.create(on.prototype),dl.prototype.constructor=dl,Cl.prototype=Object.create(rz.prototype),Cl.prototype.constructor=Cl,wz.prototype=Object.create(rz.prototype),wz.prototype.constructor=wz,fz.prototype=Object.create(wz.prototype),fz.prototype.constructor=fz,Rl.prototype=Object.create(fz.prototype),Rl.prototype.constructor=Rl,Ul.prototype=Object.create(rz.prototype),Ul.prototype.constructor=Ul,Ez.prototype=Object.create(rz.prototype),Ez.prototype.constructor=Ez,Ql.prototype=Object.create(Ez.prototype),Ql.prototype.constructor=Ql,_z.prototype=Object.create(wz.prototype),_z.prototype.constructor=_z,nu.prototype=Object.create(_z.prototype),nu.prototype.constructor=nu,xu.prototype=Object.create(_z.prototype),xu.prototype.constructor=xu,ju.prototype=Object.create(Ez.prototype),ju.prototype.constructor=ju,Gu.prototype=Object.create(_z.prototype),Gu.prototype.constructor=Gu,_h.prototype=Object.create(Wn.prototype),_h.prototype.constructor=_h,fR.prototype=Object.create(sR.prototype),fR.prototype.constructor=fR,Eh.prototype=Object.create(fR.prototype),Eh.prototype.constructor=Eh,yh.prototype=Object.create(Wn.prototype),yh.prototype.constructor=yh,Nh.prototype=Object.create(fR.prototype),Nh.prototype.constructor=Nh,Th.prototype=Object.create(Wn.prototype),Th.prototype.constructor=Th,Rh.prototype=Object.create(fR.prototype),Rh.prototype.constructor=Rh,Ah.prototype=Object.create(Wn.prototype),Ah.prototype.constructor=Ah,jh.prototype=Object.create(fR.prototype),jh.prototype.constructor=jh,ph.prototype=Object.create(fz.prototype),ph.prototype.constructor=ph,Yh.prototype=Object.create(_z.prototype),Yh.prototype.constructor=Yh,nd.prototype=Object.create(_z.prototype),nd.prototype.constructor=nd,yd.prototype=Object.create(Wn.prototype),yd.prototype.constructor=yd,Nd.prototype=Object.create(fR.prototype),Nd.prototype.constructor=Nd,Ed.prototype=Object.create(fz.prototype),Ed.prototype.constructor=Ed,np.prototype=Object.create(Wn.prototype),np.prototype.constructor=np,sp.prototype=Object.create(fR.prototype),sp.prototype.constructor=sp,ap.prototype=Object.create(Wn.prototype),ap.prototype.constructor=ap,_p.prototype=Object.create(fR.prototype),_p.prototype.constructor=_p,ep.prototype=Object.create(fz.prototype),ep.prototype.constructor=ep,Cp.prototype=Object.create(Ez.prototype),Cp.prototype.constructor=Cp,zp.prototype=Object.create(Ez.prototype),zp.prototype.constructor=zp,Up.prototype=Object.create(fz.prototype),Up.prototype.constructor=Up,Jp.prototype=Object.create(fz.prototype),Jp.prototype.constructor=Jp,c_.prototype=Object.create(Wn.prototype),c_.prototype.constructor=c_,p_.prototype=Object.create(Wn.prototype),p_.prototype.constructor=p_,g_.prototype=Object.create(fR.prototype),g_.prototype.constructor=g_,s_.prototype=Object.create(Ez.prototype),s_.prototype.constructor=s_,N_.prototype=Object.create(Ez.prototype),N_.prototype.constructor=N_,I_.prototype=Object.create(Ez.prototype),I_.prototype.constructor=I_,k_.prototype=Object.create(_z.prototype),k_.prototype.constructor=k_,am.prototype=Object.create(_z.prototype),am.prototype.constructor=am,Rm.prototype=Object.create(Wn.prototype),Rm.prototype.constructor=Rm,Fm.prototype=Object.create(Wn.prototype),Fm.prototype.constructor=Fm,Xm.prototype=Object.create(fR.prototype),Xm.prototype.constructor=Xm,Jm.prototype=Object.create(fR.prototype),Jm.prototype.constructor=Jm,pm.prototype=Object.create(fz.prototype),pm.prototype.constructor=pm,$f.prototype=Object.create(rz.prototype),$f.prototype.constructor=$f,vf.prototype=Object.create(Ez.prototype),vf.prototype.constructor=vf,Mf.prototype=Object.create(_z.prototype),Mf.prototype.constructor=Mf,kf.prototype=Object.create(fz.prototype),kf.prototype.constructor=kf,Kf.prototype=Object.create(_z.prototype),Kf.prototype.constructor=Kf,tg.prototype=Object.create(fz.prototype),tg.prototype.constructor=tg,pg.prototype=Object.create(Ez.prototype),pg.prototype.constructor=pg,mg.prototype=Object.create(fz.prototype),mg.prototype.constructor=mg,Sg.prototype=Object.create(Ez.prototype),Sg.prototype.constructor=Sg,Dg.prototype=Object.create(rz.prototype),Dg.prototype.constructor=Dg,Jg.prototype=Object.create(fz.prototype),Jg.prototype.constructor=Jg,o$.prototype=Object.create(_z.prototype),o$.prototype.constructor=o$,c$.prototype=Object.create(fz.prototype),c$.prototype.constructor=c$,d$.prototype=Object.create(rz.prototype),d$.prototype.constructor=d$,R$.prototype=Object.create(fz.prototype),R$.prototype.constructor=R$,V$.prototype=Object.create(Ez.prototype),V$.prototype.constructor=V$,Y$.prototype=Object.create(fz.prototype),Y$.prototype.constructor=Y$,eE.prototype=Object.create(_z.prototype),eE.prototype.constructor=eE,rE.prototype=Object.create(rz.prototype),rE.prototype.constructor=rE,lE.prototype=Object.create(rz.prototype),lE.prototype.constructor=lE,yE.prototype=Object.create(fz.prototype),yE.prototype.constructor=yE,NE.prototype=Object.create(Ez.prototype),NE.prototype.constructor=NE,AE.prototype=Object.create(fz.prototype),AE.prototype.constructor=AE,PE.prototype=Object.create(Ez.prototype),PE.prototype.constructor=PE,kE.prototype=Object.create(rz.prototype),kE.prototype.constructor=kE,VE.prototype=Object.create(fz.prototype),VE.prototype.constructor=VE,sy.prototype=Object.create(rz.prototype),sy.prototype.constructor=sy,py.prototype=Object.create(fz.prototype),py.prototype.constructor=py,by.prototype=Object.create(fz.prototype),by.prototype.constructor=by,xy.prototype=Object.create(_z.prototype),xy.prototype.constructor=xy,jy.prototype=Object.create(fz.prototype),jy.prototype.constructor=jy,Zy.prototype=Object.create(Ez.prototype),Zy.prototype.constructor=Zy,sb.prototype=Object.create(rz.prototype),sb.prototype.constructor=sb,db.prototype=Object.create(rz.prototype),db.prototype.constructor=db,_b.prototype=Object.create(_z.prototype),_b.prototype.constructor=_b,fS.prototype=Object.create(Wn.prototype),fS.prototype.constructor=fS,bS.prototype=Object.create(fR.prototype),bS.prototype.constructor=bS,SS.prototype=Object.create(Wn.prototype),SS.prototype.constructor=SS,xS.prototype=Object.create(fR.prototype),xS.prototype.constructor=xS,IS.prototype=Object.create(Wn.prototype),IS.prototype.constructor=IS,BS.prototype=Object.create(Wn.prototype),BS.prototype.constructor=BS,nv.prototype=Object.create(fR.prototype),nv.prototype.constructor=nv,iv.prototype=Object.create(Wn.prototype),iv.prototype.constructor=iv,bv.prototype=Object.create(fR.prototype),bv.prototype.constructor=bv,mS.prototype=Object.create(fz.prototype),mS.prototype.constructor=mS,tC.prototype=Object.create(Wn.prototype),tC.prototype.constructor=tC,hC.prototype=Object.create(fR.prototype),hC.prototype.constructor=hC,dC.prototype=Object.create(Wn.prototype),dC.prototype.constructor=dC,SC.prototype=Object.create(fR.prototype),SC.prototype.constructor=SC,vC.prototype=Object.create(Wn.prototype),vC.prototype.constructor=vC,wC.prototype=Object.create(fR.prototype),wC.prototype.constructor=wC,OC.prototype=Object.create(Wn.prototype),OC.prototype.constructor=OC,Zv.prototype=Object.create(fz.prototype),Zv.prototype.constructor=Zv,KC.prototype=Object.create(Ez.prototype),KC.prototype.constructor=KC,uN.prototype=Object.create(Ez.prototype),uN.prototype.constructor=uN,mN.prototype=Object.create(Wn.prototype),mN.prototype.constructor=mN,EN.prototype=Object.create(fR.prototype),EN.prototype.constructor=EN,yN.prototype=Object.create(Wn.prototype),yN.prototype.constructor=yN,ON.prototype=Object.create(fR.prototype),ON.prototype.constructor=ON,_N.prototype=Object.create(fz.prototype),_N.prototype.constructor=_N,RN.prototype=Object.create(_z.prototype),RN.prototype.constructor=RN,GN.prototype=Object.create(_z.prototype),GN.prototype.constructor=GN,WN.prototype=Object.create(fz.prototype),WN.prototype.constructor=WN,eT.prototype=Object.create(Ez.prototype),eT.prototype.constructor=eT,sT.prototype=Object.create(Ez.prototype),sT.prototype.constructor=sT,_T.prototype=Object.create(fz.prototype),_T.prototype.constructor=_T,bT.prototype=Object.create(rz.prototype),bT.prototype.constructor=bT,zT.prototype=Object.create(rz.prototype),zT.prototype.constructor=zT,OT.prototype=Object.create(Ez.prototype),OT.prototype.constructor=OT,IT.prototype=Object.create(rz.prototype),IT.prototype.constructor=IT,kT.prototype=Object.create(_z.prototype),kT.prototype.constructor=kT,HT.prototype=Object.create(fz.prototype),HT.prototype.constructor=HT,_L.prototype=Object.create(_z.prototype),_L.prototype.constructor=_L,EL.prototype=Object.create(fz.prototype),EL.prototype.constructor=EL,wL.prototype=Object.create(Ez.prototype),wL.prototype.constructor=wL,kL.prototype=Object.create(fz.prototype),kL.prototype.constructor=kL,WL.prototype=Object.create(fz.prototype),WL.prototype.constructor=WL,ez.prototype=Object.create(rz.prototype),ez.prototype.constructor=ez,Rz.prototype=Object.create(Wn.prototype),Rz.prototype.constructor=Rz,Bz.prototype=Object.create(rz.prototype),Bz.prototype.constructor=Bz,nw.prototype=Object.create(rz.prototype),nw.prototype.constructor=nw,dw.prototype=Object.create(rz.prototype),dw.prototype.constructor=dw,xw.prototype=Object.create(on.prototype),xw.prototype.constructor=xw,Uw.prototype=Object.create(on.prototype),Uw.prototype.constructor=Uw,iR.prototype=Object.create(yR.prototype),iR.prototype.constructor=iR,aR.prototype=Object.create(sR.prototype),aR.prototype.constructor=aR,$R.prototype=Object.create(fR.prototype),$R.prototype.constructor=$R,NR.prototype=Object.create(iR.prototype),NR.prototype.constructor=NR,IR.prototype=Object.create(qr.prototype),IR.prototype.constructor=IR,OR.prototype=Object.create(Gr.prototype),OR.prototype.constructor=OR,DR.prototype=Object.create(iR.prototype),DR.prototype.constructor=DR,rA.prototype=Object.create(on.prototype),rA.prototype.constructor=rA,sA.prototype=Object.create(on.prototype),sA.prototype.constructor=sA,jj.prototype=Object.create(Wn.prototype),jj.prototype.constructor=jj,rG.prototype=Object.create(Wn.prototype),rG.prototype.constructor=rG,uG.prototype=Object.create(Wn.prototype),uG.prototype.constructor=uG,mG.prototype=Object.create(Wn.prototype),mG.prototype.constructor=mG,FG.prototype=Object.create(bT.prototype),FG.prototype.constructor=FG,XG.prototype=Object.create(Bz.prototype),XG.prototype.constructor=XG,ZG.prototype=Object.create(nw.prototype),ZG.prototype.constructor=ZG,aq.prototype=Object.create(Fw.prototype),aq.prototype.constructor=aq,Xq.prototype=Object.create(As.prototype),Xq.prototype.constructor=Xq,xs.prototype.get_za3lpa$=function(t){return this.strMap_0.get_11rb$(t)},xs.$metadata$={kind:S,simpleName:"MessageIdMap",interfaces:[]};var Is=null;function Us(){return null===Is&&new xs,Is}function Ds(t,e){void 0===t&&(t=!0),void 0===e&&(e=null),this.makeAccountActive=t,this.parentJoin=e}function Ps(t,e){void 0===t&&(t=null),void 0===e&&(e=null),C.call(this,t,e),this.name="AdultAccountRequiredException"}function Ms(t,n){var i,o,r,s,a,c,l;this.di_2byzdw$_0=n,i=this.diTrigger,this.repo_vmewjz$_0=H(G(this,q.Companion.invoke_np530x$(e.isType(o=F(M(P(Zs),[],!1)),B)?o:W(),t),i),e.isType(r=F(M(P(k),[],!1)),B)?r:W(),2).provideDelegate_tpuvb9$(this,ks),s=this.diTrigger,this.db_2byzjx$_0=H(G(this,q.Companion.invoke_np530x$(e.isType(a=F(M(P(Zs),[],!1)),B)?a:W(),t),s),e.isType(c=F(M(P(k),[],!1)),B)?c:W(),1).provideDelegate_tpuvb9$(this,js),this.pbkdf2Params_e3wbvo$_0=H(this,e.isType(l=F(M(P(ha),[],!1)),B)?l:W(),null).provideDelegate_tpuvb9$(this,Gs)}Ds.$metadata$={kind:v,simpleName:"AccountRegisterOptions",interfaces:[]},Ds.prototype.component1=function(){return this.makeAccountActive},Ds.prototype.component2=function(){return this.parentJoin},Ds.prototype.copy_pn825b$=function(t,e){return new Ds(void 0===t?this.makeAccountActive:t,void 0===e?this.parentJoin:e)},Ds.prototype.toString=function(){return"AccountRegisterOptions(makeAccountActive="+e.toString(this.makeAccountActive)+", parentJoin="+e.toString(this.parentJoin)+")"},Ds.prototype.hashCode=function(){var t=0;return t=31*(t=31*t+e.hashCode(this.makeAccountActive)|0)+e.hashCode(this.parentJoin)|0},Ds.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.makeAccountActive,t.makeAccountActive)&&e.equals(this.parentJoin,t.parentJoin)},Ps.$metadata$={kind:v,simpleName:"AdultAccountRequiredException",interfaces:[C]},Object.defineProperty(Ms.prototype,"di",{get:function(){return this.di_2byzdw$_0}});var ks=new N("repo");Object.defineProperty(Ms.prototype,"repo_0",{configurable:!0,get:function(){return this.repo_vmewjz$_0.value}});var js=new N("db");Object.defineProperty(Ms.prototype,"db_0",{configurable:!0,get:function(){return this.db_2byzjx$_0.value}});var Gs=new N("pbkdf2Params");function qs(t,e,n,i,o){L.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$tmp$_3=void 0,this.local$authSalt=void 0,this.local$passwordDoubleHashed=void 0,this.local$authorizedPerson=void 0,this.local$person=void 0,this.local$username=e,this.local$password=n,this.local$fallbackToOldPersonAuth=i}function Fs(t,e,n,i){L.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$personUid=e,this.local$password=n}function Bs(t,e,n){Vs(),void 0===t&&(t=null),void 0===e&&(e=!1),void 0===n&&(n=0),this.authenticatedPerson=t,this.success=e,this.reason=n}function Ws(){Hs=this,this.REASON_NEEDS_CONSENT=1}Object.defineProperty(Ms.prototype,"pbkdf2Params_0",{configurable:!0,get:function(){return this.pbkdf2Params_e3wbvo$_0.value}}),qs.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},qs.prototype=Object.create(L.prototype),qs.prototype.constructor=qs,qs.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n,i,o,r,s,a,c,l;if(void 0===this.local$fallbackToOldPersonAuth&&(this.local$fallbackToOldPersonAuth=!1),this.state_0=2,this.result_0=this.$this.repo_0.siteDao.getSiteAsync(this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(null==(t=this.result_0))throw z("No site!");if(null==(n=t.authSalt))throw z("No auth salt!");if(this.local$authSalt=n,this.local$passwordDoubleHashed=KA(this.local$password,this.local$authSalt,this.$this.pbkdf2Params_0),this.state_0=3,this.result_0=this.$this.repo_0.personAuth2Dao.findByUsername_61zpoe$(this.local$username,this),this.result_0===T)return T;continue;case 3:var u=this.result_0;if(w(null!=(null!=u?u.pauthAuth:null)?eF():null,this.local$passwordDoubleHashed)){if(this.state_0=4,this.result_0=this.$this.repo_0.personDao.findByUidAsync_s8cxhz$(null!=(i=null!=u?u.pauthUid:null)?i:O,this),this.result_0===T)return T;continue}this.local$tmp$_3=null,this.state_0=5;continue;case 4:this.local$tmp$_3=this.result_0,this.state_0=5;continue;case 5:if(this.local$authorizedPerson=this.local$tmp$_3,null==this.local$authorizedPerson&&this.local$fallbackToOldPersonAuth){if(this.state_0=6,this.result_0=this.$this.db_0.personDao.findUidAndPasswordHashAsync_61zpoe$(this.local$username,this),this.result_0===T)return T;continue}this.state_0=10;continue;case 6:if(this.local$person=this.result_0,null!=this.local$person){var h=!0===(null!=(o=this.local$person.passwordHash)?A(o,R.PersonAuthDaoCommon.PLAIN_PASS_PREFIX):null);h&&(h=x(null!=(r=this.local$person.passwordHash)?r.substring(2):null,this.local$password)),l=!!h||!0===(null!=(s=this.local$person.passwordHash)?A(s,R.PersonAuthDaoCommon.ENCRYPTED_PASS_PREFIX):null)&&I(this.local$password,null!=(c=null!=(a=this.local$person.passwordHash)?a.substring(2):null)?c:"")}else l=!1;if(l){if(this.state_0=7,this.result_0=this.$this.db_0.personDao.findByUidAsync_s8cxhz$(this.local$person.personUid,this),this.result_0===T)return T;continue}this.state_0=9;continue;case 7:this.local$authorizedPerson=this.result_0;var d=this.$this.repo_0.personAuth2Dao,p=new U;if(p.pauthUid=this.local$person.personUid,p.pauthMechanism=U.Companion.AUTH_MECH_PBKDF2_DOUBLE,p.pauthAuth=Jq(KA(this.local$password,this.local$authSalt,this.$this.pbkdf2Params_0)),this.state_0=8,this.result_0=d.insertAsync_j8byhd$(p,this),this.result_0===T)return T;continue;case 8:this.state_0=9;continue;case 9:this.state_0=10;continue;case 10:if(null!=this.local$authorizedPerson&&SO(D.Companion.invoke_s8cxhz$(this.local$authorizedPerson.dateOfBirth))t?this.languages_0.get_za3lpa$(t):null},Tc.prototype.getLanguages=function(){return this.languages_0},Tc.prototype.getSpine=function(){return this.spine_0},Tc.prototype.getManifestItems=function(){return this.manifestItems_0},Rc.prototype.getExtension_61zpoe$=function(t){var e,n=Ae(t,46);if(-1!==n){var i=n+1|0;e=t.substring(i)}else e=null;return e},Rc.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var Ac=null;function xc(){return null===Ac&&new Rc,Ac}function Ic(){this.href="",this.mediaType="",this.properties="",this.isLinear=!1,this.id="",this.isLinear=!0}function Uc(){this.name=null,this.mbox=null,this.mbox_sha1sum=null,this.openid=null,this.objectType=null,this.members=null,this.account=null}function Dc(t){this.$outer=t,this.name=null,this.homePage=null}function Pc(){this.name=null,this.description=null,this.type=null,this.extensions=null,this.moreInfo=null,this.interactionType=null,this.correctResponsePattern=null,this.choices=null,this.scale=null,this.source=null,this.target=null,this.steps=null}function Mc(t){this.$outer=t,this.id=null,this.description=null}function kc(){this.completion=!1,this.success=null,this.score=null,this.duration=null,this.response=null,this.extensions=null}function jc(t){this.$outer=t,this.scaled=0,this.raw=O,this.min=O,this.max=O}function Gc(){this.actor=null,this.verb=null,this.object=null,this.subStatement=null,this.result=null,this.context=null,this.timestamp=null,this.stored=null,this.authority=null,this.version=null,this.id=null,this.attachments=null,this.objectType=null}function qc(){this.id=null,this.display=null}function Fc(){this.instructor=null,this.registration=null,this.language=null,this.platform=null,this.revision=null,this.team=null,this.statement=null,this.contextActivities=null,this.extensions=null}function Bc(){this.id=null,this.definition=null,this.objectType=null,this.statementRefUid=O}function Wc(){}function Hc(){}function Vc(t,e,n,i,o,r,s){var a,c=new Gc,l=new Uc,u=new Dc(l);u.homePage=e.endpointUrl,u.name=null!=(a=e.username)?a:"guest",l.account=u,c.actor=l;var h=new qc;h.id=100===i?"https://w3id.org/xapi/adl/verbs/satisfied":"http://adlnet.gov/expapi/verbs/progressed",h.display=Je(E("en-US",100===i?"satisfied":"progressed")),c.verb=h;var d=new Fc;d.registration=r,c.context=d;var p=new kc;p.completion=100===i,p.duration=QR().format8601Duration_s8cxhz$(o),p.extensions=Je(E("https://w3id.org/xapi/cmi5/result/extensions/progress",i)),c.result=p;var _,m=new Bc;m.id=null!=(_=n.entryId)?_:XR().joinPaths_vqirvp$([e.endpointUrl,"/contentEntryUid/"+n.contentEntryUid.toString()]),m.objectType="Activity";var f,g,$=new Pc;$.name=Je(E("en-US",null!=(f=n.title)?f:"")),$.description=Je(E("en-US",null!=(g=n.description)?g:"")),m.definition=$,c.object=m;var y=c;t.storeStatements_208yqg$($e(y),"",n.contentEntryUid,s)}function Kc(t,n,i,o,r,s){var a=new Gc,c=new Uc,l=new Dc(c);l.homePage=n.endpointUrl,l.name=n.username,c.account=l,a.actor=c;var u=new qc;u.id="http://adlnet.gov/expapi/verbs/completed",u.display=Je(E("en-US","completed")),a.verb=u;var h=new Fc;h.registration=o,a.context=h;var d=new kc;if(d.completion=!0,d.extensions=Je(E("https://w3id.org/xapi/cmi5/result/extensions/progress",100)),null!=r){d.success=!0;var p=new jc(d);p.raw=e.Long.fromInt(r.resultScore),p.max=e.Long.fromInt(r.resultMax),p.scaled=r.resultScaled,d.score=p}a.result=d;var _,m=new Bc;m.id=null!=(_=i.entryId)?_:XR().joinPaths_vqirvp$([n.endpointUrl,"/contentEntryUid/"+i.contentEntryUid.toString()]),m.objectType="Activity";var f,g,$=new Pc;$.name=Je(E("en-US",null!=(f=i.title)?f:"")),$.description=Je(E("en-US",null!=(g=i.description)?g:"")),m.definition=$,a.object=m;var y=a;t.storeStatements_208yqg$($e(y),"",i.contentEntryUid,s)}function Xc(t,e,n){this.endpoint=t,this.context=e,this.uploader=n}function Jc(){Zc()}function Yc(){Qc=this,this.KEY_ENDPOINT="endpoint",this.KEY_CONTENTJOB_UID="cjUid"}Tc.$metadata$={kind:v,simpleName:"OpfDocument",interfaces:[]},Ic.prototype.setMimeType_61zpoe$=function(t){this.mediaType=t},Ic.$metadata$={kind:v,simpleName:"OpfItem",interfaces:[]},Dc.$metadata$={kind:v,simpleName:"Account",interfaces:[]},Uc.prototype.equals=function(t){var n,i;if(this===t)return!0;if(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))return!1;var o=null==(i=t)||e.isType(i,Uc)?i:W();return!!(null!=this.name?x(this.name,Se(o).name):null==Se(o).name)&&!!(null!=this.mbox?x(this.mbox,o.mbox):null==o.mbox)&&!!(null!=this.mbox_sha1sum?x(this.mbox_sha1sum,o.mbox_sha1sum):null==o.mbox_sha1sum)&&!!(null!=this.openid?x(this.openid,o.openid):null==o.openid)&&!!(null!=this.objectType?x(this.objectType,o.objectType):null==o.objectType)&&!!(null!=this.members?x(this.members,o.members):null==o.members)&&(null!=this.account?x(this.account,o.account):null==o.account)},Uc.prototype.hashCode=function(){var t=null!=this.name?qe(Se(this.name)):0;return t=(31*(t=(31*(t=(31*(t=(31*(t=(31*(t=(31*t|0)+(null!=this.mbox?qe(Se(this.mbox)):0)|0)|0)+(null!=this.mbox_sha1sum?qe(Se(this.mbox_sha1sum)):0)|0)|0)+(null!=this.openid?qe(Se(this.openid)):0)|0)|0)+(null!=this.objectType?qe(Se(this.objectType)):0)|0)|0)+(null!=this.members?qe(Se(this.members)):0)|0)|0)+(null!=this.account?qe(Se(this.account)):0)|0},Uc.$metadata$={kind:v,simpleName:"Actor",interfaces:[]},Mc.$metadata$={kind:v,simpleName:"Interaction",interfaces:[]},Pc.$metadata$={kind:v,simpleName:"Definition",interfaces:[]},jc.$metadata$={kind:v,simpleName:"Score",interfaces:[]},kc.prototype.equals=function(t){var n,i;if(this===t)return!0;if(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))return!1;var o=null==(i=t)||e.isType(i,kc)?i:W();return this.completion===Se(o).completion&&this.success==o.success&&!!(null!=this.score?x(this.score,o.score):null==o.score)&&!!(null!=this.duration?x(this.duration,o.duration):null==o.duration)&&!!(null!=this.response?x(this.response,o.response):null==o.response)&&(null!=this.extensions?x(this.extensions,o.extensions):null==o.extensions)},kc.prototype.hashCode=function(){var t=this.completion?1:0;return t=(31*(t=(31*(t=(31*(t=(31*(t=(31*t|0)+(null!=this.success?qe(Se(this.success)):0)|0)|0)+(null!=this.score?qe(Se(this.score)):0)|0)|0)+(null!=this.duration?qe(Se(this.duration)):0)|0)|0)+(null!=this.response?qe(Se(this.response)):0)|0)|0)+(null!=this.extensions?qe(Se(this.extensions)):0)|0},kc.$metadata$={kind:v,simpleName:"Result",interfaces:[]},Gc.prototype.equals=function(t){var n,i;if(this===t)return!0;if(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))return!1;var o=null==(i=t)||e.isType(i,Gc)?i:W();return!!(null!=this.actor?x(this.actor,Se(o).actor):null==Se(o).actor)&&!!(null!=this.verb?x(this.verb,o.verb):null==o.verb)&&!!(null!=this.object?x(this.object,o.object):null==o.object)&&!!(null!=this.subStatement?x(this.subStatement,o.subStatement):null==o.subStatement)&&!!(null!=this.result?x(this.result,o.result):null==o.result)&&!!(null!=this.context?x(this.context,o.context):null==o.context)&&!!(null!=this.authority?x(this.authority,o.authority):null==o.authority)&&(null!=this.objectType?x(this.objectType,o.objectType):null==o.objectType)},Gc.prototype.hashCode=function(){var t=null!=this.actor?Se(this.actor).hashCode():0;return t=(31*(t=(31*(t=(31*(t=(31*(t=(31*(t=(31*(t=(31*t|0)+(null!=this.verb?Se(this.verb).hashCode():0)|0)|0)+(null!=this.object?Se(this.object).hashCode():0)|0)|0)+(null!=this.subStatement?Se(this.subStatement).hashCode():0)|0)|0)+(null!=this.result?Se(this.result).hashCode():0)|0)|0)+(null!=this.context?Se(this.context).hashCode():0)|0)|0)+(null!=this.authority?Se(this.authority).hashCode():0)|0)|0)+(null!=this.objectType?qe(Se(this.objectType)):0)|0},Gc.$metadata$={kind:v,simpleName:"Statement",interfaces:[]},qc.prototype.equals=function(t){var n;return this===t||!(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))&&(e.isType(t,qc)||W(),!!x(this.id,t.id)&&!!x(this.display,t.display))},qc.prototype.hashCode=function(){var t,e,n,i,o=null!=(e=null!=(t=this.id)?qe(t):null)?e:0;return o=(31*o|0)+(null!=(i=null!=(n=this.display)?qe(n):null)?i:0)|0},qc.$metadata$={kind:v,simpleName:"Verb",interfaces:[]},Fc.prototype.equals=function(t){var n,i;if(this===t)return!0;if(null==t||null==(n=e.getKClassFromExpression(this))||!n.equals(e.getKClassFromExpression(t)))return!1;var o=null==(i=t)||e.isType(i,Fc)?i:W();return!!(null!=this.instructor?x(this.instructor,Se(o).instructor):null==Se(o).instructor)&&!!(null!=this.registration?x(this.registration,o.registration):null==o.registration)&&!!(null!=this.language?x(this.language,o.language):null==o.language)&&!!(null!=this.platform?x(this.platform,o.platform):null==o.platform)&&!!(null!=this.revision?x(this.revision,o.revision):null==o.revision)&&!!(null!=this.team?x(this.team,o.team):null==o.team)&&!!(null!=this.statement?x(this.statement,o.statement):null==o.statement)&&!!(null!=this.contextActivities?x(this.contextActivities,o.contextActivities):null==o.contextActivities)&&(null!=this.extensions?x(this.extensions,o.extensions):null==o.extensions)},Fc.prototype.hashCode=function(){var t=null!=this.instructor?Se(this.instructor).hashCode():0;return t=(31*(t=(31*(t=(31*(t=(31*(t=(31*(t=(31*(t=(31*(t=(31*t|0)+(null!=this.registration?qe(Se(this.registration)):0)|0)|0)+(null!=this.language?qe(Se(this.language)):0)|0)|0)+(null!=this.platform?qe(Se(this.platform)):0)|0)|0)+(null!=this.revision?qe(Se(this.revision)):0)|0)|0)+(null!=this.team?Se(this.team).hashCode():0)|0)|0)+(null!=this.statement?Se(this.statement).hashCode():0)|0)|0)+(null!=this.contextActivities?Se(this.contextActivities).hashCode():0)|0)|0)+(null!=this.extensions?qe(Se(this.extensions)):0)|0},Fc.$metadata$={kind:v,simpleName:"XContext",interfaces:[]},Bc.prototype.equals=function(t){var n;return!!(this===t||null!=t&&null!=(n=e.getKClassFromExpression(this))&&n.equals(e.getKClassFromExpression(t))&&(e.isType(t,Bc)||W(),x(this.id,t.id)&&x(this.objectType,t.objectType)&&x(this.statementRefUid,t.statementRefUid)))},Bc.prototype.hashCode=function(){var t,e,n,i,o=null!=(e=null!=(t=this.id)?qe(t):null)?e:0;return o=(31*(o=(31*o|0)+(null!=(i=null!=(n=this.objectType)?qe(n):null)?i:0)|0)|0)+qe(this.statementRefUid)|0},Bc.$metadata$={kind:v,simpleName:"XObject",interfaces:[]},Hc.prototype.storeStatements_208yqg$=function(t,e,n,i,o){return void 0===n&&(n=O),void 0===i&&(i=O),o?o(t,e,n,i):this.storeStatements_208yqg$$default(t,e,n,i)},Hc.$metadata$={kind:ge,simpleName:"XapiStatementEndpoint",interfaces:[j]},Yc.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var Qc=null;function Zc(){return null===Qc&&new Yc,Qc}function tl(t,e,n,i,o){this.srcUri_0=t,this.tempDirUri=e,this.params=n,this.transactionRunner_0=i,this.di_bu7bhi$_0=o,this.downloadLock_xutyqg$_0=en(ContentJobProcessContext$downloadLock$lambda),this.downloadedTmpUri_0=null}function el(t,n,i,o,r){ContentJobRunner$Companion_getInstance(),void 0===o&&(o=10),void 0===r&&(r=5),this.jobId=t,this.endpoint=n,this.di_iydpuy$_0=i,this.numProcessors=o,this.maxItemAttempts=r,this.checkQueueSignalChannel_0=dn(2147483647),this.activeJobItemIds_0=te([]);var s,a,c,l=this.endpoint;s=this.diTrigger,this.db_iydq0z$_0=H(G(this,q.Companion.invoke_np530x$(e.isType(a=F(M(P(Zs),[],!1)),B)?a:W(),l),s),e.isType(c=F(M(P(k),[],!1)),B)?c:W(),1).provideDelegate_tpuvb9$(this,nl);var u,h,d,p=this.endpoint;u=this.diTrigger,this.contentPluginManager_6pdfmu$_0=H(G(this,q.Companion.invoke_np530x$(e.isType(h=F(M(P(Zs),[],!1)),B)?h:W(),p),u),e.isType(d=F(M(P(cl),[],!1)),B)?d:W(),null).provideDelegate_tpuvb9$(this,il),this.eventCollator_0=new EventCollator(pn,_n("commitProgressUpdates",function(t,e,n){return t.commitProgressUpdates_0(e,n)}.bind(null,this)));var _,m,f,g,$=this.endpoint;_=this.diTrigger,this.connectivityLiveData_rtid1q$_0=H(G(this,q.Companion.invoke_np530x$(e.isType(m=F(M(P(Zs),[],!1)),B)?m:W(),$),_),e.isType(f=F(M(P(ConnectivityLiveData),[],!1)),B)?f:W(),null).provideDelegate_tpuvb9$(this,ol),this.contentJobItemUpdateMutex_0=tn(),this.json_vruxyl$_0=H(this,e.isType(g=F(M(P(Pt),[],!1)),B)?g:W(),null).provideDelegate_tpuvb9$(this,rl);var E,y,b,S=this.endpoint;E=this.diTrigger,this.containerStorageManager_lnbe8q$_0=H(G(this,q.Companion.invoke_np530x$(e.isType(y=F(M(P(Zs),[],!1)),B)?y:W(),S),E),e.isType(b=F(M(P(oq),[],!1)),B)?b:W(),null).provideDelegate_tpuvb9$(this,sl),this.jobConnectivityLiveData_0=new JobConnectivityLiveData(this.connectivityLiveData_0,this.db_0.contentJobDao.findMeteredAllowedLiveData_s8cxhz$(this.jobId)),this.jobItemProducer_0=null}Jc.$metadata$={kind:ge,simpleName:"ContentJobManager",interfaces:[]};var nl=new N("db"),il=new N("contentPluginManager"),ol=new N("connectivityLiveData"),rl=new N("json"),sl=new N("containerStorageManager");function al(){}function cl(t){this.pluginList=t,this.supportedMimeTypeList=null;var n,i=this.pluginList,o=ot();for(n=i.iterator();n.hasNext();){var r,s=n.next(),a=this.pluginList;t:do{var c;if(e.isType(a,V)&&a.isEmpty()){r=0;break t}var l=0;for(c=a.iterator();c.hasNext();)c.next().pluginId===s.pluginId&&gn(l=l+1|0);r=l}while(0);r>1&&o.add_11rb$(s)}var u=o;if(!u.isEmpty())throw pe("Duplicate pluginIds in: "+fn(u));var h,d=this.pluginList,p=ot();for(h=d.iterator();h.hasNext();){var _=h.next().supportedMimeTypes;ie(p,_)}this.supportedMimeTypeList=qt(Gt(p))}function ll(t,e,n,i){L.call(this,i),this.exceptionState_0=8,this.$this=t,this.local$tmp$=void 0,this.local$element=void 0,this.local$tmp$_0=void 0,this.local$uri=e,this.local$processContext=n}function ul(t,e){void 0===t&&(t=null),void 0===e&&(e=null),on.call(this,t,e),this.name="ContentTypeNotSupportedException"}function hl(t){this.di_mmbs9n$_0=t}function dl(t,e){void 0===t&&(t=null),void 0===e&&(e=null),on.call(this,t,e),this.name="FatalContentJobException"}function pl(t,e){fl(),this.entry=t,this.pluginId=e}function _l(){ml=this,this.UPLOAD_TMP_PROTO_NAME="upload-tmp",this.UPLOAD_TMP_LOCATOR_PREFIX="upload-tmp:///"}cl.prototype.isMimeTypeSupported_61zpoe$=function(t){return this.supportedMimeTypeList.contains_11rb$(t)},cl.prototype.requirePluginById_za3lpa$=function(t){var e,n,i=this.pluginList;t:do{var o;for(o=i.iterator();o.hasNext();){var r=o.next();if(r.pluginId===t){n=r;break t}}n=null}while(0);if(null==(e=n))throw new dl("invalid pluginId");return e},cl.prototype.getPluginById_za3lpa$=function(t){var e,n=this.pluginList;t:do{var i;for(i=n.iterator();i.hasNext();){var o=i.next();if(o.pluginId===t){e=o;break t}}e=null}while(0);return e},ll.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},ll.prototype=Object.create(L.prototype),ll.prototype.constructor=ll,ll.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$tmp$=this.$this.pluginList.iterator(),this.state_0=1;continue;case 1:if(!this.local$tmp$.hasNext()){this.state_0=9;continue}this.local$element=this.local$tmp$.next(),this.state_0=2;continue;case 2:if(this.exceptionState_0=5,this.state_0=3,this.result_0=this.local$element.extractMetadata_80ka5$(this.local$uri,this.local$processContext,this),this.result_0===T)return T;continue;case 3:if(this.local$tmp$_0=this.result_0,null==this.local$tmp$_0){this.exceptionState_0=5,this.state_0=7;continue}this.state_0=4;continue;case 4:return this.local$tmp$_0;case 5:this.exceptionState_0=8;var t=this.exception_0;if(!e.isType(t,on))throw t;if(e.isType(t,Ye))throw t;cn(t),this.state_0=6;continue;case 6:this.state_0=7;continue;case 7:this.state_0=1;continue;case 8:throw this.exception_0;case 9:throw new ul("no contentType plugin support found");default:throw this.state_0=8,new Error("State Machine Unreachable execution")}}catch(t){if(8===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},cl.prototype.extractMetadata_80ka5$=function(t,e,n,i){var o=new ll(this,t,e,n);return i?o:o.doResume(null)},cl.$metadata$={kind:v,simpleName:"ContentPluginManager",interfaces:[]},ul.$metadata$={kind:v,simpleName:"ContentTypeNotSupportedException",interfaces:[on]},dl.$metadata$={kind:v,simpleName:"FatalContentJobException",interfaces:[on]},_l.prototype.serializer=function(){return El()},_l.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var ml=null;function fl(){return null===ml&&new _l,ml}function gl(){this.descriptor_brrtsc$_0=new X("com.ustadmobile.core.contentjob.MetadataResult",this,2),this.descriptor.addElement_ivxn3r$("entry",!1),this.descriptor.addElement_ivxn3r$("pluginId",!1),$l=this}Object.defineProperty(gl.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_brrtsc$_0}}),gl.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);n.encodeSerializableElement_r4qlx7$(this.descriptor,0,Ke.$serializer,e.entry),n.encodeIntElement_ptg7oe$(this.descriptor,1,e.pluginId),n.endStructure_24f42q$(this.descriptor)},gl.prototype.deserialize_bq71mq$=function(t){var e,n,i,o=0,r=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=r.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=r.decodeSerializableElement_12e8id$(this.descriptor,0,Ke.$serializer,n),o|=1;break;case 1:i=r.decodeIntElement_szpzho$(this.descriptor,1),o|=2;break;case-1:break t;default:throw new Y(e)}return r.endStructure_24f42q$(this.descriptor),yl(o,n,i,null)},gl.prototype.childSerializers=function(){return[Ke.$serializer,Q.IntSerializer]},gl.$metadata$={kind:S,simpleName:"$serializer",interfaces:[Z]};var $l=null;function El(){return null===$l&&new gl,$l}function yl(t,e,n,i){var o=i||Object.create(pl.prototype);if(0==(1&t))throw dt("entry");if(o.entry=e,0==(2&t))throw dt("pluginId");return o.pluginId=n,o}function bl(){Sl=this,this.EPUB_MIME_TYPES=be(["application/epub+zip","application/octet-stream"]),this.XAPI_MIME_TYPES=be(["application/tincan+zip","application/zip","application/octet-stream"]),this.H5P_MIME_TYPES=be(["application/h5p-tincan+zip","application/tincan+zip","application/zip","application/octet-stream"]),this.PDF_MIME_TYPES=$e("application/pdf"),this.SCORM_MIME_TYPES=$e("application/scorm+zip"),this.H5P_EXTENSIONS=$e("h5p"),this.EPUB_EXTENSIONS=$e("epub"),this.ZIP_EXTENSIONS=$e("zip"),this.PDF_EXTENSIONS=$e("pdf")}pl.$metadata$={kind:v,simpleName:"MetadataResult",interfaces:[]},pl.prototype.component1=function(){return this.entry},pl.prototype.component2=function(){return this.pluginId},pl.prototype.copy_srzpld$=function(t,e){return new pl(void 0===t?this.entry:t,void 0===e?this.pluginId:e)},pl.prototype.toString=function(){return"MetadataResult(entry="+e.toString(this.entry)+", pluginId="+e.toString(this.pluginId)+")"},pl.prototype.hashCode=function(){var t=0;return t=31*(t=31*t+e.hashCode(this.entry)|0)+e.hashCode(this.pluginId)|0},pl.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.entry,t.entry)&&e.equals(this.pluginId,t.pluginId)},bl.$metadata$={kind:S,simpleName:"SupportedContent",interfaces:[]};var Sl=null;function vl(){return null===Sl&&new bl,Sl}function Cl(t,n,i,o,r){var s,a;rz.call(this,t,n,i,o,!1),this.doorLifecycleOwner=r,this.accountManager_ljzzjg$_0=H(this,e.isType(s=F(M(P(wa),[],!1)),B)?s:W(),null).provideDelegate_tpuvb9$(this,Nl),this.impl_q3lbn8$_0=H(this,e.isType(a=F(M(P(aq),[],!1)),B)?a:W(),null).provideDelegate_tpuvb9$(this,Tl),this.endpointFilter_0=null,this.activeAccountMode_pwepa6$_0=this.activeAccountMode_pwepa6$_0,this.nextDest_nas09j$_0=this.nextDest_nas09j$_0,this.accountListMediator_0=new St}new N("impl");var Nl=new N("accountManager");Object.defineProperty(Cl.prototype,"accountManager_0",{configurable:!0,get:function(){return this.accountManager_ljzzjg$_0.value}});var Tl=new N("impl");function Ll(t){return function(e){var n,i,o=En(e);if(x(t.activeAccountMode_0,Qx().ACTIVE_ACCOUNT_MODE_HEADER)&&yn(o,function(t){return function(e){var n,i;return x(e.userSession.usUid,null!=(i=null!=(n=t.accountManager_0.activeSession)?n.userSession:null)?i.usUid:null)}}(t)),null!=t.endpointFilter_0&&yn(o,function(t){return function(e){return!x(e.endpoint.url,t.endpointFilter_0)}}(t)),null!=(n=t.arguments.get_11rb$(zG().ARG_MAX_DATE_OF_BIRTH))){var r=de(n);yn(o,(i=r,function(t){return t.person.dateOfBirth.compareTo_11rb$(i)>0}))}return t.accountListMediator_0.postValue_11rb$(o),nt}}function zl(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$this$AccountListPresenter=t,this.local$closure$session=e}function wl(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$this$AccountListPresenter=t,this.local$closure$session=e}function Ol(){}function Rl(t,e,n,i,o){Il(),fz.call(this,t,e,n,i,o)}function Al(){xl=this,this.FLAGS_AVAILABLE=be([new aO(vn,2068,!1),new aO(Cn,2526,!1)])}Object.defineProperty(Cl.prototype,"impl_0",{configurable:!0,get:function(){return this.impl_q3lbn8$_0.value}}),Object.defineProperty(Cl.prototype,"activeAccountMode_0",{configurable:!0,get:function(){return null==this.activeAccountMode_pwepa6$_0?Ue("activeAccountMode"):this.activeAccountMode_pwepa6$_0},set:function(t){this.activeAccountMode_pwepa6$_0=t}}),Object.defineProperty(Cl.prototype,"nextDest_0",{configurable:!0,get:function(){return null==this.nextDest_nas09j$_0?Ue("nextDest"):this.nextDest_nas09j$_0},set:function(t){this.nextDest_nas09j$_0=t}}),Cl.prototype.onCreate=function(t){var e,n,i;rz.prototype.onCreate.call(this,t),this.endpointFilter_0=this.arguments.get_11rb$(Qx().ARG_FILTER_BY_ENDPOINT),this.activeAccountMode_0=null!=(e=this.arguments.get_11rb$(Qx().ARG_ACTIVE_ACCOUNT_MODE))?e:Qx().ACTIVE_ACCOUNT_MODE_HEADER,this.view.activeAccountLive=x(this.activeAccountMode_0,Qx().ACTIVE_ACCOUNT_MODE_HEADER)?this.accountManager_0.activeUserSessionLive:null,this.view.accountListLive=this.accountListMediator_0,this.accountListMediator_0.addSource_mmltu2$(this.accountManager_0.activeUserSessionsLive,new bt(Ll(this))),this.nextDest_0=null!=(n=this.arguments.get_11rb$(zG().ARG_NEXT))?n:this.impl_0.getAppConfigDefaultFirstDest_za3rmp$(this.context),this.view.intentMessage=this.arguments.get_11rb$(zG().ARG_INTENT_MESSAGE),this.view.title=null!=(i=this.arguments.get_11rb$(zG().ARG_TITLE))?i:this.impl_0.getString(2080,this.context)},Cl.prototype.handleClickAddAccount=function(){var t,e=this.arguments.get_11rb$(Qx().ARG_FILTER_BY_ENDPOINT);if(null!=e){var n=y([E(zG().ARG_SERVER_URL,e),E(zG().ARG_NEXT,this.nextDest_0),E(zG().ARG_MAX_DATE_OF_BIRTH,null!=(t=this.arguments.get_11rb$(zG().ARG_MAX_DATE_OF_BIRTH))?t:"0")]);this.impl_0.go_gofqk3$(qP().VIEW_NAME,n,this.context)}else{var i=!Kq().isWeb&&this.impl_0.getAppConfigBoolean_bm4g0d$(Rw().KEY_ALLOW_SERVER_SELECTION,this.context),o=rn(this.arguments);UA(o,zG().ARG_NEXT,this.nextDest_0);var r=o;this.impl_0.go_gofqk3$(i?dj().VIEW_NAME:qP().VIEW_NAME,r,this.context)}},zl.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},zl.prototype=Object.create(L.prototype),zl.prototype.constructor=zl,zl.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$AccountListPresenter.accountManager_0.endSession_ymrki2$(this.local$closure$session,void 0,void 0,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Cl.prototype.handleClickDeleteSession_n02xme$=function(t){var e,n;it(this.presenterScope,void 0,void 0,(e=this,n=t,function(t,i,o){var r=new zl(e,n,t,this,i);return o?r:r.doResume(null)}))},Cl.prototype.handleClickProfile_s8cxhz$=function(t){this.impl_0.go_gofqk3$(lM().VIEW_NAME,Je(E(zG().ARG_ENTITY_UID,t.toString())),this.context)},Cl.prototype.handleClickAbout=function(){this.impl_0.goToViewLink_yzvld8$(Kx().VIEW_NAME,this.context)},wl.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},wl.prototype=Object.create(L.prototype),wl.prototype.constructor=wl,wl.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$AccountListPresenter.accountManager_0.endSession_ymrki2$(this.local$closure$session,void 0,void 0,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=this.local$this$AccountListPresenter.navigateToStartNewUserSession(this),this.result_0===T)return T;continue;case 3:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Cl.prototype.handleClickLogout_n02xme$=function(t){var e,n;it(this.presenterScope,void 0,void 0,(e=this,n=t,function(t,i,o){var r=new wl(e,n,t,this,i);return o?r:r.doResume(null)}))},Cl.prototype.handleClickUserSession_n02xme$=function(t){var e,n;this.accountManager_0.activeSession=t;var i=new Ww(null!=(e=this.arguments.get_11rb$(zG().ARG_POPUPTO_ON_FINISH))?e:zG().ROOT_DEST,!1),o=bn(bn(this.impl_0.getString(2632,this.context),"%1$s",null!=(n=t.person.username)?n:""),"%2$s",t.endpoint.url),r=QA(this.nextDest_0,RA(Je(E(zG().ARG_SNACK_MESSAGE,o))));this.impl_0.goToViewLink_yzvld8$(r,this.context,i)},Cl.$metadata$={kind:v,simpleName:"AccountListPresenter",interfaces:[rz]},Ol.$metadata$={kind:ge,simpleName:"AttemptListListener",interfaces:[]},Object.defineProperty(Rl.prototype,"persistenceMode",{configurable:!0,get:function(){return Iz()}}),Rl.prototype.onCreate=function(t){fz.prototype.onCreate.call(this,t)},Rl.prototype.onLoadEntityFromDb_7hogkd$=function(t,e){var n;return null!=(n=this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(n):null,null},Rl.prototype.onLoadFromJson_y0zsll$=function(t){fz.prototype.onLoadFromJson_y0zsll$.call(this,t);var n=t.get_11rb$(oG().ARG_ENTITY_JSON),i={v:null};if(null!=n){var o,r=this.di,s=hR().serializer(),a=Et(r).directDI.Instance_ohrpre$(e.isType(o=F(M(P(Pt),[],!1)),B)?o:W(),null);i.v=a.decodeFromString_awif5v$(s,n)}else i.v=new cR(O);var c,l=this.view,u=Il().FLAGS_AVAILABLE,h=st(rt(u,10));for(c=u.iterator();c.hasNext();){var d=c.next();h.add_11rb$(new aO(d.flagVal,d.messageId,x(i.v.longValue.and(d.flagVal),d.flagVal)))}return l.bitmaskList=Sn(h),i.v},Rl.prototype.onSaveInstanceState_gtra9a$=function(t){fz.prototype.onSaveInstanceState_gtra9a$.call(this,t);var e=this.entity;xA(t,oG().ARG_ENTITY_JSON,this.json,hR().serializer(),e)},Rl.prototype.handleClickSave_nqi3in$=function(t){var n,i,o,r;if(null!=(i=null!=(n=this.view.bitmaskList)?n.getValue():null)){var s,a=O;for(s=i.iterator();s.hasNext();){var c=s.next();a=a.add(c.enabled?c.flagVal:O)}r=a}else r=null;var l,u=null!=(o=r)?o:O,h=this.di,d=jt(hR().serializer()),p=$e(new cR(u)),_=Et(h).directDI.Instance_ohrpre$(e.isType(l=F(M(P(Pt),[],!1)),B)?l:W(),null);this.finishWithResult_61zpoe$(_.encodeToString_tf03ej$(d,p))},Al.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var xl=null;function Il(){return null===xl&&new Al,xl}function Ul(t,n,i,o){var r;Yl(),rz.call(this,t,n,i,o),this.accountManager_394l94$_0=H(this,e.isType(r=F(M(P(wa),[],!1)),B)?r:W(),null).provideDelegate_tpuvb9$(this,Dl);var s,a,c,l=this.accountManager.activeAccount;s=this.diTrigger,this.db_58j0x6$_0=H(G(this,q.Companion.invoke_np530x$(e.isType(a=F(M(P(Xt),[],!1)),B)?a:W(),l),s),e.isType(c=F(M(P(k),[],!1)),B)?c:W(),1).provideDelegate_tpuvb9$(this,Pl);var u,h,d,p=this.accountManager.activeAccount;u=this.diTrigger,this.repo_abc2ve$_0=H(G(this,q.Companion.invoke_np530x$(e.isType(h=F(M(P(Xt),[],!1)),B)?h:W(),p),u),e.isType(d=F(M(P(k),[],!1)),B)?d:W(),2).provideDelegate_tpuvb9$(this,Ml),this.chatUid=O,this.otherPersonUid=O,this.loggedInPersonUid=O,this.ps=this.presenterScope}Rl.$metadata$={kind:v,simpleName:"BitmaskEditPresenter",interfaces:[fz]};var Dl=new N("accountManager");Object.defineProperty(Ul.prototype,"accountManager",{configurable:!0,get:function(){return this.accountManager_394l94$_0.value}});var Pl=new N("db");Object.defineProperty(Ul.prototype,"db",{configurable:!0,get:function(){return this.db_58j0x6$_0.value}});var Ml=new N("repo");function kl(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$ChatDetailPresenter=t}function jl(t,e,n,i,o,r){L.call(this,r),this.exceptionState_0=1,this.local$this$ChatDetailPresenter=t,this.local$closure$isGroup=e,this.local$closure$loggedInPersonUid=n,this.local$closure$message=i,this.local$txRepo=o}function Gl(t,e,n,i){return function(o,r,s){var a=new jl(t,e,n,i,o,r);return s?a:a.doResume(null)}}function ql(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$this$ChatDetailPresenter=t,this.local$closure$message=e,this.local$updateListNeeded=void 0,this.local$loggedInPersonUid=void 0}function Fl(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$closure$messageRead=t,this.local$txRepo=e}function Bl(t){return function(e,n,i){var o=new Fl(t,e,n);return i?o:o.doResume(null)}}function Wl(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$this$ChatDetailPresenter=t,this.local$closure$messageRead=e}function Hl(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$closure$messageReadList=t,this.local$txRepo=e}function Vl(t){return function(e,n,i){var o=new Hl(t,e,n);return i?o:o.doResume(null)}}function Kl(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$this$ChatDetailPresenter=t,this.local$closure$messageReadList=e}function Xl(){Jl=this,this.ARG_CHAT_IS_GROUP="isChatGroup"}Object.defineProperty(Ul.prototype,"repo",{configurable:!0,get:function(){return this.repo_abc2ve$_0.value}}),kl.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},kl.prototype=Object.create(L.prototype),kl.prototype.constructor=kl,kl.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e;if(this.state_0=2,this.result_0=this.local$this$ChatDetailPresenter.repo.chatDao.getTitleChat_3pjtqy$(this.local$this$ChatDetailPresenter.chatUid,this.local$this$ChatDetailPresenter.loggedInPersonUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var n=this.result_0;if(this.local$this$ChatDetailPresenter.view.title=n,x(this.local$this$ChatDetailPresenter.chatUid,O)){if(this.state_0=3,this.result_0=this.local$this$ChatDetailPresenter.repo.chatDao.getChatByOtherPerson_3pjtqy$(this.local$this$ChatDetailPresenter.otherPersonUid,this.local$this$ChatDetailPresenter.loggedInPersonUid,this),this.result_0===T)return T;continue}this.state_0=4;continue;case 3:return this.local$this$ChatDetailPresenter.chatUid=null!=(e=null!=(t=this.result_0)?t.chatUid:null)?e:O,this.local$this$ChatDetailPresenter.view.messageList=this.local$this$ChatDetailPresenter.repo.messageDao.findAllMessagesByChatUid_ro19vi$(this.local$this$ChatDetailPresenter.chatUid,127,this.local$this$ChatDetailPresenter.loggedInPersonUid),nt;case 4:return nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ul.prototype.onCreate=function(t){var e,n,i,o,r;rz.prototype.onCreate.call(this,t),this.chatUid=null!=(n=null!=(e=this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(e):null)?n:O,this.otherPersonUid=null!=(o=null!=(i=this.arguments.get_11rb$(zG().ARG_PERSON_UID))?de(i):null)?o:O,this.loggedInPersonUid=this.accountManager.activeAccount.personUid,this.view.messageList=this.repo.messageDao.findAllMessagesByChatUid_ro19vi$(this.chatUid,127,this.loggedInPersonUid),it(this.presenterScope,void 0,void 0,(r=this,function(t,e,n){var i=new kl(r,t,this,e);return n?i:i.doResume(null)}))},jl.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},jl.prototype=Object.create(L.prototype),jl.prototype.constructor=jl,jl.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(x(this.local$this$ChatDetailPresenter.chatUid,O)){if(this.state_0=2,this.result_0=this.local$txRepo.chatDao.insertAsync(Nn("",this.local$closure$isGroup),this),this.result_0===T)return T;continue}this.state_0=6;continue;case 1:throw this.exception_0;case 2:if(this.local$this$ChatDetailPresenter.chatUid=this.result_0,this.state_0=3,this.result_0=this.local$txRepo.chatMemberDao.insertAsync(Tn(this.local$this$ChatDetailPresenter.chatUid,this.local$closure$loggedInPersonUid),this),this.result_0===T)return T;continue;case 3:if(this.local$closure$isGroup||x(this.local$this$ChatDetailPresenter.otherPersonUid,O)){this.state_0=5;continue}if(this.state_0=4,this.result_0=this.local$txRepo.chatMemberDao.insertAsync(Tn(this.local$this$ChatDetailPresenter.chatUid,this.local$this$ChatDetailPresenter.otherPersonUid),this),this.result_0===T)return T;continue;case 4:this.state_0=5;continue;case 5:this.state_0=6;continue;case 6:if(this.state_0=7,this.result_0=this.local$txRepo.messageDao.insertAsync(Ln(this.local$closure$loggedInPersonUid,127,this.local$this$ChatDetailPresenter.chatUid,this.local$closure$message),this),this.result_0===T)return T;continue;case 7:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ql.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},ql.prototype=Object.create(L.prototype),ql.prototype.constructor=ql,ql.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$updateListNeeded=x(this.local$this$ChatDetailPresenter.chatUid,O);var t=null!=this.local$this$ChatDetailPresenter.arguments.get_11rb$(Yl().ARG_CHAT_IS_GROUP);if(this.local$loggedInPersonUid=this.local$this$ChatDetailPresenter.accountManager.activeAccount.personUid,this.state_0=2,this.result_0=ut(this.local$this$ChatDetailPresenter.repo,void 0,Gl(this.local$this$ChatDetailPresenter,t,this.local$loggedInPersonUid,this.local$closure$message),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(this.local$updateListNeeded)return this.local$this$ChatDetailPresenter.view.messageList=this.local$this$ChatDetailPresenter.repo.messageDao.findAllMessagesByChatUid_ro19vi$(this.local$this$ChatDetailPresenter.chatUid,127,this.local$loggedInPersonUid),nt;this.state_0=3;continue;case 3:return nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ul.prototype.addMessage_61zpoe$=function(t){var e,n;it(this.presenterScope,void 0,void 0,(e=this,n=t,function(t,i,o){var r=new ql(e,n,t,this,i);return o?r:r.doResume(null)}))},Fl.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Fl.prototype=Object.create(L.prototype),Fl.prototype.constructor=Fl,Fl.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$txRepo.messageReadDao.insertAsync(this.local$closure$messageRead,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Wl.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Wl.prototype=Object.create(L.prototype),Wl.prototype.constructor=Wl,Wl.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ut(this.local$this$ChatDetailPresenter.repo,void 0,Bl(this.local$closure$messageRead),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ul.prototype.updateMessageRead_q6ck09$=function(t){var e,n;it(this.presenterScope,void 0,void 0,(e=this,n=t,function(t,i,o){var r=new Wl(e,n,t,this,i);return o?r:r.doResume(null)}))},Hl.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Hl.prototype=Object.create(L.prototype),Hl.prototype.constructor=Hl,Hl.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:return this.local$txRepo.messageReadDao.insertList_4ezy5m$(this.local$closure$messageReadList),nt;case 1:throw this.exception_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Kl.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Kl.prototype=Object.create(L.prototype),Kl.prototype.constructor=Kl,Kl.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ut(this.local$this$ChatDetailPresenter.repo,void 0,Vl(this.local$closure$messageReadList),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ul.prototype.updateMessageReadList_5to0km$=function(t){var e,n;it(this.presenterScope,void 0,void 0,(e=this,n=t,function(t,i,o){var r=new Kl(e,n,t,this,i);return o?r:r.doResume(null)}))},Xl.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var Jl=null;function Yl(){return null===Jl&&new Xl,Jl}function Ql(t,e,n,i,o){eu(),Ez.call(this,t,e,n,i,o),this.searchText=null,this.loggedInPersonUid=O}function Zl(){tu=this,this.CHAT_RESULT_KEY="Chat",this.CHAT_RESULT_KEY_GROUP="ChatGroup"}Ul.$metadata$={kind:v,simpleName:"ChatDetailPresenter",interfaces:[HE,rz]},Ql.prototype.onCreate=function(t){Ez.prototype.onCreate.call(this,t),this.loggedInPersonUid=this.accountManager.activeAccount.personUid,this.updateListOnView_0()},Ql.prototype.updateListOnView_0=function(){this.view.list=this.repo.chatDao.findAllChatsForUser_4wgjuj$(XA(this.searchText),this.loggedInPersonUid)},Ql.prototype.onSearchSubmitted_pdl1vj$=function(t){this.searchText=t,this.updateListOnView_0()},Ql.prototype.handleClickEntry_11rc$=function(t){var n,i=e.isType(n=t,zn)?n:W();switch(this.mListMode.name){case"PICKER":var o,r=this.di,s=jt(wn.Companion.serializer()),a=$e(t),c=Et(r).directDI.Instance_ohrpre$(e.isType(o=F(M(P(Pt),[],!1)),B)?o:W(),null);this.finishWithResult_61zpoe$(c.encodeToString_tf03ej$(s,a));break;case"BROWSER":this.systemImpl.go_gofqk3$(sI().VIEW_NAME,y([E(zG().ARG_ENTITY_UID,t.chatUid.toString()),E(zG().ARG_PERSON_UID,i.otherPersonUid.toString())]),this.context)}},Ql.prototype.handleClickCreateNewFab_pdl1vj$=function(t){var e,n=y([E(zG().ARG_GO_TO_COMPLETE,sI().VIEW_NAME),E(rb().ARG_HIDE_PERSON_ADD,"true"),E(EM().ARG_EXCLUDE_PERSONUIDS_LIST,this.loggedInPersonUid.toString())]);this.navigateForResult_r13zgt$(new Iw(this,null,EM().VIEW_NAME,P(J),J.Companion.serializer(),t,!0,null!=(e=null!=n?rn(n):null)?e:mt()))},Ql.prototype.handleClickAddNewItem_a4m1mt$$default=function(t,e){var n;this.navigateForResult_r13zgt$(new Iw(this,null,sI().VIEW_NAME,P(wn),wn.Companion.serializer(),null!=e?e:eu().CHAT_RESULT_KEY,void 0,null!=(n=null!=t?rn(t):null)?n:rn(this.arguments)))},Ql.prototype.onClickSort_o8nuns$=function(t){Ez.prototype.onClickSort_o8nuns$.call(this,t),this.updateListOnView_0()},Ql.prototype.onCheckAddPermission_tn71rk$=function(t,e){return!0},Ql.prototype.handleClickCreateNewFab=function(){},Zl.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var tu=null;function eu(){return null===tu&&new Zl,tu}function nu(t,n,i,o,r){Au(),_z.call(this,t,n,i,r,o);var s,a,c,l,u,h,d,p=this.accountManager.activeAccount;s=this.diTrigger,this.statementEndpoint_yvvytk$_0=H(G(this,q.Companion.invoke_np530x$(e.isType(a=F(M(P(Xt),[],!1)),B)?a:W(),p),s),e.isType(c=F(M(P(Hc),[],!1)),B)?c:W(),null).provideDelegate_tpuvb9$(this,iu),this.submissionList=ot(),this.newPrivateCommentListener=new Og(r,t,null!=(u=null!=(l=n.get_11rb$(zG().ARG_ENTITY_UID))?de(l):null)?u:O,520,!1),this.newClassCommentListener=new Og(r,t,null!=(d=null!=(h=n.get_11rb$(zG().ARG_ENTITY_UID))?de(h):null)?d:O,520,!0,O)}Ql.$metadata$={kind:v,simpleName:"ChatListPresenter",interfaces:[Ez,oy,ry]};var iu=new N("statementEndpoint");function ou(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$closure$entityUid=t,this.local$it=e}function ru(t){return function(e,n,i){var o=new ou(t,e,n);return i?o:o.doResume(null)}}function su(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$clazzAssignment=void 0,this.local$db=e}function au(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$closure$clazzAssignment=t,this.local$it=e}function cu(t){return function(e,n,i){var o=new au(t,e,n);return i?o:o.doResume(null)}}function lu(t,e,n,i){L.call(this,i),this.exceptionState_0=1,this.local$closure$loggedInPersonUid=t,this.local$closure$clazzAssignment=e,this.local$it=n}function uu(t,e){return function(n,i,o){var r=new lu(t,e,n,i);return o?r:r.doResume(null)}}function hu(t,e,n,i){L.call(this,i),this.exceptionState_0=1,this.local$closure$clazzAssignment=t,this.local$closure$submitterUid=e,this.local$it=n}function du(t,e){return function(n,i,o){var r=new hu(t,e,n,i);return o?r:r.doResume(null)}}function pu(t){return function(e){return t.view.submissionStatus=null!=e?e:0,nt}}function _u(t){return function(e){return t.view.submissionMark=e,nt}}function mu(t,e,n,i){L.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$tmp$_1=void 0,this.local$loggedInPersonUid=void 0,this.local$submitterUid=void 0,this.local$clazzAssignment=e,this.local$db=n}function fu(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$submitterUid=void 0,this.local$alreadySubmitted=void 0,this.local$hasPassedDeadline=void 0,this.local$clazzAssignment=e}function gu(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$entity=t,this.local$this$ClazzAssignmentDetailOverviewPresenter=e}function $u(t,e,n,i,o){L.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$sizeOfAddedList=void 0,this.local$db=e,this.local$clazzAssignment=n,this.local$submitterUid=i}function Eu(t,e,n,i,o,r){L.call(this,r),this.$controller=o,this.exceptionState_0=1,this.local$closure$uri=t,this.local$this$ClazzAssignmentDetailOverviewPresenter=e,this.local$closure$entity=n,this.local$doorUri=void 0,this.local$$receiver=void 0,this.local$submission=void 0,this.local$$receiver_0=void 0,this.local$this$ClazzAssignmentDetailOverviewPresenter_0=void 0,this.local$closure$uri_0=void 0}function yu(t){return function(e){var n,i;if(null!=(n=Un(e))){var o=n;if(null!=(i=t.entity)){var r,s,a,c=i;return it(t.presenterScope,It(),void 0,(r=o,s=t,a=c,function(t,e,n){var i=new Eu(r,s,a,t,this,e);return n?i:i.doResume(null)})),nt}}}}function bu(t,e,n,i,o,r){L.call(this,r),this.$controller=o,this.exceptionState_0=1,this.local$this$ClazzAssignmentDetailOverviewPresenter=t,this.local$closure$entity=e,this.local$closure$submission=n}function Su(t){return function(e){var n,i;if(null!=(n=Un(e))){var o=n;if(null!=(i=t.entity)){var r,s,a,c=i;return it(t.presenterScope,It(),void 0,(r=t,s=c,a=o,function(t,e,n){var i=new bu(r,s,a,t,this,e);return n?i:i.doResume(null)})),nt}}}}function vu(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$ClazzAssignmentDetailOverviewPresenter=t,this.local$tmp$=void 0}function Cu(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$courseSubmission=t,this.local$this$ClazzAssignmentDetailOverviewPresenter=e}function Nu(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$courseSubmission=t,this.local$this$ClazzAssignmentDetailOverviewPresenter=e}function Tu(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$tmp$=void 0,this.local$tmp$_0=void 0,this.local$tmp$_1=void 0,this.local$fileSubmission=void 0,this.local$courseSubmission=e}function Lu(t,e,n,i){L.call(this,i),this.exceptionState_0=1,this.local$this$ClazzAssignmentDetailOverviewPresenter=t,this.local$closure$entity=e,this.local$txDb=n}function zu(t,e){return function(n,i,o){var r=new Lu(t,e,n,i);return o?r:r.doResume(null)}}function wu(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$ClazzAssignmentDetailOverviewPresenter=t,this.local$tmp$=void 0,this.local$entity=void 0}function Ou(){Ru=this,this.SUBMISSION_POLICY_OPTIONS=y([E(2,2943),E(1,2942)]),this.SAVED_STATE_KEY_URI="URI",this.SAVED_STATE_KEY_TEXT="TEXT",this.SAVED_STATE_ADD_SUBMISSION_LIST="submissionList",this.SAVEDSTATE_KEY_CLAZZ_ASSIGNMENT="ClassAssignment"}Object.defineProperty(nu.prototype,"statementEndpoint",{configurable:!0,get:function(){return this.statementEndpoint_yvvytk$_0.value}}),Object.defineProperty(nu.prototype,"persistenceMode",{configurable:!0,get:function(){return xz()}}),nu.prototype.onCheckEditPermission_tn71rk$=function(t,e){return!1},ou.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},ou.prototype=Object.create(L.prototype),ou.prototype.constructor=ou,ou.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$it.clazzAssignmentDao.findByUidWithBlockAsync_s8cxhz$(this.local$closure$entityUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},su.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},su.prototype=Object.create(L.prototype),su.prototype.constructor=su,su.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n,i=null!=(e=null!=(t=this.$this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(t):null)?e:O;if(this.state_0=2,this.result_0=Rt(this.local$db,Ot,ru(i),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(this.local$clazzAssignment=null!=(n=this.result_0)?n:new On,this.state_0=3,this.result_0=this.$this.loadAssignment_0(this.local$clazzAssignment,this.local$db,this),this.result_0===T)return T;continue;case 3:return this.local$clazzAssignment;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},nu.prototype.onLoadEntityFromDb_7hogkd$=function(t,e,n){var i=new su(this,t,e);return n?i:i.doResume(null)},au.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},au.prototype=Object.create(L.prototype),au.prototype.constructor=au,au.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$it.clazzDao.getClazzWithSchool_s8cxhz$(this.local$closure$clazzAssignment.caClazzUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},lu.prototype=Object.create(L.prototype),lu.prototype.constructor=lu,lu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$it.clazzEnrolmentDao.findByPersonUidAndClazzUidAsync_3pjtqy$(this.local$closure$loggedInPersonUid,this.local$closure$clazzAssignment.caClazzUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},hu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},hu.prototype=Object.create(L.prototype),hu.prototype.constructor=hu,hu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:return this.local$it.courseAssignmentSubmissionDao.getAllSubmissionsFromSubmitter_3pjtqy$(this.local$closure$clazzAssignment.caUid,this.local$closure$submitterUid);case 1:throw this.exception_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},mu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},mu.prototype=Object.create(L.prototype),mu.prototype.constructor=mu,mu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e;if(this.local$loggedInPersonUid=this.$this.accountManager.activeAccount.personUid,this.state_0=2,this.result_0=Rt(this.local$db,Ot,cu(this.local$clazzAssignment),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var n=null!=(t=this.result_0)?t:new Rn;if(this.$this.view.timeZone=hA(n),this.state_0=3,this.result_0=Rt(this.local$db,Ot,uu(this.local$loggedInPersonUid,this.local$clazzAssignment),this),this.result_0===T)return T;continue;case 3:var i=this.result_0,o=1e3===(null!=(e=null!=i?i.clazzEnrolmentRole:null)?e:0);if(this.$this.view.showSubmission=o,o){if(this.state_0=4,this.result_0=this.local$db.clazzAssignmentDao.getSubmitterUid_3pjtqy$(this.local$clazzAssignment.caUid,this.$this.accountManager.activeAccount.personUid,this),this.result_0===T)return T;continue}this.state_0=7;continue;case 4:this.local$submitterUid=this.result_0;var r=this.$this.systemImpl.getString(2938,this.$this.context);if(this.$this.view.unassignedError=x(this.local$submitterUid,O)?r:null,this.state_0=5,this.result_0=this.$this.checkCanAddFileOrText_rmck6r$(this.local$clazzAssignment,this),this.result_0===T)return T;continue;case 5:if(this.$this.view.showPrivateComments=this.local$clazzAssignment.caPrivateCommentsEnabled&&!x(this.local$submitterUid,O),this.local$clazzAssignment.caPrivateCommentsEnabled&&(this.$this.view.clazzAssignmentPrivateComments=this.local$db.commentsDao.findPrivateByEntityTypeAndUidAndForPersonLive2_h639zw$(520,this.local$clazzAssignment.caUid,this.local$submitterUid)),this.local$tmp$_1=this.$this.view,this.state_0=6,this.result_0=Rt(this.local$db,Ot,du(this.local$clazzAssignment,this.local$submitterUid),this),this.result_0===T)return T;continue;case 6:this.local$tmp$_1.submittedCourseAssignmentSubmission=this.result_0,Qq(this.local$db.courseAssignmentSubmissionDao.getStatusOfAssignmentForSubmitter_3pjtqy$(this.local$clazzAssignment.caUid,this.local$submitterUid),this.$this.lifecycleOwner,pu(this.$this)),Qq(this.local$db.courseAssignmentMarkDao.getMarkOfAssignmentForSubmitterLiveData_3pjtqy$(this.local$clazzAssignment.caUid,this.local$submitterUid),this.$this.lifecycleOwner,_u(this.$this)),this.state_0=7;continue;case 7:return void(this.local$clazzAssignment.caClassCommentEnabled&&(this.$this.view.clazzAssignmentClazzComments=this.local$db.commentsDao.findPublicByEntityTypeAndUidLive_6svq3l$(520,this.local$clazzAssignment.caUid)));default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},nu.prototype.loadAssignment_0=function(t,e,n,i){var o=new mu(this,t,e,n);return i?o:o.doResume(null)},fu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},fu.prototype=Object.create(L.prototype),fu.prototype.constructor=fu,fu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this.repo.clazzAssignmentDao.getSubmitterUid_3pjtqy$(this.local$clazzAssignment.caUid,this.$this.accountManager.activeAccount.personUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(this.local$submitterUid=this.result_0,this.local$alreadySubmitted=!1,1===this.local$clazzAssignment.caSubmissionPolicy){if(this.state_0=3,this.result_0=this.$this.repo.courseAssignmentSubmissionDao.countSubmissionsFromSubmitter_3pjtqy$(this.local$clazzAssignment.caUid,this.local$submitterUid,this),this.result_0===T)return T;continue}this.state_0=4;continue;case 3:var t=this.result_0;this.local$alreadySubmitted=t>0,this.state_0=4;continue;case 4:if(this.local$hasPassedDeadline=this.$this.hasPassedDeadline_0(this.local$clazzAssignment),this.state_0=5,this.result_0=this.$this.checkMaxFilesReached_0(this.$this.db,this.local$clazzAssignment,this.local$submitterUid,this),this.result_0===T)return T;continue;case 5:var e=this.result_0,n=!x(this.local$submitterUid,O);return this.$this.view.addFileSubmissionVisible=this.local$clazzAssignment.caRequireFileSubmission&&!this.local$alreadySubmitted&&!e&&!this.local$hasPassedDeadline&&n,void(this.$this.view.addTextSubmissionVisible=this.local$clazzAssignment.caRequireTextSubmission&&!this.local$alreadySubmitted&&!this.local$hasPassedDeadline&&n);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},nu.prototype.checkCanAddFileOrText_rmck6r$=function(t,e,n){var i=new fu(this,t,e);return n?i:i.doResume(null)},gu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},gu.prototype=Object.create(L.prototype),gu.prototype.constructor=gu,gu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$ClazzAssignmentDetailOverviewPresenter.loadAssignment_0(this.local$closure$entity,this.local$this$ClazzAssignmentDetailOverviewPresenter.db,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},nu.prototype.onLoadFromJson_y0zsll$=function(t){var n;_z.prototype.onLoadFromJson_y0zsll$.call(this,t);var i,o,r,s=this.di,a=On.Companion.serializer(),c=He(t.get_11rb$(oG().ARG_ENTITY_JSON)),l=Et(s).directDI.Instance_ohrpre$(e.isType(i=F(M(P(Pt),[],!1)),B)?i:W(),null).decodeFromString_awif5v$(a,c);return this.submissionList.addAll_brywnq$(Mq(this.di,jt(An.Companion.serializer()),P(An),null!=(n=t.get_11rb$(Au().SAVED_STATE_ADD_SUBMISSION_LIST))?n:"")),this.view.addedCourseAssignmentSubmission=this.submissionList,it(this.presenterScope,void 0,void 0,(o=l,r=this,function(t,e,n){var i=new gu(o,r,t,this,e);return n?i:i.doResume(null)})),l},nu.prototype.onSaveInstanceState_gtra9a$=function(t){_z.prototype.onSaveInstanceState_gtra9a$.call(this,t),xA(t,oG().ARG_ENTITY_JSON,this.json,xn.Companion.serializer(),this.entity),xA(t,Au().SAVED_STATE_ADD_SUBMISSION_LIST,this.json,jt(An.Companion.serializer()),this.submissionList)},$u.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},$u.prototype=Object.create(L.prototype),$u.prototype.constructor=$u,$u.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e=this.$this.submissionList,n=ot();for(t=e.iterator();t.hasNext();){var i=t.next();2===i.casType&&n.add_11rb$(i)}if(this.local$sizeOfAddedList=n.size,this.state_0=2,this.result_0=this.local$db.courseAssignmentSubmissionDao.countFileSubmissionFromStudent_3pjtqy$(this.local$clazzAssignment.caUid,this.local$submitterUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var o=this.result_0;return(this.local$sizeOfAddedList+o|0)>=this.local$clazzAssignment.caNumberOfFiles;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},nu.prototype.checkMaxFilesReached_0=function(t,e,n,i,o){var r=new $u(this,t,e,n,i);return o?r:r.doResume(null)},nu.prototype.hasPassedDeadline_0=function(t){var e,n;return et().compareTo_11rb$(null!=(n=null!=(e=t.block)?e.cbGracePeriodDate:null)?n:In)>0},Eu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Eu.prototype=Object.create(L.prototype),Eu.prototype.constructor=Eu,Eu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$doorUri=Qe.Companion.parse_61zpoe$(this.local$closure$uri),this.state_0=2,this.result_0=this.local$this$ClazzAssignmentDetailOverviewPresenter.repo.clazzAssignmentDao.getSubmitterUid_3pjtqy$(this.local$closure$entity.caUid,this.local$this$ClazzAssignmentDetailOverviewPresenter.accountManager.activeAccount.personUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var t=this.result_0;this.local$$receiver=new An;var e=this.local$closure$entity,n=this.local$this$ClazzAssignmentDetailOverviewPresenter;if(this.local$$receiver.casSubmitterUid=t,this.local$$receiver.casAssignmentUid=e.caUid,this.local$$receiver.casSubmitterPersonUid=n.accountManager.activeAccount.personUid,this.local$$receiver.casType=2,this.state_0=3,this.result_0=Dn(n.db).nextIdAsync_za3lpa$(522,this),this.result_0===T)return T;continue;case 3:if(this.local$$receiver.casUid=this.result_0,this.local$submission=this.local$$receiver,this.local$$receiver_0=new Pn,this.local$this$ClazzAssignmentDetailOverviewPresenter_0=this.local$this$ClazzAssignmentDetailOverviewPresenter,this.local$closure$uri_0=this.local$closure$uri,this.state_0=4,this.result_0=Dn(this.local$this$ClazzAssignmentDetailOverviewPresenter_0.db).nextIdAsync_za3lpa$(90,this),this.result_0===T)return T;continue;case 4:if(this.local$$receiver_0.casaUid=this.result_0,this.local$$receiver_0.casaSubmissionUid=this.local$submission.casUid,this.local$$receiver_0.casaUri=this.local$closure$uri_0,this.state_0=5,this.result_0=this.local$doorUri.getFileName_za3rmp$(this.local$this$ClazzAssignmentDetailOverviewPresenter_0.context,this),this.result_0===T)return T;continue;case 5:if(this.local$$receiver_0.casaFileName=this.result_0,this.state_0=6,this.result_0=_q(this.local$doorUri,this.local$this$ClazzAssignmentDetailOverviewPresenter_0.context,this.local$this$ClazzAssignmentDetailOverviewPresenter_0.di),this.result_0===T)return T;continue;case 6:this.local$$receiver_0.casaMimeType=this.result_0;var i=this.local$$receiver_0;if(this.local$submission.attachment=i,this.local$this$ClazzAssignmentDetailOverviewPresenter.submissionList.add_11rb$(this.local$submission),this.local$this$ClazzAssignmentDetailOverviewPresenter.view.addedCourseAssignmentSubmission=this.local$this$ClazzAssignmentDetailOverviewPresenter.submissionList,this.state_0=7,this.result_0=this.local$this$ClazzAssignmentDetailOverviewPresenter.checkCanAddFileOrText_rmck6r$(this.local$closure$entity,this),this.result_0===T)return T;continue;case 7:return this.local$this$ClazzAssignmentDetailOverviewPresenter.requireSavedStateHandle().set_umlfku$(Au().SAVED_STATE_KEY_URI,null),nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},bu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},bu.prototype=Object.create(L.prototype),bu.prototype.constructor=bu,bu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$ClazzAssignmentDetailOverviewPresenter.repo.clazzAssignmentDao.getSubmitterUid_3pjtqy$(this.local$closure$entity.caUid,this.local$this$ClazzAssignmentDetailOverviewPresenter.accountManager.activeAccount.personUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var t,n=this.result_0,i=this.local$this$ClazzAssignmentDetailOverviewPresenter.submissionList;t:do{var o;for(o=i.iterator();o.hasNext();){var r=o.next(),s=this.local$closure$submission;if(x(r.casUid,s.casUid)){t=r;break t}}t=null}while(0);var a,c=t,l=this.local$this$ClazzAssignmentDetailOverviewPresenter.submissionList;if((e.isType(a=l,Gn)?a:W()).remove_11rb$(c),this.local$closure$submission.casAssignmentUid=this.local$closure$entity.caUid,this.local$closure$submission.casSubmitterUid=n,this.local$closure$submission.casSubmitterPersonUid=this.local$this$ClazzAssignmentDetailOverviewPresenter.accountManager.activeAccount.personUid,this.local$this$ClazzAssignmentDetailOverviewPresenter.submissionList.add_11rb$(this.local$closure$submission),this.local$this$ClazzAssignmentDetailOverviewPresenter.view.addedCourseAssignmentSubmission=this.local$this$ClazzAssignmentDetailOverviewPresenter.submissionList,this.state_0=3,this.result_0=this.local$this$ClazzAssignmentDetailOverviewPresenter.checkCanAddFileOrText_rmck6r$(this.local$closure$entity,this),this.result_0===T)return T;continue;case 3:return this.local$this$ClazzAssignmentDetailOverviewPresenter.requireSavedStateHandle().set_umlfku$(Au().SAVED_STATE_KEY_TEXT,null),nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},nu.prototype.onLoadDataComplete=function(){_z.prototype.onLoadDataComplete.call(this),this.observeSavedStateResult_u0dr5v$(Au().SAVED_STATE_KEY_URI,jt(kt(Mt)),ne,new bt(yu(this))),this.observeSavedStateResult_u0dr5v$(Au().SAVED_STATE_KEY_TEXT,jt(An.Companion.serializer()),P(An),new bt(Su(this)))},vu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},vu.prototype=Object.create(L.prototype),vu.prototype.constructor=vu,vu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(null!=(t=this.local$this$ClazzAssignmentDetailOverviewPresenter.entity)){if(this.state_0=2,this.result_0=this.local$this$ClazzAssignmentDetailOverviewPresenter.checkCanAddFileOrText_rmck6r$(t,this),this.result_0===T)return T;continue}this.local$tmp$=null,this.state_0=3;continue;case 1:throw this.exception_0;case 2:this.local$tmp$=nt,this.state_0=3;continue;case 3:return this.local$tmp$;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},nu.prototype.handleDeleteSubmission_gh2dp9$=function(t){var e;this.submissionList.remove_11rb$(t),this.view.addedCourseAssignmentSubmission=this.submissionList,it(this.presenterScope,void 0,void 0,(e=this,function(t,n,i){var o=new vu(e,t,this,n);return i?o:o.doResume(null)}))},Cu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Cu.prototype=Object.create(L.prototype),Cu.prototype.constructor=Cu,Cu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$ClazzAssignmentDetailOverviewPresenter.openAssignmentFileAttachment_0(this.local$closure$courseSubmission,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},nu.prototype.handleEditSubmission_gh2dp9$=function(t){if(1===t.casType){var e=mt();xA(e,oG().ARG_ENTITY_JSON,this.json,An.Companion.serializer(),t);var n=wj().EDIT_ENABLED,i=(!0).toString();e.put_xwzc9p$(n,i),this.navigateForResult_r13zgt$(new Iw(this,t,wj().VIEW_NAME,P(Mn),Mn.Companion.serializer(),Au().SAVED_STATE_KEY_TEXT,void 0,e))}else it(this.presenterScope,void 0,void 0,(o=t,r=this,function(t,e,n){var i=new Cu(o,r,t,this,e);return n?i:i.doResume(null)}));var o,r},Nu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Nu.prototype=Object.create(L.prototype),Nu.prototype.constructor=Nu,Nu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(1===this.local$closure$courseSubmission.casType){var e=mt(),n=lP().DISPLAY_TEXT,i=null!=(t=this.local$closure$courseSubmission.casText)?t:"";return e.put_xwzc9p$(n,i),this.local$this$ClazzAssignmentDetailOverviewPresenter.requireNavController().navigate_oc2wlg$(lP().VIEW_NAME,e),nt}if(2===this.local$closure$courseSubmission.casType){if(this.state_0=2,this.result_0=this.local$this$ClazzAssignmentDetailOverviewPresenter.openAssignmentFileAttachment_0(this.local$closure$courseSubmission,this),this.result_0===T)return T;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:return nt;case 3:this.state_0=4;continue;case 4:return nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},nu.prototype.handleOpenSubmission_gh2dp9$=function(t){var e,n;it(this.presenterScope,void 0,void 0,(e=t,n=this,function(t,i,o){var r=new Nu(e,n,t,this,i);return o?r:r.doResume(null)}))},Tu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Tu.prototype=Object.create(L.prototype),Tu.prototype.constructor=Tu,Tu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(this.local$tmp$=this.local$courseSubmission.attachment,null==this.local$tmp$)return;this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(this.local$fileSubmission=this.local$tmp$,this.local$tmp$_0=this.local$fileSubmission.casaUri,null==this.local$tmp$_0)return;this.state_0=3;continue;case 3:var n=this.local$tmp$_0;if(A(n,"door-attachment://")){if(this.state_0=4,this.result_0=kn(this.$this.repo,n,this),this.result_0===T)return T;continue}this.local$tmp$_1=Qe.Companion.parse_61zpoe$(n),this.state_0=5;continue;case 4:this.local$tmp$_1=this.result_0,this.state_0=5;continue;case 5:var i=this.local$tmp$_1;try{this.$this.systemImpl.openFileInDefaultViewer_t9zcln$(this.$this.context,i,this.local$fileSubmission.casaMimeType,null!=(t=this.local$courseSubmission.attachment)?t.casaFileName:null)}catch(t){if(!e.isType(t,on))throw t;if(e.isType(t,Uw))this.$this.view.showSnackBar_9pu0dj$(this.$this.systemImpl.getString(2162,this.$this.context));else{var o=t.message;null!=o&&this.$this.view.showSnackBar_9pu0dj$(o)}}return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},nu.prototype.openAssignmentFileAttachment_0=function(t,e,n){var i=new Tu(this,t,e);return n?i:i.doResume(null)},Lu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Lu.prototype=Object.create(L.prototype),Lu.prototype.constructor=Lu,Lu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$txDb.courseAssignmentSubmissionDao.insertListAsync_6g2169$(this.local$this$ClazzAssignmentDetailOverviewPresenter.submissionList,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var t,e=this.local$txDb.courseAssignmentSubmissionAttachmentDao,n=this.local$this$ClazzAssignmentDetailOverviewPresenter.submissionList,i=ot();for(t=n.iterator();t.hasNext();){var o;null!=(o=t.next().attachment)&&i.add_11rb$(o)}if(this.state_0=3,this.result_0=e.insertListAsync_cyz50y$(i,this),this.result_0===T)return T;continue;case 3:if(this.state_0=4,this.result_0=this.local$this$ClazzAssignmentDetailOverviewPresenter.checkCanAddFileOrText_rmck6r$(this.local$closure$entity,this),this.result_0===T)return T;continue;case 4:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},wu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},wu.prototype=Object.create(L.prototype),wu.prototype.constructor=wu,wu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$tmp$=this.local$this$ClazzAssignmentDetailOverviewPresenter.entity,null==this.local$tmp$)return;this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(this.local$entity=this.local$tmp$,this.local$this$ClazzAssignmentDetailOverviewPresenter.hasPassedDeadline_0(this.local$entity))return void this.local$this$ClazzAssignmentDetailOverviewPresenter.view.showSnackBar_9pu0dj$(this.local$this$ClazzAssignmentDetailOverviewPresenter.systemImpl.getString(2953,this.local$this$ClazzAssignmentDetailOverviewPresenter.context));this.state_0=3;continue;case 3:if(this.state_0=4,this.result_0=this.local$this$ClazzAssignmentDetailOverviewPresenter.repo.clazzAssignmentDao.getSubmitterUid_3pjtqy$(this.local$entity.caUid,this.local$this$ClazzAssignmentDetailOverviewPresenter.accountManager.activeAccount.personUid,this),this.result_0===T)return T;continue;case 4:var t=this.result_0;if(1===this.local$entity.caSubmissionPolicy){if(this.state_0=5,this.result_0=this.local$this$ClazzAssignmentDetailOverviewPresenter.repo.courseAssignmentSubmissionDao.countSubmissionsFromSubmitter_3pjtqy$(this.local$entity.caUid,t,this),this.result_0===T)return T;continue}this.state_0=7;continue;case 5:if(this.result_0>0)return void this.local$this$ClazzAssignmentDetailOverviewPresenter.view.showSnackBar_9pu0dj$(this.local$this$ClazzAssignmentDetailOverviewPresenter.systemImpl.getString(2946,this.local$this$ClazzAssignmentDetailOverviewPresenter.context));this.state_0=6;continue;case 6:this.state_0=7;continue;case 7:if(this.state_0=8,this.result_0=ut(this.local$this$ClazzAssignmentDetailOverviewPresenter.repo,void 0,zu(this.local$this$ClazzAssignmentDetailOverviewPresenter,this.local$entity),this),this.result_0===T)return T;continue;case 8:return this.local$this$ClazzAssignmentDetailOverviewPresenter.submissionList.clear(),this.local$this$ClazzAssignmentDetailOverviewPresenter.view.addedCourseAssignmentSubmission=this.local$this$ClazzAssignmentDetailOverviewPresenter.submissionList,nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},nu.prototype.handleSubmitButtonClicked=function(){var t;it(this.presenterScope,It(),void 0,(t=this,function(e,n,i){var o=new wu(t,e,this,n);return i?o:o.doResume(null)}))},nu.prototype.handleAddFileClicked=function(){var t,e;switch(null!=(t=this.entity)?t.caFileType:null){case 1:e=qk().SELECTION_MODE_DOC;break;case 4:e=qk().SELECTION_MODE_AUDIO;break;case 3:e=qk().SELECTION_MODE_VIDEO;break;case 2:e=qk().SELECTION_MODE_IMAGE;break;default:e=qk().SELECTION_MODE_ANY}var n=e,i=jn([E(qk().ARG_MIMETYPE_SELECTED,n)]);this.navigateForResult_r13zgt$(new Iw(this,null,qk().VIEW_NAME,ne,kt(Mt),Au().SAVED_STATE_KEY_URI,void 0,i))},nu.prototype.handleAddTextClicked=function(){var t,e=jn([E(wj().ASSIGNMENT_ID,He(null!=(t=this.entity)?t.caUid:null))]),n=wj().EDIT_ENABLED,i=(!0).toString();e.put_xwzc9p$(n,i),this.navigateForResult_r13zgt$(new Iw(this,null,wj().VIEW_NAME,P(Mn),Mn.Companion.serializer(),Au().SAVED_STATE_KEY_TEXT,void 0,e))},Ou.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var Ru=null;function Au(){return null===Ru&&new Ou,Ru}function xu(t,e,n,i,o){_z.call(this,t,e,n,i,o)}function Iu(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$closure$entityUid=t,this.local$it=e}function Uu(t){return function(e,n,i){var o=new Iu(t,e,n);return i?o:o.doResume(null)}}function Du(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$db=t,this.local$closure$entityUid=e}function Pu(t,e){return function(n,i,o){var r=new Du(t,e,n,this,i);return o?r:r.doResume(null)}}function Mu(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityUid=void 0,this.local$db=e}function ku(t,e,n,i,o,r){L.call(this,r),this.$controller=o,this.exceptionState_0=1,this.local$this$ClazzAssignmentDetailPresenter=t,this.local$closure$assignment=e,this.local$closure$entityUid=n}function ju(t,e,n,i,o){Ez.call(this,t,e,n,i,o),this.clazzUid_0=Fn,this.clazzAssignmentUid_0=Fn,this.searchText=null}function Gu(t,n,i,o,r,s){var a,c,l,u;void 0===s&&(s=new Og(o,t,null!=(c=null!=(a=n.get_11rb$(zG().ARG_CLAZZ_ASSIGNMENT_UID))?de(a):null)?c:O,520,!1,null!=(u=null!=(l=n.get_11rb$(zG().ARG_SUBMITER_UID))?de(l):null)?u:O)),_z.call(this,t,n,i,o,r),this.newPrivateCommentListener=s;var h,d,p,_=this.accountManager.activeAccount;h=this.diTrigger,this.statementEndpoint_3hmzcf$_0=H(G(this,q.Companion.invoke_np530x$(e.isType(d=F(M(P(Xt),[],!1)),B)?d:W(),_),h),e.isType(p=F(M(P(Hc),[],!1)),B)?p:W(),null).provideDelegate_tpuvb9$(this,Zu),this.selectedSubmitterUid=O,this.selectedClazzAssignmentUid=O,this.selectedClazzUid_0=O,this.nextSubmitterToMark_0=O}nu.$metadata$={kind:v,simpleName:"ClazzAssignmentDetailOverviewPresenter",interfaces:[_z]},xu.prototype.onCheckEditPermission_tn71rk$=function(t,e){return!1},Object.defineProperty(xu.prototype,"persistenceMode",{configurable:!0,get:function(){return xz()}}),xu.prototype.onLoadFromJson_y0zsll$=function(t){_z.prototype.onLoadFromJson_y0zsll$.call(this,t);var n=t.get_11rb$(oG().ARG_ENTITY_JSON),i=null;if(null!=n){var o,r=this.di,s=xn.Companion.serializer();i=Et(r).directDI.Instance_ohrpre$(e.isType(o=F(M(P(Pt),[],!1)),B)?o:W(),null).decodeFromString_awif5v$(s,n)}else i=new xn;return this.setupTabs_0(i),i},Iu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Iu.prototype=Object.create(L.prototype),Iu.prototype.constructor=Iu,Iu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$it.clazzAssignmentDao.findByUidAsync_s8cxhz$(this.local$closure$entityUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Du.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Du.prototype=Object.create(L.prototype),Du.prototype.constructor=Du,Du.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=Rt(this.local$closure$db,Ot,Uu(this.local$closure$entityUid),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Mu.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Mu.prototype=Object.create(L.prototype),Mu.prototype.constructor=Mu,Mu.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n;if(this.local$entityUid=null!=(e=null!=(t=this.$this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(t):null)?e:O,this.state_0=2,this.result_0=wt(tt.Dispatchers.Default,Pu(this.local$db,this.local$entityUid),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var i;if(null!=(n=this.result_0))i=n;else{var o=new xn;o.caUid=this.local$entityUid,i=o}var r=i;return this.$this.setupTabs_0(r),r;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},xu.prototype.onLoadEntityFromDb_7hogkd$=function(t,e,n){var i=new Mu(this,t,e);return n?i:i.doResume(null)},ku.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},ku.prototype=Object.create(L.prototype),ku.prototype.constructor=ku,ku.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=this.local$this$ClazzAssignmentDetailPresenter.accountManager.activeAccount.personUid;if(this.state_0=2,this.result_0=this.local$this$ClazzAssignmentDetailPresenter.db.clazzDao.personHasPermissionWithClazz_b9bd0d$(t,this.local$closure$assignment.caClazzUid,qn,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var e=this.result_0,n=y([E(zG().ARG_NAV_CHILD,(!0).toString()),E(zG().ARG_ENTITY_UID,this.local$closure$entityUid.toString()),E(zG().ARG_CLAZZUID,this.local$closure$assignment.caClazzUid.toString())]),i=je([ZA(_I().VIEW_NAME,n)]);if(e){var o=ZA($I().VIEW_NAME,n);i.add_11rb$(o)}return this.local$this$ClazzAssignmentDetailPresenter.view.tabs=i,nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},xu.prototype.setupTabs_0=function(t){var e,n,i,o,r,s=null!=(n=null!=(e=this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(e):null)?n:O;it(this.presenterScope,void 0,void 0,(i=this,o=t,r=s,function(t,e,n){var s=new ku(i,o,r,t,this,e);return n?s:s.doResume(null)}))},xu.$metadata$={kind:v,simpleName:"ClazzAssignmentDetailPresenter",interfaces:[_z]},Object.defineProperty(ju.prototype,"sortOptions",{configurable:!0,get:function(){return M_().SORT_OPTIONS}}),ju.prototype.onCreate=function(t){var e,n,i,o;Ez.prototype.onCreate.call(this,t),this.clazzAssignmentUid_0=null!=(n=null!=(e=this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(e):null)?n:Fn,this.clazzUid_0=null!=(o=null!=(i=this.arguments.get_11rb$(zG().ARG_CLAZZUID))?de(i):null)?o:Fn,this.selectedSortOption=M_().SORT_OPTIONS.get_za3lpa$(0),this.mLoggedInPersonUid=this.accountManager.activeAccount.personUid,this.updateListOnView_0()},ju.prototype.onCheckAddPermission_tn71rk$=function(t,e){return!1},ju.prototype.updateListOnView_0=function(){this.view.progressSummary=this.repo.clazzAssignmentDao.getProgressSummaryForAssignment_jl0yiw$(this.clazzAssignmentUid_0,this.clazzUid_0,""),this.view.list=this.repo.clazzAssignmentDao.getSubmitterListForAssignment_gi085m$(this.clazzAssignmentUid_0,this.clazzUid_0,bn(this.systemImpl.getString(2917,this.context),"%1$s",""),XA(this.searchText))},ju.prototype.handleClickCreateNewFab=function(){},ju.prototype.handleClickAddNewItem_a4m1mt$$default=function(t,e){},ju.prototype.onClickSort_o8nuns$=function(t){Ez.prototype.onClickSort_o8nuns$.call(this,t),this.updateListOnView_0()},ju.prototype.onSearchSubmitted_pdl1vj$=function(t){this.searchText=t,this.updateListOnView_0()},ju.prototype.onClickPerson_ylddm3$=function(t){this.systemImpl.go_gofqk3$(SI().VIEW_NAME,y([E(zG().ARG_SUBMITER_UID,t.submitterUid.toString()),E(zG().ARG_CLAZZ_ASSIGNMENT_UID,this.clazzAssignmentUid_0.toString()),E(zG().ARG_CLAZZUID,this.clazzUid_0.toString())]),this.context)},ju.$metadata$={kind:v,simpleName:"ClazzAssignmentDetailStudentProgressOverviewListPresenter",interfaces:[UL,Ez,oy,ry]};var qu,Fu,Bu,Wu,Hu,Vu,Ku,Xu,Ju,Yu,Qu,Zu=new N("statementEndpoint");function th(t,e,n,i){L.call(this,i),this.exceptionState_0=1,this.local$closure$db=t,this.local$this$ClazzAssignmentDetailStudentProgressPresenter=e}function eh(t,e){return function(n,i,o){var r=new th(t,e,n,i);return o?r:r.doResume(null)}}function nh(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$this$ClazzAssignmentDetailStudentProgressPresenter=t,this.local$it=e}function ih(t){return function(e,n,i){var o=new nh(t,e,n);return i?o:o.doResume(null)}}function oh(t,e,n,i){L.call(this,i),this.exceptionState_0=1,this.local$closure$clazzAssignment=t,this.local$this$ClazzAssignmentDetailStudentProgressPresenter=e,this.local$it=n}function rh(t,e){return function(n,i,o){var r=new oh(t,e,n,i);return o?r:r.doResume(null)}}function sh(t){return function(e){return t.view.submissionScore=e,nt}}function ah(t){return function(e){return t.view.submissionStatus=null!=e?e:0,nt}}function ch(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$tmp$_0=void 0,this.local$tmp$_1=void 0,this.local$tmp$_2=void 0,this.local$clazzAssignment=void 0,this.local$submitButtonVisible=void 0,this.local$db=e}function lh(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=10,this.local$closure$submissionCourse=t,this.local$this$ClazzAssignmentDetailStudentProgressPresenter=e,this.local$tmp$_0=void 0,this.local$tmp$_1=void 0,this.local$attachment=void 0}function uh(t,e,n,i,o){L.call(this,o),this.exceptionState_0=1,this.local$this$ClazzAssignmentDetailStudentProgressPresenter=t,this.local$closure$assignment=e,this.local$closure$grade=n,this.local$tmp$=void 0,this.local$txDb=i}function hh(t,e,n){return function(i,o,r){var s=new uh(t,e,n,i,o);return r?s:s.doResume(null)}}function dh(t,e,n,i,o,r){L.call(this,r),this.$controller=o,this.exceptionState_0=1,this.local$this$ClazzAssignmentDetailStudentProgressPresenter=t,this.local$closure$assignment=e,this.local$closure$grade=n}function ph(t,e,n,i,o){Jh(),fz.call(this,t,e,n,o,i),this.onLoadJsonComplete_0=Pe(),this.clazzUid_0=O}function _h(t,e,n,i){Wn.call(this),this.optionVal=n,this.messageId=i,this.name$=t,this.ordinal$=e}function mh(){mh=function(){},qu=new _h("WORDS",0,1,2864),Fu=new _h("CHARS",1,2,2865)}function fh(){return mh(),qu}function gh(){return mh(),Fu}function $h(){return[fh(),gh()]}function Eh(t,e,n){fR.call(this,t.messageId,e,t.optionVal,n)}function yh(t,e,n,i){Wn.call(this),this.optionVal=n,this.messageId=i,this.name$=t,this.ordinal$=e}function bh(){bh=function(){},Bu=new yh("SUBMITTED",0,100,2569),Wu=new yh("GRADED",1,102,2862)}function Sh(){return bh(),Bu}function vh(){return bh(),Wu}function Ch(){return[Sh(),vh()]}function Nh(t,e,n){fR.call(this,t.messageId,e,t.optionVal,n)}function Th(t,e,n,i){Wn.call(this),this.optionVal=n,this.messageId=i,this.name$=t,this.ordinal$=e}function Lh(){Lh=function(){},Hu=new Th("SUBMIT_ALL_AT_ONCE",0,1,2942),Vu=new Th("MULTIPLE_SUBMISSIONS",1,2,2943)}function zh(){return Lh(),Hu}function wh(){return Lh(),Vu}function Oh(){return[zh(),wh()]}function Rh(t,e,n){fR.call(this,t.messageId,e,t.optionVal,n)}function Ah(t,e,n,i){Wn.call(this),this.optionVal=n,this.messageId=i,this.name$=t,this.ordinal$=e}function xh(){xh=function(){},Ku=new Ah("ANY",0,0,2856),Xu=new Ah("DOCUMENT",1,1,2857),Ju=new Ah("IMAGE",2,2,2858),Yu=new Ah("VIDEO",3,3,2695),Qu=new Ah("AUDIO",4,4,2109)}function Ih(){return xh(),Ku}function Uh(){return xh(),Xu}function Dh(){return xh(),Ju}function Ph(){return xh(),Yu}function Mh(){return xh(),Qu}function kh(){return[Ih(),Uh(),Dh(),Ph(),Mh()]}function jh(t,e,n){fR.call(this,t.messageId,e,t.optionVal,n)}function Gh(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$this$ClazzAssignmentEditPresenter=t,this.local$closure$group=e}function qh(t){return function(e){var n;if(null!=(n=Un(e))){var i,o,r=n;return it(t.presenterScope,It(),void 0,(i=t,o=r,function(t,e,n){var r=new Gh(i,o,t,this,e);return n?r:r.doResume(null)})),nt}}}function Fh(t){return function(e){return t.view.groupSetEnabled=!0===(null==e||e),nt}}function Bh(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$this$ClazzAssignmentEditPresenter=t,this.local$it=e}function Wh(t){return function(e,n,i){var o=new Bh(t,e,n);return i?o:o.doResume(null)}}function Hh(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$this$ClazzAssignmentEditPresenter=t,this.local$closure$editEntity=e,this.local$clazzWithSchool=void 0}function Vh(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$entity=t,this.local$this$ClazzAssignmentEditPresenter=e,this.local$foundError=void 0}function Kh(){Xh=this,this.ARG_SAVEDSTATE_CONTENT="contents",this.SAVEDSTATE_KEY_SUBMISSION_TYPE="submissionType"}Object.defineProperty(Gu.prototype,"statementEndpoint",{configurable:!0,get:function(){return this.statementEndpoint_3hmzcf$_0.value}}),Gu.prototype.onCheckEditPermission_tn71rk$=function(t,e){return!1},Object.defineProperty(Gu.prototype,"persistenceMode",{configurable:!0,get:function(){return xz()}}),Gu.prototype.onCreate=function(t){var e,n,i,o,r,s;this.selectedSubmitterUid=null!=(n=null!=(e=this.arguments.get_11rb$(zG().ARG_SUBMITER_UID))?de(e):null)?n:O,this.selectedClazzAssignmentUid=null!=(o=null!=(i=this.arguments.get_11rb$(zG().ARG_CLAZZ_ASSIGNMENT_UID))?de(i):null)?o:O,this.selectedClazzUid_0=null!=(s=null!=(r=this.arguments.get_11rb$(zG().ARG_CLAZZUID))?de(r):null)?s:O,_z.prototype.onCreate.call(this,t)},th.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},th.prototype=Object.create(L.prototype),th.prototype.constructor=th,th.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$closure$db.clazzAssignmentDao.findByUidWithBlockAsync_s8cxhz$(this.local$this$ClazzAssignmentDetailStudentProgressPresenter.selectedClazzAssignmentUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},nh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},nh.prototype=Object.create(L.prototype),nh.prototype.constructor=nh,nh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$it.personDao.findByUidAsync_s8cxhz$(this.local$this$ClazzAssignmentDetailStudentProgressPresenter.selectedSubmitterUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},oh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},oh.prototype=Object.create(L.prototype),oh.prototype.constructor=oh,oh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:return this.local$it.courseAssignmentSubmissionDao.getAllSubmissionsFromSubmitter_3pjtqy$(this.local$closure$clazzAssignment.caUid,this.local$this$ClazzAssignmentDetailStudentProgressPresenter.selectedSubmitterUid);case 1:throw this.exception_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ch.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},ch.prototype=Object.create(L.prototype),ch.prototype.constructor=ch,ch.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(this.$this.accountManager.activeAccount.personUid,this.state_0=2,this.result_0=Rt(this.local$db,Ot,eh(this.local$db,this.$this),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(null==(t=this.result_0))throw pe("Clazz assignment uid not found");this.local$clazzAssignment=t;var e=!x(this.local$clazzAssignment.caGroupUid,O);if(this.local$tmp$_1=this.$this.view,e){this.local$tmp$_0=bn(this.$this.systemImpl.getString(2917,this.$this.context),"%1$s",this.$this.selectedSubmitterUid.toString()),this.state_0=4;continue}if(this.state_0=3,this.result_0=Rt(this.local$db,Ot,ih(this.$this),this),this.result_0===T)return T;continue;case 3:var n=this.result_0;this.local$tmp$_0=null!=n?kA(n):null,this.state_0=4;continue;case 4:if(this.local$tmp$_1.submitterName=this.local$tmp$_0,this.local$tmp$_2=this.$this.view,this.state_0=5,this.result_0=Rt(this.local$db,Ot,rh(this.local$clazzAssignment,this.$this),this),this.result_0===T)return T;continue;case 5:if(this.local$tmp$_2.clazzCourseAssignmentSubmissionAttachment=this.result_0,Qq(this.local$db.courseAssignmentMarkDao.getMarkOfAssignmentForSubmitterLiveData_3pjtqy$(this.local$clazzAssignment.caUid,this.$this.selectedSubmitterUid),this.$this.lifecycleOwner,sh(this.$this)),Qq(this.local$db.courseAssignmentSubmissionDao.getStatusOfAssignmentForSubmitter_3pjtqy$(this.local$clazzAssignment.caUid,this.$this.selectedSubmitterUid),this.$this.lifecycleOwner,ah(this.$this)),this.state_0=6,this.result_0=this.$this.repo.courseAssignmentSubmissionDao.countSubmissionsFromSubmitter_3pjtqy$(this.local$clazzAssignment.caUid,this.$this.selectedSubmitterUid,this),this.result_0===T)return T;continue;case 6:var i=this.result_0;if(this.local$submitButtonVisible=i>0,this.$this.view.submitButtonVisible=this.local$submitButtonVisible,this.state_0=7,this.result_0=this.$this.repo.courseAssignmentMarkDao.findNextSubmitterToMarkForAssignment_3pjtqy$(this.$this.selectedClazzAssignmentUid,this.$this.selectedSubmitterUid,this),this.result_0===T)return T;continue;case 7:return this.$this.nextSubmitterToMark_0=this.result_0,this.$this.view.markNextStudentVisible=this.local$submitButtonVisible&&!x(this.$this.nextSubmitterToMark_0,O),this.local$clazzAssignment.caPrivateCommentsEnabled&&(this.$this.view.clazzAssignmentPrivateComments=this.local$db.commentsDao.findPrivateByEntityTypeAndUidAndForPersonLive2_h639zw$(520,this.local$clazzAssignment.caUid,this.$this.selectedSubmitterUid)),this.local$clazzAssignment;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Gu.prototype.onLoadEntityFromDb_7hogkd$=function(t,e,n){var i=new ch(this,t,e);return n?i:i.doResume(null)},lh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},lh.prototype=Object.create(L.prototype),lh.prototype.constructor=lh,lh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n;if(1===this.local$closure$submissionCourse.casType){var i=mt(),o=lP().DISPLAY_TEXT,r=null!=(t=this.local$closure$submissionCourse.casText)?t:"";return i.put_xwzc9p$(o,r),this.local$this$ClazzAssignmentDetailStudentProgressPresenter.requireNavController().navigate_oc2wlg$(lP().VIEW_NAME,i),nt}if(2===this.local$closure$submissionCourse.casType){if(this.local$tmp$_0=this.local$closure$submissionCourse.attachment,null==this.local$tmp$_0)return;this.state_0=1;continue}this.state_0=9;continue;case 1:if(this.local$attachment=this.local$tmp$_0,this.local$tmp$_1=this.local$attachment.casaUri,null==this.local$tmp$_1)return;this.state_0=2;continue;case 2:var s=this.local$tmp$_1;if(this.state_0=3,this.result_0=kn(this.local$this$ClazzAssignmentDetailStudentProgressPresenter.repo,s,this),this.result_0===T)return T;continue;case 3:var a=this.result_0;return this.exceptionState_0=4,this.local$this$ClazzAssignmentDetailStudentProgressPresenter.systemImpl.openFileInDefaultViewer_t9zcln$(this.local$this$ClazzAssignmentDetailStudentProgressPresenter.context,a,this.local$attachment.casaMimeType,null!=(n=this.local$closure$submissionCourse.attachment)?n.casaFileName:null),nt;case 4:this.exceptionState_0=10;var c=this.exception_0;if(e.isType(c,on)){if(e.isType(c,Uw))return this.local$this$ClazzAssignmentDetailStudentProgressPresenter.view.showSnackBar_9pu0dj$(this.local$this$ClazzAssignmentDetailStudentProgressPresenter.systemImpl.getString(2162,this.local$this$ClazzAssignmentDetailStudentProgressPresenter.context)),nt;var l=c.message;if(null!=l)return this.local$this$ClazzAssignmentDetailStudentProgressPresenter.view.showSnackBar_9pu0dj$(l),nt;this.state_0=5;continue}throw c;case 5:this.state_0=6;continue;case 6:this.state_0=7;continue;case 7:this.state_0=8;continue;case 8:this.state_0=9;continue;case 9:this.state_0=11;continue;case 10:throw this.exception_0;case 11:return nt;default:throw this.state_0=10,new Error("State Machine Unreachable execution")}}catch(c){if(10===this.state_0)throw this.exceptionState_0=this.state_0,c;this.state_0=this.exceptionState_0,this.exception_0=c}},Gu.prototype.onClickOpenSubmission_gh2dp9$=function(t){var e,n;it(this.presenterScope,void 0,void 0,(e=t,n=this,function(t,i,o){var r=new lh(e,n,t,this,i);return o?r:r.doResume(null)}))},uh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},uh.prototype=Object.create(L.prototype),uh.prototype.constructor=uh,uh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n,i,o;if(this.state_0=2,this.result_0=this.local$txDb.courseAssignmentSubmissionDao.findLastSubmissionFromStudent_3pjtqy$(this.local$this$ClazzAssignmentDetailStudentProgressPresenter.selectedSubmitterUid,this.local$closure$assignment.caUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(this.local$tmp$=this.result_0,null==this.local$tmp$)return;this.state_0=3;continue;case 3:var r=this.local$tmp$,s=null!=(e=null!=(t=this.local$closure$assignment.block)?t.cbLateSubmissionPenalty:null)?e:0;if(r.casTimestamp.compareTo_11rb$(null!=(i=null!=(n=this.local$closure$assignment.block)?n.cbDeadlineDate:null)?i:O)>0){var a=this.local$closure$grade*s/100;o=dA(this.local$closure$grade-a,2)}else o=dA(this.local$closure$grade,2);var c,l,u=o,h=this.local$txDb.courseAssignmentMarkDao,d=new Bn,p=this.local$this$ClazzAssignmentDetailStudentProgressPresenter,_=this.local$closure$assignment;if(d.camSubmitterUid=p.selectedSubmitterUid,d.camAssignmentUid=_.caUid,d.camMark=u,d.camPenalty=r.casTimestamp.compareTo_11rb$(null!=(l=null!=(c=_.block)?c.cbDeadlineDate:null)?l:O)>0?s:0,this.state_0=4,this.result_0=h.insertAsync(d,this),this.result_0===T)return T;continue;case 4:return this.local$this$ClazzAssignmentDetailStudentProgressPresenter.view.showSnackBar_9pu0dj$(this.local$this$ClazzAssignmentDetailStudentProgressPresenter.systemImpl.getString(2838,this.local$this$ClazzAssignmentDetailStudentProgressPresenter.context)),nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},dh.prototype=Object.create(L.prototype),dh.prototype.constructor=dh,dh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ut(this.local$this$ClazzAssignmentDetailStudentProgressPresenter.repo,void 0,hh(this.local$this$ClazzAssignmentDetailStudentProgressPresenter,this.local$closure$assignment,this.local$closure$grade),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Gu.prototype.onClickSubmitGrade_mx4ult$=function(t){var e,n,i,o,r=null!=(i=null!=(n=null!=(e=this.entity)?e.block:null)?n.cbMaxPoints:null)?i:10;if(t<0||t>r)return this.view.submitMarkError=bn(this.systemImpl.getString(2947,this.context),"%1$s",r.toString()),!1;if(null==(o=this.view.entity))return!1;var s,a,c,l=o;return it(this.presenterScope,void 0,void 0,(s=this,a=l,c=t,function(t,e,n){var i=new dh(s,a,c,t,this,e);return n?i:i.doResume(null)})),!0},Gu.prototype.onClickSubmitGradeAndMarkNext_mx4ult$=function(t){this.onClickSubmitGrade_mx4ult$(t)&&this.systemImpl.go_henhri$(SI().VIEW_NAME,y([E(zG().ARG_SUBMITER_UID,this.nextSubmitterToMark_0.toString()),E(zG().ARG_CLAZZ_ASSIGNMENT_UID,this.selectedClazzAssignmentUid.toString()),E(zG().ARG_CLAZZUID,this.selectedClazzUid_0.toString())]),this.context,new Ww(zG().CURRENT_DEST,!0))},Gu.prototype.addComment_61zpoe$=function(t){return this.newPrivateCommentListener.addComment_61zpoe$(t)},Gu.$metadata$={kind:v,simpleName:"ClazzAssignmentDetailStudentProgressPresenter",interfaces:[iy,_z]},_h.$metadata$={kind:v,simpleName:"TextLimitTypeOptions",interfaces:[Wn]},_h.values=$h,_h.valueOf_61zpoe$=function(t){switch(t){case"WORDS":return fh();case"CHARS":return gh();default:Hn("No enum constant com.ustadmobile.core.controller.ClazzAssignmentEditPresenter.TextLimitTypeOptions."+t)}},Eh.$metadata$={kind:v,simpleName:"TextLimitTypeOptionsMessageIdOption",interfaces:[fR]},yh.$metadata$={kind:v,simpleName:"CompletionCriteriaOptions",interfaces:[Wn]},yh.values=Ch,yh.valueOf_61zpoe$=function(t){switch(t){case"SUBMITTED":return Sh();case"GRADED":return vh();default:Hn("No enum constant com.ustadmobile.core.controller.ClazzAssignmentEditPresenter.CompletionCriteriaOptions."+t)}},Nh.$metadata$={kind:v,simpleName:"CompletionCriteriaOptionsMessageIdOption",interfaces:[fR]},Th.$metadata$={kind:v,simpleName:"SubmissionPolicyOptions",interfaces:[Wn]},Th.values=Oh,Th.valueOf_61zpoe$=function(t){switch(t){case"SUBMIT_ALL_AT_ONCE":return zh();case"MULTIPLE_SUBMISSIONS":return wh();default:Hn("No enum constant com.ustadmobile.core.controller.ClazzAssignmentEditPresenter.SubmissionPolicyOptions."+t)}},Rh.$metadata$={kind:v,simpleName:"SubmissionPolicyOptionsMessageIdOption",interfaces:[fR]},Ah.$metadata$={kind:v,simpleName:"FileTypeOptions",interfaces:[Wn]},Ah.values=kh,Ah.valueOf_61zpoe$=function(t){switch(t){case"ANY":return Ih();case"DOCUMENT":return Uh();case"IMAGE":return Dh();case"VIDEO":return Ph();case"AUDIO":return Mh();default:Hn("No enum constant com.ustadmobile.core.controller.ClazzAssignmentEditPresenter.FileTypeOptions."+t)}},jh.$metadata$={kind:v,simpleName:"FileTypeOptionsMessageIdOption",interfaces:[fR]},Object.defineProperty(ph.prototype,"persistenceMode",{configurable:!0,get:function(){return Iz()}}),ph.prototype.onCreate=function(t){fz.prototype.onCreate.call(this,t);var e,n=this.view,i=Ch(),o=st(i.length);for(e=0;e!==i.length;++e){var r=i[e];o.add_11rb$(new Nh(r,this.context,this.di))}n.completionCriteriaOptions=o;var s,a=this.view,c=Oh(),l=st(c.length);for(s=0;s!==c.length;++s){var u=c[s];l.add_11rb$(new Rh(u,this.context,this.di))}a.submissionPolicyOptions=l;var h,d=this.view,p=kh(),_=st(p.length);for(h=0;h!==p.length;++h){var m=p[h];_.add_11rb$(new jh(m,this.context,this.di))}d.fileTypeOptions=_;var f,g=this.view,$=$h(),E=st($.length);for(f=0;f!==$.length;++f){var y=$[f];E.add_11rb$(new Eh(y,this.context,this.di))}g.textLimitTypeOptions=E},Gh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Gh.prototype=Object.create(L.prototype),Gh.prototype.constructor=Gh,Gh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e;if(this.state_0=2,this.result_0=this.local$this$ClazzAssignmentEditPresenter.onLoadJsonComplete_0.await(this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return null!=(e=null!=(t=this.local$this$ClazzAssignmentEditPresenter.entity)?t.assignment:null)&&(e.caGroupUid=this.local$closure$group.cgsUid),this.local$this$ClazzAssignmentEditPresenter.view.groupSet=this.local$closure$group,this.local$this$ClazzAssignmentEditPresenter.view.entity=this.local$this$ClazzAssignmentEditPresenter.entity,this.local$this$ClazzAssignmentEditPresenter.requireSavedStateHandle().set_umlfku$(Jh().SAVEDSTATE_KEY_SUBMISSION_TYPE,null),nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ph.prototype.onLoadDataComplete=function(){fz.prototype.onLoadDataComplete.call(this),this.observeSavedStateResult_u0dr5v$(Jh().SAVEDSTATE_KEY_SUBMISSION_TYPE,jt(Vn.Companion.serializer()),P(Vn),new bt(qh(this)))},Bh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Bh.prototype=Object.create(L.prototype),Bh.prototype.constructor=Bh,Bh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$it.clazzDao.getClazzWithSchool_s8cxhz$(this.local$this$ClazzAssignmentEditPresenter.clazzUid_0,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Hh.prototype=Object.create(L.prototype),Hh.prototype.constructor=Hh,Hh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n,i,o,r,s,a,c,l,u;if(this.state_0=2,this.result_0=this.local$this$ClazzAssignmentEditPresenter.db.courseGroupSetDao.findByUidAsync_s8cxhz$(null!=(e=null!=(t=this.local$closure$editEntity.assignment)?t.caGroupUid:null)?e:O,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var h=mA(this.result_0,this.local$this$ClazzAssignmentEditPresenter.systemImpl,this.local$this$ClazzAssignmentEditPresenter.context);if(this.local$this$ClazzAssignmentEditPresenter.view.groupSet=h,Qq(this.local$this$ClazzAssignmentEditPresenter.repo.courseAssignmentSubmissionDao.checkNoSubmissionsMade_s8cxhz$(null!=(i=null!=(n=this.local$closure$editEntity.assignment)?n.caUid:null)?i:O),this.local$this$ClazzAssignmentEditPresenter.lifecycleOwner,Fh(this.local$this$ClazzAssignmentEditPresenter)),this.local$this$ClazzAssignmentEditPresenter.clazzUid_0=null!=(a=null!=(s=null!=(o=this.local$closure$editEntity.assignment)?o.caClazzUid:null)?s:null!=(r=this.local$this$ClazzAssignmentEditPresenter.arguments.get_11rb$(zG().ARG_CLAZZUID))?de(r):null)?a:O,this.state_0=3,this.result_0=Rt(this.local$this$ClazzAssignmentEditPresenter.db,Ot,Wh(this.local$this$ClazzAssignmentEditPresenter),this),this.result_0===T)return T;continue;case 3:this.local$clazzWithSchool=null!=(c=this.result_0)?c:new Rn;var d=null!=(u=null!=(l=this.local$this$ClazzAssignmentEditPresenter.arguments.get_11rb$(OI().TERMINOLOGY_ID))?Xn(l):null)?u:this.local$clazzWithSchool.clazzTerminologyUid;if(this.state_0=4,this.result_0=this.local$this$ClazzAssignmentEditPresenter.db.courseTerminologyDao.findByUidAsync_s8cxhz$(d,this),this.result_0===T)return T;continue;case 4:var p=fA(this.result_0,this.local$this$ClazzAssignmentEditPresenter.json,this.local$this$ClazzAssignmentEditPresenter.systemImpl,this.local$this$ClazzAssignmentEditPresenter.context);this.local$this$ClazzAssignmentEditPresenter.view.markingTypeOptions=be([new sR(ke(p,ML().TEACHER_KEY),1),new fR(2853,this.local$this$ClazzAssignmentEditPresenter.context,2,this.local$this$ClazzAssignmentEditPresenter.di)]);var _=hA(this.local$clazzWithSchool);return this.local$this$ClazzAssignmentEditPresenter.view.timeZone=_,this.local$this$ClazzAssignmentEditPresenter.loadEntityIntoDateTime_gqx91x$(this.local$closure$editEntity),this.local$this$ClazzAssignmentEditPresenter.onLoadJsonComplete_0.complete_11rb$(!0);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ph.prototype.onLoadFromJson_y0zsll$=function(t){var n;fz.prototype.onLoadFromJson_y0zsll$.call(this,t);var i=t.get_11rb$(oG().ARG_ENTITY_JSON);if(null!=i){var o,r=this.di,s=Kn.Companion.serializer();n=Et(r).directDI.Instance_ohrpre$(e.isType(o=F(M(P(Pt),[],!1)),B)?o:W(),null).decodeFromString_awif5v$(s,i)}else{var a,c,l,u,h=new Kn;h.cbUid=Dn(this.db).nextId_za3lpa$(124),h.cbClazzUid=null!=(c=null!=(a=this.arguments.get_11rb$(zG().ARG_CLAZZUID))?de(a):null)?c:O,h.cbEntityUid=null!=(u=null!=(l=this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(l):null)?u:Dn(this.db).nextId_za3lpa$(520),h.cbType=103;var d,p,_=new xn;_.caUid=h.cbEntityUid,_.caClazzUid=null!=(p=null!=(d=this.arguments.get_11rb$(zG().ARG_CLAZZUID))?de(d):null)?p:O,h.assignment=_,n=h}var m,f,g=n;return it(this.presenterScope,void 0,void 0,(m=this,f=g,function(t,e,n){var i=new Hh(m,f,t,this,e);return n?i:i.doResume(null)})),g},ph.prototype.onSaveInstanceState_gtra9a$=function(t){fz.prototype.onSaveInstanceState_gtra9a$.call(this,t);var e=this.entity;null!=e&&this.saveDateTimeIntoEntity_gqx91x$(e),xA(t,oG().ARG_ENTITY_JSON,this.json,Kn.Companion.serializer(),e)},ph.prototype.loadEntityIntoDateTime_gqx91x$=function(t){var e,n=null!=(e=this.view.timeZone)?e:"UTC";if(x(t.cbHideUntilDate,O))this.view.startDate=O;else{var i=bO(D.Companion.invoke_s8cxhz$(t.cbHideUntilDate),n).unixMillisLong;this.view.startDate=i,this.view.startTime=t.cbHideUntilDate.subtract(i)}if(x(t.cbDeadlineDate,In))this.view.deadlineDate=In;else{var o=bO(D.Companion.invoke_s8cxhz$(t.cbDeadlineDate),n).unixMillisLong;this.view.deadlineDate=o,this.view.deadlineTime=t.cbDeadlineDate.subtract(o)}if(x(t.cbGracePeriodDate,In))this.view.gracePeriodDate=In;else{var r=bO(D.Companion.invoke_s8cxhz$(t.cbGracePeriodDate),n).unixMillisLong;this.view.gracePeriodDate=r,this.view.gracePeriodTime=t.cbGracePeriodDate.subtract(r)}},ph.prototype.saveDateTimeIntoEntity_gqx91x$=function(t){var e,n=null!=(e=this.view.timeZone)?e:"UTC";if(!x(this.view.startDate,O)){var i=yO(D.Companion.invoke_s8cxhz$(this.view.startDate),n),o=i.hours,r=Yn.Companion.fromHours_14dthe$(o),s=i.minutes,a=r.plus_fv8bff$(Yn.Companion.fromMinutes_14dthe$(s)),c=i.seconds,l=a.plus_fv8bff$(Yn.Companion.fromSeconds_14dthe$(c)),u=i.milliseconds;t.cbHideUntilDate=i.minus_fv8bff$(l.plus_fv8bff$(Yn.Companion.fromMilliseconds_14dthe$(u))).utc.unixMillisLong.add(this.view.startTime)}if(!x(this.view.deadlineDate,In)){var h=yO(D.Companion.invoke_s8cxhz$(this.view.deadlineDate),n),d=h.hours,p=Yn.Companion.fromHours_14dthe$(d),_=h.minutes,m=p.plus_fv8bff$(Yn.Companion.fromMinutes_14dthe$(_)),f=h.seconds,g=m.plus_fv8bff$(Yn.Companion.fromSeconds_14dthe$(f)),$=h.milliseconds;t.cbDeadlineDate=h.minus_fv8bff$(g.plus_fv8bff$(Yn.Companion.fromMilliseconds_14dthe$($))).utc.unixMillisLong.add(this.view.deadlineTime)}if(!x(this.view.gracePeriodDate,In)){var E=yO(D.Companion.invoke_s8cxhz$(this.view.gracePeriodDate),n),y=E.hours,b=Yn.Companion.fromHours_14dthe$(y),S=E.minutes,v=b.plus_fv8bff$(Yn.Companion.fromMinutes_14dthe$(S)),C=E.seconds,N=v.plus_fv8bff$(Yn.Companion.fromSeconds_14dthe$(C)),T=E.milliseconds;t.cbGracePeriodDate=E.minus_fv8bff$(N.plus_fv8bff$(Yn.Companion.fromMilliseconds_14dthe$(T))).utc.unixMillisLong.add(this.view.gracePeriodTime)}},ph.prototype.handleSubmissionTypeClicked=function(){this.navigateForResult_r13zgt$(new Iw(this,null,uD().VIEW_NAME,P(Vn),Vn.Companion.serializer(),Jh().SAVEDSTATE_KEY_SUBMISSION_TYPE,void 0,jn([E(zG().ARG_CLAZZUID,this.clazzUid_0.toString()),E(uD().ARG_SHOW_INDIVIDUAL,(!0).toString())])))},Vh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Vh.prototype=Object.create(L.prototype),Vh.prototype.constructor=Vh,Vh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n,i,o,r,s,a,c;this.local$this$ClazzAssignmentEditPresenter.saveDateTimeIntoEntity_gqx91x$(this.local$closure$entity),this.local$foundError=!1;var l=null!=(t=this.local$closure$entity.assignment)?t.caTitle:null;if(null==l||0===l.length?(this.local$this$ClazzAssignmentEditPresenter.view.caTitleError=this.local$this$ClazzAssignmentEditPresenter.systemImpl.getString(2126,this.local$this$ClazzAssignmentEditPresenter.context),this.local$foundError=!0):this.local$this$ClazzAssignmentEditPresenter.view.caTitleError=null,0===this.local$closure$entity.cbMaxPoints?(this.local$this$ClazzAssignmentEditPresenter.view.caMaxPointsError=this.local$this$ClazzAssignmentEditPresenter.systemImpl.getString(2126,this.local$this$ClazzAssignmentEditPresenter.context),this.local$foundError=!0):this.local$this$ClazzAssignmentEditPresenter.view.caMaxPointsError=null,this.local$closure$entity.cbDeadlineDate.compareTo_11rb$(this.local$closure$entity.cbHideUntilDate)<=0?(this.local$this$ClazzAssignmentEditPresenter.view.caDeadlineError=this.local$this$ClazzAssignmentEditPresenter.systemImpl.getString(2675,this.local$this$ClazzAssignmentEditPresenter.context),this.local$foundError=!0):this.local$this$ClazzAssignmentEditPresenter.view.caDeadlineError=null,this.local$closure$entity.cbGracePeriodDate.compareTo_11rb$(this.local$closure$entity.cbDeadlineDate)<0?(this.local$this$ClazzAssignmentEditPresenter.view.caGracePeriodError=this.local$this$ClazzAssignmentEditPresenter.systemImpl.getString(2589,this.local$this$ClazzAssignmentEditPresenter.context),this.local$foundError=!0):this.local$this$ClazzAssignmentEditPresenter.view.caGracePeriodError=null,!1===(null!=(n=this.local$closure$entity.assignment)?n.caRequireTextSubmission:null)&&!1===(null!=(i=this.local$closure$entity.assignment)?i.caRequireFileSubmission:null)&&(this.local$foundError=!0,this.local$this$ClazzAssignmentEditPresenter.view.showSnackBar_9pu0dj$(this.local$this$ClazzAssignmentEditPresenter.systemImpl.getString(2941,this.local$this$ClazzAssignmentEditPresenter.context))),this.state_0=2,this.result_0=this.local$this$ClazzAssignmentEditPresenter.repo.clazzAssignmentDao.getGroupUidFromAssignment_s8cxhz$(null!=(r=null!=(o=this.local$closure$entity.assignment)?o.caUid:null)?r:O,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var u=this.result_0;if(x(u,Fn)||x(u,null!=(s=this.local$closure$entity.assignment)?s.caGroupUid:null)){this.state_0=4;continue}if(this.state_0=3,this.result_0=Jn(this.local$this$ClazzAssignmentEditPresenter.repo.courseAssignmentSubmissionDao.checkNoSubmissionsMade_s8cxhz$(null!=(c=null!=(a=this.local$closure$entity.assignment)?a.caUid:null)?c:O),this),this.result_0===T)return T;continue;case 3:this.result_0||(this.local$foundError=!0,this.local$this$ClazzAssignmentEditPresenter.view.showSnackBar_9pu0dj$(this.local$this$ClazzAssignmentEditPresenter.systemImpl.getString(2002,this.local$this$ClazzAssignmentEditPresenter.context))),this.state_0=4;continue;case 4:if(this.local$foundError)return this.local$this$ClazzAssignmentEditPresenter.view.loading=!1,void(this.local$this$ClazzAssignmentEditPresenter.view.fieldsEnabled=!0);this.state_0=5;continue;case 5:x(this.local$closure$entity.cbGracePeriodDate,In)&&(this.local$closure$entity.cbGracePeriodDate=this.local$closure$entity.cbDeadlineDate);var h,d=this.local$this$ClazzAssignmentEditPresenter,p=this.local$this$ClazzAssignmentEditPresenter.di,_=jt(Kn.Companion.serializer()),m=$e(this.local$closure$entity),f=Et(p).directDI.Instance_ohrpre$(e.isType(h=F(M(P(Pt),[],!1)),B)?h:W(),null);return d.finishWithResult_61zpoe$(f.encodeToString_tf03ej$(_,m)),this.local$this$ClazzAssignmentEditPresenter.view.loading=!1,nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ph.prototype.handleClickSave_nqi3in$=function(t){var e,n;this.view.fieldsEnabled&&(this.view.loading=!0,this.view.fieldsEnabled=!1,it(this.presenterScope,void 0,void 0,(e=t,n=this,function(t,i,o){var r=new Vh(e,n,t,this,i);return o?r:r.doResume(null)})))},Kh.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var Xh=null;function Jh(){return null===Xh&&new Kh,Xh}function Yh(t,e,n,i,o,r){var s,a;ed(),void 0===r&&(r=new zg(n,void 0,void 0,null!=(a=null!=(s=e.get_11rb$(zG().ARG_ENTITY_UID))?de(s):null)?a:O,t,i)),_z.call(this,t,e,n,i,o),this.contentEntryListItemListener=r,this.collapsedList=ni()}function Qh(t,e,n,i,o,r){L.call(this,r),this.$controller=o,this.exceptionState_0=1,this.local$closure$repo=t,this.local$this$ClazzDetailOverviewPresenter=e,this.local$closure$entityUid=n,this.local$tmp$=void 0,this.local$tmp$_0=void 0}function Zh(){td=this,this.SAVEDSTATE_KEY_CLAZZ="Clazz"}ph.$metadata$={kind:v,simpleName:"ClazzAssignmentEditPresenter",interfaces:[fz]},Object.defineProperty(Yh.prototype,"deepLink",{configurable:!0,get:function(){var t,n=Et(this.di).directDI.Instance_ohrpre$(e.isType(t=F(M(P(wa),[],!1)),B)?t:W(),null).activeAccount.endpointUrl;return AA(this.arguments,n,MI().VIEW_NAME)}}),Object.defineProperty(Yh.prototype,"persistenceMode",{configurable:!0,get:function(){return Uz()}}),Yh.prototype.onCheckEditPermission_tn71rk$=function(t,e){var n,i,o;return this.db.clazzDao.personHasPermissionWithClazz_b9bd0d$(null!=(n=null!=t?t.personUid:null)?n:O,null!=(o=null!=(i=this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(i):null)?o:O,Qn,e)},Qh.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Qh.prototype=Object.create(L.prototype),Qh.prototype.constructor=Qh,Qh.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$tmp$=this.local$this$ClazzDetailOverviewPresenter.view,this.state_0=2,this.result_0=this.local$closure$repo.clazzDao.personHasPermissionWithClazz_b9bd0d$(this.local$this$ClazzDetailOverviewPresenter.accountManager.activeAccount.personUid,this.local$closure$entityUid,Zn,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(this.local$tmp$.clazzCodeVisible=this.result_0,this.local$this$ClazzDetailOverviewPresenter.view.courseBlockList=this.local$closure$repo.courseBlockDao.findAllCourseBlockByClazzUidLive_uwwcm7$(this.local$closure$entityUid,this.local$this$ClazzDetailOverviewPresenter.accountManager.activeAccount.personUid,qt(this.local$this$ClazzDetailOverviewPresenter.collapsedList),et()),this.local$tmp$_0=this.local$this$ClazzDetailOverviewPresenter.view,this.state_0=3,this.result_0=this.local$closure$repo.clazzDao.personHasPermissionWithClazz_b9bd0d$(this.local$this$ClazzDetailOverviewPresenter.accountManager.activeAccount.personUid,this.local$closure$entityUid,ti,this),this.result_0===T)return T;continue;case 3:return this.local$tmp$_0.showPermissionButton=this.result_0,nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Yh.prototype.onLoadLiveData_7hogkd$=function(t){var e,n,i,o,r,s=null!=(n=null!=(e=this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(e):null)?n:O;return this.view.scheduleList=t.scheduleDao.findAllSchedulesByClazzUid_s8cxhz$(s),it(this.presenterScope,void 0,void 0,(i=t,o=this,r=s,function(t,e,n){var s=new Qh(i,o,r,t,this,e);return n?s:s.doResume(null)})),t.clazzDao.getClazzWithDisplayDetails_3pjtqy$(s,et())},Yh.prototype.handleClickEdit=function(){var t,e,n=null!=(e=null!=(t=this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(t):null)?e:O;this.navigateForResult_r13zgt$(new Iw(this,null,qI().VIEW_NAME,P(ei),ei.Companion.serializer(),ed().SAVEDSTATE_KEY_CLAZZ,void 0,jn([E(zG().ARG_ENTITY_UID,n.toString())])))},Yh.prototype.handleModuleExpandCollapseClicked_dk05ec$=function(t){var e,n,i,o=null!=(n=null!=(e=this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(e):null)?n:O,r=this.collapsedList;t:do{var s;for(s=r.iterator();s.hasNext();){var a=s.next();if(x(a,t.cbUid)){i=a;break t}}i=null}while(0);var c=i;null!=c?this.collapsedList.remove_11rb$(c):this.collapsedList.add_11rb$(t.cbUid),this.view.courseBlockList=this.repo.courseBlockDao.findAllCourseBlockByClazzUidLive_uwwcm7$(o,this.accountManager.activeAccount.personUid,qt(this.collapsedList),et())},Yh.prototype.handleClickAssignment_etrmwv$=function(t){this.requireNavController().navigate_oc2wlg$(TI().VIEW_NAME,Je(E(zG().ARG_ENTITY_UID,t.caUid.toString())))},Yh.prototype.handleClickTextBlock_guofji$=function(t){var e,n,i=mt(),o=lP().DISPLAY_TEXT,r=null!=(e=t.cbDescription)?e:"";i.put_xwzc9p$(o,r);var s=lP().DISPLAY_TITLE,a=null!=(n=t.cbTitle)?n:"";i.put_xwzc9p$(s,a),this.requireNavController().navigate_oc2wlg$(lP().VIEW_NAME,i)},Yh.prototype.handleDownloadAllClicked=function(){},Yh.prototype.handleClickPermissions=function(){var t,e,n,i;i=this.ustadNavController,t=Ik().VIEW_NAME,n=y([E(Ik().ARG_FILTER_TABLE_ID,6..toString()),E(Ik().ARG_FILTER_ENTITY_UID,null!=(e=this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?e:"0")]),null!=i&&i.navigate_oc2wlg$(t,n)},Yh.prototype.handleClickCourseDiscussion_5tqe7d$=function(t){var e;null!=(e=this.ustadNavController)&&e.navigate_oc2wlg$(KU().VIEW_NAME,y([E(zG().ARG_ENTITY_UID,t.courseDiscussionUid.toString()),E(zG().ARG_CLAZZUID,t.courseDiscussionClazzUid.toString())]))},Zh.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var td=null;function ed(){return null===td&&new Zh,td}function nd(t,n,i,o,r){var s;pd(),_z.call(this,t,n,i,o,r),this.scope_dg6gr6$_0=H(this,e.isType(s=F(M(P(ci),[],!1)),B)?s:W(),14).provideDelegate_tpuvb9$(this,id)}Yh.prototype.onClickContentEntry_dup0gu$=function(t){return this.contentEntryListItemListener.onClickContentEntry_dup0gu$(t)},Yh.prototype.onClickDownloadContentEntry_dup0gu$=function(t){return this.contentEntryListItemListener.onClickDownloadContentEntry_dup0gu$(t)},Yh.prototype.onClickSelectContentEntry_dup0gu$=function(t){return this.contentEntryListItemListener.onClickSelectContentEntry_dup0gu$(t)},Yh.$metadata$={kind:v,simpleName:"ClazzDetailOverviewPresenter",interfaces:[Pf,_z]};var id=new N("scope");function od(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$editEntity=t,this.local$this$ClazzDetailPresenter=e}function rd(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$closure$entityUid=t,this.local$it=e}function sd(t){return function(e,n,i){var o=new rd(t,e,n);return i?o:o.doResume(null)}}function ad(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$db=t,this.local$closure$entityUid=e}function cd(t,e){return function(n,i,o){var r=new ad(t,e,n,this,i);return o?r:r.doResume(null)}}function ld(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$clazz=void 0,this.local$db=e}function ud(t,e,n,i,o,r,s){L.call(this,s),this.$controller=r,this.exceptionState_0=1,this.local$closure$entityUid=t,this.local$closure$clazz=e,this.local$this$ClazzDetailPresenter=n,this.local$closure$personUid=i,this.local$commonArgs=void 0,this.local$coreTabs=void 0,this.local$destination=void 0,this.local$tmp$=void 0,this.local$element=void 0}function hd(){dd=this,this.CLAZZ_FEATURES=$e(vn),this.FEATURE_PERMISSION_MAP=Je(E(vn,ai)),this.VIEWNAME_MAP=Je(E(vn,dU().VIEW_NAME))}Object.defineProperty(nd.prototype,"scope_0",{configurable:!0,get:function(){return this.scope_dg6gr6$_0.value}}),Object.defineProperty(nd.prototype,"persistenceMode",{configurable:!0,get:function(){return xz()}}),nd.prototype.onCheckEditPermission_tn71rk$=function(t,e){return!1},od.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},od.prototype=Object.create(L.prototype),od.prototype.constructor=od,od.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$ClazzDetailPresenter.setupTabs_0(this.local$closure$editEntity.v,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},nd.prototype.onLoadFromJson_y0zsll$=function(t){_z.prototype.onLoadFromJson_y0zsll$.call(this,t);var n,i,o=t.get_11rb$(oG().ARG_ENTITY_JSON),r=t.get_11rb$(MI().ARG_TABS),s={v:null};if(null!=o){var a,c=this.di,l=ii.Companion.serializer(),u=Et(c).directDI.Instance_ohrpre$(e.isType(a=F(M(P(Pt),[],!1)),B)?a:W(),null);s.v=u.decodeFromString_awif5v$(l,o)}else s.v=new ii;if(null!=r){var h,d=this.view,p=this.di,_=jt(kt(Mt)),m=Et(p).directDI.Instance_ohrpre$(e.isType(h=F(M(P(Pt),[],!1)),B)?h:W(),null);d.tabs=m.decodeFromString_awif5v$(_,r)}else it(this.presenterScope,void 0,void 0,(n=s,i=this,function(t,e,o){var r=new od(n,i,t,this,e);return o?r:r.doResume(null)}));return s.v},nd.prototype.onSaveInstanceState_gtra9a$=function(t){_z.prototype.onSaveInstanceState_gtra9a$.call(this,t);var e=this.entity;xA(t,oG().ARG_ENTITY_JSON,this.json,ii.Companion.serializer(),e),xA(t,MI().ARG_TABS,this.json,jt(kt(Mt)),this.view.tabs)},rd.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},rd.prototype=Object.create(L.prototype),rd.prototype.constructor=rd,rd.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$it.clazzDao.findByUidAsync_s8cxhz$(this.local$closure$entityUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ad.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},ad.prototype=Object.create(L.prototype),ad.prototype.constructor=ad,ad.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=Rt(this.local$closure$db,Ot,sd(this.local$closure$entityUid),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ld.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},ld.prototype=Object.create(L.prototype),ld.prototype.constructor=ld,ld.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n,i=null!=(e=null!=(t=this.$this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(t):null)?e:O;if(this.state_0=2,this.result_0=wt(tt.Dispatchers.Default,cd(this.local$db,i),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(this.local$clazz=null!=(n=this.result_0)?n:new ii,this.state_0=3,this.result_0=this.$this.setupTabs_0(this.local$clazz,this),this.result_0===T)return T;continue;case 3:return this.local$clazz;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},nd.prototype.onLoadEntityFromDb_7hogkd$=function(t,e,n){var i=new ld(this,t,e);return n?i:i.doResume(null)},ud.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},ud.prototype=Object.create(L.prototype),ud.prototype.constructor=ud,ud.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$commonArgs=Je(E(zG().ARG_NAV_CHILD,(!0).toString())),this.local$coreTabs=be([ZA(II().VIEW_NAME,oi(this.local$commonArgs,Je(E(zG().ARG_ENTITY_UID,this.local$closure$entityUid.toString())))),ZA(fU().VIEW_NAME,oi(this.local$commonArgs,Je(E(zG().ARG_CLAZZUID,this.local$closure$entityUid.toString()))))]);var t=pd().CLAZZ_FEATURES;this.local$destination=ot(),this.local$tmp$=t.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$tmp$.hasNext()){this.state_0=5;continue}this.local$element=this.local$tmp$.next();var e,n=this.local$closure$clazz,i=this.local$this$ClazzDetailPresenter,o=this.local$closure$personUid,r=this.local$closure$entityUid;if(n.clazzFeatures.and(this.local$element).toNumber()>0){if(this.state_0=3,this.result_0=i.db.clazzDao.personHasPermissionWithClazz_b9bd0d$(o,r,null!=(e=pd().FEATURE_PERMISSION_MAP.get_11rb$(this.local$element))?e:Fn,this),this.result_0===T)return T;continue}this.result_0=!1,this.state_0=4;continue;case 3:this.state_0=4;continue;case 4:this.result_0&&this.local$destination.add_11rb$(this.local$element),this.state_0=2;continue;case 5:var s,a=st(rt(this.local$destination,10));for(s=this.local$destination.iterator();s.hasNext();){var c,l=s.next(),u=a.add_11rb$,h=this.local$closure$entityUid;u.call(a,ZA(null!=(c=pd().VIEWNAME_MAP.get_11rb$(l))?c:"INVALID",oi(this.local$commonArgs,Je(E(zG().ARG_CLAZZUID,h.toString())))))}var d=a,p=ZA(uD().VIEW_NAME,oi(this.local$commonArgs,Je(E(zG().ARG_CLAZZUID,this.local$closure$entityUid.toString())))),_=si(ri(this.local$coreTabs,d),p);if(x(this.local$this$ClazzDetailPresenter.view.tabs,_)){this.state_0=6;continue}return this.local$this$ClazzDetailPresenter.view.tabs=_,nt;case 6:return nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},nd.prototype.setupTabs_0=function(t,e){var n,i,o,r,s,a,c=null!=(i=null!=(n=this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(n):null)?i:O,l=this.accountManager.activeAccount.personUid;it(this.scope_0,void 0,void 0,(o=c,r=t,s=this,a=l,function(t,e,n){var i=new ud(o,r,s,a,t,this,e);return n?i:i.doResume(null)}))},hd.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var dd=null;function pd(){return null===dd&&new hd,dd}nd.$metadata$={kind:v,simpleName:"ClazzDetailPresenter",interfaces:[_z]};var _d,md,fd=zi((function(){var t=e.kotlin.comparisons.compareValues_s00gnj$;return function(e){return function(n,i){var o=e;return t(o(n),o(i))}}}));function gd(t){return t.discussionTopicIndex}function $d(t,e){var n,i=ot();for(n=e.iterator();n.hasNext();){var o,r=n.next();x(r.discussionTopicCourseDiscussionUid,null!=(o=t.courseDiscussion)?o.courseDiscussionUid:null)&&i.add_11rb$(r)}var s=Li(i,new wi(fd(gd))),a=new Kn;return a.createFromDb_taxqj1$(t),a.topics=s,a.topicUidsToRemove=fe(),a}function Ed(t,e,n,i,o){Qd(),fz.call(this,t,e,n,i,o),this.scheduleOneToManyJoinEditHelper_0=new NR(Ni("scheduleUid",1,(function(t){return t.scheduleUid}),(function(t,e){t.scheduleUid=e})),Qd().ARG_SAVEDSTATE_SCHEDULES,jt(Ti.Companion.serializer()),jt(Ti.Companion.serializer()),this,this.requireSavedStateHandle(),P(Ti),void 0,Zd),this.scheduleOneToManyJoinListener=this.scheduleOneToManyJoinEditHelper_0.createNavigateForResultListener_g113xi$(nk().VIEW_NAME,Ti.Companion.serializer()),this.topics_vyaq7x$_0=this.topics_vyaq7x$_0,this.courseBlockOneToManyJoinEditHelper_0=new NR(Ni("cbUid",1,(function(t){return t.cbUid}),(function(t,e){t.cbUid=e})),Qd().ARG_SAVEDSTATE_BLOCK,jt(Kn.Companion.serializer()),jt(Kn.Companion.serializer()),this,this.requireSavedStateHandle(),P(Kn),void 0,tp)}function yd(t,e,n,i){Wn.call(this),this.optionVal=n,this.messageId=i,this.name$=t,this.ordinal$=e}function bd(){bd=function(){},_d=new yd("OPEN",0,102,2888),md=new yd("INVITE",1,100,2940)}function Sd(){return bd(),_d}function vd(){return bd(),md}function Cd(){return[Sd(),vd()]}function Nd(t,e,n){fR.call(this,t.messageId,e,t.optionVal,n)}function Td(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$it=e}function Ld(t){return function(e,n,i){var o=new Td(t,e,n);return i?o:o.doResume(null)}}function zd(t,e,n,i){L.call(this,i),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$dbToUse=e}function wd(t){return function(e,n,i,o){var r=new zd(t,e,n,i);return o?r:r.doResume(null)}}function Od(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$it=e}function Rd(t){return function(e,n,i){var o=new Od(t,e,n);return i?o:o.doResume(null)}}function Ad(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$it=e}function xd(t){return function(e,n,i){var o=new Ad(t,e,n);return i?o:o.doResume(null)}}function Id(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$it=e}function Ud(t){return function(e,n,i){var o=new Id(t,e,n);return i?o:o.doResume(null)}}function Dd(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$tmp$_3=void 0,this.local$clazzUid=void 0,this.local$tmp$_6=void 0,this.local$$receiver=void 0,this.local$clazz=void 0,this.local$courseBlocksDb=void 0,this.local$db=e}function Pd(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$closure$txDb=t,this.local$it=e}function Md(t){return function(e,n,i){var o=new Pd(t,e,n);return i?o:o.doResume(null)}}function kd(t){return function(e){return e.scheduleClazzUid=t.clazzUid,nt}}function jd(t,e,n,i,o){L.call(this,o),this.exceptionState_0=1,this.local$this$ClazzEdit2Presenter=t,this.local$closure$entity=e,this.local$closure$courseBlockList=n,this.local$assignmentList=void 0,this.local$tmp$=void 0,this.local$element=void 0,this.local$xobject=void 0,this.local$txDb=i}function Gd(t,e,n){return function(i,o,r){var s=new jd(t,e,n,i,o);return r?s:s.doResume(null)}}yd.$metadata$={kind:v,simpleName:"EnrolmentPolicyOptions",interfaces:[Wn]},yd.values=Cd,yd.valueOf_61zpoe$=function(t){switch(t){case"OPEN":return Sd();case"INVITE":return vd();default:Hn("No enum constant com.ustadmobile.core.controller.ClazzEdit2Presenter.EnrolmentPolicyOptions."+t)}},Nd.$metadata$={kind:v,simpleName:"EnrolmentPolicyOptionsMessageIdOption",interfaces:[fR]},Object.defineProperty(Ed.prototype,"topics",{configurable:!0,get:function(){return null==this.topics_vyaq7x$_0?Ue("topics"):this.topics_vyaq7x$_0},set:function(t){this.topics_vyaq7x$_0=t}}),Object.defineProperty(Ed.prototype,"persistenceMode",{configurable:!0,get:function(){return xz()}}),Ed.prototype.onCreate=function(t){fz.prototype.onCreate.call(this,t),this.view.clazzSchedules=this.scheduleOneToManyJoinEditHelper_0.liveList,this.view.courseBlocks=this.courseBlockOneToManyJoinEditHelper_0.liveList;var e,n=this.view,i=Cd(),o=st(i.length);for(e=0;e!==i.length;++e){var r=i[e];o.add_11rb$(new Nd(r,this.context,this.di))}n.enrolmentPolicyOptions=o},Ed.prototype.onLoadDataComplete=function(){var t;fz.prototype.onLoadDataComplete.call(this),this.requireSavedStateHandle().getLiveData_ytbaoo$(oz().RESULT_TIMEZONE_KEY).observe_bi6zy5$(this.lifecycleOwner,new bt((t=this,function(e){var n;if(null!=e){var i=e;return null!=(n=t.entity)&&(n.clazzTimeZone=i),t.view.entity=t.entity,t.requireSavedStateHandle().set_umlfku$(oz().RESULT_TIMEZONE_KEY,null),nt}}))),this.observeSavedStateResult_u0dr5v$(Qd().SAVEDSTATE_KEY_SCHOOL,jt(li.Companion.serializer()),P(li),new bt(function(t){return function(e){var n,i,o;if(null!=(n=Un(e))){var r=n;return null!=(i=t.entity)&&(i.school=r),null!=(o=t.entity)&&(o.clazzSchoolUid=r.schoolUid),t.view.entity=t.entity,t.requireSavedStateHandle().set_umlfku$(Qd().SAVEDSTATE_KEY_SCHOOL,null),nt}}}(this))),this.observeSavedStateResult_u0dr5v$(Qd().SAVEDSTATE_KEY_HOLIDAYCALENDAR,jt(ui.Companion.serializer()),P(ui),new bt(function(t){return function(e){var n,i,o;if(null!=(n=Un(e))){var r=n;return null!=(i=t.entity)&&(i.holidayCalendar=r),null!=(o=t.entity)&&(o.clazzHolidayUMCalendarUid=r.umCalendarUid),t.view.entity=t.entity,t.requireSavedStateHandle().set_umlfku$(Qd().SAVEDSTATE_KEY_HOLIDAYCALENDAR,null),nt}}}(this))),this.observeSavedStateResult_u0dr5v$(Qd().SAVEDSTATE_KEY_TERMINOLOGY,jt(hi.Companion.serializer()),P(hi),new bt(function(t){return function(e){var n,i,o;if(null!=(n=Un(e))){var r=n;return null!=(i=t.entity)&&(i.clazzTerminologyUid=r.ctUid),null!=(o=t.entity)&&(o.terminology=r),t.view.entity=t.entity,t.requireSavedStateHandle().set_umlfku$(Qd().SAVEDSTATE_KEY_TERMINOLOGY,null),nt}}}(this))),this.observeSavedStateResult_u0dr5v$(oz().RESULT_TIMEZONE_KEY,jt(kt(Mt)),ne,new bt(function(t){return function(e){var n,i;if(null!=(n=Un(e))){var o=n;return null!=(i=t.entity)&&(i.clazzTimeZone=o),t.view.entity=t.entity,t.requireSavedStateHandle().set_umlfku$(oz().RESULT_TIMEZONE_KEY,null),nt}}}(this))),this.observeSavedStateResult_u0dr5v$(Qd().SAVEDSTATE_KEY_FEATURES,jt(hR().serializer()),P(cR),new bt(function(t){return function(e){var n,i;if(null!=(n=Un(e))){var o=n;return null!=(i=t.entity)&&(i.clazzFeatures=o.longValue),t.view.entity=t.entity,t.requireSavedStateHandle().set_umlfku$(Qd().SAVEDSTATE_KEY_FEATURES,null),nt}}}(this))),this.observeSavedStateResult_u0dr5v$(Qd().SAVEDSTATE_KEY_ASSIGNMENT,jt(Kn.Companion.serializer()),P(Kn),new bt(function(t){return function(e){var n,i,o,r,s;if(null!=(n=Un(e))){var a,c,l=n;if(null!=(i=t.courseBlockOneToManyJoinEditHelper_0.liveList.getValue())){var u;t:do{var h;for(h=i.iterator();h.hasNext();){var d,p,_=h.next();if(x(null!=(d=_.assignment)?d.caUid:null,null!=(p=l.assignment)?p.caUid:null)){u=_;break t}}u=null}while(0);a=u}else a=null;if(null!=(o=a))c=o;else{var m,f,g,$,E,y,b=new Kn,S=t;b.cbClazzUid=l.cbClazzUid,b.cbEntityUid=null!=(f=null!=(m=l.assignment)?m.caUid:null)?f:O,b.cbTitle=null!=(g=l.assignment)?g.caTitle:null,b.cbType=103,b.cbDescription=null!=($=l.assignment)?$.caDescription:null,b.cbIndex=null!=(y=null!=(E=S.courseBlockOneToManyJoinEditHelper_0.liveList.getValue())?E.size:null)?y:0,b.cbUid=l.cbUid,b.cbHideUntilDate=l.cbHideUntilDate,b.cbDeadlineDate=l.cbDeadlineDate,b.cbGracePeriodDate=l.cbGracePeriodDate,b.cbLateSubmissionPenalty=l.cbLateSubmissionPenalty,b.cbCompletionCriteria=l.cbCompletionCriteria,b.cbMaxPoints=l.cbMaxPoints,b.assignment=l.assignment,c=b}var v=c;return v.assignment=l.assignment,v.cbTitle=null!=(r=l.assignment)?r.caTitle:null,v.cbDescription=null!=(s=l.assignment)?s.caDescription:null,v.cbHideUntilDate=l.cbHideUntilDate,v.cbDeadlineDate=l.cbDeadlineDate,v.cbGracePeriodDate=l.cbGracePeriodDate,v.cbCompletionCriteria=l.cbCompletionCriteria,v.cbLateSubmissionPenalty=l.cbLateSubmissionPenalty,v.cbMaxPoints=l.cbMaxPoints,t.courseBlockOneToManyJoinEditHelper_0.onEditResult_trkh7z$(v),t.requireSavedStateHandle().set_umlfku$(Qd().SAVEDSTATE_KEY_ASSIGNMENT,null),nt}}}(this))),this.observeSavedStateResult_u0dr5v$(Qd().SAVEDSTATE_KEY_CONTENT,jt(di.Companion.serializer()),P(di),new bt(function(t){return function(e){var n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$;if(null!=(n=Un(e))){var E,y,b=n;if(null!=(i=t.courseBlockOneToManyJoinEditHelper_0.liveList.getValue())){var S;t:do{var v;for(v=i.iterator();v.hasNext();){var C,N=v.next();if(x(null!=(C=N.entry)?C.contentEntryUid:null,b.contentEntryUid)){S=N;break t}}S=null}while(0);E=S}else E=null;if(null!=(o=E))y=o;else{var T,L,z,w,R,A,I,U,D,P,M,k,j,G,q,F,B,W,H,V,K=new Kn,X=t;K.cbClazzUid=null!=(L=null!=(T=X.entity)?T.clazzUid:null)?L:O,K.cbEntityUid=b.contentEntryUid,K.cbTitle=b.title,K.cbType=104,K.cbDescription=b.description,K.cbIndex=null!=(w=null!=(z=X.courseBlockOneToManyJoinEditHelper_0.liveList.getValue())?z.size:null)?w:0,K.cbUid=null!=(A=null!=(R=b.block)?R.cbUid:null)?A:Dn(X.db).nextId_za3lpa$(124),K.cbHideUntilDate=null!=(U=null!=(I=b.block)?I.cbHideUntilDate:null)?U:O,K.cbDeadlineDate=null!=(P=null!=(D=b.block)?D.cbDeadlineDate:null)?P:In,K.cbGracePeriodDate=null!=(k=null!=(M=b.block)?M.cbGracePeriodDate:null)?k:In,K.cbLateSubmissionPenalty=null!=(G=null!=(j=b.block)?j.cbLateSubmissionPenalty:null)?G:0,K.cbCompletionCriteria=null!=(F=null!=(q=b.block)?q.cbCompletionCriteria:null)?F:0,K.cbMaxPoints=null!=(W=null!=(B=b.block)?B.cbMaxPoints:null)?W:10,K.cbMinPoints=null!=(V=null!=(H=b.block)?H.cbMinPoints:null)?V:0,K.entry=b,K.language=b.language,y=K}var J=y;return J.entry=b,J.language=b.language,J.cbTitle=b.title,J.cbDescription=b.description,J.cbHideUntilDate=null!=(s=null!=(r=b.block)?r.cbHideUntilDate:null)?s:O,J.cbDeadlineDate=null!=(c=null!=(a=b.block)?a.cbDeadlineDate:null)?c:In,J.cbGracePeriodDate=null!=(u=null!=(l=b.block)?l.cbGracePeriodDate:null)?u:In,J.cbLateSubmissionPenalty=null!=(d=null!=(h=b.block)?h.cbLateSubmissionPenalty:null)?d:0,J.cbCompletionCriteria=null!=(_=null!=(p=b.block)?p.cbCompletionCriteria:null)?_:0,J.cbMaxPoints=null!=(f=null!=(m=b.block)?m.cbMaxPoints:null)?f:10,J.cbMinPoints=null!=($=null!=(g=b.block)?g.cbMinPoints:null)?$:0,t.courseBlockOneToManyJoinEditHelper_0.onEditResult_trkh7z$(J),t.requireSavedStateHandle().set_umlfku$(Qd().SAVEDSTATE_KEY_CONTENT,null),nt}}}(this))),this.observeSavedStateResult_u0dr5v$(Qd().ARG_SAVEDSTATE_MODULE,jt(pi.Companion.serializer()),P(pi),new bt(function(t){return function(e){var n,i,o;if(null!=(n=Un(e))){var r,s,a=n;if(null!=(i=t.courseBlockOneToManyJoinEditHelper_0.liveList.getValue())){var c;t:do{var l;for(l=i.iterator();l.hasNext();){var u=l.next();if(x(u.cbUid,a.cbUid)){c=u;break t}}c=null}while(0);r=c}else r=null;if(null!=(o=r))s=o;else{var h,d,p=new Kn,_=t;p.cbClazzUid=a.cbClazzUid,p.cbEntityUid=a.cbUid,p.cbTitle=a.cbTitle,p.cbType=100,p.cbDescription=a.cbDescription,p.cbHideUntilDate=a.cbHideUntilDate,p.cbIndex=null!=(d=null!=(h=_.courseBlockOneToManyJoinEditHelper_0.liveList.getValue())?h.size:null)?d:0,p.cbUid=a.cbUid,s=p}var m=s;return m.cbTitle=a.cbTitle,m.cbDescription=a.cbDescription,m.cbHideUntilDate=a.cbHideUntilDate,t.courseBlockOneToManyJoinEditHelper_0.onEditResult_trkh7z$(m),t.requireSavedStateHandle().set_umlfku$(Qd().ARG_SAVEDSTATE_MODULE,null),nt}}}(this))),this.observeSavedStateResult_u0dr5v$(Qd().ARG_SAVEDSTATE_TEXT,jt(pi.Companion.serializer()),P(pi),new bt(function(t){return function(e){var n,i,o;if(null!=(n=Un(e))){var r,s,a=n;if(null!=(i=t.courseBlockOneToManyJoinEditHelper_0.liveList.getValue())){var c;t:do{var l;for(l=i.iterator();l.hasNext();){var u=l.next();if(x(u.cbUid,a.cbUid)){c=u;break t}}c=null}while(0);r=c}else r=null;if(null!=(o=r))s=o;else{var h,d,p=new Kn,_=t;p.cbClazzUid=a.cbClazzUid,p.cbEntityUid=a.cbUid,p.cbTitle=a.cbTitle,p.cbType=102,p.cbDescription=a.cbDescription,p.cbHideUntilDate=a.cbHideUntilDate,p.cbIndex=null!=(d=null!=(h=_.courseBlockOneToManyJoinEditHelper_0.liveList.getValue())?h.size:null)?d:0,p.cbUid=a.cbUid,s=p}var m=s;return m.cbTitle=a.cbTitle,m.cbDescription=a.cbDescription,m.cbHideUntilDate=a.cbHideUntilDate,t.courseBlockOneToManyJoinEditHelper_0.onEditResult_trkh7z$(m),t.requireSavedStateHandle().set_umlfku$(Qd().ARG_SAVEDSTATE_TEXT,null),nt}}}(this))),this.observeSavedStateResult_u0dr5v$(Qd().SAVEDSTATE_KEY_DISCUSSION,jt(Kn.Companion.serializer()),P(Kn),new bt(function(t){return function(e){var n,i,o,r,s;if(null!=(n=Un(e))){var a,c,l=n;if(null!=(i=t.courseBlockOneToManyJoinEditHelper_0.liveList.getValue())){var u;t:do{var h;for(h=i.iterator();h.hasNext();){var d,p,_=h.next();if(x(null!=(d=_.courseDiscussion)?d.courseDiscussionUid:null,null!=(p=l.courseDiscussion)?p.courseDiscussionUid:null)){u=_;break t}}u=null}while(0);a=u}else a=null;if(null!=(o=a))c=o;else{var m,f,g,$,E,y,b=new Kn,S=t;b.cbClazzUid=l.cbClazzUid,b.cbEntityUid=null!=(f=null!=(m=l.courseDiscussion)?m.courseDiscussionUid:null)?f:O,b.cbTitle=null!=(g=l.courseDiscussion)?g.courseDiscussionTitle:null,b.cbType=105,b.cbDescription=null!=($=l.courseDiscussion)?$.courseDiscussionDesc:null,b.cbIndex=null!=(y=null!=(E=S.courseBlockOneToManyJoinEditHelper_0.liveList.getValue())?E.size:null)?y:0,b.cbUid=l.cbUid,b.cbHideUntilDate=l.cbHideUntilDate,b.cbDeadlineDate=l.cbDeadlineDate,b.cbGracePeriodDate=l.cbGracePeriodDate,b.cbLateSubmissionPenalty=l.cbLateSubmissionPenalty,b.cbCompletionCriteria=l.cbCompletionCriteria,b.cbMaxPoints=l.cbMaxPoints,b.courseDiscussion=l.courseDiscussion,b.topics=l.topics,b.topicUidsToRemove=l.topicUidsToRemove,c=b}var v=c;return v.courseDiscussion=l.courseDiscussion,v.cbTitle=null!=(r=l.courseDiscussion)?r.courseDiscussionTitle:null,v.cbDescription=null!=(s=l.courseDiscussion)?s.courseDiscussionDesc:null,v.cbHideUntilDate=l.cbHideUntilDate,v.cbDeadlineDate=l.cbDeadlineDate,v.cbGracePeriodDate=l.cbGracePeriodDate,v.cbCompletionCriteria=l.cbCompletionCriteria,v.cbLateSubmissionPenalty=l.cbLateSubmissionPenalty,v.cbMaxPoints=l.cbMaxPoints,v.topics=l.topics,v.topicUidsToRemove=l.topicUidsToRemove,t.courseBlockOneToManyJoinEditHelper_0.onEditResult_trkh7z$(v),t.requireSavedStateHandle().set_umlfku$(Qd().SAVEDSTATE_KEY_DISCUSSION,null),nt}}}(this)))},Td.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Td.prototype=Object.create(L.prototype),Td.prototype.constructor=Td,Td.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e=this.local$it.clazzDao;if(null!=(t=x(this.local$closure$clazzUid,O)?null:e)){if(this.state_0=2,this.result_0=t.findByUidWithHolidayCalendarAsync_s8cxhz$(this.local$closure$clazzUid,this),this.result_0===T)return T;continue}this.result_0=null,this.state_0=3;continue;case 1:throw this.exception_0;case 2:this.state_0=3;continue;case 3:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zd.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},zd.prototype=Object.create(L.prototype),zd.prototype.constructor=zd,zd.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e;if(null!=(e=null!=(t=x(this.local$closure$clazzUid,O)?null:this.local$dbToUse)?t.coursePictureDao:null)){if(this.state_0=2,this.result_0=e.findByClazzUidAsync_s8cxhz$(this.local$closure$clazzUid,this),this.result_0===T)return T;continue}this.result_0=null,this.state_0=3;continue;case 1:throw this.exception_0;case 2:this.state_0=3;continue;case 3:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Od.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Od.prototype=Object.create(L.prototype),Od.prototype.constructor=Od,Od.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e=this.local$it.scheduleDao;if(null!=(t=x(this.local$closure$clazzUid,O)?null:e)){if(this.state_0=2,this.result_0=t.findAllSchedulesByClazzUidAsync_s8cxhz$(this.local$closure$clazzUid,this),this.result_0===T)return T;continue}this.result_0=null,this.state_0=3;continue;case 1:throw this.exception_0;case 2:this.state_0=3;continue;case 3:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ad.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Ad.prototype=Object.create(L.prototype),Ad.prototype.constructor=Ad,Ad.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e=this.local$it.courseBlockDao;if(null!=(t=x(this.local$closure$clazzUid,O)?null:e)){if(this.state_0=2,this.result_0=t.findAllCourseBlockByClazzUidAsync_s8cxhz$(this.local$closure$clazzUid,this),this.result_0===T)return T;continue}this.result_0=null,this.state_0=3;continue;case 1:throw this.exception_0;case 2:this.state_0=3;continue;case 3:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Id.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Id.prototype=Object.create(L.prototype),Id.prototype.constructor=Id,Id.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$it.discussionTopicDao.getTopicsByClazz_s8cxhz$(this.local$closure$clazzUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Dd.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Dd.prototype=Object.create(L.prototype),Dd.prototype.constructor=Dd,Dd.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n,i,o,r;if(this.local$clazzUid=null!=(e=null!=(t=this.$this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(t):null)?e:O,this.state_0=2,this.result_0=Rt(this.local$db,Ot,Ld(this.local$clazzUid),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(null!=(n=this.result_0)){this.local$tmp$_6=n,this.state_0=7;continue}var s,a,c,l;this.local$$receiver=new ei,this.local$$receiver.clazzUid=Dn(this.local$db).nextId_za3lpa$(6),this.local$$receiver.clazzName="",this.local$$receiver.isClazzActive=!0,this.local$$receiver.clazzStartTime=et(),this.local$$receiver.clazzTimeZone=_i(),this.local$$receiver.clazzSchoolUid=null!=(a=null!=(s=this.$this.arguments.get_11rb$(zG().ARG_SCHOOL_UID))?de(s):null)?a:O;var u=this.local$db.schoolDao;if(null!=(c=x(this.local$$receiver.clazzSchoolUid,O)?null:u)){if(this.state_0=3,this.result_0=c.findByUidAsync_s8cxhz$(this.local$$receiver.clazzSchoolUid,this),this.result_0===T)return T;continue}this.result_0=null,this.state_0=4;continue;case 3:this.state_0=4;continue;case 4:this.local$$receiver.school=this.result_0;var h=this.local$db.courseTerminologyDao;if(null!=(l=x(this.local$$receiver.clazzTerminologyUid,O)?null:h)){if(this.state_0=5,this.result_0=l.findByUidAsync_s8cxhz$(this.local$$receiver.clazzTerminologyUid,this),this.result_0===T)return T;continue}this.result_0=null,this.state_0=6;continue;case 5:this.state_0=6;continue;case 6:this.local$$receiver.terminology=this.result_0,this.local$tmp$_6=this.local$$receiver,this.state_0=7;continue;case 7:if(this.local$clazz=this.local$tmp$_6,this.local$tmp$_3=this.$this.view,this.state_0=8,this.result_0=mi(this.local$db,Ot,wd(this.local$clazzUid),this),this.result_0===T)return T;continue;case 8:if(this.local$tmp$_3.coursePicture=null!=(i=this.result_0)?i:new fi,this.state_0=9,this.result_0=Rt(this.local$db,Ot,Rd(this.local$clazzUid),this),this.result_0===T)return T;continue;case 9:var d=null!=(o=this.result_0)?o:fe();if(this.$this.scheduleOneToManyJoinEditHelper_0.liveList.postValue_11rb$(d),this.state_0=10,this.result_0=Rt(this.local$db,Ot,xd(this.local$clazzUid),this),this.result_0===T)return T;continue;case 10:if(this.local$courseBlocksDb=null!=(r=this.result_0)?r:fe(),this.state_0=11,this.result_0=Rt(this.local$db,Ot,Ud(this.local$clazzUid),this),this.result_0===T)return T;continue;case 11:this.$this.topics=this.result_0;var p,_=st(rt(this.local$courseBlocksDb,10));for(p=this.local$courseBlocksDb.iterator();p.hasNext();){var m=p.next();_.add_11rb$($d(m,this.$this.topics))}var f=_;return this.$this.courseBlockOneToManyJoinEditHelper_0.liveList.postValue_11rb$(f),this.local$clazz;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ed.prototype.onLoadEntityFromDb_7hogkd$=function(t,e,n){var i=new Dd(this,t,e);return n?i:i.doResume(null)},Ed.prototype.onLoadFromJson_y0zsll$=function(t){var n,i;fz.prototype.onLoadFromJson_y0zsll$.call(this,t);var o=t.get_11rb$(oG().ARG_ENTITY_JSON);if(null!=o){var r,s=this.di,a=ei.Companion.serializer();n=Et(s).directDI.Instance_ohrpre$(e.isType(r=F(M(P(Pt),[],!1)),B)?r:W(),null).decodeFromString_awif5v$(a,o)}else n=new ei;var c=n;return this.scheduleOneToManyJoinEditHelper_0.onLoadFromJsonSavedState_alv73c$(t),this.courseBlockOneToManyJoinEditHelper_0.onLoadFromJsonSavedState_alv73c$(t),this.view.coursePicture=null!=(i=t.get_11rb$(Qd().SAVEDSTATE_KEY_COURSEPICTURE))?this.json.decodeFromString_awif5v$(fi.Companion.serializer(),i):null,c},Ed.prototype.onSaveInstanceState_gtra9a$=function(t){var e;if(fz.prototype.onSaveInstanceState_gtra9a$.call(this,t),null!=(e=this.view.entity)){var n=e;xA(t,Qd().SAVEDSTATE_KEY_COURSEPICTURE,this.json,fi.Companion.serializer(),this.view.coursePicture),xA(t,oG().ARG_ENTITY_JSON,this.json,ei.Companion.serializer(),n)}},Ed.prototype.handleClickTimezone=function(){var t;this.navigateForResult_r13zgt$(new Iw(this,null!=(t=this.entity)?t.clazzTimeZone:null,kj().VIEW_NAME,ne,kt(Mt),oz().RESULT_TIMEZONE_KEY))},Ed.prototype.handleHolidayCalendarClicked=function(){this.navigateForResult_r13zgt$(new Iw(this,null,eP().VIEW_NAME,P(ui),ui.Companion.serializer(),Qd().SAVEDSTATE_KEY_HOLIDAYCALENDAR))},Ed.prototype.handleClickSchool=function(){var t=jn([E(zG().ARG_FILTER_BY_PERMISSION,ti.toString())]);this.navigateForResult_r13zgt$(new Iw(this,null,$k().VIEW_NAME,P(li),li.Companion.serializer(),Qd().SAVEDSTATE_KEY_SCHOOL,void 0,t))},Ed.prototype.handleTerminologyClicked=function(){this.navigateForResult_r13zgt$(new Iw(this,null,$D().VIEW_NAME,P(hi),hi.Companion.serializer(),Qd().SAVEDSTATE_KEY_TERMINOLOGY))},Ed.prototype.handleClickFeatures=function(){var t,e;this.navigateForResult_r13zgt$(new Iw(this,new cR(null!=(e=null!=(t=this.entity)?t.clazzFeatures:null)?e:O),nI().VIEW_NAME,P(cR),hR().serializer(),Qd().SAVEDSTATE_KEY_FEATURES))},Pd.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Pd.prototype=Object.create(L.prototype),Pd.prototype.constructor=Pd,Pd.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=gi(this.local$closure$txDb.scheduleDao,this.local$it,et(),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jd.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},jd.prototype=Object.create(L.prototype),jd.prototype.constructor=jd,jd.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e;if(x(null!=(e=null!=(t=this.local$this$ClazzEdit2Presenter.arguments.get_11rb$(zG().ARG_ENTITY_UID))?Xn(t):null)?e:O,O)){if(this.state_0=3,this.result_0=this.local$this$ClazzEdit2Presenter.db.courseTerminologyDao.findByUidAsync_s8cxhz$(this.local$closure$entity.clazzTerminologyUid,this),this.result_0===T)return T;continue}if(this.state_0=2,this.result_0=this.local$txDb.clazzDao.updateAsync_yczdf2$(this.local$closure$entity,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:this.state_0=5;continue;case 3:var n=fA(this.result_0,this.local$this$ClazzEdit2Presenter.json,this.local$this$ClazzEdit2Presenter.systemImpl,this.local$this$ClazzEdit2Presenter.context);if(this.state_0=4,this.result_0=ox(this.local$txDb,this.local$closure$entity,this.local$this$ClazzEdit2Presenter.systemImpl,n,this.local$this$ClazzEdit2Presenter.context,this),this.result_0===T)return T;continue;case 4:this.state_0=5;continue;case 5:if(this.state_0=6,this.result_0=this.local$this$ClazzEdit2Presenter.scheduleOneToManyJoinEditHelper_0.commitToDatabase_e9yqve$(this.local$txDb.scheduleDao,Md(this.local$txDb),kd(this.local$closure$entity),this),this.result_0===T)return T;continue;case 6:var i,o=this.local$this$ClazzEdit2Presenter.courseBlockOneToManyJoinEditHelper_0.entitiesToInsert,r=ot();for(i=o.iterator();i.hasNext();){var s;null!=(s=i.next().assignment)&&r.add_11rb$(s)}if(this.local$assignmentList=r,this.state_0=7,this.result_0=this.local$txDb.clazzAssignmentDao.insertListAsync_4ezy5m$(this.local$assignmentList,this),this.result_0===T)return T;continue;case 7:var a,c=this.local$txDb.clazzAssignmentDao,l=this.local$this$ClazzEdit2Presenter.courseBlockOneToManyJoinEditHelper_0.entitiesToUpdate,u=ot();for(a=l.iterator();a.hasNext();){var h;null!=(h=a.next().assignment)&&u.add_11rb$(h)}if(this.state_0=8,this.result_0=c.updateListAsync_4ezy5m$(u,this),this.result_0===T)return T;continue;case 8:if(this.state_0=9,this.result_0=$i(this.local$txDb.clazzAssignmentDao,this.local$this$ClazzEdit2Presenter.courseBlockOneToManyJoinEditHelper_0.primaryKeysToDeactivate,et(),this),this.result_0===T)return T;continue;case 9:this.local$tmp$=this.local$assignmentList.iterator(),this.state_0=10;continue;case 10:if(!this.local$tmp$.hasNext()){this.state_0=13;continue}this.local$element=this.local$tmp$.next();var d=this.local$this$ClazzEdit2Presenter,p=XR().joinPaths_vqirvp$([d.accountManager.activeAccount.endpointUrl,"/clazzAssignment/"+this.local$element.caUid.toString()]),_=Ei();if(_.objectId=p,_.objectType="Activity",this.local$xobject=_,this.state_0=11,this.result_0=this.local$txDb.xObjectDao.insertAsync(this.local$xobject,this),this.result_0===T)return T;continue;case 11:if(this.local$xobject.xObjectUid=this.result_0,this.local$element.caXObjectUid=this.local$xobject.xObjectUid,this.state_0=12,this.result_0=this.local$txDb.clazzAssignmentDao.updateAsync_etrmwv$(this.local$element,this),this.result_0===T)return T;continue;case 12:this.state_0=10;continue;case 13:var m,f=this.local$txDb.courseDiscussionDao,g=this.local$this$ClazzEdit2Presenter.courseBlockOneToManyJoinEditHelper_0.entitiesToInsert,$=ot();for(m=g.iterator();m.hasNext();){var E;null!=(E=m.next().courseDiscussion)&&$.add_11rb$(E)}var y,b=this.local$this$ClazzEdit2Presenter.courseBlockOneToManyJoinEditHelper_0.entitiesToUpdate,S=ot();for(y=b.iterator();y.hasNext();){var v;null!=(v=y.next().courseDiscussion)&&S.add_11rb$(v)}if(this.state_0=14,this.result_0=f.replaceListAsync_4f5xb2$(ri($,S),this),this.result_0===T)return T;continue;case 14:if(this.state_0=15,this.result_0=yi(this.local$txDb.courseDiscussionDao,this.local$this$ClazzEdit2Presenter.courseBlockOneToManyJoinEditHelper_0.primaryKeysToDeactivate,et(),this),this.result_0===T)return T;continue;case 15:var C,N=this.local$closure$courseBlockList,L=ot();for(C=N.iterator();C.hasNext();){var z;null!=(z=C.next().topics)&&L.add_11rb$(z)}var w=yt(L);if(this.state_0=16,this.result_0=this.local$txDb.discussionTopicDao.replaceListAsync_twfw7k$(w,this),this.result_0===T)return T;continue;case 16:var R,A=this.local$closure$courseBlockList,I=ot();for(R=A.iterator();R.hasNext();){var U;null!=(U=R.next().topicUidsToRemove)&&I.add_11rb$(U)}var D=yt(I);if(this.state_0=17,this.result_0=bi(this.local$txDb.discussionTopicDao,D,et(),this),this.result_0===T)return T;continue;case 17:if(this.state_0=18,this.result_0=this.local$txDb.courseBlockDao.replaceListAsync_u9gaf9$(this.local$closure$courseBlockList,this),this.result_0===T)return T;continue;case 18:if(this.state_0=19,this.result_0=Si(this.local$txDb.courseBlockDao,this.local$this$ClazzEdit2Presenter.courseBlockOneToManyJoinEditHelper_0.primaryKeysToDeactivate,et(),this),this.result_0===T)return T;continue;case 19:var P=this.local$this$ClazzEdit2Presenter.view.coursePicture;if(null!=P){if(P.coursePictureClazzUid=this.local$closure$entity.clazzUid,x(P.coursePictureUid,O)){if(this.state_0=21,this.result_0=this.local$txDb.coursePictureDao.insertAsync(P,this),this.result_0===T)return T;continue}if(this.state_0=20,this.result_0=this.local$txDb.coursePictureDao.updateAsync_xhijq5$(P,this),this.result_0===T)return T;continue}this.state_0=23;continue;case 20:case 21:return nt;case 22:this.state_0=23;continue;case 23:return nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}};var qd=new N("clazzLogCreatorManager");function Fd(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$entity=t,this.local$this$ClazzEdit2Presenter=e}function Bd(){Yd=this,this.ARG_SAVEDSTATE_SCHEDULES="schedules",this.ARG_SAVEDSTATE_BLOCK="courseBlocks",this.ARG_SAVEDSTATE_MODULE="courseModule",this.ARG_SAVEDSTATE_TEXT="courseText",this.SAVEDSTATE_KEY_SCHOOL="School",this.SAVEDSTATE_KEY_ASSIGNMENT="Assignment",this.SAVEDSTATE_KEY_CONTENT="courseContent",this.SAVEDSTATE_KEY_HOLIDAYCALENDAR="ClazzHolidayCalendar",this.SAVEDSTATE_KEY_FEATURES="ClazzFeatures",this.SAVEDSTATE_KEY_TERMINOLOGY="ClazzTerminology",this.SAVEDSTATE_KEY_DISCUSSION="CourseDiscussion",this.SAVEDSTATE_KEY_COURSEPICTURE="CoursePicture"}Fd.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Fd.prototype=Object.create(L.prototype),Fd.prototype.constructor=Fd,Fd.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n,i;if(x(this.local$closure$entity.clazzStartTime,O))return this.local$this$ClazzEdit2Presenter.view.clazzStartDateError=this.local$this$ClazzEdit2Presenter.systemImpl.getString(2126,this.local$this$ClazzEdit2Presenter.context),void(this.local$this$ClazzEdit2Presenter.view.fieldsEnabled=!0);this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(this.local$closure$entity.clazzEndTime.compareTo_11rb$(this.local$closure$entity.clazzStartTime)<=0)return this.local$this$ClazzEdit2Presenter.view.clazzEndDateError=this.local$this$ClazzEdit2Presenter.systemImpl.getString(2675,this.local$this$ClazzEdit2Presenter.context),void(this.local$this$ClazzEdit2Presenter.view.fieldsEnabled=!0);this.state_0=3;continue;case 3:this.local$this$ClazzEdit2Presenter.view.loading=!0;var o,r,s=this.local$closure$entity;o=null!=(t=this.local$closure$entity.clazzName)?Oi(e.isCharSequence(r=t)?r:W()).toString():null,s.clazzName=o;var a,c,l,u=this.local$closure$entity,h=D.Companion.invoke_s8cxhz$(this.local$closure$entity.clazzStartTime),d=this.local$closure$entity,p=yO(h,null!=(l=null!=(c=d.clazzTimeZone)?c:null!=(a=d.school)?a.schoolTimeZone:null)?l:"UTC"),_=p.hours,m=Yn.Companion.fromHours_14dthe$(_),f=p.minutes,g=m.plus_fv8bff$(Yn.Companion.fromMinutes_14dthe$(f)),$=p.seconds,E=g.plus_fv8bff$(Yn.Companion.fromSeconds_14dthe$($)),y=p.milliseconds;if(u.clazzStartTime=p.minus_fv8bff$(E.plus_fv8bff$(Yn.Companion.fromMilliseconds_14dthe$(y))).utc.unixMillisLong,!x(this.local$closure$entity.clazzEndTime,In)){var b,S,v,C=this.local$closure$entity,N=D.Companion.invoke_s8cxhz$(this.local$closure$entity.clazzEndTime),L=this.local$closure$entity,z=yO(N,null!=(v=null!=(S=L.clazzTimeZone)?S:null!=(b=L.school)?b.schoolTimeZone:null)?v:"UTC"),w=z.hours,R=Yn.Companion.fromHours_14dthe$(w),A=z.minutes,I=R.plus_fv8bff$(Yn.Companion.fromMinutes_14dthe$(A)),U=z.seconds,k=I.plus_fv8bff$(Yn.Companion.fromSeconds_14dthe$(U)),j=z.milliseconds;C.clazzEndTime=z.minus_fv8bff$(k.plus_fv8bff$(Yn.Companion.fromMilliseconds_14dthe$(j))).plus_fv8bff$(Yn.Companion.fromHours_14dthe$(24)).minus_fv8bff$(Yn.Companion.fromMilliseconds_14dthe$(1)).utc.unixMillisLong}var G,q,V=null!=(i=null!=(n=this.local$this$ClazzEdit2Presenter.courseBlockOneToManyJoinEditHelper_0.liveList.getValue())?qt(n):null)?i:fe(),K={v:null},X=0;for(G=V.iterator();G.hasNext();){var J,Y,Q=G.next();Q.cbIndex=Ri((X=(q=X)+1|0,q)),100===Q.cbType?K.v=Q:0!==Q.cbIndentLevel&&(Q.cbModuleParentBlockUid=null!=(Y=null!=(J=K.v)?J.cbUid:null)?Y:O)}if(this.local$this$ClazzEdit2Presenter.courseBlockOneToManyJoinEditHelper_0.liveList.postValue_11rb$(V),this.state_0=4,this.result_0=ut(this.local$this$ClazzEdit2Presenter.repo,void 0,Gd(this.local$this$ClazzEdit2Presenter,this.local$closure$entity,V),this),this.result_0===T)return T;continue;case 4:var Z,tt,et,it,ot=D.Companion.now(),rt=this.local$closure$entity,st=yO(ot,null!=(et=null!=(tt=rt.clazzTimeZone)?tt:null!=(Z=rt.school)?Z.schoolTimeZone:null)?et:"UTC"),at=st.hours,ct=Yn.Companion.fromHours_14dthe$(at),lt=st.minutes,ht=ct.plus_fv8bff$(Yn.Companion.fromMinutes_14dthe$(lt)),dt=st.seconds,pt=ht.plus_fv8bff$(Yn.Companion.fromSeconds_14dthe$(dt)),_t=st.milliseconds,mt=st.minus_fv8bff$(pt.plus_fv8bff$(Yn.Companion.fromMilliseconds_14dthe$(_t))),ft=H(this.local$this$ClazzEdit2Presenter.di,e.isType(it=F(M(P(fO),[],!1)),B)?it:W(),null).provideDelegate_tpuvb9$(this.$this,qd).value,gt=this.local$closure$entity.clazzUid,$t=this.local$this$ClazzEdit2Presenter.accountManager.activeAccount.endpointUrl,Et=mt.utc.unixMillisLong,yt=mt.hours,bt=Yn.Companion.fromHours_14dthe$(yt),St=mt.minutes,vt=bt.plus_fv8bff$(Yn.Companion.fromMinutes_14dthe$(St)),Ct=mt.seconds,Nt=vt.plus_fv8bff$(Yn.Companion.fromSeconds_14dthe$(Ct)),Tt=mt.milliseconds;return ft.requestClazzLogCreation_icxydn$(gt,$t,Et,mt.minus_fv8bff$(Nt.plus_fv8bff$(Yn.Companion.fromMilliseconds_14dthe$(Tt))).plus_fv8bff$(Yn.Companion.fromHours_14dthe$(24)).minus_fv8bff$(Yn.Companion.fromMilliseconds_14dthe$(1)).utc.unixMillisLong),this.local$this$ClazzEdit2Presenter.view.loading=!1,this.local$this$ClazzEdit2Presenter.onFinish_xcg1s8$(MI().VIEW_NAME,this.local$closure$entity.clazzUid,this.local$closure$entity,ei.Companion.serializer()),nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ed.prototype.handleClickSave_nqi3in$=function(t){var e,n;this.view.fieldsEnabled&&(this.view.fieldsEnabled=!1,it(this.presenterScope,void 0,void 0,(e=t,n=this,function(t,i,o){var r=new Fd(e,n,t,this,i);return o?r:r.doResume(null)})))},Ed.prototype.handleClickAddAssignment=function(){var t,e,n=mt(),i=zG().ARG_CLAZZUID,o=He(null!=(t=this.entity)?t.clazzUid:null);if(n.put_xwzc9p$(i,o),null!=this.entity){var r=OI().TERMINOLOGY_ID,s=He(null!=(e=this.entity)?e.clazzTerminologyUid:null);n.put_xwzc9p$(r,s)}this.navigateForResult_r13zgt$(new Iw(this,null,OI().VIEW_NAME,P(Kn),Kn.Companion.serializer(),Qd().SAVEDSTATE_KEY_ASSIGNMENT,void 0,n))},Ed.prototype.handleClickAddContent=function(){var t,e=jn([E(BU().ARG_SELECT_FOLDER_VISIBLE,(!1).toString()),E(BU().ARG_USE_CHIPS,(!0).toString()),E(zG().ARG_CLAZZUID,He(null!=(t=this.entity)?t.clazzUid:null)),E(DU().BLOCK_REQUIRED,(!0).toString())]);this.navigateForResult_r13zgt$(new Iw(this,null,BU().VIEW_NAME,P(di),di.Companion.serializer(),Qd().SAVEDSTATE_KEY_CONTENT,void 0,e))},Ed.prototype.handleClickAddModule=function(){var t,e=mt(),n=zG().ARG_CLAZZUID,i=He(null!=(t=this.entity)?t.clazzUid:null);e.put_xwzc9p$(n,i),this.navigateForResult_r13zgt$(new Iw(this,null,HP().VIEW_NAME,P(pi),pi.Companion.serializer(),Qd().ARG_SAVEDSTATE_MODULE,void 0,e))},Ed.prototype.handleClickAddDiscussion=function(){var t,e=mt(),n=zG().ARG_CLAZZUID,i=He(null!=(t=this.entity)?t.clazzUid:null);e.put_xwzc9p$(n,i),this.navigateForResult_r13zgt$(new Iw(this,null,QU().VIEW_NAME,P(vi),vi.Companion.serializer(),Qd().SAVEDSTATE_KEY_DISCUSSION,void 0,e))},Ed.prototype.handleClickAddText=function(){var t,e=mt(),n=zG().ARG_CLAZZUID,i=He(null!=(t=this.entity)?t.clazzUid:null);e.put_xwzc9p$(n,i),this.navigateForResult_r13zgt$(new Iw(this,null,xj().VIEW_NAME,P(pi),pi.Companion.serializer(),Qd().ARG_SAVEDSTATE_TEXT,void 0,e))},Ed.prototype.onClickNew=function(){},Ed.prototype.onClickEdit_11rb$=function(t){var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f;switch(t.cbType){case 103:var g=mt(),$=zG().ARG_CLAZZUID,y=(null!=(o=null!=(i=null!=(e=t.assignment)?e.caClazzUid:null)?i:null!=(n=this.entity)?n.clazzUid:null)?o:O).toString();g.put_xwzc9p$($,y);var b=zG().ARG_ENTITY_UID,S=(null!=(s=null!=(r=t.assignment)?r.caUid:null)?s:O).toString();if(g.put_xwzc9p$(b,S),null!=this.entity){var v=OI().TERMINOLOGY_ID,C=He(null!=(a=this.entity)?a.clazzTerminologyUid:null);g.put_xwzc9p$(v,C)}f=new Iw(this,t,OI().VIEW_NAME,P(Kn),Kn.Companion.serializer(),Qd().SAVEDSTATE_KEY_ASSIGNMENT,void 0,g);break;case 104:if(null==(c=t.entry))return;var N=c,T=new di;T.contentEntryUid=N.contentEntryUid,T.title=N.title,T.description=N.description,T.author=N.author,T.publisher=N.publisher,T.licenseType=N.licenseType,T.licenseName=N.licenseName,T.licenseUrl=N.licenseUrl,T.sourceUrl=N.sourceUrl,T.lastModified=N.lastModified,T.primaryLanguageUid=N.primaryLanguageUid,T.languageVariantUid=N.languageVariantUid,T.contentFlags=N.contentFlags,T.leaf=N.leaf,T.publik=N.publik,T.ceInactive=N.ceInactive,T.contentTypeFlag=N.contentTypeFlag,T.contentOwner=N.contentOwner,T.contentEntryLocalChangeSeqNum=N.contentEntryLocalChangeSeqNum,T.contentEntryMasterChangeSeqNum=N.contentEntryMasterChangeSeqNum,T.contentEntryLastChangedBy=N.contentEntryLastChangedBy,T.contentEntryLct=N.contentEntryLct,T.block=t,T.language=t.language,f=new Iw(this,T,DU().VIEW_NAME,P(di),di.Companion.serializer(),Qd().SAVEDSTATE_KEY_CONTENT,void 0,jn([E(zG().ARG_ENTITY_UID,He(null!=(l=t.entry)?l.contentEntryUid:null)),E(zG().ARG_LEAF,(!0).toString()),E(zG().ARG_CLAZZUID,t.cbClazzUid.toString()),E(DU().BLOCK_REQUIRED,(!0).toString())]));break;case 100:var L=mt(),z=zG().ARG_CLAZZUID,w=t.cbClazzUid.toString();L.put_xwzc9p$(z,w);var R=zG().ARG_ENTITY_UID,A=t.cbUid.toString();L.put_xwzc9p$(R,A),f=new Iw(this,t,HP().VIEW_NAME,P(pi),pi.Companion.serializer(),Qd().ARG_SAVEDSTATE_MODULE,void 0,L);break;case 102:var x=mt(),I=zG().ARG_CLAZZUID,U=t.cbClazzUid.toString();x.put_xwzc9p$(I,U);var D=zG().ARG_ENTITY_UID,M=t.cbUid.toString();x.put_xwzc9p$(D,M),f=new Iw(this,t,xj().VIEW_NAME,P(pi),pi.Companion.serializer(),Qd().ARG_SAVEDSTATE_TEXT,void 0,x);break;case 105:var k=mt(),j=zG().ARG_CLAZZUID,G=(null!=(p=null!=(d=null!=(u=t.courseDiscussion)?u.courseDiscussionClazzUid:null)?d:null!=(h=this.entity)?h.clazzUid:null)?p:O).toString();k.put_xwzc9p$(j,G);var q=zG().ARG_ENTITY_UID,F=(null!=(m=null!=(_=t.courseDiscussion)?_.courseDiscussionUid:null)?m:O).toString();k.put_xwzc9p$(q,F),f=new Iw(this,t,QU().VIEW_NAME,P(Kn),Kn.Companion.serializer(),Qd().SAVEDSTATE_KEY_DISCUSSION,void 0,k);break;default:return}var B=f;this.navigateForResult_r13zgt$(B)},Ed.prototype.onClickDelete_11rb$=function(t){this.courseBlockOneToManyJoinEditHelper_0.onDeactivateEntity_trkh7z$(t)},Ed.prototype.onClickIndent_11rb$=function(t){var e;if(x(t.cbModuleParentBlockUid,O))for(var n=null!=(e=this.courseBlockOneToManyJoinEditHelper_0.liveList.getValue())?e:fe(),i=n.indexOf_11rb$(t);i>=0;i--)if(100===n.get_za3lpa$(i).cbType){t.cbModuleParentBlockUid=n.get_za3lpa$(i).cbUid;break}t.cbIndentLevel=t.cbIndentLevel+1|0,this.courseBlockOneToManyJoinEditHelper_0.onEditResult_trkh7z$(t)},Ed.prototype.onClickUnIndent_11rb$=function(t){var e,n,i,o,r=null!=(n=null!=(e=this.courseBlockOneToManyJoinEditHelper_0.liveList.getValue())?En(e):null)?n:ot();t:do{var s;for(s=r.iterator();s.hasNext();){var a=s.next();if(x(a.cbUid,t.cbUid)){o=a;break t}}o=null}while(0);if(null!=(i=o)){var c=i;c.cbIndentLevel=c.cbIndentLevel-1|0,0===c.cbIndentLevel&&(c.cbModuleParentBlockUid=O),r.set_wxm5ur$(c.cbIndex,c),this.courseBlockOneToManyJoinEditHelper_0.liveList.postValue_11rb$(r),this.view.courseBlocks=this.courseBlockOneToManyJoinEditHelper_0.liveList}},Ed.prototype.onClickHide_11rb$=function(t){var e,n,i;if(null!=(n=null!=(e=this.courseBlockOneToManyJoinEditHelper_0.liveList.getValue())?En(e):null)){var o,r=n;t:do{var s;for(s=r.iterator();s.hasNext();){var a=s.next();if(x(a.cbUid,t.cbUid)){o=a;break t}}o=null}while(0);if(null!=(i=o)){var c,l=i;if(l.cbHidden=!l.cbHidden,r.set_wxm5ur$(l.cbIndex,l),100===l.cbType)for(c=r.iterator();c.hasNext();){var u,h=c.next();null!=(u=x(h.cbModuleParentBlockUid,l.cbUid)?h:null)&&(u.cbHidden=l.cbHidden)}this.courseBlockOneToManyJoinEditHelper_0.liveList.postValue_11rb$(r)}}},Ed.prototype.onItemMove_vux9f0$=function(t,e){var n,i,o,r,s=null!=(i=null!=(n=this.courseBlockOneToManyJoinEditHelper_0.liveList.getValue())?En(n):null)?i:ot(),a=s.get_za3lpa$(t),c=s.get_za3lpa$(e),l=Ci(s,e+1|0),u=!x(c.cbModuleParentBlockUid,O),h=t0)return void(this.local$this$ClazzEnrolmentEditPresenter.view.startDateErrorWithDate=new Lt(this.local$this$ClazzEnrolmentEditPresenter.systemImpl.getString(2388,this.local$this$ClazzEnrolmentEditPresenter.context),O));this.state_0=6;continue;case 6:if(this.state_0=7,this.result_0=this.local$this$ClazzEnrolmentEditPresenter.repo.clazzEnrolmentDao.findMaxEndDateForEnrolment_b9bd0d$(this.local$this$ClazzEnrolmentEditPresenter.selectedClazz,this.local$this$ClazzEnrolmentEditPresenter.selectedPerson,this.local$closure$entity.clazzEnrolmentUid,this),this.result_0===T)return T;continue;case 7:var i=this.result_0;if(!x(i,O)&&!x(i,In)&&this.local$closure$entity.clazzEnrolmentDateJoined.compareTo_11rb$(i)<0)return void(this.local$this$ClazzEnrolmentEditPresenter.view.startDateErrorWithDate=new Lt(this.local$this$ClazzEnrolmentEditPresenter.systemImpl.getString(2389,this.local$this$ClazzEnrolmentEditPresenter.context),i));this.state_0=8;continue;case 8:if(this.local$this$ClazzEnrolmentEditPresenter.view.startDateErrorWithDate=null,this.local$this$ClazzEnrolmentEditPresenter.view.endDateError=null,x(this.local$closure$entity.clazzEnrolmentUid,O)){if(this.state_0=10,this.result_0=dx(this.local$this$ClazzEnrolmentEditPresenter.repo,this.local$closure$entity,void 0,this),this.result_0===T)return T;continue}if(this.state_0=9,this.result_0=this.local$this$ClazzEnrolmentEditPresenter.repo.clazzEnrolmentDao.updateAsync_95p8s2$(this.local$closure$entity,this),this.result_0===T)return T;continue;case 9:case 10:this.state_0=11;continue;case 11:var o,r=this.local$this$ClazzEnrolmentEditPresenter,s=this.local$this$ClazzEnrolmentEditPresenter.di,a=jt(xi.Companion.serializer()),c=$e(this.local$closure$entity),l=Et(s).directDI.Instance_ohrpre$(e.isType(o=F(M(P(Pt),[],!1)),B)?o:W(),null);return r.finishWithResult_61zpoe$(l.encodeToString_tf03ej$(a,c)),nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ep.prototype.handleClickSave_nqi3in$=function(t){var e,n;it(this.presenterScope,void 0,void 0,(e=t,n=this,function(t,i,o){var r=new yp(e,n,t,this,i);return o?r:r.doResume(null)}))},ep.prototype.handleReasonLeavingClicked=function(){this.navigateForResult_r13zgt$(new Iw(this,null,MP().VIEW_NAME,P(Ii),Ii.Companion.serializer()))},bp.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var Sp=null;function vp(){return null===Sp&&new bp,Sp}function Cp(t,e,n,i,o){Ez.call(this,t,e,n,i,o),this.selectedPerson=O,this.selectedClazz=O,this.loggedInPersonUid=this.accountManager.activeAccount.personUid}function Np(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$studentPermission=void 0,this.local$hasPermission=void 0}function Tp(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$ClazzEnrolmentListPresenter=t,this.local$tmp$=void 0,this.local$tmp$_0=void 0}function Lp(){}function zp(t,e,n,i,o,r){Ap(),void 0===r&&(r=new Cg(n,aG(),t,e,i)),Ez.call(this,t,e,n,i,o),this.clazzList2ItemListener_0=r,this.loggedInPersonUid=O,this.filterExcludeMembersOfSchool_0=O,this.filterAlreadySelectedList_0=fe(),this.filterByPermission_0=O,this.searchText_0=null}function wp(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$tmp$=void 0}function Op(){Rp=this,this.CLAZZ_RESULT_KEY="Clazz",this.SORT_OPTIONS=be([new BR(2046,1,!0),new BR(2046,2,!1),new BR(2068,3,!0),new BR(2068,4,!1)]),this.FILTER_OPTIONS=be([E(2927,5),E(2928,6),E(2427,0)])}ep.$metadata$={kind:v,simpleName:"ClazzEnrolmentEditPresenter",interfaces:[fz]},Cp.prototype.onCreate=function(t){var e,n,i,o;Ez.prototype.onCreate.call(this,t),this.selectedPerson=null!=(n=null!=(e=this.arguments.get_11rb$(zG().ARG_PERSON_UID))?de(e):null)?n:O,this.selectedClazz=null!=(o=null!=(i=this.arguments.get_11rb$(zG().ARG_CLAZZUID))?de(i):null)?o:O,this.updateListOnView_0()},Np.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Np.prototype=Object.create(L.prototype),Np.prototype.constructor=Np,Np.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this.db.clazzDao.personHasPermissionWithClazz_b9bd0d$(this.$this.loggedInPersonUid,this.$this.selectedClazz,Zn,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(this.local$studentPermission=this.result_0,this.state_0=3,this.result_0=this.$this.db.clazzDao.personHasPermissionWithClazz_b9bd0d$(this.$this.loggedInPersonUid,this.$this.selectedClazz,Ui,this),this.result_0===T)return T;continue;case 3:var t=this.result_0;if(this.$this.view.isStudentEnrolmentEditVisible=this.local$studentPermission,this.$this.view.isTeacherEnrolmentEditVisible=t,this.local$hasPermission=this.local$studentPermission||t,this.state_0=4,this.result_0=this.$this.db.clazzEnrolmentDao.findMaxEndDateForEnrolment_b9bd0d$(this.$this.selectedClazz,this.$this.selectedPerson,O,this),this.result_0===T)return T;continue;case 4:var e=this.result_0;return!x(e,In)&&this.local$hasPermission;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Cp.prototype.onCheckAddPermission_tn71rk$=function(t,e,n){var i=new Np(this,t,e);return n?i:i.doResume(null)},Tp.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Tp.prototype=Object.create(L.prototype),Tp.prototype.constructor=Tp,Tp.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$tmp$=this.local$this$ClazzEnrolmentListPresenter.view,this.state_0=2,this.result_0=this.local$this$ClazzEnrolmentListPresenter.repo.personDao.findByUidAsync_s8cxhz$(this.local$this$ClazzEnrolmentListPresenter.selectedPerson,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(this.local$tmp$.person=this.result_0,this.local$tmp$_0=this.local$this$ClazzEnrolmentListPresenter.view,this.state_0=3,this.result_0=this.local$this$ClazzEnrolmentListPresenter.repo.clazzDao.findByUidAsync_s8cxhz$(this.local$this$ClazzEnrolmentListPresenter.selectedClazz,this),this.result_0===T)return T;continue;case 3:return this.local$tmp$_0.clazz=this.result_0,this.local$this$ClazzEnrolmentListPresenter.view.enrolmentList=this.local$this$ClazzEnrolmentListPresenter.repo.clazzEnrolmentDao.findAllEnrolmentsByPersonAndClazzUid_3pjtqy$(this.local$this$ClazzEnrolmentListPresenter.selectedPerson,this.local$this$ClazzEnrolmentListPresenter.selectedClazz),nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Cp.prototype.updateListOnView_0=function(){var t;it(tt.GlobalScope,It(),void 0,(t=this,function(e,n,i){var o=new Tp(t,e,this,n);return i?o:o.doResume(null)}))},Cp.prototype.handleClickCreateNewFab=function(){this.navigateForResult_r13zgt$(new Iw(this,null,HI().VIEW_NAME,P(xi),xi.Companion.serializer(),void 0,void 0,rn(Di(this.arguments,E(zG().ARG_SAVE_TO_DB,(!0).toString())))))},Cp.prototype.handleClickAddNewItem_a4m1mt$$default=function(t,e){this.handleClickCreateNewFab()},Cp.prototype.handleClickClazzEnrolment_oewacg$=function(t){this.navigateForResult_r13zgt$(new Iw(this,t,HI().VIEW_NAME,P(xi),xi.Companion.serializer(),void 0,void 0,rn(oi(y([E(zG().ARG_ENTITY_UID,t.clazzEnrolmentUid.toString()),E(zG().ARG_SAVE_TO_DB,(!0).toString())]),this.arguments))))},Cp.prototype.handleClickProfile_s8cxhz$=function(t){this.systemImpl.go_gofqk3$(lM().VIEW_NAME,Je(E(zG().ARG_ENTITY_UID,t.toString())),this.context)},Cp.$metadata$={kind:v,simpleName:"ClazzEnrolmentListPresenter",interfaces:[Ez]},Lp.$metadata$={kind:ge,simpleName:"ClazzListItemListener",interfaces:[]},Object.defineProperty(zp.prototype,"sortOptions",{configurable:!0,get:function(){return Ap().SORT_OPTIONS}}),zp.prototype.onCreate=function(t){var n,i,o,r,s,a,c,l,u,h;if(Ez.prototype.onCreate.call(this,t),this.clazzList2ItemListener_0.presenter=this,this.filterExcludeMembersOfSchool_0=null!=(i=null!=(n=this.arguments.get_11rb$(EM().ARG_FILTER_EXCLUDE_MEMBERSOFSCHOOL))?de(n):null)?i:O,null!=(r=null!=(o=this.arguments.get_11rb$(tU().ARG_FILTER_EXCLUDE_SELECTED_CLASS_LIST))?Pi(o,[","]):null)){var d,p=ot();for(d=r.iterator();d.hasNext();){var _=d.next();_.length>0&&p.add_11rb$(_)}u=p}else u=null;if(null!=(s=u)){var m,f=st(rt(s,10));for(m=s.iterator();m.hasNext();){var g,$=m.next();f.add_11rb$(de(Oi(e.isCharSequence(g=$)?g:W()).toString()))}h=f}else h=null;this.filterAlreadySelectedList_0=null!=(a=h)?a:fe(),this.clazzList2ItemListener_0.listViewMode=this.mListMode,this.filterByPermission_0=null!=(l=null!=(c=this.arguments.get_11rb$(zG().ARG_FILTER_BY_PERMISSION))?de(c):null)?l:Mi,this.loggedInPersonUid=this.accountManager.activeAccount.personUid,this.selectedSortOption=Ap().SORT_OPTIONS.get_za3lpa$(0),this.view.listFilterOptionChips=wA(Ap().FILTER_OPTIONS,this.context,this.di),this.updateList_0()},zp.prototype.updateList_0=function(){var t,e,n,i;this.view.list=this.repo.clazzDao.findClazzesWithPermission_dchjmd$(XA(this.searchText_0),this.loggedInPersonUid,this.filterAlreadySelectedList_0,this.filterExcludeMembersOfSchool_0,null!=(e=null!=(t=this.selectedSortOption)?t.flag:null)?e:0,null!=(i=null!=(n=this.view.checkedFilterOptionChip)?n.optionId:null)?i:5,et(),this.filterByPermission_0,O)},wp.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},wp.prototype=Object.create(L.prototype),wp.prototype.constructor=wp,wp.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(this.local$tmp$=this.$this.view,this.state_0=2,this.result_0=this.$this.repo.entityRoleDao.userHasTableLevelPermission_3pjtqy$(this.$this.loggedInPersonUid,ki,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:switch(this.local$tmp$.newClazzListOptionVisible=this.result_0,this.$this.mListMode.name){case"PICKER":t=this.$this.view.newClazzListOptionVisible;break;case"BROWSER":t=!0;break;default:t=e.noWhenBranchMatched()}return t;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zp.prototype.onCheckAddPermission_tn71rk$=function(t,e,n){var i=new wp(this,t,e);return n?i:i.doResume(null)},zp.prototype.handleClickCreateNewFab=function(){this.systemImpl.go_gofqk3$(qI().VIEW_NAME,ji(),this.context)},zp.prototype.handleClickJoinClazz=function(){this.systemImpl.go_gofqk3$($P().VIEW_NAME,Je(E(zG().ARG_CODE_TABLE,6..toString())),this.context)},zp.prototype.handleClickAddNewItem_a4m1mt$$default=function(t,e){var n;this.navigateForResult_r13zgt$(new Iw(this,null,qI().VIEW_NAME,P(ii),ii.Companion.serializer(),null!=e?e:Ap().CLAZZ_RESULT_KEY,!0,null!=(n=null!=t?rn(t):null)?n:rn(this.arguments)))},zp.prototype.onClickSort_o8nuns$=function(t){Ez.prototype.onClickSort_o8nuns$.call(this,t),this.updateList_0()},zp.prototype.onSearchSubmitted_pdl1vj$=function(t){this.searchText_0=t,this.updateList_0()},zp.prototype.onListFilterOptionSelected_5mmfk3$=function(t){Ez.prototype.onListFilterOptionSelected_5mmfk3$.call(this,t),this.updateList_0()},Op.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var Rp=null;function Ap(){return null===Rp&&new Op,Rp}zp.prototype.onClickClazz_yczdf2$=function(t){return this.clazzList2ItemListener_0.onClickClazz_yczdf2$(t)},zp.$metadata$={kind:v,simpleName:"ClazzListPresenter",interfaces:[Lp,Ez,oy,ry]};var xp=zi((function(){var t=e.kotlin.comparisons.compareValues_s00gnj$;return function(e){return function(n,i){var o=e;return t(o(n),o(i))}}})),Ip=zi((function(){var t=e.kotlin.comparisons.compareValues_s00gnj$;return function(e){return function(n,i){var o=e;return t(o(n),o(i))}}}));function Up(t,e,n,i,o){Kp(),fz.call(this,t,e,n,i,o),this.attendanceRecordOneToManyJoinHelper_0=new iR(Ni("clazzLogAttendanceRecordUid",1,(function(t){return t.clazzLogAttendanceRecordUid}),(function(t,e){t.clazzLogAttendanceRecordUid=e})),"state_ClazzLogAttendanceRecord_list",jt(Fi.Companion.serializer()),jt(Fi.Companion.serializer()),this,i,P(Fi),Xp),this.currentClazzLogUid_0=O,this.clazzLogs_0=Bi([]),this.clazzAttendanceRecords_0=Bi([])}function Dp(t,e,n,i){L.call(this,i),this.exceptionState_0=1,this.local$this$ClazzLogEditAttendancePresenter=t,this.local$closure$newClazzLog=e,this.local$it=n}function Pp(t,e){return function(n,i,o){var r=new Dp(t,e,n,i);return o?r:r.doResume(null)}}function Mp(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$db=t,this.local$closure$clazzLog=e}function kp(t,e){return function(n,i,o){var r=new Mp(t,e,n,this,i);return o?r:r.doResume(null)}}function jp(t){var e,n;return He(null!=(e=t.person)?e.firstNames:null)+" "+He(null!=(n=t.person)?n.lastName:null)}function Gp(t){return t.logDate}function qp(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$newClazzLog=void 0,this.local$clazzLog=void 0,this.local$clazzMembersAtTime=void 0,this.local$db=e}function Fp(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$this$ClazzLogEditAttendancePresenter=t,this.local$closure$next=e}function Bp(t,e){L.call(this,e),this.exceptionState_0=1,this.$this=t,this.local$tmp$=void 0,this.local$element=void 0,this.local$entityClazzAttendanceRecords=void 0,this.local$insertUpdatePartition=void 0}function Wp(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$this$ClazzLogEditAttendancePresenter=t,this.local$closure$entity=e}function Hp(){Vp=this,this.STATE_CURRENT_UID="currentUid"}Object.defineProperty(Up.prototype,"persistenceMode",{configurable:!0,get:function(){return xz()}}),Up.prototype.onCreate=function(t){var e,n,i,o;this.currentClazzLogUid_0=null!=(o=null!=(i=null!=(e=null!=t?t.get_11rb$(Kp().STATE_CURRENT_UID):null)?de(e):null)?i:null!=(n=this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(n):null)?o:O,fz.prototype.onCreate.call(this,t),this.view.clazzLogAttendanceRecordList=this.attendanceRecordOneToManyJoinHelper_0.liveList},Dp.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Dp.prototype=Object.create(L.prototype),Dp.prototype.constructor=Dp,Dp.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e;if(x(this.local$this$ClazzLogEditAttendancePresenter.currentClazzLogUid_0,O)&&null!=this.local$closure$newClazzLog)return this.local$closure$newClazzLog;if(null!=(e=null!=(t=x(this.local$this$ClazzLogEditAttendancePresenter.currentClazzLogUid_0,O)?null:this.local$it)?t.clazzLogDao:null)){if(this.state_0=2,this.result_0=e.findByUidAsync_s8cxhz$(this.local$this$ClazzLogEditAttendancePresenter.currentClazzLogUid_0,this),this.result_0===T)return T;continue}this.result_0=null,this.state_0=3;continue;case 1:throw this.exception_0;case 2:this.state_0=3;continue;case 3:return this.result_0;case 4:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Mp.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Mp.prototype=Object.create(L.prototype),Mp.prototype.constructor=Mp,Mp.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n=this.local$closure$db;if(null!=(e=null!=(t=x(this.local$closure$clazzLog.clazzLogClazzUid,O)?null:n)?t.clazzDao:null)){if(this.state_0=2,this.result_0=e.getClazzWithSchool_s8cxhz$(this.local$closure$clazzLog.clazzLogClazzUid,this),this.result_0===T)return T;continue}this.result_0=null,this.state_0=3;continue;case 1:throw this.exception_0;case 2:this.state_0=3;continue;case 3:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},qp.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},qp.prototype=Object.create(L.prototype),qp.prototype.constructor=qp,qp.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n,i,o;if(null!=(t=this.$this.arguments.get_11rb$(oU().ARG_NEW_CLAZZLOG))){var r,s=this.$this.di,a=Gi.Companion.serializer();o=Et(s).directDI.Instance_ohrpre$(e.isType(r=F(M(P(Pt),[],!1)),B)?r:W(),null).decodeFromString_awif5v$(a,t)}else o=null;if(this.local$newClazzLog=o,this.state_0=2,this.result_0=Rt(this.local$db,Ot,Pp(this.$this,this.local$newClazzLog),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(this.local$clazzLog=null!=(n=this.result_0)?n:new Gi,this.state_0=3,this.result_0=qi(Ot,kp(this.local$db,this.local$clazzLog),this),this.result_0===T)return T;continue;case 3:var c=null!=(i=this.result_0)?i:new Rn;if(this.$this.view.clazzLogTimezone=hA(c),this.state_0=4,this.result_0=this.local$db.clazzEnrolmentDao.getAllClazzEnrolledAtTimeAsync_6qtc6d$(this.local$clazzLog.clazzLogClazzUid,this.local$clazzLog.logDate,1e3,void 0,this),this.result_0===T)return T;continue;case 4:if(this.local$clazzMembersAtTime=this.result_0,this.state_0=5,this.result_0=this.local$db.clazzLogAttendanceRecordDao.findByClazzLogUid_s8cxhz$(this.$this.currentClazzLogUid_0,this),this.result_0===T)return T;continue;case 5:var l,u={v:this.result_0},h=u.v,d=st(rt(h,10));for(l=h.iterator();l.hasNext();){var p,_,m=l.next(),f=d.add_11rb$,g=this.$this.clazzAttendanceRecords_0;t:do{var $;for($=g.iterator();$.hasNext();){var E=$.next();if(x(E.clazzLogAttendanceRecordClazzLogUid,this.local$clazzLog.clazzLogUid)&&x(m.clazzLogAttendanceRecordPersonUid,E.clazzLogAttendanceRecordPersonUid)){_=E;break t}}_=null}while(0);f.call(d,null!=(p=_)?p:m)}u.v=d;var y,b=st(rt(this.local$clazzMembersAtTime,10));for(y=this.local$clazzMembersAtTime.iterator();y.hasNext();){var S,v,C,N,L,z=y.next(),w=b.add_11rb$,O=this.$this.clazzAttendanceRecords_0;t:do{var R;for(R=O.iterator();R.hasNext();){var A=R.next();if(x(A.clazzLogAttendanceRecordPersonUid,z.clazzEnrolmentPersonUid)&&x(A.clazzLogAttendanceRecordClazzLogUid,this.$this.currentClazzLogUid_0)){N=A;break t}}N=null}while(0);if(null!=(S=N))C=S;else{var I,U=u.v;t:do{var D;for(D=U.iterator();D.hasNext();){var k=D.next();if(x(k.clazzLogAttendanceRecordPersonUid,z.clazzEnrolmentPersonUid)&&x(k.clazzLogAttendanceRecordClazzLogUid,this.$this.currentClazzLogUid_0)){I=k;break t}}I=null}while(0);C=I}if(null!=(v=C))L=v;else{var j=new Fi;j.person=z.person,j.clazzLogAttendanceRecordClazzLogUid=this.$this.currentClazzLogUid_0,j.clazzLogAttendanceRecordPersonUid=z.clazzEnrolmentPersonUid,L=j}w.call(b,L)}var G=Li(b,new wi(xp(jp)));if(this.$this.attendanceRecordOneToManyJoinHelper_0.liveList.postValue_11rb$(G),null==this.$this.view.clazzLogsList){if(this.state_0=6,this.result_0=this.$this.repo.clazzLogDao.findByClazzUidAsync_yhmem3$(this.local$clazzLog.clazzLogClazzUid,1,this),this.result_0===T)return T;continue}this.state_0=7;continue;case 6:var q=En(this.result_0);null!=this.local$newClazzLog&&(q.add_11rb$(this.local$newClazzLog),q.size>1&&Wi(q,new wi(Ip(Gp)))),this.$this.view.clazzLogsList=qt(q),this.state_0=7;continue;case 7:return this.local$clazzLog;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Up.prototype.onLoadEntityFromDb_7hogkd$=function(t,e,n){var i=new qp(this,t,e);return n?i:i.doResume(null)},Up.prototype.handleClickMarkAll_za3lpa$=function(t){var e,n,i,o;if(null!=(n=null!=(e=this.attendanceRecordOneToManyJoinHelper_0.liveList.getValue())?qt(e):null)){var r,s=st(rt(n,10));for(r=n.iterator();r.hasNext();){var a=r.next(),c=s.add_11rb$,l=a.copy();l.attendanceStatus=t,c.call(s,l)}o=s}else o=null;if(null!=(i=o)){var u=i;this.attendanceRecordOneToManyJoinHelper_0.liveList.setValue_11rb$(u)}},Fp.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Fp.prototype=Object.create(L.prototype),Fp.prototype.constructor=Fp,Fp.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$this$ClazzLogEditAttendancePresenter.updateAttendanceRecordsFromView_0(),this.local$this$ClazzLogEditAttendancePresenter.view.entity=this.local$closure$next,this.local$this$ClazzLogEditAttendancePresenter.currentClazzLogUid_0=this.local$closure$next.clazzLogUid,this.state_0=2,this.result_0=this.local$this$ClazzLogEditAttendancePresenter.onLoadEntityFromDb_7hogkd$(this.local$this$ClazzLogEditAttendancePresenter.repo,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Up.prototype.handleSelectClazzLog_3aopzo$=function(t,e){var n,i;it(this.presenterScope,void 0,void 0,(n=this,i=e,function(t,e,o){var r=new Fp(n,i,t,this,e);return o?r:r.doResume(null)}))},Up.prototype.onLoadFromJson_y0zsll$=function(t){fz.prototype.onLoadFromJson_y0zsll$.call(this,t);var n=t.get_11rb$(oG().ARG_ENTITY_JSON),i=null;if(null!=n){var o,r=this.di,s=Gi.Companion.serializer();i=Et(r).directDI.Instance_ohrpre$(e.isType(o=F(M(P(Pt),[],!1)),B)?o:W(),null).decodeFromString_awif5v$(s,n)}else i=new Gi;return i},Up.prototype.onSaveInstanceState_gtra9a$=function(t){fz.prototype.onSaveInstanceState_gtra9a$.call(this,t);var e=this.entity;xA(t,oG().ARG_ENTITY_JSON,this.json,Gi.Companion.serializer(),e)},Up.prototype.updateAttendanceRecordsFromView_0=function(){var t;if(null!=(t=this.attendanceRecordOneToManyJoinHelper_0.liveList.getValue())){var n;for(n=t.iterator();n.hasNext();){var i,o=n.next(),r=this.clazzAttendanceRecords_0;t:do{var s,a=0;for(s=r.iterator();s.hasNext();){var c=s.next();if(x(c.clazzLogAttendanceRecordClazzLogUid,o.clazzLogAttendanceRecordClazzLogUid)&&x(c.clazzLogAttendanceRecordPersonUid,o.clazzLogAttendanceRecordPersonUid)){i=a;break t}a=a+1|0}i=-1}while(0);var l=i;l>=0?this.clazzAttendanceRecords_0.set_wxm5ur$(l,o):this.clazzAttendanceRecords_0.add_11rb$(o)}var u=this.view.entity,h=null!=u;if(h){var d,p=this.clazzLogs_0;t:do{var _;if(e.isType(p,V)&&p.isEmpty()){d=!1;break t}for(_=p.iterator();_.hasNext();){var m=_.next();if(x(m.clazzLogUid,u.clazzLogUid)){d=!0;break t}}d=!1}while(0);h=!d}h&&this.clazzLogs_0.add_11rb$(u)}},Bp.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Bp.prototype=Object.create(L.prototype),Bp.prototype.constructor=Bp,Bp.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n;this.local$tmp$=this.$this.clazzLogs_0.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$tmp$.hasNext()){this.state_0=6;continue}this.local$element=this.local$tmp$.next();var i,o,r,s,a=this.$this.clazzAttendanceRecords_0,c=ot();for(i=a.iterator();i.hasNext();){var l=i.next();x(l.clazzLogAttendanceRecordClazzLogUid,this.local$element.clazzLogUid)&&c.add_11rb$(l)}this.local$entityClazzAttendanceRecords=c,this.local$element.clazzLogStatusFlag=4;t:do{var u;if(e.isType(this.local$entityClazzAttendanceRecords,V)&&this.local$entityClazzAttendanceRecords.isEmpty()){o=0;break t}var h=0;for(u=this.local$entityClazzAttendanceRecords.iterator();u.hasNext();)1===u.next().attendanceStatus&&gn(h=h+1|0);o=h}while(0);this.local$element.clazzLogNumPresent=o;t:do{var d;if(e.isType(this.local$entityClazzAttendanceRecords,V)&&this.local$entityClazzAttendanceRecords.isEmpty()){r=0;break t}var p=0;for(d=this.local$entityClazzAttendanceRecords.iterator();d.hasNext();)2===d.next().attendanceStatus&&gn(p=p+1|0);r=p}while(0);this.local$element.clazzLogNumAbsent=r;t:do{var _;if(e.isType(this.local$entityClazzAttendanceRecords,V)&&this.local$entityClazzAttendanceRecords.isEmpty()){s=0;break t}var m=0;for(_=this.local$entityClazzAttendanceRecords.iterator();_.hasNext();)4===_.next().attendanceStatus&&gn(m=m+1|0);s=m}while(0);if(this.local$element.clazzLogNumPartial=s,x(this.local$element.clazzLogUid,O)){if(this.state_0=3,this.result_0=this.$this.repo.clazzLogDao.insertAsync(this.local$element,this),this.result_0===T)return T;continue}if(this.state_0=4,this.result_0=this.$this.repo.clazzLogDao.updateAsync_b1okmm$(this.local$element,this),this.result_0===T)return T;continue;case 3:var f;for(this.local$element.clazzLogUid=this.result_0,f=this.local$entityClazzAttendanceRecords.iterator();f.hasNext();)f.next().clazzLogAttendanceRecordClazzLogUid=this.local$element.clazzLogUid;this.state_0=5;continue;case 4:this.state_0=5;continue;case 5:this.state_0=2;continue;case 6:var g,$=this.$this.clazzAttendanceRecords_0,E=ot(),y=ot();for(g=$.iterator();g.hasNext();){var b=g.next();x(b.clazzLogAttendanceRecordUid,O)?E.add_11rb$(b):y.add_11rb$(b)}if(this.local$insertUpdatePartition=new Lt(E,y),this.state_0=7,this.result_0=this.$this.repo.clazzLogAttendanceRecordDao.insertListAsync_7quahr$(this.local$insertUpdatePartition.first,this),this.result_0===T)return T;continue;case 7:if(this.state_0=8,this.result_0=this.$this.repo.clazzLogAttendanceRecordDao.updateListAsync_7quahr$(this.local$insertUpdatePartition.second,this),this.result_0===T)return T;continue;case 8:if(this.state_0=9,this.result_0=this.$this.repo.clazzDao.updateClazzAttendanceAverageAsync_3pjtqy$(null!=(n=null!=(t=Un(this.$this.clazzLogs_0))?t.clazzLogClazzUid:null)?n:O,et(),this),this.result_0===T)return T;continue;case 9:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Up.prototype.commitToDatabase_0=function(t,e){var n=new Bp(this,t);return e?n:n.doResume(null)},Wp.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Wp.prototype=Object.create(L.prototype),Wp.prototype.constructor=Wp,Wp.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$this$ClazzLogEditAttendancePresenter.updateAttendanceRecordsFromView_0(),this.state_0=2,this.result_0=this.local$this$ClazzLogEditAttendancePresenter.commitToDatabase_0(this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(null!=this.local$this$ClazzLogEditAttendancePresenter.arguments.get_11rb$(oU().ARG_NEW_CLAZZLOG))return this.local$this$ClazzLogEditAttendancePresenter.systemImpl.popBack_i9f55q$(cU().VIEW_NAME,!0,this.local$this$ClazzLogEditAttendancePresenter.context),nt;var t,n=this.local$this$ClazzLogEditAttendancePresenter,i=this.local$this$ClazzLogEditAttendancePresenter.di,o=jt(Gi.Companion.serializer()),r=$e(this.local$closure$entity),s=Et(i).directDI.Instance_ohrpre$(e.isType(t=F(M(P(Pt),[],!1)),B)?t:W(),null);return n.finishWithResult_61zpoe$(s.encodeToString_tf03ej$(o,r)),nt;case 3:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Up.prototype.handleClickSave_nqi3in$=function(t){var e,n;it(tt.GlobalScope,It(),void 0,(e=this,n=t,function(t,i,o){var r=new Wp(e,n,t,this,i);return o?r:r.doResume(null)}))},Hp.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var Vp=null;function Kp(){return null===Vp&&new Hp,Vp}function Xp(t,e){return t.clazzLogAttendanceRecordUid=e,nt}function Jp(t,e,n,i,o){r_(),fz.call(this,t,e,n,o,i)}function Yp(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$this$ClazzLogEditPresenter=t,this.local$closure$editEntity=e}function Qp(t,e,n,i,o,r){L.call(this,r),this.$controller=o,this.exceptionState_0=1,this.local$this$ClazzLogEditPresenter=t,this.local$closure$entity=e,this.local$closure$presenter=n}function Zp(){o_=this}Up.$metadata$={kind:v,simpleName:"ClazzLogEditAttendancePresenter",interfaces:[fz]},Object.defineProperty(Jp.prototype,"persistenceMode",{configurable:!0,get:function(){return Iz()}}),Jp.prototype.onCreate=function(t){fz.prototype.onCreate.call(this,t)},Yp.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Yp.prototype=Object.create(L.prototype),Yp.prototype.constructor=Yp,Yp.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$ClazzLogEditPresenter.db.clazzDao.getClazzWithSchool_s8cxhz$(this.local$closure$editEntity.v.clazzLogClazzUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var t=hA(this.result_0);this.local$this$ClazzLogEditPresenter.view.timeZone=t;var e=bO(D.Companion.invoke_s8cxhz$(this.local$closure$editEntity.v.logDate),t).unixMillisLong;return this.local$this$ClazzLogEditPresenter.view.date=e,this.local$this$ClazzLogEditPresenter.view.time=this.local$closure$editEntity.v.logDate.subtract(e),nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Jp.prototype.onLoadFromJson_y0zsll$=function(t){fz.prototype.onLoadFromJson_y0zsll$.call(this,t);var n,i,o=t.get_11rb$(oG().ARG_ENTITY_JSON),r={v:null};if(null!=o){var s,a=this.di,c=Gi.Companion.serializer(),l=Et(a).directDI.Instance_ohrpre$(e.isType(s=F(M(P(Pt),[],!1)),B)?s:W(),null);r.v=l.decodeFromString_awif5v$(c,o)}else r.v=new Gi;return it(tt.GlobalScope,It(),void 0,(n=this,i=r,function(t,e,o){var r=new Yp(n,i,t,this,e);return o?r:r.doResume(null)})),r.v},Jp.prototype.onSaveInstanceState_gtra9a$=function(t){fz.prototype.onSaveInstanceState_gtra9a$.call(this,t);var e=this.entity;xA(t,oG().ARG_ENTITY_JSON,this.json,Gi.Companion.serializer(),e)},Qp.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Qp.prototype=Object.create(L.prototype),Qp.prototype.constructor=Qp,Qp.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n,i;if(this.state_0=2,this.result_0=this.local$this$ClazzLogEditPresenter.db.clazzDao.getClazzWithSchool_s8cxhz$(this.local$closure$entity.clazzLogClazzUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var o=null!=(n=null!=(t=this.result_0)?hA(t):null)?n:"UTC",r=this.local$closure$entity,s=yO(D.Companion.invoke_s8cxhz$(this.local$this$ClazzLogEditPresenter.view.date),o),a=s.hours,c=Yn.Companion.fromHours_14dthe$(a),l=s.minutes,u=c.plus_fv8bff$(Yn.Companion.fromMinutes_14dthe$(l)),h=s.seconds,d=u.plus_fv8bff$(Yn.Companion.fromSeconds_14dthe$(h)),p=s.milliseconds;if(r.logDate=s.minus_fv8bff$(d.plus_fv8bff$(Yn.Companion.fromMilliseconds_14dthe$(p))).utc.unixMillisLong.add(this.local$this$ClazzLogEditPresenter.view.time),!0===(null!=(i=this.local$this$ClazzLogEditPresenter.arguments.get_11rb$(zG().ARG_NEXT))?A(i,oU().VIEW_NAME):null)){var _,m=this.local$this$ClazzLogEditPresenter,f=this.local$closure$presenter,g=oU().VIEW_NAME,$=P(Gi),y=Gi.Companion.serializer(),b=oU().ARG_NEW_CLAZZLOG,S=this.local$this$ClazzLogEditPresenter.di,v=Gi.Companion.serializer(),C=this.local$closure$entity,N=Et(S).directDI.Instance_ohrpre$(e.isType(_=F(M(P(Pt),[],!1)),B)?_:W(),null);return m.navigateForResult_r13zgt$(new Iw(f,null,g,$,y,void 0,void 0,jn([E(b,N.encodeToString_tf03ej$(v,C))]))),nt}var L,z=this.local$this$ClazzLogEditPresenter,w=this.local$this$ClazzLogEditPresenter.di,O=jt(Gi.Companion.serializer()),R=$e(this.local$closure$entity),x=Et(w).directDI.Instance_ohrpre$(e.isType(L=F(M(P(Pt),[],!1)),B)?L:W(),null);return z.finishWithResult_61zpoe$(x.encodeToString_tf03ej$(O,R)),nt;case 3:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Jp.prototype.handleClickSave_nqi3in$=function(t){this.view.timeError=null,this.view.dateError=null;var e,n,i,o=!1;(x(this.view.date,O)&&(this.view.dateError=this.systemImpl.getString(2126,this.context),o=!0),x(this.view.time,O)&&(this.view.timeError=this.systemImpl.getString(2126,this.context),o=!0),o)||it(tt.GlobalScope,It(),void 0,(e=this,n=t,i=this,function(t,o,r){var s=new Qp(e,n,i,t,this,o);return r?s:s.doResume(null)}))},Zp.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var t_,e_,n_,i_,o_=null;function r_(){return null===o_&&new Zp,o_}function s_(t,e,n,i,o){var r;Ez.call(this,t,e,n,i,o),this.currentSortOrder=u_(),this.clazzUidFilter=O,this.clazzWithSchool_0=null,this.graphDbData_0=null,this.graphDisplayData_0=Qt(),this.graphDateRange_0=new Lt(O,O),this.clazzTimeZone_0=null,this.graphObserver_0=new bt((r=this,function(t){var e,n=r.graphDisplayData_0,i=st(rt(t,10));for(e=t.iterator();e.hasNext();){var o=e.next();i.add_11rb$(E(o.logDate,lA(o)))}var s,a=st(rt(t,10));for(s=t.iterator();s.hasNext();){var c=s.next();a.add_11rb$(E(c.logDate,uA(c)))}return n.postValue_11rb$(new a_(i,a,r.graphDateRange_0)),nt}))}function a_(t,e,n){this.percentageAttendedSeries=t,this.percentageLateSeries=e,this.graphDateRange=n}function c_(t,e,n){Wn.call(this),this.messageId=n,this.name$=t,this.ordinal$=e}function l_(){l_=function(){},t_=new c_("ORDER_NAME_ASC",0,2363),e_=new c_("ORDER_NAME_DSC",1,2364)}function u_(){return l_(),t_}function h_(){return l_(),e_}function d_(){return[u_(),h_()]}function p_(t,e,n,i){Wn.call(this),this.commandId=n,this.messageId=i,this.name$=t,this.ordinal$=e}function __(){__=function(){},n_=new p_("RECORD_ATTENDANCE_MOST_RECENT_SCHEDULE",0,1,2676),i_=new p_("RECORD_ATTENDANCE_NEW_SCHEDULE",1,2,2677)}function m_(){return __(),n_}function f_(){return __(),i_}function g_(t,e,n){fR.call(this,t.messageId,e,void 0,n),this.sortOrder=t}function $_(t){return function(e){var n,i;return i=t.view,n=!0===e?be([m_(),f_()]):$e(f_()),i.recordAttendanceOptions=n,nt}}function E_(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$ClazzLogListAttendancePresenter=t}function y_(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$ClazzLogListAttendancePresenter=t}function b_(t){return function(e,n,i){var o=new y_(t,e,this,n);return i?o:o.doResume(null)}}function S_(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$ClazzLogListAttendancePresenter=t}function v_(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$ClazzLogListAttendancePresenter=t}function C_(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$ClazzLogListAttendancePresenter=t}function N_(t,e,n,i,o){A_(),Ez.call(this,t,e,n,i,o),this.filterByClazzUid_0=Fn,this.searchText=null}function T_(t,e){L.call(this,e),this.exceptionState_0=1,this.$this=t,this.local$tmp$=void 0,this.local$tmp$_0=void 0}function L_(t,e,n,i,o){L.call(this,o),this.exceptionState_0=1,this.local$closure$approved=t,this.local$closure$enrolmentDetails=e,this.local$this$ClazzMemberListPresenter=n,this.local$txRepo=i}function z_(t,e,n){return function(i,o,r){var s=new L_(t,e,n,i,o);return r?s:s.doResume(null)}}function w_(t,e,n,i,o,r){L.call(this,r),this.$controller=o,this.exceptionState_0=5,this.local$this$ClazzMemberListPresenter=t,this.local$closure$approved=e,this.local$closure$enrolmentDetails=n}function O_(){R_=this,this.SORT_OPTIONS=be([new BR(2038,1,!0),new BR(2038,2,!1),new BR(2037,3,!0),new BR(2037,4,!1),new BR(2068,5,!0),new BR(2068,6,!1),new BR(2365,7,!0),new BR(2365,8,!1),new BR(2366,9,!0),new BR(2366,10,!1)]),this.FILTER_OPTIONS=be([E(2434,1),E(2427,0)]),this.RESULT_PERSON_KEY="person"}Jp.$metadata$={kind:v,simpleName:"ClazzLogEditPresenter",interfaces:[fz]},a_.$metadata$={kind:v,simpleName:"AttendanceGraphData",interfaces:[]},a_.prototype.component1=function(){return this.percentageAttendedSeries},a_.prototype.component2=function(){return this.percentageLateSeries},a_.prototype.component3=function(){return this.graphDateRange},a_.prototype.copy_rdxxrd$=function(t,e,n){return new a_(void 0===t?this.percentageAttendedSeries:t,void 0===e?this.percentageLateSeries:e,void 0===n?this.graphDateRange:n)},a_.prototype.toString=function(){return"AttendanceGraphData(percentageAttendedSeries="+e.toString(this.percentageAttendedSeries)+", percentageLateSeries="+e.toString(this.percentageLateSeries)+", graphDateRange="+e.toString(this.graphDateRange)+")"},a_.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*t+e.hashCode(this.percentageAttendedSeries)|0)+e.hashCode(this.percentageLateSeries)|0)+e.hashCode(this.graphDateRange)|0},a_.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.percentageAttendedSeries,t.percentageAttendedSeries)&&e.equals(this.percentageLateSeries,t.percentageLateSeries)&&e.equals(this.graphDateRange,t.graphDateRange)},c_.$metadata$={kind:v,simpleName:"SortOrder",interfaces:[Wn]},c_.values=d_,c_.valueOf_61zpoe$=function(t){switch(t){case"ORDER_NAME_ASC":return u_();case"ORDER_NAME_DSC":return h_();default:Hn("No enum constant com.ustadmobile.core.controller.ClazzLogListAttendancePresenter.SortOrder."+t)}},p_.$metadata$={kind:v,simpleName:"RecordAttendanceOption",interfaces:[Wn]},p_.values=function(){return[m_(),f_()]},p_.valueOf_61zpoe$=function(t){switch(t){case"RECORD_ATTENDANCE_MOST_RECENT_SCHEDULE":return m_();case"RECORD_ATTENDANCE_NEW_SCHEDULE":return f_();default:Hn("No enum constant com.ustadmobile.core.controller.ClazzLogListAttendancePresenter.RecordAttendanceOption."+t)}},g_.$metadata$={kind:v,simpleName:"ClazzLogListSortOption",interfaces:[fR]},E_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},E_.prototype=Object.create(L.prototype),E_.prototype.constructor=E_,E_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$ClazzLogListAttendancePresenter.repo.clazzDao.personHasPermissionWithClazz_b9bd0d$(this.local$this$ClazzLogListAttendancePresenter.accountManager.activeAccount.personUid,this.local$this$ClazzLogListAttendancePresenter.clazzUidFilter,Vi,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(this.result_0){this.state_0=3;continue}return void(this.local$this$ClazzLogListAttendancePresenter.view.recordAttendanceOptions=fe());case 3:return Qq(this.local$this$ClazzLogListAttendancePresenter.repo.clazzLogDao.clazzHasScheduleLive_yhmem3$(this.local$this$ClazzLogListAttendancePresenter.clazzUidFilter,16),this.local$this$ClazzLogListAttendancePresenter.lifecycleOwner,$_(this.local$this$ClazzLogListAttendancePresenter)),nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},s_.prototype.onCreate=function(t){var e,n;Ez.prototype.onCreate.call(this,t),this.clazzUidFilter=null!=(n=null!=(e=this.arguments.get_11rb$(zG().ARG_CLAZZUID))?de(e):null)?n:O,this.updateListOnView_0();var i,o,r=this.view,s=Hi(d_()),a=st(rt(s,10));for(i=s.iterator();i.hasNext();){var c=i.next();a.add_11rb$(new g_(c,this.context,this.di))}r.sortOptions=a,this.view.graphData=this.graphDisplayData_0,it(this.presenterScope,void 0,void 0,(o=this,function(t,e,n){var i=new E_(o,t,this,e);return n?i:i.doResume(null)}))},s_.prototype.onCheckAddPermission_tn71rk$=function(t,e){return!0},y_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},y_.prototype=Object.create(L.prototype),y_.prototype.constructor=y_,y_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e;return this.local$this$ClazzLogListAttendancePresenter.clazzTimeZone_0=null!=(e=null!=(t=this.local$this$ClazzLogListAttendancePresenter.clazzWithSchool_0)?hA(t):null)?e:"UTC",null==this.local$this$ClazzLogListAttendancePresenter.view.clazzTimeZone&&this.local$this$ClazzLogListAttendancePresenter.handleClickGraphDuration_za3lpa$(7),this.local$this$ClazzLogListAttendancePresenter.view.clazzTimeZone=this.local$this$ClazzLogListAttendancePresenter.clazzTimeZone_0,this.local$this$ClazzLogListAttendancePresenter.view.list=this.local$this$ClazzLogListAttendancePresenter.repo.clazzLogDao.findByClazzUidAsFactory_yhmem3$(this.local$this$ClazzLogListAttendancePresenter.clazzUidFilter,8),nt;case 1:throw this.exception_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},S_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},S_.prototype=Object.create(L.prototype),S_.prototype.constructor=S_,S_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$ClazzLogListAttendancePresenter.repo.clazzDao.getClazzWithSchool_s8cxhz$(this.local$this$ClazzLogListAttendancePresenter.clazzUidFilter,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(this.local$this$ClazzLogListAttendancePresenter.clazzWithSchool_0=this.result_0,this.state_0=3,this.result_0=wt(It(),b_(this.local$this$ClazzLogListAttendancePresenter),this),this.result_0===T)return T;continue;case 3:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},s_.prototype.updateListOnView_0=function(){var t;it(this.presenterScope,void 0,void 0,(t=this,function(e,n,i){var o=new S_(t,e,this,n);return i?o:o.doResume(null)}))},s_.prototype.handleClickEntry_11rc$=function(t){this.navigateForResult_r13zgt$(new Iw(this,null,oU().VIEW_NAME,P(Gi),Gi.Companion.serializer(),void 0,void 0,jn([E(zG().ARG_ENTITY_UID,t.clazzLogUid.toString())])))},v_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},v_.prototype=Object.create(L.prototype),v_.prototype.constructor=v_,v_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$ClazzLogListAttendancePresenter.db.clazzLogDao.findByClazzUidWithinTimeRangeAsync_ttedgd$(this.local$this$ClazzLogListAttendancePresenter.clazzUidFilter,O,In,16,1,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var t=Un(this.result_0);if(null!=t)return this.local$this$ClazzLogListAttendancePresenter.handleClickEntry_11rc$(t),nt;this.state_0=3;continue;case 3:return nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},s_.prototype.handleClickRecordAttendance_ng2yy3$=function(t){if(t===m_())it(tt.GlobalScope,It(),void 0,(i=this,function(t,e,n){var o=new v_(i,t,this,e);return n?o:o.doResume(null)}));else{var e=new Gi;e.clazzLogClazzUid=this.clazzUidFilter,e.logDate=et();var n=e;this.navigateForResult_r13zgt$(new Iw(this,n,cU().VIEW_NAME,P(Gi),Gi.Companion.serializer(),void 0,void 0,jn([E(zG().ARG_NEXT,oU().VIEW_NAME)])))}var i},C_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},C_.prototype=Object.create(L.prototype),C_.prototype.constructor=C_,C_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$ClazzLogListAttendancePresenter.db.clazzLogDao.findByClazzUidWithinTimeRangeAsync_ttedgd$(this.local$this$ClazzLogListAttendancePresenter.clazzUidFilter,O,In,16,1,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var t=Un(this.result_0);if(null!=t)return this.local$this$ClazzLogListAttendancePresenter.handleClickEntry_11rc$(t),nt;this.state_0=3;continue;case 3:return nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},s_.prototype.handleClickCreateNewFab=function(){var t;it(tt.GlobalScope,It(),void 0,(t=this,function(e,n,i){var o=new C_(t,e,this,n);return i?o:o.doResume(null)}))},s_.prototype.handleClickAddNewItem_a4m1mt$$default=function(t,e){},s_.prototype.handleClickGraphDuration_za3lpa$=function(t){var e,n,i,o=yO(D.Companion.now(),null!=(e=this.clazzTimeZone_0)?e:"UTC"),r=o.hours,s=Yn.Companion.fromHours_14dthe$(r),a=o.minutes,c=s.plus_fv8bff$(Yn.Companion.fromMinutes_14dthe$(a)),l=o.seconds,u=c.plus_fv8bff$(Yn.Companion.fromSeconds_14dthe$(l)),h=o.milliseconds,d=o.minus_fv8bff$(u.plus_fv8bff$(Yn.Companion.fromMilliseconds_14dthe$(h))).plus_fv8bff$(Yn.Companion.fromHours_14dthe$(24)).minus_fv8bff$(Yn.Companion.fromMilliseconds_14dthe$(1)).utc.unixMillisLong;this.graphDateRange_0=E(d.subtract(Yn.Companion.fromDays_14dthe$(t).millisecondsLong),d),null!=(n=this.graphDbData_0)&&n.removeObserver_fujmse$(this.graphObserver_0),this.graphDbData_0=this.repo.clazzLogDao.findByClazzUidWithinTimeRangeLive_kxxcc5$(this.clazzUidFilter,this.graphDateRange_0.first,this.graphDateRange_0.second,4),null!=(i=this.graphDbData_0)&&i.observe_bi6zy5$(this.lifecycleOwner,this.graphObserver_0)},s_.prototype.handleClickSortOrder_iowaj7$=function(t){var n,i,o;if(null!=(o=null!=(i=e.isType(n=t,g_)?n:null)?i.sortOrder:null)){var r=o;r!==this.currentSortOrder&&(this.currentSortOrder=r,this.updateListOnView_0())}},s_.$metadata$={kind:v,simpleName:"ClazzLogListAttendancePresenter",interfaces:[Ez]},Object.defineProperty(N_.prototype,"sortOptions",{configurable:!0,get:function(){return A_().SORT_OPTIONS}}),N_.prototype.onCreate=function(t){var e,n;this.filterByClazzUid_0=null!=(n=null!=(e=this.arguments.get_11rb$(zG().ARG_CLAZZUID))?de(e):null)?n:Fn,Ez.prototype.onCreate.call(this,t)},N_.prototype.onPause=function(){this.searchText="",this.updateListOnView_0()},N_.prototype.onCheckAddPermission_tn71rk$=function(t,e){return!1},T_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},T_.prototype=Object.create(L.prototype),T_.prototype.constructor=T_,T_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=Ez.prototype.onLoadFromDb.call(this.$this,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(this.$this.mLoggedInPersonUid=this.$this.accountManager.activeAccount.personUid,this.local$tmp$=this.$this.view,this.state_0=3,this.result_0=this.$this.db.clazzDao.personHasPermissionWithClazz_b9bd0d$(this.$this.mLoggedInPersonUid,this.$this.filterByClazzUid_0,Zn,this),this.result_0===T)return T;continue;case 3:if(this.local$tmp$.addStudentVisible=this.result_0,this.state_0=4,this.result_0=this.$this.db.courseTerminologyDao.getTerminologyForClazz_s8cxhz$(this.$this.filterByClazzUid_0,this),this.result_0===T)return T;continue;case 4:var t=this.result_0;if(this.$this.view.termMap=fA(t,this.$this.json,this.$this.systemImpl,this.$this.context),this.$this.selectedSortOption=A_().SORT_OPTIONS.get_za3lpa$(0),this.$this.view.listFilterOptionChips=wA(A_().FILTER_OPTIONS,this.$this.context,this.$this.di),this.$this.updateListOnView_0(),this.local$tmp$_0=this.$this.view,this.state_0=5,this.result_0=this.$this.db.clazzDao.personHasPermissionWithClazz_b9bd0d$(this.$this.mLoggedInPersonUid,this.$this.filterByClazzUid_0,Ui,this),this.result_0===T)return T;continue;case 5:return void(this.local$tmp$_0.addTeacherVisible=this.result_0);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},N_.prototype.onLoadFromDb=function(t,e){var n=new T_(this,t);return e?n:n.doResume(null)},N_.prototype.updateListOnView_0=function(){var t,e,n,i,o,r,s,a,c,l,u,h;this.view.list=this.repo.clazzEnrolmentDao.findByClazzUidAndRole_i7yiqk$(this.filterByClazzUid_0,1001,null!=(e=null!=(t=this.selectedSortOption)?t.flag:null)?e:0,XA(this.searchText),null!=(i=null!=(n=this.view.checkedFilterOptionChip)?n.optionId:null)?i:1,this.mLoggedInPersonUid,et()),this.view.studentList=this.repo.clazzEnrolmentDao.findByClazzUidAndRole_i7yiqk$(this.filterByClazzUid_0,1e3,null!=(r=null!=(o=this.selectedSortOption)?o.flag:null)?r:0,XA(this.searchText),null!=(a=null!=(s=this.view.checkedFilterOptionChip)?s.optionId:null)?a:1,this.mLoggedInPersonUid,et()),this.view.addStudentVisible&&(this.view.pendingStudentList=this.db.clazzEnrolmentDao.findByClazzUidAndRole_i7yiqk$(this.filterByClazzUid_0,1002,null!=(l=null!=(c=this.selectedSortOption)?c.flag:null)?l:0,XA(this.searchText),null!=(h=null!=(u=this.view.checkedFilterOptionChip)?u.optionId:null)?h:1,this.mLoggedInPersonUid,et()))},N_.prototype.handleClickEntry_11rc$=function(t){this.systemImpl.go_gofqk3$(JI().VIEW_NAME,y([E(zG().ARG_PERSON_UID,t.personUid.toString()),E(zG().ARG_CLAZZUID,this.filterByClazzUid_0.toString()),E(zG().ARG_FILTER_BY_ENROLMENT_ROLE,t.enrolmentRole.toString())]),this.context)},L_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},L_.prototype=Object.create(L.prototype),L_.prototype.constructor=L_,L_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$closure$approved){if(this.state_0=3,this.result_0=fx(this.local$txRepo,this.local$closure$enrolmentDetails,this.local$this$ClazzMemberListPresenter.filterByClazzUid_0,this),this.result_0===T)return T;continue}if(this.state_0=2,this.result_0=$x(this.local$txRepo,this.local$closure$enrolmentDetails,this.local$this$ClazzMemberListPresenter.filterByClazzUid_0,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:case 3:return nt;case 4:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},w_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},w_.prototype=Object.create(L.prototype),w_.prototype.constructor=w_,w_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.exceptionState_0=2,this.state_0=1,this.result_0=ut(this.local$this$ClazzMemberListPresenter.repo,void 0,z_(this.local$closure$approved,this.local$closure$enrolmentDetails,this.local$this$ClazzMemberListPresenter),this),this.result_0===T)return T;continue;case 1:return this.result_0;case 2:this.exceptionState_0=5;var t=this.exception_0;if(e.isType(t,C))return this.local$this$ClazzMemberListPresenter.view.showSnackBar_9pu0dj$(this.local$this$ClazzMemberListPresenter.systemImpl.getString(2176,this.local$this$ClazzMemberListPresenter.context)+t.message),lt.Napier.e_82mfvz$("Exception approving member",t),nt;throw t;case 3:this.state_0=4;continue;case 4:return;case 5:throw this.exception_0;default:throw this.state_0=5,new Error("State Machine Unreachable execution")}}catch(t){if(5===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},N_.prototype.handleClickPendingRequest_7mxlo2$=function(t,e){var n,i,o;it(this.presenterScope,void 0,void 0,(n=this,i=e,o=t,function(t,e,r){var s=new w_(n,i,o,t,this,e);return r?s:s.doResume(null)}))},N_.prototype.handleClickCreateNewFab=function(){},N_.prototype.handleClickAddNewItem_a4m1mt$$default=function(t,e){},N_.prototype.onClickSort_o8nuns$=function(t){Ez.prototype.onClickSort_o8nuns$.call(this,t),this.updateListOnView_0()},N_.prototype.onSearchSubmitted_pdl1vj$=function(t){this.searchText=t,this.updateListOnView_0()},N_.prototype.onListFilterOptionSelected_5mmfk3$=function(t){Ez.prototype.onListFilterOptionSelected_5mmfk3$.call(this,t),this.updateListOnView_0()},N_.prototype.handlePickNewMemberClicked_za3lpa$=function(t){var e,n=jn([E(EM().ARG_FILTER_EXCLUDE_MEMBERSOFCLAZZ,this.filterByClazzUid_0.toString()),E(zG().ARG_FILTER_BY_ENROLMENT_ROLE,t.toString()),E(zG().ARG_CLAZZUID,null!=(e=this.arguments.get_11rb$(zG().ARG_CLAZZUID))?e:"-1"),E(zG().ARG_GO_TO_COMPLETE,HI().VIEW_NAME),E(zG().ARG_POPUPTO_ON_FINISH,fU().VIEW_NAME),E(fU().ARG_HIDE_CLAZZES,(!0).toString()),E(zG().ARG_SAVE_TO_DB,(!0).toString())]);if(1e3===t){var i=zG().ARG_CODE_TABLE,o=6..toString();n.put_xwzc9p$(i,o)}var r=n;this.navigateForResult_r13zgt$(new Iw(this,null,EM().VIEW_NAME,P(Ki),Ki.Companion.serializer(),A_().RESULT_PERSON_KEY,!0,rn(r)))},O_.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var R_=null;function A_(){return null===R_&&new O_,R_}function x_(){}function I_(t,e,n,i,o){M_(),Ez.call(this,t,e,n,i,o),this.contentEntryUid_0=O,this.searchText=null}function U_(t,e){L.call(this,e),this.exceptionState_0=1,this.$this=t}function D_(){P_=this,this.SORT_OPTIONS=be([new BR(2038,1,!0),new BR(2038,2,!1),new BR(2037,3,!0),new BR(2037,4,!1),new BR(2512,5,!0),new BR(2512,6,!1)])}N_.$metadata$={kind:v,simpleName:"ClazzMemberListPresenter",interfaces:[Ez,oy,ry]},x_.$metadata$={kind:ge,simpleName:"ContentEntryAddOptionsListener",interfaces:[]},Object.defineProperty(I_.prototype,"sortOptions",{configurable:!0,get:function(){return M_().SORT_OPTIONS}}),I_.prototype.onCreate=function(t){var e,n;Ez.prototype.onCreate.call(this,t),this.selectedSortOption=M_().SORT_OPTIONS.get_za3lpa$(0),this.contentEntryUid_0=null!=(n=null!=(e=this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(e):null)?n:O},I_.prototype.onCheckAddPermission_tn71rk$=function(t,e){return!1},U_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},U_.prototype=Object.create(L.prototype),U_.prototype.constructor=U_,U_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=Ez.prototype.onLoadFromDb.call(this.$this,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.$this.mLoggedInPersonUid=this.$this.accountManager.activeAccount.personUid,void this.$this.updateListOnView_0();default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},I_.prototype.onLoadFromDb=function(t,e){var n=new U_(this,t);return e?n:n.doResume(null)},I_.prototype.onClickSort_o8nuns$=function(t){Ez.prototype.onClickSort_o8nuns$.call(this,t),this.updateListOnView_0()},I_.prototype.updateListOnView_0=function(){var t,e;this.view.list=this.repo.statementDao.findPersonsWithContentEntryAttempts_vqkbx2$(this.contentEntryUid_0,this.mLoggedInPersonUid,XA(this.searchText),null!=(e=null!=(t=this.selectedSortOption)?t.flag:null)?e:1)},I_.prototype.onSearchSubmitted_pdl1vj$=function(t){this.searchText=t,this.updateListOnView_0()},I_.prototype.handleClickCreateNewFab=function(){},I_.prototype.handleClickAddNewItem_a4m1mt$$default=function(t,e){},I_.prototype.onClickPersonWithStatementDisplay_nhm5s1$=function(t){this.systemImpl.go_gofqk3$(Jk().VIEW_NAME,y([E(zG().ARG_CONTENT_ENTRY_UID,this.contentEntryUid_0.toString()),E(zG().ARG_PERSON_UID,t.personUid.toString())]),this.context)},D_.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var P_=null;function M_(){return null===P_&&new D_,P_}function k_(t,n,i,o,r){sm(),_z.call(this,t,n,i,o,r);var s,a=tO().TAG_DOWNLOAD_ENABLED;this.isPlatformDownloadEnabled_vgyyom$_0=H(o,e.isType(s=F(M(no,[],!1)),B)?s:W(),a).provideDelegate_tpuvb9$(this,j_);var c,l,u,h=this.accountManager.activeAccount;c=o.diTrigger,this.contentEntryOpener_xfdzvm$_0=H(G(o,q.Companion.invoke_np530x$(e.isType(l=F(M(P(Xt),[],!1)),B)?l:W(),h),c),e.isType(u=F(M(P(ZO),[],!1)),B)?u:W(),null).provideDelegate_tpuvb9$(this,G_);var d,p,_,m=this.accountManager.activeAccount;d=this.diTrigger,this.statementEndpoint_mn9fry$_0=H(G(this,q.Companion.invoke_np530x$(e.isType(p=F(M(P(Xt),[],!1)),B)?p:W(),m),d),e.isType(_=F(M(P(Hc),[],!1)),B)?_:W(),null).provideDelegate_tpuvb9$(this,q_),this.contentEntryUid_0=O,this.clazzUid_0=O,this.contextRegistration_0=null}I_.$metadata$={kind:v,simpleName:"ContentEntryDetailAttemptsListPresenter",interfaces:[Ol,Ez,oy,ry]},Object.defineProperty(k_.prototype,"deepLink",{configurable:!0,get:function(){var t,n=Et(this.di).directDI.Instance_ohrpre$(e.isType(t=F(M(P(wa),[],!1)),B)?t:W(),null).activeAccount.endpointUrl;return AA(this.arguments,n,AU().VIEW_NAME)}});var j_=new N("isPlatformDownloadEnabled");Object.defineProperty(k_.prototype,"isPlatformDownloadEnabled_0",{configurable:!0,get:function(){return this.isPlatformDownloadEnabled_vgyyom$_0.value}});var G_=new N("contentEntryOpener");Object.defineProperty(k_.prototype,"contentEntryOpener_0",{configurable:!0,get:function(){return this.contentEntryOpener_xfdzvm$_0.value}}),Object.defineProperty(k_.prototype,"persistenceMode",{configurable:!0,get:function(){return xz()}});var q_=new N("statementEndpoint");function F_(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$db=t,this.local$closure$entityUid=e}function B_(t,e){return function(n,i,o){var r=new F_(t,e,n,this,i);return o?r:r.doResume(null)}}function W_(t,e,n,i){L.call(this,i),this.exceptionState_0=1,this.local$closure$db=t,this.local$closure$entityUid=e,this.local$this$ContentEntryDetailOverviewPresenter=n}function H_(t,e,n){return function(i,o){var r=new W_(t,e,n,i);return o?r:r.doResume(null)}}function V_(t){return function(e){if(null!=e)return t.view.contentEntryButtons=e,nt}}function K_(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$closure$db=t,this.local$this$ContentEntryDetailOverviewPresenter=e}function X_(t,e){return function(n,i){var o=new K_(t,e,n);return i?o:o.doResume(null)}}function J_(t){return function(e){if(null!=e){var n=e;return t.view.activeContentJobItems=n,nt}}}function Y_(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$tmp$_2=void 0,this.local$entityUid=void 0,this.local$entity=void 0,this.local$db=e}function Q_(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=8,this.local$this$ContentEntryDetailOverviewPresenter=t,this.local$tmp$_0=void 0,this.local$tmp$_1=void 0}function Z_(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$this$ContentEntryDetailOverviewPresenter=t,this.local$$receiver=void 0,this.local$job=void 0,this.local$txDb=e}function tm(t){return function(e,n,i){var o=new Z_(t,e,n);return i?o:o.doResume(null)}}function em(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$ContentEntryDetailOverviewPresenter=t}function nm(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$ContentEntryDetailOverviewPresenter=t,this.local$$receiver=void 0,this.local$learnerGroup=void 0,this.local$$receiver_0=void 0,this.local$$receiver_1=void 0}function im(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$ContentEntryDetailOverviewPresenter=t}function om(){rm=this,this.CONTENT_JOB_ITEM_TABLE_LIST_0=$e("ContentJobItem")}Object.defineProperty(k_.prototype,"statementEndpoint",{configurable:!0,get:function(){return this.statementEndpoint_mn9fry$_0.value}}),k_.prototype.onCreate=function(t){var e,n,i,o;_z.prototype.onCreate.call(this,t),this.contentEntryUid_0=null!=(n=null!=(e=this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(e):null)?n:O,this.clazzUid_0=null!=(o=null!=(i=this.arguments.get_11rb$(zG().ARG_CLAZZUID))?de(i):null)?o:O},F_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},F_.prototype=Object.create(L.prototype),F_.prototype.constructor=F_,F_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$closure$db.contentEntryDao.findEntryWithContainerByEntryId_s8cxhz$(this.local$closure$entityUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},W_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},W_.prototype=Object.create(L.prototype),W_.prototype.constructor=W_,W_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$closure$db.contentEntryDao.buttonsToShowForContentEntry_2gd3um$(this.local$closure$entityUid,this.local$this$ContentEntryDetailOverviewPresenter.isPlatformDownloadEnabled_0,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},K_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},K_.prototype=Object.create(L.prototype),K_.prototype.constructor=K_,K_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$closure$db.contentJobItemDao.findActiveContentJobItems_s8cxhz$(this.local$this$ContentEntryDetailOverviewPresenter.contentEntryUid_0,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Y_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Y_.prototype=Object.create(L.prototype),Y_.prototype.constructor=Y_,Y_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n,i;if(this.local$entityUid=null!=(n=null!=(t=this.$this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(t):null)?n:O,this.state_0=2,this.result_0=qi(Ot,B_(this.local$db,this.local$entityUid),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:this.local$entity=null!=(i=this.result_0)?i:new Xi;var o=this.local$db.contentEntryRelatedEntryJoinDao.findAllTranslationsWithContentEntryUid_s8cxhz$(this.local$entityUid);if(this.$this.view.availableTranslationsList=o,this.local$tmp$_2=this.$this.view,this.state_0=3,this.result_0=this.local$db.statementDao.getBestScoreForContentForPerson_3pjtqy$(this.local$entityUid,this.$this.accountManager.activeAccount.personUid,this),this.result_0===T)return T;continue;case 3:if(this.local$tmp$_2.scoreProgress=this.result_0,2===this.local$entity.completionCriteria){if(this.state_0=4,this.result_0=this.local$db.statementDao.findLatestRegistrationStatement_3pjtqy$(this.$this.accountManager.activeAccount.personUid,this.local$entityUid,this),this.result_0===T)return T;continue}this.$this.view.markCompleteVisible=!1,this.state_0=5;continue;case 4:this.$this.contextRegistration_0=this.result_0,this.$this.view.markCompleteVisible=null!=this.$this.contextRegistration_0,this.state_0=5;continue;case 5:return e.isType(this.local$db,At)||(Qq(new OR(this.local$db,be(["Container","ContentEntry","ContentJobItem"]),void 0,H_(this.local$db,this.local$entityUid,this.$this)),this.$this.lifecycleOwner,V_(this.$this)),Qq(new OR(this.local$db,sm().CONTENT_JOB_ITEM_TABLE_LIST_0,ln,X_(this.local$db,this.$this)),this.$this.lifecycleOwner,J_(this.$this))),this.local$entity;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},k_.prototype.onLoadEntityFromDb_7hogkd$=function(t,e,n){var i=new Y_(this,t,e);return n?i:i.doResume(null)},k_.prototype.handleClickEdit=function(){var t,e=jn([E(zG().ARG_ENTITY_UID,He(null!=(t=this.entity)?t.contentEntryUid:null)),E(zG().ARG_LEAF,(!0).toString())]);this.navigateForResult_r13zgt$(new Iw(this,null,DU().VIEW_NAME,P(Ji),Ji.Companion.serializer(),void 0,void 0,e))},k_.prototype.handleClickOpenButton=function(){this.openContentEntry_0()},k_.prototype.handleClickDownloadButton=function(){var t,e,n;this.view.showDownloadDialog_y0zsll$(Je(E(zG().ARG_CONTENT_ENTRY_UID,null!=(n=null!=(e=null!=(t=this.entity)?t.contentEntryUid:null)?e.toString():null)?n:"0")))},k_.prototype.handleOnClickManageDownload=function(){var t,e,n;this.view.showDownloadDialog_y0zsll$(Je(E(zG().ARG_CONTENT_ENTRY_UID,null!=(n=null!=(e=null!=(t=this.entity)?t.contentEntryUid:null)?e.toString():null)?n:"0")))},Q_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Q_.prototype=Object.create(L.prototype),Q_.prototype.constructor=Q_,Q_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(this.exceptionState_0=3,null!=(this.local$tmp$_0=null!=(t=this.local$this$ContentEntryDetailOverviewPresenter.entity)?t.contentEntryUid:null)){var n,i,o=this.local$this$ContentEntryDetailOverviewPresenter;if(this.state_0=1,this.result_0=o.contentEntryOpener_0.openEntry_6luryd$(o.context,this.local$tmp$_0,o.isPlatformDownloadEnabled_0,!1,null!=(i=null!=(n=o.arguments.get_11rb$(zG().ARG_NO_IFRAMES))?Xe(n):null)&&i,void 0,o.clazzUid_0,this),this.result_0===T)return T;continue}this.local$tmp$_1=null,this.state_0=2;continue;case 1:this.local$tmp$_1=this.local$tmp$_0,this.state_0=2;continue;case 2:return this.local$tmp$_1;case 3:this.exceptionState_0=8;var r=this.exception_0;if(e.isType(r,on)){if(e.isType(r,Uw))return this.local$this$ContentEntryDetailOverviewPresenter.view.showSnackBar_9pu0dj$(this.local$this$ContentEntryDetailOverviewPresenter.systemImpl.getString(2162,this.local$this$ContentEntryDetailOverviewPresenter.context)),nt;var s=r.message;if(null!=s)return this.local$this$ContentEntryDetailOverviewPresenter.view.showSnackBar_9pu0dj$(s),nt;this.state_0=4;continue}throw r;case 4:this.state_0=5;continue;case 5:this.state_0=6;continue;case 6:this.state_0=7;continue;case 7:return nt;case 8:throw this.exception_0;default:throw this.state_0=8,new Error("State Machine Unreachable execution")}}catch(r){if(8===this.state_0)throw this.exceptionState_0=this.state_0,r;this.state_0=this.exceptionState_0,this.exception_0=r}},k_.prototype.openContentEntry_0=function(){var t;it(this.presenterScope,It(),void 0,(t=this,function(e,n,i){var o=new Q_(t,e,this,n);return i?o:o.doResume(null)}))},k_.prototype.handleOnTranslationClicked_s8cxhz$=function(t){this.systemImpl.go_gofqk3$(AU().VIEW_NAME,y([E(zG().ARG_ENTITY_UID,t.toString()),E(zG().ARG_CLAZZUID,this.clazzUid_0.toString())]),this.context)},k_.prototype.onCheckEditPermission_tn71rk$=function(t,e){var n,i;return this.db.contentEntryDao.personHasPermissionWithContentEntry_b9bd0d$(this.accountManager.activeAccount.personUid,null!=(i=null!=(n=this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(n):null)?i:O,Yi,e)},Z_.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Z_.prototype=Object.create(L.prototype),Z_.prototype.constructor=Z_,Z_.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$$receiver=new Qi;var t,e,n=this.local$this$ContentEntryDetailOverviewPresenter;if(this.local$$receiver.cjNotificationTitle=bn(n.systemImpl.getString(2750,n.context),"%1$s",null!=(e=null!=(t=n.entity)?t.title:null)?e:""),this.state_0=2,this.result_0=this.local$txDb.contentJobDao.insertAsync_d5tex6$(this.local$$receiver,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:this.local$$receiver.cjUid=this.result_0,this.local$job=this.local$$receiver;var i,o,r,s=this.local$txDb.contentJobItemDao,a=new me,c=this.local$this$ContentEntryDetailOverviewPresenter;if(a.cjiJobUid=this.local$job.cjUid,a.cjiContentEntryUid=null!=(o=null!=(i=c.entity)?i.contentEntryUid:null)?o:O,a.cjiPluginId=14,a.cjiIsLeaf=!0,a.cjiConnectivityNeeded=!1,a.cjiStatus=4,a.sourceUri=null!=(r=c.entity)?pA(r,c.accountManager.activeEndpoint):null,this.state_0=3,this.result_0=s.insertJobItem_letzpf$(a,this),this.result_0===T)return T;continue;case 3:return this.local$job;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},em.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},em.prototype=Object.create(L.prototype),em.prototype.constructor=em,em.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=ut(this.local$this$ContentEntryDetailOverviewPresenter.db,void 0,tm(this.local$this$ContentEntryDetailOverviewPresenter),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var t,n=this.result_0;return Et(this.local$this$ContentEntryDetailOverviewPresenter.di).directDI.Instance_ohrpre$(e.isType(t=F(M(P(Jc),[],!1)),B)?t:W(),null).enqueueContentJob_iy18aq$(this.local$this$ContentEntryDetailOverviewPresenter.accountManager.activeEndpoint,n.cjUid),nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},k_.prototype.handleOnClickConfirmDelete=function(){var t;it(this.presenterScope,void 0,void 0,(t=this,function(e,n,i){var o=new em(t,e,this,n);return i?o:o.doResume(null)}))},nm.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},nm.prototype=Object.create(L.prototype),nm.prototype.constructor=nm,nm.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$$receiver=new Zi,this.state_0=2,this.result_0=this.local$this$ContentEntryDetailOverviewPresenter.repo.learnerGroupDao.insertAsync(this.local$$receiver,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:this.local$$receiver.learnerGroupUid=this.result_0,this.local$learnerGroup=this.local$$receiver,this.local$$receiver_0=new to;var t=this.local$this$ContentEntryDetailOverviewPresenter;if(this.local$$receiver_0.groupLearningSessionContentUid=t.contentEntryUid_0,this.local$$receiver_0.groupLearningSessionLearnerGroupUid=this.local$learnerGroup.learnerGroupUid,this.state_0=3,this.result_0=t.repo.groupLearningSessionDao.insertAsync(this.local$$receiver_0,this),this.result_0===T)return T;continue;case 3:this.local$$receiver_0.groupLearningSessionLearnerGroupUid=this.result_0,this.local$$receiver_1=new eo;var e=this.local$this$ContentEntryDetailOverviewPresenter;if(this.local$$receiver_1.learnerGroupMemberRole=1,this.local$$receiver_1.learnerGroupMemberLgUid=this.local$learnerGroup.learnerGroupUid,this.local$$receiver_1.learnerGroupMemberPersonUid=e.accountManager.activeAccount.personUid,this.state_0=4,this.result_0=e.repo.learnerGroupMemberDao.insertAsync(this.local$$receiver_1,this),this.result_0===T)return T;continue;case 4:return this.local$$receiver_1.learnerGroupMemberUid=this.result_0,this.local$this$ContentEntryDetailOverviewPresenter.systemImpl.go_gofqk3$(OP().VIEW_NAME,y([E(zG().ARG_CONTENT_ENTRY_UID,this.local$this$ContentEntryDetailOverviewPresenter.contentEntryUid_0.toString()),E(zG().ARG_LEARNER_GROUP_UID,this.local$learnerGroup.learnerGroupUid.toString()),E(zG().ARG_CLAZZUID,this.local$this$ContentEntryDetailOverviewPresenter.clazzUid_0.toString())]),this.local$this$ContentEntryDetailOverviewPresenter.context),nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},k_.prototype.handleOnClickGroupActivityButton=function(){var t;it(this.presenterScope,It(),void 0,(t=this,function(e,n,i){var o=new nm(t,e,this,n);return i?o:o.doResume(null)}))},im.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},im.prototype=Object.create(L.prototype),im.prototype.constructor=im,im.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e;if(null==(t=this.local$this$ContentEntryDetailOverviewPresenter.view.entity))return;var n=t;return Kc(this.local$this$ContentEntryDetailOverviewPresenter.statementEndpoint,this.local$this$ContentEntryDetailOverviewPresenter.accountManager.activeAccount,n,null!=(e=this.local$this$ContentEntryDetailOverviewPresenter.contextRegistration_0)?e:"",null,this.local$this$ContentEntryDetailOverviewPresenter.clazzUid_0),nt;case 1:throw this.exception_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},k_.prototype.handleOnClickMarkComplete=function(){if(!x(this.accountManager.activeAccount.personUid,O)){var t;it(tt.GlobalScope,void 0,void 0,(t=this,function(e,n,i){var o=new im(t,e,this,n);return i?o:o.doResume(null)})),this.view.markCompleteVisible=!1;var e=this.view.scoreProgress;null!=e&&(e.contentComplete=!0),null!=e&&(e.progress=100),this.view.scoreProgress=e}},om.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var rm=null;function sm(){return null===rm&&new om,rm}function am(t,e,n,i,o){_z.call(this,t,e,n,i,o)}function cm(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$closure$entityUid=t,this.local$it=e}function lm(t){return function(e,n,i){var o=new cm(t,e,n);return i?o:o.doResume(null)}}function um(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$db=t,this.local$closure$entityUid=e}function hm(t,e){return function(n,i,o){var r=new um(t,e,n,this,i);return o?r:r.doResume(null)}}function dm(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$db=e}function pm(t,n,i,o,r){gf(),fz.call(this,t,n,i,r,o);var s,a,c,l,u,h=this.accountManager.activeAccount;s=this.diTrigger,this.pluginManager_l5kp0u$_0=so(G(this,q.Companion.invoke_np530x$(e.isType(a=F(M(P(Xt),[],!1)),B)?a:W(),h),s),e.isType(c=F(M(P(cl),[],!1)),B)?c:W(),null).provideDelegate_tpuvb9$(this,mm),this.contentJobManager_806y77$_0=H(r,e.isType(l=F(M(P(Jc),[],!1)),B)?l:W(),null).provideDelegate_tpuvb9$(this,fm),this.httpClient_n4iqvp$_0=H(r,e.isType(u=F(M(P(Zt),[],!1)),B)?u:W(),null).provideDelegate_tpuvb9$(this,gm);var d,p,_,m=this.accountManager.activeAccount;d=this.diTrigger,this.containerStorageManager_w7o40p$_0=H(G(this,q.Companion.invoke_np530x$(e.isType(p=F(M(P(Xt),[],!1)),B)?p:W(),m),d),e.isType(_=F(M(P(oq),[],!1)),B)?_:W(),null).provideDelegate_tpuvb9$(this,Om),this.parentEntryUid_0=O}function _m(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$$receiver=e}k_.$metadata$={kind:v,simpleName:"ContentEntryDetailOverviewPresenter",interfaces:[_z]},am.prototype.onCheckEditPermission_tn71rk$=function(t,e){return!1},Object.defineProperty(am.prototype,"persistenceMode",{configurable:!0,get:function(){return xz()}}),am.prototype.onLoadFromJson_y0zsll$=function(t){_z.prototype.onLoadFromJson_y0zsll$.call(this,t);var n=t.get_11rb$(oG().ARG_ENTITY_JSON),i=null;if(null!=n){var o,r=this.di,s=Ji.Companion.serializer();i=Et(r).directDI.Instance_ohrpre$(e.isType(o=F(M(P(Pt),[],!1)),B)?o:W(),null).decodeFromString_awif5v$(s,n)}else i=new Ji;return this.setupTabs_0(),i},cm.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},cm.prototype=Object.create(L.prototype),cm.prototype.constructor=cm,cm.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$it.contentEntryDao.findByUidAsync_s8cxhz$(this.local$closure$entityUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},um.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},um.prototype=Object.create(L.prototype),um.prototype.constructor=um,um.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=Rt(this.local$closure$db,Ot,lm(this.local$closure$entityUid),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dm.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},dm.prototype=Object.create(L.prototype),dm.prototype.constructor=dm,dm.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n=null!=(e=null!=(t=this.$this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(t):null)?e:O;if(this.state_0=2,this.result_0=wt(tt.Dispatchers.Default,hm(this.local$db,n),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var i=this.result_0;return this.$this.setupTabs_0(),i;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},am.prototype.onLoadEntityFromDb_7hogkd$=function(t,e,n){var i=new dm(this,t,e);return n?i:i.doResume(null)},am.prototype.setupTabs_0=function(){var t,e,n,i=null!=(e=null!=(t=this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(t):null)?e:O,o=y([E(zG().ARG_NAV_CHILD,(!0).toString()),E(zG().ARG_ENTITY_UID,i.toString()),E(zG().ARG_CLAZZUID,null!=(n=this.arguments.get_11rb$(zG().ARG_CLAZZUID))?n:"0")]);this.view.tabs=be([ZA(zU().VIEW_NAME,o),ZA(CU().VIEW_NAME,o)])},am.$metadata$={kind:v,simpleName:"ContentEntryDetailPresenter",interfaces:[_z]},_m.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},_m.prototype=Object.create(L.prototype),_m.prototype.constructor=_m,_m.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=mq(this.local$$receiver),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0||A(this.local$$receiver.toString(),fl().UPLOAD_TMP_LOCATOR_PREFIX);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},pm.prototype.isRemoteOrServerUpload_qvpt4h$=function(t,e,n){var i=new _m(this,t,e);return n?i:i.doResume(null)};var mm=new N("pluginManager");Object.defineProperty(pm.prototype,"pluginManager_0",{configurable:!0,get:function(){return this.pluginManager_l5kp0u$_0.value}});var fm=new N("contentJobManager");Object.defineProperty(pm.prototype,"contentJobManager_0",{configurable:!0,get:function(){return this.contentJobManager_806y77$_0.value}});var gm=new N("httpClient");Object.defineProperty(pm.prototype,"httpClient_0",{configurable:!0,get:function(){return this.httpClient_n4iqvp$_0.value}});var $m,Em,ym,bm,Sm,vm,Cm,Nm,Tm,Lm,zm,wm,Om=new N("containerStorageManager");function Rm(t,e,n,i){Wn.call(this),this.optionVal=n,this.messageId=i,this.name$=t,this.ordinal$=e}function Am(){Am=function(){},$m=new Rm("LICENSE_TYPE_CC_BY",0,1,2283),Em=new Rm("LICENSE_TYPE_CC_BY_SA",1,2,2284),ym=new Rm("LICENSE_TYPE_CC_BY_SA_NC",2,3,2285),bm=new Rm("LICENSE_TYPE_CC_BY_NC",3,4,2286),Sm=new Rm("ALL_RIGHTS_RESERVED",4,5,2289),vm=new Rm("LICENSE_TYPE_CC_BY_NC_SA",5,6,2287),Cm=new Rm("LICENSE_TYPE_PUBLIC_DOMAIN",6,7,2288),Nm=new Rm("LICENSE_TYPE_OTHER",7,8,2050),Tm=new Rm("LICENSE_TYPE_CC0",8,9,2290)}function xm(){return Am(),$m}function Im(){return Am(),Em}function Um(){return Am(),ym}function Dm(){return Am(),bm}function Pm(){return Am(),Sm}function Mm(){return Am(),vm}function km(){return Am(),Cm}function jm(){return Am(),Nm}function Gm(){return Am(),Tm}function qm(){return[xm(),Im(),Um(),Dm(),Pm(),Mm(),km(),jm(),Gm()]}function Fm(t,e,n,i){Wn.call(this),this.optionVal=n,this.messageId=i,this.name$=t,this.ordinal$=e}function Bm(){Bm=function(){},Lm=new Fm("AUTOMATIC",0,0,2592),zm=new Fm("MIN_SCORE",1,1,2591),wm=new Fm("STUDENTS_MARKS_COMPLETE",2,2,2593)}function Wm(){return Bm(),Lm}function Hm(){return Bm(),zm}function Vm(){return Bm(),wm}function Km(){return[Wm(),Hm(),Vm()]}function Xm(t,e,n){fR.call(this,t.messageId,e,t.optionVal,n)}function Jm(t,e,n){fR.call(this,t.messageId,e,t.optionVal,n)}function Ym(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$ContentEntryEdit2Presenter=t}function Qm(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$db=t,this.local$closure$entityUid=e}function Zm(t,e){return function(n,i,o){var r=new Qm(t,e,n,this,i);return o?r:r.doResume(null)}}function tf(t,e,n,i){L.call(this,i),this.exceptionState_0=1,this.local$closure$entityUid=t,this.local$dbToUse=e}function ef(t){return function(e,n,i,o){var r=new tf(t,e,n,i);return o?r:r.doResume(null)}}function nf(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$tmp$_6=void 0,this.local$entityUid=void 0,this.local$isLeaf=void 0,this.local$isBlockRequired=void 0,this.local$clazzUid=void 0,this.local$entry=void 0,this.local$db=e}function of(t,e,n,i,o,r){L.call(this,r),this.$controller=o,this.exceptionState_0=1,this.local$closure$editEntity=t,this.local$closure$isBlockRequired=e,this.local$this$ContentEntryEdit2Presenter=n}function rf(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$metadata=t,this.local$this$ContentEntryEdit2Presenter=e}function sf(t){return function(e){var n;if(null!=(n=Un(e))){var i,o,r=n;return t.view.loading=!0,it(t.presenterScope,It(),void 0,(i=r,o=t,function(t,e,n){var r=new rf(i,o,t,this,e);return n?r:r.doResume(null)})),t.requireSavedStateHandle().set_umlfku$(gf().SAVED_STATE_KEY_METADATA,null),t.view.fileImportErrorVisible=!1,t.view.loading=!1,nt}}}function af(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$closure$clazzUid=t,this.local$it=e}function cf(t){return function(e,n,i){var o=new af(t,e,n);return i?o:o.doResume(null)}}function lf(t,e,n,i){L.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$tmp$_0=void 0,this.local$entry=e,this.local$isBlockRequired=n}function uf(t,e,n,i){L.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$entityVal=void 0,this.local$plugin=void 0,this.local$uri=void 0,this.local$metadataResult=e,this.local$blockRequired=n}function hf(t,e,n,i){L.call(this,i),this.exceptionState_0=1,this.local$closure$entity=t,this.local$this$ContentEntryEdit2Presenter=e,this.local$tmp$=void 0,this.local$txDb=n}function df(t,e){return function(n,i,o){var r=new hf(t,e,n,i);return o?r:r.doResume(null)}}function pf(){return nt}function _f(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=12,this.local$closure$entity=t,this.local$this$ContentEntryEdit2Presenter=e,this.local$isNewEntry=void 0,this.local$metaData=void 0,this.local$conversionParams=void 0,this.local$$receiver=void 0,this.local$job=void 0,this.local$$receiver_0=void 0,this.local$closure$entity_0=void 0,this.local$this$ContentEntryEdit2Presenter_0=void 0,this.local$tmp$=void 0}function mf(){ff=this,this.SAVED_STATE_KEY_URI="URI",this.SAVEDSTATE_KEY_LANGUAGE="Language",this.SAVED_STATE_KEY_METADATA="importedMetadata",this.SAVED_STATE_CONTENTENTRY_PICTURE="contentEntryPicture",this.HTTP_PARAM_CONVERSION_PARAMS="conversionParams"}Object.defineProperty(pm.prototype,"containerStorageManager_0",{configurable:!0,get:function(){return this.containerStorageManager_w7o40p$_0.value}}),Rm.$metadata$={kind:v,simpleName:"LicenceOptions",interfaces:[Wn]},Rm.values=qm,Rm.valueOf_61zpoe$=function(t){switch(t){case"LICENSE_TYPE_CC_BY":return xm();case"LICENSE_TYPE_CC_BY_SA":return Im();case"LICENSE_TYPE_CC_BY_SA_NC":return Um();case"LICENSE_TYPE_CC_BY_NC":return Dm();case"ALL_RIGHTS_RESERVED":return Pm();case"LICENSE_TYPE_CC_BY_NC_SA":return Mm();case"LICENSE_TYPE_PUBLIC_DOMAIN":return km();case"LICENSE_TYPE_OTHER":return jm();case"LICENSE_TYPE_CC0":return Gm();default:Hn("No enum constant com.ustadmobile.core.controller.ContentEntryEdit2Presenter.LicenceOptions."+t)}},Fm.$metadata$={kind:v,simpleName:"CompletionCriteriaOptions",interfaces:[Wn]},Fm.values=Km,Fm.valueOf_61zpoe$=function(t){switch(t){case"AUTOMATIC":return Wm();case"MIN_SCORE":return Hm();case"STUDENTS_MARKS_COMPLETE":return Vm();default:Hn("No enum constant com.ustadmobile.core.controller.ContentEntryEdit2Presenter.CompletionCriteriaOptions."+t)}},Xm.$metadata$={kind:v,simpleName:"CompletionCriteriaMessageIdOption",interfaces:[fR]},Jm.$metadata$={kind:v,simpleName:"LicenceMessageIdOptions",interfaces:[fR]},Object.defineProperty(pm.prototype,"persistenceMode",{configurable:!0,get:function(){return xz()}}),Ym.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Ym.prototype=Object.create(L.prototype),Ym.prototype.constructor=Ym,Ym.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:return this.local$this$ContentEntryEdit2Presenter.view.storageOptions=this.local$this$ContentEntryEdit2Presenter.containerStorageManager_0.storageList,nt;case 1:throw this.exception_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},pm.prototype.onCreate=function(t){var e,n;fz.prototype.onCreate.call(this,t);var i,o=this.view,r=qm(),s=st(r.length);for(i=0;i!==r.length;++i){var a=r[i];s.add_11rb$(new Jm(a,this.context,this.di))}o.licenceOptions=s;var c,l,u=this.view,h=Km(),d=st(h.length);for(c=0;c!==h.length;++c){var p=h[c];d.add_11rb$(new Xm(p,this.context,this.di))}u.completionCriteriaOptions=d,this.parentEntryUid_0=null!=(n=null!=(e=this.arguments.get_11rb$(zG().ARG_PARENT_ENTRY_UID))?de(e):null)?n:O,it(this.presenterScope,It(),void 0,(l=this,function(t,e,n){var i=new Ym(l,t,this,e);return n?i:i.doResume(null)}))},Qm.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Qm.prototype=Object.create(L.prototype),Qm.prototype.constructor=Qm,Qm.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n=this.local$closure$db;if(null!=(e=null!=(t=x(this.local$closure$entityUid,O)?null:n)?t.contentEntryDao:null)){if(this.state_0=2,this.result_0=e.findEntryWithBlockAndLanguageByUidAsync_s8cxhz$(this.local$closure$entityUid,this),this.result_0===T)return T;continue}this.result_0=null,this.state_0=3;continue;case 1:throw this.exception_0;case 2:this.state_0=3;continue;case 3:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tf.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},tf.prototype=Object.create(L.prototype),tf.prototype.constructor=tf,tf.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e;if(null!=(e=null!=(t=x(this.local$closure$entityUid,O)?null:this.local$dbToUse)?t.contentEntryPictureDao:null)){if(this.state_0=2,this.result_0=e.findByContentEntryUidAsync_s8cxhz$(this.local$closure$entityUid,this),this.result_0===T)return T;continue}this.result_0=null,this.state_0=3;continue;case 1:throw this.exception_0;case 2:this.state_0=3;continue;case 3:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},nf.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},nf.prototype=Object.create(L.prototype),nf.prototype.constructor=nf,nf.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n,i,o,r,s,a,c,l;this.local$entityUid=null!=(n=null!=(t=this.$this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(t):null)?n:O,this.local$isLeaf=null!=(i=this.$this.arguments.get_11rb$(zG().ARG_LEAF))?Xe(i):null;var u=this.$this.arguments.get_11rb$(DU().ARG_IMPORTED_METADATA);if(this.local$isBlockRequired=Xe(this.$this.arguments.get_11rb$(DU().BLOCK_REQUIRED)),this.local$clazzUid=null!=(r=null!=(o=this.$this.arguments.get_11rb$(zG().ARG_CLAZZUID))?Xn(o):null)?r:O,this.$this.view.showUpdateContentButton=!x(this.local$entityUid,O)&&!0===this.local$isLeaf,e.isType(this.local$db,At)){if(null!=u){var h,d=this.$this.di,p=fl().serializer(),_=Et(d).directDI.Instance_ohrpre$(e.isType(h=F(M(P(Pt),[],!1)),B)?h:W(),null).decodeFromString_awif5v$(p,u);if(this.state_0=2,this.result_0=this.$this.handleMetadataResult_0(_,this.local$isBlockRequired,this),this.result_0===T)return T;continue}this.state_0=3;continue}this.state_0=4;continue;case 1:throw this.exception_0;case 2:return this.result_0;case 3:this.state_0=4;continue;case 4:if(this.state_0=5,this.result_0=qi(Ot,Zm(this.local$db,this.local$entityUid),this),this.result_0===T)return T;continue;case 5:var m;if(null!=(s=this.result_0))m=s;else{var f=new di;f.leaf=null!=this.local$isLeaf?this.local$isLeaf:1!==f.contentFlags,m=f}if(this.local$entry=m,this.local$tmp$_6=this.$this.view,this.state_0=6,this.result_0=mi(this.local$db,Ot,ef(this.local$entityUid),this),this.result_0===T)return T;continue;case 6:if(this.local$tmp$_6.contentEntryPicture=null!=(a=this.result_0)?a:new io,this.local$isBlockRequired){var g;if(null!=(c=this.local$entry.block))g=c;else{var $=new pi;$.cbUid=Dn(this.local$db).nextId_za3lpa$(124),$.cbClazzUid=this.local$clazzUid,$.cbType=104,g=$}l=g}else l=null;if(this.local$entry.block=l,this.state_0=7,this.result_0=this.$this.handleBlock_0(this.local$entry,this.local$isBlockRequired,this),this.result_0===T)return T;continue;case 7:return this.local$entry;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},pm.prototype.onLoadEntityFromDb_7hogkd$=function(t,e,n){var i=new nf(this,t,e);return n?i:i.doResume(null)},of.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},of.prototype=Object.create(L.prototype),of.prototype.constructor=of,of.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$ContentEntryEdit2Presenter.handleBlock_0(this.local$closure$editEntity,this.local$closure$isBlockRequired,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},pm.prototype.onLoadFromJson_y0zsll$=function(t){var n,i,o,r;fz.prototype.onLoadFromJson_y0zsll$.call(this,t);var s=t.get_11rb$(oG().ARG_ENTITY_JSON),a=t.get_11rb$(DU().ARG_IMPORTED_METADATA),c=Xe(this.arguments.get_11rb$(DU().BLOCK_REQUIRED)),l=null!=(i=null!=(n=this.arguments.get_11rb$(zG().ARG_CLAZZUID))?Xn(n):null)?i:O;if(null!=a){var u,h=this.view,d=this.di,p=fl().serializer(),_=Et(d).directDI.Instance_ohrpre$(e.isType(u=F(M(P(Pt),[],!1)),B)?u:W(),null);h.metadataResult=_.decodeFromString_awif5v$(p,a)}if(null!=s){var m,f=this.di,g=di.Companion.serializer();o=Et(f).directDI.Instance_ohrpre$(e.isType(m=F(M(P(Pt),[],!1)),B)?m:W(),null).decodeFromString_awif5v$(g,s)}else{var $,E=new di;if(c){var y=new pi;y.cbUid=Dn(this.db).nextId_za3lpa$(124),y.cbClazzUid=l,y.cbType=104,$=y}else $=null;E.block=$,o=E}var b,S,v,C=o;return it(this.presenterScope,It(),void 0,(b=C,S=c,v=this,function(t,e,n){var i=new of(b,S,v,t,this,e);return n?i:i.doResume(null)})),this.view.showUpdateContentButton=!x(C.contentEntryUid,O)&&C.leaf,this.view.contentEntryPicture=null!=(r=t.get_11rb$(gf().SAVED_STATE_CONTENTENTRY_PICTURE))?this.json.decodeFromString_awif5v$(io.Companion.serializer(),r):null,C},rf.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},rf.prototype=Object.create(L.prototype),rf.prototype.constructor=rf,rf.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e;if(this.state_0=2,this.result_0=this.local$this$ContentEntryEdit2Presenter.handleMetadataResult_0(this.local$closure$metadata,void 0,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var n=this.result_0;return n.contentEntryUid=null!=(e=null!=(t=this.local$this$ContentEntryEdit2Presenter.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(t):null)?e:O,this.local$this$ContentEntryEdit2Presenter.view.entity=n,nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},pm.prototype.onLoadDataComplete=function(){var t;fz.prototype.onLoadDataComplete.call(this),this.observeSavedStateResult_u0dr5v$(gf().SAVED_STATE_KEY_METADATA,jt(fl().serializer()),P(pl),new bt(sf(this))),this.observeSavedStateResult_u0dr5v$(gf().SAVEDSTATE_KEY_LANGUAGE,jt(oo.Companion.serializer()),P(oo),new bt((t=this,function(e){var n,i,o;if(null!=(n=Un(e))){var r=n;return null!=(i=t.entity)&&(i.language=r),null!=(o=t.entity)&&(o.primaryLanguageUid=r.langUid),t.view.entity=t.entity,t.requireSavedStateHandle().set_umlfku$(gf().SAVEDSTATE_KEY_LANGUAGE,null),nt}})))},pm.prototype.onSaveInstanceState_gtra9a$=function(t){fz.prototype.onSaveInstanceState_gtra9a$.call(this,t),xA(t,DU().ARG_IMPORTED_METADATA,this.json,fl().serializer(),this.view.metadataResult),xA(t,gf().SAVED_STATE_CONTENTENTRY_PICTURE,this.json,io.Companion.serializer(),this.view.contentEntryPicture)},pm.prototype.loadEntityIntoDateTime_xj4pqf$=function(t){var e,n,i=null!=(e=this.view.timeZone)?e:"UTC";if(null!=(n=t.block)){var o=n;if(x(o.cbHideUntilDate,O))this.view.startDate=O;else{var r=bO(D.Companion.invoke_s8cxhz$(o.cbHideUntilDate),i).unixMillisLong;this.view.startDate=r,this.view.startTime=o.cbHideUntilDate.subtract(r)}if(x(o.cbDeadlineDate,In))this.view.deadlineDate=In;else{var s=bO(D.Companion.invoke_s8cxhz$(o.cbDeadlineDate),i).unixMillisLong;this.view.deadlineDate=s,this.view.deadlineTime=o.cbDeadlineDate.subtract(s)}if(x(o.cbGracePeriodDate,In))this.view.gracePeriodDate=In;else{var a=bO(D.Companion.invoke_s8cxhz$(o.cbGracePeriodDate),i).unixMillisLong;this.view.gracePeriodDate=a,this.view.gracePeriodTime=o.cbGracePeriodDate.subtract(a)}}},pm.prototype.saveDateTimeIntoEntity_xj4pqf$=function(t){var e,n,i=null!=(e=this.view.timeZone)?e:"UTC";if(null!=(n=t.block)){var o=n,r=yO(D.Companion.invoke_s8cxhz$(this.view.startDate),i),s=r.hours,a=Yn.Companion.fromHours_14dthe$(s),c=r.minutes,l=a.plus_fv8bff$(Yn.Companion.fromMinutes_14dthe$(c)),u=r.seconds,h=l.plus_fv8bff$(Yn.Companion.fromSeconds_14dthe$(u)),d=r.milliseconds;if(o.cbHideUntilDate=r.minus_fv8bff$(h.plus_fv8bff$(Yn.Companion.fromMilliseconds_14dthe$(d))).utc.unixMillisLong.add(this.view.startTime),!x(this.view.deadlineDate,In)){var p=yO(D.Companion.invoke_s8cxhz$(this.view.deadlineDate),i),_=p.hours,m=Yn.Companion.fromHours_14dthe$(_),f=p.minutes,g=m.plus_fv8bff$(Yn.Companion.fromMinutes_14dthe$(f)),$=p.seconds,E=g.plus_fv8bff$(Yn.Companion.fromSeconds_14dthe$($)),y=p.milliseconds;o.cbDeadlineDate=p.minus_fv8bff$(E.plus_fv8bff$(Yn.Companion.fromMilliseconds_14dthe$(y))).utc.unixMillisLong.add(this.view.deadlineTime)}if(!x(this.view.gracePeriodDate,In)){var b=yO(D.Companion.invoke_s8cxhz$(this.view.gracePeriodDate),i),S=b.hours,v=Yn.Companion.fromHours_14dthe$(S),C=b.minutes,N=v.plus_fv8bff$(Yn.Companion.fromMinutes_14dthe$(C)),T=b.seconds,L=N.plus_fv8bff$(Yn.Companion.fromSeconds_14dthe$(T)),z=b.milliseconds;o.cbGracePeriodDate=b.minus_fv8bff$(L.plus_fv8bff$(Yn.Companion.fromMilliseconds_14dthe$(z))).utc.unixMillisLong.add(this.view.gracePeriodTime)}}},af.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},af.prototype=Object.create(L.prototype),af.prototype.constructor=af,af.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$it.clazzDao.getClazzWithSchool_s8cxhz$(this.local$closure$clazzUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lf.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},lf.prototype=Object.create(L.prototype),lf.prototype.constructor=lf,lf.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e;if(void 0===this.local$isBlockRequired&&(this.local$isBlockRequired=!1),this.local$isBlockRequired){if(this.local$tmp$_0=null!=(t=this.local$entry.block)?t.cbClazzUid:null,null==this.local$tmp$_0)return;this.state_0=2;continue}this.state_0=4;continue;case 1:throw this.exception_0;case 2:var n=this.local$tmp$_0;if(this.state_0=3,this.result_0=Rt(this.$this.db,Ot,cf(n),this),this.result_0===T)return T;continue;case 3:var i=hA(null!=(e=this.result_0)?e:new Rn);this.$this.view.timeZone=i,this.$this.loadEntityIntoDateTime_xj4pqf$(this.local$entry),this.state_0=4;continue;case 4:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},pm.prototype.handleBlock_0=function(t,e,n,i){var o=new lf(this,t,e,n);return i?o:o.doResume(null)},uf.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},uf.prototype=Object.create(L.prototype),uf.prototype.constructor=uf,uf.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n,i,o,r;if(void 0===this.local$blockRequired&&(this.local$blockRequired=!1),null!=(t=this.$this.view.entity))r=t;else{var s,a=new di;if(this.local$blockRequired){var c,l,u=new pi;u.cbClazzUid=null!=(l=null!=(c=this.$this.arguments.get_11rb$(zG().ARG_CLAZZUID))?Xn(c):null)?l:O,u.cbType=104,u.cbUid=Dn(this.$this.db).nextId_za3lpa$(124),s=u}else s=null;a.block=s,r=a}if(this.local$entityVal=r,this.$this.view.metadataResult=this.local$metadataResult,this.local$plugin=null!=(e=this.$this.pluginManager_0)?e.getPluginById_za3lpa$(this.local$metadataResult.pluginId):null,this.local$uri=null!=(n=this.local$metadataResult.entry.sourceUrl)?n:"",this.state_0=2,this.result_0=mq(Qe.Companion.parse_61zpoe$(this.local$uri)),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0||!0!==(null!=(o=null!=(i=null!=this.local$plugin?this.local$plugin.supportedMimeTypes:null)?Un(i):null)?A(o,"video/"):null)||(this.$this.view.videoUri=this.local$uri),this.local$entityVal.title=this.local$metadataResult.entry.title,this.local$entityVal.description=this.local$metadataResult.entry.description,this.local$entityVal.sourceUrl=this.local$metadataResult.entry.sourceUrl,this.local$entityVal.entryId=this.local$metadataResult.entry.entryId,this.local$entityVal.author=this.local$metadataResult.entry.author,this.local$entityVal.contentTypeFlag=this.local$metadataResult.entry.contentTypeFlag,this.local$entityVal.publisher=this.local$metadataResult.entry.publisher,this.local$entityVal.languageVariantUid=this.local$metadataResult.entry.languageVariantUid,this.local$entityVal.primaryLanguageUid=this.local$metadataResult.entry.primaryLanguageUid,this.local$entityVal.contentFlags=this.local$metadataResult.entry.contentFlags,this.local$entityVal.leaf=this.local$metadataResult.entry.leaf,this.local$entityVal;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},pm.prototype.handleMetadataResult_0=function(t,e,n,i){var o=new uf(this,t,e,n);return i?o:o.doResume(null)},hf.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},hf.prototype=Object.create(L.prototype),hf.prototype.constructor=hf,hf.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(x(this.local$closure$entity.contentEntryUid,O)){if(this.local$closure$entity.contentOwner=this.local$this$ContentEntryEdit2Presenter.accountManager.activeAccount.personUid,this.local$tmp$=this.local$closure$entity,this.state_0=3,this.result_0=this.local$txDb.contentEntryDao.insertAsync(this.local$closure$entity,this),this.result_0===T)return T;continue}if(this.state_0=2,this.result_0=this.local$txDb.contentEntryDao.updateAsync_4pedz3$(this.local$closure$entity,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:this.state_0=8;continue;case 3:if(this.local$tmp$.contentEntryUid=this.result_0,null==this.local$closure$entity.entryId){if(this.local$closure$entity.entryId=this.local$this$ContentEntryEdit2Presenter.accountManager.activeAccount.endpointUrl+(this.local$closure$entity.contentEntryUid.toString()+"/")+$n(),this.state_0=4,this.result_0=this.local$txDb.contentEntryDao.updateAsync_4pedz3$(this.local$closure$entity,this),this.result_0===T)return T;continue}this.state_0=5;continue;case 4:this.state_0=5;continue;case 5:if(x(this.local$this$ContentEntryEdit2Presenter.parentEntryUid_0,O)){this.state_0=7;continue}var t=new an,e=this.local$closure$entity,n=this.local$this$ContentEntryEdit2Presenter;t.cepcjChildContentEntryUid=e.contentEntryUid,t.cepcjParentContentEntryUid=n.parentEntryUid_0;var i=t;if(this.state_0=6,this.result_0=this.local$txDb.contentEntryParentChildJoinDao.insertAsync(i,this),this.result_0===T)return T;continue;case 6:this.state_0=7;continue;case 7:this.state_0=8;continue;case 8:var o=this.local$this$ContentEntryEdit2Presenter.view.contentEntryPicture;if(null!=o){if(o.cepContentEntryUid=this.local$closure$entity.contentEntryUid,x(o.cepUid,O)){if(this.state_0=10,this.result_0=this.local$txDb.contentEntryPictureDao.insertAsync(o,this),this.result_0===T)return T;continue}if(this.state_0=9,this.result_0=this.local$txDb.contentEntryPictureDao.updateAsync_vfioqn$(o,this),this.result_0===T)return T;continue}this.state_0=12;continue;case 9:case 10:this.state_0=11;continue;case 11:this.state_0=12;continue;case 12:var r=this.local$closure$entity.language;if(null!=r&&x(r.langUid,O)){if(this.state_0=13,this.result_0=this.local$txDb.languageDao.insertAsync(r,this),this.result_0===T)return T;continue}this.state_0=14;continue;case 13:case 14:return nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_f.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},_f.prototype=Object.create(L.prototype),_f.prototype.constructor=_f,_f.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n,i,o,r,s,a,c,l,u;if(this.local$this$ContentEntryEdit2Presenter.isImportValid_xj4pqf$(this.local$closure$entity)){this.local$this$ContentEntryEdit2Presenter.saveDateTimeIntoEntity_xj4pqf$(this.local$closure$entity);var h=this.local$closure$entity.block;if(null!=h){var d=!1;if(0===h.cbMaxPoints?(this.local$this$ContentEntryEdit2Presenter.view.caMaxPointsError=this.local$this$ContentEntryEdit2Presenter.systemImpl.getString(2126,this.local$this$ContentEntryEdit2Presenter.context),d=!0):this.local$this$ContentEntryEdit2Presenter.view.caMaxPointsError=null,h.cbDeadlineDate.compareTo_11rb$(h.cbHideUntilDate)<=0?(this.local$this$ContentEntryEdit2Presenter.view.caDeadlineError=this.local$this$ContentEntryEdit2Presenter.systemImpl.getString(2675,this.local$this$ContentEntryEdit2Presenter.context),d=!0):this.local$this$ContentEntryEdit2Presenter.view.caDeadlineError=null,h.cbGracePeriodDate.compareTo_11rb$(h.cbDeadlineDate)<0?(this.local$this$ContentEntryEdit2Presenter.view.caGracePeriodError=this.local$this$ContentEntryEdit2Presenter.systemImpl.getString(2589,this.local$this$ContentEntryEdit2Presenter.context),d=!0):this.local$this$ContentEntryEdit2Presenter.view.caGracePeriodError=null,d)return;this.state_0=1;continue}this.state_0=2;continue}return this.local$this$ContentEntryEdit2Presenter.view.titleErrorEnabled=null==this.local$closure$entity.title,this.local$this$ContentEntryEdit2Presenter.view.fileImportErrorVisible=null!=this.local$closure$entity.title&&this.local$closure$entity.leaf&&null==(null!=(u=null!=(l=this.local$this$ContentEntryEdit2Presenter.view.metadataResult)?l.entry:null)?u.sourceUrl:null),this.local$this$ContentEntryEdit2Presenter.view.loading=!1,this.local$this$ContentEntryEdit2Presenter.view.fieldsEnabled=!0,nt;case 1:this.state_0=2;continue;case 2:var p,_=this.local$closure$entity;if(null!=(t=this.local$this$ContentEntryEdit2Presenter.view.licenceOptions)){var m;t:do{var f;for(f=t.iterator();f.hasNext();){var g=f.next(),$=this.local$closure$entity;if(g.code===$.licenseType){m=g;break t}}m=null}while(0);p=m}else p=null;_.licenseName=He(p),this.local$isNewEntry=x(this.local$closure$entity.contentEntryUid,O);var b,S,v=this.local$closure$entity;if(b=null!=(n=this.local$closure$entity.title)?Oi(e.isCharSequence(S=n)?S:W()).toString():null,v.title=b,this.state_0=3,this.result_0=ut(this.local$this$ContentEntryEdit2Presenter.repo,void 0,df(this.local$closure$entity,this.local$this$ContentEntryEdit2Presenter),this),this.result_0===T)return T;continue;case 3:this.local$metaData=this.local$this$ContentEntryEdit2Presenter.view.metadataResult;var C=this.local$this$ContentEntryEdit2Presenter.view.videoDimensions;if(this.local$conversionParams=y([E("compress",this.local$this$ContentEntryEdit2Presenter.view.compressionEnabled.toString()),E("dimensions",C.first.toString()+"x"+C.second)]),null!=this.local$metaData){if(null!=(o=null!=(i=this.local$closure$entity.sourceUrl)?Qe.Companion.parse_61zpoe$(i):null)){if(this.state_0=6,this.result_0=this.local$this$ContentEntryEdit2Presenter.isRemoteOrServerUpload_qvpt4h$(o,this),this.result_0===T)return T;continue}this.result_0=null,this.state_0=7;continue}if(this.local$this$ContentEntryEdit2Presenter.arguments.containsKey_11rb$(Df().KEY_SELECTED_ITEMS)){var N;if(null!=(a=null!=(s=this.local$this$ContentEntryEdit2Presenter.arguments.get_11rb$(Df().KEY_SELECTED_ITEMS))?Pi(s,[","]):null)){var L,z=st(rt(a,10));for(L=a.iterator();L.hasNext();){var w,R=L.next();z.add_11rb$(de(Oi(e.isCharSequence(w=R)?w:W()).toString()))}N=z}else N=null;var A=null!=(c=N)?c:fe();if(this.state_0=4,this.result_0=this.local$this$ContentEntryEdit2Presenter.repo.contentEntryParentChildJoinDao.moveListOfEntriesToNewParent_8jtwwy$(this.local$closure$entity.contentEntryUid,A,et(),this),this.result_0===T)return T;continue}this.state_0=5;continue;case 4:this.state_0=5;continue;case 5:this.state_0=18;continue;case 6:this.state_0=7;continue;case 7:if(!1===this.result_0){this.local$$receiver=new Qi;var I,U,D,k=this.local$this$ContentEntryEdit2Presenter,j=this.local$closure$entity;if(this.local$$receiver.toUri=null!=(U=null!=(I=k.view.storageOptions)?I.get_za3lpa$(k.view.selectedStorageIndex):null)?U.dirUri:null,this.local$$receiver.params=LA(k.json,this.local$conversionParams),this.local$$receiver.cjIsMeteredAllowed=!1,this.local$$receiver.cjNotificationTitle=bn(k.systemImpl.getString(2748,k.context),"%1$s",null!=(D=j.title)?D:""),this.state_0=13,this.result_0=k.db.contentJobDao.insertAsync_d5tex6$(this.local$$receiver,this),this.result_0===T)return T;continue}this.exceptionState_0=9;var G,q=this.local$this$ContentEntryEdit2Presenter.httpClient_0,H=new le,V=this.local$this$ContentEntryEdit2Presenter,K=this.local$closure$entity;if(Ct(H,XR().joinPaths_vqirvp$([V.accountManager.activeAccount.endpointUrl,"/import/downloadLink"])),Wt(H,"parentUid",V.parentEntryUid_0),Wt(H,"pluginId",null!=(G=V.view.metadataResult)?G.pluginId:null),Wt(H,"url",K.sourceUrl),Wt(H,gf().HTTP_PARAM_CONVERSION_PARAMS,Pt.Default.encodeToString_tf03ej$(ro(kt(Mt),kt(Mt)),this.local$conversionParams)),Ht(H,"content-type","application/json"),null==K){H.body=oe.NullBody;var X,J=se.JsType,Y=P(di);t:do{try{X=M(P(di),[],!1)}catch(t){if(e.isType(t,ce)){X=null;break t}throw t}}while(0);H.bodyType=ae(J,Y,X)}else if(e.isType(K,re))H.body=K,H.bodyType=null;else{H.body=K;var Q,Z=se.JsType,tt=P(di);t:do{try{Q=M(P(di),[],!1)}catch(t){if(e.isType(t,ce)){Q=null;break t}throw t}}while(0);H.bodyType=ae(Z,tt,Q)}if(H.method=ue.Companion.Post,this.state_0=8,this.result_0=new he(H,q).execute(this),this.result_0===T)return T;continue;case 8:this.result_0,this.exceptionState_0=12,this.state_0=11;continue;case 9:this.exceptionState_0=12;var it=this.exception_0;if(e.isType(it,on))return this.local$this$ContentEntryEdit2Presenter.view.showSnackBar_9pu0dj$(this.local$this$ContentEntryEdit2Presenter.systemImpl.getString(2002,this.local$this$ContentEntryEdit2Presenter.context)+": "+(null!=(r=it.message)?r:""),pf),this.local$this$ContentEntryEdit2Presenter.view.loading=!1,void(this.local$this$ContentEntryEdit2Presenter.view.fieldsEnabled=!0);throw it;case 10:this.state_0=11;continue;case 11:this.local$this$ContentEntryEdit2Presenter.view.loading=!1,this.local$this$ContentEntryEdit2Presenter.view.fieldsEnabled=!0;var ot,at=this.local$this$ContentEntryEdit2Presenter,ct=this.local$this$ContentEntryEdit2Presenter.di,lt=jt(di.Companion.serializer()),ht=$e(this.local$closure$entity),dt=Et(ct).directDI.Instance_ohrpre$(e.isType(ot=F(M(P(Pt),[],!1)),B)?ot:W(),null);return void at.finishWithResult_61zpoe$(dt.encodeToString_tf03ej$(lt,ht));case 12:throw this.exception_0;case 13:var pt,_t;if(this.local$$receiver.cjUid=this.result_0,this.local$job=this.local$$receiver,this.local$$receiver_0=new me,this.local$closure$entity_0=this.local$closure$entity,this.local$this$ContentEntryEdit2Presenter_0=this.local$this$ContentEntryEdit2Presenter,this.local$$receiver_0.cjiJobUid=this.local$job.cjUid,this.local$$receiver_0.sourceUri=this.local$closure$entity_0.sourceUrl,null!=(pt=this.local$$receiver_0.sourceUri)){if(this.state_0=14,this.result_0=pq(Qe.Companion.parse_61zpoe$(pt),this.local$this$ContentEntryEdit2Presenter_0.context,this.local$this$ContentEntryEdit2Presenter_0.di),this.result_0===T)return T;continue}this.local$tmp$=null,this.state_0=15;continue;case 14:this.local$tmp$=this.result_0,this.state_0=15;continue;case 15:if(this.local$$receiver_0.cjiItemTotal=null!=(_t=this.local$tmp$)?_t:O,this.local$$receiver_0.cjiPluginId=this.local$metaData.pluginId,this.local$$receiver_0.cjiContentEntryUid=this.local$closure$entity_0.contentEntryUid,this.local$$receiver_0.cjiIsLeaf=this.local$closure$entity_0.leaf,this.local$$receiver_0.cjiParentContentEntryUid=this.local$this$ContentEntryEdit2Presenter_0.parentEntryUid_0,this.local$$receiver_0.cjiConnectivityNeeded=!1,this.local$$receiver_0.cjiStatus=4,this.local$$receiver_0.cjiContentDeletedOnCancellation=this.local$isNewEntry,this.state_0=16,this.result_0=this.local$this$ContentEntryEdit2Presenter_0.db.contentJobItemDao.insertJobItem_letzpf$(this.local$$receiver_0,this),this.result_0===T)return T;continue;case 16:this.local$$receiver_0.cjiUid=this.result_0,this.local$this$ContentEntryEdit2Presenter.contentJobManager_0.enqueueContentJob_iy18aq$(this.local$this$ContentEntryEdit2Presenter.accountManager.activeEndpoint,this.local$job.cjUid),this.local$this$ContentEntryEdit2Presenter.view.loading=!1,this.local$this$ContentEntryEdit2Presenter.view.fieldsEnabled=!0;var mt,ft=this.local$this$ContentEntryEdit2Presenter,gt=this.local$this$ContentEntryEdit2Presenter.di,$t=jt(di.Companion.serializer()),yt=$e(this.local$closure$entity),bt=Et(gt).directDI.Instance_ohrpre$(e.isType(mt=F(M(P(Pt),[],!1)),B)?mt:W(),null);return void ft.finishWithResult_61zpoe$(bt.encodeToString_tf03ej$($t,yt));case 17:this.state_0=18;continue;case 18:this.local$this$ContentEntryEdit2Presenter.view.loading=!1,this.local$this$ContentEntryEdit2Presenter.view.fieldsEnabled=!0;var St,vt=this.local$this$ContentEntryEdit2Presenter,Nt=this.local$this$ContentEntryEdit2Presenter.di,Tt=jt(di.Companion.serializer()),Lt=$e(this.local$closure$entity),zt=Et(Nt).directDI.Instance_ohrpre$(e.isType(St=F(M(P(Pt),[],!1)),B)?St:W(),null);return vt.finishWithResult_61zpoe$(zt.encodeToString_tf03ej$(Tt,Lt)),nt;case 19:return;default:throw this.state_0=12,new Error("State Machine Unreachable execution")}}catch(it){if(12===this.state_0)throw this.exceptionState_0=this.state_0,it;this.state_0=this.exceptionState_0,this.exception_0=it}},pm.prototype.handleClickSave_nqi3in$=function(t){var e,n;this.view.loading=!0,this.view.fieldsEnabled=!1,this.view.titleErrorEnabled=!1,this.view.fileImportErrorVisible=!1,it(this.presenterScope,It(),void 0,(e=t,n=this,function(t,i,o){var r=new _f(e,n,t,this,i);return o?r:r.doResume(null)}))},pm.prototype.isImportValid_xj4pqf$=function(t){return null!=t.title&&(!t.leaf||!x(t.contentEntryUid,O)||x(t.contentEntryUid,O)&&null!=this.view.metadataResult)},pm.prototype.onClickNewFolder=function(){},pm.prototype.onClickImportFile=function(){var t,e,n,i=jn([E(qk().ARG_MIMETYPE_SELECTED,null!=(n=null!=(e=null!=(t=this.pluginManager_0)?t.supportedMimeTypeList:null)?fn(e,";"):null)?n:"*/*"),E(zG().ARG_LEAF,(!0).toString())]);IA(i,this.arguments,zG().ARG_PARENT_ENTRY_UID),IA(i,this.arguments,DU().BLOCK_REQUIRED),IA(i,this.arguments,zG().ARG_CLAZZUID),this.navigateForResult_r13zgt$(new Iw(this,null,Mk().VIEW_NAME,P(pl),fl().serializer(),gf().SAVED_STATE_KEY_METADATA,void 0,i))},pm.prototype.onClickImportLink=function(){var t=jn([E(zG().ARG_LEAF,(!0).toString())]);IA(t,this.arguments,zG().ARG_PARENT_ENTRY_UID),IA(t,this.arguments,DU().BLOCK_REQUIRED),IA(t,this.arguments,zG().ARG_CLAZZUID),this.navigateForResult_r13zgt$(new Iw(this,null,jU().VIEW_NAME,P(pl),fl().serializer(),gf().SAVED_STATE_KEY_METADATA,void 0,t))},pm.prototype.onClickImportGallery=function(){var t=jn([E(qk().ARG_MIMETYPE_SELECTED,qk().SELECTION_MODE_GALLERY),E(zG().ARG_LEAF,(!0).toString())]);IA(t,this.arguments,zG().ARG_PARENT_ENTRY_UID),IA(t,this.arguments,DU().BLOCK_REQUIRED),IA(t,this.arguments,zG().ARG_CLAZZUID),this.navigateForResult_r13zgt$(new Iw(this,null,Mk().VIEW_NAME,P(pl),fl().serializer(),gf().SAVED_STATE_KEY_METADATA,void 0,t))},pm.prototype.handleClickLanguage=function(){this.navigateForResult_r13zgt$(new Iw(this,null,TP().VIEW_NAME,P(oo),oo.Companion.serializer(),gf().SAVEDSTATE_KEY_LANGUAGE))},pm.prototype.onClickAddFolder=function(){var t=jn([E(zG().ARG_LEAF,(!0).toString())]);IA(t,this.arguments,zG().ARG_PARENT_ENTRY_UID),this.navigateForResult_r13zgt$(new Iw(this,null,Hk().VIEW_NAME,ne,kt(Mt),gf().SAVED_STATE_KEY_URI,void 0,t))},mf.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var ff=null;function gf(){return null===ff&&new mf,ff}function $f(t,n,i,o){var r,s,a;rz.call(this,t,n,i,o),this.accountManager_roxiwp$_0=H(this,e.isType(r=F(M(P(wa),[],!1)),B)?r:W(),null).provideDelegate_tpuvb9$(this,Ef),this.systemImpl_fl7ai$_0=H(this,e.isType(s=F(M(P(aq),[],!1)),B)?s:W(),null).provideDelegate_tpuvb9$(this,yf),this.currentHttpClient_hoeozz$_0=H(this,e.isType(a=F(M(P(Zt),[],!1)),B)?a:W(),null).provideDelegate_tpuvb9$(this,bf)}pm.$metadata$={kind:v,simpleName:"ContentEntryEdit2Presenter",interfaces:[x_,fz]};var Ef=new N("accountManager");Object.defineProperty($f.prototype,"accountManager",{configurable:!0,get:function(){return this.accountManager_roxiwp$_0.value}});var yf=new N("systemImpl");Object.defineProperty($f.prototype,"systemImpl",{configurable:!0,get:function(){return this.systemImpl_fl7ai$_0.value}});var bf=new N("currentHttpClient");function Sf(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=8,this.local$this$ContentEntryImportLinkPresenter=t,this.local$closure$link=e,this.local$response=void 0}function vf(t,n,i,o,r,s){var a,c,l;Df(),void 0===s&&(s=new zg(i,void 0,void 0,null!=(c=null!=(a=n.get_11rb$(zG().ARG_CLAZZUID))?de(a):null)?c:O,t,o)),Ez.call(this,t,n,i,o,r),this.contentEntryListItemListener=s,this.navController_59tsuf$_0=H(this,e.isType(l=F(M(P(oO),[],!1)),B)?l:W(),null).provideDelegate_tpuvb9$(this,Cf);var u,h,d,p=this.accountManager.activeAccount;u=this.diTrigger,this.pluginManager_g1g0qq$_0=so(G(this,q.Companion.invoke_np530x$(e.isType(h=F(M(P(Xt),[],!1)),B)?h:W(),p),u),e.isType(d=F(M(P(cl),[],!1)),B)?d:W(),null).provideDelegate_tpuvb9$(this,Nf),this.contentFilter_0=BU().ARG_DISPLAY_CONTENT_BY_PARENT,this.onlyFolderFilter_0=!1,this.loggedPersonUid_0=O,this.parentEntryUidStack_0=ot(),this.movingSelectedItems_0=null,this.selectedChipOption_0=0,this.editVisible_0=Pe(),this.showHiddenEntries_0=!1}Object.defineProperty($f.prototype,"currentHttpClient_0",{configurable:!0,get:function(){return this.currentHttpClient_hoeozz$_0.value}}),Sf.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Sf.prototype=Object.create(L.prototype),Sf.prototype.constructor=Sf,Sf.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$this$ContentEntryImportLinkPresenter.view.inProgress=!0,this.exceptionState_0=5;var t=this.local$this$ContentEntryImportLinkPresenter.currentHttpClient_0,n=new le,i=this.local$this$ContentEntryImportLinkPresenter,o=this.local$closure$link;if(Ct(n,XR().joinPaths_vqirvp$([i.accountManager.activeAccount.endpointUrl,"/import/validateLink"])),Wt(n,"url",o),Vt(n,!1),n.method=ue.Companion.Post,this.state_0=1,this.result_0=new he(n,t).execute(this),this.result_0===T)return T;continue;case 1:if(this.result_0,this.local$response=this.result_0,200!==this.local$response.status.value)return this.local$this$ContentEntryImportLinkPresenter.view.validLink=!1,void(this.local$this$ContentEntryImportLinkPresenter.view.inProgress=!1);this.state_0=2;continue;case 2:var r,s,a=this.local$response.call,c=se.JsType,l=P(pl);t:do{try{s=M(P(pl),[],!1)}catch(t){if(e.isType(t,ce)){s=null;break t}throw t}}while(0);if(this.state_0=3,this.result_0=a.bodyNullable_qi9ur9$(ae(c,l,s),this),this.result_0===T)return T;continue;case 3:this.result_0=e.isType(r=this.result_0,pl)?r:W();var u=this.result_0;if(this.local$this$ContentEntryImportLinkPresenter.view.inProgress=!1,x(this.local$this$ContentEntryImportLinkPresenter.arguments.get_11rb$(zG().ARG_RESULT_DEST_VIEWNAME),DU().VIEW_NAME)){var h,d=this.local$this$ContentEntryImportLinkPresenter,p=this.local$this$ContentEntryImportLinkPresenter.di,_=jt(fl().serializer()),m=$e(u),f=Et(p).directDI.Instance_ohrpre$(e.isType(h=F(M(P(Pt),[],!1)),B)?h:W(),null);return d.finishWithResult_61zpoe$(f.encodeToString_tf03ej$(_,m)),nt}var g=mt();return xA(g,DU().ARG_IMPORTED_METADATA,this.local$this$ContentEntryImportLinkPresenter.json,fl().serializer(),u),IA(g,this.local$this$ContentEntryImportLinkPresenter.arguments,zG().ARG_LEAF),IA(g,this.local$this$ContentEntryImportLinkPresenter.arguments,zG().ARG_PARENT_ENTRY_UID),IA(g,this.local$this$ContentEntryImportLinkPresenter.arguments,DU().BLOCK_REQUIRED),IA(g,this.local$this$ContentEntryImportLinkPresenter.arguments,zG().ARG_CLAZZUID),this.local$this$ContentEntryImportLinkPresenter.navigateForResult_r13zgt$(new Iw(this.local$this$ContentEntryImportLinkPresenter,null,DU().VIEW_NAME,P(Ji),Ji.Companion.serializer(),void 0,void 0,g)),nt;case 4:this.exceptionState_0=8,this.state_0=7;continue;case 5:this.exceptionState_0=8;var $=this.exception_0;if(e.isType($,on))return this.local$this$ContentEntryImportLinkPresenter.view.inProgress=!1,this.local$this$ContentEntryImportLinkPresenter.view.showSnackBar_9pu0dj$(this.local$this$ContentEntryImportLinkPresenter.systemImpl.getString(2274,this.local$this$ContentEntryImportLinkPresenter.context)),lt.Napier.e_82mfvz$("Exception attempting to input import link url",$),nt;throw $;case 6:this.state_0=7;continue;case 7:return;case 8:throw this.exception_0;default:throw this.state_0=8,new Error("State Machine Unreachable execution")}}catch($){if(8===this.state_0)throw this.exceptionState_0=this.state_0,$;this.state_0=this.exceptionState_0,this.exception_0=$}},$f.prototype.handleClickDone_61zpoe$=function(t){var e,n;it(this.presenterScope,It(),void 0,(e=this,n=t,function(t,i,o){var r=new Sf(e,n,t,this,i);return o?r:r.doResume(null)}))},$f.$metadata$={kind:v,simpleName:"ContentEntryImportLinkPresenter",interfaces:[rz]};var Cf=new N("navController");Object.defineProperty(vf.prototype,"navController_0",{configurable:!0,get:function(){return this.navController_59tsuf$_0.value}});var Nf=new N("pluginManager");function Tf(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$ContentEntryList2Presenter=t,this.local$tmp$=void 0}function Lf(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$ContentEntryList2Presenter=t}function zf(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t}function wf(t,e,n,i,o,r,s){L.call(this,s),this.$controller=r,this.exceptionState_0=1,this.local$closure$option=t,this.local$closure$selectedContentEntryParentChildUids=e,this.local$this$ContentEntryList2Presenter=n,this.local$closure$selectedContentEntryUids=i}function Of(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$ContentEntryList2Presenter=t,this.local$tmp$_0=void 0}function Rf(t,e){return function(){return t.systemImpl.go_gofqk3$(BU().VIEW_NAME,y([E(zG().ARG_PARENT_ENTRY_UID,e.toString()),E(BU().ARG_DISPLAY_CONTENT_BY_OPTION,BU().ARG_DISPLAY_CONTENT_BY_PARENT)]),t.context),nt}}function Af(t,e,n,i,o,r){L.call(this,r),this.$controller=o,this.exceptionState_0=1,this.local$this$ContentEntryList2Presenter=t,this.local$closure$destContentEntryUid=e,this.local$closure$parentChildJoinUids=n}function xf(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$this$ContentEntryList2Presenter=t,this.local$closure$entry=e}function If(){Uf=this,this.KEY_SELECTED_ITEMS="selected_items",this.SAVEDSTATE_KEY_FOLDER="Folder_ContentEntry",this.CHIP_ID_MY_CONTENT=1,this.CHIP_ID_FROM_MY_COURSES=2,this.CHIP_ID_LIBRARY=3,this.SORT_OPTIONS=be([new BR(2102,1,!0),new BR(2102,2,!1)]),this.PICKER_CHIP_OPTIONS=be([E(2783,1),E(2782,2),E(2909,3)])}Object.defineProperty(vf.prototype,"pluginManager_0",{configurable:!0,get:function(){return this.pluginManager_g1g0qq$_0.value}}),Object.defineProperty(vf.prototype,"parentEntryUid_0",{configurable:!0,get:function(){var t;return null!=(t=ao(this.parentEntryUidStack_0))?t:O}}),Object.defineProperty(vf.prototype,"sortOptions",{configurable:!0,get:function(){return Df().SORT_OPTIONS}}),Tf.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Tf.prototype=Object.create(L.prototype),Tf.prototype.constructor=Tf,Tf.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(x(this.local$this$ContentEntryList2Presenter.contentFilter_0,BU().ARG_DISPLAY_CONTENT_BY_PARENT)){if(this.local$tmp$=this.local$this$ContentEntryList2Presenter.view,this.state_0=2,this.result_0=this.local$this$ContentEntryList2Presenter.onCheckUpdatePermission(this),this.result_0===T)return T;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:return this.local$tmp$.editOptionVisible=this.result_0,this.local$this$ContentEntryList2Presenter.editVisible_0.complete_11rb$(this.local$this$ContentEntryList2Presenter.view.editOptionVisible),nt;case 3:return nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vf.prototype.onCreate=function(t){var e,n,i,o,r,s,a;Ez.prototype.onCreate.call(this,t),this.contentEntryListItemListener.mListMode=this.mListMode,this.contentEntryListItemListener.presenter=this,this.selectedSortOption=Df().SORT_OPTIONS.get_za3lpa$(0),this.contentFilter_0=null!=(e=this.arguments.get_11rb$(BU().ARG_DISPLAY_CONTENT_BY_OPTION))?e:BU().ARG_DISPLAY_CONTENT_BY_PARENT,this.onlyFolderFilter_0=null!=(i=null!=(n=this.arguments.get_11rb$(BU().ARG_SHOW_ONLY_FOLDER_FILTER))?Xe(n):null)&&i;var c,l=this.parentEntryUidStack_0,u=null!=(a=null!=(s=this.arguments.get_11rb$(zG().ARG_PARENT_ENTRY_UID))?Xn(s):null)?a:zG().MASTER_SERVER_ROOT_ENTRY_UID;if(l.add_11rb$(u),this.loggedPersonUid_0=this.accountManager.activeAccount.personUid,this.showHiddenEntries_0=!1,r=this.view,x(this.arguments.get_11rb$(BU().ARG_USE_CHIPS),(!0).toString())){var h,d=Df().PICKER_CHIP_OPTIONS,p=st(rt(d,10));for(h=d.iterator();h.hasNext();){var _=h.next();p.add_11rb$(new aR(this.systemImpl.getString(_.first,this.context),_.second))}o=p}else o=fe();r.listFilterOptionChips=o,this.getAndSetList_0(),it(this.presenterScope,It(),void 0,(c=this,function(t,e,n){var i=new Tf(c,t,this,e);return n?i:i.doResume(null)}))},vf.prototype.onCheckAddPermission_tn71rk$=function(t,e){return this.db.entityRoleDao.userHasTableLevelPermission_3pjtqy$(this.accountManager.activeAccount.personUid,co,e)},vf.prototype.onCheckUpdatePermission=function(t){return this.db.entityRoleDao.userHasTableLevelPermission_3pjtqy$(this.accountManager.activeAccount.personUid,Yi,t)},vf.prototype.onClickSort_o8nuns$=function(t){Ez.prototype.onClickSort_o8nuns$.call(this,t),this.getAndSetList_0()},Lf.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Lf.prototype=Object.create(L.prototype),Lf.prototype.constructor=Lf,Lf.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n,i=this.local$this$ContentEntryList2Presenter.db;if(null!=(e=null!=(t=x(this.local$this$ContentEntryList2Presenter.parentEntryUid_0,O)?null:i)?t.contentEntryDao:null)){if(this.state_0=2,this.result_0=e.findTitleByUidAsync_s8cxhz$(this.local$this$ContentEntryList2Presenter.parentEntryUid_0,this),this.result_0===T)return T;continue}this.result_0=null,this.state_0=3;continue;case 1:throw this.exception_0;case 2:this.state_0=3;continue;case 3:var o;if(null!=(n=this.result_0)){var r,s=this.local$this$ContentEntryList2Presenter.view;null!=(r=uo(n)?null:s)&&(r.title=n),o=nt}else o=null;return o;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vf.prototype.getAndSetList_0=function(){var t,e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g;f=this.view,1===this.selectedChipOption_0?m=this.repo.contentEntryDao.getContentByOwner_s8cxhz$(this.loggedPersonUid_0):2===this.selectedChipOption_0?m=this.repo.contentEntryDao.getContentFromMyCourses_s8cxhz$(this.loggedPersonUid_0):3===this.selectedChipOption_0?(s=this.repo.contentEntryDao,t=this.parentEntryUid_0,e=this.loggedPersonUid_0,n=this.onlyFolderFilter_0,r=null!=(o=null!=(i=this.selectedSortOption)?i.flag:null)?o:1,m=s.getChildrenByParentUidWithCategoryFilterOrderByName_dqef2m$(t,O,O,e,!1,n,r)):x(this.contentFilter_0,BU().ARG_DISPLAY_CONTENT_BY_PARENT)?(_=this.repo.contentEntryDao,a=this.parentEntryUid_0,c=this.loggedPersonUid_0,l=this.showHiddenEntries_0,u=this.onlyFolderFilter_0,p=null!=(d=null!=(h=this.selectedSortOption)?h.flag:null)?d:1,m=_.getChildrenByParentUidWithCategoryFilterOrderByName_dqef2m$(a,O,O,c,l,u,p)):m=null,f.list=m,it(this.presenterScope,It(),void 0,(g=this,function(t,e,n){var i=new Lf(g,t,this,e);return n?i:i.doResume(null)}))},zf.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},zf.prototype=Object.create(L.prototype),zf.prototype.constructor=zf,zf.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.$this.editVisible_0.await(this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var t=this.result_0;return x(this.$this.contentFilter_0,BU().ARG_DISPLAY_CONTENT_BY_PARENT)&&t?be([EG(),yG()]):fe();default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vf.prototype.onCheckListSelectionOptions_tn71rk$=function(t,e,n){var i=new zf(this,t,e);return n?i:i.doResume(null)},vf.prototype.handleSelectionOptionChanged_4ezy6h$=function(t){if(this.view.editOptionVisible&&x(this.contentFilter_0,BU().ARG_DISPLAY_CONTENT_BY_PARENT)){var n,i=this.view;t:do{var o;if(e.isType(t,V)&&t.isEmpty()){n=!0;break t}for(o=t.iterator();o.hasNext();)if(!o.next().ceInactive){n=!1;break t}n=!0}while(0);i.selectionOptions=be(n?[EG(),bG()]:[EG(),yG()])}},wf.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},wf.prototype=Object.create(L.prototype),wf.prototype.constructor=wf,wf.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:switch(this.local$closure$option.name){case"MOVE":return this.local$this$ContentEntryList2Presenter.handleClickMove_0(this.local$closure$selectedContentEntryParentChildUids),nt;case"HIDE":if(x(this.local$this$ContentEntryList2Presenter.contentFilter_0,BU().ARG_DISPLAY_CONTENT_BY_PARENT)){if(this.state_0=3,this.result_0=this.local$this$ContentEntryList2Presenter.repo.contentEntryDao.toggleVisibilityContentEntryItems_cbj1f0$(!0,this.local$closure$selectedContentEntryUids,et(),this),this.result_0===T)return T;continue}this.state_0=4;continue;case"UNHIDE":if(this.state_0=2,this.result_0=this.local$this$ContentEntryList2Presenter.repo.contentEntryDao.toggleVisibilityContentEntryItems_cbj1f0$(!1,this.local$closure$selectedContentEntryUids,et(),this),this.result_0===T)return T;continue;default:return nt}case 1:throw this.exception_0;case 2:case 3:return nt;case 4:this.state_0=5;continue;case 5:return nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vf.prototype.handleClickSelectionOption_psq284$=function(t,n){var i,o=st(rt(t,10));for(i=t.iterator();i.hasNext();){var r=i.next();o.add_11rb$(r.contentEntryUid)}var s,a=o,c=ot();for(s=t.iterator();s.hasNext();){var l,u,h,d,p=s.next();null!=(l=null!=(d=null!=(h=e.isType(u=p,lo)?u:null)?h.contentEntryParentChildJoin:null)?d.cepcjUid:null)&&c.add_11rb$(l)}var _,m,f,g,$=c;it(this.presenterScope,It(),void 0,(_=n,m=$,f=this,g=a,function(t,e,n){var i=new wf(_,m,f,g,t,this,e);return n?i:i.doResume(null)}))},Of.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Of.prototype=Object.create(L.prototype),Of.prototype.constructor=Of,Of.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(this.local$tmp$_0=this.local$this$ContentEntryList2Presenter.view,this.state_0=2,this.result_0=this.local$this$ContentEntryList2Presenter.onCheckUpdatePermission(this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return t=this.result_0?dG():_G(),this.local$tmp$_0.addMode=t,nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vf.prototype.onListFilterOptionSelected_5mmfk3$=function(t){if(this.selectedChipOption_0=t.optionId,this.parentEntryUidStack_0.clear(),3===t.optionId){it(this.presenterScope,void 0,void 0,(r=this,function(t,e,n){var i=new Of(r,t,this,e);return n?i:i.doResume(null)}));var e=this.parentEntryUidStack_0,n=zG().MASTER_SERVER_ROOT_ENTRY_UID;e.add_11rb$(n)}else{var i=this.parentEntryUidStack_0,o=O;i.add_11rb$(o),this.view.addMode=dG()}var r;this.getAndSetList_0()},vf.prototype.handleClickMove_0=function(t){var e=jn([E(zG().ARG_PARENT_ENTRY_UID,zG().MASTER_SERVER_ROOT_ENTRY_UID.toString()),E(BU().ARG_DISPLAY_CONTENT_BY_OPTION,BU().ARG_DISPLAY_CONTENT_BY_PARENT),E(BU().ARG_SHOW_ONLY_FOLDER_FILTER,(!0).toString()),E(Df().KEY_SELECTED_ITEMS,fn(t,","))]);this.navigateForResult_r13zgt$(new Iw(this,null,BU().FOLDER_VIEW_NAME,P(Ji),Ji.Companion.serializer(),Df().SAVEDSTATE_KEY_FOLDER,!0,e))},Af.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Af.prototype=Object.create(L.prototype),Af.prototype.constructor=Af,Af.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$ContentEntryList2Presenter.repo.contentEntryParentChildJoinDao.moveListOfEntriesToNewParent_8jtwwy$(this.local$closure$destContentEntryUid,this.local$closure$parentChildJoinUids,et(),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.local$this$ContentEntryList2Presenter.view.showSnackBar_9pu0dj$(bn(this.local$this$ContentEntryList2Presenter.systemImpl.getString(2674,this.local$this$ContentEntryList2Presenter.context),"%1$s",this.local$closure$parentChildJoinUids.size.toString()),Rf(this.local$this$ContentEntryList2Presenter,this.local$closure$destContentEntryUid),2180),nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vf.prototype.handleMoveContentEntries_ejltwb$=function(t,e){var n,i,o;t.isEmpty()||it(this.presenterScope,It(),void 0,(n=this,i=e,o=t,function(t,e,r){var s=new Af(n,i,o,t,this,e);return r?s:s.doResume(null)}))},vf.prototype.openContentEntryBranchPicker_4pedz3$=function(t){var e=this.parentEntryUidStack_0,n=t.contentEntryUid;e.add_11rb$(n),this.showContentEntryListByParentUid_0()},vf.prototype.showContentEntryListByParentUid_0=function(){var t,e,n,i,o,r,s;s=this.view,r=this.repo.contentEntryDao,t=this.parentEntryUid_0,e=this.loggedPersonUid_0,o=null!=(i=null!=(n=this.selectedSortOption)?n.flag:null)?i:1,s.list=r.getChildrenByParentUidWithCategoryFilterOrderByName_dqef2m$(t,O,O,e,!1,!1,o)},vf.prototype.handleOnBackPressed=function(){var t=this.mListMode===cG();return t&&(t=this.parentEntryUidStack_0.size>1),!!t&&(this.parentEntryUidStack_0.removeAt_za3lpa$(this.parentEntryUidStack_0.size-1|0),this.showContentEntryListByParentUid_0(),!0)},vf.prototype.handleEntrySelectedFromPicker_dup0gu$=function(t){if(this.arguments.containsKey_11rb$(DU().BLOCK_REQUIRED)){var n=mt(),i=zG().ARG_LEAF,o=(!0).toString();n.put_xwzc9p$(i,o);var r=zG().ARG_PARENT_ENTRY_UID,s=this.parentEntryUid_0.toString();n.put_xwzc9p$(r,s);var a=zG().ARG_ENTITY_UID,c=t.contentEntryUid.toString();n.put_xwzc9p$(a,c),IA(n,this.arguments,DU().BLOCK_REQUIRED),IA(n,this.arguments,zG().ARG_CLAZZUID),this.navigateForResult_r13zgt$(new Iw(this,null,DU().VIEW_NAME,P(di),di.Companion.serializer(),void 0,void 0,n))}else{var l,u=this.di,h=jt(Ji.Companion.serializer()),d=$e(t),p=Et(u).directDI.Instance_ohrpre$(e.isType(l=F(M(P(Pt),[],!1)),B)?l:W(),null);this.finishWithResult_61zpoe$(p.encodeToString_tf03ej$(h,d))}},vf.prototype.handleClickCreateNewFab=function(){this.view.showContentEntryAddOptions()},vf.prototype.handleClickAddNewItem_a4m1mt$$default=function(t,e){this.handleClickCreateNewFab()},vf.prototype.handleClickEditFolder=function(){var t=jn([E(zG().ARG_ENTITY_UID,this.parentEntryUid_0.toString())]);this.navigateForResult_r13zgt$(new Iw(this,null,DU().VIEW_NAME,P(Ji),Ji.Companion.serializer(),void 0,void 0,t))},vf.prototype.handleClickShowHiddenItems=function(){this.showHiddenEntries_0=!0,this.getAndSetList_0()},vf.prototype.onClickNewFolder=function(){var t=jn([E(zG().ARG_PARENT_ENTRY_UID,this.parentEntryUid_0.toString()),E(zG().ARG_LEAF,(!1).toString())]);IA(t,this.arguments,Df().KEY_SELECTED_ITEMS),this.navigateForResult_r13zgt$(new Iw(this,null,DU().VIEW_NAME,P(Ji),Ji.Companion.serializer(),void 0,void 0,t))},vf.prototype.handleOnClickAddSupportedFile=function(){var t=fn(je([fn(vl().EPUB_MIME_TYPES,";"),fn(vl().EPUB_EXTENSIONS,";"),fn(vl().XAPI_MIME_TYPES,";"),fn(vl().ZIP_EXTENSIONS,";"),fn(vl().H5P_MIME_TYPES,";"),fn(vl().H5P_EXTENSIONS,";"),fn(vl().PDF_EXTENSIONS,";"),fn(vl().PDF_MIME_TYPES,";"),qk().SELECTION_MODE_GALLERY]),";"),e=jn([E(qk().ARG_MIMETYPE_SELECTED,t),E(zG().ARG_PARENT_ENTRY_UID,this.parentEntryUid_0.toString()),E(zG().ARG_LEAF,(!0).toString())]);IA(e,this.arguments,Df().KEY_SELECTED_ITEMS),this.navigateForResult_r13zgt$(new Iw(this,null,qk().VIEW_NAME,P(Ji),Ji.Companion.serializer(),void 0,void 0,e))},vf.prototype.onClickImportFile=function(){var t,e,n,i=jn([E(qk().ARG_MIMETYPE_SELECTED,null!=(n=null!=(e=null!=(t=this.pluginManager_0)?t.supportedMimeTypeList:null)?fn(e,";"):null)?n:"*/*"),E(zG().ARG_PARENT_ENTRY_UID,this.parentEntryUid_0.toString()),E(zG().ARG_LEAF,(!0).toString())]);IA(i,this.arguments,Df().KEY_SELECTED_ITEMS),IA(i,this.arguments,DU().BLOCK_REQUIRED),IA(i,this.arguments,zG().ARG_CLAZZUID),this.navigateForResult_r13zgt$(new Iw(this,null,Mk().VIEW_NAME,P(Ji),Ji.Companion.serializer(),void 0,void 0,i))},vf.prototype.onClickImportLink=function(){var t=jn([E(zG().ARG_PARENT_ENTRY_UID,this.parentEntryUid_0.toString()),E(zG().ARG_LEAF,(!0).toString())]);IA(t,this.arguments,Df().KEY_SELECTED_ITEMS),IA(t,this.arguments,DU().BLOCK_REQUIRED),IA(t,this.arguments,zG().ARG_CLAZZUID),this.navigateForResult_r13zgt$(new Iw(this,null,jU().VIEW_NAME,P(Ji),Ji.Companion.serializer(),void 0,void 0,t))},vf.prototype.onClickImportGallery=function(){var t=jn([E(qk().ARG_MIMETYPE_SELECTED,qk().SELECTION_MODE_GALLERY),E(zG().ARG_PARENT_ENTRY_UID,this.parentEntryUid_0.toString()),E(zG().ARG_LEAF,(!0).toString())]);IA(t,this.arguments,Df().KEY_SELECTED_ITEMS),IA(t,this.arguments,DU().BLOCK_REQUIRED),IA(t,this.arguments,zG().ARG_CLAZZUID),this.navigateForResult_r13zgt$(new Iw(this,null,Mk().VIEW_NAME,P(Ji),Ji.Companion.serializer(),void 0,void 0,t))},vf.prototype.onClickAddFolder=function(){var t=jn([E(zG().ARG_PARENT_ENTRY_UID,this.parentEntryUid_0.toString()),E(zG().ARG_LEAF,(!0).toString())]);IA(t,this.arguments,Df().KEY_SELECTED_ITEMS),this.navigateForResult_r13zgt$(new Iw(this,null,Hk().VIEW_NAME,P(Ji),Ji.Companion.serializer(),void 0,void 0,t))},xf.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},xf.prototype=Object.create(L.prototype),xf.prototype.constructor=xf,xf.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n,i;if(this.local$this$ContentEntryList2Presenter.arguments.containsKey_11rb$(Df().KEY_SELECTED_ITEMS)){var o;if(null!=(n=null!=(t=this.local$this$ContentEntryList2Presenter.arguments.get_11rb$(Df().KEY_SELECTED_ITEMS))?Pi(t,[","]):null)){var r,s=st(rt(n,10));for(r=n.iterator();r.hasNext();){var a,c=r.next();s.add_11rb$(de(Oi(e.isCharSequence(a=c)?a:W()).toString()))}o=s}else o=null;var l=null!=(i=o)?i:fe();if(this.state_0=2,this.result_0=this.local$this$ContentEntryList2Presenter.repo.contentEntryParentChildJoinDao.moveListOfEntriesToNewParent_8jtwwy$(this.local$closure$entry.contentEntryUid,l,et(),this),this.result_0===T)return T;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:case 3:return nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vf.prototype.handleMoveWithSelectedEntry_dup0gu$=function(t){var e,n;it(this.presenterScope,It(),void 0,(e=this,n=t,function(t,i,o){var r=new xf(e,n,t,this,i);return o?r:r.doResume(null)}))},If.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var Uf=null;function Df(){return null===Uf&&new If,Uf}function Pf(){}function Mf(t,e,n,i,o){_z.call(this,t,e,n,i,o)}function kf(t,e,n,i,o){Hf(),fz.call(this,t,e,n,o,i),this.clazzUid_0=O,this.topicsOneToManyJoinEditHelper_0=new NR(Ni("discussionTopicUid",1,(function(t){return t.discussionTopicUid}),(function(t,e){t.discussionTopicUid=e})),Hf().ARG_SAVEDSTATE_DISCUSSION_TOPIC,jt(ho.Companion.serializer()),jt(ho.Companion.serializer()),this,this.requireSavedStateHandle(),P(ho),void 0,Vf)}function jf(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$this$CourseDiscussionEditPresenter=t,this.local$it=e}function Gf(t){return function(e,n,i){var o=new jf(t,e,n);return i?o:o.doResume(null)}}function qf(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$editEntity=t,this.local$this$CourseDiscussionEditPresenter=e}function Ff(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$entity=t,this.local$this$CourseDiscussionEditPresenter=e}function Bf(){Wf=this,this.SAVEDSTATE_KEY_DISCUSSION_TOPIC="DiscussionTopic",this.ARG_SAVEDSTATE_DISCUSSION_TOPIC="ArgSavedStateDiscussionTopic"}vf.prototype.onClickContentEntry_dup0gu$=function(t){return this.contentEntryListItemListener.onClickContentEntry_dup0gu$(t)},vf.prototype.onClickDownloadContentEntry_dup0gu$=function(t){return this.contentEntryListItemListener.onClickDownloadContentEntry_dup0gu$(t)},vf.prototype.onClickSelectContentEntry_dup0gu$=function(t){return this.contentEntryListItemListener.onClickSelectContentEntry_dup0gu$(t)},vf.$metadata$={kind:v,simpleName:"ContentEntryList2Presenter",interfaces:[x_,Pf,Ez]},Pf.$metadata$={kind:ge,simpleName:"ContentEntryListItemListener",interfaces:[]},Object.defineProperty(Mf.prototype,"persistenceMode",{configurable:!0,get:function(){return Uz()}}),Mf.prototype.onCheckEditPermission_tn71rk$=function(t,e){return!1},Mf.prototype.onLoadLiveData_7hogkd$=function(t){var e,n,i=null!=(n=null!=(e=this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(e):null)?n:O;return this.view.topics=t.discussionTopicDao.getListOfTopicsByDiscussion_s8cxhz$(i),t.courseDiscussionDao.getCourseDiscussionByUid_s8cxhz$(i)},Mf.prototype.handleClickEdit=function(){},Mf.prototype.onClickTopic_5oep0w$=function(t){var e,n,i=mt(),o=zG().ARG_ENTITY_UID,r=null!=(e=t.discussionTopicUid.toString())?e:"";i.put_xwzc9p$(o,r),null!=(n=this.ustadNavController)&&n.navigate_oc2wlg$(RD().VIEW_NAME,i)},Mf.$metadata$={kind:v,simpleName:"CourseDiscussionDetailPresenter",interfaces:[_z]},Object.defineProperty(kf.prototype,"persistenceMode",{configurable:!0,get:function(){return Iz()}}),kf.prototype.onCreate=function(t){fz.prototype.onCreate.call(this,t),this.view.topicList=this.topicsOneToManyJoinEditHelper_0.liveList},kf.prototype.onLoadDataComplete=function(){var t;fz.prototype.onLoadDataComplete.call(this),this.observeSavedStateResult_u0dr5v$(Hf().SAVEDSTATE_KEY_DISCUSSION_TOPIC,jt(ho.Companion.serializer()),P(ho),new bt((t=this,function(e){var n,i,o,r,s;if(null!=(n=Un(e))){var a,c,l=n;if(null!=(i=t.topicsOneToManyJoinEditHelper_0.liveList.getValue())){var u;t:do{var h;for(h=i.iterator();h.hasNext();){var d=h.next();if(x(d.discussionTopicUid,l.discussionTopicUid)){u=d;break t}}u=null}while(0);a=u}else a=null;if(null!=(o=a))c=o;else{var p,_,m=new ho,f=t;m.discussionTopicUid=l.discussionTopicUid,m.discussionTopicStartDate=et(),m.discussionTopicCourseDiscussionUid=null!=(_=null!=(p=f.entity)?p.cbEntityUid:null)?_:O,m.discussionTopicTitle=l.discussionTopicTitle,m.discussionTopicDesc=l.discussionTopicDesc,c=m}var g=c;return g.discussionTopicTitle=l.discussionTopicTitle,g.discussionTopicDesc=l.discussionTopicDesc,g.discussionTopicClazzUid=null!=(s=null!=(r=t.arguments.get_11rb$(zG().ARG_CLAZZUID))?de(r):null)?s:O,t.topicsOneToManyJoinEditHelper_0.onEditResult_trkh7z$(g),t.requireSavedStateHandle().set_umlfku$(Hf().SAVEDSTATE_KEY_DISCUSSION_TOPIC,null),nt}})))},jf.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},jf.prototype=Object.create(L.prototype),jf.prototype.constructor=jf,jf.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$it.clazzDao.getClazzWithSchool_s8cxhz$(this.local$this$CourseDiscussionEditPresenter.clazzUid_0,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},qf.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},qf.prototype=Object.create(L.prototype),qf.prototype.constructor=qf,qf.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n,i,o;if(this.local$this$CourseDiscussionEditPresenter.clazzUid_0=null!=(i=null!=(n=null!=(t=this.local$closure$editEntity.courseDiscussion)?t.courseDiscussionClazzUid:null)?n:null!=(e=this.local$this$CourseDiscussionEditPresenter.arguments.get_11rb$(zG().ARG_CLAZZUID))?de(e):null)?i:O,this.state_0=2,this.result_0=Rt(this.local$this$CourseDiscussionEditPresenter.db,Ot,Gf(this.local$this$CourseDiscussionEditPresenter),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var r=hA(null!=(o=this.result_0)?o:new Rn);return this.local$this$CourseDiscussionEditPresenter.view.timeZone=r,this.local$this$CourseDiscussionEditPresenter.loadEntityIntoDateTime_gqx91x$(this.local$closure$editEntity),nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kf.prototype.onLoadFromJson_y0zsll$=function(t){var n,i;fz.prototype.onLoadFromJson_y0zsll$.call(this,t);var o=t.get_11rb$(oG().ARG_ENTITY_JSON);if(null!=o){var r,s=this.di,a=Kn.Companion.serializer();n=Et(s).directDI.Instance_ohrpre$(e.isType(r=F(M(P(Pt),[],!1)),B)?r:W(),null).decodeFromString_awif5v$(a,o)}else{var c,l,u=new Kn;u.cbUid=Dn(this.db).nextId_za3lpa$(124),u.cbClazzUid=null!=(l=null!=(c=this.arguments.get_11rb$(zG().ARG_CLAZZUID))?de(c):null)?l:O,u.cbEntityUid=Dn(this.db).nextId_za3lpa$(130),u.cbType=105;var h,d,p=new vi;p.courseDiscussionUid=u.cbEntityUid,p.courseDiscussionClazzUid=null!=(d=null!=(h=this.arguments.get_11rb$(zG().ARG_CLAZZUID))?de(h):null)?d:O,u.courseDiscussion=p,n=u}var _,m,f=n;return this.topicsOneToManyJoinEditHelper_0.onLoadFromJsonSavedState_alv73c$(t),this.topicsOneToManyJoinEditHelper_0.liveList.postValue_11rb$(null!=(i=f.topics)?i:fe()),it(this.presenterScope,void 0,void 0,(_=f,m=this,function(t,e,n){var i=new qf(_,m,t,this,e);return n?i:i.doResume(null)})),f},kf.prototype.onSaveInstanceState_gtra9a$=function(t){fz.prototype.onSaveInstanceState_gtra9a$.call(this,t);var e=this.entity;null!=e&&(this.saveDateTimeIntoEntity_0(e),e.topics=this.topicsOneToManyJoinEditHelper_0.liveList.getValue()),xA(t,oG().ARG_ENTITY_JSON,this.json,Kn.Companion.serializer(),e)},kf.prototype.loadEntityIntoDateTime_gqx91x$=function(t){var e,n=null!=(e=this.view.timeZone)?e:"UTC";if(x(t.cbHideUntilDate,O))this.view.startDate=O;else{var i=bO(D.Companion.invoke_s8cxhz$(t.cbHideUntilDate),n).unixMillisLong;this.view.startDate=i,this.view.startTime=t.cbHideUntilDate.subtract(i)}},kf.prototype.saveDateTimeIntoEntity_0=function(t){var e,n=null!=(e=this.view.timeZone)?e:"UTC",i=yO(D.Companion.invoke_s8cxhz$(this.view.startDate),n),o=i.hours,r=Yn.Companion.fromHours_14dthe$(o),s=i.minutes,a=r.plus_fv8bff$(Yn.Companion.fromMinutes_14dthe$(s)),c=i.seconds,l=a.plus_fv8bff$(Yn.Companion.fromSeconds_14dthe$(c)),u=i.milliseconds;t.cbHideUntilDate=i.minus_fv8bff$(l.plus_fv8bff$(Yn.Companion.fromMilliseconds_14dthe$(u))).utc.unixMillisLong.add(this.view.startTime)},kf.prototype.handleClickDeleteTopic_1ddffl$=function(t){this.topicsOneToManyJoinEditHelper_0.onDeactivateEntity_trkh7z$(t)},kf.prototype.handleClickTopic_1ddffl$=function(t){this.navigateForResult_r13zgt$(new Iw(this,t,UD().VIEW_NAME,P(ho),ho.Companion.serializer(),Hf().SAVEDSTATE_KEY_DISCUSSION_TOPIC,void 0,jn([E(zG().ARG_CLAZZUID,this.clazzUid_0.toString())])))},kf.prototype.handleClickAddTopic=function(){this.navigateForResult_r13zgt$(new Iw(this,null,UD().VIEW_NAME,P(ho),ho.Companion.serializer(),Hf().SAVEDSTATE_KEY_DISCUSSION_TOPIC,void 0,rn(this.arguments)))},Ff.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Ff.prototype=Object.create(L.prototype),Ff.prototype.constructor=Ff,Ff.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;this.local$this$CourseDiscussionEditPresenter.saveDateTimeIntoEntity_0(this.local$closure$entity);var n=!1,i=null!=(t=this.local$closure$entity.courseDiscussion)?t.courseDiscussionTitle:null;if(null==i||0===i.length?(this.local$this$CourseDiscussionEditPresenter.view.blockTitleError=this.local$this$CourseDiscussionEditPresenter.systemImpl.getString(2126,this.local$this$CourseDiscussionEditPresenter.context),n=!0):this.local$this$CourseDiscussionEditPresenter.view.blockTitleError=null,n)return;this.local$this$CourseDiscussionEditPresenter.view.loading=!0,this.local$this$CourseDiscussionEditPresenter.view.fieldsEnabled=!1,this.local$closure$entity.topics=ri(this.local$this$CourseDiscussionEditPresenter.topicsOneToManyJoinEditHelper_0.entitiesToInsert,this.local$this$CourseDiscussionEditPresenter.topicsOneToManyJoinEditHelper_0.entitiesToUpdate),this.local$closure$entity.topicUidsToRemove=this.local$this$CourseDiscussionEditPresenter.topicsOneToManyJoinEditHelper_0.primaryKeysToDeactivate;var o,r=this.local$this$CourseDiscussionEditPresenter,s=this.local$this$CourseDiscussionEditPresenter.di,a=jt(Kn.Companion.serializer()),c=$e(this.local$closure$entity),l=Et(s).directDI.Instance_ohrpre$(e.isType(o=F(M(P(Pt),[],!1)),B)?o:W(),null);return r.finishWithResult_61zpoe$(l.encodeToString_tf03ej$(a,c)),this.local$this$CourseDiscussionEditPresenter.view.loading=!1,this.local$this$CourseDiscussionEditPresenter.view.fieldsEnabled=!0,nt;case 1:throw this.exception_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kf.prototype.handleClickSave_nqi3in$=function(t){var e,n;it(this.presenterScope,void 0,void 0,(e=t,n=this,function(t,i,o){var r=new Ff(e,n,t,this,i);return o?r:r.doResume(null)}))},kf.prototype.onItemMove_vux9f0$=function(t,e){var n,i,o,r,s=null!=(i=null!=(n=this.topicsOneToManyJoinEditHelper_0.liveList.getValue())?En(n):null)?i:ot(),a=s.get_za3lpa$(t);s.remove_11rb$(a),s.add_wxm5ur$(e,a);var c=0;for(o=s.iterator();o.hasNext();)o.next().discussionTopicIndex=Ri((c=(r=c)+1|0,r));return this.topicsOneToManyJoinEditHelper_0.liveList.postValue_11rb$(qt(s)),!0},kf.prototype.onItemDismiss_za3lpa$=function(t){},Bf.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var Wf=null;function Hf(){return null===Wf&&new Bf,Wf}function Vf(t,e){return t.discussionTopicUid=e,nt}function Kf(t,e,n,i,o){Qf(),_z.call(this,t,e,n,o,i),this.clazzUid_0=O}function Xf(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityUid=void 0,this.local$entity=void 0,this.local$db=e}function Jf(){Yf=this}kf.$metadata$={kind:v,simpleName:"CourseDiscussionEditPresenter",interfaces:[_P,fz]},Object.defineProperty(Kf.prototype,"persistenceMode",{configurable:!0,get:function(){return xz()}}),Kf.prototype.onCheckEditPermission_tn71rk$=function(t,e){var n,i,o;return this.clazzUid_0=null!=(i=null!=(n=this.arguments.get_11rb$(zG().ARG_CLAZZUID))?de(n):null)?i:O,this.repo.clazzDao.personHasPermissionWithClazz_b9bd0d$(null!=(o=null!=t?t.personUid:null)?o:O,this.clazzUid_0,Qn,e)},Xf.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Xf.prototype=Object.create(L.prototype),Xf.prototype.constructor=Xf,Xf.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n;if(this.local$entityUid=null!=(e=null!=(t=this.$this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(t):null)?e:O,this.state_0=2,this.result_0=this.local$db.courseGroupSetDao.findByUidAsync_s8cxhz$(this.local$entityUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(this.local$entity=this.result_0,this.state_0=3,this.result_0=this.local$db.courseGroupMemberDao.findByGroupSetOrderedAsync_3pjtqy$(this.local$entityUid,null!=(n=null!=this.local$entity?this.local$entity.cgsClazzUid:null)?n:O,this),this.result_0===T)return T;continue;case 3:var i,o=this.result_0,r=mt();for(i=o.iterator();i.hasNext();){var s,a,c,l=i.next(),u=null!=(a=null!=(s=l.member)?s.cgmGroupNumber:null)?a:0,h=r.get_11rb$(u);if(null==h){var d=ot();r.put_xwzc9p$(u,d),c=d}else c=h;c.add_11rb$(l)}var p,_=r,m=ot();for(p=_.entries.iterator();p.hasNext();){var f=p.next(),g=new po,$=new _o;$.cgmGroupNumber=f.key,g.member=$,m.add_11rb$(g),m.addAll_brywnq$(f.value)}return this.$this.view.memberList=m,this.local$entity;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Kf.prototype.onLoadEntityFromDb_7hogkd$=function(t,e,n){var i=new Xf(this,t,e);return n?i:i.doResume(null)},Kf.prototype.handleClickEdit=function(){var t,e;this.navigateForResult_r13zgt$(new Iw(this,null,sD().VIEW_NAME,P(Vn),Vn.Companion.serializer(),_S().RESULT_REPORT_KEY,void 0,jn([E(zG().ARG_ENTITY_UID,He(null!=(t=this.entity)?t.cgsUid:null)),E(zG().ARG_CLAZZUID,He(null!=(e=this.entity)?e.cgsClazzUid:null))])))},Jf.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var Yf=null;function Qf(){return null===Yf&&new Jf,Yf}Kf.$metadata$={kind:v,simpleName:"CourseGroupSetDetailPresenter",interfaces:[_z]};var Zf=zi((function(){var t=e.kotlin.comparisons.compareValues_s00gnj$;return function(e){return function(n,i){var o=e;return t(o(n),o(i))}}}));function tg(t,e,n,i,o){dg(),fz.call(this,t,e,n,o,i)}function eg(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$closure$entityUid=t,this.local$it=e}function ng(t){return function(e,n,i){var o=new eg(t,e,n);return i?o:o.doResume(null)}}function ig(t,e,n,i){L.call(this,i),this.exceptionState_0=1,this.local$closure$entityUid=t,this.local$closure$clazzUid=e,this.local$it=n}function og(t,e){return function(n,i,o){var r=new ig(t,e,n,i);return o?r:r.doResume(null)}}function rg(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityUid=void 0,this.local$clazzUid=void 0,this.local$entity=void 0,this.local$db=e}function sg(t,e,n,i){L.call(this,i),this.exceptionState_0=1,this.local$closure$entity=t,this.local$closure$members=e,this.local$tmp$=void 0,this.local$toUpdateList=void 0,this.local$txDb=n}function ag(t,e){return function(n,i,o){var r=new sg(t,e,n,i);return o?r:r.doResume(null)}}function cg(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$this$CourseGroupSetEditPresenter=t,this.local$closure$entity=e}function lg(t){return t.firstNames}function ug(){hg=this,this.SAVED_STATE_MEMBER_LIST="memberList"}Object.defineProperty(tg.prototype,"persistenceMode",{configurable:!0,get:function(){return xz()}}),eg.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},eg.prototype=Object.create(L.prototype),eg.prototype.constructor=eg,eg.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e;if(null!=(e=null!=(t=x(this.local$closure$entityUid,O)?null:this.local$it)?t.courseGroupSetDao:null)){if(this.state_0=2,this.result_0=e.findByUidAsync_s8cxhz$(this.local$closure$entityUid,this),this.result_0===T)return T;continue}this.result_0=null,this.state_0=3;continue;case 1:throw this.exception_0;case 2:this.state_0=3;continue;case 3:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ig.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},ig.prototype=Object.create(L.prototype),ig.prototype.constructor=ig,ig.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$it.courseGroupMemberDao.findByGroupSetAsync_3pjtqy$(this.local$closure$entityUid,this.local$closure$clazzUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},rg.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},rg.prototype=Object.create(L.prototype),rg.prototype.constructor=rg,rg.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n,i,o;if(this.local$entityUid=null!=(e=null!=(t=this.$this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(t):null)?e:O,this.local$clazzUid=null!=(i=null!=(n=this.$this.arguments.get_11rb$(zG().ARG_CLAZZUID))?de(n):null)?i:O,this.state_0=2,this.result_0=Rt(this.local$db,Ot,ng(this.local$entityUid),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var r;if(null!=(o=this.result_0))r=o;else{var s=new Vn;s.cgsClazzUid=this.local$clazzUid,r=s}if(this.local$entity=r,this.state_0=3,this.result_0=Rt(this.local$db,Ot,og(this.local$entityUid,this.local$clazzUid),this),this.result_0===T)return T;continue;case 3:var a,c=this.result_0;for(a=c.iterator();a.hasNext();){var l,u=a.next();if(null==u.member){var h=new _o;h.cgmPersonUid=u.personUid,h.cgmSetUid=this.local$entityUid,l=h}else l=u.member;u.member=l}return this.$this.view.memberList=c,this.$this.view.groupList=this.$this.createGroupList_0(this.local$entity.cgsTotalGroups),this.local$entity;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tg.prototype.onLoadEntityFromDb_7hogkd$=function(t,e,n){var i=new rg(this,t,e);return n?i:i.doResume(null)},tg.prototype.createGroupList_0=function(t){for(var e=ot(),n=0;n0&&null!=(h=this.local$opf.creators_8be2vx$)?fn(h,","):null,this.$this.arguments.containsKey_11rb$(kD().ARG_INITIAL_PAGE_HREF)&&this.local$opf.getLinearSpinePositionByHREF_61zpoe$(ke(this.$this.arguments,kD().ARG_INITIAL_PAGE_HREF));var J=this.local$opf.title;if(null==J||uo(J)){if(this.state_0=5,this.result_0=this.$this.db_0.contentEntryDao.findTitleByUidAsync_s8cxhz$(this.$this.contentEntryUid,this),this.result_0===T)return T;continue}this.local$tmp$_10=this.local$opf.title,this.state_0=6;continue;case 5:this.local$tmp$_10=this.result_0,this.state_0=6;continue;case 6:var Y,Q,Z,tt,et,nt=this.local$tmp$_10;this.$this.epubContentView_0.runOnUiThread_9ywmpy$(new h$(C$(nt,this.$this,this.local$opfCoverImageItem,this.local$authorNames)));var it,ot,rt,st,at,ct,lt=null!=(p=null!=(d=this.local$opf.navItem)?d.href:null)&&null!=(et=null!=(tt=null!=(Z=null!=(Q=null!=(Y=this.$this.ocf_0)?Y.rootFiles_8be2vx$:null)?Q.get_za3lpa$(0):null)?Z.fullPath:null)?XR().joinPaths_vqirvp$([this.$this.mountedPath_0,tt]):null)?XR().resolveLink_puj7f4$(et,p):null;it=null!=(m=null!=(_=this.local$opf.ncxItem)?_.href:null)&&null!=(ct=null!=(at=null!=(st=null!=(rt=null!=(ot=this.$this.ocf_0)?ot.rootFiles_8be2vx$:null)?rt.get_za3lpa$(0):null)?st.fullPath:null)?XR().joinPaths_vqirvp$([this.$this.mountedPath_0,at]):null)?XR().resolveLink_puj7f4$(ct,m):null;var ut=null!=lt?lt:it;if(null!=ut){var ht=new le;if(Ct(ht,ut),u$(),ht.method=ue.Companion.Get,this.state_0=7,this.result_0=new he(ht,this.local$client).execute(this),this.result_0===T)return T;continue}this.state_0=9;continue;case 7:var dt;this.result_0;var pt,_t=this.result_0.call,mt=se.JsType,ft=ne;t:do{try{pt=M(ne,[],!1)}catch(t){if(e.isType(t,ce)){pt=null;break t}throw t}}while(0);if(this.state_0=8,this.result_0=_t.bodyNullable_qi9ur9$(ae(mt,ft,pt),this),this.result_0===T)return T;continue;case 8:this.result_0="string"==typeof(dt=this.result_0)?dt:W();var gt=this.result_0,$t=new dc;this.$this.mNavDocument_0=$t;var yt=$t,bt=this.local$xppFactoryNsAware.newPullParser();zo(bt,gt),yt.load_gtk95s$(bt),this.$this.epubContentView_0.runOnUiThread_9ywmpy$(new h$(N$(yt,this.$this))),this.state_0=9;continue;case 9:this.$this.view.runOnUiThread_9ywmpy$(new h$(T$(this.$this))),this.exceptionState_0=12,this.state_0=11;continue;case 10:this.exceptionState_0=12;var St=this.exception_0;if(!e.isType(St,on))throw St;e.isType(St,Ye)||(this.$this.isStarted_0?this.$this.navigateToErrorScreen_3lhtaa$(St):this.$this.onCreateException_0=St),this.state_0=11;continue;case 11:return;case 12:throw this.exception_0;default:throw this.state_0=12,new Error("State Machine Unreachable execution")}}catch(St){if(12===this.state_0)throw this.exceptionState_0=this.state_0,St;this.state_0=this.exceptionState_0,this.exception_0=St}},d$.prototype.handleMountedContainer_0=function(t,e){var n=new L$(this,t);return e?n:n.doResume(null)},d$.prototype.handleClickNavItem=function(t){var e,n,i=this.opfBaseUrl_0,o=null!=i;if(o&&(o=!(0===this.linearSpineUrls_0.length)),o){var r=null!=(e=t.href)?XR().resolveLink_puj7f4$(i,wo(e,"#")):null,s=Oo(be(this.linearSpineUrls_0.slice()),r);-1!==s?this.epubContentView_0.scrollToSpinePosition_vqvrqt$(s,null!=(n=t.href)?Ro(n,"#",""):null):this.epubContentView_0.showSnackBar_9pu0dj$(this.systemImpl_0.getString(2173,this.context))}},d$.prototype.handlePageChanged_za3lpa$=function(t){this.mCurrentPage=t;var e=this.maxPageReached;this.maxPageReached=mn.max(t,e),this.updateWindowTitle_0()},d$.prototype.handlePageTitleChanged_vqvrqt$=function(t,e){this.pageTitles_0.put_xwzc9p$(t,e),this.updateWindowTitle_0()},d$.prototype.updateWindowTitle_0=function(){var t,e,n,i,o,r,s,a=null!=(e=null!=(t=this.opfBaseUrl_0)?Be(this.linearSpineUrls_0[this.mCurrentPage],t,""):null)?e:"";this.mCurrentPage==this.mCurrentPage&&(this.view.windowTitle=null!=(s=null!=(r=null!=(o=null!=(i=null!=(n=this.mNavDocument_0)?n.getNavByHref_61zpoe$(a):null)?i.title:null)?o:this.pageTitles_0.get_11rb$(this.mCurrentPage))?r:this.view.setContainerTitle)?s:"")},d$.prototype.onDestroy=function(){this.mountedPath_0.length,rz.prototype.onDestroy.call(this)},z$.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var w$=null;function O$(){return null===w$&&new z$,w$}function R$(t,e,n,i,o){W$(),fz.call(this,t,e,n,o,i),this.holidayOneToManyJoinEditHelper_0=new NR(Ni("holUid",1,(function(t){return t.holUid}),(function(t,e){t.holUid=e})),W$().ARG_SAVED_STATE_HOLIDAY,jt(Do.Companion.serializer()),jt(Do.Companion.serializer()),this,this.requireSavedStateHandle(),P(Do),void 0,H$),this.holidayToManyJoinListener=this.holidayOneToManyJoinEditHelper_0.createNavigateForResultListener_g113xi$(rP().VIEW_NAME,Do.Companion.serializer())}function A$(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$db=t,this.local$closure$entityUid=e}function x$(t,e){return function(n,i,o){var r=new A$(t,e,n,this,i);return o?r:r.doResume(null)}}function I$(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$db=t,this.local$closure$entityUid=e}function U$(t,e){return function(n,i,o){var r=new I$(t,e,n,this,i);return o?r:r.doResume(null)}}function D$(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityUid=void 0,this.local$holidayCalendar=void 0,this.local$db=e}function P$(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$this$HolidayCalendarEditPresenter=t,this.local$it=e}function M$(t){return function(e,n,i){var o=new P$(t,e,n);return i?o:o.doResume(null)}}function k$(t){return function(e){return e.holHolidayCalendarUid=t.umCalendarUid,nt}}function j$(t,e,n,i){L.call(this,i),this.exceptionState_0=1,this.local$this$HolidayCalendarEditPresenter=t,this.local$closure$entity=e,this.local$txRepo=n}function G$(t,e){return function(n,i,o){var r=new j$(t,e,n,i);return o?r:r.doResume(null)}}function q$(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$entity=t,this.local$this$HolidayCalendarEditPresenter=e,this.local$tmp$=void 0}function F$(){B$=this,this.ARG_SAVED_STATE_HOLIDAY="Holiday"}d$.$metadata$={kind:v,simpleName:"EpubContentPresenter",interfaces:[rz]},new N("navController"),new N("accountManager"),new N("db"),new N("repo"),new N("systemImpl"),new N("accountManager"),new N("dbRepo"),new N("db"),new N("contentEntryOpener"),new N("systemImpl"),Object.defineProperty(R$.prototype,"persistenceMode",{configurable:!0,get:function(){return xz()}}),R$.prototype.onCreate=function(t){fz.prototype.onCreate.call(this,t),this.view.holidayList=this.holidayOneToManyJoinEditHelper_0.liveList},A$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},A$.prototype=Object.create(L.prototype),A$.prototype.constructor=A$,A$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$closure$db.holidayCalendarDao.findByUidAsync_s8cxhz$(this.local$closure$entityUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},I$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},I$.prototype=Object.create(L.prototype),I$.prototype.constructor=I$,I$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$closure$db.holidayDao.findByHolidayCalendaUidAsync_s8cxhz$(this.local$closure$entityUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},D$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},D$.prototype=Object.create(L.prototype),D$.prototype.constructor=D$,D$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n,i;if(this.local$entityUid=null!=(e=null!=(t=this.$this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(t):null)?e:O,this.state_0=2,this.result_0=qi(Ot,x$(this.local$db,this.local$entityUid),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(this.local$holidayCalendar=null!=(n=this.result_0)?n:new ui,this.state_0=3,this.result_0=qi(Ot,U$(this.local$db,this.local$entityUid),this),this.result_0===T)return T;continue;case 3:var o=null!=(i=this.result_0)?i:fe();return this.$this.holidayOneToManyJoinEditHelper_0.liveList.postValue_11rb$(o),this.local$holidayCalendar;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},R$.prototype.onLoadEntityFromDb_7hogkd$=function(t,e,n){var i=new D$(this,t,e);return n?i:i.doResume(null)},R$.prototype.onLoadFromJson_y0zsll$=function(t){var n;fz.prototype.onLoadFromJson_y0zsll$.call(this,t);var i=t.get_11rb$(oG().ARG_ENTITY_JSON);if(null!=i){var o,r=this.di,s=ui.Companion.serializer();n=Et(r).directDI.Instance_ohrpre$(e.isType(o=F(M(P(Pt),[],!1)),B)?o:W(),null).decodeFromString_awif5v$(s,i)}else n=new ui;return n},R$.prototype.onSaveInstanceState_gtra9a$=function(t){fz.prototype.onSaveInstanceState_gtra9a$.call(this,t),xA(t,oG().ARG_ENTITY_JSON,this.json,ui.Companion.serializer(),this.entity)},P$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},P$.prototype=Object.create(L.prototype),P$.prototype.constructor=P$,P$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=Uo(this.local$this$HolidayCalendarEditPresenter.repo.holidayDao,this.local$it,et(),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},j$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},j$.prototype=Object.create(L.prototype),j$.prototype.constructor=j$,j$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$HolidayCalendarEditPresenter.holidayOneToManyJoinEditHelper_0.commitToDatabase_e9yqve$(this.local$txRepo.holidayDao,M$(this.local$this$HolidayCalendarEditPresenter),k$(this.local$closure$entity),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},q$.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},q$.prototype=Object.create(L.prototype),q$.prototype.constructor=q$,q$.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(x(this.local$closure$entity.umCalendarUid,O)){if(this.local$tmp$=this.local$closure$entity,this.state_0=3,this.result_0=this.local$this$HolidayCalendarEditPresenter.repo.holidayCalendarDao.insertAsync(this.local$closure$entity,this),this.result_0===T)return T;continue}if(this.state_0=2,this.result_0=this.local$this$HolidayCalendarEditPresenter.repo.holidayCalendarDao.updateAsync_wzqrsg$(this.local$closure$entity,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:this.state_0=4;continue;case 3:this.local$tmp$.umCalendarUid=this.result_0,this.state_0=4;continue;case 4:if(this.state_0=5,this.result_0=ut(this.local$this$HolidayCalendarEditPresenter.repo,void 0,G$(this.local$this$HolidayCalendarEditPresenter,this.local$closure$entity),this),this.result_0===T)return T;continue;case 5:var t,n=this.local$this$HolidayCalendarEditPresenter,i=this.local$this$HolidayCalendarEditPresenter.di,o=jt(ui.Companion.serializer()),r=$e(this.local$closure$entity),s=Et(i).directDI.Instance_ohrpre$(e.isType(t=F(M(P(Pt),[],!1)),B)?t:W(),null);return n.finishWithResult_61zpoe$(s.encodeToString_tf03ej$(o,r)),nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},R$.prototype.handleClickSave_nqi3in$=function(t){var e,n;it(tt.GlobalScope,It(),void 0,(e=t,n=this,function(t,i,o){var r=new q$(e,n,t,this,i);return o?r:r.doResume(null)}))},F$.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var B$=null;function W$(){return null===B$&&new F$,B$}function H$(t,e){return t.holUid=e,nt}function V$(t,e,n,i,o){J$(),Ez.call(this,t,e,n,i,o)}function K$(){X$=this,this.RESULT_DEST_KEY="SchoolHolidayCalendar"}R$.$metadata$={kind:v,simpleName:"HolidayCalendarEditPresenter",interfaces:[fz]},V$.prototype.onCreate=function(t){Ez.prototype.onCreate.call(this,t),this.updateListOnView_0(),this.view.selectionOptions=be([gG(),$G()])},V$.prototype.onCheckAddPermission_tn71rk$=function(t,e){return!0},V$.prototype.updateListOnView_0=function(){this.view.list=this.repo.holidayCalendarDao.findAllHolidaysWithEntriesCount()},V$.prototype.handleClickEntry_11rc$=function(t){switch(this.mListMode.name){case"PICKER":var n,i=this.di,o=jt(ui.Companion.serializer()),r=$e(t),s=Et(i).directDI.Instance_ohrpre$(e.isType(n=F(M(P(Pt),[],!1)),B)?n:W(),null);this.finishWithResult_61zpoe$(s.encodeToString_tf03ej$(o,r));break;case"BROWSER":this.navigateForResult_r13zgt$(new Iw(this,null,YD().VIEW_NAME,P(ui),ui.Companion.serializer(),J$().RESULT_DEST_KEY,void 0,jn([E(zG().ARG_ENTITY_UID,t.umCalendarUid.toString())])))}},V$.prototype.handleClickCreateNewFab=function(){this.navigateForResult_r13zgt$(new Iw(this,null,YD().VIEW_NAME,P(ui),ui.Companion.serializer(),J$().RESULT_DEST_KEY))},V$.prototype.handleClickAddNewItem_a4m1mt$$default=function(t,e){this.handleClickCreateNewFab()},V$.prototype.handleClickSortOrder_iowaj7$=function(t){},K$.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var X$=null;function J$(){return null===X$&&new K$,X$}function Y$(t,e,n,i,o){tE(),fz.call(this,t,e,n,i,o)}function Q$(){Z$=this}V$.$metadata$={kind:v,simpleName:"HolidayCalendarListPresenter",interfaces:[Ez]},Object.defineProperty(Y$.prototype,"persistenceMode",{configurable:!0,get:function(){return Iz()}}),Y$.prototype.onCreate=function(t){fz.prototype.onCreate.call(this,t)},Y$.prototype.onLoadEntityFromDb_7hogkd$=function(t,e){var n;throw null!=(n=this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(n):null,z("Holiday loads only from JSON, not from database")},Y$.prototype.onLoadFromJson_y0zsll$=function(t){fz.prototype.onLoadFromJson_y0zsll$.call(this,t);var n=t.get_11rb$(oG().ARG_ENTITY_JSON),i=null;if(null!=n){var o,r=this.di,s=Do.Companion.serializer();i=Et(r).directDI.Instance_ohrpre$(e.isType(o=F(M(P(Pt),[],!1)),B)?o:W(),null).decodeFromString_awif5v$(s,n)}else i=new Do;return i},Y$.prototype.onSaveInstanceState_gtra9a$=function(t){fz.prototype.onSaveInstanceState_gtra9a$.call(this,t),xA(t,oG().ARG_ENTITY_JSON,this.json,Do.Companion.serializer(),this.entity)},Y$.prototype.handleClickSave_nqi3in$=function(t){var n,i=this.di,o=jt(Do.Companion.serializer()),r=$e(t),s=Et(i).directDI.Instance_ohrpre$(e.isType(n=F(M(P(Pt),[],!1)),B)?n:W(),null);this.finishWithResult_61zpoe$(s.encodeToString_tf03ej$(o,r))},Q$.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var Z$=null;function tE(){return null===Z$&&new Q$,Z$}function eE(t,e,n,i,o){oE(),_z.call(this,t,e,n,o,i)}function nE(){iE=this}Y$.$metadata$={kind:v,simpleName:"HolidayEditPresenter",interfaces:[fz]},Object.defineProperty(eE.prototype,"persistenceMode",{configurable:!0,get:function(){return Iz()}}),eE.prototype.onCheckEditPermission_tn71rk$=function(t,e){return!1},eE.prototype.onLoadFromJson_y0zsll$=function(t){_z.prototype.onLoadFromJson_y0zsll$.call(this,t);var e=t.get_11rb$(lP().DISPLAY_TEXT),n=t.get_11rb$(lP().DISPLAY_TITLE);return this.view.title=n,e},nE.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var iE=null;function oE(){return null===iE&&new nE,iE}function rE(t,n,i,o){var r;rz.call(this,t,n,i,o),this.accountManager_83l4p4$_0=H(this,e.isType(r=F(M(P(wa),[],!1)),B)?r:W(),null).provideDelegate_tpuvb9$(this,sE);var s,a,c,l,u=this.accountManager.activeAccount;s=this.diTrigger,this.dbRepo_91axm0$_0=H(G(this,q.Companion.invoke_np530x$(e.isType(a=F(M(P(Xt),[],!1)),B)?a:W(),u),s),e.isType(c=F(M(P(k),[],!1)),B)?c:W(),2).provideDelegate_tpuvb9$(this,aE),this.systemImpl_wove53$_0=H(this,e.isType(l=F(M(P(aq),[],!1)),B)?l:W(),null).provideDelegate_tpuvb9$(this,cE)}eE.$metadata$={kind:v,simpleName:"HtmlTextViewDetailPresenter",interfaces:[_z]};var sE=new N("accountManager");Object.defineProperty(rE.prototype,"accountManager",{configurable:!0,get:function(){return this.accountManager_83l4p4$_0.value}});var aE=new N("dbRepo");Object.defineProperty(rE.prototype,"dbRepo",{configurable:!0,get:function(){return this.dbRepo_91axm0$_0.value}});var cE=new N("systemImpl");function lE(t,n,i,o){var r;EE(),rz.call(this,t,n,i,o),this.accountManager_v9h6j8$_0=H(this,e.isType(r=F(M(P(wa),[],!1)),B)?r:W(),null).provideDelegate_tpuvb9$(this,uE);var s,a,c,l,u=this.accountManager.activeAccount;s=this.diTrigger,this.dbRepo_6hj1ms$_0=H(G(this,q.Companion.invoke_np530x$(e.isType(a=F(M(P(Xt),[],!1)),B)?a:W(),u),s),e.isType(c=F(M(P(k),[],!1)),B)?c:W(),2).provideDelegate_tpuvb9$(this,hE),this.systemImpl_sv701x$_0=H(this,e.isType(l=F(M(P(aq),[],!1)),B)?l:W(),null).provideDelegate_tpuvb9$(this,dE),this.entityTableId_0=0}Object.defineProperty(rE.prototype,"systemImpl",{configurable:!0,get:function(){return this.systemImpl_wove53$_0.value}}),rE.prototype.onCreate=function(t){var e;rz.prototype.onCreate.call(this,t);var n=He(this.arguments.get_11rb$(zG().ARG_CODE)),i=y([E(zG().ARG_CODE,n),E(zG().ARG_CODE_TABLE,null!=(e=this.arguments.get_11rb$(zG().ARG_CODE_TABLE))?e:"")]);this.view.inviteLink=AA(i,this.accountManager.activeAccount.endpointUrl,$P().VIEW_NAME),this.view.inviteCode=n,this.view.entityName=He(this.arguments.get_11rb$(zG().ARG_ENTITY_NAME))},rE.$metadata$={kind:v,simpleName:"InviteViaLinkPresenter",interfaces:[rz]};var uE=new N("accountManager");Object.defineProperty(lE.prototype,"accountManager",{configurable:!0,get:function(){return this.accountManager_v9h6j8$_0.value}});var hE=new N("dbRepo");Object.defineProperty(lE.prototype,"dbRepo",{configurable:!0,get:function(){return this.dbRepo_6hj1ms$_0.value}});var dE=new N("systemImpl");function pE(t){return function(){var n,i=t;return"attempting to join class with code "+Oi(e.isCharSequence(n=i)?n:W()).toString()}}function _E(t){return function(){var e;return"JoinWithCode: attempting to join course "+He(null!=(e=t.v)?e.clazzName:null)}}function mE(){return"JoinWithCode: enroling into course "}function fE(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=31,this.local$this$JoinWithCodePresenter=t,this.local$closure$code=e,this.local$clazzToJoin=void 0,this.local$schoolToJoin=void 0}function gE(){$E=this,this.CODE_FROM_ARGS_USED="codeEntered"}Object.defineProperty(lE.prototype,"systemImpl",{configurable:!0,get:function(){return this.systemImpl_sv701x$_0.value}}),lE.prototype.onCreate=function(t){var e,n,i,o;rz.prototype.onCreate.call(this,t);var r=null!=(e=this.arguments.get_11rb$(zG().ARG_CODE_TABLE))?Po(e):null,s=null!=(n=this.arguments.get_11rb$(zG().ARG_CODE))?n:"";this.view.code=s,o=this.view,i=6===r?this.systemImpl.getString(2707,this.context):this.systemImpl.getString(2708,this.context),o.buttonLabel=i,this.entityTableId_0=null!=r?r:0},lE.prototype.onStart=function(){var t,e,n,i,o,r,s;if(rz.prototype.onStart.call(this),null==(i=null!=(n=null!=(e=null!=(t=this.requireNavController().currentBackStackEntry)?t.savedStateHandle:null)?e.get_ytbaoo$(EE().CODE_FROM_ARGS_USED):null)?Xe(n):null)||!i){var a=null!=(o=this.arguments.get_11rb$(zG().ARG_CODE))?o:"";a.length>0?(null!=(s=null!=(r=this.requireNavController().currentBackStackEntry)?r.savedStateHandle:null)&&s.set_umlfku$(EE().CODE_FROM_ARGS_USED,(!0).toString()),this.handleClickDone_61zpoe$(a)):this.view.loading=!1}},fE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},fE.prototype=Object.create(L.prototype),fE.prototype.constructor=fE,fE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n,i,o,r,s,a,c;if(6===this.local$this$JoinWithCodePresenter.entityTableId_0){lt.Napier.d_9h2hdn$(void 0,void 0,pE(this.local$closure$code));var l,u=this.local$this$JoinWithCodePresenter.dbRepo.clazzDao,h=this.local$closure$code;if(this.state_0=16,this.result_0=u.findByClazzCode_61zpoe$(Oi(e.isCharSequence(l=h)?l:W()).toString(),this),this.result_0===T)return T;continue}if(164===this.local$this$JoinWithCodePresenter.entityTableId_0){var d,p=this.local$this$JoinWithCodePresenter.dbRepo.schoolDao,_=this.local$closure$code;if(this.state_0=1,this.result_0=p.findBySchoolCode_61zpoe$(Oi(e.isCharSequence(d=_)?d:W()).toString(),this),this.result_0===T)return T;continue}return this.local$this$JoinWithCodePresenter.view.loading=!1,this.local$this$JoinWithCodePresenter.view.errorText=this.local$this$JoinWithCodePresenter.systemImpl.getString(2182,this.local$this$JoinWithCodePresenter.context),nt;case 1:if(this.local$schoolToJoin={v:this.result_0},null==this.local$schoolToJoin.v){this.exceptionState_0=5;var m,f=this.local$this$JoinWithCodePresenter.dbRepo.schoolDao,g=this.local$closure$code;if(this.state_0=2,this.result_0=f.findBySchoolCodeFromWeb_61zpoe$(Oi(e.isCharSequence(m=g)?m:W()).toString(),this),this.result_0===T)return T;continue}this.state_0=7;continue;case 2:if(this.local$schoolToJoin.v=this.result_0,null!=this.local$schoolToJoin.v){if(this.state_0=3,this.result_0=this.local$this$JoinWithCodePresenter.dbRepo.schoolDao.insertAsync(this.local$schoolToJoin.v,this),this.result_0===T)return T;continue}this.state_0=4;continue;case 3:this.state_0=4;continue;case 4:this.exceptionState_0=31,this.state_0=6;continue;case 5:this.exceptionState_0=31;var $=this.exception_0;if(!e.isType($,on))throw $;var y,b=lt.Napier,S=this.local$closure$code;b.w_82mfvz$("Could not load school via http for code "+Oi(e.isCharSequence(y=S)?y:W()).toString(),$),this.state_0=6;continue;case 6:this.state_0=7;continue;case 7:var v=this.local$this$JoinWithCodePresenter.dbRepo;if(null!=(s=null!=(r=null!=this.local$schoolToJoin.v?v:null)?r.personDao:null)){if(this.state_0=8,this.result_0=s.findByUidAsync_s8cxhz$(this.local$this$JoinWithCodePresenter.accountManager.activeAccount.personUid,this),this.result_0===T)return T;continue}this.result_0=null,this.state_0=9;continue;case 8:this.state_0=9;continue;case 9:var C=this.result_0;if(this.exceptionState_0=12,null!=this.local$schoolToJoin.v&&null!=C){if(this.state_0=10,this.result_0=_x(this.local$this$JoinWithCodePresenter.dbRepo,C,this.local$schoolToJoin.v.schoolUid,1005,this),this.result_0===T)return T;continue}return this.local$this$JoinWithCodePresenter.view.loading=!1,this.local$this$JoinWithCodePresenter.view.errorText=this.local$this$JoinWithCodePresenter.systemImpl.getString(2182,this.local$this$JoinWithCodePresenter.context),nt;case 10:var N=this.local$this$JoinWithCodePresenter.systemImpl.getString(2650,this.local$this$JoinWithCodePresenter.context);return this.local$this$JoinWithCodePresenter.systemImpl.go_henhri$($k().VIEW_NAME,Je(E(zG().ARG_SNACK_MESSAGE,N)),this.local$this$JoinWithCodePresenter.context,new Ww(zG().CURRENT_DEST,!0)),nt;case 11:this.exceptionState_0=31,this.state_0=14;continue;case 12:if(this.exceptionState_0=31,$=this.exception_0,e.isType($,sA))return this.local$this$JoinWithCodePresenter.view.loading=!1,this.local$this$JoinWithCodePresenter.view.errorText=bn(this.local$this$JoinWithCodePresenter.systemImpl.getString(2706,this.local$this$JoinWithCodePresenter.context),"%1$s",null!=(c=null!=(a=this.local$schoolToJoin.v)?a.schoolName:null)?c:""),nt;throw $;case 13:this.state_0=14;continue;case 14:this.state_0=15;continue;case 15:this.state_0=30;continue;case 16:if(this.local$clazzToJoin={v:this.result_0},null==this.local$clazzToJoin.v){this.exceptionState_0=20;var L,z=this.local$this$JoinWithCodePresenter.dbRepo.clazzDao,w=this.local$closure$code;if(this.state_0=17,this.result_0=z.findByClazzCodeFromWeb_61zpoe$(Oi(e.isCharSequence(L=w)?L:W()).toString(),this),this.result_0===T)return T;continue}this.state_0=22;continue;case 17:if(this.local$clazzToJoin.v=this.result_0,null!=this.local$clazzToJoin.v){if(this.state_0=18,this.result_0=this.local$this$JoinWithCodePresenter.dbRepo.clazzDao.insertAsync(this.local$clazzToJoin.v,this),this.result_0===T)return T;continue}this.state_0=19;continue;case 18:this.state_0=19;continue;case 19:this.exceptionState_0=31,this.state_0=21;continue;case 20:if(this.exceptionState_0=31,$=this.exception_0,!e.isType($,on))throw $;var O,R=lt.Napier,A=this.local$closure$code;R.e_82mfvz$("Could not retrieve class using class code "+Oi(e.isCharSequence(O=A)?O:W()).toString()+" by http",$),this.state_0=21;continue;case 21:this.state_0=22;continue;case 22:lt.Napier.d_9h2hdn$(void 0,void 0,_E(this.local$clazzToJoin));var x=this.local$this$JoinWithCodePresenter.dbRepo;if(null!=(n=null!=(t=null!=this.local$clazzToJoin.v?x:null)?t.personDao:null)){if(this.state_0=23,this.result_0=n.findByUidAsync_s8cxhz$(this.local$this$JoinWithCodePresenter.accountManager.activeAccount.personUid,this),this.result_0===T)return T;continue}this.result_0=null,this.state_0=24;continue;case 23:this.state_0=24;continue;case 24:var I=this.result_0;if(this.exceptionState_0=27,null!=this.local$clazzToJoin.v&&null!=I){if(lt.Napier.d_9h2hdn$(void 0,void 0,mE),this.state_0=25,this.result_0=sx(this.local$this$JoinWithCodePresenter.dbRepo,I,this.local$clazzToJoin.v.clazzUid,1002,void 0,this),this.result_0===T)return T;continue}return this.local$this$JoinWithCodePresenter.view.loading=!1,this.local$this$JoinWithCodePresenter.view.errorText=this.local$this$JoinWithCodePresenter.systemImpl.getString(2182,this.local$this$JoinWithCodePresenter.context),nt;case 25:var U=this.local$this$JoinWithCodePresenter.systemImpl.getString(2650,this.local$this$JoinWithCodePresenter.context);return this.local$this$JoinWithCodePresenter.systemImpl.go_henhri$(tU().VIEW_NAME,Je(E(zG().ARG_SNACK_MESSAGE,U)),this.local$this$JoinWithCodePresenter.context,new Ww(zG().CURRENT_DEST,!0)),nt;case 26:this.exceptionState_0=31,this.state_0=29;continue;case 27:if(this.exceptionState_0=31,$=this.exception_0,e.isType($,rA))return this.local$this$JoinWithCodePresenter.view.loading=!1,this.local$this$JoinWithCodePresenter.view.errorText=bn(this.local$this$JoinWithCodePresenter.systemImpl.getString(2705,this.local$this$JoinWithCodePresenter.context),"%1$s",null!=(o=null!=(i=this.local$clazzToJoin.v)?i.clazzName:null)?o:""),nt;throw $;case 28:this.state_0=29;continue;case 29:this.state_0=30;continue;case 30:return;case 31:throw this.exception_0;default:throw this.state_0=31,new Error("State Machine Unreachable execution")}}catch($){if(31===this.state_0)throw this.exceptionState_0=this.state_0,$;this.state_0=this.exceptionState_0,this.exception_0=$}},lE.prototype.handleClickDone_61zpoe$=function(t){var e,n;0!==t.length?(this.view.loading=!0,it(this.presenterScope,void 0,void 0,(e=this,n=t,function(t,i,o){var r=new fE(e,n,t,this,i);return o?r:r.doResume(null)}))):this.view.errorText=this.systemImpl.getString(2126,this.context)},gE.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var $E=null;function EE(){return null===$E&&new gE,$E}function yE(t,e,n,i,o){fz.call(this,t,e,n,o,i)}function bE(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$closure$entityUid=t,this.local$it=e}function SE(t){return function(e,n,i){var o=new bE(t,e,n);return i?o:o.doResume(null)}}function vE(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$db=e}function CE(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$entity=t,this.local$this$LanguageEditPresenter=e,this.local$tmp$=void 0}function NE(t,e,n,i,o){RE(),Ez.call(this,t,e,n,i,o),this.loggedInPersonUid_0=O,this.searchText_0=null}function TE(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$this$LanguageListPresenter=t,this.local$closure$selectedItem=e}function LE(t,e){return function(){var n,i;return it(tt.GlobalScope,It(),void 0,(n=t,i=e,function(t,e,o){var r=new TE(n,i,t,this,e);return o?r:r.doResume(null)})),nt}}function zE(t,e,n,i,o,r){L.call(this,r),this.$controller=o,this.exceptionState_0=1,this.local$closure$option=t,this.local$this$LanguageListPresenter=e,this.local$closure$selectedItem=n}function wE(){OE=this,this.SORT_OPTIONS=be([new BR(2046,1,!0),new BR(2046,2,!1),new BR(2059,3,!0),new BR(2059,4,!1),new BR(2060,5,!0),new BR(2060,6,!1)]),this.SAVEDSTATE_KEY_LANGUAGE="Language"}lE.$metadata$={kind:v,simpleName:"JoinWithCodePresenter",interfaces:[rz]},Object.defineProperty(yE.prototype,"persistenceMode",{configurable:!0,get:function(){return xz()}}),bE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},bE.prototype=Object.create(L.prototype),bE.prototype.constructor=bE,bE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e;if(null!=(e=null!=(t=x(this.local$closure$entityUid,O)?null:this.local$it)?t.languageDao:null)){if(this.state_0=2,this.result_0=e.findByUidAsync_s8cxhz$(this.local$closure$entityUid,this),this.result_0===T)return T;continue}this.result_0=null,this.state_0=3;continue;case 1:throw this.exception_0;case 2:this.state_0=3;continue;case 3:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},vE.prototype=Object.create(L.prototype),vE.prototype.constructor=vE,vE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n,i=null!=(e=null!=(t=this.$this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(t):null)?e:O;if(this.state_0=2,this.result_0=Rt(this.local$db,Ot,SE(i),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return null!=(n=this.result_0)?n:new oo;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yE.prototype.onLoadEntityFromDb_7hogkd$=function(t,e,n){var i=new vE(this,t,e);return n?i:i.doResume(null)},yE.prototype.onLoadFromJson_y0zsll$=function(t){var n;fz.prototype.onLoadFromJson_y0zsll$.call(this,t);var i=t.get_11rb$(oG().ARG_ENTITY_JSON);if(null!=i){var o,r=this.di,s=oo.Companion.serializer();n=Et(r).directDI.Instance_ohrpre$(e.isType(o=F(M(P(Pt),[],!1)),B)?o:W(),null).decodeFromString_awif5v$(s,i)}else n=new oo;return n},yE.prototype.onSaveInstanceState_gtra9a$=function(t){fz.prototype.onSaveInstanceState_gtra9a$.call(this,t),xA(t,oG().ARG_ENTITY_JSON,this.json,oo.Companion.serializer(),this.entity)},CE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},CE.prototype=Object.create(L.prototype),CE.prototype.constructor=CE,CE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=this.local$closure$entity.name;if(null==t||0===t.length)return void(this.local$this$LanguageEditPresenter.view.langNameError=this.local$this$LanguageEditPresenter.systemImpl.getString(2126,this.local$this$LanguageEditPresenter.context));this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(x(this.local$closure$entity.langUid,O)){if(this.local$tmp$=this.local$closure$entity,this.state_0=4,this.result_0=this.local$this$LanguageEditPresenter.repo.languageDao.insertAsync(this.local$closure$entity,this),this.result_0===T)return T;continue}if(this.state_0=3,this.result_0=this.local$this$LanguageEditPresenter.repo.languageDao.updateAsync_lqiqse$(this.local$closure$entity,this),this.result_0===T)return T;continue;case 3:this.state_0=5;continue;case 4:this.local$tmp$.langUid=this.result_0,this.state_0=5;continue;case 5:var n,i=this.local$this$LanguageEditPresenter,o=this.local$this$LanguageEditPresenter.di,r=jt(oo.Companion.serializer()),s=$e(this.local$closure$entity),a=Et(o).directDI.Instance_ohrpre$(e.isType(n=F(M(P(Pt),[],!1)),B)?n:W(),null);return i.finishWithResult_61zpoe$(a.encodeToString_tf03ej$(r,s)),nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yE.prototype.handleClickSave_nqi3in$=function(t){var e,n;it(tt.GlobalScope,It(),void 0,(e=t,n=this,function(t,i,o){var r=new CE(e,n,t,this,i);return o?r:r.doResume(null)}))},yE.$metadata$={kind:v,simpleName:"LanguageEditPresenter",interfaces:[fz]},Object.defineProperty(NE.prototype,"sortOptions",{configurable:!0,get:function(){return RE().SORT_OPTIONS}}),NE.prototype.onClickSort_o8nuns$=function(t){Ez.prototype.onClickSort_o8nuns$.call(this,t),this.getAndSetList_0()},NE.prototype.onCreate=function(t){Ez.prototype.onCreate.call(this,t),this.loggedInPersonUid_0=this.accountManager.activeAccount.personUid,this.getAndSetList_0()},NE.prototype.onCheckAddPermission_tn71rk$=function(t,e){return!0},NE.prototype.onSearchSubmitted_pdl1vj$=function(t){this.searchText_0=t,this.getAndSetList_0()},NE.prototype.getAndSetList_0=function(){var t,e;this.view.list=this.repo.languageDao.findLanguagesAsSource_19mbxw$(null!=(e=null!=(t=this.selectedSortOption)?t.flag:null)?e:1,XA(this.searchText_0))},NE.prototype.handleClickEntry_11rc$=function(t){switch(this.mListMode.name){case"PICKER":var n,i=this.di,o=jt(oo.Companion.serializer()),r=$e(t),s=Et(i).directDI.Instance_ohrpre$(e.isType(n=F(M(P(Pt),[],!1)),B)?n:W(),null);this.finishWithResult_61zpoe$(s.encodeToString_tf03ej$(o,r));break;case"BROWSER":this.navigateToEditScreen_0(t)}},NE.prototype.handleClickCreateNewFab=function(){this.navigateToEditScreen_0()},NE.prototype.navigateToEditScreen_0=function(t){void 0===t&&(t=null),this.navigateForResult_r13zgt$(new Iw(this,t,SP().VIEW_NAME,P(oo),oo.Companion.serializer(),RE().SAVEDSTATE_KEY_LANGUAGE))},NE.prototype.handleClickAddNewItem_a4m1mt$$default=function(t,e){this.handleClickCreateNewFab()},NE.prototype.onCheckListSelectionOptions_tn71rk$=function(t,e){return $e(yG())},TE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},TE.prototype=Object.create(L.prototype),TE.prototype.constructor=TE,TE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e=this.local$this$LanguageListPresenter.repo.languageDao,n=this.local$closure$selectedItem,i=st(rt(n,10));for(t=n.iterator();t.hasNext();){var o=t.next();i.add_11rb$(o.langUid)}if(this.state_0=2,this.result_0=e.toggleVisibilityLanguage_cbj1f0$(!1,i,sn(),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},zE.prototype=Object.create(L.prototype),zE.prototype.constructor=zE,zE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(x(this.local$closure$option,yG())){var t,e=this.local$this$LanguageListPresenter.repo.languageDao,n=this.local$closure$selectedItem,i=st(rt(n,10));for(t=n.iterator();t.hasNext();){var o=t.next();i.add_11rb$(o.langUid)}if(this.state_0=2,this.result_0=e.toggleVisibilityLanguage_cbj1f0$(!0,i,sn(),this),this.result_0===T)return T;continue}return nt;case 1:throw this.exception_0;case 2:return this.local$this$LanguageListPresenter.view.showSnackBar_9pu0dj$(this.local$this$LanguageListPresenter.systemImpl.getString(2181,this.local$this$LanguageListPresenter.context),LE(this.local$this$LanguageListPresenter,this.local$closure$selectedItem),2694),nt;case 3:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},NE.prototype.handleClickSelectionOption_psq284$=function(t,e){var n,i,o;it(tt.GlobalScope,It(),void 0,(n=e,i=this,o=t,function(t,e,r){var s=new zE(n,i,o,t,this,e);return r?s:s.doResume(null)}))},wE.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var OE=null;function RE(){return null===OE&&new wE,OE}function AE(t,e,n,i,o){fz.call(this,t,e,n,o,i)}function xE(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$closure$entityUid=t,this.local$it=e}function IE(t){return function(e,n,i){var o=new xE(t,e,n);return i?o:o.doResume(null)}}function UE(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$db=e}function DE(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$entity=t,this.local$this$LeavingReasonEditPresenter=e,this.local$tmp$=void 0}function PE(t,e,n,i,o){Ez.call(this,t,e,n,i,o)}function ME(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$LeavingReasonListPresenter=t}function kE(t,n,i,o){var r,s,a;rz.call(this,t,n,i,o,!1),this.nextDestination_c0wqof$_0=this.nextDestination_c0wqof$_0,this.serverUrl_1y4nsw$_0=this.serverUrl_1y4nsw$_0,this.impl_ty2vq0$_0=H(this,e.isType(r=F(M(P(aq),[],!1)),B)?r:W(),null).provideDelegate_tpuvb9$(this,jE),this.accountManager_px48g8$_0=H(this,e.isType(s=F(M(P(wa),[],!1)),B)?s:W(),null).provideDelegate_tpuvb9$(this,GE),this.httpClient_jbq9vv$_0=H(this,e.isType(a=F(M(P(Zt),[],!1)),B)?a:W(),null).provideDelegate_tpuvb9$(this,qE),this.workSpace_0=null,this.siteLoadJob_0=null}NE.$metadata$={kind:v,simpleName:"LanguageListPresenter",interfaces:[Ez,oy,ry]},new N("contentEntryOpener"),Object.defineProperty(AE.prototype,"persistenceMode",{configurable:!0,get:function(){return xz()}}),xE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},xE.prototype=Object.create(L.prototype),xE.prototype.constructor=xE,xE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e;if(null!=(e=null!=(t=x(this.local$closure$entityUid,O)?null:this.local$it)?t.leavingReasonDao:null)){if(this.state_0=2,this.result_0=e.findByUidAsync_s8cxhz$(this.local$closure$entityUid,this),this.result_0===T)return T;continue}this.result_0=null,this.state_0=3;continue;case 1:throw this.exception_0;case 2:this.state_0=3;continue;case 3:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},UE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},UE.prototype=Object.create(L.prototype),UE.prototype.constructor=UE,UE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n,i=null!=(e=null!=(t=this.$this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(t):null)?e:O;if(this.state_0=2,this.result_0=Rt(this.local$db,Ot,IE(i),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return null!=(n=this.result_0)?n:new Ii;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},AE.prototype.onLoadEntityFromDb_7hogkd$=function(t,e,n){var i=new UE(this,t,e);return n?i:i.doResume(null)},AE.prototype.onLoadFromJson_y0zsll$=function(t){var n;fz.prototype.onLoadFromJson_y0zsll$.call(this,t);var i=t.get_11rb$(oG().ARG_ENTITY_JSON);if(null!=i){var o,r=this.di,s=Ii.Companion.serializer();n=Et(r).directDI.Instance_ohrpre$(e.isType(o=F(M(P(Pt),[],!1)),B)?o:W(),null).decodeFromString_awif5v$(s,i)}else n=new Ii;return n},AE.prototype.onSaveInstanceState_gtra9a$=function(t){fz.prototype.onSaveInstanceState_gtra9a$.call(this,t),xA(t,oG().ARG_ENTITY_JSON,this.json,Ii.Companion.serializer(),this.entity)},DE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},DE.prototype=Object.create(L.prototype),DE.prototype.constructor=DE,DE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=this.local$closure$entity.leavingReasonTitle;if(null==t||0===t.length)return void(this.local$this$LeavingReasonEditPresenter.view.reasonTitleError=this.local$this$LeavingReasonEditPresenter.systemImpl.getString(2126,this.local$this$LeavingReasonEditPresenter.context));this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(x(this.local$closure$entity.leavingReasonUid,O)){if(this.local$tmp$=this.local$closure$entity,this.state_0=4,this.result_0=this.local$this$LeavingReasonEditPresenter.repo.leavingReasonDao.insertAsync(this.local$closure$entity,this),this.result_0===T)return T;continue}if(this.state_0=3,this.result_0=this.local$this$LeavingReasonEditPresenter.repo.leavingReasonDao.updateAsync_e9c2s2$(this.local$closure$entity,this),this.result_0===T)return T;continue;case 3:this.state_0=5;continue;case 4:this.local$tmp$.leavingReasonUid=this.result_0,this.state_0=5;continue;case 5:var n,i=this.local$this$LeavingReasonEditPresenter,o=this.local$this$LeavingReasonEditPresenter.di,r=jt(Ii.Companion.serializer()),s=$e(this.local$closure$entity),a=Et(o).directDI.Instance_ohrpre$(e.isType(n=F(M(P(Pt),[],!1)),B)?n:W(),null);return i.finishWithResult_61zpoe$(a.encodeToString_tf03ej$(r,s)),nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},AE.prototype.handleClickSave_nqi3in$=function(t){var e,n;it(tt.GlobalScope,It(),void 0,(e=t,n=this,function(t,i,o){var r=new DE(e,n,t,this,i);return o?r:r.doResume(null)}))},AE.$metadata$={kind:v,simpleName:"LeavingReasonEditPresenter",interfaces:[fz]},PE.prototype.onCreate=function(t){Ez.prototype.onCreate.call(this,t),this.updateListOnView_0()},PE.prototype.onCheckAddPermission_tn71rk$=function(t,e){return!0},ME.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},ME.prototype=Object.create(L.prototype),ME.prototype.constructor=ME,ME.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:return this.local$this$LeavingReasonListPresenter.view.list=this.local$this$LeavingReasonListPresenter.repo.leavingReasonDao.findAllReasons(),nt;case 1:throw this.exception_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},PE.prototype.updateListOnView_0=function(){var t;it(tt.GlobalScope,It(),void 0,(t=this,function(e,n,i){var o=new ME(t,e,this,n);return i?o:o.doResume(null)}))},PE.prototype.handleClickCreateNewFab=function(){this.navigateForResult_r13zgt$(new Iw(this,null,IP().VIEW_NAME,P(Ii),Ii.Companion.serializer()))},PE.prototype.handleClickAddNewItem_a4m1mt$$default=function(t,e){this.handleClickCreateNewFab()},PE.prototype.onClickLeavingReason_e9c2s2$=function(t){switch(this.mListMode.name){case"PICKER":var n,i=this.di,o=jt(Ii.Companion.serializer()),r=$e(t),s=Et(i).directDI.Instance_ohrpre$(e.isType(n=F(M(P(Pt),[],!1)),B)?n:W(),null);this.finishWithResult_61zpoe$(s.encodeToString_tf03ej$(o,r));break;case"BROWSER":this.navigateForResult_r13zgt$(new Iw(this,t,IP().VIEW_NAME,P(Ii),Ii.Companion.serializer(),void 0,void 0,rn(Je(E(zG().ARG_ENTITY_UID,t.leavingReasonUid.toString())))))}},PE.$metadata$={kind:v,simpleName:"LeavingReasonListPresenter",interfaces:[Ez]},Object.defineProperty(kE.prototype,"nextDestination_0",{configurable:!0,get:function(){return null==this.nextDestination_c0wqof$_0?Ue("nextDestination"):this.nextDestination_c0wqof$_0},set:function(t){this.nextDestination_c0wqof$_0=t}}),Object.defineProperty(kE.prototype,"serverUrl_0",{configurable:!0,get:function(){return null==this.serverUrl_1y4nsw$_0?Ue("serverUrl"):this.serverUrl_1y4nsw$_0},set:function(t){this.serverUrl_1y4nsw$_0=t}});var jE=new N("impl");Object.defineProperty(kE.prototype,"impl_0",{configurable:!0,get:function(){return this.impl_ty2vq0$_0.value}});var GE=new N("accountManager");Object.defineProperty(kE.prototype,"accountManager_0",{configurable:!0,get:function(){return this.accountManager_px48g8$_0.value}});var qE=new N("httpClient");function FE(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=7,this.local$this$Login2Presenter=t}function BE(t,e,n,i,o,r){L.call(this,r),this.$controller=o,this.exceptionState_0=14,this.local$this$Login2Presenter=t,this.local$closure$username=e,this.local$closure$password=n}function WE(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$Login2Presenter=t}function HE(){}function VE(t,e,n,i,o){fz.call(this,t,e,n,i,o)}function KE(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$closure$entityUid=t,this.local$it=e}function XE(t){return function(e,n,i){var o=new KE(t,e,n);return i?o:o.doResume(null)}}function JE(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$closure$entity=t,this.local$it=e}function YE(t){return function(e,n,i){var o=new JE(t,e,n);return i?o:o.doResume(null)}}function QE(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$clazzUid=void 0,this.local$tmp$=void 0,this.local$$receiver=void 0,this.local$entity=void 0,this.local$db=e}function ZE(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$closure$caClazzUid=t,this.local$it=e}function ty(t){return function(e,n,i){var o=new ZE(t,e,n);return i?o:o.doResume(null)}}function ey(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$this$ModuleCourseBlockEditPresenter=t,this.local$closure$entity=e}function ny(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$entity=t,this.local$this$ModuleCourseBlockEditPresenter=e}function iy(){}function oy(){}function ry(){}function sy(t,n,i,o){var r;rz.call(this,t,n,i,o),this.entry_0=null,this.contentEntryUid_0=O,this.containerUid_8be2vx$=O,this.clazzUid=O,this.accountManager_k2tg6u$_0=H(this,e.isType(r=F(M(P(wa),[],!1)),B)?r:W(),null).provideDelegate_tpuvb9$(this,ay);var s,a,c,l=this.accountManager.activeAccount;s=this.diTrigger,this.db_3t211o$_0=H(G(this,q.Companion.invoke_np530x$(e.isType(a=F(M(P(Xt),[],!1)),B)?a:W(),l),s),e.isType(c=F(M(P(k),[],!1)),B)?c:W(),1).provideDelegate_tpuvb9$(this,cy);var u,h,d,p=this.accountManager.activeAccount;u=this.diTrigger,this.repo_yqwp7s$_0=H(G(this,q.Companion.invoke_np530x$(e.isType(h=F(M(P(Xt),[],!1)),B)?h:W(),p),u),e.isType(d=F(M(P(k),[],!1)),B)?d:W(),2).provideDelegate_tpuvb9$(this,ly);var _,m,f,g=this.accountManager.activeAccount;_=this.diTrigger,this.statementEndpoint_2buhtm$_0=H(G(this,q.Companion.invoke_np530x$(e.isType(m=F(M(P(Xt),[],!1)),B)?m:W(),g),_),e.isType(f=F(M(P(Hc),[],!1)),B)?f:W(),null).provideDelegate_tpuvb9$(this,uy),this.timePageOpened=O,this.contextRegistration_tljco2$_0=this.contextRegistration_tljco2$_0,this.pdfPath_8be2vx$=null}Object.defineProperty(kE.prototype,"httpClient_0",{configurable:!0,get:function(){return this.httpClient_jbq9vv$_0.value}}),FE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},FE.prototype=Object.create(L.prototype),FE.prototype.constructor=FE,FE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.state_0=1;continue;case 1:if(null!=this.local$this$Login2Presenter.workSpace_0){this.state_0=8;continue}if(this.exceptionState_0=3,this.state_0=2,this.result_0=CA(this.local$this$Login2Presenter.httpClient_0,this.local$this$Login2Presenter.serverUrl_0,Mo,this),this.result_0===T)return T;continue;case 2:var t=this.result_0;this.local$this$Login2Presenter.onVerifySite_5rubkd$(t),this.exceptionState_0=7,this.state_0=6;continue;case 3:this.exceptionState_0=7;var n=this.exception_0;if(e.isType(n,on)){if(lt.Napier.w_82mfvz$("Could not load site object for "+this.local$this$Login2Presenter.serverUrl_0,n),this.local$this$Login2Presenter.view.errorMessage=this.local$this$Login2Presenter.impl_0.getString(2010,this.local$this$Login2Presenter.context),this.state_0=4,this.result_0=un(Mo,this),this.result_0===T)return T;continue}throw n;case 4:this.state_0=5;continue;case 5:this.state_0=6;continue;case 6:this.state_0=1;continue;case 7:throw this.exception_0;case 8:return nt;default:throw this.state_0=7,new Error("State Machine Unreachable execution")}}catch(n){if(7===this.state_0)throw this.exceptionState_0=this.state_0,n;this.state_0=this.exceptionState_0,this.exception_0=n}},kE.prototype.onCreate=function(t){var n,i,o;rz.prototype.onCreate.call(this,t),this.nextDestination_0=null!=(n=this.arguments.get_11rb$(zG().ARG_NEXT))?n:this.impl_0.getAppConfigDefaultFirstDest_za3rmp$(this.context),o=this.arguments.containsKey_11rb$(zG().ARG_SERVER_URL)?ke(this.arguments,zG().ARG_SERVER_URL):null!=(i=this.impl_0.getAppConfigString(Rw().KEY_API_URL,"http://localhost",this.context))?i:"",this.serverUrl_0=o,this.view.versionInfo=this.impl_0.getVersion_za3rmp$(this.context),this.serverUrl_0=JA(this.serverUrl_0,"/"),this.view.loginIntentMessage=this.arguments.get_11rb$(zG().ARG_INTENT_MESSAGE);var r,s=this.arguments.get_11rb$(zG().ARG_SITE);if(null!=s){var a,c=this.di,l=Yt.Companion.serializer(),u=Et(c).directDI.Instance_ohrpre$(e.isType(a=F(M(P(Pt),[],!1)),B)?a:W(),null);this.onVerifySite_5rubkd$(u.decodeFromString_awif5v$(l,s))}else this.view.loading=!0,this.view.inProgress=!0,this.siteLoadJob_0=it(this.presenterScope,void 0,void 0,(r=this,function(t,e,n){var i=new FE(r,t,this,e);return n?i:i.doResume(null)}))},kE.prototype.onVerifySite_5rubkd$=function(t){this.workSpace_0=t,this.view.createAccountVisible=t.registrationAllowed,this.view.connectAsGuestVisible=t.guestLogin,this.view.loading=!1,this.view.inProgress=!1,x(this.view.errorMessage,this.impl_0.getString(2010,this.context))&&(this.view.errorMessage="")},kE.prototype.goToNextDestAfterLoginOrGuestSelected_0=function(){var t,e,n=new Ww(null!=(t=this.arguments.get_11rb$(zG().ARG_POPUPTO_ON_FINISH))?t:zG().ROOT_DEST,!1);lt.Napier.d_9h2hdn$(void 0,void 0,(e=this,function(){return"LoginPresenter: go to next destination: "+e.nextDestination_0})),this.impl_0.go_henhri$(this.nextDestination_0,ji(),this.context,n)},BE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},BE.prototype=Object.create(L.prototype),BE.prototype.constructor=BE,BE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n,i,o;this.exceptionState_0=3,o=this.local$this$Login2Presenter.accountManager_0;var r,s=this.local$closure$username;t=Oi(e.isCharSequence(r=s)?r:W()).toString();var a,c=this.local$closure$password;if(this.state_0=1,this.result_0=o.login_bz5y9$(t,Oi(e.isCharSequence(a=c)?a:W()).toString(),this.local$this$Login2Presenter.serverUrl_0,null!=(i=null!=(n=this.local$this$Login2Presenter.arguments.get_11rb$(zG().ARG_MAX_DATE_OF_BIRTH))?de(n):null)?i:O,this),this.result_0===T)return T;continue;case 1:this.exceptionState_0=14,this.finallyPath_0=[2],this.state_0=12,this.$returnValue=(this.local$this$Login2Presenter.goToNextDestAfterLoginOrGuestSelected_0(),nt);continue;case 2:return this.$returnValue;case 3:this.finallyPath_0=[14],this.exceptionState_0=12;var l=this.exception_0;if(e.isType(l,Ps)){this.exceptionState_0=14,this.finallyPath_0=[10],this.state_0=12,this.$returnValue=(this.local$this$Login2Presenter.view.errorMessage=this.local$this$Login2Presenter.impl_0.getString(2821,this.local$this$Login2Presenter.context),nt);continue}if(e.isType(l,ya)){this.exceptionState_0=14,this.finallyPath_0=[8],this.state_0=12,this.$returnValue=(this.local$this$Login2Presenter.view.errorMessage=this.local$this$Login2Presenter.impl_0.getString(2009,this.local$this$Login2Presenter.context),nt);continue}if(e.isType(l,Qs)){this.exceptionState_0=14,this.finallyPath_0=[6],this.state_0=12,this.$returnValue=(this.local$this$Login2Presenter.view.errorMessage=this.local$this$Login2Presenter.impl_0.getString(2820,this.local$this$Login2Presenter.context),nt);continue}if(e.isType(l,on)){lt.Napier.e_82mfvz$("Error logging in",l),this.exceptionState_0=14,this.finallyPath_0=[4],this.state_0=12,this.$returnValue=(this.local$this$Login2Presenter.view.errorMessage=this.local$this$Login2Presenter.impl_0.getString(2010,this.local$this$Login2Presenter.context),nt);continue}throw l;case 4:return this.$returnValue;case 5:this.state_0=7;continue;case 6:return this.$returnValue;case 7:this.state_0=9;continue;case 8:return this.$returnValue;case 9:this.state_0=11;continue;case 10:return this.$returnValue;case 11:this.finallyPath_0=[13],this.state_0=12;continue;case 12:this.exceptionState_0=14,this.local$this$Login2Presenter.view.inProgress=!1,this.local$this$Login2Presenter.view.loading=!1,this.local$this$Login2Presenter.view.clearFields(),this.state_0=this.finallyPath_0.shift();continue;case 13:return;case 14:throw this.exception_0;default:throw this.state_0=14,new Error("State Machine Unreachable execution")}}catch(l){if(14===this.state_0)throw this.exceptionState_0=this.state_0,l;this.state_0=this.exceptionState_0,this.exception_0=l}},kE.prototype.handleLogin_rkkr90$=function(t,e){this.view.inProgress=!0,this.view.loading=!0;var n=this.view,i=null==t;i||(i=0===t.length),n.isEmptyUsername=i;var o=this.view,r=null==e;r||(r=0===e.length),o.isEmptyPassword=r;var s=null!=t;s&&(s=t.length>0);var a,c,l,u=s&&null!=e;u&&(u=e.length>0),u?it(this.presenterScope,void 0,void 0,(a=this,c=t,l=e,function(t,e,n){var i=new BE(a,c,l,t,this,e);return n?i:i.doResume(null)})):(this.view.inProgress=!1,this.view.loading=!1)},kE.prototype.handleCreateAccount=function(){var t,e=jn([E(zG().ARG_SERVER_URL,this.serverUrl_0),E(fj().ARG_SHOW_ACCEPT_BUTTON,(!0).toString()),E(fj().ARG_USE_DISPLAY_LOCALE,(!0).toString()),E(zG().ARG_POPUPTO_ON_FINISH,null!=(t=this.arguments.get_11rb$(zG().ARG_POPUPTO_ON_FINISH))?t:qP().VIEW_NAME)]);IA(e,this.arguments,zG().ARG_NEXT),IA(e,this.arguments,pM().REGISTER_VIA_LINK),this.impl_0.go_gofqk3$(LM().VIEW_NAME,e,this.context)},WE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},WE.prototype=Object.create(L.prototype),WE.prototype.constructor=WE,WE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$Login2Presenter.accountManager_0.startGuestSession_61zpoe$(this.local$this$Login2Presenter.serverUrl_0,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.local$this$Login2Presenter.goToNextDestAfterLoginOrGuestSelected_0(),nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kE.prototype.handleConnectAsGuest=function(){var t;it(this.presenterScope,void 0,void 0,(t=this,function(e,n,i){var o=new WE(t,e,this,n);return i?o:o.doResume(null)}))},kE.prototype.onDestroy=function(){var t;null!=(t=this.siteLoadJob_0)&&t.cancel_x5z25k$(),this.siteLoadJob_0=null,rz.prototype.onDestroy.call(this)},kE.$metadata$={kind:v,simpleName:"Login2Presenter",interfaces:[rz]},HE.$metadata$={kind:ge,simpleName:"MessagesPresenter",interfaces:[]},Object.defineProperty(VE.prototype,"persistenceMode",{configurable:!0,get:function(){return xz()}}),KE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},KE.prototype=Object.create(L.prototype),KE.prototype.constructor=KE,KE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e;if(null!=(e=null!=(t=x(this.local$closure$entityUid,O)?null:this.local$it)?t.courseBlockDao:null)){if(this.state_0=2,this.result_0=e.findByUidAsync_s8cxhz$(this.local$closure$entityUid,this),this.result_0===T)return T;continue}this.result_0=null,this.state_0=3;continue;case 1:throw this.exception_0;case 2:this.state_0=3;continue;case 3:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},JE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},JE.prototype=Object.create(L.prototype),JE.prototype.constructor=JE,JE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$it.clazzDao.getClazzWithSchool_s8cxhz$(this.local$closure$entity.cbClazzUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},QE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},QE.prototype=Object.create(L.prototype),QE.prototype.constructor=QE,QE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n,i,o,r,s=null!=(e=null!=(t=this.$this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?Xn(t):null)?e:O;if(this.local$clazzUid=null!=(i=null!=(n=this.$this.arguments.get_11rb$(zG().ARG_CLAZZUID))?Xn(n):null)?i:O,this.state_0=2,this.result_0=Rt(this.local$db,Ot,XE(s),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(null!=(o=this.result_0)){this.local$tmp$=o,this.state_0=4;continue}if(this.local$$receiver=new pi,this.state_0=3,this.result_0=Dn(this.local$db).nextIdAsync_za3lpa$(124,this),this.result_0===T)return T;continue;case 3:this.local$$receiver.cbUid=this.result_0,this.local$$receiver.cbClazzUid=this.local$clazzUid,this.local$$receiver.cbType=100,this.local$$receiver.cbEntityUid=this.local$$receiver.cbUid,this.local$tmp$=this.local$$receiver,this.state_0=4;continue;case 4:if(this.local$entity=this.local$tmp$,this.state_0=5,this.result_0=Rt(this.local$db,Ot,YE(this.local$entity),this),this.result_0===T)return T;continue;case 5:var a=hA(null!=(r=this.result_0)?r:new Rn);if(this.$this.view.timeZone=a,x(this.local$entity.cbHideUntilDate,O))this.$this.view.startDate=O;else{var c=bO(D.Companion.invoke_s8cxhz$(this.local$entity.cbHideUntilDate),a).unixMillisLong;this.$this.view.startDate=c,this.$this.view.startTime=this.local$entity.cbHideUntilDate.subtract(c)}return this.local$entity;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},VE.prototype.onLoadEntityFromDb_7hogkd$=function(t,e,n){var i=new QE(this,t,e);return n?i:i.doResume(null)},ZE.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},ZE.prototype=Object.create(L.prototype),ZE.prototype.constructor=ZE,ZE.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$it.clazzDao.getClazzWithSchool_s8cxhz$(this.local$closure$caClazzUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ey.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},ey.prototype=Object.create(L.prototype),ey.prototype.constructor=ey,ey.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n,i=null!=(e=null!=(t=this.local$this$ModuleCourseBlockEditPresenter.arguments.get_11rb$(zG().ARG_CLAZZUID))?de(t):null)?e:this.local$closure$entity.cbClazzUid;if(this.state_0=2,this.result_0=Rt(this.local$this$ModuleCourseBlockEditPresenter.db,Ot,ty(i),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var o=hA(null!=(n=this.result_0)?n:new Rn);if(this.local$this$ModuleCourseBlockEditPresenter.view.timeZone=o,x(this.local$closure$entity.cbHideUntilDate,O))return this.local$this$ModuleCourseBlockEditPresenter.view.startDate=O,nt;var r=bO(D.Companion.invoke_s8cxhz$(this.local$closure$entity.cbHideUntilDate),o).unixMillisLong;return this.local$this$ModuleCourseBlockEditPresenter.view.startDate=r,this.local$this$ModuleCourseBlockEditPresenter.view.startTime=this.local$closure$entity.cbHideUntilDate.subtract(r),nt;case 3:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},VE.prototype.onLoadFromJson_y0zsll$=function(t){var n;fz.prototype.onLoadFromJson_y0zsll$.call(this,t);var i=t.get_11rb$(oG().ARG_ENTITY_JSON);if(null!=i){var o,r=this.di,s=pi.Companion.serializer();n=Et(r).directDI.Instance_ohrpre$(e.isType(o=F(M(P(Pt),[],!1)),B)?o:W(),null).decodeFromString_awif5v$(s,i)}else n=new pi;var a,c,l=n;return it(this.presenterScope,void 0,void 0,(a=this,c=l,function(t,e,n){var i=new ey(a,c,t,this,e);return n?i:i.doResume(null)})),l},ny.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},ny.prototype=Object.create(L.prototype),ny.prototype.constructor=ny,ny.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n=this.local$closure$entity.cbTitle;if(null==n||0===n.length)return this.local$this$ModuleCourseBlockEditPresenter.view.blockTitleError=this.local$this$ModuleCourseBlockEditPresenter.systemImpl.getString(2126,this.local$this$ModuleCourseBlockEditPresenter.context),this.local$this$ModuleCourseBlockEditPresenter.view.fieldsEnabled=!0,void(this.local$this$ModuleCourseBlockEditPresenter.view.loading=!1);var i=null!=(t=this.local$this$ModuleCourseBlockEditPresenter.view.timeZone)?t:"UTC",o=this.local$closure$entity,r=yO(D.Companion.invoke_s8cxhz$(this.local$this$ModuleCourseBlockEditPresenter.view.startDate),i),s=r.hours,a=Yn.Companion.fromHours_14dthe$(s),c=r.minutes,l=a.plus_fv8bff$(Yn.Companion.fromMinutes_14dthe$(c)),u=r.seconds,h=l.plus_fv8bff$(Yn.Companion.fromSeconds_14dthe$(u)),d=r.milliseconds;o.cbHideUntilDate=r.minus_fv8bff$(h.plus_fv8bff$(Yn.Companion.fromMilliseconds_14dthe$(d))).utc.unixMillisLong.add(this.local$this$ModuleCourseBlockEditPresenter.view.startTime);var p,_=this.local$this$ModuleCourseBlockEditPresenter,m=this.local$this$ModuleCourseBlockEditPresenter.di,f=jt(pi.Companion.serializer()),g=$e(this.local$closure$entity),$=Et(m).directDI.Instance_ohrpre$(e.isType(p=F(M(P(Pt),[],!1)),B)?p:W(),null);return _.finishWithResult_61zpoe$($.encodeToString_tf03ej$(f,g)),this.local$this$ModuleCourseBlockEditPresenter.view.loading=!1,nt;case 1:throw this.exception_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},VE.prototype.handleClickSave_nqi3in$=function(t){var e,n;this.view.fieldsEnabled=!1,this.view.loading=!0,it(this.presenterScope,void 0,void 0,(e=t,n=this,function(t,i,o){var r=new ny(e,n,t,this,i);return o?r:r.doResume(null)}))},VE.$metadata$={kind:v,simpleName:"ModuleCourseBlockEditPresenter",interfaces:[fz]},iy.$metadata$={kind:ge,simpleName:"NewCommentItemListener",interfaces:[]},new N("impl"),oy.$metadata$={kind:ge,simpleName:"OnSearchSubmitted",interfaces:[]},ry.$metadata$={kind:ge,simpleName:"OnSortOptionSelected",interfaces:[]};var ay=new N("accountManager");Object.defineProperty(sy.prototype,"accountManager",{configurable:!0,get:function(){return this.accountManager_k2tg6u$_0.value}});var cy=new N("db");Object.defineProperty(sy.prototype,"db",{configurable:!0,get:function(){return this.db_3t211o$_0.value}});var ly=new N("repo");Object.defineProperty(sy.prototype,"repo",{configurable:!0,get:function(){return this.repo_yqwp7s$_0.value}});var uy=new N("statementEndpoint");function hy(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$PDFContentPresenter=t}function dy(t,e,n,i,o,r,s){L.call(this,s),this.$controller=r,this.exceptionState_0=1,this.local$closure$pageNumber=t,this.local$closure$pageTotal=e,this.local$this$PDFContentPresenter=n,this.local$closure$pdfOpenedDuration=i}function py(t,e,n,i,o){yy(),fz.call(this,t,e,n,o,i)}function _y(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$closure$entityUid=t,this.local$it=e}function my(t){return function(e,n,i){var o=new _y(t,e,n);return i?o:o.doResume(null)}}function fy(t,e,n){L.call(this,n),this.exceptionState_0=13,this.$this=t,this.local$tmp$_2=void 0,this.local$entityUid=void 0,this.local$personParentJoin=void 0,this.local$minorPersonFromWeb=void 0,this.local$minorPerson=void 0,this.local$db=e}function gy(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$this$ParentalConsentManagementPresenter=t,this.local$closure$entity=e,this.local$activeSession=void 0,this.local$classCheckRequired=void 0,this.local$tmp$=void 0}function $y(){Ey=this}Object.defineProperty(sy.prototype,"statementEndpoint",{configurable:!0,get:function(){return this.statementEndpoint_2buhtm$_0.value}}),Object.defineProperty(sy.prototype,"contextRegistration",{configurable:!0,get:function(){return null==this.contextRegistration_tljco2$_0?Ue("contextRegistration"):this.contextRegistration_tljco2$_0},set:function(t){this.contextRegistration_tljco2$_0=t}}),hy.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},hy.prototype=Object.create(L.prototype),hy.prototype.constructor=hy,hy.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$PDFContentPresenter.db.contentEntryDao.findByUidAsync_s8cxhz$(this.local$this$PDFContentPresenter.contentEntryUid_0,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.local$this$PDFContentPresenter.entry_0=this.result_0,this.local$this$PDFContentPresenter.view.entry=this.local$this$PDFContentPresenter.entry_0,this.local$this$PDFContentPresenter.view.pdfContainerUid=this.local$this$PDFContentPresenter.containerUid_8be2vx$,nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},sy.prototype.onCreate=function(t){var e,n,i;rz.prototype.onCreate.call(this,t),this.contextRegistration=$n().toString(),this.contentEntryUid_0=de(ke(this.arguments,zG().ARG_CONTENT_ENTRY_UID)),this.containerUid_8be2vx$=de(ke(this.arguments,zG().ARG_CONTAINER_UID)),this.clazzUid=null!=(n=null!=(e=this.arguments.get_11rb$(zG().ARG_CLAZZUID))?de(e):null)?n:O,this.view.loading=!0,it(tt.GlobalScope,It(),void 0,(i=this,function(t,e,n){var o=new hy(i,t,this,e);return n?o:o.doResume(null)}))},dy.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},dy.prototype=Object.create(L.prototype),dy.prototype.constructor=dy,dy.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n=Ve(this.local$closure$pageNumber/this.local$closure$pageTotal*100);if(null!=(t=this.local$this$PDFContentPresenter.entry_0)){var i=this.local$this$PDFContentPresenter,o=this.local$closure$pdfOpenedDuration;Vc(i.statementEndpoint,i.accountManager.activeAccount,t,n,o.v,i.contextRegistration,i.clazzUid),e=t}else e=null;return e;case 1:throw this.exception_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},sy.prototype.updateProgress_ydzd23$=function(t,e,n){if(void 0===n&&(n=!1),!x(this.accountManager.activeAccount.personUid,O)){var i,o,r,s,a={v:O};if(n)this.timePageOpened=et();else{if(x(this.timePageOpened,O))return;if(n||!(this.timePageOpened.toNumber()>0))return;a.v=et().subtract(this.timePageOpened),this.timePageOpened=O}it(tt.GlobalScope,void 0,void 0,(i=t,o=e,r=this,s=a,function(t,e,n){var a=new dy(i,o,r,s,t,this,e);return n?a:a.doResume(null)}))}},sy.$metadata$={kind:v,simpleName:"PDFContentPresenter",interfaces:[rz]},Object.defineProperty(py.prototype,"persistenceMode",{configurable:!0,get:function(){return xz()}}),py.prototype.onCreate=function(t){fz.prototype.onCreate.call(this,t),this.view.relationshipFieldOptions=be([new fR(2311,this.context,1,this.di),new fR(2310,this.context,2,this.di),new fR(2724,this.context,4,this.di)])},_y.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},_y.prototype=Object.create(L.prototype),_y.prototype.constructor=_y,_y.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$it.personParentJoinDao.findByUidWithMinorAsync_s8cxhz$(this.local$closure$entityUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},fy.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},fy.prototype=Object.create(L.prototype),fy.prototype.constructor=fy,fy.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n,i,o,r,s;if(this.local$entityUid=null!=(n=null!=(t=this.$this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(t):null)?n:O,this.state_0=1,this.result_0=Rt(this.local$db,ko,my(this.local$entityUid),this),this.result_0===T)return T;continue;case 1:if(this.local$personParentJoin=this.result_0,null==this.local$personParentJoin&&e.isType(this.local$db,At)){if(this.exceptionState_0=8,this.state_0=2,this.result_0=this.local$db.personParentJoinDao.findByUidWithMinorAsyncFromWeb_s8cxhz$(this.local$entityUid,this),this.result_0===T)return T;continue}this.state_0=10;continue;case 2:if(this.local$personParentJoin=this.result_0,null!=this.local$personParentJoin){if(this.state_0=3,this.result_0=this.local$db.personParentJoinDao.insertAsync_ei4fsf$(this.local$personParentJoin,this),this.result_0===T)return T;continue}this.state_0=4;continue;case 3:this.state_0=4;continue;case 4:if(this.local$minorPersonFromWeb=null!=this.local$personParentJoin?this.local$personParentJoin.minorPerson:null,this.state_0=5,this.result_0=this.local$db.personDao.findByUidAsync_s8cxhz$(null!=(i=null!=this.local$personParentJoin?this.local$personParentJoin.ppjMinorPersonUid:null)?i:O,this),this.result_0===T)return T;continue;case 5:if(null==this.result_0&&null!=this.local$minorPersonFromWeb){if(this.state_0=6,this.result_0=this.local$db.personDao.insertAsync(this.local$minorPersonFromWeb,this),this.result_0===T)return T;continue}this.state_0=7;continue;case 6:this.state_0=7;continue;case 7:this.exceptionState_0=13,this.state_0=9;continue;case 8:this.exceptionState_0=13;var a=this.exception_0;if(!e.isType(a,on))throw a;lt.Napier.w_82mfvz$("Could not load personparentjoin from web for "+this.local$entityUid.toString(),a),this.state_0=9;continue;case 9:this.state_0=10;continue;case 10:if(null!=this.local$personParentJoin||e.isType(this.local$db,At)){if(null==this.local$personParentJoin)throw new xw(10024,"Child registration not found for "+this.local$entityUid.toString());this.state_0=11;continue}return null;case 11:if(this.local$minorPerson=this.local$personParentJoin.minorPerson,null==this.local$minorPerson&&e.isType(this.local$db,At))throw z("1022: Could not find minor for ppj "+this.local$entityUid.toString());if(this.local$tmp$_2=this.$this.view,this.state_0=12,this.result_0=this.local$db.siteTermsDao.findSiteTerms_61zpoe$(this.$this.systemImpl.getDisplayedLocale_za3rmp$(this.$this.context),this),this.result_0===T)return T;continue;case 12:if(this.local$tmp$_2.siteTerms=this.result_0,x(this.local$personParentJoin.ppjParentPersonUid,O))this.$this.view.infoText=bn(bn(bn(this.$this.systemImpl.getString(2716,this.$this.context),"%1$s",null!=(o=null!=this.local$minorPerson?this.local$minorPerson.fullName():null)?o:""),"%2$s",null!=(s=null!=(r=null!=this.local$minorPerson?this.local$minorPerson.dateOfBirth:null)?Zq(r,this.$this.context):null)?s:""),"%3$s",this.$this.systemImpl.getString(2e3,this.$this.context));else if(e.isType(this.local$db,At)&&!x(this.local$personParentJoin.ppjParentPersonUid,O)){if(!x(this.local$personParentJoin.ppjParentPersonUid,this.$this.accountManager.activeAccount.personUid))throw z("Active user is not the parent!");var c=1===this.local$personParentJoin.ppjStatus?2722:2723;this.$this.view.infoText=bn(this.$this.systemImpl.getString(c,this.$this.context),"%1$s",Zq(this.local$personParentJoin.ppjApprovalTiemstamp,this.$this.context))}return this.local$personParentJoin;case 13:throw this.exception_0;default:throw this.state_0=13,new Error("State Machine Unreachable execution")}}catch(a){if(13===this.state_0)throw this.exceptionState_0=this.state_0,a;this.state_0=this.exceptionState_0,this.exception_0=a}},py.prototype.onLoadEntityFromDb_7hogkd$=function(t,e,n){var i=new fy(this,t,e);return n?i:i.doResume(null)},py.prototype.onLoadFromJson_y0zsll$=function(t){var n;fz.prototype.onLoadFromJson_y0zsll$.call(this,t);var i=t.get_11rb$(oG().ARG_ENTITY_JSON);if(null!=i){var o,r=this.di,s=jo.Companion.serializer();n=Et(r).directDI.Instance_ohrpre$(e.isType(o=F(M(P(Pt),[],!1)),B)?o:W(),null).decodeFromString_awif5v$(s,i)}else n=new jo;return n},py.prototype.onSaveInstanceState_gtra9a$=function(t){fz.prototype.onSaveInstanceState_gtra9a$.call(this,t),xA(t,oG().ARG_ENTITY_JSON,this.json,jo.Companion.serializer(),this.entity)},gy.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},gy.prototype=Object.create(L.prototype),gy.prototype.constructor=gy,gy.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(this.local$this$ParentalConsentManagementPresenter.view.relationshipFieldError=null,0===this.local$closure$entity.ppjRelationship)return void(this.local$this$ParentalConsentManagementPresenter.view.relationshipFieldError=this.local$this$ParentalConsentManagementPresenter.systemImpl.getString(2126,this.local$this$ParentalConsentManagementPresenter.context));this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(null==(t=this.local$this$ParentalConsentManagementPresenter.accountManager.activeSession))throw z("Could not find person group uid!");if(this.local$activeSession=t,this.local$classCheckRequired=!1,x(this.local$closure$entity.ppjParentPersonUid,O)){if(this.local$closure$entity.ppjParentPersonUid=this.local$activeSession.person.personUid,this.state_0=3,this.result_0=Ux(this.local$this$ParentalConsentManagementPresenter.repo,this.local$activeSession.person,Go,9,this.local$closure$entity.ppjMinorPersonUid,this),this.result_0===T)return T;continue}this.state_0=4;continue;case 3:this.local$classCheckRequired=!0,this.state_0=4;continue;case 4:if(this.local$closure$entity.ppjApprovalTiemstamp=et(),this.state_0=5,this.result_0=this.local$this$ParentalConsentManagementPresenter.repo.personParentJoinDao.updateAsync_ei4fsf$(this.local$closure$entity,this),this.result_0===T)return T;continue;case 5:if(this.local$classCheckRequired){if(this.state_0=6,this.result_0=this.local$this$ParentalConsentManagementPresenter.repo.personParentJoinDao.findByMinorPersonUidWhereParentNotEnrolledInClazz_3pjtqy$(this.local$closure$entity.ppjMinorPersonUid,O,this),this.result_0===T)return T;continue}this.state_0=10;continue;case 6:var e=this.result_0;this.local$tmp$=e.iterator(),this.state_0=7;continue;case 7:if(!this.local$tmp$.hasNext()){this.state_0=9;continue}var n=this.local$tmp$.next();if(this.state_0=8,this.result_0=sx(this.local$this$ParentalConsentManagementPresenter.repo,this.local$activeSession.person,n.clazzUid,1003,void 0,this),this.result_0===T)return T;continue;case 8:this.state_0=7;continue;case 9:this.state_0=10;continue;case 10:return x(this.local$this$ParentalConsentManagementPresenter.arguments.get_11rb$(zG().ARG_NEXT),zG().CURRENT_DEST)?(this.local$this$ParentalConsentManagementPresenter.systemImpl.popBack_i9f55q$(zG().CURRENT_DEST,!0,this.local$this$ParentalConsentManagementPresenter.context),nt):(this.local$this$ParentalConsentManagementPresenter.systemImpl.go_henhri$(EM().VIEW_NAME,ji(),this.local$this$ParentalConsentManagementPresenter.context,new Ww(zG().ROOT_DEST,!1)),nt);case 11:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},py.prototype.handleClickSave_nqi3in$=function(t){var e,n;it(this.presenterScope,It(),void 0,(e=this,n=t,function(t,i,o){var r=new gy(e,n,t,this,i);return o?r:r.doResume(null)}))},$y.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var Ey=null;function yy(){return null===Ey&&new $y,Ey}function by(t,n,i,o,r){var s;fz.call(this,t,n,i,o,r),this.serverUrl_spjmtp$_0=this.serverUrl_spjmtp$_0,this.impl_9i9f6z$_0=H(this,e.isType(s=F(M(P(aq),[],!1)),B)?s:W(),null).provideDelegate_tpuvb9$(this,Sy);var a,c,l,u=this.accountManager.activeEndpoint;a=this.diTrigger,this.authManager_3wqwuy$_0=H(G(this,q.Companion.invoke_np530x$(e.isType(c=F(M(P(Zs),[],!1)),B)?c:W(),u),a),e.isType(l=F(M(P(Ms),[],!1)),B)?l:W(),null).provideDelegate_tpuvb9$(this,vy),this.createAccount_0=!1,this.activeUserHasPasswordResetPermission_0=!1}py.$metadata$={kind:v,simpleName:"ParentalConsentManagementPresenter",interfaces:[fz]},Object.defineProperty(by.prototype,"persistenceMode",{configurable:!0,get:function(){return xz()}}),Object.defineProperty(by.prototype,"serverUrl_0",{configurable:!0,get:function(){return null==this.serverUrl_spjmtp$_0?Ue("serverUrl"):this.serverUrl_spjmtp$_0},set:function(t){this.serverUrl_spjmtp$_0=t}});var Sy=new N("impl");Object.defineProperty(by.prototype,"impl_0",{configurable:!0,get:function(){return this.impl_9i9f6z$_0.value}});var vy=new N("authManager");function Cy(t,e,n,i,o,r){L.call(this,r),this.$controller=o,this.exceptionState_0=1,this.local$closure$db=t,this.local$closure$activePersonUid=e,this.local$closure$entityUid=n}function Ny(t,e,n){return function(i,o,r){var s=new Cy(t,e,n,i,this,o);return r?s:s.doResume(null)}}function Ty(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$db=t,this.local$closure$entityUid=e}function Ly(t,e){return function(n,i,o){var r=new Ty(t,e,n,this,i);return o?r:r.doResume(null)}}function zy(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$tmp$_2=void 0,this.local$entityUid=void 0,this.local$db=e}function wy(t,e,n,i,o,r){L.call(this,r),this.$controller=o,this.exceptionState_0=1,this.local$closure$entity=t,this.local$this$PersonAccountEditPresenter=e,this.local$closure$newPassword=n,this.local$entityUsername=void 0}function Oy(){Ry=this,this.GENDER_MESSAGE_ID_MAP=y([E(1,2049),E(2,2048),E(4,2050)])}Object.defineProperty(by.prototype,"authManager_0",{configurable:!0,get:function(){return this.authManager_3wqwuy$_0.value}}),by.prototype.onCreate=function(t){var e;fz.prototype.onCreate.call(this,t),this.serverUrl_0=null!=(e=this.arguments.get_11rb$(zG().ARG_SERVER_URL))?e:this.accountManager.activeAccount.endpointUrl},Cy.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Cy.prototype=Object.create(L.prototype),Cy.prototype.constructor=Cy,Cy.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$closure$db.personDao.personHasPermissionAsync_b9bd0d$(this.local$closure$activePersonUid,this.local$closure$entityUid,qo,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ty.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Ty.prototype=Object.create(L.prototype),Ty.prototype.constructor=Ty,Ty.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n=this.local$closure$db;if(null!=(e=null!=(t=x(this.local$closure$entityUid,O)?null:n)?t.personDao:null)){if(this.state_0=2,this.result_0=e.findPersonAccountByUid_s8cxhz$(this.local$closure$entityUid,this),this.result_0===T)return T;continue}this.result_0=null,this.state_0=3;continue;case 1:throw this.exception_0;case 2:this.state_0=3;continue;case 3:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zy.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},zy.prototype=Object.create(L.prototype),zy.prototype.constructor=zy,zy.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n,i;this.local$entityUid=null!=(e=null!=(t=this.$this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(t):null)?e:O;var o=this.$this.accountManager.activeAccount.personUid;if(x(o,this.local$entityUid)){this.local$tmp$_2=!1,this.state_0=3;continue}if(this.state_0=2,this.result_0=qi(Ot,Ny(this.local$db,o,this.local$entityUid),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:this.local$tmp$_2=null!=(n=this.result_0)&&n,this.state_0=3;continue;case 3:if(this.$this.activeUserHasPasswordResetPermission_0=this.local$tmp$_2,this.$this.view.currentPasswordVisible=!this.$this.activeUserHasPasswordResetPermission_0,this.state_0=4,this.result_0=qi(Ot,Ly(this.local$db,this.local$entityUid),this),this.result_0===T)return T;continue;case 4:var r=null!=(i=this.result_0)?i:new ft,s=r.username;this.$this.createAccount_0=null==s||0===s.length;var a=this.$this.view,c=r.username;return a.usernameVisible=null==c||uo(c),r;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},by.prototype.onLoadEntityFromDb_7hogkd$=function(t,e,n){var i=new zy(this,t,e);return n?i:i.doResume(null)},by.prototype.onLoadFromJson_y0zsll$=function(t){var n;fz.prototype.onLoadFromJson_y0zsll$.call(this,t);var i=t.get_11rb$(oG().ARG_ENTITY_JSON);if(null!=i){var o,r=this.di,s=ft.Companion.serializer();n=Et(r).directDI.Instance_ohrpre$(e.isType(o=F(M(P(Pt),[],!1)),B)?o:W(),null).decodeFromString_awif5v$(s,i)}else n=new ft;return n},by.prototype.onSaveInstanceState_gtra9a$=function(t){fz.prototype.onSaveInstanceState_gtra9a$.call(this,t);var e=this.entity;xA(t,oG().ARG_ENTITY_JSON,this.json,ft.Companion.serializer(),e)},wy.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},wy.prototype=Object.create(L.prototype),wy.prototype.constructor=wy,wy.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:this.local$entityUsername=this.local$closure$entity.username;var t=this.local$closure$entity.currentPassword;if(this.local$this$PersonAccountEditPresenter.activeUserHasPasswordResetPermission_0||this.local$this$PersonAccountEditPresenter.createAccount_0){this.state_0=4;continue}if(null==this.local$entityUsername||null==t)throw z("Should have been an error");if(this.state_0=2,this.result_0=this.local$this$PersonAccountEditPresenter.authManager_0.authenticate_qz9155$(this.local$entityUsername,t,void 0,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(this.result_0.success){this.state_0=3;continue}return void(this.local$this$PersonAccountEditPresenter.view.currentPasswordError=this.local$this$PersonAccountEditPresenter.impl_0.getString(2634,this.local$this$PersonAccountEditPresenter.context));case 3:this.state_0=4;continue;case 4:if(this.local$this$PersonAccountEditPresenter.createAccount_0){if(null==this.local$entityUsername)throw z("Cannot create new user with null username");if(this.state_0=5,this.result_0=this.local$this$PersonAccountEditPresenter.repo.personDao.findByUsernameCount_61zpoe$(this.local$entityUsername,this),this.result_0===T)return T;continue}this.state_0=8;continue;case 5:if(0===this.result_0){if(this.state_0=6,this.result_0=this.local$this$PersonAccountEditPresenter.repo.personDao.updateAsync_6c9i1n$(this.local$closure$entity,this),this.result_0===T)return T;continue}return void(this.local$this$PersonAccountEditPresenter.view.usernameError=this.local$this$PersonAccountEditPresenter.impl_0.getString(2633,this.local$this$PersonAccountEditPresenter.context));case 6:this.state_0=7;continue;case 7:this.state_0=8;continue;case 8:if(this.state_0=9,this.result_0=this.local$this$PersonAccountEditPresenter.authManager_0.setAuth_a4hdmt$(this.local$closure$entity.personUid,this.local$closure$newPassword,this),this.result_0===T)return T;continue;case 9:var n,i=this.local$this$PersonAccountEditPresenter,o=this.local$this$PersonAccountEditPresenter.di,r=jt(ft.Companion.serializer()),s=$e(this.local$closure$entity),a=Et(o).directDI.Instance_ohrpre$(e.isType(n=F(M(P(Pt),[],!1)),B)?n:W(),null);return i.finishWithResult_61zpoe$(a.encodeToString_tf03ej$(r,s)),nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},by.prototype.handleClickSave_nqi3in$=function(t){var e,n=!this.activeUserHasPasswordResetPermission_0;if(n){var i=t.currentPassword;n=null==i||0===i.length}var o=n&&!this.createAccount_0;if(!o){var r=t.newPassword;o=null==r||0===r.length}var s=o;if(!s){var a=t.confirmedPassword;s=null==a||0===a.length}var c=s;if(!c){var l=t.username;c=null==l||0===l.length}if(c||!x(t.confirmedPassword,t.newPassword)){var u=this.impl_0.getString(2126,this.context),h=this.view,d=t.username;h.usernameError=null==d||0===d.length?u:null;var p=this.view,_=!x(t.confirmedPassword,t.newPassword);if(_){var m=t.confirmedPassword;_=!(null==m||0===m.length)}var f=_;if(f){var g=t.newPassword;f=!(null==g||0===g.length)}p.noPasswordMatchError=f?this.impl_0.getString(2128,this.context):null;var $=t.currentPassword;this.view.currentPasswordError=null!=$&&0!==$.length||this.activeUserHasPasswordResetPermission_0||this.createAccount_0?null:u;var E=t.newPassword;this.view.newPasswordError=null==E||0===E.length?u:this.view.newPasswordError;var y=t.confirmedPassword;this.view.confirmedPasswordError=null==y||0===y.length?u:this.view.confirmedPasswordError}else{if(null==(e=t.newPassword))throw z("Not possible! hasErrors checked false");var b,S,v,C=e;it(this.presenterScope,void 0,void 0,(b=t,S=this,v=C,function(t,e,n){var i=new wy(b,S,v,t,this,e);return n?i:i.doResume(null)}))}},by.$metadata$={kind:v,simpleName:"PersonAccountEditPresenter",interfaces:[fz]},Oy.$metadata$={kind:S,simpleName:"PersonConstants",interfaces:[]};var Ry=null;function Ay(){return null===Ry&&new Oy,Ry}function xy(t,e,n,i,o){ky(),_z.call(this,t,e,n,i,o)}function Iy(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$closure$entityUid=t,this.local$dbToUse=e}function Uy(t){return function(e,n,i){var o=new Iy(t,e,n);return i?o:o.doResume(null)}}function Dy(t,e,n,i,o,r,s){L.call(this,s),this.$controller=r,this.exceptionState_0=1,this.local$closure$repo=t,this.local$closure$entityUid=e,this.local$closure$activePersonUid=n,this.local$this$PersonDetailPresenter=i,this.local$person=void 0}function Py(){My=this,this.SAVEDSTATE_KEY_PERSON="Person"}Object.defineProperty(xy.prototype,"persistenceMode",{configurable:!0,get:function(){return Uz()}}),Iy.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Iy.prototype=Object.create(L.prototype),Iy.prototype.constructor=Iy,Iy.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e;if(null!=(e=null!=(t=x(this.local$closure$entityUid,O)?null:this.local$dbToUse)?t.personDao:null)){if(this.state_0=2,this.result_0=e.findByUidAsync_s8cxhz$(this.local$closure$entityUid,this),this.result_0===T)return T;continue}this.result_0=null,this.state_0=3;continue;case 1:throw this.exception_0;case 2:this.state_0=3;continue;case 3:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Dy.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Dy.prototype=Object.create(L.prototype),Dy.prototype.constructor=Dy,Dy.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(this.state_0=2,this.result_0=Rt(this.local$closure$repo,ko,Uy(this.local$closure$entityUid),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(this.local$person=null!=(t=this.result_0)?t:new J,this.state_0=3,this.result_0=this.local$closure$repo.personDao.personHasPermissionAsync_b9bd0d$(this.local$closure$activePersonUid,this.local$closure$entityUid,qo,this),this.result_0===T)return T;continue;case 3:var e=this.result_0;return this.local$this$PersonDetailPresenter.view.changePasswordVisible=null!=this.local$person.username&&(x(this.local$closure$activePersonUid,this.local$closure$entityUid)||e),this.local$this$PersonDetailPresenter.view.chatVisibility=!x(this.local$person.personUid,this.local$closure$activePersonUid),this.local$this$PersonDetailPresenter.view.showCreateAccountVisible=null==this.local$person.username&&e,nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},xy.prototype.onLoadLiveData_7hogkd$=function(t){var e,n,i,o,r,s=null!=(n=null!=(e=this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(e):null)?n:O;this.view.clazzes=t.clazzEnrolmentDao.findAllClazzesByPersonWithClazz_s8cxhz$(s);var a,c,l,u,h=null!=(r=null!=(o=null!=(i=this.accountManager.activeSession)?i.person:null)?o.personUid:null)?r:Fn;return it(tt.GlobalScope,It(),void 0,(a=t,c=s,l=h,u=this,function(t,e,n){var i=new Dy(a,c,l,u,t,this,e);return n?i:i.doResume(null)})),t.personDao.findByUidWithDisplayDetailsLive_3pjtqy$(s,h)},xy.prototype.handleClickClazz_yflbhc$=function(t){this.systemImpl.go_gofqk3$(MI().VIEW_NAME,Je(E(zG().ARG_ENTITY_UID,t.clazzEnrolmentClazzUid.toString())),this.context)},xy.prototype.onCheckEditPermission_tn71rk$=function(t,e){var n,i,o;return this.repo.personDao.personHasPermissionAsync_b9bd0d$(null!=(n=null!=t?t.personUid:null)?n:O,null!=(o=null!=(i=this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(i):null)?o:O,Fo,e)},xy.prototype.handleClickEdit=function(){this.navigateToEditScreen_0(pM().VIEW_NAME)},xy.prototype.handleChangePassword=function(){this.navigateToEditScreen_0()},xy.prototype.handleCreateAccount=function(){this.navigateToEditScreen_0()},xy.prototype.navigateToEditScreen_0=function(t){var e,n;if(void 0===t&&(t=rM().VIEW_NAME),null!=(n=null!=(e=this.view.entity)?e.personUid:null)){var i=n;this.navigateForResult_r13zgt$(new Iw(this,null,t,P(ft),ft.Companion.serializer(),ky().SAVEDSTATE_KEY_PERSON,void 0,jn([E(zG().ARG_ENTITY_UID,i.toString())])))}},xy.prototype.handleClickChat=function(){var t,e;this.systemImpl.go_gofqk3$(sI().VIEW_NAME,Je(E(zG().ARG_PERSON_UID,(null!=(e=null!=(t=this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(t):null)?e:O).toString())),this.context)},xy.prototype.handleClickManageParentalConsent=function(){var t,e,n,i,o=null!=(i=null!=(n=null!=(e=null!=(t=this.entityLiveData)?t.getValue():null)?e.parentJoin:null)?n.ppjUid:null)?i:O;x(o,O)?this.view.showSnackBar_9pu0dj$(this.systemImpl.getString(2002,this.context)):this.systemImpl.go_gofqk3$(eM().VIEW_NAME,y([E(zG().ARG_ENTITY_UID,o.toString()),E(zG().ARG_NEXT,zG().CURRENT_DEST)]),this.context)},Py.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var My=null;function ky(){return null===My&&new Py,My}function jy(t,n,i,o,r){var s;fz.call(this,t,n,i,o,r,!n.containsKey_11rb$(pM().ARG_REGISTRATION_MODE)),this.serverUrl_3sqfvu$_0=this.serverUrl_3sqfvu$_0,this.impl_9gfq0e$_0=H(this,e.isType(s=F(M(P(aq),[],!1)),B)?s:W(),null).provideDelegate_tpuvb9$(this,Gy),this.nextDestination_8xt98n$_0=this.nextDestination_8xt98n$_0,this.registrationModeFlags_0=0,this.loggedInPerson_0=null,this.regViaLink_0=!1,this.mPersonParentJoin_8be2vx$=null}xy.$metadata$={kind:v,simpleName:"PersonDetailPresenter",interfaces:[_z]},Object.defineProperty(jy.prototype,"serverUrl_0",{configurable:!0,get:function(){return null==this.serverUrl_3sqfvu$_0?Ue("serverUrl"):this.serverUrl_3sqfvu$_0},set:function(t){this.serverUrl_3sqfvu$_0=t}});var Gy=new N("impl");function qy(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$db=t,this.local$closure$entityUid=e}function Fy(t,e){return function(n,i,o){var r=new qy(t,e,n,this,i);return o?r:r.doResume(null)}}function By(t,e,n,i){L.call(this,i),this.exceptionState_0=1,this.local$closure$entityUid=t,this.local$dbToUse=e}function Wy(t){return function(e,n,i,o){var r=new By(t,e,n,i);return o?r:r.doResume(null)}}function Hy(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$db=t,this.local$closure$loggedInPersonUid=e}function Vy(t,e){return function(n,i,o){var r=new Hy(t,e,n,this,i);return o?r:r.doResume(null)}}function Ky(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$tmp$_3=void 0,this.local$entityUid=void 0,this.local$person=void 0,this.local$db=e}function Xy(t,e,n,i){L.call(this,i),this.exceptionState_0=1,this.local$closure$entity=t,this.local$this$PersonEditPresenter=e,this.local$txRepo=n}function Jy(t,e){return function(n,i,o){var r=new Xy(t,e,n,i);return o?r:r.doResume(null)}}function Yy(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=19,this.local$this$PersonEditPresenter=t,this.local$closure$entity=e,this.local$requiredFieldMessage=void 0}function Qy(t){this.closure$block=t}function Zy(t,e,n,i,o){rb(),Ez.call(this,t,e,n,i,o),this.filterExcludeMembersOfClazz_0=O,this.filterExcludeMemberOfSchool_0=O,this.filterAlreadySelectedList_0=fe(),this.filterByPermission_0=O,this.searchText=null}function tb(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$tmp$_2=void 0,this.local$account=e}function eb(t,e,n,i){return function(){return t.systemImpl.go_gofqk3$(pP().VIEW_NAME,y([E(zG().ARG_CODE_TABLE,e.toString()),E(zG().ARG_CODE,n),E(zG().ARG_ENTITY_NAME,i)]),t.context),nt}}function nb(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$PersonListPresenter=t,this.local$code=void 0,this.local$entityName=void 0,this.local$tableId=void 0}function ib(){ob=this,this.SORT_OPTIONS=be([new BR(2038,1,!0),new BR(2038,2,!1),new BR(2037,3,!0),new BR(2037,4,!1)]),this.RESULT_PERSON_KEY="Person",this.ARG_HIDE_PERSON_ADD="ArgHidePersonAdd"}Object.defineProperty(jy.prototype,"impl_0",{configurable:!0,get:function(){return this.impl_9gfq0e$_0.value}}),Object.defineProperty(jy.prototype,"nextDestination_0",{configurable:!0,get:function(){return null==this.nextDestination_8xt98n$_0?Ue("nextDestination"):this.nextDestination_8xt98n$_0},set:function(t){this.nextDestination_8xt98n$_0=t}}),Object.defineProperty(jy.prototype,"persistenceMode",{configurable:!0,get:function(){return xz()}}),jy.prototype.onCreate=function(t){var e,n,i,o,r,s,a,c;this.registrationModeFlags_0=null!=(n=null!=(e=this.arguments.get_11rb$(pM().ARG_REGISTRATION_MODE))?Ai(e):null)?n:0,this.regViaLink_0=null!=(o=null!=(i=this.arguments.get_11rb$(pM().REGISTER_VIA_LINK))?Xe(i):null)&&o,s=this.arguments.containsKey_11rb$(zG().ARG_SERVER_URL)?ke(this.arguments,zG().ARG_SERVER_URL):null!=(r=this.impl_0.getAppConfigString(Rw().KEY_API_URL,"http://localhost",this.context))?r:"",this.serverUrl_0=s,this.nextDestination_0=null!=(c=null!=(a=this.arguments.get_11rb$(zG().ARG_NEXT))?a:this.impl_0.getAppConfigString(Rw().KEY_FIRST_DEST,BU().VIEW_NAME,this.context))?c:BU().VIEW_NAME,this.view.registrationMode=this.registrationModeFlags_0,fz.prototype.onCreate.call(this,t),this.view.genderOptions=be([new fR(2049,this.context,1,this.di),new fR(2048,this.context,2,this.di),new fR(2050,this.context,4,this.di)])},qy.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},qy.prototype=Object.create(L.prototype),qy.prototype.constructor=qy,qy.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n=this.local$closure$db;if(null!=(e=null!=(t=x(this.local$closure$entityUid,O)?null:n)?t.personDao:null)){if(this.state_0=2,this.result_0=e.findPersonAccountByUid_s8cxhz$(this.local$closure$entityUid,this),this.result_0===T)return T;continue}this.result_0=null,this.state_0=3;continue;case 1:throw this.exception_0;case 2:this.state_0=3;continue;case 3:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},By.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},By.prototype=Object.create(L.prototype),By.prototype.constructor=By,By.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e;if(null!=(e=null!=(t=x(this.local$closure$entityUid,O)?null:this.local$dbToUse)?t.personPictureDao:null)){if(this.state_0=2,this.result_0=e.findByPersonUidAsync_s8cxhz$(this.local$closure$entityUid,this),this.result_0===T)return T;continue}this.result_0=null,this.state_0=3;continue;case 1:throw this.exception_0;case 2:this.state_0=3;continue;case 3:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Hy.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Hy.prototype=Object.create(L.prototype),Hy.prototype.constructor=Hy,Hy.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$closure$db.personDao.findByUidAsync_s8cxhz$(this.local$closure$loggedInPersonUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ky.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Ky.prototype=Object.create(L.prototype),Ky.prototype.constructor=Ky,Ky.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n,i,o;if(this.local$entityUid=null!=(n=null!=(t=this.$this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(t):null)?n:O,this.state_0=2,this.result_0=qi(Ot,Fy(this.local$db,this.local$entityUid),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var r;if(null!=(i=this.result_0))r=i;else{var s,a,c=new ft;c.dateOfBirth=null!=(a=null!=(s=this.$this.arguments.get_11rb$(pM().ARG_DATE_OF_BIRTH))?de(s):null)?a:O,r=c}if(this.local$person=r,this.local$tmp$_3=this.$this.view,this.state_0=3,this.result_0=mi(this.local$db,Ot,Wy(this.local$entityUid),this),this.result_0===T)return T;continue;case 3:this.local$tmp$_3.personPicture=null!=(o=this.result_0)?o:new Bo,NA(this.$this.registrationModeFlags_0,2)&&!e.isType(this.local$db,At)&&(this.$this.mPersonParentJoin_8be2vx$=new gt,this.$this.view.approvalPersonParentJoin=this.$this.mPersonParentJoin_8be2vx$);var l=this.$this.accountManager.activeAccount.personUid;if(this.state_0=4,this.result_0=qi(Ot,Vy(this.local$db,l),this),this.result_0===T)return T;continue;case 4:return this.$this.loggedInPerson_0=this.result_0,this.local$person;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},jy.prototype.onLoadEntityFromDb_7hogkd$=function(t,e,n){var i=new Ky(this,t,e);return n?i:i.doResume(null)},jy.prototype.onLoadFromJson_y0zsll$=function(t){var n;fz.prototype.onLoadFromJson_y0zsll$.call(this,t);var i=t.get_11rb$(oG().ARG_ENTITY_JSON);if(null!=i){var o,r=this.di,s=ft.Companion.serializer();n=Et(r).directDI.Instance_ohrpre$(e.isType(o=F(M(P(Pt),[],!1)),B)?o:W(),null).decodeFromString_awif5v$(s,i)}else n=new ft;return n},jy.prototype.onSaveInstanceState_gtra9a$=function(t){fz.prototype.onSaveInstanceState_gtra9a$.call(this,t);var e=this.entity;xA(t,oG().ARG_ENTITY_JSON,this.json,ft.Companion.serializer(),e)},jy.prototype.hasErrors_0=function(t){return null!=t.usernameError||null!=t.passwordError||null!=t.confirmError||null!=t.dateOfBirthError||null!=t.noMatchPasswordError||null!=t.firstNamesFieldError||null!=t.lastNameFieldError||null!=t.genderFieldError||null!=t.firstNameError||null!=t.lastNameError||null!=t.emailError||null!=t.parentContactError},Xy.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Xy.prototype=Object.create(L.prototype),Xy.prototype.constructor=Xy,Xy.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(x(this.local$closure$entity.personUid,O)){if(this.state_0=3,this.result_0=Sx(this.local$txRepo,this.local$closure$entity,void 0,this),this.result_0===T)return T;continue}if(this.state_0=2,this.result_0=this.local$txRepo.personDao.updateAsync_6c9i1n$(this.local$closure$entity,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:this.state_0=4;continue;case 3:var t=this.result_0;this.local$closure$entity.personGroupUid=t.personGroupUid,this.local$closure$entity.personUid=t.personUid,this.state_0=4;continue;case 4:if(SO(D.Companion.invoke_s8cxhz$(this.local$closure$entity.dateOfBirth))0&&!nF(S)&&(this.local$this$PersonEditPresenter.view.emailError=m);var v=this.local$this$PersonEditPresenter.view,N=this.local$closure$entity.firstNames;null!=(r=null==N||0===N.length?v:null)&&(r.firstNameError=this.local$requiredFieldMessage);var L=this.local$this$PersonEditPresenter.view,z=this.local$closure$entity.lastName;if(null!=(s=null==z||0===z.length?L:null)&&(s.lastNameError=this.local$requiredFieldMessage),this.local$this$PersonEditPresenter.hasErrors_0(this.local$this$PersonEditPresenter.view))return this.local$this$PersonEditPresenter.view.loading=!1,void(this.local$this$PersonEditPresenter.view.fieldsEnabled=!0);this.state_0=1;continue;case 1:if(NA(this.local$this$PersonEditPresenter.registrationModeFlags_0,1)){var w=this.local$this$PersonEditPresenter.view,R=this.local$closure$entity.username;null!=(a=null==R||0===R.length?w:null)&&(a.usernameError=this.local$requiredFieldMessage);var A=this.local$this$PersonEditPresenter.view,I=this.local$closure$entity.newPassword;null!=(c=null==I||0===I.length?A:null)&&(c.passwordError=this.local$requiredFieldMessage);var U=this.local$this$PersonEditPresenter.view,D=this.local$closure$entity.confirmedPassword;if(null!=(l=null==D||0===D.length?U:null)&&(l.confirmError=this.local$requiredFieldMessage),NA(this.local$this$PersonEditPresenter.registrationModeFlags_0,2)){var P,M,k,j=null!=(P=this.local$this$PersonEditPresenter.mPersonParentJoin_8be2vx$)?P.ppjEmail:null;u=null==j||uo(j)?2126:!0!==(null!=(k=null!=(M=this.local$this$PersonEditPresenter.mPersonParentJoin_8be2vx$)?M.ppjEmail:null)?nF(k):null)?2701:0}else u=0;var G=u,q=this.local$this$PersonEditPresenter.view;null!=(h=0!==G?q:null)&&(h.parentContactError=this.local$this$PersonEditPresenter.systemImpl.getString(G,this.local$this$PersonEditPresenter.context));var F=this.local$this$PersonEditPresenter.view;null!=(d=x(this.local$closure$entity.dateOfBirth,O)?F:null)&&(d.dateOfBirthError=this.local$requiredFieldMessage);var B=this.local$this$PersonEditPresenter.view,W=this.local$closure$entity;if(null!=(p=x(W.confirmedPassword,W.newPassword)?null:B)&&(p.noMatchPasswordError=this.local$this$PersonEditPresenter.impl_0.getString(2128,this.local$this$PersonEditPresenter.context)),this.local$this$PersonEditPresenter.hasErrors_0(this.local$this$PersonEditPresenter.view))return this.local$this$PersonEditPresenter.view.loading=!1,void(this.local$this$PersonEditPresenter.view.fieldsEnabled=!0);this.state_0=8;continue}if(this.state_0=2,this.result_0=ut(this.local$this$PersonEditPresenter.repo,void 0,Jy(this.local$closure$entity,this.local$this$PersonEditPresenter),this),this.result_0===T)return T;continue;case 2:var H=this.local$this$PersonEditPresenter.view.personPicture;if(null!=H){if(H.personPicturePersonUid=this.local$closure$entity.personUid,x(H.personPictureUid,O)){if(this.state_0=4,this.result_0=this.local$this$PersonEditPresenter.repo.personPictureDao.insertAsync(H,this),this.result_0===T)return T;continue}if(this.state_0=3,this.result_0=this.local$this$PersonEditPresenter.repo.personPictureDao.updateAsync_c8xyxp$(H,this),this.result_0===T)return T;continue}this.state_0=6;continue;case 3:case 4:this.state_0=5;continue;case 5:this.state_0=6;continue;case 6:return this.local$this$PersonEditPresenter.arguments.containsKey_11rb$(zG().ARG_GO_TO_COMPLETE)?(this.local$this$PersonEditPresenter.systemImpl.go_gofqk3$(He(this.local$this$PersonEditPresenter.arguments.get_11rb$(zG().ARG_GO_TO_COMPLETE)),Di(this.local$this$PersonEditPresenter.arguments,E(zG().ARG_PERSON_UID,this.local$closure$entity.personUid.toString())),this.local$this$PersonEditPresenter.context),nt):(this.local$this$PersonEditPresenter.onFinish_xcg1s8$(lM().VIEW_NAME,this.local$closure$entity.personUid,this.local$closure$entity,ft.Companion.serializer()),nt);case 7:this.state_0=18;continue;case 8:if(this.exceptionState_0=13,this.state_0=9,this.result_0=this.local$this$PersonEditPresenter.accountManager.register_y55c4w$(this.local$closure$entity,this.local$this$PersonEditPresenter.serverUrl_0,new Ds(!NA(this.local$this$PersonEditPresenter.registrationModeFlags_0,2),this.local$this$PersonEditPresenter.mPersonParentJoin_8be2vx$),this),this.result_0===T)return T;continue;case 9:var V=null!=(_=this.local$this$PersonEditPresenter.arguments.get_11rb$(zG().ARG_POPUPTO_ON_FINISH))?_:zG().CURRENT_DEST;if(NA(this.local$this$PersonEditPresenter.registrationModeFlags_0,2)){var K=new Ww(LM().VIEW_NAME,!0);this.local$this$PersonEditPresenter.nextDestination_0="RegisterMinorWaitForParent";var X,J,Y,Q,Z=mt(),tt=this.local$closure$entity,et=this.local$this$PersonEditPresenter,it=RM().ARG_USERNAME,ot=null!=(X=tt.username)?X:"";Z.put_xwzc9p$(it,ot);var rt=RM().ARG_PARENT_CONTACT,st=null!=(Y=null!=(J=et.mPersonParentJoin_8be2vx$)?J.ppjEmail:null)?Y:"";Z.put_xwzc9p$(rt,st);var at=RM().ARG_PASSWORD,ct=null!=(Q=tt.newPassword)?Q:"";Z.put_xwzc9p$(at,ct),IA(Z,et.arguments,zG().ARG_POPUPTO_ON_FINISH);var lt=Z;this.exceptionState_0=19,this.finallyPath_0=[11],this.state_0=16,this.$returnValue=(this.local$this$PersonEditPresenter.impl_0.go_henhri$(RM().VIEW_NAME,lt,this.local$this$PersonEditPresenter.context,K),nt);continue}var ht=new Ww(V,!0);this.exceptionState_0=19,this.finallyPath_0=[10],this.state_0=16,this.$returnValue=(this.local$this$PersonEditPresenter.impl_0.go_henhri$(this.local$this$PersonEditPresenter.nextDestination_0,ji(),this.local$this$PersonEditPresenter.context,ht),nt);continue;case 10:case 11:return this.$returnValue;case 12:this.exceptionState_0=19,this.finallyPath_0=[17],this.state_0=16;continue;case 13:this.finallyPath_0=[19],this.exceptionState_0=16;var dt=this.exception_0;if(e.isType(dt,on)){e.isType(dt,C)?this.local$this$PersonEditPresenter.view.usernameError=this.local$this$PersonEditPresenter.impl_0.getString(2633,this.local$this$PersonEditPresenter.context):this.local$this$PersonEditPresenter.view.showSnackBar_9pu0dj$(this.local$this$PersonEditPresenter.impl_0.getString(2010,this.local$this$PersonEditPresenter.context)),this.exceptionState_0=19,this.finallyPath_0=[14],this.state_0=16;continue}throw dt;case 14:return;case 15:this.finallyPath_0=[17],this.state_0=16;continue;case 16:this.exceptionState_0=19,this.local$this$PersonEditPresenter.view.loading=!1,this.local$this$PersonEditPresenter.view.fieldsEnabled=!0,this.state_0=this.finallyPath_0.shift();continue;case 17:this.state_0=18;continue;case 18:return;case 19:throw this.exception_0;default:throw this.state_0=19,new Error("State Machine Unreachable execution")}}catch(dt){if(19===this.state_0)throw this.exceptionState_0=this.state_0,dt;this.state_0=this.exceptionState_0,this.exception_0=dt}},jy.prototype.handleClickSave_nqi3in$=function(t){var e,n;this.view.loading=!0,this.view.fieldsEnabled=!1,it(this.presenterScope,void 0,void 0,(e=this,n=t,function(t,i,o){var r=new Yy(e,n,t,this,i);return o?r:r.doResume(null)}))},jy.$metadata$={kind:v,simpleName:"PersonEditPresenter",interfaces:[fz]},Qy.prototype.run=function(){this.closure$block()},Qy.$metadata$={kind:v,interfaces:[xo]},Object.defineProperty(Zy.prototype,"sortOptions",{configurable:!0,get:function(){return rb().SORT_OPTIONS}}),Zy.prototype.onCreate=function(t){var n,i,o,r,s,a,c,l,u,h,d,p,_,m,f;if(Ez.prototype.onCreate.call(this,t),this.filterExcludeMembersOfClazz_0=null!=(i=null!=(n=this.arguments.get_11rb$(EM().ARG_FILTER_EXCLUDE_MEMBERSOFCLAZZ))?de(n):null)?i:O,this.filterExcludeMemberOfSchool_0=null!=(r=null!=(o=this.arguments.get_11rb$(EM().ARG_FILTER_EXCLUDE_MEMBERSOFSCHOOL))?de(o):null)?r:O,null!=(a=null!=(s=this.arguments.get_11rb$(EM().ARG_EXCLUDE_PERSONUIDS_LIST))?Pi(s,[","]):null)){var g,$=ot();for(g=a.iterator();g.hasNext();){var E=g.next();E.length>0&&$.add_11rb$(E)}p=$}else p=null;if(null!=(c=p)){var y,b=st(rt(c,10));for(y=c.iterator();y.hasNext();){var S,v=y.next();b.add_11rb$(de(Oi(e.isCharSequence(S=v)?S:W()).toString()))}_=b}else _=null;this.filterAlreadySelectedList_0=null!=(l=_)?l:fe(),m=null!=(u=this.arguments.get_11rb$(zG().ARG_FILTER_BY_PERMISSION))?Oi(e.isCharSequence(f=u)?f:W()).toString():null,this.filterByPermission_0=null!=(d=null!=(h=m)?de(h):null)?d:Ho,this.selectedSortOption=rb().SORT_OPTIONS.get_za3lpa$(0),this.updateListOnView_0()},tb.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},tb.prototype=Object.create(L.prototype),tb.prototype.constructor=tb,tb.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n;if(this.$this.view.inviteViaLinkVisibile=!x(null!=(e=null!=(t=this.$this.arguments.get_11rb$(EM().ARG_FILTER_EXCLUDE_MEMBERSOFCLAZZ))?de(t):null)?e:O,O),null!==this.$this.arguments.get_11rb$(rb().ARG_HIDE_PERSON_ADD)){this.local$tmp$_2=!1,this.state_0=3;continue}if(this.state_0=2,this.result_0=this.$this.db.entityRoleDao.userHasTableLevelPermission_3pjtqy$(null!=(n=null!=this.local$account?this.local$account.personUid:null)?n:O,Vo,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:this.local$tmp$_2=this.result_0,this.state_0=3;continue;case 3:return this.local$tmp$_2;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Zy.prototype.onCheckAddPermission_tn71rk$=function(t,e,n){var i=new tb(this,t,e);return n?i:i.doResume(null)},Zy.prototype.updateListOnView_0=function(){var t,e;this.view.list=this.repo.personDao.findPersonsWithPermission_gs5uuz$(sn(),this.filterExcludeMembersOfClazz_0,this.filterExcludeMemberOfSchool_0,this.filterAlreadySelectedList_0,this.accountManager.activeAccount.personUid,null!=(e=null!=(t=this.selectedSortOption)?t.flag:null)?e:0,XA(this.searchText))},Zy.prototype.handleClickEntry_11rc$=function(t){switch(this.mListMode.name){case"PICKER":var n=this.arguments.get_11rb$(zG().ARG_GO_TO_COMPLETE);if(x(n,Ok().VIEW_NAME)){var i=Di(this.arguments,E(Ok().ARG_GRANT_TO_GROUPUID,t.personGroupUid.toString()));this.systemImpl.go_gofqk3$(n,i,this.context)}else if(null!=n){var o=Di(this.arguments,E(zG().ARG_PERSON_UID,t.personUid.toString()));this.systemImpl.go_gofqk3$(n,o,this.context)}else{var r,s=this.di,a=jt(J.Companion.serializer()),c=$e(t),l=Et(s).directDI.Instance_ohrpre$(e.isType(r=F(M(P(Pt),[],!1)),B)?r:W(),null);this.finishWithResult_61zpoe$(l.encodeToString_tf03ej$(a,c))}break;case"BROWSER":this.systemImpl.go_gofqk3$(lM().VIEW_NAME,Je(E(zG().ARG_ENTITY_UID,t.personUid.toString())),this.context)}},Zy.prototype.handleClickCreateNewFab=function(){this.systemImpl.go_gofqk3$(pM().VIEW_NAME,ji(),this.context)},Zy.prototype.handleClickAddNewItem_a4m1mt$$default=function(t,e){var n;this.navigateForResult_r13zgt$(new Iw(this,null,pM().VIEW_NAME,P(J),J.Companion.serializer(),null!=e?e:rb().RESULT_PERSON_KEY,void 0,null!=(n=null!=t?rn(t):null)?n:rn(this.arguments)))},Zy.prototype.onClickSort_o8nuns$=function(t){Ez.prototype.onClickSort_o8nuns$.call(this,t),this.updateListOnView_0()},Zy.prototype.onSearchSubmitted_pdl1vj$=function(t){this.searchText=t,this.updateListOnView_0()},nb.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},nb.prototype=Object.create(L.prototype),nb.prototype.constructor=nb,nb.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(x(this.local$this$PersonListPresenter.filterExcludeMembersOfClazz_0,O)){if(x(this.local$this$PersonListPresenter.filterExcludeMemberOfSchool_0,O)){this.local$code="",this.local$entityName="",this.local$tableId=0,this.state_0=3;continue}if(this.state_0=2,this.result_0=this.local$this$PersonListPresenter.db.schoolDao.findByUidAsync_s8cxhz$(this.local$this$PersonListPresenter.filterExcludeMemberOfSchool_0,this),this.result_0===T)return T;continue}if(this.state_0=4,this.result_0=this.local$this$PersonListPresenter.db.clazzDao.findByUidAsync_s8cxhz$(this.local$this$PersonListPresenter.filterExcludeMembersOfClazz_0,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var t=this.result_0;this.local$code=null!=t?t.schoolCode:null,this.local$entityName=null!=t?t.schoolName:null,this.local$tableId=164,this.state_0=3;continue;case 3:this.state_0=5;continue;case 4:var e=this.result_0;this.local$code=null!=e?e.clazzCode:null,this.local$entityName=null!=e?e.clazzName:null,this.local$tableId=6,this.state_0=5;continue;case 5:return this.local$this$PersonListPresenter.view.runOnUiThread_9ywmpy$(new Qy(eb(this.local$this$PersonListPresenter,this.local$tableId,this.local$code,this.local$entityName))),nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Zy.prototype.handleClickInviteWithLink=function(){var t;it(tt.GlobalScope,void 0,void 0,(t=this,function(e,n,i){var o=new nb(t,e,this,n);return i?o:o.doResume(null)}))},ib.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var ob=null;function rb(){return null===ob&&new ib,ob}function sb(t,n,i,o){var r,s;rz.call(this,t,n,i,o),this.systemImpl_4x4752$_0=H(this,e.isType(r=F(M(P(aq),[],!1)),B)?r:W(),null).provideDelegate_tpuvb9$(this,ab),this.accountManager_p47x11$_0=H(this,e.isType(s=F(M(P(wa),[],!1)),B)?s:W(),null).provideDelegate_tpuvb9$(this,cb)}Zy.$metadata$={kind:v,simpleName:"PersonListPresenter",interfaces:[Ez,oy,ry]};var ab=new N("systemImpl");Object.defineProperty(sb.prototype,"systemImpl",{configurable:!0,get:function(){return this.systemImpl_4x4752$_0.value}});var cb=new N("accountManager");function lb(){return"Redirect: go to ContentEntryListHome"}function ub(){return"Redirect: go to start new user session"}function hb(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$RedirectPresenter=t}function db(t,n,i,o){var r;rz.call(this,t,n,i,o,!1),this.systemImpl_hk5y8g$_0=H(this,e.isType(r=F(M(P(aq),[],!1)),B)?r:W(),null).provideDelegate_tpuvb9$(this,pb)}Object.defineProperty(sb.prototype,"accountManager",{configurable:!0,get:function(){return this.accountManager_p47x11$_0.value}}),hb.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},hb.prototype=Object.create(L.prototype),hb.prototype.constructor=hb,hb.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$RedirectPresenter.navigateToStartNewUserSession(this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},sb.prototype.onCreate=function(t){rz.prototype.onCreate.call(this,t);var e,n,i,o=this.arguments.get_11rb$(zG().ARG_NEXT),r=this.arguments.get_11rb$(zG().ARG_DEEPLINK);!0===(null!=r?r.length>0:null)?(lt.Napier.d_9h2hdn$(void 0,void 0,(i=r,function(){return"Redirect: Go to deep link: "+He(i)})),this.systemImpl.goToDeepLink_dfpk30$(r,this.accountManager,this.context)):null!=o?(lt.Napier.d_9h2hdn$(void 0,void 0,(n=o,function(){return"Redirect: Go to nextViewArg: "+He(n)})),this.systemImpl.goToViewLink_yzvld8$(o,this.context)):null!=this.accountManager.activeSession?(lt.Napier.d_9h2hdn$(void 0,void 0,lb),this.systemImpl.setAppPref_5pkmrg$(vM().TAG_REDIRECTED,"true",this.context),this.systemImpl.goToViewLink_yzvld8$(BU().VIEW_NAME_HOME,this.context)):(lt.Napier.d_9h2hdn$(void 0,void 0,ub),it(this.presenterScope,void 0,void 0,(e=this,function(t,n,i){var o=new hb(e,t,this,n);return i?o:o.doResume(null)})))},sb.$metadata$={kind:v,simpleName:"RedirectPresenter",interfaces:[rz]};var pb=new N("systemImpl");function _b(t,e,n,i,o){_S(),_z.call(this,t,e,n,i,o),this.loggedInPerson_0=null,this.loggedInPersonUid=this.accountManager.activeAccount.personUid}function mb(t,e,n){L.call(this,n),this.$controller=e,this.exceptionState_0=1}function fb(t,e,n){var i=new mb(t,this,e);return n?i:i.doResume(null)}function gb(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$db=t,this.local$closure$entityUid=e}function $b(t,e){return function(n,i,o){var r=new gb(t,e,n,this,i);return o?r:r.doResume(null)}}function Eb(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$db=e}function yb(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$ReportDetailPresenter=t}function bb(t){return function(e,n,i){var o=new yb(t,e,this,n);return i?o:o.doResume(null)}}function Sb(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$this$ReportDetailPresenter=t,this.local$closure$reportWithFilters=e}function vb(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$this$ReportDetailPresenter=t,this.local$closure$report=e}function Cb(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$report=t,this.local$this$ReportDetailPresenter=e}function Nb(){pS=this,this.RESULT_REPORT_KEY="Report"}Object.defineProperty(db.prototype,"systemImpl",{configurable:!0,get:function(){return this.systemImpl_hk5y8g$_0.value}}),db.prototype.onCreate=function(t){rz.prototype.onCreate.call(this,t),this.view.dateOfBirth=et()},db.prototype.handleClickNext=function(){var t,e=D.Companion.invoke_s8cxhz$(this.view.dateOfBirth),n=rn(this.arguments),i=pM().ARG_DATE_OF_BIRTH,o=this.view.dateOfBirth.toString();if(n.put_xwzc9p$(i,o),SO(e)0:null)),o){if(this.state_0=5,this.result_0=qi(Ot,MC(this.local$this$ReportFilterEditPresenter,this.local$closure$entity),this),this.result_0===T)return T;continue}this.state_0=6;continue}if(107===this.local$closure$entity.reportFilterField){var r=null!=this.local$closure$entity.reportFilterValue;if(r&&(r=!0===(null!=(n=this.local$closure$entity.reportFilterValue)?n.length>0:null)),r){if(this.state_0=2,this.result_0=qi(Ot,jC(this.local$this$ReportFilterEditPresenter,this.local$closure$entity),this),this.result_0===T)return T;continue}this.state_0=3;continue}this.state_0=4;continue;case 1:throw this.exception_0;case 2:var s=null!=(i=this.result_0)?i:fe();this.local$this$ReportFilterEditPresenter.uidAndLabelOneToManyHelper_0.liveList.postValue_11rb$(s),this.state_0=3;continue;case 3:this.state_0=4;continue;case 4:this.state_0=7;continue;case 5:var a=null!=(e=this.result_0)?e:fe();this.local$this$ReportFilterEditPresenter.uidAndLabelOneToManyHelper_0.liveList.postValue_11rb$(a),this.state_0=6;continue;case 6:this.state_0=7;continue;case 7:return this.local$this$ReportFilterEditPresenter.uidhelperDeferred_0.complete_11rb$(!0);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Zv.prototype.onLoadFromJson_y0zsll$=function(t){var n,i,o;fz.prototype.onLoadFromJson_y0zsll$.call(this,t);var r,s,a,c=null!=(n=t.get_11rb$(oG().ARG_ENTITY_JSON))?n:"",l=this.di,u=Qo.Companion.serializer(),h=Et(l).directDI.Instance_ohrpre$(e.isType(r=F(M(P(Pt),[],!1)),B)?r:W(),null).decodeFromString_awif5v$(u,c);if(0!==h.reportFilterField){var d,p,_=uC(),m=st(_.length);for(d=0;d!==_.length;++d){var f=_[d];m.add_11rb$(new hC(f,this.context,this.di))}t:do{var g;for(g=m.iterator();g.hasNext();){var $=g.next();if($.code===h.reportFilterField){p=$;break t}}p=null}while(0);this.handleFieldOptionSelected_iowaj7$(e.isType(i=p,fR)?i:W())}if(0!==h.reportFilterCondition){var E,y,b=bC(),S=st(b.length);for(E=0;E!==b.length;++E){var v=b[E];S.add_11rb$(new SC(v,this.context,this.di))}t:do{var C;for(C=S.iterator();C.hasNext();){var N=C.next();if(N.code===h.reportFilterCondition){y=N;break t}}y=null}while(0);this.handleConditionOptionSelected_iowaj7$(e.isType(o=y,fR)?o:W())}return this.uidAndLabelOneToManyHelper_0.onLoadFromJsonSavedState_alv73c$(t),it(tt.GlobalScope,It(),void 0,(s=h,a=this,function(t,e,n){var i=new GC(s,a,t,this,e);return n?i:i.doResume(null)})),h},Zv.prototype.handleFieldOptionSelected_iowaj7$=function(t){switch(t.optionId){case 100:var e,n=this.view,i=be([_C(),mC()]),o=st(rt(i,10));for(e=i.iterator();e.hasNext();){var r=e.next();o.add_11rb$(new SC(r,this.context,this.di))}n.conditionsOptions=o,this.view.valueType=AC();var s,a=this.view,c=HC().genderMap,l=st(c.size);for(s=c.entries.iterator();s.hasNext();){var u=s.next();l.add_11rb$(new fR(u.value,this.context,u.key,this.di))}a.dropDownValueOptions=l;break;case 101:var h,d=this.view,p=be([fC(),gC(),$C()]),_=st(rt(p,10));for(h=p.iterator();h.hasNext();){var m=h.next();_.add_11rb$(new SC(m,this.context,this.di))}d.conditionsOptions=_,this.view.valueType=xC();break;case 102:var f,g=this.view,$=$e(_C()),E=st(rt($,10));for(f=$.iterator();f.hasNext();){var y=f.next();E.add_11rb$(new SC(y,this.context,this.di))}g.conditionsOptions=E,this.view.valueType=AC();var b,S=this.view,v=zC(),C=st(v.length);for(b=0;b!==v.length;++b){var N=v[b];C.add_11rb$(new wC(N,this.context,this.di))}S.dropDownValueOptions=C;break;case 103:var T,L=this.view,z=be([EC(),yC()]),w=st(rt(z,10));for(T=z.iterator();T.hasNext();){var O=T.next();w.add_11rb$(new SC(O,this.context,this.di))}L.conditionsOptions=w,this.view.valueType=UC(),this.view.createNewFilter=this.systemImpl.getString(2259,this.context);break;case 105:case 104:var R,A=this.view,x=$e($C()),I=st(rt(x,10));for(R=x.iterator();R.hasNext();){var U=R.next();I.add_11rb$(new SC(U,this.context,this.di))}A.conditionsOptions=I,this.view.valueType=IC();break;case 106:var D,P=this.view,M=be([_C(),mC()]),k=st(rt(M,10));for(D=M.iterator();D.hasNext();){var j=D.next();k.add_11rb$(new SC(j,this.context,this.di))}P.conditionsOptions=k,this.view.valueType=AC();var G,q=this.view,F=nA,B=st(F.size);for(G=F.entries.iterator();G.hasNext();){var W=G.next();B.add_11rb$(new fR(W.value,this.context,W.key,this.di))}q.dropDownValueOptions=B;break;case 107:var H,V=this.view,K=be([EC(),yC()]),X=st(rt(K,10));for(H=K.iterator();H.hasNext();){var J=H.next();X.add_11rb$(new SC(J,this.context,this.di))}V.conditionsOptions=X,this.view.valueType=UC(),this.view.createNewFilter=this.systemImpl.getString(2377,this.context)}},Zv.prototype.handleConditionOptionSelected_iowaj7$=function(t){switch(t.optionId){case 202:case 203:this.view.valueType=xC();break;case 205:this.view.valueType=IC()}},Zv.prototype.onSaveInstanceState_gtra9a$=function(t){var e;fz.prototype.onSaveInstanceState_gtra9a$.call(this,t);var n=this.entity;103!==(null!=n?n.reportFilterField:null)&&107!==(null!=n?n.reportFilterField:null)||(n.reportFilterValue=null!=(e=this.uidAndLabelOneToManyHelper_0.liveList.getValue())?fn(e,void 0,void 0,void 0,void 0,void 0,qC):null),xA(t,oG().ARG_ENTITY_JSON,this.json,Qo.Companion.serializer(),n)},Zv.prototype.onLoadDataComplete=function(){var t;fz.prototype.onLoadDataComplete.call(this),this.observeSavedStateResult_u0dr5v$(HC().RESULT_LEAVING_REASON_KEY,jt(Ii.Companion.serializer()),P(Ii),new bt((t=this,function(e){var n;if(null!=(n=Un(e))){var i=n,o=t,r=new tr;return r.uid=i.leavingReasonUid,r.labelName=i.leavingReasonTitle,o.handleAddOrEditUidAndLabel_0(r),nt}}))),this.observeSavedStateResult_u0dr5v$(HC().RESULT_CONTENT_KEY,jt(Ji.Companion.serializer()),P(Ji),new bt(function(t){return function(e){var n;if(null!=(n=Un(e))){var i=n,o=t,r=new tr;return r.uid=i.contentEntryUid,r.labelName=i.title,o.handleAddOrEditUidAndLabel_0(r),nt}}}(this)))},Zv.prototype.handleAddLeavingReasonClicked=function(){this.navigateForResult_r13zgt$(new Iw(this,null,MP().VIEW_NAME,P(Ii),Ii.Companion.serializer(),HC().RESULT_LEAVING_REASON_KEY))},Zv.prototype.handleAddContentClicked=function(){this.navigateForResult_r13zgt$(new Iw(this,null,BU().VIEW_NAME,P(Ji),Ji.Companion.serializer(),HC().RESULT_CONTENT_KEY,void 0,jn([E(BU().ARG_DISPLAY_CONTENT_BY_OPTION,BU().ARG_DISPLAY_CONTENT_BY_PARENT),E(zG().ARG_PARENT_ENTRY_UID,zG().MASTER_SERVER_ROOT_ENTRY_UID.toString())])))},Zv.prototype.handleClickSave_nqi3in$=function(t){var n;if(0!==t.reportFilterField)if(this.view.fieldErrorText=null,0!==t.reportFilterCondition){this.view.conditionsErrorText=null,103!==t.reportFilterField&&107!==t.reportFilterField||(t.reportFilterValue=null!=(n=this.uidAndLabelOneToManyHelper_0.liveList.getValue())?fn(n,void 0,void 0,void 0,void 0,void 0,FC):null);var i=0===t.reportFilterDropDownValue;if(i){var o=t.reportFilterValue;i=null==o||uo(o)}var r=i;if(r){var s=t.reportFilterValueBetweenX,a=null==s||0===s.length;if(!a){var c=t.reportFilterValueBetweenY;a=null==c||0===c.length}r=a}if(r)this.view.valuesErrorText=this.fieldRequiredText_0;else{this.view.valuesErrorText=null;var l,u=this.di,h=jt(Qo.Companion.serializer()),d=$e(t),p=Et(u).directDI.Instance_ohrpre$(e.isType(l=F(M(P(Pt),[],!1)),B)?l:W(),null).encodeToString_tf03ej$(h,d);this.finishWithResult_61zpoe$(p)}}else this.view.conditionsErrorText=this.fieldRequiredText_0;else this.view.fieldErrorText=this.fieldRequiredText_0},BC.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var WC=null;function HC(){return null===WC&&new BC,WC}function VC(t,e){return t.uid=e,nt}function KC(t,e,n,i,o){lN(),Ez.call(this,t,e,n,i,o),this.loggedInPersonUid=O,this.searchText=null}function XC(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$this$ReportListPresenter=t,this.local$closure$selectedItem=e}function JC(t,e){return function(){var n,i;return it(tt.GlobalScope,It(),void 0,(n=t,i=e,function(t,e,o){var r=new XC(n,i,t,this,e);return o?r:r.doResume(null)})),nt}}function YC(t,e,n,i,o,r){L.call(this,r),this.$controller=o,this.exceptionState_0=1,this.local$closure$option=t,this.local$this$ReportListPresenter=e,this.local$closure$selectedItem=n}function QC(){cN=this,this.REPORT_RESULT_KEY="Report",this.SORT_OPTIONS=be([new BR(2102,1,!0),new BR(2102,2,!1)])}Zv.$metadata$={kind:v,simpleName:"ReportFilterEditPresenter",interfaces:[fz]},Object.defineProperty(KC.prototype,"sortOptions",{configurable:!0,get:function(){return lN().SORT_OPTIONS}}),KC.prototype.onCreate=function(t){Ez.prototype.onCreate.call(this,t),this.selectedSortOption=lN().SORT_OPTIONS.get_za3lpa$(0),this.loggedInPersonUid=this.accountManager.activeAccount.personUid,this.updateListOnView_0()},KC.prototype.onCheckAddPermission_tn71rk$=function(t,e){return!0},KC.prototype.updateListOnView_0=function(){var t,e;this.view.list=this.repo.reportDao.findAllActiveReport_dw84ek$(XA(this.searchText),this.loggedInPersonUid,null!=(e=null!=(t=this.selectedSortOption)?t.flag:null)?e:1,!1)},KC.prototype.onClickSort_o8nuns$=function(t){Ez.prototype.onClickSort_o8nuns$.call(this,t),this.updateListOnView_0()},KC.prototype.onSearchSubmitted_pdl1vj$=function(t){this.searchText=t,this.updateListOnView_0()},KC.prototype.handleClickEntry_11rc$=function(t){switch(this.mListMode.name){case"PICKER":var n,i=this.di,o=jt(Ko.Companion.serializer()),r=$e(t),s=Et(i).directDI.Instance_ohrpre$(e.isType(n=F(M(P(Pt),[],!1)),B)?n:W(),null);this.finishWithResult_61zpoe$(s.encodeToString_tf03ej$(o,r));break;case"BROWSER":this.systemImpl.go_gofqk3$(DM().VIEW_NAME,Je(E(zG().ARG_ENTITY_UID,t.reportUid.toString())),this.context)}},KC.prototype.handleClickCreateNewFab=function(){this.systemImpl.go_gofqk3$(QM().VIEW_NAME,ji(),this.context)},KC.prototype.handleClickAddNewItem_a4m1mt$$default=function(t,e){var n;this.navigateForResult_r13zgt$(new Iw(this,null,jM().VIEW_NAME,P(Ko),Ko.Companion.serializer(),e,void 0,null!=(n=null!=t?rn(t):null)?n:mt()))},KC.prototype.onCheckListSelectionOptions_tn71rk$=function(t,e){return $e(yG())},XC.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},XC.prototype=Object.create(L.prototype),XC.prototype.constructor=XC,XC.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e=this.local$this$ReportListPresenter.repo.reportDao,n=this.local$closure$selectedItem,i=st(rt(n,10));for(t=n.iterator();t.hasNext();){var o=t.next();i.add_11rb$(o.reportUid)}if(this.state_0=2,this.result_0=e.toggleVisibilityReportItems_cbj1f0$(!1,i,et(),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},YC.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},YC.prototype=Object.create(L.prototype),YC.prototype.constructor=YC,YC.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(x(this.local$closure$option,yG())){var t,e=this.local$this$ReportListPresenter.repo.reportDao,n=this.local$closure$selectedItem,i=st(rt(n,10));for(t=n.iterator();t.hasNext();){var o=t.next();i.add_11rb$(o.reportUid)}if(this.state_0=2,this.result_0=e.toggleVisibilityReportItems_cbj1f0$(!0,i,et(),this),this.result_0===T)return T;continue}return nt;case 1:throw this.exception_0;case 2:return this.local$this$ReportListPresenter.view.showSnackBar_9pu0dj$(this.local$this$ReportListPresenter.systemImpl.getString(2181,this.local$this$ReportListPresenter.context),JC(this.local$this$ReportListPresenter,this.local$closure$selectedItem),2694),nt;case 3:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},KC.prototype.handleClickSelectionOption_psq284$=function(t,e){var n,i,o;it(tt.GlobalScope,It(),void 0,(n=e,i=this,o=t,function(t,e,r){var s=new YC(n,i,o,t,this,e);return r?s:s.doResume(null)}))},QC.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var ZC,tN,eN,nN,iN,oN,rN,sN,aN,cN=null;function lN(){return null===cN&&new QC,cN}function uN(t,e,n,i,o){Ez.call(this,t,e,n,i,o)}function hN(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$this$ReportTemplateListPresenter=t,this.local$closure$listToHide=e}function dN(t,e){return function(){var n,i;return it(tt.GlobalScope,It(),void 0,(n=t,i=e,function(t,e,o){var r=new hN(n,i,t,this,e);return o?r:r.doResume(null)})),nt}}function pN(t,e,n,i,o,r){L.call(this,r),this.$controller=o,this.exceptionState_0=1,this.local$closure$option=t,this.local$closure$selectedItem=e,this.local$this$ReportTemplateListPresenter=n,this.local$listToHide=void 0}function _N(t,e,n,i,o){fz.call(this,t,e,n,i,o),this.schedule=null}function mN(t,e,n,i){Wn.call(this),this.optionVal=n,this.messageId=i,this.name$=t,this.ordinal$=e}function fN(){fN=function(){},ZC=new mN("DAILY",0,Ti.Companion.SCHEDULE_FREQUENCY_DAILY,2343),tN=new mN("WEEKLY",1,Ti.Companion.SCHEDULE_FREQUENCY_WEEKLY,2341)}function gN(){return fN(),ZC}function $N(){return fN(),tN}function EN(t,e,n){fR.call(this,t.messageId,e,t.optionVal,n)}function yN(t,e,n,i){Wn.call(this),this.optionVal=n,this.messageId=i,this.name$=t,this.ordinal$=e}function bN(){bN=function(){},eN=new yN("SUNDAY",0,Ti.Companion.DAY_SUNDAY,2346),nN=new yN("MONDAY",1,Ti.Companion.DAY_MONDAY,2347),iN=new yN("TUESDAY",2,Ti.Companion.DAY_TUESDAY,2348),oN=new yN("WEDNESDAY",3,Ti.Companion.DAY_WEDNESDAY,2349),rN=new yN("THURSDAY",4,Ti.Companion.DAY_THURSDAY,2350),sN=new yN("FRIDAY",5,Ti.Companion.DAY_FRIDAY,2351),aN=new yN("SATURDAY",6,Ti.Companion.DAY_SATURDAY,2352)}function SN(){return bN(),eN}function vN(){return bN(),nN}function CN(){return bN(),iN}function NN(){return bN(),oN}function TN(){return bN(),rN}function LN(){return bN(),sN}function zN(){return bN(),aN}function wN(){return[SN(),vN(),CN(),NN(),TN(),LN(),zN()]}function ON(t,e,n){fR.call(this,t.messageId,e,t.optionVal,n)}function RN(t,e,n,i,o){jN(),_z.call(this,t,e,n,i,o),this.loggedInPersonUid=O}function AN(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$this$SchoolDetailOverviewPresenter=t,this.local$closure$entityUid=e,this.local$tmp$=void 0}function xN(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$db=t,this.local$closure$entityUid=e}function IN(t,e){return function(n,i,o){var r=new xN(t,e,n,this,i);return o?r:r.doResume(null)}}function UN(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$this$SchoolDetailOverviewPresenter=t,this.local$closure$entityUid=e}function DN(t,e){return function(n,i,o){var r=new UN(t,e,n,this,i);return o?r:r.doResume(null)}}function PN(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityUid=void 0,this.local$schoolWithHolidayCalendar=void 0,this.local$db=e}function MN(){kN=this,this.SAVEDSTATE_KEY_SCHOOL="School"}KC.$metadata$={kind:v,simpleName:"ReportListPresenter",interfaces:[Ez,oy,ry]},uN.prototype.onCreate=function(t){Ez.prototype.onCreate.call(this,t),this.updateListOnView_0()},uN.prototype.onCheckAddPermission_tn71rk$=function(t,e){return!1},uN.prototype.updateListOnView_0=function(){this.view.list=this.repo.reportDao.findAllActiveReport_dw84ek$(XA(""),O,1,!0)},uN.prototype.handleClickEntry_11rc$=function(t){t.reportUid=O,t.isTemplate=!1;var n,i=this.systemImpl,o=jM().VIEW_NAME,r=oG().ARG_ENTITY_JSON,s=this.di,a=Ko.Companion.serializer(),c=Et(s).directDI.Instance_ohrpre$(e.isType(n=F(M(P(Pt),[],!1)),B)?n:W(),null);i.go_gofqk3$(o,Je(E(r,c.encodeToString_tf03ej$(a,t))),this.context)},uN.prototype.onCheckListSelectionOptions_tn71rk$=function(t,e){return $e(yG())},hN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},hN.prototype=Object.create(L.prototype),hN.prototype.constructor=hN,hN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$ReportTemplateListPresenter.repo.reportDao.toggleVisibilityReportItems_cbj1f0$(!1,this.local$closure$listToHide,et(),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},pN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},pN.prototype=Object.create(L.prototype),pN.prototype.constructor=pN,pN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(x(this.local$closure$option,yG())){var t,e=this.local$closure$selectedItem,n=st(rt(e,10));for(t=e.iterator();t.hasNext();){var i=t.next();n.add_11rb$(i.reportUid)}var o,r=ot();for(o=n.iterator();o.hasNext();){var s=o.next();x(s,er)||r.add_11rb$(s)}if(this.local$listToHide=r,this.local$listToHide.isEmpty()){this.state_0=3;continue}if(this.state_0=2,this.result_0=this.local$this$ReportTemplateListPresenter.repo.reportDao.toggleVisibilityReportItems_cbj1f0$(!0,this.local$listToHide,et(),this),this.result_0===T)return T;continue}return nt;case 1:throw this.exception_0;case 2:return this.local$this$ReportTemplateListPresenter.view.showSnackBar_9pu0dj$(this.local$this$ReportTemplateListPresenter.systemImpl.getString(2181,this.local$this$ReportTemplateListPresenter.context),dN(this.local$this$ReportTemplateListPresenter,this.local$listToHide),2694),nt;case 3:this.state_0=4;continue;case 4:return nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},uN.prototype.handleClickSelectionOption_psq284$=function(t,e){var n,i,o;it(tt.GlobalScope,It(),void 0,(n=e,i=t,o=this,function(t,e,r){var s=new pN(n,i,o,t,this,e);return r?s:s.doResume(null)}))},uN.prototype.handleClickCreateNewFab=function(){},uN.prototype.handleClickAddNewItem_a4m1mt$$default=function(t,e){},uN.$metadata$={kind:v,simpleName:"ReportTemplateListPresenter",interfaces:[Ez]},Object.defineProperty(_N.prototype,"persistenceMode",{configurable:!0,get:function(){return Iz()}}),mN.$metadata$={kind:v,simpleName:"FrequencyOption",interfaces:[Wn]},mN.values=function(){return[gN(),$N()]},mN.valueOf_61zpoe$=function(t){switch(t){case"DAILY":return gN();case"WEEKLY":return $N();default:Hn("No enum constant com.ustadmobile.core.controller.ScheduleEditPresenter.FrequencyOption."+t)}},EN.$metadata$={kind:v,simpleName:"FrequencyMessageIdOption",interfaces:[fR]},yN.$metadata$={kind:v,simpleName:"DayOptions",interfaces:[Wn]},yN.values=wN,yN.valueOf_61zpoe$=function(t){switch(t){case"SUNDAY":return SN();case"MONDAY":return vN();case"TUESDAY":return CN();case"WEDNESDAY":return NN();case"THURSDAY":return TN();case"FRIDAY":return LN();case"SATURDAY":return zN();default:Hn("No enum constant com.ustadmobile.core.controller.ScheduleEditPresenter.DayOptions."+t)}},ON.$metadata$={kind:v,simpleName:"DayMessageIdOption",interfaces:[fR]},_N.prototype.onCreate=function(t){fz.prototype.onCreate.call(this,t);var e,n=this.view,i=wN(),o=st(i.length);for(e=0;e!==i.length;++e){var r=i[e];o.add_11rb$(new ON(r,this.context,this.di))}n.dayOptions=o},_N.prototype.onLoadFromJson_y0zsll$=function(t){var n,i=this.arguments.get_11rb$(oG().ARG_ENTITY_JSON);if(null!=i){var o,r=this.di,s=Ti.Companion.serializer();n=Et(r).directDI.Instance_ohrpre$(e.isType(o=F(M(P(Pt),[],!1)),B)?o:W(),null).decodeFromString_awif5v$(s,i)}else{var a=new Ti;a.scheduleActive=!0,a.scheduleFrequency=Ti.Companion.SCHEDULE_FREQUENCY_WEEKLY,n=a}return n},_N.prototype.handleClickSave_nqi3in$=function(t){if(this.view.fromTimeError=null,this.view.toTimeError=null,x(t.sceduleStartTime,O))this.view.fromTimeError=this.systemImpl.getString(2126,this.context);else if(x(t.scheduleEndTime,O))this.view.toTimeError=this.systemImpl.getString(2126,this.context);else if(t.scheduleEndTime.compareTo_11rb$(t.sceduleStartTime)<=0)this.view.toTimeError=this.systemImpl.getString(2675,this.context);else{var n,i=this.di,o=jt(Ti.Companion.serializer()),r=$e(t),s=Et(i).directDI.Instance_ohrpre$(e.isType(n=F(M(P(Pt),[],!1)),B)?n:W(),null);this.finishWithResult_61zpoe$(s.encodeToString_tf03ej$(o,r))}},_N.$metadata$={kind:v,simpleName:"ScheduleEditPresenter",interfaces:[fz]},Object.defineProperty(RN.prototype,"persistenceMode",{configurable:!0,get:function(){return xz()}}),AN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},AN.prototype=Object.create(L.prototype),AN.prototype.constructor=AN,AN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$tmp$=this.local$this$SchoolDetailOverviewPresenter.view,this.state_0=2,this.result_0=this.local$this$SchoolDetailOverviewPresenter.repo.schoolDao.personHasPermissionWithSchool_b9bd0d$(this.local$this$SchoolDetailOverviewPresenter.accountManager.activeAccount.personUid,this.local$closure$entityUid,nr,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.local$tmp$.schoolCodeVisible=this.result_0,nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},RN.prototype.onCreate=function(t){var e,n;_z.prototype.onCreate.call(this,t);var i,o,r=null!=(n=null!=(e=this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(e):null)?n:O;this.loggedInPersonUid=this.accountManager.activeAccount.personUid,it(tt.GlobalScope,void 0,void 0,(i=this,o=r,function(t,e,n){var r=new AN(i,o,t,this,e);return n?r:r.doResume(null)}))},xN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},xN.prototype=Object.create(L.prototype),xN.prototype.constructor=xN,xN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$closure$db.schoolDao.findByUidWithHolidayCalendarAsync_s8cxhz$(this.local$closure$entityUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},UN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},UN.prototype=Object.create(L.prototype),UN.prototype.constructor=UN,UN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:return this.local$this$SchoolDetailOverviewPresenter.repo.clazzDao.findClazzesWithPermission_dchjmd$(XA(""),this.local$this$SchoolDetailOverviewPresenter.loggedInPersonUid,fe(),O,0,0,et(),Mi,this.local$closure$entityUid);case 1:throw this.exception_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},PN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},PN.prototype=Object.create(L.prototype),PN.prototype.constructor=PN,PN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n;if(this.local$entityUid=null!=(e=null!=(t=this.$this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(t):null)?e:O,this.state_0=2,this.result_0=qi(Ot,IN(this.local$db,this.local$entityUid),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(this.local$schoolWithHolidayCalendar=null!=(n=this.result_0)?n:new ir,this.state_0=3,this.result_0=qi(Ot,DN(this.$this,this.local$entityUid),this),this.result_0===T)return T;continue;case 3:var i=this.result_0;return this.$this.view.schoolClazzes=i,this.local$schoolWithHolidayCalendar;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},RN.prototype.onLoadEntityFromDb_7hogkd$=function(t,e,n){var i=new PN(this,t,e);return n?i:i.doResume(null)},RN.prototype.handleClickEdit=function(){this.navigateForResult_r13zgt$(new Iw(this,null,_k().VIEW_NAME,P(ir),ir.Companion.serializer(),jN().SAVEDSTATE_KEY_SCHOOL,void 0,rn(this.arguments)))},RN.prototype.handleClickClazz_yczdf2$=function(t){this.systemImpl.go_gofqk3$(MI().VIEW_NAME,Je(E(zG().ARG_ENTITY_UID,t.clazzUid.toString())),this.context)},RN.prototype.onCheckEditPermission_tn71rk$=function(t,e){var n,i,o;return lt.Napier.d_82mfvz$(He(null!=t?t.personUid:null)),this.db.schoolDao.personHasPermissionWithSchool_b9bd0d$(null!=(n=null!=t?t.personUid:null)?n:O,null!=(o=null!=(i=this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(i):null)?o:O,nr,e)},MN.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var kN=null;function jN(){return null===kN&&new MN,kN}function GN(t,e,n,i,o){_z.call(this,t,e,n,i,o)}function qN(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$db=t,this.local$closure$entityUid=e}function FN(t,e){return function(n,i,o){var r=new qN(t,e,n,this,i);return o?r:r.doResume(null)}}function BN(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$db=e}function WN(t,e,n,i,o){tT(),fz.call(this,t,e,n,i,o),this.scopedGrantOneToManyHelper=new DR(this.repo,this,this.requireBackStackEntry().savedStateHandle,164)}function HN(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$db=t,this.local$closure$entityUid=e}function VN(t,e){return function(n,i,o){var r=new HN(t,e,n,this,i);return o?r:r.doResume(null)}}function KN(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$closure$entityUid=t,this.local$it=e}function XN(t){return function(e,n,i){var o=new KN(t,e,n);return i?o:o.doResume(null)}}function JN(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$entityUid=void 0,this.local$school=void 0,this.local$db=e}function YN(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$entity=t,this.local$this$SchoolEditPresenter=e,this.local$tmp$=void 0}function QN(){ZN=this,this.SAVEDSTATE_KEY_HOLIDAYCALENDAR="SchoolHolidayCalendar"}RN.$metadata$={kind:v,simpleName:"SchoolDetailOverviewPresenter",interfaces:[_z]},Object.defineProperty(GN.prototype,"persistenceMode",{configurable:!0,get:function(){return xz()}}),qN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},qN.prototype=Object.create(L.prototype),qN.prototype.constructor=qN,qN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$closure$db.schoolDao.findByUidAsync_s8cxhz$(this.local$closure$entityUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},BN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},BN.prototype=Object.create(L.prototype),BN.prototype.constructor=BN,BN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n,i,o=null!=(e=null!=(t=this.$this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(t):null)?e:O;if(this.state_0=2,this.result_0=qi(Ot,FN(this.local$db,o),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var r=null!=(n=this.result_0)?n:new li;return this.$this.view.title=null!=(i=r.schoolName)?i:"",r;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},GN.prototype.onLoadEntityFromDb_7hogkd$=function(t,e,n){var i=new BN(this,t,e);return n?i:i.doResume(null)},GN.prototype.onCheckEditPermission_tn71rk$=function(t,e){return!1},GN.$metadata$={kind:v,simpleName:"SchoolDetailPresenter",interfaces:[_z]},Object.defineProperty(WN.prototype,"persistenceMode",{configurable:!0,get:function(){return xz()}}),WN.prototype.onCreate=function(t){fz.prototype.onCreate.call(this,t),this.view.scopedGrants=this.scopedGrantOneToManyHelper.liveList},WN.prototype.onLoadDataComplete=function(){var t;fz.prototype.onLoadDataComplete.call(this),this.observeSavedStateResult_u0dr5v$(tT().SAVEDSTATE_KEY_HOLIDAYCALENDAR,jt(ui.Companion.serializer()),P(ui),new bt((t=this,function(e){var n,i,o;if(null!=(n=Un(e))){var r=n;return null!=(i=t.entity)&&(i.holidayCalendar=r),null!=(o=t.entity)&&(o.schoolHolidayCalendarUid=r.umCalendarUid),t.view.entity=t.entity,t.requireSavedStateHandle().set_umlfku$(tT().SAVEDSTATE_KEY_HOLIDAYCALENDAR,null),nt}}))),this.observeSavedStateResult_u0dr5v$(oz().RESULT_TIMEZONE_KEY,jt(kt(Mt)),ne,new bt(function(t){return function(e){var n,i;if(null!=(n=Un(e))){var o=n;return null!=(i=t.entity)&&(i.schoolTimeZone=o),t.view.entity=t.entity,t.requireSavedStateHandle().set_umlfku$(oz().RESULT_TIMEZONE_KEY,null),nt}}}(this)))},HN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},HN.prototype=Object.create(L.prototype),HN.prototype.constructor=HN,HN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$closure$db.schoolDao.findByUidWithHolidayCalendarAsync_s8cxhz$(this.local$closure$entityUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},KN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},KN.prototype=Object.create(L.prototype),KN.prototype.constructor=KN,KN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$it.scopedGrantDao.findByTableIdAndEntityUid_6svq3l$(164,this.local$closure$entityUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},JN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},JN.prototype=Object.create(L.prototype),JN.prototype.constructor=JN,JN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n,i;if(this.local$entityUid=null!=(n=null!=(t=this.$this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(t):null)?n:O,this.state_0=2,this.result_0=qi(Ot,VN(this.local$db,this.local$entityUid),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(this.local$school=null!=(i=this.result_0)?i:new ir,x(this.local$entityUid,O)){if(e.isType(this.local$db,At)){var o=this.$this.scopedGrantOneToManyHelper,r=new or;r.name="Teachers";var s=new rr;s.sgFlags=9,s.sgPermissions=sr,r.scopedGrant=s,o.onEditResult_trkh7z$(r);var a=this.$this.scopedGrantOneToManyHelper,c=new or;c.name="Students";var l=new rr;l.sgFlags=17,l.sgPermissions=ar,c.scopedGrant=l,a.onEditResult_trkh7z$(c)}this.state_0=4;continue}if(this.state_0=3,this.result_0=Rt(this.local$db,Ot,XN(this.local$entityUid),this),this.result_0===T)return T;continue;case 3:var u=this.result_0;this.$this.scopedGrantOneToManyHelper.liveList.setValue_11rb$(u),this.state_0=4;continue;case 4:return this.local$school;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},WN.prototype.onLoadEntityFromDb_7hogkd$=function(t,e,n){var i=new JN(this,t,e);return n?i:i.doResume(null)},WN.prototype.onLoadFromJson_y0zsll$=function(t){var n;fz.prototype.onLoadFromJson_y0zsll$.call(this,t);var i=t.get_11rb$(oG().ARG_ENTITY_JSON);if(null!=i){var o,r=this.di,s=ir.Companion.serializer();n=Et(r).directDI.Instance_ohrpre$(e.isType(o=F(M(P(Pt),[],!1)),B)?o:W(),null).decodeFromString_awif5v$(s,i)}else n=new ir;return n},WN.prototype.onSaveInstanceState_gtra9a$=function(t){fz.prototype.onSaveInstanceState_gtra9a$.call(this,t);var e=this.entity;xA(t,oG().ARG_ENTITY_JSON,this.json,ir.Companion.serializer(),e)},YN.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},YN.prototype=Object.create(L.prototype),YN.prototype.constructor=YN,YN.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(x(this.local$closure$entity.schoolUid,O)){if(this.local$closure$entity.schoolActive=!0,this.local$tmp$=this.local$closure$entity,this.state_0=3,this.result_0=wx(this.local$this$SchoolEditPresenter.repo,this.local$closure$entity,this.local$this$SchoolEditPresenter.systemImpl,this.local$this$SchoolEditPresenter.context,this),this.result_0===T)return T;continue}if(this.state_0=2,this.result_0=this.local$this$SchoolEditPresenter.repo.schoolDao.updateAsync_7q4b7e$(this.local$closure$entity,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:this.state_0=4;continue;case 3:this.local$tmp$.schoolUid=this.result_0,this.state_0=4;continue;case 4:if(this.state_0=5,this.result_0=this.local$this$SchoolEditPresenter.scopedGrantOneToManyHelper.commitToDatabase_pqsauo$(this.local$this$SchoolEditPresenter.repo,this.local$closure$entity.schoolUid,y([E(8,this.local$closure$entity.schoolTeachersPersonGroupUid),E(16,this.local$closure$entity.schoolStudentsPersonGroupUid)]),this),this.result_0===T)return T;continue;case 5:return this.local$this$SchoolEditPresenter.onFinish_xcg1s8$(uk().VIEW_NAME,this.local$closure$entity.schoolUid,this.local$closure$entity,ir.Companion.serializer()),nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},WN.prototype.handleClickSave_nqi3in$=function(t){var e,n;it(tt.GlobalScope,It(),void 0,(e=t,n=this,function(t,i,o){var r=new YN(e,n,t,this,i);return o?r:r.doResume(null)}))},WN.prototype.handleTimeZoneClicked=function(){var t;this.navigateForResult_r13zgt$(new Iw(this,null!=(t=this.entity)?t.schoolTimeZone:null,kj().VIEW_NAME,ne,kt(Mt),oz().RESULT_TIMEZONE_KEY))},WN.prototype.handleHolidayCalendarClicked=function(){this.navigateForResult_r13zgt$(new Iw(this,null,eP().VIEW_NAME,P(ui),ui.Companion.serializer(),tT().SAVEDSTATE_KEY_HOLIDAYCALENDAR))},QN.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var ZN=null;function tT(){return null===ZN&&new QN,ZN}function eT(t,e,n,i,o){rT(),Ez.call(this,t,e,n,i,o),this.searchText=null,this.loggedInPersonUid=O,this.filterByPermission_0=O}function nT(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$tmp$_0=void 0,this.local$account=e}function iT(){oT=this,this.SCHOOL_RESULT_KEY="School",this.SORT_OPTIONS=be([new BR(2046,1,!0),new BR(2046,2,!1)])}WN.$metadata$={kind:v,simpleName:"SchoolEditPresenter",interfaces:[fz]},Object.defineProperty(eT.prototype,"sortOptions",{configurable:!0,get:function(){return rT().SORT_OPTIONS}}),eT.prototype.onCreate=function(t){var e,n;Ez.prototype.onCreate.call(this,t),this.selectedSortOption=rT().SORT_OPTIONS.get_za3lpa$(0),this.loggedInPersonUid=this.accountManager.activeAccount.personUid,this.filterByPermission_0=null!=(n=null!=(e=this.arguments.get_11rb$(zG().ARG_FILTER_BY_PERMISSION))?de(e):null)?n:cr,this.updateListOnView_0()},nT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},nT.prototype=Object.create(L.prototype),nT.prototype.constructor=nT,nT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(this.local$tmp$_0=this.$this.view,this.state_0=2,this.result_0=this.$this.db.entityRoleDao.userHasTableLevelPermission_3pjtqy$(null!=(t=null!=this.local$account?this.local$account.personUid:null)?t:O,lr,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.local$tmp$_0.newSchoolListOptionVisible=this.result_0,!0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},eT.prototype.onCheckAddPermission_tn71rk$=function(t,e,n){var i=new nT(this,t,e);return n?i:i.doResume(null)},eT.prototype.updateListOnView_0=function(){var t,e;this.view.list=this.repo.schoolDao.findAllActiveSchoolWithMemberCountAndLocationName_gx19nu$(XA(this.searchText),this.loggedInPersonUid,this.filterByPermission_0,null!=(e=null!=(t=this.selectedSortOption)?t.flag:null)?e:1)},eT.prototype.handleClickEntry_11rc$=function(t){switch(this.mListMode.name){case"PICKER":var n,i=this.di,o=jt(li.Companion.serializer()),r=$e(t),s=Et(i).directDI.Instance_ohrpre$(e.isType(n=F(M(P(Pt),[],!1)),B)?n:W(),null);this.finishWithResult_61zpoe$(s.encodeToString_tf03ej$(o,r));break;case"BROWSER":this.systemImpl.go_gofqk3$(uk().VIEW_NAME,Je(E(zG().ARG_ENTITY_UID,t.schoolUid.toString())),this.context)}},eT.prototype.handleClickCreateNewFab=function(){this.systemImpl.go_gofqk3$(_k().VIEW_NAME,ji(),this.context)},eT.prototype.handleClickAddNewItem_a4m1mt$$default=function(t,e){var n;this.navigateForResult_r13zgt$(new Iw(this,null,_k().VIEW_NAME,P(li),li.Companion.serializer(),null!=e?e:rT().SCHOOL_RESULT_KEY,void 0,null!=(n=null!=t?rn(t):null)?n:rn(this.arguments)))},eT.prototype.onClickSort_o8nuns$=function(t){Ez.prototype.onClickSort_o8nuns$.call(this,t),this.updateListOnView_0()},eT.prototype.onSearchSubmitted_pdl1vj$=function(t){this.searchText=t,this.updateListOnView_0()},eT.prototype.handleClickJoinSchool=function(){this.systemImpl.go_gofqk3$($P().VIEW_NAME,Je(E(zG().ARG_CODE_TABLE,164..toString())),this.context)},iT.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var oT=null;function rT(){return null===oT&&new iT,oT}function sT(t,e,n,i,o){pT(),Ez.call(this,t,e,n,i,o),this.searchText=null}function aT(t,e){L.call(this,e),this.exceptionState_0=1,this.$this=t}function cT(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$this$SchoolMemberListPresenter=t,this.local$closure$schoolUid=e}function lT(t,e,n,i,o,r,s){L.call(this,s),this.$controller=r,this.exceptionState_0=1,this.local$this$SchoolMemberListPresenter=t,this.local$closure$schoolUid=e,this.local$closure$personUid=n,this.local$closure$role=i}function uT(t,e,n,i,o,r){L.call(this,r),this.$controller=o,this.exceptionState_0=1,this.local$closure$approved=t,this.local$this$SchoolMemberListPresenter=e,this.local$closure$member=n}function hT(){dT=this,this.SORT_OPTIONS=be([new BR(2038,1,!0),new BR(2038,2,!1),new BR(2037,3,!0),new BR(2037,4,!1)])}eT.$metadata$={kind:v,simpleName:"SchoolListPresenter",interfaces:[Ez,oy,ry]},Object.defineProperty(sT.prototype,"sortOptions",{configurable:!0,get:function(){return pT().SORT_OPTIONS}}),sT.prototype.onCreate=function(t){Ez.prototype.onCreate.call(this,t),this.mLoggedInPersonUid=this.accountManager.activeAccount.personUid,this.selectedSortOption=pT().SORT_OPTIONS.get_za3lpa$(0),this.updateListOnView_0()},sT.prototype.onPause=function(){this.searchText="",this.updateListOnView_0()},sT.prototype.onCheckAddPermission_tn71rk$=function(t,e){var n,i,o,r,s,a,c,l;return l=this.db.schoolDao,i=null!=(n=null!=t?t.personUid:null)?n:O,s=null!=(r=null!=(o=this.arguments.get_11rb$(zG().ARG_FILTER_BY_SCHOOLUID))?de(o):null)?r:O,c=1003===(null!=(a=this.arguments.get_11rb$(zG().ARG_FILTER_BY_ROLE))?Ai(a):null)?ur:hr,l.personHasPermissionWithSchool_b9bd0d$(i,s,c,e)},aT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},aT.prototype=Object.create(L.prototype),aT.prototype.constructor=aT,aT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=Ez.prototype.onLoadFromDb.call(this.$this,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return void this.$this.updateListOnView_0();default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},sT.prototype.onLoadFromDb=function(t,e){var n=new aT(this,t);return e?n:n.doResume(null)},cT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},cT.prototype=Object.create(L.prototype),cT.prototype.constructor=cT,cT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n,i,o,r,s,a,c;if(this.state_0=2,this.result_0=this.local$this$SchoolMemberListPresenter.db.schoolDao.personHasPermissionWithSchool_b9bd0d$(this.local$this$SchoolMemberListPresenter.accountManager.activeAccount.personUid,null!=(e=null!=(t=this.local$this$SchoolMemberListPresenter.arguments.get_11rb$(zG().ARG_FILTER_BY_SCHOOLUID))?de(t):null)?e:O,ur,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var l=this.result_0,u=this.local$this$SchoolMemberListPresenter.view;return c=l?u:null,a=this.local$this$SchoolMemberListPresenter.db.schoolMemberDao,o=null!=(i=null!=(n=this.local$this$SchoolMemberListPresenter.selectedSortOption)?n.flag:null)?i:0,r=XA(this.local$this$SchoolMemberListPresenter.searchText),s=this.local$this$SchoolMemberListPresenter.mLoggedInPersonUid,null!=c&&(c.pendingStudentList=a.findAllActiveMembersBySchoolAndRoleUid_de0qyg$(this.local$closure$schoolUid,1005,o,r,s)),nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},sT.prototype.updateListOnView_0=function(){var t,e,n,i,o,r,s,a,c,l=null!=(e=null!=(t=this.arguments.get_11rb$(zG().ARG_FILTER_BY_ROLE))?Ai(t):null)?e:0,u=null!=(i=null!=(n=this.arguments.get_11rb$(zG().ARG_FILTER_BY_SCHOOLUID))?de(n):null)?i:O;1003===(null!=(o=this.arguments.get_11rb$(zG().ARG_FILTER_BY_ROLE))?Ai(o):null)&&it(tt.GlobalScope,It(),void 0,(a=this,c=u,function(t,e,n){var i=new cT(a,c,t,this,e);return n?i:i.doResume(null)})),this.view.list=this.repo.schoolMemberDao.findAllActiveMembersBySchoolAndRoleUid_de0qyg$(u,l,null!=(s=null!=(r=this.selectedSortOption)?r.flag:null)?s:0,XA(this.searchText),this.mLoggedInPersonUid)},lT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},lT.prototype=Object.create(L.prototype),lT.prototype.constructor=lT,lT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=Rx(this.local$this$SchoolMemberListPresenter.repo,this.local$closure$schoolUid,this.local$closure$personUid,this.local$closure$role,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},sT.prototype.handleEnrolMember_foc3l4$=function(t,e,n){var i,o,r,s;it(tt.GlobalScope,void 0,void 0,(i=this,o=t,r=e,s=n,function(t,e,n){var a=new lT(i,o,r,s,t,this,e);return n?a:a.doResume(null)}))},sT.prototype.handleClickEntry_11rc$=function(t){switch(this.mListMode.name){case"PICKER":var n,i=this.di,o=jt(dr.Companion.serializer()),r=$e(t),s=Et(i).directDI.Instance_ohrpre$(e.isType(n=F(M(P(Pt),[],!1)),B)?n:W(),null);this.finishWithResult_61zpoe$(s.encodeToString_tf03ej$(o,r));break;case"BROWSER":this.systemImpl.go_gofqk3$(lM().VIEW_NAME,Je(E(zG().ARG_ENTITY_UID,t.schoolMemberPersonUid.toString())),this.context)}},uT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},uT.prototype=Object.create(L.prototype),uT.prototype.constructor=uT,uT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$closure$approved){if(this.state_0=3,this.result_0=yx(this.local$this$SchoolMemberListPresenter.repo,this.local$closure$member,void 0,this),this.result_0===T)return T;continue}var t=this.local$this$SchoolMemberListPresenter.repo.schoolMemberDao,e=this.local$closure$member;if(e.schoolMemberActive=!1,this.state_0=2,this.result_0=t.updateAsync_nzwwdw$(e,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:case 3:return this.result_0;case 4:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},sT.prototype.handleClickPendingRequest_k3brcd$=function(t,e){var n,i,o;it(tt.GlobalScope,void 0,void 0,(n=e,i=this,o=t,function(t,e,r){var s=new uT(n,i,o,t,this,e);return r?s:s.doResume(null)}))},sT.prototype.handleClickCreateNewFab=function(){this.view.addMember()},sT.prototype.onClickSort_o8nuns$=function(t){Ez.prototype.onClickSort_o8nuns$.call(this,t),this.updateListOnView_0()},sT.prototype.handleClickAddNewItem_a4m1mt$$default=function(t,e){var n;this.navigateForResult_r13zgt$(new Iw(this,null,EM().VIEW_NAME,P(J),J.Companion.serializer(),e,!0,null!=(n=null!=t?rn(t):null)?n:mt()))},sT.prototype.onSearchSubmitted_pdl1vj$=function(t){this.searchText=t,this.updateListOnView_0()},hT.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var dT=null;function pT(){return null===dT&&new hT,dT}function _T(t,e,n,i,o){yT(),fz.call(this,t,e,n,o,i)}function mT(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$scopedGrant=void 0,this.local$db=e}function fT(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$tmp$=void 0,this.local$scopedGrant=e}function gT(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$entity=t,this.local$this$ScopedGrantEditPresenter=e,this.local$tmp$=void 0}function $T(){ET=this,this.PERMISSION_MESSAGE_ID_LIST=be([new mO(ti,2660),new mO(cr,2815),new mO(nr,2523),new mO(Zn,2809),new mO(Ui,2810),new mO(Mi,2808),new mO(pr,2817),new mO(Qn,2816),new mO(Vi,2487),new mO(ai,2486),new mO(_r,2488),new mO(mr,2726),new mO(fr,2727),new mO(gr,2811),new mO($r,2812),new mO(qn,2728),new mO(Ho,2813),new mO(Fo,2814),new mO(Er,2729),new mO(yr,2730),new mO(br,2731),new mO(Sr,2732)]),this.COURSE_PERMISSIONS=vr,this.PERMISSION_LIST_MAP=y([E(6,be([new mO(ti,2660),new mO(Mi,2807),new mO(Qn,2320),new mO(Zn,2809),new mO(Ui,2810),new mO(ai,2486),new mO(_r,2488),new mO(mr,2726),new mO(fr,2727),new mO(gr,2811),new mO($r,2812),new mO(qn,2728),new mO(Ho,2813),new mO(Fo,2814),new mO(Er,2729),new mO(yr,2730),new mO(br,2731),new mO(Sr,2732)])),E(164,be([new mO(ti,2660),new mO(cr,2815),new mO(nr,2523),new mO(Zn,2809),new mO(Ui,2810),new mO(Mi,2808),new mO(pr,2817),new mO(Qn,2816),new mO(ai,2486),new mO(_r,2488),new mO(mr,2726),new mO(fr,2727),new mO(gr,2811),new mO($r,2812),new mO(qn,2728),new mO(Ho,2813),new mO(Fo,2814),new mO(Er,2729),new mO(yr,2730),new mO(br,2731),new mO(Sr,2732)]))])}sT.$metadata$={kind:v,simpleName:"SchoolMemberListPresenter",interfaces:[Ez,oy,ry]},Object.defineProperty(_T.prototype,"persistenceMode",{configurable:!0,get:function(){return xz()}}),_T.prototype.onCreate=function(t){fz.prototype.onCreate.call(this,t)},mT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},mT.prototype=Object.create(L.prototype),mT.prototype.constructor=mT,mT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n,i,o=null!=(e=null!=(t=this.$this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(t):null)?e:O,r=this.local$db.scopedGrantDao;if(null!=(n=x(o,O)?null:r)){if(this.state_0=2,this.result_0=n.findByUid_s8cxhz$(o,this),this.result_0===T)return T;continue}this.result_0=null,this.state_0=3;continue;case 1:throw this.exception_0;case 2:this.state_0=3;continue;case 3:var s;if(null!=(i=this.result_0))s=i;else{var a,c,l,u,h,d,p=new rr;p.sgEntityUid=null!=(c=null!=(a=this.$this.arguments.get_11rb$(Ok().ARG_GRANT_ON_ENTITY_UID))?de(a):null)?c:O,p.sgGroupUid=null!=(u=null!=(l=this.$this.arguments.get_11rb$(Ok().ARG_GRANT_TO_GROUPUID))?de(l):null)?u:O,p.sgTableId=null!=(d=null!=(h=this.$this.arguments.get_11rb$(Ok().ARG_GRANT_ON_TABLE_ID))?Ai(h):null)?d:0,s=p}if(this.local$scopedGrant=s,this.state_0=4,this.result_0=this.$this.setAvailablePermissionsOnView_0(this.local$scopedGrant,this),this.result_0===T)return T;continue;case 4:return this.local$scopedGrant;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_T.prototype.onLoadEntityFromDb_7hogkd$=function(t,e,n){var i=new mT(this,t,e);return n?i:i.doResume(null)},fT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},fT.prototype=Object.create(L.prototype),fT.prototype.constructor=fT,fT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(6===this.local$scopedGrant.sgTableId){if(this.state_0=2,this.result_0=this.$this.db.clazzDao.selectDelegatablePermissions_3pjtqy$(this.$this.accountManager.activeAccount.personUid,this.local$scopedGrant.sgEntityUid,this),this.result_0===T)return T;continue}this.local$tmp$=O,this.state_0=3;continue;case 1:throw this.exception_0;case 2:this.local$tmp$=TA(this.result_0).and(yT().COURSE_PERMISSIONS),this.state_0=3;continue;case 3:var t,e=this.local$tmp$,n=this.$this.view,i=yT().PERMISSION_MESSAGE_ID_LIST,o=ot();for(t=i.iterator();t.hasNext();){var r=t.next();OA(e,r.flagVal)&&o.add_11rb$(r)}var s,a=st(rt(o,10));for(s=o.iterator();s.hasNext();){var c=s.next();a.add_11rb$(c.toBitmaskFlag_s8cxhz$(this.local$scopedGrant.sgPermissions))}return void(n.bitmaskList=Sn(a));default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_T.prototype.setAvailablePermissionsOnView_0=function(t,e,n){var i=new fT(this,t,e);return n?i:i.doResume(null)},_T.prototype.onLoadFromJson_y0zsll$=function(t){var n,i,o;fz.prototype.onLoadFromJson_y0zsll$.call(this,t);var r,s=t.get_11rb$(oG().ARG_ENTITY_JSON);if(null!=s){var a,c=this.di,l=rr.Companion.serializer();r=Et(c).directDI.Instance_ohrpre$(e.isType(a=F(M(P(Pt),[],!1)),B)?a:W(),null).decodeFromString_awif5v$(l,s)}else{var u,h,d=new rr;d.sgGroupUid=null!=(h=null!=(u=this.arguments.get_11rb$(Ok().ARG_GRANT_TO_GROUPUID))?de(u):null)?h:O,r=d}if(null==(i=null!=(n=this.arguments.get_11rb$(Ok().ARG_PERMISSION_LIST))?Ai(n):null))throw pe("Invalid permission list flag");var p=i;if(null==(o=yT().PERMISSION_LIST_MAP.get_11rb$(p)))throw pe("Invalid permission list key");var _,m=o,f=this.view,g=st(rt(m,10));for(_=m.iterator();_.hasNext();){var $=_.next();g.add_11rb$($.toBitmaskFlag_s8cxhz$(r.sgPermissions))}return f.bitmaskList=Sn(g),r},_T.prototype.onSaveInstanceState_gtra9a$=function(t){fz.prototype.onSaveInstanceState_gtra9a$.call(this,t),xA(t,oG().ARG_ENTITY_JSON,this.json,rr.Companion.serializer(),this.entity)},gT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},gT.prototype=Object.create(L.prototype),gT.prototype.constructor=gT,gT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(x(this.local$closure$entity.sgUid,O)){if(this.local$tmp$=this.local$closure$entity,this.state_0=3,this.result_0=this.local$this$ScopedGrantEditPresenter.db.scopedGrantDao.insertAsync_y0tj3a$(this.local$closure$entity,this),this.result_0===T)return T;continue}if(this.state_0=2,this.result_0=this.local$this$ScopedGrantEditPresenter.db.scopedGrantDao.updateAsync_y0tj3a$(this.local$closure$entity,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:this.state_0=4;continue;case 3:this.local$tmp$.sgUid=this.result_0,this.state_0=4;continue;case 4:return this.local$this$ScopedGrantEditPresenter.onFinish_xcg1s8$(Tk().VIEW_NAME,this.local$closure$entity.sgUid,this.local$closure$entity,rr.Companion.serializer()),nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_T.prototype.handleClickSave_nqi3in$=function(t){var e,n;if(null==(n=null!=(e=this.view.bitmaskList)?e.getValue():null))throw z("No bitmask list");var i,o,r=n;t.sgPermissions=aA(r),it(this.presenterScope,void 0,void 0,(i=t,o=this,function(t,e,n){var r=new gT(i,o,t,this,e);return n?r:r.doResume(null)}))},$T.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var ET=null;function yT(){return null===ET&&new $T,ET}function bT(t,n,i,o){var r;rz.call(this,t,n,i,o),this.accountManager_t9qujl$_0=H(this,e.isType(r=F(M(P(wa),[],!1)),B)?r:W(),null).provideDelegate_tpuvb9$(this,ST);var s,a,c,l,u=this.accountManager.activeAccount;s=this.diTrigger,this.repo_y8v1pr$_0=H(G(this,q.Companion.invoke_np530x$(e.isType(a=F(M(P(Xt),[],!1)),B)?a:W(),u),s),e.isType(c=F(M(P(k),[],!1)),B)?c:W(),2).provideDelegate_tpuvb9$(this,vT),this.systemImpl_n9q7ce$_0=H(this,e.isType(l=F(M(P(aq),[],!1)),B)?l:W(),null).provideDelegate_tpuvb9$(this,CT)}_T.$metadata$={kind:v,simpleName:"ScopedGrantEditPresenter",interfaces:[fz]};var ST=new N("accountManager");Object.defineProperty(bT.prototype,"accountManager",{configurable:!0,get:function(){return this.accountManager_t9qujl$_0.value}});var vT=new N("repo");Object.defineProperty(bT.prototype,"repo",{configurable:!0,get:function(){return this.repo_y8v1pr$_0.value}});var CT=new N("systemImpl");function NT(){return"HELLO HELLO HELLO"}function TT(t){return function(){return"SelectExtractFilePresenterCommon: Extracting metadata from "+He(t)+" "}}function LT(t,e,n,i,o,r){L.call(this,r),this.$controller=o,this.exceptionState_0=7,this.local$this$SelectExtractFilePresenterCommon=t,this.local$closure$uri=e,this.local$closure$filename=n}function zT(t,e,n,i){rz.call(this,t,e,n,i)}function wT(){return"HELLO1 HELLO1 HELLO1"}function OT(t,e,n,i,o){Ez.call(this,t,e,n,i,o),this.contentEntryUid_0=O,this.selectedPersonUid_0=O}function RT(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$SessionListPresenter=t,this.local$person=void 0}function AT(t){return function(e,n,i){var o=new RT(t,e,this,n);return i?o:o.doResume(null)}}function xT(t,e){L.call(this,e),this.exceptionState_0=1,this.$this=t}function IT(t,n,i,o){var r,s;rz.call(this,t,n,i,o),this.impl_4pm4a6$_0=H(this,e.isType(r=F(M(P(aq),[],!1)),B)?r:W(),null).provideDelegate_tpuvb9$(this,UT),this.accountManager_5worda$_0=H(this,e.isType(s=F(M(P(wa),[],!1)),B)?s:W(),null).provideDelegate_tpuvb9$(this,DT);var a,c,l,u=this.accountManager.activeAccount;a=this.diTrigger,this.repo_4uf5ss$_0=H(G(this,q.Companion.invoke_np530x$(e.isType(c=F(M(P(Xt),[],!1)),B)?c:W(),u),a),e.isType(l=F(M(P(k),[],!1)),B)?l:W(),2).provideDelegate_tpuvb9$(this,PT)}Object.defineProperty(bT.prototype,"systemImpl",{configurable:!0,get:function(){return this.systemImpl_n9q7ce$_0.value}}),bT.prototype.onCreate=function(t){rz.prototype.onCreate.call(this,t),this.view.acceptedMimeTypes=Pi(He(this.arguments.get_11rb$(qk().ARG_MIMETYPE_SELECTED)),[";"]),lt.Napier.d_9h2hdn$(void 0,void 0,NT)},LT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},LT.prototype=Object.create(L.prototype),LT.prototype.constructor=LT,LT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$this$SelectExtractFilePresenterCommon.view.loading=!0,this.exceptionState_0=3,lt.Napier.d_9h2hdn$(void 0,void 0,TT(this.local$closure$uri)),this.state_0=1,this.result_0=this.local$this$SelectExtractFilePresenterCommon.extractMetadata_puj7f4$(this.local$closure$uri,this.local$closure$filename,this),this.result_0===T)return T;continue;case 1:var t=this.result_0;if(this.local$this$SelectExtractFilePresenterCommon.view.loading=!1,x(this.local$this$SelectExtractFilePresenterCommon.arguments.get_11rb$(zG().ARG_RESULT_DEST_VIEWNAME),DU().VIEW_NAME)){var n,i=this.local$this$SelectExtractFilePresenterCommon,o=this.local$this$SelectExtractFilePresenterCommon.di,r=jt(fl().serializer()),s=$e(t),a=Et(o).directDI.Instance_ohrpre$(e.isType(n=F(M(P(Pt),[],!1)),B)?n:W(),null);return i.finishWithResult_61zpoe$(a.encodeToString_tf03ej$(r,s)),nt}var c=mt();return xA(c,DU().ARG_IMPORTED_METADATA,this.local$this$SelectExtractFilePresenterCommon.json,fl().serializer(),t),IA(c,this.local$this$SelectExtractFilePresenterCommon.arguments,zG().ARG_LEAF),IA(c,this.local$this$SelectExtractFilePresenterCommon.arguments,zG().ARG_PARENT_ENTRY_UID),IA(c,this.local$this$SelectExtractFilePresenterCommon.arguments,DU().BLOCK_REQUIRED),IA(c,this.local$this$SelectExtractFilePresenterCommon.arguments,zG().ARG_CLAZZUID),this.local$this$SelectExtractFilePresenterCommon.navigateForResult_r13zgt$(new Iw(this.local$this$SelectExtractFilePresenterCommon,null,DU().VIEW_NAME,P(Ji),Ji.Companion.serializer(),void 0,void 0,c)),nt;case 2:this.exceptionState_0=7,this.state_0=6;continue;case 3:this.exceptionState_0=7;var l=this.exception_0;if(e.isType(l,on)){if(this.local$this$SelectExtractFilePresenterCommon.view.loading=!1,this.local$this$SelectExtractFilePresenterCommon.view.unSupportedFileError=this.local$this$SelectExtractFilePresenterCommon.systemImpl.getString(2272,this.local$this$SelectExtractFilePresenterCommon.context),lt.Napier.e_82mfvz$("Error extracting metadata: "+l.message,l),this.state_0=4,this.result_0=bA(this.local$this$SelectExtractFilePresenterCommon.repo.errorReportDao,2,l,this.local$this$SelectExtractFilePresenterCommon,this),this.result_0===T)return T;continue}throw l;case 4:return this.result_0;case 5:this.state_0=6;continue;case 6:return;case 7:throw this.exception_0;default:throw this.state_0=7,new Error("State Machine Unreachable execution")}}catch(l){if(7===this.state_0)throw this.exceptionState_0=this.state_0,l;this.state_0=this.exceptionState_0,this.exception_0=l}},bT.prototype.handleUriSelected_rkkr90$=function(t,e){var n,i,o,r,s;null!=t&&null!=e?it(this.presenterScope,void 0,void 0,(o=this,r=t,s=e,function(t,e,n){var i=new LT(o,r,s,t,this,e);return n?i:i.doResume(null)})):null!=(i=null!=(n=this.requireNavController().currentBackStackEntry)?n.viewName:null)&&this.requireNavController().popBackStack_ivxn3r$(i,!0)},bT.$metadata$={kind:v,simpleName:"SelectExtractFilePresenterCommon",interfaces:[rz]},zT.prototype.onCreate=function(t){rz.prototype.onCreate.call(this,t),this.view.acceptedMimeTypes=Pi(He(this.arguments.get_11rb$(qk().ARG_MIMETYPE_SELECTED)),[";"]),lt.Napier.d_9h2hdn$(void 0,void 0,wT)},zT.prototype.handleUriSelected_pdl1vj$=function(t){var n,i;if(null==t)null!=(i=null!=(n=this.requireNavController().currentBackStackEntry)?n.viewName:null)&&this.requireNavController().popBackStack_ivxn3r$(i,!0);else if(x(this.arguments.get_11rb$(zG().ARG_RESULT_DEST_VIEWNAME),TI().VIEW_NAME)){var o,r=this.di,s=jt(kt(Mt)),a=$e(t),c=Et(r).directDI.Instance_ohrpre$(e.isType(o=F(M(P(Pt),[],!1)),B)?o:W(),null);this.finishWithResult_61zpoe$(c.encodeToString_tf03ej$(s,a))}},zT.$metadata$={kind:v,simpleName:"SelectFilePresenterCommon",interfaces:[rz]},OT.prototype.onCheckAddPermission_tn71rk$=function(t,e){return!1},RT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},RT.prototype=Object.create(L.prototype),RT.prototype.constructor=RT,RT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$SessionListPresenter.db.personDao.findByUidAsync_s8cxhz$(this.local$this$SessionListPresenter.selectedPersonUid_0,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(this.local$person=this.result_0,this.state_0=3,this.result_0=this.local$this$SessionListPresenter.db.contentEntryDao.findByUidAsync_s8cxhz$(this.local$this$SessionListPresenter.contentEntryUid_0,this),this.result_0===T)return T;continue;case 3:var t=this.result_0;return this.local$this$SessionListPresenter.view.personWithContentTitle=He(null!=this.local$person?this.local$person.fullName():null)+" - "+He(null!=t?t.title:null),nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},xT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},xT.prototype=Object.create(L.prototype),xT.prototype.constructor=xT,xT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n,i;if(this.state_0=2,this.result_0=Ez.prototype.onLoadFromDb.call(this.$this,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.$this.contentEntryUid_0=null!=(e=null!=(t=this.$this.arguments.get_11rb$(zG().ARG_CONTENT_ENTRY_UID))?de(t):null)?e:O,this.$this.selectedPersonUid_0=null!=(i=null!=(n=this.$this.arguments.get_11rb$(zG().ARG_PERSON_UID))?de(n):null)?i:O,this.$this.mLoggedInPersonUid=this.$this.accountManager.activeAccount.personUid,it(tt.GlobalScope,It(),void 0,AT(this.$this)),void this.$this.updateListOnView_0();default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},OT.prototype.onLoadFromDb=function(t,e){var n=new xT(this,t);return e?n:n.doResume(null)},OT.prototype.updateListOnView_0=function(){this.view.list=this.repo.statementDao.findSessionsForPerson_b9bd0d$(this.contentEntryUid_0,this.mLoggedInPersonUid,this.selectedPersonUid_0)},OT.prototype.handleClickCreateNewFab=function(){},OT.prototype.handleClickAddNewItem_a4m1mt$$default=function(t,e){},OT.prototype.onClickPersonWithSessionDisplay_lvxw6c$=function(t){this.systemImpl.go_gofqk3$(Nj().VIEW_NAME,y([E(zG().ARG_CONTENT_ENTRY_UID,this.contentEntryUid_0.toString()),E(zG().ARG_PERSON_UID,this.selectedPersonUid_0.toString()),E(Jk().ARG_CONTEXT_REGISTRATION,t.contextRegistration)]),this.context)},OT.$metadata$={kind:v,simpleName:"SessionListPresenter",interfaces:[Ez]};var UT=new N("impl");Object.defineProperty(IT.prototype,"impl_0",{configurable:!0,get:function(){return this.impl_4pm4a6$_0.value}});var DT=new N("accountManager");Object.defineProperty(IT.prototype,"accountManager",{configurable:!0,get:function(){return this.accountManager_5worda$_0.value}});var PT=new N("repo");function MT(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$SettingsPresenter=t}function kT(t,e,n,i,o){WT(),_z.call(this,t,e,n,o,i)}function jT(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$closure$db=t}function GT(t){return function(e,n,i){var o=new jT(t,e,this,n);return i?o:o.doResume(null)}}function qT(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$db=e}function FT(){BT=this}Object.defineProperty(IT.prototype,"repo",{configurable:!0,get:function(){return this.repo_4uf5ss$_0.value}}),MT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},MT.prototype=Object.create(L.prototype),MT.prototype.constructor=MT,MT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e;if(this.state_0=2,this.result_0=this.local$this$SettingsPresenter.repo.personDao.personIsAdmin_s8cxhz$(this.local$this$SettingsPresenter.accountManager.activeAccount.personUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var n=this.result_0;this.local$this$SettingsPresenter.view.workspaceSettingsVisible=n,this.local$this$SettingsPresenter.view.holidayCalendarVisible=n,this.local$this$SettingsPresenter.view.reasonLeavingVisible=n,this.local$this$SettingsPresenter.view.langListVisible=n;var i,o=this.local$this$SettingsPresenter.impl_0.getLocale(this.local$this$SettingsPresenter.context),r=this.local$this$SettingsPresenter.view,s=this.local$this$SettingsPresenter.impl_0.getAllUiLanguagesList(this.local$this$SettingsPresenter.context);t:do{var a;for(a=s.iterator();a.hasNext();){var c=a.next();if(x(c.langCode,o)){i=c;break t}}i=null}while(0);return r.displayLanguage=null!=(e=null!=(t=i)?t.langDisplay:null)?e:"",nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},IT.prototype.onCreate=function(t){var e;rz.prototype.onCreate.call(this,t),it(this.presenterScope,void 0,void 0,(e=this,function(t,n,i){var o=new MT(e,t,this,n);return i?o:o.doResume(null)}))},IT.prototype.goToHolidayCalendarList=function(){this.impl_0.go_gofqk3$(eP().VIEW_NAME,ji(),this.context)},IT.prototype.goToPeopleList=function(){this.impl_0.go_gofqk3$(EM().VIEW_NAME,ji(),this.context)},IT.prototype.handleClickWorkspace=function(){this.impl_0.go_gofqk3$(oj().VIEW_NAME,ji(),this.context)},IT.prototype.handleClickLeavingReason=function(){this.impl_0.go_gofqk3$(MP().VIEW_NAME,ji(),this.context)},IT.prototype.handleClickLangList=function(){this.impl_0.go_gofqk3$(TP().VIEW_NAME,ji(),this.context)},IT.$metadata$={kind:v,simpleName:"SettingsPresenter",interfaces:[rz]},Object.defineProperty(kT.prototype,"persistenceMode",{configurable:!0,get:function(){return xz()}}),kT.prototype.onCreate=function(t){_z.prototype.onCreate.call(this,t)},kT.prototype.onCheckEditPermission_tn71rk$=function(t,e){return!0},jT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},jT.prototype=Object.create(L.prototype),jT.prototype.constructor=jT,jT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$closure$db.siteDao.getSiteAsync(this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},qT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},qT.prototype=Object.create(L.prototype),qT.prototype.constructor=qT,qT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(this.state_0=2,this.result_0=qi(ko,GT(this.local$db),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var n=null!=(t=this.result_0)?t:new Yt;return e.isType(this.local$db,At)||(this.$this.view.siteTermsList=this.$this.repo.siteTermsDao.findAllTermsAsFactory()),n;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kT.prototype.onLoadEntityFromDb_7hogkd$=function(t,e,n){var i=new qT(this,t,e);return n?i:i.doResume(null)},kT.prototype.handleClickEdit=function(){var t,e;if(null!=(e=null!=(t=this.entity)?t.siteUid:null)){var n=e;this.navigateForResult_r13zgt$(new Iw(this,this.entity,cj().VIEW_NAME,P(Yt),Yt.Companion.serializer(),void 0,void 0,jn([E(zG().ARG_ENTITY_UID,n.toString())])))}},kT.prototype.handleClickTerms_x1vg61$=function(t){var e;this.systemImpl.go_gofqk3$(fj().VIEW_NAME,Je(E(zG().ARG_ENTITY_UID,null!=(e=null!=t?t.sTermsUid:null)?e.toString():null)),this.context)},FT.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var BT=null;function WT(){return null===BT&&new FT,BT}function HT(t,e,n,i,o){sL(),fz.call(this,t,e,n,o,i),this.siteTermsOneToManyJoinEditHelper_0=new NR(Ni("sTermsUid",1,(function(t){return t.sTermsUid}),(function(t,e){t.sTermsUid=e})),sL().ARG_SAVEDSTATE_TERMS,jt(Nr.Companion.serializer()),jt(Tr.Companion.serializer()),this,this.requireSavedStateHandle(),P(Tr),void 0,aL),this.siteTermsOneToManyJoinListener=this.siteTermsOneToManyJoinEditHelper_0.createNavigateForResultListener_g113xi$(yj().VIEW_NAME,Tr.Companion.serializer())}function VT(t,e){L.call(this,e),this.exceptionState_0=1,this.local$it=t}function KT(t,e,n){var i=new VT(t,e);return n?i:i.doResume(null)}function XT(t,e){L.call(this,e),this.exceptionState_0=1,this.local$it=t}function JT(t,e,n){var i=new XT(t,e);return n?i:i.doResume(null)}function YT(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$site=void 0,this.local$db=e}function QT(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$closure$txRepo=t,this.local$it=e}function ZT(t){return function(e,n,i){var o=new QT(t,e,n);return i?o:o.doResume(null)}}function tL(t){return nt}function eL(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$this$SiteEditPresenter=t,this.local$txRepo=e}function nL(t){return function(e,n,i){var o=new eL(t,e,n);return i?o:o.doResume(null)}}function iL(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$this$SiteEditPresenter=t,this.local$closure$entity=e}function oL(){rL=this,this.ARG_SAVEDSTATE_TERMS="terms"}kT.$metadata$={kind:v,simpleName:"SiteDetailPresenter",interfaces:[_z]},Object.defineProperty(HT.prototype,"persistenceMode",{configurable:!0,get:function(){return xz()}}),HT.prototype.onCreate=function(t){fz.prototype.onCreate.call(this,t),this.view.siteTermsList=this.siteTermsOneToManyJoinEditHelper_0.liveList},VT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},VT.prototype=Object.create(L.prototype),VT.prototype.constructor=VT,VT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$it.siteDao.getSiteAsync(this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},XT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},XT.prototype=Object.create(L.prototype),XT.prototype.constructor=XT,XT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$it.siteTermsDao.findAllWithLanguageAsList(this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},YT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},YT.prototype=Object.create(L.prototype),YT.prototype.constructor=YT,YT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e;if(null!=(t=this.$this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(t):null,this.state_0=2,this.result_0=Rt(this.local$db,ko,KT,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(this.local$site=null!=(e=this.result_0)?e:new Yt,this.state_0=3,this.result_0=Rt(this.local$db,ko,JT,this),this.result_0===T)return T;continue;case 3:var n=this.result_0;return this.$this.siteTermsOneToManyJoinEditHelper_0.liveList.postValue_11rb$(n),this.local$site;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HT.prototype.onLoadEntityFromDb_7hogkd$=function(t,e,n){var i=new YT(this,t,e);return n?i:i.doResume(null)},HT.prototype.onLoadFromJson_y0zsll$=function(t){fz.prototype.onLoadFromJson_y0zsll$.call(this,t);var n=t.get_11rb$(oG().ARG_ENTITY_JSON),i=null;if(null!=n){var o,r=this.di,s=Yt.Companion.serializer();i=Et(r).directDI.Instance_ohrpre$(e.isType(o=F(M(P(Pt),[],!1)),B)?o:W(),null).decodeFromString_awif5v$(s,n)}else i=new Yt;return i},HT.prototype.onSaveInstanceState_gtra9a$=function(t){fz.prototype.onSaveInstanceState_gtra9a$.call(this,t),xA(t,oG().ARG_ENTITY_JSON,this.json,Yt.Companion.serializer(),this.entity)},QT.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},QT.prototype=Object.create(L.prototype),QT.prototype.constructor=QT,QT.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=Cr(this.local$closure$txRepo.siteTermsDao,this.local$it,et(),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},eL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},eL.prototype=Object.create(L.prototype),eL.prototype.constructor=eL,eL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$SiteEditPresenter.siteTermsOneToManyJoinEditHelper_0.commitToDatabase_e9yqve$(this.local$txRepo.siteTermsDao,ZT(this.local$txRepo),tL,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},iL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},iL.prototype=Object.create(L.prototype),iL.prototype.constructor=iL,iL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$SiteEditPresenter.repo.siteDao.updateAsync_5rubkd$(this.local$closure$entity,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=ut(this.local$this$SiteEditPresenter.repo,void 0,nL(this.local$this$SiteEditPresenter),this),this.result_0===T)return T;continue;case 3:var t,n=this.local$this$SiteEditPresenter,i=this.local$this$SiteEditPresenter.di,o=jt(Yt.Companion.serializer()),r=$e(this.local$closure$entity),s=Et(i).directDI.Instance_ohrpre$(e.isType(t=F(M(P(Pt),[],!1)),B)?t:W(),null);return n.finishWithResult_61zpoe$(s.encodeToString_tf03ej$(o,r)),nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},HT.prototype.handleClickSave_nqi3in$=function(t){var e,n;it(tt.GlobalScope,It(),void 0,(e=this,n=t,function(t,i,o){var r=new iL(e,n,t,this,i);return o?r:r.doResume(null)}))},oL.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var rL=null;function sL(){return null===rL&&new oL,rL}function aL(t,e){return t.sTermsUid=e,nt}function cL(t,n,i,o){var r,s;pL(),rz.call(this,t,n,i,o,!1),this.site_0=null,this.checkTextLinkJob_0=null,this.impl_ubr30s$_0=H(this,e.isType(r=F(M(P(aq),[],!1)),B)?r:W(),null).provideDelegate_tpuvb9$(this,lL),this.httpClient_r7ruxz$_0=H(this,e.isType(s=F(M(P(Zt),[],!1)),B)?s:W(),null).provideDelegate_tpuvb9$(this,uL),this.validatedLink_0=null}HT.$metadata$={kind:v,simpleName:"SiteEditPresenter",interfaces:[fz]};var lL=new N("impl"),uL=new N("httpClient");function hL(){dL=this,this.LINK_REQUEST_TIMEOUT=Mo}hL.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var dL=null;function pL(){return null===dL&&new hL,dL}function _L(t,e,n,i,o){$L(),_z.call(this,t,e,n,o,i,!1)}function mL(t,e,n,i,o,r){L.call(this,r),this.exceptionState_0=1,this.local$this$SiteTermsDetailPresenter=t,this.local$closure$db=e,this.local$closure$displayedLocale=n,this.local$closure$entityUid=i}function fL(){gL=this}Object.defineProperty(_L.prototype,"persistenceMode",{configurable:!0,get:function(){return xz()}}),_L.prototype.onCreate=function(t){var e;_z.prototype.onCreate.call(this,t),this.view.acceptButtonVisible=!0===(null!=(e=this.arguments.get_11rb$(fj().ARG_SHOW_ACCEPT_BUTTON))?Xe(e):null)},_L.prototype.onCheckEditPermission_tn71rk$=function(t,e){return!1},mL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},mL.prototype=Object.create(L.prototype),mL.prototype.constructor=mL,mL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(!0===(null!=(t=this.local$this$SiteTermsDetailPresenter.arguments.get_11rb$(fj().ARG_USE_DISPLAY_LOCALE))?Xe(t):null)){if(this.state_0=3,this.result_0=this.local$closure$db.siteTermsDao.findSiteTerms_61zpoe$(this.local$closure$displayedLocale,this),this.result_0===T)return T;continue}if(this.state_0=2,this.result_0=this.local$closure$db.siteTermsDao.findByUidAsync_s8cxhz$(this.local$closure$entityUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:case 3:return this.result_0;case 4:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_L.prototype.onLoadEntityFromDb_7hogkd$=function(t,n){var i,o,r,s,a=new Zs(null!=(i=this.arguments.get_11rb$(zG().ARG_SERVER_URL))?i:this.accountManager.activeAccount.endpointUrl);if(e.isType(t,At)){var c,l,u,h=this.di;c=h.diTrigger,o=Et(G(h,q.Companion.invoke_np530x$(e.isType(l=F(M(P(Zs),[],!1)),B)?l:W(),a),c)).directDI.Instance_ohrpre$(e.isType(u=F(M(P(k),[],!1)),B)?u:W(),2)}else{var d,p,_,m=this.di;d=m.diTrigger,o=Et(G(m,q.Companion.invoke_np530x$(e.isType(p=F(M(P(Zs),[],!1)),B)?p:W(),a),d)).directDI.Instance_ohrpre$(e.isType(_=F(M(P(k),[],!1)),B)?_:W(),1)}var f,g,$,E,y=o,b=null!=(s=null!=(r=this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(r):null)?s:O,S=this.systemImpl.getDisplayedLocale_za3rmp$(this.context);return Rt(y,ko,(f=this,g=t,$=S,E=b,function(t,e,n){var i=new mL(f,g,$,E,t,e);return n?i:i.doResume(null)}),n)},_L.prototype.handleClickAccept=function(){this.systemImpl.go_gofqk3$(pM().VIEW_NAME_REGISTER,this.arguments,this.context)},fL.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var gL=null;function $L(){return null===gL&&new fL,gL}function EL(t,e,n,i,o){TL(),fz.call(this,t,e,n,o,i)}function yL(t,e,n,i,o,r){L.call(this,r),this.exceptionState_0=1,this.local$closure$displayLocale=t,this.local$closure$editEntity=e,this.local$this$SiteTermsEditPresenter=n,this.local$db=i,this.local$lastResult=o}function bL(t,e,n){return function(i,o,r,s){var a=new yL(t,e,n,i,o,r);return s?a:a.doResume(null)}}function SL(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$this$SiteTermsEditPresenter=t,this.local$closure$editEntity=e}function vL(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$this$SiteTermsEditPresenter=t,this.local$closure$entity=e}function CL(){NL=this,this.SAVEDSTATE_KEY_LANGUAGE="Language"}_L.$metadata$={kind:v,simpleName:"SiteTermsDetailPresenter",interfaces:[_z]},Object.defineProperty(EL.prototype,"persistenceMode",{configurable:!0,get:function(){return Iz()}}),EL.prototype.onCreate=function(t){fz.prototype.onCreate.call(this,t)},EL.prototype.onLoadDataComplete=function(){var t;fz.prototype.onLoadDataComplete.call(this),this.observeSavedStateResult_u0dr5v$(TL().SAVEDSTATE_KEY_LANGUAGE,jt(oo.Companion.serializer()),P(oo),new bt((t=this,function(e){var n,i,o,r;if(null!=(n=Un(e))){var s=n;return null!=(i=t.entity)&&(i.stLanguage=s),null!=(o=t.entity)&&(o.sTermsLang=s.iso_639_1_standard),null!=(r=t.entity)&&(r.sTermsLangUid=s.langUid),t.view.entity=t.entity,t.requireSavedStateHandle().set_umlfku$(TL().SAVEDSTATE_KEY_LANGUAGE,null),nt}})))},yL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},yL.prototype=Object.create(L.prototype),yL.prototype.constructor=yL,yL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e=this.local$db.languageDao;if(null!=(t=null==this.local$lastResult?e:null)){if(this.state_0=2,this.result_0=t.findByTwoCodeAsync_61zpoe$(this.local$closure$displayLocale,this),this.result_0===T)return T;continue}this.result_0=null,this.state_0=3;continue;case 1:throw this.exception_0;case 2:this.state_0=3;continue;case 3:var n=this.result_0;if(null!=n)return this.local$closure$editEntity.v.stLanguage=n,this.local$closure$editEntity.v.sTermsLang=this.local$closure$displayLocale,this.local$closure$editEntity.v.sTermsLangUid=n.langUid,this.local$this$SiteTermsEditPresenter.view.entity=this.local$closure$editEntity.v,nt;this.state_0=4;continue;case 4:return nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},SL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},SL.prototype=Object.create(L.prototype),SL.prototype.constructor=SL,SL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=this.local$this$SiteTermsEditPresenter.systemImpl.getDisplayedLocale_za3rmp$(this.local$this$SiteTermsEditPresenter.context);if(this.state_0=2,this.result_0=mi(this.local$this$SiteTermsEditPresenter.repo,ko,bL(t,this.local$closure$editEntity,this.local$this$SiteTermsEditPresenter),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},EL.prototype.onLoadFromJson_y0zsll$=function(t){fz.prototype.onLoadFromJson_y0zsll$.call(this,t);var n,i,o=t.get_11rb$(oG().ARG_ENTITY_JSON),r={v:null};if(null!=o){var s,a=this.di,c=Tr.Companion.serializer(),l=Et(a).directDI.Instance_ohrpre$(e.isType(s=F(M(P(Pt),[],!1)),B)?s:W(),null);r.v=l.decodeFromString_awif5v$(c,o)}else{var u=new Tr;u.termsHtml=this.systemImpl.getString(2691,this.context),r.v=u,it(this.presenterScope,void 0,void 0,(n=this,i=r,function(t,e,o){var r=new SL(n,i,t,this,e);return o?r:r.doResume(null)}))}return r.v},EL.prototype.handleClickLanguage=function(){this.navigateForResult_r13zgt$(new Iw(this,null,TP().VIEW_NAME,P(oo),oo.Companion.serializer(),TL().SAVEDSTATE_KEY_LANGUAGE))},EL.prototype.onSaveInstanceState_gtra9a$=function(t){fz.prototype.onSaveInstanceState_gtra9a$.call(this,t);var e=this.entity;xA(t,oG().ARG_ENTITY_JSON,this.json,Tr.Companion.serializer(),e)},vL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},vL.prototype=Object.create(L.prototype),vL.prototype.constructor=vL,vL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n=this.local$this$SiteTermsEditPresenter.di,i=jt(Tr.Companion.serializer()),o=$e(this.local$closure$entity),r=Et(n).directDI.Instance_ohrpre$(e.isType(t=F(M(P(Pt),[],!1)),B)?t:W(),null).encodeToString_tf03ej$(i,o);return this.local$this$SiteTermsEditPresenter.finishWithResult_61zpoe$(r),nt;case 1:throw this.exception_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},EL.prototype.handleClickSave_nqi3in$=function(t){var e,n;this.view.languageError=null,null!=t.stLanguage?it(this.presenterScope,void 0,void 0,(e=this,n=t,function(t,i,o){var r=new vL(e,n,t,this,i);return o?r:r.doResume(null)})):this.view.languageError=this.systemImpl.getString(2126,this.context)},CL.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var NL=null;function TL(){return null===NL&&new CL,NL}function LL(){zL=this,this.STATEMENT_RESULT_OPTIONS=y([E(2,2091),E(1,2089),E(0,2051)])}EL.$metadata$={kind:v,simpleName:"SiteTermsEditPresenter",interfaces:[fz]},LL.$metadata$={kind:S,simpleName:"StatementConstants",interfaces:[]};var zL=null;function wL(t,e,n,i,o){Ez.call(this,t,e,n,i,o),this.contentEntryUid_0=O,this.selectedPersonUid_0=O,this.selectedSession_0=""}function OL(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$StatementListPresenter=t,this.local$person=void 0}function RL(t){return function(e,n,i){var o=new OL(t,e,this,n);return i?o:o.doResume(null)}}function AL(t,e){L.call(this,e),this.exceptionState_0=1,this.$this=t}function xL(){IL=this,this.FILE_TYPE_MAP=y([E(0,2856),E(4,2109),E(1,2857),E(2,2858),E(3,2695)]),this.STATUS_MAP=y([E(0,2570),E(1,2569),E(2,2568)])}wL.prototype.onCheckAddPermission_tn71rk$=function(t,e){return!1},OL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},OL.prototype=Object.create(L.prototype),OL.prototype.constructor=OL,OL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$StatementListPresenter.db.personDao.findByUidAsync_s8cxhz$(this.local$this$StatementListPresenter.selectedPersonUid_0,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(this.local$person=this.result_0,this.state_0=3,this.result_0=this.local$this$StatementListPresenter.db.contentEntryDao.findByUidAsync_s8cxhz$(this.local$this$StatementListPresenter.contentEntryUid_0,this),this.result_0===T)return T;continue;case 3:var t=this.result_0;return this.local$this$StatementListPresenter.view.personWithContentTitle=He(null!=this.local$person?this.local$person.fullName():null)+" - "+He(null!=t?t.title:null),nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},AL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},AL.prototype=Object.create(L.prototype),AL.prototype.constructor=AL,AL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n,i,o;if(this.state_0=2,this.result_0=Ez.prototype.onLoadFromDb.call(this.$this,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.$this.contentEntryUid_0=null!=(e=null!=(t=this.$this.arguments.get_11rb$(zG().ARG_CONTENT_ENTRY_UID))?de(t):null)?e:O,this.$this.selectedPersonUid_0=null!=(i=null!=(n=this.$this.arguments.get_11rb$(zG().ARG_PERSON_UID))?de(n):null)?i:O,this.$this.selectedSession_0=null!=(o=this.$this.arguments.get_11rb$(Jk().ARG_CONTEXT_REGISTRATION))?o:"",this.$this.mLoggedInPersonUid=this.$this.accountManager.activeAccount.personUid,it(tt.GlobalScope,It(),void 0,RL(this.$this)),void this.$this.updateListOnView_0();default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},wL.prototype.onLoadFromDb=function(t,e){var n=new AL(this,t);return e?n:n.doResume(null)},wL.prototype.onClickSort_o8nuns$=function(t){Ez.prototype.onClickSort_o8nuns$.call(this,t),this.updateListOnView_0()},wL.prototype.updateListOnView_0=function(){this.view.list=this.repo.statementDao.findSessionDetailForPerson_pkyi17$(this.contentEntryUid_0,this.mLoggedInPersonUid,this.selectedPersonUid_0,this.selectedSession_0)},wL.prototype.handleClickCreateNewFab=function(){},wL.prototype.handleClickAddNewItem_a4m1mt$$default=function(t,e){},wL.$metadata$={kind:v,simpleName:"StatementListPresenter",interfaces:[Ez]},xL.$metadata$={kind:S,simpleName:"SubmissionConstants",interfaces:[]};var IL=null;function UL(){}function DL(){PL=this,this.TEACHER_KEY="Teacher",this.STUDENT_KEY="Student",this.TEACHERS_KEY="Teachers",this.STUDENTS_KEY="Students",this.ADD_TEACHER_KEY="AddTeacher",this.ADD_STUDENT_KEY="AddStudent",this.TERMINOLOGY_ENTRY_MESSAGE_ID=y([E(this.TEACHER_KEY,2396),E(this.STUDENT_KEY,2564),E(this.TEACHERS_KEY,2399),E(this.STUDENTS_KEY,2075),E(this.ADD_TEACHER_KEY,2397),E(this.ADD_STUDENT_KEY,2076)])}UL.$metadata$={kind:ge,simpleName:"SubmissionSummaryListener",interfaces:[]},DL.$metadata$={kind:S,simpleName:"TerminologyKeys",interfaces:[]};var PL=null;function ML(){return null===PL&&new DL,PL}function kL(t,e,n,i,o){BL(),fz.call(this,t,e,n,o,i)}function jL(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$this$TextAssignmentEditPresenter=t,this.local$closure$editEntity=e,this.local$tmp$=void 0}function GL(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$this$TextAssignmentEditPresenter=t,this.local$closure$entity=e}function qL(){FL=this}Object.defineProperty(kL.prototype,"persistenceMode",{configurable:!0,get:function(){return Iz()}}),kL.prototype.onCreate=function(t){fz.prototype.onCreate.call(this,t)},jL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},jL.prototype=Object.create(L.prototype),jL.prototype.constructor=jL,jL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$tmp$=this.local$this$TextAssignmentEditPresenter.view,this.state_0=2,this.result_0=this.local$this$TextAssignmentEditPresenter.db.clazzAssignmentDao.findByUidAsync_s8cxhz$(this.local$closure$editEntity.casAssignmentUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.local$tmp$.clazzAssignment=this.result_0,nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kL.prototype.onLoadFromJson_y0zsll$=function(t){var n;fz.prototype.onLoadFromJson_y0zsll$.call(this,t);var i=t.get_11rb$(oG().ARG_ENTITY_JSON);if(null!=i){var o,r=this.di,s=Mn.Companion.serializer();n=Et(r).directDI.Instance_ohrpre$(e.isType(o=F(M(P(Pt),[],!1)),B)?o:W(),null).decodeFromString_awif5v$(s,i)}else{var a,c,l=new Mn;l.casAssignmentUid=null!=(c=null!=(a=t.get_11rb$(wj().ASSIGNMENT_ID))?Xn(a):null)?c:O,l.casSubmitterUid=this.accountManager.activeAccount.personUid,l.casType=1,l.casUid=Dn(this.db).nextId_za3lpa$(522),n=l}var u,h,d=n;return it(this.presenterScope,void 0,void 0,(u=this,h=d,function(t,e,n){var i=new jL(u,h,t,this,e);return n?i:i.doResume(null)})),d},kL.prototype.onSaveInstanceState_gtra9a$=function(t){fz.prototype.onSaveInstanceState_gtra9a$.call(this,t),xA(t,oG().ARG_ENTITY_JSON,this.json,Mn.Companion.serializer(),this.entity)},GL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},GL.prototype=Object.create(L.prototype),GL.prototype.constructor=GL,GL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n=this.local$this$TextAssignmentEditPresenter,i=this.local$this$TextAssignmentEditPresenter.di,o=jt(Mn.Companion.serializer()),r=$e(this.local$closure$entity),s=Et(i).directDI.Instance_ohrpre$(e.isType(t=F(M(P(Pt),[],!1)),B)?t:W(),null);return n.finishWithResult_61zpoe$(s.encodeToString_tf03ej$(o,r)),nt;case 1:throw this.exception_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},kL.prototype.handleClickSave_nqi3in$=function(t){var e,n;if(null!=(e=this.view.clazzAssignment)){var i,o,r=e,s=null!=(n=t.casText)?n:"";(2===r.caTextLimitType?s.length:tx(s))>r.caTextLimit?this.view.showSnackBar_9pu0dj$(this.systemImpl.getString(2939,this.context)):it(this.presenterScope,void 0,void 0,(i=this,o=t,function(t,e,n){var r=new GL(i,o,t,this,e);return n?r:r.doResume(null)}))}},qL.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var FL=null;function BL(){return null===FL&&new qL,FL}function WL(t,e,n,i,o){fz.call(this,t,e,n,i,o)}function HL(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$closure$entityUid=t,this.local$it=e}function VL(t){return function(e,n,i){var o=new HL(t,e,n);return i?o:o.doResume(null)}}function KL(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$closure$entity=t,this.local$it=e}function XL(t){return function(e,n,i){var o=new KL(t,e,n);return i?o:o.doResume(null)}}function JL(t,e,n){L.call(this,n),this.exceptionState_0=1,this.$this=t,this.local$clazzUid=void 0,this.local$tmp$=void 0,this.local$$receiver=void 0,this.local$entity=void 0,this.local$db=e}function YL(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$closure$caClazzUid=t,this.local$it=e}function QL(t){return function(e,n,i){var o=new YL(t,e,n);return i?o:o.doResume(null)}}function ZL(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$this$TextCourseBlockEditPresenter=t,this.local$closure$entity=e}function tz(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$entity=t,this.local$this$TextCourseBlockEditPresenter=e}function ez(t,e,n,i){oz(),rz.call(this,t,e,n,i)}function nz(){iz=this,this.RESULT_TIMEZONE_KEY="timezone"}kL.$metadata$={kind:v,simpleName:"TextAssignmentEditPresenter",interfaces:[fz]},Object.defineProperty(WL.prototype,"persistenceMode",{configurable:!0,get:function(){return xz()}}),HL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},HL.prototype=Object.create(L.prototype),HL.prototype.constructor=HL,HL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e;if(null!=(e=null!=(t=x(this.local$closure$entityUid,O)?null:this.local$it)?t.courseBlockDao:null)){if(this.state_0=2,this.result_0=e.findByUidAsync_s8cxhz$(this.local$closure$entityUid,this),this.result_0===T)return T;continue}this.result_0=null,this.state_0=3;continue;case 1:throw this.exception_0;case 2:this.state_0=3;continue;case 3:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},KL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},KL.prototype=Object.create(L.prototype),KL.prototype.constructor=KL,KL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$it.clazzDao.getClazzWithSchool_s8cxhz$(this.local$closure$entity.cbClazzUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},JL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},JL.prototype=Object.create(L.prototype),JL.prototype.constructor=JL,JL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n,i,o,r,s=null!=(e=null!=(t=this.$this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?Xn(t):null)?e:O;if(this.local$clazzUid=null!=(i=null!=(n=this.$this.arguments.get_11rb$(zG().ARG_CLAZZUID))?Xn(n):null)?i:O,this.state_0=2,this.result_0=Rt(this.local$db,Ot,VL(s),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(null!=(o=this.result_0)){this.local$tmp$=o,this.state_0=4;continue}if(this.local$$receiver=new pi,this.state_0=3,this.result_0=Dn(this.local$db).nextIdAsync_za3lpa$(124,this),this.result_0===T)return T;continue;case 3:this.local$$receiver.cbUid=this.result_0,this.local$$receiver.cbClazzUid=this.local$clazzUid,this.local$$receiver.cbType=102,this.local$$receiver.cbEntityUid=this.local$$receiver.cbUid,this.local$tmp$=this.local$$receiver,this.state_0=4;continue;case 4:if(this.local$entity=this.local$tmp$,this.state_0=5,this.result_0=Rt(this.local$db,Ot,XL(this.local$entity),this),this.result_0===T)return T;continue;case 5:var a=hA(null!=(r=this.result_0)?r:new Rn);if(this.$this.view.timeZone=a,x(this.local$entity.cbHideUntilDate,O))this.$this.view.startDate=O;else{var c=bO(D.Companion.invoke_s8cxhz$(this.local$entity.cbHideUntilDate),a).unixMillisLong;this.$this.view.startDate=c,this.$this.view.startTime=this.local$entity.cbHideUntilDate.subtract(c)}return this.local$entity;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},WL.prototype.onLoadEntityFromDb_7hogkd$=function(t,e,n){var i=new JL(this,t,e);return n?i:i.doResume(null)},YL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},YL.prototype=Object.create(L.prototype),YL.prototype.constructor=YL,YL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$it.clazzDao.getClazzWithSchool_s8cxhz$(this.local$closure$caClazzUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ZL.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},ZL.prototype=Object.create(L.prototype),ZL.prototype.constructor=ZL,ZL.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n,i=null!=(e=null!=(t=this.local$this$TextCourseBlockEditPresenter.arguments.get_11rb$(zG().ARG_CLAZZUID))?de(t):null)?e:this.local$closure$entity.cbClazzUid;if(this.state_0=2,this.result_0=Rt(this.local$this$TextCourseBlockEditPresenter.db,Ot,QL(i),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var o=hA(null!=(n=this.result_0)?n:new Rn);if(this.local$this$TextCourseBlockEditPresenter.view.timeZone=o,x(this.local$closure$entity.cbHideUntilDate,O))return this.local$this$TextCourseBlockEditPresenter.view.startDate=O,nt;var r=bO(D.Companion.invoke_s8cxhz$(this.local$closure$entity.cbHideUntilDate),o).unixMillisLong;return this.local$this$TextCourseBlockEditPresenter.view.startDate=r,this.local$this$TextCourseBlockEditPresenter.view.startTime=this.local$closure$entity.cbHideUntilDate.subtract(r),nt;case 3:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},WL.prototype.onLoadFromJson_y0zsll$=function(t){var n;fz.prototype.onLoadFromJson_y0zsll$.call(this,t);var i=t.get_11rb$(oG().ARG_ENTITY_JSON);if(null!=i){var o,r=this.di,s=pi.Companion.serializer();n=Et(r).directDI.Instance_ohrpre$(e.isType(o=F(M(P(Pt),[],!1)),B)?o:W(),null).decodeFromString_awif5v$(s,i)}else n=new pi;var a,c,l=n;return it(this.presenterScope,void 0,void 0,(a=this,c=l,function(t,e,n){var i=new ZL(a,c,t,this,e);return n?i:i.doResume(null)})),l},tz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},tz.prototype=Object.create(L.prototype),tz.prototype.constructor=tz,tz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n=this.local$closure$entity.cbTitle;if(null==n||0===n.length)return this.local$this$TextCourseBlockEditPresenter.view.blockTitleError=this.local$this$TextCourseBlockEditPresenter.systemImpl.getString(2126,this.local$this$TextCourseBlockEditPresenter.context),void(this.local$this$TextCourseBlockEditPresenter.view.fieldsEnabled=!0);var i=null!=(t=this.local$this$TextCourseBlockEditPresenter.view.timeZone)?t:"UTC",o=this.local$closure$entity,r=yO(D.Companion.invoke_s8cxhz$(this.local$this$TextCourseBlockEditPresenter.view.startDate),i),s=r.hours,a=Yn.Companion.fromHours_14dthe$(s),c=r.minutes,l=a.plus_fv8bff$(Yn.Companion.fromMinutes_14dthe$(c)),u=r.seconds,h=l.plus_fv8bff$(Yn.Companion.fromSeconds_14dthe$(u)),d=r.milliseconds;o.cbHideUntilDate=r.minus_fv8bff$(h.plus_fv8bff$(Yn.Companion.fromMilliseconds_14dthe$(d))).utc.unixMillisLong.add(this.local$this$TextCourseBlockEditPresenter.view.startTime);var p,_=this.local$this$TextCourseBlockEditPresenter,m=this.local$this$TextCourseBlockEditPresenter.di,f=jt(pi.Companion.serializer()),g=$e(this.local$closure$entity),$=Et(m).directDI.Instance_ohrpre$(e.isType(p=F(M(P(Pt),[],!1)),B)?p:W(),null);return _.finishWithResult_61zpoe$($.encodeToString_tf03ej$(f,g)),this.local$this$TextCourseBlockEditPresenter.view.loading=!1,nt;case 1:throw this.exception_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},WL.prototype.handleClickSave_nqi3in$=function(t){var e,n;this.view.fieldsEnabled=!1,it(this.presenterScope,void 0,void 0,(e=t,n=this,function(t,i,o){var r=new tz(e,n,t,this,i);return o?r:r.doResume(null)}))},WL.$metadata$={kind:v,simpleName:"TextCourseBlockEditPresenter",interfaces:[fz]},ez.prototype.handleClickTimeZone_61zpoe$=function(t){this.finishWithResult_61zpoe$(t)},nz.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var iz=null;function oz(){return null===iz&&new nz,iz}function rz(t,n,i,o,r){var s,a,c,l;dz(),void 0===r&&(r=!0),this.context_q1ad5i$_0=t,this.arguments=n,this.view=i,this.di_e16k3a$_0=o,this.activeSessionRequired_saonpy$_0=r,this.lifecycleListeners_8u2l5y$_0=ot(),this.lifecycleStatus_83v1qv$_0=Zo(0),this.created_5i8cn7$_0=!1,this.savedState_muv61n$_0=null,this.ustadNavController_71yvih$_0=so(this,e.isType(s=F(M(P(oO),[],!1)),B)?s:W(),null).provideDelegate_tpuvb9$(this,sz),this.backStackEntry_xwcn9e$_0=null,this.json_aeuf7r$_0=H(this,e.isType(a=F(M(P(Pt),[],!1)),B)?a:W(),null).provideDelegate_tpuvb9$(this,az),this.lastStateSaveTime_afpd5s$_0=O,this.presenterScope_ptz1el$_0=H(this,e.isType(c=F(M(P(ci),[],!1)),B)?c:W(),14).provideDelegate_tpuvb9$(this,cz),this.activeSessionObserver_hlvfb5$_0=new bt((l=this,function(t){var e;return null==t&&it(l.presenterScope,void 0,void 0,(e=l,function(t,n,i){var o=new pz(e,t,this,n);return i?o:o.doResume(null)})),nt}))}ez.$metadata$={kind:v,simpleName:"TimeZoneListPresenter",interfaces:[rz]},Object.defineProperty(rz.prototype,"context",{get:function(){return this.context_q1ad5i$_0}}),Object.defineProperty(rz.prototype,"di",{get:function(){return this.di_e16k3a$_0}}),Object.defineProperty(rz.prototype,"activeSessionRequired",{get:function(){return this.activeSessionRequired_saonpy$_0}}),Object.defineProperty(rz.prototype,"savedState",{configurable:!0,get:function(){return this.savedState_muv61n$_0},set:function(t){this.savedState_muv61n$_0=t}});var sz=new N("ustadNavController");Object.defineProperty(rz.prototype,"ustadNavController",{configurable:!0,get:function(){return this.ustadNavController_71yvih$_0.value}});var az=new N("json");Object.defineProperty(rz.prototype,"json",{configurable:!0,get:function(){return this.json_aeuf7r$_0.value}}),Object.defineProperty(rz.prototype,"lastStateSaveTime",{configurable:!0,get:function(){return this.lastStateSaveTime_afpd5s$_0},set:function(t){this.lastStateSaveTime_afpd5s$_0=t}}),Object.defineProperty(rz.prototype,"navChild",{configurable:!0,get:function(){var t;return!0===(null!=(t=this.arguments.get_11rb$(zG().ARG_NAV_CHILD))?Xe(t):null)}});var cz=new N("presenterScope");function lz(t,e){L.call(this,e),this.exceptionState_0=1,this.$this=t,this.local$impl=void 0}function uz(){hz=this,this.NOT_CREATED=0,this.CREATED=1,this.STARTED=2,this.RESUMED=3,this.PAUSED=4,this.STOPPED=5,this.DESTROYED=6}Object.defineProperty(rz.prototype,"presenterScope",{configurable:!0,get:function(){return this.presenterScope_ptz1el$_0.value}}),rz.prototype.requireNavController=function(){var t;if(null==(t=this.ustadNavController))throw z("RequireNavController: ustadNavController is null");return t},rz.prototype.onCreate=function(t){var n,i;if(this.created_5i8cn7$_0)throw z("onCreate must be called ONCE AND ONLY ONCE! It has already been called");for(this.created_5i8cn7$_0=!0,this.savedState=t,this.backStackEntry_xwcn9e$_0=null!=(n=this.ustadNavController)?n.currentBackStackEntry:null,i=this.lifecycleListeners_8u2l5y$_0.iterator();i.hasNext();)i.next().onLifecycleCreate_skkcg$(this);if(this.lifecycleStatus_83v1qv$_0.kotlinx$atomicfu$value=1,this.activeSessionRequired&&!this.navChild){var o,r,s=Et(this).directDI.Instance_ohrpre$(e.isType(o=F(M(P(wa),[],!1)),B)?o:W(),null),a=Et(this).directDI.InstanceOrNull_ohrpre$(e.isType(r=F(M(P(Lr),[],!1)),B)?r:W(),null);null!=a&&s.activeUserSessionLive.observe_bi6zy5$(a,this.activeSessionObserver_hlvfb5$_0)}},rz.prototype.onStart=function(){var t;for(t=this.lifecycleListeners_8u2l5y$_0.iterator();t.hasNext();)t.next().onLifecycleStart_skkcg$(this);this.lifecycleStatus_83v1qv$_0.kotlinx$atomicfu$value=2},rz.prototype.onResume=function(){var t;for(t=this.lifecycleListeners_8u2l5y$_0.iterator();t.hasNext();)t.next().onLifecycleResume_skkcg$(this);this.lifecycleStatus_83v1qv$_0.kotlinx$atomicfu$value=3},rz.prototype.onPause=function(){var t;for(t=this.lifecycleListeners_8u2l5y$_0.iterator();t.hasNext();)t.next().onLifecyclePause_skkcg$(this);this.lifecycleStatus_83v1qv$_0.kotlinx$atomicfu$value=4},rz.prototype.onStop=function(){var t;for(t=this.lifecycleListeners_8u2l5y$_0.iterator();t.hasNext();)t.next().onLifecycleStop_skkcg$(this);this.lifecycleStatus_83v1qv$_0.kotlinx$atomicfu$value=5},rz.prototype.onDestroy=function(){var t;for(t=this.lifecycleListeners_8u2l5y$_0.iterator();t.hasNext();)t.next().onLifecycleDestroy_skkcg$(this);this.lifecycleStatus_83v1qv$_0.kotlinx$atomicfu$value=6,this.backStackEntry_xwcn9e$_0=null},rz.prototype.addLifecycleListener_4jljd3$=function(t){switch(this.lifecycleListeners_8u2l5y$_0.add_11rb$(t),this.lifecycleStatus_83v1qv$_0.kotlinx$atomicfu$value){case 1:t.onLifecycleCreate_skkcg$(this);break;case 2:t.onLifecycleStart_skkcg$(this);break;case 3:t.onLifecycleResume_skkcg$(this);break;case 4:t.onLifecyclePause_skkcg$(this);break;case 5:t.onLifecycleStop_skkcg$(this);break;case 6:t.onLifecycleDestroy_skkcg$(this)}},rz.prototype.removeLifecycleListener_4jljd3$=function(t){this.lifecycleListeners_8u2l5y$_0.remove_11rb$(t)},rz.prototype.onSaveInstanceState_gtra9a$=function(t){},rz.prototype.saveStateToNavController=function(){var t,e=mt();this.onSaveInstanceState_gtra9a$(e);var n,i=null!=(t=this.backStackEntry_xwcn9e$_0)?t.savedStateHandle:null;if(null!=i)for(n=e.entries.iterator();n.hasNext();){var o=n.next();i.set_umlfku$(o.key,o.value)}this.lastStateSaveTime=et()},rz.prototype.finishWithResult_61zpoe$=function(t){var e,n=this.arguments.get_11rb$(zG().ARG_RESULT_DEST_VIEWNAME),i=this.arguments.get_11rb$(zG().ARG_RESULT_DEST_KEY);if(null!=n&&null!=i){var o=this.requireNavController().getBackStackEntry_61zpoe$(n);null!=(e=null!=o?o.savedStateHandle:null)&&e.set_umlfku$(i,t),this.requireNavController().popBackStack_ivxn3r$(n,!1)}else this.requireNavController().popBackStack_ivxn3r$(zG().CURRENT_DEST,!0)},rz.prototype.requireSavedStateHandle=function(){var t,e;if(null==(e=null!=(t=this.requireNavController().currentBackStackEntry)?t.savedStateHandle:null))throw z("Require saved state handle: no current back stack entry");return e},rz.prototype.putPresenterResultDestInfo_sj9503$_0=function(t){var e,n,i=this.backStackEntry_xwcn9e$_0;if(null==(n=null!=(e=t.destinationResultKey)?e:t.entityClass.simpleName))throw pe("putPresenterResultDestInfo: no destination key and no class name");var o=n;null!=i&&DA(t.arguments,i,o,t.overwriteDestination)},rz.prototype.navigateForResult_r13zgt$=function(t){this.saveStateToNavController(),this.putPresenterResultDestInfo_sj9503$_0(t);var e=t.currentEntityValue;if(null!=e){var n=t.arguments,i=oG().ARG_ENTITY_JSON,o=UR(this.di,t.serializationStrategy,t.entityClass,e);n.put_xwzc9p$(i,o)}this.requireNavController().navigate_oc2wlg$(t.destinationViewName,t.arguments)},rz.prototype.navigateToErrorScreen_3lhtaa$=function(t){rO(this.requireNavController(),t,this.di,this.context)},lz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},lz.prototype=Object.create(L.prototype),lz.prototype.constructor=lz,lz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n,i=Et(this.$this).directDI.Instance_ohrpre$(e.isType(t=F(M(P(wa),[],!1)),B)?t:W(),null);if(this.local$impl=Et(this.$this).directDI.Instance_ohrpre$(e.isType(n=F(M(P(aq),[],!1)),B)?n:W(),null),this.state_0=2,this.result_0=i.activeSessionCount_6ttg7a$(void 0,void 0,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var o=this.result_0,r=!Kq().isWeb&&this.local$impl.getAppConfigBoolean_bm4g0d$(Rw().KEY_ALLOW_SERVER_SELECTION,this.$this.context),s=new Ww(zG().ROOT_DEST,!1);return void(0===o&&r?this.local$impl.go_henhri$(dj().VIEW_NAME,ji(),this.$this.context,s):0!==o||r?o>0&&this.local$impl.go_henhri$(Qx().VIEW_NAME,y([E(Qx().ARG_ACTIVE_ACCOUNT_MODE,Qx().ACTIVE_ACCOUNT_MODE_INLIST),E(zG().ARG_TITLE,this.local$impl.getString(2702,this.$this.context)),E(zG().ARG_LISTMODE,cG().toString())]),this.$this.context,s):this.local$impl.go_henhri$(qP().VIEW_NAME,ji(),this.$this.context,s));default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},rz.prototype.navigateToStartNewUserSession=function(t,e){var n=new lz(this,t);return e?n:n.doResume(null)},uz.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var hz=null;function dz(){return null===hz&&new uz,hz}function pz(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$UstadBaseController=t}function _z(t,e,n,i,o,r){void 0===r&&(r=!0),wz.call(this,t,e,n,i,o,r)}function mz(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$this$UstadDetailPresenter=t,this.local$closure$detailView=e}function fz(t,e,n,i,o,r){void 0===r&&(r=!0),wz.call(this,t,e,n,i,o),this.activeSessionRequired_wtt4b3$_0=r,this.jsonLoadListeners_4rpsj3$_0=Bi([])}function gz(){}function $z(){}function Ez(t,n,i,o,r){var s,a,c;rz.call(this,t,n,i,o),this.lifecycleOwner=r,this.mListMode_c7twx2$_0=en((s=n,function(){return PA(s)})),this.mLoggedInPersonUid=O,this.mSearchQuery="%",this.accountManager_sxtfc0$_0=H(this,e.isType(a=F(M(P(wa),[],!1)),B)?a:W(),null).provideDelegate_tpuvb9$(this,yz),this.systemImpl_4olhn5$_0=H(this,e.isType(c=F(M(P(aq),[],!1)),B)?c:W(),null).provideDelegate_tpuvb9$(this,bz);var l,u,h,d=this.accountManager.activeAccount;l=this.diTrigger,this.db_jblc0u$_0=H(G(this,q.Companion.invoke_np530x$(e.isType(u=F(M(P(Xt),[],!1)),B)?u:W(),d),l),e.isType(h=F(M(P(k),[],!1)),B)?h:W(),1).provideDelegate_tpuvb9$(this,Sz);var p,_,m,f=this.accountManager.activeAccount;p=this.diTrigger,this.repo_t6beoi$_0=H(G(this,q.Companion.invoke_np530x$(e.isType(_=F(M(P(Xt),[],!1)),B)?_:W(),f),p),e.isType(m=F(M(P(k),[],!1)),B)?m:W(),2).provideDelegate_tpuvb9$(this,Tz),this.selectedSortOption=null}pz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},pz.prototype=Object.create(L.prototype),pz.prototype.constructor=pz,pz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$UstadBaseController.navigateToStartNewUserSession(this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},rz.$metadata$={kind:v,simpleName:"UstadBaseController",interfaces:[j,zr]},_z.prototype.onCreate=function(t){wz.prototype.onCreate.call(this,t),this.updateFabDisplay()},mz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},mz.prototype=Object.create(L.prototype),mz.prototype.constructor=mz,mz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$UstadDetailPresenter.onCheckEditPermission_tn71rk$(this.local$this$UstadDetailPresenter.accountManager.activeAccount,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var t=this.result_0;return this.local$closure$detailView.editButtonMode=t?Fj():qj(),nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},_z.prototype.updateFabDisplay=function(){var t,n;if(null!=(n=e.isType(t=this.view,Bj)?t:null)){var i,o,r=n;it(this.presenterScope,void 0,void 0,(i=this,o=r,function(t,e,n){var r=new mz(i,o,t,this,e);return n?r:r.doResume(null)}))}},_z.prototype.handleClickEdit=function(){},_z.$metadata$={kind:v,simpleName:"UstadDetailPresenter",interfaces:[wz]},Object.defineProperty(fz.prototype,"activeSessionRequired",{get:function(){return this.activeSessionRequired_wtt4b3$_0}}),gz.$metadata$={kind:ge,simpleName:"JsonLoadListener",interfaces:[]},fz.prototype.addJsonLoadListener_ypapg8$=function(t){return this.jsonLoadListeners_4rpsj3$_0.add_11rb$(t)},fz.prototype.removeJsonLoadListener_ypapg8$=function(t){return this.jsonLoadListeners_4rpsj3$_0.remove_11rb$(t)},fz.prototype.requireBackStackEntry=function(){var t;if(null==(t=this.requireNavController().currentBackStackEntry))throw z("requirebackstackentry: no currentbackstackentry!");return t},fz.prototype.onLoadFromJson_y0zsll$=function(t){var e;for(e=this.jsonLoadListeners_4rpsj3$_0.iterator();e.hasNext();)e.next().onLoadFromJsonSavedState_alv73c$(t);return wz.prototype.onLoadFromJson_y0zsll$.call(this,t)},fz.prototype.onSaveInstanceState_gtra9a$=function(t){var e;for(e=this.jsonLoadListeners_4rpsj3$_0.iterator();e.hasNext();)e.next().onSaveState_gtra9a$(t);wz.prototype.onSaveInstanceState_gtra9a$.call(this,t)},Object.defineProperty(fz.prototype,"isExistingEntityOrPickerMode",{configurable:!0,get:function(){var t,e;return!x(null!=(e=null!=(t=this.arguments.get_11rb$(zG().ARG_ENTITY_UID))?de(t):null)?e:O,O)||null!=this.arguments.get_11rb$(zG().ARG_RESULT_DEST_ID)||null!=this.arguments.get_11rb$(zG().ARG_RESULT_DEST_VIEWNAME)}}),fz.prototype.onFinish_xcg1s8$=function(t,n,i,o){if(this.isExistingEntityOrPickerMode){var r,s=this.di,a=jt(o),c=$e(i),l=Et(s).directDI.Instance_ohrpre$(e.isType(r=F(M(P(Pt),[],!1)),B)?r:W(),null);this.finishWithResult_61zpoe$(l.encodeToString_tf03ej$(a,c))}else this.systemImpl.go_henhri$(t,Je(E(zG().ARG_ENTITY_UID,n.toString())),this.context,new Ww(zG().CURRENT_DEST,!0))},fz.$metadata$={kind:v,simpleName:"UstadEditPresenter",interfaces:[$z,wz]},$z.$metadata$={kind:ge,simpleName:"UstadEditPresenterJsonLoader",interfaces:[]},Object.defineProperty(Ez.prototype,"mListMode",{configurable:!0,get:function(){return this.mListMode_c7twx2$_0.value}});var yz=new N("accountManager");Object.defineProperty(Ez.prototype,"accountManager",{configurable:!0,get:function(){return this.accountManager_sxtfc0$_0.value}});var bz=new N("systemImpl");Object.defineProperty(Ez.prototype,"systemImpl",{configurable:!0,get:function(){return this.systemImpl_4olhn5$_0.value}});var Sz=new N("db");Object.defineProperty(Ez.prototype,"db",{configurable:!0,get:function(){return this.db_jblc0u$_0.value}});var vz,Cz,Nz,Tz=new N("repo");function Lz(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$UstadListPresenter=t}function zz(t,e){L.call(this,e),this.exceptionState_0=1,this.$this=t,this.local$tmp$_0=void 0,this.local$listView=void 0}function wz(t,n,i,o,r,s){var a,c;void 0===s&&(s=!0),rz.call(this,t,n,i,o,s),this.lifecycleOwner=r,this.dataLoadCompleted_s6xaue$_0=!1,this.onCreateException_k2ploz$_0=null,this.isStarted_z8t786$_0=!1,this.entity=null,this.entityLiveData=null,this.entityLiveDataObserver=null,this.systemImpl_xwab5w$_0=H(this,e.isType(a=F(M(P(aq),[],!1)),B)?a:W(),null).provideDelegate_tpuvb9$(this,Dz),this.accountManager_cy139v$_0=H(this,e.isType(c=F(M(P(wa),[],!1)),B)?c:W(),null).provideDelegate_tpuvb9$(this,Pz);var l,u,h,d=this.accountManager.activeAccount;l=this.diTrigger,this.db_vk9xlh$_0=H(G(this,q.Companion.invoke_np530x$(e.isType(u=F(M(P(Xt),[],!1)),B)?u:W(),d),l),e.isType(h=F(M(P(k),[],!1)),B)?h:W(),1).provideDelegate_tpuvb9$(this,Mz);var p,_,m,f=this.accountManager.activeAccount;p=this.diTrigger,this.repo_29umqp$_0=H(G(this,q.Companion.invoke_np530x$(e.isType(_=F(M(P(Xt),[],!1)),B)?_:W(),f),p),e.isType(m=F(M(P(k),[],!1)),B)?m:W(),2).provideDelegate_tpuvb9$(this,kz),this.onLoadCompletedListeners_rznugq$_0=te([]),this.logPrefix_bl0gl1$_0="UstadSingleEntityPresenter("+He(e.getKClassFromExpression(this).simpleName)+"): "}function Oz(t){this.function$=t}function Rz(t,e){Wn.call(this),this.name$=t,this.ordinal$=e}function Az(){Az=function(){},vz=new Rz("DB",0),Cz=new Rz("JSON",1),Nz=new Rz("LIVEDATA",2)}function xz(){return Az(),vz}function Iz(){return Az(),Cz}function Uz(){return Az(),Nz}Object.defineProperty(Ez.prototype,"repo",{configurable:!0,get:function(){return this.repo_t6beoi$_0.value}}),Object.defineProperty(Ez.prototype,"sortOptions",{configurable:!0,get:function(){return fe()}}),Lz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Lz.prototype=Object.create(L.prototype),Lz.prototype.constructor=Lz,Lz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$UstadListPresenter.onLoadFromDb(this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ez.prototype.onCreate=function(t){var e;rz.prototype.onCreate.call(this,t),it(this.presenterScope,It(),void 0,(e=this,function(t,n,i){var o=new Lz(e,t,this,n);return i?o:o.doResume(null)}))},zz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},zz.prototype=Object.create(L.prototype),zz.prototype.constructor=zz,zz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n;if(this.local$tmp$_0=e.isType(t=this.$this.view,SG)?t:null,null==this.local$tmp$_0)return;this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(this.local$listView=this.local$tmp$_0,this.state_0=3,this.result_0=this.$this.onCheckAddPermission_tn71rk$(this.$this.accountManager.activeAccount,this),this.result_0===T)return T;continue;case 3:var i=this.result_0;if(n=i&&this.$this.mListMode===aG()?pG():i&&this.$this.mListMode===cG()?dG():_G(),this.local$listView.addMode=n,this.state_0=4,this.result_0=this.$this.onCheckListSelectionOptions_tn71rk$(this.$this.accountManager.activeAccount,this),this.result_0===T)return T;continue;case 4:return void(this.local$listView.selectionOptions=this.result_0);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ez.prototype.onLoadFromDb=function(t,e){var n=new zz(this,t);return e?n:n.doResume(null)},Ez.prototype.handleClickEntry_11rc$=function(t){},Ez.prototype.handleClickSelectionOption_psq284$=function(t,e){},Ez.prototype.onCheckListSelectionOptions_tn71rk$=function(t,e){return fe()},Ez.prototype.handleClickSortOrder_iowaj7$=function(t){},Ez.prototype.onClickSort_o8nuns$=function(t){this.selectedSortOption=t},Ez.prototype.onSearchSubmitted_pdl1vj$=function(t){},Ez.prototype.onListFilterOptionSelected_5mmfk3$=function(t){},Ez.prototype.handleClickAddNewItem_a4m1mt$=function(t,e,n){void 0===t&&(t=null),void 0===e&&(e=null),n?n(t,e):this.handleClickAddNewItem_a4m1mt$$default(t,e)},Ez.prototype.handleSelectionOptionChanged_4ezy6h$=function(t){},Ez.$metadata$={kind:v,simpleName:"UstadListPresenter",interfaces:[ER,oy,ry,rz,j]},Oz.prototype.onLoadDataCompleted_fsdvh1$=function(t){return this.function$(t)},Oz.$metadata$={kind:ge,simpleName:"OnLoadDataCompletedListener",interfaces:[]},Rz.$metadata$={kind:v,simpleName:"PersistenceMode",interfaces:[Wn]},Rz.values=function(){return[xz(),Iz(),Uz()]},Rz.valueOf_61zpoe$=function(t){switch(t){case"DB":return xz();case"JSON":return Iz();case"LIVEDATA":return Uz();default:Hn("No enum constant com.ustadmobile.core.controller.UstadSingleEntityPresenter.PersistenceMode."+t)}};var Dz=new N("systemImpl");Object.defineProperty(wz.prototype,"systemImpl",{configurable:!0,get:function(){return this.systemImpl_xwab5w$_0.value}});var Pz=new N("accountManager");Object.defineProperty(wz.prototype,"accountManager",{configurable:!0,get:function(){return this.accountManager_cy139v$_0.value}});var Mz=new N("db");Object.defineProperty(wz.prototype,"db",{configurable:!0,get:function(){return this.db_vk9xlh$_0.value}});var kz=new N("repo");function jz(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=9,this.local$this$UstadSingleEntityPresenter=t,this.local$tmp$=void 0,this.local$this$UstadSingleEntityPresenter_0=void 0}function Gz(t){this.this$UstadSingleEntityPresenter=t}function qz(t,e,n,i,o,r,s){return function(s){return t.getLiveData_ytbaoo$(e).observe_bi6zy5$(n,new bt(function(t,e,n,i){return function(i){if(null!=i){var o=Mq(e.di,n,0,i);return t.postValue_11rb$(o),nt}t.postValue_11rb$(fe())}}(i,o,r))),nt}}function Fz(t,e,n,i,o,r,s,a,c,l){L.call(this,l),this.$controller=c,this.exceptionState_0=1,this.local$closure$savedState=t,this.local$closure$keyName=e,this.local$closure$lifecycle=n,this.local$closure$wrapper=i,this.local$this$UstadSingleEntityPresenter=o,this.local$closure$deserializationStrategy=r,this.local$closure$resultClass=s}function Bz(t,n,i,o){var r;tw(),rz.call(this,t,n,i,o),this.entry_ipkzbw$_0=null,this.entryUuid_pvfy5l$_0=O,this.containerUid_8be2vx$=O,this.clazzUid=O,this.accountManager_r6f9ya$_0=H(this,e.isType(r=F(M(P(wa),[],!1)),B)?r:W(),null).provideDelegate_tpuvb9$(this,Wz);var s,a,c,l=this.accountManager.activeAccount;s=this.diTrigger,this.db_syfysg$_0=H(G(this,q.Companion.invoke_np530x$(e.isType(a=F(M(P(Xt),[],!1)),B)?a:W(),l),s),e.isType(c=F(M(P(k),[],!1)),B)?c:W(),1).provideDelegate_tpuvb9$(this,Hz);var u,h,d,p=this.accountManager.activeAccount;u=this.diTrigger,this.repo_gg5l04$_0=H(G(this,q.Companion.invoke_np530x$(e.isType(h=F(M(P(Xt),[],!1)),B)?h:W(),p),u),e.isType(d=F(M(P(k),[],!1)),B)?d:W(),2).provideDelegate_tpuvb9$(this,Vz);var _,m,f,g=this.accountManager.activeAccount;_=this.diTrigger,this.statementEndpoint_6ecqlu$_0=H(G(this,q.Companion.invoke_np530x$(e.isType(m=F(M(P(Xt),[],!1)),B)?m:W(),g),_),e.isType(f=F(M(P(Hc),[],!1)),B)?f:W(),null).provideDelegate_tpuvb9$(this,Kz),this.timeVideoPlayed=O,this.contextRegistration_zdcvv2$_0=this.contextRegistration_zdcvv2$_0,this.audioEntry=null,this.videoPath_8be2vx$=null,this.srtMap_8be2vx$=mt(),this.srtLangList_8be2vx$=ot()}Object.defineProperty(wz.prototype,"repo",{configurable:!0,get:function(){return this.repo_29umqp$_0.value}}),jz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},jz.prototype=Object.create(L.prototype),jz.prototype.constructor=jz,jz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n;this.exceptionState_0=4,this.local$tmp$=be([this.local$this$UstadSingleEntityPresenter.db,this.local$this$UstadSingleEntityPresenter.repo]).iterator(),this.state_0=1;continue;case 1:if(!this.local$tmp$.hasNext()){this.state_0=3;continue}var i=this.local$tmp$.next();if(this.local$this$UstadSingleEntityPresenter_0=this.local$this$UstadSingleEntityPresenter,this.state_0=2,this.result_0=this.local$this$UstadSingleEntityPresenter_0.onLoadEntityFromDb_7hogkd$(i,this),this.result_0===T)return T;continue;case 2:this.local$this$UstadSingleEntityPresenter_0.entity=this.result_0,this.local$this$UstadSingleEntityPresenter_0.view.entity=this.local$this$UstadSingleEntityPresenter_0.entity,this.state_0=1;continue;case 3:return this.local$this$UstadSingleEntityPresenter.view.loading=!1,null!=(n=e.isType(t=this.local$this$UstadSingleEntityPresenter.view,Wj)?t:null)&&(n.fieldsEnabled=!0),this.local$this$UstadSingleEntityPresenter.onLoadDataComplete(),nt;case 4:this.exceptionState_0=9;var o=this.exception_0;if(e.isType(o,on)){if(e.isType(o,Ye)){this.state_0=6;continue}return lt.Napier.e_82mfvz$(this.local$this$UstadSingleEntityPresenter.logPrefix_bl0gl1$_0+" load exception",o),this.local$this$UstadSingleEntityPresenter.isStarted_z8t786$_0?(this.local$this$UstadSingleEntityPresenter.navigateToErrorScreen_3lhtaa$(o),nt):(this.local$this$UstadSingleEntityPresenter.onCreateException_k2ploz$_0=o,nt)}throw o;case 5:this.state_0=6;continue;case 6:this.state_0=7;continue;case 7:this.state_0=8;continue;case 8:return nt;case 9:throw this.exception_0;default:throw this.state_0=9,new Error("State Machine Unreachable execution")}}catch(o){if(9===this.state_0)throw this.exceptionState_0=this.state_0,o;this.state_0=this.exceptionState_0,this.exception_0=o}},Gz.prototype.onChanged_11rb$=function(t){var e;this.this$UstadSingleEntityPresenter.entity=t,this.this$UstadSingleEntityPresenter.view.entity=this.this$UstadSingleEntityPresenter.entity;var n=this.this$UstadSingleEntityPresenter.view;null!=(e=null!=t?n:null)&&(e.loading=!1)},Gz.$metadata$={kind:v,interfaces:[bt]},wz.prototype.onCreate=function(t){var n,i,o,r,s,a,c;rz.prototype.onCreate.call(this,t),!0===(null!=t?t.containsKey_11rb$(oG().ARG_ENTITY_JSON):null)?(lt.Napier.d_82mfvz$(this.logPrefix_bl0gl1$_0+" found savedState contains ARG_ENTITY_JSON"),n=t):this.arguments.containsKey_11rb$(oG().ARG_ENTITY_JSON)?(lt.Napier.d_82mfvz$(this.logPrefix_bl0gl1$_0+" arguments contain "+oG().ARG_ENTITY_JSON),n=this.arguments):n=null;var l,u=n;if(null!=u&&null!=u.get_11rb$(oG().ARG_ENTITY_JSON))lt.Napier.d_82mfvz$(this.logPrefix_bl0gl1$_0+" Json present in args or savedstate. Load from JSON: "+He(u.get_11rb$(oG().ARG_ENTITY_JSON))),this.entity=this.onLoadFromJson_y0zsll$(u),this.view.entity=this.entity,null!=(o=e.isType(i=this.view,Wj)?i:null)&&(o.fieldsEnabled=!0),this.onLoadDataComplete();else if(this.persistenceMode===xz())lt.Napier.d_82mfvz$(this.logPrefix_bl0gl1$_0+" Load from DB"),this.view.loading=!0,null!=(s=e.isType(r=this.view,Wj)?r:null)&&(s.fieldsEnabled=!1),it(this.presenterScope,void 0,void 0,(l=this,function(t,e,n){var i=new jz(l,t,this,e);return n?i:i.doResume(null)}));else if(this.persistenceMode===Iz())lt.Napier.d_82mfvz$(this.logPrefix_bl0gl1$_0+" PersistenceMode = JSON, load"),this.entity=this.onLoadFromJson_y0zsll$(this.arguments),this.view.entity=this.entity,null!=(c=e.isType(a=this.view,Wj)?a:null)&&(c.fieldsEnabled=!0),this.onLoadDataComplete();else if(this.persistenceMode===Uz()&&(lt.Napier.d_82mfvz$(this.logPrefix_bl0gl1$_0+" PersistenceMode = LiveData, load"),this.entityLiveData=this.onLoadLiveData_7hogkd$(this.repo),this.view.loading=!0,null!=this.entityLiveData)){var h,d=new Gz(this);null!=(h=this.entityLiveData)&&h.observe_bi6zy5$(this.lifecycleOwner,d),this.onLoadDataComplete(),this.entityLiveDataObserver=d}},wz.prototype.onStart=function(){var t;rz.prototype.onStart.call(this),this.isStarted_z8t786$_0=!0,null!=(t=this.onCreateException_k2ploz$_0)&&this.navigateToErrorScreen_3lhtaa$(t),this.onCreateException_k2ploz$_0=null},wz.prototype.onLoadDataComplete=function(){var t;for(this.dataLoadCompleted_s6xaue$_0=!0,t=this.onLoadCompletedListeners_rznugq$_0.iterator();t.hasNext();)t.next().onLoadDataCompleted_fsdvh1$(this);this.onLoadCompletedListeners_rznugq$_0.clear()},wz.prototype.addOnLoadDataCompletedListener_3l0549$=function(t){this.dataLoadCompleted_s6xaue$_0?t.onLoadDataCompleted_fsdvh1$(this):this.onLoadCompletedListeners_rznugq$_0.add_11rb$(t)},wz.prototype.removeOnLoadDataCompletedListener_3l0549$=function(t){this.onLoadCompletedListeners_rznugq$_0.remove_11rb$(t)},wz.prototype.onLoadEntityFromDb_7hogkd$=function(t,e){return null},wz.prototype.onLoadLiveData_7hogkd$=function(t){return null},wz.prototype.onLoadFromJson_y0zsll$=function(t){return null},Fz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Fz.prototype=Object.create(L.prototype),Fz.prototype.constructor=Fz,Fz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:return this.local$this$UstadSingleEntityPresenter.addOnLoadDataCompletedListener_3l0549$(new Oz(qz(this.local$closure$savedState,this.local$closure$keyName,this.local$closure$lifecycle,this.local$closure$wrapper,this.local$this$UstadSingleEntityPresenter,this.local$closure$deserializationStrategy,this.local$closure$resultClass))),nt;case 1:throw this.exception_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},wz.prototype.getSavedStateResultLiveData_dgkpuc$=function(t,e,n){var i,o,r,s,a,c,l,u=Qt(),h=this.requireSavedStateHandle(),d=this.lifecycleOwner;return it(tt.GlobalScope,It(),void 0,(i=h,o=t,r=d,s=u,a=this,c=e,l=n,function(t,e,n){var u=new Fz(i,o,r,s,a,c,l,t,this,e);return n?u:u.doResume(null)})),u},wz.prototype.observeSavedStateResult_u0dr5v$=function(t,e,n,i){this.getSavedStateResultLiveData_dgkpuc$(t,e,n).observe_bi6zy5$(this.lifecycleOwner,i)},wz.prototype.onDestroy=function(){var t=this.entityLiveDataObserver,e=this.entityLiveData;null!=t&&null!=e&&e.removeObserver_fujmse$(t),this.entityLiveData=null,this.entityLiveDataObserver=null,rz.prototype.onDestroy.call(this)},wz.$metadata$={kind:v,simpleName:"UstadSingleEntityPresenter",interfaces:[rz]};var Wz=new N("accountManager");Object.defineProperty(Bz.prototype,"accountManager",{configurable:!0,get:function(){return this.accountManager_r6f9ya$_0.value}});var Hz=new N("db");Object.defineProperty(Bz.prototype,"db",{configurable:!0,get:function(){return this.db_syfysg$_0.value}});var Vz=new N("repo");Object.defineProperty(Bz.prototype,"repo",{configurable:!0,get:function(){return this.repo_gg5l04$_0.value}});var Kz=new N("statementEndpoint");function Xz(t,e,n,i){void 0===t&&(t=null),void 0===e&&(e=null),void 0===n&&(n=ot()),void 0===i&&(i=mt()),this.videoPath=t,this.audioPath=e,this.srtLangList=n,this.srtMap=i}function Jz(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$VideoContentPresenterCommon=t}function Yz(t,e,n,i,o,r,s){L.call(this,s),this.$controller=r,this.exceptionState_0=1,this.local$closure$position=t,this.local$closure$videoLength=e,this.local$this$VideoContentPresenterCommon=n,this.local$closure$playerPlayedVideoDuration=i}function Qz(){Zz=this,this.VIDEO_EXT_LIST=be([".mp4",".mkv",".webm",".m4v"]),this.VIDEO_MIME_MAP=y([E("video/mp4",".mp4"),E("video/x-matroska",".mkv"),E("video/webm",".webm"),E("video/x-m4v",".m4v")])}Object.defineProperty(Bz.prototype,"statementEndpoint",{configurable:!0,get:function(){return this.statementEndpoint_6ecqlu$_0.value}}),Object.defineProperty(Bz.prototype,"contextRegistration",{configurable:!0,get:function(){return null==this.contextRegistration_zdcvv2$_0?Ue("contextRegistration"):this.contextRegistration_zdcvv2$_0},set:function(t){this.contextRegistration_zdcvv2$_0=t}}),Xz.$metadata$={kind:v,simpleName:"VideoParams",interfaces:[]},Xz.prototype.component1=function(){return this.videoPath},Xz.prototype.component2=function(){return this.audioPath},Xz.prototype.component3=function(){return this.srtLangList},Xz.prototype.component4=function(){return this.srtMap},Xz.prototype.copy_lincaq$=function(t,e,n,i){return new Xz(void 0===t?this.videoPath:t,void 0===e?this.audioPath:e,void 0===n?this.srtLangList:n,void 0===i?this.srtMap:i)},Xz.prototype.toString=function(){return"VideoParams(videoPath="+e.toString(this.videoPath)+", audioPath="+e.toString(this.audioPath)+", srtLangList="+e.toString(this.srtLangList)+", srtMap="+e.toString(this.srtMap)+")"},Xz.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*(t=31*t+e.hashCode(this.videoPath)|0)+e.hashCode(this.audioPath)|0)+e.hashCode(this.srtLangList)|0)+e.hashCode(this.srtMap)|0},Xz.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.videoPath,t.videoPath)&&e.equals(this.audioPath,t.audioPath)&&e.equals(this.srtLangList,t.srtLangList)&&e.equals(this.srtMap,t.srtMap)},Jz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Jz.prototype=Object.create(L.prototype),Jz.prototype.constructor=Jz,Jz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$VideoContentPresenterCommon.db.contentEntryDao.findByUidAsync_s8cxhz$(this.local$this$VideoContentPresenterCommon.entryUuid_pvfy5l$_0,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.local$this$VideoContentPresenterCommon.entry_ipkzbw$_0=this.result_0,this.local$this$VideoContentPresenterCommon.view.entry=this.local$this$VideoContentPresenterCommon.entry_ipkzbw$_0,nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Bz.prototype.onCreate=function(t){var e,n,i;rz.prototype.onCreate.call(this,t),this.contextRegistration=$n().toString(),this.entryUuid_pvfy5l$_0=de(ke(this.arguments,zG().ARG_CONTENT_ENTRY_UID)),this.containerUid_8be2vx$=de(ke(this.arguments,zG().ARG_CONTAINER_UID)),this.clazzUid=null!=(n=null!=(e=this.arguments.get_11rb$(zG().ARG_CLAZZUID))?de(e):null)?n:O,this.view.loading=!0,it(tt.GlobalScope,It(),void 0,(i=this,function(t,e,n){var o=new Jz(i,t,this,e);return n?o:o.doResume(null)}))},Bz.prototype.onResume=function(){rz.prototype.onResume.call(this),this.handleOnResume()},Yz.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Yz.prototype=Object.create(L.prototype),Yz.prototype.constructor=Yz,Yz.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n=Ve(this.local$closure$position.toNumber()/this.local$closure$videoLength.toNumber()*100);if(null!=(t=this.local$this$VideoContentPresenterCommon.entry_ipkzbw$_0)){var i=this.local$this$VideoContentPresenterCommon,o=this.local$closure$playerPlayedVideoDuration;Vc(i.statementEndpoint,i.accountManager.activeAccount,t,n,o.v,i.contextRegistration,i.clazzUid),e=t}else e=null;return e;case 1:throw this.exception_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Bz.prototype.updateProgress_6o1nvj$=function(t,e,n){if(void 0===n&&(n=!1),!x(this.accountManager.activeAccount.personUid,O)){var i,o,r,s,a={v:O};if(n)this.timeVideoPlayed=et();else{if(x(this.timeVideoPlayed,O))return;if(n||!(this.timeVideoPlayed.toNumber()>0))return;a.v=et().subtract(this.timeVideoPlayed),this.timeVideoPlayed=O}it(tt.GlobalScope,void 0,void 0,(i=t,o=e,r=this,s=a,function(t,e,n){var a=new Yz(i,o,r,s,t,this,e);return n?a:a.doResume(null)}))}},Qz.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var Zz=null;function tw(){return null===Zz&&new Qz,Zz}function ew(t){this.closure$block=t}function nw(t,n,i,o){var r,s;rz.call(this,t,n,i,o),this.clazzUid_r9df85$_0=O,this.containerUid_8be2vx$=null,this.contentEntryOpener_4w7kzx$_5k543h$_0=H(o,e.isType(r=F(M(P(ZO),[],!1)),B)?r:W(),null).provideDelegate_tpuvb9$(this,iw),this.accountManager_av4p31$_0=H(this,e.isType(s=F(M(P(wa),[],!1)),B)?s:W(),null).provideDelegate_tpuvb9$(this,ow);var a,c,l,u=this.accountManager.activeAccount;a=this.diTrigger,this.db_oe2u11$_0=H(G(this,q.Companion.invoke_np530x$(e.isType(c=F(M(P(Xt),[],!1)),B)?c:W(),u),a),e.isType(l=F(M(P(k),[],!1)),B)?l:W(),1).provideDelegate_tpuvb9$(this,rw);var h,d,p,_,m=this.accountManager.activeAccount;h=this.diTrigger,this.repo_5qaen$_0=H(G(this,q.Companion.invoke_np530x$(e.isType(d=F(M(P(Xt),[],!1)),B)?d:W(),m),h),e.isType(p=F(M(P(k),[],!1)),B)?p:W(),2).provideDelegate_tpuvb9$(this,sw),this.systemImpl_l8iu30$_hr029o$_0=H(o,e.isType(_=F(M(P(aq),[],!1)),B)?_:W(),null).provideDelegate_tpuvb9$(this,aw)}Bz.$metadata$={kind:v,simpleName:"VideoContentPresenterCommon",interfaces:[rz]},ew.prototype.run=function(){this.closure$block()},ew.$metadata$={kind:v,interfaces:[xo]};var iw=new N("contentEntryOpener");Object.defineProperty(nw.prototype,"contentEntryOpener_4w7kzx$_0",{configurable:!0,get:function(){return this.contentEntryOpener_4w7kzx$_5k543h$_0.value}});var ow=new N("accountManager");Object.defineProperty(nw.prototype,"accountManager",{configurable:!0,get:function(){return this.accountManager_av4p31$_0.value}});var rw=new N("db");Object.defineProperty(nw.prototype,"db",{configurable:!0,get:function(){return this.db_oe2u11$_0.value}});var sw=new N("repo");Object.defineProperty(nw.prototype,"repo",{configurable:!0,get:function(){return this.repo_5qaen$_0.value}});var aw=new N("systemImpl");function cw(t,e){return function(){return e.view.entry=t,nt}}function lw(t){return function(){return t.view.showSnackBar_9pu0dj$(t.systemImpl_l8iu30$_0.getString(2027,t.context)),nt}}function uw(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=5,this.local$this$WebChunkPresenterCommon=t,this.local$closure$entryUuid=e}function hw(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=7,this.local$this$WebChunkPresenterCommon=t,this.local$closure$params=e}function dw(t,n,i,o){var r,s;rz.call(this,t,n,i,o),this.tinCanXml_0=null,this.mountedPath_0="",this.mounter_cd6g42$_0=H(this,e.isType(r=F(M(P(gU),[],!1)),B)?r:W(),null).provideDelegate_tpuvb9$(this,pw),this.accountManager_qrl1y4$_0=H(this,e.isType(s=F(M(P(wa),[],!1)),B)?s:W(),null).provideDelegate_tpuvb9$(this,_w),this.mountedEndpoint_v5ll11$_0=this.mountedEndpoint_v5ll11$_0,this.contextRegistration_5wj2z4$_0=this.contextRegistration_5wj2z4$_0,this.contentEntryUid_0=O,this.clazzUid_0=O,this.onCreateException_0=null,this.isStarted_0=!1;var a,c,l,u=this.accountManager_0.activeAccount;a=this.diTrigger,this.repo_hwps16$_0=H(G(this,q.Companion.invoke_np530x$(e.isType(c=F(M(P(Xt),[],!1)),B)?c:W(),u),a),e.isType(l=F(M(P(k),[],!1)),B)?l:W(),2).provideDelegate_tpuvb9$(this,mw);var h,d,p,_=this.accountManager_0.activeAccount;h=this.diTrigger,this.db_6ph7fm$_0=H(G(this,q.Companion.invoke_np530x$(e.isType(d=F(M(P(Xt),[],!1)),B)?d:W(),_),h),e.isType(p=F(M(P(k),[],!1)),B)?p:W(),1).provideDelegate_tpuvb9$(this,fw);var m,f,g,$=this.accountManager_0.activeAccount;m=this.diTrigger,this.statementEndpoint_1bhd1o$_0=H(G(this,q.Companion.invoke_np530x$(e.isType(f=F(M(P(Xt),[],!1)),B)?f:W(),$),m),e.isType(g=F(M(P(Hc),[],!1)),B)?g:W(),null).provideDelegate_tpuvb9$(this,gw)}Object.defineProperty(nw.prototype,"systemImpl_l8iu30$_0",{configurable:!0,get:function(){return this.systemImpl_l8iu30$_hr029o$_0.value}}),uw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},uw.prototype=Object.create(L.prototype),uw.prototype.constructor=uw,uw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.exceptionState_0=2,this.state_0=1,this.result_0=this.local$this$WebChunkPresenterCommon.repo.contentEntryDao.getContentByUuidAsync_s8cxhz$(this.local$closure$entryUuid,this),this.result_0===T)return T;continue;case 1:var t=this.result_0;this.local$this$WebChunkPresenterCommon.view.runOnUiThread_9ywmpy$(new ew(cw(t,this.local$this$WebChunkPresenterCommon))),this.exceptionState_0=5,this.state_0=3;continue;case 2:this.exceptionState_0=5;var n=this.exception_0;if(!e.isType(n,on))throw n;this.local$this$WebChunkPresenterCommon.view.runOnUiThread_9ywmpy$(new ew(lw(this.local$this$WebChunkPresenterCommon))),this.state_0=3;continue;case 3:if(this.state_0=4,this.result_0=this.local$this$WebChunkPresenterCommon.handleMountChunk(this),this.result_0===T)return T;continue;case 4:return this.result_0;case 5:throw this.exception_0;default:throw this.state_0=5,new Error("State Machine Unreachable execution")}}catch(n){if(5===this.state_0)throw this.exceptionState_0=this.state_0,n;this.state_0=this.exceptionState_0,this.exception_0=n}},nw.prototype.onCreate=function(t){var e,n;rz.prototype.onCreate.call(this,t);var i,o,r=de(ke(this.arguments,zG().ARG_CONTENT_ENTRY_UID));this.containerUid_8be2vx$=de(ke(this.arguments,zG().ARG_CONTAINER_UID)),this.clazzUid_r9df85$_0=null!=(n=null!=(e=this.arguments.get_11rb$(zG().ARG_CLAZZUID))?de(e):null)?n:O,it(tt.GlobalScope,void 0,void 0,(i=this,o=r,function(t,e,n){var r=new uw(i,o,t,this,e);return n?r:r.doResume(null)}))},hw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},hw.prototype=Object.create(L.prototype),hw.prototype.constructor=hw,hw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n,i,o,r;if(this.exceptionState_0=3,this.state_0=1,this.result_0=this.local$this$WebChunkPresenterCommon.repo.contentEntryDao.findBySourceUrlWithContentEntryStatusAsync_61zpoe$(ke(this.local$closure$params,"sourceUrl"),this),this.result_0===T)return T;continue;case 1:if(null==(t=this.result_0))throw pe("No File found");var s=t;if(this.state_0=2,this.result_0=this.local$this$WebChunkPresenterCommon.contentEntryOpener_4w7kzx$_0.openEntry_6luryd$(this.local$this$WebChunkPresenterCommon.context,s.contentEntryUid,!0,!0,null!=(i=null!=(n=this.local$this$WebChunkPresenterCommon.arguments.get_11rb$(zG().ARG_NO_IFRAMES))?Xe(n):null)&&i,void 0,this.local$this$WebChunkPresenterCommon.clazzUid_r9df85$_0,this),this.result_0===T)return T;continue;case 2:return this.result_0;case 3:this.exceptionState_0=7;var a=this.exception_0;if(e.isType(a,on))return e.isType(a,Uw)?(this.local$this$WebChunkPresenterCommon.view.showNoAppFoundError_h6sd2a$(this.local$this$WebChunkPresenterCommon.systemImpl_l8iu30$_0.getString(2162,this.local$this$WebChunkPresenterCommon.context),2161,null!=(o=a.mimeType)?o:""),nt):(this.local$this$WebChunkPresenterCommon.view.showSnackBar_9pu0dj$(null!=(r=a.message)?r:""),nt);throw a;case 4:this.state_0=5;continue;case 5:this.state_0=6;continue;case 6:return;case 7:throw this.exception_0;default:throw this.state_0=7,new Error("State Machine Unreachable execution")}}catch(a){if(7===this.state_0)throw this.exceptionState_0=this.state_0,a;this.state_0=this.exceptionState_0,this.exception_0=a}},nw.prototype.handleUrlLinkToContentEntry=function(t){var e,n,i=bn(t,"content-detail?",AU().VIEW_NAME+"?"),o=XR().parseURLQueryString(i);o.containsKey_11rb$("sourceUrl")&&it(tt.GlobalScope,void 0,void 0,(e=this,n=o,function(t,i,o){var r=new hw(e,n,t,this,i);return o?r:r.doResume(null)}))},nw.prototype.handleUpNavigation=function(){},nw.$metadata$={kind:v,simpleName:"WebChunkPresenterCommon",interfaces:[rz]};var pw=new N("mounter");Object.defineProperty(dw.prototype,"mounter_0",{configurable:!0,get:function(){return this.mounter_cd6g42$_0.value}});var _w=new N("accountManager");Object.defineProperty(dw.prototype,"accountManager_0",{configurable:!0,get:function(){return this.accountManager_qrl1y4$_0.value}}),Object.defineProperty(dw.prototype,"mountedEndpoint_0",{configurable:!0,get:function(){return null==this.mountedEndpoint_v5ll11$_0?Ue("mountedEndpoint"):this.mountedEndpoint_v5ll11$_0},set:function(t){this.mountedEndpoint_v5ll11$_0=t}}),Object.defineProperty(dw.prototype,"contextRegistration_0",{configurable:!0,get:function(){return null==this.contextRegistration_5wj2z4$_0?Ue("contextRegistration"):this.contextRegistration_5wj2z4$_0},set:function(t){this.contextRegistration_5wj2z4$_0=t}});var mw=new N("repo");Object.defineProperty(dw.prototype,"repo",{configurable:!0,get:function(){return this.repo_hwps16$_0.value}});var fw=new N("db");Object.defineProperty(dw.prototype,"db_0",{configurable:!0,get:function(){return this.db_6ph7fm$_0.value}});var gw=new N("statementEndpoint");function $w(t){return function(){return"XapiPackageContentPresenter: Loading "+t+" "}}function Ew(t){return function(){return"XapiPackageContentPresenter: Launch HREF = "+He(t)}}function yw(t){return function(){return"XapiPackageContentPresenter: opening launch url = "+t}}function bw(){return"XapiPackageContentPresenter: ERR: launchHref = null"}function Sw(t,e,n,i,o,r,s){L.call(this,s),this.$controller=r,this.exceptionState_0=12,this.local$this$XapiPackageContentPresenter=t,this.local$closure$activeEndpoint=e,this.local$closure$containerUid=n,this.local$closure$learnerGroupUid=i,this.local$tmp$_1=void 0,this.local$launchHref=void 0}function vw(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$XapiPackageContentPresenter=t,this.local$tmp$=void 0,this.local$tmp$_2=void 0,this.local$tmp$_3=void 0,this.local$contentEntry=void 0,this.local$scoreTotal=void 0}function Cw(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$XapiPackageContentPresenter=t}function Nw(){}function Tw(t,e,n,i){L.call(this,i),this.exceptionState_0=1,this.local$closure$remoteNodeId=t,this.local$closure$repo=e,this.local$systemPerson=void 0,this.local$transactDb=n}function Lw(t,e){return function(n,i,o){var r=new Tw(t,e,n,i);return o?r:r.doResume(null)}}function zw(t,e,n,i){L.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$repo=e,this.local$remoteNodeId=n}function ww(){Ow=this,this.KEY_CONTENT_DIR_NAME="content_dir",this.KEY_LOGIN_REQUIRED_FOR_CONTENT_OPEN="app.login_before_open",this.KEY_LOGIN_REQUIRED_FOR_CONTENT_DOWNLOAD="login_before_download",this.KEY_FIRST_DEST="first_dest",this.KEY_FIRST_DEST_LOGIN_REQUIRED="first_dest_login_required",this.KEY_API_URL="apiUrl",this.KEY_APP_BASE_NAME="appBaseName",this.KEY_SUPPORTED_LANGUAGES="app.ui_languages",this.KEY_DEFAULT_LANGUAGE="app.ui_default_language",this.KEY_ALLOW_GUEST_LOGIN="app.guest_allowed",this.KEY_ALLOW_REGISTRATION="app.register_allowed",this.KEY_ALLOW_SERVER_SELECTION="app.select_server",this.KEY_NO_IFRAME="app.no_iframe_domans",this.KEY_CONTENT_ONLY_MODE="app.content_only_mode",this.KEY_PBKDF2_ITERATIONS="pbkdf2.iterations",this.KEY_PBKDF2_KEYLENGTH="pbkdf2.keylength"}Object.defineProperty(dw.prototype,"statementEndpoint",{configurable:!0,get:function(){return this.statementEndpoint_1bhd1o$_0.value}}),Sw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Sw.prototype=Object.create(L.prototype),Sw.prototype.constructor=Sw,Sw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n,i,o,r,s,a,c;if(this.exceptionState_0=7,this.state_0=1,this.result_0=this.local$this$XapiPackageContentPresenter.mounter_0.mountContainer_dckg8j$(this.local$closure$activeEndpoint,this.local$closure$containerUid,void 0,this),this.result_0===T)return T;continue;case 1:var l;this.local$this$XapiPackageContentPresenter.mountedPath_0=this.result_0;var u=Et(this.local$this$XapiPackageContentPresenter.di).directDI.Instance_ohrpre$(e.isType(l=F(M(P(Zt),[],!1)),B)?l:W(),null),h=XR().joinPaths_vqirvp$([this.local$this$XapiPackageContentPresenter.mountedPath_0,"tincan.xml"]);lt.Napier.d_9h2hdn$(void 0,void 0,$w(h));var d=new le;if(Ct(d,h),d.method=ue.Companion.Get,this.state_0=2,this.result_0=new he(d,u).execute(this),this.result_0===T)return T;continue;case 2:var p;this.result_0;var _,m=this.result_0.call,f=se.JsType,g=ne;t:do{try{_=M(ne,[],!1)}catch(t){if(e.isType(t,ce)){_=null;break t}throw t}}while(0);if(this.state_0=3,this.result_0=m.bodyNullable_qi9ur9$(ae(f,g,_),this),this.result_0===T)return T;continue;case 3:this.result_0="string"==typeof(p=this.result_0)?p:W();var $,b=this.result_0,S=Et(this.local$this$XapiPackageContentPresenter.di).directDI.Instance_ohrpre$(e.isType($=F(M(P(Lo),[],!1)),B)?$:W(),1).newPullParser();if(zo(S,b),this.local$this$XapiPackageContentPresenter.tinCanXml_0=LO().loadFromXML_h3yi26$(S),this.local$launchHref=null!=(n=null!=(t=this.local$this$XapiPackageContentPresenter.tinCanXml_0)?t.launchActivity:null)?n.launchUrl:null,lt.Napier.d_9h2hdn$(void 0,void 0,Ew(this.local$launchHref)),x(this.local$closure$learnerGroupUid,O)){this.local$tmp$_1=Pt.Default.encodeToString_tf03ej$(kO().serializer(),ex(this.local$this$XapiPackageContentPresenter.accountManager_0.activeAccount,this.local$this$XapiPackageContentPresenter.context)),this.state_0=5;continue}if(this.state_0=4,this.result_0=this.local$this$XapiPackageContentPresenter.repo.learnerGroupMemberDao.findLearnerGroupMembersByGroupIdAndEntryList_3pjtqy$(this.local$closure$learnerGroupUid,this.local$this$XapiPackageContentPresenter.contentEntryUid_0,this),this.result_0===T)return T;continue;case 4:var v=this.result_0;this.local$tmp$_1=Pt.Default.encodeToString_tf03ej$(VO().serializer(),nx(this.local$this$XapiPackageContentPresenter.accountManager_0.activeAccount,v)),this.state_0=5;continue;case 5:var C=this.local$tmp$_1,N="xapi/"+this.local$this$XapiPackageContentPresenter.contentEntryUid_0.toString()+"/"+this.local$this$XapiPackageContentPresenter.clazzUid_0.toString()+"/",L=Kq().isWeb?XR().resolveLink_puj7f4$(Wq().encodeUTF8_61zpoe$(this.local$closure$activeEndpoint),N):XR().resolveLink_puj7f4$(this.local$this$XapiPackageContentPresenter.mountedPath_0,"/"+Wq().encodeUTF8_61zpoe$(this.local$closure$activeEndpoint)+"/"+N),z=y([E("actor",C),E("endpoint",L),E("auth","OjFjMGY4NTYxNzUwOGI4YWY0NjFkNzU5MWUxMzE1ZGQ1"),E("registration",this.local$this$XapiPackageContentPresenter.contextRegistration_0),E("activity_id",null!=(r=null!=(o=null!=(i=this.local$this$XapiPackageContentPresenter.tinCanXml_0)?i.launchActivity:null)?o.id:null)?r:"xapi_id")]);if(null!=this.local$launchHref){var w=Kq().isWeb?"":"?"+RA(z),R=XR().joinPaths_vqirvp$([this.local$this$XapiPackageContentPresenter.mountedPath_0,this.local$launchHref])+w;return lt.Napier.d_9h2hdn$(void 0,void 0,yw(R)),this.local$this$XapiPackageContentPresenter.view.setTitle=null!=(c=null!=(a=null!=(s=this.local$this$XapiPackageContentPresenter.tinCanXml_0)?s.launchActivity:null)?a.name:null)?c:"",this.local$this$XapiPackageContentPresenter.view.url=R,nt}return lt.Napier.e_9h2hdn$(void 0,void 0,bw),nt;case 6:this.exceptionState_0=12,this.state_0=11;continue;case 7:this.exceptionState_0=12;var A=this.exception_0;if(e.isType(A,on)){if(e.isType(A,Ye)){this.state_0=9;continue}return this.local$this$XapiPackageContentPresenter.isStarted_0?(this.local$this$XapiPackageContentPresenter.navigateToErrorScreen_3lhtaa$(A),nt):(this.local$this$XapiPackageContentPresenter.onCreateException_0=A,nt)}throw A;case 8:this.state_0=9;continue;case 9:this.state_0=10;continue;case 10:this.state_0=11;continue;case 11:return nt;case 12:throw this.exception_0;default:throw this.state_0=12,new Error("State Machine Unreachable execution")}}catch(A){if(12===this.state_0)throw this.exceptionState_0=this.state_0,A;this.state_0=this.exceptionState_0,this.exception_0=A}},dw.prototype.onCreate=function(t){var e,n,i,o,r,s,a,c;rz.prototype.onCreate.call(this,t);var l=null!=(n=null!=(e=this.arguments.get_11rb$(zG().ARG_CONTAINER_UID))?Xn(e):null)?n:O;this.contentEntryUid_0=null!=(o=null!=(i=this.arguments.get_11rb$(zG().ARG_CONTENT_ENTRY_UID))?Xn(i):null)?o:O;var u=null!=(s=null!=(r=this.arguments.get_11rb$(zG().ARG_LEARNER_GROUP_UID))?Xn(r):null)?s:O;this.clazzUid_0=null!=(c=null!=(a=this.arguments.get_11rb$(zG().ARG_CLAZZUID))?Xn(a):null)?c:O;var h=this.accountManager_0.activeAccount.endpointUrl;this.mountedEndpoint_0=h;var d,p,_,m,f=h;this.contextRegistration_0=$n().toString(),it(this.presenterScope,void 0,void 0,(d=this,p=f,_=l,m=u,function(t,e,n){var i=new Sw(d,p,_,m,t,this,e);return n?i:i.doResume(null)}))},dw.prototype.onStart=function(){var t;rz.prototype.onStart.call(this),this.isStarted_0=!0,null!=(t=this.onCreateException_0)&&this.navigateToErrorScreen_3lhtaa$(t),this.onCreateException_0=null},vw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},vw.prototype=Object.create(L.prototype),vw.prototype.constructor=vw,vw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e;if(this.state_0=2,this.result_0=this.local$this$XapiPackageContentPresenter.db_0.contentEntryDao.findByUidAsync_s8cxhz$(this.local$this$XapiPackageContentPresenter.contentEntryUid_0,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(this.local$tmp$=this.result_0,null==this.local$tmp$)return;this.state_0=3;continue;case 3:if(this.local$contentEntry=this.local$tmp$,1!==this.local$contentEntry.completionCriteria)return;this.state_0=4;continue;case 4:if(this.state_0=5,this.result_0=this.local$this$XapiPackageContentPresenter.db_0.statementDao.findCompletedScoreForSession_61zpoe$(this.local$this$XapiPackageContentPresenter.contextRegistration_0,this),this.result_0===T)return T;continue;case 5:var n=this.result_0;if(this.local$scoreTotal=null!=(t=null!=n?n.resultScore:null)?t:0,0===(null!=(e=null!=n?n.resultScaled:null)?e:0)){if(this.state_0=6,this.result_0=this.local$this$XapiPackageContentPresenter.db_0.statementDao.calculateScoreForSession_61zpoe$(this.local$this$XapiPackageContentPresenter.contextRegistration_0,this),this.result_0===T)return T;continue}this.local$tmp$_3=n,this.state_0=8;continue;case 6:if(this.local$tmp$_2=this.result_0,null==this.local$tmp$_2)return;this.state_0=7;continue;case 7:var i=this.local$tmp$_2;this.local$scoreTotal=i.resultScore,i.resultScaled=i.resultScore/i.resultMax,this.local$tmp$_3=i,this.state_0=8;continue;case 8:var o=this.local$tmp$_3;if(this.local$scoreTotal>=this.local$contentEntry.minScore)return Kc(this.local$this$XapiPackageContentPresenter.statementEndpoint,this.local$this$XapiPackageContentPresenter.accountManager_0.activeAccount,this.local$contentEntry,this.local$this$XapiPackageContentPresenter.contextRegistration_0,o,this.local$this$XapiPackageContentPresenter.clazzUid_0),nt;this.state_0=9;continue;case 9:return nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dw.prototype.onStop=function(){var t;rz.prototype.onStop.call(this),x(this.accountManager_0.activeAccount.personUid,O)||it(this.presenterScope,void 0,void 0,(t=this,function(e,n,i){var o=new vw(t,e,this,n);return i?o:o.doResume(null)}))},Cw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Cw.prototype=Object.create(L.prototype),Cw.prototype.constructor=Cw,Cw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$this$XapiPackageContentPresenter.mountedPath_0.length>0){if(this.state_0=2,this.result_0=this.local$this$XapiPackageContentPresenter.mounter_0.unMountContainer_puj7f4$(this.local$this$XapiPackageContentPresenter.mountedEndpoint_0,this.local$this$XapiPackageContentPresenter.mountedPath_0,this),this.result_0===T)return T;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:case 3:return nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},dw.prototype.onDestroy=function(){var t;it(this.presenterScope,It(),void 0,(t=this,function(e,n,i){var o=new Cw(t,e,this,n);return i?o:o.doResume(null)})),rz.prototype.onDestroy.call(this)},dw.$metadata$={kind:v,simpleName:"XapiPackageContentPresenter",interfaces:[rz]},Tw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Tw.prototype=Object.create(L.prototype),Tw.prototype.constructor=Tw,Tw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$transactDb.personDao.findSystemAccount_s8cxhz$(this.local$closure$remoteNodeId,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(null==this.result_0){var t=new J,e=this.local$closure$repo,n=this.local$closure$remoteNodeId;if(t.username=e.config.endpoint,t.personType=1,t.dateOfBirth=n,this.state_0=3,this.result_0=Sx(this.local$transactDb,t,void 0,this),this.result_0===T)return T;continue}this.state_0=6;continue;case 3:if(this.local$systemPerson=this.result_0,this.state_0=4,this.result_0=Ux(this.local$transactDb,this.local$systemPerson,In,-2,wr,this),this.result_0===T)return T;continue;case 4:var i=this.local$transactDb.userSessionDao,o=new $t;if(o.usClientNodeId=this.local$closure$remoteNodeId,o.usPersonUid=this.local$systemPerson.personUid,o.usEndTime=In,o.usStartTime=et(),o.usStatus=1,o.usSessionType=2,this.state_0=5,this.result_0=i.insertSession_g3losl$(o,this),this.result_0===T)return T;continue;case 5:case 6:return nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},zw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},zw.prototype=Object.create(L.prototype),zw.prototype.constructor=zw,zw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(this.state_0=2,this.result_0=ut(e.isType(t=this.local$repo,k)?t:W(),void 0,Lw(this.local$remoteNodeId,this.local$repo),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Nw.prototype.onSubscriptionInitialized_v2eoxc$=function(t,e,n,i){var o=new zw(this,t,e,n);return i?o:o.doResume(null)},Nw.$metadata$={kind:v,simpleName:"RepSubscriptionInitListener",interfaces:[Or]},ww.$metadata$={kind:S,simpleName:"AppConfig",interfaces:[]};var Ow=null;function Rw(){return null===Ow&&new ww,Ow}function Aw(t,e,n,i){void 0===e&&(e=null),void 0===n&&(n=Fn),void 0===i&&(i=!1),this.dirUri=t,this.name=e,this.usableSpace=n,this.removableMedia=i}function xw(t,e,n){void 0===n&&(n=null),on.call(this,e,n),this.errorCode=t,this.name="ErrorCodeException"}function Iw(t,n,i,o,r,s,a,c){void 0===s&&(s=null),void 0===a&&(a=null),void 0===c&&(c=mt()),this.fromPresenter=t,this.currentEntityValue=n,this.destinationViewName=i,this.entityClass=o,this.serializationStrategy=r,this.destinationResultKey=s,this.arguments=c,this.overwriteDestination=null!=a?a:e.isType(this.fromPresenter,fz)}function Uw(t,e){zt(t,this),this.mimeType=e,this.name="NoAppFoundException"}function Dw(){kw()}function Pw(){Mw=this,this.CRITICAL=0,this.ERROR=1,this.WARN=2,this.INFO=3,this.VERBOSE=4,this.DEBUG=5}Aw.$metadata$={kind:v,simpleName:"ContainerStorageDir",interfaces:[]},xw.$metadata$={kind:v,simpleName:"ErrorCodeException",interfaces:[on]},Iw.prototype.copy_xs9go5$=function(t,e){return void 0===e&&(e=this.arguments),new Iw(this.fromPresenter,t,this.destinationViewName,this.entityClass,this.serializationStrategy,this.destinationResultKey,this.overwriteDestination,e)},Iw.$metadata$={kind:v,simpleName:"NavigateForResultOptions",interfaces:[]},Uw.$metadata$={kind:v,simpleName:"NoAppFoundException",interfaces:[on]},Pw.prototype.l_svtel2$=function(t,n,i,o){var r,s,a,c,l,u,h,d=n.toString()+" : "+He(i);switch(t){case 5:lt.Napier.d_82mfvz$(d,e.isType(r=o,on)?r:W());break;case 3:lt.Napier.i_82mfvz$(d,e.isType(s=o,on)?s:W());break;case 0:lt.Napier.wtf_82mfvz$(d,e.isType(a=o,on)?a:W());break;case 2:lt.Napier.w_82mfvz$(d,e.isType(c=o,on)?c:W());break;case 4:lt.Napier.v_82mfvz$(d,e.isType(l=o,on)?l:W());break;case 1:lt.Napier.e_82mfvz$(d,e.isType(u=o,on)?u:W());break;default:lt.Napier.d_82mfvz$(d,e.isType(h=o,on)?h:W())}},Pw.prototype.l_273qip$=function(t,e,n){var i=e.toString()+" : "+He(n);switch(t){case 5:lt.Napier.d_82mfvz$(i);break;case 3:lt.Napier.i_82mfvz$(i);break;case 0:lt.Napier.wtf_82mfvz$(i);break;case 2:lt.Napier.w_82mfvz$(i);break;case 4:lt.Napier.v_82mfvz$(i);break;case 1:lt.Napier.e_82mfvz$(i);break;default:lt.Napier.d_82mfvz$(i)}},Pw.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var Mw=null;function kw(){return null===Mw&&new Pw,Mw}function jw(){Gw=this,this.UTF8="UTF-8",this.LOCALE_CODE=0,this.LANGUAGE_NAMES=y([E("en","English"),E("tg","Тоҷикӣ"),E("ps","پښتو"),E("fa","دری"),E("ar","العربية"),E("bn","বাংলা"),E("ne","नेपाली"),E("my","မြန်မာစာ"),E("ru","Русский"),E("rw","Kinyarwanda")]),this.RTL_LANGUAGES=["ar","arc","dv","fa","ha","he","khw","ks","ku","ps","ur","yi"],this.MINOR_AGE_THRESHOLD=13,this.ADULT_AGE_THRESHOLD=18,this.PBKDF2_ITERATIONS=1e4,this.PBKDF2_KEYLENGTH=512}jw.$metadata$={kind:S,simpleName:"UstadMobileConstants",interfaces:[]};var Gw=null;function qw(){return null===Gw&&new jw,Gw}function Fw(){tO(),this.networkManager=null,this.locale_67r8vs$_0="",this.lastDestination_8be2vx$=null}function Bw(t,e){this.viewName=t,this.args=e}function Ww(t,e,n){Kw(),void 0===t&&(t=null),void 0===e&&(e=!1),void 0===n&&(n=null),this.popUpToViewName=t,this.popUpToInclusive=e,this.serializer=n}function Hw(){Vw=this,this.Default=new Ww(null,!1)}Bw.$metadata$={kind:v,simpleName:"LastGoToDest",interfaces:[]},Bw.prototype.component1=function(){return this.viewName},Bw.prototype.component2=function(){return this.args},Bw.prototype.copy_158qjc$=function(t,e){return new Bw(void 0===t?this.viewName:t,void 0===e?this.args:e)},Bw.prototype.toString=function(){return"LastGoToDest(viewName="+e.toString(this.viewName)+", args="+e.toString(this.args)+")"},Bw.prototype.hashCode=function(){var t=0;return t=31*(t=31*t+e.hashCode(this.viewName)|0)+e.hashCode(this.args)|0},Bw.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.viewName,t.viewName)&&e.equals(this.args,t.args)},Hw.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var Vw=null;function Kw(){return null===Vw&&new Hw,Vw}function Xw(t,e){this.langCode=t,this.langDisplay=e}function Jw(t){return function(e){return x(e,t)}}function Yw(t,e,n,i,o,r,s,a,c,l){L.call(this,l),this.$controller=c,this.exceptionState_0=1,this.local$closure$accountManager=t,this.local$closure$maxDateOfBirth=e,this.local$closure$endpointUrl=n,this.local$closure$viewUri=i,this.local$closure$context=o,this.local$this$UstadMobileSystemCommon=r,this.local$closure$intentMessage=s}function Qw(){Zw=this,this.MIME_TYPES_0=y([E("image/jpg","jpg"),E("image/jpg","jpg"),E("image/jpeg","jpg"),E("image/png","png"),E("image/gif","gif"),E("image/svg","svg"),E("application/epub+zip","epub")]);var t,e=this.MIME_TYPES_0.entries,n=$o(go(rt(e,10)),16),i=Eo(n);for(t=e.iterator();t.hasNext();){var o=t.next();i.put_xwzc9p$(o.value,o.key)}this.MIME_TYPES_REVERSE_0=i,this.DEFAULT_CONTENT_DIR_NAME_0="ustadmobileContent",this.LOCALE_USE_SYSTEM="",this.PREFKEY_LOCALE="locale",this.USER_RESOURCE=2,this.SHARED_RESOURCE=4,this.ARG_REFERRER="ref",this.GO_FLAG_CLEAR_TOP=67108864,this.TAG_DOWNLOAD_ENABLED="dlenabled",this.TAG_MAIN_COROUTINE_CONTEXT=16,this.TAG_DLMGR_SINGLETHREAD_CONTEXT=32,this.TAG_LOCAL_HTTP_PORT=64,this.LINK_INTENT_FILTER="umclient",this.LINK_ENDPOINT_VIEWNAME_DIVIDER="/umapp/#/",this.SUBDIR_SITEDATA_NAME="sitedata",this.SUBDIR_CONTAINER_NAME="container",this.SUBDIR_ATTACHMENTS_NAME="attachments",this.PREF_ROOT_VIEWNAME="rootViewName",this.TAG_CLIENT_ID="client_id"}Ww.$metadata$={kind:v,simpleName:"UstadGoOptions",interfaces:[]},Ww.prototype.component1=function(){return this.popUpToViewName},Ww.prototype.component2=function(){return this.popUpToInclusive},Ww.prototype.component3=function(){return this.serializer},Ww.prototype.copy_1cimlr$=function(t,e,n){return new Ww(void 0===t?this.popUpToViewName:t,void 0===e?this.popUpToInclusive:e,void 0===n?this.serializer:n)},Ww.prototype.toString=function(){return"UstadGoOptions(popUpToViewName="+e.toString(this.popUpToViewName)+", popUpToInclusive="+e.toString(this.popUpToInclusive)+", serializer="+e.toString(this.serializer)+")"},Ww.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*t+e.hashCode(this.popUpToViewName)|0)+e.hashCode(this.popUpToInclusive)|0)+e.hashCode(this.serializer)|0},Ww.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.popUpToViewName,t.popUpToViewName)&&e.equals(this.popUpToInclusive,t.popUpToInclusive)&&e.equals(this.serializer,t.serializer)},Xw.$metadata$={kind:v,simpleName:"UiLanguage",interfaces:[]},Xw.prototype.component1=function(){return this.langCode},Xw.prototype.component2=function(){return this.langDisplay},Xw.prototype.copy_puj7f4$=function(t,e){return new Xw(void 0===t?this.langCode:t,void 0===e?this.langDisplay:e)},Xw.prototype.toString=function(){return"UiLanguage(langCode="+e.toString(this.langCode)+", langDisplay="+e.toString(this.langDisplay)+")"},Xw.prototype.hashCode=function(){var t=0;return t=31*(t=31*t+e.hashCode(this.langCode)|0)+e.hashCode(this.langDisplay)|0},Xw.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.langCode,t.langCode)&&e.equals(this.langDisplay,t.langDisplay)},Fw.prototype.getAppConfigDefaultFirstDest_za3rmp$=function(t){var e;return null!=(e=this.getAppConfigString(Rw().KEY_FIRST_DEST,null,t))?e:tU().VIEW_NAME_HOME},Yw.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Yw.prototype=Object.create(L.prototype),Yw.prototype.constructor=Yw,Yw.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$closure$accountManager.activeSessionCount_6ttg7a$(this.local$closure$maxDateOfBirth,Jw(this.local$closure$endpointUrl),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(this.result_0>0){var t=y([E(zG().ARG_NEXT,this.local$closure$viewUri),E(Qx().ARG_FILTER_BY_ENDPOINT,this.local$closure$endpointUrl),E(Qx().ARG_ACTIVE_ACCOUNT_MODE,Qx().ACTIVE_ACCOUNT_MODE_INLIST),E(zG().ARG_TITLE,this.local$this$UstadMobileSystemCommon.getString(2702,this.local$closure$context)),E(zG().ARG_INTENT_MESSAGE,this.local$closure$intentMessage),E(zG().ARG_LISTMODE,cG().toString()),E(zG().ARG_MAX_DATE_OF_BIRTH,this.local$closure$maxDateOfBirth.toString())]);return this.local$this$UstadMobileSystemCommon.go_gofqk3$(Qx().VIEW_NAME,t,this.local$closure$context),nt}var e=y([E(zG().ARG_NEXT,this.local$closure$viewUri),E(zG().ARG_INTENT_MESSAGE,this.local$closure$intentMessage),E(zG().ARG_SERVER_URL,this.local$closure$endpointUrl)]);return this.local$this$UstadMobileSystemCommon.go_gofqk3$(qP().VIEW_NAME,e,this.local$closure$context),nt;case 3:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Fw.prototype.goToDeepLink_dfpk30$=function(t,e,n){var i,o,r,s,a,c,l;if(_e(t,tO().LINK_ENDPOINT_VIEWNAME_DIVIDER)){var u=JA(Fe(t,tO().LINK_ENDPOINT_VIEWNAME_DIVIDER),"/"),h=Be(t,tO().LINK_ENDPOINT_VIEWNAME_DIVIDER),d=bn(this.getString(2703,n),"%1$s",t),p=A(h,eM().VIEW_NAME)?D.Companion.now().minus_glepj8$(new xr(12*qw().ADULT_AGE_THRESHOLD|0)).unixMillisLong:O;it(tt.GlobalScope,It(),void 0,(i=e,o=p,r=u,s=h,a=n,c=this,l=d,function(t,e,n){var u=new Yw(i,o,r,s,a,c,l,t,this,e);return n?u:u.doResume(null)}))}},Fw.prototype.goToViewLink_yzvld8$$default=function(t,e,n){var i=Rr(t,63);if(-1===i)this.go_henhri$(t,ji(),e,n);else{var o=XR().parseURLQueryString(t);this.go_henhri$(t.substring(0,i),o,e,n)}},Fw.prototype.goToViewLink_yzvld8$=function(t,e,n,i){void 0===n&&(n=new Ww),i?i(t,e,n):this.goToViewLink_yzvld8$$default(t,e,n)},Fw.prototype.go_gofqk3$=function(t,e,n){this.go(t,e,n,0,new Ww(null,!1))},Fw.prototype.go_henhri$=function(t,e,n,i){this.go(t,e,n,0,i)},Fw.prototype.getLocale=function(t){return this.getAppPref_rjah4r$(tO().PREFKEY_LOCALE,tO().LOCALE_USE_SYSTEM,t)},Fw.prototype.setLocale=function(t,e){this.setAppPref_5pkmrg$(tO().PREFKEY_LOCALE,t,e)},Fw.prototype.getAppPref_rjah4r$=function(t,e,n){var i=this.getAppPref(t,n);return null!=i?i:e},Fw.prototype.getOrPutAppPref_ymr649$=function(t,e,n){var i,o;if(null!=(i=this.getAppPref(t,e)))o=i;else{var r=n();this.setAppPref_5pkmrg$(t,r,e),o=r}return o},Fw.prototype.getDisplayedLocale_za3rmp$=function(t){var e=this.getLocale(t);return x(e,tO().LOCALE_USE_SYSTEM)&&(e=this.getSystemLocale(t)),e.substring(0,2)},Fw.prototype.getAllUiLanguagesList=function(t){var e;if(null==(e=this.getAppConfigString(Rw().KEY_SUPPORTED_LANGUAGES,"",t)))throw z("No SUPPORTED LANGUAGES IN APPCONFIG!");var n,i=Ar(Pi(e,[","])),o=$e(new Xw(tO().LOCALE_USE_SYSTEM,this.getString(2544,t))),r=st(rt(i,10));for(n=i.iterator();n.hasNext();){var s,a=n.next();r.add_11rb$(new Xw(a,null!=(s=qw().LANGUAGE_NAMES.get_11rb$(a))?s:a))}return ri(o,r)},Fw.prototype.getMimeTypeFromExtension_61zpoe$=function(t){return tO().MIME_TYPES_REVERSE_0.containsKey_11rb$(t)?tO().MIME_TYPES_REVERSE_0.get_11rb$(t):null},Fw.prototype.getExtensionFromMimeType_61zpoe$=function(t){return tO().MIME_TYPES_0.containsKey_11rb$(t)?tO().MIME_TYPES_0.get_11rb$(t):null},Fw.prototype.getAppConfigBoolean_k4he51$_0=function(t,e,n){var i,o=this.getAppConfigString(t,null,n);return null!=(i=null!=o?Xe(o):null)?i:e},Fw.prototype.getAppConfigBoolean_bm4g0d$=function(t,e){return this.getAppConfigBoolean_k4he51$_0(t,!1,e)},Fw.prototype.getAppConfigInt_3m4wor$=function(t,e,n){return Ai(Se(this.getAppConfigString(t,""+He(e),n)))},Fw.prototype.hasDisplayedLocaleChanged_9d61t6$=function(t,e){var n=this.getDisplayedLocale_za3rmp$(e),i=null!=n&&null!=t;return i&&(i=x(t.substring(0,2),n.substring(0,2))),!i},Fw.prototype.getContentDirName_za3rmp$=function(t){return this.getAppConfigString(Rw().KEY_CONTENT_DIR_NAME,tO().DEFAULT_CONTENT_DIR_NAME_0,t)},Fw.prototype.handleClickLink_dfpk30$=function(t,e,n){if(_e(t,tO().LINK_ENDPOINT_VIEWNAME_DIVIDER)){var i=oA().parse_puj7f4$(t);x(i.endpoint,e.activeEndpoint.url)?this.goToViewLink_yzvld8$(i.viewUri,n):this.goToDeepLink_dfpk30$(t,e,n)}else this.openLinkInBrowser_bm4g0d$(t,n)},Fw.prototype.openFileInDefaultViewer_t9zcln$=function(t,e,n,i,o){void 0===i&&(i=null),o?o(t,e,n,i):this.openFileInDefaultViewer_t9zcln$$default(t,e,n,i)},Qw.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var Zw=null;function tO(){return null===Zw&&new Qw,Zw}function eO(t,e,n,i,o,r,s){var a,c;void 0===i&&(i=""),void 0===o&&(o=null),void 0===r&&(r=!1),void 0===s&&(s=!1),this.stringsXmlName=i,this.fallback=o,this.commentsEnabled=r,this.trackMessageIdOrder_0=s,this.messageMap_0=null,this.commentMap_0=null,this._messageIdOrder_0=null;for(var l=mt(),u=mt(),h=ot(),d={v:null},p="";;){var _=t.nextToken();if(d.v=_,1===_)break;if(this.commentsEnabled&&9===d.v&&(p+=t.getText()),2===d.v){var m=t.getName();if(x(m,"string")){if(null==(a=t.getAttributeValue_f5e6j7$(null,"name")))throw pe("string in xml "+this.stringsXmlName+" has no name!");var f=a,g=iF(t);if(null!=(c=n.get_11rb$(f))){var $=c;if(this.trackMessageIdOrder_0&&h.add_11rb$($),l.put_xwzc9p$($,g),this.commentsEnabled&&!x(p,"")){var E=p;u.put_xwzc9p$($,E),p=""}}}}}this.messageMap_0=b(l),this.commentMap_0=b(u),this._messageIdOrder_0=qt(h)}function nO(){}function iO(t){return t.viewName+"?"+RA(t.arguments)}function oO(){}function rO(t,n,i,o){var r,s,a,c,l,u,h=null!=(a=null!=(s=e.isType(r=n,xw)?r:null)?s.errorCode:null)?a:0,d=n.message,p=Et(i).directDI.Instance_ohrpre$(e.isType(u=F(M(P(aq),[],!1)),B)?u:W(),null),_="trace_"+et().toString();p.setAppPref_5pkmrg$(_,nn(n),o);var m=null!=(l=null!=(c=t.currentBackStackEntry)?c.viewName+"?"+RA(c.arguments):null)?l:"unknown-uri";t.navigate_oc2wlg$(FD().VIEW_NAME,y([E(FD().ARG_PRESENTER_URI,m),E(FD().ARG_STACKTRACE_PREFKEY,_),E(FD().ARG_ERR_CODE,h.toString()),E(FD().ARG_MESSAGE,null!=d?d:"")]))}function sO(){}function aO(t,e,n){uO(),void 0===n&&(n=!1),this.flagVal=t,this.messageId=e,this.enabled=n}function cO(){lO=this}Fw.$metadata$={kind:v,simpleName:"UstadMobileSystemCommon",interfaces:[]},Object.defineProperty(eO.prototype,"messageIdOrder",{configurable:!0,get:function(){if(!this.trackMessageIdOrder_0)throw z("StringsXml.messgaeIdOrder: trackMessageIdOrder was not enabled");return this._messageIdOrder_0}}),eO.prototype.get_za3lpa$=function(t){var e,n,i;if(null==(i=null!=(n=this.messageMap_0.get_11rb$(t))?n:null!=(e=this.fallback)?e.get_za3lpa$(t):null))throw pe(this.stringsXmlName+" does not contain");return i},eO.prototype.getComment_za3lpa$=function(t){if(!this.commentsEnabled)throw z("StringsXml.getComment: commentsEnabled = false");return this.commentMap_0.get_11rb$(t)},eO.prototype.getIdByString_ivxn3r$=function(t,n){var i,o,r;void 0===n&&(n=!1);var s,a=Oi(e.isCharSequence(r=t)?r:W()).toString(),c=this.messageMap_0.entries;t:do{var l;for(l=c.iterator();l.hasNext();){var u=l.next();if(Ne(u.value,a,n)){s=u;break t}}s=null}while(0);return null!=(o=null!=(i=s)?i.key:null)?o:-1},eO.$metadata$={kind:v,simpleName:"StringsXml",interfaces:[]},nO.$metadata$={kind:ge,simpleName:"UstadBackStackEntry",interfaces:[]},oO.prototype.navigate_oc2wlg$=function(t,e,n,i){void 0===n&&(n=Kw().Default),i?i(t,e,n):this.navigate_oc2wlg$$default(t,e,n)},oO.$metadata$={kind:ge,simpleName:"UstadNavController",interfaces:[]},sO.$metadata$={kind:ge,simpleName:"UstadSavedStateHandle",interfaces:[]},cO.prototype.serializer=function(){return pO()},cO.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var lO=null;function uO(){return null===lO&&new cO,lO}function hO(){this.descriptor_mk05y$_0=new X("com.ustadmobile.core.model.BitmaskFlag",this,3),this.descriptor.addElement_ivxn3r$("flagVal",!1),this.descriptor.addElement_ivxn3r$("messageId",!1),this.descriptor.addElement_ivxn3r$("enabled",!0),dO=this}Object.defineProperty(hO.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_mk05y$_0}}),hO.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);n.encodeLongElement_j0o2mv$(this.descriptor,0,e.flagVal),n.encodeIntElement_ptg7oe$(this.descriptor,1,e.messageId),x(e.enabled,!1)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeBooleanElement_qh7jdn$(this.descriptor,2,e.enabled),n.endStructure_24f42q$(this.descriptor)},hO.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r=0,s=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=s.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=s.decodeLongElement_szpzho$(this.descriptor,0),r|=1;break;case 1:i=s.decodeIntElement_szpzho$(this.descriptor,1),r|=2;break;case 2:o=s.decodeBooleanElement_szpzho$(this.descriptor,2),r|=4;break;case-1:break t;default:throw new Y(e)}return s.endStructure_24f42q$(this.descriptor),_O(r,n,i,o,null)},hO.prototype.childSerializers=function(){return[Q.LongSerializer,Q.IntSerializer,Q.BooleanSerializer]},hO.$metadata$={kind:S,simpleName:"$serializer",interfaces:[Z]};var dO=null;function pO(){return null===dO&&new hO,dO}function _O(t,e,n,i,o){var r=o||Object.create(aO.prototype);if(0==(1&t))throw dt("flagVal");if(r.flagVal=e,0==(2&t))throw dt("messageId");return r.messageId=n,r.enabled=0!=(4&t)&&i,r}function mO(t,e){this.flagVal=t,this.messageId=e}function fO(){EO()}function gO(){$O=this,this.DAY_IN_MS=864e5,this.INPUT_ENDPOINTURL="dbName",this.INPUT_FROMTIME="fromTime",this.INPUT_TOTIME="toTime",this.INPUT_CLAZZUID="clazzUidFilter"}aO.$metadata$={kind:v,simpleName:"BitmaskFlag",interfaces:[]},aO.prototype.component1=function(){return this.flagVal},aO.prototype.component2=function(){return this.messageId},aO.prototype.component3=function(){return this.enabled},aO.prototype.copy_90jq3i$=function(t,e,n){return new aO(void 0===t?this.flagVal:t,void 0===e?this.messageId:e,void 0===n?this.enabled:n)},aO.prototype.toString=function(){return"BitmaskFlag(flagVal="+e.toString(this.flagVal)+", messageId="+e.toString(this.messageId)+", enabled="+e.toString(this.enabled)+")"},aO.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*t+e.hashCode(this.flagVal)|0)+e.hashCode(this.messageId)|0)+e.hashCode(this.enabled)|0},aO.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.flagVal,t.flagVal)&&e.equals(this.messageId,t.messageId)&&e.equals(this.enabled,t.enabled)},mO.prototype.toBitmaskFlag_s8cxhz$=function(t){return new aO(this.flagVal,this.messageId,OA(t,this.flagVal))},mO.$metadata$={kind:v,simpleName:"BitmaskMessageId",interfaces:[]},mO.prototype.component1=function(){return this.flagVal},mO.prototype.component2=function(){return this.messageId},mO.prototype.copy_yhmem3$=function(t,e){return new mO(void 0===t?this.flagVal:t,void 0===e?this.messageId:e)},mO.prototype.toString=function(){return"BitmaskMessageId(flagVal="+e.toString(this.flagVal)+", messageId="+e.toString(this.messageId)+")"},mO.prototype.hashCode=function(){var t=0;return t=31*(t=31*t+e.hashCode(this.flagVal)|0)+e.hashCode(this.messageId)|0},mO.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.flagVal,t.flagVal)&&e.equals(this.messageId,t.messageId)},gO.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var $O=null;function EO(){return null===$O&&new gO,$O}function yO(t,e){return t.toOffset_q6c6ai$(new Ir(Pq(e,t.unixMillisLong)))}function bO(t,e){var n=yO(t,e),i=n.hours,o=Yn.Companion.fromHours_14dthe$(i),r=n.minutes,s=o.plus_fv8bff$(Yn.Companion.fromMinutes_14dthe$(r)),a=n.seconds,c=s.plus_fv8bff$(Yn.Companion.fromSeconds_14dthe$(a)),l=n.milliseconds;return n.minus_fv8bff$(c.plus_fv8bff$(Yn.Companion.fromMilliseconds_14dthe$(l))).utc}function SO(t){var e=D.Companion.now(),n=e.yearInt-t.yearInt|0;return(t.month0e.dayOfYear)&&(n=n-1|0),n}function vO(t,e,n){void 0===n&&(n="en"),this.aType_8be2vx$=e,this.lang_8be2vx$=n,this.id_qb20q0$_0=null,this.desc_5xvcge$_0=null,this.name_5sg2vc$_0=null,this.launchUrl_m14eyz$_0=null,this.extensions_0=null,this.activityJSON=new Dr(Je(E("id",Ur(t)))),this.id=t}function CO(){LO(),this.launchActivity_pb401q$_0=null,this.isRegistrationResumable_0=!1,this.activities_0=null}function NO(){TO=this,this.PARSE_POPULATE_ACTIVITIES=1}fO.$metadata$={kind:ge,simpleName:"ClazzLogCreatorManager",interfaces:[]},Object.defineProperty(vO.prototype,"id",{configurable:!0,get:function(){return this.id_qb20q0$_0},set:function(t){this.id_qb20q0$_0=t}}),Object.defineProperty(vO.prototype,"desc",{configurable:!0,get:function(){return this.desc_5xvcge$_0},set:function(t){this.desc_5xvcge$_0=t}}),Object.defineProperty(vO.prototype,"name",{configurable:!0,get:function(){return this.name_5sg2vc$_0},set:function(t){this.name_5sg2vc$_0=t}}),Object.defineProperty(vO.prototype,"launchUrl",{configurable:!0,get:function(){return this.launchUrl_m14eyz$_0},set:function(t){this.launchUrl_m14eyz$_0=t}}),vO.prototype.setExtension_puj7f4$=function(t,e){var n=this.extensions_0;(null==n||n.isEmpty())&&(this.extensions_0=mt()),Se(this.extensions_0).put_xwzc9p$(t,e)},vO.prototype.getExtension_61zpoe$=function(t){return null==this.extensions_0?null:Se(this.extensions_0).containsKey_11rb$(t)?He(Se(this.extensions_0).get_11rb$(t)):null},vO.$metadata$={kind:v,simpleName:"Activity",interfaces:[]},Object.defineProperty(CO.prototype,"launchActivity",{configurable:!0,get:function(){return this.launchActivity_pb401q$_0},set:function(t){this.launchActivity_pb401q$_0=t}}),NO.prototype.loadFromXML_h3yi26$=function(t,e){var n;void 0===e&&(e=0);var i,o,r,s=new CO,a=null,c=t.getEventType(),l=(e&this.PARSE_POPULATE_ACTIVITIES)===this.PARSE_POPULATE_ACTIVITIES,u=!1;do{if(2===c&&null!=t.getName())i=Se(t.getName()),u?x(i,"extension")&&(o=Se(t.getAttributeValue_f5e6j7$(null,"key")),r=4===t.next()&&null!=(n=t.getText())?n:"",Se(a).setExtension_puj7f4$(o,r)):x(i,"activity")?a=new vO(Se(t.getAttributeValue_f5e6j7$(null,"id")),Se(t.getAttributeValue_f5e6j7$(null,"type"))):x(i,"launch")&&4===t.next()?Se(a).launchUrl=t.getText():x(i,"name")&&4===t.next()?Se(a).name=t.getText():x(i,"description")&&4===t.next()?Se(a).desc=t.getText():x(t.getName(),"extensions")&&(u=!0);else if(3===c&&null!=t.getName())if(x(t.getName(),"activity")){if(null!=Se(a).launchUrl&&(s.launchActivity=a,!l))break}else x(t.getName(),"extensions")&&(u=!1);c=t.next()}while(1!==c);return s},NO.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var TO=null;function LO(){return null===TO&&new NO,TO}function zO(t,e){kO(),void 0===t&&(t="Actor"),void 0===e&&(e=new wO),this.objectType=t,this.account=e}function wO(t,e){AO(),void 0===t&&(t=""),void 0===e&&(e=""),this.homePage=t,this.name=e}function OO(){RO=this}CO.$metadata$={kind:v,simpleName:"TinCanXML",interfaces:[]},OO.prototype.serializer=function(){return UO()},OO.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var RO=null;function AO(){return null===RO&&new OO,RO}function xO(){this.descriptor_5q52r0$_0=new X("com.ustadmobile.core.tincan.UmAccountActor.Account",this,2),this.descriptor.addElement_ivxn3r$("homePage",!0),this.descriptor.addElement_ivxn3r$("name",!0),IO=this}Object.defineProperty(xO.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_5q52r0$_0}}),xO.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);x(e.homePage,"")&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeStringElement_iij8qq$(this.descriptor,0,e.homePage),x(e.name,"")&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeStringElement_iij8qq$(this.descriptor,1,e.name),n.endStructure_24f42q$(this.descriptor)},xO.prototype.deserialize_bq71mq$=function(t){var e,n,i,o=0,r=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=r.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=r.decodeStringElement_szpzho$(this.descriptor,0),o|=1;break;case 1:i=r.decodeStringElement_szpzho$(this.descriptor,1),o|=2;break;case-1:break t;default:throw new Y(e)}return r.endStructure_24f42q$(this.descriptor),DO(o,n,i,null)},xO.prototype.childSerializers=function(){return[Q.StringSerializer,Q.StringSerializer]},xO.$metadata$={kind:S,simpleName:"$serializer",interfaces:[Z]};var IO=null;function UO(){return null===IO&&new xO,IO}function DO(t,e,n,i){var o=i||Object.create(wO.prototype);return o.homePage=0==(1&t)?"":e,o.name=0==(2&t)?"":n,o}function PO(){MO=this}wO.$metadata$={kind:v,simpleName:"Account",interfaces:[]},PO.prototype.serializer=function(){return qO()},PO.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var MO=null;function kO(){return null===MO&&new PO,MO}function jO(){this.descriptor_w58h71$_0=new X("com.ustadmobile.core.tincan.UmAccountActor",this,2),this.descriptor.addElement_ivxn3r$("objectType",!0),this.descriptor.addElement_ivxn3r$("account",!0),GO=this}Object.defineProperty(jO.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_w58h71$_0}}),jO.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);x(e.objectType,"Actor")&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeStringElement_iij8qq$(this.descriptor,0,e.objectType),x(e.account,new wO)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeSerializableElement_r4qlx7$(this.descriptor,1,UO(),e.account),n.endStructure_24f42q$(this.descriptor)},jO.prototype.deserialize_bq71mq$=function(t){var e,n,i,o=0,r=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=r.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=r.decodeStringElement_szpzho$(this.descriptor,0),o|=1;break;case 1:i=r.decodeSerializableElement_12e8id$(this.descriptor,1,UO(),i),o|=2;break;case-1:break t;default:throw new Y(e)}return r.endStructure_24f42q$(this.descriptor),FO(o,n,i,null)},jO.prototype.childSerializers=function(){return[Q.StringSerializer,UO()]},jO.$metadata$={kind:S,simpleName:"$serializer",interfaces:[Z]};var GO=null;function qO(){return null===GO&&new jO,GO}function FO(t,e,n,i){var o=i||Object.create(zO.prototype);return o.objectType=0==(1&t)?"Actor":e,o.account=0==(2&t)?new wO:n,o}function BO(t,e,n){VO(),void 0===t&&(t="Group"),void 0===e&&(e=new wO),void 0===n&&(n=fe()),this.objectType=t,this.account=e,this.members=n}function WO(){HO=this}zO.$metadata$={kind:v,simpleName:"UmAccountActor",interfaces:[]},WO.prototype.serializer=function(){return YO()},WO.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var HO=null;function VO(){return null===HO&&new WO,HO}function KO(){this.descriptor_chtfgo$_0=new X("com.ustadmobile.core.tincan.UmAccountGroupActor",this,3),this.descriptor.addElement_ivxn3r$("objectType",!0),this.descriptor.addElement_ivxn3r$("account",!0),this.descriptor.addElement_ivxn3r$("members",!0),JO=this}Object.defineProperty(KO.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_chtfgo$_0}}),KO.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);x(e.objectType,"Group")&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,0)||n.encodeStringElement_iij8qq$(this.descriptor,0,e.objectType),x(e.account,new wO)&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,1)||n.encodeSerializableElement_r4qlx7$(this.descriptor,1,UO(),e.account),x(e.members,fe())&&!n.shouldEncodeElementDefault_szpzho$(this.descriptor,2)||n.encodeSerializableElement_r4qlx7$(this.descriptor,2,new Ge(qO()),e.members),n.endStructure_24f42q$(this.descriptor)},KO.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r=0,s=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=s.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=s.decodeStringElement_szpzho$(this.descriptor,0),r|=1;break;case 1:i=s.decodeSerializableElement_12e8id$(this.descriptor,1,UO(),i),r|=2;break;case 2:o=s.decodeSerializableElement_12e8id$(this.descriptor,2,new Ge(qO()),o),r|=4;break;case-1:break t;default:throw new Y(e)}return s.endStructure_24f42q$(this.descriptor),QO(r,n,i,o,null)},KO.prototype.childSerializers=function(){return[Q.StringSerializer,UO(),new Ge(qO())]},KO.$metadata$={kind:S,simpleName:"$serializer",interfaces:[Z]};var XO,JO=null;function YO(){return null===JO&&new KO,JO}function QO(t,e,n,i,o){var r=o||Object.create(BO.prototype);return r.objectType=0==(1&t)?"Group":e,r.account=0==(2&t)?new wO:n,r.members=0==(4&t)?fe():i,r}function ZO(t,n){this.di_m535g$_0=t,this.endpoint=n;var i,o,r,s,a=this.di,c=this.endpoint;i=a.diTrigger,this.umAppDatabase_ph35vb$_0=H(G(a,q.Companion.invoke_np530x$(e.isType(o=F(M(P(Zs),[],!1)),B)?o:W(),c),i),e.isType(r=F(M(P(k),[],!1)),B)?r:W(),1).provideDelegate_tpuvb9$(this,tR),this.systemImpl_4e7p4m$_0=H(this.di,e.isType(s=F(M(P(aq),[],!1)),B)?s:W(),null).provideDelegate_tpuvb9$(this,eR)}BO.$metadata$={kind:v,simpleName:"UmAccountGroupActor",interfaces:[]},Object.defineProperty(ZO.prototype,"di",{get:function(){return this.di_m535g$_0}});var tR=new N("umAppDatabase");Object.defineProperty(ZO.prototype,"umAppDatabase_0",{configurable:!0,get:function(){return this.umAppDatabase_ph35vb$_0.value}});var eR=new N("systemImpl");function nR(t,e,n,i,o,r,s,a,c){L.call(this,c),this.exceptionState_0=1,this.$this=t,this.local$containerToOpen=void 0,this.local$context=e,this.local$contentEntryUid=n,this.local$downloadRequired=i,this.local$goToContentEntryDetailViewIfNotDownloaded=o,this.local$noIframe=r,this.local$learnerGroupUid=s,this.local$clazzUid=a}function iR(t,e,n,i,o,r,s,a){yR.call(this,t,e,n,i,O,o,r,s,a,rR),this.atomicLong_kaczvn$_0=kr(O)}function oR(t,e,n,i,o){L.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$dao=e,this.local$deactivateFn=n,this.local$fkSetter=i}function rR(){return Fn}function sR(t,e){this.description=t,this.optionId=e}function aR(t,e){sR.call(this,t,e)}function cR(t){hR(),this.longValue=t}function lR(){uR=this}Object.defineProperty(ZO.prototype,"systemImpl_0",{configurable:!0,get:function(){return this.systemImpl_4e7p4m$_0.value}}),nR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},nR.prototype=Object.create(L.prototype),nR.prototype.constructor=nR,nR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(void 0===this.local$learnerGroupUid&&(this.local$learnerGroupUid=O),void 0===this.local$clazzUid&&(this.local$clazzUid=O),lt.Napier.d_82mfvz$("OPENING ENTRY "+this.local$contentEntryUid.toString()),this.state_0=2,this.result_0=this.$this.umAppDatabase_0.containerDao.getMostRecentAvailableContainerUidAndMimeType_2gd3um$(this.local$contentEntryUid,this.local$downloadRequired,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:this.local$containerToOpen=this.result_0;var n=x(this.local$learnerGroupUid,O)?new Ww("",!1):new Ww("",!0);if(null!=this.local$containerToOpen){var i,o=XO,r=this.local$containerToOpen.mimeType,s=(e.isType(i=o,Ie)?i:W()).get_11rb$(r);if(null!=s){var a=y([E(zG().ARG_NO_IFRAMES,this.local$noIframe.toString()),E(zG().ARG_CONTENT_ENTRY_UID,this.local$contentEntryUid.toString()),E(zG().ARG_CONTAINER_UID,this.local$containerToOpen.containerUid.toString()),E(zG().ARG_CLAZZUID,this.local$clazzUid.toString()),E(zG().ARG_LEARNER_GROUP_UID,this.local$learnerGroupUid.toString())]);this.$this.systemImpl_0.go_henhri$(s,a,this.local$context,n),this.state_0=4;continue}if(this.state_0=3,this.result_0=this.$this.umAppDatabase_0.containerEntryDao.findByContainerAsync_s8cxhz$(this.local$containerToOpen.containerUid,this),this.result_0===T)return T;continue}if(!this.local$goToContentEntryDetailViewIfNotDownloaded)throw pe("No file found. Container null");this.$this.systemImpl_0.go_henhri$(AU().VIEW_NAME,y([E(zG().ARG_ENTITY_UID,this.local$contentEntryUid.toString()),E(zG().ARG_CLAZZUID,this.local$clazzUid.toString())]),this.local$context,n),this.state_0=5;continue;case 3:var c=this.result_0;if(c.isEmpty())throw pe("No file found in the container.".toString());var l=null!=(t=c.get_za3lpa$(0).containerEntryFile)?t.cefPath:null;if(null==l)throw pe("No file found in container");return void this.$this.systemImpl_0.openFileInDefaultViewer_t9zcln$(this.local$context,Qe.Companion.parse_61zpoe$(l),this.local$containerToOpen.mimeType);case 4:this.state_0=5;continue;case 5:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ZO.prototype.openEntry_6luryd$=function(t,e,n,i,o,r,s,a,c){var l=new nR(this,t,e,n,i,o,r,s,a);return c?l:l.doResume(null)},ZO.$metadata$={kind:v,simpleName:"ContentEntryOpener",interfaces:[j]},iR.prototype.onLoadFromJsonSavedState_alv73c$=function(t){var n,i,o,r,s,a,c,l;if(yR.prototype.onLoadFromJsonSavedState_alv73c$.call(this,t),null!=(i=null!=(n=null!=t?t.get_11rb$(this.serializationKey+CR().SUFFIX_PKS_TO_INSERT):null)&&n.length>0?n:null)){var u,h=this.pksToInsert,d=Pr(i,e.charArrayOf(44)),p=st(rt(d,10));for(u=d.iterator();u.hasNext();){var _=u.next();p.add_11rb$(de(_))}h.addAll_brywnq$(p)}if(null!=(r=null!=(o=null!=t?t.get_11rb$(this.serializationKey+CR().SUFFIX_PKS_TO_DEACTIVATE):null)&&o.length>0?o:null)){var m,f=this.pksToDeactivate,g=Pr(r,e.charArrayOf(44)),$=st(rt(g,10));for(m=g.iterator();m.hasNext();){var E=m.next();$.add_11rb$(de(E))}f.addAll_brywnq$($)}if(null!=(s=this.liveList.getValue())){var y,b=st(rt(s,10));for(y=s.iterator();y.hasNext();){var S=y.next();b.add_11rb$(this.pkGetter(S))}l=b}else l=null;var v=(null!=(c=null!=(a=l)?Mr(a):null)?c:O).subtract(e.Long.fromInt(1));this.atomicLong_kaczvn$_0.kotlinx$atomicfu$value=v},Object.defineProperty(iR.prototype,"fakePkGenerator",{configurable:!0,get:function(){return t=this,function(){return t.atomicLong_kaczvn$_0.atomicfu$decrementAndGet$long()};var t}}),oR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},oR.prototype=Object.create(L.prototype),oR.prototype.constructor=oR,oR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=yR.prototype.commitToDatabase_kc7sxt$.call(this.$this,this.local$dao,this.local$fkSetter,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=this.local$deactivateFn(this.$this.primaryKeysToDeactivate,this),this.result_0===T)return T;continue;case 3:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},iR.prototype.commitToDatabase_e9yqve$=function(t,e,n,i,o){var r=new oR(this,t,e,n,i);return o?r:r.doResume(null)},iR.prototype.doesNewEntityRequireFakePk_11rc$=function(t){return x(t,O)},iR.prototype.onSaveState_gtra9a$=function(t){yR.prototype.onSaveState_gtra9a$.call(this,t);var e=this.serializationKey+CR().SUFFIX_PKS_TO_INSERT,n=fn(this.pksToInsert,",");t.put_xwzc9p$(e,n);var i=this.serializationKey+CR().SUFFIX_PKS_TO_DEACTIVATE,o=fn(this.pksToDeactivate,",");t.put_xwzc9p$(i,o)},iR.$metadata$={kind:v,simpleName:"DefaultOneToManyJoinEditHelper",interfaces:[yR]},sR.prototype.toString=function(){return this.description},sR.prototype.equals=function(t){return this===t||!!e.isType(t,sR)&&!!x(this.description,t.description)&&this.optionId===t.optionId},sR.prototype.hashCode=function(){var t=qe(this.description);return t=(31*t|0)+this.optionId|0},sR.$metadata$={kind:v,simpleName:"IdOption",interfaces:[]},aR.$metadata$={kind:v,simpleName:"ListFilterIdOption",interfaces:[sR]},lR.prototype.serializer=function(){return _R()},lR.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var uR=null;function hR(){return null===uR&&new lR,uR}function dR(){this.descriptor_dwx6lb$_0=new X("com.ustadmobile.core.util.LongWrapper",this,1),this.descriptor.addElement_ivxn3r$("longValue",!1),pR=this}Object.defineProperty(dR.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_dwx6lb$_0}}),dR.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);n.encodeLongElement_j0o2mv$(this.descriptor,0,e.longValue),n.endStructure_24f42q$(this.descriptor)},dR.prototype.deserialize_bq71mq$=function(t){var e,n,i=0,o=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=o.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=o.decodeLongElement_szpzho$(this.descriptor,0),i|=1;break;case-1:break t;default:throw new Y(e)}return o.endStructure_24f42q$(this.descriptor),mR(i,n,null)},dR.prototype.childSerializers=function(){return[Q.LongSerializer]},dR.$metadata$={kind:S,simpleName:"$serializer",interfaces:[Z]};var pR=null;function _R(){return null===pR&&new dR,pR}function mR(t,e,n){var i=n||Object.create(cR.prototype);if(0==(1&t))throw dt("longValue");return i.longValue=e,i}function fR(t,n,i,o){var r;void 0===i&&(i=t),sR.call(this,"",i),this.messageId=t,this.code=i,this.messageStr=Et(o).directDI.Instance_ohrpre$(e.isType(r=F(M(P(aq),[],!1)),B)?r:W(),null).getString(this.messageId,n)}function gR(t,e){this.navigateForResultOptions_6sub83$_0=t,this.joinEditHelper_h13zmu$_0=e}function $R(t,e,n,i,o,r){void 0===n&&(n=t),void 0===r&&(r=null),fR.call(this,t,e,n,o),this.obj=i,this.displayString_5pal2y$_0=r}function ER(){}function yR(t,e,n,i,o,r,s,a,c,l){CR(),void 0===n&&(n=null),void 0===i&&(i=null),this.pkGetter=t,this.serializationKey=e,this.serializationStrategy=n,this.deserializationStrategy=i,this.newPk=o,this.di=s,this.entityClass=a,this.pkSetter=c,this.fakePkGenerator_othtz4$_0=l,this.liveList=Sn(fe()),this.pksToInsert=ot(),this.pksToDeactivate=ot(),r.addJsonLoadListener_ypapg8$(this)}function bR(t,e,n,i){L.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$dao=e,this.local$fkSetter=n}function SR(){vR=this,this.SUFFIX_PKS_TO_INSERT="_pksToInsert",this.SUFFIX_PKS_TO_DEACTIVATE="_pksToDeactivate"}cR.$metadata$={kind:v,simpleName:"LongWrapper",interfaces:[]},cR.prototype.component1=function(){return this.longValue},cR.prototype.copy_s8cxhz$=function(t){return new cR(void 0===t?this.longValue:t)},cR.prototype.toString=function(){return"LongWrapper(longValue="+e.toString(this.longValue)+")"},cR.prototype.hashCode=function(){var t=0;return t=31*t+e.hashCode(this.longValue)|0},cR.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.longValue,t.longValue)},fR.prototype.toString=function(){return this.messageStr},fR.$metadata$={kind:v,simpleName:"MessageIdOption",interfaces:[sR]},gR.prototype.onClickNew=function(){this.navigateForResultOptions_6sub83$_0.fromPresenter.navigateForResult_r13zgt$(this.navigateForResultOptions_6sub83$_0)},gR.prototype.onClickEdit_11rb$=function(t){var e=this.navigateForResultOptions_6sub83$_0.copy_xs9go5$(t);e.fromPresenter.navigateForResult_r13zgt$(e)},gR.prototype.onClickDelete_11rb$=function(t){this.joinEditHelper_h13zmu$_0.onDeactivateEntity_trkh7z$(t)},gR.$metadata$={kind:v,simpleName:"NavigateForResultOneToManyJoinEditListener",interfaces:[wR]},$R.prototype.toString=function(){var t;return null!=(t=this.displayString_5pal2y$_0)?t:fR.prototype.toString.call(this)},$R.$metadata$={kind:v,simpleName:"ObjectMessageIdOption",interfaces:[fR]},ER.$metadata$={kind:ge,simpleName:"OnListFilterOptionSelectedListener",interfaces:[]},Object.defineProperty(yR.prototype,"fakePkGenerator",{get:function(){return this.fakePkGenerator_othtz4$_0}}),yR.prototype.onEditResult_trkh7z$=function(t){var e,n,i=this.pkGetter(t);if(null!=(e=this.liveList.getValue())){var o,r=e;t:do{var s,a=0;for(s=r.iterator();s.hasNext();){var c=s.next();if(x(this.pkGetter(c),i)){o=a;break t}a=a+1|0}o=-1}while(0);var l=o;if(-1===l){this.doesNewEntityRequireFakePk_11rc$(this.pkGetter(t))&&this.pkSetter(t,this.fakePkGenerator());var u=this.pksToInsert,h=this.pkGetter(t);if(u.add_11rb$(h),null==(n=this.liveList.getValue()))return;var d=si(n,t);this.liveList.setValue_11rb$(d)}else{var p=En(r);p.set_wxm5ur$(l,t),this.liveList.setValue_11rb$(p)}}},yR.prototype.onDeactivateEntity_trkh7z$=function(t){var e,n;if(null!=(n=null!=(e=this.liveList.getValue())?En(e):null)){var i,o=n,r=this.pkGetter(t),s=this.liveList,a=ot();for(i=o.iterator();i.hasNext();){var c=i.next();x(this.pkGetter(c),r)||a.add_11rb$(c)}s.postValue_11rb$(a),this.pksToDeactivate.add_11rb$(r)}},Object.defineProperty(yR.prototype,"entitiesToInsert",{configurable:!0,get:function(){var t;if(null==(t=this.liveList.getValue()))return fe();var e,n=t,i=ot();for(e=n.iterator();e.hasNext();){var o=e.next();this.pksToInsert.contains_11rb$(this.pkGetter(o))&&i.add_11rb$(o)}return i}}),Object.defineProperty(yR.prototype,"entitiesToUpdate",{configurable:!0,get:function(){var t,e,n;if(null!=(t=this.liveList.getValue())){var i,o=ot();for(i=t.iterator();i.hasNext();){var r=i.next();this.pksToInsert.contains_11rb$(this.pkGetter(r))||o.add_11rb$(r)}n=o}else n=null;return null!=(e=n)?e:fe()}}),Object.defineProperty(yR.prototype,"primaryKeysToDeactivate",{configurable:!0,get:function(){return qt(this.pksToDeactivate)}}),yR.prototype.onSaveState_gtra9a$=function(t){var n;if(null!=(n=this.liveList.getValue())){var i=n;if(null!=this.serializationStrategy){var o,r=this.serializationKey,s=this.di,a=this.serializationStrategy,c=Et(s).directDI.Instance_ohrpre$(e.isType(o=F(M(P(Pt),[],!1)),B)?o:W(),null).encodeToString_tf03ej$(a,i);t.put_xwzc9p$(r,c)}}},yR.prototype.onLoadFromJsonSavedState_alv73c$=function(t){var e,n;if(null!=(e=null!=t?t.get_11rb$(this.serializationKey):null)){var i=e;if(null!=(n=this.deserializationStrategy)){var o=n,r=Mq(this.di,o,this.entityClass,i);this.liveList.setValue_11rb$(r)}}},bR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},bR.prototype=Object.create(L.prototype),bR.prototype.constructor=bR,bR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e=this.$this.entitiesToInsert;for(t=e.iterator();t.hasNext();){var n=t.next();this.local$fkSetter(n),this.$this.pkSetter(n,this.$this.newPk)}if(this.state_0=2,this.result_0=this.local$dao.insertListAsync_4ezy5m$(e,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var i,o=this.$this.entitiesToUpdate;for(i=o.iterator();i.hasNext();){var r=i.next();this.local$fkSetter(r)}if(this.state_0=3,this.result_0=this.local$dao.updateListAsync_4ezy5m$(o,this),this.result_0===T)return T;continue;case 3:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},yR.prototype.commitToDatabase_kc7sxt$=function(t,e,n,i){var o=new bR(this,t,e,n);return i?o:o.doResume(null)},yR.prototype.doesNewEntityRequireFakePk_11rc$=function(t){return!0},SR.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var vR=null;function CR(){return null===vR&&new SR,vR}function NR(t,e,n,i,o,r,s,a,c){var l;zR(),void 0===a&&(a=e+zR().SUFFIX_RETKEY_DEFAULT),iR.call(this,t,e,n,i,o,o.di,s,c),this.editPresenter_ptf7gi$_0=o,this.savedStateHandle=r,this.returnSavedStateKey=a,this.editPresenter_ptf7gi$_0.observeSavedStateResult_u0dr5v$(this.returnSavedStateKey,i,s,new bt((l=this,function(t){var e;if(null!=(e=Un(t))){var n=e;return l.onEditResult_trkh7z$(n),l.savedStateHandle.set_umlfku$(l.returnSavedStateKey,null),nt}})))}function TR(){LR=this,this.SUFFIX_RETKEY_DEFAULT="_ret"}yR.$metadata$={kind:v,simpleName:"OneToManyJoinEditHelper",interfaces:[gz]},NR.prototype.createNavigateForResultOptions_g113xi$=function(t,e,n){return void 0===n&&(n=mt()),new Iw(this.editPresenter_ptf7gi$_0,null,t,this.entityClass,e,this.returnSavedStateKey,!0,n)},NR.prototype.createNavigateForResultListener_g113xi$=function(t,e,n){return void 0===n&&(n=mt()),new gR(this.createNavigateForResultOptions_g113xi$(t,e,n),this)},TR.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var LR=null;function zR(){return null===LR&&new TR,LR}function wR(){}function OR(t,e,n,i){void 0===n&&(n=ln),Qt(this),this.db_0=t,this.interval_0=n,this.getter_0=i,this.invalidationObserver_0=new IR(this,Oe(e)),this.lastCheckTime_0=O,this.refreshCheckJob_0=ee(null)}function RR(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$RateLimitedLiveData=t}function AR(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$this$RateLimitedLiveData=t,this.local$closure$timeNow=e}function xR(t,e){L.call(this,e),this.exceptionState_0=1,this.$this=t}function IR(t,e){this.this$RateLimitedLiveData=t,qr.call(this,e)}function UR(t,e,n,i){return Pt.Default.encodeToString_tf03ej$(e,i)}function DR(t,e,n,i){var o;jR(),iR.call(this,GR,"ScopedGrantAndName",jt(or.Companion.serializer()),jt(or.Companion.serializer()),e,e.di,P(or),qR),this.repo=t,this.editPresenter=e,this.savedStateHandle=n,this.entityTableId=i,this.editPresenter.observeSavedStateResult_u0dr5v$(jR().SAVEDSTATE_KEY_SCOPEDGRANT_RESULTS,jt(rr.Companion.serializer()),P(rr),new bt((o=this,function(t){var e;if(null!=(e=Un(t))){var n,i,r=e;return it(tt.GlobalScope,It(),void 0,(n=o,i=r,function(t,e,o){var r=new FR(n,i,t,this,e);return o?r:r.doResume(null)})),nt}})))}function PR(t,e,n,i,o){L.call(this,o),this.exceptionState_0=1,this.$this=t,this.local$repo=e,this.local$entityUid=n,this.local$flagToGroupMap=i}function MR(){kR=this,this.SAVEDSTATE_KEY_SCOPEDGRANT_RESULTS="ScopedGrant_result"}NR.$metadata$={kind:v,simpleName:"OneToManyJoinEditHelperMp",interfaces:[iR]},wR.$metadata$={kind:ge,simpleName:"OneToManyJoinEditListener",interfaces:[]},RR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},RR.prototype=Object.create(L.prototype),RR.prototype.constructor=RR,RR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$RateLimitedLiveData.refresh_0(this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},AR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},AR.prototype=Object.create(L.prototype),AR.prototype.constructor=AR,AR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=un(this.local$this$RateLimitedLiveData.lastCheckTime_0.add(this.local$this$RateLimitedLiveData.interval_0).subtract(this.local$closure$timeNow),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=this.local$this$RateLimitedLiveData.refresh_0(this),this.result_0===T)return T;continue;case 3:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},OR.prototype.invalidate_0=function(){var t,e=et();e.subtract(this.lastCheckTime_0).compareTo_11rb$(this.interval_0)>=0?it(tt.GlobalScope,void 0,void 0,(t=this,function(e,n,i){var o=new RR(t,e,this,n);return i?o:o.doResume(null)})):null==this.refreshCheckJob_0.kotlinx$atomicfu$value&&(this.refreshCheckJob_0.kotlinx$atomicfu$value=it(tt.GlobalScope,void 0,void 0,function(t,e){return function(n,i,o){var r=new AR(t,e,n,this,i);return o?r:r.doResume(null)}}(this,e)))},xR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},xR.prototype=Object.create(L.prototype),xR.prototype.constructor=xR,xR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.$this.refreshCheckJob_0.kotlinx$atomicfu$value=null,this.$this.lastCheckTime_0=et(),this.state_0=2,this.result_0=this.$this.getter_0(this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return void this.$this.postValue_11rb$(this.result_0);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},OR.prototype.refresh_0=function(t,e){var n=new xR(this,t);return e?n:n.doResume(null)},OR.prototype.onActive=function(){Gr.prototype.onActive.call(this),this.db_0.getInvalidationTracker().addObserver_iaeuyr$(this.invalidationObserver_0),this.invalidate_0()},OR.prototype.onInactive=function(){Gr.prototype.onInactive.call(this),this.db_0.getInvalidationTracker().removeObserver_iaeuyr$(this.invalidationObserver_0)},IR.prototype.onInvalidated_ywdfdh$=function(t){this.this$RateLimitedLiveData.invalidate_0()},IR.$metadata$={kind:v,interfaces:[qr]},OR.$metadata$={kind:v,simpleName:"RateLimitedLiveData",interfaces:[Gr]},DR.prototype.get_defaultNameByFlag_ar9drr$=function(t){return NA(t.sgFlags,8)?"Teachers":NA(t.sgFlags,16)?"Students":null},PR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},PR.prototype=Object.create(L.prototype),PR.prototype.constructor=PR,PR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:void 0===this.local$flagToGroupMap&&(this.local$flagToGroupMap=ji());var t,e=this.$this.entitiesToInsert;for(t=e.iterator();t.hasNext();){var n,i,o,r,s,a,c,l,u,h,d=t.next();if(null!=(n=d.scopedGrant)&&x(n.sgGroupUid,O)){var p,_=this.local$flagToGroupMap.entries;t:do{var m;for(m=_.iterator();m.hasNext();){var f=m.next();if(NA(n.sgFlags,f.key)){p=f;break t}}p=null}while(0);n.sgGroupUid=null!=(h=null!=(u=p)?u.value:null)?h:O}var g=null!=(r=this.local$flagToGroupMap.get_11rb$(null!=(o=null!=(i=d.scopedGrant)?i.sgFlags:null)?o:0))?r:Fn;null!=(a=null!=(s=d.scopedGrant)&&x(s.sgGroupUid,O)&&!x(g,Fn)?s:null)&&(a.sgGroupUid=g),null!=(c=d.scopedGrant)&&(c.sgUid=O),null!=(l=d.scopedGrant)&&(l.sgTableId=this.$this.entityTableId,l.sgEntityUid=this.local$entityUid)}var $,E=this.local$repo.scopedGrantDao,y=ot();for($=e.iterator();$.hasNext();){var b;null!=(b=$.next().scopedGrant)&&y.add_11rb$(b)}if(this.state_0=2,this.result_0=E.insertListAsync_djn83v$(y,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var S,v=this.local$repo.scopedGrantDao,C=this.$this.entitiesToUpdate,N=ot();for(S=C.iterator();S.hasNext();){var L;null!=(L=S.next().scopedGrant)&&N.add_11rb$(L)}if(this.state_0=3,this.result_0=v.updateListAsync_djn83v$(N,this),this.result_0===T)return T;continue;case 3:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},DR.prototype.commitToDatabase_pqsauo$=function(t,e,n,i,o){var r=new PR(this,t,e,n,i);return o?r:r.doResume(null)},DR.prototype.onClickNew=function(){this.editPresenter.saveStateToNavController();var t=jn([E(Ok().ARG_PERMISSION_LIST,this.entityTableId.toString()),E(zG().ARG_GO_TO_COMPLETE,Ok().VIEW_NAME),E(zG().ARG_LISTMODE,cG().toString())]);this.editPresenter.navigateForResult_r13zgt$(new Iw(this.editPresenter,null,EM().VIEW_NAME,P(rr),rr.Companion.serializer(),jR().SAVEDSTATE_KEY_SCOPEDGRANT_RESULTS,void 0,t))},DR.prototype.onClickEdit_11rb$=function(t){var e=jn([E(Ok().ARG_PERMISSION_LIST,this.entityTableId.toString())]);this.editPresenter.navigateForResult_r13zgt$(new Iw(this.editPresenter,t.scopedGrant,Ok().VIEW_NAME,P(rr),rr.Companion.serializer(),jR().SAVEDSTATE_KEY_SCOPEDGRANT_RESULTS,void 0,e))},DR.prototype.onClickDelete_11rb$=function(t){this.onDeactivateEntity_trkh7z$(t)},MR.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var kR=null;function jR(){return null===kR&&new MR,kR}function GR(t){var e,n;return null!=(n=null!=(e=t.scopedGrant)?e.sgUid:null)?n:O}function qR(t,e){var n;return null!=(n=t.scopedGrant)&&(n.sgUid=e),nt}function FR(t,e,n,i,o){L.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$this$ScopedGrantOneToManyHelper=t,this.local$closure$newValue=e}function BR(t,e,n){this.fieldMessageId=t,this.flag=e,this.order=n}function WR(){}function HR(){KR=this,this.FILE_SEP=Fr(47),this.PROTOCOL_FILE="file:///",this.UNIT_GB_0=Yr,this.UNIT_MB_0=Qr,this.UNIT_KB_0=Zr}function VR(t,e){this.typeName=t,this.params=e}FR.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},FR.prototype=Object.create(L.prototype),FR.prototype.constructor=FR,FR.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$this$ScopedGrantOneToManyHelper.repo.personGroupDao.findNameByGroupUid_s8cxhz$(this.local$closure$newValue.sgGroupUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var t,e=this.result_0,n=this.local$this$ScopedGrantOneToManyHelper,i=new or,o=this.local$closure$newValue,r=this.local$this$ScopedGrantOneToManyHelper;return i.scopedGrant=o,i.name=null!=e?e:null!=(t=i.scopedGrant)?r.get_defaultNameByFlag_ar9drr$(t):null,n.onEditResult_trkh7z$(i),this.local$this$ScopedGrantOneToManyHelper.savedStateHandle.set_umlfku$(jR().SAVEDSTATE_KEY_SCOPEDGRANT_RESULTS,null),nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},DR.$metadata$={kind:v,simpleName:"ScopedGrantOneToManyHelper",interfaces:[wR,iR]},BR.$metadata$={kind:v,simpleName:"SortOrderOption",interfaces:[]},BR.prototype.component1=function(){return this.fieldMessageId},BR.prototype.component2=function(){return this.flag},BR.prototype.component3=function(){return this.order},BR.prototype.copy_ydzd23$=function(t,e,n){return new BR(void 0===t?this.fieldMessageId:t,void 0===e?this.flag:e,void 0===n?this.order:n)},BR.prototype.toString=function(){return"SortOrderOption(fieldMessageId="+e.toString(this.fieldMessageId)+", flag="+e.toString(this.flag)+", order="+e.toString(this.order)+")"},BR.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*t+e.hashCode(this.fieldMessageId)|0)+e.hashCode(this.flag)|0)+e.hashCode(this.order)|0},BR.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.fieldMessageId,t.fieldMessageId)&&e.equals(this.flag,t.flag)&&e.equals(this.order,t.order)},WR.$metadata$={kind:ge,simpleName:"TreeOneToManyJoinEditListener",interfaces:[wR]},HR.prototype.joinPaths_vqirvp$=function(t){for(var e=Re(),n=0;n!==t.length;++n){var i=t[n],o=n>0;o&&(o=i.length>0),o&&i.charCodeAt(0)===Br(this.FILE_SEP)&&(i=i.substring(1)),e.append_pdl1vj$(i),n<(t.length-1|0)&&i.charCodeAt(i.length-1|0)!==Br(this.FILE_SEP)&&e.append_s8itvh$(Br(this.FILE_SEP))}return e.toString()},HR.prototype.resolveLink_puj7f4$=function(t,e){var n,i,o=t,r=e.toLowerCase();if(-1!==(i=jr(r,"://"))){var s,a=!0;n=i;for(var c=0;c97&&s<122||s>48&&s<57||43===s||46===s||45===s;if(a)return e}if(A(e,"data:"))return e;if(e.length>2&&47===e.charCodeAt(0)&&47===e.charCodeAt(1)){var l=o,u=Rr(o,58)+1|0;return l.substring(0,u)+e}if(e.length>1&&47===e.charCodeAt(0)){var h=jr(o,"://")+3|0,d=Rr(o,47,h+1|0);return o.substring(0,d)+e}if(-1!==(i=Rr(o,63))){var p=i;o=o.substring(0,p)}if(-1===(i=Ae(o,Br(this.FILE_SEP))))return e;var _=i;o=o.substring(0,_);for(var m=this.splitString_0(o,Br(this.FILE_SEP)),f=this.splitString_0(e,Br(this.FILE_SEP)),g=ot(),$=0;$!==m.length;++$)g.add_11rb$(Se(m[$]));for(var E=0;E!==f.length;++E)x(f[E],".")||(x(f[E],"..")?g.removeAt_za3lpa$(g.size-1|0):g.add_11rb$(Se(f[E])));for(var y=Re(),b=g.size,S=0;S=(s-1|0)))if(n===e||l===(s-1|0)){if(l===(s-1|0)&&34!==n&&a.append_s8itvh$(n),null!=i){var u=i,h=a.toString();o.put_xwzc9p$(u,h)}else{var d=a.toString();o.put_xwzc9p$(d,"")}a=Re(),i=null}else 61===n?(i=a.toString(),a=Re()):a.append_s8itvh$(n);c=n}return o},HR.prototype.parseURLQueryString=function(t){var e=t,n=Rr(e,63);if(-1!==n){var i=n+1|0;e=e.substring(i)}var o,r=this.parseParams_4wanh1$(e,38),s=st(r.size);for(o=r.entries.iterator();o.hasNext();){var a=o.next();s.add_11rb$(E(Wq().decodeUTF8_61zpoe$(a.key),Wq().decodeUTF8_61zpoe$(a.value)))}return De(s)},HR.prototype.mapToQueryString=function(t){var e,n=Re();if(t.isEmpty())return"";for(var i,o=t.keys.iterator(),r=!0;o.hasNext();)r?r=!1:n.append_s8itvh$(38),i=o.next(),n.append_pdl1vj$(Wq().encodeUTF8_61zpoe$(i)).append_s8itvh$(61),n.append_pdl1vj$(Wq().encodeUTF8_61zpoe$("string"==typeof(e=t.get_11rb$(i))?e:W()));return n.toString()},HR.prototype.parseTypeWithParamHeader_61zpoe$=function(t){var n,i,o=Rr(t,59),r=null;if(-1===o){for(var s,a=e.isCharSequence(s=t)?s:W(),c=0,l=a.length-1|0,u=!1;c<=l;){var h=u?l:c,d=Br(Fr(a.charCodeAt(h)))<=32;if(u){if(!d)break;l=l-1|0}else d?c=c+1|0:u=!0}n=e.subSequence(a,c,l+1|0).toString()}else{for(var p,_=t.substring(0,o),m=e.isCharSequence(p=_)?p:W(),f=0,g=m.length-1|0,$=!1;f<=g;){var E=$?g:f,y=Br(Fr(m.charCodeAt(E)))<=32;if($){if(!y)break;g=g-1|0}else y?f=f+1|0:$=!0}n=e.subSequence(m,f,g+1|0).toString()}return i=n,-1!==o&&o<(t.length-1|0)&&(r=this.parseParams_4wanh1$(t.substring(o),59)),new VR(i,r)},HR.prototype.filterFilename_61zpoe$=function(t){var e,n,i=Vr(t.length);e=t.length;for(var o=0;o0?(n=this.UNIT_GB_0,e="GB"):t.compareTo_11rb$(this.UNIT_MB_0)>0?(n=this.UNIT_MB_0,e="MB"):t.compareTo_11rb$(this.UNIT_KB_0)>0?(n=this.UNIT_KB_0,e="kB"):(n=vn,e="bytes");var i=t.toNumber()/n.toNumber();return(i=Kr(100*i)/100).toString()+" "+e},HR.prototype.stripExtensionIfPresent_61zpoe$=function(t){var e=Ae(t,47),n=Ae(t,46);return-1!==n&&n>e?t.substring(0,n):t},HR.prototype.clearTopFromReferrerPath_pukaju$=function(t,e,n){var i,o=Xr(n,"/"+t+"?");if(-1!==o){var r=jr(n,"/",o);i=n.substring(0,r)}else i="/"+t+"?"+this.mapToQueryString(e);return i},HR.prototype.getContentType_61zpoe$=function(t){var e,n=Xr(t,"."),i=t.substring(n).toLowerCase();return null!=(e=y([E(".html",Nt.Text.Html),E(".xml",Nt.Text.Xml),E(".css",Nt.Text.CSS),E(".js",Nt.Text.JavaScript),E(".json",Nt.Application.Json),E(".txt",Nt.Text.Html),E(".xhtml",Nt.Text.Html),E(".jpg",Nt.Image.JPEG),E(".png",Nt.Image.PNG),E(".gif",Nt.Image.GIF),E(".webp",Jr("image","webp")),E(".mp4",Nt.Video.MP4),E(".mpeg",Nt.Video.MPEG),E(".m4v",Jr("video","x-m4v")),E(".webm",Jr("video","webm")),E(".ogv",Jr("video","ogg")),E(".mp3",Nt.Audio.MPEG),E(".ogg",Jr("audio","ogg"))]).get_11rb$(i))?e:Nt.Companion.Any},HR.$metadata$={kind:S,simpleName:"UMFileUtil",interfaces:[]};var KR=null;function XR(){return null===KR&&new HR,KR}function JR(){YR=this,this.ADL_PREFIX_VERB="http://adlnet.gov/expapi/verbs/",this.VERB_PASSED=this.ADL_PREFIX_VERB+"passed",this.VERB_FAILED=this.ADL_PREFIX_VERB+"failed",this.VERB_ANSWERED=this.ADL_PREFIX_VERB+"answered"}JR.prototype.format8601Duration_s8cxhz$=function(t){var n=t.div(e.Long.fromInt(36e5)).toNumber(),i=Ve(mn.floor(n)),o=t.modulo(e.Long.fromInt(36e5)),r=o.div(e.Long.fromInt(6e4)).toNumber(),s=Ve(mn.floor(r)),a=(o=o.modulo(e.Long.fromInt(6e4))).div(e.Long.fromInt(1e3)).toNumber(),c=Ve(mn.floor(a));return"PT"+He(i)+"H"+He(s)+"M"+He(c)+"S"},JR.prototype.parse8601Duration_61zpoe$=function(t){var n,i,o=new ts("PTnnHnnMnnS").tryParse_ivxn3r$(t,!1);return null!=(i=null!=(n=null!=o?o.totalMilliseconds:null)?e.Long.fromNumber(n):null)?i:O},JR.prototype.parse8601DurationOrDefault_67ydmm$=function(t,e){return void 0===e&&(e=O),null!=t?this.parse8601Duration_61zpoe$(t):e},JR.$metadata$={kind:S,simpleName:"UMTinCanUtil",interfaces:[]};var YR=null;function QR(){return null===YR&&new JR,YR}function ZR(t,e,n){var i;oA(),this.endpoint=t,this.viewName=e,this.queryString=n,this.arguments_ow7pmx$_0=ns(es.NONE,(i=this,function(){var t,e=XR().parseParams_4wanh1$(i.queryString,38),n=st(e.size);for(t=e.entries.iterator();t.hasNext();){var o=t.next();n.add_11rb$(E(Wq().decodeUTF8_61zpoe$(o.key),Wq().decodeUTF8_61zpoe$(o.value)))}return De(n)})),this.viewUri_99m8nc$_0=en(function(t){return function(){return 0===t.queryString.length?t.viewName:t.viewName+"?"+t.queryString}}(this))}function tA(){iA=this,this.DEFAULT_DIVIDER="/#/"}Object.defineProperty(ZR.prototype,"arguments",{configurable:!0,get:function(){return this.arguments_ow7pmx$_0.value}}),Object.defineProperty(ZR.prototype,"viewUri",{configurable:!0,get:function(){return this.viewUri_99m8nc$_0.value}}),tA.prototype.parse_puj7f4$=function(t,e){void 0===e&&(e=this.DEFAULT_DIVIDER);var n=jr(t,e);if(-1===n)throw pe("Not a valid UstadUrl: "+t);var i,o,r=n+1|0,s=vt(t.substring(0,r),"umapp/"),a=jr(t,"?",n);if(-1===a||a===(t.length-1|0)){var c=n+e.length|0;i=vt(t.substring(c),"?"),o=""}else{var l=n+e.length|0;i=t.substring(l,a);var u=a+1|0;o=t.substring(u)}return new ZR(s,i,o)},tA.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var eA,nA,iA=null;function oA(){return null===iA&&new tA,iA}function rA(t){Me(this),this.existingClazzEnrolment=t,this.name="AlreadyEnroledInClassException"}function sA(t){Me(this),this.existingMember=t,this.name="AlreadyEnroledInSchoolException"}function aA(t){var e,n=O;for(e=t.iterator();e.hasNext();){var i=e.next(),o=n;n=i.enabled?o.or(i.flagVal):o}return n}function cA(t){return t.clazzLogNumPresent+t.clazzLogNumAbsent+t.clazzLogNumPartial|0}function lA(t){return(t.clazzLogNumPresent+t.clazzLogNumPartial)/cA(t)}function uA(t){return t.clazzLogNumPartial/cA(t)}function hA(t,e){var n,i,o;return void 0===e&&(e="UTC"),null!=(o=null!=(i=null!=t?t.clazzTimeZone:null)?i:null!=(n=null!=t?t.school:null)?n.schoolTimeZone:null)?o:e}function dA(t,e){void 0===e&&(e=0);var n=mn.pow(10,e);return is(t*n)/n}function pA(t,e){return _A(t.contentEntryUid,t.leaf,e)}function _A(t,e,n){var i=e?AU().VIEW_NAME:BU().VIEW_NAME;return AA(Je(E(zG().ARG_ENTITY_UID,t.toString())),n.url,i)}function mA(t,e,n){var i;if(null!=t)i=t;else{var o=new Vn;o.cgsName=e.getString(2937,n),i=o}return i}function fA(t,e,n,i){var o,r,s,a=ML().TERMINOLOGY_ENTRY_MESSAGE_ID,c=Eo(go(a.size));for(s=a.entries.iterator();s.hasNext();){var l=s.next();c.put_xwzc9p$(l.key,n.getString(l.value,i))}var u,h=c,d=rn(null!=(r=null!=(o=null!=t?t.ctTerminology:null)?zA(e,o):null)?r:h);for(u=h.entries.iterator();u.hasNext();){var p,_=u.next(),m=_.key,f=null!=(p=d.get_11rb$(_.key))?p:_.value;d.put_xwzc9p$(m,f)}return d}function gA(t){var e=$A(t.fromMoment),n=$A(t.toMoment);return new Lt(e,n)}function $A(t){var e;if(0===t.typeFlag)return t.fixedTime;if(1===t.relUnit&&0===t.relOffSet)return D.Companion.now().startOfDay.unixMillisLong;var n=D.Companion.now().startOfDay;switch(t.relUnit){case 1:var i=os(t.relOffSet);e=n.minus_fv8bff$(Yn.Companion.fromDays_14dthe$(i));break;case 3:e=n.minus_glepj8$(new xr(os(t.relOffSet)));break;case 2:var o=os(t.relOffSet);e=n.minus_fv8bff$(Yn.Companion.fromWeeks_14dthe$(o));break;case 4:e=n.minus_glepj8$(new xr(12*os(t.relOffSet)|0));break;default:e=n}return e.unixMillisLong}function EA(t){var e="Custom range: from ";return e+=yA(t.fromMoment),e+=" until "+yA(t.toMoment)}function yA(t){var e="";switch(t.typeFlag){case 0:e+=D.Companion.invoke_s8cxhz$(t.fixedTime).format_61zpoe$("dd/MM/yyyy");break;case 1:if(1===t.relUnit&&0===t.relOffSet)e+="now";else switch(e+=os(t.relOffSet).toString(),t.relUnit){case 1:e+=" days ago";break;case 3:e+=" months ago";break;case 2:e+=" weeks ago";break;case 4:e+=" years ago"}}return e}function bA(t,n,i,o,r){var s,a,c;void 0===o&&(o=null);var l,u,h,d=e.isType(s=i,xw)?s:null,p=null!=(c=null!=(a=null!=o?o.di:null)?Et(a):null)?c.directDI.Instance_ohrpre$(e.isType(l=F(M(P(oO),[],!1)),B)?l:W(),null):null,_=new Io;_.errorCode=null!=(u=null!=d?d.errorCode:null)?u:0,_.severity=n,_.message=i.message,_.stackTrace=nn(i),_.osVersion=sq(),_.operatingSys=rq(),_.timestamp=et(),_.presenterUri=null!=(h=null!=p?p.currentBackStackEntry:null)?iO(h):null;var m=_;return t.insertAsync_vn2wbu$(m,r)}function SA(t){return function(e){return e.requestTimeoutMillis=t,nt}}function vA(t,e,n,i){L.call(this,i),this.exceptionState_0=1,this.local$$receiver=t,this.local$endpointUrl=e,this.local$timeout=n}function CA(t,e,n,i,o){var r=new vA(t,e,n,i);return o?r:r.doResume(null)}function NA(t,e){return(t&e)===e}function TA(t){var e,n=O;for(e=t.iterator();e.hasNext();){var i=e.next();n=n.or(i)}return n}function LA(t,e){return t.encodeToString_tf03ej$(ro(kt(Mt),kt(Mt)),e)}function zA(t,e){return t.decodeFromString_awif5v$(ro(kt(Mt),kt(Mt)),e)}function wA(t,n,i){var o,r,s=Et(i).directDI.Instance_ohrpre$(e.isType(o=F(M(P(aq),[],!1)),B)?o:W(),null),a=st(rt(t,10));for(r=t.iterator();r.hasNext();){var c=r.next();a.add_11rb$(new aR(s.getString(c.first,n),c.second))}return a}function OA(t,e){return x(t.and(e),e)}function RA(t){var e,n=t.entries,i=st(rt(n,10));for(e=n.iterator();e.hasNext();){var o=e.next();i.add_11rb$(Wq().encodeUTF8_61zpoe$(o.key)+"="+Wq().encodeUTF8_61zpoe$(o.value))}return fn(i,"&")}function AA(t,e,n){return QA(XR().joinPaths_vqirvp$([e,tO().LINK_ENDPOINT_VIEWNAME_DIVIDER])+n,RA(t))}function xA(t,e,n,i,o){if(null!=o){var r=o,s=n.encodeToString_tf03ej$(i,r);t.put_xwzc9p$(e,s)}}function IA(t,e,n){var i=e.get_11rb$(n);null!=i&&t.put_xwzc9p$(n,i)}function UA(t,e,n){t.containsKey_11rb$(e)||t.put_xwzc9p$(e,n)}function DA(t,e,n,i){var o,r,s,a;void 0===i&&(i=!1);var c=e.arguments,l=null!=(r=null!=(o=i?null:c)?o.get_11rb$(zG().ARG_RESULT_DEST_VIEWNAME):null)?r:e.viewName;t.put_xwzc9p$(zG().ARG_RESULT_DEST_VIEWNAME,l);var u=null!=(a=null!=(s=i?null:c)?s.get_11rb$(zG().ARG_RESULT_DEST_KEY):null)?a:n;t.put_xwzc9p$(zG().ARG_RESULT_DEST_KEY,u)}function PA(t){var e=t.get_11rb$(zG().ARG_LISTMODE);return null!=e?lG(e):t.containsKey_11rb$(zG().ARG_RESULT_DEST_KEY)?cG():aG()}function MA(t,e,n){e<0?t.add_wxm5ur$(0,n):e>t.size?t.add_11rb$(n):t.add_wxm5ur$(e,n)}function kA(t){return He(t.firstNames)+" "+He(t.lastName)}function jA(t,e){return new Xt(t.personUid,t.username,"",e,t.firstNames,t.lastName,t.admin)}function GA(t){var e=new bo;e.typeFlag=x(t.fromDate,O)?1:0,e.fixedTime=t.fromDate,e.relTo=t.fromRelTo,e.relUnit=t.fromRelUnit,e.relOffSet=t.fromRelOffSet;var n=new bo;return n.typeFlag=x(t.toDate,O)?1:0,n.fixedTime=t.toDate,n.relTo=t.toRelTo,n.relUnit=t.toRelUnit,n.relOffSet=t.toRelOffSet,new yo(e,n)}function qA(t,e,n){this.sqlStr=t,this.sqlListStr=e,this.queryParams=n}function FA(t,n,i,o){var r,s,a,c,l,u,h=ot();switch(t.reportSeriesYAxis){case 200:r="SUM(ResultSource.resultDuration) AS yAxis, ";break;case 201:r=ss("SUM(ResultSource.resultDuration) / COUNT(DISTINCT \n ResultSource.contextRegistration) AS yAxis, ");break;case 202:r="COUNT(DISTINCT ResultSource.contextRegistration) As yAxis, ";break;case 203:r="COUNT(ResultSource.statementId) AS yAxis, ";break;case 204:r="COUNT(DISTINCT ResultSource.statementPersonUid) As yAxis, ";break;case 205:r=ss("SUM(ResultSource.resultDuration) / COUNT(DISTINCT \n ResultSource.statementPersonUid) As yAxis, ");break;case 208:r="COUNT(DISTINCT CASE WHEN \n ResultSource.attendanceStatus = 1 \n THEN ResultSource.clazzLogAttendanceRecordUid ELSE NULL END) As yAxis, ";break;case 209:r="COUNT(DISTINCT CASE WHEN \n ResultSource.attendanceStatus = 2 \n THEN ResultSource.clazzLogAttendanceRecordUid ELSE NULL END) As yAxis, ";break;case 210:r="COUNT(DISTINCT CASE WHEN \n ResultSource.attendanceStatus = 4 \n THEN ResultSource.clazzLogAttendanceRecordUid ELSE NULL END) As yAxis, ";break;case 211:r=ss("((CAST(COUNT(DISTINCT CASE WHEN \n ResultSource.attendanceStatus = 1 \n THEN ResultSource.clazzLogAttendanceRecordUid ELSE NULL END) \n AS REAL) / MAX(COUNT(DISTINCT ResultSource.clazzLogAttendanceRecordUid),1)) * 100) as yAxis, ");break;case 212:r=ss("((CAST(COUNT(DISTINCT CASE WHEN \n ResultSource.attendanceStatus = 1 \n OR ResultSource.attendanceStatus = 4 \n THEN ResultSource.clazzLogAttendanceRecordUid ELSE NULL END) \n AS REAL) / MAX(COUNT(DISTINCT ResultSource.clazzLogAttendanceRecordUid),1)) * 100) as yAxis, ");break;case 213:r="COUNT(DISTINCT ResultSource.clazzLogAttendanceRecordClazzLogUid) As yAxis, ";break;case 214:r=ss("COUNT(DISTINCT CASE WHEN \n ResultSource.attendanceStatus = 1 THEN\n ResultSource.clazzLogAttendanceRecordPersonUid ELSE NULL END) As yAxis, ");break;case 206:r=ss("COUNT(DISTINCT CASE WHEN (ResultSource.resultCompletion \n AND ResultSource.contentEntryRoot AND ResultSource.statementVerbUid = 10001)\n THEN ResultSource.statementPersonUid ELSE NULL END) as yAxis, ");break;case 207:r="((CAST(COUNT(DISTINCT CASE WHEN \n (ResultSource.resultCompletion AND ResultSource.contentEntryRoot \n AND ResultSource.statementVerbUid = 10001)\n THEN ResultSource.statementPersonUid ELSE NULL END) \n AS REAL) / MAX(COUNT(DISTINCT ResultSource.statementPersonUid),1)) * 100) as yAxis, ";break;default:r=""}var d,p="SELECT "+r,_=0;switch(t.reportSeriesYAxis){case 208:case 209:case 210:case 213:case 211:case 212:case 214:_=101;break;case 200:case 201:case 203:case 204:case 205:case 206:case 207:case 202:_=100}if(p+=WA(n.xAxis,_,o)+"AS xAxis ",0!==t.reportSeriesSubGroup?p+=" , "+WA(t.reportSeriesSubGroup,_,o)+"AS subgroup ":p+=", '' AS subgroup ",p+="FROM (SELECT ",null!=(s=t.reportSeriesFilters)){var m,f=st(rt(s,10));for(m=s.iterator();m.hasNext();){var g=m.next();f.add_11rb$(g.reportFilterField)}d=f}else d=null;var $,E=d;if(null!=E){var y;t:do{var b;if(e.isType(E,V)&&E.isEmpty()){y=!1;break t}for(b=E.iterator();b.hasNext();){var S=b.next();if(106===S||107===S){y=!0;break t}}y=!1}while(0);$=y}else $=null;var v,C=null!=(a=$)&&a;if(null!=E){var N;t:do{var T;if(e.isType(E,V)&&E.isEmpty()){N=!1;break t}for(T=E.iterator();T.hasNext();){var L=T.next();if(104===L||103===L||102===L){N=!0;break t}}N=!1}while(0);v=N}else v=null;var z=null!=(c=v)&&c,w=308===n.xAxis||308===t.reportSeriesSubGroup||309===n.xAxis||309===t.reportSeriesSubGroup||307===n.xAxis||307===t.reportSeriesSubGroup||C,O=307===n.xAxis||307===t.reportSeriesSubGroup,R=z||304===n.xAxis||304===t.reportSeriesSubGroup;switch(w&&(p+="ClazzEnrolment.clazzEnrolmentOutcome, ClazzEnrolment.clazzEnrolmentLeavingReasonUid, ",O&&(p+="Clazz.clazzUid, ")),R&&100!==_&&(p+="StatementEntity.*, "),_){case 101:p+=We("\n ClazzLogAttendanceRecord.*, ClazzLog.logDate , Person.* \n ");break;case 100:p+=ss("\n StatementEntity.* , Person.* \n ")}var A="SELECT Person.* , XLangMapEntry.* ,StatementEntity.* \n \n FROM PersonGroupMember\n \n JOIN ScopedGrant\n ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n AND (ScopedGrant.sgPermissions & \n 549755813888 \n ) > 0\n JOIN Person \n ON \n ((ScopedGrant.sgTableId = -2\n AND ScopedGrant.sgEntityUid = -2)\n OR (ScopedGrant.sgTableId = 9\n AND ScopedGrant.sgEntityUid = Person.personUid)\n OR (ScopedGrant.sgTableId = 6 \n AND Person.personUid IN (\n SELECT DISTINCT clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n AND ClazzEnrolment.clazzEnrolmentActive))\n OR (ScopedGrant.sgTableId = 164\n AND Person.personUid IN (\n SELECT DISTINCT schoolMemberPersonUid\n FROM SchoolMember\n WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n AND schoolMemberActive))\n ) \n \n \n LEFT JOIN StatementEntity ON \n StatementEntity.statementPersonUid = Person.personUid \n LEFT JOIN XLangMapEntry ON XLangMapEntry.statementLangMapUid = \n (SELECT statementLangMapUid FROM XLangMapEntry \n WHERE statementVerbUid = StatementEntity.statementVerbUid LIMIT 1) ";if(p+="\n FROM PersonGroupMember\n \n JOIN ScopedGrant\n ON ScopedGrant.sgGroupUid = PersonGroupMember.groupMemberGroupUid\n AND (ScopedGrant.sgPermissions & \n 549755813888 \n ) > 0\n JOIN Person \n ON \n ((ScopedGrant.sgTableId = -2\n AND ScopedGrant.sgEntityUid = -2)\n OR (ScopedGrant.sgTableId = 9\n AND ScopedGrant.sgEntityUid = Person.personUid)\n OR (ScopedGrant.sgTableId = 6 \n AND Person.personUid IN (\n SELECT DISTINCT clazzEnrolmentPersonUid\n FROM ClazzEnrolment\n WHERE clazzEnrolmentClazzUid =ScopedGrant.sgEntityUid \n AND ClazzEnrolment.clazzEnrolmentActive))\n OR (ScopedGrant.sgTableId = 164\n AND Person.personUid IN (\n SELECT DISTINCT schoolMemberPersonUid\n FROM SchoolMember\n WHERE schoolMemberSchoolUid = ScopedGrant.sgEntityUid\n AND schoolMemberActive))\n ) \n \n \n ",101===_&&(p+=ss("LEFT JOIN ClazzLogAttendanceRecord ON\n Person.personUid = ClazzLogAttendanceRecord.clazzLogAttendanceRecordPersonUid \n LEFT JOIN ClazzLog ON ClazzLogAttendanceRecord.clazzLogAttendanceRecordClazzLogUid = ClazzLog.clazzLogUid ")),(R||100===_)&&(p+="LEFT JOIN StatementEntity ON Person.personUid = StatementEntity.statementPersonUid "),w){var x=ss("LEFT JOIN ClazzEnrolment ON \n Person.personUid = ClazzEnrolment.clazzEnrolmentPersonUid ");p+=x,C&&(A+=x),O&&(p+=101===_?"LEFT JOIN Clazz ON ClazzLog.clazzLogClazzUid = Clazz.clazzUid ":"LEFT JOIN Clazz ON Clazz.clazzUid = ClazzEnrolment.clazzEnrolmentClazzUid ")}var I=" WHERE PersonGroupMember.groupMemberPersonUid = ? ";p+=I,A+=I,h.add_11rb$(i);var U=0!==n.reportDateRangeSelection;if(U||(U=!0===(null!=(l=t.reportSeriesFilters)?!l.isEmpty():null)),U){var P,M=ot();if(null!=(u=t.reportSeriesFilters))for(P=u.iterator();P.hasNext();){var k,j,G,q,F,B,W,H,K=P.next();switch(K.reportFilterField){case 101:var X="Person.dateOfBirth ",J=null!=(j=null!=(k=K.reportFilterValue)?Ai(k):null)?j:13,Y=null!=(q=null!=(G=K.reportFilterValueBetweenX)?Ai(G):null)?q:13,Q=null!=(B=null!=(F=K.reportFilterValueBetweenY)?Ai(F):null)?B:18,Z=D.Companion.now(),tt=Z.minus_glepj8$(new xr(12*J|0)),et=Z.minus_glepj8$(new xr(12*Y|0)),nt=Z.minus_glepj8$(new xr(12*Q|0));switch(X+=BA(K.reportFilterCondition),K.reportFilterCondition){case 202:case 203:X+=tt.dateDayStart.unixMillisLong.toString()+" ";break;case 205:X+=" "+et.dateDayStart.unixMillisLong.toString()+" \n AND "+nt.dateDayStart.unixMillisDouble+" "}M.add_11rb$(X);break;case 100:var it="Person.gender ";it+=BA(K.reportFilterCondition),it+=K.reportFilterDropDownValue.toString()+" ",M.add_11rb$(it);break;case 102:var at="(StatementEntity.contentEntryRoot AND StatementEntity.resultCompletion ";switch(H=at,K.reportFilterDropDownValue){case 100:W=")";break;case 102:W="AND StatementEntity.resultSuccess "+BA(K.reportFilterCondition)+" "+as.Companion.RESULT_SUCCESS+") ";break;case 103:W="AND StatementEntity.resultSuccess "+BA(K.reportFilterCondition)+" "+as.Companion.RESULT_FAILURE+") ";break;default:W=""}var ct=at=H+W;M.add_11rb$(ct);break;case 103:var lt="StatementEntity.statementContentEntryUid ";lt+=BA(K.reportFilterCondition),lt+="("+He(K.reportFilterValue)+") ",M.add_11rb$(lt);break;case 105:var ut="(SELECT ((CAST(COUNT(DISTINCT CASE WHEN \n ClazzLogAttendanceRecord.attendanceStatus = 1 \n THEN ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid ELSE NULL END) \n AS REAL) / MAX(COUNT(DISTINCT ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid),1)) * 100) as attendance FROM ClazzLogAttendanceRecord) ";ut+=BA(K.reportFilterCondition),ut+=" "+He(K.reportFilterValueBetweenX)+" \n AND "+He(K.reportFilterValueBetweenY)+" ",M.add_11rb$(ut);break;case 104:var ht="StatementEntity.extensionProgress ";ht+=BA(K.reportFilterCondition),ht+=" "+He(K.reportFilterValueBetweenX)+" \n AND "+He(K.reportFilterValueBetweenY)+" ",M.add_11rb$(ht);break;case 107:var dt="ClazzEnrolment.clazzEnrolmentLeavingReasonUid ";dt+=BA(K.reportFilterCondition),dt+="("+He(K.reportFilterValue)+") ",M.add_11rb$(dt);break;case 106:var pt="ClazzEnrolment.clazzEnrolmentOutcome ";pt+=BA(K.reportFilterCondition),pt+=K.reportFilterDropDownValue.toString()+" ",M.add_11rb$(pt)}}if(0!==n.reportDateRangeSelection){var _t=gA(GA(n));M.add_11rb$("(StatementEntity.timestamp >= ? AND StatementEntity.timestamp <= ?) "),h.add_11rb$(_t.first),h.add_11rb$(_t.second)}var mt=" AND "+fn(M," AND ");p+=mt,A+=mt}switch(_){case 101:p+=We("\n GROUP BY ClazzLogAttendanceRecord.clazzLogAttendanceRecordUid, \n ClazzLog.clazzLogUid, Person.personUid \n ");break;case 100:p+=ss("\n GROUP BY StatementEntity.statementUid, Person.personUid \n ")}return w&&(p+=",ClazzEnrolment.clazzEnrolmentUid ",O&&(p+=",Clazz.clazzUid ")),(R||100===_)&&(p+=", StatementEntity.statementUid "),p+=") AS ResultSource ",p+=" GROUP BY xAxis ",0!==t.reportSeriesSubGroup&&(p+=" , subgroup "),new qA(p,A+=" GROUP BY StatementEntity.statementUid ORDER BY StatementEntity.timestamp DESC",Oe(h))}function BA(t){var e;switch(t){case 206:e="IN ";break;case 207:e="NOT IN ";break;case 200:e="= ";break;case 201:e="!= ";break;case 202:e=">= ";break;case 203:e="<= ";break;case 205:e="BETWEEN ";break;default:e=""}return e}function WA(t,e,n){var i,o,r,s;switch(t){case 300:switch(e){case 100:i="ResultSource.timestamp";break;case 101:i="ResultSource.logDate";break;default:i=""}var a=i;switch(n){case 1:s="strftime('%d/%m/%Y', "+a+"/1000, 'unixepoch') ";break;case 2:s="TO_CHAR(TO_TIMESTAMP("+a+"/1000), 'DD/MM/YYYY') ";break;default:s=""}break;case 301:switch(e){case 100:o="ResultSource.timestamp";break;case 101:o="ResultSource.logDate";break;default:o=""}var c=o;switch(n){case 1:s="strftime('%d/%m/%Y', "+c+"/1000, 'unixepoch', 'weekday 6', '-5 day') ";break;case 2:s="TO_CHAR(DATE(DATE_TRUNC('week', TO_TIMESTAMP("+c+"/1000))), 'DD/MM/YYYY') ";break;default:s=""}break;case 302:switch(e){case 100:r="ResultSource.timestamp";break;case 101:r="ResultSource.logDate";break;default:r=""}var l=r;switch(n){case 1:s="strftime('%m/%Y', "+l+"/1000, 'unixepoch') ";break;case 2:s="TO_CHAR(TO_TIMESTAMP("+l+"/1000), 'MM/YYYY') ";break;default:s=""}break;case 304:s="ResultSource.statementContentEntryUid ";break;case 306:s="ResultSource.gender ";break;case 307:s="ResultSource.clazzUid ";break;case 308:s="ResultSource.clazzEnrolmentOutcome ";break;case 309:s="ResultSource.clazzEnrolmentLeavingReasonUid ";break;default:s=""}return s}function HA(t,e,n){var i,o,r=mt();if(null!=(i=t.reportSeriesWithFiltersList))for(o=i.iterator();o.hasNext();){var s=o.next(),a=FA(s,t,e,n);r.put_xwzc9p$(s,a)}return b(r)}function VA(t,e,n){return tF(t,e,n.iterations,n.keyLength)}function KA(t,e,n){var i=VA(t,e,n);return VA(xt(i),e,n)}function XA(t){return null==t||0===t.length?"%":"%"+He(t)+"%"}function JA(t,e,n){return void 0===n&&(n=!1),ye(t,e,n)?t:t+e}function YA(t,e){return void 0===e&&(e=24),t.length>e?t.substring(0,e)+String.fromCharCode(cs.Typography.ellipsis):t}function QA(t,e){var n=t;return _e(t,"?")?n+="&":n+="?",n+=e}function ZA(t,e){return QA(t,RA(e))}function tx(t){var n;return ls(ze("(\\s+|(\\r\\n|\\r|\\n))").findAll_905azu$(Oi(e.isCharSequence(n=t)?n:W()).toString()))+1|0}function ex(t,e){var n,i;return new zO(void 0,new wO(null!=(n=null!=t?t.endpointUrl:null)?n:"http://localhost",null!=(i=null!=t?t.username:null)?i:"anonymous"))}function nx(t,e){var n,i,o=null!=(n=null!=t?t.endpointUrl:null)?n:"http://localhost",r=new wO(o,"group:"+e.get_za3lpa$(0).learnerGroupMemberLgUid.toString()),s=st(rt(e,10));for(i=e.iterator();i.hasNext();){var a,c,l=i.next();s.add_11rb$(new zO(void 0,new wO(o,null!=(c=null!=(a=l.person)?a.username:null)?c:"anonymous")))}return new BO(void 0,r,s)}function ix(t,e,n,i,o,r){L.call(this,r),this.exceptionState_0=1,this.local$$receiver=t,this.local$clazz=e,this.local$impl=n,this.local$termMap=i,this.local$context=o}function ox(t,e,n,i,o,r,s){var a=new ix(t,e,n,i,o,r);return s?a:a.doResume(null)}function rx(t,e,n,i,o,r){L.call(this,r),this.exceptionState_0=1,this.local$clazzWithSchoolVal=void 0,this.local$$receiver=t,this.local$personToEnrol=e,this.local$clazzUid=n,this.local$role=i,this.local$clazzWithSchool=o}function sx(t,e,n,i,o,r,s){var a=new rx(t,e,n,i,o,r);return s?a:a.doResume(null)}function ax(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$closure$enrolment=t,this.local$it=e}function cx(t){return function(e,n,i){var o=new ax(t,e,n);return i?o:o.doResume(null)}}function lx(t,e,n){L.call(this,n),this.exceptionState_0=1,this.local$closure$parentJoin=t,this.local$it=e}function ux(t){return function(e,n,i){var o=new lx(t,e,n);return i?o:o.doResume(null)}}function hx(t,e,n,i){L.call(this,i),this.exceptionState_0=1,this.local$tmp$_1=void 0,this.local$clazzWithSchoolVal=void 0,this.local$personGroupUid=void 0,this.local$tmp$_2=void 0,this.local$$receiver=t,this.local$enrolment=e,this.local$clazzWithSchool=n}function dx(t,e,n,i,o){var r=new hx(t,e,n,i);return o?r:r.doResume(null)}function px(t,e,n,i,o){L.call(this,o),this.exceptionState_0=1,this.local$schoolVal=void 0,this.local$$receiver_0=void 0,this.local$schoolMember=void 0,this.local$$receiver=t,this.local$personToEnrol=e,this.local$schoolUid=n,this.local$role=i}function _x(t,e,n,i,o,r){var s=new px(t,e,n,i,o);return r?s:s.doResume(null)}function mx(t,e,n,i){L.call(this,i),this.exceptionState_0=1,this.local$$receiver=t,this.local$enrolment=e,this.local$clazzUid=n}function fx(t,e,n,i,o){var r=new mx(t,e,n,i);return o?r:r.doResume(null)}function gx(t,e,n,i){L.call(this,i),this.exceptionState_0=1,this.local$effectiveClazz=void 0,this.local$$receiver=t,this.local$enrolment=e,this.local$clazzUid=n}function $x(t,e,n,i,o){var r=new gx(t,e,n,i);return o?r:r.doResume(null)}function Ex(t,e,n,i){L.call(this,i),this.exceptionState_0=1,this.local$effectiveClazz=void 0,this.local$$receiver=t,this.local$member=e,this.local$school=n}function yx(t,e,n,i,o){var r=new Ex(t,e,n,i);return o?r:r.doResume(null)}function bx(t,e,n,i){L.call(this,i),this.exceptionState_0=1,this.local$groupPerson=void 0,this.local$$receiver=t,this.local$entity=e,this.local$groupFlag=n}function Sx(t,e,n,i,o){var r=new bx(t,e,n,i);return o?r:r.doResume(null)}function vx(t,e,n,i,o,r){L.call(this,r),this.exceptionState_0=1,this.local$tmp$=void 0,this.local$seriesDataList=void 0,this.local$yAxisValueFormatter=void 0,this.local$xAxisList=void 0,this.local$tmp$_0=void 0,this.local$element=void 0,this.local$tmp$_1=void 0,this.local$reportList=void 0,this.local$series=void 0,this.local$$receiver=t,this.local$report=e,this.local$context=n,this.local$impl=i,this.local$loggedInPersonUid=o}function Cx(t,e,n,i,o,r,s){var a=new vx(t,e,n,i,o,r);return s?a:a.doResume(null)}function Nx(t,e,n){var i,o=HA(e,n,hn(t)),r=ot();for(i=o.entries.iterator();i.hasNext();){var s=i.next();r.add_11rb$(t.statementDao.getListResults_j49vja$(new bs(s.value.sqlListStr,s.value.queryParams)))}return qt(r)}function Tx(t,e,n,i){this.seriesData=t,this.reportWithFilters=e,this.yAxisValueFormatter=n,this.xAxisValueFormatter=i}function Lx(t,e,n){this.dataList=t,this.subGroupFormatter=e,this.series=n}function zx(t,e,n,i,o){L.call(this,o),this.exceptionState_0=1,this.local$$receiver=t,this.local$school=e,this.local$impl=n,this.local$context=i}function wx(t,e,n,i,o,r){var s=new zx(t,e,n,i,o);return r?s:s.doResume(null)}function Ox(t,e,n,i,o){L.call(this,o),this.exceptionState_0=1,this.local$school=void 0,this.local$$receiver_0=void 0,this.local$schoolMember=void 0,this.local$$receiver=t,this.local$schoolUid=e,this.local$personUid=n,this.local$role=i}function Rx(t,e,n,i,o,r){var s=new Ox(t,e,n,i,o);return r?s:s.doResume(null)}function Ax(t){this.sgUid=t}function xx(t,e,n,i,o,r){L.call(this,r),this.exceptionState_0=1,this.local$$receiver=t,this.local$toGroupUid=e,this.local$permissions=n,this.local$scopeTableId=i,this.local$scopeEntityUid=o}function Ix(t,e,n,i,o,r,s){var a=new xx(t,e,n,i,o,r);return s?a:a.doResume(null)}function Ux(t,e,n,i,o,r){return Ix(t,e.personGroupUid,n,i,o,r)}function Dx(t,e,n,i,o,r){L.call(this,r),this.exceptionState_0=1,this.local$closure$db=t,this.local$closure$personUid=e,this.local$closure$password=n,this.local$closure$pbkdf2Params=i}function Px(t,e,n,i){return function(o,r,s){var a=new Dx(t,e,n,i,o,r);return s?a:a.doResume(null)}}function Mx(t,e,n,i,o){L.call(this,o),this.exceptionState_0=1,this.local$$receiver=t,this.local$personUid=e,this.local$password=n,this.local$pbkdf2Params=i}function kx(t,e,n,i,o,r){var s=new Mx(t,e,n,i,o);return r?s:s.doResume(null)}function jx(t,e){var n,i;if(null==(n=t.userSession))throw pe("session withendpoint : usersession must not be null");if(null==(i=t.person))throw pe("session withendpoint: person msut not be null");return new ba(n,i,e)}function Gx(){}function qx(t,e,n){this.map=t,this.systemImpl=e,this.context=n}function Fx(){}function Bx(t){this.uidMap=t}function Wx(){Kx()}function Hx(){Vx=this,this.VIEW_NAME="About"}ZR.$metadata$={kind:v,simpleName:"UstadUrlComponents",interfaces:[]},ZR.prototype.component1=function(){return this.endpoint},ZR.prototype.component2=function(){return this.viewName},ZR.prototype.component3=function(){return this.queryString},ZR.prototype.copy_6hosri$=function(t,e,n){return new ZR(void 0===t?this.endpoint:t,void 0===e?this.viewName:e,void 0===n?this.queryString:n)},ZR.prototype.toString=function(){return"UstadUrlComponents(endpoint="+e.toString(this.endpoint)+", viewName="+e.toString(this.viewName)+", queryString="+e.toString(this.queryString)+")"},ZR.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*t+e.hashCode(this.endpoint)|0)+e.hashCode(this.viewName)|0)+e.hashCode(this.queryString)|0},ZR.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.endpoint,t.endpoint)&&e.equals(this.viewName,t.viewName)&&e.equals(this.queryString,t.queryString)},rA.$metadata$={kind:v,simpleName:"AlreadyEnroledInClassException",interfaces:[on]},sA.$metadata$={kind:v,simpleName:"AlreadyEnroledInSchoolException",interfaces:[on]},vA.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},vA.prototype=Object.create(L.prototype),vA.prototype.constructor=vA,vA.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:void 0===this.local$timeout&&(this.local$timeout=pL().LINK_REQUEST_TIMEOUT);var t=XR().joinPaths_vqirvp$([this.local$endpointUrl,"Site","verify"]),n=new le;if(Ct(n,t),rs(n,SA(this.local$timeout)),n.method=ue.Companion.Get,this.state_0=2,this.result_0=new he(n,this.local$$receiver).execute(this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:var i;this.result_0;var o,r=this.result_0.call,s=se.JsType,a=P(Yt);t:do{try{o=M(P(Yt),[],!1)}catch(t){if(e.isType(t,ce)){o=null;break t}throw t}}while(0);if(this.state_0=3,this.result_0=r.bodyNullable_qi9ur9$(ae(s,a,o),this),this.result_0===T)return T;continue;case 3:return this.result_0=e.isType(i=this.result_0,Yt)?i:W(),this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},qA.$metadata$={kind:v,simpleName:"QueryParts",interfaces:[]},qA.prototype.component1=function(){return this.sqlStr},qA.prototype.component2=function(){return this.sqlListStr},qA.prototype.component3=function(){return this.queryParams},qA.prototype.copy_gc47or$=function(t,e,n){return new qA(void 0===t?this.sqlStr:t,void 0===e?this.sqlListStr:e,void 0===n?this.queryParams:n)},qA.prototype.toString=function(){return"QueryParts(sqlStr="+e.toString(this.sqlStr)+", sqlListStr="+e.toString(this.sqlListStr)+", queryParams="+e.toString(this.queryParams)+")"},qA.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*t+e.hashCode(this.sqlStr)|0)+e.hashCode(this.sqlListStr)|0)+e.hashCode(this.queryParams)|0},qA.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.sqlStr,t.sqlStr)&&e.equals(this.sqlListStr,t.sqlListStr)&&e.equals(this.queryParams,t.queryParams)},ix.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},ix.prototype=Object.create(L.prototype),ix.prototype.constructor=ix,ix.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(this.state_0=2,this.result_0=this.local$$receiver.personGroupDao.insertAsync(us(He(this.local$clazz.clazzName)+" - "+this.local$termMap.get_11rb$(ML().TEACHER_KEY)),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(this.local$clazz.clazzTeachersPersonGroupUid=this.result_0,this.state_0=3,this.result_0=this.local$$receiver.personGroupDao.insertAsync(us(He(this.local$clazz.clazzName)+" - "+this.local$termMap.get_11rb$(ML().STUDENTS_KEY)),this),this.result_0===T)return T;continue;case 3:if(this.local$clazz.clazzStudentsPersonGroupUid=this.result_0,this.state_0=4,this.result_0=this.local$$receiver.personGroupDao.insertAsync(us(He(this.local$clazz.clazzName)+" - "+this.local$impl.getString(2648,this.local$context)),this),this.result_0===T)return T;continue;case 4:if(this.local$clazz.clazzPendingStudentsPersonGroupUid=this.result_0,this.state_0=5,this.result_0=this.local$$receiver.personGroupDao.insertAsync(us(He(this.local$clazz.clazzName)+" - "+this.local$impl.getString(2833,this.local$context)),this),this.result_0===T)return T;continue;case 5:this.local$clazz.clazzParentsPersonGroupUid=this.result_0,null!=(t=null==this.local$clazz.clazzCode?this.local$clazz:null)&&(t.clazzCode=hs(6));var e=this.local$$receiver.scopedGrantDao,n=new rr;n.sgFlags=9,n.sgPermissions=ds,n.sgGroupUid=this.local$clazz.clazzTeachersPersonGroupUid,n.sgEntityUid=this.local$clazz.clazzUid,n.sgTableId=6;var i=new rr;i.sgFlags=17,i.sgPermissions=ps,i.sgGroupUid=this.local$clazz.clazzStudentsPersonGroupUid,i.sgEntityUid=this.local$clazz.clazzUid,i.sgTableId=6;var o=new rr;if(o.sgFlags=65,o.sgPermissions=_s,o.sgGroupUid=this.local$clazz.clazzParentsPersonGroupUid,o.sgEntityUid=this.local$clazz.clazzUid,o.sgTableId=6,this.state_0=6,this.result_0=e.insertListAsync_djn83v$(be([n,i,o]),this),this.result_0===T)return T;continue;case 6:if(this.state_0=7,this.result_0=this.local$$receiver.clazzDao.insertAsync(this.local$clazz,this),this.result_0===T)return T;continue;case 7:return void(this.local$clazz.clazzUid=this.result_0);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},rx.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},rx.prototype=Object.create(L.prototype),rx.prototype.constructor=rx,rx.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(void 0===this.local$clazzWithSchool&&(this.local$clazzWithSchool=null),null==this.local$clazzWithSchool){if(this.state_0=2,this.result_0=this.local$$receiver.clazzDao.getClazzWithSchool_s8cxhz$(this.local$clazzUid,this),this.result_0===T)return T;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:this.local$clazzWithSchool=this.result_0,this.state_0=3;continue;case 3:if(null==this.local$clazzWithSchool)throw pe("Class does not exist");if(this.local$clazzWithSchoolVal=this.local$clazzWithSchool,this.state_0=4,this.result_0=this.local$$receiver.clazzEnrolmentDao.getAllClazzEnrolledAtTimeAsync_6qtc6d$(this.local$clazzUid,et(),0,this.local$personToEnrol.personUid,this),this.result_0===T)return T;continue;case 4:var t=this.result_0;if(!t.isEmpty())throw new rA(Ze(t));var e=hA(this.local$clazzWithSchoolVal),n=yO(D.Companion.now(),e),i=n.hours,o=Yn.Companion.fromHours_14dthe$(i),r=n.minutes,s=o.plus_fv8bff$(Yn.Companion.fromMinutes_14dthe$(r)),a=n.seconds,c=s.plus_fv8bff$(Yn.Companion.fromSeconds_14dthe$(a)),l=n.milliseconds,u=n.minus_fv8bff$(c.plus_fv8bff$(Yn.Companion.fromMilliseconds_14dthe$(l))).utc.unixMillisLong,h=new Ki;h.clazzEnrolmentPersonUid=this.local$personToEnrol.personUid,h.clazzEnrolmentClazzUid=this.local$clazzUid,h.clazzEnrolmentRole=this.local$role,h.clazzEnrolmentActive=!0,h.clazzEnrolmentDateJoined=u;var d=h;if(this.state_0=5,this.result_0=dx(this.local$$receiver,d,this.local$clazzWithSchoolVal,this),this.result_0===T)return T;continue;case 5:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ax.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},ax.prototype=Object.create(L.prototype),ax.prototype.constructor=ax,ax.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$it.personParentJoinDao.findByMinorPersonUidWhereParentNotEnrolledInClazz_3pjtqy$(this.local$closure$enrolment.clazzEnrolmentPersonUid,this.local$closure$enrolment.clazzEnrolmentClazzUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},lx.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},lx.prototype=Object.create(L.prototype),lx.prototype.constructor=lx,lx.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$it.personDao.findByUidAsync_s8cxhz$(this.local$closure$parentJoin.parentPersonUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},hx.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},hx.prototype=Object.create(L.prototype),hx.prototype.constructor=hx,hx.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e;if(void 0===this.local$clazzWithSchool&&(this.local$clazzWithSchool=null),null==this.local$clazzWithSchool){if(this.state_0=2,this.result_0=this.local$$receiver.clazzDao.getClazzWithSchool_s8cxhz$(this.local$enrolment.clazzEnrolmentClazzUid,this),this.result_0===T)return T;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:this.local$clazzWithSchool=this.result_0,this.state_0=3;continue;case 3:if(null==this.local$clazzWithSchool)throw pe("processEnrolmentIntoClass: Class does not exist");this.local$clazzWithSchoolVal=this.local$clazzWithSchool;var n=hA(this.local$clazzWithSchoolVal),i=yO(D.Companion.invoke_s8cxhz$(this.local$enrolment.clazzEnrolmentDateJoined),n),o=i.hours,r=Yn.Companion.fromHours_14dthe$(o),s=i.minutes,a=r.plus_fv8bff$(Yn.Companion.fromMinutes_14dthe$(s)),c=i.seconds,l=a.plus_fv8bff$(Yn.Companion.fromSeconds_14dthe$(c)),u=i.milliseconds;if(this.local$enrolment.clazzEnrolmentDateJoined=i.minus_fv8bff$(l.plus_fv8bff$(Yn.Companion.fromMilliseconds_14dthe$(u))).utc.unixMillisLong,!x(this.local$enrolment.clazzEnrolmentDateLeft,In)){var h=yO(D.Companion.invoke_s8cxhz$(this.local$enrolment.clazzEnrolmentDateLeft),n),d=h.hours,p=Yn.Companion.fromHours_14dthe$(d),_=h.minutes,m=p.plus_fv8bff$(Yn.Companion.fromMinutes_14dthe$(_)),f=h.seconds,g=m.plus_fv8bff$(Yn.Companion.fromSeconds_14dthe$(f)),$=h.milliseconds;this.local$enrolment.clazzEnrolmentDateLeft=h.minus_fv8bff$(g.plus_fv8bff$(Yn.Companion.fromMilliseconds_14dthe$($))).plus_fv8bff$(Yn.Companion.fromHours_14dthe$(24)).minus_fv8bff$(Yn.Companion.fromMilliseconds_14dthe$(1)).utc.unixMillisLong}if(this.state_0=4,this.result_0=this.local$$receiver.clazzEnrolmentDao.insertAsync(this.local$enrolment,this),this.result_0===T)return T;continue;case 4:switch(this.local$enrolment.clazzEnrolmentUid=this.result_0,this.local$enrolment.clazzEnrolmentRole){case 1001:t=this.local$clazzWithSchoolVal.clazzTeachersPersonGroupUid;break;case 1e3:t=this.local$clazzWithSchoolVal.clazzStudentsPersonGroupUid;break;case 1003:t=this.local$clazzWithSchoolVal.clazzParentsPersonGroupUid;break;case 1002:t=this.local$clazzWithSchoolVal.clazzPendingStudentsPersonGroupUid;break;default:t=Fn}if(this.local$personGroupUid=t,x(this.local$personGroupUid,Fn)){this.state_0=8;continue}if(this.state_0=5,this.result_0=this.local$$receiver.personGroupMemberDao.checkPersonBelongsToGroup_3pjtqy$(this.local$personGroupUid,this.local$enrolment.clazzEnrolmentPersonUid,this),this.result_0===T)return T;continue;case 5:var E=this.result_0,y=this.local$$receiver.personGroupMemberDao;if(null!=(e=E.isEmpty()?y:null)){var b=new ms;if(b.groupMemberPersonUid=this.local$enrolment.clazzEnrolmentPersonUid,b.groupMemberGroupUid=this.local$personGroupUid,this.state_0=6,this.result_0=e.insertAsync(b,this),this.result_0===T)return T;continue}this.result_0=null,this.state_0=7;continue;case 6:this.state_0=7;continue;case 7:this.state_0=8;continue;case 8:if(1e3===this.local$enrolment.clazzEnrolmentRole){if(this.state_0=9,this.result_0=Rt(this.local$$receiver,fs,cx(this.local$enrolment),this),this.result_0===T)return T;continue}this.local$tmp$_1=fe(),this.state_0=10;continue;case 9:this.local$tmp$_1=this.result_0,this.state_0=10;continue;case 10:var S=this.local$tmp$_1;this.local$tmp$_2=S.iterator(),this.state_0=11;continue;case 11:if(!this.local$tmp$_2.hasNext()){this.state_0=15;continue}var v,C=this.local$tmp$_2.next();if(this.state_0=12,this.result_0=Rt(this.local$$receiver,fs,ux(C),this),this.result_0===T)return T;continue;case 12:if(null!=(v=this.result_0)){if(this.state_0=13,this.result_0=sx(this.local$$receiver,v,this.local$enrolment.clazzEnrolmentClazzUid,1003,this.local$clazzWithSchoolVal,this),this.result_0===T)return T;continue}this.state_0=14;continue;case 13:this.state_0=14;continue;case 14:this.state_0=11;continue;case 15:return this.local$enrolment;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},px.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},px.prototype=Object.create(L.prototype),px.prototype.constructor=px,px.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e,n;if(this.state_0=2,this.result_0=this.local$$receiver.schoolDao.findByUidAsync_s8cxhz$(this.local$schoolUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(null==(t=this.result_0))throw pe("School does not exist");if(this.local$schoolVal=t,this.state_0=3,this.result_0=this.local$$receiver.schoolMemberDao.findBySchoolAndPersonAndRole_6qtc6d$(this.local$schoolUid,this.local$personToEnrol.personUid,0,et(),this),this.result_0===T)return T;continue;case 3:var i=this.result_0;if(!i.isEmpty())throw new sA(Ze(i));var o=null!=(e=this.local$schoolVal.schoolTimeZone)?e:"UTC",r=yO(D.Companion.now(),o),s=r.hours,a=Yn.Companion.fromHours_14dthe$(s),c=r.minutes,l=a.plus_fv8bff$(Yn.Companion.fromMinutes_14dthe$(c)),u=r.seconds,h=l.plus_fv8bff$(Yn.Companion.fromSeconds_14dthe$(u)),d=r.milliseconds,p=r.minus_fv8bff$(h.plus_fv8bff$(Yn.Companion.fromMilliseconds_14dthe$(d))).utc.unixMillisLong;if(this.local$$receiver_0=new gs,this.local$$receiver_0.schoolMemberPersonUid=this.local$personToEnrol.personUid,this.local$$receiver_0.schoolMemberSchoolUid=this.local$schoolUid,this.local$$receiver_0.schoolMemberRole=this.local$role,this.local$$receiver_0.schoolMemberActive=!0,this.local$$receiver_0.schoolMemberJoinDate=p,this.local$$receiver_0.person=this.local$personToEnrol,this.state_0=4,this.result_0=this.local$$receiver.schoolMemberDao.insertAsync(this.local$$receiver_0,this),this.result_0===T)return T;continue;case 4:switch(this.local$$receiver_0.schoolMemberUid=this.result_0,this.local$schoolMember=this.local$$receiver_0,this.local$role){case 1004:n=this.local$schoolVal.schoolTeachersPersonGroupUid;break;case 1003:n=this.local$schoolVal.schoolStudentsPersonGroupUid;break;case 1005:n=this.local$schoolVal.schoolPendingStudentsPersonGroupUid;break;default:n=null}var _=n;if(null!=_){var m=this.local$$receiver.personGroupMemberDao,f=new ms;if(f.groupMemberPersonUid=this.local$personToEnrol.personUid,f.groupMemberGroupUid=_,this.state_0=5,this.result_0=m.insertAsync(f,this),this.result_0===T)return T;continue}this.state_0=6;continue;case 5:this.state_0=6;continue;case 6:return this.local$schoolMember;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},mx.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},mx.prototype=Object.create(L.prototype),mx.prototype.constructor=mx,mx.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(this.state_0=2,this.result_0=this.local$$receiver.clazzDao.findByUidAsync_s8cxhz$(this.local$clazzUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(null==(t=this.result_0))throw z("Class does not exist");var e=t;if(this.state_0=3,this.result_0=this.local$$receiver.personGroupMemberDao.moveGroupAsync_9xn71c$(this.local$enrolment.personUid,e.clazzStudentsPersonGroupUid,e.clazzPendingStudentsPersonGroupUid,et(),this),this.result_0===T)return T;continue;case 3:if(1!==this.result_0)throw z("Approve pending clazz member - no membership of clazz's pending group!");if(this.state_0=4,this.result_0=this.local$$receiver.clazzEnrolmentDao.updateClazzEnrolmentRole_d2c2sj$(this.local$enrolment.personUid,this.local$clazzUid,1e3,1002,et(),this),this.result_0===T)return T;continue;case 4:if(1!==this.result_0)throw z("Approve pending clazz member - no update of enrolment!");return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},gx.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},gx.prototype=Object.create(L.prototype),gx.prototype.constructor=gx,gx.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(this.state_0=2,this.result_0=this.local$$receiver.clazzDao.findByUidAsync_s8cxhz$(this.local$clazzUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(null==(t=this.result_0))throw z("Class does not exist");if(this.local$effectiveClazz=t,this.state_0=3,this.result_0=this.local$$receiver.clazzEnrolmentDao.updateClazzEnrolmentActiveForPersonAndClazz_mpc0bo$(this.local$enrolment.personUid,this.local$clazzUid,1002,!1,et(),this),this.result_0===T)return T;continue;case 3:if(this.state_0=4,this.result_0=this.local$$receiver.personGroupMemberDao.updateGroupMemberActive_u4hhv2$(!1,this.local$enrolment.personUid,this.local$effectiveClazz.clazzPendingStudentsPersonGroupUid,et(),this),this.result_0===T)return T;continue;case 4:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ex.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Ex.prototype=Object.create(L.prototype),Ex.prototype.constructor=Ex,Ex.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(void 0===this.local$school&&(this.local$school=null),null==this.local$school){if(this.state_0=2,this.result_0=this.local$$receiver.schoolDao.findByUidAsync_s8cxhz$(this.local$member.schoolMemberSchoolUid,this),this.result_0===T)return T;continue}this.state_0=3;continue;case 1:throw this.exception_0;case 2:this.local$school=this.result_0,this.state_0=3;continue;case 3:if(null==this.local$school)throw z("Class does not exist");if(this.local$effectiveClazz=this.local$school,this.local$member.schoolMemberRole=1003,this.state_0=4,this.result_0=this.local$$receiver.schoolMemberDao.updateAsync_nzwwdw$(this.local$member,this),this.result_0===T)return T;continue;case 4:if(this.state_0=5,this.result_0=this.local$$receiver.personGroupMemberDao.moveGroupAsync_9xn71c$(this.local$member.schoolMemberPersonUid,this.local$effectiveClazz.schoolStudentsPersonGroupUid,this.local$effectiveClazz.schoolPendingStudentsPersonGroupUid,et(),this),this.result_0===T)return T;continue;case 5:return void(1!==this.result_0&&$s("No group update?"));default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},bx.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},bx.prototype=Object.create(L.prototype),bx.prototype.constructor=bx,bx.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:void 0===this.local$groupFlag&&(this.local$groupFlag=1);var t=new Wo;if(t.groupName="Person individual group",t.personGroupFlag=this.local$groupFlag,this.local$groupPerson=t,this.state_0=2,this.result_0=this.local$$receiver.personGroupDao.insertAsync(this.local$groupPerson,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(this.local$groupPerson.groupUid=this.result_0,this.local$entity.personGroupUid=this.local$groupPerson.groupUid,this.state_0=3,this.result_0=this.local$$receiver.personDao.insertAsync(this.local$entity,this),this.result_0===T)return T;continue;case 3:if(this.local$entity.personUid=this.result_0,this.state_0=4,this.result_0=this.local$$receiver.personGroupMemberDao.insertAsync(Es(this.local$entity.personUid,this.local$entity.personGroupUid),this),this.result_0===T)return T;continue;case 4:if(this.state_0=5,this.result_0=Ux(this.local$$receiver,this.local$entity,In,9,this.local$entity.personUid,this),this.result_0===T)return T;continue;case 5:return this.local$entity;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},vx.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},vx.prototype=Object.create(L.prototype),vx.prototype.constructor=vx,vx.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=HA(this.local$report,this.local$loggedInPersonUid,hn(this.local$$receiver));this.local$seriesDataList=ot(),this.local$yAxisValueFormatter={v:null},this.local$xAxisList=ni(),this.local$tmp$_0=t.entries.iterator(),this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(!this.local$tmp$_0.hasNext()){this.state_0=8;continue}if(this.local$element=this.local$tmp$_0.next(),this.state_0=3,this.result_0=ys(this.local$$receiver.statementDao,this.local$element.value.sqlStr,this.local$element.value.queryParams,this),this.result_0===T)return T;continue;case 3:this.local$reportList=this.result_0,this.local$series=this.local$element.key;var e,n=ot();for(e=this.local$reportList.iterator();e.hasNext();){var i;null!=(i=e.next().xAxis)&&n.add_11rb$(i)}switch(this.local$xAxisList.addAll_brywnq$(Gt(n)),201!==this.local$series.reportSeriesYAxis&&200!==this.local$series.reportSeriesYAxis||(this.local$yAxisValueFormatter.v=new Fx),this.local$series.reportSeriesSubGroup){case 307:var o,r=ot();for(o=this.local$reportList.iterator();o.hasNext();){var s,a;null!=(s=null!=(a=o.next().subgroup)?de(a):null)&&r.add_11rb$(s)}var c=qt(Gt(r));if(this.state_0=6,this.result_0=this.local$$receiver.clazzDao.getClassNamesFromListOfIds_gox9k8$(c,this),this.result_0===T)return T;continue;case 306:var l,u=HC().genderMap,h=Eo(go(u.size));for(l=u.entries.iterator();l.hasNext();){var d=l.next();h.put_xwzc9p$(d.key.toString(),d.value)}this.local$tmp$_1=new qx(h,this.local$impl,this.local$context),this.state_0=7;continue;case 304:var p,_=ot();for(p=this.local$reportList.iterator();p.hasNext();){var m,f;null!=(m=null!=(f=p.next().subgroup)?de(f):null)&&_.add_11rb$(m)}var g=qt(Gt(_));if(this.state_0=5,this.result_0=this.local$$receiver.contentEntryDao.getContentEntryFromUids_gox9k8$(g,this),this.result_0===T)return T;continue;case 309:var $,y=ot();for($=this.local$reportList.iterator();$.hasNext();){var b,S;null!=(b=null!=(S=$.next().subgroup)?de(S):null)&&y.add_11rb$(b)}var v=qt(Gt(y));if(this.state_0=4,this.result_0=this.local$$receiver.leavingReasonDao.getReasonsFromUids_gox9k8$(v,this),this.result_0===T)return T;continue;case 308:var C,N=nA,L=Eo(go(N.size));for(C=N.entries.iterator();C.hasNext();){var z=C.next();L.put_xwzc9p$(z.key.toString(),z.value)}this.local$tmp$_1=new qx(L,this.local$impl,this.local$context),this.state_0=7;continue;default:this.local$tmp$_1=null,this.state_0=7;continue}case 4:var w,R=this.result_0,A=st(rt(R,10));for(w=R.iterator();w.hasNext();){var x=w.next();A.add_11rb$(E(x.uid,x.labelName))}var I=De(A);this.local$tmp$_1=new Bx(I),this.state_0=7;continue;case 5:var U,D=this.result_0,P=st(rt(D,10));for(U=D.iterator();U.hasNext();){var M=U.next();P.add_11rb$(E(M.uid,M.labelName))}var k=De(P);this.local$tmp$_1=new Bx(k),this.state_0=7;continue;case 6:var j,G=this.result_0,q=st(rt(G,10));for(j=G.iterator();j.hasNext();){var F=j.next();q.add_11rb$(E(F.uid,F.labelName))}var B=De(q);this.local$tmp$_1=new Bx(B),this.state_0=7;continue;case 7:var W=this.local$tmp$_1;this.local$seriesDataList.add_11rb$(new Lx(this.local$reportList,W,this.local$series)),this.state_0=2;continue;case 8:switch(this.local$report.xAxis){case 307:var H,V=this.local$$receiver.clazzDao,K=st(rt(this.local$xAxisList,10));for(H=this.local$xAxisList.iterator();H.hasNext();){var X=H.next();K.add_11rb$(de(X))}if(this.state_0=11,this.result_0=V.getClassNamesFromListOfIds_gox9k8$(K,this),this.result_0===T)return T;continue;case 306:var J,Y=HC().genderMap,Q=Eo(go(Y.size));for(J=Y.entries.iterator();J.hasNext();){var Z=J.next();Q.put_xwzc9p$(Z.key.toString(),Z.value)}this.local$tmp$=new qx(Q,this.local$impl,this.local$context),this.state_0=12;continue;case 304:var tt,et=this.local$$receiver.contentEntryDao,nt=st(rt(this.local$xAxisList,10));for(tt=this.local$xAxisList.iterator();tt.hasNext();){var it=tt.next();nt.add_11rb$(de(it))}if(this.state_0=10,this.result_0=et.getContentEntryFromUids_gox9k8$(nt,this),this.result_0===T)return T;continue;case 308:var at,ct=nA,lt=Eo(go(ct.size));for(at=ct.entries.iterator();at.hasNext();){var ut=at.next();lt.put_xwzc9p$(ut.key.toString(),ut.value)}this.local$tmp$=new qx(lt,this.local$impl,this.local$context),this.state_0=12;continue;case 309:var ht,dt=this.local$$receiver.leavingReasonDao,pt=st(rt(this.local$xAxisList,10));for(ht=this.local$xAxisList.iterator();ht.hasNext();){var _t=ht.next();pt.add_11rb$(de(_t))}if(this.state_0=9,this.result_0=dt.getReasonsFromUids_gox9k8$(pt,this),this.result_0===T)return T;continue;default:this.local$tmp$=null,this.state_0=12;continue}case 9:var mt,ft=this.result_0,gt=st(rt(ft,10));for(mt=ft.iterator();mt.hasNext();){var $t=mt.next();gt.add_11rb$(E($t.uid,$t.labelName))}var Et=Di(De(gt),E(O,this.local$impl.getString(2051,this.local$context)));this.local$tmp$=new Bx(Et),this.state_0=12;continue;case 10:var yt,bt=this.result_0,St=st(rt(bt,10));for(yt=bt.iterator();yt.hasNext();){var vt=yt.next();St.add_11rb$(E(vt.uid,vt.labelName))}var Ct=De(St);this.local$tmp$=new Bx(Ct),this.state_0=12;continue;case 11:var Nt,Tt=this.result_0,Lt=st(rt(Tt,10));for(Nt=Tt.iterator();Nt.hasNext();){var zt=Nt.next();Lt.add_11rb$(E(zt.uid,zt.labelName))}var wt=De(Lt);this.local$tmp$=new Bx(wt),this.state_0=12;continue;case 12:var Ot=this.local$tmp$;return new Tx(qt(this.local$seriesDataList),this.local$report,this.local$yAxisValueFormatter.v,Ot);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Tx.$metadata$={kind:v,simpleName:"ChartData",interfaces:[]},Tx.prototype.component1=function(){return this.seriesData},Tx.prototype.component2=function(){return this.reportWithFilters},Tx.prototype.component3=function(){return this.yAxisValueFormatter},Tx.prototype.component4=function(){return this.xAxisValueFormatter},Tx.prototype.copy_n90rta$=function(t,e,n,i){return new Tx(void 0===t?this.seriesData:t,void 0===e?this.reportWithFilters:e,void 0===n?this.yAxisValueFormatter:n,void 0===i?this.xAxisValueFormatter:i)},Tx.prototype.toString=function(){return"ChartData(seriesData="+e.toString(this.seriesData)+", reportWithFilters="+e.toString(this.reportWithFilters)+", yAxisValueFormatter="+e.toString(this.yAxisValueFormatter)+", xAxisValueFormatter="+e.toString(this.xAxisValueFormatter)+")"},Tx.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*(t=31*t+e.hashCode(this.seriesData)|0)+e.hashCode(this.reportWithFilters)|0)+e.hashCode(this.yAxisValueFormatter)|0)+e.hashCode(this.xAxisValueFormatter)|0},Tx.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.seriesData,t.seriesData)&&e.equals(this.reportWithFilters,t.reportWithFilters)&&e.equals(this.yAxisValueFormatter,t.yAxisValueFormatter)&&e.equals(this.xAxisValueFormatter,t.xAxisValueFormatter)},Lx.$metadata$={kind:v,simpleName:"SeriesData",interfaces:[]},Lx.prototype.component1=function(){return this.dataList},Lx.prototype.component2=function(){return this.subGroupFormatter},Lx.prototype.component3=function(){return this.series},Lx.prototype.copy_9z8j9w$=function(t,e,n){return new Lx(void 0===t?this.dataList:t,void 0===e?this.subGroupFormatter:e,void 0===n?this.series:n)},Lx.prototype.toString=function(){return"SeriesData(dataList="+e.toString(this.dataList)+", subGroupFormatter="+e.toString(this.subGroupFormatter)+", series="+e.toString(this.series)+")"},Lx.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*t+e.hashCode(this.dataList)|0)+e.hashCode(this.subGroupFormatter)|0)+e.hashCode(this.series)|0},Lx.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.dataList,t.dataList)&&e.equals(this.subGroupFormatter,t.subGroupFormatter)&&e.equals(this.series,t.series)},zx.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},zx.prototype=Object.create(L.prototype),zx.prototype.constructor=zx,zx.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(this.state_0=2,this.result_0=this.local$$receiver.personGroupDao.insertAsync(us(He(this.local$school.schoolName)+" - "+this.local$impl.getString(2399,this.local$context)),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(this.local$school.schoolTeachersPersonGroupUid=this.result_0,this.state_0=3,this.result_0=this.local$$receiver.personGroupDao.insertAsync(us(He(this.local$school.schoolName)+" - "+this.local$impl.getString(2075,this.local$context)),this),this.result_0===T)return T;continue;case 3:if(this.local$school.schoolStudentsPersonGroupUid=this.result_0,this.state_0=4,this.result_0=this.local$$receiver.personGroupDao.insertAsync(us(He(this.local$school.schoolName)+" - "+this.local$impl.getString(2648,this.local$context)),this),this.result_0===T)return T;continue;case 4:if(this.local$school.schoolPendingStudentsPersonGroupUid=this.result_0,null!=(t=null==this.local$school.schoolCode?this.local$school:null)&&(t.schoolCode=hs(6)),this.state_0=5,this.result_0=this.local$$receiver.schoolDao.insertAsync(this.local$school,this),this.result_0===T)return T;continue;case 5:return this.local$school.schoolUid=this.result_0,this.local$school.schoolUid;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ox.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Ox.prototype=Object.create(L.prototype),Ox.prototype.constructor=Ox,Ox.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,e;if(this.state_0=2,this.result_0=this.local$$receiver.schoolDao.findByUidAsync_s8cxhz$(this.local$schoolUid,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(null==(t=this.result_0))throw pe("School does not exist");if(this.local$school=t,this.state_0=3,this.result_0=this.local$$receiver.schoolMemberDao.findBySchoolAndPersonAndRole_6qtc6d$(this.local$schoolUid,this.local$personUid,this.local$role,void 0,this),this.result_0===T)return T;continue;case 3:var n=this.result_0;if(n.isEmpty()){if(this.local$$receiver_0=Ss(),this.local$$receiver_0.schoolMemberActive=!0,this.local$$receiver_0.schoolMemberPersonUid=this.local$personUid,this.local$$receiver_0.schoolMemberSchoolUid=this.local$schoolUid,this.local$$receiver_0.schoolMemberRole=this.local$role,this.local$$receiver_0.schoolMemberJoinDate=et(),this.state_0=4,this.result_0=this.local$$receiver.schoolMemberDao.insertAsync(this.local$$receiver_0,this),this.result_0===T)return T;continue}return n.get_za3lpa$(0);case 4:switch(this.local$$receiver_0.schoolMemberUid=this.result_0,this.local$schoolMember=this.local$$receiver_0,this.local$role){case 1004:e=this.local$school.schoolTeachersPersonGroupUid;break;case 1003:e=this.local$school.schoolStudentsPersonGroupUid;break;case 1005:e=this.local$school.schoolPendingStudentsPersonGroupUid;break;default:e=null}var i=e;if(null!=i){var o=this.local$$receiver.personGroupMemberDao,r=new ms;if(r.groupMemberPersonUid=this.local$schoolMember.schoolMemberPersonUid,r.groupMemberGroupUid=i,this.state_0=5,this.result_0=o.insertAsync(r,this),this.result_0===T)return T;continue}this.state_0=6;continue;case 5:this.state_0=6;continue;case 6:return this.local$schoolMember;case 7:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Ax.$metadata$={kind:v,simpleName:"ScopedGrantResult",interfaces:[]},Ax.prototype.component1=function(){return this.sgUid},Ax.prototype.copy_s8cxhz$=function(t){return new Ax(void 0===t?this.sgUid:t)},Ax.prototype.toString=function(){return"ScopedGrantResult(sgUid="+e.toString(this.sgUid)+")"},Ax.prototype.hashCode=function(){var t=0;return t=31*t+e.hashCode(this.sgUid)|0},Ax.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.sgUid,t.sgUid)},xx.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},xx.prototype=Object.create(L.prototype),xx.prototype.constructor=xx,xx.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t=this.local$$receiver.scopedGrantDao,e=new rr;if(e.sgGroupUid=this.local$toGroupUid,e.sgPermissions=this.local$permissions,e.sgTableId=this.local$scopeTableId,e.sgEntityUid=this.local$scopeEntityUid,this.state_0=2,this.result_0=t.insertAsync_y0tj3a$(e,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return new Ax(this.result_0);default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Dx.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Dx.prototype=Object.create(L.prototype),Dx.prototype.constructor=Dx,Dx.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t;if(this.state_0=2,this.result_0=this.local$closure$db.siteDao.getSiteAuthSaltAsync(this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(null==(t=this.result_0))throw z("insertAuthCredentials: No auth salt!");var e=t,n=this.local$closure$db.personAuth2Dao,i=new U,o=this.local$closure$personUid,r=this.local$closure$password,s=this.local$closure$pbkdf2Params;if(i.pauthUid=o,i.pauthMechanism=U.Companion.AUTH_MECH_PBKDF2_DOUBLE,i.pauthAuth=Jq(KA(r,e,s)),this.state_0=3,this.result_0=n.insertAsync_j8byhd$(i,this),this.result_0===T)return T;continue;case 3:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Mx.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},Mx.prototype=Object.create(L.prototype),Mx.prototype.constructor=Mx,Mx.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n,i,o,r=null!=(o=e.isType(i=null!=(n=e.isType(t=this.local$$receiver,At)?t:null)?n.db:null,k)?i:null)?o:this.local$$receiver;if(this.state_0=2,this.result_0=ut(r,void 0,Px(r,this.local$personUid,this.local$password,this.local$pbkdf2Params),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:return;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Gx.$metadata$={kind:ge,simpleName:"LabelValueFormatter",interfaces:[]},qx.prototype.format_za3rmp$=function(t){var e,n;return this.systemImpl.getString(null!=(n=this.map.get_11rb$("string"==typeof(e=t)?e:W()))?n:2051,this.context)},qx.prototype.formatAsList_pqjuzw$=function(t){var e,n=st(rt(t,10));for(e=t.iterator();e.hasNext();){var i=e.next();n.add_11rb$(this.format_za3rmp$(i))}return n},qx.$metadata$={kind:v,simpleName:"MessageIdFormatter",interfaces:[Gx]},Fx.prototype.format_za3rmp$=function(t){var e;return(("number"==typeof(e=t)?e:W())/36e5).toString()},Fx.prototype.formatAsList_pqjuzw$=function(t){var e,n=st(rt(t,10));for(e=t.iterator();e.hasNext();){var i=e.next();n.add_11rb$(this.format_za3rmp$(i))}return n},Fx.$metadata$={kind:v,simpleName:"TimeFormatter",interfaces:[Gx]},Bx.prototype.format_za3rmp$=function(t){var e,n;return null!=(n=this.uidMap.get_11rb$(de("string"==typeof(e=t)?e:W())))?n:"label not found: "+t.toString()},Bx.prototype.formatAsList_pqjuzw$=function(t){var e,n=st(rt(t,10));for(e=t.iterator();e.hasNext();){var i=e.next();n.add_11rb$(YA(this.format_za3rmp$(i)))}return n},Bx.$metadata$={kind:v,simpleName:"UidAndLabelFormatter",interfaces:[Gx]},Hx.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var Vx=null;function Kx(){return null===Vx&&new Hx,Vx}function Xx(){Qx()}function Jx(){Yx=this,this.VIEW_NAME="AccountListView",this.ARG_FILTER_BY_ENDPOINT="filterByEndpoint",this.ARG_ACTIVE_ACCOUNT_MODE="activeAccountMode",this.ACTIVE_ACCOUNT_MODE_HEADER="header",this.ACTIVE_ACCOUNT_MODE_INLIST="inlist"}Jx.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var Yx=null;function Qx(){return null===Yx&&new Jx,Yx}function Zx(){nI()}function tI(){eI=this,this.VIEW_NAME="BitmaskEditView"}Xx.$metadata$={kind:ge,simpleName:"AccountListView",interfaces:[CG]},tI.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var eI=null;function nI(){return null===eI&&new tI,eI}function iI(){sI()}function oI(){rI=this,this.VIEW_NAME="ChatDetailView"}Zx.$metadata$={kind:ge,simpleName:"BitmaskEditView",interfaces:[Wj]},oI.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var rI=null;function sI(){return null===rI&&new oI,rI}function aI(){uI()}function cI(){lI=this,this.VIEW_NAME="ChatListView"}iI.$metadata$={kind:ge,simpleName:"ChatDetailView",interfaces:[Bj]},cI.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var lI=null;function uI(){return null===lI&&new cI,lI}function hI(){_I()}function dI(){pI=this,this.VIEW_NAME="CourseAssignmentDetailOverviewView"}aI.$metadata$={kind:ge,simpleName:"ChatListView",interfaces:[SG]},dI.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var pI=null;function _I(){return null===pI&&new dI,pI}function mI(){$I()}function fI(){gI=this,this.VIEW_NAME="CourseAssignmentDetailStudentProgressOverviewListView"}hI.$metadata$={kind:ge,simpleName:"ClazzAssignmentDetailOverviewView",interfaces:[Bj]},fI.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var gI=null;function $I(){return null===gI&&new fI,gI}function EI(){SI()}function yI(){bI=this,this.VIEW_NAME="CourseAssignmentDetailStudentProgressListView"}mI.$metadata$={kind:ge,simpleName:"ClazzAssignmentDetailStudentProgressOverviewListView",interfaces:[SG]},yI.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var bI=null;function SI(){return null===bI&&new yI,bI}function vI(){TI()}function CI(){NI=this,this.VIEW_NAME="CourseAssignmentDetailView"}EI.$metadata$={kind:ge,simpleName:"ClazzAssignmentDetailStudentProgressView",interfaces:[Bj]},CI.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var NI=null;function TI(){return null===NI&&new CI,NI}function LI(){OI()}function zI(){wI=this,this.VIEW_NAME="CourseAssignmentEditView",this.TERMINOLOGY_ID="clazzTerminologyId"}vI.$metadata$={kind:ge,simpleName:"ClazzAssignmentDetailView",interfaces:[Bj]},zI.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var wI=null;function OI(){return null===wI&&new zI,wI}function RI(){II()}function AI(){xI=this,this.VIEW_NAME="CourseDetailOverviewView"}LI.$metadata$={kind:ge,simpleName:"ClazzAssignmentEditView",interfaces:[Wj]},AI.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var xI=null;function II(){return null===xI&&new AI,xI}function UI(){MI()}function DI(){PI=this,this.VIEW_NAME="CourseDetailView",this.ARG_TABS="courseTabs"}RI.$metadata$={kind:ge,simpleName:"ClazzDetailOverviewView",interfaces:[Bj]},DI.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var PI=null;function MI(){return null===PI&&new DI,PI}function kI(){qI()}function jI(){GI=this,this.VIEW_NAME="CourseEditView"}UI.$metadata$={kind:ge,simpleName:"ClazzDetailView",interfaces:[Bj]},jI.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var GI=null;function qI(){return null===GI&&new jI,GI}function FI(){HI()}function BI(){WI=this,this.VIEW_NAME="CourseEnrolmentEditView"}kI.$metadata$={kind:ge,simpleName:"ClazzEdit2View",interfaces:[Wj]},BI.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var WI=null;function HI(){return null===WI&&new BI,WI}function VI(){JI()}function KI(){XI=this,this.VIEW_NAME="CourseEnrolmentListView"}FI.$metadata$={kind:ge,simpleName:"ClazzEnrolmentEditView",interfaces:[Wj]},KI.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var XI=null;function JI(){return null===XI&&new KI,XI}function YI(){tU()}function QI(){ZI=this,this.VIEW_NAME="Courses",this.VIEW_NAME_HOME="CoursesHome",this.ARG_FILTER_EXCLUDE_SELECTED_CLASS_LIST="excludeAlreadySelectedClazzList"}VI.$metadata$={kind:ge,simpleName:"ClazzEnrolmentListView",interfaces:[SG]},QI.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var ZI=null;function tU(){return null===ZI&&new QI,ZI}function eU(){oU()}function nU(){iU=this,this.VIEW_NAME="CourseLogEditAttendanceEditView",this.ARG_NEW_CLAZZLOG="newclazzlog"}YI.$metadata$={kind:ge,simpleName:"ClazzList2View",interfaces:[SG]},nU.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var iU=null;function oU(){return null===iU&&new nU,iU}function rU(){cU()}function sU(){aU=this,this.VIEW_NAME="CourseLogEditView"}eU.$metadata$={kind:ge,simpleName:"ClazzLogEditAttendanceView",interfaces:[Wj]},sU.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var aU=null;function cU(){return null===aU&&new sU,aU}function lU(){dU()}function uU(){hU=this,this.VIEW_NAME="CourseLogListAttendanceView"}rU.$metadata$={kind:ge,simpleName:"ClazzLogEditView",interfaces:[Wj]},uU.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var hU=null;function dU(){return null===hU&&new uU,hU}function pU(){fU()}function _U(){mU=this,this.ARG_HIDE_CLAZZES="hideClazzes",this.VIEW_NAME="CourseMemberListView"}lU.$metadata$={kind:ge,simpleName:"ClazzLogListAttendanceView",interfaces:[SG]},_U.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var mU=null;function fU(){return null===mU&&new _U,mU}function gU(){yU()}function $U(){EU=this,this.FILTER_MODE_NONE=0,this.FILTER_MODE_EPUB=1}pU.$metadata$={kind:ge,simpleName:"ClazzMemberListView",interfaces:[SG]},gU.prototype.mountContainer_dckg8j$=function(t,e,n,i,o){return void 0===n&&(n=0),o?o(t,e,n,i):this.mountContainer_dckg8j$$default(t,e,n,i)},$U.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var EU=null;function yU(){return null===EU&&new $U,EU}function bU(){CU()}function SU(){vU=this,this.VIEW_NAME="PersonWithStatementDisplayListView"}gU.$metadata$={kind:ge,simpleName:"ContainerMounter",interfaces:[]},SU.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var vU=null;function CU(){return null===vU&&new SU,vU}function NU(){zU()}function TU(){LU=this,this.VIEW_NAME="ContentEntryDetailOverviewView"}bU.$metadata$={kind:ge,simpleName:"ContentEntryDetailAttemptsListView",interfaces:[SG]},TU.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var LU=null;function zU(){return null===LU&&new TU,LU}function wU(){AU()}function OU(){RU=this,this.VIEW_NAME="ContentEntryDetail"}NU.$metadata$={kind:ge,simpleName:"ContentEntryDetailOverviewView",interfaces:[Bj]},OU.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var RU=null;function AU(){return null===RU&&new OU,RU}function xU(){DU()}function IU(){UU=this,this.VIEW_NAME="ContentEntryEditView",this.ARG_IMPORTED_METADATA="metadata",this.ARG_URI="uri",this.BLOCK_REQUIRED="isBlockRequired"}wU.$metadata$={kind:ge,simpleName:"ContentEntryDetailView",interfaces:[Bj]},IU.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var UU=null;function DU(){return null===UU&&new IU,UU}function PU(){jU()}function MU(){kU=this,this.CONTENT_ENTRY_PARENT_UID="ContentEntryParentUid",this.VIEW_NAME="ContentEntryImportLinkView",this.END_POINT_URL="endpointUrl"}xU.$metadata$={kind:ge,simpleName:"ContentEntryEdit2View",interfaces:[Wj]},MU.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var kU=null;function jU(){return null===kU&&new MU,kU}function GU(){BU()}function qU(){FU=this,this.ARG_SHOW_ONLY_FOLDER_FILTER="folder",this.ARG_DISPLAY_CONTENT_BY_OPTION="displayOption",this.ARG_DISPLAY_CONTENT_BY_PARENT="displayContentByParent",this.VIEW_NAME_HOME="ContentEntryListHome",this.VIEW_NAME="ContentEntryListView",this.FOLDER_VIEW_NAME="ContentEntryListFolderView",this.ARG_MOVING_CONTENT="SelectedItems",this.ARG_MOVING_COUNT="moveCount",this.ARG_SELECT_FOLDER_VISIBLE="selectFolderVisible",this.ARG_USE_CHIPS="contentEntryListChips"}PU.$metadata$={kind:ge,simpleName:"ContentEntryImportLinkView",interfaces:[CG]},qU.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var FU=null;function BU(){return null===FU&&new qU,FU}function WU(){KU()}function HU(){VU=this,this.VIEW_NAME="CourseDiscussionDetailView"}GU.$metadata$={kind:ge,simpleName:"ContentEntryList2View",interfaces:[SG]},HU.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var VU=null;function KU(){return null===VU&&new HU,VU}function XU(){QU()}function JU(){YU=this,this.VIEW_NAME="CourseDiscussionBlockEdit"}WU.$metadata$={kind:ge,simpleName:"CourseDiscussionDetailView",interfaces:[Bj]},JU.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var YU=null;function QU(){return null===YU&&new JU,YU}function ZU(){nD()}function tD(){eD=this,this.VIEW_NAME="CourseGroupSetDetailView"}XU.$metadata$={kind:ge,simpleName:"CourseDiscussionEditView",interfaces:[Wj]},tD.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var eD=null;function nD(){return null===eD&&new tD,eD}function iD(){sD()}function oD(){rD=this,this.VIEW_NAME="CourseGroupSetEditView"}ZU.$metadata$={kind:ge,simpleName:"CourseGroupSetDetailView",interfaces:[Bj]},oD.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var rD=null;function sD(){return null===rD&&new oD,rD}function aD(){uD()}function cD(){lD=this,this.VIEW_NAME="CourseGroupSetListView",this.ARG_SHOW_INDIVIDUAL="individualSubmission"}iD.$metadata$={kind:ge,simpleName:"CourseGroupSetEditView",interfaces:[Wj]},cD.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var lD=null;function uD(){return null===lD&&new cD,lD}function hD(){_D()}function dD(){pD=this,this.VIEW_NAME="CourseTerminologyEditView"}aD.$metadata$={kind:ge,simpleName:"CourseGroupSetListView",interfaces:[SG]},dD.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var pD=null;function _D(){return null===pD&&new dD,pD}function mD(){$D()}function fD(){gD=this,this.VIEW_NAME="CourseTerminologyListView"}hD.$metadata$={kind:ge,simpleName:"CourseTerminologyEditView",interfaces:[Wj]},fD.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var gD=null;function $D(){return null===gD&&new fD,gD}function ED(){DateRangeView$Companion_getInstance()}function yD(){vD()}function bD(){SD=this,this.VIEW_NAME="DiscussionPostDetailView"}mD.$metadata$={kind:ge,simpleName:"CourseTerminologyListView",interfaces:[SG]},bD.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var SD=null;function vD(){return null===SD&&new bD,SD}function CD(){LD()}function ND(){TD=this,this.VIEW_NAME="DiscussionPostEdit"}yD.$metadata$={kind:ge,simpleName:"DiscussionPostDetailView",interfaces:[Bj]},ND.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var TD=null;function LD(){return null===TD&&new ND,TD}function zD(){RD()}function wD(){OD=this,this.VIEW_NAME="DiscussionTopicDetailView"}CD.$metadata$={kind:ge,simpleName:"DiscussionPostEditView",interfaces:[Wj]},wD.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var OD=null;function RD(){return null===OD&&new wD,OD}function AD(){UD()}function xD(){ID=this,this.VIEW_NAME="DiscussionTopicEdit"}zD.$metadata$={kind:ge,simpleName:"DiscussionTopicDetailView",interfaces:[Bj]},xD.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var ID=null;function UD(){return null===ID&&new xD,ID}function DD(){kD()}function PD(){MD=this,this.VIEW_NAME="EpubContentView",this.ARG_INITIAL_PAGE_HREF="initialPageHref"}AD.$metadata$={kind:ge,simpleName:"DiscussionTopicEditView",interfaces:[Wj]},DD.prototype.scrollToSpinePosition_vqvrqt$=function(t,e,n){void 0===e&&(e=null),n?n(t,e):this.scrollToSpinePosition_vqvrqt$$default(t,e)},PD.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var MD=null;function kD(){return null===MD&&new PD,MD}function jD(){FD()}function GD(){qD=this,this.ARG_ERR_CODE="errCode",this.ARG_MESSAGE="msg",this.ARG_STACKTRACE_PREFKEY="stacktraceKey",this.ARG_PRESENTER_URI="fromUri",this.VIEW_NAME="ErrorReport"}DD.$metadata$={kind:ge,simpleName:"EpubContentView",interfaces:[CG]},GD.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var qD=null;function FD(){return null===qD&&new GD,qD}function BD(){VD()}function WD(){HD=this,this.VIEW_NAME="HarView",this.ARG_CONTENT_ENTRY_ID="entryId",this.ARG_CONTAINER_UID="containerUid"}WD.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var HD=null;function VD(){return null===HD&&new WD,HD}function KD(){YD()}function XD(){JD=this,this.VIEW_NAME="HolidayCalendarEditView"}XD.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var JD=null;function YD(){return null===JD&&new XD,JD}function QD(){eP()}function ZD(){tP=this,this.VIEW_NAME="HolidayCalendarListView"}KD.$metadata$={kind:ge,simpleName:"HolidayCalendarEditView",interfaces:[Wj]},ZD.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var tP=null;function eP(){return null===tP&&new ZD,tP}function nP(){rP()}function iP(){oP=this,this.VIEW_NAME="HolidayEditView"}QD.$metadata$={kind:ge,simpleName:"HolidayCalendarListView",interfaces:[SG]},iP.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var oP=null;function rP(){return null===oP&&new iP,oP}function sP(){lP()}function aP(){cP=this,this.VIEW_NAME="StringDetailView",this.DISPLAY_TEXT="textToDisplay",this.DISPLAY_TITLE="titleToDisplay"}nP.$metadata$={kind:ge,simpleName:"HolidayEditView",interfaces:[Wj]},aP.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var cP=null;function lP(){return null===cP&&new aP,cP}function uP(){pP()}function hP(){dP=this,this.VIEW_NAME="InviteViaLink"}sP.$metadata$={kind:ge,simpleName:"HtmlTextViewDetailView",interfaces:[Bj]},hP.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var dP=null;function pP(){return null===dP&&new hP,dP}function _P(){}function mP(){$P()}function fP(){gP=this,this.VIEW_NAME="JoinWithCode"}uP.$metadata$={kind:ge,simpleName:"InviteViaLinkView",interfaces:[CG]},_P.$metadata$={kind:ge,simpleName:"ItemTouchHelperListener",interfaces:[]},fP.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var gP=null;function $P(){return null===gP&&new fP,gP}function EP(){SP()}function yP(){bP=this,this.VIEW_NAME="LanguageEditEditView"}mP.$metadata$={kind:ge,simpleName:"JoinWithCodeView",interfaces:[CG]},yP.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var bP=null;function SP(){return null===bP&&new yP,bP}function vP(){TP()}function CP(){NP=this,this.VIEW_NAME="LanguageListView"}EP.$metadata$={kind:ge,simpleName:"LanguageEditView",interfaces:[Wj]},CP.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var NP=null;function TP(){return null===NP&&new CP,NP}function LP(){OP()}function zP(){wP=this,this.VIEW_NAME="LearnerGroupMemberList"}vP.$metadata$={kind:ge,simpleName:"LanguageListView",interfaces:[SG]},zP.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var wP=null;function OP(){return null===wP&&new zP,wP}function RP(){IP()}function AP(){xP=this,this.VIEW_NAME="LeavingReasonEditEditView"}AP.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var xP=null;function IP(){return null===xP&&new AP,xP}function UP(){MP()}function DP(){PP=this,this.VIEW_NAME="LeavingReasonListView"}RP.$metadata$={kind:ge,simpleName:"LeavingReasonEditView",interfaces:[Wj]},DP.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var PP=null;function MP(){return null===PP&&new DP,PP}function kP(){qP()}function jP(){GP=this,this.VIEW_NAME="LoginView",this.ARG_NO_GUEST="NoGuest"}UP.$metadata$={kind:ge,simpleName:"LeavingReasonListView",interfaces:[SG]},jP.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var GP=null;function qP(){return null===GP&&new jP,GP}function FP(){HP()}function BP(){WP=this,this.VIEW_NAME="ModuleCourseBlockEdit"}kP.$metadata$={kind:ge,simpleName:"Login2View",interfaces:[CG]},BP.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var WP=null;function HP(){return null===WP&&new BP,WP}function VP(){OnBoardingView$Companion_getInstance()}function KP(){YP()}function XP(){JP=this,this.VIEW_NAME="PDFContentView"}FP.$metadata$={kind:ge,simpleName:"ModuleCourseBlockEditView",interfaces:[Wj]},XP.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var JP=null;function YP(){return null===JP&&new XP,JP}function QP(){eM()}function ZP(){tM=this,this.VIEW_NAME="ParentConsentManagement"}KP.$metadata$={kind:ge,simpleName:"PDFContentView",interfaces:[CG]},ZP.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var tM=null;function eM(){return null===tM&&new ZP,tM}function nM(){rM()}function iM(){oM=this,this.VIEW_NAME="PersonAccountEditView",this.BLOCK_CHARACTER_SET="~!#$%^&*()_+-[]'\\/,|\"{} "}QP.$metadata$={kind:ge,simpleName:"ParentalConsentManagementView",interfaces:[Wj]},iM.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var oM=null;function rM(){return null===oM&&new iM,oM}function sM(){lM()}function aM(){cM=this,this.VIEW_NAME="PersonDetailView"}nM.$metadata$={kind:ge,simpleName:"PersonAccountEditView",interfaces:[Wj]},aM.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var cM=null;function lM(){return null===cM&&new aM,cM}function uM(){pM()}function hM(){dM=this,this.VIEW_NAME="PersonEditView",this.VIEW_NAME_REGISTER="PersonEditRegisterView",this.ARG_REGISTRATION_MODE="RegMode",this.ARG_DATE_OF_BIRTH="DateOfBirth",this.REGISTER_VIA_LINK="RegViaLink",this.REGISTER_MODE_NONE=0,this.REGISTER_MODE_ENABLED=1,this.REGISTER_MODE_MINOR=2}sM.$metadata$={kind:ge,simpleName:"PersonDetailView",interfaces:[Bj]},hM.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var dM=null;function pM(){return null===dM&&new hM,dM}function _M(){PersonGroupEditView$Companion_getInstance()}function mM(){PersonGroupListView$Companion_getInstance()}function fM(){EM()}function gM(){$M=this,this.VIEW_NAME="PersonListView",this.VIEW_NAME_HOME="PersonListHome",this.ARG_FILTER_EXCLUDE_MEMBERSOFCLAZZ="exlcudeFromClazz",this.ARG_FILTER_EXCLUDE_MEMBERSOFSCHOOL="excludeFromSchool",this.ARG_EXCLUDE_PERSONUIDS_LIST="excludeAlreadySelectedList"}uM.$metadata$={kind:ge,simpleName:"PersonEditView",interfaces:[Wj]},gM.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var $M=null;function EM(){return null===$M&&new gM,$M}function yM(){vM()}function bM(){SM=this,this.VIEW_NAME="RedirectView",this.TAG_REDIRECTED="app.redirected"}fM.$metadata$={kind:ge,simpleName:"PersonListView",interfaces:[SG]},bM.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var SM=null;function vM(){return null===SM&&new bM,SM}function CM(){LM()}function NM(){TM=this,this.VIEW_NAME="RegisterAgeRedirect"}yM.$metadata$={kind:ge,simpleName:"RedirectView",interfaces:[CG]},NM.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var TM=null;function LM(){return null===TM&&new NM,TM}function zM(){RM()}function wM(){OM=this,this.ARG_USERNAME="username",this.ARG_PASSWORD="password",this.ARG_PARENT_CONTACT="parentContact",this.VIEW_NAME="RegisterMinorWaitForParent"}CM.$metadata$={kind:ge,simpleName:"RegisterAgeRedirectView",interfaces:[CG]},wM.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var OM=null;function RM(){return null===OM&&new wM,OM}function AM(){ReportDashboardView$Companion_getInstance()}function xM(){DM()}function IM(){UM=this,this.VIEW_NAME="ReportDetailView"}IM.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var UM=null;function DM(){return null===UM&&new IM,UM}function PM(){jM()}function MM(){kM=this,this.VIEW_NAME="ReportEditView"}xM.$metadata$={kind:ge,simpleName:"ReportDetailView",interfaces:[Bj]},MM.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var kM=null;function jM(){return null===kM&&new MM,kM}function GM(){BM()}function qM(){FM=this,this.VIEW_NAME="ReportFilterEditView"}PM.$metadata$={kind:ge,simpleName:"ReportEditView",interfaces:[Wj]},qM.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var FM=null;function BM(){return null===FM&&new qM,FM}function WM(){KM()}function HM(){VM=this,this.VIEW_NAME="ReportListView"}GM.$metadata$={kind:ge,simpleName:"ReportFilterEditView",interfaces:[Wj]},HM.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var VM=null;function KM(){return null===VM&&new HM,VM}function XM(){QM()}function JM(){YM=this,this.VIEW_NAME="ReportTemplateListView"}WM.$metadata$={kind:ge,simpleName:"ReportListView",interfaces:[SG]},JM.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var YM=null;function QM(){return null===YM&&new JM,YM}function ZM(){nk()}function tk(){ek=this,this.VIEW_NAME="ScheduleEdit",this.ARG_SCHEDULE="schedule"}XM.$metadata$={kind:ge,simpleName:"ReportTemplateListView",interfaces:[SG]},tk.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var ek=null;function nk(){return null===ek&&new tk,ek}function ik(){sk()}function ok(){rk=this,this.VIEW_NAME="SchoolWithHolidayCalendarDetailView"}ZM.$metadata$={kind:ge,simpleName:"ScheduleEditView",interfaces:[Wj]},ok.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var rk=null;function sk(){return null===rk&&new ok,rk}function ak(){uk()}function ck(){lk=this,this.VIEW_NAME="SchoolDetailView"}ik.$metadata$={kind:ge,simpleName:"SchoolDetailOverviewView",interfaces:[Bj]},ck.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var lk=null;function uk(){return null===lk&&new ck,lk}function hk(){_k()}function dk(){pk=this,this.VIEW_NAME="InstitutionEditView"}ak.$metadata$={kind:ge,simpleName:"SchoolDetailView",interfaces:[Bj]},dk.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var pk=null;function _k(){return null===pk&&new dk,pk}function mk(){$k()}function fk(){gk=this,this.VIEW_NAME="InstitutionListView"}hk.$metadata$={kind:ge,simpleName:"SchoolEditView",interfaces:[Wj]},fk.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var gk=null;function $k(){return null===gk&&new fk,gk}function Ek(){Sk()}function yk(){bk=this,this.VIEW_NAME="SchoolMemberListView"}mk.$metadata$={kind:ge,simpleName:"SchoolListView",interfaces:[SG]},yk.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var bk=null;function Sk(){return null===bk&&new yk,bk}function vk(){Tk()}function Ck(){Nk=this,this.VIEW_NAME="ScopedGrantDetail"}Ek.$metadata$={kind:ge,simpleName:"SchoolMemberListView",interfaces:[SG]},Ck.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var Nk=null;function Tk(){return null===Nk&&new Ck,Nk}function Lk(){Ok()}function zk(){wk=this,this.VIEW_NAME="ScopedGrantEdit",this.ARG_GRANT_TO_GROUPUID="grantToGroup",this.ARG_GRANT_TO_NAME="grantToName",this.ARG_GRANT_ON_TABLE_ID="grantTableId",this.ARG_GRANT_ON_ENTITY_UID="grantEntityUid",this.ARG_PERMISSION_LIST="permissionList"}zk.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var wk=null;function Ok(){return null===wk&&new zk,wk}function Rk(){Ik()}function Ak(){xk=this,this.VIEW_NAME="ScopedGrantList",this.ARG_FILTER_TABLE_ID="filterTable",this.ARG_FILTER_ENTITY_UID="filterEntity"}Lk.$metadata$={kind:ge,simpleName:"ScopedGrantEditView",interfaces:[Wj]},Ak.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var xk=null;function Ik(){return null===xk&&new Ak,xk}function Uk(){Mk()}function Dk(){Pk=this,this.VIEW_NAME="SelectExtractFileView"}Dk.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var Pk=null;function Mk(){return null===Pk&&new Dk,Pk}function kk(){qk()}function jk(){Gk=this,this.VIEW_NAME="SelectFileView",this.ARG_MIMETYPE_SELECTED="selectMimeTypeMode",this.SELECTION_MODE_GALLERY="video/*;audio/*",this.SELECTION_MODE_VIDEO="video/*",this.SELECTION_MODE_AUDIO="audio/*",this.SELECTION_MODE_IMAGE="image/*",this.SELECTION_MODE_ANY="*/*",this.SELECTION_MODE_DOC=fn(be(["application/vnd.oasis.opendocument.text","application/vnd.oasis.opendocument.presentation","application/msword","application/vnd.ms-powerpoint","application/pdf","application/octet-stream"]),";")}Uk.$metadata$={kind:ge,simpleName:"SelectExtractFileView",interfaces:[Wj]},jk.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var Gk=null;function qk(){return null===Gk&&new jk,Gk}function Fk(){Hk()}function Bk(){Wk=this,this.VIEW_NAME="SelectFolderView"}kk.$metadata$={kind:ge,simpleName:"SelectFileView",interfaces:[Wj]},Bk.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var Wk=null;function Hk(){return null===Wk&&new Bk,Wk}function Vk(){Jk()}function Kk(){Xk=this,this.VIEW_NAME="PersonWithSessionListView",this.ARG_CONTEXT_REGISTRATION="contextRegistration"}Kk.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var Xk=null;function Jk(){return null===Xk&&new Kk,Xk}function Yk(){tj()}function Qk(){Zk=this,this.VIEW_NAME="SettingsFromToolbar"}Vk.$metadata$={kind:ge,simpleName:"SessionListView",interfaces:[SG]},Qk.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var Zk=null;function tj(){return null===Zk&&new Qk,Zk}function ej(){oj()}function nj(){ij=this,this.VIEW_NAME="SiteDetailView",this.ARG_SHOW_BY_DISPLAYED_LOCALE="showByDisplayedLocale"}Yk.$metadata$={kind:ge,simpleName:"SettingsView",interfaces:[CG]},nj.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var ij=null;function oj(){return null===ij&&new nj,ij}function rj(){cj()}function sj(){aj=this,this.VIEW_NAME="SiteEditView"}ej.$metadata$={kind:ge,simpleName:"SiteDetailView",interfaces:[Bj]},sj.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var aj=null;function cj(){return null===aj&&new sj,aj}function lj(){dj()}function uj(){hj=this,this.VIEW_NAME="SiteEnterLinkView"}rj.$metadata$={kind:ge,simpleName:"SiteEditView",interfaces:[Wj]},uj.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var hj=null;function dj(){return null===hj&&new uj,hj}function pj(){fj()}function _j(){mj=this,this.VIEW_NAME="SiteTermsDetailView",this.VIEW_NAME_ACCEPT_TERMS="SiteTermsDetailAcceptTerms",this.ARG_USE_DISPLAY_LOCALE="useDisplayLocale",this.ARG_SHOW_ACCEPT_BUTTON="showAccept"}_j.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var mj=null;function fj(){return null===mj&&new _j,mj}function gj(){yj()}function $j(){Ej=this,this.VIEW_NAME="SiteTermsEditView"}pj.$metadata$={kind:ge,simpleName:"SiteTermsDetailView",interfaces:[Bj]},$j.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var Ej=null;function yj(){return null===Ej&&new $j,Ej}function bj(){SplashScreenView$Companion_getInstance()}function Sj(){Nj()}function vj(){Cj=this,this.VIEW_NAME="StatementListView"}gj.$metadata$={kind:ge,simpleName:"SiteTermsEditView",interfaces:[Wj]},vj.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var Cj=null;function Nj(){return null===Cj&&new vj,Cj}function Tj(){wj()}function Lj(){zj=this,this.VIEW_NAME="TextAssignmentEditView",this.ASSIGNMENT_ID="assignment",this.EDIT_ENABLED="editEnabled"}Sj.$metadata$={kind:ge,simpleName:"StatementListView",interfaces:[SG]},Lj.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var zj=null;function wj(){return null===zj&&new Lj,zj}function Oj(){xj()}function Rj(){Aj=this,this.VIEW_NAME="TextCourseBlockEdit"}Tj.$metadata$={kind:ge,simpleName:"TextAssignmentEditView",interfaces:[Wj]},Rj.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var Aj=null;function xj(){return null===Aj&&new Rj,Aj}function Ij(){kj()}function Uj(){Mj=this,this.VIEW_NAME="TimeZoneListView"}Oj.$metadata$={kind:ge,simpleName:"TextCourseBlockEditView",interfaces:[Wj]},Uj.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var Dj,Pj,Mj=null;function kj(){return null===Mj&&new Uj,Mj}function jj(t,e){Wn.call(this),this.name$=t,this.ordinal$=e}function Gj(){Gj=function(){},Dj=new jj("GONE",0),Pj=new jj("FAB",1)}function qj(){return Gj(),Dj}function Fj(){return Gj(),Pj}function Bj(){}function Wj(){oG()}function Hj(){iG=this,this.ARG_ENTITY_JSON="entity"}Ij.$metadata$={kind:ge,simpleName:"TimeZoneListView",interfaces:[CG]},jj.$metadata$={kind:v,simpleName:"EditButtonMode",interfaces:[Wn]},jj.values=function(){return[qj(),Fj()]},jj.valueOf_61zpoe$=function(t){switch(t){case"GONE":return qj();case"FAB":return Fj();default:Hn("No enum constant com.ustadmobile.core.view.EditButtonMode."+t)}},Bj.$metadata$={kind:ge,simpleName:"UstadDetailView",interfaces:[vG]},Hj.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var Vj,Kj,Xj,Jj,Yj,Qj,Zj,tG,eG,nG,iG=null;function oG(){return null===iG&&new Hj,iG}function rG(t,e,n){Wn.call(this),this.mode=n,this.name$=t,this.ordinal$=e}function sG(){sG=function(){},Vj=new rG("BROWSER",0,"browser"),Kj=new rG("PICKER",1,"picker")}function aG(){return sG(),Vj}function cG(){return sG(),Kj}function lG(t){switch(t){case"BROWSER":return aG();case"PICKER":return cG();default:Hn("No enum constant com.ustadmobile.core.view.ListViewMode."+t)}}function uG(t,e){Wn.call(this),this.name$=t,this.ordinal$=e}function hG(){hG=function(){},Xj=new uG("FIRST_ITEM",0),Jj=new uG("FAB",1),Yj=new uG("NONE",2)}function dG(){return hG(),Xj}function pG(){return hG(),Jj}function _G(){return hG(),Yj}function mG(t,e,n,i){Wn.call(this),this.messageId=n,this.commandId=i,this.name$=t,this.ordinal$=e}function fG(){fG=function(){},Qj=new mG("EDIT",0,2317,1),Zj=new mG("DELETE",1,2020,2),tG=new mG("MOVE",2,2110,3),eG=new mG("HIDE",3,2111,4),nG=new mG("UNHIDE",4,2112,5)}function gG(){return fG(),Qj}function $G(){return fG(),Zj}function EG(){return fG(),tG}function yG(){return fG(),eG}function bG(){return fG(),nG}function SG(){}function vG(){}function CG(){zG()}function NG(){return nt}function TG(){LG=this,this.ARG_ENTITY_UID="entityUid",this.ARG_CONTAINER_UID="containerUid",this.ARG_PARENT_ENTRY_UID="parentUid",this.ARG_PARENT_ENTRY_TITLE="parentTitle",this.ARG_CONTENT_ENTRY_UID="entryid",this.ARG_LEARNER_GROUP_UID="learnerGroupUid",this.ARG_NO_IFRAMES="noiframe",this.ARG_SCHOOL_UID="schoolUid",this.ARG_LEAF="content_type",this.ARG_FILTER_BY_SCHOOLUID="filterBySchoolUid",this.ARG_FILTER_BY_ROLE="filterByRole",this.ARG_LISTMODE="listMode",this.ARG_GETRESULTMODE="getResultMode",this.ARG_LISTADDMODE="listAddMode",this.ARG_FILTER_BY_PERMISSION="filterByPermission",this.ARG_CLAZZUID="clazzUid",this.ARG_FILTER_BY_PERSONGROUPUID="filterByPersonGroupUid",this.ARG_FILTER_BY_ENROLMENT_ROLE="filterByEnrolmentRole",this.ARG_CLAZZ_ASSIGNMENT_UID="clazzAssignmentUid",this.ARG_SUBMITER_UID="clazzAssignmentSubmitterUid",this.ARG_PERSON_UID="personUid",this.ARG_NEXT="next",this.ARG_SITE="site",this.ARG_SERVER_URL="serverUrl",this.ARG_DEEPLINK="argIntent",this.ARG_SNACK_MESSAGE="snack_message",this.ARG_CODE="argCode",this.ARG_CODE_TABLE="argCodeTable",this.ARG_ENTITY_NAME="argEntityName",this.CURRENT_DEST="",this.ROOT_DEST="root",this.ARG_CURRENT="current",this.ARG_GO_TO_COMPLETE="goToComplete",this.ARG_SAVE_TO_DB="saveDb",this.ARG_POPUPTO_ON_FINISH="popUpToOnFinish",this.ARG_RESULT_DEST_ID="result_dest",this.ARG_RESULT_DEST_VIEWNAME="result_viewname",this.ARG_REGISTRATION_ALLOWED="registration_allowed",this.ARG_RESULT_DEST_KEY="result_key",this.ARG_INTENT_MESSAGE="intMsg",this.ARG_TITLE="title",this.ARG_NAV_CHILD="navChild",this.ARG_ACTIVE_TAB_INDEX="activeTabIndex",this.ARG_MAX_DATE_OF_BIRTH="maxDob",this.MASTER_SERVER_ROOT_ENTRY_UID=vs}Wj.$metadata$={kind:ge,simpleName:"UstadEditView",interfaces:[vG]},rG.$metadata$={kind:v,simpleName:"ListViewMode",interfaces:[Wn]},rG.values=function(){return[aG(),cG()]},rG.valueOf_61zpoe$=lG,uG.$metadata$={kind:v,simpleName:"ListViewAddMode",interfaces:[Wn]},uG.values=function(){return[dG(),pG(),_G()]},uG.valueOf_61zpoe$=function(t){switch(t){case"FIRST_ITEM":return dG();case"FAB":return pG();case"NONE":return _G();default:Hn("No enum constant com.ustadmobile.core.view.ListViewAddMode."+t)}},mG.$metadata$={kind:v,simpleName:"SelectionOption",interfaces:[Wn]},mG.values=function(){return[gG(),$G(),EG(),yG(),bG()]},mG.valueOf_61zpoe$=function(t){switch(t){case"EDIT":return gG();case"DELETE":return $G();case"MOVE":return EG();case"HIDE":return yG();case"UNHIDE":return bG();default:Hn("No enum constant com.ustadmobile.core.view.SelectionOption."+t)}},SG.$metadata$={kind:ge,simpleName:"UstadListView",interfaces:[CG]},vG.$metadata$={kind:ge,simpleName:"UstadSingleEntityView",interfaces:[CG]},CG.prototype.showSnackBar_9pu0dj$=function(t,e,n,i){void 0===e&&(e=NG),void 0===n&&(n=0),i?i(t,e,n):this.showSnackBar_9pu0dj$$default(t,e,n)},TG.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var LG=null;function zG(){return null===LG&&new TG,LG}function wG(){}function OG(){VerbEntityListView$Companion_getInstance()}function RG(){IG()}function AG(){xG=this,this.VIEW_NAME="VideoContentView"}CG.$metadata$={kind:ge,simpleName:"UstadView",interfaces:[]},AG.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var xG=null;function IG(){return null===xG&&new AG,xG}function UG(){MG()}function DG(){PG=this,this.VIEW_NAME="WebChunkView"}RG.$metadata$={kind:ge,simpleName:"VideoContentView",interfaces:[CG]},DG.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var PG=null;function MG(){return null===PG&&new DG,PG}function kG(){qG()}function jG(){GG=this,this.VIEW_NAME="XapiPackageContentView"}UG.$metadata$={kind:ge,simpleName:"WebChunkView",interfaces:[CG]},jG.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var GG=null;function qG(){return null===GG&&new jG,GG}function FG(t,e,n,i){bT.call(this,t,e,n,i)}function BG(t){return function(){return"SelectExtractFilePresenter: Reading uri : "+t}}function WG(t){return function(){return"SelectExtractFilePresenter: starting upload : "+t}}function HG(){return"SelectExtractFilePresenter: response ready "}function VG(t,e,n){return function(i){if(4===t.readyState){lt.Napier.d_9h2hdn$(void 0,void 0,HG);var o=e.json.decodeFromString_awif5v$(fl().serializer(),t.responseText);n.complete_11rb$(o)}return nt}}function KG(t,e,n,i){L.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$completeableMetadataResult=void 0,this.local$uri=e,this.local$fileName=n}function XG(t,n,i,o){var r,s;Bz.call(this,t,n,i,o),this.httpClient_j2ejeo$_0=H(o,e.isType(r=F(M(P(Zt),[],!1)),B)?r:W(),null).provideDelegate_tpuvb9$(this,JG),this.mountHandler_s6cmki$_0=H(this,e.isType(s=F(M(P(gU),[],!1)),B)?s:W(),null).provideDelegate_tpuvb9$(this,YG)}kG.$metadata$={kind:ge,simpleName:"XapiPackageContentView",interfaces:[CG]},KG.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},KG.prototype=Object.create(L.prototype),KG.prototype.constructor=KG,KG.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$completeableMetadataResult=Pe(),lt.Napier.d_9h2hdn$(void 0,void 0,BG(this.local$uri)),this.state_0=2,this.result_0=Cs(window.fetch(this.local$uri),this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:if(this.state_0=3,this.result_0=Cs(this.result_0.blob(),this),this.result_0===T)return T;continue;case 3:var t=this.result_0;lt.Napier.d_9h2hdn$(void 0,void 0,WG(this.local$uri));var e=new FormData;e.append("file",t,this.local$fileName);var n=new XMLHttpRequest,i=this.$this.accountManager.activeEndpoint.url+"contentupload/upload";if(n.open("POST",i),n.send(e),n.onreadystatechange=VG(n,this.$this,this.local$completeableMetadataResult),this.state_0=4,this.result_0=this.local$completeableMetadataResult.await(this),this.result_0===T)return T;continue;case 4:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},FG.prototype.extractMetadata_puj7f4$=function(t,e,n,i){var o=new KG(this,t,e,n);return i?o:o.doResume(null)},FG.$metadata$={kind:v,simpleName:"SelectExtractFilePresenter",interfaces:[bT]};var JG=new N("httpClient");Object.defineProperty(XG.prototype,"httpClient_0",{configurable:!0,get:function(){return this.httpClient_j2ejeo$_0.value}});var YG=new N("mountHandler");function QG(t,e,n,i){L.call(this,i),this.$controller=n,this.exceptionState_0=1,this.local$this$VideoContentPresenter=t,this.local$baseMountUrl=void 0}function ZG(t,n,i,o){var r,s,a;nw.call(this,t,n,i,o),this.httpClient_2rz8t7$_0=H(o,e.isType(r=F(M(P(Zt),[],!1)),B)?r:W(),null).provideDelegate_tpuvb9$(this,tq),this.mountHandler_fd9ms9$_0=H(this,e.isType(s=F(M(P(gU),[],!1)),B)?s:W(),null).provideDelegate_tpuvb9$(this,eq),this.systemImpl_e5tokp$_0=H(this,e.isType(a=F(M(P(aq),[],!1)),B)?a:W(),null).provideDelegate_tpuvb9$(this,nq)}Object.defineProperty(XG.prototype,"mountHandler_0",{configurable:!0,get:function(){return this.mountHandler_s6cmki$_0.value}}),QG.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[L]},QG.prototype=Object.create(L.prototype),QG.prototype.constructor=QG,QG.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n,i,o;if(this.state_0=2,this.result_0=this.local$this$VideoContentPresenter.mountHandler_0.mountContainer_dckg8j$(this.local$this$VideoContentPresenter.accountManager.activeAccount.endpointUrl,this.local$this$VideoContentPresenter.containerUid_8be2vx$,void 0,this),this.result_0===T)return T;continue;case 1:throw this.exception_0;case 2:this.local$baseMountUrl=this.result_0;var r=this.local$this$VideoContentPresenter.httpClient_0,s=XR().joinPaths_vqirvp$([this.local$baseMountUrl,"/videoParams"]),a=new le;if(Ct(a,s),a.method=ue.Companion.Get,this.state_0=3,this.result_0=new he(a,r).execute(this),this.result_0===T)return T;continue;case 3:var c;this.result_0;var l,u=this.result_0.call,h=se.JsType,d=ne;t:do{try{l=M(ne,[],!1)}catch(t){if(e.isType(t,ce)){l=null;break t}throw t}}while(0);if(this.state_0=4,this.result_0=u.bodyNullable_qi9ur9$(ae(h,d,l),this),this.result_0===T)return T;continue;case 4:this.result_0="string"==typeof(c=this.result_0)?c:W();var p=this.result_0,_=JSON.parse(p),m=XR().joinPaths_vqirvp$([this.local$baseMountUrl,null!=(t=_.videoPath)?t:""]),f=null;return x(null!=(n=_.audioPath)?n.ceUid:null,O)||(f=Ns(null!=(o=null!=(i=_.audioPath)?i.cePath:null)?o:"")),this.local$this$VideoContentPresenter.view.videoParams=new Xz(m,f,_.srtLangList,_.srtMap),this.local$this$VideoContentPresenter.view.loading=!1,nt;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},XG.prototype.handleOnResume=function(){var t;it(tt.GlobalScope,void 0,void 0,(t=this,function(e,n,i){var o=new QG(t,e,this,n);return i?o:o.doResume(null)}))},XG.$metadata$={kind:v,simpleName:"VideoContentPresenter",interfaces:[Bz]};var tq=new N("httpClient");Object.defineProperty(ZG.prototype,"httpClient_0",{configurable:!0,get:function(){return this.httpClient_2rz8t7$_0.value}});var eq=new N("mountHandler");Object.defineProperty(ZG.prototype,"mountHandler_0",{configurable:!0,get:function(){return this.mountHandler_fd9ms9$_0.value}});var nq=new N("systemImpl");function iq(t,e){L.call(this,e),this.exceptionState_0=1,this.$this=t}function oq(t,e){this.storages_0=ot();for(var n=Gq().getStorage().length,i=0;i=t;e--){var n=this.navStack_0.get_za3lpa$(e);this.navStack_0.removeAt_za3lpa$(e),lt.Napier.d_82mfvz$(this.logPrefix_0+": remove "+n.viewName)}},fq.prototype.stackStorageKey_0=function(t){return this.storagePrefix_0+"."+yq().SUBKEY_STACKITEMS_0+"."+this.navStack_0.size},fq.prototype.handleHashChange_9lovpo$=function(t,n){try{if(-1===this.get_stateIndex_0(window.history))this.set_stateIndex_0(window.history,this.navStack_0.size-1|0),lt.Napier.d_82mfvz$(this.logPrefix_0+": user went forwards to "+t+" . stack=("+this.dumpNavStackToString_0()+")");else{lt.Napier.d_82mfvz$(this.logPrefix_0+": user went back. new stack = ("+this.dumpNavStackToString_0()+")");var i=this.pendingNavigation_0;null!=i&&(this.pendingNavigation_0=null,lt.Napier.d_82mfvz$(this.logPrefix_0+" : run pending navigation to "+He(i)+" stack="+this.dumpNavStackToString_0()),window.location.replace("#/"+He(i)))}}catch(n){if(!e.isType(n,on))throw n;lt.Napier.d_82mfvz$(this.logPrefix_0+" Not an ustad url: ignoring "+t)}},fq.prototype.getBackStackEntry_61zpoe$=function(t){var e,n=this.navStack_0;t:do{for(var i=n.listIterator_za3lpa$(n.size);i.hasPrevious();){var o=i.previous();if(x(o.viewName,t)){e=o;break t}}e=null}while(0);return e},fq.prototype.calcNumStepsToGoBack_0=function(t,e){var n,i,o,r,s,a,c;switch(t){case"root":s=null!=(i=null!=(n=Un(this.navStack_0))?n.viewName:null)?i:vM().VIEW_NAME;break;case"":s=null!=(r=null!=(o=ao(this.navStack_0))?o.viewName:null)?r:vM().VIEW_NAME;break;default:s=t}var l,u=s,h=this.navStack_0.subList_vux9f0$(0,this.currentStackIndex_0+1|0);t:do{for(var d=h.listIterator_za3lpa$(h.size);d.hasPrevious();)if(x(d.previous().viewName,u)){l=d.nextIndex();break t}l=-1}while(0);var p=l,_=mn.max(p,0),m=h.size-1-_|0;a=e?m+1|0:m,c=h.size;var f=a;return mn.min(f,c)},fq.prototype.popBackStack_ivxn3r$=function(t,e){var n=this.calcNumStepsToGoBack_0(t,e);lt.Napier.d_82mfvz$(this.logPrefix_0+": POPBACKSTACK to: '"+t+"' (inclusive = "+e+") go back "+n+" steps navStack="+this.dumpNavStackToString_0()),0!==n&&window.history.go(-1*n|0)},fq.prototype.navigate_oc2wlg$$default=function(t,e,n){lt.Napier.d_82mfvz$(this.logPrefix_0+" NAVIGATE to "+t+" popUpTo='"+He(n.popUpToViewName)+"' (inclusive="+n.popUpToInclusive+") Current Stack="+this.dumpNavStackToString_0());var i=n.popUpToViewName,o=null!=i?this.calcNumStepsToGoBack_0(i,n.popUpToInclusive):0,r=t+(e.isEmpty()?"":"?"+Ls(e)),s=this.currentStackIndex_0;if(0===o){this.popOffNavStackFrom_0(s+1|0);var a=new wq(t,e,r,this.stackStorageKey_0(s+1|0),this.json_0);this.navStack_0.add_11rb$(a),this.saveStackSizeAndIndex_0(),lt.Napier.d_82mfvz$("UstadNavController: navigate directly to #/"+r+" navStack="+this.dumpNavStackToString_0()),window.location.assign("#/"+r)}else if(1===o)sessionStorage.removeItem(this.stackStorageKey_0(s)),this.navStack_0.set_wxm5ur$(this.currentStackIndex_0,new wq(t,e,r,this.stackStorageKey_0(s),this.json_0)),this.saveStackSizeAndIndex_0(),lt.Napier.d_82mfvz$("UstadNavController: navigate using location.replace to #/"+r+" navStack="+this.dumpNavStackToString_0()),window.location.replace("#/"+r);else{this.pendingNavigation_0=r,this.popOffNavStackFrom_0(this.navStack_0.size-o|0);var c=this.navStack_0,l=new wq(t,e,r,this.stackStorageKey_0(this.navStack_0.size),this.json_0);c.add_11rb$(l),this.saveStackSizeAndIndex_0(),lt.Napier.d_82mfvz$("UstadNavController: popoff, then navigate using replace. Go "+(o-1|0)+" steps back first. navStack="+this.dumpNavStackToString_0()),window.history.go(0|-(o-1|0))}},fq.prototype.navigateUp=function(){return lt.Napier.d_82mfvz$("NavControllerJs: : NAVIGATEUP"),window.history.go(-1),!0},fq.prototype.unplug=function(){window.removeEventListener("hashchange",this.hashChangeListener_0)},$q.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var Eq=null;function yq(){return null===Eq&&new $q,Eq}function bq(t,e,n,i){Cq(),this.viewName=t,this.arguments=e,this.jsViewUri=n,this.stateHandle=i}function Sq(){vq=this}fq.$metadata$={kind:v,simpleName:"NavControllerJs",interfaces:[oO]},Sq.prototype.serializer=function(){return Lq()},Sq.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var vq=null;function Cq(){return null===vq&&new Sq,vq}function Nq(){this.descriptor_4xczin$_0=new X("com.ustadmobile.core.navigation.BackStackEntryInfo",this,4),this.descriptor.addElement_ivxn3r$("viewName",!1),this.descriptor.addElement_ivxn3r$("arguments",!1),this.descriptor.addElement_ivxn3r$("jsViewUri",!1),this.descriptor.addElement_ivxn3r$("stateHandle",!1),Tq=this}Object.defineProperty(Nq.prototype,"descriptor",{configurable:!0,get:function(){return this.descriptor_4xczin$_0}}),Nq.prototype.serialize_55azsf$=function(t,e){var n=t.beginStructure_24f42q$(this.descriptor);n.encodeStringElement_iij8qq$(this.descriptor,0,e.viewName),n.encodeSerializableElement_r4qlx7$(this.descriptor,1,new ws(Q.StringSerializer,Q.StringSerializer),e.arguments),n.encodeStringElement_iij8qq$(this.descriptor,2,e.jsViewUri),n.encodeSerializableElement_r4qlx7$(this.descriptor,3,new ws(Q.StringSerializer,Q.StringSerializer),e.stateHandle),n.endStructure_24f42q$(this.descriptor)},Nq.prototype.deserialize_bq71mq$=function(t){var e,n,i,o,r,s=0,a=t.beginStructure_24f42q$(this.descriptor);t:for(;;)switch(e=a.decodeElementIndex_24f42q$(this.descriptor)){case 0:n=a.decodeStringElement_szpzho$(this.descriptor,0),s|=1;break;case 1:i=a.decodeSerializableElement_12e8id$(this.descriptor,1,new ws(Q.StringSerializer,Q.StringSerializer),i),s|=2;break;case 2:o=a.decodeStringElement_szpzho$(this.descriptor,2),s|=4;break;case 3:r=a.decodeSerializableElement_12e8id$(this.descriptor,3,new ws(Q.StringSerializer,Q.StringSerializer),r),s|=8;break;case-1:break t;default:throw new Y(e)}return a.endStructure_24f42q$(this.descriptor),zq(s,n,i,o,r,null)},Nq.prototype.childSerializers=function(){return[Q.StringSerializer,new ws(Q.StringSerializer,Q.StringSerializer),Q.StringSerializer,new ws(Q.StringSerializer,Q.StringSerializer)]},Nq.$metadata$={kind:S,simpleName:"$serializer",interfaces:[Z]};var Tq=null;function Lq(){return null===Tq&&new Nq,Tq}function zq(t,e,n,i,o,r){var s=r||Object.create(bq.prototype);if(0==(1&t))throw dt("viewName");if(s.viewName=e,0==(2&t))throw dt("arguments");if(s.arguments=n,0==(4&t))throw dt("jsViewUri");if(s.jsViewUri=i,0==(8&t))throw dt("stateHandle");return s.stateHandle=o,s}function wq(t,e,n,i,o,r,s){Aq(),void 0===r&&(r=null),void 0===s&&(s=!0),this.viewName_s1uxms$_0=t,this.arguments_1jkc5m$_0=e,this.jsViewUri_8be2vx$=n,this.storageKey_0=i,this.json_0=o,this.savedStateHandle_s5k0xu$_0=new xq(r,this),s&&this.saveToSessionStorage_0()}function Oq(){Rq=this}bq.$metadata$={kind:v,simpleName:"BackStackEntryInfo",interfaces:[]},bq.prototype.component1=function(){return this.viewName},bq.prototype.component2=function(){return this.arguments},bq.prototype.component3=function(){return this.jsViewUri},bq.prototype.component4=function(){return this.stateHandle},bq.prototype.copy_8hqv3o$=function(t,e,n,i){return new bq(void 0===t?this.viewName:t,void 0===e?this.arguments:e,void 0===n?this.jsViewUri:n,void 0===i?this.stateHandle:i)},bq.prototype.toString=function(){return"BackStackEntryInfo(viewName="+e.toString(this.viewName)+", arguments="+e.toString(this.arguments)+", jsViewUri="+e.toString(this.jsViewUri)+", stateHandle="+e.toString(this.stateHandle)+")"},bq.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*(t=31*t+e.hashCode(this.viewName)|0)+e.hashCode(this.arguments)|0)+e.hashCode(this.jsViewUri)|0)+e.hashCode(this.stateHandle)|0},bq.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.viewName,t.viewName)&&e.equals(this.arguments,t.arguments)&&e.equals(this.jsViewUri,t.jsViewUri)&&e.equals(this.stateHandle,t.stateHandle)},Object.defineProperty(wq.prototype,"viewName",{get:function(){return this.viewName_s1uxms$_0}}),Object.defineProperty(wq.prototype,"arguments",{get:function(){return this.arguments_1jkc5m$_0}}),Object.defineProperty(wq.prototype,"savedStateHandle",{configurable:!0,get:function(){return this.savedStateHandle_s5k0xu$_0}}),wq.prototype.onCommit=function(){this.saveToSessionStorage_0()},wq.prototype.saveToSessionStorage_0=function(){var t;if(null==(t=this.json_0))throw z("StackEntry JSON is null");var e=t,n=new bq(this.viewName,this.arguments,this.jsViewUri_8be2vx$,this.savedStateHandle.currentValues_8be2vx$);sessionStorage.setItem(this.storageKey_0,e.encodeToString_tf03ej$(Cq().serializer(),n))},Oq.prototype.loadFromSessionStorage_rrylbp$=function(t,e){var n;if(null==(n=sessionStorage.getItem(t)))throw z("loadFromSessionStorage: "+t+" is empty");var i=n,o=e.decodeFromString_awif5v$(Cq().serializer(),i);return new wq(o.viewName,o.arguments,o.jsViewUri,t,e,o.stateHandle,!1)},Oq.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var Rq=null;function Aq(){return null===Rq&&new Oq,Rq}function xq(t,e){var n;if(void 0===t&&(t=null),void 0===e&&(e=null),this.commitListener_0=e,this.mLiveData_8be2vx$=mt(),null!=t)for(n=t.entries.iterator();n.hasNext();){var i=n.next(),o=this.mLiveData_8be2vx$,r=i.key,s=Sn(i.value);o.put_xwzc9p$(r,s)}}function Iq(){}function Uq(t){return t.first+"="+He(t.second)}function Dq(){}function Pq(t,e){return f(new Date(e)).tz(t).utcOffset()}function Mq(t,n,i,o){var r,s=Et(t).directDI.Instance_ohrpre$(e.isType(r=F(M(P(Pt),[],!1)),B)?r:W(),null);return qt(s.decodeFromString_awif5v$(n,o))}function kq(){jq=this}wq.$metadata$={kind:v,simpleName:"UstadBackStackEntryJs",interfaces:[Iq,nO]},Iq.$metadata$={kind:ge,simpleName:"CommitListener",interfaces:[]},Object.defineProperty(xq.prototype,"currentValues_8be2vx$",{configurable:!0,get:function(){var t,e=this.mLiveData_8be2vx$,n=st(e.size);for(t=e.entries.iterator();t.hasNext();){var i,o,r=t.next();n.add_11rb$(E(r.key,null!=(o=null!=(i=r.value)?i.getValue():null)?o.toString():null))}var s,a=ot();for(s=n.iterator();s.hasNext();){var c=s.next();null!=c.second&&a.add_11rb$(c)}var l,u=$o(go(rt(a,10)),16),h=Eo(u);for(l=a.iterator();l.hasNext();){var d=l.next();h.put_xwzc9p$(d.first,d.second)}return h}}),xq.prototype.set_umlfku$=function(t,e){var n,i=this.mLiveData_8be2vx$,o=Sn(e);i.put_xwzc9p$(t,o),null!=(n=this.commitListener_0)&&n.onCommit()},xq.prototype.get_ytbaoo$=function(t){var e;return null!=(e=this.mLiveData_8be2vx$.get_11rb$(t))?e.getValue():null},xq.prototype.getLiveData_ytbaoo$=function(t){var e,n=this.mLiveData_8be2vx$,i=n.get_11rb$(t);if(null==i){var o=Sn(null);n.put_xwzc9p$(t,o),e=o}else e=i;return e},xq.prototype.dumpToString=function(){var t,e=this.mLiveData_8be2vx$.entries,n=st(rt(e,10));for(t=e.iterator();t.hasNext();){var i,o=t.next();n.add_11rb$(E(o.key,null!=(i=o.value)?i.getValue():null))}return fn(n,void 0,void 0,void 0,void 0,void 0,Uq)},xq.$metadata$={kind:v,simpleName:"UstadSavedStateHandleJs",interfaces:[sO]},Dq.prototype.requestClazzLogCreation_icxydn$=function(t,e,n,i){},Dq.$metadata$={kind:v,simpleName:"ClazzLogCreatorManagerJs",interfaces:[fO]},kq.prototype.getStorage=function(){return[]},kq.prototype.deleteFile_61zpoe$=function(t){return!1},kq.prototype.createDir_61zpoe$=function(t){},kq.prototype.createTempDir_61zpoe$=function(t){return""},kq.$metadata$={kind:S,simpleName:"StorageUtil",interfaces:[]};var jq=null;function Gq(){return null===jq&&new kq,jq}function qq(){Wq()}function Fq(){Bq=this}Fq.prototype.encodeUTF8_61zpoe$=function(t){return encodeURIComponent(t)},Fq.prototype.decodeUTF8_61zpoe$=function(t){return decodeURIComponent(t)},Fq.$metadata$={kind:S,simpleName:"Companion",interfaces:[]};var Bq=null;function Wq(){return null===Bq&&new Fq,Bq}function Hq(){Vq=this,this.isWeb=!0}Hq.prototype.run_o14v8n$=function(t){},Hq.prototype.runAsync_3q5nlj$=function(t,e){},Hq.prototype.debug=function(){},Hq.prototype.log_za3rmp$=function(t){console.log("JS-LOG",JSON.stringify(t))},Hq.prototype.runIfNotJsAsync_g2bo5h$=function(t,e){},Hq.prototype.runIfNotJs_o14v8n$=function(t){},Hq.$metadata$={kind:S,simpleName:"UmPlatformUtil",interfaces:[]};var Vq=null;function Kq(){return null===Vq&&new Hq,Vq}function Xq(t){void 0===t&&(t="NoTag"),As.call(this),this.defaultTag_0=t}function Jq(t){var e=t;return i.from(e).toString("base64").toString()}function Yq(t){this.closure$observer=t}function Qq(t,e,n){t.observe_bi6zy5$(e,new Yq(n))}function Zq(t,e){var n=new Date(t);return n.getDate().toString()+"-"+n.getMonth()+"-"+n.getFullYear()}function tF(t,e,n,o){void 0===n&&(n=1e4),void 0===o&&(o=512);var r=t,s=g.Pbkdf2HmacSha1((new TextEncoder).encode(r),(new TextEncoder).encode(e),n,o/8|0);return i.from(new Uint8Array(s))}function eF(t){throw new Ee("An operation is not implemented: Not implemented on JS yet")}function nF(t){return/^(([^<>()[\]\\.,;:\s@\"]+(\.[^<>()[\]\\.,;:\s@\"]+)*)|(\".+\"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/.test(t)}function iF(t,e){var n,i;if(2!==t.getEventType())throw z("innerXml only works on a START_TAG event!");var o=null!=(i=null!=(n=t.getNode())?n.textContent:null)?i:"";return t.next(),o.substring(0,o.length-4|0).toString()}Xq.prototype.isEnable_flj0vq$=function(t,e){return!x(e,Os.Companion.LOG_TAG)||t!==Rs.DEBUG&&t!==Rs.VERBOSE},Xq.prototype.performLog_9kjzw7$=function(t,e,n,i){var o,r,s=null!=e?e:this.defaultTag_0;if(null!=i)r=null!=n?He(i)+"\n"+He(n.message):i;else{if(null==(o=null!=n?n.message:null))return;r=o}var a=r;switch(t.name){case"VERBOSE":console.log("VERBOSE "+s+" : "+a);break;case"DEBUG":console.log("DEBUG "+s+" : "+a);break;case"INFO":console.info("INFO "+s+" : "+a);break;case"WARNING":console.warn("WARNING "+s+" : "+a);break;case"ERROR":console.error("ERROR "+s+" : "+a);break;case"ASSERT":console.error("ASSERT "+s+" : "+a)}},Xq.$metadata$={kind:v,simpleName:"UstadAntilog",interfaces:[As]},Yq.prototype.onChanged_11rb$=function(t){this.closure$observer(t)},Yq.$metadata$={kind:v,interfaces:[bt]};var oF=t.com||(t.com={}),rF=oF.ustadmobile||(oF.ustadmobile={}),sF=rF.core||(rF.core={}),aF=sF.generated||(sF.generated={}),cF=aF.locale||(aF.locale={});Object.defineProperty(cF,"MessageIdMap",{get:Us});var lF=sF.account||(sF.account={});lF.AccountRegisterOptions=Ds,lF.AdultAccountRequiredException=Ps,$["Kodein-kodein-di"]=s,lF.AuthManager=Ms,Object.defineProperty(Bs,"Companion",{get:Vs}),Object.defineProperty(Bs,"$serializer",{get:Js}),lF.AuthResult_init_337u9i$=Ys,lF.AuthResult=Bs,lF.ConsentNotGrantedException=Qs,Object.defineProperty(Zs,"Companion",{get:na}),Object.defineProperty(Zs,"$serializer",{get:ra}),lF.Endpoint_init_q11ckg$=sa,lF.Endpoint=Zs,Object.defineProperty(aa,"Companion",{get:ua}),lF.EndpointScope=aa,lF.Pbkdf2Params=ha,Object.defineProperty(da,"Companion",{get:ma}),Object.defineProperty(da,"$serializer",{get:$a}),lF.RegisterRequest_init_l4ipzq$=Ea,lF.RegisterRequest=da,lF.UnauthorizedException=ya,Object.defineProperty(ba,"Companion",{get:Ca}),Object.defineProperty(ba,"$serializer",{get:La}),lF.UserSessionWithPersonAndEndpoint_init_bdaarl$=za,lF.UserSessionWithPersonAndEndpoint=ba,wa.ResponseWithAccount=Oa,$["ktor-ktor-client-core-js-legacy"]=d,Object.defineProperty(wa,"Companion",{get:rc}),lF.UstadAccountManager=wa;var uF=sF.catalog||(sF.catalog={}),hF=uF.contenttype||(uF.contenttype={});hF.AbstractContentEntryPlugin=ac,hF.PDFTypePlugin=uc,hF.VideoTypePlugin=hc;var dF=sF.contentformats||(sF.contentformats={});Object.defineProperty(dc,"Companion",{get:fc});var pF=dF.epub||(dF.epub={}),_F=pF.nav||(pF.nav={});_F.EpubNavDocument=dc,Object.defineProperty(gc,"Companion",{get:yc}),_F.EpubNavItem_init_js8l4o$=bc,_F.EpubNavItem=gc;var mF=pF.ocf||(pF.ocf={});mF.OcfDocument=Sc,mF.OcfRootFile=vc;var fF=pF.opf||(pF.opf={});fF.OpfCreator_init=Nc,fF.OpfCreator=Cc,Object.defineProperty(Lc,"Companion",{get:Oc}),Tc.LinkElement=Lc,Object.defineProperty(Tc,"Companion",{get:xc}),fF.OpfDocument=Tc,fF.OpfItem=Ic,Uc.Account=Dc;var gF=dF.xapi||(dF.xapi={});gF.Actor=Uc,Pc.Interaction=Mc,gF.Definition=Pc,kc.Score=jc,gF.Result=kc,gF.Statement=Gc,gF.Verb=qc,gF.XContext=Fc,gF.XObject=Bc;var $F=gF.endpoints||(gF.endpoints={});$F.XapiStateEndpoint=Wc,$F.XapiStatementEndpoint=Hc,$F.storeProgressStatement_5hz4b3$=Vc,$F.storeCompletedStatement_c8sais$=Kc;var EF=sF.contentjob||(sF.contentjob={});EF.ContentImportContentPlugin=Xc,Object.defineProperty(Jc,"Companion",{get:Zc}),EF.ContentJobManager=Jc,$["kotlinx-coroutines-core"]=c,EF.ContentJobProcessContext=tl,EF.ContentJobRunner=el,EF.ContentPlugin=al,EF.ContentPluginManager=cl,EF.ContentTypeNotSupportedException=ul,EF.DefaultContentPluginUploader=hl,EF.FatalContentJobException=dl,Object.defineProperty(pl,"Companion",{get:fl}),Object.defineProperty(pl,"$serializer",{get:El}),EF.MetadataResult_init_4600l1$=yl,EF.MetadataResult=pl,Object.defineProperty(EF,"SupportedContent",{get:vl});var yF=sF.controller||(sF.controller={});yF.AccountListPresenter=Cl,yF.AttemptListListener=Ol,Object.defineProperty(Rl,"Companion",{get:Il}),yF.BitmaskEditPresenter=Rl,Object.defineProperty(Ul,"Companion",{get:Yl}),yF.ChatDetailPresenter=Ul,Object.defineProperty(Ql,"Companion",{get:eu}),yF.ChatListPresenter=Ql,Object.defineProperty(nu,"Companion",{get:Au}),yF.ClazzAssignmentDetailOverviewPresenter=nu,yF.ClazzAssignmentDetailPresenter=xu,yF.ClazzAssignmentDetailStudentProgressOverviewListPresenter=ju,yF.ClazzAssignmentDetailStudentProgressPresenter=Gu,Object.defineProperty(_h,"WORDS",{get:fh}),Object.defineProperty(_h,"CHARS",{get:gh}),ph.TextLimitTypeOptions=_h,ph.TextLimitTypeOptionsMessageIdOption=Eh,Object.defineProperty(yh,"SUBMITTED",{get:Sh}),Object.defineProperty(yh,"GRADED",{get:vh}),ph.CompletionCriteriaOptions=yh,ph.CompletionCriteriaOptionsMessageIdOption=Nh,Object.defineProperty(Th,"SUBMIT_ALL_AT_ONCE",{get:zh}),Object.defineProperty(Th,"MULTIPLE_SUBMISSIONS",{get:wh}),ph.SubmissionPolicyOptions=Th,ph.SubmissionPolicyOptionsMessageIdOption=Rh,Object.defineProperty(Ah,"ANY",{get:Ih}),Object.defineProperty(Ah,"DOCUMENT",{get:Uh}),Object.defineProperty(Ah,"IMAGE",{get:Dh}),Object.defineProperty(Ah,"VIDEO",{get:Ph}),Object.defineProperty(Ah,"AUDIO",{get:Mh}),ph.FileTypeOptions=Ah,ph.FileTypeOptionsMessageIdOption=jh,Object.defineProperty(ph,"Companion",{get:Jh}),yF.ClazzAssignmentEditPresenter=ph,Object.defineProperty(Yh,"Companion",{get:ed}),yF.ClazzDetailOverviewPresenter=Yh,Object.defineProperty(nd,"Companion",{get:pd}),yF.ClazzDetailPresenter=nd,yF.asCourseBlockWithEntity_31v1o$=$d,Object.defineProperty(yd,"OPEN",{get:Sd}),Object.defineProperty(yd,"INVITE",{get:vd}),Ed.EnrolmentPolicyOptions=yd,Ed.EnrolmentPolicyOptionsMessageIdOption=Nd,Object.defineProperty(Ed,"Companion",{get:Qd}),yF.ClazzEdit2Presenter=Ed,Object.defineProperty(np,"STUDENT",{get:op}),Object.defineProperty(np,"TEACHER",{get:rp}),ep.RoleOptions=np,ep.RoleMessageIdOption=sp,Object.defineProperty(ap,"INPROGRESS",{get:lp}),Object.defineProperty(ap,"GRADUATED",{get:up}),Object.defineProperty(ap,"FAILED",{get:hp}),Object.defineProperty(ap,"DROPPED_OUT",{get:dp}),ep.OutcomeOptions=ap,ep.OutcomeMessageIdOption=_p,Object.defineProperty(ep,"Companion",{get:vp}),yF.ClazzEnrolmentEditPresenter=ep,yF.ClazzEnrolmentListPresenter=Cp,yF.ClazzListItemListener=Lp,Object.defineProperty(zp,"Companion",{get:Ap}),yF.ClazzListPresenter=zp,Object.defineProperty(Up,"Companion",{get:Kp}),yF.ClazzLogEditAttendancePresenter=Up,Object.defineProperty(Jp,"Companion",{get:r_}),yF.ClazzLogEditPresenter=Jp,s_.AttendanceGraphData=a_,Object.defineProperty(c_,"ORDER_NAME_ASC",{get:u_}),Object.defineProperty(c_,"ORDER_NAME_DSC",{get:h_}),s_.SortOrder=c_,Object.defineProperty(p_,"RECORD_ATTENDANCE_MOST_RECENT_SCHEDULE",{get:m_}),Object.defineProperty(p_,"RECORD_ATTENDANCE_NEW_SCHEDULE",{get:f_}),s_.RecordAttendanceOption=p_,s_.ClazzLogListSortOption=g_,$["klock-root-klock-js-legacy"]=r,yF.ClazzLogListAttendancePresenter=s_,Object.defineProperty(N_,"Companion",{get:A_}),yF.ClazzMemberListPresenter=N_,yF.ContentEntryAddOptionsListener=x_,Object.defineProperty(I_,"Companion",{get:M_}),yF.ContentEntryDetailAttemptsListPresenter=I_,Object.defineProperty(k_,"Companion",{get:sm}),yF.ContentEntryDetailOverviewPresenter=k_,yF.ContentEntryDetailPresenter=am,Object.defineProperty(Rm,"LICENSE_TYPE_CC_BY",{get:xm}),Object.defineProperty(Rm,"LICENSE_TYPE_CC_BY_SA",{get:Im}),Object.defineProperty(Rm,"LICENSE_TYPE_CC_BY_SA_NC",{get:Um}),Object.defineProperty(Rm,"LICENSE_TYPE_CC_BY_NC",{get:Dm}),Object.defineProperty(Rm,"ALL_RIGHTS_RESERVED",{get:Pm}),Object.defineProperty(Rm,"LICENSE_TYPE_CC_BY_NC_SA",{get:Mm}),Object.defineProperty(Rm,"LICENSE_TYPE_PUBLIC_DOMAIN",{get:km}),Object.defineProperty(Rm,"LICENSE_TYPE_OTHER",{get:jm}),Object.defineProperty(Rm,"LICENSE_TYPE_CC0",{get:Gm}),pm.LicenceOptions=Rm,Object.defineProperty(Fm,"AUTOMATIC",{get:Wm}),Object.defineProperty(Fm,"MIN_SCORE",{get:Hm}),Object.defineProperty(Fm,"STUDENTS_MARKS_COMPLETE",{get:Vm}),pm.CompletionCriteriaOptions=Fm,pm.CompletionCriteriaMessageIdOption=Xm,pm.LicenceMessageIdOptions=Jm,Object.defineProperty(pm,"Companion",{get:gf}),yF.ContentEntryEdit2Presenter=pm,yF.ContentEntryImportLinkPresenter=$f,Object.defineProperty(vf,"Companion",{get:Df}),yF.ContentEntryList2Presenter=vf,yF.ContentEntryListItemListener=Pf,yF.CourseDiscussionDetailPresenter=Mf,Object.defineProperty(kf,"Companion",{get:Hf}),yF.CourseDiscussionEditPresenter=kf,Object.defineProperty(Kf,"Companion",{get:Qf}),yF.CourseGroupSetDetailPresenter=Kf,Object.defineProperty(tg,"Companion",{get:dg}),yF.CourseGroupSetEditPresenter=tg,yF.CourseGroupSetListPresenter=pg,yF.CourseTerminologyEditPresenter=mg,yF.CourseTerminologyListItemListener=bg,yF.CourseTerminologyListPresenter=Sg,yF.DefaultClazzListItemListener=Cg,yF.DefaultContentEntryListItemListener=zg,yF.DefaultNewCommentItemListener=Og,yF.DefaultScopedGrantListItemListener=Ig,yF.DiscussionPostDetailPresenter=Dg,Object.defineProperty(Jg,"Companion",{get:i$}),yF.DiscussionPostEditPresenter=Jg,Object.defineProperty(o$,"Companion",{get:a$}),yF.DiscussionTopicDetailPresenter=o$,yF.DiscussionTopicEditPresenter=c$,Object.defineProperty(d$,"Companion",{get:O$}),yF.EpubContentPresenter=d$,Object.defineProperty(R$,"Companion",{get:W$}),yF.HolidayCalendarEditPresenter=R$,Object.defineProperty(V$,"Companion",{get:J$}),yF.HolidayCalendarListPresenter=V$,Object.defineProperty(Y$,"Companion",{get:tE}),yF.HolidayEditPresenter=Y$,Object.defineProperty(eE,"Companion",{get:oE}),yF.HtmlTextViewDetailPresenter=eE,yF.InviteViaLinkPresenter=rE,Object.defineProperty(lE,"Companion",{get:EE}),yF.JoinWithCodePresenter=lE,yF.LanguageEditPresenter=yE,Object.defineProperty(NE,"Companion",{get:RE}),yF.LanguageListPresenter=NE,yF.LeavingReasonEditPresenter=AE,yF.LeavingReasonListPresenter=PE,yF.Login2Presenter=kE,yF.MessagesPresenter=HE,yF.ModuleCourseBlockEditPresenter=VE,yF.NewCommentItemListener=iy,yF.OnSearchSubmitted=oy,yF.OnSortOptionSelected=ry,yF.PDFContentPresenter=sy,Object.defineProperty(py,"Companion",{get:yy}),yF.ParentalConsentManagementPresenter=py,yF.PersonAccountEditPresenter=by,Object.defineProperty(yF,"PersonConstants",{get:Ay}),Object.defineProperty(xy,"Companion",{get:ky}),yF.PersonDetailPresenter=xy,yF.PersonEditPresenter=jy,Object.defineProperty(Zy,"Companion",{get:rb}),yF.PersonListPresenter=Zy,yF.RedirectPresenter=sb,yF.RegisterAgeRedirectPresenter=db,Object.defineProperty(_b,"Companion",{get:_S}),yF.ReportDetailPresenter=_b,Object.defineProperty(fS,"BAR_CHART",{get:$S}),Object.defineProperty(fS,"LINE_GRAPH",{get:ES}),mS.VisualTypeOptions=fS,mS.VisualTypeMessageIdOption=bS,Object.defineProperty(SS,"DAY",{get:CS}),Object.defineProperty(SS,"WEEK",{get:NS}),Object.defineProperty(SS,"MONTH",{get:TS}),Object.defineProperty(SS,"CONTENT_ENTRY",{get:LS}),Object.defineProperty(SS,"GENDER",{get:zS}),Object.defineProperty(SS,"CLASS",{get:wS}),Object.defineProperty(SS,"ENROLMENT_OUTCOME",{get:OS}),Object.defineProperty(SS,"ENROLMENT_LEAVING",{get:RS}),mS.XAxisOptions=SS,mS.XAxisMessageIdOption=xS,Object.defineProperty(IS,"EVERYTHING",{get:DS}),Object.defineProperty(IS,"LAST_WEEK",{get:PS}),Object.defineProperty(IS,"LAST_TWO_WEEKS",{get:MS}),Object.defineProperty(IS,"LAST_MONTH",{get:kS}),Object.defineProperty(IS,"LAST_THREE_MONTHS",{get:jS}),Object.defineProperty(IS,"CUSTOM_RANGE",{get:GS}),Object.defineProperty(IS,"NEW_CUSTOM_RANGE",{get:qS}),mS.DateRangeOptions=IS,Object.defineProperty(BS,"NONE",{get:HS}),Object.defineProperty(BS,"DAY",{get:VS}),Object.defineProperty(BS,"WEEK",{get:KS}),Object.defineProperty(BS,"MONTH",{get:XS}),Object.defineProperty(BS,"CONTENT_ENTRY",{get:JS}),Object.defineProperty(BS,"GENDER",{get:YS}),Object.defineProperty(BS,"CLASS",{get:QS}),Object.defineProperty(BS,"ENROLMENT_OUTCOME",{get:ZS}),Object.defineProperty(BS,"ENROLMENT_LEAVING",{get:tv}),mS.SubGroupOptions=BS,mS.SubGroupByMessageIdOption=nv,Object.defineProperty(iv,"TOTAL_DURATION",{get:rv}),Object.defineProperty(iv,"AVERAGE_DURATION",{get:sv}),Object.defineProperty(iv,"NUMBER_SESSIONS",{get:av}),Object.defineProperty(iv,"INTERACTIONS_RECORDED",{get:cv}),Object.defineProperty(iv,"NUMBER_ACTIVE_USERS",{get:lv}),Object.defineProperty(iv,"AVERAGE_USAGE_TIME_PER_USER",{get:uv}),Object.defineProperty(iv,"NUMBER_STUDENTS_COMPLETED",{get:hv}),Object.defineProperty(iv,"PERCENT_STUDENTS_COMPLETED",{get:dv}),Object.defineProperty(iv,"TOTAL_ATTENDANCE",{get:pv}),Object.defineProperty(iv,"TOTAL_ABSENCES",{get:_v}),Object.defineProperty(iv,"TOTAL_LATES",{get:mv}),Object.defineProperty(iv,"PERCENT_STUDENTS_ATTENDED",{get:fv}),Object.defineProperty(iv,"PERCENT_STUDENTS_ATTENDED_OR_LATE",{get:gv}),Object.defineProperty(iv,"TOTAL_CLASSES",{get:$v}),Object.defineProperty(iv,"UNIQUE_STUDENTS_ATTENDING",{get:Ev}),mS.YAxisOptions=iv,mS.YAxisMessageIdOption=bv,Object.defineProperty(mS,"Companion",{get:Qv}),yF.ReportEditPresenter=mS,Object.defineProperty(tC,"PERSON_GENDER",{get:nC}),Object.defineProperty(tC,"PERSON_AGE",{get:iC}),Object.defineProperty(tC,"CONTENT_COMPLETION",{get:oC}),Object.defineProperty(tC,"CONTENT_ENTRY",{get:rC}),Object.defineProperty(tC,"CONTENT_PROGRESS",{get:sC}),Object.defineProperty(tC,"ATTENDANCE_PERCENTAGE",{get:aC}),Object.defineProperty(tC,"ENROLMENT_OUTCOME",{get:cC}),Object.defineProperty(tC,"ENROLMENT_LEAVING_REASON",{get:lC}),Zv.FieldOption=tC,Zv.FieldMessageIdOption=hC,Object.defineProperty(dC,"IS_CONDITION",{get:_C}),Object.defineProperty(dC,"IS_NOT_CONDITION",{get:mC}),Object.defineProperty(dC,"GREATER_THAN_CONDITION",{get:fC}),Object.defineProperty(dC,"LESS_THAN_CONDITION",{get:gC}),Object.defineProperty(dC,"BETWEEN_CONDITION",{get:$C}),Object.defineProperty(dC,"IN_LIST_CONDITION",{get:EC}),Object.defineProperty(dC,"NOT_IN_LIST_CONDITION",{get:yC}),Zv.ConditionOption=dC,Zv.ConditionMessageIdOption=SC,Object.defineProperty(vC,"COMPLETED",{get:NC}),Object.defineProperty(vC,"PASSED",{get:TC}),Object.defineProperty(vC,"FAILED",{get:LC}),Zv.ContentCompletionStatusOption=vC,Zv.ContentCompletionStatusMessageIdOption=wC,Object.defineProperty(OC,"DROPDOWN",{get:AC}),Object.defineProperty(OC,"INTEGER",{get:xC}),Object.defineProperty(OC,"BETWEEN",{get:IC}),Object.defineProperty(OC,"LIST",{get:UC}),Zv.FilterValueType=OC,Object.defineProperty(Zv,"Companion",{get:HC}),yF.ReportFilterEditPresenter=Zv,Object.defineProperty(KC,"Companion",{get:lN}),yF.ReportListPresenter=KC,yF.ReportTemplateListPresenter=uN,Object.defineProperty(mN,"DAILY",{get:gN}),Object.defineProperty(mN,"WEEKLY",{get:$N}),_N.FrequencyOption=mN,_N.FrequencyMessageIdOption=EN,Object.defineProperty(yN,"SUNDAY",{get:SN}),Object.defineProperty(yN,"MONDAY",{get:vN}),Object.defineProperty(yN,"TUESDAY",{get:CN}),Object.defineProperty(yN,"WEDNESDAY",{get:NN}),Object.defineProperty(yN,"THURSDAY",{get:TN}),Object.defineProperty(yN,"FRIDAY",{get:LN}),Object.defineProperty(yN,"SATURDAY",{get:zN}),_N.DayOptions=yN,_N.DayMessageIdOption=ON,yF.ScheduleEditPresenter=_N,Object.defineProperty(RN,"Companion",{get:jN}),yF.SchoolDetailOverviewPresenter=RN,yF.SchoolDetailPresenter=GN,Object.defineProperty(WN,"Companion",{get:tT}),yF.SchoolEditPresenter=WN,Object.defineProperty(eT,"Companion",{get:rT}),yF.SchoolListPresenter=eT,Object.defineProperty(sT,"Companion",{get:pT}),yF.SchoolMemberListPresenter=sT,Object.defineProperty(_T,"Companion",{get:yT}),yF.ScopedGrantEditPresenter=_T,yF.SelectExtractFilePresenterCommon=bT,yF.SelectFilePresenterCommon=zT,yF.SessionListPresenter=OT,yF.SettingsPresenter=IT,Object.defineProperty(kT,"Companion",{get:WT}),yF.SiteDetailPresenter=kT,Object.defineProperty(HT,"Companion",{get:sL}),yF.SiteEditPresenter=HT,Object.defineProperty(cL,"Companion",{get:pL}),yF.SiteEnterLinkPresenter=cL,Object.defineProperty(_L,"Companion",{get:$L}),yF.SiteTermsDetailPresenter=_L,Object.defineProperty(EL,"Companion",{get:TL}),yF.SiteTermsEditPresenter=EL,Object.defineProperty(yF,"StatementConstants",{get:function(){return null===zL&&new LL,zL}}),yF.StatementListPresenter=wL,Object.defineProperty(yF,"SubmissionConstants",{get:function(){return null===IL&&new xL,IL}}),yF.SubmissionSummaryListener=UL,Object.defineProperty(yF,"TerminologyKeys",{get:ML}),Object.defineProperty(kL,"Companion",{get:BL}),yF.TextAssignmentEditPresenter=kL,yF.TextCourseBlockEditPresenter=WL,Object.defineProperty(ez,"Companion",{get:oz}),yF.TimeZoneListPresenter=ez,Object.defineProperty(rz,"Companion",{get:dz}),yF.UstadBaseController=rz,yF.UstadDetailPresenter=_z,fz.JsonLoadListener=gz,yF.UstadEditPresenter=fz,yF.UstadEditPresenterJsonLoader=$z,yF.UstadListPresenter=Ez,wz.OnLoadDataCompletedListener=Oz,Object.defineProperty(Rz,"DB",{get:xz}),Object.defineProperty(Rz,"JSON",{get:Iz}),Object.defineProperty(Rz,"LIVEDATA",{get:Uz}),wz.PersistenceMode=Rz,yF.UstadSingleEntityPresenter=wz,Bz.VideoParams=Xz,Object.defineProperty(Bz,"Companion",{get:tw}),yF.VideoContentPresenterCommon=Bz,yF.WebChunkPresenterCommon=nw,yF.XapiPackageContentPresenter=dw,(sF.db||(sF.db={})).RepSubscriptionInitListener=Nw;var bF=sF.impl||(sF.impl={});Object.defineProperty(bF,"AppConfig",{get:Rw}),bF.ContainerStorageDir=Aw,bF.ErrorCodeException=xw,bF.NavigateForResultOptions=Iw,bF.NoAppFoundException=Uw,Object.defineProperty(Dw,"Companion",{get:kw}),bF.UMLog=Dw,Object.defineProperty(bF,"UstadMobileConstants",{get:qw}),Fw.LastGoToDest=Bw,Object.defineProperty(Ww,"Companion",{get:Kw}),Fw.UstadGoOptions=Ww,Fw.UiLanguage=Xw,Object.defineProperty(Fw,"Companion",{get:tO}),bF.UstadMobileSystemCommon=Fw,(bF.locale||(bF.locale={})).StringsXml=eO;var SF=bF.nav||(bF.nav={});SF.UstadBackStackEntry=nO,SF.get_viewUri_valqi9$=iO,SF.UstadNavController=oO,SF.navigateToErrorScreen_hfsw9g$=rO,SF.UstadSavedStateHandle=sO;var vF=sF.io||(sF.io={}),CF=vF.ext||(vF.ext={});Object.defineProperty(aO,"Companion",{get:uO}),Object.defineProperty(aO,"$serializer",{get:pO});var NF=sF.model||(sF.model={});NF.BitmaskFlag_init_48owkz$=_O,NF.BitmaskFlag=aO,NF.BitmaskMessageId=mO;var TF=sF.schedule||(sF.schedule={});Object.defineProperty(fO,"Companion",{get:EO}),TF.ClazzLogCreatorManager=fO,TF.toOffsetByTimezone_ok0rt4$=yO,TF.toLocalMidnight_ok0rt4$=bO,TF.age_m2ds6$=SO;var LF=sF.tincan||(sF.tincan={});LF.Activity=vO,Object.defineProperty(CO,"Companion",{get:LO}),LF.TinCanXML=CO,Object.defineProperty(wO,"Companion",{get:AO}),Object.defineProperty(wO,"$serializer",{get:UO}),zO.Account_init_1jgqbb$=DO,zO.Account=wO,Object.defineProperty(zO,"Companion",{get:kO}),Object.defineProperty(zO,"$serializer",{get:qO}),LF.UmAccountActor_init_4f88fg$=FO,LF.UmAccountActor=zO,Object.defineProperty(BO,"Companion",{get:VO}),Object.defineProperty(BO,"$serializer",{get:YO}),LF.UmAccountGroupActor_init_ux5f7o$=QO,LF.UmAccountGroupActor=BO;var zF=sF.util||(sF.util={});zF.ContentEntryOpener=ZO,zF.DefaultOneToManyJoinEditHelper=iR,zF.IdOption=sR,zF.ListFilterIdOption=aR,Object.defineProperty(cR,"Companion",{get:hR}),Object.defineProperty(cR,"$serializer",{get:_R}),zF.LongWrapper_init_oaprxw$=mR,zF.LongWrapper=cR,zF.MessageIdOption=fR,zF.NavigateForResultOneToManyJoinEditListener=gR,zF.ObjectMessageIdOption=$R,zF.OnListFilterOptionSelectedListener=ER,Object.defineProperty(yR,"Companion",{get:CR}),zF.OneToManyJoinEditHelper=yR,Object.defineProperty(NR,"Companion",{get:zR}),zF.OneToManyJoinEditHelperMp=NR,zF.OneToManyJoinEditListener=wR,zF.RateLimitedLiveData=OR,zF.safeStringify_e1gqcp$=UR,Object.defineProperty(DR,"Companion",{get:jR}),zF.ScopedGrantOneToManyHelper=DR,zF.SortOrderOption=BR,zF.TreeOneToManyJoinEditListener=WR,HR.prototype.TypeWithParamHeader=VR,Object.defineProperty(zF,"UMFileUtil",{get:XR}),Object.defineProperty(zF,"UMTinCanUtil",{get:QR}),Object.defineProperty(ZR,"Companion",{get:oA}),zF.UstadUrlComponents=ZR;var wF=zF.ext||(zF.ext={});wF.AlreadyEnroledInClassException=rA,wF.AlreadyEnroledInSchoolException=sA,wF.get_combinedFlagValue_vqgi3$=aA,wF.roleToString_jnztfp$=function(t,e,n){var i,o=null!=(i=eA.get_11rb$(t.clazzEnrolmentRole))?i:0,r=n.getString(o,e);return 1002===t.clazzEnrolmentRole&&(r+="("+n.getString(2649,e)+")"),r},wF.outcomeToString_jnztfp$=function(t,n,i){var o,r,s=null!=(o=nA.get_11rb$(t.clazzEnrolmentOutcome))?o:0,a=i.getString(s,n);return e.isType(t,xi)&&(x(t.clazzEnrolmentLeavingReasonUid,O)||(a+=" ("+He(null!=(r=t.leavingReason)?r.leavingReasonTitle:null)+")")),a},wF.isAttendanceEnabledAndRecorded_a89p9$=function(t){return x(t.clazzFeatures.and(vn),vn)&&t.attendanceAverage>=0},wF.attendancePercentage_cpeifx$=lA,wF.latePercentage_cpeifx$=uA,wF.effectiveTimeZone_drggv2$=hA,wF.roundTo_lcymw2$=dA,wF.toDeepLink_894xf9$=pA,wF.makeContentEntryDeepLink_et378p$=_A,wF.calculateScoreWithPenalty_jw4k00$=function(t){return Ve(t.resultScore/t.resultMax*100*(t.totalCompletedContent/t.totalContent)*(1-t.penalty/100))},wF.fallbackIndividualSet_fl2ch8$=mA,wF.toTermMap_te2ciz$=fA,wF.toFixedDatePair_rku2ti$=gA,wF.toFixedDate_f47ve1$=$A,wF.toDisplayString_rku2ti$=EA,wF.toDisplayString_f47ve1$=yA,wF.logErrorReport_kcov3e$=bA,wF.verifySite_9qxg48$=CA,wF.hasFlag_dqglrj$=NA,wF.foldWithBinaryOr_dmxgdv$=TA,wF.encodeStringMapToString_lzia5$=LA,wF.decodeStringMapFromString_abqhco$=zA,wF.toListFilterOptions_2w9qm0$=wA,wF.hasFlag_2p08ub$=OA,wF.toQueryString_alv72w$=RA,wF.toDeepLink_t6f5fs$=AA,wF.putEntityAsJson_5hboqh$=xA,wF.putFromOtherMapIfPresent_8kfss9$=IA,wF.putIfNotAlreadySet_6y9eq4$=UA,wF.putResultDestInfo_g2y97u$=DA,wF.determineListMode_alv72w$=PA,wF.addSafelyToPosition_yd8n6p$=MA,wF.personFullName_gj5mh8$=kA,wF.toUmAccount_w5ztqi$=jA,wF.toDateRangeMoment_csgv79$=GA,wF.toDisplayString_c3h9dv$=function(t,e,n){var i,o,r,s,a,c,l=uC();t:do{var u;for(u=0;u!==l.length;++u){var h=l[u];if(h.optionVal===t.reportFilterField){c=h;break t}}c=null}while(0);if(null==(i=c))return"";var d,p=i,_=bC();t:do{var m;for(m=0;m!==_.length;++m){var f=_[m];if(f.optionVal===t.reportFilterCondition){d=f;break t}}d=null}while(0);if(null==(o=d))return"";var g=o,$=e.getString(p.messageId,n),E=e.getString(g.messageId,n),y=t.reportFilterValue;if(100===t.reportFilterField){var b,S=HC().genderMap.entries;t:do{var v;for(v=S.iterator();v.hasNext();){var C=v.next();if(C.key===t.reportFilterDropDownValue){b=C;break t}}b=null}while(0);var N=b;y=e.getString(null!=(r=null!=N?N.value:null)?r:0,n)}else if(106===t.reportFilterField){var T,L=nA.entries;t:do{var z;for(z=L.iterator();z.hasNext();){var w=z.next();if(w.key===t.reportFilterDropDownValue){T=w;break t}}T=null}while(0);var O=T;y=e.getString(null!=(s=null!=O?O.value:null)?s:0,n)}else if(102===t.reportFilterField){var R,A=zC();t:do{var x;for(x=0;x!==A.length;++x){var I=A[x];if(I.optionVal===t.reportFilterDropDownValue){R=I;break t}}R=null}while(0);var U=R;y=e.getString(null!=(a=null!=U?U.messageId:null)?a:0,n)}else 205===t.reportFilterCondition?y=He(t.reportFilterValueBetweenX)+" "+e.getString(2114,n)+" "+He(t.reportFilterValueBetweenY):103!==t.reportFilterField&&107!==t.reportFilterField||(y="...");return $+" "+E+" "+He(y)},wF.QueryParts=qA,wF.toSql_5vl1q1$=FA,wF.generateSql_fmioye$=HA,wF.encryptWithPbkdf2_w2y7qm$=VA,wF.doublePbkdf2Hash_w2y7qm$=KA,wF.toQueryLikeParam_5cw0du$=XA,wF.requirePostfix_7epoxm$=JA,wF.truncate_6ic1pp$=YA,wF.appendQueryArgs_rjktp$=QA,wF.appendQueryArgs_nnfx2g$=ZA,wF.countWords_pdl1vz$=tx,wF.toXapiActorJsonObject_h2wjj6$=ex,wF.toXapiGroupJsonObject_27ua1t$=nx,wF.createNewClazzAndGroups_4mnsqb$=ox,wF.enrolPersonIntoClazzAtLocalTimezone_auo0vf$=sx,wF.processEnrolmentIntoClass_c3yi0x$=dx,wF.enrolPersonIntoSchoolAtLocalTimezone_v4blca$=_x,wF.approvePendingClazzEnrolment_v1bshy$=fx,wF.declinePendingClazzEnrolment_v1bshy$=$x,wF.approvePendingSchoolMember_ow92mf$=yx,wF.insertPersonAndGroup_bv3nbr$=Sx,wF.generateChartData_nbeg7f$=Cx,wF.generateStatementList_yun2cv$=Nx,wF.ChartData=Tx,wF.SeriesData=Lx,wF.createNewSchoolAndGroups_b3a7l2$=wx,wF.enrollPersonToSchool_6n6bfw$=Rx,wF.ScopedGrantResult=Ax,wF.grantScopedPermission_b1uxqp$=Ix,wF.grantScopedPermission_xejr0n$=Ux,wF.insertPersonAuthCredentials2_wozm4w$=kx,wF.withEndpoint_yhqvnh$=jx;var OF=zF.graph||(zF.graph={});OF.LabelValueFormatter=Gx,OF.MessageIdFormatter=qx,OF.TimeFormatter=Fx,OF.UidAndLabelFormatter=Bx,Object.defineProperty(Wx,"Companion",{get:Kx});var RF=sF.view||(sF.view={});RF.AboutView=Wx,Object.defineProperty(Xx,"Companion",{get:Qx}),RF.AccountListView=Xx,Object.defineProperty(Zx,"Companion",{get:nI}),RF.BitmaskEditView=Zx,Object.defineProperty(iI,"Companion",{get:sI}),RF.ChatDetailView=iI,Object.defineProperty(aI,"Companion",{get:uI}),RF.ChatListView=aI,Object.defineProperty(hI,"Companion",{get:_I}),RF.ClazzAssignmentDetailOverviewView=hI,Object.defineProperty(mI,"Companion",{get:$I}),RF.ClazzAssignmentDetailStudentProgressOverviewListView=mI,Object.defineProperty(EI,"Companion",{get:SI}),RF.ClazzAssignmentDetailStudentProgressView=EI,Object.defineProperty(vI,"Companion",{get:TI}),RF.ClazzAssignmentDetailView=vI,Object.defineProperty(LI,"Companion",{get:OI}),RF.ClazzAssignmentEditView=LI,Object.defineProperty(RI,"Companion",{get:II}),RF.ClazzDetailOverviewView=RI,Object.defineProperty(UI,"Companion",{get:MI}),RF.ClazzDetailView=UI,Object.defineProperty(kI,"Companion",{get:qI}),RF.ClazzEdit2View=kI,Object.defineProperty(FI,"Companion",{get:HI}),RF.ClazzEnrolmentEditView=FI,Object.defineProperty(VI,"Companion",{get:JI}),RF.ClazzEnrolmentListView=VI,Object.defineProperty(YI,"Companion",{get:tU}),RF.ClazzList2View=YI,Object.defineProperty(eU,"Companion",{get:oU}),RF.ClazzLogEditAttendanceView=eU,Object.defineProperty(rU,"Companion",{get:cU}),RF.ClazzLogEditView=rU,Object.defineProperty(lU,"Companion",{get:dU}),RF.ClazzLogListAttendanceView=lU,Object.defineProperty(pU,"Companion",{get:fU}),RF.ClazzMemberListView=pU,Object.defineProperty(gU,"Companion",{get:yU}),RF.ContainerMounter=gU,Object.defineProperty(bU,"Companion",{get:CU}),RF.ContentEntryDetailAttemptsListView=bU,Object.defineProperty(NU,"Companion",{get:zU}),RF.ContentEntryDetailOverviewView=NU,Object.defineProperty(wU,"Companion",{get:AU}),RF.ContentEntryDetailView=wU,Object.defineProperty(xU,"Companion",{get:DU}),RF.ContentEntryEdit2View=xU,Object.defineProperty(PU,"Companion",{get:jU}),RF.ContentEntryImportLinkView=PU,Object.defineProperty(GU,"Companion",{get:BU}),RF.ContentEntryList2View=GU,Object.defineProperty(WU,"Companion",{get:KU}),RF.CourseDiscussionDetailView=WU,Object.defineProperty(XU,"Companion",{get:QU}),RF.CourseDiscussionEditView=XU,Object.defineProperty(ZU,"Companion",{get:nD}),RF.CourseGroupSetDetailView=ZU,Object.defineProperty(iD,"Companion",{get:sD}),RF.CourseGroupSetEditView=iD,Object.defineProperty(aD,"Companion",{get:uD}),RF.CourseGroupSetListView=aD,Object.defineProperty(hD,"Companion",{get:_D}),RF.CourseTerminologyEditView=hD,Object.defineProperty(mD,"Companion",{get:$D}),RF.CourseTerminologyListView=mD,RF.DateRangeView=ED,Object.defineProperty(yD,"Companion",{get:vD}),RF.DiscussionPostDetailView=yD,Object.defineProperty(CD,"Companion",{get:LD}),RF.DiscussionPostEditView=CD,Object.defineProperty(zD,"Companion",{get:RD}),RF.DiscussionTopicDetailView=zD,Object.defineProperty(AD,"Companion",{get:UD}),RF.DiscussionTopicEditView=AD,Object.defineProperty(DD,"Companion",{get:kD}),RF.EpubContentView=DD,Object.defineProperty(jD,"Companion",{get:FD}),RF.ErrorReportView=jD,Object.defineProperty(BD,"Companion",{get:VD}),RF.HarView=BD,Object.defineProperty(KD,"Companion",{get:YD}),RF.HolidayCalendarEditView=KD,Object.defineProperty(QD,"Companion",{get:eP}),RF.HolidayCalendarListView=QD,Object.defineProperty(nP,"Companion",{get:rP}),RF.HolidayEditView=nP,Object.defineProperty(sP,"Companion",{get:lP}),RF.HtmlTextViewDetailView=sP,Object.defineProperty(uP,"Companion",{get:pP}),RF.InviteViaLinkView=uP,RF.ItemTouchHelperListener=_P,Object.defineProperty(mP,"Companion",{get:$P}),RF.JoinWithCodeView=mP,Object.defineProperty(EP,"Companion",{get:SP}),RF.LanguageEditView=EP,Object.defineProperty(vP,"Companion",{get:TP}),RF.LanguageListView=vP,Object.defineProperty(LP,"Companion",{get:OP}),RF.LearnerGroupMemberListView=LP,Object.defineProperty(RP,"Companion",{get:IP}),RF.LeavingReasonEditView=RP,Object.defineProperty(UP,"Companion",{get:MP}),RF.LeavingReasonListView=UP,Object.defineProperty(kP,"Companion",{get:qP}),RF.Login2View=kP,Object.defineProperty(FP,"Companion",{get:HP}),RF.ModuleCourseBlockEditView=FP,RF.OnBoardingView=VP,Object.defineProperty(KP,"Companion",{get:YP}),RF.PDFContentView=KP,Object.defineProperty(QP,"Companion",{get:eM}),RF.ParentalConsentManagementView=QP,Object.defineProperty(nM,"Companion",{get:rM}),RF.PersonAccountEditView=nM,Object.defineProperty(sM,"Companion",{get:lM}),RF.PersonDetailView=sM,Object.defineProperty(uM,"Companion",{get:pM}),RF.PersonEditView=uM,RF.PersonGroupEditView=_M,RF.PersonGroupListView=mM,Object.defineProperty(fM,"Companion",{get:EM}),RF.PersonListView=fM,Object.defineProperty(yM,"Companion",{get:vM}),RF.RedirectView=yM,Object.defineProperty(CM,"Companion",{get:LM}),RF.RegisterAgeRedirectView=CM,Object.defineProperty(zM,"Companion",{get:RM}),RF.RegisterMinorWaitForParentView=zM,RF.ReportDashboardView=AM,Object.defineProperty(xM,"Companion",{get:DM}),RF.ReportDetailView=xM,Object.defineProperty(PM,"Companion",{get:jM}),RF.ReportEditView=PM,Object.defineProperty(GM,"Companion",{get:BM}),RF.ReportFilterEditView=GM,Object.defineProperty(WM,"Companion",{get:KM}),RF.ReportListView=WM,Object.defineProperty(XM,"Companion",{get:QM}),RF.ReportTemplateListView=XM,Object.defineProperty(ZM,"Companion",{get:nk}),RF.ScheduleEditView=ZM,Object.defineProperty(ik,"Companion",{get:sk}),RF.SchoolDetailOverviewView=ik,Object.defineProperty(ak,"Companion",{get:uk}),RF.SchoolDetailView=ak,Object.defineProperty(hk,"Companion",{get:_k}),RF.SchoolEditView=hk,Object.defineProperty(mk,"Companion",{get:$k}),RF.SchoolListView=mk,Object.defineProperty(Ek,"Companion",{get:Sk}),RF.SchoolMemberListView=Ek,Object.defineProperty(vk,"Companion",{get:Tk}),RF.ScopedGrantDetailView=vk,Object.defineProperty(Lk,"Companion",{get:Ok}),RF.ScopedGrantEditView=Lk,Object.defineProperty(Rk,"Companion",{get:Ik}),RF.ScopedGrantListView=Rk,Object.defineProperty(Uk,"Companion",{get:Mk}),RF.SelectExtractFileView=Uk,Object.defineProperty(kk,"Companion",{get:qk}),RF.SelectFileView=kk,Object.defineProperty(Fk,"Companion",{get:Hk}),RF.SelectFolderView=Fk,Object.defineProperty(Vk,"Companion",{get:Jk}),RF.SessionListView=Vk,Object.defineProperty(Yk,"Companion",{get:tj}),RF.SettingsView=Yk,Object.defineProperty(ej,"Companion",{get:oj}),RF.SiteDetailView=ej,Object.defineProperty(rj,"Companion",{get:cj}),RF.SiteEditView=rj,Object.defineProperty(lj,"Companion",{get:dj}),RF.SiteEnterLinkView=lj,Object.defineProperty(pj,"Companion",{get:fj}),RF.SiteTermsDetailView=pj,Object.defineProperty(gj,"Companion",{get:yj}),RF.SiteTermsEditView=gj,RF.SplashScreenView=bj,Object.defineProperty(Sj,"Companion",{get:Nj}),RF.StatementListView=Sj,Object.defineProperty(Tj,"Companion",{get:wj}),RF.TextAssignmentEditView=Tj,Object.defineProperty(Oj,"Companion",{get:xj}),RF.TextCourseBlockEditView=Oj,Object.defineProperty(Ij,"Companion",{get:kj}),RF.TimeZoneListView=Ij,Object.defineProperty(jj,"GONE",{get:qj}),Object.defineProperty(jj,"FAB",{get:Fj}),RF.EditButtonMode=jj,RF.UstadDetailView=Bj,Object.defineProperty(Wj,"Companion",{get:oG}),RF.UstadEditView=Wj,Object.defineProperty(rG,"BROWSER",{get:aG}),Object.defineProperty(rG,"PICKER",{get:cG}),RF.ListViewMode=rG,Object.defineProperty(uG,"FIRST_ITEM",{get:dG}),Object.defineProperty(uG,"FAB",{get:pG}),Object.defineProperty(uG,"NONE",{get:_G}),RF.ListViewAddMode=uG,Object.defineProperty(mG,"EDIT",{get:gG}),Object.defineProperty(mG,"DELETE",{get:$G}),Object.defineProperty(mG,"MOVE",{get:EG}),Object.defineProperty(mG,"HIDE",{get:yG}),Object.defineProperty(mG,"UNHIDE",{get:bG}),RF.SelectionOption=mG,RF.UstadListView=SG,RF.UstadSingleEntityView=vG,Object.defineProperty(CG,"Companion",{get:zG}),RF.UstadView=CG,RF.UstadViewWithProgressDialog=wG,RF.VerbEntityListView=OG,Object.defineProperty(RG,"Companion",{get:IG}),RF.VideoContentView=RG,Object.defineProperty(UG,"Companion",{get:MG}),RF.WebChunkView=UG,Object.defineProperty(kG,"Companion",{get:qG}),RF.XapiPackageContentView=kG,yF.SelectExtractFilePresenter=FG,yF.VideoContentPresenter=XG,yF.WebChunkPresenter=ZG,bF.ContainerStorageManager=oq,bF.getOs=rq,bF.getOsVersion=sq,Object.defineProperty(aq,"Companion",{get:hq}),bF.UstadMobileSystemImpl=aq,CF.getSize_posmfk$=pq,CF.guessMimeType_posmfk$=_q,CF.isRemote_qvpt4h$=mq,$["kotlinx-serialization-kotlinx-serialization-json-js-legacy"]=u,Object.defineProperty(fq,"Companion",{get:yq});var AF=sF.navigation||(sF.navigation={});AF.NavControllerJs=fq,Object.defineProperty(bq,"Companion",{get:Cq}),Object.defineProperty(bq,"$serializer",{get:Lq}),AF.BackStackEntryInfo_init_tqjek7$=zq,AF.BackStackEntryInfo=bq,Object.defineProperty(wq,"Companion",{get:Aq}),AF.UstadBackStackEntryJs=wq,xq.CommitListener=Iq,AF.UstadSavedStateHandleJs=xq,TF.ClazzLogCreatorManagerJs=Dq,TF.getTimezoneOffset_4wgjuj$=Pq,zF.defaultJsonSerializer=function(){$s("")},zF.safeParseList_478ej0$=Mq,Object.defineProperty(zF,"StorageUtil",{get:Gq}),Object.defineProperty(qq,"Companion",{get:Wq}),zF.UMURLEncoder=qq,Object.defineProperty(zF,"UmPlatformUtil",{get:Kq}),zF.UstadAntilog=Xq,wF.encodeBase64_964n91$=Jq,wF.observeWithLifecycleOwner_gpfvhn$=Qq,wF.getOrPut_kxerl3$=function(t,e,n){var i,o;if(null!=(i=t.getItem(e)))o=i;else{var r=n();t.setItem(e,r),o=r}return o},wF.formatDate_if0ts5$=Zq,wF.observeResult_d44pqb$=function(t,e,n,i,o){var r,s,a,c;t.getLiveData_ytbaoo$(i).observe_bi6zy5$(e,new bt((r=n,s=i,a=t,c=o,function(t){if(null!=t&&!uo(t)){var e=Pt.Default.decodeFromString_awif5v$(jt(r),t);a.set_umlfku$(s,null),c(e)}return nt})))},wF.toStringMap_pvbo06$=function(t){var e,n=mt();for(e=t.mLiveData_8be2vx$.keys.iterator();e.hasNext();){var i=e.next(),o=t.get_ytbaoo$(i);null!=o&&n.put_xwzc9p$(i,o)}return n},wF.encryptWithPbkdf2_ddkhil$=tF,wF.base64StringToByteArray_pdl1vz$=eF,wF.validEmail_5cw0du$=nF,wF.innerXml_o1t5ut$=iF,Object.defineProperty(Ms.prototype,"diContext",Object.getOwnPropertyDescriptor(j.prototype,"diContext")),Object.defineProperty(Ms.prototype,"diTrigger",Object.getOwnPropertyDescriptor(j.prototype,"diTrigger")),Ks.prototype.typeParametersSerializers=Z.prototype.typeParametersSerializers,ia.prototype.typeParametersSerializers=Z.prototype.typeParametersSerializers,fa.prototype.typeParametersSerializers=Z.prototype.typeParametersSerializers,Na.prototype.typeParametersSerializers=Z.prototype.typeParametersSerializers,Object.defineProperty(al.prototype,"diContext",Object.getOwnPropertyDescriptor(j.prototype,"diContext")),Object.defineProperty(al.prototype,"diTrigger",Object.getOwnPropertyDescriptor(j.prototype,"diTrigger")),Object.defineProperty(ac.prototype,"diContext",Object.getOwnPropertyDescriptor(al.prototype,"diContext")),Object.defineProperty(ac.prototype,"diTrigger",Object.getOwnPropertyDescriptor(al.prototype,"diTrigger")),Object.defineProperty(uc.prototype,"diContext",Object.getOwnPropertyDescriptor(al.prototype,"diContext")),Object.defineProperty(uc.prototype,"diTrigger",Object.getOwnPropertyDescriptor(al.prototype,"diTrigger")),Object.defineProperty(hc.prototype,"diContext",Object.getOwnPropertyDescriptor(al.prototype,"diContext")),Object.defineProperty(hc.prototype,"diTrigger",Object.getOwnPropertyDescriptor(al.prototype,"diTrigger")),Z.prototype.typeParametersSerializers,Z.prototype.typeParametersSerializers,Z.prototype.typeParametersSerializers,Z.prototype.typeParametersSerializers,Z.prototype.typeParametersSerializers,Z.prototype.typeParametersSerializers,Z.prototype.typeParametersSerializers,Z.prototype.typeParametersSerializers,Z.prototype.typeParametersSerializers,Z.prototype.typeParametersSerializers,Z.prototype.typeParametersSerializers,Z.prototype.typeParametersSerializers,Z.prototype.typeParametersSerializers,Z.prototype.typeParametersSerializers,Z.prototype.typeParametersSerializers,Z.prototype.typeParametersSerializers,Z.prototype.typeParametersSerializers,Object.defineProperty(Wc.prototype,"diContext",Object.getOwnPropertyDescriptor(j.prototype,"diContext")),Object.defineProperty(Wc.prototype,"diTrigger",Object.getOwnPropertyDescriptor(j.prototype,"diTrigger")),Object.defineProperty(Hc.prototype,"diContext",Object.getOwnPropertyDescriptor(j.prototype,"diContext")),Object.defineProperty(Hc.prototype,"diTrigger",Object.getOwnPropertyDescriptor(j.prototype,"diTrigger")),Object.defineProperty(Xc.prototype,"diContext",Object.getOwnPropertyDescriptor(al.prototype,"diContext")),Object.defineProperty(Xc.prototype,"diTrigger",Object.getOwnPropertyDescriptor(al.prototype,"diTrigger")),Object.defineProperty(tl.prototype,"diContext",Object.getOwnPropertyDescriptor(j.prototype,"diContext")),Object.defineProperty(tl.prototype,"diTrigger",Object.getOwnPropertyDescriptor(j.prototype,"diTrigger")),Object.defineProperty(el.prototype,"diContext",Object.getOwnPropertyDescriptor(j.prototype,"diContext")),Object.defineProperty(el.prototype,"diTrigger",Object.getOwnPropertyDescriptor(j.prototype,"diTrigger")),Object.defineProperty(hl.prototype,"diContext",Object.getOwnPropertyDescriptor(j.prototype,"diContext")),Object.defineProperty(hl.prototype,"diTrigger",Object.getOwnPropertyDescriptor(j.prototype,"diTrigger")),gl.prototype.typeParametersSerializers=Z.prototype.typeParametersSerializers,Z.prototype.typeParametersSerializers,Object.defineProperty(rz.prototype,"diContext",Object.getOwnPropertyDescriptor(j.prototype,"diContext")),Object.defineProperty(rz.prototype,"diTrigger",Object.getOwnPropertyDescriptor(j.prototype,"diTrigger")),Object.defineProperty(Cg.prototype,"diContext",Object.getOwnPropertyDescriptor(j.prototype,"diContext")),Object.defineProperty(Cg.prototype,"diTrigger",Object.getOwnPropertyDescriptor(j.prototype,"diTrigger")),Object.defineProperty(zg.prototype,"diContext",Object.getOwnPropertyDescriptor(j.prototype,"diContext")),Object.defineProperty(zg.prototype,"diTrigger",Object.getOwnPropertyDescriptor(j.prototype,"diTrigger")),Object.defineProperty(Og.prototype,"diContext",Object.getOwnPropertyDescriptor(j.prototype,"diContext")),Object.defineProperty(Og.prototype,"diTrigger",Object.getOwnPropertyDescriptor(j.prototype,"diTrigger")),Object.defineProperty(Ig.prototype,"diContext",Object.getOwnPropertyDescriptor(j.prototype,"diContext")),Object.defineProperty(Ig.prototype,"diTrigger",Object.getOwnPropertyDescriptor(j.prototype,"diTrigger")),Z.prototype.typeParametersSerializers,hO.prototype.typeParametersSerializers=Z.prototype.typeParametersSerializers,xO.prototype.typeParametersSerializers=Z.prototype.typeParametersSerializers,jO.prototype.typeParametersSerializers=Z.prototype.typeParametersSerializers,KO.prototype.typeParametersSerializers=Z.prototype.typeParametersSerializers,Object.defineProperty(ZO.prototype,"diContext",Object.getOwnPropertyDescriptor(j.prototype,"diContext")),Object.defineProperty(ZO.prototype,"diTrigger",Object.getOwnPropertyDescriptor(j.prototype,"diTrigger")),dR.prototype.typeParametersSerializers=Z.prototype.typeParametersSerializers,Wx.prototype.showSnackBar_9pu0dj$=CG.prototype.showSnackBar_9pu0dj$,Xx.prototype.showSnackBar_9pu0dj$=CG.prototype.showSnackBar_9pu0dj$,vG.prototype.showSnackBar_9pu0dj$=CG.prototype.showSnackBar_9pu0dj$,Wj.prototype.showSnackBar_9pu0dj$=vG.prototype.showSnackBar_9pu0dj$,Zx.prototype.showSnackBar_9pu0dj$=Wj.prototype.showSnackBar_9pu0dj$,Bj.prototype.showSnackBar_9pu0dj$=vG.prototype.showSnackBar_9pu0dj$,iI.prototype.showSnackBar_9pu0dj$=Bj.prototype.showSnackBar_9pu0dj$,SG.prototype.showSnackBar_9pu0dj$=CG.prototype.showSnackBar_9pu0dj$,aI.prototype.showSnackBar_9pu0dj$=SG.prototype.showSnackBar_9pu0dj$,hI.prototype.showSnackBar_9pu0dj$=Bj.prototype.showSnackBar_9pu0dj$,mI.prototype.showSnackBar_9pu0dj$=SG.prototype.showSnackBar_9pu0dj$,EI.prototype.showSnackBar_9pu0dj$=Bj.prototype.showSnackBar_9pu0dj$,vI.prototype.showSnackBar_9pu0dj$=Bj.prototype.showSnackBar_9pu0dj$,LI.prototype.showSnackBar_9pu0dj$=Wj.prototype.showSnackBar_9pu0dj$,RI.prototype.showSnackBar_9pu0dj$=Bj.prototype.showSnackBar_9pu0dj$,UI.prototype.showSnackBar_9pu0dj$=Bj.prototype.showSnackBar_9pu0dj$,kI.prototype.showSnackBar_9pu0dj$=Wj.prototype.showSnackBar_9pu0dj$,FI.prototype.showSnackBar_9pu0dj$=Wj.prototype.showSnackBar_9pu0dj$,VI.prototype.showSnackBar_9pu0dj$=SG.prototype.showSnackBar_9pu0dj$,YI.prototype.showSnackBar_9pu0dj$=SG.prototype.showSnackBar_9pu0dj$,eU.prototype.showSnackBar_9pu0dj$=Wj.prototype.showSnackBar_9pu0dj$,rU.prototype.showSnackBar_9pu0dj$=Wj.prototype.showSnackBar_9pu0dj$,lU.prototype.showSnackBar_9pu0dj$=SG.prototype.showSnackBar_9pu0dj$,pU.prototype.showSnackBar_9pu0dj$=SG.prototype.showSnackBar_9pu0dj$,bU.prototype.showSnackBar_9pu0dj$=SG.prototype.showSnackBar_9pu0dj$,NU.prototype.showSnackBar_9pu0dj$=Bj.prototype.showSnackBar_9pu0dj$,wU.prototype.showSnackBar_9pu0dj$=Bj.prototype.showSnackBar_9pu0dj$,xU.prototype.showSnackBar_9pu0dj$=Wj.prototype.showSnackBar_9pu0dj$,PU.prototype.showSnackBar_9pu0dj$=CG.prototype.showSnackBar_9pu0dj$,GU.prototype.showSnackBar_9pu0dj$=SG.prototype.showSnackBar_9pu0dj$,WU.prototype.showSnackBar_9pu0dj$=Bj.prototype.showSnackBar_9pu0dj$,XU.prototype.showSnackBar_9pu0dj$=Wj.prototype.showSnackBar_9pu0dj$,ZU.prototype.showSnackBar_9pu0dj$=Bj.prototype.showSnackBar_9pu0dj$,iD.prototype.showSnackBar_9pu0dj$=Wj.prototype.showSnackBar_9pu0dj$,aD.prototype.showSnackBar_9pu0dj$=SG.prototype.showSnackBar_9pu0dj$,hD.prototype.showSnackBar_9pu0dj$=Wj.prototype.showSnackBar_9pu0dj$,mD.prototype.showSnackBar_9pu0dj$=SG.prototype.showSnackBar_9pu0dj$,ED.prototype.showSnackBar_9pu0dj$=Wj.prototype.showSnackBar_9pu0dj$,yD.prototype.showSnackBar_9pu0dj$=Bj.prototype.showSnackBar_9pu0dj$,CD.prototype.showSnackBar_9pu0dj$=Wj.prototype.showSnackBar_9pu0dj$,zD.prototype.showSnackBar_9pu0dj$=Bj.prototype.showSnackBar_9pu0dj$,AD.prototype.showSnackBar_9pu0dj$=Wj.prototype.showSnackBar_9pu0dj$,DD.prototype.showSnackBar_9pu0dj$=CG.prototype.showSnackBar_9pu0dj$,jD.prototype.showSnackBar_9pu0dj$=CG.prototype.showSnackBar_9pu0dj$,BD.prototype.showSnackBar_9pu0dj$=CG.prototype.showSnackBar_9pu0dj$,KD.prototype.showSnackBar_9pu0dj$=Wj.prototype.showSnackBar_9pu0dj$,QD.prototype.showSnackBar_9pu0dj$=SG.prototype.showSnackBar_9pu0dj$,nP.prototype.showSnackBar_9pu0dj$=Wj.prototype.showSnackBar_9pu0dj$,sP.prototype.showSnackBar_9pu0dj$=Bj.prototype.showSnackBar_9pu0dj$,uP.prototype.showSnackBar_9pu0dj$=CG.prototype.showSnackBar_9pu0dj$,mP.prototype.showSnackBar_9pu0dj$=CG.prototype.showSnackBar_9pu0dj$,EP.prototype.showSnackBar_9pu0dj$=Wj.prototype.showSnackBar_9pu0dj$,vP.prototype.showSnackBar_9pu0dj$=SG.prototype.showSnackBar_9pu0dj$,LP.prototype.showSnackBar_9pu0dj$=SG.prototype.showSnackBar_9pu0dj$,RP.prototype.showSnackBar_9pu0dj$=Wj.prototype.showSnackBar_9pu0dj$,UP.prototype.showSnackBar_9pu0dj$=SG.prototype.showSnackBar_9pu0dj$,kP.prototype.showSnackBar_9pu0dj$=CG.prototype.showSnackBar_9pu0dj$,FP.prototype.showSnackBar_9pu0dj$=Wj.prototype.showSnackBar_9pu0dj$,VP.prototype.showSnackBar_9pu0dj$=CG.prototype.showSnackBar_9pu0dj$,KP.prototype.showSnackBar_9pu0dj$=CG.prototype.showSnackBar_9pu0dj$,QP.prototype.showSnackBar_9pu0dj$=Wj.prototype.showSnackBar_9pu0dj$,nM.prototype.showSnackBar_9pu0dj$=Wj.prototype.showSnackBar_9pu0dj$,sM.prototype.showSnackBar_9pu0dj$=Bj.prototype.showSnackBar_9pu0dj$,uM.prototype.showSnackBar_9pu0dj$=Wj.prototype.showSnackBar_9pu0dj$,_M.prototype.showSnackBar_9pu0dj$=Wj.prototype.showSnackBar_9pu0dj$,mM.prototype.showSnackBar_9pu0dj$=SG.prototype.showSnackBar_9pu0dj$,fM.prototype.showSnackBar_9pu0dj$=SG.prototype.showSnackBar_9pu0dj$,yM.prototype.showSnackBar_9pu0dj$=CG.prototype.showSnackBar_9pu0dj$,CM.prototype.showSnackBar_9pu0dj$=CG.prototype.showSnackBar_9pu0dj$,zM.prototype.showSnackBar_9pu0dj$=CG.prototype.showSnackBar_9pu0dj$,AM.prototype.showSnackBar_9pu0dj$=CG.prototype.showSnackBar_9pu0dj$,xM.prototype.showSnackBar_9pu0dj$=Bj.prototype.showSnackBar_9pu0dj$,PM.prototype.showSnackBar_9pu0dj$=Wj.prototype.showSnackBar_9pu0dj$,GM.prototype.showSnackBar_9pu0dj$=Wj.prototype.showSnackBar_9pu0dj$,WM.prototype.showSnackBar_9pu0dj$=SG.prototype.showSnackBar_9pu0dj$,XM.prototype.showSnackBar_9pu0dj$=SG.prototype.showSnackBar_9pu0dj$,ZM.prototype.showSnackBar_9pu0dj$=Wj.prototype.showSnackBar_9pu0dj$,ik.prototype.showSnackBar_9pu0dj$=Bj.prototype.showSnackBar_9pu0dj$,ak.prototype.showSnackBar_9pu0dj$=Bj.prototype.showSnackBar_9pu0dj$,hk.prototype.showSnackBar_9pu0dj$=Wj.prototype.showSnackBar_9pu0dj$,mk.prototype.showSnackBar_9pu0dj$=SG.prototype.showSnackBar_9pu0dj$,Ek.prototype.showSnackBar_9pu0dj$=SG.prototype.showSnackBar_9pu0dj$,vk.prototype.showSnackBar_9pu0dj$=Bj.prototype.showSnackBar_9pu0dj$,Lk.prototype.showSnackBar_9pu0dj$=Wj.prototype.showSnackBar_9pu0dj$,Rk.prototype.showSnackBar_9pu0dj$=SG.prototype.showSnackBar_9pu0dj$,Uk.prototype.showSnackBar_9pu0dj$=Wj.prototype.showSnackBar_9pu0dj$,kk.prototype.showSnackBar_9pu0dj$=Wj.prototype.showSnackBar_9pu0dj$,Fk.prototype.showSnackBar_9pu0dj$=CG.prototype.showSnackBar_9pu0dj$,Vk.prototype.showSnackBar_9pu0dj$=SG.prototype.showSnackBar_9pu0dj$,Yk.prototype.showSnackBar_9pu0dj$=CG.prototype.showSnackBar_9pu0dj$,ej.prototype.showSnackBar_9pu0dj$=Bj.prototype.showSnackBar_9pu0dj$,rj.prototype.showSnackBar_9pu0dj$=Wj.prototype.showSnackBar_9pu0dj$,lj.prototype.showSnackBar_9pu0dj$=CG.prototype.showSnackBar_9pu0dj$,pj.prototype.showSnackBar_9pu0dj$=Bj.prototype.showSnackBar_9pu0dj$,gj.prototype.showSnackBar_9pu0dj$=Wj.prototype.showSnackBar_9pu0dj$,bj.prototype.showSnackBar_9pu0dj$=CG.prototype.showSnackBar_9pu0dj$,Sj.prototype.showSnackBar_9pu0dj$=SG.prototype.showSnackBar_9pu0dj$,Tj.prototype.showSnackBar_9pu0dj$=Wj.prototype.showSnackBar_9pu0dj$,Oj.prototype.showSnackBar_9pu0dj$=Wj.prototype.showSnackBar_9pu0dj$,Ij.prototype.showSnackBar_9pu0dj$=CG.prototype.showSnackBar_9pu0dj$,wG.prototype.showSnackBar_9pu0dj$=CG.prototype.showSnackBar_9pu0dj$,OG.prototype.showSnackBar_9pu0dj$=SG.prototype.showSnackBar_9pu0dj$,RG.prototype.showSnackBar_9pu0dj$=CG.prototype.showSnackBar_9pu0dj$,UG.prototype.showSnackBar_9pu0dj$=CG.prototype.showSnackBar_9pu0dj$,kG.prototype.showSnackBar_9pu0dj$=CG.prototype.showSnackBar_9pu0dj$,fq.prototype.navigate_oc2wlg$=oO.prototype.navigate_oc2wlg$,Nq.prototype.typeParametersSerializers=Z.prototype.typeParametersSerializers;var xF,IF=y([E("application/tincan+zip",qG().VIEW_NAME),E("application/khan-video+zip",IG().VIEW_NAME),E("application/webchunk+zip",MG().VIEW_NAME),E("application/epub+zip",kD().VIEW_NAME),E("application/har+zip",VD().VIEW_NAME),E("application/h5p-tincan+zip",qG().VIEW_NAME),E("application/pdf",YP().VIEW_NAME)]),UF=tw().VIDEO_MIME_MAP.keys,DF=st(rt(UF,10));for(xF=UF.iterator();xF.hasNext();){var PF=xF.next();DF.add_11rb$(E(PF,IG().VIEW_NAME))}return XO=oi(IF,De(DF)),y([E("text/plain","com.microsoft.office.word"),E("audio/mpeg","music.musicplayer"),E("application/pdf","com.adobe.reader"),E("application/vnd.openxmlformats-officedocument.presentationml.presentation","com.microsoft.office.powerpoint"),E("com.microsoft.office.powerpoint","com.microsoft.office.powerpoint"),E("image/jpeg","com.pcvirt.ImageViewer"),E("application/vnd.openxmlformats-officedocument.wordprocessingml.document","com.microsoft.office.word")]),eA=y([E(1e3,2564),E(1002,2564),E(1001,2396),E(1003,2833)]),nA=y([E(200,2384),E(203,2370),E(202,2089),E(201,2369)]),y([E(3,2160),E(4,2088),E(12,2384),E(5,2086),E(28,2019),E(24,2093),E(25,2089)]),be([new Lt(480,360),new Lt(360,480),new Lt(176,144),new Lt(144,176),new Lt(640,360),new Lt(360,640),new Lt(320,180),new Lt(180,320),new Lt(480,270),new Lt(270,480),new Lt(480,480),new Lt(240,240)]),t})?o.apply(e,r):o)||(t.exports=s)}).call(this,n(50).Buffer)},function(t,e,n){"use strict";e.byteLength=function(t){var e=l(t),n=e[0],i=e[1];return 3*(n+i)/4-i},e.toByteArray=function(t){var e,n,i=l(t),s=i[0],a=i[1],c=new r(function(t,e,n){return 3*(e+n)/4-n}(0,s,a)),u=0,h=a>0?s-4:s;for(n=0;n>16&255,c[u++]=e>>8&255,c[u++]=255&e;2===a&&(e=o[t.charCodeAt(n)]<<2|o[t.charCodeAt(n+1)]>>4,c[u++]=255&e);1===a&&(e=o[t.charCodeAt(n)]<<10|o[t.charCodeAt(n+1)]<<4|o[t.charCodeAt(n+2)]>>2,c[u++]=e>>8&255,c[u++]=255&e);return c},e.fromByteArray=function(t){for(var e,n=t.length,o=n%3,r=[],s=0,a=n-o;sa?a:s+16383));1===o?(e=t[n-1],r.push(i[e>>2]+i[e<<4&63]+"==")):2===o&&(e=(t[n-2]<<8)+t[n-1],r.push(i[e>>10]+i[e>>4&63]+i[e<<2&63]+"="));return r.join("")};for(var i=[],o=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,s="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",a=0,c=s.length;a0)throw new Error("Invalid string. Length must be a multiple of 4");var n=t.indexOf("=");return-1===n&&(n=e),[n,n===e?0:4-n%4]}function u(t,e,n){for(var o,r,s=[],a=e;a>18&63]+i[r>>12&63]+i[r>>6&63]+i[63&r]);return s.join("")}o["-".charCodeAt(0)]=62,o["_".charCodeAt(0)]=63},function(t,e){ /*! ieee754. BSD-3-Clause License. Feross Aboukhadijeh */ e.read=function(t,e,n,i,o){var r,s,a=8*o-i-1,c=(1<>1,u=-7,h=n?o-1:0,d=n?-1:1,p=t[e+h];for(h+=d,r=p&(1<<-u)-1,p>>=-u,u+=a;u>0;r=256*r+t[e+h],h+=d,u-=8);for(s=r&(1<<-u)-1,r>>=-u,u+=i;u>0;s=256*s+t[e+h],h+=d,u-=8);if(0===r)r=1-l;else{if(r===c)return s?NaN:1/0*(p?-1:1);s+=Math.pow(2,i),r-=l}return(p?-1:1)*s*Math.pow(2,r-i)},e.write=function(t,e,n,i,o,r){var s,a,c,l=8*r-o-1,u=(1<>1,d=23===o?Math.pow(2,-24)-Math.pow(2,-77):0,p=i?0:r-1,_=i?1:-1,m=e<0||0===e&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(a=isNaN(e)?1:0,s=u):(s=Math.floor(Math.log(e)/Math.LN2),e*(c=Math.pow(2,-s))<1&&(s--,c*=2),(e+=s+h>=1?d/c:d*Math.pow(2,1-h))*c>=2&&(s++,c/=2),s+h>=u?(a=0,s=u):s+h>=1?(a=(e*c-1)*Math.pow(2,o),s+=h):(a=e*Math.pow(2,h-1)*Math.pow(2,o),s=0));o>=8;t[n+p]=255&a,p+=_,a/=256,o-=8);for(s=s<0;t[n+p]=255&s,p+=_,s/=256,l-=8);t[n+p-_]|=128*m}},function(t,e,n){var i,o,r;o=[e,n(31),n(85),n(151)],void 0===(r="function"==typeof(i=function(t,e,n,i){"use strict";var o=t.$$importsForInline$$||(t.$$importsForInline$$={}),r=n.kotlinx.coroutines.internal.LinkedListHead,s=e.equals,a=e.kotlin.Unit,c=e.throwCCE,l=e.kotlin.addSuppressed_oh0dqn$,u=Error,h=n.kotlinx.coroutines.internal.LinkedListNode,d=e.Kind.CLASS,p=n.kotlinx.coroutines.DisposableHandle,_=i.io.ktor.util.collections.CopyOnWriteHashMap;function m(){this.handlers_0=new _}function f(t){return new r}function g(t){return function(e){return s(e.handler,t)&&e.remove(),a}}function $(t,n,i){return function(i){var o,r;try{("function"==typeof(o=i.handler)?o:c())(t)}catch(t){if(!e.isType(t,u))throw t;if(null==(null!=(r=n.v)?(l(r,t),a):null)){var s=t;n.v=s}}return a}}function E(t){h.call(this),this.handler=t}function y(){}E.prototype=Object.create(h.prototype),E.prototype.constructor=E,m.prototype.subscribe_pxwj6z$=function(t,e){var n=new E(e);return this.handlers_0.computeIfAbsent_bci5j9$(t,f).addLast_l2j9rm$(n),n},m.prototype.unsubscribe_pxwj6z$=function(t,n){var i;if(null!=(i=this.handlers_0.get_trkh7z$(t)))for(var o=i._next;!s(o,i);)e.isType(o,E)&&g(n)(o),o=o._next},m.prototype.raise_asioqi$=function(t,n){var i,o,r={v:null};if(null!=(i=this.handlers_0.get_trkh7z$(t)))for(var a=i._next;!s(a,i);)e.isType(a,E)&&$(n,r)(a),a=a._next;if(null!=(o=r.v))throw o},E.prototype.dispose=function(){this.remove()},E.$metadata$={kind:d,simpleName:"HandlerRegistration",interfaces:[p,h]},m.$metadata$={kind:d,simpleName:"Events",interfaces:[]},y.$metadata$={kind:d,simpleName:"EventDefinition",interfaces:[]},o["kotlinx-coroutines-core"]=n;var b=t.io||(t.io={}),S=b.ktor||(b.ktor={}),v=S.events||(S.events={});return v.Events=m,v.EventDefinition=y,t})?i.apply(e,o):i)||(t.exports=r)},function(t,e,n){var i,o,r;o=[e,n(31),n(151),n(285)],void 0===(r="function"==typeof(i=function(t,e,n,i){"use strict";var o=t.$$importsForInline$$||(t.$$importsForInline$$={}),r=(e.kotlin.coroutines.intrinsics.COROUTINE_SUSPENDED,e.kotlin.coroutines.CoroutineImpl,e.defineInlineFunction),s=e.wrapFunction;return i.io.ktor.serialization.WebsocketDeserializeException,e.getReifiedTypeParameterKType,n.io.ktor.util.reflect,e.getKClass,n.io.ktor.util.reflect.typeInfoImpl_1lvkm8$,Error,e.toString,r("ktor-ktor-websocket-serialization-js-legacy.io.ktor.websocket.serialization.sendSerializedBase_2qtcud$",s((function(){var n=e.getReifiedTypeParameterKType,i=t.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect,o=e.getKClass,r=t.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect.typeInfoImpl_1lvkm8$,s=Error;return function(t,a,c,l,u,h,d){var p,_=i.JsType,m=o(t);t:do{try{p=n(t)}catch(t){if(e.isType(t,s)){p=null;break t}throw t}}while(0);e.suspendCall(u.serializeNullable_rh40qx$(h,r(_,m,p),l,e.coroutineReceiver()));var f=e.coroutineResult(e.coroutineReceiver());e.suspendCall(c.outgoing.send_11rb$(f,e.coroutineReceiver()))}}))),r("ktor-ktor-websocket-serialization-js-legacy.io.ktor.websocket.serialization.receiveDeserializedBase_27sgp7$",s((function(){var n=t.$$importsForInline$$["ktor-ktor-serialization-js-legacy"].io.ktor.serialization.WebsocketDeserializeException,i=e.getReifiedTypeParameterKType,o=e.getKClass,r=e.toString,s=t.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect,a=t.$$importsForInline$$["ktor-ktor-utils-js-legacy"].io.ktor.util.reflect.typeInfoImpl_1lvkm8$,c=Error;return function(t,l,u,h,d,p){var _;e.suspendCall(u.incoming.receive(e.coroutineReceiver()));var m=e.coroutineResult(e.coroutineReceiver());if(!h.isApplicable_q1ubw4$(m))throw new n("Converter doesn't support frame type "+m.frameType.name,void 0,m);var f,g=s.JsType,$=o(t);t:do{try{f=i(t)}catch(t){if(e.isType(t,c)){f=null;break t}throw t}}while(0);var E=a(g,$,f);e.suspendCall(h.deserialize_v0czzf$(d,E,m,e.coroutineReceiver()));var y=e.coroutineResult(e.coroutineReceiver());if(l(y))return y;if(null==y){if(!0===(null!=(_=E.kotlinType)?_.isMarkedNullable:null))return null;throw new n("Frame has null content",void 0,m)}throw new n("Can't deserialize value : expected value of type "+r(o(t).simpleName)+", got "+r(e.getKClassFromExpression(y).simpleName),void 0,m)}}))),o["ktor-ktor-utils-js-legacy"]=n,o["ktor-ktor-serialization-js-legacy"]=i,t})?i.apply(e,o):i)||(t.exports=r)},function(t,e,n){t.exports=function(t){"use strict";var e=["0","1","2","3","4","5","6","7","8","9","a","b","c","d","e","f"];function n(t,e){var n=t[0],i=t[1],o=t[2],r=t[3];i=((i+=((o=((o+=((r=((r+=((n=((n+=(i&o|~i&r)+e[0]-680876936|0)<<7|n>>>25)+i|0)&i|~n&o)+e[1]-389564586|0)<<12|r>>>20)+n|0)&n|~r&i)+e[2]+606105819|0)<<17|o>>>15)+r|0)&r|~o&n)+e[3]-1044525330|0)<<22|i>>>10)+o|0,i=((i+=((o=((o+=((r=((r+=((n=((n+=(i&o|~i&r)+e[4]-176418897|0)<<7|n>>>25)+i|0)&i|~n&o)+e[5]+1200080426|0)<<12|r>>>20)+n|0)&n|~r&i)+e[6]-1473231341|0)<<17|o>>>15)+r|0)&r|~o&n)+e[7]-45705983|0)<<22|i>>>10)+o|0,i=((i+=((o=((o+=((r=((r+=((n=((n+=(i&o|~i&r)+e[8]+1770035416|0)<<7|n>>>25)+i|0)&i|~n&o)+e[9]-1958414417|0)<<12|r>>>20)+n|0)&n|~r&i)+e[10]-42063|0)<<17|o>>>15)+r|0)&r|~o&n)+e[11]-1990404162|0)<<22|i>>>10)+o|0,i=((i+=((o=((o+=((r=((r+=((n=((n+=(i&o|~i&r)+e[12]+1804603682|0)<<7|n>>>25)+i|0)&i|~n&o)+e[13]-40341101|0)<<12|r>>>20)+n|0)&n|~r&i)+e[14]-1502002290|0)<<17|o>>>15)+r|0)&r|~o&n)+e[15]+1236535329|0)<<22|i>>>10)+o|0,i=((i+=((o=((o+=((r=((r+=((n=((n+=(i&r|o&~r)+e[1]-165796510|0)<<5|n>>>27)+i|0)&o|i&~o)+e[6]-1069501632|0)<<9|r>>>23)+n|0)&i|n&~i)+e[11]+643717713|0)<<14|o>>>18)+r|0)&n|r&~n)+e[0]-373897302|0)<<20|i>>>12)+o|0,i=((i+=((o=((o+=((r=((r+=((n=((n+=(i&r|o&~r)+e[5]-701558691|0)<<5|n>>>27)+i|0)&o|i&~o)+e[10]+38016083|0)<<9|r>>>23)+n|0)&i|n&~i)+e[15]-660478335|0)<<14|o>>>18)+r|0)&n|r&~n)+e[4]-405537848|0)<<20|i>>>12)+o|0,i=((i+=((o=((o+=((r=((r+=((n=((n+=(i&r|o&~r)+e[9]+568446438|0)<<5|n>>>27)+i|0)&o|i&~o)+e[14]-1019803690|0)<<9|r>>>23)+n|0)&i|n&~i)+e[3]-187363961|0)<<14|o>>>18)+r|0)&n|r&~n)+e[8]+1163531501|0)<<20|i>>>12)+o|0,i=((i+=((o=((o+=((r=((r+=((n=((n+=(i&r|o&~r)+e[13]-1444681467|0)<<5|n>>>27)+i|0)&o|i&~o)+e[2]-51403784|0)<<9|r>>>23)+n|0)&i|n&~i)+e[7]+1735328473|0)<<14|o>>>18)+r|0)&n|r&~n)+e[12]-1926607734|0)<<20|i>>>12)+o|0,i=((i+=((o=((o+=((r=((r+=((n=((n+=(i^o^r)+e[5]-378558|0)<<4|n>>>28)+i|0)^i^o)+e[8]-2022574463|0)<<11|r>>>21)+n|0)^n^i)+e[11]+1839030562|0)<<16|o>>>16)+r|0)^r^n)+e[14]-35309556|0)<<23|i>>>9)+o|0,i=((i+=((o=((o+=((r=((r+=((n=((n+=(i^o^r)+e[1]-1530992060|0)<<4|n>>>28)+i|0)^i^o)+e[4]+1272893353|0)<<11|r>>>21)+n|0)^n^i)+e[7]-155497632|0)<<16|o>>>16)+r|0)^r^n)+e[10]-1094730640|0)<<23|i>>>9)+o|0,i=((i+=((o=((o+=((r=((r+=((n=((n+=(i^o^r)+e[13]+681279174|0)<<4|n>>>28)+i|0)^i^o)+e[0]-358537222|0)<<11|r>>>21)+n|0)^n^i)+e[3]-722521979|0)<<16|o>>>16)+r|0)^r^n)+e[6]+76029189|0)<<23|i>>>9)+o|0,i=((i+=((o=((o+=((r=((r+=((n=((n+=(i^o^r)+e[9]-640364487|0)<<4|n>>>28)+i|0)^i^o)+e[12]-421815835|0)<<11|r>>>21)+n|0)^n^i)+e[15]+530742520|0)<<16|o>>>16)+r|0)^r^n)+e[2]-995338651|0)<<23|i>>>9)+o|0,i=((i+=((r=((r+=(i^((n=((n+=(o^(i|~r))+e[0]-198630844|0)<<6|n>>>26)+i|0)|~o))+e[7]+1126891415|0)<<10|r>>>22)+n|0)^((o=((o+=(n^(r|~i))+e[14]-1416354905|0)<<15|o>>>17)+r|0)|~n))+e[5]-57434055|0)<<21|i>>>11)+o|0,i=((i+=((r=((r+=(i^((n=((n+=(o^(i|~r))+e[12]+1700485571|0)<<6|n>>>26)+i|0)|~o))+e[3]-1894986606|0)<<10|r>>>22)+n|0)^((o=((o+=(n^(r|~i))+e[10]-1051523|0)<<15|o>>>17)+r|0)|~n))+e[1]-2054922799|0)<<21|i>>>11)+o|0,i=((i+=((r=((r+=(i^((n=((n+=(o^(i|~r))+e[8]+1873313359|0)<<6|n>>>26)+i|0)|~o))+e[15]-30611744|0)<<10|r>>>22)+n|0)^((o=((o+=(n^(r|~i))+e[6]-1560198380|0)<<15|o>>>17)+r|0)|~n))+e[13]+1309151649|0)<<21|i>>>11)+o|0,i=((i+=((r=((r+=(i^((n=((n+=(o^(i|~r))+e[4]-145523070|0)<<6|n>>>26)+i|0)|~o))+e[11]-1120210379|0)<<10|r>>>22)+n|0)^((o=((o+=(n^(r|~i))+e[2]+718787259|0)<<15|o>>>17)+r|0)|~n))+e[9]-343485551|0)<<21|i>>>11)+o|0,t[0]=n+t[0]|0,t[1]=i+t[1]|0,t[2]=o+t[2]|0,t[3]=r+t[3]|0}function i(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t.charCodeAt(e)+(t.charCodeAt(e+1)<<8)+(t.charCodeAt(e+2)<<16)+(t.charCodeAt(e+3)<<24);return n}function o(t){var e,n=[];for(e=0;e<64;e+=4)n[e>>2]=t[e]+(t[e+1]<<8)+(t[e+2]<<16)+(t[e+3]<<24);return n}function r(t){var e,o,r,s,a,c,l=t.length,u=[1732584193,-271733879,-1732584194,271733878];for(e=64;e<=l;e+=64)n(u,i(t.substring(e-64,e)));for(o=(t=t.substring(e-64)).length,r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0],e=0;e>2]|=t.charCodeAt(e)<<(e%4<<3);if(r[e>>2]|=128<<(e%4<<3),e>55)for(n(u,r),e=0;e<16;e+=1)r[e]=0;return s=(s=8*l).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(s[2],16),c=parseInt(s[1],16)||0,r[14]=a,r[15]=c,n(u,r),u}function s(t){var n,i="";for(n=0;n<4;n+=1)i+=e[t>>8*n+4&15]+e[t>>8*n&15];return i}function a(t){var e;for(e=0;eu?new ArrayBuffer(0):(o=u-l,r=new ArrayBuffer(o),s=new Uint8Array(r),a=new Uint8Array(this,l,o),s.set(a),r)}}(),u.prototype.append=function(t){return this.appendBinary(c(t)),this},u.prototype.appendBinary=function(t){this._buff+=t,this._length+=t.length;var e,o=this._buff.length;for(e=64;e<=o;e+=64)n(this._hash,i(this._buff.substring(e-64,e)));return this._buff=this._buff.substring(e-64),this},u.prototype.end=function(t){var e,n,i=this._buff,o=i.length,r=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0];for(e=0;e>2]|=i.charCodeAt(e)<<(e%4<<3);return this._finish(r,o),n=a(this._hash),t&&(n=l(n)),this.reset(),n},u.prototype.reset=function(){return this._buff="",this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},u.prototype.getState=function(){return{buff:this._buff,length:this._length,hash:this._hash.slice()}},u.prototype.setState=function(t){return this._buff=t.buff,this._length=t.length,this._hash=t.hash,this},u.prototype.destroy=function(){delete this._hash,delete this._buff,delete this._length},u.prototype._finish=function(t,e){var i,o,r,s=e;if(t[s>>2]|=128<<(s%4<<3),s>55)for(n(this._hash,t),s=0;s<16;s+=1)t[s]=0;i=(i=8*this._length).toString(16).match(/(.*?)(.{0,8})$/),o=parseInt(i[2],16),r=parseInt(i[1],16)||0,t[14]=o,t[15]=r,n(this._hash,t)},u.hash=function(t,e){return u.hashBinary(c(t),e)},u.hashBinary=function(t,e){var n=a(r(t));return e?l(n):n},u.ArrayBuffer=function(){this.reset()},u.ArrayBuffer.prototype.append=function(t){var e,i,r,s,a,c=(i=this._buff.buffer,r=t,s=!0,(a=new Uint8Array(i.byteLength+r.byteLength)).set(new Uint8Array(i)),a.set(new Uint8Array(r),i.byteLength),s?a:a.buffer),l=c.length;for(this._length+=t.byteLength,e=64;e<=l;e+=64)n(this._hash,o(c.subarray(e-64,e)));return this._buff=e-64>2]|=i[e]<<(e%4<<3);return this._finish(r,o),n=a(this._hash),t&&(n=l(n)),this.reset(),n},u.ArrayBuffer.prototype.reset=function(){return this._buff=new Uint8Array(0),this._length=0,this._hash=[1732584193,-271733879,-1732584194,271733878],this},u.ArrayBuffer.prototype.getState=function(){var t,e=u.prototype.getState.call(this);return e.buff=(t=e.buff,String.fromCharCode.apply(null,new Uint8Array(t))),e},u.ArrayBuffer.prototype.setState=function(t){return t.buff=function(t,e){var n,i=t.length,o=new ArrayBuffer(i),r=new Uint8Array(o);for(n=0;n>2]|=t[e]<<(e%4<<3);if(r[e>>2]|=128<<(e%4<<3),e>55)for(n(u,r),e=0;e<16;e+=1)r[e]=0;return s=(s=8*l).toString(16).match(/(.*?)(.{0,8})$/),a=parseInt(s[2],16),c=parseInt(s[1],16)||0,r[14]=a,r[15]=c,n(u,r),u}(new Uint8Array(t)));return e?l(i):i},u}()},function(t,e,n){(function(i){var o,r,s;r=[e,n(31)],void 0===(s="function"==typeof(o=function(t,e){"use strict";var n=e.Long.ONE,o=e.Kind.OBJECT,r=e.kotlin.math.abs_za3lpa$,s=e.kotlin.text.padStart_vrc1nu$,a=e.Kind.CLASS,c=e.kotlin.Comparable,l=e.kotlin.RuntimeException_init_pdl1vj$,u=e.kotlin.RuntimeException,h=Error,d=e.ensureNotNull,p=e.kotlin.collections.listOf_i5x0yv$,_=e.Kind.INTERFACE,m=e.kotlin.Enum,f=e.throwISE,g=e.kotlin.IllegalStateException_init_pdl1vj$,$=Math,E=(e.kotlin.collections.listOf_mh5how$,e.kotlin.collections.emptyList_287e2$,e.kotlin.collections.collectionSizeOrDefault_ba2ldo$),y=e.kotlin.collections.ArrayList_init_ww73n8$,b=(e.kotlin.collections.plus_mydzjv$,e.kotlin.collections.first_2p1efm$,e.kotlin.collections.getOrNull_yzln2o$),S=e.equals,v=(e.kotlin.collections.toMutableList_4c7yge$,e.kotlin.ranges.until_dqglrj$,e.kotlin.collections.slice_6bjbi1$,e.kotlin.collections.firstOrNull_2p1efm$,e.kotlin.collections.lastOrNull_2p1efm$,e.kotlin.collections.toList_us0mfu$,e.kotlin.collections.toList_7wnvza$),C=(e.kotlin.collections.sortedWith_eknfly$,e.wrapFunction,e.kotlin.Comparator),N=e.kotlin.collections.ArrayList_init_287e2$,T=e.kotlin.collections.joinToString_fmv235$,L=e.kotlin.text.endsWith_sgbm27$,z=e.kotlin.text.replace_r2fvfm$,w=e.unboxChar,O=e.numberToInt,R=e.kotlin.text.StringBuilder_init,A=e.kotlin.NotImplementedError,x=e.kotlin.collections.indexOf_mjy6jw$,I=e.defineInlineFunction,U=Array,D=e.kotlin.text.startsWith_7epoxm$,P=e.kotlin.text.startsWith_sgbm27$,M=e.kotlin.collections.drop_ba2ldo$,k=e.kotlin.collections.zip_45mdf7$,j=e.kotlin.text.toInt_pdl1vz$,G=e.kotlin.text.toDouble_pdl1vz$,q=e.kotlin.text.first_gw00vp$,F=e.kotlin.text.replace_680rmw$,B=e.kotlin.text.removePrefix_gsj5wt$,W=e.kotlin.text.take_6ic1pp$,H=e.kotlin.text.drop_6ic1pp$,V=e.kotlin.text.equals_igcy3c$,K=e.kotlin.collections.LinkedHashMap_init_q3lmfv$,X=e.kotlin.text.Regex,J=e.kotlin.text.Regex_init_61zpoe$,Y=e.kotlin.collections.checkIndexOverflow_za3lpa$,Q=e.kotlin.collections.reversed_7wnvza$,Z=e.kotlin.js.internal.DoubleCompanionObject,tt=e.kotlin.collections.plus_iwxh38$,et=e.kotlin.to_ujzrz7$,nt=e.kotlin.collections.toMap_v2dak7$,it=(e.kotlin.Annotation,e.kotlin,e.kotlin.reflect.js.internal.PrimitiveClasses.intClass,e.Long,e.kotlin.reflect.js.internal.PrimitiveClasses.doubleClass,e.kotlin.io.println_s8jyv4$,e.getKClass,e.throwCCE,e.kotlin.math.round_14dthe$),ot=e.kotlin.text.removeSuffix_gsj5wt$,rt=e.toBoxedChar,st=e.kotlin.text.get_indices_gw00vp$,at=e.kotlin.ranges.coerceAtMost_dqglrj$,ct=e.kotlin.text.toIntOrNull_pdl1vz$,lt=e.kotlin.text.toDoubleOrNull_pdl1vz$,ut=e.kotlin.ranges.CharRange,ht=e.kotlin.text.padEnd_vrc1nu$,dt=(e.kotlin.text.substring_fc3b62$,e.kotlin.lazy_klfg04$);function pt(t){ft(),this.encoded=t}function _t(){mt=this,this.serialVersionUID_0=n}gt.prototype=Object.create(u.prototype),gt.prototype.constructor=gt,Ot.prototype=Object.create(m.prototype),Ot.prototype.constructor=Ot,oe.prototype=Object.create(m.prototype),oe.prototype.constructor=oe,je.prototype=Object.create(De.prototype),je.prototype.constructor=je,Ge.prototype=Object.create(je.prototype),Ge.prototype.constructor=Ge,ln.prototype=Object.create(m.prototype),ln.prototype.constructor=ln,pn.prototype=Object.create(m.prototype),pn.prototype.constructor=pn,_t.prototype.invoke_qt1dr2$=function(t,e,n){return new pt(t<<16|e<<8|n<<0)},_t.prototype.invoke_uza4s2$=function(t,e,n){return ft().invoke_qt1dr2$(t,e.index1,n)},_t.prototype.invoke_mo62bp$=function(t,e,n){return ft().invoke_qt1dr2$(t.year,e.index1,n)},_t.prototype.invoke_fgzd47$=function(t,e){return ft().invoke_qt1dr2$(t.yearInt,t.month1,e)},_t.$metadata$={kind:o,simpleName:"Companion",interfaces:[]};var mt=null;function ft(){return null===mt&&new _t,mt}function gt(t){l(t,this),this.name="DateException"}function $t(){Nt()}function Et(){Ct=this,this.DEFAULT_FORMAT=Nt().invoke_61zpoe$("EEE, dd MMM yyyy HH:mm:ss z"),this.FORMAT1=Nt().invoke_61zpoe$("yyyy-MM-dd'T'HH:mm:ssXXX"),this.FORMAT2=Nt().invoke_61zpoe$("yyyy-MM-dd'T'HH:mm:ss.SSSZ"),this.FORMAT_DATE=Nt().invoke_61zpoe$("yyyy-MM-dd"),this.FORMATS=p([this.DEFAULT_FORMAT,this.FORMAT1,this.FORMAT2,this.FORMAT_DATE])}Object.defineProperty(pt.prototype,"year",{configurable:!0,get:function(){return this.encoded>>16}}),Object.defineProperty(pt.prototype,"month1",{configurable:!0,get:function(){return this.encoded>>>8&255}}),Object.defineProperty(pt.prototype,"month",{configurable:!0,get:function(){return wn().get_za3lpa$(this.month1)}}),Object.defineProperty(pt.prototype,"day",{configurable:!0,get:function(){return this.encoded>>>0&255}}),Object.defineProperty(pt.prototype,"yearYear",{configurable:!0,get:function(){return new Oi(this.year)}}),Object.defineProperty(pt.prototype,"dateTimeDayStart",{configurable:!0,get:function(){return Pt().invoke_qw7meq$(this.year,this.month,this.day)}}),Object.defineProperty(pt.prototype,"dayOfYear",{configurable:!0,get:function(){return this.dateTimeDayStart.dayOfYear}}),Object.defineProperty(pt.prototype,"dayOfWeek",{configurable:!0,get:function(){return this.dateTimeDayStart.dayOfWeek}}),Object.defineProperty(pt.prototype,"dayOfWeekInt",{configurable:!0,get:function(){return this.dateTimeDayStart.dayOfWeekInt}}),pt.prototype.format_61zpoe$=function(t){return this.dateTimeDayStart.format_61zpoe$(t)},pt.prototype.format_cgtbg3$=function(t){return this.dateTimeDayStart.format_cgtbg3$(t)},pt.prototype.toString=function(){return(this.year<0?"-":"")+r(this.year).toString()+"-"+s(r(this.month1).toString(),2,48)+"-"+s(r(this.day).toString(),2,48)},pt.prototype.compareTo_11rb$=function(t){return e.primitiveCompareTo(this.encoded,t.encoded)},pt.$metadata$={kind:a,simpleName:"Date",interfaces:[po,c]},pt.prototype.unbox=function(){return this.encoded},pt.prototype.hashCode=function(){var t=0;return t=31*t+e.hashCode(this.encoded)|0},pt.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.encoded,t.encoded)},gt.$metadata$={kind:a,simpleName:"DateException",interfaces:[u]},$t.prototype.tryParse_ivxn3r$=function(t,e,n){return void 0===e&&(e=!1),n?n(t,e):this.tryParse_ivxn3r$$default(t,e)},Et.prototype.parse_61zpoe$=function(t){var n,i=null;for(n=this.FORMATS.iterator();n.hasNext();){var o=n.next();try{return Tt(o,t)}catch(t){if(!e.isType(t,h))throw t;i=t}}throw d(i)},Et.prototype.invoke_61zpoe$=function(t){return new Mn(t)},Et.$metadata$={kind:o,simpleName:"Companion",interfaces:[]};var yt,bt,St,vt,Ct=null;function Nt(){return null===Ct&&new Et,Ct}function Tt(t,e){var n;if(null==(n=t.tryParse_ivxn3r$(e,!0)))throw new gt("Not a valid format: '"+e+"' for '"+t+"'");return n}function Lt(t,e){return t.format_j01w8f$(e.toOffsetUnadjusted_fv8bff$(fi.Companion.fromMinutes_14dthe$(0)))}function zt(t){Pt(),this.unixMillis=t}function wt(){Dt=this,this.serialVersionUID_0=n,this.EPOCH=new zt(0),this.EPOCH_INTERNAL_MILLIS_8be2vx$=621355968e5}function Ot(t,e){m.call(this),this.name$=t,this.ordinal$=e}function Rt(){Rt=function(){},yt=new Ot("Year",0),bt=new Ot("DayOfYear",1),St=new Ot("Month",2),vt=new Ot("Day",3)}function At(){return Rt(),yt}function xt(){return Rt(),bt}function It(){return Rt(),St}function Ut(){return Rt(),vt}$t.$metadata$={kind:_,simpleName:"DateFormat",interfaces:[]},wt.prototype.invoke_4lrum3$=function(t,e,n,i,o,r,s){return void 0===i&&(i=0),void 0===o&&(o=0),void 0===r&&(r=0),void 0===s&&(s=0),new zt(Pt().dateToMillis_0(t.year,e.index1,n)+Pt().timeToMillis_0(i,o,r)+s)},wt.prototype.invoke_6h4hbf$=function(t,e){return void 0===e&&(e=new si(fi.Companion.fromMilliseconds_14dthe$(0))),Pt().invoke_ui44o2$(t.year,t.month1,t.day,e.hour,e.minute,e.second,e.millisecond)},wt.prototype.invoke_qw7meq$=function(t,e,n,i,o,r,s){return void 0===i&&(i=0),void 0===o&&(o=0),void 0===r&&(r=0),void 0===s&&(s=0),new zt(Pt().dateToMillis_0(t,e.index1,n)+Pt().timeToMillis_0(i,o,r)+s)},wt.prototype.invoke_ui44o2$=function(t,e,n,i,o,r,s){return void 0===i&&(i=0),void 0===o&&(o=0),void 0===r&&(r=0),void 0===s&&(s=0),new zt(Pt().dateToMillis_0(t,e,n)+Pt().timeToMillis_0(i,o,r)+s)},wt.prototype.createClamped_ui44o2$=function(t,e,n,i,o,r,s){void 0===i&&(i=0),void 0===o&&(o=0),void 0===r&&(r=0),void 0===s&&(s=0);var a=Zi(e,1,12);return this.createUnchecked_ui44o2$(t,a,Zi(n,1,wn().invoke_za3lpa$(e).days_za3lpa$(t)),Zi(i,0,23),Zi(o,0,59),Zi(r,0,59),s)},wt.prototype.createAdjusted_ui44o2$=function(t,e,n,i,o,r,s){void 0===i&&(i=0),void 0===o&&(o=0),void 0===r&&(r=0),void 0===s&&(s=0);var a=t,c=e,l=n,u=i,h=o,d=r;for(h=h+eo(d,0,59)|0,d=to(d,0,59),u=u+eo(h,0,59)|0,h=to(h,0,59),l=l+eo(u,0,23)|0,u=to(u,0,23);;){var p=wn().invoke_za3lpa$(c).days_za3lpa$(a);if(c=c+eo(l,1,p)|0,l=to(l,1,p),a=a+eo(c,1,12)|0,c=to(c,1,12),to(l,1,wn().invoke_za3lpa$(c).days_za3lpa$(a))===l)break}return this.createUnchecked_ui44o2$(a,c,l,u,h,d,s)},wt.prototype.createUnchecked_ui44o2$=function(t,e,n,i,o,r,s){return void 0===i&&(i=0),void 0===o&&(o=0),void 0===r&&(r=0),void 0===s&&(s=0),new zt(Pt().dateToMillisUnchecked_cub51b$(t,e,n)+Pt().timeToMillisUnchecked_0(i,o,r)+s)},wt.prototype.invoke_s8cxhz$=function(t){return this.fromUnix_s8cxhz$(t)},wt.prototype.invoke_14dthe$=function(t){return this.fromUnix_14dthe$(t)},wt.prototype.fromUnix_14dthe$=function(t){return new zt(t)},wt.prototype.fromUnix_s8cxhz$=function(t){return this.fromUnix_14dthe$(t.toNumber())},wt.prototype.fromString_61zpoe$=function(t){return Nt().parse_61zpoe$(t)},wt.prototype.parse_61zpoe$=function(t){return Nt().parse_61zpoe$(t)},wt.prototype.now=function(){return new zt(ho().currentTime)},wt.prototype.nowLocal=function(){return ie().nowLocal()},wt.prototype.nowUnix=function(){return ho().currentTime},wt.prototype.nowUnixLong=function(){return e.Long.fromNumber(ho().currentTime)},Ot.$metadata$={kind:a,simpleName:"DatePart",interfaces:[m]},Ot.values=function(){return[At(),xt(),It(),Ut()]},Ot.valueOf_61zpoe$=function(t){switch(t){case"Year":return At();case"DayOfYear":return xt();case"Month":return It();case"Day":return Ut();default:f("No enum constant com.soywiz.klock.DateTime.Companion.DatePart."+t)}},wt.prototype.dateToMillisUnchecked_cub51b$=function(t,e,n){return 864e5*(new Oi(t).daysSinceOne+wn().invoke_za3lpa$(e).daysToStart_za3lpa$(t)+n-1|0)-this.EPOCH_INTERNAL_MILLIS_8be2vx$},wt.prototype.timeToMillisUnchecked_0=function(t,e,n){return 36e5*t+6e4*e+1e3*n},wt.prototype.dateToMillis_0=function(t,e,n){var i;if(wn().checked_za3lpa$(e),i=wn().invoke_za3lpa$(e).days_za3lpa$(t),!(1<=n&&n<=i))throw new gt("Day "+n+" not valid for year="+t+" and month="+e);return this.dateToMillisUnchecked_cub51b$(t,e,n)},wt.prototype.timeToMillis_0=function(t,e,n){if(!(0<=t&&t<=23))throw new gt("Hour "+t+" not in 0..23");if(!(0<=e&&e<=59))throw new gt("Minute "+e+" not in 0..59");if(!(0<=n&&n<=59))throw new gt("Second "+n+" not in 0..59");return this.timeToMillisUnchecked_0(t,e,n)},wt.prototype.getDatePart_2pm4tv$=function(t,e){var n,i=oo(t/864e5),o=xi().fromDays_za3lpa$(i);if(e===At())return o.year;var r=o.isLeap,s=1+no(i-o.daysSinceOne|0,o.days)|0;if(e===xt())return s;if(null==(n=wn().fromDayOfYear_fzusl$(s,r)))throw g(("Invalid dayOfYear="+s+", isLeap="+r).toString());var a=n;if(e===It())return a.index1;var c=s-a.daysToStart_6taknv$(r)|0;if(e===Ut())return c;throw g("Invalid DATE_PART".toString())},wt.$metadata$={kind:o,simpleName:"Companion",interfaces:[]};var Dt=null;function Pt(){return null===Dt&&new wt,Dt}function Mt(t,e){var n;Gt(),this.monthSpan=t,this.timeSpan=e,this.computed_a87s7m$_0=co((n=this,function(){return Wt().invoke_fv8bff$(n.timeSpan)}))}function kt(){jt=this,this.serialVersionUID_0=n}Object.defineProperty(zt.prototype,"yearOneMillis",{configurable:!0,get:function(){return Pt().EPOCH_INTERNAL_MILLIS_8be2vx$+this.unixMillis}}),Object.defineProperty(zt.prototype,"localOffset",{configurable:!0,get:function(){return zi().local_mw5vjr$(new zt(this.unixMillisDouble))}}),Object.defineProperty(zt.prototype,"unixMillisDouble",{configurable:!0,get:function(){return this.unixMillis}}),Object.defineProperty(zt.prototype,"unixMillisLong",{configurable:!0,get:function(){return e.Long.fromNumber(this.unixMillisDouble)}}),Object.defineProperty(zt.prototype,"year",{configurable:!0,get:function(){return new Oi(this.yearInt)}}),Object.defineProperty(zt.prototype,"yearInt",{configurable:!0,get:function(){return Pt().getDatePart_2pm4tv$(this.yearOneMillis,At())}}),Object.defineProperty(zt.prototype,"month",{configurable:!0,get:function(){return wn().get_za3lpa$(this.month1)}}),Object.defineProperty(zt.prototype,"month0",{configurable:!0,get:function(){return this.month1-1|0}}),Object.defineProperty(zt.prototype,"month1",{configurable:!0,get:function(){return Pt().getDatePart_2pm4tv$(this.yearOneMillis,It())}}),Object.defineProperty(zt.prototype,"yearMonth",{configurable:!0,get:function(){return Pi().invoke_wk05xp$(this.year,this.month)}}),Object.defineProperty(zt.prototype,"dayOfMonth",{configurable:!0,get:function(){return Pt().getDatePart_2pm4tv$(this.yearOneMillis,Ut())}}),Object.defineProperty(zt.prototype,"dayOfWeek",{configurable:!0,get:function(){return me().get_za3lpa$(this.dayOfWeekInt)}}),Object.defineProperty(zt.prototype,"dayOfWeekInt",{configurable:!0,get:function(){return ro(this.yearOneMillis/864e5+1,7)}}),Object.defineProperty(zt.prototype,"dayOfYear",{configurable:!0,get:function(){return Pt().getDatePart_2pm4tv$(this.yearOneMillis,xt())}}),Object.defineProperty(zt.prototype,"hours",{configurable:!0,get:function(){return ro(this.yearOneMillis/36e5,24)}}),Object.defineProperty(zt.prototype,"minutes",{configurable:!0,get:function(){return ro(this.yearOneMillis/6e4,60)}}),Object.defineProperty(zt.prototype,"seconds",{configurable:!0,get:function(){return ro(this.yearOneMillis/1e3,60)}}),Object.defineProperty(zt.prototype,"milliseconds",{configurable:!0,get:function(){return ro(this.yearOneMillis,1e3)}}),Object.defineProperty(zt.prototype,"localUnadjusted",{configurable:!0,get:function(){return ie().local_rq74cp$(this,this.localOffset)}}),zt.prototype.toOffsetUnadjusted_fv8bff$=function(t){return this.toOffsetUnadjusted_q6c6ai$(wi(t))},zt.prototype.toOffsetUnadjusted_q6c6ai$=function(t){return ie().local_rq74cp$(this,t)},Object.defineProperty(zt.prototype,"local",{configurable:!0,get:function(){return ie().utc_rq74cp$(this,this.localOffset)}}),zt.prototype.toOffset_fv8bff$=function(t){return this.toOffset_q6c6ai$(wi(t))},zt.prototype.toOffset_q6c6ai$=function(t){return ie().utc_rq74cp$(this,t)},Object.defineProperty(zt.prototype,"utc",{configurable:!0,get:function(){return ie().utc_rq74cp$(this,zi().invoke_fv8bff$(fi.Companion.fromMinutes_14dthe$(0)))}}),Object.defineProperty(zt.prototype,"dateDayStart",{configurable:!0,get:function(){return Pt().invoke_4lrum3$(this.year,this.month,this.dayOfMonth,0,0,0,0)}}),Object.defineProperty(zt.prototype,"dateDayEnd",{configurable:!0,get:function(){return Pt().invoke_4lrum3$(this.year,this.month,this.dayOfMonth,23,59,59,999)}}),Object.defineProperty(zt.prototype,"quarter",{configurable:!0,get:function(){return 1+(this.month0/3|0)|0}}),Object.defineProperty(zt.prototype,"startOfYear",{configurable:!0,get:function(){return Pt().invoke_4lrum3$(this.year,mn(),1)}}),Object.defineProperty(zt.prototype,"startOfMonth",{configurable:!0,get:function(){return Pt().invoke_4lrum3$(this.year,this.month,1)}}),Object.defineProperty(zt.prototype,"startOfQuarter",{configurable:!0,get:function(){return Pt().invoke_4lrum3$(this.year,wn().get_za3lpa$(1+(3*(this.quarter-1|0)|0)|0),1)}}),zt.prototype.startOfDayOfWeek_76hapz$=function(t){for(var e=0;e<7;e++){var n=this.minus_fv8bff$(fi.Companion.fromDays_14dthe$(e));if(n.dayOfWeek===t)return n.startOfDay}throw g("Shouldn't happen".toString())},Object.defineProperty(zt.prototype,"startOfWeek",{configurable:!0,get:function(){return this.startOfDayOfWeek_76hapz$(se())}}),Object.defineProperty(zt.prototype,"startOfIsoWeek",{configurable:!0,get:function(){return this.startOfDayOfWeek_76hapz$(ae())}}),Object.defineProperty(zt.prototype,"startOfDay",{configurable:!0,get:function(){return Pt().invoke_4lrum3$(this.year,this.month,this.dayOfMonth)}}),Object.defineProperty(zt.prototype,"startOfHour",{configurable:!0,get:function(){return Pt().invoke_4lrum3$(this.year,this.month,this.dayOfMonth,this.hours)}}),Object.defineProperty(zt.prototype,"startOfMinute",{configurable:!0,get:function(){return Pt().invoke_4lrum3$(this.year,this.month,this.dayOfMonth,this.hours,this.minutes)}}),Object.defineProperty(zt.prototype,"startOfSecond",{configurable:!0,get:function(){return Pt().invoke_4lrum3$(this.year,this.month,this.dayOfMonth,this.hours,this.minutes,this.seconds)}}),Object.defineProperty(zt.prototype,"endOfYear",{configurable:!0,get:function(){return Pt().invoke_4lrum3$(this.year,Tn(),31,23,59,59,999)}}),Object.defineProperty(zt.prototype,"endOfMonth",{configurable:!0,get:function(){return Pt().invoke_4lrum3$(this.year,this.month,this.month.days_ccxljp$(this.year),23,59,59,999)}}),Object.defineProperty(zt.prototype,"endOfQuarter",{configurable:!0,get:function(){return Pt().invoke_4lrum3$(this.year,wn().get_za3lpa$(3+(3*(this.quarter-1|0)|0)|0),this.month.days_ccxljp$(this.year),23,59,59,999)}}),zt.prototype.endOfDayOfWeek_76hapz$=function(t){for(var e=0;e<7;e++){var n=this.plus_fv8bff$(fi.Companion.fromDays_14dthe$(e));if(n.dayOfWeek===t)return n.endOfDay}throw g("Shouldn't happen".toString())},Object.defineProperty(zt.prototype,"endOfWeek",{configurable:!0,get:function(){return this.endOfDayOfWeek_76hapz$(ae())}}),Object.defineProperty(zt.prototype,"endOfIsoWeek",{configurable:!0,get:function(){return this.endOfDayOfWeek_76hapz$(se())}}),Object.defineProperty(zt.prototype,"endOfDay",{configurable:!0,get:function(){return Pt().invoke_4lrum3$(this.year,this.month,this.dayOfMonth,23,59,59,999)}}),Object.defineProperty(zt.prototype,"endOfHour",{configurable:!0,get:function(){return Pt().invoke_4lrum3$(this.year,this.month,this.dayOfMonth,this.hours,59,59,999)}}),Object.defineProperty(zt.prototype,"endOfMinute",{configurable:!0,get:function(){return Pt().invoke_4lrum3$(this.year,this.month,this.dayOfMonth,this.hours,this.minutes,59,999)}}),Object.defineProperty(zt.prototype,"endOfSecond",{configurable:!0,get:function(){return Pt().invoke_4lrum3$(this.year,this.month,this.dayOfMonth,this.hours,this.minutes,this.seconds,999)}}),Object.defineProperty(zt.prototype,"date",{configurable:!0,get:function(){return ft().invoke_qt1dr2$(this.yearInt,this.month1,this.dayOfMonth)}}),Object.defineProperty(zt.prototype,"time",{configurable:!0,get:function(){return li().invoke_tjonv8$(this.hours,this.minutes,this.seconds,this.milliseconds)}}),zt.prototype.plus_glepj8$=function(t){return this.add_5wr77w$(t.totalMonths,0)},zt.prototype.plus_5gml0z$=function(t){return this.add_5wr77w$(t.totalMonths,t.totalMilliseconds)},zt.prototype.plus_fv8bff$=function(t){return this.add_5wr77w$(0,t.milliseconds)},zt.prototype.minus_glepj8$=function(t){return this.plus_glepj8$(t.unaryMinus())},zt.prototype.minus_5gml0z$=function(t){return this.plus_5gml0z$(t.unaryMinus())},zt.prototype.minus_fv8bff$=function(t){return this.plus_fv8bff$(t.unaryMinus())},zt.prototype.minus_mw5vjr$=function(t){var e=this.unixMillisDouble-t.unixMillisDouble;return fi.Companion.fromMilliseconds_14dthe$(e)},zt.prototype.compareTo_11rb$=function(t){return e.compareTo(this.unixMillis,t.unixMillis)},zt.prototype.add_5wr77w$=function(t,e){if(0===t&&0===e)return this;if(0===t)return new zt(this.unixMillis+e);var n=this.year,i=this.month.index1,o=this.dayOfMonth,r=i-1+t|0;r>=0?(i=r%12+1|0,n=n.plus_za3lpa$(r/12|0)):(i=12+(r+1|0)%12|0,n=n.plus_za3lpa$((r-11|0)/12|0));var s=wn().invoke_za3lpa$(i).days_ccxljp$(n);return o>s&&(o=s),new zt(Pt().dateToMillisUnchecked_cub51b$(n.year,i,o)+this.yearOneMillis%864e5+e)},zt.prototype.add_e89ho5$=function(t,e){return this.add_5wr77w$(t.totalMonths,e.milliseconds)},zt.prototype.copyDayOfMonth_4lrum3$=function(t,e,n,i,o,r,s){return void 0===t&&(t=this.year),void 0===e&&(e=this.month),void 0===n&&(n=this.dayOfMonth),void 0===i&&(i=this.hours),void 0===o&&(o=this.minutes),void 0===r&&(r=this.seconds),void 0===s&&(s=this.milliseconds),Pt().invoke_4lrum3$(t,e,n,i,o,r,s)},zt.prototype.format_cgtbg3$=function(t){return Lt(t,this)},zt.prototype.format_61zpoe$=function(t){return Lt(Nt().invoke_61zpoe$(t),this)},zt.prototype.toString_61zpoe$=function(t){return Lt(Nt().invoke_61zpoe$(t),this)},zt.prototype.toString_cgtbg3$=function(t){return Lt(t,this)},zt.prototype.toStringDefault=function(){return Lt(Nt().DEFAULT_FORMAT,this)},zt.prototype.toString=function(){return"DateTime("+this.unixMillisLong.toString()+")"},zt.$metadata$={kind:a,simpleName:"DateTime",interfaces:[po,c]},zt.prototype.unbox=function(){return this.unixMillis},zt.prototype.hashCode=function(){var t=0;return t=31*t+e.hashCode(this.unixMillis)|0},zt.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.unixMillis,t.unixMillis)},kt.$metadata$={kind:o,simpleName:"Companion",interfaces:[]};var jt=null;function Gt(){return null===jt&&new kt,jt}function qt(t,e,n,i,o,r){Wt(),this.weeks=t,this.days=e,this.hours=n,this.minutes=i,this.seconds=o,this.milliseconds=r}function Ft(){Bt=this}Mt.prototype.unaryMinus=function(){return new Mt(this.monthSpan.unaryMinus(),this.timeSpan.unaryMinus())},Mt.prototype.unaryPlus=function(){return new Mt(this.monthSpan.unaryPlus(),this.timeSpan.unaryPlus())},Mt.prototype.plus_fv8bff$=function(t){return new Mt(this.monthSpan,this.timeSpan.plus_fv8bff$(t))},Mt.prototype.plus_glepj8$=function(t){return new Mt(this.monthSpan.plus_glepj8$(t),this.timeSpan)},Mt.prototype.plus_5gml0z$=function(t){return new Mt(this.monthSpan.plus_glepj8$(t.monthSpan),this.timeSpan.plus_fv8bff$(t.timeSpan))},Mt.prototype.minus_fv8bff$=function(t){return this.plus_fv8bff$(t.unaryMinus())},Mt.prototype.minus_glepj8$=function(t){return this.plus_glepj8$(t.unaryMinus())},Mt.prototype.minus_5gml0z$=function(t){return this.plus_5gml0z$(t.unaryMinus())},Mt.prototype.times_14dthe$=function(t){return new Mt(this.monthSpan.times_14dthe$(t),this.timeSpan.times_14dthe$(t))},Mt.prototype.times_za3lpa$=function(t){return this.times_14dthe$(t)},Mt.prototype.times_mx4ult$=function(t){return this.times_14dthe$(t)},Mt.prototype.div_14dthe$=function(t){return this.times_14dthe$(1/t)},Mt.prototype.div_za3lpa$=function(t){return this.div_14dthe$(t)},Mt.prototype.div_mx4ult$=function(t){return this.div_14dthe$(t)},Object.defineProperty(Mt.prototype,"totalYears",{configurable:!0,get:function(){return Un(this.monthSpan)}}),Object.defineProperty(Mt.prototype,"totalMonths",{configurable:!0,get:function(){return this.monthSpan.totalMonths}}),Object.defineProperty(Mt.prototype,"totalMilliseconds",{configurable:!0,get:function(){return this.timeSpan.milliseconds}}),Object.defineProperty(Mt.prototype,"years",{configurable:!0,get:function(){return Dn(this.monthSpan)}}),Object.defineProperty(Mt.prototype,"months",{configurable:!0,get:function(){return Pn(this.monthSpan)}}),Object.defineProperty(Mt.prototype,"weeks",{configurable:!0,get:function(){return this.computed_0.weeks}}),Object.defineProperty(Mt.prototype,"daysNotIncludingWeeks",{configurable:!0,get:function(){return this.days}}),Object.defineProperty(Mt.prototype,"daysIncludingWeeks",{configurable:!0,get:function(){return this.computed_0.days+(7*this.computed_0.weeks|0)|0}}),Object.defineProperty(Mt.prototype,"days",{configurable:!0,get:function(){return this.computed_0.days}}),Object.defineProperty(Mt.prototype,"hours",{configurable:!0,get:function(){return this.computed_0.hours}}),Object.defineProperty(Mt.prototype,"minutes",{configurable:!0,get:function(){return this.computed_0.minutes}}),Object.defineProperty(Mt.prototype,"seconds",{configurable:!0,get:function(){return this.computed_0.seconds}}),Object.defineProperty(Mt.prototype,"milliseconds",{configurable:!0,get:function(){return this.computed_0.milliseconds}}),Object.defineProperty(Mt.prototype,"secondsIncludingMilliseconds",{configurable:!0,get:function(){return this.computed_0.seconds+this.computed_0.milliseconds/1e3}}),Mt.prototype.compareTo_11rb$=function(t){return this.totalMonths!==t.totalMonths?this.monthSpan.compareTo_11rb$(t.monthSpan):this.timeSpan.compareTo_11rb$(t.timeSpan)},Mt.prototype.toString_6taknv$=function(t){var e,n,i,o=N();0!==this.years&&o.add_11rb$(this.years.toString()+"Y"),0!==this.months&&o.add_11rb$(this.months.toString()+"M"),t&&0!==this.weeks&&o.add_11rb$(this.weeks.toString()+"W"),(0!==this.days||!t&&0!==this.weeks)&&o.add_11rb$((t?this.days:this.daysIncludingWeeks).toString()+"D"),0!==this.hours&&o.add_11rb$(this.hours.toString()+"H"),0!==this.minutes&&o.add_11rb$(this.minutes.toString()+"m"),0===this.seconds&&0===this.milliseconds||o.add_11rb$(this.secondsIncludingMilliseconds.toString()+"s");var r=null!=(e=this.monthSpan)?e.equals(new Rn(0)):null;if(r){var s=null!=(n=this.timeSpan)?n.equals(fi.Companion.fromSeconds_14dthe$(0)):null;s||(s=null!=(i=this.timeSpan)?i.equals(fi.Companion.fromSeconds_14dthe$(0)):null),r=s}return r&&o.add_11rb$("0s"),T(o," ")},Mt.prototype.toString=function(){return this.toString_6taknv$(!0)},Ft.prototype.invoke_fv8bff$=function(t){var e=new so(t.milliseconds);return new qt(e.int_za3lpa$(6048e5),e.int_za3lpa$(864e5),e.int_za3lpa$(36e5),e.int_za3lpa$(6e4),e.int_za3lpa$(1e3),e.double_za3lpa$(1))},Ft.$metadata$={kind:o,simpleName:"Companion",interfaces:[]};var Bt=null;function Wt(){return null===Bt&&new Ft,Bt}function Ht(){}function Vt(t,e){ie(),this.adjusted_0=t,this.offset=e}function Kt(){ne=this,this.serialVersionUID_0=n}qt.$metadata$={kind:a,simpleName:"ComputedTime",interfaces:[]},Object.defineProperty(Mt.prototype,"computed_0",{configurable:!0,get:function(){return this.computed_a87s7m$_0.value}}),Mt.$metadata$={kind:a,simpleName:"DateTimeSpan",interfaces:[po,c]},Mt.prototype.component1=function(){return this.monthSpan},Mt.prototype.component2=function(){return this.timeSpan},Mt.prototype.copy_e89ho5$=function(t,e){return new Mt(void 0===t?this.monthSpan:t,void 0===e?this.timeSpan:e)},Mt.prototype.hashCode=function(){var t=0;return t=31*(t=31*t+e.hashCode(this.monthSpan)|0)+e.hashCode(this.timeSpan)|0},Mt.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.monthSpan,t.monthSpan)&&e.equals(this.timeSpan,t.timeSpan)},Ht.$metadata$={kind:_,simpleName:"DateTimeSpanFormat",interfaces:[]},Kt.prototype.local_rq74cp$=function(t,e){return new Vt(t,e)},Kt.prototype.utc_rq74cp$=function(t,e){return new Vt(t.plus_fv8bff$(e.time),e)},Kt.prototype.fromUnixLocal_s8cxhz$=function(t){return this.fromUnixLocal_14dthe$(t.toNumber())},Kt.prototype.fromUnixLocal_14dthe$=function(t){return new zt(t).localUnadjusted},Kt.prototype.fromUnix_s8cxhz$=function(t){var e=Pt().invoke_s8cxhz$(t);return this.utc_rq74cp$(e,zi().local_mw5vjr$(e))},Kt.prototype.nowLocal=function(){return Pt().now().local},Kt.$metadata$={kind:o,simpleName:"Companion",interfaces:[]};var Xt,Jt,Yt,Qt,Zt,te,ee,ne=null;function ie(){return null===ne&&new Kt,ne}function oe(t,e,n){m.call(this),this.index0=n,this.name$=t,this.ordinal$=e}function re(){re=function(){},Xt=new oe("Sunday",0,0),Jt=new oe("Monday",1,1),Yt=new oe("Tuesday",2,2),Qt=new oe("Wednesday",3,3),Zt=new oe("Thursday",4,4),te=new oe("Friday",5,5),ee=new oe("Saturday",6,6),me()}function se(){return re(),Xt}function ae(){return re(),Jt}function ce(){return re(),Yt}function le(){return re(),Qt}function ue(){return re(),Zt}function he(){return re(),te}function de(){return re(),ee}function pe(){_e=this,this.serialVersionUID_0=n,this.Count=7,this.BY_INDEX0_0=fe()}Object.defineProperty(Vt.prototype,"local",{configurable:!0,get:function(){return this.adjusted_0}}),Object.defineProperty(Vt.prototype,"utc",{configurable:!0,get:function(){return this.adjusted_0.minus_fv8bff$(this.offset.time)}}),Object.defineProperty(Vt.prototype,"year",{configurable:!0,get:function(){return this.adjusted_0.year}}),Object.defineProperty(Vt.prototype,"yearInt",{configurable:!0,get:function(){return this.adjusted_0.yearInt}}),Object.defineProperty(Vt.prototype,"month",{configurable:!0,get:function(){return this.adjusted_0.month}}),Object.defineProperty(Vt.prototype,"month0",{configurable:!0,get:function(){return this.adjusted_0.month0}}),Object.defineProperty(Vt.prototype,"month1",{configurable:!0,get:function(){return this.adjusted_0.month1}}),Object.defineProperty(Vt.prototype,"yearMonth",{configurable:!0,get:function(){return this.adjusted_0.yearMonth}}),Object.defineProperty(Vt.prototype,"dayOfMonth",{configurable:!0,get:function(){return this.adjusted_0.dayOfMonth}}),Object.defineProperty(Vt.prototype,"dayOfWeek",{configurable:!0,get:function(){return this.adjusted_0.dayOfWeek}}),Object.defineProperty(Vt.prototype,"dayOfWeekInt",{configurable:!0,get:function(){return this.adjusted_0.dayOfWeekInt}}),Object.defineProperty(Vt.prototype,"dayOfYear",{configurable:!0,get:function(){return this.adjusted_0.dayOfYear}}),Object.defineProperty(Vt.prototype,"hours",{configurable:!0,get:function(){return this.adjusted_0.hours}}),Object.defineProperty(Vt.prototype,"minutes",{configurable:!0,get:function(){return this.adjusted_0.minutes}}),Object.defineProperty(Vt.prototype,"seconds",{configurable:!0,get:function(){return this.adjusted_0.seconds}}),Object.defineProperty(Vt.prototype,"milliseconds",{configurable:!0,get:function(){return this.adjusted_0.milliseconds}}),Vt.prototype.toOffsetUnadjusted_fv8bff$=function(t){return this.toOffsetUnadjusted_q6c6ai$(wi(t))},Vt.prototype.toOffsetUnadjusted_q6c6ai$=function(t){return ie().local_rq74cp$(this.local,t)},Vt.prototype.addOffsetUnadjusted_fv8bff$=function(t){return this.addOffsetUnadjusted_q6c6ai$(wi(t))},Vt.prototype.addOffsetUnadjusted_q6c6ai$=function(t){return ie().local_rq74cp$(this.local,wi(this.offset.time.plus_fv8bff$(t.time)))},Vt.prototype.toOffset_fv8bff$=function(t){return this.toOffset_q6c6ai$(wi(t))},Vt.prototype.toOffset_q6c6ai$=function(t){return ie().utc_rq74cp$(this.utc,t)},Vt.prototype.addOffset_fv8bff$=function(t){return this.addOffset_q6c6ai$(wi(t))},Vt.prototype.addOffset_q6c6ai$=function(t){return ie().utc_rq74cp$(this.utc,wi(this.offset.time.plus_fv8bff$(t.time)))},Vt.prototype.add_e89ho5$=function(t,e){return new Vt(this.adjusted_0.add_e89ho5$(t,e),this.offset)},Vt.prototype.plus_glepj8$=function(t){return this.add_e89ho5$(t,fi.Companion.fromMilliseconds_14dthe$(0))},Vt.prototype.plus_5gml0z$=function(t){return this.add_e89ho5$(t.monthSpan,t.timeSpan)},Vt.prototype.plus_fv8bff$=function(t){return this.add_e89ho5$(new Rn(0),t)},Vt.prototype.minus_glepj8$=function(t){return this.plus_glepj8$(t.unaryMinus())},Vt.prototype.minus_5gml0z$=function(t){return this.plus_5gml0z$(t.unaryMinus())},Vt.prototype.minus_fv8bff$=function(t){return this.plus_fv8bff$(t.unaryMinus())},Vt.prototype.minus_j01w8f$=function(t){var e=this.utc.unixMillisDouble-t.utc.unixMillisDouble;return fi.Companion.fromMilliseconds_14dthe$(e)},Vt.prototype.hashCode=function(){return this.local.hashCode()+this.offset.totalMinutesInt|0},Vt.prototype.equals=function(t){return e.isType(t,Vt)&&this.utc.unixMillisDouble===t.utc.unixMillisDouble},Vt.prototype.compareTo_11rb$=function(t){return e.compareTo(this.utc.unixMillis,t.utc.unixMillis)},Vt.prototype.format_cgtbg3$=function(t){return t.format_j01w8f$(this)},Vt.prototype.format_61zpoe$=function(t){return Nt().invoke_61zpoe$(t).format_j01w8f$(this)},Vt.prototype.toString_cgtbg3$=function(t){return t.format_j01w8f$(this)},Vt.prototype.toString_61zpoe$=function(t){return Nt().invoke_61zpoe$(t).format_j01w8f$(this)},Vt.prototype.toStringDefault=function(){return Nt().DEFAULT_FORMAT.format_j01w8f$(this)},Vt.prototype.toString=function(){return"DateTimeTz("+this.adjusted_0+", "+this.offset+")"},Vt.$metadata$={kind:a,simpleName:"DateTimeTz",interfaces:[po,c]},Object.defineProperty(oe.prototype,"index1",{configurable:!0,get:function(){return this.index0+1|0}}),Object.defineProperty(oe.prototype,"index0Sunday",{configurable:!0,get:function(){return this.index0}}),Object.defineProperty(oe.prototype,"index1Sunday",{configurable:!0,get:function(){return this.index1}}),Object.defineProperty(oe.prototype,"index0Monday",{configurable:!0,get:function(){return no(this.index0-1|0,7)}}),Object.defineProperty(oe.prototype,"index1Monday",{configurable:!0,get:function(){return this.index0Monday+1|0}}),oe.prototype.index0Locale_kdekv2$=function(t){return no(this.index0-t.firstDayOfWeek.index0|0,7)},oe.prototype.index1Locale_kdekv2$=function(t){return this.index0Locale_kdekv2$(t)+1|0},oe.prototype.isWeekend_kdekv2$=function(t){return void 0===t&&(t=ke().default),t.isWeekend_76hapz$(this)},Object.defineProperty(oe.prototype,"localName",{configurable:!0,get:function(){return this.localName_kdekv2$(ke().default)}}),oe.prototype.localName_kdekv2$=function(t){return t.daysOfWeek.get_za3lpa$(this.index0)},Object.defineProperty(oe.prototype,"localShortName",{configurable:!0,get:function(){return this.localShortName_kdekv2$(ke().default)}}),oe.prototype.localShortName_kdekv2$=function(t){return t.daysOfWeekShort.get_za3lpa$(this.index0)},Object.defineProperty(oe.prototype,"prev",{configurable:!0,get:function(){return me().get_za3lpa$(this.index0-1|0)}}),Object.defineProperty(oe.prototype,"next",{configurable:!0,get:function(){return me().get_za3lpa$(this.index0+1|0)}}),oe.prototype.prev_za3lpa$=function(t){return void 0===t&&(t=1),me().get_za3lpa$(this.index0-t|0)},oe.prototype.next_za3lpa$=function(t){return void 0===t&&(t=1),me().get_za3lpa$(this.index0+t|0)},pe.prototype.get_za3lpa$=function(t){return this.BY_INDEX0_0[no(t,7)]},pe.prototype.get0_b9f65o$=function(t,e){return void 0===e&&(e=ke().default),me().get_za3lpa$(t+e.firstDayOfWeek.index0|0)},pe.prototype.get1_b9f65o$=function(t,e){return void 0===e&&(e=ke().default),this.get0_b9f65o$(no(t-1|0,7),e)},pe.prototype.firstDayOfWeek_kdekv2$=function(t){return void 0===t&&(t=ke().default),t.firstDayOfWeek},pe.prototype.comparator_kdekv2$=function(t){return void 0===t&&(t=ke().default),t.daysOfWeekComparator},pe.$metadata$={kind:o,simpleName:"Companion",interfaces:[]};var _e=null;function me(){return re(),null===_e&&new pe,_e}function fe(){return[se(),ae(),ce(),le(),ue(),he(),de()]}function ge(t,e){this.dayOfWeek=t,this.locale=e}function $e(){Re=this,this.DATE_CALENDAR_COMPLETE=new Te("YYYYMMDD","YYYY-MM-DD"),this.DATE_CALENDAR_REDUCED0=new Te(null,"YYYY-MM"),this.DATE_CALENDAR_REDUCED1=new Te("YYYY",null),this.DATE_CALENDAR_REDUCED2=new Te("YY",null),this.DATE_CALENDAR_EXPANDED0=new Te("±YYYYYYMMDD","±YYYYYY-MM-DD"),this.DATE_CALENDAR_EXPANDED1=new Te("±YYYYYYMM","±YYYYYY-MM"),this.DATE_CALENDAR_EXPANDED2=new Te("±YYYYYY",null),this.DATE_CALENDAR_EXPANDED3=new Te("±YYY",null),this.DATE_ORDINAL_COMPLETE=new Te("YYYYDDD","YYYY-DDD"),this.DATE_ORDINAL_EXPANDED=new Te("±YYYYYYDDD","±YYYYYY-DDD"),this.DATE_WEEK_COMPLETE=new Te("YYYYWwwD","YYYY-Www-D"),this.DATE_WEEK_REDUCED=new Te("YYYYWww","YYYY-Www"),this.DATE_WEEK_EXPANDED0=new Te("±YYYYYYWwwD","±YYYYYY-Www-D"),this.DATE_WEEK_EXPANDED1=new Te("±YYYYYYWww","±YYYYYY-Www"),this.DATE_ALL=p([this.DATE_CALENDAR_COMPLETE,this.DATE_CALENDAR_REDUCED0,this.DATE_CALENDAR_REDUCED1,this.DATE_CALENDAR_REDUCED2,this.DATE_CALENDAR_EXPANDED0,this.DATE_CALENDAR_EXPANDED1,this.DATE_CALENDAR_EXPANDED2,this.DATE_CALENDAR_EXPANDED3,this.DATE_ORDINAL_COMPLETE,this.DATE_ORDINAL_EXPANDED,this.DATE_WEEK_COMPLETE,this.DATE_WEEK_REDUCED,this.DATE_WEEK_EXPANDED0,this.DATE_WEEK_EXPANDED1]),this.TIME_LOCAL_COMPLETE=new Ne("hhmmss","hh:mm:ss"),this.TIME_LOCAL_REDUCED0=new Ne("hhmm","hh:mm"),this.TIME_LOCAL_REDUCED1=new Ne("hh",null),this.TIME_LOCAL_FRACTION0=new Ne("hhmmss,ss","hh:mm:ss,ss"),this.TIME_LOCAL_FRACTION1=new Ne("hhmm,mm","hh:mm,mm"),this.TIME_LOCAL_FRACTION2=new Ne("hh,hh",null),this.TIME_UTC_COMPLETE=new Ne("hhmmssZ","hh:mm:ssZ"),this.TIME_UTC_REDUCED0=new Ne("hhmmZ","hh:mmZ"),this.TIME_UTC_REDUCED1=new Ne("hhZ",null),this.TIME_UTC_FRACTION0=new Ne("hhmmss,ssZ","hh:mm:ss,ssZ"),this.TIME_UTC_FRACTION1=new Ne("hhmm,mmZ","hh:mm,mmZ"),this.TIME_UTC_FRACTION2=new Ne("hh,hhZ",null),this.TIME_RELATIVE0=new Ne("±hhmm","±hh:mm"),this.TIME_RELATIVE1=new Ne("±hh",null),this.TIME_ALL=p([this.TIME_LOCAL_COMPLETE,this.TIME_LOCAL_REDUCED0,this.TIME_LOCAL_REDUCED1,this.TIME_LOCAL_FRACTION0,this.TIME_LOCAL_FRACTION1,this.TIME_LOCAL_FRACTION2,this.TIME_UTC_COMPLETE,this.TIME_UTC_REDUCED0,this.TIME_UTC_REDUCED1,this.TIME_UTC_FRACTION0,this.TIME_UTC_FRACTION1,this.TIME_UTC_FRACTION2,this.TIME_RELATIVE0,this.TIME_RELATIVE1]),this.DATETIME_COMPLETE=new Te("YYYYMMDDThhmmss","YYYY-MM-DDThh:mm:ss"),this.DATETIME_UTC_COMPLETE=new Te("YYYYMMDDThhmmssZ","YYYY-MM-DDThh:mm:ssZ"),this.DATETIME_UTC_COMPLETE_FRACTION=new Te("YYYYMMDDThhmmss.sssZ","YYYY-MM-DDThh:mm:ss.sssZ"),this.INTERVAL_COMPLETE0=new Ce("PnnYnnMnnDTnnHnnMnnS"),this.INTERVAL_COMPLETE1=new Ce("PnnYnnW"),this.INTERVAL_REDUCED0=new Ce("PnnYnnMnnDTnnHnnM"),this.INTERVAL_REDUCED1=new Ce("PnnYnnMnnDTnnH"),this.INTERVAL_REDUCED2=new Ce("PnnYnnMnnD"),this.INTERVAL_REDUCED3=new Ce("PnnYnnM"),this.INTERVAL_REDUCED4=new Ce("PnnY"),this.INTERVAL_DECIMAL0=new Ce("PnnYnnMnnDTnnHnnMnn,nnS"),this.INTERVAL_DECIMAL1=new Ce("PnnYnnMnnDTnnHnn,nnM"),this.INTERVAL_DECIMAL2=new Ce("PnnYnnMnnDTnn,nnH"),this.INTERVAL_DECIMAL3=new Ce("PnnYnnMnn,nnD"),this.INTERVAL_DECIMAL4=new Ce("PnnYnn,nnM"),this.INTERVAL_DECIMAL5=new Ce("PnnYnn,nnW"),this.INTERVAL_DECIMAL6=new Ce("PnnY"),this.INTERVAL_ZERO_OMIT0=new Ce("PnnYnnDTnnHnnMnnS"),this.INTERVAL_ZERO_OMIT1=new Ce("PnnYnnDTnnHnnM"),this.INTERVAL_ZERO_OMIT2=new Ce("PnnYnnDTnnH"),this.INTERVAL_ZERO_OMIT3=new Ce("PnnYnnD"),this.INTERVAL_ALL=p([this.INTERVAL_COMPLETE0,this.INTERVAL_COMPLETE1,this.INTERVAL_REDUCED0,this.INTERVAL_REDUCED1,this.INTERVAL_REDUCED2,this.INTERVAL_REDUCED3,this.INTERVAL_REDUCED4,this.INTERVAL_DECIMAL0,this.INTERVAL_DECIMAL1,this.INTERVAL_DECIMAL2,this.INTERVAL_DECIMAL3,this.INTERVAL_DECIMAL4,this.INTERVAL_DECIMAL5,this.INTERVAL_DECIMAL6,this.INTERVAL_ZERO_OMIT0,this.INTERVAL_ZERO_OMIT1,this.INTERVAL_ZERO_OMIT2,this.INTERVAL_ZERO_OMIT3]),this.DATE=new Le,this.TIME=new ze,this.INTERVAL=new we}function Ee(t){Se(),this.format=t,this.dateTimeFormat_0=new ve(this.format)}function ye(){be=this,this.ref_0=Pt().invoke_ui44o2$(1900,1,1)}oe.$metadata$={kind:a,simpleName:"DayOfWeek",interfaces:[po,m]},oe.values=fe,oe.valueOf_61zpoe$=function(t){switch(t){case"Sunday":return se();case"Monday":return ae();case"Tuesday":return ce();case"Wednesday":return le();case"Thursday":return ue();case"Friday":return he();case"Saturday":return de();default:f("No enum constant com.soywiz.klock.DayOfWeek."+t)}},Object.defineProperty(ge.prototype,"index0",{configurable:!0,get:function(){return this.dayOfWeek.index0Locale_kdekv2$(this.locale)}}),Object.defineProperty(ge.prototype,"index1",{configurable:!0,get:function(){return this.dayOfWeek.index1Locale_kdekv2$(this.locale)}}),ge.prototype.compareTo_11rb$=function(t){if(!S(t.locale,this.locale))throw g("Can't compare two day of weeks with different locales".toString());return this.locale.daysOfWeekComparator.compare(this.dayOfWeek,t.dayOfWeek)},ge.$metadata$={kind:a,simpleName:"DayOfWeekWithLocale",interfaces:[c]},ge.prototype.component1=function(){return this.dayOfWeek},ge.prototype.component2=function(){return this.locale},ge.prototype.copy_kbnvat$=function(t,e){return new ge(void 0===t?this.dayOfWeek:t,void 0===e?this.locale:e)},ge.prototype.toString=function(){return"DayOfWeekWithLocale(dayOfWeek="+e.toString(this.dayOfWeek)+", locale="+e.toString(this.locale)+")"},ge.prototype.hashCode=function(){var t=0;return t=31*(t=31*t+e.hashCode(this.dayOfWeek)|0)+e.hashCode(this.locale)|0},ge.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.dayOfWeek,t.dayOfWeek)&&e.equals(this.locale,t.locale)},ye.$metadata$={kind:o,simpleName:"Companion",interfaces:[]};var be=null;function Se(){return null===be&&new ye,be}function ve(t,e){void 0===e&&(e=1900),this.format=t,this.twoDigitBaseYear=e}function Ce(t){this.format=t}function Ne(t,e){var n,i,o,r,s,a;if(this.basicFormat=t,this.extendedFormat=e,null==(i=null!=(n=this.basicFormat)?n:this.extendedFormat))throw new A;if(s=i,this.basic=new Ee(s),null==(r=null!=(o=this.extendedFormat)?o:this.basicFormat))throw new A;a=r,this.extended=new Ee(a)}function Te(t,e){var n,i,o,r,s,a;if(this.basicFormat=t,this.extendedFormat=e,null==(i=null!=(n=this.basicFormat)?n:this.extendedFormat))throw new A;if(s=i,this.basic=new ve(s),null==(r=null!=(o=this.extendedFormat)?o:this.basicFormat))throw new A;a=r,this.extended=new ve(a)}function Le(){}function ze(){}function we(){}Ee.prototype.format_fv8bff$=function(t){return Lt(this.dateTimeFormat_0,Se().ref_0.plus_fv8bff$(t))},Ee.prototype.tryParse_ivxn3r$=function(t,e){var n;return null!=(n=this.dateTimeFormat_0.tryParse_ivxn3r$(t,e))?n.utc.minus_mw5vjr$(Se().ref_0):null},Ee.$metadata$={kind:a,simpleName:"BaseIsoTimeFormat",interfaces:[ui]},Ee.prototype.component1=function(){return this.format},Ee.prototype.copy_61zpoe$=function(t){return new Ee(void 0===t?this.format:t)},Ee.prototype.toString=function(){return"BaseIsoTimeFormat(format="+e.toString(this.format)+")"},Ee.prototype.hashCode=function(){var t=0;return t=31*t+e.hashCode(this.format)|0},Ee.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.format,t.format)},ve.prototype.format_j01w8f$=function(t){for(var e,n,i,o=R(),s=L(this.format,90)?t.utc:t.local,a=s.copyDayOfMonth_4lrum3$(void 0,void 0,void 0,0,0,0,0),c=s.minus_mw5vjr$(a),l=new Hi(this.format);l.hasMore;)if(l.tryRead_61zpoe$("YYYYYY"))o.append_pdl1vj$(Ji(r(s.yearInt),6));else if(l.tryRead_61zpoe$("YYYY"))o.append_pdl1vj$(Ji(r(s.yearInt),4));else if(l.tryRead_61zpoe$("YY"))o.append_pdl1vj$(Ji(r(s.yearInt)%100,2));else if(l.tryRead_61zpoe$("MM"))o.append_pdl1vj$(Ji(s.month1,2));else if(l.tryRead_61zpoe$("DD"))o.append_pdl1vj$(Ji(s.dayOfMonth,2));else if(l.tryRead_61zpoe$("DDD"))o.append_pdl1vj$(Ji(s.dayOfWeekInt,3));else if(l.tryRead_61zpoe$("ww"))o.append_pdl1vj$(Ji(Ue(s),2));else if(l.tryRead_61zpoe$("D"))o.append_s8jyv4$(s.dayOfWeek.index1Monday);else if(l.tryRead_61zpoe$("hh")){var u=l.tryRead_s8itvh$(44);if(u||l.tryRead_s8itvh$(46)){for(var h=0;l.tryRead_s8itvh$(104);)h=h+1|0;e=Yi(c.hours,2,h)}else e=Ji(s.hours,2);var d=e;o.append_pdl1vj$(u?z(d,46,44):d)}else if(l.tryRead_61zpoe$("mm")){var p=l.tryRead_s8itvh$(44);if(p||l.tryRead_s8itvh$(46)){for(var _=0;l.tryRead_s8itvh$(109);)_=_+1|0;n=Yi(c.minutes%60,2,_)}else n=Ji(s.minutes,2);var m=n;o.append_pdl1vj$(p?z(m,46,44):m)}else if(l.tryRead_61zpoe$("ss")){var f=l.tryRead_s8itvh$(44);if(f||l.tryRead_s8itvh$(46)){for(var g=0;l.tryRead_s8itvh$(115);)g=g+1|0;i=Yi(c.seconds%60,2,g)}else i=Ji(s.seconds,2);var $=i;o.append_pdl1vj$(f?z($,46,44):$)}else l.tryRead_61zpoe$("±")?o.append_pdl1vj$(s.yearInt<0?"-":"+"):o.append_s8itvh$(w(l.readChar()));return o.toString()},ve.prototype.tryParse_ivxn3r$$default=function(t,e){var n=this.tryParse_0(t);if(e&&null==n)throw new gt("Can't parse "+t+" with "+this.format);return n},ve.prototype.reportParse_0=function(t){return null},ve.prototype.tryParse_0=function(t){for(var e,n,i,o,r,s,a,c,l,u,h,d,p,_,m,f,g,$,E=null,y=this.twoDigitBaseYear,b=1,S=1,v=-1,C=-1,N=-1,T=0,L=0,z=0,O=new Hi(t),R=new Hi(this.format);R.hasMore;)if(R.tryRead_61zpoe$("Z"))E=Xi(O);else if(R.tryRead_61zpoe$("YYYYYY")){if(null==(e=O.tryReadInt_za3lpa$(6)))return this.reportParse_0("YYYYYY");y=e}else if(R.tryRead_61zpoe$("YYYY")){if(null==(n=O.tryReadInt_za3lpa$(4)))return this.reportParse_0("YYYY");y=n}else if(R.tryRead_61zpoe$("YY")){if(null==(i=O.tryReadInt_za3lpa$(2)))return this.reportParse_0("YY");var A=i;y=this.twoDigitBaseYear+A|0}else if(R.tryRead_61zpoe$("MM")){if(null==(o=O.tryReadInt_za3lpa$(2)))return this.reportParse_0("MM");b=o}else if(R.tryRead_61zpoe$("DD")){if(null==(r=O.tryReadInt_za3lpa$(2)))return this.reportParse_0("DD");S=r}else if(R.tryRead_61zpoe$("DDD")){if(null==(s=O.tryReadInt_za3lpa$(3)))return this.reportParse_0("DDD");C=s}else if(R.tryRead_61zpoe$("ww")){if(null==(a=O.tryReadInt_za3lpa$(2)))return this.reportParse_0("ww");N=a}else if(R.tryRead_61zpoe$("D")){if(null==(c=O.tryReadInt_za3lpa$(1)))return this.reportParse_0("D");v=c}else if(R.tryRead_61zpoe$("hh")){if(R.tryRead_s8itvh$(44)||R.tryRead_s8itvh$(46)){for(var x=3;R.tryRead_s8itvh$(104);)x=x+1|0;if(null==(l=O.tryReadDouble_za3lpa$(x)))return this.reportParse_0("incorrect hours");h=l}else{if(null==(u=O.tryReadDouble_za3lpa$(2)))return this.reportParse_0("incorrect hours");h=u}T=h}else if(R.tryRead_61zpoe$("mm")){if(R.tryRead_s8itvh$(44)||R.tryRead_s8itvh$(46)){for(var I=3;R.tryRead_s8itvh$(109);)I=I+1|0;if(null==(d=O.tryReadDouble_za3lpa$(I)))return this.reportParse_0("incorrect minutes");_=d}else{if(null==(p=O.tryReadDouble_za3lpa$(2)))return this.reportParse_0("incorrect seconds");_=p}L=_}else if(R.tryRead_61zpoe$("ss")){if(R.tryRead_s8itvh$(44)||R.tryRead_s8itvh$(46)){for(var U=3;R.tryRead_s8itvh$(115);)U=U+1|0;if(null==(m=O.tryReadDouble_za3lpa$(U)))return this.reportParse_0("incorrect seconds");g=m}else{if(null==(f=O.tryReadDouble_za3lpa$(2)))return this.reportParse_0("incorrect seconds");g=f}z=g}else if(R.tryRead_61zpoe$("±"))switch(w(O.readChar())){case 43:1;break;case 45:-1;break;default:return this.reportParse_0("±")}else if(w(R.readChar())!==w(O.readChar()))return this.reportParse_0("separator");if(O.hasMore)return this.reportParse_0("uncomplete");if(C>=0){var D=C-1|0;$=Pt().invoke_ui44o2$(y,1,1).plus_fv8bff$(fi.Companion.fromDays_14dthe$(D))}else if(N>=0){var P=v-1+(7*(N-1|0)|0)|0;$=xe(new Oi(y),ue()).minus_fv8bff$(fi.Companion.fromDays_14dthe$(3)).plus_fv8bff$(fi.Companion.fromDays_14dthe$(P))}else $=Pt().invoke_ui44o2$(y,b,S);var M=T,k=L,j=z,G=$.plus_fv8bff$(fi.Companion.fromHours_14dthe$(M)).plus_fv8bff$(fi.Companion.fromMinutes_14dthe$(k)).plus_fv8bff$(fi.Companion.fromSeconds_14dthe$(j));return null!=E?ie().utc_rq74cp$(G,zi().invoke_fv8bff$(E)):G.local},ve.prototype.withTwoDigitBaseYear_za3lpa$=function(t){return void 0===t&&(t=1900),new ve(this.format,t)},ve.$metadata$={kind:a,simpleName:"BaseIsoDateTimeFormat",interfaces:[$t]},ve.prototype.component1=function(){return this.format},ve.prototype.component2=function(){return this.twoDigitBaseYear},ve.prototype.copy_bm4lxs$=function(t,e){return new ve(void 0===t?this.format:t,void 0===e?this.twoDigitBaseYear:e)},ve.prototype.toString=function(){return"BaseIsoDateTimeFormat(format="+e.toString(this.format)+", twoDigitBaseYear="+e.toString(this.twoDigitBaseYear)+")"},ve.prototype.hashCode=function(){var t=0;return t=31*(t=31*t+e.hashCode(this.format)|0)+e.hashCode(this.twoDigitBaseYear)|0},ve.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.format,t.format)&&e.equals(this.twoDigitBaseYear,t.twoDigitBaseYear)},Ce.prototype.format_5gml0z$=function(t){for(var e=R(),n=new Hi(this.format),i={v:!1};n.hasMore;)n.tryRead_61zpoe$("T")?(e.append_s8itvh$(84),i.v=!0):n.tryRead_61zpoe$("nnY")?e.append_s8jyv4$(t.years).append_s8itvh$(89):n.tryRead_61zpoe$("nnM")?e.append_s8jyv4$(i.v?t.minutes:t.months).append_s8itvh$(77):n.tryRead_61zpoe$("nnD")?e.append_s8jyv4$(t.daysIncludingWeeks).append_s8itvh$(68):n.tryRead_61zpoe$("nnH")?e.append_s8jyv4$(t.hours).append_s8itvh$(72):n.tryRead_61zpoe$("nnS")?e.append_s8jyv4$(t.seconds).append_s8itvh$(83):e.append_s8itvh$(w(n.readChar()));return e.toString()},Ce.prototype.tryParse_ivxn3r$=function(t,e){for(var n,i,o,r,s,a,c=!1,l=0,u=0,h=0,d=0,p=0,_=0,m=new Hi(t),f=new Hi(this.format);f.hasMore;)if(f.tryRead_61zpoe$("nn,nnY")||f.tryRead_61zpoe$("nnY")){if(null==(n=m.tryReadDouble()))return null;if(l=n,!m.tryRead_61zpoe$("Y"))return null}else if(f.tryRead_61zpoe$("nn,nnM")||f.tryRead_61zpoe$("nnM")){if(c){if(null==(i=m.tryReadDouble()))return null;p=i}else{if(null==(o=m.tryReadDouble()))return null;u=o}if(!m.tryRead_61zpoe$("M"))return null}else if(f.tryRead_61zpoe$("nn,nnD")||f.tryRead_61zpoe$("nnD")){if(null==(r=m.tryReadDouble()))return null;if(h=r,!m.tryRead_61zpoe$("D"))return null}else if(f.tryRead_61zpoe$("nn,nnH")||f.tryRead_61zpoe$("nnH")){if(null==(s=m.tryReadDouble()))return null;if(d=s,!m.tryRead_61zpoe$("H"))return null}else if(f.tryRead_61zpoe$("nn,nnS")||f.tryRead_61zpoe$("nnS")){if(null==(a=m.tryReadDouble()))return null;if(_=a,!m.tryRead_61zpoe$("S"))return null}else{var g=w(f.readChar());if(g!==w(m.readChar()))return null;84===g&&(c=!0)}var $=new Rn(O(12*l+u)),E=h,y=d,b=p,S=fi.Companion.fromDays_14dthe$(E).plus_fv8bff$(fi.Companion.fromHours_14dthe$(y)).plus_fv8bff$(fi.Companion.fromMinutes_14dthe$(b)),v=_;return $.plus_fv8bff$(S.plus_fv8bff$(fi.Companion.fromSeconds_14dthe$(v)))},Ce.$metadata$={kind:a,simpleName:"IsoIntervalFormat",interfaces:[Ht]},Ne.prototype.format_fv8bff$=function(t){return this.extended.format_fv8bff$(t)},Ne.prototype.tryParse_ivxn3r$=function(t,e){var n,i;if(null==(i=null!=(n=this.basic.tryParse_ivxn3r$(t,!1))?n:this.extended.tryParse_ivxn3r$(t,!1))){if(e)throw new gt("Invalid format "+t);i=null}return i},Ne.$metadata$={kind:a,simpleName:"IsoTimeFormat",interfaces:[ui]},Ne.prototype.component1=function(){return this.basicFormat},Ne.prototype.component2=function(){return this.extendedFormat},Ne.prototype.copy_rkkr90$=function(t,e){return new Ne(void 0===t?this.basicFormat:t,void 0===e?this.extendedFormat:e)},Ne.prototype.toString=function(){return"IsoTimeFormat(basicFormat="+e.toString(this.basicFormat)+", extendedFormat="+e.toString(this.extendedFormat)+")"},Ne.prototype.hashCode=function(){var t=0;return t=31*(t=31*t+e.hashCode(this.basicFormat)|0)+e.hashCode(this.extendedFormat)|0},Ne.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.basicFormat,t.basicFormat)&&e.equals(this.extendedFormat,t.extendedFormat)},Te.prototype.format_j01w8f$=function(t){return this.extended.format_j01w8f$(t)},Te.prototype.tryParse_ivxn3r$$default=function(t,e){var n,i;if(null==(i=null!=(n=this.basic.tryParse_ivxn3r$(t,!1))?n:this.extended.tryParse_ivxn3r$(t,!1))){if(e)throw new gt("Invalid format "+t);i=null}return i},Te.$metadata$={kind:a,simpleName:"IsoDateTimeFormat",interfaces:[$t]},Te.prototype.component1=function(){return this.basicFormat},Te.prototype.component2=function(){return this.extendedFormat},Te.prototype.copy_rkkr90$=function(t,e){return new Te(void 0===t?this.basicFormat:t,void 0===e?this.extendedFormat:e)},Te.prototype.toString=function(){return"IsoDateTimeFormat(basicFormat="+e.toString(this.basicFormat)+", extendedFormat="+e.toString(this.extendedFormat)+")"},Te.prototype.hashCode=function(){var t=0;return t=31*(t=31*t+e.hashCode(this.basicFormat)|0)+e.hashCode(this.extendedFormat)|0},Te.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.basicFormat,t.basicFormat)&&e.equals(this.extendedFormat,t.extendedFormat)},Le.prototype.format_j01w8f$=function(t){return Ae().DATE_CALENDAR_COMPLETE.format_j01w8f$(t)},Le.prototype.tryParse_ivxn3r$$default=function(t,e){for(var n,i=Ae().DATE_ALL,o=0;oa.length){var d=-1*(h-a.length|0)|0;n=O(l*$.pow(10,d))}else n=Qi(Ji(l,3)+"000000",0,a.length);break;case"X":case"XX":case"XXX":case"x":case"xx":case"xxx":if(D(a,"X")&&0===t.offset.totalMinutesInt)n="Z";else{var p=t.offset.totalMinutesInt>=0?"+":"-",_=r(t.offset.totalMinutesInt/60|0),m=r(t.offset.totalMinutesInt%60);switch(a){case"X":case"x":n=p+Ji(_,2);break;case"XX":case"xx":n=p+Ji(_,2)+Ji(m,2);break;case"XXX":case"xxx":n=p+Ji(_,2)+":"+Ji(m,2);break;default:n=a}}break;case"a":n=o.hours<12?"am":"pm";break;default:if(P(a,39)){var f=a.length-1|0;n=a.substring(1,f)}else n=a}s=i+n}return s},Mn.prototype.tryParse_ivxn3r$$default=function(t,e){var n,i,o,r=0,s=0,a=0,c=0,u=1,h=1,d=1970,p=null,_=!1,m=!1;if(null==(n=this.rx2_8be2vx$.find_905azu$(t)))return null;var f=n;for(i=k(this.chunks_8be2vx$,M(f.groupValues,1)).iterator();i.hasNext();){var g=i.next(),E=g.component1(),y=g.component2();if(0!==y.length)switch(E){case"E":case"EE":case"EEE":case"EEEE":case"EEEEE":case"EEEEEE":break;case"z":case"zzz":p=Xi(new Hi(y),this.tzNames);break;case"d":case"dd":u=j(y);break;case"do":u=this.realLocale.getDayByOrdinal_61zpoe$(y);break;case"M":case"MM":h=j(y);break;case"MMM":h=this.realLocale.monthsShort.indexOf_11rb$(y)+1|0;break;case"y":case"yyyy":case"YYYY":d=j(y);break;case"yy":if(e)throw l("Not guessing years from two digits.");return null;case"yyy":d=j(y)+(j(y)<800?2e3:1e3)|0;break;case"H":case"HH":case"k":case"kk":c=no(j(y),24);break;case"h":case"hh":case"K":case"KK":c=no(j(y),24),m=!0;break;case"m":case"mm":a=j(y);break;case"s":case"ss":s=j(y);break;case"S":case"SS":case"SSS":case"SSSS":case"SSSSS":case"SSSSSS":case"SSSSSSS":case"SSSSSSSS":case"SSSSSSSSS":var b=G(y),S=O($.log10(b))+1|0;if(S>3){var v=G(y),C=-1*(S-3|0)|0;o=O(v*$.pow(10,C))}else o=j(y);r=o;break;case"X":case"XX":case"XXX":case"x":case"xx":case"xxx":if(D(E,"X")&&90===q(y))p=fi.Companion.fromHours_14dthe$(0);else{if(D(E,"x")&&90===q(y)){if(e)throw l("Zulu Time Zone is only accepted with X-XXX formats.");return null}if(90!==q(y)){var N=B(B(F(y,":",""),"-"),"+"),T=1===E.length?j(N):j(W(N,2)),L=1===E.length?0:j(H(N,2));p=fi.Companion.fromHours_14dthe$(T).plus_fv8bff$(fi.Companion.fromMinutes_14dthe$(L)),45===q(y)&&(p=p.unaryMinus())}}break;case"MMMM":h=this.realLocale.months.indexOf_11rb$(y)+1|0;break;case"MMMMM":if(e)throw l("Not possible to get the month from one letter.");return null;case"a":_=V(y,"pm",!0)}}return m&&(_?12!==c&&(c=c+12|0):12===c&&(c=0)),Pt().createAdjusted_ui44o2$(d,h,u,c,a,s,r).toOffsetUnadjusted_fv8bff$(null!=p?p:fi.Companion.fromHours_14dthe$(0))},Mn.prototype.toString=function(){return this.format},Mn.$metadata$={kind:a,simpleName:"PatternDateFormat",interfaces:[po,$t]},Mn.prototype.component1=function(){return this.format},Mn.prototype.component2=function(){return this.locale},Mn.prototype.component3=function(){return this.tzNames},Mn.prototype.component4=function(){return this.options},Mn.prototype.copy_zf3jlx$=function(t,e,n,i){return new Mn(void 0===t?this.format:t,void 0===e?this.locale:e,void 0===n?this.tzNames:n,void 0===i?this.options:i)},Mn.prototype.hashCode=function(){var t=0;return t=31*(t=31*(t=31*(t=31*t+e.hashCode(this.format)|0)+e.hashCode(this.locale)|0)+e.hashCode(this.tzNames)|0)+e.hashCode(this.options)|0},Mn.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.format,t.format)&&e.equals(this.locale,t.locale)&&e.equals(this.tzNames,t.tzNames)&&e.equals(this.options,t.options)},Jn.$metadata$={kind:o,simpleName:"Companion",interfaces:[]};var Yn=null;function Qn(){return null===Yn&&new Jn,Yn}function Zn(t){ni(),void 0===t&&(t=!1),this.optionalSupport=t}function ti(){ei=this,this.serialVersionUID_0=n,this.DEFAULT=new Zn(!1),this.WITH_OPTIONAL=new Zn(!0)}ti.$metadata$={kind:o,simpleName:"Companion",interfaces:[]};var ei=null;function ni(){return null===ei&&new ti,ei}function ii(){oi=this}Zn.$metadata$={kind:a,simpleName:"Options",interfaces:[po]},Zn.prototype.component1=function(){return this.optionalSupport},Zn.prototype.copy_6taknv$=function(t){return new Zn(void 0===t?this.optionalSupport:t)},Zn.prototype.toString=function(){return"Options(optionalSupport="+e.toString(this.optionalSupport)+")"},Zn.prototype.hashCode=function(){var t=0;return t=31*t+e.hashCode(this.optionalSupport)|0},Zn.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.optionalSupport,t.optionalSupport)},Xn.prototype.withOptions_p5lupi$=function(t){return this.copy_9l6z50$(void 0,t)},Xn.prototype.withOptional=function(){return this.copy_9l6z50$(void 0,this.options.copy_6taknv$(!0))},Xn.prototype.withNonOptional=function(){return this.copy_9l6z50$(void 0,this.options.copy_6taknv$(!1))},Xn.prototype.clampZero_0=function(t,e){return no(t,e)},Xn.prototype.clampNonZero_0=function(t,e){var n=no(t,e);return 0===n?e:n},Xn.prototype.format_fv8bff$=function(t){var e,n,i,o=new si(t),r="";for(e=this.chunks_8be2vx$.iterator();e.hasNext();){var s=e.next(),a=s.length;switch(i=r,s){case"H":case"HH":n=Ji(o.hour,a);break;case"k":case"kk":n=Ji(o.hour,a);break;case"h":case"hh":n=Ji(this.clampNonZero_0(o.hour,12),a);break;case"K":case"KK":n=Ji(this.clampZero_0(o.hour,12),a);break;case"m":case"mm":n=Ji(o.minute,a);break;case"s":case"ss":n=Ji(o.second,a);break;case"S":case"SS":case"SSS":case"SSSS":case"SSSSS":case"SSSSSS":case"SSSSSSS":case"SSSSSSSS":var c=o.millisecond,l=o.millisecond,u=O($.log10(l))+1|0;if(u>s.length){var h=u-s.length|0;n=O(c/$.pow(10,h))}else n=Qi(Ji(c,3)+"00000",0,s.length);break;case"a":n=o.hour<12?"am":o.hour<24?"pm":"";break;default:var d;if(P(s,39)){var p=s.length-1|0;d=s.substring(1,p)}else d=s;n=d}r=i+n}return r},Xn.prototype.tryParse_ivxn3r$=function(t,e){var n,i,o,r=0,s=0,a=0,c=0,l=!1,u=!1;if(null==(n=this.rx2_0.find_905azu$(t)))return null;var h=n;for(i=k(this.chunks_8be2vx$,M(h.groupValues,1)).iterator();i.hasNext();){var d=i.next(),p=d.component1(),_=d.component2();if(0!==_.length)switch(p){case"H":case"HH":case"k":case"kk":c=j(_);break;case"h":case"hh":case"K":case"KK":c=no(j(_),24),u=!0;break;case"m":case"mm":a=j(_);break;case"s":case"ss":s=j(_);break;case"S":case"SS":case"SSS":case"SSSS":case"SSSSS":case"SSSSSS":var m=G(_),f=O($.log10(m))+1|0;if(f>3){var g=G(_),E=-1*(f-3|0)|0;o=O(g*$.pow(10,E))}else o=j(_);r=o;break;case"a":l=S(_,"pm")}}u&&l&&(c=c+12|0);var y=c,b=a,v=s,C=r;return fi.Companion.fromHours_14dthe$(y).plus_fv8bff$(fi.Companion.fromMinutes_14dthe$(b)).plus_fv8bff$(fi.Companion.fromSeconds_14dthe$(v)).plus_fv8bff$(fi.Companion.fromMilliseconds_14dthe$(C))},Xn.prototype.toString=function(){return this.format},Xn.$metadata$={kind:a,simpleName:"PatternTimeFormat",interfaces:[po,ui]},Xn.prototype.component1=function(){return this.format},Xn.prototype.component2=function(){return this.options},Xn.prototype.copy_9l6z50$=function(t,e){return new Xn(void 0===t?this.format:t,void 0===e?this.options:e)},Xn.prototype.hashCode=function(){var t=0;return t=31*(t=31*t+e.hashCode(this.format)|0)+e.hashCode(this.options)|0},Xn.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.format,t.format)&&e.equals(this.options,t.options)},Object.defineProperty(ii.prototype,"nanoseconds",{configurable:!0,get:function(){return ho().hrNow.nanosecondsDouble}}),Object.defineProperty(ii.prototype,"microseconds",{configurable:!0,get:function(){return ho().hrNow.microsecondsDouble}}),Object.defineProperty(ii.prototype,"milliseconds",{configurable:!0,get:function(){return ho().hrNow.millisecondsDouble}}),Object.defineProperty(ii.prototype,"reference",{configurable:!0,get:function(){return Mi(ho().hrNow)}}),Object.defineProperty(ii.prototype,"hr",{configurable:!0,get:function(){return ho().hrNow}}),ii.$metadata$={kind:o,simpleName:"PerformanceCounter",interfaces:[]};var oi=null;function ri(){return null===oi&&new ii,oi}function si(t){li(),this.encoded=t}function ai(){ci=this,this.serialVersionUID_0=n,this.DIV_MILLISECONDS_0=1,this.DIV_SECONDS_0=1e3,this.DIV_MINUTES_0=6e4,this.DIV_HOURS_0=36e5}ai.prototype.invoke_tjonv8$=function(t,e,n,i){return void 0===e&&(e=0),void 0===n&&(n=0),void 0===i&&(i=0),new si(fi.Companion.fromHours_14dthe$(t).plus_fv8bff$(fi.Companion.fromMinutes_14dthe$(e)).plus_fv8bff$(fi.Companion.fromSeconds_14dthe$(n)).plus_fv8bff$(fi.Companion.fromMilliseconds_14dthe$(i)))},ai.$metadata$={kind:o,simpleName:"Companion",interfaces:[]};var ci=null;function li(){return null===ci&&new ai,ci}function ui(){pi()}function hi(){di=this,this.DEFAULT_FORMAT=pi().invoke_61zpoe$("HH:mm:ss.SSS"),this.FORMAT_TIME=pi().invoke_61zpoe$("HH:mm:ss"),this.FORMATS=p([this.DEFAULT_FORMAT,this.FORMAT_TIME])}Object.defineProperty(si.prototype,"millisecond",{configurable:!0,get:function(){return r((this.encoded.millisecondsInt/1|0)%1e3)}}),Object.defineProperty(si.prototype,"second",{configurable:!0,get:function(){return r((this.encoded.millisecondsInt/1e3|0)%60)}}),Object.defineProperty(si.prototype,"minute",{configurable:!0,get:function(){return r((this.encoded.millisecondsInt/6e4|0)%60)}}),Object.defineProperty(si.prototype,"hour",{configurable:!0,get:function(){return this.encoded.millisecondsInt/36e5|0}}),Object.defineProperty(si.prototype,"hourAdjusted",{configurable:!0,get:function(){return(this.encoded.millisecondsInt/36e5|0)%24}}),si.prototype.adjust=function(){return li().invoke_tjonv8$(this.hourAdjusted,this.minute,this.second,this.millisecond)},si.prototype.format_61zpoe$=function(t){return mi(pi().invoke_61zpoe$(t),this)},si.prototype.format_gscqvm$=function(t){return mi(t,this)},si.prototype.toString=function(){return(this.hour<0?"-":"")+s(r(this.hour).toString(),2,48)+":"+s(r(this.minute).toString(),2,48)+":"+s(r(this.second).toString(),2,48)+"."+s(r(this.millisecond).toString(),3,48)},si.prototype.compareTo_11rb$=function(t){return this.encoded.compareTo_11rb$(t.encoded)},si.$metadata$={kind:a,simpleName:"Time",interfaces:[po,c]},si.prototype.unbox=function(){return this.encoded},si.prototype.hashCode=function(){var t=0;return t=31*t+e.hashCode(this.encoded)|0},si.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.encoded,t.encoded)},hi.prototype.parse_61zpoe$=function(t){var n,i=null;for(n=this.FORMATS.iterator();n.hasNext();){var o=n.next();try{return _i(o,t)}catch(t){if(!e.isType(t,h))throw t;i=t}}throw d(i)},hi.prototype.invoke_61zpoe$=function(t){return new Xn(t)},hi.$metadata$={kind:o,simpleName:"Companion",interfaces:[]};var di=null;function pi(){return null===di&&new hi,di}function _i(t,e){var n;if(null==(n=t.tryParse_ivxn3r$(e,!0)))throw new gt("Not a valid format: '"+e+"' for '"+t+"'");return n}function mi(t,e){return t.format_fv8bff$(e.encoded)}function fi(t){Ei(),this.milliseconds=t}function gi(){$i=this,this.serialVersionUID_0=n,this.MILLIS_PER_MICROSECOND_0=.001,this.MILLIS_PER_NANOSECOND_0=this.MILLIS_PER_MICROSECOND_0/1e3,this.ZERO=new fi(0),this.NIL=new fi(Z.NaN),this.timeSteps_0=p([60,60,24])}ui.$metadata$={kind:_,simpleName:"TimeFormat",interfaces:[]},Object.defineProperty(fi.prototype,"nanoseconds",{configurable:!0,get:function(){return this.milliseconds/Ei().MILLIS_PER_NANOSECOND_0}}),Object.defineProperty(fi.prototype,"nanosecondsInt",{configurable:!0,get:function(){return O(this.milliseconds/Ei().MILLIS_PER_NANOSECOND_0)}}),Object.defineProperty(fi.prototype,"microseconds",{configurable:!0,get:function(){return this.milliseconds/Ei().MILLIS_PER_MICROSECOND_0}}),Object.defineProperty(fi.prototype,"microsecondsInt",{configurable:!0,get:function(){return O(this.milliseconds/Ei().MILLIS_PER_MICROSECOND_0)}}),Object.defineProperty(fi.prototype,"seconds",{configurable:!0,get:function(){return this.milliseconds/1e3}}),Object.defineProperty(fi.prototype,"minutes",{configurable:!0,get:function(){return this.milliseconds/6e4}}),Object.defineProperty(fi.prototype,"hours",{configurable:!0,get:function(){return this.milliseconds/36e5}}),Object.defineProperty(fi.prototype,"days",{configurable:!0,get:function(){return this.milliseconds/864e5}}),Object.defineProperty(fi.prototype,"weeks",{configurable:!0,get:function(){return this.milliseconds/6048e5}}),Object.defineProperty(fi.prototype,"millisecondsLong",{configurable:!0,get:function(){return e.Long.fromNumber(this.milliseconds)}}),Object.defineProperty(fi.prototype,"millisecondsInt",{configurable:!0,get:function(){return O(this.milliseconds)}}),fi.prototype.compareTo_11rb$=function(t){return e.compareTo(this.milliseconds,t.milliseconds)},fi.prototype.unaryMinus=function(){return new fi(-this.milliseconds)},fi.prototype.unaryPlus=function(){return new fi(+this.milliseconds)},fi.prototype.plus_fv8bff$=function(t){return new fi(this.milliseconds+t.milliseconds)},fi.prototype.plus_glepj8$=function(t){return new Mt(t,this)},fi.prototype.plus_5gml0z$=function(t){return new Mt(t.monthSpan,t.timeSpan.plus_fv8bff$(this))},fi.prototype.minus_fv8bff$=function(t){return this.plus_fv8bff$(t.unaryMinus())},fi.prototype.minus_glepj8$=function(t){return this.plus_glepj8$(t.unaryMinus())},fi.prototype.minus_5gml0z$=function(t){return this.plus_5gml0z$(t.unaryMinus())},fi.prototype.times_za3lpa$=function(t){return new fi(this.milliseconds*t)},fi.prototype.times_14dthe$=function(t){return new fi(this.milliseconds*t)},fi.prototype.div_za3lpa$=function(t){return new fi(this.milliseconds/t)},fi.prototype.div_14dthe$=function(t){return new fi(this.milliseconds/t)},fi.prototype.div_fv8bff$=function(t){return this.milliseconds/t.milliseconds},fi.prototype.rem_fv8bff$=function(t){var e=this.milliseconds%t.milliseconds;return fi.Companion.fromMilliseconds_14dthe$(e)},gi.prototype.fromMilliseconds_14dthe$=function(t){return 0===t?this.ZERO:new fi(t)},gi.prototype.fromNanoseconds_14dthe$=function(t){return this.fromMilliseconds_14dthe$(t*this.MILLIS_PER_NANOSECOND_0)},gi.prototype.fromMicroseconds_14dthe$=function(t){return this.fromMilliseconds_14dthe$(t*this.MILLIS_PER_MICROSECOND_0)},gi.prototype.fromSeconds_14dthe$=function(t){return this.fromMilliseconds_14dthe$(1e3*t)},gi.prototype.fromMinutes_14dthe$=function(t){return this.fromMilliseconds_14dthe$(6e4*t)},gi.prototype.fromHours_14dthe$=function(t){return this.fromMilliseconds_14dthe$(36e5*t)},gi.prototype.fromDays_14dthe$=function(t){return this.fromMilliseconds_14dthe$(864e5*t)},gi.prototype.fromWeeks_14dthe$=function(t){return this.fromMilliseconds_14dthe$(6048e5*t)},gi.prototype.toTimeStringRaw_0=function(t,e){var n;void 0===e&&(e=3);for(var i=t/1e3,o=O($.floor(i)),r=N(),s=0;s=0}}),Object.defineProperty(Ni.prototype,"time",{configurable:!0,get:function(){var t=this.totalMilliseconds;return fi.Companion.fromMilliseconds_14dthe$(t)}}),Object.defineProperty(Ni.prototype,"totalMinutes",{configurable:!0,get:function(){return this.totalMilliseconds/6e4}}),Object.defineProperty(Ni.prototype,"totalMinutesInt",{configurable:!0,get:function(){return O(this.totalMinutes)}}),Object.defineProperty(Ni.prototype,"timeZone",{configurable:!0,get:function(){var t,e=this.positive?"+":"-",n=Ji(this.deltaHoursAbs_8be2vx$,2),i=Ji(this.deltaMinutesAbs_8be2vx$,2);return null!=(t=this.time)&&t.equals(fi.Companion.fromMinutes_14dthe$(0))?"UTC":"GMT"+e+n+i}}),Object.defineProperty(Ni.prototype,"deltaTotalMinutesAbs_0",{configurable:!0,get:function(){return r(O(this.totalMinutes))}}),Object.defineProperty(Ni.prototype,"deltaHoursAbs_8be2vx$",{configurable:!0,get:function(){return this.deltaTotalMinutesAbs_0/60|0}}),Object.defineProperty(Ni.prototype,"deltaMinutesAbs_8be2vx$",{configurable:!0,get:function(){return this.deltaTotalMinutesAbs_0%60}}),Ni.prototype.toString=function(){return this.timeZone},Ti.prototype.invoke_fv8bff$=function(t){return new Ni(t.milliseconds)},Ti.prototype.local_mw5vjr$=function(t){return wi(ho().localTimezoneOffsetMinutes_mw5vjr$(t))},Ti.$metadata$={kind:o,simpleName:"Companion",interfaces:[]};var Li=null;function zi(){return null===Li&&new Ti,Li}function wi(t){return zi().invoke_fv8bff$(t)}function Oi(t){xi(),this.year=t}function Ri(){Ai=this,this.serialVersionUID_0=n,this.DAYS_COMMON=365,this.DAYS_LEAP=366,this.LEAP_PER_4_YEARS_0=1,this.LEAP_PER_100_YEARS_0=24,this.LEAP_PER_400_YEARS_0=97,this.DAYS_PER_4_YEARS_0=1461,this.DAYS_PER_100_YEARS_0=36524,this.DAYS_PER_400_YEARS_0=146097}Ni.prototype.compareTo_11rb$=function(t){return e.compareTo(this.totalMilliseconds,t.totalMilliseconds)},Ni.$metadata$={kind:a,simpleName:"TimezoneOffset",interfaces:[po,c]},Ni.prototype.unbox=function(){return this.totalMilliseconds},Ni.prototype.hashCode=function(){var t=0;return t=31*t+e.hashCode(this.totalMilliseconds)|0},Ni.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.totalMilliseconds,t.totalMilliseconds)},Ri.prototype.checked_za3lpa$=function(t){if(!(1<=t&&t<=9999))throw new gt("Year "+t+" not in 1..9999");return t},Ri.prototype.isLeapChecked_za3lpa$=function(t){return this.isLeap_za3lpa$(this.checked_za3lpa$(t))},Ri.prototype.isLeap_za3lpa$=function(t){return t%4==0&&(t%100!=0||t%400==0)},Ri.prototype.fromDays_za3lpa$=function(t){var e=t/146097|0,n=t-(146097*e|0)|0,i=n/36524|0,o=$.min(i,3),r=n-(36524*o|0)|0,s=r/1461|0,a=(r-(1461*s|0)|0)/365|0;return new Oi((t<0?0:1)+$.min(a,3)+(4*s|0)+(100*o|0)+(400*e|0)|0)},Ri.prototype.days_6taknv$=function(t){return t?366:365},Ri.prototype.leapCountSinceOne_za3lpa$=function(t){if(t<1){for(var e=0,n=1;n>=t;)new Oi(n).isLeap&&(e=e-1|0),n=n-1|0;return e}var i=t-1|0;return(i/4|0)-(i/100|0)+(i/400|0)|0},Ri.prototype.daysSinceOne_za3lpa$=function(t){return(365*(t-1|0)|0)+this.leapCountSinceOne_za3lpa$(t)|0},Ri.$metadata$={kind:o,simpleName:"Companion",interfaces:[]};var Ai=null;function xi(){return null===Ai&&new Ri,Ai}function Ii(t){Pi(),this.internalPackedInfo_8be2vx$=t}function Ui(){Di=this,this.serialVersionUID_0=n}Object.defineProperty(Oi.prototype,"isLeapChecked",{configurable:!0,get:function(){return xi().isLeapChecked_za3lpa$(this.year)}}),Object.defineProperty(Oi.prototype,"isLeap",{configurable:!0,get:function(){return xi().isLeap_za3lpa$(this.year)}}),Object.defineProperty(Oi.prototype,"days",{configurable:!0,get:function(){return xi().days_6taknv$(this.isLeap)}}),Object.defineProperty(Oi.prototype,"leapCountSinceOne",{configurable:!0,get:function(){return xi().leapCountSinceOne_za3lpa$(this.year)}}),Object.defineProperty(Oi.prototype,"daysSinceOne",{configurable:!0,get:function(){return xi().daysSinceOne_za3lpa$(this.year)}}),Oi.prototype.compareTo_11rb$=function(t){return e.primitiveCompareTo(this.year,t.year)},Oi.prototype.plus_za3lpa$=function(t){return new Oi(this.year+t|0)},Oi.prototype.minus_za3lpa$=function(t){return new Oi(this.year-t|0)},Oi.prototype.minus_ccxljp$=function(t){return this.year-t.year|0},Oi.$metadata$={kind:a,simpleName:"Year",interfaces:[po,c]},Oi.prototype.unbox=function(){return this.year},Oi.prototype.toString=function(){return"Year(year="+e.toString(this.year)+")"},Oi.prototype.hashCode=function(){var t=0;return t=31*t+e.hashCode(this.year)|0},Oi.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.year,t.year)},Ui.prototype.invoke_wk05xp$=function(t,e){return Pi().invoke_vux9f0$(t.year,e.index1)},Ui.prototype.invoke_bbks$=function(t,e){return Pi().invoke_vux9f0$(t,e.index1)},Ui.prototype.invoke_vux9f0$=function(t,e){return new Ii(t<<4|15&e)},Ui.$metadata$={kind:o,simpleName:"Companion",interfaces:[]};var Di=null;function Pi(){return null===Di&&new Ui,Di}function Mi(t){var e=t.nanosecondsRaw;return fi.Companion.fromNanoseconds_14dthe$(e)}function ki(t){Bi(),this.nanosecondsRaw=t}function ji(){Fi=this,this.ZERO=new ki(0),this.NIL=new ki(Z.NaN)}Object.defineProperty(Ii.prototype,"year",{configurable:!0,get:function(){return new Oi(this.yearInt)}}),Object.defineProperty(Ii.prototype,"yearInt",{configurable:!0,get:function(){return this.internalPackedInfo_8be2vx$>>>4}}),Object.defineProperty(Ii.prototype,"month",{configurable:!0,get:function(){return wn().get_za3lpa$(this.month1)}}),Object.defineProperty(Ii.prototype,"month1",{configurable:!0,get:function(){return 15&this.internalPackedInfo_8be2vx$}}),Object.defineProperty(Ii.prototype,"days",{configurable:!0,get:function(){return this.month.days_ccxljp$(this.year)}}),Object.defineProperty(Ii.prototype,"daysToStart",{configurable:!0,get:function(){return this.month.daysToStart_ccxljp$(this.year)}}),Object.defineProperty(Ii.prototype,"daysToEnd",{configurable:!0,get:function(){return this.month.daysToEnd_ccxljp$(this.year)}}),Ii.prototype.plus_glepj8$=function(t){var e=this.month1+Pn(t)|0,n=e>12?1:e<1?-1:0;return Pi().invoke_wk05xp$(new Oi(this.yearInt+Dn(t)+n|0),wn().get_za3lpa$(e))},Ii.prototype.minus_glepj8$=function(t){return this.plus_glepj8$(t.unaryMinus())},Ii.prototype.toString=function(){return this.month.toString()+" "+this.yearInt},Ii.$metadata$={kind:a,simpleName:"YearMonth",interfaces:[po]},Ii.prototype.unbox=function(){return this.internalPackedInfo_8be2vx$},Ii.prototype.hashCode=function(){var t=0;return t=31*t+e.hashCode(this.internalPackedInfo_8be2vx$)|0},Ii.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.internalPackedInfo_8be2vx$,t.internalPackedInfo_8be2vx$)},ji.prototype.now=function(){return ri().hr},ji.prototype.fromSeconds_14dthe$=function(t){return new ki(it(1e9*t))},ji.prototype.fromMilliseconds_14dthe$=function(t){return new ki(it(1e6*t))},ji.prototype.fromMicroseconds_14dthe$=function(t){return new ki(it(1e3*t))},ji.prototype.fromNanoseconds_14dthe$=function(t){return new ki(it(t))},ji.prototype.fromSeconds_za3lpa$=function(t){return this.fromSeconds_14dthe$(t)},ji.prototype.fromMilliseconds_za3lpa$=function(t){return this.fromMilliseconds_14dthe$(t)},ji.prototype.fromMicroseconds_za3lpa$=function(t){return this.fromMicroseconds_14dthe$(t)},ji.prototype.fromNanoseconds_za3lpa$=function(t){return this.fromNanoseconds_14dthe$(t)},ji.$metadata$={kind:o,simpleName:"Companion",interfaces:[]};var Gi,qi,Fi=null;function Bi(){return null===Fi&&new ji,Fi}function Wi(t,e){var n=t.get_11rb$(e);null==n&&t.put_xwzc9p$(e,0);var i=d(t.get_11rb$(e))+1|0;t.put_xwzc9p$(e,i)}function Hi(t,e){void 0===e&&(e=0),this.str=t,this.offset=e}function Vi(t){return $.floor(t)===t?O(t).toString():t.toString()}function Ki(t){for(var e=Bi().now();Bi().now().minus_seyb0p$(e).compareTo_11rb$(t)<0;);}function Xi(t,e){var n,i,o;void 0===e&&(e=vi().DEFAULT);var r=t;for(n=e.namesToOffsets.entries.iterator();n.hasNext();){var a=n.next(),c=a.key,l=a.value;if(!S(c,"GMT")&&!S(c,"UTC")&&r.tryRead_61zpoe$(c))return l}if(r.tryRead_s8itvh$(90))return fi.Companion.fromMinutes_14dthe$(0);var u=1;r.tryRead_61zpoe$("GMT"),r.tryRead_61zpoe$("UTC"),r.tryRead_61zpoe$("+")&&(u=1),r.tryRead_61zpoe$("-")&&(u=-1);var h=F(r.readRemaining(),":","");if(null==(i=ct(s(Qi(h,0,2),2,48))))return null;var d=i;if(null==(o=ct(s(Qi(h,2,2),2,48))))return null;var p=o,_=fi.Companion.fromHours_14dthe$(d).plus_fv8bff$(fi.Companion.fromMinutes_14dthe$(p));return u>0?_.unaryPlus():_.unaryMinus()}function Ji(t,e){var n=s(r(t).toString(),e,48);return t<0?"-"+n:n}function Yi(t,e,n){var i=O($.floor(t)),o=O(it((t-i)*$.pow(10,n)));return Qi(Ji(i,e),0|-e,e)+"."+Qi(ht(o.toString(),n,48),0,n)}function Qi(t,e,n){var i=Zi(e>=0?e:t.length+e|0,0,t.length),o=Zi(n>=0?i+n|0:t.length+n|0,0,t.length);return on?n:t}function to(t,e,n){return no(t-e|0,n-e+1|0)+e|0}function eo(t,e,n){return(t-e|0)/(n-e+1|0)|0}function no(t,e){var n=t%e;return n<0?n+e|0:n}function io(t,e){var n=t%e;return n<0?n+e:n}function oo(t){return O(t<0?$.floor(t):t)}function ro(t,e){return oo(io(t,e))}function so(t){this.value=t;var e=this.value;this.avalue_0=$.abs(e);var n=this.value;this.sign_0=$.sign(n)}function ao(t){return dt(t)}function co(t){return dt(t)}function lo(){uo=this}Object.defineProperty(ki.prototype,"nanosecondsDouble",{configurable:!0,get:function(){return this.nanosecondsRaw}}),Object.defineProperty(ki.prototype,"microsecondsDouble",{configurable:!0,get:function(){return this.nanosecondsRaw/1e3}}),Object.defineProperty(ki.prototype,"millisecondsDouble",{configurable:!0,get:function(){return this.nanosecondsRaw/1e6}}),Object.defineProperty(ki.prototype,"secondsDouble",{configurable:!0,get:function(){return this.nanosecondsRaw/1e9}}),Object.defineProperty(ki.prototype,"nanosecondsInt",{configurable:!0,get:function(){return O(this.nanosecondsRaw)}}),Object.defineProperty(ki.prototype,"microsecondsInt",{configurable:!0,get:function(){return O(this.microsecondsDouble)}}),Object.defineProperty(ki.prototype,"millisecondsInt",{configurable:!0,get:function(){return O(this.millisecondsDouble)}}),Object.defineProperty(ki.prototype,"secondsInt",{configurable:!0,get:function(){return O(this.secondsDouble)}}),ki.prototype.plus_seyb0p$=function(t){return Bi().fromNanoseconds_14dthe$(this.nanosecondsRaw+t.nanosecondsRaw)},ki.prototype.minus_seyb0p$=function(t){return Bi().fromNanoseconds_14dthe$(this.nanosecondsRaw-t.nanosecondsRaw)},ki.prototype.rem_seyb0p$=function(t){return Bi().fromNanoseconds_14dthe$(this.nanosecondsRaw%t.nanosecondsRaw)},ki.prototype.times_14dthe$=function(t){return Bi().fromNanoseconds_14dthe$(this.nanosecondsRaw*t)},ki.prototype.times_za3lpa$=function(t){return Bi().fromNanoseconds_14dthe$(this.nanosecondsRaw*t)},ki.prototype.div_seyb0p$=function(t){return this.nanosecondsRaw/t.nanosecondsRaw},ki.prototype.compareTo_11rb$=function(t){return e.compareTo(this.nanosecondsRaw,t.nanosecondsRaw)},ki.prototype.toString=function(){return ot(this.nanosecondsRaw.toString(),".0")+" ns"},ki.$metadata$={kind:a,simpleName:"HRTimeSpan",interfaces:[c]},ki.prototype.unbox=function(){return this.nanosecondsRaw},ki.prototype.hashCode=function(){var t=0;return t=31*t+e.hashCode(this.nanosecondsRaw)|0},ki.prototype.equals=function(t){return this===t||null!==t&&"object"==typeof t&&Object.getPrototypeOf(this)===Object.getPrototypeOf(t)&&e.equals(this.nanosecondsRaw,t.nanosecondsRaw)},Object.defineProperty(Hi.prototype,"length",{configurable:!0,get:function(){return this.str.length}}),Object.defineProperty(Hi.prototype,"available",{configurable:!0,get:function(){return this.str.length-this.offset|0}}),Object.defineProperty(Hi.prototype,"hasMore",{configurable:!0,get:function(){return this.offsetthis.available)return!1;n=(e=st(t)).first,i=e.last,o=e.step;for(var r=n;r<=i;r+=o)if(this.str.charCodeAt(this.offset+r|0)!==t.charCodeAt(r))return!1;return this.offset=this.offset+t.length|0,!0},Hi.prototype.read_za3lpa$=function(t){var e=this.str,n=this.offset,i=at(this.offset+t|0,this.length),o=e.substring(n,i);return this.offset=this.offset+o.length|0,o},Hi.prototype.readRemaining=function(){return this.read_za3lpa$(this.available)},Hi.prototype.readInt_za3lpa$=function(t){return j(this.read_za3lpa$(t))},Hi.prototype.tryReadInt_za3lpa$=function(t){return ct(this.read_za3lpa$(t))},Hi.prototype.tryReadDouble_za3lpa$=function(t){return lt(z(this.read_za3lpa$(t),44,46))},Hi.prototype.tryReadDouble=function(){var t=0,e=0,n=0,i=0,o=!1;t:for(;this.hasMore;){var r=w(this.peekChar());if(44===r){if(0===t)return null;o=!0,this.readChar()}else{if(!new ut(48,57).contains_mef7kx$(r))break t;var s=w(this.readChar());o?(n=n+1|0,i=(i=10*i|0)+(s-48)|0):(t=t+1|0,e=(e=10*e|0)+(s-48)|0)}}if(0===t)return null;var a=0|-n;return e+i*$.pow(10,a)},Hi.$metadata$={kind:a,simpleName:"MicroStrReader",interfaces:[]},so.prototype.double_14dthe$=function(t){var e=this.avalue_0/t;return this.avalue_0%=t,$.floor(e)*this.sign_0},so.prototype.double_za3lpa$=function(t){return this.double_14dthe$(t)},so.prototype.double_mx4ult$=function(t){return this.double_14dthe$(t)},so.prototype.int_14dthe$=function(t){return O(this.double_14dthe$(t))},so.prototype.int_za3lpa$=function(t){return this.int_14dthe$(t)},so.prototype.int_mx4ult$=function(t){return this.int_14dthe$(t)},so.$metadata$={kind:a,simpleName:"Moduler",interfaces:[]},Object.defineProperty(lo.prototype,"currentTime",{configurable:!0,get:function(){return Date.now()}}),Object.defineProperty(lo.prototype,"hrNow",{configurable:!0,get:function(){if(Gi){var t=i.hrtime(qi.value);return Bi().fromSeconds_14dthe$(t[0]).plus_seyb0p$(Bi().fromNanoseconds_14dthe$(t[1]))}return Bi().fromMilliseconds_14dthe$(window.performance.now())}}),lo.prototype.localTimezoneOffsetMinutes_mw5vjr$=function(t){var e=t.unixMillisDouble,n=-new Date(e).getTimezoneOffset();return fi.Companion.fromMinutes_14dthe$(n)},lo.prototype.sleep_seyb0p$=function(t){Ki(t)},lo.$metadata$={kind:o,simpleName:"KlockInternal",interfaces:[]};var uo=null;function ho(){return null===uo&&new lo,uo}function po(){}po.$metadata$={kind:_,simpleName:"Serializable",interfaces:[]},Object.defineProperty(pt,"Companion",{get:ft});var _o=t.com||(t.com={}),mo=_o.soywiz||(_o.soywiz={}),fo=mo.klock||(mo.klock={});fo.Date=pt,fo.DateException=gt,Object.defineProperty($t,"Companion",{get:Nt}),fo.DateFormat=$t,fo.parse_mabgv2$=Tt,fo.format_x6wc0j$=Lt,Object.defineProperty(Ot,"Year",{get:At}),Object.defineProperty(Ot,"DayOfYear",{get:xt}),Object.defineProperty(Ot,"Month",{get:It}),Object.defineProperty(Ot,"Day",{get:Ut}),wt.prototype.DatePart=Ot,Object.defineProperty(zt,"Companion",{get:Pt}),fo.DateTime=zt,Object.defineProperty(Mt,"Companion",{get:Gt}),fo.DateTimeSpan=Mt,fo.DateTimeSpanFormat=Ht,Object.defineProperty(Vt,"Companion",{get:ie}),fo.DateTimeTz=Vt,Object.defineProperty(oe,"Sunday",{get:se}),Object.defineProperty(oe,"Monday",{get:ae}),Object.defineProperty(oe,"Tuesday",{get:ce}),Object.defineProperty(oe,"Wednesday",{get:le}),Object.defineProperty(oe,"Thursday",{get:ue}),Object.defineProperty(oe,"Friday",{get:he}),Object.defineProperty(oe,"Saturday",{get:de}),Object.defineProperty(oe,"Companion",{get:me}),fo.DayOfWeek=oe,fo.DayOfWeekWithLocale=ge,Object.defineProperty(Ee,"Companion",{get:Se}),$e.prototype.BaseIsoTimeFormat=Ee,$e.prototype.BaseIsoDateTimeFormat=ve,$e.prototype.IsoIntervalFormat=Ce,$e.prototype.IsoTimeFormat=Ne,$e.prototype.IsoDateTimeFormat=Te,Object.defineProperty(fo,"ISO8601",{get:Ae}),fo.first_ki4uhp$=xe,fo.get_weekOfYear0_m2ds6$=Ie,fo.get_weekOfYear1_m2ds6$=Ue,Object.defineProperty(De,"Companion",{get:ke}),Object.defineProperty(je,"Companion",{get:Fe}),De.English=je,fo.KlockLocale=De,Object.defineProperty(Be,"Companion",{get:cn}),fo.KlockLocaleContext=Be,Object.defineProperty(ln,"Neuter",{get:hn}),Object.defineProperty(ln,"Masculine",{get:dn}),fo.KlockLocaleGender=ln,Object.defineProperty(pn,"January",{get:mn}),Object.defineProperty(pn,"February",{get:fn}),Object.defineProperty(pn,"March",{get:gn}),Object.defineProperty(pn,"April",{get:$n}),Object.defineProperty(pn,"May",{get:En}),Object.defineProperty(pn,"June",{get:yn}),Object.defineProperty(pn,"July",{get:bn}),Object.defineProperty(pn,"August",{get:Sn}),Object.defineProperty(pn,"September",{get:vn}),Object.defineProperty(pn,"October",{get:Cn}),Object.defineProperty(pn,"November",{get:Nn}),Object.defineProperty(pn,"December",{get:Tn}),Object.defineProperty(pn,"Companion",{get:wn}),fo.Month=pn,Object.defineProperty(Rn,"Companion",{get:In}),fo.MonthSpan=Rn,fo.get_totalYears_h7vlot$=Un,fo.get_years_h7vlot$=Dn,fo.get_months_h7vlot$=Pn,Object.defineProperty(Mn,"Companion",{get:Gn}),Object.defineProperty(qn,"Companion",{get:Wn}),Mn.Options=qn,fo.PatternDateFormat=Mn,Object.defineProperty(Xn,"Companion",{get:Qn}),Object.defineProperty(Zn,"Companion",{get:ni}),Xn.Options=Zn,fo.PatternTimeFormat=Xn,Object.defineProperty(fo,"PerformanceCounter",{get:ri}),Object.defineProperty(si,"Companion",{get:li}),fo.Time=si,Object.defineProperty(ui,"Companion",{get:pi}),fo.TimeFormat=ui,fo.parse_5ggku9$=_i,fo.format_6n39xe$=mi,fo.TimeSpan=fi,Object.defineProperty(fi,"Companion",{get:Ei}),Object.defineProperty(yi,"Companion",{get:vi}),fo.TimezoneNames_init_sc3rw9$=Ci,fo.TimezoneNames=yi,Object.defineProperty(Ni,"Companion",{get:zi}),fo.TimezoneOffset=Ni,fo.get_offset_5bmjl6$=wi,Object.defineProperty(Oi,"Companion",{get:xi}),fo.Year=Oi,Object.defineProperty(Ii,"Companion",{get:Pi}),fo.YearMonth=Ii;var go=fo.hr||(fo.hr={});go.get_timeSpan_si6tuw$=Mi,Object.defineProperty(ki,"Companion",{get:Bi}),go.HRTimeSpan=ki;var $o=fo.internal||(fo.internal={});return $o.increment_65gt2e$=Wi,$o.MicroStrReader=Hi,$o.get_niceStr_1zw1ma$=Vi,$o.spinlock_unydws$=Ki,$o.readTimeZoneOffset_1t3qu8$=Xi,$o.padded_b6l1hq$=Ji,$o.padded_f8d7mm$=Yi,$o.substr_tfrq3m$=Qi,$o.clamp_h8snvo$=Zi,$o.cycle_h8snvo$=to,$o.cycleSteps_h8snvo$=eo,$o.umod_b6l1hq$=no,$o.umod_3ahkds$=io,$o.toInt2_1zw1ma$=oo,$o.toIntMod_5fv9zk$=ro,$o.Moduler=so,$o.klockAtomicLazy_i3ch5z$=ao,$o.klockLazyOrGet_i3ch5z$=co,Object.defineProperty($o,"KlockInternal",{get:ho}),$o.Serializable=po,ve.prototype.tryParse_ivxn3r$=$t.prototype.tryParse_ivxn3r$,Te.prototype.tryParse_ivxn3r$=$t.prototype.tryParse_ivxn3r$,Le.prototype.tryParse_ivxn3r$=$t.prototype.tryParse_ivxn3r$,Mn.prototype.tryParse_ivxn3r$=$t.prototype.tryParse_ivxn3r$,Oe=null,Gi=S(typeof window,"undefined"),qi=ao((function(){return i.hrtime()})),t})?o.apply(e,r):o)||(t.exports=s)}).call(this,n(37))},function(t,e,n){var i,o,r;//! moment-timezone.js //! version : 0.5.34 //! Copyright (c) JS Foundation and other contributors //! license : MIT //! github.com/moment/moment-timezone !function(s,a){"use strict";t.exports?t.exports=a(n(10)):(o=[n(10)],void 0===(r="function"==typeof(i=a)?i.apply(e,o):i)||(t.exports=r))}(0,(function(t){"use strict";void 0===t.version&&t.default&&(t=t.default);var e,n={},i={},o={},r={},s={};t&&"string"==typeof t.version||w("Moment Timezone requires Moment.js. See https://momentjs.com/timezone/docs/#/use-it/browser/");var a=t.version.split("."),c=+a[0],l=+a[1];function u(t){return t>96?t-87:t>64?t-29:t-48}function h(t){var e=0,n=t.split("."),i=n[0],o=n[1]||"",r=1,s=0,a=1;for(45===t.charCodeAt(0)&&(e=1,a=-1);e3){var e=r[C(t)];if(e)return e;w("Moment Timezone found "+t+" from the Intl api, but did not have that data loaded.")}}catch(t){}var n,i,o,s=function(){var t,e,n,i=(new Date).getFullYear()-2,o=new g(new Date(i,0,1)),r=[o];for(n=1;n<48;n++)(e=new g(new Date(i,n,1))).offset!==o.offset&&(t=E(o,e),r.push(t),r.push(new g(new Date(t.at+6e4)))),o=e;for(n=0;n<4;n++)r.push(new g(new Date(i+n,0,1))),r.push(new g(new Date(i+n,6,1)));return r}(),a=s.length,c=S(s),l=[];for(i=0;i0?l[0].zone.name:void 0}function C(t){return(t||"").toLowerCase().replace(/\//g,"_")}function N(t){var e,i,o,s;for("string"==typeof t&&(t=[t]),e=0;e= 2.6.0. You are using Moment.js "+t.version+". See momentjs.com"),m.prototype={_set:function(t){this.name=t.name,this.abbrs=t.abbrs,this.untils=t.untils,this.offsets=t.offsets,this.population=t.population},_index:function(t){var e,n=+t,i=this.untils;for(e=0;ei&&O.moveInvalidForward&&(e=i),r0&&(this._z=null),R.apply(this,arguments)}),t.tz.setDefault=function(e){return(c<2||2===c&&l<9)&&w("Moment Timezone setDefault() requires Moment.js >= 2.9.0. You are using Moment.js "+t.version+"."),t.defaultZone=e?T(e):null,t};var U=t.momentProperties;return"[object Array]"===Object.prototype.toString.call(U)?(U.push("_z"),U.push("_a")):U&&(U._z=null),t}))},function(t,e,n){var i={"./af":441,"./af.js":441,"./ar":442,"./ar-dz":443,"./ar-dz.js":443,"./ar-kw":444,"./ar-kw.js":444,"./ar-ly":445,"./ar-ly.js":445,"./ar-ma":446,"./ar-ma.js":446,"./ar-sa":447,"./ar-sa.js":447,"./ar-tn":448,"./ar-tn.js":448,"./ar.js":442,"./az":449,"./az.js":449,"./be":450,"./be.js":450,"./bg":451,"./bg.js":451,"./bm":452,"./bm.js":452,"./bn":453,"./bn-bd":454,"./bn-bd.js":454,"./bn.js":453,"./bo":455,"./bo.js":455,"./br":456,"./br.js":456,"./bs":457,"./bs.js":457,"./ca":458,"./ca.js":458,"./cs":459,"./cs.js":459,"./cv":460,"./cv.js":460,"./cy":461,"./cy.js":461,"./da":462,"./da.js":462,"./de":463,"./de-at":464,"./de-at.js":464,"./de-ch":465,"./de-ch.js":465,"./de.js":463,"./dv":466,"./dv.js":466,"./el":467,"./el.js":467,"./en-au":468,"./en-au.js":468,"./en-ca":469,"./en-ca.js":469,"./en-gb":470,"./en-gb.js":470,"./en-ie":471,"./en-ie.js":471,"./en-il":472,"./en-il.js":472,"./en-in":473,"./en-in.js":473,"./en-nz":474,"./en-nz.js":474,"./en-sg":475,"./en-sg.js":475,"./eo":476,"./eo.js":476,"./es":477,"./es-do":478,"./es-do.js":478,"./es-mx":479,"./es-mx.js":479,"./es-us":480,"./es-us.js":480,"./es.js":477,"./et":481,"./et.js":481,"./eu":482,"./eu.js":482,"./fa":483,"./fa.js":483,"./fi":484,"./fi.js":484,"./fil":485,"./fil.js":485,"./fo":486,"./fo.js":486,"./fr":487,"./fr-ca":488,"./fr-ca.js":488,"./fr-ch":489,"./fr-ch.js":489,"./fr.js":487,"./fy":490,"./fy.js":490,"./ga":491,"./ga.js":491,"./gd":492,"./gd.js":492,"./gl":493,"./gl.js":493,"./gom-deva":494,"./gom-deva.js":494,"./gom-latn":495,"./gom-latn.js":495,"./gu":496,"./gu.js":496,"./he":497,"./he.js":497,"./hi":498,"./hi.js":498,"./hr":499,"./hr.js":499,"./hu":500,"./hu.js":500,"./hy-am":501,"./hy-am.js":501,"./id":502,"./id.js":502,"./is":503,"./is.js":503,"./it":504,"./it-ch":505,"./it-ch.js":505,"./it.js":504,"./ja":506,"./ja.js":506,"./jv":507,"./jv.js":507,"./ka":508,"./ka.js":508,"./kk":509,"./kk.js":509,"./km":510,"./km.js":510,"./kn":511,"./kn.js":511,"./ko":512,"./ko.js":512,"./ku":513,"./ku.js":513,"./ky":514,"./ky.js":514,"./lb":515,"./lb.js":515,"./lo":516,"./lo.js":516,"./lt":517,"./lt.js":517,"./lv":518,"./lv.js":518,"./me":519,"./me.js":519,"./mi":520,"./mi.js":520,"./mk":521,"./mk.js":521,"./ml":522,"./ml.js":522,"./mn":523,"./mn.js":523,"./mr":524,"./mr.js":524,"./ms":525,"./ms-my":526,"./ms-my.js":526,"./ms.js":525,"./mt":527,"./mt.js":527,"./my":528,"./my.js":528,"./nb":529,"./nb.js":529,"./ne":530,"./ne.js":530,"./nl":531,"./nl-be":532,"./nl-be.js":532,"./nl.js":531,"./nn":533,"./nn.js":533,"./oc-lnc":534,"./oc-lnc.js":534,"./pa-in":535,"./pa-in.js":535,"./pl":536,"./pl.js":536,"./pt":537,"./pt-br":538,"./pt-br.js":538,"./pt.js":537,"./ro":539,"./ro.js":539,"./ru":540,"./ru.js":540,"./sd":541,"./sd.js":541,"./se":542,"./se.js":542,"./si":543,"./si.js":543,"./sk":544,"./sk.js":544,"./sl":545,"./sl.js":545,"./sq":546,"./sq.js":546,"./sr":547,"./sr-cyrl":548,"./sr-cyrl.js":548,"./sr.js":547,"./ss":549,"./ss.js":549,"./sv":550,"./sv.js":550,"./sw":551,"./sw.js":551,"./ta":552,"./ta.js":552,"./te":553,"./te.js":553,"./tet":554,"./tet.js":554,"./tg":555,"./tg.js":555,"./th":556,"./th.js":556,"./tk":557,"./tk.js":557,"./tl-ph":558,"./tl-ph.js":558,"./tlh":559,"./tlh.js":559,"./tr":560,"./tr.js":560,"./tzl":561,"./tzl.js":561,"./tzm":562,"./tzm-latn":563,"./tzm-latn.js":563,"./tzm.js":562,"./ug-cn":564,"./ug-cn.js":564,"./uk":565,"./uk.js":565,"./ur":566,"./ur.js":566,"./uz":567,"./uz-latn":568,"./uz-latn.js":568,"./uz.js":567,"./vi":569,"./vi.js":569,"./x-pseudo":570,"./x-pseudo.js":570,"./yo":571,"./yo.js":571,"./zh-cn":572,"./zh-cn.js":572,"./zh-hk":573,"./zh-hk.js":573,"./zh-mo":574,"./zh-mo.js":574,"./zh-tw":575,"./zh-tw.js":575};function o(t){var e=r(t);return n(e)}function r(t){if(!n.o(i,t)){var e=new Error("Cannot find module '"+t+"'");throw e.code="MODULE_NOT_FOUND",e}return i[t]}o.keys=function(){return Object.keys(i)},o.resolve=r,t.exports=o,o.id=760},function(t){t.exports=JSON.parse('{"version":"2021e","zones":["Africa/Abidjan|LMT GMT|g.8 0|01|-2ldXH.Q|48e5","Africa/Nairobi|LMT +0230 EAT +0245|-2r.g -2u -30 -2J|012132|-2ua2r.g N6nV.g 3Fbu h1cu dzbJ|47e5","Africa/Algiers|PMT WET WEST CET CEST|-9.l 0 -10 -10 -20|0121212121212121343431312123431213|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 DA0 Imo0 rd0 De0 9Xz0 1fb0 1ap0 16K0 2yo0 mEp0 hwL0 jxA0 11A0 dDd0 17b0 11B0 1cN0 2Dy0 1cN0 1fB0 1cL0|26e5","Africa/Lagos|LMT GMT +0030 WAT|-d.z 0 -u -10|01023|-2B40d.z 7iod.z dnXK.p dLzH.z|17e6","Africa/Bissau|LMT -01 GMT|12.k 10 0|012|-2ldX0 2xoo0|39e4","Africa/Maputo|LMT CAT|-2a.k -20|01|-2GJea.k|26e5","Africa/Cairo|EET EEST|-20 -30|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1bIO0 vb0 1ip0 11z0 1iN0 1nz0 12p0 1pz0 10N0 1pz0 16p0 1jz0 s3d0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1WL0 rd0 1Rz0 wp0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1qL0 Xd0 1oL0 11d0 1oL0 11d0 1pb0 11d0 1oL0 11d0 1oL0 11d0 1ny0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 WL0 1qN0 Rb0 1wp0 On0 1zd0 Lz0 1EN0 Fb0 c10 8n0 8Nd0 gL0 e10 mn0|15e6","Africa/Casablanca|LMT +00 +01|u.k 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-2gMnt.E 130Lt.E rb0 Dd0 dVb0 b6p0 TX0 EoB0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4mn0 SyN0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0|32e5","Africa/Ceuta|WET WEST CET CEST|0 -10 -10 -20|010101010101010101010232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-25KN0 11z0 drd0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1y7o0 LL0 gnd0 rz0 43d0 AL0 1Nd0 XX0 1Cp0 pz0 dEp0 4VB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|85e3","Africa/El_Aaiun|LMT -01 +00 +01|Q.M 10 0 -10|012323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1rDz7.c 1GVA7.c 6L0 AL0 1Nd0 XX0 1Cp0 pz0 1cBB0 AL0 1Nd0 wn0 1FB0 Db0 1zd0 Lz0 1Nf0 wM0 co0 go0 1o00 s00 dA0 vc0 11A0 A00 e00 y00 11A0 uM0 e00 Dc0 11A0 s00 e00 IM0 WM0 mo0 gM0 LA0 WM0 jA0 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 28M0 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0 2600 e00 2600 gM0 2600 gM0 2600 e00 2600 gM0|20e4","Africa/Johannesburg|SAST SAST SAST|-1u -20 -30|012121|-2GJdu 1Ajdu 1cL0 1cN0 1cL0|84e5","Africa/Juba|LMT CAT CAST EAT|-26.s -20 -30 -30|012121212121212121212121212121212131|-1yW26.s 1zK06.s 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 PeX0|","Africa/Khartoum|LMT CAT CAST EAT|-2a.8 -20 -30 -30|012121212121212121212121212121212131|-1yW2a.8 1zK0a.8 16L0 1iN0 17b0 1jd0 17b0 1ip0 17z0 1i10 17X0 1hB0 18n0 1hd0 19b0 1gp0 19z0 1iN0 17b0 1ip0 17z0 1i10 18n0 1hd0 18L0 1gN0 19b0 1gp0 19z0 1iN0 17z0 1i10 17X0 yGd0 HjL0|51e5","Africa/Monrovia|MMT MMT GMT|H.8 I.u 0|012|-23Lzg.Q 28G01.m|11e5","Africa/Ndjamena|LMT WAT WAST|-10.c -10 -20|0121|-2le10.c 2J3c0.c Wn0|13e5","Africa/Sao_Tome|LMT GMT WAT|A.J 0 -10|0121|-2le00 4i6N0 2q00|","Africa/Tripoli|LMT CET CEST EET|-Q.I -10 -20 -20|012121213121212121212121213123123|-21JcQ.I 1hnBQ.I vx0 4iP0 xx0 4eN0 Bb0 7ip0 U0n0 A10 1db0 1cN0 1db0 1dd0 1db0 1eN0 1bb0 1e10 1cL0 1c10 1db0 1dd0 1db0 1cN0 1db0 1q10 fAn0 1ep0 1db0 AKq0 TA0 1o00|11e5","Africa/Tunis|PMT CET CEST|-9.l -10 -20|0121212121212121212121212121212121|-2nco9.l 18pa9.l 1qM0 DA0 3Tc0 11B0 1ze0 WM0 7z0 3d0 14L0 1cN0 1f90 1ar0 16J0 1gXB0 WM0 1rA0 11c0 nwo0 Ko0 1cM0 1cM0 1rA0 10M0 zuM0 10N0 1aN0 1qM0 WM0 1qM0 11A0 1o00|20e5","Africa/Windhoek|+0130 SAST SAST CAT WAT|-1u -20 -30 -20 -10|01213434343434343434343434343434343434343434343434343|-2GJdu 1Ajdu 1cL0 1SqL0 9Io0 16P0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0|32e4","America/Adak|NST NWT NPT BST BDT AHST HST HDT|b0 a0 a0 b0 a0 a0 a0 90|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|326","America/Anchorage|AST AWT APT AHST AHDT YST AKST AKDT|a0 90 90 a0 90 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T00 8wX0 iA0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cm0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|30e4","America/Puerto_Rico|AST AWT APT|40 30 30|0120|-17lU0 7XT0 iu0|24e5","America/Araguaina|LMT -03 -02|3c.M 30 20|0121212121212121212121212121212121212121212121212121|-2glwL.c HdKL.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 ny10 Lz0|14e4","America/Argentina/Buenos_Aires|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Catamarca|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Cordoba|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323132323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0 1qN0 WL0|","America/Argentina/Jujuy|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1ze0 TX0 1ld0 WK0 1wp0 TX0 A4p0 uL0|","America/Argentina/La_Rioja|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Mendoza|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232312121321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1u20 SL0 1vd0 Tb0 1wp0 TW0 ri10 Op0 7TX0 uL0|","America/Argentina/Rio_Gallegos|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rlB0 7B0 8zb0 uL0|","America/Argentina/Salta|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231323232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 A4p0 uL0|","America/Argentina/San_Juan|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323231232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Qn0 qO0 16n0 Rb0 1wp0 TX0 rld0 m10 8lb0 uL0|","America/Argentina/San_Luis|CMT -04 -03 -02|4g.M 40 30 20|012121212121212121212121212121212121212121232323121212321212|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 XX0 1q20 SL0 AN0 vDb0 m10 8lb0 8L0 jd0 1qN0 WL0 1qN0|","America/Argentina/Tucuman|CMT -04 -03 -02|4g.M 40 30 20|0121212121212121212121212121212121212121212323232313232123232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wq0 Ra0 1wp0 TX0 rlB0 4N0 8BX0 uL0 1qN0 WL0|","America/Argentina/Ushuaia|CMT -04 -03 -02|4g.M 40 30 20|01212121212121212121212121212121212121212123232323232321232|-20UHH.c pKnH.c Mn0 1iN0 Tb0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 1C10 LX0 1C10 LX0 1C10 LX0 1C10 Mn0 MN0 2jz0 MN0 4lX0 u10 5Lb0 1pB0 Fnz0 u10 uL0 1vd0 SL0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 zvd0 Bz0 1tB0 TX0 1wp0 Rb0 1wp0 Rb0 1wp0 TX0 rkN0 8p0 8zb0 uL0|","America/Asuncion|AMT -04 -03|3O.E 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-1x589.k 1DKM9.k 3CL0 3Dd0 10L0 1pB0 10n0 1pB0 10n0 1pB0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1dd0 1cL0 1dd0 1cL0 1dd0 1db0 1dd0 1cL0 1lB0 14n0 1dd0 1cL0 1fd0 WL0 1rd0 1aL0 1dB0 Xz0 1qp0 Xb0 1qN0 10L0 1rB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 WN0 1qL0 11B0 1nX0 1ip0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 TX0 1tB0 19X0 1a10 1fz0 1a10 1fz0 1cN0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1ip0 17b0 1ip0 17b0 1ip0|28e5","America/Panama|CMT EST|5j.A 50|01|-2uduE.o|15e5","America/Bahia_Banderas|LMT MST CST PST MDT CDT|71 70 60 80 60 50|0121212131414141414141414141414141414152525252525252525252525252525252525252525252525252525252|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nW0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|84e3","America/Bahia|LMT -03 -02|2y.4 30 20|01212121212121212121212121212121212121212121212121212121212121|-2glxp.U HdLp.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 l5B0 Rb0|27e5","America/Barbados|LMT AST ADT -0330|3W.t 40 30 3u|0121213121212121|-2m4k1.v 1eAN1.v RB0 1Bz0 Op0 1rb0 11d0 1jJc0 IL0 1ip0 17b0 1ip0 17b0 1ld0 13b0|28e4","America/Belem|LMT -03 -02|3d.U 30 20|012121212121212121212121212121|-2glwK.4 HdKK.4 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|20e5","America/Belize|LMT CST -0530 CWT CPT CDT|5Q.M 60 5u 50 50 50|012121212121212121212121212121212121212121212121213412121212121212121212121212121212121212121215151|-2kBu7.c fPA7.c Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu Rcu 7Bt0 Ni0 4nd0 Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1wou Rbu 1wou Rbu 1zcu Onu e9Au qn0 lxB0 mn0|57e3","America/Boa_Vista|LMT -04 -03|42.E 40 30|0121212121212121212121212121212121|-2glvV.k HdKV.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 smp0 WL0 1tB0 2L0|62e2","America/Bogota|BMT -05 -04|4U.g 50 40|0121|-2eb73.I 38yo3.I 2en0|90e5","America/Boise|PST PDT MST MWT MPT MDT|80 70 70 60 60 60|0101023425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-261q0 1nX0 11B0 1nX0 8C10 JCL0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 Dd0 1Kn0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e4","America/Cambridge_Bay|-00 MST MWT MPT MDDT MDT CST CDT EST|0 70 60 60 50 60 60 50 50|0123141515151515151515151515151515151515151515678651515151515151515151515151515151515151515151515151515151515151515151515151|-21Jc0 RO90 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11A0 1nX0 2K0 WQ0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e2","America/Campo_Grande|LMT -04 -03|3C.s 40 30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwl.w HdLl.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|77e4","America/Cancun|LMT CST EST EDT CDT|5L.4 60 50 40 50|0123232341414141414141414141414141414141412|-1UQG0 2q2o0 yLB0 1lb0 14p0 1lb0 14p0 Lz0 xB0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 Dd0|63e4","America/Caracas|CMT -0430 -04|4r.E 4u 40|01212|-2kV7w.k 28KM2.k 1IwOu kqo0|29e5","America/Cayenne|LMT -04 -03|3t.k 40 30|012|-2mrwu.E 2gWou.E|58e3","America/Chicago|CST CDT EST CWT CPT|60 50 50 50 50|01010101010101010101010101010101010102010101010103401010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 1wp0 TX0 WN0 1qL0 1cN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 11B0 1Hz0 14p0 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|92e5","America/Chihuahua|LMT MST CST CDT MDT|74.k 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|81e4","America/Costa_Rica|SJMT CST CDT|5A.d 60 50|0121212121|-1Xd6n.L 2lu0n.L Db0 1Kp0 Db0 pRB0 15b0 1kp0 mL0|12e5","America/Phoenix|MST MDT MWT|70 60 60|01010202010|-261r0 1nX0 11B0 1nX0 SgN0 4Al1 Ap0 1db0 SWqX 1cL0|42e5","America/Cuiaba|LMT -04 -03|3I.k 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwf.E HdLf.E 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 4a10 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|54e4","America/Danmarkshavn|LMT -03 -02 GMT|1e.E 30 20 0|01212121212121212121212121212121213|-2a5WJ.k 2z5fJ.k 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 DC0|8","America/Dawson_Creek|PST PDT PWT PPT MST|80 70 70 70 70|0102301010101010101010101010101010101010101010101010101014|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 ML0|12e3","America/Dawson|YST YDT YWT YPT YDDT PST PDT MST|90 80 80 80 70 80 70 70|010102304056565656565656565656565656565656565656565656565656565656565656565656565656565656567|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 jrA0 fNd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|13e2","America/Denver|MST MDT MWT MPT|70 60 60 60|01010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 11B0 1qL0 WN0 mn0 Ord0 8x20 ix0 LCN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e5","America/Detroit|LMT CST EST EWT EPT EDT|5w.b 60 50 40 40 40|0123425252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2Cgir.N peqr.N 156L0 8x40 iv0 6fd0 11z0 JxX1 SMX 1cN0 1cL0 aW10 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e5","America/Edmonton|LMT MST MDT MWT MPT|7x.Q 70 60 60 60|0121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2yd4q.8 shdq.8 1in0 17d0 hz0 2dB0 1fz0 1a10 11z0 1qN0 WL0 1qN0 11z0 IGN0 8x20 ix0 3NB0 11z0 XQp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|10e5","America/Eirunepe|LMT -05 -04|4D.s 50 40|0121212121212121212121212121212121|-2glvk.w HdLk.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0 yTd0 d5X0|31e3","America/El_Salvador|LMT CST CDT|5U.M 60 50|012121|-1XiG3.c 2Fvc3.c WL0 1qN0 WL0|11e5","America/Tijuana|LMT MST PST PDT PWT PPT|7M.4 70 80 70 70 70|012123245232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQE0 4PX0 8mM0 8lc0 SN0 1cL0 pHB0 83r0 zI0 5O10 1Rz0 cOO0 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 BUp0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|20e5","America/Fort_Nelson|PST PDT PWT PPT MST|80 70 70 70 70|01023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010104|-25TO0 1in0 UGp0 8x10 iy0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0|39e2","America/Fort_Wayne|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010101023010101010101010101040454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 QI10 Db0 RB0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 5Tz0 1o10 qLb0 1cL0 1cN0 1cL0 1qhd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Fortaleza|LMT -03 -02|2y 30 20|0121212121212121212121212121212121212121|-2glxq HdLq 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 5z0 2mN0 On0|34e5","America/Glace_Bay|LMT AST ADT AWT APT|3X.M 40 30 30 30|012134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsI0.c CwO0.c 1in0 UGp0 8x50 iu0 iq10 11z0 Jg10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","America/Godthab|LMT -03 -02|3q.U 30 20|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5Ux.4 2z5dx.4 19U0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e3","America/Goose_Bay|NST NDT NST NDT NWT NPT AST ADT ADDT|3u.Q 2u.Q 3u 2u 2u 2u 40 30 20|010232323232323245232323232323232323232323232323232323232326767676767676767676767676767676767676767676768676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-25TSt.8 1in0 DXb0 2HbX.8 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 S10 g0u 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|76e2","America/Grand_Turk|KMT EST EDT AST|57.a 50 40 40|0121212121212121212121212121212121212121212121212121212121212121212121212132121212121212121212121212121212121212121|-2l1uQ.O 2HHBQ.O 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 7jA0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|37e2","America/Guatemala|LMT CST CDT|62.4 60 50|0121212121|-24KhV.U 2efXV.U An0 mtd0 Nz0 ifB0 17b0 zDB0 11z0|13e5","America/Guayaquil|QMT -05 -04|5e 50 40|0121|-1yVSK 2uILK rz0|27e5","America/Guyana|LMT -04 -0345 -03|3Q.D 40 3J 30|01231|-2mf87.l 8Hc7.l 2r7bJ Ey0f|80e4","America/Halifax|LMT AST ADT AWT APT|4e.o 40 30 30 30|0121212121212121212121212121212121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsHJ.A xzzJ.A 1db0 3I30 1in0 3HX0 IL0 1E10 ML0 1yN0 Pb0 1Bd0 Mn0 1Bd0 Rz0 1w10 Xb0 1w10 LX0 1w10 Xb0 1w10 Lz0 1C10 Jz0 1E10 OL0 1yN0 Un0 1qp0 Xb0 1qp0 11X0 1w10 Lz0 1HB0 LX0 1C10 FX0 1w10 Xb0 1qp0 Xb0 1BB0 LX0 1td0 Xb0 1qp0 Xb0 Rf0 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 3Qp0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 6i10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|39e4","America/Havana|HMT CST CDT|5t.A 50 40|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Meuu.o 72zu.o ML0 sld0 An0 1Nd0 Db0 1Nd0 An0 6Ep0 An0 1Nd0 An0 JDd0 Mn0 1Ap0 On0 1fd0 11X0 1qN0 WL0 1wp0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 14n0 1ld0 14L0 1kN0 15b0 1kp0 1cL0 1cN0 1fz0 1a10 1fz0 1fB0 11z0 14p0 1nX0 11B0 1nX0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 1a10 1in0 1a10 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 17c0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 11A0 6i00 Rc0 1wo0 U00 1tA0 Rc0 1wo0 U00 1wo0 U00 1zc0 U00 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0|21e5","America/Hermosillo|LMT MST CST PST MDT|7n.Q 70 60 80 60|0121212131414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0|64e4","America/Indiana/Knox|CST CDT CWT CPT EST|60 50 50 50 50|0101023010101010101010101010101010101040101010101010101010101010101010101010101010101010141010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 3NB0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 3Cn0 8wp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 z8o0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Marengo|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010104545454545414545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 dyN0 11z0 6fd0 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1e6p0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Petersburg|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010104010101010101010101010141014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 3Fb0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 19co0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Tell_City|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010401054541010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 njX0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 8wn0 1cN0 1cL0 1cN0 1cK0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vevay|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|010102304545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 kPB0 Awn0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1lnd0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Vincennes|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010454541014545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 g0p0 11z0 1o10 11z0 1qL0 WN0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 caL0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Indiana/Winamac|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|01010230101010101010101010101010101010454541054545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 jrz0 1cL0 1cN0 1cL0 1qhd0 1o00 Rd0 1za0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Inuvik|-00 PST PDDT MST MDT|0 80 60 70 60|0121343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-FnA0 tWU0 1fA0 wPe0 2pz0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|35e2","America/Iqaluit|-00 EWT EPT EST EDDT EDT CST CDT|0 40 40 50 30 40 60 50|01234353535353535353535353535353535353535353567353535353535353535353535353535353535353535353535353535353535353535353535353|-16K00 7nX0 iv0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|67e2","America/Jamaica|KMT EST EDT|57.a 50 40|0121212121212121212121|-2l1uQ.O 2uM1Q.O 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0|94e4","America/Juneau|PST PWT PPT PDT YDT YST AKST AKDT|80 70 70 70 80 90 90 80|01203030303030303030303030403030356767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cM0 1cM0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|33e3","America/Kentucky/Louisville|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101010102301010101010101010101010101454545454545414545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 3Fd0 Nb0 LPd0 11z0 RB0 8x30 iw0 1nX1 e0X 9vd0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 xz0 gso0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1VA0 LA0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Kentucky/Monticello|CST CDT CWT CPT EST EDT|60 50 50 50 50 40|0101023010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454545454|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 SWp0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/La_Paz|CMT BST -04|4w.A 3w.A 40|012|-1x37r.o 13b0|19e5","America/Lima|LMT -05 -04|58.A 50 40|0121212121212121|-2tyGP.o 1bDzP.o zX0 1aN0 1cL0 1cN0 1cL0 1PrB0 zX0 1O10 zX0 6Gp0 zX0 98p0 zX0|11e6","America/Los_Angeles|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 5Wp1 1VaX 3dA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|15e6","America/Maceio|LMT -03 -02|2m.Q 30 20|012121212121212121212121212121212121212121|-2glxB.8 HdLB.8 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 dMN0 Lz0 8Q10 WL0 1tB0 5z0 2mN0 On0|93e4","America/Managua|MMT CST EST CDT|5J.c 60 50 50|0121313121213131|-1quie.M 1yAMe.M 4mn0 9Up0 Dz0 1K10 Dz0 s3F0 1KH0 DB0 9In0 k8p0 19X0 1o30 11y0|22e5","America/Manaus|LMT -04 -03|40.4 40 30|01212121212121212121212121212121|-2glvX.U HdKX.U 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 dPB0 On0|19e5","America/Martinique|FFMT AST ADT|44.k 40 30|0121|-2mPTT.E 2LPbT.E 19X0|39e4","America/Matamoros|LMT CST CDT|6E 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|45e4","America/Mazatlan|LMT MST CST PST MDT|75.E 70 60 80 60|0121212131414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 otX0 gmN0 P2N0 13Vd0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|44e4","America/Menominee|CST CDT CWT CPT EST|60 50 50 50 50|01010230101041010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 1o10 11z0 LCN0 1fz0 6410 9Jb0 1cM0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|85e2","America/Merida|LMT CST EST CDT|5W.s 60 50 50|0121313131313131313131313131313131313131313131313131313131313131313131313131313131313131|-1UQG0 2q2o0 2hz0 wu30 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|11e5","America/Metlakatla|PST PWT PPT PDT AKST AKDT|80 70 70 70 90 80|01203030303030303030303030303030304545450454545454545454545454545454545454545454|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1hU10 Rd0 1zb0 Op0 1zb0 Op0 1zb0 uM0 jB0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Mexico_City|LMT MST CST CDT CWT|6A.A 70 60 50 50|012121232324232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 gEn0 TX0 3xd0 Jb0 6zB0 SL0 e5d0 17b0 1Pff0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|20e6","America/Miquelon|LMT AST -03 -02|3I.E 40 30 20|012323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2mKkf.k 2LTAf.k gQ10 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|61e2","America/Moncton|EST AST ADT AWT APT|50 40 30 30 30|012121212121212121212134121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2IsH0 CwN0 1in0 zAo0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1Nd0 An0 1K10 Lz0 1zB0 NX0 1u10 Wn0 S20 8x50 iu0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14n1 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 ReX 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|64e3","America/Monterrey|LMT CST CDT|6F.g 60 50|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1UQG0 2FjC0 1nX0 i6p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0|41e5","America/Montevideo|LMT MMT -04 -03 -0330 -0230 -02 -0130|3I.P 3I.P 40 30 3u 2u 20 1u|012343434343434343434343435353636353636375363636363636363636363636363636363636363636363|-2tRUf.9 sVc0 8jcf.9 1db0 1dcu 1cLu 1dcu 1cLu ircu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu WLu 1fAu 1cLu 1o0u 11zu NAu 3jXu zXu Dq0u 19Xu pcu jz0 cm10 19X0 6tB0 1fbu 3o0u jX0 4vB0 xz0 3Cp0 mmu 1a10 IMu Db0 4c10 uL0 1Nd0 An0 1SN0 uL0 mp0 28L0 iPB0 un0 1SN0 xz0 1zd0 Lz0 1zd0 Rb0 1zd0 On0 1wp0 Rb0 s8p0 1fB0 1ip0 11z0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 14n0 1ld0 14n0 1ld0 14n0 1o10 11z0 1o10 11z0 1o10 11z0|17e5","America/Toronto|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101012301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 11Wu 1nzu 1fD0 WJ0 1wr0 Nb0 1Ap0 On0 1zd0 On0 1wp0 TX0 1tB0 TX0 1tB0 TX0 1tB0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 4kM0 8x40 iv0 1o10 11z0 1nX0 11z0 1o10 11z0 1o10 1qL0 11D0 1nX0 11B0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e5","America/New_York|EST EDT EWT EPT|50 40 40 40|01010101010101010101010101010101010101010101010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 11B0 1qL0 1a10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 RB0 8x40 iv0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|21e6","America/Nipigon|EST EDT EWT EPT|50 40 40 40|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TR0 1in0 Rnb0 3je0 8x40 iv0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|16e2","America/Nome|NST NWT NPT BST BDT YST AKST AKDT|b0 a0 a0 b0 a0 90 90 80|012034343434343434343434343434343456767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676767676|-17SX0 8wW0 iB0 Qlb0 52O0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cl0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|38e2","America/Noronha|LMT -02 -01|29.E 20 10|0121212121212121212121212121212121212121|-2glxO.k HdKO.k 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|30e2","America/North_Dakota/Beulah|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Oo0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/Center|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101014545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/North_Dakota/New_Salem|MST MDT MWT MPT CST CDT|70 60 60 60 60 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101454545454545454545454545454545454545454545454545454545454545454545454|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14o0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","America/Ojinaga|LMT MST CST CDT MDT|6V.E 70 60 50 60|0121212323241414141414141414141414141414141414141414141414141414141414141414141414141414141|-1UQF0 deL0 8lc0 17c0 10M0 1dd0 2zQN0 1lb0 14p0 1lb0 14q0 1lb0 14p0 1nX0 11B0 1nX0 1fB0 WL0 1fB0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 U10 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e3","America/Pangnirtung|-00 AST AWT APT ADDT ADT EDT EST CST CDT|0 40 30 30 20 30 40 50 60 50|012314151515151515151515151515151515167676767689767676767676767676767676767676767676767676767676767676767676767676767676767|-1XiM0 PnG0 8x50 iu0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1o00 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11C0 1nX0 11A0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|14e2","America/Paramaribo|LMT PMT PMT -0330 -03|3E.E 3E.Q 3E.A 3u 30|01234|-2nDUj.k Wqo0.c qanX.I 1yVXN.o|24e4","America/Port-au-Prince|PPMT EST EDT|4N 50 40|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-28RHb 2FnMb 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14q0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 i6n0 1nX0 11B0 1nX0 d430 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 3iN0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Rio_Branco|LMT -05 -04|4v.c 50 40|01212121212121212121212121212121|-2glvs.M HdLs.M 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0 d5X0|31e4","America/Porto_Velho|LMT -04 -03|4f.A 40 30|012121212121212121212121212121|-2glvI.o HdKI.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0|37e4","America/Punta_Arenas|SMT -05 -04 -03|4G.K 50 40 30|0102021212121212121232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 blz0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|","America/Rainy_River|CST CDT CWT CPT|60 50 50 50|010123010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TQ0 1in0 Rnb0 3je0 8x30 iw0 19yN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|842","America/Rankin_Inlet|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313131313131313131313131313131313131313131313131313131313131313131|-vDc0 keu0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|26e2","America/Recife|LMT -03 -02|2j.A 30 20|0121212121212121212121212121212121212121|-2glxE.o HdLE.o 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 nsp0 WL0 1tB0 2L0 2pB0 On0|33e5","America/Regina|LMT MST MDT MWT MPT CST|6W.A 70 60 60 60 60|012121212121212121212121341212121212121212121212121215|-2AD51.o uHe1.o 1in0 s2L0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 66N0 1cL0 1cN0 19X0 1fB0 1cL0 1fB0 1cL0 1cN0 1cL0 M30 8x20 ix0 1ip0 1cL0 1ip0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 3NB0 1cL0 1cN0|19e4","America/Resolute|-00 CST CDDT CDT EST|0 60 40 50 50|012131313131313131313131313131313131313131313431313131313431313131313131313131313131313131313131313131313131313131313131|-SnA0 GWS0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|229","America/Santarem|LMT -04 -03|3C.M 40 30|0121212121212121212121212121212|-2glwl.c HdLl.c 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 qe10 xb0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 NBd0|21e4","America/Santiago|SMT -05 -04 -03|4G.K 50 40 30|010202121212121212321232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-2q2jh.e fJAh.e 5knG.K 1Vzh.e jRAG.K 1pbh.e 11d0 1oL0 11d0 1oL0 11d0 1oL0 11d0 1pb0 11d0 nHX0 op0 9Bz0 jb0 1oN0 ko0 Qeo0 WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|62e5","America/Santo_Domingo|SDMT EST EDT -0430 AST|4E 50 40 4u 40|01213131313131414|-1ttjk 1lJMk Mn0 6sp0 Lbu 1Cou yLu 1RAu wLu 1QMu xzu 1Q0u xXu 1PAu 13jB0 e00|29e5","America/Sao_Paulo|LMT -03 -02|36.s 30 20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glwR.w HdKR.w 1cc0 1e10 1bX0 Ezd0 So0 1vA0 Mn0 1BB0 ML0 1BB0 zX0 pTd0 PX0 2ep0 nz0 1C10 zX0 1C10 LX0 1C10 Mn0 H210 Rb0 1tB0 IL0 1Fd0 FX0 1EN0 FX0 1HB0 Lz0 1EN0 Lz0 1C10 IL0 1HB0 Db0 1HB0 On0 1zd0 On0 1zd0 Lz0 1zd0 Rb0 1wN0 Wn0 1tB0 Rb0 1tB0 WL0 1tB0 Rb0 1zd0 On0 1HB0 FX0 1C10 Lz0 1Ip0 HX0 1zd0 On0 1HB0 IL0 1wp0 On0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 Rb0 1zd0 Lz0 1C10 Lz0 1C10 On0 1zd0 On0 1zd0 On0 1zd0 On0 1HB0 FX0|20e6","America/Scoresbysund|LMT -02 -01 +00|1r.Q 20 10 0|0121323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2a5Ww.8 2z5ew.8 1a00 1cK0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|452","America/Sitka|PST PWT PPT PDT YST AKST AKDT|80 70 70 70 90 90 80|01203030303030303030303030303030345656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565656565|-17T20 8x10 iy0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 co0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|90e2","America/St_Johns|NST NDT NST NDT NWT NPT NDDT|3u.Q 2u.Q 3u 2u 2u 2u 1u|01010101010101010101010101010101010102323232323232324523232323232323232323232323232323232323232323232323232323232323232323232323232323232326232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28oit.8 14L0 1nB0 1in0 1gm0 Dz0 1JB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 19X0 1fB0 1cL0 1fB0 19X0 1fB0 19X0 10O0 eKX.8 19X0 1iq0 WL0 1qN0 WL0 1qN0 WL0 1tB0 TX0 1tB0 WL0 1qN0 WL0 1qN0 7UHu itu 1tB0 WL0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1tB0 WL0 1ld0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14n1 1lb0 14p0 1nW0 11C0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zcX Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Swift_Current|LMT MST MDT MWT MPT CST|7b.k 70 60 60 60 60|012134121212121212121215|-2AD4M.E uHdM.E 1in0 UGp0 8x20 ix0 1o10 17b0 1ip0 11z0 1o10 11z0 1o10 11z0 isN0 1cL0 3Cp0 1cL0 1cN0 11z0 1qN0 WL0 pMp0|16e3","America/Tegucigalpa|LMT CST CDT|5M.Q 60 50|01212121|-1WGGb.8 2ETcb.8 WL0 1qN0 WL0 GRd0 AL0|11e5","America/Thule|LMT AST ADT|4z.8 40 30|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a5To.Q 31NBo.Q 1cL0 1cN0 1cL0 1fB0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|656","America/Thunder_Bay|CST EST EWT EPT EDT|60 50 40 40 40|0123141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141414141|-2q5S0 1iaN0 8x40 iv0 XNB0 1cL0 1cN0 1fz0 1cN0 1cL0 3Cp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|11e4","America/Vancouver|PST PDT PWT PPT|80 70 70 70|0102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-25TO0 1in0 UGp0 8x10 iy0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|23e5","America/Whitehorse|YST YDT YWT YPT YDDT PST PDT MST|90 80 80 80 70 80 70 70|010102304056565656565656565656565656565656565656565656565656565656565656565656565656565656567|-25TN0 1in0 1o10 13V0 Ser0 8x00 iz0 LCL0 1fA0 3NA0 vrd0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1z90|23e3","America/Winnipeg|CST CDT CWT CPT|60 50 50 50|010101023010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aIi0 WL0 3ND0 1in0 Jap0 Rb0 aCN0 8x30 iw0 1tB0 11z0 1ip0 11z0 1o10 11z0 1o10 11z0 1rd0 10L0 1op0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 1cL0 1cN0 11z0 6i10 WL0 6i10 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1a00 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1o00 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1o00 11A0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|66e4","America/Yakutat|YST YWT YPT YDT AKST AKDT|90 80 80 80 90 80|01203030303030303030303030303030304545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-17T10 8x00 iz0 Vo10 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 cn0 10q0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|642","America/Yellowknife|-00 MST MWT MPT MDDT MDT|0 70 60 60 50 60|012314151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151515151|-1pdA0 hix0 8x20 ix0 LCL0 1fA0 zgO0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|19e3","Antarctica/Casey|-00 +08 +11|0 -80 -b0|0121212121212|-2q00 1DjS0 T90 40P0 KL0 blz0 3m10 1o30 14k0 1kr0 12l0 1o01|10","Antarctica/Davis|-00 +07 +05|0 -70 -50|01012121|-vyo0 iXt0 alj0 1D7v0 VB0 3Wn0 KN0|70","Pacific/Port_Moresby|+10|-a0|0||25e4","Antarctica/Macquarie|AEST AEDT -00|-a0 -b0 0|010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 1a00 4SK0 1ayy0 Lvs0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 3Co0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|1","Antarctica/Mawson|-00 +06 +05|0 -60 -50|012|-CEo0 2fyk0|60","Pacific/Auckland|NZMT NZST NZST NZDT|-bu -cu -c0 -d0|01020202020202020202020202023232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1GCVu Lz0 1tB0 11zu 1o0u 11zu 1o0u 11zu 1o0u 14nu 1lcu 14nu 1lcu 1lbu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1nXu 11Au 1qLu WMu 1qLu 11Au 1n1bu IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|14e5","Antarctica/Palmer|-00 -03 -04 -02|0 30 40 20|0121212121213121212121212121212121212121212121212121212121212121212121212121212121|-cao0 nD0 1vd0 SL0 1vd0 17z0 1cN0 1fz0 1cN0 1cL0 1cN0 asn0 Db0 jsN0 14N0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0|40","Antarctica/Rothera|-00 -03|0 30|01|gOo0|130","Asia/Riyadh|LMT +03|-36.Q -30|01|-TvD6.Q|57e5","Antarctica/Troll|-00 +00 +02|0 0 -20|01212121212121212121212121212121212121212121212121212121212121212121|1puo0 hd0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|40","Antarctica/Vostok|-00 +06|0 -60|01|-tjA0|25","Europe/Oslo|CET CEST|-10 -20|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2awM0 Qm0 W6o0 5pf0 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 wJc0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1qM0 WM0 zpc0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e4","Asia/Almaty|LMT +05 +06 +07|-57.M -50 -60 -70|012323232323232323232321232323232323232323232323232|-1Pc57.M eUo7.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|15e5","Asia/Amman|LMT EET EEST|-2n.I -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1yW2n.I 1HiMn.I KL0 1oN0 11b0 1oN0 11b0 1pd0 1dz0 1cp0 11b0 1op0 11b0 fO10 1db0 1e10 1cL0 1cN0 1cL0 1cN0 1fz0 1pd0 10n0 1ld0 14n0 1hB0 15b0 1ip0 19X0 1cN0 1cL0 1cN0 17b0 1ld0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1So0 y00 1fc0 1dc0 1co0 1dc0 1cM0 1cM0 1cM0 1o00 11A0 1lc0 17c0 1cM0 1cM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 4bX0 Dd0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 LA0 1C00 LA0 1C00 Oo0 1zc0 Oo0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 Oo0 1zc0 Oo0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 LA0 1C00 Oo0 1C00 LA0 1C00|25e5","Asia/Anadyr|LMT +12 +13 +14 +11|-bN.U -c0 -d0 -e0 -b0|01232121212121212121214121212121212121212121212121212121212141|-1PcbN.U eUnN.U 23CL0 1db0 2q10 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|13e3","Asia/Aqtau|LMT +04 +05 +06|-3l.4 -40 -50 -60|012323232323232323232123232312121212121212121212|-1Pc3l.4 eUnl.4 24PX0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|15e4","Asia/Aqtobe|LMT +04 +05 +06|-3M.E -40 -50 -60|0123232323232323232321232323232323232323232323232|-1Pc3M.E eUnM.E 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0|27e4","Asia/Ashgabat|LMT +04 +05 +06|-3R.w -40 -50 -60|0123232323232323232323212|-1Pc3R.w eUnR.w 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0|41e4","Asia/Atyrau|LMT +03 +05 +06 +04|-3r.I -30 -50 -60 -40|01232323232323232323242323232323232324242424242|-1Pc3r.I eUor.I 24PW0 2pX0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 2sp0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|","Asia/Baghdad|BMT +03 +04|-2V.A -30 -40|012121212121212121212121212121212121212121212121212121|-26BeV.A 2ACnV.A 11b0 1cp0 1dz0 1dd0 1db0 1cN0 1cp0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1de0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0 1dc0 1dc0 1cM0 1dc0 1cM0 1dc0 1cM0 1dc0|66e5","Asia/Qatar|LMT +04 +03|-3q.8 -40 -30|012|-21Jfq.8 27BXq.8|96e4","Asia/Baku|LMT +03 +04 +05|-3j.o -30 -40 -50|01232323232323232323232123232323232323232323232323232323232323232|-1Pc3j.o 1jUoj.o WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 9Je0 1o00 11z0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00|27e5","Asia/Bangkok|BMT +07|-6G.4 -70|01|-218SG.4|15e6","Asia/Barnaul|LMT +06 +07 +08|-5z -60 -70 -80|0123232323232323232323212323232321212121212121212121212121212121212|-21S5z pCnz 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 p90 LE0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|","Asia/Beirut|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-21aq0 1on0 1410 1db0 19B0 1in0 1ip0 WL0 1lQp0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 q6N0 En0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1op0 11b0 dA10 17b0 1iN0 17b0 1iN0 17b0 1iN0 17b0 1vB0 SL0 1mp0 13z0 1iN0 17b0 1iN0 17b0 1jd0 12n0 1a10 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0|22e5","Asia/Bishkek|LMT +05 +06 +07|-4W.o -50 -60 -70|012323232323232323232321212121212121212121212121212|-1Pc4W.o eUnW.o 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2e00 1tX0 17b0 1ip0 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1cPu 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0|87e4","Asia/Brunei|LMT +0730 +08|-7D.E -7u -80|012|-1KITD.E gDc9.E|42e4","Asia/Kolkata|MMT IST +0630|-5l.a -5u -6u|012121|-2zOtl.a 1r2LP.a 1un0 HB0 7zX0|15e6","Asia/Chita|LMT +08 +09 +10|-7x.Q -80 -90 -a0|012323232323232323232321232323232323232323232323232323232323232312|-21Q7x.Q pAnx.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3re0|33e4","Asia/Choibalsan|LMT +07 +08 +10 +09|-7C -70 -80 -a0 -90|0123434343434343434343434343434343434343434343424242|-2APHC 2UkoC cKn0 1da0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 3Db0 h1f0 1cJ0 1cP0 1cJ0|38e3","Asia/Shanghai|CST CDT|-80 -90|01010101010101010101010101010|-23uw0 18n0 OjB0 Rz0 11d0 1wL0 A10 8HX0 1G10 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 aL0 1tU30 Rb0 1o10 11z0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0|23e6","Asia/Colombo|MMT +0530 +06 +0630|-5j.w -5u -60 -6u|01231321|-2zOtj.w 1rFbN.w 1zzu 7Apu 23dz0 11zu n3cu|22e5","Asia/Dhaka|HMT +0630 +0530 +06 +07|-5R.k -6u -5u -60 -70|0121343|-18LFR.k 1unn.k HB0 m6n0 2kxbu 1i00|16e6","Asia/Damascus|LMT EET EEST|-2p.c -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-21Jep.c Hep.c 17b0 1ip0 17b0 1ip0 17b0 1ip0 19X0 1xRB0 11X0 1oN0 10L0 1pB0 11b0 1oN0 10L0 1mp0 13X0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 1pd0 11b0 1oN0 Nb0 1AN0 Nb0 bcp0 19X0 1gp0 19X0 3ld0 1xX0 Vd0 1Bz0 Sp0 1vX0 10p0 1dz0 1cN0 1cL0 1db0 1db0 1g10 1an0 1ap0 1db0 1fd0 1db0 1cN0 1db0 1dd0 1db0 1cp0 1dz0 1c10 1dX0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1db0 1cN0 1db0 1cN0 19z0 1fB0 1qL0 11B0 1on0 Wp0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0|26e5","Asia/Dili|LMT +08 +09|-8m.k -80 -90|01212|-2le8m.k 1dnXm.k 1nfA0 Xld0|19e4","Asia/Dubai|LMT +04|-3F.c -40|01|-21JfF.c|39e5","Asia/Dushanbe|LMT +05 +06 +07|-4z.c -50 -60 -70|012323232323232323232321|-1Pc4z.c eUnz.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2hB0|76e4","Asia/Famagusta|LMT EET EEST +03|-2f.M -20 -30 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212312121212121212121212121212121212121212121|-1Vc2f.M 2a3cf.M 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 15U0 2Ks0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Asia/Gaza|EET EEST IST IDT|-20 -30 -20 -30|010101010101010101010101010101010123232323232323232323232323232320101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2o0 MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 11z0 1o10 14o0 1lA1 SKX 1xd1 MKX 1AN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1qo0 Xc0 1qo0|18e5","Asia/Hebron|EET EEST IST IDT|-20 -30 -20 -30|01010101010101010101010101010101012323232323232323232323232323232010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-1c2o0 MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 pBa0 Vz0 1oN0 11b0 1oO0 10N0 1pz0 10N0 1pb0 10N0 1pb0 10N0 1pb0 10N0 1pz0 10N0 1pb0 10N0 1pb0 11d0 1oL0 dW0 hfB0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 M10 C00 17c0 1io0 17c0 1io0 17c0 1o00 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 17c0 1io0 18N0 1bz0 19z0 1gp0 1610 1iL0 12L0 1mN0 14o0 1lc0 Tb0 1xd1 MKX bB0 cn0 1cN0 1a00 1fA0 1cL0 1cN0 1nX0 1210 1nA0 1210 1qL0 WN0 1qL0 WN0 1qL0 11c0 1on0 11B0 1o00 11A0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1nA0 1200 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 Xc0 1qo0 1200 1qo0 Xc0 1qo0|25e4","Asia/Ho_Chi_Minh|LMT PLMT +07 +08 +09|-76.E -76.u -70 -80 -90|0123423232|-2yC76.E bK00.a 1h7b6.u 5lz0 18o0 3Oq0 k5b0 aW00 BAM0|90e5","Asia/Hong_Kong|LMT HKT HKST HKWT JST|-7A.G -80 -90 -8u -90|0123412121212121212121212121212121212121212121212121212121212121212121|-2CFH0 1taO0 Hc0 xUu 9tBu 11z0 1tDu Rc0 1wo0 11A0 1cM0 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1nX0 U10 1tz0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|73e5","Asia/Hovd|LMT +06 +07 +08|-66.A -60 -70 -80|012323232323232323232323232323232323232323232323232|-2APG6.A 2Uko6.A cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|81e3","Asia/Irkutsk|IMT +07 +08 +09|-6V.5 -70 -80 -90|01232323232323232323232123232323232323232323232323232323232323232|-21zGV.5 pjXV.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Europe/Istanbul|IMT EET EEST +03 +04|-1U.U -20 -30 -30 -40|0121212121212121212121212121212121212121212121234312121212121212121212121212121212121212121212121212121212121212123|-2ogNU.U dzzU.U 11b0 8tB0 1on0 1410 1db0 19B0 1in0 3Rd0 Un0 1oN0 11b0 zSN0 CL0 mp0 1Vz0 1gN0 8yn0 1yp0 ML0 1kp0 17b0 1ip0 17b0 1fB0 19X0 1ip0 19X0 1ip0 17b0 qdB0 38L0 1jd0 Tz0 l6O0 11A0 WN0 1qL0 TB0 1tX0 U10 1tz0 11B0 1in0 17d0 z90 cne0 pb0 2Cp0 1800 14o0 1dc0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1a00 1fA0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WO0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 Xc0 1qo0 WM0 1qM0 11A0 1o00 1200 1nA0 11A0 1tA0 U00 15w0|13e6","Asia/Jakarta|BMT +0720 +0730 +09 +08 WIB|-77.c -7k -7u -90 -80 -70|01232425|-1Q0Tk luM0 mPzO 8vWu 6kpu 4PXu xhcu|31e6","Asia/Jayapura|LMT +09 +0930 WIT|-9m.M -90 -9u -90|0123|-1uu9m.M sMMm.M L4nu|26e4","Asia/Jerusalem|JMT IST IDT IDDT|-2k.E -20 -30 -40|01212121212121321212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-26Bek.E SyOk.E MM0 iM0 4JA0 10o0 1pA0 10M0 1pA0 16o0 1jA0 16o0 1jA0 3LA0 Eo0 oo0 1co0 1dA0 16o0 10M0 1jc0 1tA0 14o0 1cM0 1a00 11A0 1Nc0 Ao0 1Nc0 Ao0 1Ko0 LA0 1o00 WM0 EQK0 Db0 1fB0 Rb0 bXB0 gM0 8Q00 IM0 1wo0 TX0 1HB0 IL0 1s10 10n0 1o10 WL0 1zd0 On0 1ld0 11z0 1o10 14n0 1o10 14n0 1nd0 12n0 1nd0 Xz0 1q10 12n0 1hB0 1dX0 1ep0 1aL0 1eN0 17X0 1nf0 11z0 1tB0 19W0 1e10 17b0 1ep0 1gL0 18N0 1fz0 1eN0 17b0 1gq0 1gn0 19d0 1dz0 1c10 17X0 1hB0 1gn0 19d0 1dz0 1c10 17X0 1kp0 1dz0 1c10 1aL0 1eN0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0 10N0 1rz0 W10 1rz0 W10 1rz0 W10 1rz0 10N0 1oL0 10N0 1oL0|81e4","Asia/Kabul|+04 +0430|-40 -4u|01|-10Qs0|46e5","Asia/Kamchatka|LMT +11 +12 +13|-ay.A -b0 -c0 -d0|012323232323232323232321232323232323232323232323232323232323212|-1SLKy.A ivXy.A 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|18e4","Asia/Karachi|LMT +0530 +0630 +05 PKT PKST|-4s.c -5u -6u -50 -50 -60|012134545454|-2xoss.c 1qOKW.c 7zX0 eup0 LqMu 1fy00 1cL0 dK10 11b0 1610 1jX0|24e6","Asia/Urumqi|LMT +06|-5O.k -60|01|-1GgtO.k|32e5","Asia/Kathmandu|LMT +0530 +0545|-5F.g -5u -5J|012|-21JhF.g 2EGMb.g|12e5","Asia/Khandyga|LMT +08 +09 +10 +11|-92.d -80 -90 -a0 -b0|0123232323232323232323212323232323232323232323232343434343434343432|-21Q92.d pAp2.d 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 qK0 yN0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|66e2","Asia/Krasnoyarsk|LMT +06 +07 +08|-6b.q -60 -70 -80|01232323232323232323232123232323232323232323232323232323232323232|-21Hib.q prAb.q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|10e5","Asia/Kuala_Lumpur|SMT +07 +0720 +0730 +09 +08|-6T.p -70 -7k -7u -90 -80|0123435|-2Bg6T.p 17anT.p l5XE 17bO 8Fyu 1so1u|71e5","Asia/Kuching|LMT +0730 +08 +0820 +09|-7l.k -7u -80 -8k -90|0123232323232323242|-1KITl.k gDbP.k 6ynu AnE 1O0k AnE 1NAk AnE 1NAk AnE 1NAk AnE 1O0k AnE 1NAk AnE pAk 8Fz0|13e4","Asia/Macau|LMT CST +09 +10 CDT|-7y.a -80 -90 -a0 -90|012323214141414141414141414141414141414141414141414141414141414141414141|-2CFHy.a 1uqKy.a PX0 1kn0 15B0 11b0 4Qq0 1oM0 11c0 1ko0 1u00 11A0 1cM0 11c0 1o00 11A0 1o00 11A0 1oo0 1400 1o00 11A0 1o00 U00 1tA0 U00 1wo0 Rc0 1wru U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 Rd0 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 17d0 1cK0 1cO0 1cK0 1cO0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 s10 1Vz0 1cN0 1cL0 1cN0 1cL0 6fd0 14n0|57e4","Asia/Magadan|LMT +10 +11 +12|-a3.c -a0 -b0 -c0|012323232323232323232321232323232323232323232323232323232323232312|-1Pca3.c eUo3.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Cq0|95e3","Asia/Makassar|LMT MMT +08 +09 WITA|-7V.A -7V.A -80 -90 -80|01234|-21JjV.A vfc0 myLV.A 8ML0|15e5","Asia/Manila|PST PDT JST|-80 -90 -90|010201010|-1kJI0 AL0 cK10 65X0 mXB0 vX0 VK10 1db0|24e6","Asia/Nicosia|LMT EET EEST|-2d.s -20 -30|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1Vc2d.s 2a3cd.s 1cL0 1qp0 Xz0 19B0 19X0 1fB0 1db0 1cp0 1cL0 1fB0 19X0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1o30 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|32e4","Asia/Novokuznetsk|LMT +06 +07 +08|-5M.M -60 -70 -80|012323232323232323232321232323232323232323232323232323232323212|-1PctM.M eULM.M 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|55e4","Asia/Novosibirsk|LMT +06 +07 +08|-5v.E -60 -70 -80|0123232323232323232323212323212121212121212121212121212121212121212|-21Qnv.E pAFv.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 ml0 Os0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 4eN0|15e5","Asia/Omsk|LMT +05 +06 +07|-4R.u -50 -60 -70|01232323232323232323232123232323232323232323232323232323232323232|-224sR.u pMLR.u 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|12e5","Asia/Oral|LMT +03 +05 +06 +04|-3p.o -30 -50 -60 -40|01232323232323232424242424242424242424242424242|-1Pc3p.o eUop.o 23CK0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 1cM0 IM0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|27e4","Asia/Pontianak|LMT PMT +0730 +09 +08 WITA WIB|-7h.k -7h.k -7u -90 -80 -80 -70|012324256|-2ua7h.k XE00 munL.k 8Rau 6kpu 4PXu xhcu Wqnu|23e4","Asia/Pyongyang|LMT KST JST KST|-8n -8u -90 -90|012313|-2um8n 97XR 1lTzu 2Onc0 6BA0|29e5","Asia/Qostanay|LMT +04 +05 +06|-4e.s -40 -50 -60|012323232323232323232123232323232323232323232323|-1Pc4e.s eUoe.s 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0|","Asia/Qyzylorda|LMT +04 +05 +06|-4l.Q -40 -50 -60|01232323232323232323232323232323232323232323232|-1Pc4l.Q eUol.Q 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 3ao0 1EM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 zQl0|73e4","Asia/Rangoon|RMT +0630 +09|-6o.L -6u -90|0121|-21Jio.L SmnS.L 7j9u|48e5","Asia/Sakhalin|LMT +09 +11 +12 +10|-9u.M -90 -b0 -c0 -a0|01232323232323232323232423232323232424242424242424242424242424242|-2AGVu.M 1BoMu.M 1qFa0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 2pB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|58e4","Asia/Samarkand|LMT +04 +05 +06|-4r.R -40 -50 -60|01232323232323232323232|-1Pc4r.R eUor.R 23CL0 3Db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0|36e4","Asia/Seoul|LMT KST JST KST KDT KDT|-8r.Q -8u -90 -90 -a0 -9u|012343434343151515151515134343|-2um8r.Q 97XV.Q 1m1zu 6CM0 Fz0 1kN0 14n0 1kN0 14L0 1zd0 On0 69B0 2I0u OL0 1FB0 Rb0 1qN0 TX0 1tB0 TX0 1tB0 TX0 1tB0 TX0 2ap0 12FBu 11A0 1o00 11A0|23e6","Asia/Srednekolymsk|LMT +10 +11 +12|-ae.Q -a0 -b0 -c0|01232323232323232323232123232323232323232323232323232323232323232|-1Pcae.Q eUoe.Q 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|35e2","Asia/Taipei|CST JST CDT|-80 -90 -90|01020202020202020202020202020202020202020|-1iw80 joM0 1yo0 Tz0 1ip0 1jX0 1cN0 11b0 1oN0 11b0 1oN0 11b0 1oN0 11b0 10N0 1BX0 10p0 1pz0 10p0 1pz0 10p0 1db0 1dd0 1db0 1cN0 1db0 1cN0 1db0 1cN0 1db0 1BB0 ML0 1Bd0 ML0 uq10 1db0 1cN0 1db0 97B0 AL0|74e5","Asia/Tashkent|LMT +05 +06 +07|-4B.b -50 -60 -70|012323232323232323232321|-1Pc4B.b eUnB.b 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0|23e5","Asia/Tbilisi|TBMT +03 +04 +05|-2X.b -30 -40 -50|0123232323232323232323212121232323232323232323212|-1Pc2X.b 1jUnX.b WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cK0 1cL0 1cN0 1cL0 1cN0 2pz0 1cL0 1fB0 3Nz0 11B0 1nX0 11B0 1qL0 WN0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 An0 Os0 WM0|11e5","Asia/Tehran|LMT TMT +0330 +04 +05 +0430|-3p.I -3p.I -3u -40 -50 -4u|01234325252525252525252525252525252525252525252525252525252525252525252525252525252525252525252525252|-2btDp.I 1d3c0 1huLT.I TXu 1pz0 sN0 vAu 1cL0 1dB0 1en0 pNB0 UL0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 64p0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0 1cN0 1dz0 1cp0 1dz0 1cp0 1dz0 1cp0 1dz0|14e6","Asia/Thimphu|LMT +0530 +06|-5W.A -5u -60|012|-Su5W.A 1BGMs.A|79e3","Asia/Tokyo|JST JDT|-90 -a0|010101010|-QJJ0 Rc0 1lc0 14o0 1zc0 Oo0 1zc0 Oo0|38e6","Asia/Tomsk|LMT +06 +07 +08|-5D.P -60 -70 -80|0123232323232323232323212323232323232323232323212121212121212121212|-21NhD.P pxzD.P 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 co0 1bB0 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3Qp0|10e5","Asia/Ulaanbaatar|LMT +07 +08 +09|-77.w -70 -80 -90|012323232323232323232323232323232323232323232323232|-2APH7.w 2Uko7.w cKn0 1db0 1dd0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 6hD0 11z0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 kEp0 1cJ0 1cP0 1cJ0|12e5","Asia/Ust-Nera|LMT +08 +09 +12 +11 +10|-9w.S -80 -90 -c0 -b0 -a0|012343434343434343434345434343434343434343434343434343434343434345|-21Q9w.S pApw.S 23CL0 1d90 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 17V0 7zD0|65e2","Asia/Vladivostok|LMT +09 +10 +11|-8L.v -90 -a0 -b0|01232323232323232323232123232323232323232323232323232323232323232|-1SJIL.v itXL.v 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|60e4","Asia/Yakutsk|LMT +08 +09 +10|-8C.W -80 -90 -a0|01232323232323232323232123232323232323232323232323232323232323232|-21Q8C.W pAoC.W 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|28e4","Asia/Yekaterinburg|LMT PMT +04 +05 +06|-42.x -3J.5 -40 -50 -60|012343434343434343434343234343434343434343434343434343434343434343|-2ag42.x 7mQh.s qBvJ.5 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|14e5","Asia/Yerevan|LMT +03 +04 +05|-2W -30 -40 -50|0123232323232323232323212121212323232323232323232323232323232|-1Pc2W 1jUnW WCL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 2pB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 4RX0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0|13e5","Atlantic/Azores|HMT -02 -01 +00 WET|1S.w 20 10 0 0|0121212121212121212121212121212121212121212123212321232123212121212121212121212121212121212121212121232323232323232323232323232323234323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-2ldW0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cL0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|25e4","Atlantic/Bermuda|BMT BST AST ADT|4j.i 3j.i 40 30|010102323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-28p7E.G 1bb0 1i10 11X0 ru30 thbE.G 1PX0 11B0 1tz0 Rd0 1zb0 Op0 1zb0 3I10 Lz0 1EN0 FX0 1HB0 FX0 1Kp0 Db0 1Kp0 Db0 1Kp0 FX0 93d0 11z0 GAp0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|65e3","Atlantic/Canary|LMT -01 WET WEST|11.A 10 0 -10|01232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-1UtaW.o XPAW.o 1lAK0 1a10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Atlantic/Cape_Verde|LMT -02 -01|1y.4 20 10|01212|-2ldW0 1eEo0 7zX0 1djf0|50e4","Atlantic/Faroe|LMT WET WEST|r.4 0 -10|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2uSnw.U 2Wgow.U 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|49e3","Atlantic/Madeira|FMT -01 +00 +01 WET WEST|17.A 10 0 -10 0 -10|0121212121212121212121212121212121212121212123212321232123212121212121212121212121212121212121212121454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2ldX0 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 qIl0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e4","Atlantic/Reykjavik|LMT -01 +00 GMT|1s 10 0 0|012121212121212121212121212121212121212121212121212121212121212121213|-2uWmw mfaw 1Bd0 ML0 1LB0 Cn0 1LB0 3fX0 C10 HrX0 1cO0 LB0 1EL0 LA0 1C00 Oo0 1wo0 Rc0 1wo0 Rc0 1wo0 Rc0 1zc0 Oo0 1zc0 14o0 1lc0 14o0 1lc0 14o0 1o00 11A0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1lc0 14o0 1o00 14o0|12e4","Atlantic/South_Georgia|-02|20|0||30","Atlantic/Stanley|SMT -04 -03 -02|3P.o 40 30 20|012121212121212323212121212121212121212121212121212121212121212121212|-2kJw8.A 12bA8.A 19X0 1fB0 19X0 1ip0 19X0 1fB0 19X0 1fB0 19X0 1fB0 Cn0 1Cc10 WL0 1qL0 U10 1tz0 2mN0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 U10 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1tz0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qL0 WN0 1qN0 U10 1wn0 Rd0 1wn0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1tz0 U10 1wn0 U10 1tz0 U10 1tz0 U10|21e2","Australia/Sydney|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|40e5","Australia/Adelaide|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 WM0 1qM0 Rc0 1zc0 U00 1tA0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|11e5","Australia/Brisbane|AEST AEDT|-a0 -b0|01010101010101010|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0|20e5","Australia/Broken_Hill|ACST ACDT|-9u -au|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 14o0 1o00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1tA0 WM0 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|18e3","Australia/Hobart|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-29E80 1a00 1qM0 Oo0 1zc0 Oo0 TAo0 yM0 1cM0 1cM0 1fA0 1a00 VfA0 1cM0 1o00 Rc0 1wo0 Rc0 1wo0 U00 1wo0 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 11A0 1qM0 WM0 1qM0 Oo0 1zc0 Oo0 1zc0 Oo0 1wo0 WM0 1tA0 WM0 1tA0 U00 1tA0 U00 1tA0 11A0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 11A0 1o00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|21e4","Australia/Darwin|ACST ACDT|-9u -au|010101010|-293ju xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00|12e4","Australia/Eucla|+0845 +0945|-8J -9J|0101010101010101010|-293iJ xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|368","Australia/Lord_Howe|AEST +1030 +1130 +11|-a0 -au -bu -b0|0121212121313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313131313|raC0 1zdu Rb0 1zd0 On0 1zd0 On0 1zd0 On0 1zd0 TXu 1qMu WLu 1tAu WLu 1tAu TXu 1tAu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu 11zu 1o0u 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 11Au 1nXu 1qMu 11zu 1o0u 11zu 1o0u 11zu 1qMu WLu 1qMu 11zu 1o0u WLu 1qMu 14nu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1fzu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1cMu 1cLu 1fAu 1cLu 1cMu 1cLu 1cMu|347","Australia/Lindeman|AEST AEDT|-a0 -b0|010101010101010101010|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 H1A0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0|10","Australia/Melbourne|AEST AEDT|-a0 -b0|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101|-293k0 xc0 10jc0 yM0 1cM0 1cM0 1fA0 1a00 17c00 LA0 1C00 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 U00 1qM0 WM0 1qM0 11A0 1tA0 U00 1tA0 U00 1tA0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 11A0 1o00 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 14o0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|39e5","Australia/Perth|AWST AWDT|-80 -90|0101010101010101010|-293i0 xc0 10jc0 yM0 1cM0 1cM0 1gSo0 Oo0 l5A0 Oo0 iJA0 G00 zU00 IM0 1qM0 11A0 1o00 11A0|18e5","CET|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Pacific/Easter|EMT -07 -06 -05|7h.s 70 60 50|012121212121212121212121212123232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323|-1uSgG.w 1s4IG.w WL0 1zd0 On0 1ip0 11z0 1o10 11z0 1qN0 WL0 1ld0 14n0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 2pA0 11z0 1o10 11z0 1qN0 WL0 1qN0 WL0 1qN0 1cL0 1cN0 11z0 1o10 11z0 1qN0 WL0 1fB0 19X0 1qN0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1ip0 1fz0 1fB0 11z0 1qN0 WL0 1qN0 WL0 1qN0 WL0 1qN0 11z0 1o10 11z0 1o10 11z0 1qN0 WL0 1qN0 17b0 1ip0 11z0 1o10 19X0 1fB0 1nX0 G10 1EL0 Op0 1zb0 Rd0 1wn0 Rd0 46n0 Ap0 1Nb0 Ap0 1Nb0 Ap0 1zb0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1nX0 11B0 1qL0 WN0 1qL0 11B0 1nX0 11B0|30e2","CST6CDT|CST CDT CWT CPT|60 50 50 50|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261s0 1nX0 11B0 1nX0 SgN0 8x30 iw0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","EET|EET EEST|-20 -30|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","Europe/Dublin|DMT IST GMT BST IST|p.l -y.D 0 -10 -10|01232323232324242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242424242|-2ax9y.D Rc0 1fzy.D 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 g600 14o0 1wo0 17c0 1io0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","EST|EST|50|0||","EST5EDT|EST EDT EWT EPT|50 40 40 40|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261t0 1nX0 11B0 1nX0 SgN0 8x40 iv0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","Etc/GMT-0|GMT|0|0||","Etc/GMT-1|+01|-10|0||","Etc/GMT-11|+11|-b0|0||","Pacific/Tarawa|+12|-c0|0||29e3","Etc/GMT-13|+13|-d0|0||","Etc/GMT-14|+14|-e0|0||","Etc/GMT-2|+02|-20|0||","Etc/GMT-3|+03|-30|0||","Etc/GMT-4|+04|-40|0||","Etc/GMT-5|+05|-50|0||","Etc/GMT-6|+06|-60|0||","Indian/Christmas|+07|-70|0||21e2","Etc/GMT-8|+08|-80|0||","Pacific/Palau|+09|-90|0||21e3","Etc/GMT+1|-01|10|0||","Etc/GMT+10|-10|a0|0||","Etc/GMT+11|-11|b0|0||","Etc/GMT+12|-12|c0|0||","Etc/GMT+3|-03|30|0||","Etc/GMT+4|-04|40|0||","Etc/GMT+5|-05|50|0||","Etc/GMT+6|-06|60|0||","Etc/GMT+7|-07|70|0||","Etc/GMT+8|-08|80|0||","Etc/GMT+9|-09|90|0||","Etc/UTC|UTC|0|0||","Europe/Amsterdam|AMT NST +0120 +0020 CEST CET|-j.w -1j.w -1k -k -20 -10|010101010101010101010101010101010101010101012323234545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545|-2aFcj.w 11b0 1iP0 11A0 1io0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1co0 1io0 1yo0 Pc0 1a00 1fA0 1Bc0 Mo0 1tc0 Uo0 1tA0 U00 1uo0 W00 1s00 VA0 1so0 Vc0 1sM0 UM0 1wo0 Rc0 1u00 Wo0 1rA0 W00 1s00 VA0 1sM0 UM0 1w00 fV0 BCX.w 1tA0 U00 1u00 Wo0 1sm0 601k WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|16e5","Europe/Andorra|WET CET CEST|0 -10 -20|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-UBA0 1xIN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|79e3","Europe/Astrakhan|LMT +03 +04 +05|-3c.c -30 -40 -50|012323232323232323212121212121212121212121212121212121212121212|-1Pcrc.c eUMc.c 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|10e5","Europe/Athens|AMT EET EEST CEST CET|-1y.Q -20 -30 -20 -10|012123434121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2a61x.Q CNbx.Q mn0 kU10 9b0 3Es0 Xa0 1fb0 1dd0 k3X0 Nz0 SCp0 1vc0 SO0 1cM0 1a00 1ao0 1fc0 1a10 1fG0 1cg0 1dX0 1bX0 1cQ0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|35e5","Europe/London|GMT BST BDST|0 -10 -20|0101010101010101010101010101010101010101010101010121212121210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1a00 1qM0 WM0 1qM0 11A0 1o00 WM0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1tA0 IM0 90o0 U00 1tA0 U00 1tA0 U00 1tA0 U00 1tA0 WM0 1qM0 WM0 1qM0 WM0 1tA0 U00 1tA0 U00 1tA0 11z0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1o00 14o0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|10e6","Europe/Belgrade|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19RC0 3IP0 WM0 1fA0 1cM0 1cM0 1rc0 Qo0 1vmo0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Berlin|CET CEST CEMT|-10 -20 -30|01010101010101210101210101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 kL0 Nc0 m10 WM0 1ao0 1cp0 dX0 jz0 Dd0 1io0 17c0 1fA0 1a00 1ehA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e5","Europe/Prague|CET CEST GMT|-10 -20 0|01010101010101010201010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 1cM0 1qM0 11c0 mp0 xA0 mn0 17c0 1io0 17c0 1fc0 1ao0 1bNc0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|13e5","Europe/Brussels|WET CET CEST WEST|0 -10 -20 -10|0121212103030303030303030303030303030303030303030303212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ehc0 3zX0 11c0 1iO0 11A0 1o00 11A0 my0 Ic0 1qM0 Rc0 1EM0 UM0 1u00 10o0 1io0 1io0 17c0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a30 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 y00 5Wn0 WM0 1fA0 1cM0 16M0 1iM0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|21e5","Europe/Bucharest|BMT EET EEST|-1I.o -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1xApI.o 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Axc0 On0 1fA0 1a10 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|19e5","Europe/Budapest|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 1oo0 11c0 1lc0 17c0 O1V0 3Nf0 WM0 1fA0 1cM0 1cM0 1oJ0 1dd0 1020 1fX0 1cp0 1cM0 1cM0 1cM0 1fA0 1a00 bhy0 Rb0 1wr0 Rc0 1C00 LA0 1C00 LA0 SNW0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cO0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5","Europe/Zurich|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-19Lc0 11A0 1o00 11A0 1xG10 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e4","Europe/Chisinau|CMT BMT EET EEST CEST CET MSK MSD|-1T -1I.o -20 -30 -20 -10 -30 -40|012323232323232323234545467676767676767676767323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232323232|-26jdT wGMa.A 20LI.o RA0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 27A0 2en0 39g0 WM0 1fA0 1cM0 V90 1t7z0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 gL0 WO0 1cM0 1cM0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11D0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|67e4","Europe/Copenhagen|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 Tz0 VuO0 60q0 WM0 1fA0 1cM0 1cM0 1cM0 S00 1HA0 Nc0 1C00 Dc0 1Nc0 Ao0 1h5A0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Gibraltar|GMT BST BDST CET CEST|0 -10 -20 -10 -20|010101010101010101010101010101010101010101010101012121212121010121010101010101010101034343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-2axa0 Rc0 1fA0 14M0 1fc0 1g00 1co0 1dc0 1co0 1oo0 1400 1dc0 19A0 1io0 1io0 WM0 1o00 14o0 1o00 17c0 1io0 17c0 1fA0 1a00 1lc0 17c0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1cM0 1io0 17c0 1fA0 1a00 1io0 17c0 1io0 17c0 1fA0 1a00 1io0 1qM0 Dc0 2Rz0 Dc0 1zc0 Oo0 1zc0 Rc0 1wo0 17c0 1iM0 FA0 xB0 1fA0 1a00 14o0 bb0 LA0 xB0 Rc0 1wo0 11A0 1o00 17c0 1fA0 1a00 1fA0 1cM0 1fA0 1a00 17c0 1fA0 1a00 1io0 17c0 1lc0 17c0 1fA0 10Jz0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|30e3","Europe/Helsinki|HMT EET EEST|-1D.N -20 -30|0121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-1WuND.N OULD.N 1dA0 1xGq0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Kaliningrad|CET CEST EET EEST MSK MSD +03|-10 -20 -20 -30 -30 -40 -30|01010101010101232454545454545454543232323232323232323232323232323232323232323262|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 390 7A0 1en0 12N0 1pbb0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|44e4","Europe/Kiev|KMT EET MSK CEST CET MSD EEST|-22.4 -20 -30 -20 -10 -40 -30|0123434252525252525252525256161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc22.4 eUo2.4 rnz0 2Hg0 WM0 1fA0 da0 1v4m0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 Db0 3220 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|34e5","Europe/Kirov|LMT +03 +04 +05|-3i.M -30 -40 -50|01232323232323232321212121212121212121212121212121212121212121|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|48e4","Europe/Lisbon|LMT WET WEST WEMT CET CEST|A.J 0 -10 -20 -10 -20|01212121212121212121212121212121212121212121232123212321232121212121212121212121212121212121212121214121212121212121212121212121212124545454212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2le00 aPX0 Sp0 LX0 1vc0 Tc0 1uM0 SM0 1vc0 Tc0 1vc0 SM0 1vc0 6600 1co0 3E00 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 3I00 17c0 1cM0 1cM0 3Fc0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 1tA0 1cM0 1dc0 1400 gL0 IM0 s10 U00 dX0 Rc0 pd0 Rc0 gL0 Oo0 pd0 Rc0 gL0 Oo0 pd0 14o0 1cM0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 pvy0 1cM0 1cM0 1fA0 1cM0 1cM0 1cN0 1cL0 1cN0 1cM0 1cM0 1cM0 1cM0 1cN0 1cL0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|27e5","Europe/Luxembourg|LMT CET CEST WET WEST WEST WET|-o.A -10 -20 0 -10 -20 -10|0121212134343434343434343434343434343434343434343434565651212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2DG0o.A t6mo.A TB0 1nX0 Up0 1o20 11A0 rW0 CM0 1qP0 R90 1EO0 UK0 1u20 10m0 1ip0 1in0 17e0 19W0 1fB0 1db0 1cp0 1in0 17d0 1fz0 1a10 1in0 1a10 1in0 17f0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Dc0 vA0 60L0 WM0 1fA0 1cM0 17c0 1io0 16M0 1C00 Uo0 1eeo0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Europe/Madrid|WET WEST WEMT CET CEST|0 -10 -20 -10 -20|010101010101010101210343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343|-25Td0 19B0 1cL0 1dd0 b1z0 18p0 3HX0 17d0 1fz0 1a10 1io0 1a00 1in0 17d0 iIn0 Hd0 1cL0 bb0 1200 2s20 14n0 5aL0 Mp0 1vz0 17d0 1in0 17d0 1in0 17d0 1in0 17d0 6hX0 11B0 XHX0 1a10 1fz0 1a10 19X0 1cN0 1fz0 1a10 1fC0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|62e5","Europe/Malta|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1co0 17c0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1co0 1cM0 1lA0 Xc0 1qq0 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1o10 11z0 1iN0 19z0 1fB0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4","Europe/Minsk|MMT EET MSK CEST CET MSD EEST +03|-1O -20 -30 -20 -10 -40 -30 -30|01234343252525252525252525261616161616161616161616161616161616161617|-1Pc1O eUnO qNX0 3gQ0 WM0 1fA0 1cM0 Al0 1tsn0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 3Fc0 1cN0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0|19e5","Europe/Monaco|PMT WET WEST WEMT CET CEST|-9.l 0 -10 -20 -10 -20|01212121212121212121212121212121212121212121212121232323232345454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-2n5c9.l cFX9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 2RV0 11z0 11B0 1ze0 WM0 1fA0 1cM0 1fa0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|38e3","Europe/Moscow|MMT MMT MST MDST MSD MSK +05 EET EEST MSK|-2u.h -2v.j -3v.j -4v.j -40 -30 -50 -20 -30 -40|012132345464575454545454545454545458754545454545454545454545454545454545454595|-2ag2u.h 2pyW.W 1bA0 11X0 GN0 1Hb0 c4v.j ik0 3DA0 dz0 15A0 c10 2q10 iM10 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0|16e6","Europe/Paris|PMT WET WEST CEST CET WEMT|-9.l 0 -10 -20 -10 -20|0121212121212121212121212121212121212121212121212123434352543434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434343434|-2nco9.l cNb9.l HA0 19A0 1iM0 11c0 1oo0 Wo0 1rc0 QM0 1EM0 UM0 1u00 10o0 1io0 1wo0 Rc0 1a00 1fA0 1cM0 1cM0 1io0 17c0 1fA0 1a00 1io0 1a00 1io0 17c0 1fA0 1a00 1io0 17c0 1cM0 1cM0 1a00 1io0 1cM0 1cM0 1a00 1fA0 1io0 17c0 1cM0 1cM0 1a00 1fA0 1io0 1qM0 Df0 Ik0 5M30 WM0 1fA0 1cM0 Vx0 hB0 1aq0 16M0 1ekn0 1cL0 1fC0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e6","Europe/Riga|RMT LST EET MSK CEST CET MSD EEST|-1A.y -2A.y -20 -30 -20 -10 -40 -30|010102345454536363636363636363727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272727272|-25TzA.y 11A0 1iM0 ko0 gWm0 yDXA.y 2bX0 3fE0 WM0 1fA0 1cM0 1cM0 4m0 1sLy0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cN0 1o00 11A0 1o00 11A0 1qM0 3oo0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|64e4","Europe/Rome|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2arB0 Lz0 1cN0 1db0 1410 1on0 Wp0 1qL0 17d0 1cL0 M3B0 5M20 WM0 1fA0 1cM0 16M0 1iM0 16m0 1de0 1lc0 14m0 1lc0 WO0 1qM0 GTW0 On0 1C10 LA0 1C00 LA0 1EM0 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1C00 LA0 1zc0 Oo0 1C00 LA0 1C00 LA0 1zc0 Oo0 1C00 Oo0 1zc0 Oo0 1fC0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|39e5","Europe/Samara|LMT +03 +04 +05|-3k.k -30 -40 -50|0123232323232323232121232323232323232323232323232323232323212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2y10 14m0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 2sp0 WM0|12e5","Europe/Saratov|LMT +03 +04 +05|-34.i -30 -40 -50|012323232323232321212121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 5810|","Europe/Simferopol|SMT EET MSK CEST CET MSD EEST MSK|-2g -20 -30 -20 -10 -40 -30 -40|012343432525252525252525252161616525252616161616161616161616161616161616172|-1Pc2g eUog rEn0 2qs0 WM0 1fA0 1cM0 3V0 1u0L0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 4eL0 1cL0 1cN0 1cL0 1cN0 dX0 WL0 1cN0 1cL0 1fB0 1o30 11B0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11z0 1nW0|33e4","Europe/Sofia|EET CET CEST EEST|-20 -10 -20 -30|01212103030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030303030|-168L0 WM0 1fA0 1cM0 1cM0 1cN0 1mKH0 1dd0 1fb0 1ap0 1fb0 1a20 1fy0 1a30 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cK0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 1nX0 11E0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|12e5","Europe/Stockholm|CET CEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2azC0 TB0 2yDe0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|15e5","Europe/Tallinn|TMT CET CEST EET MSK MSD EEST|-1D -10 -20 -20 -30 -40 -30|012103421212454545454545454546363636363636363636363636363636363636363636363636363636363636363636363636363636363636363636363|-26oND teD 11A0 1Ta0 4rXl KSLD 2FX0 2Jg0 WM0 1fA0 1cM0 18J0 1sTX0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o10 11A0 1qM0 5QM0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|41e4","Europe/Tirane|LMT CET CEST|-1j.k -10 -20|01212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2glBj.k 14pcj.k 5LC0 WM0 4M0 1fCK0 10n0 1op0 11z0 1pd0 11z0 1qN0 WL0 1qp0 Xb0 1qp0 Xb0 1qp0 11z0 1lB0 11z0 1qN0 11z0 1iN0 16n0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|42e4","Europe/Ulyanovsk|LMT +03 +04 +05 +02|-3d.A -30 -40 -50 -20|01232323232323232321214121212121212121212121212121212121212121212|-22WM0 qH90 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1fA0 2pB0 IM0 rX0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 3rd0|13e5","Europe/Uzhgorod|CET CEST MSK MSD EET EEST|-10 -20 -30 -40 -20 -30|010101023232323232323232320454545454545454545454545454545454545454545454545454545454545454545454545454545454545454545454|-1cqL0 6i00 WM0 1fA0 1cM0 1ml0 1Cp0 1r3W0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1Q00 1Nf0 2pw0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|11e4","Europe/Vienna|CET CEST|-10 -20|0101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 3KM0 14o0 LA00 6i00 WM0 1fA0 1cM0 1cM0 1cM0 400 2qM0 1ao0 1co0 1cM0 1io0 17c0 1gHa0 19X0 1cP0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|18e5","Europe/Vilnius|WMT KMT CET EET MSK CEST MSD EEST|-1o -1z.A -10 -20 -30 -20 -40 -30|012324525254646464646464646473737373737373737352537373737373737373737373737373737373737373737373737373737373737373737373|-293do 6ILM.o 1Ooz.A zz0 Mfd0 29W0 3is0 WM0 1fA0 1cM0 LV0 1tgL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11B0 1o00 11A0 1qM0 8io0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|54e4","Europe/Volgograd|LMT +03 +04 +05|-2V.E -30 -40 -50|0123232323232323212121212121212121212121212121212121212121212121|-21IqV.E psLV.E 23CL0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 2pB0 1cM0 1cM0 1cM0 1fA0 1cM0 3Co0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 8Hz0 9Jd0 5gn0|10e5","Europe/Warsaw|WMT CET CEST EET EEST|-1o -10 -20 -20 -30|012121234312121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121|-2ctdo 1LXo 11d0 1iO0 11A0 1o00 11A0 1on0 11A0 6zy0 HWP0 5IM0 WM0 1fA0 1cM0 1dz0 1mL0 1en0 15B0 1aq0 1nA0 11A0 1io0 17c0 1fA0 1a00 iDX0 LA0 1cM0 1cM0 1C00 Oo0 1cM0 1cM0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1C00 LA0 uso0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cN0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|17e5","Europe/Zaporozhye|+0220 EET MSK CEST CET MSD EEST|-2k -20 -30 -20 -10 -40 -30|01234342525252525252525252526161616161616161616161616161616161616161616161616161616161616161616161616161616161616161616161|-1Pc2k eUok rdb0 2RE0 WM0 1fA0 8m0 1v9a0 1db0 1cN0 1db0 1cN0 1db0 1dd0 1cO0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cK0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cQ0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|77e4","HST|HST|a0|0||","Indian/Chagos|LMT +05 +06|-4N.E -50 -60|012|-2xosN.E 3AGLN.E|30e2","Indian/Cocos|+0630|-6u|0||596","Indian/Kerguelen|-00 +05|0 -50|01|-MG00|130","Indian/Mahe|LMT +04|-3F.M -40|01|-2xorF.M|79e3","Indian/Maldives|MMT +05|-4S -50|01|-olgS|35e4","Indian/Mauritius|LMT +04 +05|-3O -40 -50|012121|-2xorO 34unO 14L0 12kr0 11z0|15e4","Indian/Reunion|LMT +04|-3F.Q -40|01|-2mDDF.Q|84e4","Pacific/Kwajalein|+11 +10 +09 -12 +12|-b0 -a0 -90 c0 -c0|012034|-1kln0 akp0 6Up0 12ry0 Wan0|14e3","MET|MET MEST|-10 -20|01010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-2aFe0 11d0 1iO0 11A0 1o00 11A0 Qrc0 6i00 WM0 1fA0 1cM0 1cM0 1cM0 16M0 1gMM0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|","MST|MST|70|0||","MST7MDT|MST MDT MWT MPT|70 60 60 60|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261r0 1nX0 11B0 1nX0 SgN0 8x20 ix0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","Pacific/Chatham|+1215 +1245 +1345|-cf -cJ -dJ|012121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212121212|-WqAf 1adef IM0 1C00 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Oo0 1zc0 Rc0 1zc0 Oo0 1qM0 14o0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1lc0 14o0 1lc0 14o0 1lc0 17c0 1io0 17c0 1io0 17c0 1io0 17c0 1io0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1io0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00|600","Pacific/Apia|LMT -1130 -11 -10 +14 +13|bq.U bu b0 a0 -e0 -d0|01232345454545454545454545|-2nDMx.4 1yW03.4 2rRbu 1ff0 1a00 CI0 AQ0 1cM0 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1a00 1fA0 1cM0 1fA0 1a00 1fA0 1a00 1fA0|37e3","Pacific/Bougainville|+10 +09 +11|-a0 -90 -b0|0102|-16Wy0 7CN0 2MQp0|18e4","Pacific/Chuuk|+10 +09|-a0 -90|01010|-2ewy0 axB0 RVX0 axd0|49e3","Pacific/Efate|LMT +11 +12|-bd.g -b0 -c0|012121212121212121212121|-2l9nd.g 2uNXd.g Dc0 n610 1cL0 1cN0 1cL0 1fB0 19X0 1fB0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1fB0 Lz0 1Nd0 An0|66e3","Pacific/Enderbury|-00 -12 -11 +13|0 c0 b0 -d0|0123|-1iIo0 1GsA0 B7X0|1","Pacific/Fakaofo|-11 +13|b0 -d0|01|1Gfn0|483","Pacific/Fiji|LMT +12 +13|-bT.I -c0 -d0|01212121212121212121212121212121212121212121212121212121212121|-2bUzT.I 3m8NT.I LA0 1EM0 IM0 nJc0 LA0 1o00 Rc0 1wo0 Ao0 1Nc0 Ao0 1Q00 xz0 1SN0 uM0 1SM0 uM0 1VA0 s00 1VA0 s00 1VA0 s00 20o0 pc0 2hc0 bc0 4q00 pc0 20o0 pc0 20o0 pc0 20o0 s00 1VA0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 20o0 pc0 20o0 pc0 20o0 pc0 20o0 pc0 20o0 s00 1VA0 s00|88e4","Pacific/Galapagos|LMT -05 -06|5W.o 50 60|01212|-1yVS1.A 2dTz1.A gNd0 rz0|25e3","Pacific/Gambier|LMT -09|8X.M 90|01|-2jof0.c|125","Pacific/Guadalcanal|LMT +11|-aD.M -b0|01|-2joyD.M|11e4","Pacific/Guam|GST +09 GDT ChST|-a0 -90 -b0 -a0|01020202020202020203|-18jK0 6pB0 AhB0 3QL0 g2p0 3p91 WOX rX0 1zd0 Rb0 1wp0 Rb0 5xd0 rX0 5sN0 zb1 1C0X On0 ULb0|17e4","Pacific/Honolulu|HST HDT HWT HPT HST|au 9u 9u 9u a0|0102304|-1thLu 8x0 lef0 8wWu iAu 46p0|37e4","Pacific/Kiritimati|-1040 -10 +14|aE a0 -e0|012|nIaE B7Xk|51e2","Pacific/Kosrae|+11 +09 +10 +12|-b0 -90 -a0 -c0|01021030|-2ewz0 axC0 HBy0 akp0 axd0 WOK0 1bdz0|66e2","Pacific/Majuro|+11 +09 +10 +12|-b0 -90 -a0 -c0|0102103|-2ewz0 axC0 HBy0 akp0 6RB0 12um0|28e3","Pacific/Marquesas|LMT -0930|9i 9u|01|-2joeG|86e2","Pacific/Pago_Pago|LMT SST|bm.M b0|01|-2nDMB.c|37e2","Pacific/Nauru|LMT +1130 +09 +12|-b7.E -bu -90 -c0|01213|-1Xdn7.E QCnB.E 7mqu 1lnbu|10e3","Pacific/Niue|LMT -1120 -11|bj.E bk b0|012|-FScE.k suo0.k|12e2","Pacific/Norfolk|+1112 +1130 +1230 +11 +12|-bc -bu -cu -b0 -c0|012134343434343434343434343434343434343434|-Kgbc W01G Oo0 1COo0 9Jcu 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0|25e4","Pacific/Noumea|LMT +11 +12|-b5.M -b0 -c0|01212121|-2l9n5.M 2EqM5.M xX0 1PB0 yn0 HeP0 Ao0|98e3","Pacific/Pitcairn|-0830 -08|8u 80|01|18Vku|56","Pacific/Pohnpei|+11 +09 +10|-b0 -90 -a0|010210|-2ewz0 axC0 HBy0 akp0 axd0|34e3","Pacific/Rarotonga|LMT -1030 -0930 -10|aD.4 au 9u a0|0123232323232323232323232323|-FSdk.U 13tbO.U IL0 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Onu 1zcu Rbu 1zcu Onu 1zcu Onu 1zcu Onu|13e3","Pacific/Tahiti|LMT -10|9W.g a0|01|-2joe1.I|18e4","Pacific/Tongatapu|LMT +1220 +13 +14|-cj.c -ck -d0 -e0|01232323232|-XbMj.c BgLX.c 1yndk 15A0 1wo0 xz0 1Q10 xz0 zWN0 s00|75e3","PST8PDT|PST PDT PWT PPT|80 70 70 70|010102301010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|-261q0 1nX0 11B0 1nX0 SgN0 8x10 iy0 QwN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1cN0 1cL0 1cN0 1cL0 s10 1Vz0 LB0 1BX0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 1cN0 1fz0 1a10 1fz0 1cN0 1cL0 1cN0 1cL0 1cN0 1cL0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 14p0 1lb0 14p0 1lb0 14p0 1nX0 11B0 1nX0 11B0 1nX0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Rd0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0 Op0 1zb0|","WET|WET WEST|0 -10|010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010101010|hDB0 1a00 1fA0 1cM0 1cM0 1cM0 1fA0 1a00 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1cM0 1fA0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00 11A0 1qM0 WM0 1qM0 WM0 1qM0 WM0 1qM0 11A0 1o00 11A0 1o00|"],"links":["Africa/Abidjan|Africa/Accra","Africa/Abidjan|Africa/Bamako","Africa/Abidjan|Africa/Banjul","Africa/Abidjan|Africa/Conakry","Africa/Abidjan|Africa/Dakar","Africa/Abidjan|Africa/Freetown","Africa/Abidjan|Africa/Lome","Africa/Abidjan|Africa/Nouakchott","Africa/Abidjan|Africa/Ouagadougou","Africa/Abidjan|Africa/Timbuktu","Africa/Abidjan|Atlantic/St_Helena","Africa/Cairo|Egypt","Africa/Johannesburg|Africa/Maseru","Africa/Johannesburg|Africa/Mbabane","Africa/Lagos|Africa/Bangui","Africa/Lagos|Africa/Brazzaville","Africa/Lagos|Africa/Douala","Africa/Lagos|Africa/Kinshasa","Africa/Lagos|Africa/Libreville","Africa/Lagos|Africa/Luanda","Africa/Lagos|Africa/Malabo","Africa/Lagos|Africa/Niamey","Africa/Lagos|Africa/Porto-Novo","Africa/Maputo|Africa/Blantyre","Africa/Maputo|Africa/Bujumbura","Africa/Maputo|Africa/Gaborone","Africa/Maputo|Africa/Harare","Africa/Maputo|Africa/Kigali","Africa/Maputo|Africa/Lubumbashi","Africa/Maputo|Africa/Lusaka","Africa/Nairobi|Africa/Addis_Ababa","Africa/Nairobi|Africa/Asmara","Africa/Nairobi|Africa/Asmera","Africa/Nairobi|Africa/Dar_es_Salaam","Africa/Nairobi|Africa/Djibouti","Africa/Nairobi|Africa/Kampala","Africa/Nairobi|Africa/Mogadishu","Africa/Nairobi|Indian/Antananarivo","Africa/Nairobi|Indian/Comoro","Africa/Nairobi|Indian/Mayotte","Africa/Tripoli|Libya","America/Adak|America/Atka","America/Adak|US/Aleutian","America/Anchorage|US/Alaska","America/Argentina/Buenos_Aires|America/Buenos_Aires","America/Argentina/Catamarca|America/Argentina/ComodRivadavia","America/Argentina/Catamarca|America/Catamarca","America/Argentina/Cordoba|America/Cordoba","America/Argentina/Cordoba|America/Rosario","America/Argentina/Jujuy|America/Jujuy","America/Argentina/Mendoza|America/Mendoza","America/Chicago|US/Central","America/Denver|America/Shiprock","America/Denver|Navajo","America/Denver|US/Mountain","America/Detroit|US/Michigan","America/Edmonton|Canada/Mountain","America/Fort_Wayne|America/Indiana/Indianapolis","America/Fort_Wayne|America/Indianapolis","America/Fort_Wayne|US/East-Indiana","America/Godthab|America/Nuuk","America/Halifax|Canada/Atlantic","America/Havana|Cuba","America/Indiana/Knox|America/Knox_IN","America/Indiana/Knox|US/Indiana-Starke","America/Jamaica|Jamaica","America/Kentucky/Louisville|America/Louisville","America/Los_Angeles|US/Pacific","America/Manaus|Brazil/West","America/Mazatlan|Mexico/BajaSur","America/Mexico_City|Mexico/General","America/New_York|US/Eastern","America/Noronha|Brazil/DeNoronha","America/Panama|America/Atikokan","America/Panama|America/Cayman","America/Panama|America/Coral_Harbour","America/Phoenix|America/Creston","America/Phoenix|US/Arizona","America/Puerto_Rico|America/Anguilla","America/Puerto_Rico|America/Antigua","America/Puerto_Rico|America/Aruba","America/Puerto_Rico|America/Blanc-Sablon","America/Puerto_Rico|America/Curacao","America/Puerto_Rico|America/Dominica","America/Puerto_Rico|America/Grenada","America/Puerto_Rico|America/Guadeloupe","America/Puerto_Rico|America/Kralendijk","America/Puerto_Rico|America/Lower_Princes","America/Puerto_Rico|America/Marigot","America/Puerto_Rico|America/Montserrat","America/Puerto_Rico|America/Port_of_Spain","America/Puerto_Rico|America/St_Barthelemy","America/Puerto_Rico|America/St_Kitts","America/Puerto_Rico|America/St_Lucia","America/Puerto_Rico|America/St_Thomas","America/Puerto_Rico|America/St_Vincent","America/Puerto_Rico|America/Tortola","America/Puerto_Rico|America/Virgin","America/Regina|Canada/Saskatchewan","America/Rio_Branco|America/Porto_Acre","America/Rio_Branco|Brazil/Acre","America/Santiago|Chile/Continental","America/Sao_Paulo|Brazil/East","America/St_Johns|Canada/Newfoundland","America/Tijuana|America/Ensenada","America/Tijuana|America/Santa_Isabel","America/Tijuana|Mexico/BajaNorte","America/Toronto|America/Montreal","America/Toronto|America/Nassau","America/Toronto|Canada/Eastern","America/Vancouver|Canada/Pacific","America/Whitehorse|Canada/Yukon","America/Winnipeg|Canada/Central","Asia/Ashgabat|Asia/Ashkhabad","Asia/Bangkok|Asia/Phnom_Penh","Asia/Bangkok|Asia/Vientiane","Asia/Dhaka|Asia/Dacca","Asia/Dubai|Asia/Muscat","Asia/Ho_Chi_Minh|Asia/Saigon","Asia/Hong_Kong|Hongkong","Asia/Jerusalem|Asia/Tel_Aviv","Asia/Jerusalem|Israel","Asia/Kathmandu|Asia/Katmandu","Asia/Kolkata|Asia/Calcutta","Asia/Kuala_Lumpur|Asia/Singapore","Asia/Kuala_Lumpur|Singapore","Asia/Macau|Asia/Macao","Asia/Makassar|Asia/Ujung_Pandang","Asia/Nicosia|Europe/Nicosia","Asia/Qatar|Asia/Bahrain","Asia/Rangoon|Asia/Yangon","Asia/Riyadh|Antarctica/Syowa","Asia/Riyadh|Asia/Aden","Asia/Riyadh|Asia/Kuwait","Asia/Seoul|ROK","Asia/Shanghai|Asia/Chongqing","Asia/Shanghai|Asia/Chungking","Asia/Shanghai|Asia/Harbin","Asia/Shanghai|PRC","Asia/Taipei|ROC","Asia/Tehran|Iran","Asia/Thimphu|Asia/Thimbu","Asia/Tokyo|Japan","Asia/Ulaanbaatar|Asia/Ulan_Bator","Asia/Urumqi|Asia/Kashgar","Atlantic/Faroe|Atlantic/Faeroe","Atlantic/Reykjavik|Iceland","Atlantic/South_Georgia|Etc/GMT+2","Australia/Adelaide|Australia/South","Australia/Brisbane|Australia/Queensland","Australia/Broken_Hill|Australia/Yancowinna","Australia/Darwin|Australia/North","Australia/Hobart|Australia/Currie","Australia/Hobart|Australia/Tasmania","Australia/Lord_Howe|Australia/LHI","Australia/Melbourne|Australia/Victoria","Australia/Perth|Australia/West","Australia/Sydney|Australia/ACT","Australia/Sydney|Australia/Canberra","Australia/Sydney|Australia/NSW","Etc/GMT-0|Etc/GMT","Etc/GMT-0|Etc/GMT+0","Etc/GMT-0|Etc/GMT0","Etc/GMT-0|Etc/Greenwich","Etc/GMT-0|GMT","Etc/GMT-0|GMT+0","Etc/GMT-0|GMT-0","Etc/GMT-0|GMT0","Etc/GMT-0|Greenwich","Etc/UTC|Etc/UCT","Etc/UTC|Etc/Universal","Etc/UTC|Etc/Zulu","Etc/UTC|UCT","Etc/UTC|UTC","Etc/UTC|Universal","Etc/UTC|Zulu","Europe/Belgrade|Europe/Ljubljana","Europe/Belgrade|Europe/Podgorica","Europe/Belgrade|Europe/Sarajevo","Europe/Belgrade|Europe/Skopje","Europe/Belgrade|Europe/Zagreb","Europe/Chisinau|Europe/Tiraspol","Europe/Dublin|Eire","Europe/Helsinki|Europe/Mariehamn","Europe/Istanbul|Asia/Istanbul","Europe/Istanbul|Turkey","Europe/Lisbon|Portugal","Europe/London|Europe/Belfast","Europe/London|Europe/Guernsey","Europe/London|Europe/Isle_of_Man","Europe/London|Europe/Jersey","Europe/London|GB","Europe/London|GB-Eire","Europe/Moscow|W-SU","Europe/Oslo|Arctic/Longyearbyen","Europe/Oslo|Atlantic/Jan_Mayen","Europe/Prague|Europe/Bratislava","Europe/Rome|Europe/San_Marino","Europe/Rome|Europe/Vatican","Europe/Warsaw|Poland","Europe/Zurich|Europe/Busingen","Europe/Zurich|Europe/Vaduz","Indian/Christmas|Etc/GMT-7","Pacific/Auckland|Antarctica/McMurdo","Pacific/Auckland|Antarctica/South_Pole","Pacific/Auckland|NZ","Pacific/Chatham|NZ-CHAT","Pacific/Chuuk|Pacific/Truk","Pacific/Chuuk|Pacific/Yap","Pacific/Easter|Chile/EasterIsland","Pacific/Enderbury|Pacific/Kanton","Pacific/Guam|Pacific/Saipan","Pacific/Honolulu|Pacific/Johnston","Pacific/Honolulu|US/Hawaii","Pacific/Kwajalein|Kwajalein","Pacific/Pago_Pago|Pacific/Midway","Pacific/Pago_Pago|Pacific/Samoa","Pacific/Pago_Pago|US/Samoa","Pacific/Palau|Etc/GMT-9","Pacific/Pohnpei|Pacific/Ponape","Pacific/Port_Moresby|Antarctica/DumontDUrville","Pacific/Port_Moresby|Etc/GMT-10","Pacific/Tarawa|Etc/GMT-12","Pacific/Tarawa|Pacific/Funafuti","Pacific/Tarawa|Pacific/Wake","Pacific/Tarawa|Pacific/Wallis"],"countries":["AD|Europe/Andorra","AE|Asia/Dubai","AF|Asia/Kabul","AG|America/Port_of_Spain America/Antigua","AI|America/Port_of_Spain America/Anguilla","AL|Europe/Tirane","AM|Asia/Yerevan","AO|Africa/Lagos Africa/Luanda","AQ|Antarctica/Casey Antarctica/Davis Antarctica/DumontDUrville Antarctica/Mawson Antarctica/Palmer Antarctica/Rothera Antarctica/Syowa Antarctica/Troll Antarctica/Vostok Pacific/Auckland Antarctica/McMurdo","AR|America/Argentina/Buenos_Aires America/Argentina/Cordoba America/Argentina/Salta America/Argentina/Jujuy America/Argentina/Tucuman America/Argentina/Catamarca America/Argentina/La_Rioja America/Argentina/San_Juan America/Argentina/Mendoza America/Argentina/San_Luis America/Argentina/Rio_Gallegos America/Argentina/Ushuaia","AS|Pacific/Pago_Pago","AT|Europe/Vienna","AU|Australia/Lord_Howe Antarctica/Macquarie Australia/Hobart Australia/Melbourne Australia/Sydney Australia/Broken_Hill Australia/Brisbane Australia/Lindeman Australia/Adelaide Australia/Darwin Australia/Perth Australia/Eucla","AW|America/Curacao America/Aruba","AX|Europe/Helsinki Europe/Mariehamn","AZ|Asia/Baku","BA|Europe/Belgrade Europe/Sarajevo","BB|America/Barbados","BD|Asia/Dhaka","BE|Europe/Brussels","BF|Africa/Abidjan Africa/Ouagadougou","BG|Europe/Sofia","BH|Asia/Qatar Asia/Bahrain","BI|Africa/Maputo Africa/Bujumbura","BJ|Africa/Lagos Africa/Porto-Novo","BL|America/Port_of_Spain America/St_Barthelemy","BM|Atlantic/Bermuda","BN|Asia/Brunei","BO|America/La_Paz","BQ|America/Curacao America/Kralendijk","BR|America/Noronha America/Belem America/Fortaleza America/Recife America/Araguaina America/Maceio America/Bahia America/Sao_Paulo America/Campo_Grande America/Cuiaba America/Santarem America/Porto_Velho America/Boa_Vista America/Manaus America/Eirunepe America/Rio_Branco","BS|America/Nassau","BT|Asia/Thimphu","BW|Africa/Maputo Africa/Gaborone","BY|Europe/Minsk","BZ|America/Belize","CA|America/St_Johns America/Halifax America/Glace_Bay America/Moncton America/Goose_Bay America/Blanc-Sablon America/Toronto America/Nipigon America/Thunder_Bay America/Iqaluit America/Pangnirtung America/Atikokan America/Winnipeg America/Rainy_River America/Resolute America/Rankin_Inlet America/Regina America/Swift_Current America/Edmonton America/Cambridge_Bay America/Yellowknife America/Inuvik America/Creston America/Dawson_Creek America/Fort_Nelson America/Whitehorse America/Dawson America/Vancouver","CC|Indian/Cocos","CD|Africa/Maputo Africa/Lagos Africa/Kinshasa Africa/Lubumbashi","CF|Africa/Lagos Africa/Bangui","CG|Africa/Lagos Africa/Brazzaville","CH|Europe/Zurich","CI|Africa/Abidjan","CK|Pacific/Rarotonga","CL|America/Santiago America/Punta_Arenas Pacific/Easter","CM|Africa/Lagos Africa/Douala","CN|Asia/Shanghai Asia/Urumqi","CO|America/Bogota","CR|America/Costa_Rica","CU|America/Havana","CV|Atlantic/Cape_Verde","CW|America/Curacao","CX|Indian/Christmas","CY|Asia/Nicosia Asia/Famagusta","CZ|Europe/Prague","DE|Europe/Zurich Europe/Berlin Europe/Busingen","DJ|Africa/Nairobi Africa/Djibouti","DK|Europe/Copenhagen","DM|America/Port_of_Spain America/Dominica","DO|America/Santo_Domingo","DZ|Africa/Algiers","EC|America/Guayaquil Pacific/Galapagos","EE|Europe/Tallinn","EG|Africa/Cairo","EH|Africa/El_Aaiun","ER|Africa/Nairobi Africa/Asmara","ES|Europe/Madrid Africa/Ceuta Atlantic/Canary","ET|Africa/Nairobi Africa/Addis_Ababa","FI|Europe/Helsinki","FJ|Pacific/Fiji","FK|Atlantic/Stanley","FM|Pacific/Chuuk Pacific/Pohnpei Pacific/Kosrae","FO|Atlantic/Faroe","FR|Europe/Paris","GA|Africa/Lagos Africa/Libreville","GB|Europe/London","GD|America/Port_of_Spain America/Grenada","GE|Asia/Tbilisi","GF|America/Cayenne","GG|Europe/London Europe/Guernsey","GH|Africa/Accra","GI|Europe/Gibraltar","GL|America/Nuuk America/Danmarkshavn America/Scoresbysund America/Thule","GM|Africa/Abidjan Africa/Banjul","GN|Africa/Abidjan Africa/Conakry","GP|America/Port_of_Spain America/Guadeloupe","GQ|Africa/Lagos Africa/Malabo","GR|Europe/Athens","GS|Atlantic/South_Georgia","GT|America/Guatemala","GU|Pacific/Guam","GW|Africa/Bissau","GY|America/Guyana","HK|Asia/Hong_Kong","HN|America/Tegucigalpa","HR|Europe/Belgrade Europe/Zagreb","HT|America/Port-au-Prince","HU|Europe/Budapest","ID|Asia/Jakarta Asia/Pontianak Asia/Makassar Asia/Jayapura","IE|Europe/Dublin","IL|Asia/Jerusalem","IM|Europe/London Europe/Isle_of_Man","IN|Asia/Kolkata","IO|Indian/Chagos","IQ|Asia/Baghdad","IR|Asia/Tehran","IS|Atlantic/Reykjavik","IT|Europe/Rome","JE|Europe/London Europe/Jersey","JM|America/Jamaica","JO|Asia/Amman","JP|Asia/Tokyo","KE|Africa/Nairobi","KG|Asia/Bishkek","KH|Asia/Bangkok Asia/Phnom_Penh","KI|Pacific/Tarawa Pacific/Enderbury Pacific/Kiritimati","KM|Africa/Nairobi Indian/Comoro","KN|America/Port_of_Spain America/St_Kitts","KP|Asia/Pyongyang","KR|Asia/Seoul","KW|Asia/Riyadh Asia/Kuwait","KY|America/Panama America/Cayman","KZ|Asia/Almaty Asia/Qyzylorda Asia/Qostanay Asia/Aqtobe Asia/Aqtau Asia/Atyrau Asia/Oral","LA|Asia/Bangkok Asia/Vientiane","LB|Asia/Beirut","LC|America/Port_of_Spain America/St_Lucia","LI|Europe/Zurich Europe/Vaduz","LK|Asia/Colombo","LR|Africa/Monrovia","LS|Africa/Johannesburg Africa/Maseru","LT|Europe/Vilnius","LU|Europe/Luxembourg","LV|Europe/Riga","LY|Africa/Tripoli","MA|Africa/Casablanca","MC|Europe/Monaco","MD|Europe/Chisinau","ME|Europe/Belgrade Europe/Podgorica","MF|America/Port_of_Spain America/Marigot","MG|Africa/Nairobi Indian/Antananarivo","MH|Pacific/Majuro Pacific/Kwajalein","MK|Europe/Belgrade Europe/Skopje","ML|Africa/Abidjan Africa/Bamako","MM|Asia/Yangon","MN|Asia/Ulaanbaatar Asia/Hovd Asia/Choibalsan","MO|Asia/Macau","MP|Pacific/Guam Pacific/Saipan","MQ|America/Martinique","MR|Africa/Abidjan Africa/Nouakchott","MS|America/Port_of_Spain America/Montserrat","MT|Europe/Malta","MU|Indian/Mauritius","MV|Indian/Maldives","MW|Africa/Maputo Africa/Blantyre","MX|America/Mexico_City America/Cancun America/Merida America/Monterrey America/Matamoros America/Mazatlan America/Chihuahua America/Ojinaga America/Hermosillo America/Tijuana America/Bahia_Banderas","MY|Asia/Kuala_Lumpur Asia/Kuching","MZ|Africa/Maputo","NA|Africa/Windhoek","NC|Pacific/Noumea","NE|Africa/Lagos Africa/Niamey","NF|Pacific/Norfolk","NG|Africa/Lagos","NI|America/Managua","NL|Europe/Amsterdam","NO|Europe/Oslo","NP|Asia/Kathmandu","NR|Pacific/Nauru","NU|Pacific/Niue","NZ|Pacific/Auckland Pacific/Chatham","OM|Asia/Dubai Asia/Muscat","PA|America/Panama","PE|America/Lima","PF|Pacific/Tahiti Pacific/Marquesas Pacific/Gambier","PG|Pacific/Port_Moresby Pacific/Bougainville","PH|Asia/Manila","PK|Asia/Karachi","PL|Europe/Warsaw","PM|America/Miquelon","PN|Pacific/Pitcairn","PR|America/Puerto_Rico","PS|Asia/Gaza Asia/Hebron","PT|Europe/Lisbon Atlantic/Madeira Atlantic/Azores","PW|Pacific/Palau","PY|America/Asuncion","QA|Asia/Qatar","RE|Indian/Reunion","RO|Europe/Bucharest","RS|Europe/Belgrade","RU|Europe/Kaliningrad Europe/Moscow Europe/Simferopol Europe/Kirov Europe/Volgograd Europe/Astrakhan Europe/Saratov Europe/Ulyanovsk Europe/Samara Asia/Yekaterinburg Asia/Omsk Asia/Novosibirsk Asia/Barnaul Asia/Tomsk Asia/Novokuznetsk Asia/Krasnoyarsk Asia/Irkutsk Asia/Chita Asia/Yakutsk Asia/Khandyga Asia/Vladivostok Asia/Ust-Nera Asia/Magadan Asia/Sakhalin Asia/Srednekolymsk Asia/Kamchatka Asia/Anadyr","RW|Africa/Maputo Africa/Kigali","SA|Asia/Riyadh","SB|Pacific/Guadalcanal","SC|Indian/Mahe","SD|Africa/Khartoum","SE|Europe/Stockholm","SG|Asia/Singapore","SH|Africa/Abidjan Atlantic/St_Helena","SI|Europe/Belgrade Europe/Ljubljana","SJ|Europe/Oslo Arctic/Longyearbyen","SK|Europe/Prague Europe/Bratislava","SL|Africa/Abidjan Africa/Freetown","SM|Europe/Rome Europe/San_Marino","SN|Africa/Abidjan Africa/Dakar","SO|Africa/Nairobi Africa/Mogadishu","SR|America/Paramaribo","SS|Africa/Juba","ST|Africa/Sao_Tome","SV|America/El_Salvador","SX|America/Curacao America/Lower_Princes","SY|Asia/Damascus","SZ|Africa/Johannesburg Africa/Mbabane","TC|America/Grand_Turk","TD|Africa/Ndjamena","TF|Indian/Reunion Indian/Kerguelen","TG|Africa/Abidjan Africa/Lome","TH|Asia/Bangkok","TJ|Asia/Dushanbe","TK|Pacific/Fakaofo","TL|Asia/Dili","TM|Asia/Ashgabat","TN|Africa/Tunis","TO|Pacific/Tongatapu","TR|Europe/Istanbul","TT|America/Port_of_Spain","TV|Pacific/Funafuti","TW|Asia/Taipei","TZ|Africa/Nairobi Africa/Dar_es_Salaam","UA|Europe/Simferopol Europe/Kiev Europe/Uzhgorod Europe/Zaporozhye","UG|Africa/Nairobi Africa/Kampala","UM|Pacific/Pago_Pago Pacific/Wake Pacific/Honolulu Pacific/Midway","US|America/New_York America/Detroit America/Kentucky/Louisville America/Kentucky/Monticello America/Indiana/Indianapolis America/Indiana/Vincennes America/Indiana/Winamac America/Indiana/Marengo America/Indiana/Petersburg America/Indiana/Vevay America/Chicago America/Indiana/Tell_City America/Indiana/Knox America/Menominee America/North_Dakota/Center America/North_Dakota/New_Salem America/North_Dakota/Beulah America/Denver America/Boise America/Phoenix America/Los_Angeles America/Anchorage America/Juneau America/Sitka America/Metlakatla America/Yakutat America/Nome America/Adak Pacific/Honolulu","UY|America/Montevideo","UZ|Asia/Samarkand Asia/Tashkent","VA|Europe/Rome Europe/Vatican","VC|America/Port_of_Spain America/St_Vincent","VE|America/Caracas","VG|America/Port_of_Spain America/Tortola","VI|America/Port_of_Spain America/St_Thomas","VN|Asia/Bangkok Asia/Ho_Chi_Minh","VU|Pacific/Efate","WF|Pacific/Wallis","WS|Pacific/Apia","YE|Asia/Riyadh Asia/Aden","YT|Africa/Nairobi Indian/Mayotte","ZA|Africa/Johannesburg","ZM|Africa/Maputo Africa/Lusaka","ZW|Africa/Maputo Africa/Harare"]}')},function(t,e,n){"use strict";n.r(e),function(t,i){n.d(e,"string_to_bytes",(function(){return s})),n.d(e,"hex_to_bytes",(function(){return a})),n.d(e,"base64_to_bytes",(function(){return c})),n.d(e,"bytes_to_string",(function(){return l})),n.d(e,"bytes_to_hex",(function(){return u})),n.d(e,"bytes_to_base64",(function(){return h})),n.d(e,"IllegalStateError",(function(){return f})),n.d(e,"IllegalArgumentError",(function(){return g})),n.d(e,"SecurityError",(function(){return $})),n.d(e,"AES_CBC",(function(){return b})),n.d(e,"AES_CCM",(function(){return S})),n.d(e,"AES_CFB",(function(){return v})),n.d(e,"AES_CMAC",(function(){return T})),n.d(e,"AES_CTR",(function(){return L})),n.d(e,"AES_ECB",(function(){return C})),n.d(e,"AES_GCM",(function(){return z})),n.d(e,"AES_OFB",(function(){return w})),n.d(e,"BigNumber",(function(){return P})),n.d(e,"Modulus",(function(){return M})),n.d(e,"Sha1",(function(){return j})),n.d(e,"Sha256",(function(){return G})),n.d(e,"Sha512",(function(){return q})),n.d(e,"HmacSha1",(function(){return B})),n.d(e,"HmacSha256",(function(){return W})),n.d(e,"HmacSha512",(function(){return H})),n.d(e,"Pbkdf2HmacSha1",(function(){return V})),n.d(e,"Pbkdf2HmacSha256",(function(){return K})),n.d(e,"Pbkdf2HmacSha512",(function(){return X})),n.d(e,"RSA_OAEP",(function(){return Y})),n.d(e,"RSA_PKCS1_v1_5",(function(){return Z})),n.d(e,"RSA_PSS",(function(){return Q})),n.d(e,"RSA",(function(){return J}));const o="undefined"==typeof atob?e=>t.from(e,"base64").toString("binary"):atob,r="undefined"==typeof btoa?e=>t.from(e,"binary").toString("base64"):btoa;function s(t,e=!1){for(var n=t.length,i=new Uint8Array(e?4*n:n),o=0,r=0;o=n)throw new Error("Malformed string, low surrogate expected at position "+o);s=(55296^s)<<10|65536|56320^t.charCodeAt(o)}else if(!e&&s>>>8)throw new Error("Wide characters are not allowed.");!e||s<=127?i[r++]=s:s<=2047?(i[r++]=192|s>>6,i[r++]=128|63&s):s<=65535?(i[r++]=224|s>>12,i[r++]=128|s>>6&63,i[r++]=128|63&s):(i[r++]=240|s>>18,i[r++]=128|s>>12&63,i[r++]=128|s>>6&63,i[r++]=128|63&s)}return i.subarray(0,r)}function a(t){var e=t.length;1&e&&(t="0"+t,e++);for(var n=new Uint8Array(e>>1),i=0;i>1]=parseInt(t.substr(i,2),16);return n}function c(t){return s(o(t))}function l(t,e=!1){for(var n=t.length,i=new Array(n),o=0,r=0;o=192&&s<224&&o+1=224&&s<240&&o+2=240&&s<248&&o+3>10,i[r++]=56320|1023&a)}}var c="";for(o=0;ot+e.length,0),n=new Uint8Array(e);let i=0;for(let e=0;e * @license MIT */var E=function(){var t,e,n=!1;function i(n,i){var o=t[(e[n]+e[i])%255];return 0!==n&&0!==i||(o=0),o}var o,r,s,a,c=!1;function l(){function l(n){var i,o,r;for(o=r=function(n){var i=t[255-e[n]];return 0===n&&(i=0),i}(n),i=0;i<4;i++)r^=o=255&(o<<1|o>>>7);return r^=99}n||function(){t=[],e=[];var i,o,r=1;for(i=0;i<255;i++)t[i]=r,o=128&r,r<<=1,r&=255,128===o&&(r^=27),r^=t[i],e[t[i]]=i;t[255]=t[0],e[0]=0,n=!0}(),o=[],r=[],s=[[],[],[],[]],a=[[],[],[],[]];for(var u=0;u<256;u++){var h=l(u);o[u]=h,r[h]=u,s[0][u]=i(2,h)<<24|h<<16|h<<8|i(3,h),a[0][h]=i(14,u)<<24|i(9,u)<<16|i(13,u)<<8|i(11,u);for(var d=1;d<4;d++)s[d][u]=s[d-1][u]>>>8|s[d-1][u]<<24,a[d][h]=a[d-1][h]>>>8|a[d-1][h]<<24}c=!0}var u=function(t,e){c||l();var n=new Uint32Array(e);n.set(o,512),n.set(r,768);for(var i=0;i<4;i++)n.set(s[i],4096+1024*i>>2),n.set(a[i],8192+1024*i>>2);var u=function(t,e,n){"use asm";var i=0,o=0,r=0,s=0,a=0,c=0,l=0,u=0,h=0,d=0,p=0,_=0,m=0,f=0,g=0,$=0,E=0,y=0,b=0,S=0,v=0;var C=new t.Uint32Array(n),N=new t.Uint8Array(n);function T(t,e,n,a,c,l,u,h){t=t|0;e=e|0;n=n|0;a=a|0;c=c|0;l=l|0;u=u|0;h=h|0;var d=0,p=0,_=0,m=0,f=0,g=0,$=0,E=0;d=n|0x400,p=n|0x800,_=n|0xc00;c=c^C[(t|0)>>2],l=l^C[(t|4)>>2],u=u^C[(t|8)>>2],h=h^C[(t|12)>>2];for(E=16;(E|0)<=a<<4;E=E+16|0){m=C[(n|c>>22&1020)>>2]^C[(d|l>>14&1020)>>2]^C[(p|u>>6&1020)>>2]^C[(_|h<<2&1020)>>2]^C[(t|E|0)>>2],f=C[(n|l>>22&1020)>>2]^C[(d|u>>14&1020)>>2]^C[(p|h>>6&1020)>>2]^C[(_|c<<2&1020)>>2]^C[(t|E|4)>>2],g=C[(n|u>>22&1020)>>2]^C[(d|h>>14&1020)>>2]^C[(p|c>>6&1020)>>2]^C[(_|l<<2&1020)>>2]^C[(t|E|8)>>2],$=C[(n|h>>22&1020)>>2]^C[(d|c>>14&1020)>>2]^C[(p|l>>6&1020)>>2]^C[(_|u<<2&1020)>>2]^C[(t|E|12)>>2];c=m,l=f,u=g,h=$}i=C[(e|c>>22&1020)>>2]<<24^C[(e|l>>14&1020)>>2]<<16^C[(e|u>>6&1020)>>2]<<8^C[(e|h<<2&1020)>>2]^C[(t|E|0)>>2],o=C[(e|l>>22&1020)>>2]<<24^C[(e|u>>14&1020)>>2]<<16^C[(e|h>>6&1020)>>2]<<8^C[(e|c<<2&1020)>>2]^C[(t|E|4)>>2],r=C[(e|u>>22&1020)>>2]<<24^C[(e|h>>14&1020)>>2]<<16^C[(e|c>>6&1020)>>2]<<8^C[(e|l<<2&1020)>>2]^C[(t|E|8)>>2],s=C[(e|h>>22&1020)>>2]<<24^C[(e|c>>14&1020)>>2]<<16^C[(e|l>>6&1020)>>2]<<8^C[(e|u<<2&1020)>>2]^C[(t|E|12)>>2]}function L(t,e,n,i){t=t|0;e=e|0;n=n|0;i=i|0;T(0x0000,0x0800,0x1000,v,t,e,n,i)}function z(t,e,n,i){t=t|0;e=e|0;n=n|0;i=i|0;var r=0;T(0x0400,0x0c00,0x2000,v,t,i,n,e);r=o,o=s,s=r}function w(t,e,n,h){t=t|0;e=e|0;n=n|0;h=h|0;T(0x0000,0x0800,0x1000,v,a^t,c^e,l^n,u^h);a=i,c=o,l=r,u=s}function O(t,e,n,h){t=t|0;e=e|0;n=n|0;h=h|0;var d=0;T(0x0400,0x0c00,0x2000,v,t,h,n,e);d=o,o=s,s=d;i=i^a,o=o^c,r=r^l,s=s^u;a=t,c=e,l=n,u=h}function R(t,e,n,h){t=t|0;e=e|0;n=n|0;h=h|0;T(0x0000,0x0800,0x1000,v,a,c,l,u);a=i=i^t,c=o=o^e,l=r=r^n,u=s=s^h}function A(t,e,n,h){t=t|0;e=e|0;n=n|0;h=h|0;T(0x0000,0x0800,0x1000,v,a,c,l,u);i=i^t,o=o^e,r=r^n,s=s^h;a=t,c=e,l=n,u=h}function x(t,e,n,h){t=t|0;e=e|0;n=n|0;h=h|0;T(0x0000,0x0800,0x1000,v,a,c,l,u);a=i,c=o,l=r,u=s;i=i^t,o=o^e,r=r^n,s=s^h}function I(t,e,n,a){t=t|0;e=e|0;n=n|0;a=a|0;T(0x0000,0x0800,0x1000,v,h,d,p,_);_=~$&_|$&_+1;p=~g&p|g&p+((_|0)==0);d=~f&d|f&d+((p|0)==0);h=~m&h|m&h+((d|0)==0);i=i^t;o=o^e;r=r^n;s=s^a}function U(t,e,n,i){t=t|0;e=e|0;n=n|0;i=i|0;var o=0,r=0,s=0,h=0,d=0,p=0,_=0,m=0,f=0,g=0;t=t^a,e=e^c,n=n^l,i=i^u;o=E|0,r=y|0,s=b|0,h=S|0;for(;(f|0)<128;f=f+1|0){if(o>>>31){d=d^t,p=p^e,_=_^n,m=m^i}o=o<<1|r>>>31,r=r<<1|s>>>31,s=s<<1|h>>>31,h=h<<1;g=i&1;i=i>>>1|n<<31,n=n>>>1|e<<31,e=e>>>1|t<<31,t=t>>>1;if(g)t=t^0xe1000000}a=d,c=p,l=_,u=m}function D(t){t=t|0;v=t}function P(t,e,n,a){t=t|0;e=e|0;n=n|0;a=a|0;i=t,o=e,r=n,s=a}function M(t,e,n,i){t=t|0;e=e|0;n=n|0;i=i|0;a=t,c=e,l=n,u=i}function k(t,e,n,i){t=t|0;e=e|0;n=n|0;i=i|0;h=t,d=e,p=n,_=i}function j(t,e,n,i){t=t|0;e=e|0;n=n|0;i=i|0;m=t,f=e,g=n,$=i}function G(t,e,n,i){t=t|0;e=e|0;n=n|0;i=i|0;_=~$&_|$&i,p=~g&p|g&n,d=~f&d|f&e,h=~m&h|m&t}function q(t){t=t|0;if(t&15)return-1;N[t|0]=i>>>24,N[t|1]=i>>>16&255,N[t|2]=i>>>8&255,N[t|3]=i&255,N[t|4]=o>>>24,N[t|5]=o>>>16&255,N[t|6]=o>>>8&255,N[t|7]=o&255,N[t|8]=r>>>24,N[t|9]=r>>>16&255,N[t|10]=r>>>8&255,N[t|11]=r&255,N[t|12]=s>>>24,N[t|13]=s>>>16&255,N[t|14]=s>>>8&255,N[t|15]=s&255;return 16}function F(t){t=t|0;if(t&15)return-1;N[t|0]=a>>>24,N[t|1]=a>>>16&255,N[t|2]=a>>>8&255,N[t|3]=a&255,N[t|4]=c>>>24,N[t|5]=c>>>16&255,N[t|6]=c>>>8&255,N[t|7]=c&255,N[t|8]=l>>>24,N[t|9]=l>>>16&255,N[t|10]=l>>>8&255,N[t|11]=l&255,N[t|12]=u>>>24,N[t|13]=u>>>16&255,N[t|14]=u>>>8&255,N[t|15]=u&255;return 16}function B(){L(0,0,0,0);E=i,y=o,b=r,S=s}function W(t,e,n){t=t|0;e=e|0;n=n|0;var a=0;if(e&15)return-1;while((n|0)>=16){V[t&7](N[e|0]<<24|N[e|1]<<16|N[e|2]<<8|N[e|3],N[e|4]<<24|N[e|5]<<16|N[e|6]<<8|N[e|7],N[e|8]<<24|N[e|9]<<16|N[e|10]<<8|N[e|11],N[e|12]<<24|N[e|13]<<16|N[e|14]<<8|N[e|15]);N[e|0]=i>>>24,N[e|1]=i>>>16&255,N[e|2]=i>>>8&255,N[e|3]=i&255,N[e|4]=o>>>24,N[e|5]=o>>>16&255,N[e|6]=o>>>8&255,N[e|7]=o&255,N[e|8]=r>>>24,N[e|9]=r>>>16&255,N[e|10]=r>>>8&255,N[e|11]=r&255,N[e|12]=s>>>24,N[e|13]=s>>>16&255,N[e|14]=s>>>8&255,N[e|15]=s&255;a=a+16|0,e=e+16|0,n=n-16|0}return a|0}function H(t,e,n){t=t|0;e=e|0;n=n|0;var i=0;if(e&15)return-1;while((n|0)>=16){K[t&1](N[e|0]<<24|N[e|1]<<16|N[e|2]<<8|N[e|3],N[e|4]<<24|N[e|5]<<16|N[e|6]<<8|N[e|7],N[e|8]<<24|N[e|9]<<16|N[e|10]<<8|N[e|11],N[e|12]<<24|N[e|13]<<16|N[e|14]<<8|N[e|15]);i=i+16|0,e=e+16|0,n=n-16|0}return i|0}var V=[L,z,w,O,R,A,x,I];var K=[w,U];return{set_rounds:D,set_state:P,set_iv:M,set_nonce:k,set_mask:j,set_counter:G,get_state:q,get_iv:F,gcm_init:B,cipher:W,mac:H}}({Uint8Array:Uint8Array,Uint32Array:Uint32Array},t,e);return u.set_key=function(t,e,i,r,s,c,l,h,d){var p=n.subarray(0,60),_=n.subarray(256,316);p.set([e,i,r,s,c,l,h,d]);for(var m=t,f=1;m<4*t+28;m++){var g=p[m-1];(m%t==0||8===t&&m%t==4)&&(g=o[g>>>24]<<24^o[g>>>16&255]<<16^o[g>>>8&255]<<8^o[255&g]),m%t==0&&(g=g<<8^g>>>24^f<<24,f=f<<1^(128&f?27:0)),p[m]=p[m-t]^g}for(var $=0;$=m-4?g:a[0][o[g>>>24]]^a[1][o[g>>>16&255]]^a[2][o[g>>>8&255]]^a[3][o[255&g]]}u.set_rounds(t+5)},u};return u.ENC={ECB:0,CBC:2,CFB:4,OFB:6,CTR:7},u.DEC={ECB:1,CBC:3,CFB:5,OFB:6,CTR:7},u.MAC={CBC:0,GCM:1},u.HEAP_DATA=16384,u}();class y{constructor(t,e,n=!0,i){this.pos=0,this.len=0,this.mode=i,this.heap=p().subarray(E.HEAP_DATA),this.asm=new E(null,this.heap.buffer),this.pos=0,this.len=0;const o=t.length;if(16!==o&&24!==o&&32!==o)throw new g("illegal key size");const r=new DataView(t.buffer,t.byteOffset,t.byteLength);if(this.asm.set_key(o>>2,r.getUint32(0),r.getUint32(4),r.getUint32(8),r.getUint32(12),o>16?r.getUint32(16):0,o>16?r.getUint32(20):0,o>24?r.getUint32(24):0,o>24?r.getUint32(28):0),void 0!==e){if(16!==e.length)throw new g("illegal iv size");let t=new DataView(e.buffer,e.byteOffset,e.byteLength);this.asm.set_iv(t.getUint32(0),t.getUint32(4),t.getUint32(8),t.getUint32(12))}else this.asm.set_iv(0,0,0,0);this.padding=n}AES_Encrypt_process(t){if(!d(t))throw new TypeError("data isn't of expected type");let e=this.asm,n=this.heap,i=E.ENC[this.mode],o=E.HEAP_DATA,r=this.pos,s=this.len,a=0,c=t.length||0,l=0,u=0,h=new Uint8Array(s+c&-16);for(;c>0;)u=_(n,r+s,t,a,c),s+=u,a+=u,c-=u,u=e.cipher(i,o+r,s),u&&h.set(n.subarray(r,r+u),l),l+=u,u0;)p=_(n,r+s,t,a,c),s+=p,a+=p,c-=p,p=e.cipher(i,o+r,s-(c?0:h)),p&&m.set(n.subarray(r,r+p),l),l+=p,p0){if(r%16){if(this.hasOwnProperty("padding"))throw new g("data length must be a multiple of the block size");r+=16-r%16}if(t.cipher(n,i+o,r),this.hasOwnProperty("padding")&&this.padding){let t=e[o+s-1];if(t<1||t>16||t>s)throw new $("bad padding");let n=0;for(let i=t;i>1;i--)n|=t^e[o+s-i];if(n)throw new $("bad padding");s-=t}}const a=new Uint8Array(s);return s>0&&a.set(e.subarray(o,o+s)),this.pos=0,this.len=0,a}}class b extends y{static encrypt(t,e,n=!0,i){return new b(e,i,n).encrypt(t)}static decrypt(t,e,n=!0,i){return new b(e,i,n).decrypt(t)}constructor(t,e,n=!0){super(t,e,n,"CBC")}encrypt(t){return m(this.AES_Encrypt_process(t),this.AES_Encrypt_finish())}decrypt(t){return m(this.AES_Decrypt_process(t),this.AES_Decrypt_finish())}}class S extends y{constructor(t,e,n,i=16,o){if(super(t,void 0,void 0,"CCM"),this.counter=1,this.dataLength=-1,i<4||i>16||1&i)throw new g("illegal tagSize value");if(this.tagSize=i,this.nonce=e,e.length<8||e.length>13)throw new g("illegal nonce length");if(this.lengthSize=15-e.length,(e=new Uint8Array(e.length+1))[0]=this.lengthSize-1,e.set(this.nonce,1),o<0||o>0xffffffffffff0||o>Math.pow(2,8*this.lengthSize)-16)throw new g("illegal dataLength value");if(void 0!==n){if(n.length>65279)throw new g("illegal adata length");this.adata=n.length?n:void 0}this.dataLength=o,this.counter=1,this.AES_CCM_calculate_iv(),this.AES_CTR_set_options(e,this.counter,8*this.lengthSize)}static encrypt(t,e,n,i,o=16){return new S(e,n,i,o,t.length).encrypt(t)}static decrypt(t,e,n,i,o=16){return new S(e,n,i,o,t.length-o).decrypt(t)}encrypt(t){this.dataLength=t.length||0;const e=this.AES_CCM_Encrypt_process(t),n=this.AES_CCM_Encrypt_finish(),i=new Uint8Array(e.length+n.length);return e.length&&i.set(e),n.length&&i.set(n,e.length),i}decrypt(t){this.dataLength=t.length||0;const e=this.AES_CCM_Decrypt_process(t),n=this.AES_CCM_Decrypt_finish(),i=new Uint8Array(e.length+n.length);return e.length&&i.set(e),n.length&&i.set(n,e.length),i}AES_CCM_calculate_iv(){const t=this.nonce,e=this.adata,n=this.tagSize,i=this.lengthSize,o=this.dataLength,r=new Uint8Array(16+(e?2+e.length:0));r[0]=(e?64:0)|n-2<<2|i-1,r.set(t,1),i>6&&(r[9]=o/4294967296>>>16&15),i>5&&(r[10]=o/4294967296>>>8&255),i>4&&(r[11]=o/4294967296&255),i>3&&(r[12]=o>>>24),i>2&&(r[13]=o>>>16&255),r[14]=o>>>8&255,r[15]=255&o,e&&(r[16]=e.length>>>8&255,r[17]=255&e.length,r.set(e,18)),this._cbc_mac_process(r),this.asm.get_state(E.HEAP_DATA);const s=new Uint8Array(this.heap.subarray(0,16)),a=new DataView(s.buffer,s.byteOffset,s.byteLength);this.asm.set_iv(a.getUint32(0),a.getUint32(4),a.getUint32(8),a.getUint32(12))}_cbc_mac_process(t){const e=this.heap,n=this.asm;let i=0,o=t.length||0,r=0;for(;o>0;){for(r=_(e,0,t,i,o);15&r;)e[r++]=0;i+=r,o-=r,n.mac(E.MAC.CBC,E.HEAP_DATA,r)}}AES_CCM_Encrypt_process(t){const e=this.asm,n=this.heap;let i=0,o=t.length||0,r=this.counter,s=this.pos,a=this.len;const c=a+o&-16;let l=0,u=0;if((r-1<<4)+a+o>0xffffffffffff0)throw new RangeError("counter overflow");const h=new Uint8Array(c);for(;o>0;)u=_(n,s+a,t,i,o),a+=u,i+=u,o-=u,u=e.mac(E.MAC.CBC,E.HEAP_DATA+s,a),u=e.cipher(E.ENC.CTR,E.HEAP_DATA+s,u),u&&h.set(n.subarray(s,s+u),l),r+=u>>>4,l+=u,us?c+n-s&-16:0,h=c+n-u;let d=0;if((r-1<<4)+c+n>0xffffffffffff0)throw new RangeError("counter overflow");const p=new Uint8Array(u);for(;n>h;)d=_(o,a+c,t,e,n-h),c+=d,e+=d,n-=d,d=i.cipher(E.DEC.CTR,E.HEAP_DATA+a,d),d=i.mac(E.MAC.CBC,E.HEAP_DATA+a,d),d&&p.set(o.subarray(a,a+d),l),r+=d>>>4,l+=d,a=0,c=0;return n>0&&(c+=_(o,0,t,e,n)),this.counter=r,this.pos=a,this.len=c,p}AES_CCM_Decrypt_finish(){const t=this.asm,e=this.heap,n=this.tagSize,i=this.pos,o=this.len,r=o-n;if(o48)throw new g("illegal counter size");const i=Math.pow(2,n)-1;this.asm.set_mask(0,0,i/4294967296|0,0|i);const o=t.length;if(!o||o>16)throw new g("illegal nonce size");this.nonce=t;const r=new DataView(new ArrayBuffer(16));if(new Uint8Array(r.buffer).set(t),this.asm.set_nonce(r.getUint32(0),r.getUint32(4),r.getUint32(8),r.getUint32(12)),e<0||e>=Math.pow(2,n))throw new g("illegal counter value");this.counter=e,this.asm.set_counter(0,0,e/4294967296|0,0|e)}}class v extends y{static encrypt(t,e,n){return new v(e,n).encrypt(t)}static decrypt(t,e,n){return new v(e,n).decrypt(t)}constructor(t,e){super(t,e,!0,"CFB"),delete this.padding}encrypt(t){return m(this.AES_Encrypt_process(t),this.AES_Encrypt_finish())}decrypt(t){return m(this.AES_Decrypt_process(t),this.AES_Decrypt_finish())}}class C extends y{static encrypt(t,e,n=!1){return new C(e,n).encrypt(t)}static decrypt(t,e,n=!1){return new C(e,n).decrypt(t)}constructor(t,e=!1){super(t,void 0,e,"ECB")}encrypt(t){return m(this.AES_Encrypt_process(t),this.AES_Encrypt_finish())}decrypt(t){return m(this.AES_Decrypt_process(t),this.AES_Decrypt_finish())}}function N(t){const e=128&t[0];for(let e=0;e<15;e++)t[e]=t[e]<<1^(128&t[e+1]?1:0);t[15]=t[15]<<1^(e?135:0)}class T{constructor(t){this.bufferLength=0,this.k=new C(t).encrypt(new Uint8Array(16)),N(this.k),this.cbc=new b(t,new Uint8Array(16),!1),this.buffer=new Uint8Array(16),this.result=null}static bytes(t,e){return new T(e).process(t).finish().result}process(t){if(this.bufferLength+t.length>16){this.cbc.encrypt(this.buffer.subarray(0,this.bufferLength));const e=(this.bufferLength+t.length-1&-16)-this.bufferLength;this.cbc.encrypt(t.subarray(0,e)),this.buffer.set(t.subarray(e)),this.bufferLength=t.length-e}else this.buffer.set(t,this.bufferLength),this.bufferLength+=t.length;return this}finish(){if(16!==this.bufferLength){this.buffer[this.bufferLength]=128;for(let t=this.bufferLength+1;t<16;t++)this.buffer[t]=0;N(this.k)}for(let t=0;t<16;t++)this.buffer[t]^=this.k[t];return this.result=this.cbc.encrypt(this.buffer),this}}class L extends y{static encrypt(t,e,n){return new L(e,n).encrypt(t)}static decrypt(t,e,n){return new L(e,n).encrypt(t)}constructor(t,e){super(t,void 0,!1,"CTR"),delete this.padding,this.AES_CTR_set_options(e)}encrypt(t){return m(this.AES_Encrypt_process(t),this.AES_Encrypt_finish())}decrypt(t){return m(this.AES_Encrypt_process(t),this.AES_Encrypt_finish())}AES_CTR_set_options(t,e,n){if(void 0!==n){if(n<8||n>48)throw new g("illegal counter size");let t=Math.pow(2,n)-1;this.asm.set_mask(0,0,t/4294967296|0,0|t)}else n=48,this.asm.set_mask(0,0,65535,4294967295);if(void 0===t)throw new Error("nonce is required");{let e=t.length;if(!e||e>16)throw new g("illegal nonce size");let n=new DataView(new ArrayBuffer(16));new Uint8Array(n.buffer).set(t),this.asm.set_nonce(n.getUint32(0),n.getUint32(4),n.getUint32(8),n.getUint32(12))}if(void 0!==e){if(e<0||e>=Math.pow(2,n))throw new g("illegal counter value");this.asm.set_counter(0,0,e/4294967296|0,0|e)}}}class z extends y{constructor(t,e,n,i=16){if(super(t,void 0,!1,"CTR"),this.tagSize=i,this.gamma0=0,this.counter=1,this.asm.gcm_init(),this.tagSize<4||this.tagSize>16)throw new g("illegal tagSize value");const o=e.length||0,r=new Uint8Array(16);12!==o?(this._gcm_mac_process(e),this.heap[0]=0,this.heap[1]=0,this.heap[2]=0,this.heap[3]=0,this.heap[4]=0,this.heap[5]=0,this.heap[6]=0,this.heap[7]=0,this.heap[8]=0,this.heap[9]=0,this.heap[10]=0,this.heap[11]=o>>>29,this.heap[12]=o>>>21&255,this.heap[13]=o>>>13&255,this.heap[14]=o>>>5&255,this.heap[15]=o<<3&255,this.asm.mac(E.MAC.GCM,E.HEAP_DATA,16),this.asm.get_iv(E.HEAP_DATA),this.asm.set_iv(0,0,0,0),r.set(this.heap.subarray(0,16))):(r.set(e),r[15]=1);const s=new DataView(r.buffer);if(this.gamma0=s.getUint32(12),this.asm.set_nonce(s.getUint32(0),s.getUint32(4),s.getUint32(8),0),this.asm.set_mask(0,0,0,4294967295),void 0!==n){if(n.length>68719476704)throw new g("illegal adata length");n.length?(this.adata=n,this._gcm_mac_process(n)):this.adata=void 0}else this.adata=void 0;if(this.counter<1||this.counter>4294967295)throw new RangeError("counter must be a positive 32-bit integer");this.asm.set_counter(0,0,0,this.gamma0+this.counter|0)}static encrypt(t,e,n,i,o){return new z(e,n,i,o).encrypt(t)}static decrypt(t,e,n,i,o){return new z(e,n,i,o).decrypt(t)}encrypt(t){return this.AES_GCM_encrypt(t)}decrypt(t){return this.AES_GCM_decrypt(t)}AES_GCM_Encrypt_process(t){let e=0,n=t.length||0,i=this.asm,o=this.heap,r=this.counter,s=this.pos,a=this.len,c=0,l=a+n&-16,u=0;if((r-1<<4)+a+n>68719476704)throw new RangeError("counter overflow");const h=new Uint8Array(l);for(;n>0;)u=_(o,s+a,t,e,n),a+=u,e+=u,n-=u,u=i.cipher(E.ENC.CTR,E.HEAP_DATA+s,a),u=i.mac(E.MAC.GCM,E.HEAP_DATA+s,u),u&&h.set(o.subarray(s,s+u),c),r+=u>>>4,c+=u,u>>29,e[4]=l>>>21,e[5]=l>>>13&255,e[6]=l>>>5&255,e[7]=l<<3&255,e[8]=e[9]=e[10]=0,e[11]=u>>>29,e[12]=u>>>21&255,e[13]=u>>>13&255,e[14]=u>>>5&255,e[15]=u<<3&255,t.mac(E.MAC.GCM,E.HEAP_DATA,16),t.get_iv(E.HEAP_DATA),t.set_counter(0,0,0,this.gamma0),t.cipher(E.ENC.CTR,E.HEAP_DATA,16),a.set(e.subarray(0,i),s),this.counter=1,this.pos=0,this.len=0,a}AES_GCM_Decrypt_process(t){let e=0,n=t.length||0,i=this.asm,o=this.heap,r=this.counter,s=this.tagSize,a=this.pos,c=this.len,l=0,u=c+n>s?c+n-s&-16:0,h=c+n-u,d=0;if((r-1<<4)+c+n>68719476704)throw new RangeError("counter overflow");const p=new Uint8Array(u);for(;n>h;)d=_(o,a+c,t,e,n-h),c+=d,e+=d,n-=d,d=i.mac(E.MAC.GCM,E.HEAP_DATA+a,d),d=i.cipher(E.DEC.CTR,E.HEAP_DATA+a,d),d&&p.set(o.subarray(a,a+d),l),r+=d>>>4,l+=d,a=0,c=0;return n>0&&(c+=_(o,0,t,e,n)),this.counter=r,this.pos=a,this.len=c,p}AES_GCM_Decrypt_finish(){let t=this.asm,e=this.heap,n=this.tagSize,i=this.adata,o=this.counter,r=this.pos,s=this.len,a=s-n;if(s>>29,e[4]=h>>>21,e[5]=h>>>13&255,e[6]=h>>>5&255,e[7]=h<<3&255,e[8]=e[9]=e[10]=0,e[11]=d>>>29,e[12]=d>>>21&255,e[13]=d>>>13&255,e[14]=d>>>5&255,e[15]=d<<3&255,t.mac(E.MAC.GCM,E.HEAP_DATA,16),t.get_iv(E.HEAP_DATA),t.set_counter(0,0,0,this.gamma0),t.cipher(E.ENC.CTR,E.HEAP_DATA,16);let p=0;for(let t=0;t0;){for(r=_(e,0,t,i,o),i+=r,o-=r;15&r;)e[r++]=0;n.mac(E.MAC.GCM,E.HEAP_DATA,r)}}}class w extends y{static encrypt(t,e,n){return new w(e,n).encrypt(t)}static decrypt(t,e,n){return new w(e,n).decrypt(t)}constructor(t,e){super(t,e,!1,"OFB")}encrypt(t){return m(this.AES_Encrypt_process(t),this.AES_Encrypt_finish())}decrypt(t){return m(this.AES_Decrypt_process(t),this.AES_Decrypt_finish())}}var O=function(t,e,n){"use asm";var i=0;var o=new t.Uint32Array(n);var r=t.Math.imul;function s(t){t=t|0;i=t=t+31&-32;return t|0}function a(t){t=t|0;var e=0;e=i;i=e+(t+31&-32)|0;return e|0}function c(t){t=t|0;i=i-(t+31&-32)|0}function l(t,e,n){t=t|0;e=e|0;n=n|0;var i=0;if((e|0)>(n|0)){for(;(i|0)<(t|0);i=i+4|0){o[n+i>>2]=o[e+i>>2]}}else{for(i=t-4|0;(i|0)>=0;i=i-4|0){o[n+i>>2]=o[e+i>>2]}}}function u(t,e,n){t=t|0;e=e|0;n=n|0;var i=0;for(;(i|0)<(t|0);i=i+4|0){o[n+i>>2]=e}}function h(t,e,n,i){t=t|0;e=e|0;n=n|0;i=i|0;var r=0,s=0,a=0,c=0,l=0;if((i|0)<=0)i=e;if((i|0)<(e|0))e=i;s=1;for(;(l|0)<(e|0);l=l+4|0){r=~o[t+l>>2];a=(r&0xffff)+s|0;c=(r>>>16)+(a>>>16)|0;o[n+l>>2]=c<<16|a&0xffff;s=c>>>16}for(;(l|0)<(i|0);l=l+4|0){o[n+l>>2]=s-1|0}return s|0}function d(t,e,n,i){t=t|0;e=e|0;n=n|0;i=i|0;var r=0,s=0,a=0;if((e|0)>(i|0)){for(a=e-4|0;(a|0)>=(i|0);a=a-4|0){if(o[t+a>>2]|0)return 1}}else{for(a=i-4|0;(a|0)>=(e|0);a=a-4|0){if(o[n+a>>2]|0)return-1}}for(;(a|0)>=0;a=a-4|0){r=o[t+a>>2]|0,s=o[n+a>>2]|0;if(r>>>0>>0)return-1;if(r>>>0>s>>>0)return 1}return 0}function p(t,e){t=t|0;e=e|0;var n=0;for(n=e-4|0;(n|0)>=0;n=n-4|0){if(o[t+n>>2]|0)return n+4|0}return 0}function _(t,e,n,i,r,s){t=t|0;e=e|0;n=n|0;i=i|0;r=r|0;s=s|0;var a=0,c=0,l=0,u=0,h=0,d=0;if((e|0)<(i|0)){u=t,t=n,n=u;u=e,e=i,i=u}if((s|0)<=0)s=e+4|0;if((s|0)<(i|0))e=i=s;for(;(d|0)<(i|0);d=d+4|0){a=o[t+d>>2]|0;c=o[n+d>>2]|0;u=((a&0xffff)+(c&0xffff)|0)+l|0;h=((a>>>16)+(c>>>16)|0)+(u>>>16)|0;o[r+d>>2]=u&0xffff|h<<16;l=h>>>16}for(;(d|0)<(e|0);d=d+4|0){a=o[t+d>>2]|0;u=(a&0xffff)+l|0;h=(a>>>16)+(u>>>16)|0;o[r+d>>2]=u&0xffff|h<<16;l=h>>>16}for(;(d|0)<(s|0);d=d+4|0){o[r+d>>2]=l|0;l=0}return l|0}function m(t,e,n,i,r,s){t=t|0;e=e|0;n=n|0;i=i|0;r=r|0;s=s|0;var a=0,c=0,l=0,u=0,h=0,d=0;if((s|0)<=0)s=(e|0)>(i|0)?e+4|0:i+4|0;if((s|0)<(e|0))e=s;if((s|0)<(i|0))i=s;if((e|0)<(i|0)){for(;(d|0)<(e|0);d=d+4|0){a=o[t+d>>2]|0;c=o[n+d>>2]|0;u=((a&0xffff)-(c&0xffff)|0)+l|0;h=((a>>>16)-(c>>>16)|0)+(u>>16)|0;o[r+d>>2]=u&0xffff|h<<16;l=h>>16}for(;(d|0)<(i|0);d=d+4|0){c=o[n+d>>2]|0;u=l-(c&0xffff)|0;h=(u>>16)-(c>>>16)|0;o[r+d>>2]=u&0xffff|h<<16;l=h>>16}}else{for(;(d|0)<(i|0);d=d+4|0){a=o[t+d>>2]|0;c=o[n+d>>2]|0;u=((a&0xffff)-(c&0xffff)|0)+l|0;h=((a>>>16)-(c>>>16)|0)+(u>>16)|0;o[r+d>>2]=u&0xffff|h<<16;l=h>>16}for(;(d|0)<(e|0);d=d+4|0){a=o[t+d>>2]|0;u=(a&0xffff)+l|0;h=(a>>>16)+(u>>16)|0;o[r+d>>2]=u&0xffff|h<<16;l=h>>16}}for(;(d|0)<(s|0);d=d+4|0){o[r+d>>2]=l|0}return l|0}function f(t,e,n,i,s,a){t=t|0;e=e|0;n=n|0;i=i|0;s=s|0;a=a|0;var c=0,l=0,u=0,h=0,d=0,p=0,_=0,m=0,f=0,g=0,$=0,E=0,y=0,b=0,S=0,v=0,C=0,N=0,T=0,L=0,z=0,w=0,O=0,R=0,A=0,x=0,I=0,U=0,D=0,P=0,M=0,k=0,j=0,G=0,q=0,F=0,B=0,W=0,H=0,V=0,K=0,X=0,J=0,Y=0,Q=0,Z=0,tt=0,et=0,nt=0,it=0,ot=0,rt=0,st=0,at=0,ct=0,lt=0,ut=0;if((e|0)>(i|0)){nt=t,it=e;t=n,e=i;n=nt,i=it}rt=e+i|0;if((a|0)>(rt|0)|(a|0)<=0)a=rt;if((a|0)<(e|0))e=a;if((a|0)<(i|0))i=a;for(;(st|0)<(e|0);st=st+32|0){at=t+st|0;f=o[(at|0)>>2]|0,g=o[(at|4)>>2]|0,$=o[(at|8)>>2]|0,E=o[(at|12)>>2]|0,y=o[(at|16)>>2]|0,b=o[(at|20)>>2]|0,S=o[(at|24)>>2]|0,v=o[(at|28)>>2]|0,c=f&0xffff,l=g&0xffff,u=$&0xffff,h=E&0xffff,d=y&0xffff,p=b&0xffff,_=S&0xffff,m=v&0xffff,f=f>>>16,g=g>>>16,$=$>>>16,E=E>>>16,y=y>>>16,b=b>>>16,S=S>>>16,v=v>>>16;K=X=J=Y=Q=Z=tt=et=0;for(ct=0;(ct|0)<(i|0);ct=ct+32|0){lt=n+ct|0;ut=s+(st+ct|0)|0;A=o[(lt|0)>>2]|0,x=o[(lt|4)>>2]|0,I=o[(lt|8)>>2]|0,U=o[(lt|12)>>2]|0,D=o[(lt|16)>>2]|0,P=o[(lt|20)>>2]|0,M=o[(lt|24)>>2]|0,k=o[(lt|28)>>2]|0,C=A&0xffff,N=x&0xffff,T=I&0xffff,L=U&0xffff,z=D&0xffff,w=P&0xffff,O=M&0xffff,R=k&0xffff,A=A>>>16,x=x>>>16,I=I>>>16,U=U>>>16,D=D>>>16,P=P>>>16,M=M>>>16,k=k>>>16;j=o[(ut|0)>>2]|0,G=o[(ut|4)>>2]|0,q=o[(ut|8)>>2]|0,F=o[(ut|12)>>2]|0,B=o[(ut|16)>>2]|0,W=o[(ut|20)>>2]|0,H=o[(ut|24)>>2]|0,V=o[(ut|28)>>2]|0;nt=((r(c,C)|0)+(K&0xffff)|0)+(j&0xffff)|0;it=((r(f,C)|0)+(K>>>16)|0)+(j>>>16)|0;ot=((r(c,A)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(f,A)|0)+(it>>>16)|0)+(ot>>>16)|0;j=ot<<16|nt&0xffff;nt=((r(c,N)|0)+(rt&0xffff)|0)+(G&0xffff)|0;it=((r(f,N)|0)+(rt>>>16)|0)+(G>>>16)|0;ot=((r(c,x)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(f,x)|0)+(it>>>16)|0)+(ot>>>16)|0;G=ot<<16|nt&0xffff;nt=((r(c,T)|0)+(rt&0xffff)|0)+(q&0xffff)|0;it=((r(f,T)|0)+(rt>>>16)|0)+(q>>>16)|0;ot=((r(c,I)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(f,I)|0)+(it>>>16)|0)+(ot>>>16)|0;q=ot<<16|nt&0xffff;nt=((r(c,L)|0)+(rt&0xffff)|0)+(F&0xffff)|0;it=((r(f,L)|0)+(rt>>>16)|0)+(F>>>16)|0;ot=((r(c,U)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(f,U)|0)+(it>>>16)|0)+(ot>>>16)|0;F=ot<<16|nt&0xffff;nt=((r(c,z)|0)+(rt&0xffff)|0)+(B&0xffff)|0;it=((r(f,z)|0)+(rt>>>16)|0)+(B>>>16)|0;ot=((r(c,D)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(f,D)|0)+(it>>>16)|0)+(ot>>>16)|0;B=ot<<16|nt&0xffff;nt=((r(c,w)|0)+(rt&0xffff)|0)+(W&0xffff)|0;it=((r(f,w)|0)+(rt>>>16)|0)+(W>>>16)|0;ot=((r(c,P)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(f,P)|0)+(it>>>16)|0)+(ot>>>16)|0;W=ot<<16|nt&0xffff;nt=((r(c,O)|0)+(rt&0xffff)|0)+(H&0xffff)|0;it=((r(f,O)|0)+(rt>>>16)|0)+(H>>>16)|0;ot=((r(c,M)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(f,M)|0)+(it>>>16)|0)+(ot>>>16)|0;H=ot<<16|nt&0xffff;nt=((r(c,R)|0)+(rt&0xffff)|0)+(V&0xffff)|0;it=((r(f,R)|0)+(rt>>>16)|0)+(V>>>16)|0;ot=((r(c,k)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(f,k)|0)+(it>>>16)|0)+(ot>>>16)|0;V=ot<<16|nt&0xffff;K=rt;nt=((r(l,C)|0)+(X&0xffff)|0)+(G&0xffff)|0;it=((r(g,C)|0)+(X>>>16)|0)+(G>>>16)|0;ot=((r(l,A)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(g,A)|0)+(it>>>16)|0)+(ot>>>16)|0;G=ot<<16|nt&0xffff;nt=((r(l,N)|0)+(rt&0xffff)|0)+(q&0xffff)|0;it=((r(g,N)|0)+(rt>>>16)|0)+(q>>>16)|0;ot=((r(l,x)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(g,x)|0)+(it>>>16)|0)+(ot>>>16)|0;q=ot<<16|nt&0xffff;nt=((r(l,T)|0)+(rt&0xffff)|0)+(F&0xffff)|0;it=((r(g,T)|0)+(rt>>>16)|0)+(F>>>16)|0;ot=((r(l,I)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(g,I)|0)+(it>>>16)|0)+(ot>>>16)|0;F=ot<<16|nt&0xffff;nt=((r(l,L)|0)+(rt&0xffff)|0)+(B&0xffff)|0;it=((r(g,L)|0)+(rt>>>16)|0)+(B>>>16)|0;ot=((r(l,U)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(g,U)|0)+(it>>>16)|0)+(ot>>>16)|0;B=ot<<16|nt&0xffff;nt=((r(l,z)|0)+(rt&0xffff)|0)+(W&0xffff)|0;it=((r(g,z)|0)+(rt>>>16)|0)+(W>>>16)|0;ot=((r(l,D)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(g,D)|0)+(it>>>16)|0)+(ot>>>16)|0;W=ot<<16|nt&0xffff;nt=((r(l,w)|0)+(rt&0xffff)|0)+(H&0xffff)|0;it=((r(g,w)|0)+(rt>>>16)|0)+(H>>>16)|0;ot=((r(l,P)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(g,P)|0)+(it>>>16)|0)+(ot>>>16)|0;H=ot<<16|nt&0xffff;nt=((r(l,O)|0)+(rt&0xffff)|0)+(V&0xffff)|0;it=((r(g,O)|0)+(rt>>>16)|0)+(V>>>16)|0;ot=((r(l,M)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(g,M)|0)+(it>>>16)|0)+(ot>>>16)|0;V=ot<<16|nt&0xffff;nt=((r(l,R)|0)+(rt&0xffff)|0)+(K&0xffff)|0;it=((r(g,R)|0)+(rt>>>16)|0)+(K>>>16)|0;ot=((r(l,k)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(g,k)|0)+(it>>>16)|0)+(ot>>>16)|0;K=ot<<16|nt&0xffff;X=rt;nt=((r(u,C)|0)+(J&0xffff)|0)+(q&0xffff)|0;it=((r($,C)|0)+(J>>>16)|0)+(q>>>16)|0;ot=((r(u,A)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r($,A)|0)+(it>>>16)|0)+(ot>>>16)|0;q=ot<<16|nt&0xffff;nt=((r(u,N)|0)+(rt&0xffff)|0)+(F&0xffff)|0;it=((r($,N)|0)+(rt>>>16)|0)+(F>>>16)|0;ot=((r(u,x)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r($,x)|0)+(it>>>16)|0)+(ot>>>16)|0;F=ot<<16|nt&0xffff;nt=((r(u,T)|0)+(rt&0xffff)|0)+(B&0xffff)|0;it=((r($,T)|0)+(rt>>>16)|0)+(B>>>16)|0;ot=((r(u,I)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r($,I)|0)+(it>>>16)|0)+(ot>>>16)|0;B=ot<<16|nt&0xffff;nt=((r(u,L)|0)+(rt&0xffff)|0)+(W&0xffff)|0;it=((r($,L)|0)+(rt>>>16)|0)+(W>>>16)|0;ot=((r(u,U)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r($,U)|0)+(it>>>16)|0)+(ot>>>16)|0;W=ot<<16|nt&0xffff;nt=((r(u,z)|0)+(rt&0xffff)|0)+(H&0xffff)|0;it=((r($,z)|0)+(rt>>>16)|0)+(H>>>16)|0;ot=((r(u,D)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r($,D)|0)+(it>>>16)|0)+(ot>>>16)|0;H=ot<<16|nt&0xffff;nt=((r(u,w)|0)+(rt&0xffff)|0)+(V&0xffff)|0;it=((r($,w)|0)+(rt>>>16)|0)+(V>>>16)|0;ot=((r(u,P)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r($,P)|0)+(it>>>16)|0)+(ot>>>16)|0;V=ot<<16|nt&0xffff;nt=((r(u,O)|0)+(rt&0xffff)|0)+(K&0xffff)|0;it=((r($,O)|0)+(rt>>>16)|0)+(K>>>16)|0;ot=((r(u,M)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r($,M)|0)+(it>>>16)|0)+(ot>>>16)|0;K=ot<<16|nt&0xffff;nt=((r(u,R)|0)+(rt&0xffff)|0)+(X&0xffff)|0;it=((r($,R)|0)+(rt>>>16)|0)+(X>>>16)|0;ot=((r(u,k)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r($,k)|0)+(it>>>16)|0)+(ot>>>16)|0;X=ot<<16|nt&0xffff;J=rt;nt=((r(h,C)|0)+(Y&0xffff)|0)+(F&0xffff)|0;it=((r(E,C)|0)+(Y>>>16)|0)+(F>>>16)|0;ot=((r(h,A)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(E,A)|0)+(it>>>16)|0)+(ot>>>16)|0;F=ot<<16|nt&0xffff;nt=((r(h,N)|0)+(rt&0xffff)|0)+(B&0xffff)|0;it=((r(E,N)|0)+(rt>>>16)|0)+(B>>>16)|0;ot=((r(h,x)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(E,x)|0)+(it>>>16)|0)+(ot>>>16)|0;B=ot<<16|nt&0xffff;nt=((r(h,T)|0)+(rt&0xffff)|0)+(W&0xffff)|0;it=((r(E,T)|0)+(rt>>>16)|0)+(W>>>16)|0;ot=((r(h,I)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(E,I)|0)+(it>>>16)|0)+(ot>>>16)|0;W=ot<<16|nt&0xffff;nt=((r(h,L)|0)+(rt&0xffff)|0)+(H&0xffff)|0;it=((r(E,L)|0)+(rt>>>16)|0)+(H>>>16)|0;ot=((r(h,U)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(E,U)|0)+(it>>>16)|0)+(ot>>>16)|0;H=ot<<16|nt&0xffff;nt=((r(h,z)|0)+(rt&0xffff)|0)+(V&0xffff)|0;it=((r(E,z)|0)+(rt>>>16)|0)+(V>>>16)|0;ot=((r(h,D)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(E,D)|0)+(it>>>16)|0)+(ot>>>16)|0;V=ot<<16|nt&0xffff;nt=((r(h,w)|0)+(rt&0xffff)|0)+(K&0xffff)|0;it=((r(E,w)|0)+(rt>>>16)|0)+(K>>>16)|0;ot=((r(h,P)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(E,P)|0)+(it>>>16)|0)+(ot>>>16)|0;K=ot<<16|nt&0xffff;nt=((r(h,O)|0)+(rt&0xffff)|0)+(X&0xffff)|0;it=((r(E,O)|0)+(rt>>>16)|0)+(X>>>16)|0;ot=((r(h,M)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(E,M)|0)+(it>>>16)|0)+(ot>>>16)|0;X=ot<<16|nt&0xffff;nt=((r(h,R)|0)+(rt&0xffff)|0)+(J&0xffff)|0;it=((r(E,R)|0)+(rt>>>16)|0)+(J>>>16)|0;ot=((r(h,k)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(E,k)|0)+(it>>>16)|0)+(ot>>>16)|0;J=ot<<16|nt&0xffff;Y=rt;nt=((r(d,C)|0)+(Q&0xffff)|0)+(B&0xffff)|0;it=((r(y,C)|0)+(Q>>>16)|0)+(B>>>16)|0;ot=((r(d,A)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(y,A)|0)+(it>>>16)|0)+(ot>>>16)|0;B=ot<<16|nt&0xffff;nt=((r(d,N)|0)+(rt&0xffff)|0)+(W&0xffff)|0;it=((r(y,N)|0)+(rt>>>16)|0)+(W>>>16)|0;ot=((r(d,x)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(y,x)|0)+(it>>>16)|0)+(ot>>>16)|0;W=ot<<16|nt&0xffff;nt=((r(d,T)|0)+(rt&0xffff)|0)+(H&0xffff)|0;it=((r(y,T)|0)+(rt>>>16)|0)+(H>>>16)|0;ot=((r(d,I)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(y,I)|0)+(it>>>16)|0)+(ot>>>16)|0;H=ot<<16|nt&0xffff;nt=((r(d,L)|0)+(rt&0xffff)|0)+(V&0xffff)|0;it=((r(y,L)|0)+(rt>>>16)|0)+(V>>>16)|0;ot=((r(d,U)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(y,U)|0)+(it>>>16)|0)+(ot>>>16)|0;V=ot<<16|nt&0xffff;nt=((r(d,z)|0)+(rt&0xffff)|0)+(K&0xffff)|0;it=((r(y,z)|0)+(rt>>>16)|0)+(K>>>16)|0;ot=((r(d,D)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(y,D)|0)+(it>>>16)|0)+(ot>>>16)|0;K=ot<<16|nt&0xffff;nt=((r(d,w)|0)+(rt&0xffff)|0)+(X&0xffff)|0;it=((r(y,w)|0)+(rt>>>16)|0)+(X>>>16)|0;ot=((r(d,P)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(y,P)|0)+(it>>>16)|0)+(ot>>>16)|0;X=ot<<16|nt&0xffff;nt=((r(d,O)|0)+(rt&0xffff)|0)+(J&0xffff)|0;it=((r(y,O)|0)+(rt>>>16)|0)+(J>>>16)|0;ot=((r(d,M)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(y,M)|0)+(it>>>16)|0)+(ot>>>16)|0;J=ot<<16|nt&0xffff;nt=((r(d,R)|0)+(rt&0xffff)|0)+(Y&0xffff)|0;it=((r(y,R)|0)+(rt>>>16)|0)+(Y>>>16)|0;ot=((r(d,k)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(y,k)|0)+(it>>>16)|0)+(ot>>>16)|0;Y=ot<<16|nt&0xffff;Q=rt;nt=((r(p,C)|0)+(Z&0xffff)|0)+(W&0xffff)|0;it=((r(b,C)|0)+(Z>>>16)|0)+(W>>>16)|0;ot=((r(p,A)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(b,A)|0)+(it>>>16)|0)+(ot>>>16)|0;W=ot<<16|nt&0xffff;nt=((r(p,N)|0)+(rt&0xffff)|0)+(H&0xffff)|0;it=((r(b,N)|0)+(rt>>>16)|0)+(H>>>16)|0;ot=((r(p,x)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(b,x)|0)+(it>>>16)|0)+(ot>>>16)|0;H=ot<<16|nt&0xffff;nt=((r(p,T)|0)+(rt&0xffff)|0)+(V&0xffff)|0;it=((r(b,T)|0)+(rt>>>16)|0)+(V>>>16)|0;ot=((r(p,I)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(b,I)|0)+(it>>>16)|0)+(ot>>>16)|0;V=ot<<16|nt&0xffff;nt=((r(p,L)|0)+(rt&0xffff)|0)+(K&0xffff)|0;it=((r(b,L)|0)+(rt>>>16)|0)+(K>>>16)|0;ot=((r(p,U)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(b,U)|0)+(it>>>16)|0)+(ot>>>16)|0;K=ot<<16|nt&0xffff;nt=((r(p,z)|0)+(rt&0xffff)|0)+(X&0xffff)|0;it=((r(b,z)|0)+(rt>>>16)|0)+(X>>>16)|0;ot=((r(p,D)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(b,D)|0)+(it>>>16)|0)+(ot>>>16)|0;X=ot<<16|nt&0xffff;nt=((r(p,w)|0)+(rt&0xffff)|0)+(J&0xffff)|0;it=((r(b,w)|0)+(rt>>>16)|0)+(J>>>16)|0;ot=((r(p,P)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(b,P)|0)+(it>>>16)|0)+(ot>>>16)|0;J=ot<<16|nt&0xffff;nt=((r(p,O)|0)+(rt&0xffff)|0)+(Y&0xffff)|0;it=((r(b,O)|0)+(rt>>>16)|0)+(Y>>>16)|0;ot=((r(p,M)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(b,M)|0)+(it>>>16)|0)+(ot>>>16)|0;Y=ot<<16|nt&0xffff;nt=((r(p,R)|0)+(rt&0xffff)|0)+(Q&0xffff)|0;it=((r(b,R)|0)+(rt>>>16)|0)+(Q>>>16)|0;ot=((r(p,k)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(b,k)|0)+(it>>>16)|0)+(ot>>>16)|0;Q=ot<<16|nt&0xffff;Z=rt;nt=((r(_,C)|0)+(tt&0xffff)|0)+(H&0xffff)|0;it=((r(S,C)|0)+(tt>>>16)|0)+(H>>>16)|0;ot=((r(_,A)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(S,A)|0)+(it>>>16)|0)+(ot>>>16)|0;H=ot<<16|nt&0xffff;nt=((r(_,N)|0)+(rt&0xffff)|0)+(V&0xffff)|0;it=((r(S,N)|0)+(rt>>>16)|0)+(V>>>16)|0;ot=((r(_,x)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(S,x)|0)+(it>>>16)|0)+(ot>>>16)|0;V=ot<<16|nt&0xffff;nt=((r(_,T)|0)+(rt&0xffff)|0)+(K&0xffff)|0;it=((r(S,T)|0)+(rt>>>16)|0)+(K>>>16)|0;ot=((r(_,I)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(S,I)|0)+(it>>>16)|0)+(ot>>>16)|0;K=ot<<16|nt&0xffff;nt=((r(_,L)|0)+(rt&0xffff)|0)+(X&0xffff)|0;it=((r(S,L)|0)+(rt>>>16)|0)+(X>>>16)|0;ot=((r(_,U)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(S,U)|0)+(it>>>16)|0)+(ot>>>16)|0;X=ot<<16|nt&0xffff;nt=((r(_,z)|0)+(rt&0xffff)|0)+(J&0xffff)|0;it=((r(S,z)|0)+(rt>>>16)|0)+(J>>>16)|0;ot=((r(_,D)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(S,D)|0)+(it>>>16)|0)+(ot>>>16)|0;J=ot<<16|nt&0xffff;nt=((r(_,w)|0)+(rt&0xffff)|0)+(Y&0xffff)|0;it=((r(S,w)|0)+(rt>>>16)|0)+(Y>>>16)|0;ot=((r(_,P)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(S,P)|0)+(it>>>16)|0)+(ot>>>16)|0;Y=ot<<16|nt&0xffff;nt=((r(_,O)|0)+(rt&0xffff)|0)+(Q&0xffff)|0;it=((r(S,O)|0)+(rt>>>16)|0)+(Q>>>16)|0;ot=((r(_,M)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(S,M)|0)+(it>>>16)|0)+(ot>>>16)|0;Q=ot<<16|nt&0xffff;nt=((r(_,R)|0)+(rt&0xffff)|0)+(Z&0xffff)|0;it=((r(S,R)|0)+(rt>>>16)|0)+(Z>>>16)|0;ot=((r(_,k)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(S,k)|0)+(it>>>16)|0)+(ot>>>16)|0;Z=ot<<16|nt&0xffff;tt=rt;nt=((r(m,C)|0)+(et&0xffff)|0)+(V&0xffff)|0;it=((r(v,C)|0)+(et>>>16)|0)+(V>>>16)|0;ot=((r(m,A)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(v,A)|0)+(it>>>16)|0)+(ot>>>16)|0;V=ot<<16|nt&0xffff;nt=((r(m,N)|0)+(rt&0xffff)|0)+(K&0xffff)|0;it=((r(v,N)|0)+(rt>>>16)|0)+(K>>>16)|0;ot=((r(m,x)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(v,x)|0)+(it>>>16)|0)+(ot>>>16)|0;K=ot<<16|nt&0xffff;nt=((r(m,T)|0)+(rt&0xffff)|0)+(X&0xffff)|0;it=((r(v,T)|0)+(rt>>>16)|0)+(X>>>16)|0;ot=((r(m,I)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(v,I)|0)+(it>>>16)|0)+(ot>>>16)|0;X=ot<<16|nt&0xffff;nt=((r(m,L)|0)+(rt&0xffff)|0)+(J&0xffff)|0;it=((r(v,L)|0)+(rt>>>16)|0)+(J>>>16)|0;ot=((r(m,U)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(v,U)|0)+(it>>>16)|0)+(ot>>>16)|0;J=ot<<16|nt&0xffff;nt=((r(m,z)|0)+(rt&0xffff)|0)+(Y&0xffff)|0;it=((r(v,z)|0)+(rt>>>16)|0)+(Y>>>16)|0;ot=((r(m,D)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(v,D)|0)+(it>>>16)|0)+(ot>>>16)|0;Y=ot<<16|nt&0xffff;nt=((r(m,w)|0)+(rt&0xffff)|0)+(Q&0xffff)|0;it=((r(v,w)|0)+(rt>>>16)|0)+(Q>>>16)|0;ot=((r(m,P)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(v,P)|0)+(it>>>16)|0)+(ot>>>16)|0;Q=ot<<16|nt&0xffff;nt=((r(m,O)|0)+(rt&0xffff)|0)+(Z&0xffff)|0;it=((r(v,O)|0)+(rt>>>16)|0)+(Z>>>16)|0;ot=((r(m,M)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(v,M)|0)+(it>>>16)|0)+(ot>>>16)|0;Z=ot<<16|nt&0xffff;nt=((r(m,R)|0)+(rt&0xffff)|0)+(tt&0xffff)|0;it=((r(v,R)|0)+(rt>>>16)|0)+(tt>>>16)|0;ot=((r(m,k)|0)+(it&0xffff)|0)+(nt>>>16)|0;rt=((r(v,k)|0)+(it>>>16)|0)+(ot>>>16)|0;tt=ot<<16|nt&0xffff;et=rt;o[(ut|0)>>2]=j,o[(ut|4)>>2]=G,o[(ut|8)>>2]=q,o[(ut|12)>>2]=F,o[(ut|16)>>2]=B,o[(ut|20)>>2]=W,o[(ut|24)>>2]=H,o[(ut|28)>>2]=V}ut=s+(st+ct|0)|0;o[(ut|0)>>2]=K,o[(ut|4)>>2]=X,o[(ut|8)>>2]=J,o[(ut|12)>>2]=Y,o[(ut|16)>>2]=Q,o[(ut|20)>>2]=Z,o[(ut|24)>>2]=tt,o[(ut|28)>>2]=et}}function g(t,e,n){t=t|0;e=e|0;n=n|0;var i=0,s=0,a=0,c=0,l=0,u=0,h=0,d=0,p=0,_=0,m=0,f=0,g=0,$=0,E=0,y=0,b=0,S=0,v=0,C=0,N=0,T=0,L=0,z=0,w=0,O=0,R=0,A=0,x=0,I=0,U=0,D=0,P=0,M=0,k=0,j=0,G=0,q=0,F=0,B=0,W=0,H=0,V=0,K=0,X=0,J=0,Y=0,Q=0,Z=0,tt=0,et=0,nt=0,it=0,ot=0,rt=0,st=0,at=0,ct=0,lt=0,ut=0,ht=0,dt=0,pt=0,_t=0;for(;(lt|0)<(e|0);lt=lt+4|0){_t=n+(lt<<1)|0;p=o[t+lt>>2]|0,i=p&0xffff,p=p>>>16;Z=r(i,i)|0;tt=(r(i,p)|0)+(Z>>>17)|0;et=(r(p,p)|0)+(tt>>>15)|0;o[_t>>2]=tt<<17|Z&0x1ffff;o[(_t|4)>>2]=et}for(ct=0;(ct|0)<(e|0);ct=ct+8|0){dt=t+ct|0,_t=n+(ct<<1)|0;p=o[dt>>2]|0,i=p&0xffff,p=p>>>16;w=o[(dt|4)>>2]|0,b=w&0xffff,w=w>>>16;Z=r(i,b)|0;tt=(r(i,w)|0)+(Z>>>16)|0;et=(r(p,b)|0)+(tt&0xffff)|0;ot=((r(p,w)|0)+(tt>>>16)|0)+(et>>>16)|0;rt=o[(_t|4)>>2]|0;Z=(rt&0xffff)+((Z&0xffff)<<1)|0;et=((rt>>>16)+((et&0xffff)<<1)|0)+(Z>>>16)|0;o[(_t|4)>>2]=et<<16|Z&0xffff;nt=et>>>16;rt=o[(_t|8)>>2]|0;Z=((rt&0xffff)+((ot&0xffff)<<1)|0)+nt|0;et=((rt>>>16)+(ot>>>16<<1)|0)+(Z>>>16)|0;o[(_t|8)>>2]=et<<16|Z&0xffff;nt=et>>>16;if(nt){rt=o[(_t|12)>>2]|0;Z=(rt&0xffff)+nt|0;et=(rt>>>16)+(Z>>>16)|0;o[(_t|12)>>2]=et<<16|Z&0xffff}}for(ct=0;(ct|0)<(e|0);ct=ct+16|0){dt=t+ct|0,_t=n+(ct<<1)|0;p=o[dt>>2]|0,i=p&0xffff,p=p>>>16,_=o[(dt|4)>>2]|0,s=_&0xffff,_=_>>>16;w=o[(dt|8)>>2]|0,b=w&0xffff,w=w>>>16,O=o[(dt|12)>>2]|0,S=O&0xffff,O=O>>>16;Z=r(i,b)|0;tt=r(p,b)|0;et=((r(i,w)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(p,w)|0)+(tt>>>16)|0)+(et>>>16)|0;P=et<<16|Z&0xffff;Z=(r(i,S)|0)+(ot&0xffff)|0;tt=(r(p,S)|0)+(ot>>>16)|0;et=((r(i,O)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(p,O)|0)+(tt>>>16)|0)+(et>>>16)|0;M=et<<16|Z&0xffff;k=ot;Z=(r(s,b)|0)+(M&0xffff)|0;tt=(r(_,b)|0)+(M>>>16)|0;et=((r(s,w)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(_,w)|0)+(tt>>>16)|0)+(et>>>16)|0;M=et<<16|Z&0xffff;Z=((r(s,S)|0)+(k&0xffff)|0)+(ot&0xffff)|0;tt=((r(_,S)|0)+(k>>>16)|0)+(ot>>>16)|0;et=((r(s,O)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(_,O)|0)+(tt>>>16)|0)+(et>>>16)|0;k=et<<16|Z&0xffff;j=ot;rt=o[(_t|8)>>2]|0;Z=(rt&0xffff)+((P&0xffff)<<1)|0;et=((rt>>>16)+(P>>>16<<1)|0)+(Z>>>16)|0;o[(_t|8)>>2]=et<<16|Z&0xffff;nt=et>>>16;rt=o[(_t|12)>>2]|0;Z=((rt&0xffff)+((M&0xffff)<<1)|0)+nt|0;et=((rt>>>16)+(M>>>16<<1)|0)+(Z>>>16)|0;o[(_t|12)>>2]=et<<16|Z&0xffff;nt=et>>>16;rt=o[(_t|16)>>2]|0;Z=((rt&0xffff)+((k&0xffff)<<1)|0)+nt|0;et=((rt>>>16)+(k>>>16<<1)|0)+(Z>>>16)|0;o[(_t|16)>>2]=et<<16|Z&0xffff;nt=et>>>16;rt=o[(_t|20)>>2]|0;Z=((rt&0xffff)+((j&0xffff)<<1)|0)+nt|0;et=((rt>>>16)+(j>>>16<<1)|0)+(Z>>>16)|0;o[(_t|20)>>2]=et<<16|Z&0xffff;nt=et>>>16;for(ht=24;!!nt&(ht|0)<32;ht=ht+4|0){rt=o[(_t|ht)>>2]|0;Z=(rt&0xffff)+nt|0;et=(rt>>>16)+(Z>>>16)|0;o[(_t|ht)>>2]=et<<16|Z&0xffff;nt=et>>>16}}for(ct=0;(ct|0)<(e|0);ct=ct+32|0){dt=t+ct|0,_t=n+(ct<<1)|0;p=o[dt>>2]|0,i=p&0xffff,p=p>>>16,_=o[(dt|4)>>2]|0,s=_&0xffff,_=_>>>16,m=o[(dt|8)>>2]|0,a=m&0xffff,m=m>>>16,f=o[(dt|12)>>2]|0,c=f&0xffff,f=f>>>16;w=o[(dt|16)>>2]|0,b=w&0xffff,w=w>>>16,O=o[(dt|20)>>2]|0,S=O&0xffff,O=O>>>16,R=o[(dt|24)>>2]|0,v=R&0xffff,R=R>>>16,A=o[(dt|28)>>2]|0,C=A&0xffff,A=A>>>16;Z=r(i,b)|0;tt=r(p,b)|0;et=((r(i,w)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(p,w)|0)+(tt>>>16)|0)+(et>>>16)|0;P=et<<16|Z&0xffff;Z=(r(i,S)|0)+(ot&0xffff)|0;tt=(r(p,S)|0)+(ot>>>16)|0;et=((r(i,O)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(p,O)|0)+(tt>>>16)|0)+(et>>>16)|0;M=et<<16|Z&0xffff;Z=(r(i,v)|0)+(ot&0xffff)|0;tt=(r(p,v)|0)+(ot>>>16)|0;et=((r(i,R)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(p,R)|0)+(tt>>>16)|0)+(et>>>16)|0;k=et<<16|Z&0xffff;Z=(r(i,C)|0)+(ot&0xffff)|0;tt=(r(p,C)|0)+(ot>>>16)|0;et=((r(i,A)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(p,A)|0)+(tt>>>16)|0)+(et>>>16)|0;j=et<<16|Z&0xffff;G=ot;Z=(r(s,b)|0)+(M&0xffff)|0;tt=(r(_,b)|0)+(M>>>16)|0;et=((r(s,w)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(_,w)|0)+(tt>>>16)|0)+(et>>>16)|0;M=et<<16|Z&0xffff;Z=((r(s,S)|0)+(k&0xffff)|0)+(ot&0xffff)|0;tt=((r(_,S)|0)+(k>>>16)|0)+(ot>>>16)|0;et=((r(s,O)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(_,O)|0)+(tt>>>16)|0)+(et>>>16)|0;k=et<<16|Z&0xffff;Z=((r(s,v)|0)+(j&0xffff)|0)+(ot&0xffff)|0;tt=((r(_,v)|0)+(j>>>16)|0)+(ot>>>16)|0;et=((r(s,R)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(_,R)|0)+(tt>>>16)|0)+(et>>>16)|0;j=et<<16|Z&0xffff;Z=((r(s,C)|0)+(G&0xffff)|0)+(ot&0xffff)|0;tt=((r(_,C)|0)+(G>>>16)|0)+(ot>>>16)|0;et=((r(s,A)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(_,A)|0)+(tt>>>16)|0)+(et>>>16)|0;G=et<<16|Z&0xffff;q=ot;Z=(r(a,b)|0)+(k&0xffff)|0;tt=(r(m,b)|0)+(k>>>16)|0;et=((r(a,w)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(m,w)|0)+(tt>>>16)|0)+(et>>>16)|0;k=et<<16|Z&0xffff;Z=((r(a,S)|0)+(j&0xffff)|0)+(ot&0xffff)|0;tt=((r(m,S)|0)+(j>>>16)|0)+(ot>>>16)|0;et=((r(a,O)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(m,O)|0)+(tt>>>16)|0)+(et>>>16)|0;j=et<<16|Z&0xffff;Z=((r(a,v)|0)+(G&0xffff)|0)+(ot&0xffff)|0;tt=((r(m,v)|0)+(G>>>16)|0)+(ot>>>16)|0;et=((r(a,R)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(m,R)|0)+(tt>>>16)|0)+(et>>>16)|0;G=et<<16|Z&0xffff;Z=((r(a,C)|0)+(q&0xffff)|0)+(ot&0xffff)|0;tt=((r(m,C)|0)+(q>>>16)|0)+(ot>>>16)|0;et=((r(a,A)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(m,A)|0)+(tt>>>16)|0)+(et>>>16)|0;q=et<<16|Z&0xffff;F=ot;Z=(r(c,b)|0)+(j&0xffff)|0;tt=(r(f,b)|0)+(j>>>16)|0;et=((r(c,w)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(f,w)|0)+(tt>>>16)|0)+(et>>>16)|0;j=et<<16|Z&0xffff;Z=((r(c,S)|0)+(G&0xffff)|0)+(ot&0xffff)|0;tt=((r(f,S)|0)+(G>>>16)|0)+(ot>>>16)|0;et=((r(c,O)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(f,O)|0)+(tt>>>16)|0)+(et>>>16)|0;G=et<<16|Z&0xffff;Z=((r(c,v)|0)+(q&0xffff)|0)+(ot&0xffff)|0;tt=((r(f,v)|0)+(q>>>16)|0)+(ot>>>16)|0;et=((r(c,R)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(f,R)|0)+(tt>>>16)|0)+(et>>>16)|0;q=et<<16|Z&0xffff;Z=((r(c,C)|0)+(F&0xffff)|0)+(ot&0xffff)|0;tt=((r(f,C)|0)+(F>>>16)|0)+(ot>>>16)|0;et=((r(c,A)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(f,A)|0)+(tt>>>16)|0)+(et>>>16)|0;F=et<<16|Z&0xffff;B=ot;rt=o[(_t|16)>>2]|0;Z=(rt&0xffff)+((P&0xffff)<<1)|0;et=((rt>>>16)+(P>>>16<<1)|0)+(Z>>>16)|0;o[(_t|16)>>2]=et<<16|Z&0xffff;nt=et>>>16;rt=o[(_t|20)>>2]|0;Z=((rt&0xffff)+((M&0xffff)<<1)|0)+nt|0;et=((rt>>>16)+(M>>>16<<1)|0)+(Z>>>16)|0;o[(_t|20)>>2]=et<<16|Z&0xffff;nt=et>>>16;rt=o[(_t|24)>>2]|0;Z=((rt&0xffff)+((k&0xffff)<<1)|0)+nt|0;et=((rt>>>16)+(k>>>16<<1)|0)+(Z>>>16)|0;o[(_t|24)>>2]=et<<16|Z&0xffff;nt=et>>>16;rt=o[(_t|28)>>2]|0;Z=((rt&0xffff)+((j&0xffff)<<1)|0)+nt|0;et=((rt>>>16)+(j>>>16<<1)|0)+(Z>>>16)|0;o[(_t|28)>>2]=et<<16|Z&0xffff;nt=et>>>16;rt=o[_t+32>>2]|0;Z=((rt&0xffff)+((G&0xffff)<<1)|0)+nt|0;et=((rt>>>16)+(G>>>16<<1)|0)+(Z>>>16)|0;o[_t+32>>2]=et<<16|Z&0xffff;nt=et>>>16;rt=o[_t+36>>2]|0;Z=((rt&0xffff)+((q&0xffff)<<1)|0)+nt|0;et=((rt>>>16)+(q>>>16<<1)|0)+(Z>>>16)|0;o[_t+36>>2]=et<<16|Z&0xffff;nt=et>>>16;rt=o[_t+40>>2]|0;Z=((rt&0xffff)+((F&0xffff)<<1)|0)+nt|0;et=((rt>>>16)+(F>>>16<<1)|0)+(Z>>>16)|0;o[_t+40>>2]=et<<16|Z&0xffff;nt=et>>>16;rt=o[_t+44>>2]|0;Z=((rt&0xffff)+((B&0xffff)<<1)|0)+nt|0;et=((rt>>>16)+(B>>>16<<1)|0)+(Z>>>16)|0;o[_t+44>>2]=et<<16|Z&0xffff;nt=et>>>16;for(ht=48;!!nt&(ht|0)<64;ht=ht+4|0){rt=o[_t+ht>>2]|0;Z=(rt&0xffff)+nt|0;et=(rt>>>16)+(Z>>>16)|0;o[_t+ht>>2]=et<<16|Z&0xffff;nt=et>>>16}}for(st=32;(st|0)<(e|0);st=st<<1){at=st<<1;for(ct=0;(ct|0)<(e|0);ct=ct+at|0){_t=n+(ct<<1)|0;it=0;for(lt=0;(lt|0)<(st|0);lt=lt+32|0){dt=(t+ct|0)+lt|0;p=o[dt>>2]|0,i=p&0xffff,p=p>>>16,_=o[(dt|4)>>2]|0,s=_&0xffff,_=_>>>16,m=o[(dt|8)>>2]|0,a=m&0xffff,m=m>>>16,f=o[(dt|12)>>2]|0,c=f&0xffff,f=f>>>16,g=o[(dt|16)>>2]|0,l=g&0xffff,g=g>>>16,$=o[(dt|20)>>2]|0,u=$&0xffff,$=$>>>16,E=o[(dt|24)>>2]|0,h=E&0xffff,E=E>>>16,y=o[(dt|28)>>2]|0,d=y&0xffff,y=y>>>16;W=H=V=K=X=J=Y=Q=nt=0;for(ut=0;(ut|0)<(st|0);ut=ut+32|0){pt=((t+ct|0)+st|0)+ut|0;w=o[pt>>2]|0,b=w&0xffff,w=w>>>16,O=o[(pt|4)>>2]|0,S=O&0xffff,O=O>>>16,R=o[(pt|8)>>2]|0,v=R&0xffff,R=R>>>16,A=o[(pt|12)>>2]|0,C=A&0xffff,A=A>>>16,x=o[(pt|16)>>2]|0,N=x&0xffff,x=x>>>16,I=o[(pt|20)>>2]|0,T=I&0xffff,I=I>>>16,U=o[(pt|24)>>2]|0,L=U&0xffff,U=U>>>16,D=o[(pt|28)>>2]|0,z=D&0xffff,D=D>>>16;P=M=k=j=G=q=F=B=0;Z=((r(i,b)|0)+(P&0xffff)|0)+(W&0xffff)|0;tt=((r(p,b)|0)+(P>>>16)|0)+(W>>>16)|0;et=((r(i,w)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(p,w)|0)+(tt>>>16)|0)+(et>>>16)|0;P=et<<16|Z&0xffff;Z=((r(i,S)|0)+(M&0xffff)|0)+(ot&0xffff)|0;tt=((r(p,S)|0)+(M>>>16)|0)+(ot>>>16)|0;et=((r(i,O)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(p,O)|0)+(tt>>>16)|0)+(et>>>16)|0;M=et<<16|Z&0xffff;Z=((r(i,v)|0)+(k&0xffff)|0)+(ot&0xffff)|0;tt=((r(p,v)|0)+(k>>>16)|0)+(ot>>>16)|0;et=((r(i,R)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(p,R)|0)+(tt>>>16)|0)+(et>>>16)|0;k=et<<16|Z&0xffff;Z=((r(i,C)|0)+(j&0xffff)|0)+(ot&0xffff)|0;tt=((r(p,C)|0)+(j>>>16)|0)+(ot>>>16)|0;et=((r(i,A)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(p,A)|0)+(tt>>>16)|0)+(et>>>16)|0;j=et<<16|Z&0xffff;Z=((r(i,N)|0)+(G&0xffff)|0)+(ot&0xffff)|0;tt=((r(p,N)|0)+(G>>>16)|0)+(ot>>>16)|0;et=((r(i,x)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(p,x)|0)+(tt>>>16)|0)+(et>>>16)|0;G=et<<16|Z&0xffff;Z=((r(i,T)|0)+(q&0xffff)|0)+(ot&0xffff)|0;tt=((r(p,T)|0)+(q>>>16)|0)+(ot>>>16)|0;et=((r(i,I)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(p,I)|0)+(tt>>>16)|0)+(et>>>16)|0;q=et<<16|Z&0xffff;Z=((r(i,L)|0)+(F&0xffff)|0)+(ot&0xffff)|0;tt=((r(p,L)|0)+(F>>>16)|0)+(ot>>>16)|0;et=((r(i,U)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(p,U)|0)+(tt>>>16)|0)+(et>>>16)|0;F=et<<16|Z&0xffff;Z=((r(i,z)|0)+(B&0xffff)|0)+(ot&0xffff)|0;tt=((r(p,z)|0)+(B>>>16)|0)+(ot>>>16)|0;et=((r(i,D)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(p,D)|0)+(tt>>>16)|0)+(et>>>16)|0;B=et<<16|Z&0xffff;W=ot;Z=((r(s,b)|0)+(M&0xffff)|0)+(H&0xffff)|0;tt=((r(_,b)|0)+(M>>>16)|0)+(H>>>16)|0;et=((r(s,w)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(_,w)|0)+(tt>>>16)|0)+(et>>>16)|0;M=et<<16|Z&0xffff;Z=((r(s,S)|0)+(k&0xffff)|0)+(ot&0xffff)|0;tt=((r(_,S)|0)+(k>>>16)|0)+(ot>>>16)|0;et=((r(s,O)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(_,O)|0)+(tt>>>16)|0)+(et>>>16)|0;k=et<<16|Z&0xffff;Z=((r(s,v)|0)+(j&0xffff)|0)+(ot&0xffff)|0;tt=((r(_,v)|0)+(j>>>16)|0)+(ot>>>16)|0;et=((r(s,R)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(_,R)|0)+(tt>>>16)|0)+(et>>>16)|0;j=et<<16|Z&0xffff;Z=((r(s,C)|0)+(G&0xffff)|0)+(ot&0xffff)|0;tt=((r(_,C)|0)+(G>>>16)|0)+(ot>>>16)|0;et=((r(s,A)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(_,A)|0)+(tt>>>16)|0)+(et>>>16)|0;G=et<<16|Z&0xffff;Z=((r(s,N)|0)+(q&0xffff)|0)+(ot&0xffff)|0;tt=((r(_,N)|0)+(q>>>16)|0)+(ot>>>16)|0;et=((r(s,x)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(_,x)|0)+(tt>>>16)|0)+(et>>>16)|0;q=et<<16|Z&0xffff;Z=((r(s,T)|0)+(F&0xffff)|0)+(ot&0xffff)|0;tt=((r(_,T)|0)+(F>>>16)|0)+(ot>>>16)|0;et=((r(s,I)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(_,I)|0)+(tt>>>16)|0)+(et>>>16)|0;F=et<<16|Z&0xffff;Z=((r(s,L)|0)+(B&0xffff)|0)+(ot&0xffff)|0;tt=((r(_,L)|0)+(B>>>16)|0)+(ot>>>16)|0;et=((r(s,U)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(_,U)|0)+(tt>>>16)|0)+(et>>>16)|0;B=et<<16|Z&0xffff;Z=((r(s,z)|0)+(W&0xffff)|0)+(ot&0xffff)|0;tt=((r(_,z)|0)+(W>>>16)|0)+(ot>>>16)|0;et=((r(s,D)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(_,D)|0)+(tt>>>16)|0)+(et>>>16)|0;W=et<<16|Z&0xffff;H=ot;Z=((r(a,b)|0)+(k&0xffff)|0)+(V&0xffff)|0;tt=((r(m,b)|0)+(k>>>16)|0)+(V>>>16)|0;et=((r(a,w)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(m,w)|0)+(tt>>>16)|0)+(et>>>16)|0;k=et<<16|Z&0xffff;Z=((r(a,S)|0)+(j&0xffff)|0)+(ot&0xffff)|0;tt=((r(m,S)|0)+(j>>>16)|0)+(ot>>>16)|0;et=((r(a,O)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(m,O)|0)+(tt>>>16)|0)+(et>>>16)|0;j=et<<16|Z&0xffff;Z=((r(a,v)|0)+(G&0xffff)|0)+(ot&0xffff)|0;tt=((r(m,v)|0)+(G>>>16)|0)+(ot>>>16)|0;et=((r(a,R)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(m,R)|0)+(tt>>>16)|0)+(et>>>16)|0;G=et<<16|Z&0xffff;Z=((r(a,C)|0)+(q&0xffff)|0)+(ot&0xffff)|0;tt=((r(m,C)|0)+(q>>>16)|0)+(ot>>>16)|0;et=((r(a,A)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(m,A)|0)+(tt>>>16)|0)+(et>>>16)|0;q=et<<16|Z&0xffff;Z=((r(a,N)|0)+(F&0xffff)|0)+(ot&0xffff)|0;tt=((r(m,N)|0)+(F>>>16)|0)+(ot>>>16)|0;et=((r(a,x)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(m,x)|0)+(tt>>>16)|0)+(et>>>16)|0;F=et<<16|Z&0xffff;Z=((r(a,T)|0)+(B&0xffff)|0)+(ot&0xffff)|0;tt=((r(m,T)|0)+(B>>>16)|0)+(ot>>>16)|0;et=((r(a,I)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(m,I)|0)+(tt>>>16)|0)+(et>>>16)|0;B=et<<16|Z&0xffff;Z=((r(a,L)|0)+(W&0xffff)|0)+(ot&0xffff)|0;tt=((r(m,L)|0)+(W>>>16)|0)+(ot>>>16)|0;et=((r(a,U)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(m,U)|0)+(tt>>>16)|0)+(et>>>16)|0;W=et<<16|Z&0xffff;Z=((r(a,z)|0)+(H&0xffff)|0)+(ot&0xffff)|0;tt=((r(m,z)|0)+(H>>>16)|0)+(ot>>>16)|0;et=((r(a,D)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(m,D)|0)+(tt>>>16)|0)+(et>>>16)|0;H=et<<16|Z&0xffff;V=ot;Z=((r(c,b)|0)+(j&0xffff)|0)+(K&0xffff)|0;tt=((r(f,b)|0)+(j>>>16)|0)+(K>>>16)|0;et=((r(c,w)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(f,w)|0)+(tt>>>16)|0)+(et>>>16)|0;j=et<<16|Z&0xffff;Z=((r(c,S)|0)+(G&0xffff)|0)+(ot&0xffff)|0;tt=((r(f,S)|0)+(G>>>16)|0)+(ot>>>16)|0;et=((r(c,O)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(f,O)|0)+(tt>>>16)|0)+(et>>>16)|0;G=et<<16|Z&0xffff;Z=((r(c,v)|0)+(q&0xffff)|0)+(ot&0xffff)|0;tt=((r(f,v)|0)+(q>>>16)|0)+(ot>>>16)|0;et=((r(c,R)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(f,R)|0)+(tt>>>16)|0)+(et>>>16)|0;q=et<<16|Z&0xffff;Z=((r(c,C)|0)+(F&0xffff)|0)+(ot&0xffff)|0;tt=((r(f,C)|0)+(F>>>16)|0)+(ot>>>16)|0;et=((r(c,A)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(f,A)|0)+(tt>>>16)|0)+(et>>>16)|0;F=et<<16|Z&0xffff;Z=((r(c,N)|0)+(B&0xffff)|0)+(ot&0xffff)|0;tt=((r(f,N)|0)+(B>>>16)|0)+(ot>>>16)|0;et=((r(c,x)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(f,x)|0)+(tt>>>16)|0)+(et>>>16)|0;B=et<<16|Z&0xffff;Z=((r(c,T)|0)+(W&0xffff)|0)+(ot&0xffff)|0;tt=((r(f,T)|0)+(W>>>16)|0)+(ot>>>16)|0;et=((r(c,I)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(f,I)|0)+(tt>>>16)|0)+(et>>>16)|0;W=et<<16|Z&0xffff;Z=((r(c,L)|0)+(H&0xffff)|0)+(ot&0xffff)|0;tt=((r(f,L)|0)+(H>>>16)|0)+(ot>>>16)|0;et=((r(c,U)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(f,U)|0)+(tt>>>16)|0)+(et>>>16)|0;H=et<<16|Z&0xffff;Z=((r(c,z)|0)+(V&0xffff)|0)+(ot&0xffff)|0;tt=((r(f,z)|0)+(V>>>16)|0)+(ot>>>16)|0;et=((r(c,D)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(f,D)|0)+(tt>>>16)|0)+(et>>>16)|0;V=et<<16|Z&0xffff;K=ot;Z=((r(l,b)|0)+(G&0xffff)|0)+(X&0xffff)|0;tt=((r(g,b)|0)+(G>>>16)|0)+(X>>>16)|0;et=((r(l,w)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(g,w)|0)+(tt>>>16)|0)+(et>>>16)|0;G=et<<16|Z&0xffff;Z=((r(l,S)|0)+(q&0xffff)|0)+(ot&0xffff)|0;tt=((r(g,S)|0)+(q>>>16)|0)+(ot>>>16)|0;et=((r(l,O)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(g,O)|0)+(tt>>>16)|0)+(et>>>16)|0;q=et<<16|Z&0xffff;Z=((r(l,v)|0)+(F&0xffff)|0)+(ot&0xffff)|0;tt=((r(g,v)|0)+(F>>>16)|0)+(ot>>>16)|0;et=((r(l,R)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(g,R)|0)+(tt>>>16)|0)+(et>>>16)|0;F=et<<16|Z&0xffff;Z=((r(l,C)|0)+(B&0xffff)|0)+(ot&0xffff)|0;tt=((r(g,C)|0)+(B>>>16)|0)+(ot>>>16)|0;et=((r(l,A)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(g,A)|0)+(tt>>>16)|0)+(et>>>16)|0;B=et<<16|Z&0xffff;Z=((r(l,N)|0)+(W&0xffff)|0)+(ot&0xffff)|0;tt=((r(g,N)|0)+(W>>>16)|0)+(ot>>>16)|0;et=((r(l,x)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(g,x)|0)+(tt>>>16)|0)+(et>>>16)|0;W=et<<16|Z&0xffff;Z=((r(l,T)|0)+(H&0xffff)|0)+(ot&0xffff)|0;tt=((r(g,T)|0)+(H>>>16)|0)+(ot>>>16)|0;et=((r(l,I)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(g,I)|0)+(tt>>>16)|0)+(et>>>16)|0;H=et<<16|Z&0xffff;Z=((r(l,L)|0)+(V&0xffff)|0)+(ot&0xffff)|0;tt=((r(g,L)|0)+(V>>>16)|0)+(ot>>>16)|0;et=((r(l,U)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(g,U)|0)+(tt>>>16)|0)+(et>>>16)|0;V=et<<16|Z&0xffff;Z=((r(l,z)|0)+(K&0xffff)|0)+(ot&0xffff)|0;tt=((r(g,z)|0)+(K>>>16)|0)+(ot>>>16)|0;et=((r(l,D)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(g,D)|0)+(tt>>>16)|0)+(et>>>16)|0;K=et<<16|Z&0xffff;X=ot;Z=((r(u,b)|0)+(q&0xffff)|0)+(J&0xffff)|0;tt=((r($,b)|0)+(q>>>16)|0)+(J>>>16)|0;et=((r(u,w)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r($,w)|0)+(tt>>>16)|0)+(et>>>16)|0;q=et<<16|Z&0xffff;Z=((r(u,S)|0)+(F&0xffff)|0)+(ot&0xffff)|0;tt=((r($,S)|0)+(F>>>16)|0)+(ot>>>16)|0;et=((r(u,O)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r($,O)|0)+(tt>>>16)|0)+(et>>>16)|0;F=et<<16|Z&0xffff;Z=((r(u,v)|0)+(B&0xffff)|0)+(ot&0xffff)|0;tt=((r($,v)|0)+(B>>>16)|0)+(ot>>>16)|0;et=((r(u,R)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r($,R)|0)+(tt>>>16)|0)+(et>>>16)|0;B=et<<16|Z&0xffff;Z=((r(u,C)|0)+(W&0xffff)|0)+(ot&0xffff)|0;tt=((r($,C)|0)+(W>>>16)|0)+(ot>>>16)|0;et=((r(u,A)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r($,A)|0)+(tt>>>16)|0)+(et>>>16)|0;W=et<<16|Z&0xffff;Z=((r(u,N)|0)+(H&0xffff)|0)+(ot&0xffff)|0;tt=((r($,N)|0)+(H>>>16)|0)+(ot>>>16)|0;et=((r(u,x)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r($,x)|0)+(tt>>>16)|0)+(et>>>16)|0;H=et<<16|Z&0xffff;Z=((r(u,T)|0)+(V&0xffff)|0)+(ot&0xffff)|0;tt=((r($,T)|0)+(V>>>16)|0)+(ot>>>16)|0;et=((r(u,I)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r($,I)|0)+(tt>>>16)|0)+(et>>>16)|0;V=et<<16|Z&0xffff;Z=((r(u,L)|0)+(K&0xffff)|0)+(ot&0xffff)|0;tt=((r($,L)|0)+(K>>>16)|0)+(ot>>>16)|0;et=((r(u,U)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r($,U)|0)+(tt>>>16)|0)+(et>>>16)|0;K=et<<16|Z&0xffff;Z=((r(u,z)|0)+(X&0xffff)|0)+(ot&0xffff)|0;tt=((r($,z)|0)+(X>>>16)|0)+(ot>>>16)|0;et=((r(u,D)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r($,D)|0)+(tt>>>16)|0)+(et>>>16)|0;X=et<<16|Z&0xffff;J=ot;Z=((r(h,b)|0)+(F&0xffff)|0)+(Y&0xffff)|0;tt=((r(E,b)|0)+(F>>>16)|0)+(Y>>>16)|0;et=((r(h,w)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(E,w)|0)+(tt>>>16)|0)+(et>>>16)|0;F=et<<16|Z&0xffff;Z=((r(h,S)|0)+(B&0xffff)|0)+(ot&0xffff)|0;tt=((r(E,S)|0)+(B>>>16)|0)+(ot>>>16)|0;et=((r(h,O)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(E,O)|0)+(tt>>>16)|0)+(et>>>16)|0;B=et<<16|Z&0xffff;Z=((r(h,v)|0)+(W&0xffff)|0)+(ot&0xffff)|0;tt=((r(E,v)|0)+(W>>>16)|0)+(ot>>>16)|0;et=((r(h,R)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(E,R)|0)+(tt>>>16)|0)+(et>>>16)|0;W=et<<16|Z&0xffff;Z=((r(h,C)|0)+(H&0xffff)|0)+(ot&0xffff)|0;tt=((r(E,C)|0)+(H>>>16)|0)+(ot>>>16)|0;et=((r(h,A)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(E,A)|0)+(tt>>>16)|0)+(et>>>16)|0;H=et<<16|Z&0xffff;Z=((r(h,N)|0)+(V&0xffff)|0)+(ot&0xffff)|0;tt=((r(E,N)|0)+(V>>>16)|0)+(ot>>>16)|0;et=((r(h,x)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(E,x)|0)+(tt>>>16)|0)+(et>>>16)|0;V=et<<16|Z&0xffff;Z=((r(h,T)|0)+(K&0xffff)|0)+(ot&0xffff)|0;tt=((r(E,T)|0)+(K>>>16)|0)+(ot>>>16)|0;et=((r(h,I)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(E,I)|0)+(tt>>>16)|0)+(et>>>16)|0;K=et<<16|Z&0xffff;Z=((r(h,L)|0)+(X&0xffff)|0)+(ot&0xffff)|0;tt=((r(E,L)|0)+(X>>>16)|0)+(ot>>>16)|0;et=((r(h,U)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(E,U)|0)+(tt>>>16)|0)+(et>>>16)|0;X=et<<16|Z&0xffff;Z=((r(h,z)|0)+(J&0xffff)|0)+(ot&0xffff)|0;tt=((r(E,z)|0)+(J>>>16)|0)+(ot>>>16)|0;et=((r(h,D)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(E,D)|0)+(tt>>>16)|0)+(et>>>16)|0;J=et<<16|Z&0xffff;Y=ot;Z=((r(d,b)|0)+(B&0xffff)|0)+(Q&0xffff)|0;tt=((r(y,b)|0)+(B>>>16)|0)+(Q>>>16)|0;et=((r(d,w)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(y,w)|0)+(tt>>>16)|0)+(et>>>16)|0;B=et<<16|Z&0xffff;Z=((r(d,S)|0)+(W&0xffff)|0)+(ot&0xffff)|0;tt=((r(y,S)|0)+(W>>>16)|0)+(ot>>>16)|0;et=((r(d,O)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(y,O)|0)+(tt>>>16)|0)+(et>>>16)|0;W=et<<16|Z&0xffff;Z=((r(d,v)|0)+(H&0xffff)|0)+(ot&0xffff)|0;tt=((r(y,v)|0)+(H>>>16)|0)+(ot>>>16)|0;et=((r(d,R)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(y,R)|0)+(tt>>>16)|0)+(et>>>16)|0;H=et<<16|Z&0xffff;Z=((r(d,C)|0)+(V&0xffff)|0)+(ot&0xffff)|0;tt=((r(y,C)|0)+(V>>>16)|0)+(ot>>>16)|0;et=((r(d,A)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(y,A)|0)+(tt>>>16)|0)+(et>>>16)|0;V=et<<16|Z&0xffff;Z=((r(d,N)|0)+(K&0xffff)|0)+(ot&0xffff)|0;tt=((r(y,N)|0)+(K>>>16)|0)+(ot>>>16)|0;et=((r(d,x)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(y,x)|0)+(tt>>>16)|0)+(et>>>16)|0;K=et<<16|Z&0xffff;Z=((r(d,T)|0)+(X&0xffff)|0)+(ot&0xffff)|0;tt=((r(y,T)|0)+(X>>>16)|0)+(ot>>>16)|0;et=((r(d,I)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(y,I)|0)+(tt>>>16)|0)+(et>>>16)|0;X=et<<16|Z&0xffff;Z=((r(d,L)|0)+(J&0xffff)|0)+(ot&0xffff)|0;tt=((r(y,L)|0)+(J>>>16)|0)+(ot>>>16)|0;et=((r(d,U)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(y,U)|0)+(tt>>>16)|0)+(et>>>16)|0;J=et<<16|Z&0xffff;Z=((r(d,z)|0)+(Y&0xffff)|0)+(ot&0xffff)|0;tt=((r(y,z)|0)+(Y>>>16)|0)+(ot>>>16)|0;et=((r(d,D)|0)+(tt&0xffff)|0)+(Z>>>16)|0;ot=((r(y,D)|0)+(tt>>>16)|0)+(et>>>16)|0;Y=et<<16|Z&0xffff;Q=ot;ht=st+(lt+ut|0)|0;rt=o[_t+ht>>2]|0;Z=((rt&0xffff)+((P&0xffff)<<1)|0)+nt|0;et=((rt>>>16)+(P>>>16<<1)|0)+(Z>>>16)|0;o[_t+ht>>2]=et<<16|Z&0xffff;nt=et>>>16;ht=ht+4|0;rt=o[_t+ht>>2]|0;Z=((rt&0xffff)+((M&0xffff)<<1)|0)+nt|0;et=((rt>>>16)+(M>>>16<<1)|0)+(Z>>>16)|0;o[_t+ht>>2]=et<<16|Z&0xffff;nt=et>>>16;ht=ht+4|0;rt=o[_t+ht>>2]|0;Z=((rt&0xffff)+((k&0xffff)<<1)|0)+nt|0;et=((rt>>>16)+(k>>>16<<1)|0)+(Z>>>16)|0;o[_t+ht>>2]=et<<16|Z&0xffff;nt=et>>>16;ht=ht+4|0;rt=o[_t+ht>>2]|0;Z=((rt&0xffff)+((j&0xffff)<<1)|0)+nt|0;et=((rt>>>16)+(j>>>16<<1)|0)+(Z>>>16)|0;o[_t+ht>>2]=et<<16|Z&0xffff;nt=et>>>16;ht=ht+4|0;rt=o[_t+ht>>2]|0;Z=((rt&0xffff)+((G&0xffff)<<1)|0)+nt|0;et=((rt>>>16)+(G>>>16<<1)|0)+(Z>>>16)|0;o[_t+ht>>2]=et<<16|Z&0xffff;nt=et>>>16;ht=ht+4|0;rt=o[_t+ht>>2]|0;Z=((rt&0xffff)+((q&0xffff)<<1)|0)+nt|0;et=((rt>>>16)+(q>>>16<<1)|0)+(Z>>>16)|0;o[_t+ht>>2]=et<<16|Z&0xffff;nt=et>>>16;ht=ht+4|0;rt=o[_t+ht>>2]|0;Z=((rt&0xffff)+((F&0xffff)<<1)|0)+nt|0;et=((rt>>>16)+(F>>>16<<1)|0)+(Z>>>16)|0;o[_t+ht>>2]=et<<16|Z&0xffff;nt=et>>>16;ht=ht+4|0;rt=o[_t+ht>>2]|0;Z=((rt&0xffff)+((B&0xffff)<<1)|0)+nt|0;et=((rt>>>16)+(B>>>16<<1)|0)+(Z>>>16)|0;o[_t+ht>>2]=et<<16|Z&0xffff;nt=et>>>16}ht=st+(lt+ut|0)|0;rt=o[_t+ht>>2]|0;Z=(((rt&0xffff)+((W&0xffff)<<1)|0)+nt|0)+it|0;et=((rt>>>16)+(W>>>16<<1)|0)+(Z>>>16)|0;o[_t+ht>>2]=et<<16|Z&0xffff;nt=et>>>16;ht=ht+4|0;rt=o[_t+ht>>2]|0;Z=((rt&0xffff)+((H&0xffff)<<1)|0)+nt|0;et=((rt>>>16)+(H>>>16<<1)|0)+(Z>>>16)|0;o[_t+ht>>2]=et<<16|Z&0xffff;nt=et>>>16;ht=ht+4|0;rt=o[_t+ht>>2]|0;Z=((rt&0xffff)+((V&0xffff)<<1)|0)+nt|0;et=((rt>>>16)+(V>>>16<<1)|0)+(Z>>>16)|0;o[_t+ht>>2]=et<<16|Z&0xffff;nt=et>>>16;ht=ht+4|0;rt=o[_t+ht>>2]|0;Z=((rt&0xffff)+((K&0xffff)<<1)|0)+nt|0;et=((rt>>>16)+(K>>>16<<1)|0)+(Z>>>16)|0;o[_t+ht>>2]=et<<16|Z&0xffff;nt=et>>>16;ht=ht+4|0;rt=o[_t+ht>>2]|0;Z=((rt&0xffff)+((X&0xffff)<<1)|0)+nt|0;et=((rt>>>16)+(X>>>16<<1)|0)+(Z>>>16)|0;o[_t+ht>>2]=et<<16|Z&0xffff;nt=et>>>16;ht=ht+4|0;rt=o[_t+ht>>2]|0;Z=((rt&0xffff)+((J&0xffff)<<1)|0)+nt|0;et=((rt>>>16)+(J>>>16<<1)|0)+(Z>>>16)|0;o[_t+ht>>2]=et<<16|Z&0xffff;nt=et>>>16;ht=ht+4|0;rt=o[_t+ht>>2]|0;Z=((rt&0xffff)+((Y&0xffff)<<1)|0)+nt|0;et=((rt>>>16)+(Y>>>16<<1)|0)+(Z>>>16)|0;o[_t+ht>>2]=et<<16|Z&0xffff;nt=et>>>16;ht=ht+4|0;rt=o[_t+ht>>2]|0;Z=((rt&0xffff)+((Q&0xffff)<<1)|0)+nt|0;et=((rt>>>16)+(Q>>>16<<1)|0)+(Z>>>16)|0;o[_t+ht>>2]=et<<16|Z&0xffff;it=et>>>16}for(ht=ht+4|0;!!it&(ht|0)>2]|0;Z=(rt&0xffff)+it|0;et=(rt>>>16)+(Z>>>16)|0;o[_t+ht>>2]=et<<16|Z&0xffff;it=et>>>16}}}}function $(t,e,n,i,s){t=t|0;e=e|0;n=n|0;i=i|0;s=s|0;var a=0,c=0,l=0,u=0,h=0,d=0,p=0,_=0,m=0,f=0,g=0,$=0,E=0,y=0,b=0,S=0,v=0,C=0,N=0;for(v=e-1&-4;(v|0)>=0;v=v-4|0){a=o[t+v>>2]|0;if(a){e=v;break}}for(v=i-1&-4;(v|0)>=0;v=v-4|0){c=o[n+v>>2]|0;if(c){i=v;break}}while((c&0x80000000)==0){c=c<<1;l=l+1|0}h=o[t+e>>2]|0;if(l){u=h>>>(32-l|0);for(v=e-4|0;(v|0)>=0;v=v-4|0){a=o[t+v>>2]|0;o[t+v+4>>2]=h<>>(32-l|0):0);h=a}o[t>>2]=h<>2]|0;for(v=i-4|0;(v|0)>=0;v=v-4|0){c=o[n+v>>2]|0;o[n+v+4>>2]=d<>>(32-l|0);d=c}o[n>>2]=d<>2]|0;p=d>>>16,_=d&0xffff;for(v=e;(v|0)>=(i|0);v=v-4|0){C=v-i|0;h=o[t+v>>2]|0;m=(u>>>0)/(p>>>0)|0,g=(u>>>0)%(p>>>0)|0,E=r(m,_)|0;while((m|0)==0x10000|E>>>0>(g<<16|h>>>16)>>>0){m=m-1|0,g=g+p|0,E=E-_|0;if((g|0)>=0x10000)break}b=0,S=0;for(N=0;(N|0)<=(i|0);N=N+4|0){c=o[n+N>>2]|0;E=(r(m,c&0xffff)|0)+(b>>>16)|0;y=(r(m,c>>>16)|0)+(E>>>16)|0;c=b&0xffff|E<<16;b=y;a=o[t+C+N>>2]|0;E=((a&0xffff)-(c&0xffff)|0)+S|0;y=((a>>>16)-(c>>>16)|0)+(E>>16)|0;o[t+C+N>>2]=y<<16|E&0xffff;S=y>>16}E=((u&0xffff)-(b&0xffff)|0)+S|0;y=((u>>>16)-(b>>>16)|0)+(E>>16)|0;u=y<<16|E&0xffff;S=y>>16;if(S){m=m-1|0;S=0;for(N=0;(N|0)<=(i|0);N=N+4|0){c=o[n+N>>2]|0;a=o[t+C+N>>2]|0;E=(a&0xffff)+S|0;y=(a>>>16)+c+(E>>>16)|0;o[t+C+N>>2]=y<<16|E&0xffff;S=y>>>16}u=u+S|0}h=o[t+v>>2]|0;a=u<<16|h>>>16;f=(a>>>0)/(p>>>0)|0,$=(a>>>0)%(p>>>0)|0,E=r(f,_)|0;while((f|0)==0x10000|E>>>0>($<<16|h&0xffff)>>>0){f=f-1|0,$=$+p|0,E=E-_|0;if(($|0)>=0x10000)break}b=0,S=0;for(N=0;(N|0)<=(i|0);N=N+4|0){c=o[n+N>>2]|0;E=(r(f,c&0xffff)|0)+(b&0xffff)|0;y=((r(f,c>>>16)|0)+(E>>>16)|0)+(b>>>16)|0;c=E&0xffff|y<<16;b=y>>>16;a=o[t+C+N>>2]|0;E=((a&0xffff)-(c&0xffff)|0)+S|0;y=((a>>>16)-(c>>>16)|0)+(E>>16)|0;S=y>>16;o[t+C+N>>2]=y<<16|E&0xffff}E=((u&0xffff)-(b&0xffff)|0)+S|0;y=((u>>>16)-(b>>>16)|0)+(E>>16)|0;S=y>>16;if(S){f=f-1|0;S=0;for(N=0;(N|0)<=(i|0);N=N+4|0){c=o[n+N>>2]|0;a=o[t+C+N>>2]|0;E=((a&0xffff)+(c&0xffff)|0)+S|0;y=((a>>>16)+(c>>>16)|0)+(E>>>16)|0;S=y>>>16;o[t+C+N>>2]=E&0xffff|y<<16}}o[s+C>>2]=m<<16|f;u=o[t+v>>2]|0}if(l){h=o[t>>2]|0;for(v=4;(v|0)<=(i|0);v=v+4|0){a=o[t+v>>2]|0;o[t+v-4>>2]=a<<(32-l|0)|h>>>l;h=a}o[t+i>>2]=h>>>l}}function E(t,e,n,i,s,h){t=t|0;e=e|0;n=n|0;i=i|0;s=s|0;h=h|0;var p=0,_=0,f=0,g=0,$=0,E=0,y=0,b=0,S=0,v=0,C=0,N=0,T=0,L=0;p=a(i<<1)|0;u(i<<1,0,p);l(e,t,p);for(N=0;(N|0)<(i|0);N=N+4|0){f=o[p+N>>2]|0,g=f&0xffff,f=f>>>16;E=s>>>16,$=s&0xffff;y=r(g,$)|0,b=((r(g,E)|0)+(r(f,$)|0)|0)+(y>>>16)|0;g=y&0xffff,f=b&0xffff;C=0;for(T=0;(T|0)<(i|0);T=T+4|0){L=N+T|0;E=o[n+T>>2]|0,$=E&0xffff,E=E>>>16;v=o[p+L>>2]|0;y=((r(g,$)|0)+(C&0xffff)|0)+(v&0xffff)|0;b=((r(g,E)|0)+(C>>>16)|0)+(v>>>16)|0;S=((r(f,$)|0)+(b&0xffff)|0)+(y>>>16)|0;C=((r(f,E)|0)+(S>>>16)|0)+(b>>>16)|0;v=S<<16|y&0xffff;o[p+L>>2]=v}L=N+T|0;v=o[p+L>>2]|0;y=((v&0xffff)+(C&0xffff)|0)+_|0;b=((v>>>16)+(C>>>16)|0)+(y>>>16)|0;o[p+L>>2]=b<<16|y&0xffff;_=b>>>16}l(i,p+i|0,h);c(i<<1);if(_|(d(n,i,h,i)|0)<=0){m(h,i,n,i,h,i)|0}}return{sreset:s,salloc:a,sfree:c,z:u,tst:p,neg:h,cmp:d,add:_,sub:m,mul:f,sqr:g,div:$,mredc:E}};function R(t,e){let n=t.sign,i=e.sign;n<0&&(t=t.negate()),i<0&&(e=e.negate());const o=t.compare(e);if(o<0){let o=t;t=e,e=o;let r=n;n=i,i=r}var r,s,a,c=P.ONE,l=P.ZERO,u=e.bitLength,h=P.ZERO,d=P.ONE,p=t.bitLength;for(r=t.divide(e);(s=r.remainder)!==P.ZERO;)a=r.quotient,r=c.subtract(a.multiply(l).clamp(u)).clamp(u),c=l,l=r,r=h.subtract(a.multiply(d).clamp(p)).clamp(p),h=d,d=r,t=e,e=s,r=t.divide(e);if(n<0&&(l=l.negate()),i<0&&(d=d.negate()),o<0){let t=l;l=d,d=t}return{gcd:e,x:l,y:d}}function A(t){if(void 0===i)if(window.crypto&&window.crypto.getRandomValues)window.crypto.getRandomValues(t);else if(self.crypto&&self.crypto.getRandomValues)self.crypto.getRandomValues(t);else{if(!window.msCrypto||!window.msCrypto.getRandomValues)throw new Error("No secure random number generator available.");window.msCrypto.getRandomValues(t)}else{const e=n(763).randomBytes(t.length);t.set(e)}}const x={Uint32Array:Uint32Array,Math:Math},I=new Uint32Array(1048576);let U;void 0===x.Math.imul?(x.Math.imul=function(t,e){return t*e|0},U=O(x,null,I.buffer),delete x.Math.imul):U=O(x,null,I.buffer);const D=new Uint32Array(0);class P{constructor(t){let e=D,n=0,i=0;if(void 0===t);else{for(var o=0;!t[o];o++);if(n=8*(t.length-o),!n)return P.ZERO;e=new Uint32Array(n+31>>5);for(var r=t.length-4;r>=o;r-=4)e[t.length-4-r>>2]=t[r]<<24|t[r+1]<<16|t[r+2]<<8|t[r+3];o-r==3?e[e.length-1]=t[o]:o-r==2?e[e.length-1]=t[o]<<8|t[o+1]:o-r==1&&(e[e.length-1]=t[o]<<16|t[o+1]<<8|t[o+2]),i=1}this.limbs=e,this.bitLength=n,this.sign=i}static fromString(t){const e=s(t);return new P(e)}static fromNumber(t){let e=D,n=0,i=0;var o=Math.abs(t);return o>4294967295?(e=new Uint32Array(2),e[0]=0|o,e[1]=o/4294967296|0,n=52):o>0?(e=new Uint32Array(1),e[0]=o,n=32):(e=D,n=0),i=t<0?-1:1,P.fromConfig({limbs:e,bitLength:n,sign:i})}static fromArrayBuffer(t){return new P(new Uint8Array(t))}static fromConfig(t){const e=new P;return e.limbs=new Uint32Array(t.limbs),e.bitLength=t.bitLength,e.sign=t.sign,e}toString(t){t=t||16;const e=this.limbs,n=this.bitLength;let i="";if(16!==t)throw new g("bad radix");for(var o=(n+31>>5)-1;o>=0;o--){var r=e[o].toString(16);i+="00000000".substr(r.length),i+=r}return i=i.replace(/^0+/,""),i.length||(i="0"),this.sign<0&&(i="-"+i),i}toBytes(){const t=this.bitLength,e=this.limbs;if(0===t)return new Uint8Array(0);const n=t+7>>3,i=new Uint8Array(n);for(let t=0;t>2]>>((3&o)<<3)}return i}valueOf(){const t=this.limbs,e=this.bitLength,n=this.sign;if(!n)return 0;if(e<=32)return n*(t[0]>>>0);if(e<=52)return n*(4294967296*(t[1]>>>0)+(t[0]>>>0));let i,o,r=0;for(i=t.length-1;i>=0;i--)if(0!==(o=t[i])){for(;0==(o<>>0):n*(1048576*((t[i]<>>32-r:0))>>>0)+((t[i-1]<1?t[i-2]>>>32-r:0))>>>12))*Math.pow(2,32*i-r-52)}clamp(t){const e=this.limbs;if(t>=this.bitLength)return this;const n=new P;let i=t+31>>5,o=t%32;return n.limbs=new Uint32Array(e.subarray(0,i)),n.bitLength=t,n.sign=this.sign,o&&(n.limbs[i-1]&=-1>>>32-o),n}slice(t,e){const n=this.limbs,i=this.bitLength;if(t<0)throw new RangeError("TODO");if(t>=i)return P.ZERO;(void 0===e||e>i-t)&&(e=i-t);const o=new P;let r=t>>5,s=t+e+31>>5,a=e+31>>5,c=t%32,l=e%32;const u=new Uint32Array(a);if(c){for(var h=0;h>>c|n[r+h+1]<<32-c;u[h]=n[r+h]>>>c}else u.set(n.subarray(r,s));return l&&(u[a-1]&=-1>>>32-l),o.limbs=u,o.bitLength=e,o.sign=this.sign,o}negate(){const t=new P;return t.limbs=this.limbs,t.bitLength=this.bitLength,t.sign=-1*this.sign,t}compare(t){var e=this.limbs,n=e.length,i=t.limbs,o=i.length;return this.signt.sign?1:(I.set(e,0),I.set(i,n),U.cmp(0,n<<2,n<<2,o<<2)*this.sign)}add(t){if(!this.sign)return t;if(!t.sign)return this;var e,n,i,o,r=this.bitLength,s=this.limbs,a=s.length,c=this.sign,l=t.bitLength,u=t.limbs,h=u.length,d=t.sign,p=new P;n=(e=(r>l?r:l)+(c*d>0?1:0))+31>>5,U.sreset();var _=U.salloc(a<<2),m=U.salloc(h<<2),f=U.salloc(n<<2);return U.z(f-_+(n<<2),0,_),I.set(s,_>>2),I.set(u,m>>2),c*d>0?(U.add(_,a<<2,m,h<<2,f,n<<2),i=c):i=c>d?(o=U.sub(_,a<<2,m,h<<2,f,n<<2))?d:c:(o=U.sub(m,h<<2,_,a<<2,f,n<<2))?c:d,o&&U.neg(f,n<<2,f,n<<2),0===U.tst(f,n<<2)?P.ZERO:(p.limbs=new Uint32Array(I.subarray(f>>2,(f>>2)+n)),p.bitLength=e,p.sign=i,p)}subtract(t){return this.add(t.negate())}square(){if(!this.sign)return P.ZERO;var t,e,n=this.bitLength,i=this.limbs,o=i.length,r=new P;e=(t=n<<1)+31>>5,U.sreset();var s=U.salloc(o<<2),a=U.salloc(e<<2);return U.z(a-s+(e<<2),0,s),I.set(i,s>>2),U.sqr(s,o<<2,a),r.limbs=new Uint32Array(I.subarray(a>>2,(a>>2)+e)),r.bitLength=t,r.sign=1,r}divide(t){var e,n,i=this.bitLength,o=this.limbs,r=o.length,s=t.bitLength,a=t.limbs,c=a.length,l=P.ZERO,u=P.ZERO;U.sreset();var h=U.salloc(r<<2),d=U.salloc(c<<2),p=U.salloc(r<<2);return U.z(p-h+(r<<2),0,h),I.set(o,h>>2),I.set(a,d>>2),U.div(h,r<<2,d,c<<2,p),(e=U.tst(p,r<<2)>>2)&&((l=new P).limbs=new Uint32Array(I.subarray(p>>2,(p>>2)+e)),l.bitLength=i>2)&&((u=new P).limbs=new Uint32Array(I.subarray(h>>2,(h>>2)+n)),u.bitLength=s>5,U.sreset();var u=U.salloc(r<<2),h=U.salloc(c<<2),d=U.salloc(n<<2);return U.z(d-u+(n<<2),0,u),I.set(o,u>>2),I.set(a,h>>2),U.mul(u,r<<2,h,c<<2,d,n<<2),l.limbs=new Uint32Array(I.subarray(d>>2,(d>>2)+n)),l.sign=this.sign*t.sign,l.bitLength=e,l}isMillerRabinProbablePrime(t){var e=P.fromConfig(this),n=0;for(e.limbs[0]-=1;0===e.limbs[n>>5];)n+=32;for(;0==(e.limbs[n>>5]>>(31&n)&1);)n++;e=e.slice(n);for(var i=new M(this),o=this.subtract(P.ONE),r=P.fromConfig(this),s=this.limbs.length-1;0===r.limbs[s];)s--;for(;--t>=0;){for(A(r.limbs),r.limbs[0]<2&&(r.limbs[0]+=2);r.compare(o)>=0;)r.limbs[s]>>>=1;var a=i.power(r,e);if(0!==a.compare(P.ONE)&&0!==a.compare(o)){for(var c=n;--c>0;){if(0===(a=a.square().divide(i).remainder).compare(P.ONE))return!1;if(0===a.compare(o))break}if(0===c)return!1}}return!0}isProbablePrime(t=80){var e=this.limbs,n=0;if(0==(1&e[0]))return!1;if(t<=1)return!0;var i=0,o=0,r=0;for(n=0;n>>=2;for(var a=e[n];a;)o+=3&a,o-=3&(a>>>=2),a>>>=2;for(var c=e[n];c;)r+=15&c,r-=15&(c>>>=4),c>>>=4}return!!(i%3&&o%5&&r%17)&&(t<=2||this.isMillerRabinProbablePrime(t>>>1))}}P.extGCD=R,P.ZERO=P.fromNumber(0),P.ONE=P.fromNumber(1);class M extends P{constructor(t){if(super(),this.limbs=t.limbs,this.bitLength=t.bitLength,this.sign=t.sign,this.valueOf()<1)throw new RangeError;if(this.bitLength<=32)return;let e;if(1&this.limbs[0]){{const t=1+(this.bitLength+31&-32),n=new Uint32Array(t+31>>5);n[n.length-1]=1,e=new P,e.sign=1,e.bitLength=t,e.limbs=n;const i=function(t,e){var n,i,o,r,s=t<0?-1:1,a=e<0?-1:1,c=1,l=0,u=0,h=1;for((r=(t*=s)<(e*=a))&&(o=t,t=e,e=o,o=s,s=a,a=o),n=t-(i=Math.floor(t/e))*e;n;)o=c-i*l,c=l,l=o,o=u-i*h,u=h,h=o,t=e,e=n,n=t-(i=Math.floor(t/e))*e;return l*=s,h*=a,r&&(o=l,l=h,h=o),{gcd:e,x:l,y:h}}(4294967296,this.limbs[0]).y;this.coefficient=i<0?-i:4294967296-i}this.comodulus=e,this.comodulusRemainder=e.divide(this).remainder,this.comodulusRemainderSquare=e.square().divide(this).remainder}}reduce(t){return t.bitLength<=32&&this.bitLength<=32?P.fromNumber(t.valueOf()%this.valueOf()):t.compare(this)<0?t:t.divide(this).remainder}inverse(t){const e=R(this,t=this.reduce(t));if(1!==e.gcd.valueOf())throw new Error("GCD is not 1");return e.y.sign<0?e.y.add(this).clamp(this.bitLength):e.y}power(t,e){let n=0;for(let t=0;t>>=1}let i=8;e.bitLength<=4536&&(i=7),e.bitLength<=1736&&(i=6),e.bitLength<=630&&(i=5),e.bitLength<=210&&(i=4),e.bitLength<=60&&(i=3),e.bitLength<=12&&(i=2),n<=1<=0;t--){let n=e.limbs[t];for(let t=32;t>0;)if(2147483648&n){let e=n>>>32-i,o=i;for(;0==(1&e);)e>>>=1,o--;for(var c=r[e>>>1];e;)e>>>=1,a!==s&&(a=M._Montgomery_reduce(a.square(),this));a=a!==s?M._Montgomery_reduce(a.multiply(c),this):c,n<<=o,t-=o}else a!==s&&(a=M._Montgomery_reduce(a.square(),this)),n<<=1,t--}return M._Montgomery_reduce(a,this)}static _Montgomery_reduce(t,e){const n=t.limbs,i=n.length,o=e.limbs,r=o.length,s=e.coefficient;U.sreset();const a=U.salloc(i<<2),c=U.salloc(r<<2),l=U.salloc(r<<2);U.z(l-a+(r<<2),0,a),I.set(n,a>>2),I.set(o,c>>2),U.mredc(a,i<<2,c,r<<2,s,l);const u=new P;return u.limbs=new Uint32Array(I.subarray(l>>2,(l>>2)+r)),u.bitLength=e.bitLength,u.sign=1,u}}class k{constructor(){this.pos=0,this.len=0}reset(){return this.result=null,this.pos=0,this.len=0,this.asm.reset(),this}process(t){if(null!==this.result)throw new f("state must be reset before processing new data");let e=this.asm,n=this.heap,i=this.pos,o=this.len,r=0,s=t.length,a=0;for(;s>0;)a=_(n,i+o,t,r,s),o+=a,r+=a,s-=a,a=e.process(i,o),i+=a,o-=a,o||(i=0);return this.pos=i,this.len=o,this}finish(){if(null!==this.result)throw new f("state must be reset before processing new data");return this.asm.finish(this.pos,this.len,0),this.result=new Uint8Array(this.HASH_SIZE),this.result.set(this.heap.subarray(0,this.HASH_SIZE)),this.pos=0,this.len=0,this}}class j extends k{constructor(){super(),this.NAME="sha1",this.BLOCK_SIZE=64,this.HASH_SIZE=20,this.heap=p(),this.asm=function(t,e,n){"use asm";var i=0,o=0,r=0,s=0,a=0,c=0,l=0,u=0,h=0,d=0,p=0,_=0,m=0,f=0,g=0,$=0,E=0,y=new t.Uint8Array(n);function b(t,e,n,c,l,u,h,d,p,_,m,f,g,$,E,y){t=t|0;e=e|0;n=n|0;c=c|0;l=l|0;u=u|0;h=h|0;d=d|0;p=p|0;_=_|0;m=m|0;f=f|0;g=g|0;$=$|0;E=E|0;y=y|0;var b=0,S=0,v=0,C=0,N=0,T=0,L=0,z=0,w=0,O=0,R=0,A=0,x=0,I=0,U=0,D=0,P=0,M=0,k=0,j=0,G=0,q=0,F=0,B=0,W=0,H=0,V=0,K=0,X=0,J=0,Y=0,Q=0,Z=0,tt=0,et=0,nt=0,it=0,ot=0,rt=0,st=0,at=0,ct=0,lt=0,ut=0,ht=0,dt=0,pt=0,_t=0,mt=0,ft=0,gt=0,$t=0,Et=0,yt=0,bt=0,St=0,vt=0,Ct=0,Nt=0,Tt=0,Lt=0,zt=0,wt=0,Ot=0,Rt=0,At=0,xt=0,It=0,Ut=0,Dt=0,Pt=0;b=i;S=o;v=r;C=s;N=a;L=t+(b<<5|b>>>27)+N+(S&v|~S&C)+0x5a827999|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;L=e+(b<<5|b>>>27)+N+(S&v|~S&C)+0x5a827999|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;L=n+(b<<5|b>>>27)+N+(S&v|~S&C)+0x5a827999|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;L=c+(b<<5|b>>>27)+N+(S&v|~S&C)+0x5a827999|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;L=l+(b<<5|b>>>27)+N+(S&v|~S&C)+0x5a827999|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;L=u+(b<<5|b>>>27)+N+(S&v|~S&C)+0x5a827999|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;L=h+(b<<5|b>>>27)+N+(S&v|~S&C)+0x5a827999|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;L=d+(b<<5|b>>>27)+N+(S&v|~S&C)+0x5a827999|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;L=p+(b<<5|b>>>27)+N+(S&v|~S&C)+0x5a827999|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;L=_+(b<<5|b>>>27)+N+(S&v|~S&C)+0x5a827999|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;L=m+(b<<5|b>>>27)+N+(S&v|~S&C)+0x5a827999|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;L=f+(b<<5|b>>>27)+N+(S&v|~S&C)+0x5a827999|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;L=g+(b<<5|b>>>27)+N+(S&v|~S&C)+0x5a827999|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;L=$+(b<<5|b>>>27)+N+(S&v|~S&C)+0x5a827999|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;L=E+(b<<5|b>>>27)+N+(S&v|~S&C)+0x5a827999|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;L=y+(b<<5|b>>>27)+N+(S&v|~S&C)+0x5a827999|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=$^p^n^t;z=T<<1|T>>>31;L=z+(b<<5|b>>>27)+N+(S&v|~S&C)+0x5a827999|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=E^_^c^e;w=T<<1|T>>>31;L=w+(b<<5|b>>>27)+N+(S&v|~S&C)+0x5a827999|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=y^m^l^n;O=T<<1|T>>>31;L=O+(b<<5|b>>>27)+N+(S&v|~S&C)+0x5a827999|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=z^f^u^c;R=T<<1|T>>>31;L=R+(b<<5|b>>>27)+N+(S&v|~S&C)+0x5a827999|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=w^g^h^l;A=T<<1|T>>>31;L=A+(b<<5|b>>>27)+N+(S^v^C)+0x6ed9eba1|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=O^$^d^u;x=T<<1|T>>>31;L=x+(b<<5|b>>>27)+N+(S^v^C)+0x6ed9eba1|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=R^E^p^h;I=T<<1|T>>>31;L=I+(b<<5|b>>>27)+N+(S^v^C)+0x6ed9eba1|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=A^y^_^d;U=T<<1|T>>>31;L=U+(b<<5|b>>>27)+N+(S^v^C)+0x6ed9eba1|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=x^z^m^p;D=T<<1|T>>>31;L=D+(b<<5|b>>>27)+N+(S^v^C)+0x6ed9eba1|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=I^w^f^_;P=T<<1|T>>>31;L=P+(b<<5|b>>>27)+N+(S^v^C)+0x6ed9eba1|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=U^O^g^m;M=T<<1|T>>>31;L=M+(b<<5|b>>>27)+N+(S^v^C)+0x6ed9eba1|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=D^R^$^f;k=T<<1|T>>>31;L=k+(b<<5|b>>>27)+N+(S^v^C)+0x6ed9eba1|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=P^A^E^g;j=T<<1|T>>>31;L=j+(b<<5|b>>>27)+N+(S^v^C)+0x6ed9eba1|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=M^x^y^$;G=T<<1|T>>>31;L=G+(b<<5|b>>>27)+N+(S^v^C)+0x6ed9eba1|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=k^I^z^E;q=T<<1|T>>>31;L=q+(b<<5|b>>>27)+N+(S^v^C)+0x6ed9eba1|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=j^U^w^y;F=T<<1|T>>>31;L=F+(b<<5|b>>>27)+N+(S^v^C)+0x6ed9eba1|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=G^D^O^z;B=T<<1|T>>>31;L=B+(b<<5|b>>>27)+N+(S^v^C)+0x6ed9eba1|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=q^P^R^w;W=T<<1|T>>>31;L=W+(b<<5|b>>>27)+N+(S^v^C)+0x6ed9eba1|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=F^M^A^O;H=T<<1|T>>>31;L=H+(b<<5|b>>>27)+N+(S^v^C)+0x6ed9eba1|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=B^k^x^R;V=T<<1|T>>>31;L=V+(b<<5|b>>>27)+N+(S^v^C)+0x6ed9eba1|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=W^j^I^A;K=T<<1|T>>>31;L=K+(b<<5|b>>>27)+N+(S^v^C)+0x6ed9eba1|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=H^G^U^x;X=T<<1|T>>>31;L=X+(b<<5|b>>>27)+N+(S^v^C)+0x6ed9eba1|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=V^q^D^I;J=T<<1|T>>>31;L=J+(b<<5|b>>>27)+N+(S^v^C)+0x6ed9eba1|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=K^F^P^U;Y=T<<1|T>>>31;L=Y+(b<<5|b>>>27)+N+(S^v^C)+0x6ed9eba1|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=X^B^M^D;Q=T<<1|T>>>31;L=Q+(b<<5|b>>>27)+N+(S&v|S&C|v&C)-0x70e44324|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=J^W^k^P;Z=T<<1|T>>>31;L=Z+(b<<5|b>>>27)+N+(S&v|S&C|v&C)-0x70e44324|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=Y^H^j^M;tt=T<<1|T>>>31;L=tt+(b<<5|b>>>27)+N+(S&v|S&C|v&C)-0x70e44324|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=Q^V^G^k;et=T<<1|T>>>31;L=et+(b<<5|b>>>27)+N+(S&v|S&C|v&C)-0x70e44324|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=Z^K^q^j;nt=T<<1|T>>>31;L=nt+(b<<5|b>>>27)+N+(S&v|S&C|v&C)-0x70e44324|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=tt^X^F^G;it=T<<1|T>>>31;L=it+(b<<5|b>>>27)+N+(S&v|S&C|v&C)-0x70e44324|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=et^J^B^q;ot=T<<1|T>>>31;L=ot+(b<<5|b>>>27)+N+(S&v|S&C|v&C)-0x70e44324|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=nt^Y^W^F;rt=T<<1|T>>>31;L=rt+(b<<5|b>>>27)+N+(S&v|S&C|v&C)-0x70e44324|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=it^Q^H^B;st=T<<1|T>>>31;L=st+(b<<5|b>>>27)+N+(S&v|S&C|v&C)-0x70e44324|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=ot^Z^V^W;at=T<<1|T>>>31;L=at+(b<<5|b>>>27)+N+(S&v|S&C|v&C)-0x70e44324|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=rt^tt^K^H;ct=T<<1|T>>>31;L=ct+(b<<5|b>>>27)+N+(S&v|S&C|v&C)-0x70e44324|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=st^et^X^V;lt=T<<1|T>>>31;L=lt+(b<<5|b>>>27)+N+(S&v|S&C|v&C)-0x70e44324|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=at^nt^J^K;ut=T<<1|T>>>31;L=ut+(b<<5|b>>>27)+N+(S&v|S&C|v&C)-0x70e44324|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=ct^it^Y^X;ht=T<<1|T>>>31;L=ht+(b<<5|b>>>27)+N+(S&v|S&C|v&C)-0x70e44324|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=lt^ot^Q^J;dt=T<<1|T>>>31;L=dt+(b<<5|b>>>27)+N+(S&v|S&C|v&C)-0x70e44324|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=ut^rt^Z^Y;pt=T<<1|T>>>31;L=pt+(b<<5|b>>>27)+N+(S&v|S&C|v&C)-0x70e44324|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=ht^st^tt^Q;_t=T<<1|T>>>31;L=_t+(b<<5|b>>>27)+N+(S&v|S&C|v&C)-0x70e44324|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=dt^at^et^Z;mt=T<<1|T>>>31;L=mt+(b<<5|b>>>27)+N+(S&v|S&C|v&C)-0x70e44324|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=pt^ct^nt^tt;ft=T<<1|T>>>31;L=ft+(b<<5|b>>>27)+N+(S&v|S&C|v&C)-0x70e44324|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=_t^lt^it^et;gt=T<<1|T>>>31;L=gt+(b<<5|b>>>27)+N+(S&v|S&C|v&C)-0x70e44324|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=mt^ut^ot^nt;$t=T<<1|T>>>31;L=$t+(b<<5|b>>>27)+N+(S^v^C)-0x359d3e2a|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=ft^ht^rt^it;Et=T<<1|T>>>31;L=Et+(b<<5|b>>>27)+N+(S^v^C)-0x359d3e2a|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=gt^dt^st^ot;yt=T<<1|T>>>31;L=yt+(b<<5|b>>>27)+N+(S^v^C)-0x359d3e2a|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=$t^pt^at^rt;bt=T<<1|T>>>31;L=bt+(b<<5|b>>>27)+N+(S^v^C)-0x359d3e2a|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=Et^_t^ct^st;St=T<<1|T>>>31;L=St+(b<<5|b>>>27)+N+(S^v^C)-0x359d3e2a|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=yt^mt^lt^at;vt=T<<1|T>>>31;L=vt+(b<<5|b>>>27)+N+(S^v^C)-0x359d3e2a|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=bt^ft^ut^ct;Ct=T<<1|T>>>31;L=Ct+(b<<5|b>>>27)+N+(S^v^C)-0x359d3e2a|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=St^gt^ht^lt;Nt=T<<1|T>>>31;L=Nt+(b<<5|b>>>27)+N+(S^v^C)-0x359d3e2a|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=vt^$t^dt^ut;Tt=T<<1|T>>>31;L=Tt+(b<<5|b>>>27)+N+(S^v^C)-0x359d3e2a|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=Ct^Et^pt^ht;Lt=T<<1|T>>>31;L=Lt+(b<<5|b>>>27)+N+(S^v^C)-0x359d3e2a|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=Nt^yt^_t^dt;zt=T<<1|T>>>31;L=zt+(b<<5|b>>>27)+N+(S^v^C)-0x359d3e2a|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=Tt^bt^mt^pt;wt=T<<1|T>>>31;L=wt+(b<<5|b>>>27)+N+(S^v^C)-0x359d3e2a|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=Lt^St^ft^_t;Ot=T<<1|T>>>31;L=Ot+(b<<5|b>>>27)+N+(S^v^C)-0x359d3e2a|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=zt^vt^gt^mt;Rt=T<<1|T>>>31;L=Rt+(b<<5|b>>>27)+N+(S^v^C)-0x359d3e2a|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=wt^Ct^$t^ft;At=T<<1|T>>>31;L=At+(b<<5|b>>>27)+N+(S^v^C)-0x359d3e2a|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=Ot^Nt^Et^gt;xt=T<<1|T>>>31;L=xt+(b<<5|b>>>27)+N+(S^v^C)-0x359d3e2a|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=Rt^Tt^yt^$t;It=T<<1|T>>>31;L=It+(b<<5|b>>>27)+N+(S^v^C)-0x359d3e2a|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=At^Lt^bt^Et;Ut=T<<1|T>>>31;L=Ut+(b<<5|b>>>27)+N+(S^v^C)-0x359d3e2a|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=xt^zt^St^yt;Dt=T<<1|T>>>31;L=Dt+(b<<5|b>>>27)+N+(S^v^C)-0x359d3e2a|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;T=It^wt^vt^bt;Pt=T<<1|T>>>31;L=Pt+(b<<5|b>>>27)+N+(S^v^C)-0x359d3e2a|0;N=C;C=v;v=S<<30|S>>>2;S=b;b=L;i=i+b|0;o=o+S|0;r=r+v|0;s=s+C|0;a=a+N|0}function S(t){t=t|0;b(y[t|0]<<24|y[t|1]<<16|y[t|2]<<8|y[t|3],y[t|4]<<24|y[t|5]<<16|y[t|6]<<8|y[t|7],y[t|8]<<24|y[t|9]<<16|y[t|10]<<8|y[t|11],y[t|12]<<24|y[t|13]<<16|y[t|14]<<8|y[t|15],y[t|16]<<24|y[t|17]<<16|y[t|18]<<8|y[t|19],y[t|20]<<24|y[t|21]<<16|y[t|22]<<8|y[t|23],y[t|24]<<24|y[t|25]<<16|y[t|26]<<8|y[t|27],y[t|28]<<24|y[t|29]<<16|y[t|30]<<8|y[t|31],y[t|32]<<24|y[t|33]<<16|y[t|34]<<8|y[t|35],y[t|36]<<24|y[t|37]<<16|y[t|38]<<8|y[t|39],y[t|40]<<24|y[t|41]<<16|y[t|42]<<8|y[t|43],y[t|44]<<24|y[t|45]<<16|y[t|46]<<8|y[t|47],y[t|48]<<24|y[t|49]<<16|y[t|50]<<8|y[t|51],y[t|52]<<24|y[t|53]<<16|y[t|54]<<8|y[t|55],y[t|56]<<24|y[t|57]<<16|y[t|58]<<8|y[t|59],y[t|60]<<24|y[t|61]<<16|y[t|62]<<8|y[t|63])}function v(t){t=t|0;y[t|0]=i>>>24;y[t|1]=i>>>16&255;y[t|2]=i>>>8&255;y[t|3]=i&255;y[t|4]=o>>>24;y[t|5]=o>>>16&255;y[t|6]=o>>>8&255;y[t|7]=o&255;y[t|8]=r>>>24;y[t|9]=r>>>16&255;y[t|10]=r>>>8&255;y[t|11]=r&255;y[t|12]=s>>>24;y[t|13]=s>>>16&255;y[t|14]=s>>>8&255;y[t|15]=s&255;y[t|16]=a>>>24;y[t|17]=a>>>16&255;y[t|18]=a>>>8&255;y[t|19]=a&255}function C(){i=0x67452301;o=0xefcdab89;r=0x98badcfe;s=0x10325476;a=0xc3d2e1f0;c=l=0}function N(t,e,n,u,h,d,p){t=t|0;e=e|0;n=n|0;u=u|0;h=h|0;d=d|0;p=p|0;i=t;o=e;r=n;s=u;a=h;c=d;l=p}function T(t,e){t=t|0;e=e|0;var n=0;if(t&63)return-1;while((e|0)>=64){S(t);t=t+64|0;e=e-64|0;n=n+64|0}c=c+n|0;if(c>>>0>>0)l=l+1|0;return n|0}function L(t,e,n){t=t|0;e=e|0;n=n|0;var i=0,o=0;if(t&63)return-1;if(~n)if(n&31)return-1;if((e|0)>=64){i=T(t,e)|0;if((i|0)==-1)return-1;t=t+i|0;e=e-i|0}i=i+e|0;c=c+e|0;if(c>>>0>>0)l=l+1|0;y[t|e]=0x80;if((e|0)>=56){for(o=e+1|0;(o|0)<64;o=o+1|0)y[t|o]=0x00;S(t);e=0;y[t|0]=0}for(o=e+1|0;(o|0)<59;o=o+1|0)y[t|o]=0;y[t|56]=l>>>21&255;y[t|57]=l>>>13&255;y[t|58]=l>>>5&255;y[t|59]=l<<3&255|c>>>29;y[t|60]=c>>>21&255;y[t|61]=c>>>13&255;y[t|62]=c>>>5&255;y[t|63]=c<<3&255;S(t);if(~n)v(n);return i|0}function z(){i=u;o=h;r=d;s=p;a=_;c=64;l=0}function w(){i=m;o=f;r=g;s=$;a=E;c=64;l=0}function O(t,e,n,y,S,v,N,T,L,z,w,O,R,A,x,I){t=t|0;e=e|0;n=n|0;y=y|0;S=S|0;v=v|0;N=N|0;T=T|0;L=L|0;z=z|0;w=w|0;O=O|0;R=R|0;A=A|0;x=x|0;I=I|0;C();b(t^0x5c5c5c5c,e^0x5c5c5c5c,n^0x5c5c5c5c,y^0x5c5c5c5c,S^0x5c5c5c5c,v^0x5c5c5c5c,N^0x5c5c5c5c,T^0x5c5c5c5c,L^0x5c5c5c5c,z^0x5c5c5c5c,w^0x5c5c5c5c,O^0x5c5c5c5c,R^0x5c5c5c5c,A^0x5c5c5c5c,x^0x5c5c5c5c,I^0x5c5c5c5c);m=i;f=o;g=r;$=s;E=a;C();b(t^0x36363636,e^0x36363636,n^0x36363636,y^0x36363636,S^0x36363636,v^0x36363636,N^0x36363636,T^0x36363636,L^0x36363636,z^0x36363636,w^0x36363636,O^0x36363636,R^0x36363636,A^0x36363636,x^0x36363636,I^0x36363636);u=i;h=o;d=r;p=s;_=a;c=64;l=0}function R(t,e,n){t=t|0;e=e|0;n=n|0;var c=0,l=0,u=0,h=0,d=0,p=0;if(t&63)return-1;if(~n)if(n&31)return-1;p=L(t,e,-1)|0;c=i,l=o,u=r,h=s,d=a;w();b(c,l,u,h,d,0x80000000,0,0,0,0,0,0,0,0,0,672);if(~n)v(n);return p|0}function A(t,e,n,c,l){t=t|0;e=e|0;n=n|0;c=c|0;l=l|0;var u=0,h=0,d=0,p=0,_=0,m=0,f=0,g=0,$=0,E=0;if(t&63)return-1;if(~l)if(l&31)return-1;y[t+e|0]=n>>>24;y[t+e+1|0]=n>>>16&255;y[t+e+2|0]=n>>>8&255;y[t+e+3|0]=n&255;R(t,e+4|0,-1)|0;u=m=i,h=f=o,d=g=r,p=$=s,_=E=a;c=c-1|0;while((c|0)>0){z();b(m,f,g,$,E,0x80000000,0,0,0,0,0,0,0,0,0,672);m=i,f=o,g=r,$=s,E=a;w();b(m,f,g,$,E,0x80000000,0,0,0,0,0,0,0,0,0,672);m=i,f=o,g=r,$=s,E=a;u=u^i;h=h^o;d=d^r;p=p^s;_=_^a;c=c-1|0}i=u;o=h;r=d;s=p;a=_;if(~l)v(l);return 0}return{reset:C,init:N,process:T,finish:L,hmac_reset:z,hmac_init:O,hmac_finish:R,pbkdf2_generate_block:A}}({Uint8Array:Uint8Array},null,this.heap.buffer),this.reset()}}j.NAME="sha1";class G extends k{constructor(){super(),this.NAME="sha256",this.BLOCK_SIZE=64,this.HASH_SIZE=32,this.heap=p(),this.asm=function(t,e,n){"use asm";var i=0,o=0,r=0,s=0,a=0,c=0,l=0,u=0,h=0,d=0,p=0,_=0,m=0,f=0,g=0,$=0,E=0,y=0,b=0,S=0,v=0,C=0,N=0,T=0,L=0,z=0,w=new t.Uint8Array(n);function O(t,e,n,h,d,p,_,m,f,g,$,E,y,b,S,v){t=t|0;e=e|0;n=n|0;h=h|0;d=d|0;p=p|0;_=_|0;m=m|0;f=f|0;g=g|0;$=$|0;E=E|0;y=y|0;b=b|0;S=S|0;v=v|0;var C=0,N=0,T=0,L=0,z=0,w=0,O=0,R=0;C=i;N=o;T=r;L=s;z=a;w=c;O=l;R=u;R=t+R+(z>>>6^z>>>11^z>>>25^z<<26^z<<21^z<<7)+(O^z&(w^O))+0x428a2f98|0;L=L+R|0;R=R+(C&N^T&(C^N))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;O=e+O+(L>>>6^L>>>11^L>>>25^L<<26^L<<21^L<<7)+(w^L&(z^w))+0x71374491|0;T=T+O|0;O=O+(R&C^N&(R^C))+(R>>>2^R>>>13^R>>>22^R<<30^R<<19^R<<10)|0;w=n+w+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(z^T&(L^z))+0xb5c0fbcf|0;N=N+w|0;w=w+(O&R^C&(O^R))+(O>>>2^O>>>13^O>>>22^O<<30^O<<19^O<<10)|0;z=h+z+(N>>>6^N>>>11^N>>>25^N<<26^N<<21^N<<7)+(L^N&(T^L))+0xe9b5dba5|0;C=C+z|0;z=z+(w&O^R&(w^O))+(w>>>2^w>>>13^w>>>22^w<<30^w<<19^w<<10)|0;L=d+L+(C>>>6^C>>>11^C>>>25^C<<26^C<<21^C<<7)+(T^C&(N^T))+0x3956c25b|0;R=R+L|0;L=L+(z&w^O&(z^w))+(z>>>2^z>>>13^z>>>22^z<<30^z<<19^z<<10)|0;T=p+T+(R>>>6^R>>>11^R>>>25^R<<26^R<<21^R<<7)+(N^R&(C^N))+0x59f111f1|0;O=O+T|0;T=T+(L&z^w&(L^z))+(L>>>2^L>>>13^L>>>22^L<<30^L<<19^L<<10)|0;N=_+N+(O>>>6^O>>>11^O>>>25^O<<26^O<<21^O<<7)+(C^O&(R^C))+0x923f82a4|0;w=w+N|0;N=N+(T&L^z&(T^L))+(T>>>2^T>>>13^T>>>22^T<<30^T<<19^T<<10)|0;C=m+C+(w>>>6^w>>>11^w>>>25^w<<26^w<<21^w<<7)+(R^w&(O^R))+0xab1c5ed5|0;z=z+C|0;C=C+(N&T^L&(N^T))+(N>>>2^N>>>13^N>>>22^N<<30^N<<19^N<<10)|0;R=f+R+(z>>>6^z>>>11^z>>>25^z<<26^z<<21^z<<7)+(O^z&(w^O))+0xd807aa98|0;L=L+R|0;R=R+(C&N^T&(C^N))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;O=g+O+(L>>>6^L>>>11^L>>>25^L<<26^L<<21^L<<7)+(w^L&(z^w))+0x12835b01|0;T=T+O|0;O=O+(R&C^N&(R^C))+(R>>>2^R>>>13^R>>>22^R<<30^R<<19^R<<10)|0;w=$+w+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(z^T&(L^z))+0x243185be|0;N=N+w|0;w=w+(O&R^C&(O^R))+(O>>>2^O>>>13^O>>>22^O<<30^O<<19^O<<10)|0;z=E+z+(N>>>6^N>>>11^N>>>25^N<<26^N<<21^N<<7)+(L^N&(T^L))+0x550c7dc3|0;C=C+z|0;z=z+(w&O^R&(w^O))+(w>>>2^w>>>13^w>>>22^w<<30^w<<19^w<<10)|0;L=y+L+(C>>>6^C>>>11^C>>>25^C<<26^C<<21^C<<7)+(T^C&(N^T))+0x72be5d74|0;R=R+L|0;L=L+(z&w^O&(z^w))+(z>>>2^z>>>13^z>>>22^z<<30^z<<19^z<<10)|0;T=b+T+(R>>>6^R>>>11^R>>>25^R<<26^R<<21^R<<7)+(N^R&(C^N))+0x80deb1fe|0;O=O+T|0;T=T+(L&z^w&(L^z))+(L>>>2^L>>>13^L>>>22^L<<30^L<<19^L<<10)|0;N=S+N+(O>>>6^O>>>11^O>>>25^O<<26^O<<21^O<<7)+(C^O&(R^C))+0x9bdc06a7|0;w=w+N|0;N=N+(T&L^z&(T^L))+(T>>>2^T>>>13^T>>>22^T<<30^T<<19^T<<10)|0;C=v+C+(w>>>6^w>>>11^w>>>25^w<<26^w<<21^w<<7)+(R^w&(O^R))+0xc19bf174|0;z=z+C|0;C=C+(N&T^L&(N^T))+(N>>>2^N>>>13^N>>>22^N<<30^N<<19^N<<10)|0;t=(e>>>7^e>>>18^e>>>3^e<<25^e<<14)+(S>>>17^S>>>19^S>>>10^S<<15^S<<13)+t+g|0;R=t+R+(z>>>6^z>>>11^z>>>25^z<<26^z<<21^z<<7)+(O^z&(w^O))+0xe49b69c1|0;L=L+R|0;R=R+(C&N^T&(C^N))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;e=(n>>>7^n>>>18^n>>>3^n<<25^n<<14)+(v>>>17^v>>>19^v>>>10^v<<15^v<<13)+e+$|0;O=e+O+(L>>>6^L>>>11^L>>>25^L<<26^L<<21^L<<7)+(w^L&(z^w))+0xefbe4786|0;T=T+O|0;O=O+(R&C^N&(R^C))+(R>>>2^R>>>13^R>>>22^R<<30^R<<19^R<<10)|0;n=(h>>>7^h>>>18^h>>>3^h<<25^h<<14)+(t>>>17^t>>>19^t>>>10^t<<15^t<<13)+n+E|0;w=n+w+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(z^T&(L^z))+0x0fc19dc6|0;N=N+w|0;w=w+(O&R^C&(O^R))+(O>>>2^O>>>13^O>>>22^O<<30^O<<19^O<<10)|0;h=(d>>>7^d>>>18^d>>>3^d<<25^d<<14)+(e>>>17^e>>>19^e>>>10^e<<15^e<<13)+h+y|0;z=h+z+(N>>>6^N>>>11^N>>>25^N<<26^N<<21^N<<7)+(L^N&(T^L))+0x240ca1cc|0;C=C+z|0;z=z+(w&O^R&(w^O))+(w>>>2^w>>>13^w>>>22^w<<30^w<<19^w<<10)|0;d=(p>>>7^p>>>18^p>>>3^p<<25^p<<14)+(n>>>17^n>>>19^n>>>10^n<<15^n<<13)+d+b|0;L=d+L+(C>>>6^C>>>11^C>>>25^C<<26^C<<21^C<<7)+(T^C&(N^T))+0x2de92c6f|0;R=R+L|0;L=L+(z&w^O&(z^w))+(z>>>2^z>>>13^z>>>22^z<<30^z<<19^z<<10)|0;p=(_>>>7^_>>>18^_>>>3^_<<25^_<<14)+(h>>>17^h>>>19^h>>>10^h<<15^h<<13)+p+S|0;T=p+T+(R>>>6^R>>>11^R>>>25^R<<26^R<<21^R<<7)+(N^R&(C^N))+0x4a7484aa|0;O=O+T|0;T=T+(L&z^w&(L^z))+(L>>>2^L>>>13^L>>>22^L<<30^L<<19^L<<10)|0;_=(m>>>7^m>>>18^m>>>3^m<<25^m<<14)+(d>>>17^d>>>19^d>>>10^d<<15^d<<13)+_+v|0;N=_+N+(O>>>6^O>>>11^O>>>25^O<<26^O<<21^O<<7)+(C^O&(R^C))+0x5cb0a9dc|0;w=w+N|0;N=N+(T&L^z&(T^L))+(T>>>2^T>>>13^T>>>22^T<<30^T<<19^T<<10)|0;m=(f>>>7^f>>>18^f>>>3^f<<25^f<<14)+(p>>>17^p>>>19^p>>>10^p<<15^p<<13)+m+t|0;C=m+C+(w>>>6^w>>>11^w>>>25^w<<26^w<<21^w<<7)+(R^w&(O^R))+0x76f988da|0;z=z+C|0;C=C+(N&T^L&(N^T))+(N>>>2^N>>>13^N>>>22^N<<30^N<<19^N<<10)|0;f=(g>>>7^g>>>18^g>>>3^g<<25^g<<14)+(_>>>17^_>>>19^_>>>10^_<<15^_<<13)+f+e|0;R=f+R+(z>>>6^z>>>11^z>>>25^z<<26^z<<21^z<<7)+(O^z&(w^O))+0x983e5152|0;L=L+R|0;R=R+(C&N^T&(C^N))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;g=($>>>7^$>>>18^$>>>3^$<<25^$<<14)+(m>>>17^m>>>19^m>>>10^m<<15^m<<13)+g+n|0;O=g+O+(L>>>6^L>>>11^L>>>25^L<<26^L<<21^L<<7)+(w^L&(z^w))+0xa831c66d|0;T=T+O|0;O=O+(R&C^N&(R^C))+(R>>>2^R>>>13^R>>>22^R<<30^R<<19^R<<10)|0;$=(E>>>7^E>>>18^E>>>3^E<<25^E<<14)+(f>>>17^f>>>19^f>>>10^f<<15^f<<13)+$+h|0;w=$+w+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(z^T&(L^z))+0xb00327c8|0;N=N+w|0;w=w+(O&R^C&(O^R))+(O>>>2^O>>>13^O>>>22^O<<30^O<<19^O<<10)|0;E=(y>>>7^y>>>18^y>>>3^y<<25^y<<14)+(g>>>17^g>>>19^g>>>10^g<<15^g<<13)+E+d|0;z=E+z+(N>>>6^N>>>11^N>>>25^N<<26^N<<21^N<<7)+(L^N&(T^L))+0xbf597fc7|0;C=C+z|0;z=z+(w&O^R&(w^O))+(w>>>2^w>>>13^w>>>22^w<<30^w<<19^w<<10)|0;y=(b>>>7^b>>>18^b>>>3^b<<25^b<<14)+($>>>17^$>>>19^$>>>10^$<<15^$<<13)+y+p|0;L=y+L+(C>>>6^C>>>11^C>>>25^C<<26^C<<21^C<<7)+(T^C&(N^T))+0xc6e00bf3|0;R=R+L|0;L=L+(z&w^O&(z^w))+(z>>>2^z>>>13^z>>>22^z<<30^z<<19^z<<10)|0;b=(S>>>7^S>>>18^S>>>3^S<<25^S<<14)+(E>>>17^E>>>19^E>>>10^E<<15^E<<13)+b+_|0;T=b+T+(R>>>6^R>>>11^R>>>25^R<<26^R<<21^R<<7)+(N^R&(C^N))+0xd5a79147|0;O=O+T|0;T=T+(L&z^w&(L^z))+(L>>>2^L>>>13^L>>>22^L<<30^L<<19^L<<10)|0;S=(v>>>7^v>>>18^v>>>3^v<<25^v<<14)+(y>>>17^y>>>19^y>>>10^y<<15^y<<13)+S+m|0;N=S+N+(O>>>6^O>>>11^O>>>25^O<<26^O<<21^O<<7)+(C^O&(R^C))+0x06ca6351|0;w=w+N|0;N=N+(T&L^z&(T^L))+(T>>>2^T>>>13^T>>>22^T<<30^T<<19^T<<10)|0;v=(t>>>7^t>>>18^t>>>3^t<<25^t<<14)+(b>>>17^b>>>19^b>>>10^b<<15^b<<13)+v+f|0;C=v+C+(w>>>6^w>>>11^w>>>25^w<<26^w<<21^w<<7)+(R^w&(O^R))+0x14292967|0;z=z+C|0;C=C+(N&T^L&(N^T))+(N>>>2^N>>>13^N>>>22^N<<30^N<<19^N<<10)|0;t=(e>>>7^e>>>18^e>>>3^e<<25^e<<14)+(S>>>17^S>>>19^S>>>10^S<<15^S<<13)+t+g|0;R=t+R+(z>>>6^z>>>11^z>>>25^z<<26^z<<21^z<<7)+(O^z&(w^O))+0x27b70a85|0;L=L+R|0;R=R+(C&N^T&(C^N))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;e=(n>>>7^n>>>18^n>>>3^n<<25^n<<14)+(v>>>17^v>>>19^v>>>10^v<<15^v<<13)+e+$|0;O=e+O+(L>>>6^L>>>11^L>>>25^L<<26^L<<21^L<<7)+(w^L&(z^w))+0x2e1b2138|0;T=T+O|0;O=O+(R&C^N&(R^C))+(R>>>2^R>>>13^R>>>22^R<<30^R<<19^R<<10)|0;n=(h>>>7^h>>>18^h>>>3^h<<25^h<<14)+(t>>>17^t>>>19^t>>>10^t<<15^t<<13)+n+E|0;w=n+w+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(z^T&(L^z))+0x4d2c6dfc|0;N=N+w|0;w=w+(O&R^C&(O^R))+(O>>>2^O>>>13^O>>>22^O<<30^O<<19^O<<10)|0;h=(d>>>7^d>>>18^d>>>3^d<<25^d<<14)+(e>>>17^e>>>19^e>>>10^e<<15^e<<13)+h+y|0;z=h+z+(N>>>6^N>>>11^N>>>25^N<<26^N<<21^N<<7)+(L^N&(T^L))+0x53380d13|0;C=C+z|0;z=z+(w&O^R&(w^O))+(w>>>2^w>>>13^w>>>22^w<<30^w<<19^w<<10)|0;d=(p>>>7^p>>>18^p>>>3^p<<25^p<<14)+(n>>>17^n>>>19^n>>>10^n<<15^n<<13)+d+b|0;L=d+L+(C>>>6^C>>>11^C>>>25^C<<26^C<<21^C<<7)+(T^C&(N^T))+0x650a7354|0;R=R+L|0;L=L+(z&w^O&(z^w))+(z>>>2^z>>>13^z>>>22^z<<30^z<<19^z<<10)|0;p=(_>>>7^_>>>18^_>>>3^_<<25^_<<14)+(h>>>17^h>>>19^h>>>10^h<<15^h<<13)+p+S|0;T=p+T+(R>>>6^R>>>11^R>>>25^R<<26^R<<21^R<<7)+(N^R&(C^N))+0x766a0abb|0;O=O+T|0;T=T+(L&z^w&(L^z))+(L>>>2^L>>>13^L>>>22^L<<30^L<<19^L<<10)|0;_=(m>>>7^m>>>18^m>>>3^m<<25^m<<14)+(d>>>17^d>>>19^d>>>10^d<<15^d<<13)+_+v|0;N=_+N+(O>>>6^O>>>11^O>>>25^O<<26^O<<21^O<<7)+(C^O&(R^C))+0x81c2c92e|0;w=w+N|0;N=N+(T&L^z&(T^L))+(T>>>2^T>>>13^T>>>22^T<<30^T<<19^T<<10)|0;m=(f>>>7^f>>>18^f>>>3^f<<25^f<<14)+(p>>>17^p>>>19^p>>>10^p<<15^p<<13)+m+t|0;C=m+C+(w>>>6^w>>>11^w>>>25^w<<26^w<<21^w<<7)+(R^w&(O^R))+0x92722c85|0;z=z+C|0;C=C+(N&T^L&(N^T))+(N>>>2^N>>>13^N>>>22^N<<30^N<<19^N<<10)|0;f=(g>>>7^g>>>18^g>>>3^g<<25^g<<14)+(_>>>17^_>>>19^_>>>10^_<<15^_<<13)+f+e|0;R=f+R+(z>>>6^z>>>11^z>>>25^z<<26^z<<21^z<<7)+(O^z&(w^O))+0xa2bfe8a1|0;L=L+R|0;R=R+(C&N^T&(C^N))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;g=($>>>7^$>>>18^$>>>3^$<<25^$<<14)+(m>>>17^m>>>19^m>>>10^m<<15^m<<13)+g+n|0;O=g+O+(L>>>6^L>>>11^L>>>25^L<<26^L<<21^L<<7)+(w^L&(z^w))+0xa81a664b|0;T=T+O|0;O=O+(R&C^N&(R^C))+(R>>>2^R>>>13^R>>>22^R<<30^R<<19^R<<10)|0;$=(E>>>7^E>>>18^E>>>3^E<<25^E<<14)+(f>>>17^f>>>19^f>>>10^f<<15^f<<13)+$+h|0;w=$+w+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(z^T&(L^z))+0xc24b8b70|0;N=N+w|0;w=w+(O&R^C&(O^R))+(O>>>2^O>>>13^O>>>22^O<<30^O<<19^O<<10)|0;E=(y>>>7^y>>>18^y>>>3^y<<25^y<<14)+(g>>>17^g>>>19^g>>>10^g<<15^g<<13)+E+d|0;z=E+z+(N>>>6^N>>>11^N>>>25^N<<26^N<<21^N<<7)+(L^N&(T^L))+0xc76c51a3|0;C=C+z|0;z=z+(w&O^R&(w^O))+(w>>>2^w>>>13^w>>>22^w<<30^w<<19^w<<10)|0;y=(b>>>7^b>>>18^b>>>3^b<<25^b<<14)+($>>>17^$>>>19^$>>>10^$<<15^$<<13)+y+p|0;L=y+L+(C>>>6^C>>>11^C>>>25^C<<26^C<<21^C<<7)+(T^C&(N^T))+0xd192e819|0;R=R+L|0;L=L+(z&w^O&(z^w))+(z>>>2^z>>>13^z>>>22^z<<30^z<<19^z<<10)|0;b=(S>>>7^S>>>18^S>>>3^S<<25^S<<14)+(E>>>17^E>>>19^E>>>10^E<<15^E<<13)+b+_|0;T=b+T+(R>>>6^R>>>11^R>>>25^R<<26^R<<21^R<<7)+(N^R&(C^N))+0xd6990624|0;O=O+T|0;T=T+(L&z^w&(L^z))+(L>>>2^L>>>13^L>>>22^L<<30^L<<19^L<<10)|0;S=(v>>>7^v>>>18^v>>>3^v<<25^v<<14)+(y>>>17^y>>>19^y>>>10^y<<15^y<<13)+S+m|0;N=S+N+(O>>>6^O>>>11^O>>>25^O<<26^O<<21^O<<7)+(C^O&(R^C))+0xf40e3585|0;w=w+N|0;N=N+(T&L^z&(T^L))+(T>>>2^T>>>13^T>>>22^T<<30^T<<19^T<<10)|0;v=(t>>>7^t>>>18^t>>>3^t<<25^t<<14)+(b>>>17^b>>>19^b>>>10^b<<15^b<<13)+v+f|0;C=v+C+(w>>>6^w>>>11^w>>>25^w<<26^w<<21^w<<7)+(R^w&(O^R))+0x106aa070|0;z=z+C|0;C=C+(N&T^L&(N^T))+(N>>>2^N>>>13^N>>>22^N<<30^N<<19^N<<10)|0;t=(e>>>7^e>>>18^e>>>3^e<<25^e<<14)+(S>>>17^S>>>19^S>>>10^S<<15^S<<13)+t+g|0;R=t+R+(z>>>6^z>>>11^z>>>25^z<<26^z<<21^z<<7)+(O^z&(w^O))+0x19a4c116|0;L=L+R|0;R=R+(C&N^T&(C^N))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;e=(n>>>7^n>>>18^n>>>3^n<<25^n<<14)+(v>>>17^v>>>19^v>>>10^v<<15^v<<13)+e+$|0;O=e+O+(L>>>6^L>>>11^L>>>25^L<<26^L<<21^L<<7)+(w^L&(z^w))+0x1e376c08|0;T=T+O|0;O=O+(R&C^N&(R^C))+(R>>>2^R>>>13^R>>>22^R<<30^R<<19^R<<10)|0;n=(h>>>7^h>>>18^h>>>3^h<<25^h<<14)+(t>>>17^t>>>19^t>>>10^t<<15^t<<13)+n+E|0;w=n+w+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(z^T&(L^z))+0x2748774c|0;N=N+w|0;w=w+(O&R^C&(O^R))+(O>>>2^O>>>13^O>>>22^O<<30^O<<19^O<<10)|0;h=(d>>>7^d>>>18^d>>>3^d<<25^d<<14)+(e>>>17^e>>>19^e>>>10^e<<15^e<<13)+h+y|0;z=h+z+(N>>>6^N>>>11^N>>>25^N<<26^N<<21^N<<7)+(L^N&(T^L))+0x34b0bcb5|0;C=C+z|0;z=z+(w&O^R&(w^O))+(w>>>2^w>>>13^w>>>22^w<<30^w<<19^w<<10)|0;d=(p>>>7^p>>>18^p>>>3^p<<25^p<<14)+(n>>>17^n>>>19^n>>>10^n<<15^n<<13)+d+b|0;L=d+L+(C>>>6^C>>>11^C>>>25^C<<26^C<<21^C<<7)+(T^C&(N^T))+0x391c0cb3|0;R=R+L|0;L=L+(z&w^O&(z^w))+(z>>>2^z>>>13^z>>>22^z<<30^z<<19^z<<10)|0;p=(_>>>7^_>>>18^_>>>3^_<<25^_<<14)+(h>>>17^h>>>19^h>>>10^h<<15^h<<13)+p+S|0;T=p+T+(R>>>6^R>>>11^R>>>25^R<<26^R<<21^R<<7)+(N^R&(C^N))+0x4ed8aa4a|0;O=O+T|0;T=T+(L&z^w&(L^z))+(L>>>2^L>>>13^L>>>22^L<<30^L<<19^L<<10)|0;_=(m>>>7^m>>>18^m>>>3^m<<25^m<<14)+(d>>>17^d>>>19^d>>>10^d<<15^d<<13)+_+v|0;N=_+N+(O>>>6^O>>>11^O>>>25^O<<26^O<<21^O<<7)+(C^O&(R^C))+0x5b9cca4f|0;w=w+N|0;N=N+(T&L^z&(T^L))+(T>>>2^T>>>13^T>>>22^T<<30^T<<19^T<<10)|0;m=(f>>>7^f>>>18^f>>>3^f<<25^f<<14)+(p>>>17^p>>>19^p>>>10^p<<15^p<<13)+m+t|0;C=m+C+(w>>>6^w>>>11^w>>>25^w<<26^w<<21^w<<7)+(R^w&(O^R))+0x682e6ff3|0;z=z+C|0;C=C+(N&T^L&(N^T))+(N>>>2^N>>>13^N>>>22^N<<30^N<<19^N<<10)|0;f=(g>>>7^g>>>18^g>>>3^g<<25^g<<14)+(_>>>17^_>>>19^_>>>10^_<<15^_<<13)+f+e|0;R=f+R+(z>>>6^z>>>11^z>>>25^z<<26^z<<21^z<<7)+(O^z&(w^O))+0x748f82ee|0;L=L+R|0;R=R+(C&N^T&(C^N))+(C>>>2^C>>>13^C>>>22^C<<30^C<<19^C<<10)|0;g=($>>>7^$>>>18^$>>>3^$<<25^$<<14)+(m>>>17^m>>>19^m>>>10^m<<15^m<<13)+g+n|0;O=g+O+(L>>>6^L>>>11^L>>>25^L<<26^L<<21^L<<7)+(w^L&(z^w))+0x78a5636f|0;T=T+O|0;O=O+(R&C^N&(R^C))+(R>>>2^R>>>13^R>>>22^R<<30^R<<19^R<<10)|0;$=(E>>>7^E>>>18^E>>>3^E<<25^E<<14)+(f>>>17^f>>>19^f>>>10^f<<15^f<<13)+$+h|0;w=$+w+(T>>>6^T>>>11^T>>>25^T<<26^T<<21^T<<7)+(z^T&(L^z))+0x84c87814|0;N=N+w|0;w=w+(O&R^C&(O^R))+(O>>>2^O>>>13^O>>>22^O<<30^O<<19^O<<10)|0;E=(y>>>7^y>>>18^y>>>3^y<<25^y<<14)+(g>>>17^g>>>19^g>>>10^g<<15^g<<13)+E+d|0;z=E+z+(N>>>6^N>>>11^N>>>25^N<<26^N<<21^N<<7)+(L^N&(T^L))+0x8cc70208|0;C=C+z|0;z=z+(w&O^R&(w^O))+(w>>>2^w>>>13^w>>>22^w<<30^w<<19^w<<10)|0;y=(b>>>7^b>>>18^b>>>3^b<<25^b<<14)+($>>>17^$>>>19^$>>>10^$<<15^$<<13)+y+p|0;L=y+L+(C>>>6^C>>>11^C>>>25^C<<26^C<<21^C<<7)+(T^C&(N^T))+0x90befffa|0;R=R+L|0;L=L+(z&w^O&(z^w))+(z>>>2^z>>>13^z>>>22^z<<30^z<<19^z<<10)|0;b=(S>>>7^S>>>18^S>>>3^S<<25^S<<14)+(E>>>17^E>>>19^E>>>10^E<<15^E<<13)+b+_|0;T=b+T+(R>>>6^R>>>11^R>>>25^R<<26^R<<21^R<<7)+(N^R&(C^N))+0xa4506ceb|0;O=O+T|0;T=T+(L&z^w&(L^z))+(L>>>2^L>>>13^L>>>22^L<<30^L<<19^L<<10)|0;S=(v>>>7^v>>>18^v>>>3^v<<25^v<<14)+(y>>>17^y>>>19^y>>>10^y<<15^y<<13)+S+m|0;N=S+N+(O>>>6^O>>>11^O>>>25^O<<26^O<<21^O<<7)+(C^O&(R^C))+0xbef9a3f7|0;w=w+N|0;N=N+(T&L^z&(T^L))+(T>>>2^T>>>13^T>>>22^T<<30^T<<19^T<<10)|0;v=(t>>>7^t>>>18^t>>>3^t<<25^t<<14)+(b>>>17^b>>>19^b>>>10^b<<15^b<<13)+v+f|0;C=v+C+(w>>>6^w>>>11^w>>>25^w<<26^w<<21^w<<7)+(R^w&(O^R))+0xc67178f2|0;z=z+C|0;C=C+(N&T^L&(N^T))+(N>>>2^N>>>13^N>>>22^N<<30^N<<19^N<<10)|0;i=i+C|0;o=o+N|0;r=r+T|0;s=s+L|0;a=a+z|0;c=c+w|0;l=l+O|0;u=u+R|0}function R(t){t=t|0;O(w[t|0]<<24|w[t|1]<<16|w[t|2]<<8|w[t|3],w[t|4]<<24|w[t|5]<<16|w[t|6]<<8|w[t|7],w[t|8]<<24|w[t|9]<<16|w[t|10]<<8|w[t|11],w[t|12]<<24|w[t|13]<<16|w[t|14]<<8|w[t|15],w[t|16]<<24|w[t|17]<<16|w[t|18]<<8|w[t|19],w[t|20]<<24|w[t|21]<<16|w[t|22]<<8|w[t|23],w[t|24]<<24|w[t|25]<<16|w[t|26]<<8|w[t|27],w[t|28]<<24|w[t|29]<<16|w[t|30]<<8|w[t|31],w[t|32]<<24|w[t|33]<<16|w[t|34]<<8|w[t|35],w[t|36]<<24|w[t|37]<<16|w[t|38]<<8|w[t|39],w[t|40]<<24|w[t|41]<<16|w[t|42]<<8|w[t|43],w[t|44]<<24|w[t|45]<<16|w[t|46]<<8|w[t|47],w[t|48]<<24|w[t|49]<<16|w[t|50]<<8|w[t|51],w[t|52]<<24|w[t|53]<<16|w[t|54]<<8|w[t|55],w[t|56]<<24|w[t|57]<<16|w[t|58]<<8|w[t|59],w[t|60]<<24|w[t|61]<<16|w[t|62]<<8|w[t|63])}function A(t){t=t|0;w[t|0]=i>>>24;w[t|1]=i>>>16&255;w[t|2]=i>>>8&255;w[t|3]=i&255;w[t|4]=o>>>24;w[t|5]=o>>>16&255;w[t|6]=o>>>8&255;w[t|7]=o&255;w[t|8]=r>>>24;w[t|9]=r>>>16&255;w[t|10]=r>>>8&255;w[t|11]=r&255;w[t|12]=s>>>24;w[t|13]=s>>>16&255;w[t|14]=s>>>8&255;w[t|15]=s&255;w[t|16]=a>>>24;w[t|17]=a>>>16&255;w[t|18]=a>>>8&255;w[t|19]=a&255;w[t|20]=c>>>24;w[t|21]=c>>>16&255;w[t|22]=c>>>8&255;w[t|23]=c&255;w[t|24]=l>>>24;w[t|25]=l>>>16&255;w[t|26]=l>>>8&255;w[t|27]=l&255;w[t|28]=u>>>24;w[t|29]=u>>>16&255;w[t|30]=u>>>8&255;w[t|31]=u&255}function x(){i=0x6a09e667;o=0xbb67ae85;r=0x3c6ef372;s=0xa54ff53a;a=0x510e527f;c=0x9b05688c;l=0x1f83d9ab;u=0x5be0cd19;h=d=0}function I(t,e,n,p,_,m,f,g,$,E){t=t|0;e=e|0;n=n|0;p=p|0;_=_|0;m=m|0;f=f|0;g=g|0;$=$|0;E=E|0;i=t;o=e;r=n;s=p;a=_;c=m;l=f;u=g;h=$;d=E}function U(t,e){t=t|0;e=e|0;var n=0;if(t&63)return-1;while((e|0)>=64){R(t);t=t+64|0;e=e-64|0;n=n+64|0}h=h+n|0;if(h>>>0>>0)d=d+1|0;return n|0}function D(t,e,n){t=t|0;e=e|0;n=n|0;var i=0,o=0;if(t&63)return-1;if(~n)if(n&31)return-1;if((e|0)>=64){i=U(t,e)|0;if((i|0)==-1)return-1;t=t+i|0;e=e-i|0}i=i+e|0;h=h+e|0;if(h>>>0>>0)d=d+1|0;w[t|e]=0x80;if((e|0)>=56){for(o=e+1|0;(o|0)<64;o=o+1|0)w[t|o]=0x00;R(t);e=0;w[t|0]=0}for(o=e+1|0;(o|0)<59;o=o+1|0)w[t|o]=0;w[t|56]=d>>>21&255;w[t|57]=d>>>13&255;w[t|58]=d>>>5&255;w[t|59]=d<<3&255|h>>>29;w[t|60]=h>>>21&255;w[t|61]=h>>>13&255;w[t|62]=h>>>5&255;w[t|63]=h<<3&255;R(t);if(~n)A(n);return i|0}function P(){i=p;o=_;r=m;s=f;a=g;c=$;l=E;u=y;h=64;d=0}function M(){i=b;o=S;r=v;s=C;a=N;c=T;l=L;u=z;h=64;d=0}function k(t,e,n,w,R,A,I,U,D,P,M,k,j,G,q,F){t=t|0;e=e|0;n=n|0;w=w|0;R=R|0;A=A|0;I=I|0;U=U|0;D=D|0;P=P|0;M=M|0;k=k|0;j=j|0;G=G|0;q=q|0;F=F|0;x();O(t^0x5c5c5c5c,e^0x5c5c5c5c,n^0x5c5c5c5c,w^0x5c5c5c5c,R^0x5c5c5c5c,A^0x5c5c5c5c,I^0x5c5c5c5c,U^0x5c5c5c5c,D^0x5c5c5c5c,P^0x5c5c5c5c,M^0x5c5c5c5c,k^0x5c5c5c5c,j^0x5c5c5c5c,G^0x5c5c5c5c,q^0x5c5c5c5c,F^0x5c5c5c5c);b=i;S=o;v=r;C=s;N=a;T=c;L=l;z=u;x();O(t^0x36363636,e^0x36363636,n^0x36363636,w^0x36363636,R^0x36363636,A^0x36363636,I^0x36363636,U^0x36363636,D^0x36363636,P^0x36363636,M^0x36363636,k^0x36363636,j^0x36363636,G^0x36363636,q^0x36363636,F^0x36363636);p=i;_=o;m=r;f=s;g=a;$=c;E=l;y=u;h=64;d=0}function j(t,e,n){t=t|0;e=e|0;n=n|0;var h=0,d=0,p=0,_=0,m=0,f=0,g=0,$=0,E=0;if(t&63)return-1;if(~n)if(n&31)return-1;E=D(t,e,-1)|0;h=i,d=o,p=r,_=s,m=a,f=c,g=l,$=u;M();O(h,d,p,_,m,f,g,$,0x80000000,0,0,0,0,0,0,768);if(~n)A(n);return E|0}function G(t,e,n,h,d){t=t|0;e=e|0;n=n|0;h=h|0;d=d|0;var p=0,_=0,m=0,f=0,g=0,$=0,E=0,y=0,b=0,S=0,v=0,C=0,N=0,T=0,L=0,z=0;if(t&63)return-1;if(~d)if(d&31)return-1;w[t+e|0]=n>>>24;w[t+e+1|0]=n>>>16&255;w[t+e+2|0]=n>>>8&255;w[t+e+3|0]=n&255;j(t,e+4|0,-1)|0;p=b=i,_=S=o,m=v=r,f=C=s,g=N=a,$=T=c,E=L=l,y=z=u;h=h-1|0;while((h|0)>0){P();O(b,S,v,C,N,T,L,z,0x80000000,0,0,0,0,0,0,768);b=i,S=o,v=r,C=s,N=a,T=c,L=l,z=u;M();O(b,S,v,C,N,T,L,z,0x80000000,0,0,0,0,0,0,768);b=i,S=o,v=r,C=s,N=a,T=c,L=l,z=u;p=p^i;_=_^o;m=m^r;f=f^s;g=g^a;$=$^c;E=E^l;y=y^u;h=h-1|0}i=p;o=_;r=m;s=f;a=g;c=$;l=E;u=y;if(~d)A(d);return 0}return{reset:x,init:I,process:U,finish:D,hmac_reset:P,hmac_init:k,hmac_finish:j,pbkdf2_generate_block:G}}({Uint8Array:Uint8Array},null,this.heap.buffer),this.reset()}}G.NAME="sha256";class q extends k{constructor(){super(),this.NAME="sha512",this.BLOCK_SIZE=128,this.HASH_SIZE=64,this.heap=p(),this.asm=function(t,e,n){"use asm";var i=0,o=0,r=0,s=0,a=0,c=0,l=0,u=0,h=0,d=0,p=0,_=0,m=0,f=0,g=0,$=0,E=0,y=0,b=0,S=0,v=0,C=0,N=0,T=0,L=0,z=0,w=0,O=0,R=0,A=0,x=0,I=0,U=0,D=0,P=0,M=0,k=0,j=0,G=0,q=0,F=0,B=0,W=0,H=0,V=0,K=0,X=0,J=0,Y=0,Q=0,Z=new t.Uint8Array(n);function tt(t,e,n,E,y,b,S,v,C,N,T,L,z,w,O,R,A,x,I,U,D,P,M,k,j,G,q,F,B,W,H,V){t=t|0;e=e|0;n=n|0;E=E|0;y=y|0;b=b|0;S=S|0;v=v|0;C=C|0;N=N|0;T=T|0;L=L|0;z=z|0;w=w|0;O=O|0;R=R|0;A=A|0;x=x|0;I=I|0;U=U|0;D=D|0;P=P|0;M=M|0;k=k|0;j=j|0;G=G|0;q=q|0;F=F|0;B=B|0;W=W|0;H=H|0;V=V|0;var K=0,X=0,J=0,Y=0,Q=0,Z=0,tt=0,et=0,nt=0,it=0,ot=0,rt=0,st=0,at=0,ct=0,lt=0,ut=0,ht=0,dt=0;K=i;X=o;J=r;Y=s;Q=a;Z=c;tt=l;et=u;nt=h;it=d;ot=p;rt=_;st=m;at=f;ct=g;lt=$;ht=0xd728ae22+e|0;ut=0x428a2f98+t+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;ht=0x23ef65cd+E|0;ut=0x71374491+n+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;ht=0xec4d3b2f+b|0;ut=0xb5c0fbcf+y+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;ht=0x8189dbbc+v|0;ut=0xe9b5dba5+S+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;ht=0xf348b538+N|0;ut=0x3956c25b+C+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;ht=0xb605d019+L|0;ut=0x59f111f1+T+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;ht=0xaf194f9b+w|0;ut=0x923f82a4+z+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;ht=0xda6d8118+R|0;ut=0xab1c5ed5+O+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;ht=0xa3030242+x|0;ut=0xd807aa98+A+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;ht=0x45706fbe+U|0;ut=0x12835b01+I+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;ht=0x4ee4b28c+P|0;ut=0x243185be+D+(ht>>>0

>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0

>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;ht=0xd5ffb4e2+k|0;ut=0x550c7dc3+M+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;ht=0xf27b896f+G|0;ut=0x72be5d74+j+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;ht=0x3b1696b1+F|0;ut=0x80deb1fe+q+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;ht=0x25c71235+W|0;ut=0x9bdc06a7+B+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;ht=0xcf692694+V|0;ut=0xc19bf174+H+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;e=e+U|0;t=t+I+(e>>>0>>0?1:0)|0;dt=(E>>>1|n<<31)^(E>>>8|n<<24)^(E>>>7|n<<25)|0;e=e+dt|0;t=t+((n>>>1|E<<31)^(n>>>8|E<<24)^n>>>7)+(e>>>0
>>0?1:0)|0;dt=(W>>>19|B<<13)^(W<<3|B>>>29)^(W>>>6|B<<26)|0;e=e+dt|0;t=t+((B>>>19|W<<13)^(B<<3|W>>>29)^B>>>6)+(e>>>0
>>0?1:0)|0;ht=0x9ef14ad2+e|0;ut=0xe49b69c1+t+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;E=E+P|0;n=n+D+(E>>>0

>>0?1:0)|0;dt=(b>>>1|y<<31)^(b>>>8|y<<24)^(b>>>7|y<<25)|0;E=E+dt|0;n=n+((y>>>1|b<<31)^(y>>>8|b<<24)^y>>>7)+(E>>>0

>>0?1:0)|0;dt=(V>>>19|H<<13)^(V<<3|H>>>29)^(V>>>6|H<<26)|0;E=E+dt|0;n=n+((H>>>19|V<<13)^(H<<3|V>>>29)^H>>>6)+(E>>>0
>>0?1:0)|0;ht=0x384f25e3+E|0;ut=0xefbe4786+n+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;b=b+k|0;y=y+M+(b>>>0>>0?1:0)|0;dt=(v>>>1|S<<31)^(v>>>8|S<<24)^(v>>>7|S<<25)|0;b=b+dt|0;y=y+((S>>>1|v<<31)^(S>>>8|v<<24)^S>>>7)+(b>>>0
>>0?1:0)|0;dt=(e>>>19|t<<13)^(e<<3|t>>>29)^(e>>>6|t<<26)|0;b=b+dt|0;y=y+((t>>>19|e<<13)^(t<<3|e>>>29)^t>>>6)+(b>>>0
>>0?1:0)|0;ht=0x8b8cd5b5+b|0;ut=0xfc19dc6+y+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;v=v+G|0;S=S+j+(v>>>0>>0?1:0)|0;dt=(N>>>1|C<<31)^(N>>>8|C<<24)^(N>>>7|C<<25)|0;v=v+dt|0;S=S+((C>>>1|N<<31)^(C>>>8|N<<24)^C>>>7)+(v>>>0
>>0?1:0)|0;dt=(E>>>19|n<<13)^(E<<3|n>>>29)^(E>>>6|n<<26)|0;v=v+dt|0;S=S+((n>>>19|E<<13)^(n<<3|E>>>29)^n>>>6)+(v>>>0
>>0?1:0)|0;ht=0x77ac9c65+v|0;ut=0x240ca1cc+S+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;N=N+F|0;C=C+q+(N>>>0>>0?1:0)|0;dt=(L>>>1|T<<31)^(L>>>8|T<<24)^(L>>>7|T<<25)|0;N=N+dt|0;C=C+((T>>>1|L<<31)^(T>>>8|L<<24)^T>>>7)+(N>>>0
>>0?1:0)|0;dt=(b>>>19|y<<13)^(b<<3|y>>>29)^(b>>>6|y<<26)|0;N=N+dt|0;C=C+((y>>>19|b<<13)^(y<<3|b>>>29)^y>>>6)+(N>>>0
>>0?1:0)|0;ht=0x592b0275+N|0;ut=0x2de92c6f+C+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;L=L+W|0;T=T+B+(L>>>0>>0?1:0)|0;dt=(w>>>1|z<<31)^(w>>>8|z<<24)^(w>>>7|z<<25)|0;L=L+dt|0;T=T+((z>>>1|w<<31)^(z>>>8|w<<24)^z>>>7)+(L>>>0
>>0?1:0)|0;dt=(v>>>19|S<<13)^(v<<3|S>>>29)^(v>>>6|S<<26)|0;L=L+dt|0;T=T+((S>>>19|v<<13)^(S<<3|v>>>29)^S>>>6)+(L>>>0
>>0?1:0)|0;ht=0x6ea6e483+L|0;ut=0x4a7484aa+T+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;w=w+V|0;z=z+H+(w>>>0>>0?1:0)|0;dt=(R>>>1|O<<31)^(R>>>8|O<<24)^(R>>>7|O<<25)|0;w=w+dt|0;z=z+((O>>>1|R<<31)^(O>>>8|R<<24)^O>>>7)+(w>>>0
>>0?1:0)|0;dt=(N>>>19|C<<13)^(N<<3|C>>>29)^(N>>>6|C<<26)|0;w=w+dt|0;z=z+((C>>>19|N<<13)^(C<<3|N>>>29)^C>>>6)+(w>>>0
>>0?1:0)|0;ht=0xbd41fbd4+w|0;ut=0x5cb0a9dc+z+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;R=R+e|0;O=O+t+(R>>>0>>0?1:0)|0;dt=(x>>>1|A<<31)^(x>>>8|A<<24)^(x>>>7|A<<25)|0;R=R+dt|0;O=O+((A>>>1|x<<31)^(A>>>8|x<<24)^A>>>7)+(R>>>0
>>0?1:0)|0;dt=(L>>>19|T<<13)^(L<<3|T>>>29)^(L>>>6|T<<26)|0;R=R+dt|0;O=O+((T>>>19|L<<13)^(T<<3|L>>>29)^T>>>6)+(R>>>0
>>0?1:0)|0;ht=0x831153b5+R|0;ut=0x76f988da+O+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;x=x+E|0;A=A+n+(x>>>0>>0?1:0)|0;dt=(U>>>1|I<<31)^(U>>>8|I<<24)^(U>>>7|I<<25)|0;x=x+dt|0;A=A+((I>>>1|U<<31)^(I>>>8|U<<24)^I>>>7)+(x>>>0
>>0?1:0)|0;dt=(w>>>19|z<<13)^(w<<3|z>>>29)^(w>>>6|z<<26)|0;x=x+dt|0;A=A+((z>>>19|w<<13)^(z<<3|w>>>29)^z>>>6)+(x>>>0
>>0?1:0)|0;ht=0xee66dfab+x|0;ut=0x983e5152+A+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;U=U+b|0;I=I+y+(U>>>0>>0?1:0)|0;dt=(P>>>1|D<<31)^(P>>>8|D<<24)^(P>>>7|D<<25)|0;U=U+dt|0;I=I+((D>>>1|P<<31)^(D>>>8|P<<24)^D>>>7)+(U>>>0
>>0?1:0)|0;dt=(R>>>19|O<<13)^(R<<3|O>>>29)^(R>>>6|O<<26)|0;U=U+dt|0;I=I+((O>>>19|R<<13)^(O<<3|R>>>29)^O>>>6)+(U>>>0
>>0?1:0)|0;ht=0x2db43210+U|0;ut=0xa831c66d+I+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;P=P+v|0;D=D+S+(P>>>0>>0?1:0)|0;dt=(k>>>1|M<<31)^(k>>>8|M<<24)^(k>>>7|M<<25)|0;P=P+dt|0;D=D+((M>>>1|k<<31)^(M>>>8|k<<24)^M>>>7)+(P>>>0
>>0?1:0)|0;dt=(x>>>19|A<<13)^(x<<3|A>>>29)^(x>>>6|A<<26)|0;P=P+dt|0;D=D+((A>>>19|x<<13)^(A<<3|x>>>29)^A>>>6)+(P>>>0
>>0?1:0)|0;ht=0x98fb213f+P|0;ut=0xb00327c8+D+(ht>>>0

>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0

>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;k=k+N|0;M=M+C+(k>>>0>>0?1:0)|0;dt=(G>>>1|j<<31)^(G>>>8|j<<24)^(G>>>7|j<<25)|0;k=k+dt|0;M=M+((j>>>1|G<<31)^(j>>>8|G<<24)^j>>>7)+(k>>>0
>>0?1:0)|0;dt=(U>>>19|I<<13)^(U<<3|I>>>29)^(U>>>6|I<<26)|0;k=k+dt|0;M=M+((I>>>19|U<<13)^(I<<3|U>>>29)^I>>>6)+(k>>>0
>>0?1:0)|0;ht=0xbeef0ee4+k|0;ut=0xbf597fc7+M+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;G=G+L|0;j=j+T+(G>>>0>>0?1:0)|0;dt=(F>>>1|q<<31)^(F>>>8|q<<24)^(F>>>7|q<<25)|0;G=G+dt|0;j=j+((q>>>1|F<<31)^(q>>>8|F<<24)^q>>>7)+(G>>>0
>>0?1:0)|0;dt=(P>>>19|D<<13)^(P<<3|D>>>29)^(P>>>6|D<<26)|0;G=G+dt|0;j=j+((D>>>19|P<<13)^(D<<3|P>>>29)^D>>>6)+(G>>>0
>>0?1:0)|0;ht=0x3da88fc2+G|0;ut=0xc6e00bf3+j+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;F=F+w|0;q=q+z+(F>>>0>>0?1:0)|0;dt=(W>>>1|B<<31)^(W>>>8|B<<24)^(W>>>7|B<<25)|0;F=F+dt|0;q=q+((B>>>1|W<<31)^(B>>>8|W<<24)^B>>>7)+(F>>>0
>>0?1:0)|0;dt=(k>>>19|M<<13)^(k<<3|M>>>29)^(k>>>6|M<<26)|0;F=F+dt|0;q=q+((M>>>19|k<<13)^(M<<3|k>>>29)^M>>>6)+(F>>>0
>>0?1:0)|0;ht=0x930aa725+F|0;ut=0xd5a79147+q+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;W=W+R|0;B=B+O+(W>>>0>>0?1:0)|0;dt=(V>>>1|H<<31)^(V>>>8|H<<24)^(V>>>7|H<<25)|0;W=W+dt|0;B=B+((H>>>1|V<<31)^(H>>>8|V<<24)^H>>>7)+(W>>>0
>>0?1:0)|0;dt=(G>>>19|j<<13)^(G<<3|j>>>29)^(G>>>6|j<<26)|0;W=W+dt|0;B=B+((j>>>19|G<<13)^(j<<3|G>>>29)^j>>>6)+(W>>>0
>>0?1:0)|0;ht=0xe003826f+W|0;ut=0x6ca6351+B+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;V=V+x|0;H=H+A+(V>>>0>>0?1:0)|0;dt=(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)|0;V=V+dt|0;H=H+((t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7)+(V>>>0
>>0?1:0)|0;dt=(F>>>19|q<<13)^(F<<3|q>>>29)^(F>>>6|q<<26)|0;V=V+dt|0;H=H+((q>>>19|F<<13)^(q<<3|F>>>29)^q>>>6)+(V>>>0
>>0?1:0)|0;ht=0xa0e6e70+V|0;ut=0x14292967+H+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;e=e+U|0;t=t+I+(e>>>0>>0?1:0)|0;dt=(E>>>1|n<<31)^(E>>>8|n<<24)^(E>>>7|n<<25)|0;e=e+dt|0;t=t+((n>>>1|E<<31)^(n>>>8|E<<24)^n>>>7)+(e>>>0
>>0?1:0)|0;dt=(W>>>19|B<<13)^(W<<3|B>>>29)^(W>>>6|B<<26)|0;e=e+dt|0;t=t+((B>>>19|W<<13)^(B<<3|W>>>29)^B>>>6)+(e>>>0
>>0?1:0)|0;ht=0x46d22ffc+e|0;ut=0x27b70a85+t+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;E=E+P|0;n=n+D+(E>>>0

>>0?1:0)|0;dt=(b>>>1|y<<31)^(b>>>8|y<<24)^(b>>>7|y<<25)|0;E=E+dt|0;n=n+((y>>>1|b<<31)^(y>>>8|b<<24)^y>>>7)+(E>>>0

>>0?1:0)|0;dt=(V>>>19|H<<13)^(V<<3|H>>>29)^(V>>>6|H<<26)|0;E=E+dt|0;n=n+((H>>>19|V<<13)^(H<<3|V>>>29)^H>>>6)+(E>>>0
>>0?1:0)|0;ht=0x5c26c926+E|0;ut=0x2e1b2138+n+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;b=b+k|0;y=y+M+(b>>>0>>0?1:0)|0;dt=(v>>>1|S<<31)^(v>>>8|S<<24)^(v>>>7|S<<25)|0;b=b+dt|0;y=y+((S>>>1|v<<31)^(S>>>8|v<<24)^S>>>7)+(b>>>0
>>0?1:0)|0;dt=(e>>>19|t<<13)^(e<<3|t>>>29)^(e>>>6|t<<26)|0;b=b+dt|0;y=y+((t>>>19|e<<13)^(t<<3|e>>>29)^t>>>6)+(b>>>0
>>0?1:0)|0;ht=0x5ac42aed+b|0;ut=0x4d2c6dfc+y+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;v=v+G|0;S=S+j+(v>>>0>>0?1:0)|0;dt=(N>>>1|C<<31)^(N>>>8|C<<24)^(N>>>7|C<<25)|0;v=v+dt|0;S=S+((C>>>1|N<<31)^(C>>>8|N<<24)^C>>>7)+(v>>>0
>>0?1:0)|0;dt=(E>>>19|n<<13)^(E<<3|n>>>29)^(E>>>6|n<<26)|0;v=v+dt|0;S=S+((n>>>19|E<<13)^(n<<3|E>>>29)^n>>>6)+(v>>>0
>>0?1:0)|0;ht=0x9d95b3df+v|0;ut=0x53380d13+S+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;N=N+F|0;C=C+q+(N>>>0>>0?1:0)|0;dt=(L>>>1|T<<31)^(L>>>8|T<<24)^(L>>>7|T<<25)|0;N=N+dt|0;C=C+((T>>>1|L<<31)^(T>>>8|L<<24)^T>>>7)+(N>>>0
>>0?1:0)|0;dt=(b>>>19|y<<13)^(b<<3|y>>>29)^(b>>>6|y<<26)|0;N=N+dt|0;C=C+((y>>>19|b<<13)^(y<<3|b>>>29)^y>>>6)+(N>>>0
>>0?1:0)|0;ht=0x8baf63de+N|0;ut=0x650a7354+C+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;L=L+W|0;T=T+B+(L>>>0>>0?1:0)|0;dt=(w>>>1|z<<31)^(w>>>8|z<<24)^(w>>>7|z<<25)|0;L=L+dt|0;T=T+((z>>>1|w<<31)^(z>>>8|w<<24)^z>>>7)+(L>>>0
>>0?1:0)|0;dt=(v>>>19|S<<13)^(v<<3|S>>>29)^(v>>>6|S<<26)|0;L=L+dt|0;T=T+((S>>>19|v<<13)^(S<<3|v>>>29)^S>>>6)+(L>>>0
>>0?1:0)|0;ht=0x3c77b2a8+L|0;ut=0x766a0abb+T+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;w=w+V|0;z=z+H+(w>>>0>>0?1:0)|0;dt=(R>>>1|O<<31)^(R>>>8|O<<24)^(R>>>7|O<<25)|0;w=w+dt|0;z=z+((O>>>1|R<<31)^(O>>>8|R<<24)^O>>>7)+(w>>>0
>>0?1:0)|0;dt=(N>>>19|C<<13)^(N<<3|C>>>29)^(N>>>6|C<<26)|0;w=w+dt|0;z=z+((C>>>19|N<<13)^(C<<3|N>>>29)^C>>>6)+(w>>>0
>>0?1:0)|0;ht=0x47edaee6+w|0;ut=0x81c2c92e+z+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;R=R+e|0;O=O+t+(R>>>0>>0?1:0)|0;dt=(x>>>1|A<<31)^(x>>>8|A<<24)^(x>>>7|A<<25)|0;R=R+dt|0;O=O+((A>>>1|x<<31)^(A>>>8|x<<24)^A>>>7)+(R>>>0
>>0?1:0)|0;dt=(L>>>19|T<<13)^(L<<3|T>>>29)^(L>>>6|T<<26)|0;R=R+dt|0;O=O+((T>>>19|L<<13)^(T<<3|L>>>29)^T>>>6)+(R>>>0
>>0?1:0)|0;ht=0x1482353b+R|0;ut=0x92722c85+O+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;x=x+E|0;A=A+n+(x>>>0>>0?1:0)|0;dt=(U>>>1|I<<31)^(U>>>8|I<<24)^(U>>>7|I<<25)|0;x=x+dt|0;A=A+((I>>>1|U<<31)^(I>>>8|U<<24)^I>>>7)+(x>>>0
>>0?1:0)|0;dt=(w>>>19|z<<13)^(w<<3|z>>>29)^(w>>>6|z<<26)|0;x=x+dt|0;A=A+((z>>>19|w<<13)^(z<<3|w>>>29)^z>>>6)+(x>>>0
>>0?1:0)|0;ht=0x4cf10364+x|0;ut=0xa2bfe8a1+A+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;U=U+b|0;I=I+y+(U>>>0>>0?1:0)|0;dt=(P>>>1|D<<31)^(P>>>8|D<<24)^(P>>>7|D<<25)|0;U=U+dt|0;I=I+((D>>>1|P<<31)^(D>>>8|P<<24)^D>>>7)+(U>>>0
>>0?1:0)|0;dt=(R>>>19|O<<13)^(R<<3|O>>>29)^(R>>>6|O<<26)|0;U=U+dt|0;I=I+((O>>>19|R<<13)^(O<<3|R>>>29)^O>>>6)+(U>>>0
>>0?1:0)|0;ht=0xbc423001+U|0;ut=0xa81a664b+I+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;P=P+v|0;D=D+S+(P>>>0>>0?1:0)|0;dt=(k>>>1|M<<31)^(k>>>8|M<<24)^(k>>>7|M<<25)|0;P=P+dt|0;D=D+((M>>>1|k<<31)^(M>>>8|k<<24)^M>>>7)+(P>>>0
>>0?1:0)|0;dt=(x>>>19|A<<13)^(x<<3|A>>>29)^(x>>>6|A<<26)|0;P=P+dt|0;D=D+((A>>>19|x<<13)^(A<<3|x>>>29)^A>>>6)+(P>>>0
>>0?1:0)|0;ht=0xd0f89791+P|0;ut=0xc24b8b70+D+(ht>>>0

>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0

>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;k=k+N|0;M=M+C+(k>>>0>>0?1:0)|0;dt=(G>>>1|j<<31)^(G>>>8|j<<24)^(G>>>7|j<<25)|0;k=k+dt|0;M=M+((j>>>1|G<<31)^(j>>>8|G<<24)^j>>>7)+(k>>>0
>>0?1:0)|0;dt=(U>>>19|I<<13)^(U<<3|I>>>29)^(U>>>6|I<<26)|0;k=k+dt|0;M=M+((I>>>19|U<<13)^(I<<3|U>>>29)^I>>>6)+(k>>>0
>>0?1:0)|0;ht=0x654be30+k|0;ut=0xc76c51a3+M+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;G=G+L|0;j=j+T+(G>>>0>>0?1:0)|0;dt=(F>>>1|q<<31)^(F>>>8|q<<24)^(F>>>7|q<<25)|0;G=G+dt|0;j=j+((q>>>1|F<<31)^(q>>>8|F<<24)^q>>>7)+(G>>>0
>>0?1:0)|0;dt=(P>>>19|D<<13)^(P<<3|D>>>29)^(P>>>6|D<<26)|0;G=G+dt|0;j=j+((D>>>19|P<<13)^(D<<3|P>>>29)^D>>>6)+(G>>>0
>>0?1:0)|0;ht=0xd6ef5218+G|0;ut=0xd192e819+j+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;F=F+w|0;q=q+z+(F>>>0>>0?1:0)|0;dt=(W>>>1|B<<31)^(W>>>8|B<<24)^(W>>>7|B<<25)|0;F=F+dt|0;q=q+((B>>>1|W<<31)^(B>>>8|W<<24)^B>>>7)+(F>>>0
>>0?1:0)|0;dt=(k>>>19|M<<13)^(k<<3|M>>>29)^(k>>>6|M<<26)|0;F=F+dt|0;q=q+((M>>>19|k<<13)^(M<<3|k>>>29)^M>>>6)+(F>>>0
>>0?1:0)|0;ht=0x5565a910+F|0;ut=0xd6990624+q+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;W=W+R|0;B=B+O+(W>>>0>>0?1:0)|0;dt=(V>>>1|H<<31)^(V>>>8|H<<24)^(V>>>7|H<<25)|0;W=W+dt|0;B=B+((H>>>1|V<<31)^(H>>>8|V<<24)^H>>>7)+(W>>>0
>>0?1:0)|0;dt=(G>>>19|j<<13)^(G<<3|j>>>29)^(G>>>6|j<<26)|0;W=W+dt|0;B=B+((j>>>19|G<<13)^(j<<3|G>>>29)^j>>>6)+(W>>>0
>>0?1:0)|0;ht=0x5771202a+W|0;ut=0xf40e3585+B+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;V=V+x|0;H=H+A+(V>>>0>>0?1:0)|0;dt=(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)|0;V=V+dt|0;H=H+((t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7)+(V>>>0
>>0?1:0)|0;dt=(F>>>19|q<<13)^(F<<3|q>>>29)^(F>>>6|q<<26)|0;V=V+dt|0;H=H+((q>>>19|F<<13)^(q<<3|F>>>29)^q>>>6)+(V>>>0
>>0?1:0)|0;ht=0x32bbd1b8+V|0;ut=0x106aa070+H+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;e=e+U|0;t=t+I+(e>>>0>>0?1:0)|0;dt=(E>>>1|n<<31)^(E>>>8|n<<24)^(E>>>7|n<<25)|0;e=e+dt|0;t=t+((n>>>1|E<<31)^(n>>>8|E<<24)^n>>>7)+(e>>>0
>>0?1:0)|0;dt=(W>>>19|B<<13)^(W<<3|B>>>29)^(W>>>6|B<<26)|0;e=e+dt|0;t=t+((B>>>19|W<<13)^(B<<3|W>>>29)^B>>>6)+(e>>>0
>>0?1:0)|0;ht=0xb8d2d0c8+e|0;ut=0x19a4c116+t+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;E=E+P|0;n=n+D+(E>>>0

>>0?1:0)|0;dt=(b>>>1|y<<31)^(b>>>8|y<<24)^(b>>>7|y<<25)|0;E=E+dt|0;n=n+((y>>>1|b<<31)^(y>>>8|b<<24)^y>>>7)+(E>>>0

>>0?1:0)|0;dt=(V>>>19|H<<13)^(V<<3|H>>>29)^(V>>>6|H<<26)|0;E=E+dt|0;n=n+((H>>>19|V<<13)^(H<<3|V>>>29)^H>>>6)+(E>>>0
>>0?1:0)|0;ht=0x5141ab53+E|0;ut=0x1e376c08+n+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;b=b+k|0;y=y+M+(b>>>0>>0?1:0)|0;dt=(v>>>1|S<<31)^(v>>>8|S<<24)^(v>>>7|S<<25)|0;b=b+dt|0;y=y+((S>>>1|v<<31)^(S>>>8|v<<24)^S>>>7)+(b>>>0
>>0?1:0)|0;dt=(e>>>19|t<<13)^(e<<3|t>>>29)^(e>>>6|t<<26)|0;b=b+dt|0;y=y+((t>>>19|e<<13)^(t<<3|e>>>29)^t>>>6)+(b>>>0
>>0?1:0)|0;ht=0xdf8eeb99+b|0;ut=0x2748774c+y+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;v=v+G|0;S=S+j+(v>>>0>>0?1:0)|0;dt=(N>>>1|C<<31)^(N>>>8|C<<24)^(N>>>7|C<<25)|0;v=v+dt|0;S=S+((C>>>1|N<<31)^(C>>>8|N<<24)^C>>>7)+(v>>>0
>>0?1:0)|0;dt=(E>>>19|n<<13)^(E<<3|n>>>29)^(E>>>6|n<<26)|0;v=v+dt|0;S=S+((n>>>19|E<<13)^(n<<3|E>>>29)^n>>>6)+(v>>>0
>>0?1:0)|0;ht=0xe19b48a8+v|0;ut=0x34b0bcb5+S+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;N=N+F|0;C=C+q+(N>>>0>>0?1:0)|0;dt=(L>>>1|T<<31)^(L>>>8|T<<24)^(L>>>7|T<<25)|0;N=N+dt|0;C=C+((T>>>1|L<<31)^(T>>>8|L<<24)^T>>>7)+(N>>>0
>>0?1:0)|0;dt=(b>>>19|y<<13)^(b<<3|y>>>29)^(b>>>6|y<<26)|0;N=N+dt|0;C=C+((y>>>19|b<<13)^(y<<3|b>>>29)^y>>>6)+(N>>>0
>>0?1:0)|0;ht=0xc5c95a63+N|0;ut=0x391c0cb3+C+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;L=L+W|0;T=T+B+(L>>>0>>0?1:0)|0;dt=(w>>>1|z<<31)^(w>>>8|z<<24)^(w>>>7|z<<25)|0;L=L+dt|0;T=T+((z>>>1|w<<31)^(z>>>8|w<<24)^z>>>7)+(L>>>0
>>0?1:0)|0;dt=(v>>>19|S<<13)^(v<<3|S>>>29)^(v>>>6|S<<26)|0;L=L+dt|0;T=T+((S>>>19|v<<13)^(S<<3|v>>>29)^S>>>6)+(L>>>0
>>0?1:0)|0;ht=0xe3418acb+L|0;ut=0x4ed8aa4a+T+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;w=w+V|0;z=z+H+(w>>>0>>0?1:0)|0;dt=(R>>>1|O<<31)^(R>>>8|O<<24)^(R>>>7|O<<25)|0;w=w+dt|0;z=z+((O>>>1|R<<31)^(O>>>8|R<<24)^O>>>7)+(w>>>0
>>0?1:0)|0;dt=(N>>>19|C<<13)^(N<<3|C>>>29)^(N>>>6|C<<26)|0;w=w+dt|0;z=z+((C>>>19|N<<13)^(C<<3|N>>>29)^C>>>6)+(w>>>0
>>0?1:0)|0;ht=0x7763e373+w|0;ut=0x5b9cca4f+z+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;R=R+e|0;O=O+t+(R>>>0>>0?1:0)|0;dt=(x>>>1|A<<31)^(x>>>8|A<<24)^(x>>>7|A<<25)|0;R=R+dt|0;O=O+((A>>>1|x<<31)^(A>>>8|x<<24)^A>>>7)+(R>>>0
>>0?1:0)|0;dt=(L>>>19|T<<13)^(L<<3|T>>>29)^(L>>>6|T<<26)|0;R=R+dt|0;O=O+((T>>>19|L<<13)^(T<<3|L>>>29)^T>>>6)+(R>>>0
>>0?1:0)|0;ht=0xd6b2b8a3+R|0;ut=0x682e6ff3+O+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;x=x+E|0;A=A+n+(x>>>0>>0?1:0)|0;dt=(U>>>1|I<<31)^(U>>>8|I<<24)^(U>>>7|I<<25)|0;x=x+dt|0;A=A+((I>>>1|U<<31)^(I>>>8|U<<24)^I>>>7)+(x>>>0
>>0?1:0)|0;dt=(w>>>19|z<<13)^(w<<3|z>>>29)^(w>>>6|z<<26)|0;x=x+dt|0;A=A+((z>>>19|w<<13)^(z<<3|w>>>29)^z>>>6)+(x>>>0
>>0?1:0)|0;ht=0x5defb2fc+x|0;ut=0x748f82ee+A+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;U=U+b|0;I=I+y+(U>>>0>>0?1:0)|0;dt=(P>>>1|D<<31)^(P>>>8|D<<24)^(P>>>7|D<<25)|0;U=U+dt|0;I=I+((D>>>1|P<<31)^(D>>>8|P<<24)^D>>>7)+(U>>>0
>>0?1:0)|0;dt=(R>>>19|O<<13)^(R<<3|O>>>29)^(R>>>6|O<<26)|0;U=U+dt|0;I=I+((O>>>19|R<<13)^(O<<3|R>>>29)^O>>>6)+(U>>>0
>>0?1:0)|0;ht=0x43172f60+U|0;ut=0x78a5636f+I+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;P=P+v|0;D=D+S+(P>>>0>>0?1:0)|0;dt=(k>>>1|M<<31)^(k>>>8|M<<24)^(k>>>7|M<<25)|0;P=P+dt|0;D=D+((M>>>1|k<<31)^(M>>>8|k<<24)^M>>>7)+(P>>>0
>>0?1:0)|0;dt=(x>>>19|A<<13)^(x<<3|A>>>29)^(x>>>6|A<<26)|0;P=P+dt|0;D=D+((A>>>19|x<<13)^(A<<3|x>>>29)^A>>>6)+(P>>>0
>>0?1:0)|0;ht=0xa1f0ab72+P|0;ut=0x84c87814+D+(ht>>>0

>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0

>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;k=k+N|0;M=M+C+(k>>>0>>0?1:0)|0;dt=(G>>>1|j<<31)^(G>>>8|j<<24)^(G>>>7|j<<25)|0;k=k+dt|0;M=M+((j>>>1|G<<31)^(j>>>8|G<<24)^j>>>7)+(k>>>0
>>0?1:0)|0;dt=(U>>>19|I<<13)^(U<<3|I>>>29)^(U>>>6|I<<26)|0;k=k+dt|0;M=M+((I>>>19|U<<13)^(I<<3|U>>>29)^I>>>6)+(k>>>0
>>0?1:0)|0;ht=0x1a6439ec+k|0;ut=0x8cc70208+M+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;G=G+L|0;j=j+T+(G>>>0>>0?1:0)|0;dt=(F>>>1|q<<31)^(F>>>8|q<<24)^(F>>>7|q<<25)|0;G=G+dt|0;j=j+((q>>>1|F<<31)^(q>>>8|F<<24)^q>>>7)+(G>>>0
>>0?1:0)|0;dt=(P>>>19|D<<13)^(P<<3|D>>>29)^(P>>>6|D<<26)|0;G=G+dt|0;j=j+((D>>>19|P<<13)^(D<<3|P>>>29)^D>>>6)+(G>>>0
>>0?1:0)|0;ht=0x23631e28+G|0;ut=0x90befffa+j+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;F=F+w|0;q=q+z+(F>>>0>>0?1:0)|0;dt=(W>>>1|B<<31)^(W>>>8|B<<24)^(W>>>7|B<<25)|0;F=F+dt|0;q=q+((B>>>1|W<<31)^(B>>>8|W<<24)^B>>>7)+(F>>>0
>>0?1:0)|0;dt=(k>>>19|M<<13)^(k<<3|M>>>29)^(k>>>6|M<<26)|0;F=F+dt|0;q=q+((M>>>19|k<<13)^(M<<3|k>>>29)^M>>>6)+(F>>>0
>>0?1:0)|0;ht=0xde82bde9+F|0;ut=0xa4506ceb+q+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;W=W+R|0;B=B+O+(W>>>0>>0?1:0)|0;dt=(V>>>1|H<<31)^(V>>>8|H<<24)^(V>>>7|H<<25)|0;W=W+dt|0;B=B+((H>>>1|V<<31)^(H>>>8|V<<24)^H>>>7)+(W>>>0
>>0?1:0)|0;dt=(G>>>19|j<<13)^(G<<3|j>>>29)^(G>>>6|j<<26)|0;W=W+dt|0;B=B+((j>>>19|G<<13)^(j<<3|G>>>29)^j>>>6)+(W>>>0
>>0?1:0)|0;ht=0xb2c67915+W|0;ut=0xbef9a3f7+B+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;V=V+x|0;H=H+A+(V>>>0>>0?1:0)|0;dt=(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)|0;V=V+dt|0;H=H+((t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7)+(V>>>0
>>0?1:0)|0;dt=(F>>>19|q<<13)^(F<<3|q>>>29)^(F>>>6|q<<26)|0;V=V+dt|0;H=H+((q>>>19|F<<13)^(q<<3|F>>>29)^q>>>6)+(V>>>0
>>0?1:0)|0;ht=0xe372532b+V|0;ut=0xc67178f2+H+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;e=e+U|0;t=t+I+(e>>>0>>0?1:0)|0;dt=(E>>>1|n<<31)^(E>>>8|n<<24)^(E>>>7|n<<25)|0;e=e+dt|0;t=t+((n>>>1|E<<31)^(n>>>8|E<<24)^n>>>7)+(e>>>0
>>0?1:0)|0;dt=(W>>>19|B<<13)^(W<<3|B>>>29)^(W>>>6|B<<26)|0;e=e+dt|0;t=t+((B>>>19|W<<13)^(B<<3|W>>>29)^B>>>6)+(e>>>0
>>0?1:0)|0;ht=0xea26619c+e|0;ut=0xca273ece+t+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;E=E+P|0;n=n+D+(E>>>0

>>0?1:0)|0;dt=(b>>>1|y<<31)^(b>>>8|y<<24)^(b>>>7|y<<25)|0;E=E+dt|0;n=n+((y>>>1|b<<31)^(y>>>8|b<<24)^y>>>7)+(E>>>0

>>0?1:0)|0;dt=(V>>>19|H<<13)^(V<<3|H>>>29)^(V>>>6|H<<26)|0;E=E+dt|0;n=n+((H>>>19|V<<13)^(H<<3|V>>>29)^H>>>6)+(E>>>0
>>0?1:0)|0;ht=0x21c0c207+E|0;ut=0xd186b8c7+n+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;b=b+k|0;y=y+M+(b>>>0>>0?1:0)|0;dt=(v>>>1|S<<31)^(v>>>8|S<<24)^(v>>>7|S<<25)|0;b=b+dt|0;y=y+((S>>>1|v<<31)^(S>>>8|v<<24)^S>>>7)+(b>>>0
>>0?1:0)|0;dt=(e>>>19|t<<13)^(e<<3|t>>>29)^(e>>>6|t<<26)|0;b=b+dt|0;y=y+((t>>>19|e<<13)^(t<<3|e>>>29)^t>>>6)+(b>>>0
>>0?1:0)|0;ht=0xcde0eb1e+b|0;ut=0xeada7dd6+y+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;v=v+G|0;S=S+j+(v>>>0>>0?1:0)|0;dt=(N>>>1|C<<31)^(N>>>8|C<<24)^(N>>>7|C<<25)|0;v=v+dt|0;S=S+((C>>>1|N<<31)^(C>>>8|N<<24)^C>>>7)+(v>>>0
>>0?1:0)|0;dt=(E>>>19|n<<13)^(E<<3|n>>>29)^(E>>>6|n<<26)|0;v=v+dt|0;S=S+((n>>>19|E<<13)^(n<<3|E>>>29)^n>>>6)+(v>>>0
>>0?1:0)|0;ht=0xee6ed178+v|0;ut=0xf57d4f7f+S+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;N=N+F|0;C=C+q+(N>>>0>>0?1:0)|0;dt=(L>>>1|T<<31)^(L>>>8|T<<24)^(L>>>7|T<<25)|0;N=N+dt|0;C=C+((T>>>1|L<<31)^(T>>>8|L<<24)^T>>>7)+(N>>>0
>>0?1:0)|0;dt=(b>>>19|y<<13)^(b<<3|y>>>29)^(b>>>6|y<<26)|0;N=N+dt|0;C=C+((y>>>19|b<<13)^(y<<3|b>>>29)^y>>>6)+(N>>>0
>>0?1:0)|0;ht=0x72176fba+N|0;ut=0x6f067aa+C+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;L=L+W|0;T=T+B+(L>>>0>>0?1:0)|0;dt=(w>>>1|z<<31)^(w>>>8|z<<24)^(w>>>7|z<<25)|0;L=L+dt|0;T=T+((z>>>1|w<<31)^(z>>>8|w<<24)^z>>>7)+(L>>>0
>>0?1:0)|0;dt=(v>>>19|S<<13)^(v<<3|S>>>29)^(v>>>6|S<<26)|0;L=L+dt|0;T=T+((S>>>19|v<<13)^(S<<3|v>>>29)^S>>>6)+(L>>>0
>>0?1:0)|0;ht=0xa2c898a6+L|0;ut=0xa637dc5+T+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;w=w+V|0;z=z+H+(w>>>0>>0?1:0)|0;dt=(R>>>1|O<<31)^(R>>>8|O<<24)^(R>>>7|O<<25)|0;w=w+dt|0;z=z+((O>>>1|R<<31)^(O>>>8|R<<24)^O>>>7)+(w>>>0
>>0?1:0)|0;dt=(N>>>19|C<<13)^(N<<3|C>>>29)^(N>>>6|C<<26)|0;w=w+dt|0;z=z+((C>>>19|N<<13)^(C<<3|N>>>29)^C>>>6)+(w>>>0
>>0?1:0)|0;ht=0xbef90dae+w|0;ut=0x113f9804+z+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;R=R+e|0;O=O+t+(R>>>0>>0?1:0)|0;dt=(x>>>1|A<<31)^(x>>>8|A<<24)^(x>>>7|A<<25)|0;R=R+dt|0;O=O+((A>>>1|x<<31)^(A>>>8|x<<24)^A>>>7)+(R>>>0
>>0?1:0)|0;dt=(L>>>19|T<<13)^(L<<3|T>>>29)^(L>>>6|T<<26)|0;R=R+dt|0;O=O+((T>>>19|L<<13)^(T<<3|L>>>29)^T>>>6)+(R>>>0
>>0?1:0)|0;ht=0x131c471b+R|0;ut=0x1b710b35+O+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;x=x+E|0;A=A+n+(x>>>0>>0?1:0)|0;dt=(U>>>1|I<<31)^(U>>>8|I<<24)^(U>>>7|I<<25)|0;x=x+dt|0;A=A+((I>>>1|U<<31)^(I>>>8|U<<24)^I>>>7)+(x>>>0
>>0?1:0)|0;dt=(w>>>19|z<<13)^(w<<3|z>>>29)^(w>>>6|z<<26)|0;x=x+dt|0;A=A+((z>>>19|w<<13)^(z<<3|w>>>29)^z>>>6)+(x>>>0
>>0?1:0)|0;ht=0x23047d84+x|0;ut=0x28db77f5+A+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;U=U+b|0;I=I+y+(U>>>0>>0?1:0)|0;dt=(P>>>1|D<<31)^(P>>>8|D<<24)^(P>>>7|D<<25)|0;U=U+dt|0;I=I+((D>>>1|P<<31)^(D>>>8|P<<24)^D>>>7)+(U>>>0
>>0?1:0)|0;dt=(R>>>19|O<<13)^(R<<3|O>>>29)^(R>>>6|O<<26)|0;U=U+dt|0;I=I+((O>>>19|R<<13)^(O<<3|R>>>29)^O>>>6)+(U>>>0
>>0?1:0)|0;ht=0x40c72493+U|0;ut=0x32caab7b+I+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;P=P+v|0;D=D+S+(P>>>0>>0?1:0)|0;dt=(k>>>1|M<<31)^(k>>>8|M<<24)^(k>>>7|M<<25)|0;P=P+dt|0;D=D+((M>>>1|k<<31)^(M>>>8|k<<24)^M>>>7)+(P>>>0
>>0?1:0)|0;dt=(x>>>19|A<<13)^(x<<3|A>>>29)^(x>>>6|A<<26)|0;P=P+dt|0;D=D+((A>>>19|x<<13)^(A<<3|x>>>29)^A>>>6)+(P>>>0
>>0?1:0)|0;ht=0x15c9bebc+P|0;ut=0x3c9ebe0a+D+(ht>>>0

>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0

>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;k=k+N|0;M=M+C+(k>>>0>>0?1:0)|0;dt=(G>>>1|j<<31)^(G>>>8|j<<24)^(G>>>7|j<<25)|0;k=k+dt|0;M=M+((j>>>1|G<<31)^(j>>>8|G<<24)^j>>>7)+(k>>>0
>>0?1:0)|0;dt=(U>>>19|I<<13)^(U<<3|I>>>29)^(U>>>6|I<<26)|0;k=k+dt|0;M=M+((I>>>19|U<<13)^(I<<3|U>>>29)^I>>>6)+(k>>>0
>>0?1:0)|0;ht=0x9c100d4c+k|0;ut=0x431d67c4+M+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;G=G+L|0;j=j+T+(G>>>0>>0?1:0)|0;dt=(F>>>1|q<<31)^(F>>>8|q<<24)^(F>>>7|q<<25)|0;G=G+dt|0;j=j+((q>>>1|F<<31)^(q>>>8|F<<24)^q>>>7)+(G>>>0
>>0?1:0)|0;dt=(P>>>19|D<<13)^(P<<3|D>>>29)^(P>>>6|D<<26)|0;G=G+dt|0;j=j+((D>>>19|P<<13)^(D<<3|P>>>29)^D>>>6)+(G>>>0
>>0?1:0)|0;ht=0xcb3e42b6+G|0;ut=0x4cc5d4be+j+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;F=F+w|0;q=q+z+(F>>>0>>0?1:0)|0;dt=(W>>>1|B<<31)^(W>>>8|B<<24)^(W>>>7|B<<25)|0;F=F+dt|0;q=q+((B>>>1|W<<31)^(B>>>8|W<<24)^B>>>7)+(F>>>0
>>0?1:0)|0;dt=(k>>>19|M<<13)^(k<<3|M>>>29)^(k>>>6|M<<26)|0;F=F+dt|0;q=q+((M>>>19|k<<13)^(M<<3|k>>>29)^M>>>6)+(F>>>0
>>0?1:0)|0;ht=0xfc657e2a+F|0;ut=0x597f299c+q+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;W=W+R|0;B=B+O+(W>>>0>>0?1:0)|0;dt=(V>>>1|H<<31)^(V>>>8|H<<24)^(V>>>7|H<<25)|0;W=W+dt|0;B=B+((H>>>1|V<<31)^(H>>>8|V<<24)^H>>>7)+(W>>>0
>>0?1:0)|0;dt=(G>>>19|j<<13)^(G<<3|j>>>29)^(G>>>6|j<<26)|0;W=W+dt|0;B=B+((j>>>19|G<<13)^(j<<3|G>>>29)^j>>>6)+(W>>>0
>>0?1:0)|0;ht=0x3ad6faec+W|0;ut=0x5fcb6fab+B+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;V=V+x|0;H=H+A+(V>>>0>>0?1:0)|0;dt=(e>>>1|t<<31)^(e>>>8|t<<24)^(e>>>7|t<<25)|0;V=V+dt|0;H=H+((t>>>1|e<<31)^(t>>>8|e<<24)^t>>>7)+(V>>>0
>>0?1:0)|0;dt=(F>>>19|q<<13)^(F<<3|q>>>29)^(F>>>6|q<<26)|0;V=V+dt|0;H=H+((q>>>19|F<<13)^(q<<3|F>>>29)^q>>>6)+(V>>>0
>>0?1:0)|0;ht=0x4a475817+V|0;ut=0x6c44198c+H+(ht>>>0>>0?1:0)|0;ht=ht+lt|0;ut=ut+ct+(ht>>>0>>0?1:0)|0;dt=(it>>>14|nt<<18)^(it>>>18|nt<<14)^(it<<23|nt>>>9)|0;ht=ht+dt|0;ut=ut+((nt>>>14|it<<18)^(nt>>>18|it<<14)^(nt<<23|it>>>9))+(ht>>>0
>>0?1:0)|0;dt=at^it&(rt^at)|0;ht=ht+dt|0;ut=ut+(st^nt&(ot^st))+(ht>>>0
>>0?1:0)|0;lt=at;ct=st;at=rt;st=ot;rt=it;ot=nt;it=et+ht|0;nt=tt+ut+(it>>>0>>0?1:0)|0;et=Z;tt=Q;Z=Y;Q=J;Y=X;J=K;X=ht+(Y&Z^et&(Y^Z))|0;K=ut+(J&Q^tt&(J^Q))+(X>>>0>>0?1:0)|0;dt=(Y>>>28|J<<4)^(Y<<30|J>>>2)^(Y<<25|J>>>7)|0;X=X+dt|0;K=K+((J>>>28|Y<<4)^(J<<30|Y>>>2)^(J<<25|Y>>>7))+(X>>>0
>>0?1:0)|0;o=o+X|0;i=i+K+(o>>>0>>0?1:0)|0;s=s+Y|0;r=r+J+(s>>>0>>0?1:0)|0;c=c+Z|0;a=a+Q+(c>>>0>>0?1:0)|0;u=u+et|0;l=l+tt+(u>>>0>>0?1:0)|0;d=d+it|0;h=h+nt+(d>>>0>>0?1:0)|0;_=_+rt|0;p=p+ot+(_>>>0>>0?1:0)|0;f=f+at|0;m=m+st+(f>>>0>>0?1:0)|0;$=$+lt|0;g=g+ct+($>>>0>>0?1:0)|0}function et(t){t=t|0;tt(Z[t|0]<<24|Z[t|1]<<16|Z[t|2]<<8|Z[t|3],Z[t|4]<<24|Z[t|5]<<16|Z[t|6]<<8|Z[t|7],Z[t|8]<<24|Z[t|9]<<16|Z[t|10]<<8|Z[t|11],Z[t|12]<<24|Z[t|13]<<16|Z[t|14]<<8|Z[t|15],Z[t|16]<<24|Z[t|17]<<16|Z[t|18]<<8|Z[t|19],Z[t|20]<<24|Z[t|21]<<16|Z[t|22]<<8|Z[t|23],Z[t|24]<<24|Z[t|25]<<16|Z[t|26]<<8|Z[t|27],Z[t|28]<<24|Z[t|29]<<16|Z[t|30]<<8|Z[t|31],Z[t|32]<<24|Z[t|33]<<16|Z[t|34]<<8|Z[t|35],Z[t|36]<<24|Z[t|37]<<16|Z[t|38]<<8|Z[t|39],Z[t|40]<<24|Z[t|41]<<16|Z[t|42]<<8|Z[t|43],Z[t|44]<<24|Z[t|45]<<16|Z[t|46]<<8|Z[t|47],Z[t|48]<<24|Z[t|49]<<16|Z[t|50]<<8|Z[t|51],Z[t|52]<<24|Z[t|53]<<16|Z[t|54]<<8|Z[t|55],Z[t|56]<<24|Z[t|57]<<16|Z[t|58]<<8|Z[t|59],Z[t|60]<<24|Z[t|61]<<16|Z[t|62]<<8|Z[t|63],Z[t|64]<<24|Z[t|65]<<16|Z[t|66]<<8|Z[t|67],Z[t|68]<<24|Z[t|69]<<16|Z[t|70]<<8|Z[t|71],Z[t|72]<<24|Z[t|73]<<16|Z[t|74]<<8|Z[t|75],Z[t|76]<<24|Z[t|77]<<16|Z[t|78]<<8|Z[t|79],Z[t|80]<<24|Z[t|81]<<16|Z[t|82]<<8|Z[t|83],Z[t|84]<<24|Z[t|85]<<16|Z[t|86]<<8|Z[t|87],Z[t|88]<<24|Z[t|89]<<16|Z[t|90]<<8|Z[t|91],Z[t|92]<<24|Z[t|93]<<16|Z[t|94]<<8|Z[t|95],Z[t|96]<<24|Z[t|97]<<16|Z[t|98]<<8|Z[t|99],Z[t|100]<<24|Z[t|101]<<16|Z[t|102]<<8|Z[t|103],Z[t|104]<<24|Z[t|105]<<16|Z[t|106]<<8|Z[t|107],Z[t|108]<<24|Z[t|109]<<16|Z[t|110]<<8|Z[t|111],Z[t|112]<<24|Z[t|113]<<16|Z[t|114]<<8|Z[t|115],Z[t|116]<<24|Z[t|117]<<16|Z[t|118]<<8|Z[t|119],Z[t|120]<<24|Z[t|121]<<16|Z[t|122]<<8|Z[t|123],Z[t|124]<<24|Z[t|125]<<16|Z[t|126]<<8|Z[t|127])}function nt(t){t=t|0;Z[t|0]=i>>>24;Z[t|1]=i>>>16&255;Z[t|2]=i>>>8&255;Z[t|3]=i&255;Z[t|4]=o>>>24;Z[t|5]=o>>>16&255;Z[t|6]=o>>>8&255;Z[t|7]=o&255;Z[t|8]=r>>>24;Z[t|9]=r>>>16&255;Z[t|10]=r>>>8&255;Z[t|11]=r&255;Z[t|12]=s>>>24;Z[t|13]=s>>>16&255;Z[t|14]=s>>>8&255;Z[t|15]=s&255;Z[t|16]=a>>>24;Z[t|17]=a>>>16&255;Z[t|18]=a>>>8&255;Z[t|19]=a&255;Z[t|20]=c>>>24;Z[t|21]=c>>>16&255;Z[t|22]=c>>>8&255;Z[t|23]=c&255;Z[t|24]=l>>>24;Z[t|25]=l>>>16&255;Z[t|26]=l>>>8&255;Z[t|27]=l&255;Z[t|28]=u>>>24;Z[t|29]=u>>>16&255;Z[t|30]=u>>>8&255;Z[t|31]=u&255;Z[t|32]=h>>>24;Z[t|33]=h>>>16&255;Z[t|34]=h>>>8&255;Z[t|35]=h&255;Z[t|36]=d>>>24;Z[t|37]=d>>>16&255;Z[t|38]=d>>>8&255;Z[t|39]=d&255;Z[t|40]=p>>>24;Z[t|41]=p>>>16&255;Z[t|42]=p>>>8&255;Z[t|43]=p&255;Z[t|44]=_>>>24;Z[t|45]=_>>>16&255;Z[t|46]=_>>>8&255;Z[t|47]=_&255;Z[t|48]=m>>>24;Z[t|49]=m>>>16&255;Z[t|50]=m>>>8&255;Z[t|51]=m&255;Z[t|52]=f>>>24;Z[t|53]=f>>>16&255;Z[t|54]=f>>>8&255;Z[t|55]=f&255;Z[t|56]=g>>>24;Z[t|57]=g>>>16&255;Z[t|58]=g>>>8&255;Z[t|59]=g&255;Z[t|60]=$>>>24;Z[t|61]=$>>>16&255;Z[t|62]=$>>>8&255;Z[t|63]=$&255}function it(){i=0x6a09e667;o=0xf3bcc908;r=0xbb67ae85;s=0x84caa73b;a=0x3c6ef372;c=0xfe94f82b;l=0xa54ff53a;u=0x5f1d36f1;h=0x510e527f;d=0xade682d1;p=0x9b05688c;_=0x2b3e6c1f;m=0x1f83d9ab;f=0xfb41bd6b;g=0x5be0cd19;$=0x137e2179;E=y=0}function ot(t,e,n,b,S,v,C,N,T,L,z,w,O,R,A,x,I,U){t=t|0;e=e|0;n=n|0;b=b|0;S=S|0;v=v|0;C=C|0;N=N|0;T=T|0;L=L|0;z=z|0;w=w|0;O=O|0;R=R|0;A=A|0;x=x|0;I=I|0;U=U|0;i=t;o=e;r=n;s=b;a=S;c=v;l=C;u=N;h=T;d=L;p=z;_=w;m=O;f=R;g=A;$=x;E=I;y=U}function rt(t,e){t=t|0;e=e|0;var n=0;if(t&127)return-1;while((e|0)>=128){et(t);t=t+128|0;e=e-128|0;n=n+128|0}E=E+n|0;if(E>>>0>>0)y=y+1|0;return n|0}function st(t,e,n){t=t|0;e=e|0;n=n|0;var i=0,o=0;if(t&127)return-1;if(~n)if(n&63)return-1;if((e|0)>=128){i=rt(t,e)|0;if((i|0)==-1)return-1;t=t+i|0;e=e-i|0}i=i+e|0;E=E+e|0;if(E>>>0>>0)y=y+1|0;Z[t|e]=0x80;if((e|0)>=112){for(o=e+1|0;(o|0)<128;o=o+1|0)Z[t|o]=0x00;et(t);e=0;Z[t|0]=0}for(o=e+1|0;(o|0)<123;o=o+1|0)Z[t|o]=0;Z[t|120]=y>>>21&255;Z[t|121]=y>>>13&255;Z[t|122]=y>>>5&255;Z[t|123]=y<<3&255|E>>>29;Z[t|124]=E>>>21&255;Z[t|125]=E>>>13&255;Z[t|126]=E>>>5&255;Z[t|127]=E<<3&255;et(t);if(~n)nt(n);return i|0}function at(){i=b;o=S;r=v;s=C;a=N;c=T;l=L;u=z;h=w;d=O;p=R;_=A;m=x;f=I;g=U;$=D;E=128;y=0}function ct(){i=P;o=M;r=k;s=j;a=G;c=q;l=F;u=B;h=W;d=H;p=V;_=K;m=X;f=J;g=Y;$=Q;E=128;y=0}function lt(t,e,n,Z,et,nt,ot,rt,st,at,ct,lt,ut,ht,dt,pt,_t,mt,ft,gt,$t,Et,yt,bt,St,vt,Ct,Nt,Tt,Lt,zt,wt){t=t|0;e=e|0;n=n|0;Z=Z|0;et=et|0;nt=nt|0;ot=ot|0;rt=rt|0;st=st|0;at=at|0;ct=ct|0;lt=lt|0;ut=ut|0;ht=ht|0;dt=dt|0;pt=pt|0;_t=_t|0;mt=mt|0;ft=ft|0;gt=gt|0;$t=$t|0;Et=Et|0;yt=yt|0;bt=bt|0;St=St|0;vt=vt|0;Ct=Ct|0;Nt=Nt|0;Tt=Tt|0;Lt=Lt|0;zt=zt|0;wt=wt|0;it();tt(t^0x5c5c5c5c,e^0x5c5c5c5c,n^0x5c5c5c5c,Z^0x5c5c5c5c,et^0x5c5c5c5c,nt^0x5c5c5c5c,ot^0x5c5c5c5c,rt^0x5c5c5c5c,st^0x5c5c5c5c,at^0x5c5c5c5c,ct^0x5c5c5c5c,lt^0x5c5c5c5c,ut^0x5c5c5c5c,ht^0x5c5c5c5c,dt^0x5c5c5c5c,pt^0x5c5c5c5c,_t^0x5c5c5c5c,mt^0x5c5c5c5c,ft^0x5c5c5c5c,gt^0x5c5c5c5c,$t^0x5c5c5c5c,Et^0x5c5c5c5c,yt^0x5c5c5c5c,bt^0x5c5c5c5c,St^0x5c5c5c5c,vt^0x5c5c5c5c,Ct^0x5c5c5c5c,Nt^0x5c5c5c5c,Tt^0x5c5c5c5c,Lt^0x5c5c5c5c,zt^0x5c5c5c5c,wt^0x5c5c5c5c);P=i;M=o;k=r;j=s;G=a;q=c;F=l;B=u;W=h;H=d;V=p;K=_;X=m;J=f;Y=g;Q=$;it();tt(t^0x36363636,e^0x36363636,n^0x36363636,Z^0x36363636,et^0x36363636,nt^0x36363636,ot^0x36363636,rt^0x36363636,st^0x36363636,at^0x36363636,ct^0x36363636,lt^0x36363636,ut^0x36363636,ht^0x36363636,dt^0x36363636,pt^0x36363636,_t^0x36363636,mt^0x36363636,ft^0x36363636,gt^0x36363636,$t^0x36363636,Et^0x36363636,yt^0x36363636,bt^0x36363636,St^0x36363636,vt^0x36363636,Ct^0x36363636,Nt^0x36363636,Tt^0x36363636,Lt^0x36363636,zt^0x36363636,wt^0x36363636);b=i;S=o;v=r;C=s;N=a;T=c;L=l;z=u;w=h;O=d;R=p;A=_;x=m;I=f;U=g;D=$;E=128;y=0}function ut(t,e,n){t=t|0;e=e|0;n=n|0;var E=0,y=0,b=0,S=0,v=0,C=0,N=0,T=0,L=0,z=0,w=0,O=0,R=0,A=0,x=0,I=0,U=0;if(t&127)return-1;if(~n)if(n&63)return-1;U=st(t,e,-1)|0;E=i;y=o;b=r;S=s;v=a;C=c;N=l;T=u;L=h;z=d;w=p;O=_;R=m;A=f;x=g;I=$;ct();tt(E,y,b,S,v,C,N,T,L,z,w,O,R,A,x,I,0x80000000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1536);if(~n)nt(n);return U|0}function ht(t,e,n,E,y){t=t|0;e=e|0;n=n|0;E=E|0;y=y|0;var b=0,S=0,v=0,C=0,N=0,T=0,L=0,z=0,w=0,O=0,R=0,A=0,x=0,I=0,U=0,D=0,P=0,M=0,k=0,j=0,G=0,q=0,F=0,B=0,W=0,H=0,V=0,K=0,X=0,J=0,Y=0,Q=0;if(t&127)return-1;if(~y)if(y&63)return-1;Z[t+e|0]=n>>>24;Z[t+e+1|0]=n>>>16&255;Z[t+e+2|0]=n>>>8&255;Z[t+e+3|0]=n&255;ut(t,e+4|0,-1)|0;b=P=i;S=M=o;v=k=r;C=j=s;N=G=a;T=q=c;L=F=l;z=B=u;w=W=h;O=H=d;R=V=p;A=K=_;x=X=m;I=J=f;U=Y=g;D=Q=$;E=E-1|0;while((E|0)>0){at();tt(P,M,k,j,G,q,F,B,W,H,V,K,X,J,Y,Q,0x80000000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1536);P=i;M=o;k=r;j=s;G=a;q=c;F=l;B=u;W=h;H=d;V=p;K=_;X=m;J=f;Y=g;Q=$;ct();tt(P,M,k,j,G,q,F,B,W,H,V,K,X,J,Y,Q,0x80000000,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1536);P=i;M=o;k=r;j=s;G=a;q=c;F=l;B=u;W=h;H=d;V=p;K=_;X=m;J=f;Y=g;Q=$;b=b^i;S=S^o;v=v^r;C=C^s;N=N^a;T=T^c;L=L^l;z=z^u;w=w^h;O=O^d;R=R^p;A=A^_;x=x^m;I=I^f;U=U^g;D=D^$;E=E-1|0}i=b;o=S;r=v;s=C;a=N;c=T;l=L;u=z;h=w;d=O;p=R;_=A;m=x;f=I;g=U;$=D;if(~y)nt(y);return 0}return{reset:it,init:ot,process:rt,finish:st,hmac_reset:at,hmac_init:lt,hmac_finish:ut,pbkdf2_generate_block:ht}}({Uint8Array:Uint8Array},null,this.heap.buffer),this.reset()}}q.NAME="sha512";class F{constructor(t,e,n){if(!t.HASH_SIZE)throw new SyntaxError("option 'hash' supplied doesn't seem to be a valid hash function");this.hash=t,this.BLOCK_SIZE=this.hash.BLOCK_SIZE,this.HMAC_SIZE=this.hash.HASH_SIZE,this.result=null,this.key=function(t,e){const n=new Uint8Array(t.BLOCK_SIZE);e.length>t.BLOCK_SIZE?n.set(t.reset().process(e).finish().result):n.set(e);return n}(this.hash,e);const i=new Uint8Array(this.key);for(let t=0;t2&&(this.key[2]=new P(t[2])),e>3&&(this.key[3]=new M(new P(t[3])),this.key[4]=new M(new P(t[4])),this.key[5]=new P(t[5]),this.key[6]=new P(t[6]),this.key[7]=new P(t[7]))}encrypt(t){if(!this.key)throw new f("no key is associated with the instance");if(this.key[0].compare(t)<=0)throw new RangeError("data too large");const e=this.key[0],n=this.key[1];let i=e.power(t,n).toBytes();const o=e.bitLength+7>>3;if(i.length>3;if(e.length0?n:null}encrypt(t,e){const n=Math.ceil(this.rsa.key[0].bitLength/8),i=this.hash.HASH_SIZE,o=t.byteLength||t.length||0,r=n-o-2*i-2;if(o>n-2*this.hash.HASH_SIZE-2)throw new g("data too large");const s=new Uint8Array(n),a=s.subarray(1,i+1),c=s.subarray(i+1);if(c.set(t,i+r+1),c.set(this.hash.process(this.label||new Uint8Array(0)).finish().result,0),c[i+r]=1,void 0!==e){if(a.length!==e.length)throw new g("random size must equal the hash size");a.set(e)}else A(a);const l=this.RSA_MGF1_generate(a,c.length);for(let t=0;t>>24,o[1]=e>>>16&255,o[2]=e>>>8&255,o[3]=255&e;const r=i.subarray(e*n);let s=this.hash.reset().process(t).process(o).finish().result;s.length>r.length&&(s=s.subarray(0,r.length)),r.set(s)}return i}}class Q{constructor(t,e,n=4){if(this.rsa=new J(t),this.hash=e,this.saltLength=n,this.saltLength<0)throw new TypeError("saltLength should be a non-negative number");if(null!==this.rsa.key&&Math.ceil((this.rsa.key[0].bitLength-1)/8)0)if(void 0!==e){if(p.length!==e.length)throw new g("random size must equal the salt size");p.set(e)}else A(p);l[s]=1,u.set(p),c.set(this.hash.reset().process(h).finish().result);const _=this.RSA_MGF1_generate(c,l.length);for(let t=0;t>>m),this.rsa.decrypt(new P(a)),this.rsa.result}verify(t,e){const n=this.rsa.key[0].bitLength,i=this.hash.HASH_SIZE,o=Math.ceil((n-1)/8),r=this.saltLength,s=o-r-i-2;this.rsa.encrypt(new P(t));const a=this.rsa.result;if(188!==a[o-1])throw new $("bad signature");const c=a.subarray(o-i-1,o-1),l=a.subarray(0,o-i-1),u=l.subarray(s+1),h=8*o-n+1;if(h%8&&a[0]>>>8-h)throw new $("bad signature");const d=this.RSA_MGF1_generate(c,l.length);for(let t=0;t>>h);for(let t=0;t>>24,o[1]=e>>>16&255,o[2]=e>>>8&255,o[3]=255&e;const r=i.subarray(e*n);let s=this.hash.reset().process(t).process(o).finish().result;s.length>r.length&&(s=s.subarray(0,r.length)),r.set(s)}return i}}class Z{constructor(t,e){this.rsa=new J(t),this.hash=e}sign(t){if(!this.rsa.key)throw new f("no key is associated with the instance");const e=et(this.hash),n=this.hash.HASH_SIZE,i=e.length+n,o=this.rsa.key[0].bitLength+7>>3;if(o>3;if(r0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n}},{key:"concat",value:function(t){if(0===this.length)return s.alloc(0);for(var e,n,i,o=s.allocUnsafe(t>>>0),r=this.head,a=0;r;)e=r.data,n=o,i=a,s.prototype.copy.call(e,n,i),a+=r.data.length,r=r.next;return o}},{key:"consume",value:function(t,e){var n;return to.length?o.length:t;if(r===o.length?i+=o:i+=o.slice(0,t),0==(t-=r)){r===o.length?(++n,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=o.slice(r));break}++n}return this.length-=n,i}},{key:"_getBuffer",value:function(t){var e=s.allocUnsafe(t),n=this.head,i=1;for(n.data.copy(e),t-=n.data.length;n=n.next;){var o=n.data,r=t>o.length?o.length:t;if(o.copy(e,e.length-t,0,r),0==(t-=r)){r===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(r));break}++i}return this.length-=i,e}},{key:c,value:function(t,e){return a(this,function(t){for(var e=1;e0,(function(t){i||(i=t),t&&s.forEach(l),r||(s.forEach(l),o(i))}))}));return e.reduce(u)}},function(t,e,n){var i=n(20),o=n(178),r=n(27).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function c(){this.init(),this._w=a,o.call(this,64,56)}function l(t){return t<<30|t>>>2}function u(t,e,n,i){return 0===t?e&n|~e&i:2===t?e&n|e&i|n&i:e^n^i}i(c,o),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(t){for(var e,n=this._w,i=0|this._a,o=0|this._b,r=0|this._c,a=0|this._d,c=0|this._e,h=0;h<16;++h)n[h]=t.readInt32BE(4*h);for(;h<80;++h)n[h]=n[h-3]^n[h-8]^n[h-14]^n[h-16];for(var d=0;d<80;++d){var p=~~(d/20),_=0|((e=i)<<5|e>>>27)+u(p,o,r,a)+c+n[d]+s[p];c=a,a=r,r=l(o),o=i,i=_}this._a=i+this._a|0,this._b=o+this._b|0,this._c=r+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var t=r.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=c},function(t,e,n){var i=n(20),o=n(178),r=n(27).Buffer,s=[1518500249,1859775393,-1894007588,-899497514],a=new Array(80);function c(){this.init(),this._w=a,o.call(this,64,56)}function l(t){return t<<5|t>>>27}function u(t){return t<<30|t>>>2}function h(t,e,n,i){return 0===t?e&n|~e&i:2===t?e&n|e&i|n&i:e^n^i}i(c,o),c.prototype.init=function(){return this._a=1732584193,this._b=4023233417,this._c=2562383102,this._d=271733878,this._e=3285377520,this},c.prototype._update=function(t){for(var e,n=this._w,i=0|this._a,o=0|this._b,r=0|this._c,a=0|this._d,c=0|this._e,d=0;d<16;++d)n[d]=t.readInt32BE(4*d);for(;d<80;++d)n[d]=(e=n[d-3]^n[d-8]^n[d-14]^n[d-16])<<1|e>>>31;for(var p=0;p<80;++p){var _=~~(p/20),m=l(i)+h(_,o,r,a)+c+n[p]+s[_]|0;c=a,a=r,r=u(o),o=i,i=m}this._a=i+this._a|0,this._b=o+this._b|0,this._c=r+this._c|0,this._d=a+this._d|0,this._e=c+this._e|0},c.prototype._hash=function(){var t=r.allocUnsafe(20);return t.writeInt32BE(0|this._a,0),t.writeInt32BE(0|this._b,4),t.writeInt32BE(0|this._c,8),t.writeInt32BE(0|this._d,12),t.writeInt32BE(0|this._e,16),t},t.exports=c},function(t,e,n){var i=n(20),o=n(583),r=n(178),s=n(27).Buffer,a=new Array(64);function c(){this.init(),this._w=a,r.call(this,64,56)}i(c,o),c.prototype.init=function(){return this._a=3238371032,this._b=914150663,this._c=812702999,this._d=4144912697,this._e=4290775857,this._f=1750603025,this._g=1694076839,this._h=3204075428,this},c.prototype._hash=function(){var t=s.allocUnsafe(28);return t.writeInt32BE(this._a,0),t.writeInt32BE(this._b,4),t.writeInt32BE(this._c,8),t.writeInt32BE(this._d,12),t.writeInt32BE(this._e,16),t.writeInt32BE(this._f,20),t.writeInt32BE(this._g,24),t},t.exports=c},function(t,e,n){var i=n(20),o=n(584),r=n(178),s=n(27).Buffer,a=new Array(160);function c(){this.init(),this._w=a,r.call(this,128,112)}i(c,o),c.prototype.init=function(){return this._ah=3418070365,this._bh=1654270250,this._ch=2438529370,this._dh=355462360,this._eh=1731405415,this._fh=2394180231,this._gh=3675008525,this._hh=1203062813,this._al=3238371032,this._bl=914150663,this._cl=812702999,this._dl=4144912697,this._el=4290775857,this._fl=1750603025,this._gl=1694076839,this._hl=3204075428,this},c.prototype._hash=function(){var t=s.allocUnsafe(48);function e(e,n,i){t.writeInt32BE(e,i),t.writeInt32BE(n,i+4)}return e(this._ah,this._al,0),e(this._bh,this._bl,8),e(this._ch,this._cl,16),e(this._dh,this._dl,24),e(this._eh,this._el,32),e(this._fh,this._fl,40),t},t.exports=c},function(t,e,n){t.exports=o;var i=n(152).EventEmitter;function o(){i.call(this)}n(20)(o,i),o.Readable=n(373),o.Writable=n(781),o.Duplex=n(782),o.Transform=n(783),o.PassThrough=n(784),o.Stream=o,o.prototype.pipe=function(t,e){var n=this;function o(e){t.writable&&!1===t.write(e)&&n.pause&&n.pause()}function r(){n.readable&&n.resume&&n.resume()}n.on("data",o),t.on("drain",r),t._isStdio||e&&!1===e.end||(n.on("end",a),n.on("close",c));var s=!1;function a(){s||(s=!0,t.end())}function c(){s||(s=!0,"function"==typeof t.destroy&&t.destroy())}function l(t){if(u(),0===i.listenerCount(this,"error"))throw t}function u(){n.removeListener("data",o),t.removeListener("drain",r),n.removeListener("end",a),n.removeListener("close",c),n.removeListener("error",l),t.removeListener("error",l),n.removeListener("end",u),n.removeListener("close",u),t.removeListener("close",u)}return n.on("error",l),t.on("error",l),n.on("end",u),n.on("close",u),t.on("close",u),t.emit("pipe",n),t}},function(t,e){},function(t,e,n){"use strict";var i=n(374).Buffer,o=n(779);t.exports=function(){function t(){!function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}(this,t),this.head=null,this.tail=null,this.length=0}return t.prototype.push=function(t){var e={data:t,next:null};this.length>0?this.tail.next=e:this.head=e,this.tail=e,++this.length},t.prototype.unshift=function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length},t.prototype.shift=function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}},t.prototype.clear=function(){this.head=this.tail=null,this.length=0},t.prototype.join=function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n},t.prototype.concat=function(t){if(0===this.length)return i.alloc(0);if(1===this.length)return this.head.data;for(var e,n,o,r=i.allocUnsafe(t>>>0),s=this.head,a=0;s;)e=s.data,n=r,o=a,e.copy(n,o),a+=s.data.length,s=s.next;return r},t}(),o&&o.inspect&&o.inspect.custom&&(t.exports.prototype[o.inspect.custom]=function(){var t=o.inspect({length:this.length});return this.constructor.name+" "+t})},function(t,e){},function(t,e,n){"use strict";t.exports=r;var i=n(590),o=Object.create(n(233));function r(t){if(!(this instanceof r))return new r(t);i.call(this,t)}o.inherits=n(20),o.inherits(r,i),r.prototype._transform=function(t,e,n){n(null,t)}},function(t,e,n){t.exports=n(375)},function(t,e,n){t.exports=n(154)},function(t,e,n){t.exports=n(373).Transform},function(t,e,n){t.exports=n(373).PassThrough},function(t,e,n){"use strict";var i=n(20),o=n(27).Buffer,r=n(130),s=o.alloc(128);function a(t,e){r.call(this,"digest"),"string"==typeof e&&(e=o.from(e)),this._alg=t,this._key=e,e.length>64?e=t(e):e.length<64&&(e=o.concat([e,s],64));for(var n=this._ipad=o.allocUnsafe(64),i=this._opad=o.allocUnsafe(64),a=0;a<64;a++)n[a]=54^e[a],i[a]=92^e[a];this._hash=[n]}i(a,r),a.prototype._update=function(t){this._hash.push(t)},a.prototype._final=function(){var t=this._alg(o.concat(this._hash));return this._alg(o.concat([this._opad,t]))},t.exports=a},function(t,e,n){t.exports=n(593)},function(t,e,n){(function(e){var i,o,r=n(27).Buffer,s=n(595),a=n(596),c=n(597),l=n(598),u=e.crypto&&e.crypto.subtle,h={sha:"SHA-1","sha-1":"SHA-1",sha1:"SHA-1",sha256:"SHA-256","sha-256":"SHA-256",sha384:"SHA-384","sha-384":"SHA-384","sha-512":"SHA-512",sha512:"SHA-512"},d=[];function p(){return o||(o=e.process&&e.process.nextTick?e.process.nextTick:e.queueMicrotask?e.queueMicrotask:e.setImmediate?e.setImmediate:e.setTimeout)}function _(t,e,n,i,o){return u.importKey("raw",t,{name:"PBKDF2"},!1,["deriveBits"]).then((function(t){return u.deriveBits({name:"PBKDF2",salt:e,iterations:n,hash:{name:o}},t,i<<3)})).then((function(t){return r.from(t)}))}t.exports=function(t,n,o,m,f,g){"function"==typeof f&&(g=f,f=void 0);var $=h[(f=f||"sha1").toLowerCase()];if($&&"function"==typeof e.Promise){if(s(o,m),t=l(t,a,"Password"),n=l(n,a,"Salt"),"function"!=typeof g)throw new Error("No callback provided to pbkdf2");!function(t,e){t.then((function(t){p()((function(){e(null,t)}))}),(function(t){p()((function(){e(t)}))}))}(function(t){if(e.process&&!e.process.browser)return Promise.resolve(!1);if(!u||!u.importKey||!u.deriveBits)return Promise.resolve(!1);if(void 0!==d[t])return d[t];var n=_(i=i||r.alloc(8),i,10,128,t).then((function(){return!0})).catch((function(){return!1}));return d[t]=n,n}($).then((function(e){return e?_(t,n,o,m,$):c(t,n,o,m,f)})),g)}else p()((function(){var e;try{e=c(t,n,o,m,f)}catch(t){return g(t)}g(null,e)}))}}).call(this,n(55))},function(t,e,n){var i=n(789),o=n(377),r=n(378),s=n(802),a=n(289);function c(t,e,n){if(t=t.toLowerCase(),r[t])return o.createCipheriv(t,e,n);if(s[t])return new i({key:e,iv:n,mode:t});throw new TypeError("invalid suite type")}function l(t,e,n){if(t=t.toLowerCase(),r[t])return o.createDecipheriv(t,e,n);if(s[t])return new i({key:e,iv:n,mode:t,decrypt:!0});throw new TypeError("invalid suite type")}e.createCipher=e.Cipher=function(t,e){var n,i;if(t=t.toLowerCase(),r[t])n=r[t].key,i=r[t].iv;else{if(!s[t])throw new TypeError("invalid suite type");n=8*s[t].key,i=s[t].iv}var o=a(e,!1,n,i);return c(t,o.key,o.iv)},e.createCipheriv=e.Cipheriv=c,e.createDecipher=e.Decipher=function(t,e){var n,i;if(t=t.toLowerCase(),r[t])n=r[t].key,i=r[t].iv;else{if(!s[t])throw new TypeError("invalid suite type");n=8*s[t].key,i=s[t].iv}var o=a(e,!1,n,i);return l(t,o.key,o.iv)},e.createDecipheriv=e.Decipheriv=l,e.listCiphers=e.getCiphers=function(){return Object.keys(s).concat(o.getCiphers())}},function(t,e,n){var i=n(130),o=n(790),r=n(20),s=n(27).Buffer,a={"des-ede3-cbc":o.CBC.instantiate(o.EDE),"des-ede3":o.EDE,"des-ede-cbc":o.CBC.instantiate(o.EDE),"des-ede":o.EDE,"des-cbc":o.CBC.instantiate(o.DES),"des-ecb":o.DES};function c(t){i.call(this);var e,n=t.mode.toLowerCase(),o=a[n];e=t.decrypt?"decrypt":"encrypt";var r=t.key;s.isBuffer(r)||(r=s.from(r)),"des-ede"!==n&&"des-ede-cbc"!==n||(r=s.concat([r,r.slice(0,8)]));var c=t.iv;s.isBuffer(c)||(c=s.from(c)),this._des=o.create({key:r,iv:c,type:e})}a.des=a["des-cbc"],a.des3=a["des-ede3-cbc"],t.exports=c,r(c,i),c.prototype._update=function(t){return s.from(this._des.update(t))},c.prototype._final=function(){return s.from(this._des.final())}},function(t,e,n){"use strict";e.utils=n(599),e.Cipher=n(376),e.DES=n(600),e.CBC=n(791),e.EDE=n(792)},function(t,e,n){"use strict";var i=n(86),o=n(20),r={};function s(t){i.equal(t.length,8,"Invalid IV length"),this.iv=new Array(8);for(var e=0;e15){var t=this.cache.slice(0,16);return this.cache=this.cache.slice(16),t}return null},d.prototype.flush=function(){for(var t=16-this.cache.length,e=r.allocUnsafe(t),n=-1;++n>s%8,t._prev=r(t._prev,n?i:o);return a}function r(t,e){var n=t.length,o=-1,r=i.allocUnsafe(t.length);for(t=i.concat([t,i.from([e])]);++o>7;return r}e.encrypt=function(t,e,n){for(var r=e.length,s=i.allocUnsafe(r),a=-1;++a>>0,0),e.writeUInt32BE(t[1]>>>0,4),e.writeUInt32BE(t[2]>>>0,8),e.writeUInt32BE(t[3]>>>0,12),e}function s(t){this.h=t,this.state=i.alloc(16,0),this.cache=i.allocUnsafe(0)}s.prototype.ghash=function(t){for(var e=-1;++e0;e--)i[e]=i[e]>>>1|(1&i[e-1])<<31;i[0]=i[0]>>>1,n&&(i[0]=i[0]^225<<24)}this.state=r(o)},s.prototype.update=function(t){var e;for(this.cache=i.concat([this.cache,t]);this.cache.length>=16;)e=this.cache.slice(0,16),this.cache=this.cache.slice(16),this.ghash(e)},s.prototype.final=function(t,e){return this.cache.length&&this.ghash(i.concat([this.cache,o],16)),this.ghash(r([0,t,0,e])),this.state},t.exports=s},function(t,e,n){var i=n(604),o=n(27).Buffer,r=n(378),s=n(605),a=n(130),c=n(288),l=n(289);function u(t,e,n){a.call(this),this._cache=new h,this._last=void 0,this._cipher=new c.AES(e),this._prev=o.from(n),this._mode=t,this._autopadding=!0}function h(){this.cache=o.allocUnsafe(0)}function d(t,e,n){var a=r[t.toLowerCase()];if(!a)throw new TypeError("invalid suite type");if("string"==typeof n&&(n=o.from(n)),"GCM"!==a.mode&&n.length!==a.iv)throw new TypeError("invalid iv length "+n.length);if("string"==typeof e&&(e=o.from(e)),e.length!==a.key/8)throw new TypeError("invalid key length "+e.length);return"stream"===a.type?new s(a.module,e,n,!0):"auth"===a.type?new i(a.module,e,n,!0):new u(a.module,e,n)}n(20)(u,a),u.prototype._update=function(t){var e,n;this._cache.add(t);for(var i=[];e=this._cache.get(this._autopadding);)n=this._mode.decrypt(this,e),i.push(n);return o.concat(i)},u.prototype._final=function(){var t=this._cache.flush();if(this._autopadding)return function(t){var e=t[15];if(e<1||e>16)throw new Error("unable to decrypt data");var n=-1;for(;++n16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e}else if(this.cache.length>=16)return e=this.cache.slice(0,16),this.cache=this.cache.slice(16),e;return null},h.prototype.flush=function(){if(this.cache.length)return this.cache},e.createDecipher=function(t,e){var n=r[t.toLowerCase()];if(!n)throw new TypeError("invalid suite type");var i=l(e,!1,n.key,n.iv);return d(t,i.key,i.iv)},e.createDecipheriv=d},function(t,e){e["des-ecb"]={key:8,iv:0},e["des-cbc"]=e.des={key:8,iv:8},e["des-ede3-cbc"]=e.des3={key:24,iv:8},e["des-ede3"]={key:24,iv:0},e["des-ede-cbc"]={key:16,iv:8},e["des-ede"]={key:16,iv:0}},function(t,e,n){(function(t){var i=n(606),o=n(806),r=n(807);var s={binary:!0,hex:!0,base64:!0};e.DiffieHellmanGroup=e.createDiffieHellmanGroup=e.getDiffieHellman=function(e){var n=new t(o[e].prime,"hex"),i=new t(o[e].gen,"hex");return new r(n,i)},e.createDiffieHellman=e.DiffieHellman=function e(n,o,a,c){return t.isBuffer(o)||void 0===s[o]?e(n,"binary",o,a):(o=o||"binary",c=c||"binary",a=a||new t([2]),t.isBuffer(a)||(a=new t(a,c)),"number"==typeof n?new r(i(n,a),a,!0):(t.isBuffer(n)||(n=new t(n,o)),new r(n,a,!0)))}}).call(this,n(50).Buffer)},function(t,e){},function(t,e){},function(t){t.exports=JSON.parse('{"modp1":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a63a3620ffffffffffffffff"},"modp2":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece65381ffffffffffffffff"},"modp5":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca237327ffffffffffffffff"},"modp14":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aacaa68ffffffffffffffff"},"modp15":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a93ad2caffffffffffffffff"},"modp16":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c934063199ffffffffffffffff"},"modp17":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dcc4024ffffffffffffffff"},"modp18":{"gen":"02","prime":"ffffffffffffffffc90fdaa22168c234c4c6628b80dc1cd129024e088a67cc74020bbea63b139b22514a08798e3404ddef9519b3cd3a431b302b0a6df25f14374fe1356d6d51c245e485b576625e7ec6f44c42e9a637ed6b0bff5cb6f406b7edee386bfb5a899fa5ae9f24117c4b1fe649286651ece45b3dc2007cb8a163bf0598da48361c55d39a69163fa8fd24cf5f83655d23dca3ad961c62f356208552bb9ed529077096966d670c354e4abc9804f1746c08ca18217c32905e462e36ce3be39e772c180e86039b2783a2ec07a28fb5c55df06f4c52c9de2bcbf6955817183995497cea956ae515d2261898fa051015728e5a8aaac42dad33170d04507a33a85521abdf1cba64ecfb850458dbef0a8aea71575d060c7db3970f85a6e1e4c7abf5ae8cdb0933d71e8c94e04a25619dcee3d2261ad2ee6bf12ffa06d98a0864d87602733ec86a64521f2b18177b200cbbe117577a615d6c770988c0bad946e208e24fa074e5ab3143db5bfce0fd108e4b82d120a92108011a723c12a787e6d788719a10bdba5b2699c327186af4e23c1a946834b6150bda2583e9ca2ad44ce8dbbbc2db04de8ef92e8efc141fbecaa6287c59474e6bc05d99b2964fa090c3a2233ba186515be7ed1f612970cee2d7afb81bdd762170481cd0069127d5b05aa993b4ea988d8fddc186ffb7dc90a6c08f4df435c93402849236c3fab4d27c7026c1d4dcb2602646dec9751e763dba37bdf8ff9406ad9e530ee5db382f413001aeb06a53ed9027d831179727b0865a8918da3edbebcf9b14ed44ce6cbaced4bb1bdb7f1447e6cc254b332051512bd7af426fb8f401378cd2bf5983ca01c64b92ecf032ea15d1721d03f482d7ce6e74fef6d55e702f46980c82b5a84031900b1c9e59e7c97fbec7e8f323a97a7e36cc88be0f1d45b7ff585ac54bd407b22b4154aacc8f6d7ebf48e1d814cc5ed20f8037e0a79715eef29be32806a1d58bb7c5da76f550aa3d8a1fbff0eb19ccb1a313d55cda56c9ec2ef29632387fe8d76e3c0468043e8f663f4860ee12bf2d5b0b7474d6e694f91e6dbe115974a3926f12fee5e438777cb6a932df8cd8bec4d073b931ba3bc832b68d9dd300741fa7bf8afc47ed2576f6936ba424663aab639c5ae4f5683423b4742bf1c978238f16cbe39d652de3fdb8befc848ad922222e04a4037c0713eb57a81a23f0c73473fc646cea306b4bcbc8862f8385ddfa9d4b7fa2c087e879683303ed5bdd3a062b3cf5b3a278a66d2a13f83f44f82ddf310ee074ab6a364597e899a0255dc164f31cc50846851df9ab48195ded7ea1b1d510bd7ee74d73faf36bc31ecfa268359046f4eb879f924009438b481c6cd7889a002ed5ee382bc9190da6fc026e479558e4475677e9aa9e3050e2765694dfc81f56e880b96e7160c980dd98edd3dfffffffffffffffff"}}')},function(t,e,n){(function(e){var i=n(51),o=new(n(607)),r=new i(24),s=new i(11),a=new i(10),c=new i(3),l=new i(7),u=n(606),h=n(175);function d(t,n){return n=n||"utf8",e.isBuffer(t)||(t=new e(t,n)),this._pub=new i(t),this}function p(t,n){return n=n||"utf8",e.isBuffer(t)||(t=new e(t,n)),this._priv=new i(t),this}t.exports=m;var _={};function m(t,e,n){this.setGenerator(e),this.__prime=new i(t),this._prime=i.mont(this.__prime),this._primeLen=t.length,this._pub=void 0,this._priv=void 0,this._primeCode=void 0,n?(this.setPublicKey=d,this.setPrivateKey=p):this._primeCode=8}function f(t,n){var i=new e(t.toArray());return n?i.toString(n):i}Object.defineProperty(m.prototype,"verifyError",{enumerable:!0,get:function(){return"number"!=typeof this._primeCode&&(this._primeCode=function(t,e){var n=e.toString("hex"),i=[n,t.toString(16)].join("_");if(i in _)return _[i];var h,d=0;if(t.isEven()||!u.simpleSieve||!u.fermatTest(t)||!o.test(t))return d+=1,d+="02"===n||"05"===n?8:4,_[i]=d,d;switch(o.test(t.shrn(1))||(d+=2),n){case"02":t.mod(r).cmp(s)&&(d+=8);break;case"05":(h=t.mod(a)).cmp(c)&&h.cmp(l)&&(d+=8);break;default:d+=4}return _[i]=d,d}(this.__prime,this.__gen)),this._primeCode}}),m.prototype.generateKeys=function(){return this._priv||(this._priv=new i(h(this._primeLen))),this._pub=this._gen.toRed(this._prime).redPow(this._priv).fromRed(),this.getPublicKey()},m.prototype.computeSecret=function(t){var n=(t=(t=new i(t)).toRed(this._prime)).redPow(this._priv).fromRed(),o=new e(n.toArray()),r=this.getPrime();if(o.length0?this.tail.next=e:this.head=e,this.tail=e,++this.length}},{key:"unshift",value:function(t){var e={data:t,next:this.head};0===this.length&&(this.tail=e),this.head=e,++this.length}},{key:"shift",value:function(){if(0!==this.length){var t=this.head.data;return 1===this.length?this.head=this.tail=null:this.head=this.head.next,--this.length,t}}},{key:"clear",value:function(){this.head=this.tail=null,this.length=0}},{key:"join",value:function(t){if(0===this.length)return"";for(var e=this.head,n=""+e.data;e=e.next;)n+=t+e.data;return n}},{key:"concat",value:function(t){if(0===this.length)return s.alloc(0);for(var e,n,i,o=s.allocUnsafe(t>>>0),r=this.head,a=0;r;)e=r.data,n=o,i=a,s.prototype.copy.call(e,n,i),a+=r.data.length,r=r.next;return o}},{key:"consume",value:function(t,e){var n;return to.length?o.length:t;if(r===o.length?i+=o:i+=o.slice(0,t),0==(t-=r)){r===o.length?(++n,e.next?this.head=e.next:this.head=this.tail=null):(this.head=e,e.data=o.slice(r));break}++n}return this.length-=n,i}},{key:"_getBuffer",value:function(t){var e=s.allocUnsafe(t),n=this.head,i=1;for(n.data.copy(e),t-=n.data.length;n=n.next;){var o=n.data,r=t>o.length?o.length:t;if(o.copy(e,e.length-t,0,r),0==(t-=r)){r===o.length?(++i,n.next?this.head=n.next:this.head=this.tail=null):(this.head=n,n.data=o.slice(r));break}++i}return this.length-=i,e}},{key:c,value:function(t,e){return a(this,function(t){for(var e=1;e0,(function(t){i||(i=t),t&&s.forEach(l),r||(s.forEach(l),o(i))}))}));return e.reduce(u)}},function(t,e,n){var i=n(27).Buffer,o=n(591),r=n(381),s=n(382).ec,a=n(619),c=n(291),l=n(625);function u(t,e,n,r){if((t=i.from(t.toArray())).length0&&n.ishrn(i),n}function d(t,e,n){var r,s;do{for(r=i.alloc(0);8*r.length=48&&n<=57?n-48:n>=65&&n<=70?n-55:n>=97&&n<=102?n-87:void i(!1,"Invalid character in "+t)}function c(t,e,n){var i=a(t,n);return n-1>=e&&(i|=a(t,n-1)<<4),i}function l(t,e,n,o){for(var r=0,s=0,a=Math.min(t.length,n),c=e;c=49?l-49+10:l>=17?l-17+10:l,i(l>=0&&s0?t:e},r.min=function(t,e){return t.cmp(e)<0?t:e},r.prototype._init=function(t,e,n){if("number"==typeof t)return this._initNumber(t,e,n);if("object"==typeof t)return this._initArray(t,e,n);"hex"===e&&(e=16),i(e===(0|e)&&e>=2&&e<=36);var o=0;"-"===(t=t.toString().replace(/\s+/g,""))[0]&&(o++,this.negative=1),o=0;o-=3)s=t[o]|t[o-1]<<8|t[o-2]<<16,this.words[r]|=s<>>26-a&67108863,(a+=24)>=26&&(a-=26,r++);else if("le"===n)for(o=0,r=0;o>>26-a&67108863,(a+=24)>=26&&(a-=26,r++);return this._strip()},r.prototype._parseHex=function(t,e,n){this.length=Math.ceil((t.length-e)/6),this.words=new Array(this.length);for(var i=0;i=e;i-=2)o=c(t,e,i)<=18?(r-=18,s+=1,this.words[s]|=o>>>26):r+=8;else for(i=(t.length-e)%2==0?e+1:e;i=18?(r-=18,s+=1,this.words[s]|=o>>>26):r+=8;this._strip()},r.prototype._parseBase=function(t,e,n){this.words=[0],this.length=1;for(var i=0,o=1;o<=67108863;o*=e)i++;i--,o=o/e|0;for(var r=t.length-n,s=r%i,a=Math.min(r,r-s)+n,c=0,u=n;u1&&0===this.words[this.length-1];)this.length--;return this._normSign()},r.prototype._normSign=function(){return 1===this.length&&0===this.words[0]&&(this.negative=0),this},"undefined"!=typeof Symbol&&"function"==typeof Symbol.for)try{r.prototype[Symbol.for("nodejs.util.inspect.custom")]=h}catch(t){r.prototype.inspect=h}else r.prototype.inspect=h;function h(){return(this.red?""}var d=["","0","00","000","0000","00000","000000","0000000","00000000","000000000","0000000000","00000000000","000000000000","0000000000000","00000000000000","000000000000000","0000000000000000","00000000000000000","000000000000000000","0000000000000000000","00000000000000000000","000000000000000000000","0000000000000000000000","00000000000000000000000","000000000000000000000000","0000000000000000000000000"],p=[0,0,25,16,12,11,10,9,8,8,7,7,7,7,6,6,6,6,6,6,6,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5,5],_=[0,0,33554432,43046721,16777216,48828125,60466176,40353607,16777216,43046721,1e7,19487171,35831808,62748517,7529536,11390625,16777216,24137569,34012224,47045881,64e6,4084101,5153632,6436343,7962624,9765625,11881376,14348907,17210368,20511149,243e5,28629151,33554432,39135393,45435424,52521875,60466176];r.prototype.toString=function(t,e){var n;if(e=0|e||1,16===(t=t||10)||"hex"===t){n="";for(var o=0,r=0,s=0;s>>24-o&16777215)||s!==this.length-1?d[6-c.length]+c+n:c+n,(o+=2)>=26&&(o-=26,s--)}for(0!==r&&(n=r.toString(16)+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}if(t===(0|t)&&t>=2&&t<=36){var l=p[t],u=_[t];n="";var h=this.clone();for(h.negative=0;!h.isZero();){var m=h.modrn(u).toString(t);n=(h=h.idivn(u)).isZero()?m+n:d[l-m.length]+m+n}for(this.isZero()&&(n="0"+n);n.length%e!=0;)n="0"+n;return 0!==this.negative&&(n="-"+n),n}i(!1,"Base should be between 2 and 36")},r.prototype.toNumber=function(){var t=this.words[0];return 2===this.length?t+=67108864*this.words[1]:3===this.length&&1===this.words[2]?t+=4503599627370496+67108864*this.words[1]:this.length>2&&i(!1,"Number can only safely store up to 53 bits"),0!==this.negative?-t:t},r.prototype.toJSON=function(){return this.toString(16,2)},s&&(r.prototype.toBuffer=function(t,e){return this.toArrayLike(s,t,e)}),r.prototype.toArray=function(t,e){return this.toArrayLike(Array,t,e)};function m(t,e,n){n.negative=e.negative^t.negative;var i=t.length+e.length|0;n.length=i,i=i-1|0;var o=0|t.words[0],r=0|e.words[0],s=o*r,a=67108863&s,c=s/67108864|0;n.words[0]=a;for(var l=1;l>>26,h=67108863&c,d=Math.min(l,e.length-1),p=Math.max(0,l-t.length+1);p<=d;p++){var _=l-p|0;u+=(s=(o=0|t.words[_])*(r=0|e.words[p])+h)/67108864|0,h=67108863&s}n.words[l]=0|h,c=0|u}return 0!==c?n.words[l]=0|c:n.length--,n._strip()}r.prototype.toArrayLike=function(t,e,n){this._strip();var o=this.byteLength(),r=n||Math.max(1,o);i(o<=r,"byte array longer than desired length"),i(r>0,"Requested array length <= 0");var s=function(t,e){return t.allocUnsafe?t.allocUnsafe(e):new t(e)}(t,r);return this["_toArrayLike"+("le"===e?"LE":"BE")](s,o),s},r.prototype._toArrayLikeLE=function(t,e){for(var n=0,i=0,o=0,r=0;o>8&255),n>16&255),6===r?(n>24&255),i=0,r=0):(i=s>>>24,r+=2)}if(n=0&&(t[n--]=s>>8&255),n>=0&&(t[n--]=s>>16&255),6===r?(n>=0&&(t[n--]=s>>24&255),i=0,r=0):(i=s>>>24,r+=2)}if(n>=0)for(t[n--]=i;n>=0;)t[n--]=0},Math.clz32?r.prototype._countBits=function(t){return 32-Math.clz32(t)}:r.prototype._countBits=function(t){var e=t,n=0;return e>=4096&&(n+=13,e>>>=13),e>=64&&(n+=7,e>>>=7),e>=8&&(n+=4,e>>>=4),e>=2&&(n+=2,e>>>=2),n+e},r.prototype._zeroBits=function(t){if(0===t)return 26;var e=t,n=0;return 0==(8191&e)&&(n+=13,e>>>=13),0==(127&e)&&(n+=7,e>>>=7),0==(15&e)&&(n+=4,e>>>=4),0==(3&e)&&(n+=2,e>>>=2),0==(1&e)&&n++,n},r.prototype.bitLength=function(){var t=this.words[this.length-1],e=this._countBits(t);return 26*(this.length-1)+e},r.prototype.zeroBits=function(){if(this.isZero())return 0;for(var t=0,e=0;et.length?this.clone().ior(t):t.clone().ior(this)},r.prototype.uor=function(t){return this.length>t.length?this.clone().iuor(t):t.clone().iuor(this)},r.prototype.iuand=function(t){var e;e=this.length>t.length?t:this;for(var n=0;nt.length?this.clone().iand(t):t.clone().iand(this)},r.prototype.uand=function(t){return this.length>t.length?this.clone().iuand(t):t.clone().iuand(this)},r.prototype.iuxor=function(t){var e,n;this.length>t.length?(e=this,n=t):(e=t,n=this);for(var i=0;it.length?this.clone().ixor(t):t.clone().ixor(this)},r.prototype.uxor=function(t){return this.length>t.length?this.clone().iuxor(t):t.clone().iuxor(this)},r.prototype.inotn=function(t){i("number"==typeof t&&t>=0);var e=0|Math.ceil(t/26),n=t%26;this._expand(e),n>0&&e--;for(var o=0;o0&&(this.words[o]=~this.words[o]&67108863>>26-n),this._strip()},r.prototype.notn=function(t){return this.clone().inotn(t)},r.prototype.setn=function(t,e){i("number"==typeof t&&t>=0);var n=t/26|0,o=t%26;return this._expand(n+1),this.words[n]=e?this.words[n]|1<t.length?(n=this,i=t):(n=t,i=this);for(var o=0,r=0;r>>26;for(;0!==o&&r>>26;if(this.length=n.length,0!==o)this.words[this.length]=o,this.length++;else if(n!==this)for(;rt.length?this.clone().iadd(t):t.clone().iadd(this)},r.prototype.isub=function(t){if(0!==t.negative){t.negative=0;var e=this.iadd(t);return t.negative=1,e._normSign()}if(0!==this.negative)return this.negative=0,this.iadd(t),this.negative=1,this._normSign();var n,i,o=this.cmp(t);if(0===o)return this.negative=0,this.length=1,this.words[0]=0,this;o>0?(n=this,i=t):(n=t,i=this);for(var r=0,s=0;s>26,this.words[s]=67108863&e;for(;0!==r&&s>26,this.words[s]=67108863&e;if(0===r&&s>>13,p=0|s[1],_=8191&p,m=p>>>13,f=0|s[2],g=8191&f,$=f>>>13,E=0|s[3],y=8191&E,b=E>>>13,S=0|s[4],v=8191&S,C=S>>>13,N=0|s[5],T=8191&N,L=N>>>13,z=0|s[6],w=8191&z,O=z>>>13,R=0|s[7],A=8191&R,x=R>>>13,I=0|s[8],U=8191&I,D=I>>>13,P=0|s[9],M=8191&P,k=P>>>13,j=0|a[0],G=8191&j,q=j>>>13,F=0|a[1],B=8191&F,W=F>>>13,H=0|a[2],V=8191&H,K=H>>>13,X=0|a[3],J=8191&X,Y=X>>>13,Q=0|a[4],Z=8191&Q,tt=Q>>>13,et=0|a[5],nt=8191&et,it=et>>>13,ot=0|a[6],rt=8191&ot,st=ot>>>13,at=0|a[7],ct=8191&at,lt=at>>>13,ut=0|a[8],ht=8191&ut,dt=ut>>>13,pt=0|a[9],_t=8191&pt,mt=pt>>>13;n.negative=t.negative^e.negative,n.length=19;var ft=(l+(i=Math.imul(h,G))|0)+((8191&(o=(o=Math.imul(h,q))+Math.imul(d,G)|0))<<13)|0;l=((r=Math.imul(d,q))+(o>>>13)|0)+(ft>>>26)|0,ft&=67108863,i=Math.imul(_,G),o=(o=Math.imul(_,q))+Math.imul(m,G)|0,r=Math.imul(m,q);var gt=(l+(i=i+Math.imul(h,B)|0)|0)+((8191&(o=(o=o+Math.imul(h,W)|0)+Math.imul(d,B)|0))<<13)|0;l=((r=r+Math.imul(d,W)|0)+(o>>>13)|0)+(gt>>>26)|0,gt&=67108863,i=Math.imul(g,G),o=(o=Math.imul(g,q))+Math.imul($,G)|0,r=Math.imul($,q),i=i+Math.imul(_,B)|0,o=(o=o+Math.imul(_,W)|0)+Math.imul(m,B)|0,r=r+Math.imul(m,W)|0;var $t=(l+(i=i+Math.imul(h,V)|0)|0)+((8191&(o=(o=o+Math.imul(h,K)|0)+Math.imul(d,V)|0))<<13)|0;l=((r=r+Math.imul(d,K)|0)+(o>>>13)|0)+($t>>>26)|0,$t&=67108863,i=Math.imul(y,G),o=(o=Math.imul(y,q))+Math.imul(b,G)|0,r=Math.imul(b,q),i=i+Math.imul(g,B)|0,o=(o=o+Math.imul(g,W)|0)+Math.imul($,B)|0,r=r+Math.imul($,W)|0,i=i+Math.imul(_,V)|0,o=(o=o+Math.imul(_,K)|0)+Math.imul(m,V)|0,r=r+Math.imul(m,K)|0;var Et=(l+(i=i+Math.imul(h,J)|0)|0)+((8191&(o=(o=o+Math.imul(h,Y)|0)+Math.imul(d,J)|0))<<13)|0;l=((r=r+Math.imul(d,Y)|0)+(o>>>13)|0)+(Et>>>26)|0,Et&=67108863,i=Math.imul(v,G),o=(o=Math.imul(v,q))+Math.imul(C,G)|0,r=Math.imul(C,q),i=i+Math.imul(y,B)|0,o=(o=o+Math.imul(y,W)|0)+Math.imul(b,B)|0,r=r+Math.imul(b,W)|0,i=i+Math.imul(g,V)|0,o=(o=o+Math.imul(g,K)|0)+Math.imul($,V)|0,r=r+Math.imul($,K)|0,i=i+Math.imul(_,J)|0,o=(o=o+Math.imul(_,Y)|0)+Math.imul(m,J)|0,r=r+Math.imul(m,Y)|0;var yt=(l+(i=i+Math.imul(h,Z)|0)|0)+((8191&(o=(o=o+Math.imul(h,tt)|0)+Math.imul(d,Z)|0))<<13)|0;l=((r=r+Math.imul(d,tt)|0)+(o>>>13)|0)+(yt>>>26)|0,yt&=67108863,i=Math.imul(T,G),o=(o=Math.imul(T,q))+Math.imul(L,G)|0,r=Math.imul(L,q),i=i+Math.imul(v,B)|0,o=(o=o+Math.imul(v,W)|0)+Math.imul(C,B)|0,r=r+Math.imul(C,W)|0,i=i+Math.imul(y,V)|0,o=(o=o+Math.imul(y,K)|0)+Math.imul(b,V)|0,r=r+Math.imul(b,K)|0,i=i+Math.imul(g,J)|0,o=(o=o+Math.imul(g,Y)|0)+Math.imul($,J)|0,r=r+Math.imul($,Y)|0,i=i+Math.imul(_,Z)|0,o=(o=o+Math.imul(_,tt)|0)+Math.imul(m,Z)|0,r=r+Math.imul(m,tt)|0;var bt=(l+(i=i+Math.imul(h,nt)|0)|0)+((8191&(o=(o=o+Math.imul(h,it)|0)+Math.imul(d,nt)|0))<<13)|0;l=((r=r+Math.imul(d,it)|0)+(o>>>13)|0)+(bt>>>26)|0,bt&=67108863,i=Math.imul(w,G),o=(o=Math.imul(w,q))+Math.imul(O,G)|0,r=Math.imul(O,q),i=i+Math.imul(T,B)|0,o=(o=o+Math.imul(T,W)|0)+Math.imul(L,B)|0,r=r+Math.imul(L,W)|0,i=i+Math.imul(v,V)|0,o=(o=o+Math.imul(v,K)|0)+Math.imul(C,V)|0,r=r+Math.imul(C,K)|0,i=i+Math.imul(y,J)|0,o=(o=o+Math.imul(y,Y)|0)+Math.imul(b,J)|0,r=r+Math.imul(b,Y)|0,i=i+Math.imul(g,Z)|0,o=(o=o+Math.imul(g,tt)|0)+Math.imul($,Z)|0,r=r+Math.imul($,tt)|0,i=i+Math.imul(_,nt)|0,o=(o=o+Math.imul(_,it)|0)+Math.imul(m,nt)|0,r=r+Math.imul(m,it)|0;var St=(l+(i=i+Math.imul(h,rt)|0)|0)+((8191&(o=(o=o+Math.imul(h,st)|0)+Math.imul(d,rt)|0))<<13)|0;l=((r=r+Math.imul(d,st)|0)+(o>>>13)|0)+(St>>>26)|0,St&=67108863,i=Math.imul(A,G),o=(o=Math.imul(A,q))+Math.imul(x,G)|0,r=Math.imul(x,q),i=i+Math.imul(w,B)|0,o=(o=o+Math.imul(w,W)|0)+Math.imul(O,B)|0,r=r+Math.imul(O,W)|0,i=i+Math.imul(T,V)|0,o=(o=o+Math.imul(T,K)|0)+Math.imul(L,V)|0,r=r+Math.imul(L,K)|0,i=i+Math.imul(v,J)|0,o=(o=o+Math.imul(v,Y)|0)+Math.imul(C,J)|0,r=r+Math.imul(C,Y)|0,i=i+Math.imul(y,Z)|0,o=(o=o+Math.imul(y,tt)|0)+Math.imul(b,Z)|0,r=r+Math.imul(b,tt)|0,i=i+Math.imul(g,nt)|0,o=(o=o+Math.imul(g,it)|0)+Math.imul($,nt)|0,r=r+Math.imul($,it)|0,i=i+Math.imul(_,rt)|0,o=(o=o+Math.imul(_,st)|0)+Math.imul(m,rt)|0,r=r+Math.imul(m,st)|0;var vt=(l+(i=i+Math.imul(h,ct)|0)|0)+((8191&(o=(o=o+Math.imul(h,lt)|0)+Math.imul(d,ct)|0))<<13)|0;l=((r=r+Math.imul(d,lt)|0)+(o>>>13)|0)+(vt>>>26)|0,vt&=67108863,i=Math.imul(U,G),o=(o=Math.imul(U,q))+Math.imul(D,G)|0,r=Math.imul(D,q),i=i+Math.imul(A,B)|0,o=(o=o+Math.imul(A,W)|0)+Math.imul(x,B)|0,r=r+Math.imul(x,W)|0,i=i+Math.imul(w,V)|0,o=(o=o+Math.imul(w,K)|0)+Math.imul(O,V)|0,r=r+Math.imul(O,K)|0,i=i+Math.imul(T,J)|0,o=(o=o+Math.imul(T,Y)|0)+Math.imul(L,J)|0,r=r+Math.imul(L,Y)|0,i=i+Math.imul(v,Z)|0,o=(o=o+Math.imul(v,tt)|0)+Math.imul(C,Z)|0,r=r+Math.imul(C,tt)|0,i=i+Math.imul(y,nt)|0,o=(o=o+Math.imul(y,it)|0)+Math.imul(b,nt)|0,r=r+Math.imul(b,it)|0,i=i+Math.imul(g,rt)|0,o=(o=o+Math.imul(g,st)|0)+Math.imul($,rt)|0,r=r+Math.imul($,st)|0,i=i+Math.imul(_,ct)|0,o=(o=o+Math.imul(_,lt)|0)+Math.imul(m,ct)|0,r=r+Math.imul(m,lt)|0;var Ct=(l+(i=i+Math.imul(h,ht)|0)|0)+((8191&(o=(o=o+Math.imul(h,dt)|0)+Math.imul(d,ht)|0))<<13)|0;l=((r=r+Math.imul(d,dt)|0)+(o>>>13)|0)+(Ct>>>26)|0,Ct&=67108863,i=Math.imul(M,G),o=(o=Math.imul(M,q))+Math.imul(k,G)|0,r=Math.imul(k,q),i=i+Math.imul(U,B)|0,o=(o=o+Math.imul(U,W)|0)+Math.imul(D,B)|0,r=r+Math.imul(D,W)|0,i=i+Math.imul(A,V)|0,o=(o=o+Math.imul(A,K)|0)+Math.imul(x,V)|0,r=r+Math.imul(x,K)|0,i=i+Math.imul(w,J)|0,o=(o=o+Math.imul(w,Y)|0)+Math.imul(O,J)|0,r=r+Math.imul(O,Y)|0,i=i+Math.imul(T,Z)|0,o=(o=o+Math.imul(T,tt)|0)+Math.imul(L,Z)|0,r=r+Math.imul(L,tt)|0,i=i+Math.imul(v,nt)|0,o=(o=o+Math.imul(v,it)|0)+Math.imul(C,nt)|0,r=r+Math.imul(C,it)|0,i=i+Math.imul(y,rt)|0,o=(o=o+Math.imul(y,st)|0)+Math.imul(b,rt)|0,r=r+Math.imul(b,st)|0,i=i+Math.imul(g,ct)|0,o=(o=o+Math.imul(g,lt)|0)+Math.imul($,ct)|0,r=r+Math.imul($,lt)|0,i=i+Math.imul(_,ht)|0,o=(o=o+Math.imul(_,dt)|0)+Math.imul(m,ht)|0,r=r+Math.imul(m,dt)|0;var Nt=(l+(i=i+Math.imul(h,_t)|0)|0)+((8191&(o=(o=o+Math.imul(h,mt)|0)+Math.imul(d,_t)|0))<<13)|0;l=((r=r+Math.imul(d,mt)|0)+(o>>>13)|0)+(Nt>>>26)|0,Nt&=67108863,i=Math.imul(M,B),o=(o=Math.imul(M,W))+Math.imul(k,B)|0,r=Math.imul(k,W),i=i+Math.imul(U,V)|0,o=(o=o+Math.imul(U,K)|0)+Math.imul(D,V)|0,r=r+Math.imul(D,K)|0,i=i+Math.imul(A,J)|0,o=(o=o+Math.imul(A,Y)|0)+Math.imul(x,J)|0,r=r+Math.imul(x,Y)|0,i=i+Math.imul(w,Z)|0,o=(o=o+Math.imul(w,tt)|0)+Math.imul(O,Z)|0,r=r+Math.imul(O,tt)|0,i=i+Math.imul(T,nt)|0,o=(o=o+Math.imul(T,it)|0)+Math.imul(L,nt)|0,r=r+Math.imul(L,it)|0,i=i+Math.imul(v,rt)|0,o=(o=o+Math.imul(v,st)|0)+Math.imul(C,rt)|0,r=r+Math.imul(C,st)|0,i=i+Math.imul(y,ct)|0,o=(o=o+Math.imul(y,lt)|0)+Math.imul(b,ct)|0,r=r+Math.imul(b,lt)|0,i=i+Math.imul(g,ht)|0,o=(o=o+Math.imul(g,dt)|0)+Math.imul($,ht)|0,r=r+Math.imul($,dt)|0;var Tt=(l+(i=i+Math.imul(_,_t)|0)|0)+((8191&(o=(o=o+Math.imul(_,mt)|0)+Math.imul(m,_t)|0))<<13)|0;l=((r=r+Math.imul(m,mt)|0)+(o>>>13)|0)+(Tt>>>26)|0,Tt&=67108863,i=Math.imul(M,V),o=(o=Math.imul(M,K))+Math.imul(k,V)|0,r=Math.imul(k,K),i=i+Math.imul(U,J)|0,o=(o=o+Math.imul(U,Y)|0)+Math.imul(D,J)|0,r=r+Math.imul(D,Y)|0,i=i+Math.imul(A,Z)|0,o=(o=o+Math.imul(A,tt)|0)+Math.imul(x,Z)|0,r=r+Math.imul(x,tt)|0,i=i+Math.imul(w,nt)|0,o=(o=o+Math.imul(w,it)|0)+Math.imul(O,nt)|0,r=r+Math.imul(O,it)|0,i=i+Math.imul(T,rt)|0,o=(o=o+Math.imul(T,st)|0)+Math.imul(L,rt)|0,r=r+Math.imul(L,st)|0,i=i+Math.imul(v,ct)|0,o=(o=o+Math.imul(v,lt)|0)+Math.imul(C,ct)|0,r=r+Math.imul(C,lt)|0,i=i+Math.imul(y,ht)|0,o=(o=o+Math.imul(y,dt)|0)+Math.imul(b,ht)|0,r=r+Math.imul(b,dt)|0;var Lt=(l+(i=i+Math.imul(g,_t)|0)|0)+((8191&(o=(o=o+Math.imul(g,mt)|0)+Math.imul($,_t)|0))<<13)|0;l=((r=r+Math.imul($,mt)|0)+(o>>>13)|0)+(Lt>>>26)|0,Lt&=67108863,i=Math.imul(M,J),o=(o=Math.imul(M,Y))+Math.imul(k,J)|0,r=Math.imul(k,Y),i=i+Math.imul(U,Z)|0,o=(o=o+Math.imul(U,tt)|0)+Math.imul(D,Z)|0,r=r+Math.imul(D,tt)|0,i=i+Math.imul(A,nt)|0,o=(o=o+Math.imul(A,it)|0)+Math.imul(x,nt)|0,r=r+Math.imul(x,it)|0,i=i+Math.imul(w,rt)|0,o=(o=o+Math.imul(w,st)|0)+Math.imul(O,rt)|0,r=r+Math.imul(O,st)|0,i=i+Math.imul(T,ct)|0,o=(o=o+Math.imul(T,lt)|0)+Math.imul(L,ct)|0,r=r+Math.imul(L,lt)|0,i=i+Math.imul(v,ht)|0,o=(o=o+Math.imul(v,dt)|0)+Math.imul(C,ht)|0,r=r+Math.imul(C,dt)|0;var zt=(l+(i=i+Math.imul(y,_t)|0)|0)+((8191&(o=(o=o+Math.imul(y,mt)|0)+Math.imul(b,_t)|0))<<13)|0;l=((r=r+Math.imul(b,mt)|0)+(o>>>13)|0)+(zt>>>26)|0,zt&=67108863,i=Math.imul(M,Z),o=(o=Math.imul(M,tt))+Math.imul(k,Z)|0,r=Math.imul(k,tt),i=i+Math.imul(U,nt)|0,o=(o=o+Math.imul(U,it)|0)+Math.imul(D,nt)|0,r=r+Math.imul(D,it)|0,i=i+Math.imul(A,rt)|0,o=(o=o+Math.imul(A,st)|0)+Math.imul(x,rt)|0,r=r+Math.imul(x,st)|0,i=i+Math.imul(w,ct)|0,o=(o=o+Math.imul(w,lt)|0)+Math.imul(O,ct)|0,r=r+Math.imul(O,lt)|0,i=i+Math.imul(T,ht)|0,o=(o=o+Math.imul(T,dt)|0)+Math.imul(L,ht)|0,r=r+Math.imul(L,dt)|0;var wt=(l+(i=i+Math.imul(v,_t)|0)|0)+((8191&(o=(o=o+Math.imul(v,mt)|0)+Math.imul(C,_t)|0))<<13)|0;l=((r=r+Math.imul(C,mt)|0)+(o>>>13)|0)+(wt>>>26)|0,wt&=67108863,i=Math.imul(M,nt),o=(o=Math.imul(M,it))+Math.imul(k,nt)|0,r=Math.imul(k,it),i=i+Math.imul(U,rt)|0,o=(o=o+Math.imul(U,st)|0)+Math.imul(D,rt)|0,r=r+Math.imul(D,st)|0,i=i+Math.imul(A,ct)|0,o=(o=o+Math.imul(A,lt)|0)+Math.imul(x,ct)|0,r=r+Math.imul(x,lt)|0,i=i+Math.imul(w,ht)|0,o=(o=o+Math.imul(w,dt)|0)+Math.imul(O,ht)|0,r=r+Math.imul(O,dt)|0;var Ot=(l+(i=i+Math.imul(T,_t)|0)|0)+((8191&(o=(o=o+Math.imul(T,mt)|0)+Math.imul(L,_t)|0))<<13)|0;l=((r=r+Math.imul(L,mt)|0)+(o>>>13)|0)+(Ot>>>26)|0,Ot&=67108863,i=Math.imul(M,rt),o=(o=Math.imul(M,st))+Math.imul(k,rt)|0,r=Math.imul(k,st),i=i+Math.imul(U,ct)|0,o=(o=o+Math.imul(U,lt)|0)+Math.imul(D,ct)|0,r=r+Math.imul(D,lt)|0,i=i+Math.imul(A,ht)|0,o=(o=o+Math.imul(A,dt)|0)+Math.imul(x,ht)|0,r=r+Math.imul(x,dt)|0;var Rt=(l+(i=i+Math.imul(w,_t)|0)|0)+((8191&(o=(o=o+Math.imul(w,mt)|0)+Math.imul(O,_t)|0))<<13)|0;l=((r=r+Math.imul(O,mt)|0)+(o>>>13)|0)+(Rt>>>26)|0,Rt&=67108863,i=Math.imul(M,ct),o=(o=Math.imul(M,lt))+Math.imul(k,ct)|0,r=Math.imul(k,lt),i=i+Math.imul(U,ht)|0,o=(o=o+Math.imul(U,dt)|0)+Math.imul(D,ht)|0,r=r+Math.imul(D,dt)|0;var At=(l+(i=i+Math.imul(A,_t)|0)|0)+((8191&(o=(o=o+Math.imul(A,mt)|0)+Math.imul(x,_t)|0))<<13)|0;l=((r=r+Math.imul(x,mt)|0)+(o>>>13)|0)+(At>>>26)|0,At&=67108863,i=Math.imul(M,ht),o=(o=Math.imul(M,dt))+Math.imul(k,ht)|0,r=Math.imul(k,dt);var xt=(l+(i=i+Math.imul(U,_t)|0)|0)+((8191&(o=(o=o+Math.imul(U,mt)|0)+Math.imul(D,_t)|0))<<13)|0;l=((r=r+Math.imul(D,mt)|0)+(o>>>13)|0)+(xt>>>26)|0,xt&=67108863;var It=(l+(i=Math.imul(M,_t))|0)+((8191&(o=(o=Math.imul(M,mt))+Math.imul(k,_t)|0))<<13)|0;return l=((r=Math.imul(k,mt))+(o>>>13)|0)+(It>>>26)|0,It&=67108863,c[0]=ft,c[1]=gt,c[2]=$t,c[3]=Et,c[4]=yt,c[5]=bt,c[6]=St,c[7]=vt,c[8]=Ct,c[9]=Nt,c[10]=Tt,c[11]=Lt,c[12]=zt,c[13]=wt,c[14]=Ot,c[15]=Rt,c[16]=At,c[17]=xt,c[18]=It,0!==l&&(c[19]=l,n.length++),n};function g(t,e,n){n.negative=e.negative^t.negative,n.length=t.length+e.length;for(var i=0,o=0,r=0;r>>26)|0)>>>26,s&=67108863}n.words[r]=a,i=s,s=o}return 0!==i?n.words[r]=i:n.length--,n._strip()}function $(t,e,n){return g(t,e,n)}function E(t,e){this.x=t,this.y=e}Math.imul||(f=m),r.prototype.mulTo=function(t,e){var n=this.length+t.length;return 10===this.length&&10===t.length?f(this,t,e):n<63?m(this,t,e):n<1024?g(this,t,e):$(this,t,e)},E.prototype.makeRBT=function(t){for(var e=new Array(t),n=r.prototype._countBits(t)-1,i=0;i>=1;return i},E.prototype.permute=function(t,e,n,i,o,r){for(var s=0;s>>=1)o++;return 1<>>=13,n[2*s+1]=8191&r,r>>>=13;for(s=2*e;s>=26,n+=r/67108864|0,n+=s>>>26,this.words[o]=67108863&s}return 0!==n&&(this.words[o]=n,this.length++),e?this.ineg():this},r.prototype.muln=function(t){return this.clone().imuln(t)},r.prototype.sqr=function(){return this.mul(this)},r.prototype.isqr=function(){return this.imul(this.clone())},r.prototype.pow=function(t){var e=function(t){for(var e=new Array(t.bitLength()),n=0;n>>o&1}return e}(t);if(0===e.length)return new r(1);for(var n=this,i=0;i=0);var e,n=t%26,o=(t-n)/26,r=67108863>>>26-n<<26-n;if(0!==n){var s=0;for(e=0;e>>26-n}s&&(this.words[e]=s,this.length++)}if(0!==o){for(e=this.length-1;e>=0;e--)this.words[e+o]=this.words[e];for(e=0;e=0),o=e?(e-e%26)/26:0;var r=t%26,s=Math.min((t-r)/26,this.length),a=67108863^67108863>>>r<s)for(this.length-=s,l=0;l=0&&(0!==u||l>=o);l--){var h=0|this.words[l];this.words[l]=u<<26-r|h>>>r,u=h&a}return c&&0!==u&&(c.words[c.length++]=u),0===this.length&&(this.words[0]=0,this.length=1),this._strip()},r.prototype.ishrn=function(t,e,n){return i(0===this.negative),this.iushrn(t,e,n)},r.prototype.shln=function(t){return this.clone().ishln(t)},r.prototype.ushln=function(t){return this.clone().iushln(t)},r.prototype.shrn=function(t){return this.clone().ishrn(t)},r.prototype.ushrn=function(t){return this.clone().iushrn(t)},r.prototype.testn=function(t){i("number"==typeof t&&t>=0);var e=t%26,n=(t-e)/26,o=1<=0);var e=t%26,n=(t-e)/26;if(i(0===this.negative,"imaskn works only with positive numbers"),this.length<=n)return this;if(0!==e&&n++,this.length=Math.min(n,this.length),0!==e){var o=67108863^67108863>>>e<=67108864;e++)this.words[e]-=67108864,e===this.length-1?this.words[e+1]=1:this.words[e+1]++;return this.length=Math.max(this.length,e+1),this},r.prototype.isubn=function(t){if(i("number"==typeof t),i(t<67108864),t<0)return this.iaddn(-t);if(0!==this.negative)return this.negative=0,this.iaddn(t),this.negative=1,this;if(this.words[0]-=t,1===this.length&&this.words[0]<0)this.words[0]=-this.words[0],this.negative=1;else for(var e=0;e>26)-(c/67108864|0),this.words[o+n]=67108863&r}for(;o>26,this.words[o+n]=67108863&r;if(0===a)return this._strip();for(i(-1===a),a=0,o=0;o>26,this.words[o]=67108863&r;return this.negative=1,this._strip()},r.prototype._wordDiv=function(t,e){var n=(this.length,t.length),i=this.clone(),o=t,s=0|o.words[o.length-1];0!==(n=26-this._countBits(s))&&(o=o.ushln(n),i.iushln(n),s=0|o.words[o.length-1]);var a,c=i.length-o.length;if("mod"!==e){(a=new r(null)).length=c+1,a.words=new Array(a.length);for(var l=0;l=0;h--){var d=67108864*(0|i.words[o.length+h])+(0|i.words[o.length+h-1]);for(d=Math.min(d/s|0,67108863),i._ishlnsubmul(o,d,h);0!==i.negative;)d--,i.negative=0,i._ishlnsubmul(o,1,h),i.isZero()||(i.negative^=1);a&&(a.words[h]=d)}return a&&a._strip(),i._strip(),"div"!==e&&0!==n&&i.iushrn(n),{div:a||null,mod:i}},r.prototype.divmod=function(t,e,n){return i(!t.isZero()),this.isZero()?{div:new r(0),mod:new r(0)}:0!==this.negative&&0===t.negative?(a=this.neg().divmod(t,e),"mod"!==e&&(o=a.div.neg()),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.iadd(t)),{div:o,mod:s}):0===this.negative&&0!==t.negative?(a=this.divmod(t.neg(),e),"mod"!==e&&(o=a.div.neg()),{div:o,mod:a.mod}):0!=(this.negative&t.negative)?(a=this.neg().divmod(t.neg(),e),"div"!==e&&(s=a.mod.neg(),n&&0!==s.negative&&s.isub(t)),{div:a.div,mod:s}):t.length>this.length||this.cmp(t)<0?{div:new r(0),mod:this}:1===t.length?"div"===e?{div:this.divn(t.words[0]),mod:null}:"mod"===e?{div:null,mod:new r(this.modrn(t.words[0]))}:{div:this.divn(t.words[0]),mod:new r(this.modrn(t.words[0]))}:this._wordDiv(t,e);var o,s,a},r.prototype.div=function(t){return this.divmod(t,"div",!1).div},r.prototype.mod=function(t){return this.divmod(t,"mod",!1).mod},r.prototype.umod=function(t){return this.divmod(t,"mod",!0).mod},r.prototype.divRound=function(t){var e=this.divmod(t);if(e.mod.isZero())return e.div;var n=0!==e.div.negative?e.mod.isub(t):e.mod,i=t.ushrn(1),o=t.andln(1),r=n.cmp(i);return r<0||1===o&&0===r?e.div:0!==e.div.negative?e.div.isubn(1):e.div.iaddn(1)},r.prototype.modrn=function(t){var e=t<0;e&&(t=-t),i(t<=67108863);for(var n=(1<<26)%t,o=0,r=this.length-1;r>=0;r--)o=(n*o+(0|this.words[r]))%t;return e?-o:o},r.prototype.modn=function(t){return this.modrn(t)},r.prototype.idivn=function(t){var e=t<0;e&&(t=-t),i(t<=67108863);for(var n=0,o=this.length-1;o>=0;o--){var r=(0|this.words[o])+67108864*n;this.words[o]=r/t|0,n=r%t}return this._strip(),e?this.ineg():this},r.prototype.divn=function(t){return this.clone().idivn(t)},r.prototype.egcd=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o=new r(1),s=new r(0),a=new r(0),c=new r(1),l=0;e.isEven()&&n.isEven();)e.iushrn(1),n.iushrn(1),++l;for(var u=n.clone(),h=e.clone();!e.isZero();){for(var d=0,p=1;0==(e.words[0]&p)&&d<26;++d,p<<=1);if(d>0)for(e.iushrn(d);d-- >0;)(o.isOdd()||s.isOdd())&&(o.iadd(u),s.isub(h)),o.iushrn(1),s.iushrn(1);for(var _=0,m=1;0==(n.words[0]&m)&&_<26;++_,m<<=1);if(_>0)for(n.iushrn(_);_-- >0;)(a.isOdd()||c.isOdd())&&(a.iadd(u),c.isub(h)),a.iushrn(1),c.iushrn(1);e.cmp(n)>=0?(e.isub(n),o.isub(a),s.isub(c)):(n.isub(e),a.isub(o),c.isub(s))}return{a:a,b:c,gcd:n.iushln(l)}},r.prototype._invmp=function(t){i(0===t.negative),i(!t.isZero());var e=this,n=t.clone();e=0!==e.negative?e.umod(t):e.clone();for(var o,s=new r(1),a=new r(0),c=n.clone();e.cmpn(1)>0&&n.cmpn(1)>0;){for(var l=0,u=1;0==(e.words[0]&u)&&l<26;++l,u<<=1);if(l>0)for(e.iushrn(l);l-- >0;)s.isOdd()&&s.iadd(c),s.iushrn(1);for(var h=0,d=1;0==(n.words[0]&d)&&h<26;++h,d<<=1);if(h>0)for(n.iushrn(h);h-- >0;)a.isOdd()&&a.iadd(c),a.iushrn(1);e.cmp(n)>=0?(e.isub(n),s.isub(a)):(n.isub(e),a.isub(s))}return(o=0===e.cmpn(1)?s:a).cmpn(0)<0&&o.iadd(t),o},r.prototype.gcd=function(t){if(this.isZero())return t.abs();if(t.isZero())return this.abs();var e=this.clone(),n=t.clone();e.negative=0,n.negative=0;for(var i=0;e.isEven()&&n.isEven();i++)e.iushrn(1),n.iushrn(1);for(;;){for(;e.isEven();)e.iushrn(1);for(;n.isEven();)n.iushrn(1);var o=e.cmp(n);if(o<0){var r=e;e=n,n=r}else if(0===o||0===n.cmpn(1))break;e.isub(n)}return n.iushln(i)},r.prototype.invm=function(t){return this.egcd(t).a.umod(t)},r.prototype.isEven=function(){return 0==(1&this.words[0])},r.prototype.isOdd=function(){return 1==(1&this.words[0])},r.prototype.andln=function(t){return this.words[0]&t},r.prototype.bincn=function(t){i("number"==typeof t);var e=t%26,n=(t-e)/26,o=1<>>26,a&=67108863,this.words[s]=a}return 0!==r&&(this.words[s]=r,this.length++),this},r.prototype.isZero=function(){return 1===this.length&&0===this.words[0]},r.prototype.cmpn=function(t){var e,n=t<0;if(0!==this.negative&&!n)return-1;if(0===this.negative&&n)return 1;if(this._strip(),this.length>1)e=1;else{n&&(t=-t),i(t<=67108863,"Number is too big");var o=0|this.words[0];e=o===t?0:ot.length)return 1;if(this.length=0;n--){var i=0|this.words[n],o=0|t.words[n];if(i!==o){io&&(e=1);break}}return e},r.prototype.gtn=function(t){return 1===this.cmpn(t)},r.prototype.gt=function(t){return 1===this.cmp(t)},r.prototype.gten=function(t){return this.cmpn(t)>=0},r.prototype.gte=function(t){return this.cmp(t)>=0},r.prototype.ltn=function(t){return-1===this.cmpn(t)},r.prototype.lt=function(t){return-1===this.cmp(t)},r.prototype.lten=function(t){return this.cmpn(t)<=0},r.prototype.lte=function(t){return this.cmp(t)<=0},r.prototype.eqn=function(t){return 0===this.cmpn(t)},r.prototype.eq=function(t){return 0===this.cmp(t)},r.red=function(t){return new T(t)},r.prototype.toRed=function(t){return i(!this.red,"Already a number in reduction context"),i(0===this.negative,"red works only with positives"),t.convertTo(this)._forceRed(t)},r.prototype.fromRed=function(){return i(this.red,"fromRed works only with numbers in reduction context"),this.red.convertFrom(this)},r.prototype._forceRed=function(t){return this.red=t,this},r.prototype.forceRed=function(t){return i(!this.red,"Already a number in reduction context"),this._forceRed(t)},r.prototype.redAdd=function(t){return i(this.red,"redAdd works only with red numbers"),this.red.add(this,t)},r.prototype.redIAdd=function(t){return i(this.red,"redIAdd works only with red numbers"),this.red.iadd(this,t)},r.prototype.redSub=function(t){return i(this.red,"redSub works only with red numbers"),this.red.sub(this,t)},r.prototype.redISub=function(t){return i(this.red,"redISub works only with red numbers"),this.red.isub(this,t)},r.prototype.redShl=function(t){return i(this.red,"redShl works only with red numbers"),this.red.shl(this,t)},r.prototype.redMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.mul(this,t)},r.prototype.redIMul=function(t){return i(this.red,"redMul works only with red numbers"),this.red._verify2(this,t),this.red.imul(this,t)},r.prototype.redSqr=function(){return i(this.red,"redSqr works only with red numbers"),this.red._verify1(this),this.red.sqr(this)},r.prototype.redISqr=function(){return i(this.red,"redISqr works only with red numbers"),this.red._verify1(this),this.red.isqr(this)},r.prototype.redSqrt=function(){return i(this.red,"redSqrt works only with red numbers"),this.red._verify1(this),this.red.sqrt(this)},r.prototype.redInvm=function(){return i(this.red,"redInvm works only with red numbers"),this.red._verify1(this),this.red.invm(this)},r.prototype.redNeg=function(){return i(this.red,"redNeg works only with red numbers"),this.red._verify1(this),this.red.neg(this)},r.prototype.redPow=function(t){return i(this.red&&!t.red,"redPow(normalNum)"),this.red._verify1(this),this.red.pow(this,t)};var y={k256:null,p224:null,p192:null,p25519:null};function b(t,e){this.name=t,this.p=new r(e,16),this.n=this.p.bitLength(),this.k=new r(1).iushln(this.n).isub(this.p),this.tmp=this._tmp()}function S(){b.call(this,"k256","ffffffff ffffffff ffffffff ffffffff ffffffff ffffffff fffffffe fffffc2f")}function v(){b.call(this,"p224","ffffffff ffffffff ffffffff ffffffff 00000000 00000000 00000001")}function C(){b.call(this,"p192","ffffffff ffffffff ffffffff fffffffe ffffffff ffffffff")}function N(){b.call(this,"25519","7fffffffffffffff ffffffffffffffff ffffffffffffffff ffffffffffffffed")}function T(t){if("string"==typeof t){var e=r._prime(t);this.m=e.p,this.prime=e}else i(t.gtn(1),"modulus must be greater than 1"),this.m=t,this.prime=null}function L(t){T.call(this,t),this.shift=this.m.bitLength(),this.shift%26!=0&&(this.shift+=26-this.shift%26),this.r=new r(1).iushln(this.shift),this.r2=this.imod(this.r.sqr()),this.rinv=this.r._invmp(this.m),this.minv=this.rinv.mul(this.r).isubn(1).div(this.m),this.minv=this.minv.umod(this.r),this.minv=this.r.sub(this.minv)}b.prototype._tmp=function(){var t=new r(null);return t.words=new Array(Math.ceil(this.n/13)),t},b.prototype.ireduce=function(t){var e,n=t;do{this.split(n,this.tmp),e=(n=(n=this.imulK(n)).iadd(this.tmp)).bitLength()}while(e>this.n);var i=e0?n.isub(this.p):void 0!==n.strip?n.strip():n._strip(),n},b.prototype.split=function(t,e){t.iushrn(this.n,0,e)},b.prototype.imulK=function(t){return t.imul(this.k)},o(S,b),S.prototype.split=function(t,e){for(var n=Math.min(t.length,9),i=0;i>>22,o=r}o>>>=22,t.words[i-10]=o,0===o&&t.length>10?t.length-=10:t.length-=9},S.prototype.imulK=function(t){t.words[t.length]=0,t.words[t.length+1]=0,t.length+=2;for(var e=0,n=0;n>>=26,t.words[n]=o,e=i}return 0!==e&&(t.words[t.length++]=e),t},r._prime=function(t){if(y[t])return y[t];var e;if("k256"===t)e=new S;else if("p224"===t)e=new v;else if("p192"===t)e=new C;else{if("p25519"!==t)throw new Error("Unknown prime "+t);e=new N}return y[t]=e,e},T.prototype._verify1=function(t){i(0===t.negative,"red works only with positives"),i(t.red,"red works only with red numbers")},T.prototype._verify2=function(t,e){i(0==(t.negative|e.negative),"red works only with positives"),i(t.red&&t.red===e.red,"red works only with red numbers")},T.prototype.imod=function(t){return this.prime?this.prime.ireduce(t)._forceRed(this):(u(t,t.umod(this.m)._forceRed(this)),t)},T.prototype.neg=function(t){return t.isZero()?t.clone():this.m.sub(t)._forceRed(this)},T.prototype.add=function(t,e){this._verify2(t,e);var n=t.add(e);return n.cmp(this.m)>=0&&n.isub(this.m),n._forceRed(this)},T.prototype.iadd=function(t,e){this._verify2(t,e);var n=t.iadd(e);return n.cmp(this.m)>=0&&n.isub(this.m),n},T.prototype.sub=function(t,e){this._verify2(t,e);var n=t.sub(e);return n.cmpn(0)<0&&n.iadd(this.m),n._forceRed(this)},T.prototype.isub=function(t,e){this._verify2(t,e);var n=t.isub(e);return n.cmpn(0)<0&&n.iadd(this.m),n},T.prototype.shl=function(t,e){return this._verify1(t),this.imod(t.ushln(e))},T.prototype.imul=function(t,e){return this._verify2(t,e),this.imod(t.imul(e))},T.prototype.mul=function(t,e){return this._verify2(t,e),this.imod(t.mul(e))},T.prototype.isqr=function(t){return this.imul(t,t.clone())},T.prototype.sqr=function(t){return this.mul(t,t)},T.prototype.sqrt=function(t){if(t.isZero())return t.clone();var e=this.m.andln(3);if(i(e%2==1),3===e){var n=this.m.add(new r(1)).iushrn(2);return this.pow(t,n)}for(var o=this.m.subn(1),s=0;!o.isZero()&&0===o.andln(1);)s++,o.iushrn(1);i(!o.isZero());var a=new r(1).toRed(this),c=a.redNeg(),l=this.m.subn(1).iushrn(1),u=this.m.bitLength();for(u=new r(2*u*u).toRed(this);0!==this.pow(u,l).cmp(c);)u.redIAdd(c);for(var h=this.pow(u,o),d=this.pow(t,o.addn(1).iushrn(1)),p=this.pow(t,o),_=s;0!==p.cmp(a);){for(var m=p,f=0;0!==m.cmp(a);f++)m=m.redSqr();i(f<_);var g=this.pow(h,new r(1).iushln(_-f-1));d=d.redMul(g),h=g.redSqr(),p=p.redMul(h),_=f}return d},T.prototype.invm=function(t){var e=t._invmp(this.m);return 0!==e.negative?(e.negative=0,this.imod(e).redNeg()):this.imod(e)},T.prototype.pow=function(t,e){if(e.isZero())return new r(1).toRed(this);if(0===e.cmpn(1))return t.clone();var n=new Array(16);n[0]=new r(1).toRed(this),n[1]=t;for(var i=2;i=0;i--){for(var l=e.words[i],u=c-1;u>=0;u--){var h=l>>u&1;o!==n[0]&&(o=this.sqr(o)),0!==h||0!==s?(s<<=1,s|=h,(4===++a||0===i&&0===u)&&(o=this.mul(o,n[s]),a=0,s=0)):a=0}c=26}return o},T.prototype.convertTo=function(t){var e=t.umod(this.m);return e===t?e.clone():e},T.prototype.convertFrom=function(t){var e=t.clone();return e.red=null,e},r.mont=function(t){return new L(t)},o(L,T),L.prototype.convertTo=function(t){return this.imod(t.ushln(this.shift))},L.prototype.convertFrom=function(t){var e=this.imod(t.mul(this.rinv));return e.red=null,e},L.prototype.imul=function(t,e){if(t.isZero()||e.isZero())return t.words[0]=0,t.length=1,t;var n=t.imul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(i).iushrn(this.shift),r=o;return o.cmp(this.m)>=0?r=o.isub(this.m):o.cmpn(0)<0&&(r=o.iadd(this.m)),r._forceRed(this)},L.prototype.mul=function(t,e){if(t.isZero()||e.isZero())return new r(0)._forceRed(this);var n=t.mul(e),i=n.maskn(this.shift).mul(this.minv).imaskn(this.shift).mul(this.m),o=n.isub(i).iushrn(this.shift),s=o;return o.cmp(this.m)>=0?s=o.isub(this.m):o.cmpn(0)<0&&(s=o.iadd(this.m)),s._forceRed(this)},L.prototype.invm=function(t){return this.imod(t._invmp(this.m).mul(this.r2))._forceRed(this)}}(t,this)}).call(this,n(286)(t))},function(t,e){},function(t){t.exports=JSON.parse('{"name":"elliptic","version":"6.5.4","description":"EC cryptography","main":"lib/elliptic.js","files":["lib"],"scripts":{"lint":"eslint lib test","lint:fix":"npm run lint -- --fix","unit":"istanbul test _mocha --reporter=spec test/index.js","test":"npm run lint && npm run unit","version":"grunt dist && git add dist/"},"repository":{"type":"git","url":"git@github.com:indutny/elliptic"},"keywords":["EC","Elliptic","curve","Cryptography"],"author":"Fedor Indutny ","license":"MIT","bugs":{"url":"https://github.com/indutny/elliptic/issues"},"homepage":"https://github.com/indutny/elliptic","devDependencies":{"brfs":"^2.0.2","coveralls":"^3.1.0","eslint":"^7.6.0","grunt":"^1.2.1","grunt-browserify":"^5.3.0","grunt-cli":"^1.3.2","grunt-contrib-connect":"^3.0.0","grunt-contrib-copy":"^1.0.0","grunt-contrib-uglify":"^5.0.0","grunt-mocha-istanbul":"^5.0.2","grunt-saucelabs":"^9.0.1","istanbul":"^0.4.5","mocha":"^8.0.1"},"dependencies":{"bn.js":"^4.11.9","brorand":"^1.1.0","hash.js":"^1.0.0","hmac-drbg":"^1.0.1","inherits":"^2.0.4","minimalistic-assert":"^1.0.1","minimalistic-crypto-utils":"^1.0.1"}}')},function(t,e,n){"use strict";var i=n(87),o=n(51),r=n(20),s=n(290),a=i.assert;function c(t){s.call(this,"short",t),this.a=new o(t.a,16).toRed(this.red),this.b=new o(t.b,16).toRed(this.red),this.tinv=this.two.redInvm(),this.zeroA=0===this.a.fromRed().cmpn(0),this.threeA=0===this.a.fromRed().sub(this.p).cmpn(-3),this.endo=this._getEndomorphism(t),this._endoWnafT1=new Array(4),this._endoWnafT2=new Array(4)}function l(t,e,n,i){s.BasePoint.call(this,t,"affine"),null===e&&null===n?(this.x=null,this.y=null,this.inf=!0):(this.x=new o(e,16),this.y=new o(n,16),i&&(this.x.forceRed(this.curve.red),this.y.forceRed(this.curve.red)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.inf=!1)}function u(t,e,n,i){s.BasePoint.call(this,t,"jacobian"),null===e&&null===n&&null===i?(this.x=this.curve.one,this.y=this.curve.one,this.z=new o(0)):(this.x=new o(e,16),this.y=new o(n,16),this.z=new o(i,16)),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.zOne=this.z===this.curve.one}r(c,s),t.exports=c,c.prototype._getEndomorphism=function(t){if(this.zeroA&&this.g&&this.n&&1===this.p.modn(3)){var e,n;if(t.beta)e=new o(t.beta,16).toRed(this.red);else{var i=this._getEndoRoots(this.p);e=(e=i[0].cmp(i[1])<0?i[0]:i[1]).toRed(this.red)}if(t.lambda)n=new o(t.lambda,16);else{var r=this._getEndoRoots(this.n);0===this.g.mul(r[0]).x.cmp(this.g.x.redMul(e))?n=r[0]:(n=r[1],a(0===this.g.mul(n).x.cmp(this.g.x.redMul(e))))}return{beta:e,lambda:n,basis:t.basis?t.basis.map((function(t){return{a:new o(t.a,16),b:new o(t.b,16)}})):this._getEndoBasis(n)}}},c.prototype._getEndoRoots=function(t){var e=t===this.p?this.red:o.mont(t),n=new o(2).toRed(e).redInvm(),i=n.redNeg(),r=new o(3).toRed(e).redNeg().redSqrt().redMul(n);return[i.redAdd(r).fromRed(),i.redSub(r).fromRed()]},c.prototype._getEndoBasis=function(t){for(var e,n,i,r,s,a,c,l,u,h=this.n.ushrn(Math.floor(this.n.bitLength()/2)),d=t,p=this.n.clone(),_=new o(1),m=new o(0),f=new o(0),g=new o(1),$=0;0!==d.cmpn(0);){var E=p.div(d);l=p.sub(E.mul(d)),u=f.sub(E.mul(_));var y=g.sub(E.mul(m));if(!i&&l.cmp(h)<0)e=c.neg(),n=_,i=l.neg(),r=u;else if(i&&2==++$)break;c=l,p=d,d=l,f=_,_=u,g=m,m=y}s=l.neg(),a=u;var b=i.sqr().add(r.sqr());return s.sqr().add(a.sqr()).cmp(b)>=0&&(s=e,a=n),i.negative&&(i=i.neg(),r=r.neg()),s.negative&&(s=s.neg(),a=a.neg()),[{a:i,b:r},{a:s,b:a}]},c.prototype._endoSplit=function(t){var e=this.endo.basis,n=e[0],i=e[1],o=i.b.mul(t).divRound(this.n),r=n.b.neg().mul(t).divRound(this.n),s=o.mul(n.a),a=r.mul(i.a),c=o.mul(n.b),l=r.mul(i.b);return{k1:t.sub(s).sub(a),k2:c.add(l).neg()}},c.prototype.pointFromX=function(t,e){(t=new o(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr().redMul(t).redIAdd(t.redMul(this.a)).redIAdd(this.b),i=n.redSqrt();if(0!==i.redSqr().redSub(n).cmp(this.zero))throw new Error("invalid point");var r=i.fromRed().isOdd();return(e&&!r||!e&&r)&&(i=i.redNeg()),this.point(t,i)},c.prototype.validate=function(t){if(t.inf)return!0;var e=t.x,n=t.y,i=this.a.redMul(e),o=e.redSqr().redMul(e).redIAdd(i).redIAdd(this.b);return 0===n.redSqr().redISub(o).cmpn(0)},c.prototype._endoWnafMulAdd=function(t,e,n){for(var i=this._endoWnafT1,o=this._endoWnafT2,r=0;r":""},l.prototype.isInfinity=function(){return this.inf},l.prototype.add=function(t){if(this.inf)return t;if(t.inf)return this;if(this.eq(t))return this.dbl();if(this.neg().eq(t))return this.curve.point(null,null);if(0===this.x.cmp(t.x))return this.curve.point(null,null);var e=this.y.redSub(t.y);0!==e.cmpn(0)&&(e=e.redMul(this.x.redSub(t.x).redInvm()));var n=e.redSqr().redISub(this.x).redISub(t.x),i=e.redMul(this.x.redSub(n)).redISub(this.y);return this.curve.point(n,i)},l.prototype.dbl=function(){if(this.inf)return this;var t=this.y.redAdd(this.y);if(0===t.cmpn(0))return this.curve.point(null,null);var e=this.curve.a,n=this.x.redSqr(),i=t.redInvm(),o=n.redAdd(n).redIAdd(n).redIAdd(e).redMul(i),r=o.redSqr().redISub(this.x.redAdd(this.x)),s=o.redMul(this.x.redSub(r)).redISub(this.y);return this.curve.point(r,s)},l.prototype.getX=function(){return this.x.fromRed()},l.prototype.getY=function(){return this.y.fromRed()},l.prototype.mul=function(t){return t=new o(t,16),this.isInfinity()?this:this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve.endo?this.curve._endoWnafMulAdd([this],[t]):this.curve._wnafMul(this,t)},l.prototype.mulAdd=function(t,e,n){var i=[this,e],o=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,o):this.curve._wnafMulAdd(1,i,o,2)},l.prototype.jmulAdd=function(t,e,n){var i=[this,e],o=[t,n];return this.curve.endo?this.curve._endoWnafMulAdd(i,o,!0):this.curve._wnafMulAdd(1,i,o,2,!0)},l.prototype.eq=function(t){return this===t||this.inf===t.inf&&(this.inf||0===this.x.cmp(t.x)&&0===this.y.cmp(t.y))},l.prototype.neg=function(t){if(this.inf)return this;var e=this.curve.point(this.x,this.y.redNeg());if(t&&this.precomputed){var n=this.precomputed,i=function(t){return t.neg()};e.precomputed={naf:n.naf&&{wnd:n.naf.wnd,points:n.naf.points.map(i)},doubles:n.doubles&&{step:n.doubles.step,points:n.doubles.points.map(i)}}}return e},l.prototype.toJ=function(){return this.inf?this.curve.jpoint(null,null,null):this.curve.jpoint(this.x,this.y,this.curve.one)},r(u,s.BasePoint),c.prototype.jpoint=function(t,e,n){return new u(this,t,e,n)},u.prototype.toP=function(){if(this.isInfinity())return this.curve.point(null,null);var t=this.z.redInvm(),e=t.redSqr(),n=this.x.redMul(e),i=this.y.redMul(e).redMul(t);return this.curve.point(n,i)},u.prototype.neg=function(){return this.curve.jpoint(this.x,this.y.redNeg(),this.z)},u.prototype.add=function(t){if(this.isInfinity())return t;if(t.isInfinity())return this;var e=t.z.redSqr(),n=this.z.redSqr(),i=this.x.redMul(e),o=t.x.redMul(n),r=this.y.redMul(e.redMul(t.z)),s=t.y.redMul(n.redMul(this.z)),a=i.redSub(o),c=r.redSub(s);if(0===a.cmpn(0))return 0!==c.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var l=a.redSqr(),u=l.redMul(a),h=i.redMul(l),d=c.redSqr().redIAdd(u).redISub(h).redISub(h),p=c.redMul(h.redISub(d)).redISub(r.redMul(u)),_=this.z.redMul(t.z).redMul(a);return this.curve.jpoint(d,p,_)},u.prototype.mixedAdd=function(t){if(this.isInfinity())return t.toJ();if(t.isInfinity())return this;var e=this.z.redSqr(),n=this.x,i=t.x.redMul(e),o=this.y,r=t.y.redMul(e).redMul(this.z),s=n.redSub(i),a=o.redSub(r);if(0===s.cmpn(0))return 0!==a.cmpn(0)?this.curve.jpoint(null,null,null):this.dbl();var c=s.redSqr(),l=c.redMul(s),u=n.redMul(c),h=a.redSqr().redIAdd(l).redISub(u).redISub(u),d=a.redMul(u.redISub(h)).redISub(o.redMul(l)),p=this.z.redMul(s);return this.curve.jpoint(h,d,p)},u.prototype.dblp=function(t){if(0===t)return this;if(this.isInfinity())return this;if(!t)return this.dbl();var e;if(this.curve.zeroA||this.curve.threeA){var n=this;for(e=0;e=0)return!1;if(n.redIAdd(o),0===this.x.cmp(n))return!0}},u.prototype.inspect=function(){return this.isInfinity()?"":""},u.prototype.isInfinity=function(){return 0===this.z.cmpn(0)}},function(t,e,n){"use strict";var i=n(51),o=n(20),r=n(290),s=n(87);function a(t){r.call(this,"mont",t),this.a=new i(t.a,16).toRed(this.red),this.b=new i(t.b,16).toRed(this.red),this.i4=new i(4).toRed(this.red).redInvm(),this.two=new i(2).toRed(this.red),this.a24=this.i4.redMul(this.a.redAdd(this.two))}function c(t,e,n){r.BasePoint.call(this,t,"projective"),null===e&&null===n?(this.x=this.curve.one,this.z=this.curve.zero):(this.x=new i(e,16),this.z=new i(n,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)))}o(a,r),t.exports=a,a.prototype.validate=function(t){var e=t.normalize().x,n=e.redSqr(),i=n.redMul(e).redAdd(n.redMul(this.a)).redAdd(e);return 0===i.redSqrt().redSqr().cmp(i)},o(c,r.BasePoint),a.prototype.decodePoint=function(t,e){return this.point(s.toArray(t,e),1)},a.prototype.point=function(t,e){return new c(this,t,e)},a.prototype.pointFromJSON=function(t){return c.fromJSON(this,t)},c.prototype.precompute=function(){},c.prototype._encode=function(){return this.getX().toArray("be",this.curve.p.byteLength())},c.fromJSON=function(t,e){return new c(t,e[0],e[1]||t.one)},c.prototype.inspect=function(){return this.isInfinity()?"":""},c.prototype.isInfinity=function(){return 0===this.z.cmpn(0)},c.prototype.dbl=function(){var t=this.x.redAdd(this.z).redSqr(),e=this.x.redSub(this.z).redSqr(),n=t.redSub(e),i=t.redMul(e),o=n.redMul(e.redAdd(this.curve.a24.redMul(n)));return this.curve.point(i,o)},c.prototype.add=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.diffAdd=function(t,e){var n=this.x.redAdd(this.z),i=this.x.redSub(this.z),o=t.x.redAdd(t.z),r=t.x.redSub(t.z).redMul(n),s=o.redMul(i),a=e.z.redMul(r.redAdd(s).redSqr()),c=e.x.redMul(r.redISub(s).redSqr());return this.curve.point(a,c)},c.prototype.mul=function(t){for(var e=t.clone(),n=this,i=this.curve.point(null,null),o=[];0!==e.cmpn(0);e.iushrn(1))o.push(e.andln(1));for(var r=o.length-1;r>=0;r--)0===o[r]?(n=n.diffAdd(i,this),i=i.dbl()):(i=n.diffAdd(i,this),n=n.dbl());return i},c.prototype.mulAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.jumlAdd=function(){throw new Error("Not supported on Montgomery curve")},c.prototype.eq=function(t){return 0===this.getX().cmp(t.getX())},c.prototype.normalize=function(){return this.x=this.x.redMul(this.z.redInvm()),this.z=this.curve.one,this},c.prototype.getX=function(){return this.normalize(),this.x.fromRed()}},function(t,e,n){"use strict";var i=n(87),o=n(51),r=n(20),s=n(290),a=i.assert;function c(t){this.twisted=1!=(0|t.a),this.mOneA=this.twisted&&-1==(0|t.a),this.extended=this.mOneA,s.call(this,"edwards",t),this.a=new o(t.a,16).umod(this.red.m),this.a=this.a.toRed(this.red),this.c=new o(t.c,16).toRed(this.red),this.c2=this.c.redSqr(),this.d=new o(t.d,16).toRed(this.red),this.dd=this.d.redAdd(this.d),a(!this.twisted||0===this.c.fromRed().cmpn(1)),this.oneC=1==(0|t.c)}function l(t,e,n,i,r){s.BasePoint.call(this,t,"projective"),null===e&&null===n&&null===i?(this.x=this.curve.zero,this.y=this.curve.one,this.z=this.curve.one,this.t=this.curve.zero,this.zOne=!0):(this.x=new o(e,16),this.y=new o(n,16),this.z=i?new o(i,16):this.curve.one,this.t=r&&new o(r,16),this.x.red||(this.x=this.x.toRed(this.curve.red)),this.y.red||(this.y=this.y.toRed(this.curve.red)),this.z.red||(this.z=this.z.toRed(this.curve.red)),this.t&&!this.t.red&&(this.t=this.t.toRed(this.curve.red)),this.zOne=this.z===this.curve.one,this.curve.extended&&!this.t&&(this.t=this.x.redMul(this.y),this.zOne||(this.t=this.t.redMul(this.z.redInvm()))))}r(c,s),t.exports=c,c.prototype._mulA=function(t){return this.mOneA?t.redNeg():this.a.redMul(t)},c.prototype._mulC=function(t){return this.oneC?t:this.c.redMul(t)},c.prototype.jpoint=function(t,e,n,i){return this.point(t,e,n,i)},c.prototype.pointFromX=function(t,e){(t=new o(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr(),i=this.c2.redSub(this.a.redMul(n)),r=this.one.redSub(this.c2.redMul(this.d).redMul(n)),s=i.redMul(r.redInvm()),a=s.redSqrt();if(0!==a.redSqr().redSub(s).cmp(this.zero))throw new Error("invalid point");var c=a.fromRed().isOdd();return(e&&!c||!e&&c)&&(a=a.redNeg()),this.point(t,a)},c.prototype.pointFromY=function(t,e){(t=new o(t,16)).red||(t=t.toRed(this.red));var n=t.redSqr(),i=n.redSub(this.c2),r=n.redMul(this.d).redMul(this.c2).redSub(this.a),s=i.redMul(r.redInvm());if(0===s.cmp(this.zero)){if(e)throw new Error("invalid point");return this.point(this.zero,t)}var a=s.redSqrt();if(0!==a.redSqr().redSub(s).cmp(this.zero))throw new Error("invalid point");return a.fromRed().isOdd()!==e&&(a=a.redNeg()),this.point(a,t)},c.prototype.validate=function(t){if(t.isInfinity())return!0;t.normalize();var e=t.x.redSqr(),n=t.y.redSqr(),i=e.redMul(this.a).redAdd(n),o=this.c2.redMul(this.one.redAdd(this.d.redMul(e).redMul(n)));return 0===i.cmp(o)},r(l,s.BasePoint),c.prototype.pointFromJSON=function(t){return l.fromJSON(this,t)},c.prototype.point=function(t,e,n,i){return new l(this,t,e,n,i)},l.fromJSON=function(t,e){return new l(t,e[0],e[1],e[2])},l.prototype.inspect=function(){return this.isInfinity()?"":""},l.prototype.isInfinity=function(){return 0===this.x.cmpn(0)&&(0===this.y.cmp(this.z)||this.zOne&&0===this.y.cmp(this.curve.c))},l.prototype._extDbl=function(){var t=this.x.redSqr(),e=this.y.redSqr(),n=this.z.redSqr();n=n.redIAdd(n);var i=this.curve._mulA(t),o=this.x.redAdd(this.y).redSqr().redISub(t).redISub(e),r=i.redAdd(e),s=r.redSub(n),a=i.redSub(e),c=o.redMul(s),l=r.redMul(a),u=o.redMul(a),h=s.redMul(r);return this.curve.point(c,l,h,u)},l.prototype._projDbl=function(){var t,e,n,i,o,r,s=this.x.redAdd(this.y).redSqr(),a=this.x.redSqr(),c=this.y.redSqr();if(this.curve.twisted){var l=(i=this.curve._mulA(a)).redAdd(c);this.zOne?(t=s.redSub(a).redSub(c).redMul(l.redSub(this.curve.two)),e=l.redMul(i.redSub(c)),n=l.redSqr().redSub(l).redSub(l)):(o=this.z.redSqr(),r=l.redSub(o).redISub(o),t=s.redSub(a).redISub(c).redMul(r),e=l.redMul(i.redSub(c)),n=l.redMul(r))}else i=a.redAdd(c),o=this.curve._mulC(this.z).redSqr(),r=i.redSub(o).redSub(o),t=this.curve._mulC(s.redISub(i)).redMul(r),e=this.curve._mulC(i).redMul(a.redISub(c)),n=i.redMul(r);return this.curve.point(t,e,n)},l.prototype.dbl=function(){return this.isInfinity()?this:this.curve.extended?this._extDbl():this._projDbl()},l.prototype._extAdd=function(t){var e=this.y.redSub(this.x).redMul(t.y.redSub(t.x)),n=this.y.redAdd(this.x).redMul(t.y.redAdd(t.x)),i=this.t.redMul(this.curve.dd).redMul(t.t),o=this.z.redMul(t.z.redAdd(t.z)),r=n.redSub(e),s=o.redSub(i),a=o.redAdd(i),c=n.redAdd(e),l=r.redMul(s),u=a.redMul(c),h=r.redMul(c),d=s.redMul(a);return this.curve.point(l,u,d,h)},l.prototype._projAdd=function(t){var e,n,i=this.z.redMul(t.z),o=i.redSqr(),r=this.x.redMul(t.x),s=this.y.redMul(t.y),a=this.curve.d.redMul(r).redMul(s),c=o.redSub(a),l=o.redAdd(a),u=this.x.redAdd(this.y).redMul(t.x.redAdd(t.y)).redISub(r).redISub(s),h=i.redMul(c).redMul(u);return this.curve.twisted?(e=i.redMul(l).redMul(s.redSub(this.curve._mulA(r))),n=c.redMul(l)):(e=i.redMul(l).redMul(s.redSub(r)),n=this.curve._mulC(c).redMul(l)),this.curve.point(h,e,n)},l.prototype.add=function(t){return this.isInfinity()?t:t.isInfinity()?this:this.curve.extended?this._extAdd(t):this._projAdd(t)},l.prototype.mul=function(t){return this._hasDoubles(t)?this.curve._fixedNafMul(this,t):this.curve._wnafMul(this,t)},l.prototype.mulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!1)},l.prototype.jmulAdd=function(t,e,n){return this.curve._wnafMulAdd(1,[this,e],[t,n],2,!0)},l.prototype.normalize=function(){if(this.zOne)return this;var t=this.z.redInvm();return this.x=this.x.redMul(t),this.y=this.y.redMul(t),this.t&&(this.t=this.t.redMul(t)),this.z=this.curve.one,this.zOne=!0,this},l.prototype.neg=function(){return this.curve.point(this.x.redNeg(),this.y,this.z,this.t&&this.t.redNeg())},l.prototype.getX=function(){return this.normalize(),this.x.fromRed()},l.prototype.getY=function(){return this.normalize(),this.y.fromRed()},l.prototype.eq=function(t){return this===t||0===this.getX().cmp(t.getX())&&0===this.getY().cmp(t.getY())},l.prototype.eqXToP=function(t){var e=t.toRed(this.curve.red).redMul(this.z);if(0===this.x.cmp(e))return!0;for(var n=t.clone(),i=this.curve.redN.redMul(this.z);;){if(n.iadd(this.curve.n),n.cmp(this.curve.p)>=0)return!1;if(e.redIAdd(i),0===this.x.cmp(e))return!0}},l.prototype.toP=l.prototype.normalize,l.prototype.mixedAdd=l.prototype.add},function(t,e,n){"use strict";e.sha1=n(825),e.sha224=n(826),e.sha256=n(617),e.sha384=n(827),e.sha512=n(618)},function(t,e,n){"use strict";var i=n(102),o=n(235),r=n(616),s=i.rotl32,a=i.sum32,c=i.sum32_5,l=r.ft_1,u=o.BlockHash,h=[1518500249,1859775393,2400959708,3395469782];function d(){if(!(this instanceof d))return new d;u.call(this),this.h=[1732584193,4023233417,2562383102,271733878,3285377520],this.W=new Array(80)}i.inherits(d,u),t.exports=d,d.blockSize=512,d.outSize=160,d.hmacStrength=80,d.padLength=64,d.prototype._update=function(t,e){for(var n=this.W,i=0;i<16;i++)n[i]=t[e+i];for(;ithis.blockSize&&(t=(new this.Hash).update(t).digest()),o(t.length<=this.blockSize);for(var e=t.length;e0))return s.iaddn(1),this.keyFromPrivate(s)}},h.prototype._truncateToN=function(t,e){var n=8*t.byteLength()-this.n.bitLength();return n>0&&(t=t.ushrn(n)),!e&&t.cmp(this.n)>=0?t.sub(this.n):t},h.prototype.sign=function(t,e,n,r){"object"==typeof n&&(r=n,n=null),r||(r={}),e=this.keyFromPrivate(e,n),t=this._truncateToN(new i(t,16));for(var s=this.n.byteLength(),a=e.getPrivate().toArray("be",s),c=t.toArray("be",s),l=new o({hash:this.hash,entropy:a,nonce:c,pers:r.pers,persEnc:r.persEnc||"utf8"}),h=this.n.sub(new i(1)),d=0;;d++){var p=r.k?r.k(d):new i(l.generate(this.n.byteLength()));if(!((p=this._truncateToN(p,!0)).cmpn(1)<=0||p.cmp(h)>=0)){var _=this.g.mul(p);if(!_.isInfinity()){var m=_.getX(),f=m.umod(this.n);if(0!==f.cmpn(0)){var g=p.invm(this.n).mul(f.mul(e.getPrivate()).iadd(t));if(0!==(g=g.umod(this.n)).cmpn(0)){var $=(_.getY().isOdd()?1:0)|(0!==m.cmp(f)?2:0);return r.canonical&&g.cmp(this.nh)>0&&(g=this.n.sub(g),$^=1),new u({r:f,s:g,recoveryParam:$})}}}}}},h.prototype.verify=function(t,e,n,o){t=this._truncateToN(new i(t,16)),n=this.keyFromPublic(n,o);var r=(e=new u(e,"hex")).r,s=e.s;if(r.cmpn(1)<0||r.cmp(this.n)>=0)return!1;if(s.cmpn(1)<0||s.cmp(this.n)>=0)return!1;var a,c=s.invm(this.n),l=c.mul(t).umod(this.n),h=c.mul(r).umod(this.n);return this.curve._maxwellTrick?!(a=this.g.jmulAdd(l,n.getPublic(),h)).isInfinity()&&a.eqXToP(r):!(a=this.g.mulAdd(l,n.getPublic(),h)).isInfinity()&&0===a.getX().umod(this.n).cmp(r)},h.prototype.recoverPubKey=function(t,e,n,o){c((3&n)===n,"The recovery param is more than two bits"),e=new u(e,o);var r=this.n,s=new i(t),a=e.r,l=e.s,h=1&n,d=n>>1;if(a.cmp(this.curve.p.umod(this.curve.n))>=0&&d)throw new Error("Unable to find sencond key candinate");a=d?this.curve.pointFromX(a.add(this.curve.n),h):this.curve.pointFromX(a,h);var p=e.r.invm(r),_=r.sub(s).mul(p).umod(r),m=l.mul(p).umod(r);return this.g.mulAdd(_,a,m)},h.prototype.getKeyRecoveryParam=function(t,e,n,i){if(null!==(e=new u(e,i)).recoveryParam)return e.recoveryParam;for(var o=0;o<4;o++){var r;try{r=this.recoverPubKey(t,e,o)}catch(t){continue}if(r.eq(n))return o}throw new Error("Unable to find valid recovery factor")}},function(t,e,n){"use strict";var i=n(384),o=n(614),r=n(86);function s(t){if(!(this instanceof s))return new s(t);this.hash=t.hash,this.predResist=!!t.predResist,this.outLen=this.hash.outSize,this.minEntropy=t.minEntropy||this.hash.hmacStrength,this._reseed=null,this.reseedInterval=null,this.K=null,this.V=null;var e=o.toArray(t.entropy,t.entropyEnc||"hex"),n=o.toArray(t.nonce,t.nonceEnc||"hex"),i=o.toArray(t.pers,t.persEnc||"hex");r(e.length>=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._init(e,n,i)}t.exports=s,s.prototype._init=function(t,e,n){var i=t.concat(e).concat(n);this.K=new Array(this.outLen/8),this.V=new Array(this.outLen/8);for(var o=0;o=this.minEntropy/8,"Not enough entropy. Minimum is: "+this.minEntropy+" bits"),this._update(t.concat(n||[])),this._reseed=1},s.prototype.generate=function(t,e,n,i){if(this._reseed>this.reseedInterval)throw new Error("Reseed is required");"string"!=typeof e&&(i=n,n=e,e=null),n&&(n=o.toArray(n,i||"hex"),this._update(n));for(var r=[];r.length"}},function(t,e,n){"use strict";var i=n(51),o=n(87),r=o.assert;function s(t,e){if(t instanceof s)return t;this._importDER(t,e)||(r(t.r&&t.s,"Signature without r or s"),this.r=new i(t.r,16),this.s=new i(t.s,16),void 0===t.recoveryParam?this.recoveryParam=null:this.recoveryParam=t.recoveryParam)}function a(){this.place=0}function c(t,e){var n=t[e.place++];if(!(128&n))return n;var i=15&n;if(0===i||i>4)return!1;for(var o=0,r=0,s=e.place;r>>=0;return!(o<=127)&&(e.place=s,o)}function l(t){for(var e=0,n=t.length-1;!t[e]&&!(128&t[e+1])&&e>>3);for(t.push(128|n);--n;)t.push(e>>>(n<<3)&255);t.push(e)}}t.exports=s,s.prototype._importDER=function(t,e){t=o.toArray(t,e);var n=new a;if(48!==t[n.place++])return!1;var r=c(t,n);if(!1===r)return!1;if(r+n.place!==t.length)return!1;if(2!==t[n.place++])return!1;var s=c(t,n);if(!1===s)return!1;var l=t.slice(n.place,s+n.place);if(n.place+=s,2!==t[n.place++])return!1;var u=c(t,n);if(!1===u)return!1;if(t.length!==u+n.place)return!1;var h=t.slice(n.place,u+n.place);if(0===l[0]){if(!(128&l[1]))return!1;l=l.slice(1)}if(0===h[0]){if(!(128&h[1]))return!1;h=h.slice(1)}return this.r=new i(l),this.s=new i(h),this.recoveryParam=null,!0},s.prototype.toDER=function(t){var e=this.r.toArray(),n=this.s.toArray();for(128&e[0]&&(e=[0].concat(e)),128&n[0]&&(n=[0].concat(n)),e=l(e),n=l(n);!(n[0]||128&n[1]);)n=n.slice(1);var i=[2];u(i,e.length),(i=i.concat(e)).push(2),u(i,n.length);var r=i.concat(n),s=[48];return u(s,r.length),s=s.concat(r),o.encode(s,t)}},function(t,e,n){"use strict";var i=n(384),o=n(383),r=n(87),s=r.assert,a=r.parseBytes,c=n(836),l=n(837);function u(t){if(s("ed25519"===t,"only tested with ed25519 so far"),!(this instanceof u))return new u(t);t=o[t].curve,this.curve=t,this.g=t.g,this.g.precompute(t.n.bitLength()+1),this.pointClass=t.point().constructor,this.encodingLength=Math.ceil(t.n.bitLength()/8),this.hash=i.sha512}t.exports=u,u.prototype.sign=function(t,e){t=a(t);var n=this.keyFromSecret(e),i=this.hashInt(n.messagePrefix(),t),o=this.g.mul(i),r=this.encodePoint(o),s=this.hashInt(r,n.pubBytes(),t).mul(n.priv()),c=i.add(s).umod(this.curve.n);return this.makeSignature({R:o,S:c,Rencoded:r})},u.prototype.verify=function(t,e,n){t=a(t),e=this.makeSignature(e);var i=this.keyFromPublic(n),o=this.hashInt(e.Rencoded(),i.pubBytes(),t),r=this.g.mul(e.S());return e.R().add(i.pub().mul(o)).eq(r)},u.prototype.hashInt=function(){for(var t=this.hash(),e=0;e=e)throw new Error("invalid sig")}t.exports=function(t,e,n,l,u){var h=s(n);if("ec"===h.type){if("ecdsa"!==l&&"ecdsa/rsa"!==l)throw new Error("wrong public key type");return function(t,e,n){var i=a[n.data.algorithm.curve.join(".")];if(!i)throw new Error("unknown curve "+n.data.algorithm.curve.join("."));var o=new r(i),s=n.data.subjectPrivateKey.data;return o.verify(e,t,s)}(t,e,h)}if("dsa"===h.type){if("dsa"!==l)throw new Error("wrong public key type");return function(t,e,n){var i=n.data.p,r=n.data.q,a=n.data.g,l=n.data.pub_key,u=s.signature.decode(t,"der"),h=u.s,d=u.r;c(h,r),c(d,r);var p=o.mont(i),_=h.invm(r);return 0===a.toRed(p).redPow(new o(e).mul(_).mod(r)).fromRed().mul(l.toRed(p).redPow(d.mul(_).mod(r)).fromRed()).mod(i).mod(r).cmp(d)}(t,e,h)}if("rsa"!==l&&"ecdsa/rsa"!==l)throw new Error("wrong public key type");e=i.concat([u,e]);for(var d=h.modulus.byteLength(),p=[1],_=0;e.length+p.length+2n-d-2)throw new Error("message too long");var p=h.alloc(n-i-d-2),_=n-u-1,m=o(u),f=a(h.concat([l,p,h.alloc(1,1),e],_),s(m,_)),g=a(m,s(f,u));return new c(h.concat([h.alloc(1),g,f],n))}(_,e);else if(1===d)p=function(t,e,n){var i,r=e.length,s=t.modulus.byteLength();if(r>s-11)throw new Error("message too long");i=n?h.alloc(s-r-3,255):function(t){var e,n=h.allocUnsafe(t),i=0,r=o(2*t),s=0;for(;i=0)throw new Error("data too long for modulus")}return n?u(p,_):l(p,_)}},function(t,e,n){var i=n(291),o=n(626),r=n(627),s=n(51),a=n(381),c=n(232),l=n(628),u=n(27).Buffer;t.exports=function(t,e,n){var h;h=t.padding?t.padding:n?1:4;var d,p=i(t),_=p.modulus.byteLength();if(e.length>_||new s(e).cmp(p.modulus)>=0)throw new Error("decryption error");d=n?l(new s(e),p):a(e,p);var m=u.alloc(_-d.length);if(d=u.concat([m,d],_),4===h)return function(t,e){var n=t.modulus.byteLength(),i=c("sha1").update(u.alloc(0)).digest(),s=i.length;if(0!==e[0])throw new Error("decryption error");var a=e.slice(1,s+1),l=e.slice(s+1),h=r(a,o(l,s)),d=r(l,o(h,n-s-1));if(function(t,e){t=u.from(t),e=u.from(e);var n=0,i=t.length;t.length!==e.length&&(n++,i=Math.min(t.length,e.length));var o=-1;for(;++o=e.length){r++;break}var s=e.slice(2,o-1);("0002"!==i.toString("hex")&&!n||"0001"!==i.toString("hex")&&n)&&r++;s.length<8&&r++;if(r)throw new Error("decryption error");return e.slice(o)}(0,d,n);if(3===h)return d;throw new Error("unknown padding")}},function(t,e,n){"use strict";(function(t,i){function o(){throw new Error("secure random number generation not supported by this browser\nuse chrome, FireFox or Internet Explorer 11")}var r=n(27),s=n(175),a=r.Buffer,c=r.kMaxLength,l=t.crypto||t.msCrypto,u=Math.pow(2,32)-1;function h(t,e){if("number"!=typeof t||t!=t)throw new TypeError("offset must be a number");if(t>u||t<0)throw new TypeError("offset must be a uint32");if(t>c||t>e)throw new RangeError("offset out of range")}function d(t,e,n){if("number"!=typeof t||t!=t)throw new TypeError("size must be a number");if(t>u||t<0)throw new TypeError("size must be a uint32");if(t+e>n||t>c)throw new RangeError("buffer too small")}function p(t,e,n,o){if(i.browser){var r=t.buffer,a=new Uint8Array(r,e,n);return l.getRandomValues(a),o?void i.nextTick((function(){o(null,t)})):t}if(!o)return s(n).copy(t,e),t;s(n,(function(n,i){if(n)return o(n);i.copy(t,e),o(null,t)}))}l&&l.getRandomValues||!i.browser?(e.randomFill=function(e,n,i,o){if(!(a.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');if("function"==typeof n)o=n,n=0,i=e.length;else if("function"==typeof i)o=i,i=e.length-n;else if("function"!=typeof o)throw new TypeError('"cb" argument must be a function');return h(n,e.length),d(i,n,e.length),p(e,n,i,o)},e.randomFillSync=function(e,n,i){void 0===n&&(n=0);if(!(a.isBuffer(e)||e instanceof t.Uint8Array))throw new TypeError('"buf" argument must be a Buffer or Uint8Array');h(n,e.length),void 0===i&&(i=e.length-n);return d(i,n,e.length),p(e,n,i)}):(e.randomFill=o,e.randomFillSync=o)}).call(this,n(55),n(37))},function(t,e,n){var i,o,r;o=[e,n(31),n(150),n(129),n(285),n(284),n(151)],void 0===(r="function"==typeof(i=function(t,e,n,i,o,r,s){"use strict";var a,c=e.kotlin.reflect.js.internal.PrimitiveClasses.byteArrayClass,l=e.kotlin.reflect.js.internal.PrimitiveClasses.stringClass,u=e.getKClass,h=n.io.ktor.http.HttpStatusCode,d=i.io.ktor.utils.io.ByteReadChannel,p=n.io.ktor.http.content.OutgoingContent,_=e.kotlin.collections.setOf_i5x0yv$,m=e.Kind.CLASS,f=n.io.ktor.http.ContentType,g=e.equals,$=e.defineInlineFunction,E=e.wrapFunction,y=n.io.ktor.http.ContentTypeMatcher,b=e.kotlin.collections.plus_khz7k3$,S=e.kotlin.collections.toMutableSet_7wnvza$,v=o.io.ktor.serialization.Configuration,C=e.kotlin.coroutines.intrinsics.COROUTINE_SUSPENDED,N=e.kotlin.coroutines.CoroutineImpl,T=r.io.ktor.client.request.accept_41kwpe$,L=n.io.ktor.http.contentType_jzzg3d$,z=e.kotlin,w=n.io.ktor.http,O=r.io.ktor.client.utils,R=n.io.ktor.http.charset_10ldo9$,A=i.io.ktor.utils.io.charsets,x=e.ensureNotNull,I=n.io.ktor.http.content,U=e.kotlin.collections.joinToString_fmv235$,D=o.io.ktor.serialization.deserialize_2dn85c$,P=r.io.ktor.client.request.HttpRequestPipeline,M=r.io.ktor.client.statement.HttpResponsePipeline,k=n.io.ktor.http.contentType_v1wgmc$,j=o.io.ktor.serialization.suitableCharset_4q0pk1$,G=r.io.ktor.client.statement.HttpResponseContainer,q=s.io.ktor.util.AttributeKey,F=e.Kind.OBJECT,B=r.io.ktor.client.plugins.HttpClientPlugin,W=e.kotlin.Exception_init_pdl1vj$,H=e.kotlin.Exception,V=e.kotlin.collections.ArrayList_init_287e2$,K=e.kotlin.collections.Collection,X=e.kotlin.collections.collectionSizeOrDefault_ba2ldo$,J=e.kotlin.collections.ArrayList_init_ww73n8$,Y=e.kotlin.text.startsWith_7epoxm$,Q=e.kotlin.text.endsWith_7epoxm$,Z=e.kotlin.collections.LinkedHashSet_init_287e2$;function tt(t,e){ut(),this.registrations_8be2vx$=t,this.ignoredTypes_8be2vx$=e}function et(){this.ignoredTypes_8be2vx$=S(b(pt,a)),this.registrations_8be2vx$=V()}function nt(t,e,n){this.converter=t,this.contentTypeToSend=e,this.contentTypeMatcher=n}function it(t){this.closure$pattern=t}function ot(t){return t.converter.toString()}function rt(t,e,n,i){N.call(this,i),this.exceptionState_0=1,this.$this=t,this.local$tmp$=void 0,this.local$tmp$_0=void 0,this.local$contentType=void 0,this.local$matchingRegistrations=void 0,this.local$firstNotNullOfOrNull$result=void 0,this.local$tmp$_2=void 0,this.local$request=e,this.local$body=n}function st(){lt=this,this.key_vpaj35$_0=new q("ContentNegotiation")}function at(t,e,n,i,o){N.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$plugin=t,this.local$tmp$=void 0,this.local$$receiver=e}function ct(t,e,n,i,o){N.call(this,o),this.$controller=i,this.exceptionState_0=1,this.local$closure$plugin=t,this.local$info=void 0,this.local$body=void 0,this.local$tmp$=void 0,this.local$tmp$_0=void 0,this.local$$receiver=e,this.local$f=n}ht.prototype=Object.create(H.prototype),ht.prototype.constructor=ht,nt.$metadata$={kind:m,simpleName:"ConverterRegistration",interfaces:[]},et.prototype.register_6d0rjl$$default=function(t,e,n){var i=g(t,f.Application.Json)?mt():this.defaultMatcher_0(t);this.register_ttoac0$(t,e,i,n)},et.prototype.register_ttoac0$=function(t,e,n,i){i(e);var o=new nt(e,t,n);this.registrations_8be2vx$.add_11rb$(o)},et.prototype.ignoreType_287e2$=$("ktor-ktor-client-content-negotiation-js-legacy.io.ktor.client.plugins.contentnegotiation.ContentNegotiation.Config.ignoreType_287e2$",E((function(){var t=e.getKClass;return function(e,n){this.ignoreType_xo1ogr$(t(e))}}))),et.prototype.removeIgnoredType_287e2$=$("ktor-ktor-client-content-negotiation-js-legacy.io.ktor.client.plugins.contentnegotiation.ContentNegotiation.Config.removeIgnoredType_287e2$",E((function(){var t=e.getKClass;return function(e,n){this.removeIgnoredType_xo1ogr$(t(e))}}))),et.prototype.removeIgnoredType_xo1ogr$=function(t){this.ignoredTypes_8be2vx$.remove_11rb$(t)},et.prototype.ignoreType_xo1ogr$=function(t){this.ignoredTypes_8be2vx$.add_11rb$(t)},et.prototype.clearIgnoredTypes=function(){this.ignoredTypes_8be2vx$.clear()},it.prototype.contains_9v5yzd$=function(t){return t.match_9v5yzd$(this.closure$pattern)},it.$metadata$={kind:m,interfaces:[y]},et.prototype.defaultMatcher_0=function(t){return new it(t)},et.$metadata$={kind:m,simpleName:"Config",interfaces:[v]},rt.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},rt.prototype=Object.create(N.prototype),rt.prototype.constructor=rt,rt.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n;for(n=this.$this.registrations_8be2vx$.iterator();n.hasNext();){var i=n.next();T(this.local$request,i.contentTypeToSend)}var o=e.isType(this.local$body,p);if(!o){var r,s=this.$this.ignoredTypes_8be2vx$;t:do{var a;if(e.isType(s,K)&&s.isEmpty()){r=!1;break t}for(a=s.iterator();a.hasNext();)if(a.next().isInstance_s8jyv4$(this.local$body)){r=!0;break t}r=!1}while(0);o=r}if(o)return null;this.state_0=2;continue;case 1:throw this.exception_0;case 2:if(this.local$tmp$=L(this.local$request),null==this.local$tmp$)return null;this.state_0=3;continue;case 3:if(this.local$contentType=this.local$tmp$,e.isType(this.local$body,Object.getPrototypeOf(z.Unit).constructor))return this.local$request.headers.remove_61zpoe$(w.HttpHeaders.ContentType),O.EmptyContent;this.state_0=4;continue;case 4:var c,l=this.$this.registrations_8be2vx$,u=V();for(c=l.iterator();c.hasNext();){var h=c.next();h.contentTypeMatcher.contains_9v5yzd$(this.local$contentType)&&u.add_11rb$(h)}if(this.local$tmp$_0=u.isEmpty()?null:u,null==this.local$tmp$_0)return null;this.state_0=5;continue;case 5:if(this.local$matchingRegistrations=this.local$tmp$_0,null==this.local$request.bodyType)return null;this.state_0=6;continue;case 6:this.local$request.headers.remove_61zpoe$(w.HttpHeaders.ContentType),this.state_0=7;continue;case 7:this.local$tmp$_2=this.local$matchingRegistrations.iterator(),this.state_0=8;continue;case 8:if(!this.local$tmp$_2.hasNext()){this.state_0=11;continue}var d,_=this.local$tmp$_2.next();if(this.state_0=9,this.result_0=_.converter.serializeNullable_koybg$(this.local$contentType,null!=(d=R(this.local$contentType))?d:A.Charsets.UTF_8,x(this.local$request.bodyType),g(this.local$body,I.NullBody)?null:this.local$body,this),this.result_0===C)return C;continue;case 9:var m=this.result_0;if(null!=m){this.local$firstNotNullOfOrNull$result=m,this.state_0=12;continue}this.state_0=10;continue;case 10:this.state_0=8;continue;case 11:this.local$firstNotNullOfOrNull$result=null,this.state_0=12;continue;case 12:if(null==(t=this.local$firstNotNullOfOrNull$result))throw new ht("Can't convert "+this.local$body.toString()+" with contentType "+this.local$contentType+" using converters "+U(this.local$matchingRegistrations,void 0,void 0,void 0,void 0,void 0,ot));return t;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},tt.prototype.convertRequest_y8o5zo$=function(t,e,n,i){var o=new rt(this,t,e,n);return i?o:o.doResume(null)},tt.prototype.convertResponse_q1fl0g$=function(t,n,i,o,r){var s;if(void 0===o&&(o=A.Charsets.UTF_8),!e.isType(n,d))return null;if(this.ignoredTypes_8be2vx$.contains_11rb$(t.type))return null;var a,c=this.registrations_8be2vx$,l=V();for(a=c.iterator();a.hasNext();){var u=a.next();u.contentTypeMatcher.contains_9v5yzd$(i)&&l.add_11rb$(u)}var h,p=J(X(l,10));for(h=l.iterator();h.hasNext();){var _=h.next();p.add_11rb$(_.converter)}return null==(s=p.isEmpty()?null:p)?null:D(s,n,t,o,r)},Object.defineProperty(st.prototype,"key",{configurable:!0,get:function(){return this.key_vpaj35$_0}}),st.prototype.prepare_oh3mgy$$default=function(t){var e=new et;t(e);var n=e;return new tt(n.registrations_8be2vx$,n.ignoredTypes_8be2vx$)},at.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},at.prototype=Object.create(N.prototype),at.prototype.constructor=at,at.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.state_0=2,this.result_0=this.local$closure$plugin.convertRequest_y8o5zo$(this.local$$receiver.context,this.local$$receiver.subject,this),this.result_0===C)return C;continue;case 1:throw this.exception_0;case 2:if(this.local$tmp$=this.result_0,null==this.local$tmp$)return;this.state_0=3;continue;case 3:var t=this.local$tmp$;if(this.state_0=4,this.result_0=this.local$$receiver.proceedWith_trkh7z$(t,this),this.result_0===C)return C;continue;case 4:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},ct.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[N]},ct.prototype=Object.create(N.prototype),ct.prototype.constructor=ct,ct.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.local$info=this.local$f.component1(),this.local$body=this.local$f.component2(),this.local$tmp$=k(this.local$$receiver.context.response),null==this.local$tmp$)return;this.state_0=2;continue;case 1:throw this.exception_0;case 2:var t=this.local$tmp$,e=j(this.local$$receiver.context.request.headers);if(this.state_0=3,this.result_0=this.local$closure$plugin.convertResponse_q1fl0g$(this.local$info,this.local$body,t,e,this),this.result_0===C)return C;continue;case 3:if(this.local$tmp$_0=this.result_0,null==this.local$tmp$_0)return;this.state_0=4;continue;case 4:var n=this.local$tmp$_0,i=new G(this.local$info,n);if(this.state_0=5,this.result_0=this.local$$receiver.proceedWith_trkh7z$(i,this),this.result_0===C)return C;continue;case 5:return this.result_0;default:throw this.state_0=1,new Error("State Machine Unreachable execution")}}catch(t){if(1===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},st.prototype.install_wojrb5$=function(t,e){var n;e.requestPipeline.intercept_h71y74$(P.Phases.Transform,(n=t,function(t,e,i,o){var r=new at(n,t,e,this,i);return o?r:r.doResume(null)})),e.responsePipeline.intercept_h71y74$(M.Phases.Transform,function(t){return function(e,n,i,o){var r=new ct(t,e,n,this,i);return o?r:r.doResume(null)}}(t))},st.$metadata$={kind:F,simpleName:"Plugin",interfaces:[B]};var lt=null;function ut(){return null===lt&&new st,lt}function ht(t){W(t,this),this.name="ContentConverterException"}function dt(){_t=this}tt.$metadata$={kind:m,simpleName:"ContentNegotiation",interfaces:[]},ht.$metadata$={kind:m,simpleName:"ContentConverterException",interfaces:[H]},dt.prototype.contains_9v5yzd$=function(t){if(t.match_9v5yzd$(f.Application.Json))return!0;var e=t.withoutParameters().toString();return Y(e,"application/")&&Q(e,"+json")},dt.$metadata$={kind:F,simpleName:"JsonContentTypeMatcher",interfaces:[y]};var pt,_t=null;function mt(){return null===_t&&new dt,_t}var ft=t.io||(t.io={}),gt=ft.ktor||(ft.ktor={}),$t=gt.client||(gt.client={}),Et=$t.plugins||($t.plugins={}),yt=Et.contentnegotiation||(Et.contentnegotiation={});return et.ConverterRegistration=nt,tt.Config=et,Object.defineProperty(tt,"Plugin",{get:ut}),yt.ContentNegotiation=tt,yt.ContentConverterException=ht,Object.defineProperty(yt,"JsonContentTypeMatcher",{get:mt}),et.prototype.register_6d0rjl$=v.prototype.register_6d0rjl$,st.prototype.prepare_oh3mgy$=B.prototype.prepare_oh3mgy$,a=_([c,l,u(h),u(d),u(p)]),pt=Z(),t})?i.apply(e,o):i)||(t.exports=r)},function(t,e,n){var i,o,r;o=[e,n(31),n(231),n(150),n(856)],void 0===(r="function"==typeof(i=function(t,e,n,i,o){"use strict";var r,s=e.kotlin.Unit,a=n.kotlinx.serialization.json.Json_x26noe$,c=i.io.ktor.http.ContentType,l=o.io.ktor.serialization.kotlinx.serialization_15409d$,u=t.io||(t.io={}),h=u.ktor||(u.ktor={}),d=h.serialization||(h.serialization={}),p=d.kotlinx||(d.kotlinx={});return(p.json||(p.json={})).json_mhw46j$=function(t,e,n){void 0===e&&(e=r),void 0===n&&(n=c.Application.Json),l(t,n,e)},r=a(void 0,(function(t){return t.encodeDefaults=!0,t.isLenient=!0,t.allowSpecialFloatingPointValues=!0,t.allowStructuredMapKeys=!0,t.prettyPrint=!1,t.useArrayPolymorphism=!1,s})),t})?i.apply(e,o):i)||(t.exports=r)},function(t,e,n){var i,o,r;o=[e,n(31),n(149),n(129),n(285),n(150),n(439)],void 0===(r="function"==typeof(i=function(t,e,n,i,o,r,s){"use strict";var a=e.kotlin.coroutines.intrinsics.COROUTINE_SUSPENDED,c=e.kotlin.coroutines.CoroutineImpl,l=n.kotlinx.serialization.SerializationException,u=e.Kind.CLASS,h=e.throwUPAE,d=i.io.ktor.utils.io.core.readText_1lnizf$,p=n.kotlinx.serialization.StringFormat,_=i.io.ktor.utils.io.core.readBytes_xc9h3n$,m=n.kotlinx.serialization.BinaryFormat,f=i.io.ktor.utils.io.core.discard_7wsnj1$,g=o.io.ktor.serialization.JsonConvertException,$=Error,E=n.kotlinx.serialization.KSerializer,y=e.throwCCE,b=r.io.ktor.http.withCharsetIfNeeded_73qf4i$,S=r.io.ktor.http.content.TextContent,v=r.io.ktor.http.content.ByteArrayContent,C=e.toString,N=e.getKClass,T=o.io.ktor.serialization.ContentConverter,L=e.kotlin.IllegalArgumentException_init_pdl1vj$,z=e.kotlin.IllegalStateException_init_pdl1vj$,w=(o.io.ktor.serialization.WebsocketConverterNotFoundException,s.io.ktor.websocket.Frame.Text,o.io.ktor.serialization.WebsocketDeserializeException,s.io.ktor.websocket.Frame.Binary,s.io.ktor.websocket.Frame.Text_init_61zpoe$,s.io.ktor.websocket.Frame.Binary_init_3eyok5$,n.kotlinx.serialization.serializerOrNull_ca95z9$),O=n.kotlinx.serialization.serializer_1yb8b7$,R=n.kotlinx.serialization.builtins.get_nullable_2418p6$,A=e.kotlin.js.internal.StringCompanionObject,x=n.kotlinx.serialization.builtins.serializer_6eet4j$,I=n.kotlinx.serialization.builtins.ListSerializer_swdriu$,U=e.kotlin.collections.List,D=e.kotlin.collections.firstOrNull_us0mfu$,P=n.kotlinx.serialization.builtins.SetSerializer_swdriu$,M=e.kotlin.collections.Set,k=n.kotlinx.serialization.builtins.MapSerializer_2yqygg$,j=e.kotlin.collections.Map,G=e.kotlin.collections.filterNotNull_m3lr2h$,q=e.kotlin.collections.singleOrNull_2p1efm$,F=e.kotlin.collections.collectionSizeOrDefault_ba2ldo$,B=e.kotlin.collections.ArrayList_init_ww73n8$,W=e.kotlin.collections.HashSet_init_287e2$,H=e.kotlin.collections.ArrayList_init_287e2$,V=e.kotlin.collections.Collection;function K(t){this.format_0=t}function X(t,e,n){c.call(this,n),this.exceptionState_0=6,this.$this=t,this.local$tmp$=void 0,this.local$parameters=e}function J(t,e,n,i){this.format_rzncps$_0=t,this.value_7rzid0$_0=e,this.typeInfo_r8asj3$_0=n,this.charset_v8qo0h$_0=i,this.serializer_xka1k5$_0=this.serializer_xka1k5$_0}function Y(t,e,n,i,o){J.call(this,t,e,n,i),this.format_wmbrjz$_0=t,this.value_no0ss3$_0=e,this.typeInfo_1nvg3y$_0=n,this.charset_wpjc2a$_0=i,this.contentType=o}function Q(t){if(this.format_0=t,!e.isType(this.format_0,m)&&!e.isType(this.format_0,p)){var n="Only binary and string formats are supported, "+this.format_0.toString()+" is not supported.";throw L(n.toString())}this.serializationBase_0=new tt(this,this.format_0)}function Z(t,e,n,i,o){c.call(this,o),this.exceptionState_0=4,this.$this=t,this.local$serializer=void 0,this.local$charset=e,this.local$typeInfo=n,this.local$content=i}function tt(t,e){this.this$KotlinxSerializationConverter=t,K.call(this,e)}function et(t,e){var n,i,o,r;return null!=(r=null!=(o=null!=(n=t.kotlinType)?n.arguments.isEmpty()?null:w(e,n):null)?o:null!=(i=e.getContextual_2n2k9f$(t.type))?nt(i,t):null)?r:nt(O(t.type),t)}function nt(t,e){var n;return!0===(null!=(n=e.kotlinType)?n.isMarkedNullable:null)?R(t):t}function it(t,n){var i,o,r,s,a;if(null==t)s=R(x(A));else if(e.isType(t,U))s=I(ot(t,n));else if(e.isArray(t))s=null!=(o=null!=(i=D(t))?it(i,n):null)?o:I(x(A));else if(e.isType(t,M))s=P(ot(t,n));else if(e.isType(t,j)){var c=ot(t.keys,n),l=ot(t.values,n);s=k(c,l)}else s=null!=(r=n.getContextual_2n2k9f$(e.getKClassFromExpression(t)))?r:O(e.getKClassFromExpression(t));return e.isType(a=s,E)?a:y()}function ot(t,n){var i,o,r,s=G(t),a=B(F(s,10));for(o=s.iterator();o.hasNext();){var c=o.next();a.add_11rb$(it(c,n))}var l=W(),u=H();for(r=a.iterator();r.hasNext();){var h=r.next(),d=h.descriptor.serialName;l.add_11rb$(d)&&u.add_11rb$(h)}var p=u;if(p.size>1){var _,m=B(F(p,10));for(_=p.iterator();_.hasNext();){var f=_.next();m.add_11rb$(f.descriptor.serialName)}throw z(("Serializing collections of different element types is not yet supported. Selected serializers: "+m).toString())}var g,$=null!=(i=q(p))?i:x(A);if($.descriptor.isNullable)return $;e.isType($,E)||y();t:do{var b;if(e.isType(t,V)&&t.isEmpty()){g=!1;break t}for(b=t.iterator();b.hasNext();)if(null==b.next()){g=!0;break t}g=!1}while(0);return g?R($):$}Y.prototype=Object.create(J.prototype),Y.prototype.constructor=Y,tt.prototype=Object.create(K.prototype),tt.prototype.constructor=tt,X.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[c]},X.prototype=Object.create(c.prototype),X.prototype.constructor=X,X.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:if(this.exceptionState_0=2,this.local$parameters.serializer=et(this.local$parameters.typeInfo,this.$this.format_0.serializersModule),this.state_0=1,this.result_0=this.$this.serializeContent_mrjhm3$(this.local$parameters,this),this.result_0===a)return a;continue;case 1:this.local$tmp$=this.result_0,this.exceptionState_0=6,this.state_0=3;continue;case 2:this.exceptionState_0=6;var t=this.exception_0;if(!e.isType(t,l))throw t;this.local$tmp$=null,this.state_0=3;continue;case 3:var n=this.local$tmp$;if(null!=n)return n;this.state_0=4;continue;case 4:var i=it(this.local$parameters.value,this.$this.format_0.serializersModule);if(this.local$parameters.serializer=i,this.state_0=5,this.result_0=this.$this.serializeContent_mrjhm3$(this.local$parameters,this),this.result_0===a)return a;continue;case 5:return this.result_0;case 6:throw this.exception_0;default:throw this.state_0=6,new Error("State Machine Unreachable execution")}}catch(t){if(6===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},K.prototype.serialize_jhffn2$=function(t,e,n){var i=new X(this,t,e);return n?i:i.doResume(null)},K.$metadata$={kind:u,simpleName:"KotlinxSerializationBase",interfaces:[]},Object.defineProperty(J.prototype,"format",{get:function(){return this.format_rzncps$_0}}),Object.defineProperty(J.prototype,"value",{get:function(){return this.value_7rzid0$_0}}),Object.defineProperty(J.prototype,"typeInfo",{get:function(){return this.typeInfo_r8asj3$_0}}),Object.defineProperty(J.prototype,"charset",{get:function(){return this.charset_v8qo0h$_0}}),Object.defineProperty(J.prototype,"serializer",{configurable:!0,get:function(){return null==this.serializer_xka1k5$_0?h("serializer"):this.serializer_xka1k5$_0},set:function(t){this.serializer_xka1k5$_0=t}}),J.$metadata$={kind:u,simpleName:"SerializationParameters",interfaces:[]},Object.defineProperty(Y.prototype,"format",{get:function(){return this.format_wmbrjz$_0}}),Object.defineProperty(Y.prototype,"value",{get:function(){return this.value_no0ss3$_0}}),Object.defineProperty(Y.prototype,"typeInfo",{get:function(){return this.typeInfo_1nvg3y$_0}}),Object.defineProperty(Y.prototype,"charset",{get:function(){return this.charset_wpjc2a$_0}}),Y.$metadata$={kind:u,simpleName:"SerializationNegotiationParameters",interfaces:[J]},Q.prototype.serialize_4ln4px$=function(t,e,n,i,o){return this.serializeNullable_koybg$(t,e,n,i,o)},Q.prototype.serializeNullable_koybg$=function(t,e,n,i,o){return this.serializationBase_0.serialize_jhffn2$(new Y(this.format_0,i,n,e,t),o)},Z.$metadata$={kind:e.Kind.CLASS,simpleName:null,interfaces:[c]},Z.prototype=Object.create(c.prototype),Z.prototype.constructor=Z,Z.prototype.doResume=function(){for(;;)try{switch(this.state_0){case 0:var t,n;if(this.local$serializer=et(this.local$typeInfo,this.$this.format_0.serializersModule),this.state_0=1,this.result_0=this.local$content.readRemaining_s8cxhz$(void 0,this),this.result_0===a)return a;continue;case 1:var i=this.result_0;if(this.exceptionState_0=2,t=this.$this.format_0,e.isType(t,p))n=this.$this.format_0.decodeFromString_awif5v$(this.local$serializer,d(i,this.local$charset));else{if(!e.isType(t,m))throw f(i),z(("Unsupported format "+this.$this.format_0).toString());n=this.$this.format_0.decodeFromByteArray_dntfbn$(this.local$serializer,_(i))}return n;case 2:this.exceptionState_0=4;var o=this.exception_0;throw e.isType(o,$)?new g("Illegal input",o):o;case 3:return;case 4:throw this.exception_0;default:throw this.state_0=4,new Error("State Machine Unreachable execution")}}catch(t){if(4===this.state_0)throw this.exceptionState_0=this.state_0,t;this.state_0=this.exceptionState_0,this.exception_0=t}},Q.prototype.deserialize_obau6j$=function(t,e,n,i,o){var r=new Z(this,t,e,n,i);return o?r:r.doResume(null)},Q.prototype.serializeContent_0=function(t,n,i,o,r){var s,a,c;if(e.isType(n,p)){var l=n.encodeToString_tf03ej$(e.isType(s=t,E)?s:y(),i);c=new S(l,b(o,r))}else{if(!e.isType(n,m))throw z(("Unsupported format "+n).toString());var u=n.encodeToByteArray_tf03ej$(e.isType(a=t,E)?a:y(),i);c=new v(u,o)}return c},tt.prototype.serializeContent_mrjhm3$=function(t,n){if(!e.isType(t,Y))throw z(("parameters type is "+C(e.getKClassFromExpression(t).simpleName)+", but expected "+C(N(Y).simpleName)).toString());return this.this$KotlinxSerializationConverter.serializeContent_0(t.serializer,t.format,t.value,t.contentType,t.charset)},tt.$metadata$={kind:u,interfaces:[K]},Q.$metadata$={kind:u,simpleName:"KotlinxSerializationConverter",interfaces:[T]};var rt=t.io||(t.io={}),st=rt.ktor||(rt.ktor={}),at=st.serialization||(st.serialization={}),ct=at.kotlinx||(at.kotlinx={});return ct.KotlinxSerializationBase=K,ct.SerializationParameters=J,ct.SerializationNegotiationParameters=Y,ct.KotlinxSerializationConverter=Q,ct.serialization_15409d$=function(t,e,n){t.register_6d0rjl$(e,new Q(n))},ct.serializerFromTypeInfo_wj9ktv$=et,ct.guessSerializer_mukf8o$=it,t})?i.apply(e,o):i)||(t.exports=r)},function(t,e,n){"use strict"; /** * @license React * react.production.min.js * * Copyright (c) Facebook, Inc. and its affiliates. * * This source code is licensed under the MIT license found in the * LICENSE file in the root directory of this source tree. */var i=Symbol.for("react.element"),o=Symbol.for("react.portal"),r=Symbol.for("react.fragment"),s=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),c=Symbol.for("react.provider"),l=Symbol.for("react.context"),u=Symbol.for("react.forward_ref"),h=Symbol.for("react.suspense"),d=Symbol.for("react.memo"),p=Symbol.for("react.lazy"),_=Symbol.iterator;var m={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},f=Object.assign,g={};function $(t,e,n){this.props=t,this.context=e,this.refs=g,this.updater=n||m}function E(){}function y(t,e,n){this.props=t,this.context=e,this.refs=g,this.updater=n||m}$.prototype.isReactComponent={},$.prototype.setState=function(t,e){if("object"!=typeof t&&"function"!=typeof t&&null!=t)throw Error("setState(...): takes an object of state variables to update or a function which returns an object of state variables.");this.updater.enqueueSetState(this,t,e,"setState")},$.prototype.forceUpdate=function(t){this.updater.enqueueForceUpdate(this,t,"forceUpdate")},E.prototype=$.prototype;var b=y.prototype=new E;b.constructor=y,f(b,$.prototype),b.isPureReactComponent=!0;var S=Array.isArray,v=Object.prototype.hasOwnProperty,C={current:null},N={key:!0,ref:!0,__self:!0,__source:!0};function T(t,e,n){var o,r={},s=null,a=null;if(null!=e)for(o in void 0!==e.ref&&(a=e.ref),void 0!==e.key&&(s=""+e.key),e)v.call(e,o)&&!N.hasOwnProperty(o)&&(r[o]=e[o]);var c=arguments.length-2;if(1===c)r.children=n;else if(1